2001-11-01 17:48:10 +03:00
|
|
|
/*
|
|
|
|
* TCC - Tiny C Compiler
|
2015-07-29 23:53:57 +03:00
|
|
|
*
|
2004-10-28 01:38:03 +04:00
|
|
|
* Copyright (c) 2001-2004 Fabrice Bellard
|
2001-11-01 17:48:10 +03:00
|
|
|
*
|
2003-05-24 18:11:17 +04:00
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
2001-11-01 17:48:10 +03:00
|
|
|
*
|
2003-05-24 18:11:17 +04:00
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
2001-11-01 17:48:10 +03:00
|
|
|
*
|
2003-05-24 18:11:17 +04:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
2001-11-01 17:48:10 +03:00
|
|
|
*/
|
2003-04-13 23:49:30 +04:00
|
|
|
|
2011-07-14 20:45:37 +04:00
|
|
|
#ifdef ONE_SOURCE
|
2009-05-05 22:18:53 +04:00
|
|
|
#include "libtcc.c"
|
2011-07-14 20:45:37 +04:00
|
|
|
#else
|
|
|
|
#include "tcc.h"
|
2009-07-19 00:08:01 +04:00
|
|
|
#endif
|
2017-02-18 11:55:34 +03:00
|
|
|
#include "tcctools.c"
|
2015-03-03 16:08:33 +03:00
|
|
|
|
2017-02-18 11:55:46 +03:00
|
|
|
static const char help[] =
|
|
|
|
"Tiny C Compiler "TCC_VERSION" - Copyright (C) 2001-2006 Fabrice Bellard\n"
|
|
|
|
"Usage: tcc [options...] [-o outfile] [-c] infile(s)...\n"
|
|
|
|
" tcc [options...] -run infile [arguments...]\n"
|
|
|
|
"General options:\n"
|
|
|
|
" -c compile only - generate an object file\n"
|
|
|
|
" -o outfile set output filename\n"
|
|
|
|
" -run run compiled source\n"
|
|
|
|
" -fflag set or reset (with 'no-' prefix) 'flag' (see tcc -hh)\n"
|
|
|
|
" -Wwarning set or reset (with 'no-' prefix) 'warning' (see tcc -hh)\n"
|
|
|
|
" -w disable all warnings\n"
|
|
|
|
" -v -vv show version, show search paths or loaded files\n"
|
|
|
|
" -h -hh show this, show more help\n"
|
|
|
|
" -bench show compilation statistics\n"
|
|
|
|
" - use stdin pipe as infile\n"
|
|
|
|
" @listfile read arguments from listfile\n"
|
|
|
|
"Preprocessor options:\n"
|
|
|
|
" -Idir add include path 'dir'\n"
|
|
|
|
" -Dsym[=val] define 'sym' with value 'val'\n"
|
|
|
|
" -Usym undefine 'sym'\n"
|
|
|
|
" -E preprocess only\n"
|
|
|
|
"Linker options:\n"
|
|
|
|
" -Ldir add library path 'dir'\n"
|
|
|
|
" -llib link with dynamic or static library 'lib'\n"
|
|
|
|
" -r generate (relocatable) object file\n"
|
|
|
|
" -shared generate a shared library/dll\n"
|
|
|
|
" -rdynamic export all global symbols to dynamic linker\n"
|
|
|
|
" -soname set name for shared library to be used at runtime\n"
|
|
|
|
" -Wl,-opt[=val] set linker option (see tcc -hh)\n"
|
|
|
|
"Debugger options:\n"
|
|
|
|
" -g generate runtime debug info\n"
|
2002-11-03 03:43:55 +03:00
|
|
|
#ifdef CONFIG_TCC_BCHECK
|
2017-02-18 11:55:46 +03:00
|
|
|
" -b compile with built-in memory and bounds checker (implies -g)\n"
|
2002-11-03 03:43:55 +03:00
|
|
|
#endif
|
2009-04-18 20:21:38 +04:00
|
|
|
#ifdef CONFIG_TCC_BACKTRACE
|
2017-02-18 11:55:46 +03:00
|
|
|
" -bt N show N callers in stack traces\n"
|
|
|
|
#endif
|
|
|
|
"Misc. options:\n"
|
|
|
|
" -x[c|a|n] specify type of the next infile\n"
|
|
|
|
" -nostdinc do not use standard system include paths\n"
|
|
|
|
" -nostdlib do not link with standard crt and libraries\n"
|
|
|
|
" -Bdir set tcc's private include/library dir\n"
|
|
|
|
" -MD generate dependency file for make\n"
|
|
|
|
" -MF file specify dependency file name\n"
|
|
|
|
" -m32/64 defer to i386/x86_64 cross compiler\n"
|
|
|
|
"Tools:\n"
|
|
|
|
" create library : tcc -ar [rcsv] lib.a files\n"
|
|
|
|
#ifdef TCC_TARGET_PE
|
|
|
|
" create def file : tcc -impdef lib.dll [-v] [-o lib.def]\n"
|
2009-04-18 20:21:38 +04:00
|
|
|
#endif
|
2017-02-18 11:55:46 +03:00
|
|
|
;
|
|
|
|
|
|
|
|
static const char help2[] =
|
|
|
|
"Tiny C Compiler "TCC_VERSION" - More Options\n"
|
|
|
|
"Special options:\n"
|
|
|
|
" -P -P1 with -E: no/alternative #line output\n"
|
|
|
|
" -dD -dM with -E: output #define directives\n"
|
|
|
|
" -pthread same as -D_REENTRANT and -lpthread\n"
|
|
|
|
" -On same as -D__OPTIMIZE__ for n > 0\n"
|
|
|
|
" -Wp,-opt same as -opt\n"
|
|
|
|
" -include file include 'file' above each input file\n"
|
|
|
|
" -isystem dir add 'dir' to system include path\n"
|
|
|
|
" -iwithprefix dir set tcc's private include/library subdir\n"
|
|
|
|
" -static link to static libraries (not recommended)\n"
|
|
|
|
" -dumpversion print version\n"
|
|
|
|
" -print-search-dirs print search paths\n"
|
|
|
|
"Ignored options:\n"
|
|
|
|
" --param -pedantic -pipe -s -std -traditional\n"
|
|
|
|
"-W... warnings:\n"
|
|
|
|
" all turn on some (*) warnings\n"
|
|
|
|
" error stop after first warning\n"
|
|
|
|
" unsupported warn about ignored options, pragmas, etc.\n"
|
|
|
|
" write-strings strings are const\n"
|
|
|
|
" implicit-function-declaration warn for missing prototype (*)\n"
|
|
|
|
"-f[no-]... flags:\n"
|
|
|
|
" unsigned-char default char is unsigned\n"
|
|
|
|
" signed-char default char is signed\n"
|
|
|
|
" common use common section instead of bss\n"
|
|
|
|
" leading-underscore decorate extern symbols\n"
|
2017-02-20 20:58:08 +03:00
|
|
|
" ms-extensions allow anonymous struct in struct\n"
|
2017-02-18 11:55:46 +03:00
|
|
|
" dollars-in-identifiers allow '$' in C symbols\n"
|
|
|
|
"-m... target specific options:\n"
|
|
|
|
" ms-bitfields use MSVC bitfield layout\n"
|
2016-12-19 00:57:03 +03:00
|
|
|
#ifdef TCC_TARGET_ARM
|
2017-02-18 11:55:46 +03:00
|
|
|
" float-abi hard/softfp on arm\n"
|
2016-12-19 00:57:03 +03:00
|
|
|
#endif
|
|
|
|
#ifdef TCC_TARGET_X86_64
|
2017-02-18 11:55:46 +03:00
|
|
|
" no-sse disable floats on x86_64\n"
|
2017-02-18 11:55:34 +03:00
|
|
|
#endif
|
2017-02-18 11:55:46 +03:00
|
|
|
"-Wl,... linker options:\n"
|
|
|
|
" -nostdlib do not link with standard crt/libs\n"
|
|
|
|
" -[no-]whole-archive load lib(s) fully/only as needed\n"
|
2017-04-04 09:34:52 +03:00
|
|
|
" -export-all-symbols same as -rdynamic\n"
|
2017-02-18 11:55:46 +03:00
|
|
|
" -image-base= -Ttext= set base address of executable\n"
|
|
|
|
" -section-alignment= set section alignment in executable\n"
|
2017-02-18 11:55:34 +03:00
|
|
|
#ifdef TCC_TARGET_PE
|
2017-02-18 11:55:46 +03:00
|
|
|
" -file-alignment= set PE file alignment\n"
|
|
|
|
" -stack= set PE stack reserve\n"
|
|
|
|
" -large-address-aware set related PE option\n"
|
2017-04-04 09:34:52 +03:00
|
|
|
" -subsystem=[console/windows] set PE subsystem\n"
|
2017-02-18 11:55:46 +03:00
|
|
|
" -oformat=[pe-* binary] set executable output format\n"
|
|
|
|
"Predefined macros:\n"
|
|
|
|
" tcc -E -dM - < nul\n"
|
|
|
|
#else
|
|
|
|
" -rpath= set dynamic library seach path\n"
|
|
|
|
" -enable-new-dtags set DT_RUNPATH instead of DT_RPATH\n"
|
|
|
|
" -soname= set DT_SONAME elf tag\n"
|
|
|
|
" -Bsymbolic set DT_SYMBOLIC elf tag\n"
|
|
|
|
" -oformat=[elf32/64-* binary] set executable output format\n"
|
|
|
|
" -init= -fini= -as-needed -O (ignored)\n"
|
|
|
|
"Predefined macros:\n"
|
|
|
|
" tcc -E -dM - < /dev/null\n"
|
2016-12-19 00:57:03 +03:00
|
|
|
#endif
|
2017-02-18 11:55:46 +03:00
|
|
|
"See also the manual for more details.\n"
|
|
|
|
;
|
2017-02-08 21:49:28 +03:00
|
|
|
|
2017-02-18 11:55:46 +03:00
|
|
|
static const char version[] =
|
|
|
|
"tcc version "TCC_VERSION" ("
|
2011-08-06 18:08:33 +04:00
|
|
|
#ifdef TCC_TARGET_I386
|
2017-02-18 11:55:34 +03:00
|
|
|
"i386"
|
|
|
|
#elif defined TCC_TARGET_X86_64
|
2017-02-18 11:55:46 +03:00
|
|
|
"x86_64"
|
2017-02-18 11:55:34 +03:00
|
|
|
#elif defined TCC_TARGET_C67
|
|
|
|
"C67"
|
|
|
|
#elif defined TCC_TARGET_ARM
|
|
|
|
"ARM"
|
|
|
|
#elif defined TCC_TARGET_ARM64
|
|
|
|
"AArch64"
|
2017-02-20 20:58:08 +03:00
|
|
|
#endif
|
|
|
|
#ifdef TCC_ARM_HARDFLOAT
|
2017-02-18 11:55:34 +03:00
|
|
|
" Hard Float"
|
2011-08-06 18:08:33 +04:00
|
|
|
#endif
|
|
|
|
#ifdef TCC_TARGET_PE
|
2017-02-18 11:55:34 +03:00
|
|
|
" Windows"
|
2017-03-28 10:28:59 +03:00
|
|
|
#elif defined(TCC_TARGET_MACHO)
|
|
|
|
" Darwin"
|
2017-02-18 11:55:34 +03:00
|
|
|
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
|
|
|
|
" FreeBSD"
|
2017-02-08 21:49:28 +03:00
|
|
|
#else
|
2017-02-20 20:58:08 +03:00
|
|
|
" Linux"
|
2011-08-06 18:08:33 +04:00
|
|
|
#endif
|
2017-02-18 11:55:46 +03:00
|
|
|
")\n"
|
|
|
|
;
|
2010-12-08 11:27:06 +03:00
|
|
|
|
2017-02-18 11:55:34 +03:00
|
|
|
static void print_dirs(const char *msg, char **paths, int nb_paths)
|
2011-08-11 18:55:30 +04:00
|
|
|
{
|
2013-02-12 22:13:28 +04:00
|
|
|
int i;
|
2017-02-18 11:55:34 +03:00
|
|
|
printf("%s:\n%s", msg, nb_paths ? "" : " -\n");
|
|
|
|
for(i = 0; i < nb_paths; i++)
|
|
|
|
printf(" %s\n", paths[i]);
|
|
|
|
}
|
2011-08-11 18:55:30 +04:00
|
|
|
|
2017-02-18 11:55:34 +03:00
|
|
|
static void print_search_dirs(TCCState *s)
|
|
|
|
{
|
|
|
|
printf("install: %s\n", s->tcc_lib_path);
|
|
|
|
/* print_dirs("programs", NULL, 0); */
|
|
|
|
print_dirs("include", s->sysinclude_paths, s->nb_sysinclude_paths);
|
|
|
|
print_dirs("libraries", s->library_paths, s->nb_library_paths);
|
|
|
|
#ifndef TCC_TARGET_PE
|
|
|
|
print_dirs("crt", s->crt_paths, s->nb_crt_paths);
|
2017-02-23 10:41:57 +03:00
|
|
|
printf("libtcc1:\n %s/"TCC_LIBTCC1"\n", s->tcc_lib_path);
|
2017-02-18 11:55:34 +03:00
|
|
|
printf("elfinterp:\n %s\n", DEFAULT_ELFINTERP(s));
|
|
|
|
#endif
|
2013-02-12 22:13:28 +04:00
|
|
|
}
|
2012-04-18 20:32:37 +04:00
|
|
|
|
2017-02-20 20:58:08 +03:00
|
|
|
static void set_environment(TCCState *s)
|
|
|
|
{
|
|
|
|
char * path;
|
|
|
|
|
|
|
|
path = getenv("C_INCLUDE_PATH");
|
|
|
|
if(path != NULL) {
|
|
|
|
tcc_add_include_path(s, path);
|
|
|
|
}
|
|
|
|
path = getenv("CPATH");
|
|
|
|
if(path != NULL) {
|
|
|
|
tcc_add_include_path(s, path);
|
|
|
|
}
|
|
|
|
path = getenv("LIBRARY_PATH");
|
|
|
|
if(path != NULL) {
|
|
|
|
tcc_add_library_path(s, path);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-02-12 22:13:28 +04:00
|
|
|
static char *default_outputfile(TCCState *s, const char *first_file)
|
|
|
|
{
|
|
|
|
char buf[1024];
|
|
|
|
char *ext;
|
|
|
|
const char *name = "a";
|
|
|
|
|
|
|
|
if (first_file && strcmp(first_file, "-"))
|
|
|
|
name = tcc_basename(first_file);
|
2017-02-08 21:49:28 +03:00
|
|
|
snprintf(buf, sizeof(buf), "%s", name);
|
2013-02-12 22:13:28 +04:00
|
|
|
ext = tcc_fileextension(buf);
|
|
|
|
#ifdef TCC_TARGET_PE
|
|
|
|
if (s->output_type == TCC_OUTPUT_DLL)
|
|
|
|
strcpy(ext, ".dll");
|
|
|
|
else
|
|
|
|
if (s->output_type == TCC_OUTPUT_EXE)
|
|
|
|
strcpy(ext, ".exe");
|
|
|
|
else
|
|
|
|
#endif
|
2016-10-01 21:04:33 +03:00
|
|
|
if (s->output_type == TCC_OUTPUT_OBJ && !s->option_r && *ext)
|
2013-02-12 22:13:28 +04:00
|
|
|
strcpy(ext, ".o");
|
|
|
|
else
|
|
|
|
strcpy(buf, "a.out");
|
|
|
|
return tcc_strdup(buf);
|
|
|
|
}
|
2008-04-27 22:50:35 +04:00
|
|
|
|
2016-10-18 00:24:01 +03:00
|
|
|
static unsigned getclock_ms(void)
|
2013-02-12 22:13:28 +04:00
|
|
|
{
|
|
|
|
#ifdef _WIN32
|
2016-10-18 00:24:01 +03:00
|
|
|
return GetTickCount();
|
2013-02-12 22:13:28 +04:00
|
|
|
#else
|
|
|
|
struct timeval tv;
|
|
|
|
gettimeofday(&tv, NULL);
|
2016-10-18 00:24:01 +03:00
|
|
|
return tv.tv_sec*1000 + (tv.tv_usec+500)/1000;
|
2013-02-12 22:13:28 +04:00
|
|
|
#endif
|
2003-10-05 01:23:51 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
int main(int argc, char **argv)
|
|
|
|
{
|
|
|
|
TCCState *s;
|
2017-02-18 11:55:34 +03:00
|
|
|
int ret, opt, n = 0;
|
2016-10-18 00:24:01 +03:00
|
|
|
unsigned start_time = 0;
|
2017-02-18 11:55:34 +03:00
|
|
|
const char *first_file;
|
2003-10-05 01:23:51 +04:00
|
|
|
|
2017-02-18 11:55:34 +03:00
|
|
|
redo:
|
2009-04-18 15:17:27 +04:00
|
|
|
s = tcc_new();
|
2017-02-18 11:55:34 +03:00
|
|
|
opt = tcc_parse_args(s, &argc, &argv, 1);
|
|
|
|
|
|
|
|
if (n == 0) {
|
|
|
|
if (opt == OPT_HELP)
|
2017-02-18 11:55:46 +03:00
|
|
|
return printf(help), 1;
|
|
|
|
if (opt == OPT_HELP2)
|
|
|
|
return printf(help2), 1;
|
2017-02-18 11:55:34 +03:00
|
|
|
if (opt == OPT_M32 || opt == OPT_M64)
|
|
|
|
tcc_tool_cross(s, argv, opt); /* never returns */
|
|
|
|
if (s->verbose)
|
2017-02-18 11:55:46 +03:00
|
|
|
printf(version);
|
2017-02-18 11:55:34 +03:00
|
|
|
if (opt == OPT_AR)
|
|
|
|
return tcc_tool_ar(s, argc, argv);
|
|
|
|
#ifdef TCC_TARGET_PE
|
|
|
|
if (opt == OPT_IMPDEF)
|
|
|
|
return tcc_tool_impdef(s, argc, argv);
|
|
|
|
#endif
|
|
|
|
if (opt == OPT_V)
|
|
|
|
return 0;
|
|
|
|
if (opt == OPT_PRINT_DIRS) {
|
|
|
|
/* initialize search dirs */
|
|
|
|
tcc_set_output_type(s, TCC_OUTPUT_MEMORY);
|
|
|
|
print_search_dirs(s);
|
|
|
|
return 0;
|
|
|
|
}
|
2011-08-06 18:08:33 +04:00
|
|
|
|
2017-02-18 11:55:34 +03:00
|
|
|
n = s->nb_files;
|
|
|
|
if (n == 0)
|
|
|
|
tcc_error("no input files\n");
|
|
|
|
|
|
|
|
if (s->output_type == TCC_OUTPUT_PREPROCESS) {
|
|
|
|
if (!s->outfile) {
|
|
|
|
s->ppfp = stdout;
|
|
|
|
} else {
|
|
|
|
s->ppfp = fopen(s->outfile, "w");
|
|
|
|
if (!s->ppfp)
|
|
|
|
tcc_error("could not write '%s'", s->outfile);
|
2016-10-01 21:19:37 +03:00
|
|
|
}
|
2017-02-20 20:58:08 +03:00
|
|
|
} else if (s->output_type == TCC_OUTPUT_OBJ && !s->option_r) {
|
|
|
|
if (s->nb_libraries)
|
2017-02-18 11:55:34 +03:00
|
|
|
tcc_error("cannot specify libraries with -c");
|
|
|
|
if (n > 1 && s->outfile)
|
|
|
|
tcc_error("cannot specify output file with -c many files");
|
|
|
|
} else {
|
|
|
|
if (s->option_pthread)
|
|
|
|
tcc_set_options(s, "-lpthread");
|
2016-10-01 21:19:37 +03:00
|
|
|
}
|
2002-07-18 04:51:11 +04:00
|
|
|
|
2017-02-18 11:55:34 +03:00
|
|
|
if (s->do_bench)
|
|
|
|
start_time = getclock_ms();
|
2002-08-31 02:46:35 +04:00
|
|
|
}
|
2015-05-12 21:32:32 +03:00
|
|
|
|
2017-02-20 20:58:08 +03:00
|
|
|
set_environment(s);
|
2016-10-01 21:19:37 +03:00
|
|
|
if (s->output_type == 0)
|
|
|
|
s->output_type = TCC_OUTPUT_EXE;
|
2013-02-12 22:13:28 +04:00
|
|
|
tcc_set_output_type(s, s->output_type);
|
2002-08-31 02:46:35 +04:00
|
|
|
|
|
|
|
/* compile or add each files or library */
|
2017-02-18 11:55:34 +03:00
|
|
|
for (first_file = NULL, ret = 0;;) {
|
|
|
|
struct filespec *f = s->files[s->nb_files - n];
|
|
|
|
s->filetype = f->type;
|
|
|
|
s->alacarte_link = f->alacarte;
|
|
|
|
if (f->type == AFF_TYPE_LIB) {
|
2016-10-01 21:04:58 +03:00
|
|
|
if (tcc_add_library_err(s, f->name) < 0)
|
|
|
|
ret = 1;
|
2002-08-31 02:46:35 +04:00
|
|
|
} else {
|
2016-10-01 20:56:25 +03:00
|
|
|
if (1 == s->verbose)
|
2016-10-01 21:04:58 +03:00
|
|
|
printf("-> %s\n", f->name);
|
2016-10-01 21:04:33 +03:00
|
|
|
if (!first_file)
|
2016-10-01 21:04:58 +03:00
|
|
|
first_file = f->name;
|
2017-02-18 11:55:34 +03:00
|
|
|
if (tcc_add_file(s, f->name) < 0)
|
|
|
|
ret = 1;
|
2002-08-31 02:46:35 +04:00
|
|
|
}
|
2017-02-18 11:55:34 +03:00
|
|
|
s->filetype = 0;
|
2016-10-01 21:54:45 +03:00
|
|
|
s->alacarte_link = 1;
|
2017-02-20 20:58:08 +03:00
|
|
|
if (ret || --n == 0
|
|
|
|
|| (s->output_type == TCC_OUTPUT_OBJ && !s->option_r))
|
2017-02-18 11:55:34 +03:00
|
|
|
break;
|
2002-07-18 04:51:11 +04:00
|
|
|
}
|
|
|
|
|
2016-10-01 22:52:11 +03:00
|
|
|
if (s->output_type == TCC_OUTPUT_PREPROCESS) {
|
|
|
|
if (s->outfile)
|
|
|
|
fclose(s->ppfp);
|
|
|
|
} else if (0 == ret) {
|
2011-08-06 18:08:46 +04:00
|
|
|
if (s->output_type == TCC_OUTPUT_MEMORY) {
|
2012-03-05 23:15:56 +04:00
|
|
|
#ifdef TCC_IS_NATIVE
|
2017-02-18 11:55:34 +03:00
|
|
|
ret = tcc_run(s, argc, argv);
|
2012-03-05 23:15:56 +04:00
|
|
|
#endif
|
2016-10-01 21:04:33 +03:00
|
|
|
} else {
|
|
|
|
if (!s->outfile)
|
|
|
|
s->outfile = default_outputfile(s, first_file);
|
2017-02-18 11:55:34 +03:00
|
|
|
if (tcc_output_file(s, s->outfile))
|
|
|
|
ret = 1;
|
|
|
|
else if (s->gen_deps)
|
2013-02-12 22:13:28 +04:00
|
|
|
gen_makedeps(s, s->outfile, s->deps_outfile);
|
2010-06-16 16:54:24 +04:00
|
|
|
}
|
2009-07-06 23:10:14 +04:00
|
|
|
}
|
2002-01-26 21:05:29 +03:00
|
|
|
|
2017-02-18 11:55:34 +03:00
|
|
|
if (s->do_bench && ret == 0 && n == 0)
|
2016-10-18 00:24:01 +03:00
|
|
|
tcc_print_stats(s, getclock_ms() - start_time);
|
2009-07-06 23:10:14 +04:00
|
|
|
tcc_delete(s);
|
2017-02-18 11:55:34 +03:00
|
|
|
if (ret == 0 && n)
|
|
|
|
goto redo; /* compile more files with -c */
|
2002-11-02 17:12:32 +03:00
|
|
|
return ret;
|
2001-10-28 02:48:39 +03:00
|
|
|
}
|