re PR c++/65154 (ICE with {} initialized array with string)
[gcc.git] / gcc / cp / ChangeLog
1 2015-03-26 Mikhail Maltsev <maltsevm@gmail.com>
2
3 PR c++/65154
4 * init.c (build_vec_init): Fix initializing aggregates
5 with empty init list.
6
7 2015-03-26 Jason Merrill <jason@redhat.com>
8
9 PR c++/65525
10 * constexpr.c (potential_constant_expression_1): Handle MEM_REF.
11
12 2015-03-25 Marek Polacek <polacek@redhat.com>
13
14 PR c++/65558
15 * name-lookup.c (handle_namespace_attrs): Ignore abi_tag attribute
16 on an anonymous namespace.
17
18 2015-03-25 Marek Polacek <polacek@redhat.com>
19
20 PR c++/61670
21 * class.c (remove_zero_width_bit_fields): Check for null DECL_SIZE.
22
23 2015-03-24 Jason Merrill <jason@redhat.com>
24
25 PR c++/65046
26 * cp-tree.h (NAMESPACE_IS_INLINE): Remove.
27 * parser.c (cp_parser_namespace_definition): Don't set it.
28 * name-lookup.c (handle_namespace_attrs): Check
29 DECL_NAMESPACE_ASSOCIATIONS instead.
30
31 PR c++/65498
32 * pt.c (get_mostly_instantiated_function_type): Just return the
33 type of the partially instantiated template in DECL_TI_TEMPLATE.
34
35 2015-03-20 Marek Polacek <polacek@redhat.com>
36
37 PR c++/65398
38 * constexpr.c (cxx_fold_indirect_ref): Transform *(&A[i] p+ j) into
39 A[i + j].
40
41 2015-03-20 Marek Polacek <polacek@redhat.com>
42
43 PR c++/65072
44 * typeck.c (lookup_anon_field): Make sure we're dealing with the main
45 variant.
46
47 2015-03-19 Jason Merrill <jason@redhat.com>
48
49 PR c++/65046
50 Automatically propagate ABI tags to variables and functions
51 from their (return) type.
52 * class.c (check_tag): Handle variables and functions.
53 (mark_or_check_attr_tags): Split out from find_abi_tags_r.
54 (mark_or_check_tags): Likewise.
55 (mark_abi_tags): Use it. Rename from mark_type_abi_tags.
56 (check_abi_tags): Add single argument overload for decls.
57 Handle inheriting tags for decls.
58 * mangle.c (write_mangled_name): Call it.
59 (mangle_return_type_p): Split out from write_encoding.
60 (unmangled_name_p): Split out from write_mangled_name.
61 (write_mangled_name): Ignore abi_tag on namespace.
62 * cp-tree.h (NAMESPACE_IS_INLINE): Replace NAMESPACE_ABI_TAG.
63 * parser.c (cp_parser_namespace_definition): Set it.
64 * name-lookup.c (handle_namespace_attrs): Use arguments. Warn
65 about abi_tag attribute on non-inline namespace.
66 * tree.c (check_abi_tag_args): Split out from handle_abi_tag_attribute.
67 (handle_abi_tag_attribute): Allow tags on variables.
68
69 2015-03-19 Jakub Jelinek <jakub@redhat.com>
70
71 * decl2.c (cplus_decl_attributes): Also add "omp declare target"
72 attribute for DECL_EXTERNAL VAR_DECLs.
73
74 2015-03-18 Paolo Carlini <paolo.carlini@oracle.com>
75
76 PR c++/65340
77 * call.c (build_over_call): Pass the tsubst_flags_t argument to
78 mark_used.
79 * decl2.c (mark_used): Inline the require_deduced_type call and
80 guard the error call.
81
82 2015-03-16 Jason Merrill <jason@redhat.com>
83
84 PR c++/65061
85 * parser.c (cp_parser_template_name): Call strip_using_decl.
86
87 2015-03-16 Marek Polacek <polacek@redhat.com>
88
89 DR 1688
90 PR c++/65327
91 * decl.c (grokdeclarator): Allow volatile and constexpr together.
92
93 2015-03-12 Paolo Carlini <paolo.carlini@oracle.com>
94
95 PR c++/65323
96 * decl.c (check_default_argument): Don't call
97 maybe_warn_zero_as_null_pointer_constant.
98
99 2015-03-11 Aldy Hernandez <aldyh@redhat.com>
100
101 * cp-gimplify.c (simple_empty_class_p): New.
102 * cp-gimplify.c (cp_gimplify_expr): Handle RETURN_EXPR. Abstract
103 the code for empty class copies into simple_empty_class_p, and
104 adapt it to handle COMPOUND_EXPRs.
105
106 2015-03-10 Paolo Carlini <paolo.carlini@oracle.com>
107
108 PR c++/65370
109 * decl.c (duplicate_decls): Call check_redeclaration_no_default_args
110 only if the location of newdecl doesn't match the location of olddecl.
111
112 2015-03-10 Jakub Jelinek <jakub@redhat.com>
113
114 PR c++/65127
115 * parser.c (parsing_nsdmi): Don't return true if current_class_ptr
116 is not a PARM_DECL.
117
118 2015-03-10 Jason Merrill <jason@redhat.com>
119
120 PR c++/65333
121 DR 1558
122 * pt.c (dependent_type_p_r): Check both class and alias template args.
123
124 2015-03-10 Jakub Jelinek <jakub@redhat.com>
125
126 PR c/65120
127 * parser.c (cp_parser_binary_expression): Check for tcc_comparison
128 before preparing arguments to warn_logical_not_parentheses.
129 Use maybe_constant_value on rhs.
130
131 2015-03-09 Jason Merrill <jason@redhat.com>
132
133 PR c++/65339
134 * call.c: Don't call maybe_resolve_dummy when calling a constructor.
135
136 2015-03-09 Jakub Jelinek <jakub@redhat.com>
137
138 PR c/65120
139 * parser.c (cp_parser_binary_expression): Don't warn for
140 !!x == y or !b == y where b is bool.
141
142 2015-03-06 Aldy Hernandez <aldyh@redhat.com>
143
144 * ptree.c (cxx_print_lambda_node): New.
145 (cxx_print_xnode): Handle LAMBDA_EXPR.
146
147 2015-03-03 Aldy Hernandez <aldyh@redhat.com>
148
149 PR c++/65295
150 * constexpr.c (cxx_eval_constant_expression): Remove assert in
151 RESULT_DECL handling.
152
153 2015-02-26 Marek Polacek <polacek@redhat.com>
154
155 PR c++/65202
156 * constexpr.c (cxx_eval_constant_expression): Don't evaluate
157 a RETURN_EXPR if its operand is null.
158
159 2015-02-25 Jason Merrill <jason@redhat.com>
160
161 PR c++/65209
162 * decl2.c (constrain_visibility) [VISIBILITY_ANON]: Clear
163 DECL_COMDAT.
164 (constrain_visibility_for_template): Handle reference arguments.
165
166 PR debug/58315
167 * decl.c (start_preparsed_function): Use create_artificial_label
168 for cdtor_label.
169
170 2015-02-17 Paolo Carlini <paolo.carlini@oracle.com>
171 Jakub Jelinek <jakub@redhat.com>
172
173 PR c++/65075
174 * constexpr.c (check_constexpr_bind_expr_vars): Allow
175 implicit typedefs for lambda types.
176
177 2015-02-13 Paolo Carlini <paolo.carlini@oracle.com>
178
179 PR c++/60894
180 * decl.c (lookup_and_check_tag): Use strip_using_decl.
181
182 2015-02-13 Jason Merrill <jason@redhat.com>
183
184 PR c++/65054
185 * pt.c (template_args_equal): Look through conversions here.
186 * tree.c (cp_tree_equal): Not here.
187
188 2015-02-13 Paolo Carlini <paolo.carlini@oracle.com>
189
190 PR c++/60211
191 * parser.c (cp_parser_pragma): Diagnose PRAGMA_IVDEP at
192 pragma_external context.
193
194 2015-02-13 Jason Merrill <jason@redhat.com>
195
196 PR c++/65051
197 * call.c (reference_binding): Don't look for bad conversion
198 if TO is incomplete.
199
200 2015-02-13 Paolo Carlini <paolo.carlini@oracle.com>
201
202 PR c++/64970
203 * decl.c (make_typename_type): Pass tsubst_flags_t argument
204 to lookup_template_class.
205
206 2015-02-13 Jakub Jelinek <jakub@redhat.com>
207
208 PR ipa/65034
209 * decl.c (start_preparsed_function): Use void_type_node instead
210 of NULL_TREE as LABEL_DECL type.
211
212 2015-02-12 Jason Merrill <jason@redhat.com>
213
214 PR c++/64898
215 * mangle.c (write_mangled_name): Fix test for variable template
216 instantiation.
217
218 * decl.c (begin_destructor_body): Condition clobber on
219 -flifetime-dse.
220
221 2015-02-12 Andrea Azzarone <azzaronea@gmail.com>
222
223 PR c++/64959
224 * parser.c (lookup_literal_operator): Return all candidates.
225 (cp_parser_userdef_char_literal): Simplify error handling.
226 (cp_parser_userdef_numeric_literal): Pass tf_warning_or_error.
227 (cp_parser_userdef_string_literal): Pass tf_warning_or_error.
228 Also give higher priority to standard string UDL operator.
229
230 2015-02-12 Jakub Jelinek <jakub@redhat.com>
231
232 PR debug/55541
233 * cp-tree.h (BLOCK_OUTER_CURLY_BRACE_P): Define.
234 * decl.c (poplevel): If functionbody, try not to create an extra
235 BLOCK for function body and use subblocks as that, if it is non-NULL
236 and doesn't have siblings. Set BLOCK_OUTER_CURLY_BRACE_P flag.
237 (outer_curly_brace_block): Use BLOCK_OUTER_CURLY_BRACE_P flag.
238
239 PR sanitizer/64984
240 * except.c (check_noexcept_r): Return NULL for internal
241 calls.
242
243 2015-02-10 Jason Merrill <jason@redhat.com>
244
245 PR c++/64994
246 * constexpr.c (cxx_eval_call_expression): Walk the clone list.
247
248 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
249
250 PR ipa/64982
251 * method.c (use_thunk): Do not check for stdarg thunks.
252
253 2015-02-06 Jason Merrill <jason@redhat.com>
254
255 PR c++/64899
256 * init.c (build_vec_init): Handle default-initialized array with
257 constexpr default constructor.
258
259 2015-02-04 Jakub Jelinek <jakub@redhat.com>
260
261 PR c/64824
262 PR c/64868
263 * parser.c (cp_parser_omp_atomic): Handle RDIV_EXPR.
264
265 2015-02-03 Paolo Carlini <paolo.carlini@oracle.com>
266
267 PR c++/64877
268 * typeck.c (cp_build_binary_op): Avoid spurious -Waddress warnings
269 for generated expressions.
270
271 2015-02-02 Ville Voutilainen <ville.voutilainen@gmail.com>
272
273 PR c++/64901
274 * decl.c (duplicate_decls): Also duplicate DECL_FINAL_P and
275 DECL_OVERRIDE_P.
276
277 2015-02-02 Jason Merrill <jason@redhat.com>
278
279 * tree.c (handle_abi_tag_attribute): Diagnose invalid arguments.
280
281 2015-01-30 Joseph Myers <joseph@codesourcery.com>
282
283 * class.c, except.c, parser.c, pt.c: All callers of fatal_error
284 changed to pass input_location as first argument.
285
286 2015-01-29 Jakub Jelinek <jakub@redhat.com>
287
288 PR c++/64717
289 * cp-ubsan.c (cp_ubsan_instrument_vptr): Don't wrap vptr
290 into SAVE_EXPR.
291
292 2015-01-29 Jason Merrill <jason@redhat.com>
293
294 PR c++/49508
295 * semantics.c (finish_return_stmt): Suppress -Wreturn-type on
296 erroneous return statement.
297
298 PR c++/64521
299 * repo.c (repo_emit_p): It's OK for a clone to be extern at this
300 point.
301
302 2015-01-27 Caroline Tice <cmtice@google.com>
303
304 Committing VTV Cywin/Ming patch for Patrick Wollgast
305 * vtable-class-hierarchy.cc (vtv_generate_init_routine): Add
306 check for not TARGET_PECOFF at the VTV_PREINIT_PRIORITY checks.
307
308 2015-01-27 Jason Merrill <jason@redhat.com>
309
310 PR c++/58597
311 * lambda.c (maybe_add_lambda_conv_op): Check cfun rather than
312 current_function_decl.
313
314 PR c++/63889
315 * pt.c (finish_template_variable): Move from semantics.c.
316 Handle multiple template arg levels. Handle coercion here.
317 (lookup_template_variable): Not here.
318
319 2015-01-23 Jason Merrill <jason@redhat.com>
320
321 PR c++/64314
322 PR c++/57510
323 * typeck2.c (split_nonconstant_init_1): Remove a sub-CONSTRUCTOR
324 that has been completely split out.
325
326 PR c++/64701
327 * constexpr.c (cxx_eval_constant_expression): Don't crash on C++
328 statement codes.
329
330 PR c++/64727
331 * constexpr.c (cxx_eval_constant_expression): Allow for lvalue use
332 of CONST_DECL.
333
334 2015-01-21 Jason Merrill <jason@redhat.com>
335
336 PR c++/64603
337 * constexpr.c (cxx_eval_constant_expression): Only shortcut
338 constant CONSTRUCTORs.
339
340 PR c++/64647
341 * constexpr.c (ensure_literal_type_for_constexpr_object): Don't
342 give a hard error in a template instantiation.
343
344 2015-01-21 Richard Biener <rguenther@suse.de>
345
346 PR middle-end/64313
347 * decl.c (duplicate_decls): Call set_builtin_decl_declared_p
348 for builtins the user declared correctly.
349
350 2015-01-16 Paolo Carlini <paolo.carlini@oracle.com>
351
352 PR c++/58614
353 * pt.c (unify): When BRACE_ENCLOSED_INITIALIZER_P (arg), handle
354 TREE_TYPE (elt) == error_mark_node.
355
356 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
357
358 PR tree-optimization/62053
359 * tree.c (build_cplus_array_type): Layout type after variants are set.
360
361 2015-01-15 Jakub Jelinek <jakub@redhat.com>
362
363 * cp-gimplify.c (cp_genericize_r): Call
364 cp_ubsan_maybe_instrument_member_call for member calls.
365 (cp_ubsan_check_member_access_r): New function.
366 (cp_genericize_tree): Call cp_ubsan_instrument_member_accesses.
367 * cp-tree.h (cp_ubsan_maybe_instrument_member_call,
368 cp_ubsan_instrument_member_accesses,
369 cp_ubsan_maybe_instrument_downcast,
370 cp_ubsan_maybe_instrument_cast_to_vbase): New prototypes.
371 * cp-ubsan.c: New file.
372 * Make-lang.in (CXX_AND_OBJCXX_OBJS): Add cp/cp-ubsan.o.
373 * constexpr.c (cxx_eval_call_expression): Return void_node
374 for IFN_UBSAN_VPTR.
375 (potential_constant_expression_1): Return true for
376 UBSAN_NULL, UBSAN_BOUNDS and UBSAN_VPTR internal calls.
377 * typeck.c (build_class_member_access_expr): Provide locus
378 for COMPONENT_REFs.
379 (build_static_cast_1): Instrument downcasts.
380 * class.c (build_base_path): For -fsanitize=vptr and !fixed_type_p
381 add ubsan instrumentation for virtual_access.
382 * call.c: Include internal-fn.h.
383 (set_flags_from_callee): Handle internal calls.
384
385 2015-01-15 Momchil Velikov <momchil.velikov@gmail.com>
386
387 PR c++/59366
388 * name-lookup.c (pushdecl_maybe_friend_1): Hide friend functions
389 and function templates, declared only in the class.
390 * decl.c (duplicate_decls): Reveal hidden friend functions or
391 function templates, if they are redeclared outside the class.
392
393 2015-01-15 Jason Merrill <jason@redhat.com>
394
395 PR c++/64356
396 * constexpr.c (cxx_eval_binary_expression): Fix pasto.
397
398 PR c++/63283
399 * constexpr.c (potential_constant_expression_1): Handle reference
400 args in templates.
401
402 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
403 James Norris <jnorris@codesourcery.com>
404 Cesar Philippidis <cesar@codesourcery.com>
405 Ilmir Usmanov <i.usmanov@samsung.com>
406 Jakub Jelinek <jakub@redhat.com>
407
408 * parser.c: Include "gomp-constants.h".
409 (cp_parser_omp_clause_map): Use enum gomp_map_kind instead of enum
410 omp_clause_map_kind. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.
411 Use OMP_CLAUSE_SET_MAP_KIND.
412 (cp_parser_omp_construct, cp_parser_pragma): Handle
413 PRAGMA_OACC_CACHE, PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA,
414 PRAGMA_OACC_EXIT_DATA, PRAGMA_OACC_KERNELS, PRAGMA_OACC_PARALLEL,
415 PRAGMA_OACC_LOOP, PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
416 (cp_parser_omp_clause_name): Handle "async", "copy", "copyout",
417 "create", "delete", "deviceptr", "host", "num_gangs",
418 "num_workers", "present", "present_or_copy", "pcopy",
419 "present_or_copyin", "pcopyin", "present_or_copyout", "pcopyout",
420 "present_or_create", "pcreate", "vector_length", "wait".
421 (OACC_DATA_CLAUSE_MASK, OACC_ENTER_DATA_CLAUSE_MASK)
422 (OACC_EXIT_DATA_CLAUSE_MASK, OACC_KERNELS_CLAUSE_MASK)
423 (OACC_LOOP_CLAUSE_MASK, OACC_PARALLEL_CLAUSE_MASK)
424 (OACC_UPDATE_CLAUSE_MASK, OACC_WAIT_CLAUSE_MASK): New macros.
425 (cp_parser_omp_var_list_no_open): Handle OMP_CLAUSE__CACHE_.
426 (cp_parser_oacc_data_clause, cp_parser_oacc_data_clause_deviceptr)
427 (cp_parser_oacc_clause_vector_length, cp_parser_oacc_wait_list)
428 (cp_parser_oacc_clause_wait, cp_parser_omp_clause_num_gangs)
429 (cp_parser_omp_clause_num_workers, cp_parser_oacc_clause_async)
430 (cp_parser_oacc_all_clauses, cp_parser_oacc_cache)
431 (cp_parser_oacc_data, cp_parser_oacc_enter_exit_data)
432 (cp_parser_oacc_kernels, cp_parser_oacc_loop)
433 (cp_parser_oacc_parallel, cp_parser_oacc_update)
434 (cp_parser_oacc_wait): New functions.
435 * cp-tree.h (finish_oacc_data, finish_oacc_kernels)
436 (finish_oacc_parallel): New prototypes.
437 * semantics.c: Include "gomp-constants.h".
438 (handle_omp_array_sections): Handle GOMP_MAP_FORCE_DEVICEPTR. Use
439 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
440 OMP_CLAUSE_SET_MAP_KIND.
441 (finish_omp_clauses): Handle OMP_CLAUSE_ASYNC,
442 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_WAIT, OMP_CLAUSE__CACHE_.
443 Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.
444 (finish_oacc_data, finish_oacc_kernels, finish_oacc_parallel): New
445 functions.
446
447 2015-01-14 Paolo Carlini <paolo.carlini@oracle.com>
448
449 PR c++/58671
450 * decl2.c (var_defined_without_dynamic_init): Handle gracefully
451 self-initialization.
452
453 2015-01-13 Jason Merrill <jason@redhat.com>
454
455 PR c++/64356
456 PR libstdc++/58777
457 * constexpr.c (cxx_eval_binary_expression): Don't VERIFY_CONSTANT
458 pointer expressions.
459 (cxx_eval_increment_expression): Likewise.
460
461 PR c++/64514
462 * pt.c (coerce_template_parameter_pack): Return NULL for a
463 zero-length fixed parameter pack with a pack expansion arg.
464
465 PR c++/64520
466 * pt.c (unify): Don't try to deduce to std::initializer_list<T...>.
467
468 2015-01-12 Jason Merrill <jason@redhat.com>
469
470 PR c++/64547
471 * constexpr.c (cxx_eval_call_expression): A call to a void
472 function doesn't need to return a value.
473
474 2015-01-09 Michael Collison <michael.collison@linaro.org>
475
476 * call.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
477 input.h, alias.h, symtab.h, options.h, fold-const.h,
478 wide-int.h, and inchash.h due to flattening of tree.h.
479 * class.c: Ditto.
480 * constexpr.c: Ditto.
481 * cp-array-notation.c: Ditto.
482 * cp-gimplify.c: Ditto.
483 * cp-lang.c: Ditto.
484 * cp-objcp-common.c: Ditto.
485 * cvt.c: Ditto.
486 * decl2.c: Ditto.
487 * decl.c: Ditto.
488 * dump.c: Ditto.
489 * error.c: Ditto.
490 * except.c: Ditto.
491 * expr.c: Ditto.
492 * friend.c: Ditto.
493 * init.c: Ditto.
494 * lambda.c: Ditto.
495 * lex.c: Ditto.
496 * mangle.c: Ditto.
497 * name-lookup.c: Ditto.
498 * optimize.c: Ditto.
499 * parser.c: Ditto.
500 * pt.c: Ditto.
501 * ptree.c: Ditto.
502 * repo.c: Ditto.
503 * rtti.c: Ditto.
504 * search.c: Ditto.
505 * semantics.c: Ditto.
506 * tree.c: Ditto.
507 * typeck2.c: Ditto.
508 * typeck.c: Ditto.
509
510 2015-01-08 Jason Merrill <jason@redhat.com>
511
512 * cp-gimplify.c (cp_genericize): Use do_ubsan_in_current_function.
513 * decl.c (compute_array_index_type): Likewise.
514 * init.c (build_vec_init): Likewise.
515 * typeck.c (cp_build_binary_op): Likewise.
516
517 2015-01-08 Jason Merrill <jason@redhat.com>
518
519 * init.c (build_vec_init): Call ubsan_instrument_bounds to check
520 whether an initializer-list is too big for a VLA.
521 (throw_bad_array_length): Remove.
522 * cp-tree.h: Remove prototype.
523
524 2015-01-08 Paolo Carlini <paolo.carlini@oracle.com>
525
526 PR c++/60753
527 * decl.c (grokfndecl): Add bool parameter.
528 (grokdeclarator): Adjust calls.
529 (start_decl): Don't set DECL_DELETED_FN here.
530
531 2015-01-06 Jason Merrill <jason@redhat.com>
532
533 * parser.c (cp_parser_nested_name_specifier_opt): Diagnose invalid
534 template-ids.
535
536 PR c++/64455
537 * pt.c (type_dependent_expression_p): Handle variable templates.
538 * constexpr.c (potential_constant_expression_1): Use it.
539
540 PR c++/64487
541 * semantics.c (finish_offsetof): Handle templates here.
542 * parser.c (cp_parser_builtin_offsetof): Not here.
543
544 PR c++/64496
545 * semantics.c (process_outer_var_ref): Diagnose lambda in local
546 class NSDMI.
547
548 2015-01-06 Ville Voutilainen <ville.voutilainen@gmail.com>
549
550 PR c++/64489
551 * class.c (check_field_decls): Make copy assignment operators
552 complex only in c++98 mode.
553
554 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
555
556 PR c++/31397
557 * class.c (check_for_override): Warn when a virtual function is an
558 override not marked override.
559
560 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
561
562 * class.c (warn_hidden): Use auto_vec<tree> instead of tree_list to
563 hold base_fndecls.
564 (get_basefndecls): Adjust.
565
566 2015-01-05 Jakub Jelinek <jakub@redhat.com>
567
568 Update copyright years.
569
570 2015-01-05 Marek Polacek <polacek@redhat.com>
571
572 PR c/64423
573 * typeck.c (cp_build_array_ref): Pass loc down to
574 warn_array_subscript_with_type_char.
575
576 \f
577 Copyright (C) 2015 Free Software Foundation, Inc.
578
579 Copying and distribution of this file, with or without modification,
580 are permitted in any medium without royalty provided the copyright
581 notice and this notice are preserved.