compiler: use builtin memset for non-pointer memclr
authorCherry Zhang <cherryyz@google.com>
Tue, 2 Jul 2019 16:47:48 +0000 (16:47 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 2 Jul 2019 16:47:48 +0000 (16:47 +0000)
commite2790e1eab7bfaae5a733ed742a59a518253a645
treeb3c80682051e61f7267a88209da91bec78937dff
parentdab0477b0bbcc90418a7e1aec40b465de3ec842c
compiler: use builtin memset for non-pointer memclr

    For zeroing a range of memory that doesn't contain pointer, we
    can use builtin memset directly.

    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/184438

* go-gcc.cc (Gcc_backend::Gcc_backend): Define __builtin_memset.

From-SVN: r272944
gcc/go/ChangeLog
gcc/go/go-gcc.cc
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/runtime.def
gcc/go/gofrontend/statements.cc