[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] Cleanups
From: |
Thomas Preud'homme |
Subject: |
Re: [Tinycc-devel] Cleanups |
Date: |
Mon, 4 Feb 2013 17:08:24 +0100 |
User-agent: |
KMail/1.13.7 (Linux/3.2.0-4-amd64; KDE/4.8.4; x86_64; ; ) |
Le lundi 4 février 2013 16:30:53, grischka a écrit :
> Hi, I reinstalled my linux partitions and did run some tests.
>
> My conclusions:
> 1) too many warnings "conversion from/to ptr <-> integer of different size"
>
> http://repo.or.cz/w/tinycc.git/commitdiff/82bcbd027f100d7601c6139e93e1f69a
> 9cc46244
Why some uplong were replaced by uintptr_t?
>
> 2) CONFIG_LDDIR for x86_64 wasn't set correctly on my (rather old) ubuntu
> 64.
> http://repo.or.cz/w/tinycc.git/commitdiff/3186455599043938d765b4cc9b92af5f
> de7241cd
Oups, that must have been me. However the commit break my link:
% cat needed_brace.c
#include <stdio.h>
static void func();
int main(int argc, char **argv)
{
static struct s {
void (*elem)();
} t[] = {
{func} /* tcc requires these braces! (see 6.7.8
"Initialization" §16-17) */
};
printf("func is %p, t[0].func is %p\n", func, t[0].elem);
return 0;
}
static void func()
{
int x = 1;
x++;
}
% tcc -o needed_brace needed_brace.c
tcc: error: undefined symbol '__libc_csu_fini'
tcc: error: undefined symbol '__libc_csu_init'
tcc: error: undefined symbol '__libc_start_main'
tcc: error: undefined symbol 'printf'
zsh: exit 1 tcc -o needed_brace needed_brace.c
It seems the rewriting in Makefile wasn't right.
>
> This now compiles for configure --enable-cross without warnings
> on both my linuxes 32 and 64 (and passes make test).
>
> Please verify that I didn't break something. Thanks,
>
> --- grischka
Thomas
signature.asc
Description: This is a digitally signed message part.
Re: [Tinycc-devel] Cleanups, grischka, 2013/02/04