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]

Re: Patch for %Lg format pedantic warning (PR c/83)


  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


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