aboutsummaryrefslogtreecommitdiff
path: root/gcc/toplev.h
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2021-06-02 08:44:37 +0200
committerMartin Liska <mliska@suse.cz>2021-10-01 11:09:10 +0200
commit6de9f0c13b27c34336587da19d03200f8cc6bcd5 (patch)
tree3823c11c2c1796289a7516f9a94976ee601b2bb8 /gcc/toplev.h
parent97909f80fde6c4ce2a2fa1e11b325a80c4741b8c (diff)
downloadgcc-6de9f0c13b27c34336587da19d03200f8cc6bcd5.zip
gcc-6de9f0c13b27c34336587da19d03200f8cc6bcd5.tar.gz
gcc-6de9f0c13b27c34336587da19d03200f8cc6bcd5.tar.bz2
Append target/optimize attr to the current cmdline.
gcc/c-family/ChangeLog: * c-common.c (parse_optimize_options): Combine optimize options with what was provided on the command line. gcc/ChangeLog: * toplev.c (toplev::main): Save decoded optimization options. * toplev.h (save_opt_decoded_options): New. * doc/extend.texi: Be more clear about optimize and target attributes. gcc/testsuite/ChangeLog: * gcc.target/i386/avx512er-vrsqrt28ps-3.c: Disable fast math. * gcc.target/i386/avx512er-vrsqrt28ps-5.c: Likewise. * gcc.target/i386/attr-optimize.c: New test.
Diffstat (limited to 'gcc/toplev.h')
-rw-r--r--gcc/toplev.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/toplev.h b/gcc/toplev.h
index f543554..c44c5ff 100644
--- a/gcc/toplev.h
+++ b/gcc/toplev.h
@@ -23,6 +23,7 @@ along with GCC; see the file COPYING3. If not see
/* Decoded options, and number of such options. */
extern struct cl_decoded_option *save_decoded_options;
extern unsigned int save_decoded_options_count;
+extern auto_vec<cl_decoded_option> save_opt_decoded_options;
class timer;