1 2015-01-23 Jason Merrill <jason@redhat.com>
4 * constexpr.c (cxx_eval_constant_expression): Allow for lvalue use
7 2015-01-21 Jason Merrill <jason@redhat.com>
10 * constexpr.c (cxx_eval_constant_expression): Only shortcut
11 constant CONSTRUCTORs.
14 * constexpr.c (ensure_literal_type_for_constexpr_object): Don't
15 give a hard error in a template instantiation.
17 2015-01-21 Richard Biener <rguenther@suse.de>
20 * decl.c (duplicate_decls): Call set_builtin_decl_declared_p
21 for builtins the user declared correctly.
23 2015-01-16 Paolo Carlini <paolo.carlini@oracle.com>
26 * pt.c (unify): When BRACE_ENCLOSED_INITIALIZER_P (arg), handle
27 TREE_TYPE (elt) == error_mark_node.
29 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
31 PR tree-optimization/62053
32 * tree.c (build_cplus_array_type): Layout type after variants are set.
34 2015-01-15 Jakub Jelinek <jakub@redhat.com>
36 * cp-gimplify.c (cp_genericize_r): Call
37 cp_ubsan_maybe_instrument_member_call for member calls.
38 (cp_ubsan_check_member_access_r): New function.
39 (cp_genericize_tree): Call cp_ubsan_instrument_member_accesses.
40 * cp-tree.h (cp_ubsan_maybe_instrument_member_call,
41 cp_ubsan_instrument_member_accesses,
42 cp_ubsan_maybe_instrument_downcast,
43 cp_ubsan_maybe_instrument_cast_to_vbase): New prototypes.
44 * cp-ubsan.c: New file.
45 * Make-lang.in (CXX_AND_OBJCXX_OBJS): Add cp/cp-ubsan.o.
46 * constexpr.c (cxx_eval_call_expression): Return void_node
48 (potential_constant_expression_1): Return true for
49 UBSAN_NULL, UBSAN_BOUNDS and UBSAN_VPTR internal calls.
50 * typeck.c (build_class_member_access_expr): Provide locus
52 (build_static_cast_1): Instrument downcasts.
53 * class.c (build_base_path): For -fsanitize=vptr and !fixed_type_p
54 add ubsan instrumentation for virtual_access.
55 * call.c: Include internal-fn.h.
56 (set_flags_from_callee): Handle internal calls.
58 2015-01-15 Momchil Velikov <momchil.velikov@gmail.com>
61 * name-lookup.c (pushdecl_maybe_friend_1): Hide friend functions
62 and function templates, declared only in the class.
63 * decl.c (duplicate_decls): Reveal hidden friend functions or
64 function templates, if they are redeclared outside the class.
66 2015-01-15 Jason Merrill <jason@redhat.com>
69 * constexpr.c (cxx_eval_binary_expression): Fix pasto.
72 * constexpr.c (potential_constant_expression_1): Handle reference
75 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
76 James Norris <jnorris@codesourcery.com>
77 Cesar Philippidis <cesar@codesourcery.com>
78 Ilmir Usmanov <i.usmanov@samsung.com>
79 Jakub Jelinek <jakub@redhat.com>
81 * parser.c: Include "gomp-constants.h".
82 (cp_parser_omp_clause_map): Use enum gomp_map_kind instead of enum
83 omp_clause_map_kind. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.
84 Use OMP_CLAUSE_SET_MAP_KIND.
85 (cp_parser_omp_construct, cp_parser_pragma): Handle
86 PRAGMA_OACC_CACHE, PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA,
87 PRAGMA_OACC_EXIT_DATA, PRAGMA_OACC_KERNELS, PRAGMA_OACC_PARALLEL,
88 PRAGMA_OACC_LOOP, PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
89 (cp_parser_omp_clause_name): Handle "async", "copy", "copyout",
90 "create", "delete", "deviceptr", "host", "num_gangs",
91 "num_workers", "present", "present_or_copy", "pcopy",
92 "present_or_copyin", "pcopyin", "present_or_copyout", "pcopyout",
93 "present_or_create", "pcreate", "vector_length", "wait".
94 (OACC_DATA_CLAUSE_MASK, OACC_ENTER_DATA_CLAUSE_MASK)
95 (OACC_EXIT_DATA_CLAUSE_MASK, OACC_KERNELS_CLAUSE_MASK)
96 (OACC_LOOP_CLAUSE_MASK, OACC_PARALLEL_CLAUSE_MASK)
97 (OACC_UPDATE_CLAUSE_MASK, OACC_WAIT_CLAUSE_MASK): New macros.
98 (cp_parser_omp_var_list_no_open): Handle OMP_CLAUSE__CACHE_.
99 (cp_parser_oacc_data_clause, cp_parser_oacc_data_clause_deviceptr)
100 (cp_parser_oacc_clause_vector_length, cp_parser_oacc_wait_list)
101 (cp_parser_oacc_clause_wait, cp_parser_omp_clause_num_gangs)
102 (cp_parser_omp_clause_num_workers, cp_parser_oacc_clause_async)
103 (cp_parser_oacc_all_clauses, cp_parser_oacc_cache)
104 (cp_parser_oacc_data, cp_parser_oacc_enter_exit_data)
105 (cp_parser_oacc_kernels, cp_parser_oacc_loop)
106 (cp_parser_oacc_parallel, cp_parser_oacc_update)
107 (cp_parser_oacc_wait): New functions.
108 * cp-tree.h (finish_oacc_data, finish_oacc_kernels)
109 (finish_oacc_parallel): New prototypes.
110 * semantics.c: Include "gomp-constants.h".
111 (handle_omp_array_sections): Handle GOMP_MAP_FORCE_DEVICEPTR. Use
112 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
113 OMP_CLAUSE_SET_MAP_KIND.
114 (finish_omp_clauses): Handle OMP_CLAUSE_ASYNC,
115 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_WAIT, OMP_CLAUSE__CACHE_.
116 Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.
117 (finish_oacc_data, finish_oacc_kernels, finish_oacc_parallel): New
120 2015-01-14 Paolo Carlini <paolo.carlini@oracle.com>
123 * decl2.c (var_defined_without_dynamic_init): Handle gracefully
126 2015-01-13 Jason Merrill <jason@redhat.com>
130 * constexpr.c (cxx_eval_binary_expression): Don't VERIFY_CONSTANT
132 (cxx_eval_increment_expression): Likewise.
135 * pt.c (coerce_template_parameter_pack): Return NULL for a
136 zero-length fixed parameter pack with a pack expansion arg.
139 * pt.c (unify): Don't try to deduce to std::initializer_list<T...>.
141 2015-01-12 Jason Merrill <jason@redhat.com>
144 * constexpr.c (cxx_eval_call_expression): A call to a void
145 function doesn't need to return a value.
147 2015-01-09 Michael Collison <michael.collison@linaro.org>
149 * call.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
150 input.h, alias.h, symtab.h, options.h, fold-const.h,
151 wide-int.h, and inchash.h due to flattening of tree.h.
153 * constexpr.c: Ditto.
154 * cp-array-notation.c: Ditto.
155 * cp-gimplify.c: Ditto.
157 * cp-objcp-common.c: Ditto.
170 * name-lookup.c: Ditto.
178 * semantics.c: Ditto.
183 2015-01-08 Jason Merrill <jason@redhat.com>
185 * cp-gimplify.c (cp_genericize): Use do_ubsan_in_current_function.
186 * decl.c (compute_array_index_type): Likewise.
187 * init.c (build_vec_init): Likewise.
188 * typeck.c (cp_build_binary_op): Likewise.
190 2015-01-08 Jason Merrill <jason@redhat.com>
192 * init.c (build_vec_init): Call ubsan_instrument_bounds to check
193 whether an initializer-list is too big for a VLA.
194 (throw_bad_array_length): Remove.
195 * cp-tree.h: Remove prototype.
197 2015-01-08 Paolo Carlini <paolo.carlini@oracle.com>
200 * decl.c (grokfndecl): Add bool parameter.
201 (grokdeclarator): Adjust calls.
202 (start_decl): Don't set DECL_DELETED_FN here.
204 2015-01-06 Jason Merrill <jason@redhat.com>
206 * parser.c (cp_parser_nested_name_specifier_opt): Diagnose invalid
210 * pt.c (type_dependent_expression_p): Handle variable templates.
211 * constexpr.c (potential_constant_expression_1): Use it.
214 * semantics.c (finish_offsetof): Handle templates here.
215 * parser.c (cp_parser_builtin_offsetof): Not here.
218 * semantics.c (process_outer_var_ref): Diagnose lambda in local
221 2015-01-06 Ville Voutilainen <ville.voutilainen@gmail.com>
224 * class.c (check_field_decls): Make copy assignment operators
225 complex only in c++98 mode.
227 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
230 * class.c (check_for_override): Warn when a virtual function is an
231 override not marked override.
233 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
235 * class.c (warn_hidden): Use auto_vec<tree> instead of tree_list to
237 (get_basefndecls): Adjust.
239 2015-01-05 Jakub Jelinek <jakub@redhat.com>
241 Update copyright years.
243 2015-01-05 Marek Polacek <polacek@redhat.com>
246 * typeck.c (cp_build_array_ref): Pass loc down to
247 warn_array_subscript_with_type_char.
250 Copyright (C) 2015 Free Software Foundation, Inc.
252 Copying and distribution of this file, with or without modification,
253 are permitted in any medium without royalty provided the copyright
254 notice and this notice are preserved.