$ LD_LIBRARY_PATH=../../../powerpc64-suse-linux/libgfortran/.libs gdb ./value_4.exe GNU gdb 6.6 Copyright (C) 2006 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 "ppc-suse-linux"... Using host libthread_db library "/lib/power4/libthread_db.so.1". (gdb) r Starting program: /tmp/cvs/gcc-20070408/Build/gcc/testsuite/gfortran/value_4.exe
Program received signal SIGSEGV, Segmentation fault. 0x10001e94 in c_to_c__ (retval=0xffb8a5c0, c1={r = 4.16185644e-43, i = 1}, c2=0xbf800000) at /tmp/cvs/gcc-20070408/gcc/testsuite/gfortran.dg/value_4.c:40 40 if ( c1.r != c2->r ) abort(); (gdb) bt #0 0x10001e94 in c_to_c__ (retval=0xffb8a5c0, c1={r = 4.16185644e-43, i = 1}, c2=0xbf800000) at /tmp/cvs/gcc-20070408/gcc/testsuite/gfortran.dg/value_4.c:40 #1 0x10001cf4 in MAIN__ () at /tmp/cvs/gcc-20070408/gcc/testsuite/gfortran.dg/value_4.f90:81 #2 0x10001f64 in main (argc=1, argv=0xffb8a884) at ../../../libgfortran/fmain.c:22 (gdb) p c1 $1 = {r = 4.16185644e-43, i = 1} (gdb) p c2 $2 = (complex *) 0xbf800000 (gdb) p *c2 Cannot access memory at address 0xbf800000 (gdb) l 35 } 36 37 void 38 c_to_c__(complex *retval, complex c1, complex *c2) 39 { 40 if ( c1.r != c2->r ) abort(); 41 if ( c1.i != c2->i ) abort(); 42 c1.r = 0.0; 43 c1.i = 0.0; 44 retval->r = c2->r * 4.0; (gdb) p $r3 $3 = 4290291136 (gdb) set output-radix 16 Output radix now set to decimal 16, hex 10, octal 20. (gdb) p $r3 $4 = 0xffb8a5c0 (gdb) p $r4 $5 = 0xffb8a5a4 (gdb) p $r5 $6 = 0xbf800000 (gdb) p $r6 $7 = 0x40000000 (gdb) p $r7 $8 = 0xffb8a5b0 (gdb) p {complex}$r7 $9 = {r = -1, i = 2} -- Summary: FAIL: gfortran.dg/value_4.f90 -O0 execution test Product: gcc Version: 4.3.0 Status: UNCONFIRMED Keywords: wrong-code Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: schwab at suse dot de GCC target triplet: powerpc-suse-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31562