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

Message-Id: <199902262040.UAA136160@out2.ibm.net>
From: "Mark E." <snowball3 AT usa DOT net>
To: djgpp-workers AT delorie DOT com
Date: Fri, 26 Feb 1999 15:40:27 -0500
MIME-Version: 1.0
Subject: Re: gas warning with _my_ds
In-reply-to: <199902261940.OAA24273@envy.delorie.com>
References: <199902261923 DOT TAA125560 AT out2 DOT ibm DOT net> (snowball3 AT usa DOT net)
X-mailer: Pegasus Mail for Win32 (v3.01d)
Reply-To: djgpp-workers AT delorie DOT com

--Message-Boundary-30374
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Content-description: Mail message body

> 
> That would be a djgpp bug, it should be movw.  Please submit a patch.

The patch is attached to this message.

Mark



--Message-Boundary-30374
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Content-description: Text from file 'segments.diff'

*** include/sys/segments.h.orig	Sun Jun 28 22:13:52 1998
--- include/sys/segments.h	Fri Feb 26 15:34:58 1999
***************
*** 17,23 ****
  _my_cs(void)
  {
    unsigned short result;
!   __asm__("movl %%cs,%0" : "=r" (result));
    return result;
  }
  
--- 17,23 ----
  _my_cs(void)
  {
    unsigned short result;
!   __asm__("movw %%cs,%0" : "=r" (result));
    return result;
  }
  
***************
*** 25,31 ****
  _my_ds(void)
  {
    unsigned short result;
!   __asm__("movl %%ds,%0" : "=r" (result));
    return result;
  }
  
--- 25,31 ----
  _my_ds(void)
  {
    unsigned short result;
!   __asm__("movw %%ds,%0" : "=r" (result));
    return result;
  }
  
***************
*** 33,39 ****
  _my_ss(void)
  {
    unsigned short result;
!   __asm__("movl %%ss,%0" : "=r" (result));
    return result;
  }
  
--- 33,39 ----
  _my_ss(void)
  {
    unsigned short result;
!   __asm__("movw %%ss,%0" : "=r" (result));
    return result;
  }
  

--Message-Boundary-30374--

- Raw text -


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