This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PING patch]: Preparations for call abi switching via attribute.
- From: Kai Tietz <Kai dot Tietz at onevision dot com>
- To: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 7 May 2008 13:16:36 +0200
- Subject: Re: [PING patch]: Preparations for call abi switching via attribute.
Hans-Peter Nilsson <hans-peter.nilsson@axis.com> wrote on 07.05.2008
11:23:44:
> > From: Kai Tietz <Kai.Tietz@onevision.com>
> > Date: Wed, 7 May 2008 10:50:34 +0200
>
> > 2008-04-29 Kai Tietz <kai,tietz@onevision.com>
>
> s/,/./? Or are you trying to avoid being harvested?
>
> > * config/cris/cris.h: Add comment to #if 0 clause.
>
> Nah, it should be "adjust #if 0:d RETURN_IN_MEMORY code". :)
> But, I'm ok with removing the #if 0:d code and changing the
> comment to "Let's try returning structures in registers". Or
> rather, remove it all; changing the ABI now would probably be
> worse in total.
>
> > +++ gcc/gcc/config/cris/cris.h
> > @@ -924,10 +924,11 @@ struct cum_args {int regs;};
> > /* Node: Aggregate Return */
> >
> > #if 0
> > +/* FYN, if fixing change it to use TARGET_RETURN_IN_MEMORY instead.
*/
>
> Whats a FYN? (Or rather, don't add this comment.) (Please
> avoid introducing new TLA's. Google finds a certain Danish
> island and "Florida Yards and Neighborhoods Program".)
>
> > /* FIXME: Let's try this some time, so we return structures in
registers.
> > We would cast the result of int_size_in_bytes to unsigned, so we
will
> > get a huge number for "structures" of variable size (-1). */
> > -#define RETURN_IN_MEMORY(TYPE) \
> > +#define RETURN_IN_MEMORY(TYPE, FNTYPE) \
> > ((unsigned) int_size_in_bytes (TYPE) > CRIS_MAX_ARGS_IN_REGS *
> UNITS_PER_WORD)
> > #endif
>
> Shouldn't that also be a
> s/RETURN_IN_MEMORY/TARGET_RETURN_IN_MEMORY/? No need to have a
> separate way of editing just because it's #if 0:d. :)
>
> Still, better scrap all inside #if 0.
>
> I'd also be fine if you just skip it and leave it to me.
>
> Thanks for tending to us little targets.
>
> brgds, H-P
>
I scrap the complete #if 0. I will apply it with the rest of the patch,
when I got the commit of the other maintainers.
I attached the patch for you to review it.
Cheers,
Kai
| (\_/) This is Bunny. Copy and paste Bunny
| (='.'=) into your signature to help him gain
| (")_(") world domination.
Index: gcc/gcc/config/cris/cris.h
===================================================================
--- gcc.orig/gcc/config/cris/cris.h
+++ gcc/gcc/config/cris/cris.h
@@ -923,14 +923,6 @@ struct cum_args {int regs;};
/* Node: Aggregate Return */
-#if 0
-/* FIXME: Let's try this some time, so we return structures in registers.
- We would cast the result of int_size_in_bytes to unsigned, so we will
- get a huge number for "structures" of variable size (-1). */
-#define RETURN_IN_MEMORY(TYPE) \
- ((unsigned) int_size_in_bytes (TYPE) > CRIS_MAX_ARGS_IN_REGS *
UNITS_PER_WORD)
-#endif
-
#define CRIS_STRUCT_VALUE_REGNUM ((CRIS_FIRST_ARG_REG) - 1)