public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
[parent not found: <no.id>]
* gas 2.10.91 from 20000920 cvs is broken under hpux 10.20
@ 2000-09-22 16:39 John David Anglin
  0 siblings, 0 replies; 17+ messages in thread
From: John David Anglin @ 2000-09-22 16:39 UTC (permalink / raw)
  To: binutils

In trying to resolve this bug which has been noted for a few days on the
gcc-bugs list,

./xgcc -B./ -B/usr/local/hppa1.1-hp-hpux10.20/bin/ -isystem /usr/local/hppa1.1-hp-hpux10.20/include -O2   -DIN_GCC    -g -W -Wall  -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes  -Wno-long-long -isystem ./include  -fPIC -g1  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I../../gcc -I../../gcc/config -I../../gcc/../include -DUSE_COLLECT2 -DL_muldi3 -c ../../gcc/libgcc2.c -o libgcc/./_muldi3.o
../../gcc/libgcc2.c: In function `__muldi3':
../../gcc/libgcc2.c:199: Internal error: Segmentation fault.
   Please submit a full bug report.
   See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.

I found that the segmentation fault on my machine occurs in emit-rtl.c.
The following code in reset_used_flags is incorrectly linked into cc1
and ultimately causes the fault:

        ldo 4(%r19),%r19
	addl %r19,%r21,%r20
	ldw 0(%r20),%r26
	.CALL ARGW0=GR
	bl reset_used_flags,%r2
	nop
	.stabn 68,0,2010,L$M646-reset_used_flags

The disassembly of emit-rtl.o with objdump looks ok

 200:   36 73 00 08     ldo 4(r19),r19
 204:   0a b3 0a 14     add,l r19,r21,r20
 208:   0e 80 10 9a     ldw  0(sr0,r20),r26
 20c:   e8 5f 1b dd     b,l 0 <reset_used_flags>,rp
 210:   08 00 02 40     nop

but when the module is linked the `b,l' to reset_used_flags changes to
a `b,l' into the middle of copy_rtx_if_shared (the previous function)

0x1d84d0 <reset_used_flags+512>:        ldo 4(r19),r19
0x1d84d4 <reset_used_flags+516>:        add,l r19,r21,r20
0x1d84d8 <reset_used_flags+520>:        ldw  0(sr0,r20),r26
0x1d84dc <reset_used_flags+524>:
    b,l 0x1d80bc <copy_rtx_if_shared+700>,rp
0x1d84e0 <reset_used_flags+528>:        nop

Since the linker hasn't changed, I would have to guess that there is a
relocation problem with respect to the above call.  However, when I
include the relocation info in the assembly dump of emit-rtl.o, things
appear normal:

 20c:   e8 5f 1b dd     b,l 0 <reset_used_flags>,rp
		 	20c: R_PCREL_CALL       reset_used_flags+0x40000000

Thus, I am not sure what's going on.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2000-09-25  9:08 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <200009230838.EAA06201@hiauly1.hia.nrc.ca>
2000-09-23  2:59 ` gas 2.10.91 from 20000920 cvs is broken under hpux 10.20 Alan Modra
2000-09-23  9:49   ` John David Anglin
2000-09-23 20:53     ` Alan Modra
2000-09-24  6:20       ` Jeffrey A Law
2000-09-24  9:51         ` John David Anglin
2000-09-25  8:27           ` Jeffrey A Law
2000-09-25  8:53             ` John David Anglin
2000-09-24 10:53   ` John David Anglin
2000-09-24 21:25     ` Alan Modra
2000-09-25  9:08       ` John David Anglin
2000-09-24 13:05   ` John David Anglin
2000-09-24 21:55     ` Alan Modra
     [not found] <no.id>
2000-09-22 16:56 ` John David Anglin
2000-09-22 18:49   ` Alan Modra
2000-09-22 22:42   ` John David Anglin
2000-09-22 23:11     ` Alan Modra
2000-09-22 16:39 John David Anglin

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).