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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-01-12
                 CC|                            |hubicka at gcc dot gnu.org
          Component|target                      |middle-end
            Summary|_mm_clmulepi64_si128        |using _mm_clmulepi64_si128
                   |doesn't compile with -O2    |doesn't error with -O0
     Ever confirmed|0                           |1

--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to charles from comment #5)
> No you're right.
> 
> I could add, though, that the compiler should have said something.
> 
> Also, why did it compile just fine with -O0?

Sounds like a bug (we should error immediately here IMHO).  Probably
needs to annotate the CIF codes with whether this is "fatal" (won't
change with other inlining, IPA or LTO).

OTOH the headers are also poorly designed to trigger this kind of error.

Maybe we want to support __attribute__((always_inline("ISA not enabled")))
instead to be able to print a custom error message?

Reply via email to