output file setup

law@redhat.com law@redhat.com
Fri May 11 14:50:00 GMT 2001


  In message < 87oft5qcrf.fsf@loki.wkstn.nix >you write:
  > On 7 May 2001, Jeffrey A. Law stipulated:
  > > *************** compile_file (name)
  > > *** 2322,2348 ****
  > >     /* Open assembler code output file.  Do this even if -fsyntax-only is
  >  on,
  > >        because then the driver will have provided the name of a temporary
  > >        file or bit bucket for us.  */
  > > - 
  > > -   if (! name_specified && asm_file_name == 0)
  > > -     asm_out_file = stdout;
  > 
  > ... the comment should move with the block it belongs to :) it is now
  > orphaned.
Silly me.

Index: toplev.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/toplev.c,v
retrieving revision 1.455
diff -c -3 -p -r1.455 toplev.c
*** toplev.c	2001/05/07 15:51:21	1.455
--- toplev.c	2001/05/11 21:48:30
*************** compile_file (name)
*** 2149,2154 ****
--- 2149,2158 ----
    init_timevar ();
    timevar_start (TV_TOTAL);
  
+   /* Open assembler code output file.  Do this even if -fsyntax-only is on,
+      because then the driver will have provided the name of a temporary
+      file or bit bucket for us.  */
+ 
    if (! name_specified && asm_file_name == 0)
      asm_out_file = stdout;
    else
*************** compile_file (name)
*** 2209,2218 ****
        if (aux_info_file == 0)
  	fatal_io_error ("can't open %s", aux_info_file_name);
      }
- 
-   /* Open assembler code output file.  Do this even if -fsyntax-only is on,
-      because then the driver will have provided the name of a temporary
-      file or bit bucket for us.  */
  
  #ifdef IO_BUFFER_SIZE
    setvbuf (asm_out_file, (char *) xmalloc (IO_BUFFER_SIZE),
--- 2213,2218 ----




More information about the Gcc-patches mailing list