This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

target/9945: ultra trivial file (10 lines) causes internal compiler error


>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 dot michon at m4x dot 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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]