* config/pa/pa.c (reloc_needed): Updated for VECs inside CONSTRUCTOR.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102314
138bc75d-0d04-0410-961f-
82ee72b054a4
+2005-07-23 Giovanni Bajo <giovannibajo@libero.it>
+
+ PR target/22577
+ * config/pa/pa.c (reloc_needed): Updated for VECs inside CONSTRUCTOR.
+
2005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* Makefile.in (C_TREE_H): Update dependencies.
case CONSTRUCTOR:
{
- register tree link;
- for (link = CONSTRUCTOR_ELTS (exp); link; link = TREE_CHAIN (link))
- if (TREE_VALUE (link) != 0)
- reloc |= reloc_needed (TREE_VALUE (link));
+ tree value;
+ unsigned HOST_WIDE_INT ix;
+
+ FOR_EACH_CONSTRUCTOR_VALUE (CONSTRUCTOR_ELTS (exp), ix, value)
+ if (value)
+ reloc |= reloc_needed (value);
}
break;