This is the mail archive of the
mailing list for the GCC project.
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.