Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
e3d1fd32
Commit
e3d1fd32
authored
Jul 29, 1997
by
Per Bothner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patches to use cpplib with cc1 #if USE_CPPLIB.
From-SVN: r14557
parent
b4294351
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletions
+12
-1
gcc/c-lex.c
+0
-0
gcc/toplev.c
+12
-1
No files found.
gcc/c-lex.c
View file @
e3d1fd32
This diff is collapsed.
Click to expand it.
gcc/toplev.c
View file @
e3d1fd32
...
...
@@ -209,9 +209,10 @@ char *input_filename;
char
*
main_input_filename
;
#if !USE_CPPLIB
/* Stream for reading from the input file. */
FILE
*
finput
;
#endif
/* Current line number in real source file. */
...
...
@@ -2123,6 +2124,7 @@ compile_file (name)
symout_time
=
0
;
dump_time
=
0
;
#if !USE_CPPLIB
/* Open input file. */
if
(
name
==
0
||
!
strcmp
(
name
,
"-"
))
...
...
@@ -2138,12 +2140,17 @@ compile_file (name)
#ifdef IO_BUFFER_SIZE
setvbuf
(
finput
,
(
char
*
)
xmalloc
(
IO_BUFFER_SIZE
),
_IOFBF
,
IO_BUFFER_SIZE
);
#endif
#endif
/* !USE_CPPLIB */
/* Initialize data in various passes. */
init_obstacks
();
init_tree_codes
();
#if USE_CPPLIB
init_parse
(
name
);
#else
init_lex
();
#endif
/* Some of these really don't need to be called when generating bytecode,
but the options would have to be parsed first to know that. -bson */
init_rtl
();
...
...
@@ -2722,7 +2729,11 @@ compile_file (name)
whether fclose returns an error, since the pages might still be on the
buffer chain while the file is open. */
#if USE_CPPLIB
finish_parse
();
#else
fclose
(
finput
);
#endif
if
(
ferror
(
asm_out_file
)
!=
0
||
fclose
(
asm_out_file
)
!=
0
)
fatal_io_error
(
asm_file_name
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment