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
8 mov r0, sp8 mov r0, sp
9 mov pc, lr9 mov pc, lr
10 .size alloca, .-alloca10 .size alloca, .-alloca
11 .section .note.GNU-stack,"",%progbits
lib/alloca86.S+0−4
@@ -28,8 +28,4 @@ p3: · 27 unmodified lines
28 push %edx28 push %edx
29 ret29 ret
30 30
31/* mark stack as nonexecutable */
32#if defined __ELF__ && defined __linux__
33 .section .note.GNU-stack,"",@progbits
34#endif
35/* ---------------------------------------------- */31/* ---------------------------------------------- */
lib/alloca86_64-bt.S+0−4
@@ -53,8 +53,4 @@ p3: · 52 unmodified lines
53 ret53 ret
54#endif54#endif
55 55
56/* mark stack as nonexecutable */
57#if defined __ELF__ && defined __linux__
58 .section .note.GNU-stack,"",@progbits
59#endif
60/* ---------------------------------------------- */56/* ---------------------------------------------- */
lib/alloca86_64.S+0−4
@@ -35,8 +35,4 @@ p3: · 34 unmodified lines
35 push %rdx35 push %rdx
36 ret36 ret
37 37
38/* mark stack as nonexecutable */
39#if defined __ELF__ && defined __linux__
40 .section .note.GNU-stack,"",@progbits
41#endif
42/* ---------------------------------------------- */38/* ---------------------------------------------- */

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