forked from Imagelibrary/rtems
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:
@@ -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,
|
||||||
|
|||||||
@@ -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__)
|
||||||
|
|||||||
Reference in New Issue
Block a user