diff options
author | Martin Liska <mliska@suse.cz> | 2021-02-18 12:58:39 +0100 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2021-04-21 12:53:14 +0200 |
commit | df0581a4aff45e73ba7b73df7b98ba492bdc28a8 (patch) | |
tree | deb9e91fcba5aed59006d5358af7dc06477887d4 /gcc/tree-cfg.c | |
parent | d8f953819e8f72e646f22c7803d79bd2b56d1e30 (diff) | |
download | gcc-df0581a4aff45e73ba7b73df7b98ba492bdc28a8.zip gcc-df0581a4aff45e73ba7b73df7b98ba492bdc28a8.tar.gz gcc-df0581a4aff45e73ba7b73df7b98ba492bdc28a8.tar.bz2 |
Support LABEL_DECL in %qD directive.
gcc/cp/ChangeLog:
* error.c (dump_decl): Support anonymous labels.
gcc/ChangeLog:
* tree-cfg.c (gimple_verify_flow_info): Use qD instead
of print_generic_expr.
Diffstat (limited to 'gcc/tree-cfg.c')
-rw-r--r-- | gcc/tree-cfg.c | 29 |
1 files changed, 10 insertions, 19 deletions
diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index 4f63aa6..f985867 100644 --- a/gcc/tree-cfg.c +++ b/gcc/tree-cfg.c @@ -5564,37 +5564,29 @@ gimple_verify_flow_info (void) label = gimple_label_label (as_a <glabel *> (stmt)); if (prev_stmt && DECL_NONLOCAL (label)) { - error ("nonlocal label "); - print_generic_expr (stderr, label); - fprintf (stderr, " is not first in a sequence of labels in bb %d", - bb->index); + error ("nonlocal label %qD is not first in a sequence " + "of labels in bb %d", label, bb->index); err = 1; } if (prev_stmt && EH_LANDING_PAD_NR (label) != 0) { - error ("EH landing pad label "); - print_generic_expr (stderr, label); - fprintf (stderr, " is not first in a sequence of labels in bb %d", - bb->index); + error ("EH landing pad label %qD is not first in a sequence " + "of labels in bb %d", label, bb->index); err = 1; } if (label_to_block (cfun, label) != bb) { - error ("label "); - print_generic_expr (stderr, label); - fprintf (stderr, " to block does not match in bb %d", - bb->index); + error ("label %qD to block does not match in bb %d", + label, bb->index); err = 1; } if (decl_function_context (label) != current_function_decl) { - error ("label "); - print_generic_expr (stderr, label); - fprintf (stderr, " has incorrect context in bb %d", - bb->index); + error ("label %qD has incorrect context in bb %d", + label, bb->index); err = 1; } } @@ -5616,9 +5608,8 @@ gimple_verify_flow_info (void) if (glabel *label_stmt = dyn_cast <glabel *> (stmt)) { - error ("label "); - print_generic_expr (stderr, gimple_label_label (label_stmt)); - fprintf (stderr, " in the middle of basic block %d", bb->index); + error ("label %qD in the middle of basic block %d", + gimple_label_label (label_stmt), bb->index); err = 1; } } |