From 5c9dde7255b2ecc38df8b31dc0bef16ea71f0757 Mon Sep 17 00:00:00 2001 From: seyko Date: Fri, 10 Apr 2015 23:44:10 +0300 Subject: 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. --- tcc.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tcc.h') diff --git a/tcc.h b/tcc.h index 3e8d9aa..d61b5b7 100644 --- a/tcc.h +++ b/tcc.h @@ -603,6 +603,8 @@ struct TCCState { int char_is_unsigned; int leading_underscore; int ms_extensions; /* allow nested named struct w/o identifier behave like unnamed */ + int old_struct_init_code; /* use old algorithm to init array in struct when there is no '{' used. + Liuux 2.4.26 can't find initrd when compiled with a new algorithm */ /* warning switches */ int warn_write_strings; -- cgit v1.3.1