]> git.ipfire.org Git - thirdparty/ccache.git/log
thirdparty/ccache.git
10 years agoMerge branch '3.2-maint'
Joel Rosdahl [Sun, 29 Mar 2015 15:09:45 +0000 (17:09 +0200)] 
Merge branch '3.2-maint'

* 3.2-maint:
  Don't assume that succeeding libc calls don't modify errno
  Update copyright years

10 years agoDon't assume that succeeding libc calls don't modify errno
Joel Rosdahl [Sun, 29 Mar 2015 15:08:37 +0000 (17:08 +0200)] 
Don't assume that succeeding libc calls don't modify errno

10 years agoUpdate copyright years
Joel Rosdahl [Sun, 22 Mar 2015 09:26:18 +0000 (10:26 +0100)] 
Update copyright years

10 years agoMerge branch '3.2-maint'
Joel Rosdahl [Thu, 19 Mar 2015 21:02:20 +0000 (22:02 +0100)] 
Merge branch '3.2-maint'

* 3.2-maint:
  Introduce logging wrappers for stat/lstat/fstat functions
  Harden logging, perror() replaced with fatal(), unlink() failure recorded
  Always check the result of stat() system calls
  Log failure of opening file to hash

10 years agoIntroduce logging wrappers for stat/lstat/fstat functions
Joel Rosdahl [Thu, 19 Mar 2015 20:27:26 +0000 (21:27 +0100)] 
Introduce logging wrappers for stat/lstat/fstat functions

10 years agoHarden logging, perror() replaced with fatal(), unlink() failure recorded
Chiaki ISHIKAWA [Thu, 19 Mar 2015 14:46:35 +0000 (23:46 +0900)] 
Harden logging, perror() replaced with fatal(), unlink() failure recorded

10 years agoAlways check the result of stat() system calls
Chiaki ISHIKAWA [Wed, 18 Mar 2015 15:55:04 +0000 (00:55 +0900)] 
Always check the result of stat() system calls

10 years agoLog failure of opening file to hash
Chiaki ISHIKAWA [Wed, 18 Mar 2015 15:34:48 +0000 (00:34 +0900)] 
Log failure of opening file to hash

10 years agoMerge branch '3.2-maint'
Joel Rosdahl [Mon, 16 Mar 2015 21:59:28 +0000 (22:59 +0100)] 
Merge branch '3.2-maint'

* 3.2-maint:
  Wipe the whole cached result on failure retrieving a cached file
  Use x_unlink instead of unlink per HACKING.txt

10 years agoWipe the whole cached result on failure retrieving a cached file
Joel Rosdahl [Mon, 16 Mar 2015 21:31:33 +0000 (22:31 +0100)] 
Wipe the whole cached result on failure retrieving a cached file

As suggested by Chiaki ISHIKAWA <ishikawa@yk.rim.or.jp>.

10 years agoUse x_unlink instead of unlink per HACKING.txt
Chiaki ISHIKAWA [Tue, 10 Mar 2015 12:28:27 +0000 (21:28 +0900)] 
Use x_unlink instead of unlink per HACKING.txt

10 years agoUpdate HACKING.txt with some notes on commit messages
Joel Rosdahl [Sat, 14 Mar 2015 12:07:06 +0000 (13:07 +0100)] 
Update HACKING.txt with some notes on commit messages

10 years agoUpdate NEWS
Joel Rosdahl [Sun, 8 Mar 2015 19:57:32 +0000 (20:57 +0100)] 
Update NEWS

10 years agoAdd test case for CCACHE_COMPILERCHECK=string:<value>
Joel Rosdahl [Sun, 8 Mar 2015 19:53:16 +0000 (20:53 +0100)] 
Add test case for CCACHE_COMPILERCHECK=string:<value>

10 years agoSupport syntax CCACHE_COMPILERCHECK=string:<value>
Jiang Jiang [Tue, 2 Dec 2014 16:23:16 +0000 (17:23 +0100)] 
Support syntax CCACHE_COMPILERCHECK=string:<value>

This can be faster than running a command directly, because the
command to run might just produce the same result for every ccache
invocation. By reading it from config file or environment variable
we can just run that command once and store the result in the string
following "string:" and reusing it.

For example when we want to use clang revision for clang built from
SVN trunk, we can just call clang --version once and store the
revision number like:

  export CCACHE_COMPILERCHECK=string:218707

(Assuming 218707 is the current build revision.)

10 years agoBail out on too hard compiler option -fplugin=libcc1plugin
Joel Rosdahl [Sun, 8 Mar 2015 16:13:36 +0000 (17:13 +0100)] 
Bail out on too hard compiler option -fplugin=libcc1plugin

Based on patch from Jan Kratochvil.

10 years agoBail out on too hard compiler option "-fmodules"
Joel Rosdahl [Sun, 8 Mar 2015 16:08:13 +0000 (17:08 +0100)] 
Bail out on too hard compiler option "-fmodules"

10 years agoAvoid unnecessary copy of object file on cache miss
Joel Rosdahl [Sat, 7 Mar 2015 16:39:54 +0000 (17:39 +0100)] 
Avoid unnecessary copy of object file on cache miss

As noted by Chiaki Ishikawa, ccache performs an unnecessary copy of the
object file from the cache on a cache miss. This was an refactoring
oversight in 18a645451194becb832bd1ff4fee1c1e9f3d0dc5.

10 years agoFixup after merge of 3.1-maint
Joel Rosdahl [Sat, 7 Mar 2015 15:36:18 +0000 (16:36 +0100)] 
Fixup after merge of 3.1-maint

10 years agoMerge branch '3.1-maint' into 3.2-maint
Joel Rosdahl [Sat, 7 Mar 2015 15:30:57 +0000 (16:30 +0100)] 
Merge branch '3.1-maint' into 3.2-maint

* 3.1-maint:
  Prepare for v3.1.11

10 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

10 years agoMerge branch '3.1-maint' into 3.2-maint
Joel Rosdahl [Sat, 7 Mar 2015 15:26:39 +0000 (16:26 +0100)] 
Merge branch '3.1-maint' into 3.2-maint

* 3.1-maint:
  Prepare for v3.1.11
  Update NEWS.txt
  Tweak copyright years
  Fix comment scanning bug in hash_source_code_string

Conflicts:
NEWS.txt
dev.mk.in
hashutil.c
test.sh
test/test_hashutil.c

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

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

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

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

10 years agoMinor coding style tweaks
Joel Rosdahl [Sat, 7 Mar 2015 12:49:29 +0000 (13:49 +0100)] 
Minor coding style tweaks

10 years agoUpdate NEWS
Joel Rosdahl [Mon, 9 Feb 2015 20:49:09 +0000 (21:49 +0100)] 
Update NEWS

10 years agoDon't clean up the clang diagnostics file in failure cases
ryb [Sat, 7 Feb 2015 14:30:16 +0000 (15:30 +0100)] 
Don't clean up the clang diagnostics file in failure cases

It isn't necessary to remove the file as it will be overwritten when re-running
the compiler in failed(). tmp_unlink() is the wrong function to use in any case,
as the file is not temporary and could be on an NFS volume (see the comment for
tmp_unlink()).

10 years agoDon't delete the clang diagnostics file after compiler failures
ryb [Sat, 7 Feb 2015 14:01:34 +0000 (15:01 +0100)] 
Don't delete the clang diagnostics file after compiler failures

move_file() returns an error when called with the same source and destination,
causing the diagnostics file to be removed.

As of 18a645451 ("Create destination file and then copy into cache instead of
the opposite") it is no longer necessary to move the diagnostics file at all
after a compiler failure.

10 years agoRemove redundant tmp_dia variable in to_cache()
ryb [Sat, 7 Feb 2015 13:33:37 +0000 (14:33 +0100)] 
Remove redundant tmp_dia variable in to_cache()

It is always equal to output_dia. The next commit will no longer move the
output_dia file to itself, which doesn't make much sense.

10 years agoRemove incorrect preconditions for outputting captured stderr
ryb [Sat, 7 Feb 2015 13:28:48 +0000 (14:28 +0100)] 
Remove incorrect preconditions for outputting captured stderr

errno is set in an unrelated system call. In my tests involving compiler
failures, it is last set to ENOENT in from_cache() when calling stat() for the
cached object, accidentally making "errno == ENOENT" true.

The condition was no longer necessary as of 18a645451 ("Create destination file
and then copy into cache instead of the opposite"), as the temp output file no
longer needed to be moved.

10 years agoLink with -lws2_32 on Windows
Joel Rosdahl [Wed, 28 Jan 2015 22:15:07 +0000 (23:15 +0100)] 
Link with -lws2_32 on Windows

10 years agoVarious fixes in WIN32-specific code
Joel Rosdahl [Wed, 28 Jan 2015 22:15:01 +0000 (23:15 +0100)] 
Various fixes in WIN32-specific code

* Avoid potential buffer overflow in add_exe_ext_if_no_to_fullpath.
* Avoid using zero-padding strncpy function.
* Removed superfluous newline characters from log messages.
* For consistency, moved variable declarations to the top of the scope
  to please older compilers.
* For consistency, used C89-style comments to please older compilers.
* Fixed source code formatting.

10 years agofix stdout, stderr if compiler failed
leanid [Fri, 5 Dec 2014 10:44:03 +0000 (13:44 +0300)] 
fix stdout, stderr if compiler failed

10 years agofix all jrosdahl commentes on previous patch, and test on windows ndk with clang...
leanid [Thu, 4 Dec 2014 14:25:12 +0000 (17:25 +0300)] 
fix all jrosdahl commentes on previous patch, and test on windows ndk with clang, g++

10 years agofix windows build and successfully tested on windows with android NDK
leanid [Thu, 20 Nov 2014 13:10:03 +0000 (16:10 +0300)] 
fix windows build and successfully tested on windows with android NDK

10 years agoMerge branch '3.1-maint' into 3.2-maint
Joel Rosdahl [Fri, 26 Dec 2014 09:10:20 +0000 (10:10 +0100)] 
Merge branch '3.1-maint' into 3.2-maint

* 3.1-maint:
  Include info on CCACHE_CPP2 in hash

Conflicts:
NEWS.txt
ccache.c
test.sh

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

10 years agoMerge branch '3.1-maint' into 3.2-maint
Joel Rosdahl [Sat, 13 Dec 2014 13:10:36 +0000 (14:10 +0100)] 
Merge branch '3.1-maint' into 3.2-maint

* 3.1-maint:
  Spelling fix

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

10 years agoPrepare for v3.2.1 v3.2.1
Joel Rosdahl [Wed, 10 Dec 2014 19:40:05 +0000 (20:40 +0100)] 
Prepare for v3.2.1

10 years agoSet correct permission for stats, manifest and ccache.conf files
Joel Rosdahl [Wed, 10 Dec 2014 17:40:38 +0000 (18:40 +0100)] 
Set correct permission for stats, manifest and ccache.conf files

This fixes a regression in a07f46a3b0f7e452d50690b831bb4c99fbc6650f and
fc61ca9a9232f26ee3f714d4b8738d916f6948ff where mkstemp was introduced for
creating temporary files. However, mkstemp creates files with 0600
permissions, which is bad for temporary files that are renamed to a
persistent name in the cache.

10 years agoMerge branch '3.1-maint' into 3.2-maint
Joel Rosdahl [Tue, 9 Dec 2014 20:22:28 +0000 (21:22 +0100)] 
Merge branch '3.1-maint' into 3.2-maint

* 3.1-maint:
  Revert "Do not rely on pids being unique"

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

10 years agoCreate CACHEDIR.TAG files in [0-9a-f] subdirectories to avoid losing the config
Joel Rosdahl [Sun, 7 Dec 2014 15:58:59 +0000 (16:58 +0100)] 
Create CACHEDIR.TAG files in [0-9a-f] subdirectories to avoid losing the config

10 years agoWhitespace cleanup
Joel Rosdahl [Sun, 7 Dec 2014 15:45:45 +0000 (16:45 +0100)] 
Whitespace cleanup

10 years agodoc: Add missing documentation for max_files and max_size options
Joel Rosdahl [Thu, 4 Dec 2014 21:09:52 +0000 (22:09 +0100)] 
doc: Add missing documentation for max_files and max_size options

10 years agodoc: Sort configuration options correctly and fix typo
Joel Rosdahl [Thu, 4 Dec 2014 21:06:10 +0000 (22:06 +0100)] 
doc: Sort configuration options correctly and fix typo

10 years agoMake default cache size suffix be "G", like documented
Joel Rosdahl [Wed, 3 Dec 2014 21:14:01 +0000 (22:14 +0100)] 
Make default cache size suffix be "G", like documented

10 years agotest: Unset GCC_COLORS to avoid confusing argument processing tests
Joel Rosdahl [Wed, 19 Nov 2014 20:48:00 +0000 (21:48 +0100)] 
test: Unset GCC_COLORS to avoid confusing argument processing tests

10 years agoPass -fdiagnostics-color=auto to the compiler even if stderr is redirected
Joel Rosdahl [Wed, 19 Nov 2014 20:23:20 +0000 (21:23 +0100)] 
Pass -fdiagnostics-color=auto to the compiler even if stderr is redirected

This fixes a problem when e.g. a configure test probes if the compiler
(wrapped via ccache) supports -fdiagnostics-color=auto. If ccache discards
the option since configure redirects stderr, then configure will
erroneously think that the compiler supports the option and the build will
fail later on (if stderr refers to a TTY).

10 years agoPrepare for v3.2 v3.2
Joel Rosdahl [Mon, 17 Nov 2014 18:57:25 +0000 (19:57 +0100)] 
Prepare for v3.2

10 years agoDon't populate configuration from environment when running tests
Joel Rosdahl [Mon, 17 Nov 2014 18:46:46 +0000 (19:46 +0100)] 
Don't populate configuration from environment when running tests

10 years agoConvert inline "if"s to "if"s with body
Joel Rosdahl [Sun, 16 Nov 2014 13:49:26 +0000 (14:49 +0100)] 
Convert inline "if"s to "if"s with body

10 years agoBail out on empty CCACHE_DIR
Joel Rosdahl [Sat, 15 Nov 2014 15:26:02 +0000 (16:26 +0100)] 
Bail out on empty CCACHE_DIR

10 years agoFix bug in dirname
Joel Rosdahl [Sat, 15 Nov 2014 15:17:15 +0000 (16:17 +0100)] 
Fix bug in dirname

This avoids a crash when running "ccache -s" with CCACHE_DIR="".

10 years agoDon't include -Wl,... in hash since it doesn't affect compilation
Joel Rosdahl [Sat, 15 Nov 2014 14:59:39 +0000 (15:59 +0100)] 
Don't include -Wl,... in hash since it doesn't affect compilation

As suggested by Mutsumi Ishikawa.

10 years agotest: Fix "profile-use" failure on GCC 4.9
Joel Rosdahl [Sat, 15 Nov 2014 14:44:21 +0000 (15:44 +0100)] 
test: Fix "profile-use" failure on GCC 4.9

10 years agoImprove execute() to take FDs instead of filenames
Joel Rosdahl [Sat, 15 Nov 2014 12:50:49 +0000 (13:50 +0100)] 
Improve execute() to take FDs instead of filenames

This means that execute() no longer needs to recreate the temporary
stdout/stderr files needlessly.

Note: ccache will no longer build on win32 after this change, but I don't
know what needs to be done to win32execute(). I leave that to those who
know.

10 years agoImprove temporary file creation functions and usage
Joel Rosdahl [Sat, 15 Nov 2014 12:16:40 +0000 (13:16 +0100)] 
Improve temporary file creation functions and usage

10 years agoMerge maint into master (using imerge)
Joel Rosdahl [Thu, 13 Nov 2014 21:35:21 +0000 (22:35 +0100)] 
Merge maint into master (using imerge)

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

10 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."

10 years agoAdd "read-only direct" setting
Joel Rosdahl [Sun, 2 Nov 2014 16:26:58 +0000 (17:26 +0100)] 
Add "read-only direct" setting

10 years agoRefactor conf code into bool_to_string function
Joel Rosdahl [Sun, 2 Nov 2014 15:52:14 +0000 (16:52 +0100)] 
Refactor conf code into bool_to_string function

10 years agoMerge branch 'maint'
Joel Rosdahl [Sun, 19 Oct 2014 18:41:15 +0000 (20:41 +0200)] 
Merge branch 'maint'

* maint:
  Fix NEWS.txt syntax to please AsciiDoc

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

10 years agoMerge branch 'maint'
Joel Rosdahl [Sun, 19 Oct 2014 18:21:41 +0000 (20:21 +0200)] 
Merge branch 'maint'

* maint:
  Prepare for v3.1.10
  Update NEWS
  ignore config.cache files

Conflicts:
NEWS.txt

10 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

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

10 years agoUpdate NEWS
Joel Rosdahl [Sat, 18 Oct 2014 12:32:38 +0000 (14:32 +0200)] 
Update NEWS

10 years agoUpgrade zlib to 1.2.8
Joel Rosdahl [Thu, 9 Oct 2014 20:26:05 +0000 (22:26 +0200)] 
Upgrade zlib to 1.2.8

10 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`.

10 years agoMerge branch 'maint'
Joel Rosdahl [Sat, 16 Aug 2014 12:31:51 +0000 (14:31 +0200)] 
Merge branch 'maint'

* maint:
  Require CCACHE_SLOPPINESS=pch_defines when creating precompiled header

Conflicts:
ccache.c
test.sh

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

11 years agoMinor code cleanup
Joel Rosdahl [Thu, 7 Aug 2014 20:26:27 +0000 (22:26 +0200)] 
Minor code cleanup

11 years agosupport compiler color diagnostics if possible
Luboš Luňák [Fri, 29 Nov 2013 11:14:03 +0000 (12:14 +0100)] 
support compiler color diagnostics if possible

Clang and GCC (starting with 4.9) support color output if possible,
but since ccache redirects stderr to a file, they detect the output
is not a terminal and do not enable colors. Try to detect if colors
would be used and force colors explicitly.

Caveats:
- Compiles with and without colors are considered different from each
  other (so they are "duplicated").
- GCC decided to roll its own name for the option, so it's necessary
  to guess which compiler is actually used.

11 years agoAdd template for 3.2 news
Joel Rosdahl [Thu, 7 Aug 2014 20:14:56 +0000 (22:14 +0200)] 
Add template for 3.2 news

11 years agoMerge branch 'maint'
Joel Rosdahl [Thu, 7 Aug 2014 20:06:17 +0000 (22:06 +0200)] 
Merge branch 'maint'

* maint:
  Update AUTHORS
  Update NEWS

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

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

11 years agoMerge commit '7c6e3f549ad84e08b2661c0842af8de07b847ab8^'
Joel Rosdahl [Mon, 4 Aug 2014 14:23:09 +0000 (16:23 +0200)] 
Merge commit '7c6e3f549ad84e08b2661c0842af8de07b847ab8^'

* commit '7c6e3f549ad84e08b2661c0842af8de07b847ab8^':
  Fix problem with logging of current working directory
  Reformat NEWS.txt entries to be easier to work with

Conflicts:
ccache.c

11 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

11 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

11 years agoRefactor code for putting/getting files to/from the cache into functions
Joel Rosdahl [Mon, 9 Jun 2014 20:49:17 +0000 (22:49 +0200)] 
Refactor code for putting/getting files to/from the cache into functions

11 years agoCreate destination file and then copy into cache instead of the opposite
Joel Rosdahl [Sun, 8 Jun 2014 15:29:44 +0000 (17:29 +0200)] 
Create destination file and then copy into cache instead of the opposite

This simplifies the code so that there is no special case kicking in when
using --serialize-diagnostics (which requires the "-o" option to refer to
the destination instead of a temporary file in the cache).

11 years agoDon't install signal handler for SIGHUP on Windows
Patrick von Reth [Mon, 19 May 2014 10:13:01 +0000 (12:13 +0200)] 
Don't install signal handler for SIGHUP on Windows

11 years agoMerge branch 'maint'
Joel Rosdahl [Sun, 18 May 2014 13:58:22 +0000 (15:58 +0200)] 
Merge branch 'maint'

* maint:
  Include signal.h in system.h

Conflicts:
system.h

11 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

11 years agoFixed build with mingw
Patrick von Reth [Sat, 17 May 2014 13:29:05 +0000 (15:29 +0200)] 
Fixed build with mingw

_localtime32 was removed from the runtime because it was only avalible at
some Windows versions.
Maybe the time_t* cast could be used on all systems?

11 years agoMerge branch 'maint'
Joel Rosdahl [Wed, 14 May 2014 20:03:53 +0000 (22:03 +0200)] 
Merge branch 'maint'

* maint:
  Fix clang build warning "shift count >= width of type"
  Clean up stale files in internal tempdir once an hour
  Add signal handler to clean up temporary files at unexpected program exit
  Don't needlessly allocate empty counter_updates data in stats_flush()

Conflicts:
ccache.c
manifest.c
stats.c

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

11 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

11 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

11 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()

11 years agoRemove unused cc_vlog function
Joel Rosdahl [Thu, 8 May 2014 19:18:52 +0000 (21:18 +0200)] 
Remove unused cc_vlog function

11 years agoRemove left-over merge conflict markers
Joel Rosdahl [Wed, 16 Apr 2014 19:28:57 +0000 (21:28 +0200)] 
Remove left-over merge conflict markers

11 years agoMerge branch 'maint'
Joel Rosdahl [Tue, 15 Apr 2014 20:31:21 +0000 (22:31 +0200)] 
Merge branch 'maint'

* maint:
  manifest file_info fix
  Clean up dead code flagged by cppcheck and clang-analyzer
  Mark fatal() with __attribute__((noreturn)) to please clang-analyzer
  Fix bug in common_dir_prefix_length

Conflicts:
ccache.h
test/test_util.c
util.c

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