patches/glibc/2.7/200-alpha-atfcts.patch
author Cody Schafer <dev@codyps.com>
Fri May 09 19:13:49 2014 -0700 (2014-05-09)
changeset 3312 4876ff97e039
parent 744 4bf8448536d5
permissions -rw-r--r--
cc/gcc: allow CC_EXTRA_CONFIG_ARRAY on baremetal

The final bare-metal compiler is built using the core backend.
Currently the core uses the CC_CORE_EXTRA_CONFIG_ARRAY variable.

While this works as supposed to, this can leave the user puzzled
in the menuconfig, since all he can see is the core options, not
the final options.

Only show the core options if any of the core passes are needed,
and use the final options in the core-backend if we're issuing
the bare-metal compiler.

Signed-off-by: Cody P Schafer <dev@codyps.com>
[yann.morin.1998@free.fr: hide core options if no core pass needed;
use final option in core backend if issuing the bare-metal compiler]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Message-Id: <22181e546ba746202489.1399688067@localhost>
Patchwork-Id: 347586
yann@734
     1
--- glibc-2.7/sysdeps/unix/sysv/linux/kernel-features.h	2007-08-14 06:21:09.000000000 +0300
yann@734
     2
+++ glibc-2.7/sysdeps/unix/sysv/linux/kernel-features.h.new	2008-07-23 07:05:20.000000000 +0300
yann@734
     3
@@ -449,8 +449,7 @@
yann@734
     4
    and on Alpha just after 2.6.22-rc1.  */
yann@734
     5
 #if __LINUX_KERNEL_VERSION >= 0x020611 \
yann@734
     6
     && ((!defined __sh__ && !defined __alpha__) \
yann@734
     7
-	|| (__LINUX_KERNEL_VERSION >= 0x020613 && defined __sh__) \
yann@734
     8
-	|| (__LINUX_KERNEL_VERSION >= 0x020617 && defined __alpha__))
yann@734
     9
+	|| (__LINUX_KERNEL_VERSION >= 0x020613 && defined __sh__))
yann@734
    10
 # define __ASSUME_ATFCTS	1
yann@734
    11
 #endif
yann@734
    12