4 echo $ECHO_N "checking return.h macros work... $ECHO_C" >&6
5 if test "$cross_compiling" = yes; then
6 cat >>confdefs.h <<\_ACEOF
7 -#define RETURN_MACROS_WORK 0
8 +#define RETURN_MACROS_WORK 1
10 echo "$as_me:$LINENO: result: no" >&5
11 echo "${ECHO_T}no" >&6
15 /*************************************/
18 - * For DEC Mips machines running Ultrix
19 + * For Mips machines running Linux
24 - * I have no idea how to get inline assembly with the default cc.
31 * NOTE: we assume here that file is global.
33 - * $31 is the frame pointer. $2 looks to be the return address but maybe
35 + * $31 is the return address.
37 -#define GET_RET_ADDR(file) asm("sw $2, file")
40 +#define GET_RET_ADDR(file) asm("sw $31, %0" : "=m" (file))