Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
2697ff2a
Commit
2697ff2a
authored
Sep 23, 2009
by
Matthias Klose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Issue #6980: Fix ctypes build failure on armel-linux-gnueabi with
-mfloat-abi=softfp.
parent
751c2038
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
8 deletions
+18
-8
Misc/NEWS
Misc/NEWS
+3
-0
Modules/_ctypes/libffi/src/arm/sysv.S
Modules/_ctypes/libffi/src/arm/sysv.S
+15
-8
No files found.
Misc/NEWS
View file @
2697ff2a
...
...
@@ -281,6 +281,9 @@ Extension Modules
Build
-----
- Issue #6980: Fix ctypes build failure on armel-linux-gnueabi with
-mfloat-abi=softfp.
- Issue #6802: Fix build issues on MacOSX 10.6
- Issue 5390: Add uninstall icon independent of whether file
...
...
Modules/_ctypes/libffi/src/arm/sysv.S
View file @
2697ff2a
...
...
@@ -67,11 +67,18 @@
#if defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_6J__) \
|
|
defined
(
__ARM_ARCH_6K__
)
||
defined
(
__ARM_ARCH_6Z__
)
\
|
|
defined
(
__ARM_ARCH_6ZK__
)
|
|
defined
(
__ARM_ARCH_6ZK__
)
||
defined
(
__ARM_ARCH_6T2__
)
\
|
|
defined
(
__ARM_ARCH_6M__
)
# undef __ARM_ARCH__
# define __ARM_ARCH__ 6
#endif
#if defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) \
|
|
defined
(
__ARM_ARCH_7R__
)
||
defined
(
__ARM_ARCH_7M__
)
# undef __ARM_ARCH__
# define __ARM_ARCH__ 7
#endif
#if __ARM_ARCH__ >= 5
# define call_reg(x) blx x
#elif defined (__ARM_ARCH_4T__)
...
...
@@ -189,7 +196,7 @@ ARM_FUNC_START ffi_call_SYSV
@
return
INT
cmp
r3
,
#
FFI_TYPE_INT
#if
def __SOFTFP__
#if
defined(__SOFTFP__) || defined(__ARM_EABI__)
cmpne
r3
,
#
FFI_TYPE_FLOAT
#endif
streq
r0
,
[
r2
]
...
...
@@ -197,12 +204,12 @@ ARM_FUNC_START ffi_call_SYSV
@
return
INT64
cmp
r3
,
#
FFI_TYPE_SINT64
#if
def __SOFTFP__
#if
defined(__SOFTFP__) || defined(__ARM_EABI__)
cmpne
r3
,
#
FFI_TYPE_DOUBLE
#endif
stmeqia
r2
,
{
r0
,
r1
}
#if
ndef __SOFTFP__
#if
!defined(__SOFTFP__) && !defined(__ARM_EABI__)
beq
LSYM
(
Lepilogue
)
@
return
FLOAT
...
...
@@ -245,21 +252,21 @@ ARM_FUNC_START ffi_closure_SYSV
beq
.
Lretint
cmp
r0
,
#
FFI_TYPE_FLOAT
#if
def __SOFTFP__
#if
defined(__SOFTFP__) || defined(__ARM_EABI__)
beq
.
Lretint
#else
beq
.
Lretfloat
#endif
cmp
r0
,
#
FFI_TYPE_DOUBLE
#if
def __SOFTFP__
#if
defined(__SOFTFP__) || defined(__ARM_EABI__)
beq
.
Lretlonglong
#else
beq
.
Lretdouble
#endif
cmp
r0
,
#
FFI_TYPE_LONGDOUBLE
#if
def __SOFTFP__
#if
defined(__SOFTFP__) || defined(__ARM_EABI__)
beq
.
Lretlonglong
#else
beq
.
Lretlongdouble
...
...
@@ -278,7 +285,7 @@ ARM_FUNC_START ffi_closure_SYSV
ldr
r1
,
[
sp
,
#
4
]
b
.
Lclosure_epilogue
#if
ndef __SOFTFP__
#if
!defined(__SOFTFP__) && !defined(__ARM_EABI__)
.
Lretfloat
:
ldfs
f0
,
[
sp
]
b
.
Lclosure_epilogue
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment