]> git.ipfire.org Git - thirdparty/ccache.git/log
thirdparty/ccache.git
13 years agoUpdate manual with new configuration file format and information
Joel Rosdahl [Sun, 19 Feb 2012 19:19:08 +0000 (20:19 +0100)] 
Update manual with new configuration file format and information

13 years agoAdd test for prefix_command
Joel Rosdahl [Mon, 13 Feb 2012 19:12:44 +0000 (20:12 +0100)] 
Add test for prefix_command

13 years agoMake format_human_readable_size saner for size < 1000
Joel Rosdahl [Mon, 13 Feb 2012 19:02:24 +0000 (20:02 +0100)] 
Make format_human_readable_size saner for size < 1000

13 years agoMinor cleanup
Joel Rosdahl [Mon, 13 Feb 2012 18:56:19 +0000 (19:56 +0100)] 
Minor cleanup

13 years agoAdd -c if missing when compiling a header file
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.

13 years agoDon't crash when current working directory doesn't exist
Joel Rosdahl [Mon, 16 Jan 2012 21:35:39 +0000 (22:35 +0100)] 
Don't crash when current working directory doesn't exist

13 years agoMerge branch 'master' into config
Joel Rosdahl [Sat, 14 Jan 2012 13:24:05 +0000 (14:24 +0100)] 
Merge branch 'master' into config

* master:
  Prepare for v3.1.7

13 years agoMerge branch 'maint'
Joel Rosdahl [Sun, 8 Jan 2012 14:42:49 +0000 (15:42 +0100)] 
Merge branch 'maint'

* maint:
  Prepare for v3.1.7

13 years agoPrepare for v3.1.7 v3.1.7
Joel Rosdahl [Sun, 8 Jan 2012 14:37:50 +0000 (15:37 +0100)] 
Prepare for v3.1.7

13 years agoUse booleans for truth values
Joel Rosdahl [Sun, 8 Jan 2012 14:29:19 +0000 (15:29 +0100)] 
Use booleans for truth values

13 years agoMerge branch 'master' into config
Joel Rosdahl [Sun, 8 Jan 2012 14:17:00 +0000 (15:17 +0100)] 
Merge branch 'master' into config

* master:
  while (1) -> while (true)
  Fixup after merge: Make directory creation failure fatal
  Update NEWS
  Also recognize -specs=file in addition to --specs=file
  Revert GCC bug compatibility for -MTarg and -MQarg
  Fix minor memory leaks
  Correct log message when unify mode is enabled
  Hash environment variables that affect the preprocessor output
  Hash mtime or content of GCC plugins specified with -fplugin=
  Use hash_compiler for explicit --specs= options as well
  Refactor code into a hash_compiler function
  Improve description on how to fix bad object files in the cache
  Make failure to create files in cache fatal
  Make failure to create cache directories fatal
  Remove unused print_executed_command function
  Handle non-writable CCACHE_DIR gracefully

Conflicts:
manifest.c
test/framework.c

13 years agowhile (1) -> while (true)
Joel Rosdahl [Sun, 8 Jan 2012 12:30:51 +0000 (13:30 +0100)] 
while (1) -> while (true)

13 years agoFixup after merge: Make directory creation failure fatal
Joel Rosdahl [Sun, 8 Jan 2012 12:29:36 +0000 (13:29 +0100)] 
Fixup after merge: Make directory creation failure fatal

13 years agoMerge branch 'maint'
Joel Rosdahl [Sun, 8 Jan 2012 12:28:27 +0000 (13:28 +0100)] 
Merge branch 'maint'

* maint:
  Update NEWS
  Also recognize -specs=file in addition to --specs=file
  Revert GCC bug compatibility for -MTarg and -MQarg
  Fix minor memory leaks
  Correct log message when unify mode is enabled
  Hash environment variables that affect the preprocessor output
  Hash mtime or content of GCC plugins specified with -fplugin=
  Use hash_compiler for explicit --specs= options as well
  Refactor code into a hash_compiler function
  Improve description on how to fix bad object files in the cache
  Make failure to create files in cache fatal
  Make failure to create cache directories fatal
  Remove unused print_executed_command function
  Handle non-writable CCACHE_DIR gracefully

Conflicts:
ccache.c
test.sh
test/test_argument_processing.c

13 years agoUpdate NEWS
Joel Rosdahl [Sun, 8 Jan 2012 12:05:28 +0000 (13:05 +0100)] 
Update NEWS

13 years agoAlso recognize -specs=file in addition to --specs=file
Joel Rosdahl [Sun, 8 Jan 2012 11:59:02 +0000 (12:59 +0100)] 
Also recognize -specs=file in addition to --specs=file

13 years agoRevert GCC bug compatibility for -MTarg and -MQarg
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.

13 years agoFix minor memory leaks
Joel Rosdahl [Sat, 7 Jan 2012 15:01:45 +0000 (16:01 +0100)] 
Fix minor memory leaks

13 years agoMerge branch 'master' into config
Joel Rosdahl [Fri, 6 Jan 2012 16:03:38 +0000 (17:03 +0100)] 
Merge branch 'master' into config

* master:
  Merge branch 'maint'
  Sync mdfour.c license header with other files, notably fixing FSF's address.

Conflicts:
ccache.c

13 years agoMerge branch 'maint'
Joel Rosdahl [Fri, 6 Jan 2012 15:32:45 +0000 (16:32 +0100)] 
Merge branch 'maint'

* maint:
  Correct log message when unify mode is enabled
  Hash environment variables that affect the preprocessor output
  Hash mtime or content of GCC plugins specified with -fplugin=
  Use hash_compiler for explicit --specs= options as well
  Refactor code into a hash_compiler function
  Improve description on how to fix bad object files in the cache
  Make failure to create files in cache fatal
  Make failure to create cache directories fatal
  Remove unused print_executed_command function
  Handle non-writable CCACHE_DIR gracefully

Conflicts:
    ccache.c
    test.sh

13 years agoCorrect log message when unify mode is enabled
Joel Rosdahl [Fri, 6 Jan 2012 15:03:36 +0000 (16:03 +0100)] 
Correct log message when unify mode is enabled

13 years agoHash environment variables that affect the preprocessor output
Joel Rosdahl [Fri, 6 Jan 2012 15:02:42 +0000 (16:02 +0100)] 
Hash environment variables that affect the preprocessor output

13 years agoHash mtime or content of GCC plugins specified with -fplugin=
Joel Rosdahl [Thu, 5 Jan 2012 14:58:50 +0000 (15:58 +0100)] 
Hash mtime or content of GCC plugins specified with -fplugin=

13 years agoUse hash_compiler for explicit --specs= options as well
Joel Rosdahl [Thu, 5 Jan 2012 14:49:26 +0000 (15:49 +0100)] 
Use hash_compiler for explicit --specs= options as well

13 years agoRefactor code into a hash_compiler function
Joel Rosdahl [Thu, 5 Jan 2012 14:49:03 +0000 (15:49 +0100)] 
Refactor code into a hash_compiler function

13 years agoImprove description on how to fix bad object files in the cache
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

13 years agoMake failure to create files in cache fatal
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".

13 years agoMake failure to create cache directories fatal
Joel Rosdahl [Mon, 19 Dec 2011 19:58:00 +0000 (20:58 +0100)] 
Make failure to create cache directories fatal

13 years agoDon't remove *_lookup.c files when cleaning
Joel Rosdahl [Mon, 19 Sep 2011 20:00:45 +0000 (22:00 +0200)] 
Don't remove *_lookup.c files when cleaning

13 years agoconfig: Remove detect_shebang since it's only used for tests
Joel Rosdahl [Sun, 18 Sep 2011 19:22:17 +0000 (21:22 +0200)] 
config: Remove detect_shebang since it's only used for tests

13 years agoconfig: Update help text with information about size suffixes
Joel Rosdahl [Sun, 18 Sep 2011 12:07:03 +0000 (14:07 +0200)] 
config: Update help text with information about size suffixes

13 years agoconfig: Rename --set-option to --set-config
Joel Rosdahl [Sun, 18 Sep 2011 12:06:35 +0000 (14:06 +0200)] 
config: Rename --set-option to --set-config

13 years agoRemove unused print_executed_command function
Joel Rosdahl [Sat, 17 Sep 2011 21:55:22 +0000 (23:55 +0200)] 
Remove unused print_executed_command function

13 years agoHandle non-writable CCACHE_DIR gracefully
Joel Rosdahl [Sun, 11 Sep 2011 19:01:28 +0000 (21:01 +0200)] 
Handle non-writable CCACHE_DIR gracefully

14 years agoMerge branch 'maint'
Joel Rosdahl [Sun, 4 Sep 2011 09:08:03 +0000 (11:08 +0200)] 
Merge branch 'maint'

* maint:
  Sync mdfour.c license header with other files, notably fixing FSF's address.

14 years agoSync mdfour.c license header with other files, notably fixing FSF's address.
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.

14 years agoMerge branch 'master' into config
Joel Rosdahl [Sun, 21 Aug 2011 14:47:27 +0000 (16:47 +0200)] 
Merge branch 'master' into config

* master:
  Tweak news markup
  Prepare for v3.1.6

14 years agoMerge branch 'maint'
Joel Rosdahl [Sun, 21 Aug 2011 14:47:20 +0000 (16:47 +0200)] 
Merge branch 'maint'

* maint:
  Tweak news markup
  Prepare for v3.1.6

14 years agoTweak news markup
Joel Rosdahl [Sun, 21 Aug 2011 14:42:11 +0000 (16:42 +0200)] 
Tweak news markup

14 years agoPrepare for v3.1.6 v3.1.6
Joel Rosdahl [Sun, 21 Aug 2011 14:36:29 +0000 (16:36 +0200)] 
Prepare for v3.1.6

14 years agoMerge branch 'master' into config
Joel Rosdahl [Sat, 20 Aug 2011 17:02:36 +0000 (19:02 +0200)] 
Merge branch 'master' into config

* master:
  Support -Xclang compiler option.
  Fix -fprofile-*=dir handling when dir doesn't exist

14 years agoSupport -Xclang compiler option. 4/head
Bernhard Bauer [Tue, 16 Aug 2011 08:23:55 +0000 (10:23 +0200)] 
Support -Xclang compiler option.

14 years agoFix -fprofile-*=dir handling when dir doesn't exist
Joel Rosdahl [Mon, 15 Aug 2011 20:38:26 +0000 (22:38 +0200)] 
Fix -fprofile-*=dir handling when dir doesn't exist

14 years agoUse true/false for boolean values
Joel Rosdahl [Mon, 15 Aug 2011 19:34:00 +0000 (21:34 +0200)] 
Use true/false for boolean values

14 years agoFix code style
Joel Rosdahl [Mon, 15 Aug 2011 06:27:29 +0000 (08:27 +0200)] 
Fix code style

14 years agoMerge branch 'master' into config
Joel Rosdahl [Mon, 15 Aug 2011 06:26:36 +0000 (08:26 +0200)] 
Merge branch 'master' into config

* master: (22 commits)
  Add the newest contributors
  Fix potential free() of non-heap memory
  Plug minor memory leak
  Minor code-style cleanup
  Correct win32 ifndefs
  Don't crash when getcwd() fails
  rework profile directory handling
  set output_to_real_object default to false, we get errors handling hardlinks
  Using hardlinks if requested
  comment
  Make sure we only handle known -fprofile flags. Rewrite profile directory to use absolute paths on commandline to increase direct / preprocessed hit rate.
  Move -fprofile handling into cc_process_args
  Look for .gcda files in profile directory when using profile
  Fix profile_use directory, and valgrind warning
  refactor to handle profile directories
  Use hash_delimeter before hashing profile data
  Avoid output_obj being freed by accident
  Fix comment style
  Hash the cwd if we're outputting to our object file first
  handle -fprofile-use
  ...

Conflicts:
ccache.c
util.c

14 years agoAdd the newest contributors
Joel Rosdahl [Sun, 14 Aug 2011 17:51:51 +0000 (19:51 +0200)] 
Add the newest contributors

14 years agoFix potential free() of non-heap memory
Joel Rosdahl [Sun, 14 Aug 2011 17:35:24 +0000 (19:35 +0200)] 
Fix potential free() of non-heap memory

14 years agoPlug minor memory leak
Joel Rosdahl [Sun, 14 Aug 2011 17:34:44 +0000 (19:34 +0200)] 
Plug minor memory leak

14 years agoMinor code-style cleanup
Joel Rosdahl [Sun, 14 Aug 2011 17:31:27 +0000 (19:31 +0200)] 
Minor code-style cleanup

14 years agoMerge remote-tracking branch 'catlee/profile'
Joel Rosdahl [Sun, 14 Aug 2011 17:27:25 +0000 (19:27 +0200)] 
Merge remote-tracking branch 'catlee/profile'

* catlee/profile:
  rework profile directory handling
  set output_to_real_object default to false, we get errors handling hardlinks
  Using hardlinks if requested
  comment
  Make sure we only handle known -fprofile flags. Rewrite profile directory to use absolute paths on commandline to increase direct / preprocessed hit rate.
  Move -fprofile handling into cc_process_args
  Look for .gcda files in profile directory when using profile
  Fix profile_use directory, and valgrind warning
  refactor to handle profile directories
  Use hash_delimeter before hashing profile data
  Avoid output_obj being freed by accident
  Fix comment style
  Hash the cwd if we're outputting to our object file first
  handle -fprofile-use
  adding tests
  Get -fprofile-generate, -fprofile-arcs working

14 years agoCorrect win32 ifndefs
Joel Rosdahl [Sun, 14 Aug 2011 10:03:42 +0000 (12:03 +0200)] 
Correct win32 ifndefs

14 years agoMerge branch 'maint'
Joel Rosdahl [Wed, 3 Aug 2011 18:31:01 +0000 (20:31 +0200)] 
Merge branch 'maint'

* maint:
  Don't crash when getcwd() fails

14 years agoDon't crash when getcwd() fails
Joel Rosdahl [Wed, 3 Aug 2011 18:10:57 +0000 (20:10 +0200)] 
Don't crash when getcwd() fails

14 years agoMerge branch 'master' into config
Joel Rosdahl [Sun, 31 Jul 2011 21:01:27 +0000 (23:01 +0200)] 
Merge branch 'master' into config

* master:
  Add missing header to header list in dev.mk.in

Conflicts:
dev.mk.in

14 years agoAdd missing header to header list in dev.mk.in
Joel Rosdahl [Sun, 31 Jul 2011 20:52:17 +0000 (22:52 +0200)] 
Add missing header to header list in dev.mk.in

14 years agoAdd missing headers to dev.mk.in
Joel Rosdahl [Sun, 31 Jul 2011 20:28:26 +0000 (22:28 +0200)] 
Add missing headers to dev.mk.in

14 years agorework profile directory handling 2/head
Chris AtLee [Fri, 29 Jul 2011 21:20:54 +0000 (17:20 -0400)] 
rework profile directory handling

14 years agoset output_to_real_object default to false, we get errors handling
Chris AtLee [Fri, 29 Jul 2011 20:55:55 +0000 (16:55 -0400)] 
set output_to_real_object default to false, we get errors handling
hardlinks

14 years agoUsing hardlinks if requested
Chris AtLee [Fri, 29 Jul 2011 20:52:18 +0000 (16:52 -0400)] 
Using hardlinks if requested

14 years agocomment
Chris AtLee [Fri, 29 Jul 2011 20:46:45 +0000 (16:46 -0400)] 
comment

14 years agoDon't fetch current time for each logged configuration item
Joel Rosdahl [Fri, 29 Jul 2011 19:45:26 +0000 (21:45 +0200)] 
Don't fetch current time for each logged configuration item

14 years agoLog config to log file if enabled
Joel Rosdahl [Fri, 29 Jul 2011 19:29:43 +0000 (21:29 +0200)] 
Log config to log file if enabled

14 years agoAdd cc_log_without_flush
Joel Rosdahl [Fri, 29 Jul 2011 19:15:05 +0000 (21:15 +0200)] 
Add cc_log_without_flush

14 years agoconfig: Track and print configuration item origins
Joel Rosdahl [Fri, 29 Jul 2011 18:58:08 +0000 (20:58 +0200)] 
config: Track and print configuration item origins

14 years agoUse NULL instead of 0 for null pointer
Joel Rosdahl [Fri, 29 Jul 2011 15:39:53 +0000 (17:39 +0200)] 
Use NULL instead of 0 for null pointer

14 years agoconfig: Use code generated by gperf for looking up configuration items
Joel Rosdahl [Fri, 29 Jul 2011 14:01:48 +0000 (16:01 +0200)] 
config: Use code generated by gperf for looking up configuration items

14 years agoconfig: Add -p/--print-config option
Joel Rosdahl [Tue, 26 Jul 2011 20:10:31 +0000 (22:10 +0200)] 
config: Add -p/--print-config option

14 years agoconfig: Add conf_print_items function
Joel Rosdahl [Tue, 26 Jul 2011 20:10:17 +0000 (22:10 +0200)] 
config: Add conf_print_items function

14 years agoRename x_asprintf2 to reformat
Joel Rosdahl [Tue, 26 Jul 2011 19:53:18 +0000 (21:53 +0200)] 
Rename x_asprintf2 to reformat

14 years agoconfig: Add -o/--set-option command-line option
Joel Rosdahl [Tue, 26 Jul 2011 19:05:50 +0000 (21:05 +0200)] 
config: Add -o/--set-option command-line option

14 years agoconfig: Adjust the default cache size limit to 5 Gbytes
Joel Rosdahl [Mon, 25 Jul 2011 21:56:31 +0000 (23:56 +0200)] 
config: Adjust the default cache size limit to 5 Gbytes

14 years agoLet k/M/G/T be 10-based suffixes and introduce 2-based Ki/Mi/Gi/Ti as well
Joel Rosdahl [Mon, 25 Jul 2011 21:48:23 +0000 (23:48 +0200)] 
Let k/M/G/T be 10-based suffixes and introduce 2-based Ki/Mi/Gi/Ti as well

14 years agoUse real size instead of multiples of 1024 for sizes
Joel Rosdahl [Mon, 25 Jul 2011 19:47:53 +0000 (21:47 +0200)] 
Use real size instead of multiples of 1024 for sizes

Exception: Size values in stats files are still in units of 1024 for
backward compatibility reasons.

14 years agotest: Fix code formatting
Joel Rosdahl [Sun, 24 Jul 2011 15:59:29 +0000 (17:59 +0200)] 
test: Fix code formatting

14 years agotest: Add CHECKM macro that accepts an error message
Joel Rosdahl [Sun, 24 Jul 2011 15:58:33 +0000 (17:58 +0200)] 
test: Add CHECKM macro that accepts an error message

14 years agotest: Use an int64_t variant of CHECK_INT_EQ for all integer types
Joel Rosdahl [Sun, 24 Jul 2011 12:13:15 +0000 (14:13 +0200)] 
test: Use an int64_t variant of CHECK_INT_EQ for all integer types

14 years agotest: Call correct function in CHECK_UNS_EQ
Joel Rosdahl [Sun, 24 Jul 2011 11:54:58 +0000 (13:54 +0200)] 
test: Call correct function in CHECK_UNS_EQ

14 years agoMake sure we only handle known -fprofile flags. Rewrite profile
Chris AtLee [Mon, 25 Jul 2011 12:38:01 +0000 (08:38 -0400)] 
Make sure we only handle known -fprofile flags. Rewrite profile
directory to use absolute paths on commandline to increase direct /
preprocessed hit rate.

14 years agoMove -fprofile handling into cc_process_args
Chris AtLee [Mon, 25 Jul 2011 12:10:44 +0000 (08:10 -0400)] 
Move -fprofile handling into cc_process_args

14 years agoLook for .gcda files in profile directory when using profile
Chris AtLee [Mon, 25 Jul 2011 11:18:38 +0000 (07:18 -0400)] 
Look for .gcda files in profile directory when using profile

Minor whitespace fixes; removing unused declaration

14 years agoFix profile_use directory, and valgrind warning
Chris AtLee [Sat, 23 Jul 2011 03:21:26 +0000 (23:21 -0400)] 
Fix profile_use directory, and valgrind warning

14 years agorefactor to handle profile directories
Chris AtLee [Sat, 23 Jul 2011 03:09:05 +0000 (23:09 -0400)] 
refactor to handle profile directories

14 years agoUse hash_delimeter before hashing profile data
Chris AtLee [Fri, 22 Jul 2011 18:56:31 +0000 (14:56 -0400)] 
Use hash_delimeter before hashing profile data

14 years agoAvoid output_obj being freed by accident
Chris AtLee [Fri, 22 Jul 2011 18:51:40 +0000 (14:51 -0400)] 
Avoid output_obj being freed by accident

14 years agoFix comment style
Chris AtLee [Fri, 22 Jul 2011 18:27:06 +0000 (14:27 -0400)] 
Fix comment style

14 years agoHash the cwd if we're outputting to our object file first
Chris AtLee [Thu, 21 Jul 2011 20:36:35 +0000 (16:36 -0400)] 
Hash the cwd if we're outputting to our object file first

14 years agoImprove error message in case of failed execv()
Joel Rosdahl [Tue, 19 Jul 2011 20:02:57 +0000 (22:02 +0200)] 
Improve error message in case of failed execv()

14 years agoconfig: Use files and size limits from config
Joel Rosdahl [Tue, 19 Jul 2011 17:42:13 +0000 (19:42 +0200)] 
config: Use files and size limits from config

14 years agoconfig: Save primary configuration file path till later
Joel Rosdahl [Tue, 19 Jul 2011 17:40:50 +0000 (19:40 +0200)] 
config: Save primary configuration file path till later

14 years agoconfig: Free output from parse_line correctly
Joel Rosdahl [Tue, 19 Jul 2011 17:37:21 +0000 (19:37 +0200)] 
config: Free output from parse_line correctly

14 years agoconfig: Implement conf_set_value_in_file()
Joel Rosdahl [Tue, 19 Jul 2011 10:44:20 +0000 (12:44 +0200)] 
config: Implement conf_set_value_in_file()

14 years agoconfig: Refactor parse_line to only return parsed key and value
Joel Rosdahl [Tue, 19 Jul 2011 10:21:57 +0000 (12:21 +0200)] 
config: Refactor parse_line to only return parsed key and value

14 years agoconfig: Create initial configuration file from stats limits
Joel Rosdahl [Mon, 18 Jul 2011 11:15:45 +0000 (13:15 +0200)] 
config: Create initial configuration file from stats limits

14 years agoTeach parse_size_with_suffix to parse float-style sizes
Joel Rosdahl [Mon, 18 Jul 2011 10:40:19 +0000 (12:40 +0200)] 
Teach parse_size_with_suffix to parse float-style sizes

14 years agoAdd utility function format_parsable_size_with_suffix
Joel Rosdahl [Mon, 18 Jul 2011 10:22:08 +0000 (12:22 +0200)] 
Add utility function format_parsable_size_with_suffix

14 years agoAdd test for format_human_readable_size
Joel Rosdahl [Mon, 18 Jul 2011 10:14:28 +0000 (12:14 +0200)] 
Add test for format_human_readable_size

14 years agoRename format_size to format_human_readable_size
Joel Rosdahl [Mon, 18 Jul 2011 10:09:23 +0000 (12:09 +0200)] 
Rename format_size to format_human_readable_size

14 years agoSet orig_args before find_compiler() because it's needed in failed()
Joel Rosdahl [Sun, 17 Jul 2011 21:12:14 +0000 (23:12 +0200)] 
Set orig_args before find_compiler() because it's needed in failed()

14 years agoconfig: Assert that conf has been created
Joel Rosdahl [Sun, 17 Jul 2011 10:07:33 +0000 (12:07 +0200)] 
config: Assert that conf has been created