From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 345243892455; Thu, 25 Jun 2020 06:31:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 345243892455 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1593066713; bh=e+vEEJe1/ayRL8G78t3plRgskGHTlkMq5kceg+0xRrg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=JxopBZc9j3WLgKF+bLSllCwx2qYIVt8pNh/PODftq4QOhMlRtESMqAEqUuEKV84aD s/JK8WxsRRI8X2o2Z0KuMHlnwR8+6qXmEQDBJ8H5BAdFMU5JK1PWjGGi1kijsRUrkY FuC5P0LvS1i3lGeh1Q8VzxYuKIbqFIEjZFePx9QQ= From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/92860] [8/9/10/11 regression] Global flags affected by -O settings are clobbered by optimize attribute Date: Thu, 25 Jun 2020 06:31:52 +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: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.2 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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: Thu, 25 Jun 2020 06:31:53 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D92860 --- Comment #34 from Martin Li=C5=A1ka --- I don't have to do anything special in order to get pre-processed source fi= le: $ gcc pr88876.c -freport-bug=20 pr88876.c:10:1: internal compiler error: =E2=80=98global_options=E2=80=99 a= re modified in local context 10 | int c() {return 0;} | ^~~ 0xce038b cl_optimization_compare(gcc_options*, gcc_options*) /dev/shm/objdir/gcc/options-save.c:9822 0x8c4f88 handle_optimize_attribute /home/marxin/Programming/gcc/gcc/c-family/c-attribs.c:4475 0x7d4ee7 decl_attributes(tree_node**, tree_node*, int, tree_node*) /home/marxin/Programming/gcc/gcc/attribs.c:714 0x7f1625 start_function(c_declspecs*, c_declarator*, tree_node*) /home/marxin/Programming/gcc/gcc/c/c-decl.c:9177 0x84bdb7 c_parser_declaration_or_fndef /home/marxin/Programming/gcc/gcc/c/c-parser.c:2434 0x855453 c_parser_external_declaration /home/marxin/Programming/gcc/gcc/c/c-parser.c:1773 0x855f51 c_parser_translation_unit /home/marxin/Programming/gcc/gcc/c/c-parser.c:1646 0x855f51 c_parse_file() /home/marxin/Programming/gcc/gcc/c/c-parser.c:21822 0x8ae88b c_common_parse_file() /home/marxin/Programming/gcc/gcc/c-family/c-opts.c:1190 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. Preprocessed source stored into /tmp/cc8jx9U7.out file, please attach this = to your bugreport.=