]>
git.ipfire.org Git - thirdparty/ccache.git/log
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.
Joel Rosdahl [Thu, 28 Jul 2016 13:36:35 +0000 (15:36 +0200)]
Detect undocumented -coverage (only one dash) GCC option
Joel Rosdahl [Wed, 20 Jul 2016 15:50:03 +0000 (17:50 +0200)]
Prepare for v3.2.7
Joel Rosdahl [Tue, 19 Jul 2016 15:01:31 +0000 (17:01 +0200)]
Update NEWS
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.
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
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.
Joel Rosdahl [Tue, 12 Jul 2016 19:16:44 +0000 (21:16 +0200)]
Prepare for v3.2.6
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
Joel Rosdahl [Tue, 12 Jul 2016 19:04:04 +0000 (21:04 +0200)]
Prepare for v3.1.12
Joel Rosdahl [Mon, 11 Jul 2016 20:32:24 +0000 (22:32 +0200)]
Disable mingw32 build on v3.1.x
Joel Rosdahl [Mon, 11 Jul 2016 19:54:41 +0000 (21:54 +0200)]
Add .travis.yml
Joel Rosdahl [Mon, 11 Jul 2016 19:54:38 +0000 (21:54 +0200)]
Mark 3.1.12 as still unreleased
Ville Skyttä [Sun, 12 Jun 2016 07:02:12 +0000 (10:02 +0300)]
Doc and comment spelling fixes
Ville Skyttä [Tue, 21 Jun 2016 07:22:39 +0000 (10:22 +0300)]
Fix some cppcheck style suggestions
Joel Rosdahl [Mon, 11 Jul 2016 19:27:07 +0000 (21:27 +0200)]
Update NEWS
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
Joel Rosdahl [Fri, 8 Jul 2016 15:21:25 +0000 (17:21 +0200)]
Prepare for v3.1.12
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.
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
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.
Joel Rosdahl [Sat, 4 Jun 2016 15:28:14 +0000 (17:28 +0200)]
Mention new repository location on github
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.
Joel Rosdahl [Sun, 17 Apr 2016 14:44:05 +0000 (16:44 +0200)]
Update NEWS
Joel Rosdahl [Sun, 17 Apr 2016 14:37:39 +0000 (16:37 +0200)]
Update copyright year
Joel Rosdahl [Sun, 17 Apr 2016 14:34:44 +0000 (16:34 +0200)]
Update authors list
Joel Rosdahl [Sun, 17 Apr 2016 14:30:04 +0000 (16:30 +0200)]
Update NEWS
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.
Joel Rosdahl [Wed, 30 Mar 2016 19:28:29 +0000 (21:28 +0200)]
Update NEWS
KonaBlend [Sun, 27 Mar 2016 18:45:19 +0000 (14:45 -0400)]
Fix --print-config to show pch_defines
Joel Rosdahl [Fri, 25 Mar 2016 20:09:06 +0000 (21:09 +0100)]
Update NEWS
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
Joel Rosdahl [Wed, 2 Mar 2016 19:57:08 +0000 (20:57 +0100)]
Handle some more "stale NFS file handle" cases
Nick Schultz [Wed, 17 Feb 2016 00:02:44 +0000 (16:02 -0800)]
Handle "Stale NFS File Handle" cases better.
Joel Rosdahl [Wed, 17 Feb 2016 19:22:58 +0000 (20:22 +0100)]
Add missing quote character in NEWS.txt
Joel Rosdahl [Sun, 7 Feb 2016 08:33:16 +0000 (09:33 +0100)]
Create man page in the make-install-from-git-repo case
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.
Anders Björklund [Tue, 12 Jan 2016 21:40:14 +0000 (22:40 +0100)]
Always run the unit tests during check
Joel Rosdahl [Sun, 3 Jan 2016 19:45:15 +0000 (20:45 +0100)]
Don't (try to) update manifest in readonly modes
Joel Rosdahl [Sat, 2 Jan 2016 18:41:17 +0000 (19:41 +0100)]
Fix cppcheck warnings/suggestions
Joel Rosdahl [Sat, 2 Jan 2016 18:39:42 +0000 (19:39 +0100)]
Add cppcheck Makefile target
Joel Rosdahl [Mon, 7 Dec 2015 20:19:01 +0000 (21:19 +0100)]
Add travis configuration
Joel Rosdahl [Mon, 7 Dec 2015 19:57:41 +0000 (20:57 +0100)]
Update NEWS
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.
Joel Rosdahl [Mon, 2 Nov 2015 20:14:32 +0000 (21:14 +0100)]
Update NEWS
Neil Mushell [Mon, 2 Nov 2015 20:12:24 +0000 (21:12 +0100)]
Fix build on Solaris 10+ and AIX 7
Joel Rosdahl [Fri, 30 Oct 2015 16:19:34 +0000 (17:19 +0100)]
Update NEWS
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>
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.
Joel Rosdahl [Fri, 9 Oct 2015 19:13:57 +0000 (21:13 +0200)]
Include m4 files used by configure.ac in dist archive
Joel Rosdahl [Thu, 8 Oct 2015 19:12:14 +0000 (21:12 +0200)]
Prepare for v3.2.4
Joel Rosdahl [Thu, 8 Oct 2015 19:08:42 +0000 (21:08 +0200)]
Update AUTHORS.txt
Joel Rosdahl [Sun, 4 Oct 2015 11:56:22 +0000 (13:56 +0200)]
Use correct data types for stats_set_sizes parameters
Joel Rosdahl [Sat, 19 Sep 2015 14:24:26 +0000 (16:24 +0200)]
Clean up
Joel Rosdahl [Mon, 14 Sep 2015 17:48:42 +0000 (19:48 +0200)]
Joel Rosdahl [Sun, 13 Sep 2015 12:35:26 +0000 (14:35 +0200)]
Use correct compression level when copying into the cache
Joel Rosdahl [Sun, 13 Sep 2015 12:31:28 +0000 (14:31 +0200)]
Update NEWS
Vadim Petrochenkov [Mon, 7 Sep 2015 18:36:36 +0000 (21:36 +0300)]
Minor improvements to Windows support
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..
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.
Joel Rosdahl [Sat, 29 Aug 2015 16:32:00 +0000 (18:32 +0200)]
Include strings.h for strcasecmp
Joel Rosdahl [Sat, 29 Aug 2015 16:15:36 +0000 (18:15 +0200)]
Remove unnecessary extra_cppflags, extra_ldflags and all_ldflags variables
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.
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).
Joel Rosdahl [Mon, 17 Aug 2015 17:38:11 +0000 (19:38 +0200)]
Make conversion-to-bool explicit to avoid warnings on legacy systems
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.
Joel Rosdahl [Sun, 16 Aug 2015 12:11:45 +0000 (14:11 +0200)]
Prepare for v3.2.3
Michael Marineau [Thu, 9 Jul 2015 20:42:23 +0000 (13:42 -0700)]
Bail out on --save-temps, an alias for -save-temps
Joel Rosdahl [Sat, 15 Aug 2015 12:38:33 +0000 (14:38 +0200)]
Use correct key for "file info indexes" in --dump-manifest output
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().)
Joel Rosdahl [Fri, 7 Aug 2015 15:45:25 +0000 (17:45 +0200)]
uncrustify: Add sp_after_comma
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.
Joel Rosdahl [Wed, 5 Aug 2015 15:38:40 +0000 (17:38 +0200)]
test: Make subst_env_in_string not depend on existing environment
Joel Rosdahl [Sat, 1 Aug 2015 20:56:03 +0000 (22:56 +0200)]
Update source code style according to uncrustify
Joel Rosdahl [Sat, 1 Aug 2015 20:42:58 +0000 (22:42 +0200)]
Add uncrustify config and make rule
Joel Rosdahl [Sat, 1 Aug 2015 20:07:10 +0000 (22:07 +0200)]
Source code style tweaks
Joel Rosdahl [Sun, 26 Jul 2015 14:38:35 +0000 (16:38 +0200)]
Minor tweaking to comments
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
Joel Rosdahl [Sun, 28 Jun 2015 18:48:42 +0000 (20:48 +0200)]
Update NEWS
Joel Rosdahl [Sun, 28 Jun 2015 18:44:12 +0000 (20:44 +0200)]
Minor cleanups
Chiaki Ishikawa [Thu, 25 Jun 2015 08:33:49 +0000 (17:33 +0900)]
DwarfFission: -gsplit-dwarf support
Joel Rosdahl [Wed, 3 Jun 2015 19:10:46 +0000 (21:10 +0200)]
Avoid calling exit() inside an exit handler
Joel Rosdahl [Mon, 1 Jun 2015 20:06:00 +0000 (22:06 +0200)]
Support external zlib in nonstandard directory
Patch by David Froger.
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>
Joel Rosdahl [Sun, 10 May 2015 12:23:49 +0000 (14:23 +0200)]
Prepare for v3.2.2
Joel Rosdahl [Sun, 10 May 2015 12:16:41 +0000 (14:16 +0200)]
Update NEWS
Joel Rosdahl [Sun, 10 May 2015 12:16:33 +0000 (14:16 +0200)]
Tweak comment
Joel Rosdahl [Mon, 27 Apr 2015 19:05:46 +0000 (21:05 +0200)]
Mention next unreleased version in NEWS
Joel Rosdahl [Mon, 27 Apr 2015 19:03:07 +0000 (21:03 +0200)]
Remove signal-unsafe code from signal handler
Joel Rosdahl [Mon, 27 Apr 2015 18:48:56 +0000 (20:48 +0200)]
Fix build error when compiling ccache with recent clang versions
Joel Rosdahl [Sun, 19 Apr 2015 11:38:29 +0000 (13:38 +0200)]
Update NEWS
Joel Rosdahl [Wed, 4 Feb 2015 20:17:59 +0000 (21:17 +0100)]
Correct doc string of stats_update_size
Joel Rosdahl [Wed, 4 Feb 2015 20:17:36 +0000 (21:17 +0100)]
Minor style tweaks
Joel Rosdahl [Wed, 4 Feb 2015 20:17:17 +0000 (21:17 +0100)]
Fix minor memory leaks
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.
Joel Rosdahl [Sun, 29 Mar 2015 15:08:37 +0000 (17:08 +0200)]
Don't assume that succeeding libc calls don't modify errno
Joel Rosdahl [Sun, 22 Mar 2015 09:26:18 +0000 (10:26 +0100)]
Update copyright years
Joel Rosdahl [Thu, 19 Mar 2015 20:27:26 +0000 (21:27 +0100)]
Introduce logging wrappers for stat/lstat/fstat functions
Chiaki ISHIKAWA [Thu, 19 Mar 2015 14:46:35 +0000 (23:46 +0900)]
Harden logging, perror() replaced with fatal(), unlink() failure recorded
Chiaki ISHIKAWA [Wed, 18 Mar 2015 15:55:04 +0000 (00:55 +0900)]
Always check the result of stat() system calls