Commit Graph

528 Commits

Author SHA1 Message Date
Alvaro Herrera 105f3ef492 Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2 branches.
With this optimization flag enabled, recent versions of gcc can generate
incorrect code that assumes variable-length arrays (such as oidvector)
are actually fixed-length because they're embedded in some larger struct.
The known instance of this problem was fixed in 9.2 and up by commit
8137f2c323 and followon work, which hides
actually-variable-length catalog fields from the compiler altogether.
And we plan to gradually convert variable-length fields to official
"flexible array member" notation over time, which should prevent this type
of bug from reappearing as gcc gets smarter.  We're not going to try to
back-port those changes into older branches, though, so apply this
band-aid instead.

Andres Freund

This is a backpatch of commit 649839dd9 to unsupported branches
REL8_2_STABLE and REL8_3_STABLE, so that they work with newer toolsets.
2015-01-20 12:26:20 -03:00
Andrew Dunstan 91a1e14899 Disable excessive FP optimization by recent versions of gcc.
Suggested solution from Tom Lane. Problem discovered, probably not
for the first time, while testing the mingw-w64 32 bit compiler.

Backpatched to all live branches.
2011-12-14 17:05:12 -05:00
Tom Lane fa1369a6b9 Stamp 8.2.23.
Hail and farewell, 8.2.
2011-12-01 16:59:19 -05:00
Tom Lane d08aa1937f Stamp 8.2.22. 2011-09-22 18:09:27 -04:00
Marc G. Fournier 1e289824b6 Tag 8.2.21. 2011-04-15 00:19:01 -03:00
Marc G. Fournier f62f223b8e Tag 8.2.20 2011-01-27 22:25:42 -04:00
Tom Lane 6a61d58ca8 Fix up getopt() reset management so it works on recent mingw.
The mingw people don't appear to care about compatibility with non-GNU
versions of getopt, so force use of our own copy of getopt on Windows.
Also, ensure that we make use of optreset when using our own copy.

Per report from Andrew Dunstan.  Back-patch to all versions supported
on Windows.
2010-12-15 23:51:07 -05:00
Marc G. Fournier 4d836f34b5 Tag 8.2.19. 2010-12-13 23:03:33 -04:00
Marc G. Fournier 61318f38c0 Tag 8.2.18 2010-10-01 10:37:09 -03:00
Marc G. Fournier 868de682e2 tag 8.2.17 2010-05-14 03:32:06 +00:00
Marc G. Fournier 9fbbb5e21e tag 8.2.16 2010-03-12 03:44:14 +00:00
Marc G. Fournier 0cea93188e tag 8.2.15 2009-12-10 03:09:47 +00:00
Marc G. Fournier 9b0a50e61c Tag 8.2.14 2009-09-04 01:16:34 +00:00
Marc G. Fournier 7e23229904 tag 8.2.13 2009-03-13 02:16:43 +00:00
Marc G. Fournier fbb70ccd60 tag 8.2.12 2009-01-30 03:13:35 +00:00
Tom Lane 7673ed269a Remove references to pgsql-ports and pgsql-patches mailing lists from
various documentation, since those lists are now dead/deprecated.
Point to pgsql-bugs and/or pgsql-hackers as appropriate.
2009-01-06 17:27:39 +00:00
Marc G. Fournier 400e915c62 tag 8.2.11 2008-10-31 02:44:09 +00:00
Peter Eisentraut bbe385e82f Missing space in error message 2008-10-30 12:25:32 +00:00
Marc G. Fournier 6967e894fd tag for 8.2.10 2008-09-19 03:12:08 +00:00
Marc G. Fournier da3a1b796e tag 8.2.9 2008-06-09 00:34:32 +00:00
Marc G. Fournier b33c19746c tag 8.2.8 2008-06-06 04:03:08 +00:00
Marc G. Fournier 88dba25017 tag configure for 8.2.7 prior to tag 2008-03-14 03:30:55 +00:00
Tom Lane 3a5288960d Use -fwrapv in CFLAGS if we are using a version of gcc that accepts this flag.
This prevents compiler optimizations that assume overflow won't occur, which
breaks numerous overflow tests that we need to have working.  It is known
that gcc 4.3 causes problems and possible that 4.1 does.  Per my proposal
of some time ago and a recent report from Kris Jurka.

Backpatch as far as 8.0, which is as far as the patch conveniently goes.
7.x was pretty short of overflow tests anyway, so it may not matter there,
even assuming that anyone cares whether 7.x builds on recent gcc.
2008-03-10 21:50:31 +00:00
Tom Lane 7988f948c9 Use our own getopt() and getopt_long() on Solaris, because that platform's
versions don't handle long options the way we want.  Per Zdenek Kotala.
2008-02-24 05:22:11 +00:00
Tom Lane e29972bb56 Stamp release 8.2.6.
Security: CVE-2007-4769, CVE-2007-4772, CVE-2007-6067, CVE-2007-6600, CVE-2007-6601
2008-01-03 21:40:50 +00:00
Bruce Momjian e09aba574f Provide a more helpful error message when there is an autoconf version
mismatch;  backpatch.
2007-12-31 17:28:31 +00:00
Bruce Momjian 7382799cd8 Provide a more helpful error message when there is an autoconf version
mismatch.  Batckpatch to 8.2.X.
2007-12-31 16:50:05 +00:00
Magnus Hagander 061f80e371 Back-patch mingw configure-check for gettimeofday so that 8.2 can
be built with current versions of mingw.
2007-11-29 16:44:26 +00:00
Peter Eisentraut 4a9ab9b935 Require a specific Autoconf version, instead of a lower bound only. 2007-11-26 12:29:10 +00:00
Marc G. Fournier 67bc5b0ca3 update configure for 8.2.5 ... 2007-09-14 20:18:26 +00:00
Magnus Hagander c7cca1c8f7 Fix freenig of names in Kerberos when using MIT - need to use the
free function provided in the Kerberos library.
This fixes a very hard to track down heap corruption on windows
when using debug runtimes.
2007-07-12 14:13:06 +00:00
Tom Lane f6eafabc6e Fix computation of PG_VERSION_NUM by configure: remove unnecessary and
unportable backslashes in awk script (per Patrick Welche), and add
brackets to prevent autoconf from mangling sed's regexp (the sed call
here never did what was expected).
2007-06-29 16:18:52 +00:00
PostgreSQL Daemon e05d9875b2 Update configure.in version number
Security: tag for release
2007-04-20 03:20:42 +00:00
Bruce Momjian 98e08d1aa0 Stamp releases 8.2.3, 8.1.8, 8.0.12. No release notes yet. 2007-02-07 03:48:58 +00:00
Bruce Momjian 554d3a683c Fix configure detection code when --with-ldap and --enable-thread-safety
are both used.

Backpatch to 8.2.X.

Albe Laurenz
2007-02-03 02:47:35 +00:00
Tom Lane d06a16c589 Stamp release 8.2.2.
Security: CVE-2007-0555, CVE-2007-0556
2007-02-02 00:14:22 +00:00
PostgreSQL Daemon 78c795d4e5 tag configure 2007-01-06 05:02:26 +00:00
Tom Lane 8867ffc519 Make --with-ldap build on Unixware, per Olivier Prenant. 2006-12-14 21:50:07 +00:00
PostgreSQL Daemon 2f52d7260c v8.2.0 is now released ... 2006-12-02 08:36:41 +00:00
Tom Lane 59cf88da91 Ignore libedit/libreadline while probing for strlcpy and some other
standard functions.  Per report from Stefan Kaltenbrunner.
2006-11-29 20:12:31 +00:00
PostgreSQL Daemon c11b5228cf update for rc1 2006-11-25 03:34:13 +00:00
PostgreSQL Daemon 9b3aee524f Tag as Beta3 ... two outstanding *known* bugs before RC1 ... 2006-11-07 17:59:05 +00:00
Tom Lane 02f37bd8c4 Revert to the pre-8.2 method of probing for libm, that is, always
include it if it links properly.  It seems too risky to assume that
standard functions like pow() are not special-cased by the compiler.
Per report from Andreas Lange that build fails on Solaris cc compiler
with -fast.  Even though we don't consider that a supported option,
I'm worried that similar issues will arise with other compilers.
2006-11-06 03:44:38 +00:00
Peter Eisentraut 0b9f93e6b0 Code the unknown options check without using m4 diversions. Otherwise this
code relies on the checking macro actually being called at the end, or the
automatic undiversion will produce garbage.  These sort of implicit
side-effects undermine the modularity of the macros and happen to break the
ODBC driver which makes use of them.

Also put the warnings at the very end of configure, so there is an even
better chance of seeing them.
2006-10-30 22:15:04 +00:00
Tom Lane 66f5264a2e Stamp 8.2beta2. 2006-10-23 22:50:20 +00:00
Peter Eisentraut 6ab23dabf5 Punt when trying to build with threaded Python on FreeBSD.
Also cut back on excessive use of *** to decorate configure error messages.
If it's an error message, you are sure to see it without any decoration.
2006-10-16 17:24:54 +00:00
Tom Lane 71a6f8b85b On platforms that have getrlimit(RLIMIT_STACK), use it to ensure that
max_stack_depth is not set to an unsafe value.

This commit also provides configure-time checking for <sys/resource.h>,
and cleans up some perhaps-unportable code associated with use of that
include file and getrlimit().
2006-10-07 19:25:29 +00:00
Tom Lane 9e6c3582dd Second try at fixing libedit configuration for Bob Friesenhahn.
Buildfarm results from 'gazelle' show that there are indeed libedit
versions for which history.h is a needed header, even though it's
apparently been dropped entirely in other versions.  Grumble.
2006-10-05 00:07:45 +00:00
Tom Lane bdef2bf296 Adjust configure's handling of libedit to not look for a history.h file.
Per Bob Friesenhahn's report, this file is not supplied by some versions
of libedit, and even when it is supplied it seems to be just a link to
readline.h, so we don't need to include it anyway.
Also, ensure that we won't try to use a too-old version of Bison.
The previous coding would bleat but then use it anyway; better to invoke
the 'missing' script if any grammar files need to be rebuilt.
2006-10-04 22:31:14 +00:00
Tom Lane 6edd2b4a91 Switch over to using our own qsort() all the time, as has been proposed
repeatedly.  Now that we don't have to worry about memory leaks from
glibc's qsort, we can safely put CHECK_FOR_INTERRUPTS into the tuplesort
comparators, as was requested a couple months ago.  Also, get rid of
non-reentrancy and an extra level of function call in tuplesort.c by
providing a variant qsort_arg() API that passes an extra void * argument
through to the comparison routine.  (We might want to use that in other
places too, I didn't look yet.)
2006-10-03 22:18:23 +00:00