[C++ Patch] PR 38980

Paolo Carlini paolo.carlini@oracle.com
Wed Oct 5 11:28:00 GMT 2011


Hi,

as analyzed by Jakub in the audit trail, after changes made by Mark back 
in 2005, constant_value_1 doesn't return aggregate constants for fear of 
inadvertent copies (in general their addresses must be the same 
everywhere). However, for the purpose of format checking in 
check_format_arg it is safe to do that, and necessary, thus Jakub 
suggested adding a parameter to decl_constant_value controlling that 
behavior. Which is what I tried to do with the below, tested x86_64-linux.

Ok for mainline?

Thanks,
Paolo.

/////////////////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_38980
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20111005/0da9315b/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_38980
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20111005/0da9315b/attachment-0001.ksh>


More information about the Gcc-patches mailing list