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