diff options
| author | seyko <seyko2@gmail.com> | 2016-04-13 06:17:02 +0300 |
|---|---|---|
| committer | seyko <seyko2@gmail.com> | 2016-04-13 06:17:02 +0300 |
| commit | b5b3e89f9e6735eb33eedd2b3071acd38222ee04 (patch) | |
| tree | 4d9d3b63aea4bfddc5d980b12aeb05b0d344fe9d /tcc.c | |
| parent | b0296139a8ca3c15cd601ca1449e6547c8a352a0 (diff) | |
| download | tinycc-b5b3e89f9e6735eb33eedd2b3071acd38222ee04.tar.gz tinycc-b5b3e89f9e6735eb33eedd2b3071acd38222ee04.tar.bz2 | |
Fix pragma once guard
From: Vlad Vissoultchev
Date: Mon, 11 Apr 2016 01:26:32 +0300
Subject: Fix pragma once guard when compiling multiple source files
When compiling multiple source files directly to executable cached
include files guard was incorrectly checked for TOK_once in ifndef_macro
member.
If two source files included the same header guarded by pragma once, then
the second one erroneously skipped it as `cached_includes` is not cleared
on second `tcc_compile`
Diffstat (limited to 'tcc.c')
| -rw-r--r-- | tcc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -344,7 +344,7 @@ int main(int argc, char **argv) tcc_parse_args(s, argc - 1, argv + 1); tcc_set_environment(s); if (s->output_type != TCC_OUTPUT_OBJ) - tcc_error("interlnal error"); + tcc_error("internal error"); tcc_set_output_type(s, s->output_type); } } |
