This is the mail archive of the gcc-patches@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: [testsuite, ARM] Fix gcc.dg/builtin-apply2.c for ARM EABI


Mark Mitchell wrote:
Jie Zhang wrote:
When testing GCC on a Cortex-M4 board, gcc.dg/builtin-apply2.c will hang
the testing. That is because we should not use 64 as the size of the
stack argument. For ARM EABI, NAME is passed in r0. D is passed in r2
and r3. E, F and G are passed on stack.

Is this true in all variants of the ABI? Or do we need to worry about hard-float vs. soft-float ABIs?
This test is skipped for hard-float, due to the case of passing arguments to a variadic function; it simply won't pass under -mfloat-abi=hard.

Jie, while you're at it, why not use the new __ARM_PCS symbol instead of __ARM_EABI__?
It more accurately marks the softfp conventions you're trying to assume here.


Chung-Lin


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