This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PR21391: pruning unused debugging types (c++ bits)
Aldy Hernandez wrote:
> On Tue, May 02, 2006 at 09:20:10AM -0700, Mark Mitchell wrote:
>> Aldy Hernandez wrote:
>>
>>> + /* Save casted types in the function's used types hash table. */
>>> + if (debug_info_level > DINFO_LEVEL_NONE)
>>> + used_types_insert (TREE_TYPE (type), cfun);
>> It looks like you're assuming TYPE is a pointer or reference type? What
>> about static_cast<int>(3.0)? Perhaps these conditionals should have
>> POINTER_TYPE_P guards?
>
> I fixed everything, including the C front-end. I cleaned up things a bit
> as well.
>
> Tested on x86-64.
>
> OK?
Patch missing.
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713