This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
PATCH Re: A #pragma visibility warning from gthr.h
- From: Jason Merrill <jason at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Paolo Carlini <pcarlini at suse dot de>
- Cc: gcc at gcc dot gnu dot org, libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Fri, 20 Aug 2004 19:51:13 -0400
- Subject: PATCH Re: A #pragma visibility warning from gthr.h
- References: <41266F2A.4090209@suse.de>
Fixed thus. Applied to trunk.
2004-08-20 Jason Merrill <jason@redhat.com>
* include/Makefile.am (${host_builddir}/gthr.h): Don't add
_GLIBCXX_ to #pragma lines.
* include/Makefile.in: Update.
*** include/Makefile.am.~1~ 2004-08-20 15:18:10.000000000 -0400
--- include/Makefile.am 2004-08-17 17:15:46.000000000 -0400
*************** ${host_builddir}/c++config.h: ${top_buil
*** 507,513 ****
uppercase = [ABCDEFGHIJKLMNOPQRSTUVWXYZ_]
${host_builddir}/gthr.h: ${toplevel_srcdir}/gcc/gthr.h stamp-${host_alias}
! sed -e '/^#/s/\(${uppercase}${uppercase}*\)/_GLIBCXX_\1/g' \
-e 's/_GLIBCXX_SUPPORTS_WEAK/__GXX_WEAK__/g' \
-e 's,^#include "\(.*\)",#include <bits/\1>,g' \
< ${toplevel_srcdir}/gcc/gthr.h > $@
--- 507,514 ----
uppercase = [ABCDEFGHIJKLMNOPQRSTUVWXYZ_]
${host_builddir}/gthr.h: ${toplevel_srcdir}/gcc/gthr.h stamp-${host_alias}
! sed -e '/^#pragma/b' \
! -e '/^#/s/\(${uppercase}${uppercase}*\)/_GLIBCXX_\1/g' \
-e 's/_GLIBCXX_SUPPORTS_WEAK/__GXX_WEAK__/g' \
-e 's,^#include "\(.*\)",#include <bits/\1>,g' \
< ${toplevel_srcdir}/gcc/gthr.h > $@