This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/50314] GCC changes order of code so it does not work as intended
- From: "NickParker at Eaton dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 07 Sep 2011 21:13:22 +0000
- Subject: [Bug c/50314] GCC changes order of code so it does not work as intended
- Auto-submitted: auto-generated
- References: <bug-50314-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50314
--- Comment #3 from NickParker at Eaton dot com 2011-09-07 21:13:22 UTC ---
#define T1_GET_TIMER_NON_ATOMIC() (TCNT1)
uint16_t BGndTimerReadNowIsr(void)
{
uint16_t period_u2;
period_u2 = T1_GET_TIMER_NON_ATOMIC();
return(period_u2);
}