summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-09-07 14:50:26 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-09-07 14:50:26 +0000
commit7791843a371257738207a077efc964dbe3388b2b (patch)
tree32f54f0120833ebe172428f88d436b48d63353a1
parent3bd943e046d155e1563f6b8e267d74f0682a4871 (diff)
downloadrockbox-7791843a371257738207a077efc964dbe3388b2b.tar.gz
rockbox-7791843a371257738207a077efc964dbe3388b2b.tar.bz2
rockbox-7791843a371257738207a077efc964dbe3388b2b.zip
m68k/setjmp.S: fix build with gcc 3.4.6 -std=gnu99
The register prefix is always % for the architecture we use (elf), hardcode it instead of confusing the preprocessor git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28025 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--lib/libsetjmp/m68k/setjmp.S38
1 files changed, 17 insertions, 21 deletions
diff --git a/lib/libsetjmp/m68k/setjmp.S b/lib/libsetjmp/m68k/setjmp.S
index 86eda8079c..8d547ae2fb 100644
--- a/lib/libsetjmp/m68k/setjmp.S
+++ b/lib/libsetjmp/m68k/setjmp.S
@@ -7,27 +7,23 @@
#define SYM(x) CONCAT1 (__USER_LABEL_PREFIX__, x)
-/* Use the right prefix for registers. */
-
-#define REG(x) CONCAT1 (__REGISTER_PREFIX__, x)
-
-#define d0 REG (d0)
-#define d1 REG (d1)
-#define d2 REG (d2)
-#define d3 REG (d3)
-#define d4 REG (d4)
-#define d5 REG (d5)
-#define d6 REG (d6)
-#define d7 REG (d7)
-#define a0 REG (a0)
-#define a1 REG (a1)
-#define a2 REG (a2)
-#define a3 REG (a3)
-#define a4 REG (a4)
-#define a5 REG (a5)
-#define a6 REG (a6)
-#define fp REG (fp)
-#define sp REG (sp)
+#define d0 %d0
+#define d1 %d1
+#define d2 %d2
+#define d3 %d3
+#define d4 %d4
+#define d5 %d5
+#define d6 %d6
+#define d7 %d7
+#define a0 %a0
+#define a1 %a1
+#define a2 %a2
+#define a3 %a3
+#define a4 %a4
+#define a5 %a5
+#define a6 %a6
+#define fp %fp
+#define sp %sp
.global SYM (setjmp)