From a7bf199e10bfe7a3ce99d86421632711de48bcc3 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Wed, 18 Jun 2008 21:07:51 +0200 Subject: c-opts.c (c_common_post_options): PCH is not compatible with no-unit-at-a-time. * c-opts.c (c_common_post_options): PCH is not compatible with no-unit-at-a-time. * opts.c (handle_options): Enable unit-at-a-time at O0 along with -fno-toplevel-reorder by default now. * gcc.dg/weak/weak-2.c: We no longer complain about incompatibilty. * gcc.dg/weak/weak-3.c: We no longer complain about incompatibilty. * gcc.dg/weak/weak-4.c: We no longer complain about incompatibilty. * gcc.dg/weak/weak-5.c: We no longer complain about incompatibilty. * gcc.dg/weak/weak-6.c: Fix thinko in previous change. * gcc.dg/weak/weak-7.c: Likewise. From-SVN: r136903 --- gcc/opts.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'gcc/opts.c') diff --git a/gcc/opts.c b/gcc/opts.c index 4a6d440..6d6d380 100644 --- a/gcc/opts.c +++ b/gcc/opts.c @@ -822,6 +822,13 @@ decode_options (unsigned int argc, const char **argv) flag_merge_constants = 0; } + if (!no_unit_at_a_time_default) + { + flag_unit_at_a_time = 1; + if (!optimize) + flag_toplevel_reorder = 0; + } + if (optimize >= 1) { flag_defer_pop = 1; @@ -848,8 +855,6 @@ decode_options (unsigned int argc, const char **argv) flag_tree_fre = 1; flag_tree_copy_prop = 1; flag_tree_sink = 1; - if (!no_unit_at_a_time_default) - flag_unit_at_a_time = 1; if (!optimize_size) { -- cgit v1.1