https://gcc.gnu.org/g:76f741e3d5d7bf1f7c0bdfae5243e5abd91e9e76

commit r17-3886-g76f741e3d5d7bf1f7c0bdfae5243e5abd91e9e76
Author: Uros Bizjak <[email protected]>
Date:   Mon Aug 10 23:31:23 2026 +0200

    Makefile.tpl: mark mail-report.log and mail-report-with-warnings.log as 
.PHONY
    
    mail-report.log has no prerequisites, so once it exists Make
    considers it up to date on every subsequent invocation and the
    recipe never reruns; regenerating it after a fresh test run
    currently requires manually removing the file first.
    
    mail-report-with-warnings.log has the same problem despite
    depending on warning.log: it always needs to regenerate on
    demand rather than only when its prerequisite changes.
    
    Mark both as .PHONY so they rerun on every invocation, matching
    their actual use as on-demand report generators rather than
    cacheable build artifacts.  warning.log itself is left alone, as
    its dependency on build.log is tracked correctly and should keep
    using normal timestamp-based rebuilding.
    
    ChangeLog:
    
            * Makefile.tpl (mail-report.log): Mark as .PHONY.
            (mail-report-with-warnings.log): Likewise.
            * Makefile.in: Regenerate.

Diff:
---
 Makefile.in  | 2 ++
 Makefile.tpl | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/Makefile.in b/Makefile.in
index 31eecec49caa..cb916838ebf0 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -2937,6 +2937,7 @@ do-check:
 warning.log: build.log
        $(srcdir)/contrib/warn_summary build.log > $@
 
+.PHONY: mail-report.log
 mail-report.log:
        if test x'$(BOOT_CFLAGS)' != x''; then \
            BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
@@ -2945,6 +2946,7 @@ mail-report.log:
        chmod +x $@
        echo If you really want to send e-mail, run ./$@ now
 
+.PHONY: mail-report-with-warnings.log
 mail-report-with-warnings.log: warning.log
        if test x'$(BOOT_CFLAGS)' != x''; then \
            BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
diff --git a/Makefile.tpl b/Makefile.tpl
index 98bd03e9a331..870a82e9118f 100644
--- a/Makefile.tpl
+++ b/Makefile.tpl
@@ -1054,6 +1054,7 @@ do-check:
 warning.log: build.log
        $(srcdir)/contrib/warn_summary build.log > $@
 
+.PHONY: mail-report.log
 mail-report.log:
        if test x'$(BOOT_CFLAGS)' != x''; then \
            BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
@@ -1062,6 +1063,7 @@ mail-report.log:
        chmod +x $@
        echo If you really want to send e-mail, run ./$@ now
 
+.PHONY: mail-report-with-warnings.log
 mail-report-with-warnings.log: warning.log
        if test x'$(BOOT_CFLAGS)' != x''; then \
            BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \

Reply via email to