mirror of
https://forge.sourceware.org/marek/gcc.git
synced 2026-02-22 03:47:02 -05:00
d: Merge upstream dmd, druntime a88e1335f7, phobos 1921d29df.
D front-end changes: - Import dmd v2.104.1. - Deprecation phase ended for access to private method when overloaded with public method. D runtime changes: - Import druntime v2.104.1. - Linux input header translations were added to druntime. - Integration with the Valgrind `memcheck' tool has been added to the garbage collector. Phobos changes: - Import phobos v2.104.1. gcc/d/ChangeLog: * dmd/MERGE: Merge upstream dmd a88e1335f7. * dmd/VERSION: Bump version to v2.104.1. libphobos/ChangeLog: * libdruntime/MERGE: Merge upstream druntime a88e1335f7. * src/MERGE: Merge upstream phobos 1921d29df. * config.h.in: Regenerate. * configure: Regenerate. * configure.ac (libphobos-checking): Add valgrind flag. (DRUNTIME_LIBRARIES_VALGRIND): Call. * libdruntime/Makefile.am (DRUNTIME_CSOURCES): Add etc/valgrind/valgrind_.c. (DRUNTIME_DSOURCES): Add etc/valgrind/valgrind.d. (DRUNTIME_DSOURCES_LINUX): Add core/sys/linux/input.d, core/sys/linux/input_event_codes.d, core/sys/linux/uinput.d. * libdruntime/Makefile.in: Regenerate. * m4/druntime/libraries.m4 (DRUNTIME_LIBRARIES_VALGRIND): Define.
This commit is contained in:
101
libphobos/configure
vendored
101
libphobos/configure
vendored
@@ -1498,8 +1498,8 @@ Optional Features:
|
||||
--enable-libphobos-checking[=LIST]
|
||||
enable expensive run-time checks. With LIST, enable
|
||||
only specific categories of checks. Categories are:
|
||||
yes,no,all,none,release. Flags are: assert or other
|
||||
strings
|
||||
yes,no,all,none,release. Flags are: assert,valgrind
|
||||
or other strings
|
||||
|
||||
Optional Packages:
|
||||
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
||||
@@ -15553,16 +15553,20 @@ for check in release $ac_checking_flags
|
||||
do
|
||||
case $check in
|
||||
# These set all the flags to specific states
|
||||
yes|all) RELEASE_FLAG="-fno-release" ; ASSERT_FLAG= ;;
|
||||
no|none|release) RELEASE_FLAG="-frelease" ; ASSERT_FLAG= ;;
|
||||
yes|all) RELEASE_FLAG="-fno-release" ; ASSERT_FLAG= ;
|
||||
VALGRIND_FLAG= ;;
|
||||
no|none|release) RELEASE_FLAG="-frelease" ; ASSERT_FLAG= ;
|
||||
VALGRIND_FLAG= ;;
|
||||
# These enable particular checks
|
||||
assert) ASSERT_FLAG="-fassert" ;;
|
||||
assert) ASSERT_FLAG="-fassert" ;;
|
||||
valgrind) VALGRIND_FLAG="-fdebug=VALGRIND" ;;
|
||||
# Accept
|
||||
*) ;;
|
||||
esac
|
||||
done
|
||||
IFS="$ac_save_IFS"
|
||||
CHECKING_DFLAGS="$RELEASE_FLAG $ASSERT_FLAG"
|
||||
CHECKING_DFLAGS="$RELEASE_FLAG $ASSERT_FLAG $VALGRIND_FLAG"
|
||||
|
||||
|
||||
|
||||
# Add drtbegin.o/drtend.o to startfile/endfile specs in libgphobos.spec
|
||||
@@ -15600,6 +15604,91 @@ fi
|
||||
|
||||
|
||||
|
||||
|
||||
for ac_header in stddef.h stdlib.h
|
||||
do :
|
||||
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
||||
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
|
||||
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
||||
_ACEOF
|
||||
|
||||
fi
|
||||
|
||||
done
|
||||
|
||||
|
||||
ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
|
||||
if test "x$ac_cv_header_valgrind_h" = xyes; then :
|
||||
have_valgrind_h=yes
|
||||
else
|
||||
have_valgrind_h=no
|
||||
fi
|
||||
|
||||
|
||||
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
|
||||
$as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
#include <valgrind/memcheck.h>
|
||||
#ifndef VALGRIND_DISCARD
|
||||
#error VALGRIND_DISCARD not defined
|
||||
#endif
|
||||
_ACEOF
|
||||
if ac_fn_c_try_cpp "$LINENO"; then :
|
||||
have_valgrind_memcheck_h=yes
|
||||
else
|
||||
have_valgrind_memcheck_h=no
|
||||
fi
|
||||
rm -f conftest.err conftest.i conftest.$ac_ext
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_valgrind_memcheck_h" >&5
|
||||
$as_echo "$have_valgrind_memcheck_h" >&6; }
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
|
||||
$as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
#include <memcheck.h>
|
||||
#ifndef VALGRIND_DISCARD
|
||||
#error VALGRIND_DISCARD not defined
|
||||
#endif
|
||||
_ACEOF
|
||||
if ac_fn_c_try_cpp "$LINENO"; then :
|
||||
have_memcheck_h=yes
|
||||
else
|
||||
have_memcheck_h=no
|
||||
fi
|
||||
rm -f conftest.err conftest.i conftest.$ac_ext
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_memcheck_h" >&5
|
||||
$as_echo "$have_memcheck_h" >&6; }
|
||||
|
||||
if test x$VALGRIND_FLAG != x ; then
|
||||
|
||||
$as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
|
||||
|
||||
fi
|
||||
if test $have_valgrind_memcheck_h = yes; then
|
||||
|
||||
$as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
|
||||
|
||||
fi
|
||||
if test $have_memcheck_h = yes; then
|
||||
|
||||
$as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
|
||||
|
||||
fi
|
||||
|
||||
if test x$VALGRIND_FLAG != x; then
|
||||
if (test $have_valgrind_h = no \
|
||||
&& test $have_memcheck_h = no \
|
||||
&& test $have_valgrind_memcheck_h = no); then
|
||||
as_fn_error $? "*** valgrind checking requested, but
|
||||
*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
ac_config_files="$ac_config_files Makefile"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user