Hi. I've been running periodically UBSAN bootstrap and as the runtime errors are not causing failure of compiler I haven't noticed the errors. Thus I would like to disable UBSAN recovery. Apart from that I'm handling issue in md5.c where in UBSAN bootstrap we want to do proper pointer alignment. Doing that 2 will be remaining issues that will block the bootstrap:
PR84634 and PR84635 May I then install the patch? Jakub what do you think about it? Thanks, Martin config/ChangeLog: 2018-03-01 Martin Liska <mli...@suse.cz> PR bootstrap/64914 * bootstrap-ubsan.mk: Define UBSAN_BOOTSTRAP macro and disable recovery mode. libiberty/ChangeLog: 2018-03-01 Martin Liska <mli...@suse.cz> PR bootstrap/64914 * md5.c: Use strict alignment with UBSAN_BOOTSTRAP. --- config/bootstrap-ubsan.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/config/bootstrap-ubsan.mk b/config/bootstrap-ubsan.mk index d2615e8f807..13bb2000bd5 100644 --- a/config/bootstrap-ubsan.mk +++ b/config/bootstrap-ubsan.mk @@ -1,8 +1,8 @@ # This option enables -fsanitize=undefined for stage2 and stage3. -STAGE2_CFLAGS += -fsanitize=undefined -STAGE3_CFLAGS += -fsanitize=undefined -POSTSTAGE1_LDFLAGS += -fsanitize=undefined -static-libubsan \ +STAGE2_CFLAGS += -fsanitize=undefined -fno-sanitize-recover=undefined -DUBSAN_BOOTSTRAP +STAGE3_CFLAGS += -fsanitize=undefined -fno-sanitize-recover=undefined -DUBSAN_BOOTSTRAP +POSTSTAGE1_LDFLAGS += -fsanitize=undefined -fno-sanitize-recover=undefined -static-libubsan -DUBSAN_BOOTSTRAP \ -B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ \ -B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ubsan/ \ -B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ubsan/.libs