[Patch][ARM]Don't put volatile memory access in IT block for cortex-m7
Terry Guo
terry.guo@arm.com
Thu Feb 12 11:12:00 GMT 2015
Hi there,
This patch intends to prevent gcc from putting volatile memory access into
IT block for target like cortex-m7.
gcc/ChangeLog:
2015-02-12 Terry Guo <terry.guo@arm.com>
* config/arm/arm.c (arm_tune_cortex_m7): New global variable.
* config/arm/arm.h (TARGET_NO_VOLATILE_CE): New macro.
(arm_tune_cortex_m7): Declare new global variable.
* config/arm/arm.md (arm_comparison_operator): Disabled if not allow
volatile memory access in IT block.
gcc/testsuite/ChangeLog:
2015-02-12 Terry Guo <terry.guo@arm.com>
* gcc.target/arm/cortex-m7-it-volatile.c: New test.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: no-volatile-in-it-v4.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20150212/b2dbbd73/attachment.txt>
More information about the Gcc-patches
mailing list