Mercurial > hg > tinycc
changeset 456:415e7007008c
Fix tcc exit code when unable to create output file.
Michael Somos writes:
I am using the latest CVS version 0.9.24 and found that the exit
status is not getting set on error occurring in the compile and link.
The problem comes from the function "tcc_output_file" in "tccelf.c"
which returns an int which is -1 if an error exists. When it's called
in "tcc.c" the return value is ignored. That code could be improved to
? ? ? ? ret = tcc_output_file(s, outfile) ? 1 : 0;
author | Rob Landley <rob@landley.net> |
---|---|
date | Sat, 18 Aug 2007 00:08:46 -0500 |
parents | 3e7c64539eb2 |
children | b28f6437f95d |
files | tcc.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff