projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b8f5a5
)
opts: do not do sanity check when an error is seen
author
Martin Liska
<mliska@suse.cz>
Thu, 16 Dec 2021 12:33:00 +0000
(13:33 +0100)
committer
Martin Liska
<mliska@suse.cz>
Thu, 16 Dec 2021 16:49:59 +0000
(17:49 +0100)
PR target/103709
gcc/c-family/ChangeLog:
* c-pragma.c (handle_pragma_pop_options): Do not check
global options modification when an error is seen in parsing
of options (pragmas or attributes).
gcc/c-family/c-pragma.c
patch
|
blob
|
history
diff --git
a/gcc/c-family/c-pragma.c
b/gcc/c-family/c-pragma.c
index
c4ed420
..
0772c34
100644
(file)
--- a/
gcc/c-family/c-pragma.c
+++ b/
gcc/c-family/c-pragma.c
@@
-1132,7
+1132,7
@@
handle_pragma_pop_options (cpp_reader *ARG_UNUSED(dummy))
p->optimize_binary);
optimization_current_node = p->optimize_binary;
}
- if (flag_checking)
+ if (flag_checking
&& !seen_error ()
)
{
cl_optimization_compare (p->saved_global_options, &global_options);
free (p->saved_global_options);