aboutsummaryrefslogtreecommitdiff
path: root/gcc/alias.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@cygnus.com>2000-06-02 17:33:00 -0700
committerRichard Henderson <rth@gcc.gnu.org>2000-06-02 17:33:00 -0700
commit2e761e491932350e080453897ae449040a102897 (patch)
treebd27084a3b6068f80bd96842322bfbe8eb1a62db /gcc/alias.c
parent572240906d32202cb0c98e22445f251431d97811 (diff)
downloadgcc-2e761e491932350e080453897ae449040a102897.zip
gcc-2e761e491932350e080453897ae449040a102897.tar.gz
gcc-2e761e491932350e080453897ae449040a102897.tar.bz2
alias.c (lang_get_alias_set): Remove.
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. From-SVN: r34368
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 4541d51..d180418 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