diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-03-11 19:51:55 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-03-11 19:51:55 +0000 |
commit | 76738f5697a8f2e9fdc143e12dcc07c4dca3ed7e (patch) | |
tree | 2ccd3e9605f43dc1c41b61723e7df2f7bd641631 | |
parent | c0552b6a03067c006868c636ea8cbb788a053fb1 (diff) | |
download | gcc-76738f5697a8f2e9fdc143e12dcc07c4dca3ed7e.tar.gz |
* c-parser.c (c_parse_init): Don't call xstrdup on get_identifier
argument.
* c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
on record_builtin_type argument.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221358 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/c-family/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/c-family/c-common.c | 5 | ||||
-rw-r--r-- | gcc/c/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/c/c-parser.c | 2 |
4 files changed, 13 insertions, 4 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index 3420c96aff1..9086560cc44 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,8 @@ +2015-03-11 Jakub Jelinek <jakub@redhat.com> + + * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup + on record_builtin_type argument. + 2015-03-10 Jakub Jelinek <jakub@redhat.com> PR c/65120 diff --git a/gcc/c-family/c-common.c b/gcc/c-family/c-common.c index 7e84eb194b2..456c61955cc 100644 --- a/gcc/c-family/c-common.c +++ b/gcc/c-family/c-common.c @@ -5458,11 +5458,10 @@ c_common_nodes_and_builtins (void) char name[25]; sprintf (name, "__int%d", int_n_data[i].bitsize); - record_builtin_type ((enum rid)(RID_FIRST_INT_N + i), xstrdup (name), + record_builtin_type ((enum rid)(RID_FIRST_INT_N + i), name, int_n_trees[i].signed_type); sprintf (name, "__int%d unsigned", int_n_data[i].bitsize); - record_builtin_type (RID_MAX, xstrdup (name), - int_n_trees[i].unsigned_type); + record_builtin_type (RID_MAX, name, int_n_trees[i].unsigned_type); } if (c_dialect_cxx ()) diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog index c15b86f5540..7f429c97a5b 100644 --- a/gcc/c/ChangeLog +++ b/gcc/c/ChangeLog @@ -1,3 +1,8 @@ +2015-03-11 Jakub Jelinek <jakub@redhat.com> + + * c-parser.c (c_parse_init): Don't call xstrdup on get_identifier + argument. + 2015-03-10 Jakub Jelinek <jakub@redhat.com> PR c/65120 diff --git a/gcc/c/c-parser.c b/gcc/c/c-parser.c index ceb9e1a78e7..5cc38923078 100644 --- a/gcc/c/c-parser.c +++ b/gcc/c/c-parser.c @@ -139,7 +139,7 @@ c_parse_init (void) /* We always create the symbols but they aren't always supported. */ char name[50]; sprintf (name, "__int%d", int_n_data[i].bitsize); - id = get_identifier (xstrdup (name)); + id = get_identifier (name); C_SET_RID_CODE (id, RID_FIRST_INT_N + i); C_IS_RESERVED_WORD (id) = 1; } |