diff mbox

Go patch committed: remove unused function

Message ID CAOyqgcWb5eSyvg0JMsqosoY-FitXk80kS+D8neMoH8OEMaCpPw@mail.gmail.com
State New
Headers show

Commit Message

Ian Lance Taylor Sept. 10, 2016, 10:39 a.m. UTC
This patch to the GCC interface to the Go frontend removes the unused
function go_trampoline_info.  That function was replaced by libffi
closures.  Bootstrapped on x86_64-pc-linux-gnu.  Committed to
mainline.

Ian

2016-09-10  Ian Lance Taylor  <iant@golang.org>

* go-backend.c (go_trampoline_info): Remove.
* go-c.h (go_trampoline_info): Don't declare.
diff mbox

Patch

Index: gcc/go/go-backend.c
===================================================================
--- gcc/go/go-backend.c	(revision 240053)
+++ gcc/go/go-backend.c	(working copy)
@@ -80,15 +80,6 @@  go_field_alignment (tree t)
   return v / BITS_PER_UNIT;
 }
 
-/* Return the size and alignment of a trampoline.  */
-
-void
-go_trampoline_info (unsigned int *size, unsigned int *alignment)
-{
-  *size = TRAMPOLINE_SIZE;
-  *alignment = TRAMPOLINE_ALIGNMENT;
-}
-
 /* This is called by the Go frontend proper if the unsafe package was
    imported.  When that happens we can not do type-based alias
    analysis.  */
Index: gcc/go/go-c.h
===================================================================
--- gcc/go/go-c.h	(revision 240053)
+++ gcc/go/go-c.h	(working copy)
@@ -63,8 +63,6 @@  extern const char *go_localize_identifie
 
 extern unsigned int go_field_alignment (tree);
 
-extern void go_trampoline_info (unsigned int *size, unsigned int *alignment);
-
 extern void go_imported_unsafe (void);
 
 extern void go_write_export_data (const char *, unsigned int);