(encode_type): Add cases for DImode, encoded as 'q' and 'Q' respectively.
authorRichard Stallman <rms@gnu.org>
Sun, 6 Jun 1993 22:55:40 +0000 (22:55 +0000)
committerRichard Stallman <rms@gnu.org>
Sun, 6 Jun 1993 22:55:40 +0000 (22:55 +0000)
From-SVN: r4643

gcc/objc/objc-act.c

index fbec4d313c19e2f0af0ab7b8c143eb95c8148530..a307b336be6ddba5f4f30860aa84238e6fe211ea 100644 (file)
@@ -6073,7 +6073,8 @@ encode_type (type, curtype, format)
 
   if (code == INTEGER_TYPE)
     {
-      if (TREE_INT_CST_LOW (TYPE_MIN_VALUE (type)) == 0)
+      if (TREE_INT_CST_LOW (TYPE_MIN_VALUE (type)) == 0
+         && TREE_INT_CST_HIGH (TYPE_MIN_VALUE (type)) == 0)
        {
          /* unsigned integer types */
 
@@ -6088,6 +6089,8 @@ encode_type (type, curtype, format)
              else
                obstack_1grow (&util_obstack, 'I'); /* 'I' */
            }
+         else if (TYPE_MODE (type) == DImode) /* 'Q' */
+           obstack_1grow (&util_obstack, 'Q');
        }
       else                     /* signed integer types */
        {
@@ -6102,6 +6105,8 @@ encode_type (type, curtype, format)
              else
                obstack_1grow (&util_obstack, 'i'); /* 'i' */
            }
+         else if (TYPE_MODE (type) == DImode) /* 'q' */
+           obstack_1grow (&util_obstack, 'q');
        }
     }
   else if (code == REAL_TYPE)