]> git.ipfire.org Git - thirdparty/ccache.git/log
thirdparty/ccache.git
12 years agoRemove superfluous "path" when printing primary/secondary config paths
Joel Rosdahl [Wed, 31 Oct 2012 19:18:08 +0000 (20:18 +0100)] 
Remove superfluous "path" when printing primary/secondary config paths

12 years agoDisable ccache for too hard compiler option -Wp,-P
Joel Rosdahl [Sun, 28 Oct 2012 16:27:23 +0000 (17:27 +0100)] 
Disable ccache for too hard compiler option -Wp,-P

12 years agoFix test suite failures when CC is a ccache-wrapped compiler
Joel Rosdahl [Sun, 14 Oct 2012 08:12:27 +0000 (10:12 +0200)] 
Fix test suite failures when CC is a ccache-wrapped compiler

CCACHE_DISABLE has to be used in order to ensure that the real compiler
will be run without ccache.

12 years agotest: Simply compare_file function
Joel Rosdahl [Mon, 8 Oct 2012 19:06:08 +0000 (21:06 +0200)] 
test: Simply compare_file function

12 years agoAdd object file comparison check for numerous tests
David Givone [Sun, 9 Sep 2012 23:55:37 +0000 (16:55 -0700)] 
Add object file comparison check for numerous tests

Comparing the output of ccache and direct compilation is a useful check to
make sure we are creating the same object file. It is especially useful
when performing 2 stage compilation like ccache does when CCACHE_CPP2 is
not set.

12 years agoLog strerror(errno) on failure to stat the compiler's stdout file
Joel Rosdahl [Sun, 7 Oct 2012 15:24:32 +0000 (17:24 +0200)] 
Log strerror(errno) on failure to stat the compiler's stdout file

12 years agoFix race condition when creating initial cache directory
David Givone [Fri, 21 Sep 2012 05:01:09 +0000 (22:01 -0700)] 
Fix race condition when creating initial cache directory

12 years agoFix developer mode detection
Joel Rosdahl [Sun, 23 Sep 2012 09:32:35 +0000 (11:32 +0200)] 
Fix developer mode detection

This broke in 81714b62b50563055faf301f5e4faec6652a426b.

12 years agoFind test case files in out-of-source-dir builds as well
Joel Rosdahl [Sat, 22 Sep 2012 12:31:55 +0000 (14:31 +0200)] 
Find test case files in out-of-source-dir builds as well

12 years agoMerge branch 'maint'
Joel Rosdahl [Mon, 17 Sep 2012 19:30:24 +0000 (21:30 +0200)] 
Merge branch 'maint'

* maint:
  Fix bug testing with ecryptfs

12 years agoFix bug testing with ecryptfs
Andrew Stubbs [Mon, 10 Sep 2012 13:57:23 +0000 (14:57 +0100)] 
Fix bug testing with ecryptfs

The test script assumes that zero-length files take up zero disk space,
that the block size is 4k, and that the disk usage will be the file size
rounded up to the nearest block size. Unfortunately these were not true for
ecryptfs.

Additionally, running the test.sh from another directory did not work due
to a bad location assumption in another test.

12 years agoMerge branch 'maint'
Joel Rosdahl [Thu, 13 Sep 2012 19:51:56 +0000 (21:51 +0200)] 
Merge branch 'maint'

* maint:
  Handle EAGAIN during copy_fd

12 years agoOnly clean dist generate targets when using distclean
David Givone [Mon, 10 Sep 2012 00:28:37 +0000 (17:28 -0700)] 
Only clean dist generate targets when using distclean

Some file are only generated when making a distribute, such as docs, and should
only be cleaned when using the distclean target. If we clean the docs with the
normal clean target then when using the Makefile with the distributed source
code will lead to an error if you configure, make, make clean, and then make
again.

12 years agoImprove dev.mk to be more platform independent
David Givone [Mon, 3 Sep 2012 22:09:52 +0000 (15:09 -0700)] 
Improve dev.mk to be more platform independent

The dev.mk was improved to allow for the make dist to work on mac os x:

1) asciidoc may not always be install to /etc, so also check /usr/local/etc
2) --parents parameter for cp does not work on mac so use rsync --relative
3) replaced -a tar flag with somesomething that should work across
   platforms

12 years agoFix issue to handle the -arch compiler option with arg
David Givone [Sun, 2 Sep 2012 22:49:12 +0000 (15:49 -0700)] 
Fix issue to handle the -arch compiler option with arg

ccache was logging a warning on Mac since the -arch option always has a
argument.

12 years agoDon't make -lz an explicit dependency if there is a system zlib
Joel Rosdahl [Thu, 13 Sep 2012 18:40:18 +0000 (20:40 +0200)] 
Don't make -lz an explicit dependency if there is a system zlib

12 years agoMake test suite work with clang and gcc-llvm on Mac OS X
David Givone [Tue, 4 Sep 2012 03:57:00 +0000 (20:57 -0700)] 
Make test suite work with clang and gcc-llvm on Mac OS X

Numerous fixes so that clang and gcc-llvm from Xcode 4 can successfully
complete

Various variables were also added to simplify conditional statements.

12 years agoAdd the primary and secondary conf file path when printing stats
David Givone [Sun, 2 Sep 2012 22:39:30 +0000 (15:39 -0700)] 
Add the primary and secondary conf file path when printing stats

12 years agoHandle EAGAIN during copy_fd
Alfred Landrum [Fri, 7 Sep 2012 18:39:26 +0000 (20:39 +0200)] 
Handle EAGAIN during copy_fd

In util.c, write may return EAGAIN if the file descriptor is a full pipe.
Currently, if this occurs, the log message "ccache: FATAL: Failed to copy fd"
is printed and ccache exits. We've seen this locally when the recorded stderr
output was exceptionally large due to many compilation warnings.

12 years agoUpdate manual on why the direct mode is off by default
Joel Rosdahl [Fri, 7 Sep 2012 18:30:02 +0000 (20:30 +0200)] 
Update manual on why the direct mode is off by default

12 years agoMerge branch 'maint'
Joel Rosdahl [Sat, 11 Aug 2012 09:09:41 +0000 (11:09 +0200)] 
Merge branch 'maint'

* maint:
  Prepare for v3.1.8
  Use C89-style comments
  Add quicktest Makefile target

Conflicts:
AUTHORS.txt
Makefile.in
test/test_hashutil.c

12 years agoPrepare for v3.1.8 v3.1.8
Joel Rosdahl [Sat, 11 Aug 2012 09:02:05 +0000 (11:02 +0200)] 
Prepare for v3.1.8

12 years agoUse C89-style comments
Joel Rosdahl [Sat, 11 Aug 2012 09:01:34 +0000 (11:01 +0200)] 
Use C89-style comments

12 years agoAdd quicktest Makefile target
Joel Rosdahl [Sat, 11 Aug 2012 09:01:16 +0000 (11:01 +0200)] 
Add quicktest Makefile target

12 years agoMerge branch 'maint'
Joel Rosdahl [Thu, 9 Aug 2012 13:10:36 +0000 (15:10 +0200)] 
Merge branch 'maint'

* maint:
  Rename static_assert macro to avoid clash with any preexisting static_assert

Conflicts:
manifest.c

12 years agoRename static_assert macro to avoid clash with any preexisting static_assert
Joel Rosdahl [Thu, 9 Aug 2012 13:09:16 +0000 (15:09 +0200)] 
Rename static_assert macro to avoid clash with any preexisting static_assert

12 years agoRemove any previous .stderr from cache if recaching
Joel Rosdahl [Thu, 9 Aug 2012 13:04:26 +0000 (15:04 +0200)] 
Remove any previous .stderr from cache if recaching

12 years agoMove log "running preprocessor" to a more appropriate place
Joel Rosdahl [Wed, 8 Aug 2012 20:43:20 +0000 (22:43 +0200)] 
Move log "running preprocessor" to a more appropriate place

12 years agoLet args_init_from_gcc_atfile split on carriage return as well
Joel Rosdahl [Wed, 8 Aug 2012 16:56:56 +0000 (18:56 +0200)] 
Let args_init_from_gcc_atfile split on carriage return as well

12 years agoAdd quicktest Makefile target
Joel Rosdahl [Wed, 8 Aug 2012 16:55:44 +0000 (18:55 +0200)] 
Add quicktest Makefile target

12 years agoImprove log messages of x_unlink and tmp_unlink
Joel Rosdahl [Wed, 8 Aug 2012 14:12:58 +0000 (16:12 +0200)] 
Improve log messages of x_unlink and tmp_unlink

12 years agoFix coding style
Joel Rosdahl [Wed, 8 Aug 2012 14:09:55 +0000 (16:09 +0200)] 
Fix coding style

12 years agoInclude ccache version in the debug log
Joel Rosdahl [Wed, 8 Aug 2012 14:05:17 +0000 (16:05 +0200)] 
Include ccache version in the debug log

12 years agoInclude more files in dist to comply with GPL's "preferred form" clause
Joel Rosdahl [Wed, 8 Aug 2012 14:00:46 +0000 (16:00 +0200)] 
Include more files in dist to comply with GPL's "preferred form" clause

12 years agoExpand file lists in dev.mk.in to make it easier to add and sort the items
Joel Rosdahl [Wed, 8 Aug 2012 13:57:37 +0000 (15:57 +0200)] 
Expand file lists in dev.mk.in to make it easier to add and sort the items

12 years agoReorder build options to guarantee usage of bundled zlib headers and libraries
Joel Rosdahl [Tue, 7 Aug 2012 19:26:29 +0000 (21:26 +0200)] 
Reorder build options to guarantee usage of bundled zlib headers and libraries

12 years agoAdd --with-bundled-zlib configure option
Joel Rosdahl [Tue, 7 Aug 2012 18:50:02 +0000 (20:50 +0200)] 
Add --with-bundled-zlib configure option

Based on a suggestion by Patrick von Reth <vonreth@kde.org>.

12 years agoMerge branch 'maint'
Joel Rosdahl [Tue, 7 Aug 2012 15:22:21 +0000 (17:22 +0200)] 
Merge branch 'maint'

* maint:
  make git version macro work if compiled outside of src dir

12 years agoLet cc_process_args work on a copy of orig_args
Joel Rosdahl [Tue, 7 Aug 2012 15:22:16 +0000 (17:22 +0200)] 
Let cc_process_args work on a copy of orig_args

This way, orig_args is preserved after expansion of "@file" arguments so
that failed() can mimick the original compilation command.

12 years agoFix typo and coding style
Joel Rosdahl [Tue, 7 Aug 2012 15:12:33 +0000 (17:12 +0200)] 
Fix typo and coding style

12 years agoAvoid "orig_args" parameters to separate them from the global variable
Joel Rosdahl [Tue, 7 Aug 2012 15:05:13 +0000 (17:05 +0200)] 
Avoid "orig_args" parameters to separate them from the global variable

12 years agoadd support for '@' parameters
Boie, Andrew P [Mon, 6 Aug 2012 23:30:55 +0000 (16:30 -0700)] 
add support for '@' parameters

These indicate to the compiler that additional command line options
should be read from a text file. If encountered, read the file,
tokenize any arguments, and if any are found, do an in-place replacement
of the '@' parameter with the arguments within the file.

args_insert() added to insert a set of arguments into a position within
another set of arguments.

args_init_from_gcc_atfile() reads and processes the argument files using the
quoting/escape conventions that GCC expects.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
12 years agomake git version macro work if compiled outside of src dir
Patrick von Reth [Thu, 2 Aug 2012 10:58:22 +0000 (12:58 +0200)] 
make git version macro work if compiled outside of src dir

13 years agoRevert "add support for '@' parameters"
Joel Rosdahl [Wed, 1 Aug 2012 14:24:29 +0000 (16:24 +0200)] 
Revert "add support for '@' parameters"

This reverts commit e11912151cadc8d77edd8071c23c4366cc007bfb, which was
pushed erroneously.

13 years agoRequire Windows Vista or later for win32 builds
Joel Rosdahl [Wed, 1 Aug 2012 12:34:28 +0000 (14:34 +0200)] 
Require Windows Vista or later for win32 builds

Based on information from Patrick von Reth <patrick.vonreth@gmail.com>.

13 years agoImplement x_realpath for Windows
Patrick von Reth [Tue, 31 Jul 2012 12:58:02 +0000 (14:58 +0200)] 
Implement x_realpath for Windows

13 years agoadd support for '@' parameters
Boie, Andrew P [Tue, 31 Jul 2012 00:50:33 +0000 (17:50 -0700)] 
add support for '@' parameters

These indicate to the compiler that additional command line options
should be read from a text file. If encountered, read the file,
tokenize any arguments, and if any are found, do an in-place replacement
of the '@' parameter with the arguments within the file.

args_insert() added to insert a set of arguments into a position within
another set of arguments.

args_init_from_string() has been improved so that any character may be
included by prefixing that character with a backslash, and support for
quoted arguments which pass special characters within the quotation marks
unmodified.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
13 years agoMerge branch 'maint'
Joel Rosdahl [Mon, 30 Jul 2012 20:24:26 +0000 (22:24 +0200)] 
Merge branch 'maint'

* maint:
  hash also Clang plugins

13 years agohash also Clang plugins
Lubos Lunak [Thu, 26 Jul 2012 12:45:16 +0000 (14:45 +0200)] 
hash also Clang plugins

13 years agoMerge branch 'maint'
Joel Rosdahl [Sun, 29 Jul 2012 21:27:31 +0000 (23:27 +0200)] 
Merge branch 'maint'

* maint:
  Simplify generation of relative automatic dependency target
  Minor code cleanup
  Add test for rewriting of absolute dependency arguments
  Make dependency arguments relative to increase cache hits
  Correct doc string of make_relative_path

Conflicts:
ccache.c

13 years agoSimplify generation of relative automatic dependency target
Joel Rosdahl [Sun, 29 Jul 2012 21:11:10 +0000 (23:11 +0200)] 
Simplify generation of relative automatic dependency target

13 years agoMinor code cleanup
Joel Rosdahl [Sun, 29 Jul 2012 21:01:29 +0000 (23:01 +0200)] 
Minor code cleanup

13 years agoAdd test for rewriting of absolute dependency arguments
Joel Rosdahl [Sun, 29 Jul 2012 20:53:20 +0000 (22:53 +0200)] 
Add test for rewriting of absolute dependency arguments

13 years agoMake dependency arguments relative to increase cache hits
Lalit Chhabra [Sun, 29 Jul 2012 20:52:51 +0000 (22:52 +0200)] 
Make dependency arguments relative to increase cache hits

13 years agoCorrect doc string of make_relative_path
Joel Rosdahl [Sun, 29 Jul 2012 20:07:44 +0000 (22:07 +0200)] 
Correct doc string of make_relative_path

13 years agoIgnore git's merge conflict files when finding unit tests
Joel Rosdahl [Sat, 28 Jul 2012 15:17:58 +0000 (17:17 +0200)] 
Ignore git's merge conflict files when finding unit tests

13 years agoMerge branch 'maint'
Joel Rosdahl [Sat, 28 Jul 2012 15:17:25 +0000 (17:17 +0200)] 
Merge branch 'maint'

* maint:
  Improve get_relative_path and add unit tests
  Canonicalize paths when computing path relative to base directory

Conflicts:
test/test_util.c
util.c

13 years agoImprove get_relative_path and add unit tests
Joel Rosdahl [Sat, 28 Jul 2012 09:50:06 +0000 (11:50 +0200)] 
Improve get_relative_path and add unit tests

13 years agoCanonicalize paths when computing path relative to base directory
Joel Rosdahl [Fri, 27 Jul 2012 13:59:13 +0000 (15:59 +0200)] 
Canonicalize paths when computing path relative to base directory

This fixes a bug when current working directory contains a "/./" part.

Based on a patch by Eric Blau.

13 years agoRemove redundant code
Joel Rosdahl [Sat, 14 Jul 2012 20:07:32 +0000 (22:07 +0200)] 
Remove redundant code

13 years agoReduce scope of result variables
Joel Rosdahl [Sat, 14 Jul 2012 19:36:02 +0000 (21:36 +0200)] 
Reduce scope of result variables

13 years agoFix coding style
Joel Rosdahl [Fri, 13 Jul 2012 20:48:50 +0000 (22:48 +0200)] 
Fix coding style

13 years agodo not pass incorrect length to remember_include_file()
Luboš Luňák [Fri, 6 Jul 2012 16:46:25 +0000 (18:46 +0200)] 
do not pass incorrect length to remember_include_file()

13 years agohash clang's .pch file explicitly
Luboš Luňák [Fri, 6 Jul 2012 16:45:05 +0000 (18:45 +0200)] 
hash clang's .pch file explicitly

It does not appear anywhere in the preprocessed output, so
process_preprocessed_file() would miss it.

13 years agosupport for precompiled headers with clang
Luboš Luňák [Fri, 6 Jul 2012 16:09:36 +0000 (18:09 +0200)] 
support for precompiled headers with clang

Support the clang-specific -include-pch option, which references
the PCH file itself, and support the .pch extension when using
the gcc -include way.

13 years agoAvoid overflowing counter when converting obsolete max size
Joel Rosdahl [Tue, 3 Jul 2012 09:52:37 +0000 (11:52 +0200)] 
Avoid overflowing counter when converting obsolete max size

13 years agoAvoid overflowing calculation of large max size counter
Joel Rosdahl [Tue, 3 Jul 2012 09:44:55 +0000 (11:44 +0200)] 
Avoid overflowing calculation of large max size counter

13 years agoRevert mistakenly merged parts of 27f2ba9a15c16b226f5223dd81c28ea766f8f9ca
Joel Rosdahl [Fri, 1 Jun 2012 06:38:41 +0000 (08:38 +0200)] 
Revert mistakenly merged parts of 27f2ba9a15c16b226f5223dd81c28ea766f8f9ca

13 years agoMerge branch 'maint'
Joel Rosdahl [Thu, 31 May 2012 21:02:39 +0000 (23:02 +0200)] 
Merge branch 'maint'

* maint:
  Correctly handle backslash in strings in hash_source_code_string
  Clean up code formatting

Conflicts:
hashutil.c

13 years agoCorrectly handle backslash in strings in hash_source_code_string
Joel Rosdahl [Thu, 31 May 2012 20:38:49 +0000 (22:38 +0200)] 
Correctly handle backslash in strings in hash_source_code_string

13 years agoClean up code formatting
Joel Rosdahl [Thu, 31 May 2012 19:38:39 +0000 (21:38 +0200)] 
Clean up code formatting

13 years agoImprove documentation for include_file_mtime
Justin Lebar [Sat, 26 May 2012 16:17:28 +0000 (12:17 -0400)] 
Improve documentation for include_file_mtime

13 years agoRemove test of check removed in 05ce57e
Joel Rosdahl [Sun, 13 May 2012 17:24:56 +0000 (19:24 +0200)] 
Remove test of check removed in 05ce57e

13 years agoAvoid checking for too large values in parse_unsigned
Joel Rosdahl [Sun, 13 May 2012 16:46:39 +0000 (18:46 +0200)] 
Avoid checking for too large values in parse_unsigned

It's not worth the portability hassle

13 years agoUse UINT_MAX instead of (unsigned)-1
Joel Rosdahl [Sun, 13 May 2012 15:41:03 +0000 (17:41 +0200)] 
Use UINT_MAX instead of (unsigned)-1

13 years agoPlug minor memory leak
Joel Rosdahl [Sun, 13 May 2012 15:35:06 +0000 (17:35 +0200)] 
Plug minor memory leak

13 years agoAvoid reading bad memory when using the "ccache compiler" form
Joel Rosdahl [Sun, 13 May 2012 14:35:38 +0000 (16:35 +0200)] 
Avoid reading bad memory when using the "ccache compiler" form

This regression was introduced in 469267b2be49d6acdca5058e3e744a508ce3da5d.

13 years agoportability: Don't compare signed and unsigned integers
Joel Rosdahl [Tue, 17 Apr 2012 21:23:35 +0000 (23:23 +0200)] 
portability: Don't compare signed and unsigned integers

13 years agoFix grammar in comment
Joel Rosdahl [Sat, 14 Apr 2012 07:11:50 +0000 (09:11 +0200)] 
Fix grammar in comment

13 years agotest: Remove symlink to ccache to avoid installcheck error
Joel Rosdahl [Mon, 9 Apr 2012 10:37:49 +0000 (12:37 +0200)] 
test: Remove symlink to ccache to avoid installcheck error

13 years agoFix build error for C89-only compilers
Joel Rosdahl [Mon, 9 Apr 2012 10:36:32 +0000 (12:36 +0200)] 
Fix build error for C89-only compilers

13 years agotest: Only run -fprofile-generate tests for compilers that support it
Joel Rosdahl [Sun, 8 Apr 2012 15:30:40 +0000 (17:30 +0200)] 
test: Only run -fprofile-generate tests for compilers that support it

13 years agoconfig: Compare with NULL in parse_env_string to please IRIX's compiler
Joel Rosdahl [Sun, 8 Apr 2012 15:20:06 +0000 (17:20 +0200)] 
config: Compare with NULL in parse_env_string to please IRIX's compiler

13 years agofix build problems with incorrect pointer assignments
Chris AtLee [Fri, 30 Mar 2012 21:20:35 +0000 (17:20 -0400)] 
fix build problems with incorrect pointer assignments

13 years agoPortability: Don't assume unsetenv has a non-void return type
Joel Rosdahl [Wed, 7 Mar 2012 20:24:27 +0000 (21:24 +0100)] 
Portability: Don't assume unsetenv has a non-void return type

13 years agoMerge branch 'maint'
Joel Rosdahl [Wed, 7 Mar 2012 20:21:43 +0000 (21:21 +0100)] 
Merge branch 'maint'

* maint:
  Don't crash when stderr is closed

13 years agoDon't crash when stderr is closed
Joel Rosdahl [Wed, 7 Mar 2012 20:10:59 +0000 (21:10 +0100)] 
Don't crash when stderr is closed

13 years agoPortability fixes
Joel Rosdahl [Mon, 5 Mar 2012 21:31:04 +0000 (22:31 +0100)] 
Portability fixes

13 years agoIntroduce x_unsetenv for increased portability
Joel Rosdahl [Mon, 5 Mar 2012 21:26:00 +0000 (22:26 +0100)] 
Introduce x_unsetenv for increased portability

13 years agoMake conf_read_valid_config work on systems that don't export $USER
Joel Rosdahl [Mon, 5 Mar 2012 21:10:57 +0000 (22:10 +0100)] 
Make conf_read_valid_config work on systems that don't export $USER

13 years agoFix indentation
Joel Rosdahl [Mon, 5 Mar 2012 20:36:53 +0000 (21:36 +0100)] 
Fix indentation

13 years agoFix leftovers of variable-based configuration
Joel Rosdahl [Mon, 5 Mar 2012 20:34:32 +0000 (21:34 +0100)] 
Fix leftovers of variable-based configuration

13 years agoFix typo
Joel Rosdahl [Mon, 5 Mar 2012 20:32:02 +0000 (21:32 +0100)] 
Fix typo

13 years agoMinor documentation tweaks
Joel Rosdahl [Sun, 4 Mar 2012 16:30:58 +0000 (17:30 +0100)] 
Minor documentation tweaks

13 years agoMake ccache compilable with clang
Joel Rosdahl [Fri, 2 Mar 2012 22:01:27 +0000 (23:01 +0100)] 
Make ccache compilable with clang

13 years agoSolaris build fixes
Joel Rosdahl [Wed, 22 Feb 2012 21:07:55 +0000 (22:07 +0100)] 
Solaris build fixes

13 years agoRenamed CCACHE_CONFIG_PATH to CCACHE_CONFIGPATH for consistency
Joel Rosdahl [Wed, 22 Feb 2012 20:48:03 +0000 (21:48 +0100)] 
Renamed CCACHE_CONFIG_PATH to CCACHE_CONFIGPATH for consistency

13 years agoMerge branch 'master' into config
Joel Rosdahl [Mon, 20 Feb 2012 22:16:25 +0000 (23:16 +0100)] 
Merge branch 'master' into config

* master:
  Minor code style changes
  Support adjusting the compression level through CCACHE_COMPRESS_LEVEL

Conflicts:
MANUAL.txt
ccache.c

13 years agoMinor code style changes
Joel Rosdahl [Mon, 20 Feb 2012 21:49:32 +0000 (22:49 +0100)] 
Minor code style changes

13 years agoSupport adjusting the compression level through CCACHE_COMPRESS_LEVEL
Hongli Lai (Phusion) [Sun, 19 Feb 2012 23:28:36 +0000 (00:28 +0100)] 
Support adjusting the compression level through CCACHE_COMPRESS_LEVEL