void foo (void) { void *p; p = &&L0; goto *p; L0: return; } This is only needed for tree level.
-- Summary: computed gotos are not folded back to regual gotos when it is found it is not a computed goto at all 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=18133