Messages in this thread | | | Date | Thu, 12 Apr 2012 22:07:52 +0200 | From | Sam Ravnborg <> | 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
| |