Re: longjmp clobber warnings are utterly broken in modern gcc

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: longjmp clobber warnings are utterly broken in modern gcc
Дата
Msg-id 16575.1422218410@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: longjmp clobber warnings are utterly broken in modern gcc  (Greg Stark <stark@mit.edu>)
Ответы Re: longjmp clobber warnings are utterly broken in modern gcc  (Andres Freund <andres@2ndquadrant.com>)
Список pgsql-hackers
Greg Stark <stark@mit.edu> writes:
> Some Google(tm)ing does turn up plenty of other people complaining about
> similar behaviour. This report seems to have the most enlightening response:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54561

Yeah, I saw that before too.  I got an interesting response from Jakub J.
just now as well:
https://bugzilla.redhat.com/show_bug.cgi?id=1185673

It sounds like the appearance of the warning is contingent on code
generation decisions, making it even less likely to ever be useful
to us in its current form.

> Perhaps Clang has a more useful warning?

Clang, at least the version on my Mac, doesn't warn either with the
settings we normally use, and it doesn't have -Wclobber at all.
I tried turning on -Weverything, and it still didn't complain.
(It did generate incorrect code though, so it's no better than gcc
in that respect.)
        regards, tom lane



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

Предыдущее
От: Maciek Sakrejda
Дата:
Сообщение: Re: Client deadlocks when connecting via ssl
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: longjmp clobber warnings are utterly broken in modern gcc