From b8807f054bddc0e4014e5879f0fac331cc1a7768 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Fri, 24 Jun 2005 05:09:54 +0200 Subject: [PATCH] * opts.c (decode_options): Enable unit-at-a-time by default at -O1. From-SVN: r101287 --- gcc/ChangeLog | 4 ++++ gcc/opts.c | 2 +- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.dg/tree-ssa/20040210-1.c | 2 +- 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c34a161f49b..f178518aa81 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2005-06-24 Jan Hubicka + + * opts.c (decode_options): Enable unit-at-a-time by default at -O1. + 2005-06-23 Jeff Law * tree-optimize.c (init_tree_optimization_passes): Move diff --git a/gcc/opts.c b/gcc/opts.c index 039e0f1208d..b6f98e0b0bc 100644 --- a/gcc/opts.c +++ b/gcc/opts.c @@ -534,6 +534,7 @@ decode_options (unsigned int argc, const char **argv) flag_tree_copy_prop = 1; flag_tree_sink = 1; flag_tree_salias = 1; + flag_unit_at_a_time = 1; if (!optimize_size) { @@ -569,7 +570,6 @@ decode_options (unsigned int argc, const char **argv) flag_delete_null_pointer_checks = 1; flag_reorder_blocks = 1; flag_reorder_functions = 1; - flag_unit_at_a_time = 1; flag_tree_store_ccp = 1; flag_tree_store_copy_prop = 1; flag_tree_vrp = 1; diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3a096e7a5bd..b96fc111e1b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2005-06-24 Jan Hubicka + + * gcc.dg/tree-ssa/20040210-1.c: Fix for unit-at-a-time + 2005-06-23 Ziemowit Laski * obj-c++.dg/proto-lossage-[1-4].mm: New. diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20040210-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20040210-1.c index 5ba4d845694..990cb80756f 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20040210-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20040210-1.c @@ -7,7 +7,7 @@ void exit(int); int x, y; -static void +static void __attribute__ ((noinline)) init_xy(void) { x = 3; -- 2.30.2