This is the mail archive of the gcc-bugs@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]

[Bug target/52144] ARM should support arm/thumb function attribute to permit different instruction sets in the same source


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52144

--- Comment #6 from chrbr at gcc dot gnu.org ---
Author: chrbr
Date: Thu Jun 11 08:51:17 2015
New Revision: 224365

URL: https://gcc.gnu.org/viewcvs?rev=224365&root=gcc&view=rev
Log:
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.


Added:
    trunk/gcc/testsuite/gcc.target/arm/pragma_attribute.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/arm/arm-c.c
    trunk/gcc/config/arm/arm-protos.h
    trunk/gcc/config/arm/arm.h
    trunk/gcc/testsuite/ChangeLog


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