Re: What to do with inline warnings?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: What to do with inline warnings?
Дата
Msg-id 21212.1210783549@sss.pgh.pa.us
обсуждение исходный текст
Ответ на What to do with inline warnings?  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: What to do with inline warnings?  (Martijn van Oosterhout <kleptog@svana.org>)
Список pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> What do we do with warnings generated by -Winline?

I believe we just put that in to see how many places inlining was being
done or not.  If you want to compile with -Werror you'd better take it out.

> tqual.c: In function ‘HeapTupleSatisfiesVacuum’:
> tqual.c:88: error: inlining failed in call to ‘SetHintBits’: call is unlikely and code size would grow
> tqual.c:1057: error: called from here
> tqual.c:88: error: inlining failed in call to ‘SetHintBits’: call is unlikely and code size would grow
> tqual.c:1061: error: called from here

Hmm, it's a bit disturbing that the compiler is taking it upon itself to
decide that these calls are "unlikely".
        regards, tom lane


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Re: [COMMITTERS] pgsql: Improve logic for finding object files on OBJS lines in contrib
Следующее
От: Tom Lane
Дата:
Сообщение: Placement for a /port sort of include file?