[PATCH] preprocessor/58580 - preprocessor goes OOM with warning for zero literals

H.J. Lu hjl.tools@gmail.com
Tue Jan 28 18:40:00 GMT 2014


On Tue, Jan 28, 2014 at 5:23 AM, Dodji Seketeli <dodji@redhat.com> wrote:
> Dodji Seketeli <dodji@redhat.com> writes:
>
>> Here is the patch I am committing right now.
>>
>> gcc/ChangeLog
>>
>>       * input.c (location_get_source_line): Bail out on when line number
>>       is zero, and test the return value of
>>       lookup_or_add_file_to_cache_tab.
>>
>> gcc/testsuite/ChangeLog
>>
>>       * c-c++-common/cpp/warning-zero-location.c: New test.
>>       * c-c++-common/cpp/warning-zero-location-2.c: Likewise.
>
> I forgot to say that it passed bootstrap & test on
> x86_64-unknown-linux-gnu against trunk.
>

The new tests failed on Linux/x86:

ERROR: c-c++-common/cpp/warning-zero-location-2.c -std=gnu++11: syntax
error in target selector "4636" for " dg-error 10 "No such file or
directory" { target *-*-* } 4636 "
ERROR: c-c++-common/cpp/warning-zero-location-2.c -std=gnu++98: syntax
error in target selector "4636" for " dg-error 10 "No such file or
directory" { target *-*-* } 4636 "
ERROR: c-c++-common/cpp/warning-zero-location-2.c  -Wc++-compat :
syntax error in target selector "4636" for " dg-error 10 "No such file
or directory" { target *-*-* } 4636 "




-- 
H.J.



More information about the Gcc-patches mailing list