]> granicus.if.org Git - postgresql/commit
Put in some more safeguards against executing a division-by-zero.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 11 Mar 2011 23:18:55 +0000 (18:18 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 11 Mar 2011 23:18:55 +0000 (18:18 -0500)
commit72330995a52fb7a3fbdc666aebc0402cdcbc9af8
tree0740200b06914a2170c0286d5075e52bd90aa781
parent8acdb8bf9cebc42cee5aa96a2d594756b44173c9
Put in some more safeguards against executing a division-by-zero.

Add dummy returns before every potential division-by-zero in int8.c,
because apparently further "improvements" in gcc's optimizer have
enabled it to break functions that weren't broken before.

Aurelien Jarno, via Martin Pitt
src/backend/utils/adt/int8.c