| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера