aboutsummaryrefslogtreecommitdiff
path: root/tccpp.c
diff options
context:
space:
mode:
authorgrischka <grischka>2016-12-18 22:57:03 +0100
committergrischka <grischka>2016-12-18 22:57:03 +0100
commitd2332396e43914ae8239cbc53ae7b0f1f3bb614c (patch)
treeb0f8448164b836e6785e2bb391f25c4852be4807 /tccpp.c
parenta1c12b9fb9bd2452a90d3cf504574b3605c09702 (diff)
downloadtinycc-d2332396e43914ae8239cbc53ae7b0f1f3bb614c.tar.gz
tinycc-d2332396e43914ae8239cbc53ae7b0f1f3bb614c.tar.bz2
libtcc.c: -m option cleanup
handle mms-bitfields as sub-options of -m. (-mfloat-abi is still special because it requires arguments) tcc.c: help(): - list -mms-bitfields under 'Target specific options' libtcc.c/MEM_DEBUG - add check for past buffer writes
Diffstat (limited to 'tccpp.c')
-rw-r--r--tccpp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tccpp.c b/tccpp.c
index 05c122b..c069a24 100644
--- a/tccpp.c
+++ b/tccpp.c
@@ -186,13 +186,13 @@ tail_call:
#ifdef TAL_DEBUG
if (al->nb_allocs > 0) {
uint8_t *p;
- fprintf(stderr, "TAL_DEBUG: mem leak %d chunks (limit= %d)\n",
+ fprintf(stderr, "TAL_DEBUG: memory leak %d chunk(s) (limit= %d)\n",
al->nb_allocs, al->limit);
p = al->buffer;
while (p < al->p) {
tal_header_t *header = (tal_header_t *)p;
if (header->line_num > 0) {
- fprintf(stderr, "%s:%d: chunk of %d bytes\n",
+ fprintf(stderr, "%s:%d: chunk of %d bytes leaked\n",
header->file_name, header->line_num, header->size);
}
p += header->size + sizeof(tal_header_t);