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;
...
@@ -209,9 +209,10 @@ char *input_filename;
char
*
main_input_filename
;
char
*
main_input_filename
;
#if !USE_CPPLIB
/* Stream for reading from the input file. */
/* Stream for reading from the input file. */
FILE
*
finput
;
FILE
*
finput
;
#endif
/* Current line number in real source file. */
/* Current line number in real source file. */
...
@@ -2123,6 +2124,7 @@ compile_file (name)
...
@@ -2123,6 +2124,7 @@ compile_file (name)
symout_time
=
0
;
symout_time
=
0
;
dump_time
=
0
;
dump_time
=
0
;
#if !USE_CPPLIB
/* Open input file. */
/* Open input file. */
if
(
name
==
0
||
!
strcmp
(
name
,
"-"
))
if
(
name
==
0
||
!
strcmp
(
name
,
"-"
))
...
@@ -2138,12 +2140,17 @@ compile_file (name)
...
@@ -2138,12 +2140,17 @@ compile_file (name)
#ifdef IO_BUFFER_SIZE
#ifdef IO_BUFFER_SIZE
setvbuf
(
finput
,
(
char
*
)
xmalloc
(
IO_BUFFER_SIZE
),
_IOFBF
,
IO_BUFFER_SIZE
);
setvbuf
(
finput
,
(
char
*
)
xmalloc
(
IO_BUFFER_SIZE
),
_IOFBF
,
IO_BUFFER_SIZE
);
#endif
#endif
#endif
/* !USE_CPPLIB */
/* Initialize data in various passes. */
/* Initialize data in various passes. */
init_obstacks
();
init_obstacks
();
init_tree_codes
();
init_tree_codes
();
#if USE_CPPLIB
init_parse
(
name
);
#else
init_lex
();
init_lex
();
#endif
/* Some of these really don't need to be called when generating bytecode,
/* 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 */
but the options would have to be parsed first to know that. -bson */
init_rtl
();
init_rtl
();
...
@@ -2722,7 +2729,11 @@ compile_file (name)
...
@@ -2722,7 +2729,11 @@ compile_file (name)
whether fclose returns an error, since the pages might still be on the
whether fclose returns an error, since the pages might still be on the
buffer chain while the file is open. */
buffer chain while the file is open. */
#if USE_CPPLIB
finish_parse
();
#else
fclose
(
finput
);
fclose
(
finput
);
#endif
if
(
ferror
(
asm_out_file
)
!=
0
||
fclose
(
asm_out_file
)
!=
0
)
if
(
ferror
(
asm_out_file
)
!=
0
||
fclose
(
asm_out_file
)
!=
0
)
fatal_io_error
(
asm_file_name
);
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