Commit 7e4d7898 by Gabriel Dos Reis Committed by Gabriel Dos Reis

decl2.c (lang_decode_option): Set default line-wrap length to 72.

2000-01-19  Gabriel Dos Reis  <gdr@codesourcery>

        * decl2.c (lang_decode_option): Set default line-wrap length to 72.

        * typeck.c (composite_pointer_type, common_type,
        comp_target_parms, c_sizeof, expr_sizeof, build_array_ref,
        build_function_call_real, convert_arguments,
        build_binary_op_nodefault, pointer_int_sum, pointer_diff,
        build_unary_op, mark_addressable, build_compound_expr,
        build_static_cast, build_reinterpret_cast, build_const_cast,
        build_c_cast, build_modify_expr, get_delta_difference,
        build_ptrmemfunc, check_return_expr): Replace 'ANSI C++' with
        'ISO C++'.  Fusion consecutive calls to diagnotic message routines
        into a single one.
        * typeck2.c (readonly_error, abstract_virtuals_error,
        process_init_constructor, check_for_new_type): Likewise.

From-SVN: r31502
parent cfef86e4
2000-01-19 Gabriel Dos Reis <gdr@codesourcery>
* decl2.c (lang_decode_option): Set default line-wrap length to 72.
* typeck.c (composite_pointer_type, common_type,
comp_target_parms, c_sizeof, expr_sizeof, build_array_ref,
build_function_call_real, convert_arguments,
build_binary_op_nodefault, pointer_int_sum, pointer_diff,
build_unary_op, mark_addressable, build_compound_expr,
build_static_cast, build_reinterpret_cast, build_const_cast,
build_c_cast, build_modify_expr, get_delta_difference,
build_ptrmemfunc, check_return_expr): Replace 'ANSI C++' with
'ISO C++'. Fusion consecutive calls to diagnotic message routines
into a single one.
* typeck2.c (readonly_error, abstract_virtuals_error,
process_init_constructor, check_for_new_type): Likewise.
2000-01-19 Mark Mitchell <mark@codesourcery.com>
* tree.c (bot_manip): Set DECL_CONTEXT for newly created
......
......@@ -633,7 +633,9 @@ lang_decode_option (argc, argv)
name_mangling_version
= read_integral_parameter (p + 22, p - 2, name_mangling_version);
else if (!strncmp (p, "message-length=", 15))
set_message_length (read_integral_parameter (p + 15, p -2, 0));
set_message_length
(read_integral_parameter (p + 15, p -2,
/* default line-wrap length */ 72));
else if (!strncmp (p, "dump-translation-unit-", 22))
{
if (p[22] == '\0')
......
......@@ -93,9 +93,9 @@ readonly_error (arg, string, soft)
if (TREE_CODE (arg) == COMPONENT_REF)
{
if (TYPE_READONLY (TREE_TYPE (TREE_OPERAND (arg, 0))))
fmt = "%s of member `%D' in read-only structure";
fmt = "%s of data-member `%D' in read-only structure";
else
fmt = "%s of read-only member `%D'";
fmt = "%s of read-only data-member `%D'";
(*fn) (fmt, string, TREE_OPERAND (arg, 1));
}
else if (TREE_CODE (arg) == VAR_DECL)
......@@ -156,7 +156,7 @@ abstract_virtuals_error (decl, type)
decl, type);
else if (TREE_CODE (decl) == FUNCTION_DECL
&& TREE_CODE (TREE_TYPE (decl)) == METHOD_TYPE)
cp_error ("invalid return type for method `%#D'", decl);
cp_error ("invalid return type for member function `%#D'", decl);
else if (TREE_CODE (decl) == FUNCTION_DECL)
cp_error ("invalid return type for function `%#D'", decl);
}
......@@ -199,8 +199,8 @@ retry:
case RECORD_TYPE:
case UNION_TYPE:
case ENUMERAL_TYPE:
cp_error ("invalid use of undefined type `%#T'", type);
cp_error_at ("forward declaration of `%#T'", type);
cp_error_at
("invalid use of a forward-declared, but not defined type `%#T'", type);
break;
case VOID_TYPE:
......@@ -821,13 +821,13 @@ process_init_constructor (type, init, elts)
{
if (TYPE_USES_VIRTUAL_BASECLASSES (type))
{
sorry ("initializer list for object of class with virtual baseclasses");
sorry ("initializer list for object of class with virtual base classes");
return error_mark_node;
}
if (TYPE_BINFO_BASETYPES (type))
{
sorry ("initializer list for object of class with baseclasses");
sorry ("initializer list for object of class with base classes");
return error_mark_node;
}
......@@ -1462,7 +1462,7 @@ check_for_new_type (string, inptree)
{
if (inptree.new_type_flag
&& (pedantic || strcmp (string, "cast") != 0))
pedwarn ("ANSI C++ forbids defining types within %s",string);
pedwarn ("ISO C++ forbids defining types within %s",string);
}
/* Add new exception specifier SPEC, to the LIST we currently have.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment