[Bug middle-end/116299] GCC optimizes away code when long double is represented by the IBM double-double method.

2024-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116299 Andrew Pinski changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[Bug middle-end/116299] GCC optimizes away code when long double is represented by the IBM double-double method.

2024-08-09 Thread rmaguire314 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116299 --- Comment #8 from Ryan --- The assembly generated on godbolt for ppc64el is indeed different with the "volatile" included. It may be the default that -O3 is supposed to aggressively optimize this away, but the spltting trick works for architec

[Bug middle-end/116299] GCC optimizes away code when long double is represented by the IBM double-double method.

2024-08-09 Thread rmaguire314 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116299 --- Comment #7 from Ryan --- Created attachment 58887 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58887&action=edit Error in splitting trick when optimizing.

[Bug middle-end/116299] GCC optimizes away code when long double is represented by the IBM double-double method.

2024-08-09 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116299 --- Comment #6 from Sam James --- Please provide preprocessed sources for the bad TU and then try to extract the issue into a standalone file we can compile & execute.

[Bug middle-end/116299] GCC optimizes away code when long double is represented by the IBM double-double method.

2024-08-08 Thread rmaguire314 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116299 --- Comment #5 from Ryan --- Appending. Compiler Options: -pedantic -Wall -Wextra -Wpedantic -Wmissing-field-initializers -Wconversion -Wmissing-prototypes -Wmissing-declarations -Winit-self -Wnull-dereference -Wwrit

[Bug middle-end/116299] GCC optimizes away code when long double is represented by the IBM double-double method.

2024-08-08 Thread rmaguire314 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116299 --- Comment #4 from Ryan --- Ah, sure here you go. Output of gcc -v: gcc version 12.2.0 (Debian 12.2.0-14) Target: powerpc64le-linux-gnu Thread model: posix Output of uname -a: Linux Ryans-CotG 6.1.0-23-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.

[Bug middle-end/116299] GCC optimizes away code when long double is represented by the IBM double-double method.

2024-08-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116299 --- Comment #3 from Andrew Pinski --- Please read https://gcc.gnu.org/bugs/#need .

[Bug middle-end/116299] GCC optimizes away code when long double is represented by the IBM double-double method.

2024-08-08 Thread rmaguire314 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116299 --- Comment #2 from Ryan --- It is a part of a rather large library. How much of it do you want? Here is the full function, in a working condition. /* TMPL_STATIC_INLINE macro found here. */ #include /*

[Bug middle-end/116299] GCC optimizes away code when long double is represented by the IBM double-double method.

2024-08-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116299 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2024-08-08 Status|UNCONFIRM