]> git.ipfire.org Git - thirdparty/ccache.git/log
thirdparty/ccache.git
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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

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

14 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

14 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()

14 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()

14 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

14 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

14 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

14 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

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

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

14 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

14 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

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

14 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

14 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

14 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()

14 years agoReset output_is_precompiled_header in cc_reset()
Joel Rosdahl [Sun, 29 Aug 2010 11:42:22 +0000 (13:42 +0200)] 
Reset output_is_precompiled_header in cc_reset()

14 years agoUse bool, true and false for boolean values
Joel Rosdahl [Sun, 29 Aug 2010 11:25:51 +0000 (13:25 +0200)] 
Use bool, true and false for boolean values

14 years agoAdd autoconf check and workaround for stdbool.h
Joel Rosdahl [Sun, 29 Aug 2010 10:09:23 +0000 (12:09 +0200)] 
Add autoconf check and workaround for stdbool.h

14 years agoRemove includes that are redundant after system.h introduction
Joel Rosdahl [Sun, 29 Aug 2010 10:02:44 +0000 (12:02 +0200)] 
Remove includes that are redundant after system.h introduction

14 years agoAdd missing license header in lockfile.c
Joel Rosdahl [Sun, 29 Aug 2010 09:58:00 +0000 (11:58 +0200)] 
Add missing license header in lockfile.c

14 years agoIntroduce system.h
Joel Rosdahl [Sun, 29 Aug 2010 09:54:08 +0000 (11:54 +0200)] 
Introduce system.h

14 years agoExtract knowledge about languages and extensions into a separate file
Joel Rosdahl [Sun, 29 Aug 2010 08:50:38 +0000 (10:50 +0200)] 
Extract knowledge about languages and extensions into a separate file

14 years agoUse MYNAME in usage and license text
Joel Rosdahl [Sun, 29 Aug 2010 08:35:15 +0000 (10:35 +0200)] 
Use MYNAME in usage and license text

14 years agoMinor doc tweak
Joel Rosdahl [Sat, 28 Aug 2010 16:17:59 +0000 (18:17 +0200)] 
Minor doc tweak

14 years agoDocument new support for precompiled headers
Joel Rosdahl [Sat, 28 Aug 2010 16:04:46 +0000 (18:04 +0200)] 
Document new support for precompiled headers

14 years agoAdd test that -fpch-preprocess is added when using -include
Joel Rosdahl [Sat, 28 Aug 2010 14:46:32 +0000 (16:46 +0200)] 
Add test that -fpch-preprocess is added when using -include

14 years agoDon't require .gch to be a directory since a file is also valid
Joel Rosdahl [Sat, 28 Aug 2010 14:31:43 +0000 (16:31 +0200)] 
Don't require .gch to be a directory since a file is also valid

14 years agoHash all arguments for pch and add -fpch-preprocess if a .gch is found
Tor Arne Vestbø [Sat, 28 Aug 2010 13:24:15 +0000 (15:24 +0200)] 
Hash all arguments for pch and add -fpch-preprocess if a .gch is found

14 years agoAdd -install_name to options that take an argument
Joel Rosdahl [Fri, 27 Aug 2010 18:29:15 +0000 (20:29 +0200)] 
Add -install_name to options that take an argument

According to Christian Lohmaier, OpenOffice.org uses something like
"-install_name @_(50 underscores)identifier/libraryname" when linking on
Darwin. Adding -install_name to the list of options that take an argument
makes the "called for link" counter tick instead of "unsupported compiler
option".

14 years agoread_file(): Use x_realloc instead of realloc
Joel Rosdahl [Fri, 27 Aug 2010 06:30:14 +0000 (08:30 +0200)] 
read_file(): Use x_realloc instead of realloc

14 years agoread_file(): Don't expose pointer to freed memory
Joel Rosdahl [Fri, 27 Aug 2010 06:29:26 +0000 (08:29 +0200)] 
read_file(): Don't expose pointer to freed memory

14 years agoRead files into memory instead of using mmap()
Joel Rosdahl [Thu, 26 Aug 2010 20:23:32 +0000 (22:23 +0200)] 
Read files into memory instead of using mmap()

This has two benefits:

- It's more robust against file changes during reading.
- It improves performance on poor systems where mmap() doesn't use the disk
  cache.

14 years agoImplement read_file() for reading an arbitrary file into memory
Joel Rosdahl [Thu, 26 Aug 2010 19:09:02 +0000 (21:09 +0200)] 
Implement read_file() for reading an arbitrary file into memory

14 years agoRename read_file() to read_text_file()
Joel Rosdahl [Thu, 26 Aug 2010 18:40:28 +0000 (20:40 +0200)] 
Rename read_file() to read_text_file()

14 years agoread_manifest(): Use x_calloc() instead of x_malloc()+memset()
Joel Rosdahl [Wed, 25 Aug 2010 20:16:34 +0000 (22:16 +0200)] 
read_manifest(): Use x_calloc() instead of x_malloc()+memset()

14 years agoAdd x_calloc()
Joel Rosdahl [Wed, 25 Aug 2010 20:11:10 +0000 (22:11 +0200)] 
Add x_calloc()

14 years agoread_file(): Allocate memory only if the file exists
Joel Rosdahl [Wed, 25 Aug 2010 20:10:27 +0000 (22:10 +0200)] 
read_file(): Allocate memory only if the file exists

14 years agotest: Fix bad test for compiler pch support
Joel Rosdahl [Mon, 23 Aug 2010 17:12:27 +0000 (19:12 +0200)] 
test: Fix bad test for compiler pch support

14 years agotest: Check that compiler is actually able to use precompiled headers
Joel Rosdahl [Mon, 23 Aug 2010 05:56:52 +0000 (07:56 +0200)] 
test: Check that compiler is actually able to use precompiled headers

14 years agotest: Print note when not running pch tests
Joel Rosdahl [Sun, 22 Aug 2010 16:06:52 +0000 (18:06 +0200)] 
test: Print note when not running pch tests

14 years agoAlso check if the -fpch-preprocess option is supported for pch tests
Joel Rosdahl [Sun, 22 Aug 2010 15:26:04 +0000 (17:26 +0200)] 
Also check if the -fpch-preprocess option is supported for pch tests

14 years agoSupport Solaris stupid /bin/sh in pch test
Joel Rosdahl [Sun, 22 Aug 2010 15:25:17 +0000 (17:25 +0200)] 
Support Solaris stupid /bin/sh in pch test

14 years agoFix bug in args_strip()
Joel Rosdahl [Sun, 22 Aug 2010 10:31:04 +0000 (12:31 +0200)] 
Fix bug in args_strip()

14 years agoAdd support for caching precompiled headers
Joel Rosdahl [Sun, 22 Aug 2010 10:23:10 +0000 (12:23 +0200)] 
Add support for caching precompiled headers

14 years agoReorder languages array with more common extensions first
Joel Rosdahl [Sat, 21 Aug 2010 16:47:23 +0000 (18:47 +0200)] 
Reorder languages array with more common extensions first

14 years agoAdd .cp and .CP as known C++ suffixes
Joel Rosdahl [Sat, 21 Aug 2010 16:46:30 +0000 (18:46 +0200)] 
Add .cp and .CP as known C++ suffixes

14 years agoAdd support for using precompiled headers if -fpch-preprocess is used
Joel Rosdahl [Sat, 21 Aug 2010 14:46:51 +0000 (16:46 +0200)] 
Add support for using precompiled headers if -fpch-preprocess is used

14 years agoLog when a manifest lookup fails due to a missing file
Joel Rosdahl [Sat, 21 Aug 2010 14:42:47 +0000 (16:42 +0200)] 
Log when a manifest lookup fails due to a missing file

14 years agoCorrect data type for return value from read()
Joel Rosdahl [Wed, 18 Aug 2010 20:49:53 +0000 (22:49 +0200)] 
Correct data type for return value from read()

14 years agoAdd some tests of MD4 hash functions
Joel Rosdahl [Wed, 18 Aug 2010 19:42:06 +0000 (21:42 +0200)] 
Add some tests of MD4 hash functions

14 years agoMake hash_result() idempotent
Joel Rosdahl [Wed, 18 Aug 2010 19:41:45 +0000 (21:41 +0200)] 
Make hash_result() idempotent

14 years agotest: Make sure CCACHE_NODIRECT is set before running a test suite
Joel Rosdahl [Mon, 16 Aug 2010 20:03:01 +0000 (22:03 +0200)] 
test: Make sure CCACHE_NODIRECT is set before running a test suite

15 years agoRemove unused declaration
Joel Rosdahl [Sat, 14 Aug 2010 21:27:21 +0000 (23:27 +0200)] 
Remove unused declaration

15 years agotest: Avoid using "echo -n" for portability reasons
Joel Rosdahl [Sat, 14 Aug 2010 19:56:57 +0000 (21:56 +0200)] 
test: Avoid using "echo -n" for portability reasons

15 years agotest: Avoid using "echo -n" for portability reasons
Joel Rosdahl [Sat, 14 Aug 2010 19:41:46 +0000 (21:41 +0200)] 
test: Avoid using "echo -n" for portability reasons

15 years agoLog in parent process in hash_command_output() to get correct PID in log
Joel Rosdahl [Sat, 14 Aug 2010 19:25:15 +0000 (21:25 +0200)] 
Log in parent process in hash_command_output() to get correct PID in log

15 years agoUse reentrant strtok_r() instead of strtok()
Joel Rosdahl [Sat, 14 Aug 2010 19:19:32 +0000 (21:19 +0200)] 
Use reentrant strtok_r() instead of strtok()

15 years agoAdd test suite for struct args
Joel Rosdahl [Sat, 14 Aug 2010 18:39:12 +0000 (20:39 +0200)] 
Add test suite for struct args

15 years agoDon't use /bin/sh when executing compiler check command
Joel Rosdahl [Sat, 14 Aug 2010 15:55:14 +0000 (17:55 +0200)] 
Don't use /bin/sh when executing compiler check command

Using /bin/sh gives too much overhead for the benefit of being able to
specify more complex commands directly.

15 years agoMake args_init_from_string() split on more whitespace characters
Joel Rosdahl [Sat, 14 Aug 2010 13:40:06 +0000 (15:40 +0200)] 
Make args_init_from_string() split on more whitespace characters

15 years agoAdd hash_command_output() and hash_multicommand_output()
Joel Rosdahl [Sat, 14 Aug 2010 13:33:11 +0000 (15:33 +0200)] 
Add hash_command_output() and hash_multicommand_output()

15 years agoGeneralize cc_log_executed_command
Joel Rosdahl [Sat, 14 Aug 2010 09:53:24 +0000 (11:53 +0200)] 
Generalize cc_log_executed_command

15 years agoPut args declarations higher up in ccache.h
Joel Rosdahl [Sat, 14 Aug 2010 09:50:04 +0000 (11:50 +0200)] 
Put args declarations higher up in ccache.h

15 years agotestfw: Let the compiler catch bad test case names
Joel Rosdahl [Sat, 14 Aug 2010 09:36:58 +0000 (11:36 +0200)] 
testfw: Let the compiler catch bad test case names

15 years agotestfw: Simplify accounting and printing of failed test counters
Joel Rosdahl [Sat, 14 Aug 2010 09:31:31 +0000 (11:31 +0200)] 
testfw: Simplify accounting and printing of failed test counters

15 years agoAdd args_set() function
Joel Rosdahl [Fri, 13 Aug 2010 21:03:37 +0000 (23:03 +0200)] 
Add args_set() function

15 years agoAdd hash_equal() function
Joel Rosdahl [Fri, 13 Aug 2010 20:58:06 +0000 (22:58 +0200)] 
Add hash_equal() function

15 years agoPut functions in hash.c in a more natural order
Joel Rosdahl [Fri, 13 Aug 2010 20:55:09 +0000 (22:55 +0200)] 
Put functions in hash.c in a more natural order

15 years agoperf.py: Enable more accurate measurement of cache hit performance
Joel Rosdahl [Fri, 13 Aug 2010 18:38:14 +0000 (20:38 +0200)] 
perf.py: Enable more accurate measurement of cache hit performance

15 years agoAdd support for running a custom command to identify the compiler
Joel Rosdahl [Tue, 10 Aug 2010 18:26:10 +0000 (20:26 +0200)] 
Add support for running a custom command to identify the compiler

15 years agotest: Add tests for CCACHE_COMPILERCHECK
Joel Rosdahl [Sun, 8 Aug 2010 20:26:33 +0000 (22:26 +0200)] 
test: Add tests for CCACHE_COMPILERCHECK

15 years agodoc: Add missing newline
Joel Rosdahl [Sun, 8 Aug 2010 20:25:35 +0000 (22:25 +0200)] 
doc: Add missing newline

15 years agodoc: Improve CCACHE_COMPILERCHECK description
Joel Rosdahl [Sun, 8 Aug 2010 20:25:20 +0000 (22:25 +0200)] 
doc: Improve CCACHE_COMPILERCHECK description

15 years agotest: List all suites in all_suites and exclude unsupported suites on win32
Joel Rosdahl [Sun, 8 Aug 2010 17:47:25 +0000 (19:47 +0200)] 
test: List all suites in all_suites and exclude unsupported suites on win32

15 years agodoc: Clarify installation methods
Joel Rosdahl [Fri, 6 Aug 2010 08:33:53 +0000 (10:33 +0200)] 
doc: Clarify installation methods

15 years agoUpdate HACKING.txt with commit message width hint
Joel Rosdahl [Thu, 5 Aug 2010 08:56:01 +0000 (10:56 +0200)] 
Update HACKING.txt with commit message width hint

15 years agoDon't remove version.c when cleaning a release build
Joel Rosdahl [Wed, 4 Aug 2010 17:58:49 +0000 (19:58 +0200)] 
Don't remove version.c when cleaning a release build

15 years agoSpell Ville Skyttä's name correctly
Joel Rosdahl [Wed, 4 Aug 2010 15:03:17 +0000 (17:03 +0200)] 
Spell Ville Skyttä's name correctly

15 years agoUpdate license for mdfour.c to GPLv3+
Joel Rosdahl [Wed, 4 Aug 2010 11:09:55 +0000 (13:09 +0200)] 
Update license for mdfour.c to GPLv3+

15 years agoMake reading and writing of statistics counters forward-compatible
Joel Rosdahl [Wed, 4 Aug 2010 09:03:40 +0000 (11:03 +0200)] 
Make reading and writing of statistics counters forward-compatible

Previously, ccache threw away counters values it didn't know about, i.e., new
counters coming from later ccache versions.

15 years agoExplicitly set values of enum stats since they are important
Joel Rosdahl [Wed, 4 Aug 2010 08:39:02 +0000 (10:39 +0200)] 
Explicitly set values of enum stats since they are important

15 years agoMove read_file from test/util.c to util.c
Joel Rosdahl [Tue, 3 Aug 2010 21:09:16 +0000 (23:09 +0200)] 
Move read_file from test/util.c to util.c

15 years agoIsolate knowledge of the counters data structure to stats.c
Joel Rosdahl [Tue, 3 Aug 2010 15:27:41 +0000 (17:27 +0200)] 
Isolate knowledge of the counters data structure to stats.c

15 years agoFold stats_read_fd() into stats_read()
Joel Rosdahl [Tue, 3 Aug 2010 15:16:38 +0000 (17:16 +0200)] 
Fold stats_read_fd() into stats_read()

15 years agoUse stats_read() instead of stats_read_fd()
Joel Rosdahl [Tue, 3 Aug 2010 15:14:01 +0000 (17:14 +0200)] 
Use stats_read() instead of stats_read_fd()

15 years agotestfw: Format code to use a more consistent coding style
Joel Rosdahl [Mon, 2 Aug 2010 22:17:57 +0000 (00:17 +0200)] 
testfw: Format code to use a more consistent coding style

15 years agotestfw: Declare all variables before the first statement
Joel Rosdahl [Mon, 2 Aug 2010 22:17:26 +0000 (00:17 +0200)] 
testfw: Declare all variables before the first statement

15 years agoExtract calculation of the maximum path length into a local function
Joel Rosdahl [Mon, 2 Aug 2010 20:16:22 +0000 (22:16 +0200)] 
Extract calculation of the maximum path length into a local function

This also fixes a bug in x_readlink where maxlen was unsigned, which leads to
problems when pathconf() returns -1.