This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/37358] [4.4 Regression] IPA-CP generates duplicated symbols at -O3
- From: "tbm at cyrius dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Sep 2008 06:56:13 -0000
- Subject: [Bug middle-end/37358] [4.4 Regression] IPA-CP generates duplicated symbols at -O3
- References: <bug-37358-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from tbm at cyrius dot com 2008-09-04 06:56 -------
Slightly smaller testcase (I reduced it before I saw there was a PR already)
/* Testcase by Martin Michlmayr <tbm@cyrius.com> */
void pwInit (int h, int multisample, int num_samples);
void glHint (int target, int mode);
static int a;
static int b[10];
void pwInit (int multisample, int num_samples)
{
pwInit (-1, multisample, num_samples);
}
void pwInit (int h, int multisample, int num_samples)
{
if (h == -1)
h = 0;
for (int i = 0; b[i] >= 0; i++)
a = num_samples;
glHint (0x8534, multisample);
}
--
tbm at cyrius dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tbm at cyrius dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37358