summaryrefslogtreecommitdiff
path: root/symbian/missing-aeabi.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-15 01:55:41 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-15 01:55:41 +0000
commit5932de4991e48ffcae71be6885ecdf9f10dd8f02 (patch)
treeb6122adb67ee8c306e158d92f276b5b0c088823d /symbian/missing-aeabi.c
parentc6af6b1b947f8b367c22904bd5b31079784059f6 (diff)
* symbian/README.SYMBIAN: symbian support added. great appreciate
to <alexandre.zavorine at symbian.com>. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'symbian/missing-aeabi.c')
-rw-r--r--symbian/missing-aeabi.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/symbian/missing-aeabi.c b/symbian/missing-aeabi.c
new file mode 100644
index 0000000000..f8d7a85039
--- /dev/null
+++ b/symbian/missing-aeabi.c
@@ -0,0 +1,18 @@
+#if __GNUC__ > 3
+
+/* GCCE 4.3.2 generates these functions which are are missing from exports (they are simple aliases) */
+extern int __aeabi_uidivmod(unsigned int a, unsigned int b);
+extern int __aeabi_idivmod(int a, int b);
+int __aeabi_idiv(int a, int b)
+{
+ return __aeabi_idivmod(a, b);
+}
+
+int __aeabi_uidiv(unsigned int a, unsigned int b)
+{
+ return __aeabi_uidivmod(a, b);
+}
+
+#endif
+
+