aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2012-06-23 12:07:04 +0200
committerThomas Schwinge <thomas@codesourcery.com>2012-06-23 12:07:04 +0200
commit1518f58b6120289e69aeba9426eca9234cd9a200 (patch)
tree06b5785499b2deea1abe73832f7f4d1401ec9969 /sysdeps/unix/sysv
parentdb9b505976a9448911e728c01885e71ad6e9461f (diff)
downloadglibc-1518f58b6120289e69aeba9426eca9234cd9a200.zip
glibc-1518f58b6120289e69aeba9426eca9234cd9a200.tar.gz
glibc-1518f58b6120289e69aeba9426eca9234cd9a200.tar.bz2
SH: Optimize assembler code in context of call to __fortify_fail.
__fortify_fail has »__attribute__ ((__noreturn__))«.
Diffstat (limited to 'sysdeps/unix/sysv')
-rw-r--r--sysdeps/unix/sysv/linux/sh/____longjmp_chk.S12
1 files changed, 4 insertions, 8 deletions
diff --git a/sysdeps/unix/sysv/linux/sh/____longjmp_chk.S b/sysdeps/unix/sysv/linux/sh/____longjmp_chk.S
index d034afc..bcf828b 100644
--- a/sysdeps/unix/sysv/linux/sh/____longjmp_chk.S
+++ b/sysdeps/unix/sysv/linux/sh/____longjmp_chk.S
@@ -38,30 +38,26 @@ longjmp_msg:
bsrf r1; \
add r12, r4; \
.Lfail0: \
- bra 0f; \
- nop; \
+ /* Unreachable. */ \
.align 2; \
.Lgot: \
.long _GLOBAL_OFFSET_TABLE_; \
.Lstr: \
.long longjmp_msg@GOTOFF; \
.Lfail: \
- .long __GI___fortify_fail@PLT-(.Lfail0-.); \
-0:
+ .long __GI___fortify_fail@PLT-(.Lfail0-.);
#else
# define CALL_FAIL \
mov.l .Lfail, r1; \
mov.l .Lstr, r4; \
jsr @r1; \
nop; \
- bra 0f; \
- nop; \
+ /* Unreachable. */ \
.align 2; \
.Lstr: \
.long longjmp_msg; \
.Lfail: \
- .long __fortify_fail; \
-0:
+ .long __fortify_fail;
#endif
#define CHECK_SP(reg) \