aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorgrischka <grischka>2017-02-13 18:23:43 +0100
committergrischka <grischka>2017-02-13 18:23:43 +0100
commita4a20360e9df90bb8a0ed23d113ed5564882de8a (patch)
tree3115b2a0ce13f54bb56c0b19818623dfdca3bfc4 /lib
parent9817204d8afa37e03035158502ec7b73c72cae50 (diff)
downloadtinycc-a4a20360e9df90bb8a0ed23d113ed5564882de8a.tar.gz
tinycc-a4a20360e9df90bb8a0ed23d113ed5564882de8a.tar.bz2
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 ...
Diffstat (limited to 'lib')
-rw-r--r--lib/alloca-arm.S1
-rw-r--r--lib/alloca86.S4
-rw-r--r--lib/alloca86_64-bt.S4
-rw-r--r--lib/alloca86_64.S4
4 files changed, 0 insertions, 13 deletions
diff --git a/lib/alloca-arm.S b/lib/alloca-arm.S
index 9deae63..02c554e 100644
--- a/lib/alloca-arm.S
+++ b/lib/alloca-arm.S
@@ -8,4 +8,3 @@ alloca:
mov r0, sp
mov pc, lr
.size alloca, .-alloca
- .section .note.GNU-stack,"",%progbits
diff --git a/lib/alloca86.S b/lib/alloca86.S
index a17e07f..ec1e185 100644
--- a/lib/alloca86.S
+++ b/lib/alloca86.S
@@ -28,8 +28,4 @@ p3:
push %edx
ret
-/* mark stack as nonexecutable */
-#if defined __ELF__ && defined __linux__
- .section .note.GNU-stack,"",@progbits
-#endif
/* ---------------------------------------------- */
diff --git a/lib/alloca86_64-bt.S b/lib/alloca86_64-bt.S
index 1f196bb..9b6c3c6 100644
--- a/lib/alloca86_64-bt.S
+++ b/lib/alloca86_64-bt.S
@@ -53,8 +53,4 @@ p3:
ret
#endif
-/* mark stack as nonexecutable */
-#if defined __ELF__ && defined __linux__
- .section .note.GNU-stack,"",@progbits
-#endif
/* ---------------------------------------------- */
diff --git a/lib/alloca86_64.S b/lib/alloca86_64.S
index 4a74104..e4ca15e 100644
--- a/lib/alloca86_64.S
+++ b/lib/alloca86_64.S
@@ -35,8 +35,4 @@ p3:
push %rdx
ret
-/* mark stack as nonexecutable */
-#if defined __ELF__ && defined __linux__
- .section .note.GNU-stack,"",@progbits
-#endif
/* ---------------------------------------------- */