Patchwork [commited] Add custom RTEMS lm32 multilibs

login
register
mail settings
Submitter Ralf Corsepius
Date Nov. 5, 2011, 3:08 a.m.
Message ID <4EB4A8C3.9070601@rtems.org>
Download mbox | patch
Permalink /patch/123813/
State New
Headers show

Comments

Ralf Corsepius - Nov. 5, 2011, 3:08 a.m.
Hi,

I applied the patch below to SVN-trunk. We've been using it for the 
RTEMS toolchains for several months.

Ralf
2011-11-05	Ralf Cors├ępius <ralf.corsepius@rtems.org>

	* config/lm32/t-rtems: New.
	* config.gcc (lm32-*-rtems*): Add t-rtems.
Rainer Orth - Nov. 7, 2011, 10:17 a.m.
Hi Ralf,

> Index: gcc/config.gcc
> ===================================================================
> --- gcc/config.gcc	(revision 180973)
> +++ gcc/config.gcc	(revision 180974)
> @@ -1539,6 +1539,7 @@
>  	tm_file="dbxelf.h elfos.h ${tm_file} lm32/rtems.h rtems.h newlib-stdint.h"
>  	tmake_file="${tmake_file} lm32/t-lm32"
>  	tmake_file="${tmake_file} t-rtems"
> +	tmake_file="${tmake_file} lm32/t-rtems"

just a nit: why three lines where a single one would be clearer?

	Rainer
Ralf Corsepius - Nov. 7, 2011, 11:54 a.m.
On 11/07/2011 11:17 AM, Rainer Orth wrote:
> Hi Ralf,
>
>> Index: gcc/config.gcc
>> ===================================================================
>> --- gcc/config.gcc	(revision 180973)
>> +++ gcc/config.gcc	(revision 180974)
>> @@ -1539,6 +1539,7 @@
>>   	tm_file="dbxelf.h elfos.h ${tm_file} lm32/rtems.h rtems.h newlib-stdint.h"
>>   	tmake_file="${tmake_file} lm32/t-lm32"
>>   	tmake_file="${tmake_file} t-rtems"
>> +	tmake_file="${tmake_file} lm32/t-rtems"
> just a nit: why three lines where a single one would be clearer
Keeping the impact of GCC changes low / Keeping the rtems parts separate 
from "generic GCC" parts.

Admitted, we could use a common line for t-rtems and lm32/t-rtems.

Ralf

Patch

Index: gcc/config.gcc
===================================================================
--- gcc/config.gcc	(revision 180973)
+++ gcc/config.gcc	(revision 180974)
@@ -1539,6 +1539,7 @@ 
 	tm_file="dbxelf.h elfos.h ${tm_file} lm32/rtems.h rtems.h newlib-stdint.h"
 	tmake_file="${tmake_file} lm32/t-lm32"
 	tmake_file="${tmake_file} t-rtems"
+	tmake_file="${tmake_file} lm32/t-rtems"
          ;;
 lm32-*-uclinux*)
         tm_file="dbxelf.h elfos.h ${tm_file} gnu-user.h linux.h lm32/uclinux-elf.h"
Index: gcc/config/lm32/t-rtems
===================================================================
--- gcc/config/lm32/t-rtems	(revision 0)
+++ gcc/config/lm32/t-rtems	(revision 180974)
@@ -0,0 +1,21 @@ 
+# Custom RTEMS multilibs
+
+MULTILIB_OPTIONS = mmultiply-enabled mbarrel-shift-enabled
+MULTILIB_OPTIONS += mdivide-enabled msign-extend-enabled
+
+MULTILIB_EXCEPTIONS =
+# MULTILIB_EXCEPTIONS += mmultiply-enabled/mbarrel-shift-enabled/mdivide-enabled/msign-extend-enabled
+MULTILIB_EXCEPTIONS += mmultiply-enabled/mbarrel-shift-enabled/mdivide-enabled
+MULTILIB_EXCEPTIONS += mmultiply-enabled/mbarrel-shift-enabled/msign-extend-enabled
+# MULTILIB_EXCEPTIONS += mmultiply-enabled/mbarrel-shift-enabled
+MULTILIB_EXCEPTIONS += mmultiply-enabled/mdivide-enabled/msign-extend-enabled
+MULTILIB_EXCEPTIONS += mmultiply-enabled/mdivide-enabled
+MULTILIB_EXCEPTIONS += mmultiply-enabled/msign-extend-enabled
+# MULTILIB_EXCEPTIONS += mmultiply-enabled
+MULTILIB_EXCEPTIONS += mbarrel-shift-enabled/mdivide-enabled/msign-extend-enabled
+MULTILIB_EXCEPTIONS += mbarrel-shift-enabled/mdivide-enabled
+MULTILIB_EXCEPTIONS += mbarrel-shift-enabled/msign-extend-enabled
+# MULTILIB_EXCEPTIONS += mbarrel-shift-enabled
+MULTILIB_EXCEPTIONS += mdivide-enabled/msign-extend-enabled
+MULTILIB_EXCEPTIONS += mdivide-enabled
+MULTILIB_EXCEPTIONS += msign-extend-enabled