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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Feb 2018 14:42:19 +0000 (15:42 +0100)
commitfff8ad7c18a238a32a56056980fccd40ed8cce83
tree545d8c81f043aa3f172a1f324ed44f70600b89ef
parent045e5161abfcfefce5b2777788e5913d85bb5c6f
compiler-gcc.h: __nostackprotector needs gcc-4.4 and up

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