From: Joerg Sonnenberger Date: Fri, 13 May 2005 17:40:44 +0000 (+0000) Subject: Don't activate -funit-at-a-time with -O2 and higher by default, when X-Git-Tag: v2.0.1~7399 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/992f6b0eb6cf7bd9f26c45d7c73522c1bcab80ef Don't activate -funit-at-a-time with -O2 and higher by default, when propolice is active. There are some bad interactions which can lead to false negatives under rare circumstances. --- diff --git a/gnu/usr.bin/cc34/cc_prep/patches/opts.c.patch b/gnu/usr.bin/cc34/cc_prep/patches/opts.c.patch index 0ec17281ad..5c12477e48 100644 --- a/gnu/usr.bin/cc34/cc_prep/patches/opts.c.patch +++ b/gnu/usr.bin/cc34/cc_prep/patches/opts.c.patch @@ -1,4 +1,4 @@ -$DragonFly: src/gnu/usr.bin/cc34/cc_prep/patches/opts.c.patch,v 1.4 2005/03/22 23:58:32 joerg Exp $ +$DragonFly: src/gnu/usr.bin/cc34/cc_prep/patches/opts.c.patch,v 1.5 2005/05/13 17:40:44 joerg Exp $ =================================================================== RCS file: /home/joerg/wd/repository/dragonflybsd/src/contrib/gcc-3.4/gcc/opts.c,v @@ -29,7 +29,7 @@ diff -u -r1.1 opts.c /* Columns of --help display. */ static unsigned int columns = 80; -@@ -560,7 +569,6 @@ +@@ -560,11 +560,11 @@ flag_schedule_insns_after_reload = 1; #endif flag_regmove = 1; @@ -37,6 +37,12 @@ diff -u -r1.1 opts.c flag_delete_null_pointer_checks = 1; flag_reorder_blocks = 1; flag_reorder_functions = 1; +- flag_unit_at_a_time = 1; ++ if (!flag_propolice_protection) ++ flag_unit_at_a_time = 1; + } + + if (optimize >= 3) @@ -798,6 +806,10 @@ warn_unused_variable = value; break;