(layout_type): Use ptr_mode instead of equivalent call to
authorRichard Kenner <kenner@gcc.gnu.org>
Tue, 22 Nov 1994 11:29:12 +0000 (06:29 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Tue, 22 Nov 1994 11:29:12 +0000 (06:29 -0500)
mode_for_size.

From-SVN: r8549

gcc/stor-layout.c

index 834e96d392bc9abe188757a3950e763f3ee76e95..1f7d5ee11a3255dc9553613f46e7d423a2d4eb2f 100644 (file)
@@ -706,8 +706,7 @@ layout_type (type)
 
     case OFFSET_TYPE:
       TYPE_SIZE (type) = size_int (POINTER_SIZE);
-      TYPE_MODE (type) = mode_for_size (POINTER_SIZE,
-                                       GET_MODE_CLASS (Pmode), 0);
+      TYPE_MODE (type) = ptr_mode;
       break;
 
     case FUNCTION_TYPE:
@@ -718,8 +717,7 @@ layout_type (type)
 
     case POINTER_TYPE:
     case REFERENCE_TYPE:
-      TYPE_MODE (type) = mode_for_size (POINTER_SIZE,
-                                       GET_MODE_CLASS (Pmode), 0);
+      TYPE_MODE (type) = ptr_mode;
       TYPE_SIZE (type) = size_int (POINTER_SIZE);
       TREE_UNSIGNED (type) = 1;
       TYPE_PRECISION (type) = POINTER_SIZE;