[Bug target/104890] [11 Regression] <x86gprintrin.h> doesn't work with __attribute__((target ("general-regs-only"))) and -march=i686

hjl.tools at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Mar 21 04:27:51 GMT 2022


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |crazylht at gmail dot com

--- Comment #15 from H.J. Lu <hjl.tools at gmail dot com> ---
[hjl@gnu-skx-1 gcc]$ cat /tmp/x.c
#include <x86gprintrin.h>

__attribute__((target("no-mmx,no-sse")))
void
_Unwind_Resume_or_Rethrow(void) 
{
  _inc_ssp(1);
}
[hjl@gnu-skx-1 gcc]$ ./xgcc -B./ -O2 -m32  /tmp/x.c -S  -march=tigerlake
In file included from ./include/x86gprintrin.h:45,
                 from /tmp/x.c:1:
./include/cetintrin.h: In function ?_Unwind_Resume_or_Rethrow?:
./include/cetintrin.h:55:1: error: inlining failed in call to ?always_inline?
?_inc_ssp?: target specific option mismatch
   55 | _inc_ssp (unsigned int __B)
      | ^~~~~~~~
/tmp/x.c:7:3: note: called from here
    7 |   _inc_ssp(1);
      |   ^~~~~~~~~~~
[hjl@gnu-skx-1 gcc]$


More information about the Gcc-bugs mailing list