From patchwork Wed Jun 20 09:54:32 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Steven Bosscher X-Patchwork-Id: 165973 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 EF643B6FA2 for ; Wed, 20 Jun 2012 19:55:13 +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=1340790914; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: MIME-Version:Received:From:Date:Message-ID:Subject:To: Content-Type:Content-Transfer-Encoding:Mailing-List:Precedence: List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=zI/+VgTrfbUWT+ocnhDD9jkc3Hw=; b=igk8EQsJajt08N+ zSIAK31WWbRQHF1Zk5ftYCA0XBZHanVr9y9M8R64WqYFZR0HAiEokYqV2zYLhUqU L/k49hjCgdk6RqGgPrGkT6/jS0I8srjy9dwmHPV1KMvZiWRsnhk62nasOLpc2+y2 vYswHoHW0nZn1Ry5di6Hc01VsqpE= 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:Received:MIME-Version:Received:From:Date:Message-ID:Subject:To:Content-Type:Content-Transfer-Encoding:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=RFI5R8fyUY+5246i+7Gp5ccRhDkVwLX80oHjPIG5M7LDcYKARBM8zBj3pZQqpu L+k3DNFA6IjQg/4MSiOKzNJsGNkrwVRtVuTZa+phsEFt1ekFV8+sKerR/k/Zva+z Mtm4a/UYedL41iUJc1W9V0rxb4sc96fi0lrYAbT9lPFOc=; Received: (qmail 29241 invoked by alias); 20 Jun 2012 09:55:09 -0000 Received: (qmail 29228 invoked by uid 22791); 20 Jun 2012 09:55:08 -0000 X-SWARE-Spam-Status: No, hits=-4.1 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 X-Spam-Check-By: sourceware.org Received: from mail-lb0-f175.google.com (HELO mail-lb0-f175.google.com) (209.85.217.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 20 Jun 2012 09:54:54 +0000 Received: by lbol5 with SMTP id l5so384084lbo.20 for ; Wed, 20 Jun 2012 02:54:53 -0700 (PDT) Received: by 10.152.122.12 with SMTP id lo12mr21783417lab.3.1340186093081; Wed, 20 Jun 2012 02:54:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.4.229 with HTTP; Wed, 20 Jun 2012 02:54:32 -0700 (PDT) From: Steven Bosscher Date: Wed, 20 Jun 2012 11:54:32 +0200 Message-ID: Subject: [patch][rl78] Remove unnecessary includes from rl78-c.c (committed) To: GCC Patches 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 Hello, rl78-c.c includes many files that it doesn't need. The patch below removes them. I could not really test this, because rl78 build is broken: /home/stevenb/devel/cross/build-rl78-test/./gcc/xgcc -B/home/stevenb/devel/cross/build-rl78-test/./gcc/ -nostdinc -B/home/stevenb/devel/cross/build-rl78-test/rl78-elf/newlib/ -isystem /home/stevenb/devel/cross/build-rl78-test/rl78-elf/newlib/targ-include -isystem /home/stevenb/devel/cross/combined/newlib/libc/include -B/home/stevenb/devel/cross/build-rl78-test/rl78-elf/libgloss/rl78 -L/home/stevenb/devel/cross/build-rl78-test/rl78-elf/libgloss/libnosys -L/home/stevenb/devel/cross/combined/libgloss/rl78 -B/usr/local/rl78-elf/bin/ -B/usr/local/rl78-elf/lib/ -isystem /usr/local/rl78-elf/include -isystem /usr/local/rl78-elf/sys-include -L/home/stevenb/devel/cross/build-rl78-test/./ld -DPACKAGE_NAME=\"newlib\" -DPACKAGE_TARNAME=\"newlib\" -DPACKAGE_VERSION=\"1.20.0\" -DPACKAGE_STRING=\"newlib\ 1.20.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -I. -I../../../../../combined/newlib/libc/stdlib -DPREFER_SIZE_OVER_SPEED -DSMALL_MEMORY -DMISSING_SYSCALL_NAMES -fno-builtin -g -O2 -c -o lib_a-strtoll.o `test -f 'strtoll.c' || echo '../../../../../combined/newlib/libc/stdlib/'`strtoll.c ../../../../../combined/newlib/libc/stdlib/rand.c: In function ârandâ: ../../../../../combined/newlib/libc/stdlib/rand.c:89:1: error: unrecognizable insn: } ^ (insn 405 404 406 2 (set (mem:HI (plus:HI (reg/f:HI 32 sp) (const_int 12 [0xc])) [0 S2 A16]) (const_int 62509 [0xf42d])) ../../../../../combined/newlib/libc/stdlib/rand.c:87 -1 (nil)) ../../../../../combined/newlib/libc/stdlib/rand.c:89:1: internal compiler error: in extract_insn, at recog.c:2130 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. But this patch is obvious enough that I've just decided to go ahead and commit it. Ciao! Steven * config/rl78/rl78-c.c: Remove unnecessary includes. Index: config/rl78/rl78-c.c =================================================================== --- config/rl78/rl78-c.c (revision 188820) +++ config/rl78/rl78-c.c (working copy) @@ -23,17 +23,8 @@ #include "coretypes.h" #include "tm.h" #include "tree.h" -#include "c-family/c-pragma.h" #include "c-family/c-common.h" -#include "diagnostic-core.h" -#include "cpplib.h" -#include "hard-reg-set.h" -#include "output.h" #include "rl78-protos.h" -#include "function.h" -#define MAX_RECOG_OPERANDS 10 -#include "reload.h" -#include "target.h" /* Implements REGISTER_TARGET_PRAGMAS. */ void