This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/19283] [4.0 Regression] Bad code generated in final_cleanup
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Jan 2005 00:28:31 -0000
- Subject: [Bug tree-optimization/19283] [4.0 Regression] Bad code generated in final_cleanup
- References: <20050105234928.19283.snyder@fnal.gov>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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