This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
__builtin_eh_return_data_regno
- To: Richard Henderson <rth at cygnus dot com>
- Subject: __builtin_eh_return_data_regno
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Mon, 14 May 2001 02:00:21 -0700
- Cc: gcc at gcc dot gnu dot org
- Organization: CodeSourcery, LLC
I started trying to track this down. It doesn't look like
EH_RETURN_DATA_REGNO is defined for MIPS. Can I pick any four
call-clobberred registers for this purpose? (That's what the
documentation seems to say, but I just wanted to check.)
Also, isn't this:
#ifdef EH_RETURN_DATA_REGNO
builtin_function ("__builtin_eh_return_data_regno", int_ftype_int,
BUILT_IN_EH_RETURN_DATA_REGNO, BUILT_IN_NORMAL, NULL_PTR);
#endif
suboptimal? From looking at the switch statement in builtins.c, it
seems that we are meant always define the function, and then issue an
error indicating that the builtin function is not supported on a
particular target.
Thanks,
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com