aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorDavid Edelsohn <dje@gcc.gnu.org>1998-11-16 10:00:10 -0500
committerDavid Edelsohn <dje@gcc.gnu.org>1998-11-16 10:00:10 -0500
commitefc97ef076f10601b5d21de530e37f8182779b13 (patch)
treef01b7cf46194ed282a696c877b259b45909dded1 /gcc/config
parentdfe96118e51d6ac4c64cc198719c540c0c30b601 (diff)
downloadgcc-efc97ef076f10601b5d21de530e37f8182779b13.zip
gcc-efc97ef076f10601b5d21de530e37f8182779b13.tar.gz
gcc-efc97ef076f10601b5d21de530e37f8182779b13.tar.bz2
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
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/rs6000/rs6000.c4
1 files changed, 2 insertions, 2 deletions
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);