Patchwork [libgcc] sh-rtems: Add sh*-*-elf*'s extra_parts.

login
register
mail settings
Submitter Ralf Corsepius
Date Oct. 25, 2012, 4:12 a.m.
Message ID <5088BC28.9000700@rtems.org>
Download mbox | patch
Permalink /patch/194021/
State New
Headers show

Comments

Ralf Corsepius - Oct. 25, 2012, 4:12 a.m.
Hi,

I would like to apply the patch below to trunk and gcc-4.7 branch.
GCC doesn't build for sh-rtems* without it.

Ralf
Kaz Kojima - Oct. 25, 2012, 7:36 a.m.
Ralf Corsepius <ralf.corsepius@rtems.org> wrote:
> I would like to apply the patch below to trunk and gcc-4.7 branch.
> GCC doesn't build for sh-rtems* without it.

OK.  Please go ahead.

Regards,
	kaz
Ralf Corsepius - Oct. 25, 2012, 8:10 a.m.
On 10/25/2012 09:36 AM, Kaz Kojima wrote:
> Ralf Corsepius <ralf.corsepius@rtems.org> wrote:
>> I would like to apply the patch below to trunk and gcc-4.7 branch.
>> GCC doesn't build for sh-rtems* without it.
>
> OK.  Please go ahead.

Thanks, patch applied to trunk and gcc-4.7-branch.

Ralf

Patch

2012-07-10  Ralf Cors├ępius <ralf.corsepius@rtems.org>

	* config.host (sh*-*-rtems*): Add sh*-*-elf*'s extra_parts. 

diff --git a/libgcc/config.host b/libgcc/config.host
index ef9791b..6c5c825 100644
--- a/libgcc/config.host
+++ b/libgcc/config.host
@@ -995,7 +996,10 @@  sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
 sh-*-rtems*)
 	tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
 	extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
-		$sh_ic_extra_parts $sh_opt_extra_parts"
+		libic_invalidate_array_4-100.a \
+		libic_invalidate_array_4-200.a \
+		libic_invalidate_array_4a.a \
+		libgcc-Os-4-200.a libgcc-4-300.a"
 	;;
 sh-wrs-vxworks)
 	tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"