diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2004-11-02 21:04:51 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2004-11-02 21:04:51 +0000 |
commit | dcc492df3588c335221eb67f6e3bd46046d6d214 (patch) | |
tree | 64be05183efcd876edd91a1d1288daccae8f4864 | |
parent | ab6bdfad700aa594b487bf61a4da21e8ca41eebf (diff) |
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@
-rw-r--r-- | gnu/usr.bin/gcc/gcc/toplev.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |