[Bug target/118891] [14/15 regression] gcc 14 fails to build from source on aarch64_be: "error: ‘dynamic_cast’ not permitted with ‘-fno-rtti’"

2025-04-05 Thread marcus at mc dot pp.se via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118891 --- Comment #21 from marcus at mc dot pp.se --- For completeness, I tried building gcc 14.2.1 using BOOT_CFLAGS="-O2 -fno-tree-vectorize" and the build completed, successfully comparing stages 2 and 3 as equal (although I wouldn't trust the resul

[Bug target/118891] [14/15 regression] gcc 14 fails to build from source on aarch64_be: "error: ‘dynamic_cast’ not permitted with ‘-fno-rtti’"

2025-03-15 Thread marcus at mc dot pp.se via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118891 --- Comment #20 from marcus at mc dot pp.se --- Hi. Do you need more help to fix the broken autovectorization? Again, you don't need ARM hardware; here is how I could reproduce the miscompilation on a PPC64 host: ---8<--- wget https://distfile

[Bug target/118891] [14/15 regression] gcc 14 fails to build from source on aarch64_be: "error: ‘dynamic_cast’ not permitted with ‘-fno-rtti’"

2025-02-22 Thread marcus at mc dot pp.se via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118891 --- Comment #19 from marcus at mc dot pp.se --- If you don't have ARM hardware, the issue can be seen in qemu: hakua:/tmp% uname -a Linux hakua 5.4.275 #1 SMP Wed May 8 17:18:04 CEST 2024 ppc64 POWER9, altivec supported PowerNV T2P9D01 REV 1.00

[Bug target/118891] [14/15 regression] gcc 14 fails to build from source on aarch64_be: "error: ‘dynamic_cast’ not permitted with ‘-fno-rtti’"

2025-02-22 Thread marcus at mc dot pp.se via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118891 --- Comment #18 from marcus at mc dot pp.se --- vect-iv-7.c is probably a good (small) test case to start looking at. The source code is scalar, but gets auto-vectorized by gcc 14 at -O2. On big endian, the result arr[] becomes 10 8 14 12 18 16

[Bug target/118891] [14/15 regression] gcc 14 fails to build from source on aarch64_be: "error: ‘dynamic_cast’ not permitted with ‘-fno-rtti’"

2025-02-22 Thread marcus at mc dot pp.se via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118891 --- Comment #17 from marcus at mc dot pp.se --- Created attachment 60561 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60561&action=edit Real regressions (PASS -> FAIL) from 13.3 to 14 So, I diffed gcc.sum between 13.3.1 and 14.3., an

[Bug target/118891] [14/15 regression] gcc 14 fails to build from source on aarch64_be: "error: ‘dynamic_cast’ not permitted with ‘-fno-rtti’"

2025-02-20 Thread marcus at mc dot pp.se via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118891 --- Comment #16 from marcus at mc dot pp.se --- Created attachment 60548 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60548&action=edit Result from check-gcc on stage1 of gcc 14.3 on aarch64_be The tests finally completed. So there were

[Bug target/118891] [14/15 regression] gcc 14 fails to build from source on aarch64_be: "error: ‘dynamic_cast’ not permitted with ‘-fno-rtti’"

2025-02-18 Thread marcus at mc dot pp.se via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118891 --- Comment #15 from marcus at mc dot pp.se --- The stage1 testsuite is still running, but I'm seeing a lot of vector test failures: ---8<--- FAIL: gcc.dg/vect/pr53185-2.c execution test FAIL: gcc.dg/vect/pr56826.c execution test FAIL: gcc.dg/ve

[Bug target/118891] [14/15 regression] gcc 14 fails to build from source on aarch64_be: "error: ‘dynamic_cast’ not permitted with ‘-fno-rtti’"

2025-02-17 Thread marcus at mc dot pp.se via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118891 --- Comment #14 from marcus at mc dot pp.se --- Thanks. Running tests now, will get back when the results are in. :-)

[Bug target/118891] [14/15 regression] gcc 14 fails to build from source on aarch64_be: "error: ‘dynamic_cast’ not permitted with ‘-fno-rtti’"

2025-02-15 Thread marcus at mc dot pp.se via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118891 --- Comment #5 from marcus at mc dot pp.se --- > So stage 1 compiler is miscompiling stage 2. Hm, isn't it the stage 2 compiler which is miscompiling libstdc++? It's running .../build/./gcc/xgcc, not .../build/./prev-gcc/xgcc

[Bug target/118891] [14/15 regression] gcc 14 fails to build from source on aarch64_be: "error: ‘dynamic_cast’ not permitted with ‘-fno-rtti’"

2025-02-15 Thread marcus at mc dot pp.se via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118891 --- Comment #12 from marcus at mc dot pp.se --- If it's just a lack of hardware, a regular Raspberry Pi 3 can be used. Compiling gcc on one takes 18.5 hours though... :-) But yeah, if it's a miscompilation of the compiler, then it's probably no

[Bug target/118891] [14/15 regression] gcc 14 fails to build from source on aarch64_be: "error: ‘dynamic_cast’ not permitted with ‘-fno-rtti’"

2025-02-15 Thread marcus at mc dot pp.se via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118891 --- Comment #10 from marcus at mc dot pp.se --- Ok. I did a build with STAGE1_CFLAGS="-O0" STAGE1_CXXFLAGS="-O0" before (mentioned in the Gentoo bug, but not here, sorry) and got the same error, but I can make a new build like that if you want t

[Bug target/118891] [14/15 regression] gcc 14 fails to build from source on aarch64_be: "error: ‘dynamic_cast’ not permitted with ‘-fno-rtti’"

2025-02-15 Thread marcus at mc dot pp.se via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118891 --- Comment #8 from marcus at mc dot pp.se --- Ah, now I see what you mean. Yes, that sounds right. stage1 was built using gcc 13.3.1 and can compile libstdc++ just fine.

[Bug target/118891] [14/15 regression] gcc 14 fails to build from source on aarch64_be: "error: ‘dynamic_cast’ not permitted with ‘-fno-rtti’"

2025-02-15 Thread marcus at mc dot pp.se via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118891 --- Comment #6 from marcus at mc dot pp.se --- Oh, and you asked for the make invocation as well. It's make --output-sync=line -j2 'LDFLAGS=-Wl,-O1 -Wl,--as-needed' LIBPATH=/usr/lib/gcc/aarch64_be-unknown-linux-gnu/14 'STAGE1_CFLAGS= -pipe -O2'

[Bug target/118891] [14/15 regression] gcc 14 fails to build from source on aarch64_be: "error: ‘dynamic_cast’ not permitted with ‘-fno-rtti’"

2025-02-15 Thread marcus at mc dot pp.se via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118891 --- Comment #4 from marcus at mc dot pp.se --- I added the complete build log xz compressed (it's 8 megabytes uncompressed :). The configure arguments are: --host=aarch64_be-unknown-linux-gnu --build=aarch64_be-unknown-linux-gnu --prefix=/usr -

[Bug target/118891] [14/15 regression] gcc 14 fails to build from source on aarch64_be: "error: ‘dynamic_cast’ not permitted with ‘-fno-rtti’"

2025-02-15 Thread marcus at mc dot pp.se via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118891 --- Comment #3 from marcus at mc dot pp.se --- Created attachment 60509 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60509&action=edit Complete build log

[Bug bootstrap/118891] New: gcc 14 fails to build from source on aarch64_be: "error: ‘dynamic_cast’ not permitted with ‘-fno-rtti’"

2025-02-15 Thread marcus at mc dot pp.se via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118891 Bug ID: 118891 Summary: gcc 14 fails to build from source on aarch64_be: "error: ‘dynamic_cast’ not permitted with ‘-fno-rtti’" Product: gcc Version: 14.2.1 Status: UNCO

[Bug target/110606] ICE output_operand: '%&' used without any local dynamic TLS references on powerpc64le-linux-gnu

2023-07-19 Thread marcus at mc dot pp.se via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110606 marcus at mc dot pp.se changed: What|Removed |Added CC||marcus at mc dot pp.se --- Comm