summaryrefslogtreecommitdiff
path: root/gcc/c-opts.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2008-06-18 19:07:51 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2008-06-18 19:07:51 +0000
commit11d1b809a0bb05018a0ee84b15fef2d6c01d935c (patch)
tree3173e61d1d42583002338162fcf951ee703f626f /gcc/c-opts.c
parent2489ab9dcc113df8a8d9c3bee24b78b20d6943e5 (diff)
downloadgcc-11d1b809a0bb05018a0ee84b15fef2d6c01d935c.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@136903 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-opts.c')
-rw-r--r--gcc/c-opts.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/c-opts.c b/gcc/c-opts.c
index 2eef789978d..33d0e6bed26 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;