diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2006-03-08 18:55:45 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2006-03-08 18:55:45 +0000 |
commit | 1ff385c21492aac01d71c2af07aefe6c167e67d9 (patch) | |
tree | a5b8a668035d7f6cf5fc772e6840fb8cd566bccb /cpukit | |
parent | 2006-03-08 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-1ff385c21492aac01d71c2af07aefe6c167e67d9.tar.bz2 |
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.
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/ChangeLog | 7 | ||||
-rw-r--r-- | cpukit/score/src/threadhandler.c | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index ca082e4de3..2dabcc833d 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,5 +1,12 @@ 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> + * itron/macros/rtems/itron/semaphore.inl, itron/macros/rtems/itron/task.inl: Fix warnings. * posix/macros/rtems/posix/cond.inl: Fix typo. diff --git a/cpukit/score/src/threadhandler.c b/cpukit/score/src/threadhandler.c index c5ff9c03af..c6cf23e660 100644 --- a/cpukit/score/src/threadhandler.c +++ b/cpukit/score/src/threadhandler.c @@ -113,7 +113,7 @@ void _Thread_Handler( void ) _Thread_Enable_dispatch(); #if defined(__USE_INIT_FINI__) - if (!doneCons && _init) + if (!doneCons && (volatile void *)_init) _init (); #endif #if defined(__USE__MAIN__) |