This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]