[Bug middle-end/61118] Spurious -Wclobbered warning generated by gcc 4.9.0 for pthread_cleanup_push

lambertarthur22 at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu Sep 10 10:17:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61118

Arthur LAMBERT <lambertarthur22 at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lambertarthur22 at gmail dot com

--- Comment #3 from Arthur LAMBERT <lambertarthur22 at gmail dot com> ---
Same problem for me after updating my gcc version from 4.8.4 to 4.9.3.

I have a piece of code using pthread_clean_push/pop which lead to the same
warning :

error: variable ‘x’ might be clobbered by ‘longjmp’ or ‘vfork’
[-Werror=clobbered]
error: variable ‘y’ might be clobbered by ‘longjmp’ or ‘vfork’
[-Werror=clobbered]
error: variable ‘__cancel_routine’ might be clobbered by ‘longjmp’ or ‘vfork’
[-Werror=clobbered]

Just need to comment the pthread_clean_X call to remove the warning.

Any update on this ?


More information about the Gcc-bugs mailing list