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: "joseph at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 12 Jun 2017 11:39:48 +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 #4 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
Using stack_t instead of struct sigaltstack is correct. However, the type
declaration should be obtained from <signal.h>. Nothing outside of glibc
should ever include <bits/*.h> headers or define glibc's __need_* macros;
those are purely implementation details, not public interfaces, and are
liable to change incompatibly at any time.