[Bug tree-optimization/18134] New: computed goto and if statement
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Oct 24 23:43:00 GMT 2004
int foo (int a)
{
void *p;
if (a!=0)
p = &&L0;
else
p = &&L1;
goto *p;
L0:
return 1;
L1:
return 0;
}
this should be equivant to:
int foo(int a) { return a !=0;}
--
Summary: computed goto and if statement
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Keywords: missed-optimization, TREE
Severity: enhancement
Priority: P2
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18134
More information about the Gcc-bugs
mailing list