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