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]

[Patch, AArch64, ILP32] Pad pointer-typed stack argument downward in ILP32


This patch fixes the bug that pointer-typed argument passed on stack is not padded properly in ILP32.

OK for the trunk?

Thanks,
Yufeng



gcc/

        * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
        pad pointer-typed argument downward.

gcc/testsuite/

        * gcc.target/aarch64/test-ptr-arg-on-stack-1.c: New test.


Attachment: 06-fix-32-bit-ptr-padding.txt
Description: Text document


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