From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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" MIME-Version: 1.0 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> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-arch-owner@vger.kernel.org To: Adrian Bunk Cc: Segher Boessenkool , Andi Kleen , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, akpm@linux-foundation.org List-ID: 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