OSDN Git Service

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)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 8 Feb 2018 11:37:10 +0000 (22:37 +1100)
commitd9afaaa4ff7af8b87d4a205e48cb8a6f666d7f01
treeed55f554712402edab6a4cf0bd52ec2ce0b0a46e
parentdf5d45aa08f848b79caf395211b222790534ccc7
compiler-gcc.h: __nostackprotector needs gcc-4.4 and up

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>
include/linux/compiler-gcc.h