From patchwork Fri Apr 24 03:34:04 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jim Wilson X-Patchwork-Id: 47485 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9083320553 for ; Fri, 24 Apr 2015 03:34:40 +0000 (UTC) Received: by lbcne10 with SMTP id ne10sf8462597lbc.1 for ; Thu, 23 Apr 2015 20:34:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:mailing-list:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:sender :delivered-to:mime-version:date:message-id:subject:from:to :content-type:x-original-sender:x-original-authentication-results; bh=ZYieVoCK9ma3vOHFq2t1lduW6qDX/Ye7/JuzJP1ZwdE=; b=L7xj9YCy4PIAbea8NqSYym7HtF5P/I0ZlqnDi4GIWcmf4QfE7ohRwQoJ1GVVKa0lK8 6diLM9SYxWPiu53SEdzGca6I3s/0ix3gKnAaLtnfox2UXm9dzxxigxCJJmvgAWFD70I9 fC4CRACHg02QhSm4tERhqPkLmoOGgd6SX6M2uvhzT2hxjPRXRzEYCiqYXTpum85rMNT5 /U45tVp9b61K0NaE8KQaHFY6YhG6kYNLFFhJ7bY6GEoLiNsevoll1PW+o2nuXhTXqKgt GkZpOH81vOmIR3ZQKPhL52XTtxwnuyBiUfRypcLnSanHxnkM4++zQxdB3MfdBrSE5E12 E73Q== X-Gm-Message-State: ALoCoQmPRTQrv2P5Z3yaiZoalKcsbHy9WRrkKht1kghpQm6EwnnQvXHxh/VDglQFMaxDIMZr9I0q X-Received: by 10.112.29.39 with SMTP id g7mr2980355lbh.1.1429846479193; Thu, 23 Apr 2015 20:34:39 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.4.162 with SMTP id l2ls435108lal.93.gmail; Thu, 23 Apr 2015 20:34:39 -0700 (PDT) X-Received: by 10.152.43.43 with SMTP id t11mr4971071lal.74.1429846478884; Thu, 23 Apr 2015 20:34:38 -0700 (PDT) Received: from mail-la0-x231.google.com (mail-la0-x231.google.com. [2a00:1450:4010:c03::231]) by mx.google.com with ESMTPS id pz9si7310838lbb.92.2015.04.23.20.34.38 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Apr 2015 20:34:38 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c03::231 as permitted sender) client-ip=2a00:1450:4010:c03::231; Received: by layy10 with SMTP id y10so26340503lay.0 for ; Thu, 23 Apr 2015 20:34:38 -0700 (PDT) X-Received: by 10.112.219.70 with SMTP id pm6mr5052828lbc.41.1429846478669; Thu, 23 Apr 2015 20:34:38 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.67.65 with SMTP id l1csp938086lbt; Thu, 23 Apr 2015 20:34:37 -0700 (PDT) X-Received: by 10.68.218.103 with SMTP id pf7mr10980642pbc.32.1429846476315; Thu, 23 Apr 2015 20:34:36 -0700 (PDT) Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id gz6si15351619pbc.252.2015.04.23.20.34.35 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Apr 2015 20:34:36 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-395943-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Received: (qmail 112187 invoked by alias); 24 Apr 2015 03:34:15 -0000 Mailing-List: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org Precedence: list 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 112140 invoked by uid 89); 24 Apr 2015 03:34:09 -0000 X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.6 required=5.0 tests=AWL, BAYES_05, KAM_ASCII_DIVIDERS, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-qk0-f175.google.com Received: from mail-qk0-f175.google.com (HELO mail-qk0-f175.google.com) (209.85.220.175) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 24 Apr 2015 03:34:07 +0000 Received: by qkx62 with SMTP id 62so23285367qkx.0 for ; Thu, 23 Apr 2015 20:34:05 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.140.231.16 with SMTP id b16mr7188410qhc.22.1429846444904; Thu, 23 Apr 2015 20:34:04 -0700 (PDT) Received: by 10.140.98.213 with HTTP; Thu, 23 Apr 2015 20:34:04 -0700 (PDT) Date: Thu, 23 Apr 2015 20:34:04 -0700 Message-ID: Subject: gcc make clean fixes From: Jim Wilson To: "gcc-patches@gcc.gnu.org" X-Original-Sender: jim.wilson@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c03::231 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=pass header.i=@gcc.gnu.org X-Google-Group-Id: 836684582541 I noticed that make clean isn't removing C++ binaries. It was broken here https://gcc.gnu.org/ml/gcc-patches/2007-01/msg00214.html Removing stagestuff accidentally removed those items from the mostlyclean rule. They need to be re-added to the language dependent mostlyclean rules. All of the old languages are affected, except for java which someone already fixed. And plus the new language go which inherits the same mistake from the older languages. Also the new language jit which has no clean rules at all, so I added the bare minimum that we should have. This was tested by building every language except ada, running make clean, and looking at what was left. This gave the expected result. There are still a few misc things around, but this patch gets most of it. I didn't build ada because when I try to install gnat, apt-get tells me it has to remove gdb. I'm not willing to try that on my main development machine. But the ada patch follows the exact same rule as the others, which is to add stuff that used to be in stagestuff, and appears to be trivially correct. Jim Index: ada/ChangeLog =================================================================== --- ada/ChangeLog (revision 222394) +++ ada/ChangeLog (working copy) @@ -1,3 +1,8 @@ +2015-04-23 Jim Wilson + + * gcc-interface/Makefile-lan.in (ada.mostlyclean): Remove gnatbind + and gnat1. + 2015-04-13 Eric Botcazou * gnatvsn.ads (Library_Version): Bump to 6. Index: ada/gcc-interface/Make-lang.in =================================================================== --- ada/gcc-interface/Make-lang.in (revision 222394) +++ ada/gcc-interface/Make-lang.in (working copy) @@ -811,6 +811,7 @@ -$(RM) ada/*$(coverageexts) -$(RM) ada/sdefault.adb ada/stamp-sdefault ada/stamp-snames -$(RMDIR) ada/tools + -$(RM) gnatbind$(exeext) gnat1$(exeext) ada.clean: ada.distclean: -$(RM) ada/Makefile Index: cp/ChangeLog =================================================================== --- cp/ChangeLog (revision 222394) +++ cp/ChangeLog (working copy) @@ -1,3 +1,7 @@ +2015-04-23 Jim Wilson + + * Make-lang.in (c++.mostlyclean): Remove xg++, g++-cross, and cc1plus. + 2015-04-23 Jason Merrill PR c++/65646 Index: cp/Make-lang.in =================================================================== --- cp/Make-lang.in (revision 222394) +++ cp/Make-lang.in (working copy) @@ -221,6 +221,7 @@ -rm -f doc/g++.1 -rm -f cp/*$(objext) -rm -f cp/*$(coverageexts) + -rm -f xg++$(exeext) g++-cross$(exeext) cc1plus$(exeext) c++.clean: c++.distclean: -rm -f cp/config.status cp/Makefile Index: fortran/ChangeLog =================================================================== --- fortran/ChangeLog (revision 222394) +++ fortran/ChangeLog (working copy) @@ -1,3 +1,8 @@ +2015-04-23 Jim Wilson + + * Make-lang.in (fortran.mostlyclean): Remove gfortran and + gfortran-cross. + 2015-04-23 Andre Vehreschild PR fortran/60322 Index: fortran/Make-lang.in =================================================================== --- fortran/Make-lang.in (revision 222394) +++ fortran/Make-lang.in (working copy) @@ -275,7 +275,7 @@ # We just have to delete files specific to us. fortran.mostlyclean: - -rm -f f951$(exeext) + -rm -f gfortran$(exeext) gfortran-cross$(exeext) f951$(exeext) -rm -f fortran/*.o fortran.clean: Index: go/ChangeLog =================================================================== --- go/ChangeLog (revision 222394) +++ go/ChangeLog (working copy) @@ -1,3 +1,7 @@ +2015-04-23 Jim Wilson + + * Make-lang.in (go.mostlyclean): Remove gccgo, gccgo-cross, and go1. + 2015-04-17 Chris Manghane * Make-lang.in (GO_OBJS): Add go/escape.o. Index: go/Make-lang.in =================================================================== --- go/Make-lang.in (revision 222394) +++ go/Make-lang.in (working copy) @@ -198,6 +198,7 @@ go.mostlyclean: -rm -f go/*$(objext) -rm -f go/*$(coverageexts) + -rm -f gccgo$(exeext) gccgo-cross$(exeext) go1$(exeext) go.clean: go.distclean: go.maintainer-clean: Index: jit/ChangeLog =================================================================== --- jit/ChangeLog (revision 222394) +++ jit/ChangeLog (working copy) @@ -1,3 +1,8 @@ +2015-04-23 Jim Wilson + + * Make-lang.in (jit.mostlyclean): Remove shared libraries and object + files. + 2015-04-09 David Malcolm PR jit/65691 Index: jit/Make-lang.in =================================================================== --- jit/Make-lang.in (revision 222394) +++ jit/Make-lang.in (working copy) @@ -285,6 +285,10 @@ # We just have to delete files specific to us. jit.mostlyclean: + -rm -f $(LIBGCCJIT_FILENAME) $(LIBGCCJIT_SYMLINK) + -rm -f $(LIBGCCJIT_LINKER_NAME_SYMLINK) $(FULL_DRIVER_NAME) + -rm -f $(LIBGCCJIT_SONAME) + -rm -f $(jit_OBJS) jit.clean: Index: objc/ChangeLog =================================================================== --- objc/ChangeLog (revision 222394) +++ objc/ChangeLog (working copy) @@ -1,3 +1,7 @@ +2015-04-23 Jim Wilson + + * Make-lang.in (objc.mostlyclean): Remove cc1obj. + 2015-04-18 Trevor Saunders * objc-act.c: Adjust for hash_table changes. Index: objc/Make-lang.in =================================================================== --- objc/Make-lang.in (revision 222394) +++ objc/Make-lang.in (working copy) @@ -114,6 +114,7 @@ objc.mostlyclean: -rm -f objc/*$(objext) objc/xforward objc/fflags -rm -f objc/*$(coverageexts) + -rm -f cc1obj$(exeext) objc.clean: objc.mostlyclean -rm -rf objc-headers objc.distclean: Index: objcp/ChangeLog =================================================================== --- objcp/ChangeLog (revision 222394) +++ objcp/ChangeLog (working copy) @@ -1,3 +1,7 @@ +2015-04-23 Jim Wilson + + * Make-lang.in (obj-c++.mostlyclean): Remove cc1objplus. + 2015-01-09 Michael Collison * objcp-decl.c: Include hash-set.h, machmode.h, vec.h, double-int.h, Index: objcp/Make-lang.in =================================================================== --- objcp/Make-lang.in (revision 222394) +++ objcp/Make-lang.in (working copy) @@ -142,6 +142,7 @@ obj-c++.mostlyclean: -rm -f objcp/*$(objext) -rm -f objcp/*$(coverageexts) + -rm -f cc1objplus$(exeext) obj-c++.clean: obj-c++.mostlyclean obj-c++.distclean: -rm -f objcp/config.status objcp/Makefile