This patch to libgo marks the unused parameters in the non-x86 code of the new file aeshash.c as unused, to avoid build warnings. Bootstrapped on x86_64-pc-linux-gnu, test compiled using an ARM cross-compiler. Committed to mainline.
Ian
Index: gcc/go/gofrontend/MERGE =================================================================== --- gcc/go/gofrontend/MERGE (revision 243445) +++ gcc/go/gofrontend/MERGE (working copy) @@ -1,4 +1,4 @@ -78e3527fcaf4ffd33b22e39a56e5d076844302be +ac59bb383e1b446c68465af793722dd0e84abefb The first line of this file holds the git revision number of the last merge done from the gofrontend repository. Index: libgo/runtime/aeshash.c =================================================================== --- libgo/runtime/aeshash.c (revision 243445) +++ libgo/runtime/aeshash.c (working copy) @@ -575,7 +575,10 @@ uintptr aeshashbody(void* p, uintptr see #else // !defined(__i386__) && !defined(__x86_64__) -uintptr aeshashbody(void* p, uintptr seed, uintptr size, Slice aeskeysched) { +uintptr aeshashbody(void* p __attribute__((unused)), + uintptr seed __attribute__((unused)), + uintptr size __attribute__((unused)), + Slice aeskeysched __attribute__((unused))) { // We should never get here on a non-x86 system. runtime_throw("impossible call to aeshashbody"); }