diff options
| author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-06-13 21:16:24 +0000 |
|---|---|---|
| committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-06-13 21:16:24 +0000 |
| commit | eac4d8fef80342e054bcd2fd64bf0a3e280abf1e (patch) | |
| tree | 02533991d692a1724bbaa9b2d434441fdd8c6e81 | |
| parent | 55a860e23bac521056fe1918d46cf13e2e2ad5ff (diff) | |
| download | ppe42-gcc-eac4d8fef80342e054bcd2fd64bf0a3e280abf1e.tar.gz ppe42-gcc-eac4d8fef80342e054bcd2fd64bf0a3e280abf1e.zip | |
* explow.c (set_mem_attributes): Do nothing for NULL type.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34523 138bc75d-0d04-0410-961f-82ee72b054a4
| -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 0dadd30727e..1262b5408ee 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 9f7eada363e..ff4f4c4229b 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. */ |

