Hi,

It's worth setting up the FPCR to flush to zero, round to nearest modes especially under Ofast and ffast-math.

This patch attempts to do so and additionally cleans up ENDFILE_SPEC for AArch64 GNU/Linux targets.

Built and tested cross with aarch64-none-elf. A native bootstrap and test run was also done for aarch64-none-linux-gnu.

Ok for trunk ?

regards
Ramana


gcc/Changelog

2014-09-04  Marcus Shawcroft  <marcus.shawcr...@arm.com>
            Ramana Radhakrishnan  <ramana.radhakrish...@arm.com>

* config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o. * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC): Define. (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.

libgcc/Changelog

2014-09-04  Marcus Shawcroft  <marcus.shawcr...@arm.com>
            Ramana Radhakrishnan  <ramana.radhakrish...@arm.com>

               * config.host (aarch64*): Include crtfastmath and t-crtfm.
               * config/aarch64/crtfastmath.c: New file.

Reply via email to