summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroaki Etoh <etoh@cvs.openbsd.org>2003-02-03 09:20:04 +0000
committerHiroaki Etoh <etoh@cvs.openbsd.org>2003-02-03 09:20:04 +0000
commit23d1f3dc025598840a93d3ee9a72a366e8450ce8 (patch)
tree723106fa4f904500cdf3600e62827ded9a358eb1
parent8bd54d48c0a47c0cda58aa57ceb468155babb67a (diff)
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