OSDN Git Service

* varasm.c (IN_NAMED_SECTION): Remove guard.
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Apr 2010 16:39:24 +0000 (16:39 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Apr 2010 16:39:24 +0000 (16:39 +0000)
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158738 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/arm/unknown-elf.h
gcc/varasm.c

index 7d15bf0..4e960b6 100644 (file)
@@ -1,5 +1,13 @@
 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.
index 6f5839a..2d17063 100644 (file)
@@ -52,7 +52,7 @@
 #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)
 
@@ -60,7 +60,7 @@
 #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);                                \
@@ -77,7 +77,7 @@
 #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);                                \
index 229a370..fc0eb8a 100644 (file)
@@ -170,11 +170,9 @@ bool in_cold_section_p;
 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;