openbsd-ports/lang/gcc/4.7/patches/patch-gcc_toplev_c
pascal f2b393605c Import gcc 4.7.
ok espie@
2012-04-23 15:56:40 +00:00

13 lines
582 B
Plaintext

$OpenBSD: patch-gcc_toplev_c,v 1.1.1.1 2012/04/23 15:56:41 pascal Exp $
--- gcc/toplev.c.orig Thu Jan 5 16:08:42 2012
+++ gcc/toplev.c Mon Apr 2 16:38:17 2012
@@ -1594,6 +1594,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");