]> git.ipfire.org Git - thirdparty/gcc.git/blame - config/bootstrap-hwasan.mk
Use preferred mode for doloop IV [PR61837]
[thirdparty/gcc.git] / config / bootstrap-hwasan.mk
CommitLineData
170e618e 1# This option enables -fsanitize=hwaddress for stage2 and stage3.
0854b584
MM
2# We need to disable random frame tags for bootstrap since the autoconf check
3# for which direction the stack is growing has UB that a random frame tag
4# breaks. Running with a random frame tag gives approx. 50% chance of
5# bootstrap comparison diff in libiberty/alloca.c.
170e618e 6
0854b584
MM
7STAGE2_CFLAGS += -fsanitize=hwaddress --param hwasan-random-frame-tag=0
8STAGE3_CFLAGS += -fsanitize=hwaddress --param hwasan-random-frame-tag=0
170e618e
MM
9POSTSTAGE1_LDFLAGS += -fsanitize=hwaddress -static-libhwasan \
10 -B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ \
11 -B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/hwasan/ \
12 -B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/hwasan/.libs