mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
* doublest.h (store_floating, extract_floating): Add comment
indicating these functions are deprecated. (extract_typed_floating, store_typed_floating): Declare. * doublest.c: Include "gdbtypes.h". (extract_typed_floating, store_typed_floating): Define. * stabsread.c (define_symbol): Use store_typed_floating. * valarith.c (value_binop): Ditto. * values.c (unpack_long): Use extract_typed_floating. (unpack_double): Ditto.
This commit is contained in:
@@ -645,7 +645,7 @@ unpack_long (struct type *type, char *valaddr)
|
||||
return extract_signed_integer (valaddr, len);
|
||||
|
||||
case TYPE_CODE_FLT:
|
||||
return extract_floating (valaddr, len);
|
||||
return extract_typed_floating (valaddr, type);
|
||||
|
||||
case TYPE_CODE_PTR:
|
||||
case TYPE_CODE_REF:
|
||||
@@ -689,7 +689,7 @@ unpack_double (struct type *type, char *valaddr, int *invp)
|
||||
return 1.234567891011121314;
|
||||
}
|
||||
#endif
|
||||
return extract_floating (valaddr, len);
|
||||
return extract_typed_floating (valaddr, type);
|
||||
}
|
||||
else if (nosign)
|
||||
{
|
||||
@@ -1297,7 +1297,7 @@ value_from_double (struct type *type, DOUBLEST num)
|
||||
|
||||
if (code == TYPE_CODE_FLT)
|
||||
{
|
||||
store_floating (VALUE_CONTENTS_RAW (val), len, num);
|
||||
store_typed_floating (VALUE_CONTENTS_RAW (val), base_type, num);
|
||||
}
|
||||
else
|
||||
error ("Unexpected type encountered for floating constant.");
|
||||
|
||||
Reference in New Issue
Block a user