[Bug target/23338] -march=i686 -O2 generates smaller code that -march=i686 -Os

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Aug 11 19:56:00 GMT 2005


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-11 19:56 -------
Confirmed.  Note -march=i486 -O2 generates the same code as -Os i686 which means that this might 
want to be enabled if we have a large offset and -Os.
Another example:
int i;
void foo (void)
{
 i = 0;
}

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
 GCC target triplet|i686-pc-linux-gnu           |i686-*-*
           Keywords|                            |missed-optimization
   Last reconfirmed|0000-00-00 00:00:00         |2005-08-11 19:56:01
               date|                            |


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



More information about the Gcc-bugs mailing list