OSDN Git Service

2005-05-31 Andrew Pinski <pinskia@physics.uc.edu>
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 31 May 2005 16:21:08 +0000 (16:21 +0000)
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 31 May 2005 16:21:08 +0000 (16:21 +0000)
        * tree-cfg.c (verify_expr): Add checking for COND_EXPR's conditional
        expression.

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

gcc/ChangeLog
gcc/tree-cfg.c

index fd97205..c54190f 100644 (file)
@@ -1,3 +1,8 @@
+2005-05-31  Andrew Pinski  <pinskia@physics.uc.edu>
+
+       * tree-cfg.c (verify_expr): Add checking for COND_EXPR's conditional
+       expression.
+
 2005-05-31  Richard Sandiford  <rsandifo@redhat.com>
 
        * doc/tm.texi (TARGET_GET_PCH_VALIDITY, TARGET_PCH_VALID_P): Tweak
index 970b6b3..3193ed6 100644 (file)
@@ -3178,6 +3178,11 @@ verify_expr (tree *tp, int *walk_subtrees, void *data ATTRIBUTE_UNUSED)
          error ("non-boolean used in condition");
          return x;
        }
+      if (!is_gimple_condexpr (x))
+        {
+         error ("Invalid conditional operand");
+         return x;
+       }
       break;
 
     case NOP_EXPR: