go: disable -fipa-icf-functions by default in Go frontend
authorIan Lance Taylor <iant@golang.org>
Wed, 4 Nov 2020 20:02:31 +0000 (12:02 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 4 Nov 2020 20:05:22 +0000 (12:05 -0800)
commit9a02d31baa5e83387b3bbfaadca70f4ebc6cce15
treeea9ef12907bddf82d1d44f270d924a70a61f954b
parente86fd6a17cdb26710d1f13c9a47a3878c76028f9
go: disable -fipa-icf-functions by default in Go frontend

Go programs expect to be able to get reliable backtrace information
with correct file/line information, but -fipa-icf-functions breaks
that because it merges together distinct functions which should have
distinct file/line info.

* go-lang.c (go_langhook_post_options): Disable
-fipa-icf-functions if it was not explicitly enabled.
gcc/go/go-lang.c