diff options
author | Giovanni Bajo <giovannibajo@libero.it> | 2005-07-23 23:36:40 +0200 |
---|---|---|
committer | Giovanni Bajo <giovannibajo@gcc.gnu.org> | 2005-07-23 21:36:40 +0000 |
commit | 28f155be0a63e8c65a10ba0074d12586d87e82bc (patch) | |
tree | 88f1c257dd195c0eb2241d702af9eab05b5a08d7 | |
parent | 02ae7df99a3fbd8793155eff871489269eb15569 (diff) | |
download | gcc-28f155be0a63e8c65a10ba0074d12586d87e82bc.zip gcc-28f155be0a63e8c65a10ba0074d12586d87e82bc.tar.gz gcc-28f155be0a63e8c65a10ba0074d12586d87e82bc.tar.bz2 |
re PR target/22577 (PA bootstrap fails)
PR target/22577
* config/pa/pa.c (reloc_needed): Updated for VECs inside CONSTRUCTOR.
From-SVN: r102314
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/pa/pa.c | 10 |
2 files changed, 11 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 36588ee..56b1d93 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c index b354ab0..ffe6708 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; |