2006-03-08 Joel Sherrill <joel@OARcorp.com>

PR 761/rtems
	* score/src/threadhandler.c: Add volatile cast so test is weak function
	is present will do something. Otherwise, it can be assume by gcc to
	always be a true condition.
This commit is contained in:
Joel Sherrill
2006-03-08 18:55:45 +00:00
parent 15096905d3
commit 1ff385c214
2 changed files with 8 additions and 1 deletions

View File

@@ -1,3 +1,10 @@
2006-03-08 Joel Sherrill <joel@OARcorp.com>
PR 761/rtems
* score/src/threadhandler.c: Add volatile cast so test is weak function
is present will do something. Otherwise, it can be assume by gcc to
always be a true condition.
2006-03-08 Joel Sherrill <joel@OARcorp.com> 2006-03-08 Joel Sherrill <joel@OARcorp.com>
* itron/macros/rtems/itron/semaphore.inl, * itron/macros/rtems/itron/semaphore.inl,

View File

@@ -113,7 +113,7 @@ void _Thread_Handler( void )
_Thread_Enable_dispatch(); _Thread_Enable_dispatch();
#if defined(__USE_INIT_FINI__) #if defined(__USE_INIT_FINI__)
if (!doneCons && _init) if (!doneCons && (volatile void *)_init)
_init (); _init ();
#endif #endif
#if defined(__USE__MAIN__) #if defined(__USE__MAIN__)