This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/23556] FAIL: gfortran.dg/pr18122.f90
- From: "dave at hiauly1 dot hia dot nrc dot ca" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Aug 2005 00:28:31 -0000
- Subject: [Bug target/23556] FAIL: gfortran.dg/pr18122.f90
- References: <20050824231710.23556.danglin@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From dave at hiauly1 dot hia dot nrc dot ca 2005-08-25 00:28 -------
Subject: Re: FAIL: gfortran.dg/pr18122.f90
> > (gdb) r
> > Starting program: /test/gnu/gcc-3.3/objdir/gcc/testsuite/pr18122.exe
> >
> > Program received signal SIGBUS, Bus error.
> > 0x7ae8a668 in _gfortrani_options ()
>
> Hmm, why is _gfortrani_options being called, it is data as far as I can
> see.
> on ppc-darwin from nm, we have:
> 000452f0 d __gfortrani_options
>
> where d means data section.
The debugger is broken ;(
With a static link I see:
(gdb) r
Starting program: /test/gnu/gcc-3.3/objdir/gcc/testsuite/pr18122.exe
Program received signal SIGBUS, Bus error.
0x00011bec in _gfortrani_convert_real ()
(gdb) disass
Dump of assembler code for function _gfortrani_convert_real:
0x00011ba0 <_gfortrani_convert_real+0>: addil 5800,dp,%r1
0x00011ba4 <_gfortrani_convert_real+4>: stw rp,-14(,sp)
0x00011ba8 <_gfortrani_convert_real+8>: ldo 80(sp),sp
0x00011bac <_gfortrani_convert_real+12>: stw r0,1c0(,r1)
0x00011bb0 <_gfortrani_convert_real+16>: stw r4,-68(,sp)
0x00011bb4 <_gfortrani_convert_real+20>: copy r1,r4
0x00011bb8 <_gfortrani_convert_real+24>: stw r3,-64(,sp)
0x00011bbc <_gfortrani_convert_real+28>: cmpib,= 8,r24,0x11be0 <_gfortrani_convert_real+64>
0x00011bc0 <_gfortrani_convert_real+32>: copy r26,r3
0x00011bc4 <_gfortrani_convert_real+36>: ldi 10,ret0
0x00011bc8 <_gfortrani_convert_real+40>: cmpb,= ret0,r24,0x11c54 <_gfortrani_convert_real+180>
0x00011bcc <_gfortrani_convert_real+44>: ldo -78(sp),ret0
0x00011bd0 <_gfortrani_convert_real+48>: cmpib,= 4,r24,0x11c84 <_gfortrani_convert_real+228>
0x00011bd4 <_gfortrani_convert_real+52>: ldil 4e800,r26
0x00011bd8 <_gfortrani_convert_real+56>: b,l 0x69e8 <_gfortrani_internal_error>,rp
0x00011bdc <_gfortrani_convert_real+60>: ldo 670(r26),r26
0x00011be0 <_gfortrani_convert_real+64>: copy r25,r26
0x00011be4 <_gfortrani_convert_real+68>: b,l 0x2d710 <strtod>,rp
0x00011be8 <_gfortrani_convert_real+72>: ldi 0,r25
0x00011bec <_gfortrani_convert_real+76>: fstd fr4,0(,r3)
...
(gdb) bt
#0 0x00011bec in _gfortrani_convert_real ()
#1 0x0000f360 in read_real ()
#2 0x000100d0 in nml_read_obj ()
#3 0x000109a4 in _gfortrani_namelist_read ()
#4 0x00008f0c in finalize_transfer ()
#5 0x00009034 in _gfortran_st_read_done ()
#6 0x00006038 in MAIN__ ()
#7 0x000061a4 in main ()
r3 contains the first argument passed from read_real (entry value of r26).
Dave
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23556