On Thu, 2020-06-18 at 14:21 +0200, Martin Liška wrote: > On 6/18/20 1:32 PM, Luis Machado wrote: > > FTR, I'm running into this ICE when attempting to build the Linux Kernel > > for arm64. > > Hello. > > Thanks for the report. > > > More specifically: > > > > /repos/linux-arm/kernel/bpf/core.c:1368:1: internal compiler error: > > ‘global_options’ are modified in local context > > 1368 | { > > | ^ > > 0xc0554b cl_optimization_compare(gcc_options*, gcc_options*) > > /build/gcc-master/gcc/options-save.c:9786 > > 0x7812df handle_optimize_attribute > > ../../../repos/gcc/gcc/c-family/c-attribs.c:4475 > > 0x666477 decl_attributes(tree_node**, tree_node*, int, tree_node*) > > ../../../repos/gcc/gcc/attribs.c:714 > > 0x688c9b start_function(c_declspecs*, c_declarator*, tree_node*) > > ../../../repos/gcc/gcc/c/c-decl.c:9177 > > 0x6f85f3 c_parser_declaration_or_fndef > > ../../../repos/gcc/gcc/c/c-parser.c:2434 > > 0x7038af c_parser_external_declaration > > ../../../repos/gcc/gcc/c/c-parser.c:1773 > > 0x7044c7 c_parser_translation_unit > > ../../../repos/gcc/gcc/c/c-parser.c:1646 > > 0x7044c7 c_parse_file() > > ../../../repos/gcc/gcc/c/c-parser.c:21822 > > 0x764897 c_common_parse_file() > > ../../../repos/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 <https://gcc.gnu.org/bugs/> for instructions. > > > > I don't have a reduced testcase for this, but I thought I'd check if this > > is known/being worked on before filing a bug. > > It's not a known issue. Please attach me the used command line and > pre-processed source file > (using -E option). You might try arc-elf gcc.dg/pr91734.c. I've been behind and just peeked at the arc-elf regressions in the tester a moment ago and it's tripping this as well.
Executing on host: /home/jenkins/workspace/arc-elf/arc-elf-obj/gcc/gcc/xgcc -B/home/jenkins/workspace/arc-elf/arc-elf-obj/gcc/gcc/ /home/jenkins/gcc/gcc/testsuite/gcc.dg/pr91734.c gcc_tg.o -fno-diagnostics-show-caret -fno-diagnostics-show-line-numbers -fdiagnostics-color=never -fdiagnostics-urls=never -ansi -pedantic-errors -O2 -std=gnu99 -Wl,-wrap,exit -Wl,-wrap,_exit -Wl,-wrap,main -Wl,-wrap,abort -lm -o ./pr91734.exe (timeout = 300) spawn -ignore SIGHUP /home/jenkins/workspace/arc-elf/arc-elf-obj/gcc/gcc/xgcc -B/home/jenkins/workspace/arc-elf/arc-elf-obj/gcc/gcc/ /home/jenkins/gcc/gcc/testsuite/gcc.dg/pr91734.c gcc_tg.o -fno-diagnostics-show-caret -fno-diagnostics-show-line-numbers -fdiagnostics-color=never -fdiagnostics-urls=never -ansi -pedantic-errors -O2 -std=gnu99 -Wl,-wrap,exit -Wl,-wrap,_exit -Wl,-wrap,main -Wl,-wrap,abort -lm -o ./pr91734.exe^M /home/jenkins/gcc/gcc/testsuite/gcc.dg/pr91734.c:8:1: internal compiler error: 'global_options' are modified in local context^M 0xc8590f cl_optimization_compare(gcc_options*, gcc_options*)^M /home/jenkins/workspace/arc-elf/arc-elf-obj/gcc/gcc/options-save.c:9479^M 0x870808 handle_optimize_attribute^M ../../../../../gcc/gcc/c-family/c-attribs.c:4475^M 0x784d3f decl_attributes(tree_node**, tree_node*, int, tree_node*)^M ../../../../../gcc/gcc/attribs.c:714^M 0x7a0b90 start_function(c_declspecs*, c_declarator*, tree_node*)^M ../../../../../gcc/gcc/c/c-decl.c:9177^M 0x7f97f7 c_parser_declaration_or_fndef^M ../../../../../gcc/gcc/c/c-parser.c:2434^M 0x801e33 c_parser_external_declaration^M ../../../../../gcc/gcc/c/c-parser.c:1773^M 0x802881 c_parser_translation_unit^M ../../../../../gcc/gcc/c/c-parser.c:1646^M 0x802881 c_parse_file()^M ../../../../../gcc/gcc/c/c-parser.c:21822^M 0x85ab6b c_common_parse_file()^M ../../../../../gcc/gcc/c-family/c-opts.c:1190^M >