]> git.ipfire.org Git - thirdparty/ccache.git/log
thirdparty/ccache.git
7 years agoPrepare for v3.1.12 3.1-maint v3.1.12
Joel Rosdahl [Tue, 12 Jul 2016 19:04:04 +0000 (21:04 +0200)] 
Prepare for v3.1.12

7 years agoDisable mingw32 build on v3.1.x
Joel Rosdahl [Mon, 11 Jul 2016 20:32:24 +0000 (22:32 +0200)] 
Disable mingw32 build on v3.1.x

7 years agoAdd .travis.yml
Joel Rosdahl [Mon, 11 Jul 2016 19:54:41 +0000 (21:54 +0200)] 
Add .travis.yml

7 years agoMark 3.1.12 as still unreleased
Joel Rosdahl [Mon, 11 Jul 2016 19:54:38 +0000 (21:54 +0200)] 
Mark 3.1.12 as still unreleased

7 years agoPrepare for v3.1.12
Joel Rosdahl [Fri, 8 Jul 2016 15:21:25 +0000 (17:21 +0200)] 
Prepare for v3.1.12

7 years agoDon't rewrite source file path if it's absolute and a symlink
Joel Rosdahl [Fri, 8 Jul 2016 15:21:18 +0000 (17:21 +0200)] 
Don't rewrite source file path if it's absolute and a symlink

Fixes issue #111.

9 years agoPrepare for v3.1.11 v3.1.11
Joel Rosdahl [Sat, 7 Mar 2015 15:30:10 +0000 (16:30 +0100)] 
Prepare for v3.1.11

9 years agoPrepare for v3.1.11
Joel Rosdahl [Sat, 7 Mar 2015 15:04:07 +0000 (16:04 +0100)] 
Prepare for v3.1.11

9 years agoUpdate NEWS.txt
Joel Rosdahl [Sat, 7 Mar 2015 15:02:33 +0000 (16:02 +0100)] 
Update NEWS.txt

9 years agoTweak copyright years
Joel Rosdahl [Sat, 7 Mar 2015 15:02:21 +0000 (16:02 +0100)] 
Tweak copyright years

9 years agoFix comment scanning bug in hash_source_code_string
Joel Rosdahl [Fri, 20 Feb 2015 19:32:33 +0000 (20:32 +0100)] 
Fix comment scanning bug in hash_source_code_string

hash_source_code_string tries to ignore __DATE__/__TIME strings in
comments, but fails to parse code that contains character literal of a
double quote. This could result in false cache hits when the source code
happens to contain '"' followed by " /*" or " //" (with variations).

The fix is to do like it's already done in ccache 3.2: Don't try to be
overly clever about __DATE__/__TIME__, just check for those strings
anywhere in the source code string.

9 years agoInclude info on CCACHE_CPP2 in hash
Joel Rosdahl [Fri, 26 Dec 2014 09:07:25 +0000 (10:07 +0100)] 
Include info on CCACHE_CPP2 in hash

Made hash of cached result created with and without CCACHE_CPP2 different.
This makes it possible to rebuild with CCACHE_CPP2 set without having to
clear the cache to get new results.

9 years agoSpelling fix
Ville Skyttä [Fri, 12 Dec 2014 08:59:17 +0000 (10:59 +0200)] 
Spelling fix

9 years agoRevert "Do not rely on pids being unique"
Joel Rosdahl [Tue, 9 Dec 2014 20:13:33 +0000 (21:13 +0100)] 
Revert "Do not rely on pids being unique"

This reverts commit a07f46a3b0f7e452d50690b831bb4c99fbc6650f.

It turned out to be a bad idea to use mkstemp for temporary files that are
renamed into files to save in the cache since mkstemp creates the file with
permissions 0600.

9 years agoDon't try to reset a non-existing stats file
Joel Rosdahl [Thu, 13 Nov 2014 19:19:00 +0000 (20:19 +0100)] 
Don't try to reset a non-existing stats file

This avoids "No such file or directory" messages in the ccache log when the
cache directory doesn't exist.

9 years agoDo not rely on pids being unique
Joel Rosdahl [Sat, 8 Nov 2014 15:53:34 +0000 (16:53 +0100)] 
Do not rely on pids being unique

Based on a patch by Mike Frysinger <vapier@gentoo.org>:

"Linux supports creating pid namespaces cheaply and running processes
inside of them. When you try to share a single cache among multiple such
runs, the fact that the code relies on pid numbers as globally unique
values quickly fails. Instead, switch to standard mkstemp to generate temp
files for us."

9 years agoFix NEWS.txt syntax to please AsciiDoc
Joel Rosdahl [Sun, 19 Oct 2014 18:30:19 +0000 (20:30 +0200)] 
Fix NEWS.txt syntax to please AsciiDoc

Yet another thing AsciiDoc isn't good at.

9 years agoPrepare for v3.1.10 v3.1.10
Joel Rosdahl [Sun, 19 Oct 2014 17:07:59 +0000 (19:07 +0200)] 
Prepare for v3.1.10

9 years agoUpdate NEWS
Joel Rosdahl [Sun, 19 Oct 2014 17:04:08 +0000 (19:04 +0200)] 
Update NEWS

9 years agoignore config.cache files
Mike Frysinger [Mon, 15 Sep 2014 22:29:21 +0000 (18:29 -0400)] 
ignore config.cache files

This is created when you run `./configure -C`.

9 years agoRequire CCACHE_SLOPPINESS=pch_defines when creating precompiled header
Joel Rosdahl [Sat, 16 Aug 2014 12:22:04 +0000 (14:22 +0200)] 
Require CCACHE_SLOPPINESS=pch_defines when creating precompiled header

708d9110a103bd49437be7bff1e82697fff68d0b introduced the requirement of
sloppy pch_defines for using a PCH, but it's the act of creating (and
storing in the cache) a PCH that needs to be opt-in.

9 years agoUpdate AUTHORS
Joel Rosdahl [Thu, 7 Aug 2014 20:05:58 +0000 (22:05 +0200)] 
Update AUTHORS

9 years agoUpdate NEWS
Joel Rosdahl [Thu, 17 Jul 2014 13:04:11 +0000 (15:04 +0200)] 
Update NEWS

9 years agoFix problem with logging of current working directory
Joel Rosdahl [Thu, 17 Jul 2014 14:08:29 +0000 (16:08 +0200)] 
Fix problem with logging of current working directory

9 years agoReformat NEWS.txt entries to be easier to work with
Joel Rosdahl [Mon, 16 Jun 2014 19:43:45 +0000 (21:43 +0200)] 
Reformat NEWS.txt entries to be easier to work with

9 years agoInclude signal.h in system.h
Joel Rosdahl [Sun, 18 May 2014 13:57:21 +0000 (15:57 +0200)] 
Include signal.h in system.h

9 years agoFix clang build warning "shift count >= width of type"
Joel Rosdahl [Wed, 14 May 2014 19:33:33 +0000 (21:33 +0200)] 
Fix clang build warning "shift count >= width of type"

9 years agoClean up stale files in internal tempdir once an hour
Joel Rosdahl [Mon, 12 May 2014 20:31:58 +0000 (22:31 +0200)] 
Clean up stale files in internal tempdir once an hour

9 years agoAdd signal handler to clean up temporary files at unexpected program exit
Joel Rosdahl [Mon, 12 May 2014 18:48:45 +0000 (20:48 +0200)] 
Add signal handler to clean up temporary files at unexpected program exit

9 years agoDon't needlessly allocate empty counter_updates data in stats_flush()
Joel Rosdahl [Mon, 12 May 2014 18:42:33 +0000 (20:42 +0200)] 
Don't needlessly allocate empty counter_updates data in stats_flush()

10 years agomanifest file_info fix
Yiding Jia [Mon, 14 Apr 2014 21:46:46 +0000 (14:46 -0700)] 
manifest file_info fix

10 years agoClean up dead code flagged by cppcheck and clang-analyzer
Ville Skyttä [Sat, 28 Dec 2013 20:05:33 +0000 (22:05 +0200)] 
Clean up dead code flagged by cppcheck and clang-analyzer

10 years agoMark fatal() with __attribute__((noreturn)) to please clang-analyzer
Joel Rosdahl [Sun, 13 Apr 2014 18:12:01 +0000 (20:12 +0200)] 
Mark fatal() with __attribute__((noreturn)) to please clang-analyzer

10 years agoFix bug in common_dir_prefix_length
Joel Rosdahl [Wed, 9 Apr 2014 20:11:25 +0000 (22:11 +0200)] 
Fix bug in common_dir_prefix_length

Based on a patch by Douglas Graham <douglas.graham@ericsson.com>.

10 years agoRequire CCACHE_SLOPPINESS=pch_defines,time_macros opt-in to enable PCH handling
Joel Rosdahl [Wed, 8 Jan 2014 20:13:22 +0000 (21:13 +0100)] 
Require CCACHE_SLOPPINESS=pch_defines,time_macros opt-in to enable PCH handling

The background is that since ccache runs the preprocessor on the header to
be precompiled, the preprocessor removes #defines and ccache then hashes
the output, which means that changes in #defines are not detected even
though the resulting .gch file will have different behavior.

10 years agodoc: Mention that --ccache-skip currently does not mean "skip hashing option"
Joel Rosdahl [Wed, 8 Jan 2014 19:34:07 +0000 (20:34 +0100)] 
doc: Mention that --ccache-skip currently does not mean "skip hashing option"

10 years agoDon't hash compiler option -fdebug-prefix-map=
Joel Rosdahl [Wed, 8 Jan 2014 19:29:33 +0000 (20:29 +0100)] 
Don't hash compiler option -fdebug-prefix-map=

The -fdebug-prefix-map option may be used in combination with
CCACHE_BASEDIR to reuse results across different directories.

Based on a patch by Pawel Sikora.

10 years agoSpelling fixes
Ville Skyttä [Sat, 10 Aug 2013 21:48:54 +0000 (00:48 +0300)] 
Spelling fixes

10 years agoAvoid creating ccache directory when CCACHE_DISABLE is set
Joel Rosdahl [Fri, 30 Aug 2013 20:29:28 +0000 (22:29 +0200)] 
Avoid creating ccache directory when CCACHE_DISABLE is set

10 years agoBail out on option -gsplit-dwarf which produces multiple output files
Joel Rosdahl [Thu, 8 Aug 2013 20:20:12 +0000 (22:20 +0200)] 
Bail out on option -gsplit-dwarf which produces multiple output files

10 years agoTreat zero length object files as invalid
Michael Meeks [Thu, 8 Aug 2013 20:07:27 +0000 (22:07 +0200)] 
Treat zero length object files as invalid

Fix for bug 9972.

10 years agoFix path canonicalization in make_relative_path when path doesn't exist
Joel Rosdahl [Thu, 8 Aug 2013 16:06:16 +0000 (18:06 +0200)] 
Fix path canonicalization in make_relative_path when path doesn't exist

10 years agoHandle some dirname() special cases as expected
Joel Rosdahl [Thu, 8 Aug 2013 16:05:30 +0000 (18:05 +0200)] 
Handle some dirname() special cases as expected

10 years agoCorrect make_relative_path comment
Joel Rosdahl [Thu, 8 Aug 2013 16:04:44 +0000 (18:04 +0200)] 
Correct make_relative_path comment

11 years agoFix test suite failure on GCC 4.8, take three
Ville Skyttä [Sun, 31 Mar 2013 18:34:29 +0000 (21:34 +0300)] 
Fix test suite failure on GCC 4.8, take three

11 years agoFix test suite failure on GCC 4.8, take two
Joel Rosdahl [Sun, 31 Mar 2013 18:22:58 +0000 (20:22 +0200)] 
Fix test suite failure on GCC 4.8, take two

11 years agoFix test suite failure on GCC 4.8
Joel Rosdahl [Wed, 20 Mar 2013 21:18:16 +0000 (22:18 +0100)] 
Fix test suite failure on GCC 4.8

GCC 4.8 includes /usr/include/stdc-predef.h implicitly, and this shows up
in generated .d files.

11 years agoComment spelling fix
Ville Skyttä [Sat, 16 Mar 2013 19:35:47 +0000 (21:35 +0200)] 
Comment spelling fix

11 years agoImprove execute() not to rely on special exit codes internally
Joel Rosdahl [Mon, 4 Feb 2013 21:24:08 +0000 (22:24 +0100)] 
Improve execute() not to rely on special exit codes internally

11 years agoSupport -Xclang compiler option.
Bernhard Bauer [Tue, 16 Aug 2011 08:23:55 +0000 (10:23 +0200)] 
Support -Xclang compiler option.

11 years agoPrepare for v3.1.9 v3.1.9
Joel Rosdahl [Sun, 6 Jan 2013 16:56:50 +0000 (17:56 +0100)] 
Prepare for v3.1.9

11 years agoHandle disappearing temporary stdout file gracefully
Joel Rosdahl [Sat, 5 Jan 2013 17:10:36 +0000 (18:10 +0100)] 
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.

11 years agoImprove error reporting when failing to create stdout/stderr file in execute()
Joel Rosdahl [Sat, 5 Jan 2013 17:08:36 +0000 (18:08 +0100)] 
Improve error reporting when failing to create stdout/stderr file in execute()

11 years agoDon't leak log file descriptor to executed commands
Joel Rosdahl [Sat, 5 Jan 2013 15:47:04 +0000 (16:47 +0100)] 
Don't leak log file descriptor to executed commands

11 years agoImprove x_unlink's temporary filename
Joel Rosdahl [Thu, 3 Jan 2013 16:51:10 +0000 (17:51 +0100)] 
Improve x_unlink's temporary filename

The XXXXXX part was unused.

11 years agoDon't create cache subdirectories in read-only mode
Joel Rosdahl [Sun, 4 Nov 2012 10:38:13 +0000 (11:38 +0100)] 
Don't create cache subdirectories in read-only mode

11 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.

11 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.

11 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

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

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

11 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

11 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

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

11 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

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

11 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

11 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

11 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

11 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

11 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.

11 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

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

12 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

12 years agoAdd -c if missing when compiling a header file
Joel Rosdahl [Wed, 1 Feb 2012 21:12:29 +0000 (22:12 +0100)] 
Add -c if missing when compiling a header file

This is to please g++ 4.1.

12 years agoDon't crash when current working directory doesn't exist
Joel Rosdahl [Mon, 16 Jan 2012 21:35:39 +0000 (22:35 +0100)] 
Don't crash when current working directory doesn't exist

12 years agoPrepare for v3.1.7 v3.1.7
Joel Rosdahl [Sun, 8 Jan 2012 14:37:50 +0000 (15:37 +0100)] 
Prepare for v3.1.7

12 years agoUpdate NEWS
Joel Rosdahl [Sun, 8 Jan 2012 12:05:28 +0000 (13:05 +0100)] 
Update NEWS

12 years agoAlso recognize -specs=file in addition to --specs=file
Joel Rosdahl [Sun, 8 Jan 2012 11:59:02 +0000 (12:59 +0100)] 
Also recognize -specs=file in addition to --specs=file

12 years agoRevert GCC bug compatibility for -MTarg and -MQarg
Joel Rosdahl [Sun, 8 Jan 2012 09:40:17 +0000 (10:40 +0100)] 
Revert GCC bug compatibility for -MTarg and -MQarg

The bug addressed by commit 8c3039d676d71564e98d50f1ca8ba029d1efa46c has
been fixed in a recent GCC version. Since ccache currently can't change
behavior depending on compiler version, we have to choose the least
troublesome behavior.

12 years agoFix minor memory leaks
Joel Rosdahl [Sat, 7 Jan 2012 15:01:45 +0000 (16:01 +0100)] 
Fix minor memory leaks

12 years agoCorrect log message when unify mode is enabled
Joel Rosdahl [Fri, 6 Jan 2012 15:03:36 +0000 (16:03 +0100)] 
Correct log message when unify mode is enabled

12 years agoHash environment variables that affect the preprocessor output
Joel Rosdahl [Fri, 6 Jan 2012 15:02:42 +0000 (16:02 +0100)] 
Hash environment variables that affect the preprocessor output

12 years agoHash mtime or content of GCC plugins specified with -fplugin=
Joel Rosdahl [Thu, 5 Jan 2012 14:58:50 +0000 (15:58 +0100)] 
Hash mtime or content of GCC plugins specified with -fplugin=

12 years agoUse hash_compiler for explicit --specs= options as well
Joel Rosdahl [Thu, 5 Jan 2012 14:49:26 +0000 (15:49 +0100)] 
Use hash_compiler for explicit --specs= options as well

12 years agoRefactor code into a hash_compiler function
Joel Rosdahl [Thu, 5 Jan 2012 14:49:03 +0000 (15:49 +0100)] 
Refactor code into a hash_compiler function

12 years agoImprove description on how to fix bad object files in the cache
Joel Rosdahl [Tue, 20 Dec 2011 21:21:46 +0000 (22:21 +0100)] 
Improve description on how to fix bad object files in the cache

12 years agoMake failure to create files in cache fatal
Joel Rosdahl [Mon, 19 Dec 2011 19:59:53 +0000 (20:59 +0100)] 
Make failure to create files in cache fatal

Previously, such failures were erroneously flagged as "compiler produced
stdout".

12 years agoMake failure to create cache directories fatal
Joel Rosdahl [Mon, 19 Dec 2011 19:58:00 +0000 (20:58 +0100)] 
Make failure to create cache directories fatal

12 years agoRemove unused print_executed_command function
Joel Rosdahl [Sat, 17 Sep 2011 21:55:22 +0000 (23:55 +0200)] 
Remove unused print_executed_command function

12 years agoHandle non-writable CCACHE_DIR gracefully
Joel Rosdahl [Sun, 11 Sep 2011 19:01:28 +0000 (21:01 +0200)] 
Handle non-writable CCACHE_DIR gracefully

12 years agoSync mdfour.c license header with other files, notably fixing FSF's address.
Ville Skyttä [Mon, 22 Aug 2011 20:40:03 +0000 (23:40 +0300)] 
Sync mdfour.c license header with other files, notably fixing FSF's address.

12 years agoTweak news markup
Joel Rosdahl [Sun, 21 Aug 2011 14:42:11 +0000 (16:42 +0200)] 
Tweak news markup

12 years agoPrepare for v3.1.6 v3.1.6
Joel Rosdahl [Sun, 21 Aug 2011 14:36:29 +0000 (16:36 +0200)] 
Prepare for v3.1.6

12 years agoDon't crash when getcwd() fails
Joel Rosdahl [Wed, 3 Aug 2011 18:10:57 +0000 (20:10 +0200)] 
Don't crash when getcwd() fails

12 years agoRewrite argument to --sysroot if CCACHE_BASEDIR is used
Joel Rosdahl [Wed, 27 Oct 2010 19:27:33 +0000 (20:27 +0100)] 
Rewrite argument to --sysroot if CCACHE_BASEDIR is used

Based on a patch by Bo <yebo9098@gmail.com>.

12 years agoFix stats display alignment for preprocessing
Jon Bernard [Mon, 30 May 2011 16:42:04 +0000 (12:42 -0400)] 
Fix stats display alignment for preprocessing

12 years agoMinor spelling tweak
Joel Rosdahl [Sun, 29 May 2011 16:14:08 +0000 (18:14 +0200)] 
Minor spelling tweak

12 years agoPrepare for v3.1.5 v3.1.5
Joel Rosdahl [Sun, 29 May 2011 15:45:28 +0000 (17:45 +0200)] 
Prepare for v3.1.5

12 years agoOnly link with -lm if needed
Joel Rosdahl [Sat, 21 May 2011 18:09:44 +0000 (20:09 +0200)] 
Only link with -lm if needed

Some systems don't have libm.