[Bug target/99592] arm: internal compiler error using arm_neon.h with -pg
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99592 Martin Liška changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|--- |FIXED --- Comment #13 from Martin Liška --- Should be fixed now.
[Bug target/99592] arm: internal compiler error using arm_neon.h with -pg
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99592 --- Comment #12 from CVS Commits --- The master branch has been updated by Martin Liska : https://gcc.gnu.org/g:ebd5e86c0f41dc1d692f9b2b68a510b1f6835a3e commit r12-1039-gebd5e86c0f41dc1d692f9b2b68a510b1f6835a3e Author: Martin Liska Date: Wed Mar 10 15:12:31 2021 +0100 Improve global state for options. gcc/c-family/ChangeLog: PR tree-optimization/92860 PR target/99592 * c-attribs.c (handle_optimize_attribute): Save target node before calling parse_optimize_options and save it in case it changes. * c-pragma.c (handle_pragma_target): Similarly for pragma. (handle_pragma_pop_options): Likewise here. gcc/ChangeLog: PR tree-optimization/92860 PR target/99592 * optc-save-gen.awk: Remove exceptions.
[Bug target/99592] arm: internal compiler error using arm_neon.h with -pg
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99592 Arnd Bergmann changed: What|Removed |Added Status|RESOLVED|WAITING Resolution|FIXED |--- --- Comment #11 from Arnd Bergmann --- Thanks a lot!
[Bug target/99592] arm: internal compiler error using arm_neon.h with -pg
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99592 Martin Liška changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED --- Comment #10 from Martin Liška --- Fixed now, will prepare a proper fix in the next stage 1.
[Bug target/99592] arm: internal compiler error using arm_neon.h with -pg
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99592 --- Comment #9 from CVS Commits --- The master branch has been updated by Martin Liska : https://gcc.gnu.org/g:408d137027b1c39546d39fdbca7347b3dddba8ea commit r11-7691-g408d137027b1c39546d39fdbca7347b3dddba8ea Author: Martin Liska Date: Tue Mar 16 14:42:01 2021 +0100 options: ignore flag_ipa_ra in cl_optimization_compare gcc/ChangeLog: PR target/99592 * optc-save-gen.awk: Add flag_ipa_ra to exceptions for cl_optimization_compare function. gcc/testsuite/ChangeLog: PR target/99592 * gcc.target/arm/pr99592.c: New test.
[Bug target/99592] arm: internal compiler error using arm_neon.h with -pg
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99592 Martin Liška changed: What|Removed |Added Target Milestone|--- |12.0 --- Comment #8 from Martin Liška --- It's modified here: if (TARGET_THUMB1_P (opts->x_target_flags)) opts->x_flag_ipa_ra = 0; else opts->x_flag_ipa_ra = to->x_flag_ipa_ra; Anyway, I will add it to the whitelist for now and will fix in the next stage1.
[Bug target/99592] arm: internal compiler error using arm_neon.h with -pg
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99592 Martin Liška changed: What|Removed |Added Status|WAITING |ASSIGNED --- Comment #7 from Martin Liška --- All right, I can reproduce it: $ cat pr99592.c #pragma GCC push_options #pragma GCC target "" #pragma GCC pop_options $ ./xgcc -B. pr99592.c -c -p -O2 pr99592.c:3:9: internal compiler error: ‘global_options’ are modified in local context 3 | #pragma GCC pop_options | ^~~ happens due to: (gdb) p ptr1->x_flag_ipa_ra $1 = 0 (gdb) p ptr2->x_flag_ipa_ra $2 = 1
[Bug target/99592] arm: internal compiler error using arm_neon.h with -pg
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99592 --- Comment #6 from Arnd Bergmann --- Created attachment 50395 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50395=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 : /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
[Bug target/99592] arm: internal compiler error using arm_neon.h with -pg
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99592 --- Comment #5 from Martin Liška --- All right, can you please attach a pre-processed source file using -E option?
[Bug target/99592] arm: internal compiler error using arm_neon.h with -pg
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99592 --- Comment #4 from Arnd Bergmann --- $ arm-linux-gnueabihf-gcc-11 -v Using built-in specs. COLLECT_GCC=arm-linux-gnueabihf-gcc-11 COLLECT_LTO_WRAPPER=/usr/lib/gcc-cross/arm-linux-gnueabihf/11/lto-wrapper Target: arm-linux-gnueabihf Configured with: ../src/configure -v --with-pkgversion='Ubuntu 11-20210310-1ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-11/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-11 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libitm --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --without-target-system-zlib --enable-multiarch --enable-multilib --disable-sjlj-exceptions --with-arch=armv7-a --with-fpu=vfpv3-d16 --with-float=hard --with-mode=thumb --disable-werror --enable-multilib --enable-checking=yes --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=arm-linux-gnueabihf --program-prefix=arm-linux-gnueabihf- --includedir=/usr/arm-linux-gnueabihf/include --with-build-config=bootstrap-lto-lean --enable-link-serialization=2 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 11.0.1 20210310 (experimental) [master revision 8dc225d311e:2453ef06221:5987d8a79cda1069c774e5c302d5597310270026] (Ubuntu 11-20210310-1ubuntu1)
[Bug target/99592] arm: internal compiler error using arm_neon.h with -pg
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99592 --- Comment #3 from Martin Liška --- Please run: $ gcc -v
[Bug target/99592] arm: internal compiler error using arm_neon.h with -pg
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99592 Arnd Bergmann changed: What|Removed |Added CC||doko at gcc dot gnu.org --- Comment #2 from Arnd Bergmann --- (In reply to Martin Liška from comment #1) > Please, how do you configure the cross compiler? This is the Ubuntu snapshot build, Matthias Klose probably has the exact configuration at hand.
[Bug target/99592] arm: internal compiler error using arm_neon.h with -pg
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99592 Martin Liška changed: What|Removed |Added Status|UNCONFIRMED |WAITING Assignee|unassigned at gcc dot gnu.org |marxin at gcc dot gnu.org Last reconfirmed||2021-03-15 Ever confirmed|0 |1 --- Comment #1 from Martin Liška --- Please, how do you configure the cross compiler?