summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2001-08-19 09:04:31 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2001-08-19 09:04:31 +0000
commit44090b7e0fac174cedbd8bbc57894bb9823ed1c2 (patch)
treecd9edfb64832a5b890a6d315458341eb5f03e162
parente4adabd269cb2997e1e31520e7c80f5226c3cc3c (diff)
downloadppe42-gcc-44090b7e0fac174cedbd8bbc57894bb9823ed1c2.tar.gz
ppe42-gcc-44090b7e0fac174cedbd8bbc57894bb9823ed1c2.zip
* function.c (gen_mem_addressof): Don't call get_alias_set if no decl.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45030 138bc75d-0d04-0410-961f-82ee72b054a4
-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 7936dc28976..0970d0202e0 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 c2424fd0732..6c8a9374d51 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. */
OpenPOWER on IntegriCloud