aboutsummaryrefslogtreecommitdiff
path: root/gcc/except.c
diff options
context:
space:
mode:
authorAlan Modra <alan@linuxcare.com.au>2001-03-27 03:00:07 +0000
committerAlan Modra <amodra@gcc.gnu.org>2001-03-27 12:30:07 +0930
commit5b5c273405a8786fcc213699e893f68b2015a9cb (patch)
treeda7dd95a66fb5ddaba43305552cd18213d4f312a /gcc/except.c
parentd6c4152ac040f2ce8ab21de72e00a3c880071307 (diff)
downloadgcc-5b5c273405a8786fcc213699e893f68b2015a9cb.zip
gcc-5b5c273405a8786fcc213699e893f68b2015a9cb.tar.gz
gcc-5b5c273405a8786fcc213699e893f68b2015a9cb.tar.bz2
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
Diffstat (limited to 'gcc/except.c')
-rw-r--r--gcc/except.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/except.c b/gcc/except.c
index 5c85468..eb80b9b 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)