From: Richard Kenner Date: Wed, 30 Mar 1994 22:21:05 +0000 (-0500) Subject: (process_command, case 'B'): If name is "stageN/", add "include" to X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6b0639bc6c077b981c0f6106f3e35b53560af29a;p=gcc.git (process_command, case 'B'): If name is "stageN/", add "include" to system include prefix. From-SVN: r6924 --- diff --git a/gcc/gcc.c b/gcc/gcc.c index 74e00146012..4aa6de47c42 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;