On Wed, Oct 24, 2012 at 10:37 AM, Vladimir Makarov <vmaka...@redhat.com> wrote: > The following path shouldfix > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55049 > > The patch was successfully bootstrapped on x86-64. Sorry, I can not > bootstrap with mx32 because of libraries absence. > > Committed as rev. 192771. > > 2012-10-24 Vladimir Makarov <vmaka...@redhat.com> > > PR bootstrap/55049 > * lra-constraints.c (extract_loc_address_regs): Pass top_p for > ZERO_EXTEND operand. >
I checked in this testcase. But I still got libtool: compile: /export/build/gnu/gcc-x32/build-x86_64-linux/./gcc/xgcc -B/export/build/gnu/gcc-x32/build-x86_64-linux/./gcc/ -B/usr/gcc-4.8.0-x32/x86_64-unknown-linux-gnu/bin/ -B/usr/gcc-4.8.0-x32/x86_64-unknown-linux-gnu/lib/ -isystem /usr/gcc-4.8.0-x32/x86_64-unknown-linux-gnu/include -isystem /usr/gcc-4.8.0-x32/x86_64-unknown-linux-gnu/sys-include -mx32 -DHAVE_CONFIG_H -I. -I/export/gnu/import/git/gcc/libgomp -I/export/gnu/import/git/gcc/libgomp/config/linux/x86 -I/export/gnu/import/git/gcc/libgomp/config/linux -I/export/gnu/import/git/gcc/libgomp/config/posix -I/export/gnu/import/git/gcc/libgomp -Wall -Werror -pthread -ftls-model=initial-exec -O2 -g -pthread -pthread -MT loop.lo -MD -MP -MF .deps/loop.Tpo -c /export/gnu/import/git/gcc/libgomp/loop.c -fPIC -DPIC -o .libs/loop.o /export/gnu/import/git/gcc/libgomp/loop.c: In function ‘GOMP_loop_runtime_next’: /export/gnu/import/git/gcc/libgomp/loop.c:355:1: internal compiler error: in check_rtl, at lra.c:2014 } ^ 0x8bfdbd check_rtl /export/gnu/import/git/gcc/gcc/lra.c:2014 0x8c071d lra(_IO_FILE*) /export/gnu/import/git/gcc/gcc/lra.c:2372 0x875f89 do_reload /export/gnu/import/git/gcc/gcc/ira.c:4613 0x876182 rest_of_handle_reload /export/gnu/import/git/gcc/gcc/ira.c:4719 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions. make[2]: *** [loop.lo] Error 1 make[2]: Leaving directory `/export/build/gnu/gcc-x32/build-x86_64-linux/x86_64-unknown-linux-gnu/x32/libgomp' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/export/build/gnu/gcc-x32/build-x86_64-linux/x86_64-unknown-linux-gnu/x32/libgomp' make: *** [all] Error 2 I will extract a small tectase. -- H.J. ---- PR bootstrap/55049 * gcc.target/i386/pr55049-1.c: New test. Index: gcc.target/i386/pr55049-1.c =================================================================== --- gcc.target/i386/pr55049-1.c (revision 0) +++ gcc.target/i386/pr55049-1.c (revision 192785) @@ -0,0 +1,11 @@ +/* { dg-do compile { target { ! { ia32 } } } } */ +/* { dg-require-effective-target fpic } */ +/* { dg-options "-O2 -fPIC -mx32" } */ + +extern void __morestack_fail (const char *msg); +void +foo (void) +{ + static const char msg[] = "munmap of stack space failed: errno "; + __morestack_fail (msg); +}