diff options
author | Martin Liska <mliska@suse.cz> | 2018-05-10 12:15:42 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2018-05-10 10:15:42 +0000 |
commit | 84ec5aea4833897a100ca6a3a257ebab23b44f93 (patch) | |
tree | 8acd37238d479b3f767c5b85f0c02bfd5203e2ba /libiberty/md5.c | |
parent | 427a7384b9da2cc9977fa1b1bdada06a8f4a2240 (diff) | |
download | gcc-84ec5aea4833897a100ca6a3a257ebab23b44f93.zip gcc-84ec5aea4833897a100ca6a3a257ebab23b44f93.tar.gz gcc-84ec5aea4833897a100ca6a3a257ebab23b44f93.tar.bz2 |
Improve boostrap-ubsan config (PR bootstrap/64914).
2018-05-10 Martin Liska <mliska@suse.cz>
PR bootstrap/64914
* bootstrap-ubsan.mk: Define UBSAN_BOOTSTRAP.
2018-05-10 Martin Liska <mliska@suse.cz>
PR bootstrap/64914
* md5.c: Use strict alignment with UBSAN_BOOTSTRAP.
From-SVN: r260112
Diffstat (limited to 'libiberty/md5.c')
-rw-r--r-- | libiberty/md5.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libiberty/md5.c b/libiberty/md5.c index f106d22..4dd5186a 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 |