aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDoug Evans <dje@gnu.org>1994-05-10 21:49:41 +0000
committerDoug Evans <dje@gnu.org>1994-05-10 21:49:41 +0000
commitd7715b7064a42c4e850c5324d85a59b13a2d96bf (patch)
tree34483356b5186ebe4554d1beef139c17663aac27 /gcc
parentb3f741ed3a701cde07fd83f9830e63e782119887 (diff)
downloadgcc-d7715b7064a42c4e850c5324d85a59b13a2d96bf.zip
gcc-d7715b7064a42c4e850c5324d85a59b13a2d96bf.tar.gz
gcc-d7715b7064a42c4e850c5324d85a59b13a2d96bf.tar.bz2
(process_command): Kludge in stageN/../include instead of include.
From-SVN: r7270
Diffstat (limited to 'gcc')
-rw-r--r--gcc/gcc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 1cec450..0a54200 100644
--- 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;