1.4.0/rijndael.c/do_padlock: can't find a register in class `GENERAL_REGS' while reloading `asm' on elder gccs

Axel Thimm Axel.Thimm at ATrpms.net
Sun Jan 13 10:01:43 CET 2008


Hi,

trying to build libgcrypt on RHEL4 (gcc 3.4.6) and RHEL3 (gcc 3.2.3)
fails with the above on i386 (which is register starved anyway),
x86_64 for example builds fine.

As later gcc version can build this even on i386 it looks like a gcc
shortcoming of that era. Still one would like to be able to build
libgcrypt on these distros :(

With RHEL4's gcc 3.4.6 a possible workaround is to use -O0 to gcc, but
that doesn't work with RHEL3's 3.2.3. :(

bash-2.05b# gcc -O0 -DHAVE_CONFIG_H -I. -I..  -I../src -I../src -c -o rijndael.o rijndael.c
rijndael.c: In function `do_padlock':
rijndael.c:2062: can't find a register in class `GENERAL_REGS' while reloading `asm'

Is there any workaround to get this building on older gccs? Thanks!
-- 
Axel.Thimm at ATrpms.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: </pipermail/attachments/20080113/7e6e35c7/attachment.pgp>


More information about the Gcrypt-devel mailing list