summaryrefslogtreecommitdiff
path: root/gcc/c-family
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/c-family')
-rw-r--r--gcc/c-family/ChangeLog10
-rw-r--r--gcc/c-family/c-common.c2
-rw-r--r--gcc/c-family/c-opts.c8
-rw-r--r--gcc/c-family/c-pragma.c4
-rw-r--r--gcc/c-family/c.opt2
5 files changed, 18 insertions, 8 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog
index aa5539f9526..80a10a3ea36 100644
--- a/gcc/c-family/ChangeLog
+++ b/gcc/c-family/ChangeLog
@@ -1,5 +1,15 @@
2010-11-10 Joseph Myers <joseph@codesourcery.com>
+ * c-common.c (handle_mode_attribute): Use %' and word "signedness"
+ in diagnostic.
+ * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
+ letter.
+ * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
+ Remove trailing '.' from diagnostics.
+ * c.opt (Wwrite-strings_: Avoid '`' in help text.
+
+2010-11-10 Joseph Myers <joseph@codesourcery.com>
+
* c-common.c (parse_optimize_options): Pass global_dc to
decode_options.
* c-opts.c (c_common_handle_option): Pass &global_options to
diff --git a/gcc/c-family/c-common.c b/gcc/c-family/c-common.c
index d4b5da1128a..154b6c94a76 100644
--- a/gcc/c-family/c-common.c
+++ b/gcc/c-family/c-common.c
@@ -6408,7 +6408,7 @@ handle_mode_attribute (tree *node, tree name, tree args,
if (ALL_FIXED_POINT_MODE_P (mode)
&& TYPE_UNSIGNED (type) != UNSIGNED_FIXED_POINT_MODE_P (mode))
{
- error ("signness of type and machine mode %qs don't match", p);
+ error ("signedness of type and machine mode %qs don%'t match", p);
return NULL_TREE;
}
/* For fixed-point modes, we need to pass saturating info. */
diff --git a/gcc/c-family/c-opts.c b/gcc/c-family/c-opts.c
index dc5c777d3e9..b4b77796696 100644
--- a/gcc/c-family/c-opts.c
+++ b/gcc/c-family/c-opts.c
@@ -1136,18 +1136,18 @@ c_common_parse_file (int set_yydebug)
switch (c_language)
{
case clk_c:
- warning(0, "The C parser does not support -dy, option ignored");
+ warning(0, "the C parser does not support -dy, option ignored");
break;
case clk_objc:
warning(0,
- "The Objective-C parser does not support -dy, option ignored");
+ "the Objective-C parser does not support -dy, option ignored");
break;
case clk_cxx:
- warning(0, "The C++ parser does not support -dy, option ignored");
+ warning(0, "the C++ parser does not support -dy, option ignored");
break;
case clk_objcxx:
warning(0,
- "The Objective-C++ parser does not support -dy, option ignored");
+ "the Objective-C++ parser does not support -dy, option ignored");
break;
default:
gcc_unreachable ();
diff --git a/gcc/c-family/c-pragma.c b/gcc/c-family/c-pragma.c
index 5aa209c8e64..23be17922c1 100644
--- a/gcc/c-family/c-pragma.c
+++ b/gcc/c-family/c-pragma.c
@@ -816,7 +816,7 @@ handle_pragma_target(cpp_reader *ARG_UNUSED(dummy))
token = pragma_lex (&x);
else
GCC_BAD ("%<#pragma GCC target (string [,string]...)%> does "
- "not have a final %<)%>.");
+ "not have a final %<)%>");
}
if (token != CPP_EOF)
@@ -884,7 +884,7 @@ handle_pragma_optimize (cpp_reader *ARG_UNUSED(dummy))
token = pragma_lex (&x);
else
GCC_BAD ("%<#pragma GCC optimize (string [,string]...)%> does "
- "not have a final %<)%>.");
+ "not have a final %<)%>");
}
if (token != CPP_EOF)
diff --git a/gcc/c-family/c.opt b/gcc/c-family/c.opt
index b25ecd6789a..868247168fe 100644
--- a/gcc/c-family/c.opt
+++ b/gcc/c-family/c.opt
@@ -667,7 +667,7 @@ Warn when a register variable is declared volatile
Wwrite-strings
C ObjC C++ ObjC++ Var(warn_write_strings) Warning
-In C++, nonzero means warn about deprecated conversion from string literals to `char *'. In C, similar warning, except that the conversion is of course not deprecated by the ISO C standard.
+In C++, nonzero means warn about deprecated conversion from string literals to 'char *'. In C, similar warning, except that the conversion is of course not deprecated by the ISO C standard.
Wpointer-sign
C ObjC Var(warn_pointer_sign) Init(-1) Warning