History

fixes & cleanups

- 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 ...

grischka committed 9 years ago

Commit a4a20361 parent 981720413 files · +61 −90Browse files

Showing the changes to lib (4 of 13 files). Show all

Unified · Split

4 files
  1. lib/alloca-arm.S +0 −1
  2. lib/alloca86.S +0 −4
  3. lib/alloca86_64-bt.S +0 −4
  4. lib/alloca86_64.S +0 −4
lib/alloca-arm.S+0−1
@@ -8,4 +8,3 @@ alloca: · 7 unmodified lines
88 mov r0, sp
99 mov pc, lr
1010 .size alloca, .-alloca
11− .section .note.GNU-stack,"",%progbits
lib/alloca86.S+0−4
@@ -28,8 +28,4 @@ p3: · 27 unmodified lines
2828 push %edx
2929 ret
3030
31−/* mark stack as nonexecutable */
32−#if defined __ELF__ && defined __linux__
33− .section .note.GNU-stack,"",@progbits
34−#endif
3531 /* ---------------------------------------------- */
lib/alloca86_64-bt.S+0−4
@@ -53,8 +53,4 @@ p3: · 52 unmodified lines
5353 ret
5454 #endif
5555
56−/* mark stack as nonexecutable */
57−#if defined __ELF__ && defined __linux__
58− .section .note.GNU-stack,"",@progbits
59−#endif
6056 /* ---------------------------------------------- */
lib/alloca86_64.S+0−4
@@ -35,8 +35,4 @@ p3: · 34 unmodified lines
3535 push %rdx
3636 ret
3737
38−/* mark stack as nonexecutable */
39−#if defined __ELF__ && defined __linux__
40− .section .note.GNU-stack,"",@progbits
41−#endif
4238 /* ---------------------------------------------- */

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