This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RE: [PATCH] use IS_ABSOLUTE_PATH and friends
- From: Danny Smith <dannysmith at clear dot net dot nz>
- To: 'Nathan Froyd' <froydnj at codesourcery dot com>, gcc-patches at gcc dot gnu dot org
- Date: Mon, 30 Oct 2006 12:43:25 +1300
- Subject: RE: [PATCH] use IS_ABSOLUTE_PATH and friends
> (file_name_acquire): Use DIR_SEPARATOR and DIR_SEPARATOR_2.
>
Breaks mingw32 and cygwin builds. dwarf2out.c fails to compile.
This fixes. Bootstrapped and regtested on i686-pc-mingw32
2006-10-29 Danny Smith <dannysmith@users.sourceforge.net>
dwarf2out.c (file_name_acquire): Correct typo.
Index: dwarf2out.c
===================================================================
--- dwarf2out.c (revision 118159)
+++ dwarf2out.c (working copy)
@@ -7669,7 +7669,7 @@
f = strrchr (f, DIR_SEPARATOR);
#if defined (DIR_SEPARATOR_2)
{
- char *g = strrchr (files[i].path, DIR_SEPARATOR_2);
+ char *g = strrchr (fi->path, DIR_SEPARATOR_2);
if (g != NULL)
{