Mercurial > sdl-ios-xcode
annotate .DISABLED-hgeol @ 5130:f2c2f0ecba5f
Fixed bug #1111
kwm@rainbow-runner.nl 2011-01-30 06:28:27 PST
Created attachment 562 [details]
Build fix with clang.
When building sdl 1.2.14 with the Clang compiler http://clang.llvm.org .
The build fails in src/video/mmx.h with the following error:
--------------------------------------------------
./src/video/SDL_RLEaccel.c:831:5: error: invalid operand for instruction
CHOOSE_BLIT(RLECLIPBLIT, alpha, fmt);
^
./src/video/SDL_RLEaccel.c:831:17: note: instantiated from:
CHOOSE_BLIT(RLECLIPBLIT, alpha, fmt);
^
./src/video/SDL_RLEaccel.c:831:5: note: instantiated from:
CHOOSE_BLIT(RLECLIPBLIT, alpha, fmt);
^
./src/video/SDL_RLEaccel.c:647:23: note: instantiated from:
blitter(2, Uint8, ALPHA_BLIT16_565MMX); \
^
./src/video/SDL_RLEaccel.c:282:4: note: instantiated from:
movq_r2m(mm3, *dstp); \
^
In file included from ./src/video/SDL_RLEaccel.c:99:
./src/video/mmx.h:379:28: note: instantiated from:
#define movq_r2m(reg, var) mmx_r2m(movq, reg, var)
^
<scratch space>:192:1: note: instantiated from:
"movq"
^
<inline asm>:1:2: note: instantiated into assembly here
movq %mm3, %dx
^
--------------------------------------------------
According to the clang developers this is a invalid inline assembly.
Using the attached patch from the last commit in the below bug report fixes the
compile.
More details from: http://llvm.org/bugs/show_bug.cgi?id=6730
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 30 Jan 2011 13:42:05 -0800 |
parents | 2936fc46b015 |
children |
rev | line source |
---|---|
5054
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
1 [patterns] |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
2 .hgeol = native |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
3 .hgignore = native |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
4 BUGS = native |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
5 CREDITS = native |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
6 INSTALL = native |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
7 NOTES = native |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
8 TODO = native |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
9 WhatsNew = native |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
10 **COPYING = native |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
11 **README = native |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
12 **doxyfile = native |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
13 **Doxyfile = native |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
14 **install-sh = LF |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
15 **mkinstalldirs = LF |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
16 **Makefile = LF |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
17 **Makefile.* = LF |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
18 test/automated/rwops/read = LF |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
19 **README.* = native |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
20 **.S = native |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
21 **.bmp = BIN |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
22 **.c = native |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
23 **.cc = native |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
24 **.cpp = native |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
25 **.csh = LF |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
26 **.dat = BIN |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
27 **.gdbinit = LF |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
28 build-scripts/config.guess = LF |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
29 **.h = native |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
30 **.htm = native |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
31 **.html = native |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
32 **.icns = BIN |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
33 **.in = LF |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
34 **.java = native |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
35 **.m = native |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
36 **.m4 = native |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
37 **.mk = LF |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
38 **.nib = BIN |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
39 **.pch = BIN |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
40 **.pdf = BIN |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
41 **.pl = native |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
42 **.plist = native |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
43 **.png = BIN |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
44 .indent.pro = LF |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
45 **.rc = native |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
46 **.rtf = BIN |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
47 **.sh = LF |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
48 **.sln = native |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
49 **.txt = native |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
50 **.vcp = native |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
51 **.vcproj = native |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
52 **.vcw = native |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
53 **.vcxproj = native |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
54 **.wav = BIN |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
55 **.xbm = BIN |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
56 **.xml = native |
8af42aba8e17
Added .hgeol to handle file EOL conversion.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
57 **.zip = BIN |