]> git.ipfire.org Git - thirdparty/ccache.git/log
thirdparty/ccache.git
8 years agoOnly pass -Wp,-MT and similar to the preprocessor
Joel Rosdahl [Wed, 7 Sep 2016 18:46:18 +0000 (20:46 +0200)] 
Only pass -Wp,-MT and similar to the preprocessor

This fixes an issue when compiler option -Wp,-MT,path is used instead of
-MT path (and similar for -MF, -MP and -MQ) and run_second_cpp
(CCACHE_CPP2) is enabled.

Fixes #129.

9 years agoDetect undocumented -coverage (only one dash) GCC option
Joel Rosdahl [Thu, 28 Jul 2016 13:36:35 +0000 (15:36 +0200)] 
Detect undocumented -coverage (only one dash) GCC option

9 years agoPrepare for v3.2.7 v3.2.7
Joel Rosdahl [Wed, 20 Jul 2016 15:50:03 +0000 (17:50 +0200)] 
Prepare for v3.2.7

9 years agoUpdate NEWS
Joel Rosdahl [Tue, 19 Jul 2016 15:01:31 +0000 (17:01 +0200)] 
Update NEWS

9 years agoMake sure to hash the trailing quote when skipping
Anders Björklund [Thu, 14 Jul 2016 21:22:25 +0000 (23:22 +0200)] 
Make sure to hash the trailing quote when skipping

Turns out that 3.2-maint hashes preprocessor output a bit differently,
so the workaround for skipping certain lines was broken in backport.
When skipping the "extra line", the trailing quotes were missing from
the output causing the hash to be different from the normal output.

9 years agoAdd test for certain gcc compilers with buggy cpp
Anders Björklund [Thu, 14 Jul 2016 15:28:20 +0000 (17:28 +0200)] 
Add test for certain gcc compilers with buggy cpp

The preprocessor in later gcc versions is buggy,
returning extra lines and different "line numbers":

    # 1 "<built-in>"
    # 1 "<command-line>"
    # 31 "<command-line>"
    # 1 "/usr/include/stdc-predef.h" 1 3 4
    # 32 "<command-line>" 2

But it only does this when there are no macros,
otherwise (with -D) it returns the regular output:

    # 1 "<built-in>"
    # 1 "<command-line>"
    # 1 "/usr/include/stdc-predef.h" 1 3 4
    # 1 "<command-line>" 2

9 years agoMake calculate_object_hash handle argument-less -B etc. correctly
Joel Rosdahl [Sat, 16 Jul 2016 18:04:37 +0000 (20:04 +0200)] 
Make calculate_object_hash handle argument-less -B etc. correctly

Fixes issue #112.

9 years agoPrepare for v3.2.6 v3.2.6
Joel Rosdahl [Tue, 12 Jul 2016 19:16:44 +0000 (21:16 +0200)] 
Prepare for v3.2.6

9 years agoMerge branch '3.1-maint' into 3.2-maint
Joel Rosdahl [Tue, 12 Jul 2016 19:14:01 +0000 (21:14 +0200)] 
Merge branch '3.1-maint' into 3.2-maint

* 3.1-maint:
  Prepare for v3.1.12
  Disable mingw32 build on v3.1.x
  Add .travis.yml
  Mark 3.1.12 as still unreleased
  Prepare for v3.1.12
  Don't rewrite source file path if it's absolute and a symlink

9 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

9 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

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

9 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

9 years agoDoc and comment spelling fixes
Ville Skyttä [Sun, 12 Jun 2016 07:02:12 +0000 (10:02 +0300)] 
Doc and comment spelling fixes

9 years agoFix some cppcheck style suggestions
Ville Skyttä [Tue, 21 Jun 2016 07:22:39 +0000 (10:22 +0300)] 
Fix some cppcheck style suggestions

9 years agoUpdate NEWS
Joel Rosdahl [Mon, 11 Jul 2016 19:27:07 +0000 (21:27 +0200)] 
Update NEWS

9 years agoWork around preprocessor bugs in gcc version 6
Anders Björklund [Sun, 26 Jun 2016 21:03:59 +0000 (23:03 +0200)] 
Work around preprocessor bugs in gcc version 6

Before hashing the output of the preprocessor (gcc -E):
- Ignore extra line `# 31 "<command-line>"` completely.
- Replace `# 32 "<command-line>" 2` with the regular # 1.
For some reason this only happens with gcc without macros.

Closes #96

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

9 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 agocode style: Mention usage of curly braces around if/for/while/do bodies
Joel Rosdahl [Sat, 4 Jun 2016 15:49:57 +0000 (17:49 +0200)] 
code style: Mention usage of curly braces around if/for/while/do bodies

9 years agoBail out on compiler option -fstack-usage
Joel Rosdahl [Sat, 4 Jun 2016 15:41:36 +0000 (17:41 +0200)] 
Bail out on compiler option -fstack-usage

It creates a .su file which ccache currently doesn't handle.

9 years agoMention new repository location on github
Joel Rosdahl [Sat, 4 Jun 2016 15:28:14 +0000 (17:28 +0200)] 
Mention new repository location on github

9 years agoOnly set SA_RESTART if it is defined
Joel Rosdahl [Fri, 6 May 2016 20:31:39 +0000 (22:31 +0200)] 
Only set SA_RESTART if it is defined

As suggested by Igor Rondarev to make ccache buildable on QNX.

9 years agoUpdate NEWS v3.2.5
Joel Rosdahl [Sun, 17 Apr 2016 14:44:05 +0000 (16:44 +0200)] 
Update NEWS

9 years agoUpdate copyright year
Joel Rosdahl [Sun, 17 Apr 2016 14:37:39 +0000 (16:37 +0200)] 
Update copyright year

9 years agoUpdate authors list
Joel Rosdahl [Sun, 17 Apr 2016 14:34:44 +0000 (16:34 +0200)] 
Update authors list

9 years agoUpdate NEWS
Joel Rosdahl [Sun, 17 Apr 2016 14:30:04 +0000 (16:30 +0200)] 
Update NEWS

9 years agoMake it harder to misinterpret semantics of boolean environment settings
Joel Rosdahl [Thu, 14 Apr 2016 18:15:53 +0000 (20:15 +0200)] 
Make it harder to misinterpret semantics of boolean environment settings

As suggested by Jim Klimov.

9 years agoUpdate NEWS
Joel Rosdahl [Wed, 30 Mar 2016 19:28:29 +0000 (21:28 +0200)] 
Update NEWS

9 years agoFix --print-config to show pch_defines
KonaBlend [Sun, 27 Mar 2016 18:45:19 +0000 (14:45 -0400)] 
Fix --print-config to show pch_defines

9 years agoUpdate NEWS
Joel Rosdahl [Fri, 25 Mar 2016 20:09:06 +0000 (21:09 +0100)] 
Update NEWS

9 years agoFix clang plugin hashing.
Mikhail Kolomeytsev [Fri, 25 Mar 2016 17:38:44 +0000 (23:38 +0600)] 
Fix clang plugin hashing.

This matters when compiling in different directories and clang plugin
is located in them. make_relative_path is redundant in that case.

https://lists.samba.org/archive/ccache/2016q1/001425.html

9 years agoHandle some more "stale NFS file handle" cases
Joel Rosdahl [Wed, 2 Mar 2016 19:57:08 +0000 (20:57 +0100)] 
Handle some more "stale NFS file handle" cases

9 years agoHandle "Stale NFS File Handle" cases better.
Nick Schultz [Wed, 17 Feb 2016 00:02:44 +0000 (16:02 -0800)] 
Handle "Stale NFS File Handle" cases better.

9 years agoAdd missing quote character in NEWS.txt
Joel Rosdahl [Wed, 17 Feb 2016 19:22:58 +0000 (20:22 +0100)] 
Add missing quote character in NEWS.txt

9 years agoCreate man page in the make-install-from-git-repo case
Joel Rosdahl [Sun, 7 Feb 2016 08:33:16 +0000 (09:33 +0100)] 
Create man page in the make-install-from-git-repo case

9 years agoUse correct hash table in file_stat_matches mode
Joel Rosdahl [Sat, 6 Feb 2016 11:45:21 +0000 (12:45 +0100)] 
Use correct hash table in file_stat_matches mode

Bug found by Riley Avron.

9 years agoAlways run the unit tests during check
Anders Björklund [Tue, 12 Jan 2016 21:40:14 +0000 (22:40 +0100)] 
Always run the unit tests during check

9 years agoDon't (try to) update manifest in readonly modes
Joel Rosdahl [Sun, 3 Jan 2016 19:45:15 +0000 (20:45 +0100)] 
Don't (try to) update manifest in readonly modes

9 years agoFix cppcheck warnings/suggestions
Joel Rosdahl [Sat, 2 Jan 2016 18:41:17 +0000 (19:41 +0100)] 
Fix cppcheck warnings/suggestions

9 years agoAdd cppcheck Makefile target
Joel Rosdahl [Sat, 2 Jan 2016 18:39:42 +0000 (19:39 +0100)] 
Add cppcheck Makefile target

9 years agoAdd travis configuration
Joel Rosdahl [Mon, 7 Dec 2015 20:19:01 +0000 (21:19 +0100)] 
Add travis configuration

9 years agoUpdate NEWS
Joel Rosdahl [Mon, 7 Dec 2015 19:57:41 +0000 (20:57 +0100)] 
Update NEWS

9 years agoDon't assume that mkstemp leaves template unmodified on error
Joel Rosdahl [Sun, 6 Dec 2015 19:30:39 +0000 (20:30 +0100)] 
Don't assume that mkstemp leaves template unmodified on error

This fixes a problem seen on QNX.

9 years agoUpdate NEWS
Joel Rosdahl [Mon, 2 Nov 2015 20:14:32 +0000 (21:14 +0100)] 
Update NEWS

9 years agoFix build on Solaris 10+ and AIX 7
Neil Mushell [Mon, 2 Nov 2015 20:12:24 +0000 (21:12 +0100)] 
Fix build on Solaris 10+ and AIX 7

9 years agoUpdate NEWS
Joel Rosdahl [Fri, 30 Oct 2015 16:19:34 +0000 (17:19 +0100)] 
Update NEWS

9 years agoPass -stdlib= only to preprocessor
Matthias Kretz [Fri, 30 Oct 2015 15:53:37 +0000 (16:53 +0100)] 
Pass -stdlib= only to preprocessor

Clang warns about an unused -stdlib=libc++ argument if the argument is
passed to the second clang invocation. The -stdlib= argument is only
necessary on preprocessing (to set the system include paths) and on
linking (which is not cached anyway)

Signed-off-by: Matthias Kretz <kretz@kde.org>
9 years agoCorrect manual regarding __DATE_, __TIME__ and __FILE__ macros
Joel Rosdahl [Tue, 27 Oct 2015 21:13:20 +0000 (22:13 +0100)] 
Correct manual regarding __DATE_, __TIME__ and __FILE__ macros

Thanks to Yevhen Ivannikov for noticing this.

9 years agoInclude m4 files used by configure.ac in dist archive
Joel Rosdahl [Fri, 9 Oct 2015 19:13:57 +0000 (21:13 +0200)] 
Include m4 files used by configure.ac in dist archive

9 years agoPrepare for v3.2.4 v3.2.4
Joel Rosdahl [Thu, 8 Oct 2015 19:12:14 +0000 (21:12 +0200)] 
Prepare for v3.2.4

9 years agoUpdate AUTHORS.txt
Joel Rosdahl [Thu, 8 Oct 2015 19:08:42 +0000 (21:08 +0200)] 
Update AUTHORS.txt

9 years agoUse correct data types for stats_set_sizes parameters
Joel Rosdahl [Sun, 4 Oct 2015 11:56:22 +0000 (13:56 +0200)] 
Use correct data types for stats_set_sizes parameters

9 years agoClean up
Joel Rosdahl [Sat, 19 Sep 2015 14:24:26 +0000 (16:24 +0200)] 
Clean up

9 years agoFix typo in 1eef4547400f2ba0c49db4a47e0413612b81cc43
Joel Rosdahl [Mon, 14 Sep 2015 17:48:42 +0000 (19:48 +0200)] 
Fix typo in 1eef4547400f2ba0c49db4a47e0413612b81cc43

9 years agoUse correct compression level when copying into the cache
Joel Rosdahl [Sun, 13 Sep 2015 12:35:26 +0000 (14:35 +0200)] 
Use correct compression level when copying into the cache

9 years agoUpdate NEWS
Joel Rosdahl [Sun, 13 Sep 2015 12:31:28 +0000 (14:31 +0200)] 
Update NEWS

9 years agoMinor improvements to Windows support
Vadim Petrochenkov [Mon, 7 Sep 2015 18:36:36 +0000 (21:36 +0300)] 
Minor improvements to Windows support

9 years agoRevert "Recognize concatenated form of some compiler options"
Joel Rosdahl [Sat, 5 Sep 2015 20:42:31 +0000 (22:42 +0200)] 
Revert "Recognize concatenated form of some compiler options"

This reverts commit 631632852a0c6bdfe77ef04bd8d675f0295c035f. The change
was not quite enough to fix the problem..

9 years agoRecognize concatenated form of some compiler options
Joel Rosdahl [Sat, 5 Sep 2015 20:16:37 +0000 (22:16 +0200)] 
Recognize concatenated form of some compiler options

GCC apparently accepts "-isystemfoo" instead of "-isystem foo" even
though only the latter is documented.

9 years agoInclude strings.h for strcasecmp
Joel Rosdahl [Sat, 29 Aug 2015 16:32:00 +0000 (18:32 +0200)] 
Include strings.h for strcasecmp

9 years agoRemove unnecessary extra_cppflags, extra_ldflags and all_ldflags variables
Joel Rosdahl [Sat, 29 Aug 2015 16:15:36 +0000 (18:15 +0200)] 
Remove unnecessary extra_cppflags, extra_ldflags and all_ldflags variables

9 years agoImprove signal handling
Joel Rosdahl [Sat, 29 Aug 2015 16:09:37 +0000 (18:09 +0200)] 
Improve signal handling

* Block signals while manipulating data read by the signal handler.
* If ccache receives SIGTERM, kill compiler as well. (Other signals like
  SIGINT are sent to the whole process group.)
* Die appropriately at the end of the signal handler by resending the
  signal instead of exiting.

9 years agoWait for compiler subprocess to exit before exiting from a signal
Joel Rosdahl [Mon, 17 Aug 2015 19:01:35 +0000 (21:01 +0200)] 
Wait for compiler subprocess to exit before exiting from a signal

This should fix a race condition (albeit a quite unlikely one) related
to removal of the compiler output file(s).

9 years agoMake conversion-to-bool explicit to avoid warnings on legacy systems
Joel Rosdahl [Mon, 17 Aug 2015 17:38:11 +0000 (19:38 +0200)] 
Make conversion-to-bool explicit to avoid warnings on legacy systems

9 years agoFix regression in recent change related to zlib in nonstandard location
Joel Rosdahl [Mon, 17 Aug 2015 17:05:14 +0000 (19:05 +0200)] 
Fix regression in recent change related to zlib in nonstandard location

To allow for specifying a -L flag in LDFLAGS and have it take effect for
-lz, 0220de9c8ebfb18caae2ac1aa163d060e98ceade put -lz in extra_libs
instead of extra_ldflags. However, extra_libs is supposed to contain
paths to libraries which are prerequisites of the ccache link rule, and
some older versions of make got confused by seeing -lz as a
prerequisite.

This fix is to revert 0220de9c8ebfb18caae2ac1aa163d060e98ceade and
instead make sure that LDFLAGS comes before extra_ldflags.

9 years agoPrepare for v3.2.3 v3.2.3
Joel Rosdahl [Sun, 16 Aug 2015 12:11:45 +0000 (14:11 +0200)] 
Prepare for v3.2.3

9 years agoBail out on --save-temps, an alias for -save-temps
Michael Marineau [Thu, 9 Jul 2015 20:42:23 +0000 (13:42 -0700)] 
Bail out on --save-temps, an alias for -save-temps

9 years agoUse correct key for "file info indexes" in --dump-manifest output
Joel Rosdahl [Sat, 15 Aug 2015 12:38:33 +0000 (14:38 +0200)] 
Use correct key for "file info indexes" in --dump-manifest output

10 years agoExit properly from exit handler
Joel Rosdahl [Sun, 9 Aug 2015 20:07:11 +0000 (22:07 +0200)] 
Exit properly from exit handler

This fixes a problem where two SIGINT (Ctrl+C) signals were needed to
terminate an ongoing compilation. (The first SIGINT terminated the
compiler which exited with non-zero status, which ccache then went on
interpreting as an ordinary failed compilation, leading to rerunning the
compiler via failed().)

10 years agouncrustify: Add sp_after_comma
Joel Rosdahl [Fri, 7 Aug 2015 15:45:25 +0000 (17:45 +0200)] 
uncrustify: Add sp_after_comma

10 years agoDon't mention source code hash bug fix in 3.2.2
Joel Rosdahl [Fri, 7 Aug 2015 15:03:56 +0000 (17:03 +0200)] 
Don't mention source code hash bug fix in 3.2.2

It was never a problem in the 3.2 track.

10 years agotest: Make subst_env_in_string not depend on existing environment
Joel Rosdahl [Wed, 5 Aug 2015 15:38:40 +0000 (17:38 +0200)] 
test: Make subst_env_in_string not depend on existing environment

10 years agoUpdate source code style according to uncrustify
Joel Rosdahl [Sat, 1 Aug 2015 20:56:03 +0000 (22:56 +0200)] 
Update source code style according to uncrustify

10 years agoAdd uncrustify config and make rule
Joel Rosdahl [Sat, 1 Aug 2015 20:42:58 +0000 (22:42 +0200)] 
Add uncrustify config and make rule

10 years agoSource code style tweaks
Joel Rosdahl [Sat, 1 Aug 2015 20:07:10 +0000 (22:07 +0200)] 
Source code style tweaks

10 years agoMinor tweaking to comments
Joel Rosdahl [Sun, 26 Jul 2015 14:38:35 +0000 (16:38 +0200)] 
Minor tweaking to comments

10 years agoOnly log "Disabling direct mode" once when failing to read include file
Joel Rosdahl [Sun, 5 Jul 2015 16:09:05 +0000 (18:09 +0200)] 
Only log "Disabling direct mode" once when failing to read include file

10 years agoUpdate NEWS
Joel Rosdahl [Sun, 28 Jun 2015 18:48:42 +0000 (20:48 +0200)] 
Update NEWS

10 years agoMinor cleanups
Joel Rosdahl [Sun, 28 Jun 2015 18:44:12 +0000 (20:44 +0200)] 
Minor cleanups

10 years agoDwarfFission: -gsplit-dwarf support
Chiaki Ishikawa [Thu, 25 Jun 2015 08:33:49 +0000 (17:33 +0900)] 
DwarfFission: -gsplit-dwarf support

10 years agoAvoid calling exit() inside an exit handler
Joel Rosdahl [Wed, 3 Jun 2015 19:10:46 +0000 (21:10 +0200)] 
Avoid calling exit() inside an exit handler

10 years agoSupport external zlib in nonstandard directory
Joel Rosdahl [Mon, 1 Jun 2015 20:06:00 +0000 (22:06 +0200)] 
Support external zlib in nonstandard directory

Patch by David Froger.

10 years agotest: drop perl requirement
Mike Frysinger [Mon, 11 May 2015 03:03:58 +0000 (23:03 -0400)] 
test: drop perl requirement

Since perl is used in just one place and can easily be replaced by a
little bit of shell, do so.  This makes testing on limited systems
easier.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
10 years agoPrepare for v3.2.2 v3.2.2
Joel Rosdahl [Sun, 10 May 2015 12:23:49 +0000 (14:23 +0200)] 
Prepare for v3.2.2

10 years agoUpdate NEWS
Joel Rosdahl [Sun, 10 May 2015 12:16:41 +0000 (14:16 +0200)] 
Update NEWS

10 years agoTweak comment
Joel Rosdahl [Sun, 10 May 2015 12:16:33 +0000 (14:16 +0200)] 
Tweak comment

10 years agoMention next unreleased version in NEWS
Joel Rosdahl [Mon, 27 Apr 2015 19:05:46 +0000 (21:05 +0200)] 
Mention next unreleased version in NEWS

10 years agoRemove signal-unsafe code from signal handler
Joel Rosdahl [Mon, 27 Apr 2015 19:03:07 +0000 (21:03 +0200)] 
Remove signal-unsafe code from signal handler

10 years agoFix build error when compiling ccache with recent clang versions
Joel Rosdahl [Mon, 27 Apr 2015 18:48:56 +0000 (20:48 +0200)] 
Fix build error when compiling ccache with recent clang versions

10 years agoUpdate NEWS
Joel Rosdahl [Sun, 19 Apr 2015 11:38:29 +0000 (13:38 +0200)] 
Update NEWS

10 years agoCorrect doc string of stats_update_size
Joel Rosdahl [Wed, 4 Feb 2015 20:17:59 +0000 (21:17 +0100)] 
Correct doc string of stats_update_size

10 years agoMinor style tweaks
Joel Rosdahl [Wed, 4 Feb 2015 20:17:36 +0000 (21:17 +0100)] 
Minor style tweaks

10 years agoFix minor memory leaks
Joel Rosdahl [Wed, 4 Feb 2015 20:17:17 +0000 (21:17 +0100)] 
Fix minor memory leaks

10 years agoAdd support for coverage (compiling for gcov)
Anders Björklund [Tue, 2 Sep 2014 20:56:50 +0000 (22:56 +0200)] 
Add support for coverage (compiling for gcov)

Store the coverage notes (.gcno file) in the cache, next to the object.
If called on a file without actual code, like a header, then generate an
empty file in the cache to be able to separate this case from file missing.
Newer versions of gcc will generate a small file instead of not generating.

In the object file generated with -fprofile-arcs, the runtime output file
for the coverage data (.gcda file) is created from the output filename.
Make sure to hash this path to avoid cache hits with another absolute path.
Also make sure to use the source file path, since this is in the notes.

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