This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Committed] Fix tree-opt/37024, wrong tail call for conversions


Hi,
  The problem here is that we were checking the right hand of the
assignment's tree code which is never a conversion any more and we
needed to check gimple_assign_cast_p instead.  This patch fixes that
oversight for tail calls.

Committed as preapproved in the bug report after a bootstrap/test on
powerpc64-linux-gnu with no regressions.

Thanks,
Andrew Pinski

ChangeLog:

* tree-tailcall.c (process_assignment): Use gimple_assign_cast_p instead of
IS_CONVERT_EXPR_CODE_P for seeing if the assignment is a conversion.


* gcc.dg/tree-ssa/tailcall-4.c: New testcase.

Attachment: t.diff.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]