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
b8471b65
Commit
b8471b65
authored
30 years ago
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(rest_of_compilation): Adjust tests for when to inline and when to
defer. From-SVN: r8680
parent
b6ec8c5f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
gcc/toplev.c
+12
-11
No files found.
gcc/toplev.c
View file @
b8471b65
...
...
@@ -2778,14 +2778,13 @@ rest_of_compilation (decl)
compile it by itself, defer decision till end of compilation.
finish_compilation will call rest_of_compilation again
for those functions that need to be output. Also defer those
functions that were marked inline but weren't inlined; they
may never be used. */
if
((
specd
||
DECL_INLINE
(
decl
))
&&
((
!
TREE_PUBLIC
(
decl
)
&&
!
TREE_ADDRESSABLE
(
decl
)
&&
!
flag_keep_inline_functions
)
||
DECL_DEFER_OUTPUT
(
decl
)
||
DECL_EXTERNAL
(
decl
)))
functions that we are supposed to defer. */
if
(
DECL_DEFER_OUTPUT
(
decl
)
||
(
DECL_INLINE
(
decl
)
&&
((
!
TREE_PUBLIC
(
decl
)
&&
!
TREE_ADDRESSABLE
(
decl
)
&&
!
flag_keep_inline_functions
)
||
DECL_EXTERNAL
(
decl
))))
{
#ifdef DWARF_DEBUGGING_INFO
/* Generate the DWARF info for the "abstract" instance
...
...
@@ -2822,10 +2821,12 @@ rest_of_compilation (decl)
saved_arguments
=
DECL_ARGUMENTS
(
decl
);
TIMEVAR
(
integration_time
,
save_for_inline_copying
(
decl
));
}
}
if
(
DECL_DEFER_OUTPUT
(
decl
))
goto
exit_rest_of_compilation
;
/* If specified extern inline but we aren't inlining it, we are
done. */
if
(
specd
&&
DECL_EXTERNAL
(
decl
))
goto
exit_rest_of_compilation
;
}
TREE_ASM_WRITTEN
(
decl
)
=
1
;
...
...
This diff is collapsed.
Click to expand it.
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