]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix __iosfail_type_info hack to work on darwin
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 13 Apr 2018 10:06:21 +0000 (10:06 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 13 Apr 2018 10:06:21 +0000 (10:06 +0000)
* src/c++11/Makefile.am: Rewrite sed rule to be less fragile and to
handle mangled names starting with double underscores on darwin.
* src/c++11/Makefile.in: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@259371 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/src/c++11/Makefile.am
libstdc++-v3/src/c++11/Makefile.in

index e0069a6854c937981f7d10fcf7cd9c0a18396861..b9f6ba942929eb41a29bfd78da2aa965745c2d6f 100644 (file)
@@ -1,3 +1,9 @@
+2018-04-13  Jonathan Wakely  <jwakely@redhat.com>
+
+       * src/c++11/Makefile.am: Rewrite sed rule to be less fragile and to
+       handle mangled names starting with double underscores on darwin.
+       * src/c++11/Makefile.in: Regenerate.
+
 2018-04-12  Jonathan Wakely  <jwakely@redhat.com>
 
        * src/c++11/Makefile.am: Fix comment.
index 8d524b672323e2ae1ef0e01885f73f7c7e695ecb..12bc004a2eab713839aff0a71912dbc92e29adbe 100644 (file)
@@ -128,10 +128,7 @@ hashtable_c++0x.o: hashtable_c++0x.cc
 
 if ENABLE_DUAL_ABI
 # Rewrite the type info for __ios_failure.
-rewrite_ios_failure_typeinfo = sed -e '/^_ZTISt13__ios_failure:$$/{' \
-       -e 'n' \
-       -e 's/_ZTVN10__cxxabiv120__si_class_type_infoE/_ZTVSt19__iosfail_type_info/' \
-       -e '}'
+rewrite_ios_failure_typeinfo = sed -e '/^_*_ZTISt13__ios_failure:/,_ZTVN10__cxxabiv120__si_class_type_infoE/s/_ZTVN10__cxxabiv120__si_class_type_infoE/_ZTVSt19__iosfail_type_info/'
 
 cxx11-ios_failure-lt.s: cxx11-ios_failure.cc
        $(LTCXXCOMPILE) -S $< -o tmp-cxx11-ios_failure-lt.s
index 1ae782d7e969e86d575b7f5e6a5042be01a3995e..5d510aef69a385f6135361be2a8c6e747f894f6c 100644 (file)
@@ -435,11 +435,7 @@ sources = \
 libc__11convenience_la_SOURCES = $(sources)  $(inst_sources)
 
 # Rewrite the type info for __ios_failure.
-@ENABLE_DUAL_ABI_TRUE@rewrite_ios_failure_typeinfo = sed -e '/^_ZTISt13__ios_failure:$$/{' \
-@ENABLE_DUAL_ABI_TRUE@ -e 'n' \
-@ENABLE_DUAL_ABI_TRUE@ -e 's/_ZTVN10__cxxabiv120__si_class_type_infoE/_ZTVSt19__iosfail_type_info/' \
-@ENABLE_DUAL_ABI_TRUE@ -e '}'
-
+@ENABLE_DUAL_ABI_TRUE@rewrite_ios_failure_typeinfo = sed -e '/^_*_ZTISt13__ios_failure:/,_ZTVN10__cxxabiv120__si_class_type_infoE/s/_ZTVN10__cxxabiv120__si_class_type_infoE/_ZTVSt19__iosfail_type_info/'
 
 # AM_CXXFLAGS needs to be in each subdirectory so that it can be
 # modified in a per-library or per-sub-library way.  Need to manually