]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - include/linux/compiler-gcc.h
compiler-gcc.h: __nostackprotector needs gcc-4.4 and up
authorGeert Uytterhoeven <geert@linux-m68k.org>
Thu, 1 Feb 2018 10:21:59 +0000 (11:21 +0100)
committerSeth Forshee <seth.forshee@canonical.com>
Fri, 23 Feb 2018 14:26:47 +0000 (08:26 -0600)
commita1d486f635352d421738171cee40698713e7f514
tree581869671cf128ee41657785d360b783fe67f4e4
parentce595859e494356527849eb4e548ee562e189e2c
compiler-gcc.h: __nostackprotector needs gcc-4.4 and up

BugLink: http://bugs.launchpad.net/bugs/1751131
commit d9afaaa4ff7af8b87d4a205e48cb8a6f666d7f01 upstream.

Gcc versions before 4.4 do not recognize the __optimize__ compiler
attribute:

    warning: ‘__optimize__’ attribute directive ignored

Fixes: 7375ae3a0b79ea07 ("compiler-gcc.h: Introduce __nostackprotector function attribute")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
include/linux/compiler-gcc.h