History

some reverts & fixes

workflow: - revert 'pinact for security' for readability from 831c3fa184e3b4a93f09c7fd04170b022596aafd tccpp.c: - remove code that allows tcc to parse numbers incorrectly (*) from 829c84852012426230b0bec0efcfc1609bf4665b tccgen.c: - Revert "Relaxed the 'incompatible pointer type' warning a bit" (*) from d9ec17d33427fce6f73c5b5bb9646d3b077bb4e4. tccrun.c: - remove support for -nostdlib -run for simplicity, we require "main" with tcc -run always tccpp.c: - Revert "Free all preprocessor memmory in case of error." from c96f0cad61dbaa16c826879f65d5614e86eda8f2 Remove TinyAlloc->limit instead. Thus it can do also bigger allocs. Big TokenStrings (like 200kb+ when compiling tcc) may come from inline functions or from large initializers. Makefile/configure: - use --config-pie for configuring tcc output only - use -fPIC with clang-x86_64 to avoid 32-bit relocs libtcc.c: - fix "tcc file.c -run" i.e. -run as last argument i386-gen.c: - PIC refactor (*) sorry, but code in tcc should have a minimum of generic relevance

grischka committed 10 months ago

Commit 5ec0e6f1 parent 518279d24 files · +298 −740Browse files

Showing the changes to .github (1 of 24 files). Show all

Unified · Split

.github/workflows/build.yml+13−13
@@ -9,7 +9,7 @@ jobs: · 8 unmodified lines
9 runs-on: ubuntu-22.049 runs-on: ubuntu-22.04
10 timeout-minutes: 210 timeout-minutes: 2
11 steps:11 steps:
12 - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.012 - uses: actions/checkout@v4
13 - name: make & test tcc (x86_64-linux)13 - name: make & test tcc (x86_64-linux)
14 run: ./configure && make && make test -k14 run: ./configure && make && make test -k
15 15
@@ -17,7 +17,7 @@ jobs: · 1 unmodified line
17 runs-on: macos-15-intel17 runs-on: macos-15-intel
18 timeout-minutes: 218 timeout-minutes: 2
19 steps:19 steps:
20 - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.020 - uses: actions/checkout@v4
21 - name: make & test tcc (x86_64-osx)21 - name: make & test tcc (x86_64-osx)
22 run: ./configure && make && make test -k22 run: ./configure && make && make test -k
23 23
@@ -25,7 +25,7 @@ jobs: · 1 unmodified line
25 runs-on: macos-1525 runs-on: macos-15
26 timeout-minutes: 226 timeout-minutes: 2
27 steps:27 steps:
28 - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.028 - uses: actions/checkout@v4
29 - name: make & test tcc (aarch64-osx)29 - name: make & test tcc (aarch64-osx)
30 run: ./configure && make && make test -k30 run: ./configure && make && make test -k
31 31
@@ -33,7 +33,7 @@ jobs: · 1 unmodified line
33 runs-on: windows-202533 runs-on: windows-2025
34 timeout-minutes: 634 timeout-minutes: 6
35 steps:35 steps:
36 - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.036 - uses: actions/checkout@v4
37 - name: make & test tcc (x86_64-win32)37 - name: make & test tcc (x86_64-win32)
38 shell: cmd38 shell: cmd
39 run: |39 run: |
@@ -44,7 +44,7 @@ jobs: · 4 unmodified lines
44 C:\msys64\usr\bin\bash -l -c "pacman -S --noconfirm mingw-w64-x86_64-gcc"44 C:\msys64\usr\bin\bash -l -c "pacman -S --noconfirm mingw-w64-x86_64-gcc"
45 echo ::endgroup::45 echo ::endgroup::
46 C:\msys64\usr\bin\bash -l -c "./configure && make && make test -k"46 C:\msys64\usr\bin\bash -l -c "./configure && make && make test -k"
47 - uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.047 - uses: ilammy/msvc-dev-cmd@v1
48 with:48 with:
49 arch: amd6449 arch: amd64
50 - name: build with MSVC (x86_64-win32)50 - name: build with MSVC (x86_64-win32)
@@ -61,7 +61,7 @@ jobs: · 10 unmodified lines
61 runs-on: windows-202561 runs-on: windows-2025
62 timeout-minutes: 662 timeout-minutes: 6
63 steps:63 steps:
64 - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.064 - uses: actions/checkout@v4
65 - name: make & test tcc (i386-win32)65 - name: make & test tcc (i386-win32)
66 shell: cmd66 shell: cmd
67 run: |67 run: |
@@ -72,7 +72,7 @@ jobs: · 4 unmodified lines
72 C:\msys64\usr\bin\bash -l -c "pacman -S --noconfirm mingw-w64-i686-gcc"72 C:\msys64\usr\bin\bash -l -c "pacman -S --noconfirm mingw-w64-i686-gcc"
73 echo ::endgroup::73 echo ::endgroup::
74 C:\msys64\usr\bin\bash -l -c "./configure && make && make test -k"74 C:\msys64\usr\bin\bash -l -c "./configure && make && make test -k"
75 - uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.075 - uses: ilammy/msvc-dev-cmd@v1
76 with:76 with:
77 arch: x8677 arch: x86
78 - name: build with MSVC (i386-win32)78 - name: build with MSVC (i386-win32)
@@ -89,8 +89,8 @@ jobs: · 10 unmodified lines
89 runs-on: ubuntu-22.0489 runs-on: ubuntu-22.04
90 timeout-minutes: 890 timeout-minutes: 8
91 steps:91 steps:
92 - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.092 - uses: actions/checkout@v4
93 - uses: uraimo/run-on-arch-action@d94c13912ea685de38fccc1109385b83fd79427d # v3.0.193 - uses: uraimo/run-on-arch-action@v3
94 name: make & test tcc (armv7-linux)94 name: make & test tcc (armv7-linux)
95 with:95 with:
96 arch: armv796 arch: armv7
@@ -107,8 +107,8 @@ jobs: · 10 unmodified lines
107 runs-on: ubuntu-22.04107 runs-on: ubuntu-22.04
108 timeout-minutes: 8108 timeout-minutes: 8
109 steps:109 steps:
110 - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0110 - uses: actions/checkout@v4
111 - uses: uraimo/run-on-arch-action@d94c13912ea685de38fccc1109385b83fd79427d # v3.0.1111 - uses: uraimo/run-on-arch-action@v3
112 name: make & test tcc (aarch64-linux)112 name: make & test tcc (aarch64-linux)
113 with:113 with:
114 arch: aarch64114 arch: aarch64
@@ -125,8 +125,8 @@ jobs: · 10 unmodified lines
125 runs-on: ubuntu-22.04125 runs-on: ubuntu-22.04
126 timeout-minutes: 8126 timeout-minutes: 8
127 steps:127 steps:
128 - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0128 - uses: actions/checkout@v4
129 - uses: uraimo/run-on-arch-action@d94c13912ea685de38fccc1109385b83fd79427d # v3.0.1129 - uses: uraimo/run-on-arch-action@v3
130 name: make & test tcc (riscv64-linux)130 name: make & test tcc (riscv64-linux)
131 with:131 with:
132 arch: riscv64132 arch: riscv64

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t