[Bug c/77392] Premature optimization based on return data from thread
mednafen at sent dot com
gcc-bugzilla@gcc.gnu.org
Sun Aug 28 03:59:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77392
mednafen at sent dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mednafen at sent dot com
--- Comment #1 from mednafen at sent dot com ---
The return type for the thread entry point function is wrong, and the variable
whose address/pointer you're passing to pthread_join is of the wrong type,
which is probably leading to stack corruption. These are things the compiler
should have warned or errored-out about if not for the explicit void* casts.
More information about the Gcc-bugs
mailing list