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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120412200752.GA30685@merkur.ravnborg.org>
Date:	Thu, 12 Apr 2012 22:07:52 +0200
From:	Sam Ravnborg <sam@...nborg.org>
To:	Andi Kleen <ak@...ux.intel.com>
Cc:	Geert Uytterhoeven <geert@...ux-m68k.org>,
	Andi Kleen <andi@...stfloor.org>, linux-kernel@...r.kernel.org,
	linux-kbuild@...r.kernel.org, x86@...nel.org
Subject: Re: [PATCH 2/2] Add CONFIG_READABLE_ASM

On Thu, Apr 12, 2012 at 12:57:57PM -0700, Andi Kleen wrote:
>
>>> You should try cc-diasable-warning like this:
>>>
>>> KBUILD_CFLAGS += $(call cc-disable-warning, ipa-cp-clone)
>> That works, thanks!
>> Andi, does it still work as expected for you?
>
> No, unfortunately it doesn't enable the flag with my compiler.
> Also BTW ipa-cp-clone is not a warning, it's an optimization pass.

Yeah I see now.
cc-disable-warning only works on warnings - which starts with -W

Could you try this:

cc-disable-opt = $(call try-run,\
        $(CC) $(KBUILD_CPPFLAGS) $(KBUILD_CFLAGS) -f$(strip $(1)) -c -xc /dev/null -o "$$TMP",-fno-$(strip $(1)))

KBUILD_CFLAGS += $(call cc-disable-opt, ipa-cp-clone)


It will try if "gcc -fipa-cp-clone" is supported,
and add -fno-ipa-cp-clone in that case.

	Sam

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ