aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2015-06-09 08:17:06 +0000
committerNick Clifton <nickc@gcc.gnu.org>2015-06-09 08:17:06 +0000
commit0a210a19b06b72e2a4e0486dbb28adca80536b40 (patch)
tree4475f897b7b9ee2c30128a4f693b646d62bd88b6 /gcc/config
parent99e9cec839abe5e78575545ae648f02508307c9a (diff)
downloadgcc-0a210a19b06b72e2a4e0486dbb28adca80536b40.zip
gcc-0a210a19b06b72e2a4e0486dbb28adca80536b40.tar.gz
gcc-0a210a19b06b72e2a4e0486dbb28adca80536b40.tar.bz2
rl78.c (rl78_select_section): When -mes0 is active place read only data in the .frodata section.
* config/rl78/rl78.c (rl78_select_section): When -mes0 is active place read only data in the .frodata section. From-SVN: r224270
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/rl78/rl78.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/rl78/rl78.c b/gcc/config/rl78/rl78.c
index 1ab2705..49bca04 100644
--- a/gcc/config/rl78/rl78.c
+++ b/gcc/config/rl78/rl78.c
@@ -4417,14 +4417,14 @@ rl78_select_section (tree decl,
}
if (readonly)
- return readonly_data_section;
+ return TARGET_ES0 ? frodata_section : readonly_data_section;
switch (categorize_decl_for_section (decl, reloc))
{
case SECCAT_TEXT: return text_section;
case SECCAT_DATA: return data_section;
case SECCAT_BSS: return bss_section;
- case SECCAT_RODATA: return readonly_data_section;
+ case SECCAT_RODATA: return TARGET_ES0 ? frodata_section : readonly_data_section;
default:
return default_select_section (decl, reloc, align);
}