Re: new clang report

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: new clang report
Дата
Msg-id 8587.1304625094@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: new clang report  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> Btw., when you build a simple test program in the default mode, pow()
> indeed returns Inf on overflow.  There appear to be some code generation
> or optimization problems when it builds the postgres code, because the
> problem goes away with either -O0 or by inserting an elog or something
> like that after the pow() call.

Hmm.  Sounds to me like clang is trying to insert an inlined version of
pow() that gets this case wrong.  Any of -fmath-errno, -O0, or possibly
other things discourage it from doing that, and then the non-inline code
gets it right.  Bug for sure.
        regards, tom lane


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

Предыдущее
От: Peter Geoghegan
Дата:
Сообщение: Process wakeups when idle and power consumption
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Process wakeups when idle and power consumption