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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
So starting with GCC 7 we get a warning with the no-warning case:
<source>:3:13: warning: SSE instruction set disabled, using 387 arithmetics
 void t1(void) { }
             ^
<source>:3:13: warning: SSE instruction set disabled, using 387 arithmetics

Starting with GCC 11 we get a warning on the pragma itself:
<source>:2:29: warning: SSE instruction set disabled, using 387 arithmetics
    2 | #pragma GCC target ("no-sse")
      |                             ^
<source>:3:13: warning: SSE instruction set disabled, using 387 arithmetics
    3 | void t1(void) { }
      |             ^
<source>:3:13: warning: SSE instruction set disabled, using 387 arithmetics

Reply via email to