aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1994-11-22 06:29:12 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1994-11-22 06:29:12 -0500
commit9fe0563affeb7e0a4048cce3b694eb2f409953fe (patch)
tree8cced0a87e82eb92ddb042cd097cebabeb20b957
parent15c9248c3890d5736161907f3b7976c21352ae1a (diff)
downloadgcc-9fe0563affeb7e0a4048cce3b694eb2f409953fe.zip
gcc-9fe0563affeb7e0a4048cce3b694eb2f409953fe.tar.gz
gcc-9fe0563affeb7e0a4048cce3b694eb2f409953fe.tar.bz2
(layout_type): Use ptr_mode instead of equivalent call to
mode_for_size. From-SVN: r8549
-rw-r--r--gcc/stor-layout.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c
index 834e96d..1f7d5ee 100644
--- a/gcc/stor-layout.c
+++ b/gcc/stor-layout.c
@@ -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;