This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v4] gcc/c-family/c-cppbuiltin.c: Let buffer enough to print host wide integer value


OK, I shall send related test case within two weeks (2014-12-10).

Thanks.

Send from Lenovo A788t.

Joseph Myers <joseph@codesourcery.com> wrote:

>On Thu, 27 Nov 2014, Chen Gang wrote:
>
>> The original length 18 is not enough for HOST_WIDE_INT printing, need
>> use 20 instead of.
>> 
>> Also need additional bytes for printing related prefix and suffix, and
>> give a related check.
>> 
>> It passes testsuite under fedora 20 x86_64-unknown-linux-gnu.
>> 
>> 2014-11-27  Chen Gang <gang.chen.5i5j@gmail.com>
>> 
>>         * c-family/c-cppbuiltin.c (builtin_define_with_int_value): Let
>>         buffer enough to print host wide integer value.
>
>OK.  Properly implementing the (-9223372036854775807LL-1) and similar 
>cases (when the value is the least int, long or long long on the target) 
>can be a followup fix.
>
>-- 
>Joseph S. Myers
>joseph@codesourcery.com

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