[Mesa-dev] [Bug 83669] fix build with gcc link time optimizer

2019-09-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=83669 GitLab Migration User changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Mesa-dev] [Bug 83669] fix build with gcc link time optimizer

2016-04-21 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=83669 --- Comment #13 from Marc Dietrich --- gcc/clang development is fast and also the mesa supported version numbers of compilers are increasing. So this is a fast moving target. That said, I currently use the _target_ attribute of gcc (not supported

[Mesa-dev] [Bug 83669] fix build with gcc link time optimizer

2016-04-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=83669 Steven Newbury changed: What|Removed |Added CC||s_j_newb...@yahoo.co.uk --- Comment #12

[Mesa-dev] [Bug 83669] fix build with gcc link time optimizer

2014-09-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=83669 --- Comment #11 from Marc Dietrich --- sorry for spamming this bug, here is a better patch to fix the problem diff --git a/src/mesa/Makefile.am b/src/mesa/Makefile.am index e71bccb..bbdb36f 100644 --- a/src/mesa/Makefile.am +++ b/src/mesa/Makefi

[Mesa-dev] [Bug 83669] fix build with gcc link time optimizer

2014-09-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=83669 --- Comment #10 from Marc Dietrich --- I check with -g -O0 and debug symbols are generated, but I can't tell about their usefulness. Compiling with --enable-debug fails though because -DDEBUG seems to do strange things in combination with --enabl

[Mesa-dev] [Bug 83669] fix build with gcc link time optimizer

2014-09-10 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=83669 --- Comment #9 from Fabio Pedretti --- Debug packages on distributions, at least on Debian and Ubuntu, are not properly working anyway since megadrivers. I added a bug to document this here: https://bugs.freedesktop.org/show_bug.cgi?id=83723 --

[Mesa-dev] [Bug 83669] fix build with gcc link time optimizer

2014-09-10 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=83669 --- Comment #8 from Marc Dietrich --- ok, it doesn't crash here (athlon II) which does not support it. Otherwise compiles file with -flto and heaven 4.0 test run. -- You are receiving this mail because: You are the assignee for the bug. ___

[Mesa-dev] [Bug 83669] fix build with gcc link time optimizer

2014-09-10 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=83669 --- Comment #7 from Marc Dietrich --- turns out that we need to specify -msse4.1 to certain LDFLAGS (patch below), but I guess this crashes on platforms not supporting sse4.1. diff --git a/src/gallium/targets/dri/Makefile.am b/src/gallium/target

[Mesa-dev] [Bug 83669] fix build with gcc link time optimizer

2014-09-10 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=83669 --- Comment #6 from Marc Dietrich --- anyone who specifies special CFLAGS is on his own anyway. This also includes CFLAGS="-flto" even now. So we can only support configure options and ignore user specified CFLAGS (ok, configure could check this

[Mesa-dev] [Bug 83669] fix build with gcc link time optimizer

2014-09-10 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=83669 --- Comment #5 from Emil Velikov --- How do you detect/fix the following examples * export CFLAGS="-g" && ./configure --enable-lto --disable-debug && make * ./configure --enable-lto --disable-debug && make CFLAGS="-g" While the first one is ver

[Mesa-dev] [Bug 83669] fix build with gcc link time optimizer

2014-09-10 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=83669 --- Comment #4 from Marc Dietrich --- the gcc info page reports Link-time optimization does not work well with generation of debugging information. Combining -flto with -g is currently experimental and expected to produce unexpected re

[Mesa-dev] [Bug 83669] fix build with gcc link time optimizer

2014-09-09 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=83669 --- Comment #3 from Emil Velikov --- (In reply to comment #2) > Well, initially, debug and lto could be exclusive via configure options, > e.g. --enable-debug or --enable-lto. > Actually it's a bit more convoluted than that. Most distro prep -d

[Mesa-dev] [Bug 83669] fix build with gcc link time optimizer

2014-09-09 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=83669 --- Comment #2 from Marc Dietrich --- Well, initially, debug and lto could be exclusive via configure options, e.g. --enable-debug or --enable-lto. I checked a bit further and with my current setup (r600 gallium), it is only the error above and

[Mesa-dev] [Bug 83669] fix build with gcc link time optimizer

2014-09-09 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=83669 --- Comment #1 from Emil Velikov --- I'm not sure if mesa is ready for LTO yet. The main obstacle being "Fix debug information for LTO programs" [1] the second one is that some symbols get stripped too early as you've noticed :) Any patches wou