13 lines
578 B
Plaintext
13 lines
578 B
Plaintext
$OpenBSD: patch-gcc_toplev_c,v 1.2 2013/06/07 07:54:24 pascal Exp $
|
|
--- gcc/toplev.c.orig Thu Mar 29 04:15:29 2012
|
|
+++ gcc/toplev.c Sat Apr 13 16:20:32 2013
|
|
@@ -1587,6 +1587,8 @@ process_options (void)
|
|
|
|
/* Targets must be able to place spill slots at lower addresses. If the
|
|
target already uses a soft frame pointer, the transition is trivial. */
|
|
+ if (flag_stack_protect == -1)
|
|
+ flag_stack_protect = FRAME_GROWS_DOWNWARD ? 1 : 0;
|
|
if (!FRAME_GROWS_DOWNWARD && flag_stack_protect)
|
|
{
|
|
warning (0, "-fstack-protector not supported for this target");
|