Commit ef9af077 by Ben Elliston Committed by Ben Elliston

re PR other/17900 (GCC's source path in ICE is wrong)

	PR other/17900
	* diagnostic.c (trim_filename): Fix logic bug in walking backwards
	up the filename looking for a previous directory separator.

From-SVN: r89029
parent ac24fc25
2004-10-14 Ben Elliston <bje@au.ibm.com>
PR other/17900
* diagnostic.c (trim_filename): Fix logic bug in walking backwards
up the filename looking for a previous directory separator.
2004-10-14 Joseph S. Myers <jsm@polyomino.org.uk>
* c-tree.h (enum c_typespec_kind, struct c_typespec,
......
......@@ -366,7 +366,7 @@ trim_filename (const char *name)
p++, q++;
/* Now go backwards until the previous directory separator. */
while (p > name && IS_DIR_SEPARATOR (p[-1]))
while (p > name && !IS_DIR_SEPARATOR (p[-1]))
p--;
return p;
......
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