From 7f23bcab2c89367b9c481c961f154872da2fa73e Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 29 Sep 1994 16:46:53 +0000 Subject: [PATCH] * VMS does not permits `.' in directory names. Renamed binutils.all to binutils-all. --- binutils/testsuite/.Sanitize | 2 +- binutils/testsuite/ChangeLog | 5 +++ binutils/testsuite/binutils-all/.Sanitize | 40 ++++++++++++++++++ binutils/testsuite/binutils-all/Makefile.in | 44 ++++++++++++++++++++ binutils/testsuite/binutils-all/bintest.c | 30 +++++++++++++ binutils/testsuite/binutils-all/configure.in | 30 +++++++++++++ 6 files changed, 150 insertions(+), 1 deletion(-) create mode 100644 binutils/testsuite/binutils-all/.Sanitize create mode 100644 binutils/testsuite/binutils-all/Makefile.in create mode 100644 binutils/testsuite/binutils-all/bintest.c create mode 100644 binutils/testsuite/binutils-all/configure.in diff --git a/binutils/testsuite/.Sanitize b/binutils/testsuite/.Sanitize index 29fd37085a2..1c2eb8c272d 100644 --- a/binutils/testsuite/.Sanitize +++ b/binutils/testsuite/.Sanitize @@ -25,7 +25,7 @@ Things-to-keep: ChangeLog Makefile.in -binutils.all +binutils-all config configure.in lib diff --git a/binutils/testsuite/ChangeLog b/binutils/testsuite/ChangeLog index eefbd000343..f587bd599ba 100644 --- a/binutils/testsuite/ChangeLog +++ b/binutils/testsuite/ChangeLog @@ -1,3 +1,8 @@ +Thu Sep 29 12:45:39 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) + + * VMS does not permits `.' in directory names. Renamed + binutils.all to binutils-all. + Fri Sep 23 16:01:14 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) * configure.in: Use mt-m68k for m68k*-*-aout* and m68k*-*-coff*, diff --git a/binutils/testsuite/binutils-all/.Sanitize b/binutils/testsuite/binutils-all/.Sanitize new file mode 100644 index 00000000000..3251e0b4d26 --- /dev/null +++ b/binutils/testsuite/binutils-all/.Sanitize @@ -0,0 +1,40 @@ +# .Sanitize for deja-gnu. + +# Each directory to survive it's way into a release will need a file +# like this one called "./.Sanitize". All keyword lines must exist, +# and must exist in the order specified by this file. Each directory +# in the tree will be processed, top down, in the following order. + +# Hash started lines like this one are comments and will be deleted +# before anything else is done. Blank lines will also be squashed +# out. + +# The lines between the "Do-first:" line and the "Things-to-keep:" +# line are executed as a /bin/sh shell script before anything else is +# done in this directory. + +Do-first: + +# All files listed between the "Things-to-keep:" line and the +# "Do-last:" line will be kept. All other files will be removed. +# Directories listed in this section will have their own Sanitize +# called. Directories not listed will be removed in their entirety +# with rm -rf. + +Things-to-keep: + +Makefile.in +bintest.c +configure.in +nm.exp +objdump.exp +size.exp + +Things-to-lose: + +# The lines between the "Do-last:" line and the end of the file +# are executed as a /bin/sh shell script after everything else is +# done. + +Do-last: + diff --git a/binutils/testsuite/binutils-all/Makefile.in b/binutils/testsuite/binutils-all/Makefile.in new file mode 100644 index 00000000000..0aa10682a4d --- /dev/null +++ b/binutils/testsuite/binutils-all/Makefile.in @@ -0,0 +1,44 @@ +CFLAGS_FOR_TARGET = + +CC_FOR_TARGET = ` \ + if [ -f $${rootme}/../../gcc/xgcc ] ; then \ + echo $${rootme}/../../gcc/xgcc -B$${rootme}/../../gcc/; \ + else \ + if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ + echo $(CC); \ + else \ + t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \ + fi; \ + fi` + +CXX = gcc +CXX_FOR_TARGET = ` \ + if [ -f $${rootme}/../../gcc/xgcc ] ; then \ + echo $${rootme}/../../gcc/xgcc -B$${rootme}/../../gcc/; \ + else \ + if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ + echo $(CXX); \ + else \ + t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \ + fi; \ + fi` + +#### host, target, and site specific Makefile frags come in here. + +srcdir = . + +all: bintest + +bintest: $(srcdir)/bintest.c + $(CC_FOR_TARGET) $(CFLAGS_FOR_TARGET) $(CFLAGS) -g -o bintest $(srcdir)/bintest.c $(LDFLAGS) + +clean: + -rm -f *.o bintest *.diff *~ *.bad core m68k.gld + +distclean: clean + -rm -f Makefile config.status nmtest.c + +Makefile : $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag) + $(SHELL) ./config.status + +force: diff --git a/binutils/testsuite/binutils-all/bintest.c b/binutils/testsuite/binutils-all/bintest.c new file mode 100644 index 00000000000..e63d589a1ef --- /dev/null +++ b/binutils/testsuite/binutils-all/bintest.c @@ -0,0 +1,30 @@ +/* + * nmtest.c -- this is the C code portion of tests for the GNU binutils + */ + +main(argc, argv) +int argc; +char *argv[]; +{ + char two(); + int one(); + + one(); + two(); +} + +int +one () +{ + int i, j; + j = i++; +} + +char +two () +{ + int i, j; + i = j++; + +} + diff --git a/binutils/testsuite/binutils-all/configure.in b/binutils/testsuite/binutils-all/configure.in new file mode 100644 index 00000000000..3f3da280c74 --- /dev/null +++ b/binutils/testsuite/binutils-all/configure.in @@ -0,0 +1,30 @@ +# necessary to tailor a template configure script into the configure +# script appropriate for this directory. For more information, check +# any existing configure script. + +srctrigger=nm.exp +srcname="DejaGnu" + +# per-host: + +# per-target: + +# per-target: + + # everything defaults to unix for a target +target_makefile_frag=../config/mt-unix + + # this section is for all targets +case "${target}" in + i[345]86-*-aout) target_makefile_frag=../config/mt-i386-aout ;; + *-*-lynx*) target_makefile_frag=../config/mt-lynx ;; + *-*-vxworks) target_makefile_frag=../config/mt-vxworks ;; + m68k-*-*) target_makefile_frag=../config/mt-m68k ;; + i960-*-nindy) target_makefile_frag=../config/mt-i960-nindy ;; + a29k-*-udi) target_makefile_frag=../config/mt-a29k-udi ;; + sparclite-*-*) target_makefile_frag=../config/mt-slite ;; + sparc-*-aout) target_makefile_frag=../config/mt-sparc-aout ;; + mips-*-ecoff) target_makefile_frag=../config/mt-mips-ecoff ;; +esac + +# post-target: -- 2.30.2