Patchwork [build] Move fixed-bit support to toplevel libgcc

login
register
mail settings
Submitter Rainer Orth
Date July 8, 2011, 10:33 a.m.
Message ID <ydd1uy112q7.fsf@manam.CeBiTec.Uni-Bielefeld.DE>
Download mbox | patch
Permalink /patch/103809/
State New
Headers show

Comments

Rainer Orth - July 8, 2011, 10:33 a.m.
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  <ro@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.
Paolo Bonzini - July 8, 2011, 10:58 a.m.
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<ro@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

Patch

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