[avr-gcc] silent false positive warnings about misspelled __vector_NN
Michal Hlavinka
mhlavink at fedoraproject.org
Wed Mar 5 14:18:46 UTC 2014
commit 0c069b4ba94a71c00918455a9c7ef64251270fc3
Author: Michal Hlavinka <mhlavink at redhat.com>
Date: Wed Mar 5 15:18:33 2014 +0100
silent false positive warnings about misspelled __vector_NN
avr-gcc-4.8.2-misspelled.patch | 21 +++++++++++++++++++++
avr-gcc.spec | 7 ++++++-
2 files changed, 27 insertions(+), 1 deletions(-)
---
diff --git a/avr-gcc-4.8.2-misspelled.patch b/avr-gcc-4.8.2-misspelled.patch
new file mode 100644
index 0000000..2c9fe13
--- /dev/null
+++ b/avr-gcc-4.8.2-misspelled.patch
@@ -0,0 +1,21 @@
+diff -up avr-gcc-4.8.2/gcc-4.8.2/gcc/config/avr/avr.c.avrdebug avr-gcc-4.8.2/gcc-4.8.2/gcc/config/avr/avr.c
+--- avr-gcc-4.8.2/gcc-4.8.2/gcc/config/avr/avr.c.avrdebug 2013-07-19 13:15:26.000000000 +0200
++++ avr-gcc-4.8.2/gcc-4.8.2/gcc/config/avr/avr.c 2014-03-05 15:03:48.941046492 +0100
+@@ -586,10 +586,14 @@ avr_set_current_function (tree decl)
+ tree ret = TREE_TYPE (TREE_TYPE (decl));
+ const char *name;
+
+- name = DECL_ASSEMBLER_NAME_SET_P (decl)
++ if (DECL_ASSEMBLER_NAME_SET_P (decl))
++ {
++ name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl));
+ /* Remove the leading '*' added in set_user_assembler_name. */
+- ? 1 + IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl))
+- : IDENTIFIER_POINTER (DECL_NAME (decl));
++ if (name && *name=='*') ++name;
++ }
++ else
++ name = IDENTIFIER_POINTER (DECL_NAME (decl));
+
+ /* Silently ignore 'signal' if 'interrupt' is present. AVR-LibC startet
+ using this when it switched from SIGNAL and INTERRUPT to ISR. */
diff --git a/avr-gcc.spec b/avr-gcc.spec
index fbe17d0..c3d4a01 100644
--- a/avr-gcc.spec
+++ b/avr-gcc.spec
@@ -2,7 +2,7 @@
Name: %{target}-gcc
Version: 4.8.2
-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-%{version}.tar.bz2
Source2: README.fedora
Patch0: avr-gcc-4.5.3-mint8.patch
+Patch1: avr-gcc-4.8.2-misspelled.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u} -n)
BuildRequires: %{target}-binutils >= 1:2.23, zlib-devel gawk gmp-devel mpfr-devel libmpc-devel, flex
@@ -42,6 +43,7 @@ platform.
pushd gcc-%{version}
%patch0 -p0
+%patch1 -p2 -b .misspelled
contrib/gcc_update --touch
popd
@@ -133,6 +135,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Wed Mar 05 2014 Michal Hlavinka <mhlavink at redhat.com> - 4.8.2-2
+- silent false positive warnings about misspelled __vector_NN
+
* Wed Oct 16 2013 Michal Hlavinka <mhlavink at redhat.com> - 4.8.2-1
- updated to 4.8.2
More information about the scm-commits
mailing list