Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 73760 - gcc fails with internal error about "insn does not satisfy its constraints" with mfpmath=sse
Summary: gcc fails with internal error about "insn does not satisfy its constraints" w...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Please assign to toolchain
URL: http://ipx10099.ipxserver.de/files/po...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-08 00:28 UTC by Maik Musall
Modified: 2005-07-15 08:07 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maik Musall 2004-12-08 00:28:55 UTC
gcc  -O2 -march=pentium3 -mfpmath=sse -msse -ffast-math -fomit-frame-pointer -DETCDIR=\"/etc/postfish\" -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DUGLY_IEEE754_FLOAT32_HACK=1    -c -o singlecomp.o singlecomp.c
singlecomp.c: In function `work_and_lapping':
singlecomp.c:483: error: insn does not satisfy its constraints:
(insn 2597 1866 545 27 0x406476e0 (set (reg/v:SF 29 emm0 [312])
        (const_double:SF 0 [0x0] 0.0 [0x0.0p+0])) 61 {*movsf_1} (nil)
    (nil))
singlecomp.c:483: internal compiler error: in copyprop_hardreg_forward_1, at regrename.c:1601


USE="gtk gnome qt kde dvd alsa cdr matrox mmx sse apache2 f77 java gcj mbox cups foomaticdb ppds usb"


Reproducible: Always
Steps to Reproduce:
1. Download the code tarball from the above URL with the edited Makefile
2. make
3. error comes out

Actual Results:  
see "Details"

Expected Results:  
compile through, of course :-)

The error does not occur when omitting -mfpmath=sse.
Comment 1 Maik Musall 2004-12-08 00:30:38 UTC
Forgot to mention gcc version:
gcc (GCC) 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)
Comment 2 Krzysztof Pawlik (RETIRED) gentoo-dev 2004-12-08 13:11:57 UTC
See bug 63922. I think that this bug will have exactly the same solution: filter the -msse and -msse2 flags.
Comment 3 Maik Musall 2004-12-08 14:21:17 UTC
Hmm. That's not what I meant. The distribution of the application comes without -msse flag in the Makefile. But it heavily uses floating point calculations, all single-precision, and I wanted to use the extra speed by utilizing SSE. Thus I added -msse and -mfpmath=sse. I expected that it behaves the same in compilation and runtime but perhaps with better performance.

The bug that was mentioned in the comment above seems to have been fixed in a newer release, which is not yet the default revision of gcc in gentoo. So I will
probably have to wait until it's out.
Comment 4 Stian Skjelstad 2004-12-26 22:16:42 UTC
I'll say that this bug then depends on a newer gcc being unmasked. Any virtual bugs we can make this depend on related to that (the same kinds of things bugs.gentoo.org does with gnome-2.8.0/2.8.1 for instance)
Comment 5 Caleb Tennis (RETIRED) gentoo-dev 2005-07-15 08:07:51 UTC
Assuming it works with latest versions.  Please reopen if not.