1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/lang/egcs/files/patch-cccp.c
David E. O'Brien 9edbb8400e Add all of the FreeBSD hacks I had in the base EGCS-1.1.2 compiler way
back when... that is all but a.out support.
2000-12-04 22:07:01 +00:00

31 lines
692 B
C

--- gcc/cccp.c.orig 1999/08/26 09:26:39 1.1.1.2
+++ gcc/cccp.c 1999/08/27 11:02:42 1.3
@@ -5096,6 +5096,7 @@
register struct file_name_map *map;
register char *from;
+#ifndef FREEBSD_NATIVE
if (searchptr)
{
if (! searchptr->got_name_map)
@@ -5110,6 +5111,7 @@
if (! strcmp (map->map_from, from))
return map->map_to;
}
+#endif
from = base_name (filename);
@@ -5124,9 +5126,11 @@
bcopy (filename, dir, from - filename);
dir[from - filename] = '\0';
+#ifndef FREEBSD_NATIVE
for (map = read_name_map (dir); map; map = map->map_next)
if (! strcmp (map->map_from, from))
return map->map_to;
+#endif
}
return filename;