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 <i...@golang.org> * go-backend.c (go_trampoline_info): Remove. * go-c.h (go_trampoline_info): Don't declare.
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);