]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/config/i386/winnt.c
use templates instead of gengtype for typed allocation functions
[thirdparty/gcc.git] / gcc / config / i386 / winnt.c
index bcfd48a03dc673fd010b3ab41f08037374f54bdd..6cdc29f3ed3f6f1d4c66d04e980096de57c646ba 100644 (file)
@@ -649,7 +649,7 @@ i386_pe_record_external_function (tree decl, const char *name)
 {
   struct extern_list *p;
 
-  p = ggc_alloc_extern_list ();
+  p = ggc_alloc<extern_list> ();
   p->next = extern_head;
   p->decl = decl;
   p->name = name;
@@ -700,7 +700,7 @@ i386_pe_maybe_record_exported_symbol (tree decl, const char *name, int is_data)
 
   gcc_assert (TREE_PUBLIC (decl));
 
-  p = ggc_alloc_export_list ();
+  p = ggc_alloc<export_list> ();
   p->next = export_head;
   p->name = name;
   p->is_data = is_data;
@@ -724,7 +724,7 @@ i386_pe_record_stub (const char *name)
       p = p->next;
     }
 
-  p = ggc_alloc_stub_list ();
+  p = ggc_alloc<stub_list> ();
   p->next = stub_head;
   p->name = name;
   stub_head = p;