SHA256
2
0

Accepting request 176069 from home:Andreas_Schwab:Factory

- aarch64-support.patch: aarch64 support for gc from upstream
- libatomic_ops-aarch64.patch: aarch64 support for libatomic_ops from
  upstream add-aarch64-support branch

OBS-URL: https://build.opensuse.org/request/show/176069
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/gc?expand=0&rev=25
This commit is contained in:
Dr. Werner Fink 2013-05-18 22:07:04 +00:00 committed by Git OBS Bridge
parent 1eb7c95079
commit 57cce54a33
4 changed files with 1454 additions and 0 deletions

69
aarch64-support.patch Normal file
View File

@ -0,0 +1,69 @@
Index: gc-7.2/include/private/gcconfig.h
===================================================================
--- gc-7.2.orig/include/private/gcconfig.h
+++ gc-7.2/include/private/gcconfig.h
@@ -70,6 +70,13 @@
# define I386
# define mach_type_known
# endif
+# if defined(__aarch64__)
+# define AARCH64
+# if !defined(LINUX)
+# define NOSYS
+# define mach_type_known
+# endif
+# endif
# if defined(__arm) || defined(__arm__) || defined(__thumb__)
# define ARM32
# if !defined(LINUX) && !defined(NETBSD) && !defined(OPENBSD) \
@@ -250,6 +257,10 @@
# define IA64
# define mach_type_known
# endif
+# if defined(LINUX) && defined(__aarch64__)
+# define AARCH64
+# define mach_type_known
+# endif
# if defined(LINUX) && (defined(__arm) || defined(__arm__))
# define ARM32
# define mach_type_known
@@ -537,6 +548,7 @@
/* running Amdahl UTS4 */
/* S390 ==> 390-like machine */
/* running LINUX */
+ /* AARCH64 ==> ARM AArch64 */
/* ARM32 ==> Intel StrongARM */
/* IA64 ==> Intel IPF */
/* (e.g. Itanium) */
@@ -1899,6 +1911,31 @@
# endif
# endif
+# ifdef AARCH64
+# define CPP_WORDSZ 64
+# define MACH_TYPE "AARCH64"
+# define ALIGNMENT 8
+# ifndef HBLKSIZE
+# define HBLKSIZE 4096
+# endif
+# ifdef LINUX
+# define OS_TYPE "LINUX"
+# define LINUX_STACKBOTTOM
+# define DYNAMIC_LOADING
+ extern int __data_start[];
+# define DATASTART ((ptr_t)__data_start)
+ extern char _end[];
+# define DATAEND ((ptr_t)(&_end))
+# endif
+# ifdef NOSYS
+ /* __data_start is usually defined in the target linker script. */
+ extern int __data_start[];
+# define DATASTART ((ptr_t)__data_start)
+ extern void *__stack_base__;
+# define STACKBOTTOM ((ptr_t)__stack_base__)
+# endif
+# endif
+
# ifdef ARM32
# define CPP_WORDSZ 32
# define MACH_TYPE "ARM32"

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sat May 18 08:10:09 UTC 2013 - schwab@suse.de
- aarch64-support.patch: aarch64 support for gc from upstream
- libatomic_ops-aarch64.patch: aarch64 support for libatomic_ops from
upstream add-aarch64-support branch
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Mar 25 14:50:51 UTC 2013 - dmueller@suse.com Mon Mar 25 14:50:51 UTC 2013 - dmueller@suse.com

View File

@ -25,6 +25,8 @@ Summary: A garbage collector for C and C++
License: BSD-3-Clause License: BSD-3-Clause
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Source: http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/%{name}-%{src_ver}.tar.gz Source: http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/%{name}-%{src_ver}.tar.gz
Patch1: aarch64-support.patch
Patch2: libatomic_ops-aarch64.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf >= 2.64 BuildRequires: autoconf >= 2.64
BuildRequires: gcc-c++ BuildRequires: gcc-c++
@ -87,6 +89,8 @@ that involves minimum overhead across a variety of architectures.
%prep %prep
%setup -q -n %{name}-7.2 %setup -q -n %{name}-7.2
%patch1 -p1
%patch2
%build %build
# refresh auto*/libtool to purge rpaths # refresh auto*/libtool to purge rpaths

1374
libatomic_ops-aarch64.patch Normal file

File diff suppressed because it is too large Load Diff