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/c-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/c-opts.c')
-rw-r--r-- | gcc/c-opts.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/c-opts.c b/gcc/c-opts.c index 2eef789..33d0e6b 100644 --- a/gcc/c-opts.c +++ b/gcc/c-opts.c @@ -1038,6 +1038,9 @@ c_common_post_options (const char **pfilename) if (num_in_fnames > 1) flag_unit_at_a_time = 1; + if (pch_file && !flag_unit_at_a_time) + sorry ("Precompiled headers require -funit-at-a-time"); + /* Default to ObjC sjlj exception handling if NeXT runtime. */ if (flag_objc_sjlj_exceptions < 0) flag_objc_sjlj_exceptions = flag_next_runtime; |