[Bug driver/42445] -march=native isn't saved in COLLECT_GCC_OPTIONS
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42445 Dmitry Gorbachev d.g.gorbachev at gmail dot com changed: What|Removed |Added CC||hubicka at ucw dot cz --- Comment #1 from Dmitry Gorbachev d.g.gorbachev at gmail dot com 2011-01-06 14:44:00 UTC --- This bug causes http://gcc.gnu.org/ml/gcc-help/2010-11/msg00291.html.
[Bug driver/42445] -march=native isn't saved in COLLECT_GCC_OPTIONS
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42445 H.J. Lu hjl.tools at gmail dot com changed: What|Removed |Added CC||jsm28 at gcc dot gnu.org --- Comment #2 from H.J. Lu hjl.tools at gmail dot com 2011-01-06 15:03:29 UTC --- Joseph, can the new driver framework fix it?
[Bug driver/42445] -march=native isn't saved in COLLECT_GCC_OPTIONS
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42445 --- Comment #3 from joseph at codesourcery dot com joseph at codesourcery dot com 2011-01-06 16:02:11 UTC --- I know nothing about what the issue is supposed to be here or what is or is not supposed to be in COLLECT_GCC_OPTIONS or how COLLECT_GCC_OPTIONS is used.
[Bug driver/42445] -march=native isn't saved in COLLECT_GCC_OPTIONS
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42445 --- Comment #4 from H.J. Lu hjl.tools at gmail dot com 2011-01-06 16:34:30 UTC --- (In reply to comment #3) I know nothing about what the issue is supposed to be here or what is or is not supposed to be in COLLECT_GCC_OPTIONS or how COLLECT_GCC_OPTIONS is used. We have several issues: 1. COLLECT_GCC_OPTIONS is used by LTO. 2. GCC driver knows -march=native. 3. Compilers, cc1/cc1plus, ... don't know -march=native. GCC driver translates -march=native to something cc1/cc1plus knows. Since -march=native isn't saved in COLLECT_GCC_OPTIONS, LTO doesn't work with -march=native. If -march=native handling is moved from GCC driver to cc1/cc1plus, this issue can be solved very easily.
[Bug driver/42445] -march=native isn't saved in COLLECT_GCC_OPTIONS
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42445 --- Comment #5 from joseph at codesourcery dot com joseph at codesourcery dot com 2011-01-06 16:47:48 UTC --- On Thu, 6 Jan 2011, hjl.tools at gmail dot com wrote: GCC driver translates -march=native to something cc1/cc1plus knows. Since -march=native isn't saved in COLLECT_GCC_OPTIONS, LTO doesn't work with -march=native. If -march=native handling is moved from GCC driver to cc1/cc1plus, this issue can be solved very easily. It's deliberate that -march=native is in the driver so that the output of gcc -v shows the particular options it chose. Maybe COLLECT_GCC_OPTIONS should be saving the options that were generated from -march=native in the driver.