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
This commit is contained in:
parent
06ec59e614
commit
736865e102
3 changed files with 11 additions and 5 deletions
|
@ -1,3 +1,11 @@
|
|||
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.
|
||||
|
|
|
@ -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); \
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue