aboutsummaryrefslogtreecommitdiffstats
path: root/cparser
diff options
context:
space:
mode:
authorBernhard Schommer <bernhardschommer@gmail.com>2017-12-07 17:14:31 +0100
committerBernhard Schommer <bschommer@users.noreply.github.com>2017-12-08 16:31:58 +0100
commit2699bcfc44ca33056f5ec2c718f857308c61d94a (patch)
tree5de382a67e29bda2304106c22e0db6573739e0e5 /cparser
parentd2efd8b0e1c07e8ce7edc2a5eaa461aff08d2be6 (diff)
downloadcompcert-2699bcfc44ca33056f5ec2c718f857308c61d94a.tar.gz
compcert-2699bcfc44ca33056f5ec2c718f857308c61d94a.zip
Store the different inlining cases.
In order to correctly support the noinline attribute we must store whether the function was specified with an inline specifer, had a noinline attribute or nothing. Bug 22642
Diffstat (limited to 'cparser')
-rw-r--r--cparser/Elab.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/cparser/Elab.ml b/cparser/Elab.ml
index 60772eec..c2d5ece7 100644
--- a/cparser/Elab.ml
+++ b/cparser/Elab.ml
@@ -2365,7 +2365,7 @@ let elab_fundef env spec name defs body loc =
&& can_return then
warning loc Invalid_noreturn "function '%s' declared 'noreturn' should not return" s;
(* Build and emit function definition *)
- let inline = inline && find_custom_attributes ["noinline";"__noinline__"] attr = [] in
+ let inline = inline in
let fn =
{ fd_storage = sto1;
fd_inline = inline;