OSDN Git Service

* tree-gimple.c (get_base_address): Update documentation.
authordnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 14 Dec 2004 13:41:52 +0000 (13:41 +0000)
committerdnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 14 Dec 2004 13:41:52 +0000 (13:41 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92134 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree-gimple.c

index de26071..ac417a9 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 935e5ae..61d2ec7 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)