This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug sanitizer/81066] sanitizer_stoptheworld_linux_libcdep.cc:276:22: error: aggregate ‘sigaltstack handler_stack’ has incomplete type and cannot be defined
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 10 Jul 2017 22:44:12 +0000
- Subject: [Bug sanitizer/81066] sanitizer_stoptheworld_linux_libcdep.cc:276:22: error: aggregate ‘sigaltstack handler_stack’ has incomplete type and cannot be defined
- Auto-submitted: auto-generated
- References: <bug-81066-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81066
--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I think the tsan build issue can be fixed just by replacing
__res_state *statp = (__res_state*)state;
line with
struct __res_state *statp = (struct __res_state*)state;
It should then build hopefully with both old and new glibc.