summaryrefslogtreecommitdiff
path: root/gcc/tree-gimple.c
diff options
context:
space:
mode:
authordnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>2004-12-14 13:41:52 +0000
committerdnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>2004-12-14 13:41:52 +0000
commitca8acac98d4d80fb740ca94d0a33d2e4c616a490 (patch)
treec9633bce8a58c594c3a8efbd016f9340bb1400dd /gcc/tree-gimple.c
parentefcbcf834ce7472f2bc23dc15375957b236c5e8f (diff)
downloadgcc-ca8acac98d4d80fb740ca94d0a33d2e4c616a490.tar.gz
* tree-gimple.c (get_base_address): Update documentation.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92134 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-gimple.c')
-rw-r--r--gcc/tree-gimple.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/gcc/tree-gimple.c b/gcc/tree-gimple.c
index 935e5ae21a2..61d2ec74ace 100644
--- a/gcc/tree-gimple.c
+++ b/gcc/tree-gimple.c
@@ -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)