aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1994-03-30 17:21:05 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1994-03-30 17:21:05 -0500
commit6b0639bc6c077b981c0f6106f3e35b53560af29a (patch)
tree50c58469bc18c3c1d131b53c6d710772b95b2cdb
parent2486d0db1dd854c86f8be64297b04afe969edd59 (diff)
downloadgcc-6b0639bc6c077b981c0f6106f3e35b53560af29a.zip
gcc-6b0639bc6c077b981c0f6106f3e35b53560af29a.tar.gz
gcc-6b0639bc6c077b981c0f6106f3e35b53560af29a.tar.bz2
(process_command, case 'B'): If name is "stageN/", add "include" to
system include prefix. From-SVN: r6924
-rw-r--r--gcc/gcc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 74e0014..4aa6de4 100644
--- 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;