mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-05 06:27:37 +00:00
Remove expired ports:
2016-05-15 lang/gcc-aux: Use newer lang/gcc5-aux or lang/gcc6-aux compilers instead 2016-05-16 audio/deadbeef-mpris-plugin: Abandonware; use `audio/deadbeef-mpris2-plugin' instead
This commit is contained in:
parent
0a26792c3c
commit
b471360761
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=415316
2
MOVED
2
MOVED
@ -8316,3 +8316,5 @@ java/linux-sun-jre17||2016-05-09|Has expired: Unsupported and known for multiple
|
||||
deskutils/gnustep-notebook||2016-05-09|Has expired: Does not fetch
|
||||
lang/moscow_ml|lang/mosml|2016-05-11|Project renamed
|
||||
devel/rubygem-redmine_acts_as_taggable_on|www/rubygem-redmine_acts_as_taggable_on|2016-05-14|Duplicate port
|
||||
lang/gcc-aux||2016-05-16|Has expired: Use newer lang/gcc5-aux or lang/gcc6-aux compilers instead
|
||||
audio/deadbeef-mpris-plugin|audio/deadbeef-mpris2-plugin|2016-05-16|Has expired: Abandonware; use `audio/deadbeef-mpris2-plugin' instead
|
||||
|
@ -91,7 +91,6 @@
|
||||
SUBDIR += dcd
|
||||
SUBDIR += deadbeef
|
||||
SUBDIR += deadbeef-jack-plugin
|
||||
SUBDIR += deadbeef-mpris-plugin
|
||||
SUBDIR += deadbeef-mpris2-plugin
|
||||
SUBDIR += deadbeef-musical-spectrum-plugin
|
||||
SUBDIR += deadbeef-playback-status-plugin
|
||||
|
@ -1,33 +0,0 @@
|
||||
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= deadbeef-mpris-plugin
|
||||
PORTVERSION= 2.1.3
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= audio
|
||||
MASTER_SITES= GOOGLE_CODE
|
||||
|
||||
MAINTAINER= danfe@FreeBSD.org
|
||||
COMMENT= MPRIS plugin for DeaDBeeF music player
|
||||
|
||||
LICENSE= GPLv3
|
||||
|
||||
BROKEN= does not work with recent versions of glib and/or DeaDBeeF
|
||||
DEPRECATED= Abandonware; use `audio/deadbeef-mpris2-plugin' instead
|
||||
EXPIRATION_DATE= 2016-05-16
|
||||
|
||||
BUILD_DEPENDS= ${LOCALBASE}/include/deadbeef/deadbeef.h:audio/deadbeef
|
||||
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
USE_GNOME= glib20
|
||||
USES= pkgconfig libtool
|
||||
INSTALL_TARGET= install-strip
|
||||
|
||||
WRKSRC= ${WRKDIR}/deadbeef-${PORTVERSION}
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|-Werror||g' ${WRKSRC}/Makefile.in \
|
||||
${WRKSRC}/test/Makefile.in
|
||||
|
||||
.include <bsd.port.mk>
|
@ -1,2 +0,0 @@
|
||||
SHA256 (deadbeef-mpris-plugin-2.1.3.tar.gz) = 22683ca508072e44e8e489c894e2cb22b3aa0475fdd312d2ef88f4dad4317e4f
|
||||
SIZE (deadbeef-mpris-plugin-2.1.3.tar.gz) = 354177
|
@ -1,10 +0,0 @@
|
||||
This is MPRIS (Media Player Remote Interfacing Specification) plugin for
|
||||
DeaDBeeF music player.
|
||||
|
||||
The Media Player Remote Interfacing Specification is a standard D-Bus
|
||||
interface which aims to provide a common programmatic API for controlling
|
||||
media players. It provides a mechanism for compliant media players
|
||||
discovery, basic playback, and media player state control as well as a
|
||||
tracklist interface which is used to add context to the current item.
|
||||
|
||||
WWW: http://code.google.com/p/deadbeef-mpris-plugin/
|
@ -1,4 +0,0 @@
|
||||
lib/deadbeef/mpris.a
|
||||
lib/deadbeef/mpris.so
|
||||
lib/deadbeef/mpris.so.0
|
||||
lib/deadbeef/mpris.so.0.0.0
|
@ -91,7 +91,6 @@
|
||||
SUBDIR += gauche
|
||||
SUBDIR += gawk
|
||||
SUBDIR += gcc
|
||||
SUBDIR += gcc-aux
|
||||
SUBDIR += gcc-ecj45
|
||||
SUBDIR += gcc46
|
||||
SUBDIR += gcc47
|
||||
|
@ -1,286 +0,0 @@
|
||||
# Created by: John Marino <marino@FreeBSD.org>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= gcc-aux
|
||||
PORTVERSION= ${SNAPSHOT}
|
||||
PORTREVISION= ${MAIN_PR}
|
||||
CATEGORIES= lang
|
||||
MASTER_SITES= http://downloads.dragonlace.net/src/:boot \
|
||||
LOCAL/marino:boot GCC/${MS_SUBDIR}
|
||||
DISTFILES= ${IDENTIFICATION}.tar.bz2
|
||||
|
||||
MAINTAINER= marino@FreeBSD.org
|
||||
COMMENT= Version of GCC ${GCC_BRANCH} with full Ada support
|
||||
|
||||
LICENSE= GPLv3 GPLv3RLE
|
||||
LICENSE_COMB= multi
|
||||
|
||||
DEPRECATED= Use newer lang/gcc5-aux or lang/gcc6-aux compilers instead
|
||||
EXPIRATION_DATE= 2016-05-15
|
||||
|
||||
.include "${.CURDIR}/Makefile.common"
|
||||
|
||||
LANGS= c c++ ada
|
||||
APPLY_DIFFS= core cxx ada
|
||||
INTENDED_COMPILER= NATIVE
|
||||
GARCH= ${ARCH:S/amd64/x86_64/}
|
||||
BOOTSTRAP_COMPILER= gnat-bootstrap.${GARCH}.${OPSYS:tl}.tar.bz2
|
||||
BLD_TARGET= ${GARCH}-aux-${OPSYS:tl}${OSREL}
|
||||
FULL_GNATGCC= NOT_SET
|
||||
OS_LABEL4VERS= [${OPSYS}${GARCH:M*64:S/amd_//:S/x86_//}]
|
||||
NO_MTREE= yes
|
||||
|
||||
OPTIONS_GROUP= Standard Bootstrap
|
||||
OPTIONS_GROUP_Standard= FORT OBJC NLS TESTSUITE STATIC
|
||||
OPTIONS_GROUP_Bootstrap=BOOTSTRAP
|
||||
OPTIONS_DEFAULT= FORT OBJC
|
||||
NO_OPTIONS_SORT= yes
|
||||
|
||||
FORT_DESC= Fortran language support
|
||||
OBJC_DESC= Objective-C language support
|
||||
TESTSUITE_DESC= Activate test support
|
||||
STATIC_DESC= Link compilers and drivers statically
|
||||
BOOTSTRAP_DESC= Create bootstrap compiler (overrides other options)
|
||||
|
||||
# The BOOTSTRAP option overrides all the others. "make stage" will build a
|
||||
# static compiler that supports C, C++, and Ada languages and then create
|
||||
# a new distfile in $WRKDIR/newbsd with the name following the pattern:
|
||||
# ada-bootstrap.$ARCH.$OPSYS.XY.tar.bz2. There is no need to "make install"
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${OPSYS} == FreeBSD
|
||||
MODERN_BINUTILS= yes
|
||||
BOOTSTRAP_COMPILER= ada-bootstrap.${GARCH}.freebsd.100B.tar.bz2
|
||||
.endif
|
||||
.if ${OPSYS} == DragonFly
|
||||
BOOTSTRAP_COMPILER= ada-bootstrap.${GARCH}.dragonfly.36A.tar.bz2
|
||||
.endif
|
||||
|
||||
.if defined(MODERN_BINUTILS)
|
||||
# Apparently gcc 4.9 needs binutils 2.23 or greater to link Ada correctly
|
||||
USE_BINUTILS= yes
|
||||
RUN_DEPENDS+= ${LOCALBASE}/bin/as:devel/binutils
|
||||
EXTRA_CONFIG+= --with-ld=${LOCALBASE}/bin/ld
|
||||
EXTRA_CONFIG+= --with-as=${LOCALBASE}/bin/as
|
||||
.else
|
||||
EXTRA_CONFIG+= --with-ld=/usr/bin/ld
|
||||
EXTRA_CONFIG+= --with-as=/usr/bin/as
|
||||
.endif
|
||||
|
||||
WRKSRC= ${WRKDIR}/${IDENTIFICATION}
|
||||
BUILDDIR= ${WRKDIR}/build
|
||||
NEWBSDIR= ${WRKDIR}/newbs/bootstrap
|
||||
CFG_SCRIPT= ${WRKSRC}/configure
|
||||
REVFILE= ${WRKSRC}/gcc/REVISION
|
||||
BOOTSTRAP_PREFIX= ${WRKDIR}/bootstrap
|
||||
PKG_PREFIX= ${PREFIX}/${PORTNAME}
|
||||
MANPREFIX= ${PREFIX}/${PORTNAME}/share
|
||||
BSFILENAME= ada-bootstrap.${GARCH}.${OPSYS:tl}.${OSREL:S/.//}.tar.bz2
|
||||
|
||||
# If we find gnatmake and friends in a standard location, then we'll use this
|
||||
# compiler instead of downloading the bootstrap.
|
||||
.if exists (${LOCALBASE}/${PORTNAME}/bin/ada)
|
||||
.if exists (${LOCALBASE}/${PORTNAME}/bin/gnatbind)
|
||||
.if exists (${LOCALBASE}/${PORTNAME}/bin/gnatlink)
|
||||
.if exists (${LOCALBASE}/${PORTNAME}/bin/gnatmake)
|
||||
FULL_GNATGCC=${LOCALBASE}/${PORTNAME}/bin/ada
|
||||
FULL_GNATGXX=${LOCALBASE}/${PORTNAME}/bin/g++
|
||||
FULL_PATH=/sbin:/bin:/usr/sbin:/usr/bin:${PREFIX}/${PORTNAME}/bin:${PREFIX}/bin
|
||||
.endif
|
||||
.endif
|
||||
.endif
|
||||
.endif
|
||||
|
||||
# If FULL_GNATGCC is not set, we'll request the bootstrap compiler
|
||||
.if ${FULL_GNATGCC} == NOT_SET
|
||||
INTENDED_COMPILER=BOOTSTRAP
|
||||
FULL_GNATGCC=${BOOTSTRAP_PREFIX}/bin/gcc
|
||||
FULL_GNATGXX=${BOOTSTRAP_PREFIX}/bin/g++
|
||||
FULL_PATH=${BOOTSTRAP_PREFIX}/bin:/sbin:/bin:/usr/sbin:/usr/bin:${PREFIX}/bin
|
||||
DISTFILES+= ${BOOTSTRAP_COMPILER}:boot
|
||||
.endif
|
||||
|
||||
# for port maintenance, invoke "make makesum PLUS_BOOTSTRAPS=1"
|
||||
.if defined(PLUS_BOOTSTRAPS)
|
||||
DISTFILES= \
|
||||
${IDENTIFICATION}.tar.bz2 \
|
||||
ada-bootstrap.i386.dragonfly.36A.tar.bz2:boot \
|
||||
ada-bootstrap.i386.freebsd.100B.tar.bz2:boot \
|
||||
ada-bootstrap.x86_64.dragonfly.36A.tar.bz2:boot \
|
||||
ada-bootstrap.x86_64.freebsd.100B.tar.bz2:boot
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MFORT} && !${PORT_OPTIONS:MBOOTSTRAP}
|
||||
LANGS+= fortran
|
||||
#APPLY_DIFFS+= fortran
|
||||
EXTRA_CONFIG+= --enable-libquadmath
|
||||
.else
|
||||
EXTRA_CONFIG+= --disable-libquadmath
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MOBJC} && !${PORT_OPTIONS:MBOOTSTRAP}
|
||||
LANGS+= objc
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MTESTSUITE} && !${PORT_OPTIONS:MBOOTSTRAP}
|
||||
BUILD_DEPENDS+= dejagnu>=1.4:misc/dejagnu
|
||||
APPLY_DIFFS+= ada-testsuite
|
||||
APPLY_DIFFS+= fortran-testsuite
|
||||
APPLY_DIFFS+= cxx-testsuite
|
||||
APPLY_DIFFS+= gcc-testsuite
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MNLS} && !${PORT_OPTIONS:MBOOTSTRAP}
|
||||
USES+= gettext-tools
|
||||
EXTRA_CONFIG+= --enable-nls
|
||||
.else
|
||||
EXTRA_CONFIG+= --disable-nls
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MSTATIC} && !${PORT_OPTIONS:MBOOTSTRAP}
|
||||
EXTRA_CONFIG+= --with-stage1-ldflags=-static
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MBOOTSTRAP}
|
||||
EXTRA_CONFIG+= --disable-shared --disable-lto
|
||||
EXTRA_CONFIG+= --with-boot-ldflags=-static
|
||||
.else
|
||||
EXTRA_CONFIG+= --disable-bootstrap
|
||||
.endif
|
||||
|
||||
# Establish Ada-aware compiler for use
|
||||
ADA_CONFIGURE_ENV+= CC=${FULL_GNATGCC}
|
||||
ADA_CONFIGURE_ENV+= CXX=${FULL_GNATGXX}
|
||||
ADA_CONFIGURE_ENV+= PATH=${FULL_PATH}
|
||||
ADA_MAKE_ENV+= PATH=${FULL_PATH}
|
||||
ADA_MAKE_ENV+= LD_LIBRARY_PATH=${BUILDDIR}/gcc
|
||||
|
||||
# The standard configuration options
|
||||
ADA_CONFIG_ARGS= --enable-languages=${LANGS:Q}
|
||||
ADA_CONFIG_ARGS+= --build=${BLD_TARGET}
|
||||
ADA_CONFIG_ARGS+= --prefix=${PKG_PREFIX:Q}
|
||||
ADA_CONFIG_ARGS+= --with-system-zlib
|
||||
ADA_CONFIG_ARGS+= --with-gmp=${PREFIX}
|
||||
ADA_CONFIG_ARGS+= --with-mpfr=${PREFIX}
|
||||
ADA_CONFIG_ARGS+= --with-mpc=${PREFIX}
|
||||
ADA_CONFIG_ARGS+= ${ICONV_CONFIGURE_ARG}
|
||||
ADA_CONFIG_ARGS+= --enable-shared
|
||||
ADA_CONFIG_ARGS+= --enable-threads=posix
|
||||
ADA_CONFIG_ARGS+= --disable-libmudflap
|
||||
ADA_CONFIG_ARGS+= --disable-libgomp
|
||||
ADA_CONFIG_ARGS+= --disable-libssp
|
||||
ADA_CONFIG_ARGS+= ${EXTRA_CONFIG}
|
||||
|
||||
post-extract:
|
||||
# Personalize GNAT for each different machine
|
||||
@${ECHO} "-=> GNAT AUX ${OS_LABEL4VERS}" > ${REVFILE}
|
||||
# Create new directories in preparation of applying diff files
|
||||
${MKDIR} ${WRKSRC}/libstdc++-v3/config/locale/dragonfly
|
||||
${MKDIR} ${WRKSRC}/libstdc++-v3/config/os/bsd/dragonfly
|
||||
# Apply required composite diff files
|
||||
.for suffix in ${APPLY_DIFFS}
|
||||
@${ECHO} "Applying composite patch diff-${suffix}"
|
||||
@${PATCH} -d ${WRKSRC} -s -E < ${FILESDIR}/diff-${suffix}
|
||||
.endfor
|
||||
@(cd ${WRKSRC}/libstdc++-v3/testsuite && ${REINPLACE_CMD} \
|
||||
-e 's|\*-\*-freebsd\*|*-*-dragonfly* *-*-freebsd*|' ${CXXTS4DF})
|
||||
@(cd ${WRKSRC}/libstdc++-v3/testsuite/22_locale && ${REINPLACE_CMD} \
|
||||
-e 's|ISO-8859|ISO8859|g' \
|
||||
-e 's|ja_JP.eucjp|ja_JP.eucJP|g' \
|
||||
-e 's|en_HK|zh_HK|g' \
|
||||
-e 's|en_PH|en_NZ|g' \
|
||||
-e 's|se_NO|no_NO|g' \
|
||||
-e 's|es_MX|es_ES|g' \
|
||||
-e 's|ru_RU.UTF8|ru_RU.UTF-8|g' ${LOCALE22FIX})
|
||||
.if ${PORT_OPTIONS:MSTATIC} || ${PORT_OPTIONS:MBOOTSTRAP}
|
||||
# Ensure GNAT tools are built statically
|
||||
${REINPLACE_CMD} -e 's/^GCC_LINK_FLAGS=.*/GCC_LINK_FLAGS=-static/' \
|
||||
${WRKSRC}/gcc/ada/gcc-interface/Makefile.in
|
||||
.endif
|
||||
.if ${PORT_OPTIONS:MBOOTSTRAP} && ${OPSYS} == FreeBSD
|
||||
# FreeBSD 8 linker doesn't understand --hash-style, so do not
|
||||
# allow the bootstrap to use it.
|
||||
${REINPLACE_CMD} -e 's|" ELF_HASH_STYLE "||' \
|
||||
${WRKSRC}/gcc/config/i386/freebsd64.h \
|
||||
${WRKSRC}/gcc/config/i386/freebsd.h
|
||||
.endif
|
||||
# Update LINK_SPEC to add gcc-aux lib runpath in every binary
|
||||
@${ECHO} "Configuring LINK_SPEC runpath"
|
||||
@${REINPLACE_CMD} -e 's;\@PREFIX\@;${PREFIX};' \
|
||||
${WRKSRC}/gcc/config/dragonfly.h \
|
||||
${WRKSRC}/gcc/config/i386/freebsd64.h \
|
||||
${WRKSRC}/gcc/config/i386/freebsd.h
|
||||
.if defined(MODERN_BINUTILS)
|
||||
# Use dwarf4-compatible addr2line (affects FreeBSD only)
|
||||
${REINPLACE_CMD} -e 's|/usr/bin/addr2line|${PREFIX}/bin/addr2line|g' \
|
||||
${WRKSRC}/gcc/ada/traceback_symbolic.c
|
||||
.endif
|
||||
|
||||
do-configure:
|
||||
${MKDIR} ${BUILDDIR}
|
||||
cd ${BUILDDIR} && ${SETENV} ${ADA_CONFIGURE_ENV} \
|
||||
${CFG_SCRIPT} ${ADA_CONFIG_ARGS}
|
||||
|
||||
do-build:
|
||||
cd ${BUILDDIR} && ${SETENV} ${ADA_MAKE_ENV} \
|
||||
${MAKE_CMD} -j${MAKE_JOBS_NUMBER} ${MAKE_ARGS} all
|
||||
|
||||
.if ${PORT_OPTIONS:MTESTSUITE} && !${PORT_OPTIONS:MBOOTSTRAP}
|
||||
test: build test-ada test-fortran test-objc test-cxx test-c
|
||||
|
||||
test-ada:
|
||||
cd ${BUILDDIR} && ${SETENV} ${ADA_MAKE_ENV} \
|
||||
${MAKE_CMD} -sk check-ada
|
||||
|
||||
test-cxx:
|
||||
# libstdc++ testsuite will break every time, for TRUE to continue
|
||||
cd ${BUILDDIR} && ${SETENV} ${ADA_MAKE_ENV} \
|
||||
${MAKE_CMD} -sk check-c++ || true
|
||||
|
||||
test-c:
|
||||
cd ${BUILDDIR} && ${SETENV} ${ADA_MAKE_ENV} \
|
||||
${MAKE_CMD} -sk check-c
|
||||
|
||||
test-fortran:
|
||||
. if ${PORT_OPTIONS:MFORT}
|
||||
cd ${BUILDDIR} && ${SETENV} ${ADA_MAKE_ENV} \
|
||||
${MAKE_CMD} -sk check-fortran
|
||||
. endif
|
||||
|
||||
test-objc:
|
||||
. if ${PORT_OPTIONS:MOBJC}
|
||||
cd ${BUILDDIR} && ${SETENV} ${ADA_MAKE_ENV} \
|
||||
${MAKE_CMD} -sk check-objc
|
||||
. endif
|
||||
.endif
|
||||
|
||||
do-install:
|
||||
cd ${BUILDDIR} && ${SETENV} ${ADA_MAKE_ENV} \
|
||||
${MAKE_CMD} install-strip ${MAKE_ARGS}
|
||||
${MV} ${STAGEDIR}${PKG_PREFIX}/share ${WRKDIR}/moved_share
|
||||
${MKDIR} ${STAGEDIR}${PREFIX}/share/dejagnu/baseboards \
|
||||
${STAGEDIR}${PREFIX}/share/dejagnu/config
|
||||
${INSTALL_DATA} ${FILESDIR}/android.exp \
|
||||
${STAGEDIR}${PREFIX}/share/dejagnu/config
|
||||
${INSTALL_DATA} ${FILESDIR}/gnatdroid.exp \
|
||||
${STAGEDIR}${PREFIX}/share/dejagnu/baseboards
|
||||
|
||||
post-stage:
|
||||
(cd ${STAGEDIR}${PKG_PREFIX}; ${FIND} * -type d -empty | \
|
||||
${SORT} -dr | ${XARGS} ${RMDIR})
|
||||
(cd ${STAGEDIR}${PREFIX}; ${FIND} ${PORTNAME} share \
|
||||
\( -type f -or -type l \) | ${SORT} | ${SED} \
|
||||
-e 's/\/man\/man[1578]\/.*[1578]$$/&.gz/' >> ${TMPPLIST})
|
||||
.if ${PORT_OPTIONS:MBOOTSTRAP}
|
||||
${MKDIR} ${NEWBSDIR}
|
||||
${CP} -a ${STAGEDIR}${PKG_PREFIX}/bin ${NEWBSDIR}/
|
||||
${CP} -a ${STAGEDIR}${PKG_PREFIX}/lib ${NEWBSDIR}/
|
||||
${CP} -a ${STAGEDIR}${PKG_PREFIX}/include ${NEWBSDIR}/
|
||||
${CP} -a ${STAGEDIR}${PKG_PREFIX}/libexec ${NEWBSDIR}/
|
||||
${RM} ${NEWBSDIR}/bin/${GARCH}*
|
||||
${RM} -rf ${NEWBSDIR}/lib/gcc/${BLD_TARGET}/${GCC_VERSION}/include-fixed
|
||||
(cd ${NEWBSDIR}/.. ; ${TAR} -cyf ${BSFILENAME} bootstrap)
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
@ -1,318 +0,0 @@
|
||||
# $FreeBSD$
|
||||
|
||||
.include "Makefile.version"
|
||||
|
||||
LIB_DEPENDS= libgmp.so:math/gmp
|
||||
LIB_DEPENDS+= libmpfr.so:math/mpfr
|
||||
LIB_DEPENDS+= libmpc.so:math/mpc
|
||||
|
||||
ONLY_FOR_ARCHS= i386 amd64
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
USES= cpe gmake iconv libtool perl5 tar:bzip2
|
||||
USE_PERL5= build
|
||||
ALL_TARGET= default
|
||||
CPE_PRODUCT= gcc
|
||||
CPE_VENDOR= gnu
|
||||
CPE_VERSION= ${GCC_VERSION}
|
||||
|
||||
CXXTS4DF= \
|
||||
17_intro/headers/c++1998/stdc++.cc \
|
||||
17_intro/headers/c++1998/stdc++_multiple_inclusion.cc \
|
||||
17_intro/headers/c++200x/stdc++.cc \
|
||||
17_intro/headers/c++200x/stdc++_multiple_inclusion.cc \
|
||||
18_support/pthread_guard.cc \
|
||||
20_util/shared_ptr/thread/default_weaktoshared.cc \
|
||||
21_strings/basic_string/pthread18185.cc \
|
||||
21_strings/basic_string/pthread4.cc \
|
||||
22_locale/locale/cons/12658_thread-1.cc \
|
||||
22_locale/locale/cons/12658_thread-2.cc \
|
||||
23_containers/list/pthread1.cc \
|
||||
23_containers/list/pthread5.cc \
|
||||
23_containers/map/pthread6.cc \
|
||||
23_containers/vector/debug/multithreaded_swap.cc \
|
||||
26_numerics/headers/cmath/c_math_dynamic.cc \
|
||||
27_io/basic_ofstream/pthread2.cc \
|
||||
27_io/basic_ostringstream/pthread3.cc \
|
||||
30_threads/async/42819.cc \
|
||||
30_threads/async/49668.cc \
|
||||
30_threads/async/any.cc \
|
||||
30_threads/async/async.cc \
|
||||
30_threads/async/launch.cc \
|
||||
30_threads/async/sync.cc \
|
||||
30_threads/call_once/39909.cc \
|
||||
30_threads/call_once/49668.cc \
|
||||
30_threads/call_once/call_once1.cc \
|
||||
30_threads/condition_variable/cons/1.cc \
|
||||
30_threads/condition_variable/members/1.cc \
|
||||
30_threads/condition_variable/members/2.cc \
|
||||
30_threads/condition_variable/members/53841.cc \
|
||||
30_threads/condition_variable/native_handle/typesizes.cc \
|
||||
30_threads/condition_variable_any/50862.cc \
|
||||
30_threads/condition_variable_any/cons/1.cc \
|
||||
30_threads/condition_variable_any/members/1.cc \
|
||||
30_threads/condition_variable_any/members/2.cc \
|
||||
30_threads/future/cons/move.cc \
|
||||
30_threads/future/members/45133.cc \
|
||||
30_threads/future/members/get.cc \
|
||||
30_threads/future/members/get2.cc \
|
||||
30_threads/future/members/share.cc \
|
||||
30_threads/future/members/valid.cc \
|
||||
30_threads/future/members/wait.cc \
|
||||
30_threads/future/members/wait_for.cc \
|
||||
30_threads/future/members/wait_until.cc \
|
||||
30_threads/lock/1.cc \
|
||||
30_threads/lock/2.cc \
|
||||
30_threads/lock/3.cc \
|
||||
30_threads/lock/4.cc \
|
||||
30_threads/mutex/cons/1.cc \
|
||||
30_threads/mutex/dest/destructor_locked.cc \
|
||||
30_threads/mutex/lock/1.cc \
|
||||
30_threads/mutex/native_handle/1.cc \
|
||||
30_threads/mutex/native_handle/typesizes.cc \
|
||||
30_threads/mutex/try_lock/1.cc \
|
||||
30_threads/mutex/try_lock/2.cc \
|
||||
30_threads/mutex/unlock/1.cc \
|
||||
30_threads/packaged_task/49668.cc \
|
||||
30_threads/packaged_task/cons/1.cc \
|
||||
30_threads/packaged_task/cons/2.cc \
|
||||
30_threads/packaged_task/cons/3.cc \
|
||||
30_threads/packaged_task/cons/alloc.cc \
|
||||
30_threads/packaged_task/cons/move.cc \
|
||||
30_threads/packaged_task/cons/move_assign.cc \
|
||||
30_threads/packaged_task/members/get_future.cc \
|
||||
30_threads/packaged_task/members/get_future2.cc \
|
||||
30_threads/packaged_task/members/invoke.cc \
|
||||
30_threads/packaged_task/members/invoke2.cc \
|
||||
30_threads/packaged_task/members/invoke3.cc \
|
||||
30_threads/packaged_task/members/invoke4.cc \
|
||||
30_threads/packaged_task/members/invoke5.cc \
|
||||
30_threads/packaged_task/members/reset.cc \
|
||||
30_threads/packaged_task/members/reset2.cc \
|
||||
30_threads/packaged_task/members/swap.cc \
|
||||
30_threads/packaged_task/members/valid.cc \
|
||||
30_threads/promise/cons/1.cc \
|
||||
30_threads/promise/cons/alloc.cc \
|
||||
30_threads/promise/cons/move.cc \
|
||||
30_threads/promise/cons/move_assign.cc \
|
||||
30_threads/promise/members/get_future.cc \
|
||||
30_threads/promise/members/get_future2.cc \
|
||||
30_threads/promise/members/set_exception.cc \
|
||||
30_threads/promise/members/set_exception2.cc \
|
||||
30_threads/promise/members/set_value.cc \
|
||||
30_threads/promise/members/set_value2.cc \
|
||||
30_threads/promise/members/set_value3.cc \
|
||||
30_threads/promise/members/swap.cc \
|
||||
30_threads/recursive_mutex/cons/1.cc \
|
||||
30_threads/recursive_mutex/dest/destructor_locked.cc \
|
||||
30_threads/recursive_mutex/lock/1.cc \
|
||||
30_threads/recursive_mutex/native_handle/1.cc \
|
||||
30_threads/recursive_mutex/native_handle/typesizes.cc \
|
||||
30_threads/recursive_mutex/try_lock/1.cc \
|
||||
30_threads/recursive_mutex/try_lock/2.cc \
|
||||
30_threads/recursive_mutex/unlock/1.cc \
|
||||
30_threads/recursive_timed_mutex/cons/1.cc \
|
||||
30_threads/recursive_timed_mutex/dest/destructor_locked.cc \
|
||||
30_threads/recursive_timed_mutex/lock/1.cc \
|
||||
30_threads/recursive_timed_mutex/lock/2.cc \
|
||||
30_threads/recursive_timed_mutex/native_handle/1.cc \
|
||||
30_threads/recursive_timed_mutex/native_handle/typesizes.cc \
|
||||
30_threads/recursive_timed_mutex/try_lock/1.cc \
|
||||
30_threads/recursive_timed_mutex/try_lock/2.cc \
|
||||
30_threads/recursive_timed_mutex/try_lock_for/1.cc \
|
||||
30_threads/recursive_timed_mutex/try_lock_for/2.cc \
|
||||
30_threads/recursive_timed_mutex/try_lock_for/3.cc \
|
||||
30_threads/recursive_timed_mutex/try_lock_until/1.cc \
|
||||
30_threads/recursive_timed_mutex/try_lock_until/2.cc \
|
||||
30_threads/recursive_timed_mutex/unlock/1.cc \
|
||||
30_threads/shared_future/cons/move.cc \
|
||||
30_threads/shared_future/members/45133.cc \
|
||||
30_threads/shared_future/members/get.cc \
|
||||
30_threads/shared_future/members/get2.cc \
|
||||
30_threads/shared_future/members/valid.cc \
|
||||
30_threads/shared_future/members/wait.cc \
|
||||
30_threads/shared_future/members/wait_for.cc \
|
||||
30_threads/shared_future/members/wait_until.cc \
|
||||
30_threads/this_thread/1.cc \
|
||||
30_threads/this_thread/2.cc \
|
||||
30_threads/this_thread/3.cc \
|
||||
30_threads/this_thread/4.cc \
|
||||
30_threads/thread/cons/1.cc \
|
||||
30_threads/thread/cons/2.cc \
|
||||
30_threads/thread/cons/3.cc \
|
||||
30_threads/thread/cons/4.cc \
|
||||
30_threads/thread/cons/49668.cc \
|
||||
30_threads/thread/cons/5.cc \
|
||||
30_threads/thread/cons/6.cc \
|
||||
30_threads/thread/cons/7.cc \
|
||||
30_threads/thread/cons/8.cc \
|
||||
30_threads/thread/cons/9.cc \
|
||||
30_threads/thread/cons/moveable.cc \
|
||||
30_threads/thread/members/1.cc \
|
||||
30_threads/thread/members/2.cc \
|
||||
30_threads/thread/members/3.cc \
|
||||
30_threads/thread/members/4.cc \
|
||||
30_threads/thread/members/5.cc \
|
||||
30_threads/thread/members/hardware_concurrency.cc \
|
||||
30_threads/thread/swap/1.cc \
|
||||
30_threads/timed_mutex/cons/1.cc \
|
||||
30_threads/timed_mutex/dest/destructor_locked.cc \
|
||||
30_threads/timed_mutex/lock/1.cc \
|
||||
30_threads/timed_mutex/native_handle/1.cc \
|
||||
30_threads/timed_mutex/native_handle/typesizes.cc \
|
||||
30_threads/timed_mutex/try_lock/1.cc \
|
||||
30_threads/timed_mutex/try_lock/2.cc \
|
||||
30_threads/timed_mutex/try_lock_for/1.cc \
|
||||
30_threads/timed_mutex/try_lock_for/2.cc \
|
||||
30_threads/timed_mutex/try_lock_for/3.cc \
|
||||
30_threads/timed_mutex/try_lock_until/1.cc \
|
||||
30_threads/timed_mutex/try_lock_until/2.cc \
|
||||
30_threads/timed_mutex/unlock/1.cc \
|
||||
30_threads/try_lock/1.cc \
|
||||
30_threads/try_lock/2.cc \
|
||||
30_threads/try_lock/3.cc \
|
||||
30_threads/try_lock/4.cc \
|
||||
30_threads/unique_lock/cons/1.cc \
|
||||
30_threads/unique_lock/cons/2.cc \
|
||||
30_threads/unique_lock/cons/3.cc \
|
||||
30_threads/unique_lock/cons/4.cc \
|
||||
30_threads/unique_lock/cons/5.cc \
|
||||
30_threads/unique_lock/cons/6.cc \
|
||||
30_threads/unique_lock/locking/1.cc \
|
||||
30_threads/unique_lock/locking/2.cc \
|
||||
30_threads/unique_lock/locking/3.cc \
|
||||
30_threads/unique_lock/locking/4.cc \
|
||||
30_threads/unique_lock/modifiers/1.cc \
|
||||
30_threads/unique_lock/modifiers/2.cc \
|
||||
ext/rope/pthread7-rope.cc \
|
||||
tr1/2_general_utilities/shared_ptr/thread/default_weaktoshared.cc \
|
||||
tr1/2_general_utilities/shared_ptr/thread/mutex_weaktoshared.cc
|
||||
|
||||
LOCALE22FIX= \
|
||||
codecvt/always_noconv/char/wrapped_locale.cc \
|
||||
codecvt/always_noconv/wchar_t/2.cc \
|
||||
codecvt/always_noconv/wchar_t/3.cc \
|
||||
codecvt/always_noconv/wchar_t/wrapped_locale.cc \
|
||||
codecvt/encoding/char/wrapped_locale.cc \
|
||||
codecvt/encoding/wchar_t/2.cc \
|
||||
codecvt/encoding/wchar_t/3.cc \
|
||||
codecvt/encoding/wchar_t/wrapped_locale.cc \
|
||||
codecvt/in/char/wrapped_locale.cc \
|
||||
codecvt/in/wchar_t/2.cc \
|
||||
codecvt/in/wchar_t/3.cc \
|
||||
codecvt/in/wchar_t/wrapped_locale.cc \
|
||||
codecvt/length/char/wrapped_locale.cc \
|
||||
codecvt/length/wchar_t/2.cc \
|
||||
codecvt/length/wchar_t/3.cc \
|
||||
codecvt/length/wchar_t/wrapped_locale.cc \
|
||||
codecvt/max_length/char/wrapped_locale.cc \
|
||||
codecvt/max_length/wchar_t/2.cc \
|
||||
codecvt/max_length/wchar_t/3.cc \
|
||||
codecvt/max_length/wchar_t/wrapped_locale.cc \
|
||||
codecvt/out/char/wrapped_locale.cc \
|
||||
codecvt/out/wchar_t/2.cc \
|
||||
codecvt/out/wchar_t/3.cc \
|
||||
codecvt/out/wchar_t/7.cc \
|
||||
codecvt/out/wchar_t/wrapped_locale.cc \
|
||||
codecvt/unshift/char/wrapped_locale.cc \
|
||||
codecvt/unshift/wchar_t/2.cc \
|
||||
codecvt/unshift/wchar_t/3.cc \
|
||||
codecvt/unshift/wchar_t/wrapped_locale.cc \
|
||||
collate/compare/char/wrapped_locale.cc \
|
||||
collate/compare/wchar_t/wrapped_locale.cc \
|
||||
collate/hash/char/wrapped_locale.cc \
|
||||
collate/hash/wchar_t/wrapped_locale.cc \
|
||||
collate/transform/char/wrapped_locale.cc \
|
||||
collate/transform/wchar_t/wrapped_locale.cc \
|
||||
ctype/cons/char/wrapped_locale.cc \
|
||||
ctype/is/char/wrapped_locale.cc \
|
||||
ctype/is/wchar_t/wrapped_locale.cc \
|
||||
ctype/narrow/char/wrapped_locale.cc \
|
||||
ctype/narrow/wchar_t/3.cc \
|
||||
ctype/narrow/wchar_t/wrapped_locale.cc \
|
||||
ctype/scan/char/wrapped_locale.cc \
|
||||
ctype/scan/wchar_t/wrapped_locale.cc \
|
||||
ctype/to/char/wrapped_locale.cc \
|
||||
ctype/to/wchar_t/wrapped_locale.cc \
|
||||
ctype/widen/char/wrapped_locale.cc \
|
||||
ctype/widen/wchar_t/2.cc \
|
||||
ctype/widen/wchar_t/3.cc \
|
||||
ctype/widen/wchar_t/wrapped_locale.cc \
|
||||
facet/2.cc \
|
||||
locale/cons/40184.cc \
|
||||
locale/cons/5.cc \
|
||||
locale/cons/unicode.cc \
|
||||
locale/global_locale_objects/2.cc \
|
||||
messages/members/char/wrapped_locale.cc \
|
||||
money_get/get/char/16.cc \
|
||||
money_get/get/char/18.cc \
|
||||
money_get/get/char/2.cc \
|
||||
money_get/get/char/4.cc \
|
||||
money_get/get/char/wrapped_env.cc \
|
||||
money_get/get/char/wrapped_locale.cc \
|
||||
money_get/get/wchar_t/16.cc \
|
||||
money_get/get/wchar_t/18.cc \
|
||||
money_get/get/wchar_t/2.cc \
|
||||
money_get/get/wchar_t/4.cc \
|
||||
money_get/get/wchar_t/wrapped_env.cc \
|
||||
money_get/get/wchar_t/wrapped_locale.cc \
|
||||
money_put/put/char/2.cc \
|
||||
money_put/put/char/wrapped_env.cc \
|
||||
money_put/put/char/wrapped_locale.cc \
|
||||
money_put/put/wchar_t/2.cc \
|
||||
money_put/put/wchar_t/wrapped_env.cc \
|
||||
money_put/put/wchar_t/wrapped_locale.cc \
|
||||
moneypunct/members/char/wrapped_locale.cc \
|
||||
moneypunct/members/wchar_t/wrapped_locale.cc \
|
||||
num_get/get/char/3.cc \
|
||||
num_get/get/char/wrapped_env.cc \
|
||||
num_get/get/char/wrapped_locale.cc \
|
||||
num_get/get/wchar_t/3.cc \
|
||||
num_get/get/wchar_t/wrapped_env.cc \
|
||||
num_get/get/wchar_t/wrapped_locale.cc \
|
||||
num_put/put/char/3.cc \
|
||||
num_put/put/char/wrapped_env.cc \
|
||||
num_put/put/char/wrapped_locale.cc \
|
||||
num_put/put/wchar_t/3.cc \
|
||||
num_put/put/wchar_t/wrapped_env.cc \
|
||||
num_put/put/wchar_t/wrapped_locale.cc \
|
||||
numpunct/members/char/wrapped_locale.cc \
|
||||
numpunct/members/wchar_t/wrapped_locale.cc \
|
||||
time_get/date_order/char/wrapped_locale.cc \
|
||||
time_get/date_order/wchar_t/wrapped_locale.cc \
|
||||
time_get/get_date/char/2.cc \
|
||||
time_get/get_date/char/wrapped_env.cc \
|
||||
time_get/get_date/char/wrapped_locale.cc \
|
||||
time_get/get_date/wchar_t/2.cc \
|
||||
time_get/get_date/wchar_t/wrapped_env.cc \
|
||||
time_get/get_date/wchar_t/wrapped_locale.cc \
|
||||
time_get/get_monthname/char/2.cc \
|
||||
time_get/get_monthname/char/wrapped_env.cc \
|
||||
time_get/get_monthname/char/wrapped_locale.cc \
|
||||
time_get/get_monthname/wchar_t/2.cc \
|
||||
time_get/get_monthname/wchar_t/wrapped_env.cc \
|
||||
time_get/get_monthname/wchar_t/wrapped_locale.cc \
|
||||
time_get/get_time/char/2.cc \
|
||||
time_get/get_time/char/wrapped_env.cc \
|
||||
time_get/get_time/char/wrapped_locale.cc \
|
||||
time_get/get_time/wchar_t/2.cc \
|
||||
time_get/get_time/wchar_t/wrapped_env.cc \
|
||||
time_get/get_time/wchar_t/wrapped_locale.cc \
|
||||
time_get/get_weekday/char/2.cc \
|
||||
time_get/get_weekday/char/38081-1.cc \
|
||||
time_get/get_weekday/char/38081-2.cc \
|
||||
time_get/get_weekday/char/wrapped_env.cc \
|
||||
time_get/get_weekday/char/wrapped_locale.cc \
|
||||
time_get/get_weekday/wchar_t/2.cc \
|
||||
time_get/get_weekday/wchar_t/wrapped_env.cc \
|
||||
time_get/get_weekday/wchar_t/wrapped_locale.cc \
|
||||
time_get/get_year/char/wrapped_locale.cc \
|
||||
time_get/get_year/wchar_t/wrapped_locale.cc \
|
||||
time_put/put/char/3.cc \
|
||||
time_put/put/char/7.cc \
|
||||
time_put/put/char/wrapped_env.cc \
|
||||
time_put/put/char/wrapped_locale.cc \
|
||||
time_put/put/wchar_t/3.cc \
|
||||
time_put/put/wchar_t/7.cc \
|
||||
time_put/put/wchar_t/wrapped_env.cc \
|
||||
time_put/put/wchar_t/wrapped_locale.cc
|
@ -1,18 +0,0 @@
|
||||
# $FreeBSD$
|
||||
|
||||
GCC_BRANCH= 4.9
|
||||
GCC_POINT= 3
|
||||
GCC_VERSION= ${GCC_BRANCH}.${GCC_POINT}
|
||||
SNAPSHOT= 20150626
|
||||
MAIN_PR= 0
|
||||
UTIL_PR= 0
|
||||
ARMV7_PR= 1
|
||||
X86_PR= 0
|
||||
|
||||
# Snapshot naming pattern
|
||||
#IDENTIFICATION= gcc-${GCC_BRANCH}-${SNAPSHOT}
|
||||
#MS_SUBDIR= snapshots/${GCC_BRANCH}-${SNAPSHOT}
|
||||
|
||||
# Release naming pattern
|
||||
IDENTIFICATION= gcc-${GCC_VERSION}
|
||||
MS_SUBDIR= releases/gcc-${GCC_VERSION}
|
@ -1,10 +0,0 @@
|
||||
SHA256 (gcc-4.9.3.tar.bz2) = 2332b2a5a321b57508b9031354a8503af6fdfb868b8c1748d33028d100a8b67e
|
||||
SIZE (gcc-4.9.3.tar.bz2) = 90006707
|
||||
SHA256 (ada-bootstrap.i386.dragonfly.36A.tar.bz2) = 6b1a6ff0fe0e3bf13c667db2fef177b811329cd998400a1303969a86911cb1c8
|
||||
SIZE (ada-bootstrap.i386.dragonfly.36A.tar.bz2) = 39357314
|
||||
SHA256 (ada-bootstrap.i386.freebsd.100B.tar.bz2) = 7231209f2600275f554f788ad1d036cf633c4339ebd25bd479a5bb1ddcddedf3
|
||||
SIZE (ada-bootstrap.i386.freebsd.100B.tar.bz2) = 41229192
|
||||
SHA256 (ada-bootstrap.x86_64.dragonfly.36A.tar.bz2) = ba9b193f1f5c780c0e94086a9af6f1c8e843b6782c133b9948789b95b2e605c4
|
||||
SIZE (ada-bootstrap.x86_64.dragonfly.36A.tar.bz2) = 40747242
|
||||
SHA256 (ada-bootstrap.x86_64.freebsd.100B.tar.bz2) = 1066d7c5e71d78b4416de3b73348227678ca07db52488409e270db7b00467f55
|
||||
SIZE (ada-bootstrap.x86_64.freebsd.100B.tar.bz2) = 42163803
|
@ -1,106 +0,0 @@
|
||||
# This file is part of DejaGnu.
|
||||
|
||||
if {![info exists board]} {
|
||||
error "must set $board before loading android.exp"
|
||||
}
|
||||
|
||||
# For rcp_download, rsh_exec.
|
||||
load_lib remote.exp
|
||||
|
||||
#
|
||||
# unix_load -- load the program and execute it
|
||||
#
|
||||
# See default.exp for explanation of arguments and results.
|
||||
#
|
||||
|
||||
|
||||
proc unix_load { dest prog args } {
|
||||
global ld_library_path
|
||||
set output ""
|
||||
set orig_ld_library_path ""
|
||||
|
||||
if { [llength $args] > 0 } {
|
||||
set parg [lindex $args 0]
|
||||
} else {
|
||||
set parg ""
|
||||
}
|
||||
|
||||
if { [llength $args] > 1 } {
|
||||
set inp [lindex $args 1]
|
||||
} else {
|
||||
set inp ""
|
||||
}
|
||||
|
||||
if {![file exists $prog]} then {
|
||||
# We call both here because this should never happen.
|
||||
perror "$prog does not exist in unix_load."
|
||||
verbose -log "$prog does not exist." 3
|
||||
return "untested"
|
||||
}
|
||||
verbose "loading to $dest" 2
|
||||
if {![is_remote $dest]} {
|
||||
if { "$inp" != "" } {
|
||||
set command "$prog $parg < $inp"
|
||||
} else {
|
||||
set command "$prog $parg"
|
||||
}
|
||||
|
||||
if {![info exists ld_library_path]} {
|
||||
set ld_library_path ""
|
||||
}
|
||||
|
||||
set orig_ld_library_path "[getenv LD_LIBRARY_PATH]"
|
||||
setenv LD_LIBRARY_PATH "$ld_library_path:$orig_ld_library_path"
|
||||
setenv SHLIB_PATH "$ld_library_path:$orig_ld_library_path"
|
||||
verbose -log "Setting LD_LIBRARY_PATH to $ld_library_path:$orig_ld_library_path" 2
|
||||
|
||||
set id [remote_spawn $dest "$command" "readonly"]
|
||||
if { $id < 0 } {
|
||||
set output "remote_spawn failed"
|
||||
set status -1
|
||||
} else {
|
||||
set status [remote_wait $dest 300]
|
||||
set output [lindex $status 1]
|
||||
set status [lindex $status 0]
|
||||
}
|
||||
# Unset them so we don't potentially get hosed when we try to run a
|
||||
# non-testcase executable. (Setting LD_LIBRARY_PATH is the wrong
|
||||
# fix in the first place; this just tries to minimize the resulting
|
||||
# crap.)
|
||||
if {[info exists ld_library_path]} {
|
||||
setenv LD_LIBRARY_PATH $orig_ld_library_path
|
||||
setenv SHLIB_PATH $orig_ld_library_path
|
||||
}
|
||||
} else {
|
||||
set remotefile "/data/local/testsuite/[file tail $prog].[pid]"
|
||||
set remotefile [remote_download $dest $prog $remotefile]
|
||||
if { $remotefile == "" } {
|
||||
verbose -log "Download of $prog to [board_info $dest name] failed." 3
|
||||
return [list "unresolved" ""]
|
||||
}
|
||||
set status [remote_exec $dest "$remotefile" $parg $inp]
|
||||
remote_file $dest delete $remotefile.o $remotefile
|
||||
if { [lindex $status 0] < 0 } {
|
||||
verbose -log "Couldn't execute $prog, [lindex $status 1]" 3
|
||||
return [list "unresolved" ""]
|
||||
}
|
||||
set output [lindex $status 1]
|
||||
set status [lindex $status 0]
|
||||
}
|
||||
|
||||
setenv LD_LIBRARY_PATH $orig_ld_library_path
|
||||
setenv SHLIB_PATH $orig_ld_library_path
|
||||
|
||||
verbose "Executed $prog, status $status" 2
|
||||
if {![string match "" $output]} {
|
||||
verbose -- "$output" 2
|
||||
}
|
||||
if { $status == 0 } {
|
||||
set result "pass"
|
||||
} else {
|
||||
set result "fail"
|
||||
}
|
||||
return [list $result $output]
|
||||
}
|
||||
|
||||
set_board_info protocol "unix"
|
File diff suppressed because it is too large
Load Diff
@ -1,584 +0,0 @@
|
||||
--- gcc/testsuite/ada/acats/run_acats.orig
|
||||
+++ gcc/testsuite/ada/acats/run_acats
|
||||
@@ -5,20 +5,6 @@
|
||||
exit 1
|
||||
fi
|
||||
|
||||
-# Provide which replacement.
|
||||
-#
|
||||
-# type -p is missing from Solaris 2 /bin/sh and /bin/ksh (ksh88), but both
|
||||
-# ksh93 and bash have it.
|
||||
-# type output format differs between ksh88 and ksh93, so avoid it if
|
||||
-# type -p is present. Unfortunately, HP-UX /bin/sh ignores -p with type.
|
||||
-# Fall back to whence which ksh88 and ksh93 provide, but bash does not.
|
||||
-
|
||||
-which () {
|
||||
- path=`type -p $* 2>/dev/null` && { echo $path | awk '{print $NF}'; return 0; }
|
||||
- path=`type $* 2>/dev/null` && { echo $path | awk '{print $NF}'; return 0; }
|
||||
- path=`whence $* 2>/dev/null` && { echo $path; return 0; }
|
||||
- return 1
|
||||
-}
|
||||
|
||||
# Set up environment to use the Ada compiler from the object tree
|
||||
|
||||
--- gcc/testsuite/ada/acats/run_all.sh.orig
|
||||
+++ gcc/testsuite/ada/acats/run_all.sh
|
||||
@@ -35,6 +35,14 @@
|
||||
echo "$@" >> $dir/acats.log
|
||||
}
|
||||
|
||||
+inform () {
|
||||
+ printf "%04d %7s" $1 $2
|
||||
+}
|
||||
+
|
||||
+disinform () {
|
||||
+ printf "\r"
|
||||
+}
|
||||
+
|
||||
dir=`${PWDCMD-pwd}`
|
||||
|
||||
if [ "$testdir" = "" ]; then
|
||||
@@ -197,6 +205,18 @@
|
||||
glob_countn=0
|
||||
glob_countok=0
|
||||
glob_countu=0
|
||||
+countdown=0
|
||||
+
|
||||
+for chapter in $chapters; do
|
||||
+ if [ -d $dir/tests/$chapter ]; then
|
||||
+ cd $dir/tests/$chapter
|
||||
+ ls *.a *.ada *.adt *.am *.dep 2> /dev/null | sed -e 's/\(.*\)\..*/\1/g' | \
|
||||
+ cut -c1-7 | sort | uniq | comm -23 - $dir/support/norun.lst \
|
||||
+ > $dir/tests/$chapter/${chapter}.lst
|
||||
+ countn=`wc -l < $dir/tests/$chapter/${chapter}.lst`
|
||||
+ countdown=`expr $countdown + $countn`
|
||||
+ fi
|
||||
+done
|
||||
|
||||
for chapter in $chapters; do
|
||||
display Running chapter $chapter ...
|
||||
@@ -207,10 +227,6 @@
|
||||
continue
|
||||
fi
|
||||
|
||||
- cd $dir/tests/$chapter
|
||||
- ls *.a *.ada *.adt *.am *.dep 2> /dev/null | sed -e 's/\(.*\)\..*/\1/g' | \
|
||||
- cut -c1-7 | sort | uniq | comm -23 - $dir/support/norun.lst \
|
||||
- > $dir/tests/$chapter/${chapter}.lst
|
||||
countn=`wc -l < $dir/tests/$chapter/${chapter}.lst`
|
||||
glob_countn=`expr $glob_countn + $countn`
|
||||
counti=0
|
||||
@@ -233,10 +249,13 @@
|
||||
if [ $? -eq 0 ]; then
|
||||
extraflags="$extraflags -fstack-check"
|
||||
fi
|
||||
+ inform $countdown $i
|
||||
+ countdown=`expr $countdown - 1`
|
||||
test=$dir/tests/$chapter/$i
|
||||
mkdir $test && cd $test >> $dir/acats.log 2>&1
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
+ disinform
|
||||
display "FAIL: $i"
|
||||
failed="${failed}${i} "
|
||||
clean_dir
|
||||
@@ -257,8 +276,10 @@
|
||||
cxb30*) EXTERNAL_OBJECTS="$dir/support/cxb30040.o $dir/support/cxb30060.o $dir/support/cxb30130.o $dir/support/cxb30131.o";;
|
||||
ca1020e) rm -f ca1020e_func1.adb ca1020e_func2.adb ca1020e_proc1.adb ca1020e_proc2.adb > /dev/null 2>&1;;
|
||||
ca14028) rm -f ca14028_func2.ads ca14028_func3.ads ca14028_proc1.ads ca14028_proc3.ads > /dev/null 2>&1;;
|
||||
+ cxh1001) extraflags="-a -f"; echo "pragma Normalize_Scalars;" > gnat.adc
|
||||
esac
|
||||
if [ "$main" = "" ]; then
|
||||
+ disinform
|
||||
display "FAIL: $i"
|
||||
failed="${failed}${i} "
|
||||
clean_dir
|
||||
@@ -267,6 +288,7 @@
|
||||
|
||||
target_gnatmake $extraflags -I$dir/support $main >> $dir/acats.log 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
+ disinform
|
||||
display "FAIL: $i"
|
||||
failed="${failed}${i} "
|
||||
clean_dir
|
||||
@@ -281,6 +303,7 @@
|
||||
target_run $dir/tests/$chapter/$i/$binmain > $dir/tests/$chapter/$i/${i}.log 2>&1
|
||||
cd $dir/tests/$chapter/$i
|
||||
cat ${i}.log >> $dir/acats.log
|
||||
+ disinform
|
||||
egrep -e '(==== |\+\+\+\+ |\!\!\!\! )' ${i}.log > /dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
grep 'tasking not implemented' ${i}.log > /dev/null 2>&1
|
||||
--- /dev/null
|
||||
+++ gcc/testsuite/ada/acats/run_remote.sh
|
||||
@@ -0,0 +1,412 @@
|
||||
+#!/bin/sh
|
||||
+# Run ACATS with the GNU Ada compiler
|
||||
+
|
||||
+# The following functions are to be customized if you run in cross
|
||||
+# environment or want to change compilation flags. Note that for
|
||||
+# tests requiring checks not turned on by default, this script
|
||||
+# automatically adds the needed flags to pass (ie: -gnato or -gnatE).
|
||||
+
|
||||
+# gccflags="-O3 -fomit-frame-pointer -funroll-all-loops -finline-functions"
|
||||
+# gnatflags="-gnatN"
|
||||
+
|
||||
+gccflags="-O2"
|
||||
+gnatflags="-gnatws"
|
||||
+tabtarget="/data/local/testsuite"
|
||||
+STRIP="@REMOTE_TARGET@-strip"
|
||||
+
|
||||
+target_run () {
|
||||
+ # Run on rooted tablet (port 22 vs port 2222)
|
||||
+ BN=`basename $*`
|
||||
+ $STRIP_FOR_TARGET $*
|
||||
+ /usr/bin/scp -qp $* root@tablet:$tabtarget/
|
||||
+ /usr/bin/ssh -q tablet $tabtarget/$BN
|
||||
+}
|
||||
+
|
||||
+target_cmd () {
|
||||
+ /usr/bin/ssh -q tablet "$1"
|
||||
+}
|
||||
+
|
||||
+# End of customization section.
|
||||
+
|
||||
+display_noeol () {
|
||||
+ printf "$@"
|
||||
+ printf "$@" >> $dir/acats.sum
|
||||
+ printf "$@" >> $dir/acats.log
|
||||
+}
|
||||
+
|
||||
+display () {
|
||||
+ echo "$@"
|
||||
+ echo "$@" >> $dir/acats.sum
|
||||
+ echo "$@" >> $dir/acats.log
|
||||
+}
|
||||
+
|
||||
+log () {
|
||||
+ echo "$@" >> $dir/acats.sum
|
||||
+ echo "$@" >> $dir/acats.log
|
||||
+}
|
||||
+
|
||||
+inform () {
|
||||
+ printf "%04d %7s" $1 $2
|
||||
+}
|
||||
+
|
||||
+disinform () {
|
||||
+ printf "\r"
|
||||
+}
|
||||
+
|
||||
+dir=`${PWDCMD-pwd}`
|
||||
+
|
||||
+if [ "$testdir" = "" ]; then
|
||||
+ echo You must use make check or make check-ada
|
||||
+ exit 1
|
||||
+fi
|
||||
+
|
||||
+if [ "$dir" = "$testdir" ]; then
|
||||
+ echo "error: srcdir must be different than objdir, exiting."
|
||||
+ exit 1
|
||||
+fi
|
||||
+
|
||||
+target_gnatmake () {
|
||||
+ echo gnatmake-cross --GCC=\"$GCC\" $gnatflags $gccflags $* -largs $EXTERNAL_OBJECTS --GCC=\"$GCC\" -fPIE -pie
|
||||
+ gnatmake-cross --GCC="$GCC" $gnatflags $gccflags $* -largs $EXTERNAL_OBJECTS --GCC="$GCC" -fPIE -pie
|
||||
+}
|
||||
+
|
||||
+target_gcc () {
|
||||
+ $GCC $gccflags $*
|
||||
+}
|
||||
+
|
||||
+clean_dir () {
|
||||
+ rm -f "$binmain" *.o *.ali > /dev/null 2>&1
|
||||
+}
|
||||
+
|
||||
+find_main () {
|
||||
+ ls ${i}?.adb > ${i}.lst 2> /dev/null
|
||||
+ ls ${i}*m.adb >> ${i}.lst 2> /dev/null
|
||||
+ ls ${i}.adb >> ${i}.lst 2> /dev/null
|
||||
+ main=`tail -1 ${i}.lst`
|
||||
+}
|
||||
+
|
||||
+split_testid () {
|
||||
+ local mysplit=`echo $1 | awk -F/ '{print "section=" $1 "; TN=" $2 "; prog=" $3 ";"}'`
|
||||
+ eval ${mysplit}
|
||||
+}
|
||||
+
|
||||
+EXTERNAL_OBJECTS=""
|
||||
+# Global variable to communicate external objects to link with.
|
||||
+
|
||||
+rm -f $dir/acats.sum $dir/acats.log $dir/transfer.lst
|
||||
+
|
||||
+display "Test Run By $USER on `date`"
|
||||
+
|
||||
+display " === acats configuration ==="
|
||||
+
|
||||
+target=`$GCC -dumpmachine`
|
||||
+
|
||||
+display target gcc is $GCC
|
||||
+display `$GCC -v 2>&1`
|
||||
+display host=`gcc -dumpmachine`
|
||||
+display target=$target
|
||||
+display `type gnatmake-cross`
|
||||
+gnatls-cross -v >> $dir/acats.log
|
||||
+display ""
|
||||
+
|
||||
+# Let's be tidy and clear off the remote device first
|
||||
+target_cmd "cd ${tabtarget}; rm logs/*; rmdir logs; rm *"
|
||||
+
|
||||
+display " === acats support ==="
|
||||
+display_noeol "Generating support files..."
|
||||
+
|
||||
+rm -rf $dir/support
|
||||
+mkdir -p $dir/support
|
||||
+cd $dir/support
|
||||
+
|
||||
+cp $testdir/support/*.ada $testdir/support/*.a $testdir/support/*.tst $dir/support
|
||||
+
|
||||
+# Find out the size in bit of an address on the target
|
||||
+target_gnatmake $testdir/support/impbit.adb >> $dir/acats.log 2>&1
|
||||
+target_run $dir/support/impbit > $dir/support/impbit.out 2>&1
|
||||
+target_bit=`cat $dir/support/impbit.out`
|
||||
+echo target_bit="$target_bit" >> $dir/acats.log
|
||||
+
|
||||
+# Find out a suitable asm statement
|
||||
+# Adapted from configure.ac gcc_cv_as_dwarf2_debug_line
|
||||
+case "$target" in
|
||||
+ ia64*-*-* | s390*-*-*)
|
||||
+ target_insn="nop 0"
|
||||
+ ;;
|
||||
+ mmix-*-*)
|
||||
+ target_insn="swym 0"
|
||||
+ ;;
|
||||
+ *)
|
||||
+ target_insn="nop"
|
||||
+ ;;
|
||||
+esac
|
||||
+echo target_insn="$target_insn" >> $dir/acats.log
|
||||
+
|
||||
+sed -e "s,ACATS4GNATDIR,$dir,g" \
|
||||
+ < $testdir/support/impdef.a > $dir/support/impdef.a
|
||||
+sed -e "s,ACATS4GNATDIR,$dir,g" \
|
||||
+ -e "s,ACATS4GNATBIT,$target_bit,g" \
|
||||
+ -e "s,ACATS4GNATINSN,$target_insn,g" \
|
||||
+ < $testdir/support/macro.dfs > $dir/support/MACRO.DFS
|
||||
+sed -e "s,ACATS4GNATDIR,$dir,g" \
|
||||
+ < $testdir/support/tsttests.dat > $dir/support/TSTTESTS.DAT
|
||||
+
|
||||
+cp $testdir/tests/cd/*.c $dir/support
|
||||
+cp $testdir/tests/cxb/*.c $dir/support
|
||||
+grep -v '^#' $testdir/norun.lst | sort > $dir/support/norun.lst
|
||||
+
|
||||
+rm -rf $dir/run
|
||||
+mv $dir/tests $dir/tests.$$ 2> /dev/null
|
||||
+rm -rf $dir/tests.$$ &
|
||||
+mkdir -p $dir/run
|
||||
+
|
||||
+cp -pr $testdir/tests $dir/
|
||||
+
|
||||
+for i in $dir/support/*.ada $dir/support/*.a; do
|
||||
+ host_gnatchop $i >> $dir/acats.log 2>&1
|
||||
+done
|
||||
+
|
||||
+# These tools are used to preprocess some ACATS sources
|
||||
+# they need to be compiled native on the host.
|
||||
+
|
||||
+host_gnatmake -q -gnatws macrosub.adb
|
||||
+if [ $? -ne 0 ]; then
|
||||
+ display "**** Failed to compile macrosub"
|
||||
+ exit 1
|
||||
+fi
|
||||
+./macrosub > macrosub.out 2>&1
|
||||
+
|
||||
+gcc -c cd300051.c
|
||||
+host_gnatmake -q -gnatws widechr.adb
|
||||
+if [ $? -ne 0 ]; then
|
||||
+ display "**** Failed to compile widechr"
|
||||
+ exit 1
|
||||
+fi
|
||||
+./widechr > widechr.out 2>&1
|
||||
+
|
||||
+rm -f $dir/support/macrosub
|
||||
+rm -f $dir/support/widechr
|
||||
+rm -f $dir/support/*.ali
|
||||
+rm -f $dir/support/*.o
|
||||
+
|
||||
+display " done."
|
||||
+
|
||||
+# From here, all compilations will be made by the target compiler
|
||||
+
|
||||
+display_noeol "Compiling support files..."
|
||||
+
|
||||
+target_gcc -c *.c
|
||||
+if [ $? -ne 0 ]; then
|
||||
+ display "**** Failed to compile C code"
|
||||
+ exit 1
|
||||
+fi
|
||||
+
|
||||
+host_gnatchop *.adt >> $dir/acats.log 2>&1
|
||||
+
|
||||
+target_gnatmake -c -gnato -gnatE *.ads >> $dir/acats.log 2>&1
|
||||
+target_gnatmake -c -gnato -gnatE *.adb >> $dir/acats.log 2>&1
|
||||
+
|
||||
+display " done."
|
||||
+display ""
|
||||
+display " === acats tests ==="
|
||||
+
|
||||
+if [ $# -eq 0 ]; then
|
||||
+ chapters=`cd $dir/tests; echo [a-z]*`
|
||||
+else
|
||||
+ chapters=$*
|
||||
+fi
|
||||
+
|
||||
+glob_countn=0
|
||||
+glob_countok=0
|
||||
+glob_countu=0
|
||||
+countdown=0
|
||||
+
|
||||
+for chapter in $chapters; do
|
||||
+ if [ -d $dir/tests/$chapter ]; then
|
||||
+ cd $dir/tests/$chapter
|
||||
+ ls *.a *.ada *.adt *.am *.dep 2> /dev/null | sed -e 's/\(.*\)\..*/\1/g' | \
|
||||
+ cut -c1-7 | sort | uniq | comm -23 - $dir/support/norun.lst \
|
||||
+ > $dir/tests/$chapter/${chapter}.lst
|
||||
+ countn=`wc -l < $dir/tests/$chapter/${chapter}.lst`
|
||||
+ countdown=`expr $countdown + $countn`
|
||||
+ fi
|
||||
+done
|
||||
+
|
||||
+cat > $dir/execute.sh << EOF
|
||||
+inform () {
|
||||
+ printf "left: %04d" \$1
|
||||
+}
|
||||
+disinform () {
|
||||
+ printf "\r"
|
||||
+}
|
||||
+cycle () {
|
||||
+ local countx=0
|
||||
+ local total=\$(echo \$testlist | awk '{print NF}')
|
||||
+ mkdir -p logs
|
||||
+ echo "Executing \$total tests on remote device"
|
||||
+ inform \$total
|
||||
+ for x in \$testlist; do
|
||||
+ timeout -t 30 ./\${x} > logs/\${x}.log 2>&1
|
||||
+ countx=\$(expr \$countx + 1)
|
||||
+ if [ \$countx -eq 25 ]; then
|
||||
+ total=\$(expr \$total - 25)
|
||||
+ countx=0
|
||||
+ disinform
|
||||
+ inform \$total
|
||||
+ fi
|
||||
+ done
|
||||
+ disinform
|
||||
+ tar -czf remote.logs.tar.gz logs
|
||||
+}
|
||||
+testlist=" \\
|
||||
+EOF
|
||||
+
|
||||
+display "All tests are being cross-compiled without execution first."
|
||||
+
|
||||
+for chapter in $chapters; do
|
||||
+ if [ ! -d $dir/tests/$chapter ]; then
|
||||
+ continue
|
||||
+ fi
|
||||
+
|
||||
+ countn=`wc -l < $dir/tests/$chapter/${chapter}.lst`
|
||||
+ glob_countn=`expr $glob_countn + $countn`
|
||||
+ counti=0
|
||||
+ for i in `cat $dir/tests/$chapter/${chapter}.lst`; do
|
||||
+ counti=`expr $counti + 1`
|
||||
+ extraflags="-gnat95"
|
||||
+ grep $i $testdir/overflow.lst > /dev/null 2>&1
|
||||
+ if [ $? -eq 0 ]; then
|
||||
+ extraflags="$extraflags -gnato"
|
||||
+ fi
|
||||
+ grep $i $testdir/elabd.lst > /dev/null 2>&1
|
||||
+ if [ $? -eq 0 ]; then
|
||||
+ extraflags="$extraflags -gnatE"
|
||||
+ fi
|
||||
+ grep $i $testdir/floatstore.lst > /dev/null 2>&1
|
||||
+ if [ $? -eq 0 ]; then
|
||||
+ extraflags="$extraflags -ffloat-store"
|
||||
+ fi
|
||||
+ grep $i $testdir/stackcheck.lst > /dev/null 2>&1
|
||||
+ if [ $? -eq 0 ]; then
|
||||
+ extraflags="$extraflags -fstack-check"
|
||||
+ fi
|
||||
+ inform $countdown $i
|
||||
+ countdown=`expr $countdown - 1`
|
||||
+ test=$dir/tests/$chapter/$i
|
||||
+ mkdir $test && cd $test >> $dir/acats.log 2>&1
|
||||
+
|
||||
+ if [ $? -ne 0 ]; then
|
||||
+ disinform
|
||||
+ display "FAIL: $i"
|
||||
+ failed="${failed}${i} "
|
||||
+ clean_dir
|
||||
+ continue
|
||||
+ fi
|
||||
+
|
||||
+ host_gnatchop -c -w `ls ${test}*.a ${test}*.ada ${test}*.adt ${test}*.am ${test}*.dep 2> /dev/null` >> $dir/acats.log 2>&1
|
||||
+ find_main
|
||||
+ if [ -z "$main" ]; then
|
||||
+ sync
|
||||
+ find_main
|
||||
+ fi
|
||||
+ binmain=`echo $main | sed -e 's/\(.*\)\..*/\1/g'`
|
||||
+ echo "BUILD $main" >> $dir/acats.log
|
||||
+ EXTERNAL_OBJECTS=""
|
||||
+ case $i in
|
||||
+ cxb30*) EXTERNAL_OBJECTS="$dir/support/cxb30040.o $dir/support/cxb30060.o $dir/support/cxb30130.o $dir/support/cxb30131.o";;
|
||||
+ ca1020e) rm -f ca1020e_func1.adb ca1020e_func2.adb ca1020e_proc1.adb ca1020e_proc2.adb > /dev/null 2>&1;;
|
||||
+ ca14028) rm -f ca14028_func2.ads ca14028_func3.ads ca14028_proc1.ads ca14028_proc3.ads > /dev/null 2>&1;;
|
||||
+ cxh1001) extraflags="-a -f"; echo "pragma Normalize_Scalars;" > gnat.adc
|
||||
+ esac
|
||||
+ if [ "$main" = "" ]; then
|
||||
+ disinform
|
||||
+ display "FAIL: $i"
|
||||
+ failed="${failed}${i} "
|
||||
+ clean_dir
|
||||
+ continue
|
||||
+ fi
|
||||
+
|
||||
+ target_gnatmake $extraflags -I$dir/support $main >> $dir/acats.log 2>&1
|
||||
+ if [ $? -ne 0 ]; then
|
||||
+ disinform
|
||||
+ display "FAIL: $i"
|
||||
+ failed="${failed}${i} "
|
||||
+ clean_dir
|
||||
+ continue
|
||||
+ fi
|
||||
+ echo $chapter/$i/$binmain >> $dir/transfer.lst
|
||||
+ echo "$binmain \\" >> $dir/execute.sh
|
||||
+ $STRIP $binmain
|
||||
+ disinform
|
||||
+ done
|
||||
+done
|
||||
+echo '"' >> $dir/execute.sh
|
||||
+echo "cycle" >> $dir/execute.sh
|
||||
+
|
||||
+sync
|
||||
+display "Transfer files to remote device: root@tablet:$tabtarget/"
|
||||
+cd $dir/tests
|
||||
+cat $dir/transfer.lst | xargs tar --strip-components=2 -czf - | \
|
||||
+ target_cmd "tar -C $tabtarget -xzf -"
|
||||
+cd $dir
|
||||
+tar -czf - execute.sh | target_cmd "tar -C $tabtarget -xzf -"
|
||||
+target_cmd "cd $tabtarget; sh execute.sh"
|
||||
+rm -rf $dir/logs $dir/remote.logs.tar.gz
|
||||
+/usr/bin/scp -q root@tablet:$tabtarget/remote.logs.tar.gz $dir/
|
||||
+tar -xzf $dir/remote.logs.tar.gz
|
||||
+
|
||||
+countdown=`wc -l < $dir/transfer.lst`
|
||||
+glob_countn=${countdown}
|
||||
+for i in `cat $dir/transfer.lst`; do
|
||||
+ split_testid $i
|
||||
+ if [ "$section" != "$savedsect" ]; then
|
||||
+ display Running chapter $section ...
|
||||
+ fi
|
||||
+ savedsect=$section
|
||||
+
|
||||
+ #inform $countdown $TN
|
||||
+ countdown=`expr $countdown - 1`
|
||||
+ proglog="$dir/logs/${prog}.log"
|
||||
+ echo "RUN $prog" >> $dir/acats.log
|
||||
+ if [ ! -f $proglog ]; then
|
||||
+ echo "LOG NOT FOUND!" >> $proglog
|
||||
+ fi
|
||||
+
|
||||
+ cat $proglog >> $dir/acats.log
|
||||
+
|
||||
+ egrep -e '(==== |\+\+\+\+ |\!\!\!\! )' $proglog > /dev/null 2>&1
|
||||
+ if [ $? -ne 0 ]; then
|
||||
+ grep 'tasking not implemented' $proglog > /dev/null 2>&1
|
||||
+
|
||||
+ if [ $? -ne 0 ]; then
|
||||
+ display "FAIL: ${TN}"
|
||||
+ failed="${failed}${TN} "
|
||||
+ else
|
||||
+ log "UNSUPPORTED: ${TN}"
|
||||
+ glob_countn=`expr $glob_countn - 1`
|
||||
+ glob_countu=`expr $glob_countu + 1`
|
||||
+ fi
|
||||
+ else
|
||||
+ log "PASS: ${TN}"
|
||||
+ glob_countok=`expr $glob_countok + 1`
|
||||
+ fi
|
||||
+ cd $dir/tests/$section/$TN
|
||||
+ clean_dir
|
||||
+ #disinform
|
||||
+done
|
||||
+
|
||||
+display " === acats Summary ==="
|
||||
+display "# of expected passes $glob_countok"
|
||||
+display "# of unexpected failures `expr $glob_countn - $glob_countok`"
|
||||
+
|
||||
+if [ $glob_countu -ne 0 ]; then
|
||||
+ display "# of unsupported tests $glob_countu"
|
||||
+fi
|
||||
+
|
||||
+if [ $glob_countok -ne $glob_countn ]; then
|
||||
+ display "*** FAILURES: $failed"
|
||||
+fi
|
||||
+
|
||||
+display "$0 completed at `date`"
|
||||
+
|
||||
+exit 0
|
||||
--- gcc/testsuite/gnat.dg/test_raise_from_pure.adb.orig
|
||||
+++ gcc/testsuite/gnat.dg/test_raise_from_pure.adb
|
||||
@@ -1,4 +1,4 @@
|
||||
--- { dg-do run }
|
||||
+-- { dg-do run { xfail *-*-openbsd* } }
|
||||
-- { dg-options "-O2" }
|
||||
|
||||
-- This is an optimization test and its failure is only a missed optimization.
|
||||
--- gcc/testsuite/gnat.dg/unchecked_convert5.adb.orig
|
||||
+++ gcc/testsuite/gnat.dg/unchecked_convert5.adb
|
||||
@@ -1,22 +0,0 @@
|
||||
--- { dg-do run { target hppa*-*-* sparc*-*-* powerpc*-*-* } }
|
||||
-
|
||||
-with Unchecked_Conversion;
|
||||
-
|
||||
-procedure Unchecked_Convert5 is
|
||||
-
|
||||
- subtype c_1 is string(1..1);
|
||||
-
|
||||
- function int2c1 is -- { dg-warning "different sizes" }
|
||||
- new unchecked_conversion (source => integer, target => c_1);
|
||||
-
|
||||
- c1 : c_1;
|
||||
-
|
||||
-begin
|
||||
-
|
||||
- c1 := int2c1(16#12#);
|
||||
-
|
||||
- if c1 (1) /= ASCII.Nul then
|
||||
- raise Program_Error;
|
||||
- end if;
|
||||
-
|
||||
-end;
|
||||
--- gcc/testsuite/gnat.dg/unchecked_convert6.adb.orig
|
||||
+++ gcc/testsuite/gnat.dg/unchecked_convert6.adb
|
||||
@@ -1,22 +0,0 @@
|
||||
--- { dg-do run { target hppa*-*-* sparc*-*-* powerpc*-*-* } }
|
||||
-
|
||||
-with Unchecked_Conversion;
|
||||
-
|
||||
-procedure Unchecked_Convert6 is
|
||||
-
|
||||
- subtype c_5 is string(1..5);
|
||||
-
|
||||
- function int2c5 is -- { dg-warning "different sizes" }
|
||||
- new unchecked_conversion (source => integer, target => c_5);
|
||||
-
|
||||
- c5 : c_5;
|
||||
-
|
||||
-begin
|
||||
-
|
||||
- c5 := int2c5(16#12#);
|
||||
-
|
||||
- if c5 (4) /= ASCII.DC2 then
|
||||
- raise Program_Error;
|
||||
- end if;
|
||||
-
|
||||
-end;
|
File diff suppressed because it is too large
Load Diff
@ -1,999 +0,0 @@
|
||||
--- /dev/null
|
||||
+++ libstdc++-v3/config/locale/dragonfly/c_locale.cc
|
||||
@@ -0,0 +1,300 @@
|
||||
+// Wrapper for underlying C-language localization -*- C++ -*-
|
||||
+
|
||||
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
|
||||
+// Free Software Foundation, Inc.
|
||||
+//
|
||||
+// This file is part of the GNU ISO C++ Library. This library is free
|
||||
+// software; you can redistribute it and/or modify it under the
|
||||
+// terms of the GNU General Public License as published by the
|
||||
+// Free Software Foundation; either version 3, or (at your option)
|
||||
+// any later version.
|
||||
+
|
||||
+// This library is distributed in the hope that it will be useful,
|
||||
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
+// GNU General Public License for more details.
|
||||
+
|
||||
+// Under Section 7 of GPL version 3, you are granted additional
|
||||
+// permissions described in the GCC Runtime Library Exception, version
|
||||
+// 3.1, as published by the Free Software Foundation.
|
||||
+
|
||||
+// You should have received a copy of the GNU General Public License and
|
||||
+// a copy of the GCC Runtime Library Exception along with this program;
|
||||
+// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
||||
+// <http://www.gnu.org/licenses/>.
|
||||
+
|
||||
+//
|
||||
+// ISO C++ 14882: 22.8 Standard locale categories.
|
||||
+//
|
||||
+
|
||||
+// Written by Benjamin Kosnik <bkoz@redhat.com>
|
||||
+
|
||||
+#include <cerrno> // For errno
|
||||
+#include <cmath> // For isinf, finite, finitef, fabs
|
||||
+#include <cstdlib> // For strof, strtold
|
||||
+#include <cstring>
|
||||
+#include <cstdio>
|
||||
+#include <locale>
|
||||
+#include <limits>
|
||||
+
|
||||
+#ifdef _GLIBCXX_HAVE_IEEEFP_H
|
||||
+#include <ieeefp.h>
|
||||
+#endif
|
||||
+
|
||||
+namespace std _GLIBCXX_VISIBILITY(default)
|
||||
+{
|
||||
+_GLIBCXX_BEGIN_NAMESPACE_VERSION
|
||||
+
|
||||
+ template<>
|
||||
+ void
|
||||
+ __convert_to_v(const char* __s, float& __v, ios_base::iostate& __err,
|
||||
+ const __c_locale&) throw()
|
||||
+ {
|
||||
+ // Assumes __s formatted for "C" locale.
|
||||
+ char* __old = setlocale(LC_ALL, 0);
|
||||
+ const size_t __len = strlen(__old) + 1;
|
||||
+ char* __sav = new char[__len];
|
||||
+ memcpy(__sav, __old, __len);
|
||||
+ setlocale(LC_ALL, "C");
|
||||
+ char* __sanity;
|
||||
+ bool __overflow = false;
|
||||
+
|
||||
+#if !__FLT_HAS_INFINITY__
|
||||
+ errno = 0;
|
||||
+#endif
|
||||
+
|
||||
+#ifdef _GLIBCXX_HAVE_STRTOF
|
||||
+ __v = strtof(__s, &__sanity);
|
||||
+#else
|
||||
+ double __d = strtod(__s, &__sanity);
|
||||
+ __v = static_cast<float>(__d);
|
||||
+#ifdef _GLIBCXX_HAVE_FINITEF
|
||||
+ if (!finitef (__v))
|
||||
+ __overflow = true;
|
||||
+#elif defined (_GLIBCXX_HAVE_FINITE)
|
||||
+ if (!finite (static_cast<double> (__v)))
|
||||
+ __overflow = true;
|
||||
+#elif defined (_GLIBCXX_HAVE_ISINF)
|
||||
+ if (isinf (static_cast<double> (__v)))
|
||||
+ __overflow = true;
|
||||
+#else
|
||||
+ if (fabs(__d) > numeric_limits<float>::max())
|
||||
+ __overflow = true;
|
||||
+#endif
|
||||
+#endif // _GLIBCXX_HAVE_STRTOF
|
||||
+
|
||||
+ // _GLIBCXX_RESOLVE_LIB_DEFECTS
|
||||
+ // 23. Num_get overflow result.
|
||||
+ if (__sanity == __s || *__sanity != '\0')
|
||||
+ {
|
||||
+ __v = 0.0f;
|
||||
+ __err = ios_base::failbit;
|
||||
+ }
|
||||
+ else if (__overflow
|
||||
+#if __FLT_HAS_INFINITY__
|
||||
+ || __v == numeric_limits<float>::infinity()
|
||||
+ || __v == -numeric_limits<float>::infinity()
|
||||
+#else
|
||||
+ || ((__v > 1.0f || __v < -1.0f) && errno == ERANGE)
|
||||
+#endif
|
||||
+ )
|
||||
+ {
|
||||
+ if (__v > 0.0f)
|
||||
+ __v = numeric_limits<float>::max();
|
||||
+ else
|
||||
+ __v = -numeric_limits<float>::max();
|
||||
+ __err = ios_base::failbit;
|
||||
+ }
|
||||
+
|
||||
+ setlocale(LC_ALL, __sav);
|
||||
+ delete [] __sav;
|
||||
+ }
|
||||
+
|
||||
+ template<>
|
||||
+ void
|
||||
+ __convert_to_v(const char* __s, double& __v, ios_base::iostate& __err,
|
||||
+ const __c_locale&) throw()
|
||||
+ {
|
||||
+ // Assumes __s formatted for "C" locale.
|
||||
+ char* __old = setlocale(LC_ALL, 0);
|
||||
+ const size_t __len = strlen(__old) + 1;
|
||||
+ char* __sav = new char[__len];
|
||||
+ memcpy(__sav, __old, __len);
|
||||
+ setlocale(LC_ALL, "C");
|
||||
+ char* __sanity;
|
||||
+
|
||||
+#if !__DBL_HAS_INFINITY__
|
||||
+ errno = 0;
|
||||
+#endif
|
||||
+
|
||||
+ __v = strtod(__s, &__sanity);
|
||||
+
|
||||
+ // _GLIBCXX_RESOLVE_LIB_DEFECTS
|
||||
+ // 23. Num_get overflow result.
|
||||
+ if (__sanity == __s || *__sanity != '\0')
|
||||
+ {
|
||||
+ __v = 0.0;
|
||||
+ __err = ios_base::failbit;
|
||||
+ }
|
||||
+ else if (
|
||||
+#if __DBL_HAS_INFINITY__
|
||||
+ __v == numeric_limits<double>::infinity()
|
||||
+ || __v == -numeric_limits<double>::infinity())
|
||||
+#else
|
||||
+ (__v > 1.0 || __v < -1.0) && errno == ERANGE)
|
||||
+#endif
|
||||
+ {
|
||||
+ if (__v > 0.0)
|
||||
+ __v = numeric_limits<double>::max();
|
||||
+ else
|
||||
+ __v = -numeric_limits<double>::max();
|
||||
+ __err = ios_base::failbit;
|
||||
+ }
|
||||
+
|
||||
+ setlocale(LC_ALL, __sav);
|
||||
+ delete [] __sav;
|
||||
+ }
|
||||
+
|
||||
+ template<>
|
||||
+ void
|
||||
+ __convert_to_v(const char* __s, long double& __v,
|
||||
+ ios_base::iostate& __err, const __c_locale&) throw()
|
||||
+ {
|
||||
+ // Assumes __s formatted for "C" locale.
|
||||
+ char* __old = setlocale(LC_ALL, 0);
|
||||
+ const size_t __len = strlen(__old) + 1;
|
||||
+ char* __sav = new char[__len];
|
||||
+ memcpy(__sav, __old, __len);
|
||||
+ setlocale(LC_ALL, "C");
|
||||
+
|
||||
+#if !__LDBL_HAS_INFINITY__
|
||||
+ errno = 0;
|
||||
+#endif
|
||||
+
|
||||
+#if defined(_GLIBCXX_HAVE_STRTOLD) && !defined(_GLIBCXX_HAVE_BROKEN_STRTOLD)
|
||||
+ char* __sanity;
|
||||
+ __v = strtold(__s, &__sanity);
|
||||
+
|
||||
+ // _GLIBCXX_RESOLVE_LIB_DEFECTS
|
||||
+ // 23. Num_get overflow result.
|
||||
+ if (__sanity == __s || *__sanity != '\0')
|
||||
+#else
|
||||
+ typedef char_traits<char>::int_type int_type;
|
||||
+ int __p = sscanf(__s, "%Lf", &__v);
|
||||
+
|
||||
+ if (!__p || static_cast<int_type>(__p) == char_traits<char>::eof())
|
||||
+#endif
|
||||
+ {
|
||||
+ __v = 0.0l;
|
||||
+ __err = ios_base::failbit;
|
||||
+ }
|
||||
+ else if (
|
||||
+#if __LDBL_HAS_INFINITY__
|
||||
+ __v == numeric_limits<long double>::infinity()
|
||||
+ || __v == -numeric_limits<long double>::infinity())
|
||||
+#else
|
||||
+ (__v > 1.0l || __v < -1.0l) && errno == ERANGE)
|
||||
+#endif
|
||||
+ {
|
||||
+ if (__v > 0.0l)
|
||||
+ __v = numeric_limits<long double>::max();
|
||||
+ else
|
||||
+ __v = -numeric_limits<long double>::max();
|
||||
+ __err = ios_base::failbit;
|
||||
+ }
|
||||
+
|
||||
+ setlocale(LC_ALL, __sav);
|
||||
+ delete [] __sav;
|
||||
+ }
|
||||
+
|
||||
+
|
||||
+ /* DragonFly's implementation of setlocale won't accept something like
|
||||
+ "de_DE". According to nls manpage, the expected format is:
|
||||
+ language[_territory][.codeset][@modifier], but it seems that both
|
||||
+ the _territory and .codeset components are required.
|
||||
+
|
||||
+ As an attempt to correct for this, we'll tack on ".UTF-8" if
|
||||
+ a period is not detected in the locale string.
|
||||
+
|
||||
+ There are no locales with modifiers on DragonFly so if found, they
|
||||
+ will just be stripped off silently. e.g "de_DE@euro" will be reduced
|
||||
+ to "de_DE". The UTF-8 default would be added after that.
|
||||
+ */
|
||||
+
|
||||
+ void
|
||||
+ locale::facet::_S_create_c_locale(__c_locale& __cloc, const char* __s,
|
||||
+ __c_locale)
|
||||
+ {
|
||||
+ const size_t size__s = (__s == NULL) ? 1 : strlen (__s);
|
||||
+ const char UTF8[] = ".UTF-8";
|
||||
+ char localspec[size__s + 6 + 1];
|
||||
+
|
||||
+ if (__s == NULL) {
|
||||
+ localspec[0] = NULL;
|
||||
+ } else {
|
||||
+ strcpy (localspec, __s);
|
||||
+ char * pch = strchr (localspec, '@');
|
||||
+ if (pch != NULL)
|
||||
+ *pch = 0;
|
||||
+
|
||||
+ if ( (strchr (__s, '.') == NULL)
|
||||
+ && (strcmp (__s, "C") != 0)
|
||||
+ && (strcmp (__s, "POSIX") != 0))
|
||||
+ strncat (localspec, UTF8, 6);
|
||||
+ }
|
||||
+
|
||||
+ const char * result = std::setlocale(LC_ALL, localspec);
|
||||
+
|
||||
+ if ((strcmp(result, "C") != 0) && (strcmp (result, localspec) != 0))
|
||||
+ __throw_runtime_error(__N("locale::facet::_S_create_c_locale "
|
||||
+ "name not valid"));
|
||||
+ __cloc = 0;
|
||||
+ }
|
||||
+
|
||||
+ void
|
||||
+ locale::facet::_S_destroy_c_locale(__c_locale& __cloc)
|
||||
+ { __cloc = 0; }
|
||||
+
|
||||
+ __c_locale
|
||||
+ locale::facet::_S_clone_c_locale(__c_locale&) throw()
|
||||
+ { return __c_locale(); }
|
||||
+
|
||||
+ __c_locale
|
||||
+ locale::facet::_S_lc_ctype_c_locale(__c_locale, const char*)
|
||||
+ { return __c_locale(); }
|
||||
+
|
||||
+_GLIBCXX_END_NAMESPACE_VERSION
|
||||
+} // namespace
|
||||
+
|
||||
+namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
|
||||
+{
|
||||
+_GLIBCXX_BEGIN_NAMESPACE_VERSION
|
||||
+
|
||||
+ const char* const category_names[6 + _GLIBCXX_NUM_CATEGORIES] =
|
||||
+ {
|
||||
+ "LC_CTYPE",
|
||||
+ "LC_NUMERIC",
|
||||
+ "LC_TIME",
|
||||
+ "LC_COLLATE",
|
||||
+ "LC_MONETARY",
|
||||
+ "LC_MESSAGES"
|
||||
+ };
|
||||
+
|
||||
+_GLIBCXX_END_NAMESPACE_VERSION
|
||||
+} // namespace
|
||||
+
|
||||
+namespace std _GLIBCXX_VISIBILITY(default)
|
||||
+{
|
||||
+_GLIBCXX_BEGIN_NAMESPACE_VERSION
|
||||
+
|
||||
+ const char* const* const locale::_S_categories = __gnu_cxx::category_names;
|
||||
+
|
||||
+_GLIBCXX_END_NAMESPACE_VERSION
|
||||
+} // namespace
|
||||
+
|
||||
+// XXX GLIBCXX_ABI Deprecated
|
||||
+#ifdef _GLIBCXX_LONG_DOUBLE_COMPAT
|
||||
+#define _GLIBCXX_LDBL_COMPAT(dbl, ldbl) \
|
||||
+ extern "C" void ldbl (void) __attribute__ ((alias (#dbl)))
|
||||
+_GLIBCXX_LDBL_COMPAT(_ZSt14__convert_to_vIdEvPKcRT_RSt12_Ios_IostateRKPi, _ZSt14__convert_to_vIeEvPKcRT_RSt12_Ios_IostateRKPi);
|
||||
+#endif // _GLIBCXX_LONG_DOUBLE_COMPAT
|
||||
--- /dev/null
|
||||
+++ libstdc++-v3/config/locale/dragonfly/ctype_members.cc
|
||||
@@ -0,0 +1,174 @@
|
||||
+// std::ctype implementation details, GNU version -*- C++ -*-
|
||||
+
|
||||
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
|
||||
+// Free Software Foundation, Inc.
|
||||
+//
|
||||
+// This file is part of the GNU ISO C++ Library. This library is free
|
||||
+// software; you can redistribute it and/or modify it under the
|
||||
+// terms of the GNU General Public License as published by the
|
||||
+// Free Software Foundation; either version 3, or (at your option)
|
||||
+// any later version.
|
||||
+
|
||||
+// This library is distributed in the hope that it will be useful,
|
||||
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
+// GNU General Public License for more details.
|
||||
+
|
||||
+// Under Section 7 of GPL version 3, you are granted additional
|
||||
+// permissions described in the GCC Runtime Library Exception, version
|
||||
+// 3.1, as published by the Free Software Foundation.
|
||||
+
|
||||
+// You should have received a copy of the GNU General Public License and
|
||||
+// a copy of the GCC Runtime Library Exception along with this program;
|
||||
+// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
||||
+// <http://www.gnu.org/licenses/>.
|
||||
+
|
||||
+//
|
||||
+// ISO C++ 14882: 22.2.1.1.2 ctype virtual functions.
|
||||
+//
|
||||
+
|
||||
+// Written by Benjamin Kosnik <bkoz@redhat.com>
|
||||
+
|
||||
+#include <locale>
|
||||
+#include <bits/c++locale_internal.h>
|
||||
+#include <cstdlib>
|
||||
+#include <cstring>
|
||||
+#include <cstdio>
|
||||
+
|
||||
+namespace std _GLIBCXX_VISIBILITY(default)
|
||||
+{
|
||||
+ // NB: The other ctype<char> specializations are in src/locale.cc and
|
||||
+ // various /config/os/* files.
|
||||
+
|
||||
+ ctype_byname<char>::ctype_byname(const char* __s, size_t __refs)
|
||||
+ : ctype<char>(0, false, __refs)
|
||||
+ {
|
||||
+ if (std::strcmp(__s, "C") != 0 && std::strcmp(__s, "POSIX") != 0)
|
||||
+ {
|
||||
+ this->_S_destroy_c_locale(this->_M_c_locale_ctype);
|
||||
+ this->_S_create_c_locale(this->_M_c_locale_ctype, __s);
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ ctype_byname<char>::~ctype_byname()
|
||||
+ { }
|
||||
+
|
||||
+#ifdef _GLIBCXX_USE_WCHAR_T
|
||||
+ ctype<wchar_t>::__wmask_type
|
||||
+ ctype<wchar_t>::_M_convert_to_wmask(
|
||||
+ const mask __attribute__((__unused__)) __m) const throw()
|
||||
+ {
|
||||
+ // DragonFly uses the same codes for 'char' as 'wchar_t', so this routine
|
||||
+ // never gets called.
|
||||
+ return __wmask_type();
|
||||
+ };
|
||||
+
|
||||
+ wchar_t
|
||||
+ ctype<wchar_t>::do_toupper(wchar_t __c) const
|
||||
+ { return towupper(__c); }
|
||||
+
|
||||
+ const wchar_t*
|
||||
+ ctype<wchar_t>::do_toupper(wchar_t* __lo, const wchar_t* __hi) const
|
||||
+ {
|
||||
+ while (__lo < __hi)
|
||||
+ {
|
||||
+ *__lo = towupper(*__lo);
|
||||
+ ++__lo;
|
||||
+ }
|
||||
+ return __hi;
|
||||
+ }
|
||||
+
|
||||
+ wchar_t
|
||||
+ ctype<wchar_t>::do_tolower(wchar_t __c) const
|
||||
+ { return towlower(__c); }
|
||||
+
|
||||
+ const wchar_t*
|
||||
+ ctype<wchar_t>::do_tolower(wchar_t* __lo, const wchar_t* __hi) const
|
||||
+ {
|
||||
+ while (__lo < __hi)
|
||||
+ {
|
||||
+ *__lo = towlower(*__lo);
|
||||
+ ++__lo;
|
||||
+ }
|
||||
+ return __hi;
|
||||
+ }
|
||||
+
|
||||
+ wchar_t
|
||||
+ ctype<wchar_t>::
|
||||
+ do_widen(char __c) const
|
||||
+ { return _M_widen[static_cast<unsigned char>(__c)]; }
|
||||
+
|
||||
+ const char*
|
||||
+ ctype<wchar_t>::
|
||||
+ do_widen(const char* __lo, const char* __hi, wchar_t* __dest) const
|
||||
+ {
|
||||
+ while (__lo < __hi)
|
||||
+ {
|
||||
+ *__dest = _M_widen[static_cast<unsigned char>(*__lo)];
|
||||
+ ++__lo;
|
||||
+ ++__dest;
|
||||
+ }
|
||||
+ return __hi;
|
||||
+ }
|
||||
+
|
||||
+ char
|
||||
+ ctype<wchar_t>::
|
||||
+ do_narrow(wchar_t __wc, char __dfault) const
|
||||
+ {
|
||||
+ if (__wc >= 0 && __wc < 128 && _M_narrow_ok)
|
||||
+ return _M_narrow[__wc];
|
||||
+ const int __c = wctob(__wc);
|
||||
+ return (__c == EOF ? __dfault : static_cast<char>(__c));
|
||||
+ }
|
||||
+
|
||||
+ const wchar_t*
|
||||
+ ctype<wchar_t>::
|
||||
+ do_narrow(const wchar_t* __lo, const wchar_t* __hi, char __dfault,
|
||||
+ char* __dest) const
|
||||
+ {
|
||||
+ if (_M_narrow_ok)
|
||||
+ while (__lo < __hi)
|
||||
+ {
|
||||
+ if (*__lo >= 0 && *__lo < 128)
|
||||
+ *__dest = _M_narrow[*__lo];
|
||||
+ else
|
||||
+ {
|
||||
+ const int __c = wctob(*__lo);
|
||||
+ *__dest = (__c == EOF ? __dfault : static_cast<char>(__c));
|
||||
+ }
|
||||
+ ++__lo;
|
||||
+ ++__dest;
|
||||
+ }
|
||||
+ else
|
||||
+ while (__lo < __hi)
|
||||
+ {
|
||||
+ const int __c = wctob(*__lo);
|
||||
+ *__dest = (__c == EOF ? __dfault : static_cast<char>(__c));
|
||||
+ ++__lo;
|
||||
+ ++__dest;
|
||||
+ }
|
||||
+ return __hi;
|
||||
+ }
|
||||
+
|
||||
+ void
|
||||
+ ctype<wchar_t>::_M_initialize_ctype() throw()
|
||||
+ {
|
||||
+ wint_t __i;
|
||||
+ for (__i = 0; __i < 128; ++__i)
|
||||
+ {
|
||||
+ const int __c = wctob(__i);
|
||||
+ if (__c == EOF)
|
||||
+ break;
|
||||
+ else
|
||||
+ _M_narrow[__i] = static_cast<char>(__c);
|
||||
+ }
|
||||
+ if (__i == 128)
|
||||
+ _M_narrow_ok = true;
|
||||
+ else
|
||||
+ _M_narrow_ok = false;
|
||||
+ for (size_t __i = 0;
|
||||
+ __i < sizeof(_M_widen) / sizeof(wint_t); ++__i)
|
||||
+ _M_widen[__i] = btowc(__i);
|
||||
+ }
|
||||
+#endif // _GLIBCXX_USE_WCHAR_T
|
||||
+}
|
||||
--- /dev/null
|
||||
+++ libstdc++-v3/config/os/bsd/dragonfly/ctype_base.h
|
||||
@@ -0,0 +1,75 @@
|
||||
+// Locale support -*- C++ -*-
|
||||
+
|
||||
+// Copyright (C) 2000, 2003, 2009, 2010 Free Software Foundation, Inc.
|
||||
+//
|
||||
+// This file is part of the GNU ISO C++ Library. This library is free
|
||||
+// software; you can redistribute it and/or modify it under the
|
||||
+// terms of the GNU General Public License as published by the
|
||||
+// Free Software Foundation; either version 3, or (at your option)
|
||||
+// any later version.
|
||||
+
|
||||
+// This library is distributed in the hope that it will be useful,
|
||||
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
+// GNU General Public License for more details.
|
||||
+
|
||||
+// Under Section 7 of GPL version 3, you are granted additional
|
||||
+// permissions described in the GCC Runtime Library Exception, version
|
||||
+// 3.1, as published by the Free Software Foundation.
|
||||
+
|
||||
+// You should have received a copy of the GNU General Public License and
|
||||
+// a copy of the GCC Runtime Library Exception along with this program;
|
||||
+// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
||||
+// <http://www.gnu.org/licenses/>.
|
||||
+
|
||||
+//
|
||||
+// ISO C++ 14882: 22.1 Locales
|
||||
+//
|
||||
+
|
||||
+// Information as gleaned from /usr/include/ctype.h on DragonFly.
|
||||
+
|
||||
+namespace std _GLIBCXX_VISIBILITY(default)
|
||||
+{
|
||||
+_GLIBCXX_BEGIN_NAMESPACE_VERSION
|
||||
+
|
||||
+ /// @brief Base class for ctype.
|
||||
+ struct ctype_base
|
||||
+ {
|
||||
+ // Non-standard typedefs.
|
||||
+ typedef const int* __to_type;
|
||||
+
|
||||
+ // NB: Offsets into ctype<char>::_M_table force a particular size
|
||||
+ // on the mask type. Because of this, we don't use an enum.
|
||||
+#ifdef _CTYPE_S
|
||||
+ // DragonFly 3.6 and later
|
||||
+ typedef unsigned long mask;
|
||||
+ static const mask upper = _CTYPE_U;
|
||||
+ static const mask lower = _CTYPE_L;
|
||||
+ static const mask alpha = _CTYPE_A;
|
||||
+ static const mask digit = _CTYPE_D;
|
||||
+ static const mask xdigit = _CTYPE_X;
|
||||
+ static const mask space = _CTYPE_S;
|
||||
+ static const mask print = _CTYPE_R;
|
||||
+ static const mask graph = _CTYPE_A | _CTYPE_D | _CTYPE_P;
|
||||
+ static const mask cntrl = _CTYPE_C;
|
||||
+ static const mask punct = _CTYPE_P;
|
||||
+ static const mask alnum = _CTYPE_A | _CTYPE_D;
|
||||
+#else
|
||||
+ // DragonFly 3.4 and older
|
||||
+ typedef unsigned short mask;
|
||||
+ static const mask upper = _CTYPEMASK_U;
|
||||
+ static const mask lower = _CTYPEMASK_L;
|
||||
+ static const mask alpha = _CTYPEMASK_A;
|
||||
+ static const mask digit = _CTYPEMASK_D;
|
||||
+ static const mask xdigit = _CTYPEMASK_X;
|
||||
+ static const mask space = _CTYPEMASK_S;
|
||||
+ static const mask print = _CTYPEMASK_R;
|
||||
+ static const mask graph = _CTYPEMASK_G;
|
||||
+ static const mask cntrl = _CTYPEMASK_C;
|
||||
+ static const mask punct = _CTYPEMASK_P;
|
||||
+ static const mask alnum = _CTYPEMASK_A | _CTYPEMASK_D;
|
||||
+#endif
|
||||
+ };
|
||||
+
|
||||
+_GLIBCXX_END_NAMESPACE_VERSION
|
||||
+} // namespace
|
||||
--- /dev/null
|
||||
+++ libstdc++-v3/config/os/bsd/dragonfly/ctype_configure_char.cc
|
||||
@@ -0,0 +1,99 @@
|
||||
+// Locale support -*- C++ -*-
|
||||
+
|
||||
+// Copyright (C) 2011 Free Software Foundation, Inc.
|
||||
+//
|
||||
+// This file is part of the GNU ISO C++ Library. This library is free
|
||||
+// software; you can redistribute it and/or modify it under the
|
||||
+// terms of the GNU General Public License as published by the
|
||||
+// Free Software Foundation; either version 3, or (at your option)
|
||||
+// any later version.
|
||||
+
|
||||
+// This library is distributed in the hope that it will be useful,
|
||||
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
+// GNU General Public License for more details.
|
||||
+
|
||||
+// Under Section 7 of GPL version 3, you are granted additional
|
||||
+// permissions described in the GCC Runtime Library Exception, version
|
||||
+// 3.1, as published by the Free Software Foundation.
|
||||
+
|
||||
+// You should have received a copy of the GNU General Public License and
|
||||
+// a copy of the GCC Runtime Library Exception along with this program;
|
||||
+// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
||||
+// <http://www.gnu.org/licenses/>.
|
||||
+
|
||||
+/** @file ctype_configure_char.cc */
|
||||
+
|
||||
+//
|
||||
+// ISO C++ 14882: 22.1 Locales
|
||||
+//
|
||||
+
|
||||
+#include <locale>
|
||||
+#include <cstdlib>
|
||||
+#include <cstring>
|
||||
+
|
||||
+namespace std _GLIBCXX_VISIBILITY(default)
|
||||
+{
|
||||
+_GLIBCXX_BEGIN_NAMESPACE_VERSION
|
||||
+
|
||||
+// Information as gleaned from /usr/include/ctype.h
|
||||
+
|
||||
+ const ctype_base::mask*
|
||||
+ ctype<char>::classic_table() throw()
|
||||
+ { return 0; }
|
||||
+
|
||||
+ ctype<char>::ctype(__c_locale, const mask* __table, bool __del,
|
||||
+ size_t __refs)
|
||||
+ : facet(__refs), _M_del(__table != 0 && __del),
|
||||
+ _M_toupper(NULL), _M_tolower(NULL),
|
||||
+ _M_table(__table ? __table : classic_table())
|
||||
+ {
|
||||
+ memset(_M_widen, 0, sizeof(_M_widen));
|
||||
+ _M_widen_ok = 0;
|
||||
+ memset(_M_narrow, 0, sizeof(_M_narrow));
|
||||
+ _M_narrow_ok = 0;
|
||||
+ }
|
||||
+
|
||||
+ ctype<char>::ctype(const mask* __table, bool __del, size_t __refs)
|
||||
+ : facet(__refs), _M_del(__table != 0 && __del),
|
||||
+ _M_toupper(NULL), _M_tolower(NULL),
|
||||
+ _M_table(__table ? __table : classic_table())
|
||||
+ {
|
||||
+ memset(_M_widen, 0, sizeof(_M_widen));
|
||||
+ _M_widen_ok = 0;
|
||||
+ memset(_M_narrow, 0, sizeof(_M_narrow));
|
||||
+ _M_narrow_ok = 0;
|
||||
+ }
|
||||
+
|
||||
+ char
|
||||
+ ctype<char>::do_toupper(char __c) const
|
||||
+ { return ::toupper((int) __c); }
|
||||
+
|
||||
+ const char*
|
||||
+ ctype<char>::do_toupper(char* __low, const char* __high) const
|
||||
+ {
|
||||
+ while (__low < __high)
|
||||
+ {
|
||||
+ *__low = ::toupper((int) *__low);
|
||||
+ ++__low;
|
||||
+ }
|
||||
+ return __high;
|
||||
+ }
|
||||
+
|
||||
+ char
|
||||
+ ctype<char>::do_tolower(char __c) const
|
||||
+ { return ::tolower((int) __c); }
|
||||
+
|
||||
+ const char*
|
||||
+ ctype<char>::do_tolower(char* __low, const char* __high) const
|
||||
+ {
|
||||
+ while (__low < __high)
|
||||
+ {
|
||||
+ *__low = ::tolower((int) *__low);
|
||||
+ ++__low;
|
||||
+ }
|
||||
+ return __high;
|
||||
+ }
|
||||
+
|
||||
+_GLIBCXX_END_NAMESPACE_VERSION
|
||||
+} // namespace
|
||||
--- /dev/null
|
||||
+++ libstdc++-v3/config/os/bsd/dragonfly/ctype_inline.h
|
||||
@@ -0,0 +1,187 @@
|
||||
+// Locale support -*- C++ -*-
|
||||
+
|
||||
+// Copyright (C) 2000, 2003, 2004, 2005, 2009, 2010
|
||||
+// Free Software Foundation, Inc.
|
||||
+//
|
||||
+// This file is part of the GNU ISO C++ Library. This library is free
|
||||
+// software; you can redistribute it and/or modify it under the
|
||||
+// terms of the GNU General Public License as published by the
|
||||
+// Free Software Foundation; either version 3, or (at your option)
|
||||
+// any later version.
|
||||
+
|
||||
+// This library is distributed in the hope that it will be useful,
|
||||
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
+// GNU General Public License for more details.
|
||||
+
|
||||
+// Under Section 7 of GPL version 3, you are granted additional
|
||||
+// permissions described in the GCC Runtime Library Exception, version
|
||||
+// 3.1, as published by the Free Software Foundation.
|
||||
+
|
||||
+// You should have received a copy of the GNU General Public License and
|
||||
+// a copy of the GCC Runtime Library Exception along with this program;
|
||||
+// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
||||
+// <http://www.gnu.org/licenses/>.
|
||||
+
|
||||
+/** @file bits/ctype_inline.h
|
||||
+ * This is an internal header file, included by other library headers.
|
||||
+ * Do not attempt to use it directly. @headername{locale}
|
||||
+ */
|
||||
+
|
||||
+//
|
||||
+// ISO C++ 14882: 22.1 Locales
|
||||
+//
|
||||
+
|
||||
+// ctype bits to be inlined go here. Non-inlinable (ie virtual do_*)
|
||||
+// functions go in ctype.cc
|
||||
+
|
||||
+namespace std _GLIBCXX_VISIBILITY(default)
|
||||
+{
|
||||
+_GLIBCXX_BEGIN_NAMESPACE_VERSION
|
||||
+
|
||||
+ bool
|
||||
+ ctype<char>::
|
||||
+ is(mask __m, char __c) const
|
||||
+ {
|
||||
+ if (_M_table)
|
||||
+ return _M_table[static_cast<unsigned char>(__c)] & __m;
|
||||
+ else
|
||||
+#ifdef _CTYPE_S
|
||||
+ return __istype(__c, __m);
|
||||
+#else
|
||||
+ return __libc_ctype_ [__c + 1] & __m;
|
||||
+#endif
|
||||
+ }
|
||||
+
|
||||
+ const char*
|
||||
+ ctype<char>::
|
||||
+ is(const char* __low, const char* __high, mask* __vec) const
|
||||
+ {
|
||||
+ if (_M_table)
|
||||
+ while (__low < __high)
|
||||
+ *__vec++ = _M_table[static_cast<unsigned char>(*__low++)];
|
||||
+ else
|
||||
+ for (;__low < __high; ++__vec, ++__low)
|
||||
+ {
|
||||
+#ifdef _CTYPE_S
|
||||
+ *__vec = __maskrune (*__low, upper | lower | alpha | digit | xdigit
|
||||
+ | space | print | graph | cntrl | punct | alnum);
|
||||
+#else
|
||||
+ mask __m = 0;
|
||||
+ if (this->is(upper, *__low)) __m |= upper;
|
||||
+ if (this->is(lower, *__low)) __m |= lower;
|
||||
+ if (this->is(alpha, *__low)) __m |= alpha;
|
||||
+ if (this->is(digit, *__low)) __m |= digit;
|
||||
+ if (this->is(xdigit, *__low)) __m |= xdigit;
|
||||
+ if (this->is(space, *__low)) __m |= space;
|
||||
+ if (this->is(print, *__low)) __m |= print;
|
||||
+ if (this->is(graph, *__low)) __m |= graph;
|
||||
+ if (this->is(cntrl, *__low)) __m |= cntrl;
|
||||
+ if (this->is(punct, *__low)) __m |= punct;
|
||||
+ // Do not include explicit line for alnum mask since it is a
|
||||
+ // pure composite of masks on DragonFly.
|
||||
+ *__vec = __m;
|
||||
+#endif
|
||||
+ }
|
||||
+ return __high;
|
||||
+ }
|
||||
+
|
||||
+ const char*
|
||||
+ ctype<char>::
|
||||
+ scan_is(mask __m, const char* __low, const char* __high) const
|
||||
+ {
|
||||
+ if (_M_table)
|
||||
+ while (__low < __high
|
||||
+ && !(_M_table[static_cast<unsigned char>(*__low)] & __m))
|
||||
+ ++__low;
|
||||
+ else
|
||||
+ while (__low < __high && !this->is(__m, *__low))
|
||||
+ ++__low;
|
||||
+ return __low;
|
||||
+ }
|
||||
+
|
||||
+ const char*
|
||||
+ ctype<char>::
|
||||
+ scan_not(mask __m, const char* __low, const char* __high) const
|
||||
+ {
|
||||
+ if (_M_table)
|
||||
+ while (__low < __high
|
||||
+ && (_M_table[static_cast<unsigned char>(*__low)] & __m) != 0)
|
||||
+ ++__low;
|
||||
+ else
|
||||
+ while (__low < __high && this->is(__m, *__low) != 0)
|
||||
+ ++__low;
|
||||
+ return __low;
|
||||
+ }
|
||||
+
|
||||
+#ifdef _GLIBCXX_USE_WCHAR_T
|
||||
+ inline bool
|
||||
+ ctype<wchar_t>::
|
||||
+ do_is(mask __m, wchar_t __c) const
|
||||
+ {
|
||||
+#ifdef _CTYPE_S
|
||||
+ return __istype (__c, __m);
|
||||
+#else
|
||||
+ return __libc_ctype_ [__c + 1] & __m;
|
||||
+#endif
|
||||
+ }
|
||||
+
|
||||
+ inline const wchar_t*
|
||||
+ ctype<wchar_t>::
|
||||
+ do_is(const wchar_t* __lo, const wchar_t* __hi, mask* __vec) const
|
||||
+ {
|
||||
+ for (; __lo < __hi; ++__vec, ++__lo)
|
||||
+#ifdef _CTYPE_S
|
||||
+ *__vec = __maskrune (*__lo, upper | lower | alpha | digit | xdigit
|
||||
+ | space | print | graph | cntrl | punct | alnum);
|
||||
+#else
|
||||
+ {
|
||||
+ mask __m = 0;
|
||||
+ if (isupper (*__lo)) __m |= _CTYPEMASK_U;
|
||||
+ if (islower (*__lo)) __m |= _CTYPEMASK_L;
|
||||
+ if (isdigit (*__lo)) __m |= _CTYPEMASK_D;
|
||||
+ if (isspace (*__lo)) __m |= _CTYPEMASK_S;
|
||||
+ if (ispunct (*__lo)) __m |= _CTYPEMASK_P;
|
||||
+ if (isblank (*__lo)) __m |= _CTYPEMASK_B;
|
||||
+ if (iscntrl (*__lo)) __m |= _CTYPEMASK_C;
|
||||
+ if (isalpha (*__lo)) __m |= _CTYPEMASK_A;
|
||||
+ if (isgraph (*__lo)) __m |= _CTYPEMASK_G;
|
||||
+ if (isprint (*__lo)) __m |= _CTYPEMASK_R;
|
||||
+ if (isxdigit(*__lo)) __m |= _CTYPEMASK_X;
|
||||
+ /* alnum already covered = alpha | digit */
|
||||
+
|
||||
+ *__vec = __m;
|
||||
+ }
|
||||
+#endif
|
||||
+ return __hi;
|
||||
+ }
|
||||
+
|
||||
+ inline const wchar_t*
|
||||
+ ctype<wchar_t>::
|
||||
+ do_scan_is(mask __m, const wchar_t* __lo, const wchar_t* __hi) const
|
||||
+ {
|
||||
+#ifdef _CTYPE_S
|
||||
+ while (__lo < __hi && ! __istype (*__lo, __m))
|
||||
+#else
|
||||
+ while (__lo < __hi && !(__libc_ctype_ [*__lo + 1] & __m))
|
||||
+#endif
|
||||
+ ++__lo;
|
||||
+ return __lo;
|
||||
+ }
|
||||
+
|
||||
+ inline const wchar_t*
|
||||
+ ctype<wchar_t>::
|
||||
+ do_scan_not(mask __m, const char_type* __lo, const char_type* __hi) const
|
||||
+ {
|
||||
+#ifdef _CTYPE_S
|
||||
+ while (__lo < __hi && __istype (*__lo, __m))
|
||||
+#else
|
||||
+ while (__lo < __hi && (__libc_ctype_ [*__lo + 1] & __m))
|
||||
+#endif
|
||||
+ ++__lo;
|
||||
+ return __lo;
|
||||
+ }
|
||||
+#endif
|
||||
+
|
||||
+_GLIBCXX_END_NAMESPACE_VERSION
|
||||
+} // namespace
|
||||
--- /dev/null
|
||||
+++ libstdc++-v3/config/os/bsd/dragonfly/os_defines.h
|
||||
@@ -0,0 +1,37 @@
|
||||
+// Specific definitions for BSD -*- C++ -*-
|
||||
+
|
||||
+// Copyright (C) 2014-2015 Free Software Foundation, Inc.
|
||||
+//
|
||||
+// This file is part of the GNU ISO C++ Library. This library is free
|
||||
+// software; you can redistribute it and/or modify it under the
|
||||
+// terms of the GNU General Public License as published by the
|
||||
+// Free Software Foundation; either version 3, or (at your option)
|
||||
+// any later version.
|
||||
+
|
||||
+// This library is distributed in the hope that it will be useful,
|
||||
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
+// GNU General Public License for more details.
|
||||
+
|
||||
+// Under Section 7 of GPL version 3, you are granted additional
|
||||
+// permissions described in the GCC Runtime Library Exception, version
|
||||
+// 3.1, as published by the Free Software Foundation.
|
||||
+
|
||||
+// You should have received a copy of the GNU General Public License and
|
||||
+// a copy of the GCC Runtime Library Exception along with this program;
|
||||
+// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
||||
+// <http://www.gnu.org/licenses/>.
|
||||
+
|
||||
+
|
||||
+#ifndef _GLIBCXX_OS_DEFINES
|
||||
+#define _GLIBCXX_OS_DEFINES 1
|
||||
+
|
||||
+// System-specific #define, typedefs, corrections, etc, go here. This
|
||||
+// file will come before all others.
|
||||
+
|
||||
+#define _GLIBCXX_USE_C99_CHECK 1
|
||||
+#define _GLIBCXX_USE_C99_DYNAMIC (!(__ISO_C_VISIBLE >= 1999))
|
||||
+#define _GLIBCXX_USE_C99_LONG_LONG_CHECK 1
|
||||
+#define _GLIBCXX_USE_C99_LONG_LONG_DYNAMIC (_GLIBCXX_USE_C99_DYNAMIC || !defined __LONG_LONG_SUPPORTED)
|
||||
+
|
||||
+#endif
|
||||
--- libstdc++-v3/acinclude.m4.orig
|
||||
+++ libstdc++-v3/acinclude.m4
|
||||
@@ -1989,6 +1989,9 @@
|
||||
darwin* | freebsd*)
|
||||
enable_clocale_flag=darwin
|
||||
;;
|
||||
+ dragonfly*)
|
||||
+ enable_clocale_flag=dragonfly
|
||||
+ ;;
|
||||
openbsd*)
|
||||
enable_clocale_flag=newlib
|
||||
;;
|
||||
@@ -2075,6 +2078,23 @@
|
||||
CMESSAGES_H=config/locale/generic/messages_members.h
|
||||
CMESSAGES_CC=config/locale/generic/messages_members.cc
|
||||
CMONEY_CC=config/locale/generic/monetary_members.cc
|
||||
+ CNUMERIC_CC=config/locale/generic/numeric_members.cc
|
||||
+ CTIME_H=config/locale/generic/time_members.h
|
||||
+ CTIME_CC=config/locale/generic/time_members.cc
|
||||
+ CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
|
||||
+ ;;
|
||||
+
|
||||
+ dragonfly)
|
||||
+ AC_MSG_RESULT(dragonfly)
|
||||
+
|
||||
+ CLOCALE_H=config/locale/generic/c_locale.h
|
||||
+ CLOCALE_CC=config/locale/dragonfly/c_locale.cc
|
||||
+ CCODECVT_CC=config/locale/generic/codecvt_members.cc
|
||||
+ CCOLLATE_CC=config/locale/generic/collate_members.cc
|
||||
+ CCTYPE_CC=config/locale/dragonfly/ctype_members.cc
|
||||
+ CMESSAGES_H=config/locale/generic/messages_members.h
|
||||
+ CMESSAGES_CC=config/locale/generic/messages_members.cc
|
||||
+ CMONEY_CC=config/locale/generic/monetary_members.cc
|
||||
CNUMERIC_CC=config/locale/generic/numeric_members.cc
|
||||
CTIME_H=config/locale/generic/time_members.h
|
||||
CTIME_CC=config/locale/generic/time_members.cc
|
||||
--- libstdc++-v3/configure.orig
|
||||
+++ libstdc++-v3/configure
|
||||
@@ -15849,6 +15849,9 @@
|
||||
darwin* | freebsd*)
|
||||
enable_clocale_flag=darwin
|
||||
;;
|
||||
+ dragonfly*)
|
||||
+ enable_clocale_flag=dragonfly
|
||||
+ ;;
|
||||
openbsd*)
|
||||
enable_clocale_flag=newlib
|
||||
;;
|
||||
@@ -15988,6 +15991,24 @@
|
||||
CMESSAGES_H=config/locale/generic/messages_members.h
|
||||
CMESSAGES_CC=config/locale/generic/messages_members.cc
|
||||
CMONEY_CC=config/locale/generic/monetary_members.cc
|
||||
+ CNUMERIC_CC=config/locale/generic/numeric_members.cc
|
||||
+ CTIME_H=config/locale/generic/time_members.h
|
||||
+ CTIME_CC=config/locale/generic/time_members.cc
|
||||
+ CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
|
||||
+ ;;
|
||||
+
|
||||
+ dragonfly)
|
||||
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: dragonfly" >&5
|
||||
+$as_echo "dragonfly" >&6; }
|
||||
+
|
||||
+ CLOCALE_H=config/locale/generic/c_locale.h
|
||||
+ CLOCALE_CC=config/locale/dragonfly/c_locale.cc
|
||||
+ CCODECVT_CC=config/locale/generic/codecvt_members.cc
|
||||
+ CCOLLATE_CC=config/locale/generic/collate_members.cc
|
||||
+ CCTYPE_CC=config/locale/dragonfly/ctype_members.cc
|
||||
+ CMESSAGES_H=config/locale/generic/messages_members.h
|
||||
+ CMESSAGES_CC=config/locale/generic/messages_members.cc
|
||||
+ CMONEY_CC=config/locale/generic/monetary_members.cc
|
||||
CNUMERIC_CC=config/locale/generic/numeric_members.cc
|
||||
CTIME_H=config/locale/generic/time_members.h
|
||||
CTIME_CC=config/locale/generic/time_members.cc
|
||||
--- libstdc++-v3/configure.host.orig
|
||||
+++ libstdc++-v3/configure.host
|
||||
@@ -232,6 +232,12 @@
|
||||
os_include_dir="os/generic"
|
||||
atomicity_dir="cpu/generic"
|
||||
;;
|
||||
+ dragonfly*)
|
||||
+ os_include_dir="os/bsd/dragonfly"
|
||||
+ ;;
|
||||
+ linux-android*)
|
||||
+ os_include_dir="os/bionic"
|
||||
+ ;;
|
||||
bsd*)
|
||||
# Plain BSD attempts to share FreeBSD files.
|
||||
os_include_dir="os/bsd/freebsd"
|
||||
--- libstdc++-v3/config/os/bionic/ctype_base.h.orig
|
||||
+++ libstdc++-v3/config/os/bionic/ctype_base.h
|
||||
@@ -40,6 +40,18 @@
|
||||
// Non-standard typedefs.
|
||||
typedef const int* __to_type;
|
||||
|
||||
+#ifdef _CTYPE_U
|
||||
+#define _U _CTYPE_U
|
||||
+#define _L _CTYPE_L
|
||||
+#define _D _CTYPE_D
|
||||
+#define _S _CTYPE_S
|
||||
+#define _P _CTYPE_P
|
||||
+#define _C _CTYPE_C
|
||||
+#define _X _CTYPE_X
|
||||
+#define _B _CTYPE_B
|
||||
+#define _N _CTYPE_D
|
||||
+#endif
|
||||
+
|
||||
// NB: Offsets into ctype<char>::_M_table force a particular size
|
||||
// on the mask type. Because of this, we don't use an enum.
|
||||
typedef char mask;
|
@ -1,50 +0,0 @@
|
||||
--- gcc/testsuite/c-c++-common/Wconversion-real.c.orig
|
||||
+++ gcc/testsuite/c-c++-common/Wconversion-real.c
|
||||
@@ -5,6 +5,12 @@
|
||||
/* { dg-options "-std=c99 -Wconversion" { target c } } */
|
||||
/* { dg-options "-Wconversion" { target c++ } } */
|
||||
/* { dg-require-effective-target large_double } */
|
||||
+/* Due to i386 rounding of long doubles on FreeBSD and DragonFly, the tests
|
||||
+ should be set to "xfail" for those platforms, but it's not possible to
|
||||
+ set both "target" and "xfail" together. An attempt to mark it
|
||||
+ UNSUPPORTED for large_long_double and not (i386 FreeBSD i386 DragonFly)
|
||||
+ failed. All the supported platforms of gcc-aux have large long double
|
||||
+ so we'll just assume it for these two tests and use xfail instead. */
|
||||
|
||||
float vfloat;
|
||||
double vdouble;
|
||||
@@ -24,8 +30,8 @@
|
||||
vfloat = 3.1; /* { dg-warning "conversion" } */
|
||||
ffloat (3.1L); /* { dg-warning "conversion" } */
|
||||
vfloat = 3.1L; /* { dg-warning "conversion" } */
|
||||
- fdouble (3.1L); /* { dg-warning "conversion" "" { target large_long_double } } */
|
||||
- vdouble = 3.1L; /* { dg-warning "conversion" "" { target large_long_double } } */
|
||||
+ fdouble (3.1L); /* { dg-warning "conversion" "" { xfail { i?86-*-freebsd* i?86-*-dragonfly* } } } */
|
||||
+ vdouble = 3.1L; /* { dg-warning "conversion" "" { xfail { i?86-*-freebsd* i?86-*-dragonfly* } } } */
|
||||
ffloat (vdouble); /* { dg-warning "conversion" } */
|
||||
vfloat = vdouble; /* { dg-warning "conversion" } */
|
||||
ffloat (vlongdouble); /* { dg-warning "conversion" } */
|
||||
--- libstdc++-v3/testsuite/lib/libstdc++.exp.orig
|
||||
+++ libstdc++-v3/testsuite/lib/libstdc++.exp
|
||||
@@ -881,17 +881,18 @@
|
||||
set f [open $src "w"]
|
||||
puts $f "#include <locale>"
|
||||
puts $f "#include <cstdio>"
|
||||
- puts $f "using namespace std;"
|
||||
+ puts $f "using namespace std;"
|
||||
puts $f "int main (int argc, char** argv)"
|
||||
puts $f "{"
|
||||
+ puts $f " const char* mlx = *(argv + 1);"
|
||||
puts $f " try"
|
||||
puts $f " {"
|
||||
- puts $f " locale(*(argv + 1));"
|
||||
+ puts $f " locale((char*)(mlx));"
|
||||
puts $f " return 0;"
|
||||
puts $f " }"
|
||||
puts $f " catch(...)"
|
||||
puts $f " {"
|
||||
- puts $f " printf(\"locale '%s' not supported\\n\", *(argv + 1));"
|
||||
+ puts $f " printf(\"locale '%s' not supported\\n\", mlx);"
|
||||
puts $f " return 1;"
|
||||
puts $f " }"
|
||||
puts $f "}"
|
@ -1,11 +0,0 @@
|
||||
--- gcc/testsuite/gfortran.dg/open_errors.f90.orig
|
||||
+++ gcc/testsuite/gfortran.dg/open_errors.f90
|
||||
@@ -22,7 +22,7 @@
|
||||
if (msg /= "File 'temptestfile' does not exist") call abort()
|
||||
|
||||
open(77,file="./", iomsg=msg, iostat=i)
|
||||
-if (msg /= "'./' is a directory" .and. msg /= "Invalid argument") call abort()
|
||||
+if (msg /= "'./' is a directory" .and. msg /= "Invalid argument" .and. msg /= "File './' already exists") call abort()
|
||||
|
||||
open(77,file=n,status="new")
|
||||
i = chmod(n, "-w")
|
@ -1,46 +0,0 @@
|
||||
--- gcc/testsuite/gcc.dg/format/ext-1.c.orig
|
||||
+++ gcc/testsuite/gcc.dg/format/ext-1.c
|
||||
@@ -8,7 +8,7 @@
|
||||
#include "format.h"
|
||||
|
||||
void
|
||||
-foo (quad_t q, u_quad_t uq, quad_t *qn, size_t z, size_t *zn, long long int ll,
|
||||
+foo (quad2_t q, u_quad2_t uq, quad2_t *qn, size_t z, size_t *zn, long long int ll,
|
||||
unsigned long long int ull, int i, unsigned int u, double d,
|
||||
char *s, void *p, wchar_t *ls, wint_t lc, int *n, long int l)
|
||||
{
|
||||
--- gcc/testsuite/gcc.dg/format/ext-2.c.orig
|
||||
+++ gcc/testsuite/gcc.dg/format/ext-2.c
|
||||
@@ -8,7 +8,7 @@
|
||||
#include "format.h"
|
||||
|
||||
void
|
||||
-foo (quad_t *qp, u_quad_t *uqp, quad_t *qn, long long int *llp,
|
||||
+foo (quad2_t *qp, u_quad2_t *uqp, quad2_t *qn, long long int *llp,
|
||||
unsigned long long int *ullp, float *fp, char *s, void **pp, wchar_t *ls,
|
||||
int *ip, unsigned int *up)
|
||||
{
|
||||
--- gcc/testsuite/gcc.dg/format/format.h.orig
|
||||
+++ gcc/testsuite/gcc.dg/format/format.h
|
||||
@@ -71,8 +71,8 @@
|
||||
#endif
|
||||
|
||||
/* %q formats want a "quad"; GCC considers this to be a long long. */
|
||||
-typedef llong quad_t;
|
||||
-typedef ullong u_quad_t;
|
||||
+typedef llong quad2_t;
|
||||
+typedef ullong u_quad2_t;
|
||||
|
||||
__extension__ typedef __INTMAX_TYPE__ intmax_t;
|
||||
__extension__ typedef __UINTMAX_TYPE__ uintmax_t;
|
||||
--- gcc/testsuite/gcc.dg/pch/pch.exp.orig
|
||||
+++ gcc/testsuite/gcc.dg/pch/pch.exp
|
||||
@@ -44,6 +44,8 @@
|
||||
set test "largefile.c"
|
||||
set testh "largefile.hs"
|
||||
set f [open $test w]
|
||||
+puts $f "/* { dg-do run { target *-*-solaris* } } */"
|
||||
+puts $f "/* { dg-error \"dummy\" \"fool dejagnu\" { target { ! *-*-solaris* } 20 } } */"
|
||||
puts $f "/* { dg-timeout-factor 4.0 } */"
|
||||
set v 0
|
||||
for { set v 0 } { $v < 10000 } { incr v } {
|
@ -1,14 +0,0 @@
|
||||
# gnatdroid testsuite running over ssh.
|
||||
|
||||
load_generic_config "android"
|
||||
|
||||
process_multilib_options ""
|
||||
|
||||
# The default compiler for this target.
|
||||
set_board_info compiler "[find_gcc]"
|
||||
|
||||
set_board_info rsh_prog /usr/bin/ssh
|
||||
set_board_info rcp_prog /usr/bin/scp
|
||||
set_board_info protocol standard
|
||||
set_board_info hostname tablet
|
||||
set_board_info username root
|
@ -1,14 +0,0 @@
|
||||
The AUX compiler supports several languages: Ada, C, C++, Fortran and
|
||||
Objective-C. Since Ada support must be built by an Ada-capable compiler,
|
||||
only platforms for which a bootstrap compiler is available can build it.
|
||||
|
||||
The AUX compiler is based on release versions of the Free Software
|
||||
Foundation's GNU Compiler Collection. It uses the GCC Runtime Library
|
||||
Exception, so the resulting binaries have no licensing requirements.
|
||||
Binaries produced by the AUX compiler should be legally handled the same
|
||||
as binaries produced by any FSF compiler.
|
||||
|
||||
This compiler implements the full Ada-83, Ada-95, Ada-2005 and Ada-2012
|
||||
standards.
|
||||
|
||||
WWW: http://www.dragonlace.net/
|
Loading…
Reference in New Issue
Block a user