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 ARM] Fix PR51835, ARM EABI violation


Hi,
Currently gcc generates code violating ARM EABI when passing arguments to
some floating point
helper functions, which are __aeabi_d2iz/__aeabi_d2uiz. As reported in bug
PR51835.

This patch fixes the issue, with test cases.

It is for trunk and 4.6 branch, and I have checked the output codes
manually.
Is it OK?

Thanks

gcc/ChangeLog:
2012-01-17? Bin Cheng? <bin.cheng@arm.com>

	PR target/51835
	* config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
for
	__aeabi_d2iz/__aeabi_d2uiz in hard-float abi if only
single-precision
	arithmetic is supported in hardware.

gcc/testsuite/ChangeLog:
2012-01-17? Bin Cheng? <bin.cheng@arm.com>

	PR target/51835
	* testsuite/gcc.target/arm/pr51835.c: New testcase.

Attachment: pr51835-20120117.txt
Description: Text document


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