This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c/5448: gcc emits internal error (unrecognized insn)
- From: rodrigc at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, ojolly at caramail dot com
- Date: 22 Jan 2002 00:54:05 -0000
- Subject: Re: c/5448: gcc emits internal error (unrecognized insn)
- Reply-to: rodrigc at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, ojolly at caramail dot com, gcc-gnats at gcc dot gnu dot org
Synopsis: gcc emits internal error (unrecognized insn)
State-Changed-From-To: open->analyzed
State-Changed-By: rodrigc
State-Changed-When: Mon Jan 21 16:54:04 2002
State-Changed-Why:
Crash reproduced on gcc 3.0.3 and gcc 3.1 mainline.
The line which is causing the problem is:
section[pWrd - sCfgFileLine - 1] = '\0';
where the variables are:
char *section;
char *pWrd;
char sCfgFileLine[8192];
What exactly are you trying to do in this piece of
code? The compiler should not crash, but this code
looks suspect.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5448