This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug go/81451] missing futex check - libgo/runtime/thread-linux.c:12:0 futex.h:13:12: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘long’
- From: "ian at airs dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 15 Jul 2017 15:39:59 +0000
- Subject: [Bug go/81451] missing futex check - libgo/runtime/thread-linux.c:12:0 futex.h:13:12: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘long’
- Auto-submitted: auto-generated
- References: <bug-81451-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81451
--- Comment #1 from Ian Lance Taylor <ian at airs dot com> ---
There does seem to be something wrong with your linux/futex.h, which is much
shorter than the one on my system. But it is also true that the file where the
error occurs no longer needs to #include <linux/futex.h>. You should just
remove the #include and carry on. I'll commit a more comprehensive fix to
mainline.