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.69-157-


From: Paul Eggert
Subject: [SCM] GNU Autoconf source repository branch, master, updated. v2.69-157-g12aec07
Date: Tue, 15 Mar 2016 15:57:14 +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=12aec07e44e2a37f4081a7a40dba51574999613b

The branch, master has been updated
       via  12aec07e44e2a37f4081a7a40dba51574999613b (commit)
      from  6236291e58d8c63ae3530caa01c5d363af2291ae (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 12aec07e44e2a37f4081a7a40dba51574999613b
Author: Paul Eggert <address@hidden>
Date:   Tue Mar 15 08:56:43 2016 -0700

    Port C11 and C++11 testing to clang
    
    * lib/autoconf/c.m4 (_AC_C_C99_TEST_HEADER):
    Include stddef.h, for offsetof.
    (_AC_PROG_CC_C11): Limit _Static_assert to integer constant
    expressions.  Suggested by Nick Bowler in:
    http://lists.gnu.org/archive/html/autoconf/2016-02/msg00009.html
    (_AC_CXX_CXX11_TEST_BODY): Don't use string literals to initialize
    non-const pointers.  Suggested by Mike Miller in:
    http://lists.gnu.org/archive/html/autoconf/2016-02/msg00008.html

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

Summary of changes:
 lib/autoconf/c.m4 |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/lib/autoconf/c.m4 b/lib/autoconf/c.m4
index fe87dbf..933955f 100644
--- a/lib/autoconf/c.m4
+++ b/lib/autoconf/c.m4
@@ -1205,6 +1205,7 @@ AS_IF([test "x$ac_cv_prog_cc_$1" != xno], [$5], [$6])
 AC_DEFUN([_AC_C_C99_TEST_HEADER],
 [[#include <stdarg.h>
 #include <stdbool.h>
+#include <stddef.h>
 #include <stdlib.h>
 #include <wchar.h>
 #include <stdio.h>
@@ -1439,7 +1440,9 @@ struct anonymous
 [_AC_C_C99_TEST_BODY[
   v1.i = 2;
   v1.w.k = 5;
-  _Static_assert (&v1.i == &v1.w.k, "Anonymous union alignment botch");
+  _Static_assert ((offsetof (struct anonymous, i)
+                  == offsetof (struct anonymous, w.k)),
+                 "Anonymous union alignment botch");
 ]],
 dnl Try
 dnl GCC                -std=gnu11 (unused restrictive mode: -std=c11)
@@ -2453,9 +2456,9 @@ AC_DEFUN([_AC_CXX_CXX11_TEST_BODY],
 }
 {
   // Unicode literals
-  char *utf8 = u8"UTF-8 string \u2500";
-  char16_t *utf16 = u"UTF-8 string \u2500";
-  char32_t *utf32 = U"UTF-32 string \u2500";
+  char const *utf8 = u8"UTF-8 string \u2500";
+  char16_t const *utf16 = u"UTF-8 string \u2500";
+  char32_t const *utf32 = U"UTF-32 string \u2500";
 }
 ]])
 


hooks/post-receive
-- 
GNU Autoconf source repository



reply via email to

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