stdatomics: tidy & cleanup
commit48df89e10e11f5449040731450e2ce856b6cadc2
authorgrischka <grischka>
Tue, 30 Mar 2021 07:26:26 +0000 (30 09:26 +0200)
committergrischka <grischka>
Fri, 9 Apr 2021 08:47:35 +0000 (9 10:47 +0200)
tree00a244f30598cbb31923ac86576c694e0126ced5
parent4bb3b3cec7041c0285ea82b668e8ec223d7bccf5
stdatomics: tidy & cleanup

- remove any error messages that were just for debugging the
  templates really
- don't use c99 in tcc (array designators etc.)
- remove memory model type (cannot be an own type really)
  and move memory model defines from built-in to stdatomics.h
- apply normal casts to non-pointer atomic_function arguments
- tidy the library support
- add some tests for errors/warnings

Also:
- Makefile: move GIT_HASH stuff from CFLAGS to DEFINES and into
  main section (away from what is included by tests for example)
- tccelf.c/tccgen.c: avoid some warnings with newer GCC
19 files changed:
Makefile
include/stdatomic.h
include/tccdefs.h
lib/Makefile
lib/atomic-gen32.c [deleted file]
lib/atomic-gen64.c [deleted file]
lib/atomic-i386.c [deleted file]
lib/atomic-x86.h [deleted file]
lib/atomic-x86_64.c [deleted file]
lib/atomic.h [deleted file]
lib/stdatomic.c [new file with mode: 0644]
tcc.h
tccelf.c
tccgen.c
tccpp.c
tcctok.h
tests/tests2/125_atomic_misc.c [new file with mode: 0644]
tests/tests2/125_atomic_misc.expect [new file with mode: 0644]
tests/tests2/Makefile