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]

Question about ARM -mapcs-frame documentation


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

    @item -mapcs-frame
    @opindex mapcs-frame
    Generate a stack frame that is compliant with the ARM Procedure Call
    Standard for all functions, even if this is not strictly necessary for
    correct execution of the code.  Specifying @option{-fomit-frame-pointer}
    with this option will cause the stack frames not to be generated for
    leaf functions.  The default is @option{-mno-apcs-frame}.

This says that the default is -mno-apcs-frame.  However, the default
definition of TARGET_DEFAULT, and many of the overrides, include
ARM_FLAG_APCS_FRAME.  The exceptions I see are:
    arm*-*-linux*
    arm*-*-uclinux*
    arm*-wince-pe*
    arm-*-pe*
    strongarm-*-pe
    arm-semi-aof
    armel-semi-aof

So for other targets, I think -mapcs-frame is currently the default.
These other targets are:
    arm-*-coff*
    armel-*-coff*
    arm*-*-freebsd*
    strongarm*-*-freebsd*
    arm*-*-netbsdelf*
    arm*-*-netbsd*
    arm*-*-ecos-elf
    arm*-*-rtems*
    arm*-*-elf
    ep9312-*-elf
    arm*-*-kaos*

Is this an error in the documentation or an error in the code?

Ian


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