This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch debug] Do not emit debug sections until they are required.



On 8 Nov 2010, at 17:49, Richard Henderson wrote:

We could detect an 'empty' table (no unpruned types left) and elect not to emit it at all.

That sounds plausible.

done...


Also I note that the

size_of_pubnames()
output_pubnames ()

routines check p->die->die_offset != 0 as the condition.

I wonder if that is not supposed to be p->die->die_mark?

No, the marks are unset after processing.

well, it's confusing that when we emit pubnames the routine asserts that p->die->die_mark _is_ set.
(whereas when emitting pubtypes we check on the basis of p->die- >die_offset != 0).


But I have left that as is and simply ensured that we do not try to emit an empty pubtypes section.

OK for trunk as amended?
Iain


Attachment: 166644-dw2-p2.txt
Description: Text document




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