diff --git a/gcc/gcc.c b/gcc/gcc.c index 0871edb53d2..00ab5ac4a13 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -2432,14 +2432,14 @@ process_command (argc, argv) add_prefix (&include_prefix, concat (value, "include", ""), 1, 0, 0); - /* As a kludge, if the arg is "[blah/]stageN/", just add + /* As a kludge, if the arg is "[foo/]stageN/", just add "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] == '/') + 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); } }