[PATCH] Fold __builtin_constant_p immediately when in the first argument of __builtin_choose_expr (PR c/19449)

2013-04-02 Thread Jakub Jelinek
Hi! As discussed in the PR, when __builtin_constant_p is used in the first argument of __builtin_choose_expr, as we require a constant value immediately, we'd better force folding of __builtin_constant_p immediately, as if we don't, and it isn't 1 known immediately, we won't end up with a

Re: [PATCH] Fold __builtin_constant_p immediately when in the first argument of __builtin_choose_expr (PR c/19449)

2013-04-02 Thread Joseph S. Myers
On Tue, 2 Apr 2013, Jakub Jelinek wrote: The following patch folds it there immediately too. Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk? OK. BTW, in the PR I've also mentioned what has been reported to the Red Hat bugzilla about __builtin_constant_p in array bounds