]> git.ipfire.org Git - thirdparty/ccache.git/log
thirdparty/ccache.git
14 years agoBail out on too hard compiler options -fdump-*
Joel Rosdahl [Sun, 21 Nov 2010 10:37:42 +0000 (11:37 +0100)] 
Bail out on too hard compiler options -fdump-*

14 years agoPut -E compiler option check in the compopts table
Joel Rosdahl [Sun, 21 Nov 2010 10:36:13 +0000 (11:36 +0100)] 
Put -E compiler option check in the compopts table

14 years agoportability: Support systems without /dev/zero
Joel Rosdahl [Wed, 17 Nov 2010 20:12:22 +0000 (21:12 +0100)] 
portability: Support systems without /dev/zero

14 years agoMerge branch 'maint'
Joel Rosdahl [Sun, 14 Nov 2010 10:05:10 +0000 (11:05 +0100)] 
Merge branch 'maint'

* maint:
  Correctly handle "#line N" (without path) directive for AIX's preprocessor
  Add notes about the AIX compiler's preprocessor output
  Improve documentation of hashed information

14 years agoCorrectly handle "#line N" (without path) directive for AIX's preprocessor
Joel Rosdahl [Sun, 14 Nov 2010 10:00:04 +0000 (11:00 +0100)] 
Correctly handle "#line N" (without path) directive for AIX's preprocessor

14 years agoAdd notes about the AIX compiler's preprocessor output
Joel Rosdahl [Thu, 11 Nov 2010 22:17:02 +0000 (23:17 +0100)] 
Add notes about the AIX compiler's preprocessor output

14 years agoImprove documentation of hashed information
Joel Rosdahl [Thu, 11 Nov 2010 20:14:40 +0000 (21:14 +0100)] 
Improve documentation of hashed information

14 years agoSupport Solaris's stupid /bin/sh
Joel Rosdahl [Wed, 10 Nov 2010 17:43:43 +0000 (18:43 +0100)] 
Support Solaris's stupid /bin/sh

14 years agoMerge branch 'maint'
Joel Rosdahl [Tue, 9 Nov 2010 21:57:41 +0000 (22:57 +0100)] 
Merge branch 'maint'

* maint:
  Fixed typo in x_calloc

14 years agoFixed typo in x_calloc
Joel Rosdahl [Tue, 9 Nov 2010 21:57:28 +0000 (22:57 +0100)] 
Fixed typo in x_calloc

14 years agoMerge branch 'maint'
Joel Rosdahl [Tue, 9 Nov 2010 21:45:13 +0000 (22:45 +0100)] 
Merge branch 'maint'

* maint:
  Make x_malloc and x_calloc always return NULL for zero byte allocations
  Fix calloc success check
  Fix malloc success check

14 years agoMake x_malloc and x_calloc always return NULL for zero byte allocations
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.

14 years agoFix calloc success check
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.

14 years agoFix malloc success check
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.

14 years agoMerge branch 'maint'
Joel Rosdahl [Sun, 7 Nov 2010 18:08:51 +0000 (19:08 +0100)] 
Merge branch 'maint'

* maint:
  Add 3.1.1 news

14 years agoAdd 3.1.1 news v3.1.1
Joel Rosdahl [Sun, 7 Nov 2010 17:51:48 +0000 (18:51 +0100)] 
Add 3.1.1 news

14 years agotest: Support diffs without -u support
Joel Rosdahl [Fri, 5 Nov 2010 22:28:02 +0000 (23:28 +0100)] 
test: Support diffs without -u support

14 years agotest: Improve normalization of --dump-manifest output
Joel Rosdahl [Fri, 5 Nov 2010 21:09:03 +0000 (22:09 +0100)] 
test: Improve normalization of --dump-manifest output

14 years agotest: Normalize compiler-dependent parts of --dump-manifest output
Joel Rosdahl [Fri, 5 Nov 2010 20:06:18 +0000 (21:06 +0100)] 
test: Normalize compiler-dependent parts of --dump-manifest output

14 years agotest: Verify --dump-manifest output
Joel Rosdahl [Fri, 5 Nov 2010 17:27:55 +0000 (18:27 +0100)] 
test: Verify --dump-manifest output

14 years agoComment fix to make Emacs' backward-up-list happy
Joel Rosdahl [Fri, 5 Nov 2010 17:27:40 +0000 (18:27 +0100)] 
Comment fix to make Emacs' backward-up-list happy

14 years agotest: Remove left-over debugging statement
Joel Rosdahl [Wed, 3 Nov 2010 19:43:43 +0000 (20:43 +0100)] 
test: Remove left-over debugging statement

14 years agoSolaris /bin/sh build fix
Joel Rosdahl [Wed, 3 Nov 2010 18:00:33 +0000 (19:00 +0100)] 
Solaris /bin/sh build fix

14 years agoRemove obsolete dump-manifest script
Joel Rosdahl [Wed, 3 Nov 2010 07:06:50 +0000 (08:06 +0100)] 
Remove obsolete dump-manifest script

14 years agotest: Check that device paths (and similar) are not stored in the manifest
Joel Rosdahl [Tue, 2 Nov 2010 22:49:21 +0000 (23:49 +0100)] 
test: Check that device paths (and similar) are not stored in the manifest

14 years agoAdd --dump-manifest command-line option
Joel Rosdahl [Tue, 2 Nov 2010 17:41:18 +0000 (18:41 +0100)] 
Add --dump-manifest command-line option

14 years agoImplement manifest_dump
Joel Rosdahl [Tue, 2 Nov 2010 17:41:07 +0000 (18:41 +0100)] 
Implement manifest_dump

14 years agoAdd version and reserved field to struct manifest
Joel Rosdahl [Tue, 2 Nov 2010 17:40:50 +0000 (18:40 +0100)] 
Add version and reserved field to struct manifest

14 years agoLet format_hash_as_string optionally not include the size suffix
Joel Rosdahl [Tue, 2 Nov 2010 17:39:40 +0000 (18:39 +0100)] 
Let format_hash_as_string optionally not include the size suffix

14 years agoMerge branch 'maint'
Joel Rosdahl [Tue, 2 Nov 2010 06:40:25 +0000 (07:40 +0100)] 
Merge branch 'maint'

* maint:
  Fall back to preprocessor mode when seeing a non-regular include file
  Properly close fd in manifest_get if gzdopen fails
  Check for CRC errors after decompression
  doc: Sort environment variables correctly
  Minor doc string fixes
  Fix NFS object corruption

14 years agoFall back to preprocessor mode when seeing a non-regular include file
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:

14 years agoProperly close fd in manifest_get if gzdopen fails
Joel Rosdahl [Mon, 1 Nov 2010 20:48:41 +0000 (21:48 +0100)] 
Properly close fd in manifest_get if gzdopen fails

14 years agoSort command-line options table
Joel Rosdahl [Mon, 1 Nov 2010 20:23:26 +0000 (21:23 +0100)] 
Sort command-line options table

14 years agoCheck for CRC errors after decompression
Wilson Snyder [Mon, 1 Nov 2010 17:26:22 +0000 (18:26 +0100)] 
Check for CRC errors after decompression

14 years agodoc: Sort environment variables correctly
Joel Rosdahl [Sat, 16 Oct 2010 19:35:31 +0000 (21:35 +0200)] 
doc: Sort environment variables correctly

14 years agoMinor doc string fixes
Joel Rosdahl [Sat, 9 Oct 2010 14:39:35 +0000 (16:39 +0200)] 
Minor doc string fixes

14 years agoFix NFS object corruption
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.

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

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

14 years agodoc: Sort environment variables correctly
Joel Rosdahl [Sat, 16 Oct 2010 19:35:31 +0000 (21:35 +0200)] 
doc: Sort environment variables correctly

14 years agoMinor doc string fixes
Joel Rosdahl [Sat, 9 Oct 2010 14:39:35 +0000 (16:39 +0200)] 
Minor doc string fixes

14 years agoFix NFS object corruption
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.

14 years agoOnly create parent directories when needed to save stat() calls
Joel Rosdahl [Thu, 7 Oct 2010 19:50:29 +0000 (21:50 +0200)] 
Only create parent directories when needed to save stat() calls

14 years agoAdd create_parent_dirs()
Joel Rosdahl [Thu, 7 Oct 2010 19:49:07 +0000 (21:49 +0200)] 
Add create_parent_dirs()

14 years agoImprove basename()'s argument name
Joel Rosdahl [Thu, 7 Oct 2010 19:48:29 +0000 (21:48 +0200)] 
Improve basename()'s argument name

14 years agoAdd const to parameter to dirname()
Joel Rosdahl [Thu, 7 Oct 2010 19:47:55 +0000 (21:47 +0200)] 
Add const to parameter to dirname()

14 years agoAdd size hint to read_text_file()
Joel Rosdahl [Tue, 5 Oct 2010 20:39:50 +0000 (22:39 +0200)] 
Add size hint to read_text_file()

14 years agoFix spelling and grammar in HACKING.txt
Joel Rosdahl [Tue, 5 Oct 2010 20:07:09 +0000 (22:07 +0200)] 
Fix spelling and grammar in HACKING.txt

14 years agoMinor cleanup
Joel Rosdahl [Tue, 5 Oct 2010 20:06:50 +0000 (22:06 +0200)] 
Minor cleanup

14 years agoReduce stat() calls
Wilson Snyder [Tue, 5 Oct 2010 00:01:24 +0000 (20:01 -0400)] 
Reduce stat() calls

14 years agoReduce stat() calls on multilevel caches
Wilson Snyder [Mon, 4 Oct 2010 21:08:35 +0000 (17:08 -0400)] 
Reduce stat() calls on multilevel caches

14 years agoDon't require *saveptr == NULL on first strtok_r invocation
Joel Rosdahl [Mon, 27 Sep 2010 06:04:38 +0000 (08:04 +0200)] 
Don't require *saveptr == NULL on first strtok_r invocation

14 years agoAdd strtok_r() replacement using strtok()
Ramiro Polla [Wed, 22 Sep 2010 01:02:52 +0000 (22:02 -0300)] 
Add strtok_r() replacement using strtok()

14 years agoMerge branch 'maint'
Joel Rosdahl [Sun, 26 Sep 2010 20:47:20 +0000 (22:47 +0200)] 
Merge branch 'maint'

* maint:
  Minor tweak of version finding command
  Fix version.c for older gits

14 years agoMinor tweak of version finding command
Joel Rosdahl [Sun, 26 Sep 2010 20:46:28 +0000 (22:46 +0200)] 
Minor tweak of version finding command

14 years agoFix version.c for older gits
Wilson Snyder [Sun, 26 Sep 2010 20:43:11 +0000 (22:43 +0200)] 
Fix version.c for older gits

14 years agowin32: Properly check whether path is a directory
Ramiro Polla [Wed, 22 Sep 2010 02:53:16 +0000 (23:53 -0300)] 
win32: Properly check whether path is a directory

14 years agoAlso check for %APPDATA% on win32 to use as home
Ramiro Polla [Wed, 22 Sep 2010 02:06:50 +0000 (23:06 -0300)] 
Also check for %APPDATA% on win32 to use as home

14 years agoFix finding of executables with dots in the filename on win32
Ramiro Polla [Wed, 22 Sep 2010 02:06:06 +0000 (23:06 -0300)] 
Fix finding of executables with dots in the filename on win32

14 years agoFix make test on win32
Ramiro Polla [Wed, 22 Sep 2010 01:16:42 +0000 (22:16 -0300)] 
Fix make test on win32

14 years agoImplement win32 hash_command_output()
Ramiro Polla [Wed, 22 Sep 2010 01:15:13 +0000 (22:15 -0300)] 
Implement win32 hash_command_output()

14 years agoFactorize win32getshell() out of win32execute()
Ramiro Polla [Wed, 22 Sep 2010 01:09:14 +0000 (22:09 -0300)] 
Factorize win32getshell() out of win32execute()

14 years agoExport argvtos() as win32argvtos()
Ramiro Polla [Wed, 22 Sep 2010 01:06:27 +0000 (22:06 -0300)] 
Export argvtos() as win32argvtos()

14 years agoOpen files in binary mode
Ramiro Polla [Wed, 22 Sep 2010 01:03:54 +0000 (22:03 -0300)] 
Open files in binary mode

14 years agoCheck $AR when detecting ar as this seems to be the official way
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

14 years agoCorrect example command string for CCACHE_COMPILERCHECK
Joel Rosdahl [Sat, 18 Sep 2010 17:22:32 +0000 (19:22 +0200)] 
Correct example command string for CCACHE_COMPILERCHECK

14 years agoPrint temp file name in debug message
Wilson Snyder [Fri, 17 Sep 2010 20:27:52 +0000 (22:27 +0200)] 
Print temp file name in debug message

14 years agoNEWS tweak v3.1
Joel Rosdahl [Thu, 16 Sep 2010 16:57:02 +0000 (18:57 +0200)] 
NEWS tweak

14 years agoPrepare for version 3.1
Joel Rosdahl [Thu, 16 Sep 2010 16:47:55 +0000 (18:47 +0200)] 
Prepare for version 3.1

14 years agoReword news item
Joel Rosdahl [Wed, 15 Sep 2010 19:42:09 +0000 (21:42 +0200)] 
Reword news item

14 years agoHandle EINTR correctly
Joel Rosdahl [Tue, 14 Sep 2010 15:47:00 +0000 (17:47 +0200)] 
Handle EINTR correctly

14 years agoMake --ccache-skip work for all options
Joel Rosdahl [Tue, 14 Sep 2010 15:10:53 +0000 (17:10 +0200)] 
Make --ccache-skip work for all options

14 years agoDon't compare booleans with 0
Joel Rosdahl [Sun, 12 Sep 2010 14:37:38 +0000 (16:37 +0200)] 
Don't compare booleans with 0

14 years agoRename test_if_compressed() to file_is_compressed()
Joel Rosdahl [Sun, 12 Sep 2010 14:36:48 +0000 (16:36 +0200)] 
Rename test_if_compressed() to file_is_compressed()

14 years agoFix Win32 build error
Joel Rosdahl [Sun, 12 Sep 2010 14:34:14 +0000 (16:34 +0200)] 
Fix Win32 build error

14 years agoDon't hard-code size hint when reading preprocessed file
Joel Rosdahl [Sun, 12 Sep 2010 14:33:43 +0000 (16:33 +0200)] 
Don't hard-code size hint when reading preprocessed file

14 years agoStat file to get size hint in read_file()
Joel Rosdahl [Sun, 12 Sep 2010 14:33:16 +0000 (16:33 +0200)] 
Stat file to get size hint in read_file()

14 years agoMinor updates of NEWS
Joel Rosdahl [Fri, 10 Sep 2010 17:01:52 +0000 (19:01 +0200)] 
Minor updates of NEWS

15 years agoMake the 3.1 news entry spacier
Joel Rosdahl [Mon, 6 Sep 2010 19:33:13 +0000 (21:33 +0200)] 
Make the 3.1 news entry spacier

15 years agoAdd news for version 3.1
Joel Rosdahl [Mon, 6 Sep 2010 19:32:01 +0000 (21:32 +0200)] 
Add news for version 3.1

15 years agoAdd Tor Arne Vestbø as a contributor
Joel Rosdahl [Mon, 6 Sep 2010 19:26:08 +0000 (21:26 +0200)] 
Add Tor Arne Vestbø as a contributor

15 years agoAdd a .tar.xz dist archive
Joel Rosdahl [Mon, 6 Sep 2010 17:27:22 +0000 (19:27 +0200)] 
Add a .tar.xz dist archive

15 years agoUse GNU tar's auto detection of extension when creating dist archives
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

15 years agoDon't hash .gch files twice; hash the hash instead
Joel Rosdahl [Sun, 5 Sep 2010 19:43:06 +0000 (21:43 +0200)] 
Don't hash .gch files twice; hash the hash instead

15 years agoAllow preprocessed hits even when using PCH
Joel Rosdahl [Sun, 5 Sep 2010 13:17:40 +0000 (15:17 +0200)] 
Allow preprocessed hits even when using PCH

15 years agoAvoid preprocessed hits when using precompiled headers
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.

15 years agoAdd "can't use precompiled header" statistics
Joel Rosdahl [Sun, 5 Sep 2010 09:05:04 +0000 (11:05 +0200)] 
Add "can't use precompiled header" statistics

15 years agoSimplify return logic in hash_fd2()
Joel Rosdahl [Sun, 5 Sep 2010 08:51:09 +0000 (10:51 +0200)] 
Simplify return logic in hash_fd2()

15 years agoIncrease read buffer in read_fd2()
Joel Rosdahl [Sun, 5 Sep 2010 08:50:03 +0000 (10:50 +0200)] 
Increase read buffer in read_fd2()

15 years agoPlug memory leak in remember_include_file
Joel Rosdahl [Sun, 5 Sep 2010 08:46:10 +0000 (10:46 +0200)] 
Plug memory leak in remember_include_file

15 years agoAdd hash_file2() and hash_fd2() functions that update two hash sums
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

15 years agoClean cache before first pch test to avoid error when $COMPILER is ccache
Joel Rosdahl [Sat, 4 Sep 2010 16:26:57 +0000 (18:26 +0200)] 
Clean cache before first pch test to avoid error when $COMPILER is ccache

15 years agoAlso require time_macros sloppiness when detecting PCH from .gch
Joel Rosdahl [Thu, 2 Sep 2010 20:43:24 +0000 (22:43 +0200)] 
Also require time_macros sloppiness when detecting PCH from .gch

15 years agoLog incremented statistics counters as "result"
Joel Rosdahl [Thu, 2 Sep 2010 20:16:45 +0000 (22:16 +0200)] 
Log incremented statistics counters as "result"

15 years agoCorrect variable name in comment
Joel Rosdahl [Thu, 2 Sep 2010 16:31:44 +0000 (18:31 +0200)] 
Correct variable name in comment

15 years agoLog which precompiled header was found when detecting .gch
Joel Rosdahl [Thu, 2 Sep 2010 16:31:15 +0000 (18:31 +0200)] 
Log which precompiled header was found when detecting .gch

15 years agoMove lists of compiler options' semantics into a separate compopt.c file
Joel Rosdahl [Wed, 1 Sep 2010 20:49:41 +0000 (22:49 +0200)] 
Move lists of compiler options' semantics into a separate compopt.c file

15 years agoTest -I with concatenated argument
Joel Rosdahl [Wed, 1 Sep 2010 20:48:27 +0000 (22:48 +0200)] 
Test -I with concatenated argument

15 years agoTest that -D isn't hashed in preprocessor mode
Joel Rosdahl [Wed, 1 Sep 2010 20:47:37 +0000 (22:47 +0200)] 
Test that -D isn't hashed in preprocessor mode

15 years agotestfw: Give compile error on empty suite names
Joel Rosdahl [Wed, 1 Sep 2010 20:46:11 +0000 (22:46 +0200)] 
testfw: Give compile error on empty suite names

15 years agoAllow const string parameters to CHECK_STR_EQ()
Joel Rosdahl [Mon, 30 Aug 2010 17:56:03 +0000 (19:56 +0200)] 
Allow const string parameters to CHECK_STR_EQ()