comparison gcc/config/arm/unknown-elf.h @ 63:b7f97abdc517 gcc-4.6-20100522

update gcc from gcc-4.5.0 to gcc-4.6
author ryoma <e075725@ie.u-ryukyu.ac.jp>
date Mon, 24 May 2010 12:47:05 +0900
parents a06113de4d67
children f6334be47118
comparison
equal deleted inserted replaced
56:3c8a44c06a95 63:b7f97abdc517
50 50
51 #undef PREFERRED_DEBUGGING_TYPE 51 #undef PREFERRED_DEBUGGING_TYPE
52 #define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG 52 #define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
53 53
54 /* Return a nonzero value if DECL has a section attribute. */ 54 /* Return a nonzero value if DECL has a section attribute. */
55 #define IN_NAMED_SECTION(DECL) \ 55 #define IN_NAMED_SECTION_P(DECL) \
56 ((TREE_CODE (DECL) == FUNCTION_DECL || TREE_CODE (DECL) == VAR_DECL) \ 56 ((TREE_CODE (DECL) == FUNCTION_DECL || TREE_CODE (DECL) == VAR_DECL) \
57 && DECL_SECTION_NAME (DECL) != NULL_TREE) 57 && DECL_SECTION_NAME (DECL) != NULL_TREE)
58 58
59 #undef ASM_OUTPUT_ALIGNED_BSS 59 #undef ASM_OUTPUT_ALIGNED_BSS
60 #define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \ 60 #define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \
61 do \ 61 do \
62 { \ 62 { \
63 if (IN_NAMED_SECTION (DECL)) \ 63 if (IN_NAMED_SECTION_P (DECL)) \
64 switch_to_section (get_named_section (DECL, NULL, 0)); \ 64 switch_to_section (get_named_section (DECL, NULL, 0)); \
65 else \ 65 else \
66 switch_to_section (bss_section); \ 66 switch_to_section (bss_section); \
67 \ 67 \
68 ASM_OUTPUT_ALIGN (FILE, floor_log2 (ALIGN / BITS_PER_UNIT)); \ 68 ASM_OUTPUT_ALIGN (FILE, floor_log2 (ALIGN / BITS_PER_UNIT)); \
75 75
76 #undef ASM_OUTPUT_ALIGNED_DECL_LOCAL 76 #undef ASM_OUTPUT_ALIGNED_DECL_LOCAL
77 #define ASM_OUTPUT_ALIGNED_DECL_LOCAL(FILE, DECL, NAME, SIZE, ALIGN) \ 77 #define ASM_OUTPUT_ALIGNED_DECL_LOCAL(FILE, DECL, NAME, SIZE, ALIGN) \
78 do \ 78 do \
79 { \ 79 { \
80 if ((DECL) != NULL && IN_NAMED_SECTION (DECL)) \ 80 if ((DECL) != NULL && IN_NAMED_SECTION_P (DECL)) \
81 switch_to_section (get_named_section (DECL, NULL, 0)); \ 81 switch_to_section (get_named_section (DECL, NULL, 0)); \
82 else \ 82 else \
83 switch_to_section (bss_section); \ 83 switch_to_section (bss_section); \
84 \ 84 \
85 ASM_OUTPUT_ALIGN (FILE, floor_log2 (ALIGN / BITS_PER_UNIT)); \ 85 ASM_OUTPUT_ALIGN (FILE, floor_log2 (ALIGN / BITS_PER_UNIT)); \