[Patch] libstdc++/26970

Paolo Carlini pcarlini@suse.de
Mon Jun 12 22:01:00 GMT 2006


Hi Jakub, all

>On Sun, Jun 11, 2006 at 02:50:51PM -0500, Gabriel Dos Reis wrote:
>  
>
>>| the below started noticing that __convert_from_v was not exported and
>>| that -Wformat-nonliteral is happy with variadic functions. Overall, in
>>| my opinion the code is not less clean than before...
>>| 
>>| I would ask Benjamin and Jakub to help me double checking that
>>| everything is still fine wrt long double on powerpc... I will wait
>>| until tomorrow, in any case.
>>    
>>
>With the latest patch Paolo sent I don't see why it couldn't just work
>on the long double {64,128} arches, though I haven't tested it.
>
>>  Variadic functions are usually slower than non-variadic ones.  Any
>>reason why the issue could not be addressed differently?
>>    
>>
>But s*printf is already variadic and on most targets sprintf and snprintf
>are just tiny wrappers around vsprintf and vsnprintf (the code duplication
>would be otherwise huge).  So it really doesn't matter if you do
>va_start/va_end in the vsnprintf caller or call snprintf which in turn
>does va_start/va_end.
>  
>
Excellent! Therefore, I'm going to commit the patch (mainline only, of 
course). In case problems show-up on powerpc-linux (+ long double), 
please let me know and I will immediately revert the patch (or we can 
work together on a better fix ;)

Thanks everyone for your feedback,
Paolo.



More information about the Libstdc++ mailing list