summaryrefslogtreecommitdiffstats
path: root/gcc
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>2004-03-11 02:57:49 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>2004-03-11 02:57:49 +0000
commit5b4621d99bbad510a7623b96f00ce86006e773ab (patch)
tree49d6b9bef9874cd176eb27477b916fcf70acd7ce /gcc
parent04d9d4d738d56a6da6013d45f14ed58df17591d4 (diff)
downloadppe42-gcc-5b4621d99bbad510a7623b96f00ce86006e773ab.tar.gz
ppe42-gcc-5b4621d99bbad510a7623b96f00ce86006e773ab.zip
(build_pointer_type_for_mode): Fix comments and whitespace.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79293 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/tree.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index 9710ed25d6e..bc07652c0fa 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -3792,7 +3792,8 @@ build_pointer_type_for_mode (tree to_type, enum machine_mode mode)
{
tree t = TYPE_POINTER_TO (to_type);
- /* First, if we already have a type for pointers to TO_TYPE, use it. */
+ /* First, if we already have a type for pointers to TO_TYPE and it's
+ the proper mode, use it. */
if (t != 0 && mode == ptr_mode)
return t;
@@ -3801,13 +3802,13 @@ build_pointer_type_for_mode (tree to_type, enum machine_mode mode)
TREE_TYPE (t) = to_type;
TYPE_MODE (t) = mode;
- /* Record this type as the pointer to TO_TYPE. */
+ /* We can only record one type as "the" pointer to TO_TYPE. We choose to
+ record the pointer whose mode is ptr_mode. */
if (mode == ptr_mode)
- TYPE_POINTER_TO (to_type) = t;
+ TYPE_POINTER_TO (to_type) = t;
/* Lay out the type. This function has many callers that are concerned
- with expression-construction, and this simplifies them all.
- Also, it guarantees the TYPE_SIZE is in the same obstack as the type. */
+ with expression-construction, and this simplifies them all. */
layout_type (t);
return t;
OpenPOWER on IntegriCloud