OSDN Git Service

2007-09-01 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 1 Sep 2007 09:05:05 +0000 (09:05 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 1 Sep 2007 09:05:05 +0000 (09:05 +0000)
* tree-cfg.c (verify_gimple_expr): Fix check for conversions
between integral types.  Also allow conversions between
pointer types.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128011 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree-cfg.c

index 8edd7f4..a90d832 100644 (file)
@@ -1,3 +1,9 @@
+2007-09-01  Richard Guenther  <rguenther@suse.de>
+
+       * tree-cfg.c (verify_gimple_expr): Fix check for conversions
+       between integral types.  Also allow conversions between
+       pointer types.
+
 2007-08-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
 
        * optabs.c (prepare_float_lib_cmp): Use
index 8e889fa..e70b440 100644 (file)
@@ -3574,8 +3574,10 @@ verify_gimple_expr (tree expr)
            return true;
          }
 
-       /* Allow conversions between integral types.  */
-        if (INTEGRAL_TYPE_P (type) == INTEGRAL_TYPE_P (TREE_TYPE (op)))
+       /* Allow conversions between integral types and between
+          pointer types.  */
+        if ((INTEGRAL_TYPE_P (type) && INTEGRAL_TYPE_P (TREE_TYPE (op)))
+           || (POINTER_TYPE_P (type) && POINTER_TYPE_P (TREE_TYPE (op))))
          return false;
 
        /* Allow conversions between integral types and pointers only if