diff options
Diffstat (limited to 'gcc/config/pa')
-rw-r--r-- | gcc/config/pa/pa.c | 4 | ||||
-rw-r--r-- | gcc/config/pa/pa.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c index fe3881e8092..e13674143fe 100644 --- a/gcc/config/pa/pa.c +++ b/gcc/config/pa/pa.c @@ -10262,10 +10262,10 @@ pa_function_section (tree decl, enum node_frequency freq, /* Force nested functions into the same section as the containing function. */ if (decl - && DECL_SECTION_NAME (decl) == NULL_TREE + && DECL_SECTION_NAME (decl) == NULL && DECL_CONTEXT (decl) != NULL_TREE && TREE_CODE (DECL_CONTEXT (decl)) == FUNCTION_DECL - && DECL_SECTION_NAME (DECL_CONTEXT (decl)) == NULL_TREE) + && DECL_SECTION_NAME (DECL_CONTEXT (decl)) == NULL) return function_section (DECL_CONTEXT (decl)); /* Otherwise, use the default function section. */ diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h index ac3f0ebe74e..3f9f06bb6f2 100644 --- a/gcc/config/pa/pa.h +++ b/gcc/config/pa/pa.h @@ -955,7 +955,7 @@ do { \ /* Return a nonzero value if DECL has a section attribute. */ #define IN_NAMED_SECTION_P(DECL) \ ((TREE_CODE (DECL) == FUNCTION_DECL || TREE_CODE (DECL) == VAR_DECL) \ - && DECL_SECTION_NAME (DECL) != NULL_TREE) + && DECL_SECTION_NAME (DECL) != NULL) /* Define this macro if references to a symbol must be treated differently depending on something about the variable or |