Format checking patch: remaining glibc extensions

Jeffrey A Law law@cygnus.com
Thu Oct 12 00:14:00 GMT 2000


  In message <Pine.LNX.4.21.0010090755470.27194-100000@kern.srcf.societies.cam.
ac.uk>you write:
  > Given the reorganisation of format flag checking, essentially
  > completing the support for glibc 2.2 format features is trivial.  This
  > patch makes the necessary adjustments to the format checking tables to
  > support the scanf flags ' and I (which scan numbers printed with the
  > printf flags ' and I) and to reject incompatible pairs of strftime
  > flags.
  > 
  > Bootstrapped with no regressions on i686-pc-linux-gnu.  OK to commit?
  > 
  > gcc/ChangeLog:
  > 2000-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
  > 
  > 	* c-common.c (scanf_flag_specs): Add flags ' and I.
  > 	(strftime_flag_pairs): Disallow any pair of the _, - and 0 flags,
  > 	or the ^ and # flags together.
  > 	(scan_char_table): Handle the ' and I flags.
  > 	(format_types): Add ' and I flags for scanf.
  > 
  > gcc/testsuite/ChangeLog:
  > 2000-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
  > 
  > 	* gcc.dg/c99-scanf-2.c, gcc.dg/format-ext-2.c: Test ' and I
  > 	scanf flags.
  > 	* gcc.dg/format-ext-3.c: Test mutually exclusive pairs of strftime
  > 	flags.
This is fine.  Please install these patches.

Thanks!
jeff


More information about the Gcc-patches mailing list