OSDN Git Service

* m68hc11.h, m68k.h, m88k.h (ASM_GLOBALIZE_LABEL): Delete.
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 31 Jul 2002 02:10:06 +0000 (02:10 +0000)
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 31 Jul 2002 02:10:06 +0000 (02:10 +0000)
* defaults.h (ASM_GLOBALIZE_LABEL): Provide a default.
* doc/tm.texi (ASM_GLOBALIZE_LABEL): Update docs.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55891 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/m68hc11/m68hc11.h
gcc/config/m68k/m68k.h
gcc/config/m88k/m88k.h
gcc/defaults.h
gcc/doc/tm.texi

index 311566b..4cf7766 100644 (file)
@@ -1,3 +1,10 @@
+2002-07-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * m68hc11.h, m68k.h, m88k.h (ASM_GLOBALIZE_LABEL): Delete.
+       
+       * defaults.h (ASM_GLOBALIZE_LABEL): Provide a default.
+       * doc/tm.texi (ASM_GLOBALIZE_LABEL): Update docs.
+
 2002-07-30  Geoffrey Keating  <geoffk@redhat.com>
 
        * doc/extend.texi (Hints implementation): Document that GCC
index ff8eb5a..aec92b7 100644 (file)
@@ -1555,14 +1555,6 @@ do {                                                                    \
 
 /* Output #ident as a .ident.  */
 
-/* This is how to output a command to make the user-level label named NAME
-   defined for reference from other files.  */
-
-#define ASM_GLOBALIZE_LABEL(FILE,NAME) \
-  do { fprintf (FILE, "%s", GLOBAL_ASM_OP);            \
-       assemble_name (FILE, NAME);                     \
-       fputs ("\n", FILE);} while (0)
-
 /* output external reference */
 #define ASM_OUTPUT_EXTERNAL(FILE,DECL,NAME) \
   {fputs ("\t; extern\t", FILE); \
index 4d4a061..feb27a2 100644 (file)
@@ -1735,14 +1735,7 @@ __transfer_from_trampoline ()                                    \
 /* Before the prologue, the top of the frame is at 4(%sp).  */
 #define INCOMING_FRAME_SP_OFFSET 4
 
-/* This is how to output a command to make the user-level label named NAME
-   defined for reference from other files.  */
-
 #define GLOBAL_ASM_OP "\t.globl\t"
-#define ASM_GLOBALIZE_LABEL(FILE,NAME) \
-  do { fprintf (FILE, "%s", GLOBAL_ASM_OP);            \
-       assemble_name (FILE, NAME);                     \
-       fputs ("\n", FILE);} while (0)
 
 /* This is how to output a reference to a user-level label named NAME.
    `assemble_name' uses this.  */
index 791840d..f8f487c 100644 (file)
@@ -1870,15 +1870,6 @@ do {                                                                      \
       ASM_OUTPUT_MEASURED_SIZE (FILE, FNAME);                          \
   } while (0)
 
-/* This is how to output a command to make the user-level label named NAME
-   defined for reference from other files.  */
-#define ASM_GLOBALIZE_LABEL(FILE,NAME)                 \
-  do {                                                 \
-    fprintf (FILE, "%s", GLOBAL_ASM_OP);               \
-    assemble_name (FILE, NAME);                                \
-    putc ('\n', FILE);                                 \
-  } while (0)
-
 /* The prefix to add to user-visible assembler symbols.
    Override svr[34].h.  */
 #undef USER_LABEL_PREFIX
index 3553490..115cc01 100644 (file)
@@ -154,6 +154,19 @@ do { fputs (integer_asm_op (POINTER_SIZE / UNITS_PER_WORD, TRUE), FILE); \
 #define ASM_OUTPUT_LABELREF(FILE,NAME)  asm_fprintf ((FILE), "%U%s", (NAME))
 #endif
 
+/* A C statement (sans semicolon) to output to the stdio stream FILE
+   some commands that will make the label NAME global; that is,
+   available for reference from other files.  */
+
+#if !defined(ASM_GLOBALIZE_LABEL) && defined(GLOBAL_ASM_OP)
+#define ASM_GLOBALIZE_LABEL(FILE,NAME)         \
+  do {                                         \
+      fputs (GLOBAL_ASM_OP, (FILE));           \
+      assemble_name ((FILE), (NAME));          \
+      fputc ('\n', (FILE));                    \
+  } while (0)
+#endif
+
 /* Allow target to print debug info labels specially.  This is useful for
    VLIW targets, since debug info labels should go into the middle of
    instruction bundles instead of breaking them.  */
index 4f98bf3..12f6ff7 100644 (file)
@@ -6551,6 +6551,9 @@ that is, available for reference from other files.  Use the expression
 itself; before and after that, output the additional assembler syntax
 for making that name global, and a newline.
 
+If you define @code{GLOBAL_ASM_OP}, a default definition is provided
+which is correct for most systems.
+
 @findex ASM_WEAKEN_LABEL
 @item ASM_WEAKEN_LABEL (@var{stream}, @var{name})
 A C statement (sans semicolon) to output to the stdio stream