[Bug target/16354] va-arg-25.c -Os regression fails on i686

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Jul 4 00:33:00 GMT 2004


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-07-04 00:33 -------
Confirmed, the reason why it fails on i686 at -Os only is because of this code:
  /* Validate -mpreferred-stack-boundary= value, or provide default.
     The default of 128 bits is for Pentium III's SSE __m128, but we
     don't want additional code to keep the stack aligned when
     optimizing for code size.  */
  ix86_preferred_stack_boundary = (optimize_size
                                   ? TARGET_64BIT ? 128 : 32
                                   : 128);

So the problem is has to do with alignment problems on the stack and I know I have seen this bug 
before too.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
          Component|rtl-optimization            |target
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-07-04 00:33:39
               date|                            |


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



More information about the Gcc-bugs mailing list