(process_command): Add "include" prefix for [blah/]stageN.
From-SVN: r6968
This commit is contained in:
parent
5625b0521d
commit
ea694f2d44
12
gcc/gcc.c
12
gcc/gcc.c
@ -2432,13 +2432,17 @@ process_command (argc, argv)
|
||||
add_prefix (&include_prefix, concat (value, "include", ""),
|
||||
1, 0, 0);
|
||||
|
||||
/* As a kludge, if the arg is "stageN/", just add
|
||||
/* As a kludge, if the arg is "[blah/]stageN/", just add
|
||||
"include" to the include prefix. */
|
||||
if (strlen (value) == 7 && value[6] == '/'
|
||||
&& strncmp (value, "stage", 5) == 0
|
||||
&& isdigit (value[5]))
|
||||
{
|
||||
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);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case 'v': /* Print our subcommands and print versions. */
|
||||
|
Loading…
Reference in New Issue
Block a user