]> gcc.gnu.org Git - gcc.git/blobdiff - gcc/gcc.c
(process_command, case 'B'): If name is "stageN/", add "include" to
[gcc.git] / gcc / gcc.c
index 74e00146012fd832dc20861a8ab0a9bc70d21012..4aa6de47c429e4906c4b88dad3bc9cb5d07d3298 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -2431,6 +2431,13 @@ process_command (argc, argv)
                add_prefix (&startfile_prefix, value, 1, 0, temp);
                add_prefix (&include_prefix, concat (value, "include", ""),
                            1, 0, 0);
+
+               /* As a kludge, if the arg is "stageN/", just add
+                  "include" to the include prefix.  */
+               if (strlen (value) == 7 && value[6] == '/'
+                   && strncmp (value, "stage", 5) == 0
+                   && isdigit (value[5]))
+                 add_prefix (&include_prefix, "include", 1, 0, 0);
              }
              break;
 
This page took 0.805724 seconds and 5 git commands to generate.