Add ARM/thumb pragma target
authorChristian Bruel <christian.bruel@st.com>
Thu, 11 Jun 2015 08:51:17 +0000 (10:51 +0200)
committerChristian Bruel <chrbr@gcc.gnu.org>
Thu, 11 Jun 2015 08:51:17 +0000 (10:51 +0200)
commitc84f825ca6438ea3c137342677b3c879499638da
tree162e2b98e73df673621c73b9c34bee20d5c00f08
parent1e5df998631330662f7fb51bd0ae0725c8b1327f
Add ARM/thumb pragma target

PR target/52144
* config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
 macros in ...
(arm_cpu_builtins): New function.
(arm_pragma_target_parse): Call arm_cpu_builtins.
* config/arm/arm-protos.h (arm_cpu_builtins): Declare.
(arm_register_target_pragmas): Likewise.
* config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
 Call arm_register_target_pragmas.
* config/arm/arm-c.c (arm_register_target_pragmas): New function.
(arm_pragma_target_parse): Likewise.

PR target/52144
* gcc.target/arm/pragma_attribute.c: New test.

From-SVN: r224365
gcc/ChangeLog
gcc/config/arm/arm-c.c
gcc/config/arm/arm-protos.h
gcc/config/arm/arm.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arm/pragma_attribute.c [new file with mode: 0644]