This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/32528] -save-temps when compiling standard input fails



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]