From: Alan Modra Date: Tue, 27 Mar 2001 03:00:07 +0000 (+0000) Subject: except.c (eh_regs): Save results of build_pointer_type to a temp as FUNCTION_VALUE... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5b5c273405a8786fcc213699e893f68b2015a9cb;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 645be42d376..4dbf3a12405 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-03-27 Alan Modra + + * 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 * c-common.h (DECL_NUM_STMTS): New macro. diff --git a/gcc/except.c b/gcc/except.c index 5c854684680..eb80b9b40e2 100644 --- a/gcc/except.c +++ b/gcc/except.c @@ -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)