[avr-gcc/f14/master] Fix bug 637019

Thibault North tnorth at fedoraproject.org
Fri Sep 24 15:31:32 UTC 2010


commit 3cba29dedb739d4b4654074c49ac6258eecc79ae
Author: Thibault North <tnorth at fedoraproject.org>
Date:   Fri Sep 24 11:31:22 2010 -0400

    Fix bug 637019

 avr-gcc-4.5.1-register-fix.patch |   22 ++++++++++++++++++++++
 avr-gcc.spec                     |    7 ++++++-
 2 files changed, 28 insertions(+), 1 deletions(-)
---
diff --git a/avr-gcc-4.5.1-register-fix.patch b/avr-gcc-4.5.1-register-fix.patch
new file mode 100644
index 0000000..8c119b0
--- /dev/null
+++ b/avr-gcc-4.5.1-register-fix.patch
@@ -0,0 +1,22 @@
+--- gcc-4.5.1.orig/gcc/config/avr/libgcc.S	2009-05-23 17:16:07 +1000
++++ gcc-4.5.1.orig/gcc/config/avr/libgcc.S	2010-08-12 09:38:05 +1000
+@@ -802,7 +802,9 @@ 
+ 	mov_h	r31, r29
+ 	mov_l	r30, r28
+ 	out     __RAMPZ__, r20
++	push	r20
+ 	XCALL	__tablejump_elpm__
++	pop	r20
+ .L__do_global_ctors_start:
+ 	cpi	r28, lo8(__ctors_start)
+ 	cpc	r29, r17
+@@ -843,7 +845,9 @@ 
+ 	mov_h	r31, r29
+ 	mov_l	r30, r28
+ 	out     __RAMPZ__, r20
++	push	r20
+ 	XCALL	__tablejump_elpm__
++	pop	r20
+ .L__do_global_dtors_start:
+ 	cpi	r28, lo8(__dtors_end)
+ 	cpc	r29, r17
diff --git a/avr-gcc.spec b/avr-gcc.spec
index 228daba..958227d 100644
--- a/avr-gcc.spec
+++ b/avr-gcc.spec
@@ -2,7 +2,7 @@
 
 Name:           %{target}-gcc
 Version:        4.5.1
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Cross Compiling GNU GCC targeted at %{target}
 Group:          Development/Languages
 License:        GPLv2+
@@ -11,6 +11,7 @@ Source0:        ftp://ftp.gnu.org/gnu/gcc/gcc-%{version}/gcc-core-%{version}.tar
 Source1:        ftp://ftp.gnu.org/gnu/gcc/gcc-%{version}/gcc-g++-%{version}.tar.bz2
 Source2:        README.fedora
 Patch0:         avr-gcc-4.5.0-new_devices.patch
+Patch1:         avr-gcc-4.5.1-register-fix.patch
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u} -n)
 BuildRequires:  %{target}-binutils >= 2.13, zlib-devel gawk gmp-devel mpfr-devel libmpc-devel
@@ -37,6 +38,7 @@ platform.
 %setup -q -c -a 1
 pushd gcc-%{version}
 %patch0 -p0
+%patch1 -p1
 
 contrib/gcc_update --touch
 popd
@@ -122,6 +124,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Fri Sep 24 2010 Thibault North <tnorth at fedoraproject.org> - 4.5.1-2
+- Fix bug #637019 (gcc bug #45263) with the patch of Alastair D'Silva
+
 * Tue Aug 3 2010 Thibault North <tnorth at fedoraproject.org> - 4.5.1-1
 - Updated to 4.5.1
 


More information about the scm-commits mailing list