Patchwork [Darwin] removed unused section.

login
register
mail settings
Submitter IainS
Date Jan. 9, 2011, 5:30 p.m.
Message ID <0BB5A936-ABB1-4714-B4C2-37139C012D90@sandoe-acoustics.co.uk>
Download mbox | patch
Permalink /patch/78040/
State New
Headers show

Comments

IainS - Jan. 9, 2011, 5:30 p.m.
Hi,

a minor tidy...

Now that we have an implementation of function partitioning, it seems  
that the text_unlikely_coal_section will not be needed on Darwin.
bootstrapped/regtested on i686-darwin9.
OK for trunk?
Iain

  DEF_SECTION (text_hot_section, SECTION_CODE,
  	     ".section __TEXT,__text_hot,regular,pure_instructions", 0)
Mike Stump - Jan. 9, 2011, 7:07 p.m.
On Jan 9, 2011, at 9:30 AM, IainS <developer@sandoe-acoustics.co.uk> wrote:
> Now that we have an implementation of function partitioning, it seems that the text_unlikely_coal_section will not be needed on Darwin.
> bootstrapped/regtested on i686-darwin9.
> OK for trunk?

Ok.

Patch

Index: gcc/config/darwin-sections.def
===================================================================
--- gcc/config/darwin-sections.def	(revision 168616)
+++ gcc/config/darwin-sections.def	(working copy)
@@ -27,12 +27,9 @@  along with GCC; see the file COPYING3.  If not see
     Items that might be coalesced by the linker are prevented from  
participating,
     (and those in mergeable sections are disallowed in varasm.c).  */

-/* .text handled in varasm.c  */
+/* The .text section is generated in varasm.c  */
  DEF_SECTION (text_coal_section, SECTION_CODE|SECTION_NO_ANCHOR,
  	     ".section __TEXT,__textcoal_nt,coalesced,pure_instructions", 0)
-DEF_SECTION (text_unlikely_coal_section, SECTION_CODE| 
SECTION_NO_ANCHOR,
-	     ".section __TEXT,__text_unlikely_coal,"
-	     "coalesced,pure_instructions", 0)