Commit 736865e1 by Eric Botcazou Committed by Eric Botcazou

varasm.c (IN_NAMED_SECTION): Remove guard.

	* 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.

From-SVN: r158738
parent 06ec59e6
2010-04-26 Eric Botcazou <ebotcazou@adacore.com> 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. * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
of shadowing it. Fix comments. of shadowing it. Fix comments.
......
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
#define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG #define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
/* Return a nonzero value if DECL has a section attribute. */ /* 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) \ ((TREE_CODE (DECL) == FUNCTION_DECL || TREE_CODE (DECL) == VAR_DECL) \
&& DECL_SECTION_NAME (DECL) != NULL_TREE) && DECL_SECTION_NAME (DECL) != NULL_TREE)
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
#define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \ #define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \
do \ do \
{ \ { \
if (IN_NAMED_SECTION (DECL)) \ if (IN_NAMED_SECTION_P (DECL)) \
switch_to_section (get_named_section (DECL, NULL, 0)); \ switch_to_section (get_named_section (DECL, NULL, 0)); \
else \ else \
switch_to_section (bss_section); \ switch_to_section (bss_section); \
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
#define ASM_OUTPUT_ALIGNED_DECL_LOCAL(FILE, DECL, NAME, SIZE, ALIGN) \ #define ASM_OUTPUT_ALIGNED_DECL_LOCAL(FILE, DECL, NAME, SIZE, ALIGN) \
do \ 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)); \ switch_to_section (get_named_section (DECL, NULL, 0)); \
else \ else \
switch_to_section (bss_section); \ switch_to_section (bss_section); \
......
...@@ -170,11 +170,9 @@ bool in_cold_section_p; ...@@ -170,11 +170,9 @@ bool in_cold_section_p;
static GTY(()) section *unnamed_sections; static GTY(()) section *unnamed_sections;
/* Return a nonzero value if DECL has a section attribute. */ /* Return a nonzero value if DECL has a section attribute. */
#ifndef IN_NAMED_SECTION
#define IN_NAMED_SECTION(DECL) \ #define IN_NAMED_SECTION(DECL) \
((TREE_CODE (DECL) == FUNCTION_DECL || TREE_CODE (DECL) == VAR_DECL) \ ((TREE_CODE (DECL) == FUNCTION_DECL || TREE_CODE (DECL) == VAR_DECL) \
&& DECL_SECTION_NAME (DECL) != NULL_TREE) && DECL_SECTION_NAME (DECL) != NULL_TREE)
#endif
/* Hash table of named sections. */ /* Hash table of named sections. */
static GTY((param_is (section))) htab_t section_htab; static GTY((param_is (section))) htab_t section_htab;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment