gcc_diag-1.c (foo): Don't check that %E produces a warning.

2009-04-23  Rafael Avila de Espindola  <espindola@google.com>

	* gcc.dg/format/gcc_diag-1.c (foo): Don't check that %E produces a
	warning.

2009-04-23  Rafael Avila de Espindola  <espindola@google.com>

	* c-format.c (gcc_tdiag_char_table): Add support for %E.

From-SVN: r146638
This commit is contained in:
Rafael Avila de Espindola 2009-04-23 08:44:55 +00:00 committed by Rafael Espindola
parent bf7580081f
commit 4782dfa72f
4 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2009-04-23 Rafael Avila de Espindola <espindola@google.com>
* c-format.c (gcc_tdiag_char_table): Add support for %E.
2009-04-23 Uros Bizjak <ubizjak@gmail.com> 2009-04-23 Uros Bizjak <ubizjak@gmail.com>
* config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to

View File

@ -588,7 +588,7 @@ static const format_char_info gcc_tdiag_char_table[] =
{ "H", 0, STD_C89, { T89_V, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN }, "q", "", NULL }, { "H", 0, STD_C89, { T89_V, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN }, "q", "", NULL },
/* These will require a "tree" at runtime. */ /* These will require a "tree" at runtime. */
{ "DFJKT", 0, STD_C89, { T89_V, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN }, "q+", "", NULL }, { "DFJKTE", 0, STD_C89, { T89_V, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN }, "q+", "", NULL },
{ "<>'", 0, STD_C89, NOARGUMENTS, "", "", NULL }, { "<>'", 0, STD_C89, NOARGUMENTS, "", "", NULL },
{ "m", 0, STD_C89, NOARGUMENTS, "q", "", NULL }, { "m", 0, STD_C89, NOARGUMENTS, "q", "", NULL },

View File

@ -1,3 +1,8 @@
2009-04-23 Rafael Avila de Espindola <espindola@google.com>
* gcc.dg/format/gcc_diag-1.c (foo): Don't check that %E produces a
warning.
2009-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com> 2009-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
PR C/31499 PR C/31499

View File

@ -137,7 +137,7 @@ foo (int i, int i1, int i2, unsigned int u, double d, char *s, void *p,
cxxdiag ("%+H", loc); /* { dg-warning "format" "bogus modifier" } */ cxxdiag ("%+H", loc); /* { dg-warning "format" "bogus modifier" } */
diag ("%D", t1); /* { dg-warning "format" "bogus tree" } */ diag ("%D", t1); /* { dg-warning "format" "bogus tree" } */
tdiag ("%A", t1); /* { dg-warning "format" "bogus tree" } */ tdiag ("%A", t1); /* { dg-warning "format" "bogus tree" } */
tdiag ("%E", t1); /* { dg-warning "format" "bogus tree" } */ tdiag ("%E", t1);
tdiag ("%#D", t1); /* { dg-warning "format" "bogus modifier" } */ tdiag ("%#D", t1); /* { dg-warning "format" "bogus modifier" } */
cdiag ("%A", t1); /* { dg-warning "format" "bogus tree" } */ cdiag ("%A", t1); /* { dg-warning "format" "bogus tree" } */
cdiag ("%#D", t1); /* { dg-warning "format" "bogus modifier" } */ cdiag ("%#D", t1); /* { dg-warning "format" "bogus modifier" } */