This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
set_mem_attributes
- To: gcc-patches at gcc dot gnu dot org
- Subject: set_mem_attributes
- From: Richard Henderson <rth at cygnus dot com>
- Date: Tue, 13 Jun 2000 14:17:56 -0700
Hopefully the comment is self-explanitory. Shows up
running the testsuite on ia64-linux.
r~
* explow.c (set_mem_attributes): Do nothing for NULL type.
Index: explow.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/explow.c,v
retrieving revision 1.50
diff -c -p -d -r1.50 explow.c
*** explow.c 2000/06/06 03:37:50 1.50
--- explow.c 2000/06/13 21:14:01
*************** set_mem_attributes (ref, t, objectp)
*** 659,665 ****
tree t;
int objectp;
{
! tree 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. */
--- 659,673 ----
tree t;
int objectp;
{
! 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. */