From: Joe Seymour Date: Fri, 20 Jan 2017 17:46:36 +0000 (+0000) Subject: Support unsigned __int20 in checks for size_t mangling X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f14d2c52d4c815b89513abec58acc16f6e7dfb78;p=gcc.git Support unsigned __int20 in checks for size_t mangling 2017-01-20 Joe Seymour * acinclude.m4 (GLIBCXX_CHECK_SIZE_T_MANGLING): Support uint20_t. * configure: Regenerate. From-SVN: r244727 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 37edf6e080a..dc60d4ee528 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2017-01-20 Joe Seymour + + * acinclude.m4 (GLIBCXX_CHECK_SIZE_T_MANGLING): Support uint20_t. + * configure: Regenerate. + 2017-01-20 Jonathan Wakely PR libstdc++/69240 diff --git a/libstdc++-v3/acinclude.m4 b/libstdc++-v3/acinclude.m4 index 4e04ccea2ba..d9859aaf029 100644 --- a/libstdc++-v3/acinclude.m4 +++ b/libstdc++-v3/acinclude.m4 @@ -4460,8 +4460,12 @@ AC_DEFUN([GLIBCXX_CHECK_SIZE_T_MANGLING], [ [glibcxx_cv_size_t_mangling=y], [ AC_TRY_COMPILE([], [extern __SIZE_TYPE__ x; extern unsigned short x;], - [glibcxx_cv_size_t_mangling=t], - [glibcxx_cv_size_t_mangling=x]) + [glibcxx_cv_size_t_mangling=t], [ + AC_TRY_COMPILE([], + [extern __SIZE_TYPE__ x; extern __int20 unsigned x;], + [glibcxx_cv_size_t_mangling=u6uint20], + [glibcxx_cv_size_t_mangling=x]) + ]) ]) ]) ]) diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure index 219a6a34ead..9bb986222ca 100755 --- a/libstdc++-v3/configure +++ b/libstdc++-v3/configure @@ -80707,6 +80707,21 @@ _ACEOF if ac_fn_c_try_compile "$LINENO"; then : glibcxx_cv_size_t_mangling=t else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +extern __SIZE_TYPE__ x; extern __int20 unsigned x; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + glibcxx_cv_size_t_mangling=u6uint20 +else glibcxx_cv_size_t_mangling=x fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext @@ -80720,6 +80735,9 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_size_t_mangling" >&5 $as_echo "$glibcxx_cv_size_t_mangling" >&6; }