From: iverson AT cisco DOT com (Tim Iverson) Subject: Default alignment? 8 Aug 1997 01:08:53 -0700 Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: <199708080505.WAA00263.cygnus.gnu-win32@stars.cisco.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Original-To: gnu-win32 AT cygnus DOT com X-Mailer: ELM [version 2.4 PL25] Original-Sender: owner-gnu-win32 AT cygnus DOT com I need to change the default alignment for all structures and unions from 4 bytes to 2 bytes. Is there a handy -falign=2 option? I didn't see one in the info files, but that doesn't mean it isn't there. I also tried #pragma pack(2) -- it would be fairly easy to just put that into the top level headers. However it doesn't seem to work here, even though MSC supports it and gcc does too on Unixen that have it. It is simply too large a task to go and mark every structure and union with __attribute__ ((aligned (2), packed)). Naturally, I'd prefer not to rebuild GCC just to add a new -f option. Anyone got some good news for me on this? ;-) Thanks, - Tim Iverson iverson AT cisco DOT com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".