aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/xtensa/xtensa.cc2
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