On Mon, Jan 8, 2018 at 4:22 PM, Andres Freund <and...@anarazel.de> wrote: >> Isn't that an argument against inlining in general, rather than >> forcing inlining in particular? > > No. Normal 'inline' annotation doesn't do anything on -O0 / debug > builds. But always_inline does, even though the goal of the usage is > just to override the compiler's inlining heuristics.
Sorry, I found the way this was discussed confusing. Anyway, ISTM that it should be possible to make pg_attribute_always_inline have no effect in typical debug builds. Wouldn't that make everyone happy? -- Peter Geoghegan