--- gcc/config/i386/perform.h 2018/04/24 18:10:27 1.1.1.1 +++ gcc/config/i386/perform.h 2018/04/24 18:30:49 1.1.1.3 @@ -1,5 +1,5 @@ /* Definitions for AT&T assembler syntax for the Intel 80386. - Copyright (C) 1988 Free Software Foundation, Inc. + Copyright (C) 1993 Free Software Foundation, Inc. This file is part of GNU CC. @@ -15,7 +15,8 @@ GNU General Public License for more deta You should have received a copy of the GNU General Public License along with GNU CC; see the file COPYING. If not, write to -the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ +the Free Software Foundation, 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. */ /* Defines to be able to build libgcc.a with GCC. */ @@ -41,9 +42,11 @@ the Free Software Foundation, 675 Mass A { \ register int dx asm("dx"); \ register int ax asm("ax"); \ + register int cx asm("cx"); \ \ ax = arg0; \ - asm ("cltd\n\tidivl %3" : "=a" (ax), "=d" (dx) : "a" (ax), "g" (arg1)); \ + cx = arg1; \ + asm ("cltd\n\tidivl %3" : "=a" (ax), "=&d" (dx) : "a" (ax), "c" (cx)); \ return ax; \ } @@ -62,9 +65,11 @@ the Free Software Foundation, 675 Mass A { \ register int dx asm("dx"); \ register int ax asm("ax"); \ + register int cx asm("cx"); \ \ ax = arg0; \ - asm ("cltd\n\tidivl %3" : "=a" (ax), "=d" (dx) : "a" (ax), "g" (arg1)); \ + cx = arg1; \ + asm ("cltd\n\tidivl %3" : "=a" (ax), "=&d" (dx) : "a" (ax), "c" (cx)); \ return dx; \ }