Added gdb-auxv test.

Pulling in an old commit 0479a7129 of Jeremy's.  There is a ticket to
remove the gdb-* tests from BEEBS, however, merging this commit allows
an old github branch to be deleted, all the gdb-* test can then be
assessed for value, and kept or removed in a later commit.

	* configure: Regenerated.
	* configure.ac: Added gdb-auxv.
	* src/gdb-auxv/Makefile.am: Created.
	* src/gdb-auxv/Makefile.in: Generated.
	* src/gdb-auxv/auxv.c: Created.
Merge tests trio-snprintf and trio-sscanf.

The tests trio-snprintf and trio-sscanf are almost identical except
for one function and the -D defines passed on the compile line.  This
patch merges the two test directories, and creates both test binaries
within the one directory.

ChangeLog:

	* configure.ac: Remove trio-sscanf and trio-snprintf, add trio.
	* configure: Regenerate.
	* src/trio/Makefile.am: New file.
	* src/trio/Makefile.in: Generated.
	* src/trio/trio_test.c: New file based on merging the old versions
	from src/trio-snprintf/ and src/trio-sscanf/.
	* src/trio/trio.c: New file is identical to old versions in
	src/trio-snprintf/ and src/trio-sscanf/.
	* src/trio/trio.h: Likewise.
	* src/trio/triodef.h: Likewise.
	* src/trio/triop.h: Likewise.
	* src/trio/triostr.c: Likewise.
	* src/trio/triostr.h: Likewise.
	* src/trio-snprintf/Makefile.am: Deleted.
	* src/trio-snprintf/Makefile.in: Deleted.
	* src/trio-snprintf/trio.c: Deleted.
	* src/trio-snprintf/trio.h: Deleted.
	* src/trio-snprintf/trio_test.c: Deleted.
	* src/trio-snprintf/triodef.h: Deleted.
	* src/trio-snprintf/triop.h: Deleted.
	* src/trio-snprintf/triostr.c: Deleted.
	* src/trio-snprintf/triostr.h: Deleted.
	* src/trio-sscanf/Makefile.am: Deleted.
	* src/trio-sscanf/Makefile.in: Deleted.
	* src/trio-sscanf/trio.c: Deleted.
	* src/trio-sscanf/trio.h: Deleted.
	* src/trio-sscanf/trio_test.c: Deleted.
	* src/trio-sscanf/triodef.h: Deleted.
	* src/trio-sscanf/triop.h: Deleted.
	* src/trio-sscanf/triostr.c: Deleted.
	* src/trio-sscanf/triostr.h: Deleted.
Add -Wno-portability to the automake options.

In src/common.mk.am the $(shell .... ) function is used.  This is a
GNU make extension, and as such automake warns about it.  Adding the
-Wno-portability option silences this warning.

ChangeLog:

	* configure.ac: Add -Wno-portability to the automake options.
Merge branch 'jpallister-beebsv2' into beebsv2

The flags defined in trio's enum overflow on 16 bit
architectures. At the point of overflow, convert to unsigned long
so we don't overflow

ChangeLog:
      * src/trio/trio.c: Added UL suffix to the multiplicand
Switch last few benchmarks over to using SCALE_FACTOR.

Most of the benchmarks define a constant SCALE_FACTOR that controls
how many times we should repeat the benchmark.  This patch brings the
last few benchmarks into line.

ChangeLog:

	* 2dfir/fir2dim.c (SCALE_FACTOR): Added.
	(main) Switch to use SCALE_FACTOR.
	* blowfish/bf.c: Likewise.
	* crc32/crc_32.c: Likewise.
	* cubic/basicmath_small.c: Likewise.
	* dijkstra/dijkstra_small.c: Likewise.
	* fdct/fdct.c: Likewise.
	* float_matmult/matmult.c: Likewise.
	* int_matmult/matmult.c: Likewise.
	* rijndael/aesxam.c: Likewise.
	* sha/sha_driver.c: Likewise.
Merge int_matmult and float_matmult into a single test directory.

These two tests are almost identical except one is on integers and
the other is on floats, and the input data is different.

Merge the tests into a single test directory, share a common source
file, and generate the two binaries there.

ChangeLog:

	* configure.ac: Remove int_matmult and float_matmult, add matmult.
	* configure: Regenerate.
	* src/float_matmult/Makefile.in: Removed.
	* src/float_matmult/matmult.c: Removed.
	* src/float_matmult/Makefile.am: Removed.
	* src/int_matmult/Makefile.am: Removed.
	* src/int_matmult/Makefile.in: Removed.
	* src/int_matmult/matmult.c: Removed.
	* src/matmult/Makefile.am: New file.
	* src/matmult/Makefile.in: New file.
	* src/matmult/matmult.c: New file.
Remove stdio.h include from test bubblesort.

There's no need to include stdio.h.

ChangeLog:

	* src/bubblesort/bubblesort.c: Remove stdio.h include.
There's no need for a +1 on SCALE_FACTOR of test cubic.

Having a +1 on the scale factor for test cubic doesn't make much
difference.  Having all the SCALE_FACTOR defines follow a known
pattern allows for easier scripted changes.

ChangeLog:

	* src/cubic/basicmath_small.c (SCALE_FACTOR): Remove the +1.
Whitespace fixes in SCALE_FACTOR definition in test fasta.

Just making things consistent and easier to read.

ChangeLog:

	* src/fasta/fasta.c (SCALE_FACTOR): Whitespace fixes.
Remove the bubblesort_quick test.

It was strange that we had two variations on bubble sort that only
varied on the number of times the benchmark loop was run.  The
user can always adjust the SCALE_FACTOR to run a test more or less if
they wish.

ChangeLog:

	* src/bubblesort/Makefile.am: Remove bubblesort_quick test.
	* src/bubblesort/Makefile.in: Regenerate.
	* src/bubblesort/bubblesort.c (BUBBLESORT_RSHIFT): Remove.
	(SCALE_FACTOR): No longer rely on BUBBLESORT_RSHIFT.
Remove test sglib-listinsertsort1.

The two tests sglib-listinsertsort and sglib-listinsertsort1 were
basically identical.  By the time macro expansion had occurred the
only difference would depend on whether the compiler chose to inline a
function or not, not sufficiently different to justify being a
separate test.

Merge these two tests into one, I've taken the code from
sglib-listinsertsort1, but renamed it to sglib-listinsertsort.

ChangeLog:

	* configure.ac: Remove sglib-listinsertsort1.
	* configure: Regenerate.
	* src/sglib-listinsertsort/Makefile.am: Remove general automake
	HOWTO comment.
	* src/sglib-listinsertsort/Makefile.in: Regenerate.
	* src/sglib-listinsertsort/listinsertsort.c: Copied from old
	listinsertsort1.
	* src/sglib-listinsertsort/sglib.h (SGLIB_LIST_LEN): Remove
	declaraion of _ce_.
	* src/sglib-listinsertsort1/Makefile.am: Removed.
	* src/sglib-listinsertsort1/Makefile.in: Removed.
	* src/sglib-listinsertsort1/listinsertsort1.c: Removed.
	* src/sglib-listinsertsort1/sglib.h: Removed.
Remove all the gdb-* tests.

These tests, taken from the gdb testsuite are not representetive of
any real work load, they are artificial tests designed to exercise
features of the debugger.

Tests removed gdb-advance, gdb-all-types, gdb-anon, gdb-arrayidx,
gdb-async, gdb-auxv, gdb-bitfields, gdb-constvars, gdb-store.

ChangeLog:

	* configure.ac: Remove all the gdb-* tests.
	* configure: Regenerate.
	* src/gdb-advance/Makefile.am: Deleted.
	* src/gdb-advance/Makefile.in: Deleted.
	* src/gdb-advance/advance.c: Deleted.
	* src/gdb-all-types/Makefile.am: Deleted.
	* src/gdb-all-types/Makefile.in: Deleted.
	* src/gdb-all-types/all-types.c: Deleted.
	* src/gdb-anon/Makefile.am: Deleted.
	* src/gdb-anon/Makefile.in: Deleted.
	* src/gdb-anon/anon.c: Deleted.
	* src/gdb-arrayidx/Makefile.am: Deleted.
	* src/gdb-arrayidx/Makefile.in: Deleted.
	* src/gdb-arrayidx/arrayidx.c: Deleted.
	* src/gdb-async/Makefile.am: Deleted.
	* src/gdb-async/Makefile.in: Deleted.
	* src/gdb-async/async.c: Deleted.
	* src/gdb-auxv/Makefile.am: Deleted.
	* src/gdb-auxv/Makefile.in: Deleted.
	* src/gdb-auxv/auxv.c: Deleted.
	* src/gdb-bitfields/Makefile.am: Deleted.
	* src/gdb-bitfields/Makefile.in: Deleted.
	* src/gdb-bitfields/bitfields.c: Deleted.
	* src/gdb-constvars/Makefile.am: Deleted.
	* src/gdb-constvars/Makefile.in: Deleted.
	* src/gdb-constvars/constvars.c: Deleted.
	* src/gdb-store/Makefile.am: Deleted.
	* src/gdb-store/Makefile.in: Deleted.
	* src/gdb-store/store.c: Deleted.
Convert crc32 test to a single source file, add GPL header.

Merge the contents of the LICENCE file and the header file into the
single source file for the crc32 test.
As the LICENCE is free with no restrictions, I've added a GPL header to
this version of the code.

ChangeLog:

	* src/crc32/LICENSE: Removed.
	* src/crc32/crc.h: Removed.
	* src/crc32/crc_32.c: Add licence information originally from
	LICENCE, add a GPL header.  Add in contents of header file.
	(updateCRC32): Remove, unused.
	* src/crc32/Makefile.am: Remove crc.h and LICENCE references.
	* src/crc32/Makefile.in: Regenerate.
Merge tests ctl-stack and ctl-vector into a single directory.

The tests ctl-stack and ctl-vector are basically the same except on
different container types.  Merge these two tests into a single source
directory.

ChangeLog:

	* configure.ac: Remove ctl-stack and ctl-vector, add ctl.
	* configure: Regenerate.
	* src/ctl-stack/Makefile.am: Remove.
	* src/ctl-stack/Makefile.in: Remove.
	* src/ctl-stack/ctl.h: Remove.
	* src/ctl-stack/stack.c: Remove.
	* src/ctl-vector/Makefile.am: Remove.
	* src/ctl-vector/Makefile.in: Remove.
	* src/ctl-vector/vector.c: Remove.
	* src/ctl-vector/ctl.h: Move to src/ctl/ctl.h.
	* src/ctl-stack/stack.h: Move to src/ctl/stack.h.
	* src/ctl-vector/vector.h: Move to src/ctl/vector.h.
	* src/ctl/Makefile.am: New file.
	* src/ctl/Makefile.in: Generated.
	* src/ctl/ctl.c New file, merging old stack.c and vector.c.
	* src/ctl/ctl.h: Moved from src/ctl-vector/ctl.h.
	* src/ctl/stack.h: Moved from src/ctl-vector/stack.h.
	* src/ctl/vector.h: Moved from src/ctl-vector/vector.h.
Add GPL header to the ctl test.

The in-file comment suggests it is acceptable to place these files under
a GPL licence.

ChangeLog:

	* src/ctl/ctl.h: Add GPL header.
	* src/ctl/stack.h: Add GPL header.
	* src/ctl/vector.h: Add GPL header.
Add GPL header to test bs.

This code is public domain, within BEEBS it's GPL.

ChangeLog:

	* src/bs/bs.c: Add GPL header.
Add GPL header to the dijkstra test.

The LICENCE file for test dijkstra declares the code GPL.  I've added a
GPL header to the source file, copied the LICENCE file into the source
file and deleted the extra LICENCE file.

ChangeLog:

	* src/dijkstra/LICENSE: Removed.
	* src/dijkstra/Makefile.am: Remove reference to LICENCE file.
	* src/dijkstra/dijkstra_small.c: Add GPL header, and copy in the
	original contents of the LICENCE file.
Add GPL header to the miniz test.

ChangeLog:

	* src/miniz/miniz.c: Add GPL header.
	* src/miniz/miniz.h: Add GPL header.
Add GPL header to two header files in nettle-des test.

ChangeLog:

	* src/nettle-des/keymap.h: Add GPL header.
	* src/nettle-des/rotors.h: Add GPL header.
Add GPL header to the picojpeg test source.

This source is public domain, the BEEBS version is GPL.

ChangeLog:

	* src/picojpeg/picojpeg.c: Add GPL header.
	* src/picojpeg/picojpeg.h: Add GPL header.