Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751667AbbHLXVV (ORCPT ); Wed, 12 Aug 2015 19:21:21 -0400 Received: from mout.gmx.net ([212.227.15.15]:49364 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750826AbbHLXVU (ORCPT ); Wed, 12 Aug 2015 19:21:20 -0400 From: Jan-Simon Moeller To: llvmlinux@lists.linuxfoundation.org Cc: "H. Peter Anvin" , David Woodhouse , x86@kernel.org, linux-kernel@vger.kernel.org, mingo@redhat.com, tglx@linutronix.de Subject: Re: [llvmlinux] [PATCH] Make alignment cflags configurable. Date: Thu, 13 Aug 2015 01:17:53 +0200 Message-ID: <17148327.OB3ZpdCOue@aragorn.auenland.lan> Organization: priv User-Agent: KMail/4.14.9 (Linux/3.16.7-21-desktop; KDE/4.14.9; x86_64; ; ) In-Reply-To: References: <1439382775-28009-1-git-send-email-dl9pf@gmx.de> <3447724.z50aeuJHce@aragorn.auenland.lan> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:s7fy4U8UQzQlN7muHQLkfqg5r1Sc8PRZlHM3DrgH9tRsKCVc90F 8ObaY+xsTxmRDLtkBhHb0UAglI25DlYjODqv7O4b50ypVM56nSSD2mrsPn0RvZKxoR2qiFT v/L9cVR/E/DTKorEOrJEUk/GQKYiMnJ8rL3V8dNZI+ylOAn1bJzcffIVdeCwlmqVp8i4HK8 QgzEgjI27+5V5nVKyvBUQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:KlVe5n0F8wU=:FYTfng2KsdzXYDL9JEgF9Z mXTLhDhaITMmN9blchjxFR8OkSYV3r3Ff+Ehr6A1GwT3EmfYILNGx06t4UNKmVExsLHlECc1V i7DWgrUeBsPxdN6uM4bQZzd7lDOxCGZkAun4WKT9RG6hsLWsEwbc3IqMeXlySmpTYhg/Nsumx BTBbi73k9Yf/FVdNv1ACflq/RiDNd52wojh8Ln8HMNl34wOzm2UY0M4QmUKv5n1AJPpi8XHz+ fMQHuoxELqFMINJ0Fl1veY16FQJZ5Qn19bS71zXZxZjqvm4Lz3p3zd8WBxHbcg5lFF0nNW3zY s4pFXmg+wdTMhG0VW/cqIUmRzS2QSxd7OwuW46SzezVYMi0PqmkVEQYOJKzRDFJ5IJUOnX5mQ H+GTaTTmmdk3PQqzUCegTGQ5Z4aYL5eLYA9kO3yvh1aLt5CajIBgcPfoQ/lIU6bzLSkj4kce2 LEU1kVFX/5plJEzQkeQJneYnNjMxH/kw7sjC6AFsv2wkzHslS/VhZgmvqBSThyzO1d/QmFNa/ pw2yPtzswtIXsSI1++kaomo2G7UbwDVFGMnEjbPKfOs1gDNHTEBkIuD8cG5Yy9ALsS1dKi8S7 UjAVexT6+UiDi2alM9VYsN4TvIayBDACwhHY6Jg5VfLLY/HR401vEp2NAw+hIgMjnPrJj7nsH EYM+cvHEeKJQrBhuCyt6pUmGvICn6GG8ujaPTN+GjZdb1yG/FlL7lemCW+dpF+J69m4bDVzBI lmtf7zXw9poSftxtWCcIeaMheLsfkr0vKfCjSg== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2171 Lines: 72 Am Mittwoch, 12. August 2015, 15:37:05 schrieb H. Peter Anvin: > NAK. This is crazy. Ok roger that. What about the cc-option at least? This way we can figure why it does not work for clang and keep things as-is for gcc. JS > On August 12, 2015 3:30:19 PM PDT, Jan-Simon Moeller wrote: > >Hi all! > > > >> You could mention that this is to fix the clang build. But why is it > >> needed? It isn't that clang just doesn't accept the option, is it? > >> Otherwise we could just use $(call cc-option, -falign-jumps=1) etc. > > > >Yes it is to fix the build with clang. > >I tried cc-option, but it does not improve the situation (more below). > >This is why I chose the config option approach in the patch. > > > >> Did you get to the bottom of the clang failure here? Just turning > > > >this > > > >> off without a coherent explanation doesn't seem like the right thing > > > >to > > > >> do. > > > >I know it is not the final solution which is why I turned it into a > >config > >option. We can still debate if default should be "y" or "n". This way > >we all > >can proceed. > > > >@Ingo: would it be fine if we wrap it into a config option defaulting > >to "y" ? > > > > > >What I can say so far is that although clang warns about the unknown > >option > >and ignores it, the resulting kernel still fails to boot somewhere > >early in > >start_kernel(). I'm still investigating. > > > >My current trace ends like this: > >page_address_init ~ setup_arch ~ then arch/x86/kernel/setup.c:898 > >setup.c:898 is a printk actually ... > >early_idt_handler_array[i] ~> early_idt_handler_common > > > >The mail thread is here: > >http://lists.linuxfoundation.org/pipermail/llvmlinux/2015-August/001276.htm > >l > > > > > > > >We still build with -no-integrated-as which means we use gas. Maybe the > >flag > >is passed-on there and things get confused. > > > > > >Best, > >Jan-Simon -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/