Re: [PATCH] __builtin_*_overflow builtins (PR c/59708)

2014-11-12 Thread Jakub Jelinek
On Tue, Nov 11, 2014 at 03:12:46PM +0100, Richard Biener wrote: > This is mostly fine but the immediate use walking in gimple-fold. > Statements do not have their SSA operands updated during (re-)folding > so the DCE transform needs to be done elsewhere - in DCE for example, > or in SRA. Here is a

Re: [PATCH] __builtin_*_overflow builtins (PR c/59708)

2014-11-11 Thread Uros Bizjak
Hello! > This patch implements what I understood from Joseph's > https://gcc.gnu.org/ml/gcc/2013-10/msg00280.html > and also adds clang compatible builtins (which implement > small subset of the typegeneric ones). > > Besides the clang compatibility builtins, there are 3 new > type-generic builtin

[PATCH] __builtin_*_overflow builtins (PR c/59708)

2014-11-10 Thread Jakub Jelinek
Hi! This patch implements what I understood from Joseph's https://gcc.gnu.org/ml/gcc/2013-10/msg00280.html and also adds clang compatible builtins (which implement small subset of the typegeneric ones). Besides the clang compatibility builtins, there are 3 new type-generic builtins, __builtin_{ad