Commit 28f155be by Giovanni Bajo Committed by Giovanni Bajo

re PR target/22577 (PA bootstrap fails)

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

From-SVN: r102314
parent 02ae7df9
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> 2005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* Makefile.in (C_TREE_H): Update dependencies. * Makefile.in (C_TREE_H): Update dependencies.
......
...@@ -1998,10 +1998,12 @@ reloc_needed (tree exp) ...@@ -1998,10 +1998,12 @@ reloc_needed (tree exp)
case CONSTRUCTOR: case CONSTRUCTOR:
{ {
register tree link; tree value;
for (link = CONSTRUCTOR_ELTS (exp); link; link = TREE_CHAIN (link)) unsigned HOST_WIDE_INT ix;
if (TREE_VALUE (link) != 0)
reloc |= reloc_needed (TREE_VALUE (link)); FOR_EACH_CONSTRUCTOR_VALUE (CONSTRUCTOR_ELTS (exp), ix, value)
if (value)
reloc |= reloc_needed (value);
} }
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment