]>
git.ipfire.org Git - thirdparty/ccache.git/log
Joel Rosdahl [Thu, 3 Jan 2019 21:00:32 +0000 (22:00 +0100)]
Merge pull request #343 from afbjorklund/clang-warning
Fix clang warning with older compiler versions
Anders F Björklund [Thu, 3 Jan 2019 15:57:02 +0000 (16:57 +0100)]
Fix clang warning with older compiler versions
Don't hardcode the clang version, apparently clang-3.8
did have the warning even though clang-3.4 did not...
Joel Rosdahl [Wed, 2 Jan 2019 15:19:06 +0000 (16:19 +0100)]
Add NEWS for v3.5.1
Joel Rosdahl [Wed, 2 Jan 2019 15:18:50 +0000 (16:18 +0100)]
Update copyright years
Anders Björklund [Wed, 2 Jan 2019 12:52:32 +0000 (13:52 +0100)]
Add missing getopt_long.c source file to dist (#341)
Missed to include this when making compilation optional.
Closes #340.
Joel Rosdahl [Wed, 24 Oct 2018 20:10:41 +0000 (22:10 +0200)]
Use double for limit_multiple
This allows for removing the -Wno-double-promotion and
-Wno-float-conversion options which are not available for the clang
version currently used for “make analyze”.
Joel Rosdahl [Wed, 24 Oct 2018 20:06:19 +0000 (22:06 +0200)]
Fix constness of struct stats_info message member
Joel Rosdahl [Sat, 20 Oct 2018 20:42:55 +0000 (22:42 +0200)]
Refactor conf item lookup code
- Extracted parse/format/verify functions into a separate confitems.c
file.
- The *_lookup.c files are now compilation units of their own instead of
being included inside conf.c. This feels cleaner, and also relieves
cppcheck from having to check dirty, autogenerated code.
Joel Rosdahl [Sat, 20 Oct 2018 12:22:47 +0000 (14:22 +0200)]
Ignore cppcheck “Resource leak” warnings in test code
It’s not worth the effort to write leak-free code for test failure code
paths.
Joel Rosdahl [Sat, 20 Oct 2018 12:20:26 +0000 (14:20 +0200)]
Include error/warning ID in cppcheck output
Joel Rosdahl [Sat, 20 Oct 2018 12:15:11 +0000 (14:15 +0200)]
Use sizeof instead of repeating buffer size
Joel Rosdahl [Sat, 20 Oct 2018 11:50:40 +0000 (13:50 +0200)]
Don’t pass CFLAGS to the linker
Joel Rosdahl [Sat, 20 Oct 2018 11:19:57 +0000 (13:19 +0200)]
Improve distcheck
- Build with more warnings.
- Added an extra build with clang.
- Build with -Werror to actually catch the errors.
Joel Rosdahl [Sat, 20 Oct 2018 11:15:31 +0000 (13:15 +0200)]
Always enable “more warnings” in dev mode
Joel Rosdahl [Sat, 20 Oct 2018 11:04:46 +0000 (13:04 +0200)]
Sort list
Anders F Björklund [Sat, 20 Oct 2018 10:46:23 +0000 (12:46 +0200)]
Fix missing header include / prototype
no previous prototype for function 'unify_hash'
Anders F Björklund [Sat, 20 Oct 2018 10:43:20 +0000 (12:43 +0200)]
Fix const-correctness of the config formatter
Both strdup and format are returning "char *"
Joel Rosdahl [Tue, 16 Oct 2018 18:32:01 +0000 (20:32 +0200)]
Ignore return value from fwrite when writing debug log
This silences some compilers’ warnings about ignoring return value of
fwrite.
There’s not much we can do if they fail, and it’s also not important
enough to e.g. call failed() for the debug logs.
Joel Rosdahl [Tue, 16 Oct 2018 18:31:45 +0000 (20:31 +0200)]
Remove unused return value from cc_dump_log_buffer
Joel Rosdahl [Mon, 15 Oct 2018 20:10:22 +0000 (22:10 +0200)]
Add Xavier René-Corail to .mailcap
Joel Rosdahl [Mon, 15 Oct 2018 19:28:34 +0000 (21:28 +0200)]
Prepare for v3.5
Joel Rosdahl [Mon, 15 Oct 2018 19:28:05 +0000 (21:28 +0200)]
Add -Wno-implicit-fallthrough for zlib build in non-dev mode as well
Joel Rosdahl [Mon, 15 Oct 2018 19:22:58 +0000 (21:22 +0200)]
Add some more silent make rules
Joel Rosdahl [Mon, 15 Oct 2018 19:09:06 +0000 (21:09 +0200)]
Remove obsolete cppcheck suppression
Joel Rosdahl [Mon, 15 Oct 2018 19:08:51 +0000 (21:08 +0200)]
Make cppcheck find config.h
Joel Rosdahl [Mon, 15 Oct 2018 19:04:51 +0000 (21:04 +0200)]
Add assert in language_is_preprocessed
This seems to make scan-build happy.
Joel Rosdahl [Sun, 14 Oct 2018 20:29:14 +0000 (22:29 +0200)]
Update NEWS
Joel Rosdahl [Sun, 14 Oct 2018 20:28:39 +0000 (22:28 +0200)]
Tweak silent make rule printouts
Joel Rosdahl [Sun, 14 Oct 2018 20:18:25 +0000 (22:18 +0200)]
Default to silent make rules unconditionally
Anders F Björklund [Wed, 3 Oct 2018 18:25:24 +0000 (20:25 +0200)]
Add configure option for silent make rules
Adopted from AM_SILENT_RULES, default to no
Joel Rosdahl [Sun, 14 Oct 2018 20:01:58 +0000 (22:01 +0200)]
Sort commandline option list
Joel Rosdahl [Sun, 14 Oct 2018 19:59:40 +0000 (21:59 +0200)]
Fix alignment and indentation
Gabriel Scherer [Sun, 10 Jun 2018 10:53:04 +0000 (12:53 +0200)]
New command-line option -k/--get-config prints the value of a config key
We print exactly the value of the configuration setting, rather
than a full item pair "(origin) key = value" as --print-config does.
This is useful for scripting. For example, $(ccache -k cache_dir)
gives the cache directory path.
Gabriel Scherer [Sun, 10 Jun 2018 10:35:12 +0000 (12:35 +0200)]
Use the per-item printers in conf_print_items
Gabriel Scherer [Sun, 10 Jun 2018 09:59:15 +0000 (11:59 +0200)]
Add a confitem field for entry printing, and a printer for each type
Joel Rosdahl [Sun, 14 Oct 2018 19:37:57 +0000 (21:37 +0200)]
Use memcpy instead of strncpy in append_log
We’re copying a known amount of bytes; strncpy is almost never the right
solution.
Joel Rosdahl [Sat, 13 Oct 2018 12:02:47 +0000 (14:02 +0200)]
Pass -Wno-implicit-fallthrough when compiling bundled zlib
It’s of no use to get warnings for 3pp code.
Rafael Kitover [Tue, 25 Sep 2018 23:55:35 +0000 (16:55 -0700)]
Minor fixes for cygwin/msys2
Add -Wno-error=implicit-fallthrough, if the compiler supports it, to
dev.mk so that zlib will compile with -Werror.
Disable -Wdeprecated-declarations in the mkstemp() shim in util.c so
that it compiles with -Werror.
Stop assuming that mkstemp() is broken on cygwin, I could not find any
documentation for this.
Fix a couple of erroneous checks in zlib that assume cygwin is the same
as win32.
Joel Rosdahl [Sun, 7 Oct 2018 20:05:04 +0000 (22:05 +0200)]
Clean up includes
Joel Rosdahl [Sun, 7 Oct 2018 19:06:08 +0000 (21:06 +0200)]
Fix bugs in debug mode logging
Need to dump log buffer as the last exit function to not lose any logs.
Also, made sure to print the final result log line even if the log mode
isn’t enabled.
Joel Rosdahl [Sun, 7 Oct 2018 18:50:37 +0000 (20:50 +0200)]
Fix debug mode bug in cc_log_argv
Joel Rosdahl [Sun, 7 Oct 2018 18:40:55 +0000 (20:40 +0200)]
Refactor debug mode code
Knowledge of the debug mode snuck into the mdfour struct and code, which
did not feel good.
* Introduced a new “struct hash”, which is used by the hash_* functions
instead of “struct mdfour”. “struct hash” contains the mdfour state
and also debug file handles that can be set via a new
hash_enable_debug function.
* Removed “identifier” from the mdfour struct and code.
* Introduced hash.h and all documented hash_* functions.
* Introduced unify.h.
* Removed some global state from util.c.
Xavier RENE-CORAIL [Fri, 14 Sep 2018 11:06:53 +0000 (12:06 +0100)]
Add LGTM.com code quality badges
Joel Rosdahl [Tue, 2 Oct 2018 19:48:47 +0000 (21:48 +0200)]
Fix Clang warning “declaration shadows a local variable”
Joel Rosdahl [Tue, 2 Oct 2018 19:47:15 +0000 (21:47 +0200)]
Move ATTR_NORETURN function declarations closer to the definition
Joel Rosdahl [Tue, 2 Oct 2018 19:45:25 +0000 (21:45 +0200)]
Remove superfluous “extern” function declarations from
a9e8810f
Function declarations are extern by default.
Joel Rosdahl [Tue, 2 Oct 2018 19:33:27 +0000 (21:33 +0200)]
Merge remote-tracking branch 'afbjorklund/everything'
* afbjorklund/everything:
Make configure work with older clang versions
Add option for enabling more compiler warnings
Add configure support for detecting clang
Avoid bad function cast by using temporary
Proper use of const qualifier char* strings
Removed locally shadowed global variables
Don't use undefined macros, use ifdef instead
Add noreturn to functions that don't return
Add missing extern prototypes, or make static
Don't use reserved id macros in the headers
Only compile getopt_long.c when needed
Address issues found by lgtm.com alerts
Joel Rosdahl [Tue, 2 Oct 2018 19:28:39 +0000 (21:28 +0200)]
Update NEWS
Rafael Kitover [Wed, 12 Sep 2018 10:24:54 +0000 (03:24 -0700)]
Fix configure arg --without-bundled-zlib
If the result of the AC_ARG_WITH check is 'no', assume system zlib.
Joel Rosdahl [Tue, 2 Oct 2018 18:51:12 +0000 (20:51 +0200)]
Update uncrustify config and run uncrustify version 0.66.1_f
Joel Rosdahl [Tue, 2 Oct 2018 18:31:01 +0000 (20:31 +0200)]
Remove bogus out-of-memory check in reformat()
Joel Rosdahl [Tue, 2 Oct 2018 18:26:13 +0000 (20:26 +0200)]
Update NEWS
Joel Rosdahl [Tue, 2 Oct 2018 18:19:16 +0000 (20:19 +0200)]
Improve debug mode documentation
Joel Rosdahl [Tue, 2 Oct 2018 18:15:32 +0000 (20:15 +0200)]
Improve debug log filenames
The “<objectfile>.ccache-hashX” files are also input data, so I think
that calling the “human-readable” version “<objectfile>.ccache-input” a
bit unpedagogical. Changes:
<objectfile>.ccache-hashX -> <objectfile>.ccache-input-X
<objectfile>.ccache-input -> <objectfile>.ccache-input-text
Joel Rosdahl [Sat, 29 Sep 2018 19:48:41 +0000 (21:48 +0200)]
Merge remote-tracking branch 'afbjorklund/hash_debug' into pr/279
* afbjorklund/hash_debug:
Register debug_end as an exit function instead
Avoid using strcat and small realloc
Rename helper functions, as suggested in review
Save debug file streams, instead of reopening
Add section markers, to the text file
Rename hash_debug, add matching end function
Improve documentation with example file names
Output log to debug, even without a logfile
Avoid global md variable in mdfour file
Add --hash-file command, for convenience
Add functionality to debug the hashing
Add feature to also log into a memory buffer
Add config for debug option ($CCACHE_DEBUG)
Add util to return the command as a string
Joel Rosdahl [Sun, 23 Sep 2018 19:51:23 +0000 (21:51 +0200)]
Update NEWS
Joel Rosdahl [Sun, 23 Sep 2018 19:50:04 +0000 (21:50 +0200)]
Improve documentation of file_stat_matches_ctime
Anders F Björklund [Tue, 3 Jul 2018 21:01:26 +0000 (23:01 +0200)]
Add option to disable ctime check for manifest
Make it possible to use e.g. "git-restore-mtime"*,
to use the original timestamps and avoid checksums.
* https://github.com/MestreLion/git-tools
Restoring ctime is much harder than restoring mtime,
since you need to change the system clock to do it.
Anders F Björklund [Sun, 16 Sep 2018 20:19:09 +0000 (22:19 +0200)]
Make configure work with older clang versions
Apparently clang-3.4 did not have -Wreserved-id-macro
Anders F Björklund [Sun, 16 Sep 2018 18:42:39 +0000 (20:42 +0200)]
Add option for enabling more compiler warnings
But remove some of the more annoying clang ones:
18 [-Werror,-Wconversion]
18 [-Werror,-Wdisabled-macro-expansion]
9 [-Werror,-Wdouble-promotion]
9 [-Werror,-Wfloat-conversion]
1 [-Werror,-Wformat-nonliteral]
52 [-Werror,-Wpadded]
29 [-Werror,-Wshorten-64-to-32]
75 [-Werror,-Wsign-conversion]
It's not really feasible to enable every warning.
Anders F Björklund [Sun, 16 Sep 2018 18:35:40 +0000 (20:35 +0200)]
Add configure support for detecting clang
Also note that both GCC and Clang are GNU
Anders F Björklund [Sun, 16 Sep 2018 17:07:44 +0000 (19:07 +0200)]
Avoid bad function cast by using temporary
The result after round/ceil _should_ work
Anders F Björklund [Sun, 16 Sep 2018 16:48:03 +0000 (18:48 +0200)]
Proper use of const qualifier char* strings
Anders F Björklund [Sun, 16 Sep 2018 16:45:55 +0000 (18:45 +0200)]
Removed locally shadowed global variables
Rename the local, or remove the parameter
Anders F Björklund [Sun, 16 Sep 2018 16:44:12 +0000 (18:44 +0200)]
Don't use undefined macros, use ifdef instead
Anders F Björklund [Sun, 16 Sep 2018 16:40:15 +0000 (18:40 +0200)]
Add noreturn to functions that don't return
Fix the extra semicolon and unreachable code
Anders F Björklund [Sun, 16 Sep 2018 16:37:05 +0000 (18:37 +0200)]
Add missing extern prototypes, or make static
Anders F Björklund [Sun, 16 Sep 2018 16:31:20 +0000 (18:31 +0200)]
Don't use reserved id macros in the headers
With an exception for the generated config.h
Anders F Björklund [Sun, 16 Sep 2018 16:28:16 +0000 (18:28 +0200)]
Only compile getopt_long.c when needed
ISO C disallows empty translation units
Anders F Björklund [Sun, 16 Sep 2018 12:40:44 +0000 (14:40 +0200)]
Address issues found by lgtm.com alerts
Thomas Otto [Wed, 6 Jun 2018 10:52:36 +0000 (12:52 +0200)]
test: Fix various Solaris shell issues
Joel Rosdahl [Sun, 2 Sep 2018 08:35:09 +0000 (10:35 +0200)]
Merge branch '3.4-maint'
* 3.4-maint:
Prepare for v3.4.3
Update NEWS
Upgrade zlib to 1.2.11
Joel Rosdahl [Sun, 2 Sep 2018 08:27:04 +0000 (10:27 +0200)]
Prepare for v3.4.3
Joel Rosdahl [Sun, 2 Sep 2018 08:05:59 +0000 (10:05 +0200)]
Update NEWS
Anders F Björklund [Sun, 26 Aug 2018 18:15:45 +0000 (20:15 +0200)]
Upgrade zlib to 1.2.11
Anders F Björklund [Mon, 27 Aug 2018 17:25:55 +0000 (19:25 +0200)]
Register debug_end as an exit function instead
Joel Rosdahl [Thu, 23 Aug 2018 20:25:55 +0000 (22:25 +0200)]
Merge branch '3.4-maint'
* 3.4-maint:
Update NEWS
Bail out on compiler option -save-temps=obj
Joel Rosdahl [Thu, 23 Aug 2018 20:20:30 +0000 (22:20 +0200)]
Update NEWS
Anders F Björklund [Tue, 21 Aug 2018 20:22:38 +0000 (22:22 +0200)]
Bail out on compiler option -save-temps=obj
Also add a test, and handle default (=cwd)
Closes #299
Joel Rosdahl [Sun, 19 Aug 2018 06:52:07 +0000 (08:52 +0200)]
Fix minor memory leak introduced in
dde3543c
Joel Rosdahl [Sun, 19 Aug 2018 06:50:19 +0000 (08:50 +0200)]
Fix “clang analyze” false positive
Joel Rosdahl [Sat, 18 Aug 2018 20:36:32 +0000 (22:36 +0200)]
Update NEWS
Mike Gulick [Tue, 24 Jul 2018 19:23:03 +0000 (15:23 -0400)]
process_preprocessed_file: Move gnu_getcwd() out of tight loop
Change process_preprocessed_file from calling getcwd() once per line
in the preprocessed source file to once at the start of the function.
The performance of getcwd() on Mac seems to be terrible compared to
Linux. On a macOS 10.13 build machine, this change improves
process_preprocessed_file runtime on a 10MB preprocessed file from 75
seconds to .75 seconds.
Joel Rosdahl [Sat, 18 Aug 2018 20:28:24 +0000 (22:28 +0200)]
Merge branch '3.4-maint'
* 3.4-maint:
Update NEWS
Add handling of separate -target parameter
Bail out on too hard clang option “-MJ”
Anders F Björklund [Sat, 28 Jul 2018 10:30:10 +0000 (12:30 +0200)]
Make sure to install gperf for analyze
Also move the 32-bit libraries
to the 32-bit target (only).
Closes #290
Joel Rosdahl [Tue, 14 Aug 2018 19:49:04 +0000 (21:49 +0200)]
Update NEWS
Anders F Björklund [Tue, 3 Jul 2018 16:54:34 +0000 (18:54 +0200)]
Add handling of separate -target parameter
Otherwise you will get an error in the log:
"x86_64-pc-linux-gnu is not a regular file,
not considering as input file"
The argument seems to be specific to clang.
Joel Rosdahl [Tue, 14 Aug 2018 19:44:39 +0000 (21:44 +0200)]
Update NEWS
Anders F Björklund [Tue, 12 Jun 2018 21:51:35 +0000 (23:51 +0200)]
Add a Vagrantfile for testing on FreeBSD
Anders F Björklund [Tue, 12 Jun 2018 21:11:44 +0000 (23:11 +0200)]
Compiler "cc" might still be the same as "clang"
It migt also be "gcc", but try to play it safe.
Anders F Björklund [Tue, 12 Jun 2018 20:23:57 +0000 (22:23 +0200)]
Add FreeBSD compatibility to test suites
Anders F Björklund [Tue, 12 Jun 2018 19:58:29 +0000 (21:58 +0200)]
Add patch for X/Open, from FreeBSD ports
Without this, e.g. "strndup" isn't visible.
Joel Rosdahl [Tue, 14 Aug 2018 19:14:36 +0000 (21:14 +0200)]
Bail out on too hard clang option “-MJ”
See discussion in pull request #277.
Anders F Björklund [Sun, 12 Aug 2018 16:10:59 +0000 (18:10 +0200)]
Avoid using strcat and small realloc
For performance reasons with large strings, we don't want to
call strlen multiple times or to realloc one byte at a time.
Anders F Björklund [Sun, 12 Aug 2018 15:01:05 +0000 (17:01 +0200)]
Rename helper functions, as suggested in review
Anders F Björklund [Sun, 12 Aug 2018 14:47:16 +0000 (16:47 +0200)]
Save debug file streams, instead of reopening
Also opens txt file in text mode, not binary
Anders F Björklund [Sun, 12 Aug 2018 14:24:54 +0000 (16:24 +0200)]
Add section markers, to the text file
Anders F Björklund [Sun, 12 Aug 2018 14:06:39 +0000 (16:06 +0200)]
Rename hash_debug, add matching end function
Remove the parameter stating if hit or miss
Anders F Björklund [Sun, 12 Aug 2018 13:56:14 +0000 (15:56 +0200)]
Improve documentation with example file names
Anders F Björklund [Sun, 12 Aug 2018 13:46:31 +0000 (15:46 +0200)]
Output log to debug, even without a logfile