diff options
Diffstat (limited to 'gcc/cfgexpand.c')
-rw-r--r-- | gcc/cfgexpand.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c index c7a2faa..c62e920 100644 --- a/gcc/cfgexpand.c +++ b/gcc/cfgexpand.c @@ -6100,7 +6100,10 @@ stack_protect_prologue (void) rtx x, y; x = expand_normal (crtl->stack_protect_guard); - y = expand_normal (guard_decl); + if (guard_decl) + y = expand_normal (guard_decl); + else + y = const0_rtx; /* Allow the target to copy from Y to X without leaking Y into a register. */ |