From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26548 invoked by alias); 6 Nov 2005 06:06:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 26535 invoked by uid 48); 6 Nov 2005 06:06:51 -0000 Date: Sun, 06 Nov 2005 06:06:00 -0000 Subject: [Bug c/24691] New: attribute aligned is silently ignored or program is miscompiled X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "sabre at nondot dot org" X-SW-Source: 2005-11/txt/msg00824.txt.bz2 List-Id: This program shows a bug: either attribute align is being accepted when it shouldn't be, or it is being accepted but not doing it's job: int foo() { int __attribute__((aligned(1024))) X; printf("%d\n", (int)&X & 1023); } int main() { foo(); } On my machine, this prints "752". -Chris -- Summary: attribute aligned is silently ignored or program is miscompiled Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sabre at nondot dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24691