From patchwork Fri Nov 21 13:45:11 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew MacLeod X-Patchwork-Id: 413050 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 6D1DF1401B5 for ; Sat, 22 Nov 2014 00:45:34 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:subject:content-type; q= dns; s=default; b=LKqsbGicup9Re/jp3GSOcn/v6v312Z4AvnIOKumVQwVZen 2qPabK5zXBIB5OdPpuu9ZHyi2CMrNxbDxF4ati/SNX9j7yLlx/31+7Tzro6xwSea 2GGZKp/JF0v+KCp1TwyyN7aR57MTn3Iwu7rRv5DpfTTPwXz0J8lRLRnE67r6U= 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 :message-id:date:from:mime-version:to:subject:content-type; s= default; bh=uLBhFWkGzyau/57I3qb4ITUHLrU=; b=Vz8jby33kbZeCbzrvu7O efmMMl6EWymAGQ4KAFn0m+cFCYT0qdCpzuf3tuOfiD2+cP1unFE7QtVz897OL/l0 mzrEFep2I1f3eqoHOKPMfK4eQ9NmAa40Dh/3whvLKTqaxCGwcaS3U8QJtQZdJfmI d1M1eh6m+aWOrhzR7Joh/JQ= Received: (qmail 12561 invoked by alias); 21 Nov 2014 13:45:26 -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 12546 invoked by uid 89); 21 Nov 2014 13:45:26 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.8 required=5.0 tests=AWL, BAYES_00, SPF_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: fencepost.gnu.org Received: from fencepost.gnu.org (HELO fencepost.gnu.org) (208.118.235.10) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Fri, 21 Nov 2014 13:45:24 +0000 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37015) by fencepost.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1XroWX-0006dr-Ki for gcc-patches@gnu.org; Fri, 21 Nov 2014 08:45:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XroWT-0001SX-2B for gcc-patches@gnu.org; Fri, 21 Nov 2014 08:45:21 -0500 Received: from mx1.redhat.com ([209.132.183.28]:46998) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XroWS-0001Rs-QT for gcc-patches@gnu.org; Fri, 21 Nov 2014 08:45:16 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id sALDjCeU031271 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Fri, 21 Nov 2014 08:45:13 -0500 Received: from [10.10.54.65] (vpn-54-65.rdu2.redhat.com [10.10.54.65]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id sALDjB2e030214 for ; Fri, 21 Nov 2014 08:45:12 -0500 Message-ID: <546F41E7.8030007@redhat.com> Date: Fri, 21 Nov 2014 08:45:11 -0500 From: Andrew MacLeod User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: "gcc-patches@gnu.org" Subject: [patch] Fix tilepro includes X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 X-IsSubscribed: yes During the flattening of optabs.h, I updated all the config/* files which were affected. I've been getting spurious failures with config-list.mk where my changes would "disappear" and tracked down why. I was blissfully unaware that the tilepro ports mul-tables.c file is actually generated from gen-mul-tables.cc. This patch fixes the include issue by adding "#include insn-codes.h" to the generated files. I also added a comment indicating these are generated files, and to make changes in the generator. This allows all the tile* ports to compile properly again. OK for trunk? Andrew * config/tilepro/gen-mul-tables.cc: Add insn-codes.h to include list for generator file. Add comment indicating it is a generated file. * config/tilepro/mul-tables.c: Update generated file. * config/tilegx/mul-tables.c: Likewise. Index: config/tilepro/gen-mul-tables.cc =================================================================== *** config/tilepro/gen-mul-tables.cc (revision 217787) --- config/tilepro/gen-mul-tables.cc (working copy) *************** main () *** 1249,1258 **** --- 1249,1262 ---- printf (" along with GCC; see the file COPYING3. If not see\n"); printf (" . */\n"); printf ("\n"); + printf ("/* Note this file is auto-generated from gen-mul-tables.cc.\n"); + printf (" Make any required changes there. */\n"); + printf ("\n"); printf ("#include \"config.h\"\n"); printf ("#include \"system.h\"\n"); printf ("#include \"coretypes.h\"\n"); printf ("#include \"expr.h\"\n"); + printf ("#include \"insn-codes.h\"\n"); printf ("#include \"optabs.h\"\n"); printf ("#include \"%s-multiply.h\"\n\n", ARCH); create_insn_code_compression_table (); Index: config/tilepro/mul-tables.c =================================================================== *** config/tilepro/mul-tables.c (revision 217787) --- config/tilepro/mul-tables.c (working copy) *************** *** 18,23 **** --- 18,26 ---- along with GCC; see the file COPYING3. If not see . */ + /* Note this file is auto-generated from gen-mul-tables.cc. + Make any required changes there. */ + #include "config.h" #include "system.h" #include "coretypes.h" Index: config/tilegx/mul-tables.c =================================================================== *** config/tilegx/mul-tables.c (revision 217787) --- config/tilegx/mul-tables.c (working copy) *************** *** 18,23 **** --- 18,26 ---- along with GCC; see the file COPYING3. If not see . */ + /* Note this file is auto-generated from gen-mul-tables.cc. + Make any required changes there. */ + #include "config.h" #include "system.h" #include "coretypes.h"