target/9945: ultra trivial file (10 lines) causes internal compiler error
emmanuel.michon@m4x.org
emmanuel.michon@m4x.org
Tue Mar 4 20:21:00 GMT 2003
>Number: 9945
>Category: target
>Synopsis: ultra trivial file (10 lines) causes internal compiler error
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Mar 04 19:56:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: emmanuel.michon@m4x.org
>Release: gcc-3.2.1
>Organization:
>Environment:
linux, cross compiler running on i386 outputting MN10200 code
>Description:
complete source file follows:
simple.c ----------------------------
static void CalledFunction(int param1,int param2)
{
int local1,local2;
local1=param1;
}
static int CallingFunction(int x)
{
int y;
CalledFunction(1,2);
return 5;
}
----------------------------
causes
/users/michon/crcglou/helix.c: In function `CalledFunction':
/users/michon/crcglou/helix.c:5: Internal compiler error in make_decl_rtl, at varasm.c:834
>How-To-Repeat:
build the cross-compiler:
./configure --target=mn10200-elf --enable-languages=c
make -j2 all-gcc
This does not go until the end because i do not care for binutils. But cc1 binary is here!
Run:
./cc1 -da simple.c
to reproduce.
Hint: I'm using mn10200 backend because this processor
is close to the one I plan to port gcc to. Steps after
assembly generation do not really matter to me so far.
>Fix:
no fix to propose!
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list