summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorPascal Stumpf <pascal@cvs.openbsd.org>2014-07-24 09:15:15 +0000
committerPascal Stumpf <pascal@cvs.openbsd.org>2014-07-24 09:15:15 +0000
commit59f8d59ed44b31b9b38457ce3d597c4da2d88acd (patch)
treef34894c5e4e93a751068d83df22152425584905c /gnu
parent98296a2fee9bc38bd06ba8755ad6054927ac80ec (diff)
Revert ssp-strong on arm. This has been exposing one or more bugs in GCC that
kill large portions of the ports tree. Most notably, it broke devel/gperf at runtime. ok martynas@, "make a decision" deraadt@
Diffstat (limited to 'gnu')
-rw-r--r--gnu/gcc/gcc/toplev.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gnu/gcc/gcc/toplev.c b/gnu/gcc/gcc/toplev.c
index ae2185c0b18..bab1524150b 100644
--- a/gnu/gcc/gcc/toplev.c
+++ b/gnu/gcc/gcc/toplev.c
@@ -1834,7 +1834,11 @@ 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)
+#ifdef __arm__
+ flag_stack_protect = FRAME_GROWS_DOWNWARD ? 1 : 0;
+#else
flag_stack_protect = FRAME_GROWS_DOWNWARD ? 3 : 0;
+#endif
if (!FRAME_GROWS_DOWNWARD && flag_stack_protect)
{
warning (0, "-fstack-protector not supported for this target");