aboutsummaryrefslogtreecommitdiff
path: root/gcc/builtins.c
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@redhat.com>2001-07-25 13:33:17 +0000
committerAndrew Macleod <amacleod@gcc.gnu.org>2001-07-25 13:33:17 +0000
commit7c2b017c9a5f9a81dcf6b2b2047fd10165d19420 (patch)
treee7c323638a787cb35876771b5347818a79319262 /gcc/builtins.c
parentff3daa889a35408d19790c6a5bd01fed99362c1d (diff)
downloadgcc-7c2b017c9a5f9a81dcf6b2b2047fd10165d19420.zip
gcc-7c2b017c9a5f9a81dcf6b2b2047fd10165d19420.tar.gz
gcc-7c2b017c9a5f9a81dcf6b2b2047fd10165d19420.tar.bz2
stmt.c (expand_goto): A nonlocal goto can be a call too.
2001-07-25 Andrew MacLeod <amacleod@redhat.com> Janis Johnson <janis@us.ibm.com> * stmt.c (expand_goto): A nonlocal goto can be a call too. * builtins.c (expand_builtin_longjmp): Reverse label and static chain pointer parameters to match documented usage of nonlocal_goto. * config/ia64/ia64.md (nonlocal_goto): Revert label and static chain parameters to their correct order. * config/sparc/sparc.md (nonlocal_goto): Revert label and static chain parameters to their correct order. Co-Authored-By: Janis Johnson <janis@us.ibm.com> From-SVN: r44353
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r--gcc/builtins.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c
index c2ce7c8..985324a 100644
--- a/gcc/builtins.c
+++ b/gcc/builtins.c
@@ -696,7 +696,7 @@ expand_builtin_longjmp (buf_addr, value)
/* We have to pass a value to the nonlocal_goto pattern that will
get copied into the static_chain pointer, but it does not matter
what that value is, because builtin_setjmp does not use it. */
- emit_insn (gen_nonlocal_goto (value, fp, stack, lab));
+ emit_insn (gen_nonlocal_goto (value, lab, stack, fp));
else
#endif
{