.
diff --git generic/tclCompile.h generic/tclCompile.h
index 0ac3759162..30f02a4b37 100644
--- generic/tclCompile.h
+++ generic/tclCompile.h
@@ -1814,25 +1814,11 @@ TclFixupForwardJumpToHere(
* unsigned int TclGetUInt4AtPtr(unsigned char *p);
*/
-/*
- * The TclGetInt1AtPtr function is tricky because we want to do sign extension
- * on the 1-byte value. Unfortunately the "char" type isn't signed on all
- * platforms so sign-extension doesn't always happen automatically. Sometimes
- * we can explicitly declare the pointer to be signed, but other times we have
- * to explicitly sign-extend the value in software.
- */
-
static inline int
TclGetInt1AtPtr(
const unsigned char *p)
{
-#ifndef __CHAR_UNSIGNED__
- return (int) *((char *) p);
-#elif defined(HAVE_SIGNED_CHAR)
return (int) *((signed char *) p);
-#else
- return (int) ((*((char *) p)) | ((*(p) & 0200) ? (-256) : 0));
-#endif
}
static inline unsigned int
diff --git unix/configure unix/configure
index 7fbf303816..395394d88b 100755
--- unix/configure
+++ unix/configure
@@ -10467,88 +10467,6 @@ printf '%s\n' "#define GETTOD_NOT_DECLARED 1" >>confdefs.h
fi
-#--------------------------------------------------------------------
-# The following code checks to see whether it is possible to get
-# signed chars on this platform. This is needed in order to
-# properly generate sign-extended ints from character values.
-#--------------------------------------------------------------------
-
-{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
-printf %s "checking whether char is unsigned... " >&6; }
-if test ${ac_cv_c_char_unsigned+y}
-then :
- printf %s "(cached) " >&6
-else case e in #(
- e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-$ac_includes_default
-int
-main (void)
-{
-static int test_array [1 - 2 * !(((char) -1) < 0)];
-test_array [0] = 0;
-return test_array [0];
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"
-then :
- ac_cv_c_char_unsigned=no
-else case e in #(
- e) ac_cv_c_char_unsigned=yes ;;
-esac
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
-esac
-fi
-{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
-printf '%s\n' "$ac_cv_c_char_unsigned" >&6; }
-if test $ac_cv_c_char_unsigned = yes; then
- printf '%s\n' "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
-
-fi
-
-{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking signed char declarations" >&5
-printf %s "checking signed char declarations... " >&6; }
-if test ${tcl_cv_char_signed+y}
-then :
- printf %s "(cached) " >&6
-else case e in #(
- e)
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-int
-main (void)
-{
-
- signed char *p;
- p = 0;
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"
-then :
- tcl_cv_char_signed=yes
-else case e in #(
- e) tcl_cv_char_signed=no ;;
-esac
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
-esac
-fi
-{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_char_signed" >&5
-printf '%s\n' "$tcl_cv_char_signed" >&6; }
-if test $tcl_cv_char_signed = yes; then
-
-printf '%s\n' "#define HAVE_SIGNED_CHAR 1" >>confdefs.h
-
-fi
-
#--------------------------------------------------------------------
# Does putenv() copy or not? We need to know to avoid memory leaks.
#--------------------------------------------------------------------
diff --git unix/configure.ac unix/configure.ac
index bb1e094903..517f2c7923 100644
--- unix/configure.ac
+++ unix/configure.ac
@@ -459,22 +459,6 @@ if test $tcl_cv_grep_gettimeofday = missing ; then
AC_DEFINE(GETTOD_NOT_DECLARED, 1, [Is gettimeofday() actually declared in <sys/time.h>?])
fi
-#--------------------------------------------------------------------
-# The following code checks to see whether it is possible to get
-# signed chars on this platform. This is needed in order to
-# properly generate sign-extended ints from character values.
-#--------------------------------------------------------------------
-
-AC_C_CHAR_UNSIGNED
-AC_CACHE_CHECK([signed char declarations], tcl_cv_char_signed, [
- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[
- signed char *p;
- p = 0;
- ]])],[tcl_cv_char_signed=yes],[tcl_cv_char_signed=no])])
-if test $tcl_cv_char_signed = yes; then
- AC_DEFINE(HAVE_SIGNED_CHAR, 1, [Are characters signed?])
-fi
-
#--------------------------------------------------------------------
# Does putenv() copy or not? We need to know to avoid memory leaks.
#--------------------------------------------------------------------
diff --git unix/tclConfig.h.in unix/tclConfig.h.in
index 30cc5effb2..850fd9cd17 100644
--- unix/tclConfig.h.in
+++ unix/tclConfig.h.in
@@ -192,9 +192,6 @@
/* Does putenv() copy strings or incorporate them by reference? */
#undef HAVE_PUTENV_THAT_COPIES
-/* Are characters signed? */
-#undef HAVE_SIGNED_CHAR
-
/* Define to 1 if you have the <stdint.h> header file. */
#undef HAVE_STDINT_H
@@ -488,12 +485,6 @@
/* Do we want to use the XOPEN network library? */
#undef _XOPEN_SOURCE_EXTENDED
-/* Define to 1 if type 'char' is unsigned and your compiler does not
- predefine this macro. */
-#ifndef __CHAR_UNSIGNED__
-# undef __CHAR_UNSIGNED__
-#endif
-
/* Define as 'int' if <sys/types.h> doesn't define. */
#undef gid_t