diff mbox

RFA (bfin): fix PR46737

Message ID 20101206124701.u8u15lgta8c4k40g-nzlynne@webmail.spamcop.net
State New
Headers show

Commit Message

Joern Rennecke Dec. 6, 2010, 5:47 p.m. UTC
Quoting Richard Guenther <richard.guenther@gmail.com>:

> On Mon, Dec 6, 2010 at 5:31 PM, Joern Rennecke <amylaar@spamcop.net> wrote:
>> cross-built on x86_64-pc-linux-gnu .
>
> I'm sure that size_t is wrong on win64.  Please use intptr_t, it's
> always available on the host.

Also cross-tested on x86_64-pc-linux-gnu .
2010-12-06  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.

Comments

Richard Biener Dec. 7, 2010, 10:19 a.m. UTC | #1
On Mon, Dec 6, 2010 at 6:47 PM, Joern Rennecke <amylaar@spamcop.net> wrote:
> Quoting Richard Guenther <richard.guenther@gmail.com>:
>
>> On Mon, Dec 6, 2010 at 5:31 PM, Joern Rennecke <amylaar@spamcop.net>
>> wrote:
>>>
>>> cross-built on x86_64-pc-linux-gnu .
>>
>> I'm sure that size_t is wrong on win64.  Please use intptr_t, it's
>> always available on the host.
>
> Also cross-tested on x86_64-pc-linux-gnu .

Ok.

Thanks,
Richard.

> 2010-12-06  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.
>
> Index: gcc/gcc/config/bfin/bfin.c
> ===================================================================
> --- gcc/gcc/config/bfin/bfin.c  (revision 167494)
> +++ gcc/gcc/config/bfin/bfin.c  (working copy)
> @@ -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, FIL
>
>   for (loop = loops; loop; loop = loop->next)
>     {
> -      unsigned index;
> +      intptr_t index;
>       basic_block bb;
>       edge e;
>       edge_iterator ei;
>
>
diff mbox

Patch

Index: gcc/gcc/config/bfin/bfin.c
===================================================================
--- gcc/gcc/config/bfin/bfin.c	(revision 167494)
+++ gcc/gcc/config/bfin/bfin.c	(working copy)
@@ -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, FIL
 
   for (loop = loops; loop; loop = loop->next)
     {
-      unsigned index;
+      intptr_t index;
       basic_block bb;
       edge e;
       edge_iterator ei;