From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7050 invoked by alias); 5 May 2010 19:18:32 -0000 Received: (qmail 5432 invoked by uid 48); 5 May 2010 19:17:14 -0000 Date: Wed, 05 May 2010 19:18:00 -0000 Message-ID: <20100505191713.5429.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/43976] warning about increased alignment during casting printed even though variable is properly aligned In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "hp at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-05/txt/msg00474.txt.bz2 ------- Comment #3 from hp at gcc dot gnu dot org 2010-05-05 19:17 ------- The struct Foo looks like an odd way to try and express union Foo { int i; char c[sizeof (int)]; }; but that doesn't work either, for my 4.3.1 arm-linux build. Neither does moving the attribute just before the ";" (either ones) or before "char" (the original or the above). Neither in C (changing reinterpret_cast to a C cast). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43976