This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/19341] New: [4.0 Regression] DCE eliminating non-dead code
- From: "belyshev at depni dot sinp dot msu dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Jan 2005 01:29:06 -0000
- Subject: [Bug tree-optimization/19341] New: [4.0 Regression] DCE eliminating non-dead code
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
void abort (void);
void __attribute__((regparm(1))) g (int *p)
{
if (*p != 1)
abort ();
}
int main ()
{
int k;
k = 1;
asm volatile ("call g" :: "a" (&k));
return 0;
}
--
Summary: [4.0 Regression] DCE eliminating non-dead code
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Keywords: wrong-code
Severity: normal
Priority: P1
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: belyshev at depni dot sinp dot msu dot ru
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19341