Fix x86 assembler on GCC 3.

Thanks to Karl Berry.
This commit is contained in:
Lasse Collin 2009-08-29 13:35:23 +03:00
parent 682efdc1f9
commit 43f44160b1
2 changed files with 10 additions and 4 deletions

View File

@ -117,8 +117,11 @@ LZMA_CRC32:
*/ */
#if (!defined(PIC) && !defined(__PIC__)) \ #if (!defined(PIC) && !defined(__PIC__)) \
|| (defined(_WIN32) || defined(__CYGWIN__)) || (defined(_WIN32) || defined(__CYGWIN__))
/* Not PIC */ /*
movl $LZMA_CRC32_TABLE, %ebx * Not PIC.
* Using MAKE_SYM since $LZMA_CRC32_TABLE breaks with GCC 3.
*/
movl MAKE_SYM($, LZMA_CRC32_TABLE), %ebx
#elif defined(__MACH__) #elif defined(__MACH__)
/* Mach-O */ /* Mach-O */
call .L_get_pc call .L_get_pc

View File

@ -108,8 +108,11 @@ LZMA_CRC64:
*/ */
#if (!defined(PIC) && !defined(__PIC__)) \ #if (!defined(PIC) && !defined(__PIC__)) \
|| (defined(_WIN32) || defined(__CYGWIN__)) || (defined(_WIN32) || defined(__CYGWIN__))
/* Not PIC */ /*
movl $LZMA_CRC64_TABLE, %ebx * Not PIC.
* Using MAKE_SYM since $LZMA_CRC64_TABLE breaks with GCC 3.
*/
movl MAKE_SYM($, LZMA_CRC64_TABLE), %ebx
#elif defined(__MACH__) #elif defined(__MACH__)
/* Mach-O */ /* Mach-O */
call .L_get_pc call .L_get_pc