diff options
author | Bernhard Schommer <bernhardschommer@gmail.com> | 2017-12-07 17:14:31 +0100 |
---|---|---|
committer | Bernhard Schommer <bschommer@users.noreply.github.com> | 2017-12-08 16:31:58 +0100 |
commit | 2699bcfc44ca33056f5ec2c718f857308c61d94a (patch) | |
tree | 5de382a67e29bda2304106c22e0db6573739e0e5 /cparser/Elab.ml | |
parent | d2efd8b0e1c07e8ce7edc2a5eaa461aff08d2be6 (diff) | |
download | compcert-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/Elab.ml')
-rw-r--r-- | cparser/Elab.ml | 2 |
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; |