(process_command): Kludge in stageN/../include instead of include.
authorDoug Evans <dje@gnu.org>
Tue, 10 May 1994 21:49:41 +0000 (21:49 +0000)
committerDoug Evans <dje@gnu.org>
Tue, 10 May 1994 21:49:41 +0000 (21:49 +0000)
From-SVN: r7270

gcc/gcc.c

index 1cec450138e9e5d8e9d111544baa1cdbb1f45d0b..0a54200593d77b0f70648fad5bca2c19626b08d6 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -2450,14 +2450,15 @@ process_command (argc, argv)
                            1, 0, 0);
 
                /* As a kludge, if the arg is "[foo/]stageN/", just add
-                  "include" to the include prefix.  */
+                  "[foo/]stageN/../include" to the include prefix.  */
                {
                  int len = strlen (value);
                  if ((len == 7 || (len > 7 && value[len - 8] == '/'))
                      && strncmp (value + len - 7, "stage", 5) == 0
                      && isdigit (value[len - 2])
                      && value[len - 1] == '/')
-                   add_prefix (&include_prefix, "include", 1, 0, 0);
+                   add_prefix (&include_prefix,
+                               concat (value, "../include", ""), 1, 0, 0);
                }
              }
              break;