delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/02/26/15:03:50

Message-ID: <B0000077577@stargate.astr.lu.lv>
From: "Andris Pavenis" <pavenis AT lanet DOT lv>
To: "Mark E." <snowball3 AT usa DOT net>, djgpp-workers AT delorie DOT com
Date: Fri, 26 Feb 1999 22:03:36 +0200
MIME-Version: 1.0
Subject: Re: gas warning with _my_ds
In-reply-to: <199902261923.TAA125560@out2.ibm.net>
X-mailer: Pegasus Mail for Win32 (v3.02b14)
Reply-To: djgpp-workers AT delorie DOT com

On 26 Feb 99, at 14:23, Mark E. wrote:

> While working on calling chroot() on startup when the right 
> environmental variables are set, I came across this minor problem:
> 
> Compiling the program below with a binutils snapshot from Oct/Nov 98 
> produces a warning:
> 
> c:/djgpp/tmp/cc5xliF6.s: Assembler messages:
> c:/djgpp/tmp/cc5xliF6.s:24: Warning: using `%ecx' instead of `%cx' due 
> to `l' suffix
> 
> #include <sys/segments.h>
> 
> int main()
> {
>   _my_ds();
>   return 0;
> }
> 
> the offending instruction seems to be 'movl %ds,%cx' in _my_ds().
> 
> Does it still occur with a more recent snapshot? Does _my_ds() need 
> adjustment or does this need to be reported to the binutils people? 
> 

It is known problem. In end of January I sent patch to djgpp-workers that
fixes these and also other similar problems problem (January 25).
So I think DJGPP include files and also some files in djlsr202.zip should be fixed.
Simply assmebler is doing more strict checking of input as before.

Andris

 

- Raw text -


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