summaryrefslogtreecommitdiff
path: root/src/backend/nodes
diff options
context:
space:
mode:
authorTom Lane2008-08-29 22:49:07 +0000
committerTom Lane2008-08-29 22:49:07 +0000
commit6253f9de6702fa73101997034b4fec038d547f6d (patch)
treed1c0f99906b1578c11d5352c1267b5b580019bb9 /src/backend/nodes
parent7ad60b49dc61d7757012f84e2fb88e4e6d30995d (diff)
In GCC-based builds, use a better newNode() macro that relies on GCC-specific
syntax to avoid a useless store into a global variable. Per experimentation, this works better than my original thought of trying to push the code into an out-of-line subroutine.
Diffstat (limited to 'src/backend/nodes')
-rw-r--r--src/backend/nodes/nodes.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/backend/nodes/nodes.c b/src/backend/nodes/nodes.c
index a2ced5f945f..30cbeb8e1d9 100644
--- a/src/backend/nodes/nodes.c
+++ b/src/backend/nodes/nodes.c
@@ -9,7 +9,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/nodes/nodes.c,v 1.28 2008/01/01 19:45:50 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/nodes/nodes.c,v 1.29 2008/08/29 22:49:07 tgl Exp $
*
* HISTORY
* Andrew Yu Oct 20, 1994 file creation
@@ -22,6 +22,10 @@
/*
* Support for newNode() macro
+ *
+ * In a GCC build there is no need for the global variable newNodeMacroHolder.
+ * However, we create it anyway, to support the case of a non-GCC-built
+ * loadable module being loaded into a GCC-built backend.
*/
Node *newNodeMacroHolder;