aboutsummaryrefslogtreecommitdiff
path: root/gcc/c/c-parser.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2015-03-11 20:51:55 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2015-03-11 20:51:55 +0100
commit17958621a22a7dec744fae89a3bdb5aa552fead7 (patch)
tree2ccd3e9605f43dc1c41b61723e7df2f7bd641631 /gcc/c/c-parser.c
parent9cd4d216e91963e29f291effa2f46225a9199b7f (diff)
downloadgcc-17958621a22a7dec744fae89a3bdb5aa552fead7.zip
gcc-17958621a22a7dec744fae89a3bdb5aa552fead7.tar.gz
gcc-17958621a22a7dec744fae89a3bdb5aa552fead7.tar.bz2
c-parser.c (c_parse_init): Don't call xstrdup on get_identifier argument.
* 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. From-SVN: r221358
Diffstat (limited to 'gcc/c/c-parser.c')
-rw-r--r--gcc/c/c-parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c/c-parser.c b/gcc/c/c-parser.c
index ceb9e1a..5cc3892 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;
}