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