From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1528 invoked by alias); 27 Nov 2004 02:46:29 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 1388 invoked from network); 27 Nov 2004 02:46:21 -0000 Received: from unknown (HELO yosemite.airs.com) (209.128.65.135) by sourceware.org with SMTP; 27 Nov 2004 02:46:21 -0000 Received: (qmail 31316 invoked by uid 10); 27 Nov 2004 02:46:20 -0000 Received: (qmail 14676 invoked by uid 500); 27 Nov 2004 02:46:14 -0000 From: Ian Lance Taylor To: "Arthur Yang" Cc: Subject: Re: arm-linux-gcc can't recognize "-mpreferred-stack-boundary" References: <001301c4d3ab$38731130$0101a8c0@arthur> Date: Sat, 27 Nov 2004 02:46:00 -0000 In-Reply-To: <001301c4d3ab$38731130$0101a8c0@arthur> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004-11/txt/msg00190.txt.bz2 "Arthur Yang" writes: > However when I build glibc, I found error caused by that arm-linux-gcc can't recognizing "preferred-stack-boundary=4". The output is attached at the end of the mail. > > So I checked like this: > gcc -mpreferred-stack-boundary=4 tt.c > It's OK. > arm-linux-gcc -mpreferred-stack-boundary=4 tt.c > it responded as below: > cc1: error: invalid option `preferred-stack-boundary=4' Yes. -mpreferred-stack-boundary is an i386-specific option. This problem would seem to be in the glibc cross-build procedure. It is using an i386-specific option for the ARM compiler. I don't know why. It's not a compiler bug. You will have to talk to the glibc people. Ian