OSDN Git Service

2009-04-23 Rafael Avila de Espindola <espindola@google.com>
authorespindola <espindola@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 23 Apr 2009 08:44:55 +0000 (08:44 +0000)
committerespindola <espindola@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 23 Apr 2009 08:44:55 +0000 (08:44 +0000)
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146638 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/c-format.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/format/gcc_diag-1.c

index c4e78f5..f44140d 100644 (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>
 
        * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
index 24a292f..f64cb21 100644 (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 },
 
   /* 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 },
   { "m",   0, STD_C89, NOARGUMENTS, "q",     "",   NULL },
index 63d3d3b..accd069 100644 (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>
 
        PR C/31499
index f8af0ea..6bfa3ce 100644 (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" } */
   diag ("%D", 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" } */
   cdiag ("%A", t1); /* { dg-warning "format" "bogus tree" } */
   cdiag ("%#D", t1); /* { dg-warning "format" "bogus modifier" } */