* c-parser.c (c_parse_init): Don't call xstrdup on get_identifier
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 11 Mar 2015 19:51:55 +0000 (19:51 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 11 Mar 2015 19:51:55 +0000 (19:51 +0000)
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

gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/c/ChangeLog
gcc/c/c-parser.c

index 3420c96..9086560 100644 (file)
@@ -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
index 7e84eb1..456c619 100644 (file)
@@ -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 ())
index c15b86f..7f429c9 100644 (file)
@@ -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
index ceb9e1a..5cc3892 100644 (file)
@@ -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;
     }