]>
Commit | Line | Data |
---|---|---|
d7ff7ae5 MP |
1 | 2014-06-09 Marek Polacek <polacek@redhat.com> |
2 | ||
3 | PR c/36446 | |
4 | * c-typeck.c (error_init): Call inform instead of error_at. | |
5 | (pedwarn_init): Call inform instead of pedwarn. | |
6 | (warning_init): Call inform instead of warning_at. | |
7 | ||
24d047a3 JH |
8 | 2014-06-07 Jan Hubicka <hubicka@ucw.cz> |
9 | ||
10 | * c-decl.c (merge_decls): Use set_decl_section_name. | |
11 | (duplicate_decls): Remove node if it exists. | |
12 | ||
9bac5cbb G |
13 | 2014-06-05 S. Gilles <sgilles@terpmail.umd.edu> |
14 | ||
15 | PR c/53119 | |
16 | * c-typeck.c (push_init_level, process_init_element, | |
17 | pop_init_level): Correct check for zero initialization, move | |
18 | missing brace warning to respect zero initialization. | |
19 | ||
8ffcdea8 MP |
20 | 2014-06-05 Marek Polacek <polacek@redhat.com> |
21 | ||
22 | PR c/56724 | |
23 | * c-typeck.c (convert_for_assignment): Use expr_loc for ic_argpass. | |
24 | ||
742938c9 MP |
25 | 2014-06-05 Marek Polacek <polacek@redhat.com> |
26 | ||
27 | PR c/49706 | |
28 | * c-typeck.c (parser_build_binary_op): Warn when logical not is used | |
29 | on the left hand side operand of a comparison. | |
30 | ||
6447c55d MP |
31 | 2014-06-05 Marek Polacek <polacek@redhat.com> |
32 | ||
33 | PR c/48062 | |
34 | * c-decl.c (warn_if_shadowing): Call inform instead of warning_at. | |
35 | Print note only if the warning was printed. | |
36 | ||
9dc7743c IZ |
37 | 2014-06-04 Igor Zamyatin <igor.zamyatin@intel.com> |
38 | ||
39 | PR c/58942 | |
40 | * c-array-notation.c (fix_builtin_array_notation_fn): Handle the case | |
41 | with a pointer. | |
42 | ||
fedfecef MP |
43 | 2014-06-03 Marek Polacek <polacek@redhat.com> |
44 | ||
45 | PR c/60439 | |
46 | * c-parser.c (c_parser_switch_statement): Pass explicit_cast_p to | |
47 | c_start_case. | |
48 | * c-tree.h (c_start_case): Update. | |
49 | * c-typeck.c (c_start_case): Add new boolean parameter. Warn if | |
50 | switch condition has boolean value. | |
51 | ||
9b2b7279 AM |
52 | 2014-06-02 Andrew MacLeod <amacleod@redhat.com> |
53 | ||
54 | * c-decl.c: Include builtins.h. | |
55 | * c-parser.c: Likewise. | |
56 | ||
5c1bc275 MP |
57 | 2014-05-27 Marek Polacek <polacek@redhat.com> |
58 | ||
59 | PR c/56724 | |
60 | * c-typeck.c (convert_arguments): Get location of a parameter. Change | |
61 | error and warning calls to error_at and warning_at. Pass location of | |
62 | a parameter to it. Call warning_at with OPT_Wtraditional_conversion. | |
63 | (convert_for_assignment): Add parameter to WARN_FOR_ASSIGNMENT and | |
64 | WARN_FOR_QUALIFIERS. Pass expr_loc to those. | |
65 | ||
97563bc8 IZ |
66 | 2014-05-26 Igor Zamyatin <igor.zamyatin@intel.com> |
67 | ||
68 | PR c/61191 | |
69 | * c-array-notation.c (fix_builtin_array_notation_fn): Check invalid | |
70 | function parameters. | |
71 | ||
aede2c10 JH |
72 | 2014-05-23 Jan Hubicka <hubicka@ucw.cz> |
73 | ||
74 | * c-decl.c (merge_decls): Preserve symtab node pointers. | |
75 | (duplicate_decls): Free new decl. | |
76 | ||
edbba2ce TS |
77 | 2014-05-23 Thomas Schwinge <thomas@codesourcery.com> |
78 | ||
f3316c6d TS |
79 | * c-typeck.c (c_finish_omp_clauses): Remove duplicated variable |
80 | initialization. | |
81 | ||
edbba2ce TS |
82 | * c-parser.c (c_parser_omp_target): Return bool values. |
83 | ||
68c81f24 TS |
84 | 2014-05-22 Thomas Schwinge <thomas@codesourcery.com> |
85 | ||
86 | * c-parser.c (c_parser_omp_clause_thread_limit): Rename | |
87 | num_teams_loc variable to num_thread_limit_loc. | |
88 | ||
632f2871 RS |
89 | 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com> |
90 | ||
91 | * c-array-notation.c (expand_array_notations): Use void_node | |
92 | instead of void_zero_node. | |
93 | ||
766090c2 TS |
94 | 2014-05-17 Trevor Saunders <tsaunders@mozilla.com> |
95 | ||
96 | * c-decl.c (finish_struct): Adjust. | |
97 | (finish_enum): Likewise. | |
98 | (bind): Adjust. | |
99 | (record_inline_static): Likewise. | |
100 | (push_scope): Likewise. | |
101 | (make_label): Likewise. | |
102 | (lookup_label_for_goto): Likewise. | |
103 | (finish_struct): Likewise. | |
104 | (finish_enum): Likewise. | |
105 | (store_parm_decls): Likewise. | |
106 | (c_push_function_context): Likewise. | |
107 | * c-lang.h: Remove usage of variable_size gty attribute. | |
108 | * c-parser.c (c_parse_init): Adjust. | |
109 | (c_parse_file): Likewise. | |
110 | ||
2b107f6b MP |
111 | 2014-05-13 Marek Polacek <polacek@redhat.com> |
112 | ||
113 | PR c/61162 | |
114 | * c-typeck.c (convert_for_assignment): Pass location to | |
115 | WARN_FOR_ASSIGNMENT instead of input_location. | |
116 | ||
d033409e MP |
117 | 2014-05-10 Marek Polacek <polacek@redhat.com> |
118 | ||
119 | * c-parser.c (c_parser_declaration_or_fndef): Pass init_loc to | |
120 | maybe_warn_string_init. | |
121 | (c_parser_postfix_expression_after_paren_type): Pass type_loc to | |
122 | maybe_warn_string_init. | |
123 | * c-tree.h (maybe_warn_string_init): Update declaration. | |
124 | * c-typeck.c (maybe_warn_string_init): Add location parameter. | |
125 | Call pedwarn_init with loc instead of with input_location. | |
126 | (digest_init): Pass init_loc to maybe_warn_string_init. | |
127 | (pop_init_level): Call pedwarn_init with loc instead of with | |
128 | input_location. | |
129 | (set_init_index): Likewise. | |
130 | (process_init_element): Likewise. | |
131 | ||
ea58ef42 MP |
132 | 2014-05-09 Marek Polacek <polacek@redhat.com> |
133 | ||
134 | PR c/61096 | |
135 | * c-parser.c (c_parser_braced_init): Pass brace_loc to push_init_level. | |
136 | (c_parser_initelt): Pass location to set_init_label. Pass array index | |
137 | location to set_init_index. | |
138 | * c-tree.h (push_init_level): Update declaration. | |
139 | (pop_init_level): Likewise. | |
140 | (set_init_index): Likewise. | |
141 | (set_init_label): Likewise. | |
142 | * c-typeck.c (error_init): Add location parameter. Call error_at | |
143 | instead of error. | |
144 | (digest_init): Pass init_loc to error_init. | |
145 | (really_start_incremental_init): | |
146 | (push_init_level): Add location parameter. Pass loc to pop_init_level | |
147 | and error_init. | |
148 | (pop_init_level): Likewise. | |
149 | (set_designator): Add location parameter. Pass loc to pop_init_level, | |
150 | push_init_level, and error_init. | |
151 | (set_init_index): Add location parameter. Pass loc to error_init and | |
152 | set_designator. | |
153 | (set_init_label): Likewise. | |
154 | (output_init_element): Pass loc to error_init. | |
155 | (process_init_element): Pass loc to error_init, pop_init_level, | |
156 | pedwarn_init, and push_init_level. | |
157 | ||
661a0813 MP |
158 | 2014-05-09 Marek Polacek <polacek@redhat.com> |
159 | ||
160 | PR c/50459 | |
161 | * c-parser.c (c_parser_attributes): Parse the arguments as an | |
162 | expression-list if the attribute takes identifier. | |
163 | ||
2793eeab MP |
164 | 2014-05-08 Marek Polacek <polacek@redhat.com> |
165 | ||
166 | PR c/61053 | |
167 | * c-decl.c (grokdeclarator): Use min_align_of_type instead of | |
168 | TYPE_ALIGN_UNIT. | |
169 | ||
f827930a MP |
170 | 2014-05-08 Marek Polacek <polacek@redhat.com> |
171 | ||
172 | PR c/61077 | |
173 | * c-decl.c (start_function): Warn for _Atomic-qualified return type | |
174 | of main. | |
175 | ||
1d60af08 KZ |
176 | 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com> |
177 | Mike Stump <mikestump@comcast.net> | |
178 | Richard Sandiford <rdsandiford@googlemail.com> | |
179 | ||
180 | * c-decl.c (check_bitfield_type_and_width): Use TYPE_SIGN. | |
181 | (finish_enum): Use wide-int interfaces. | |
182 | * c-parser.c (c_parser_cilk_clause_vectorlength): Likewise. | |
183 | * c-typeck.c (build_c_cast): Likewise. | |
184 | (set_nonincremental_init_from_string): Likewise. | |
185 | (c_tree_equal): Likewise. | |
186 | ||
a0e24419 MP |
187 | 2014-05-02 Marek Polacek <polacek@redhat.com> |
188 | ||
189 | PR c/25801 | |
190 | * c-typeck.c (c_size_in_bytes): Update comment. Don't call error. | |
191 | Return size_one_node when the type is not complete. | |
192 | (pointer_diff): Remove comment. | |
193 | (build_unary_op): Improve error messages. | |
194 | ||
19fc9faa MP |
195 | 2014-05-02 Marek Polacek <polacek@redhat.com> |
196 | ||
197 | * c-typeck.c (c_finish_return): Separate warning_at calls. | |
198 | ||
63bc4e87 MP |
199 | 2014-05-02 Marek Polacek <polacek@redhat.com> |
200 | ||
201 | * c-tree.h (error_init): Remove declaration. | |
202 | (pedwarn_init): Likewise. | |
203 | * c-typeck.c (error_init): Make static and move above. | |
204 | (pedwarn_init): Likewise. | |
205 | (warning_init): Move above. | |
206 | (maybe_warn_string_init): Likewise. | |
207 | ||
4bd2511b JL |
208 | 2014-05-01 Jeff Law <law@redhat.com> |
209 | ||
210 | Revert: | |
211 | ||
212 | 2014-04-24 Prathamesh Kulkarni <bilbotheelffriend@gmail.com> | |
213 | * c-parser.c (c_parser_sizeof_expression): Reorganize slightly to | |
214 | avoid goto. | |
215 | ||
6a358dcb MP |
216 | 2014-05-02 Marek Polacek <polacek@redhat.com> |
217 | ||
218 | PR c/60784 | |
219 | * c-typeck.c (push_init_level): Set constructor_designated to | |
220 | p->designated for structures. | |
221 | ||
ae5ebda4 MP |
222 | 2014-05-01 Marek Polacek <polacek@redhat.com> |
223 | ||
224 | PR c/60915 | |
225 | * c-parser.c (c_parser_declaration_or_fndef): Give better error if | |
226 | function-definition has an attribute after the declarator. | |
227 | ||
96b40f8d MP |
228 | 2014-05-01 Marek Polacek <polacek@redhat.com> |
229 | ||
230 | PR c/60257 | |
231 | * c-typeck.c (warning_init): Add location_t parameter. Call | |
232 | warning_at instead of warning. | |
233 | (push_init_level): Pass input_location to warning_init. | |
234 | (add_pending_init): Add location_t parameter. Pass loc to | |
235 | warning_init. | |
236 | (set_nonincremental_init): Pass input_location to add_pending_init. | |
237 | (set_nonincremental_init_from_string): Likewise. | |
238 | (output_init_element): Pass loc to warning_init and to | |
239 | add_pending_init. | |
240 | ||
32e00768 MP |
241 | 2014-05-01 Marek Polacek <polacek@redhat.com> |
242 | ||
243 | PR c/43395 | |
244 | * c-typeck.c (c_finish_return): Distinguish between label and variable | |
245 | when warning about returning local address. | |
246 | ||
c9379ce2 MP |
247 | 2014-05-01 Marek Polacek <polacek@redhat.com> |
248 | ||
249 | PR c/29467 | |
250 | * c-decl.c (declspecs_add_type): Pedwarn if boolean types are used | |
251 | in C89 mode. | |
252 | ||
d00887e8 MP |
253 | 2014-05-01 Marek Polacek <polacek@redhat.com> |
254 | ||
255 | PR c/43245 | |
256 | * c-typeck.c (convert_for_assignment): Pass OPT_Wdiscarded_qualifiers | |
257 | instead of 0 to WARN_FOR_QUALIFIERS. | |
258 | ||
5436fa2e MP |
259 | 2014-05-01 Marek Polacek <polacek@redhat.com> |
260 | ||
261 | PR c/56989 | |
262 | * c-typeck.c (default_conversion): Use better location for | |
263 | error call. | |
264 | ||
f8ed5150 MP |
265 | 2014-04-30 Marek Polacek <polacek@redhat.com> |
266 | ||
267 | * c-typeck.c (build_binary_op): Call ubsan_instrument_division | |
268 | also when SANITIZE_FLOAT_DIVIDE is on. | |
269 | ||
8337d1db MP |
270 | 2014-04-30 Marek Polacek <polacek@redhat.com> |
271 | ||
272 | PR c/60139 | |
273 | * c-typeck.c (output_init_element): Pass OPT_Wpedantic to pedwarn | |
274 | and pedwarn_init. Use loc insted of input_location. | |
275 | ||
c4bdc42f MP |
276 | 2014-04-30 Marek Polacek <polacek@redhat.com> |
277 | ||
278 | PR c/60351 | |
279 | * c-typeck.c (build_binary_op): Use location when warning about | |
280 | shift count. | |
281 | ||
45484dcf MP |
282 | 2014-04-25 Marek Polacek <polacek@redhat.com> |
283 | ||
284 | PR c/18079 | |
285 | * c-decl.c (diagnose_mismatched_decls): Warn for mismatched | |
286 | always_inline/noinline and hot/cold attributes. | |
287 | ||
34cf811f MP |
288 | 2014-04-25 Marek Polacek <polacek@redhat.com> |
289 | ||
290 | PR c/60114 | |
291 | * c-parser.c (c_parser_initelt): Pass input_location to | |
292 | process_init_element. | |
293 | (c_parser_initval): Pass loc to process_init_element. | |
294 | * c-tree.h (process_init_element): Adjust declaration. | |
295 | * c-typeck.c (push_init_level): Pass input_location to | |
296 | process_init_element. | |
297 | (pop_init_level): Likewise. | |
298 | (set_designator): Likewise. | |
299 | (output_init_element): Add location_t parameter. Pass loc to | |
300 | digest_init. | |
301 | (output_pending_init_elements): Pass input_location to | |
302 | output_init_element. | |
303 | (process_init_element): Add location_t parameter. Pass loc to | |
304 | output_init_element. | |
305 | ||
42056eac JJ |
306 | 2014-04-24 Jakub Jelinek <jakub@redhat.com> |
307 | ||
308 | * c-parser.c (c_parser_omp_atomic): Allow seq_cst before | |
309 | atomic-clause, allow comma in between atomic-clause and | |
310 | seq_cst. | |
311 | ||
e162a134 JJ |
312 | 2014-04-22 Jakub Jelinek <jakub@redhat.com> |
313 | ||
314 | PR c/59073 | |
315 | * c-parser.c (c_parser_omp_parallel): If c_parser_omp_for | |
316 | fails, don't set OM_PARALLEL_COMBINED and return NULL. | |
317 | ||
2f6babac IZ |
318 | 2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com> |
319 | ||
320 | PR middle-end/60469 | |
321 | * c-array-notation.c (fix_builtin_array_notation_fn): Use | |
322 | create_tmp_var instead build_decl for creating temps. | |
323 | (build_array_notation_expr): Likewise. | |
324 | (fix_conditional_array_notations_1): Likewise. | |
325 | (fix_array_notation_expr): Likewise. | |
326 | (fix_array_notation_call_expr): Likewise. | |
327 | ||
8edbfaa6 JJ |
328 | 2014-03-28 Jakub Jelinek <jakub@redhat.com> |
329 | ||
330 | PR c++/60689 | |
331 | * c-tree.h (c_build_function_call_vec): New prototype. | |
332 | * c-typeck.c (build_function_call_vec): Don't call | |
333 | resolve_overloaded_builtin here. | |
334 | (c_build_function_call_vec): New wrapper function around | |
335 | build_function_call_vec. Call resolve_overloaded_builtin here. | |
336 | (convert_lvalue_to_rvalue, build_function_call, build_atomic_assign): | |
337 | Call c_build_function_call_vec instead of build_function_call_vec. | |
338 | * c-parser.c (c_parser_postfix_expression_after_primary): Likewise. | |
339 | * c-decl.c (finish_decl): Likewise. | |
340 | ||
7485aeea MLI |
341 | 2014-03-18 Manuel López-Ibáñez <manu@gcc.gnu.org> |
342 | ||
343 | PR c/55383 | |
344 | * c-typeck.c: Use correct format string in cast-qual warning | |
345 | ||
b17a8b07 TS |
346 | 2014-03-07 Thomas Schwinge <thomas@codesourcery.com> |
347 | ||
348 | * c-decl.c (c_decl_attributes): Use | |
349 | lang_hooks.types.omp_mappable_type. | |
350 | * c-typeck.c (c_finish_omp_clauses): Likewise. | |
351 | ||
3af9c5e9 MP |
352 | 2014-03-06 Marek Polacek <polacek@redhat.com> |
353 | ||
354 | PR c/60197 | |
355 | * c-typeck.c (c_finish_return): Call contains_cilk_spawn_stmt instead | |
356 | of checking tree code. | |
357 | ||
1c9f5f33 PK |
358 | 2014-02-19 Prathamesh Kulkarni <bilbotheelffriend@gmail.com> |
359 | ||
360 | * c-parser.c (c_parser_declspecs): Replace call to error by error_at. | |
361 | (c_parser_parameter_declaration): Likewise. | |
362 | ||
cc28fc7f MP |
363 | 2014-02-19 Marek Polacek <polacek@redhat.com> |
364 | ||
365 | PR c/60195 | |
366 | * c-typeck.c (convert_lvalue_to_rvalue): Set TREE_NO_WARNING on tmp. | |
367 | Call mark_exp_read on exp.value. | |
368 | (build_atomic_assign): Set TREE_NO_WARNING on val and old. Set | |
369 | TREE_ADDRESSABLE on old instead of val. | |
370 | (emit_side_effect_warnings): Warn only if RHS has !TREE_NO_WARNING. | |
371 | ||
b581c05c PK |
372 | 2014-02-07 Prathamesh Kulkarni <bilbotheelffriend@gmail.com> |
373 | ||
374 | * c-parser.c (c_parser_get_builtin_args): Replace calls to | |
375 | C_EXPR_APPEND by vec_safe_push. | |
376 | * c-tree.h (C_EXPR_APPEND): Remove. | |
377 | ||
81e5eca8 MP |
378 | 2014-01-31 Marek Polacek <polacek@redhat.com> |
379 | ||
380 | PR c/59963 | |
381 | * c-typeck.c (convert_lvalue_to_rvalue): Pass vNULL to | |
382 | build_function_call_vec. | |
383 | (build_function_call): Likewise. | |
384 | (build_atomic_assign): Likewise. | |
385 | (build_function_call_vec): Add arg_loc parameter. Use it. | |
386 | (convert_arguments): Likewise. | |
387 | (convert_for_assignment): Rename rhs_loc to expr_loc. | |
388 | * c-parser.c (c_parser_attributes): Pass NULL to c_parser_expr_list. | |
389 | (c_parser_objc_keywordexpr): Likewise. | |
390 | (c_parser_postfix_expression_after_primary): Call | |
391 | build_function_call_vec with expr_loc rather than op_loc. | |
392 | Call c_parser_expr_list to fill arg_loc. Pass arg_loc to | |
393 | build_function_call_vec. | |
394 | (c_parser_expr_list): Add locations parameter. Fill it with locations | |
395 | of function arguments. | |
396 | * c-decl.c (finish_decl): Pass vNULL to build_function_call_vec. | |
397 | ||
68fca595 MP |
398 | 2014-01-30 Marek Polacek <polacek@redhat.com> |
399 | ||
400 | PR c/59940 | |
401 | * c-typeck.c (build_function_call_vec): Use loc parameter. | |
402 | (convert_arguments): Add location parameter. Use it. | |
403 | (ep_convert_and_check): Likewise. | |
404 | (build_atomic_assign): Adjust convert_for_assignment call. | |
405 | (build_modify_expr): Likewise. | |
406 | (digest_init): Likewise. | |
407 | (c_finish_return): Likewise. | |
408 | (build_conditional_expr): Adjust ep_convert_and_check calls. | |
409 | (convert_for_assignment): Add rhs_loc parameter. Use it. | |
410 | (build_binary_op): Adjust convert_and_check and ep_convert_and_check | |
411 | calls. | |
412 | ||
fa337f3a RB |
413 | 2014-01-30 Richard Biener <rguenther@suse.de> |
414 | ||
415 | PR c/59905 | |
416 | * c-typeck.c (build_function_call_vec): Do not replace calls | |
417 | to a function via an incompatible type with a runtime abort. | |
418 | ||
b72271b9 BI |
419 | 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com> |
420 | ||
421 | * c-parser.c (c_parser_declaration_or_fndef): Replaced | |
422 | flag_enable_cilkplus with flag_cilkplus. | |
423 | (c_parser_direct_declarator_inner): Likewise. | |
424 | (c_parser_attribute_any_word): Likewise. | |
425 | (c_parser_attributes): Likewise. | |
426 | (c_parser_compound_statement): Likewise. | |
427 | (c_parser_statement_after_labels): Likewise. | |
428 | (c_parser_if_statement): Likewise. | |
429 | (c_parser_switch_statement): Likewise. | |
430 | (c_parser_do_statement): Likewise. | |
431 | (c_parser_for_statement): Likewise. | |
432 | (c_parser_unary_expression): Likewise. | |
433 | (c_parser_postfix_expression): Likewise. | |
434 | (c_parser_postfix_expression_after_primary): Likewise. | |
435 | (c_parser_postfix_expression_after_primary): Likewise. | |
436 | (c_parser_omp_clause_name): Likewise. | |
437 | (c_finish_omp_declare_simd): Likewise. | |
438 | (c_parser_cilk_verify_simd): Likewise. | |
439 | * c-typeck.c (build_array_ref): Likewise. | |
440 | (build_function_call_vec): Likewise. | |
441 | (convert_arguments): Likewise. | |
442 | (build_compound_expr): Likewise. | |
443 | (c_finish_return): Likewise. | |
444 | (c_finish_if_stmt): Likewise. | |
445 | (c_finish_loop): Likewise. | |
446 | (build_binary_op): Likewise. | |
447 | ||
393e8e8b MP |
448 | 2014-01-23 Marek Polacek <polacek@redhat.com> |
449 | ||
450 | PR c/59846 | |
451 | * c-typeck.c (parser_build_binary_op): Use location instead of | |
452 | input_location. | |
453 | (build_binary_op): Pass location to shorten_compare. | |
454 | ||
f04dda30 MP |
455 | 2014-01-23 Marek Polacek <polacek@redhat.com> |
456 | ||
457 | PR c/58346 | |
458 | * c-typeck.c (pointer_diff): Give an error on arithmetic on pointer to | |
459 | an empty aggregate. | |
460 | ||
789eadcd MP |
461 | 2014-01-23 Marek Polacek <polacek@redhat.com> |
462 | ||
463 | PR c/59871 | |
464 | * c-typeck.c (build_compound_expr): Warn even for right-hand operand | |
465 | of a comma expression. | |
466 | (emit_side_effect_warnings): Likewise. | |
467 | ||
40f14e9f BI |
468 | 2014-01-23 Balaji V. Iyer <balaji.v.iyer@intel.com> |
469 | ||
470 | PR c/59825 | |
471 | * c-array-notation.c (expand_array_notation_exprs): Rewrote this | |
472 | function to use walk_tree and moved a lot of its functionality to | |
473 | expand_array_notations. | |
474 | (expand_array_notations): New function. | |
475 | ||
74558dd9 BI |
476 | 2014-01-23 Balaji V. Iyer <balaji.v.iyer@intel.com> |
477 | ||
478 | * c-parser.c (c_finish_omp_declare_simd): Made "cilk simd function" | |
479 | attribute an attribute without value. | |
480 | ||
652fea39 JJ |
481 | 2014-01-23 Jakub Jelinek <jakub@redhat.com> |
482 | ||
483 | PR middle-end/58809 | |
484 | * c-typeck.c (c_finish_omp_clause): Reject MIN_EXPR, MAX_EXPR, | |
485 | BIT_AND_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR on COMPLEX_TYPEs. | |
486 | ||
f34f1c87 MP |
487 | 2014-01-22 Marek Polacek <polacek@redhat.com> |
488 | ||
489 | PR c/59891 | |
490 | * c-typeck.c (build_conditional_expr): Call c_fully_fold instead | |
491 | of remove_c_maybe_const_expr on op1 and op2. | |
492 | ||
241f845a JJ |
493 | 2014-01-15 Jakub Jelinek <jakub@redhat.com> |
494 | ||
495 | PR c/58943 | |
496 | * c-typeck.c (build_modify_expr): For lhs op= rhs, if rhs has side | |
497 | effects, preevaluate rhs using SAVE_EXPR first. | |
498 | ||
9a74f20c BI |
499 | 2014-01-09 Balaji V. Iyer <balaji.v.iyer@intel.com> |
500 | ||
501 | PR c++/59631 | |
502 | * c-parser.c (c_parser_postfix_expression): Replaced consecutive if | |
503 | statements with if-elseif statements. | |
504 | ||
96066ce1 MP |
505 | 2014-01-06 Marek Polacek <polacek@redhat.com> |
506 | ||
507 | PR c/57773 | |
508 | * c-decl.c (check_bitfield_type_and_width): Warn for implementation | |
509 | defined bit-field types only in ISO C. | |
510 | ||
23a5b65a RS |
511 | 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com> |
512 | ||
513 | Update copyright years | |
514 | ||
f9030485 RS |
515 | 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com> |
516 | ||
517 | * c-array-notation.c: Use the standard form for the copyright notice. | |
518 | ||
41958c28 BI |
519 | 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com> |
520 | ||
521 | * c-parser.c (struct c_parser::cilk_simd_fn_tokens): Added new field. | |
522 | (c_parser_declaration_or_fndef): Added a check if cilk_simd_fn_tokens | |
523 | field in parser is not empty. If not-empty, call the function | |
524 | c_parser_finish_omp_declare_simd. | |
525 | (c_parser_cilk_clause_vectorlength): Modified function to be shared | |
526 | between SIMD-enabled functions and #pragma simd. Added new parameter. | |
527 | (c_parser_cilk_all_clauses): Modified the usage of the function | |
528 | c_parser_cilk_clause_vectorlength as mentioned above. | |
529 | (c_parser_cilk_simd_fn_vector_attrs): New function. | |
530 | (c_finish_cilk_simd_fn_tokens): Likewise. | |
531 | (is_cilkplus_vector_p): Likewise. | |
532 | (c_parser_omp_clause_name): Added checking for "vectorlength," | |
533 | "nomask," and "mask" strings in clause name. | |
534 | (c_parser_omp_all_clauses): Added 3 new case statements: | |
535 | PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_MASK and | |
536 | PRAGMA_CILK_CLAUSE_NOMASK. | |
537 | (c_parser_attributes): Added a cilk_simd_fn_tokens parameter. Added a | |
538 | check for vector attribute and if so call the function | |
539 | c_parser_cilk_simd_fn_vector_attrs. Also, when Cilk plus is enabled, | |
540 | called the function c_finish_cilk_simd_fn_tokens. | |
541 | (c_finish_omp_declare_simd): Added a check if cilk_simd_fn_tokens in | |
542 | parser field is non-empty. If so, parse them as you would parse | |
543 | the omp declare simd pragma. | |
544 | (c_parser_omp_clause_linear): Added a new bool parm. is_cilk_simd_fn. | |
545 | Added a check when step is a parameter and flag it as error. | |
546 | (CILK_SIMD_FN_CLAUSE_MASK): New #define. | |
547 | (c_parser_cilk_clause_name): Changed pragma_cilk_clause to | |
548 | pragma_omp_clause. | |
549 | ||
cef0fd0e TS |
550 | 2013-12-17 Thomas Schwinge <thomas@codesourcery.com> |
551 | ||
552 | * c-parser.c (c_parser_omp_parallel): Fix description. | |
553 | ||
12893402 BI |
554 | 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com> |
555 | ||
556 | * c-objc-common.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Remove. | |
557 | (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise. | |
558 | (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise. | |
559 | * c-typeck.c (cilk_install_body_with_frame_cleanup): New function. | |
560 | ||
296674db JM |
561 | 2013-12-04 Joseph Myers <joseph@codesourcery.com> |
562 | ||
563 | PR c/52023 | |
564 | * c-parser.c (c_parser_alignas_specifier): Use | |
565 | c_sizeof_or_alignof_type instead of c_alignof. | |
566 | (c_parser_alignof_expression): Likewise, with min_alignof | |
567 | parameter depending on alignof spelling used. | |
568 | ||
edd28054 MP |
569 | 2013-12-04 Marek Polacek <polacek@redhat.com> |
570 | ||
571 | PR c/54113 | |
572 | * c-decl.c (start_function): Don't warn for missing prototype for | |
573 | inline functions. | |
574 | ||
da0fc454 MP |
575 | 2013-12-03 Marek Polacek <polacek@redhat.com> |
576 | ||
577 | PR c/59351 | |
578 | * c-decl.c (build_compound_literal): Allow compound literals with | |
579 | empty initial value. | |
580 | ||
4c2ecab0 JM |
581 | 2013-12-02 Joseph Myers <joseph@codesourcery.com> |
582 | ||
583 | PR c/58235 | |
584 | * c-typeck.c (build_modify_expr): Diagnose assignment to | |
585 | expression with array type. | |
586 | ||
340baef7 JM |
587 | 2013-11-29 Joseph Myers <joseph@codesourcery.com> |
588 | ||
589 | PR c/42262 | |
590 | * c-typeck.c (process_init_element): Do not treat a string as | |
591 | initializing a whole array when used with a designator for an | |
592 | individual element. | |
593 | ||
6763b9f7 JM |
594 | 2013-11-29 Joseph Myers <joseph@codesourcery.com> |
595 | ||
596 | PR c/57574 | |
597 | * c-decl.c (merge_decls): Clear DECL_EXTERNAL for a definition of | |
598 | an inline function following a static declaration. | |
599 | ||
e7bd1de1 JJ |
600 | 2013-11-28 Jakub Jelinek <jakub@redhat.com> |
601 | ||
602 | PR c/59310 | |
603 | * c-parser.c (c_parser_omp_target): Copy "#pragma omp target" | |
604 | to p_name before calling c_parser_omp_teams instead of after. | |
605 | (c_parser_cilk_simd): Remove wrong ATTRIBUTE_UNUSED from parser | |
606 | argument. Remove unused p_name variable. | |
607 | ||
0136f8f0 AH |
608 | 2013-11-27 Aldy Hernandez <aldyh@redhat.com> |
609 | Jakub Jelinek <jakub@redhat.com> | |
610 | ||
611 | * c-decl.c (c_builtin_function_ext_scope): Avoid binding if | |
612 | external_scope is NULL. | |
613 | ||
241b71bb TV |
614 | 2013-11-27 Tom de Vries <tom@codesourcery.com> |
615 | Marc Glisse <marc.glisse@inria.fr> | |
616 | ||
617 | PR c++/59032 | |
618 | * c-typeck.c (build_unary_op): Allow vector increment and decrement. | |
619 | ||
2fb9a547 AM |
620 | 2013-11-22 Andrew MacLeod <amacleod@redhat.com> |
621 | ||
622 | * c-typeck.c: Add required include files from gimple.h. | |
623 | ||
8400e75e DM |
624 | 2013-11-22 David Malcolm <dmalcolm@redhat.com> |
625 | ||
626 | * c-decl.c (define_label, shadow_tag_warned) | |
627 | (check_bitfield_type_and_width, grokdeclarator, grokparms, | |
628 | store_parm_decls_newstyle, store_parm_decls_oldstyle) | |
629 | (declspecs_add_type): Remove use of in_system_header macro. | |
630 | * c-parser.c (c_parser_unary_expression): Likewise. | |
631 | * c-typeck.c (store_init_value, process_init_element) | |
632 | (c_start_case): Likewise. | |
633 | ||
634 | * c-decl.c (build_enumerator): Remove use of EXPR_LOC_OR_HERE | |
635 | macro. | |
636 | ||
637 | * c-parser.c (c_parser_set_source_position_from_token): Remove | |
638 | reference to in_system_header from comment. | |
639 | ||
386b1f1f RS |
640 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
641 | ||
642 | * c-decl.c (grokdeclarator): Update comment to refer to | |
643 | tree_to_[su]hwi rather than tree_low_cst. | |
644 | ||
ae7e9ddd RS |
645 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
646 | ||
647 | * c-decl.c, c-typeck.c: Replace tree_low_cst (..., 1) with | |
648 | tree_to_uhwi throughout. | |
649 | ||
9439e9a1 RS |
650 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
651 | ||
652 | * c-parser.c: Replace tree_low_cst (..., 0) with tree_to_shwi | |
653 | throughout. | |
654 | ||
9541ffee RS |
655 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
656 | ||
657 | * c-parser.c: Replace host_integerp (..., 0) with tree_fits_shwi_p | |
658 | throughout. | |
659 | ||
c02065fc AH |
660 | 2013-11-15 Aldy Hernandez <aldyh@redhat.com> |
661 | ||
662 | * c-parser.c (c_parser_cilk_simd): New. | |
663 | (c_parser_cilk_verify_simd): New. | |
664 | (c_parser_pragma): Add case for PRAGMA_CILK_SIMD. | |
665 | (c_parser_omp_for_loop): Add case for NE_EXPR. | |
666 | Set c_break_label for CILK_SIMD. | |
667 | (c_parser_cilk_clause_vectorlength): New. | |
668 | (c_parser_cilk_clause_linear): New. | |
669 | (c_parser_cilk_clause_name): New. | |
670 | (c_parser_cilk_all_clauses): New. | |
671 | * c-typeck.c (build_unary_op): Pass location argument to | |
672 | readonly_error. | |
673 | (build_modify_expr): Same. | |
674 | (build_asm_expr): Same. | |
675 | (c_finish_bc_stmt): Error on break/continue in loops. | |
676 | ||
18f429e2 AM |
677 | 2013-11-14 Andrew MacLeod <amacleod@redhat.com> |
678 | ||
679 | * c-typeck.c: Include only gimplify.h and gimple.h as needed. | |
680 | ||
d8a2d370 DN |
681 | 2013-11-14 Diego Novillo <dnovillo@google.com> |
682 | ||
683 | * c-decl.c: Include print-tree.h. | |
684 | Include stor-layout.h. | |
685 | Include varasm.h. | |
686 | Include attribs.h. | |
687 | Include stringpool.h. | |
688 | * c-lang.c: Include fold-const.h. | |
689 | * c-parser.c: Include stringpool.h. | |
690 | Include attribs.h. | |
691 | Include stor-layout.h. | |
692 | Include varasm.h. | |
693 | Include trans-mem.h. | |
694 | * c-typeck.c: Include stor-layout.h. | |
695 | Include trans-mem.h. | |
696 | Include varasm.h. | |
697 | Include stmt.h. | |
698 | ||
38b7bc7f JM |
699 | 2013-11-13 Joseph Myers <joseph@codesourcery.com> |
700 | ||
701 | * c-tree.h (c_typespec_keyword): Add cts_auto_type. | |
702 | * c-decl.c (declspecs_add_type, finish_declspecs): Handle | |
703 | __auto_type. | |
704 | * c-parser.c (c_token_starts_typename, c_token_starts_declspecs) | |
705 | (c_parser_attribute_any_word, c_parser_objc_selector): Handle | |
706 | RID_AUTO_TYPE. | |
707 | (c_parser_declspecs): Take argument AUTO_TYPE_OK. | |
708 | (c_parser_declaration_or_fndef, c_parser_struct_declaration) | |
709 | (c_parser_declarator, c_parser_direct_declarator_inner) | |
710 | (c_parser_parameter_declaration, c_parser_type_name): All callers | |
711 | changed. | |
712 | (c_parser_declaration_or_fndef): Handle declarations with type | |
713 | determined from the initializer. | |
714 | ||
45b0be94 AM |
715 | 2013-11-12 Andrew MacLeod <amacleod@redhat.com> |
716 | ||
18f429e2 | 717 | * c-typeck.c: Include gimplify.h. |
45b0be94 | 718 | |
582d9b50 JM |
719 | 2013-11-12 Joseph Myers <joseph@codesourcery.com> |
720 | ||
721 | * c-tree.h (struct c_declspecs): Add thread_gnu_p field. | |
722 | * c-parser.c (c_parser_declspecs): Mention _Thread_local in | |
723 | comment. | |
724 | * c-decl.c (shadow_tag_warned, grokdeclarator): Mention __thread | |
725 | or _Thread_local as appropriate in diagnostics. | |
726 | (build_null_declspecs): Initialize ret->thread_gnu_p. | |
727 | (declspecs_add_scspec): Handle either __thread or _Thread_local | |
728 | for RID_THREAD. Diagnose _Thread_local for pre-C11 standards if | |
729 | pedantic. Do not disallow _Thread_local extern and _Thread_local | |
730 | static. | |
731 | ||
267bac10 JM |
732 | 2013-11-07 Joseph Myers <joseph@codesourcery.com> |
733 | Andrew MacLeod <amacleod@redhat.com> | |
734 | ||
735 | * c-aux-info.c (gen_type): Handle atomic qualifier. | |
736 | * c-decl.c (validate_proto_after_old_defn): Do not remove atomic | |
737 | qualifiers when compating types. | |
738 | (shadow_tag_warned): Handle atomic_p in declspecs. | |
739 | (quals_from_declspecs): Likewise. | |
740 | (start_decl): Use c_type_promotes_to when promoting argument | |
741 | types. | |
742 | (grokdeclarator): Handle _Atomic. | |
743 | (get_parm_info): Diagnose any qualifier on "void" as only | |
744 | parameter. | |
745 | (store_parm_decls_oldstyle): Do not remove atomic qualifiers when | |
746 | comparing types. Use c_type_promotes_to when promoting argument | |
747 | types. | |
748 | (finish_function): Use c_type_promotes_to when promoting argument | |
749 | types. | |
750 | (build_null_declspecs): Handle atomic_p in declspecs. | |
751 | (declspecs_add_qual): Handle RID_ATOMIC. | |
752 | * c-parser.c (c_token_starts_typename, c_token_is_qualifier) | |
753 | (c_token_starts_declspecs): Handle RID_ATOMIC. | |
754 | (c_parser_declspecs): Handle atomic type specifiers and | |
755 | qualifiers. | |
756 | (c_parser_typeof_specifier): Remove const and _Atomic qualifiers | |
757 | from types of expressions with atomic type. | |
758 | (c_parser_direct_declarator_inner): Use convert_lvalue_to_rvalue. | |
759 | (c_parser_attribute_any_word): Handle RID_ATOMIC. | |
760 | (c_parser_initializer, c_parser_initelt, c_parser_initval) | |
761 | (c_parser_statement_after_labels, c_parser_switch_statement) | |
762 | (c_parser_for_statement, c_parser_expr_no_commas) | |
763 | (c_parser_conditional_expression, c_parser_binary_expression) | |
764 | (c_parser_cast_expression, c_parser_unary_expression) | |
765 | (c_parser_postfix_expression) | |
766 | (c_parser_postfix_expression_after_primary, c_parser_expression): | |
767 | Use convert_lvalue_to_rvalue. | |
768 | (c_parser_expression_conv, c_parser_expr_list): Document | |
769 | conversion of lvalues to rvalues. Use convert_lvalue_to_rvalue. | |
770 | (c_parser_objc_synchronized_statement): Use | |
771 | convert_lvalue_to_rvalue. | |
772 | (c_parser_objc_selector): Handle RID_ATOMIC. | |
773 | (c_parser_objc_receiver, c_parser_array_notation): Use | |
774 | convert_lvalue_to_rvalue. | |
775 | * c-tree.h (ctsk_typeof): Adjust comment to mention use for | |
776 | _Atomic (type-name). | |
777 | (struct c_declspecs): Add atomic_p field. | |
778 | (convert_lvalue_to_rvalue): Declare. | |
779 | * c-typeck.c (c_type_promotes_to): Promote atomic types to | |
780 | corresponding atomic types. | |
781 | (qualify_type): Don't add _Atomic qualifiers from second argument. | |
782 | (comp_target_types): Do not allow _Atomic mismatches. | |
783 | (type_lists_compatible_p): Do not remove atomic qualifiers when | |
784 | comparing types. | |
785 | (really_atomic_lvalue, convert_lvalue_to_rvalue) | |
786 | (build_atomic_assign): New functions. | |
787 | (build_unary_op): Use build_atomic_assign for atomic increment and | |
788 | decrement. | |
789 | (build_conditional_expr): Do not treat _Atomic void as a qualified | |
790 | version of void. | |
791 | (build_modify_expr): Use build_atomic_assign for atomic LHS. | |
792 | (find_anonymous_field_with_type, convert_to_anonymous_field) | |
793 | (convert_for_assignment): Do not remove atomic qualifiers when | |
794 | comparing types. | |
795 | (digest_init): Do not accept initialization of arrays of atomic | |
796 | elements by string constants. | |
797 | (build_asm_expr): Use convert_lvalue_to_rvalue. | |
798 | (build_binary_op): Do not treat _Atomic void as a qualified | |
799 | version of void. | |
800 | ||
0c249d4b DD |
801 | 2013-11-06 DJ Delorie <dj@redhat.com> |
802 | ||
803 | * c-decl.c (locate_old_decl): If a previous conflicting decl is | |
804 | both explicit and builtin, print the location of the explicit one. | |
805 | ||
6d7f7e0a TB |
806 | 2013-11-05 Tobias Burnus <burnus@net-b.de> |
807 | ||
808 | * c-parser.c (c_parser_omp_for, c_parser_omp_parallel, | |
809 | c_parser_omp_distribute, c_parser_omp_teams, | |
810 | c_parser_omp_target, c_parser_omp_declare): Handle | |
811 | -fopenmp-simd. | |
812 | ||
b906f4ca MP |
813 | 2013-11-03 Marek Polacek <polacek@redhat.com> |
814 | ||
815 | * c-decl.c (grokdeclarator): Add VLA instrumentation. | |
816 | ||
ee1d5a02 JJ |
817 | 2013-11-01 Jakub Jelinek <jakub@redhat.com> |
818 | ||
819 | * c-typeck.c (c_finish_omp_clauses) <case OMP_CLAUSE_UNIFORM>: Go to | |
820 | check_dup_generic at the end, unless remove is true. | |
821 | (c_finish_omp_clauses) <case OMP_CLAUSE_REDUCTION>: Add break; after | |
822 | remove = true;. | |
823 | (c_finish_omp_clauses) <case OMP_CLAUSE_COPYIN>: Likewise. | |
824 | ||
5a9785fb JJ |
825 | 2013-10-31 Jakub Jelinek <jakub@redhat.com> |
826 | ||
827 | * c-typeck.c (c_finish_omp_clauses): Diagnose aligned clause | |
828 | with decl that is not pointer nor array. | |
829 | ||
939b37da BI |
830 | 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com> |
831 | ||
832 | * c-decl.c (finish_function): Added a call for insert_cilk_frame when | |
833 | a spawning function is found. | |
834 | * c-objc-common.h (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): New #define. | |
835 | (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise. | |
836 | (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise. | |
837 | * c-parser.c (c_parser_statement_after_labels): Added RID_CILK_SYNC | |
838 | case. | |
839 | (c_parser_postfix_expression): Added RID_CILK_SPAWN case. | |
840 | * c-typeck.c (build_compound_expr): Reject _Cilk_spawn in a comma | |
841 | expr. | |
842 | (c_finish_return): Added a check to reject _Cilk_spawn in return | |
843 | expression. | |
844 | (build_cilk_spawn): New function. | |
845 | (build_cilk_sync): Likewise. | |
846 | * Makefile.in (c-decl.o): Added cilk.h in dependency list. | |
847 | ||
d4af74d4 TB |
848 | 2013-10-27 Tobias Burnus <burnus@net-b.de> |
849 | ||
850 | PR other/33426 | |
851 | * c-parser.c (c_parser_while_statement, c_parser_while_statement, | |
852 | c_parser_pragma): Add GCC ivdep support to 'do' and 'while'. | |
853 | (c_parser_statement_after_labels): Update calls. | |
854 | ||
d73749df | 855 | 2013-10-24 Tobias Burnus <burnus@net-b.de> |
8170608b TB |
856 | |
857 | PR other/33426 | |
858 | * c-parser.c (c_parser_pragma, c_parser_for_statement): | |
859 | Handle PRAGMA_IVDEP. | |
860 | (c_parser_statement_after_labels): Update call. | |
861 | ||
f28aa681 MP |
862 | 2013-10-24 Marek Polacek <polacek@redhat.com> |
863 | ||
864 | * c-parser.c (c_parser_struct_declaration): Add a comment. | |
865 | (c_parser_declarator): Don't allow _Alignas here. | |
866 | ||
0645c1a2 AM |
867 | 2013-10-17 Andrew MacLeod <amacleod@redhat.com> |
868 | ||
869 | * c-parser.c: Include omp-low.h. | |
870 | * c-typeck.c: Likewise. | |
871 | ||
568a31f2 MP |
872 | 2013-10-17 Marek Polacek <polacek@redhat.com> |
873 | ||
874 | PR c/58267 | |
875 | * c-parser.c (c_parser_declspecs): Add alignspec_ok parameter. | |
876 | Document syntax of the array-declarator. | |
877 | (c_parser_declspecs) <RID_ALIGNAS>: Bail out if alignment specs | |
878 | are not permitted. | |
879 | (c_parser_declaration_or_fndef): Adjust c_parser_declspecs call. | |
880 | (c_parser_struct_declaration): Likewise. | |
881 | (c_parser_declarator): Likewise. | |
882 | (c_parser_direct_declarator_inner): Likewise. | |
883 | (c_parser_parameter_declaration): Likewise. | |
884 | (c_parser_type_name): Likewise. | |
885 | ||
acf0174b JJ |
886 | 2013-10-11 Jakub Jelinek <jakub@redhat.com> |
887 | ||
888 | * c-lang.h (current_omp_declare_target_attribute): New extern | |
889 | decl. | |
890 | * c-parser.c: Include c-lang.h. | |
891 | (struct c_parser): Change tokens to c_token *. | |
892 | Add tokens_buf field. Change tokens_avail type to unsigned int. | |
893 | (c_parser_consume_token): If parser->tokens isn't | |
894 | &parser->tokens_buf[0], increment parser->tokens. | |
895 | (c_parser_consume_pragma): Likewise. | |
896 | (enum pragma_context): Add pragma_struct and pragma_param. | |
897 | (c_parser_external_declaration): Adjust | |
898 | c_parser_declaration_or_fndef caller. | |
899 | (c_parser_declaration_or_fndef): Add omp_declare_simd_clauses | |
900 | argument, if it is non-vNULL vector, call c_finish_omp_declare_simd. | |
901 | Adjust recursive call. | |
902 | (c_parser_struct_or_union_specifier): Use pragma_struct instead | |
903 | of pragma_external. | |
904 | (c_parser_parameter_declaration): Use pragma_param instead of | |
905 | pragma_external. | |
906 | (c_parser_compound_statement_nostart, c_parser_label, | |
907 | c_parser_for_statement): Adjust | |
908 | c_parser_declaration_or_fndef callers. | |
909 | (c_parser_expr_no_commas): Add omp_atomic_lhs argument, pass | |
910 | it through to c_parser_conditional_expression. | |
911 | (c_parser_conditional_expression): Add omp_atomic_lhs argument, | |
912 | pass it through to c_parser_binary_expression. Adjust recursive | |
913 | call. | |
914 | (c_parser_binary_expression): Remove prec argument, add | |
915 | omp_atomic_lhs argument instead. Always start from PREC_NONE, if | |
916 | omp_atomic_lhs is non-NULL and one of the arguments of toplevel | |
917 | binop matches it, use build2 instead of parser_build_binary_op. | |
918 | (c_parser_pragma): Handle PRAGMA_OMP_CANCEL, | |
919 | PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_TARGET, | |
920 | PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_DECLARE_REDUCTION. | |
921 | Handle pragma_struct and pragma_param the same as pragma_external. | |
922 | (c_parser_omp_clause_name): Parse new OpenMP 4.0 clause names. | |
923 | (c_parser_omp_variable_list): Parse array sections for | |
924 | OMP_CLAUSE_{DEPEND,MAP,TO,FROM} clauses. | |
925 | (c_parser_omp_clause_collapse): Fully fold collapse expression. | |
926 | (c_parser_omp_clause_reduction): Handle user defined reductions. | |
927 | (c_parser_omp_clause_branch, c_parser_omp_clause_cancelkind, | |
928 | c_parser_omp_clause_num_teams, c_parser_omp_clause_thread_limit, | |
929 | c_parser_omp_clause_aligned, c_parser_omp_clause_linear, | |
930 | c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen, | |
931 | c_parser_omp_clause_depend, c_parser_omp_clause_map, | |
932 | c_parser_omp_clause_device, c_parser_omp_clause_dist_schedule, | |
933 | c_parser_omp_clause_proc_bind, c_parser_omp_clause_to, | |
934 | c_parser_omp_clause_from, c_parser_omp_clause_uniform): New functions. | |
935 | (c_parser_omp_all_clauses): Add finish_p argument. Don't call | |
936 | c_finish_omp_clauses if it is false. Handle new OpenMP 4.0 clauses. | |
937 | (c_parser_omp_atomic): Parse seq_cst clause, pass true if it is | |
938 | present to c_finish_omp_atomic. Handle OpenMP 4.0 atomic forms. | |
939 | (c_parser_omp_for_loop): Add CODE argument, pass it through | |
940 | to c_finish_omp_for. Change last argument to cclauses, | |
941 | and adjust uses to grab parallel clauses from the array of all | |
942 | the split clauses. Adjust c_parser_binary_expression, | |
943 | c_parser_declaration_or_fndef and c_finish_omp_for callers. | |
944 | (omp_split_clauses): New function. | |
945 | (c_parser_omp_simd): New function. | |
946 | (c_parser_omp_for): Add p_name, mask and cclauses arguments. | |
947 | Allow the function to be called also when parsing combined constructs, | |
948 | and call c_parser_omp_simd when parsing for simd. | |
949 | (c_parser_omp_sections_scope): If section-sequence doesn't start with | |
950 | #pragma omp section, require exactly one structured-block instead of | |
951 | sequence of statements. | |
952 | (c_parser_omp_sections): Add p_name, mask and cclauses arguments. | |
953 | Allow the function to be called also when parsing combined constructs. | |
954 | (c_parser_omp_parallel): Add p_name, mask and cclauses arguments. | |
955 | Allow the function to be called also when parsing combined | |
956 | constructs. | |
957 | (c_parser_omp_taskgroup, c_parser_omp_cancel, | |
958 | c_parser_omp_cancellation_point, c_parser_omp_distribute, | |
959 | c_parser_omp_teams, c_parser_omp_target_data, | |
960 | c_parser_omp_target_update, c_parser_omp_target, | |
961 | c_parser_omp_declare_simd, c_finish_omp_declare_simd, | |
962 | c_parser_omp_declare_target, c_parser_omp_end_declare_target, | |
963 | c_parser_omp_declare_reduction, c_parser_omp_declare): New functions. | |
964 | (c_parser_omp_construct): Add p_name and mask vars. Handle | |
965 | PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_SIMD, PRAGMA_OMP_TASKGROUP, | |
966 | PRAGMA_OMP_TEAMS. Adjust c_parser_omp_for, c_parser_omp_parallel | |
967 | and c_parser_omp_sections callers. | |
968 | (c_parse_file): Initialize tparser.tokens and the_parser->tokens here. | |
969 | (OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK, | |
970 | OMP_SINGLE_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1. | |
971 | (OMP_PARALLEL_CLAUSE_MASK): Likewise. Add OMP_CLAUSE_PROC_BIND. | |
972 | (OMP_TASK_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1. Add | |
973 | OMP_CLAUSE_DEPEND. | |
974 | (OMP_SIMD_CLAUSE_MASK, OMP_CANCEL_CLAUSE_MASK, | |
975 | OMP_CANCELLATION_POINT_CLAUSE_MASK, OMP_DISTRIBUTE_CLAUSE_MASK, | |
976 | OMP_TEAMS_CLAUSE_MASK, OMP_TARGET_DATA_CLAUSE_MASK, | |
977 | OMP_TARGET_UPDATE_CLAUSE_MASK, OMP_TARGET_CLAUSE_MASK, | |
978 | OMP_DECLARE_SIMD_CLAUSE_MASK): Define. | |
979 | * c-typeck.c: Include tree-inline.h. | |
980 | (c_finish_omp_cancel, c_finish_omp_cancellation_point, | |
981 | handle_omp_array_sections_1, handle_omp_array_sections, | |
982 | c_clone_omp_udr, c_find_omp_placeholder_r): New functions. | |
983 | (c_finish_omp_clauses): Handle new OpenMP 4.0 clauses and | |
984 | user defined reductions. | |
985 | (c_tree_equal): New function. | |
986 | * c-tree.h (temp_store_parm_decls, temp_pop_parm_decls, | |
987 | c_finish_omp_cancel, c_finish_omp_cancellation_point, c_tree_equal, | |
988 | c_omp_reduction_id, c_omp_reduction_decl, c_omp_reduction_lookup, | |
989 | c_check_omp_declare_reduction_r): New prototypes. | |
990 | * c-decl.c (current_omp_declare_target_attribute): New variable. | |
991 | (c_decl_attributes): New function. | |
992 | (start_decl, start_function): Use it instead of decl_attributes. | |
993 | (temp_store_parm_decls, temp_pop_parm_decls, c_omp_reduction_id, | |
994 | c_omp_reduction_decl, c_omp_reduction_lookup, | |
995 | c_check_omp_declare_reduction_r): New functions. | |
996 | ||
0a6c2227 TT |
997 | 2013-09-25 Tom Tromey <tromey@redhat.com> |
998 | ||
999 | * Make-lang.in (c/gccspec.o): Remove. | |
1000 | (CFLAGS-c/gccspec.o): New variable. | |
1001 | (cc1-checksum.o, C_TREE_H, c/c-aux-info.o, c/c-convert.o) | |
1002 | (c/c-decl.o, c/c-errors.o, c/c-lang.o, c/c-objc-common.o) | |
1003 | (c/c-parser.o, c/c-typeck.o, c/c-array-notation.o): Remove. | |
1004 | ||
f3bc55f0 TT |
1005 | 2013-09-25 Tom Tromey <tromey@redhat.com> |
1006 | ||
1007 | * Make-lang.in (c/gccspec.o): Don't use subshell. | |
1008 | ||
a24d975c MP |
1009 | 2013-09-18 Marek Polacek <polacek@redhat.com> |
1010 | ||
1011 | PR sanitize/58443 | |
1012 | * c-typeck.c (build_binary_op): Properly honor -fsanitize options. | |
1013 | Remove unnecessary check. | |
1014 | ||
ce6923c5 MP |
1015 | 2013-09-18 Marek Polacek <polacek@redhat.com> |
1016 | ||
1017 | PR sanitizer/58411 | |
1018 | * c-typeck.c (build_binary_op): Don't sanitize function if it has the | |
1019 | no_sanitize_undefined attribute. | |
1020 | ||
a1e51df9 KT |
1021 | 2013-09-13 Kai Tietz <ktietz@redhat.com> |
1022 | ||
1023 | PR target/57848 | |
1024 | * c-decl.c (c_builtin_function_ext_scope): Remove | |
1025 | wrong assumption that it is never called on prexisting | |
1026 | symbol. | |
1027 | ||
0af94e6f JR |
1028 | 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com> |
1029 | ||
1030 | * c-typeck.c (build_binary_op): Use vector_types_compatible_elements_p. | |
1031 | ||
20059c8b GDR |
1032 | 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net> |
1033 | ||
1034 | * c-objc-common.c (c_tree_printer): Tidy. | |
1035 | ||
de5a5fa1 MP |
1036 | 2013-08-30 Marek Polacek <polacek@redhat.com> |
1037 | ||
1038 | * c-typeck.c (build_binary_op): Add division by zero and shift | |
1039 | instrumentation. | |
1040 | ||
2531a1d9 | 1041 | 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com> |
0fdd4508 | 1042 | Joseph Myers <joseph@codesourcery.com> |
2531a1d9 | 1043 | |
6e2bcc98 | 1044 | PR c/35649 |
2531a1d9 JR |
1045 | * c-typeck.c (c_common_type): Prefer double_type_node over |
1046 | other REAL_TYPE types with the same precision. | |
1047 | (convert_arguments): Likewise. | |
1048 | ||
025311c4 GDR |
1049 | 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net> |
1050 | ||
1051 | * c-objc-common.c (c_tree_printer): Document the nature of the cast. | |
1052 | (c_initialize_diagnostics): Call a destructor for the early printer. | |
1053 | ||
da6ca2b5 GDR |
1054 | 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net> |
1055 | ||
1056 | * c-objc-common.c (c_initialize_diagnostics): Simplify C pretty | |
1057 | printer initialization. | |
1058 | ||
318cda85 | 1059 | 2013-08-19 Balaji V. Iyer <balaji.v.iyer@intel.com> |
da6ca2b5 | 1060 | |
318cda85 BI |
1061 | PR c/57490 |
1062 | * c-array-notation.c (fix_conditional_array_notations_1): Added a | |
1063 | check for truth values. | |
1064 | (expand_array_notation_exprs): Added truth values case. Removed an | |
1065 | unwanted else. Added for-loop to walk through subtrees in default | |
1066 | case. | |
1067 | ||
b066401f GDR |
1068 | 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net> |
1069 | ||
1070 | * c-objc-common.c (c_initialize_diagnostics): Don't call pp_base. | |
1071 | ||
fb48aadc JM |
1072 | 2013-07-23 Joseph Myers <joseph@codesourcery.com> |
1073 | ||
1074 | * c-parser.c (struct c_generic_association): Fix typo. | |
1075 | ||
433cc7b0 TT |
1076 | 2013-07-23 Tom Tromey <tromey@redhat.com> |
1077 | Joseph Myers <joseph@codesourcery.com> | |
1078 | ||
1079 | * c-parser.c (struct c_generic_association): New. | |
1080 | (c_generic_association_d): New typedef. | |
1081 | (c_parser_generic_selection): New function. | |
1082 | (c_parser_postfix_expression): Handle RID_GENERIC. | |
1083 | ||
26d40c3d JM |
1084 | 2013-07-13 Jason Merrill <jason@redhat.com> |
1085 | ||
1086 | PR c++/57793 | |
1087 | * c-decl.c (finish_struct): Check for too-large class. | |
1088 | ||
ecdbd01a | 1089 | 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com> |
40d3d530 JR |
1090 | |
1091 | PR c/57821 | |
1092 | * c-typeck.c (set_init_index): When folding, check for index overflow. | |
1093 | ||
1141ed3f BI |
1094 | 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com> |
1095 | ||
1096 | * c-parser.c (c_parser_array_notation): Removed rejection of array | |
1097 | notations in an array of function pointers. | |
1098 | ||
713b46fa BI |
1099 | 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com> |
1100 | ||
1101 | * c-array-notation.c (make_triplet_val_inv): New function. | |
1102 | (create_cmp_incr): Likewise. | |
1103 | (create_array_refs): Likewise. | |
1104 | (fix_builtin_array_notation_fn): Replaced all mallocs with tree vec. | |
1105 | Also modularized common parts between functions and called the function. | |
1106 | (build_array_notation_expr): Likewise. | |
1107 | (fix_conditional_array_notations_1): Likewise. | |
1108 | (fix_array_notation_expr): Likewise. | |
1109 | (fix_array_notation_call_expr): Likewise. | |
1110 | ||
92f20202 MP |
1111 | 2013-06-18 Marek Polacek <polacek@redhat.com> |
1112 | ||
1113 | PR c/57630 | |
1114 | * c-decl.c (check_for_loop_decls): Improve diagnostics messages. | |
1115 | ||
73a23b06 BI |
1116 | 2013-06-12 Balaji V. Iyer <balaji.v.iyer@intel.com> |
1117 | ||
1118 | * c-array-notation.c (build_array_notation_expr): Reject array notation | |
1119 | mismatch between LHS and RHS even inside a call_expr. Also, removed | |
1120 | a couple while statements that were dead code. | |
1121 | ||
00b8517d BI |
1122 | 2013-06-10 Balaji V. Iyer <balaji.v.iyer@intel.com> |
1123 | ||
1124 | * c-array-notation.c (fix_builtin_array_notation_fn): Fully folded | |
1125 | excessive precision expressions in function parameters. Also removed | |
1126 | couple unwanted while statements. | |
1127 | ||
1509bdda BI |
1128 | 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com> |
1129 | ||
1130 | * c-array-notation.c (expand_array_notation_exprs): Added | |
1131 | ARRAY_NOTATION_REF case. | |
1132 | ||
d60f1706 BI |
1133 | 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com> |
1134 | ||
1135 | * c-array-notation.c (length_mismatch_in_expr_p): Moved this | |
1136 | function to c-family/array-notation-common.c. | |
1137 | (is_cilkplus_reduce_builtin): Likewise. | |
1138 | (find_rank): Likewise. | |
1139 | (extract_array_notation_exprs): Likewise. | |
1140 | (replace_array_notations): Likewise. | |
1141 | (find_inv_trees): Likewise. | |
1142 | (replace_inv_trees): Likewise. | |
1143 | (contains_array_notation_expr): Likewise. | |
1144 | (find_correct_array_notation_type): Likewise. | |
1145 | (replace_invariant_exprs): Initialized additional_tcodes to NULL. | |
1146 | (struct inv_list): Moved this to c-family/array-notation-common.c. | |
1147 | * c-tree.h (is_cilkplus_builtin_reduce): Remove prototype. | |
1148 | ||
6d6efbb3 BI |
1149 | 2013-06-05 Balaji V. Iyer <balaji.v.iyer@intel.com> |
1150 | ||
1151 | * c-typeck.c (convert_arguments): Moved checking of builtin cilkplus | |
1152 | reduction functions outside the for-loop. Added a check if the fundecl | |
1153 | is non-NULL. Finally, removed an unwanted if-statement, and made the | |
1154 | body unconditional. | |
1155 | ||
25c22937 BI |
1156 | 2013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com> |
1157 | ||
1158 | * c-typeck.c (c_finish_if_stmt): Added a check to see if the rank of the | |
1159 | condition of the if-statement matches the rank of else-block and then- | |
1160 | block when array notations are used. | |
1161 | * c-parser.c (c_parser_declaration_or_fndef): Expanded array notation | |
1162 | expression after the entire function body is parsed. | |
1163 | (c_parser_expr_no_commas): Delayed creating array notation expressions | |
1164 | to the end of function parsing. | |
1165 | * c-array-notation.c (fix_conditional_array_notations_1): Expanded the | |
1166 | whole if-statement instead of just the condition. | |
1167 | (expand_array_notation_exprs): Added MODIFY_EXPR case. | |
1168 | ||
edd25645 BI |
1169 | 2013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com> |
1170 | ||
1171 | PR c/57474 | |
1172 | * c-array-notation.c (build_array_notation_expr): Initialized rhs_length | |
1173 | array to NULL_TREE if they are unused. Also added a check for the | |
1174 | field to be NULL before its fields are used in future. | |
1175 | ||
065ce7f1 RO |
1176 | 2013-05-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
1177 | ||
1178 | PR bootstrap/57450 | |
1179 | * c-array-notation.c (length_mismatch_in_expr_p): Use absu_hwi. | |
1180 | (build_array_notation_expr): Likewise. | |
1181 | ||
36536d79 BI |
1182 | 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com> |
1183 | ||
1184 | * c-typeck.c (build_array_ref): Added a check to see if array's | |
1185 | index is greater than one. If true, then emit an error. | |
1186 | (build_function_call_vec): Exclude error reporting and checking | |
1187 | for builtin array-notation functions. | |
1188 | (convert_arguments): Likewise. | |
1189 | (c_finish_return): Added a check for array notations as a return | |
1190 | expression. If true, then emit an error. | |
1191 | (c_finish_loop): Added a check for array notations in a loop | |
1192 | condition. If true then emit an error. | |
1193 | (lvalue_p): Added a ARRAY_NOTATION_REF case. | |
1194 | (build_binary_op): Added a check for array notation expr inside | |
1195 | op1 and op0. If present, we call another function to find correct | |
1196 | type. | |
1197 | * Make-lang.in (C_AND_OBJC_OBJS): Added c-array-notation.o. | |
1198 | * c-parser.c (c_parser_compound_statement): Check if array | |
1199 | notation code is used in tree, if so, then transform them into | |
1200 | appropriate C code. | |
1201 | (c_parser_expr_no_commas): Check if array notation is used in LHS | |
1202 | or RHS, if so, then build array notation expression instead of | |
1203 | regular modify. | |
1204 | (c_parser_postfix_expression_after_primary): Added a check for | |
1205 | colon(s) after square braces, if so then handle it like an array | |
1206 | notation. Also, break up array notations in unary op if found. | |
1207 | (c_parser_direct_declarator_inner): Added a check for array | |
1208 | notation. | |
1209 | (c_parser_compound_statement): Added a check for array notation in | |
1210 | a stmt. If one is present, then expand array notation expr. | |
1211 | (c_parser_if_statement): Likewise. | |
1212 | (c_parser_switch_statement): Added a check for array notations in | |
1213 | a switch statement's condition. If true, then output an error. | |
1214 | (c_parser_while_statement): Similarly, but for a while. | |
1215 | (c_parser_do_statement): Similarly, but for a do-while. | |
1216 | (c_parser_for_statement): Similarly, but for a for-loop. | |
1217 | (c_parser_unary_expression): Check if array notation is used in a | |
1218 | pre-increment or pre-decrement expression. If true, then expand | |
1219 | them. | |
1220 | (c_parser_array_notation): New function. | |
1221 | * c-array-notation.c: New file. | |
1222 | * c-tree.h (is_cilkplus_reduce_builtin): Protoize. | |
1223 | ||
cd192ccc MS |
1224 | 2013-05-23 Mike Stump <mikestump@comcast.net> |
1225 | ||
1226 | * c-typeck.c (convert_for_assignment): Handle references to memory | |
1227 | spaces better. | |
1228 | ||
427b248d JM |
1229 | 2013-05-16 Jason Merrill <jason@redhat.com> |
1230 | ||
1231 | * Make-lang.in (cc1$(exeext)): Use link mutex. | |
1232 | ||
44d90fe1 PC |
1233 | 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com> |
1234 | ||
1235 | * c-typeck.c (pointer_diff): Change -Wpointer-arith pedwarns | |
1236 | to simply use OPT_Wpointer_arith. | |
1237 | (build_unary_op): Likewise. | |
1238 | ||
4e7d7b3d JJ |
1239 | 2013-04-03 Jakub Jelinek <jakub@redhat.com> |
1240 | ||
1241 | PR c/19449 | |
1242 | * c-parser.c (c_parser_get_builtin_args): Add choose_expr_p | |
1243 | argument. If set, or it temporarily for parsing of the first | |
1244 | argument into force_folding_builtin_constant_p. | |
1245 | (c_parser_postfix_expression): Adjust callers. | |
1246 | ||
839b422f RB |
1247 | 2013-03-21 Richard Biener <rguenther@suse.de> |
1248 | ||
1249 | * c-objc-common.c (c_tree_printer): Use DECL_HAS_DEBUG_EXPR_P | |
1250 | instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly. | |
1251 | ||
2ee028f1 MP |
1252 | 2013-02-12 Marek Polacek <polacek@redhat.com> |
1253 | ||
1254 | PR c/44938 | |
1255 | * c-parser.c (c_parser_postfix_expression_after_primary): Initialize | |
1256 | origtypes to NULL. | |
1257 | ||
8824edff JJ |
1258 | 2013-01-24 Jakub Jelinek <jakub@redhat.com> |
1259 | ||
1260 | PR c/56078 | |
1261 | * c-typeck.c (set_nonincremental_init_from_string): If | |
1262 | constructor_max_index is NULL, treat it as if tree_int_cst_lt | |
1263 | returned false. | |
1264 | (process_init_element): Likewise. | |
1265 | ||
eadd3d0d JJ |
1266 | 2012-12-20 Jakub Jelinek <jakub@redhat.com> |
1267 | ||
1268 | PR c++/55619 | |
1269 | * c-parser.c (c_parser_asm_operands): Remove CONVERT_P | |
1270 | argument, don't call default_function_array_conversion | |
1271 | nor c_fully_fold here. | |
1272 | (c_parser_asm_statement): Adjust callers. | |
1273 | * c-typeck.c (build_asm_expr): Call c_fully_fold on inputs | |
1274 | and outputs here, and call default_function_array_conversion | |
1275 | on inputs that don't need to be addressable. | |
1276 | ||
f8a93a2e JJ |
1277 | 2012-12-18 Jakub Jelinek <jakub@redhat.com> |
1278 | ||
1279 | PR c/39464 | |
1280 | * c-typeck.c (convert_for_assignment): For -Wpointer-sign | |
1281 | warning require that both c_common_unsigned_type as well as | |
1282 | c_common_signed_type is the same for both mvl and mvr types. | |
1283 | ||
9771b263 DN |
1284 | 2012-11-16 Diego Novillo <dnovillo@google.com> |
1285 | ||
1286 | Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec) | |
1287 | ||
1288 | * c-common.c: Use new vec API in vec.h. | |
1289 | * c-common.h: Likewise. | |
1290 | * c-gimplify.c: Likewise. | |
1291 | * c-pragma.c: Likewise. | |
1292 | * c-pretty-print.c: Likewise. | |
1293 | * c-pretty-print.h: Likewise. | |
1294 | * c-semantics.c: Likewise. | |
1295 | * c-decl.c: Likewise. | |
1296 | * c-parser.c: Likewise. | |
1297 | * c-tree.h: Likewise. | |
1298 | * c-typeck.c: Likewise. | |
1299 | ||
880661a4 JW |
1300 | 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com> |
1301 | ||
1302 | PR c++/54930 | |
1303 | * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr. | |
1304 | ||
077d1abe MLI |
1305 | 2012-10-29 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1306 | ||
1307 | PR c/53066 | |
1308 | * c-decl.c (warn_if_shadowing): Do not warn if a variable | |
1309 | shadows a function, unless the variable is a function or a | |
1310 | pointer-to-function. | |
1311 | ||
3a785c97 JJ |
1312 | 2012-10-12 Jakub Jelinek <jakub@redhat.com> |
1313 | ||
1314 | PR c/54381 | |
1315 | * c-parser.c (struct c_tree_loc_pair): Removed. | |
1316 | (c_parser_expr_list): Remove struct c_tree_loc_pair * argument, | |
1317 | add location_t * and tree * arguments, fill in array of 3 | |
1318 | sizeof_arg trees and corresponding locs. | |
1319 | (c_parser_attributes, c_parser_objc_keywordexpr): Adjust | |
1320 | c_parser_expr_list callers. | |
1321 | (c_parser_postfix_expression_after_primary): Likewise. Pass | |
1322 | array of 3 sizeof_arg trees and locs (corresponding to first | |
1323 | 3 arguments) to sizeof_pointer_memaccess_warning. | |
1324 | ||
703c8606 LC |
1325 | 2012-10-09 Lawrence Crowl <crowl@google.com> |
1326 | ||
1327 | * Make-lang.in (c-decl.o): Add dependence on hash-table.h. | |
1328 | * c-decl.c (detect_field_duplicates_hash): Change to new type-safe | |
1329 | hash table. | |
1330 | ||
5d9de0d0 PC |
1331 | 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com> |
1332 | ||
1333 | PR c++/54194 | |
1334 | * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses | |
1335 | call. | |
1336 | ||
a212e43f MG |
1337 | 2012-10-09 Marc Glisse <marc.glisse@inria.fr> |
1338 | ||
1339 | PR c++/54427 | |
1340 | * c-typeck.c: Include c-common.h. | |
1341 | (enum stv_conv): Moved to c-common.h. | |
1342 | (scalar_to_vector): Moved to c-common.c. | |
1343 | (build_binary_op): Adapt to scalar_to_vector's new prototype. | |
1344 | * Make-lang.in: c-typeck.c depends on c-common.h. | |
1345 | ||
3b78de56 AC |
1346 | 2012-10-04 Arnaud Charlet <charlet@adacore.com> |
1347 | ||
1348 | * c-decl.c (c_write_global_declarations): Fix handling of | |
1349 | -fdump-ada-spec*. | |
1350 | ||
78c60e3d SS |
1351 | 2012-09-30 Sharad Singhai <singhai@google.com> |
1352 | ||
1353 | * c-decl.c (c_write_global_declarations): Use a different method | |
1354 | to determine if the dump has ben initialized. | |
1355 | ||
9f33203d JM |
1356 | 2012-09-14 Joseph Myers <joseph@codesourcery.com> |
1357 | ||
1358 | PR c/54552 | |
1359 | * c-typeck.c (c_cast_expr): When casting to a type requiring | |
1360 | C_MAYBE_CONST_EXPR to be created, pass the inner expression to | |
1361 | c_fully_fold first. | |
1362 | ||
a27d595d JM |
1363 | 2012-09-14 Joseph Myers <joseph@codesourcery.com> |
1364 | ||
1365 | PR c/54103 | |
1366 | * c-typeck.c (build_unary_op): Pass original argument of | |
1367 | TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove | |
1368 | any C_MAYBE_CONST_EXPR, if it has integer operands. | |
1369 | (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR, | |
1370 | TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR | |
1371 | to c_objc_common_truthvalue_conversion, then remove any | |
1372 | C_MAYBE_CONST_EXPR, if they have integer operands. Use | |
1373 | c_objc_common_truthvalue_conversion not | |
1374 | c_common_truthvalue_conversion. | |
1375 | (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and | |
1376 | call note_integer_operands for arguments with integer operands | |
1377 | that are not integer constants. | |
1378 | ||
9feb29df JJ |
1379 | 2012-09-13 Jakub Jelinek <jakub@redhat.com> |
1380 | ||
1381 | PR c/54559 | |
1382 | * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or | |
1383 | COMPLEX_TYPE with in_late_binary_op set temporarily to true. | |
1384 | ||
d409320c JJ |
1385 | 2012-08-31 Jakub Jelinek <jakub@redhat.com> |
1386 | ||
1387 | PR c/54428 | |
1388 | * c-convert.c (convert): Don't call fold_convert_loc if | |
1389 | TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e | |
1390 | is a COMPLEX_EXPR. Remove TYPE_MAIN_VARIANT check from | |
1391 | COMPLEX_TYPE -> COMPLEX_TYPE conversion. | |
1392 | ||
6265d07c JJ |
1393 | 2012-08-24 Jakub Jelinek <jakub@redhat.com> |
1394 | ||
1395 | PR c/54355 | |
1396 | * c-decl.c (c_parser_label): Pass true as nested and fix up comments | |
1397 | for nested and empty_ok arguments in the call to | |
1398 | c_parser_declaration_or_fndef. | |
1399 | ||
1a4049e7 JJ |
1400 | 2012-08-17 Jakub Jelinek <jakub@redhat.com> |
1401 | ||
1402 | * c-tree.h (c_last_sizeof_arg): Declare. | |
1403 | * c-parser.c (struct c_tree_loc_pair): New type. | |
1404 | (c_parser_expr_list): Add sizeof_arg argument. Fill it in if | |
1405 | non-NULL. | |
1406 | (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers. | |
1407 | (c_parser_postfix_expression_after_primary): Likewise. Call | |
1408 | sizeof_pointer_memaccess_warning if needed. | |
1409 | (sizeof_ptr_memacc_comptypes): New function. | |
1410 | * c-typeck.c (c_last_sizeof_arg): New global variable. | |
1411 | (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it. | |
1412 | ||
0229aee9 UB |
1413 | 2012-07-24 Uros Bizjak <ubizjak@gmail.com> |
1414 | ||
1415 | * c-lang.h (lang_decl): Add variable_size GTY option. | |
1416 | ||
7ee2468b SB |
1417 | 2012-07-16 Steven Bosscher <steven@gcc.gnu.org> |
1418 | ||
1419 | * c-decl.c: Include dumpfile.h instead of tree-dump.h. | |
1420 | * Make-lang.in: Fix dependencies. | |
1421 | ||
d4a10d0a SB |
1422 | 2012-06-29 Steven Bosscher <steven@gcc.gnu.org> |
1423 | ||
1424 | * Make-lang.in: New file, rules migrated from gcc/Makefile.in | |
1425 | and add language Makefile hooks. | |
1426 | * config-lang.in: New file. | |
1427 | * c-config-lang.in: Moved from gcc/config-lang.in to here, and | |
1428 | add the required "normal" config-lang.in rules. | |
1429 | * c-lang.h: Moved from gcc/ to here. | |
1430 | * c-tree.h: Likewise. | |
1431 | * c-objc-common.c: Likewise. | |
1432 | * c-objc-common.h: Likewise. | |
1433 | * c-typeck.c: Likewise. | |
1434 | * c-convert.c: Likewise. | |
1435 | * c-lang.c: Likewise. | |
1436 | * c-aux-info.c: Likewise. | |
1437 | * c-errors.c: Likewise. | |
1438 | * gccspec.c: Likewise. | |
1439 | * c-decl.c: Likewise. Include gt-c-c-decl.h, not gt-c-decl.h. | |
1440 | * c-parser.c: Likewise. Include gt-c-c-parser.h, not gt-c-parser.h. | |
1441 | \f | |
23a5b65a | 1442 | Copyright (C) 2012-2014 Free Software Foundation, Inc. |
d4a10d0a SB |
1443 | |
1444 | Copying and distribution of this file, with or without modification, | |
1445 | are permitted in any medium without royalty provided the copyright | |
1446 | notice and this notice are preserved. |