https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89456

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-02-22
            Summary|target attribute doesn't    |target attribute doesn't
                   |work well with              |work well with -mXXX
                   |-march=native               |
     Ever confirmed|0                           |1

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
[hjl@gnu-4 pr89456]$ cat x.i
__attribute__ ((target("arch=broadwell")))
float
foo (float x, float y)
{
  return y;
}
[hjl@gnu-4 pr89456]$ gcc -O2 -mavx -S x.i
x.i: In function ‘foo’:
x.i:4:1: error: SSE register return with SSE disabled
 {
 ^
[hjl@gnu-4 pr89456]$

Reply via email to