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

Jonathan Wakely jwakely@redhat.com
Mon Jan 21 11:15:00 GMT 2019


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 better the callers of these inline
>functions already shortly after early inlining rather than having to wait
>until fold builtins pass much later.
>
>Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?

OK, thanks.



More information about the Libstdc++ mailing list