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.
This commit is contained in:
1
libtcc.c
1
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 */
|
||||
|
||||
Reference in New Issue
Block a user