This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [patch] stephen's staging headers patch
- To: libstdc++ at gcc dot gnu dot org
- Subject: Re: [patch] stephen's staging headers patch
- From: Loren James Rittle <rittle at latour dot rsch dot comm dot mot dot com>
- Date: Mon, 2 Jul 2001 19:42:33 -0500 (CDT)
- Reply-to: rittle at labs dot mot dot com
OK, I looked at (but did not applied to my local tree yet) the patch
again this time you posted it... I still like the change overall.
For the record, this file is completely gone:
+ ${target_builddir}/c++threads.h: ${glibcpp_srcdir}/@CTHREAD_H@ \
+ ${target_builddir}
+ @cp ${glibcpp_srcdir}/@CTHREAD_H@ $@
This section is missing the few logic changes made since the 3.0 release:
+ ${thread_builddir}/gthr.h:
+ cp ${glibcpp_srcdir}/../gcc/gthr.h ${thread_builddir}/gthr.h-in; \
+ sed '/^#/s/\([A-Z_][A-Z_]*\)/_GLIBCPP_\1/g' <
${thread_builddir}/gthr.h-in > $@
+
+ ${thread_builddir}/gthr-single.h:
+ cp ${glibcpp_srcdir}/../gcc/gthr-single.h
${thread_builddir}/gthr-single.h-in; \
+ sed 's/\(UNUSED\)/_GLIBCPP_\1/g' <
${thread_builddir}/gthr-single.h-in | sed
's/\(GCC[A-Z_]*_H\)/_GLIBCPP_\1/g' > $@
+
+ ${thread_builddir}/gthr-default.h:
+ cp ${glibcpp_srcdir}/../gcc/${glibcpp_thread_h}
${thread_builddir}/gthr-default.h-in; \
+ sed 's/\(UNUSED\)/_GLIBCPP_\1/g' <
${thread_builddir}/gthr-default.h-in | sed
's/\(GCC[A-Z_]*_H\)/_GLIBCPP_\1/g' | sed
's/\([A-Z_]*WEAK\)/_GLIBCPP_\1/g' > $@
Compare it to this:
! AC_OUTPUT_COMMANDS([d=include/bits; a='[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]'
! rm -f $d/gthr.h $d/gthr-single.h $d/gthr-default.h
! sed '/^#/s/\('"$a$a"'*\)/_GLIBCPP_\1/g' <$d/gthr.h-in \
! | sed 's,"gthr-,"bits/gthr-,' >$d/gthr.h
! sed 's/\(UNUSED\)/_GLIBCPP_\1/g' <$d/gthr-single.h-in \
! | sed 's/\(GCC'"$a"'*_H\)/_GLIBCPP_\1/g' >$d/gthr-single.h
! sed 's/\(UNUSED\)/_GLIBCPP_\1/g' <$d/gthr-default.h-in \
! | sed 's/\(GCC'"$a"'*_H\)/_GLIBCPP_\1/g' \
! | sed 's/\('"$a"'*WEAK\)/_GLIBCPP_\1/g' >$d/gthr-default.h])