diff options
author | Joe Seymour <joe.s@somniumtech.com> | 2017-01-20 17:46:36 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2017-01-20 17:46:36 +0000 |
commit | f14d2c52d4c815b89513abec58acc16f6e7dfb78 (patch) | |
tree | 39c4ef0e32ce998768a195658d9ed8eb61563574 /libstdc++-v3 | |
parent | d2aadab150ac5f2c7e140d5568647a0c74eb67da (diff) | |
download | gcc-f14d2c52d4c815b89513abec58acc16f6e7dfb78.zip gcc-f14d2c52d4c815b89513abec58acc16f6e7dfb78.tar.gz gcc-f14d2c52d4c815b89513abec58acc16f6e7dfb78.tar.bz2 |
Support unsigned __int20 in checks for size_t mangling
2017-01-20 Joe Seymour <joe.s@somniumtech.com>
* acinclude.m4 (GLIBCXX_CHECK_SIZE_T_MANGLING): Support uint20_t.
* configure: Regenerate.
From-SVN: r244727
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/acinclude.m4 | 8 | ||||
-rwxr-xr-x | libstdc++-v3/configure | 18 |
3 files changed, 29 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 37edf6e..dc60d4e 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2017-01-20 Joe Seymour <joe.s@somniumtech.com> + + * acinclude.m4 (GLIBCXX_CHECK_SIZE_T_MANGLING): Support uint20_t. + * configure: Regenerate. + 2017-01-20 Jonathan Wakely <jwakely@redhat.com> PR libstdc++/69240 diff --git a/libstdc++-v3/acinclude.m4 b/libstdc++-v3/acinclude.m4 index 4e04cce..d9859aa 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 219a6a3..9bb9862 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 @@ -80721,6 +80736,9 @@ 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; } if test $glibcxx_cv_size_t_mangling = x; then |