summaryrefslogtreecommitdiff
path: root/lang/egcs/files/patch-cccp.c
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2000-12-04 22:07:01 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2000-12-04 22:07:01 +0000
commit9edbb8400e4feef83a779c4715c19e11e1ab2347 (patch)
treef3f6e61b2f6cbbe4b95531b0d0eb9cc777931c48 /lang/egcs/files/patch-cccp.c
parentAdd reportmagic 2.03, a wrapper for analog that produces more professional (diff)
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.
Notes
Notes: svn path=/head/; revision=35660
Diffstat (limited to 'lang/egcs/files/patch-cccp.c')
-rw-r--r--lang/egcs/files/patch-cccp.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/lang/egcs/files/patch-cccp.c b/lang/egcs/files/patch-cccp.c
new file mode 100644
index 000000000000..b524049ce1d7
--- /dev/null
+++ b/lang/egcs/files/patch-cccp.c
@@ -0,0 +1,30 @@
+--- 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;