aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Earnshaw <erich@gnu.org>1996-02-27 13:15:13 +0000
committerRichard Earnshaw <erich@gnu.org>1996-02-27 13:15:13 +0000
commit0f038b00f9f87adff4491b30f9d90b9fb912e0ce (patch)
treedd3c69f1fa54d5d3aeb51b20367e86dcf25c9fa7
parent589fe0fc3af422f48445de50d31ea56985670e57 (diff)
downloadgcc-0f038b00f9f87adff4491b30f9d90b9fb912e0ce.zip
gcc-0f038b00f9f87adff4491b30f9d90b9fb912e0ce.tar.gz
gcc-0f038b00f9f87adff4491b30f9d90b9fb912e0ce.tar.bz2
aof.h (EXTRA_SECTIONS, [...]): Remove readonly data sections.
* arm/aof.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove readonly data sections. (READONLYDATA_SECTION, READONLY_DATA_SECTION): Delete. From-SVN: r11353
-rw-r--r--gcc/config/arm/aof.h39
1 files changed, 4 insertions, 35 deletions
diff --git a/gcc/config/arm/aof.h b/gcc/config/arm/aof.h
index 5af670b..3aec603 100644
--- a/gcc/config/arm/aof.h
+++ b/gcc/config/arm/aof.h
@@ -1,6 +1,6 @@
/* Definitions of target machine for GNU compiler, for Advanced RISC Machines
ARM compilation, AOF Assembler.
- Copyright (C) 1995 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996 Free Software Foundation, Inc.
Contributed by Richard Earnshaw (rearnsha@armltd.co.uk)
This file is part of GNU CC.
@@ -51,23 +51,19 @@ Boston, MA 02111-1307, USA. */
to that. Unfortunately, there is nothing we can do here to guarantee that
two areas with the same attributes will be linked adjacently in the
resulting executable, so we have to be careful not to do pc-relative
- addressing across such boundaries. This isn't a major problem for thumb,
- since the range of such addressing modes is so limited that it would
- rarely be useful anyway. */
+ addressing across such boundaries. */
char *aof_text_section ();
-#define TEXT_SECTION_ASM_OP \
- aof_text_section (in_section == in_readonly_data)
+#define TEXT_SECTION_ASM_OP aof_text_section ()
#define SELECT_RTX_SECTION(MODE,RTX) text_section ();
char *aof_data_section ();
#define DATA_SECTION_ASM_OP aof_data_section ()
-#define EXTRA_SECTIONS in_zero_init, in_readonly_data, in_ctor, in_dtor
+#define EXTRA_SECTIONS in_zero_init, in_ctor, in_dtor
#define EXTRA_SECTION_FUNCTIONS \
ZERO_INIT_SECTION \
-READONLYDATA_SECTION \
CTOR_SECTION \
DTOR_SECTION
@@ -84,32 +80,6 @@ zero_init_section () \
} \
}
-#define READONLYDATA_SECTION \
-void \
-readonly_data () \
-{ \
- extern int arm_text_section_count; \
- if (in_section != in_readonly_data) \
- { \
- if (in_section != in_text) \
- { \
- fprintf (asm_out_file, \
- "\tAREA |C$$code%d|, CODE, READONLY", \
- arm_text_section_count++); \
- if (flag_pic) \
- fputs (", PIC, REENTRANT", asm_out_file); \
- fputc ('\n', asm_out_file); \
- } \
- in_section = in_readonly_data; \
- } \
-} \
- \
-int \
-in_readonly_data_section () \
-{ \
- return in_section == in_readonly_data; \
-}
-
#define CTOR_SECTION \
void \
ctor_section () \
@@ -179,7 +149,6 @@ do { \
while (*ptr) \
(*ptr++) (); \
} while (0)
-#define READONLY_DATA_SECTION readonly_data
#define JUMP_TABLES_IN_TEXT_SECTION 1