gcc/libsanitizer/ubsan
H.J. Lu a23653c6a6 libsanitizer: Add AM_CCASFLAGS to Makefile.am
commit 9069eb28d4
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.
2021-10-08 06:17:01 -07:00
..
libtool-version Update comment in libsanitizer/*/libtool-version files. 2019-11-20 14:52:05 +00:00
Makefile.am libsanitizer: Add AM_CCASFLAGS to Makefile.am 2021-10-08 06:17:01 -07:00
Makefile.in libsanitizer: Add AM_CCASFLAGS to Makefile.am 2021-10-08 06:17:01 -07:00
ubsan_checks.inc libsanitizer: merge from master 2020-10-16 10:57:03 +02:00
ubsan_diag_standalone.cpp libsanitizer: Merge with upstream 2021-07-20 14:21:51 -07:00
ubsan_diag.cpp libsanitizer: Merge with upstream 2021-10-01 09:02:54 -07:00
ubsan_diag.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
ubsan_flags.cpp libsanitizer: Apply local patches 2021-10-06 13:08:47 -07:00
ubsan_flags.h libsanitizer: merge from master 2020-10-16 10:57:03 +02:00
ubsan_flags.inc Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
ubsan_handlers_cxx.cpp Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
ubsan_handlers_cxx.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
ubsan_handlers.cpp libsanitizer: Apply local patches 2021-10-06 13:08:47 -07:00
ubsan_handlers.h libsanitizer: Apply local patches 2021-10-06 13:08:47 -07:00
ubsan_init_standalone_preinit.cpp Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
ubsan_init_standalone.cpp Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
ubsan_init.cpp libsanitizer: merge from master 2021-05-13 09:29:17 +02:00
ubsan_init.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
ubsan_interface.inc libsanitizer: merge from master 2020-10-16 10:57:03 +02:00
ubsan_monitor.cpp libsanitizer: merge from master 2021-05-13 09:29:17 +02:00
ubsan_monitor.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
ubsan_platform.h libsanitizer: Apply local patches 2021-10-06 13:08:47 -07:00
ubsan_signals_standalone.cpp Libsanitizer: merge from trunk with merge.sh. 2019-11-05 13:54:57 +00:00
ubsan_signals_standalone.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
ubsan_type_hash_itanium.cpp libsanitizer: merge from master. 2020-11-13 17:28:49 +01:00
ubsan_type_hash_win.cpp libsanitizer: merge from master. 2020-11-13 17:28:49 +01:00
ubsan_type_hash.cpp Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
ubsan_type_hash.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
ubsan_value.cpp Fix UBSAN in __ubsan::Value::getSIntValue 2021-02-23 11:15:16 +01:00
ubsan_value.h libsanitizer: merge from master 2020-10-16 10:57:03 +02:00
ubsan_win_dll_thunk.cpp Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
ubsan_win_dynamic_runtime_thunk.cpp Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
ubsan_win_weak_interception.cpp Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00