Re: [PATCH] Use __builtin_is_constant_evaluated some more (PR libstdc++/86590)

2019-01-21 Thread Jonathan Wakely
On 19/01/19 23:56 +0100, Jakub Jelinek wrote: Hi! The following patch uses __builtin_is_constant_evaluated for __constant_string_p and __constant_char_array_p - in constexpr contexts, all the strings or arrays should be constant, and by doing it this way the compiler should be able to optimize b

[PATCH] Use __builtin_is_constant_evaluated some more (PR libstdc++/86590)

2019-01-19 Thread Jakub Jelinek
Hi! The following patch uses __builtin_is_constant_evaluated for __constant_string_p and __constant_char_array_p - in constexpr contexts, all the strings or arrays should be constant, and by doing it this way the compiler should be able to optimize better the callers of these inline functions alre