Re: quiet inline configure check misses a step for clang

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: quiet inline configure check misses a step for clang
Дата
Msg-id 20140501135700.GB14243@awork2.anarazel.de
обсуждение исходный текст
Ответ на quiet inline configure check misses a step for clang  (Andres Freund <andres@2ndquadrant.com>)
Ответы Re: quiet inline configure check misses a step for clang
Список pgsql-hackers
Hi,

On 2014-04-03 12:47:00 +0200, Andres Freund wrote:
> The current quiet inline test doesn't work for clang. As e.g. evidenced in
> http://buildfarm.postgresql.org/cgi-bin/show_stage_log.pl?nm=gull&dt=2014-04-03%2007%3A49%3A26&stg=configure
> configure thinks it's not quiet.
> 
> Which means that postgres compiled with a recent clang will be noticably
> slower than it needs to be.
> 
> The reason for that is that clang is smart and warns about static inline
> if they are declared locally in the .c file, but not if they are
> declared in a #included file.  That seems to be a reasonable
> behaviour...
> 
> I think that needs to be fixed. We either can make the configure test
> considerably more complex or simply drop the requirement for quiet
> inline.

I still think we really need to fix this. I have three possible
solutions:

a) Add an external file (in the source tree) that's included in the  configure test.
b) Have a compiler specific override and specify USE_INLINE there.
c) Drop the requirement of quiet inlines.

a) would probably the best, but I haven't yet found a non ugly solution :(

Greetings,

Andres Freund

-- Andres Freund                       http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training &
Services



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: improving \dt++ in psql
Следующее
От: Greg Stark
Дата:
Сообщение: Re: Successor of MD5 authentication, let's use SCRAM