From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 43227 invoked by alias); 23 Aug 2015 11:05:45 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 43213 invoked by uid 89); 23 Aug 2015 11:05:45 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.7 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: gate.crashing.org Received: from gate.crashing.org (HELO gate.crashing.org) (63.228.1.57) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Sun, 23 Aug 2015 11:05:44 +0000 Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.13.8) with ESMTP id t7NB5eqP018127; Sun, 23 Aug 2015 06:05:40 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id t7NB5dFJ018126; Sun, 23 Aug 2015 06:05:39 -0500 Date: Sun, 23 Aug 2015 11:05:00 -0000 From: Segher Boessenkool To: Jonathan Wakely Cc: john smith , gcc-help Subject: Re: are statically allocated structs always aligned to a machine word on x86/x86_64? Message-ID: <20150823110539.GA16487@gate.crashing.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-IsSubscribed: yes X-SW-Source: 2015-08/txt/msg00134.txt.bz2 On Sun, Aug 23, 2015 at 12:15:56AM +0100, Jonathan Wakely wrote: > because alignments must be a power of 2. That is true in C++, but not true in C or even POSIX afaics? Segher