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]

[PATCH] support static nested constructors in bitfields (1/2)


Hello,

This is a resubmission of a patch first suggested at

  http://gcc.gnu.org/ml/gcc-patches/2008-07/msg01802.html

The patch still applies. Just re-tested on x86_64-suse-linux, no new
regression. I'll be posting the followup part with tests etc shortly.

Thanks in advance,

Olivier

	2009-04-27  Olivier Hainque  <hainque@adacore.com>

	* varasm.c (oc_local_state): New structure, output_constructor
	local state to support communication with helpers.
	(output_constructor_array_range): New output_constructor helper,
	extracted code for an array range element.
	(output_constructor_regular_field): New output_constructor helper,
	extracted code for an element that is not a bitfield.
	(output_constructor_bitfield): New output_constructor helper,
	extracted code for a bitfield element.
	(output_constructor): Rework to use helpers.



Attachment: oc-split.dif
Description: Text document


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