Skip to contentSkip to conversation

package/uclibc: add upstream patch to fix build issue with gcc7

PATCH New Romain Naour 4 participants 8 messages May 23, 2017 – May 25, 2017

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/3 package/uclibc: add upstream patch to fix build issue with gcc7

As reported on the mailing list [1], there is a build issue with gcc 7 and uClibc-ng.

Thanks to Waldemar for the fix :)

[1] http://lists.busybox.net/pipermail/buildroot/2017-May/191140.html

Cc Waldemar Brodkorb <[email protected]>
---
 ...es.h-with-GNU-C-library-fixes-gcc-7.1-too.patch | 64 ++++++++++++++++++++++
 1 file changed, 64 insertions(+)
 create mode 100644 package/uclibc/0001-sync-features.h-with-GNU-C-library-fixes-gcc-7.1-too.patch
package/uclibc/0001-sync-features.h-with-GNU-C-library-fixes-gcc-7.1-too.patch new file +64 -0
new file mode 100644
index 0000000..eb1459b
@@ -0,0 +1,64 @@
+From 5b0f49037e8ea8500b05c8f31ee88529ccac4cee Mon Sep 17 00:00:00 2001
+From: Waldemar Brodkorb <[email protected]>
+Date: Sun, 7 May 2017 16:28:14 +0200
+Subject: [PATCH] sync features.h with GNU C library, fixes gcc 7.1 toolchain
+ creation
+
+[Romain: backport to uClibc-ng 1.0.24]
+Signed-off-by: Romain Naour <[email protected]>
+---
+ include/features.h | 17 ++++++++++++-----
+ 1 file changed, 12 insertions(+), 5 deletions(-)
+
+diff --git a/include/features.h b/include/features.h
+index e76bbba..f982079 100644
+--- a/include/features.h
++++ b/include/features.h
+@@ -55,6 +55,7 @@
+    These are defined by this file and are used by the
+    header files to decide what to declare or define:
+ 
++   __USE_ISOC11		Define ISO C11 things.
+    __USE_ISOC99		Define ISO C99 things.
+    __USE_ISOC95		Define ISO C90 AMD1 (C95) things.
+    __USE_POSIX		Define IEEE Std 1003.1 things.
+@@ -91,6 +92,7 @@
+ 
+ 
+ /* Undefine everything, so we get a clean slate.  */
++#undef	__USE_ISOC11
+ #undef	__USE_ISOC99
+ #undef	__USE_ISOC95
+ #undef	__USE_POSIX
+@@ -151,6 +153,8 @@
+ #ifdef _GNU_SOURCE
+ # undef  _ISOC99_SOURCE
+ # define _ISOC99_SOURCE	1
++# undef  _ISOC11_SOURCE
++# define _ISOC11_SOURCE	1
+ # undef  _POSIX_SOURCE
+ # define _POSIX_SOURCE	1
+ # undef  _POSIX_C_SOURCE
+@@ -223,11 +227,14 @@
+ # define _SVID_SOURCE	1
+ #endif
+ 
+-/* This is to enable the ISO C99 extension.  Also recognize the old macro
+-   which was used prior to the standard acceptance.  This macro will
+-   eventually go away and the features enabled by default once the ISO C99
+-   standard is widely adopted.  */
+-#if (defined _ISOC99_SOURCE || defined _ISOC9X_SOURCE \
++/* This is to enable the ISO C11 extension.  */
++#if (defined _ISOC11_SOURCE \
++     || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 201112L))
++# define __USE_ISOC11	1
++#endif
++
++/* This is to enable the ISO C99 extension.  */
++#if (defined _ISOC99_SOURCE || defined _ISOC11_SOURCE \
+      || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L))
+ # define __USE_ISOC99	1
+ #endif
+-- 
+2.9.3
+
Signature · 1 line
2.9.4
#1 lore raw

PATCH v2 2/3 package/gcc: add support for gcc 7

Remove upstream patches:

831-ARM-PR-target-70473-Reduce-size-of-Cortex-A8-automat.patch

870-xtensa-Fix-PR-target-78118.patch

871-xtensa-Fix-PR-target-78603.patch

890-fix-m68k-compile.patch:
https://github.com/gcc-mirror/gcc/commit/1701058da920d27de87dc82e8d327b8ca930e997

892-libgcc-mkmap-symver-support-skip_underscore.patch:
https://github.com/gcc-mirror/gcc/commit/6c8f362e1f17cce05131eb8ff53963d64bc69484

893-libgcc-config-bfin-use-the-generic-linker-version-in.patch:
https://github.com/gcc-mirror/gcc/commit/966d046c08ba50fc988ac614f84f2d49c1546e28

894-libgcc-fix-DWARF-compilation-with-FDPIC-targets.patch:
https://github.com/gcc-mirror/gcc/commit/397d0e43abb943f1fe57801220e7e46bc6636c7c

895-bfin-define-REENTRANT.patch:
https://github.com/gcc-mirror/gcc/commit/da89a4dcdf75bc3134f73520535c949bbbb0c845

940-uclinux-enable-threads.patch:
https://github.com/gcc-mirror/gcc/commit/b9ce54109ec78d18f6123a1e54aae1293bede716

941-mips-Add-support-for-mips-r6-musl.patch:
https://github.com/gcc-mirror/gcc/commit/83717065090bb8b954556d1216dd9dc397dc0243

Remove obsolete patches:

301-missing-execinfo_h.patch: boehm-gc removed from gcc sources:
https://github.com/gcc-mirror/gcc/commit/baf71228766058f5541d929891237d394376c975

830-arm_unbreak_armv4t.patch: SUBTARGET_CPU_DEFAULT removed:
https://github.com/gcc-mirror/gcc/commit/ff3caa3ade14a42d5ab7e81cbd3605fe15aa998d

Add a new patch to allow to build gcc 7.1 without extracting gcc/testsuite directory.

This new gcc version require a kernel patch [1] to avoid a build issue with ____ilog2_NaN symbol. The following kernel version contain contain already this patch :
4.11, 4.10.6, 4.9.18, 4.4.57, 3.18.50 and 3.12.73.

To build a toolchain based on gcc 7 and uClibc-ng 1.0.24, the patch [2] is required to avoid a build issue due to missing aligned_alloc() definition.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=474c90156c8dcc2fa815e6716cc9394d7930cb9c
[2] https://cgit.openadk.org/cgi/cgit/uclibc-ng.git/commit/?id=5b0f49037e8ea8500b05c8f31ee88529ccac4cee

---
v2: add missing modification in toolchain-external-custom/Config.in.options

Build tested with glibc, musl and uClibc-ng.

Runtime tested with uClibc-ng (1.0.24) on x86_64 PC target.

---
 package/gcc/7.1.0/0100-uclibc-conf.patch           |  29 ++++++
 package/gcc/7.1.0/0810-arm-softfloat-libgcc.patch  |  45 +++++++++
 .../7.1.0/0860-cilk-fix-build-without-wchar.patch  |  64 ++++++++++++
 package/gcc/7.1.0/0891-fix-m68k-uclinux.patch      |  30 ++++++
 package/gcc/7.1.0/0900-remove-selftests.patch      | 111 +++++++++++++++++++++
 package/gcc/Config.in.host                         |  11 ++
 package/gcc/gcc.hash                               |   2 +
 toolchain/toolchain-common.in                      |   5 +
 .../toolchain-external-custom/Config.in.options    |   4 +
 9 files changed, 301 insertions(+)
 create mode 100644 package/gcc/7.1.0/0100-uclibc-conf.patch
 create mode 100644 package/gcc/7.1.0/0810-arm-softfloat-libgcc.patch
 create mode 100644 package/gcc/7.1.0/0860-cilk-fix-build-without-wchar.patch
 create mode 100644 package/gcc/7.1.0/0891-fix-m68k-uclinux.patch
 create mode 100644 package/gcc/7.1.0/0900-remove-selftests.patch
package/gcc/7.1.0/0100-uclibc-conf.patch new file +29 -0
new file mode 100644
index 0000000..d354baf
@@ -0,0 +1,29 @@
+From 326b880b20e5f8187dbda736b4c4c662cbfb00ca Mon Sep 17 00:00:00 2001
+From: Romain Naour <[email protected]>
+Date: Tue, 2 May 2017 22:36:15 +0200
+Subject: [PATCH] uclibc-conf
+
+[Romain: convert to git patch]
+Signed-off-by: Romain Naour <[email protected]>
+---
+ contrib/regression/objs-gcc.sh | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/contrib/regression/objs-gcc.sh b/contrib/regression/objs-gcc.sh
+index 60b0497..6dc7ead 100755
+--- a/contrib/regression/objs-gcc.sh
++++ b/contrib/regression/objs-gcc.sh
+@@ -106,6 +106,10 @@ if [ $H_REAL_TARGET = $H_REAL_HOST -a $H_REAL_TARGET = i686-pc-linux-gnu ]
+  then
+   make all-gdb all-dejagnu all-ld || exit 1
+   make install-gdb install-dejagnu install-ld || exit 1
++elif [ $H_REAL_TARGET = $H_REAL_HOST -a $H_REAL_TARGET = i686-pc-linux-uclibc ]
++ then
++  make all-gdb all-dejagnu all-ld || exit 1
++  make install-gdb install-dejagnu install-ld || exit 1
+ elif [ $H_REAL_TARGET = $H_REAL_HOST ] ; then
+   make bootstrap || exit 1
+   make install || exit 1
+-- 
+2.9.3
+
package/gcc/7.1.0/0810-arm-softfloat-libgcc.patch new file +45 -0

45 lines not on this page · raw message

package/gcc/7.1.0/0860-cilk-fix-build-without-wchar.patch new file +64 -0

64 lines not on this page · raw message

package/gcc/7.1.0/0891-fix-m68k-uclinux.patch new file +30 -0
new file mode 100644
index 0000000..e84fd92
@@ -0,0 +1,30 @@
+From c2773170a1b0e2728f71f2275a99fd177ba2cef4 Mon Sep 17 00:00:00 2001
+From: Romain Naour <[email protected]>
+Date: Tue, 2 May 2017 23:25:17 +0200
+Subject: [PATCH] fix m68k uclinux avoids internal compiler error while
+ compiling linux-atomic.c See here:
+ https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53833
+
+Signed-off-by: Waldemar Brodkorb <[email protected]>
+[Romain: convert to git patch]
+Signed-off-by: Romain Naour <[email protected]>
+---
+ libgcc/config.host | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/libgcc/config.host b/libgcc/config.host
+index b279a64..04fe183 100644
+--- a/libgcc/config.host
++++ b/libgcc/config.host
+@@ -820,7 +820,7 @@ m68k*-*-netbsdelf*)
+ m68k*-*-openbsd*)
+ 	;;
+ m68k-*-uclinux*)	# Motorola m68k/ColdFire running uClinux with uClibc
+-	tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
++	tmake_file="$tmake_file m68k/t-floatlib"
+ 	md_unwind_header=m68k/linux-unwind.h
+ 	;;
+ m68k-*-linux*)			# Motorola m68k's running GNU/Linux
+-- 
+2.9.3
+
package/gcc/7.1.0/0900-remove-selftests.patch new file +111 -0

111 lines not on this page · raw message

package/gcc/Config.in.host +11 -0
index 4bcb23e..f1c2faf 100644
@@ -87,6 +87,16 @@ config BR2_GCC_VERSION_6_X
 	depends on !BR2_mips_m6250 && !BR2_mips_p6600
 	select BR2_TOOLCHAIN_GCC_AT_LEAST_6
 
+config BR2_GCC_VERSION_7_X
+	bool "gcc 7.x"
+	# Broken or unsupported architectures
+	depends on !BR2_arc
+	depends on !BR2_microblaze
+	depends on !BR2_or1k
+	# Unsupported MIPS cores
+	depends on !BR2_mips_m6250 && !BR2_mips_p6600
+	select BR2_TOOLCHAIN_GCC_AT_LEAST_7
+
 endchoice
 
 # Indicates if GCC for architecture supports --with-{arch,cpu,..}  to
@@ -106,6 +116,7 @@ config BR2_GCC_VERSION
 	default "4.9.4"     if BR2_GCC_VERSION_4_9_X
 	default "5.4.0"     if BR2_GCC_VERSION_5_X
 	default "6.3.0"     if BR2_GCC_VERSION_6_X
+	default "7.1.0"     if BR2_GCC_VERSION_7_X
 	default "arc-2017.03-rc1" if BR2_GCC_VERSION_ARC
 	default "musl-5.4.0" if BR2_GCC_VERSION_OR1K
 
package/gcc/gcc.hash +2 -0
index 052a825..7255d12 100644
@@ -10,6 +10,8 @@ sha512  93abb78e16277454f41a8e9810f41f66c0fdffdc539a762ff6b67d3037f78db971378683
 sha512  2941cc950c8f2409a314df497631f9b0266211aa74746c1839c46e04f1c7c299afe2528d1ef16ea39def408a644ba48f97519ec7a7dd37d260c3e9423514265b  gcc-5.4.0.tar.bz2
 # From ftp://gcc.gnu.org/pub/gcc/releases/gcc-6.3.0/sha512.sum
 sha512  234dd9b1bdc9a9c6e352216a7ef4ccadc6c07f156006a59759c5e0e6a69f0abcdc14630eff11e3826dd6ba5933a8faa43043f3d1d62df6bd5ab1e82862f9bf78  gcc-6.3.0.tar.bz2
+# From ftp://gcc.gnu.org/pub/gcc/releases/gcc-7.1.0/sha512.sum
+sha512  b5d952be9a10f0e0926bb2868877d10544039d6d2f35ba0a08f51231dd622a007650764a03e173194701467547789ad7d2d9cbc10adcdf118d619cdedbd14aec  gcc-7.1.0.tar.bz2
 
 # Locally calculated (fetched from Github)
 sha512  e4fe5a179b8feabf932a8a6f4794ff6907b868a65487412d855a4b3671aa24ec8544a44f3b63e69ea2c12fcd4d8028d0619d40bf016ee7c1a5b5a99aa9315ef3  gcc-arc-2017.03-rc1.tar.gz
toolchain/toolchain-common.in +5 -0
index 76c0e7c..d670f44 100644
@@ -320,10 +320,15 @@ config BR2_TOOLCHAIN_GCC_AT_LEAST_6
 	bool
 	select BR2_TOOLCHAIN_GCC_AT_LEAST_5
 
+config BR2_TOOLCHAIN_GCC_AT_LEAST_7
+	bool
+	select BR2_TOOLCHAIN_GCC_AT_LEAST_6
+
 # This order guarantees that the highest version is set, as kconfig
 # stops affecting a value on the first matching default.
 config BR2_TOOLCHAIN_GCC_AT_LEAST
 	string
+	default "7"	if BR2_TOOLCHAIN_GCC_AT_LEAST_7
 	default "6"	if BR2_TOOLCHAIN_GCC_AT_LEAST_6
 	default "5"	if BR2_TOOLCHAIN_GCC_AT_LEAST_5
 	default "4.9"	if BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
toolchain/toolchain-external/toolchain-external-custom/Config.in.options +4 -0
index ba5b977..d1b76c3 100644
@@ -23,6 +23,10 @@ choice
 	  Set to the gcc version that is used by your external
 	  toolchain.
 
+config BR2_TOOLCHAIN_EXTERNAL_GCC_7
+	bool "7.x"
+	select BR2_TOOLCHAIN_GCC_AT_LEAST_7
+
 config BR2_TOOLCHAIN_EXTERNAL_GCC_6
 	bool "6.x"
 	select BR2_TOOLCHAIN_GCC_AT_LEAST_6
Signature · 1 line
2.9.4
#2 lore raw

PATCH v2 2/3 package/gcc: add support for gcc 7

Hello,

First of all, thanks for doing this work!

I've added Alexey, Waldemar and Vicente in Cc, since there are some ARC, Microblaze, OpenRISC and MIPS questions below.

Quoted 1 line · Romain Naour

Remove upstream patches:

[...]

Nice to see that so many patches are upstream, and that our stack of gcc patches for 7.x is now really small!

Perhaps we should start some effort to upstream the last few remaining patches?

package/gcc/Config.in.host config BR2_GCC_VERSION_6_X · line 95

Quoted 6 lines
package/gcc/Config.in.host +6 -0
+config BR2_GCC_VERSION_7_X
+	bool "gcc 7.x"
+	# Broken or unsupported architectures
+	depends on !BR2_arc
+	depends on !BR2_microblaze
+	depends on !BR2_or1k

ARC is indeed still not supported fully in gcc 7.x I believe. Alexey, do you confirm?

But what is the problem with Microblaze? And with OpenRISC? Waldemar?

OpenRISC has its own gcc version, so I guess that's the answer. But what about Microblaze?

package/gcc/Config.in.host config BR2_GCC_VERSION_6_X · line 97

Quoted 2 lines
package/gcc/Config.in.host +2 -0
+	# Unsupported MIPS cores
+	depends on !BR2_mips_m6250 && !BR2_mips_p6600

Vicente, what is the status of the support for those MIPS cores in gcc 7.x ?

Romain: I think we should also default to gcc 6.x now instead of defaulting to gcc 5.x.

And perhaps we should start thinking about removing gcc 4.9.x as well. For toolchain components, I don't think it makes sense to support more than three versions, i.e:

1. old one (would be 5.x now)
2. default one (would be 6.x now)
3. bleeding edge one (would be 7.x now)

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#3 lore raw

PATCH v2 2/3 package/gcc: add support for gcc 7

Hi,

Quoted 27 lines

Am 24.05.2017 um 16:26 schrieb Thomas Petazzoni <[email protected]>:

Hello,

First of all, thanks for doing this work!

I've added Alexey, Waldemar and Vicente in Cc, since there are some ARC, Microblaze, OpenRISC and MIPS questions below.

Quoted 2 lines · Romain Naour

Remove upstream patches:

[...]

Nice to see that so many patches are upstream, and that our stack of gcc patches for 7.x is now really small!

Perhaps we should start some effort to upstream the last few remaining patches?

package/gcc/Config.in.host config BR2_GCC_VERSION_6_X · line 95

Quoted 6 lines
package/gcc/Config.in.host +6 -0
+config BR2_GCC_VERSION_7_X
+    bool "gcc 7.x"
+    # Broken or unsupported architectures
+    depends on !BR2_arc
+    depends on !BR2_microblaze
+    depends on !BR2_or1k
Quoted 7 lines

ARC is indeed still not supported fully in gcc 7.x I believe. Alexey, do you confirm?

But what is the problem with Microblaze? And with OpenRISC? Waldemar?

OpenRISC has its own gcc version, so I guess that's the answer. But what about Microblaze?

There is a regression between gcc 5.x and 6.x for microblaze, which still prevents to bootup any system in qemu. (uclibc-ng, musl, glibc) Problem is still present in gcc 7.

Does anyone have time to bisect it?

best regards
Waldemar

#4 lore raw

PATCH v2 2/3 package/gcc: add support for gcc 7

In reply to Thomas Petazzoni

Hi Thomas, all,

Quoted 20 lines · Thomas Petazzoni

Hello,

First of all, thanks for doing this work!

I've added Alexey, Waldemar and Vicente in Cc, since there are some ARC, Microblaze, OpenRISC and MIPS questions below.

Quoted 2 lines · Romain Naour

Remove upstream patches:

[...]

Nice to see that so many patches are upstream, and that our stack of gcc patches for 7.x is now really small!

Perhaps we should start some effort to upstream the last few remaining patches?

Quoted 1 line
Quoted 9 lines

package/gcc/Config.in.host config BR2_GCC_VERSION_6_X · line 95

Quoted 6 lines
package/gcc/Config.in.host +6 -0
+config BR2_GCC_VERSION_7_X
+	bool "gcc 7.x"
+	# Broken or unsupported architectures
+	depends on !BR2_arc
+	depends on !BR2_microblaze
+	depends on !BR2_or1k

ARC is indeed still not supported fully in gcc 7.x I believe. Alexey, do you confirm?

Well I'd say something completely opposite :)

GCC 7.x has as much of ARC support as it could be now. We submit all our changes to gcc immediately and it's only a matter of review and approval delay for when it lands in master branch of GCC. The same applies to GCC releases - whatever got merged by the time of release is there. So I'd say we barely differ here a lot from other first class citizens in GCC.

Moreover GCC 7.1 should work for us just fine and very limited amount of patches could be needed to fix things here and there.

BTW and the same is true for Binutils. And frankly for quite some time now I was planning to give upstream GCC/Binutils a try in Buildroot for ARC. So while we're on topic I guess we may start from having 2 options for ARC users:
?* Build toolchain from ARC releases from GitHub forks of GCC and Binutils ?* Build toolchain from upstream releases

-Alexey

#5 lore raw

PATCH v2 2/3 package/gcc: add support for gcc 7

In reply to Thomas Petazzoni

Hi Thomas,

Le 24/05/2017 ? 16:26, Thomas Petazzoni a ?crit :

Quoted 7 lines

Hello,

First of all, thanks for doing this work!

I've added Alexey, Waldemar and Vicente in Cc, since there are some ARC, Microblaze, OpenRISC and MIPS questions below.

Quoted 7 lines
Quoted 1 line · Romain Naour

Remove upstream patches:

[...]

Nice to see that so many patches are upstream, and that our stack of gcc patches for 7.x is now really small!

Indeed :)

Quoted 3 lines

Perhaps we should start some effort to upstream the last few remaining patches?

I can add this in our TODO list for the next Buildroot summer camp or next meeting.

Quoted 11 lines

package/gcc/Config.in.host config BR2_GCC_VERSION_6_X · line 95

Quoted 7 lines
package/gcc/Config.in.host +6 -0
+config BR2_GCC_VERSION_7_X
+	bool "gcc 7.x"
+	# Broken or unsupported architectures
+	depends on !BR2_arc
+	depends on !BR2_microblaze
+	depends on !BR2_or1k

ARC is indeed still not supported fully in gcc 7.x I believe. Alexey, do you confirm?

Quoted 4 lines

But what is the problem with Microblaze? And with OpenRISC? Waldemar?

OpenRISC has its own gcc version, so I guess that's the answer. But what about Microblaze?

I haven't checked the status of all broken or unsupported architectures when bumping to gcc 7. I wanted to keep the same dependency as gcc 6 for the moment.

Quoted 10 lines

package/gcc/Config.in.host config BR2_GCC_VERSION_6_X · line 97

Quoted 3 lines
package/gcc/Config.in.host +2 -0
+	# Unsupported MIPS cores
+	depends on !BR2_mips_m6250 && !BR2_mips_p6600

Vicente, what is the status of the support for those MIPS cores in gcc 7.x ?

Romain: I think we should also default to gcc 6.x now instead of defaulting to gcc 5.x.

Quoted 7 lines

And perhaps we should start thinking about removing gcc 4.9.x as well. For toolchain components, I don't think it makes sense to support more than three versions, i.e:

1. old one (would be 5.x now)
2. default one (would be 6.x now)
3. bleeding edge one (would be 7.x now)

Ok :)

Best regards,
Romain

Quoted 5 lines

Thanks!

Thomas

#6 lore raw

PATCH v2 3/3 package/gcc: remove gcc 4.8

In reply to Romain Naour

We're already using 5.x as default, and have 4.9.x on the lower side together with 7.x (7.1) on the higher side.

CC Thomas Petazzoni <[email protected]>
---
 Config.in.legacy                                   |  10 +
 ...et-68059-libgcc-should-not-use-__write-fo.patch |  43 --
 package/gcc/4.8.5/100-uclibc-conf.patch            |  15 -
 ...00-powerpc-link-with-math-lib.patch.conditional | 122 ----
 package/gcc/4.8.5/111-pr65730.patch                |  37 --
 ...gcc-fix-typo-for-powerpc-e6500-cpu_is_64b.patch |  29 -
 package/gcc/4.8.5/130-fix_build_with_gcc-6.patch   | 153 -----
 package/gcc/4.8.5/130-pr43538.patch                |  25 -
 package/gcc/4.8.5/301-missing-execinfo_h.patch     |  13 -
 .../gcc/4.8.5/305-libmudflap-susv3-legacy.patch    |  49 --
 package/gcc/4.8.5/810-arm-softfloat-libgcc.patch   |  30 -
 package/gcc/4.8.5/830-arm_unbreak_armv4t.patch     |  13 -
 package/gcc/4.8.5/841-PR57717-E500v2.patch         |  23 -
 package/gcc/4.8.5/842-PR60155.patch                | 111 ----
 .../4.8.5/843-aarch64-vmlaq_lane_s32-typo.patch    |  24 -
 package/gcc/4.8.5/850-libstdcxx-uclibc-c99.patch   | 273 ---------
 package/gcc/4.8.5/851-PR-other-56780.patch         | 244 --------
 .../870-xtensa-add-mauto-litpools-option.patch     | 290 ---------
 .../871-xtensa-reimplement-register-spilling.patch |  76 ---
 ...unwind-dw2-fde-dip-instead-of-unwind-dw2-.patch |  33 --
 .../gcc/4.8.5/873-xtensa-fix-_Unwind_GetCFA.patch  |  40 --
 .../gcc/4.8.5/874-xtensa-add-uclinux-support.patch | 174 ------
 package/gcc/4.8.5/890-fix-m68k-compile.patch       |  15 -
 package/gcc/4.8.5/891-fix-m68k-uclinux.patch       |  18 -
 package/gcc/4.8.5/900-musl-support.patch           | 648 ---------------------
 .../930-libgcc-disable-split-stack-nothreads.patch |  14 -
 package/gcc/4.8.5/940-uclinux-enable-threads.patch |  19 -
 package/gcc/Config.in.host                         |  24 -
 package/uclibc/uclibc.mk                           |   6 -
 29 files changed, 10 insertions(+), 2561 deletions(-)
 delete mode 100644 package/gcc/4.8.5/0001-ARM-PR-target-68059-libgcc-should-not-use-__write-fo.patch
 delete mode 100644 package/gcc/4.8.5/100-uclibc-conf.patch
 delete mode 100644 package/gcc/4.8.5/1000-powerpc-link-with-math-lib.patch.conditional
 delete mode 100644 package/gcc/4.8.5/111-pr65730.patch
 delete mode 100644 package/gcc/4.8.5/120-gcc-config.gcc-fix-typo-for-powerpc-e6500-cpu_is_64b.patch
 delete mode 100644 package/gcc/4.8.5/130-fix_build_with_gcc-6.patch
 delete mode 100644 package/gcc/4.8.5/130-pr43538.patch
 delete mode 100644 package/gcc/4.8.5/301-missing-execinfo_h.patch
 delete mode 100644 package/gcc/4.8.5/305-libmudflap-susv3-legacy.patch
 delete mode 100644 package/gcc/4.8.5/810-arm-softfloat-libgcc.patch
 delete mode 100644 package/gcc/4.8.5/830-arm_unbreak_armv4t.patch
 delete mode 100644 package/gcc/4.8.5/841-PR57717-E500v2.patch
 delete mode 100644 package/gcc/4.8.5/842-PR60155.patch
 delete mode 100644 package/gcc/4.8.5/843-aarch64-vmlaq_lane_s32-typo.patch
 delete mode 100644 package/gcc/4.8.5/850-libstdcxx-uclibc-c99.patch
 delete mode 100644 package/gcc/4.8.5/851-PR-other-56780.patch
 delete mode 100644 package/gcc/4.8.5/870-xtensa-add-mauto-litpools-option.patch
 delete mode 100644 package/gcc/4.8.5/871-xtensa-reimplement-register-spilling.patch
 delete mode 100644 package/gcc/4.8.5/872-xtensa-use-unwind-dw2-fde-dip-instead-of-unwind-dw2-.patch
 delete mode 100644 package/gcc/4.8.5/873-xtensa-fix-_Unwind_GetCFA.patch
 delete mode 100644 package/gcc/4.8.5/874-xtensa-add-uclinux-support.patch
 delete mode 100644 package/gcc/4.8.5/890-fix-m68k-compile.patch
 delete mode 100644 package/gcc/4.8.5/891-fix-m68k-uclinux.patch
 delete mode 100644 package/gcc/4.8.5/900-musl-support.patch
 delete mode 100644 package/gcc/4.8.5/930-libgcc-disable-split-stack-nothreads.patch
 delete mode 100644 package/gcc/4.8.5/940-uclinux-enable-threads.patch
Config.in.legacy +10 -0
index 0bacac2..a5f7288 100644
@@ -143,6 +143,16 @@ comment "----------------------------------------------------"
 endif
 
 ###############################################################################
+comment "Legacy options removed in 2017.08"
+
+config BR2_GCC_VERSION_4_8_X
+	bool "gcc 4.8.x support removed"
+	select BR2_LEGACY
+	help
+	  Support for gcc version 4.8.x has been removed. The current
+	  default version (5.x or later) has been selected instead.
+
+###############################################################################
 comment "Legacy options removed in 2017.05"
 
 config BR2_PACKAGE_SUNXI_MALI_R2P4
package/gcc/4.8.5/0001-ARM-PR-target-68059-libgcc-should-not-use-__write-fo.patch deleted +0 -43

43 lines not on this page · raw message

package/gcc/4.8.5/100-uclibc-conf.patch deleted +0 -15
deleted file mode 100644
index d56bf0a..0000000
@@ -1,15 +0,0 @@
-Index: gcc-4.8.0/contrib/regression/objs-gcc.sh
-===================================================================
---- gcc-4.8.0.orig/contrib/regression/objs-gcc.sh	2009-04-09 17:00:19.000000000 +0200
-+++ gcc-4.8.0/contrib/regression/objs-gcc.sh	2013-03-23 17:39:04.000000000 +0100
-@@ -106,6 +106,10 @@
-  then
-   make all-gdb all-dejagnu all-ld || exit 1
-   make install-gdb install-dejagnu install-ld || exit 1
-+elif [ $H_REAL_TARGET = $H_REAL_HOST -a $H_REAL_TARGET = i686-pc-linux-uclibc ]
-+ then
-+  make all-gdb all-dejagnu all-ld || exit 1
-+  make install-gdb install-dejagnu install-ld || exit 1
- elif [ $H_REAL_TARGET = $H_REAL_HOST ] ; then
-   make bootstrap || exit 1
-   make install || exit 1
package/gcc/4.8.5/1000-powerpc-link-with-math-lib.patch.conditional deleted +0 -122

122 lines not on this page · raw message

package/gcc/4.8.5/111-pr65730.patch deleted +0 -37
deleted file mode 100644
index f195e30..0000000
@@ -1,37 +0,0 @@
-From b9a7775674d91c7af8043a83211ffeaa576327d7 Mon Sep 17 00:00:00 2001
-From: Max Filippov <[email protected]>
-Date: Fri, 10 Apr 2015 17:46:30 +0300
-Subject: [PATCH] Fix PR target/65730
-
-2015-05-20  Max Filippov  <[email protected]>
-gcc/
-	* config/xtensa/xtensa.c (init_alignment_context): Replace MULT
-	by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
-
-Signed-off-by: Max Filippov <[email protected]>
----
-Backported from: svn+ssh://gcc.gnu.org/svn/gcc/trunk at 223452
-Changes to ChangeLog are dropped.
-
- gcc/config/xtensa/xtensa.c | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/gcc/config/xtensa/xtensa.c b/gcc/config/xtensa/xtensa.c
-index eb039ba..7296e36 100644
---- a/gcc/config/xtensa/xtensa.c
-+++ b/gcc/config/xtensa/xtensa.c
-@@ -1461,8 +1461,9 @@ init_alignment_context (struct alignment_context *ac, rtx mem)
-   if (ac->shift != NULL_RTX)
-     {
-       /* Shift is the byte count, but we need the bitcount.  */
--      ac->shift = expand_simple_binop (SImode, MULT, ac->shift,
--				       GEN_INT (BITS_PER_UNIT),
-+      gcc_assert (exact_log2 (BITS_PER_UNIT) >= 0);
-+      ac->shift = expand_simple_binop (SImode, ASHIFT, ac->shift,
-+				       GEN_INT (exact_log2 (BITS_PER_UNIT)),
- 				       NULL_RTX, 1, OPTAB_DIRECT);
-       ac->modemask = expand_simple_binop (SImode, ASHIFT,
- 					  GEN_INT (GET_MODE_MASK (mode)),
--- 
-1.8.1.4
-
package/gcc/4.8.5/120-gcc-config.gcc-fix-typo-for-powerpc-e6500-cpu_is_64b.patch deleted +0 -29
deleted file mode 100644
index c11ad35..0000000
@@ -1,29 +0,0 @@
-From 9bf6066d588632dab9f78932df15b5b4140f31f3 Mon Sep 17 00:00:00 2001
-From: "Arnout Vandecappelle (Essensium/Mind)" <[email protected]>
-Date: Fri, 6 Nov 2015 14:27:23 +0100
-Subject: [PATCH] gcc/config.gcc: fix typo for powerpc e6500 cpu_is_64bit
-
-Otherwise it is not recognized as a 64-bit powerpc and gcc will not generate
-64-bit binaries by default.
-
-Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <[email protected]>
----
- gcc/config.gcc | 2 +-
- 2 files changed, 4 insertions(+), 1 deletion(-)
-
-diff --git a/gcc/config.gcc b/gcc/config.gcc
-index 4a7cbd2..9cc765e 100644
---- a/gcc/config.gcc
-+++ b/gcc/config.gcc
-@@ -439,7 +439,7 @@ powerpc*-*-*)
- 	cpu_type=rs6000
- 	extra_headers="ppc-asm.h altivec.h spe.h ppu_intrinsics.h paired.h spu2vmx.h vec_types.h si2vmx.h htmintrin.h htmxlintrin.h"
- 	case x$with_cpu in
--	    xpowerpc64|xdefault64|x6[23]0|x970|xG5|xpower[345678]|xpower6x|xrs64a|xcell|xa2|xe500mc64|xe5500|Xe6500)
-+	    xpowerpc64|xdefault64|x6[23]0|x970|xG5|xpower[345678]|xpower6x|xrs64a|xcell|xa2|xe500mc64|xe5500|xe6500)
- 		cpu_is_64bit=yes
- 		;;
- 	esac
--- 
-2.6.2
-
package/gcc/4.8.5/130-fix_build_with_gcc-6.patch deleted +0 -153

153 lines not on this page · raw message

package/gcc/4.8.5/130-pr43538.patch deleted +0 -25
deleted file mode 100644
index 19e57bb..0000000
@@ -1,25 +0,0 @@
-From c037df1be41f8daf4d581d7ffa4ec8cfa640bccf Mon Sep 17 00:00:00 2001
-From: glisse <glisse@138bc75d-0d04-0410-961f-82ee72b054a4>
-Date: Fri, 25 Apr 2014 08:03:08 +0000
-Subject: [PATCH] 2014-04-25  Marc Glisse  <[email protected]>
-
-	PR target/43538
-	* mt-gnu: Don't reset CXXFLAGS_FOR_TARGET.
-
-
-git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk at 209784 138bc75d-0d04-0410-961f-82ee72b054a4
-Signed-off-by: Max Filippov <[email protected]>
----
- config/mt-gnu    | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/config/mt-gnu b/config/mt-gnu
-index 15bf417..5c696f5 100644
---- a/config/mt-gnu
-+++ b/config/mt-gnu
-@@ -1 +1 @@
--CXXFLAGS_FOR_TARGET = $(CXXFLAGS) -D_GNU_SOURCE
-+CXXFLAGS_FOR_TARGET += -D_GNU_SOURCE
--- 
-2.1.4
-
package/gcc/4.8.5/301-missing-execinfo_h.patch deleted +0 -13
deleted file mode 100644
index 00efda2..0000000
@@ -1,13 +0,0 @@
-Index: gcc-4.8.0/boehm-gc/include/gc.h
-===================================================================
---- gcc-4.8.0.orig/boehm-gc/include/gc.h	2007-04-23 23:10:09.000000000 +0200
-+++ gcc-4.8.0/boehm-gc/include/gc.h	2013-03-23 17:39:20.000000000 +0100
-@@ -503,7 +503,7 @@
- #if defined(__linux__) || defined(__GLIBC__)
- # include <features.h>
- # if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1 || __GLIBC__ > 2) \
--     && !defined(__ia64__)
-+     && !defined(__ia64__) && !defined(__UCLIBC__)
- #   ifndef GC_HAVE_BUILTIN_BACKTRACE
- #     define GC_HAVE_BUILTIN_BACKTRACE
- #   endif
package/gcc/4.8.5/305-libmudflap-susv3-legacy.patch deleted +0 -49

49 lines not on this page · raw message

package/gcc/4.8.5/810-arm-softfloat-libgcc.patch deleted +0 -30
deleted file mode 100644
index c8cb377..0000000
@@ -1,30 +0,0 @@
-Index: gcc-4.8.0/gcc/config/arm/linux-elf.h
-===================================================================
---- gcc-4.8.0.orig/gcc/config/arm/linux-elf.h	2013-01-10 21:38:27.000000000 +0100
-+++ gcc-4.8.0/gcc/config/arm/linux-elf.h	2013-03-23 17:40:00.000000000 +0100
-@@ -55,7 +55,7 @@
-    %{shared:-lc} \
-    %{!shared:%{profile:-lc_p}%{!profile:-lc}}"
- 
--#define LIBGCC_SPEC "%{mfloat-abi=soft*:-lfloat} -lgcc"
-+#define LIBGCC_SPEC "-lgcc"
- 
- #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
- 
-Index: gcc-4.8.0/libgcc/config/arm/t-linux
-===================================================================
---- gcc-4.8.0.orig/libgcc/config/arm/t-linux	2012-03-22 16:14:46.000000000 +0100
-+++ gcc-4.8.0/libgcc/config/arm/t-linux	2013-03-23 17:40:54.000000000 +0100
-@@ -1,6 +1,11 @@
- LIB1ASMSRC = arm/lib1funcs.S
- LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx _clzsi2 _clzdi2 \
--	_ctzsi2 _arm_addsubdf3 _arm_addsubsf3
-+	_ctzsi2 _arm_addsubdf3 _arm_addsubsf3 \
-+	_arm_addsubdf3 _arm_addsubsf3 \
-+	_arm_negdf2 _arm_muldivdf3 _arm_cmpdf2 _arm_unorddf2 \
-+	_arm_fixdfsi _arm_fixunsdfsi _arm_truncdfsf2 \
-+	_arm_negsf2 _arm_muldivsf3 _arm_cmpsf2 _arm_unordsf2 \
-+	_arm_fixsfsi _arm_fixunssfsi
- 
- # Just for these, we omit the frame pointer since it makes such a big
- # difference.
package/gcc/4.8.5/830-arm_unbreak_armv4t.patch deleted +0 -13
deleted file mode 100644
index 37f8f2a..0000000
@@ -1,13 +0,0 @@
-http://sourceware.org/ml/crossgcc/2008-05/msg00009.html
-
---- a/gcc/config/arm/linux-eabi.h
-+++ b/gcc/config/arm/linux-eabi.h
-@@ -45,7 +45,7 @@
-    The ARM10TDMI core is the default for armv5t, so set
-    SUBTARGET_CPU_DEFAULT to achieve this.  */
- #undef  SUBTARGET_CPU_DEFAULT
--#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm10tdmi
-+#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm9tdmi
- 
- /* TARGET_BIG_ENDIAN_DEFAULT is set in
-    config.gcc for big endian configurations.  */
package/gcc/4.8.5/841-PR57717-E500v2.patch deleted +0 -23
deleted file mode 100644
index a011e24..0000000
@@ -1,23 +0,0 @@
-This backports fix from http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57717
-
-Upstream-Status: Backport
-Signed-off-by: Julian Brown <[email protected]>
-[Gustavo: Update for gcc 4.8.3]
-
-fix for PR57717 (PowerPC E500v2)
-http://gcc.gnu.org/ml/gcc-patches/2013-08/msg00668.html
-
-diff -Nura gcc-4.8.3/gcc/config/rs6000/rs6000.c gcc-4.8.3-pr57717/gcc/config/rs6000/rs6000.c
---- gcc-4.8.3/gcc/config/rs6000/rs6000.c	2014-05-04 23:18:35.000000000 -0300
-+++ gcc-4.8.3-pr57717/gcc/config/rs6000/rs6000.c	2014-05-22 15:20:12.554270919 -0300
-@@ -7343,9 +7343,7 @@
-       && GET_CODE (XEXP (x, 1)) == CONST_INT
-       && reg_offset_p
-       && !SPE_VECTOR_MODE (mode)
--      && !(TARGET_E500_DOUBLE && (mode == DFmode || mode == TFmode
--				  || mode == DDmode || mode == TDmode
--				  || mode == DImode))
-+      && !(TARGET_E500_DOUBLE && GET_MODE_SIZE (mode) > UNITS_PER_WORD)
-       && (!VECTOR_MODE_P (mode) || VECTOR_MEM_NONE_P (mode)))
-     {
-       HOST_WIDE_INT val = INTVAL (XEXP (x, 1));
package/gcc/4.8.5/842-PR60155.patch deleted +0 -111

111 lines not on this page · raw message

package/gcc/4.8.5/843-aarch64-vmlaq_lane_s32-typo.patch deleted +0 -24
deleted file mode 100644
index afa650c..0000000
@@ -1,24 +0,0 @@
-From 845478644ba54a6947e9b224f2e5cd342e8257a9 Mon Sep 17 00:00:00 2001
-From: Andrew Hsieh <[email protected]>
-Date: Wed, 25 Jun 2014 22:13:48 -0700
-Subject: [PATCH] Fix a typo in vmlaq_lane_s32
-
-BUG=15526898
-
-Change-Id: I4e35a764d369d378808dab29beefe34d1f93249b
-Signed-off-by: Peter Korsgaard <[email protected]>
----
-
-diff --git a/gcc/config/aarch64/arm_neon.h b/gcc/config/aarch64/arm_neon.h
-index 73c7e7d..92b0119 100644
---- a/gcc/config/aarch64/arm_neon.h
-+++ b/gcc/config/aarch64/arm_neon.h
-@@ -9984,7 +9984,7 @@
- #define vmlaq_lane_s32(a, b, c, d)                                      \
-   __extension__                                                         \
-     ({                                                                  \
--       int32x4_t c_ = (c);                                              \
-+       int32x2_t c_ = (c);                                              \
-        int32x4_t b_ = (b);                                              \
-        int32x4_t a_ = (a);                                              \
-        int32x4_t result;                                                \
package/gcc/4.8.5/850-libstdcxx-uclibc-c99.patch deleted +0 -273

273 lines not on this page · raw message

package/gcc/4.8.5/851-PR-other-56780.patch deleted +0 -244

244 lines not on this page · raw message

package/gcc/4.8.5/870-xtensa-add-mauto-litpools-option.patch deleted +0 -290

290 lines not on this page · raw message

package/gcc/4.8.5/871-xtensa-reimplement-register-spilling.patch deleted +0 -76

76 lines not on this page · raw message

package/gcc/4.8.5/872-xtensa-use-unwind-dw2-fde-dip-instead-of-unwind-dw2-.patch deleted +0 -33
deleted file mode 100644
index f23a5c0..0000000
@@ -1,33 +0,0 @@
-From f66206679a0ad604f13673559f230160cd3d1189 Mon Sep 17 00:00:00 2001
-From: Max Filippov <[email protected]>
-Date: Fri, 14 Aug 2015 02:45:02 +0300
-Subject: [PATCH 2/3] xtensa: use unwind-dw2-fde-dip instead of unwind-dw2-fde
-
-This allows having exception cleanup code in binaries that don't
-register their unwind tables.
-
-2015-08-18  Max Filippov  <[email protected]>
-libgcc/
-	* config/xtensa/t-xtensa (LIB2ADDEH): Replace unwind-dw2-fde
-	with unwind-dw2-fde-dip.
-
-Signed-off-by: Max Filippov <[email protected]>
----
-Backported from: r226963
-
- libgcc/config/xtensa/t-xtensa | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/libgcc/config/xtensa/t-xtensa b/libgcc/config/xtensa/t-xtensa
-index 27399e6..66d0eb3 100644
---- a/libgcc/config/xtensa/t-xtensa
-+++ b/libgcc/config/xtensa/t-xtensa
-@@ -13,4 +13,4 @@ LIB1ASMFUNCS = _mulsi3 _divsi3 _modsi3 _udivsi3 _umodsi3 \
- LIB2ADD = $(srcdir)/config/xtensa/lib2funcs.S
- 
- LIB2ADDEH = $(srcdir)/config/xtensa/unwind-dw2-xtensa.c \
--   $(srcdir)/unwind-dw2-fde.c $(srcdir)/unwind-sjlj.c $(srcdir)/unwind-c.c
-+   $(srcdir)/unwind-dw2-fde-dip.c $(srcdir)/unwind-sjlj.c $(srcdir)/unwind-c.c
--- 
-1.8.1.4
-
package/gcc/4.8.5/873-xtensa-fix-_Unwind_GetCFA.patch deleted +0 -40
deleted file mode 100644
index dc40513..0000000
@@ -1,40 +0,0 @@
-From 15c7c4d39b317f0d902ef28fd43eca5c3369f891 Mon Sep 17 00:00:00 2001
-From: Max Filippov <[email protected]>
-Date: Sat, 15 Aug 2015 05:12:11 +0300
-Subject: [PATCH 3/3] xtensa: fix _Unwind_GetCFA
-
-Returning context->cfa in _Unwind_GetCFA makes CFA point one stack frame
-higher than what was actually used by code at context->ra. This results
-in invalid CFA value in signal frames and premature unwinding completion
-in forced unwinding used by uClibc NPTL thread cancellation.
-Returning context->sp from _Unwind_GetCFA makes all CFA values valid and
-matching code that used them.
-
-2015-08-18  Max Filippov  <[email protected]>
-libgcc/
-	* config/xtensa/unwind-dw2-xtensa.c (_Unwind_GetCFA): Return
-	context->sp instead of context->cfa.
-
-Signed-off-by: Max Filippov <[email protected]>
----
-Backported from: r226964
-
- libgcc/config/xtensa/unwind-dw2-xtensa.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/libgcc/config/xtensa/unwind-dw2-xtensa.c b/libgcc/config/xtensa/unwind-dw2-xtensa.c
-index 35f7797..ef6b900 100644
---- a/libgcc/config/xtensa/unwind-dw2-xtensa.c
-+++ b/libgcc/config/xtensa/unwind-dw2-xtensa.c
-@@ -130,7 +130,7 @@ _Unwind_GetGR (struct _Unwind_Context *context, int index)
- _Unwind_Word
- _Unwind_GetCFA (struct _Unwind_Context *context)
- {
--  return (_Unwind_Ptr) context->cfa;
-+  return (_Unwind_Ptr) context->sp;
- }
- 
- /* Overwrite the saved value for register INDEX in CONTEXT with VAL.  */
--- 
-1.8.1.4
-
package/gcc/4.8.5/874-xtensa-add-uclinux-support.patch deleted +0 -174

174 lines not on this page · raw message

package/gcc/4.8.5/890-fix-m68k-compile.patch deleted +0 -15
deleted file mode 100644
index 124e842..0000000
@@ -1,15 +0,0 @@
-remove unused header, which breaks the toolchain building
-
-Signed-off-by: Waldemar Brodkorb <[email protected]>
-
-diff -Nur gcc-4.8.5.orig/libgcc/config/m68k/linux-atomic.c gcc-4.8.5/libgcc/config/m68k/linux-atomic.c
---- gcc-4.8.5.orig/libgcc/config/m68k/linux-atomic.c	2013-02-04 20:06:20.000000000 +0100
-+++ gcc-4.8.5/libgcc/config/m68k/linux-atomic.c	2016-03-19 00:18:12.000000000 +0100
-@@ -33,7 +33,6 @@
-    using the kernel helper defined below.  There is no support for
-    64-bit operations yet.  */
- 
--#include <asm/unistd.h>
- #include <stdbool.h>
- 
- #ifndef __NR_atomic_cmpxchg_32
package/gcc/4.8.5/891-fix-m68k-uclinux.patch deleted +0 -18
deleted file mode 100644
index 37c7ac4..0000000
@@ -1,18 +0,0 @@
-avoids internal compiler error while compiling linux-atomic.c
-See here:
-https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53833
-
-Signed-off-by: Waldemar Brodkorb <[email protected]>
-
-diff -Nur gcc-4.8.5.orig/libgcc/config.host gcc-4.8.5/libgcc/config.host
---- gcc-4.8.5.orig/libgcc/config.host	2014-03-20 17:12:30.000000000 +0100
-+++ gcc-4.8.5/libgcc/config.host	2016-04-27 15:04:01.521171537 +0200
-@@ -689,7 +689,7 @@
- m68k*-*-openbsd*)
- 	;;
- m68k-*-uclinux*)	# Motorola m68k/ColdFire running uClinux with uClibc
--	tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
-+	tmake_file="$tmake_file m68k/t-floatlib"
- 	md_unwind_header=m68k/linux-unwind.h
- 	;;
- m68k-*-linux*)			# Motorola m68k's running GNU/Linux
package/gcc/4.8.5/900-musl-support.patch deleted +0 -648

648 lines not on this page · raw message

package/gcc/4.8.5/930-libgcc-disable-split-stack-nothreads.patch deleted +0 -14
deleted file mode 100644
index 7799c12..0000000
@@ -1,14 +0,0 @@
-disable split-stack for non-thread builds
-
-Signed-off-by: Waldemar Brodkorb <[email protected]>
-
-diff -Nur gcc-4.8.5.orig/libgcc/config/t-stack gcc-4.8.5/libgcc/config/t-stack
---- gcc-4.8.5.orig/libgcc/config/t-stack	2010-10-01 21:31:49.000000000 +0200
-+++ gcc-4.8.5/libgcc/config/t-stack	2016-03-07 05:28:12.000000000 +0100
-@@ -1,4 +1,6 @@
- # Makefile fragment to provide generic support for -fsplit-stack.
- # This should be used in config.host for any host which supports
- # -fsplit-stack.
-+ifeq ($(enable_threads),yes)
- LIB2ADD_ST += $(srcdir)/generic-morestack.c $(srcdir)/generic-morestack-thread.c
-+endif
package/gcc/4.8.5/940-uclinux-enable-threads.patch deleted +0 -19
deleted file mode 100644
index e58e824..0000000
@@ -1,19 +0,0 @@
-Enable POSIX threads for uClinux targets
-Reported upstream:
-https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71721
-
-Signed-off-by: Waldemar Brodkorb <[email protected]>
-
-diff -Nur gcc-4.8.5.orig/gcc/config.gcc gcc-4.8.5/gcc/config.gcc
---- gcc-4.8.5.orig/gcc/config.gcc	2015-05-21 22:57:29.000000000 +0200
-+++ gcc-4.8.5/gcc/config.gcc	2016-07-02 20:35:24.107644834 +0200
-@@ -741,6 +741,9 @@
- *-*-uclinux*)
-   extra_options="$extra_options gnu-user.opt"
-   use_gcc_stdint=wrap
-+  case ${enable_threads} in
-+    "" | yes | posix) thread_file='posix' ;;
-+  esac
-   tm_defines="$tm_defines DEFAULT_LIBC=LIBC_UCLIBC SINGLE_LIBC"
-   ;;
- *-*-rdos*)
package/gcc/Config.in.host +0 -24
index f1c2faf..61b0582 100644
@@ -8,29 +8,6 @@ choice
 	help
 	  Select the version of gcc you wish to use.
 
-config BR2_GCC_VERSION_4_8_X
-	bool "gcc 4.8.x"
-	# Broken or unsupported architectures
-	depends on !BR2_microblaze && !BR2_arc && !BR2_or1k \
-		&& !BR2_powerpc64le && !BR2_nios2 && !BR2_bfin
-	# Broken or unsupported ARM cores
-	depends on !BR2_cortex_a12 && !BR2_cortex_a17 && !BR2_ARM_CPU_ARMV8
-	# Broken or unsupported PPC cores
-	depends on !BR2_powerpc_power8
-	# Unsupported MIPS cores
-	depends on !BR2_mips_interaptiv
-	# gcc-4.8.x + binutils-2.25 is broken for MIPS
-	depends on !((BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el) && BR2_BINUTILS_VERSION_2_25_X)
-	# Unsupported for MIPS R5
-	depends on !BR2_MIPS_CPU_MIPS32R5 && !BR2_MIPS_CPU_MIPS64R5
-	# Unsupported for MIPS R6
-	depends on !BR2_MIPS_CPU_MIPS32R6 && !BR2_MIPS_CPU_MIPS64R6
-	# musl ppc64 unsupported
-	depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_powerpc64 || BR2_powerpc64le))
-	# musl mips64 unsupported
-	depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_mips64 || BR2_mips64el))
-	select BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
-
 config BR2_GCC_VERSION_ARC
 	bool "gcc arc (6.x)"
 	# Only supported architecture
@@ -112,7 +89,6 @@ config BR2_GCC_SUPPORTS_FINEGRAINEDMTUNE
 
 config BR2_GCC_VERSION
 	string
-	default "4.8.5"     if BR2_GCC_VERSION_4_8_X
 	default "4.9.4"     if BR2_GCC_VERSION_4_9_X
 	default "5.4.0"     if BR2_GCC_VERSION_5_X
 	default "6.3.0"     if BR2_GCC_VERSION_6_X
package/uclibc/uclibc.mk +0 -6
index bbf389e..a5a20ea 100644
@@ -119,12 +119,6 @@ define UCLIBC_ARM_ABI_CONFIG
 	$(call KCONFIG_ENABLE_OPT,CONFIG_ARM_EABI,$(@D)/.config)
 endef
 
-# Thumb1 build is broken with threads with old gcc versions (< 4.8). Since
-# all cores supporting Thumb1 also support ARM, we use ARM code in this case.
-ifeq ($(BR2_GCC_VERSION_4_8_X)$(BR2_ARM_INSTRUCTIONS_THUMB)$(BR2_TOOLCHAIN_HAS_THREADS),yyy)
-UCLIBC_EXTRA_CFLAGS += -marm
-endif
-
 ifeq ($(BR2_BINFMT_FLAT),y)
 define UCLIBC_ARM_BINFMT_FLAT
 	$(call KCONFIG_DISABLE_OPT,DOPIC,$(@D)/.config)
Signature · 1 line
2.9.4
#7 lore raw

PATCH v2 1/3 package/uclibc: add upstream patch to fix build issue with gcc7

In reply to Romain Naour

Hello,

Quoted 5 lines · Romain Naour

As reported on the mailing list [1], there is a build issue with gcc 7 and uClibc-ng.

Thanks to Waldemar for the fix :)

Quoted 8 lines

[1] http://lists.busybox.net/pipermail/buildroot/2017-May/191140.html

Cc Waldemar Brodkorb <[email protected]>
---
 ...es.h-with-GNU-C-library-fixes-gcc-7.1-too.patch | 64 ++++++++++++++++++++++
 1 file changed, 64 insertions(+)
 create mode 100644 package/uclibc/0001-sync-features.h-with-GNU-C-library-fixes-gcc-7.1-too.patch

Applied to next, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com