* [PATCH] Added a flag for skipping core passes
@ 2012-11-22 22:57 Yann Diorcet
2012-11-24 17:08 ` cc: add " Yann E. MORIN
0 siblings, 1 reply; 2+ messages in thread
From: Yann Diorcet @ 2012-11-22 22:57 UTC (permalink / raw)
To: Yann E. MORIN; +Cc: crossgcc
# HG changeset patch
# User Yann Diorcet <diorcet.yann@gmail.com>
# Date 1353625018 -3600
# Node ID 150eadb0117e697d79aa35cf523a5c851817e2db
# Parent 2af20cfd210bac338ec18d774458c84fd585ef07
Added a flag for skipping core passes.
It is used for skipping unnecessary compilation steps when the libc doesn't need
to be compiled.
cc: add CC_CORE_PASSES_NEEDED flag
libc: all libc select CC_CORE_PASSES_NEEDED
script: skip cc1 and cc2 if CT_CC_CORE_PASSES_NEEDED is selected
Signed-off-by: Yann Diorcet <diorcet.yann@gmail.com>
diff -r 2af20cfd210b -r 150eadb0117e config/cc.in
--- a/config/cc.in Thu Nov 22 19:43:26 2012 +0100
+++ b/config/cc.in Thu Nov 22 23:56:58 2012 +0100
@@ -8,6 +8,9 @@
config CC_VERSION
string
+config CC_CORE_PASSES_NEEDED
+ bool
+
source "config.gen/cc.in"
config CC_SUPPORT_CXX
diff -r 2af20cfd210b -r 150eadb0117e config/libc/eglibc.in
--- a/config/libc/eglibc.in Thu Nov 22 19:43:26 2012 +0100
+++ b/config/libc/eglibc.in Thu Nov 22 23:56:58 2012 +0100
@@ -4,6 +4,7 @@
##
## select LIBC_SUPPORT_NPTL
## select LIBC_SUPPORT_LINUXTHREADS
+## select CC_CORE_PASSES_NEEDED
##
## help EGLIBC (Embedded GLIBC) is a variant of the standard GNU GLIBC
## help that is designed to work well on embedded systems. EGLIBC strives
diff -r 2af20cfd210b -r 150eadb0117e config/libc/glibc.in
--- a/config/libc/glibc.in Thu Nov 22 19:43:26 2012 +0100
+++ b/config/libc/glibc.in Thu Nov 22 23:56:58 2012 +0100
@@ -3,6 +3,7 @@
## depends on ! WINDOWS && ! BARE_METAL && ARCH_USE_MMU
##
## select LIBC_SUPPORT_NPTL
+## select CC_CORE_PASSES_NEEDED
##
## help The de-facto standard for Linux distributions.
## help Feature-rich, but large... Most usefull for desktop-like systems.
diff -r 2af20cfd210b -r 150eadb0117e config/libc/mingw.in
--- a/config/libc/mingw.in Thu Nov 22 19:43:26 2012 +0100
+++ b/config/libc/mingw.in Thu Nov 22 23:56:58 2012 +0100
@@ -3,6 +3,7 @@
## depends on WINDOWS
##
## select LIBC_SUPPORT_WIN32THREADS
+## select CC_CORE_PASSES_NEEDED
##
## help The de-facto standard for Mingw distributions.
diff -r 2af20cfd210b -r 150eadb0117e config/libc/newlib.in
--- a/config/libc/newlib.in Thu Nov 22 19:43:26 2012 +0100
+++ b/config/libc/newlib.in Thu Nov 22 23:56:58 2012 +0100
@@ -3,6 +3,7 @@
## depends on BARE_METAL
##
## select LIBC_SUPPORT_THREADS_NONE
+## select CC_CORE_PASSES_NEEDED
##
## help Newlib is a C library intended for use on embedded systems. It is a
## help conglomeration of several library parts, all under free software
diff -r 2af20cfd210b -r 150eadb0117e config/libc/uClibc.in
--- a/config/libc/uClibc.in Thu Nov 22 19:43:26 2012 +0100
+++ b/config/libc/uClibc.in Thu Nov 22 23:56:58 2012 +0100
@@ -4,6 +4,7 @@
##
## select LIBC_SUPPORT_LINUXTHREADS
## select LIBC_SUPPORT_THREADS_NONE
+## select CC_CORE_PASSES_NEEDED
##
## help The de-facto standard for embeded linux systems.
## help
diff -r 2af20cfd210b -r 150eadb0117e scripts/build/cc/gcc.sh
--- a/scripts/build/cc/gcc.sh Thu Nov 22 19:43:26 2012 +0100
+++ b/scripts/build/cc/gcc.sh Thu Nov 22 23:56:58 2012 +0100
@@ -82,6 +82,10 @@
# Core gcc pass 1
do_cc_core_pass_1() {
local -a core_opts
+
+ if [ "${CT_CC_CORE_PASSES_NEEDED}" != "y" ]; then
+ return 0
+ fi
core_opts+=( "mode=static" )
core_opts+=( "host=${CT_BUILD}" )
@@ -103,6 +107,10 @@
# Core gcc pass 2
do_cc_core_pass_2() {
local -a core_opts
+
+ if [ "${CT_CC_CORE_PASSES_NEEDED}" != "y" ]; then
+ return 0
+ fi
# Common options:
core_opts+=( "host=${CT_BUILD}" )
--
For unsubscribe information see http://sourceware.org/lists.html#faq
^ permalink raw reply [flat|nested] 2+ messages in thread
* cc: add a flag for skipping core passes
2012-11-22 22:57 [PATCH] Added a flag for skipping core passes Yann Diorcet
@ 2012-11-24 17:08 ` Yann E. MORIN
0 siblings, 0 replies; 2+ messages in thread
From: Yann E. MORIN @ 2012-11-24 17:08 UTC (permalink / raw)
To: Yann Diorcet; +Cc: crossgcc
Yann, All,
Your patch:
cc: add a flag for skipping core passes
has been applied as: #bd172b161ff8
http://crosstool-ng.org/hg/crosstool-ng/rev/bd172b161ff8
Thank you!
Regards,
Yann E. MORIN.
--
For unsubscribe information see http://sourceware.org/lists.html#faq
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-11-24 17:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-22 22:57 [PATCH] Added a flag for skipping core passes Yann Diorcet
2012-11-24 17:08 ` cc: add " Yann E. MORIN
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).