Re: LLVM miscompiles numeric.c access to short numeric var headers

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: LLVM miscompiles numeric.c access to short numeric var headers
Дата
Msg-id 2520.1447339140@sss.pgh.pa.us
обсуждение исходный текст
Ответ на LLVM miscompiles numeric.c access to short numeric var headers  (Greg Stark <stark@mit.edu>)
Ответы Re: LLVM miscompiles numeric.c access to short numeric var headers
Список pgsql-hackers
Greg Stark <stark@mit.edu> writes:
> In numeric.c we have the short numeric headers that have one uint16
> (in addition to the varlena header) followed by digits. When compiling
> with -O2 on x86-64 LLVM now seems to use a 4-byte access.

Either that's a reportable compiler bug, or someplace nearby we've
casted the pointer to something that would require a 4-byte struct.
I'm not sure which code you're looking at exactly, but maybe we're
using "union NumericChoice" prematurely?
        regards, tom lane



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

Предыдущее
От: Fabien COELHO
Дата:
Сообщение: Re: checkpointer continuous flushing
Следующее
От: Vik Fearing
Дата:
Сообщение: Re: psql: add \pset true/false