tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] tcc exit status on error


From: Michael Somos
Subject: [Tinycc-devel] tcc exit status on error
Date: Sun, 8 Jul 2007 13:12:04 -0400

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;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]