This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/15242] pessimization of "goto *"
- 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 May 2004 04:45:39 -0000
- Subject: [Bug optimization/15242] pessimization of "goto *"
- References: <20040501142654.15242.anton@mips.complang.tuwien.ac.at>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-05-06 04:45 -------
Confirmed a reduced testcase:
int f(int i, int j)
{
static void *a[5] = {&&b,&&c,&&d,&&e,&&f};
if (i >=5) i = 0; if (i<=0)i=5;
goto *a[i];
e:
i++; if (i >=5) i = 0; if (i<=0)i=5;
j++;
goto *a[i];
f:
i--; if (i >=5) i = 0; if (i<=0)i=5;
j--;
goto *a[i];
b:
i+=2; if (i >=5) i = 0; if (i<=0)i=5;
goto *a[i];
c:
i*=2; if (i >=5) i = 0; if (i<=0)i=5;
goto *a[i];
d:;
}
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-05-06 04:45:35
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15242