>Submitter-Id:  net
>Originator:    "Robertson, Evin C" <[EMAIL PROTECTED]>
>Organization:  The Debian Project
>Confidential:  no
>Synopsis:      
>Severity:      serious
>Priority:      low
>Category:      target
>Class:         ice-on-legal-code
>Description:
[ Reported to the Debian BTS as report #189702.
  Please CC [EMAIL PROTECTED] on replies.
  Log of report can be found at http://bugs.debian.org/189702 ]
        

behaviour seen with 3.3 CVS 20030427, not with 3.4 CVS 20030302

gcc segfaults sometimes on PPC when run with -O -Wunreachable-code

Attached code sample is from bison output.  Does not seem to happen
with the same version on x86.

$ gcc -c -O -Wunreachable-code test.c
test.c: In function `yystpcpy':
test.c:14: internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


char * yystpcpy(char *yydest, const char *yysrc)
{
  char *yyd = yydest;
  const char *yys = yysrc;

  while ((*yyd++ = *yys++) != '\0')
      ;

  return yyd - 1;
}
>How-To-Repeat:
        
>Fix:
        


Reply via email to