2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
+ * varasm.c (IN_NAMED_SECTION): Remove guard.
+ * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
+ (IN_NAMED_SECTION_P): ...this.
+ (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
+ (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
+
+2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
+
* gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
of shadowing it. Fix comments.
#define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
/* Return a nonzero value if DECL has a section attribute. */
-#define IN_NAMED_SECTION(DECL) \
+#define IN_NAMED_SECTION_P(DECL) \
((TREE_CODE (DECL) == FUNCTION_DECL || TREE_CODE (DECL) == VAR_DECL) \
&& DECL_SECTION_NAME (DECL) != NULL_TREE)
#define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \
do \
{ \
- if (IN_NAMED_SECTION (DECL)) \
+ if (IN_NAMED_SECTION_P (DECL)) \
switch_to_section (get_named_section (DECL, NULL, 0)); \
else \
switch_to_section (bss_section); \
#define ASM_OUTPUT_ALIGNED_DECL_LOCAL(FILE, DECL, NAME, SIZE, ALIGN) \
do \
{ \
- if ((DECL) != NULL && IN_NAMED_SECTION (DECL)) \
+ if ((DECL) != NULL && IN_NAMED_SECTION_P (DECL)) \
switch_to_section (get_named_section (DECL, NULL, 0)); \
else \
switch_to_section (bss_section); \
static GTY(()) section *unnamed_sections;
/* Return a nonzero value if DECL has a section attribute. */
-#ifndef IN_NAMED_SECTION
#define IN_NAMED_SECTION(DECL) \
((TREE_CODE (DECL) == FUNCTION_DECL || TREE_CODE (DECL) == VAR_DECL) \
&& DECL_SECTION_NAME (DECL) != NULL_TREE)
-#endif
/* Hash table of named sections. */
static GTY((param_is (section))) htab_t section_htab;