-
- Downloads
re PR c/54103 (ICE at gimplify.c:7790 on current trunk)
c: PR c/54103 * c-typeck.c (build_unary_op): Pass original argument of TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove any C_MAYBE_CONST_EXPR, if it has integer operands. (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR to c_objc_common_truthvalue_conversion, then remove any C_MAYBE_CONST_EXPR, if they have integer operands. Use c_objc_common_truthvalue_conversion not c_common_truthvalue_conversion. (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and call note_integer_operands for arguments with integer operands that are not integer constants. testsuite: * gcc.c-torture/compile/pr54103-1.c, gcc.c-torture/compile/pr54103-2.c, gcc.c-torture/compile/pr54103-3.c, gcc.c-torture/compile/pr54103-4.c, gcc.c-torture/compile/pr54103-5.c, gcc.c-torture/compile/pr54103-6.c: New tests. * gcc.dg/c90-const-expr-8.c: Update expected column number. From-SVN: r191304
Showing
- gcc/c/ChangeLog 16 additions, 0 deletionsgcc/c/ChangeLog
- gcc/c/c-typeck.c 32 additions, 9 deletionsgcc/c/c-typeck.c
- gcc/testsuite/ChangeLog 11 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/gcc.c-torture/compile/pr54103-1.c 5 additions, 0 deletionsgcc/testsuite/gcc.c-torture/compile/pr54103-1.c
- gcc/testsuite/gcc.c-torture/compile/pr54103-2.c 5 additions, 0 deletionsgcc/testsuite/gcc.c-torture/compile/pr54103-2.c
- gcc/testsuite/gcc.c-torture/compile/pr54103-3.c 5 additions, 0 deletionsgcc/testsuite/gcc.c-torture/compile/pr54103-3.c
- gcc/testsuite/gcc.c-torture/compile/pr54103-4.c 5 additions, 0 deletionsgcc/testsuite/gcc.c-torture/compile/pr54103-4.c
- gcc/testsuite/gcc.c-torture/compile/pr54103-5.c 5 additions, 0 deletionsgcc/testsuite/gcc.c-torture/compile/pr54103-5.c
- gcc/testsuite/gcc.c-torture/compile/pr54103-6.c 5 additions, 0 deletionsgcc/testsuite/gcc.c-torture/compile/pr54103-6.c
- gcc/testsuite/gcc.dg/c90-const-expr-8.c 1 addition, 1 deletiongcc/testsuite/gcc.dg/c90-const-expr-8.c
Loading
Please register or sign in to comment