This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/32528] -save-temps when compiling standard input fails
- From: "bonzini at gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Dec 2007 15:48:58 -0000
- Subject: [Bug c/32528] -save-temps when compiling standard input fails
- References: <bug-32528-11211@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from bonzini at gnu dot org 2007-12-17 15:48 -------
re. comment #5, like this?
Index: gcc.c
===================================================================
--- gcc.c (revision 128902)
+++ gcc.c (working copy)
@@ -4685,6 +4685,8 @@ do_spec_1 (const char *spec, int inswitc
fatal ("spec '%s' invalid", spec);
case 'b':
+ if (!IS_ABSOLUTE_PATH (input_basename[0]) && input_basename[0] ==
'-')
+ obstack_grow (&obstack, "./", 2);
obstack_grow (&obstack, input_basename, basename_length);
arg_going = 1;
break;
Anybody wants to bootstrap/test/regtest this?
Paolo
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32528