summaryrefslogtreecommitdiffstats
path: root/libsanitizer
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2021-09-10 06:13:59 -0700
committerH.J. Lu <hjl.tools@gmail.com>2021-10-08 06:17:01 -0700
commita23653c6a683d6a1bb1278aaa32e35247d8c2740 (patch)
tree96520ae41aa5e7e36122d13c0f8b4669bd0f47d2 /libsanitizer
parentloop: Fix profile updates after unrolling [PR102385] (diff)
downloadgcc-a23653c6a683d6a1bb1278aaa32e35247d8c2740.tar.gz
gcc-a23653c6a683d6a1bb1278aaa32e35247d8c2740.tar.bz2
gcc-a23653c6a683d6a1bb1278aaa32e35247d8c2740.tar.xz
libsanitizer: Add AM_CCASFLAGS to Makefile.am
commit 9069eb28d45baaa8baf5e3790b03b0e2cc5b49b3 Author: Igor Tsimbalist <igor.v.tsimbalist@intel.com> Date: Fri Nov 17 22:34:50 2017 +0100 Enable building libsanitizer with Intel CET libsanitizer/ * acinclude.m4: Add enable.m4 and cet.m4. * Makefile.in: Regenerate. * asan/Makefile.am: Update AM_CXXFLAGS. * asan/Makefile.in: Regenerate. * configure: Likewise. * configure.ac: Set CET_FLAGS. Update EXTRA_CFLAGS, EXTRA_CXXFLAGS, EXTRA_ASFLAGS. * interception/Makefile.am: Update AM_CXXFLAGS. * interception/Makefile.in: Regenerate. * libbacktrace/Makefile.am: Update AM_CFLAGS, AM_CXXFLAGS. * libbacktrace/Makefile.in: Regenerate. * lsan/Makefile.am: Update AM_CXXFLAGS. * lsan/Makefile.in: Regenerate. * sanitizer_common/Makefile.am: Update AM_CXXFLAGS, AM_CCASFLAGS. * sanitizer_common/sanitizer_linux_x86_64.S: Include cet.h. Add _CET_ENDBR macro. * sanitizer_common/Makefile.in: Regenerate. * tsan/Makefile.am: Update AM_CXXFLAGS. * tsan/Makefile.in: Regenerate. * tsan/tsan_rtl_amd64.S Include cet.h. Add _CET_ENDBR macro. * ubsan/Makefile.am: Update AM_CXXFLAGS. * ubsan/Makefile.in: Regenerate. failed to add EXTRA_ASFLAGS to AM_CCASFLAGS in all Makefile.am. As the result, CET aren't enabled in all assembly codes. Add AM_CCASFLAGS to Makefile.am to compile assembly codes with $CET_FLAGS. PR sanitizer/102632 * asan/Makefile.am (AM_CCASFLAGS): New. Set to $(EXTRA_ASFLAGS). * hwasan/Makefile.am (AM_CCASFLAGS): Likewise. * interception/Makefile.am (AM_CCASFLAGS): Likewise. * lsan/Makefile.am (AM_CCASFLAGS): Likewise. * tsan/Makefile.am (AM_CCASFLAGS): Likewise. * ubsan/Makefile.am (AM_CCASFLAGS): Likewise. * asan/Makefile.in: Regenerate. * hwasan/Makefile.in: Likewise. * interception/Makefile.in: Likewise. * lsan/Makefile.in: Likewise. * tsan/Makefile.in: Likewise. * ubsan/Makefile.in: Likewise.
Diffstat (limited to 'libsanitizer')
-rw-r--r--libsanitizer/asan/Makefile.am1
-rw-r--r--libsanitizer/asan/Makefile.in1
-rw-r--r--libsanitizer/hwasan/Makefile.am1
-rw-r--r--libsanitizer/hwasan/Makefile.in1
-rw-r--r--libsanitizer/interception/Makefile.am1
-rw-r--r--libsanitizer/interception/Makefile.in1
-rw-r--r--libsanitizer/lsan/Makefile.am1
-rw-r--r--libsanitizer/lsan/Makefile.in1
-rw-r--r--libsanitizer/tsan/Makefile.am1
-rw-r--r--libsanitizer/tsan/Makefile.in1
-rw-r--r--libsanitizer/ubsan/Makefile.am1
-rw-r--r--libsanitizer/ubsan/Makefile.in1
12 files changed, 12 insertions, 0 deletions
diff --git a/libsanitizer/asan/Makefile.am b/libsanitizer/asan/Makefile.am
index 74658ca7b9c..4f802f723d6 100644
--- a/libsanitizer/asan/Makefile.am
+++ b/libsanitizer/asan/Makefile.am
@@ -11,6 +11,7 @@ AM_CXXFLAGS = -Wall -W -Wno-unused-parameter -Wwrite-strings -pedantic -Wno-long
11AM_CXXFLAGS += $(LIBSTDCXX_RAW_CXX_CXXFLAGS) 11AM_CXXFLAGS += $(LIBSTDCXX_RAW_CXX_CXXFLAGS)
12AM_CXXFLAGS += -std=gnu++14 12AM_CXXFLAGS += -std=gnu++14
13AM_CXXFLAGS += $(EXTRA_CXXFLAGS) 13AM_CXXFLAGS += $(EXTRA_CXXFLAGS)
14AM_CCASFLAGS = $(EXTRA_ASFLAGS)
14ACLOCAL_AMFLAGS = -I $(top_srcdir) -I $(top_srcdir)/config 15ACLOCAL_AMFLAGS = -I $(top_srcdir) -I $(top_srcdir)/config
15 16
16toolexeclib_LTLIBRARIES = libasan.la 17toolexeclib_LTLIBRARIES = libasan.la
diff --git a/libsanitizer/asan/Makefile.in b/libsanitizer/asan/Makefile.in
index 53efe526f9c..528ab61312c 100644
--- a/libsanitizer/asan/Makefile.in
+++ b/libsanitizer/asan/Makefile.in
@@ -421,6 +421,7 @@ AM_CXXFLAGS = -Wall -W -Wno-unused-parameter -Wwrite-strings -pedantic \
421 -fomit-frame-pointer -funwind-tables -fvisibility=hidden \ 421 -fomit-frame-pointer -funwind-tables -fvisibility=hidden \
422 -Wno-variadic-macros -fno-ipa-icf \ 422 -Wno-variadic-macros -fno-ipa-icf \
423 $(LIBSTDCXX_RAW_CXX_CXXFLAGS) -std=gnu++14 $(EXTRA_CXXFLAGS) 423 $(LIBSTDCXX_RAW_CXX_CXXFLAGS) -std=gnu++14 $(EXTRA_CXXFLAGS)
424AM_CCASFLAGS = $(EXTRA_ASFLAGS)
424ACLOCAL_AMFLAGS = -I $(top_srcdir) -I $(top_srcdir)/config 425ACLOCAL_AMFLAGS = -I $(top_srcdir) -I $(top_srcdir)/config
425toolexeclib_LTLIBRARIES = libasan.la 426toolexeclib_LTLIBRARIES = libasan.la
426nodist_toolexeclib_HEADERS = libasan_preinit.o 427nodist_toolexeclib_HEADERS = libasan_preinit.o
diff --git a/libsanitizer/hwasan/Makefile.am b/libsanitizer/hwasan/Makefile.am
index cfc1bfe8f01..e12c0a0ce71 100644
--- a/libsanitizer/hwasan/Makefile.am
+++ b/libsanitizer/hwasan/Makefile.am
@@ -8,6 +8,7 @@ AM_CXXFLAGS = -Wall -W -Wno-unused-parameter -Wwrite-strings -pedantic -Wno-long
8AM_CXXFLAGS += $(LIBSTDCXX_RAW_CXX_CXXFLAGS) 8AM_CXXFLAGS += $(LIBSTDCXX_RAW_CXX_CXXFLAGS)
9AM_CXXFLAGS += -std=gnu++14 9AM_CXXFLAGS += -std=gnu++14
10AM_CXXFLAGS += $(EXTRA_CXXFLAGS) 10AM_CXXFLAGS += $(EXTRA_CXXFLAGS)
11AM_CCASFLAGS = $(EXTRA_ASFLAGS)
11ACLOCAL_AMFLAGS = -I $(top_srcdir) -I $(top_srcdir)/config 12ACLOCAL_AMFLAGS = -I $(top_srcdir) -I $(top_srcdir)/config
12 13
13toolexeclib_LTLIBRARIES = libhwasan.la 14toolexeclib_LTLIBRARIES = libhwasan.la
diff --git a/libsanitizer/hwasan/Makefile.in b/libsanitizer/hwasan/Makefile.in
index f63670b50d1..1729349e682 100644
--- a/libsanitizer/hwasan/Makefile.in
+++ b/libsanitizer/hwasan/Makefile.in
@@ -409,6 +409,7 @@ AM_CXXFLAGS = -Wall -W -Wno-unused-parameter -Wwrite-strings -pedantic \
409 -funwind-tables -fvisibility=hidden -Wno-variadic-macros \ 409 -funwind-tables -fvisibility=hidden -Wno-variadic-macros \
410 -fno-ipa-icf $(LIBSTDCXX_RAW_CXX_CXXFLAGS) -std=gnu++14 \ 410 -fno-ipa-icf $(LIBSTDCXX_RAW_CXX_CXXFLAGS) -std=gnu++14 \
411 $(EXTRA_CXXFLAGS) 411 $(EXTRA_CXXFLAGS)
412AM_CCASFLAGS = $(EXTRA_ASFLAGS)
412ACLOCAL_AMFLAGS = -I $(top_srcdir) -I $(top_srcdir)/config 413ACLOCAL_AMFLAGS = -I $(top_srcdir) -I $(top_srcdir)/config
413toolexeclib_LTLIBRARIES = libhwasan.la 414toolexeclib_LTLIBRARIES = libhwasan.la
414hwasan_files = \ 415hwasan_files = \
diff --git a/libsanitizer/interception/Makefile.am b/libsanitizer/interception/Makefile.am
index efa90a49aa1..f7013b4ea94 100644
--- a/libsanitizer/interception/Makefile.am
+++ b/libsanitizer/interception/Makefile.am
@@ -8,6 +8,7 @@ AM_CXXFLAGS = -Wall -W -Wno-unused-parameter -Wwrite-strings -pedantic -Wno-long
8AM_CXXFLAGS += $(LIBSTDCXX_RAW_CXX_CXXFLAGS) 8AM_CXXFLAGS += $(LIBSTDCXX_RAW_CXX_CXXFLAGS)
9AM_CXXFLAGS += -std=gnu++14 9AM_CXXFLAGS += -std=gnu++14
10AM_CXXFLAGS += $(EXTRA_CXXFLAGS) 10AM_CXXFLAGS += $(EXTRA_CXXFLAGS)
11AM_CCASFLAGS = $(EXTRA_ASFLAGS)
11ACLOCAL_AMFLAGS = -I m4 12ACLOCAL_AMFLAGS = -I m4
12 13
13noinst_LTLIBRARIES = libinterception.la 14noinst_LTLIBRARIES = libinterception.la
diff --git a/libsanitizer/interception/Makefile.in b/libsanitizer/interception/Makefile.in
index 4a872cb4969..326ee9a1818 100644
--- a/libsanitizer/interception/Makefile.in
+++ b/libsanitizer/interception/Makefile.in
@@ -339,6 +339,7 @@ AM_CXXFLAGS = -Wall -W -Wno-unused-parameter -Wwrite-strings -pedantic \
339 -fomit-frame-pointer -funwind-tables -fvisibility=hidden \ 339 -fomit-frame-pointer -funwind-tables -fvisibility=hidden \
340 -Wno-variadic-macros $(LIBSTDCXX_RAW_CXX_CXXFLAGS) \ 340 -Wno-variadic-macros $(LIBSTDCXX_RAW_CXX_CXXFLAGS) \
341 -std=gnu++14 $(EXTRA_CXXFLAGS) 341 -std=gnu++14 $(EXTRA_CXXFLAGS)
342AM_CCASFLAGS = $(EXTRA_ASFLAGS)
342ACLOCAL_AMFLAGS = -I m4 343ACLOCAL_AMFLAGS = -I m4
343noinst_LTLIBRARIES = libinterception.la 344noinst_LTLIBRARIES = libinterception.la
344interception_files = \ 345interception_files = \
diff --git a/libsanitizer/lsan/Makefile.am b/libsanitizer/lsan/Makefile.am
index f4db8e37683..6ff28ff5eea 100644
--- a/libsanitizer/lsan/Makefile.am
+++ b/libsanitizer/lsan/Makefile.am
@@ -8,6 +8,7 @@ AM_CXXFLAGS = -Wall -W -Wno-unused-parameter -Wwrite-strings -pedantic -Wno-long
8AM_CXXFLAGS += $(LIBSTDCXX_RAW_CXX_CXXFLAGS) 8AM_CXXFLAGS += $(LIBSTDCXX_RAW_CXX_CXXFLAGS)
9AM_CXXFLAGS += -std=gnu++14 9AM_CXXFLAGS += -std=gnu++14
10AM_CXXFLAGS += $(EXTRA_CXXFLAGS) 10AM_CXXFLAGS += $(EXTRA_CXXFLAGS)
11AM_CCASFLAGS = $(EXTRA_ASFLAGS)
11ACLOCAL_AMFLAGS = -I m4 12ACLOCAL_AMFLAGS = -I m4
12 13
13noinst_LTLIBRARIES = libsanitizer_lsan.la 14noinst_LTLIBRARIES = libsanitizer_lsan.la
diff --git a/libsanitizer/lsan/Makefile.in b/libsanitizer/lsan/Makefile.in
index 01de442637c..0ee0be6526e 100644
--- a/libsanitizer/lsan/Makefile.in
+++ b/libsanitizer/lsan/Makefile.in
@@ -384,6 +384,7 @@ AM_CXXFLAGS = -Wall -W -Wno-unused-parameter -Wwrite-strings -pedantic \
384 -fomit-frame-pointer -funwind-tables -fvisibility=hidden \ 384 -fomit-frame-pointer -funwind-tables -fvisibility=hidden \
385 -Wno-variadic-macros $(LIBSTDCXX_RAW_CXX_CXXFLAGS) \ 385 -Wno-variadic-macros $(LIBSTDCXX_RAW_CXX_CXXFLAGS) \
386 -std=gnu++14 $(EXTRA_CXXFLAGS) 386 -std=gnu++14 $(EXTRA_CXXFLAGS)
387AM_CCASFLAGS = $(EXTRA_ASFLAGS)
387ACLOCAL_AMFLAGS = -I m4 388ACLOCAL_AMFLAGS = -I m4
388noinst_LTLIBRARIES = libsanitizer_lsan.la 389noinst_LTLIBRARIES = libsanitizer_lsan.la
389@LSAN_SUPPORTED_TRUE@toolexeclib_LTLIBRARIES = liblsan.la 390@LSAN_SUPPORTED_TRUE@toolexeclib_LTLIBRARIES = liblsan.la
diff --git a/libsanitizer/tsan/Makefile.am b/libsanitizer/tsan/Makefile.am
index 9dc11f79072..de47797a6c4 100644
--- a/libsanitizer/tsan/Makefile.am
+++ b/libsanitizer/tsan/Makefile.am
@@ -8,6 +8,7 @@ AM_CXXFLAGS = -Wall -W -Wno-unused-parameter -Wwrite-strings -pedantic -Wno-long
8AM_CXXFLAGS += $(LIBSTDCXX_RAW_CXX_CXXFLAGS) 8AM_CXXFLAGS += $(LIBSTDCXX_RAW_CXX_CXXFLAGS)
9AM_CXXFLAGS += -std=gnu++14 9AM_CXXFLAGS += -std=gnu++14
10AM_CXXFLAGS += $(EXTRA_CXXFLAGS) 10AM_CXXFLAGS += $(EXTRA_CXXFLAGS)
11AM_CCASFLAGS = $(EXTRA_ASFLAGS)
11ACLOCAL_AMFLAGS = -I m4 12ACLOCAL_AMFLAGS = -I m4
12 13
13toolexeclib_LTLIBRARIES = libtsan.la 14toolexeclib_LTLIBRARIES = libtsan.la
diff --git a/libsanitizer/tsan/Makefile.in b/libsanitizer/tsan/Makefile.in
index 921a78c7484..fa4a47764b9 100644
--- a/libsanitizer/tsan/Makefile.in
+++ b/libsanitizer/tsan/Makefile.in
@@ -413,6 +413,7 @@ AM_CXXFLAGS = -Wall -W -Wno-unused-parameter -Wwrite-strings -pedantic \
413 -fomit-frame-pointer -funwind-tables -fvisibility=hidden \ 413 -fomit-frame-pointer -funwind-tables -fvisibility=hidden \
414 -Wno-variadic-macros $(LIBSTDCXX_RAW_CXX_CXXFLAGS) \ 414 -Wno-variadic-macros $(LIBSTDCXX_RAW_CXX_CXXFLAGS) \
415 -std=gnu++14 $(EXTRA_CXXFLAGS) 415 -std=gnu++14 $(EXTRA_CXXFLAGS)
416AM_CCASFLAGS = $(EXTRA_ASFLAGS)
416ACLOCAL_AMFLAGS = -I m4 417ACLOCAL_AMFLAGS = -I m4
417toolexeclib_LTLIBRARIES = libtsan.la 418toolexeclib_LTLIBRARIES = libtsan.la
418nodist_toolexeclib_HEADERS = libtsan_preinit.o 419nodist_toolexeclib_HEADERS = libtsan_preinit.o
diff --git a/libsanitizer/ubsan/Makefile.am b/libsanitizer/ubsan/Makefile.am
index 9654fb2afc4..d480f26adc0 100644
--- a/libsanitizer/ubsan/Makefile.am
+++ b/libsanitizer/ubsan/Makefile.am
@@ -8,6 +8,7 @@ AM_CXXFLAGS = -Wall -W -Wno-unused-parameter -Wwrite-strings -pedantic -Wno-long
8AM_CXXFLAGS += $(LIBSTDCXX_RAW_CXX_CXXFLAGS) 8AM_CXXFLAGS += $(LIBSTDCXX_RAW_CXX_CXXFLAGS)
9AM_CXXFLAGS += -std=gnu++14 9AM_CXXFLAGS += -std=gnu++14
10AM_CXXFLAGS += $(EXTRA_CXXFLAGS) 10AM_CXXFLAGS += $(EXTRA_CXXFLAGS)
11AM_CCASFLAGS = $(EXTRA_ASFLAGS)
11ACLOCAL_AMFLAGS = -I m4 12ACLOCAL_AMFLAGS = -I m4
12 13
13toolexeclib_LTLIBRARIES = libubsan.la 14toolexeclib_LTLIBRARIES = libubsan.la
diff --git a/libsanitizer/ubsan/Makefile.in b/libsanitizer/ubsan/Makefile.in
index 2775c142213..4f4e4e579a2 100644
--- a/libsanitizer/ubsan/Makefile.in
+++ b/libsanitizer/ubsan/Makefile.in
@@ -378,6 +378,7 @@ AM_CXXFLAGS = -Wall -W -Wno-unused-parameter -Wwrite-strings -pedantic \
378 -fomit-frame-pointer -funwind-tables -fvisibility=hidden \ 378 -fomit-frame-pointer -funwind-tables -fvisibility=hidden \
379 -Wno-variadic-macros $(LIBSTDCXX_RAW_CXX_CXXFLAGS) \ 379 -Wno-variadic-macros $(LIBSTDCXX_RAW_CXX_CXXFLAGS) \
380 -std=gnu++14 $(EXTRA_CXXFLAGS) 380 -std=gnu++14 $(EXTRA_CXXFLAGS)
381AM_CCASFLAGS = $(EXTRA_ASFLAGS)
381ACLOCAL_AMFLAGS = -I m4 382ACLOCAL_AMFLAGS = -I m4
382toolexeclib_LTLIBRARIES = libubsan.la 383toolexeclib_LTLIBRARIES = libubsan.la
383ubsan_plugin_files = \ 384ubsan_plugin_files = \