[Bug target/99592] New: arm: internal compiler error using arm_neon.h with -pg
arnd at linaro dot org
gcc-bugzilla@gcc.gnu.org
Mon Mar 15 09:35:37 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99592
Bug ID: 99592
Summary: arm: internal compiler error using arm_neon.h with -pg
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: arnd at linaro dot org
Target Milestone: ---
Including the arm_neon header fails when building with the 'pg' option
$ arm-linux-gnueabihf-gcc-11 --version
arm-linux-gnueabihf-gcc-11 (Ubuntu 11-20210310-1ubuntu1) 11.0.1 20210310
(experimental) [master revision
8dc225d311e:2453ef06221:5987d8a79cda1069c774e5c302d5597310270026]
$ arm-linux-gnueabihf-gcc-11 -pg -O2 -c -xc /dev/null -include arm_neon.h
In file included from <command-line>:
/usr/lib/gcc-cross/arm-linux-gnueabihf/11/include/arm_neon.h:71:9: internal
compiler error: ‘global_options’ are modified in local context
71 | #pragma GCC pop_options
| ^~~
0xcf6aa3 cl_optimization_compare(gcc_options*, gcc_options*)
/build/gcc-11-cross-76rIbd/gcc-11-cross-3ubuntu1/gcc/build/gcc/options-save.c:12589
0x8b031d handle_pragma_pop_options
../../src/gcc/c-family/c-pragma.c:1092
0x822501 c_parser_pragma
../../src/gcc/c/c-parser.c:12519
0x84e065 c_parser_external_declaration
../../src/gcc/c/c-parser.c:1758
0x84e811 c_parser_translation_unit
../../src/gcc/c/c-parser.c:1650
0x84e811 c_parse_file()
../../src/gcc/c/c-parser.c:21984
0x8ade35 c_common_parse_file()
../../src/gcc/c-family/c-opts.c:1218
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-11/README.Bugs> for instructions.
More information about the Gcc-bugs
mailing list