re PR target/22577 (PA bootstrap fails)
authorGiovanni Bajo <giovannibajo@libero.it>
Sat, 23 Jul 2005 21:36:40 +0000 (23:36 +0200)
committerGiovanni Bajo <giovannibajo@gcc.gnu.org>
Sat, 23 Jul 2005 21:36:40 +0000 (21:36 +0000)
PR target/22577
* config/pa/pa.c (reloc_needed): Updated for VECs inside CONSTRUCTOR.

From-SVN: r102314

gcc/ChangeLog
gcc/config/pa/pa.c

index 36588ee8431d06364dc7359cab748d664c5c11be..56b1d9330237fb77a722759b3135705d8d67a71d 100644 (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.
index b354ab08f09ec749dfc13cebd2827529fd2c88bd..ffe6708d3191ce4aeb29fffe182d0aecb42566c4 100644 (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;