lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20181105151719.4552-1-changbin.du@gmail.com>
Date:   Mon,  5 Nov 2018 23:17:19 +0800
From:   Changbin Du <changbin.du@...il.com>
To:     yamada.masahiro@...ionext.com
Cc:     arnd@...db.de, linux-kernel@...r.kernel.org,
        linux-kbuild@...r.kernel.org, Changbin Du <changbin.du@...il.com>
Subject: [PATCH] init/Kconfig: make CC_OPTIMIZE_FOR_DEBUGGING visible only for GCC

Currently CC_OPTIMIZE_FOR_DEBUGGING is only able to build with GCC.
For clang, -Og optimization level could break kernel build. So make
CC_OPTIMIZE_FOR_DEBUGGING visible only for GCC.

Cc: Masahiro Yamada <yamada.masahiro@...ionext.com>
Signed-off-by: Changbin Du <changbin.du@...il.com>
---
 init/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/init/Kconfig b/init/Kconfig
index 0fb9c0b5f1a1..d5fb0ee1400a 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -1107,6 +1107,7 @@ config CC_OPTIMIZE_FOR_SIZE
 
 config CC_OPTIMIZE_FOR_DEBUGGING
 	bool "Optimize for better debugging experience (-Og)"
+	depends on CC_IS_GCC
 	depends on $(cc-option,-Og)
 	select NO_AUTO_INLINE
 	help
-- 
2.17.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ