From 6ec12aebbcdff03922dd24e274ba44de9c9e2823 Mon Sep 17 00:00:00 2001 From: miod Date: Wed, 6 Aug 2008 18:04:26 +0000 Subject: [PATCH] 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@ --- gnu/egcs/gcc/config/m68k/m68k.c | 7 +++++++ 1 file changed, 7 insertions(+) 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. -- 2.20.1