Re: [RFC] Possible folding opportunities for string built-ins

2016-10-13 Thread Richard Biener
On Wed, Oct 12, 2016 at 3:48 PM, Martin Liška wrote: > Hi. > > As you probably mentioned, simple folding improvement has grown to multiple > patches > and multiple iterations. Apart from that, I also noticed that we do not do > the best > for couple of cases and I would like to have a feedback i

Re: [RFC] Possible folding opportunities for string built-ins

2016-10-12 Thread Jim Wilson
On 10/12/2016 08:55 AM, Joseph Myers wrote: On Wed, 12 Oct 2016, Martin Liška wrote: Last question is whether one can aggressively fold strcasecmp in a host compiler? Or are there any situations where results depends on locale? There are the usual issues with Turkish locales having the upperc

Re: [RFC] Possible folding opportunities for string built-ins

2016-10-12 Thread Joseph Myers
On Wed, 12 Oct 2016, Martin Liška wrote: > Last question is whether one can aggressively fold strcasecmp in a host > compiler? Or are there any situations where results depends on locale? There are the usual issues with Turkish locales having the uppercase version of 'i' being 'İ' and the lower

[RFC] Possible folding opportunities for string built-ins

2016-10-12 Thread Martin Liška
Hi. As you probably mentioned, simple folding improvement has grown to multiple patches and multiple iterations. Apart from that, I also noticed that we do not do the best for couple of cases and I would like to have a feedback if it worth to improve or not? $ cat /tmp/string-folding-missing.c