This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/61118] Spurious -Wclobbered warning generated by gcc 4.9.0 for pthread_cleanup_push
- From: "gladkovdmitry17 at yandex dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 24 Mar 2016 06:38:55 +0000
- Subject: [Bug middle-end/61118] Spurious -Wclobbered warning generated by gcc 4.9.0 for pthread_cleanup_push
- Auto-submitted: auto-generated
- References: <bug-61118-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61118
Gladkov Dmitry <gladkovdmitry17 at yandex dot ru> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |gladkovdmitry17 at yandex dot ru
--- Comment #4 from Gladkov Dmitry <gladkovdmitry17 at yandex dot ru> ---
The same has been seen by me in gcc 4.9.2 on SLES 12.
The __cancel_routine variable is never modifed, but I see the following:
error: variable __cancel_routine might be clobbered by "longjmp" or "vfork"
[-Werror=clobbered]
#define ThreadCleanUpPush_m(func,arg) pthread_cleanup_push((func),\
Please, provide any workaround for the problem.