From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21018 invoked by alias); 30 Dec 2004 18:32:24 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 20774 invoked from network); 30 Dec 2004 18:32:12 -0000 Received: from unknown (HELO smtp.e7even.com) (83.151.192.5) by sourceware.org with SMTP; 30 Dec 2004 18:32:12 -0000 Received: (qmail 8717 invoked from network); 30 Dec 2004 18:32:07 -0000 Received: from unknown (HELO localhost) (127.0.0.1) by localhost with SMTP; 30 Dec 2004 18:32:07 -0000 Received: from smtp.e7even.com ([127.0.0.1]) by localhost (gateway [127.0.0.1]) (amavisd-new, port 10024) with SMTP id 27759-10 for ; Thu, 30 Dec 2004 18:32:06 +0000 (GMT) Received: (qmail 8711 invoked from network); 30 Dec 2004 18:32:06 -0000 Received: from unknown (HELO RICHARD.rtrussell.co.uk) (83.151.197.116) by smtp.e7even.com with SMTP; 30 Dec 2004 18:32:06 -0000 Message-Id: <6.2.0.14.0.20041230182947.01c7d1d0@mail.e7even.com> Date: Thu, 30 Dec 2004 18:32:00 -0000 To: gcc-help@gcc.gnu.org From: Richard Russell Subject: Jump table alignment (2.95.2 versus 3.2.3) Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-SW-Source: 2004-12/txt/msg00265.txt.bz2 Hello, I have recently 'upgraded' to 3.2.3 from 2.95.2 (MinGW version) and I am trying to get it to produce code no larger than its predecessor. Even with the -Os option it is still generating object modules somewhat larger than before, and close examination shows that this is because jump table (dispatch table) entries are now aligned on 16-byte boundaries rather than 4-bytes with 2.95.2. With large tables this wastes quite a lot of space. Is there an option which will force gcc 3.2.3 to use 4-byte or 8-byte alignment for jump table entries ? Richard. http://www.rtrussell.co.uk/