Actually, the reason Clang 6 doesn't copy the string onto the stack is
that it assumes -fmerge-all-constants by default. In trunk Clang that
has been turned off because it's not strictly speaking
standards-conforming (the constant is supposed to have a unique
address). This doesn't matter for Chromium though, as we build with
-fmerge-all-constants explicitly turned on.
> Before going in blindly and adding static to SQL query strings inside
> functions, I'd like to know if there's any benefit to leaving out the
> "static", so I don't regress something out of ignorance.
There's no benefit that I know of, except it being shorter without "static" :-)
Cheers,
Hans