]> gcc.gnu.org Git - gcc.git/commit
fold-const.c (fold_binary_op_with_conditional_arg): Improve handling of cases where...
authorRoger Sayle <roger@eyesopen.com>
Wed, 30 Oct 2002 23:07:48 +0000 (23:07 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Wed, 30 Oct 2002 23:07:48 +0000 (23:07 +0000)
commit9402f6fb7450c77691ef079abae90b2130a65117
treed3d4b7bca2e8518146b0b70b1283cd27604f517d
parent9b5b7e3a8fe143a9b1be4cfdb17fccc1e5ae58ff
fold-const.c (fold_binary_op_with_conditional_arg): Improve handling of cases where one or both branches of the conditional have...

* fold-const.c (fold_binary_op_with_conditional_arg):  Improve
handling of cases where one or both branches of the conditional
have void type, i.e. throw an exception or don't return.
(fold): Only apply (and undo) type conversion to the non-void
branches of a COND_EXPR.

* f/com.c (ffecom_subscript_check_): Cast the failure branch
of the bounds check COND_EXPR to void, to indicate noreturn.
(ffe_truthvalue_conversion): Only apply truth value conversion
to the non-void branches of a COND_EXPR.

From-SVN: r58661
gcc/ChangeLog
gcc/f/ChangeLog
gcc/f/com.c
gcc/fold-const.c
This page took 0.063823 seconds and 5 git commands to generate.