On Mon, Jul 25, 2011 at 3:30 PM, H.J. Lu <hjl.to...@gmail.com> wrote:
>> Attached patch implements -fpic handling for x32. In x32 mode, we now >> use x86_64_general_operand and corresponding "e" constraints for adds >> in SImode, since it looks that invalid addresses can only be generated >> through adds. This avoids a whole bunch of new predicates and >> constraints. > X32 glibc is miscompiled: > > CPP='/export/build/gnu/gcc-x32/release/usr/gcc-4.7.0-x32/bin/gcc -mx32 > -E -x c-header' > /export/build/gnu/glibc-x32/build-x86_64-linux/elf/ld-linux-x32.so.2 > --library-path > /export/build/gnu/glibc-x32/build-x86_64-linux:/export/build/gnu/glibc-x32/build-x86_64-linux/math:/export/build/gnu/glibc-x32/build-x86_64-linux/elf:/export/build/gnu/glibc-x32/build-x86_64-linux/dlfcn:/export/build/gnu/glibc-x32/build-x86_64-linux/nss:/export/build/gnu/glibc-x32/build-x86_64-linux/nis:/export/build/gnu/glibc-x32/build-x86_64-linux/rt:/export/build/gnu/glibc-x32/build-x86_64-linux/resolv:/export/build/gnu/glibc-x32/build-x86_64-linux/crypt:/export/build/gnu/glibc-x32/build-x86_64-linux/nptl > /export/build/gnu/glibc-x32/build-x86_64-linux/sunrpc/rpcgen -Y > ../scripts -h rpcsvc/yppasswd.x -o > /export/build/gnu/glibc-x32/build-x86_64-linux/sunrpc/rpcsvc/yppasswd.T > make[5]: *** > [/export/build/gnu/glibc-x32/build-x86_64-linux/sunrpc/rpcsvc/yppasswd.stmp] > Segmentation fault (core dumped) > > Some LEA patterns are wrong for x32. I will investigate. What about x32 GCC testsuite? Uros.