Skip to content

Commit e767fad

Browse files
vhscamposkeith-packard
authored andcommitted
Rename old macro to signify that it is specific to Thumb state
1 parent def6ff1 commit e767fad

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

newlib/libc/machine/arm/arm_asm.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -521,14 +521,10 @@
521521
.endif
522522
.endm
523523

524-
.macro ASM_ALIAS new old
524+
.macro ASM_ALIAS_THUMB_STATE new old
525525
.global \new
526526
.type \new, %function
527-
#if defined (__thumb__)
528527
.thumb_set \new, \old
529-
#else
530-
.set \new, \old
531-
#endif
532528
.endm
533529

534530
.macro ASM_ALIAS_ARM_STATE new old

newlib/libc/machine/arm/memcpy-armv7m.S

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@
9393
.cfi_sections .debug_frame
9494
.cfi_startproc
9595
.type memcpy, %function
96-
ASM_ALIAS __aeabi_memcpy, memcpy
97-
ASM_ALIAS __aeabi_memcpy4, memcpy
98-
ASM_ALIAS __aeabi_memcpy8, memcpy
96+
ASM_ALIAS_THUMB_STATE __aeabi_memcpy, memcpy
97+
ASM_ALIAS_THUMB_STATE __aeabi_memcpy4, memcpy
98+
ASM_ALIAS_THUMB_STATE __aeabi_memcpy8, memcpy
9999
memcpy:
100100
// r0: dst
101101
// r1: src

0 commit comments

Comments
 (0)