OSDN Git Service

* config/s390/s390.md ("movti", "*movdi_31", "*movdf_31"): Use 'o' instead
[pf3gnuchains/gcc-fork.git] / gcc / config / elfos.h
index 1900e9a..5925d25 100644 (file)
@@ -1,6 +1,6 @@
 /* elfos.h  --  operating system specific defines to be used when
    targeting GCC for some generic ELF system
-   Copyright (C) 1991, 1994, 1995, 1999, 2000, 2001, 2002
+   Copyright (C) 1991, 1994, 1995, 1999, 2000, 2001, 2002, 2003
    Free Software Foundation, Inc.
    Based on svr4.h contributed by Ron Guilmette (rfg@netcom.com).
 
@@ -58,7 +58,7 @@ Boston, MA 02111-1307, USA.  */
 
 /* Handle #pragma weak and #pragma pack.  */
 
-#define HANDLE_SYSV_PRAGMA
+#define HANDLE_SYSV_PRAGMA 1
 
 /* System V Release 4 uses DWARF debugging info.  */
 
@@ -110,20 +110,6 @@ Boston, MA 02111-1307, USA.  */
 #define ASM_OUTPUT_SKIP(FILE, SIZE) \
   fprintf (FILE, "%s%u\n", SKIP_ASM_OP, (SIZE))
 
-/* This is how to output an internal numbered label where
-   PREFIX is the class of label and NUM is the number within the class.
-
-   For most svr4 systems, the convention is that any symbol which begins
-   with a period is not put into the linker symbol table by the assembler.  */
-
-#undef  ASM_OUTPUT_INTERNAL_LABEL
-#define ASM_OUTPUT_INTERNAL_LABEL(FILE, PREFIX, NUM)           \
-  do                                                           \
-    {                                                          \
-      fprintf (FILE, ".%s%u:\n", PREFIX, (unsigned) (NUM));    \
-    }                                                          \
-  while (0)
-
 /* This is how to store into the string LABEL
    the symbol_ref name of an internal numbered label where
    PREFIX is the class of label and NUM is the number within the class.
@@ -161,7 +147,7 @@ Boston, MA 02111-1307, USA.  */
   do                                                                   \
     {                                                                  \
       ASM_OUTPUT_BEFORE_CASE_LABEL (FILE, PREFIX, NUM, JUMPTABLE)      \
-       ASM_OUTPUT_INTERNAL_LABEL (FILE, PREFIX, NUM);                  \
+       (*targetm.asm_out.internal_label) (FILE, PREFIX, NUM);                  \
     }                                                                  \
   while (0)
 
@@ -234,7 +220,7 @@ Boston, MA 02111-1307, USA.  */
 #endif
 
 #define MAKE_DECL_ONE_ONLY(DECL) (DECL_WEAK (DECL) = 1)
-     
+
 /* Switch into a generic section.  */
 #define TARGET_ASM_NAMED_SECTION  default_elf_asm_named_section
 
@@ -254,11 +240,11 @@ Boston, MA 02111-1307, USA.  */
 
 /* This is how we tell the assembler that a symbol is weak.  */
 
-#define ASM_WEAKEN_LABEL(FILE, NAME)   \
+#define ASM_WEAKEN_LABEL(FILE, NAME)   \
   do                                   \
     {                                  \
       fputs ("\t.weak\t", (FILE));     \
-      assemble_name ((FILE), (NAME));  \
+      assemble_name ((FILE), (NAME));  \
       fputc ('\n', (FILE));            \
     }                                  \
   while (0)
@@ -327,12 +313,13 @@ Boston, MA 02111-1307, USA.  */
    size_directive_output was set
    by ASM_DECLARE_OBJECT_NAME when it was run for the same decl.  */
 
+#undef ASM_FINISH_DECLARE_OBJECT
 #define ASM_FINISH_DECLARE_OBJECT(FILE, DECL, TOP_LEVEL, AT_END)\
   do                                                           \
     {                                                          \
       const char *name = XSTR (XEXP (DECL_RTL (DECL), 0), 0);  \
       HOST_WIDE_INT size;                                      \
-                                                               \
+                                                               \
       if (!flag_inhibit_size_directive                         \
          && DECL_SIZE (DECL)                                   \
          && ! AT_END && TOP_LEVEL                              \
@@ -410,13 +397,13 @@ Boston, MA 02111-1307, USA.  */
       register const unsigned char *_limited_str =     \
        (const unsigned char *) (STR);                  \
       register unsigned ch;                            \
-                                                       \
+                                                       \
       fprintf ((FILE), "%s\"", STRING_ASM_OP);         \
-                                                       \
+                                                       \
       for (; (ch = *_limited_str); _limited_str++)     \
         {                                              \
          register int escape;                          \
-                                                       \
+                                                       \
          switch (escape = ESCAPES[ch])                 \
            {                                           \
            case 0:                                     \
@@ -431,7 +418,7 @@ Boston, MA 02111-1307, USA.  */
              break;                                    \
            }                                           \
         }                                              \
-                                                       \
+                                                       \
       fprintf ((FILE), "\"\n");                                \
     }                                                  \
   while (0)
@@ -455,16 +442,16 @@ Boston, MA 02111-1307, USA.  */
       for (; _ascii_bytes < limit; _ascii_bytes++)                     \
         {                                                              \
          register const unsigned char *p;                              \
-                                                                       \
+                                                                       \
          if (bytes_in_chunk >= 60)                                     \
            {                                                           \
              fprintf ((FILE), "\"\n");                                 \
              bytes_in_chunk = 0;                                       \
            }                                                           \
-                                                                       \
+                                                                       \
          for (p = _ascii_bytes; p < limit && *p != '\0'; p++)          \
            continue;                                                   \
-                                                                       \
+                                                                       \
          if (p < limit && (p - _ascii_bytes) <= (long)STRING_LIMIT)    \
            {                                                           \
              if (bytes_in_chunk > 0)                                   \
@@ -472,7 +459,7 @@ Boston, MA 02111-1307, USA.  */
                  fprintf ((FILE), "\"\n");                             \
                  bytes_in_chunk = 0;                                   \
                }                                                       \
-                                                                       \
+                                                                       \
              ASM_OUTPUT_LIMITED_STRING ((FILE), _ascii_bytes);         \
              _ascii_bytes = p;                                         \
            }                                                           \
@@ -480,10 +467,10 @@ Boston, MA 02111-1307, USA.  */
            {                                                           \
              register int escape;                                      \
              register unsigned ch;                                     \
-                                                                       \
+                                                                       \
              if (bytes_in_chunk == 0)                                  \
                fprintf ((FILE), "%s\"", ASCII_DATA_ASM_OP);            \
-                                                                       \
+                                                                       \
              switch (escape = ESCAPES[ch = *_ascii_bytes])             \
                {                                                       \
                case 0:                                                 \
@@ -502,7 +489,7 @@ Boston, MA 02111-1307, USA.  */
                }                                                       \
            }                                                           \
        }                                                               \
-                                                                       \
+                                                                       \
       if (bytes_in_chunk > 0)                                          \
         fprintf ((FILE), "\"\n");                                      \
     }                                                                  \