OSDN Git Service

* c-common.c (check_format_info): Properly save the argument
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 18 Sep 2000 16:34:35 +0000 (16:34 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 18 Sep 2000 16:34:35 +0000 (16:34 +0000)
commit715638cccac7b43acca62d73f188723f80432683
treeafe91fed3f051f85e64931d64e2e92df5c5a70b3
parent85610b39f32ca9c71bcc3324382026fdae918ee3
* 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.

testsuite:
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36493 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/format-ext-1.c
gcc/testsuite/gcc.dg/format-xopen-1.c