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]

Fix -fsection-anchors on Darwin


This is a refinement of Geoff's change to not generate zero byte objects to instead not generate zero byte global objects, as that is I believe the motivation behind the original change. This works as the anchors are only used for non-TREE_PUBLIC things right now. If they ever try and play with public things, well, let's just say that a linker that can re-order based upon global symbols isn't going to be kinda to such code-gen.

Geoff, know of any reason why this would be bad? This would be:

a:
b: .word 0

instead of:

a: .space 1
b: .word 0

I'll be running this through the testsuite and checking it in if testing goes well and nobody can point out any downsides to doing this.

http://gcc.gnu.org/PR26427

Attachment: zerobytecomm-2.diffs.txt
Description: Text document


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