summaryrefslogtreecommitdiff
path: root/gcc/ch
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/ch
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/ch')
-rw-r--r--gcc/ch/ChangeLog4
-rw-r--r--gcc/ch/lang.c13
2 files changed, 17 insertions, 0 deletions
diff --git a/gcc/ch/ChangeLog b/gcc/ch/ChangeLog
index 30c39a24058..3b346e1fccc 100644
--- a/gcc/ch/ChangeLog
+++ b/gcc/ch/ChangeLog
@@ -1,3 +1,7 @@
+2000-06-02 Richard Henderson <rth@cygnus.com>
+
+ * lang.c (lang_get_alias_set): New.
+
Sat May 27 11:24:26 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* lang.c (deep_const_expr): Use first_rtl_op.
diff --git a/gcc/ch/lang.c b/gcc/ch/lang.c
index 985eea7bffc..7b62c16b4f2 100644
--- a/gcc/ch/lang.c
+++ b/gcc/ch/lang.c
@@ -283,6 +283,19 @@ incomplete_type_error (value, type)
error ("internal error - use of undefined type");
}
+/* Return the typed-based alias set for T, which may be an expression
+ or a type. Return -1 if we don't do anything special. */
+
+HOST_WIDE_INT
+lang_get_alias_set (t)
+ tree t;
+{
+ /* ??? Need to figure out what the rules are. Certainly we'd need
+ to handle union-like things, and probably variant records.
+ Until then, turn off type-based aliasing completely. */
+ return 0;
+}
+
void
lang_init ()
{