This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[gc-improv] Convert SPARC backend


Bootstrapped and regtested under sparc64-unknown-linux-gnu, commited
to gc-improv.

-- 
Laurynas

2009-11-23  Laurynas Biveinis  <laurynas.biveinis@gmail.com>

        * config/sparc/sparc.c (sparc_init_machine_status): Use typed GC
        allocation.


Index: config/sparc/sparc.c
===================================================================
--- config/sparc/sparc.c        (revision 154027)
+++ config/sparc/sparc.c        (working copy)
@@ -8985,7 +8985,7 @@
 static struct machine_function *
 sparc_init_machine_status (void)
 {
-  return GGC_CNEW (struct machine_function);
+  return ggc_alloc_cleared_machine_function ();
 }

 /* Locate some local-dynamic symbol still in use by this function


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]