diff options
author | Reini Urban <rurban@x-ray.at> | 2009-12-06 14:31:23 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgs@consttype.org> | 2009-12-06 22:18:23 +0100 |
commit | 2a12fdfc8231e1ef9e624e5f6dac620de236e884 (patch) | |
tree | d367057d7f82aac895d28c19b7874a20b58d1cf2 /sv.h | |
parent | 077f834239e40e0523e428946baaf95eaec43724 (diff) | |
download | perl-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; \ |