forked from Imagelibrary/binutils-gdb
2007-04-18 Denis Pilat <denis.pilat@st.com>
* dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type when missing from DW_TAG_subrange_type. Remove the handling of null return from die_type.
This commit is contained in:
@@ -4914,16 +4914,13 @@ read_subrange_type (struct die_info *die, struct dwarf2_cu *cu)
|
||||
return;
|
||||
|
||||
base_type = die_type (die, cu);
|
||||
if (base_type == NULL)
|
||||
if (TYPE_CODE (base_type) == TYPE_CODE_VOID)
|
||||
{
|
||||
complaint (&symfile_complaints,
|
||||
_("DW_AT_type missing from DW_TAG_subrange_type"));
|
||||
return;
|
||||
base_type = dwarf_base_type (DW_ATE_signed, TARGET_ADDR_BIT / 8, cu);
|
||||
}
|
||||
|
||||
if (TYPE_CODE (base_type) == TYPE_CODE_VOID)
|
||||
base_type = alloc_type (NULL);
|
||||
|
||||
if (cu->language == language_fortran)
|
||||
{
|
||||
/* FORTRAN implies a lower bound of 1, if not given. */
|
||||
|
||||
Reference in New Issue
Block a user