From: Giovanni Bajo Date: Sat, 23 Jul 2005 21:36:40 +0000 (+0200) Subject: re PR target/22577 (PA bootstrap fails) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=28f155be0a63e8c65a10ba0074d12586d87e82bc;p=gcc.git re PR target/22577 (PA bootstrap fails) PR target/22577 * config/pa/pa.c (reloc_needed): Updated for VECs inside CONSTRUCTOR. From-SVN: r102314 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 36588ee8431..56b1d933023 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-07-23 Giovanni Bajo + + PR target/22577 + * config/pa/pa.c (reloc_needed): Updated for VECs inside CONSTRUCTOR. + 2005-07-23 Kaveh R. Ghazi * Makefile.in (C_TREE_H): Update dependencies. diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c index b354ab08f09..ffe6708d319 100644 --- a/gcc/config/pa/pa.c +++ b/gcc/config/pa/pa.c @@ -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;