- tccgen.c/tcc.h: allow function declaration after use: int f() { return g(); } int g() { return 1; } may be a warning but not an error see also 76cb1144ef91924c53c57ea71e6f67ce73ce1cc6 - tccgen.c: redundant code related to inline functions removed (functions used anywhere have sym->c set automatically) - tccgen.c: make 32bit llop non-equal test portable (probably not on C67) - dynarray_add: change prototype to possibly avoid aliasing problems or at least warnings - lib/alloca*.S: ".section .note.GNU-stack,"",%progbits" removed (has no effect) - tccpe: set SizeOfCode field (for correct upx decompression) - libtcc.c: fixed alternative -run invocation tcc "-run -lxxx ..." file.c (meant to load the library after file). Also supported now: tcc files ... options ... -run @ arguments ...
Showing the changes to lib (4 of 13 files). Show all
Unified · Split
| @@ -8,4 +8,3 @@ alloca: · 7 unmodified lines | |||
| 8 | mov r0, sp | 8 | mov r0, sp |
| 9 | mov pc, lr | 9 | mov pc, lr |
| 10 | .size alloca, .-alloca | 10 | .size alloca, .-alloca |
| 11 | .section .note.GNU-stack,"",%progbits | ||
| @@ -28,8 +28,4 @@ p3: · 27 unmodified lines | |||
| 28 | push %edx | 28 | push %edx |
| 29 | ret | 29 | ret |
| 30 | 30 | ||
| 31 | /* mark stack as nonexecutable */ | ||
| 32 | #if defined __ELF__ && defined __linux__ | ||
| 33 | .section .note.GNU-stack,"",@progbits | ||
| 34 | #endif | ||
| 35 | /* ---------------------------------------------- */ | 31 | /* ---------------------------------------------- */ |
| @@ -53,8 +53,4 @@ p3: · 52 unmodified lines | |||
| 53 | ret | 53 | ret |
| 54 | #endif | 54 | #endif |
| 55 | 55 | ||
| 56 | /* mark stack as nonexecutable */ | ||
| 57 | #if defined __ELF__ && defined __linux__ | ||
| 58 | .section .note.GNU-stack,"",@progbits | ||
| 59 | #endif | ||
| 60 | /* ---------------------------------------------- */ | 56 | /* ---------------------------------------------- */ |
| @@ -35,8 +35,4 @@ p3: · 34 unmodified lines | |||
| 35 | push %rdx | 35 | push %rdx |
| 36 | ret | 36 | ret |
| 37 | 37 | ||
| 38 | /* mark stack as nonexecutable */ | ||
| 39 | #if defined __ELF__ && defined __linux__ | ||
| 40 | .section .note.GNU-stack,"",@progbits | ||
| 41 | #endif | ||
| 42 | /* ---------------------------------------------- */ | 38 | /* ---------------------------------------------- */ |