Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Richard Earnshaw <rearnsha@arm.com>
To: gdb-patches <gdb-patches@sources.redhat.com>
Cc: Richard.Earnshaw@arm.com
Subject: Re: [RFA]: ARM: Fix parameter handling of FP types in  arm_push_arguments()
Date: Fri, 08 Feb 2002 08:06:00 -0000	[thread overview]
Message-ID: <200202081605.QAA01859@cam-mail2.cambridge.arm.com> (raw)
In-Reply-To: Your message of "Fri, 08 Feb 2002 16:49:56 +0100." <20020208164956.R14241@cygbert.vinschen.de>

> Hi,
> 
> while running the testsuite on ARM, I found that the handling
> of type `float' as argument type in the function arm_push_arguments()
> is pretty buggy.
> 
> For some reason the size of float arguments was always given as
> sizeof(float) even when K&R style functions are called which
> expect the float arguments with sizeof(double).
> Up to this point one would expect that calling K&R functions with
> float arguments is broken.
> 
> As a matter of fact, arm_push_arguments() coerced float args
> always to double types so that K&R functions were happy while
> calling ANSI style functions getting float args were broken.
> 
> The below fix is doing two things now.
> 
> - It adds the macro COERCE_FLOAT_TO_DOUBLE() to config/arm/tm-arm.h,
>   calling standard_coerce_float_to_double().  This results in
>   floats being coerced to double already *before* arm_push_arguments()
>   is called.
> 
> - It eliminates the now useless (and wrong) special float handling
>   from arm_push_arguments().
> 
> Corinna
> 
> 2002-02-08  Corinna Vinschen  <vinschen@redhat.com>
> 
> 	* arm-tdep.c (arm_push_arguments): Eliminate special float
> 	type handling.
> 	* config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to
> 	call standard_coerce_float_to_double().

This looks good to me.  Is there a anything in the testsuite that is fixed 
by this?  If not, can you provide one.

R.



  reply	other threads:[~2002-02-08 16:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-08  7:50 Corinna Vinschen
2002-02-08  8:06 ` Richard Earnshaw [this message]
2002-02-08  8:13   ` Corinna Vinschen
2002-02-10  0:58     ` Corinna Vinschen
2002-02-14  7:59       ` Fernando Nasser
2002-02-14 11:01         ` Corinna Vinschen
2002-02-14 11:07           ` Richard Earnshaw

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200202081605.QAA01859@cam-mail2.cambridge.arm.com \
    --to=rearnsha@arm.com \
    --cc=Richard.Earnshaw@arm.com \
    --cc=gdb-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox