This is the mail archive of the gdb@sourceware.cygnus.com mailing list for the GDB project. See the GDB home page for more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Problem with Nov 21 1997 valops.c:call_function_by_hand change (revisited)



>> I used value_cast because I wanted to correctly pass arguments to
>> prototyped functions whose formal parameters had small integer types.
>> The present logic in value_arg_coerce always widens everything to an
>> int.  (ANSI C says no promotion should take place, but this isn't a
>> standards issue, it's an ABI issue.)  Do all ABI's really specify that
>> small integer arguments are always passed as int-sized values?
>
>Would you prefer the following approach to the problem ?

That logic seems to correspond more closely to the rules required,
yes.  It's fine with me.