aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorAndi Kleen <ak@linux.intel.com>2024-05-21 07:01:57 -0700
committerAndi Kleen <ak@gcc.gnu.org>2024-07-17 21:26:16 -0700
commit81824596361cf4919d6dc026155160581c99b860 (patch)
tree5aabebbb586c28e5b06ea87fd59a0b95c8d49454 /gcc/doc
parentb738a63e528db410a1c51fc27db37fe22f0cb397 (diff)
downloadgcc-81824596361cf4919d6dc026155160581c99b860.zip
gcc-81824596361cf4919d6dc026155160581c99b860.tar.gz
gcc-81824596361cf4919d6dc026155160581c99b860.tar.bz2
Give better error messages for musttail
When musttail is set, make tree-tailcall give error messages when it cannot handle a call. This avoids vague "other reasons" error messages later at expand time when it sees a musttail function not marked tail call. In various cases this requires delaying the error until the call is discovered. Also print more information on the failure to the dump file. gcc/ChangeLog: PR c/83324 * tree-tailcall.cc (maybe_error_musttail): New function. (suitable_for_tail_opt_p): Report error reason. (suitable_for_tail_call_opt_p): Report error reason. (find_tail_calls): Accept basic blocks with abnormal edges. Delay reporting of errors until the call is discovered. Move top level suitability checks to here. (tree_optimize_tail_calls_1): Remove top level checks.
Diffstat (limited to 'gcc/doc')
0 files changed, 0 insertions, 0 deletions