DragonFly BSD
DragonFly submit List (threaded) for 2005-03
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: FPU Bounds [Was: Re: openssh4.0 upgrade]


From: Joerg Sonnenberger <joerg@xxxxxxxxxxxxxxxxx>
Date: Wed, 23 Mar 2005 17:07:54 +0100
Mail-followup-to: submit@crater.dragonflybsd.org

On Wed, Mar 23, 2005 at 01:52:24AM -0800, Matthew Dillon wrote:
>     In anycase, it looks like GCC just breaks when you use the internal
>     va_arg with a 'char' type.  It is supposed to promote the argument
>     to an int and then cast it to a char.  Instead it generates, well, 
>     what you see.

Actually this is a bug in the code using va_arg. There is even a warning
flag for GCC to catch implicit int promotions for variadic functions,
because the variadic function has to use int.

FreeBSD correct that 4.5 years ago :)

Joerg



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]