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] lm32: Fix multilib support


Tarik Graba, a colleague of mine, noticed that lm32 didn't seem to support
multilib support although a MULTILIB_OPTIONS was present in a configuration
file. It looks like this variable has been misplaced and thus is not used
correctly.

He came up with this small patch, which fixes the problem. Since lm32 support
is new in 4.5, is it ok to commit to trunk?

2010-03-08  Tarik Graba <tarik.graba@telecom-paristech.fr>

    gcc/
	* config/lm32/t-lm32: New file.
	* config.gcc: Use the above file when targetting lm32.

    libgcc/
	* config/lm32/t-lm32: Remove misplaced MULTILIB_OPTIONS.

---
 gcc/config.gcc            |    4 ++--
 gcc/config/lm32/t-lm32    |    2 ++
 libgcc/config/lm32/t-lm32 |    2 --
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/gcc/config.gcc b/gcc/config.gcc
index 2178206..a36457b 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -1498,11 +1498,11 @@ iq2000*-*-elf*)
         ;;
 lm32-*-elf*)
         tm_file="dbxelf.h elfos.h ${tm_file}"
-	tmake_file="${tmake_file} lm32/t-fprules-softfp soft-fp/t-softfp"
+	tmake_file="${tmake_file} lm32/t-lm32 lm32/t-fprules-softfp soft-fp/t-softfp"
         ;;
 lm32-*-uclinux*)
         tm_file="dbxelf.h elfos.h ${tm_file} linux.h lm32/uclinux-elf.h"
-	tmake_file="${tmake_file} lm32/t-fprules-softfp soft-fp/t-softfp"
+	tmake_file="${tmake_file} lm32/t-lm32 lm32/t-fprules-softfp soft-fp/t-softfp"
         ;;
 m32r-*-elf*)
 	tm_file="dbxelf.h elfos.h svr4.h newlib-stdint.h ${tm_file}"
diff --git a/gcc/config/lm32/t-lm32 b/gcc/config/lm32/t-lm32
new file mode 100644
index 0000000..ebe3773
--- /dev/null
+++ b/gcc/config/lm32/t-lm32
@@ -0,0 +1,2 @@
+# for multilib
+MULTILIB_OPTIONS = mmultiply-enabled mbarrel-shift-enabled
diff --git a/libgcc/config/lm32/t-lm32 b/libgcc/config/lm32/t-lm32
index ec76041..725e09a 100644
--- a/libgcc/config/lm32/t-lm32
+++ b/libgcc/config/lm32/t-lm32
@@ -8,5 +8,3 @@ LIB2ADD += \
         $(srcdir)/config/lm32/_modsi3.c \
         $(srcdir)/config/lm32/_udivsi3.c \
         $(srcdir)/config/lm32/_umodsi3.c
-
-MULTILIB_OPTIONS = mmultiply-enabled mbarrel-shift-enabled 
-- 
tg: (4a6097a..) t/lm32-multilib (depends on: origin/trunk)


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