test: Fix Solaris /bin/sh issue
Don't pass preprocessor options to compiler during second compilation phase

Fix for bug 8118.

Some (ie clang) give warnings for unused arguments. Arguments that are only
used during the preprocessing phase will cause warnings during the
compilation phase.
Minor code cleanup
test: Add safeguard against running test.sh in directories with spacy names
test: Consistently use $CCACHE_COMPILE in base_tests
Store clang diagnostic file to cache

Added support for clang's --serialize-diagnostic parameter. The diagnostics
file is now stored in the cache. Xcode uses this option when building.
Minor cleanups
Add support for clang pth files

* ccache will now recognize pth (pretokenized header) files that are used by clang and xcode
* added/fixed pch tests for clang by separating tests for gcc and clang
Minor cleanups
Speed up copy4 and copy64 on little-endian systems

The copy64 function implements an endian-safe copy routine for an array of
16 32-bit integers, but this is sub-optimal on machines where the
byte-order is already correct. Likewise for copy4.

This patch replaces the implementation with a simple memcpy when
appropriate, and retains the old implementation otherwise.

Note that the compiler will always inline calls to memcpy for small
byte-counts, so this is a big win.
Improve x_unlink's temporary filename

The XXXXXX part was unused.
Don't leak log file descriptor to executed commands
Improve error reporting when failing to create stdout/stderr file in execute()
Handle disappearing temporary stdout file gracefully

If the temporary stdout file has disappeared, it's most likely because
another ccache process is doing cleanup on a too small cache.
Merge branch 'maint'

* maint:
  Handle disappearing temporary stdout file gracefully
  Improve error reporting when failing to create stdout/stderr file in execute()
  Don't leak log file descriptor to executed commands
  Improve x_unlink's temporary filename

Conflicts:
	ccache.c
	execute.c
	util.c
Prepare for v3.1.9
Merge branch 'maint'

* maint:
  Prepare for v3.1.9
Merge branch 'jrosdahl-master'

Conflicts:
	ccache.c
	compopt.c
	test.sh