diff options
author | Takayuki 'January June' Suwa <jjsuwa_sys3175@yahoo.co.jp> | 2022-12-29 21:14:33 +0900 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2022-12-29 07:04:25 -0800 |
commit | 65fed695f7b2eb99dfd679fbdfcf510104de2fb8 (patch) | |
tree | 7e0d5061b96ced60cf64f5716e562f7f17daf0dd /gcc/config | |
parent | 9b111debbfb79a0aa01091c8b1936b05a11ffcf9 (diff) | |
download | gcc-65fed695f7b2eb99dfd679fbdfcf510104de2fb8.zip gcc-65fed695f7b2eb99dfd679fbdfcf510104de2fb8.tar.gz gcc-65fed695f7b2eb99dfd679fbdfcf510104de2fb8.tar.bz2 |
xtensa: Check DF availability before use
Perhaps no problem, but for safety.
gcc/ChangeLog:
* config/xtensa/xtensa.cc (xtensa_expand_prologue): Fix to check
DF availability before use of DF_* macros.
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/xtensa/xtensa.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/xtensa/xtensa.cc b/gcc/config/xtensa/xtensa.cc index 66e2534..e726a11 100644 --- a/gcc/config/xtensa/xtensa.cc +++ b/gcc/config/xtensa/xtensa.cc @@ -3322,7 +3322,7 @@ xtensa_expand_prologue (void) || crtl->calls_eh_return; /* Check if the function body really needs the stack pointer. */ - if (!stack_pointer_needed) + if (!stack_pointer_needed && df) for (ref = DF_REG_USE_CHAIN (A1_REG); ref; ref = DF_REF_NEXT_REG (ref)) if (DF_REF_CLASS (ref) == DF_REF_REGULAR |