pgsql: Dodge a compiler bug affecting timetz_zone/timetz_izone.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Dodge a compiler bug affecting timetz_zone/timetz_izone.
Date: 2023-10-20 17:40:29
Message-ID: E1qttU4-001X1H-IW@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Dodge a compiler bug affecting timetz_zone/timetz_izone.

This avoids a compiler bug occurring in AIX's xlc, even in pretty
late-model revisions. Buildfarm testing has now confirmed that
only 64-bit xlc is affected. Although we are contemplating
dropping support for xlc in v17, it's still supported in the
back branches, so we need this fix.

Back-patch of code changes from HEAD commit 19fa97731.
(The test cases were already back-patched, in 4a427b82c et al.)

Discussion: https://postgr.es/m/CA+hUKGK=DOC+hE-62FKfZy=Ybt5uLkrg3zCZD-jFykM-iPn8yw@mail.gmail.com

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/d8c2877b9efafd37505f3cbb2cc2a7072d955667

Modified Files
--------------
src/backend/utils/adt/date.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2023-10-20 19:27:23 pgsql: meson: Make detection of python more robust
Previous Message Tom Lane 2023-10-20 17:40:28 pgsql: Dodge a compiler bug affecting timetz_zone/timetz_izone.