Bug#379497: libjpeg-mmx: FTBFS: Error: suffix or operands invalid for `ldmxcsr'
tags 379497 + patch
thanks
hi,
attached patch fixes this issue. Im not entirely sure if it breaks
something, see this bugreport:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26653
as by now upstream has not fixed this either in CVS or newer releases.
bye,
- michael
--- libjpeg-mmx-0.1.5.orig/jquant_x86simd.c
+++ libjpeg-mmx-0.1.5/jquant_x86simd.c
@@ -104,7 +104,7 @@
/* Initialise zero block flags */
/* Set up SSE rounding mode */
- __asm__ ( "ldmxcsr %0\n" : : "X" (trunc_mxcsr) );
+ __asm__ ( "ldmxcsr %0\n" : : "m" (*&trunc_mxcsr) );
for (i=0; i < 64 ; i+=4)
{
Reply to: