]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR pch/47430 (Random PCH related bootstrap failures on powerpc64-linux)
authorJakub Jelinek <jakub@redhat.com>
Wed, 26 Jan 2011 06:48:04 +0000 (07:48 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 26 Jan 2011 06:48:04 +0000 (07:48 +0100)
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.

From-SVN: r169276

gcc/c-family/ChangeLog
gcc/c-family/c-opts.c

index 30c1ea061227fdc8a3fb310ca86a2637d6c4c459..9f88e975429e165134e9f6b0e057846279269879 100644 (file)
@@ -1,3 +1,9 @@
+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
index befd64498a4bc87400a8d5e4d2001512f6ac2154..8d6e6e7e24355cc9f2d12b6a91d5f7381a294e30 100644 (file)
@@ -1,5 +1,5 @@
 /* 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.
 
@@ -995,6 +995,12 @@ c_common_post_options (const char **pfilename)
     {
       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;
     }