This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug driver/69552] flto save-temps overwrites file
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 29 Jan 2016 12:35:38 +0000
- Subject: [Bug driver/69552] flto save-temps overwrites file
- Auto-submitted: auto-generated
- References: <bug-69552-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69552
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Yes, there's no linker output so we use whatever else. We could try falling
back to a.out.
Similarly without LTO -save-temps overwrites files if you do
gcc t.c t.C
both assembly and linker files will be t.s/t.o and the link will even fail.
t.c
---
int main() { foo();}
t.C
---
extern "C" int foo () {}
so hardly a new issue with -save-temps - you need to know what you are doing.