]>
Commit | Line | Data |
---|---|---|
c9281ef8 | 1 | 2017-12-19 Jakub Jelinek <jakub@redhat.com> |
2 | ||
3 | * c-typeck.c (comptypes_internal, function_types_compatible_p, | |
4 | perform_integral_promotions, digest_init): Replace Yoda conditions | |
5 | with typical order conditions. | |
6 | * c-decl.c (check_bitfield_type_and_width): Likewise. | |
7 | ||
d76c514d | 8 | 2017-12-14 Bernd Edlinger <bernd.edlinger@hotmail.de> |
9 | ||
10 | * c-typeck.c (c_safe_arg_type_equiv_p, | |
11 | c_safe_function_type_cast_p): New function. | |
12 | (build_c_cast): Implement -Wcast-function-type. | |
13 | ||
00e92272 | 14 | 2017-12-14 Richard Biener <rguenther@suse.de> |
15 | ||
16 | PR c/83415 | |
17 | * c-fold.c (c_fully_fold_internal): Treat VIEW_CONVERT_EXPR | |
18 | like REALPART_EXPR for the behavior of whether its operand | |
19 | is an lvalue. | |
20 | ||
a7625351 | 21 | 2017-12-12 Marek Polacek <polacek@redhat.com> |
22 | ||
23 | PR c/82679 | |
24 | * c-decl.c (grokdeclarator): Check declspecs insted of atomicp. | |
25 | ||
90567983 | 26 | 2017-12-12 Alexandre Oliva <aoliva@redhat.com> |
27 | ||
28 | * c-objc-common.h (LANG_HOOKS_EMITS_BEGIN_STMT): Redefine as true. | |
29 | * c-parser.c (add_debug_begin_stmt): New. | |
30 | (c_parser_declaration_or_fndef): Call it. | |
31 | (c_parser_compound_statement_nostart): Likewise. | |
32 | (c_parser_statement_after_labels): Likewise. | |
33 | * c-typeck (c_finish_stmt_expr): Skip begin stmts markers. | |
34 | ||
a52dedf5 | 35 | 2017-12-07 Joseph Myers <joseph@codesourcery.com> |
36 | ||
37 | * c-decl.c (build_compound_literal): Add parameter alignas_align | |
38 | and set alignment of decl if nonzero. | |
39 | * c-parser.c (c_keyword_starts_typename): Allow RID_ALIGNAS. | |
40 | (c_parser_declspecs): Allow RID_ALIGNAS to follow a type, like a | |
41 | qualifier. | |
42 | (c_parser_struct_declaration): Update syntax comment. | |
43 | (c_parser_type_name): Add alignas_ok argument and pass it to | |
44 | c_parser_declspecs. | |
45 | (c_parser_cast_expression): Pass true to c_parser_type_name and | |
46 | give error if a cast used an _Alignas specifier. | |
47 | (c_parser_sizeof_expression): Pass true to c_parser_type_name and | |
48 | give error if sizeof (type-name) used an _Alignas specifier. | |
49 | (c_parser_alignof_expression): Pass true to c_parser_type_name and | |
50 | give error if _Alignof (type-name) used an _Alignas specifier. | |
51 | (c_parser_postfix_expression_after_paren_type): Check specified | |
52 | alignment for a compound literal and pass it to | |
53 | build_compound_literal. | |
54 | * c-parser.h (c_parser_type_name): Update prototype. | |
55 | * c-tree.h (build_compound_literal): Update prototype. | |
56 | ||
dab0e385 | 57 | 2017-12-07 Martin Sebor <msebor@redhat.com> |
58 | ||
59 | PR c/81544 | |
60 | * c-decl.c (c_decl_attributes): Look up existing declaration and | |
61 | pass it to decl_attributes. | |
62 | ||
08233401 | 63 | 2017-12-06 David Malcolm <dmalcolm@redhat.com> |
64 | ||
65 | PR c/83236 | |
66 | * c-decl.c (lookup_name_fuzzy): Don't suggest names that are | |
67 | reserved for use by the implementation. | |
68 | ||
aa0e50a0 | 69 | 2017-12-06 David Malcolm <dmalcolm@redhat.com> |
70 | ||
71 | * c-decl.c: Include "c-family/c-spellcheck.h". | |
72 | ||
eabe2d94 | 73 | 2017-12-05 Martin Liska <mliska@suse.cz> |
74 | Jakub Jelinek <jakub@redhat.com> | |
75 | ||
76 | * c-typeck.c (pointer_diff): Add new argument and instrument | |
77 | pointer subtraction. | |
78 | (build_binary_op): Similar for pointer comparison. | |
79 | ||
a8f15ac7 | 80 | 2017-12-01 Jakub Jelinek <jakub@redhat.com> |
81 | ||
17cf92d6 | 82 | PR c/79153 |
83 | * c-parser.c: Include tree-iterator.h. | |
84 | (c_parser_switch_statement): Emit LABEL_EXPR for the break label | |
85 | into SWITCH_BODY instead of after it and set SWITCH_BREAK_LABEL_P | |
86 | on it. | |
87 | ||
a8f15ac7 | 88 | PR c/83222 |
89 | * c-tree.h (decl_constant_value_1): Declare. | |
90 | * c-typeck.c (decl_constant_value_1): New function. | |
91 | (decl_constant_value): Use it. | |
92 | * c-fold.c (c_fully_fold_internal): If in_init, use | |
93 | decl_constant_value_1 instead of decl_constant_value. | |
94 | ||
7f38a6aa | 95 | 2017-11-30 Jakub Jelinek <jakub@redhat.com> |
96 | ||
97 | * c-parser.c (c_parser_postfix_expression): Use ; instead of ;;. | |
98 | ||
dfa10f0d | 99 | 2017-11-28 Jakub Jelinek <jakub@redhat.com> |
100 | ||
101 | PR sanitizer/81275 | |
102 | * c-typeck.c (c_finish_case): Set SWITCH_ALL_CASES_P if | |
103 | c_switch_covers_all_cases_p returns true. | |
104 | ||
efa02472 | 105 | 2017-11-28 Julia Koval <julia.koval@intel.com> |
106 | Sebastian Peryt <sebastian.peryt@intel.com> | |
107 | ||
108 | * Make-lang.in (c/c-array-notation.o): Remove. | |
109 | * c-array-notation.c: Delete. | |
110 | * c-decl.c: Remove cilkplus condition. | |
111 | * c-parser.c (c_parser_cilk_simd, c_parser_cilk_for, | |
112 | c_parser_cilk_verify_simd, c_parser_array_notation, | |
113 | c_parser_cilk_clause_vectorlength, c_parser_cilk_grainsize, | |
114 | c_parser_cilk_simd_fn_vector_attrs, | |
115 | c_finish_cilk_simd_fn_tokens): Delete. | |
116 | (c_parser_declaration_or_fndef): Remove cilkplus condition. | |
117 | (c_parser_direct_declarator_inner): Ditto. | |
118 | (CILK_SIMD_FN_CLAUSE_MASK): Delete. | |
119 | (c_parser_attributes, c_parser_compound_statement, | |
120 | c_parser_statement_after_labels, c_parser_if_statement, | |
121 | c_parser_switch_statement, c_parser_while_statement, | |
122 | c_parser_do_statement, c_parser_for_statement, | |
123 | c_parser_unary_expression, c_parser_postfix_expression, | |
124 | c_parser_postfix_expression_after_primary, | |
125 | c_parser_pragma, c_parser_omp_clause_name, c_parser_omp_all_clauses, | |
126 | c_parser_omp_for_loop, c_finish_omp_declare_simd): Remove cilkplus | |
127 | support. | |
128 | * c-typeck.c (build_array_ref, build_function_call_vec, | |
129 | convert_arguments, | |
130 | lvalue_p, build_compound_expr, c_finish_return, c_finish_if_stmt, | |
131 | c_finish_loop, build_binary_op): Remove cilkplus support. | |
132 | ||
bd37ce3e | 133 | 2017-11-28 Jakub Jelinek <jakub@redhat.com> |
134 | ||
135 | * c-typeck.c (c_start_case): Build SWITCH_EXPR using build2 instead | |
136 | of build3. | |
137 | ||
864319e6 | 138 | 2017-11-14 Boris Kolpackov <boris@codesynthesis.com> |
139 | ||
140 | * Make-lang.in (c.install-plugin): Install backend import library. | |
141 | ||
59b23ab9 | 142 | 2017-11-23 Jakub Jelinek <jakub@redhat.com> |
143 | ||
144 | * c-parser.c (c_parser_omp_declare_simd): Reject declare simd in | |
145 | pragma_stmt context. | |
146 | ||
2a09b28c | 147 | 2017-11-23 Mike Stump <mikestump@comcast.net> |
148 | Eric Botcazou <ebotcazou@adacore.com> | |
149 | ||
150 | * c-parser.c (c_parser_while_statement): Pass 3rd operand to | |
151 | ANNOTATE_EXPR. | |
152 | (c_parser_do_statement): Likewise. | |
153 | (c_parser_for_statement): Likewise. | |
154 | ||
8e4391a5 | 155 | 2017-11-22 David Malcolm <dmalcolm@redhat.com> |
156 | ||
157 | PR c++/62170 | |
158 | * c-objc-common.c (c_tree_printer): Convert penultimate param from | |
159 | bool to bool *. Within '%T' handling, if showing an "aka", use | |
160 | "quoted" param to add appropriate quoting. | |
161 | ||
532d84ff | 162 | 2017-11-22 Marek Polacek <polacek@redhat.com> |
163 | ||
164 | PR c++/60336 | |
165 | PR middle-end/67239 | |
166 | PR target/68355 | |
167 | * c-decl.c (grokdeclarator): Set DECL_PADDING_P on unnamed bit-fields. | |
168 | ||
b8a6d52b | 169 | 2017-11-21 David Malcolm <dmalcolm@redhat.com> |
170 | ||
171 | PR c/83056 | |
172 | * c-decl.c (lookup_name_fuzzy): Don't suggest names that came from | |
173 | earlier failed lookups. | |
174 | ||
57e83b58 | 175 | 2017-11-21 Marc Glisse <marc.glisse@inria.fr> |
176 | ||
177 | * c-fold.c (c_fully_fold_internal): Handle POINTER_DIFF_EXPR. | |
178 | * c-typeck.c (pointer_diff): Use POINTER_DIFF_EXPR. | |
179 | ||
145fb49f | 180 | 2017-11-20 David Malcolm <dmalcolm@redhat.com> |
181 | ||
182 | PR c/81404 | |
183 | * c-decl.c: Include "c-family/known-headers.h". | |
184 | (get_c_name_hint): Rename to get_stdlib_header_for_name and move | |
185 | to known-headers.cc. | |
186 | (class suggest_missing_header): Move to known-header.h. | |
187 | (lookup_name_fuzzy): Call get_c_stdlib_header_for_name rather | |
188 | than get_c_name_hint. | |
189 | ||
0911a8d3 | 190 | 2017-11-20 David Malcolm <dmalcolm@redhat.com> |
191 | ||
192 | * c-decl.c (get_c_name_hint): New function. | |
193 | (class suggest_missing_header): New class. | |
194 | (lookup_name_fuzzy): Call get_c_name_hint and use it to | |
195 | suggest missing headers to the user. | |
196 | ||
dd008336 | 197 | 2017-11-20 David Malcolm <dmalcolm@redhat.com> |
198 | ||
199 | * c-decl.c: Define INCLUDE_UNIQUE_PTR before including system.h. | |
200 | Include "c-family/name-hint.h" | |
201 | (implicit_decl_warning): Convert "hint" from | |
202 | const char * to name_hint. Pass location to | |
203 | lookup_name_fuzzy. Suppress any deferred diagnostic if the | |
204 | warning was not printed. | |
205 | (undeclared_variable): Likewise for "guessed_id". | |
206 | (lookup_name_fuzzy): Convert return type from const char * | |
207 | to name_hint. Add location_t param. | |
208 | * c-parser.c: Define INCLUDE_UNIQUE_PTR before including system.h. | |
209 | Include "c-family/name-hint.h" | |
210 | (c_parser_declaration_or_fndef): Convert "hint" from | |
211 | const char * to name_hint. Pass location to lookup_name_fuzzy. | |
212 | (c_parser_parameter_declaration): Likewise. | |
213 | ||
69cd03b2 | 214 | 2017-11-19 Jakub Jelinek <jakub@redhat.com> |
215 | ||
216 | PR c/66618 | |
217 | PR c/69960 | |
218 | * c-parser.c (c_parser_omp_atomic): Pass true as LVAL to c_fully_fold | |
219 | where needed. | |
220 | * c-typeck.c (build_unary_op, build_modify_expr, build_asm_expr, | |
221 | handle_omp_array_sections): Likewise. | |
222 | (digest_init): Don't call decl_constant_value_for_optimization. | |
223 | * c-tree.h (decl_constant_value_for_optimization): Removed. | |
224 | * c-fold.c (c_fold_array_ref): New function. | |
225 | (c_fully_fold_internal): Add LVAL argument, propagate it through | |
226 | recursive calls. For VAR_P call decl_constant_value and | |
227 | unshare if not LVAL and either optimizing or IN_INIT. Remove | |
228 | decl_constant_value_for_optimization calls. If IN_INIT and not LVAL, | |
229 | fold ARRAY_REF with STRING_CST and INTEGER_CST operands. | |
230 | (c_fully_fold): Add LVAL argument, pass it through to | |
231 | c_fully_fold_internal. | |
232 | (decl_constant_value_for_optimization): Removed. | |
233 | ||
aac64699 | 234 | 2017-11-15 Joseph Myers <joseph@codesourcery.com> |
235 | ||
236 | PR c/81156 | |
237 | * c-parser.c (check_tgmath_function): New function. | |
238 | (enum tgmath_parm_kind): New enum. | |
239 | (c_parser_postfix_expression): Handle __builtin_tgmath. | |
240 | ||
3b6578b3 | 241 | 2017-10-31 David Malcolm <dmalcolm@redhat.com> |
242 | ||
243 | * c-decl.c (implicit_decl_warning): Update for renaming of | |
244 | pedwarn_at_rich_loc and warning_at_rich_loc. | |
245 | (implicitly_declare): Likewise for renaming of inform_at_rich_loc. | |
246 | (undeclared_variable): Likewise for renaming of error_at_rich_loc. | |
247 | * c-parser.c (c_parser_declaration_or_fndef): Likewise. | |
248 | (c_parser_struct_or_union_specifier): Likewise for renaming of | |
249 | pedwarn_at_rich_loc. | |
250 | (c_parser_parameter_declaration): Likewise for renaming of | |
251 | error_at_rich_loc. | |
252 | * c-typeck.c (build_component_ref): Likewise. | |
253 | (build_unary_op): Likewise for renaming of inform_at_rich_loc. | |
254 | (pop_init_level): Likewise for renaming of warning_at_rich_loc. | |
255 | (set_init_label): Likewise for renaming of error_at_rich_loc. | |
256 | ||
c22b2783 | 257 | 2017-10-30 Richard Biener <rguenther@suse.de> |
258 | ||
259 | * gimple-parser.c (c_parser_gimple_statement): Parse conditional | |
260 | stmts. | |
261 | ||
8c32188e | 262 | 2017-10-27 Michael Meissner <meissner@linux.vnet.ibm.com> |
263 | ||
264 | * c-decl.c (header_for_builtin_fn): Add support for copysign, fma, | |
265 | fmax, fmin, and sqrt _Float<N> and _Float<N>X variants. | |
266 | ||
133bd9b8 | 267 | 2017-10-25 David Malcolm <dmalcolm@redhat.com> |
268 | ||
269 | PR c/7356 | |
270 | * c-parser.c (c_parser_declaration_or_fndef): Detect missing | |
271 | semicolons. | |
272 | ||
ac50cb09 | 273 | 2017-10-25 Jakub Jelinek <jakub@redhat.com> |
274 | ||
275 | PR libstdc++/81706 | |
276 | * c-decl.c (merge_decls): Copy "omp declare simd" attributes from | |
277 | newdecl to corresponding __builtin_ if any. | |
278 | ||
41ca0095 | 279 | 2017-10-24 Paolo Carlini <paolo.carlini@oracle.com> |
280 | ||
281 | PR c++/82466 | |
282 | * c-decl.c (diagnose_mismatched_decls): Use | |
283 | OPT_Wbuiltin_declaration_mismatch. | |
284 | ||
74578794 | 285 | 2017-10-12 David Malcolm <dmalcolm@redhat.com> |
286 | ||
287 | * c-parser.c (c_parser_require): Add "type_is_unique" param and | |
288 | use it to guard calls to maybe_suggest_missing_token_insertion. | |
289 | (c_parser_parms_list_declarator): Override default value of new | |
290 | "type_is_unique" param to c_parser_require. | |
291 | (c_parser_asm_statement): Likewise. | |
292 | * c-parser.h (c_parser_require): Add "type_is_unique" param, | |
293 | defaulting to true. | |
294 | ||
3bdf5a5d | 295 | 2017-10-11 Nathan Sidwell <nathan@acm.org> |
296 | ||
297 | * c-decl.c (grokdeclarator): Check HAS_DECL_ASSEMBLER_NAME_P too. | |
298 | ||
e3d0f65c | 299 | 2017-10-10 Richard Sandiford <richard.sandiford@linaro.org> |
300 | ||
301 | * c-parser.c (c_parser_cilk_clause_vectorlength): Use wi::to_wide when | |
302 | operating on trees as wide_ints. | |
303 | * c-typeck.c (build_c_cast, c_finish_omp_clauses): Likewise. | |
304 | (c_tree_equal): Likewise. | |
305 | ||
b6fde48e | 306 | 2017-10-04 David Malcolm <dmalcolm@redhat.com> |
307 | ||
308 | * c-decl.c (push_parm_decl): Store c_parm's location into the | |
309 | PARAM_DECL. | |
310 | (build_c_parm): Add "loc" param and store it within the c_parm. | |
311 | * c-parser.c (struct c_parser): Add "last_token_location" field. | |
312 | (c_parser_consume_token): Store location of the token into the | |
313 | new field. | |
314 | (c_parser_declaration_or_fndef): Store params into DECL_ARGUMENTS | |
315 | when handling a FUNCTION_DECL, if it doesn't already have them. | |
316 | (c_parser_parameter_declaration): Generate a location for the | |
317 | parameter, and pass it to the call to build_c_parm. | |
318 | * c-tree.h (struct c_parm): Add field "loc". | |
319 | (build_c_parm): Add location_t param. | |
320 | * c-typeck.c (get_fndecl_argument_location): New function. | |
321 | (inform_for_arg): New function. | |
322 | (convert_for_assignment): Use inform_for_arg when dealing with | |
323 | ic_argpass. | |
324 | ||
e786f452 | 325 | 2017-09-29 Jakub Jelinek <jakub@redhat.com> |
326 | ||
52f26f82 | 327 | * c-decl.c (grokfield): Use SET_DECL_C_BIT_FIELD here if |
328 | width is non-NULL. | |
329 | (finish_struct): Test DECL_C_BIT_FIELD instead of DECL_INITIAL, | |
330 | don't SET_DECL_C_BIT_FIELD here. | |
331 | ||
e786f452 | 332 | PR c/82340 |
333 | * c-decl.c (build_compound_literal): Use c_apply_type_quals_to_decl | |
334 | instead of trying to set just TREE_READONLY manually. | |
335 | ||
93b7a91b | 336 | 2017-09-16 Tom de Vries <tom@codesourcery.com> |
337 | ||
338 | PR c/81875 | |
339 | * c-parser.c (c_parser_omp_for_loop): Fold only operands of cond, not | |
340 | cond itself. | |
341 | ||
3507457a | 342 | 2017-09-15 Joseph Myers <joseph@codesourcery.com> |
343 | ||
344 | PR c/82071 | |
345 | * c-typeck.c (ep_convert_and_check): Just call convert_and_check | |
346 | for C11. | |
347 | (build_conditional_expr): For C11, generate result with excess | |
348 | precision when one argument is an integer and the other is of a | |
349 | type using excess precision. | |
350 | ||
7ceee42d | 351 | 2017-09-15 Bernd Edlinger <bernd.edlinger@hotmail.de> |
352 | ||
353 | * c-typeck.c (build_c_cast): Implement -Wcast-align=strict. | |
354 | ||
2be90a05 | 355 | 2017-09-13 Marek Polacek <polacek@redhat.com> |
356 | ||
357 | PR c/82167 | |
358 | * c-typeck.c (c_expr_sizeof_expr): Use the type of expr.value rather | |
359 | than expr.original_type. | |
360 | ||
daf40ee6 | 361 | 2017-09-12 Nathan Sidwell <nathan@acm.org> |
362 | ||
363 | * c-decl.c (field_decl_cmp, resort_data, resort_field_decl_cmp, | |
364 | resort_sorted_fields): Moved from c-family/c-common.c. | |
365 | * c-lang.h (struct sorted_fields_type): Moved from c-family/c-common.h. | |
366 | ||
de7757ed | 367 | 2017-09-01 Joseph Myers <joseph@codesourcery.com> |
368 | ||
369 | PR c/82071 | |
370 | * c-typeck.c (build_atomic_assign): Handle argument with excess | |
371 | precision. Ensure any EXCESS_PRECISION_EXPR is present in | |
372 | argument passed to build_binary_op and convert_for_assignment but | |
373 | not for call to c_fully_fold. | |
374 | (build_modify_expr): Do not remove EXCESS_PRECISION_EXPR early. | |
375 | Ensure build_binary_op is called with argument with original | |
376 | semantic type. Avoid calling c_fully_fold with an | |
377 | EXCESS_PRECISION_EXPR from build_binary_op. | |
378 | ||
1e52a582 | 379 | 2017-09-01 Jakub Jelinek <jakub@redhat.com> |
380 | ||
381 | PR c/81887 | |
382 | * c-parser.c (c_parser_omp_ordered): Handle -fopenmp-simd. | |
383 | ||
3d2b0034 | 384 | 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org> |
385 | Alan Hayward <alan.hayward@arm.com> | |
386 | David Sherwood <david.sherwood@arm.com> | |
387 | ||
388 | * c-typeck.c (build_binary_op): Use SCALAR_TYPE_MODE. | |
389 | (c_common_type): Likewise. Use as_a <scalar_mode> when setting | |
390 | m1 and m2 to the signed equivalent of a fixed-point | |
391 | SCALAR_TYPE_MODE. | |
392 | ||
0bdd7941 | 393 | 2017-08-24 David Malcolm <dmalcolm@redhat.com> |
394 | ||
395 | * c-tree.h (c_expr::get_location) Use EXPR_HAS_LOCATION rather | |
396 | than CAN_HAVE_LOCATION_P when determining whether to use the | |
397 | location_t value within "value". | |
398 | ||
43f0de17 | 399 | 2017-08-21 David Malcolm <dmalcolm@redhat.com> |
400 | ||
401 | * c-parser.c (c_parser_expr_list): Use c_expr::get_location () | |
402 | rather than peeking the location of the first token. | |
403 | * c-tree.h (c_expr::get_location): New method. | |
404 | ||
a115c319 | 405 | 2017-08-21 David Malcolm <dmalcolm@redhat.com> |
406 | ||
407 | * c-typeck.c (build_function_call_vec): Pass arg_loc to call | |
408 | to check_function_arguments. | |
409 | ||
23bafc2f | 410 | 2017-08-18 Marek Polacek <polacek@redhat.com> |
411 | ||
412 | * c-parser.c (c_parser_postfix_expression): Remove unused code. Update | |
413 | commentary. | |
414 | ||
4bec7283 | 415 | 2017-08-18 H.J. Lu <hongjiu.lu@intel.com> |
416 | ||
417 | PR c/53037 | |
418 | * c-decl.c (merge_decls): Also merge DECL_WARN_IF_NOT_ALIGN. | |
419 | (check_bitfield_type_and_width): Don't allow bit-field with | |
420 | warn_if_not_aligned type. | |
421 | ||
c8616982 | 422 | 2017-08-14 Martin Sebor <msebor@redhat.com> |
423 | ||
424 | PR c/81117 | |
425 | * c-objc-common.c (c_objc_common_init): Handle 'G'. | |
426 | ||
0eb79e8b | 427 | 2017-08-11 Marek Polacek <polacek@redhat.com> |
428 | ||
429 | PR c/81795 | |
430 | * c-decl.c (pushtag): Only print inform if the warning was printed. | |
431 | (grokdeclarator): Likewise. | |
432 | ||
3fe34694 | 433 | 2017-08-10 David Malcolm <dmalcolm@redhat.com> |
434 | ||
435 | * c-parser.c (c_parser_error): Rename to... | |
436 | (c_parser_error_richloc): ...this, making static, and adding | |
437 | "richloc" parameter, passing it to the c_parse_error call, | |
438 | rather than calling c_parser_set_source_position_from_token. | |
439 | (c_parser_error): Reintroduce, reimplementing in terms of the | |
440 | above, converting return type from void to bool. | |
441 | (class token_pair): New class. | |
442 | (struct matching_paren_traits): New struct. | |
443 | (matching_parens): New typedef. | |
444 | (struct matching_brace_traits): New struct. | |
445 | (matching_braces): New typedef. | |
446 | (get_matching_symbol): New function. | |
447 | (c_parser_require): Add param MATCHING_LOCATION, using it to | |
448 | highlight matching "opening" tokens for missing "closing" tokens. | |
449 | (c_parser_skip_until_found): Likewise. | |
450 | (c_parser_static_assert_declaration_no_semi): Convert explicit | |
451 | parsing of CPP_OPEN_PAREN and CPP_CLOSE_PAREN to use of | |
452 | class matching_parens, so that the pertinent open parenthesis is | |
453 | highlighted when there are problems locating the close | |
454 | parenthesis. | |
455 | (c_parser_struct_or_union_specifier): Likewise. | |
456 | (c_parser_typeof_specifier): Likewise. | |
457 | (c_parser_alignas_specifier): Likewise. | |
458 | (c_parser_simple_asm_expr): Likewise. | |
459 | (c_parser_braced_init): Likewise, for matching_braces. | |
460 | (c_parser_paren_condition): Likewise, for matching_parens. | |
461 | (c_parser_switch_statement): Likewise. | |
462 | (c_parser_for_statement): Likewise. | |
463 | (c_parser_asm_statement): Likewise. | |
464 | (c_parser_asm_operands): Likewise. | |
465 | (c_parser_cast_expression): Likewise. | |
466 | (c_parser_sizeof_expression): Likewise. | |
467 | (c_parser_alignof_expression): Likewise. | |
468 | (c_parser_generic_selection): Likewise. | |
469 | (c_parser_postfix_expression): Likewise for cases RID_VA_ARG, | |
470 | RID_OFFSETOF, RID_TYPES_COMPATIBLE_P, RID_AT_SELECTOR, | |
471 | RID_AT_PROTOCOL, RID_AT_ENCODE, reindenting as necessary. | |
472 | In case CPP_OPEN_PAREN, pass loc_open_paren to the | |
473 | c_parser_skip_until_found call. | |
474 | (c_parser_objc_class_definition): Use class matching_parens as | |
475 | above. | |
476 | (c_parser_objc_method_decl): Likewise. | |
477 | (c_parser_objc_try_catch_finally_statement): Likewise. | |
478 | (c_parser_objc_synchronized_statement): Likewise. | |
479 | (c_parser_objc_at_property_declaration): Likewise. | |
480 | (c_parser_oacc_wait_list): Likewise. | |
481 | (c_parser_omp_var_list_parens): Likewise. | |
482 | (c_parser_omp_clause_collapse): Likewise. | |
483 | (c_parser_omp_clause_default): Likewise. | |
484 | (c_parser_omp_clause_if): Likewise. | |
485 | (c_parser_omp_clause_num_threads): Likewise. | |
486 | (c_parser_omp_clause_num_tasks): Likewise. | |
487 | (c_parser_omp_clause_grainsize): Likewise. | |
488 | (c_parser_omp_clause_priority): Likewise. | |
489 | (c_parser_omp_clause_hint): Likewise. | |
490 | (c_parser_omp_clause_defaultmap): Likewise. | |
491 | (c_parser_oacc_single_int_clause): Likewise. | |
492 | (c_parser_omp_clause_ordered): Likewise. | |
493 | (c_parser_omp_clause_reduction): Likewise. | |
494 | (c_parser_omp_clause_schedule): Likewise. | |
495 | (c_parser_omp_clause_num_teams): Likewise. | |
496 | (c_parser_omp_clause_thread_limit): Likewise. | |
497 | (c_parser_omp_clause_aligned): Likewise. | |
498 | (c_parser_omp_clause_linear): Likewise. | |
499 | (c_parser_omp_clause_safelen): Likewise. | |
500 | (c_parser_omp_clause_simdlen): Likewise. | |
501 | (c_parser_omp_clause_depend): Likewise. | |
502 | (c_parser_omp_clause_map): Likewise. | |
503 | (c_parser_omp_clause_device): Likewise. | |
504 | (c_parser_omp_clause_dist_schedule): Likewise. | |
505 | (c_parser_omp_clause_proc_bind): Likewise. | |
506 | (c_parser_omp_clause_uniform): Likewise. | |
507 | (c_parser_omp_for_loop): Likewise. | |
508 | (c_parser_cilk_clause_vectorlength): Likewise. | |
509 | (c_parser_cilk_clause_linear): Likewise. | |
510 | (c_parser_transaction_expression): Likewise. | |
511 | * c-parser.h (c_parser_require): Add param matching_location with | |
512 | default UNKNOWN_LOCATION. | |
513 | (c_parser_error): Convert return type from void to bool. | |
514 | (c_parser_skip_until_found): Add param matching_location with | |
515 | default UNKNOWN_LOCATION. | |
516 | ||
623ee358 | 517 | 2017-08-09 Marek Polacek <polacek@redhat.com> |
518 | ||
519 | * c-decl.c (build_enumerator): Use true/false instead of 1/0. | |
520 | * c-tree.h (build_external_ref): Update declaration. | |
521 | * c-typeck.c (build_array_ref): Use true/false instead of 1/0. | |
522 | (build_external_ref): Change the type of a parameter to bool. | |
523 | (parser_build_binary_op): Use true/false instead of 1/0. | |
524 | (pointer_diff): Likewise. | |
525 | (build_modify_expr): Likewise. | |
526 | (set_designator): Change the type of a parameter to bool. | |
527 | (set_init_index): Use true/false instead of 1/0. | |
528 | (set_init_label): Likewise. | |
529 | (output_init_element): Change the type of a parameter to bool. | |
530 | (output_pending_init_elements): Use true/false instead of 1/0. | |
531 | (process_init_element): Likewise. | |
532 | (build_binary_op): Change the type of a parameter to bool. | |
533 | ||
88539b96 | 534 | 2017-08-09 Marek Polacek <polacek@redhat.com> |
535 | ||
536 | PR c/81233 | |
537 | * c-typeck.c (pedwarn_init): Make the function take a variable list. | |
538 | Call emit_diagnostic_valist instead of pedwarn. | |
539 | (convert_for_assignment): Unroll the PEDWARN_FOR_ASSIGNMENT macro. | |
540 | Print the relevant types in diagnostics. | |
541 | ||
cb4d9ee2 | 542 | 2017-08-09 Marek Polacek <polacek@redhat.com> |
543 | ||
544 | PR c/81417 | |
545 | * c-array-notation.c (fix_builtin_array_notation_fn): Update calls to | |
546 | build_conditional_expr. | |
547 | * c-parser.c (c_parser_conditional_expression): Create locations for | |
548 | EXP1 and EXP2 from their source ranges. Pass the locations down to | |
549 | build_conditional_expr. | |
550 | * c-tree.h (build_conditional_expr): Update declaration. | |
551 | * c-typeck.c (build_conditional_expr): Add location_t parameters. | |
552 | For -Wsign-compare, also print the types. | |
553 | ||
30a86690 | 554 | 2017-08-08 Martin Liska <mliska@suse.cz> |
555 | ||
556 | * c-convert.c: Include header files. | |
557 | * c-typeck.c: Likewise. | |
558 | ||
1610e7fb | 559 | 2017-08-07 Martin Liska <mliska@suse.cz> |
560 | ||
561 | * c-parser.c (c_parser_attributes): Canonicalize name of an | |
562 | attribute. | |
563 | ||
9b184593 | 564 | 2017-08-02 Marek Polacek <polacek@redhat.com> |
565 | ||
566 | PR c/81289 | |
567 | * c-parser.c (c_parser_unary_expression): Use set_error. | |
568 | ||
ef85bba9 | 569 | PR c/81448 |
570 | PR c/81306 | |
571 | * c-warn.c (warn_for_multistatement_macros): Prevent bogus | |
572 | warnings. Avoid walking MACRO_MAP_LOCATIONS. | |
573 | ||
38ef3642 | 574 | 2017-07-31 Jan Hubicka <hubicka@ucw.cz> |
575 | Martin Liska <mliska@suse.cz> | |
576 | ||
577 | * c-typeck.c (c_finish_goto_label): Build gimple predict | |
9b184593 | 578 | statement. |
38ef3642 | 579 | |
dadc219c | 580 | 2017-07-31 Martin Liska <mliska@suse.cz> |
581 | ||
582 | PR sanitize/81530 | |
583 | * c-convert.c (convert): Guard condition with flag_sanitize_p | |
584 | also with current_function_decl non-null equality. | |
585 | * c-decl.c (grokdeclarator): Likewise. | |
586 | * c-typeck.c (build_binary_op): Likewise. | |
587 | ||
abec4134 | 588 | 2017-07-25 Marek Polacek <polacek@redhat.com> |
589 | ||
590 | * c-decl.c (grokfield): Remove local variable. | |
591 | ||
662c96a9 | 592 | 2017-07-25 Marek Polacek <polacek@redhat.com> |
593 | ||
594 | PR c/81364 | |
595 | * c-parser.c (c_parser_else_body): Don't warn about multistatement | |
596 | macro expansion if the body is in { }. | |
597 | (c_parser_while_statement): Likewise. | |
598 | (c_parser_for_statement): Likewise. | |
599 | ||
a8de6c92 | 600 | 2017-07-18 Nathan Sidwell <nathan@acm.org> |
601 | ||
602 | * c-parser.c (c_parser_array_notation): Use TYPE_{MIN,MAX}_VALUE. | |
603 | ||
7f9c8569 | 604 | 2017-07-14 David Malcolm <dmalcolm@redhat.com> |
605 | ||
606 | * c-decl.c (implicitly_declare): When suggesting a missing | |
607 | #include, provide a fix-it hint. | |
608 | ||
7051d239 | 609 | 2017-07-06 David Malcolm <dmalcolm@redhat.com> |
610 | ||
611 | * c-lang.c (selftest::run_c_tests): Move body to c_family_tests, | |
612 | and call that instead. | |
613 | * c-tree.h (selftest::run_c_tests): New decl. | |
614 | ||
2bfb0686 | 615 | 2017-06-26 Marek Polacek <polacek@redhat.com> |
616 | ||
617 | PR c/80116 | |
618 | * c-parser.c (c_parser_if_body): Set the location of the | |
619 | body of the conditional after parsing all the labels. Call | |
620 | warn_for_multistatement_macros. | |
621 | (c_parser_else_body): Likewise. | |
622 | (c_parser_switch_statement): Likewise. | |
623 | (c_parser_while_statement): Likewise. | |
624 | (c_parser_for_statement): Likewise. | |
625 | (c_parser_statement): Add a default argument. Save the location | |
626 | after labels have been parsed. | |
627 | (c_parser_c99_block_statement): Likewise. | |
628 | ||
edd07ff6 | 629 | 2017-06-19 Richard Biener <rguenther@suse.de> |
630 | ||
631 | * gimple-parser.c (c_parser_gimple_postfix_expression): Handle | |
632 | negated _Literals to parse _Literal (int) -1. | |
633 | ||
9917317a | 634 | 2017-06-13 Martin Liska <mliska@suse.cz> |
635 | ||
636 | PR sanitize/78204 | |
637 | * c-convert.c (convert): Use sanitize_flags_p. | |
638 | * c-decl.c (grokdeclarator): Likewise. | |
639 | * c-typeck.c (convert_for_assignment): Likewise. | |
640 | (c_finish_return): Likewise. | |
641 | (build_binary_op): Likewise. | |
642 | ||
37ce62dc | 643 | 2017-06-08 Jakub Jelinek <jakub@redhat.com> |
644 | ||
645 | PR c/81006 | |
646 | * c-typeck.c (handle_omp_array_sections_1): Convert TYPE_MAX_VALUE | |
647 | to sizetype before size_binop. | |
648 | ||
73714718 | 649 | 2017-06-07 Jakub Jelinek <jakub@redhat.com> |
650 | ||
651 | * gimple-parser.c (c_parser_parse_gimple_body): Use TDI_gimple instead | |
652 | of TDI_generic. | |
653 | ||
1d1d0f37 | 654 | 2017-06-06 Marek Polacek <polacek@redhat.com> |
655 | ||
656 | PR c/79983 | |
657 | * c-decl.c (start_struct): Use the location of TYPE_STUB_DECL of | |
658 | ref. | |
659 | (start_enum): Use the location of TYPE_STUB_DECL of enumtype. | |
660 | ||
0ca70bfd | 661 | 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de> |
662 | ||
663 | * c-parser.c (c_parser_binary_expression): Implement the | |
664 | -Wsizeof_pointer_div warning. | |
665 | (c_parser_postfix_expression): Allow SIZEOF_EXPR as expr.original_code | |
666 | from a parenthesized expression. | |
667 | (c_parser_expr_list): Use c_last_sizeof_loc. | |
668 | * c-tree.h (c_last_sizeof_loc): New external. | |
669 | * c-typeck.c (c_last_sizeof_loc): New variable. | |
670 | (c_expr_sizeof_expr, c_expr_sizeof_type): Assign c_last_sizeof_loc. | |
671 | ||
8c7a5be5 | 672 | 2017-05-31 Mikhail Maltsev <maltsevm@gmail.com> |
673 | ||
674 | PR testsuite/80580 | |
675 | * gimple-parser.c (c_parser_gimple_if_stmt): Check for empty labels. | |
676 | ||
4d1eda3a | 677 | 2017-05-30 David Malcolm <dmalcolm@redhat.com> |
678 | ||
679 | * c-objc-common.c (c_tree_printer): Gain bool and const char ** | |
680 | parameters. | |
681 | ||
645b0f8d | 682 | 2017-05-24 Martin Sebor <msebor@redhat.com> |
683 | ||
684 | PR c/80731 | |
685 | * c-fold.c (c_fully_fold_internal): Adjust. | |
686 | * c-typeck.c (parser_build_unary_op): Adjust. | |
687 | ||
9d5c2cca | 688 | 2017-05-23 Thomas Schwinge <thomas@codesourcery.com> |
689 | ||
690 | * c-parser.c (OACC_KERNELS_CLAUSE_MASK): Add | |
691 | "PRAGMA_OACC_CLAUSE_NUM_GANGS", "PRAGMA_OACC_CLAUSE_NUM_WORKERS", | |
692 | "VECTOR_LENGTH". | |
693 | ||
50253e07 | 694 | 2017-05-23 Marek Polacek <polacek@redhat.com> |
695 | ||
696 | * c-parser.c (c_parser_compound_statement_nostart): Remove redundant | |
697 | quotes. | |
698 | ||
5c05c939 | 699 | 2017-05-22 Jakub Jelinek <jakub@redhat.com> |
700 | ||
701 | * c-fold.c (c_fully_fold_internal): Save the c_fully_fold_internal | |
702 | result for SAVE_EXPR operand and set SAVE_EXPR_FOLDED_P even if | |
703 | it returned invariant. Call tree_invariant_p unconditionally | |
704 | afterwards to decide whether to return expr or op0. | |
705 | ||
88df6264 | 706 | 2017-05-22 Nathan Sidwell <nathan@acm.org> |
707 | ||
708 | * c-decl.c (c_parse_final_cleanups): Drop TDI_tu handling. | |
709 | ||
6acf639f | 710 | 2017-05-19 Thomas Schwinge <thomas@codesourcery.com> |
711 | ||
712 | * c-parser.c (c_parser_omp_clause_default): Handle | |
713 | "OMP_CLAUSE_DEFAULT_PRESENT". | |
714 | ||
1bccae6b | 715 | 2017-05-18 Bernd Edlinger <bernd.edlinger@hotmail.de> |
716 | ||
717 | * config-lang.in (gtfiles): Add c-family/c-format.c. | |
718 | ||
8eb8a179 | 719 | 2017-05-18 Nathan Sidwell <nathan@acm.org> |
720 | ||
721 | * c-decl.c (pushdecl_top_level): Delete unused function. | |
722 | ||
78173203 | 723 | 2017-05-18 Marek Polacek <polacek@redhat.com> |
724 | ||
725 | * c-decl.c (match_builtin_function_types): Use NULL_TREE instead of 0. | |
726 | (check_earlier_gotos): Likewise. | |
727 | (define_label): Likewise. | |
728 | (pending_xref_error): Likewise. | |
729 | (smallest_type_quals_location): Likewise. | |
730 | (grokdeclarator): Likewise. | |
731 | (grokparms): Likewise. | |
732 | (identifier_global_value): Likewise. | |
733 | * c-typeck.c (set_nonincremental_init_from_string): Likewise. | |
734 | (find_init_member): Likewise. | |
735 | ||
2823920b | 736 | 2017-05-18 Marek Polacek <polacek@redhat.com> |
737 | ||
738 | * c-decl.c (start_decl): Use false/true instead of 0/1. | |
739 | (grokdeclarator): Likewise. | |
740 | (finish_struct): Likewise. | |
741 | (start_function): Change the return type to bool. Use false/true | |
742 | instead of 0/1. | |
743 | (declspecs_add_qual): Use UNKNOWN_LOCATION instead of 0. | |
744 | * c-tree.h (start_function): Update. | |
745 | * c-typeck.c (same_translation_unit_p): Change the return type to bool. | |
746 | (set_designator): Change the return type to bool. Use false/true | |
747 | instead of 0/1. | |
748 | ||
72749341 | 749 | 2017-05-17 Marek Polacek <polacek@redhat.com> |
750 | ||
751 | * c-decl.c: Use NULL_TREE instead of 0 where appropriate. | |
752 | * c-typeck.c: Likewise. | |
753 | ||
63b8aca5 | 754 | 2017-05-17 Marek Polacek <polacek@redhat.com> |
755 | ||
756 | PR sanitizer/80659 | |
757 | * c-decl.c (build_compound_literal): Set DECL_ARTIFICIAL and | |
758 | DECL_IGNORED_P even for non-static compound literals. | |
759 | ||
3f6e5ced | 760 | 2017-05-17 Martin Liska <mliska@suse.cz> |
761 | ||
762 | * c-decl.c (c_parse_final_cleanups): Introduce dump_flags_t type and | |
763 | use it instead of int type. | |
764 | ||
d0869ea4 | 765 | 2017-05-17 Marek Polacek <polacek@redhat.com> |
766 | ||
767 | * c-convert.c (convert): Replace c_save_expr with save_expr. Don't | |
768 | call c_fully_fold. | |
769 | (convert) <case COMPLEX_TYPE>: Remove special handling of COMPLEX_TYPEs. | |
770 | * c-decl.c (grokdeclarator): Replace c_save_expr with save_expr. | |
771 | * c-fold.c (c_fully_fold_internal): Handle SAVE_EXPR. | |
772 | * c-parser.c (c_parser_declaration_or_fndef): Replace c_save_expr with | |
773 | save_expr. | |
774 | (c_parser_conditional_expression): Likewise. | |
775 | * c-tree.h (SAVE_EXPR_FOLDED_P): Define. | |
776 | * c-typeck.c (build_modify_expr): Replace c_save_expr with save_expr. | |
777 | (process_init_element): Likewise. | |
778 | (build_binary_op): Likewise. | |
779 | (handle_omp_array_sections_1): Likewise. | |
780 | ||
641fc3ae | 781 | 2017-05-12 Thomas Schwinge <thomas@codesourcery.com> |
782 | ||
783 | * c-parser.c (c_parser_omp_clause_num_gangs) | |
784 | (c_parser_omp_clause_num_workers) | |
785 | (c_parser_omp_clause_vector_length): Merge functions into... | |
786 | (c_parser_oacc_single_int_clause): ... this new function. Adjust | |
787 | all users. | |
788 | ||
930c75f4 | 789 | 2017-05-11 Nathan Sidwell <nathan@acm.org> |
790 | ||
791 | * gimple-parser.c: Don't #include tree-dump.h. | |
792 | ||
22ba59df | 793 | 2017-05-11 Mikhail Maltsev <maltsevm@gmail.com> |
794 | ||
795 | PR testsuite/80580 | |
796 | * gimple-parser.c (c_parser_parse_ssa_name): Validate SSA name base. | |
797 | ||
e58d47fc | 798 | 2017-05-11 Mikhail Maltsev <maltsevm@gmail.com> |
799 | ||
800 | PR testsuite/80580 | |
801 | * gimple-parser.c (c_parser_gimple_postfix_expression): Handle | |
802 | incorrect __MEM syntax. | |
803 | ||
a38eda85 | 804 | 2017-05-11 Mikhail Maltsev <maltsevm@gmail.com> |
805 | ||
806 | PR testsuite/80580 | |
807 | * gimple-parser.c (c_parser_gimple_unary_expression): Check argument | |
808 | type of unary '*'. | |
809 | ||
cdf05a3f | 810 | 2017-05-09 Nathan Sidwell <nathan@acm.org> |
811 | ||
812 | * c-tree.h (pushdecl): Declare. | |
813 | ||
56b8400f | 814 | 2017-05-05 David Malcolm <dmalcolm@redhat.com> |
815 | ||
816 | * c-decl.c (warn_defaults_to): Replace report_diagnostic | |
817 | with diagnostic_report_diagnostic. | |
818 | * c-errors.c (pedwarn_c99): Likewise. | |
819 | (pedwarn_c90): Likewise. | |
820 | ||
92bc38e7 | 821 | 2017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn> |
822 | ||
823 | PR c++/80038 | |
824 | * c-gimplify.c (c_gimplify_expr): Remove calls to | |
825 | cilk_gimplifY_call_params_in_spawned_fn. | |
826 | ||
112e1c2c | 827 | 2017-04-25 David Malcolm <dmalcolm@redhat.com> |
828 | ||
829 | * c-parser.c (c_parser_struct_or_union_specifier): Add fix-it | |
830 | hint for removing extra semicolon. | |
831 | ||
0b515531 | 832 | 2017-04-21 Jakub Jelinek <jakub@redhat.com> |
833 | ||
834 | PR c/80468 | |
835 | * c-decl.c (finish_declspecs) <case cts_int_n>: If int_n_idx is not | |
836 | enabled, set specs->type to integer_type_node. | |
837 | ||
2fbe7a32 | 838 | 2017-04-03 Jonathan Wakely <jwakely@redhat.com> |
839 | ||
840 | * c-array-notation.c: Fix typo in comment. | |
841 | ||
3582b9a6 | 842 | 2017-03-29 Marek Polacek <polacek@redhat.com> |
843 | ||
844 | PR c/79730 | |
845 | * c-decl.c (finish_decl): Check VAR_P. | |
846 | ||
3385a573 | 847 | 2017-03-27 Jakub Jelinek <jakub@redhat.com> |
848 | ||
849 | PR middle-end/80162 | |
850 | * c-tree.h (c_mark_addressable): Add array_ref_p argument. | |
851 | * c-typeck.c (c_mark_addressable): Likewise. Look through | |
852 | VIEW_CONVERT_EXPR unless array_ref_p and VCE is from VECTOR_TYPE | |
853 | to ARRAY_TYPE. | |
854 | (build_array_ref): Pass true as array_ref_p to c_mark_addressable. | |
855 | ||
5c1d51e3 | 856 | 2017-03-23 Marek Polacek <polacek@redhat.com> |
857 | ||
858 | * c-tree.h: Remove a C_RID_YYCODE reference. | |
859 | ||
048100df | 860 | 2017-03-21 Jakub Jelinek <jakub@redhat.com> |
861 | ||
862 | PR c/80097 | |
863 | * c-typeck.c (build_binary_op): Add EXCESS_PRECISION_EXPR only around | |
864 | optional COMPOUND_EXPR with ubsan instrumentation. | |
865 | ||
c153c724 | 866 | 2017-03-17 Marek Polacek <polacek@redhat.com> |
867 | ||
868 | * c-parser.c: Add C11 references. | |
869 | ||
51eb47a0 | 870 | 2017-03-15 Marek Polacek <polacek@redhat.com> |
871 | ||
872 | * c-parser.c (c_parser_enum_specifier): Remove redundant line. | |
873 | ||
726add0b | 874 | 2017-03-11 Marek Polacek <polacek@redhat.com> |
875 | ||
876 | * c-decl.c (implicit_decl_warning): Add a comment. Fix formatting. | |
877 | ||
ca1f4c7a | 878 | 2017-03-10 David Malcolm <dmalcolm@redhat.com> |
879 | ||
880 | PR translation/79848 | |
881 | * c-decl.c (declspecs_add_type): Simplify uses of "%<%s%>" to | |
882 | "%qs". | |
883 | * c-parser.c (c_parser_oacc_shape_clause): Likewise. | |
884 | ||
e14b765f | 885 | 2017-03-09 Marek Polacek <polacek@redhat.com> |
886 | ||
887 | PR sanitizer/79757 | |
888 | * c-parser.c (c_parser_declaration_or_fndef): Don't sanitize old-style | |
889 | parameter declarations with initializers. | |
890 | ||
7ad571b2 | 891 | 2017-03-09 Jakub Jelinek <jakub@redhat.com> |
892 | ||
893 | PR c/79969 | |
894 | * c-decl.c (start_enum): Adjust DECL_SOURCE_LOCATION of | |
895 | TYPE_STUB_DECL. | |
896 | ||
d87f668a | 897 | 2017-03-07 Jakub Jelinek <jakub@redhat.com> |
898 | ||
899 | PR c/79834 | |
900 | * c-parser.c (c_parser_pragma): Use error_at instead of c_parser_error | |
901 | for "may only be used in compound statements" diagnostics, change it | |
902 | such that the same translatable string is used for all pragmas. For | |
903 | PRAGMA_OACC_WAIT use "acc wait" rather than "acc enter data" in the | |
904 | diagnostics. | |
905 | (c_parser_omp_cancellation_point, c_parser_omp_target_update, | |
906 | c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): Change | |
907 | "may only be used in compound statements" diagnostics, such that the | |
908 | same translatable string is used for all pragmas. | |
909 | ||
16b0e324 | 910 | 2017-03-04 Marek Polacek <polacek@redhat.com> |
911 | ||
912 | PR c/79847 | |
913 | * c-decl.c (implicit_decl_warning): Add missing space. | |
914 | ||
f2360ea5 | 915 | 2017-03-03 Marek Polacek <polacek@redhat.com> |
916 | ||
917 | PR c/79758 | |
918 | * c-decl.c (store_parm_decls_oldstyle): Check if the element of | |
919 | current_function_prototype_arg_types is error_mark_node. Fix | |
920 | formatting. Use TREE_VALUE instead of TREE_TYPE. | |
921 | ||
d33f5911 | 922 | 2017-03-03 Jakub Jelinek <jakub@redhat.com> |
923 | ||
408a47b2 | 924 | PR c/79837 |
925 | * c-parser.c (c_parser_omp_clause_reduction): Don't mention | |
926 | %<min%> or %<max%> in the diagnostics, instead mention identifier. | |
927 | (c_parser_omp_declare_reduction): Don't mention %<min%> in the | |
928 | diagnostics. | |
929 | ||
d33f5911 | 930 | PR c/79836 |
931 | * c-parser.c (c_parser_generic_selection): Use %<_Generic%> | |
932 | instead of %<_Generic>. | |
933 | (c_parser_omp_ordered): Use %<depend%> instead of %<depend>. | |
934 | (c_parser_omp_target_exit_data): Use %<release%> instead of | |
935 | %<release>. | |
936 | ||
1caf9cb4 | 937 | 2017-02-28 Jakub Jelinek <jakub@redhat.com> |
938 | ||
939 | * c-parser.c (c_parser_asm_statement): Use cond ? G_("...") : G_("...") | |
940 | instead of just cond ? "..." : "...". | |
941 | (c_parser_oacc_enter_exit_data): Use %s and ternary operator only | |
942 | for "enter"/"exit" keyword. | |
943 | (c_finish_oacc_routine): Don't use %s to supply portions of the | |
944 | message. | |
945 | ||
bbd5521e | 946 | 2017-02-24 Jakub Jelinek <jakub@redhat.com> |
947 | ||
948 | PR c++/79588 | |
949 | * c-parser.c (c_parser_postfix_expression_after_primary): Don't | |
950 | handle -Wrestrict here. | |
951 | * c-typeck.c (build_function_call_vec): Adjust | |
952 | check_function_arguments caller. | |
953 | ||
a450df95 | 954 | 2017-02-23 Richard Biener <rguenther@suse.de> |
955 | ||
956 | PR c/79684 | |
957 | * gimple-parser.c (c_parser_gimple_statement): Use set_error | |
958 | to initialize c_exprs to return. | |
959 | (c_parser_gimple_binary_expression): Likewise. | |
960 | (c_parser_gimple_unary_expression): Likewise. | |
961 | (c_parser_gimple_postfix_expression): Likewise. | |
962 | ||
2567d975 | 963 | 2017-02-22 Marek Polacek <polacek@redhat.com> |
964 | ||
965 | PR c/79662 | |
966 | * c-typeck.c (convert_arguments): Handle error_mark_node. | |
967 | ||
21bfe0d4 | 968 | 2017-02-19 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
969 | ||
970 | * gimple-parser.c (c_parser_gimple_postfix_expression): Check return | |
971 | value of c_parser_parse_ssa_name against error_mark_node and emit | |
972 | error if ssa name is anonymous and written as default definition. | |
973 | ||
a8deddc8 | 974 | 2017-02-19 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
975 | ||
976 | * gimple-parser.c (c_parser_gimple_postfix_expression): Handle | |
977 | FMA_EXPR. | |
978 | ||
79878c89 | 979 | 2017-02-16 Jakub Jelinek <jakub@redhat.com> |
980 | ||
981 | PR c++/79512 | |
982 | * c-parser.c (c_parser_omp_target): For -fopenmp-simd | |
983 | ignore #pragma omp target even when not followed by identifier. | |
984 | ||
78c6d67e | 985 | 2017-02-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
986 | ||
987 | * gimpler-parser.c (c_parser_gimple_statement): Handle ABS_EXPR. | |
988 | (c_parser_gimple_unary_expression): Likewise. | |
989 | ||
19efce70 | 990 | 2017-02-13 Jakub Jelinek <jakub@redhat.com> |
991 | ||
992 | * c-parser.c (c_parser_oacc_declare): Add missing space in | |
993 | diagnostics. | |
994 | ||
32b8484d | 995 | 2017-02-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
996 | ||
997 | PR c/79478 | |
998 | * gimple-parser.c (c_parser_gimple_postfix_expression): Call | |
999 | set_c_expr_source_range when parsing ssa-name. | |
1000 | ||
b91919ba | 1001 | 2017-02-10 Prasad Ghangal <prasad.ghangal@gmail.com> |
1002 | Richard Biener <rguenther@suse.de> | |
1003 | ||
1004 | * gimple-parser.c (c_parser_gimple_binary_expression): Avoid | |
1005 | building IL when arguments are error_mark_node. | |
1006 | (c_parser_gimple_unary_expression): Likewise. | |
1007 | (c_parser_gimple_if_stmt): Likewise. | |
1008 | (c_parser_gimple_switch_stmt): Likewise. | |
1009 | (c_parser_gimple_return_stmt): Likewise. | |
1010 | (c_parser_parse_ssa_name): When name lookup fails do not build | |
1011 | an SSA name. Use undeclared rather than not declared in error | |
1012 | reporting. | |
1013 | ||
127144a0 | 1014 | 2017-02-09 Marek Polacek <polacek@redhat.com> |
1015 | ||
1016 | PR c/79428 | |
1017 | * c-parser.c (c_parser_omp_ordered): Call c_parser_skip_to_pragma_eol | |
1018 | instead of c_parser_skip_until_found. | |
1019 | ||
b5c83b44 | 1020 | 2017-02-09 Jakub Jelinek <jakub@redhat.com> |
1021 | ||
1022 | PR c/79431 | |
1023 | * c-parser.c (c_parser_omp_declare_target): Don't invoke | |
1024 | symtab_node::get on automatic variables. | |
1025 | ||
719a7570 | 1026 | 2016-02-09 Nathan Sidwell <nathan@codesourcery.com> |
1027 | Chung-Lin Tang <cltang@codesourcery.com> | |
1028 | ||
1029 | * c-parser.c (c_parser_omp_clause_collapse): Disallow tile. | |
1030 | (c_parser_oacc_clause_tile): Disallow collapse. Fix parsing and | |
1031 | semantic checking. | |
1032 | * c-parser.c (c_parser_omp_for_loop): Accept tiling constructs. | |
1033 | ||
29beab79 | 1034 | 2017-02-07 Richard Biener <rguenther@suse.de> |
1035 | ||
1036 | * gimple-parser.c (c_parser_gimple_expr_list): Simplify. | |
1037 | (c_parser_gimple_postfix_expression_after_primary): | |
1038 | Do not use c_build_function_call_vec to avoid folding and promotion. | |
1039 | Simplify. | |
1040 | ||
96afa092 | 1041 | 2017-01-25 Maxim Ostapenko <m.ostapenko@samsung.com> |
1042 | ||
1043 | PR lto/79061 | |
1044 | * c-decl.c (pop_scope): Pass main_input_filename to | |
1045 | build_translation_unit_decl. | |
1046 | ||
175e0d6b | 1047 | 2017-01-24 David Malcolm <dmalcolm@redhat.com> |
1048 | ||
1049 | * c-parser.c: Include "read-rtl-function.h" and | |
1050 | "run-rtl-passes.h". | |
1051 | (c_parser_declaration_or_fndef): Rename "gimple-pass-list" in | |
1052 | grammar to gimple-or-rtl-pass-list. Add rtl-function-definition | |
1053 | production. Update for renaming of field "gimple_pass" to | |
1054 | "gimple_or_rtl_pass". If __RTL was seen, call | |
1055 | c_parser_parse_rtl_body. Convert a timevar_push/pop pair | |
1056 | to an auto_timevar, to cope with early exit. | |
1057 | (c_parser_declspecs): Update RID_GIMPLE handling for renaming of | |
1058 | field "gimple_pass" to "gimple_or_rtl_pass", and for renaming of | |
1059 | c_parser_gimple_pass_list to c_parser_gimple_or_rtl_pass_list. | |
1060 | Handle RID_RTL. | |
1061 | (c_parser_parse_rtl_body): New function. | |
1062 | * c-tree.h (enum c_declspec_word): Add cdw_rtl. | |
1063 | (struct c_declspecs): Rename field "gimple_pass" to | |
1064 | "gimple_or_rtl_pass". Add field "rtl_p". | |
1065 | * gimple-parser.c (c_parser_gimple_pass_list): Rename to... | |
1066 | (c_parser_gimple_or_rtl_pass_list): ...this, updating accordingly. | |
1067 | * gimple-parser.h (c_parser_gimple_pass_list): Rename to... | |
1068 | (c_parser_gimple_or_rtl_pass_list): ...this. | |
1069 | ||
3ef7eab1 | 1070 | 2017-01-20 Marek Polacek <polacek@redhat.com> |
1071 | ||
1072 | PR c/64279 | |
1073 | * c-typeck.c (build_conditional_expr): Warn about duplicated branches. | |
1074 | ||
785353b9 | 1075 | 2017-01-13 Richard Biener <rguenther@suse.de> |
1076 | ||
1077 | * gimple-parser.c (c_parser_gimple_compound_statement): Handle | |
1078 | nops. | |
1079 | ||
ac5f04c1 | 1080 | 2017-01-13 Richard Biener <rguenther@suse.de> |
1081 | ||
1082 | * gimple-parser.c (c_parser_gimple_postfix_expression): Parse | |
1083 | _Literal ( type-name ) number. | |
1084 | ||
2b11c996 | 1085 | 2017-01-12 Richard Biener <rguenther@suse.de> |
1086 | ||
1087 | * gimple-parser.c (c_parser_gimple_postfix_expression): Parse | |
1088 | __MEM. | |
1089 | ||
9a26d403 | 1090 | 2017-01-11 Jakub Jelinek <jakub@redhat.com> |
1091 | ||
1092 | PR c++/72813 | |
1093 | * c-decl.c (pop_file_scope): Set flag_syntax_only to 1 after writing | |
1094 | PCH file. | |
1095 | ||
a19c4dc1 | 1096 | 2017-01-11 Richard Biener <rguenther@suse.de> |
1097 | ||
1098 | PR bootstrap/79052 | |
1099 | * gimple-parser.c (c_parser_gimple_switch_stmt): Add missing | |
1100 | returns on parse errors. | |
1101 | ||
6124217c | 1102 | 2017-01-04 Marek Polacek <polacek@redhat.com> |
1103 | ||
1104 | PR c++/64767 | |
1105 | * c-parser.c (c_parser_postfix_expression): Mark zero character | |
1106 | constants by setting original_type in c_expr. | |
1107 | * c-typeck.c (parser_build_binary_op): Warn when a pointer is compared | |
1108 | with a zero character constant. | |
1109 | (char_type_p): New function. | |
1110 | ||
8ccda24a | 1111 | 2017-01-04 David Malcolm <dmalcolm@redhat.com> |
1112 | ||
1113 | * c-parser.c (c_parser_declaration_or_fndef): Create a | |
1114 | rich_location at init_loc and parse it to start_init. | |
1115 | (last_init_list_comma): New global. | |
1116 | (c_parser_braced_init): Update last_init_list_comma when parsing | |
1117 | commas. Pass it to pop_init_level. Pass location of closing | |
1118 | brace to pop_init_level. | |
1119 | (c_parser_postfix_expression_after_paren_type): Create a | |
1120 | rich_location at type_loc and parse it to start_init. | |
1121 | (c_parser_omp_declare_reduction): Likewise for loc. | |
1122 | * c-tree.h (start_init): Add rich_location * param. | |
1123 | (pop_init_level): Add location_t param. | |
1124 | * c-typeck.c (struct initializer_stack): Add field | |
1125 | "missing_brace_richloc". | |
1126 | (start_init): Add richloc param, use it to initialize | |
1127 | the stack node's missing_brace_richloc. | |
1128 | (last_init_list_comma): New decl. | |
1129 | (finish_implicit_inits): Pass last_init_list_comma to | |
1130 | pop_init_level. | |
1131 | (push_init_level): When finding missing open braces, add fix-it | |
1132 | hints to the richloc. | |
1133 | (pop_init_level): Add "insert_before" param and pass it | |
1134 | when calling pop_init_level. Add fixits about missing | |
1135 | close braces to any richloc. Use the richloc for the | |
1136 | -Wmissing-braces warning. | |
1137 | (set_designator): Pass last_init_list_comma to pop_init_level. | |
1138 | (process_init_element): Likewise. | |
1139 | ||
aad93da1 | 1140 | 2017-01-01 Jakub Jelinek <jakub@redhat.com> |
1141 | ||
1142 | Update copyright years. | |
1143 | ||
3713d2e2 | 1144 | 2016-12-21 Jakub Jelinek <jakub@redhat.com> |
1145 | ||
184fac50 | 1146 | PR bootstrap/78817 |
1147 | * c-typeck.c (build_function_call_vec): If check_function_arguments | |
1148 | returns true, set TREE_NO_WARNING on CALL_EXPR. | |
1149 | ||
3713d2e2 | 1150 | PR c/77767 |
1151 | * c-decl.c (grokdeclarator): If *expr is non-NULL, append expression | |
1152 | to *expr instead of overwriting it. | |
1153 | ||
3e677d45 | 1154 | 2016-12-20 Richard Biener <rguenther@suse.de> |
1155 | ||
1156 | * gimple-parser.c (c_parser_gimple_compound_statement): Improve | |
1157 | error recovery. | |
1158 | (c_parser_gimple_statement): Only build assigns for non-error | |
1159 | stmts. | |
1160 | (c_parser_gimple_postfix_expression_after): Improve error recovery. | |
1161 | ||
4954efd4 | 1162 | 2016-12-14 Martin Jambor <mjambor@suse.cz> |
1163 | ||
1164 | * c-parser.c: Include omp-general.h and omp-offload.h instead of | |
1165 | omp-low.h. | |
1166 | (c_finish_oacc_routine): Adjusted call to | |
1167 | get_oacc_fn_attrib, build_oacc_routine_dims and replace_oacc_fn_attrib | |
1168 | to use their new names. | |
1169 | (c_parser_oacc_enter_exit_data): Adjusted call to find_omp_clause to | |
1170 | use its new name. | |
1171 | (c_parser_oacc_update): Likewise. | |
1172 | (c_parser_omp_simd): Likewise. | |
1173 | (c_parser_omp_target_update): Likewise. | |
1174 | * c-typeck.c: Include omp-general.h instead of omp-low.h. | |
1175 | (c_finish_omp_cancel): Adjusted call to find_omp_clause to use its new | |
1176 | name. | |
1177 | (c_finish_omp_cancellation_point): Likewise. | |
1178 | * gimple-parser.c: Do not include omp-low.h | |
1179 | ||
4c50b884 | 1180 | 2016-12-02 Cesar Philippidis <cesar@codesourcery.com> |
1181 | James Norris <jnorris@codesourcery.com> | |
1182 | ||
1183 | * c-parser.c (c_parser_pragma): Error when PRAGMA_OACC_{ENTER_DATA, | |
1184 | EXIT_DATA,WAIT} are not used in compound statements. | |
1185 | (c_parser_oacc_enter_exit_data): Update diagnostics. | |
1186 | ||
f1b3e1c9 | 1187 | 2016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de> |
1188 | ||
1189 | PR c++/71973 | |
1190 | * c-decl.c (diagnose_mismatched_decls): Use | |
1191 | OPT_Wbuiltin_declaration_mismatch here too. | |
1192 | ||
adc78298 | 1193 | 2016-11-18 Richard Sandiford <richard.sandiford@arm.com> |
f1b3e1c9 | 1194 | Alan Hayward <alan.hayward@arm.com> |
1195 | David Sherwood <david.sherwood@arm.com> | |
adc78298 | 1196 | |
1197 | * c-decl.c (merge_decls): Use SET_DECL_MODE. | |
1198 | (make_label, finish_struct): Likewise. | |
1199 | ||
b1f04d34 | 1200 | 2016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com> |
a49621cf | 1201 | Richard Biener <rguenther@suse.de> |
9b8f3aa1 | 1202 | |
a49621cf | 1203 | * Make-lang.in (C_AND_OBJC_OBJS): Add gimple-parser.o. |
1204 | * config-lang.in (gtfiles): Add c/c-parser.h. | |
1205 | * c-tree.h (enum c_declspec_word): Add cdw_gimple. | |
1206 | (struct c_declspecs): Add gimple_pass member and gimple_p flag. | |
1207 | * c-parser.c (enum c_id_kind, struct c_token, | |
1208 | c_parser_next_token_is, c_parser_next_token_is_not, | |
1209 | c_parser_next_token_is_keyword, | |
1210 | enum c_lookahead_kind, enum c_dtr_syn, enum c_parser_prec): | |
1211 | Split out to ... | |
1212 | * c-parser.h: ... new header. | |
1213 | * c-parser.c: Include c-parser.h and gimple-parser.h. | |
b1f04d34 | 1214 | (c_parser_peek_token, c_parser_peek_2nd_token, |
a49621cf | 1215 | c_token_starts_typename, c_parser_next_token_starts_declspecs, |
1216 | c_parser_next_tokens_start_declaration, c_parser_consume_token, | |
1217 | c_parser_error, c_parser_require, c_parser_skip_until_found, | |
1218 | c_parser_declspecs, c_parser_declarator, c_parser_peek_nth_token, | |
1219 | c_parser_type_name): Export. | |
1220 | (c_parser_tokens_buf): New function. | |
1221 | (c_parser_error): Likewise. | |
1222 | (c_parser_set_error): Likewise. | |
1223 | (c_parser_declspecs): Handle RID_GIMPLE. | |
b1f04d34 | 1224 | (c_parser_declaration_or_fndef): Parse __GIMPLE marked body |
1225 | via c_parser_parse_gimple_body. | |
a49621cf | 1226 | * c-parser.h (c_parser_peek_token, c_parser_peek_2nd_token, |
1227 | c_token_starts_typename, c_parser_next_token_starts_declspecs, | |
1228 | c_parser_next_tokens_start_declaration, c_parser_consume_token, | |
1229 | c_parser_error, c_parser_require, c_parser_skip_until_found, | |
1230 | c_parser_declspecs, c_parser_declarator, c_parser_peek_nth_token, | |
1231 | c_parser_type_name): Declare. | |
b1f04d34 | 1232 | (struct c_parser): Declare forward. |
1233 | (c_parser_tokens_buf): Declare. | |
a49621cf | 1234 | (c_parser_error): Likewise. |
1235 | (c_parser_set_error): Likewise. | |
1236 | * gimple-parser.c: New file. | |
1237 | * gimple-parser.h: Likewise. | |
b1f04d34 | 1238 | |
9b8f3aa1 | 1239 | 2016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
1240 | ||
1241 | PR c/35503 | |
1242 | * c-parser.c (c_parser_postfix_expression_after_primary): Call | |
1243 | warn_for_restrict. | |
1244 | ||
50d3ad71 | 1245 | 2016-09-11 Le-Chun Wu <lcwu@google.com> |
1246 | Mark Wielaard <mjw@redhat.com> | |
1247 | ||
1248 | * c-decl.c (warn_if_shadowing): Use the warning code corresponding | |
1249 | to the given -Wshadow= variant. | |
1250 | ||
ad7b10a2 | 1251 | 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com> |
1252 | ||
1253 | * c-typeck.c: Include memmodel.h. | |
1254 | ||
8a23256f | 1255 | 2016-10-13 Jakub Jelinek <jakub@redhat.com> |
1256 | ||
1257 | PR target/77957 | |
1258 | * c-objc-common.h (LANG_HOOKS_GETDECLS): Use hook_tree_void_null | |
1259 | instead of lhd_return_null_tree_v. | |
1260 | ||
30ac4925 | 1261 | 2016-10-07 Bernd Schmidt <bschmidt@redhat.com> |
1262 | ||
1263 | PR c++/69733 | |
1264 | * c-decl.c (smallest_type_quals_location): New static function. | |
1265 | (grokdeclarator): Try to find the correct location for an ignored | |
1266 | qualifier. | |
1267 | ||
3c77f69c | 1268 | 2016-09-26 Marek Polacek <polacek@redhat.com> |
1269 | ||
1270 | PR c/7652 | |
1271 | * c-decl.c (pop_scope): Add gcc_fallthrough. | |
1272 | ||
1273 | 2016-09-26 Marek Polacek <polacek@redhat.com> | |
1274 | ||
1275 | PR c/7652 | |
1276 | * c-parser.c (struct c_token): Add flags field. | |
1277 | (c_lex_one_token): Pass it to c_lex_with_flags. | |
1278 | (c_parser_declaration_or_fndef): Turn __attribute__((fallthrough)); | |
1279 | into IFN_FALLTHROUGH. | |
1280 | (c_parser_label): Set FALLTHROUGH_LABEL_P on labels. Handle | |
1281 | attribute fallthrough after a case label or default label. | |
1282 | (c_parser_statement_after_labels): Handle RID_ATTRIBUTE. | |
1283 | ||
481ce481 | 1284 | 2016-09-24 Marek Polacek <polacek@redhat.com> |
1285 | ||
1286 | PR c/77490 | |
1287 | * c-typeck.c (build_unary_op): Warn about bit not on expressions that | |
1288 | have boolean value. Warn about ++/-- on booleans. | |
1289 | ||
16fb756f | 1290 | 2016-09-23 Jakub Jelinek <jakub@redhat.com> |
1291 | ||
1292 | * c-parser.c (incomplete_record_decls): Remove unnecessary | |
1293 | = vNULL initialization of file scope vec. | |
1294 | ||
d80c1c6c | 1295 | 2016-09-16 Marek Polacek <polacek@redhat.com> |
1296 | ||
1297 | * c-typeck.c (lvalue_p): Use true and false instead of 1 and 0. | |
1298 | ||
b99cc6da | 1299 | 2016-09-14 Marek Polacek <polacek@redhat.com> |
1300 | ||
1301 | * c-array-notation.c (create_cmp_incr): Use false instead of 0. | |
1302 | (fix_array_notation_expr): Likewise. | |
1303 | * c-decl.c (finish_decl): Likewise. | |
1304 | * c-parser.c (c_parser_postfix_expression_after_primary): Likewise. | |
1305 | * c-typeck.c (array_to_pointer_conversion): Use true instead of 1. | |
1306 | (function_to_pointer_conversion): Use false instead of 0. | |
1307 | (convert_lvalue_to_rvalue): Likewise. | |
1308 | (parser_build_unary_op): Likewise. | |
1309 | (build_atomic_assign): Likewise. | |
1310 | (build_unary_op): Change nonconvert parameter type to bool, use | |
1311 | true/false instead of 1/0. | |
1312 | (build_binary_op): Use true instead of 1. | |
1313 | ||
68ef907c | 1314 | 2016-09-13 David Malcolm <dmalcolm@redhat.com> |
1315 | ||
1316 | * c-parser.c (c_parser_declaration_or_fndef): Update for renaming | |
1317 | of add_fixit_insert to add_fixit_insert_before. | |
1318 | ||
89bcb5a3 | 1319 | 2016-09-13 Marek Polacek <polacek@redhat.com> |
1320 | ||
1321 | * c-typeck.c (build_unary_op): Rename FLAG parameter to NOCONVERT. Use | |
1322 | it. | |
1323 | ||
7a21b590 | 1324 | 2016-09-12 Bernd Edlinger <bernd.edlinger@hotmail.de> |
1325 | ||
1326 | PR c++/77496 | |
1327 | * c-parser.c (c_parser_conditional_expression): Pass the rightmost | |
1328 | COMPOUND_EXPR to warn_for_omitted_condop. | |
1329 | ||
3da97ff7 | 1330 | 2016-09-07 David Malcolm <dmalcolm@redhat.com> |
1331 | ||
1332 | * c-lang.c (LANG_HOOKS_GET_SUBSTRING_LOCATION): Use | |
1333 | c_get_substring_location for this new langhook. | |
1334 | ||
0b80c4b2 | 1335 | 2016-09-02 Jakub Jelinek <jakub@redhat.com> |
1336 | ||
1337 | PR c/65467 | |
1338 | * c-parser.c (c_parser_declspecs): Don't sorry about _Atomic if | |
1339 | flag_openmp. | |
1340 | (c_parser_omp_variable_list): Use convert_lvalue_to_rvalue | |
1341 | instead of mark_exp_read on low_bound/length expression. | |
1342 | (c_parser_omp_clause_num_gangs, c_parser_omp_clause_num_threads, | |
1343 | c_parser_omp_clause_num_tasks, c_parser_omp_clause_grainsize, | |
1344 | c_parser_omp_clause_priority, c_parser_omp_clause_hint, | |
1345 | c_parser_omp_clause_num_workers, c_parser_oacc_shape_clause, | |
1346 | c_parser_oacc_clause_tile, c_parser_omp_clause_schedule, | |
1347 | c_parser_omp_clause_vector_length, c_parser_omp_clause_num_teams, | |
1348 | c_parser_omp_clause_thread_limit, c_parser_omp_clause_aligned, | |
1349 | c_parser_omp_clause_linear, c_parser_omp_clause_safelen, | |
1350 | c_parser_omp_clause_simdlen, c_parser_omp_clause_device, | |
1351 | c_parser_omp_clause_dist_schedule): Use convert_lvalue_to_rvalue | |
1352 | instead of mark_expr_read. | |
1353 | (c_parser_omp_declare_reduction): Reject _Atomic qualified types. | |
1354 | * c-objc-common.h (LANG_HOOKS_OMP_CLAUSE_COPY_CTOR, | |
1355 | LANG_HOOKS_OMP_CLAUSE_ASSIGN_OP): Redefine. | |
1356 | * c-tree.h (c_omp_clause_copy_ctor): New prototype. | |
1357 | * c-typeck.c (handle_omp_array_sections_1): Diagnose _Atomic qualified | |
1358 | array section bases outside of depend clause, for depend clause | |
1359 | use convert_lvalue_to_rvalue on the base. | |
1360 | (c_finish_omp_clauses): Reject _Atomic qualified vars in reduction, | |
1361 | linear, aligned, map, to and from clauses. | |
1362 | (c_omp_clause_copy_ctor): New function. | |
1363 | ||
c7afb782 | 1364 | 2016-09-01 Marek Polacek <polacek@redhat.com> |
1365 | ||
1366 | PR c/7652 | |
1367 | * c-typeck.c (composite_type): Add FALLTHRU comment. | |
1368 | ||
986530da | 1369 | 2016-08-31 David Malcolm <dmalcolm@redhat.com> |
1370 | ||
1371 | * c-parser.c (c_parser_declaration_or_fndef): Add trailing space | |
1372 | to the insertion fixits for "struct", "union", and "enum". | |
1373 | ||
850c2009 | 1374 | 2016-08-30 David Malcolm <dmalcolm@redhat.com> |
1375 | ||
1376 | * c-decl.c (implicit_decl_warning): Use add_fixit_replace | |
1377 | rather than add_fixit_misspelled_id. | |
1378 | (undeclared_variable): Likewise. | |
1379 | * c-parser.c (c_parser_declaration_or_fndef): Likewise. Remove | |
1380 | now-redundant "here" params from add_fixit_insert method calls. | |
1381 | (c_parser_parameter_declaration): Likewise. | |
1382 | * c-typeck.c (build_component_ref): Remove now-redundant range | |
1383 | param from add_fixit_replace method calls. | |
1384 | ||
c4963714 | 1385 | 2016-08-25 Marek Polacek <polacek@redhat.com> |
1386 | ||
1387 | * c-typeck.c (parser_build_binary_op): Pass LHS to | |
1388 | warn_logical_not_parentheses. | |
1389 | ||
49e1f4eb | 1390 | 2016-08-25 Marek Polacek <polacek@redhat.com> |
1391 | ||
1392 | PR c/77323 | |
1393 | * c-decl.c (declspecs_add_type): Set typespec_word even when __intN | |
1394 | or _FloatN or _FloatNx is not supported. | |
1395 | (finish_declspecs): Set type to integer_type_node when _FloatN or | |
1396 | _FloatNx is not supported. | |
1397 | ||
82c85aba | 1398 | 2016-08-19 Joseph Myers <joseph@codesourcery.com> |
1399 | ||
1400 | PR c/32187 | |
1401 | * c-tree.h (cts_floatn_nx): New enum c_typespec_keyword value. | |
1402 | (struct c_declspecs): Add field floatn_nx_idx. | |
1403 | * c-decl.c (declspecs_add_type, finish_declspecs): Handle _FloatN | |
1404 | and _FloatNx type specifiers. | |
1405 | * c-parser.c (c_keyword_starts_typename, c_token_starts_declspecs) | |
1406 | (c_parser_declspecs, c_parser_attribute_any_word) | |
1407 | (c_parser_objc_selector): Use CASE_RID_FLOATN_NX. | |
1408 | * c-typeck.c (c_common_type): Handle _FloatN and _FloatNx types. | |
1409 | (convert_arguments): Avoid promoting _FloatN and _FloatNx types | |
1410 | narrower than double. | |
1411 | ||
7175bb2a | 1412 | 2016-08-12 Jakub Jelinek <jakub@redhat.com> |
1413 | Martin Liska <mliska@suse.cz> | |
1414 | ||
1415 | PR c/67410 | |
1416 | * c-typeck.c (set_nonincremental_init_from_string): Use / instead of | |
1417 | % to determine val element to change. Assert that | |
1418 | wchar_bytes * charwidth fits into val array. | |
1419 | ||
e3533433 | 1420 | 2016-08-12 Marek Polacek <polacek@redhat.com> |
1421 | ||
1422 | PR c/7652 | |
1423 | * c-parser.c (c_parser_external_declaration): Add FALLTHRU. | |
1424 | (c_parser_postfix_expression): Likewise. | |
1425 | * c-typeck.c (build_unary_op): Adjust fall through comment. | |
1426 | (c_mark_addressable): Likewise. | |
1427 | ||
74be5bc1 | 1428 | 2016-08-11 Jakub Jelinek <jakub@redhat.com> |
1429 | ||
1430 | PR c/72816 | |
1431 | * c-decl.c (grokdeclarator): When adding TYPE_DOMAIN for flexible | |
1432 | array member through typedef, for orig_qual_indirect == 0 clear | |
1433 | orig_qual_type. | |
1434 | ||
7af4d06b | 1435 | 2016-08-08 David Malcolm <dmalcolm@redhat.com> |
1436 | ||
1437 | PR c/64955 | |
1438 | * c-lang.c (LANG_HOOKS_RUN_LANG_SELFTESTS): If CHECKING_P, wire | |
1439 | this up to selftest::run_c_tests. | |
1440 | (selftest::run_c_tests): New function. | |
1441 | ||
5f429ee2 | 1442 | 2016-08-04 Thomas Schwinge <thomas@codesourcery.com> |
1443 | ||
1fa5d8ba | 1444 | * c-parser.c (struct oacc_routine_data): Add error_seen and |
1445 | fndecl_seen members. | |
1446 | (c_finish_oacc_routine): Use these. | |
1447 | (c_parser_declaration_or_fndef): Adjust. | |
1448 | (c_parser_oacc_routine): Likewise. Support more C language | |
1449 | constructs, and improve diagnostics. Move pragma context | |
1450 | checking... | |
1451 | (c_parser_pragma): ... here. | |
1452 | ||
5f429ee2 | 1453 | * c-parser.c (struct oacc_routine_data): New. |
1454 | (c_parser_declaration_or_fndef, c_parser_oacc_routine): Use it. | |
1455 | Simplify code. | |
1456 | (c_finish_oacc_routine): Likewise. Don't attach clauses to "omp | |
1457 | declare target" attribute. | |
1458 | ||
f3c032a4 | 1459 | 2016-08-01 Jan Beulich <jbeulich@suse.com> |
1460 | ||
1461 | * c-fold.c (c_fully_fold_internal): Also emit shift count | |
1462 | warnings for vector types. | |
1463 | * c-typeck.c (build_binary_op): Likewise. | |
1464 | ||
4ebf85be | 1465 | 2016-07-29 Marek Polacek <polacek@redhat.com> |
1466 | ||
1467 | PR c/71742 | |
1468 | * c-decl.c (finish_struct): Rephrase an error message. | |
1469 | ||
9efe5be6 | 1470 | PR c/71853 |
1471 | * c-parser.c (c_parser_switch_statement): Initialize ce.original_type | |
1472 | to error node for invalid code. | |
1473 | ||
4c4548bb | 1474 | PR c/71573 |
1475 | * c-decl.c (implicitly_declare): Return decl early not only for | |
1476 | error_mark_nodes, but for anything that is not a FUNCTION_DECL. | |
1477 | ||
322d4184 | 1478 | 2016-07-29 Jakub Jelinek <jakub@redhat.com> |
1479 | ||
1480 | PR c/71969 | |
1481 | * c-decl.c (finish_function): Only set DECL_DISREGARD_INLINE_LIMITS | |
1482 | on GNU extern inline functions. | |
1483 | ||
35fddbd6 | 1484 | 2016-07-29 Marek Polacek <polacek@redhat.com> |
1485 | ||
1486 | PR c/71583 | |
1487 | * c-parser.c (c_parser_postfix_expression_after_paren_type): Also | |
1488 | check expr.value. | |
1489 | ||
59c1507a | 1490 | 2016-07-22 Uros Bizjak <ubizjak@gmail.com> |
1491 | ||
1492 | * c-typeck.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1, | |
1493 | ||
d0f11d68 | 1494 | 2016-07-20 David Malcolm <dmalcolm@redhat.com> |
1495 | ||
1496 | * c-decl.c (struct edit_distance_traits<cpp_hashnode *>): Move to | |
1497 | spellcheck-tree.h | |
1498 | (best_macro_match): Likewise, converting from a typedef to a | |
1499 | subclass. | |
1500 | (find_closest_macro_cpp_cb): Move to spellcheck-tree.c. | |
1501 | (lookup_name_fuzzy): Update for change of best_macro_match to a | |
1502 | subclass with a ctor that calls cpp_forall_identifiers. | |
1503 | ||
d208f6e6 | 1504 | 2016-07-20 David Malcolm <dmalcolm@redhat.com> |
1505 | ||
1506 | * c-decl.c (implicit_decl_warning): Update for conversion of | |
1507 | return type of lookup_name_fuzzy to const char *. | |
1508 | (undeclared_variable): Likewise. | |
1509 | (lookup_name_fuzzy): Convert return type from tree to | |
1510 | const char *. | |
1511 | * c-parser.c (c_parser_declaration_or_fndef): Update for | |
1512 | conversion of return type of lookup_name_fuzzy to const char *. | |
1513 | (c_parser_parameter_declaration): Likewise. | |
1514 | ||
0ef9358d | 1515 | 2016-07-15 Cesar Philippidis <cesar@codesourcery.com> |
1516 | ||
1517 | * c-parser.c (c_parser_oacc_declare): Don't scan for | |
1518 | GOMP_MAP_POINTER. | |
1519 | * c-typeck.c (handle_omp_array_sections): Mark data clauses with | |
1520 | GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having | |
1521 | zero-length subarrays. | |
1522 | ||
0dd7db3b | 1523 | 2016-07-15 Jakub Jelinek <jakub@redhat.com> |
1524 | ||
1525 | PR c/71858 | |
1526 | * c-decl.c (implicit_decl_warning): Use FUZZY_LOOKUP_FUNCTION_NAME | |
1527 | instead of FUZZY_LOOKUP_NAME. | |
1528 | (lookup_name_fuzzy): For FUZZY_LOOKUP_FUNCTION_NAME consider | |
1529 | FUNCTION_DECLs, {VAR,PARM}_DECLs function pointers and macros. | |
1530 | ||
28413b15 | 1531 | 2016-07-14 Jakub Jelinek <jakub@redhat.com> |
1532 | ||
1533 | PR c/71858 | |
1534 | * c-decl.c (lookup_name_fuzzy): Ignore binding->invisible. | |
1535 | ||
e9258aee | 1536 | 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> |
1537 | ||
1538 | * c-parser.c (c_parser_generic_selection): Make type of variable | |
1539 | auto_vec. | |
1540 | (c_parser_omp_declare_simd): Likewise. | |
1541 | ||
57f91a55 | 1542 | 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> |
1543 | ||
1544 | * c-decl.c (struct c_struct_parse_info): Change member types | |
1545 | from vec to auto_vec. | |
1546 | (start_struct): Adjust. | |
1547 | (finish_struct): Likewise. | |
1548 | ||
c364d0f3 | 1549 | 2016-07-02 Jakub Jelinek <jakub@redhat.com> |
1550 | ||
1551 | PR c/71719 | |
1552 | * c-typeck.c (mark_exp_read): Handle VIEW_CONVERT_EXPR. | |
1553 | ||
44e775d8 | 1554 | 2016-06-29 Thomas Schwinge <thomas@codesourcery.com> |
1555 | ||
1556 | * c-parser.c (c_parser_pragma) <PRAGMA_OMP_CANCELLATION_POINT>: | |
1557 | Move pragma context checking into... | |
1558 | (c_parser_omp_cancellation_point): ... here, and improve | |
1559 | diagnostic messages. | |
1560 | * c-typeck.c (c_finish_omp_cancel) | |
1561 | (c_finish_omp_cancellation_point): Improve diagnostic messages. | |
1562 | ||
1af10ce6 | 1563 | 2016-06-29 Jakub Jelinek <jakub@redhat.com> |
1564 | ||
1565 | PR c/71685 | |
1566 | * c-typeck.c (c_build_qualified_type): Don't clear | |
1567 | C_TYPE_INCOMPLETE_VARS for the main variant. | |
1568 | ||
1569 | 2016-06-28 Martin Sebor <msebor@redhat.com> | |
9c3ffbcb | 1570 | |
1571 | PR c/71552 | |
1572 | * c-typeck.c (output_init_element): Diagnose incompatible types | |
1573 | before non-constant initializers. | |
1574 | ||
6eb2402f | 1575 | 2016-06-28 Jakub Jelinek <jakub@redhat.com> |
1576 | ||
1577 | * Make-lang.in: Don't cat ../stage_current if it does not exist. | |
1578 | ||
b4c71cbb | 1579 | 2016-06-23 Andi Kleen <ak@linux.intel.com> |
1580 | ||
1581 | * Make-lang.in: Add support for autofdo. | |
1582 | ||
8469aece | 1583 | 2016-06-22 David Malcolm <dmalcolm@redhat.com> |
1584 | ||
1585 | PR c/70339 | |
1586 | * c-decl.c: Include spellcheck-tree.h and gcc-rich-location.h. | |
1587 | (implicit_decl_warning): When issuing warnings for implicit | |
1588 | declarations, attempt to provide a suggestion via | |
1589 | lookup_name_fuzzy. | |
1590 | (undeclared_variable): Likewise when issuing errors. | |
1591 | (lookup_name_in_scope): Likewise. | |
1592 | (struct edit_distance_traits<cpp_hashnode *>): New struct. | |
1593 | (best_macro_match): New typedef. | |
1594 | (find_closest_macro_cpp_cb): New function. | |
1595 | (lookup_name_fuzzy): New function. | |
1596 | * c-parser.c: Include gcc-rich-location.h. | |
1597 | (c_token_starts_typename): Split out case CPP_KEYWORD into... | |
1598 | (c_keyword_starts_typename): ...this new function. | |
1599 | (c_parser_declaration_or_fndef): When issuing errors about | |
1600 | missing "struct" etc, add a fixit. For other kinds of errors, | |
1601 | attempt to provide a suggestion via lookup_name_fuzzy. | |
1602 | (c_parser_parms_declarator): When looking ahead to detect typos in | |
1603 | type names, also reject CPP_KEYWORD. | |
1604 | (c_parser_parameter_declaration): When issuing errors about | |
1605 | unknown type names, attempt to provide a suggestion via | |
1606 | lookup_name_fuzzy. | |
1607 | * c-tree.h (c_keyword_starts_typename): New prototype. | |
1608 | ||
e218d07f | 1609 | 2016-06-20 Joseph Myers <joseph@codesourcery.com> |
1610 | ||
1611 | PR c/71601 | |
1612 | * c-typeck.c (build_conditional_expr): Return error_mark_node if | |
1613 | c_common_type returns error_mark_node. | |
1614 | ||
92a44a68 | 1615 | 2016-06-19 Martin Sebor <msebor@redhat.com> |
21897f47 | 1616 | |
1617 | PR c/69507 | |
1618 | * c-parser.c (c_parser_alignof_expression): Avoid diagnosing | |
1619 | __alignof__ (expression). | |
1620 | ||
f0d77991 | 1621 | 2016-06-14 David Malcolm <dmalcolm@redhat.com> |
1622 | ||
1623 | * c-typeck.c: Include spellcheck-tree.h rather than spellcheck.h. | |
1624 | ||
2a990300 | 1625 | 2016-06-14 David Malcolm <dmalcolm@redhat.com> |
1626 | ||
1627 | * c-typeck.c (build_component_ref): Simplify fixit code by | |
1628 | using gcc_rich_location::add_fixit_misspelled_id. | |
1629 | (set_init_label): Likewise. | |
1630 | ||
527790c1 | 1631 | 2016-06-13 David Malcolm <dmalcolm@redhat.com> |
1632 | ||
1633 | * c-parser.c (c_parser_initelt): Provide location of name for new | |
1634 | location_t param of set_init_label. | |
1635 | * c-tree.h (set_init_label): Add location_t param. | |
1636 | * c-typeck.c (set_init_index): Add "fieldname_loc" location_t | |
1637 | param and use it when issuing error messages about unrecognized | |
1638 | field names. Attempt to provide a fixit hint if appropriate, | |
1639 | otherwise update the error message to provide the type name. | |
1640 | ||
ccfa030f | 1641 | 2016-06-10 Thomas Schwinge <thomas@codesourcery.com> |
1642 | ||
1643 | PR c/71381 | |
1644 | * c-parser.c (c_parser_omp_variable_list) <OMP_CLAUSE__CACHE_>: | |
1645 | Loosen checking. | |
1646 | ||
732905bb | 1647 | 2016-06-08 Martin Sebor <msebor@redhat.com> |
1648 | Jakub Jelinek <jakub@redhat.com> | |
1649 | ||
1650 | PR c++/70507 | |
1651 | PR c/68120 | |
1652 | * c-typeck.c (convert_arguments): Don't promote last argument | |
1653 | of BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P. | |
1654 | ||
bafc7b1d | 1655 | 2016-06-08 Marek Polacek <polacek@redhat.com> |
1656 | ||
1657 | PR c/71418 | |
1658 | * c-decl.c (grokdeclarator): Check TYPE_P. | |
1659 | ||
06e590e7 | 1660 | PR c/71426 |
1661 | * c-decl.c (get_parm_info): Don't crash on an assert on invalid | |
1662 | code. | |
1663 | ||
7cfde92a | 1664 | 2016-06-07 David Malcolm <dmalcolm@redhat.com> |
1665 | ||
1666 | * c-parser.c (c_parser_postfix_expression): In __builtin_offsetof | |
1667 | and structure element reference, capture the location of the | |
1668 | element name token and pass it to build_component_ref. | |
1669 | (c_parser_postfix_expression_after_primary): Likewise for | |
1670 | structure element dereference. | |
1671 | (c_parser_omp_variable_list): Likewise for | |
1672 | OMP_CLAUSE_{_CACHE, MAP, FROM, TO}, | |
1673 | * c-tree.h (build_component_ref): Add location_t param. | |
1674 | * c-typeck.c (build_component_ref): Add location_t param | |
1675 | COMPONENT_LOC. Use it, if available, when issuing hints about | |
1676 | mispelled member names to provide a fixit replacement hint. | |
1677 | ||
61f1f80c | 1678 | 2016-06-06 Marek Polacek <polacek@redhat.com> |
1679 | ||
1680 | PR c/71362 | |
1681 | * c-parser.c (c_parser_direct_declarator): Set location. | |
1682 | ||
e4b92538 | 1683 | 2016-06-06 Marek Polacek <polacek@redhat.com> |
1684 | ||
1685 | * c-typeck.c (comptypes_internal): Handle comparisons of | |
1686 | INTEGER_TYPE, FIXED_POINT_TYPE, and REAL_TYPE nodes. Don't check | |
1687 | TYPE_REF_CAN_ALIAS_ALL. | |
1688 | ||
2234363c | 1689 | 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com> |
1690 | ||
1691 | * c-typeck.c (c_finish_omp_clauses): Mark OpenACC reduction | |
1692 | arguments as addressable when async clause exists. | |
1693 | ||
b6431756 | 1694 | 2016-05-30 Jakub Jelinek <jakub@redhat.com> |
1695 | ||
1696 | PR c++/71349 | |
1697 | * c-parser.c (c_parser_omp_for): Don't disallow nowait clause | |
1698 | when combined with target construct. | |
1699 | ||
6feab9ce | 1700 | 2016-05-26 Jakub Jelinek <jakub@redhat.com> |
1701 | ||
1702 | * c-parser.c (c_parser_omp_clause_schedule): Warn if | |
1703 | OMP_CLAUSE_SCHEDULE_CHUNK_EXPR is known not to be positive. | |
1704 | ||
2c995da9 | 1705 | 2016-05-25 Marek Polacek <polacek@redhat.com> |
1706 | ||
1707 | PR c/71265 | |
1708 | * c-decl.c (c_make_fname_decl): Don't check seen_error. | |
1709 | ||
abfbb5b5 | 1710 | PR c/71266 |
1711 | * c-decl.c (store_parm_decls_oldstyle): Skip non-PARM_DECLs. | |
1712 | ||
6d6a3fc3 | 1713 | 2016-05-24 Cesar Philippidis <cesar@codesourcery.com> |
1714 | ||
1715 | * c-parser.c (c_parser_oacc_declare): Add support for | |
1716 | GOMP_MAP_FIRSTPRIVATE_POINTER. | |
1717 | * c-typeck.c (handle_omp_array_sections_1): Replace bool is_omp | |
1718 | argument with enum c_omp_region_type ort. | |
1719 | (handle_omp_array_sections): Likewise. Update call to | |
1720 | handle_omp_array_sections_1. | |
1721 | (c_finish_omp_clauses): Add specific errors and warning messages for | |
1722 | OpenACC. Use firsrtprivate pointers for OpenACC subarrays. Update | |
1723 | call to handle_omp_array_sections. | |
1724 | ||
c9d624bd | 1725 | 2016-05-24 Thomas Schwinge <thomas@codesourcery.com> |
1726 | ||
1727 | * c-parser.c (c_parser_oacc_routine): Tighten syntax checks. | |
1728 | ||
7345b977 | 1729 | 2016-05-24 Richard Biener <rguenther@suse.de> |
1730 | ||
1731 | PR middle-end/70434 | |
1732 | PR c/69504 | |
1733 | * c-typeck.c (build_array_ref): Do not complain about indexing | |
1734 | non-lvalue vectors. Adjust for function name change. | |
1735 | ||
8bdfbc08 | 1736 | 2016-05-20 Martin Sebor <msebor@redhat.com> |
1737 | ||
1738 | PR c/71115 | |
1739 | * c-typeck.c (error_init): Use | |
1740 | expansion_point_location_if_in_system_header. | |
1741 | (warning_init): Same. | |
1742 | ||
97c71d71 | 1743 | 2016-05-19 David Malcolm <dmalcolm@redhat.com> |
1744 | ||
1745 | PR c/71171 | |
1746 | * c-parser.c (c_parser_generic_selection): Use c_expr::set_error | |
1747 | in error-handling. | |
1748 | (c_parser_postfix_expression): Likewise. | |
1749 | * c-tree.h (c_expr::set_error): New method. | |
1750 | * c-typeck.c (parser_build_binary_op): In error-handling, ensure | |
1751 | that result's range is initialized. | |
1752 | ||
e68d7b49 | 1753 | 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com> |
1754 | ||
1755 | * c-typeck.c (parser_build_unary_op): Fix formatting. | |
1756 | ||
624115b4 | 1757 | 2016-05-16 Matthew Wahab <matthew.wahab@arm.com> |
1758 | ||
1759 | * c-decl.c (grokdeclarator): Remove errmsg and use of | |
1760 | targetm.invalid_return_type. | |
1761 | (grokparms): Remove errmsg and use of | |
1762 | targetm.invalid_parameter_type. | |
1763 | ||
90c88567 | 1764 | 2016-05-13 Joseph Myers <joseph@codesourcery.com> |
1765 | ||
1766 | * c-decl.c (grokdeclarator): For C11, discard qualifiers on | |
1767 | function return type. | |
1768 | ||
22a3f7bd | 1769 | 2016-05-12 Marek Polacek <polacek@redhat.com> |
1770 | ||
1771 | PR c/70756 | |
1772 | * c-decl.c (build_compound_literal): Pass LOC down to | |
1773 | c_incomplete_type_error. | |
1774 | * c-tree.h (require_complete_type): Adjust declaration. | |
1775 | (c_incomplete_type_error): Likewise. | |
1776 | * c-typeck.c (require_complete_type): Add location parameter, pass it | |
1777 | down to c_incomplete_type_error. | |
1778 | (c_incomplete_type_error): Add location parameter, pass it down to | |
1779 | error_at. | |
1780 | (build_component_ref): Pass location down to c_incomplete_type_error. | |
1781 | (default_conversion): Pass location down to require_complete_type. | |
1782 | (build_array_ref): Likewise. | |
1783 | (build_function_call_vec): Likewise. | |
1784 | (convert_arguments): Likewise. | |
1785 | (build_unary_op): Likewise. | |
1786 | (build_c_cast): Likewise. | |
1787 | (build_modify_expr): Likewise. | |
1788 | (convert_for_assignment): Likewise. | |
1789 | (c_finish_omp_clauses): Likewise. | |
1790 | ||
54c4d22e | 1791 | 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com> |
1792 | ||
1793 | PR c/43651 | |
1794 | * c-decl.c (declspecs_add_qual): Warn when -Wduplicate-decl-specifier | |
1795 | is enabled. | |
1796 | * c-errors.c (pedwarn_c90): Return true if warned. | |
1797 | * c-tree.h (pedwarn_c90): Change return type to bool. | |
1798 | (enum c_declspec_word): Add new enumerator cdw_atomic. | |
1799 | ||
7f8012a5 | 1800 | 2016-05-11 Marek Polacek <polacek@redhat.com> |
1801 | ||
1802 | PR c++/71024 | |
1803 | * c-decl.c (diagnose_mismatched_decls): Factor out code to | |
1804 | diagnose_mismatched_attributes and call it. | |
1805 | ||
3fa82609 | 1806 | 2016-05-10 Marek Polacek <polacek@redhat.com> |
1807 | ||
1808 | PR c/70255 | |
1809 | * c-decl.c (diagnose_mismatched_decls): Warn for optimize attribute | |
1810 | on a declaration following the definition. | |
1811 | ||
871164c4 | 1812 | 2016-05-05 Jakub Jelinek <jakub@redhat.com> |
1813 | ||
1814 | * c-parser.c (c_parser_switch_statement): Add IF_P argument, | |
1815 | parse it through to c_parser_c99_block_statement. | |
1816 | (c_parser_statement_after_labels): Adjust c_parser_switch_statement | |
1817 | caller. | |
1818 | ||
1d52c456 | 1819 | 2016-05-04 Marek Polacek <polacek@redhat.com> |
1820 | ||
1821 | * c-parser.c (c_parser_if_statement): Replace OPT_Wparentheses with | |
1822 | OPT_Wdangling_else. | |
1823 | ||
a64030fe | 1824 | 2016-05-04 Marek Polacek <polacek@redhat.com> |
1825 | ||
1826 | PR c/48778 | |
1827 | * c-typeck.c (build_binary_op): Don't issue -Waddress warnings | |
1828 | for macro expansions. | |
1829 | ||
5d4db8ef | 1830 | 2016-05-03 Marek Polacek <polacek@redhat.com> |
1831 | ||
1832 | PR c/70859 | |
1833 | * c-typeck.c (build_function_call_vec): Pass LOC and ARG_LOC down to | |
1834 | check_builtin_function_arguments. | |
1835 | ||
0bd2fc6e | 1836 | 2016-05-03 Richard Biener <rguenther@suse.de> |
1837 | ||
1838 | * Make-lang.in (cc1-checksum.c): For stage-final re-use | |
1839 | the checksum from the previous stage. | |
1840 | ||
b5e88f74 | 1841 | 2016-05-02 Cesar Philippidis <cesar@codesourcery.com> |
1842 | ||
1843 | * c-parser.c (c_parser_oacc_all_clauses): Update call to | |
1844 | c_finish_omp_clauses. | |
1845 | (c_parser_omp_all_clauses): Likewise. | |
1846 | (c_parser_oacc_cache): Likewise. | |
1847 | (c_parser_oacc_loop): Likewise. | |
1848 | (omp_split_clauses): Likewise. | |
1849 | (c_parser_omp_declare_target): Likewise. | |
1850 | (c_parser_cilk_all_clauses): Likewise. | |
1851 | (c_parser_cilk_for): Likewise. | |
1852 | * c-typeck.c (c_finish_omp_clauses): Replace bool arguments | |
1853 | is_omp, declare_simd, and is_cilk with enum c_omp_region_type ort. | |
1854 | ||
dd185f6e | 1855 | 2016-05-02 Marek Polacek <polacek@redhat.com> |
1856 | ||
1857 | PR c/70851 | |
1858 | * c-decl.c (grokdeclarator): Diagnose when array's size has an | |
1859 | incomplete type. | |
1860 | ||
4d0a8bac | 1861 | 2016-04-29 Cesar Philippidis <cesar@codesourcery.com> |
1862 | ||
1863 | PR middle-end/70626 | |
1864 | * c-parser.c (c_parser_oacc_loop): Don't augment mask with | |
1865 | OACC_LOOP_CLAUSE_MASK. | |
1866 | (c_parser_oacc_kernels_parallel): Update call to | |
1867 | c_oacc_split_loop_clauses. | |
1868 | ||
d215eeca | 1869 | 2016-04-28 Andrew MacLeod <amacleod@redhat.com> |
1870 | ||
1871 | * c-array-notation.c (fix_builtin_array_notation_fn): Fix final | |
1872 | argument to build_modify_expr in two cases. | |
1873 | ||
40385231 | 1874 | 2016-04-27 Bernd Schmidt <bschmidt@redhat.com> |
1875 | ||
1876 | * c-parser.c (c_parser_postfix_expression_after_primary): Call | |
1877 | warn_for_memset instead of warning directly here. | |
1878 | ||
fa20ebd3 | 1879 | 2016-04-26 Marek Polacek <polacek@redhat.com> |
1880 | ||
1881 | PR c/67784 | |
1882 | * c-parser.c (c_parser_maybe_reclassify_token): New function factored | |
1883 | out of ... | |
1884 | (c_parser_for_statement): ... here. | |
1885 | (c_parser_if_statement): Use it. | |
1886 | (c_parser_switch_statement): Use it. | |
1887 | (c_parser_while_statement): Use it. | |
1888 | ||
9db47803 | 1889 | PR c/70791 |
1890 | * c-decl.c (pushdecl): Pass LOCUS down to warning. | |
1891 | ||
70574e60 | 1892 | 2016-04-20 Ilya Verbin <ilya.verbin@intel.com> |
1893 | ||
1894 | PR c++/69363 | |
1895 | * c-parser.c (c_parser_cilk_all_clauses): Use c_finish_omp_clauses | |
1896 | instead of c_finish_cilk_clauses. | |
1897 | * c-tree.h (c_finish_omp_clauses): Add new default argument. | |
1898 | * c-typeck.c (c_finish_omp_clauses): Add new argument. Allow | |
1899 | floating-point variables in the linear clause for Cilk Plus. | |
1900 | ||
5d4b30ea | 1901 | 2016-04-18 Michael Matz <matz@suse.de> |
1902 | ||
1903 | * c-decl.c (merge_decls): Use SET_DECL_ALIGN and SET_TYPE_ALIGN. | |
1904 | (grokdeclarator, parser_xref_tag, finish_enum): Use SET_TYPE_ALIGN. | |
1905 | ||
eac243e7 | 1906 | 2016-04-15 Marek Polacek <polacek@redhat.com> |
1907 | ||
1908 | PR c/70671 | |
1909 | * c-typeck.c (build_unary_op): Pass location down to error and | |
1910 | warning call. | |
1911 | ||
b4ba8358 | 1912 | 2016-04-15 Jakub Jelinek <jakub@redhat.com> |
1913 | ||
1914 | PR c/70436 | |
1915 | * c-parser.c (c_parser_pragma): Add IF_P argument, pass it down | |
1916 | where needed. | |
1917 | (c_parser_external_declaration, c_parser_struct_or_union_specifier, | |
1918 | c_parser_parameter_declaration, c_parser_compound_statement_nostart, | |
1919 | c_parser_objc_class_instance_variables, c_parser_objc_methodprotolist): | |
1920 | Adjust c_parser_pragma callers. | |
1921 | (c_parser_statement_after_labels): Likewise. Adjust c_parser_cilk_for | |
1922 | caller. | |
1923 | (c_parser_omp_structured_block): Add IF_P argument, pass it down to | |
1924 | c_parser_statement. | |
1925 | (c_parser_oacc_data, c_parser_oacc_host_data, c_parser_oacc_loop, | |
1926 | c_parser_oacc_kernels_parallel, c_parser_omp_critical, | |
1927 | c_parser_omp_simd, c_parser_omp_for, c_parser_omp_master, | |
1928 | c_parser_omp_ordered, c_parser_omp_parallel, c_parser_omp_single, | |
1929 | c_parser_omp_task, c_parser_omp_taskgroup, c_parser_omp_distribute, | |
1930 | c_parser_omp_teams, c_parser_omp_target_data, c_parser_omp_target, | |
1931 | c_parser_omp_taskloop, c_parser_omp_construct, c_parser_cilk_grainsize, | |
1932 | c_parser_cilk_simd, c_parser_cilk_for): Add IF_P argument, pass it | |
1933 | down where needed. | |
1934 | (c_parser_omp_for_loop): Likewise. Clear IF_P if nbraces. | |
1935 | (c_parser_omp_sections_scope): Adjust c_parser_omp_structured_block | |
1936 | calls. | |
1937 | ||
0241e4dc | 1938 | 2016-04-13 Marek Polacek <polacek@redhat.com> |
1939 | ||
1940 | PR c/70436 | |
1941 | * c-parser.c (c_parser_statement_after_labels): Add IF_P argument and | |
1942 | adjust callers. | |
1943 | (c_parser_statement): Likewise. | |
1944 | (c_parser_c99_block_statement): Likewise. | |
1945 | (c_parser_while_statement): Likewise. | |
1946 | (c_parser_for_statement): Likewise. | |
1947 | (c_parser_if_body): Don't set IF_P here. | |
1948 | (c_parser_if_statement): Add IF_P argument. Set IF_P here. Warn | |
1949 | about dangling else here. | |
1950 | * c-tree.h (c_finish_if_stmt): Adjust declaration. | |
1951 | * c-typeck.c (c_finish_if_stmt): Remove NESTED_IF parameter. Don't | |
1952 | warn about dangling else here. | |
1953 | ||
c4f5465d | 1954 | 2016-04-04 Marek Polacek <polacek@redhat.com> |
1955 | ||
1956 | PR c/70307 | |
1957 | * c-fold.c (c_fully_fold_internal): Handle VEC_COND_EXPR. | |
1958 | ||
7952b661 | 1959 | 2016-03-31 Marek Polacek <polacek@redhat.com> |
1960 | ||
1961 | PR c/70297 | |
1962 | * c-decl.c (merge_decls): Also set TYPE_ALIGN and TYPE_USER_ALIGN. | |
1963 | ||
5539bc70 | 1964 | 2016-03-18 David Malcolm <dmalcolm@redhat.com> |
1965 | ||
1966 | PR c/70281 | |
1967 | * c-parser.c (c_parser_postfix_expression): Set the source range | |
1968 | for uses of "__builtin_types_compatible_p". | |
1969 | ||
29a514fa | 1970 | 2016-03-17 Jakub Jelinek <jakub@redhat.com> |
1971 | ||
1972 | PR c/70280 | |
1973 | * c-typeck.c (composite_type): Don't count void_list_node | |
1974 | into len, if the list is terminated by void_list_node, start | |
1975 | with void_list_node instead of NULL for newargs. Stop | |
1976 | at void_list_node. | |
1977 | ||
462ca422 | 1978 | 2016-03-16 Marek Polacek <polacek@redhat.com> |
1979 | ||
1980 | PR c/70093 | |
1981 | * c-typeck.c (build_function_call_vec): Create a TARGET_EXPR for | |
1982 | nested functions returning VM types. | |
1983 | ||
27dcb7a8 | 1984 | 2016-03-09 Cesar Philippidis <cesar@codesourcery.com> |
1985 | ||
1986 | * c-parser.c (c_parser_oacc_loop): Update cclauses and clauses | |
1987 | when calling c_finish_omp_clauses. | |
1988 | ||
2d1d2e55 | 1989 | 2016-03-04 Bernd Schmidt <bschmidt@redhat.com> |
1990 | ||
1991 | PR c/69824 | |
1992 | * c-decl.c (get_parm_info): Don't queue implicit function declarations | |
1993 | for later. | |
1994 | ||
6560d1ad | 1995 | 2016-03-04 Marek Polacek <polacek@redhat.com> |
1996 | ||
1997 | PR c/69798 | |
1998 | * c-parser.c (c_parser_postfix_expression): Call | |
1999 | c_parser_cast_expression rather than c_parser_postfix_expression. | |
2000 | ||
40e9ce2d | 2001 | 2016-03-01 Jakub Jelinek <jakub@redhat.com> |
2002 | ||
2003 | PR c/69796 | |
2004 | PR c/69974 | |
2005 | * c-parser.c (c_parser_translation_unit): Don't change TREE_TYPE | |
2006 | of incomplete decls to error_mark_node. | |
2007 | ||
f0ea75d1 | 2008 | 2016-02-24 Marek Polacek <polacek@redhat.com> |
2009 | ||
2010 | PR c/69819 | |
2011 | * c-decl.c (finish_decl): Don't update the copy of the type of a | |
2012 | different decl type. | |
2013 | ||
d41ab738 | 2014 | 2016-02-23 Jakub Jelinek <jakub@redhat.com> |
2015 | ||
2016 | PR objc/69844 | |
2017 | * c-parser.c (c_parser_for_statement): Properly handle ObjC classes | |
2018 | in id_kind reclassification. | |
2019 | ||
7675e968 | 2020 | 2016-02-16 Jakub Jelinek <jakub@redhat.com> |
2021 | ||
2022 | PR c/69835 | |
2023 | * c-typeck.c (build_binary_op): Revert 2015-09-09 change. | |
2024 | ||
28072426 | 2025 | 2016-02-16 James Norris <jnorris@codesourcery.com> |
2026 | ||
2027 | PR c/64748 | |
2028 | * c-parser.c (c_parser_oacc_data_clause_deviceptr): Allow parms. | |
2029 | ||
74a4140f | 2030 | 2016-02-12 Bernd Schmidt <bschmidt@redhat.com> |
2031 | ||
7c25ed5c | 2032 | * c-decl.c (build_null_declspecs): Zero the entire struct. |
2033 | ||
74a4140f | 2034 | PR c/69522 |
2035 | * c-parser.c (c_parser_braced_init): New arg outer_obstack. All | |
2036 | callers changed. If nested_p is true, use it to call | |
2037 | finish_implicit_inits. | |
2038 | * c-tree.h (finish_implicit_inits): Declare. | |
2039 | * c-typeck.c (finish_implicit_inits): New function. Move code | |
2040 | from ... | |
2041 | (push_init_level): ... here. | |
2042 | (set_designator, process_init_element): Call finish_implicit_inits. | |
2043 | ||
40b38ace | 2044 | 2016-02-11 Jakub Jelinek <jakub@redhat.com> |
2045 | ||
2046 | PR c/69768 | |
2047 | * c-typeck.c (parser_build_binary_op): Strip nops from integer_zerop | |
2048 | arguments for -Waddress warning. | |
2049 | ||
6b098e91 | 2050 | 2016-02-04 Jakub Jelinek <jakub@redhat.com> |
2051 | ||
2052 | PR c/69669 | |
2053 | * c-decl.c (finish_enum): When honoring mode attribute, | |
2054 | make sure to use proper TYPE_MIN_VALUE and TYPE_MAX_VALUE. | |
2055 | ||
ff5e28e9 | 2056 | 2016-01-29 Jakub Jelinek <jakub@redhat.com> |
2057 | ||
2058 | PR debug/69518 | |
2059 | * c-decl.c (finish_struct): Clear C_TYPE_INCOMPLETE_VARS in | |
2060 | all type variants, not just TYPE_MAIN_VARIANT. | |
2061 | ||
78e516eb | 2062 | 2016-01-27 Jakub Jelinek <jakub@redhat.com> |
2063 | ||
2064 | PR debug/66869 | |
2065 | * c-decl.c (c_write_global_declarations_1): Warn with | |
2066 | warn_unused_function if static prototype without definition | |
2067 | is not C_DECL_USED. | |
2068 | ||
fee5e491 | 2069 | 2016-01-27 Marek Polacek <polacek@redhat.com> |
2070 | ||
2071 | PR c/68062 | |
2072 | * c-typeck.c (build_binary_op) [EQ_EXPR, GE_EXPR]: Promote operand | |
2073 | to unsigned, if needed. Add -Wsign-compare warning. | |
2074 | ||
9bbfd060 | 2075 | 2016-01-26 Jakub Jelinek <jakub@redhat.com> |
2076 | ||
2077 | PR tree-optimization/69483 | |
2078 | * c-parser.c (c_parser_translation_unit): Use FOR_EACH_VEC_ELT. | |
2079 | ||
6ebc6587 | 2080 | 2016-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
16d4186f | 2081 | |
2082 | PR c/24293 | |
2083 | * c-tree.h (incomplete_record_decls): Declare. | |
2084 | * c-parser.c (incomplete_record_decls): Define. | |
2085 | (c_parser_translation_unit): Iterate through incomplete_record_decls and | |
2086 | report error if any decl has zero size. | |
2087 | * c-decl.c (finish_decl): Append static decl with incomplete struct/union | |
2088 | or enum type to incomplete_record_decls. | |
2089 | ||
4c39e3a5 | 2090 | 2016-01-14 Tom de Vries <tom@codesourcery.com> |
2091 | ||
2092 | PR tree-optimization/68773 | |
2093 | * c-parser.c (c_parser_oacc_declare, c_parser_omp_declare_target): Don't | |
2094 | set force_output. | |
2095 | ||
77f35cec | 2096 | 2016-01-14 Marek Polacek <polacek@redhat.com> |
2097 | ||
2098 | PR c/69262 | |
2099 | * c-decl.c (grokdeclarator): Provide more information for invalid | |
2100 | array declarations. | |
2101 | ||
d74214f3 | 2102 | 2016-01-06 David Malcolm <dmalcolm@redhat.com> |
2103 | ||
2104 | * c-parser.c (c_parser_unary_expression): For dereferences, build | |
2105 | a combined location before calling build_indirect_ref, so that | |
2106 | error reports cover the full range, manually updating the c_expr | |
2107 | src_range. | |
2108 | ||
be3c9981 | 2109 | 2016-01-06 Marek Polacek <polacek@redhat.com> |
2110 | ||
2111 | PR sanitizer/69099 | |
2112 | * c-convert.c (convert) [INTEGER_TYPE]: Drop ARG. Don't pass ARG to | |
2113 | ubsan_instrument_float_cast. Fold EXPR. Use NULL_TREE instead of | |
2114 | NULL. | |
2115 | ||
f1717362 | 2116 | 2016-01-04 Jakub Jelinek <jakub@redhat.com> |
2117 | ||
2118 | Update copyright years. | |
2119 | ||
d7d6a3ab | 2120 | 2016-01-04 Marek Polacek <polacek@redhat.com> |
2121 | ||
2122 | PR c/68908 | |
2123 | * c-typeck.c (build_atomic_assign): Improve commentary. Add | |
2124 | optimization to use __atomic_fetch_* built-in if possible. | |
2125 | ||
9d5fd7c6 | 2126 | 2015-12-23 Thomas Schwinge <thomas@codesourcery.com> |
2127 | ||
2128 | * c-parser.c (c_parser_oacc_clause_use_device): Merge function | |
2129 | into... | |
2130 | (c_parser_omp_clause_use_device_ptr): ... this function. Adjust | |
2131 | all users. | |
2132 | ||
37e2d32f | 2133 | 2015-12-22 Marek Polacek <polacek@redhat.com> |
2134 | ||
2135 | PR c/69002 | |
2136 | * c-typeck.c (build_component_ref): Warn when acessing elements of | |
2137 | atomic structures or unions. | |
2138 | ||
c0bf500c | 2139 | 2015-12-21 David Malcolm <dmalcolm@redhat.com> |
2140 | ||
2141 | * c-typeck.c: Include "gcc-rich-location.h". | |
2142 | (build_binary_op): In the two places that call binary_op_error, | |
2143 | create a gcc_rich_location and populate it with the location of | |
2144 | the binary op and its two operands. | |
2145 | ||
b9f9586a | 2146 | 2015-12-16 David Malcolm <dmalcolm@redhat.com> |
2147 | ||
2148 | * c-parser.c (c_parser_statement_after_labels): When calling | |
2149 | c_finish_return, Use the return expression's location if it has | |
2150 | one, falling back to the location of the first token within it. | |
2151 | * c-typeck.c (c_finish_return): When issuing warnings about | |
2152 | the incorrect presence/absence of a return value, issue a note | |
2153 | showing the declaration of the function. | |
2154 | ||
dbd79382 | 2155 | 2015-12-16 David Malcolm <dmalcolm@redhat.com> |
2156 | ||
2157 | * c-parser.c (struct c_parser): Expand array "tokens_buf" from 2 | |
2158 | to 4. | |
2159 | (c_parser_peek_nth_token): New function. | |
2160 | (c_parser_peek_conflict_marker): New function. | |
2161 | (c_parser_error): Detect conflict markers and report them as such. | |
2162 | ||
e2093e02 | 2163 | 2015-12-16 David Malcolm <dmalcolm@redhat.com> |
2164 | ||
2165 | * c-parser.c (c_parser_postfix_expression): Use EXPR_LOC_OR_LOC | |
2166 | to preserve range information for the primary expression | |
2167 | in the call to c_parser_postfix_expression_after_primary. | |
2168 | ||
b49f1fbb | 2169 | 2015-12-16 David Malcolm <dmalcolm@redhat.com> |
2170 | ||
2171 | * c-parser.c (c_parser_static_assert_declaration_no_semi): Use the | |
2172 | expression location, falling back on the first token location, | |
2173 | rather than always using the latter. | |
2174 | ||
1d65bac2 | 2175 | 2015-12-16 Marek Polacek <polacek@redhat.com> |
2176 | ||
2177 | PR c/64637 | |
2178 | * c-typeck.c (c_process_expr_stmt): Use location of the expression if | |
2179 | available. | |
2180 | ||
75e722a6 | 2181 | 2015-12-15 Marek Polacek <polacek@redhat.com> |
2182 | ||
2183 | PR c/68907 | |
2184 | * c-typeck.c (build_atomic_assign): Set TREE_NO_WARNING on an | |
2185 | artificial decl. | |
2186 | ||
7063d45b | 2187 | 2015-12-08 David Malcolm <dmalcolm@redhat.com> |
2188 | ||
2189 | * c-parser.c (c_parser_alignof_expression): Capture location of | |
2190 | closing parenthesis (if any), or of end of unary expression, and | |
2191 | use it to build a src_range for the expression. | |
2192 | ||
f73b4782 | 2193 | 2015-12-08 David Malcolm <dmalcolm@redhat.com> |
2194 | ||
2195 | PR c/68757 | |
2196 | * c-parser.c (c_parser_get_builtin_args): Add | |
2197 | "out_close_paren_loc" param, and write back to it. | |
2198 | (c_parser_postfix_expression): Capture the closing | |
2199 | parenthesis location for RID_CHOOSE_EXPR, | |
2200 | RID_BUILTIN_CALL_WITH_STATIC_CHAIN, RID_BUILTIN_COMPLEX, | |
2201 | RID_BUILTIN_SHUFFLE and use it to set the source range | |
2202 | for such expressions; within RID_BUILTIN_COMPLEX set | |
2203 | the underlying location. | |
2204 | ||
1b062945 | 2205 | 2015-12-07 Marek Polacek <polacek@redhat.com> |
2206 | ||
2207 | PR c/68668 | |
2208 | * c-decl.c (grokdeclarator): If ORIG_QUAL_INDIRECT is indirect, use | |
2209 | TREE_TYPE of ORIG_QUAL_TYPE, otherwise decrement ORIG_QUAL_INDIRECT. | |
2210 | ||
a4ab54ac | 2211 | 2015-12-04 Eric Botcazou <ebotcazou@adacore.com> |
2212 | ||
2213 | * c-tree.h (c_build_va_arg): Adjust prototype. | |
2214 | * c-parser.c (c_parser_postfix_expression): Adjust call to above. | |
2215 | * c-typeck.c (c_build_va_arg): Rename LOC parameter to LOC2, add LOC1 | |
2216 | parameter, adjust throughout and issue an error if EXPR is a component | |
2217 | with reverse storage order. | |
2218 | ||
da562e32 | 2219 | 2015-12-02 Jason Merrill <jason@redhat.com> |
2220 | ||
2221 | * c-fold.c (c_disable_warnings, c_enable_warnings, c_fully_fold) | |
2222 | (c_fully_fold_internal, decl_constant_value_for_optimization): | |
2223 | Move from c-common.c. | |
2224 | * c-tree.h: Declare decl_constant_value_for_optimization. | |
2225 | * Make-lang.in (C_AND_OBJC_OBJS): Add c-fold.o. | |
2226 | ||
89f16034 | 2227 | 2015-12-02 Joseph Myers <joseph@codesourcery.com> |
2228 | ||
2229 | PR c/68162 | |
2230 | * c-decl.c (grokdeclarator): Set first_non_attr_kind before | |
2231 | following link from declarator to next declarator. Track original | |
2232 | qualified type and pass it to c_build_qualified_type. | |
2233 | * c-typeck.c (c_build_qualified_type): Add arguments | |
2234 | orig_qual_type and orig_qual_indirect. | |
2235 | ||
2a7545d5 | 2236 | 2015-12-02 Thomas Schwinge <thomas@codesourcery.com> |
2237 | ||
2238 | * c-parser.c (c_parser_omp_clause_name) | |
2239 | (c_parser_oacc_all_clauses): Alphabetical sorting. | |
2240 | ||
ad80582d | 2241 | 2015-12-02 Jakub Jelinek <jakub@redhat.com> |
2242 | ||
2243 | PR c/68533 | |
2244 | * c-decl.c (get_parm_info): Use b->locus instead of input_location | |
2245 | for diagnostics. | |
2246 | ||
571b3486 | 2247 | 2015-12-01 Julian Brown <julian@codesourcery.com> |
2248 | Cesar Philippidis <cesar@codesourcery.com> | |
2249 | James Norris <James_Norris@mentor.com> | |
2250 | ||
2251 | * c-parser.c (c_parser_omp_clause_name): Add use_device support. | |
2252 | (c_parser_oacc_clause_use_device): New function. | |
2253 | (c_parser_oacc_all_clauses): Add use_device support. | |
2254 | (OACC_HOST_DATA_CLAUSE_MASK): New macro. | |
2255 | (c_parser_oacc_host_data): New function. | |
2256 | (c_parser_omp_construct): Add host_data support. | |
2257 | * c-tree.h (c_finish_oacc_host_data): Add prototype. | |
2258 | * c-typeck.c (c_finish_oacc_host_data): New function. | |
2259 | (c_finish_omp_clauses): Add use_device support. | |
2260 | ||
c4848393 | 2261 | 2015-11-29 Jan Hubicka <hubicka@ucw.cz> |
2262 | ||
2263 | PR c/67106 | |
2264 | * c-decl.c: Set TYPE_PACKED in variants. | |
2265 | ||
d4e328e9 | 2266 | 2015-11-27 Martin Liska <mliska@suse.cz> |
2267 | ||
2268 | PR c++/68312 | |
2269 | * c-array-notation.c (fix_builtin_array_notation_fn): | |
2270 | Use release_vec_vec instead of vec::release. | |
2271 | (build_array_notation_expr): Likewise. | |
2272 | (fix_conditional_array_notations_1): Likewise. | |
2273 | (fix_array_notation_expr): Likewise. | |
2274 | (fix_array_notation_call_expr): Likewise. | |
2275 | ||
c5e4f591 | 2276 | 2015-11-27 Jakub Jelinek <jakub@redhat.com> |
2277 | ||
2278 | PR c/63326 | |
2279 | * c-parser.c (c_parser_compound_statement_nostart): If | |
2280 | last_label is true, use pragma_stmt instead of pragma_compound | |
2281 | as second c_parser_pragma argument. | |
2282 | (c_parser_omp_ordered, c_parser_omp_target_update, | |
2283 | c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): Pass | |
2284 | false as second argument to c_parser_skip_to_pragma_eol after | |
2285 | diagnosing standalone directives used in pragma_stmt context. | |
2286 | ||
c954a5bd | 2287 | 2015-11-24 Ilya Verbin <ilya.verbin@intel.com> |
2288 | ||
2289 | * c-parser.c (c_parser_oacc_declare): Replace "ifdef ENABLE_OFFLOADING" | |
2290 | with "if (ENABLE_OFFLOADING)". | |
2291 | ||
daebf4f3 | 2292 | 2015-11-23 David Malcolm <dmalcolm@redhat.com> |
2293 | ||
2294 | PR objc/68438 | |
2295 | * c-parser.c (c_parser_postfix_expression): Set up source ranges | |
2296 | for various Objective-C constructs: Class.name syntax, | |
2297 | @selector(), @protocol(), @encode(), and [] message syntax. | |
2298 | ||
734caf84 | 2299 | 2015-11-20 David Malcolm <dmalcolm@redhat.com> |
2300 | ||
2301 | PR 62314 | |
2302 | * c-typeck.c (should_suggest_deref_p): New function. | |
2303 | (build_component_ref): Special-case POINTER_TYPE when | |
2304 | generating a "not a structure of union" error message, and | |
2305 | suggest a "->" rather than a ".", providing a fix-it hint. | |
2306 | ||
11d8dd6f | 2307 | 2015-11-19 David Malcolm <dmalcolm@redhat.com> |
2308 | ||
2309 | * c-typeck.c (lookup_field_fuzzy): Move determination of closest | |
2310 | candidate into a new function, find_closest_identifier. | |
2311 | ||
62efaf6b | 2312 | 2015-11-19 Marek Polacek <polacek@redhat.com> |
2313 | ||
2314 | PR c/68412 | |
2315 | * c-typeck.c (parser_build_binary_op): Properly handle | |
2316 | C_MAYBE_CONST_EXPR before calling warn_tautological_cmp. | |
2317 | ||
9dfffd6d | 2318 | 2015-11-17 David Malcolm <dmalcolm@redhat.com> |
2319 | ||
2320 | * c-parser.c (set_c_expr_source_range): Bulletproof both | |
2321 | overloaded implementations against NULL expr->value. | |
2322 | (c_parser_braced_init): Set src_range for "ret" to a sane pair of | |
2323 | values. | |
2324 | (c_parser_unary_expression): Likewise when handling addresses of | |
2325 | labels. | |
2326 | (c_parser_postfix_expression): Likewise for statement expressions, | |
2327 | for __FUNCTION__, __PRETTY_FUNCTION_ and __func__ keywords, for | |
2328 | __builtin_va_arg, and for __builtin_offset_of. | |
2329 | (c_parser_postfix_expression_after_paren_type): Initialize expr's | |
2330 | src_range using the range of the braced initializer. | |
2331 | (c_parser_transaction_expression): Set src_range for "ret" to a | |
2332 | sane pair of values. | |
2333 | ||
c58a4cfd | 2334 | 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com> |
2335 | ||
2336 | * c-parser.c (c_finish_omp_declare_simd): Look for | |
2337 | "simd" attribute as well. Update error message. | |
2338 | ||
5f3001a9 | 2339 | 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> |
2340 | ||
2341 | * c-parser.c (c_parser_omp_declare_target): Adjust. | |
2342 | ||
a9833286 | 2343 | 2015-11-14 Jakub Jelinek <jakub@redhat.com> |
2344 | ||
2345 | * c-typeck.c (c_finish_omp_clauses): Don't mark | |
2346 | GOMP_MAP_FIRSTPRIVATE_POINTER decls addressable. | |
2347 | ||
ef61516b | 2348 | 2015-11-14 Marek Polacek <polacek@redhat.com> |
2349 | ||
2350 | * c-decl.c: Use RECORD_OR_UNION_TYPE_P throughout. | |
2351 | * c-typeck.c: Likewise. | |
2352 | ||
a96cefb2 | 2353 | 2015-11-13 David Malcolm <dmalcolm@redhat.com> |
2354 | ||
2355 | * c-decl.c (warn_defaults_to): Pass line_table to | |
2356 | rich_location ctor. | |
2357 | * c-errors.c (pedwarn_c99): Likewise. | |
2358 | (pedwarn_c90): Likewise. | |
2359 | * c-parser.c (set_c_expr_source_range): New functions. | |
2360 | (c_token::get_range): New method. | |
2361 | (c_token::get_finish): New method. | |
2362 | (c_parser_expr_no_commas): Call set_c_expr_source_range on the ret | |
2363 | based on the range from the start of the LHS to the end of the | |
2364 | RHS. | |
2365 | (c_parser_conditional_expression): Likewise, based on the range | |
2366 | from the start of the cond.value to the end of exp2.value. | |
2367 | (c_parser_binary_expression): Call set_c_expr_source_range on | |
2368 | the stack values for TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR. | |
2369 | (c_parser_cast_expression): Call set_c_expr_source_range on ret | |
2370 | based on the cast_loc through to the end of the expr. | |
2371 | (c_parser_unary_expression): Likewise, based on the | |
2372 | op_loc through to the end of op. | |
2373 | (c_parser_sizeof_expression) Likewise, based on the start of the | |
2374 | sizeof token through to either the closing paren or the end of | |
2375 | expr. | |
2376 | (c_parser_postfix_expression): Likewise, using the token range, | |
2377 | or from the open paren through to the close paren for | |
2378 | parenthesized expressions. | |
2379 | (c_parser_postfix_expression_after_primary): Likewise, for | |
2380 | various kinds of expression. | |
2381 | * c-tree.h (struct c_expr): Add field "src_range". | |
2382 | (c_expr::get_start): New method. | |
2383 | (c_expr::get_finish): New method. | |
2384 | (set_c_expr_source_range): New decls. | |
2385 | * c-typeck.c (parser_build_unary_op): Call set_c_expr_source_range | |
2386 | on ret for prefix unary ops. | |
2387 | (parser_build_binary_op): Likewise, running from the start of | |
2388 | arg1.value through to the end of arg2.value. | |
2389 | ||
7a810b2f | 2390 | 2015-11-13 Marek Polacek <polacek@redhat.com> |
2391 | ||
2392 | PR c/68320 | |
2393 | * c-parser.c (c_parser_for_statement): Treat unknown tokens as IDs. | |
2394 | ||
b67f0560 | 2395 | 2015-11-13 David Malcolm <dmalcolm@redhat.com> |
2396 | ||
2397 | * c-typeck.c: Include spellcheck.h. | |
2398 | (lookup_field_fuzzy_find_candidates): New function. | |
2399 | (lookup_field_fuzzy): New function. | |
2400 | (build_component_ref): If the field was not found, try using | |
2401 | lookup_field_fuzzy and potentially offer a suggestion. | |
2402 | ||
2fc5e987 | 2403 | 2015-11-12 James Norris <jnorris@codesourcery.com> |
2404 | Joseph Myers <joseph@codesourcery.com> | |
2405 | ||
2406 | * c-parser.c (c_parser_pragma): Handle PRAGMA_OACC_DECLARE. | |
2407 | (c_parser_omp_clause_name): Handle 'device_resident' clause. | |
2408 | (c_parser_oacc_data_clause): Handle PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT | |
2409 | and PRAGMA_OMP_CLAUSE_LINK. | |
2410 | (c_parser_oacc_all_clauses): Handle PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT | |
2411 | and PRAGMA_OACC_CLAUSE_LINK. | |
2412 | (OACC_DECLARE_CLAUSE_MASK): New definition. | |
2413 | (c_parser_oacc_declare): New function. | |
2414 | ||
28a70e29 | 2415 | 2015-11-12 Marek Polacek <polacek@redhat.com> |
2416 | ||
2417 | PR c/67784 | |
2418 | * c-parser.c (c_parser_for_statement): Reclassify the token in | |
2419 | a correct scope. | |
2420 | ||
81b1b2a8 | 2421 | 2015-11-11 Marek Polacek <polacek@redhat.com> |
2422 | ||
2423 | PR c/68107 | |
2424 | PR c++/68266 | |
2425 | * c-decl.c (grokdeclarator): Call valid_array_size_p. Remove code | |
2426 | checking the size of an array. | |
2427 | ||
6e803544 | 2428 | 2015-11-11 Andrew MacLeod <amacleod@redhat.com> |
2429 | ||
2430 | * c-array-notation.c: Remove unused header files. | |
2431 | * c-aux-info.c: Likewise. | |
2432 | * c-convert.c: Likewise. | |
2433 | * c-decl.c: Likewise. | |
2434 | * c-errors.c: Likewise. | |
2435 | * c-lang.c: Likewise. | |
2436 | * c-objc-common.c: Likewise. | |
2437 | * c-parser.c: Likewise. | |
2438 | * c-typeck.c: Likewise. | |
2439 | * gccspec.c: Likewise. | |
2440 | ||
a1b7fe4b | 2441 | 2015-11-09 Thomas Schwinge <thomas@codesourcery.com> |
2442 | Cesar Philippidis <cesar@codesourcery.com> | |
2443 | James Norris <jnorris@codesourcery.com> | |
2444 | Julian Brown <julian@codesourcery.com> | |
2445 | Nathan Sidwell <nathan@codesourcery.com> | |
2446 | ||
2447 | c/ | |
2448 | * c-parser.c (c_parser_declaration_or_fndef): Add OpenACC | |
2449 | routine arg. | |
2450 | (c_parser_declaration_or_fndef): Call c_finish_oacc_routine. | |
2451 | (c_parser_pragma): Parse 'acc routine'. | |
2452 | (OACC_ROUTINE_CLAUSE_MARK): Define. | |
2453 | (c_parser_oacc_routine, (c_finish_oacc_routine): New. | |
2454 | ||
7758d608 | 2455 | 2015-11-09 Andreas Arnez <arnez@linux.vnet.ibm.com> |
2456 | ||
2457 | PR debug/67192 | |
2458 | * c-typeck.c (c_finish_loop): For unconditional loops, set the | |
2459 | location of the backward-goto to the start of the loop body. | |
2460 | ||
c2bf2fb2 | 2461 | 2015-11-09 Andreas Arnez <arnez@linux.vnet.ibm.com> |
2462 | ||
2463 | PR debug/67192 | |
2464 | * c-parser.c (c_parser_while_statement): Finish the loop before | |
2465 | parsing ahead for misleading indentation. | |
2466 | (c_parser_for_statement): Likewise. | |
2467 | ||
292237f3 | 2468 | 2015-11-08 Eric Botcazou <ebotcazou@adacore.com> |
2469 | ||
2470 | * c-decl.c (finish_struct): If the structure has reverse storage | |
2471 | order, rewrite the type of array fields with scalar component. Call | |
2472 | maybe_apply_pragma_scalar_storage_order on entry. | |
2473 | * c-typeck.c (build_unary_op) <ADDR_EXPR>: Remove left-overs. Issue | |
2474 | errors on bit-fields and reverse SSO here and not... | |
2475 | (c_mark_addressable): ...here. | |
2476 | (output_init_element): Adjust call to initializer_constant_valid_p. | |
2477 | (c_build_qualified_type): Propagate TYPE_REVERSE_STORAGE_ORDER. | |
2478 | ||
f0479000 | 2479 | 2015-11-06 David Malcolm <dmalcolm@redhat.com> |
2480 | ||
2481 | * c-decl.c (warn_defaults_to): Update for change in signature | |
2482 | of diagnostic_set_info. | |
2483 | * c-errors.c (pedwarn_c99): Likewise. | |
2484 | (pedwarn_c90): Likewise. | |
2485 | * c-objc-common.c (c_tree_printer): Update for new "caret_p" param | |
2486 | for textinfo::set_location. | |
2487 | ||
ef014f95 | 2488 | 2015-11-05 Cesar Philippidis <cesar@codesourcery.com> |
2489 | Thomas Schwinge <thomas@codesourcery.com> | |
2490 | James Norris <jnorris@codesourcery.com> | |
2491 | ||
2492 | * c-parser.c (c_parser_omp_clause_name): Add support for | |
2493 | PRAGMA_OACC_CLAUSE_INDEPENDENT and PRAGMA_OACC_CLAUSE_TILE. | |
2494 | (c_parser_omp_clause_default): Add is_oacc argument. Handle | |
2495 | default(none) in OpenACC. | |
2496 | (c_parser_oacc_shape_clause): Allow pointer variables as gang static | |
2497 | arguments. | |
2498 | (c_parser_oacc_clause_tile): New function. | |
2499 | (c_parser_oacc_all_clauses): Add support for OMP_CLAUSE_DEFAULT, | |
2500 | OMP_CLAUSE_INDEPENDENT and OMP_CLAUSE_TILE. | |
2501 | (OACC_LOOP_CLAUSE_MASK): Add PRAGMA_OACC_CLAUSE_{PRIVATE,INDEPENDENT, | |
2502 | TILE}. | |
2503 | (OACC_KERNELS_MASK): Add PRAGMA_OACC_CLAUSE_DEFAULT. | |
2504 | (OACC_PARALLEL_MASK): Add PRAGMA_OACC_CLAUSE_{DEFAULT,PRIVATE, | |
2505 | FIRSTPRIVATE}. | |
2506 | (c_parser_omp_all_clauses): Update call to c_parser_omp_clause_default. | |
2507 | (c_parser_oacc_update): Update the error message for missing clauses. | |
2508 | * c-typeck.c (c_finish_omp_clauses): Add support for OMP_CLAUSE_TILE | |
2509 | and OMP_CLAUSE_INDEPENDENT. | |
2510 | ||
f480ca9a | 2511 | 2015-11-05 Marek Polacek <polacek@redhat.com> |
2512 | ||
2513 | PR c/68090 | |
2514 | * c-parser.c (c_parser_postfix_expression_after_paren_type): Don't | |
2515 | deal with pre-evaluation on invalid types. | |
2516 | ||
9561765e | 2517 | 2015-11-05 Jakub Jelinek <jakub@redhat.com> |
2518 | Ilya Verbin <ilya.verbin@intel.com> | |
2519 | ||
2520 | * c-parser.c: Include context.h and gimple-expr.h. | |
2521 | (c_parser_omp_clause_schedule): Parse schedule modifiers, diagnose | |
2522 | monotonic together with nonmonotonic. | |
2523 | (c_parser_omp_for_loop): Call c_omp_check_loop_iv. Call add_stmt here. | |
2524 | (OMP_DISTRIBUTE_CLAUSE_MASK): Add lastprivate clause. | |
2525 | (c_parser_omp_target_data, c_parser_omp_target_enter_data, | |
2526 | c_parser_omp_target_exit_data): Allow GOMP_MAP_ALWAYS_POINTER. | |
2527 | (c_parser_omp_target): Likewise. Evaluate num_teams and thread_limit | |
2528 | expressions on combined target teams before the target. | |
2529 | (c_parser_omp_declare_target): If decl has "omp declare target" or | |
2530 | "omp declare target link" attribute, and cgraph or varpool node already | |
2531 | exists, then set corresponding flags. Call c_finish_omp_clauses | |
2532 | in the parenthesized extended-list syntax case. | |
2533 | * c-decl.c (c_decl_attributes): Don't diagnose block scope vars inside | |
2534 | declare target. | |
2535 | * c-typeck.c (handle_omp_array_sections_1): Allow non-zero low-bound | |
2536 | on OMP_CLAUSE_REDUCTION array sections. | |
2537 | (handle_omp_array_sections): Encode low-bound into the MEM_REF, either | |
2538 | into the constant offset, or for variable low-bound using | |
2539 | POINTER_PLUS_EXPR. For structure element based array sections use | |
2540 | GOMP_MAP_ALWAYS_POINTER instead of GOMP_MAP_FIRSTPRIVATE_POINTER. | |
2541 | (c_finish_omp_clauses): Drop generic_field_head, structure | |
2542 | elements are now always mapped even as array section bases, | |
2543 | diagnose same var in data sharing and mapping clauses. Diagnose if | |
2544 | linear step on declare simd is neither a constant nor a uniform | |
2545 | parameter. Look through POINTER_PLUS_EXPR for array section | |
2546 | reductions. Diagnose the same var or function appearing multiple | |
2547 | times on the same directive. Fix up wording for the to clause if t | |
2548 | is neither a FUNCTION_DECL nor a VAR_DECL. Diagnose nonmonotonic | |
2549 | modifier on kinds other than dynamic or guided or nonmonotonic | |
2550 | modifier together with ordered clause. | |
2551 | ||
9e10bfb7 | 2552 | 2015-11-03 Thomas Schwinge <thomas@codesourcery.com> |
2553 | Chung-Lin Tang <cltang@codesourcery.com> | |
2554 | ||
2555 | * c-parser.c (c_parser_omp_construct): Handle PRAGMA_OACC_ATOMIC. | |
2556 | ||
4cba6f60 | 2557 | 2015-10-29 Andrew MacLeod <amacleod@redhat.com> |
2558 | ||
2559 | * c-array-notation.c: Reorder #include's and remove duplicates. | |
2560 | * c-aux-info.c: Likewise. | |
2561 | * c-convert.c: Likewise. | |
2562 | * c-decl.c: Likewise. | |
2563 | * c-errors.c: Likewise. | |
2564 | * c-lang.c: Likewise. | |
2565 | * c-objc-common.c: Likewise. | |
2566 | * c-parser.c: Likewise. | |
2567 | * c-typeck.c: Likewise. | |
2568 | ||
7b15d957 | 2569 | 2015-10-26 Jim Wilson <jim.wilson@linaro.org> |
2570 | ||
2571 | PR debug/66068 | |
2572 | * c-typeck.c (c_build_qualified_type): Clear C_TYPE_INCOMPLETE_VARS | |
2573 | after calling build_qualified_type. | |
2574 | ||
62c48328 | 2575 | 2015-10-27 Cesar Philippidis <cesar@codesourcery.com> |
2576 | Thomas Schwinge <thomas@codesourcery.com> | |
2577 | James Norris <jnorris@codesourcery.com> | |
2578 | Joseph Myers <joseph@codesourcery.com> | |
2579 | Julian Brown <julian@codesourcery.com> | |
2580 | Bernd Schmidt <bschmidt@redhat.com> | |
2581 | ||
2582 | * c-parser.c (c_parser_oacc_shape_clause): New. | |
2583 | (c_parser_oacc_simple_clause): New. | |
2584 | (c_parser_oacc_all_clauses): Add auto, gang, seq, vector, worker. | |
2585 | (OACC_LOOP_CLAUSE_MASK): Add gang, worker, vector, auto, seq. | |
2586 | ||
2c4c8725 | 2587 | 2015-10-27 Thomas Schwinge <thomas@codesourcery.com> |
2588 | James Norris <jnorris@codesourcery.com> | |
2589 | Cesar Philippidis <cesar@codesourcery.com> | |
2590 | ||
2591 | PR c/64765 | |
2592 | PR c/64880 | |
2593 | * c-parser.c (c_parser_oacc_loop): Add mask, cclauses formal | |
2594 | parameters, and handle these. Adjust all users. | |
2595 | (c_parser_oacc_kernels, c_parser_oacc_parallel): Merge functions | |
2596 | into... | |
2597 | (c_parser_oacc_kernels_parallel): ... this new function. Adjust | |
2598 | all users. | |
2599 | * c-tree.h (c_finish_oacc_parallel, c_finish_oacc_kernels): Don't | |
2600 | declare functions. | |
2601 | (c_finish_omp_construct): Declare function. | |
2602 | * c-typeck.c (c_finish_oacc_parallel, c_finish_oacc_kernels): | |
2603 | Merge functions into... | |
2604 | (c_finish_omp_construct): ... this new function. | |
2605 | ||
844cece0 | 2606 | 2015-10-22 Richard Biener <rguenther@suse.de> |
2607 | ||
2608 | * c-typeck.c (c_finish_omp_clauses): Properly convert operands | |
2609 | before folding a MINUS_EXPR. | |
2610 | ||
5ce1b137 | 2611 | 2015-10-21 Marek Polacek <polacek@redhat.com> |
2612 | ||
2613 | PR c/68024 | |
2614 | * c-decl.c (start_function): Warn about vararg functions without | |
2615 | a prototype. | |
2616 | ||
1f137e6d | 2617 | 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com> |
2618 | ||
2619 | * c-typeck.c (build_conditional_expr): Use boolean vector | |
2620 | type for vector comparison. | |
2621 | (build_vec_cmp): New. | |
2622 | (build_binary_op): Use build_vec_cmp for comparison. | |
2623 | ||
8523243e | 2624 | 2015-10-20 Marek Polacek <polacek@redhat.com> |
2625 | ||
2626 | * c-parser.c (is_cilkplus_vector_p): Don't define here. | |
2627 | ||
3f73be3e | 2628 | 2015-10-20 Marek Polacek <polacek@redhat.com> |
2629 | ||
2630 | PR c/67964 | |
2631 | * c-parser.c (c_parser_attributes): Break out of the loop if the | |
2632 | token after an attribute isn't a comma. | |
2633 | ||
43895be5 | 2634 | 2015-10-13 Jakub Jelinek <jakub@redhat.com> |
2635 | Aldy Hernandez <aldyh@redhat.com> | |
2636 | ||
2637 | * c-parser.c (c_parser_pragma): Handle PRAGMA_OMP_ORDERED here. | |
2638 | (c_parser_omp_clause_name): Handle OpenMP 4.5 clauses. | |
2639 | (c_parser_omp_variable_list): Handle structure elements for | |
2640 | map, to and from clauses. Handle array sections in reduction | |
2641 | clause. Formatting fixes. | |
2642 | (c_parser_omp_clause_if): Add IS_OMP argument, handle parsing of | |
2643 | if clause modifiers. | |
2644 | (c_parser_omp_clause_num_tasks, c_parser_omp_clause_grainsize, | |
2645 | c_parser_omp_clause_priority, c_parser_omp_clause_hint, | |
2646 | c_parser_omp_clause_defaultmap, c_parser_omp_clause_use_device_ptr, | |
2647 | c_parser_omp_clause_is_device_ptr): New functions. | |
2648 | (c_parser_omp_clause_ordered): Parse optional parameter. | |
2649 | (c_parser_omp_clause_reduction): Handle array reductions. | |
2650 | (c_parser_omp_clause_schedule): Parse optional simd modifier. | |
2651 | (c_parser_omp_clause_nogroup, c_parser_omp_clause_orderedkind): New | |
2652 | functions. | |
2653 | (c_parser_omp_clause_linear): Parse linear clause modifiers. | |
2654 | (c_parser_omp_clause_depend_sink): New function. | |
2655 | (c_parser_omp_clause_depend): Parse source/sink depend kinds. | |
2656 | (c_parser_omp_clause_map): Parse release/delete map kinds and | |
2657 | optional always modifier. | |
2658 | (c_parser_oacc_all_clauses): Adjust c_parser_omp_clause_if | |
2659 | and c_finish_omp_clauses callers. | |
2660 | (c_parser_omp_all_clauses): Likewise. Parse OpenMP 4.5 clauses. | |
2661 | Parse "to" as OMP_CLAUSE_TO_DECLARE if on declare target directive. | |
2662 | (c_parser_oacc_cache): Adjust c_finish_omp_clauses caller. | |
2663 | (OMP_CRITICAL_CLAUSE_MASK): Define. | |
2664 | (c_parser_omp_critical): Parse critical clauses. | |
2665 | (c_parser_omp_for_loop): Handle doacross loops, adjust | |
2666 | c_finish_omp_for and c_finish_omp_clauses callers. | |
2667 | (OMP_SIMD_CLAUSE_MASK): Add simdlen clause. | |
2668 | (c_parser_omp_simd): Allow ordered clause if it has no parameter. | |
2669 | (OMP_FOR_CLAUSE_MASK): Add linear clause. | |
2670 | (c_parser_omp_for): Disallow ordered clause when combined with | |
2671 | distribute. Disallow linear clause when combined with distribute | |
2672 | and not combined with simd. | |
2673 | (OMP_ORDERED_CLAUSE_MASK, OMP_ORDERED_DEPEND_CLAUSE_MASK): Define. | |
2674 | (c_parser_omp_ordered): Add CONTEXT argument, remove LOC argument, | |
2675 | parse clauses and if depend clause is found, don't parse a body. | |
2676 | (c_parser_omp_parallel): Disallow copyin clause on target parallel. | |
2677 | Allow target parallel without for after it. | |
2678 | (OMP_TASK_CLAUSE_MASK): Add priority clause. | |
2679 | (OMP_TARGET_DATA_CLAUSE_MASK): Add use_device_ptr clause. | |
2680 | (c_parser_omp_target_data): Diagnose no map clauses or clauses with | |
2681 | invalid kinds. | |
2682 | (OMP_TARGET_UPDATE_CLAUSE_MASK): Add depend and nowait clauses. | |
2683 | (OMP_TARGET_ENTER_DATA_CLAUSE_MASK, | |
2684 | OMP_TARGET_EXIT_DATA_CLAUSE_MASK): Define. | |
2685 | (c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): New | |
2686 | functions. | |
2687 | (OMP_TARGET_CLAUSE_MASK): Add depend, nowait, private, firstprivate, | |
2688 | defaultmap and is_device_ptr clauses. | |
2689 | (c_parser_omp_target): Parse target parallel and target simd. Set | |
2690 | OMP_TARGET_COMBINED on combined constructs. Parse target enter data | |
2691 | and target exit data. Diagnose invalid map kinds. | |
2692 | (OMP_DECLARE_TARGET_CLAUSE_MASK): Define. | |
2693 | (c_parser_omp_declare_target): Parse OpenMP 4.5 forms of this | |
2694 | construct. | |
2695 | (c_parser_omp_declare_reduction): Use STRIP_NOPS when checking for | |
2696 | &omp_priv. | |
2697 | (OMP_TASKLOOP_CLAUSE_MASK): Define. | |
2698 | (c_parser_omp_taskloop): New function. | |
2699 | (c_parser_omp_construct): Don't handle PRAGMA_OMP_ORDERED here, | |
2700 | handle PRAGMA_OMP_TASKLOOP. | |
2701 | (c_parser_cilk_for): Adjust c_finish_omp_clauses callers. | |
2702 | * c-tree.h (c_finish_omp_clauses): Add two new arguments. | |
2703 | * c-typeck.c (handle_omp_array_sections_1): Fix comment typo. | |
2704 | Add IS_OMP argument, handle structure element bases, diagnose | |
2705 | bitfields, pass IS_OMP recursively, diagnose known zero length | |
2706 | array sections in depend clauses, handle array sections in reduction | |
2707 | clause, diagnose negative length even for pointers. | |
2708 | (handle_omp_array_sections): Add IS_OMP argument, use auto_vec for | |
2709 | types, pass IS_OMP down to handle_omp_array_sections_1, handle | |
2710 | array sections in reduction clause, set | |
2711 | OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION if map could be zero | |
2712 | length array section, use GOMP_MAP_FIRSTPRIVATE_POINTER for IS_OMP. | |
2713 | (c_finish_omp_clauses): Add IS_OMP and DECLARE_SIMD arguments. | |
2714 | Handle new OpenMP 4.5 clauses and new restrictions for the old ones. | |
2715 | ||
789fbb51 | 2716 | 2015-10-06 Marek Polacek <polacek@redhat.com> |
2717 | ||
2718 | * c-parser.c (c_parser_statement_after_labels): Use | |
2719 | protected_set_expr_location. | |
2720 | (c_parser_omp_clause_num_gangs): Likewise. | |
2721 | (c_parser_omp_clause_num_threads): Likewise. | |
2722 | (c_parser_omp_clause_num_workers): Likewise. | |
2723 | (c_parser_omp_clause_vector_length): Likewise. | |
2724 | (c_parser_omp_clause_num_teams): Likewise. | |
2725 | (c_parser_omp_clause_thread_limit): Likewise. | |
2726 | * c-typeck.c (build_c_cast): Likewise. | |
2727 | (c_cast_expr): Likewise. | |
2728 | ||
20cb53c9 | 2729 | 2015-10-05 Richard Sandiford <richard.sandiford@arm.com> |
2730 | ||
2731 | * c-typeck.c (c_tree_equal): Use real_equal instead of | |
2732 | REAL_VALUES_EQUAL. | |
2733 | ||
6d02e6b2 | 2734 | 2015-10-04 Jason Merrill <jason@redhat.com> |
2735 | ||
2736 | * c-parser.c (c_lex_one_token): Handle @synchronized. | |
2737 | * c-decl.c (match_builtin_function_types): A declaration of a built-in | |
2738 | can change whether the function is transaction_safe. | |
2739 | ||
802c32cd | 2740 | 2015-10-02 Marek Polacek <polacek@redhat.com> |
2741 | ||
2742 | PR c/67730 | |
2743 | * c-typeck.c (convert_for_assignment): Use the expansion point | |
2744 | location throughout. | |
2745 | ||
ef17a71a | 2746 | 2015-10-02 Marek Polacek <polacek@redhat.com> |
2747 | ||
2748 | PR c/64249 | |
2749 | * c-parser.c (c_parser_statement_after_labels): Add CHAIN parameter | |
2750 | and pass it down to c_parser_if_statement. | |
2751 | (c_parser_else_body): Add CHAIN parameter and pass it down to | |
2752 | c_parser_statement_after_labels. | |
2753 | (c_parser_if_statement): Add CHAIN parameter. Add code to warn about | |
2754 | duplicated if-else-if conditions. | |
2755 | ||
7e93eb1a | 2756 | 2015-10-01 Marek Polacek <polacek@redhat.com> |
2757 | ||
2758 | * c-typeck.c (convert_for_assignment): Improve commentary. | |
2759 | ||
ab4c803c | 2760 | 2015-09-30 Marek Polacek <polacek@redhat.com> |
2761 | ||
2762 | PR c/67730 | |
2763 | * c-typeck.c (c_finish_return): Use the expansion point location for | |
2764 | certain "return with value" warnings. | |
2765 | ||
ed536208 | 2766 | 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org> |
2767 | ||
2768 | * c-parser.c (pragma_lex): Add loc argument. | |
2769 | ||
03e8b174 | 2770 | 2015-09-15 Marek Polacek <polacek@redhat.com> |
2771 | ||
2772 | PR c/67580 | |
2773 | * c-decl.c (tag_exists_p): New function. | |
2774 | * c-parser.c (c_parser_declaration_or_fndef): Give a hint when | |
2775 | struct/union/enum keywords are missing. | |
2776 | * c-tree.h (tag_exists_p): Declare. | |
2777 | ||
a39b4dc0 | 2778 | 2015-09-15 Marek Polacek <polacek@redhat.com> |
2779 | ||
2780 | * c-decl.c (lookup_label): Return NULL_TREE instead of 0. | |
2781 | (lookup_tag): Change the type of THISLEVEL_ONLY to bool. | |
2782 | Return NULL_TREE instead of 0. | |
2783 | (lookup_name): Return NULL_TREE instead of 0. | |
2784 | (lookup_name_in_scope): Likewise. | |
2785 | (shadow_tag_warned): Use true instead of 1 and NULL_TREE instead of 0. | |
2786 | (parser_xref_tag): Use false instead of 0. | |
2787 | (start_struct): Use true instead of 1. | |
2788 | (start_enum): Use true instead of 1 and NULL_TREE instead of 0. | |
2789 | ||
85f5e2ee | 2790 | 2015-09-14 Marek Polacek <polacek@redhat.com> |
2791 | ||
2792 | * c-typeck.c (set_nonincremental_init_from_string): Use | |
2793 | HOST_WIDE_INT_M1U when shifting a negative value. | |
2794 | ||
739237d5 | 2795 | 2015-09-09 Mark Wielaard <mjw@redhat.com> |
2796 | ||
2797 | * c-typeck.c (build_binary_op): Check and warn when nonnull arg | |
2798 | parm against NULL. | |
2799 | ||
d2b2788c | 2800 | 2015-09-10 Jakub Jelinek <jakub@redhat.com> |
2801 | ||
2802 | PR c/67502 | |
2803 | * c-parser.c (c_parser_omp_for_loop): Emit DECL_EXPR stmts | |
2804 | into OMP_FOR_PRE_BODY rather than before the loop. | |
2805 | ||
deef87db | 2806 | 2015-09-09 Jakub Jelinek <jakub@redhat.com> |
2807 | ||
c43f93d7 | 2808 | PR c/67501 |
2809 | * c-parser.c (c_parser_oacc_all_clauses, | |
2810 | c_parser_omp_all_clauses): Remove invalid clause from | |
2811 | list of clauses even if parser->error is set. | |
2812 | ||
0fdcfb93 | 2813 | PR c/67500 |
2814 | * c-parser.c (c_parser_omp_clause_aligned, | |
2815 | c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen): Fix up | |
2816 | test for errors. | |
2817 | * c-decl.c (temp_pop_parm_decls): Allow b->decl equal to | |
2818 | error_mark_node. | |
2819 | ||
deef87db | 2820 | PR c/67495 |
2821 | * c-parser.c (c_parser_omp_atomic): Use c_parser_cast_expression | |
2822 | instead of c_parser_unary_expression. If the result is !lvalue_p, | |
2823 | wrap the result of c_fully_fold into NON_LVALUE_EXPR. | |
2824 | ||
e96292e9 | 2825 | 2015-09-04 Marek Polacek <polacek@redhat.com> |
2826 | ||
2827 | PR sanitizer/67279 | |
2828 | * c-typeck.c (build_binary_op): Don't instrument static initializers. | |
2829 | ||
547c6b1f | 2830 | 2015-09-03 Martin Sebor <msebor@redhat.com> |
2831 | ||
2832 | PR c/66516 | |
6ccd7236 | 2833 | * c-typeck.c (convert_arguments, parser_build_unary_op, |
2834 | build_conditional_expr, c_cast_expr, convert_for_assignment, | |
2835 | build_binary_op, _objc_common_truthvalue_conversion): Call | |
547c6b1f | 2836 | reject_gcc_builtin. |
2837 | (c_decl_implicit): Define. | |
2838 | ||
bd66724c | 2839 | 2015-09-02 Marek Polacek <polacek@redhat.com> |
2840 | ||
2841 | PR c/67432 | |
2842 | * c-parser.c (c_parser_enum_specifier): Give a better error for | |
2843 | an empty enum. | |
2844 | ||
6dc50383 | 2845 | 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org> |
2846 | ||
2847 | * c-aux-info.c, c-parser.c, c-tree.h: Remove useless typedefs. | |
2848 | ||
7ad1d78d | 2849 | 2015-08-12 Marek Polacek <polacek@redhat.com> |
2850 | ||
2851 | * c-decl.c (grokdeclarator): Call error_at instead of error and pass | |
2852 | LOC to it. | |
2853 | ||
c9099388 | 2854 | 2015-08-03 Marek Polacek <polacek@redhat.com> |
2855 | ||
2856 | PR c/67088 | |
2857 | * c-decl.c (check_bitfield_type_and_width): Add location parameter. | |
2858 | Use it. | |
2859 | (grokdeclarator): Pass LOC down to check_bitfield_type_and_width. | |
2860 | ||
9255be07 | 2861 | 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org> |
2862 | ||
2863 | * c-parser.c (c_parser_if_body): Take token_indent_info | |
2864 | argument. Call warn_for_misleading_indentation even when the | |
2865 | body is a semicolon. Extract token_indent_infos corresponding | |
2866 | to the guard, body and next tokens. Adjust call to | |
2867 | warn_for_misleading_indentation accordingly. | |
2868 | (c_parser_else_body): Likewise. | |
2869 | (c_parser_if_statement): Likewise. | |
2870 | (c_parser_while_statement): Likewise. | |
2871 | (c_parser_for_statement): Likewise. | |
2872 | ||
dbbd4c6d | 2873 | 2015-07-28 Luis Felipe Strano Moraes <luis.strano@gmail.com> |
2874 | Manuel López-Ibáñez <manu@gcc.gnu.org> | |
2875 | ||
2876 | * c-decl.c (get_parm_info): Remove static var. Update warning | |
2877 | message. | |
2878 | ||
6784a472 | 2879 | 2015-07-27 Marek Polacek <polacek@redhat.com> |
2880 | ||
2881 | PR c++/66555 | |
2882 | PR c/54979 | |
2883 | * c-typeck.c (parser_build_binary_op): Call warn_tautological_cmp. | |
2884 | ||
8d669e79 | 2885 | 2015-07-20 Marek Polacek <polacek@redhat.com> |
2886 | ||
2887 | PR c++/55095 | |
2888 | * c-typeck.c (digest_init): Pass OPT_Wpedantic to pedwarn_init. | |
2889 | (build_binary_op): Warn about left shift overflows. | |
2890 | ||
1eacc14a | 2891 | 2015-07-09 Andrew MacLeod <amacleod@redhat.com> |
2892 | ||
2893 | * c-array-notation.c: Adjust includes for flags.h changes. | |
2894 | * c-objc-common.c: Likewise. | |
2895 | ||
9ef16211 | 2896 | 2015-07-07 Andrew MacLeod <amacleod@redhat.com> |
2897 | ||
2898 | * c-array-notation.c: Adjust includes. | |
2899 | * c-aux-info.c: Likewise. | |
2900 | * c-convert.c: Likewise. | |
2901 | * c-decl.c: Likewise. | |
2902 | * c-errors.c: Likewise. | |
2903 | * c-lang.c: Likewise. | |
2904 | * c-objc-common.c: Likewise. | |
2905 | * c-parser.c: Likewise. | |
2906 | * c-typeck.c: Likewise. | |
2907 | ||
0949f227 | 2908 | 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org> |
2909 | ||
2910 | PR fortran/66605 | |
2911 | * c-decl.c (finish_function): Call do_warn_unused_parameter. | |
2912 | ||
be23b16f | 2913 | 2015-06-29 Marek Polacek <polacek@redhat.com> |
2914 | ||
2915 | PR c/66322 | |
2916 | * c-typeck.c (struct c_switch): Add BOOL_COND_P and OUTSIDE_RANGE_P. | |
2917 | (c_start_case): Set BOOL_COND_P and OUTSIDE_RANGE_P. Don't warn | |
2918 | about -Wswitch-bool here. | |
2919 | (do_case): Update c_add_case_label call. | |
2920 | (c_finish_case): Update c_do_switch_warnings call. | |
2921 | ||
6290f0db | 2922 | 2015-06-27 Marek Polacek <polacek@redhat.com> |
2923 | ||
2924 | * c-typeck.c: Use VECTOR_TYPE_P throughout. | |
2925 | ||
aa3e402e | 2926 | 2015-06-26 Marek Polacek <polacek@redhat.com> |
2927 | ||
2928 | * c-array-notation.c (fix_builtin_array_notation_fn): Use | |
2929 | INDIRECT_REF_P. | |
2930 | * c-typeck.c (array_to_pointer_conversion): Likewise. | |
2931 | (build_unary_op): Likewise. | |
2932 | (c_finish_return): Likewise. | |
2933 | ||
ec2e0095 | 2934 | 2015-06-25 Andrew MacLeod <amacleod@redhat.com> |
2935 | ||
2936 | * c-decl.c: Remove ipa-ref.h and plugin-api.h from include list. | |
2937 | * c-parser.c: Likewise. | |
2938 | ||
770ff93b | 2939 | 2015-06-25 Richard Sandiford <richard.sandiford@arm.com> |
2940 | ||
2941 | * c-decl.c (detect_field_duplicates_hash): Use nofree_ptr_hash | |
2942 | instead of pointer_hash. | |
2943 | (detect_field_duplicates): Likewise. | |
2944 | ||
f48c7f4a | 2945 | 2015-06-25 Marek Polacek <polacek@redhat.com> |
2946 | ||
2947 | * c-array-notation.c: Use VAR_P throughout. | |
2948 | * c-decl.c: Likewise. | |
2949 | * c-objc-common.c: Likewise. | |
2950 | * c-parser.c: Likewise. | |
2951 | * c-typeck.c: Likewise. | |
2952 | ||
ce41e81a | 2953 | 2015-06-25 Marek Polacek <polacek@redhat.com> |
2954 | ||
2955 | * c-decl.c: Use is_global_var throughout. | |
2956 | * c-parser.c: Likewise. | |
2957 | * c-typeck.c: Likewise. | |
2958 | ||
f2ab3bac | 2959 | 2015-06-17 Andrew MacLeod <amacleod@redhat.com> |
2960 | ||
2961 | * c-array-notation.c: Do not include input.h, line-map.h or is-a.h. | |
2962 | * c-aux-info.c: Likewise. | |
2963 | * c-convert.c: Likewise. | |
2964 | * c-decl.c: Likewise. | |
2965 | * c-errors.c: Likewise. | |
2966 | * c-lang.c: Likewise. | |
2967 | * c-objc-common.c: Likewise. | |
2968 | * c-parser.c: Likewise. | |
2969 | * c-typeck.c: Likewise. | |
2970 | ||
647730ab | 2971 | 2015-06-11 Jan Hubicka <hubicka@ucw.cz> |
2972 | ||
2973 | PR middle-end/66325 | |
2974 | * c-decl.c (start_enum): Set TYPE_PACKED consistently among type | |
2975 | variants. | |
2976 | ||
dd4b0a0d | 2977 | 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com> |
2978 | ||
2979 | * c-decl.c (pop_scope): Register the main translation unit | |
2980 | through the new debug hook. | |
2981 | ||
64486212 | 2982 | 2015-06-08 Andrew MacLeod <amacleod@redhat.com> |
2983 | ||
2984 | * c-array-notation.c : Adjust include files. | |
2985 | * c-aux-info.c : Likewise. | |
2986 | * c-convert.c : Likewise. | |
2987 | * c-decl.c : Likewise. | |
2988 | * c-errors.c : Likewise. | |
2989 | * c-lang.c : Likewise. | |
2990 | * c-lang.h : Likewise. | |
2991 | * c-objc-common.c : Likewise. | |
2992 | * c-parser.c : Likewise. | |
2993 | * c-typeck.c : Likewise. | |
2994 | ||
3a1c9df2 | 2995 | 2015-06-05 Aldy Hernandez <aldyh@redhat.com> |
2996 | ||
2997 | * c-decl.c (finish_struct): Save C_TYPE_INCOMPLETE_VARS and | |
2998 | immediately clobber it. | |
2999 | (c_write_global_declarations_1): Remove call to | |
3000 | check_global_declaration_1. | |
3001 | (c_write_global_declarations_2): Remove. | |
3002 | (c_write_final_cleanups): Rename from c_write_global_declarations. | |
3003 | Remove call to finalize_compilation_unit. | |
3004 | Remove calls to debugging hooks. | |
3005 | * c-objc-common.c: Adjust comment for c_warn_unused_global_decl. | |
3006 | * c-objc-common.h: Remove LANG_HOOKS_WRITE_GLOBALS. | |
3007 | * c-tree.h: Remove c_write_global_declarations. | |
3008 | ||
f77c0292 | 3009 | 2015-06-04 Andrew MacLeod <amacleod@redhat.com> |
3010 | ||
3011 | * c-array-notation.c: Adjust includes for restructured coretypes.h. | |
3012 | * c-aux-info.c: Likewise. | |
3013 | * c-convert.c: Likewise. | |
3014 | * c-decl.c: Likewise. | |
3015 | * c-errors.c: Likewise. | |
3016 | * c-lang.c: Likewise. | |
3017 | * c-objc-common.c: Likewise. | |
3018 | * c-parser.c: Likewise. | |
3019 | * c-typeck.c: Likewise. | |
3020 | ||
b44134dc | 3021 | 2015-06-04 Marek Polacek <polacek@redhat.com> |
3022 | ||
3023 | PR c/66341 | |
3024 | * c-typeck.c (build_c_cast): Wrap VALUE into NON_LVALUE_EXPR if | |
3025 | it is a lvalue. | |
3026 | ||
d1df0bfc | 3027 | 2015-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
3028 | ||
3029 | * c-decl.c (warn_cxx_compat_finish_struct): New parameters code, record_loc. | |
3030 | Warn for empty struct. | |
3031 | (finish_struct): Pass TREE_CODE(t) and loc to warn_cxx_compat_finish_struct. | |
3032 | ||
f8363c5d | 3033 | 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com> |
3034 | ||
3035 | * c-decl.c (start_function): Call plugin before parsing. | |
3036 | (finish_function): Call plugin after parsing. | |
3037 | ||
5b9761f5 | 3038 | 2015-06-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
3039 | ||
3040 | PR c/49551 | |
3041 | * c-decl.c (merge_decls): Merge DECL_COMMON. | |
3042 | ||
eeec71b4 | 3043 | 2015-05-22 Jim Wilson <jim.wilson@linaro.org> |
3044 | ||
3045 | * Make-lang.in (check_gcc_pallelize): Define. | |
3046 | ||
5a4c69dd | 3047 | 2015-05-22 Marek Polacek <polacek@redhat.com> |
3048 | ||
3049 | PR c/47043 | |
3050 | * c-parser.c (c_parser_enum_specifier): Parse and apply enumerator | |
3051 | attributes. | |
3052 | ||
5650b4ff | 3053 | 2015-05-21 Marek Polacek <polacek@redhat.com> |
3054 | ||
3055 | * c-typeck.c (inform_declaration): Use DECL_IS_BUILTIN instead of | |
3056 | DECL_BUILT_IN. | |
3057 | ||
b443c459 | 3058 | 2015-05-20 Marek Polacek <polacek@redhat.com> |
3059 | ||
3060 | * c-decl.c: Use VAR_OR_FUNCTION_DECL_P throughout. | |
3061 | * c-typeck.c: Likewise. | |
3062 | ||
9e73638f | 3063 | 2015-05-19 Marek Polacek <polacek@redhat.com> |
3064 | ||
3065 | * c-typeck.c (start_init): Use AGGREGATE_TYPE_P. | |
3066 | ||
d7729e26 | 3067 | 2015-05-19 Jakub Jelinek <jakub@redhat.com> |
3068 | ||
3069 | PR middle-end/66199 | |
3070 | * c-parser.c (c_parser_omp_for_loop): Don't add | |
3071 | OMP_CLAUSE_SHARED to OMP_PARALLEL_CLAUSES when moving | |
3072 | OMP_CLAUSE_LASTPRIVATE clause to OMP_FOR_CLAUSES. | |
3073 | (c_parser_omp_teams): Set OMP_TEAMS_COMBINED for combined | |
3074 | constructs. | |
3075 | ||
dfcf26a5 | 3076 | 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com> |
3077 | ||
3078 | * c-typeck.c (build_array_ref): Use std::swap instead of explicit | |
9e73638f | 3079 | swaps. |
dfcf26a5 | 3080 | |
09172322 | 3081 | 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org> |
3082 | ||
3083 | PR fortran/44054 | |
3084 | * c-objc-common.c (c_tree_printer): Replace locus pointer with | |
3085 | accessor function. | |
3086 | ||
aac24642 | 3087 | 2015-05-14 Marek Polacek <polacek@redhat.com> |
3088 | ||
3089 | PR c/66066 | |
3090 | PR c/66127 | |
3091 | * c-typeck.c (digest_init): Call pedwarn_init with OPT_Wpedantic | |
3092 | rather than with 0. | |
3093 | ||
e5f01cba | 3094 | 2015-05-12 David Malcolm <dmalcolm@redhat.com> |
3095 | ||
3096 | * c-parser.c (c_parser_if_body): Add param "if_loc", use it | |
3097 | to add a call to warn_for_misleading_indentation. | |
3098 | (c_parser_else_body): Likewise, adding param "else_loc". | |
3099 | (c_parser_if_statement): Check for misleading indentation. | |
3100 | (c_parser_while_statement): Likewise. | |
3101 | (c_parser_for_statement): Likewise. | |
3102 | ||
dc5945dc | 3103 | 2015-05-08 Marek Polacek <polacek@redhat.com> |
3104 | ||
3105 | PR c/64918 | |
3106 | * c-typeck.c (add_pending_init): Use OPT_Woverride_init_side_effects. | |
3107 | (output_init_element): Likewise. | |
3108 | ||
cdc64059 | 3109 | 2015-05-07 Marek Polacek <polacek@redhat.com> |
3110 | ||
3111 | PR c/65179 | |
3112 | * c-typeck.c (build_binary_op): Warn when left shifting a negative | |
3113 | value. | |
3114 | ||
6fa7118e | 3115 | 2015-04-30 Marek Polacek <polacek@redhat.com> |
3116 | ||
3117 | * c-typeck.c (set_init_label): Call error_at instead of error and | |
3118 | pass LOC to it. | |
3119 | ||
98f44804 | 3120 | * c-typeck.c (c_incomplete_type_error): Refactor to use %qT. Print |
3121 | the type of a decl. | |
3122 | ||
2cd7caae | 3123 | * c-typeck.c (c_build_va_arg): Clarify the error message. |
3124 | ||
95cfd391 | 3125 | 2015-04-29 Thomas Schwinge <thomas@codesourcery.com> |
3126 | ||
3127 | * c-parser.c (c_parser_oacc_enter_exit_data): Use | |
3128 | OMP_STANDALONE_CLAUSES. | |
3129 | ||
e65e39f8 | 3130 | 2015-04-28 Marek Polacek <polacek@redhat.com> |
3131 | ||
3132 | * c-parser.c (c_parser_binary_expression): Remove duplicate line. | |
3133 | ||
5580bf42 | 3134 | 2015-04-28 Marek Polacek <polacek@redhat.com> |
3135 | ||
3136 | PR c/65901 | |
3137 | * c-typeck.c (c_build_va_arg): Require TYPE be a complete type. | |
3138 | ||
c3468fc2 | 3139 | 2015-04-25 Marek Polacek <polacek@redhat.com> |
3140 | ||
3141 | PR c/52085 | |
3142 | * c-decl.c (finish_enum): Copy over TYPE_ALIGN. Also check for "mode" | |
3143 | attribute. | |
3144 | ||
0cd6b1b4 | 3145 | 2015-04-23 Marek Polacek <polacek@redhat.com> |
3146 | ||
3147 | PR c/65345 | |
3148 | * c-decl.c (set_labels_context_r): New function. | |
3149 | (store_parm_decls): Call it via walk_tree_without_duplicates. | |
3150 | * c-typeck.c (convert_lvalue_to_rvalue): Use create_tmp_var_raw | |
3151 | instead of create_tmp_var. Build TARGET_EXPR instead of | |
3152 | COMPOUND_EXPR. | |
3153 | (build_atomic_assign): Use create_tmp_var_raw instead of | |
3154 | create_tmp_var. Build TARGET_EXPRs instead of MODIFY_EXPR. | |
3155 | ||
05a827ce | 3156 | 2015-04-20 Ilya Verbin <ilya.verbin@intel.com> |
3157 | ||
3158 | * c-parser.c (c_parser_oacc_enter_exit_data): Remove excess semicolon. | |
3159 | (c_parser_omp_target_update): Add missed %> to error_at (). | |
3160 | ||
de801c28 | 3161 | 2015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org> |
3162 | ||
3163 | PR target/55143 | |
3164 | * c-decl.c (c_default_pointer_mode): Remove definition. | |
3165 | * c-tree.h (c_default_pointer_mode): Remove declaration. | |
3166 | ||
c3b1dca4 | 3167 | 2015-03-27 Tobias Burnus <burnus@net-b.de> |
3168 | ||
3169 | PR c/65586 | |
3170 | * c-parser.c (c_parser_skip_to_pragma_eol): Optionally, don't | |
3171 | error out. | |
3172 | (c_parser_omp_for, c_parser_omp_parallel, c_parser_omp_distribute, | |
3173 | c_parser_omp_teams, c_parser_omp_target, c_parser_omp_declare): | |
3174 | Update calls to not error for skipped omp pragmas with -fopenmp-simd. | |
3175 | ||
1443772f | 3176 | 2015-03-19 Jakub Jelinek <jakub@redhat.com> |
3177 | ||
3178 | * c-decl.c (c_decl_attributes): Also add "omp declare target" | |
3179 | attribute for DECL_EXTERNAL VAR_DECLs. | |
3180 | ||
76738f56 | 3181 | 2015-03-11 Jakub Jelinek <jakub@redhat.com> |
3182 | ||
3183 | * c-parser.c (c_parse_init): Don't call xstrdup on get_identifier | |
3184 | argument. | |
3185 | ||
16f958b3 | 3186 | 2015-03-10 Jakub Jelinek <jakub@redhat.com> |
3187 | ||
3188 | PR c/65120 | |
3189 | * c-typeck.c (parser_build_binary_op): Check for tcc_comparison | |
3190 | before preparing arguments to warn_logical_not_parentheses. | |
3191 | ||
6054103a | 3192 | 2015-03-09 Jakub Jelinek <jakub@redhat.com> |
3193 | ||
3194 | PR c/65120 | |
3195 | * c-typeck.c (parser_build_binary_op): Don't warn for | |
3196 | !!x == y or !b == y where b is _Bool. | |
3197 | ||
de3a1e03 | 3198 | 2015-03-09 Marek Polacek <polacek@redhat.com> |
3199 | ||
3200 | * c-convert.c (convert): Make use of do_ubsan_in_current_function. | |
3201 | * c-decl.c (grokdeclarator): Likewise. | |
3202 | * c-typeck.c (build_binary_op): Likewise. | |
3203 | ||
084e6bf0 | 3204 | 2015-02-27 Marek Polacek <polacek@redhat.com> |
3205 | ||
3206 | PR c/65228 | |
3207 | * c-decl.c (start_decl): Return NULL_TREE if decl is an error node. | |
3208 | ||
4d7c4134 | 3209 | 2015-02-14 Marek Polacek <polacek@redhat.com> |
3210 | ||
3211 | PR c/64768 | |
3212 | * c-decl.c (grokdeclarator): Set the range of a flexible array member | |
3213 | declared through a typedef name. | |
3214 | ||
b1380826 | 3215 | 2015-02-13 Marek Polacek <polacek@redhat.com> |
3216 | ||
3217 | PR c/65050 | |
3218 | * c-decl.c (grokdeclarator): Print also the type when giving | |
3219 | the error message about array's incomplete element type. | |
3220 | ||
35ff54b5 | 3221 | 2015-02-11 Jakub Jelinek <jakub@redhat.com> |
3222 | ||
3223 | PR c/64824 | |
3224 | * c-parser.c (c_parser_binary_expression): Fix OpenMP stack[sp].prec | |
3225 | check in the POP macro. | |
3226 | ||
46861609 | 3227 | 2015-02-09 Marek Polacek <polacek@redhat.com> |
3228 | ||
3229 | PR c/64856 | |
3230 | * c-typeck.c (process_init_element): Don't always wrap | |
3231 | COMPOUND_LITERAL_EXPR in a SAVE_EXPR in C99 mode when | |
3232 | initializing a range of elements. | |
3233 | ||
bbf8fbec | 3234 | 2015-02-04 Jakub Jelinek <jakub@redhat.com> |
3235 | ||
3236 | PR c/64824 | |
3237 | PR c/64868 | |
3238 | * c-parser.c (c_parser_omp_atomic): Handle RDIV_EXPR. | |
3239 | ||
46861609 | 3240 | 2015-02-02 Bruno Loff <bruno.loff@gmail.com> |
1f0ce3ac | 3241 | |
3242 | * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks after | |
3243 | processing enum declaration. | |
3244 | ||
70279be9 | 3245 | 2015-01-29 Marek Polacek <polacek@redhat.com> |
3246 | ||
3247 | PR c/64709 | |
3248 | * c-typeck.c (pop_init_level): If constructor_elements has | |
3249 | exactly one element with integer_zerop value, set constructor_zeroinit | |
3250 | to 1. Remove braces around warning_init call. | |
3251 | ||
591970b4 | 3252 | 2015-01-27 Jakub Jelinek <jakub@redhat.com> |
3253 | ||
3254 | PR c/64766 | |
3255 | * c-typeck.c (store_init_value): Don't overwrite DECL_INITIAL | |
3256 | of FUNCTION_DECLs with error_mark_node. | |
3257 | ||
87778dc4 | 3258 | 2015-01-26 Jakub Jelinek <jakub@redhat.com> |
3259 | ||
3260 | PR c/64778 | |
3261 | * c-typeck.c (convert_arguments): Return -1 if there are | |
3262 | error_args, even if we've diagnosed too many arguments. | |
3263 | ||
cffdfb3d | 3264 | 2015-01-21 Richard Biener <rguenther@suse.de> |
3265 | ||
3266 | PR middle-end/64313 | |
3267 | * c-decl.c (merge_decls): Call set_builtin_decl_declared_p | |
3268 | for builtins the user declared correctly. | |
3269 | ||
ca4c3545 | 3270 | 2015-01-15 Thomas Schwinge <thomas@codesourcery.com> |
3271 | Bernd Schmidt <bernds@codesourcery.com> | |
3272 | Cesar Philippidis <cesar@codesourcery.com> | |
3273 | James Norris <jnorris@codesourcery.com> | |
3274 | Jakub Jelinek <jakub@redhat.com> | |
3275 | Ilmir Usmanov <i.usmanov@samsung.com> | |
3276 | ||
3277 | * c-parser.c: Include "gomp-constants.h". | |
3278 | (c_parser_omp_clause_map): Use enum gomp_map_kind instead of enum | |
3279 | omp_clause_map_kind. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. | |
3280 | Use OMP_CLAUSE_SET_MAP_KIND. | |
3281 | (c_parser_pragma): Handle PRAGMA_OACC_ENTER_DATA, | |
3282 | PRAGMA_OACC_EXIT_DATA, PRAGMA_OACC_UPDATE. | |
3283 | (c_parser_omp_construct): Handle PRAGMA_OACC_CACHE, | |
3284 | PRAGMA_OACC_DATA, PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, | |
3285 | PRAGMA_OACC_PARALLEL, PRAGMA_OACC_WAIT. | |
3286 | (c_parser_omp_clause_name): Handle "auto", "async", "copy", | |
3287 | "copyout", "create", "delete", "deviceptr", "gang", "host", | |
3288 | "num_gangs", "num_workers", "present", "present_or_copy", "pcopy", | |
3289 | "present_or_copyin", "pcopyin", "present_or_copyout", "pcopyout", | |
3290 | "present_or_create", "pcreate", "seq", "self", "vector", | |
3291 | "vector_length", "wait", "worker". | |
3292 | (OACC_DATA_CLAUSE_MASK, OACC_KERNELS_CLAUSE_MASK) | |
3293 | (OACC_ENTER_DATA_CLAUSE_MASK, OACC_EXIT_DATA_CLAUSE_MASK) | |
3294 | (OACC_LOOP_CLAUSE_MASK, OACC_PARALLEL_CLAUSE_MASK) | |
3295 | (OACC_UPDATE_CLAUSE_MASK, OACC_WAIT_CLAUSE_MASK): New macros. | |
3296 | (c_parser_omp_variable_list): Handle OMP_CLAUSE__CACHE_. | |
3297 | (c_parser_oacc_wait_list, c_parser_oacc_data_clause) | |
3298 | (c_parser_oacc_data_clause_deviceptr) | |
3299 | (c_parser_omp_clause_num_gangs, c_parser_omp_clause_num_workers) | |
3300 | (c_parser_oacc_clause_async, c_parser_oacc_clause_wait) | |
3301 | (c_parser_omp_clause_vector_length, c_parser_oacc_all_clauses) | |
3302 | (c_parser_oacc_cache, c_parser_oacc_data, c_parser_oacc_kernels) | |
3303 | (c_parser_oacc_enter_exit_data, c_parser_oacc_loop) | |
3304 | (c_parser_oacc_parallel, c_parser_oacc_update) | |
3305 | (c_parser_oacc_wait): New functions. | |
3306 | * c-tree.h (c_finish_oacc_parallel, c_finish_oacc_kernels) | |
3307 | (c_finish_oacc_data): New prototypes. | |
3308 | * c-typeck.c: Include "gomp-constants.h". | |
3309 | (handle_omp_array_sections): Handle GOMP_MAP_FORCE_DEVICEPTR. Use | |
3310 | GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use | |
3311 | OMP_CLAUSE_SET_MAP_KIND. | |
3312 | (c_finish_oacc_parallel, c_finish_oacc_kernels) | |
3313 | (c_finish_oacc_data): New functions. | |
3314 | (c_finish_omp_clauses): Handle OMP_CLAUSE__CACHE_, | |
3315 | OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS, | |
3316 | OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, | |
3317 | OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_GANG, | |
3318 | OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, and OMP_CLAUSE_MAP's | |
3319 | GOMP_MAP_FORCE_DEVICEPTR. | |
3320 | ||
1f78217c | 3321 | 2015-01-09 Michael Collison <michael.collison@linaro.org> |
3322 | ||
3323 | * c-array-notation.c: Include hash-set.h, machmode.h, | |
3324 | vec.h, double-int.h, input.h, alias.h, symtab.h, options.h | |
3325 | fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h. | |
3326 | * c-aux-info.c: Ditto. | |
3327 | * c-convert.c: Ditto. | |
3328 | * c-decl.c: Ditto. | |
3329 | * c-errors.c: Ditto. | |
3330 | * c-lang.c: Dittoxs. | |
3331 | * c-objc-common.c: Ditto. | |
3332 | * c-parser.c: Ditto. | |
3333 | * c-typeck.c: Include hash-set.h, machmode.h, | |
3334 | vec.h, double-int.h, input.h, alias.h, symtab.h, options.h | |
3335 | fold-const.h, wide-int.h, inchash.h, real.h and | |
3336 | fixed-value.h due to flattening of tree.h. | |
3337 | ||
15e18a8c | 3338 | 2015-01-07 Marek Polacek <polacek@redhat.com> |
3339 | ||
3340 | PR c/64417 | |
3341 | * c-typeck.c (process_init_element): Disallow initialization of | |
3342 | a flexible array member with a string constant if the structure | |
3343 | is in an array. | |
3344 | ||
d353bf18 | 3345 | 2015-01-05 Jakub Jelinek <jakub@redhat.com> |
3346 | ||
823a9dd4 | 3347 | PR sanitizer/64344 |
3348 | * c-typeck.c (convert_for_assignment, c_finish_return): For | |
3349 | -fsanitize=float-cast-overflow casts from REAL_TYPE to integer/enum | |
3350 | types also set in_late_binary_op around convert call. | |
3351 | * c-convert.c (convert): For -fsanitize=float-cast-overflow REAL_TYPE | |
3352 | to integral type casts, if not in_late_binary_op, pass c_fully_fold | |
3353 | result on expr as last argument to ubsan_instrument_float_cast, | |
3354 | if in_late_binary_op, don't use c_save_expr but save_expr. | |
3355 | ||
d353bf18 | 3356 | Update copyright years. |
3357 | ||
92b63884 | 3358 | 2015-01-05 Marek Polacek <polacek@redhat.com> |
3359 | ||
3360 | PR c/64423 | |
3361 | * c-typeck.c (build_array_ref): Pass loc down to | |
3362 | warn_array_subscript_with_type_char. | |
3363 | ||
92a44a68 | 3364 | 2014-12-20 Martin Uecker <uecker@eecs.berkeley.edu> |
8a8211df | 3365 | |
3366 | * c-typeck.c: New behavious for pointers to arrays with qualifiers | |
a49621cf | 3367 | (common-pointer-type): For pointers to arrays take qualifiers from |
8a8211df | 3368 | element type. |
a49621cf | 3369 | (build_conditional_expr): Add warnings for lost qualifiers. |
8a8211df | 3370 | (comp-target-types): Allow pointers to arrays with different qualifiers. |
a49621cf | 3371 | (convert-for-assignment): Adapt warnings for discarded qualifiers. Add |
8a8211df | 3372 | WARNING_FOR_QUALIFIERS macro and rename WARN_FOR_QUALIFIERS |
a49621cf | 3373 | to PEDWARN_FOR_QUALIFIERS. |
8a8211df | 3374 | |
35ea0139 | 3375 | 2014-12-17 Jakub Jelinek <jakub@redhat.com> |
3376 | ||
3377 | PR sanitizer/64289 | |
3378 | * c-convert.c: Include ubsan.h. | |
3379 | (convert): For real -> integral casts and | |
3380 | -fsanitize=float-cast-overflow don't call convert_to_integer, but | |
3381 | instead instrument the float cast directly. | |
3382 | ||
f9e245b2 | 3383 | 2014-11-29 Jakub Jelinek <jakub@redhat.com> |
3384 | ||
3385 | * c-typeck.c (convert_lvalue_to_rvalue, build_atomic_assign, | |
3386 | c_finish_stmt_expr): Remove NULL last argument from | |
3387 | create_tmp_var_raw and create_tmp_var calls. | |
3388 | * c-array-notation.c (fix_builtin_array_notation_fn, | |
3389 | build_array_notation_expr, fix_conditional_array_notations_1, | |
3390 | fix_array_notation_expr, fix_array_notation_call_expr): Likewise. | |
3391 | ||
fce2dbd1 | 3392 | 2014-11-28 Marek Polacek <polacek@redhat.com> |
3393 | ||
3394 | PR c/63862 | |
3395 | * c-typeck.c (build_binary_op) <RSHIFT_EXPR, LSHIFT_EXPR>: Don't | |
3396 | convert the right operand to integer type. | |
3397 | ||
396c36b7 | 3398 | 2014-11-25 Marek Polacek <polacek@redhat.com> |
3399 | ||
3400 | PR c/63877 | |
3401 | * c-decl.c (start_function): Disable -Wmissing-declarations warning | |
3402 | for inline functions. | |
3403 | ||
c61ef207 | 3404 | 2014-11-21 Jakub Jelinek <jakub@redhat.com> |
3405 | ||
3406 | PR target/63764 | |
3407 | * c-typeck.c (build_array_ref): Adjust | |
3408 | convert_vector_to_pointer_for_subscript caller. If it returns true, | |
3409 | call non_lvalue_loc on the result. | |
3410 | ||
565353e8 | 3411 | 2014-11-11 Richard Biener <rguenther@suse.de> |
3412 | ||
3413 | * c-decl.c (c_init_decl_processing): Do not set pedantic_lvalues | |
3414 | to true. | |
3415 | ||
fdd735a7 | 3416 | 2014-11-10 Andi Kleen <ak@linux.intel.com> |
3417 | ||
3418 | PR c/60804 | |
3419 | * c-parser.c (c_parser_statement_after_labels): Call | |
3420 | check_no_cilk. | |
3421 | (c_parser_if_statement): Dito. | |
3422 | (c_parser_switch_statement): Dito. | |
3423 | (c_parser_while_statement): Dito. | |
3424 | (c_parser_do_statement): Dito. | |
3425 | (c_parser_for_statement): Dito. | |
3426 | * c-typeck.c (c_finish_loop): Dito. | |
3427 | ||
0feb4de1 | 3428 | 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com> |
3429 | ||
3430 | * c-typeck.c (build_binary_op): Use OPT_Wshift_count_negative and | |
3431 | OPT_Wshift_count_overflow in the warnings. | |
3432 | ||
a3fec48a | 3433 | 2014-10-30 Marek Polacek <polacek@redhat.com> |
3434 | ||
3435 | * c-objc-common.c (c_tree_printer) <case 'T'>: For a typedef name, | |
3436 | print the stripped version as well, if they're not the same. | |
3437 | ||
3754d046 | 3438 | 2014-10-29 Richard Sandiford <richard.sandiford@arm.com> |
3439 | ||
3440 | * c-decl.c, c-tree.h, c-typeck.c: Remove redundant enum from | |
3441 | machine_mode. | |
3442 | ||
1140c305 | 3443 | 2014-10-28 Andrew MacLeod <amacleod@redhat.com> |
3444 | ||
3445 | * c-decl.c: Adjust include files. | |
3446 | * c-parser.c: Ditto. | |
3447 | ||
ab103e33 | 3448 | 2014-10-27 Phil Muldoon <pmuldoon@redhat.com> |
3449 | Tom Tromey <tromey@redhat.com> | |
3450 | ||
3451 | * c-tree.h (enum c_oracle_request): New. | |
3452 | (c_binding_oracle_function): New typedef. | |
3453 | (c_binding_oracle, c_pushtag, c_bind): Declare. | |
3454 | * c-decl.c (c_binding_oracle): New global. | |
3455 | (I_SYMBOL_CHECKED): New macro. | |
3456 | (i_symbol_binding): New function. | |
3457 | (I_SYMBOL_BINDING, I_SYMBOL_DECL): Redefine. | |
3458 | (I_TAG_CHECKED): New macro. | |
3459 | (i_tag_binding): New function. | |
3460 | (I_TAG_BINDING, I_TAG_DECL): Redefine. | |
3461 | (I_LABEL_CHECKED): New macro. | |
3462 | (i_label_binding): New function. | |
3463 | (I_LABEL_BINDING, I_LABEL_DECL): Redefine. | |
3464 | (c_print_identifier): Save and restore c_binding_oracle. | |
3465 | (c_pushtag, c_bind): New functions. | |
3466 | ||
94ea8568 | 3467 | 2014-10-27 Andrew MacLeod <amacleod@redhat.com> |
3468 | ||
3469 | * c-typeck.c: Adjust include files. | |
3470 | ||
32ecf960 | 3471 | 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org> |
3472 | ||
3473 | PR c++/53061 | |
3474 | * c-objc-common.c (c_objc_common_init): Do not do diagnostics | |
3475 | initialization here... | |
3476 | (c_initialize_diagnostics): ... but here. Set defaults after | |
3477 | building pretty-printer. | |
3478 | ||
2981340f | 3479 | 2014-10-23 Marek Polacek <polacek@redhat.com> |
3480 | ||
3481 | PR c/63626 | |
3482 | * c-decl.c (pop_scope): Don't print warning in external_scope. | |
3483 | ||
d303aeaf | 3484 | 2014-10-19 Marek Polacek <polacek@redhat.com> |
3485 | ||
3486 | PR c/63567 | |
3487 | * c-typeck.c (output_init_element): Allow initializing objects with | |
3488 | static storage duration with compound literals even in C99 and add | |
3489 | pedwarn for it. | |
3490 | ||
bccf97da | 3491 | 2014-10-17 Marek Polacek <polacek@redhat.com> |
3492 | ||
3493 | PR c/63567 | |
3494 | * c-typeck.c (digest_init): Allow initializing objects with static | |
3495 | storage duration with compound literals even in C99 and add pedwarn | |
3496 | for it. | |
3497 | ||
d9c77450 | 3498 | 2014-10-17 Marek Polacek <polacek@redhat.com> |
3499 | ||
3500 | PR c/63543 | |
3501 | * c-tree.h (C_TYPE_ERROR_REPORTED): Define. | |
3502 | * c-typeck.c (build_indirect_ref): Don't print the "dereferencing..." | |
3503 | error multiple times. Print the type. | |
3504 | ||
a2bbd0a7 | 3505 | 2014-10-17 Marek Polacek <polacek@redhat.com> |
3506 | ||
3507 | PR c/63549 | |
3508 | * c-typeck.c (build_array_ref): Bail if the index in an incomplete | |
3509 | type. | |
3510 | ||
e610d2b2 | 3511 | 2014-10-17 Marek Polacek <polacek@redhat.com> |
3512 | ||
3513 | * c-decl.c (grokdeclarator): Use OPT_Wimplicit_int unconditionally. | |
3514 | (start_function): Use OPT_Wimplicit_int instead of 0. | |
3515 | (store_parm_decls_oldstyle): Likewise. | |
3516 | ||
6b6e56b6 | 3517 | 2014-10-17 Alan Modra <amodra@gmail.com> |
3518 | ||
3519 | PR middle-end/61848 | |
3520 | * c-decl.c (merge_decls): Don't merge section name or tls model | |
3521 | to newdecl symtab node, instead merge to olddecl. Override | |
3522 | existing olddecl section name. Set tls_model for all thread-local | |
3523 | vars, not just OMP thread-private ones. Remove incorrect comment. | |
3524 | ||
a3020f2f | 3525 | 2014-10-16 Andrew MacLeod <amacleod@redhat.com> |
3526 | ||
3527 | * c-decl.c: Adjust include files. | |
3528 | ||
9f75f026 | 3529 | 2014-10-14 DJ Delorie <dj@redhat.com> |
3530 | ||
3531 | * c-parser.c (c_parse_init): Add RID entries for each __intN. | |
3532 | (c_token_starts_typename): Check all __intN, not just __int128. | |
3533 | (c_token_starts_declspecs): Likewise. | |
3534 | (c_parser_declspecs): Likewise. | |
3535 | (c_parser_attribute_any_word): Likewise. | |
3536 | (c_parser_objc_selector): Likewise. | |
3537 | * c-tree.h (c_typespec_keyword): cts_int128 -> cts_int_n. | |
3538 | (struct c_declspecs): Add int_n_idx field to record *which* __intN | |
3539 | is specified. | |
3540 | * c-decl.c (declspecs_add_type): Check for all __intN, not just | |
3541 | __int128. | |
3542 | (finish_declspecs): Likewise. | |
3543 | ||
4f284d4a | 3544 | 2014-10-13 Anthony Brandon <anthony.brandon@gmail.com> |
3545 | ||
a49621cf | 3546 | * c-parser.c (c_parser_all_labels): New function to replace |
4f284d4a | 3547 | the duplicate code. |
a49621cf | 3548 | (c_parser_statement): Call the new function. |
4f284d4a | 3549 | |
61a892dc | 3550 | 2014-10-09 Marek Polacek <polacek@redhat.com> |
3551 | ||
3552 | PR c/63480 | |
3553 | * c-typeck.c (pop_init_level): Don't warn about initializing | |
3554 | with { }. | |
3555 | ||
4e888fd9 | 3556 | 2014-10-07 Marek Polacek <polacek@redhat.com> |
3557 | ||
3558 | PR c/59717 | |
3559 | * c-decl.c (header_for_builtin_fn): New function. | |
3560 | (implicitly_declare): Suggest which header to include. | |
3561 | ||
224bdd51 | 3562 | 2014-10-07 Marek Polacek <polacek@redhat.com> |
3563 | ||
3564 | * c-convert.c (convert): Use error_operand_p. | |
3565 | * c-typeck.c (require_complete_type): Likewise. | |
3566 | (really_atomic_lvalue): Likewise. | |
3567 | (digest_init): Likewise. | |
3568 | (handle_omp_array_sections_1): Likewise. | |
3569 | ||
a2bc79db | 3570 | 2014-10-03 Marek Polacek <polacek@redhat.com> |
3571 | ||
3572 | PR c/63453 | |
3573 | * c-decl.c (pop_scope): Don't warn about "inline function declared | |
3574 | but never defined" for functions marked with gnu_inline attribute. | |
3575 | ||
4fc4088b | 3576 | 2014-09-25 Jakub Jelinek <jakub@redhat.com> |
3577 | ||
3578 | PR c++/63249 | |
3579 | * c-parser.c (c_parser_omp_variable_list): Call mark_exp_read | |
3580 | on low_bound and length. | |
3581 | ||
5213d6c9 | 3582 | 2014-09-24 Marek Polacek <polacek@redhat.com> |
3583 | ||
3584 | PR c/61405 | |
3585 | PR c/53874 | |
3586 | * c-parser.c: Don't define CPP_KEYWORD. | |
3587 | (c_parser_switch_statement): Pass original type to c_finish_case. | |
3588 | * c-tree.h (c_finish_case): Update declaration. | |
3589 | * c-typeck.c (c_finish_case): Add TYPE parameter. Pass it | |
3590 | conditionally to c_do_switch_warnings. | |
3591 | ||
6ea2b1bc | 3592 | 2014-09-03 Marek Polacek <polacek@redhat.com> |
3593 | ||
3594 | PR c/62024 | |
3595 | * c-parser.c (c_parser_static_assert_declaration_no_semi): Strip no-op | |
3596 | conversions. | |
3597 | ||
40750995 | 3598 | 2014-09-02 Jakub Jelinek <jakub@redhat.com> |
3599 | Balaji V. Iyer <balaji.v.iyer@intel.com> | |
3600 | Igor Zamyatin <igor.zamyatin@intel.com> | |
3601 | ||
3602 | * c-parser.c (c_parser_cilk_for): New function. | |
3603 | (c_parser_cilk_grainsize): Likewise. | |
3604 | (c_get_temp_regvar): Likewise. | |
3605 | (c_parser_statement_after_labels): Added RID_CILK_FOR case. | |
3606 | (c_parser_pragma): Added PRAGMA_CILK_GRAINSIZE case. | |
3607 | (c_parser_omp_for_loop): Added CILK_FOR and CILK_SIMD checks. | |
3608 | * c-typeck.c (c_finish_omp_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ | |
3609 | case. | |
3610 | ||
8c583613 | 3611 | 2014-08-27 Chen Gang <gang.chen.5i5j@gmail.com> |
3612 | ||
3613 | * c-aux-info.c (gen_type): Resize 'buff' from 10 to 23 bytes, | |
3614 | with using HOST_WIDE_INT without truncation to 'int' | |
3615 | ||
dc6229e8 | 3616 | 2014-08-22 Marek Polacek <polacek@redhat.com> |
3617 | ||
3618 | PR c++/62199 | |
3619 | * c-typeck.c (parser_build_binary_op): Adjust call to | |
3620 | warn_logical_not_parentheses. | |
3621 | ||
5fdda74b | 3622 | 2014-08-22 Igor Zamyatin <igor.zamyatin@intel.com> |
3623 | ||
3624 | PR other/62008 | |
3625 | * c-parser.c (c_parser_array_notation): Check for correct | |
3626 | type of an array added. | |
3627 | ||
78bf4156 | 3628 | 2014-08-19 Marek Polacek <polacek@redhat.com> |
3629 | ||
3630 | PR c++/62153 | |
3631 | * c-typeck.c (build_binary_op): If either operand of a comparison | |
3632 | is a boolean expression, call maybe_warn_bool_compare. | |
3633 | ||
005b8fe7 | 3634 | 2014-08-19 Patrick Palka <ppalka@gcc.gnu.org> |
3635 | ||
3636 | PR c/45584 | |
3637 | * c-typeck.c (build_c_cast): Do a conversion even when the | |
3638 | TYPE_MAIN_VARIANTs are the same. | |
3639 | ||
508ea33a | 3640 | 2014-08-19 Marek Polacek <polacek@redhat.com> |
3641 | ||
3642 | * c-decl.c (diagnose_mismatched_decls): Unconditionally call | |
3643 | pedwarn_c99 instead of pedwarn. | |
3644 | (grokfield): Likewise. | |
3645 | (warn_defaults_to): New function. | |
3646 | (grokdeclarator): Call warn_defaults_to instead of pedwarn_c99. | |
3647 | Unconditionally call pedwarn_c99 instead of pedwarn. | |
3648 | (start_function): Call warn_defaults_to instead of pedwarn_c99. | |
3649 | (declspecs_add_scspec): Call pedwarn_c99 instead of pedwarn, don't | |
3650 | check flag_isoc11 before. | |
3651 | * c-errors.c (pedwarn_c99): Change the return type to bool. | |
3652 | Handle -Wc99-c11-compat. | |
3653 | * c-parser.c (disable_extension_diagnostics): Handle | |
3654 | warn_c99_c11_compat. | |
3655 | (restore_extension_diagnostics): Likewise. | |
3656 | (c_parser_static_assert_declaration_no_semi): Call pedwarn_c99 | |
3657 | instead of pedwarn, don't check flag_isoc11 before. | |
3658 | (c_parser_declspecs): Likewise. | |
3659 | (c_parser_alignas_specifier): Likewise. | |
3660 | (c_parser_alignof_expression): Likewise. | |
3661 | (c_parser_generic_selection): Likewise. | |
3662 | * c-tree.h (pedwarn_c99): Update declaration. | |
3663 | * c-typeck.c (c_finish_return): Call pedwarn or warning_at instead | |
3664 | of pedwarn_c99. | |
3665 | ||
806fe15e | 3666 | 2014-08-19 Marek Polacek <polacek@redhat.com> |
3667 | ||
3668 | * c-decl.c (warn_variable_length_array): Pass OPT_Wvla unconditionally | |
3669 | to pedwarn_c90. | |
3670 | * c-errors.c: Include "opts.h". | |
3671 | (pedwarn_c90): Rewrite to handle -Wno-c90-c99-compat better. | |
3672 | * c-parser.c (disable_extension_diagnostics): Handle negative value | |
3673 | of warn_c90_c99_compat, too. | |
3674 | (restore_extension_diagnostics): Likewise. | |
3675 | (c_parser_compound_statement_nostart): Pass | |
3676 | OPT_Wdeclaration_after_statement unconditionally to pedwarn_c90. | |
3677 | ||
89868e45 | 3678 | 2014-08-12 Marek Polacek <polacek@redhat.com> |
3679 | ||
3680 | * c-parser.c (c_parser_postfix_expression) <case RID_FUNCTION_NAME>: | |
3681 | Add pedwarn. | |
3682 | (c_parser_postfix_expression) <case RID_PRETTY_FUNCTION_NAME>: | |
3683 | Likewise. | |
3684 | (c_parser_postfix_expression) <case RID_C99_FUNCTION_NAME>: Likewise. | |
3685 | ||
92a44a68 | 3686 | 2014-08-10 Marek Polacek <polacek@redhat.com> |
890c2e2f | 3687 | |
3688 | PR c/51849 | |
3689 | * c-decl.c (build_array_declarator): Remove check for !flag_isoc99. | |
3690 | Call pedwarn_c90 instead of pedwarn. | |
3691 | (check_bitfield_type_and_width): Likewise. | |
3692 | (declspecs_add_qual): Likewise. | |
3693 | (declspecs_add_type): Likewise. | |
3694 | (warn_variable_length_array): Unify function for -pedantic and -Wvla. | |
3695 | Adjust to only call pedwarn_c90. | |
3696 | (grokdeclarator): Remove pedantic && !flag_isoc99 check. Call | |
3697 | pedwarn_c90 instead of pedwarn. | |
3698 | * c-errors.c (pedwarn_c90): Handle -Wc90-c99-compat. | |
3699 | * c-parser.c (disable_extension_diagnostics): Handle | |
3700 | warn_c90_c99_compat. | |
3701 | (restore_extension_diagnostics): Likewise. | |
3702 | (c_parser_enum_specifier): Remove check for !flag_isoc99. Call | |
3703 | pedwarn_c90 instead of pedwarn. | |
3704 | (c_parser_initelt): Likewise. | |
3705 | (c_parser_postfix_expression): Likewise. | |
3706 | (c_parser_postfix_expression_after_paren_type): Likewise. | |
3707 | (c_parser_compound_statement_nostart): Remove check for !flag_isoc99. | |
3708 | * c-tree.h: Fix formatting. | |
3709 | * c-typeck.c (build_array_ref): Remove check for !flag_isoc99. Call | |
3710 | pedwarn_c90 instead of pedwarn. | |
3711 | ||
7149db5f | 3712 | 2014-08-07 Trevor Saunders <tsaunders@mozilla.com> |
3713 | ||
3714 | * c-typeck.c: Remove include of pointer-set.h. | |
3715 | ||
1c75251e | 3716 | 2014-08-07 Marek Polacek <polacek@redhat.com> |
3717 | ||
3718 | * c-typeck.c (pointer_diff): Remove P - (P + CST) optimization. | |
3719 | ||
06ecf488 | 3720 | 2014-08-02 Trevor Saunders <tsaunders@mozilla.com> |
3721 | ||
3722 | * c-typeck.c: Use hash_map instead of pointer_map. | |
3723 | ||
431205b7 | 3724 | 2014-08-02 Trevor Saunders <tsaunders@mozilla.com> |
3725 | ||
3726 | * c-decl.c: Use hash_set instead of pointer_set. | |
3727 | ||
3394c80c | 3728 | 2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com> |
3729 | ||
3730 | PR middle-end/61455 | |
3731 | * c-array-notation.c (expand_array_notations): Handling | |
3732 | of DECL_EXPR added. | |
3733 | ||
f22a2cb7 | 3734 | 2014-07-31 Marc Glisse <marc.glisse@inria.fr> |
3735 | ||
3736 | PR c++/60517 | |
3737 | * c-typeck.c (c_finish_return): Return 0 instead of the address of | |
3738 | a local variable. | |
3739 | ||
74691f46 | 3740 | 2014-07-30 Tom Tromey <tromey@redhat.com> |
3741 | ||
3742 | * c-typeck.c (struct constructor_stack) <designator_depth>: New | |
3743 | field. | |
3744 | (really_start_incremental_init, push_init_level): Initialize | |
3745 | designator_depth. | |
3746 | (pop_init_level): Set global designator_depth. | |
3747 | (process_init_element): Check for designated_init attribute. | |
3748 | ||
f9767fb6 | 3749 | 2014-07-20 Marek Polacek <polacek@redhat.com> |
3750 | ||
3751 | PR c/61852 | |
3752 | * c-decl.c (implicit_decl_warning): Add location_t parameter. Use it. | |
3753 | (implicitly_declare): Pass location to implicit_decl_warning. | |
3754 | ||
305d96bc | 3755 | 2014-07-14 Jakub Jelinek <jakub@redhat.com> |
3756 | ||
3757 | PR middle-end/61294 | |
3758 | * c-parser.c (c_parser_expr_list): Add new argument literal_zero_mask. | |
3759 | If non-NULL, call c_parser_check_literal_zero. | |
3760 | (c_parser_check_literal_zero): New function. | |
3761 | (c_parser_postfix_expression_after_primary): Adjust | |
3762 | c_parser_expr_list caller, handle -Wmemset-transposed-args. | |
3763 | ||
87d59e72 | 3764 | 2014-07-06 Marek Polacek <polacek@redhat.com> |
3765 | ||
3766 | PR c/6940 | |
3767 | * c-decl.c (grokdeclarator): Set C_ARRAY_PARAMETER. | |
3768 | * c-tree.h (C_ARRAY_PARAMETER): Define. | |
3769 | * c-typeck.c (c_expr_sizeof_expr): Warn when using sizeof on an array | |
3770 | function parameter. | |
3771 | ||
752098c8 | 3772 | 2014-07-02 Jan Hubicka <hubicka@ucw.cz> |
92a44a68 | 3773 | Chen Gang <gang.chen.5i5j@gmail.com> |
752098c8 | 3774 | |
3775 | * c-decl.c (duplicate_decls): CLear DECL_STRUCT_FUNCTION before | |
3776 | releasing symbol. | |
3777 | ||
1207866e | 3778 | 2014-07-01 Marek Polacek <polacek@redhat.com> |
3779 | ||
3780 | * c-typeck.c (convert_for_assignment): Pass OPT_Wint_conversion | |
3781 | instead of 0 to WARN_FOR_ASSIGNMENT. | |
3782 | ||
7a6bbb76 | 3783 | 2014-07-01 Marek Polacek <polacek@redhat.com> |
3784 | ||
3785 | PR c/58286 | |
3786 | * c-typeck.c (convert_for_assignment): Pass | |
3787 | OPT_Wincompatible_pointer_types instead of 0 to WARN_FOR_ASSIGNMENT. | |
3788 | ||
70575064 | 3789 | 2014-06-30 Marek Polacek <polacek@redhat.com> |
3790 | ||
3791 | * c-decl.c (grokdeclarator): Don't instrument VLAs if the function | |
3792 | has no_sanitize_undefined attribute. | |
3793 | ||
4879e4cf | 3794 | 2014-06-30 Igor Zamyatin <igor.zamyatin@intel.com> |
3795 | ||
3796 | PR middle-end/57541 | |
3797 | * c-array-notation.c (fix_builtin_array_notation_fn): | |
3798 | Check for 0 arguments in builtin call. Check that bultin argument is | |
3799 | correct. | |
3800 | * c-parser.c (c_parser_array_notation): Check for incorrect initial | |
3801 | index. | |
3802 | ||
45c5b823 | 3803 | 2014-06-27 Sebastian Huber <sebastian.huber@embedded-brains.de> |
3804 | ||
3805 | * c-parser.c (c_parser_declaration_or_fndef): Discard all type | |
3806 | qualifiers in __auto_type for atomic types. | |
3807 | (c_parser_typeof_specifier): Discard all type qualifiers in | |
3808 | __typeof__ for atomic types. | |
3809 | ||
430b73ee | 3810 | 2014-06-25 Marek Polacek <polacek@redhat.com> |
3811 | ||
3812 | PR c/61162 | |
3813 | * c-parser.c (c_parser_statement_after_labels): Pass the location of | |
3814 | the return expression to c_finish_return. | |
3815 | ||
9580cb79 | 3816 | 2014-06-25 Jakub Jelinek <jakub@redhat.com> |
3817 | ||
3818 | * c-typeck.c (c_finish_omp_clauses): Make sure | |
3819 | OMP_CLAUSE_LINEAR_STEP has correct type. | |
3820 | ||
c1f445d2 | 3821 | 2014-06-24 Trevor Saunders <tsaunders@mozilla.com> |
3822 | ||
3823 | * c-decl.c: Adjust. | |
3824 | ||
e471cc6f | 3825 | 2014-06-24 Jakub Jelinek <jakub@redhat.com> |
3826 | ||
3827 | * c-parser.c (c_parser_omp_for_loop): For | |
3828 | #pragma omp parallel for simd move lastprivate clause from parallel | |
3829 | to for rather than simd. | |
3830 | ||
499b7390 | 3831 | 2014-06-23 Marek Polacek <polacek@redhat.com> |
3832 | ||
3833 | * c-typeck.c (parser_build_binary_op): Don't call | |
3834 | warn_logical_not_parentheses if the RHS is TRUTH_NOT_EXPR. | |
3835 | ||
5e68df57 | 3836 | 2014-06-15 Jan Hubicka <hubicka@ucw.cz> |
3837 | ||
3838 | * c-parser.c (c_parser_omp_threadprivate): Likewise. | |
3839 | * c-decl.c (merge_decls): Likewise. | |
3840 | ||
064b0d02 | 3841 | 2014-06-09 Marek Polacek <polacek@redhat.com> |
3842 | ||
3843 | PR c/36446 | |
3844 | * c-typeck.c (error_init): Call inform instead of error_at. | |
3845 | (pedwarn_init): Call inform instead of pedwarn. | |
3846 | (warning_init): Call inform instead of warning_at. | |
3847 | ||
71e19e54 | 3848 | 2014-06-07 Jan Hubicka <hubicka@ucw.cz> |
3849 | ||
3850 | * c-decl.c (merge_decls): Use set_decl_section_name. | |
3851 | (duplicate_decls): Remove node if it exists. | |
3852 | ||
95cdf3fd | 3853 | 2014-06-05 S. Gilles <sgilles@terpmail.umd.edu> |
3854 | ||
3855 | PR c/53119 | |
3856 | * c-typeck.c (push_init_level, process_init_element, | |
3857 | pop_init_level): Correct check for zero initialization, move | |
3858 | missing brace warning to respect zero initialization. | |
3859 | ||
a07f86a6 | 3860 | 2014-06-05 Marek Polacek <polacek@redhat.com> |
3861 | ||
3862 | PR c/56724 | |
3863 | * c-typeck.c (convert_for_assignment): Use expr_loc for ic_argpass. | |
3864 | ||
32dc1512 | 3865 | 2014-06-05 Marek Polacek <polacek@redhat.com> |
3866 | ||
3867 | PR c/49706 | |
3868 | * c-typeck.c (parser_build_binary_op): Warn when logical not is used | |
3869 | on the left hand side operand of a comparison. | |
3870 | ||
64cf1262 | 3871 | 2014-06-05 Marek Polacek <polacek@redhat.com> |
3872 | ||
3873 | PR c/48062 | |
3874 | * c-decl.c (warn_if_shadowing): Call inform instead of warning_at. | |
3875 | Print note only if the warning was printed. | |
3876 | ||
071f6d39 | 3877 | 2014-06-04 Igor Zamyatin <igor.zamyatin@intel.com> |
3878 | ||
3879 | PR c/58942 | |
3880 | * c-array-notation.c (fix_builtin_array_notation_fn): Handle the case | |
3881 | with a pointer. | |
3882 | ||
c69ec07d | 3883 | 2014-06-03 Marek Polacek <polacek@redhat.com> |
3884 | ||
3885 | PR c/60439 | |
3886 | * c-parser.c (c_parser_switch_statement): Pass explicit_cast_p to | |
3887 | c_start_case. | |
3888 | * c-tree.h (c_start_case): Update. | |
3889 | * c-typeck.c (c_start_case): Add new boolean parameter. Warn if | |
3890 | switch condition has boolean value. | |
3891 | ||
f7715905 | 3892 | 2014-06-02 Andrew MacLeod <amacleod@redhat.com> |
3893 | ||
3894 | * c-decl.c: Include builtins.h. | |
3895 | * c-parser.c: Likewise. | |
3896 | ||
dcfff6f9 | 3897 | 2014-05-27 Marek Polacek <polacek@redhat.com> |
3898 | ||
3899 | PR c/56724 | |
3900 | * c-typeck.c (convert_arguments): Get location of a parameter. Change | |
3901 | error and warning calls to error_at and warning_at. Pass location of | |
3902 | a parameter to it. Call warning_at with OPT_Wtraditional_conversion. | |
3903 | (convert_for_assignment): Add parameter to WARN_FOR_ASSIGNMENT and | |
3904 | WARN_FOR_QUALIFIERS. Pass expr_loc to those. | |
3905 | ||
c048c42c | 3906 | 2014-05-26 Igor Zamyatin <igor.zamyatin@intel.com> |
3907 | ||
3908 | PR c/61191 | |
3909 | * c-array-notation.c (fix_builtin_array_notation_fn): Check invalid | |
3910 | function parameters. | |
3911 | ||
8c016392 | 3912 | 2014-05-23 Jan Hubicka <hubicka@ucw.cz> |
3913 | ||
3914 | * c-decl.c (merge_decls): Preserve symtab node pointers. | |
3915 | (duplicate_decls): Free new decl. | |
3916 | ||
184a718f | 3917 | 2014-05-23 Thomas Schwinge <thomas@codesourcery.com> |
3918 | ||
6ce915ef | 3919 | * c-typeck.c (c_finish_omp_clauses): Remove duplicated variable |
3920 | initialization. | |
3921 | ||
184a718f | 3922 | * c-parser.c (c_parser_omp_target): Return bool values. |
3923 | ||
22ac3f78 | 3924 | 2014-05-22 Thomas Schwinge <thomas@codesourcery.com> |
3925 | ||
3926 | * c-parser.c (c_parser_omp_clause_thread_limit): Rename | |
3927 | num_teams_loc variable to num_thread_limit_loc. | |
3928 | ||
3ab4693e | 3929 | 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com> |
3930 | ||
3931 | * c-array-notation.c (expand_array_notations): Use void_node | |
3932 | instead of void_zero_node. | |
3933 | ||
25a27413 | 3934 | 2014-05-17 Trevor Saunders <tsaunders@mozilla.com> |
3935 | ||
3936 | * c-decl.c (finish_struct): Adjust. | |
3937 | (finish_enum): Likewise. | |
3938 | (bind): Adjust. | |
3939 | (record_inline_static): Likewise. | |
3940 | (push_scope): Likewise. | |
3941 | (make_label): Likewise. | |
3942 | (lookup_label_for_goto): Likewise. | |
3943 | (finish_struct): Likewise. | |
3944 | (finish_enum): Likewise. | |
3945 | (store_parm_decls): Likewise. | |
3946 | (c_push_function_context): Likewise. | |
3947 | * c-lang.h: Remove usage of variable_size gty attribute. | |
3948 | * c-parser.c (c_parse_init): Adjust. | |
3949 | (c_parse_file): Likewise. | |
3950 | ||
172b8440 | 3951 | 2014-05-13 Marek Polacek <polacek@redhat.com> |
3952 | ||
3953 | PR c/61162 | |
3954 | * c-typeck.c (convert_for_assignment): Pass location to | |
3955 | WARN_FOR_ASSIGNMENT instead of input_location. | |
3956 | ||
c9e51d25 | 3957 | 2014-05-10 Marek Polacek <polacek@redhat.com> |
3958 | ||
3959 | * c-parser.c (c_parser_declaration_or_fndef): Pass init_loc to | |
3960 | maybe_warn_string_init. | |
3961 | (c_parser_postfix_expression_after_paren_type): Pass type_loc to | |
3962 | maybe_warn_string_init. | |
3963 | * c-tree.h (maybe_warn_string_init): Update declaration. | |
3964 | * c-typeck.c (maybe_warn_string_init): Add location parameter. | |
3965 | Call pedwarn_init with loc instead of with input_location. | |
3966 | (digest_init): Pass init_loc to maybe_warn_string_init. | |
3967 | (pop_init_level): Call pedwarn_init with loc instead of with | |
3968 | input_location. | |
3969 | (set_init_index): Likewise. | |
3970 | (process_init_element): Likewise. | |
3971 | ||
53de1631 | 3972 | 2014-05-09 Marek Polacek <polacek@redhat.com> |
3973 | ||
3974 | PR c/61096 | |
3975 | * c-parser.c (c_parser_braced_init): Pass brace_loc to push_init_level. | |
3976 | (c_parser_initelt): Pass location to set_init_label. Pass array index | |
3977 | location to set_init_index. | |
3978 | * c-tree.h (push_init_level): Update declaration. | |
3979 | (pop_init_level): Likewise. | |
3980 | (set_init_index): Likewise. | |
3981 | (set_init_label): Likewise. | |
3982 | * c-typeck.c (error_init): Add location parameter. Call error_at | |
3983 | instead of error. | |
3984 | (digest_init): Pass init_loc to error_init. | |
3985 | (really_start_incremental_init): | |
3986 | (push_init_level): Add location parameter. Pass loc to pop_init_level | |
3987 | and error_init. | |
3988 | (pop_init_level): Likewise. | |
3989 | (set_designator): Add location parameter. Pass loc to pop_init_level, | |
3990 | push_init_level, and error_init. | |
3991 | (set_init_index): Add location parameter. Pass loc to error_init and | |
3992 | set_designator. | |
3993 | (set_init_label): Likewise. | |
3994 | (output_init_element): Pass loc to error_init. | |
3995 | (process_init_element): Pass loc to error_init, pop_init_level, | |
3996 | pedwarn_init, and push_init_level. | |
3997 | ||
3e5a8b00 | 3998 | 2014-05-09 Marek Polacek <polacek@redhat.com> |
3999 | ||
4000 | PR c/50459 | |
4001 | * c-parser.c (c_parser_attributes): Parse the arguments as an | |
4002 | expression-list if the attribute takes identifier. | |
4003 | ||
c2c4ae8d | 4004 | 2014-05-08 Marek Polacek <polacek@redhat.com> |
4005 | ||
4006 | PR c/61053 | |
4007 | * c-decl.c (grokdeclarator): Use min_align_of_type instead of | |
4008 | TYPE_ALIGN_UNIT. | |
4009 | ||
2026249a | 4010 | 2014-05-08 Marek Polacek <polacek@redhat.com> |
4011 | ||
4012 | PR c/61077 | |
4013 | * c-decl.c (start_function): Warn for _Atomic-qualified return type | |
4014 | of main. | |
4015 | ||
960d5a55 | 4016 | 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com> |
4017 | Mike Stump <mikestump@comcast.net> | |
4018 | Richard Sandiford <rdsandiford@googlemail.com> | |
4019 | ||
4020 | * c-decl.c (check_bitfield_type_and_width): Use TYPE_SIGN. | |
4021 | (finish_enum): Use wide-int interfaces. | |
4022 | * c-parser.c (c_parser_cilk_clause_vectorlength): Likewise. | |
4023 | * c-typeck.c (build_c_cast): Likewise. | |
4024 | (set_nonincremental_init_from_string): Likewise. | |
4025 | (c_tree_equal): Likewise. | |
4026 | ||
e0e14cbd | 4027 | 2014-05-02 Marek Polacek <polacek@redhat.com> |
4028 | ||
4029 | PR c/25801 | |
4030 | * c-typeck.c (c_size_in_bytes): Update comment. Don't call error. | |
4031 | Return size_one_node when the type is not complete. | |
4032 | (pointer_diff): Remove comment. | |
4033 | (build_unary_op): Improve error messages. | |
4034 | ||
27ff10cb | 4035 | 2014-05-02 Marek Polacek <polacek@redhat.com> |
4036 | ||
4037 | * c-typeck.c (c_finish_return): Separate warning_at calls. | |
4038 | ||
68410ce9 | 4039 | 2014-05-02 Marek Polacek <polacek@redhat.com> |
4040 | ||
4041 | * c-tree.h (error_init): Remove declaration. | |
4042 | (pedwarn_init): Likewise. | |
4043 | * c-typeck.c (error_init): Make static and move above. | |
4044 | (pedwarn_init): Likewise. | |
4045 | (warning_init): Move above. | |
4046 | (maybe_warn_string_init): Likewise. | |
4047 | ||
e8e27117 | 4048 | 2014-05-01 Jeff Law <law@redhat.com> |
4049 | ||
4050 | Revert: | |
4051 | ||
4052 | 2014-04-24 Prathamesh Kulkarni <bilbotheelffriend@gmail.com> | |
4053 | * c-parser.c (c_parser_sizeof_expression): Reorganize slightly to | |
4054 | avoid goto. | |
4055 | ||
971df357 | 4056 | 2014-05-02 Marek Polacek <polacek@redhat.com> |
4057 | ||
4058 | PR c/60784 | |
4059 | * c-typeck.c (push_init_level): Set constructor_designated to | |
4060 | p->designated for structures. | |
4061 | ||
de548fe5 | 4062 | 2014-05-01 Marek Polacek <polacek@redhat.com> |
4063 | ||
4064 | PR c/60915 | |
4065 | * c-parser.c (c_parser_declaration_or_fndef): Give better error if | |
4066 | function-definition has an attribute after the declarator. | |
4067 | ||
053a0ded | 4068 | 2014-05-01 Marek Polacek <polacek@redhat.com> |
4069 | ||
4070 | PR c/60257 | |
4071 | * c-typeck.c (warning_init): Add location_t parameter. Call | |
4072 | warning_at instead of warning. | |
4073 | (push_init_level): Pass input_location to warning_init. | |
4074 | (add_pending_init): Add location_t parameter. Pass loc to | |
4075 | warning_init. | |
4076 | (set_nonincremental_init): Pass input_location to add_pending_init. | |
4077 | (set_nonincremental_init_from_string): Likewise. | |
4078 | (output_init_element): Pass loc to warning_init and to | |
4079 | add_pending_init. | |
4080 | ||
694296f2 | 4081 | 2014-05-01 Marek Polacek <polacek@redhat.com> |
4082 | ||
4083 | PR c/43395 | |
4084 | * c-typeck.c (c_finish_return): Distinguish between label and variable | |
4085 | when warning about returning local address. | |
4086 | ||
86bbd7f9 | 4087 | 2014-05-01 Marek Polacek <polacek@redhat.com> |
4088 | ||
4089 | PR c/29467 | |
4090 | * c-decl.c (declspecs_add_type): Pedwarn if boolean types are used | |
4091 | in C89 mode. | |
4092 | ||
e4ab2ef3 | 4093 | 2014-05-01 Marek Polacek <polacek@redhat.com> |
4094 | ||
4095 | PR c/43245 | |
4096 | * c-typeck.c (convert_for_assignment): Pass OPT_Wdiscarded_qualifiers | |
4097 | instead of 0 to WARN_FOR_QUALIFIERS. | |
4098 | ||
ca3999cb | 4099 | 2014-05-01 Marek Polacek <polacek@redhat.com> |
4100 | ||
4101 | PR c/56989 | |
4102 | * c-typeck.c (default_conversion): Use better location for | |
4103 | error call. | |
4104 | ||
52cc0072 | 4105 | 2014-04-30 Marek Polacek <polacek@redhat.com> |
4106 | ||
4107 | * c-typeck.c (build_binary_op): Call ubsan_instrument_division | |
4108 | also when SANITIZE_FLOAT_DIVIDE is on. | |
4109 | ||
af379dd3 | 4110 | 2014-04-30 Marek Polacek <polacek@redhat.com> |
4111 | ||
4112 | PR c/60139 | |
4113 | * c-typeck.c (output_init_element): Pass OPT_Wpedantic to pedwarn | |
4114 | and pedwarn_init. Use loc insted of input_location. | |
4115 | ||
b069c2a0 | 4116 | 2014-04-30 Marek Polacek <polacek@redhat.com> |
4117 | ||
4118 | PR c/60351 | |
4119 | * c-typeck.c (build_binary_op): Use location when warning about | |
4120 | shift count. | |
4121 | ||
4a026b48 | 4122 | 2014-04-25 Marek Polacek <polacek@redhat.com> |
4123 | ||
4124 | PR c/18079 | |
4125 | * c-decl.c (diagnose_mismatched_decls): Warn for mismatched | |
4126 | always_inline/noinline and hot/cold attributes. | |
4127 | ||
adc93f31 | 4128 | 2014-04-25 Marek Polacek <polacek@redhat.com> |
4129 | ||
4130 | PR c/60114 | |
4131 | * c-parser.c (c_parser_initelt): Pass input_location to | |
4132 | process_init_element. | |
4133 | (c_parser_initval): Pass loc to process_init_element. | |
4134 | * c-tree.h (process_init_element): Adjust declaration. | |
4135 | * c-typeck.c (push_init_level): Pass input_location to | |
4136 | process_init_element. | |
4137 | (pop_init_level): Likewise. | |
4138 | (set_designator): Likewise. | |
4139 | (output_init_element): Add location_t parameter. Pass loc to | |
4140 | digest_init. | |
4141 | (output_pending_init_elements): Pass input_location to | |
4142 | output_init_element. | |
4143 | (process_init_element): Add location_t parameter. Pass loc to | |
4144 | output_init_element. | |
4145 | ||
e1029911 | 4146 | 2014-04-24 Jakub Jelinek <jakub@redhat.com> |
4147 | ||
4148 | * c-parser.c (c_parser_omp_atomic): Allow seq_cst before | |
4149 | atomic-clause, allow comma in between atomic-clause and | |
4150 | seq_cst. | |
4151 | ||
9f0a7bc6 | 4152 | 2014-04-22 Jakub Jelinek <jakub@redhat.com> |
4153 | ||
4154 | PR c/59073 | |
4155 | * c-parser.c (c_parser_omp_parallel): If c_parser_omp_for | |
4156 | fails, don't set OM_PARALLEL_COMBINED and return NULL. | |
4157 | ||
094da06d | 4158 | 2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com> |
4159 | ||
4160 | PR middle-end/60469 | |
4161 | * c-array-notation.c (fix_builtin_array_notation_fn): Use | |
4162 | create_tmp_var instead build_decl for creating temps. | |
4163 | (build_array_notation_expr): Likewise. | |
4164 | (fix_conditional_array_notations_1): Likewise. | |
4165 | (fix_array_notation_expr): Likewise. | |
4166 | (fix_array_notation_call_expr): Likewise. | |
4167 | ||
5a672e62 | 4168 | 2014-03-28 Jakub Jelinek <jakub@redhat.com> |
4169 | ||
4170 | PR c++/60689 | |
4171 | * c-tree.h (c_build_function_call_vec): New prototype. | |
4172 | * c-typeck.c (build_function_call_vec): Don't call | |
4173 | resolve_overloaded_builtin here. | |
4174 | (c_build_function_call_vec): New wrapper function around | |
4175 | build_function_call_vec. Call resolve_overloaded_builtin here. | |
4176 | (convert_lvalue_to_rvalue, build_function_call, build_atomic_assign): | |
4177 | Call c_build_function_call_vec instead of build_function_call_vec. | |
4178 | * c-parser.c (c_parser_postfix_expression_after_primary): Likewise. | |
4179 | * c-decl.c (finish_decl): Likewise. | |
4180 | ||
f40f5e0e | 4181 | 2014-03-18 Manuel López-Ibáñez <manu@gcc.gnu.org> |
4182 | ||
4183 | PR c/55383 | |
4184 | * c-typeck.c: Use correct format string in cast-qual warning | |
4185 | ||
9ec099a3 | 4186 | 2014-03-07 Thomas Schwinge <thomas@codesourcery.com> |
4187 | ||
4188 | * c-decl.c (c_decl_attributes): Use | |
4189 | lang_hooks.types.omp_mappable_type. | |
4190 | * c-typeck.c (c_finish_omp_clauses): Likewise. | |
4191 | ||
3bfdc94f | 4192 | 2014-03-06 Marek Polacek <polacek@redhat.com> |
4193 | ||
4194 | PR c/60197 | |
4195 | * c-typeck.c (c_finish_return): Call contains_cilk_spawn_stmt instead | |
4196 | of checking tree code. | |
4197 | ||
8f1128f8 | 4198 | 2014-02-19 Prathamesh Kulkarni <bilbotheelffriend@gmail.com> |
4199 | ||
4200 | * c-parser.c (c_parser_declspecs): Replace call to error by error_at. | |
4201 | (c_parser_parameter_declaration): Likewise. | |
4202 | ||
977b1853 | 4203 | 2014-02-19 Marek Polacek <polacek@redhat.com> |
4204 | ||
4205 | PR c/60195 | |
4206 | * c-typeck.c (convert_lvalue_to_rvalue): Set TREE_NO_WARNING on tmp. | |
4207 | Call mark_exp_read on exp.value. | |
4208 | (build_atomic_assign): Set TREE_NO_WARNING on val and old. Set | |
4209 | TREE_ADDRESSABLE on old instead of val. | |
4210 | (emit_side_effect_warnings): Warn only if RHS has !TREE_NO_WARNING. | |
4211 | ||
825cd6ef | 4212 | 2014-02-07 Prathamesh Kulkarni <bilbotheelffriend@gmail.com> |
4213 | ||
4214 | * c-parser.c (c_parser_get_builtin_args): Replace calls to | |
4215 | C_EXPR_APPEND by vec_safe_push. | |
4216 | * c-tree.h (C_EXPR_APPEND): Remove. | |
4217 | ||
ec761d5a | 4218 | 2014-01-31 Marek Polacek <polacek@redhat.com> |
4219 | ||
4220 | PR c/59963 | |
4221 | * c-typeck.c (convert_lvalue_to_rvalue): Pass vNULL to | |
4222 | build_function_call_vec. | |
4223 | (build_function_call): Likewise. | |
4224 | (build_atomic_assign): Likewise. | |
4225 | (build_function_call_vec): Add arg_loc parameter. Use it. | |
4226 | (convert_arguments): Likewise. | |
4227 | (convert_for_assignment): Rename rhs_loc to expr_loc. | |
4228 | * c-parser.c (c_parser_attributes): Pass NULL to c_parser_expr_list. | |
4229 | (c_parser_objc_keywordexpr): Likewise. | |
4230 | (c_parser_postfix_expression_after_primary): Call | |
4231 | build_function_call_vec with expr_loc rather than op_loc. | |
4232 | Call c_parser_expr_list to fill arg_loc. Pass arg_loc to | |
4233 | build_function_call_vec. | |
4234 | (c_parser_expr_list): Add locations parameter. Fill it with locations | |
4235 | of function arguments. | |
4236 | * c-decl.c (finish_decl): Pass vNULL to build_function_call_vec. | |
4237 | ||
22a75734 | 4238 | 2014-01-30 Marek Polacek <polacek@redhat.com> |
4239 | ||
4240 | PR c/59940 | |
4241 | * c-typeck.c (build_function_call_vec): Use loc parameter. | |
4242 | (convert_arguments): Add location parameter. Use it. | |
4243 | (ep_convert_and_check): Likewise. | |
4244 | (build_atomic_assign): Adjust convert_for_assignment call. | |
4245 | (build_modify_expr): Likewise. | |
4246 | (digest_init): Likewise. | |
4247 | (c_finish_return): Likewise. | |
4248 | (build_conditional_expr): Adjust ep_convert_and_check calls. | |
4249 | (convert_for_assignment): Add rhs_loc parameter. Use it. | |
4250 | (build_binary_op): Adjust convert_and_check and ep_convert_and_check | |
4251 | calls. | |
4252 | ||
29f580ac | 4253 | 2014-01-30 Richard Biener <rguenther@suse.de> |
4254 | ||
4255 | PR c/59905 | |
4256 | * c-typeck.c (build_function_call_vec): Do not replace calls | |
4257 | to a function via an incompatible type with a runtime abort. | |
4258 | ||
a89e6c15 | 4259 | 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com> |
4260 | ||
4261 | * c-parser.c (c_parser_declaration_or_fndef): Replaced | |
4262 | flag_enable_cilkplus with flag_cilkplus. | |
4263 | (c_parser_direct_declarator_inner): Likewise. | |
4264 | (c_parser_attribute_any_word): Likewise. | |
4265 | (c_parser_attributes): Likewise. | |
4266 | (c_parser_compound_statement): Likewise. | |
4267 | (c_parser_statement_after_labels): Likewise. | |
4268 | (c_parser_if_statement): Likewise. | |
4269 | (c_parser_switch_statement): Likewise. | |
4270 | (c_parser_do_statement): Likewise. | |
4271 | (c_parser_for_statement): Likewise. | |
4272 | (c_parser_unary_expression): Likewise. | |
4273 | (c_parser_postfix_expression): Likewise. | |
4274 | (c_parser_postfix_expression_after_primary): Likewise. | |
4275 | (c_parser_postfix_expression_after_primary): Likewise. | |
4276 | (c_parser_omp_clause_name): Likewise. | |
4277 | (c_finish_omp_declare_simd): Likewise. | |
4278 | (c_parser_cilk_verify_simd): Likewise. | |
4279 | * c-typeck.c (build_array_ref): Likewise. | |
4280 | (build_function_call_vec): Likewise. | |
4281 | (convert_arguments): Likewise. | |
4282 | (build_compound_expr): Likewise. | |
4283 | (c_finish_return): Likewise. | |
4284 | (c_finish_if_stmt): Likewise. | |
4285 | (c_finish_loop): Likewise. | |
4286 | (build_binary_op): Likewise. | |
4287 | ||
2623625f | 4288 | 2014-01-23 Marek Polacek <polacek@redhat.com> |
4289 | ||
4290 | PR c/59846 | |
4291 | * c-typeck.c (parser_build_binary_op): Use location instead of | |
4292 | input_location. | |
4293 | (build_binary_op): Pass location to shorten_compare. | |
4294 | ||
46da3601 | 4295 | 2014-01-23 Marek Polacek <polacek@redhat.com> |
4296 | ||
4297 | PR c/58346 | |
4298 | * c-typeck.c (pointer_diff): Give an error on arithmetic on pointer to | |
4299 | an empty aggregate. | |
4300 | ||
9a9db3c1 | 4301 | 2014-01-23 Marek Polacek <polacek@redhat.com> |
4302 | ||
4303 | PR c/59871 | |
4304 | * c-typeck.c (build_compound_expr): Warn even for right-hand operand | |
4305 | of a comma expression. | |
4306 | (emit_side_effect_warnings): Likewise. | |
4307 | ||
69c9b607 | 4308 | 2014-01-23 Balaji V. Iyer <balaji.v.iyer@intel.com> |
4309 | ||
4310 | PR c/59825 | |
4311 | * c-array-notation.c (expand_array_notation_exprs): Rewrote this | |
4312 | function to use walk_tree and moved a lot of its functionality to | |
4313 | expand_array_notations. | |
4314 | (expand_array_notations): New function. | |
4315 | ||
7e005ab5 | 4316 | 2014-01-23 Balaji V. Iyer <balaji.v.iyer@intel.com> |
4317 | ||
4318 | * c-parser.c (c_finish_omp_declare_simd): Made "cilk simd function" | |
4319 | attribute an attribute without value. | |
4320 | ||
d6779b5f | 4321 | 2014-01-23 Jakub Jelinek <jakub@redhat.com> |
4322 | ||
4323 | PR middle-end/58809 | |
4324 | * c-typeck.c (c_finish_omp_clause): Reject MIN_EXPR, MAX_EXPR, | |
4325 | BIT_AND_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR on COMPLEX_TYPEs. | |
4326 | ||
ec431042 | 4327 | 2014-01-22 Marek Polacek <polacek@redhat.com> |
4328 | ||
4329 | PR c/59891 | |
4330 | * c-typeck.c (build_conditional_expr): Call c_fully_fold instead | |
4331 | of remove_c_maybe_const_expr on op1 and op2. | |
4332 | ||
1248c663 | 4333 | 2014-01-15 Jakub Jelinek <jakub@redhat.com> |
4334 | ||
4335 | PR c/58943 | |
4336 | * c-typeck.c (build_modify_expr): For lhs op= rhs, if rhs has side | |
4337 | effects, preevaluate rhs using SAVE_EXPR first. | |
4338 | ||
0bc789fc | 4339 | 2014-01-09 Balaji V. Iyer <balaji.v.iyer@intel.com> |
4340 | ||
4341 | PR c++/59631 | |
4342 | * c-parser.c (c_parser_postfix_expression): Replaced consecutive if | |
4343 | statements with if-elseif statements. | |
4344 | ||
6685d11c | 4345 | 2014-01-06 Marek Polacek <polacek@redhat.com> |
4346 | ||
4347 | PR c/57773 | |
4348 | * c-decl.c (check_bitfield_type_and_width): Warn for implementation | |
4349 | defined bit-field types only in ISO C. | |
4350 | ||
3aea1f79 | 4351 | 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com> |
4352 | ||
4353 | Update copyright years | |
4354 | ||
e4f22041 | 4355 | 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com> |
4356 | ||
4357 | * c-array-notation.c: Use the standard form for the copyright notice. | |
4358 | ||
74acc703 | 4359 | 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com> |
4360 | ||
4361 | * c-parser.c (struct c_parser::cilk_simd_fn_tokens): Added new field. | |
4362 | (c_parser_declaration_or_fndef): Added a check if cilk_simd_fn_tokens | |
4363 | field in parser is not empty. If not-empty, call the function | |
4364 | c_parser_finish_omp_declare_simd. | |
4365 | (c_parser_cilk_clause_vectorlength): Modified function to be shared | |
4366 | between SIMD-enabled functions and #pragma simd. Added new parameter. | |
4367 | (c_parser_cilk_all_clauses): Modified the usage of the function | |
4368 | c_parser_cilk_clause_vectorlength as mentioned above. | |
4369 | (c_parser_cilk_simd_fn_vector_attrs): New function. | |
4370 | (c_finish_cilk_simd_fn_tokens): Likewise. | |
4371 | (is_cilkplus_vector_p): Likewise. | |
4372 | (c_parser_omp_clause_name): Added checking for "vectorlength," | |
4373 | "nomask," and "mask" strings in clause name. | |
4374 | (c_parser_omp_all_clauses): Added 3 new case statements: | |
4375 | PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_MASK and | |
4376 | PRAGMA_CILK_CLAUSE_NOMASK. | |
4377 | (c_parser_attributes): Added a cilk_simd_fn_tokens parameter. Added a | |
4378 | check for vector attribute and if so call the function | |
4379 | c_parser_cilk_simd_fn_vector_attrs. Also, when Cilk plus is enabled, | |
4380 | called the function c_finish_cilk_simd_fn_tokens. | |
4381 | (c_finish_omp_declare_simd): Added a check if cilk_simd_fn_tokens in | |
4382 | parser field is non-empty. If so, parse them as you would parse | |
4383 | the omp declare simd pragma. | |
4384 | (c_parser_omp_clause_linear): Added a new bool parm. is_cilk_simd_fn. | |
4385 | Added a check when step is a parameter and flag it as error. | |
4386 | (CILK_SIMD_FN_CLAUSE_MASK): New #define. | |
4387 | (c_parser_cilk_clause_name): Changed pragma_cilk_clause to | |
4388 | pragma_omp_clause. | |
4389 | ||
395dc01c | 4390 | 2013-12-17 Thomas Schwinge <thomas@codesourcery.com> |
4391 | ||
4392 | * c-parser.c (c_parser_omp_parallel): Fix description. | |
4393 | ||
433e804e | 4394 | 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com> |
4395 | ||
4396 | * c-objc-common.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Remove. | |
4397 | (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise. | |
4398 | (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise. | |
4399 | * c-typeck.c (cilk_install_body_with_frame_cleanup): New function. | |
4400 | ||
a179a7dc | 4401 | 2013-12-04 Joseph Myers <joseph@codesourcery.com> |
4402 | ||
4403 | PR c/52023 | |
4404 | * c-parser.c (c_parser_alignas_specifier): Use | |
4405 | c_sizeof_or_alignof_type instead of c_alignof. | |
4406 | (c_parser_alignof_expression): Likewise, with min_alignof | |
4407 | parameter depending on alignof spelling used. | |
4408 | ||
bdf1e3c7 | 4409 | 2013-12-04 Marek Polacek <polacek@redhat.com> |
4410 | ||
4411 | PR c/54113 | |
4412 | * c-decl.c (start_function): Don't warn for missing prototype for | |
4413 | inline functions. | |
4414 | ||
05e8f674 | 4415 | 2013-12-03 Marek Polacek <polacek@redhat.com> |
4416 | ||
4417 | PR c/59351 | |
4418 | * c-decl.c (build_compound_literal): Allow compound literals with | |
4419 | empty initial value. | |
4420 | ||
39f74d66 | 4421 | 2013-12-02 Joseph Myers <joseph@codesourcery.com> |
4422 | ||
4423 | PR c/58235 | |
4424 | * c-typeck.c (build_modify_expr): Diagnose assignment to | |
4425 | expression with array type. | |
4426 | ||
f221adca | 4427 | 2013-11-29 Joseph Myers <joseph@codesourcery.com> |
4428 | ||
4429 | PR c/42262 | |
4430 | * c-typeck.c (process_init_element): Do not treat a string as | |
4431 | initializing a whole array when used with a designator for an | |
4432 | individual element. | |
4433 | ||
75bce827 | 4434 | 2013-11-29 Joseph Myers <joseph@codesourcery.com> |
4435 | ||
4436 | PR c/57574 | |
4437 | * c-decl.c (merge_decls): Clear DECL_EXTERNAL for a definition of | |
4438 | an inline function following a static declaration. | |
4439 | ||
dc133326 | 4440 | 2013-11-28 Jakub Jelinek <jakub@redhat.com> |
4441 | ||
4442 | PR c/59310 | |
4443 | * c-parser.c (c_parser_omp_target): Copy "#pragma omp target" | |
4444 | to p_name before calling c_parser_omp_teams instead of after. | |
4445 | (c_parser_cilk_simd): Remove wrong ATTRIBUTE_UNUSED from parser | |
4446 | argument. Remove unused p_name variable. | |
4447 | ||
d09768a4 | 4448 | 2013-11-27 Aldy Hernandez <aldyh@redhat.com> |
4449 | Jakub Jelinek <jakub@redhat.com> | |
4450 | ||
4451 | * c-decl.c (c_builtin_function_ext_scope): Avoid binding if | |
4452 | external_scope is NULL. | |
4453 | ||
73fd9cbe | 4454 | 2013-11-27 Tom de Vries <tom@codesourcery.com> |
4455 | Marc Glisse <marc.glisse@inria.fr> | |
4456 | ||
4457 | PR c++/59032 | |
4458 | * c-typeck.c (build_unary_op): Allow vector increment and decrement. | |
4459 | ||
bc61cadb | 4460 | 2013-11-22 Andrew MacLeod <amacleod@redhat.com> |
4461 | ||
4462 | * c-typeck.c: Add required include files from gimple.h. | |
4463 | ||
3df42822 | 4464 | 2013-11-22 David Malcolm <dmalcolm@redhat.com> |
4465 | ||
4466 | * c-decl.c (define_label, shadow_tag_warned) | |
4467 | (check_bitfield_type_and_width, grokdeclarator, grokparms, | |
4468 | store_parm_decls_newstyle, store_parm_decls_oldstyle) | |
4469 | (declspecs_add_type): Remove use of in_system_header macro. | |
4470 | * c-parser.c (c_parser_unary_expression): Likewise. | |
4471 | * c-typeck.c (store_init_value, process_init_element) | |
4472 | (c_start_case): Likewise. | |
4473 | ||
4474 | * c-decl.c (build_enumerator): Remove use of EXPR_LOC_OR_HERE | |
4475 | macro. | |
4476 | ||
4477 | * c-parser.c (c_parser_set_source_position_from_token): Remove | |
4478 | reference to in_system_header from comment. | |
4479 | ||
08f817b3 | 4480 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
4481 | ||
4482 | * c-decl.c (grokdeclarator): Update comment to refer to | |
4483 | tree_to_[su]hwi rather than tree_low_cst. | |
4484 | ||
6a0712d4 | 4485 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
4486 | ||
4487 | * c-decl.c, c-typeck.c: Replace tree_low_cst (..., 1) with | |
4488 | tree_to_uhwi throughout. | |
4489 | ||
fcb97e84 | 4490 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
4491 | ||
4492 | * c-parser.c: Replace tree_low_cst (..., 0) with tree_to_shwi | |
4493 | throughout. | |
4494 | ||
35ec552a | 4495 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
4496 | ||
4497 | * c-parser.c: Replace host_integerp (..., 0) with tree_fits_shwi_p | |
4498 | throughout. | |
4499 | ||
f2697631 | 4500 | 2013-11-15 Aldy Hernandez <aldyh@redhat.com> |
4501 | ||
4502 | * c-parser.c (c_parser_cilk_simd): New. | |
4503 | (c_parser_cilk_verify_simd): New. | |
4504 | (c_parser_pragma): Add case for PRAGMA_CILK_SIMD. | |
4505 | (c_parser_omp_for_loop): Add case for NE_EXPR. | |
4506 | Set c_break_label for CILK_SIMD. | |
4507 | (c_parser_cilk_clause_vectorlength): New. | |
4508 | (c_parser_cilk_clause_linear): New. | |
4509 | (c_parser_cilk_clause_name): New. | |
4510 | (c_parser_cilk_all_clauses): New. | |
4511 | * c-typeck.c (build_unary_op): Pass location argument to | |
4512 | readonly_error. | |
4513 | (build_modify_expr): Same. | |
4514 | (build_asm_expr): Same. | |
4515 | (c_finish_bc_stmt): Error on break/continue in loops. | |
4516 | ||
e795d6e1 | 4517 | 2013-11-14 Andrew MacLeod <amacleod@redhat.com> |
4518 | ||
4519 | * c-typeck.c: Include only gimplify.h and gimple.h as needed. | |
4520 | ||
9ed99284 | 4521 | 2013-11-14 Diego Novillo <dnovillo@google.com> |
4522 | ||
4523 | * c-decl.c: Include print-tree.h. | |
4524 | Include stor-layout.h. | |
4525 | Include varasm.h. | |
4526 | Include attribs.h. | |
4527 | Include stringpool.h. | |
4528 | * c-lang.c: Include fold-const.h. | |
4529 | * c-parser.c: Include stringpool.h. | |
4530 | Include attribs.h. | |
4531 | Include stor-layout.h. | |
4532 | Include varasm.h. | |
4533 | Include trans-mem.h. | |
4534 | * c-typeck.c: Include stor-layout.h. | |
4535 | Include trans-mem.h. | |
4536 | Include varasm.h. | |
4537 | Include stmt.h. | |
4538 | ||
4fba5eb9 | 4539 | 2013-11-13 Joseph Myers <joseph@codesourcery.com> |
4540 | ||
4541 | * c-tree.h (c_typespec_keyword): Add cts_auto_type. | |
4542 | * c-decl.c (declspecs_add_type, finish_declspecs): Handle | |
4543 | __auto_type. | |
4544 | * c-parser.c (c_token_starts_typename, c_token_starts_declspecs) | |
4545 | (c_parser_attribute_any_word, c_parser_objc_selector): Handle | |
4546 | RID_AUTO_TYPE. | |
4547 | (c_parser_declspecs): Take argument AUTO_TYPE_OK. | |
4548 | (c_parser_declaration_or_fndef, c_parser_struct_declaration) | |
4549 | (c_parser_declarator, c_parser_direct_declarator_inner) | |
4550 | (c_parser_parameter_declaration, c_parser_type_name): All callers | |
4551 | changed. | |
4552 | (c_parser_declaration_or_fndef): Handle declarations with type | |
4553 | determined from the initializer. | |
4554 | ||
a8783bee | 4555 | 2013-11-12 Andrew MacLeod <amacleod@redhat.com> |
4556 | ||
e795d6e1 | 4557 | * c-typeck.c: Include gimplify.h. |
a8783bee | 4558 | |
d184e0c0 | 4559 | 2013-11-12 Joseph Myers <joseph@codesourcery.com> |
4560 | ||
4561 | * c-tree.h (struct c_declspecs): Add thread_gnu_p field. | |
4562 | * c-parser.c (c_parser_declspecs): Mention _Thread_local in | |
4563 | comment. | |
4564 | * c-decl.c (shadow_tag_warned, grokdeclarator): Mention __thread | |
4565 | or _Thread_local as appropriate in diagnostics. | |
4566 | (build_null_declspecs): Initialize ret->thread_gnu_p. | |
4567 | (declspecs_add_scspec): Handle either __thread or _Thread_local | |
4568 | for RID_THREAD. Diagnose _Thread_local for pre-C11 standards if | |
4569 | pedantic. Do not disallow _Thread_local extern and _Thread_local | |
4570 | static. | |
4571 | ||
b560fabd | 4572 | 2013-11-07 Joseph Myers <joseph@codesourcery.com> |
4573 | Andrew MacLeod <amacleod@redhat.com> | |
4574 | ||
4575 | * c-aux-info.c (gen_type): Handle atomic qualifier. | |
4576 | * c-decl.c (validate_proto_after_old_defn): Do not remove atomic | |
4577 | qualifiers when compating types. | |
4578 | (shadow_tag_warned): Handle atomic_p in declspecs. | |
4579 | (quals_from_declspecs): Likewise. | |
4580 | (start_decl): Use c_type_promotes_to when promoting argument | |
4581 | types. | |
4582 | (grokdeclarator): Handle _Atomic. | |
4583 | (get_parm_info): Diagnose any qualifier on "void" as only | |
4584 | parameter. | |
4585 | (store_parm_decls_oldstyle): Do not remove atomic qualifiers when | |
4586 | comparing types. Use c_type_promotes_to when promoting argument | |
4587 | types. | |
4588 | (finish_function): Use c_type_promotes_to when promoting argument | |
4589 | types. | |
4590 | (build_null_declspecs): Handle atomic_p in declspecs. | |
4591 | (declspecs_add_qual): Handle RID_ATOMIC. | |
4592 | * c-parser.c (c_token_starts_typename, c_token_is_qualifier) | |
4593 | (c_token_starts_declspecs): Handle RID_ATOMIC. | |
4594 | (c_parser_declspecs): Handle atomic type specifiers and | |
4595 | qualifiers. | |
4596 | (c_parser_typeof_specifier): Remove const and _Atomic qualifiers | |
4597 | from types of expressions with atomic type. | |
4598 | (c_parser_direct_declarator_inner): Use convert_lvalue_to_rvalue. | |
4599 | (c_parser_attribute_any_word): Handle RID_ATOMIC. | |
4600 | (c_parser_initializer, c_parser_initelt, c_parser_initval) | |
4601 | (c_parser_statement_after_labels, c_parser_switch_statement) | |
4602 | (c_parser_for_statement, c_parser_expr_no_commas) | |
4603 | (c_parser_conditional_expression, c_parser_binary_expression) | |
4604 | (c_parser_cast_expression, c_parser_unary_expression) | |
4605 | (c_parser_postfix_expression) | |
4606 | (c_parser_postfix_expression_after_primary, c_parser_expression): | |
4607 | Use convert_lvalue_to_rvalue. | |
4608 | (c_parser_expression_conv, c_parser_expr_list): Document | |
4609 | conversion of lvalues to rvalues. Use convert_lvalue_to_rvalue. | |
4610 | (c_parser_objc_synchronized_statement): Use | |
4611 | convert_lvalue_to_rvalue. | |
4612 | (c_parser_objc_selector): Handle RID_ATOMIC. | |
4613 | (c_parser_objc_receiver, c_parser_array_notation): Use | |
4614 | convert_lvalue_to_rvalue. | |
4615 | * c-tree.h (ctsk_typeof): Adjust comment to mention use for | |
4616 | _Atomic (type-name). | |
4617 | (struct c_declspecs): Add atomic_p field. | |
4618 | (convert_lvalue_to_rvalue): Declare. | |
4619 | * c-typeck.c (c_type_promotes_to): Promote atomic types to | |
4620 | corresponding atomic types. | |
4621 | (qualify_type): Don't add _Atomic qualifiers from second argument. | |
4622 | (comp_target_types): Do not allow _Atomic mismatches. | |
4623 | (type_lists_compatible_p): Do not remove atomic qualifiers when | |
4624 | comparing types. | |
4625 | (really_atomic_lvalue, convert_lvalue_to_rvalue) | |
4626 | (build_atomic_assign): New functions. | |
4627 | (build_unary_op): Use build_atomic_assign for atomic increment and | |
4628 | decrement. | |
4629 | (build_conditional_expr): Do not treat _Atomic void as a qualified | |
4630 | version of void. | |
4631 | (build_modify_expr): Use build_atomic_assign for atomic LHS. | |
4632 | (find_anonymous_field_with_type, convert_to_anonymous_field) | |
4633 | (convert_for_assignment): Do not remove atomic qualifiers when | |
4634 | comparing types. | |
4635 | (digest_init): Do not accept initialization of arrays of atomic | |
4636 | elements by string constants. | |
4637 | (build_asm_expr): Use convert_lvalue_to_rvalue. | |
4638 | (build_binary_op): Do not treat _Atomic void as a qualified | |
4639 | version of void. | |
4640 | ||
8b023e7c | 4641 | 2013-11-06 DJ Delorie <dj@redhat.com> |
4642 | ||
4643 | * c-decl.c (locate_old_decl): If a previous conflicting decl is | |
4644 | both explicit and builtin, print the location of the explicit one. | |
4645 | ||
c630ef93 | 4646 | 2013-11-05 Tobias Burnus <burnus@net-b.de> |
4647 | ||
4648 | * c-parser.c (c_parser_omp_for, c_parser_omp_parallel, | |
4649 | c_parser_omp_distribute, c_parser_omp_teams, | |
4650 | c_parser_omp_target, c_parser_omp_declare): Handle | |
4651 | -fopenmp-simd. | |
4652 | ||
2c4c3477 | 4653 | 2013-11-03 Marek Polacek <polacek@redhat.com> |
4654 | ||
4655 | * c-decl.c (grokdeclarator): Add VLA instrumentation. | |
4656 | ||
df205251 | 4657 | 2013-11-01 Jakub Jelinek <jakub@redhat.com> |
4658 | ||
4659 | * c-typeck.c (c_finish_omp_clauses) <case OMP_CLAUSE_UNIFORM>: Go to | |
4660 | check_dup_generic at the end, unless remove is true. | |
4661 | (c_finish_omp_clauses) <case OMP_CLAUSE_REDUCTION>: Add break; after | |
4662 | remove = true;. | |
4663 | (c_finish_omp_clauses) <case OMP_CLAUSE_COPYIN>: Likewise. | |
4664 | ||
23871d0c | 4665 | 2013-10-31 Jakub Jelinek <jakub@redhat.com> |
4666 | ||
4667 | * c-typeck.c (c_finish_omp_clauses): Diagnose aligned clause | |
4668 | with decl that is not pointer nor array. | |
4669 | ||
d037099f | 4670 | 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com> |
4671 | ||
4672 | * c-decl.c (finish_function): Added a call for insert_cilk_frame when | |
4673 | a spawning function is found. | |
4674 | * c-objc-common.h (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): New #define. | |
4675 | (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise. | |
4676 | (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise. | |
4677 | * c-parser.c (c_parser_statement_after_labels): Added RID_CILK_SYNC | |
4678 | case. | |
4679 | (c_parser_postfix_expression): Added RID_CILK_SPAWN case. | |
4680 | * c-typeck.c (build_compound_expr): Reject _Cilk_spawn in a comma | |
4681 | expr. | |
4682 | (c_finish_return): Added a check to reject _Cilk_spawn in return | |
4683 | expression. | |
4684 | (build_cilk_spawn): New function. | |
4685 | (build_cilk_sync): Likewise. | |
4686 | * Makefile.in (c-decl.o): Added cilk.h in dependency list. | |
4687 | ||
4c90c04c | 4688 | 2013-10-27 Tobias Burnus <burnus@net-b.de> |
4689 | ||
4690 | PR other/33426 | |
4691 | * c-parser.c (c_parser_while_statement, c_parser_while_statement, | |
4692 | c_parser_pragma): Add GCC ivdep support to 'do' and 'while'. | |
4693 | (c_parser_statement_after_labels): Update calls. | |
4694 | ||
48a972c8 | 4695 | 2013-10-24 Tobias Burnus <burnus@net-b.de> |
4644b593 | 4696 | |
4697 | PR other/33426 | |
4698 | * c-parser.c (c_parser_pragma, c_parser_for_statement): | |
4699 | Handle PRAGMA_IVDEP. | |
4700 | (c_parser_statement_after_labels): Update call. | |
4701 | ||
12f86df0 | 4702 | 2013-10-24 Marek Polacek <polacek@redhat.com> |
4703 | ||
4704 | * c-parser.c (c_parser_struct_declaration): Add a comment. | |
4705 | (c_parser_declarator): Don't allow _Alignas here. | |
4706 | ||
7740abd8 | 4707 | 2013-10-17 Andrew MacLeod <amacleod@redhat.com> |
4708 | ||
4709 | * c-parser.c: Include omp-low.h. | |
4710 | * c-typeck.c: Likewise. | |
4711 | ||
43d03c23 | 4712 | 2013-10-17 Marek Polacek <polacek@redhat.com> |
4713 | ||
4714 | PR c/58267 | |
4715 | * c-parser.c (c_parser_declspecs): Add alignspec_ok parameter. | |
4716 | Document syntax of the array-declarator. | |
4717 | (c_parser_declspecs) <RID_ALIGNAS>: Bail out if alignment specs | |
4718 | are not permitted. | |
4719 | (c_parser_declaration_or_fndef): Adjust c_parser_declspecs call. | |
4720 | (c_parser_struct_declaration): Likewise. | |
4721 | (c_parser_declarator): Likewise. | |
4722 | (c_parser_direct_declarator_inner): Likewise. | |
4723 | (c_parser_parameter_declaration): Likewise. | |
4724 | (c_parser_type_name): Likewise. | |
4725 | ||
bc7bff74 | 4726 | 2013-10-11 Jakub Jelinek <jakub@redhat.com> |
4727 | ||
4728 | * c-lang.h (current_omp_declare_target_attribute): New extern | |
4729 | decl. | |
4730 | * c-parser.c: Include c-lang.h. | |
4731 | (struct c_parser): Change tokens to c_token *. | |
4732 | Add tokens_buf field. Change tokens_avail type to unsigned int. | |
4733 | (c_parser_consume_token): If parser->tokens isn't | |
4734 | &parser->tokens_buf[0], increment parser->tokens. | |
4735 | (c_parser_consume_pragma): Likewise. | |
4736 | (enum pragma_context): Add pragma_struct and pragma_param. | |
4737 | (c_parser_external_declaration): Adjust | |
4738 | c_parser_declaration_or_fndef caller. | |
4739 | (c_parser_declaration_or_fndef): Add omp_declare_simd_clauses | |
4740 | argument, if it is non-vNULL vector, call c_finish_omp_declare_simd. | |
4741 | Adjust recursive call. | |
4742 | (c_parser_struct_or_union_specifier): Use pragma_struct instead | |
4743 | of pragma_external. | |
4744 | (c_parser_parameter_declaration): Use pragma_param instead of | |
4745 | pragma_external. | |
4746 | (c_parser_compound_statement_nostart, c_parser_label, | |
4747 | c_parser_for_statement): Adjust | |
4748 | c_parser_declaration_or_fndef callers. | |
4749 | (c_parser_expr_no_commas): Add omp_atomic_lhs argument, pass | |
4750 | it through to c_parser_conditional_expression. | |
4751 | (c_parser_conditional_expression): Add omp_atomic_lhs argument, | |
4752 | pass it through to c_parser_binary_expression. Adjust recursive | |
4753 | call. | |
4754 | (c_parser_binary_expression): Remove prec argument, add | |
4755 | omp_atomic_lhs argument instead. Always start from PREC_NONE, if | |
4756 | omp_atomic_lhs is non-NULL and one of the arguments of toplevel | |
4757 | binop matches it, use build2 instead of parser_build_binary_op. | |
4758 | (c_parser_pragma): Handle PRAGMA_OMP_CANCEL, | |
4759 | PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_TARGET, | |
4760 | PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_DECLARE_REDUCTION. | |
4761 | Handle pragma_struct and pragma_param the same as pragma_external. | |
4762 | (c_parser_omp_clause_name): Parse new OpenMP 4.0 clause names. | |
4763 | (c_parser_omp_variable_list): Parse array sections for | |
4764 | OMP_CLAUSE_{DEPEND,MAP,TO,FROM} clauses. | |
4765 | (c_parser_omp_clause_collapse): Fully fold collapse expression. | |
4766 | (c_parser_omp_clause_reduction): Handle user defined reductions. | |
4767 | (c_parser_omp_clause_branch, c_parser_omp_clause_cancelkind, | |
4768 | c_parser_omp_clause_num_teams, c_parser_omp_clause_thread_limit, | |
4769 | c_parser_omp_clause_aligned, c_parser_omp_clause_linear, | |
4770 | c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen, | |
4771 | c_parser_omp_clause_depend, c_parser_omp_clause_map, | |
4772 | c_parser_omp_clause_device, c_parser_omp_clause_dist_schedule, | |
4773 | c_parser_omp_clause_proc_bind, c_parser_omp_clause_to, | |
4774 | c_parser_omp_clause_from, c_parser_omp_clause_uniform): New functions. | |
4775 | (c_parser_omp_all_clauses): Add finish_p argument. Don't call | |
4776 | c_finish_omp_clauses if it is false. Handle new OpenMP 4.0 clauses. | |
4777 | (c_parser_omp_atomic): Parse seq_cst clause, pass true if it is | |
4778 | present to c_finish_omp_atomic. Handle OpenMP 4.0 atomic forms. | |
4779 | (c_parser_omp_for_loop): Add CODE argument, pass it through | |
4780 | to c_finish_omp_for. Change last argument to cclauses, | |
4781 | and adjust uses to grab parallel clauses from the array of all | |
4782 | the split clauses. Adjust c_parser_binary_expression, | |
4783 | c_parser_declaration_or_fndef and c_finish_omp_for callers. | |
4784 | (omp_split_clauses): New function. | |
4785 | (c_parser_omp_simd): New function. | |
4786 | (c_parser_omp_for): Add p_name, mask and cclauses arguments. | |
4787 | Allow the function to be called also when parsing combined constructs, | |
4788 | and call c_parser_omp_simd when parsing for simd. | |
4789 | (c_parser_omp_sections_scope): If section-sequence doesn't start with | |
4790 | #pragma omp section, require exactly one structured-block instead of | |
4791 | sequence of statements. | |
4792 | (c_parser_omp_sections): Add p_name, mask and cclauses arguments. | |
4793 | Allow the function to be called also when parsing combined constructs. | |
4794 | (c_parser_omp_parallel): Add p_name, mask and cclauses arguments. | |
4795 | Allow the function to be called also when parsing combined | |
4796 | constructs. | |
4797 | (c_parser_omp_taskgroup, c_parser_omp_cancel, | |
4798 | c_parser_omp_cancellation_point, c_parser_omp_distribute, | |
4799 | c_parser_omp_teams, c_parser_omp_target_data, | |
4800 | c_parser_omp_target_update, c_parser_omp_target, | |
4801 | c_parser_omp_declare_simd, c_finish_omp_declare_simd, | |
4802 | c_parser_omp_declare_target, c_parser_omp_end_declare_target, | |
4803 | c_parser_omp_declare_reduction, c_parser_omp_declare): New functions. | |
4804 | (c_parser_omp_construct): Add p_name and mask vars. Handle | |
4805 | PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_SIMD, PRAGMA_OMP_TASKGROUP, | |
4806 | PRAGMA_OMP_TEAMS. Adjust c_parser_omp_for, c_parser_omp_parallel | |
4807 | and c_parser_omp_sections callers. | |
4808 | (c_parse_file): Initialize tparser.tokens and the_parser->tokens here. | |
4809 | (OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK, | |
4810 | OMP_SINGLE_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1. | |
4811 | (OMP_PARALLEL_CLAUSE_MASK): Likewise. Add OMP_CLAUSE_PROC_BIND. | |
4812 | (OMP_TASK_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1. Add | |
4813 | OMP_CLAUSE_DEPEND. | |
4814 | (OMP_SIMD_CLAUSE_MASK, OMP_CANCEL_CLAUSE_MASK, | |
4815 | OMP_CANCELLATION_POINT_CLAUSE_MASK, OMP_DISTRIBUTE_CLAUSE_MASK, | |
4816 | OMP_TEAMS_CLAUSE_MASK, OMP_TARGET_DATA_CLAUSE_MASK, | |
4817 | OMP_TARGET_UPDATE_CLAUSE_MASK, OMP_TARGET_CLAUSE_MASK, | |
4818 | OMP_DECLARE_SIMD_CLAUSE_MASK): Define. | |
4819 | * c-typeck.c: Include tree-inline.h. | |
4820 | (c_finish_omp_cancel, c_finish_omp_cancellation_point, | |
4821 | handle_omp_array_sections_1, handle_omp_array_sections, | |
4822 | c_clone_omp_udr, c_find_omp_placeholder_r): New functions. | |
4823 | (c_finish_omp_clauses): Handle new OpenMP 4.0 clauses and | |
4824 | user defined reductions. | |
4825 | (c_tree_equal): New function. | |
4826 | * c-tree.h (temp_store_parm_decls, temp_pop_parm_decls, | |
4827 | c_finish_omp_cancel, c_finish_omp_cancellation_point, c_tree_equal, | |
4828 | c_omp_reduction_id, c_omp_reduction_decl, c_omp_reduction_lookup, | |
4829 | c_check_omp_declare_reduction_r): New prototypes. | |
4830 | * c-decl.c (current_omp_declare_target_attribute): New variable. | |
4831 | (c_decl_attributes): New function. | |
4832 | (start_decl, start_function): Use it instead of decl_attributes. | |
4833 | (temp_store_parm_decls, temp_pop_parm_decls, c_omp_reduction_id, | |
4834 | c_omp_reduction_decl, c_omp_reduction_lookup, | |
4835 | c_check_omp_declare_reduction_r): New functions. | |
4836 | ||
3ce7d1bd | 4837 | 2013-09-25 Tom Tromey <tromey@redhat.com> |
4838 | ||
4839 | * Make-lang.in (c/gccspec.o): Remove. | |
4840 | (CFLAGS-c/gccspec.o): New variable. | |
4841 | (cc1-checksum.o, C_TREE_H, c/c-aux-info.o, c/c-convert.o) | |
4842 | (c/c-decl.o, c/c-errors.o, c/c-lang.o, c/c-objc-common.o) | |
4843 | (c/c-parser.o, c/c-typeck.o, c/c-array-notation.o): Remove. | |
4844 | ||
96da1c1d | 4845 | 2013-09-25 Tom Tromey <tromey@redhat.com> |
4846 | ||
4847 | * Make-lang.in (c/gccspec.o): Don't use subshell. | |
4848 | ||
1b309377 | 4849 | 2013-09-18 Marek Polacek <polacek@redhat.com> |
4850 | ||
4851 | PR sanitize/58443 | |
4852 | * c-typeck.c (build_binary_op): Properly honor -fsanitize options. | |
4853 | Remove unnecessary check. | |
4854 | ||
05f893e1 | 4855 | 2013-09-18 Marek Polacek <polacek@redhat.com> |
4856 | ||
4857 | PR sanitizer/58411 | |
4858 | * c-typeck.c (build_binary_op): Don't sanitize function if it has the | |
4859 | no_sanitize_undefined attribute. | |
4860 | ||
bda0b9d2 | 4861 | 2013-09-13 Kai Tietz <ktietz@redhat.com> |
4862 | ||
4863 | PR target/57848 | |
4864 | * c-decl.c (c_builtin_function_ext_scope): Remove | |
4865 | wrong assumption that it is never called on prexisting | |
4866 | symbol. | |
4867 | ||
73437615 | 4868 | 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com> |
4869 | ||
4870 | * c-typeck.c (build_binary_op): Use vector_types_compatible_elements_p. | |
4871 | ||
eaab24b9 | 4872 | 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net> |
4873 | ||
4874 | * c-objc-common.c (c_tree_printer): Tidy. | |
4875 | ||
9e46467d | 4876 | 2013-08-30 Marek Polacek <polacek@redhat.com> |
4877 | ||
4878 | * c-typeck.c (build_binary_op): Add division by zero and shift | |
4879 | instrumentation. | |
4880 | ||
f8234178 | 4881 | 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com> |
f9086116 | 4882 | Joseph Myers <joseph@codesourcery.com> |
f8234178 | 4883 | |
c90a7d10 | 4884 | PR c/35649 |
f8234178 | 4885 | * c-typeck.c (c_common_type): Prefer double_type_node over |
4886 | other REAL_TYPE types with the same precision. | |
4887 | (convert_arguments): Likewise. | |
4888 | ||
6f07f480 | 4889 | 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net> |
4890 | ||
4891 | * c-objc-common.c (c_tree_printer): Document the nature of the cast. | |
4892 | (c_initialize_diagnostics): Call a destructor for the early printer. | |
4893 | ||
eed6bc21 | 4894 | 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net> |
4895 | ||
4896 | * c-objc-common.c (c_initialize_diagnostics): Simplify C pretty | |
4897 | printer initialization. | |
4898 | ||
57717943 | 4899 | 2013-08-19 Balaji V. Iyer <balaji.v.iyer@intel.com> |
eed6bc21 | 4900 | |
57717943 | 4901 | PR c/57490 |
4902 | * c-array-notation.c (fix_conditional_array_notations_1): Added a | |
4903 | check for truth values. | |
4904 | (expand_array_notation_exprs): Added truth values case. Removed an | |
4905 | unwanted else. Added for-loop to walk through subtrees in default | |
4906 | case. | |
4907 | ||
a94db6b0 | 4908 | 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net> |
4909 | ||
4910 | * c-objc-common.c (c_initialize_diagnostics): Don't call pp_base. | |
4911 | ||
e76163a9 | 4912 | 2013-07-23 Joseph Myers <joseph@codesourcery.com> |
4913 | ||
4914 | * c-parser.c (struct c_generic_association): Fix typo. | |
4915 | ||
7aa04c8d | 4916 | 2013-07-23 Tom Tromey <tromey@redhat.com> |
4917 | Joseph Myers <joseph@codesourcery.com> | |
4918 | ||
4919 | * c-parser.c (struct c_generic_association): New. | |
4920 | (c_generic_association_d): New typedef. | |
4921 | (c_parser_generic_selection): New function. | |
4922 | (c_parser_postfix_expression): Handle RID_GENERIC. | |
4923 | ||
76bbe4ca | 4924 | 2013-07-13 Jason Merrill <jason@redhat.com> |
4925 | ||
4926 | PR c++/57793 | |
4927 | * c-decl.c (finish_struct): Check for too-large class. | |
4928 | ||
21ebaa24 | 4929 | 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com> |
f5298614 | 4930 | |
4931 | PR c/57821 | |
4932 | * c-typeck.c (set_init_index): When folding, check for index overflow. | |
4933 | ||
936c3081 | 4934 | 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com> |
4935 | ||
4936 | * c-parser.c (c_parser_array_notation): Removed rejection of array | |
4937 | notations in an array of function pointers. | |
4938 | ||
50acebe0 | 4939 | 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com> |
4940 | ||
4941 | * c-array-notation.c (make_triplet_val_inv): New function. | |
4942 | (create_cmp_incr): Likewise. | |
4943 | (create_array_refs): Likewise. | |
4944 | (fix_builtin_array_notation_fn): Replaced all mallocs with tree vec. | |
4945 | Also modularized common parts between functions and called the function. | |
4946 | (build_array_notation_expr): Likewise. | |
4947 | (fix_conditional_array_notations_1): Likewise. | |
4948 | (fix_array_notation_expr): Likewise. | |
4949 | (fix_array_notation_call_expr): Likewise. | |
4950 | ||
01e6cdb4 | 4951 | 2013-06-18 Marek Polacek <polacek@redhat.com> |
4952 | ||
4953 | PR c/57630 | |
4954 | * c-decl.c (check_for_loop_decls): Improve diagnostics messages. | |
4955 | ||
6a3adac6 | 4956 | 2013-06-12 Balaji V. Iyer <balaji.v.iyer@intel.com> |
4957 | ||
4958 | * c-array-notation.c (build_array_notation_expr): Reject array notation | |
4959 | mismatch between LHS and RHS even inside a call_expr. Also, removed | |
4960 | a couple while statements that were dead code. | |
4961 | ||
62aab3f3 | 4962 | 2013-06-10 Balaji V. Iyer <balaji.v.iyer@intel.com> |
4963 | ||
4964 | * c-array-notation.c (fix_builtin_array_notation_fn): Fully folded | |
4965 | excessive precision expressions in function parameters. Also removed | |
4966 | couple unwanted while statements. | |
4967 | ||
bfc83720 | 4968 | 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com> |
4969 | ||
4970 | * c-array-notation.c (expand_array_notation_exprs): Added | |
4971 | ARRAY_NOTATION_REF case. | |
4972 | ||
09970d67 | 4973 | 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com> |
4974 | ||
4975 | * c-array-notation.c (length_mismatch_in_expr_p): Moved this | |
4976 | function to c-family/array-notation-common.c. | |
4977 | (is_cilkplus_reduce_builtin): Likewise. | |
4978 | (find_rank): Likewise. | |
4979 | (extract_array_notation_exprs): Likewise. | |
4980 | (replace_array_notations): Likewise. | |
4981 | (find_inv_trees): Likewise. | |
4982 | (replace_inv_trees): Likewise. | |
4983 | (contains_array_notation_expr): Likewise. | |
4984 | (find_correct_array_notation_type): Likewise. | |
4985 | (replace_invariant_exprs): Initialized additional_tcodes to NULL. | |
4986 | (struct inv_list): Moved this to c-family/array-notation-common.c. | |
4987 | * c-tree.h (is_cilkplus_builtin_reduce): Remove prototype. | |
4988 | ||
6e13bc01 | 4989 | 2013-06-05 Balaji V. Iyer <balaji.v.iyer@intel.com> |
4990 | ||
4991 | * c-typeck.c (convert_arguments): Moved checking of builtin cilkplus | |
4992 | reduction functions outside the for-loop. Added a check if the fundecl | |
4993 | is non-NULL. Finally, removed an unwanted if-statement, and made the | |
4994 | body unconditional. | |
4995 | ||
cc92dddc | 4996 | 2013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com> |
4997 | ||
4998 | * c-typeck.c (c_finish_if_stmt): Added a check to see if the rank of the | |
4999 | condition of the if-statement matches the rank of else-block and then- | |
5000 | block when array notations are used. | |
5001 | * c-parser.c (c_parser_declaration_or_fndef): Expanded array notation | |
5002 | expression after the entire function body is parsed. | |
5003 | (c_parser_expr_no_commas): Delayed creating array notation expressions | |
5004 | to the end of function parsing. | |
5005 | * c-array-notation.c (fix_conditional_array_notations_1): Expanded the | |
5006 | whole if-statement instead of just the condition. | |
5007 | (expand_array_notation_exprs): Added MODIFY_EXPR case. | |
5008 | ||
eddc63fd | 5009 | 2013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com> |
5010 | ||
5011 | PR c/57474 | |
5012 | * c-array-notation.c (build_array_notation_expr): Initialized rhs_length | |
5013 | array to NULL_TREE if they are unused. Also added a check for the | |
5014 | field to be NULL before its fields are used in future. | |
5015 | ||
a2115a4a | 5016 | 2013-05-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
5017 | ||
5018 | PR bootstrap/57450 | |
5019 | * c-array-notation.c (length_mismatch_in_expr_p): Use absu_hwi. | |
5020 | (build_array_notation_expr): Likewise. | |
5021 | ||
3c6d4197 | 5022 | 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com> |
5023 | ||
5024 | * c-typeck.c (build_array_ref): Added a check to see if array's | |
5025 | index is greater than one. If true, then emit an error. | |
5026 | (build_function_call_vec): Exclude error reporting and checking | |
5027 | for builtin array-notation functions. | |
5028 | (convert_arguments): Likewise. | |
5029 | (c_finish_return): Added a check for array notations as a return | |
5030 | expression. If true, then emit an error. | |
5031 | (c_finish_loop): Added a check for array notations in a loop | |
5032 | condition. If true then emit an error. | |
5033 | (lvalue_p): Added a ARRAY_NOTATION_REF case. | |
5034 | (build_binary_op): Added a check for array notation expr inside | |
5035 | op1 and op0. If present, we call another function to find correct | |
5036 | type. | |
5037 | * Make-lang.in (C_AND_OBJC_OBJS): Added c-array-notation.o. | |
5038 | * c-parser.c (c_parser_compound_statement): Check if array | |
5039 | notation code is used in tree, if so, then transform them into | |
5040 | appropriate C code. | |
5041 | (c_parser_expr_no_commas): Check if array notation is used in LHS | |
5042 | or RHS, if so, then build array notation expression instead of | |
5043 | regular modify. | |
5044 | (c_parser_postfix_expression_after_primary): Added a check for | |
5045 | colon(s) after square braces, if so then handle it like an array | |
5046 | notation. Also, break up array notations in unary op if found. | |
5047 | (c_parser_direct_declarator_inner): Added a check for array | |
5048 | notation. | |
5049 | (c_parser_compound_statement): Added a check for array notation in | |
5050 | a stmt. If one is present, then expand array notation expr. | |
5051 | (c_parser_if_statement): Likewise. | |
5052 | (c_parser_switch_statement): Added a check for array notations in | |
5053 | a switch statement's condition. If true, then output an error. | |
5054 | (c_parser_while_statement): Similarly, but for a while. | |
5055 | (c_parser_do_statement): Similarly, but for a do-while. | |
5056 | (c_parser_for_statement): Similarly, but for a for-loop. | |
5057 | (c_parser_unary_expression): Check if array notation is used in a | |
5058 | pre-increment or pre-decrement expression. If true, then expand | |
5059 | them. | |
5060 | (c_parser_array_notation): New function. | |
5061 | * c-array-notation.c: New file. | |
5062 | * c-tree.h (is_cilkplus_reduce_builtin): Protoize. | |
5063 | ||
2c1c8a2c | 5064 | 2013-05-23 Mike Stump <mikestump@comcast.net> |
5065 | ||
5066 | * c-typeck.c (convert_for_assignment): Handle references to memory | |
5067 | spaces better. | |
5068 | ||
be5f9e46 | 5069 | 2013-05-16 Jason Merrill <jason@redhat.com> |
5070 | ||
5071 | * Make-lang.in (cc1$(exeext)): Use link mutex. | |
5072 | ||
9205a6cc | 5073 | 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com> |
5074 | ||
5075 | * c-typeck.c (pointer_diff): Change -Wpointer-arith pedwarns | |
5076 | to simply use OPT_Wpointer_arith. | |
5077 | (build_unary_op): Likewise. | |
5078 | ||
0b049e15 | 5079 | 2013-04-03 Jakub Jelinek <jakub@redhat.com> |
5080 | ||
5081 | PR c/19449 | |
5082 | * c-parser.c (c_parser_get_builtin_args): Add choose_expr_p | |
5083 | argument. If set, or it temporarily for parsing of the first | |
5084 | argument into force_folding_builtin_constant_p. | |
5085 | (c_parser_postfix_expression): Adjust callers. | |
5086 | ||
8e966116 | 5087 | 2013-03-21 Richard Biener <rguenther@suse.de> |
5088 | ||
5089 | * c-objc-common.c (c_tree_printer): Use DECL_HAS_DEBUG_EXPR_P | |
5090 | instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly. | |
5091 | ||
b862f263 | 5092 | 2013-02-12 Marek Polacek <polacek@redhat.com> |
5093 | ||
5094 | PR c/44938 | |
5095 | * c-parser.c (c_parser_postfix_expression_after_primary): Initialize | |
5096 | origtypes to NULL. | |
5097 | ||
54550ecb | 5098 | 2013-01-24 Jakub Jelinek <jakub@redhat.com> |
5099 | ||
5100 | PR c/56078 | |
5101 | * c-typeck.c (set_nonincremental_init_from_string): If | |
5102 | constructor_max_index is NULL, treat it as if tree_int_cst_lt | |
5103 | returned false. | |
5104 | (process_init_element): Likewise. | |
5105 | ||
035b65e2 | 5106 | 2012-12-20 Jakub Jelinek <jakub@redhat.com> |
5107 | ||
5108 | PR c++/55619 | |
5109 | * c-parser.c (c_parser_asm_operands): Remove CONVERT_P | |
5110 | argument, don't call default_function_array_conversion | |
5111 | nor c_fully_fold here. | |
5112 | (c_parser_asm_statement): Adjust callers. | |
5113 | * c-typeck.c (build_asm_expr): Call c_fully_fold on inputs | |
5114 | and outputs here, and call default_function_array_conversion | |
5115 | on inputs that don't need to be addressable. | |
5116 | ||
7cbb7f1a | 5117 | 2012-12-18 Jakub Jelinek <jakub@redhat.com> |
5118 | ||
5119 | PR c/39464 | |
5120 | * c-typeck.c (convert_for_assignment): For -Wpointer-sign | |
5121 | warning require that both c_common_unsigned_type as well as | |
5122 | c_common_signed_type is the same for both mvl and mvr types. | |
5123 | ||
f1f41a6c | 5124 | 2012-11-16 Diego Novillo <dnovillo@google.com> |
5125 | ||
5126 | Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec) | |
5127 | ||
5128 | * c-common.c: Use new vec API in vec.h. | |
5129 | * c-common.h: Likewise. | |
5130 | * c-gimplify.c: Likewise. | |
5131 | * c-pragma.c: Likewise. | |
5132 | * c-pretty-print.c: Likewise. | |
5133 | * c-pretty-print.h: Likewise. | |
5134 | * c-semantics.c: Likewise. | |
5135 | * c-decl.c: Likewise. | |
5136 | * c-parser.c: Likewise. | |
5137 | * c-tree.h: Likewise. | |
5138 | * c-typeck.c: Likewise. | |
5139 | ||
8b447d3f | 5140 | 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com> |
5141 | ||
5142 | PR c++/54930 | |
5143 | * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr. | |
5144 | ||
08fc5390 | 5145 | 2012-10-29 Manuel López-Ibáñez <manu@gcc.gnu.org> |
5146 | ||
5147 | PR c/53066 | |
5148 | * c-decl.c (warn_if_shadowing): Do not warn if a variable | |
5149 | shadows a function, unless the variable is a function or a | |
5150 | pointer-to-function. | |
5151 | ||
57f872a2 | 5152 | 2012-10-12 Jakub Jelinek <jakub@redhat.com> |
5153 | ||
5154 | PR c/54381 | |
5155 | * c-parser.c (struct c_tree_loc_pair): Removed. | |
5156 | (c_parser_expr_list): Remove struct c_tree_loc_pair * argument, | |
5157 | add location_t * and tree * arguments, fill in array of 3 | |
5158 | sizeof_arg trees and corresponding locs. | |
5159 | (c_parser_attributes, c_parser_objc_keywordexpr): Adjust | |
5160 | c_parser_expr_list callers. | |
5161 | (c_parser_postfix_expression_after_primary): Likewise. Pass | |
5162 | array of 3 sizeof_arg trees and locs (corresponding to first | |
5163 | 3 arguments) to sizeof_pointer_memaccess_warning. | |
5164 | ||
d1455aa3 | 5165 | 2012-10-09 Lawrence Crowl <crowl@google.com> |
5166 | ||
5167 | * Make-lang.in (c-decl.o): Add dependence on hash-table.h. | |
5168 | * c-decl.c (detect_field_duplicates_hash): Change to new type-safe | |
5169 | hash table. | |
5170 | ||
b0e7825e | 5171 | 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com> |
5172 | ||
5173 | PR c++/54194 | |
5174 | * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses | |
5175 | call. | |
5176 | ||
41ed701a | 5177 | 2012-10-09 Marc Glisse <marc.glisse@inria.fr> |
5178 | ||
5179 | PR c++/54427 | |
5180 | * c-typeck.c: Include c-common.h. | |
5181 | (enum stv_conv): Moved to c-common.h. | |
5182 | (scalar_to_vector): Moved to c-common.c. | |
5183 | (build_binary_op): Adapt to scalar_to_vector's new prototype. | |
5184 | * Make-lang.in: c-typeck.c depends on c-common.h. | |
5185 | ||
ef34afc1 | 5186 | 2012-10-04 Arnaud Charlet <charlet@adacore.com> |
5187 | ||
5188 | * c-decl.c (c_write_global_declarations): Fix handling of | |
5189 | -fdump-ada-spec*. | |
5190 | ||
7bd765d4 | 5191 | 2012-09-30 Sharad Singhai <singhai@google.com> |
5192 | ||
5193 | * c-decl.c (c_write_global_declarations): Use a different method | |
5194 | to determine if the dump has ben initialized. | |
5195 | ||
c4b1a13a | 5196 | 2012-09-14 Joseph Myers <joseph@codesourcery.com> |
5197 | ||
5198 | PR c/54552 | |
5199 | * c-typeck.c (c_cast_expr): When casting to a type requiring | |
5200 | C_MAYBE_CONST_EXPR to be created, pass the inner expression to | |
5201 | c_fully_fold first. | |
5202 | ||
bb554051 | 5203 | 2012-09-14 Joseph Myers <joseph@codesourcery.com> |
5204 | ||
5205 | PR c/54103 | |
5206 | * c-typeck.c (build_unary_op): Pass original argument of | |
5207 | TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove | |
5208 | any C_MAYBE_CONST_EXPR, if it has integer operands. | |
5209 | (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR, | |
5210 | TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR | |
5211 | to c_objc_common_truthvalue_conversion, then remove any | |
5212 | C_MAYBE_CONST_EXPR, if they have integer operands. Use | |
5213 | c_objc_common_truthvalue_conversion not | |
5214 | c_common_truthvalue_conversion. | |
5215 | (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and | |
5216 | call note_integer_operands for arguments with integer operands | |
5217 | that are not integer constants. | |
5218 | ||
c708c6ef | 5219 | 2012-09-13 Jakub Jelinek <jakub@redhat.com> |
5220 | ||
5221 | PR c/54559 | |
5222 | * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or | |
5223 | COMPLEX_TYPE with in_late_binary_op set temporarily to true. | |
5224 | ||
cce20430 | 5225 | 2012-08-31 Jakub Jelinek <jakub@redhat.com> |
5226 | ||
5227 | PR c/54428 | |
5228 | * c-convert.c (convert): Don't call fold_convert_loc if | |
5229 | TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e | |
5230 | is a COMPLEX_EXPR. Remove TYPE_MAIN_VARIANT check from | |
5231 | COMPLEX_TYPE -> COMPLEX_TYPE conversion. | |
5232 | ||
a90d57ed | 5233 | 2012-08-24 Jakub Jelinek <jakub@redhat.com> |
5234 | ||
5235 | PR c/54355 | |
5236 | * c-decl.c (c_parser_label): Pass true as nested and fix up comments | |
5237 | for nested and empty_ok arguments in the call to | |
5238 | c_parser_declaration_or_fndef. | |
5239 | ||
f003f5dc | 5240 | 2012-08-17 Jakub Jelinek <jakub@redhat.com> |
5241 | ||
5242 | * c-tree.h (c_last_sizeof_arg): Declare. | |
5243 | * c-parser.c (struct c_tree_loc_pair): New type. | |
5244 | (c_parser_expr_list): Add sizeof_arg argument. Fill it in if | |
5245 | non-NULL. | |
5246 | (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers. | |
5247 | (c_parser_postfix_expression_after_primary): Likewise. Call | |
5248 | sizeof_pointer_memaccess_warning if needed. | |
5249 | (sizeof_ptr_memacc_comptypes): New function. | |
5250 | * c-typeck.c (c_last_sizeof_arg): New global variable. | |
5251 | (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it. | |
5252 | ||
a5656b73 | 5253 | 2012-07-24 Uros Bizjak <ubizjak@gmail.com> |
5254 | ||
5255 | * c-lang.h (lang_decl): Add variable_size GTY option. | |
5256 | ||
b9ed1410 | 5257 | 2012-07-16 Steven Bosscher <steven@gcc.gnu.org> |
5258 | ||
5259 | * c-decl.c: Include dumpfile.h instead of tree-dump.h. | |
5260 | * Make-lang.in: Fix dependencies. | |
5261 | ||
e53d55e7 | 5262 | 2012-06-29 Steven Bosscher <steven@gcc.gnu.org> |
5263 | ||
5264 | * Make-lang.in: New file, rules migrated from gcc/Makefile.in | |
5265 | and add language Makefile hooks. | |
5266 | * config-lang.in: New file. | |
5267 | * c-config-lang.in: Moved from gcc/config-lang.in to here, and | |
5268 | add the required "normal" config-lang.in rules. | |
5269 | * c-lang.h: Moved from gcc/ to here. | |
5270 | * c-tree.h: Likewise. | |
5271 | * c-objc-common.c: Likewise. | |
5272 | * c-objc-common.h: Likewise. | |
5273 | * c-typeck.c: Likewise. | |
5274 | * c-convert.c: Likewise. | |
5275 | * c-lang.c: Likewise. | |
5276 | * c-aux-info.c: Likewise. | |
5277 | * c-errors.c: Likewise. | |
5278 | * gccspec.c: Likewise. | |
5279 | * c-decl.c: Likewise. Include gt-c-c-decl.h, not gt-c-decl.h. | |
5280 | * c-parser.c: Likewise. Include gt-c-c-parser.h, not gt-c-parser.h. | |
5281 | \f | |
aad93da1 | 5282 | Copyright (C) 2012-2017 Free Software Foundation, Inc. |
e53d55e7 | 5283 | |
5284 | Copying and distribution of this file, with or without modification, | |
5285 | are permitted in any medium without royalty provided the copyright | |
5286 | notice and this notice are preserved. |