[gccxml/el5: 2/2] Support gcc builtin swap functions

Mattias Ellert ellert at fedoraproject.org
Mon Jul 23 18:15:21 UTC 2012


commit 84076eff3078b844217c99b216069714974003ed
Author: Mattias Ellert <mattias.ellert at fysast.uu.se>
Date:   Mon Jul 23 20:14:44 2012 +0200

    Support gcc builtin swap functions

 gccxml-swap.patch |   66 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 gccxml.spec       |    9 ++++++-
 2 files changed, 74 insertions(+), 1 deletions(-)
---
diff --git a/gccxml-swap.patch b/gccxml-swap.patch
new file mode 100644
index 0000000..31b1af2
--- /dev/null
+++ b/gccxml-swap.patch
@@ -0,0 +1,66 @@
+diff -ur gccxml-0.9.0-20120719.orig/GCC_XML/Support/GCC/4.2/gccxml_builtins.h gccxml-0.9.0-20120719/GCC_XML/Support/GCC/4.2/gccxml_builtins.h
+--- gccxml-0.9.0-20120719.orig/GCC_XML/Support/GCC/4.2/gccxml_builtins.h	2010-09-07 21:03:58.000000000 +0200
++++ gccxml-0.9.0-20120719/GCC_XML/Support/GCC/4.2/gccxml_builtins.h	2012-07-20 18:44:41.228661183 +0200
+@@ -130,7 +130,5 @@
+ double      __complex__ __builtin_cpow(double __complex__, double __complex__);
+ long double __complex__ __builtin_cpowl(long double __complex__, long double __complex__);
+ 
+-#ifdef __llvm__
+ extern unsigned int  __builtin_bswap32(unsigned int _data);
+ extern unsigned long __builtin_bswap64(unsigned long _data);
+-#endif
+diff -ur gccxml-0.9.0-20120719.orig/GCC_XML/Support/GCC/4.3/gccxml_builtins.h gccxml-0.9.0-20120719/GCC_XML/Support/GCC/4.3/gccxml_builtins.h
+--- gccxml-0.9.0-20120719.orig/GCC_XML/Support/GCC/4.3/gccxml_builtins.h	2010-09-07 21:04:00.000000000 +0200
++++ gccxml-0.9.0-20120719/GCC_XML/Support/GCC/4.3/gccxml_builtins.h	2012-07-20 18:44:41.228661183 +0200
+@@ -182,7 +182,5 @@
+ #define __is_empty(x) false
+ #define __has_trivial_destructor(x) false
+ 
+-#ifdef __llvm__
+ extern unsigned int  __builtin_bswap32(unsigned int _data);
+ extern unsigned long __builtin_bswap64(unsigned long _data);
+-#endif
+diff -ur gccxml-0.9.0-20120719.orig/GCC_XML/Support/GCC/4.4/gccxml_builtins.h gccxml-0.9.0-20120719/GCC_XML/Support/GCC/4.4/gccxml_builtins.h
+--- gccxml-0.9.0-20120719.orig/GCC_XML/Support/GCC/4.4/gccxml_builtins.h	2010-09-07 21:04:00.000000000 +0200
++++ gccxml-0.9.0-20120719/GCC_XML/Support/GCC/4.4/gccxml_builtins.h	2012-07-20 18:44:41.234661405 +0200
+@@ -152,7 +152,5 @@
+ #define __is_empty(x) false
+ #define __has_trivial_destructor(x) false
+ 
+-#ifdef __llvm__
+ extern unsigned int  __builtin_bswap32(unsigned int _data);
+ extern unsigned long __builtin_bswap64(unsigned long _data);
+-#endif
+diff -ur gccxml-0.9.0-20120719.orig/GCC_XML/Support/GCC/4.5/gccxml_builtins.h gccxml-0.9.0-20120719/GCC_XML/Support/GCC/4.5/gccxml_builtins.h
+--- gccxml-0.9.0-20120719.orig/GCC_XML/Support/GCC/4.5/gccxml_builtins.h	2010-09-07 21:04:01.000000000 +0200
++++ gccxml-0.9.0-20120719/GCC_XML/Support/GCC/4.5/gccxml_builtins.h	2012-07-20 18:44:41.235661440 +0200
+@@ -153,7 +153,5 @@
+ #define __has_trivial_destructor(x) false
+ #define __has_trivial_constructor(x) false
+ 
+-#ifdef __llvm__
+ extern unsigned int  __builtin_bswap32(unsigned int _data);
+ extern unsigned long __builtin_bswap64(unsigned long _data);
+-#endif
+diff -ur gccxml-0.9.0-20120719.orig/GCC_XML/Support/GCC/4.6/gccxml_builtins.h gccxml-0.9.0-20120719/GCC_XML/Support/GCC/4.6/gccxml_builtins.h
+--- gccxml-0.9.0-20120719.orig/GCC_XML/Support/GCC/4.6/gccxml_builtins.h	2011-02-10 14:59:45.000000000 +0100
++++ gccxml-0.9.0-20120719/GCC_XML/Support/GCC/4.6/gccxml_builtins.h	2012-07-20 18:44:41.235661440 +0200
+@@ -154,7 +154,5 @@
+ #define __has_trivial_destructor(x) false
+ #define __has_trivial_constructor(x) false
+ 
+-#ifdef __llvm__
+ extern unsigned int  __builtin_bswap32(unsigned int _data);
+ extern unsigned long __builtin_bswap64(unsigned long _data);
+-#endif
+diff -ur gccxml-0.9.0-20120719.orig/GCC_XML/Support/GCC/4.7/gccxml_builtins.h gccxml-0.9.0-20120719/GCC_XML/Support/GCC/4.7/gccxml_builtins.h
+--- gccxml-0.9.0-20120719.orig/GCC_XML/Support/GCC/4.7/gccxml_builtins.h	2012-03-09 14:36:33.000000000 +0100
++++ gccxml-0.9.0-20120719/GCC_XML/Support/GCC/4.7/gccxml_builtins.h	2012-07-20 18:44:41.236661476 +0200
+@@ -154,7 +154,5 @@
+ #define __has_trivial_destructor(x) false
+ #define __has_trivial_constructor(x) false
+ 
+-#ifdef __llvm__
+ extern unsigned int  __builtin_bswap32(unsigned int _data);
+ extern unsigned long __builtin_bswap64(unsigned long _data);
+-#endif
diff --git a/gccxml.spec b/gccxml.spec
index 686e808..b62d037 100644
--- a/gccxml.spec
+++ b/gccxml.spec
@@ -1,6 +1,6 @@
 Name:		gccxml
 Version:	0.9.0
-Release:	0.11.20120309%{?dist}
+Release:	0.12.20120309%{?dist}
 Summary:	XML output extension to GCC
 
 Group:		Development/Languages
@@ -13,6 +13,9 @@ URL:		http://www.gccxml.org/
 #		tar -z -c --exclude CVS --exclude Borland \
 #		    -f gccxml-0.9.0-20120309.tar.gz gccxml-0.9.0-20120309
 Source0:	%{name}-%{version}-20120309.tar.gz
+#		Support gcc builtin swap functions
+#		http://www.gccxml.org/Bug/view.php?id=13430
+Patch0:		%{name}-swap.patch
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:	cmake
@@ -27,6 +30,7 @@ without the burden of a complicated C++ parser.
 
 %prep
 %setup -q -n %{name}-%{version}-20120309
+%patch0 -p1
 
 %build
 %cmake -DGCCXML_DOC_DIR:STRING=share/doc/%{name}-%{version} .
@@ -59,6 +63,9 @@ rm -rf $RPM_BUILD_ROOT
 %doc %{_defaultdocdir}/%{name}-%{version}
 
 %changelog
+* Mon Jul 23 2012 Mattias Ellert <mattias.ellert at fysast.uu.se> - 0.9.0-0.12.20120309
+- Support gcc builtin swap functions
+
 * Thu Jul 19 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.9.0-0.11.20120309
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
 


More information about the scm-commits mailing list