dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[dotgnu-pnet-commits] [SCM] DotGNU Portable.NET engine, compilers and to


From: Klaus Treichel
Subject: [dotgnu-pnet-commits] [SCM] DotGNU Portable.NET engine, compilers and tools (pnet) branch, master, updated. 2aed9286bfa9bf349a639d7f51e9fd0a4449e43d
Date: Sun, 15 Nov 2009 12:18:17 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "DotGNU Portable.NET engine, compilers and tools (pnet)".

The branch, master has been updated
       via  2aed9286bfa9bf349a639d7f51e9fd0a4449e43d (commit)
      from  d9026ac65e3eecb6acfc6490cd691a4fae92bfb5 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/pnet.git/commit/?id=2aed9286bfa9bf349a639d7f51e9fd0a4449e43d

commit 2aed9286bfa9bf349a639d7f51e9fd0a4449e43d
Author: Klaus Treichel <address@hidden>
Date:   Sun Nov 15 13:17:50 2009 +0100

    Add checks for the gcc 4.x commandline options -fno-inline-small-functions
    and -fno-inline-functions-called-once and add them to NO_INLINE_FUNCTIONS
    if available.
    This fixes the build with gcc 4.4 on x86.

diff --git a/ChangeLog b/ChangeLog
index c256ead..d2703f3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-11-15  Klaus Treichel  <address@hidden>
+
+       * configure.in: Add checks for the gcc options
+       -fno-inline-small-functions and -fno-inline-functions-called-once and
+       add them to NO_INLINE_FUNCTIONS.
+
 2009-11-08  Klaus Treichel  <address@hidden>
 
        * engine/engine.h: Centralize the declarations of METADATA_WRLOCK and
diff --git a/configure.in b/configure.in
index 2398beb..c784622 100644
--- a/configure.in
+++ b/configure.in
@@ -622,6 +622,34 @@ else
        NO_INLINE_FUNCTIONS=""
 fi
 
+dnl Check to see whether cc accepts "-fno-inline-small-functions" or not.
+AC_CACHE_CHECK(whether ${CC-cc} accepts -fno-inline-small-functions, 
ac_cv_prog_cc_no_inline_small_functions,
+[echo 'int main(){return 0;}' > conftest.c
+if test -z "`${CC-cc} -fno-inline-small-functions -o conftest conftest.c 
2>&1`"; then
+  ac_cv_prog_cc_no_inline_small_functions=yes
+else
+  ac_cv_prog_cc_no_inline_small_functions=no
+fi
+rm -f conftest*
+])
+if test $ac_cv_prog_cc_no_inline_small_functions = yes ; then
+       NO_INLINE_FUNCTIONS="$NO_INLINE_FUNCTIONS -fno-inline-small-functions"
+fi
+
+dnl Check to see whether cc accepts "-fno-inline-functions-called-once" or not.
+AC_CACHE_CHECK(whether ${CC-cc} accepts -fno-inline-functions-called-once, 
ac_cv_prog_cc_no_inline_functions_called_once,
+[echo 'int main(){return 0;}' > conftest.c
+if test -z "`${CC-cc} -fno-inline-functions-called-once -o conftest conftest.c 
2>&1`"; then
+  ac_cv_prog_cc_no_inline_functions_called_once=yes
+else
+  ac_cv_prog_cc_no_inline_functions_called_once=no
+fi
+rm -f conftest*
+])
+if test $ac_cv_prog_cc_no_inline_functions_called_once = yes ; then
+   NO_INLINE_FUNCTIONS="$NO_INLINE_FUNCTIONS -fno-inline-functions-called-once"
+fi
+
 dnl Checks for library functions.
 AC_FUNC_MEMCMP
 AC_CHECK_FUNCS(memset memcmp memchr memcpy memmove bcopy bzero bcmp)

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog    |    6 ++++++
 configure.in |   28 ++++++++++++++++++++++++++++
 2 files changed, 34 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
DotGNU Portable.NET engine, compilers and tools (pnet)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]