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
9deaf1b1
Commit
9deaf1b1
authored
Dec 31, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(rest_of_compilation): Leave DECL_INLINE set even if won't inline.
From-SVN: r10916
parent
e1686233
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
gcc/toplev.c
+11
-10
No files found.
gcc/toplev.c
View file @
9deaf1b1
...
@@ -2666,21 +2666,18 @@ rest_of_compilation (decl)
...
@@ -2666,21 +2666,18 @@ rest_of_compilation (decl)
if
(
DECL_SAVED_INSNS
(
decl
)
==
0
)
if
(
DECL_SAVED_INSNS
(
decl
)
==
0
)
{
{
int
specd
=
DECL_INLINE
(
decl
)
;
int
inlineable
=
0
;
char
*
lose
;
char
*
lose
;
/* If requested, consider whether to make this function inline. */
/* If requested, consider whether to make this function inline. */
if
(
specd
||
flag_inline_functions
)
if
(
DECL_INLINE
(
decl
)
||
flag_inline_functions
)
TIMEVAR
(
integration_time
,
TIMEVAR
(
integration_time
,
{
{
lose
=
function_cannot_inline_p
(
decl
);
lose
=
function_cannot_inline_p
(
decl
);
/* If not optimizing, then make sure the DECL_INLINE
bit is off. */
if
(
lose
||
!
optimize
)
if
(
lose
||
!
optimize
)
{
{
if
(
warn_inline
&&
specd
)
if
(
warn_inline
&&
DECL_INLINE
(
decl
)
)
warning_with_decl
(
decl
,
lose
);
warning_with_decl
(
decl
,
lose
);
DECL_INLINE
(
decl
)
=
0
;
DECL_ABSTRACT_ORIGIN
(
decl
)
=
0
;
DECL_ABSTRACT_ORIGIN
(
decl
)
=
0
;
/* Don't really compile an extern inline function.
/* Don't really compile an extern inline function.
If we can't make it inline, pretend
If we can't make it inline, pretend
...
@@ -2692,7 +2689,11 @@ rest_of_compilation (decl)
...
@@ -2692,7 +2689,11 @@ rest_of_compilation (decl)
}
}
}
}
else
else
DECL_INLINE
(
decl
)
=
1
;
/* ??? Note that this has the effect of making it look
like "inline" was specified for a function if we choose
to inline it. This isn't quite right, but it's
probably not worth the trouble to fix. */
inlineable
=
DECL_INLINE
(
decl
)
=
1
;
});
});
insns
=
get_insns
();
insns
=
get_insns
();
...
@@ -2720,7 +2721,7 @@ rest_of_compilation (decl)
...
@@ -2720,7 +2721,7 @@ rest_of_compilation (decl)
if
(
!
current_function_contains_functions
if
(
!
current_function_contains_functions
&&
(
DECL_DEFER_OUTPUT
(
decl
)
&&
(
DECL_DEFER_OUTPUT
(
decl
)
||
(
(
specd
||
DECL_INLINE
(
decl
)
)
||
(
DECL_INLINE
(
decl
)
&&
((
!
TREE_PUBLIC
(
decl
)
&&
!
TREE_ADDRESSABLE
(
decl
)
&&
((
!
TREE_PUBLIC
(
decl
)
&&
!
TREE_ADDRESSABLE
(
decl
)
&&
!
flag_keep_inline_functions
)
&&
!
flag_keep_inline_functions
)
||
DECL_EXTERNAL
(
decl
)))))
||
DECL_EXTERNAL
(
decl
)))))
...
@@ -2748,7 +2749,7 @@ rest_of_compilation (decl)
...
@@ -2748,7 +2749,7 @@ rest_of_compilation (decl)
/* If we have to compile the function now, save its rtl and subdecls
/* If we have to compile the function now, save its rtl and subdecls
so that its compilation will not affect what others get. */
so that its compilation will not affect what others get. */
if
(
DECL_INLINE
(
decl
)
||
DECL_DEFER_OUTPUT
(
decl
))
if
(
inlineable
||
DECL_DEFER_OUTPUT
(
decl
))
{
{
#ifdef DWARF_DEBUGGING_INFO
#ifdef DWARF_DEBUGGING_INFO
/* Generate the DWARF info for the "abstract" instance of
/* Generate the DWARF info for the "abstract" instance of
...
@@ -2769,7 +2770,7 @@ rest_of_compilation (decl)
...
@@ -2769,7 +2770,7 @@ rest_of_compilation (decl)
/* If specified extern inline but we aren't inlining it, we are
/* If specified extern inline but we aren't inlining it, we are
done. */
done. */
if
(
specd
&&
DECL_EXTERNAL
(
decl
))
if
(
DECL_INLINE
(
decl
)
&&
DECL_EXTERNAL
(
decl
))
goto
exit_rest_of_compilation
;
goto
exit_rest_of_compilation
;
}
}
...
...
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