Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1736655

Re: gcc-8 objtool warnings

From Arnd Bergmann <arnd@arndb.de>
Newsgroups linux.kernel
Subject Re: gcc-8 objtool warnings
Date 2017-09-21 15:30 +0200
Message-ID <us9Id-1wS-7@gated-at.bofh.it> (permalink)
References (5 earlier) <ui5PA-28K-11@gated-at.bofh.it> <uoy2u-4xg-11@gated-at.bofh.it> <urwQz-1e6-47@gated-at.bofh.it> <urxCW-1Jf-17@gated-at.bofh.it> <urypj-2ht-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, Sep 19, 2017 at 11:39 PM, Josh Poimboeuf <jpoimboe@redhat.com> wrote:
> On Tue, Sep 19, 2017 at 10:43:31PM +0200, Arnd Bergmann wrote:

> -----
> From: Josh Poimboeuf <jpoimboe@redhat.com>
> Subject: [PATCH] objtool: Support unoptimized frame pointer setup
>
> Arnd Bergmann reported a bunch of warnings like:
>
>   crypto/jitterentropy.o: warning: objtool: jent_fold_time()+0x3b: call without frame pointer save/setup
>   crypto/jitterentropy.o: warning: objtool: jent_stuck()+0x1d: call without frame pointer save/setup
>   crypto/jitterentropy.o: warning: objtool: jent_unbiased_bit()+0x15: call without frame pointer save/setup
>   crypto/jitterentropy.o: warning: objtool: jent_read_entropy()+0x32: call without frame pointer save/setup
>   crypto/jitterentropy.o: warning: objtool: jent_entropy_collector_free()+0x19: call without frame pointer save/setup
>
> and
>
>   arch/x86/events/core.o: warning: objtool: collect_events uses BP as a scratch register
>   arch/x86/events/core.o: warning: objtool: events_ht_sysfs_show()+0x22: call without frame pointer save/setup
>
> With certain rare configurations, GCC sometimes sets up the frame
> pointer with:
>
>   lea    (%rsp),%rbp
>
> instead of:
>
>   mov    %rsp,%rbp
>
> The instructions are equivalent, so treat the former like the latter.
>
> Reported-by: Arnd Bergmann <arnd@arndb.de>
> Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>

Confirmed, this fixes many configurations that had warnings before,
currently testing with gcc-6.3.

       Arnd

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: gcc-8 objtool warnings Arnd Bergmann <arnd@arndb.de> - 2017-09-11 16:40 +0200
  Re: gcc-8 objtool warnings Josh Poimboeuf <jpoimboe@redhat.com> - 2017-09-19 22:00 +0200
    Re: gcc-8 objtool warnings Arnd Bergmann <arnd@arndb.de> - 2017-09-19 22:50 +0200
      Re: gcc-8 objtool warnings Josh Poimboeuf <jpoimboe@redhat.com> - 2017-09-19 23:40 +0200
        Re: gcc-8 objtool warnings Arnd Bergmann <arnd@arndb.de> - 2017-09-21 15:30 +0200

csiph-web