aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2001-08-19 02:04:31 -0700
committerRichard Henderson <rth@gcc.gnu.org>2001-08-19 02:04:31 -0700
commitc49f511c7ee1814b7460dd88b6ddc5b1cb2dcb6c (patch)
treecd9edfb64832a5b890a6d315458341eb5f03e162 /gcc
parentc45632b732c887f2d180b60e1094feaa72164973 (diff)
downloadgcc-c49f511c7ee1814b7460dd88b6ddc5b1cb2dcb6c.zip
gcc-c49f511c7ee1814b7460dd88b6ddc5b1cb2dcb6c.tar.gz
gcc-c49f511c7ee1814b7460dd88b6ddc5b1cb2dcb6c.tar.bz2
* function.c (gen_mem_addressof): Don't call get_alias_set if no decl.
From-SVN: r45030
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/function.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7936dc2..0970d02 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,9 @@
2001-08-19 Richard Henderson <rth@redhat.com>
+ * function.c (gen_mem_addressof): Don't call get_alias_set if no decl.
+
+2001-08-19 Richard Henderson <rth@redhat.com>
+
* config/ia64/ia64.h (STRIP_NAME_ENCODING): Handle @ and *
in the same string.
(ASM_NAME_TO_STRING): Remove.
diff --git a/gcc/function.c b/gcc/function.c
index c2424fd..6c8a937 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -2863,7 +2863,7 @@ gen_mem_addressof (reg, decl)
REGNO (reg), decl);
/* Calculate this before we start messing with decl's RTL. */
- HOST_WIDE_INT set = get_alias_set (decl);
+ HOST_WIDE_INT set = decl ? get_alias_set (decl) : 0;
/* If the original REG was a user-variable, then so is the REG whose
address is being taken. Likewise for unchanging. */