diff options
author | Ziemowit Laski <zlaski@apple.com> | 2005-05-24 22:22:33 +0000 |
---|---|---|
committer | Mike Stump <mrs@gcc.gnu.org> | 2005-05-24 22:22:33 +0000 |
commit | 660845bf3a71cab364902d2e3b0830f08572d8f4 (patch) | |
tree | 0a08a44cd858d7e984fbacfc004a39aa76e53504 /gcc/cp/decl.c | |
parent | d11dd684081e91ffda37451fd6be1059d055130b (diff) | |
download | gcc-660845bf3a71cab364902d2e3b0830f08572d8f4.zip gcc-660845bf3a71cab364902d2e3b0830f08572d8f4.tar.gz gcc-660845bf3a71cab364902d2e3b0830f08572d8f4.tar.bz2 |
class.c (layout_class_type): Do not issue C++ ABI warnings for ObjC structs.
* class.c (layout_class_type): Do not issue C++ ABI warnings
for ObjC structs.
* decl.c (objc_mark_locals_volatile): Streamline by calling
objc_volatilize_decl().
* parser.c (cp_parser_objc_message_expression): Allow simple
type specifiers (instead of merely type names) as message
receivers.
* pt.c (template_args_equal): Do not call objc_comptypes().
* typeck.c (composite_pointer_type): If both pointers are
ObjC-esque, arbitrarily choose the first; do not call
objc_comptypes().
(comptypes): Do not call objc_comptypes().
(convert_for_assignment): Call objc_compare_types().
(comp_ptr_ttypes_real): Call objc_type_quals_match() before
concluding that types do not match.
From-SVN: r100125
Diffstat (limited to 'gcc/cp/decl.c')
-rw-r--r-- | gcc/cp/decl.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index eb8db91..0da9937 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -425,22 +425,7 @@ objc_mark_locals_volatile (void *enclosing_blk) tree decl; for (decl = scope->names; decl; decl = TREE_CHAIN (decl)) - { - /* Do not mess with variables that are 'static' or (already) - 'volatile'. */ - if (!TREE_THIS_VOLATILE (decl) && !TREE_STATIC (decl) - && (TREE_CODE (decl) == VAR_DECL - || TREE_CODE (decl) == PARM_DECL)) - { - TREE_TYPE (decl) - = build_qualified_type (TREE_TYPE (decl), - (TYPE_QUALS (TREE_TYPE (decl)) - | TYPE_QUAL_VOLATILE)); - TREE_THIS_VOLATILE (decl) = 1; - TREE_SIDE_EFFECTS (decl) = 1; - DECL_REGISTER (decl) = 0; - } - } + objc_volatilize_decl (decl); /* Do not climb up past the current function. */ if (scope->kind == sk_function_parms) |