summaryrefslogtreecommitdiff
path: root/sv.h
diff options
context:
space:
mode:
authorReini Urban <rurban@x-ray.at>2009-12-06 14:31:23 +0000
committerRafael Garcia-Suarez <rgs@consttype.org>2009-12-06 22:18:23 +0100
commit2a12fdfc8231e1ef9e624e5f6dac620de236e884 (patch)
treed367057d7f82aac895d28c19b7874a20b58d1cf2 /sv.h
parent077f834239e40e0523e428946baaf95eaec43724 (diff)
downloadperl-2a12fdfc8231e1ef9e624e5f6dac620de236e884.tar.gz
Innocently looking union member swap
This helps statically initializing union members on gcc, otherwise we get "initializer element is not computable at load time". This speeds up initializing larger B::C/B::CC compiled programs with -O1/-O2 by 10%.
Diffstat (limited to 'sv.h')
-rw-r--r--sv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sv.h b/sv.h
index b452b36438..fc1b475a65 100644
--- a/sv.h
+++ b/sv.h
@@ -103,10 +103,10 @@ typedef struct hek HEK;
#define _SV_HEAD_UNION \
union { \
+ char* svu_pv; /* pointer to malloced string */ \
IV svu_iv; \
UV svu_uv; \
SV* svu_rv; /* pointer to another SV */ \
- char* svu_pv; /* pointer to malloced string */ \
SV** svu_array; \
HE** svu_hash; \
GP* svu_gp; \