[PATCH] Finish up string builtin folding move

2014-12-03 Thread Richard Biener
While I was waiting for more testcases of broken mixed gimple/generic folding to come in I completely forgot about this. Thus the following patches finish moving strig function folding from builtins.c to gimple-fold.c. This is patch 1, moving fold_builtin_fprintf. Bootstrapped on x86_64-unknown

[PATCH] Finish up string builtin folding move

2014-12-03 Thread Richard Biener
This moves fold_builtin_strncat and fold_builtin_printf. Bootstrap and regtest pending on x86_64-unknown-linux-gnu. Richard. 2014-12-03 Richard Biener * builtins.c (target_newline): Export. (target_percent_s_newline): Likewise. (fold_builtin_1): Do not fold printf fu

[PATCH] Finish up string builtin folding move

2014-12-04 Thread Richard Biener
This is the last patch, moving stpcpy folding. There are still string function foldings left but those are exclusively GENERIC now with no chance of advertedly recursing from GIMPLE folding via GENERIC folding back to GIMPLE folding. I'll deal with those during next stage1. Bootstrapped on x86_

Re: [PATCH] Finish up string builtin folding move

2014-12-08 Thread Richard Biener
On Thu, 4 Dec 2014, Richard Biener wrote: > > This is the last patch, moving stpcpy folding. There are still > string function foldings left but those are exclusively GENERIC > now with no chance of advertedly recursing from GIMPLE folding > via GENERIC folding back to GIMPLE folding. I'll deal