(sparc_type_code): Support range types.
authorJim Wilson <wilson@gcc.gnu.org>
Sun, 8 Aug 1993 23:19:27 +0000 (16:19 -0700)
committerJim Wilson <wilson@gcc.gnu.org>
Sun, 8 Aug 1993 23:19:27 +0000 (16:19 -0700)
From-SVN: r5116

gcc/config/sparc/sparc.c

index 6f0f389290d643b61ef224134c7dd273a870610f..827762f988b7d6a15a54b9630968b19549896596 100644 (file)
@@ -2947,6 +2947,14 @@ sparc_type_code (type)
          return (qualifiers | 16);
 
        case INTEGER_TYPE:
+         /* If this is a range type, consider it to be the underlying
+            type.  */
+         if (TREE_TYPE (type) != 0)
+           {
+             type = TREE_TYPE (type);
+             break;
+           }
+
          /* Carefully distinguish all the standard types of C,
             without messing up if the language is not C.
             Note that we check only for the names that contain spaces;