three small fixes & three reverts
commit8b69059f66c0ec402d9e81815978e7f70b7181d8
authorgrischka <grischka>
Fri, 23 Oct 2020 19:38:53 +0000 (23 21:38 +0200)
committergrischka <grischka>
Mon, 2 Nov 2020 17:08:56 +0000 (2 18:08 +0100)
treed5f16f59f633f65905bc50a4c4048c864807687f
parent2b7aa2a1e11b3afc9907c47c52b8018b5a1fb108
three small fixes & three reverts

- tcc.h: msvc doesn't grok __func__ (reverts previous commit)

- tccgen.c: fortify tcc against bogus code:
  - n[sizeof({3;})]; // statement expression outside of function
  - f(){"123"4}; // tokens with values following each other
  (also, add "type defaults to int" warning for variables)

- tccpe.c: removed a check that caused BSS symbols not to be
  exported.  Whatever that check was meant to prevent.

- win32/build-tcc.bat: cmd.exe sometimes doesn't grok '-' in labels

- Revert "libtcc: no need to undef"
  This reverts commit 2b7aa2a1e11b3afc9907c47c52b8018b5a1fb108.
- Revert "tcc.h libtcc.c: remove unused defines"
  This reverts commit 985d9637455929be5b19741de7ba47b245b0cab8.

The point of these "unused defines" is to be unused,  that is
to remind people not to use malloc but please to "use_tcc_malloc",
instead.
libtcc.c
tcc.h
tccgen.c
tccpe.c
tests/tests2/102_alignas.expect
tests/tests2/60_errors_and_warnings.c
tests/tests2/60_errors_and_warnings.expect
win32/build-tcc.bat