This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/85593] [7/8/9 Regression] GCC on ARM allocates R3 for local variable when calling naked function with O2 optimizations enabled


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85593

--- Comment #14 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Dec  6 23:41:04 2018
New Revision: 266881

URL: https://gcc.gnu.org/viewcvs?rev=266881&root=gcc&view=rev
Log:
        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:
    trunk/gcc/testsuite/gcc.target/i386/pr85593.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/final.c
    trunk/gcc/testsuite/ChangeLog

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]