Subject: toolchain/33178: Compiler error w/ -O2 building gtk2/pixops.c on m68k
To: None <toolchain-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <oster@netbsd.org>
List: netbsd-bugs
Date: 04/02/2006 03:05:00
>Number:         33178
>Category:       toolchain
>Synopsis:       Compiler error w/ -O2 building gtk2/.../pixops.c on m68k archs
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 02 03:05:00 +0000 2006
>Originator:     oster@netbsd.org
>Release:        NetBSD 3.0
>Organization:
>Environment:

System:	NetBSD zoot 3.0 NetBSD 3.0 (GENERIC) #0: Thu Mar 16 01:00:48 CST 2006  oster@gonzo:/u1/builds/build101/src/sys/arch/hp300/compile/GENERIC hp300


Architecture: m68k
Machine: hp300

>Description:

	attempt to build pkgsrc/x11/gtk2 (gtk+-2.8.15) and get the following
compiler error:

   gcc -DHAVE_CONFIG_H -I. -I../.. -DG_DISABLE_CAST_CHECKS -pthread -I/u5/m68k/pkgsrc/x11/gtk2/work.zoot/.buildlink/include/glib/glib-2.0 -I/u5/m68k/pkgsrc/x11/gtk2/work.zoot/.buildlink/lib/glib-2.0/include -I/u5/m68k/pkgsrc/x11/gtk2/work.zoot/.buildlink/include -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DPREFIX=\"/usr/pkg\" -DGLX_GLXEXT_LEGACY -I/u5/m68k/pkgsrc/x11/gtk2/work.zoot/.buildlink/include/freetype2 -I/u5/m68k/pkgsrc/x11/gtk2/work.zoot/.x11-buildlink/include -O2 -pthread -Wall -MT pixops.lo -MD -MP -MF .deps/pixops.Tpo -c pixops.c  -fPIC -DPIC -o .libs/pixops.o
pixops.c: In function `linear_box_half':
pixops.c:1325: error: unrecognizable insn:
(insn 144 125 62 6 0x0 (set (reg:DF 16 %fp0)
        (const_double:DF 0 [0x0] 0.0 [0x0.0p+0])) -1 (nil)
    (nil))
pixops.c:1325: internal compiler error: in extract_insn, at recog.c:2175
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.netbsd.org/Misc/send-pr.html> for instructions.


>How-To-Repeat:

	See above.

>Fix:

	Workaround: Compile with "-O2 -fno-gcse" instead of "-O2".
The former doesn't exhibit the problem.