From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24426 invoked by alias); 30 Mar 2017 20:28:44 -0000 Mailing-List: contact jit-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Subscribe: Sender: jit-owner@gcc.gnu.org Received: (qmail 23438 invoked by uid 89); 30 Mar 2017 20:28:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.99.2 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=H*r:TLS1.2, H*r:4.88 X-Spam-Status: No, score=-1.1 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-HELO: albireo.enyo.de From: Florian Weimer To: David Malcolm Cc: =?utf-8?B?7KCV7J2467CwKEluYmFlIEplb25nKQ==?= , jit@gcc.gnu.org Subject: Re: [PATCH] Work-in-progress: gcc_jit_type_get_aligned References: <1490730511-17122-1-git-send-email-dmalcolm@redhat.com> Date: Sun, 01 Jan 2017 00:00:00 -0000 In-Reply-To: <1490730511-17122-1-git-send-email-dmalcolm@redhat.com> (David Malcolm's message of "Tue, 28 Mar 2017 15:48:31 -0400") Message-ID: <87y3vmse4n.fsf@mid.deneb.enyo.de> MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2017-q1/txt/msg00024.txt.bz2 * David Malcolm: > Here's a work-in-progress implementation of the idea, adding this > entrypoint to the API: > > extern gcc_jit_type * > gcc_jit_type_get_aligned (gcc_jit_type *type, > unsigned int alignment_in_bytes); Should be size_t, not unsigned int. A 2**31 alignment isn't as ridiculous as it might seem. x86-64 already has a 2**30 alignment requirement in some contexts.