Gentoo Archives: gentoo-alt

From: Michael Haubenwallner <michael.haubenwallner@×××××××.at>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] Re: [prefix] a few missing things for smooth x86-linux bootstrap
Date: Thu, 19 Apr 2007 15:50:13
Message-Id: 1176997973.7328.92.camel@localhost
In Reply to: Re: [gentoo-alt] Re: [prefix] a few missing things for smooth x86-linux bootstrap by Matt Michalowski
On Thu, 2007-04-19 at 14:54 +1000, Matt Michalowski wrote:
> Fabian Groffen wrote: > > On 19-04-2007 00:27:36 +1000, Matt Michalowski wrote: > >
<snip>
> # dhcp213:.../work/openssl-0.9.8e/crypto/engine# i686-pc-linux-gnu-gcc > -I.. -I../.. -I../../include -fPIC -DOPENSSL_PIC -DZLIB_SHARED -DZLIB > -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN > -DTERMIO -Wall -DOPENSSL_BN_ASM_PART_WORDS -DSHA1_ASM -DMD5_ASM > -DRMD160_ASM -DAES_ASM -Wa,--noexecstack -c -o eng_padlock.o > eng_padlock.c -march=i686 -O0 > eng_padlock.c: In function 'padlock_xcrypt_ecb': > eng_padlock.c:445: error: can't find a register in class 'GENERAL_REGS' > while reloading 'asm' > > where as: (-O1 -g) > # dhcp213:.../work/openssl-0.9.8e/crypto/engine# i686-pc-linux-gnu-gcc > -I.. -I../.. -I../../include -fPIC -DOPENSSL_PIC -DZLIB_SHARED -DZLIB > -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN > -DTERMIO -Wall -DOPENSSL_BN_ASM_PART_WORDS -DSHA1_ASM -DMD5_ASM > -DRMD160_ASM -DAES_ASM -Wa,--noexecstack -c -o eng_padlock.o > eng_padlock.c -O1 -g > > compiles fine. > > Now for my $0.02. eng_padlock is for VIA Padlock hardware support (hence > its ASM implementation), which I don't imagine is many x86 users let > alone prefix portage x86 users (I could be wrong :) ). It's pretty easy > to disable the VIA support, and OpenSSL will still function without it. > I've attached a patch. Maybe haubi will have some better ideas.
Thanks for the -O1 hint: My better(?) idea was to drop a testcase on gcc-help... /haubi/ -- gentoo-alt@g.o mailing list