1 2015-06-15 Nathan Sidwell <nathan@acm.org>
4 * cp-tree.h (DECL_INSTANTIATING_NSDMI_P): New.
5 * init.c (get_nsdmi): Check for DEFAULT_ARG in template case and
6 protect it from recursive instantiation.
8 2015-06-15 Paolo Carlini <paolo.carlini@oracle.com>
11 * decl2.c (no_linkage_error): Do not issue a permerror if the DECL
12 using a local type is pure virtual.
14 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
16 * call.c: Remove comment documenting the long-deleted
17 function build_method_call.
19 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
22 * typeck.c (cp_build_binary_op): Warn when comparing an address
23 of a reference against NULL.
25 2015-06-12 Jason Merrill <jason@redhat.com>
28 * pt.c (tsubst_decl) [VAR_DECL]: Mark namespace-scope
29 variables as DECL_NOT_REALLY_EXTERN.
31 2015-06-11 Jason Merrill <jason@redhat.com>
34 * constexpr.c (potential_constant_expression_1): Handle a
35 DECL_EXPR of TYPE_DECL.
38 * constexpr.c (cxx_eval_store_expression): Avoid messing up outer
41 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
43 * decl.c (cxx_init_decl_processing): Register the main
44 translation unit through the new debug hook.
46 2015-06-10 Jason Merrill <jason@redhat.com>
49 * cp-tree.h (TEMPLATE_DECL_COMPLEX_ALIAS_P): New.
50 * pt.c (push_template_decl_real): Set it.
51 (dependent_alias_template_spec_p): Use it.
52 (dependent_type_p_r): Use dependent_alias_template_spec_p.
53 (uses_all_template_parms_data, uses_all_template_parms_r)
54 (complex_alias_template_p): New.
55 (get_template_parm_index): Handle BOUND_TEMPLATE_TEMPLATE_PARM.
57 2015-06-09 Jason Merrill <jason@redhat.com>
61 * typeck2.c (digest_init_r): Replace previous change with
65 * semantics.c (process_outer_var_ref): Make sure the value is
66 actually constant before returning it.
67 * typeck.c (cp_build_array_ref): Allow subscripting non-lvalue
70 2015-06-09 Paolo Carlini <paolo.carlini@oracle.com>
73 * typeck2.c (digest_nsdmi_init): On aggregates use reshape_init.
74 * init.c (expand_default_init): Likewise.
76 2015-06-09 Jason Merrill <jason@redhat.com>
79 * tree.c (replace_placeholders_r): Handle placeholders for an
81 * typeck2.c (store_init_value): Only replace_placeholders for
82 objects of class type.
84 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
86 * call.c : Adjust include files.
88 * constexpr.c : Likewise.
89 * cp-array-notation.c : Likewise.
90 * cp-cilkplus.c : Likewise.
91 * cp-gimplify.c : Likewise.
92 * cp-lang.c : Likewise.
93 * cp-objcp-common.c : Likewise.
94 * cp-tree.h : Likewise.
95 * cp-ubsan.c : Likewise.
100 * error.c : Likewise.
101 * except.c : Likewise.
103 * friend.c : Likewise.
105 * lambda.c : Likewise.
107 * mangle.c : Likewise.
108 * method.c : Likewise.
109 * name-lookup.c : Likewise.
110 * optimize.c : Likewise.
111 * parser.c : Likewise.
113 * ptree.c : Likewise.
116 * search.c : Likewise.
117 * semantics.c : Likewise.
119 * typeck.c : Likewise.
120 * typeck2.c : Likewise.
121 * vtable-class-hierarchy.c : Likewise.
123 2015-06-05 Jason Merrill <jason@redhat.com>
126 * pt.c (argument_pack_element_is_expansion_p): Return 2 if
127 the expansion has extra args.
128 (use_pack_expansion_extra_args_p): Return true in that case.
131 * pt.c (type_dependent_expression_p): EXPR_PACK_EXPANSION is
132 dependent even if it has a type.
134 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
136 * cp-objcp-common.c: Adjust comment for
137 cxx_warn_unused_global_decl.
138 * cp-objcp-common.h (LANG_HOOKS_WRITE_GLOBALS): Remove
139 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
140 * cp-tree.h (note_mangling_alias): Protoize.
141 (cp_write_global_declarations): Remove.
142 (cxx_post_compilation_parsing_cleanups): Protoize.
143 * decl.c (wrapup_globals_for_namespace): Remove use of DATA
145 * decl2.c (mangling_aliases): New global.
146 (build_java_method_aliases): New. Adapted from
147 collect_candidates_for_java_method_aliases.
148 (collect_candidates_for_java_method_aliases): Remove.
149 (build_java_method_aliases): Remove.
150 (generate_mangling_aliases): New.
151 (note_mangling_alias): New. Moved from mangle_decl.
152 (locus_at_end_of_parsing): New global.
153 (c_parse_final_cleanups): Rename from
154 cp_write_global_declarations.
155 Use locus_at_end_of_parsing.
156 Call generate_mangling_aliases.
157 Rename call to collect_candidates_for_java_method_aliases into
158 build_java_method_aliases.
159 Remove call to finalize_compilation_unit.
160 Move vtable handling into cxx_post_compilation_parsing_cleanups.
161 Do not call check_global_declarations or
162 emit_debug_global_declarations.
163 (cxx_post_compilation_parsing_cleanups): New.
164 * mangle.c (mangle_decl): Move code to note_mangling_alias.
165 * name-lookup.c (do_namespace_alias): Call early_global_decl.
167 2015-06-05 Nathan Sidwell <nathan@acm.org>
170 * parser.c (cp_parser_cache_defarg): Continue looking for
171 declarators when scanning a potential template argument list of an
174 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
176 * call.c: Adjust includes for restructured coretypes.h.
178 * constexpr.c: Likewise.
179 * cp-array-notation.c: Likewise.
180 * cp-gimplify.c: Likewise.
181 * cp-lang.c: Likewise.
182 * cp-objcp-common.c: Likewise.
183 * cp-tree.h: Likewise.
184 * cp-ubsan.c: Likewise.
190 * except.c: Likewise.
192 * friend.c: Likewise.
194 * lambda.c: Likewise.
196 * mangle.c: Likewise.
197 * method.c: Likewise.
198 * name-lookup.c: Likewise.
199 * optimize.c: Likewise.
200 * parser.c: Likewise.
205 * search.c: Likewise.
206 * semantics.c: Likewise.
208 * typeck.c: Likewise.
209 * typeck2.c: Likewise.
210 * vtable-class-hierarchy.c: Likewise.
212 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
216 * cp-tree.h (get_guard_cond): Adjust declaration
217 * decl.c (expand_static_init): Use atomic load acquire
218 and adjust call to get_guard_cond.
219 * decl2.c (build_atomic_load_byte): New function.
220 (get_guard_cond): Handle thread_safety.
221 (one_static_initialization_or_destruction): Adjust call to
224 2015-06-03 Jason Merrill <jason@redhat.com>
227 * mangle.c (mangle_decl): Always SET_IDENTIFIER_GLOBAL_VALUE.
228 (write_CV_qualifiers_for_type): Set G.need_abi_warning.
229 (decl_implicit_alias_p): Split out from maybe_remove_implicit_alias.
230 * cp-tree.h (DECL_REALLY_EXTERN): Handle null DECL_LANG_SPECIFIC.
232 2015-06-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
233 Paolo Carlini <paolo.carlini@oracle.com>
236 * typeck.c (invalid_nonstatic_memfn_p): Add location_t parameter and
237 use it in the diagnostic.
238 (decay_conversion): Adjust call.
239 * semantics.c (finish_decltype_type): Likewise.
240 * call.c (resolve_args, build_new_op_1,
241 perform_implicit_conversion_flags): Adjust calls.
242 * cvt.c (ocp_convert, convert_to_void): Likewise.
243 * cp-tree.h (invalid_nonstatic_memfn_p): Update declaration.
245 2015-06-03 Paolo Carlini <paolo.carlini@oracle.com>
247 * decl.c (check_tag_decl): Use declspecs->locations as locations in
248 error_at and warning_at calls.
250 2015-06-03 Marek Polacek <polacek@redhat.com>
253 * cp-gimplify.c (struct cp_genericize_data): Add no_sanitize_p.
254 (cp_genericize_r): Don't instrument static initializers.
255 (cp_genericize_tree): Initialize wtd.no_sanitize_p.
257 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
259 * decl.c (start_function): Call plugin before parsing.
260 (finish_function): Call plugin after parsing.
262 2015-06-02 Patrick Palka <patrick@parcs.ath.cx>
264 * cp-tree.h (init_error): Remove declaration.
265 * error.c (scratch_pretty_printer): Rename to ...
266 (actual_pretty_printer): ... this.
267 (cxx_pp): Constify and update accordingly.
268 (init_error): Remove definition.
269 * lex.c (cxx_init): Do not call init_error.
271 2015-06-02 Paolo Carlini <paolo.carlini@oracle.com>
274 * parser.c (cp_parser_mem_initializer): Allow for decltype-specifier.
276 2015-06-01 Jason Merrill <jason@redhat.com>
279 * decl2.c (mark_used): Don't always instantiate constexpr fns.
280 * constexpr.c (cxx_eval_call_expression): Instantiate them here.
283 * mangle.c (attr_strcmp): New.
284 (write_CV_qualifiers_for_type): Also write out attributes that
285 affect type identity.
286 (write_type): Strip all attributes after writing qualifiers.
288 2015-05-31 Jason Merrill <jason@redhat.com>
290 * constexpr.c (cxx_eval_indirect_ref): Try folding first.
293 * constexpr.c (cxx_eval_constant_expression): Treat a placeholder
294 with the wrong type as non-constant.
296 2015-05-27 Jason Merrill <jason@redhat.com>
298 * decl.c (check_redeclaration_exception_specification): Depend on
299 -Wsystem-headers rather than -pedantic.
301 * decl.c (warn_extern_redeclared_static): Use the location of
302 newdecl in diagnostics, not input_location.
303 (validate_constexpr_redeclaration): Likewise.
304 (check_redeclaration_no_default_args): Likewise.
305 (duplicate_decls): Likewise.
306 (check_redeclaration_exception_specification): Likewise.
307 Change second diagnostic to inform.
309 2015-05-24 Nathan Sidwell <nathan@acm.org>
312 * decl.c (build_enumerator): Don't silently convert scoped enums.
314 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
317 * mangle.c (mangle_decl): Mangle anonymous namespace types as
320 2015-05-23 Nathan Sidwell <nathan@acm.org>
323 * pt.c (lookup_template_class_1): Copy may_alias attribute too.
325 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
327 * Make-lang.in (check_g++_parallelize): Update comment.
329 2015-05-22 Paolo Carlini <paolo.carlini@oracle.com>
332 * decl.c (grokdeclarator): Use the correct location in error
333 messages about 'explicit'.
335 2015-05-22 Marek Polacek <polacek@redhat.com>
336 Edward Smith-Rowland <3dw4rd@verizon.net>
339 * cp-tree.h (build_enumerator): Update declaration.
340 * decl.c (build_enumerator): Add attributes parameter. Call
341 cplus_decl_attributes.
342 * init.c (constant_value_1): Pass tf_none to mark_used.
343 * parser.c (cp_parser_enumerator_definition): Parse attributes and
344 pass them down to build_enumerator.
345 * pt.c (tsubst_enum): Pass decl attributes to build_enumerator.
346 * semantics.c (finish_id_expression): Don't warn_deprecated_use here.
348 2015-05-21 Nathan Sidwell <nathan@acm.org>
351 * decl2.c (change_return_type): Propagate FUNCTION_REF_QUALIFIED.
353 2015-05-21 Marek Polacek <polacek@redhat.com>
355 * typeck.c (warn_args_num): Don't print "declare here" for builtins.
357 2015-05-20 Jason Merrill <jason@redhat.com>
359 * pt.c (tsubst_decl) [VAR_DECL]: SET_DECL_IMPLICIT_INSTANTIATION
360 before register_specialization.
362 * decl.c (grok_op_properties): Don't complain about size_t
363 placement delete here.
364 * call.c (second_parm_is_size_t): Split out from...
365 (non_placement_deallocation_fn_p): ...here.
366 (build_op_delete_call): Warn about size_t placement delete with
369 2015-05-19 Nathan Sidwell <nathan@acm.org>
372 * typeck.c (finish_class_member_access_expr): Diagnose failed
373 lookup of enum class member.
375 2015-05-19 Jakub Jelinek <jakub@redhat.com>
378 * parser.c (cp_parser_omp_for_loop): Don't add
379 OMP_CLAUSE_SHARED to OMP_PARALLEL_CLAUSES when moving
380 OMP_CLAUSE_LASTPRIVATE clause to OMP_FOR_CLAUSES.
381 (cp_parser_omp_teams): Set OMP_TEAMS_COMBINED for combined
384 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
386 * typeck.c (composite_pointer_type): Use std::swap instead of explicit
389 2015-05-18 Jason Merrill <jason@redhat.com>
391 * pt.c (retrieve_specialization): Make sure our arguments have
392 gone through strip_typedefs.
394 * pt.c (tsubst_decl) [VAR_DECL]: Call coerce_innermost_template_parms.
395 (determine_specialization): Call coerce_template_parms.
398 * pt.c (type_unification_real): Check convertibility here.
399 (unify_one_argument): Not here.
401 * tree.c (strip_typedefs_expr) [TRAIT_EXPR]: Fix typo.
402 (strip_typedefs) [DECLTYPE_TYPE]: Fix typedef of decltype.
403 [TREE_LIST]: Fix no-change case.
405 * ptree.c (cxx_print_xnode): Handle TRAIT_EXPR.
407 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
410 * error.c (cp_diagnostic_starter): Use diagnostic_location
412 (cp_print_error_function): Likewise.
413 (cp_printer): Replace locus pointer with accessor function.
415 2015-05-12 David Malcolm <dmalcolm@redhat.com>
417 * parser.c (cp_parser_selection_statement): Add location and
418 guard_kind arguments to calls to
419 cp_parser_implicitly_scoped_statement.
420 (cp_parser_iteration_statement): Likewise for calls to
421 cp_parser_already_scoped_statement.
422 (cp_parser_implicitly_scoped_statement): Add "guard_loc" and
423 "guard_kind" params; use them to warn for misleading
425 (cp_parser_already_scoped_statement): Likewise.
427 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
429 * class.c (fixup_type_variants): Do not copy TYPE_METHODS
430 (one_inheriting_sig): Assert tat we always set TYPE_METHODS of main variant.
431 * semantics.c (finish_member_declaration): Likewise.
432 * method.c (lazily_declare_fn): Allways add method to main variant list.
434 2015-05-09 Aldy Hernandez <aldyh@redhat.com>
437 * decl2.c (note_mangling_alias): Declare arguments as unused.
439 2015-05-08 Jason Merrill <jason@redhat.com>
441 * cp-gimplify.c, parser.c: Adjust to -Wc++11-compat replacing
444 2015-05-08 Jason Merrill <jason@redhat.com>
446 * decl2.c (mangling_aliases): New variable.
447 (note_mangling_alias, generate_mangling_aliases): New.
448 (cp_write_global_declarations): Call generate_mangling_aliases.
449 (generate_mangling_alias): Split out from...
450 * mangle.c (mangle_decl): ...here.
451 * cp-tree.h: Declare note_mangling_alias.
453 2015-05-08 Aldy Hernandez <aldyh@redhat.com>
455 * decl2.c (collect_candidates_for_java_method_aliases): Remove.
456 (build_java_method_aliases): Adapt to use create_same_body_alias
457 instead of assemble_alias. Move variable declarations to
458 definition and tidy up.
459 (cp_write_global_declarations): Call build_java_method_aliases
460 instead of collecting candidates first.
462 2015-05-07 Jason Merrill <jason@redhat.com>
465 * parser.c (cp_parser_std_attribute_list): Handle attribute expansion.
466 (cp_parser_std_attribute_spec): Handle alignas pack expansion.
467 * decl2.c (is_late_template_attribute): An attribute exp is dependent.
468 * pt.c (make_pack_expansion): Allow TREE_LIST for attribute expansion.
469 (apply_late_template_attributes): Handle attribute pack expansion.
471 2015-05-07 Marek Polacek <polacek@redhat.com>
474 * typeck.c (cp_build_binary_op): Warn when left shifting a negative
477 2015-05-07 Jason Merrill <jason@redhat.com>
481 * typeck2.c (digest_init_r): Fix single element list.
483 2015-05-05 Jason Merrill <jason@redhat.com>
485 * cp-gimplify.c (cp_genericize_r): Track TRY_BLOCK and
486 MUST_NOT_THROW_EXPR, warn about a THROW_EXPR directly within a
488 (cp_genericize_data): Add try_block field.
489 (cp_genericize_tree): Initialize it.
490 * except.c (expand_end_catch_block): Set TREE_NO_WARNING on
493 * constexpr.c (potential_constant_expression_1) [AT_ENCODE_EXPR]:
496 * semantics.c (finish_call_expr): Check complain.
498 * decl2.c (reset_type_linkage_2): Update the DECL_NAME of a
499 maybe-in-charge constructor.
501 * decl.c (start_decl): Don't push the plain VAR_DECL for a
508 * call.c (convert_like_real): Check value-initialization before
510 * typeck2.c (process_init_constructor_record): Don't set
511 CONSTRUCTOR_IS_DIRECT_INIT.
512 (process_init_constructor_array): Likewise.
513 * init.c (build_vec_init): Likewise.
515 2015-05-05 David Malcolm <dmalcolm@redhat.com>
517 * parser.c (cp_parser_asm_definition): Only test for
518 error_mark_node if "outputs" was just set. Likewise for "inputs".
520 2015-05-04 Paolo Carlini <paolo.carlini@oracle.com>
521 Jakub Jelinek <jakub@redhat.com>
524 * typeck2.c (check_narrowing): Check by-hand that the pedwarn didn't
525 result in an actual error.
527 2015-05-01 Paolo Carlini <paolo.carlini@oracle.com>
528 Prathamesh Kulharni <prathamesh.kulkarni@linaro.org>
531 * typeck2.c (check_narrowing): Set ok = true when pedwarn returns
534 2015-04-30 David Malcolm <dmalcolm@redhat.com>
536 * cp-tree.h (ARGUMENT_PACK_SELECT_ARG): Remove spurious
539 2015-04-29 Jason Merrill <jason@redhat.com>
542 * tree.c (apply_identity_attributes): Fix handling of classes.
544 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
546 * parser.c (cp_parser_oacc_enter_exit_data): Use
547 OMP_STANDALONE_CLAUSES.
549 2015-04-29 Paolo Carlini <paolo.carlini@oracle.com>
552 * init.c (perform_member_init): Handle references for -Winit-self.
554 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
556 * pt.c (tsubst_expr) <OMP_TARGET_UPDATE>: Use
557 OMP_TARGET_UPDATE_CLAUSES instead of OMP_CLAUSES.
559 2015-04-28 Jason Merrill <jason@redhat.com>
562 * constexpr.c (cxx_eval_store_expression): Don't try to actually
563 store an empty class.
566 * constexpr.c (cxx_eval_builtin_function_call): Fix
567 __builtin_constant_p.
570 * tree.c (strip_typedefs): Add remove_attributes parm.
571 (strip_typedefs_expr): Likewise.
572 (apply_identity_attributes): New subroutine of strip_typedefs.
573 * pt.c (canonicalize_type_argument): Let strip_typedefs handle attrs.
574 (convert_nontype_argument, unify): Likewise.
578 * class.c (fixup_attribute_variants): Respect TYPE_USER_ALIGN.
580 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
582 * class.c (layout_class_type): Remove check if
583 PCC_BITFIELD_TYPE_MATTERS is defined.
585 2015-04-27 Jim Wilson <jim.wilson@linaro.org>
587 * Make-lang.in (c++.mostlyclean): Remove xg++, g++-cross, and cc1plus.
589 2015-04-24 Jason Merrill <jason@redhat.com>
592 * typeck.c (structural_comptypes): Don't check TYPE_REF_CAN_ALIAS_ALL.
594 * constexpr.c (potential_constant_expression_1) [MINUS_EXPR]:
595 Remove obsolete code.
598 2015-04-23 Jason Merrill <jason@redhat.com>
601 * pt.c (check_explicit_specialization): Don't
602 SET_DECL_TEMPLATE_SPECIALIZATION for a variable with no template
604 * decl.c (grokvardecl): Revert earlier fix.
606 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
609 * typeck2.c (check_narrowing): In C++11 mode too, -Wno-narrowing
610 suppresses the diagnostic.
612 2015-04-20 Ville Voutilainen <ville.voutilainen@gmail.com>
614 Reject trailing return type for an operator auto().
615 * decl.c (grokdeclarator): Reject trailing return types for
616 all conversion operators, don't handle conversion operators
617 in the previous checks that deal with auto.
619 2015-04-20 Ilya Verbin <ilya.verbin@intel.com>
621 * parser.c (cp_parser_omp_target_update): Add missed %> to error_at ().
623 2015-04-16 Paolo Carlini <paolo.carlini@oracle.com>
625 * class.c (resolve_address_of_overloaded_function, instantiate_type):
626 Rename tsubst_flags_t parameter flags -> complain.
628 2015-04-16 Paolo Carlini <paolo.carlini@oracle.com>
630 * call.c (build_op_delete_call, build_over_call): Check mark_used
632 * class.c (resolve_address_of_overloaded_function): Likewise.
633 * decl.c (cxx_maybe_build_cleanup): Likewise.
634 * pt.c (gen_elem_of_pack_expansion_instantiation, tsubst_baselink,
635 tsubst_qualified_id, tsubst_copy, tsubst_copy_and_build): Likewise.
636 * rtti.c (build_dynamic_cast_1): Likewise.
637 * semantics.c (process_outer_var_ref): Likewise.
638 * typeck.c (build_class_member_access_expr,
639 cp_build_function_call_vec, cp_build_addr_expr_1): Likewise.
641 2015-04-15 Jason Merrill <jason@redhat.com>
643 * constexpr.c (cxx_eval_store_expression): Ignore clobbers.
644 (build_constexpr_constructor_member_initializers): Loop to find
646 * decl.c (start_preparsed_function): Clobber the object at the
647 beginning of a constructor.
649 * decl.c (grokmethod): Only set DECL_COMDAT if TREE_PUBLIC is set.
650 * method.c (implicitly_declare_fn): Likewise.
651 * decl2.c (vague_linkage_p): Check TREE_PUBLIC first.
653 * decl2.c (determine_visibility): Use get_template_info.
655 2015-04-15 Jason Merrill <jason@redhat.com>
656 Marek Polacek <polacek@redhat.com>
659 * lambda.c (lambda_expr_this_capture): In unevaluated context go
660 through the normal loop, just don't capture.
661 (maybe_resolve_dummy): Handle null return.
663 2015-04-15 Paolo Carlini <paolo.carlini@oracle.com>
665 * call.c (enforce_access): Emit error + inform.
667 2015-04-15 Marek Polacek <polacek@redhat.com>
669 * constexpr.c (use_new_call): Remove #define.
670 (lookup_parameter_binding): Remove function.
671 (cxx_bind_parameters_in_call): Remove unused code.
672 (cxx_eval_call_expression): Likewise.
673 (cxx_eval_constant_expression): Likewise.
675 2015-04-14 Mikhail Maltsev <maltsevm@gmail.com>
677 * tree.c (replace_placeholders_t): Remove unused type.
678 (replace_placeholders): Remove unused pset.
680 2015-04-14 Jason Merrill <jason@redhat.com>
682 * pt.c (lookup_template_class_1): Use coerce_innermost_template_parms.
685 * cvt.c (cp_fold_convert): Avoid wrapping PTRMEM_CST in NOP_EXPR.
688 * name-lookup.c (do_class_using_decl): Complain about specifying
689 the current class even if there are dependent bases.
691 2015-04-14 David Krauss <david_work@me.com>
694 * decl.c (grokdeclarator): Do not flag friends with deduced return.
696 2015-04-14 Momchil Velikov <momchil.velikov@gmail.com>
697 Jason Merrill <jason@redhat.com>
700 * parser.c (cp_parser_class_name): Add enum_ok parameter.
701 (cp_parser_qualifying_entity): Use it instead of cp_parser_type_name.
702 (cp_parser_diagnose_invalid_type_name): Don't assume a template is
705 2015-04-12 Jakub Jelinek <jakub@redhat.com>
708 * constexpr.c (cxx_eval_pointer_plus_expression): Don't fold for VLAs,
709 don't fold if op01 isn't divisible by TYPE_SIZE_UNIT. Convert
710 the expression to the original type at the end.
712 2015-04-09 Jakub Jelinek <jakub@redhat.com>
715 * tree.c (cp_build_qualified_type_real): Copy TYPE_ALIGN and
719 * tree.c (build_cplus_array_type): Layout type before variants are
720 set, but copy over TYPE_SIZE and TYPE_SIZE_UNIT from the main
723 2015-04-03 Paolo Carlini <paolo.carlini@oracle.com>
726 * lambda.c (add_capture): Use dependent_type_p for capture by
729 2015-04-02 Marek Polacek <polacek@redhat.com>
732 * constexpr.c (cxx_eval_pointer_plus_expression): Call
733 cxx_eval_constant_expression on the first operand.
735 2015-04-01 Jason Merrill <jason@redhat.com>
738 * decl.c (make_typename_type): Handle seeing a variable template.
740 2015-04-01 Paolo Carlini <paolo.carlini@oracle.com>
743 * pt.c (instantiating_current_function_p): New.
744 * name-lookup.c (pushdecl_maybe_friend_1): Use it.
745 * cp-tree.h (instantiating_current_function_p): Declare.
747 2015-04-01 Jason Merrill <jason@redhat.com>
750 * decl.c (grokvardecl): Don't call check_explicit_specialization
751 for non-template members of a class template.
753 2015-04-01 Marek Polacek <polacek@redhat.com>
756 * class.c (finish_struct): Require that the second field of a
757 user-defined initializer_list be of size type.
759 2015-03-31 Marek Polacek <polacek@redhat.com>
762 * tree.c (build_cplus_array_type): Use dependent_type_p rather than
763 checking for constness.
765 2015-03-30 Marek Polacek <polacek@redhat.com>
768 * constexpr.c (cxx_fold_indirect_ref): Don't perform the
769 *(&A[i] p+ j) => A[i + j] transformation here.
770 (cxx_eval_pointer_plus_expression): New function.
771 (cxx_eval_constant_expression): Use it here.
773 2015-03-27 Tobias Burnus <burnus@net-b.de>
776 * parser.c (cp_parser_omp_for, cp_parser_omp_parallel,
777 cp_parser_omp_distribute, cp_parser_omp_teams, cp_parser_omp_target,
778 cp_parser_omp_declare): Don't show error for skipped omp pragmas with
781 2015-03-27 Marek Polacek <polacek@redhat.com>
784 * semantics.c (finish_switch_cond): If the unlowered type is not an
785 enum, use the type of the condition.
787 2015-03-27 Jason Merrill <jason@redhat.com>
790 * decl.c (make_rtl_for_nonlocal_decl): Don't defer static
793 2015-03-26 Mikhail Maltsev <maltsevm@gmail.com>
796 * init.c (build_vec_init): Fix initializing aggregates
797 with empty init list.
799 2015-03-26 Jason Merrill <jason@redhat.com>
802 * constexpr.c (potential_constant_expression_1): Handle MEM_REF.
804 2015-03-25 Marek Polacek <polacek@redhat.com>
807 * name-lookup.c (handle_namespace_attrs): Ignore abi_tag attribute
808 on an anonymous namespace.
810 2015-03-25 Marek Polacek <polacek@redhat.com>
813 * class.c (remove_zero_width_bit_fields): Check for null DECL_SIZE.
815 2015-03-24 Jason Merrill <jason@redhat.com>
818 * cp-tree.h (NAMESPACE_IS_INLINE): Remove.
819 * parser.c (cp_parser_namespace_definition): Don't set it.
820 * name-lookup.c (handle_namespace_attrs): Check
821 DECL_NAMESPACE_ASSOCIATIONS instead.
824 * pt.c (get_mostly_instantiated_function_type): Just return the
825 type of the partially instantiated template in DECL_TI_TEMPLATE.
827 2015-03-20 Marek Polacek <polacek@redhat.com>
830 * constexpr.c (cxx_fold_indirect_ref): Transform *(&A[i] p+ j) into
833 2015-03-20 Marek Polacek <polacek@redhat.com>
836 * typeck.c (lookup_anon_field): Make sure we're dealing with the main
839 2015-03-19 Jason Merrill <jason@redhat.com>
842 Automatically propagate ABI tags to variables and functions
843 from their (return) type.
844 * class.c (check_tag): Handle variables and functions.
845 (mark_or_check_attr_tags): Split out from find_abi_tags_r.
846 (mark_or_check_tags): Likewise.
847 (mark_abi_tags): Use it. Rename from mark_type_abi_tags.
848 (check_abi_tags): Add single argument overload for decls.
849 Handle inheriting tags for decls.
850 * mangle.c (write_mangled_name): Call it.
851 (mangle_return_type_p): Split out from write_encoding.
852 (unmangled_name_p): Split out from write_mangled_name.
853 (write_mangled_name): Ignore abi_tag on namespace.
854 * cp-tree.h (NAMESPACE_IS_INLINE): Replace NAMESPACE_ABI_TAG.
855 * parser.c (cp_parser_namespace_definition): Set it.
856 * name-lookup.c (handle_namespace_attrs): Use arguments. Warn
857 about abi_tag attribute on non-inline namespace.
858 * tree.c (check_abi_tag_args): Split out from handle_abi_tag_attribute.
859 (handle_abi_tag_attribute): Allow tags on variables.
861 2015-03-19 Jakub Jelinek <jakub@redhat.com>
863 * decl2.c (cplus_decl_attributes): Also add "omp declare target"
864 attribute for DECL_EXTERNAL VAR_DECLs.
866 2015-03-18 Paolo Carlini <paolo.carlini@oracle.com>
869 * call.c (build_over_call): Pass the tsubst_flags_t argument to
871 * decl2.c (mark_used): Inline the require_deduced_type call and
872 guard the error call.
874 2015-03-16 Jason Merrill <jason@redhat.com>
877 * parser.c (cp_parser_template_name): Call strip_using_decl.
879 2015-03-16 Marek Polacek <polacek@redhat.com>
883 * decl.c (grokdeclarator): Allow volatile and constexpr together.
885 2015-03-12 Paolo Carlini <paolo.carlini@oracle.com>
888 * decl.c (check_default_argument): Don't call
889 maybe_warn_zero_as_null_pointer_constant.
891 2015-03-11 Aldy Hernandez <aldyh@redhat.com>
893 * cp-gimplify.c (simple_empty_class_p): New.
894 * cp-gimplify.c (cp_gimplify_expr): Handle RETURN_EXPR. Abstract
895 the code for empty class copies into simple_empty_class_p, and
896 adapt it to handle COMPOUND_EXPRs.
898 2015-03-10 Paolo Carlini <paolo.carlini@oracle.com>
901 * decl.c (duplicate_decls): Call check_redeclaration_no_default_args
902 only if the location of newdecl doesn't match the location of olddecl.
904 2015-03-10 Jakub Jelinek <jakub@redhat.com>
907 * parser.c (parsing_nsdmi): Don't return true if current_class_ptr
910 2015-03-10 Jason Merrill <jason@redhat.com>
914 * pt.c (dependent_type_p_r): Check both class and alias template args.
916 2015-03-10 Jakub Jelinek <jakub@redhat.com>
919 * parser.c (cp_parser_binary_expression): Check for tcc_comparison
920 before preparing arguments to warn_logical_not_parentheses.
921 Use maybe_constant_value on rhs.
923 2015-03-09 Jason Merrill <jason@redhat.com>
926 * call.c: Don't call maybe_resolve_dummy when calling a constructor.
928 2015-03-09 Jakub Jelinek <jakub@redhat.com>
931 * parser.c (cp_parser_binary_expression): Don't warn for
932 !!x == y or !b == y where b is bool.
934 2015-03-06 Aldy Hernandez <aldyh@redhat.com>
936 * ptree.c (cxx_print_lambda_node): New.
937 (cxx_print_xnode): Handle LAMBDA_EXPR.
939 2015-03-03 Aldy Hernandez <aldyh@redhat.com>
942 * constexpr.c (cxx_eval_constant_expression): Remove assert in
943 RESULT_DECL handling.
945 2015-02-26 Marek Polacek <polacek@redhat.com>
948 * constexpr.c (cxx_eval_constant_expression): Don't evaluate
949 a RETURN_EXPR if its operand is null.
951 2015-02-25 Jason Merrill <jason@redhat.com>
954 * decl2.c (constrain_visibility) [VISIBILITY_ANON]: Clear
956 (constrain_visibility_for_template): Handle reference arguments.
959 * decl.c (start_preparsed_function): Use create_artificial_label
962 2015-02-17 Paolo Carlini <paolo.carlini@oracle.com>
963 Jakub Jelinek <jakub@redhat.com>
966 * constexpr.c (check_constexpr_bind_expr_vars): Allow
967 implicit typedefs for lambda types.
969 2015-02-13 Paolo Carlini <paolo.carlini@oracle.com>
972 * decl.c (lookup_and_check_tag): Use strip_using_decl.
974 2015-02-13 Jason Merrill <jason@redhat.com>
977 * pt.c (template_args_equal): Look through conversions here.
978 * tree.c (cp_tree_equal): Not here.
980 2015-02-13 Paolo Carlini <paolo.carlini@oracle.com>
983 * parser.c (cp_parser_pragma): Diagnose PRAGMA_IVDEP at
984 pragma_external context.
986 2015-02-13 Jason Merrill <jason@redhat.com>
989 * call.c (reference_binding): Don't look for bad conversion
992 2015-02-13 Paolo Carlini <paolo.carlini@oracle.com>
995 * decl.c (make_typename_type): Pass tsubst_flags_t argument
996 to lookup_template_class.
998 2015-02-13 Jakub Jelinek <jakub@redhat.com>
1001 * decl.c (start_preparsed_function): Use void_type_node instead
1002 of NULL_TREE as LABEL_DECL type.
1004 2015-02-12 Jason Merrill <jason@redhat.com>
1007 * mangle.c (write_mangled_name): Fix test for variable template
1010 * decl.c (begin_destructor_body): Condition clobber on
1013 2015-02-12 Andrea Azzarone <azzaronea@gmail.com>
1016 * parser.c (lookup_literal_operator): Return all candidates.
1017 (cp_parser_userdef_char_literal): Simplify error handling.
1018 (cp_parser_userdef_numeric_literal): Pass tf_warning_or_error.
1019 (cp_parser_userdef_string_literal): Pass tf_warning_or_error.
1020 Also give higher priority to standard string UDL operator.
1022 2015-02-12 Jakub Jelinek <jakub@redhat.com>
1025 * cp-tree.h (BLOCK_OUTER_CURLY_BRACE_P): Define.
1026 * decl.c (poplevel): If functionbody, try not to create an extra
1027 BLOCK for function body and use subblocks as that, if it is non-NULL
1028 and doesn't have siblings. Set BLOCK_OUTER_CURLY_BRACE_P flag.
1029 (outer_curly_brace_block): Use BLOCK_OUTER_CURLY_BRACE_P flag.
1032 * except.c (check_noexcept_r): Return NULL for internal
1035 2015-02-10 Jason Merrill <jason@redhat.com>
1038 * constexpr.c (cxx_eval_call_expression): Walk the clone list.
1040 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
1043 * method.c (use_thunk): Do not check for stdarg thunks.
1045 2015-02-06 Jason Merrill <jason@redhat.com>
1048 * init.c (build_vec_init): Handle default-initialized array with
1049 constexpr default constructor.
1051 2015-02-04 Jakub Jelinek <jakub@redhat.com>
1055 * parser.c (cp_parser_omp_atomic): Handle RDIV_EXPR.
1057 2015-02-03 Paolo Carlini <paolo.carlini@oracle.com>
1060 * typeck.c (cp_build_binary_op): Avoid spurious -Waddress warnings
1061 for generated expressions.
1063 2015-02-02 Ville Voutilainen <ville.voutilainen@gmail.com>
1066 * decl.c (duplicate_decls): Also duplicate DECL_FINAL_P and
1069 2015-02-02 Jason Merrill <jason@redhat.com>
1071 * tree.c (handle_abi_tag_attribute): Diagnose invalid arguments.
1073 2015-01-30 Joseph Myers <joseph@codesourcery.com>
1075 * class.c, except.c, parser.c, pt.c: All callers of fatal_error
1076 changed to pass input_location as first argument.
1078 2015-01-29 Jakub Jelinek <jakub@redhat.com>
1081 * cp-ubsan.c (cp_ubsan_instrument_vptr): Don't wrap vptr
1084 2015-01-29 Jason Merrill <jason@redhat.com>
1087 * semantics.c (finish_return_stmt): Suppress -Wreturn-type on
1088 erroneous return statement.
1091 * repo.c (repo_emit_p): It's OK for a clone to be extern at this
1094 2015-01-27 Caroline Tice <cmtice@google.com>
1096 Committing VTV Cywin/Ming patch for Patrick Wollgast
1097 * vtable-class-hierarchy.cc (vtv_generate_init_routine): Add
1098 check for not TARGET_PECOFF at the VTV_PREINIT_PRIORITY checks.
1100 2015-01-27 Jason Merrill <jason@redhat.com>
1103 * lambda.c (maybe_add_lambda_conv_op): Check cfun rather than
1104 current_function_decl.
1107 * pt.c (finish_template_variable): Move from semantics.c.
1108 Handle multiple template arg levels. Handle coercion here.
1109 (lookup_template_variable): Not here.
1111 2015-01-23 Jason Merrill <jason@redhat.com>
1115 * typeck2.c (split_nonconstant_init_1): Remove a sub-CONSTRUCTOR
1116 that has been completely split out.
1119 * constexpr.c (cxx_eval_constant_expression): Don't crash on C++
1123 * constexpr.c (cxx_eval_constant_expression): Allow for lvalue use
1126 2015-01-21 Jason Merrill <jason@redhat.com>
1129 * constexpr.c (cxx_eval_constant_expression): Only shortcut
1130 constant CONSTRUCTORs.
1133 * constexpr.c (ensure_literal_type_for_constexpr_object): Don't
1134 give a hard error in a template instantiation.
1136 2015-01-21 Richard Biener <rguenther@suse.de>
1139 * decl.c (duplicate_decls): Call set_builtin_decl_declared_p
1140 for builtins the user declared correctly.
1142 2015-01-16 Paolo Carlini <paolo.carlini@oracle.com>
1145 * pt.c (unify): When BRACE_ENCLOSED_INITIALIZER_P (arg), handle
1146 TREE_TYPE (elt) == error_mark_node.
1148 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
1150 PR tree-optimization/62053
1151 * tree.c (build_cplus_array_type): Layout type after variants are set.
1153 2015-01-15 Jakub Jelinek <jakub@redhat.com>
1155 * cp-gimplify.c (cp_genericize_r): Call
1156 cp_ubsan_maybe_instrument_member_call for member calls.
1157 (cp_ubsan_check_member_access_r): New function.
1158 (cp_genericize_tree): Call cp_ubsan_instrument_member_accesses.
1159 * cp-tree.h (cp_ubsan_maybe_instrument_member_call,
1160 cp_ubsan_instrument_member_accesses,
1161 cp_ubsan_maybe_instrument_downcast,
1162 cp_ubsan_maybe_instrument_cast_to_vbase): New prototypes.
1163 * cp-ubsan.c: New file.
1164 * Make-lang.in (CXX_AND_OBJCXX_OBJS): Add cp/cp-ubsan.o.
1165 * constexpr.c (cxx_eval_call_expression): Return void_node
1167 (potential_constant_expression_1): Return true for
1168 UBSAN_NULL, UBSAN_BOUNDS and UBSAN_VPTR internal calls.
1169 * typeck.c (build_class_member_access_expr): Provide locus
1171 (build_static_cast_1): Instrument downcasts.
1172 * class.c (build_base_path): For -fsanitize=vptr and !fixed_type_p
1173 add ubsan instrumentation for virtual_access.
1174 * call.c: Include internal-fn.h.
1175 (set_flags_from_callee): Handle internal calls.
1177 2015-01-15 Momchil Velikov <momchil.velikov@gmail.com>
1180 * name-lookup.c (pushdecl_maybe_friend_1): Hide friend functions
1181 and function templates, declared only in the class.
1182 * decl.c (duplicate_decls): Reveal hidden friend functions or
1183 function templates, if they are redeclared outside the class.
1185 2015-01-15 Jason Merrill <jason@redhat.com>
1188 * constexpr.c (cxx_eval_binary_expression): Fix pasto.
1191 * constexpr.c (potential_constant_expression_1): Handle reference
1194 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
1195 James Norris <jnorris@codesourcery.com>
1196 Cesar Philippidis <cesar@codesourcery.com>
1197 Ilmir Usmanov <i.usmanov@samsung.com>
1198 Jakub Jelinek <jakub@redhat.com>
1200 * parser.c: Include "gomp-constants.h".
1201 (cp_parser_omp_clause_map): Use enum gomp_map_kind instead of enum
1202 omp_clause_map_kind. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.
1203 Use OMP_CLAUSE_SET_MAP_KIND.
1204 (cp_parser_omp_construct, cp_parser_pragma): Handle
1205 PRAGMA_OACC_CACHE, PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA,
1206 PRAGMA_OACC_EXIT_DATA, PRAGMA_OACC_KERNELS, PRAGMA_OACC_PARALLEL,
1207 PRAGMA_OACC_LOOP, PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
1208 (cp_parser_omp_clause_name): Handle "async", "copy", "copyout",
1209 "create", "delete", "deviceptr", "host", "num_gangs",
1210 "num_workers", "present", "present_or_copy", "pcopy",
1211 "present_or_copyin", "pcopyin", "present_or_copyout", "pcopyout",
1212 "present_or_create", "pcreate", "vector_length", "wait".
1213 (OACC_DATA_CLAUSE_MASK, OACC_ENTER_DATA_CLAUSE_MASK)
1214 (OACC_EXIT_DATA_CLAUSE_MASK, OACC_KERNELS_CLAUSE_MASK)
1215 (OACC_LOOP_CLAUSE_MASK, OACC_PARALLEL_CLAUSE_MASK)
1216 (OACC_UPDATE_CLAUSE_MASK, OACC_WAIT_CLAUSE_MASK): New macros.
1217 (cp_parser_omp_var_list_no_open): Handle OMP_CLAUSE__CACHE_.
1218 (cp_parser_oacc_data_clause, cp_parser_oacc_data_clause_deviceptr)
1219 (cp_parser_oacc_clause_vector_length, cp_parser_oacc_wait_list)
1220 (cp_parser_oacc_clause_wait, cp_parser_omp_clause_num_gangs)
1221 (cp_parser_omp_clause_num_workers, cp_parser_oacc_clause_async)
1222 (cp_parser_oacc_all_clauses, cp_parser_oacc_cache)
1223 (cp_parser_oacc_data, cp_parser_oacc_enter_exit_data)
1224 (cp_parser_oacc_kernels, cp_parser_oacc_loop)
1225 (cp_parser_oacc_parallel, cp_parser_oacc_update)
1226 (cp_parser_oacc_wait): New functions.
1227 * cp-tree.h (finish_oacc_data, finish_oacc_kernels)
1228 (finish_oacc_parallel): New prototypes.
1229 * semantics.c: Include "gomp-constants.h".
1230 (handle_omp_array_sections): Handle GOMP_MAP_FORCE_DEVICEPTR. Use
1231 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
1232 OMP_CLAUSE_SET_MAP_KIND.
1233 (finish_omp_clauses): Handle OMP_CLAUSE_ASYNC,
1234 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_WAIT, OMP_CLAUSE__CACHE_.
1235 Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.
1236 (finish_oacc_data, finish_oacc_kernels, finish_oacc_parallel): New
1239 2015-01-14 Paolo Carlini <paolo.carlini@oracle.com>
1242 * decl2.c (var_defined_without_dynamic_init): Handle gracefully
1243 self-initialization.
1245 2015-01-13 Jason Merrill <jason@redhat.com>
1249 * constexpr.c (cxx_eval_binary_expression): Don't VERIFY_CONSTANT
1250 pointer expressions.
1251 (cxx_eval_increment_expression): Likewise.
1254 * pt.c (coerce_template_parameter_pack): Return NULL for a
1255 zero-length fixed parameter pack with a pack expansion arg.
1258 * pt.c (unify): Don't try to deduce to std::initializer_list<T...>.
1260 2015-01-12 Jason Merrill <jason@redhat.com>
1263 * constexpr.c (cxx_eval_call_expression): A call to a void
1264 function doesn't need to return a value.
1266 2015-01-09 Michael Collison <michael.collison@linaro.org>
1268 * call.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
1269 input.h, alias.h, symtab.h, options.h, fold-const.h,
1270 wide-int.h, and inchash.h due to flattening of tree.h.
1272 * constexpr.c: Ditto.
1273 * cp-array-notation.c: Ditto.
1274 * cp-gimplify.c: Ditto.
1276 * cp-objcp-common.c: Ditto.
1289 * name-lookup.c: Ditto.
1290 * optimize.c: Ditto.
1297 * semantics.c: Ditto.
1302 2015-01-08 Jason Merrill <jason@redhat.com>
1304 * cp-gimplify.c (cp_genericize): Use do_ubsan_in_current_function.
1305 * decl.c (compute_array_index_type): Likewise.
1306 * init.c (build_vec_init): Likewise.
1307 * typeck.c (cp_build_binary_op): Likewise.
1309 2015-01-08 Jason Merrill <jason@redhat.com>
1311 * init.c (build_vec_init): Call ubsan_instrument_bounds to check
1312 whether an initializer-list is too big for a VLA.
1313 (throw_bad_array_length): Remove.
1314 * cp-tree.h: Remove prototype.
1316 2015-01-08 Paolo Carlini <paolo.carlini@oracle.com>
1319 * decl.c (grokfndecl): Add bool parameter.
1320 (grokdeclarator): Adjust calls.
1321 (start_decl): Don't set DECL_DELETED_FN here.
1323 2015-01-06 Jason Merrill <jason@redhat.com>
1325 * parser.c (cp_parser_nested_name_specifier_opt): Diagnose invalid
1329 * pt.c (type_dependent_expression_p): Handle variable templates.
1330 * constexpr.c (potential_constant_expression_1): Use it.
1333 * semantics.c (finish_offsetof): Handle templates here.
1334 * parser.c (cp_parser_builtin_offsetof): Not here.
1337 * semantics.c (process_outer_var_ref): Diagnose lambda in local
1340 2015-01-06 Ville Voutilainen <ville.voutilainen@gmail.com>
1343 * class.c (check_field_decls): Make copy assignment operators
1344 complex only in c++98 mode.
1346 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
1349 * class.c (check_for_override): Warn when a virtual function is an
1350 override not marked override.
1352 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
1354 * class.c (warn_hidden): Use auto_vec<tree> instead of tree_list to
1356 (get_basefndecls): Adjust.
1358 2015-01-05 Jakub Jelinek <jakub@redhat.com>
1360 Update copyright years.
1362 2015-01-05 Marek Polacek <polacek@redhat.com>
1365 * typeck.c (cp_build_array_ref): Pass loc down to
1366 warn_array_subscript_with_type_char.
1369 Copyright (C) 2015 Free Software Foundation, Inc.
1371 Copying and distribution of this file, with or without modification,
1372 are permitted in any medium without royalty provided the copyright
1373 notice and this notice are preserved.