diff options
author | Jeff Chapman II <jchapman@lock3software.com> | 2022-11-03 15:47:19 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2022-11-18 21:40:29 -0500 |
commit | ea63396f6b08f88f1cde827e6cab94cd488f7fa7 (patch) | |
tree | ce183d1127e1f26aea84d5d6092e00648c4a77d2 /libstdc++-v3/acinclude.m4 | |
parent | a7aef0a5a2b7e20048275a29bd80674c1a061a24 (diff) | |
download | gcc-ea63396f6b08f88f1cde827e6cab94cd488f7fa7.zip gcc-ea63396f6b08f88f1cde827e6cab94cd488f7fa7.tar.gz gcc-ea63396f6b08f88f1cde827e6cab94cd488f7fa7.tar.bz2 |
libstdc++: add experimental Contracts support
This patch adds the library support for the experimental C++ Contracts
implementation. This now consists only of a default definition of the
violation handler, which users can override through defining their own
version. To avoid ABI stability problems with libstdc++.so this is added to
a separate -lstdc++exp static library, which the driver knows to add when it
sees -fcontracts.
Co-authored-by: Andrew Marmaduke <amarmaduke@lock3software.com>
Co-authored-by: Jason Merrill <jason@redhat.com>
libstdc++-v3/ChangeLog:
* acinclude.m4 (glibcxx_SUBDIRS): Add src/experimental.
* include/Makefile.am (experimental_headers): Add contract.
* include/Makefile.in: Regenerate.
* src/Makefile.am (SUBDIRS): Add experimental.
* src/Makefile.in: Regenerate.
* configure: Regenerate.
* src/experimental/contract.cc: New file.
* src/experimental/Makefile.am: New file.
* src/experimental/Makefile.in: New file.
* include/experimental/contract: New file.
Diffstat (limited to 'libstdc++-v3/acinclude.m4')
-rw-r--r-- | libstdc++-v3/acinclude.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/acinclude.m4 b/libstdc++-v3/acinclude.m4 index 6f67292..baf0191 100644 --- a/libstdc++-v3/acinclude.m4 +++ b/libstdc++-v3/acinclude.m4 @@ -49,7 +49,7 @@ AC_DEFUN([GLIBCXX_CONFIGURE], [ # Keep these sync'd with the list in Makefile.am. The first provides an # expandable list at autoconf time; the second provides an expandable list # (i.e., shell variable) at configure time. - m4_define([glibcxx_SUBDIRS],[include libsupc++ src src/c++98 src/c++11 src/c++17 src/c++20 src/filesystem src/libbacktrace doc po testsuite python]) + m4_define([glibcxx_SUBDIRS],[include libsupc++ src src/c++98 src/c++11 src/c++17 src/c++20 src/filesystem src/libbacktrace src/experimental doc po testsuite python]) SUBDIRS='glibcxx_SUBDIRS' # These need to be absolute paths, yet at the same time need to |