This is the mail archive of the gcc@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: Question about ARM -mapcs-frame documentation


Ian Lance Taylor <ian@wasabisystems.com> writes:

> The documentation for the ARM -mapcs-frame option says this:

And another question.  The ARM backend code supports TARGET_ATPCS, and
it is used in a few places.  But there is no option for it in
TARGET_SWITCHES, which means that there is no way to control it.  It's
turned on automatically for TARGET_IWMMXT, and it's turned on for the
arm*-*-netbsdelf* target.  The latter decision is quite reasonable.
The former is, in my opinion, somewhat questionable.

The only effect of TARGET_ATPCS on the compiler appears to be to
change the definition of which types are returned in memory, and to
require that the stack be aligned on a 64-bit boundary.  Both of these
requirements are from the ATPCS document.  The former requirement
means that the ATPCS code does not completely interoperate with
non-ATPCS code.

Should there be -matpcs and -mno-atpcs options?

Ian


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