diff options
author | Mumit Khan <khan@xraylith.wisc.edu> | 1998-01-13 20:58:47 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1998-01-13 13:58:47 -0700 |
commit | 93006f8c2d58b62faa72a9ba4079dd58f0ea0c62 (patch) | |
tree | a7eb352202cce6358405754bed9742df70c24338 | |
parent | e4c4f8df439855c7f2571092cada7e8fd9e38c0f (diff) | |
download | gcc-93006f8c2d58b62faa72a9ba4079dd58f0ea0c62.zip gcc-93006f8c2d58b62faa72a9ba4079dd58f0ea0c62.tar.gz gcc-93006f8c2d58b62faa72a9ba4079dd58f0ea0c62.tar.bz2 |
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
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/arm/netbsd.h | 2 | ||||
-rw-r--r-- | gcc/config/i386/cygwin32.h | 25 | ||||
-rw-r--r-- | gcc/config/ns32k/netbsd.h | 2 |
4 files changed, 31 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bc8afae..3ebb18d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/config/arm/netbsd.h b/gcc/config/arm/netbsd.h index 0181110..596da18 100644 --- a/gcc/config/arm/netbsd.h +++ b/gcc/config/arm/netbsd.h @@ -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. diff --git a/gcc/config/i386/cygwin32.h b/gcc/config/i386/cygwin32.h index 03e6dd9..536b91c 100644 --- a/gcc/config/i386/cygwin32.h +++ b/gcc/config/i386/cygwin32.h @@ -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. */ diff --git a/gcc/config/ns32k/netbsd.h b/gcc/config/ns32k/netbsd.h index f2f4895..cef68d8 100644 --- a/gcc/config/ns32k/netbsd.h +++ b/gcc/config/ns32k/netbsd.h @@ -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. |