+2011-01-26 Jakub Jelinek <jakub@redhat.com>
+
+ PR pch/47430
+ * c-opts.c (c_common_post_options): Call c_common_no_more_pch
+ after init_c_lex if pch_file is set.
+
2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
PR c++/43601
/* C/ObjC/C++ command line option handling.
- Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
+ Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
Free Software Foundation, Inc.
Contributed by Neil Booth.
{
init_c_lex ();
+ /* When writing a PCH file, avoid reading some other PCH file,
+ because the default address space slot then can't be used
+ for the output PCH file. */
+ if (pch_file)
+ c_common_no_more_pch ();
+
/* Yuk. WTF is this? I do know ObjC relies on it somewhere. */
input_location = UNKNOWN_LOCATION;
}