From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762877AbXGJVxz (ORCPT ); Tue, 10 Jul 2007 17:53:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1760550AbXGJVxq (ORCPT ); Tue, 10 Jul 2007 17:53:46 -0400 Received: from terminus.zytor.com ([192.83.249.54]:36540 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756042AbXGJVxo (ORCPT ); Tue, 10 Jul 2007 17:53:44 -0400 Message-ID: <4693FE48.1010606@zytor.com> Date: Tue, 10 Jul 2007 14:46:48 -0700 From: "H. Peter Anvin" User-Agent: Thunderbird 2.0.0.0 (X11/20070419) MIME-Version: 1.0 To: Adrian Bunk CC: Segher Boessenkool , Andi Kleen , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, akpm@linux-foundation.org Subject: Re: [x86 setup 13/33] Header file to produce 16-bit code with gcc References: <11840359321823-git-send-email-hpa@zytor.com> <11840373002601-git-send-email-hpa@zytor.com> <108510B6-B9BE-49D4-BDCA-E25CA20CB29B@kernel.crashing.org> <200707101721.58937.ak@suse.de> <4693EF48.1080209@zytor.com> <20070710214315.GD3492@stusta.de> In-Reply-To: <20070710214315.GD3492@stusta.de> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Adrian Bunk wrote: >> >> For now, I have: > > Can't you use the global CFLAGS and append your specific ones? > No. A lot of the x86-64 flags don't work with -m32. >> CFLAGS := $(LINUXINCLUDE) -g -Os -D_SETUP -D__KERNEL__ \ > > -g ??? Leaves debugging information in setup.elf. It is handy sometimes. >> $(cflags-$(ARCH)) \ >> -Wall -Wstrict-prototypes \ >> -march=i386 -mregparm=3 \ > > Why -march=i386 ? So we can at least spit out an error message. -hpa