misc/cgo/testcshared: restore gofrontend-local changes

They were lost when the files were moved in the update to Go1.13beta1.
These changes should be made in the master repo for the 1.14 release,
as riscv64 support is added there.

Change-Id: I3e98aa1af58f708250c0253f4e851a3dd284f4d7
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/194343
Reviewed-by: Cherry Zhang <cherryyz@google.com>
2 files changed