[RFA] set PROTOTYPED flag for pascal functions in dwarf2read.c

Daniel Jacobowitz drow@false.org
Wed Sep 26 12:57:00 GMT 2007


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



More information about the Gdb-patches mailing list