diff options
| -rw-r--r-- | gcc/ChangeLog | 4 | ||||
| -rw-r--r-- | gcc/explow.c | 10 |
2 files changed, 13 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0dadd30..1262b54 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2000-06-13 Richard Henderson <rth@cygnus.com> + + * explow.c (set_mem_attributes): Do nothing for NULL type. + Tue Jun 13 14:45:10 2000 Jeffrey A Law (law@cygnus.com) * config/m68k/openbsd.h (ASM_SPEC): pass down options to assembler diff --git a/gcc/explow.c b/gcc/explow.c index 9f7eada..ff4f4c4 100644 --- a/gcc/explow.c +++ b/gcc/explow.c @@ -659,7 +659,15 @@ set_mem_attributes (ref, t, objectp) tree t; int objectp; { - tree type = TYPE_P (t) ? t : TREE_TYPE (t); + tree type; + + /* It can happen that type_for_mode was given a mode for which there + is no language-level type. In which case it returns NULL, which + we can see here. */ + if (t == NULL_TREE) + return; + + type = TYPE_P (t) ? t : TREE_TYPE (t); /* Get the alias set from the expression or type (perhaps using a front-end routine) and then copy bits from the type. */ |
