diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bc8afae96a8..3ebb18de8c7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Tue Jan 13 21:59:39 1998 Mumit Khan + + * 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 01811101b19..596da18452b 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 03e6dd9f193..536b91c6ca0 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 f2f4895b23a..cef68d82c2e 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.