diff options
author | Uros Bizjak <uros@gcc.gnu.org> | 2017-07-31 12:22:41 +0200 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2017-07-31 12:22:41 +0200 |
commit | 2ec580be156c39a87ea39c2f475565bd36d82dcc (patch) | |
tree | 3c8c015e05face5b65528fc39a51a140f7eeb648 /gcc/tree-loop-distribution.c | |
parent | cfdf6ff61b8107d124f41c426d65acf8b5ad8cf5 (diff) | |
download | gcc-2ec580be156c39a87ea39c2f475565bd36d82dcc.zip gcc-2ec580be156c39a87ea39c2f475565bd36d82dcc.tar.gz gcc-2ec580be156c39a87ea39c2f475565bd36d82dcc.tar.bz2 |
re PR target/25967 (Add attribute naked for x86)
PR target/25967
* config/i386/i386.c (ix86_function_naked): New function.
(ix86_can_use_return_insn_p): Return false for naked functions.
(ix86_expand_prologue): Skip prologue for naked functions.
(ix86_expand_epilogue): Skip epilogue for naked functions
and emit trap instruction.
(ix86_warn_func_return): New function.
(ix86_attribute_table): Add "naked" attribute specification.
(TARGET_WARN_FUNC_RETURN): Define.
* doc/extend.texi (x86 Function Attributes) <naked>: Document it.
testsuite/ChangeLog:
PR target/25967
* gcc.target/i386/naked-1.c: New test.
* gcc.target/i386/naked-2.c: Ditto.
* gcc.target/i386/naked-3.c: Ditto.
* gcc.target/x86_64/abi/ms-sysv/ms-sysv.c: Remove
do_test_body0 stub function, use attribute "naked" instead.
* gcc.dg/pr44290-1.c: Use naked_functions effective target.
* gcc.dg/pr44290-2.c: Ditto.
From-SVN: r250736
Diffstat (limited to 'gcc/tree-loop-distribution.c')
0 files changed, 0 insertions, 0 deletions