* tree-gimple.c (get_base_address): Update documentation.
authorDiego Novillo <dnovillo@redhat.com>
Tue, 14 Dec 2004 13:41:52 +0000 (13:41 +0000)
committerDiego Novillo <dnovillo@gcc.gnu.org>
Tue, 14 Dec 2004 13:41:52 +0000 (08:41 -0500)
From-SVN: r92134

gcc/ChangeLog
gcc/tree-gimple.c

index de26071771aaa79a68bc6335a26e80b4b8600f0f..ac417a98f64f288c40bdf25a8fb9d24044bd76bf 100644 (file)
@@ -1,3 +1,7 @@
+2004-12-14  Diego Novillo  <dnovillo@redhat.com>
+
+       * tree-gimple.c (get_base_address): Update documentation.
+
 2004-12-13  Richard Henderson  <rth@redhat.com>
 
        PR middle-end/17930
index 935e5ae21a21de079c1f0ce9504346a5da726fdc..61d2ec74ace5cfc0d4745cd485ecee278ea08421 100644 (file)
@@ -419,7 +419,14 @@ get_call_expr_in (tree t)
   return NULL_TREE;
 }
 
-/* Given a memory reference expression T, return its base address.  */
+/* Given a memory reference expression T, return its base address.
+   The base address of a memory reference expression is the main
+   object being referenced.  For instance, the base address for
+   'array[i].fld[j]' is 'array'.  You can think of this as stripping
+   away the offset part from a memory address.
+
+   This function calls handled_component_p to strip away all the inner
+   parts of the memory reference until it reaches the base object.  */
 
 tree
 get_base_address (tree t)