Re: [PATCH] Fix get_maxval_strlen for COND_EXPR after changing them to ternary

2012-05-16 Thread Jakub Jelinek
On Wed, May 16, 2012 at 12:34:18PM -0700, Andrew Pinski wrote: > When COND_EXPR was changed from GIMPLE_SINGLE_RHS to > GIMPLE_TERNARY_RHS, get_maxval_strlen was not updated for that > changed. With a patch which has a late PHIOPT produce COND_EXPR, I > saw a couple of regressions (pr23484-chk.c a

[PATCH] Fix get_maxval_strlen for COND_EXPR after changing them to ternary

2012-05-16 Thread Andrew Pinski
When COND_EXPR was changed from GIMPLE_SINGLE_RHS to GIMPLE_TERNARY_RHS, get_maxval_strlen was not updated for that changed. With a patch which has a late PHIOPT produce COND_EXPR, I saw a couple of regressions (pr23484-chk.c and strncpy-chk.c). This patch fixes get_maxval_strlen for that change