public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "dave at hiauly1 dot hia dot nrc dot ca" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/23556] FAIL: gfortran.dg/pr18122.f90
Date: Thu, 25 Aug 2005 00:34:00 -0000	[thread overview]
Message-ID: <20050825002831.32639.qmail@sourceware.org> (raw)
In-Reply-To: <20050824231710.23556.danglin@gcc.gnu.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


  parent reply	other threads:[~2005-08-25  0:28 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-24 23:26 [Bug target/23556] New: " danglin at gcc dot gnu dot org
2005-08-24 23:35 ` [Bug target/23556] " danglin at gcc dot gnu dot org
2005-08-24 23:35   ` Andrew Pinski
2005-08-24 23:49 ` pinskia at physics dot uc dot edu
2005-08-25  0:34 ` dave at hiauly1 dot hia dot nrc dot ca [this message]
2005-08-25  0:55 ` dave at hiauly1 dot hia dot nrc dot ca
2005-08-31 17:00 ` cvs-commit at gcc dot gnu dot org
2005-09-01 16:43 ` cvs-commit at gcc dot gnu dot org
2005-09-02  8:42 ` cvs-commit at gcc dot gnu dot org
2005-09-02 11:46 ` pinskia at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050825002831.32639.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).