PR cpp/7263 pragma system_header doesn't suppress warning on LL or ULL constants

Gabriel Dos Reis gdr@integrable-solutions.net
Wed Aug 13 03:51:00 GMT 2008


On Tue, Aug 12, 2008 at 10:29 AM, Manuel López-Ibáñez
<lopezibanez@gmail.com> wrote:
> This fixes part of 7263. A more general fix is difficult because we do
> want to test for token->src_loc but we want to print using the
> input_location, so using cpp_error_at_location is of no use here.
>
> Bootstrapped and regression tested on x86_64-unknown-linux-gnu with
> --enable-languages=all,ada
>
> OK for trunk?
>
> 2008-08-12  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
>
>        PR cpp/7263
> libcpp/
>        * internal.h (cpp_in_system_header_at): New.
>        (cpp_inhibit_warnings_at): New.
>        * expr.c (cpp_classsify_number): Use it.
> testsuite/
>        * gcc.dg/cpp/pr7263.c: New.
>        * gcc.dg/cpp/pr7263.h: New.
>

OK.

-- Gaby



More information about the Gcc-patches mailing list