From 969089ff80620690645aa2f23dea32212ca038bf Mon Sep 17 00:00:00 2001 From: Kwok Cheung Yeung Date: Fri, 15 Nov 2019 16:49:08 +0000 Subject: [PATCH] [amdgcn] Unfix registers for frame pointer Allow the registers used for the frame pointer to be used for other purposes if the frame pointer is not being used. 2019-11-15 Kwok Cheung Yeung gcc/ * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer. (CALL_USED_REGISTERS): Make frame pointer callee-saved. From-SVN: r278306 --- gcc/ChangeLog | 5 +++++ gcc/config/gcn/gcn.h | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8c06b824d62..fcc4f7bd285 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-11-15 Kwok Cheung Yeung + + * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer. + (CALL_USED_REGISTERS): Make frame pointer callee-saved. + 2019-11-15 Kwok Cheung Yeung * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New. diff --git a/gcc/config/gcn/gcn.h b/gcc/config/gcn/gcn.h index dd3789b9f7d..e60b43122d5 100644 --- a/gcc/config/gcn/gcn.h +++ b/gcc/config/gcn/gcn.h @@ -162,7 +162,7 @@ /* Scalars. */ \ 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, \ /* fp sp lr. */ \ - 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, \ + 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, \ /* exec_save, cc_save */ \ 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, \ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \ @@ -203,7 +203,7 @@ #define CALL_USED_REGISTERS { \ /* Scalars. */ \ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, \ - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, \ + 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, \ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, \ 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, \ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \ -- 2.30.2