This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/57813] Change of global variable ignored
- 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, 03 Jul 2013 21:01:44 +0000
- Subject: [Bug c/57813] Change of global variable ignored
- Auto-submitted: auto-generated
- References: <bug-57813-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57813
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
taskInfo.ready[priority]->wakeTime = Task_enforceTimeslice(priority);
This is the same as:
(*taskInfo.ready[priority]).wakeTime = Task_enforceTimeslice(priority);
Which means either the compiler can read the value of taskInfo.ready[priority]
before or after the function call to Task_enforceTimeslice because there is no
sequence point between them.