hake/X86_64: add -Wno-frame-address to default flags.
authorMoritz Hoffmann <moritz.hoffmann@inf.ethz.ch>
Thu, 13 Oct 2016 14:39:55 +0000 (16:39 +0200)
committerMoritz Hoffmann <moritz.hoffmann@inf.ethz.ch>
Thu, 13 Oct 2016 14:40:53 +0000 (16:40 +0200)
GCC 6.1 warns on unsafe use of __builtin_return_address(x) for x > 0.
This patch disables the warning.

Signed-off-by: Moritz Hoffmann <moritz.hoffmann@inf.ethz.ch>

hake/X86_64.hs

index 4fb8227..48baa9d 100644 (file)
@@ -35,6 +35,7 @@ ourCommonFlags = [ Str "-m64",
                    Str "-fno-stack-protector", 
                    Str "-Wno-unused-but-set-variable",
                    Str "-Wno-packed-bitfield-compat",
+                   Str "-Wno-frame-address",
                    Str "-D__x86__" ]
 
 cFlags = ArchDefaults.commonCFlags