This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix -fsection-anchors on Darwin
- From: Mike Stump <mrs at apple dot com>
- To: "gcc-patches at gcc dot gnu dot org Patches" <gcc-patches at gcc dot gnu dot org>
- Cc: Geoffrey Keating <gkeating at apple dot com>
- Date: Wed, 31 May 2006 15:07:37 -0700
- Subject: 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