aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorKwok Cheung Yeung <kcy@codesourcery.com>2019-11-15 16:49:08 +0000
committerKwok Cheung Yeung <kcy@gcc.gnu.org>2019-11-15 16:49:08 +0000
commit969089ff80620690645aa2f23dea32212ca038bf (patch)
tree79e910bb4edc2a6fae00f69fe0859cd74b243ff3 /gcc/config
parent87fdbe697bb02faf054a21c5a593e51d538fe1a7 (diff)
downloadgcc-969089ff80620690645aa2f23dea32212ca038bf.zip
gcc-969089ff80620690645aa2f23dea32212ca038bf.tar.gz
gcc-969089ff80620690645aa2f23dea32212ca038bf.tar.bz2
[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 <kcy@codesourcery.com> gcc/ * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer. (CALL_USED_REGISTERS): Make frame pointer callee-saved. From-SVN: r278306
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/gcn/gcn.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/gcn/gcn.h b/gcc/config/gcn/gcn.h
index dd3789b..e60b431 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, \