summaryrefslogtreecommitdiff
path: root/gcc/config/v850
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/v850')
-rw-r--r--gcc/config/v850/v850.c6
-rw-r--r--gcc/config/v850/v850.h4
2 files changed, 4 insertions, 6 deletions
diff --git a/gcc/config/v850/v850.c b/gcc/config/v850/v850.c
index c47e47b3dcd..72129d3868d 100644
--- a/gcc/config/v850/v850.c
+++ b/gcc/config/v850/v850.c
@@ -2890,7 +2890,7 @@ v850_select_section (exp, reloc, align)
default:
if (is_const)
- const_section ();
+ readonly_data_section ();
else
data_section ();
break;
@@ -2899,10 +2899,10 @@ v850_select_section (exp, reloc, align)
else if (TREE_CODE (exp) == STRING_CST)
{
if (! flag_writable_strings)
- const_section ();
+ readonly_data_section ();
else
data_section ();
}
else
- const_section ();
+ readonly_data_section ();
}
diff --git a/gcc/config/v850/v850.h b/gcc/config/v850/v850.h
index 4f637ff7095..becef7cc7bb 100644
--- a/gcc/config/v850/v850.h
+++ b/gcc/config/v850/v850.h
@@ -1021,7 +1021,7 @@ typedef enum
`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_tdata, in_sdata, in_zdata, in_const, \
+#define EXTRA_SECTIONS in_tdata, in_sdata, in_zdata, \
in_rozdata, in_rosdata, in_sbss, in_zbss, in_zcommon, in_scommon
/* One or more functions to be defined in `varasm.c'. These
@@ -1032,8 +1032,6 @@ typedef enum
/* This could be done a lot more cleanly using ANSI C ... */
#define EXTRA_SECTION_FUNCTIONS \
-CONST_SECTION_FUNCTION \
- \
void \
sdata_section () \
{ \