From 6de9f0c13b27c34336587da19d03200f8cc6bcd5 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Wed, 2 Jun 2021 08:44:37 +0200 Subject: 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. --- gcc/toplev.h | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/toplev.h') 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 save_opt_decoded_options; class timer; -- cgit v1.1