[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Tinycc-devel] [PATCH] preprocess all files from a command line with a -
From: |
Sergey Korshunoff |
Subject: |
[Tinycc-devel] [PATCH] preprocess all files from a command line with a -E switch |
Date: |
Sat, 27 Dec 2014 16:19:04 +0300 |
Don't drop a preprocessor defines when tcc going to preprocess a next
file in the same pass like
tcc -E one.c two.c three.c -o combined.i
Currently tcc don't handle such case. The new behavior is better then
the current one. After a patch it is possible to compile combined.i
in case:
* include files are properly protected by
#ifndef MY_INCLUDE_H
#define MY_INCLUDE_H
extern void func();
#endif
* there is no incompatible declarations for the same name in *.c
An archive for a test purpose is included
2014-12-27-02-pp-many-files.patch
Description: Binary data
2014-12-27-02-pp-many-files.tgz
Description: GNU Zip compressed data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Tinycc-devel] [PATCH] preprocess all files from a command line with a -E switch,
Sergey Korshunoff <=