]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/config/pa/pa.c
use templates instead of gengtype for typed allocation functions
[thirdparty/gcc.git] / gcc / config / pa / pa.c
index 871e4e5c6e8e7f5a1749bbdafb9c5cbe23915258..95dcbb917cf1ed72c25bbc738d20ddc845a7977d 100644 (file)
@@ -668,7 +668,7 @@ pa_expand_builtin (tree exp, rtx target, rtx subtarget ATTRIBUTE_UNUSED,
 static struct machine_function *
 pa_init_machine_status (void)
 {
-  return ggc_alloc_cleared_machine_function ();
+  return ggc_cleared_alloc<machine_function> ();
 }
 
 /* If FROM is a probable pointer register, mark TO as a probable
@@ -5583,7 +5583,7 @@ pa_get_deferred_plabel (rtx symbol)
       tree id;
 
       if (deferred_plabels == 0)
-       deferred_plabels =  ggc_alloc_deferred_plabel ();
+       deferred_plabels =  ggc_alloc<deferred_plabel> ();
       else
         deferred_plabels = GGC_RESIZEVEC (struct deferred_plabel,
                                           deferred_plabels,