This project is mirrored from https://repo.or.cz/tinycc.git. Pull mirroring updated .
  1. 30 Oct, 2021 1 commit
    • Alexander Sosedkin's avatar
      Don't skip weak symbols during ar creation · da11cf65
      Alexander Sosedkin authored
      ```
      $ echo 'int __attribute__((__weak__)) f(void) { return 4; }' > w.c
      $ tcc -c w.c -o w.o
      
      $ tcc-old -ar rc w.a w.o; nm -s w.a  # previous behaviour, not indexed
      w.o:
      0000000000000000 W f
      
      $ ar rc w.a w.o; nm -s w.a           # GNU binutils behaviour, indexed
      Archive index:
      f in w.o
      
      0000000000000000 W f
      
      $ tcc-new rc w.a w.o; nm -s w.a      # new behaviour, indexed
      Archive index:
      f in w.o
      
      0000000000000000 W f
      ```
      da11cf65
  2. 22 Oct, 2021 6 commits
  3. 10 Oct, 2021 1 commit
    • Ryan Burns's avatar
      Permit '=' character in configure options · ca11849e
      Ryan Burns authored
      By replacing the `-f 2` field selection with `-f 2-`, we select fields
      2 and beyond, so that arguments containing the '=' character are not
      truncated.
      
      This option qualifier list format is POSIX standard and tested
      to work with the `cut` program from:
      * GNU coreutils
      * macOS (FreeBSD)
      * NetBSD
      * toybox
      * busybox
      * uutils-coreutils
      
      In my case, this is useful because I'm trying to use an installation
      prefix which contains an equals sign.
      ca11849e
  4. 16 Sep, 2021 1 commit
  5. 02 Sep, 2021 1 commit
  6. 21 Aug, 2021 1 commit
  7. 04 Aug, 2021 1 commit
    • grischka's avatar
      tcc/lib: reduce number of files · 675046bd
      grischka authored
      271 insertions(+), 292 deletions(-), -21 lines, -5 files
      Also:
      - tccdefs.h: WIN32: less (no) __builtins
      - libtcc.c: simply ignore -arch
      675046bd
  8. 03 Aug, 2021 1 commit
  9. 02 Aug, 2021 3 commits
    • Christian Jullien's avatar
      e449db5f
    • Christian Jullien's avatar
    • grischka's avatar
      WAIT/POST_SEM(): generalize interface (and more) · dda95e9b
      grischka authored
      Currently used only with 'tcc_compile_sem' to protect
      tcc_compile(),  but can be used with other semaphores
      
      Also fix deadlock when tcc_enter_state() is called
      recursively for the same state, for example with
      tcc_warning() from #pragma comment(option,"...")
      
      Also:
      - libtcc.c: error1(): use cstr_[v]printf()
      - tcc.h: set TCC_USING_DOUBLE_FOR_LDOUBLE for macho-arm64
        (rather than for macho-X86_64)
      - tcc.h: define TCC_TARGET_MACHO on __APPLE__ by default
      - tcc.h: cleanup TCCState, move DEFASM token stuff to tcctok.h
      - tccgen.c: more static
      - Makefile/tcc.c: review githash
      - tccpe/tcctools: use read() instead of fgets() in pe_load_def()
        (all files opened by tcc for reading are now read via 'int fd')
      - configure/win32: don't preset CONFIG_TCCDIR (to allow to override it)
      - tcc.c -bench: do not include output/run-time
      dda95e9b
  10. 01 Aug, 2021 1 commit
    • grischka's avatar
      -W[no-]error...: features by shrinkage · 4b2c6cf3
      grischka authored
      136 insertions(+), 226 deletions(-), less 90 lines (except tests)
      only one set_flag() function required
      * can now turn off specific errors: -Werror -Wno-error=option
      * new interface: tcc_warning_c(warn_option)("format", args...);
      * new warning: -Wdiscarded-qualifiers (on by default)
      * new variable 'warn_all' for conditional warnings with -Wall
      see also the tests
      4b2c6cf3
  11. 30 Jul, 2021 1 commit
  12. 28 Jul, 2021 4 commits
  13. 27 Jul, 2021 2 commits
  14. 26 Jul, 2021 1 commit
    • grischka's avatar
      macos: yet another tbd adjustment · eadcee65
      grischka authored
      configure:
      - re-enable apple M1-arm64
      - however, with --cpu=x86_64,  set -arch in CFLAGS/LDFLAGS too
        (assume rosetta)
      
      Makefile:
      - re-enable osx cross-test (Please do not disable tests)
      
      tcc.h
      - set TCC_IS_NATIVE for TCC_TARGET_MACHO on __APPLE__
      - apply TCC_USING_DOUBLE_FOR_LDOUBLE for x86_64-osx
      
      libtcc.c:
      - cleanup tcc_add_file_internal()
      - new function char *tcc_load_text(int fd); and use it for tbd files
      eadcee65
  15. 17 Jul, 2021 1 commit
  16. 10 Jul, 2021 1 commit
  17. 08 Jul, 2021 1 commit
  18. 07 Jul, 2021 6 commits
  19. 06 Jul, 2021 1 commit
  20. 04 Jul, 2021 3 commits
  21. 02 Jul, 2021 1 commit
  22. 01 Jul, 2021 1 commit
    • Arthur Williams's avatar
      Support -M, -MM, and -MMD · ee75521d
      Arthur Williams authored
      Add support for some more options to generate dependency fragments.
      -M is likes -MD but doesn't compile anything so the command won't fail
      when just supplied a file without all the relevant libs.
      -MM and -MMD are like their counterparts but skip system libs.
      
      Note the behavior of -MD has changed to include system libs. Use -MMD
      for the old behavior. This matches gcc's corresponding flags
      ee75521d