re PR target/22577 (PA bootstrap fails)

PR target/22577
	* config/pa/pa.c (reloc_needed): Updated for VECs inside CONSTRUCTOR.

From-SVN: r102314
This commit is contained in:
Giovanni Bajo 2005-07-23 23:36:40 +02:00 committed by Giovanni Bajo
parent 02ae7df99a
commit 28f155be0a
2 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,8 @@
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.

View File

@ -1998,10 +1998,12 @@ reloc_needed (tree exp)
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;