Question about ARM -mapcs-frame documentation
Ian Lance Taylor
ian@wasabisystems.com
Sun Oct 12 12:38:00 GMT 2003
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
More information about the Gcc
mailing list