pretty-print.c (pp_base_format): Remove %J.

2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>

	* pretty-print.c (pp_base_format): Remove %J.
	* c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
	gcc_cxxdiag_char_table): Likewise.
	(init_dynamic_diag_info): Likewise.
	
testsuite/	
	* gcc.dg/format/gcc_diag-1.c: Remove tests for %J.

From-SVN: r149334
parent dcb91ebe
2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org> 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
* pretty-print.c (pp_base_format): Remove %J.
* c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
gcc_cxxdiag_char_table): Likewise.
(init_dynamic_diag_info): Likewise.
2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
* pretty-print.c (pp_base_format): Remove %H. * pretty-print.c (pp_base_format): Remove %H.
* c-format.c (gcc_diag_char_table, gcc_tdiag_char_table, * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
gcc_cxxdiag_char_table): Likewise. gcc_cxxdiag_char_table): Likewise.
......
...@@ -562,7 +562,7 @@ static const format_char_info gcc_diag_char_table[] = ...@@ -562,7 +562,7 @@ static const format_char_info gcc_diag_char_table[] =
/* Custom conversion specifiers. */ /* Custom conversion specifiers. */
/* These will require a "tree" at runtime. */ /* These will require a "tree" at runtime. */
{ "JK", 0, STD_C89, { T89_V, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN }, "q", "", NULL }, { "K", 0, STD_C89, { T89_V, BADLEN, BADLEN, BADLEN, 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 },
...@@ -582,7 +582,7 @@ static const format_char_info gcc_tdiag_char_table[] = ...@@ -582,7 +582,7 @@ static const format_char_info gcc_tdiag_char_table[] =
/* Custom conversion specifiers. */ /* Custom conversion specifiers. */
/* These will require a "tree" at runtime. */ /* These will require a "tree" at runtime. */
{ "DFJKTE", 0, STD_C89, { T89_V, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN }, "q+", "", NULL }, { "DFKTE", 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 },
...@@ -602,7 +602,7 @@ static const format_char_info gcc_cdiag_char_table[] = ...@@ -602,7 +602,7 @@ static const format_char_info gcc_cdiag_char_table[] =
/* Custom conversion specifiers. */ /* Custom conversion specifiers. */
/* These will require a "tree" at runtime. */ /* These will require a "tree" at runtime. */
{ "DEFJKT", 0, STD_C89, { T89_V, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN }, "q+", "", NULL }, { "DEFKT", 0, STD_C89, { T89_V, BADLEN, BADLEN, BADLEN, 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 },
...@@ -622,7 +622,7 @@ static const format_char_info gcc_cxxdiag_char_table[] = ...@@ -622,7 +622,7 @@ static const format_char_info gcc_cxxdiag_char_table[] =
/* Custom conversion specifiers. */ /* Custom conversion specifiers. */
/* These will require a "tree" at runtime. */ /* These will require a "tree" at runtime. */
{ "ADEFJKTV",0,STD_C89,{ T89_V, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN }, "q+#", "", NULL }, { "ADEFKTV",0,STD_C89,{ T89_V, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN }, "q+#", "", NULL },
/* These accept either an 'int' or an 'enum tree_code' (which is handled as an 'int'.) */ /* These accept either an 'int' or an 'enum tree_code' (which is handled as an 'int'.) */
{ "CLOPQ",0,STD_C89, { T89_I, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN }, "q", "", NULL }, { "CLOPQ",0,STD_C89, { T89_I, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN }, "q", "", NULL },
...@@ -2598,9 +2598,6 @@ init_dynamic_diag_info (void) ...@@ -2598,9 +2598,6 @@ init_dynamic_diag_info (void)
sizeof (gcc_diag_char_table)); sizeof (gcc_diag_char_table));
if (t) if (t)
{ {
i = find_char_info_specifier_index (diag_fci, 'J');
diag_fci[i].types[0].type = &t;
diag_fci[i].pointer_count = 1;
i = find_char_info_specifier_index (diag_fci, 'K'); i = find_char_info_specifier_index (diag_fci, 'K');
diag_fci[i].types[0].type = &t; diag_fci[i].types[0].type = &t;
diag_fci[i].pointer_count = 1; diag_fci[i].pointer_count = 1;
...@@ -2619,9 +2616,6 @@ init_dynamic_diag_info (void) ...@@ -2619,9 +2616,6 @@ init_dynamic_diag_info (void)
i = find_char_info_specifier_index (tdiag_fci, 'D'); i = find_char_info_specifier_index (tdiag_fci, 'D');
tdiag_fci[i].types[0].type = &t; tdiag_fci[i].types[0].type = &t;
tdiag_fci[i].pointer_count = 1; tdiag_fci[i].pointer_count = 1;
i = find_char_info_specifier_index (tdiag_fci, 'J');
tdiag_fci[i].types[0].type = &t;
tdiag_fci[i].pointer_count = 1;
i = find_char_info_specifier_index (tdiag_fci, 'K'); i = find_char_info_specifier_index (tdiag_fci, 'K');
tdiag_fci[i].types[0].type = &t; tdiag_fci[i].types[0].type = &t;
tdiag_fci[i].pointer_count = 1; tdiag_fci[i].pointer_count = 1;
...@@ -2640,9 +2634,6 @@ init_dynamic_diag_info (void) ...@@ -2640,9 +2634,6 @@ init_dynamic_diag_info (void)
i = find_char_info_specifier_index (cdiag_fci, 'D'); i = find_char_info_specifier_index (cdiag_fci, 'D');
cdiag_fci[i].types[0].type = &t; cdiag_fci[i].types[0].type = &t;
cdiag_fci[i].pointer_count = 1; cdiag_fci[i].pointer_count = 1;
i = find_char_info_specifier_index (cdiag_fci, 'J');
cdiag_fci[i].types[0].type = &t;
cdiag_fci[i].pointer_count = 1;
i = find_char_info_specifier_index (cdiag_fci, 'K'); i = find_char_info_specifier_index (cdiag_fci, 'K');
cdiag_fci[i].types[0].type = &t; cdiag_fci[i].types[0].type = &t;
cdiag_fci[i].pointer_count = 1; cdiag_fci[i].pointer_count = 1;
...@@ -2661,9 +2652,6 @@ init_dynamic_diag_info (void) ...@@ -2661,9 +2652,6 @@ init_dynamic_diag_info (void)
i = find_char_info_specifier_index (cxxdiag_fci, 'D'); i = find_char_info_specifier_index (cxxdiag_fci, 'D');
cxxdiag_fci[i].types[0].type = &t; cxxdiag_fci[i].types[0].type = &t;
cxxdiag_fci[i].pointer_count = 1; cxxdiag_fci[i].pointer_count = 1;
i = find_char_info_specifier_index (cxxdiag_fci, 'J');
cxxdiag_fci[i].types[0].type = &t;
cxxdiag_fci[i].pointer_count = 1;
i = find_char_info_specifier_index (cxxdiag_fci, 'K'); i = find_char_info_specifier_index (cxxdiag_fci, 'K');
cxxdiag_fci[i].types[0].type = &t; cxxdiag_fci[i].types[0].type = &t;
cxxdiag_fci[i].pointer_count = 1; cxxdiag_fci[i].pointer_count = 1;
......
...@@ -190,7 +190,6 @@ pp_base_indent (pretty_printer *pp) ...@@ -190,7 +190,6 @@ pp_base_indent (pretty_printer *pp)
%.*s: a substring the length of which is specified by an argument %.*s: a substring the length of which is specified by an argument
integer. integer.
%Ns: likewise, but length specified as constant in the format string. %Ns: likewise, but length specified as constant in the format string.
%J: a decl tree, from which DECL_SOURCE_LOCATION will be recorded.
%K: a statement, from which EXPR_LOCATION and TREE_BLOCK will be recorded. %K: a statement, from which EXPR_LOCATION and TREE_BLOCK will be recorded.
Flag 'q': quote formatted text (must come immediately after '%'). Flag 'q': quote formatted text (must come immediately after '%').
...@@ -475,14 +474,6 @@ pp_base_format (pretty_printer *pp, text_info *text) ...@@ -475,14 +474,6 @@ pp_base_format (pretty_printer *pp, text_info *text)
(pp, *text->args_ptr, precision, unsigned, "x"); (pp, *text->args_ptr, precision, unsigned, "x");
break; break;
case 'J':
{
tree t = va_arg (*text->args_ptr, tree);
gcc_assert (text->locus != NULL);
*text->locus = DECL_SOURCE_LOCATION (t);
}
break;
case 'K': case 'K':
{ {
tree t = va_arg (*text->args_ptr, tree), block; tree t = va_arg (*text->args_ptr, tree), block;
......
2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org> 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
* gcc.dg/format/gcc_diag-1.c: Remove tests for %J.
2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
* gcc.dg/format/gcc_diag-1.c: Remove tests for %H. * gcc.dg/format/gcc_diag-1.c: Remove tests for %H.
2009-07-07 Jakub Jelinek <jakub@redhat.com> 2009-07-07 Jakub Jelinek <jakub@redhat.com>
......
...@@ -69,10 +69,6 @@ foo (int i, int i1, int i2, unsigned int u, double d, char *s, void *p, ...@@ -69,10 +69,6 @@ foo (int i, int i1, int i2, unsigned int u, double d, char *s, void *p,
tdiag ("%m"); tdiag ("%m");
cdiag ("%m"); cdiag ("%m");
cxxdiag ("%m"); cxxdiag ("%m");
diag ("%J", t1);
tdiag ("%J", t1);
cdiag ("%J", t1);
cxxdiag ("%J", t1);
tdiag ("%D%F%T", t1, t1, t1); tdiag ("%D%F%T", t1, t1, t1);
tdiag ("%+D%+F%+T", t1, t1, t1); tdiag ("%+D%+F%+T", t1, t1, t1);
...@@ -103,14 +99,6 @@ foo (int i, int i1, int i2, unsigned int u, double d, char *s, void *p, ...@@ -103,14 +99,6 @@ foo (int i, int i1, int i2, unsigned int u, double d, char *s, void *p,
tdiag ("%+m"); /* { dg-warning "format" "bogus modifier" } */ tdiag ("%+m"); /* { dg-warning "format" "bogus modifier" } */
cdiag ("%+m"); /* { dg-warning "format" "bogus modifier" } */ cdiag ("%+m"); /* { dg-warning "format" "bogus modifier" } */
cxxdiag ("%+m"); /* { dg-warning "format" "bogus modifier" } */ cxxdiag ("%+m"); /* { dg-warning "format" "bogus modifier" } */
diag ("%J"); /* { dg-warning "format" "missing arg" } */
tdiag ("%J"); /* { dg-warning "format" "missing arg" } */
cdiag ("%J"); /* { dg-warning "format" "missing arg" } */
cxxdiag ("%J"); /* { dg-warning "format" "missing arg" } */
diag ("%J", loc); /* { dg-warning "format" "wrong arg" } */
tdiag ("%J", loc); /* { dg-warning "format" "wrong arg" } */
cdiag ("%J", loc); /* { dg-warning "format" "wrong arg" } */
cxxdiag ("%J", loc); /* { dg-warning "format" "wrong arg" } */
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); tdiag ("%E", t1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment