On Wed, Mar 19, 2008 at 12:11 PM, Duncan Sands <baldrick at free.fr> wrote:> Hi Bill, thanks for fixing it. >No prob! :-)> > > > ../../gcc-4.2.llvm.master/gcc/config/i386/i386.c: In function 'ix86_expand_convert_uns_DI2DF_sse': > > > ../../gcc-4.2.llvm.master/gcc/config/i386/i386.c:10270: warning: large integer implicitly truncated to unsigned type > > > ../../gcc-4.2.llvm.master/gcc/config/i386/i386.c: In function 'ix86_expand_convert_sign_DI2DF_sse': > > > ../../gcc-4.2.llvm.master/gcc/config/i386/i386.c:10377: warning: large integer implicitly truncated to unsigned type > > > > > These aren't from the patch... > > Yup, it's been like that for ever. I was secretly hoping you would > fix them too :) >:-) Yeah, I looked at the code and didn't know of a good way to tackle it...I'm *assuming* that it's complaining about this value: 0x10000000000000ULL but can't be for sure. I'm nervous dealing with the REAL_VALUE_FROM_INT functions... -bw
Bill Wendling wrote:> On Wed, Mar 19, 2008 at 12:11 PM, Duncan Sands <baldrick at free.fr> wrote: > >> Hi Bill, thanks for fixing it. >> >> > No prob! :-)I can't build llvm-gcc4.2 on x86-32 Linux. What is kext64, and how do I disable it? (I suppose I don't need it on a 32-bit platform?) ..... ranlib kext/libgcc_eh.a /home/edwin/llvm/obj42/./gcc/xgcc -B/home/edwin/llvm/obj42/./gcc/ -B/home/edwin/llvm/obj42/../install/i686-pc-linux-gnu/bin/ -B/home/edwin/llvm/obj42/../install/i686-pc-linux-gnu/lib/ -isystem /home/edwin/llvm/obj42/../install/i686-pc-linux-gnu/include -isystem /home/edwin/llvm/obj42/../install/i686-pc-linux-gnu/sys-include -O2 -O2 -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../llvm-gcc4.2/gcc -I../../llvm-gcc4.2/gcc/. -I../../llvm-gcc4.2/gcc/../include -I../../llvm-gcc4.2/gcc/../libcpp/include -I../../llvm-gcc4.2/gcc/../libdecnumber -I../libdecnumber -I/home/edwin/llvm/llvm-svn/trunk/include -I/home/edwin/llvm/llvm-svn/trunk//include -mkernel -m64 -Dmalloc=kern_os_malloc -Dfree=kern_os_free -DLIBCC_KEXT -DL_muldi3 -fvisibility=hidden -DHIDE_EXPORTS -c ../../llvm-gcc4.2/gcc/libgcc2.c -o libgcc/kext64/_muldi3.o ../../llvm-gcc4.2/gcc/libgcc2.c:1: sorry, unimplemented: 64-bit mode not compiled in make[4]: *** [libgcc/kext64/_muldi3.o] Error 1 make[4]: Leaving directory `/var/local/src/llvm/obj42/gcc' I configured as: ../llvm-gcc4.2/configure --prefix=/home/edwin/llvm/obj42/../install --enable-llvm=/home/edwin/llvm/llvm-svn/trunk/ --program-prefix=llvm- --enable-checking=release --enable-languages=c,c++ Thanks, --Edwin
On Mar 19, 2008, at 2:03 PM, Török Edwin wrote:> > What is kext64, and how do I disable it?Comes from: APPLE_LOCAL='APPLE LOCAL libcc_kext' \ MULTILIBS="`$(GCC_FOR_TARGET) --print-multi-lib` static;@static at fno-pic kext;@Dmal loc=kern_os_malloc at Dfree=kern_os_free at DLIBCC_KEXT@static at fno-pic@fno- exceptions at fno-non-ca ll-exceptions$(KEXT_EXTRA_FLAGS) $(if $(findstring i686,$ (target)),kext64;@mkernel at m64@Dma lloc=kern_os_malloc at Dfree=kern_os_free at DLIBCC_KEXT$ (KEXT_EXTRA_FLAGS))" \ EXTRA_MULTILIB_PARTS='$(EXTRA_MULTILIB_PARTS)' \ in gcc/Makefile.in. I'd recommend something like: # APPLE LOCAL begin libcc_kext ifeq ($taregt, *-*-darwin*) SPELLING APPLE_EXTRA_MULTI := static;@static at fno-pic kext;@Dmalloc=kern_os_malloc at Dfree=kern_os_free at DLIBCC_KEXT@static at fno- pic at fno-exceptions@fno-non-call-exceptions$(KEXT_EXTRA_FLAGS) $(if $ (findstring i686,$ (target )),kext64 ;@mkernel at m64@Dmalloc=kern_os_malloc at Dfree=kern_os_free at DLIBCC_KEXT$ (KEXT_EXTRA_FLAGS)) endif # APPLE LOCAL end libcc_kext APPLE_LOCAL='APPLE LOCAL libcc_kext' \ MULTILIBS="`$(GCC_FOR_TARGET) --print-multi-lib` $ (APPLE_EXTRA_MULTI)" \ EXTRA_MULTILIB_PARTS='$(EXTRA_MULTILIB_PARTS)' \