summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2008-08-06 18:04:27 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2008-08-06 18:04:27 +0000
commitf3826d33c3a484f16ad245001e73c5a6ac39cf51 (patch)
treed388dc32a86e57e9d10d70c31d3a9839058b5123
parent35d015ad297139dd26e383122fea16bcf7ac4ef3 (diff)
Unconditionnaly disable -fcse-skip-blocks at -O2 on m68k, for it causes NULL
derefs in at least one case and I do not have time to debug this before the release. ok deraadt@
-rw-r--r--gnu/egcs/gcc/config/m68k/m68k.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gnu/egcs/gcc/config/m68k/m68k.c b/gnu/egcs/gcc/config/m68k/m68k.c
index 72d305c073a..48aabd197cb 100644
--- a/gnu/egcs/gcc/config/m68k/m68k.c
+++ b/gnu/egcs/gcc/config/m68k/m68k.c
@@ -124,6 +124,13 @@ override_options ()
}
else
m68k_align_funcs = def_align;
+
+#if defined(OPENBSD_NATIVE) || defined(OPENBSD_CROSS)
+ /* -fcse-skip-blocks causes NULL pointer dereferences in merge_blocks()
+ when invoked from delete_unreachable_blocks(). Disable it until the
+ real cause is found. */
+ flag_cse_skip_blocks = 0;
+#endif
}
/* This function generates the assembly code for function entry.