This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: arm-linux-gcc can't recognize "-mpreferred-stack-boundary"
- From: Ian Lance Taylor <ian at wasabisystems dot com>
- To: "Arthur Yang" <arthuryang at online dot cq dot cn>
- Cc: <gcc-help at gcc dot gnu dot org>
- Date: 26 Nov 2004 21:46:14 -0500
- Subject: Re: arm-linux-gcc can't recognize "-mpreferred-stack-boundary"
- References: <001301c4d3ab$38731130$0101a8c0@arthur>
"Arthur Yang" <arthuryang@online.cq.cn> 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