This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH Re: A #pragma visibility warning from gthr.h


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 > $@

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]