https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85593
--- Comment #16 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Tue Jan 8 10:14:12 2019 New Revision: 267701 URL: https://gcc.gnu.org/viewcvs?rev=267701&root=gcc&view=rev Log: Backported from mainline 2018-12-07 Jakub Jelinek <ja...@redhat.com> 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. Added: branches/gcc-8-branch/gcc/testsuite/gcc.target/i386/pr85593.c Modified: branches/gcc-8-branch/gcc/ChangeLog branches/gcc-8-branch/gcc/final.c branches/gcc-8-branch/gcc/testsuite/ChangeLog