From patchwork Fri Jul 8 10:33:20 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rainer Orth X-Patchwork-Id: 103809 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 7AEE71007D2 for ; Fri, 8 Jul 2011 20:33:40 +1000 (EST) Received: (qmail 28054 invoked by alias); 8 Jul 2011 10:33:38 -0000 Received: (qmail 28045 invoked by uid 22791); 8 Jul 2011 10:33:38 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from snape.CeBiTec.Uni-Bielefeld.DE (HELO smtp-relay.CeBiTec.Uni-Bielefeld.DE) (129.70.160.84) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 08 Jul 2011 10:33:24 +0000 Received: from localhost (localhost.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 84F1F93C; Fri, 8 Jul 2011 12:33:23 +0200 (CEST) Received: from smtp-relay.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (malfoy.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) (amavisd-new, port 10024) with LMTP id JZsupJQ7UDCh; Fri, 8 Jul 2011 12:33:21 +0200 (CEST) Received: from manam.CeBiTec.Uni-Bielefeld.DE (manam.CeBiTec.Uni-Bielefeld.DE [129.70.161.120]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPS id 61DCC939; Fri, 8 Jul 2011 12:33:21 +0200 (CEST) Received: (from ro@localhost) by manam.CeBiTec.Uni-Bielefeld.DE (8.14.4+Sun/8.14.4/Submit) id p68AXKSF004581; Fri, 8 Jul 2011 12:33:20 +0200 (MEST) From: Rainer Orth To: gcc-patches@gcc.gnu.org Cc: Paolo Bonzini , Ralf Wildenhues , Ian Lance Taylor , Richard Sandiford Subject: [build] Move fixed-bit support to toplevel libgcc Date: Fri, 08 Jul 2011 12:33:20 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (usg-unix-v) MIME-Version: 1.0 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 next patch in the line of toplevel libgcc moves proved to be completely trivial: fixed-bit.[ch] is moved over with corresponding include and Makefile changes. Tested with a C-only --enable-fixed-point non-bootstrap build/test on mips-sgi-irix6.5. Without --enable-fixed-point, fixed-point support is omitted on that target since it overflows the default command line length limit, but I've raised that to the max. on my test machine. The build succeeded, and libgcc.a/libgcc_s.so.1 grew by a factor 10 resp. 6 in size :-) All fixed-point tests succeeded for both multilibs. Ok for mainline? Thanks. Rainer 2011-06-22 Rainer Orth gcc: * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc. libgcc: * fixed-bit.c, fixed-bit.h: New files. * fixed-obj.mk ($(o)_s$(objext)): Use $(srcdir) to refer to fixed-bit.c. diff --git a/gcc/config/fixed-bit.c b/libgcc/fixed-bit.c rename from gcc/config/fixed-bit.c rename to libgcc/fixed-bit.c --- a/gcc/config/fixed-bit.c +++ b/libgcc/fixed-bit.c @@ -51,7 +51,7 @@ see the files COPYING3 and COPYING.RUNTI #define MIN_UNITS_PER_WORD UNITS_PER_WORD #endif -#include "config/fixed-bit.h" +#include "fixed-bit.h" #if defined(FIXED_ADD) && defined(L_add) FIXED_C_TYPE diff --git a/gcc/config/fixed-bit.h b/libgcc/fixed-bit.h rename from gcc/config/fixed-bit.h rename to libgcc/fixed-bit.h diff --git a/libgcc/fixed-obj.mk b/libgcc/fixed-obj.mk --- a/libgcc/fixed-obj.mk +++ b/libgcc/fixed-obj.mk @@ -22,10 +22,10 @@ endif #$(info $o$(objext): -DL$($o-label) $($o-opt)) -$o$(objext): %$(objext): $(gcc_srcdir)/config/fixed-bit.c - $(gcc_compile) -DL$($*-label) $($*-opt) -c $(gcc_srcdir)/config/fixed-bit.c $(vis_hide) +$o$(objext): %$(objext): $(srcdir)/fixed-bit.c + $(gcc_compile) -DL$($*-label) $($*-opt) -c $(srcdir)/fixed-bit.c $(vis_hide) ifeq ($(enable_shared),yes) -$(o)_s$(objext): %_s$(objext): $(gcc_srcdir)/config/fixed-bit.c - $(gcc_s_compile) -DL$($*-label) $($*-opt) -c $(gcc_srcdir)/config/fixed-bit.c +$(o)_s$(objext): %_s$(objext): $(srcdir)/fixed-bit.c + $(gcc_s_compile) -DL$($*-label) $($*-opt) -c $(srcdir)/fixed-bit.c endif