diff options
author | Joern Rennecke <amylaar@spamcop.net> | 2010-12-07 10:46:24 +0000 |
---|---|---|
committer | Joern Rennecke <amylaar@gcc.gnu.org> | 2010-12-07 10:46:24 +0000 |
commit | 4c4254403a6e72984c2afec386830c6415ea2a96 (patch) | |
tree | 3746e97510ead130689623c016df09133c9cbbc5 | |
parent | e9f7ad799c9f099ba1c44ab7948310aa246c221c (diff) | |
download | gcc-4c4254403a6e72984c2afec386830c6415ea2a96.zip gcc-4c4254403a6e72984c2afec386830c6415ea2a96.tar.gz gcc-4c4254403a6e72984c2afec386830c6415ea2a96.tar.bz2 |
re PR target/46737 (bfin-elf --enable-werror-always build fails for 64 bit host)
2010-12-07 Joern Rennecke <amylaar@spamcop.net>
Richard Guenther <rguenther@suse.de>
PR target/46737
* config/bfin/bfin.c (BB_AUX_INDEX): Cast to intptr_t.
(bfin_reorder_loops): Change type of index to intptr_t.
Co-Authored-By: Richard Guenther <rguenther@suse.de>
From-SVN: r167532
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/config/bfin/bfin.c | 4 |
2 files changed, 9 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 192d16f..0af8e97 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2010-12-07 Joern Rennecke <amylaar@spamcop.net> + Richard Guenther <rguenther@suse.de> + + PR target/46737 + * config/bfin/bfin.c (BB_AUX_INDEX): Cast to intptr_t. + (bfin_reorder_loops): Change type of index to intptr_t. + 2010-12-07 Richard Guenther <rguenther@suse.de> PR tree-optimization/46726 diff --git a/gcc/config/bfin/bfin.c b/gcc/config/bfin/bfin.c index 93edc88..a6f2a38 100644 --- a/gcc/config/bfin/bfin.c +++ b/gcc/config/bfin/bfin.c @@ -4662,7 +4662,7 @@ free_loops (loop_info loops) } } -#define BB_AUX_INDEX(BB) ((unsigned)(BB)->aux) +#define BB_AUX_INDEX(BB) ((intptr_t)(BB)->aux) /* The taken-branch edge from the loop end can actually go forward. Since the Blackfin's LSETUP instruction requires that the loop end be after the loop @@ -4679,7 +4679,7 @@ bfin_reorder_loops (loop_info loops, FILE *dump_file) for (loop = loops; loop; loop = loop->next) { - unsigned index; + intptr_t index; basic_block bb; edge e; edge_iterator ei; |