linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mark Vegans <ihavenomoneybuthope@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: cannot build with no-inline-functions
Date: Wed, 31 Jul 2019 16:18:35 +0200	[thread overview]
Message-ID: <CAGdkbuwC8dTTUXdq9TkdH02BkTLmxWob71r0kvxvoubAuRr+2Q@mail.gmail.com> (raw)

Hi *,
I'm analyzing the linux kernel via phasar static analyzer framework,
it basically takes as input an LLVM IR file.
For debugging reasons, I would like to compile the kernel without
inlined functions. I'm compiling the kernel by clang, so I tried to
specify the following compiler flags:

```
-fno-inline-functions
-O1
```

Those were specified via KCFLAGS keyword in the root Makefile, I
generated the compile_commands.json file as well where I can see that
those flags above were used for the building process.

Unfortunately it did not work as I wanted, in the resulting LLVM IR I
still see inlined functions.
Is it possible to avoid inlined functions for the whole kernel via a
compiler flag? or any other suggestions?

thanks,
cheers

                 reply	other threads:[~2019-07-31 14:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAGdkbuwC8dTTUXdq9TkdH02BkTLmxWob71r0kvxvoubAuRr+2Q@mail.gmail.com \
    --to=ihavenomoneybuthope@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).