This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


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

[Jason Merrill <jason@cygnus.com>] g++ patch for 1.1


Here's the official patch to resolve the throw() + prototype problem
for egcs 1.1.
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------


This is important to Ulrich for the next glibc release.

1998-08-25  Jason Merrill  <jason@yorick.cygnus.com>

	* decl.c (duplicate_decls): Don't complain about different
	exceptions from an internal decl even if pedantic.

Index: decl.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/cp/decl.c,v
retrieving revision 1.191
diff -c -p -r1.191 decl.c
*** decl.c	1998/08/24 16:31:36	1.191
--- decl.c	1998/08/25 08:59:34
*************** duplicate_decls (newdecl, olddecl)
*** 3021,3028 ****
  	  TREE_TYPE (olddecl) = build_exception_variant (newtype,
  							 TYPE_RAISES_EXCEPTIONS (oldtype));
  
! 	  if ((pedantic || (! DECL_IN_SYSTEM_HEADER (olddecl)
! 			    && DECL_SOURCE_LINE (olddecl) != 0))
  	      && flag_exceptions
  	      && ! compexcepttypes (TREE_TYPE (newdecl), TREE_TYPE (olddecl)))
  	    {
--- 3021,3028 ----
  	  TREE_TYPE (olddecl) = build_exception_variant (newtype,
  							 TYPE_RAISES_EXCEPTIONS (oldtype));
  
! 	  if ((pedantic || ! DECL_IN_SYSTEM_HEADER (olddecl))
! 	      && DECL_SOURCE_LINE (olddecl) != 0
  	      && flag_exceptions
  	      && ! compexcepttypes (TREE_TYPE (newdecl), TREE_TYPE (olddecl)))
  	    {




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