summaryrefslogtreecommitdiff
path: root/gcc/config/m32r
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/m32r')
-rw-r--r--gcc/config/m32r/m32r.c6
-rw-r--r--gcc/config/m32r/m32r.h7
2 files changed, 6 insertions, 7 deletions
diff --git a/gcc/config/m32r/m32r.c b/gcc/config/m32r/m32r.c
index 4851127138f..a1f3c9115e0 100644
--- a/gcc/config/m32r/m32r.c
+++ b/gcc/config/m32r/m32r.c
@@ -331,7 +331,7 @@ m32r_select_section (decl, reloc, align)
if (TREE_CODE (decl) == STRING_CST)
{
if (! flag_writable_strings)
- const_section ();
+ readonly_data_section ();
else
data_section ();
}
@@ -347,10 +347,10 @@ m32r_select_section (decl, reloc, align)
&& !TREE_CONSTANT (DECL_INITIAL (decl))))
data_section ();
else
- const_section ();
+ readonly_data_section ();
}
else
- const_section ();
+ readonly_data_section ();
}
/* Encode section information of DECL, which is either a VAR_DECL,
diff --git a/gcc/config/m32r/m32r.h b/gcc/config/m32r/m32r.h
index f0b783a7ea8..c3b00326e29 100644
--- a/gcc/config/m32r/m32r.h
+++ b/gcc/config/m32r/m32r.h
@@ -1526,14 +1526,14 @@ do { \
#define SDATA_SECTION_ASM_OP "\t.section .sdata"
#define SBSS_SECTION_ASM_OP "\t.section .sbss"
/* This one is for svr4.h. */
-#undef CONST_SECTION_ASM_OP
-#define CONST_SECTION_ASM_OP "\t.section .rodata"
+#undef READONLY_DATA_SECTION_ASM_OP
+#define READONLY_DATA_SECTION_ASM_OP "\t.section .rodata"
/* A list of names for sections other than the standard two, which are
`in_text' and `in_data'. You need not define this macro
on a system with no other sections (that GCC needs to use). */
#undef EXTRA_SECTIONS
-#define EXTRA_SECTIONS in_sdata, in_sbss, in_const
+#define EXTRA_SECTIONS in_sdata, in_sbss
/* One or more functions to be defined in "varasm.c". These
functions should do jobs analogous to those of `text_section' and
@@ -1541,7 +1541,6 @@ do { \
macro if you do not define `EXTRA_SECTIONS'. */
#undef EXTRA_SECTION_FUNCTIONS
#define EXTRA_SECTION_FUNCTIONS \
- CONST_SECTION_FUNCTION \
SDATA_SECTION_FUNCTION \
SBSS_SECTION_FUNCTION