Bug 50111 - Option -O0 cause "Error: unsupported for `movq'"
Summary: Option -O0 cause "Error: unsupported for `movq'"
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: inline-asm (show other bugs)
Version: 4.6.1
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-18 02:23 UTC by llancelot7
Modified: 2011-08-18 02:28 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description llancelot7 2011-08-18 02:23:57 UTC
While compiling http://www.libsdl.org/release/SDL-1.2.14.tar.gz with CFLAGS="-g -O0" appears:
./src/video/SDL_RLEaccel.c: Assembler messages:
./src/video/SDL_RLEaccel.c:831: Error: unsupported for `movq'
./src/video/SDL_RLEaccel.c:831: Error: unsupported for `movq'
./src/video/SDL_RLEaccel.c:831: Error: unsupported for `movq'
./src/video/SDL_RLEaccel.c:831: Error: unsupported for `movq'
./src/video/SDL_RLEaccel.c:930: Error: unsupported for `movq'
./src/video/SDL_RLEaccel.c:930: Error: unsupported for `movq'
./src/video/SDL_RLEaccel.c:930: Error: unsupported for `movq'
./src/video/SDL_RLEaccel.c:930: Error: unsupported for `movq'

Any other -OX flag gives no errors. No flag gives error.
On 4.4.X and on 4.5.X versions -O0 gives no errors while compilation. 
(Tested on i386 arch).
Comment 1 Andrew Pinski 2011-08-18 02:25:15 UTC
I really doubt this is a bug in GCC but rather SDL's inline-asm.
Comment 2 Andrew Pinski 2011-08-18 02:28:14 UTC
 "=X" (mmx_trace)

`X'
    Any operand whatsoever is allowed. 

They most likely want:
y
    Any MMX register.