From patchwork Tue Jul 24 10:36:57 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uros Bizjak X-Patchwork-Id: 172819 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 3D2172C0081 for ; Tue, 24 Jul 2012 20:37:18 +1000 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1343731039; h=Comment: DomainKey-Signature:Received:Received:Received:Received: MIME-Version:Received:Received:Date:Message-ID:Subject:From:To: Cc:Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:Sender:Delivered-To; bh=QuO6rgH 6FR06LogBwSBl3BxHhL0=; b=FZiJ6XNBQeKxfnnPCljJIN+ibxSEt5UhZe6iP/S 1Wz3b0LL1yc+3HEONF5GYxVfuSD52C/79aMF4T7NtokbS3RLOXbUu1uFDoG0v3d0 7bkZM4tt0dCtD7YSrBrqD9rIM9HTnxk8gHQD1mNYtMtqoefyKLbCYHAqm5Ld29e4 s9Eg= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:MIME-Version:Received:Received:Date:Message-ID:Subject:From:To:Cc:Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=oTlILYo9eLkvhvtthS5GbCxztxw4GsHYcCUUvliUb1AooLbQKGHlM+j7kZ7e1A Gki7AVvPgL1KdEqiFysH6MsysZuQ0Y5FmmbD8GDjohrgK00DLsCTBglF7UoEIo99 ZjAGCoL59n1LJ7qI6LgB83q1A4OTOO7DNSH6Bx2olD9eA=; Received: (qmail 31505 invoked by alias); 24 Jul 2012 10:37:13 -0000 Received: (qmail 31494 invoked by uid 22791); 24 Jul 2012 10:37:12 -0000 X-SWARE-Spam-Status: No, hits=-4.2 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, KHOP_RCVD_TRUST, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE, TW_ZJ X-Spam-Check-By: sourceware.org Received: from mail-pb0-f47.google.com (HELO mail-pb0-f47.google.com) (209.85.160.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 24 Jul 2012 10:36:58 +0000 Received: by pbbrq2 with SMTP id rq2so12569491pbb.20 for ; Tue, 24 Jul 2012 03:36:57 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.219.162 with SMTP id pp2mr43437239pbc.85.1343126217820; Tue, 24 Jul 2012 03:36:57 -0700 (PDT) Received: by 10.66.11.130 with HTTP; Tue, 24 Jul 2012 03:36:57 -0700 (PDT) Date: Tue, 24 Jul 2012 12:36:57 +0200 Message-ID: Subject: [PATCH]: Bad gcc/gtype-desc.h generated when using sparse checkout From: Uros Bizjak To: gcc-patches@gcc.gnu.org Cc: Laurynas Biveinis , Steven Bosscher 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 Hello! Attached patch implements suggested solution [1] from thread, starting at [2]. Patch works OK in my tree without ada directory. gcc/lto/ChangeLog: 2012-07-24 Uros Bizjak * lto-tree.h (lang_decl): Add variable_size GTY option. gcc/go/ChangeLog: 2012-07-24 Uros Bizjak * go-lang.c (lang_decl): Add variable_size GTY option. gcc/c/ChangeLog: 2012-07-24 Uros Bizjak * c-lang.h (lang_decl): Add variable_size GTY option. Tested on alphaev68-unknown-linux-gnu with all default languages + go + obj-c++. OK for mainline? [1] http://gcc.gnu.org/ml/gcc/2012-07/msg00057.html [2] http://gcc.gnu.org/ml/gcc/2012-07/msg00054.html Uros. Index: gcc/lto/lto-tree.h =================================================================== --- gcc/lto/lto-tree.h (revision 189801) +++ gcc/lto/lto-tree.h (working copy) @@ -28,7 +28,7 @@ struct tree_identifier base; }; -struct GTY(()) lang_decl +struct GTY((variable_size)) lang_decl { int dummy; /* Added because ggc does not like empty structs. */ }; Index: gcc/go/go-lang.c =================================================================== --- gcc/go/go-lang.c (revision 189801) +++ gcc/go/go-lang.c (working copy) @@ -50,7 +50,7 @@ /* Language-dependent contents of a decl. */ -struct GTY(()) lang_decl +struct GTY((variable_size)) lang_decl { char dummy; }; Index: gcc/c/c-lang.h =================================================================== --- gcc/c/c-lang.h (revision 189801) +++ gcc/c/c-lang.h (working copy) @@ -36,7 +36,7 @@ tree objc_info; }; -struct GTY(()) lang_decl { +struct GTY((variable_size)) lang_decl { char dummy; };