1 Aug 2007 01:23
[PATCH] Proposed fix for bug #31899
Doug Kwan (關振德 <dougkwan <at> google.com>
2007-07-31 23:23:29 GMT
2007-07-31 23:23:29 GMT
Hi,
Could someone review and approve this? Thanks.
-Doug
2007-07-26 Doug Kwan <dougkwan <at> google.com>
* dwarf2out.c: (may_reference_to_unsued) : Renamed from reference_to_unsued
as it is now more conservative than before. Replace unreachable assert
into a return that tells caller that tree may reference an unused DECL.
(rtl_for_decl_init): Rename callee to may_reference_to_usused.
--- dwarf2out.c.orig 2007-07-26 11:28:11.000000000 -0700
+++ dwarf2out.c 2007-07-26 11:31:33.000000000 -0700
<at> <at> -9993,9 +9993,10 <at> <at>
/* Determine whether the evaluation of EXPR references any variables
or functions which aren't otherwise used (and therefore may not be
output). */
+
static tree
-reference_to_unused (tree * tp, int * walk_subtrees,
- void * data ATTRIBUTE_UNUSED)
+may_reference_to_unused (tree * tp, int * walk_subtrees,
+ void * data ATTRIBUTE_UNUSED)
{
if (! EXPR_P (*tp) && ! CONSTANT_CLASS_P (*tp))
*walk_subtrees = 0;
<at> <at> -10007,7 +10008,12 <at> <at>
(Continue reading)
RSS Feed