+2006-02-22 Roland McGrath <roland@redhat.com>
+
+ * ppc64_retval.c (SVR4_STRUCT_RETURN): New macro.
+ (ppc64_return_value_location): Use registers for aggregate conditional
+ on that.
+ * ppc_retval.c (SVR4_STRUCT_RETURN): New macro.
+ (ppc_return_value_location): Use registers for aggregate conditional
+ on that.
+
2006-01-12 Roland McGrath <roland@redhat.com>
* s390_retval.c: New file.
/* Function return value location for Linux/PPC64 ABI.
- Copyright (C) 2005 Red Hat, Inc.
+ Copyright (C) 2005, 2006 Red Hat, Inc.
This program is Open Source software; you can redistribute it and/or
modify it under the terms of the Open Software License version 1.0 as
#include "libebl_CPU.h"
+/* This is the SVR4 ELF ABI convention, but AIX and Linux do not use it. */
+#define SVR4_STRUCT_RETURN 0
+
+
/* r3. */
static const Dwarf_Op loc_intreg[] =
{
return nloc_fp4regs;
}
}
- if (size <= 8)
+ if (size <= 8 && SVR4_STRUCT_RETURN)
{
intreg:
*locp = loc_intreg;
/* Function return value location for Linux/PPC ABI.
- Copyright (C) 2005 Red Hat, Inc.
+ Copyright (C) 2005, 2006 Red Hat, Inc.
This program is Open Source software; you can redistribute it and/or
modify it under the terms of the Open Software License version 1.0 as
#include "libebl_CPU.h"
+/* This is the SVR4 ELF ABI convention, but AIX and Linux do not use it. */
+#define SVR4_STRUCT_RETURN 0
+
+
/* r3, or pair r3, r4. */
static const Dwarf_Op loc_intreg[] =
{
};
#define nloc_aggregate 1
+
int
ppc_return_value_location (Dwarf_Die *functypedie, const Dwarf_Op **locp)
{
case DW_TAG_class_type:
case DW_TAG_union_type:
case DW_TAG_array_type:
- if (dwarf_formudata (dwarf_attr (typedie, DW_AT_byte_size,
+ if (SVR4_STRUCT_RETURN
+ && dwarf_formudata (dwarf_attr (typedie, DW_AT_byte_size,
&attr_mem), &size) == 0
&& size > 0 && size <= 8)
goto intreg;