[Bug target/39258] No ABI warnings on __m128i when SSE is disabled

hjl dot tools at gmail dot com gcc-bugzilla@gcc.gnu.org
Sun Feb 22 19:21:00 GMT 2009



------- Comment #1 from hjl dot tools at gmail dot com  2009-02-22 19:21 -------
The ABI warnings are inconsistent:

bash-3.2$ cat u3.i
typedef long long __m128i __attribute__ ((__vector_size__ (16),
__may_alias__)); 

__m128i
bar2 (void)
{
  __m128i x = (__m128i) { 0, 0 };
  return x;
}
bash-3.2$ gcc -S -mno-sse u3.i     
u3.i: In function ‘bar2’:
u3.i:5: error: SSE register return with SSE disabled
bash-3.2$ gcc -S -mno-sse u3.i  -m32
bash-3.2$ 

construct_container has

  /* We allowed the user to turn off SSE for kernel mode.  Don't crash if
     some less clueful developer tries to use floating-point anyway.  */

But we issue an error.


-- 

hjl dot tools at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ubizjak at gmail dot com
   Target Milestone|---                         |4.5.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39258



More information about the Gcc-bugs mailing list