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] Fix PR middle-end/15486


> You mean that .bss variables are *not* placed in .bss.foo?

Yes (except if they have DECL_ONE_ONLY).

> I think that's a mistake.

That was the behaviour up to Jason' patch (tested with 2.95.3, 2.96, 3.0.4, 
3.1.1 and 3.2.3).  I think it makes sense if -fdata-sections is primarily 
seen as the compiler part of --gc-sections.  The manual indeed mentions 
another benefit: enabling "optimizations to improve locality of reference in 
the instruction space" on the linker side, but I'm not really sure what it 
means exactly and whether it could apply to the .bss section.

-- 
Eric Botcazou


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