Imported Upstream version 3.7.11 upstream/3.7.11
authorJinWang An <jinwang.an@samsung.com>
Tue, 3 Aug 2021 07:29:11 +0000 (16:29 +0900)
committerJinWang An <jinwang.an@samsung.com>
Tue, 3 Aug 2021 07:29:11 +0000 (16:29 +0900)
13 files changed:
LICENSE.html
dev.mk.in
doc/AUTHORS.adoc
doc/AUTHORS.html
doc/MANUAL.html
doc/NEWS.adoc
doc/NEWS.html
doc/ccache.1
src/ccache.c
src/compopt.c
src/version.c
test/suites/base.bash
test/suites/nvcc.bash

index 9cfdae1506449e4087ded7c6eda0f170f7e492bd..f21cec6347038ec81994040d18681fa54bd58cb9 100644 (file)
@@ -735,7 +735,7 @@ asciidoc.install(2);
 <body class="article">\r
 <div id="header">\r
 <h1>ccache copyright and license</h1>\r
-<span id="revnumber">version 3.7.10</span>\r
+<span id="revnumber">version 3.7.11</span>\r
 <div id="toc">
   <div id="toctitle">Table of Contents</div>
   <noscript><p><b>JavaScript must be enabled in your browser to display the table of contents.</b></p></noscript>
@@ -1235,9 +1235,9 @@ following license:</p></div>
 <div id="footnotes"><hr /></div>\r
 <div id="footer">\r
 <div id="footer-text">\r
-Version 3.7.10<br />\r
+Version 3.7.11<br />\r
 Last updated\r
- 2020-06-22 19:59:54 CEST\r
+ 2020-07-21 20:30:11 CEST\r
 </div>\r
 </div>\r
 </body>\r
index 2e3ac90062d5fdc52127f621b0f9d038a91ba0e0..fe1bcd36394b64aa9dfe778ac69ae607369869da 100644 (file)
--- a/dev.mk.in
+++ b/dev.mk.in
@@ -195,7 +195,7 @@ update-authors:
          | grep '^[^ ]' \
          | sed -r -e 's/[^ ]+/*/' -e 's/<.*//' -e 's/ *$$//' \
          | sort -u \
-         | perl -00 -p -i -e 's/^\*.*/<STDIN> . "\n"/es' doc/AUTHORS.adoc
+         | perl -00 -p -i -e 's/^\*.*/<STDIN> . "\n"/es' $(srcdir)/doc/AUTHORS.adoc
 
 .PHONY: check-syntax
 check-syntax:
index 1f1d4e2bcb020d3cacd59b21f77e26819fe0026f..c8b611994b3b40b4cd62060fc909ce20551577da 100644 (file)
@@ -7,6 +7,7 @@ maintained by Joel Rosdahl.
 ccache is a collective work with contributions from many people, including:
 
 * Alexander Korsunsky
+* Alexander Lanin
 * Alexey Tourbin
 * Alfred Landrum
 * Anders F Björklund
@@ -75,6 +76,7 @@ ccache is a collective work with contributions from many people, including:
 * Nick Schultz
 * Norbert Lange
 * Oded Shimon
+* Olle Liljenzin
 * Orgad Shaneh
 * Orion Poplawski
 * Owen Mann
index 2d0513a02d768efa7513aa073613868d6b8e5fde..003f658c41b536cfe4780e78eaa75b51a316668c 100644 (file)
@@ -735,7 +735,7 @@ asciidoc.install(2);
 <body class="article">\r
 <div id="header">\r
 <h1>ccache authors</h1>\r
-<span id="revnumber">version 3.7.10</span>\r
+<span id="revnumber">version 3.7.11</span>\r
 <div id="toc">
   <div id="toctitle">Table of Contents</div>
   <noscript><p><b>JavaScript must be enabled in your browser to display the table of contents.</b></p></noscript>
@@ -755,6 +755,11 @@ Alexander Korsunsky
 </li>\r
 <li>\r
 <p>\r
+Alexander Lanin\r
+</p>\r
+</li>\r
+<li>\r
+<p>\r
 Alexey Tourbin\r
 </p>\r
 </li>\r
@@ -1095,6 +1100,11 @@ Oded Shimon
 </li>\r
 <li>\r
 <p>\r
+Olle Liljenzin\r
+</p>\r
+</li>\r
+<li>\r
+<p>\r
 Orgad Shaneh\r
 </p>\r
 </li>\r
@@ -1271,9 +1281,9 @@ Yvan Janssens
 <div id="footnotes"><hr /></div>\r
 <div id="footer">\r
 <div id="footer-text">\r
-Version 3.7.10<br />\r
+Version 3.7.11<br />\r
 Last updated\r
- 2020-06-22 19:59:54 CEST\r
+ 2020-07-21 20:30:11 CEST\r
 </div>\r
 </div>\r
 </body>\r
index 91706a12454365b7fe6eb62b8f9df00d96566f30..c98cc1b49b856ffccc4ee666447b84af067a5c14 100644 (file)
@@ -735,7 +735,7 @@ asciidoc.install(2);
 <body class="article">\r
 <div id="header">\r
 <h1>CCACHE(1)</h1>\r
-<span id="revnumber">version 3.7.10</span>\r
+<span id="revnumber">version 3.7.11</span>\r
 <div id="toc">
   <div id="toctitle">Table of Contents</div>
   <noscript><p><b>JavaScript must be enabled in your browser to display the table of contents.</b></p></noscript>
@@ -2713,9 +2713,9 @@ maintained by Joel Rosdahl. See AUTHORS.txt or AUTHORS.html and
 <div id="footnotes"><hr /></div>\r
 <div id="footer">\r
 <div id="footer-text">\r
-Version 3.7.10<br />\r
+Version 3.7.11<br />\r
 Last updated\r
- 2020-06-22 19:59:54 CEST\r
+ 2020-07-21 20:30:11 CEST\r
 </div>\r
 </div>\r
 </body>\r
index 48772743667f79c1791e03689227a8ce44b9c433..37c7d09ea753735daa1783be2f05173773435c35 100644 (file)
@@ -1,6 +1,29 @@
 ccache news
 ===========
 
+ccache 3.7.11
+-------------
+
+Release date: 2020-07-21
+
+Bug fixes
+~~~~~~~~~
+
+- Added knowledge about `-fprofile-{correction,reorder-functions,values}`.
+
+- ccache now handles the Intel compiler option `-xCODE` (where `CODE` is a
+  processor feature code) correctly.
+
+- Added support for NVCC’s `-Werror` and `--Werror` options.
+
+
+Other
+~~~~~
+
+- ccache’s “Directory is not hashed if using -gz[=zlib]” tests are now skipped
+  for GCC 6.
+
+
 ccache 3.7.10
 ------------
 Release date: 2020-06-22
@@ -16,11 +39,11 @@ Bug fixes
 
 - ccache now copies files directly from the cache to the destination file
   instead of via a temporary file. This avoids problems when using filenames
-  long enough to be near the file system's filename max limit.
+  long enough to be near the file systems filename max limit.
 
 - When the hard-link mode is enabled, ccache now only uses hard links for
   object files, not other files like dependency files. This is because
-  compilers unlink object files before writing to them but they don't do that
+  compilers unlink object files before writing to them but they dont do that
   for dependency files, so the latter can become overwritten and therefore
   corrupted in the cache.
 
@@ -31,7 +54,7 @@ Bug fixes
 - Temporary files are now deleted immediately on signals like SIGTERM and
   SIGINT instead of some time later in a cleanup phase.
 
-- Fixed a bug that affected ccache's `-o/--set-config` option for the
+- Fixed a bug that affected ccaches `-o/--set-config` option for the
   `base_dir` and `cache_dir_levels` keys.
 
 
@@ -208,7 +231,7 @@ Bug fixes
 - The cache size (which is counted in “used disk blocks”) is now correct on
   filesystems that use more or less disk blocks than conventional filesystems,
   e.g. ecryptfs or btrfs/zfs with transparent compression. This also fixes a
-  related problem with ccache's own test suite when run on such file systems.
+  related problem with ccaches own test suite when run on such file systems.
 
 - Fixed a regression in 3.7.2 when using the compiler option “-Werror” and then
   “-Wno-error” later on the command line.
@@ -747,7 +770,7 @@ New features and enhancements
 
 - Added support for Fortran 77.
 
-- Added support for multiple `-arch` options to produce "fat binaries".
+- Added support for multiple `-arch` options to produce “fat binaries”.
 
 - Multiple identical `-arch` arguments are now handled without bailing.
 
@@ -866,7 +889,7 @@ Bug fixes
 
 - Include m4 files used by configure.ac in the source dist archives.
 
-- Corrected "Performance" section in the manual regarding `__DATE_`, `__TIME__`
+- Corrected “Performance” section in the manual regarding `__DATE_`, `__TIME__`
   and `__FILE__` macros.
 
 - Fixed build on Solaris 10+ and AIX 7.
@@ -934,7 +957,7 @@ Bug fixes
 
 - Bail out on compiler option `--save-temps` in addition to `-save-temps`.
 
-- Only log "Disabling direct mode" once when failing to read potential include
+- Only log “Disabling direct mode” once when failing to read potential include
   files.
 
 
@@ -1280,7 +1303,7 @@ Bug fixes
 
 - Made failure to create files (typically due to bad directory permissions) in
   the cache directory fatal. Previously, such failures were silently and
-  erroneously flagged as "compiler produced stdout".
+  erroneously flagged as “compiler produced stdout”.
 
 - Both the `-specs=file` and `--specs=file` forms are now recognized.
 
index ecf65da297d352040c5e33367e94061eb1bee818..48700b4cc205475748ee341fb1af69ab8203dded 100644 (file)
@@ -735,7 +735,7 @@ asciidoc.install(2);
 <body class="article">\r
 <div id="header">\r
 <h1>ccache news</h1>\r
-<span id="revnumber">version 3.7.10</span>\r
+<span id="revnumber">version 3.7.11</span>\r
 <div id="toc">
   <div id="toctitle">Table of Contents</div>
   <noscript><p><b>JavaScript must be enabled in your browser to display the table of contents.</b></p></noscript>
@@ -743,11 +743,49 @@ asciidoc.install(2);
 </div>\r
 <div id="content">\r
 <div class="sect1">\r
+<h2 id="_ccache_3_7_11">ccache 3.7.11</h2>\r
+<div class="sectionbody">\r
+<div class="paragraph"><p>Release date: 2020-07-21</p></div>\r
+<div class="sect2">\r
+<h3 id="_bug_fixes">Bug fixes</h3>\r
+<div class="ulist"><ul>\r
+<li>\r
+<p>\r
+Added knowledge about <code>-fprofile-{correction,reorder-functions,values}</code>.\r
+</p>\r
+</li>\r
+<li>\r
+<p>\r
+ccache now handles the Intel compiler option <code>-xCODE</code> (where <code>CODE</code> is a\r
+  processor feature code) correctly.\r
+</p>\r
+</li>\r
+<li>\r
+<p>\r
+Added support for NVCC’s <code>-Werror</code> and <code>--Werror</code> options.\r
+</p>\r
+</li>\r
+</ul></div>\r
+</div>\r
+<div class="sect2">\r
+<h3 id="_other">Other</h3>\r
+<div class="ulist"><ul>\r
+<li>\r
+<p>\r
+ccache’s “Directory is not hashed if using -gz[=zlib]” tests are now skipped\r
+  for GCC 6.\r
+</p>\r
+</li>\r
+</ul></div>\r
+</div>\r
+</div>\r
+</div>\r
+<div class="sect1">\r
 <h2 id="_ccache_3_7_10">ccache 3.7.10</h2>\r
 <div class="sectionbody">\r
 <div class="paragraph"><p>Release date: 2020-06-22</p></div>\r
 <div class="sect2">\r
-<h3 id="_bug_fixes">Bug fixes</h3>\r
+<h3 id="_bug_fixes_2">Bug fixes</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -762,14 +800,14 @@ Improved handling of profiling options. ccache should now work correctly for
 <p>\r
 ccache now copies files directly from the cache to the destination file\r
   instead of via a temporary file. This avoids problems when using filenames\r
-  long enough to be near the file system&#8217;s filename max limit.\r
+  long enough to be near the file systems filename max limit.\r
 </p>\r
 </li>\r
 <li>\r
 <p>\r
 When the hard-link mode is enabled, ccache now only uses hard links for\r
   object files, not other files like dependency files. This is because\r
-  compilers unlink object files before writing to them but they don&#8217;t do that\r
+  compilers unlink object files before writing to them but they dont do that\r
   for dependency files, so the latter can become overwritten and therefore\r
   corrupted in the cache.\r
 </p>\r
@@ -792,7 +830,7 @@ Temporary files are now deleted immediately on signals like SIGTERM and
 </li>\r
 <li>\r
 <p>\r
-Fixed a bug that affected ccache&#8217;s <code>-o/--set-config</code> option for the\r
+Fixed a bug that affected ccaches <code>-o/--set-config</code> option for the\r
   <code>base_dir</code> and <code>cache_dir_levels</code> keys.\r
 </p>\r
 </li>\r
@@ -805,7 +843,7 @@ Fixed a bug that affected ccache&#8217;s <code>-o/--set-config</code> option for
 <div class="sectionbody">\r
 <div class="paragraph"><p>Release date: 2020-03-29</p></div>\r
 <div class="sect2">\r
-<h3 id="_bug_fixes_2">Bug fixes</h3>\r
+<h3 id="_bug_fixes_3">Bug fixes</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -822,7 +860,7 @@ Removed incorrect assertion resulting in “ccache: error: Internal error in
 </ul></div>\r
 </div>\r
 <div class="sect2">\r
-<h3 id="_other">Other</h3>\r
+<h3 id="_other_2">Other</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -843,7 +881,7 @@ Improved name of temporary file used in NFS-safe unlink.
 <div class="sectionbody">\r
 <div class="paragraph"><p>Release date: 2020-03-16</p></div>\r
 <div class="sect2">\r
-<h3 id="_bug_fixes_3">Bug fixes</h3>\r
+<h3 id="_bug_fixes_4">Bug fixes</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -866,7 +904,7 @@ If <code>localtime_r</code> fails the epoch time is now logged instead of garbag
 </ul></div>\r
 </div>\r
 <div class="sect2">\r
-<h3 id="_other_2">Other</h3>\r
+<h3 id="_other_3">Other</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -922,7 +960,7 @@ Clarified “include_file_ctime sloppiness” in the Performance section in the
 <div class="sectionbody">\r
 <div class="paragraph"><p>Release date: 2020-01-05</p></div>\r
 <div class="sect2">\r
-<h3 id="_bug_fixes_4">Bug fixes</h3>\r
+<h3 id="_bug_fixes_5">Bug fixes</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -970,7 +1008,7 @@ The “cache miss” statistics counter will now be updated for read-only cache
 <div class="sectionbody">\r
 <div class="paragraph"><p>Release date: 2019-11-17</p></div>\r
 <div class="sect2">\r
-<h3 id="_bug_fixes_5">Bug fixes</h3>\r
+<h3 id="_bug_fixes_6">Bug fixes</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -1017,7 +1055,7 @@ Added support for <code>-MF=arg</code> (with an extra equal sign) as understood
 </ul></div>\r
 </div>\r
 <div class="sect2">\r
-<h3 id="_bug_fixes_6">Bug fixes</h3>\r
+<h3 id="_bug_fixes_7">Bug fixes</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -1087,14 +1125,14 @@ Added support for converting paths like “/c/users” into relative paths on
 <div class="sectionbody">\r
 <div class="paragraph"><p>Release date: 2019-08-17</p></div>\r
 <div class="sect2">\r
-<h3 id="_bug_fixes_7">Bug fixes</h3>\r
+<h3 id="_bug_fixes_8">Bug fixes</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
 The cache size (which is counted in “used disk blocks”) is now correct on\r
   filesystems that use more or less disk blocks than conventional filesystems,\r
   e.g. ecryptfs or btrfs/zfs with transparent compression. This also fixes a\r
-  related problem with ccache&#8217;s own test suite when run on such file systems.\r
+  related problem with ccaches own test suite when run on such file systems.\r
 </p>\r
 </li>\r
 <li>\r
@@ -1112,7 +1150,7 @@ Fixed a regression in 3.7.2 when using the compiler option “-Werror” and the
 <div class="sectionbody">\r
 <div class="paragraph"><p>Release date: 2019-07-19</p></div>\r
 <div class="sect2">\r
-<h3 id="_bug_fixes_8">Bug fixes</h3>\r
+<h3 id="_bug_fixes_9">Bug fixes</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -1569,7 +1607,7 @@ Made “./configure --without-bundled-zlib” do what’s intended.
 <div class="sectionbody">\r
 <div class="paragraph"><p>Release date: 2018-09-02</p></div>\r
 <div class="sect2">\r
-<h3 id="_bug_fixes_9">Bug fixes</h3>\r
+<h3 id="_bug_fixes_10">Bug fixes</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -1606,7 +1644,7 @@ Upgraded bundled zlib to version 1.2.11.
 <div class="sectionbody">\r
 <div class="paragraph"><p>Release date: 2018-03-25</p></div>\r
 <div class="sect2">\r
-<h3 id="_bug_fixes_10">Bug fixes</h3>\r
+<h3 id="_bug_fixes_11">Bug fixes</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -1650,7 +1688,7 @@ Made it possible to perform out-of-source builds in dev mode again.
 <div class="sectionbody">\r
 <div class="paragraph"><p>Release date: 2018-02-11</p></div>\r
 <div class="sect2">\r
-<h3 id="_bug_fixes_11">Bug fixes</h3>\r
+<h3 id="_bug_fixes_12">Bug fixes</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -1736,7 +1774,7 @@ Documented caveats related to colored warnings from compilers.
 </ul></div>\r
 </div>\r
 <div class="sect2">\r
-<h3 id="_bug_fixes_12">Bug fixes</h3>\r
+<h3 id="_bug_fixes_13">Bug fixes</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -1774,7 +1812,7 @@ Improved instructions on how to get cache hits between different working
 </ul></div>\r
 </div>\r
 <div class="sect2">\r
-<h3 id="_bug_fixes_13">Bug fixes</h3>\r
+<h3 id="_bug_fixes_14">Bug fixes</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -1800,7 +1838,7 @@ Documented how automatic cache cleanup works.
 </ul></div>\r
 </div>\r
 <div class="sect2">\r
-<h3 id="_bug_fixes_14">Bug fixes</h3>\r
+<h3 id="_bug_fixes_15">Bug fixes</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -1883,7 +1921,7 @@ Documented the different cache statistics counters.
 </ul></div>\r
 </div>\r
 <div class="sect2">\r
-<h3 id="_bug_fixes_15">Bug fixes</h3>\r
+<h3 id="_bug_fixes_16">Bug fixes</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -1913,7 +1951,7 @@ Fixed undefined behavior warnings in ccache found by <code>-fsanitize=undefined<
 <div class="sectionbody">\r
 <div class="paragraph"><p>Release date: 2016-10-26</p></div>\r
 <div class="sect2">\r
-<h3 id="_bug_fixes_16">Bug fixes</h3>\r
+<h3 id="_bug_fixes_17">Bug fixes</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -1930,7 +1968,7 @@ ccache now detects usage of <code>.incbin</code> assembler directives in the sou
 <div class="sectionbody">\r
 <div class="paragraph"><p>Release date: 2016-09-28</p></div>\r
 <div class="sect2">\r
-<h3 id="_bug_fixes_17">Bug fixes</h3>\r
+<h3 id="_bug_fixes_18">Bug fixes</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -1955,7 +1993,7 @@ Fixed a regression in ccache 3.3.1: ccache could get confused when using the
 <div class="sectionbody">\r
 <div class="paragraph"><p>Release date: 2016-09-07</p></div>\r
 <div class="sect2">\r
-<h3 id="_bug_fixes_18">Bug fixes</h3>\r
+<h3 id="_bug_fixes_19">Bug fixes</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -2074,7 +2112,7 @@ Added support for Fortran 77.
 </li>\r
 <li>\r
 <p>\r
-Added support for multiple <code>-arch</code> options to produce "fat binaries".\r
+Added support for multiple <code>-arch</code> options to produce “fat binaries”.\r
 </p>\r
 </li>\r
 <li>\r
@@ -2137,7 +2175,7 @@ Increased buffer size used when reading file data. This improves performance
 </ul></div>\r
 </div>\r
 <div class="sect2">\r
-<h3 id="_bug_fixes_19">Bug fixes</h3>\r
+<h3 id="_bug_fixes_20">Bug fixes</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -2163,7 +2201,7 @@ Fixed build and test for MinGW32 and Windows.
 <div class="sectionbody">\r
 <div class="paragraph"><p>Release date: 2016-09-28</p></div>\r
 <div class="sect2">\r
-<h3 id="_bug_fixes_20">Bug fixes</h3>\r
+<h3 id="_bug_fixes_21">Bug fixes</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -2181,7 +2219,7 @@ Fixed a regression in ccache 3.2.8: ccache could get confused when using the
 <div class="sectionbody">\r
 <div class="paragraph"><p>Release date: 2016-09-07</p></div>\r
 <div class="sect2">\r
-<h3 id="_bug_fixes_21">Bug fixes</h3>\r
+<h3 id="_bug_fixes_22">Bug fixes</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -2205,7 +2243,7 @@ ccache now understands the undocumented <code>-coverage</code> (only one dash) G
 <div class="sectionbody">\r
 <div class="paragraph"><p>Release date: 2016-07-20</p></div>\r
 <div class="sect2">\r
-<h3 id="_bug_fixes_22">Bug fixes</h3>\r
+<h3 id="_bug_fixes_23">Bug fixes</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -2228,7 +2266,7 @@ ccache now knows how to work around a glitch in the output of GCC 6’s
 <div class="sectionbody">\r
 <div class="paragraph"><p>Release date: 2016-07-12</p></div>\r
 <div class="sect2">\r
-<h3 id="_bug_fixes_23">Bug fixes</h3>\r
+<h3 id="_bug_fixes_24">Bug fixes</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -2278,7 +2316,7 @@ Made it harder to misinterpret documentation of boolean environment settings’
 </ul></div>\r
 </div>\r
 <div class="sect2">\r
-<h3 id="_bug_fixes_24">Bug fixes</h3>\r
+<h3 id="_bug_fixes_25">Bug fixes</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -2287,7 +2325,7 @@ Include m4 files used by configure.ac in the source dist archives.
 </li>\r
 <li>\r
 <p>\r
-Corrected "Performance" section in the manual regarding <code>__DATE_</code>, <code>__TIME__</code>\r
+Corrected “Performance” section in the manual regarding <code>__DATE_</code>, <code>__TIME__</code>\r
   and <code>__FILE__</code> macros.\r
 </p>\r
 </li>\r
@@ -2338,7 +2376,7 @@ The man page is now built when running “make install” from Git repository
 <div class="sectionbody">\r
 <div class="paragraph"><p>Release date: 2015-10-08</p></div>\r
 <div class="sect2">\r
-<h3 id="_bug_fixes_25">Bug fixes</h3>\r
+<h3 id="_bug_fixes_26">Bug fixes</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -2393,7 +2431,7 @@ Added support for compiler option <code>-gsplit-dwarf</code>.
 </ul></div>\r
 </div>\r
 <div class="sect2">\r
-<h3 id="_bug_fixes_26">Bug fixes</h3>\r
+<h3 id="_bug_fixes_27">Bug fixes</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -2417,7 +2455,7 @@ Bail out on compiler option <code>--save-temps</code> in addition to <code>-save
 </li>\r
 <li>\r
 <p>\r
-Only log "Disabling direct mode" once when failing to read potential include\r
+Only log “Disabling direct mode” once when failing to read potential include\r
   files.\r
 </p>\r
 </li>\r
@@ -2447,7 +2485,7 @@ Add support for caching code coverage results (compiling for gcov).
 </ul></div>\r
 </div>\r
 <div class="sect2">\r
-<h3 id="_bug_fixes_27">Bug fixes</h3>\r
+<h3 id="_bug_fixes_28">Bug fixes</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -2517,7 +2555,7 @@ Fixed build error when compiling ccache with recent Clang versions.
 <div class="sectionbody">\r
 <div class="paragraph"><p>Release date: 2014-12-10</p></div>\r
 <div class="sect2">\r
-<h3 id="_bug_fixes_28">Bug fixes</h3>\r
+<h3 id="_bug_fixes_29">Bug fixes</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -2749,7 +2787,7 @@ Various other improvements of the test suite.
 </ul></div>\r
 </div>\r
 <div class="sect2">\r
-<h3 id="_bug_fixes_29">Bug fixes</h3>\r
+<h3 id="_bug_fixes_30">Bug fixes</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -2780,7 +2818,7 @@ Fixed test suite failures when <code>CC</code> is a ccache-wrapped compiler.
 <div class="sectionbody">\r
 <div class="paragraph"><p>Release date: 2016-07-12</p></div>\r
 <div class="sect2">\r
-<h3 id="_bug_fixes_30">Bug fixes</h3>\r
+<h3 id="_bug_fixes_31">Bug fixes</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -2798,7 +2836,7 @@ Fixed a bug where (due to ccache rewriting paths) the compiler could choose
 <div class="sectionbody">\r
 <div class="paragraph"><p>Release date: 2015-03-07</p></div>\r
 <div class="sect2">\r
-<h3 id="_bug_fixes_31">Bug fixes</h3>\r
+<h3 id="_bug_fixes_32">Bug fixes</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -2880,7 +2918,7 @@ Stale files in the internal temporary directory (<code>&lt;ccache_dir&gt;/tmp</c
 </ul></div>\r
 </div>\r
 <div class="sect2">\r
-<h3 id="_bug_fixes_32">Bug fixes</h3>\r
+<h3 id="_bug_fixes_33">Bug fixes</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -2920,7 +2958,7 @@ Fixed problem with logging of current working directory.
 <div class="sectionbody">\r
 <div class="paragraph"><p>Release date: 2013-01-06</p></div>\r
 <div class="sect2">\r
-<h3 id="_bug_fixes_33">Bug fixes</h3>\r
+<h3 id="_bug_fixes_34">Bug fixes</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -2954,7 +2992,7 @@ Disappearing temporary stdout/stderr files are now handled gracefully.
 </ul></div>\r
 </div>\r
 <div class="sect2">\r
-<h3 id="_other_3">Other</h3>\r
+<h3 id="_other_4">Other</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -2991,7 +3029,7 @@ Clang plugins are now hashed to catch plugin upgrades.
 </ul></div>\r
 </div>\r
 <div class="sect2">\r
-<h3 id="_bug_fixes_34">Bug fixes</h3>\r
+<h3 id="_bug_fixes_35">Bug fixes</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -3018,7 +3056,7 @@ Paths are now correctly canonicalized when computing paths relative to the
 </ul></div>\r
 </div>\r
 <div class="sect2">\r
-<h3 id="_other_4">Other</h3>\r
+<h3 id="_other_5">Other</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -3039,7 +3077,7 @@ Fixed <code>static_assert</code> macro definition clash with GCC 4.7.
 <div class="sectionbody">\r
 <div class="paragraph"><p>Release date: 2012-01-08</p></div>\r
 <div class="sect2">\r
-<h3 id="_bug_fixes_35">Bug fixes</h3>\r
+<h3 id="_bug_fixes_36">Bug fixes</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -3051,7 +3089,7 @@ Non-writable <code>CCACHE_DIR</code> is now handled gracefully when <code>CCACHE
 <p>\r
 Made failure to create files (typically due to bad directory permissions) in\r
   the cache directory fatal. Previously, such failures were silently and\r
-  erroneously flagged as "compiler produced stdout".\r
+  erroneously flagged as “compiler produced stdout”.\r
 </p>\r
 </li>\r
 <li>\r
@@ -3091,7 +3129,7 @@ Reverted the GCC bug compatibility introduced in ccache 3.1.5 for <code>-MT</cod
 </ul></div>\r
 </div>\r
 <div class="sect2">\r
-<h3 id="_other_5">Other</h3>\r
+<h3 id="_other_6">Other</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -3122,7 +3160,7 @@ Rewrite argument to <code>--sysroot</code> if <code>CCACHE_BASEDIR</code> is use
 </ul></div>\r
 </div>\r
 <div class="sect2">\r
-<h3 id="_bug_fixes_36">Bug fixes</h3>\r
+<h3 id="_bug_fixes_37">Bug fixes</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -3175,7 +3213,7 @@ Improved order of statistics counters in <code>ccache -s</code> output.
 </ul></div>\r
 </div>\r
 <div class="sect2">\r
-<h3 id="_bug_fixes_37">Bug fixes</h3>\r
+<h3 id="_bug_fixes_38">Bug fixes</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -3208,7 +3246,7 @@ Systems that lack (and don’t need to be linked with) libm are now supported.
 <div class="sectionbody">\r
 <div class="paragraph"><p>Release date: 2011-01-09</p></div>\r
 <div class="sect2">\r
-<h3 id="_bug_fixes_38">Bug fixes</h3>\r
+<h3 id="_bug_fixes_39">Bug fixes</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -3241,7 +3279,7 @@ The file handle in now correctly closed on write error when trying to create
 <div class="sectionbody">\r
 <div class="paragraph"><p>Release date: 2010-11-28</p></div>\r
 <div class="sect2">\r
-<h3 id="_bug_fixes_39">Bug fixes</h3>\r
+<h3 id="_bug_fixes_40">Bug fixes</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -3252,7 +3290,7 @@ The -MFarg, -MTarg and -MQarg compiler options (i.e, without space between
 </ul></div>\r
 </div>\r
 <div class="sect2">\r
-<h3 id="_other_6">Other</h3>\r
+<h3 id="_other_7">Other</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -3268,7 +3306,7 @@ Portability fixes for HP-UX 11.00 and other esoteric systems.
 <div class="sectionbody">\r
 <div class="paragraph"><p>Release date: 2010-11-21</p></div>\r
 <div class="sect2">\r
-<h3 id="_bug_fixes_40">Bug fixes</h3>\r
+<h3 id="_bug_fixes_41">Bug fixes</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -3289,7 +3327,7 @@ Fixed issue when parsing precompiler output on AIX.
 </ul></div>\r
 </div>\r
 <div class="sect2">\r
-<h3 id="_other_7">Other</h3>\r
+<h3 id="_other_8">Other</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -3316,7 +3354,7 @@ The test suite now also works on systems that lack a /dev/zero.
 <div class="sectionbody">\r
 <div class="paragraph"><p>Release date: 2010-11-07</p></div>\r
 <div class="sect2">\r
-<h3 id="_bug_fixes_41">Bug fixes</h3>\r
+<h3 id="_bug_fixes_42">Bug fixes</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -3354,7 +3392,7 @@ ccache development version (set by dev.mk) now works with gits whose
 </ul></div>\r
 </div>\r
 <div class="sect2">\r
-<h3 id="_other_8">Other</h3>\r
+<h3 id="_other_9">Other</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -3438,7 +3476,7 @@ Added <code>-install_name</code> as an option known to take an argument. (This i
 </ul></div>\r
 </div>\r
 <div class="sect2">\r
-<h3 id="_bug_fixes_42">Bug fixes</h3>\r
+<h3 id="_bug_fixes_43">Bug fixes</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -3463,7 +3501,7 @@ EINTR is now handled correctly.
 </ul></div>\r
 </div>\r
 <div class="sect2">\r
-<h3 id="_other_9">Other</h3>\r
+<h3 id="_other_10">Other</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -3524,7 +3562,7 @@ New <code>HACKING.txt</code> file with some notes about ccache code conventions.
 <div class="sectionbody">\r
 <div class="paragraph"><p>Release date: 2010-07-15</p></div>\r
 <div class="sect2">\r
-<h3 id="_bug_fixes_43">Bug fixes</h3>\r
+<h3 id="_bug_fixes_44">Bug fixes</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -3713,7 +3751,7 @@ The following options are no longer hashed in the preprocessor mode:
 </ul></div>\r
 </div>\r
 <div class="sect2">\r
-<h3 id="_bug_fixes_44">Bug fixes</h3>\r
+<h3 id="_bug_fixes_45">Bug fixes</h3>\r
 <div class="ulist"><ul>\r
 <li>\r
 <p>\r
@@ -3858,9 +3896,9 @@ Statistics counters are now correctly updated for -E option failures and
 <div id="footnotes"><hr /></div>\r
 <div id="footer">\r
 <div id="footer-text">\r
-Version 3.7.10<br />\r
+Version 3.7.11<br />\r
 Last updated\r
- 2020-06-22 19:59:54 CEST\r
+ 2020-07-21 20:30:11 CEST\r
 </div>\r
 </div>\r
 </body>\r
index 72cf3d00fc42ff9897c9a1104d76d64263fa1e8c..9bdae4f4490059a6ba479c7e0c578d30d60805cc 100644 (file)
@@ -2,12 +2,12 @@
 .\"     Title: ccache
 .\"    Author: [see the "Author" section]
 .\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
-.\"      Date: 06/22/2020
+.\"      Date: 07/21/2020
 .\"    Manual: ccache Manual
-.\"    Source: ccache 3.7.10
+.\"    Source: ccache 3.7.11
 .\"  Language: English
 .\"
-.TH "CCACHE" "1" "06/22/2020" "ccache 3\&.7\&.10" "ccache Manual"
+.TH "CCACHE" "1" "07/21/2020" "ccache 3\&.7\&.11" "ccache Manual"
 .\" -----------------------------------------------------------------
 .\" * Define some portability stuff
 .\" -----------------------------------------------------------------
index 1b80fe0a5fae8e23a7d0cc7d86816679c9f67e53..5fb7b05dc83181d18f1cfda124392f3ea5b25c29 100644 (file)
@@ -2212,7 +2212,7 @@ calculate_object_hash(struct args *args, struct args *preprocessor_args,
                if ((str_eq(args->argv[i], "-ccbin")
                     || str_eq(args->argv[i], "--compiler-bindir"))
                    && i + 1 < args->argc
-                   && x_stat(args->argv[i+1], &st) == 0) {
+                   && stat(args->argv[i+1], &st) == 0) {
                        found_ccbin = true;
                        hash_delimiter(hash, "ccbin");
                        hash_nvcc_host_compiler(hash, &st, args->argv[i+1]);
@@ -2616,7 +2616,10 @@ process_profiling_option(const char *arg)
                         || str_startswith(arg, "-fauto-profile=")) {
                new_profile_use = true;
                new_profile_path = x_strdup(strchr(arg, '=') + 1);
-       } else if (str_eq(arg, "-fprofile-sample-accurate")) {
+       } else if (str_eq(arg, "-fprofile-correction")
+                  || str_eq(arg, "-fprofile-reorder-functions")
+                  || str_eq(arg, "-fprofile-sample-accurate")
+                  || str_eq(arg, "-fprofile-values")) {
                return true;
        } else {
                cc_log("Unknown profiling option: %s", arg);
@@ -2846,7 +2849,8 @@ cc_process_args(struct args *args,
                // Handle options that should not be passed to the preprocessor.
                if (compopt_affects_comp(argv[i])) {
                        args_add(compiler_only_args, argv[i]);
-                       if (compopt_takes_arg(argv[i])) {
+                       if (compopt_takes_arg(argv[i])
+                           || (guessed_compiler == GUESSED_NVCC && str_eq(argv[i], "-Werror"))) {
                                if (i == argc - 1) {
                                        cc_log("Missing argument to %s", argv[i]);
                                        stats_update(STATS_ARGS);
@@ -2889,6 +2893,17 @@ cc_process_args(struct args *args,
                        continue;
                }
 
+               if (strlen(argv[i]) >= 3
+                   && str_startswith(argv[i], "-x")
+                   && !islower(argv[i][2])) {
+                       // -xCODE (where CODE can be e.g. Host or CORE-AVX2, always starting with
+                       // an uppercase letter) is an ordinary Intel compiler option, not a
+                       // language specification. (GCC's "-x" language argument is always
+                       // lowercase.)
+                       args_add(common_args, argv[i]);
+                       continue;
+               }
+
                // Special handling for -x: remember the last specified language before the
                // input file and strip all -x options from the arguments.
                if (str_eq(argv[i], "-x")) {
index f59def96dd3802fc883d58eefa265459b9b99fc1..cbf9f40267849d2deb4715d8d9fb62e54ed88d95 100644 (file)
@@ -46,6 +46,7 @@ struct compopt {
 };
 
 static const struct compopt compopts[] = {
+       {"--Werror", TAKES_ARG}, // nvcc
        {"--analyze",       TOO_HARD}, // clang
        {"--compiler-bindir", AFFECTS_CPP | TAKES_ARG}, // nvcc
        {"--libdevice-directory", AFFECTS_CPP | TAKES_ARG}, // nvcc
index 2d81361eb1fd47c7750aa2bed8fa5956474ccc46..5e4c555477fcf98ff3bdd7f5228384052552ecca 100644 (file)
@@ -1 +1 @@
-extern const char CCACHE_VERSION[]; const char CCACHE_VERSION[] = "3.7.10";
+extern const char CCACHE_VERSION[]; const char CCACHE_VERSION[] = "3.7.11";
index 7a864e9409859ffe0de30884e3a2931ea33b0009..bd5bbcbc4568f5564bbddea5dea3b053806051e5 100644 (file)
@@ -373,7 +373,8 @@ base_tests() {
     # -------------------------------------------------------------------------
     TEST "Directory is not hashed if using -gz"
 
-    if $REAL_COMPILER -c test1.c -gz -o /dev/null 2>/dev/null; then
+    $REAL_COMPILER -E test1.c -gz >preprocessed.i 2>/dev/null
+    if [ -s preprocessed.i ] && ! fgrep -q $PWD preprocessed.i; then
         mkdir dir1 dir2
         cp test1.c dir1
         cp test1.c dir2
@@ -395,7 +396,8 @@ base_tests() {
     # -------------------------------------------------------------------------
     TEST "Directory is not hashed if using -gz=zlib"
 
-    if $REAL_COMPILER -c test1.c -gz=zlib -o /dev/null 2>/dev/null; then
+    $REAL_COMPILER -E test1.c -gz=zlib >preprocessed.i 2>/dev/null
+    if [ -s preprocessed.i ] && ! fgrep -q $PWD preprocessed.i; then
         mkdir dir1 dir2
         cp test1.c dir1
         cp test1.c dir2
index c121a5774d3089b9cec336db30fed796079c137a..f7b2e9ef1aef161f55746fe898282f01d6a5507f 100644 (file)
@@ -286,6 +286,19 @@ nvcc_tests() {
     expect_stat 'cache miss' 1
     expect_stat 'files in cache' 1
     expect_equal_files reference_test1.o test_cpp.o
+
+    # -------------------------------------------------------------------------
+    TEST "Option -Werror"
+
+    $ccache_nvcc_cpp -Werror cross-execution-space-call test_cpp.cu
+    expect_stat 'cache hit (preprocessed)' 0
+    expect_stat 'cache miss' 1
+    expect_stat 'files in cache' 1
+
+    $ccache_nvcc_cpp -Werror cross-execution-space-call test_cpp.cu
+    expect_stat 'cache hit (preprocessed)' 1
+    expect_stat 'cache miss' 1
+    expect_stat 'files in cache' 1
 }
 
 SUITE_nvcc_PROBE() {