Bug 18542

Summary: Compiler fails when compiling XFree86 with optimization
Product: Base System Reporter: Greg Lehey <grog>
Component: gnuAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.0-CURRENT   
Hardware: Any   
OS: Any   

Description Greg Lehey 2000-05-14 07:00:03 UTC
	When installing XFree86 after a successful 'make world', the
	compiler fails for multiple files with the following message:

	making all in programs/Xserver/Xext/extmod...
	rm -f xf86vmode.o
	cc -c -O2 -ansi -pedantic -Dasm=__asm -Wall -Wpointer-arith   -I.. -I../../include -I../../../../exports/include/X11 -I../../../../include/extensions          -I../../../../programs/Xserver/hw/xfree86/common  -I../../../../include/fonts  -I../../../.. -I../../../../exports/include  -DCSRG_BASED -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP -DXCSECURITY -DTOGCUP  -DXF86BIGFONT -DDPMSExtension  -DPIXPRIV -DPANORAMIX  -DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH -DXFreeXDGA -DXvExtension -DXFree86LOADER  -DXFree86Server -DXF86VIDMODE  -DX_BYTE_ORDER=X_LITTLE_ENDIAN -DSMART_SCHEDULE -DNDEBUG   -DFUNCPROTO=15 -DNARROWPROTO  -DIN_MODULE -DEXTMODULE  xf86vmode.c
	xf86vmode.c: In function `ProcXF86VidModeGetMonitor':
	xf86vmode.c:1320: Unable to generate reloads for:
	(insn 306 304 308 (parallel[ 
	            (set (reg:SI 0 %eax)
	                (fix:SI (fix:SF (subreg:SF (reg:SI 0 %eax) 0))))
	            (clobber (mem:HI (plus:SI (reg:SI 6 %ebp)
	                        (const_int -34 [0xffffffde])) 0))
	            (clobber (mem:HI (plus:SI (reg:SI 6 %ebp)
	                        (const_int -36 [0xffffffdc])) 0))
	            (clobber (mem:SI (plus:SI (reg:SI 6 %ebp)
	                        (const_int -40 [0xffffffd8])) 0))
	            (clobber (scratch:HI))
	        ] ) 145 {fix_truncsfsi2+1} (insn_list 299 (nil))
	    (expr_list:REG_DEAD (reg:SI 0 %eax)
	        (expr_list:REG_UNUSED (scratch:HI)
	            (nil))))

Fix: 

Fix not known.  Disabling optimization works around the
	problem.
Comment 1 Mike Barcroft freebsd_committer freebsd_triage 2001-07-22 03:27:06 UTC
State Changed
From-To: open->feedback


Is this still a problem in a newer -CURRENT?
Comment 2 Mike Barcroft freebsd_committer freebsd_triage 2001-07-22 04:52:46 UTC
State Changed
From-To: feedback->closed


Originator confirmed that this is no longer a problem.