[Bug tree-optimization/65712] pthread_self prints wrong result when used with ucontext

2015-12-24 Thread albertnetymk at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65712 --- Comment #2 from Albert Netymk --- @Andrew Pinski Could you provide the ref for const and pure attribute? It's not mentioned in the [spec](http://pubs.opengroup.org/onlinepubs/009695399/functions/pthread_self.html), or the source code of

[Bug tree-optimization/65712] pthread_self prints wrong result when used with ucontext

2015-12-23 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65712 --- Comment #1 from Andrew Pinski --- I think this is invalid as pthread_self is marked as const or pure which means it does not change with respect of function calls. If anything is a deficiency in POSIX.