From: miod Date: Wed, 6 Aug 2008 18:04:26 +0000 (+0000) Subject: Unconditionnaly disable -fcse-skip-blocks at -O2 on m68k, for it causes NULL X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=6ec12aebbcdff03922dd24e274ba44de9c9e2823;p=openbsd 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@ --- 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.