Dodge a compiler bug affecting timetz_zone/timetz_izone.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 20 Oct 2023 17:40:15 +0000 (13:40 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 20 Oct 2023 17:40:15 +0000 (13:40 -0400)
commite98f47d570a22e7aaaf71b79d6ce6852701bbd8d
treea1ca97ed09b2b4d3155bca6ed1f2943435770bd0
parent32d31182fe6508d05cbcaada4f09db5c5c4db579
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: http://postgr.es/m/CA+hUKGK=DOC+hE-62FKfZy=Ybt5uLkrg3zCZD-jFykM-iPn8yw@mail.gmail.com
src/backend/utils/adt/date.c