public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: target/2273: [Alpha/Tru64 UNIX V5.1] SEGV in long double code
@ 2002-03-29 0:33 rth
0 siblings, 0 replies; 2+ messages in thread
From: rth @ 2002-03-29 0:33 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, ro
Synopsis: [Alpha/Tru64 UNIX V5.1] SEGV in long double code
State-Changed-From-To: open->closed
State-Changed-By: rth
State-Changed-When: Fri Mar 29 00:32:54 2002
State-Changed-Why:
Fixed for gcc 3.1.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=2273
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: target/2273: [Alpha/Tru64 UNIX V5.1] SEGV in long double code
@ 2001-04-03 10:16 Rainer Orth
0 siblings, 0 replies; 2+ messages in thread
From: Rainer Orth @ 2001-04-03 10:16 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR target/2273; it has been noted by GNATS.
From: Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
To: gcc-gnats@gcc.gnu.org
Cc: gcc-bugs@gcc.gnu.org, Richard Henderson <rth@redhat.com>
Subject: Re: target/2273: [Alpha/Tru64 UNIX V5.1] SEGV in long double code
Date: Tue, 3 Apr 2001 19:09:23 +0200 (MEST)
I've single-stepped the test program and found the exact location where it
SEGVs:
int
main (void)
{
long double ld = 1.0;
}
Here's an excerpt from the resulting assembler code:
.rdata
.quad 0
.align 4
$LC0:
.quad 0x000000000,0x3fff000000000000
and here's the relevant code for the assignment to ld, just after the
function prologue:
lda $1,$LC0 ; load address of ld into $1
ldq $1,0($1) ; store high quad of ld into $1, overwriting &ld!
ldq $2,8($1) ; the first quad of 1.0 happens to be 0, so 8($1)
; dereferences a NULL pointer and SEGVs
Unfortunately, I cannot yet read the RTL dumps to understand why this is
happening.
Rainer
-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University
Email: ro@TechFak.Uni-Bielefeld.DE
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-03-29 8:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-29 0:33 target/2273: [Alpha/Tru64 UNIX V5.1] SEGV in long double code rth
-- strict thread matches above, loose matches on Subject: below --
2001-04-03 10:16 Rainer Orth
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).