public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/28583] New: ICE in default_secondary_reload, at targhooks.c:532 when building libgcc2.c as _divsc3.o
@ 2006-08-03 13:37 dhowells at redhat dot com
2006-08-03 13:39 ` [Bug c/28583] " dhowells at redhat dot com
` (11 more replies)
0 siblings, 12 replies; 13+ messages in thread
From: dhowells at redhat dot com @ 2006-08-03 13:37 UTC (permalink / raw)
To: gcc-bugs
I've come across the following whilst trying to build a gcc cross-compiler:
/warthog/frv/gcc/build/./gcc/xgcc -B/warthog/frv/gcc/build/./gcc/
-B/opt/frv-4.1/frv-linux-gnu/bin/ -B/opt/frv-4.1/frv-linux-gnu/lib/ -isystem
/opt/frv-4.1/frv-linux-gnu/include -isystem
/opt/frv-4.1/frv-linux-gnu/sys-include -O2 -O2 -g -O2 -DIN_GCC
-DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g
-DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I.
-I. -I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/../include
-I../../gcc/gcc/../libcpp/include -I../../gcc/gcc/../libdecnumber
-I../libdecnumber -DL_divsc3 -fvisibility=hidden -DHIDE_EXPORTS -c
../../gcc/gcc/libgcc2.c -o libgcc/./_divsc3.o
../../gcc/gcc/libgcc2.c: In function ‘__divsc3’:
../../gcc/gcc/libgcc2.c:1910: internal compiler error: in
default_secondary_reload, at targhooks.c:532
The compiler sources were pulled by Subversion from the gcc repository:
Path: .
URL: svn://gcc.gnu.org/svn/gcc/trunk
Repository Root: svn://gcc.gnu.org/svn/gcc
Repository UUID: 138bc75d-0d04-0410-961f-82ee72b054a4
Revision: 115899
Node Kind: directory
Schedule: normal
Last Changed Author: schwab
Last Changed Rev: 115899
Last Changed Date: 2006-08-03 10:28:37 +0100 (Thu, 03 Aug 2006)
Properties Last Updated: 2006-08-01 21:01:27 +0100 (Tue, 01 Aug 2006)
The binutils tools being used were:
warthog>./as --version
GNU assembler 2.14-frv-060512-1 20031112
And the tools necessary for the compiler can be obtained from:
http://people.redhat.com/~dhowells/frv/as
http://people.redhat.com/~dhowells/frv/ld
http://people.redhat.com/~dhowells/frv/ar
http://people.redhat.com/~dhowells/frv/ranlib
http://people.redhat.com/~dhowells/frv/nm
http://people.redhat.com/~dhowells/frv/objdump
http://people.redhat.com/~dhowells/frv/strip
Or in a huge tarball with lots of other stuff from:
ftp://ftp.ges.redhat.com/private/releng/frv-060512-Fc6734/tools.tar.bz2
I've reproduced this problem compiling gcc on on an SMP i686 box and a UP
x86_64 box. On both boxes the native compiler was installed from the
gcc-4.1.1-1.fc5 Fedora Core 5 RPMs:
warthog>gcc -v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-libgcj-multifile
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk
--disable-dssi --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre
--with-cpu=generic --host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.1 20060525 (Red Hat 4.1.1-1)
warthog255>ssh hades gcc -v
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-libgcj-multifile
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk
--disable-dssi --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre
--with-cpu=generic --host=i386-redhat-linux
Thread model: posix
gcc version 4.1.1 20060525 (Red Hat 4.1.1-1)
The partially built gcc claims its version to be:
warthog>./gcc/xgcc -v
Using built-in specs.
Target: frv-linux-gnu
Configured with: ../gcc/configure --target=frv-linux-gnu --prefix=/opt/frv-4.1
--enable-languages=c --with-build-time-tools=/opt/frv-4.1/frv-linux-gnu/bin/
--with-as=/opt/frv-4.1/frv-linux-gnu/bin/frv-linux-gnu-as
Thread model: posix
gcc version 4.2.0 20060803 (experimental)
I configured the package with the configuration line you can see above and
then just ran "make".
The intermediate compiler can be used to trigger the bug with following
command line:
./gcc/xgcc -B./gcc -O2 -c wibble.c -o wibble.o
from within the build directory. wibble.c is the attached preprocessed and
stripped down version of libgcc2.c.
Note that adding:
#define __builtin_expect(X, Y) (X)
to the top of the file seems to make the problem go away.
David
--
Summary: ICE in default_secondary_reload, at targhooks.c:532 when
building libgcc2.c as _divsc3.o
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dhowells at redhat dot com
GCC build triplet: x86_64-unknown-linux-gnu, i686-pc-linux-gnu
GCC host triplet: x86_64-unknown-linux-gnu, i686-pc-linux-gnu
GCC target triplet: frv-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28583
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/28583] ICE in default_secondary_reload, at targhooks.c:532 when building libgcc2.c as _divsc3.o
2006-08-03 13:37 [Bug c/28583] New: ICE in default_secondary_reload, at targhooks.c:532 when building libgcc2.c as _divsc3.o dhowells at redhat dot com
@ 2006-08-03 13:39 ` dhowells at redhat dot com
2006-08-04 8:36 ` [Bug target/28583] [4.2 regression] " tbm at gcc dot gnu dot org
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: dhowells at redhat dot com @ 2006-08-03 13:39 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from dhowells at redhat dot com 2006-08-03 13:38 -------
Created an attachment (id=12004)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12004&action=view)
Stripped down testcase for the bug
I get the error on line 92 of this source file:
warthog>./gcc/xgcc -B./gcc -O2 -c wibble.c -o wibble.o
wibble.c: In function ‘__divsc3’:
wibble.c:92: internal compiler error: in default_secondary_reload, at
targhooks.c:532
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28583
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug target/28583] [4.2 regression] ICE in default_secondary_reload, at targhooks.c:532 when building libgcc2.c as _divsc3.o
2006-08-03 13:37 [Bug c/28583] New: ICE in default_secondary_reload, at targhooks.c:532 when building libgcc2.c as _divsc3.o dhowells at redhat dot com
2006-08-03 13:39 ` [Bug c/28583] " dhowells at redhat dot com
@ 2006-08-04 8:36 ` tbm at gcc dot gnu dot org
2006-08-08 1:30 ` pinskia at gcc dot gnu dot org
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: tbm at gcc dot gnu dot org @ 2006-08-04 8:36 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from tbm at gcc dot gnu dot org 2006-08-04 08:36 -------
Confirmed.
--
tbm at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |aoliva at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |build, ice-on-valid-code
Last reconfirmed|0000-00-00 00:00:00 |2006-08-04 08:36:24
date| |
Summary|ICE in |[4.2 regression] ICE in
|default_secondary_reload, at|default_secondary_reload, at
|targhooks.c:532 when |targhooks.c:532 when
|building libgcc2.c as |building libgcc2.c as
|_divsc3.o |_divsc3.o
Target Milestone|--- |4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28583
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug target/28583] [4.2 regression] ICE in default_secondary_reload, at targhooks.c:532 when building libgcc2.c as _divsc3.o
2006-08-03 13:37 [Bug c/28583] New: ICE in default_secondary_reload, at targhooks.c:532 when building libgcc2.c as _divsc3.o dhowells at redhat dot com
2006-08-03 13:39 ` [Bug c/28583] " dhowells at redhat dot com
2006-08-04 8:36 ` [Bug target/28583] [4.2 regression] " tbm at gcc dot gnu dot org
@ 2006-08-08 1:30 ` pinskia at gcc dot gnu dot org
2006-08-20 22:25 ` mmitchel at gcc dot gnu dot org
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-08-08 1:30 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2006-08-08 01:30 -------
gcc_assert (insn_data[(int) icode].n_operands == 3);
(define_expand "reload_incc"
[(parallel [(set (match_operand:CC 2 "integer_register_operand" "=&d")
(match_operand:CC 1 "memory_operand" "m"))
(clobber (match_scratch:CC_CCR 3 ""))])
(parallel [(set (match_operand:CC 0 "icc_operand" "=t")
(match_dup 2))
(clobber (match_scratch:CC_CCR 4 ""))])]
I never thought reload could handle more than 3 operands for reload_inM before.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28583
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug target/28583] [4.2 regression] ICE in default_secondary_reload, at targhooks.c:532 when building libgcc2.c as _divsc3.o
2006-08-03 13:37 [Bug c/28583] New: ICE in default_secondary_reload, at targhooks.c:532 when building libgcc2.c as _divsc3.o dhowells at redhat dot com
` (2 preceding siblings ...)
2006-08-08 1:30 ` pinskia at gcc dot gnu dot org
@ 2006-08-20 22:25 ` mmitchel at gcc dot gnu dot org
2007-05-14 21:36 ` [Bug target/28583] [4.2/4.3 " mmitchel at gcc dot gnu dot org
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-08-20 22:25 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from mmitchel at gcc dot gnu dot org 2006-08-20 22:25 -------
FRV is not a primary or secondary target.
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28583
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug target/28583] [4.2/4.3 regression] ICE in default_secondary_reload, at targhooks.c:532 when building libgcc2.c as _divsc3.o
2006-08-03 13:37 [Bug c/28583] New: ICE in default_secondary_reload, at targhooks.c:532 when building libgcc2.c as _divsc3.o dhowells at redhat dot com
` (3 preceding siblings ...)
2006-08-20 22:25 ` mmitchel at gcc dot gnu dot org
@ 2007-05-14 21:36 ` mmitchel at gcc dot gnu dot org
2007-07-20 3:52 ` mmitchel at gcc dot gnu dot org
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-05-14 21:36 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from mmitchel at gcc dot gnu dot org 2007-05-14 22:28 -------
Will not be fixed in 4.2.0; retargeting at 4.2.1.
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.2.0 |4.2.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28583
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug target/28583] [4.2/4.3 regression] ICE in default_secondary_reload, at targhooks.c:532 when building libgcc2.c as _divsc3.o
2006-08-03 13:37 [Bug c/28583] New: ICE in default_secondary_reload, at targhooks.c:532 when building libgcc2.c as _divsc3.o dhowells at redhat dot com
` (4 preceding siblings ...)
2007-05-14 21:36 ` [Bug target/28583] [4.2/4.3 " mmitchel at gcc dot gnu dot org
@ 2007-07-20 3:52 ` mmitchel at gcc dot gnu dot org
2007-10-09 19:30 ` mmitchel at gcc dot gnu dot org
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-07-20 3:52 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.2.1 |4.2.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28583
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug target/28583] [4.2/4.3 regression] ICE in default_secondary_reload, at targhooks.c:532 when building libgcc2.c as _divsc3.o
2006-08-03 13:37 [Bug c/28583] New: ICE in default_secondary_reload, at targhooks.c:532 when building libgcc2.c as _divsc3.o dhowells at redhat dot com
` (5 preceding siblings ...)
2007-07-20 3:52 ` mmitchel at gcc dot gnu dot org
@ 2007-10-09 19:30 ` mmitchel at gcc dot gnu dot org
2007-10-25 18:05 ` [Bug target/28583] [4.2 " rask at gcc dot gnu dot org
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-10-09 19:30 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from mmitchel at gcc dot gnu dot org 2007-10-09 19:22 -------
Change target milestone to 4.2.3, as 4.2.2 has been released.
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.2.2 |4.2.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28583
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug target/28583] [4.2 regression] ICE in default_secondary_reload, at targhooks.c:532 when building libgcc2.c as _divsc3.o
2006-08-03 13:37 [Bug c/28583] New: ICE in default_secondary_reload, at targhooks.c:532 when building libgcc2.c as _divsc3.o dhowells at redhat dot com
` (6 preceding siblings ...)
2007-10-09 19:30 ` mmitchel at gcc dot gnu dot org
@ 2007-10-25 18:05 ` rask at gcc dot gnu dot org
2007-10-30 22:29 ` dhowells at redhat dot com
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: rask at gcc dot gnu dot org @ 2007-10-25 18:05 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from rask at gcc dot gnu dot org 2007-10-25 18:04 -------
This works fine in 4.3. Looking at the commit log, I'd say it was fixed by
revision 121981.
--
rask at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |4.3.0
Summary|[4.2/4.3 regression] ICE in |[4.2 regression] ICE in
|default_secondary_reload, at|default_secondary_reload, at
|targhooks.c:532 when |targhooks.c:532 when
|building libgcc2.c as |building libgcc2.c as
|_divsc3.o |_divsc3.o
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28583
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug target/28583] [4.2 regression] ICE in default_secondary_reload, at targhooks.c:532 when building libgcc2.c as _divsc3.o
2006-08-03 13:37 [Bug c/28583] New: ICE in default_secondary_reload, at targhooks.c:532 when building libgcc2.c as _divsc3.o dhowells at redhat dot com
` (7 preceding siblings ...)
2007-10-25 18:05 ` [Bug target/28583] [4.2 " rask at gcc dot gnu dot org
@ 2007-10-30 22:29 ` dhowells at redhat dot com
2008-02-01 16:56 ` jsm28 at gcc dot gnu dot org
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: dhowells at redhat dot com @ 2007-10-30 22:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from dhowells at redhat dot com 2007-10-30 22:28 -------
Seems to work for me. Thanks!
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28583
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug target/28583] [4.2 regression] ICE in default_secondary_reload, at targhooks.c:532 when building libgcc2.c as _divsc3.o
2006-08-03 13:37 [Bug c/28583] New: ICE in default_secondary_reload, at targhooks.c:532 when building libgcc2.c as _divsc3.o dhowells at redhat dot com
` (8 preceding siblings ...)
2007-10-30 22:29 ` dhowells at redhat dot com
@ 2008-02-01 16:56 ` jsm28 at gcc dot gnu dot org
2008-05-19 20:35 ` jsm28 at gcc dot gnu dot org
2009-03-30 17:01 ` jsm28 at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-02-01 16:56 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from jsm28 at gcc dot gnu dot org 2008-02-01 16:53 -------
4.2.3 is being released now, changing milestones of open bugs to 4.2.4.
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.2.3 |4.2.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28583
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug target/28583] [4.2 regression] ICE in default_secondary_reload, at targhooks.c:532 when building libgcc2.c as _divsc3.o
2006-08-03 13:37 [Bug c/28583] New: ICE in default_secondary_reload, at targhooks.c:532 when building libgcc2.c as _divsc3.o dhowells at redhat dot com
` (9 preceding siblings ...)
2008-02-01 16:56 ` jsm28 at gcc dot gnu dot org
@ 2008-05-19 20:35 ` jsm28 at gcc dot gnu dot org
2009-03-30 17:01 ` jsm28 at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-05-19 20:35 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from jsm28 at gcc dot gnu dot org 2008-05-19 20:22 -------
4.2.4 is being released, changing milestones to 4.2.5.
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.2.4 |4.2.5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28583
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug target/28583] [4.2 regression] ICE in default_secondary_reload, at targhooks.c:532 when building libgcc2.c as _divsc3.o
2006-08-03 13:37 [Bug c/28583] New: ICE in default_secondary_reload, at targhooks.c:532 when building libgcc2.c as _divsc3.o dhowells at redhat dot com
` (10 preceding siblings ...)
2008-05-19 20:35 ` jsm28 at gcc dot gnu dot org
@ 2009-03-30 17:01 ` jsm28 at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2009-03-30 17:01 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from jsm28 at gcc dot gnu dot org 2009-03-30 17:01 -------
Closing 4.2 branch, fixed in 4.3.
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Known to fail| |4.2.5
Resolution| |FIXED
Target Milestone|4.2.5 |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28583
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2009-03-30 17:01 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-03 13:37 [Bug c/28583] New: ICE in default_secondary_reload, at targhooks.c:532 when building libgcc2.c as _divsc3.o dhowells at redhat dot com
2006-08-03 13:39 ` [Bug c/28583] " dhowells at redhat dot com
2006-08-04 8:36 ` [Bug target/28583] [4.2 regression] " tbm at gcc dot gnu dot org
2006-08-08 1:30 ` pinskia at gcc dot gnu dot org
2006-08-20 22:25 ` mmitchel at gcc dot gnu dot org
2007-05-14 21:36 ` [Bug target/28583] [4.2/4.3 " mmitchel at gcc dot gnu dot org
2007-07-20 3:52 ` mmitchel at gcc dot gnu dot org
2007-10-09 19:30 ` mmitchel at gcc dot gnu dot org
2007-10-25 18:05 ` [Bug target/28583] [4.2 " rask at gcc dot gnu dot org
2007-10-30 22:29 ` dhowells at redhat dot com
2008-02-01 16:56 ` jsm28 at gcc dot gnu dot org
2008-05-19 20:35 ` jsm28 at gcc dot gnu dot org
2009-03-30 17:01 ` jsm28 at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).