diff options
| author | amodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-03-27 03:00:07 +0000 |
|---|---|---|
| committer | amodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-03-27 03:00:07 +0000 |
| commit | 0d7ac45a1f93a8bade2a72ba77f4cf246c47e146 (patch) | |
| tree | da7dd95a66fb5ddaba43305552cd18213d4f312a /gcc | |
| parent | a4cc90cad4420dd985cc6c5c0086dada0b45f1c1 (diff) | |
| download | ppe42-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')
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/except.c | 8 |
2 files changed, 9 insertions, 4 deletions
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 <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. 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) |

