xm-files: kill off definitely obsolete gunk
Matt Kraai
kraai@alumni.carnegiemellon.edu
Mon Mar 19 09:43:00 GMT 2001
Howdy,
The following patch eliminates the uses of IO_BUFFER_SIZE, as
suggested earlier in this thread. It bootstrapped on
i686-pc-linux-gnu.
Matt
for gcc/ChangeLog
2001-03-19 Matt Kraai <kraai@alumni.carnegiemellon.edu>
* toplev.c (compile_file): Remove setvbuf call.
for gcc/ch/ChangeLog
2001-03-19 Matt Kraai <kraai@alumni.carnegiemellon.edu>
* lex.c (init_parse): Remove setvbuf call.
for gcc/f/ChangeLog
2001-03-19 Matt Kraai <kraai@alumni.carnegiemellon.edu>
* com.c (init_parse): Remove setvbuf call.
for gcc/java/ChangeLog
2001-03-19 Matt Kraai <kraai@alumni.carnegiemellon.edu>
* jcf-parse.c (yyparse): Remove setvbuf call.
Index: gcc/toplev.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/toplev.c,v
retrieving revision 1.438
diff -c -3 -p -r1.438 toplev.c
*** toplev.c 2001/03/18 21:38:33 1.438
--- toplev.c 2001/03/19 16:21:08
*************** compile_file (name)
*** 2226,2236 ****
fatal_io_error ("can't open %s for writing", asm_file_name);
}
- #ifdef IO_BUFFER_SIZE
- setvbuf (asm_out_file, (char *) xmalloc (IO_BUFFER_SIZE),
- _IOFBF, IO_BUFFER_SIZE);
- #endif
-
if (name != 0)
name = ggc_strdup (name);
--- 2226,2231 ----
Index: gcc/ch/lex.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ch/lex.c,v
retrieving revision 1.19
diff -c -3 -p -r1.19 lex.c
*** lex.c 2001/02/04 23:18:43 1.19
--- lex.c 2001/03/19 16:21:10
*************** init_parse (filename)
*** 216,225 ****
if (finput == 0)
fatal_io_error ("can't open %s", filename);
- #ifdef IO_BUFFER_SIZE
- setvbuf (finput, (char *) xmalloc (IO_BUFFER_SIZE), _IOFBF, IO_BUFFER_SIZE);
- #endif
-
/* Make identifier nodes long enough for the language-specific slots. */
set_identifier_size (sizeof (struct lang_identifier));
--- 216,221 ----
Index: gcc/f/com.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/f/com.c,v
retrieving revision 1.115
diff -c -3 -p -r1.115 com.c
*** com.c 2001/03/15 02:50:56 1.115
--- com.c 2001/03/19 16:21:13
*************** init_parse (filename)
*** 14553,14562 ****
if (finput == 0)
fatal_io_error ("can't open %s", filename);
- #ifdef IO_BUFFER_SIZE
- setvbuf (finput, (char *) xmalloc (IO_BUFFER_SIZE), _IOFBF, IO_BUFFER_SIZE);
- #endif
-
/* Make identifier nodes long enough for the language-specific slots. */
set_identifier_size (sizeof (struct lang_identifier));
decl_printable_name = lang_printable_name;
--- 14553,14558 ----
Index: gcc/java/jcf-parse.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/jcf-parse.c,v
retrieving revision 1.78
diff -c -3 -p -r1.78 jcf-parse.c
*** jcf-parse.c 2001/03/16 06:12:53 1.78
--- jcf-parse.c 2001/03/19 16:21:13
*************** yyparse ()
*** 1036,1045 ****
/* Set new input_filename and finput */
finput = main_jcf->read_state;
- #ifdef IO_BUFFER_SIZE
- setvbuf (finput, (char *) xmalloc (IO_BUFFER_SIZE),
- _IOFBF, IO_BUFFER_SIZE);
- #endif
input_filename = IDENTIFIER_POINTER (name);
main_jcf->filbuf = jcf_filbuf_from_stdio;
--- 1036,1041 ----
More information about the Gcc-patches
mailing list