diff options
| author | seyko <seyko2@gmail.com> | 2015-03-20 10:44:26 +0300 |
|---|---|---|
| committer | seyko <seyko2@gmail.com> | 2015-03-20 10:44:26 +0300 |
| commit | 78c076a70f562fc88bcd6e467bfe61b856f91fbd (patch) | |
| tree | 7ac1d6b2b0c780646424bc22976e835dbf3388e0 | |
| parent | e3851d233f7a636e65a3eb00e51dee2120aaf087 (diff) | |
| download | tinycc-78c076a70f562fc88bcd6e467bfe61b856f91fbd.tar.gz tinycc-78c076a70f562fc88bcd6e467bfe61b856f91fbd.tar.bz2 | |
restore a linux 2.4.26 kernel compilation (commit 5bcc3eed7b93 correction)
The following check in tccgen.c is removed
if (nocode_wanted)
tcc_error("statement expression in global scope");
This check is introduced in commit 5bcc3eed7b93 and breaks compilation
of the linux 2.4.26 kernel.
| -rw-r--r-- | tccgen.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -3776,8 +3776,12 @@ ST_FUNC void unary(void) gen_cast(&type); } } else if (tok == '{') { + /* if (nocode_wanted) - tcc_error("statement expression in global scope"); + tcc_error("statement expression in global scope"); */ + /* this check breaks compilation of the linux 2.4.26 with the meesage: + linux/include/net/tcp.h:945: error: statement expression in global scope */ + /* save all registers */ save_regs(0); /* statement expression : we do not accept break/continue |
