]> git.ipfire.org Git - thirdparty/ccache.git/log
thirdparty/ccache.git
9 years agoc99: Declare variables closer to their first use
Joel Rosdahl [Sat, 23 Jul 2016 14:18:08 +0000 (16:18 +0200)] 
c99: Declare variables closer to their first use

9 years agoc99: Use //-style-comments
Joel Rosdahl [Fri, 22 Jul 2016 16:22:52 +0000 (18:22 +0200)] 
c99: Use //-style-comments

9 years agoc99: Check for and require a C99-compatible compiler
Joel Rosdahl [Mon, 27 Apr 2015 18:17:14 +0000 (20:17 +0200)] 
c99: Check for and require a C99-compatible compiler

9 years agoTweak #include file paths
Joel Rosdahl [Fri, 22 Jul 2016 16:21:44 +0000 (18:21 +0200)] 
Tweak #include file paths

9 years agoAvoid compilation warning in bundled zlib
Joel Rosdahl [Fri, 22 Jul 2016 13:36:20 +0000 (15:36 +0200)] 
Avoid compilation warning in bundled zlib

Applied upstream fix madler/zlib@e54e129.

Closes #121.

9 years agoUpdate NEWS
Joel Rosdahl [Fri, 22 Jul 2016 10:19:42 +0000 (12:19 +0200)] 
Update NEWS

9 years agoUse "#if 0" to comment out code blocks
Joel Rosdahl [Fri, 22 Jul 2016 10:18:19 +0000 (12:18 +0200)] 
Use "#if 0" to comment out code blocks

9 years agoRemove testdir.* and perfdir.* on "make clean"
Joel Rosdahl [Fri, 22 Jul 2016 10:14:35 +0000 (12:14 +0200)] 
Remove testdir.* and perfdir.* on "make clean"

9 years agoSupport for Fortran 77
Melven Roehrig-Zoellner [Wed, 25 May 2016 13:26:12 +0000 (15:26 +0200)] 
Support for Fortran 77

9 years agoUpdate NEWS
Joel Rosdahl [Thu, 21 Jul 2016 20:35:34 +0000 (22:35 +0200)] 
Update NEWS

9 years agotest: Verify support for caching compilation of assembler files
Joel Rosdahl [Thu, 21 Jul 2016 20:34:55 +0000 (22:34 +0200)] 
test: Verify support for caching compilation of assembler files

9 years agosupport assembler
Pavel Boldin [Thu, 14 Jul 2016 14:00:42 +0000 (16:00 +0200)] 
support assembler

Support compiling through the assembler output:
$ gcc -S abc.c
$ gcc -c abc.s

9 years agoUpdate NEWS
Joel Rosdahl [Thu, 21 Jul 2016 20:22:33 +0000 (22:22 +0200)] 
Update NEWS

9 years agoShow cache hit rate (%) in stats display
Anders Björklund [Thu, 7 Jul 2016 18:41:43 +0000 (20:41 +0200)] 
Show cache hit rate (%) in stats display

Closes #94

9 years agoUpdate NEWS
Joel Rosdahl [Thu, 21 Jul 2016 20:18:49 +0000 (22:18 +0200)] 
Update NEWS

9 years agoMinor cleanup
Joel Rosdahl [Thu, 21 Jul 2016 20:17:23 +0000 (22:17 +0200)] 
Minor cleanup

9 years agoMultiple "-arch" options support for preprocessor mode
Ivan Vaigult [Tue, 21 Jun 2016 04:25:12 +0000 (04:25 +0000)] 
Multiple "-arch" options support for preprocessor mode

9 years agoUpdate NEWS
Joel Rosdahl [Thu, 21 Jul 2016 19:55:41 +0000 (21:55 +0200)] 
Update NEWS

9 years agoremoved incorrect and irrelevant comment after the fix
John Basila [Tue, 24 May 2016 05:30:43 +0000 (08:30 +0300)] 
removed incorrect and irrelevant comment after the fix

9 years agopreprocessor mode: enable using identical header in different paths
John Basila [Sat, 21 May 2016 13:20:33 +0000 (16:20 +0300)] 
preprocessor mode: enable using identical header in different paths

9 years agoUpdate NEWS
Joel Rosdahl [Thu, 21 Jul 2016 19:45:07 +0000 (21:45 +0200)] 
Update NEWS

9 years agoImprove variable name
Joel Rosdahl [Thu, 21 Jul 2016 19:42:03 +0000 (21:42 +0200)] 
Improve variable name

9 years agoCount the number of cleanups performed, in stats
Anders Björklund [Fri, 25 Sep 2015 17:22:44 +0000 (19:22 +0200)] 
Count the number of cleanups performed, in stats

When running a busy ccache, it is useful to keep track of the number
of cleanups performed to know when you need to increase the cache size.

The number shown is actually the number of subdirectories, so when
you do a full cleanup the counter usually increases by 16 (not just 1).

9 years agoMake all concatenated option path arguments relative
Joel Rosdahl [Thu, 21 Jul 2016 19:08:06 +0000 (21:08 +0200)] 
Make all concatenated option path arguments relative

Only when a base directory is used, of course. Also added a test case
for the important -I/some/path case.

Hopefully fixes issue #84. A more generic alternative to PR #85.

9 years agoExtract code for detecting precompiled header into a separate function
Joel Rosdahl [Thu, 21 Jul 2016 14:16:49 +0000 (16:16 +0200)] 
Extract code for detecting precompiled header into a separate function

9 years agoMark -B as taking a path
Joel Rosdahl [Thu, 21 Jul 2016 14:02:10 +0000 (16:02 +0200)] 
Mark -B as taking a path

9 years agotest: Try to fix sed syntax to fix build error
Joel Rosdahl [Thu, 21 Jul 2016 08:19:55 +0000 (10:19 +0200)] 
test: Try to fix sed syntax to fix build error

travis-ci says

    sed: 1: "/^# 1 "<command-line>"$ ...": command a expects \ followed by text

but I fail to reproduce the error locally with GNU sed 4.2.2.

9 years agoMerge branch '3.2-maint'
Joel Rosdahl [Wed, 20 Jul 2016 15:54:46 +0000 (17:54 +0200)] 
Merge branch '3.2-maint'

* 3.2-maint:
  Prepare for v3.2.7
  Update NEWS
  Make sure to hash the trailing quote when skipping
  Add test for certain gcc compilers with buggy cpp
  Make calculate_object_hash handle argument-less -B etc. correctly

9 years agoPrepare for v3.2.7 v3.2.7
Joel Rosdahl [Wed, 20 Jul 2016 15:50:03 +0000 (17:50 +0200)] 
Prepare for v3.2.7

9 years agoUpdate NEWS
Joel Rosdahl [Tue, 19 Jul 2016 15:01:31 +0000 (17:01 +0200)] 
Update NEWS

9 years agoMake sure to hash the trailing quote when skipping
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.

9 years agoAdd test for certain gcc compilers with buggy cpp
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

9 years agoMake calculate_object_hash handle argument-less -B etc. correctly
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.

9 years agoMake calculate_object_hash handle argument-less -B etc. correctly
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.

9 years agotest: Make CCACHE_COMPILE available in all suites
Joel Rosdahl [Sat, 16 Jul 2016 18:00:39 +0000 (20:00 +0200)] 
test: Make CCACHE_COMPILE available in all suites

9 years agoDocument the *_args variables in cc_process_args
Joel Rosdahl [Sat, 16 Jul 2016 13:07:27 +0000 (15:07 +0200)] 
Document the *_args variables in cc_process_args

9 years agoConvert README and INSTALL to markdown
Joel Rosdahl [Sat, 16 Jul 2016 07:55:18 +0000 (09:55 +0200)] 
Convert README and INSTALL to markdown

9 years agodoc: Rename bugs section to caveats
Joel Rosdahl [Wed, 13 Jul 2016 14:15:40 +0000 (16:15 +0200)] 
doc: Rename bugs section to caveats

9 years agoDon't check for symlinks on Windows
Joel Rosdahl [Wed, 13 Jul 2016 14:13:27 +0000 (16:13 +0200)] 
Don't check for symlinks on Windows

9 years agoDon't use non-POSIX S_ISLNK macro
Joel Rosdahl [Tue, 12 Jul 2016 20:44:37 +0000 (22:44 +0200)] 
Don't use non-POSIX S_ISLNK macro

For portability.

9 years agoMerge branch '3.2-maint'
Joel Rosdahl [Tue, 12 Jul 2016 19:24:55 +0000 (21:24 +0200)] 
Merge branch '3.2-maint'

* 3.2-maint:
  Prepare for v3.2.6
  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

9 years agoPrepare for v3.2.6 v3.2.6
Joel Rosdahl [Tue, 12 Jul 2016 19:16:44 +0000 (21:16 +0200)] 
Prepare for v3.2.6

9 years agoMerge branch '3.1-maint' into 3.2-maint
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

9 years agoPrepare for v3.1.12 3.1-maint v3.1.12
Joel Rosdahl [Tue, 12 Jul 2016 19:04:04 +0000 (21:04 +0200)] 
Prepare for v3.1.12

9 years agoDisable mingw32 build on v3.1.x
Joel Rosdahl [Mon, 11 Jul 2016 20:32:24 +0000 (22:32 +0200)] 
Disable mingw32 build on v3.1.x

9 years agoAdd .travis.yml
Joel Rosdahl [Mon, 11 Jul 2016 19:54:41 +0000 (21:54 +0200)] 
Add .travis.yml

9 years agoMark 3.1.12 as still unreleased
Joel Rosdahl [Mon, 11 Jul 2016 19:54:38 +0000 (21:54 +0200)] 
Mark 3.1.12 as still unreleased

9 years agoFix typo
Joel Rosdahl [Mon, 11 Jul 2016 19:45:03 +0000 (21:45 +0200)] 
Fix typo

9 years agoMerge branch '3.2-maint'
Joel Rosdahl [Mon, 11 Jul 2016 19:44:44 +0000 (21:44 +0200)] 
Merge branch '3.2-maint'

* 3.2-maint:
  Doc and comment spelling fixes
  Fix some cppcheck style suggestions
  Update NEWS
  Work around preprocessor bugs in gcc version 6

9 years agoDoc and comment spelling fixes
Ville Skyttä [Sun, 12 Jun 2016 07:02:12 +0000 (10:02 +0300)] 
Doc and comment spelling fixes

9 years agoFix some cppcheck style suggestions
Ville Skyttä [Tue, 21 Jun 2016 07:22:39 +0000 (10:22 +0300)] 
Fix some cppcheck style suggestions

9 years agoUpdate NEWS
Joel Rosdahl [Mon, 11 Jul 2016 19:27:07 +0000 (21:27 +0200)] 
Update NEWS

9 years agoWork around preprocessor bugs in gcc version 6
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

9 years agoAdd support for -Wp,-D in direct mode
Orion Poplawski [Tue, 14 Jun 2016 16:50:25 +0000 (10:50 -0600)] 
Add support for -Wp,-D in direct mode

9 years agoRemove obsolete comment
Joel Rosdahl [Mon, 11 Jul 2016 19:08:31 +0000 (21:08 +0200)] 
Remove obsolete comment

9 years agoUpdates after pull request #92
Joel Rosdahl [Mon, 11 Jul 2016 19:06:32 +0000 (21:06 +0200)] 
Updates after pull request #92

9 years agoMerge pull request #92 from nolange/better_g_argument_parsing
Joel Rosdahl [Mon, 11 Jul 2016 18:59:20 +0000 (20:59 +0200)] 
Merge pull request #92 from nolange/better_g_argument_parsing

Better parsing of g* Options, and only use last argument

9 years agoPrepare for v3.1.12
Joel Rosdahl [Fri, 8 Jul 2016 15:21:25 +0000 (17:21 +0200)] 
Prepare for v3.1.12

9 years agoDon't rewrite source file path if it's absolute and a symlink
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.

9 years agoBetter parsing of g* Options, and only use last argument 92/head
Norbert Lange [Sat, 28 May 2016 13:38:10 +0000 (15:38 +0200)] 
Better parsing of g* Options, and only use last argument

Commonly some base configuration like CFLAGS="-O2 -g3 ..." will be
modified for builds by appending "-g0" to disable debug information.
This commit only en/disables options based on the last argument
that modifies debuginfo generation.

Also some more arguments are supported.

9 years agoMerge branch '3.2-maint'
Joel Rosdahl [Sat, 4 Jun 2016 16:55:44 +0000 (18:55 +0200)] 
Merge branch '3.2-maint'

* 3.2-maint:
  code style: Mention usage of curly braces around if/for/while/do bodies
  Bail out on compiler option -fstack-usage
  Mention new repository location on github

9 years agocode style: Mention usage of curly braces around if/for/while/do bodies
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

9 years agoBail out on compiler option -fstack-usage
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.

9 years agoMention new repository location on github
Joel Rosdahl [Sat, 4 Jun 2016 15:28:14 +0000 (17:28 +0200)] 
Mention new repository location on github

9 years agoMerge branch '3.2-maint'
Joel Rosdahl [Fri, 6 May 2016 20:33:15 +0000 (22:33 +0200)] 
Merge branch '3.2-maint'

* 3.2-maint:
  Only set SA_RESTART if it is defined

9 years agoOnly set SA_RESTART if it is defined
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.

9 years agoMerge branch '3.2-maint'
Joel Rosdahl [Sun, 17 Apr 2016 14:46:06 +0000 (16:46 +0200)] 
Merge branch '3.2-maint'

* 3.2-maint:
  Update NEWS

9 years agoUpdate NEWS v3.2.5
Joel Rosdahl [Sun, 17 Apr 2016 14:44:05 +0000 (16:44 +0200)] 
Update NEWS

9 years agoMerge branch '3.2-maint'
Joel Rosdahl [Sun, 17 Apr 2016 14:40:11 +0000 (16:40 +0200)] 
Merge branch '3.2-maint'

* 3.2-maint:
  Update copyright year
  Update authors list
  Update NEWS

9 years agoUpdate copyright year
Joel Rosdahl [Sun, 17 Apr 2016 14:37:39 +0000 (16:37 +0200)] 
Update copyright year

9 years agoUpdate authors list
Joel Rosdahl [Sun, 17 Apr 2016 14:34:44 +0000 (16:34 +0200)] 
Update authors list

9 years agoUpdate NEWS
Joel Rosdahl [Sun, 17 Apr 2016 14:30:04 +0000 (16:30 +0200)] 
Update NEWS

9 years agoMerge branch '3.2-maint'
Joel Rosdahl [Thu, 14 Apr 2016 18:17:55 +0000 (20:17 +0200)] 
Merge branch '3.2-maint'

* 3.2-maint:
  Make it harder to misinterpret semantics of boolean environment settings

9 years agoMake it harder to misinterpret semantics of boolean environment settings
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.

9 years agoUpdate NEWS
Joel Rosdahl [Wed, 30 Mar 2016 20:18:31 +0000 (22:18 +0200)] 
Update NEWS

9 years agoRemove unnecessary check of create_tmp_file return value
Joel Rosdahl [Wed, 30 Mar 2016 19:48:20 +0000 (21:48 +0200)] 
Remove unnecessary check of create_tmp_file return value

create_tmp_file never returns NULL.

9 years agoTweak code style
Joel Rosdahl [Wed, 30 Mar 2016 19:48:13 +0000 (21:48 +0200)] 
Tweak code style

9 years agoConvert absolute paths to relative paths inside the dependency file
Mihai Serban [Tue, 15 Mar 2016 21:55:32 +0000 (23:55 +0200)] 
Convert absolute paths to relative paths inside the dependency file

When using DIRECT MODE and the -MD flag to generate a dependency file
the toolchain header files are used with their absolute paths as dependencies.
If the same toolchain is used but from a different location the previously
cached .d file is copied to the current build environment. Because it contains
absolute paths that could disappear or where the current user does not have
access the compilation will fail complaining that some header files cannot
be found.
This mostly happens when the cache is shared among multiple users or multiple
clones of a source tree and when the same toolchain is used but from different
locations.
This patch adds support for this kind of usage by replacing the absolute paths
with relative ones based on the BASEDIR value.

https://lists.samba.org/archive/ccache/2014q2/001183.html
https://lists.samba.org/archive/ccache/2014q2/001184.html

9 years agoFix warnings from uncrustify
Anders Björklund [Mon, 28 Mar 2016 16:43:02 +0000 (18:43 +0200)] 
Fix warnings from uncrustify

9 years agoMerge branch '3.2-maint'
Joel Rosdahl [Wed, 30 Mar 2016 19:36:27 +0000 (21:36 +0200)] 
Merge branch '3.2-maint'

* 3.2-maint:
  Update NEWS
  Fix --print-config to show pch_defines

9 years agoUpdate NEWS
Joel Rosdahl [Wed, 30 Mar 2016 19:28:29 +0000 (21:28 +0200)] 
Update NEWS

9 years agoFix --print-config to show pch_defines
KonaBlend [Sun, 27 Mar 2016 18:45:19 +0000 (14:45 -0400)] 
Fix --print-config to show pch_defines

9 years agoMerge branch '3.2-maint'
Joel Rosdahl [Fri, 25 Mar 2016 20:10:40 +0000 (21:10 +0100)] 
Merge branch '3.2-maint'

* 3.2-maint:
  Update NEWS
  Fix clang plugin hashing.

9 years agoUpdate NEWS
Joel Rosdahl [Fri, 25 Mar 2016 20:09:06 +0000 (21:09 +0100)] 
Update NEWS

9 years agoFix clang plugin hashing.
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

9 years agoAdd note about MinGW/Windows fixes to NEWS
Anders Björklund [Tue, 22 Mar 2016 06:30:43 +0000 (07:30 +0100)] 
Add note about MinGW/Windows fixes to NEWS

9 years agoAdjust code as suggested by uncrustify
Joel Rosdahl [Wed, 16 Mar 2016 19:04:09 +0000 (20:04 +0100)] 
Adjust code as suggested by uncrustify

9 years agoEnable some mod_full_* uncrustify options
Joel Rosdahl [Wed, 16 Mar 2016 19:04:08 +0000 (20:04 +0100)] 
Enable some mod_full_* uncrustify options

9 years agoAdd note about keep_comments_cpp to NEWS
Joel Rosdahl [Wed, 16 Mar 2016 19:04:06 +0000 (20:04 +0100)] 
Add note about keep_comments_cpp to NEWS

9 years agoAdd a function test for keep preprocessor comments 74/head
Anders Björklund [Mon, 14 Mar 2016 19:21:39 +0000 (20:21 +0100)] 
Add a function test for keep preprocessor comments

9 years agoAdd option to not discard comments in preprocessor
Anders Björklund [Mon, 14 Mar 2016 06:46:58 +0000 (07:46 +0100)] 
Add option to not discard comments in preprocessor

9 years agoSimplify GetFileNameFromHandle somewhat by returning early
Joel Rosdahl [Fri, 4 Mar 2016 18:44:05 +0000 (19:44 +0100)] 
Simplify GetFileNameFromHandle somewhat by returning early

9 years agoAdd compat version of GetFinalPathNameByHandle 73/head
Anders Björklund [Fri, 4 Mar 2016 14:22:59 +0000 (15:22 +0100)] 
Add compat version of GetFinalPathNameByHandle

9 years agoUse the standard MinGW for Ubuntu 12.04 LTS
Anders Björklund [Fri, 4 Mar 2016 11:36:06 +0000 (12:36 +0100)] 
Use the standard MinGW for Ubuntu 12.04 LTS

Seems like Travis is using precise, use default version.
Leaving the Ubuntu 14.04 LTS config, in the git history.

Fix the YAML syntax so that is actually runs it, too.
Apparently it just "overwrote" it with the ASan build.

9 years agoAdd a MinGW test compile to the Travis test matrix
Anders Björklund [Fri, 4 Mar 2016 09:44:43 +0000 (10:44 +0100)] 
Add a MinGW test compile to the Travis test matrix

Actually *running* the check (quicktest or the full test)
requires that WINE is installed too, which is a bit heavy.

Note that you would need to also install "binfmt-support",
so that Linux knows how to execute the .exe files (wine).

9 years agoApparently MinGW does not support debug-prefix-map
Anders Björklund [Fri, 4 Mar 2016 10:04:01 +0000 (11:04 +0100)] 
Apparently MinGW does not support debug-prefix-map

9 years agoESTALE is not defined on all systems (e.g Windows)
Anders Björklund [Fri, 4 Mar 2016 09:39:33 +0000 (10:39 +0100)] 
ESTALE is not defined on all systems (e.g Windows)

9 years agoMerge branch '3.2-maint'
Joel Rosdahl [Wed, 2 Mar 2016 20:08:25 +0000 (21:08 +0100)] 
Merge branch '3.2-maint'

* 3.2-maint:
  Handle some more "stale NFS file handle" cases
  Handle "Stale NFS File Handle" cases better.

9 years agoHandle some more "stale NFS file handle" cases
Joel Rosdahl [Wed, 2 Mar 2016 19:57:08 +0000 (20:57 +0100)] 
Handle some more "stale NFS file handle" cases

9 years agoHandle "Stale NFS File Handle" cases better.
Nick Schultz [Wed, 17 Feb 2016 00:02:44 +0000 (16:02 -0800)] 
Handle "Stale NFS File Handle" cases better.