autoconf-commit
[Top][All Lists]
Advanced

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

[SCM] GNU Autoconf source repository branch, master, updated. v2.68-73-g


From: Paul Eggert
Subject: [SCM] GNU Autoconf source repository branch, master, updated. v2.68-73-g6cd9f12
Date: Mon, 20 Jun 2011 05:33:34 +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 "GNU Autoconf source repository".

http://git.sv.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=6cd9f12520b0d6f76d3230d7565feba1ecf29497

The branch, master has been updated
       via  6cd9f12520b0d6f76d3230d7565feba1ecf29497 (commit)
      from  b1747413a80add0271d6909aecfdc2b638456257 (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 -----------------------------------------------------------------
commit 6cd9f12520b0d6f76d3230d7565feba1ecf29497
Author: Paul Eggert <address@hidden>
Date:   Sun Jun 19 22:33:03 2011 -0700

    * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Be even smarter.
    
    GCC was too smart for the previous patch.  See
    <http://lists.gnu.org/archive/html/bug-autoconf/2011-06/msg00035.html>.

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

Summary of changes:
 ChangeLog                 |    6 ++++++
 lib/autoconf/functions.m4 |   15 +++++++++------
 2 files changed, 15 insertions(+), 6 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index e0e52ce..466b8a8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-06-19  Paul Eggert  <address@hidden>
+
+       * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Be even smarter.
+       GCC was too smart for the previous patch.  See
+       <http://lists.gnu.org/archive/html/bug-autoconf/2011-06/msg00035.html>.
+
 2011-06-18  Paul Eggert  <address@hidden>
 
        * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Try to outsmart GCC.
diff --git a/lib/autoconf/functions.m4 b/lib/autoconf/functions.m4
index 3156887..cbc3413 100644
--- a/lib/autoconf/functions.m4
+++ b/lib/autoconf/functions.m4
@@ -325,17 +325,20 @@ AC_CACHE_CHECK([stack direction for C alloca],
 [AC_RUN_IFELSE([AC_LANG_SOURCE(
 [AC_INCLUDES_DEFAULT
 int
-find_stack_direction (char *addr)
+find_stack_direction (int *addr, int depth)
 {
-  char dummy;
-  return (! addr ? find_stack_direction (&dummy)
-          : addr < &dummy ? 1 : -1);
+  int dir, dummy = 0;
+  if (! addr)
+    addr = &dummy;
+  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
+  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
+  return dir + dummy;
 }
 
 int
-main (void)
+main (int argc, char **argv)
 {
-  return find_stack_direction (0) < 0;
+  return find_stack_direction (0, argc + !argv + 20) < 0;
 }])],
               [ac_cv_c_stack_direction=1],
               [ac_cv_c_stack_direction=-1],


hooks/post-receive
-- 
GNU Autoconf source repository



reply via email to

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