aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Evans <dje@gnu.org>1994-02-17 22:54:34 +0000
committerDoug Evans <dje@gnu.org>1994-02-17 22:54:34 +0000
commitfa8cc22d635729a9ce562c601b031e7f07101778 (patch)
treeaae77c01d153470943cbb539d2f6b5b7ada41272
parent721822b4903b5437e212fbf4947689ae2073d9ee (diff)
downloadgcc-fa8cc22d635729a9ce562c601b031e7f07101778.zip
gcc-fa8cc22d635729a9ce562c601b031e7f07101778.tar.gz
gcc-fa8cc22d635729a9ce562c601b031e7f07101778.tar.bz2
h8300.h (ASM_OUTPUT_SECTION_NAME): Define.
* h8300/h8300.h (ASM_OUTPUT_SECTION_NAME): Define. (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, SELECT_SECTION): Delete. (ASM_OUTPUT_LABELREF): Call fprintf directly. From-SVN: r6588
-rw-r--r--gcc/config/h8300/h8300.h37
1 files changed, 14 insertions, 23 deletions
diff --git a/gcc/config/h8300/h8300.h b/gcc/config/h8300/h8300.h
index f634eae..b93c90b 100644
--- a/gcc/config/h8300/h8300.h
+++ b/gcc/config/h8300/h8300.h
@@ -909,17 +909,6 @@ switch (get_attr_cc (INSN)) \
#define DATA_SECTION_ASM_OP "\t.section .data"
#define BSS_SECTION_ASM_OP "\t.section .bss"
-#define EXTRA_SECTIONS in_user
-
-#define EXTRA_SECTION_FUNCTIONS \
-void \
-user_section (name) \
- char *name; \
-{ \
- fprintf (asm_out_file, "\t.section\t%s\n", name); \
- in_section = in_user; \
-}
-
#define MAX_TEXT_ALIGN 16
/* How to refer to registers in assembler output.
@@ -933,11 +922,18 @@ user_section (name) \
#define DBX_REGISTER_NUMBER(REGNO) (REGNO)
-/* 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 SDB_DEBUGGING_INFO
#define SDB_DELIM "\n"
+/* Assemble generic sections.
+ This is currently only used to support section attributes. */
+
+#define ASM_OUTPUT_SECTION_NAME(FILE, NAME) \
+ fprintf (FILE, ".section\t\"%s\"\n", NAME)
+
+/* 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)
@@ -951,9 +947,11 @@ user_section (name) \
/*#define ASM_DECLARE_FUNCTION_NAME(FILE, NAME, DECL) \
ASM_OUTPUT_LABEL(FILE, NAME); */
-/* This is how to output a reference to a user-level label named NAME. */
-#define ASM_OUTPUT_LABELREF(FILE, NAME) \
- asm_output_labelref (FILE, NAME)
+/* This is how to output a reference to a user-level label named NAME.
+ `assemble_name' uses this. */
+
+#define ASM_OUTPUT_LABELREF(FILE,NAME) \
+ fprintf (FILE, "_%s", NAME)
/* This is how to output an internal numbered label where
PREFIX is the class of label and NUM is the number within the class. */
@@ -1106,10 +1104,3 @@ user_section (name) \
#define SUBSI3_LIBCALL "__subsi3"
#define MOVE_RATIO 3
-
-#if 0
-/* This stuff doesn't work currently. */
-#undef SELECT_SECTION
-#define SELECT_SECTION(DECL,RELOC) select_section(DECL, RELOC)
-#define SELECT_FUNCTION_SECTION(a,b) SELECT_SECTION(a,b)
-#endif