cygwin32.h (STRIP_NAME_ENCODING): Define for Win32 to strip off the trailing @[NUM] added by ENCODE_SECTION_INFO.
* i386/cygwin32.h (STRIP_NAME_ENCODING): Define for Win32 to strip off the trailing @[NUM] added by ENCODE_SECTION_INFO. Also update copyright forgotten in last change. From-SVN: r17340
This commit is contained in:
parent
e4c4f8df43
commit
93006f8c2d
@ -1,3 +1,8 @@
|
||||
Tue Jan 13 21:59:39 1998 Mumit Khan <khan@xraylith.wisc.edu>
|
||||
|
||||
* i386/cygwin32.h (STRIP_NAME_ENCODING): Define for Win32 to strip
|
||||
off the trailing @[NUM] added by ENCODE_SECTION_INFO.
|
||||
|
||||
Tue Jan 13 21:55:06 1998 Jeffrey A Law (law@cygnus.com)
|
||||
|
||||
* arm/netbsd.h (DWARF2_UNWIND_INFO): Define as zero for now.
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* NetBSD/arm (RiscBSD) version.
|
||||
Copyright (C) 1993, 1994, 1997 Free Software Foundation, Inc.
|
||||
Copyright (C) 1993, 1994, 1997, 1998 Free Software Foundation, Inc.
|
||||
Contributed by Mark Brinicombe (amb@physig.ph.kcl.ac.uk)
|
||||
|
||||
This file is part of GNU CC.
|
||||
|
@ -2,7 +2,7 @@
|
||||
hosting on Windows NT 3.x, using a Unix style C library and tools,
|
||||
as distinct from winnt.h, which is used to build GCC for use with a
|
||||
windows style library and tool set and uses the Microsoft tools.
|
||||
Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
|
||||
Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU CC.
|
||||
|
||||
@ -150,6 +150,29 @@ do \
|
||||
while (0)
|
||||
#endif
|
||||
|
||||
/* This macro gets just the user-specified name
|
||||
out of the string in a SYMBOL_REF. Discard
|
||||
trailing @[NUM] encoded by ENCODE_SECTION_INFO.
|
||||
Do we need the stripping of leading '*'? */
|
||||
#undef STRIP_NAME_ENCODING
|
||||
#define STRIP_NAME_ENCODING(VAR,SYMBOL_NAME) \
|
||||
do { \
|
||||
char *_p; \
|
||||
char *_name = ((SYMBOL_NAME) + ((SYMBOL_NAME)[0] == '*')); \
|
||||
for (_p = _name; *_p && *_p != '@'; ++_p) \
|
||||
; \
|
||||
if (*_p == '@') \
|
||||
{ \
|
||||
int _len = _p - _name; \
|
||||
(VAR) = (char *) alloca (_len + 1); \
|
||||
strncpy ((VAR), _name, _len); \
|
||||
(VAR)[_len] = '\0'; \
|
||||
} \
|
||||
else \
|
||||
(VAR) = _name; \
|
||||
} while (0)
|
||||
|
||||
|
||||
/* Emit code to check the stack when allocating more that 4000
|
||||
bytes in one go. */
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Configuration for a ns32532 running NetBSD as the target machine.
|
||||
Copyright (C) 1988, 1994, 1995, 1996 Free Software Foundation, Inc.
|
||||
Copyright (C) 1988, 1994, 1995, 1996, 1998 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU CC.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user