https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122081

            Bug ID: 122081
           Summary: [16 Regression] ICE; 'global_options' are modified in
                    local context
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

Created attachment 62458
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62458&action=edit
preprocessed source

seen with trunk 20250921 on riscv64-linux-gnu, trying to bootstrap trunk.
Bootstraps for other targets work.



0xd6e3e3 cl_optimization_compare(gcc_options*, gcc_options*)
        /<<PKGBUILDDIR>>/build/gcc/options-save.cc:14572
0x8b1d3d handle_optimize_attribute
        ../../src/gcc/c-family/c-attribs.cc:6367
0x75e543 decl_attributes(tree_node**, tree_node*, int, tree_node*)
        ../../src/gcc/attribs.cc:904
0x76506d c_decl_attributes
        ../../src/gcc/c/c-decl.cc:5585
0x7838e3 start_function(c_declspecs*, c_declarator*, tree_node*)
        ../../src/gcc/c/c-decl.cc:10549
0x7da879 c_parser_declaration_or_fndef
        ../../src/gcc/c/c-parser.cc:3117
0x816a45 c_parser_external_declaration
        ../../src/gcc/c/c-parser.cc:2155
0x817685 c_parser_translation_unit
        ../../src/gcc/c/c-parser.cc:2009
0x817685 c_parse_file()
        ../../src/gcc/c/c-parser.cc:30353
0x89154f c_common_parse_file()
        ../../src/gcc/c-family/c-opts.cc:1408
Please submit a full bug report, with preprocessed source (by using
-freport-bug).

Reply via email to