diff options
author | Andrew Pinski <pinskia@physics.uc.edu> | 2005-05-31 16:21:08 +0000 |
---|---|---|
committer | Andrew Pinski <pinskia@gcc.gnu.org> | 2005-05-31 09:21:08 -0700 |
commit | 9c6919616193cee3615c889709b29da38ef9e6a2 (patch) | |
tree | 43382494cf61f15dc1c5e052f9dc0eb15db73ed0 /gcc | |
parent | 8d932be3e1502485e9fb78695b7c2c4bdb7653cd (diff) | |
download | gcc-9c6919616193cee3615c889709b29da38ef9e6a2.zip gcc-9c6919616193cee3615c889709b29da38ef9e6a2.tar.gz gcc-9c6919616193cee3615c889709b29da38ef9e6a2.tar.bz2 |
tree-cfg.c (verify_expr): Add checking for COND_EXPR's conditional expression.
2005-05-31 Andrew Pinski <pinskia@physics.uc.edu>
* tree-cfg.c (verify_expr): Add checking for COND_EXPR's conditional
expression.
From-SVN: r100393
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree-cfg.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fd97205..c54190f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index 970b6b3..3193ed6 100644 --- a/gcc/tree-cfg.c +++ b/gcc/tree-cfg.c @@ -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: |