This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch for %Lg format pedantic warning (PR c/83)
- To: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Subject: Re: Patch for %Lg format pedantic warning (PR c/83)
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Mon, 17 Jul 2000 02:31:06 -0600
- cc: gcc-patches at gcc dot gnu dot org
- Reply-To: law at cygnus dot com
In message <Pine.SOL.4.21.0007090324200.4950-100000@red.csi.cam.ac.uk>you wri
te:
> This patch fixes the problem (PR c/83) where GCC objects to printf
> formats such as "%Lg" in pedantic mode, although these are valid C89
> and C99 formats for long double arguments. The warnings for 'q' and
> for 'L' used on integer arguments are retained.
>
> No testcase is added by this patch, since I have a thorough testcase
> covering most of the format checking involving use and misuse of C89
> printf features nearly ready.
>
> C compiler bootstrapped and C testsuite run on i686-pc-linux-gnu; no
> regressions.
>
> 2000-07-09 Joseph S. Myers <jsm28@cam.ac.uk>
>
> * c-common.c (check_format_info): Do not make a pedantic objection
> to the 'L' length modifier if used with a floating point type
> character.
Thanks. Installed.
jeff