From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D880F3858416; Fri, 10 Dec 2021 09:09:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D880F3858416 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/92860] [9/10/11/12 regression] Global flags affected by -O settings are clobbered by optimize attribute Date: Fri, 10 Dec 2021 09:09:09 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: deferred X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Dec 2021 09:09:10 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D92860 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |WAITING --- Comment #62 from Martin Li=C5=A1ka --- (In reply to David Binderman from comment #61) > Created attachment 51964 [details] > C source code >=20 > Command line used to compile file: >=20 > /home/dcb/gcc/working.2/./gcc/xgcc -B/home/dcb/gcc/working.2/./gcc/ > -B/home/dcb/gcc/results.20211209/x86_64-pc-linux-gnu/bin/ > -B/home/dcb/gcc/results.20211209/x86_64-pc-linux-gnu/lib/ -isystem > /home/dcb/gcc/results.20211209/x86_64-pc-linux-gnu/include -isystem > /home/dcb/gcc/results.20211209/x86_64-pc-linux-gnu/sys-include=20=20 > -fchecking=3D1 -g -O3 -march=3Dnative -O2 -g -O3 -march=3Dnative -DIN_GC= C -W > -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=3Dformat-diag > -Wstrict-prototypes -Wmissing-prototypes -Wno-error=3Dformat-diag > -Wold-style-definition -isystem ./include -fpic -mlong-double-80 > -DUSE_ELF_SYMVER -fcf-protection -mshstk -g -DIN_LIBGCC2 -fbuilding-libgcc > -fno-stack-protector -fpic -mlong-double-80 -DUSE_ELF_SYMVER > -fcf-protection -mshstk -I. -I. -I../.././gcc -I../../../trunk.git/libgcc > -I../../../trunk.git/libgcc/. -I../../../trunk.git/libgcc/../gcc > -I../../../trunk.git/libgcc/../include > -I../../../trunk.git/libgcc/config/libbid -DENABLE_DECIMAL_BID_FORMAT > -DHAVE_CC_TLS -DUSE_TLS -o unwind-dw2.o -MT unwind-dw2.o -MD -MP -MF > unwind-dw2.dep -fexceptions -c ../../../trunk.git/libgcc/unwind-dw2.c > -fvisibility=3Dhidden -DHIDE_EXPORTS Can't reproduce with the current master: ./xgcc -B. /home/marxin/Programming/testcases/pr92860.c -g -O3 -march=3Dbdv= er2 -fchecking=3D1 -g -O3 -march=3Dnative -O2 -g -O3 -march=3Dnative -DIN_GCC = -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=3Dformat-diag -Wstrict-prototypes -Wmissing-prototypes -Wno-error=3Dformat-diag -Wold-style-definition -isystem ./include -fpic -mlong-double-80 -DUSE_ELF_SYMVER -fcf-protection -mshstk -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -fpic -mlong-double-80 -DUSE_ELF_SYMVER -fcf-protecti= on -mshstk -I. -I. -I../.././gcc -I../../../trunk.git/libgcc -I../../../trunk.git/libgcc/. -I../../../trunk.git/libgcc/../gcc -I../../../trunk.git/libgcc/../include -I../../../trunk.git/libgcc/config/libbid -DENABLE_DECIMAL_BID_FORMAT -DHAVE_CC_TLS -DUSE_TLS -o unwind-dw2.o -MT unwind-dw2.o -MD -MP -MF unwind-dw2.dep -fexceptions -fvisibility=3Dhidden -DHIDE_EXPORTS -c=