Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1360500
| From | Vineet Gupta <Vineet.Gupta1@synopsys.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] ARC: build: Turn off -Wmaybe-uninitialized for ARC gcc 4.8 |
| Date | 2016-03-18 11:30 +0100 |
| Message-ID | <rdZPj-4hr-7@gated-at.bofh.it> (permalink) |
| References | <rdYgy-3aq-35@gated-at.bofh.it> <rdZmi-3Qj-21@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Friday 18 March 2016 03:22 PM, Arnd Bergmann wrote: > On Friday 18 March 2016 14:16:23 Vineet Gupta wrote: >> diff --git a/arch/arc/Makefile b/arch/arc/Makefile >> index fed12f39d8ce..aeb101e8e674 100644 >> --- a/arch/arc/Makefile >> +++ b/arch/arc/Makefile >> @@ -48,9 +48,14 @@ endif >> upto_gcc44 := $(call cc-ifversion, -le, 0404, y) >> atleast_gcc44 := $(call cc-ifversion, -ge, 0404, y) >> atleast_gcc48 := $(call cc-ifversion, -ge, 0408, y) >> +is_gcc48 := $(call cc-ifversion, -eq, 0408, y) >> >> cflags-$(atleast_gcc44) += -fsection-anchors >> >> +# gcc 4.8 spits out false positives for default -O3 >> +# disable these for 4.8 and revisit when we upgrade to newer ver >> +cflags-$(is_gcc48) += $(call cc-disable-warning,maybe-uninitialized,) >> + >> cflags-$(CONFIG_ARC_HAS_LLSC) += -mlock >> cflags-$(CONFIG_ARC_HAS_SWAPE) += -mswape > > Is this any better with gcc-4.9 or gcc-5? I don't think there's a production ARC toolchain with gcc 4.9 which we can use yet - Claudiu is still in the the middle of upstreaming the new ARC HS port bits so things are still in flight there. These tools are off of github ! Maybe it's better to add the flag to > the line that adds -O3 for consistency. We do the same thing for -Os in the > global Makefile, as that triggers a similar load of warnings. Sure, but I prefer this to be only for gcc 4.8 as this warning seems to be healthy in small doses :-) At least it keeps the door open for future discussion with gcc guys ! The following nested construct actually works - does that look OK to you ? ARCH_CFLAGS += -O3 $(call cc-ifversion, -lt, 0408, $(call cc-disable-warning,maybe-uninitialized,)) Thx, -Vineet > > Arnd > -- > To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] ARC: build: Turn off -Wmaybe-uninitialized for ARC gcc 4.8 Vineet Gupta <Vineet.Gupta1@synopsys.com> - 2016-03-18 09:50 +0100
Re: [PATCH] ARC: build: Turn off -Wmaybe-uninitialized for ARC gcc 4.8 Arnd Bergmann <arnd@arndb.de> - 2016-03-18 11:00 +0100
Re: [PATCH] ARC: build: Turn off -Wmaybe-uninitialized for ARC gcc 4.8 Vineet Gupta <Vineet.Gupta1@synopsys.com> - 2016-03-18 11:30 +0100
Re: [PATCH] ARC: build: Turn off -Wmaybe-uninitialized for ARC gcc 4.8 Arnd Bergmann <arnd@arndb.de> - 2016-03-18 11:40 +0100
Re: [PATCH] ARC: build: Turn off -Wmaybe-uninitialized for ARC gcc 4.8 Vineet Gupta <Vineet.Gupta1@synopsys.com> - 2016-03-18 11:50 +0100
Re: [PATCH] ARC: build: Turn off -Wmaybe-uninitialized for ARC gcc 4.8 Arnd Bergmann <arnd@arndb.de> - 2016-03-18 13:20 +0100
Re: [PATCH] ARC: build: Turn off -Wmaybe-uninitialized for ARC gcc 4.8 Vineet Gupta <Vineet.Gupta1@synopsys.com> - 2016-03-18 14:10 +0100
Re: [PATCH] ARC: build: Turn off -Wmaybe-uninitialized for ARC gcc 4.8 Arnd Bergmann <arnd@arndb.de> - 2016-03-18 14:50 +0100
csiph-web