public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/33147] New: ICE: SEGV compiling for -mcpu=ep9312 -mfpu-maverick -mhard-float -O
@ 2007-08-22 11:54 martinwguy at yahoo dot it
2007-08-22 19:25 ` [Bug target/33147] " martinwguy at yahoo dot it
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: martinwguy at yahoo dot it @ 2007-08-22 11:54 UTC (permalink / raw)
To: gcc-bugs
This file:
void t(double foo)
{
puts(foo <= 1.0 ? "foo" : "bar");
}
provokes ICE segfault when compiled with
gcc -O -mfpu=maverick -mcpu=ep9312 -mhard-float -c t.c
Confirmed same behaviour in:
- native Debian "armel" gcc-4.1.3 arm-linux-gnueabi
- native Debian "arm" gcc-4.1.2 on arm-linux-gnu
- cross-compiler gcc-4.1.1 on i386-linux-gnu target arm-linux-gnueabi
The SEGV goes away if -msoft-float is used instead of -mhard-float;
removing -O also makes the compilation succeed.
Strangely, explicitly supplying the -f flags that -O is said to enable:
-fdefer-pop -fdelayed-branch -fguess-branch-probability -fcprop-registers
-floop-optimize -fif-conversion -fif-conversion2 -ftree-ccp -ftree-dce
-ftree-dominator-opts -ftree-dse -ftree-ter -ftree-lrs -ftree-sra
-ftree-copyrename -ftree-fre -ftree-ch -funit-at-a-time -fmerge-constants
-fomit-frame-pointer
does not provoke the segfault, but adding -O to the the list does.
Here are the native gcc-4.1.3 details:
Target: arm-linux-gnueabi
Configured with: ../src/configure -v
--enable-languages=c,c++,fortran,obj-c++,treelang --prefix=/usr --enable-shared
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --enable-nls
--with-gxx-include-dir=/usr/include/c++/4.1.3 --program-suffix=-4.1
--enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug
--enable-mpfr --disable-libssp --enable-checking=release arm-linux-gnueabi
Thread model: posix
gcc version 4.1.3 20070812 (prerelease) (Debian 4.1.2-15)
Output:
t.c: In function 't':
t.c:4: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
--
Summary: ICE: SEGV compiling for -mcpu=ep9312 -mfpu-maverick -
mhard-float -O
Product: gcc
Version: 4.1.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: martinwguy at yahoo dot it
GCC build triplet: arm-linux-gnueabi
GCC host triplet: arm-linux-gnueabi
GCC target triplet: arm-linux-gnueabi
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33147
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/33147] ICE: SEGV compiling for -mcpu=ep9312 -mfpu-maverick -mhard-float -O
2007-08-22 11:54 [Bug c/33147] New: ICE: SEGV compiling for -mcpu=ep9312 -mfpu-maverick -mhard-float -O martinwguy at yahoo dot it
@ 2007-08-22 19:25 ` martinwguy at yahoo dot it
2007-08-24 17:35 ` martinwguy at yahoo dot it
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: martinwguy at yahoo dot it @ 2007-08-22 19:25 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from martinwguy at yahoo dot it 2007-08-22 19:25 -------
Also present in gcc version 4.2.1 (Debian 4.2.1-4) native compiler on
arm-linux-gnueabi
This bug was originally shown up by three files in lame-3.97; this is the
smallest code that reproduces it.
--
martinwguy at yahoo dot it changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |martinwguy at yahoo dot it
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33147
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/33147] ICE: SEGV compiling for -mcpu=ep9312 -mfpu-maverick -mhard-float -O
2007-08-22 11:54 [Bug c/33147] New: ICE: SEGV compiling for -mcpu=ep9312 -mfpu-maverick -mhard-float -O martinwguy at yahoo dot it
2007-08-22 19:25 ` [Bug target/33147] " martinwguy at yahoo dot it
@ 2007-08-24 17:35 ` martinwguy at yahoo dot it
2007-08-29 18:45 ` martinwguy at yahoo dot it
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: martinwguy at yahoo dot it @ 2007-08-24 17:35 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from martinwguy at yahoo dot it 2007-08-24 17:34 -------
Also present using -mfloat-abi=softfp
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33147
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/33147] ICE: SEGV compiling for -mcpu=ep9312 -mfpu-maverick -mhard-float -O
2007-08-22 11:54 [Bug c/33147] New: ICE: SEGV compiling for -mcpu=ep9312 -mfpu-maverick -mhard-float -O martinwguy at yahoo dot it
2007-08-22 19:25 ` [Bug target/33147] " martinwguy at yahoo dot it
2007-08-24 17:35 ` martinwguy at yahoo dot it
@ 2007-08-29 18:45 ` martinwguy at yahoo dot it
2008-10-12 10:47 ` martinwguy at yahoo dot it
2009-01-02 12:10 ` laurent at guerby dot net
4 siblings, 0 replies; 6+ messages in thread
From: martinwguy at yahoo dot it @ 2007-08-29 18:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from martinwguy at yahoo dot it 2007-08-29 18:45 -------
The patches contained in http://files.futaris.org/gcc/crunch.tar.bz2 not only
fix this issue but also make MaverickCrunch support work reliably in gcc-4.1.2
and gcc-4.2.0 (presumably they can also apply to TRUNK).
There are more patches in the gcc/gcc-{4.1.2,4.2.0} dirs than are necessary
(old versions) - applying the ones listed in the .bb files makes for a working
system.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33147
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/33147] ICE: SEGV compiling for -mcpu=ep9312 -mfpu-maverick -mhard-float -O
2007-08-22 11:54 [Bug c/33147] New: ICE: SEGV compiling for -mcpu=ep9312 -mfpu-maverick -mhard-float -O martinwguy at yahoo dot it
` (2 preceding siblings ...)
2007-08-29 18:45 ` martinwguy at yahoo dot it
@ 2008-10-12 10:47 ` martinwguy at yahoo dot it
2009-01-02 12:10 ` laurent at guerby dot net
4 siblings, 0 replies; 6+ messages in thread
From: martinwguy at yahoo dot it @ 2008-10-12 10:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from martinwguy at yahoo dot it 2008-10-12 10:46 -------
... but those patches simply disable all conditionally-executed instructions,
which is no good for mainline. What is needed is a new CC mode, as discussed in
http://gcc.gnu.org/ml/gcc/2007-06/msg00938.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33147
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/33147] ICE: SEGV compiling for -mcpu=ep9312 -mfpu-maverick -mhard-float -O
2007-08-22 11:54 [Bug c/33147] New: ICE: SEGV compiling for -mcpu=ep9312 -mfpu-maverick -mhard-float -O martinwguy at yahoo dot it
` (3 preceding siblings ...)
2008-10-12 10:47 ` martinwguy at yahoo dot it
@ 2009-01-02 12:10 ` laurent at guerby dot net
4 siblings, 0 replies; 6+ messages in thread
From: laurent at guerby dot net @ 2009-01-02 12:10 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from laurent at guerby dot net 2009-01-02 12:08 -------
Works on gcc 4.3.2-1 Debian gnueabi and trunk at rev 142984.
--
laurent at guerby dot net changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33147
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-01-02 12:10 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-22 11:54 [Bug c/33147] New: ICE: SEGV compiling for -mcpu=ep9312 -mfpu-maverick -mhard-float -O martinwguy at yahoo dot it
2007-08-22 19:25 ` [Bug target/33147] " martinwguy at yahoo dot it
2007-08-24 17:35 ` martinwguy at yahoo dot it
2007-08-29 18:45 ` martinwguy at yahoo dot it
2008-10-12 10:47 ` martinwguy at yahoo dot it
2009-01-02 12:10 ` laurent at guerby dot net
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).