[Bug tree-optimization/115694] ICE when building scipy with LTO

2024-06-28 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115694 --- Comment #6 from Sam James --- Bit more. meson-generated_cython_special.c.i: ``` _Complex a; void special_cairye(); void b() { special_cairye(a); } ``` special_wrappers.cpp.ii: ``` typedef struct { double a[2]; } b; extern "C" void specia

[Bug tree-optimization/115694] ICE when building scipy with LTO

2024-06-28 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115694 --- Comment #5 from Sam James --- Bit smaller: ``` gcc -O1 -flto -c meson-generated_cython_special.c.i -o meson-generated_cython_special.c.o g++ -O1 -flto -fvisibility=hidden -shared special_wrappers.cpp.ii meson-generated_cython_special.c.o -o

[Bug tree-optimization/115694] ICE when building scipy with LTO

2024-06-28 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115694 --- Comment #4 from Sam James --- Reduced. meson-generated_cython_special.c.i: ``` _Complex a; void special_cairye(); void b() { special_cairye(a); } ``` special_wrappers.cpp.ii: ``` typedef struct { double a[2]; } b; extern "C" void special