This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
[Jason Merrill <jason@cygnus.com>] g++ patch for 1.1
- To: libc-hacker@cygnus.com
- Subject: [Jason Merrill <jason@cygnus.com>] g++ patch for 1.1
- From: Ulrich Drepper <drepper@cygnus.com>
- Date: 25 Aug 1998 08:30:40 -0700
- Reply-To: drepper@cygnus.com (Ulrich Drepper)
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 `------------------------
- To: law@cygnus.com
- Subject: g++ patch for 1.1
- From: Jason Merrill <jason@cygnus.com>
- Date: Tue, 25 Aug 1998 02:01:55 -0700
- CC: drepper@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)))
{