Bug 13354 - internal compiler error: in sparc_emit_set_const32
Summary: internal compiler error: in sparc_emit_set_const32
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 3.3.2
: P2 critical
Target Milestone: 3.3.3
Assignee: Eric Botcazou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-08 14:25 UTC by Moshe Gottlieb
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host: sparc-sun-solaris2.8
Target: sparc-sun-solaris2.8
Build: sparc-sun-solaris2.8
Known to work:
Known to fail:
Last reconfirmed:


Attachments
Preprocessed source C++ file (gzipped, cause it was big..) (186.78 KB, application/octet-stream)
2003-12-08 14:30 UTC, Moshe Gottlieb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Moshe Gottlieb 2003-12-08 14:25:41 UTC
Platform: Sparc Solaris 2.8
GCC version: 3.3.2 (using a package from http://www.sunfreeware.com)

Exact bug message:
um.cpp: In member function `void UM::_ZThn5120_N2UMD1Ev()':
um.cpp:72: internal compiler error: in sparc_emit_set_const32, at
   config/sparc/sparc.c:1377
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

Compilation options: just do a 'g++ -c um.ii -o um.o'
Comment 1 Moshe Gottlieb 2003-12-08 14:30:16 UTC
Created attachment 5300 [details]
Preprocessed source C++ file (gzipped, cause it was big..)

This is the preprocessed file that causes the bug.
gunzip it, and then:
g++ -o um.o -c um.ii 

To reproduce the bug
Comment 2 Eric Botcazou 2003-12-08 16:06:51 UTC
Really, really stupid bug. Fixing.
Comment 3 GCC Commits 2003-12-10 15:25:46 UTC
Subject: Bug 13354

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	ebotcazou@gcc.gnu.org	2003-12-10 15:25:42

Modified files:
	gcc            : ChangeLog 
	gcc/config/sparc: sparc.c 

Log message:
	PR target/13354
	* config/sparc/sparc.c (sparc_output_mi_thunk): Load DELTA
	manually if one can do that with only one instruction.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.1972&r2=2.1973
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/sparc/sparc.c.diff?cvsroot=gcc&r1=1.270&r2=1.271

Comment 4 GCC Commits 2003-12-10 15:30:45 UTC
Subject: Bug 13354

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_3-branch
Changes by:	ebotcazou@gcc.gnu.org	2003-12-10 15:30:42

Modified files:
	gcc            : ChangeLog 
	gcc/config/sparc: sparc.c 

Log message:
	PR target/13354
	* config/sparc/sparc.c (sparc_output_mi_thunk): Load DELTA
	manually if one can do that with only one instruction.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.16114.2.833&r2=1.16114.2.834
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/sparc/sparc.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.233.4.7&r2=1.233.4.8

Comment 5 Eric Botcazou 2003-12-10 15:32:02 UTC
See http://gcc.gnu.org/ml/gcc-patches/2003-12/msg00839.html