summaryrefslogtreecommitdiff
path: root/gcc/config/rs6000
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/rs6000')
-rw-r--r--gcc/config/rs6000/lynx.h1
-rw-r--r--gcc/config/rs6000/rs6000.c4
-rw-r--r--gcc/config/rs6000/sysv4.h3
3 files changed, 4 insertions, 4 deletions
diff --git a/gcc/config/rs6000/lynx.h b/gcc/config/rs6000/lynx.h
index 5416abba3ed..87058b232eb 100644
--- a/gcc/config/rs6000/lynx.h
+++ b/gcc/config/rs6000/lynx.h
@@ -27,6 +27,7 @@ Boston, MA 02111-1307, USA. */
#undef ASM_FILE_START
#undef EXTRA_SECTIONS
#undef READONLY_DATA_SECTION
+#undef READONLY_DATA_SECTION_ASM_OP
#undef EXTRA_SECTION_FUNCTIONS
#undef SELECT_RTX_SECTION
#undef TARGET_ASM_SELECT_SECTION
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index e803e2eebb7..5bca89be604 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -10952,7 +10952,7 @@ rs6000_select_rtx_section (mode, x)
|| GET_CODE (x) == CONST))
data_section ();
else
- const_section ();
+ readonly_data_section ();
}
/* A C statement or statements to switch to the appropriate
@@ -10970,7 +10970,7 @@ rs6000_elf_select_section (decl, reloc, align)
int needs_sdata;
int readonly;
static void (* const sec_funcs[4]) PARAMS ((void)) = {
- &const_section,
+ &readonly_data_section,
&sdata2_section,
&data_section,
&sdata_section
diff --git a/gcc/config/rs6000/sysv4.h b/gcc/config/rs6000/sysv4.h
index 2eff24c9762..06a5bf68f3e 100644
--- a/gcc/config/rs6000/sysv4.h
+++ b/gcc/config/rs6000/sysv4.h
@@ -431,12 +431,11 @@ do { \
/* Besides the usual ELF sections, we need a toc section. */
/* Override elfos.h definition. */
#undef EXTRA_SECTIONS
-#define EXTRA_SECTIONS in_const, in_toc, in_sdata, in_sdata2, in_sbss, in_init, in_fini
+#define EXTRA_SECTIONS in_toc, in_sdata, in_sdata2, in_sbss, in_init, in_fini
/* Override elfos.h definition. */
#undef EXTRA_SECTION_FUNCTIONS
#define EXTRA_SECTION_FUNCTIONS \
- CONST_SECTION_FUNCTION \
TOC_SECTION_FUNCTION \
SDATA_SECTION_FUNCTION \
SDATA2_SECTION_FUNCTION \