summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoretoh <etoh@openbsd.org>2003-02-03 09:20:03 +0000
committeretoh <etoh@openbsd.org>2003-02-03 09:20:03 +0000
commita5d686be31067888430406c7c39c0c718b71511b (patch)
tree493900902ce2e205ea200190ad556ab5544461ec
parentadd contains_fp declaration to examine whether the input contains frame pointer addressing. (diff)
downloadwireguard-openbsd-a5d686be31067888430406c7c39c0c718b71511b.tar.xz
wireguard-openbsd-a5d686be31067888430406c7c39c0c718b71511b.zip
disable a stack protection when the arch doesn't have stack_grows_downward.
-rw-r--r--gnu/egcs/gcc/toplev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/egcs/gcc/toplev.c b/gnu/egcs/gcc/toplev.c
index d26fe66e232..1efe67d689b 100644
--- a/gnu/egcs/gcc/toplev.c
+++ b/gnu/egcs/gcc/toplev.c
@@ -772,7 +772,7 @@ int flag_instrument_function_entry_exit = 0;
int flag_no_ident = 0;
-#ifdef STACK_PROTECTOR
+#if defined(STACK_PROTECTOR) && defined(STACK_GROWS_DOWNWARD)
/* Nonzero means use propolice as a stack protection method */
int flag_propolice_protection = 1;
#else