summaryrefslogtreecommitdiffstats
path: root/backends/sparc_retval.c
diff options
context:
space:
mode:
authorRoland McGrath <[email protected]>2010-01-05 22:59:32 -0800
committerRoland McGrath <[email protected]>2010-01-05 22:59:32 -0800
commit0c16c58610276858702c0db8b3bc8d332fb85656 (patch)
tree775f48a18378310c7557917440cac1d794fb4e0c /backends/sparc_retval.c
parentebc5c885e696cdc4961916113c50e1396d8d3d48 (diff)
Use dwarf_aggregate_size in backend return_value functions. Observe DW_AT_GNU_vector on powerpc return_value type.
Diffstat (limited to 'backends/sparc_retval.c')
-rw-r--r--backends/sparc_retval.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/backends/sparc_retval.c b/backends/sparc_retval.c
index 7d7cbf2c..dcff67a2 100644
--- a/backends/sparc_retval.c
+++ b/backends/sparc_retval.c
@@ -1,5 +1,5 @@
/* Function return value location for SPARC.
- Copyright (C) 2006, 2007 Red Hat, Inc.
+ Copyright (C) 2006-2010 Red Hat, Inc.
This file is part of Red Hat elfutils.
Red Hat elfutils is free software; you can redistribute it and/or modify
@@ -154,8 +154,7 @@ sparc_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_integrate (typedie, DW_AT_byte_size,
- &attr_mem), &size) == 0
+ if (dwarf_aggregate_size (typedie, &size) == 0
&& size > 0 && size <= 8)
goto intreg;
goto aggregate;