On 7 November 2013 08:03, Baruch Siach <bar...@tkos.co.il> wrote: > Not all architectures use 'ret' as function return instruction. For example, > xtensa usually uses 'retw'. Use the ret_ERRVAL arch dependant macro instead. > > Signed-off-by: Baruch Siach <bar...@tkos.co.il> > --- > v2: Add ret_ERRVAL to architectures missing it as noted by Bernhard > Reutner-Fischer. > --- > libc/sysdeps/linux/bfin/sysdep.h | 2 ++ > libc/sysdeps/linux/cris/sysdep.h | 2 ++ > libc/sysdeps/linux/metag/sysdep.h | 2 ++ > libc/sysdeps/linux/sparc/sysdep.h | 2 ++ > librt/mq_timedreceive.S | 2 +- > librt/mq_timedsend.S | 2 +- > 6 files changed, 10 insertions(+), 2 deletions(-)
I was more thinking about putting the default of ret into common/sysdep.h, make sure to include that in all arch specific sysdep.h and just re-define it on arches that diverge from the default? _______________________________________________ uClibc mailing list uClibc@uclibc.org http://lists.busybox.net/mailman/listinfo/uclibc