This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi, According to analysis given by https://gcc.gnu.org/ml/gcc/2016-10/msg00228.html, calls to pedantic_non_lvalue_loc and code handling lvalue in fold_cond_expr_with_comparison are useless now. Given this is complicated legacy code, it may be better to change code step by step, rather than doing this cleanup together with moving simplification from fold_cond_expr_with_comparison to match.pd. BTW, after last cleanup of pedantic_lvalues, function pedantic_non_lvalue_loc now has nothing to do with lvalue. It could be further cleaned up, or at least renamed into something else. This patch doesn't do that because that depends on the answer to the question of the aforementioned message. Bootstrap and test on x86_64 and AArch64. Any comments? Thanks, bin 2016-10-27 Bin Cheng <bin.cheng@arm.com> * fold-const.c (fold_cond_expr_with_comparison): Remove call to pedantic_non_lvalue_loc. Remove useless code for lvalue where cond_expr can't be a lvalue.
Attachment:
clean-pedantic-call-for-fold_cond_expr-20161101.txt
Description: clean-pedantic-call-for-fold_cond_expr-20161101.txt
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |