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
18736654
Commit
18736654
authored
Feb 21, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(compile_file): Initialize input_file_stack before calling lang_init,
not after. From-SVN: r8975
parent
4e1bf5f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
gcc/toplev.c
+6
-6
No files found.
gcc/toplev.c
View file @
18736654
...
@@ -2204,6 +2204,12 @@ compile_file (name)
...
@@ -2204,6 +2204,12 @@ compile_file (name)
input_filename
=
name
;
input_filename
=
name
;
/* Put an entry on the input file stack for the main input file. */
input_file_stack
=
(
struct
file_stack
*
)
xmalloc
(
sizeof
(
struct
file_stack
));
input_file_stack
->
next
=
0
;
input_file_stack
->
name
=
input_filename
;
/* Perform language-specific initialization.
/* Perform language-specific initialization.
This may set main_input_filename. */
This may set main_input_filename. */
lang_init
();
lang_init
();
...
@@ -2213,12 +2219,6 @@ compile_file (name)
...
@@ -2213,12 +2219,6 @@ compile_file (name)
if
(
main_input_filename
==
0
)
if
(
main_input_filename
==
0
)
main_input_filename
=
name
;
main_input_filename
=
name
;
/* Put an entry on the input file stack for the main input file. */
input_file_stack
=
(
struct
file_stack
*
)
xmalloc
(
sizeof
(
struct
file_stack
));
input_file_stack
->
next
=
0
;
input_file_stack
->
name
=
input_filename
;
if
(
!
output_bytecode
)
if
(
!
output_bytecode
)
{
{
ASM_FILE_START
(
asm_out_file
);
ASM_FILE_START
(
asm_out_file
);
...
...
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