Don't activate -funit-at-a-time with -O2 and higher by default, when
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Fri, 13 May 2005 17:40:44 +0000 (17:40 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Fri, 13 May 2005 17:40:44 +0000 (17:40 +0000)
propolice is active. There are some bad interactions which can lead
to false negatives under rare circumstances.

gnu/usr.bin/cc34/cc_prep/patches/opts.c.patch

index 0ec1728..5c12477 100644 (file)
@@ -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;