[Bug lto/101146] mesa build with LTO is crashing

2021-06-21 Thread kloczko.tomasz at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101146 --- Comment #10 from Tomasz Kłoczko --- Just restarted gdm on system with mesa compiled with -flifetime-dse=1 abd it works. Looks like it wi still sometbing to do with medsa code to add probably necessary #pragma around the code which relies on

[Bug lto/101146] mesa build with LTO is crashing

2021-06-21 Thread kloczko.tomasz at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101146 --- Comment #9 from Tomasz Kłoczko --- (In reply to Andrew Pinski from comment #3) > Does adding -fno-strict-aliasing help? > What is exactly command lines being used to compile the object files and the > final link? Just tested binaries builkd

[Bug lto/101146] mesa build with LTO is crashing

2021-06-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101146 --- Comment #8 from Andrew Pinski --- (In reply to Tomasz Kłoczko from comment #7) > (In reply to Andrew Pinski from comment #4) > > https://gitlab.freedesktop.org/mesa/mesa/-/issues/2977 > > > > So not a GCC bug. > > This not the same stack t

[Bug lto/101146] mesa build with LTO is crashing

2021-06-21 Thread kloczko.tomasz at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101146 --- Comment #7 from Tomasz Kłoczko --- (In reply to Andrew Pinski from comment #4) > https://gitlab.freedesktop.org/mesa/mesa/-/issues/2977 > > So not a GCC bug. This not the same stack trace and that ticket is more than year old.

[Bug lto/101146] mesa build with LTO is crashing

2021-06-21 Thread kloczko.tomasz at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101146 --- Comment #6 from Tomasz Kłoczko --- Hmm .. why status has been changed to RESOLVED?

[Bug lto/101146] mesa build with LTO is crashing

2021-06-21 Thread kloczko.tomasz at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101146 --- Comment #5 from Tomasz Kłoczko --- About strict aliasing: I need to check that (will back with results shortly) Here is short sctipt to produce binaries: CFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORT

[Bug lto/101146] mesa build with LTO is crashing

2021-06-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101146 Andrew Pinski changed: What|Removed |Added Resolution|--- |MOVED Status|WAITING

[Bug lto/101146] mesa build with LTO is crashing

2021-06-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101146 --- Comment #3 from Andrew Pinski --- Does adding -fno-strict-aliasing help? What is exactly command lines being used to compile the object files and the final link?

[Bug lto/101146] mesa build with LTO is crashing

2021-06-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101146 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last reconfirmed|

[Bug lto/101146] mesa build with LTO is crashing

2021-06-21 Thread kloczko.tomasz at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101146 --- Comment #1 from Tomasz Kłoczko --- I forgot about on crucial detail. To reproduce that you need env with NVidia card. In my case I'm using :18:00.1 Audio device: NVIDIA Corporation GP104 High Definition Audio Controller (rev a1) Howeve