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/60580] aarch64 generates wrong code for __attribute__ ((optimize("no-omit-frame-pointer")))


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

Jiong Wang <jiwang at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jiwang at gcc dot gnu.org

--- Comment #7 from Jiong Wang <jiwang at gcc dot gnu.org> ---
I'd take this for long term, hopefully could find a acceptable solution.

X86 is default with -fomit-frame-pointer which makes the logic a little bit
simpler, and thus X86 could survive in more normal case, but still fail in some
corner cases.

the fundamental problem is aarch64 and also x86 want to implement a finer
control of frame pointer which let leaf function be possible without setting up
frame record even under -fno-omit-frame-pointer. While gcc generic code is not
aware of that.


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