--- gcc-7-20161219.orig/libgo/configure	2016-12-14 08:00:13 +0100
+++ gcc-7-20161219.new/libgo/configure	2017-01-27 11:30:16 +0100
@@ -13388,7 +13393,7 @@
 done
 
 
-WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
+WARN_FLAGS='-Wall -Wno-attributes -Wextra -Wwrite-strings -Wcast-qual'
 
 
 # Check whether --enable-werror was given.
--- gcc-7-20161219.orig/libgo/configure.ac	2016-12-14 08:00:13 +0100
+++ gcc-7-20161219.new/libgo/configure.ac	2017-01-27 11:29:58 +0100
@@ -47,7 +54,7 @@
 
 AC_PROG_AWK
 
-WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
+WARN_FLAGS='-Wall -Wno-attributes -Wextra -Wwrite-strings -Wcast-qual'
 AC_SUBST(WARN_FLAGS)
 
 AC_ARG_ENABLE(werror, [AS_HELP_STRING([--enable-werror],
