Please sign in to comment.
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...
Showing with 10 additions and 7 deletions.