Index: gcc/dwarf2out.c =================================================================== --- gcc/dwarf2out.c (revision 142945) +++ gcc/dwarf2out.c (working copy) @@ -9344,6 +9344,12 @@ add_AT_unsigned (base_type_result, DW_AT_byte_size, int_size_in_bytes (type)); + + /* version 3 dwarf specifies that for fixed-point types DW_AT_binary_scale + describes the location of the decimal place */ + if (TREE_CODE (type) == FIXED_POINT_TYPE) + add_AT_int (base_type_result, DW_AT_binary_scale, -TYPE_FBIT (type)); + add_AT_unsigned (base_type_result, DW_AT_encoding, encoding); return base_type_result;