]>
git.ipfire.org Git - thirdparty/ccache.git/log
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.
Joel Rosdahl [Thu, 31 May 2012 20:38:49 +0000 (22:38 +0200)]
Correctly handle backslash in strings in hash_source_code_string
Joel Rosdahl [Thu, 31 May 2012 19:38:39 +0000 (21:38 +0200)]
Clean up code formatting
Joel Rosdahl [Wed, 7 Mar 2012 20:10:59 +0000 (21:10 +0100)]
Don't crash when stderr is closed
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.
Joel Rosdahl [Mon, 16 Jan 2012 21:35:39 +0000 (22:35 +0100)]
Don't crash when current working directory doesn't exist
Joel Rosdahl [Sun, 8 Jan 2012 14:37:50 +0000 (15:37 +0100)]
Prepare for v3.1.7
Joel Rosdahl [Sun, 8 Jan 2012 12:05:28 +0000 (13:05 +0100)]
Update NEWS
Joel Rosdahl [Sun, 8 Jan 2012 11:59:02 +0000 (12:59 +0100)]
Also recognize -specs=file in addition to --specs=file
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.
Joel Rosdahl [Sat, 7 Jan 2012 15:01:45 +0000 (16:01 +0100)]
Fix minor memory leaks
Joel Rosdahl [Fri, 6 Jan 2012 15:03:36 +0000 (16:03 +0100)]
Correct log message when unify mode is enabled
Joel Rosdahl [Fri, 6 Jan 2012 15:02:42 +0000 (16:02 +0100)]
Hash environment variables that affect the preprocessor output
Joel Rosdahl [Thu, 5 Jan 2012 14:58:50 +0000 (15:58 +0100)]
Hash mtime or content of GCC plugins specified with -fplugin=
Joel Rosdahl [Thu, 5 Jan 2012 14:49:26 +0000 (15:49 +0100)]
Use hash_compiler for explicit --specs= options as well
Joel Rosdahl [Thu, 5 Jan 2012 14:49:03 +0000 (15:49 +0100)]
Refactor code into a hash_compiler function
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
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".
Joel Rosdahl [Mon, 19 Dec 2011 19:58:00 +0000 (20:58 +0100)]
Make failure to create cache directories fatal
Joel Rosdahl [Sat, 17 Sep 2011 21:55:22 +0000 (23:55 +0200)]
Remove unused print_executed_command function
Joel Rosdahl [Sun, 11 Sep 2011 19:01:28 +0000 (21:01 +0200)]
Handle non-writable CCACHE_DIR gracefully
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.
Joel Rosdahl [Sun, 21 Aug 2011 14:42:11 +0000 (16:42 +0200)]
Tweak news markup
Joel Rosdahl [Sun, 21 Aug 2011 14:36:29 +0000 (16:36 +0200)]
Prepare for v3.1.6
Joel Rosdahl [Wed, 3 Aug 2011 18:10:57 +0000 (20:10 +0200)]
Don't crash when getcwd() fails
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>.
Jon Bernard [Mon, 30 May 2011 16:42:04 +0000 (12:42 -0400)]
Fix stats display alignment for preprocessing
Joel Rosdahl [Sun, 29 May 2011 16:14:08 +0000 (18:14 +0200)]
Minor spelling tweak
Joel Rosdahl [Sun, 29 May 2011 15:45:28 +0000 (17:45 +0200)]
Prepare for v3.1.5
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.
Joel Rosdahl [Sat, 21 May 2011 17:18:46 +0000 (19:18 +0200)]
Move up "can't use precompiled header" stat so that cache size is at end
Joel Rosdahl [Wed, 4 May 2011 20:34:12 +0000 (22:34 +0200)]
Fix minor memory leak in get_cwd()
Found and suggested by Bo Rydberg.
Grigory Entin [Sun, 17 Apr 2011 20:22:44 +0000 (22:22 +0200)]
Support rewriting paths in -F/-iframework GCC options
Joel Rosdahl [Sun, 17 Apr 2011 15:55:14 +0000 (17:55 +0200)]
Be bug compatible with GCC for -MTarg and -MQarg
It's strange, but apparently, GCC behaves differently for -MT arg and
-MTarg (and similar for -MQ): in the latter case, but not in the former,
an implicit dependency for the object file is added to the dependency file.
Joel Rosdahl [Wed, 13 Apr 2011 20:21:54 +0000 (22:21 +0200)]
Log original command line
Joel Rosdahl [Wed, 13 Apr 2011 19:58:29 +0000 (21:58 +0200)]
Correctly handle -MF/-MT/-MQ with concatenated argument last on commandline
Joel Rosdahl [Sat, 9 Apr 2011 19:44:37 +0000 (21:44 +0200)]
Update copyright for 2011
Joel Rosdahl [Sun, 3 Apr 2011 12:42:33 +0000 (14:42 +0200)]
Add separate counter "called for preprocessing"
Joel Rosdahl [Sun, 3 Apr 2011 11:22:57 +0000 (13:22 +0200)]
Include strerror(errno) in error messages when system calls fail
Joel Rosdahl [Sun, 9 Jan 2011 19:56:49 +0000 (20:56 +0100)]
Prepare for version 3.1.4
Joel Rosdahl [Mon, 3 Jan 2011 20:41:36 +0000 (21:41 +0100)]
Cope with file systems (e.g. FAT) that don't handle symlinks
Joel Rosdahl [Sat, 18 Dec 2010 09:01:15 +0000 (10:01 +0100)]
Close file handle in create_cachedirtag on write error
Joel Rosdahl [Tue, 14 Dec 2010 20:11:36 +0000 (21:11 +0100)]
Remove corrupt manifest files so that they won't block direct mode hits
Joel Rosdahl [Mon, 13 Dec 2010 19:46:06 +0000 (20:46 +0100)]
Avoid creating empty file before creating new manifest file
Joel Rosdahl [Sun, 12 Dec 2010 14:18:06 +0000 (15:18 +0100)]
Compensate for bug in gzputc in zlib 1.2.5
gzputc(f, -1) returns -1 (== EOF) in zlib 1.2.5 but should return 255.
Joel Rosdahl [Sun, 28 Nov 2010 16:43:46 +0000 (17:43 +0100)]
Prepare for version 3.1.3
Joel Rosdahl [Sun, 28 Nov 2010 16:04:38 +0000 (17:04 +0100)]
Handle -MFarg, -MTarg and -MQarg compiler options correctly
GCC apparently (and undocumentedly) accepts these.
Joel Rosdahl [Sun, 28 Nov 2010 14:23:05 +0000 (15:23 +0100)]
Correct location of rpl_* defines to outside "#if !HAVE_VSNPRINTF"
Joel Rosdahl [Mon, 22 Nov 2010 20:09:30 +0000 (21:09 +0100)]
portability: Disable support for long double in snprintf replacement
ccache doesn't link correctly on HP-UX 11.00 when support for long double
is enabled.
Joel Rosdahl [Thu, 18 Nov 2010 17:22:06 +0000 (18:22 +0100)]
portability: Handle system *sprintf functions with bad type signatures
Joel Rosdahl [Wed, 17 Nov 2010 20:20:24 +0000 (21:20 +0100)]
portability: Add Holger Weiß's improved snprintf replacement
Joel Rosdahl [Sun, 21 Nov 2010 19:16:55 +0000 (20:16 +0100)]
Update NEWS for version 3.1.2
Joel Rosdahl [Sun, 21 Nov 2010 16:06:09 +0000 (17:06 +0100)]
test: New attempt at coping with unsynchronized clocks for new include file
Joel Rosdahl [Sun, 21 Nov 2010 12:15:51 +0000 (13:15 +0100)]
Add Björn Jacke as a contributor
Joel Rosdahl [Sun, 21 Nov 2010 10:37:42 +0000 (11:37 +0100)]
Bail out on too hard compiler options -fdump-*
Joel Rosdahl [Sun, 21 Nov 2010 10:36:13 +0000 (11:36 +0100)]
Put -E compiler option check in the compopts table
Joel Rosdahl [Wed, 17 Nov 2010 20:12:22 +0000 (21:12 +0100)]
portability: Support systems without /dev/zero
Joel Rosdahl [Sun, 14 Nov 2010 10:00:04 +0000 (11:00 +0100)]
Correctly handle "#line N" (without path) directive for AIX's preprocessor
Joel Rosdahl [Thu, 11 Nov 2010 22:17:02 +0000 (23:17 +0100)]
Add notes about the AIX compiler's preprocessor output
Joel Rosdahl [Thu, 11 Nov 2010 20:14:40 +0000 (21:14 +0100)]
Improve documentation of hashed information
Joel Rosdahl [Tue, 9 Nov 2010 21:57:28 +0000 (22:57 +0100)]
Fixed typo in x_calloc
Joel Rosdahl [Tue, 9 Nov 2010 21:40:43 +0000 (22:40 +0100)]
Make x_malloc and x_calloc always return NULL for zero byte allocations
This helps making sure that the code handles NULL return values regardless
of platform.
Björn Jacke [Tue, 9 Nov 2010 20:33:46 +0000 (21:33 +0100)]
Fix calloc success check
On Tru64 I had issues with this: If the number of elements or the size is 0
then you may get a NULL pointer back, which is not a sign of an error.
Björn Jacke [Tue, 9 Nov 2010 20:30:16 +0000 (21:30 +0100)]
Fix malloc success check
On AIX and Tru64 I had issues with this: If you allocate 0 byte then you may
get a NULL pointer back, which is not a sign of an error.
Joel Rosdahl [Sun, 7 Nov 2010 17:51:48 +0000 (18:51 +0100)]
Add 3.1.1 news
Joel Rosdahl [Mon, 1 Nov 2010 21:22:08 +0000 (22:22 +0100)]
Fall back to preprocessor mode when seeing a non-regular include file
This makes ccache not hang when some generated source code includes lines
like these:
Joel Rosdahl [Mon, 1 Nov 2010 20:48:41 +0000 (21:48 +0100)]
Properly close fd in manifest_get if gzdopen fails
Wilson Snyder [Mon, 1 Nov 2010 17:26:22 +0000 (18:26 +0100)]
Check for CRC errors after decompression
Joel Rosdahl [Sat, 16 Oct 2010 19:35:31 +0000 (21:35 +0200)]
doc: Sort environment variables correctly
Joel Rosdahl [Sat, 9 Oct 2010 14:39:35 +0000 (16:39 +0200)]
Minor doc string fixes
Wilson Snyder [Fri, 8 Oct 2010 11:28:06 +0000 (07:28 -0400)]
Fix NFS object corruption
Several months ago I reported a problem with NFS corruption from three
simultaneous NFS users of ccache on the same file; two writers to the cache
and one reader.
I believe I have tracked this issue down to a race related to the use of
unlink. On NFS, unlink() is NOT atomic; so what seemed to be happening was
the second writer unlink()ed the first's object, then the reader got the
partially unlinked (truncated) object.
The following patch fixes this issue by always calling rename before a
unlink - a new x_unlink function. There are some places where temp files
are being unlinked; for performance these can remain as the ordinary
unlink.
Joel Rosdahl [Sun, 26 Sep 2010 20:46:28 +0000 (22:46 +0200)]
Minor tweak of version finding command
Wilson Snyder [Sun, 26 Sep 2010 20:43:11 +0000 (22:43 +0200)]
Fix version.c for older gits
Joel Rosdahl [Sat, 18 Sep 2010 21:29:59 +0000 (23:29 +0200)]
Check $AR when detecting ar as this seems to be the official way
Joel Rosdahl [Sat, 18 Sep 2010 17:22:32 +0000 (19:22 +0200)]
Correct example command string for CCACHE_COMPILERCHECK
Wilson Snyder [Fri, 17 Sep 2010 20:27:52 +0000 (22:27 +0200)]
Print temp file name in debug message
Joel Rosdahl [Thu, 16 Sep 2010 16:57:02 +0000 (18:57 +0200)]
NEWS tweak
Joel Rosdahl [Thu, 16 Sep 2010 16:47:55 +0000 (18:47 +0200)]
Prepare for version 3.1
Joel Rosdahl [Wed, 15 Sep 2010 19:42:09 +0000 (21:42 +0200)]
Reword news item
Joel Rosdahl [Tue, 14 Sep 2010 15:47:00 +0000 (17:47 +0200)]
Handle EINTR correctly
Joel Rosdahl [Tue, 14 Sep 2010 15:10:53 +0000 (17:10 +0200)]
Make --ccache-skip work for all options
Joel Rosdahl [Sun, 12 Sep 2010 14:37:38 +0000 (16:37 +0200)]
Don't compare booleans with 0
Joel Rosdahl [Sun, 12 Sep 2010 14:36:48 +0000 (16:36 +0200)]
Rename test_if_compressed() to file_is_compressed()
Joel Rosdahl [Sun, 12 Sep 2010 14:34:14 +0000 (16:34 +0200)]
Fix Win32 build error
Joel Rosdahl [Sun, 12 Sep 2010 14:33:43 +0000 (16:33 +0200)]
Don't hard-code size hint when reading preprocessed file
Joel Rosdahl [Sun, 12 Sep 2010 14:33:16 +0000 (16:33 +0200)]
Stat file to get size hint in read_file()
Joel Rosdahl [Fri, 10 Sep 2010 17:01:52 +0000 (19:01 +0200)]
Minor updates of NEWS
Joel Rosdahl [Mon, 6 Sep 2010 19:33:13 +0000 (21:33 +0200)]
Make the 3.1 news entry spacier
Joel Rosdahl [Mon, 6 Sep 2010 19:32:01 +0000 (21:32 +0200)]
Add news for version 3.1
Joel Rosdahl [Mon, 6 Sep 2010 19:26:08 +0000 (21:26 +0200)]
Add Tor Arne Vestbø as a contributor
Joel Rosdahl [Mon, 6 Sep 2010 17:27:22 +0000 (19:27 +0200)]
Add a .tar.xz dist archive
Joel Rosdahl [Mon, 6 Sep 2010 17:16:12 +0000 (19:16 +0200)]
Use GNU tar's auto detection of extension when creating dist archives
Joel Rosdahl [Sun, 5 Sep 2010 19:43:06 +0000 (21:43 +0200)]
Don't hash .gch files twice; hash the hash instead
Joel Rosdahl [Sun, 5 Sep 2010 13:17:40 +0000 (15:17 +0200)]
Allow preprocessed hits even when using PCH
Joel Rosdahl [Sun, 5 Sep 2010 09:08:09 +0000 (11:08 +0200)]
Avoid preprocessed hits when using precompiled headers
Otherwise, we would get a false hit if the PCH has changed (but the rest of
the source has not) since the preprocessed output doesn't include the PCH
content.
The PCH content is now also included in the preprocessor output hash to
avoid several manifest entries (where the PCH hash differs) pointing to the
same object file.
Joel Rosdahl [Sun, 5 Sep 2010 09:05:04 +0000 (11:05 +0200)]
Add "can't use precompiled header" statistics
Joel Rosdahl [Sun, 5 Sep 2010 08:51:09 +0000 (10:51 +0200)]
Simplify return logic in hash_fd2()
Joel Rosdahl [Sun, 5 Sep 2010 08:50:03 +0000 (10:50 +0200)]
Increase read buffer in read_fd2()
Joel Rosdahl [Sun, 5 Sep 2010 08:46:10 +0000 (10:46 +0200)]
Plug memory leak in remember_include_file
Joel Rosdahl [Sun, 5 Sep 2010 08:28:29 +0000 (10:28 +0200)]
Add hash_file2() and hash_fd2() functions that update two hash sums