projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
650ad52
)
[Ada] Do not unconditionally inline expression functions with -gnatd.8
author
Eric Botcazou
<ebotcazou@adacore.com>
Thu, 12 Aug 2021 20:53:53 +0000
(22:53 +0200)
committer
Pierre-Marie de Rodat
<derodat@adacore.com>
Tue, 5 Oct 2021 08:20:08 +0000
(08:20 +0000)
gcc/ada/
* gcc-interface/trans.c (Subprogram_Body_to_gnu): Do not set the
DECL_DISREGARD_INLINE_LIMITS flag if -gnatd.8 is specified.
gcc/ada/gcc-interface/trans.c
patch
|
blob
|
history
diff --git
a/gcc/ada/gcc-interface/trans.c
b/gcc/ada/gcc-interface/trans.c
index
4aaa567
..
ddf08b0
100644
(file)
--- a/
gcc/ada/gcc-interface/trans.c
+++ b/
gcc/ada/gcc-interface/trans.c
@@
-3893,7
+3893,7
@@
Subprogram_Body_to_gnu (Node_Id gnat_node)
/* If the body comes from an expression function, arrange it to be inlined
in almost all cases. */
- if (Was_Expression_Function (gnat_node))
+ if (Was_Expression_Function (gnat_node)
&& !Debug_Flag_Dot_8
)
DECL_DISREGARD_INLINE_LIMITS (gnu_subprog_decl) = 1;
/* Try to create a bona-fide thunk and hand it over to the middle-end. */