PATCH to assemble_variable separate section handling

Jason Merrill jason@redhat.com
Fri Mar 15 10:42:00 GMT 2002


More fallout from the bss stuff.  In addition to weak symbols, we need to
handle variables that go in separate sections for whatever reason.  So we
need to set DECL_SECTION_NAME appropriately before we check it.

Having fixed this, I ran into another problem; dynamically-initialized
variables in separate sections have been broken for a while, because
output_constant quite reasonably wasn't emitting anything for an
error_mark_node.

Booted and tested i686-pc-linux-gnu.  All applied to trunk; last hunk also
applied to 3.1 branch.

2002-03-15  Jason Merrill  <jason@redhat.com>

	* varasm.c (assemble_variable): Call resolve_unique_section before
	checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
	of error_mark_node.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-patch
Size: 1835 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20020315/670f380c/attachment.bin>


More information about the Gcc-patches mailing list