Skip to content

Commit

Permalink
opts: do not do sanity check when an error is seen
Browse files Browse the repository at this point in the history
	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).
  • Loading branch information
marxin committed Dec 16, 2021
1 parent 5b8f5a5 commit 54e6d3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gcc/c-family/c-pragma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 54e6d3e

Please sign in to comment.