OSDN Git Service

* c-common.c (decl_attributes): Don't allow strftime formats with
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 12 Oct 2000 09:28:52 +0000 (09:28 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 12 Oct 2000 09:28:52 +0000 (09:28 +0000)
commite6dd34f167491c9011299274335e47fcf1d5fb71
tree10bcbca131e9d45e6679cdb46afd7506c3c47005
parent72fb8ab85f0090aa1f1301a0526dabcd74ec412d
* c-common.c (decl_attributes): Don't allow strftime formats with
first_arg_num nonzero.
(check_format_info): Set wanted_type and wanted_type_name to zero
before they are possibly assigned and used.

testsuite:
* gcc.dg/format-attr-1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36845 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/format-attr-1.c [new file with mode: 0644]