summaryrefslogtreecommitdiffstats
path: root/gcc/except.c
diff options
context:
space:
mode:
authoramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>2001-03-27 03:00:07 +0000
committeramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>2001-03-27 03:00:07 +0000
commit0d7ac45a1f93a8bade2a72ba77f4cf246c47e146 (patch)
treeda7dd95a66fb5ddaba43305552cd18213d4f312a /gcc/except.c
parenta4cc90cad4420dd985cc6c5c0086dada0b45f1c1 (diff)
downloadppe42-gcc-0d7ac45a1f93a8bade2a72ba77f4cf246c47e146.tar.gz
ppe42-gcc-0d7ac45a1f93a8bade2a72ba77f4cf246c47e146.zip
* except.c (eh_regs): Save results of build_pointer_type to a temp
as FUNCTION_VALUE macro may evaluate its args multiple times. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40861 138bc75d-0d04-0410-961f-82ee72b054a4
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 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)
OpenPOWER on IntegriCloud