compiler: check backend alignment for memequalNN functions

The code was assuming the usual required alignment for the memequalNN
functions (16 bits for int16, 32 for int32, etc.). However, on m68k
the required alignment of int32 is only 16 bits. Assuming the
memequalNN alignment caused the compiler to incorrectly decide that
int32 required a specially generated function rather than calling
memequal32. This then crashed if the type descriptor were generated
after type-specific functions had been written.

Fixes GCC PR 80128.

Change-Id: I232d9d3a9e85ef9f8517ffa80e7561a5c733994a
Reviewed-on: https://go-review.googlesource.com/38433
Reviewed-by: Than McIntosh <thanm@google.com>
2 files changed