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 $ operand number format checking bugs





  In message <Pine.LNX.4.21.0009172045240.25513-100000@kern.srcf.societies.cam.
ac.uk>you write:
  > This patch fixes some bugs in $ operand number format checking
  > (including one in a testcase which masked a bug in the code) and adds
  > support for %m printf formats (which convert no argument) to be used
  > together with $ operand number formats.
  > 
  > Bootstrapped with no regressions on i686-pc-linux-gnu.  OK to commit?
  > 
  > gcc/ChangeLog:
  > 2000-09-17  Joseph S. Myers  <jsm28@cam.ac.uk>
  > 
  > 	* c-common.c (check_format_info): Properly save the argument
  > 	number and parameter for $ operand number formats in case width
  > 	and precision arguments are also used.  Allow printf width and
  > 	precision arguments to have operand numbers even if none was
  > 	specified for the main format, since this is OK for %*.*m.  Only
  > 	object to missing $ operand number if the format used requires an
  > 	argument.
  > 
  > gcc/testsuite/ChangeLog:
  > 2000-09-17  Joseph S. Myers  <jsm28@cam.ac.uk>
  > 
  > 	* gcc.dg/format-ext-1.c: Add tests for mixing %m with $ formats.
  > 	* gcc.dg/format-xopen-1.c: Fix error in one $ format test.  Add
  > 	more $ format tests.
Approved.  Please install.
jeff


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