This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/85620] getcontext is wrongly marked return twice
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 02 May 2018 20:42:36 +0000
- Subject: [Bug middle-end/85620] getcontext is wrongly marked return twice
- Auto-submitted: auto-generated
- References: <bug-85620-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85620
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
getcontext does return twice. Swapcontext only returns once.
If you get the current context, and then latter on swap the context, you just
returned to the place where getcontext is called. you do setcontext (or
swapcontext again), you get the swapcontext context. That is it only ever
returns once.