varasm.c (STRIP_NAME_ENCODING): Remove default definition.
authorJeffrey A Law <law@cygnus.com>
Thu, 27 May 1999 02:01:30 +0000 (02:01 +0000)
committerJeff Law <law@gcc.gnu.org>
Thu, 27 May 1999 02:01:30 +0000 (20:01 -0600)
        * varasm.c (STRIP_NAME_ENCODING): Remove default definition.
        * output.h (STRIP_NAME_ENCODING): Strip '*' like the old varasm
        version did.

From-SVN: r27196

gcc/ChangeLog
gcc/output.h
gcc/varasm.c

index f6c768a..4f6f109 100644 (file)
@@ -4,6 +4,10 @@ Thu May 27 02:40:48 1999  J"orn Rennecke <amylaar@cygnus.co.uk>
 
 Thu May 27 02:09:27 1999  Jeffrey A Law  (law@cygnus.com)
 
+       * varasm.c (STRIP_NAME_ENCODING): Remove default definition.
+       * output.h (STRIP_NAME_ENCODING): Strip '*' like the old varasm
+       version did.
+
        * reload.c (push_reload): Do not call remove_address_replacements
        when presented with identical optional reloads.
 
index 9456ed8..8531085 100644 (file)
@@ -506,8 +506,10 @@ extern FILE *rtl_dump_file;
 /* User label prefix in effect for this compilation.  */
 extern const char *user_label_prefix;
 
-/* Define a default version of STRIP_NAME_ENCODING so that we can use
-   it without a mess of #ifdefs.  */
+/* This macro gets just the user-specified name
+   out of the string in a SYMBOL_REF.  On most machines,
+   we discard the * if any and that's all.  */
 #ifndef STRIP_NAME_ENCODING
-#define STRIP_NAME_ENCODING(TARGET,SOURCE)  (TARGET = SOURCE)
+#define STRIP_NAME_ENCODING(VAR,SYMBOL_NAME) \
+  (VAR) = ((SYMBOL_NAME) + ((SYMBOL_NAME)[0] == '*'))
 #endif
index 4f92290..c6f15b8 100644 (file)
@@ -72,14 +72,6 @@ Boston, MA 02111-1307, USA.  */
 #endif
 #define CHKR_PREFIX_SIZE (sizeof (CHKR_PREFIX) - 1)
 
-/* This macro gets just the user-specified name
-   out of the string in a SYMBOL_REF.  On most machines,
-   we discard the * if any and that's all.  */
-#ifndef STRIP_NAME_ENCODING
-#define STRIP_NAME_ENCODING(VAR,SYMBOL_NAME) \
-  (VAR) = ((SYMBOL_NAME) + ((SYMBOL_NAME)[0] == '*'))
-#endif
-
 /* File in which assembler code is being written.  */
 
 extern FILE *asm_out_file;