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