With a little more investigation this seems to be a problem combining
level 2 optimisation (-O2) with SSE 2 (-msse2) when using the gcc
compiler.

Changing -O2 to -O1 'fixes' the problem, well, provides a work-around
anyway. Disabling SSE extensions but keeping the higher optimisation
flag also works.

Regards

Jim

On Tue, 2005-03-08 at 17:48 +0000, James Vanns wrote:
> All,
> 
> Stats:
> 
> Crypto++ version: 5.2.1
> OS: Linux
> Distribution: Fedora Core 3
> Compiler: g++ (gcc)
> Compiler Version: 3.4.2
> Compiler flags: -pipe -msse2 -O2 -DNDEBUG -fPIC -c 
> 
> Problem:
> 
> When hitting integer.cpp I get this error, which I did not on Fedora
> Core 2:
> 
> integer.cpp: In static member function `static void
> CryptoPP::P4Optimized::Multiply4(CryptoPP::word*, const CryptoPP::word*,
> const CryptoPP::word*)':
> integer.cpp:1704: error: insn does not satisfy its constraints:
> (insn 794 793 652 0 (set (reg/v:V2SI 21 xmm0 [orig:193 <anonymous> ]
> [193])
>         (mem:V2SI (plus:SI (reg/f:SI 6 bp)
>                 (const_int -136 [0xffffff78])) [0 S8 A8])) 499
> {movv2si_internal} (nil)
>     (nil))
> integer.cpp:1704: internal compiler error: in
> reload_cse_simplify_operands, at postreload.c:391
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
> Preprocessed source stored into /tmp/ccryMiGl.out file, please attach
> this to your bugreport.
> make: *** [integer.o] Error 1
> 
> I'm afraid I'm in too much of a rush to get home to diagnose any further
> so please excuse my laziness! However, just thought I'd post this to the
> list just to get the ball rolling in case its either
> 
> a) A new [compilation] bug
> b) One I don't know of but someone can help ;-)
> 
> Regards
> 
> Jim Vanns
> 
-- 
James Vanns BSc (Hons) MCP
Linux Systems Administrator
Software Engineer (Linux / C & C++)
Canterbury Christ Church University College
Public Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x24045370


Reply via email to