* amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
authorJoel Brobecker <brobecker@gnat.com>
Fri, 26 Mar 2004 23:15:40 +0000 (23:15 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Fri, 26 Mar 2004 23:15:40 +0000 (23:15 +0000)
        of the INTEGER class.

gdb/ChangeLog
gdb/amd64-tdep.c

index 9ff88461d242f87160de4a0eb344fe818130c901..fc634276c9ecb15dd66445e9f3952f2a141b54b4 100644 (file)
@@ -1,3 +1,8 @@
+2004-02-26  J. Brobecker  <brobecker@gnat.com>
+
+       * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
+       of the INTEGER class.
+
 2004-03-26  Jim Blandy  <jimb@redhat.com>
 
        * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
index 6d291632618c20ccf71617e293e19f1009d3d85c..1a66e45b4fe754d3475850061a615e0791afee2a 100644 (file)
@@ -371,8 +371,11 @@ amd64_classify (struct type *type, enum amd64_reg_class class[2])
   class[0] = class[1] = AMD64_NO_CLASS;
 
   /* Arguments of types (signed and unsigned) _Bool, char, short, int,
-     long, long long, and pointers are in the INTEGER class.  */
+     long, long long, and pointers are in the INTEGER class.  Similarly,
+     range types, used by languages such as Ada, are also in the INTEGER
+     class.  */
   if ((code == TYPE_CODE_INT || code == TYPE_CODE_ENUM
+       || code == TYPE_CODE_RANGE
        || code == TYPE_CODE_PTR || code == TYPE_CODE_REF)
       && (len == 1 || len == 2 || len == 4 || len == 8))
     class[0] = AMD64_INTEGER;
This page took 0.03085 seconds and 4 git commands to generate.