Commit 4ebe197a by Mark Elbrecht Committed by Jeff Law

* gcc.c (set_input) [HAVE_DOS_STYLE_FILE_SYSTEM]: Skip drive name.

From-SVN: r33717
parent d20a70b4
......@@ -12,6 +12,8 @@
2000-05-05 Mark Elbrecht <snowball3@bigfoot.com>
* gcc.c (set_input) [HAVE_DOS_STYLE_FILE_SYSTEM]: Skip drive name.
* toplev.c (output_file_directive): Use IS_DIR_SEPARATOR.
(main): Likewise.
......
......@@ -5087,7 +5087,12 @@ set_input (filename)
input_filename_length = strlen (input_filename);
input_basename = input_filename;
for (p = input_filename; *p; p++)
#ifdef HAVE_DOS_BASED_FILE_SYSTEM
/* Skip drive name so 'x:foo' is handled properly. */
if (input_basename[1] == ':')
input_basename += 2;
#endif
for (p = input_basename; *p; p++)
if (IS_DIR_SEPARATOR (*p))
input_basename = p + 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment