On 10/25/2011 12:46 PM, Brad Smith wrote: > Public bug reported: > > Trying to build previous QEMU releases as well as git code fails on > OpenBSD/hppa... > > cc -I/home/hack/jasper/qemu/slirp -I. -I/home/hack/jasper/qemu > -I/home/hack/jasper/qemu/fpu -I/home/hack/jasper/qemu/tcg > -I/home/hack/jasper/qemu/tcg/hppa -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE > -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes > -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes > -fno-strict-aliasing -Wno-redundant-decls -I/usr/local/include > -I/usr/X11R6/include -Wendif-labels -Wmissing-include-dirs -Wnested-externs > -Wformat-security -Wformat-y2k -Winit-self -Wold-style-definition > -I/usr/local/include/libpng -DHAS_AUDIO -DHAS_AUDIO_CHOICE > -DTARGET_PHYS_ADDR_BITS=64 -I.. -I/home/hack/jasper/qemu/target-i386 > -DNEED_CPU_H -pthread -I/usr/local/include/glib-2.0 > -I/usr/local/lib/glib-2.0/include -I/usr/local/include/libpng -pthread > -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -MMD -MP -MT > translate.o -MF ./translate.d -O2 -g -c -o translate.o > /home/hack/jasper/qemu/target-i386/translate.c > /tmp//ccvNbj1U.s: Assembler messages: > /tmp//ccvNbj1U.s:258792: Error: Field out of range [-262144..262143] > (-262776). > /tmp//ccvNbj1U.s:261989: Error: Field out of range [-262144..262143] > (-267096). > /tmp//ccvNbj1U.s:262006: Error: Field out of range [-262144..262143] > (-267136). > /tmp//ccvNbj1U.s:264184: Error: Field out of range [-262144..262143] > (-270612). > /tmp//ccvNbj1U.s:271893: Error: Field out of range [-262144..262143] > (-281260). > /tmp//ccvNbj1U.s:276623: Error: Field out of range [-262144..262143] > (-288784). > /tmp//ccvNbj1U.s:276906: Error: Field out of range [-262144..262143] > (-289636). > /tmp//ccvNbj1U.s:277122: Error: Field out of range [-262144..262143] > (-290280).
This is a bug with your version of gcc. It has failed to fix up out-of-range branches, probably due to over-enthusiastic inlining. As a workaround, you might try adding -Dinline= or -O1 when compiling that file. r~