except.c (eh_regs): Save results of build_pointer_type to a temp as FUNCTION_VALUE macro may...

* except.c (eh_regs): Save results of build_pointer_type to a temp
as FUNCTION_VALUE macro may evaluate its args multiple times.

From-SVN: r40861
This commit is contained in:
Alan Modra 2001-03-27 03:00:07 +00:00 committed by Alan Modra
parent d6c4152ac0
commit 5b5c273405
2 changed files with 9 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2001-03-27 Alan Modra <alan@linuxcare.com.au>
* except.c (eh_regs): Save results of build_pointer_type to a temp
as FUNCTION_VALUE macro may evaluate its args multiple times.
2001-03-26 Mark Mitchell <mark@codesourcery.com>
* c-common.h (DECL_NUM_STMTS): New macro.

View file

@ -2998,15 +2998,15 @@ eh_regs (pcontext, psp, pra, outgoing)
{
rtx rcontext, rsp, rra;
unsigned int i;
tree t;
t = build_pointer_type (void_type_node);
#ifdef FUNCTION_OUTGOING_VALUE
if (outgoing)
rcontext = FUNCTION_OUTGOING_VALUE (build_pointer_type (void_type_node),
current_function_decl);
rcontext = FUNCTION_OUTGOING_VALUE (t, current_function_decl);
else
#endif
rcontext = FUNCTION_VALUE (build_pointer_type (void_type_node),
current_function_decl);
rcontext = FUNCTION_VALUE (t, current_function_decl);
#ifdef STATIC_CHAIN_REGNUM
if (outgoing)