diff options
author | Jan Hubicka <jh@suse.cz> | 2008-06-18 21:07:51 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2008-06-18 19:07:51 +0000 |
commit | a7bf199e10bfe7a3ce99d86421632711de48bcc3 (patch) | |
tree | 3173e61d1d42583002338162fcf951ee703f626f /gcc/opts.c | |
parent | 3f737aa91438a3586bca1452f1a5ee8de514a906 (diff) | |
download | gcc-a7bf199e10bfe7a3ce99d86421632711de48bcc3.zip gcc-a7bf199e10bfe7a3ce99d86421632711de48bcc3.tar.gz gcc-a7bf199e10bfe7a3ce99d86421632711de48bcc3.tar.bz2 |
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
Diffstat (limited to 'gcc/opts.c')
-rw-r--r-- | gcc/opts.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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) { |