On 07/08/2011 12:33 PM, Rainer Orth wrote:
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<r...@cebitec.uni-bielefeld.de>

        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


Ok.

Paolo

Reply via email to