]> git.ipfire.org Git - thirdparty/gcc.git/commit
amdgcn: Fix DWARF variables with alloca
authorAndrew Stubbs <ams@codesourcery.com>
Fri, 8 Jan 2021 13:56:52 +0000 (13:56 +0000)
committerAndrew Stubbs <ams@codesourcery.com>
Fri, 15 Jan 2021 11:27:03 +0000 (11:27 +0000)
commit80b8724794612a621266bc4868b979f4b6a3faec
tree6a725ed2c5968d111d865a8460b004479316cd87
parentfdcb23540a2ed663bfca7e81164692aa0661b6d3
amdgcn: Fix DWARF variables with alloca

Require a frame pointer for entry functions that use alloca because it isn't
possible to encode the DWARF frame otherwise.  Adjust the CFA definition
expressions accordingly.

gcc/ChangeLog:

* config/gcn/gcn.c (gcn_expand_prologue): Use the frame pointer for
the DWARF CFA, if it exists.
(gcn_frame_pointer_rqd): Require a frame pointer for entry functions
that use alloca.
gcc/config/gcn/gcn.c