This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/50314] GCC changes order of code so it does not work as intended


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);
}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]