This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/20634] code fails to compile/code generation issue with -funit-at-a-time
- 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: 14 Apr 2005 18:02:56 -0000
- Subject: [Bug target/20634] code fails to compile/code generation issue with -funit-at-a-time
- References: <20050325054527.20634.halcy0n@gentoo.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From belyshev at depni dot sinp dot msu dot ru 2005-04-14 18:02 -------
reduced testcase, compile with '-O1 -fschedule-insns -funit-at-a-time',
fails with 3.3-hammer, 3.4, 4.0 and mainline, introduced in 2003:
: Search converges between 2003-07-11-trunk (#291) and 2003-07-12-trunk (#292).
------------------------------------------------------------------------------
unsigned int strlen (const char *);
static void append (char *p0, char **pp, int *j, char *p1)
{
int k = strlen (p0);
if (p1 && pp)
k += strlen (p1);
if (*j + k)
while (*j);
}
int yyparse (int foo)
{
if (foo)
append (0, 0, 0, 0);
else
append (0, 0, 0, 0);
}
------------------------------------------------------------------------------
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-04-14 18:02:56
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20634