summaryrefslogtreecommitdiff
path: root/gcc/alias.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2000-06-03 00:33:00 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2000-06-03 00:33:00 +0000
commitd43e810fddb28560857e63da3eb9fc1e945117b1 (patch)
treebd27084a3b6068f80bd96842322bfbe8eb1a62db /gcc/alias.c
parentd637c34ba35e4846e60062e0b9c0cf5fc652f040 (diff)
downloadgcc-d43e810fddb28560857e63da3eb9fc1e945117b1.tar.gz
gcc/
* alias.c (lang_get_alias_set): Remove. (get_alias_set): Call it directly, not indirectly. * c-common.c (lang_get_alias_set): Rename from c_get_alias_set. * c-common.h (c_get_alias_set): Don't declare. * c-decl.c (init_decl_processing): Don't set lang_get_alias_set. * expr.h (lang_get_alias_set): Declare as function, not pointer. gcc/ch/ * lang.c (lang_get_alias_set): New. gcc/cp/ * decl.c (init_decl_processing): Don't set lang_get_alias_set. gcc/f/ * com.c (lang_get_alias_set): New. gcc/java/ * lang.c (lang_get_alias_set): New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34368 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/alias.c')
-rw-r--r--gcc/alias.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/gcc/alias.c b/gcc/alias.c
index 4541d519858..d1804181bed 100644
--- a/gcc/alias.c
+++ b/gcc/alias.c
@@ -81,10 +81,6 @@ typedef struct alias_set_entry
splay_tree children;
} *alias_set_entry;
-/* The language-specific function for alias analysis. If NULL, the
- language does not do any special alias analysis. */
-HOST_WIDE_INT (*lang_get_alias_set) PARAMS ((tree));
-
static int rtx_equal_for_memref_p PARAMS ((rtx, rtx));
static rtx find_symbolic_term PARAMS ((rtx));
static rtx get_addr PARAMS ((rtx));
@@ -369,8 +365,7 @@ get_alias_set (t)
/* Now give the language a chance to do something but record what we
gave it this time. */
orig_t = t;
- if (lang_get_alias_set != 0
- && (set = (*lang_get_alias_set) (t)) != -1)
+ if ((set = lang_get_alias_set (t)) != -1)
return set;
/* If this is a reference, go inside it and use the underlying
@@ -395,8 +390,8 @@ get_alias_set (t)
}
/* Give the language another chance to do something special. */
- if (orig_t != t && lang_get_alias_set != 0
- && (set = (*lang_get_alias_set) (t)) != -1)
+ if (orig_t != t
+ && (set = lang_get_alias_set (t)) != -1)
return set;
/* Now all we care about is the type. */
@@ -410,8 +405,7 @@ get_alias_set (t)
return TYPE_ALIAS_SET (t);
/* See if the language has special handling for this type. */
- if (lang_get_alias_set != 0
- && (set = (*lang_get_alias_set) (t)) != -1)
+ if ((set = lang_get_alias_set (t)) != -1)
;
/* There are no objects of FUNCTION_TYPE, so there's no point in
using up an alias set for them. (There are, of course, pointers