]> gcc.gnu.org Git - gcc.git/commitdiff
cygwin32.h (STRIP_NAME_ENCODING): Define for Win32 to strip off the trailing @[NUM...
authorMumit Khan <khan@xraylith.wisc.edu>
Tue, 13 Jan 1998 20:58:47 +0000 (20:58 +0000)
committerJeff Law <law@gcc.gnu.org>
Tue, 13 Jan 1998 20:58:47 +0000 (13:58 -0700)
        * 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

gcc/ChangeLog
gcc/config/arm/netbsd.h
gcc/config/i386/cygwin32.h
gcc/config/ns32k/netbsd.h

index bc8afae96a8c5558f1c32ee3598c396c9e749ec5..3ebb18de8c785de0eb9bfda877a8771f6f7626a5 100644 (file)
@@ -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.
index 01811101b198c1e3deb6f906ede2c0250cf6fabd..596da18452b79f5a865f0aebcf109f5d0e707c04 100644 (file)
@@ -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.
index 03e6dd9f193254f320269f151460b5c3be64990f..536b91c6ca01c0f25f8bed558fae310d22627f5e 100644 (file)
@@ -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. */
 
index f2f4895b23a8a524ed7e543767d0f3ade0636a95..cef68d82c2e29d076eecb024f16c6180a2a3ec21 100644 (file)
@@ -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.
 
This page took 0.078973 seconds and 5 git commands to generate.