0
|
1 #include "config.h"
|
|
2 #include "system.h"
|
|
3 #include "coretypes.h"
|
|
4 #include "tm.h"
|
|
5 #include "tm_p.h"
|
|
6 #include "tree.h"
|
|
7 #include "output.h"
|
|
8 #include "c-common.h"
|
|
9
|
|
10
|
|
11 /* Output C specific EABI object attributes. These can not be done in
|
|
12 arm.c because they require information from the C frontend. */
|
|
13
|
|
14 static void arm_output_c_attributes(void)
|
|
15 {
|
|
16 /* Tag_ABI_PCS_wchar_t. */
|
|
17 asm_fprintf (asm_out_file, "\t.eabi_attribute 18, %d\n",
|
|
18 (int)(TYPE_PRECISION (wchar_type_node) / BITS_PER_UNIT));
|
|
19 }
|
|
20
|
|
21
|
|
22 /* Setup so that common code calls arm_output_c_attributes. */
|
|
23
|
|
24 void arm_lang_object_attributes_init(void)
|
|
25 {
|
|
26 arm_lang_output_object_attributes_hook = arm_output_c_attributes;
|
|
27 }
|