This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/20634] code fails to compile/code generation issue with -funit-at-a-time


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]