* sh le fp arg passing
@ 2002-04-24 0:17 mike stump
2002-04-24 11:09 ` Stephen Clarke
0 siblings, 1 reply; 2+ messages in thread
From: mike stump @ 2002-04-24 0:17 UTC (permalink / raw)
To: gcc
So, I have a question... Why do this:
Excerpt from cvs log gcc/config/sh/sh.h:
revision 1.23
date: 1998/11/23 08:50:40; author: amylaar; state: Exp; lines: +314 -73
Add SH4 support:
...
(FUNCTION_ARG): Little endian adjustment for SH4 SFmode.
Excerpt from cvs diff -u -r1.22 -r1.23 sh.h:
@@ -883,7 +1039,9 @@
((PASS_IN_REG_P ((CUM), (MODE), (TYPE)) \
&& ((NAMED) || TARGET_SH3E || ! current_function_varargs)) \
? gen_rtx (REG, (MODE), \
- (BASE_ARG_REG (MODE) + ROUND_REG ((CUM), (MODE)))) \
+ ((BASE_ARG_REG (MODE) + ROUND_REG ((CUM), (MODE))) \
+ ^ ((MODE) == SFmode && TARGET_SH4 \
+ && TARGET_LITTLE_ENDIAN != 0))) \
: 0)
is it compelling? Do we really want to do this? Why? Ignorant minds
want to know!
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: sh le fp arg passing
2002-04-24 0:17 sh le fp arg passing mike stump
@ 2002-04-24 11:09 ` Stephen Clarke
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Clarke @ 2002-04-24 11:09 UTC (permalink / raw)
To: mrs; +Cc: gcc
mrs@windriver.com wrote:
>
> So, I have a question... Why do this:
>
> Excerpt from cvs log gcc/config/sh/sh.h:
>
> revision 1.23
> date: 1998/11/23 08:50:40; author: amylaar; state: Exp; lines: +314 -73
> Add SH4 support:
> ...
> (FUNCTION_ARG): Little endian adjustment for SH4 SFmode.
It helps varargs. See this thread:
http://gcc.gnu.org/ml/gcc-bugs/2001-11/msg00010.html
--
Stephen Clarke, Principal Engineer, SuperH Inc.
Phone:1-408-922-4062, Fax:1-408-954-8507, mailto:Stephen.Clarke@superh.com
Mail: SuperH Inc., 3801 Zanker Rd., San Jose, CA 95134, USA.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-04-24 18:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-24 0:17 sh le fp arg passing mike stump
2002-04-24 11:09 ` Stephen Clarke
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).