Sebastian Huber started a new discussion on 
cpukit/include/rtems/score/processormaskimpl.h: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1076#note_143473

 >    uint32_t              index
 >  )
 >  {
 > -  long bits = mask->__bits[ index / _BITSET_BITS ];
 > +  unsigned long bits = (unsigned long) mask->__bits[ index / _BITSET_BITS ];

This doesn't fix the undefined behaviour. To properly fix this, you have to 
apply the fixes from FreeBSD to Newlib. Check out the FreeBSD sources, then 
review:

```
git log -p ./sys/sys/*bitset*
```

Apply the relevant patches to Newlib.

-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1076#note_143473
You're receiving this email because of your account on gitlab.rtems.org.


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to