Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1534884
| Path | csiph.com!1.us.feeder.erje.net!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!news.unit0.net!news.panservice.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Michal Marek <mmarek@suse.com> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v4] Fixes for compiling with clang |
| Date | Fri, 02 Dec 2016 13:40:02 +0100 |
| Message-ID | <sJVia-3Rc-7@gated-at.bofh.it> (permalink) |
| References | <sHPTz-1JW-15@gated-at.bofh.it> <sInVg-724-13@gated-at.bofh.it> <sIRzY-1bf-39@gated-at.bofh.it> <sJE7E-85V-41@gated-at.bofh.it> |
| X-Original-To | Peter Foley <pefoley2@pefoley.com> |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 7bit |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 23 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | LKML <linux-kernel@vger.kernel.org>, linux-kbuild@vger.kernel.org, Behan Webster <behanw@converseincode.com> |
| X-Original-Date | Fri, 2 Dec 2016 13:33:39 +0100 |
| X-Original-Message-ID | <d419e823-8321-94d2-6f14-eac68e007eba@suse.com> |
| X-Original-References | <20161126182006.24815-1-pefoley2@pefoley.com> <20161128064446.4892-1-pefoley2@pefoley.com> <b4a882d3-6125-e7b7-6c60-901fabfc23d9@suse.com> <CAOFdcFMTQbkE4ODTmrxq2dkzkNV8PXcMD0V3UhXyL62xvhgTGA@mail.gmail.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1534884 |
Show key headers only | View raw
On 2016-12-01 19:13, Peter Foley wrote: > On Tue, Nov 29, 2016 at 6:22 AM, Michal Marek <mmarek@suse.com> wrote: >> Dne 28.11.2016 v 07:44 Peter Foley napsal(a): >> This adds new -Wno-* options also for the gcc case, is there a reason >> for this? Also, the -Wno-missing-field-initializers option is not >> available in some old gccs, so we would need a HOSTCC equivalent of >> cc-disable-warning. >> >> Michal > > It appeared that the conditional was simply reversed, as > -fno-delete-null-pointer-checks is only supported by gcc, and > explicitly not supported by clang. > (see https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/Makefile?id=61163efae02040f66a95c8ed17f4407951ba58fa) > It could be that the fno-delete-null-pointer-checks option was simply > misplaced, and the Wno-options should still be guarded by if(clang), > would that be a better approach? I think so. The -Wno-* options had not been present before clang support was added. It really looks like the -fno-delete-null-pointer-checks should not be there. Added Behan to CC. Michal
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] Fixes for compiling with clang Peter Foley <pefoley2@pefoley.com> - 2016-11-26 05:40 +0100
Re: [PATCH] Fixes for compiling with clang kbuild test robot <lkp@intel.com> - 2016-11-26 07:40 +0100
[PATCH v2] Fixes for compiling with clang Peter Foley <pefoley2@pefoley.com> - 2016-11-26 19:10 +0100
[PATCH v3] Fixes for compiling with clang Peter Foley <pefoley2@pefoley.com> - 2016-11-26 19:30 +0100
[PATCH v4] Fixes for compiling with clang Peter Foley <pefoley2@pefoley.com> - 2016-11-28 07:50 +0100
Re: [PATCH v4] Fixes for compiling with clang Michal Marek <mmarek@suse.com> - 2016-11-29 15:30 +0100
Re: [PATCH v4] Fixes for compiling with clang Peter Foley <pefoley2@pefoley.com> - 2016-12-01 19:20 +0100
Re: [PATCH v4] Fixes for compiling with clang Michal Marek <mmarek@suse.com> - 2016-12-02 13:40 +0100
csiph-web