This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Merging debug strings
- From: Andi Kleen <ak at suse dot de>
- To: Ben Young <ben dot young at transversal dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 02 Oct 2003 10:25:33 +0200
- Subject: Re: Merging debug strings
- References: <Pine.LNX.4.50.0310020809040.14254-100000@fileserver.cluster.local.suse.lists.egcs-patches>
Ben Young <ben.young@transversal.com> writes:
>
> if (node->form == DW_FORM_strp)
> {
> - named_section_flags (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS);
> + int flags = DEBUG_STR_SECTION_FLAGS;
> + if ( !flag_merge_debug_strs )
> + flags &=~ ( SECTION_MERGE | SECTION_STRINGS | SECTION_ENTSIZE );
Hmm. This looks like a hack. Wouldn't it be better to just add
a nomerge option to ld ?
-Andi