From efc97ef076f10601b5d21de530e37f8182779b13 Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Mon, 16 Nov 1998 10:00:10 -0500 Subject: rs6000.c (output_mi_thunk): Improve test for local branch. * rs6000.c (output_mi_thunk): Improve test for local branch. * rs6000.c (output_mi_thunk): Correct test for aggregate values. From-SVN: r23676 --- gcc/config/rs6000/rs6000.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/config') diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 9ae69e8..6f96bf1 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -4474,7 +4474,7 @@ output_mi_thunk (file, thunk_fndecl, delta, function) int delta; tree function; { - char *this_reg = reg_names[ aggregate_value_p (TREE_TYPE (function)) ? 3 : 4 ]; + char *this_reg = reg_names[ aggregate_value_p (TREE_TYPE (TREE_TYPE (function))) ? 4 : 3 ]; char *r0 = reg_names[0]; char *sp = reg_names[1]; char *toc = reg_names[2]; @@ -4559,7 +4559,7 @@ output_mi_thunk (file, thunk_fndecl, delta, function) fprintf (file, "\n"); #else - if (TREE_ASM_WRITTEN (function) + if (current_file_function_operand (XEXP (DECL_RTL (function), 0)) && !lookup_attribute ("longcall", TYPE_ATTRIBUTES (TREE_TYPE (function)))) { fprintf (file, "\tb %s", prefix); -- cgit v1.1