This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] mcore: Remove ASM_OUTPUT_EXTERNAL.
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Cc: nickc at redhat dot com
- Date: Wed, 14 Jan 2004 15:14:23 -0500 (EST)
- Subject: [patch] mcore: Remove ASM_OUTPUT_EXTERNAL.
Hi,
Attached is a patch to remove ASM_OUTPUT_EXTERNAL.
It is strange that #undef immediately follows #define. Ever since
mcore port was put into CVS, it's been like this. I am wondering what
the author really meant. Maybe #undef right before #define? But
then, the #undef wouldn't be necessary.
OK to apply? Or should I test the port with #undef removed?
Kazu Hirata
2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
* config/mcore/mcore.h (ASM_OUTPUT_EXTERNAL): Remove.
Index: mcore.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/mcore/mcore.h,v
retrieving revision 1.57
diff -u -r1.57 mcore.h
--- mcore.h 11 Jan 2004 08:15:33 -0000 1.57
+++ mcore.h 14 Jan 2004 20:04:34 -0000
@@ -1145,18 +1145,6 @@
} \
while (0)
-/* This says how to output an assembler line
- to define an external symbol. */
-#define ASM_OUTPUT_EXTERNAL(FILE, DECL, NAME) \
- do \
- { \
- fputs ("\t.import\t", (FILE)); \
- assemble_name ((FILE), (NAME)); \
- fputs ("\n", (FILE)); \
- } \
- while (0)
-
-#undef ASM_OUTPUT_EXTERNAL
/* RBE: we undefined this and let gas do it's "undefined is imported"
games. This is because when we use this, we get a marked
reference through the call to assemble_name and this forces C++