head	1.1;
branch	1.1.1;
access;
symbols
	netbsd-11-0-RC4:1.1.1.1
	netbsd-11-0-RC3:1.1.1.1
	netbsd-11-0-RC2:1.1.1.1
	netbsd-11-0-RC1:1.1.1.1
	perseant-exfatfs-base-20250801:1.1.1.1
	netbsd-11:1.1.1.1.0.76
	netbsd-11-base:1.1.1.1
	netbsd-10-1-RELEASE:1.1.1.1
	perseant-exfatfs-base-20240630:1.1.1.1
	perseant-exfatfs:1.1.1.1.0.74
	perseant-exfatfs-base:1.1.1.1
	netbsd-8-3-RELEASE:1.1.1.1
	netbsd-9-4-RELEASE:1.1.1.1
	netbsd-10-0-RELEASE:1.1.1.1
	netbsd-10-0-RC6:1.1.1.1
	netbsd-10-0-RC5:1.1.1.1
	netbsd-10-0-RC4:1.1.1.1
	netbsd-10-0-RC3:1.1.1.1
	netbsd-10-0-RC2:1.1.1.1
	thorpej-ifq:1.1.1.1.0.72
	thorpej-ifq-base:1.1.1.1
	thorpej-altq-separation:1.1.1.1.0.70
	thorpej-altq-separation-base:1.1.1.1
	netbsd-10-0-RC1:1.1.1.1
	netbsd-10:1.1.1.1.0.68
	netbsd-10-base:1.1.1.1
	bouyer-sunxi-drm:1.1.1.1.0.66
	bouyer-sunxi-drm-base:1.1.1.1
	netbsd-9-3-RELEASE:1.1.1.1
	thorpej-i2c-spi-conf2:1.1.1.1.0.64
	thorpej-i2c-spi-conf2-base:1.1.1.1
	thorpej-futex2:1.1.1.1.0.62
	thorpej-futex2-base:1.1.1.1
	thorpej-cfargs2:1.1.1.1.0.60
	thorpej-cfargs2-base:1.1.1.1
	cjep_sun2x-base1:1.1.1.1
	cjep_sun2x:1.1.1.1.0.58
	cjep_sun2x-base:1.1.1.1
	cjep_staticlib_x-base1:1.1.1.1
	netbsd-9-2-RELEASE:1.1.1.1
	cjep_staticlib_x:1.1.1.1.0.56
	cjep_staticlib_x-base:1.1.1.1
	thorpej-i2c-spi-conf:1.1.1.1.0.54
	thorpej-i2c-spi-conf-base:1.1.1.1
	thorpej-cfargs:1.1.1.1.0.52
	thorpej-cfargs-base:1.1.1.1
	thorpej-futex:1.1.1.1.0.50
	thorpej-futex-base:1.1.1.1
	netbsd-9-1-RELEASE:1.1.1.1
	bouyer-xenpvh-base2:1.1.1.1
	phil-wifi-20200421:1.1.1.1
	bouyer-xenpvh-base1:1.1.1.1
	phil-wifi-20200411:1.1.1.1
	bouyer-xenpvh:1.1.1.1.0.48
	bouyer-xenpvh-base:1.1.1.1
	is-mlppp:1.1.1.1.0.46
	is-mlppp-base:1.1.1.1
	phil-wifi-20200406:1.1.1.1
	netbsd-8-2-RELEASE:1.1.1.1
	ad-namecache-base3:1.1.1.1
	netbsd-9-0-RELEASE:1.1.1.1
	netbsd-9-0-RC2:1.1.1.1
	ad-namecache-base2:1.1.1.1
	ad-namecache-base1:1.1.1.1
	ad-namecache:1.1.1.1.0.44
	ad-namecache-base:1.1.1.1
	netbsd-9-0-RC1:1.1.1.1
	phil-wifi-20191119:1.1.1.1
	netbsd-9:1.1.1.1.0.42
	netbsd-9-base:1.1.1.1
	phil-wifi-20190609:1.1.1.1
	netbsd-8-1-RELEASE:1.1.1.1
	netbsd-8-1-RC1:1.1.1.1
	isaki-audio2:1.1.1.1.0.40
	isaki-audio2-base:1.1.1.1
	pgoyette-compat-merge-20190127:1.1.1.1
	pgoyette-compat-20190127:1.1.1.1
	pgoyette-compat-20190118:1.1.1.1
	pgoyette-compat-1226:1.1.1.1
	pgoyette-compat-1126:1.1.1.1
	pgoyette-compat-1020:1.1.1.1
	pgoyette-compat-0930:1.1.1.1
	pgoyette-compat-0906:1.1.1.1
	netbsd-7-2-RELEASE:1.1.1.1
	pgoyette-compat-0728:1.1.1.1
	netbsd-8-0-RELEASE:1.1.1.1
	phil-wifi:1.1.1.1.0.38
	phil-wifi-base:1.1.1.1
	pgoyette-compat-0625:1.1.1.1
	netbsd-8-0-RC2:1.1.1.1
	pgoyette-compat-0521:1.1.1.1
	pgoyette-compat-0502:1.1.1.1
	pgoyette-compat-0422:1.1.1.1
	netbsd-8-0-RC1:1.1.1.1
	pgoyette-compat-0415:1.1.1.1
	pgoyette-compat-0407:1.1.1.1
	pgoyette-compat-0330:1.1.1.1
	pgoyette-compat-0322:1.1.1.1
	pgoyette-compat-0315:1.1.1.1
	netbsd-7-1-2-RELEASE:1.1.1.1
	pgoyette-compat:1.1.1.1.0.36
	pgoyette-compat-base:1.1.1.1
	netbsd-7-1-1-RELEASE:1.1.1.1
	tls-maxphys-base-20171202:1.1.1.1
	matt-nb8-mediatek:1.1.1.1.0.34
	matt-nb8-mediatek-base:1.1.1.1
	nick-nhusb-base-20170825:1.1.1.1
	perseant-stdc-iso10646:1.1.1.1.0.32
	perseant-stdc-iso10646-base:1.1.1.1
	netbsd-8:1.1.1.1.0.30
	netbsd-8-base:1.1.1.1
	prg-localcount2-base3:1.1.1.1
	prg-localcount2-base2:1.1.1.1
	prg-localcount2-base1:1.1.1.1
	prg-localcount2:1.1.1.1.0.28
	prg-localcount2-base:1.1.1.1
	pgoyette-localcount-20170426:1.1.1.1
	bouyer-socketcan-base1:1.1.1.1
	jdolecek-ncq:1.1.1.1.0.26
	jdolecek-ncq-base:1.1.1.1
	pgoyette-localcount-20170320:1.1.1.1
	netbsd-7-1:1.1.1.1.0.24
	netbsd-7-1-RELEASE:1.1.1.1
	netbsd-7-1-RC2:1.1.1.1
	nick-nhusb-base-20170204:1.1.1.1
	netbsd-7-nhusb-base-20170116:1.1.1.1
	bouyer-socketcan:1.1.1.1.0.22
	bouyer-socketcan-base:1.1.1.1
	pgoyette-localcount-20170107:1.1.1.1
	netbsd-7-1-RC1:1.1.1.1
	nick-nhusb-base-20161204:1.1.1.1
	pgoyette-localcount-20161104:1.1.1.1
	netbsd-7-0-2-RELEASE:1.1.1.1
	nick-nhusb-base-20161004:1.1.1.1
	localcount-20160914:1.1.1.1
	netbsd-7-nhusb:1.1.1.1.0.20
	netbsd-7-nhusb-base:1.1.1.1
	pgoyette-localcount-20160806:1.1.1.1
	pgoyette-localcount-20160726:1.1.1.1
	pgoyette-localcount:1.1.1.1.0.18
	pgoyette-localcount-base:1.1.1.1
	nick-nhusb-base-20160907:1.1.1.1
	nick-nhusb-base-20160529:1.1.1.1
	netbsd-7-0-1-RELEASE:1.1.1.1
	nick-nhusb-base-20160422:1.1.1.1
	nick-nhusb-base-20160319:1.1.1.1
	nick-nhusb-base-20151226:1.1.1.1
	netbsd-7-0:1.1.1.1.0.16
	netbsd-7-0-RELEASE:1.1.1.1
	nick-nhusb-base-20150921:1.1.1.1
	netbsd-7-0-RC3:1.1.1.1
	netbsd-7-0-RC2:1.1.1.1
	netbsd-7-0-RC1:1.1.1.1
	nick-nhusb-base-20150606:1.1.1.1
	nick-nhusb-base-20150406:1.1.1.1
	nick-nhusb:1.1.1.1.0.14
	nick-nhusb-base:1.1.1.1
	tls-maxphys-base:1.1.1.1
	tls-maxphys:1.1.1.1.0.12
	netbsd-7:1.1.1.1.0.10
	netbsd-7-base:1.1.1.1
	yamt-pagecache:1.1.1.1.0.8
	yamt-pagecache-base9:1.1.1.1
	tls-earlyentropy:1.1.1.1.0.6
	tls-earlyentropy-base:1.1.1.1
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.1.1.1
	riastradh-drm2-base3:1.1.1.1
	compiler-rt-200397:1.1.1.1
	compiler-rt-200007:1.1.1.1
	compiler-rt-199273:1.1.1.1
	rmind-smpnet-base:1.1.1.1
	rmind-smpnet:1.1.1.1.0.4
	rmind-smpnet-nbase:1.1.1.1
	riastradh-drm2-base2:1.1.1.1
	riastradh-drm2-base1:1.1.1.1
	riastradh-drm2:1.1.1.1.0.2
	riastradh-drm2-base:1.1.1.1
	compiler-rt-185671:1.1.1.1
	LLVM:1.1.1;
locks; strict;
comment	@# @;


1.1
date	2013.07.04.22.09.51;	author joerg;	state Exp;
branches
	1.1.1.1;
next	;
commitid	mDouscWH84IOAcWw;

1.1.1.1
date	2013.07.04.22.09.51;	author joerg;	state Exp;
branches
	1.1.1.1.4.1
	1.1.1.1.8.1
	1.1.1.1.12.1;
next	;
commitid	mDouscWH84IOAcWw;

1.1.1.1.4.1
date	2013.07.04.22.09.51;	author rmind;	state dead;
branches;
next	1.1.1.1.4.2;
commitid	cbp9Ov2uYijlqh3x;

1.1.1.1.4.2
date	2013.08.28.23.59.30;	author rmind;	state Exp;
branches;
next	;
commitid	cbp9Ov2uYijlqh3x;

1.1.1.1.8.1
date	2013.07.04.22.09.51;	author yamt;	state dead;
branches;
next	1.1.1.1.8.2;
commitid	VUUXuyNWnt3AKwBx;

1.1.1.1.8.2
date	2014.05.22.11.40.44;	author yamt;	state Exp;
branches;
next	;
commitid	VUUXuyNWnt3AKwBx;

1.1.1.1.12.1
date	2013.07.04.22.09.51;	author tls;	state dead;
branches;
next	1.1.1.1.12.2;
commitid	jTnpym9Qu0o4R1Nx;

1.1.1.1.12.2
date	2014.08.20.00.03.59;	author tls;	state Exp;
branches;
next	;
commitid	jTnpym9Qu0o4R1Nx;


desc
@@


1.1
log
@Initial revision
@
text
@#!/usr/bin/env bash

ARCHS='<host>'
REMOTE=0
if test `uname` = "Darwin"; then
  if test "$1" = "armv6"; then
    ARCHS="armv6"
    LIBS="-lSystem"
    REMOTE=1
    mkdir -p remote
  else
    ARCHS="i386 x86_64 ppc"
    LIBS="-lSystem"
  fi
else
  LIBS="-lc -lm"
fi

for ARCH in $ARCHS; do
  CFLAGS="-Os -nodefaultlibs -I../../lib"
  if test "$ARCH" != '<host>'; then
    CFLAGS="-arch $ARCH $CFLAGS"
  fi
  for FILE in $(ls *.c); do
    # Use -nodefaultlibs to avoid using libgcc.a
    # Use -lSystem to link with libSystem.dylb.
    # Note -lSystem is *after* libcompiler_rt.Optimized.a so that linker will 
    # prefer our implementation over the ones in libSystem.dylib
    EXTRA=
    if test $FILE = gcc_personality_test.c
    then
      # the gcc_personality_test.c requires a helper C++ program
      EXTRA="-fexceptions gcc_personality_test_helper.cxx -lstdc++ /usr/lib/libgcc_s.1.dylib"
      # the libgcc_s.1.dylib use at the end is a hack until libSystem contains _Unwind_Resume
    fi
    if test $FILE = trampoline_setup_test.c
    then
      # this test requires an extra compiler option
      EXTRA="-fnested-functions"
    fi
    if test "$REMOTE" = "1"
    then 
      if gcc $CFLAGS $FILE ../../darwin_fat/Release/libcompiler_rt.a $LIBS $EXTRA -o ./remote/$FILE.exe
      then
        echo "Built $FILE.exe for $ARCH"
      else
        echo "$FILE failed to compile"
      fi
    else
      if gcc $CFLAGS $FILE ../../darwin_fat/Release/libcompiler_rt.a $LIBS $EXTRA
      then
        echo "Testing $FILE for $ARCH"
        if ./a.out
        then
          rm ./a.out
        else
          echo "fail"
          exit 1
        fi
      else
        echo "$FILE failed to compile"
        exit 1
      fi
    fi
  done
done
echo "pass"
exit
@


1.1.1.1
log
@Initial import of a cut-down copy of compiler-rt revision r185671.
@
text
@@


1.1.1.1.12.1
log
@file test was added on branch tls-maxphys on 2014-08-20 00:03:59 +0000
@
text
@d1 68
@


1.1.1.1.12.2
log
@Rebase to HEAD as of a few days ago.
@
text
@a0 68
#!/usr/bin/env bash

ARCHS='<host>'
REMOTE=0
if test `uname` = "Darwin"; then
  if test "$1" = "armv6"; then
    ARCHS="armv6"
    LIBS="-lSystem"
    REMOTE=1
    mkdir -p remote
  else
    ARCHS="i386 x86_64 ppc"
    LIBS="-lSystem"
  fi
else
  LIBS="-lc -lm"
fi

for ARCH in $ARCHS; do
  CFLAGS="-Os -nodefaultlibs -I../../lib"
  if test "$ARCH" != '<host>'; then
    CFLAGS="-arch $ARCH $CFLAGS"
  fi
  for FILE in $(ls *.c); do
    # Use -nodefaultlibs to avoid using libgcc.a
    # Use -lSystem to link with libSystem.dylb.
    # Note -lSystem is *after* libcompiler_rt.Optimized.a so that linker will 
    # prefer our implementation over the ones in libSystem.dylib
    EXTRA=
    if test $FILE = gcc_personality_test.c
    then
      # the gcc_personality_test.c requires a helper C++ program
      EXTRA="-fexceptions gcc_personality_test_helper.cxx -lstdc++ /usr/lib/libgcc_s.1.dylib"
      # the libgcc_s.1.dylib use at the end is a hack until libSystem contains _Unwind_Resume
    fi
    if test $FILE = trampoline_setup_test.c
    then
      # this test requires an extra compiler option
      EXTRA="-fnested-functions"
    fi
    if test "$REMOTE" = "1"
    then 
      if gcc $CFLAGS $FILE ../../darwin_fat/Release/libcompiler_rt.a $LIBS $EXTRA -o ./remote/$FILE.exe
      then
        echo "Built $FILE.exe for $ARCH"
      else
        echo "$FILE failed to compile"
      fi
    else
      if gcc $CFLAGS $FILE ../../darwin_fat/Release/libcompiler_rt.a $LIBS $EXTRA
      then
        echo "Testing $FILE for $ARCH"
        if ./a.out
        then
          rm ./a.out
        else
          echo "fail"
          exit 1
        fi
      else
        echo "$FILE failed to compile"
        exit 1
      fi
    fi
  done
done
echo "pass"
exit
@


1.1.1.1.8.1
log
@file test was added on branch yamt-pagecache on 2014-05-22 11:40:44 +0000
@
text
@d1 68
@


1.1.1.1.8.2
log
@sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@a0 68
#!/usr/bin/env bash

ARCHS='<host>'
REMOTE=0
if test `uname` = "Darwin"; then
  if test "$1" = "armv6"; then
    ARCHS="armv6"
    LIBS="-lSystem"
    REMOTE=1
    mkdir -p remote
  else
    ARCHS="i386 x86_64 ppc"
    LIBS="-lSystem"
  fi
else
  LIBS="-lc -lm"
fi

for ARCH in $ARCHS; do
  CFLAGS="-Os -nodefaultlibs -I../../lib"
  if test "$ARCH" != '<host>'; then
    CFLAGS="-arch $ARCH $CFLAGS"
  fi
  for FILE in $(ls *.c); do
    # Use -nodefaultlibs to avoid using libgcc.a
    # Use -lSystem to link with libSystem.dylb.
    # Note -lSystem is *after* libcompiler_rt.Optimized.a so that linker will 
    # prefer our implementation over the ones in libSystem.dylib
    EXTRA=
    if test $FILE = gcc_personality_test.c
    then
      # the gcc_personality_test.c requires a helper C++ program
      EXTRA="-fexceptions gcc_personality_test_helper.cxx -lstdc++ /usr/lib/libgcc_s.1.dylib"
      # the libgcc_s.1.dylib use at the end is a hack until libSystem contains _Unwind_Resume
    fi
    if test $FILE = trampoline_setup_test.c
    then
      # this test requires an extra compiler option
      EXTRA="-fnested-functions"
    fi
    if test "$REMOTE" = "1"
    then 
      if gcc $CFLAGS $FILE ../../darwin_fat/Release/libcompiler_rt.a $LIBS $EXTRA -o ./remote/$FILE.exe
      then
        echo "Built $FILE.exe for $ARCH"
      else
        echo "$FILE failed to compile"
      fi
    else
      if gcc $CFLAGS $FILE ../../darwin_fat/Release/libcompiler_rt.a $LIBS $EXTRA
      then
        echo "Testing $FILE for $ARCH"
        if ./a.out
        then
          rm ./a.out
        else
          echo "fail"
          exit 1
        fi
      else
        echo "$FILE failed to compile"
        exit 1
      fi
    fi
  done
done
echo "pass"
exit
@


1.1.1.1.4.1
log
@file test was added on branch rmind-smpnet on 2013-08-28 23:59:30 +0000
@
text
@d1 68
@


1.1.1.1.4.2
log
@sync with head
@
text
@a0 68
#!/usr/bin/env bash

ARCHS='<host>'
REMOTE=0
if test `uname` = "Darwin"; then
  if test "$1" = "armv6"; then
    ARCHS="armv6"
    LIBS="-lSystem"
    REMOTE=1
    mkdir -p remote
  else
    ARCHS="i386 x86_64 ppc"
    LIBS="-lSystem"
  fi
else
  LIBS="-lc -lm"
fi

for ARCH in $ARCHS; do
  CFLAGS="-Os -nodefaultlibs -I../../lib"
  if test "$ARCH" != '<host>'; then
    CFLAGS="-arch $ARCH $CFLAGS"
  fi
  for FILE in $(ls *.c); do
    # Use -nodefaultlibs to avoid using libgcc.a
    # Use -lSystem to link with libSystem.dylb.
    # Note -lSystem is *after* libcompiler_rt.Optimized.a so that linker will 
    # prefer our implementation over the ones in libSystem.dylib
    EXTRA=
    if test $FILE = gcc_personality_test.c
    then
      # the gcc_personality_test.c requires a helper C++ program
      EXTRA="-fexceptions gcc_personality_test_helper.cxx -lstdc++ /usr/lib/libgcc_s.1.dylib"
      # the libgcc_s.1.dylib use at the end is a hack until libSystem contains _Unwind_Resume
    fi
    if test $FILE = trampoline_setup_test.c
    then
      # this test requires an extra compiler option
      EXTRA="-fnested-functions"
    fi
    if test "$REMOTE" = "1"
    then 
      if gcc $CFLAGS $FILE ../../darwin_fat/Release/libcompiler_rt.a $LIBS $EXTRA -o ./remote/$FILE.exe
      then
        echo "Built $FILE.exe for $ARCH"
      else
        echo "$FILE failed to compile"
      fi
    else
      if gcc $CFLAGS $FILE ../../darwin_fat/Release/libcompiler_rt.a $LIBS $EXTRA
      then
        echo "Testing $FILE for $ARCH"
        if ./a.out
        then
          rm ./a.out
        else
          echo "fail"
          exit 1
        fi
      else
        echo "$FILE failed to compile"
        exit 1
      fi
    fi
  done
done
echo "pass"
exit
@


