Re: Is this code safe?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Is this code safe?
Дата
Msg-id 15948.1409205051@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Is this code safe?  (Pavan Deolasee <pavan.deolasee@gmail.com>)
Ответы Re: Is this code safe?  (Pavan Deolasee <pavan.deolasee@gmail.com>)
Список pgsql-hackers
Pavan Deolasee <pavan.deolasee@gmail.com> writes:
> Can some kind of compiler optimisation reorder things such that the "else
> if" expression is evaluated using the old, uninitialised value of optval?

Any such behavior is patently illegal per the C standard.  Not that that's
always stopped compiler writers; but I think you might be looking at a
compiler bug.  We'd need more context about the exact platform, compiler,
etc.
        regards, tom lane



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

Предыдущее
От: Pavan Deolasee
Дата:
Сообщение: Is this code safe?
Следующее
От: Fabien COELHO
Дата:
Сообщение: Re: postgresql latency & bgwriter not doing its job