[hackers] [scc] [cc1] Avoid recovery in elseclause || Roberto E. Vargas Caballero
commit b2e2403705ee71f141db8b9a4bac947ce3116f1d
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Mon Aug 1 16:05:01 2016 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Mon Aug 1 16:05:01 2016 +0200
[cc1] Avoid recovery in elseclause
We do not want to recover in any cpp function, because we are out
of synchronization at that moment.
diff --git a/cc1/cpp.c b/cc1/cpp.c
index 53daa3c..80131f7 100644
--- a/cc1/cpp.c
+++ b/cc1/cpp.c
_AT_@ -652,8 +652,10 @@ elseclause(void)
{
int status;
- if (cppctx == 0)
- error("#else without #ifdef/ifndef");
+ if (cppctx == 0) {
+ cpperror("#else without #ifdef/ifndef");
+ return;
+ }
status = (ifstatus[cppctx-1] ^= 1);
cppoff += (status) ? -1 : 1;
Received on Mon Aug 01 2016 - 16:06:05 CEST
This archive was generated by hypermail 2.3.0
: Mon Aug 01 2016 - 16:12:15 CEST