[Bug target/99592] arm: internal compiler error using arm_neon.h with -pg

arnd at linaro dot org gcc-bugzilla@gcc.gnu.org
Tue Mar 16 13:15:51 GMT 2021


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

--- Comment #6 from Arnd Bergmann <arnd at linaro dot org> ---
Created attachment 50395
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50395&action=edit
preprocessed /usr/lib/gcc-cross/arm-linux-gnueabihf/11/include/arm_neon.h

I've changed from the Ubuntu gcc-11 snapshot to a self-built one in the
meantime, but in this version I had to pass the specific CPU type that was
implied by the Ubuntu armhf version.

arm-linux-gnueabihf-gcc-11 -pg  -march=armv7-a -mfpu=vfpv3-d16 -O2
-mfloat-abi=hard  -c /tmp/armcrash.i
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


More information about the Gcc-bugs mailing list