Re: compiler warnings on the buildfarm

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: compiler warnings on the buildfarm
Дата
Msg-id 20070712213806.GE22973@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: compiler warnings on the buildfarm  (Heikki Linnakangas <heikki@enterprisedb.com>)
Ответы Re: compiler warnings on the buildfarm
Список pgsql-hackers
Heikki Linnakangas wrote:
> Alvaro Herrera wrote:
>> Stefan showed me via Jabber this warning:
>> /tmp/ccM7MfqX.s: Assembler messages:
>> /tmp/ccM7MfqX.s:703: Warning: 00000003fffffffc shortened to 
>> 00000000fffffffc
>> /tmp/ccM7MfqX.s:738: Warning: 00000003fffffffc shortened to 
>> 00000000fffffffc
>> He says that this comes from trgm_op.c file.  I don't get the warning
>> myself obviously, so I started guessing.
>> 3FFFFFFFC = 1111111111111111111111111111111100
>>  FFFFFFFC =   11111111111111111111111111111100
>> So the upper 2 bits are being lost (the second number is 32 bits wide).
>> The only thing that I think is related is the usage of VARSIZE().  It
>> looks like 0x3FFFFFFF (actual constant in the toast code) is shift two
>> bits left.  I can see no such operation though.
>
> The shift is in postgres.h, SET_VARSIZE_4B. I have no idea where that 
> warning is coming from, though. What's the real source behind "ccM7MfqX.s"?

trgm_op.c

I'm not sure that the shift in SET_VARSIZE_4B is applicable here,
because it would have to be passed a len of FFFFFFFF.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: compiler warnings on the buildfarm
Следующее
От: Gregory Stark
Дата:
Сообщение: Re: compiler warnings on the buildfarm