diff options
author | Joseph Myers <joseph@codesourcery.com> | 2005-07-02 14:19:59 +0100 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2005-07-02 14:19:59 +0100 |
commit | c85ce869e757158c55fd428befdb59ad5d537c1f (patch) | |
tree | 3339d42d6bdaab3f873b91e89993fa54cc7f96e7 /gcc/objc | |
parent | dee158440e16ef7272d823b9bd5e6d414968fd8a (diff) | |
download | gcc-c85ce869e757158c55fd428befdb59ad5d537c1f.zip gcc-c85ce869e757158c55fd428befdb59ad5d537c1f.tar.gz gcc-c85ce869e757158c55fd428befdb59ad5d537c1f.tar.bz2 |
c.opt, [...]: Remove "." from end of help texts.
* c.opt, common.opt, config/bfin/bfin.opt, config/pa/pa.opt,
config/rs6000/rs6000.opt, params.def: Remove "." from end of help
texts.
* config/avr/avr.c: Do not use '`' as left quote.
* config/rs6000/rs6000.c, config/s390/s390.c, opts.c, tree.c:
Remove "." from end of diagnostics. Make diagnostics start with
lowercase letter.
cp:
* name-lookup.c, parser.c: Use %q, %< and %> to quote in
diagnostics.
fortran:
* lang.opt: Remove "." from end of help texts.
objc:
* objc-act.c: Use %q to quote in diagnostics.
From-SVN: r101533
Diffstat (limited to 'gcc/objc')
-rw-r--r-- | gcc/objc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/objc/objc-act.c | 14 |
2 files changed, 11 insertions, 7 deletions
diff --git a/gcc/objc/ChangeLog b/gcc/objc/ChangeLog index 18feb8d..70972f1 100644 --- a/gcc/objc/ChangeLog +++ b/gcc/objc/ChangeLog @@ -1,5 +1,9 @@ 2005-07-02 Joseph S. Myers <joseph@codesourcery.com> + * objc-act.c: Use %q to quote in diagnostics. + +2005-07-02 Joseph S. Myers <joseph@codesourcery.com> + * objc-act.c: Use '+' flag instead of %J. Use 'q' flag for quoting. diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index 9bd0884..a3d32d8 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -7074,13 +7074,13 @@ add_instance_variable (tree class, int public, tree field_decl) if (TYPE_NEEDS_CONSTRUCTING (field_type) && !TYPE_HAS_DEFAULT_CONSTRUCTOR (field_type)) { - warning (0, "type `%s' has no default constructor to call", + warning (0, "type %qs has no default constructor to call", type_name); /* If we cannot call a constructor, we should also avoid calling the destructor, for symmetry. */ if (TYPE_HAS_NONTRIVIAL_DESTRUCTOR (field_type)) - warning (0, "destructor for `%s' shall not be run either", + warning (0, "destructor for %qs shall not be run either", type_name); } } @@ -7092,9 +7092,9 @@ add_instance_variable (tree class, int public, tree field_decl) { /* Vtable pointers are Real Bad(tm), since Obj-C cannot initialize them. */ - error ("type `%s' has virtual member functions", type_name); - error ("illegal aggregate type `%s' specified " - "for instance variable `%s'", + error ("type %qs has virtual member functions", type_name); + error ("illegal aggregate type %qs specified " + "for instance variable %qs", type_name, ivar_name); /* Return class as is without adding this ivar. */ return class; @@ -7103,9 +7103,9 @@ add_instance_variable (tree class, int public, tree field_decl) /* User-defined constructors and destructors are not known to Obj-C and hence will not be called. This may or may not be a problem. */ if (TYPE_NEEDS_CONSTRUCTING (field_type)) - warning (0, "type `%s' has a user-defined constructor", type_name); + warning (0, "type %qs has a user-defined constructor", type_name); if (TYPE_HAS_NONTRIVIAL_DESTRUCTOR (field_type)) - warning (0, "type `%s' has a user-defined destructor", type_name); + warning (0, "type %qs has a user-defined destructor", type_name); if (!warn_cxx_ivars) { |