Source file from "TaoCrypt release 0.9.2   02/5/2007", which is part of MySQL
source tree.

Works with gcc 4.3.3. With gcc 4.4.1, g++ (or gcc) crashes in the compilation
process due to complain from as.

Command line:
% g++ -static-libgcc -DHAVE_CONFIG_H -I. -I../../../../include -I./../include
-I./../mySTL -DYASSL_PURE_C -m32 -O2 -fprofile-generate -fno-implicit-templates
-fno-exceptions -fno-rtti -MT libtaocrypt_la-aes.lo -MD -MP -MF
.deps/libtaocrypt_la-aes.Tpo -c aes.cpp  -fPIC -DPIC -o
.libs/libtaocrypt_la-aes.o

Then it generates:
/tmp/ccc40tU0.s: Assembler messages:
/tmp/ccc40tU0.s:35: Error: no such instruction: `addl $1,8+.lp...@gotoff(%ebx)'
/tmp/ccc40tU0.s:36: Error: no such instruction: `adcl
$0,12+.lp...@gotoff(%ebx)'
/tmp/ccc40tU0.s:42: Error: no such instruction: `addl
$1,16+.lp...@gotoff(%ebx)'
/tmp/ccc40tU0.s:43: Error: no such instruction: `adcl
$0,20+.lp...@gotoff(%ebx)'
/tmp/ccc40tU0.s:49: Error: no such instruction: `addl
$1,24+.lp...@gotoff(%ebx)'
/tmp/ccc40tU0.s:50: Error: no such instruction: `adcl
$0,28+.lp...@gotoff(%ebx)'
/tmp/ccc40tU0.s:56: Error: no such instruction: `addl
$1,32+.lp...@gotoff(%ebx)'
/tmp/ccc40tU0.s:57: Error: no such instruction: `adcl
$0,36+.lp...@gotoff(%ebx)'
/tmp/ccc40tU0.s:63: Error: no such instruction: `addl
$1,40+.lp...@gotoff(%ebx)'
/tmp/ccc40tU0.s:64: Error: no such instruction: `adcl
$0,44+.lp...@gotoff(%ebx)'
/tmp/ccc40tU0.s:70: Error: no such instruction: `addl
$1,48+.lp...@gotoff(%ebx)'
/tmp/ccc40tU0.s:71: Error: no such instruction: `adcl
$0,52+.lp...@gotoff(%ebx)'
/tmp/ccc40tU0.s:77: Error: no such instruction: `addl
$1,56+.lp...@gotoff(%ebx)'

...


-- 
           Summary: gcc generates invalid instructions when used with -m32 -
                    fprofile-generate
           Product: gcc
           Version: 4.4.1
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: raysonlogin at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41524

Reply via email to