]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR c/30242 (internal error in gcc break compilation)
authorCarlos O'Donell <carlos@codesourcery.com>
Wed, 20 Dec 2006 22:34:14 +0000 (22:34 +0000)
committerCarlos O'Donell <carlos@gcc.gnu.org>
Wed, 20 Dec 2006 22:34:14 +0000 (22:34 +0000)
gcc/

2006-12-20  Carlos O'Donell  <carlos@codesourcery.com>

PR bootstrap/30242
* gcc/c-incpath.c (add_standard_paths): Only relocate paths that
begin with the configured prefix.

From-SVN: r120088

gcc/ChangeLog
gcc/c-incpath.c

index 797cecf7a7f359577683702ab4c08e1d5f546ebb..42e4aa5edae402b0fefb4cd0c07a6a5e802eb90e 100644 (file)
@@ -1,3 +1,9 @@
+2006-12-20  Carlos O'Donell  <carlos@codesourcery.com>
+
+       PR bootstrap/30242
+       * gcc/c-incpath.c (add_standard_paths): Only relocate paths that 
+       begin with the configured prefix. 
+
 2006-12-20  Jan Hubicka  <jh@suse.cz>
 
        PR target/30213
index 2c5ac6db89f464da4604fe630f5f2118a3a5a332..fe863d52b6e4979915bba443369033e4340dbfea 100644 (file)
@@ -164,13 +164,12 @@ add_standard_paths (const char *sysroot, const char *iprefix,
          /* Should this directory start with the sysroot?  */
          if (sysroot && p->add_sysroot)
            str = concat (sysroot, p->fname, NULL);
-         else if (!p->add_sysroot && relocated)
+         else if (!p->add_sysroot && relocated
+                  && strncmp (p->fname, cpp_PREFIX, cpp_PREFIX_len) == 0)
            {
              /* If the compiler is relocated, and this is a configured 
                 prefix relative path, then we use gcc_exec_prefix instead 
                 of the configured prefix.  */
-             gcc_assert (strncmp (p->fname, cpp_PREFIX,
-                                    cpp_PREFIX_len) == 0);
              str = concat (gcc_exec_prefix, p->fname
                              + cpp_PREFIX_len, NULL);
              str = update_path (str, p->component);