This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch committed] Need 64bit hwint for sh-*-*


Hi,

Currently we set need_64bit_hwint to yes for sh[123456789lbe]*-*-*
in config.gcc.  This target pattern filters sh-unknown-elf out for
example.  As a result, sometimes sh-unknown-elf compiler behaves
differently from sh2a-unknown-elf compiler even with the -m2a option.
It'd be not only bad from the maintenance viewpoint, but also surprising
to users.  The attached patch makes need_64bit_hwint set to yes also
for sh-*-* targets.  It's tested with building of unified tree for
sh-unknown-elf and bootstraping on i686-pc-linux-gnu.  There is no
new failures with "make -k check" on sim.  Applied on trunk.

Regards,
	kaz
--
[gcc/ChangeLog]
2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>

	* config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.

[libcpp/ChangeLog]
2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>

	* configure.ac: (need_64bit_hwint): Need 64bit hwint for sh-*-*
	and shbe-*-*.
	* configure: Rebuilt.

diff -uprN ORIG/trunk/gcc/config.gcc LOCAL/trunk/gcc/config.gcc
--- ORIG/trunk/gcc/config.gcc	2008-04-05 09:19:15.000000000 +0900
+++ LOCAL/trunk/gcc/config.gcc	2008-04-11 07:32:40.000000000 +0900
@@ -373,7 +373,7 @@ s390*-*-*)
 	need_64bit_hwint=yes
 	;;
 # Note the 'l'; we need to be able to match e.g. "shle" or "shl".
-sh[123456789lbe]*-*-*)
+sh[123456789lbe]*-*-* | sh-*-*)
 	cpu_type=sh
 	need_64bit_hwint=yes
 	;;
diff -uprN ORIG/trunk/libcpp/configure LOCAL/trunk/libcpp/configure
--- ORIG/trunk/libcpp/configure	2007-12-05 09:12:27.000000000 +0900
+++ LOCAL/trunk/libcpp/configure	2008-04-11 09:23:34.000000000 +0900
@@ -8312,7 +8312,7 @@ case $target in
 	sparcv9-*-solaris2* | \
 	sparc-*-solaris2.[789] | sparc-*-solaris2.1[0-9]* | \
 	spu-*-* | \
-	sh[123456789l]*-*-*)
+	sh[123456789lbe]*-*-* | sh-*-*)
 		need_64bit_hwint=yes ;;
 	i[34567]86-*-linux*)
 		if test "x$enable_targets" = xall; then
diff -uprN ORIG/trunk/libcpp/configure.ac LOCAL/trunk/libcpp/configure.ac
--- ORIG/trunk/libcpp/configure.ac	2007-12-05 09:12:27.000000000 +0900
+++ LOCAL/trunk/libcpp/configure.ac	2008-04-11 09:23:15.000000000 +0900
@@ -130,7 +130,7 @@ case $target in
 	sparcv9-*-solaris2* | \
 	sparc-*-solaris2.[789] | sparc-*-solaris2.1[0-9]* | \
 	spu-*-* | \
-	sh[123456789l]*-*-*)
+	sh[123456789lbe]*-*-* | sh-*-*)
 		need_64bit_hwint=yes ;;
 	i[34567]86-*-linux*)
 		if test "x$enable_targets" = xall; then


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]