re PR target/85593 (GCC on ARM allocates R3 for local variable when calling naked...
authorJakub Jelinek <jakub@redhat.com>
Thu, 6 Dec 2018 23:41:04 +0000 (00:41 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 6 Dec 2018 23:41:04 +0000 (00:41 +0100)
commit820037ecf679ce5cadb5c91e07cfad2d6d57cf0c
treeccafd9c67b17129cb2f511f4ef2abe536c52cfaa
parent1e41b184480fb990c432624b5f698012fb0649e1
re PR target/85593 (GCC on ARM allocates R3 for local variable when calling naked function with O2 optimizations enabled)

PR target/85593
* final.c (rest_of_handle_final): Don't call collect_fn_hard_reg_usage
for functions with naked attribute.

* gcc.target/i386/pr85593.c: New test.

From-SVN: r266881
gcc/ChangeLog
gcc/final.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr85593.c [new file with mode: 0644]