public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* target/4033: Illegal assembly generated on ppc64
@ 2001-08-15 14:26 Zoltan Hidvegi
0 siblings, 0 replies; 2+ messages in thread
From: Zoltan Hidvegi @ 2001-08-15 14:26 UTC (permalink / raw)
To: gcc-gnats
>Number: 4033
>Category: target
>Synopsis: Illegal assembly generated on ppc64
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: wrong-code
>Submitter-Id: net
>Arrival-Date: Wed Aug 15 10:56:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Zoltan Hidvegi
>Release: 3.0.1 20010725 (prerelease)
>Organization:
>Environment:
System: AIX vlad 3 4 0005BA2F4C00
host: powerpc-ibm-aix4.3.3.0
build: powerpc-ibm-aix4.3.3.0
target: powerpc-ibm-aix4.3.3.0
configured with: ../gcc/configure --prefix=... --with-local-prefix=... --enable-languages=c,c++,java --enable-version-specific-runtime-libs --disable-nls --disable-shared
>Description:
The function
int
load_p_plus_2(char *p)
{
return *(int*)(p+2);
}
when compiled with -O2 -maix64 generates
lwa 3,2(3)
This is illegal, only displacements that are multiple of 4 are
allowed. The IBM compiler generates
lwz r0,2(r3)
extsw r3,r0
>How-To-Repeat:
Run gcc -O2 -maix64 -c bug64.c
--------- BEGIN bug64.c -----------
int
load_p_plus_2(char *p)
{
return *(int*)(p+2);
}
---------- END bug64.c ------------
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: target/4033: Illegal assembly generated on ppc64
@ 2001-09-24 15:37 dje
0 siblings, 0 replies; 2+ messages in thread
From: dje @ 2001-09-24 15:37 UTC (permalink / raw)
To: dje, gcc-bugs, gcc-prs, hzoli, nobody
Synopsis: Illegal assembly generated on ppc64
Responsible-Changed-From-To: unassigned->dje
Responsible-Changed-By: dje
Responsible-Changed-When: Mon Sep 24 15:37:14 2001
Responsible-Changed-Why:
PowerPC
State-Changed-From-To: open->closed
State-Changed-By: dje
State-Changed-When: Mon Sep 24 15:37:14 2001
State-Changed-Why:
PowerPC fix below
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=4033&database=gcc
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-09-24 15:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-15 14:26 target/4033: Illegal assembly generated on ppc64 Zoltan Hidvegi
2001-09-24 15:37 dje
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).