From patchwork Wed Jul 9 01:02:26 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Stump X-Patchwork-Id: 368032 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 37F9D1400A0 for ; Wed, 9 Jul 2014 11:03:06 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; q=dns; s= default; b=wluhGeTQsH9EYXBUT4VVblMCRKEWXLLgqte9ob+m8vHJAFK2ENCx9 TL1c6Yzh0bbtBjATm6q/g+Fez9hSSL6lWmquZlApk0EDWC+JoYHjyefDC3Si8Duc 8iyMt7fWOSBhFrV6sEIHaboNpEUchyuCYqjdlSQBbKlAyFOdZR95sY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; s=default; bh=1NYv0kliwW3AHVzfPnZVLuEM6do=; b=oOk8EnHtj2Di2afIo1ocpVCmR+Zy wxb0wFvbuVxCVAf5nN1rkBmshKAAwPeCzvxeER9gsA/ayKrYK6Tz4EjVkh9nb/ZJ QGGtNJEC1MZsCJTfVAv97LUeH3fn9phNqo4JXKck2r+YQRSeTO4mfIlLo+zSYp9Y 2yBb9rOnSHkoELI= Received: (qmail 28598 invoked by alias); 9 Jul 2014 01:02:58 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 28536 invoked by uid 89); 9 Jul 2014 01:02:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-HELO: qmta13.emeryville.ca.mail.comcast.net Received: from qmta13.emeryville.ca.mail.comcast.net (HELO qmta13.emeryville.ca.mail.comcast.net) (76.96.27.243) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 09 Jul 2014 01:02:48 +0000 Received: from omta17.emeryville.ca.mail.comcast.net ([76.96.30.73]) by qmta13.emeryville.ca.mail.comcast.net with comcast id Q0ys1o0041afHeLAD12nQ8; Wed, 09 Jul 2014 01:02:47 +0000 Received: from [IPv6:2001:558:6045:a4:40c6:7199:cd03:b02d] ([IPv6:2001:558:6045:a4:40c6:7199:cd03:b02d]) by omta17.emeryville.ca.mail.comcast.net with comcast id Q12l1o00W2ztT3H8d12mcR; Wed, 09 Jul 2014 01:02:46 +0000 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) Subject: Re: [PATCH] Don't ICE with huge alignment (PR middle-end/60226) From: Mike Stump In-Reply-To: <20140708221258.5A38A105@mailhost.lps.ens.fr> Date: Tue, 8 Jul 2014 18:02:26 -0700 Cc: gcc-patches@gcc.gnu.org, polacek@redhat.com Message-Id: References: <20140708221258.5A38A105@mailhost.lps.ens.fr> To: Dominique Dhumieres X-IsSubscribed: yes On Jul 8, 2014, at 3:12 PM, Dominique Dhumieres wrote: >> diff --git gcc/testsuite/c-c++-common/pr60226.c gcc/testsuite/c-c++-common/pr60226.c > > The test fails on x86_64-apple-darwin13 with > > FAIL: c-c++-common/pr60226.c -std=gnu++98 (test for excess errors) > Excess errors: > /opt/gcc/work/gcc/testsuite/c-c++-common/pr60226.c:6:7: error: alignment of 'foo' is greater than maximum object file alignment 32768 Fixed, thanks. Index: pr60226.c =================================================================== --- pr60226.c (revision 212379) +++ pr60226.c (working copy) @@ -4,7 +4,7 @@ typedef int __attribute__ ((aligned (1 << 28))) int28; int28 foo[4] = {}; /* { dg-error "alignment of array elements is greater than element size" } */ -typedef int __attribute__ ((aligned (1 << 29))) int29; /* { dg-error "requested alignment is too large" } */ +typedef int __attribute__ ((aligned (1 << 29))) int29; /* { dg-error "requested alignment is too large|maximum object file alignment" } */ void f (void)