public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: target/2396
@ 2001-03-27 4:46 rearnsha
0 siblings, 0 replies; 3+ messages in thread
From: rearnsha @ 2001-03-27 4:46 UTC (permalink / raw)
To: rearnsha; +Cc: gcc-prs
The following reply was made to PR target/2396; it has been noted by GNATS.
From: rearnsha@gcc.gnu.org
To: gcc-gnats@gcc.gnu.org, nobody@gcc.gnu.org, rearnsha@gcc.gnu.org,
ted@arraycomm.com
Cc:
Subject: Re: target/2396
Date: 27 Mar 2001 12:39:41 -0000
Synopsis: ARM/thumb 5th function argument access problem
Responsible-Changed-From-To: unassigned->rearnsha
Responsible-Changed-By: rearnsha
Responsible-Changed-When: Tue Mar 27 04:39:40 2001
Responsible-Changed-Why:
Please do not use priority High. That is reserved for use
by the gcc maintainers.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=2396&database=gcc
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: target/2396
@ 2001-03-27 14:06 Ted Merrill
0 siblings, 0 replies; 3+ messages in thread
From: Ted Merrill @ 2001-03-27 14:06 UTC (permalink / raw)
To: rearnsha; +Cc: gcc-prs
The following reply was made to PR target/2396; it has been noted by GNATS.
From: Ted Merrill <ted@arraycomm.com>
To: rearnsha@gcc.gnu.org
Cc: gcc-gnats@gcc.gnu.org, Ted Merrill <ted@arraycomm.com>
Subject: Re: target/2396
Date: Tue, 27 Mar 2001 13:54:43 -0800 (PST)
Preliminary indication is that the patch has fixed the problem, although
in a non-optimal way. More testing might reveal other problems(?).
Essentially it has added an (unnecessary) push {lr} at the beginning and
replaced the bx{lr} with a pop {pc} at the end, so now the access to [sp,#4]
is correct.
The simple case:
int foo(int a0,int a1,int a2, int a3, int a4) { return a4; }
is unchanged: it still compiles correctly and optimally as:
ldr r0,[sp]
bx lr
Unfortunately, most of our small leaf subroutines involve at least one
conditional, which generates pretty non-optimal code (but at least
it is correct now, with the patch, and is more optimal than
using -fno-omit-frame-pointer).
Thanks
Ted Merrill
On 27 Mar 2001 rearnsha@gcc.gnu.org wrote:
> Synopsis: ARM/thumb 5th function argument access problem
>
> State-Changed-From-To: open->feedback
> State-Changed-By: rearnsha
> State-Changed-When: Tue Mar 27 04:19:28 2001
> State-Changed-Why:
> I don't currently have a build of that target, but looking
> at the source and comparing it with the latest version (which
> is correct, but so different that it is difficult to back-port th
> change) it is fairly clear what the problem is.
>
> Can you please try the attached patch. Sorry, since I don't
> have a build for that target, I can't test it myself at this time.
>
> http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=2396&database=gcc
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: target/2396
@ 2001-03-27 4:26 rearnsha
0 siblings, 0 replies; 3+ messages in thread
From: rearnsha @ 2001-03-27 4:26 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR target/2396; it has been noted by GNATS.
From: rearnsha@gcc.gnu.org
To: gcc-gnats@gcc.gnu.org, nobody@gcc.gnu.org, ted@arraycomm.com
Cc:
Subject: Re: target/2396
Date: 27 Mar 2001 12:19:29 -0000
Synopsis: ARM/thumb 5th function argument access problem
State-Changed-From-To: open->feedback
State-Changed-By: rearnsha
State-Changed-When: Tue Mar 27 04:19:28 2001
State-Changed-Why:
I don't currently have a build of that target, but looking
at the source and comparing it with the latest version (which
is correct, but so different that it is difficult to back-port th
change) it is fairly clear what the problem is.
Can you please try the attached patch. Sorry, since I don't
have a build for that target, I can't test it myself at this time.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=2396&database=gcc
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-03-27 14:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-27 4:46 target/2396 rearnsha
-- strict thread matches above, loose matches on Subject: below --
2001-03-27 14:06 target/2396 Ted Merrill
2001-03-27 4:26 target/2396 rearnsha
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).