Subject: bug#70716: closed (Re: bug#70716: flymake-cc creates `-.o` files)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 28 Aug 2024 17:53:02 +0000

Your bug report

#70716: flymake-cc creates `-.o` files

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
70716: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=70716
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#70716: flymake-cc creates `-.o` files
From: Mattias Engdegård <[email-masked]>
To: Spencer Baugh <[email-masked]>
Cc: Eli Zaretskii <[email-masked]>, [email-masked],João Távora <[email-masked]>
Date: Wed, 28 Aug 2024 19:50:00 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

28 aug. 2024 kl. 19.01 skrev [email-masked]:

> check-syntax:
> 	gcc -o /dev/null -S ${CHK_SOURCES} || true
> 
> So it seems like it would be better to add this -o /dev/null in your
> Makefile.

Actually not my Makefile but that of flymake-tests.
Anyway, now done on master, thank you!

Subject: flymake-cc creates `-.o` files
From: Mattias Engdegård <[email-masked]>
To: Emacs Bug Report <[email-masked]>
Cc: João Távora <[email-masked]>
Date: Thu, 2 May 2024 15:10:18 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

`flymake-cc-use-special-make-target`, the standard value for `flymake-cc-command`, generates a command like

  make check-syntax CHK_SOURCES="-x c -c -"

which causes the compiler (at least Clang) to create the file `-.o` that is never cleaned up and whose name is mysterious and awkward to remove.

What about the patch below?