From patchwork Thu Oct 6 22:28:02 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 118176 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]) by ozlabs.org (Postfix) with SMTP id 945B6B6F9B for ; Fri, 7 Oct 2011 09:28:26 +1100 (EST) Received: (qmail 20393 invoked by alias); 6 Oct 2011 22:28:24 -0000 Received: (qmail 20384 invoked by uid 22791); 6 Oct 2011 22:28:23 -0000 X-SWARE-Spam-Status: No, hits=-6.6 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 06 Oct 2011 22:28:04 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p96MS3n7030225 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 6 Oct 2011 18:28:03 -0400 Received: from anchor.twiddle.net (vpn-236-148.phx2.redhat.com [10.3.236.148]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p96MS3oP024009; Thu, 6 Oct 2011 18:28:03 -0400 Message-ID: <4E8E2B72.6090501@redhat.com> Date: Thu, 06 Oct 2011 15:28:02 -0700 From: Richard Henderson User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20110906 Thunderbird/6.0.2 MIME-Version: 1.0 To: Jakub Jelinek CC: GCC Patches Subject: [RFC] --enable-checking=fold build failure X-IsSubscribed: yes 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 The layout of trees has been restructured since anyone has tried to enable fold checking (or =all checking). One of the types referenced, struct tree_type, doesn't exist anymore. Jakub, I was hoping you could remember exactly what you were trying to test for with this assert. It looks terribly arbitrary after all this time... r~ diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 404d904..7568c6f 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -13880,11 +13880,7 @@ fold_checksum_tree (const_tree expr, struct md5_ctx *ctx, htab_t ht) union tree_node buf; int i, len; -recursive_label: - - gcc_assert ((sizeof (struct tree_exp) + 5 * sizeof (tree) - <= sizeof (struct tree_function_decl)) - && sizeof (struct tree_type) <= sizeof (struct tree_function_decl)); + recursive_label: if (expr == NULL) return; slot = (void **) htab_find_slot (ht, expr, INSERT);