diff options
author | nickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-06-25 09:21:59 +0000 |
---|---|---|
committer | nickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-06-25 09:21:59 +0000 |
commit | d88fa80dc9391e6a7c235f97739424437cdd6919 (patch) | |
tree | dcb67ae11c5c515c729f01554c35f9e907b4014d /gcc/config/v850/v850-c.c | |
parent | 9580cb79b8554e257e618ffa16ebc20c61b9c21f (diff) | |
download | gcc-d88fa80dc9391e6a7c235f97739424437cdd6919.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211972 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/v850/v850-c.c')
-rw-r--r-- | gcc/config/v850/v850-c.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/config/v850/v850-c.c b/gcc/config/v850/v850-c.c index 4c2e052cf37..ffd55e48730 100644 --- a/gcc/config/v850/v850-c.c +++ b/gcc/config/v850/v850-c.c @@ -175,8 +175,7 @@ ghs_pragma_section (cpp_reader * pfile ATTRIBUTE_UNUSED) if (streq (alias, "default")) GHS_current_section_names [kind] = NULL; else - GHS_current_section_names [kind] = - build_string (strlen (alias) + 1, alias); + GHS_current_section_names [kind] = alias; } while (repeat); |