[Bug lto/54231] LTO generates code for the wrong CPU if different options used
thiago at kde dot org
gcc-bugzilla@gcc.gnu.org
Wed Sep 12 13:02:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54231
--- Comment #14 from Thiago Macieira <thiago at kde dot org> 2012-09-12 13:02:23 UTC ---
>From GCC's own manual:
(Node "Function attributes"):
On the 386/x86_64 and PowerPC backends, the inliner will not
inline a function that has different target options than the
caller, unless the callee has a subset of the target options of
the caller. For example a function declared with `target("sse3")'
can inline a function with `target("sse2")', since `-msse3'
implies `-msse2'.
More information about the Gcc-bugs
mailing list