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]

Fix __aeabi_lcmp


The patch below fixes the implementation of __aeabi_lcmp. The current 
implementation gives incorrect results if the comparison overflows.

This routine is mainly for ABI compatibility, gcc inlines the comparison 
almost all the time, so this only effects code compiled with third party 
compilers. I've augmented the tests to cover all the important cases for 
__aeabi_lcmp and __aeabi_ulcmp.

Tested on arm-none-eabi.
Applied to trunk.

Paul


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