compiler: don't warn for print()
authorIan Lance Taylor <iant@golang.org>
Wed, 9 Feb 2022 04:19:04 +0000 (20:19 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 9 Feb 2022 22:15:41 +0000 (14:15 -0800)
commite50a79552d567cd49703103d478ab93d805f60c1
treeb549784cb82e06317096c8e7f456d9bf26ed4ea2
parent2e2b861e8941c4e9b36b88e9c562642b1aba6eaf
compiler: don't warn for print()

We used to warn for calls to print(), because it doesn't do anything.
However, a Go 1.18 test uses that call, and it is valid Go.  Change
the compiler to just accept it and compile it; this will produce calls
to printlock and printunlock, and nothing else.

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/384355
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/expressions.cc