about summary refs log tree commit diff
diff options
context:
space:
mode:
authorStefan Liebler <stli@linux.ibm.com>2019-03-04 10:48:42 +0100
committerStefan Liebler <stli@linux.ibm.com>2019-03-04 10:48:42 +0100
commitce6ddae03639529d5ca3a9eebb2d8b02bfd2ea97 (patch)
tree1156d2ee2f826215fe059ba1eb9ac007dba73459
parent31effacee2fc1b327bedc9a5fcb4b83f227c6539 (diff)
downloadglibc-ce6ddae03639529d5ca3a9eebb2d8b02bfd2ea97.tar.gz
glibc-ce6ddae03639529d5ca3a9eebb2d8b02bfd2ea97.tar.xz
glibc-ce6ddae03639529d5ca3a9eebb2d8b02bfd2ea97.zip
S390: Increase function alignment to 16 bytes.
Set the default function alignment to 16 bytes in order to
get rid of some unwanted performance effects.

Please see also GCC commit "S/390: Set default function
alignment to 16." (Subversion revision 262817)

ChangeLog:

	* sysdeps/s390/s390-64/sysdep.h(ENTRY): Use alignment of 16byte.
	* sysdeps/s390/s390-32/sysdep.h: Likewise.
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/s390/s390-32/sysdep.h2
-rw-r--r--sysdeps/s390/s390-64/sysdep.h2
3 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index cb439258d6..fb092bad91 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2019-03-04  Stefan Liebler  <stli@linux.ibm.com>
+
+	* sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
+	* sysdeps/s390/s390-32/sysdep.h: Likewise.
+
 2019-03-02  TAMUKI Shoichi  <tamuki@linet.gr.jp>
 
 	[BZ #24162]
diff --git a/sysdeps/s390/s390-32/sysdep.h b/sysdeps/s390/s390-32/sysdep.h
index 6605dde237..4a441e1204 100644
--- a/sysdeps/s390/s390-32/sysdep.h
+++ b/sysdeps/s390/s390-32/sysdep.h
@@ -32,7 +32,7 @@
 #define	ENTRY(name)							      \
   .globl C_SYMBOL_NAME(name);						      \
   .type C_SYMBOL_NAME(name),@function;					      \
-  .align ALIGNARG(2);							      \
+  .align ALIGNARG(4);							      \
   C_LABEL(name)								      \
   cfi_startproc;							      \
   CALL_MCOUNT
diff --git a/sysdeps/s390/s390-64/sysdep.h b/sysdeps/s390/s390-64/sysdep.h
index 99dbf3f444..0531fa5823 100644
--- a/sysdeps/s390/s390-64/sysdep.h
+++ b/sysdeps/s390/s390-64/sysdep.h
@@ -32,7 +32,7 @@
 #define	ENTRY(name)							      \
   .globl C_SYMBOL_NAME(name);						      \
   .type C_SYMBOL_NAME(name),@function;					      \
-  .align ALIGNARG(2);							      \
+  .align ALIGNARG(4);							      \
   C_LABEL(name)								      \
   cfi_startproc;							      \
   CALL_MCOUNT