This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: arm-linux-gcc can't recognize "-mpreferred-stack-boundary"


"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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]