[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[3.3] [powerpc] ICE with -O -Wunreachable-code



>Submitter-Id:	net
>Originator:	"Robertson, Evin C" <ECR1120@MAIL.ECU.EDU>
>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 189702@bugs.debian.org 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 to: