[Bug tree-optimization/19283] [4.0 Regression] Bad code generated in final_cleanup

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Jan 6 00:28:00 GMT 2005


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-06 00:28 -------
Hmm, this is fold f'ing up again.
Here is an example for -O1:
void abort (void);
static inline unsigned short foo (unsigned int* p)
{
  return *p;
};
unsigned int u;
int main ()
{
  if ((foo (&u) & 0x8000) != 0)
    abort ();
  return 0;
}


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org


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



More information about the Gcc-bugs mailing list