This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: i686-pc-linux-gnulibc1 with -march=pentiumpro



>>   In message <199712300839.IAA00756@odie.demon.co.uk>you write:
>>   > 
>>   > [ Linux-2.0.33-SMP, libc-5.4.42, ld.so-1.9.5, binutils-2.8.1.0.15 ]
>>   > 
>>   > When compiling the gcc part of egcs, stage1 with gcc2.7.2.2, the
>>   > resulting compiler cannot compile itself with the options
>>   > "-O2 -mpentiumpro -march=pentiumpro -mcpu=pentiumpro"...
>>   > 
>>   > % ./configure --prefix=/usr --with-gnu-as --with-gnu-ld --with-gxx-include-
>>   > dir=/usr/lib/gcc-lib/i686-pc-linux-gnulibc1/egcs-2.91.03/include/g++ --enab
>>   > le-shared i686-pc-linux-gnulibc1
>>   > ...
>>   > % stage1/xgcc -Bstage1/ -c  -DIN_GCC   -DUSE_GNULIBC_1 -O2 -mpentiumpro -ma
>>   > rch=pentiumpro -mcpu=pentiumpro  -DHAVE_CONFIG_H -I. -I. -I./config stor-la
>>   > yout.c
>>   > /tmp/cca00409.s: Assembler messages:
>>   > /tmp/cca00409.s:581: Error: invalid character '$' in opcode
>>   > /tmp/cca00409.s:582: Error: invalid character '$' in opcode
>
>Please add -v to the last failed command and run it manually. Post
>the output.

This mail was actually sent to the list ages ago. Stan Cox found the
problem in the i386.md file for some of the conditional move
stuff. It was usinThe fix is in the egcs-development tree (went in on
Jan 10) but not in the egcs-1.0 release branch... hopefully this will
be fixed before 1.0.2.

Sat Jan 10 22:04:15 1998  Stan Cox  <scox@equinox.cygnus.com>

        * i386.md: (movsicc_1, movhicc_1):  For alternate 3 set the opcode
        suffix from operand 3.

diff i386.md.real i386.md
7315,7316c7315,7316
<             output_asm_insn (AS2 (mov%z2,%3,%4), operands);
<             output_asm_insn (AS2 (mov%z2,%4,%0), operands);
---
>             output_asm_insn (AS2 (mov%z3,%3,%4), operands);
>             output_asm_insn (AS2 (mov%z3,%4,%0), operands);
7376,7377c7376,7377
<             output_asm_insn (AS2 (mov%z2,%3,%4), operands);
<             output_asm_insn (AS2 (mov%z2,%4,%0), operands);
---
>             output_asm_insn (AS2 (mov%z3,%3,%4), operands);
>             output_asm_insn (AS2 (mov%z3,%4,%0), operands);


Andrew.
--
   Andrew Pollard, Auto Simulations Ltd. UK.    | home: andrew@odie.demon.co.uk
   2 Milbanke Court, Milbanke Way, Bracknell    | work: andrewp@autosim.com
Tel:+44(0)1344 426486x103 Fax:+44(0)1344 426615 | http://www.odie.demon.co.uk


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]