aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2020-09-11 10:54:11 +0200
committerEric Botcazou <ebotcazou@adacore.com>2020-09-11 11:13:16 +0200
commit230e0dbdcbb55c5ec3cbb236db4302cd18a1a01d (patch)
tree91edfcb79f6fb48c815799e4e87bf12819abf1c0 /gcc/ada
parent7c919c12be147c72e5d7ef2f9436adadcf2c2f24 (diff)
downloadgcc-230e0dbdcbb55c5ec3cbb236db4302cd18a1a01d.zip
gcc-230e0dbdcbb55c5ec3cbb236db4302cd18a1a01d.tar.gz
gcc-230e0dbdcbb55c5ec3cbb236db4302cd18a1a01d.tar.bz2
Drop GNAT encodings for fixed-point types
GDB can now deal with the DWARF representation just fine. gcc/ada/ChangeLog: * gcc-interface/misc.c (gnat_get_fixed_point_type): Bail out only when the GNAT encodings are specifically used.
Diffstat (limited to 'gcc/ada')
-rw-r--r--gcc/ada/gcc-interface/misc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/ada/gcc-interface/misc.c b/gcc/ada/gcc-interface/misc.c
index 183daf3..e6a563e 100644
--- a/gcc/ada/gcc-interface/misc.c
+++ b/gcc/ada/gcc-interface/misc.c
@@ -618,10 +618,9 @@ gnat_get_fixed_point_type_info (const_tree type,
{
tree scale_factor;
- /* GDB cannot handle fixed-point types yet, so rely on GNAT encodings
- instead for it. */
+ /* Do nothing if the GNAT encodings are used. */
if (!TYPE_IS_FIXED_POINT_P (type)
- || gnat_encodings != DWARF_GNAT_ENCODINGS_MINIMAL)
+ || gnat_encodings == DWARF_GNAT_ENCODINGS_ALL)
return false;
scale_factor = TYPE_SCALE_FACTOR (type);