From dcc492df3588c335221eb67f6e3bd46046d6d214 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Tue, 2 Nov 2004 21:04:51 +0000 Subject: Do not enable -fdelete-null-pointer-checks at -O2 by default on OpenBSD. This optimizations is really cool, but it does not work for complex code; we had to disable it for Perl 5.8 to run correctly, now it turns out it broke Bind 9 on powerpc, so neuter it for good. ok deraadt@ henning@ millert@ others@ --- gnu/usr.bin/gcc/gcc/toplev.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gnu/usr.bin') diff --git a/gnu/usr.bin/gcc/gcc/toplev.c b/gnu/usr.bin/gcc/gcc/toplev.c index 49e52baf4b0..4bdcfa93abd 100644 --- a/gnu/usr.bin/gcc/gcc/toplev.c +++ b/gnu/usr.bin/gcc/gcc/toplev.c @@ -4922,7 +4922,9 @@ parse_options_and_default_flags (argc, argv) flag_schedule_insns_after_reload = 1; #endif flag_regmove = 1; +#ifndef OPENBSD_NATIVE flag_delete_null_pointer_checks = 1; +#endif flag_reorder_blocks = 1; flag_reorder_functions = 1; } -- cgit v1.2.3