www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2011/06/23/03:53:42

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
X-Recipient: djgpp-workers AT delorie DOT com
MIME-Version: 1.0
In-Reply-To: <201106230656.30510.juan.guerrero@gmx.de>
References: <201106230342 DOT 56961 DOT juan DOT guerrero AT gmx DOT de>
<BANLkTi=u0A+oT8T7b+3JK2STYs8Jq81awQ AT mail DOT gmail DOT com>
<201106230656 DOT 30510 DOT juan DOT guerrero AT gmx DOT de>
Date: Thu, 23 Jun 2011 00:31:13 -0700
Message-ID: <BANLkTinZgVgHp5oCS_bTy6HC-SrMpcRujw@mail.gmail.com>
Subject: Re: Difficulties compiling libc using GCC 4.5.3
From: Daniel Verkamp <daniel AT drv DOT nu>
To: djgpp-workers AT delorie DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id p5N7rWXm005057
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Wed, Jun 22, 2011 at 9:56 PM, Juan Manuel Guerrero
<juan DOT guerrero AT gmx DOT de> wrote:
> Am Donnerstag, 23. Juni 2011 schrieb Rugxulo:
>
>> "sil" is a AMD64 (64-bit long mode) register (isn't it?), so your GAS
>> must be confused with normal "si" and AT&T syntax "l" size postfix.
>
> si is the source index register.
> AFAIK sil = 8bit, si = 16bit, esi = 32bit, rsi = 64bit.
> The AT&T syntax "l" size postfix is applied to the opcode and
> not to the registers AFAIK.  E.g. movl = 32bit move opcode.
>
> It should be noted that the bug appears if compiled with -O0.
> It compiles flawessly for -O1 and -O2.  The same bug appears
> with GCC 4.6.0
>
> Regards,
> Juan M. Guerrero
>

The constraints for read_allowed and write_allowed should probably be
"=qm", not "=g", since the asm uses movb with these as parameters.
The compiler is allowed to pick any general-purpose register (or
memory) for the 'g' constraint, even ones that do not have byte parts
(like %si); 'q' is limited to register that have byte parts (%ax, %bx,
%cx, %dx).

-- Daniel Verkamp

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019