diff options
author | pbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-11-05 17:13:46 +0000 |
---|---|---|
committer | pbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-11-05 17:13:46 +0000 |
commit | baa1a726769f43b667c12aec666b583a24ab8282 (patch) | |
tree | d9b1db9abf800db89044e66cfd259861dd9e81a8 /gcc/config/arm/arm-c.c | |
parent | ed2d47fc5a653206949773b05314e533ddcecc9b (diff) |
2007-11-05 Paul Brook <paul@codesourcery.com>
gcc/
* config.gcc (arm*-*-*): Set c_target_objs and cxx_target_objs.
* config/arm/arm.c (arm_lang_output_object_attributes_hook): New.
(arm_file_start): Don't set Tag_ABI_PCS_wchar_t. Call
arm_lang_output_object_attributes_hook.
* config/arm/arm.h (arm_lang_output_object_attributes_hook): Declare.
(REGISTER_TARGET_PRAGMAS): Call arm_lang_object_attributes_init.
* config/arm/arm-protos.h (arm_lang_object_attributes_init): Add
prototype.
* config/arm/t-arm.c (arm.o): New rule.
* config/arm/arm-c.c: New file.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@129904 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/arm/arm-c.c')
-rw-r--r-- | gcc/config/arm/arm-c.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/gcc/config/arm/arm-c.c b/gcc/config/arm/arm-c.c new file mode 100644 index 00000000000..60cf5a9728c --- /dev/null +++ b/gcc/config/arm/arm-c.c @@ -0,0 +1,27 @@ +#include "config.h" +#include "system.h" +#include "coretypes.h" +#include "tm.h" +#include "tm_p.h" +#include "tree.h" +#include "output.h" +#include "c-common.h" + + +/* Output C specific EABI object attributes. These can not be done in + arm.c because they require information from the C frontend. */ + +static void arm_output_c_attributes(void) +{ + /* Tag_ABI_PCS_wchar_t. */ + asm_fprintf (asm_out_file, "\t.eabi_attribute 18, %d\n", + (int)(TYPE_PRECISION (wchar_type_node) / BITS_PER_UNIT)); +} + + +/* Setup so that common code calls arm_output_c_attributes. */ + +void arm_lang_object_attributes_init(void) +{ + arm_lang_output_object_attributes_hook = arm_output_c_attributes; +} |