[ARC] Add SJLI support

Programming / Compilers / GCC - claziss [138bc75d-0d04-0410-961f-82ee72b054a4] - 26 January 2018 11:33 EST

gcc/ 2018-01-26 Claudiu Zissulescu

- config/arc/arc-protos.h: Add arc_is_secure_call_p proto.
- config/arc/arc.c (arc_handle_secure_attribute): New function. (arc_attribute_table): Add 'secure_call' attribute. (arc_print_operand): Print secure call operand. (arc_function_ok_for_sibcall): Don't optimize tail calls when secure. (arc_is_secure_call_p): New function.
- config/arc/arc.md (call_i): Add support for sjli instruction. (call_value_i): Likewise.
- config/arc/constraints.md (Csc): New constraint.

c73f40d64a8 [ARC] Add SJLI support.
gcc/ChangeLog | 13 ++++
gcc/config/arc/arc-protos.h | 1 +
gcc/config/arc/arc.c | 163 +++++++++++++++++++++++++++++++-----------
gcc/config/arc/arc.md | 32 +++++----
gcc/config/arc/constraints.md | 7 ++
gcc/doc/extend.texi | 6 ++
6 files changed, 167 insertions(+), 55 deletions(-)

Upstream: gcc.gnu.org


  • Share