diff options
author | Jakub Jelinek <jakub@redhat.com> | 2025-04-14 19:31:23 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2025-04-14 19:31:23 +0200 |
commit | 2e3c91786a981f2d68600e2d7b2e25a766e59c21 (patch) | |
tree | 4c3eed09b11ceed832ee65e36706971314ac8cd9 /libjava/java/util/NoSuchElementException.java | |
parent | 901d94e8b4eb9a273e9e75d5586cb5abde73a7a6 (diff) | |
download | gcc-2e3c91786a981f2d68600e2d7b2e25a766e59c21.zip gcc-2e3c91786a981f2d68600e2d7b2e25a766e59c21.tar.gz gcc-2e3c91786a981f2d68600e2d7b2e25a766e59c21.tar.bz2 |
pretty-print, expand: Print [must tail call] for CALL_EXPRs and fix up maybe_complain_about_tail_call [PR119718]
Andrew P. mentioned earlier he'd like to see in the dump files a note
whether it was a failed must tail call or not.
We already print that on the tailc/musttail pass side, because
print_gimple_stmt prints [must tail call] after the musttail calls.
The first hunk below does it for GENERIC CALL_EXPRs too (which is needed
for the expand diagnostics). That isn't enough though, because the
error on it was done first and then CALL_EXPR_MUST_TAIL_CALL flag was
cleared, so the dump didn't have it anymore. I've reordered the
dump printing with error, so that it works properly.
2025-04-14 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/119718
* tree-pretty-print.cc (dump_generic_node) <case CALL_EXPR>: Dump
also CALL_EXPR_MUST_TAIL_CALL flag.
* calls.cc (maybe_complain_about_tail_call): Emit error about
CALL_EXPR_MUST_TAIL_CALL only after emitting dump message, not before
it.
Diffstat (limited to 'libjava/java/util/NoSuchElementException.java')
0 files changed, 0 insertions, 0 deletions