]> git.ipfire.org Git - thirdparty/gcc.git/commit
Add gcc_assert that &global_options are not dirty modified.
authorMartin Liska <mliska@suse.cz>
Tue, 10 Dec 2019 18:41:08 +0000 (19:41 +0100)
committerMartin Liska <mliska@suse.cz>
Wed, 10 Jun 2020 08:04:14 +0000 (10:04 +0200)
commitdc6d15eaa23cbae1468a6ef92371b1c856c14819
tree954a57a5125fe9d401fbc977c6897a783e8cc47f
parent771e60dd073b4dc0663fa9282b854dafdd92242d
Add gcc_assert that &global_options are not dirty modified.

gcc/ChangeLog:

2020-03-20  Martin Liska  <mliska@suse.cz>

PR tree-optimization/92860
* optc-save-gen.awk: Generate new function cl_optimization_compare.
* opth-gen.awk: Generate declaration of the function.

gcc/c-family/ChangeLog:

2020-03-20  Martin Liska  <mliska@suse.cz>

PR tree-optimization/92860
* c-attribs.c (handle_optimize_attribute):
Save global options and compare it after parsing of function
attribute.
* c-pragma.c (opt_stack::saved_global_options): New field.
(handle_pragma_push_options): Save global_options.
(handle_pragma_pop_options): Compare them after pop.
gcc/c-family/c-attribs.c
gcc/c-family/c-pragma.c
gcc/optc-save-gen.awk
gcc/opth-gen.awk