[NDS32] Have sibling calls optmization to be performed on nds32 target.
authorChung-Ju Wu <jasonwucj@gmail.com>
Fri, 16 Jan 2015 06:45:09 +0000 (06:45 +0000)
committerChung-Ju Wu <jasonwucj@gcc.gnu.org>
Fri, 16 Jan 2015 06:45:09 +0000 (06:45 +0000)
commitd6529176b21a9e7402da40032a25247e69f91124
tree9ad5242156362721d37d48216c9c8867faa73af6
parent03390cda42267d8d04c7bde6c2a649cd255ae367
[NDS32] Have sibling calls optmization to be performed on nds32 target.

gcc/
* config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
prototype.
(nds32_expand_epilogue_v3pop): Likewise.
* config/nds32/nds32.md (sibcall): Define this for sibling call
optimization.
(sibcall_register): Likewise.
(sibcall_immediate): Likewise.
(sibcall_value): Likewise.
(sibcall_value_register): Likewise.
(sibcall_value_immediate): Likewise.
(sibcall_epilogue): Likewise.
(epilogue): Pass false to indicate this is not a sibcall epilogue.
* config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
(nds32_expand_epilogue_v3pop): Likewise.

From-SVN: r219712
gcc/ChangeLog
gcc/config/nds32/nds32-protos.h
gcc/config/nds32/nds32.c
gcc/config/nds32/nds32.md