aboutsummaryrefslogtreecommitdiff
path: root/libgo/runtime/go-libmain.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2016-12-08 16:37:54 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2016-12-08 16:37:54 +0000
commit453060a9062959ceb1522b8b99adeb01b2a3f7b7 (patch)
tree34a4ee9d0eb2d5e59c8a8ffc86e75b6e7b9a572c /libgo/runtime/go-libmain.c
parentb2264b0964560e724010aac2faf4f6a3ec2729f7 (diff)
downloadgcc-453060a9062959ceb1522b8b99adeb01b2a3f7b7.zip
gcc-453060a9062959ceb1522b8b99adeb01b2a3f7b7.tar.gz
gcc-453060a9062959ceb1522b8b99adeb01b2a3f7b7.tar.bz2
runtime: copy memory hash code from Go 1.7
Rewrite the AES hashing code from gc assembler to C code using intrinsics. The resulting code generates the same hash code for the same input as the gc code--that doesn't matter as such, but testing it ensures that the C code does something useful. Also change mips64pe32le to mips64p32le in configure script--noticed during CL review. Reviewed-on: https://go-review.googlesource.com/34022 From-SVN: r243445
Diffstat (limited to 'libgo/runtime/go-libmain.c')
-rw-r--r--libgo/runtime/go-libmain.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libgo/runtime/go-libmain.c b/libgo/runtime/go-libmain.c
index 6884f3a..c62ad93 100644
--- a/libgo/runtime/go-libmain.c
+++ b/libgo/runtime/go-libmain.c
@@ -61,6 +61,7 @@ initfn (int argc, char **argv, char** env __attribute__ ((unused)))
runtime_isarchive = true;
+ runtime_cpuinit ();
runtime_initsig(true);
a = (struct args *) malloc (sizeof *a);