OSDN Git Service

2013-01-02 Rainer Emrich <rainer@emrich-ebersheim.de>
authorktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 3 Jan 2013 16:47:37 +0000 (16:47 +0000)
committerktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 3 Jan 2013 16:47:37 +0000 (16:47 +0000)
        PR bootstrap/55707
        * graphite-dependences.c (hash_poly_ddr_p): Cast from pointer via
        intptr_t.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@194859 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/graphite-dependences.c

index e7c5b11..54a9141 100644 (file)
@@ -1,3 +1,9 @@
+2013-01-02  Rainer Emrich  <rainer@emrich-ebersheim.de>
+
+       PR bootstrap/55707
+       * graphite-dependences.c (hash_poly_ddr_p): Cast from pointer via
+       intptr_t.
+
 2013-01-02  Jason Merrill  <jason@redhat.com>
 
        PR c++/55804
index fb49f16..17b3ed2 100644 (file)
@@ -1,5 +1,5 @@
 /* Data dependence analysis for Graphite.
-   Copyright (C) 2009, 2010 Free Software Foundation, Inc.
+   Copyright (C) 2009, 2010, 2013 Free Software Foundation, Inc.
    Contributed by Sebastian Pop <sebastian.pop@amd.com> and
    Konrad Trifunovic <konrad.trifunovic@inria.fr>.
 
@@ -56,7 +56,7 @@ hash_poly_ddr_p (const void *pddr)
 {
   const struct poly_ddr *p = (const struct poly_ddr *) pddr;
 
-  return (hashval_t) ((long) PDDR_SOURCE (p) + (long) PDDR_SINK (p));
+  return (hashval_t) ((intptr_t) PDDR_SOURCE (p) + (intptr_t) PDDR_SINK (p));
 }
 
 /* Returns true when PDDR has no dependence.  */