| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
| |
This fixes the i386-win32-tcc cross-compiler on x86-64 linux
platform.
I verified that it produces identical binaries for 'hello_win.exe'
and 'tcc.exe' (tcc compiled by itself) compared to the output of
the native tcc on windows.
|
| |
|
|
| |
This is to make cross build of libtcc1.a easier.
|
| | |
|
| | |
|
| |
|
|
|
| |
This patch takes advantage of new function tcc_open_bf
from previous commit.
|
| |
|
|
|
|
|
|
| |
Use it in:
- tcc_open
- tcc_compile_string
- tcc_define_symbol
- tcc_assemble_inline
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
Needed to handle signal() etc. with msvcrt
|
| |
|
|
|
|
| |
STT_GNU_IFUNC is always defined (there is no conditional definition of
it) so the ifdef test for STT_GNU_IFUNC in tccrun.c has no reason to
be.
|
| |
|
|
|
|
| |
Explicit the license in tiny_libmaker.c to LGPLv2. Confirmation of the
license of this file can be found at
http://lists.nongnu.org/archive/html/tinycc-devel/2010-07/msg00004.html
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
info files are introduced by commit 3f829d11ff231980383c384df2ae38e369cd8079
This patch helps packagers to avoid problems when install to $DESTDIR
>>> Starting src_install
make -j3 bindir=/tmp/paludis/dev-lang-tcc-9999/image//usr/bin libdir=/tmp/paludis/dev-lang-tcc-9999/image//usr/lib tccdir=/tmp/paludis/dev-lang-tcc-9999/image//usr/lib/tcc includedir=/tmp/paludis/dev-lang-tcc-9999/image//usr/include docdir=/tmp/paludis/dev-lang-tcc-9999/image//usr/share/doc/tcc-9999 mandir=/tmp/paludis/dev-lang-tcc-9999/image//usr/share/man install
mkdir -p "/tmp/paludis/dev-lang-tcc-9999/image//usr/bin"
install -m755 tcc "/tmp/paludis/dev-lang-tcc-9999/image//usr/bin"
mkdir -p "/tmp/paludis/dev-lang-tcc-9999/image//usr/share/man/man1"
install tcc.1 "/tmp/paludis/dev-lang-tcc-9999/image//usr/share/man/man1"
mkdir -p /usr/share/info
install tcc-doc.info "/usr/share/info"
ACCESS DENIED open_wr: /usr/share/info/tcc-doc.info
install: cannot create regular file `/usr/share/info/tcc-doc.info': Permission denied
make: *** [install] Error 1
/usr/libexec/paludis/utils/emake: emake returned error 2
Signed-off-by: Sergei Trofimovich <st@anti-virus.by>
|
| |
|
|
|
|
|
|
|
|
| |
* Move functions parse_asm_str and asm_label_instr from tccasm.c to
tccgen.c
* Remove CONFIG_TCC_ASM_LABEL macro as asm label are available on all
archs.
See:
http://lists.nongnu.org/archive/html/tinycc-devel/2010-09/msg00026.html
for the rationale.
|
| |
|
|
|
|
| |
Add support for __REDIRECT_NTH as eglibc makes use of this macro to
redirect long double functions to long functions on arch not supporting
long double.
|
| |
|
|
| |
Add info file creation in tcc Makefile
|
| | |
|
| |
|
|
|
| |
Add support for kfreebsd-i386 and kfreebsd-amd64 Debian arch with
thanks to Pierre Chifflier <chifflier@cpe.fr>.
|
| |
|
|
|
| |
+ Add i686-AT386 to the list of x86 platform
+ Define SA_SIGINFO is not defined
|
| |
|
|
|
|
| |
Add support for asm labels for functions, that is the ability to rename
a function at assembly level with __asm__ ("newname") appended in
function declaration.
|
| | |
|
| |
|
|
|
|
|
| |
This bug was reported in
http://lists.gnu.org/archive/html/tinycc-devel/2010-08/msg00050.html
In this case, we should not emit any code when we cast from VT_FUNC to VT_PTR.
|
| | |
|
| |
|
|
|
|
|
| |
- Fix a wrong calculation for size of struct
- Handle cases where struct size isn't multple of 8
- Recover vstack after memcpy for pushing struct
- Add a float parameter for struct_assign_test1 to check SSE alignment
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This reverts commit 433ecdfc9d1402ecf03e710de481e2063ad6de90.
The patch breaks e.g. with
for ((i = 10); --i;);
In particular to check for a type decl. this is not sufficient:
if (tok < TOK_UIDENT) {
A future approach to c99 loop variables might instead use:
if (parse_btype(...)) {
plus refactor function decl() accordingly.
|
| |
|
|
|
|
|
|
|
| |
Namely
* `-option' or `--option' (start with double or single dash)
* `-param=val' or `-param,val'
See GNU ld manual (2.1 Command Line Options)
|
| |
|
|
| |
Add link support to use indirect functions defined in external modules
|
| |
|
|
|
|
|
| |
This fixes commit 197a6acb30940068d1dc3d0fa53c9f0863309885
which fixed commit 95b9a477b6743004e0e9bf728b25bf63d2908777
Also remove useless example files
|
| |
|
|
|
| |
Doesn't seem to work on windows
This reverts commit 27988c5e6648810db2074a2e80edaf74678e9977.
|
| |
|
|
|
| |
Fix the $RANDOM bashism properly by using mktemp.
mktemp is part of MSYS so this should work on UNIXes and Windows
|
| |\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Hello up there.
I'm trying to change gcc to tcc for faster develpment on slow machines,
and the first obstacle that turned out was lack of dependency generation
on tcc side.
Attached patches try to fix that.
Thanks,
Kirill
* tcc-MD:
.gitignore += tags
tcc: Explicitly require -l<lib> for libraries
Document what tcc_fileextension does
tcc -E: Let output_default be <file>.o instead of a.out
tcc: Draft suppoprt for -MD/-MF options
tcc: Refactor "compute default outfile name" into libtcc function
Add input files/libs and reloc_output switch to TCCState
tcc: Fix typo in error (it's '%s', not '%s)
chmod a-x i386-gen.c
.gitignore += *.o *.a
.cvsignore -> .gitignore
|
| | | |
|
| | |
| |
| |
| |
| | |
Previously it was possible to specify e.g. -q<lib> and still link with
lib. Avoid such behaviour by checking for '-l' instead of '-l.'
|
| | |
| |
| |
| | |
This is evident, but won't hurt
|