pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Blind try to fix portability issue in commit 8f93bd851 et al. 4+ messages / 1 participants [nested] [flat]
* pgsql: Blind try to fix portability issue in commit 8f93bd851 et al. @ 2017-02-09 20:50 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 4+ messages in thread From: Tom Lane @ 2017-02-09 20:50 UTC (permalink / raw) To: pgsql-committers Blind try to fix portability issue in commit 8f93bd851 et al. The S/390 members of the buildfarm are showing failures indicating that they're having trouble with the rint() calls I added yesterday. There's no good reason for that, and I wonder if it is a compiler bug similar to the one we worked around in d9476b838. Try to fix it using the same method as before, namely to store the result of rint() back into a "double" variable rather than immediately converting to int64. (This isn't entirely waving a dead chicken, since on machines with wider-than-double float registers, the extra store forces a width conversion. I don't know if S/390 is like that, but it seems worth trying.) In passing, merge duplicate ereport() calls in float8_timestamptz(). Per buildfarm. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/5d2adf0f81a2e4ca4f101b19b1efea147b462301 Modified Files -------------- src/backend/utils/adt/timestamp.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Blind try to fix portability issue in commit 8f93bd851 et al. @ 2017-02-09 20:50 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 4+ messages in thread From: Tom Lane @ 2017-02-09 20:50 UTC (permalink / raw) To: pgsql-committers Blind try to fix portability issue in commit 8f93bd851 et al. The S/390 members of the buildfarm are showing failures indicating that they're having trouble with the rint() calls I added yesterday. There's no good reason for that, and I wonder if it is a compiler bug similar to the one we worked around in d9476b838. Try to fix it using the same method as before, namely to store the result of rint() back into a "double" variable rather than immediately converting to int64. (This isn't entirely waving a dead chicken, since on machines with wider-than-double float registers, the extra store forces a width conversion. I don't know if S/390 is like that, but it seems worth trying.) In passing, merge duplicate ereport() calls in float8_timestamptz(). Per buildfarm. Branch ------ REL9_5_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/cf73c6bfc7148077cda6ff68dae551c0a2674182 Modified Files -------------- src/backend/utils/adt/timestamp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Blind try to fix portability issue in commit 8f93bd851 et al. @ 2017-02-09 20:50 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 4+ messages in thread From: Tom Lane @ 2017-02-09 20:50 UTC (permalink / raw) To: pgsql-committers Blind try to fix portability issue in commit 8f93bd851 et al. The S/390 members of the buildfarm are showing failures indicating that they're having trouble with the rint() calls I added yesterday. There's no good reason for that, and I wonder if it is a compiler bug similar to the one we worked around in d9476b838. Try to fix it using the same method as before, namely to store the result of rint() back into a "double" variable rather than immediately converting to int64. (This isn't entirely waving a dead chicken, since on machines with wider-than-double float registers, the extra store forces a width conversion. I don't know if S/390 is like that, but it seems worth trying.) In passing, merge duplicate ereport() calls in float8_timestamptz(). Per buildfarm. Branch ------ REL9_4_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/86ef376bbe1b9568fa71e76ecfd3091d522368bb Modified Files -------------- src/backend/utils/adt/timestamp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Blind try to fix portability issue in commit 8f93bd851 et al. @ 2017-02-09 20:50 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 4+ messages in thread From: Tom Lane @ 2017-02-09 20:50 UTC (permalink / raw) To: pgsql-committers Blind try to fix portability issue in commit 8f93bd851 et al. The S/390 members of the buildfarm are showing failures indicating that they're having trouble with the rint() calls I added yesterday. There's no good reason for that, and I wonder if it is a compiler bug similar to the one we worked around in d9476b838. Try to fix it using the same method as before, namely to store the result of rint() back into a "double" variable rather than immediately converting to int64. (This isn't entirely waving a dead chicken, since on machines with wider-than-double float registers, the extra store forces a width conversion. I don't know if S/390 is like that, but it seems worth trying.) In passing, merge duplicate ereport() calls in float8_timestamptz(). Per buildfarm. Branch ------ REL9_6_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/fc96a5fbc69918ad23f5c5afbe8134aa53d397ef Modified Files -------------- src/backend/utils/adt/timestamp.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2017-02-09 20:50 UTC | newest] Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2017-02-09 20:50 pgsql: Blind try to fix portability issue in commit 8f93bd851 et al. Tom Lane <tgl@sss.pgh.pa.us> 2017-02-09 20:50 pgsql: Blind try to fix portability issue in commit 8f93bd851 et al. Tom Lane <tgl@sss.pgh.pa.us> 2017-02-09 20:50 pgsql: Blind try to fix portability issue in commit 8f93bd851 et al. Tom Lane <tgl@sss.pgh.pa.us> 2017-02-09 20:50 pgsql: Blind try to fix portability issue in commit 8f93bd851 et al. Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox