On 9/13/2021 7:52 AM, Martin Liška wrote:
On 8/27/21 11:05, Richard Biener wrote:
So with ignoring darktable which seems completely insane the cases
will likely continue
to work as intended if we change from the current scheme to appending
as proposed.

All right, I'm addressing the flag_complex_method in a separate sub-thread.

There's slightly updated version of the patch where I modifed the documentation bits.

Patch can bootstrap on x86_64-linux-gnu and survives regression tests.

Ready to be installed?
Thanks,
Martin

0001-Append-target-optimize-attr-to-the-current-cmdline.patch

 From e13e3ec56acfb62543bc1912f1310d00eefba5c3 Mon Sep 17 00:00:00 2001
From: Martin Liska <mli...@suse.cz>
Date: Wed, 2 Jun 2021 08:44:37 +0200
Subject: [PATCH] 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.
OK
jeff

Reply via email to