darwin.h (ASM_OUTPUT_LABEL): Move to here from config/rs6000/darwin.h.
authorStan Shebs <shebs@apple.com>
Wed, 17 Jul 2002 00:19:30 +0000 (00:19 +0000)
committerStan Shebs <shebs@gcc.gnu.org>
Wed, 17 Jul 2002 00:19:30 +0000 (00:19 +0000)
        * config/darwin.h (ASM_OUTPUT_LABEL): Move to here from
        config/rs6000/darwin.h.
        (ASM_OUTPUT_SKIP): Ditto.
        (TEXT_SECTION_ASM_OP): Ditto.
        (DATA_SECTION_ASM_OP): Ditto.
        (ASM_APP_ON): Define.
        (ASM_APP_OFF): Define.
        * config/rs6000/darwin.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_SKIP,
        TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Remove.

From-SVN: r55504

gcc/ChangeLog
gcc/config/darwin.h
gcc/config/rs6000/darwin.h

index 1a40901c15b72afdae4c1ff085b8d33fa18ea16b..3f6418d160389724a1a456df2281610c27e400c4 100644 (file)
@@ -5,11 +5,21 @@
 
 2002-07-16  Stan Shebs  <shebs@apple.com>
 
-       * darwin.c (func_name_maybe_scoped): Remove unused decl.
+       * config/darwin.h (ASM_OUTPUT_LABEL): Move to here from
+       config/rs6000/darwin.h.
+       (ASM_OUTPUT_SKIP): Ditto.
+       (TEXT_SECTION_ASM_OP): Ditto.
+       (DATA_SECTION_ASM_OP): Ditto.
+       (ASM_APP_ON): Define.
+       (ASM_APP_OFF): Define.
+       * config/rs6000/darwin.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_SKIP,
+       TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Remove.
+
+       * config/darwin.c (func_name_maybe_scoped): Remove unused decl.
        (machopic_function_base_name): Declare result to be const.
        (machopic_non_lazy_ptr_name): Ditto.
        (machopic_stub_name): Ditto.
-       * darwin-protos.h: Ditto for the prototypes.
+       * config/darwin-protos.h: Ditto for the prototypes.
 
 Wed Jul 17 00:22:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
 
index 906951f32e1e3725154e9ed5dc031e139f6af569..44d69d4f3cb09adea36eb1b1d43760721dba6675 100644 (file)
@@ -165,7 +165,14 @@ do { text_section ();                                                      \
       }                                                                \
   } while (0)
 
-/* Give ObjcC methods pretty symbol names. */
+#undef ASM_OUTPUT_LABEL
+#define ASM_OUTPUT_LABEL(FILE,NAME)    \
+  do { assemble_name (FILE, NAME); fputs (":\n", FILE); } while (0)
+
+#define ASM_OUTPUT_SKIP(FILE,SIZE)  \
+  fprintf (FILE, "\t.space %d\n", SIZE)
+
+/* Give ObjC methods pretty symbol names. */
 
 #undef OBJC_GEN_METHOD_LABEL
 #define OBJC_GEN_METHOD_LABEL(BUF,IS_INST,CLASS_NAME,CAT_NAME,SEL_NAME,NUM) \
@@ -247,6 +254,15 @@ do { text_section ();                                                      \
          fprintf (FILE, "_%s", xname);                                      \
   } while (0)
 
+/* Output before executable code.  */
+#undef TEXT_SECTION_ASM_OP
+#define TEXT_SECTION_ASM_OP ".text"
+
+/* Output before writable data.  */
+
+#undef DATA_SECTION_ASM_OP
+#define DATA_SECTION_ASM_OP ".data"
+
 #undef ALIGN_ASM_OP
 #define ALIGN_ASM_OP           ".align"
 
@@ -613,3 +629,8 @@ enum machopic_addr_class {
     cpp_register_pragma (PFILE, 0, "segment", darwin_pragma_ignore);   \
     cpp_register_pragma (PFILE, 0, "unused", darwin_pragma_unused);    \
   } while (0)
+
+#undef ASM_APP_ON
+#define ASM_APP_ON ""
+#undef ASM_APP_OFF
+#define ASM_APP_OFF ""
index f874354634bd3a02b5e13778ff9de21b5f42c137..417cfb9697d803c2dde8f12f0a8460d3ba1c3b54 100644 (file)
@@ -103,13 +103,6 @@ Boston, MA 02111-1307, USA.  */
 #define RS6000_OUTPUT_BASENAME(FILE, NAME)     \
     assemble_name (FILE, NAME);
 
-/* Output before instructions.  */
-/* This is how to output the definition of a user-level label named NAME,
-   such as the label on a static function or variable NAME.  */
-
-#define ASM_OUTPUT_LABEL(FILE,NAME)    \
-  do { assemble_name (FILE, NAME); fputs (":\n", FILE); } while (0)
-
 /* This is how to output a command to make the user-level label named NAME
    defined for reference from other files.  */
 
@@ -126,14 +119,6 @@ Boston, MA 02111-1307, USA.  */
 #define ASM_OUTPUT_INTERNAL_LABEL_PREFIX(FILE,PREFIX)  \
   fprintf (FILE, "%s", PREFIX)
 
-#undef TEXT_SECTION_ASM_OP
-#define TEXT_SECTION_ASM_OP ".text"
-
-/* Output before writable data.  */
-
-#undef DATA_SECTION_ASM_OP
-#define DATA_SECTION_ASM_OP ".data"
-
 /* This says how to output an assembler line to define a global common
    symbol.  */
 /* ? */
@@ -143,9 +128,6 @@ Boston, MA 02111-1307, USA.  */
        RS6000_OUTPUT_BASENAME ((FILE), (NAME));                \
        fprintf ((FILE), ",%d\n", (SIZE)); } while (0)
 
-#define ASM_OUTPUT_SKIP(FILE,SIZE)  \
-  fprintf (FILE, "\t.space %d\n", SIZE)
-
 /* Override the standard rs6000 definition.  */
 
 #undef ASM_COMMENT_START