Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use GCC's builtin offset_of as the first option
Other than C++ code, the GCC offsetof builtin was never getting used. The version that did get expanded could not be used for array declarations on GCC 4.5 and later because it wasn't considered a constant expression by those later GCC compilers. The first symptom was seen when building world with GCC 4.6, but the the offsetof expansion was finally identified as the cause of the problem while discussion PostgreSQL 9.1 build failures on DragonFly. Since DragonFly was the only platform exibiting the behavior, the problem was narrowed down to the offsetof macro or the compiler itself. Fixing the macro allowed the unpatched pgsql to compile. Thanks-to: Tom Lane
- Loading branch information
John Marino
authored and
François Tigeot
committed
Oct 7, 2012
1 parent
7b33812
commit 262e0d7
Showing
2 changed files
with
10 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters