Tag functions in asm properly. Thanks to Matthias Klose for debugging the issue.

pull/1884/merge
Jussi Pakkanen 8 years ago
parent a48a9217e4
commit 4b3eaf1b66
  1. 7
      test cases/common/127 cpp and asm/retval-arm.S
  2. 7
      test cases/common/127 cpp and asm/retval-x86.S
  3. 7
      test cases/common/127 cpp and asm/retval-x86_64.S
  4. 7
      test cases/common/141 c cpp and asm/retval-arm.S
  5. 8
      test cases/common/141 c cpp and asm/retval-x86.S
  6. 7
      test cases/common/141 c cpp and asm/retval-x86_64.S

@ -2,7 +2,10 @@
.text
.globl SYMBOL_NAME(get_retval)
# ifdef __linux__
.type get_retval, %function
#endif
SYMBOL_NAME(get_retval):
mov r0, #0
mov pc, lr
mov r0, #0
mov pc, lr

@ -2,7 +2,10 @@
.text
.globl SYMBOL_NAME(get_retval)
# ifdef __linux__
.type get_retval, %function
#endif
SYMBOL_NAME(get_retval):
xorl %eax, %eax
retl
xorl %eax, %eax
retl

@ -2,7 +2,10 @@
.text
.globl SYMBOL_NAME(get_retval)
# ifdef __linux__
.type get_retval, %function
#endif
SYMBOL_NAME(get_retval):
xorl %eax, %eax
retq
xorl %eax, %eax
retq

@ -2,7 +2,10 @@
.text
.globl SYMBOL_NAME(get_retval)
# ifdef __linux__
.type get_retval, %function
#endif
SYMBOL_NAME(get_retval):
mov r0, #0
mov pc, lr
mov r0, #0
mov pc, lr

@ -2,7 +2,11 @@
.text
.globl SYMBOL_NAME(get_retval)
/* Only supported on Linux with GAS */
# ifdef __linux__
.type get_retval, %function
#endif
SYMBOL_NAME(get_retval):
xorl %eax, %eax
retl
xorl %eax, %eax
retl

@ -2,7 +2,10 @@
.text
.globl SYMBOL_NAME(get_retval)
# ifdef __linux__
.type get_retval, %function
#endif
SYMBOL_NAME(get_retval):
xorl %eax, %eax
retq
xorl %eax, %eax
retq

Loading…
Cancel
Save