aboutsummaryrefslogtreecommitdiff
path: root/libtcc.c
diff options
context:
space:
mode:
authorseyko <seyko2@gmail.com>2015-04-10 23:44:10 +0300
committerseyko <seyko2@gmail.com>2015-04-10 23:44:10 +0300
commit5c9dde7255b2ecc38df8b31dc0bef16ea71f0757 (patch)
tree1430499c1ce2a69d6d265bada231cc6dbefb5396 /libtcc.c
parent92efee6e52e6ae1a8cad8fa89da2db11b796295f (diff)
downloadtinycc-5c9dde7255b2ecc38df8b31dc0bef16ea71f0757.tar.gz
tinycc-5c9dde7255b2ecc38df8b31dc0bef16ea71f0757.tar.bz2
option to use an old algorithm of the array in struct initialization
This is for a case when no '{' is used in the initialization code. An option name is -fold-struct-init-code. A linux 2.4.26 can't find initrd when compiled with a new algorithm.
Diffstat (limited to 'libtcc.c')
-rw-r--r--libtcc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libtcc.c b/libtcc.c
index e25381e..ade4472 100644
--- a/libtcc.c
+++ b/libtcc.c
@@ -1478,6 +1478,7 @@ static const FlagDef flag_defs[] = {
{ offsetof(TCCState, nocommon), FD_INVERT, "common" },
{ offsetof(TCCState, leading_underscore), 0, "leading-underscore" },
{ offsetof(TCCState, ms_extensions), 0, "ms-extensions" },
+ { offsetof(TCCState, old_struct_init_code), 0, "old-struct-init-code" },
};
/* set/reset a flag */