aboutsummaryrefslogtreecommitdiff
path: root/libiberty
diff options
context:
space:
mode:
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>2018-05-10 10:15:42 +0000
committerRichard Earnshaw <Richard.Earnshaw@arm.com>2018-05-31 10:13:26 +0100
commit5b372a4d35bd5874c1a6db2b89f42c7ed3097c63 (patch)
treeb0ad14157854e9c7fadc9e542fbb8da4102af9f7 /libiberty
parente4554bf70235e3ebb10521ddbcbb2bf17abe4865 (diff)
downloadfsf-binutils-gdb-5b372a4d35bd5874c1a6db2b89f42c7ed3097c63.zip
fsf-binutils-gdb-5b372a4d35bd5874c1a6db2b89f42c7ed3097c63.tar.gz
fsf-binutils-gdb-5b372a4d35bd5874c1a6db2b89f42c7ed3097c63.tar.bz2
Improve boostrap-ubsan config (PR bootstrap/64914).
2018-05-10 Martin Liska <mliska@suse.cz> PR bootstrap/64914 * md5.c: Use strict alignment with UBSAN_BOOTSTRAP. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@260112 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty')
-rw-r--r--libiberty/ChangeLog5
-rw-r--r--libiberty/md5.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index a116d37..b249226 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -1,3 +1,8 @@
+2018-05-10 Martin Liska <mliska@suse.cz>
+
+ PR bootstrap/64914
+ * md5.c: Use strict alignment with UBSAN_BOOTSTRAP.
+
2018-04-30 Daniel van Gerpen <daniel@vangerpen.de>
* argv.c (expandargv): Fix memory leak for copied argv.
diff --git a/libiberty/md5.c b/libiberty/md5.c
index f106d22..4dd5186 100644
--- a/libiberty/md5.c
+++ b/libiberty/md5.c
@@ -231,7 +231,7 @@ md5_process_bytes (const void *buffer, size_t len, struct md5_ctx *ctx)
/* Process available complete blocks. */
if (len > 64)
{
-#if !_STRING_ARCH_unaligned
+#if !_STRING_ARCH_unaligned || defined UBSAN_BOOTSTRAP
/* To check alignment gcc has an appropriate operator. Other
compilers don't. */
# if __GNUC__ >= 2