tinycc-devel
[Top][All Lists]
Advanced

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

[Tinycc-devel] Fix for pragma once troubles


From: Vladimir Vissoultchev
Subject: [Tinycc-devel] Fix for pragma once troubles
Date: Mon, 11 Apr 2016 01:56:44 +0300

Hi,

I had troubles compiling ZSTD library (https://github.com/Cyan4973/zstd) and
it turned out that 
pragma once guards are conflicting with cached_includes implementation when
the target 
is directly an executable (no intermediary .o files with -c switch).

When two source files are including the same include file that has  pragma
once then the 
second compile is skipping the include althogether as it's ifndef_macro is
hacked to TOK_once 
and cached_includes are intact as part of the TCCState for the final
executable.

Also, debugging this had to make VS2015 projects for libtcc.dll and tcc.exe
-- these are 
moderately sized files I'm proposing for inclusion in the project as there
is already only a 
gcc batch file for win32 builds available (btw, the original Makefile works
with MinGW ok).

Patches attached, commits link here:
https://github.com/wqweto/tinycc/commits/dev

cheers,
</wqw>

Attachment: patches_2016_04_11.zip
Description: Zip compressed data


reply via email to

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