This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH C++: get_tinfo_decl-- call typeinfo_in_lib_p withdeclaration type
- To: Nathan Sidwell <nathan at codesourcery dot com>, John David Anglin <dave at hiauly1 dot hia dot nrc dot ca>
- Subject: Re: PATCH C++: get_tinfo_decl-- call typeinfo_in_lib_p withdeclaration type
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Tue, 02 Oct 2001 12:17:11 -0700
- cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
--On Tuesday, October 02, 2001 08:03:40 PM +0100 Nathan Sidwell
<nathan@codesourcery.com> wrote:
> John David Anglin wrote:
>>
>> Currently, typeinfo_in_lib_p is called in get_tinfo_decl with the new
>> decl d. The type of d is VAR_DECL. As a result, the call always
>> returns false and comdat linkage is used for all tinfo declarations. The
>> patch changes the call to use the type used to build the declaration.
>> This provides a true test as to whether the tinfo is in the runtime
>> library or not.
>
>> OK?
> This is an obvious patch. (It's obvious to me, is that bestowable? :-)
>
> I'd recommend Mark approves it for 3.0.2 as well.
Would one of you please forward the patch to me directly? I'm sure
it's peachy, but I'd like to peek.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com