Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 151509

Summary: media-libs/jpeg-mmx fails with gcc41 with march=i686
Product: Gentoo Linux Reporter: Tyler Montbriand <tyler>
Component: [OLD] LibraryAssignee: SpanKY <vapier>
Status: RESOLVED WONTFIX    
Severity: normal CC: graphics+disabled
Priority: High    
Version: 2006.1   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Tyler Montbriand 2006-10-15 14:41:32 UTC
Similar to Bug 119851, a combination of gcc41 and -march=i686 causes compiler
errors in jcdctmgr.c, "suffix or operands invalid for `movq'", for EVERY instance
of movq in that file.  This patch fixes the problem.  It may only be needed for
i686.
http://burningsmell.org/patch/jpeg-mmx-0.1.6-i686.patch
Comment 1 Ryan Hill (RETIRED) gentoo-dev 2006-10-15 15:59:59 UTC
i can't reproduce this.  can i get emerge --info?
Comment 2 Ryan Hill (RETIRED) gentoo-dev 2006-10-15 16:06:14 UTC
okay, got it.  only occurs at -O0.
Comment 3 Ryan Hill (RETIRED) gentoo-dev 2006-10-15 16:11:46 UTC
vapier, are you still maintaining this?  if so do you prefer patching the header or forcing >=-O1?
Comment 4 SpanKY gentoo-dev 2006-10-15 19:34:29 UTC
forcing flags is wrong ... you cant assume that -O1+ will always work

using an X operand is wrong ... you need a constraint that all of these instructions can use as a source ("m" will probably work fine):
movd
movq
packssdw
packsswb
packuswb
paddb
paddd
paddsb
paddsw
paddusb
paddusw
paddw
pand
pandn
pavgb
pavgw
pcmpeqb
pcmpeqd
pcmpeqw
pcmpgtb
pcmpgtd
pcmpgtw
pmaddwd
pmaxsw
pmaxub
pminsw
pminub
pmulhuw
pmulhw
pmullw
por
psadbw
pslld
psllq
psllw
psrad
psraw
psrld
psrlq
psrlw
psubb
psubd
psubsb
psubsw
psubusb
psubusw
psubw
punpckhbw
punpckhdq
punpckhwd
punpcklbw
punpckldq
punpcklwd
pxor
Comment 5 SpanKY gentoo-dev 2006-11-04 23:25:08 UTC
jpeg-mmx is dead