Executing on host: /test/gnu/gcc-4.1/objdir/gcc/testsuite/../gfortran
-B/test/gn

u/gcc-4.1/objdir/gcc/testsuite/../
/test/gnu/gcc-4.1/gcc/gcc/testsuite/gfortran.

dg/cray_pointers_2.f90   -O2  -fcray-pointer 
-L/test/gnu/gcc-4.1/objdir/hppa64-

hp-hpux11.11/./libgfortran/.libs
-L/test/gnu/gcc-4.1/objdir/hppa64-hp-hpux11.11/

./libgfortran/.libs -L/test/gnu/gcc-4.1/objdir/hppa64-hp-hpux11.11/./libiberty

-lm   -o ./cray_pointers_2.exe    (timeout = 300)

PASS: gfortran.dg/cray_pointers_2.f90  -O2  (test for excess errors)

Setting LD_LIBRARY_PATH to
.:/test/gnu/gcc-4.1/objdir/hppa64-hp-hpux11.11/./libg

fortran/.libs:/test/gnu/gcc-4.1/objdir/hppa64-hp-hpux11.11/./libgfortran/.libs:/

test/gnu/gcc-4.1/objdir/gcc:.:/test/gnu/gcc-4.1/objdir/hppa64-hp-hpux11.11/./lib

gfortran/.libs:/test/gnu/gcc-4.1/objdir/hppa64-hp-hpux11.11/./libgfortran/.libs:

/test/gnu/gcc-4.1/objdir/gcc

FAIL: gfortran.dg/cray_pointers_2.f90  -O2  execution test



The fails are at -O2, -O3 -fomit-frame-pointer, -O3 -fomit-frame-pointer

-funroll-loops, -O3 -fomit-frame-pointer -funroll-all-loo ps -finline-functions

and -O3 -g.



# gdb cray_pointers_2.xg

GNU gdb 6.3.50.20051101-cvs

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 "hppa64-hp-hpux11.11"...

(gdb) r

Starting program: /test/gnu/gcc-4.1/objdir/gcc/testsuite/cray_pointers_2.xg



Program received signal SIGSEGV, Segmentation fault.

0x400000000000e0ec in ptr5_ ()

    at /test/gnu/gcc-4.1/gcc/gcc/testsuite/gfortran.dg/cray_pointers_2.f90:1275

1275         rpte1(i) = i * 5.0

(gdb) disass 0x400000000000e0dc 0x400000000000e0fc

Dump of assembler code from 0x400000000000e0dc to 0x400000000000e0fc:

0x400000000000e0dc <ptr5_+700>: ldd -1b0(sp),r1

0x400000000000e0e0 <ptr5_+704>: copy dp,r4

0x400000000000e0e4 <ptr5_+708>: add,l r1,r6,r5

0x400000000000e0e8 <ptr5_+712>: ldd -260(sp),r19

0x400000000000e0ec <ptr5_+716>: fstw fr22R,r1(r19)

0x400000000000e0f0 <ptr5_+720>: add,l r1,r19,r6

0x400000000000e0f4 <ptr5_+724>: copy r5,r26

0x400000000000e0f8 <ptr5_+728>: ldo -30(sp),ret1

End of assembler dump.

(gdb) p/x $r1

$1 = 0x800003fffeff0898

(gdb) p/x $r19

$2 = 0x0



This appears to be a mixup of base and index registers.


-- 
           Summary: FAIL: gfortran.dg/cray_pointers_2.f90  at -O2 and above
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: danglin at gcc dot gnu dot org
 GCC build triplet: hppa64-hp-hpux11.11
  GCC host triplet: hppa64-hp-hpux11.11
GCC target triplet: hppa64-hp-hpux11.11


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25586

Reply via email to