Bug 10580 - [3.3] [powerpc] ICE with -O -Wunreachable-code
Summary: [3.3] [powerpc] ICE with -O -Wunreachable-code
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: unknown
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2003-05-01 13:56 UTC by 189702
Modified: 2003-07-25 17:33 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description 189702 2003-05-01 13:56:00 UTC
[ 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;
}

Release:
unknown
Comment 1 Wolfgang Bangerth 2003-05-01 14:01:46 UTC
State-Changed-From-To: open->feedback
State-Changed-Why: Could you possibly try with the latest CVS versions? Jason
    fixed a bug that looks suspiciously similar yesterday or
    the day before.
    
    W.
Comment 2 Matthias Klose 2003-05-01 15:24:07 UTC
State-Changed-From-To: feedback->closed
State-Changed-Why: Fixed in 3.3 CVS 20030429