tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] Largish mob update from me


From: Michael Matz
Subject: Re: [Tinycc-devel] Largish mob update from me
Date: Sun, 18 Dec 2016 01:44:21 +0100 (CET)
User-agent: Alpine 2.20 (LSU 67 2015-01-07)

Hi,

On Sat, 17 Dec 2016, Thomas Preud'homme wrote:

Some recent change between bf692af3 (from 2016-11-12) and fe6453f8 (from
2016-12-10) broke gawk (on x86-64), and that fail still exists with my
changes on the top; I haven't investigated that yet, but it's mostly
changes for separating out relocation processing (hello Thomas :) ).

Grishka did a couple more fix on this. Do you still see the error?

Yes, the changes on that didn't really help. I'll need some more time to really digest the changes (to which I generally agree) but at the outset it looks like it contains some confusion (e.g. a R_X86_64_64 relocation does _not_ normally need a GOT slot or PLT entry (not even for UNDEF symbols) like what was introduced with 6cd23d; then 523b55d introduced the error in gawk because it mishandles UNDEF 64_64 relocs and that never was rectified)

I'm observing the following error in the testsuite now when building and
testing tcc on a i386 platform:

Hmm, I've tested in a "virtual" i386 environment (linux32, CC="gcc -m32"), which might not quite do the same as a real native one.

gcc -o tcctest.gcc tcctest.c -DCONFIG_TRIPLET="\"i386-linux-gnu\"" -
DTCC_TARGET_I386 -I.. -I.. -w -O0 -std=gnu99 -fno-omit-frame-pointer
tcctest.c: In function ‘get_asm_string’:
tcctest.c:3151:3: error: impossible constraint in ‘asm’
  "1:\n"
  ^~~

Hum, that's a bit surprising given that the constraints really are trivial:

  asm ("" : : "i" ("A string"));

Can I ask which gcc version this is? (For me it works (with -m32) with 5.3.1 and 4.7).


Ciao,
Michael.

reply via email to

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