History

Use unsigned int to count sizes for -bench (YARPgen) (part 2)

I have a testfile created by YARPGen (seed=9), which displayed a negative bss size without this patch. * tcc needs also a bigger VSTACK_SIZE (i used 512) -- bye bye ... Detlef

Detlef Riekenberg committed 3 years ago

Commit bdec3c51 parent b2485d61 file · +1 −1Browse files

Unified · Split

libtcc.c+1−1
@@ -2171,7 +2171,7 @@ PUB_FUNC void tcc_print_stats(TCCState *s1, unsigned total_time) · 2170 unmodified lines
2171 (double)total_time/1000,2171 (double)total_time/1000,
2172 (unsigned)total_lines*1000/total_time,2172 (unsigned)total_lines*1000/total_time,
2173 (double)total_bytes/1000/total_time);2173 (double)total_bytes/1000/total_time);
2174 fprintf(stderr, "* text %d, data.rw %d, data.ro %d, bss %d bytes\n",2174 fprintf(stderr, "* text %u, data.rw %u, data.ro %u, bss %u bytes\n",
2175 s1->total_output[0],2175 s1->total_output[0],
2176 s1->total_output[1],2176 s1->total_output[1],
2177 s1->total_output[2],2177 s1->total_output[2],

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