aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/v850/v850.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2014-06-25 09:21:59 +0000
committerNick Clifton <nickc@gcc.gnu.org>2014-06-25 09:21:59 +0000
commitcd47dfd0c5ab8ea6464454e75740a6715a19a41d (patch)
treedcb67ae11c5c515c729f01554c35f9e907b4014d /gcc/config/v850/v850.c
parentda6f124d8a567e410a2926f1cb4416ca620d271d (diff)
downloadgcc-cd47dfd0c5ab8ea6464454e75740a6715a19a41d.zip
gcc-cd47dfd0c5ab8ea6464454e75740a6715a19a41d.tar.gz
gcc-cd47dfd0c5ab8ea6464454e75740a6715a19a41d.tar.bz2
v850.c (GHS_default_section_names): Change to const char * type.
* config/v850/v850.c (GHS_default_section_names): Change to const char * type. (GHS_current_section_names): Likewise. (v850_insert_attributes): Do not build strings, just assign the names directly. Change the type of 'chosen_section' to const char*. * config/v850/v850-c.c (ghs_pragma_section): Assign the alias directly to the array entry. * config/v850/v850.h (GHS_default_section_names): Change to const char * type. (GHS_current_section_names): Likewise. From-SVN: r211972
Diffstat (limited to 'gcc/config/v850/v850.c')
-rw-r--r--gcc/config/v850/v850.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gcc/config/v850/v850.c b/gcc/config/v850/v850.c
index f736c44..02b8427 100644
--- a/gcc/config/v850/v850.c
+++ b/gcc/config/v850/v850.c
@@ -54,8 +54,8 @@
static void v850_print_operand_address (FILE *, rtx);
/* Names of the various data areas used on the v850. */
-tree GHS_default_section_names [(int) COUNT_OF_GHS_SECTION_KINDS];
-tree GHS_current_section_names [(int) COUNT_OF_GHS_SECTION_KINDS];
+const char * GHS_default_section_names [(int) COUNT_OF_GHS_SECTION_KINDS];
+const char * GHS_current_section_names [(int) COUNT_OF_GHS_SECTION_KINDS];
/* Track the current data area set by the data area pragma (which
can be nested). Tested by check_default_data_area. */
@@ -2569,19 +2569,19 @@ v850_insert_attributes (tree decl, tree * attr_ptr ATTRIBUTE_UNUSED )
if (GHS_default_section_names [(int) GHS_SECTION_KIND_SDATA] == NULL)
{
GHS_default_section_names [(int) GHS_SECTION_KIND_SDATA]
- = build_string (sizeof (".sdata")-1, ".sdata");
+ = ".sdata";
GHS_default_section_names [(int) GHS_SECTION_KIND_ROSDATA]
- = build_string (sizeof (".rosdata")-1, ".rosdata");
+ = ".rosdata";
GHS_default_section_names [(int) GHS_SECTION_KIND_TDATA]
- = build_string (sizeof (".tdata")-1, ".tdata");
+ = ".tdata";
GHS_default_section_names [(int) GHS_SECTION_KIND_ZDATA]
- = build_string (sizeof (".zdata")-1, ".zdata");
+ = ".zdata";
GHS_default_section_names [(int) GHS_SECTION_KIND_ROZDATA]
- = build_string (sizeof (".rozdata")-1, ".rozdata");
+ = ".rozdata";
}
if (current_function_decl == NULL_TREE
@@ -2592,7 +2592,7 @@ v850_insert_attributes (tree decl, tree * attr_ptr ATTRIBUTE_UNUSED )
&& !DECL_SECTION_NAME (decl))
{
enum GHS_section_kind kind = GHS_SECTION_KIND_DEFAULT;
- tree chosen_section;
+ const char * chosen_section;
if (TREE_CODE (decl) == FUNCTION_DECL)
kind = GHS_SECTION_KIND_TEXT;