Hi!

I've bootstrapped/regtested this patch for Manuel (just small formatting
changes from me), and committed to trunk.

2014-11-19  Manuel López-Ibáñez  <m...@gcc.gnu.org>
            Jakub Jelinek  <ja...@redhat.com>

        PR driver/36312
        PR driver/63837
        * gcc.c (process_command): Don't check for input/output
        filename equality if output is HOST_BIT_BUCKET.
        * toplev.c (init_asm_output): Likewise.

--- gcc/gcc.c.jj        2014-11-14 00:10:38.000000000 +0100
+++ gcc/gcc.c   2014-11-19 17:13:53.409985279 +0100
@@ -4155,7 +4155,9 @@ process_command (unsigned int decoded_op
                           CL_DRIVER, &handlers, global_dc);
     }
 
-  if (output_file && strcmp (output_file, "-"))
+  if (output_file
+      && strcmp (output_file, "-") != 0
+      && strcmp (output_file, HOST_BIT_BUCKET) != 0)
     {
       int i;
       for (i = 0; i < n_infiles; i++)
--- gcc/toplev.c.jj     2014-11-18 08:26:38.000000000 +0100
+++ gcc/toplev.c        2014-11-19 17:14:47.324047562 +0100
@@ -945,7 +945,8 @@ init_asm_output (const char *name)
        }
       if (!strcmp (asm_file_name, "-"))
        asm_out_file = stdout;
-      else if (!canonical_filename_eq (asm_file_name, name))
+      else if (!canonical_filename_eq (asm_file_name, name)
+              || !strcmp (asm_file_name, HOST_BIT_BUCKET))
        asm_out_file = fopen (asm_file_name, "w");
       else
        /* Use fatal_error (UNKOWN_LOCATION) instead of just fatal_error to

        Jakub

Reply via email to