[Bug target/37878] [4.4 regression] PPC64 ldu command generated with invalid offset
lucier at math dot purdue dot edu
gcc-bugzilla@gcc.gnu.org
Thu Oct 23 19:22:00 GMT 2008
------- Comment #9 from lucier at math dot purdue dot edu 2008-10-23 19:20 -------
I bootstrapped and regtested the suggested patch. There was one fewer FAIL in
the gcc tests:
FAIL: gcc.c-torture/execute/nestfunc-6.c execution, -O0
and one more failure in the libgomp tests:
FAIL: libgomp.fortran/crayptr2.f90 -O3 -fomit-frame-pointer -funroll-loops
execution test
However, it's not clear to me from the output of gdb implies that this may is
a problem with the compiled code (the command lines are taken from the log
file):
[descartes:powerpc64-apple-darwin9.5.0/libgomp/testsuite] lucier%
/Users/lucier/programs/gcc/objdirs/mainline/gcc/xgcc
-B/Users/lucier/programs/gcc/objdirs/mainline/gcc/
/Users/lucier/programs/gcc/mainline/libgomp/testsuite/libgomp.fortran/crayptr2.f90
-B/Users/lucier/programs/gcc/objdirs/mainline/powerpc64-apple-darwin9.5.0/./libgomp/
-I/Users/lucier/programs/gcc/objdirs/mainline/powerpc64-apple-darwin9.5.0/./libgomp
-I/Users/lucier/programs/gcc/mainline/libgomp/testsuite/.. -shared-libgcc
-fmessage-length=0 -fopenmp -O3 -fomit-frame-pointer -funroll-loops -fopenmp
-fcray-pointer -static-libgcc
-L/Users/lucier/programs/gcc/objdirs/mainline/powerpc64-apple-darwin9.5.0/./libgomp/.libs
-lgomp
-L/Users/lucier/programs/gcc/objdirs/mainline/powerpc64-apple-darwin9.5.0/./libgomp/../libgfortran/.libs
-lgfortranbegin -lgfortran -lm -mcpu=970 -m64 -o ./crayptr2.exe
[descartes:powerpc64-apple-darwin9.5.0/libgomp/testsuite] lucier% env
LD_LIBRARY_PATH=.:/Users/lucier/programs/gcc/objdirs/mainline/powerpc64-apple-darwin9.5.0/./libgomp/.libs:/Users/lucier/programs/gcc/objdirs/mainline/gcc:/Users/lucier/programs/gcc/objdirs/mainline/powerpc64-apple-darwin9.5.0/./libgomp/../libgfortran/.libs:.:/Users/lucier/programs/gcc/objdirs/mainline/powerpc64-apple-darwin9.5.0/./libgomp/.libs:/Users/lucier/programs/gcc/objdirs/mainline/gcc:/Users/lucier/programs/gcc/objdirs/mainline/powerpc64-apple-darwin9.5.0/./libgomp/../libgfortran/.libs
gdb ./crayptr2.exe
GNU gdb 6.3.50-20050815 (Apple version gdb-962) (Sat Jul 26 08:17:57 UTC 2008)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "powerpc-apple-darwin"...Reading symbols for shared
libraries .... done
(gdb) run
Starting program:
/Users/lucier/programs/gcc/objdirs/mainline/powerpc64-apple-darwin9.5.0/libgomp/testsuite/crayptr2.exe
warning: posix_spawn failed, trying execvp, error: 86
Reading symbols for shared libraries +++.. done
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000
0x0000000100001678 in MAIN__.omp_fn.0 ()
(gdb) where
#0 0x0000000100001678 in MAIN__.omp_fn.0 ()
#1 0x000000010000187c in MAIN__ ()
#2 0x00000001000018e4 in main (argc=1, argv=<value temporarily unavailable,
due to optimizations>) at ../../../../mainline/libgfortran/fmain.c:21
It is completely reproducible, however.
Brad
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37878
More information about the Gcc-bugs
mailing list