From: Arend van Spriel <arend@broadcom.com>
To: anish singh <anish198519851985@gmail.com>,
LAK <linux-arm-kernel@lists.infradead.org>,
linux-kernel-mail <linux-kernel@vger.kernel.org>
Subject: Re: Disabling gcc inline operation
Date: Mon, 24 Mar 2014 10:33:18 +0100 [thread overview]
Message-ID: <532FFBDE.7030407@broadcom.com> (raw)
In-Reply-To: <CAK7N6vrgnNdFvo8as+DrhXurxP+SexN9gi3WFrX_SCO9i2Ybyw@mail.gmail.com>
On 23/03/14 23:31, anish singh wrote:
> Many a time i have got a crash and it is difficult
> to find out the exact function which crashed
> because the crash stack doesn't show the "real"
> function because gcc inlines many functions when
> ever it desires or when it optimizes for speed.
>
> So i don't want gcc to inline any function instead
> just call the function so that i can see the crash
> stack of each function called. I just want to do
> this for debugging. Please let me know how can
> i do that?
>
> What switch command to pass to gcc in the make
> of linux kernel?
You tried to look at gcc.gnu.org, right? Your best options are -O0
and/or -Og for debugging purposes.
Regards,
Arend
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
next prev parent reply other threads:[~2014-03-24 9:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-23 22:31 Disabling gcc inline operation anish singh
2014-03-24 9:33 ` Arend van Spriel [this message]
2014-03-24 21:33 ` anish singh
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=532FFBDE.7030407@broadcom.com \
--to=arend@broadcom.com \
--cc=anish198519851985@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--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