diff options
author | Joseph Myers <jsm28@cam.ac.uk> | 2000-09-07 18:20:04 +0100 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2000-09-07 18:20:04 +0100 |
commit | 2496f0b583a88c14572fa4095f0ff0017cdbb8c1 (patch) | |
tree | f180d5823fdef196c0fdbef5cd871fee2ed92a11 /gcc/c-common.c | |
parent | bf6302f0e771555388849d8f525a63231cec79f5 (diff) | |
download | gcc-2496f0b583a88c14572fa4095f0ff0017cdbb8c1.zip gcc-2496f0b583a88c14572fa4095f0ff0017cdbb8c1.tar.gz gcc-2496f0b583a88c14572fa4095f0ff0017cdbb8c1.tar.bz2 |
c-common.c (time_char_table): Allow %#b and %#h.
* c-common.c (time_char_table): Allow %#b and %#h.
testsuite:
* gcc.dg/format-ext-3.c: Test %#b and %#h as formats that should
be accepted.
From-SVN: r36241
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r-- | gcc/c-common.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index fc8476a..c53ee1a 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -1420,8 +1420,7 @@ static const format_char_info scan_char_table[] = static format_char_info time_char_table[] = { /* C89 conversion specifiers. */ - { "ABZa", 0, STD_C89, NOLENGTHS, "^#" }, - { "b", 0, STD_C89, NOLENGTHS, "^" }, + { "ABZab", 0, STD_C89, NOLENGTHS, "^#" }, { "cx", 0, STD_C89, NOLENGTHS, "3E" }, { "HIMSUWdmw", 0, STD_C89, NOLENGTHS, "-_0Ow" }, { "j", 0, STD_C89, NOLENGTHS, "-_0Oow" }, @@ -1437,7 +1436,7 @@ static format_char_info time_char_table[] = { "FRTnrt", 0, STD_C99, NOLENGTHS, "" }, { "g", 0, STD_C99, NOLENGTHS, "2Oo-_0w" }, { "G", 0, STD_C99, NOLENGTHS, "-_0Oow" }, - { "h", 0, STD_C99, NOLENGTHS, "^" }, + { "h", 0, STD_C99, NOLENGTHS, "^#" }, { "z", 0, STD_C99, NOLENGTHS, "Oo" }, /* GNU conversion specifiers. */ { "kls", 0, STD_EXT, NOLENGTHS, "-_0Ow" }, |