This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
RE: [RFA] set PROTOTYPED flag for pascal functions in dwarf2read.c
Thanks
Committed.
Pierre Muller
> -----Original Message-----
> From: Daniel Jacobowitz [mailto:drow@false.org]
> Sent: Wednesday, September 26, 2007 2:57 PM
> To: Pierre Muller
> Cc: gdb-patches@sourceware.org
> Subject: Re: [RFA] set PROTOTYPED flag for pascal functions in
> dwarf2read.c
>
> On Wed, Sep 26, 2007 at 02:49:49PM +0200, Pierre Muller wrote:
> > According to Jonas Maebe, all pascal functions are
> > prototyped (as are C++ and Java functions).
> > I did not find any code that really uses the fact
> > that a function is prototyped, but I am willing to
> > commit this after approval by dwarf2 maintainers
> > so that I can close one more bug report...
>
> This affects the way parameters are passed. In C, the usual
> consequence is that float is promoted to double when calling an
> unprototyped function, but preserved as float when calling
> a prototyped function.
>
> > 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
> >
> > * Fix PR pascal/2231
> > dwarf2read.c (read_subroutine_type):
> > All pascal functions are prototyped.
>
> OK.
>
> --
> Daniel Jacobowitz
> CodeSourcery