]>
Commit | Line | Data |
---|---|---|
f618a472 MP |
1 | 2016-07-29 Marek Polacek <polacek@redhat.com> |
2 | ||
3 | PR c/71742 | |
4 | * c-decl.c (finish_struct): Rephrase an error message. | |
5 | ||
673a107a JJ |
6 | 2016-07-29 Jakub Jelinek <jakub@redhat.com> |
7 | ||
8 | PR c/71969 | |
9 | * c-decl.c (finish_function): Only set DECL_DISREGARD_INLINE_LIMITS | |
10 | on GNU extern inline functions. | |
11 | ||
a5b5c8b6 MP |
12 | 2016-07-29 Marek Polacek <polacek@redhat.com> |
13 | ||
14 | PR c/71583 | |
15 | * c-parser.c (c_parser_postfix_expression_after_paren_type): Also | |
16 | check expr.value. | |
17 | ||
e3fe09c1 UB |
18 | 2016-07-22 Uros Bizjak <ubizjak@gmail.com> |
19 | ||
20 | * c-typeck.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1, | |
21 | ||
7c8f7eaa DM |
22 | 2016-07-20 David Malcolm <dmalcolm@redhat.com> |
23 | ||
24 | * c-decl.c (struct edit_distance_traits<cpp_hashnode *>): Move to | |
25 | spellcheck-tree.h | |
26 | (best_macro_match): Likewise, converting from a typedef to a | |
27 | subclass. | |
28 | (find_closest_macro_cpp_cb): Move to spellcheck-tree.c. | |
29 | (lookup_name_fuzzy): Update for change of best_macro_match to a | |
30 | subclass with a ctor that calls cpp_forall_identifiers. | |
31 | ||
de6a69ee DM |
32 | 2016-07-20 David Malcolm <dmalcolm@redhat.com> |
33 | ||
34 | * c-decl.c (implicit_decl_warning): Update for conversion of | |
35 | return type of lookup_name_fuzzy to const char *. | |
36 | (undeclared_variable): Likewise. | |
37 | (lookup_name_fuzzy): Convert return type from tree to | |
38 | const char *. | |
39 | * c-parser.c (c_parser_declaration_or_fndef): Update for | |
40 | conversion of return type of lookup_name_fuzzy to const char *. | |
41 | (c_parser_parameter_declaration): Likewise. | |
42 | ||
b1c9c068 CP |
43 | 2016-07-15 Cesar Philippidis <cesar@codesourcery.com> |
44 | ||
45 | * c-parser.c (c_parser_oacc_declare): Don't scan for | |
46 | GOMP_MAP_POINTER. | |
47 | * c-typeck.c (handle_omp_array_sections): Mark data clauses with | |
48 | GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having | |
49 | zero-length subarrays. | |
50 | ||
ddbbcb19 JJ |
51 | 2016-07-15 Jakub Jelinek <jakub@redhat.com> |
52 | ||
53 | PR c/71858 | |
54 | * c-decl.c (implicit_decl_warning): Use FUZZY_LOOKUP_FUNCTION_NAME | |
55 | instead of FUZZY_LOOKUP_NAME. | |
56 | (lookup_name_fuzzy): For FUZZY_LOOKUP_FUNCTION_NAME consider | |
57 | FUNCTION_DECLs, {VAR,PARM}_DECLs function pointers and macros. | |
58 | ||
dd36b877 JJ |
59 | 2016-07-14 Jakub Jelinek <jakub@redhat.com> |
60 | ||
61 | PR c/71858 | |
62 | * c-decl.c (lookup_name_fuzzy): Ignore binding->invisible. | |
63 | ||
8c681247 TS |
64 | 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> |
65 | ||
66 | * c-parser.c (c_parser_generic_selection): Make type of variable | |
67 | auto_vec. | |
68 | (c_parser_omp_declare_simd): Likewise. | |
69 | ||
bf4fa671 TS |
70 | 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> |
71 | ||
72 | * c-decl.c (struct c_struct_parse_info): Change member types | |
73 | from vec to auto_vec. | |
74 | (start_struct): Adjust. | |
75 | (finish_struct): Likewise. | |
76 | ||
557e8c49 JJ |
77 | 2016-07-02 Jakub Jelinek <jakub@redhat.com> |
78 | ||
79 | PR c/71719 | |
80 | * c-typeck.c (mark_exp_read): Handle VIEW_CONVERT_EXPR. | |
81 | ||
54d19c3b TS |
82 | 2016-06-29 Thomas Schwinge <thomas@codesourcery.com> |
83 | ||
84 | * c-parser.c (c_parser_pragma) <PRAGMA_OMP_CANCELLATION_POINT>: | |
85 | Move pragma context checking into... | |
86 | (c_parser_omp_cancellation_point): ... here, and improve | |
87 | diagnostic messages. | |
88 | * c-typeck.c (c_finish_omp_cancel) | |
89 | (c_finish_omp_cancellation_point): Improve diagnostic messages. | |
90 | ||
152ef731 JJ |
91 | 2016-06-29 Jakub Jelinek <jakub@redhat.com> |
92 | ||
93 | PR c/71685 | |
94 | * c-typeck.c (c_build_qualified_type): Don't clear | |
95 | C_TYPE_INCOMPLETE_VARS for the main variant. | |
96 | ||
97 | 2016-06-28 Martin Sebor <msebor@redhat.com> | |
4378d117 MS |
98 | |
99 | PR c/71552 | |
100 | * c-typeck.c (output_init_element): Diagnose incompatible types | |
101 | before non-constant initializers. | |
102 | ||
e9ac1f86 JJ |
103 | 2016-06-28 Jakub Jelinek <jakub@redhat.com> |
104 | ||
105 | * Make-lang.in: Don't cat ../stage_current if it does not exist. | |
106 | ||
277d7ee0 AK |
107 | 2016-06-23 Andi Kleen <ak@linux.intel.com> |
108 | ||
109 | * Make-lang.in: Add support for autofdo. | |
110 | ||
1a4f11c8 DM |
111 | 2016-06-22 David Malcolm <dmalcolm@redhat.com> |
112 | ||
113 | PR c/70339 | |
114 | * c-decl.c: Include spellcheck-tree.h and gcc-rich-location.h. | |
115 | (implicit_decl_warning): When issuing warnings for implicit | |
116 | declarations, attempt to provide a suggestion via | |
117 | lookup_name_fuzzy. | |
118 | (undeclared_variable): Likewise when issuing errors. | |
119 | (lookup_name_in_scope): Likewise. | |
120 | (struct edit_distance_traits<cpp_hashnode *>): New struct. | |
121 | (best_macro_match): New typedef. | |
122 | (find_closest_macro_cpp_cb): New function. | |
123 | (lookup_name_fuzzy): New function. | |
124 | * c-parser.c: Include gcc-rich-location.h. | |
125 | (c_token_starts_typename): Split out case CPP_KEYWORD into... | |
126 | (c_keyword_starts_typename): ...this new function. | |
127 | (c_parser_declaration_or_fndef): When issuing errors about | |
128 | missing "struct" etc, add a fixit. For other kinds of errors, | |
129 | attempt to provide a suggestion via lookup_name_fuzzy. | |
130 | (c_parser_parms_declarator): When looking ahead to detect typos in | |
131 | type names, also reject CPP_KEYWORD. | |
132 | (c_parser_parameter_declaration): When issuing errors about | |
133 | unknown type names, attempt to provide a suggestion via | |
134 | lookup_name_fuzzy. | |
135 | * c-tree.h (c_keyword_starts_typename): New prototype. | |
136 | ||
5a578671 JM |
137 | 2016-06-20 Joseph Myers <joseph@codesourcery.com> |
138 | ||
139 | PR c/71601 | |
140 | * c-typeck.c (build_conditional_expr): Return error_mark_node if | |
141 | c_common_type returns error_mark_node. | |
142 | ||
aa0db437 MS |
143 | 2016-06-19 Martin Sebor <msebor@redhat.com> |
144 | ||
145 | PR c/69507 | |
146 | * c-parser.c (c_parser_alignof_expression): Avoid diagnosing | |
147 | __alignof__ (expression). | |
148 | ||
6a3f203c DM |
149 | 2016-06-14 David Malcolm <dmalcolm@redhat.com> |
150 | ||
151 | * c-typeck.c: Include spellcheck-tree.h rather than spellcheck.h. | |
152 | ||
264757fb DM |
153 | 2016-06-14 David Malcolm <dmalcolm@redhat.com> |
154 | ||
155 | * c-typeck.c (build_component_ref): Simplify fixit code by | |
156 | using gcc_rich_location::add_fixit_misspelled_id. | |
157 | (set_init_label): Likewise. | |
158 | ||
f7e4f2e3 DM |
159 | 2016-06-13 David Malcolm <dmalcolm@redhat.com> |
160 | ||
161 | * c-parser.c (c_parser_initelt): Provide location of name for new | |
162 | location_t param of set_init_label. | |
163 | * c-tree.h (set_init_label): Add location_t param. | |
164 | * c-typeck.c (set_init_index): Add "fieldname_loc" location_t | |
165 | param and use it when issuing error messages about unrecognized | |
166 | field names. Attempt to provide a fixit hint if appropriate, | |
167 | otherwise update the error message to provide the type name. | |
168 | ||
4b1ffdb1 TS |
169 | 2016-06-10 Thomas Schwinge <thomas@codesourcery.com> |
170 | ||
171 | PR c/71381 | |
172 | * c-parser.c (c_parser_omp_variable_list) <OMP_CLAUSE__CACHE_>: | |
173 | Loosen checking. | |
174 | ||
44a845ca MS |
175 | 2016-06-08 Martin Sebor <msebor@redhat.com> |
176 | Jakub Jelinek <jakub@redhat.com> | |
177 | ||
178 | PR c++/70507 | |
179 | PR c/68120 | |
180 | * c-typeck.c (convert_arguments): Don't promote last argument | |
181 | of BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P. | |
182 | ||
92a5f2ba MP |
183 | 2016-06-08 Marek Polacek <polacek@redhat.com> |
184 | ||
185 | PR c/71418 | |
186 | * c-decl.c (grokdeclarator): Check TYPE_P. | |
187 | ||
08203f73 MP |
188 | PR c/71426 |
189 | * c-decl.c (get_parm_info): Don't crash on an assert on invalid | |
190 | code. | |
191 | ||
6ffd47b7 DM |
192 | 2016-06-07 David Malcolm <dmalcolm@redhat.com> |
193 | ||
194 | * c-parser.c (c_parser_postfix_expression): In __builtin_offsetof | |
195 | and structure element reference, capture the location of the | |
196 | element name token and pass it to build_component_ref. | |
197 | (c_parser_postfix_expression_after_primary): Likewise for | |
198 | structure element dereference. | |
199 | (c_parser_omp_variable_list): Likewise for | |
200 | OMP_CLAUSE_{_CACHE, MAP, FROM, TO}, | |
201 | * c-tree.h (build_component_ref): Add location_t param. | |
202 | * c-typeck.c (build_component_ref): Add location_t param | |
203 | COMPONENT_LOC. Use it, if available, when issuing hints about | |
204 | mispelled member names to provide a fixit replacement hint. | |
205 | ||
1f40cff3 MP |
206 | 2016-06-06 Marek Polacek <polacek@redhat.com> |
207 | ||
208 | PR c/71362 | |
209 | * c-parser.c (c_parser_direct_declarator): Set location. | |
210 | ||
5545a907 MP |
211 | 2016-06-06 Marek Polacek <polacek@redhat.com> |
212 | ||
213 | * c-typeck.c (comptypes_internal): Handle comparisons of | |
214 | INTEGER_TYPE, FIXED_POINT_TYPE, and REAL_TYPE nodes. Don't check | |
215 | TYPE_REF_CAN_ALIAS_ALL. | |
216 | ||
b605f663 CLT |
217 | 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com> |
218 | ||
219 | * c-typeck.c (c_finish_omp_clauses): Mark OpenACC reduction | |
220 | arguments as addressable when async clause exists. | |
221 | ||
00631022 JJ |
222 | 2016-05-30 Jakub Jelinek <jakub@redhat.com> |
223 | ||
224 | PR c++/71349 | |
225 | * c-parser.c (c_parser_omp_for): Don't disallow nowait clause | |
226 | when combined with target construct. | |
227 | ||
7211a097 JJ |
228 | 2016-05-26 Jakub Jelinek <jakub@redhat.com> |
229 | ||
230 | * c-parser.c (c_parser_omp_clause_schedule): Warn if | |
231 | OMP_CLAUSE_SCHEDULE_CHUNK_EXPR is known not to be positive. | |
232 | ||
95efe6b6 MP |
233 | 2016-05-25 Marek Polacek <polacek@redhat.com> |
234 | ||
235 | PR c/71265 | |
236 | * c-decl.c (c_make_fname_decl): Don't check seen_error. | |
237 | ||
a23faf7a MP |
238 | PR c/71266 |
239 | * c-decl.c (store_parm_decls_oldstyle): Skip non-PARM_DECLs. | |
240 | ||
e46c7770 CP |
241 | 2016-05-24 Cesar Philippidis <cesar@codesourcery.com> |
242 | ||
243 | * c-parser.c (c_parser_oacc_declare): Add support for | |
244 | GOMP_MAP_FIRSTPRIVATE_POINTER. | |
245 | * c-typeck.c (handle_omp_array_sections_1): Replace bool is_omp | |
246 | argument with enum c_omp_region_type ort. | |
247 | (handle_omp_array_sections): Likewise. Update call to | |
248 | handle_omp_array_sections_1. | |
249 | (c_finish_omp_clauses): Add specific errors and warning messages for | |
250 | OpenACC. Use firsrtprivate pointers for OpenACC subarrays. Update | |
251 | call to handle_omp_array_sections. | |
252 | ||
a04e69c0 TS |
253 | 2016-05-24 Thomas Schwinge <thomas@codesourcery.com> |
254 | ||
255 | * c-parser.c (c_parser_oacc_routine): Tighten syntax checks. | |
256 | ||
f17a223d RB |
257 | 2016-05-24 Richard Biener <rguenther@suse.de> |
258 | ||
259 | PR middle-end/70434 | |
260 | PR c/69504 | |
261 | * c-typeck.c (build_array_ref): Do not complain about indexing | |
262 | non-lvalue vectors. Adjust for function name change. | |
263 | ||
79063edd MS |
264 | 2016-05-20 Martin Sebor <msebor@redhat.com> |
265 | ||
266 | PR c/71115 | |
267 | * c-typeck.c (error_init): Use | |
268 | expansion_point_location_if_in_system_header. | |
269 | (warning_init): Same. | |
270 | ||
8a40fef3 DM |
271 | 2016-05-19 David Malcolm <dmalcolm@redhat.com> |
272 | ||
273 | PR c/71171 | |
274 | * c-parser.c (c_parser_generic_selection): Use c_expr::set_error | |
275 | in error-handling. | |
276 | (c_parser_postfix_expression): Likewise. | |
277 | * c-tree.h (c_expr::set_error): New method. | |
278 | * c-typeck.c (parser_build_binary_op): In error-handling, ensure | |
279 | that result's range is initialized. | |
280 | ||
e9892350 JG |
281 | 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com> |
282 | ||
283 | * c-typeck.c (parser_build_unary_op): Fix formatting. | |
284 | ||
8fad45f5 MW |
285 | 2016-05-16 Matthew Wahab <matthew.wahab@arm.com> |
286 | ||
287 | * c-decl.c (grokdeclarator): Remove errmsg and use of | |
288 | targetm.invalid_return_type. | |
289 | (grokparms): Remove errmsg and use of | |
290 | targetm.invalid_parameter_type. | |
291 | ||
aa4b467b JM |
292 | 2016-05-13 Joseph Myers <joseph@codesourcery.com> |
293 | ||
294 | * c-decl.c (grokdeclarator): For C11, discard qualifiers on | |
295 | function return type. | |
296 | ||
4f2e1536 MP |
297 | 2016-05-12 Marek Polacek <polacek@redhat.com> |
298 | ||
299 | PR c/70756 | |
300 | * c-decl.c (build_compound_literal): Pass LOC down to | |
301 | c_incomplete_type_error. | |
302 | * c-tree.h (require_complete_type): Adjust declaration. | |
303 | (c_incomplete_type_error): Likewise. | |
304 | * c-typeck.c (require_complete_type): Add location parameter, pass it | |
305 | down to c_incomplete_type_error. | |
306 | (c_incomplete_type_error): Add location parameter, pass it down to | |
307 | error_at. | |
308 | (build_component_ref): Pass location down to c_incomplete_type_error. | |
309 | (default_conversion): Pass location down to require_complete_type. | |
310 | (build_array_ref): Likewise. | |
311 | (build_function_call_vec): Likewise. | |
312 | (convert_arguments): Likewise. | |
313 | (build_unary_op): Likewise. | |
314 | (build_c_cast): Likewise. | |
315 | (build_modify_expr): Likewise. | |
316 | (convert_for_assignment): Likewise. | |
317 | (c_finish_omp_clauses): Likewise. | |
318 | ||
d6e83a8d MM |
319 | 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com> |
320 | ||
321 | PR c/43651 | |
322 | * c-decl.c (declspecs_add_qual): Warn when -Wduplicate-decl-specifier | |
323 | is enabled. | |
324 | * c-errors.c (pedwarn_c90): Return true if warned. | |
325 | * c-tree.h (pedwarn_c90): Change return type to bool. | |
326 | (enum c_declspec_word): Add new enumerator cdw_atomic. | |
327 | ||
5c3a10fb MP |
328 | 2016-05-11 Marek Polacek <polacek@redhat.com> |
329 | ||
330 | PR c++/71024 | |
331 | * c-decl.c (diagnose_mismatched_decls): Factor out code to | |
332 | diagnose_mismatched_attributes and call it. | |
333 | ||
cf68d92c MP |
334 | 2016-05-10 Marek Polacek <polacek@redhat.com> |
335 | ||
336 | PR c/70255 | |
337 | * c-decl.c (diagnose_mismatched_decls): Warn for optimize attribute | |
338 | on a declaration following the definition. | |
339 | ||
351f85c5 JJ |
340 | 2016-05-05 Jakub Jelinek <jakub@redhat.com> |
341 | ||
342 | * c-parser.c (c_parser_switch_statement): Add IF_P argument, | |
343 | parse it through to c_parser_c99_block_statement. | |
344 | (c_parser_statement_after_labels): Adjust c_parser_switch_statement | |
345 | caller. | |
346 | ||
deef7113 MP |
347 | 2016-05-04 Marek Polacek <polacek@redhat.com> |
348 | ||
349 | * c-parser.c (c_parser_if_statement): Replace OPT_Wparentheses with | |
350 | OPT_Wdangling_else. | |
351 | ||
de55efd5 MP |
352 | 2016-05-04 Marek Polacek <polacek@redhat.com> |
353 | ||
354 | PR c/48778 | |
355 | * c-typeck.c (build_binary_op): Don't issue -Waddress warnings | |
356 | for macro expansions. | |
357 | ||
79ce98bc MP |
358 | 2016-05-03 Marek Polacek <polacek@redhat.com> |
359 | ||
360 | PR c/70859 | |
361 | * c-typeck.c (build_function_call_vec): Pass LOC and ARG_LOC down to | |
362 | check_builtin_function_arguments. | |
363 | ||
fb2647aa RB |
364 | 2016-05-03 Richard Biener <rguenther@suse.de> |
365 | ||
366 | * Make-lang.in (cc1-checksum.c): For stage-final re-use | |
367 | the checksum from the previous stage. | |
368 | ||
77886428 CP |
369 | 2016-05-02 Cesar Philippidis <cesar@codesourcery.com> |
370 | ||
371 | * c-parser.c (c_parser_oacc_all_clauses): Update call to | |
372 | c_finish_omp_clauses. | |
373 | (c_parser_omp_all_clauses): Likewise. | |
374 | (c_parser_oacc_cache): Likewise. | |
375 | (c_parser_oacc_loop): Likewise. | |
376 | (omp_split_clauses): Likewise. | |
377 | (c_parser_omp_declare_target): Likewise. | |
378 | (c_parser_cilk_all_clauses): Likewise. | |
379 | (c_parser_cilk_for): Likewise. | |
380 | * c-typeck.c (c_finish_omp_clauses): Replace bool arguments | |
381 | is_omp, declare_simd, and is_cilk with enum c_omp_region_type ort. | |
382 | ||
7176a4a0 MP |
383 | 2016-05-02 Marek Polacek <polacek@redhat.com> |
384 | ||
385 | PR c/70851 | |
386 | * c-decl.c (grokdeclarator): Diagnose when array's size has an | |
387 | incomplete type. | |
388 | ||
e7ff0319 CP |
389 | 2016-04-29 Cesar Philippidis <cesar@codesourcery.com> |
390 | ||
391 | PR middle-end/70626 | |
392 | * c-parser.c (c_parser_oacc_loop): Don't augment mask with | |
393 | OACC_LOOP_CLAUSE_MASK. | |
394 | (c_parser_oacc_kernels_parallel): Update call to | |
395 | c_oacc_split_loop_clauses. | |
396 | ||
9f405ce1 AM |
397 | 2016-04-28 Andrew MacLeod <amacleod@redhat.com> |
398 | ||
399 | * c-array-notation.c (fix_builtin_array_notation_fn): Fix final | |
400 | argument to build_modify_expr in two cases. | |
401 | ||
c1e1f433 BS |
402 | 2016-04-27 Bernd Schmidt <bschmidt@redhat.com> |
403 | ||
404 | * c-parser.c (c_parser_postfix_expression_after_primary): Call | |
405 | warn_for_memset instead of warning directly here. | |
406 | ||
2448a956 MP |
407 | 2016-04-26 Marek Polacek <polacek@redhat.com> |
408 | ||
409 | PR c/67784 | |
410 | * c-parser.c (c_parser_maybe_reclassify_token): New function factored | |
411 | out of ... | |
412 | (c_parser_for_statement): ... here. | |
413 | (c_parser_if_statement): Use it. | |
414 | (c_parser_switch_statement): Use it. | |
415 | (c_parser_while_statement): Use it. | |
416 | ||
b02a5e26 MP |
417 | PR c/70791 |
418 | * c-decl.c (pushdecl): Pass LOCUS down to warning. | |
419 | ||
477d4906 IV |
420 | 2016-04-20 Ilya Verbin <ilya.verbin@intel.com> |
421 | ||
422 | PR c++/69363 | |
423 | * c-parser.c (c_parser_cilk_all_clauses): Use c_finish_omp_clauses | |
424 | instead of c_finish_cilk_clauses. | |
425 | * c-tree.h (c_finish_omp_clauses): Add new default argument. | |
426 | * c-typeck.c (c_finish_omp_clauses): Add new argument. Allow | |
427 | floating-point variables in the linear clause for Cilk Plus. | |
428 | ||
fe37c7af MM |
429 | 2016-04-18 Michael Matz <matz@suse.de> |
430 | ||
431 | * c-decl.c (merge_decls): Use SET_DECL_ALIGN and SET_TYPE_ALIGN. | |
432 | (grokdeclarator, parser_xref_tag, finish_enum): Use SET_TYPE_ALIGN. | |
433 | ||
949505a9 MP |
434 | 2016-04-15 Marek Polacek <polacek@redhat.com> |
435 | ||
436 | PR c/70671 | |
437 | * c-typeck.c (build_unary_op): Pass location down to error and | |
438 | warning call. | |
439 | ||
dda1bf61 JJ |
440 | 2016-04-15 Jakub Jelinek <jakub@redhat.com> |
441 | ||
442 | PR c/70436 | |
443 | * c-parser.c (c_parser_pragma): Add IF_P argument, pass it down | |
444 | where needed. | |
445 | (c_parser_external_declaration, c_parser_struct_or_union_specifier, | |
446 | c_parser_parameter_declaration, c_parser_compound_statement_nostart, | |
447 | c_parser_objc_class_instance_variables, c_parser_objc_methodprotolist): | |
448 | Adjust c_parser_pragma callers. | |
449 | (c_parser_statement_after_labels): Likewise. Adjust c_parser_cilk_for | |
450 | caller. | |
451 | (c_parser_omp_structured_block): Add IF_P argument, pass it down to | |
452 | c_parser_statement. | |
453 | (c_parser_oacc_data, c_parser_oacc_host_data, c_parser_oacc_loop, | |
454 | c_parser_oacc_kernels_parallel, c_parser_omp_critical, | |
455 | c_parser_omp_simd, c_parser_omp_for, c_parser_omp_master, | |
456 | c_parser_omp_ordered, c_parser_omp_parallel, c_parser_omp_single, | |
457 | c_parser_omp_task, c_parser_omp_taskgroup, c_parser_omp_distribute, | |
458 | c_parser_omp_teams, c_parser_omp_target_data, c_parser_omp_target, | |
459 | c_parser_omp_taskloop, c_parser_omp_construct, c_parser_cilk_grainsize, | |
460 | c_parser_cilk_simd, c_parser_cilk_for): Add IF_P argument, pass it | |
461 | down where needed. | |
462 | (c_parser_omp_for_loop): Likewise. Clear IF_P if nbraces. | |
463 | (c_parser_omp_sections_scope): Adjust c_parser_omp_structured_block | |
464 | calls. | |
465 | ||
99cd9857 MP |
466 | 2016-04-13 Marek Polacek <polacek@redhat.com> |
467 | ||
468 | PR c/70436 | |
469 | * c-parser.c (c_parser_statement_after_labels): Add IF_P argument and | |
470 | adjust callers. | |
471 | (c_parser_statement): Likewise. | |
472 | (c_parser_c99_block_statement): Likewise. | |
473 | (c_parser_while_statement): Likewise. | |
474 | (c_parser_for_statement): Likewise. | |
475 | (c_parser_if_body): Don't set IF_P here. | |
476 | (c_parser_if_statement): Add IF_P argument. Set IF_P here. Warn | |
477 | about dangling else here. | |
478 | * c-tree.h (c_finish_if_stmt): Adjust declaration. | |
479 | * c-typeck.c (c_finish_if_stmt): Remove NESTED_IF parameter. Don't | |
480 | warn about dangling else here. | |
481 | ||
f13355da MP |
482 | 2016-04-04 Marek Polacek <polacek@redhat.com> |
483 | ||
484 | PR c/70307 | |
485 | * c-fold.c (c_fully_fold_internal): Handle VEC_COND_EXPR. | |
486 | ||
5fde6a45 MP |
487 | 2016-03-31 Marek Polacek <polacek@redhat.com> |
488 | ||
489 | PR c/70297 | |
490 | * c-decl.c (merge_decls): Also set TYPE_ALIGN and TYPE_USER_ALIGN. | |
491 | ||
4bbf545b DM |
492 | 2016-03-18 David Malcolm <dmalcolm@redhat.com> |
493 | ||
494 | PR c/70281 | |
495 | * c-parser.c (c_parser_postfix_expression): Set the source range | |
496 | for uses of "__builtin_types_compatible_p". | |
497 | ||
fcc2b74f JJ |
498 | 2016-03-17 Jakub Jelinek <jakub@redhat.com> |
499 | ||
500 | PR c/70280 | |
501 | * c-typeck.c (composite_type): Don't count void_list_node | |
502 | into len, if the list is terminated by void_list_node, start | |
503 | with void_list_node instead of NULL for newargs. Stop | |
504 | at void_list_node. | |
505 | ||
ab4c578f MP |
506 | 2016-03-16 Marek Polacek <polacek@redhat.com> |
507 | ||
508 | PR c/70093 | |
509 | * c-typeck.c (build_function_call_vec): Create a TARGET_EXPR for | |
510 | nested functions returning VM types. | |
511 | ||
96b3c82d CP |
512 | 2016-03-09 Cesar Philippidis <cesar@codesourcery.com> |
513 | ||
514 | * c-parser.c (c_parser_oacc_loop): Update cclauses and clauses | |
515 | when calling c_finish_omp_clauses. | |
516 | ||
29b9828f BS |
517 | 2016-03-04 Bernd Schmidt <bschmidt@redhat.com> |
518 | ||
519 | PR c/69824 | |
520 | * c-decl.c (get_parm_info): Don't queue implicit function declarations | |
521 | for later. | |
522 | ||
7ff6ca38 MP |
523 | 2016-03-04 Marek Polacek <polacek@redhat.com> |
524 | ||
525 | PR c/69798 | |
526 | * c-parser.c (c_parser_postfix_expression): Call | |
527 | c_parser_cast_expression rather than c_parser_postfix_expression. | |
528 | ||
686e2237 JJ |
529 | 2016-03-01 Jakub Jelinek <jakub@redhat.com> |
530 | ||
531 | PR c/69796 | |
532 | PR c/69974 | |
533 | * c-parser.c (c_parser_translation_unit): Don't change TREE_TYPE | |
534 | of incomplete decls to error_mark_node. | |
535 | ||
0b05329b MP |
536 | 2016-02-24 Marek Polacek <polacek@redhat.com> |
537 | ||
538 | PR c/69819 | |
539 | * c-decl.c (finish_decl): Don't update the copy of the type of a | |
540 | different decl type. | |
541 | ||
067fbd8b JJ |
542 | 2016-02-23 Jakub Jelinek <jakub@redhat.com> |
543 | ||
544 | PR objc/69844 | |
545 | * c-parser.c (c_parser_for_statement): Properly handle ObjC classes | |
546 | in id_kind reclassification. | |
547 | ||
bf14eba2 JJ |
548 | 2016-02-16 Jakub Jelinek <jakub@redhat.com> |
549 | ||
550 | PR c/69835 | |
551 | * c-typeck.c (build_binary_op): Revert 2015-09-09 change. | |
552 | ||
ba539195 JN |
553 | 2016-02-16 James Norris <jnorris@codesourcery.com> |
554 | ||
555 | PR c/64748 | |
556 | * c-parser.c (c_parser_oacc_data_clause_deviceptr): Allow parms. | |
557 | ||
16595a1f BS |
558 | 2016-02-12 Bernd Schmidt <bschmidt@redhat.com> |
559 | ||
f48dfe98 BS |
560 | * c-decl.c (build_null_declspecs): Zero the entire struct. |
561 | ||
16595a1f BS |
562 | PR c/69522 |
563 | * c-parser.c (c_parser_braced_init): New arg outer_obstack. All | |
564 | callers changed. If nested_p is true, use it to call | |
565 | finish_implicit_inits. | |
566 | * c-tree.h (finish_implicit_inits): Declare. | |
567 | * c-typeck.c (finish_implicit_inits): New function. Move code | |
568 | from ... | |
569 | (push_init_level): ... here. | |
570 | (set_designator, process_init_element): Call finish_implicit_inits. | |
571 | ||
66756373 JJ |
572 | 2016-02-11 Jakub Jelinek <jakub@redhat.com> |
573 | ||
574 | PR c/69768 | |
575 | * c-typeck.c (parser_build_binary_op): Strip nops from integer_zerop | |
576 | arguments for -Waddress warning. | |
577 | ||
1066e9b5 JJ |
578 | 2016-02-04 Jakub Jelinek <jakub@redhat.com> |
579 | ||
580 | PR c/69669 | |
581 | * c-decl.c (finish_enum): When honoring mode attribute, | |
582 | make sure to use proper TYPE_MIN_VALUE and TYPE_MAX_VALUE. | |
583 | ||
3a5d2ba4 JJ |
584 | 2016-01-29 Jakub Jelinek <jakub@redhat.com> |
585 | ||
586 | PR debug/69518 | |
587 | * c-decl.c (finish_struct): Clear C_TYPE_INCOMPLETE_VARS in | |
588 | all type variants, not just TYPE_MAIN_VARIANT. | |
589 | ||
cbdd8ae0 JJ |
590 | 2016-01-27 Jakub Jelinek <jakub@redhat.com> |
591 | ||
592 | PR debug/66869 | |
593 | * c-decl.c (c_write_global_declarations_1): Warn with | |
594 | warn_unused_function if static prototype without definition | |
595 | is not C_DECL_USED. | |
596 | ||
fa74a4bc MP |
597 | 2016-01-27 Marek Polacek <polacek@redhat.com> |
598 | ||
599 | PR c/68062 | |
600 | * c-typeck.c (build_binary_op) [EQ_EXPR, GE_EXPR]: Promote operand | |
601 | to unsigned, if needed. Add -Wsign-compare warning. | |
602 | ||
13f92e8d JJ |
603 | 2016-01-26 Jakub Jelinek <jakub@redhat.com> |
604 | ||
605 | PR tree-optimization/69483 | |
606 | * c-parser.c (c_parser_translation_unit): Use FOR_EACH_VEC_ELT. | |
607 | ||
cd8e73dc | 608 | 2016-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
d25c7690 PK |
609 | |
610 | PR c/24293 | |
611 | * c-tree.h (incomplete_record_decls): Declare. | |
612 | * c-parser.c (incomplete_record_decls): Define. | |
613 | (c_parser_translation_unit): Iterate through incomplete_record_decls and | |
614 | report error if any decl has zero size. | |
615 | * c-decl.c (finish_decl): Append static decl with incomplete struct/union | |
616 | or enum type to incomplete_record_decls. | |
617 | ||
e6d6ec9e TV |
618 | 2016-01-14 Tom de Vries <tom@codesourcery.com> |
619 | ||
620 | PR tree-optimization/68773 | |
621 | * c-parser.c (c_parser_oacc_declare, c_parser_omp_declare_target): Don't | |
622 | set force_output. | |
623 | ||
00083992 MP |
624 | 2016-01-14 Marek Polacek <polacek@redhat.com> |
625 | ||
626 | PR c/69262 | |
627 | * c-decl.c (grokdeclarator): Provide more information for invalid | |
628 | array declarations. | |
629 | ||
7443cf13 DM |
630 | 2016-01-06 David Malcolm <dmalcolm@redhat.com> |
631 | ||
632 | * c-parser.c (c_parser_unary_expression): For dereferences, build | |
633 | a combined location before calling build_indirect_ref, so that | |
634 | error reports cover the full range, manually updating the c_expr | |
635 | src_range. | |
636 | ||
6b131d5b MP |
637 | 2016-01-06 Marek Polacek <polacek@redhat.com> |
638 | ||
639 | PR sanitizer/69099 | |
640 | * c-convert.c (convert) [INTEGER_TYPE]: Drop ARG. Don't pass ARG to | |
641 | ubsan_instrument_float_cast. Fold EXPR. Use NULL_TREE instead of | |
642 | NULL. | |
643 | ||
818ab71a JJ |
644 | 2016-01-04 Jakub Jelinek <jakub@redhat.com> |
645 | ||
646 | Update copyright years. | |
647 | ||
2fe0a208 MP |
648 | 2016-01-04 Marek Polacek <polacek@redhat.com> |
649 | ||
650 | PR c/68908 | |
651 | * c-typeck.c (build_atomic_assign): Improve commentary. Add | |
652 | optimization to use __atomic_fetch_* built-in if possible. | |
653 | ||
c7b48c8a TS |
654 | 2015-12-23 Thomas Schwinge <thomas@codesourcery.com> |
655 | ||
656 | * c-parser.c (c_parser_oacc_clause_use_device): Merge function | |
657 | into... | |
658 | (c_parser_omp_clause_use_device_ptr): ... this function. Adjust | |
659 | all users. | |
660 | ||
fda5652f MP |
661 | 2015-12-22 Marek Polacek <polacek@redhat.com> |
662 | ||
663 | PR c/69002 | |
664 | * c-typeck.c (build_component_ref): Warn when acessing elements of | |
665 | atomic structures or unions. | |
666 | ||
745e411d DM |
667 | 2015-12-21 David Malcolm <dmalcolm@redhat.com> |
668 | ||
669 | * c-typeck.c: Include "gcc-rich-location.h". | |
670 | (build_binary_op): In the two places that call binary_op_error, | |
671 | create a gcc_rich_location and populate it with the location of | |
672 | the binary op and its two operands. | |
673 | ||
94c40e19 DM |
674 | 2015-12-16 David Malcolm <dmalcolm@redhat.com> |
675 | ||
676 | * c-parser.c (c_parser_statement_after_labels): When calling | |
677 | c_finish_return, Use the return expression's location if it has | |
678 | one, falling back to the location of the first token within it. | |
679 | * c-typeck.c (c_finish_return): When issuing warnings about | |
680 | the incorrect presence/absence of a return value, issue a note | |
681 | showing the declaration of the function. | |
682 | ||
de67c4c3 DM |
683 | 2015-12-16 David Malcolm <dmalcolm@redhat.com> |
684 | ||
685 | * c-parser.c (struct c_parser): Expand array "tokens_buf" from 2 | |
686 | to 4. | |
687 | (c_parser_peek_nth_token): New function. | |
688 | (c_parser_peek_conflict_marker): New function. | |
689 | (c_parser_error): Detect conflict markers and report them as such. | |
690 | ||
a10704e1 DM |
691 | 2015-12-16 David Malcolm <dmalcolm@redhat.com> |
692 | ||
693 | * c-parser.c (c_parser_postfix_expression): Use EXPR_LOC_OR_LOC | |
694 | to preserve range information for the primary expression | |
695 | in the call to c_parser_postfix_expression_after_primary. | |
696 | ||
8062bca6 DM |
697 | 2015-12-16 David Malcolm <dmalcolm@redhat.com> |
698 | ||
699 | * c-parser.c (c_parser_static_assert_declaration_no_semi): Use the | |
700 | expression location, falling back on the first token location, | |
701 | rather than always using the latter. | |
702 | ||
d06f8b75 MP |
703 | 2015-12-16 Marek Polacek <polacek@redhat.com> |
704 | ||
705 | PR c/64637 | |
706 | * c-typeck.c (c_process_expr_stmt): Use location of the expression if | |
707 | available. | |
708 | ||
2994fb91 MP |
709 | 2015-12-15 Marek Polacek <polacek@redhat.com> |
710 | ||
711 | PR c/68907 | |
712 | * c-typeck.c (build_atomic_assign): Set TREE_NO_WARNING on an | |
713 | artificial decl. | |
714 | ||
a1b93f8d DM |
715 | 2015-12-08 David Malcolm <dmalcolm@redhat.com> |
716 | ||
717 | * c-parser.c (c_parser_alignof_expression): Capture location of | |
718 | closing parenthesis (if any), or of end of unary expression, and | |
719 | use it to build a src_range for the expression. | |
720 | ||
46c6e1e2 DM |
721 | 2015-12-08 David Malcolm <dmalcolm@redhat.com> |
722 | ||
723 | PR c/68757 | |
724 | * c-parser.c (c_parser_get_builtin_args): Add | |
725 | "out_close_paren_loc" param, and write back to it. | |
726 | (c_parser_postfix_expression): Capture the closing | |
727 | parenthesis location for RID_CHOOSE_EXPR, | |
728 | RID_BUILTIN_CALL_WITH_STATIC_CHAIN, RID_BUILTIN_COMPLEX, | |
729 | RID_BUILTIN_SHUFFLE and use it to set the source range | |
730 | for such expressions; within RID_BUILTIN_COMPLEX set | |
731 | the underlying location. | |
732 | ||
66189108 MP |
733 | 2015-12-07 Marek Polacek <polacek@redhat.com> |
734 | ||
735 | PR c/68668 | |
736 | * c-decl.c (grokdeclarator): If ORIG_QUAL_INDIRECT is indirect, use | |
737 | TREE_TYPE of ORIG_QUAL_TYPE, otherwise decrement ORIG_QUAL_INDIRECT. | |
738 | ||
f187980b EB |
739 | 2015-12-04 Eric Botcazou <ebotcazou@adacore.com> |
740 | ||
741 | * c-tree.h (c_build_va_arg): Adjust prototype. | |
742 | * c-parser.c (c_parser_postfix_expression): Adjust call to above. | |
743 | * c-typeck.c (c_build_va_arg): Rename LOC parameter to LOC2, add LOC1 | |
744 | parameter, adjust throughout and issue an error if EXPR is a component | |
745 | with reverse storage order. | |
746 | ||
4250754e JM |
747 | 2015-12-02 Jason Merrill <jason@redhat.com> |
748 | ||
749 | * c-fold.c (c_disable_warnings, c_enable_warnings, c_fully_fold) | |
750 | (c_fully_fold_internal, decl_constant_value_for_optimization): | |
751 | Move from c-common.c. | |
752 | * c-tree.h: Declare decl_constant_value_for_optimization. | |
753 | * Make-lang.in (C_AND_OBJC_OBJS): Add c-fold.o. | |
754 | ||
e9e32ee6 JM |
755 | 2015-12-02 Joseph Myers <joseph@codesourcery.com> |
756 | ||
757 | PR c/68162 | |
758 | * c-decl.c (grokdeclarator): Set first_non_attr_kind before | |
759 | following link from declarator to next declarator. Track original | |
760 | qualified type and pass it to c_build_qualified_type. | |
761 | * c-typeck.c (c_build_qualified_type): Add arguments | |
762 | orig_qual_type and orig_qual_indirect. | |
763 | ||
ff7a55bf TS |
764 | 2015-12-02 Thomas Schwinge <thomas@codesourcery.com> |
765 | ||
766 | * c-parser.c (c_parser_omp_clause_name) | |
767 | (c_parser_oacc_all_clauses): Alphabetical sorting. | |
768 | ||
657e4e47 JJ |
769 | 2015-12-02 Jakub Jelinek <jakub@redhat.com> |
770 | ||
771 | PR c/68533 | |
772 | * c-decl.c (get_parm_info): Use b->locus instead of input_location | |
773 | for diagnostics. | |
774 | ||
37d5ad46 JB |
775 | 2015-12-01 Julian Brown <julian@codesourcery.com> |
776 | Cesar Philippidis <cesar@codesourcery.com> | |
777 | James Norris <James_Norris@mentor.com> | |
778 | ||
779 | * c-parser.c (c_parser_omp_clause_name): Add use_device support. | |
780 | (c_parser_oacc_clause_use_device): New function. | |
781 | (c_parser_oacc_all_clauses): Add use_device support. | |
782 | (OACC_HOST_DATA_CLAUSE_MASK): New macro. | |
783 | (c_parser_oacc_host_data): New function. | |
784 | (c_parser_omp_construct): Add host_data support. | |
785 | * c-tree.h (c_finish_oacc_host_data): Add prototype. | |
786 | * c-typeck.c (c_finish_oacc_host_data): New function. | |
787 | (c_finish_omp_clauses): Add use_device support. | |
788 | ||
a4850ce9 JH |
789 | 2015-11-29 Jan Hubicka <hubicka@ucw.cz> |
790 | ||
791 | PR c/67106 | |
792 | * c-decl.c: Set TYPE_PACKED in variants. | |
793 | ||
b58d3df2 ML |
794 | 2015-11-27 Martin Liska <mliska@suse.cz> |
795 | ||
796 | PR c++/68312 | |
797 | * c-array-notation.c (fix_builtin_array_notation_fn): | |
798 | Use release_vec_vec instead of vec::release. | |
799 | (build_array_notation_expr): Likewise. | |
800 | (fix_conditional_array_notations_1): Likewise. | |
801 | (fix_array_notation_expr): Likewise. | |
802 | (fix_array_notation_call_expr): Likewise. | |
803 | ||
aec17bfe JJ |
804 | 2015-11-27 Jakub Jelinek <jakub@redhat.com> |
805 | ||
806 | PR c/63326 | |
807 | * c-parser.c (c_parser_compound_statement_nostart): If | |
808 | last_label is true, use pragma_stmt instead of pragma_compound | |
809 | as second c_parser_pragma argument. | |
810 | (c_parser_omp_ordered, c_parser_omp_target_update, | |
811 | c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): Pass | |
812 | false as second argument to c_parser_skip_to_pragma_eol after | |
813 | diagnosing standalone directives used in pragma_stmt context. | |
814 | ||
688c4de0 IV |
815 | 2015-11-24 Ilya Verbin <ilya.verbin@intel.com> |
816 | ||
817 | * c-parser.c (c_parser_oacc_declare): Replace "ifdef ENABLE_OFFLOADING" | |
818 | with "if (ENABLE_OFFLOADING)". | |
819 | ||
cbd03aee DM |
820 | 2015-11-23 David Malcolm <dmalcolm@redhat.com> |
821 | ||
822 | PR objc/68438 | |
823 | * c-parser.c (c_parser_postfix_expression): Set up source ranges | |
824 | for various Objective-C constructs: Class.name syntax, | |
825 | @selector(), @protocol(), @encode(), and [] message syntax. | |
826 | ||
a87a86e1 DM |
827 | 2015-11-20 David Malcolm <dmalcolm@redhat.com> |
828 | ||
829 | PR 62314 | |
830 | * c-typeck.c (should_suggest_deref_p): New function. | |
831 | (build_component_ref): Special-case POINTER_TYPE when | |
832 | generating a "not a structure of union" error message, and | |
833 | suggest a "->" rather than a ".", providing a fix-it hint. | |
834 | ||
8ece8dfb DM |
835 | 2015-11-19 David Malcolm <dmalcolm@redhat.com> |
836 | ||
837 | * c-typeck.c (lookup_field_fuzzy): Move determination of closest | |
838 | candidate into a new function, find_closest_identifier. | |
839 | ||
433068cc MP |
840 | 2015-11-19 Marek Polacek <polacek@redhat.com> |
841 | ||
842 | PR c/68412 | |
843 | * c-typeck.c (parser_build_binary_op): Properly handle | |
844 | C_MAYBE_CONST_EXPR before calling warn_tautological_cmp. | |
845 | ||
bef08b71 DM |
846 | 2015-11-17 David Malcolm <dmalcolm@redhat.com> |
847 | ||
848 | * c-parser.c (set_c_expr_source_range): Bulletproof both | |
849 | overloaded implementations against NULL expr->value. | |
850 | (c_parser_braced_init): Set src_range for "ret" to a sane pair of | |
851 | values. | |
852 | (c_parser_unary_expression): Likewise when handling addresses of | |
853 | labels. | |
854 | (c_parser_postfix_expression): Likewise for statement expressions, | |
855 | for __FUNCTION__, __PRETTY_FUNCTION_ and __func__ keywords, for | |
856 | __builtin_va_arg, and for __builtin_offset_of. | |
857 | (c_parser_postfix_expression_after_paren_type): Initialize expr's | |
858 | src_range using the range of the braced initializer. | |
859 | (c_parser_transaction_expression): Set src_range for "ret" to a | |
860 | sane pair of values. | |
861 | ||
fff77217 KY |
862 | 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com> |
863 | ||
864 | * c-parser.c (c_finish_omp_declare_simd): Look for | |
865 | "simd" attribute as well. Update error message. | |
866 | ||
1d899da2 TS |
867 | 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> |
868 | ||
869 | * c-parser.c (c_parser_omp_declare_target): Adjust. | |
870 | ||
e4606348 JJ |
871 | 2015-11-14 Jakub Jelinek <jakub@redhat.com> |
872 | ||
873 | * c-typeck.c (c_finish_omp_clauses): Don't mark | |
874 | GOMP_MAP_FIRSTPRIVATE_POINTER decls addressable. | |
875 | ||
3e636daf MP |
876 | 2015-11-14 Marek Polacek <polacek@redhat.com> |
877 | ||
878 | * c-decl.c: Use RECORD_OR_UNION_TYPE_P throughout. | |
879 | * c-typeck.c: Likewise. | |
880 | ||
ebedc9a3 DM |
881 | 2015-11-13 David Malcolm <dmalcolm@redhat.com> |
882 | ||
883 | * c-decl.c (warn_defaults_to): Pass line_table to | |
884 | rich_location ctor. | |
885 | * c-errors.c (pedwarn_c99): Likewise. | |
886 | (pedwarn_c90): Likewise. | |
887 | * c-parser.c (set_c_expr_source_range): New functions. | |
888 | (c_token::get_range): New method. | |
889 | (c_token::get_finish): New method. | |
890 | (c_parser_expr_no_commas): Call set_c_expr_source_range on the ret | |
891 | based on the range from the start of the LHS to the end of the | |
892 | RHS. | |
893 | (c_parser_conditional_expression): Likewise, based on the range | |
894 | from the start of the cond.value to the end of exp2.value. | |
895 | (c_parser_binary_expression): Call set_c_expr_source_range on | |
896 | the stack values for TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR. | |
897 | (c_parser_cast_expression): Call set_c_expr_source_range on ret | |
898 | based on the cast_loc through to the end of the expr. | |
899 | (c_parser_unary_expression): Likewise, based on the | |
900 | op_loc through to the end of op. | |
901 | (c_parser_sizeof_expression) Likewise, based on the start of the | |
902 | sizeof token through to either the closing paren or the end of | |
903 | expr. | |
904 | (c_parser_postfix_expression): Likewise, using the token range, | |
905 | or from the open paren through to the close paren for | |
906 | parenthesized expressions. | |
907 | (c_parser_postfix_expression_after_primary): Likewise, for | |
908 | various kinds of expression. | |
909 | * c-tree.h (struct c_expr): Add field "src_range". | |
910 | (c_expr::get_start): New method. | |
911 | (c_expr::get_finish): New method. | |
912 | (set_c_expr_source_range): New decls. | |
913 | * c-typeck.c (parser_build_unary_op): Call set_c_expr_source_range | |
914 | on ret for prefix unary ops. | |
915 | (parser_build_binary_op): Likewise, running from the start of | |
916 | arg1.value through to the end of arg2.value. | |
917 | ||
ec8b536f MP |
918 | 2015-11-13 Marek Polacek <polacek@redhat.com> |
919 | ||
920 | PR c/68320 | |
921 | * c-parser.c (c_parser_for_statement): Treat unknown tokens as IDs. | |
922 | ||
277fe616 DM |
923 | 2015-11-13 David Malcolm <dmalcolm@redhat.com> |
924 | ||
925 | * c-typeck.c: Include spellcheck.h. | |
926 | (lookup_field_fuzzy_find_candidates): New function. | |
927 | (lookup_field_fuzzy): New function. | |
928 | (build_component_ref): If the field was not found, try using | |
929 | lookup_field_fuzzy and potentially offer a suggestion. | |
930 | ||
6e232ba4 JN |
931 | 2015-11-12 James Norris <jnorris@codesourcery.com> |
932 | Joseph Myers <joseph@codesourcery.com> | |
933 | ||
934 | * c-parser.c (c_parser_pragma): Handle PRAGMA_OACC_DECLARE. | |
935 | (c_parser_omp_clause_name): Handle 'device_resident' clause. | |
936 | (c_parser_oacc_data_clause): Handle PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT | |
937 | and PRAGMA_OMP_CLAUSE_LINK. | |
938 | (c_parser_oacc_all_clauses): Handle PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT | |
939 | and PRAGMA_OACC_CLAUSE_LINK. | |
940 | (OACC_DECLARE_CLAUSE_MASK): New definition. | |
941 | (c_parser_oacc_declare): New function. | |
942 | ||
9be4f715 MP |
943 | 2015-11-12 Marek Polacek <polacek@redhat.com> |
944 | ||
945 | PR c/67784 | |
946 | * c-parser.c (c_parser_for_statement): Reclassify the token in | |
947 | a correct scope. | |
948 | ||
e78bede6 MP |
949 | 2015-11-11 Marek Polacek <polacek@redhat.com> |
950 | ||
951 | PR c/68107 | |
952 | PR c++/68266 | |
953 | * c-decl.c (grokdeclarator): Call valid_array_size_p. Remove code | |
954 | checking the size of an array. | |
955 | ||
69f293c9 AM |
956 | 2015-11-11 Andrew MacLeod <amacleod@redhat.com> |
957 | ||
958 | * c-array-notation.c: Remove unused header files. | |
959 | * c-aux-info.c: Likewise. | |
960 | * c-convert.c: Likewise. | |
961 | * c-decl.c: Likewise. | |
962 | * c-errors.c: Likewise. | |
963 | * c-lang.c: Likewise. | |
964 | * c-objc-common.c: Likewise. | |
965 | * c-parser.c: Likewise. | |
966 | * c-typeck.c: Likewise. | |
967 | * gccspec.c: Likewise. | |
968 | ||
3a40d81d NS |
969 | 2015-11-09 Thomas Schwinge <thomas@codesourcery.com> |
970 | Cesar Philippidis <cesar@codesourcery.com> | |
971 | James Norris <jnorris@codesourcery.com> | |
972 | Julian Brown <julian@codesourcery.com> | |
973 | Nathan Sidwell <nathan@codesourcery.com> | |
974 | ||
975 | c/ | |
976 | * c-parser.c (c_parser_declaration_or_fndef): Add OpenACC | |
977 | routine arg. | |
978 | (c_parser_declaration_or_fndef): Call c_finish_oacc_routine. | |
979 | (c_parser_pragma): Parse 'acc routine'. | |
980 | (OACC_ROUTINE_CLAUSE_MARK): Define. | |
981 | (c_parser_oacc_routine, (c_finish_oacc_routine): New. | |
982 | ||
fc402eec AA |
983 | 2015-11-09 Andreas Arnez <arnez@linux.vnet.ibm.com> |
984 | ||
985 | PR debug/67192 | |
986 | * c-typeck.c (c_finish_loop): For unconditional loops, set the | |
987 | location of the backward-goto to the start of the loop body. | |
988 | ||
f6b0b3db AA |
989 | 2015-11-09 Andreas Arnez <arnez@linux.vnet.ibm.com> |
990 | ||
991 | PR debug/67192 | |
992 | * c-parser.c (c_parser_while_statement): Finish the loop before | |
993 | parsing ahead for misleading indentation. | |
994 | (c_parser_for_statement): Likewise. | |
995 | ||
ee45a32d EB |
996 | 2015-11-08 Eric Botcazou <ebotcazou@adacore.com> |
997 | ||
998 | * c-decl.c (finish_struct): If the structure has reverse storage | |
999 | order, rewrite the type of array fields with scalar component. Call | |
1000 | maybe_apply_pragma_scalar_storage_order on entry. | |
1001 | * c-typeck.c (build_unary_op) <ADDR_EXPR>: Remove left-overs. Issue | |
1002 | errors on bit-fields and reverse SSO here and not... | |
1003 | (c_mark_addressable): ...here. | |
1004 | (output_init_element): Adjust call to initializer_constant_valid_p. | |
1005 | (c_build_qualified_type): Propagate TYPE_REVERSE_STORAGE_ORDER. | |
1006 | ||
8a645150 DM |
1007 | 2015-11-06 David Malcolm <dmalcolm@redhat.com> |
1008 | ||
1009 | * c-decl.c (warn_defaults_to): Update for change in signature | |
1010 | of diagnostic_set_info. | |
1011 | * c-errors.c (pedwarn_c99): Likewise. | |
1012 | (pedwarn_c90): Likewise. | |
1013 | * c-objc-common.c (c_tree_printer): Update for new "caret_p" param | |
1014 | for textinfo::set_location. | |
1015 | ||
7a5e4956 CP |
1016 | 2015-11-05 Cesar Philippidis <cesar@codesourcery.com> |
1017 | Thomas Schwinge <thomas@codesourcery.com> | |
1018 | James Norris <jnorris@codesourcery.com> | |
1019 | ||
1020 | * c-parser.c (c_parser_omp_clause_name): Add support for | |
1021 | PRAGMA_OACC_CLAUSE_INDEPENDENT and PRAGMA_OACC_CLAUSE_TILE. | |
1022 | (c_parser_omp_clause_default): Add is_oacc argument. Handle | |
1023 | default(none) in OpenACC. | |
1024 | (c_parser_oacc_shape_clause): Allow pointer variables as gang static | |
1025 | arguments. | |
1026 | (c_parser_oacc_clause_tile): New function. | |
1027 | (c_parser_oacc_all_clauses): Add support for OMP_CLAUSE_DEFAULT, | |
1028 | OMP_CLAUSE_INDEPENDENT and OMP_CLAUSE_TILE. | |
1029 | (OACC_LOOP_CLAUSE_MASK): Add PRAGMA_OACC_CLAUSE_{PRIVATE,INDEPENDENT, | |
1030 | TILE}. | |
1031 | (OACC_KERNELS_MASK): Add PRAGMA_OACC_CLAUSE_DEFAULT. | |
1032 | (OACC_PARALLEL_MASK): Add PRAGMA_OACC_CLAUSE_{DEFAULT,PRIVATE, | |
1033 | FIRSTPRIVATE}. | |
1034 | (c_parser_omp_all_clauses): Update call to c_parser_omp_clause_default. | |
1035 | (c_parser_oacc_update): Update the error message for missing clauses. | |
1036 | * c-typeck.c (c_finish_omp_clauses): Add support for OMP_CLAUSE_TILE | |
1037 | and OMP_CLAUSE_INDEPENDENT. | |
1038 | ||
bfcfbfa0 MP |
1039 | 2015-11-05 Marek Polacek <polacek@redhat.com> |
1040 | ||
1041 | PR c/68090 | |
1042 | * c-parser.c (c_parser_postfix_expression_after_paren_type): Don't | |
1043 | deal with pre-evaluation on invalid types. | |
1044 | ||
e01d41e5 JJ |
1045 | 2015-11-05 Jakub Jelinek <jakub@redhat.com> |
1046 | Ilya Verbin <ilya.verbin@intel.com> | |
1047 | ||
1048 | * c-parser.c: Include context.h and gimple-expr.h. | |
1049 | (c_parser_omp_clause_schedule): Parse schedule modifiers, diagnose | |
1050 | monotonic together with nonmonotonic. | |
1051 | (c_parser_omp_for_loop): Call c_omp_check_loop_iv. Call add_stmt here. | |
1052 | (OMP_DISTRIBUTE_CLAUSE_MASK): Add lastprivate clause. | |
1053 | (c_parser_omp_target_data, c_parser_omp_target_enter_data, | |
1054 | c_parser_omp_target_exit_data): Allow GOMP_MAP_ALWAYS_POINTER. | |
1055 | (c_parser_omp_target): Likewise. Evaluate num_teams and thread_limit | |
1056 | expressions on combined target teams before the target. | |
1057 | (c_parser_omp_declare_target): If decl has "omp declare target" or | |
1058 | "omp declare target link" attribute, and cgraph or varpool node already | |
1059 | exists, then set corresponding flags. Call c_finish_omp_clauses | |
1060 | in the parenthesized extended-list syntax case. | |
1061 | * c-decl.c (c_decl_attributes): Don't diagnose block scope vars inside | |
1062 | declare target. | |
1063 | * c-typeck.c (handle_omp_array_sections_1): Allow non-zero low-bound | |
1064 | on OMP_CLAUSE_REDUCTION array sections. | |
1065 | (handle_omp_array_sections): Encode low-bound into the MEM_REF, either | |
1066 | into the constant offset, or for variable low-bound using | |
1067 | POINTER_PLUS_EXPR. For structure element based array sections use | |
1068 | GOMP_MAP_ALWAYS_POINTER instead of GOMP_MAP_FIRSTPRIVATE_POINTER. | |
1069 | (c_finish_omp_clauses): Drop generic_field_head, structure | |
1070 | elements are now always mapped even as array section bases, | |
1071 | diagnose same var in data sharing and mapping clauses. Diagnose if | |
1072 | linear step on declare simd is neither a constant nor a uniform | |
1073 | parameter. Look through POINTER_PLUS_EXPR for array section | |
1074 | reductions. Diagnose the same var or function appearing multiple | |
1075 | times on the same directive. Fix up wording for the to clause if t | |
1076 | is neither a FUNCTION_DECL nor a VAR_DECL. Diagnose nonmonotonic | |
1077 | modifier on kinds other than dynamic or guided or nonmonotonic | |
1078 | modifier together with ordered clause. | |
1079 | ||
4bf9e5a8 TS |
1080 | 2015-11-03 Thomas Schwinge <thomas@codesourcery.com> |
1081 | Chung-Lin Tang <cltang@codesourcery.com> | |
1082 | ||
1083 | * c-parser.c (c_parser_omp_construct): Handle PRAGMA_OACC_ATOMIC. | |
1084 | ||
2adfab87 AM |
1085 | 2015-10-29 Andrew MacLeod <amacleod@redhat.com> |
1086 | ||
1087 | * c-array-notation.c: Reorder #include's and remove duplicates. | |
1088 | * c-aux-info.c: Likewise. | |
1089 | * c-convert.c: Likewise. | |
1090 | * c-decl.c: Likewise. | |
1091 | * c-errors.c: Likewise. | |
1092 | * c-lang.c: Likewise. | |
1093 | * c-objc-common.c: Likewise. | |
1094 | * c-parser.c: Likewise. | |
1095 | * c-typeck.c: Likewise. | |
1096 | ||
e922069e JW |
1097 | 2015-10-26 Jim Wilson <jim.wilson@linaro.org> |
1098 | ||
1099 | PR debug/66068 | |
1100 | * c-typeck.c (c_build_qualified_type): Clear C_TYPE_INCOMPLETE_VARS | |
1101 | after calling build_qualified_type. | |
1102 | ||
765dd391 CP |
1103 | 2015-10-27 Cesar Philippidis <cesar@codesourcery.com> |
1104 | Thomas Schwinge <thomas@codesourcery.com> | |
1105 | James Norris <jnorris@codesourcery.com> | |
1106 | Joseph Myers <joseph@codesourcery.com> | |
1107 | Julian Brown <julian@codesourcery.com> | |
1108 | Bernd Schmidt <bschmidt@redhat.com> | |
1109 | ||
1110 | * c-parser.c (c_parser_oacc_shape_clause): New. | |
1111 | (c_parser_oacc_simple_clause): New. | |
1112 | (c_parser_oacc_all_clauses): Add auto, gang, seq, vector, worker. | |
1113 | (OACC_LOOP_CLAUSE_MASK): Add gang, worker, vector, auto, seq. | |
1114 | ||
88bae6f4 TS |
1115 | 2015-10-27 Thomas Schwinge <thomas@codesourcery.com> |
1116 | James Norris <jnorris@codesourcery.com> | |
1117 | Cesar Philippidis <cesar@codesourcery.com> | |
1118 | ||
1119 | PR c/64765 | |
1120 | PR c/64880 | |
1121 | * c-parser.c (c_parser_oacc_loop): Add mask, cclauses formal | |
1122 | parameters, and handle these. Adjust all users. | |
1123 | (c_parser_oacc_kernels, c_parser_oacc_parallel): Merge functions | |
1124 | into... | |
1125 | (c_parser_oacc_kernels_parallel): ... this new function. Adjust | |
1126 | all users. | |
1127 | * c-tree.h (c_finish_oacc_parallel, c_finish_oacc_kernels): Don't | |
1128 | declare functions. | |
1129 | (c_finish_omp_construct): Declare function. | |
1130 | * c-typeck.c (c_finish_oacc_parallel, c_finish_oacc_kernels): | |
1131 | Merge functions into... | |
1132 | (c_finish_omp_construct): ... this new function. | |
1133 | ||
a8fc2579 RB |
1134 | 2015-10-22 Richard Biener <rguenther@suse.de> |
1135 | ||
1136 | * c-typeck.c (c_finish_omp_clauses): Properly convert operands | |
1137 | before folding a MINUS_EXPR. | |
1138 | ||
e9122ef6 MP |
1139 | 2015-10-21 Marek Polacek <polacek@redhat.com> |
1140 | ||
1141 | PR c/68024 | |
1142 | * c-decl.c (start_function): Warn about vararg functions without | |
1143 | a prototype. | |
1144 | ||
9f47c7e5 IE |
1145 | 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com> |
1146 | ||
1147 | * c-typeck.c (build_conditional_expr): Use boolean vector | |
1148 | type for vector comparison. | |
1149 | (build_vec_cmp): New. | |
1150 | (build_binary_op): Use build_vec_cmp for comparison. | |
1151 | ||
fa60eeb9 MP |
1152 | 2015-10-20 Marek Polacek <polacek@redhat.com> |
1153 | ||
1154 | * c-parser.c (is_cilkplus_vector_p): Don't define here. | |
1155 | ||
2c7020eb MP |
1156 | 2015-10-20 Marek Polacek <polacek@redhat.com> |
1157 | ||
1158 | PR c/67964 | |
1159 | * c-parser.c (c_parser_attributes): Break out of the loop if the | |
1160 | token after an attribute isn't a comma. | |
1161 | ||
d9a6bd32 JJ |
1162 | 2015-10-13 Jakub Jelinek <jakub@redhat.com> |
1163 | Aldy Hernandez <aldyh@redhat.com> | |
1164 | ||
1165 | * c-parser.c (c_parser_pragma): Handle PRAGMA_OMP_ORDERED here. | |
1166 | (c_parser_omp_clause_name): Handle OpenMP 4.5 clauses. | |
1167 | (c_parser_omp_variable_list): Handle structure elements for | |
1168 | map, to and from clauses. Handle array sections in reduction | |
1169 | clause. Formatting fixes. | |
1170 | (c_parser_omp_clause_if): Add IS_OMP argument, handle parsing of | |
1171 | if clause modifiers. | |
1172 | (c_parser_omp_clause_num_tasks, c_parser_omp_clause_grainsize, | |
1173 | c_parser_omp_clause_priority, c_parser_omp_clause_hint, | |
1174 | c_parser_omp_clause_defaultmap, c_parser_omp_clause_use_device_ptr, | |
1175 | c_parser_omp_clause_is_device_ptr): New functions. | |
1176 | (c_parser_omp_clause_ordered): Parse optional parameter. | |
1177 | (c_parser_omp_clause_reduction): Handle array reductions. | |
1178 | (c_parser_omp_clause_schedule): Parse optional simd modifier. | |
1179 | (c_parser_omp_clause_nogroup, c_parser_omp_clause_orderedkind): New | |
1180 | functions. | |
1181 | (c_parser_omp_clause_linear): Parse linear clause modifiers. | |
1182 | (c_parser_omp_clause_depend_sink): New function. | |
1183 | (c_parser_omp_clause_depend): Parse source/sink depend kinds. | |
1184 | (c_parser_omp_clause_map): Parse release/delete map kinds and | |
1185 | optional always modifier. | |
1186 | (c_parser_oacc_all_clauses): Adjust c_parser_omp_clause_if | |
1187 | and c_finish_omp_clauses callers. | |
1188 | (c_parser_omp_all_clauses): Likewise. Parse OpenMP 4.5 clauses. | |
1189 | Parse "to" as OMP_CLAUSE_TO_DECLARE if on declare target directive. | |
1190 | (c_parser_oacc_cache): Adjust c_finish_omp_clauses caller. | |
1191 | (OMP_CRITICAL_CLAUSE_MASK): Define. | |
1192 | (c_parser_omp_critical): Parse critical clauses. | |
1193 | (c_parser_omp_for_loop): Handle doacross loops, adjust | |
1194 | c_finish_omp_for and c_finish_omp_clauses callers. | |
1195 | (OMP_SIMD_CLAUSE_MASK): Add simdlen clause. | |
1196 | (c_parser_omp_simd): Allow ordered clause if it has no parameter. | |
1197 | (OMP_FOR_CLAUSE_MASK): Add linear clause. | |
1198 | (c_parser_omp_for): Disallow ordered clause when combined with | |
1199 | distribute. Disallow linear clause when combined with distribute | |
1200 | and not combined with simd. | |
1201 | (OMP_ORDERED_CLAUSE_MASK, OMP_ORDERED_DEPEND_CLAUSE_MASK): Define. | |
1202 | (c_parser_omp_ordered): Add CONTEXT argument, remove LOC argument, | |
1203 | parse clauses and if depend clause is found, don't parse a body. | |
1204 | (c_parser_omp_parallel): Disallow copyin clause on target parallel. | |
1205 | Allow target parallel without for after it. | |
1206 | (OMP_TASK_CLAUSE_MASK): Add priority clause. | |
1207 | (OMP_TARGET_DATA_CLAUSE_MASK): Add use_device_ptr clause. | |
1208 | (c_parser_omp_target_data): Diagnose no map clauses or clauses with | |
1209 | invalid kinds. | |
1210 | (OMP_TARGET_UPDATE_CLAUSE_MASK): Add depend and nowait clauses. | |
1211 | (OMP_TARGET_ENTER_DATA_CLAUSE_MASK, | |
1212 | OMP_TARGET_EXIT_DATA_CLAUSE_MASK): Define. | |
1213 | (c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): New | |
1214 | functions. | |
1215 | (OMP_TARGET_CLAUSE_MASK): Add depend, nowait, private, firstprivate, | |
1216 | defaultmap and is_device_ptr clauses. | |
1217 | (c_parser_omp_target): Parse target parallel and target simd. Set | |
1218 | OMP_TARGET_COMBINED on combined constructs. Parse target enter data | |
1219 | and target exit data. Diagnose invalid map kinds. | |
1220 | (OMP_DECLARE_TARGET_CLAUSE_MASK): Define. | |
1221 | (c_parser_omp_declare_target): Parse OpenMP 4.5 forms of this | |
1222 | construct. | |
1223 | (c_parser_omp_declare_reduction): Use STRIP_NOPS when checking for | |
1224 | &omp_priv. | |
1225 | (OMP_TASKLOOP_CLAUSE_MASK): Define. | |
1226 | (c_parser_omp_taskloop): New function. | |
1227 | (c_parser_omp_construct): Don't handle PRAGMA_OMP_ORDERED here, | |
1228 | handle PRAGMA_OMP_TASKLOOP. | |
1229 | (c_parser_cilk_for): Adjust c_finish_omp_clauses callers. | |
1230 | * c-tree.h (c_finish_omp_clauses): Add two new arguments. | |
1231 | * c-typeck.c (handle_omp_array_sections_1): Fix comment typo. | |
1232 | Add IS_OMP argument, handle structure element bases, diagnose | |
1233 | bitfields, pass IS_OMP recursively, diagnose known zero length | |
1234 | array sections in depend clauses, handle array sections in reduction | |
1235 | clause, diagnose negative length even for pointers. | |
1236 | (handle_omp_array_sections): Add IS_OMP argument, use auto_vec for | |
1237 | types, pass IS_OMP down to handle_omp_array_sections_1, handle | |
1238 | array sections in reduction clause, set | |
1239 | OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION if map could be zero | |
1240 | length array section, use GOMP_MAP_FIRSTPRIVATE_POINTER for IS_OMP. | |
1241 | (c_finish_omp_clauses): Add IS_OMP and DECLARE_SIMD arguments. | |
1242 | Handle new OpenMP 4.5 clauses and new restrictions for the old ones. | |
1243 | ||
21ba0cea MP |
1244 | 2015-10-06 Marek Polacek <polacek@redhat.com> |
1245 | ||
1246 | * c-parser.c (c_parser_statement_after_labels): Use | |
1247 | protected_set_expr_location. | |
1248 | (c_parser_omp_clause_num_gangs): Likewise. | |
1249 | (c_parser_omp_clause_num_threads): Likewise. | |
1250 | (c_parser_omp_clause_num_workers): Likewise. | |
1251 | (c_parser_omp_clause_vector_length): Likewise. | |
1252 | (c_parser_omp_clause_num_teams): Likewise. | |
1253 | (c_parser_omp_clause_thread_limit): Likewise. | |
1254 | * c-typeck.c (build_c_cast): Likewise. | |
1255 | (c_cast_expr): Likewise. | |
1256 | ||
624d31fe RS |
1257 | 2015-10-05 Richard Sandiford <richard.sandiford@arm.com> |
1258 | ||
1259 | * c-typeck.c (c_tree_equal): Use real_equal instead of | |
1260 | REAL_VALUES_EQUAL. | |
1261 | ||
b8fd7909 JM |
1262 | 2015-10-04 Jason Merrill <jason@redhat.com> |
1263 | ||
1264 | * c-parser.c (c_lex_one_token): Handle @synchronized. | |
1265 | * c-decl.c (match_builtin_function_types): A declaration of a built-in | |
1266 | can change whether the function is transaction_safe. | |
1267 | ||
1c7485af MP |
1268 | 2015-10-02 Marek Polacek <polacek@redhat.com> |
1269 | ||
1270 | PR c/67730 | |
1271 | * c-typeck.c (convert_for_assignment): Use the expansion point | |
1272 | location throughout. | |
1273 | ||
3e3b8d63 MP |
1274 | 2015-10-02 Marek Polacek <polacek@redhat.com> |
1275 | ||
1276 | PR c/64249 | |
1277 | * c-parser.c (c_parser_statement_after_labels): Add CHAIN parameter | |
1278 | and pass it down to c_parser_if_statement. | |
1279 | (c_parser_else_body): Add CHAIN parameter and pass it down to | |
1280 | c_parser_statement_after_labels. | |
1281 | (c_parser_if_statement): Add CHAIN parameter. Add code to warn about | |
1282 | duplicated if-else-if conditions. | |
1283 | ||
aabef2de MP |
1284 | 2015-10-01 Marek Polacek <polacek@redhat.com> |
1285 | ||
1286 | * c-typeck.c (convert_for_assignment): Improve commentary. | |
1287 | ||
de8ddd5f MP |
1288 | 2015-09-30 Marek Polacek <polacek@redhat.com> |
1289 | ||
1290 | PR c/67730 | |
1291 | * c-typeck.c (c_finish_return): Use the expansion point location for | |
1292 | certain "return with value" warnings. | |
1293 | ||
c4914de6 MLI |
1294 | 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1295 | ||
1296 | * c-parser.c (pragma_lex): Add loc argument. | |
1297 | ||
0e36f5c7 MP |
1298 | 2015-09-15 Marek Polacek <polacek@redhat.com> |
1299 | ||
1300 | PR c/67580 | |
1301 | * c-decl.c (tag_exists_p): New function. | |
1302 | * c-parser.c (c_parser_declaration_or_fndef): Give a hint when | |
1303 | struct/union/enum keywords are missing. | |
1304 | * c-tree.h (tag_exists_p): Declare. | |
1305 | ||
2f3bb934 MP |
1306 | 2015-09-15 Marek Polacek <polacek@redhat.com> |
1307 | ||
1308 | * c-decl.c (lookup_label): Return NULL_TREE instead of 0. | |
1309 | (lookup_tag): Change the type of THISLEVEL_ONLY to bool. | |
1310 | Return NULL_TREE instead of 0. | |
1311 | (lookup_name): Return NULL_TREE instead of 0. | |
1312 | (lookup_name_in_scope): Likewise. | |
1313 | (shadow_tag_warned): Use true instead of 1 and NULL_TREE instead of 0. | |
1314 | (parser_xref_tag): Use false instead of 0. | |
1315 | (start_struct): Use true instead of 1. | |
1316 | (start_enum): Use true instead of 1 and NULL_TREE instead of 0. | |
1317 | ||
aa256c4a MP |
1318 | 2015-09-14 Marek Polacek <polacek@redhat.com> |
1319 | ||
1320 | * c-typeck.c (set_nonincremental_init_from_string): Use | |
1321 | HOST_WIDE_INT_M1U when shifting a negative value. | |
1322 | ||
dbb68221 MW |
1323 | 2015-09-09 Mark Wielaard <mjw@redhat.com> |
1324 | ||
1325 | * c-typeck.c (build_binary_op): Check and warn when nonnull arg | |
1326 | parm against NULL. | |
1327 | ||
a8a098ac JJ |
1328 | 2015-09-10 Jakub Jelinek <jakub@redhat.com> |
1329 | ||
1330 | PR c/67502 | |
1331 | * c-parser.c (c_parser_omp_for_loop): Emit DECL_EXPR stmts | |
1332 | into OMP_FOR_PRE_BODY rather than before the loop. | |
1333 | ||
f4b189d5 JJ |
1334 | 2015-09-09 Jakub Jelinek <jakub@redhat.com> |
1335 | ||
0bb99c11 JJ |
1336 | PR c/67501 |
1337 | * c-parser.c (c_parser_oacc_all_clauses, | |
1338 | c_parser_omp_all_clauses): Remove invalid clause from | |
1339 | list of clauses even if parser->error is set. | |
1340 | ||
fce5e5e3 JJ |
1341 | PR c/67500 |
1342 | * c-parser.c (c_parser_omp_clause_aligned, | |
1343 | c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen): Fix up | |
1344 | test for errors. | |
1345 | * c-decl.c (temp_pop_parm_decls): Allow b->decl equal to | |
1346 | error_mark_node. | |
1347 | ||
f4b189d5 JJ |
1348 | PR c/67495 |
1349 | * c-parser.c (c_parser_omp_atomic): Use c_parser_cast_expression | |
1350 | instead of c_parser_unary_expression. If the result is !lvalue_p, | |
1351 | wrap the result of c_fully_fold into NON_LVALUE_EXPR. | |
1352 | ||
b2aaf235 MP |
1353 | 2015-09-04 Marek Polacek <polacek@redhat.com> |
1354 | ||
1355 | PR sanitizer/67279 | |
1356 | * c-typeck.c (build_binary_op): Don't instrument static initializers. | |
1357 | ||
1807ffc1 MS |
1358 | 2015-09-03 Martin Sebor <msebor@redhat.com> |
1359 | ||
1360 | PR c/66516 | |
8b652e65 JJ |
1361 | * c-typeck.c (convert_arguments, parser_build_unary_op, |
1362 | build_conditional_expr, c_cast_expr, convert_for_assignment, | |
1363 | build_binary_op, _objc_common_truthvalue_conversion): Call | |
1807ffc1 MS |
1364 | reject_gcc_builtin. |
1365 | (c_decl_implicit): Define. | |
1366 | ||
d04ff417 MP |
1367 | 2015-09-02 Marek Polacek <polacek@redhat.com> |
1368 | ||
1369 | PR c/67432 | |
1370 | * c-parser.c (c_parser_enum_specifier): Give a better error for | |
1371 | an empty enum. | |
1372 | ||
a79683d5 TS |
1373 | 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org> |
1374 | ||
1375 | * c-aux-info.c, c-parser.c, c-tree.h: Remove useless typedefs. | |
1376 | ||
191a6b94 MP |
1377 | 2015-08-12 Marek Polacek <polacek@redhat.com> |
1378 | ||
1379 | * c-decl.c (grokdeclarator): Call error_at instead of error and pass | |
1380 | LOC to it. | |
1381 | ||
420a9d9b MP |
1382 | 2015-08-03 Marek Polacek <polacek@redhat.com> |
1383 | ||
1384 | PR c/67088 | |
1385 | * c-decl.c (check_bitfield_type_and_width): Add location parameter. | |
1386 | Use it. | |
1387 | (grokdeclarator): Pass LOC down to check_bitfield_type_and_width. | |
1388 | ||
992118a1 PP |
1389 | 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org> |
1390 | ||
1391 | * c-parser.c (c_parser_if_body): Take token_indent_info | |
1392 | argument. Call warn_for_misleading_indentation even when the | |
1393 | body is a semicolon. Extract token_indent_infos corresponding | |
1394 | to the guard, body and next tokens. Adjust call to | |
1395 | warn_for_misleading_indentation accordingly. | |
1396 | (c_parser_else_body): Likewise. | |
1397 | (c_parser_if_statement): Likewise. | |
1398 | (c_parser_while_statement): Likewise. | |
1399 | (c_parser_for_statement): Likewise. | |
1400 | ||
46308474 LFSM |
1401 | 2015-07-28 Luis Felipe Strano Moraes <luis.strano@gmail.com> |
1402 | Manuel López-Ibáñez <manu@gcc.gnu.org> | |
1403 | ||
1404 | * c-decl.c (get_parm_info): Remove static var. Update warning | |
1405 | message. | |
1406 | ||
05b28fd6 MP |
1407 | 2015-07-27 Marek Polacek <polacek@redhat.com> |
1408 | ||
1409 | PR c++/66555 | |
1410 | PR c/54979 | |
1411 | * c-typeck.c (parser_build_binary_op): Call warn_tautological_cmp. | |
1412 | ||
451b5e48 MP |
1413 | 2015-07-20 Marek Polacek <polacek@redhat.com> |
1414 | ||
1415 | PR c++/55095 | |
1416 | * c-typeck.c (digest_init): Pass OPT_Wpedantic to pedwarn_init. | |
1417 | (build_binary_op): Warn about left shift overflows. | |
1418 | ||
1916bcb5 AM |
1419 | 2015-07-09 Andrew MacLeod <amacleod@redhat.com> |
1420 | ||
1421 | * c-array-notation.c: Adjust includes for flags.h changes. | |
1422 | * c-objc-common.c: Likewise. | |
1423 | ||
c7131fb2 AM |
1424 | 2015-07-07 Andrew MacLeod <amacleod@redhat.com> |
1425 | ||
1426 | * c-array-notation.c: Adjust includes. | |
1427 | * c-aux-info.c: Likewise. | |
1428 | * c-convert.c: Likewise. | |
1429 | * c-decl.c: Likewise. | |
1430 | * c-errors.c: Likewise. | |
1431 | * c-lang.c: Likewise. | |
1432 | * c-objc-common.c: Likewise. | |
1433 | * c-parser.c: Likewise. | |
1434 | * c-typeck.c: Likewise. | |
1435 | ||
da2e71c9 MLI |
1436 | 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1437 | ||
1438 | PR fortran/66605 | |
1439 | * c-decl.c (finish_function): Call do_warn_unused_parameter. | |
1440 | ||
b155cfd9 MP |
1441 | 2015-06-29 Marek Polacek <polacek@redhat.com> |
1442 | ||
1443 | PR c/66322 | |
1444 | * c-typeck.c (struct c_switch): Add BOOL_COND_P and OUTSIDE_RANGE_P. | |
1445 | (c_start_case): Set BOOL_COND_P and OUTSIDE_RANGE_P. Don't warn | |
1446 | about -Wswitch-bool here. | |
1447 | (do_case): Update c_add_case_label call. | |
1448 | (c_finish_case): Update c_do_switch_warnings call. | |
1449 | ||
31521951 MP |
1450 | 2015-06-27 Marek Polacek <polacek@redhat.com> |
1451 | ||
1452 | * c-typeck.c: Use VECTOR_TYPE_P throughout. | |
1453 | ||
22d03525 MP |
1454 | 2015-06-26 Marek Polacek <polacek@redhat.com> |
1455 | ||
1456 | * c-array-notation.c (fix_builtin_array_notation_fn): Use | |
1457 | INDIRECT_REF_P. | |
1458 | * c-typeck.c (array_to_pointer_conversion): Likewise. | |
1459 | (build_unary_op): Likewise. | |
1460 | (c_finish_return): Likewise. | |
1461 | ||
f0889939 AM |
1462 | 2015-06-25 Andrew MacLeod <amacleod@redhat.com> |
1463 | ||
1464 | * c-decl.c: Remove ipa-ref.h and plugin-api.h from include list. | |
1465 | * c-parser.c: Likewise. | |
1466 | ||
8d67ee55 RS |
1467 | 2015-06-25 Richard Sandiford <richard.sandiford@arm.com> |
1468 | ||
1469 | * c-decl.c (detect_field_duplicates_hash): Use nofree_ptr_hash | |
1470 | instead of pointer_hash. | |
1471 | (detect_field_duplicates): Likewise. | |
1472 | ||
0ae9bd27 MP |
1473 | 2015-06-25 Marek Polacek <polacek@redhat.com> |
1474 | ||
1475 | * c-array-notation.c: Use VAR_P throughout. | |
1476 | * c-decl.c: Likewise. | |
1477 | * c-objc-common.c: Likewise. | |
1478 | * c-parser.c: Likewise. | |
1479 | * c-typeck.c: Likewise. | |
1480 | ||
62f9079a MP |
1481 | 2015-06-25 Marek Polacek <polacek@redhat.com> |
1482 | ||
1483 | * c-decl.c: Use is_global_var throughout. | |
1484 | * c-parser.c: Likewise. | |
1485 | * c-typeck.c: Likewise. | |
1486 | ||
abb226c9 AM |
1487 | 2015-06-17 Andrew MacLeod <amacleod@redhat.com> |
1488 | ||
1489 | * c-array-notation.c: Do not include input.h, line-map.h or is-a.h. | |
1490 | * c-aux-info.c: Likewise. | |
1491 | * c-convert.c: Likewise. | |
1492 | * c-decl.c: Likewise. | |
1493 | * c-errors.c: Likewise. | |
1494 | * c-lang.c: Likewise. | |
1495 | * c-objc-common.c: Likewise. | |
1496 | * c-parser.c: Likewise. | |
1497 | * c-typeck.c: Likewise. | |
1498 | ||
8cbababc JH |
1499 | 2015-06-11 Jan Hubicka <hubicka@ucw.cz> |
1500 | ||
1501 | PR middle-end/66325 | |
1502 | * c-decl.c (start_enum): Set TYPE_PACKED consistently among type | |
1503 | variants. | |
1504 | ||
a0349665 PMR |
1505 | 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com> |
1506 | ||
1507 | * c-decl.c (pop_scope): Register the main translation unit | |
1508 | through the new debug hook. | |
1509 | ||
13fdf2e2 AM |
1510 | 2015-06-08 Andrew MacLeod <amacleod@redhat.com> |
1511 | ||
1512 | * c-array-notation.c : Adjust include files. | |
1513 | * c-aux-info.c : Likewise. | |
1514 | * c-convert.c : Likewise. | |
1515 | * c-decl.c : Likewise. | |
1516 | * c-errors.c : Likewise. | |
1517 | * c-lang.c : Likewise. | |
1518 | * c-lang.h : Likewise. | |
1519 | * c-objc-common.c : Likewise. | |
1520 | * c-parser.c : Likewise. | |
1521 | * c-typeck.c : Likewise. | |
1522 | ||
d7438551 AH |
1523 | 2015-06-05 Aldy Hernandez <aldyh@redhat.com> |
1524 | ||
1525 | * c-decl.c (finish_struct): Save C_TYPE_INCOMPLETE_VARS and | |
1526 | immediately clobber it. | |
1527 | (c_write_global_declarations_1): Remove call to | |
1528 | check_global_declaration_1. | |
1529 | (c_write_global_declarations_2): Remove. | |
1530 | (c_write_final_cleanups): Rename from c_write_global_declarations. | |
1531 | Remove call to finalize_compilation_unit. | |
1532 | Remove calls to debugging hooks. | |
1533 | * c-objc-common.c: Adjust comment for c_warn_unused_global_decl. | |
1534 | * c-objc-common.h: Remove LANG_HOOKS_WRITE_GLOBALS. | |
1535 | * c-tree.h: Remove c_write_global_declarations. | |
1536 | ||
ecb9f223 AM |
1537 | 2015-06-04 Andrew MacLeod <amacleod@redhat.com> |
1538 | ||
1539 | * c-array-notation.c: Adjust includes for restructured coretypes.h. | |
1540 | * c-aux-info.c: Likewise. | |
1541 | * c-convert.c: Likewise. | |
1542 | * c-decl.c: Likewise. | |
1543 | * c-errors.c: Likewise. | |
1544 | * c-lang.c: Likewise. | |
1545 | * c-objc-common.c: Likewise. | |
1546 | * c-parser.c: Likewise. | |
1547 | * c-typeck.c: Likewise. | |
1548 | ||
9482b620 MP |
1549 | 2015-06-04 Marek Polacek <polacek@redhat.com> |
1550 | ||
1551 | PR c/66341 | |
1552 | * c-typeck.c (build_c_cast): Wrap VALUE into NON_LVALUE_EXPR if | |
1553 | it is a lvalue. | |
1554 | ||
bc51ace3 PK |
1555 | 2015-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
1556 | ||
1557 | * c-decl.c (warn_cxx_compat_finish_struct): New parameters code, record_loc. | |
1558 | Warn for empty struct. | |
1559 | (finish_struct): Pass TREE_CODE(t) and loc to warn_cxx_compat_finish_struct. | |
1560 | ||
ea5b45b6 AT |
1561 | 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com> |
1562 | ||
1563 | * c-decl.c (start_function): Call plugin before parsing. | |
1564 | (finish_function): Call plugin after parsing. | |
1565 | ||
c2d47482 PK |
1566 | 2015-06-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
1567 | ||
1568 | PR c/49551 | |
1569 | * c-decl.c (merge_decls): Merge DECL_COMMON. | |
1570 | ||
a95492ab JW |
1571 | 2015-05-22 Jim Wilson <jim.wilson@linaro.org> |
1572 | ||
1573 | * Make-lang.in (check_gcc_pallelize): Define. | |
1574 | ||
fd5c817a MP |
1575 | 2015-05-22 Marek Polacek <polacek@redhat.com> |
1576 | ||
1577 | PR c/47043 | |
1578 | * c-parser.c (c_parser_enum_specifier): Parse and apply enumerator | |
1579 | attributes. | |
1580 | ||
c7b70a3c MP |
1581 | 2015-05-21 Marek Polacek <polacek@redhat.com> |
1582 | ||
1583 | * c-typeck.c (inform_declaration): Use DECL_IS_BUILTIN instead of | |
1584 | DECL_BUILT_IN. | |
1585 | ||
21b634ae MP |
1586 | 2015-05-20 Marek Polacek <polacek@redhat.com> |
1587 | ||
1588 | * c-decl.c: Use VAR_OR_FUNCTION_DECL_P throughout. | |
1589 | * c-typeck.c: Likewise. | |
1590 | ||
296a8c2f MP |
1591 | 2015-05-19 Marek Polacek <polacek@redhat.com> |
1592 | ||
1593 | * c-typeck.c (start_init): Use AGGREGATE_TYPE_P. | |
1594 | ||
41b37d5e JJ |
1595 | 2015-05-19 Jakub Jelinek <jakub@redhat.com> |
1596 | ||
1597 | PR middle-end/66199 | |
1598 | * c-parser.c (c_parser_omp_for_loop): Don't add | |
1599 | OMP_CLAUSE_SHARED to OMP_PARALLEL_CLAUSES when moving | |
1600 | OMP_CLAUSE_LASTPRIVATE clause to OMP_FOR_CLAUSES. | |
1601 | (c_parser_omp_teams): Set OMP_TEAMS_COMBINED for combined | |
1602 | constructs. | |
1603 | ||
fab27f52 MM |
1604 | 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com> |
1605 | ||
1606 | * c-typeck.c (build_array_ref): Use std::swap instead of explicit | |
296a8c2f | 1607 | swaps. |
fab27f52 | 1608 | |
40de31cf MLI |
1609 | 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1610 | ||
1611 | PR fortran/44054 | |
1612 | * c-objc-common.c (c_tree_printer): Replace locus pointer with | |
1613 | accessor function. | |
1614 | ||
3aa3c9fc MP |
1615 | 2015-05-14 Marek Polacek <polacek@redhat.com> |
1616 | ||
1617 | PR c/66066 | |
1618 | PR c/66127 | |
1619 | * c-typeck.c (digest_init): Call pedwarn_init with OPT_Wpedantic | |
1620 | rather than with 0. | |
1621 | ||
c3388e62 DM |
1622 | 2015-05-12 David Malcolm <dmalcolm@redhat.com> |
1623 | ||
1624 | * c-parser.c (c_parser_if_body): Add param "if_loc", use it | |
1625 | to add a call to warn_for_misleading_indentation. | |
1626 | (c_parser_else_body): Likewise, adding param "else_loc". | |
1627 | (c_parser_if_statement): Check for misleading indentation. | |
1628 | (c_parser_while_statement): Likewise. | |
1629 | (c_parser_for_statement): Likewise. | |
1630 | ||
755e528f MP |
1631 | 2015-05-08 Marek Polacek <polacek@redhat.com> |
1632 | ||
1633 | PR c/64918 | |
1634 | * c-typeck.c (add_pending_init): Use OPT_Woverride_init_side_effects. | |
1635 | (output_init_element): Likewise. | |
1636 | ||
0173bd2a MP |
1637 | 2015-05-07 Marek Polacek <polacek@redhat.com> |
1638 | ||
1639 | PR c/65179 | |
1640 | * c-typeck.c (build_binary_op): Warn when left shifting a negative | |
1641 | value. | |
1642 | ||
9babc352 MP |
1643 | 2015-04-30 Marek Polacek <polacek@redhat.com> |
1644 | ||
1645 | * c-typeck.c (set_init_label): Call error_at instead of error and | |
1646 | pass LOC to it. | |
1647 | ||
ac9f18db MP |
1648 | * c-typeck.c (c_incomplete_type_error): Refactor to use %qT. Print |
1649 | the type of a decl. | |
1650 | ||
ec3fba51 MP |
1651 | * c-typeck.c (c_build_va_arg): Clarify the error message. |
1652 | ||
b811915d TS |
1653 | 2015-04-29 Thomas Schwinge <thomas@codesourcery.com> |
1654 | ||
1655 | * c-parser.c (c_parser_oacc_enter_exit_data): Use | |
1656 | OMP_STANDALONE_CLAUSES. | |
1657 | ||
f3075008 MP |
1658 | 2015-04-28 Marek Polacek <polacek@redhat.com> |
1659 | ||
1660 | * c-parser.c (c_parser_binary_expression): Remove duplicate line. | |
1661 | ||
4e81b788 MP |
1662 | 2015-04-28 Marek Polacek <polacek@redhat.com> |
1663 | ||
1664 | PR c/65901 | |
1665 | * c-typeck.c (c_build_va_arg): Require TYPE be a complete type. | |
1666 | ||
6c1db78e MP |
1667 | 2015-04-25 Marek Polacek <polacek@redhat.com> |
1668 | ||
1669 | PR c/52085 | |
1670 | * c-decl.c (finish_enum): Copy over TYPE_ALIGN. Also check for "mode" | |
1671 | attribute. | |
1672 | ||
5c4abbb8 MP |
1673 | 2015-04-23 Marek Polacek <polacek@redhat.com> |
1674 | ||
1675 | PR c/65345 | |
1676 | * c-decl.c (set_labels_context_r): New function. | |
1677 | (store_parm_decls): Call it via walk_tree_without_duplicates. | |
1678 | * c-typeck.c (convert_lvalue_to_rvalue): Use create_tmp_var_raw | |
1679 | instead of create_tmp_var. Build TARGET_EXPR instead of | |
1680 | COMPOUND_EXPR. | |
1681 | (build_atomic_assign): Use create_tmp_var_raw instead of | |
1682 | create_tmp_var. Build TARGET_EXPRs instead of MODIFY_EXPR. | |
1683 | ||
06aca1d5 IV |
1684 | 2015-04-20 Ilya Verbin <ilya.verbin@intel.com> |
1685 | ||
1686 | * c-parser.c (c_parser_oacc_enter_exit_data): Remove excess semicolon. | |
1687 | (c_parser_omp_target_update): Add missed %> to error_at (). | |
1688 | ||
8fba1830 BRF |
1689 | 2015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org> |
1690 | ||
1691 | PR target/55143 | |
1692 | * c-decl.c (c_default_pointer_mode): Remove definition. | |
1693 | * c-tree.h (c_default_pointer_mode): Remove declaration. | |
1694 | ||
62021f64 TB |
1695 | 2015-03-27 Tobias Burnus <burnus@net-b.de> |
1696 | ||
1697 | PR c/65586 | |
1698 | * c-parser.c (c_parser_skip_to_pragma_eol): Optionally, don't | |
1699 | error out. | |
1700 | (c_parser_omp_for, c_parser_omp_parallel, c_parser_omp_distribute, | |
1701 | c_parser_omp_teams, c_parser_omp_target, c_parser_omp_declare): | |
1702 | Update calls to not error for skipped omp pragmas with -fopenmp-simd. | |
1703 | ||
9b65e171 JJ |
1704 | 2015-03-19 Jakub Jelinek <jakub@redhat.com> |
1705 | ||
1706 | * c-decl.c (c_decl_attributes): Also add "omp declare target" | |
1707 | attribute for DECL_EXTERNAL VAR_DECLs. | |
1708 | ||
17958621 JJ |
1709 | 2015-03-11 Jakub Jelinek <jakub@redhat.com> |
1710 | ||
1711 | * c-parser.c (c_parse_init): Don't call xstrdup on get_identifier | |
1712 | argument. | |
1713 | ||
7ccb1a11 JJ |
1714 | 2015-03-10 Jakub Jelinek <jakub@redhat.com> |
1715 | ||
1716 | PR c/65120 | |
1717 | * c-typeck.c (parser_build_binary_op): Check for tcc_comparison | |
1718 | before preparing arguments to warn_logical_not_parentheses. | |
1719 | ||
01177669 JJ |
1720 | 2015-03-09 Jakub Jelinek <jakub@redhat.com> |
1721 | ||
1722 | PR c/65120 | |
1723 | * c-typeck.c (parser_build_binary_op): Don't warn for | |
1724 | !!x == y or !b == y where b is _Bool. | |
1725 | ||
802ac282 MP |
1726 | 2015-03-09 Marek Polacek <polacek@redhat.com> |
1727 | ||
1728 | * c-convert.c (convert): Make use of do_ubsan_in_current_function. | |
1729 | * c-decl.c (grokdeclarator): Likewise. | |
1730 | * c-typeck.c (build_binary_op): Likewise. | |
1731 | ||
e5165b60 MP |
1732 | 2015-02-27 Marek Polacek <polacek@redhat.com> |
1733 | ||
1734 | PR c/65228 | |
1735 | * c-decl.c (start_decl): Return NULL_TREE if decl is an error node. | |
1736 | ||
065d214c MP |
1737 | 2015-02-14 Marek Polacek <polacek@redhat.com> |
1738 | ||
1739 | PR c/64768 | |
1740 | * c-decl.c (grokdeclarator): Set the range of a flexible array member | |
1741 | declared through a typedef name. | |
1742 | ||
e5d9235b MP |
1743 | 2015-02-13 Marek Polacek <polacek@redhat.com> |
1744 | ||
1745 | PR c/65050 | |
1746 | * c-decl.c (grokdeclarator): Print also the type when giving | |
1747 | the error message about array's incomplete element type. | |
1748 | ||
fa01ffcc JJ |
1749 | 2015-02-11 Jakub Jelinek <jakub@redhat.com> |
1750 | ||
1751 | PR c/64824 | |
1752 | * c-parser.c (c_parser_binary_expression): Fix OpenMP stack[sp].prec | |
1753 | check in the POP macro. | |
1754 | ||
c3e38a03 MP |
1755 | 2015-02-09 Marek Polacek <polacek@redhat.com> |
1756 | ||
1757 | PR c/64856 | |
1758 | * c-typeck.c (process_init_element): Don't always wrap | |
1759 | COMPOUND_LITERAL_EXPR in a SAVE_EXPR in C99 mode when | |
1760 | initializing a range of elements. | |
1761 | ||
4886ec8e JJ |
1762 | 2015-02-04 Jakub Jelinek <jakub@redhat.com> |
1763 | ||
1764 | PR c/64824 | |
1765 | PR c/64868 | |
1766 | * c-parser.c (c_parser_omp_atomic): Handle RDIV_EXPR. | |
1767 | ||
c3e38a03 | 1768 | 2015-02-02 Bruno Loff <bruno.loff@gmail.com> |
a4bb6959 BL |
1769 | |
1770 | * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks after | |
1771 | processing enum declaration. | |
1772 | ||
7b33f0c8 MP |
1773 | 2015-01-29 Marek Polacek <polacek@redhat.com> |
1774 | ||
1775 | PR c/64709 | |
1776 | * c-typeck.c (pop_init_level): If constructor_elements has | |
1777 | exactly one element with integer_zerop value, set constructor_zeroinit | |
1778 | to 1. Remove braces around warning_init call. | |
1779 | ||
dea63e49 JJ |
1780 | 2015-01-27 Jakub Jelinek <jakub@redhat.com> |
1781 | ||
1782 | PR c/64766 | |
1783 | * c-typeck.c (store_init_value): Don't overwrite DECL_INITIAL | |
1784 | of FUNCTION_DECLs with error_mark_node. | |
1785 | ||
d38f7dce JJ |
1786 | 2015-01-26 Jakub Jelinek <jakub@redhat.com> |
1787 | ||
1788 | PR c/64778 | |
1789 | * c-typeck.c (convert_arguments): Return -1 if there are | |
1790 | error_args, even if we've diagnosed too many arguments. | |
1791 | ||
cbf5d0e7 RB |
1792 | 2015-01-21 Richard Biener <rguenther@suse.de> |
1793 | ||
1794 | PR middle-end/64313 | |
1795 | * c-decl.c (merge_decls): Call set_builtin_decl_declared_p | |
1796 | for builtins the user declared correctly. | |
1797 | ||
41dbbb37 TS |
1798 | 2015-01-15 Thomas Schwinge <thomas@codesourcery.com> |
1799 | Bernd Schmidt <bernds@codesourcery.com> | |
1800 | Cesar Philippidis <cesar@codesourcery.com> | |
1801 | James Norris <jnorris@codesourcery.com> | |
1802 | Jakub Jelinek <jakub@redhat.com> | |
1803 | Ilmir Usmanov <i.usmanov@samsung.com> | |
1804 | ||
1805 | * c-parser.c: Include "gomp-constants.h". | |
1806 | (c_parser_omp_clause_map): Use enum gomp_map_kind instead of enum | |
1807 | omp_clause_map_kind. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. | |
1808 | Use OMP_CLAUSE_SET_MAP_KIND. | |
1809 | (c_parser_pragma): Handle PRAGMA_OACC_ENTER_DATA, | |
1810 | PRAGMA_OACC_EXIT_DATA, PRAGMA_OACC_UPDATE. | |
1811 | (c_parser_omp_construct): Handle PRAGMA_OACC_CACHE, | |
1812 | PRAGMA_OACC_DATA, PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, | |
1813 | PRAGMA_OACC_PARALLEL, PRAGMA_OACC_WAIT. | |
1814 | (c_parser_omp_clause_name): Handle "auto", "async", "copy", | |
1815 | "copyout", "create", "delete", "deviceptr", "gang", "host", | |
1816 | "num_gangs", "num_workers", "present", "present_or_copy", "pcopy", | |
1817 | "present_or_copyin", "pcopyin", "present_or_copyout", "pcopyout", | |
1818 | "present_or_create", "pcreate", "seq", "self", "vector", | |
1819 | "vector_length", "wait", "worker". | |
1820 | (OACC_DATA_CLAUSE_MASK, OACC_KERNELS_CLAUSE_MASK) | |
1821 | (OACC_ENTER_DATA_CLAUSE_MASK, OACC_EXIT_DATA_CLAUSE_MASK) | |
1822 | (OACC_LOOP_CLAUSE_MASK, OACC_PARALLEL_CLAUSE_MASK) | |
1823 | (OACC_UPDATE_CLAUSE_MASK, OACC_WAIT_CLAUSE_MASK): New macros. | |
1824 | (c_parser_omp_variable_list): Handle OMP_CLAUSE__CACHE_. | |
1825 | (c_parser_oacc_wait_list, c_parser_oacc_data_clause) | |
1826 | (c_parser_oacc_data_clause_deviceptr) | |
1827 | (c_parser_omp_clause_num_gangs, c_parser_omp_clause_num_workers) | |
1828 | (c_parser_oacc_clause_async, c_parser_oacc_clause_wait) | |
1829 | (c_parser_omp_clause_vector_length, c_parser_oacc_all_clauses) | |
1830 | (c_parser_oacc_cache, c_parser_oacc_data, c_parser_oacc_kernels) | |
1831 | (c_parser_oacc_enter_exit_data, c_parser_oacc_loop) | |
1832 | (c_parser_oacc_parallel, c_parser_oacc_update) | |
1833 | (c_parser_oacc_wait): New functions. | |
1834 | * c-tree.h (c_finish_oacc_parallel, c_finish_oacc_kernels) | |
1835 | (c_finish_oacc_data): New prototypes. | |
1836 | * c-typeck.c: Include "gomp-constants.h". | |
1837 | (handle_omp_array_sections): Handle GOMP_MAP_FORCE_DEVICEPTR. Use | |
1838 | GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use | |
1839 | OMP_CLAUSE_SET_MAP_KIND. | |
1840 | (c_finish_oacc_parallel, c_finish_oacc_kernels) | |
1841 | (c_finish_oacc_data): New functions. | |
1842 | (c_finish_omp_clauses): Handle OMP_CLAUSE__CACHE_, | |
1843 | OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS, | |
1844 | OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, | |
1845 | OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_GANG, | |
1846 | OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, and OMP_CLAUSE_MAP's | |
1847 | GOMP_MAP_FORCE_DEVICEPTR. | |
1848 | ||
adfac8df JJ |
1849 | 2015-01-09 Michael Collison <michael.collison@linaro.org> |
1850 | ||
1851 | * c-array-notation.c: Include hash-set.h, machmode.h, | |
1852 | vec.h, double-int.h, input.h, alias.h, symtab.h, options.h | |
1853 | fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h. | |
1854 | * c-aux-info.c: Ditto. | |
1855 | * c-convert.c: Ditto. | |
1856 | * c-decl.c: Ditto. | |
1857 | * c-errors.c: Ditto. | |
1858 | * c-lang.c: Dittoxs. | |
1859 | * c-objc-common.c: Ditto. | |
1860 | * c-parser.c: Ditto. | |
1861 | * c-typeck.c: Include hash-set.h, machmode.h, | |
1862 | vec.h, double-int.h, input.h, alias.h, symtab.h, options.h | |
1863 | fold-const.h, wide-int.h, inchash.h, real.h and | |
1864 | fixed-value.h due to flattening of tree.h. | |
1865 | ||
2cc901dc MP |
1866 | 2015-01-07 Marek Polacek <polacek@redhat.com> |
1867 | ||
1868 | PR c/64417 | |
1869 | * c-typeck.c (process_init_element): Disallow initialization of | |
1870 | a flexible array member with a string constant if the structure | |
1871 | is in an array. | |
1872 | ||
5624e564 JJ |
1873 | 2015-01-05 Jakub Jelinek <jakub@redhat.com> |
1874 | ||
e5341100 JJ |
1875 | PR sanitizer/64344 |
1876 | * c-typeck.c (convert_for_assignment, c_finish_return): For | |
1877 | -fsanitize=float-cast-overflow casts from REAL_TYPE to integer/enum | |
1878 | types also set in_late_binary_op around convert call. | |
1879 | * c-convert.c (convert): For -fsanitize=float-cast-overflow REAL_TYPE | |
1880 | to integral type casts, if not in_late_binary_op, pass c_fully_fold | |
1881 | result on expr as last argument to ubsan_instrument_float_cast, | |
1882 | if in_late_binary_op, don't use c_save_expr but save_expr. | |
1883 | ||
5624e564 JJ |
1884 | Update copyright years. |
1885 | ||
5bd012f8 MP |
1886 | 2015-01-05 Marek Polacek <polacek@redhat.com> |
1887 | ||
1888 | PR c/64423 | |
1889 | * c-typeck.c (build_array_ref): Pass loc down to | |
1890 | warn_array_subscript_with_type_char. | |
1891 | ||
768952be MU |
1892 | 2014-12-20 Martin Uecker <uecker@eecs.berkeley.edu> |
1893 | ||
1894 | * c-typeck.c: New behavious for pointers to arrays with qualifiers | |
1895 | (common-pointer-type): For pointers to arrays take qualifiers from | |
1896 | element type. | |
1897 | (build_conditional_expr): Add warnings for lost qualifiers. | |
1898 | (comp-target-types): Allow pointers to arrays with different qualifiers. | |
1899 | (convert-for-assignment): Adapt warnings for discarded qualifiers. Add | |
1900 | WARNING_FOR_QUALIFIERS macro and rename WARN_FOR_QUALIFIERS | |
1901 | to PEDWARN_FOR_QUALIFIERS. | |
1902 | ||
8f94a8c4 JJ |
1903 | 2014-12-17 Jakub Jelinek <jakub@redhat.com> |
1904 | ||
1905 | PR sanitizer/64289 | |
1906 | * c-convert.c: Include ubsan.h. | |
1907 | (convert): For real -> integral casts and | |
1908 | -fsanitize=float-cast-overflow don't call convert_to_integer, but | |
1909 | instead instrument the float cast directly. | |
1910 | ||
b731b390 JJ |
1911 | 2014-11-29 Jakub Jelinek <jakub@redhat.com> |
1912 | ||
1913 | * c-typeck.c (convert_lvalue_to_rvalue, build_atomic_assign, | |
1914 | c_finish_stmt_expr): Remove NULL last argument from | |
1915 | create_tmp_var_raw and create_tmp_var calls. | |
1916 | * c-array-notation.c (fix_builtin_array_notation_fn, | |
1917 | build_array_notation_expr, fix_conditional_array_notations_1, | |
1918 | fix_array_notation_expr, fix_array_notation_call_expr): Likewise. | |
1919 | ||
541e35a6 MP |
1920 | 2014-11-28 Marek Polacek <polacek@redhat.com> |
1921 | ||
1922 | PR c/63862 | |
1923 | * c-typeck.c (build_binary_op) <RSHIFT_EXPR, LSHIFT_EXPR>: Don't | |
1924 | convert the right operand to integer type. | |
1925 | ||
b286be94 MP |
1926 | 2014-11-25 Marek Polacek <polacek@redhat.com> |
1927 | ||
1928 | PR c/63877 | |
1929 | * c-decl.c (start_function): Disable -Wmissing-declarations warning | |
1930 | for inline functions. | |
1931 | ||
aa7da51a JJ |
1932 | 2014-11-21 Jakub Jelinek <jakub@redhat.com> |
1933 | ||
1934 | PR target/63764 | |
1935 | * c-typeck.c (build_array_ref): Adjust | |
1936 | convert_vector_to_pointer_for_subscript caller. If it returns true, | |
1937 | call non_lvalue_loc on the result. | |
1938 | ||
d876207f RB |
1939 | 2014-11-11 Richard Biener <rguenther@suse.de> |
1940 | ||
1941 | * c-decl.c (c_init_decl_processing): Do not set pedantic_lvalues | |
1942 | to true. | |
1943 | ||
e5e44252 AK |
1944 | 2014-11-10 Andi Kleen <ak@linux.intel.com> |
1945 | ||
1946 | PR c/60804 | |
1947 | * c-parser.c (c_parser_statement_after_labels): Call | |
1948 | check_no_cilk. | |
1949 | (c_parser_if_statement): Dito. | |
1950 | (c_parser_switch_statement): Dito. | |
1951 | (c_parser_while_statement): Dito. | |
1952 | (c_parser_do_statement): Dito. | |
1953 | (c_parser_for_statement): Dito. | |
1954 | * c-typeck.c (c_finish_loop): Dito. | |
1955 | ||
13c21655 PC |
1956 | 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com> |
1957 | ||
1958 | * c-typeck.c (build_binary_op): Use OPT_Wshift_count_negative and | |
1959 | OPT_Wshift_count_overflow in the warnings. | |
1960 | ||
2d51fcef MP |
1961 | 2014-10-30 Marek Polacek <polacek@redhat.com> |
1962 | ||
1963 | * c-objc-common.c (c_tree_printer) <case 'T'>: For a typedef name, | |
1964 | print the stripped version as well, if they're not the same. | |
1965 | ||
ef4bddc2 RS |
1966 | 2014-10-29 Richard Sandiford <richard.sandiford@arm.com> |
1967 | ||
1968 | * c-decl.c, c-tree.h, c-typeck.c: Remove redundant enum from | |
1969 | machine_mode. | |
1970 | ||
c582198b AM |
1971 | 2014-10-28 Andrew MacLeod <amacleod@redhat.com> |
1972 | ||
1973 | * c-decl.c: Adjust include files. | |
1974 | * c-parser.c: Ditto. | |
1975 | ||
ddc8de03 PM |
1976 | 2014-10-27 Phil Muldoon <pmuldoon@redhat.com> |
1977 | Tom Tromey <tromey@redhat.com> | |
1978 | ||
1979 | * c-tree.h (enum c_oracle_request): New. | |
1980 | (c_binding_oracle_function): New typedef. | |
1981 | (c_binding_oracle, c_pushtag, c_bind): Declare. | |
1982 | * c-decl.c (c_binding_oracle): New global. | |
1983 | (I_SYMBOL_CHECKED): New macro. | |
1984 | (i_symbol_binding): New function. | |
1985 | (I_SYMBOL_BINDING, I_SYMBOL_DECL): Redefine. | |
1986 | (I_TAG_CHECKED): New macro. | |
1987 | (i_tag_binding): New function. | |
1988 | (I_TAG_BINDING, I_TAG_DECL): Redefine. | |
1989 | (I_LABEL_CHECKED): New macro. | |
1990 | (i_label_binding): New function. | |
1991 | (I_LABEL_BINDING, I_LABEL_DECL): Redefine. | |
1992 | (c_print_identifier): Save and restore c_binding_oracle. | |
1993 | (c_pushtag, c_bind): New functions. | |
1994 | ||
60393bbc AM |
1995 | 2014-10-27 Andrew MacLeod <amacleod@redhat.com> |
1996 | ||
1997 | * c-typeck.c: Adjust include files. | |
1998 | ||
d723bb7c MLI |
1999 | 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org> |
2000 | ||
2001 | PR c++/53061 | |
2002 | * c-objc-common.c (c_objc_common_init): Do not do diagnostics | |
2003 | initialization here... | |
2004 | (c_initialize_diagnostics): ... but here. Set defaults after | |
2005 | building pretty-printer. | |
2006 | ||
1bc5a451 MP |
2007 | 2014-10-23 Marek Polacek <polacek@redhat.com> |
2008 | ||
2009 | PR c/63626 | |
2010 | * c-decl.c (pop_scope): Don't print warning in external_scope. | |
2011 | ||
4435bb92 MP |
2012 | 2014-10-19 Marek Polacek <polacek@redhat.com> |
2013 | ||
2014 | PR c/63567 | |
2015 | * c-typeck.c (output_init_element): Allow initializing objects with | |
2016 | static storage duration with compound literals even in C99 and add | |
2017 | pedwarn for it. | |
2018 | ||
7278465e MP |
2019 | 2014-10-17 Marek Polacek <polacek@redhat.com> |
2020 | ||
2021 | PR c/63567 | |
2022 | * c-typeck.c (digest_init): Allow initializing objects with static | |
2023 | storage duration with compound literals even in C99 and add pedwarn | |
2024 | for it. | |
2025 | ||
d9b7be2e MP |
2026 | 2014-10-17 Marek Polacek <polacek@redhat.com> |
2027 | ||
2028 | PR c/63543 | |
2029 | * c-tree.h (C_TYPE_ERROR_REPORTED): Define. | |
2030 | * c-typeck.c (build_indirect_ref): Don't print the "dereferencing..." | |
2031 | error multiple times. Print the type. | |
2032 | ||
f406ae1f MP |
2033 | 2014-10-17 Marek Polacek <polacek@redhat.com> |
2034 | ||
2035 | PR c/63549 | |
2036 | * c-typeck.c (build_array_ref): Bail if the index in an incomplete | |
2037 | type. | |
2038 | ||
92574c7c MP |
2039 | 2014-10-17 Marek Polacek <polacek@redhat.com> |
2040 | ||
2041 | * c-decl.c (grokdeclarator): Use OPT_Wimplicit_int unconditionally. | |
2042 | (start_function): Use OPT_Wimplicit_int instead of 0. | |
2043 | (store_parm_decls_oldstyle): Likewise. | |
2044 | ||
1bc4a978 MT |
2045 | 2014-10-17 Alan Modra <amodra@gmail.com> |
2046 | ||
2047 | PR middle-end/61848 | |
2048 | * c-decl.c (merge_decls): Don't merge section name or tls model | |
2049 | to newdecl symtab node, instead merge to olddecl. Override | |
2050 | existing olddecl section name. Set tls_model for all thread-local | |
2051 | vars, not just OMP thread-private ones. Remove incorrect comment. | |
2052 | ||
83685514 AM |
2053 | 2014-10-16 Andrew MacLeod <amacleod@redhat.com> |
2054 | ||
2055 | * c-decl.c: Adjust include files. | |
2056 | ||
78a7c317 DD |
2057 | 2014-10-14 DJ Delorie <dj@redhat.com> |
2058 | ||
2059 | * c-parser.c (c_parse_init): Add RID entries for each __intN. | |
2060 | (c_token_starts_typename): Check all __intN, not just __int128. | |
2061 | (c_token_starts_declspecs): Likewise. | |
2062 | (c_parser_declspecs): Likewise. | |
2063 | (c_parser_attribute_any_word): Likewise. | |
2064 | (c_parser_objc_selector): Likewise. | |
2065 | * c-tree.h (c_typespec_keyword): cts_int128 -> cts_int_n. | |
2066 | (struct c_declspecs): Add int_n_idx field to record *which* __intN | |
2067 | is specified. | |
2068 | * c-decl.c (declspecs_add_type): Check for all __intN, not just | |
2069 | __int128. | |
2070 | (finish_declspecs): Likewise. | |
2071 | ||
74d98c1e AB |
2072 | 2014-10-13 Anthony Brandon <anthony.brandon@gmail.com> |
2073 | ||
2074 | * c-parser.c (c_parser_all_labels): New function to replace | |
2075 | the duplicate code. | |
2076 | (c_parser_statement): Call the new function. | |
2077 | ||
84937de2 MP |
2078 | 2014-10-09 Marek Polacek <polacek@redhat.com> |
2079 | ||
2080 | PR c/63480 | |
2081 | * c-typeck.c (pop_init_level): Don't warn about initializing | |
2082 | with { }. | |
2083 | ||
0382aaa0 MP |
2084 | 2014-10-07 Marek Polacek <polacek@redhat.com> |
2085 | ||
2086 | PR c/59717 | |
2087 | * c-decl.c (header_for_builtin_fn): New function. | |
2088 | (implicitly_declare): Suggest which header to include. | |
2089 | ||
7a0ca710 MP |
2090 | 2014-10-07 Marek Polacek <polacek@redhat.com> |
2091 | ||
2092 | * c-convert.c (convert): Use error_operand_p. | |
2093 | * c-typeck.c (require_complete_type): Likewise. | |
2094 | (really_atomic_lvalue): Likewise. | |
2095 | (digest_init): Likewise. | |
2096 | (handle_omp_array_sections_1): Likewise. | |
2097 | ||
6bc8a126 MP |
2098 | 2014-10-03 Marek Polacek <polacek@redhat.com> |
2099 | ||
2100 | PR c/63453 | |
2101 | * c-decl.c (pop_scope): Don't warn about "inline function declared | |
2102 | but never defined" for functions marked with gnu_inline attribute. | |
2103 | ||
d90c0a59 JJ |
2104 | 2014-09-25 Jakub Jelinek <jakub@redhat.com> |
2105 | ||
2106 | PR c++/63249 | |
2107 | * c-parser.c (c_parser_omp_variable_list): Call mark_exp_read | |
2108 | on low_bound and length. | |
2109 | ||
083e891e MP |
2110 | 2014-09-24 Marek Polacek <polacek@redhat.com> |
2111 | ||
2112 | PR c/61405 | |
2113 | PR c/53874 | |
2114 | * c-parser.c: Don't define CPP_KEYWORD. | |
2115 | (c_parser_switch_statement): Pass original type to c_finish_case. | |
2116 | * c-tree.h (c_finish_case): Update declaration. | |
2117 | * c-typeck.c (c_finish_case): Add TYPE parameter. Pass it | |
2118 | conditionally to c_do_switch_warnings. | |
2119 | ||
8d95fe25 MP |
2120 | 2014-09-03 Marek Polacek <polacek@redhat.com> |
2121 | ||
2122 | PR c/62024 | |
2123 | * c-parser.c (c_parser_static_assert_declaration_no_semi): Strip no-op | |
2124 | conversions. | |
2125 | ||
9a771876 JJ |
2126 | 2014-09-02 Jakub Jelinek <jakub@redhat.com> |
2127 | Balaji V. Iyer <balaji.v.iyer@intel.com> | |
2128 | Igor Zamyatin <igor.zamyatin@intel.com> | |
2129 | ||
2130 | * c-parser.c (c_parser_cilk_for): New function. | |
2131 | (c_parser_cilk_grainsize): Likewise. | |
2132 | (c_get_temp_regvar): Likewise. | |
2133 | (c_parser_statement_after_labels): Added RID_CILK_FOR case. | |
2134 | (c_parser_pragma): Added PRAGMA_CILK_GRAINSIZE case. | |
2135 | (c_parser_omp_for_loop): Added CILK_FOR and CILK_SIMD checks. | |
2136 | * c-typeck.c (c_finish_omp_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ | |
2137 | case. | |
2138 | ||
b7679d96 CG |
2139 | 2014-08-27 Chen Gang <gang.chen.5i5j@gmail.com> |
2140 | ||
2141 | * c-aux-info.c (gen_type): Resize 'buff' from 10 to 23 bytes, | |
2142 | with using HOST_WIDE_INT without truncation to 'int' | |
2143 | ||
59ea0364 MP |
2144 | 2014-08-22 Marek Polacek <polacek@redhat.com> |
2145 | ||
2146 | PR c++/62199 | |
2147 | * c-typeck.c (parser_build_binary_op): Adjust call to | |
2148 | warn_logical_not_parentheses. | |
2149 | ||
671a475e IZ |
2150 | 2014-08-22 Igor Zamyatin <igor.zamyatin@intel.com> |
2151 | ||
2152 | PR other/62008 | |
2153 | * c-parser.c (c_parser_array_notation): Check for correct | |
2154 | type of an array added. | |
2155 | ||
04159acf MP |
2156 | 2014-08-19 Marek Polacek <polacek@redhat.com> |
2157 | ||
2158 | PR c++/62153 | |
2159 | * c-typeck.c (build_binary_op): If either operand of a comparison | |
2160 | is a boolean expression, call maybe_warn_bool_compare. | |
2161 | ||
c77935ee PP |
2162 | 2014-08-19 Patrick Palka <ppalka@gcc.gnu.org> |
2163 | ||
2164 | PR c/45584 | |
2165 | * c-typeck.c (build_c_cast): Do a conversion even when the | |
2166 | TYPE_MAIN_VARIANTs are the same. | |
2167 | ||
35aff4fb MP |
2168 | 2014-08-19 Marek Polacek <polacek@redhat.com> |
2169 | ||
2170 | * c-decl.c (diagnose_mismatched_decls): Unconditionally call | |
2171 | pedwarn_c99 instead of pedwarn. | |
2172 | (grokfield): Likewise. | |
2173 | (warn_defaults_to): New function. | |
2174 | (grokdeclarator): Call warn_defaults_to instead of pedwarn_c99. | |
2175 | Unconditionally call pedwarn_c99 instead of pedwarn. | |
2176 | (start_function): Call warn_defaults_to instead of pedwarn_c99. | |
2177 | (declspecs_add_scspec): Call pedwarn_c99 instead of pedwarn, don't | |
2178 | check flag_isoc11 before. | |
2179 | * c-errors.c (pedwarn_c99): Change the return type to bool. | |
2180 | Handle -Wc99-c11-compat. | |
2181 | * c-parser.c (disable_extension_diagnostics): Handle | |
2182 | warn_c99_c11_compat. | |
2183 | (restore_extension_diagnostics): Likewise. | |
2184 | (c_parser_static_assert_declaration_no_semi): Call pedwarn_c99 | |
2185 | instead of pedwarn, don't check flag_isoc11 before. | |
2186 | (c_parser_declspecs): Likewise. | |
2187 | (c_parser_alignas_specifier): Likewise. | |
2188 | (c_parser_alignof_expression): Likewise. | |
2189 | (c_parser_generic_selection): Likewise. | |
2190 | * c-tree.h (pedwarn_c99): Update declaration. | |
2191 | * c-typeck.c (c_finish_return): Call pedwarn or warning_at instead | |
2192 | of pedwarn_c99. | |
2193 | ||
177cce46 MP |
2194 | 2014-08-19 Marek Polacek <polacek@redhat.com> |
2195 | ||
2196 | * c-decl.c (warn_variable_length_array): Pass OPT_Wvla unconditionally | |
2197 | to pedwarn_c90. | |
2198 | * c-errors.c: Include "opts.h". | |
2199 | (pedwarn_c90): Rewrite to handle -Wno-c90-c99-compat better. | |
2200 | * c-parser.c (disable_extension_diagnostics): Handle negative value | |
2201 | of warn_c90_c99_compat, too. | |
2202 | (restore_extension_diagnostics): Likewise. | |
2203 | (c_parser_compound_statement_nostart): Pass | |
2204 | OPT_Wdeclaration_after_statement unconditionally to pedwarn_c90. | |
2205 | ||
6dc99c33 MP |
2206 | 2014-08-12 Marek Polacek <polacek@redhat.com> |
2207 | ||
2208 | * c-parser.c (c_parser_postfix_expression) <case RID_FUNCTION_NAME>: | |
2209 | Add pedwarn. | |
2210 | (c_parser_postfix_expression) <case RID_PRETTY_FUNCTION_NAME>: | |
2211 | Likewise. | |
2212 | (c_parser_postfix_expression) <case RID_C99_FUNCTION_NAME>: Likewise. | |
2213 | ||
f3bede71 MP |
2214 | 2014-08-10 Marek Polacek <polacek@redhat.com> |
2215 | ||
2216 | PR c/51849 | |
2217 | * c-decl.c (build_array_declarator): Remove check for !flag_isoc99. | |
2218 | Call pedwarn_c90 instead of pedwarn. | |
2219 | (check_bitfield_type_and_width): Likewise. | |
2220 | (declspecs_add_qual): Likewise. | |
2221 | (declspecs_add_type): Likewise. | |
2222 | (warn_variable_length_array): Unify function for -pedantic and -Wvla. | |
2223 | Adjust to only call pedwarn_c90. | |
2224 | (grokdeclarator): Remove pedantic && !flag_isoc99 check. Call | |
2225 | pedwarn_c90 instead of pedwarn. | |
2226 | * c-errors.c (pedwarn_c90): Handle -Wc90-c99-compat. | |
2227 | * c-parser.c (disable_extension_diagnostics): Handle | |
2228 | warn_c90_c99_compat. | |
2229 | (restore_extension_diagnostics): Likewise. | |
2230 | (c_parser_enum_specifier): Remove check for !flag_isoc99. Call | |
2231 | pedwarn_c90 instead of pedwarn. | |
2232 | (c_parser_initelt): Likewise. | |
2233 | (c_parser_postfix_expression): Likewise. | |
2234 | (c_parser_postfix_expression_after_paren_type): Likewise. | |
2235 | (c_parser_compound_statement_nostart): Remove check for !flag_isoc99. | |
2236 | * c-tree.h: Fix formatting. | |
2237 | * c-typeck.c (build_array_ref): Remove check for !flag_isoc99. Call | |
2238 | pedwarn_c90 instead of pedwarn. | |
2239 | ||
9f25a338 TS |
2240 | 2014-08-07 Trevor Saunders <tsaunders@mozilla.com> |
2241 | ||
2242 | * c-typeck.c: Remove include of pointer-set.h. | |
2243 | ||
044331a8 MP |
2244 | 2014-08-07 Marek Polacek <polacek@redhat.com> |
2245 | ||
2246 | * c-typeck.c (pointer_diff): Remove P - (P + CST) optimization. | |
2247 | ||
b787e7a2 TS |
2248 | 2014-08-02 Trevor Saunders <tsaunders@mozilla.com> |
2249 | ||
2250 | * c-typeck.c: Use hash_map instead of pointer_map. | |
2251 | ||
6e2830c3 TS |
2252 | 2014-08-02 Trevor Saunders <tsaunders@mozilla.com> |
2253 | ||
2254 | * c-decl.c: Use hash_set instead of pointer_set. | |
2255 | ||
a7ee52fb IZ |
2256 | 2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com> |
2257 | ||
2258 | PR middle-end/61455 | |
2259 | * c-array-notation.c (expand_array_notations): Handling | |
2260 | of DECL_EXPR added. | |
2261 | ||
b4dfdc11 MG |
2262 | 2014-07-31 Marc Glisse <marc.glisse@inria.fr> |
2263 | ||
2264 | PR c++/60517 | |
2265 | * c-typeck.c (c_finish_return): Return 0 instead of the address of | |
2266 | a local variable. | |
2267 | ||
976d5a22 TT |
2268 | 2014-07-30 Tom Tromey <tromey@redhat.com> |
2269 | ||
2270 | * c-typeck.c (struct constructor_stack) <designator_depth>: New | |
2271 | field. | |
2272 | (really_start_incremental_init, push_init_level): Initialize | |
2273 | designator_depth. | |
2274 | (pop_init_level): Set global designator_depth. | |
2275 | (process_init_element): Check for designated_init attribute. | |
2276 | ||
30281de2 MP |
2277 | 2014-07-20 Marek Polacek <polacek@redhat.com> |
2278 | ||
2279 | PR c/61852 | |
2280 | * c-decl.c (implicit_decl_warning): Add location_t parameter. Use it. | |
2281 | (implicitly_declare): Pass location to implicit_decl_warning. | |
2282 | ||
b108f48f JJ |
2283 | 2014-07-14 Jakub Jelinek <jakub@redhat.com> |
2284 | ||
2285 | PR middle-end/61294 | |
2286 | * c-parser.c (c_parser_expr_list): Add new argument literal_zero_mask. | |
2287 | If non-NULL, call c_parser_check_literal_zero. | |
2288 | (c_parser_check_literal_zero): New function. | |
2289 | (c_parser_postfix_expression_after_primary): Adjust | |
2290 | c_parser_expr_list caller, handle -Wmemset-transposed-args. | |
2291 | ||
773ec47f MP |
2292 | 2014-07-06 Marek Polacek <polacek@redhat.com> |
2293 | ||
2294 | PR c/6940 | |
2295 | * c-decl.c (grokdeclarator): Set C_ARRAY_PARAMETER. | |
2296 | * c-tree.h (C_ARRAY_PARAMETER): Define. | |
2297 | * c-typeck.c (c_expr_sizeof_expr): Warn when using sizeof on an array | |
2298 | function parameter. | |
2299 | ||
22e1cf1c JH |
2300 | 2014-07-02 Jan Hubicka <hubicka@ucw.cz> |
2301 | Chen Gang <gang.chen.5i5j@gmail.com> | |
2302 | ||
2303 | * c-decl.c (duplicate_decls): CLear DECL_STRUCT_FUNCTION before | |
2304 | releasing symbol. | |
2305 | ||
52ec0ea3 MP |
2306 | 2014-07-01 Marek Polacek <polacek@redhat.com> |
2307 | ||
2308 | * c-typeck.c (convert_for_assignment): Pass OPT_Wint_conversion | |
2309 | instead of 0 to WARN_FOR_ASSIGNMENT. | |
2310 | ||
d5c3d343 MP |
2311 | 2014-07-01 Marek Polacek <polacek@redhat.com> |
2312 | ||
2313 | PR c/58286 | |
2314 | * c-typeck.c (convert_for_assignment): Pass | |
2315 | OPT_Wincompatible_pointer_types instead of 0 to WARN_FOR_ASSIGNMENT. | |
2316 | ||
6a7253a4 MP |
2317 | 2014-06-30 Marek Polacek <polacek@redhat.com> |
2318 | ||
2319 | * c-decl.c (grokdeclarator): Don't instrument VLAs if the function | |
2320 | has no_sanitize_undefined attribute. | |
2321 | ||
5e88a8f4 IZ |
2322 | 2014-06-30 Igor Zamyatin <igor.zamyatin@intel.com> |
2323 | ||
2324 | PR middle-end/57541 | |
2325 | * c-array-notation.c (fix_builtin_array_notation_fn): | |
2326 | Check for 0 arguments in builtin call. Check that bultin argument is | |
2327 | correct. | |
2328 | * c-parser.c (c_parser_array_notation): Check for incorrect initial | |
2329 | index. | |
2330 | ||
9698b078 SH |
2331 | 2014-06-27 Sebastian Huber <sebastian.huber@embedded-brains.de> |
2332 | ||
2333 | * c-parser.c (c_parser_declaration_or_fndef): Discard all type | |
2334 | qualifiers in __auto_type for atomic types. | |
2335 | (c_parser_typeof_specifier): Discard all type qualifiers in | |
2336 | __typeof__ for atomic types. | |
2337 | ||
6e07c515 MP |
2338 | 2014-06-25 Marek Polacek <polacek@redhat.com> |
2339 | ||
2340 | PR c/61162 | |
2341 | * c-parser.c (c_parser_statement_after_labels): Pass the location of | |
2342 | the return expression to c_finish_return. | |
2343 | ||
da6f124d JJ |
2344 | 2014-06-25 Jakub Jelinek <jakub@redhat.com> |
2345 | ||
2346 | * c-typeck.c (c_finish_omp_clauses): Make sure | |
2347 | OMP_CLAUSE_LINEAR_STEP has correct type. | |
2348 | ||
c203e8a7 TS |
2349 | 2014-06-24 Trevor Saunders <tsaunders@mozilla.com> |
2350 | ||
2351 | * c-decl.c: Adjust. | |
2352 | ||
56ad0e38 JJ |
2353 | 2014-06-24 Jakub Jelinek <jakub@redhat.com> |
2354 | ||
2355 | * c-parser.c (c_parser_omp_for_loop): For | |
2356 | #pragma omp parallel for simd move lastprivate clause from parallel | |
2357 | to for rather than simd. | |
2358 | ||
47c2554f MP |
2359 | 2014-06-23 Marek Polacek <polacek@redhat.com> |
2360 | ||
2361 | * c-typeck.c (parser_build_binary_op): Don't call | |
2362 | warn_logical_not_parentheses if the RHS is TRUTH_NOT_EXPR. | |
2363 | ||
56363ffd JH |
2364 | 2014-06-15 Jan Hubicka <hubicka@ucw.cz> |
2365 | ||
2366 | * c-parser.c (c_parser_omp_threadprivate): Likewise. | |
2367 | * c-decl.c (merge_decls): Likewise. | |
2368 | ||
d7ff7ae5 MP |
2369 | 2014-06-09 Marek Polacek <polacek@redhat.com> |
2370 | ||
2371 | PR c/36446 | |
2372 | * c-typeck.c (error_init): Call inform instead of error_at. | |
2373 | (pedwarn_init): Call inform instead of pedwarn. | |
2374 | (warning_init): Call inform instead of warning_at. | |
2375 | ||
24d047a3 JH |
2376 | 2014-06-07 Jan Hubicka <hubicka@ucw.cz> |
2377 | ||
2378 | * c-decl.c (merge_decls): Use set_decl_section_name. | |
2379 | (duplicate_decls): Remove node if it exists. | |
2380 | ||
9bac5cbb G |
2381 | 2014-06-05 S. Gilles <sgilles@terpmail.umd.edu> |
2382 | ||
2383 | PR c/53119 | |
2384 | * c-typeck.c (push_init_level, process_init_element, | |
2385 | pop_init_level): Correct check for zero initialization, move | |
2386 | missing brace warning to respect zero initialization. | |
2387 | ||
8ffcdea8 MP |
2388 | 2014-06-05 Marek Polacek <polacek@redhat.com> |
2389 | ||
2390 | PR c/56724 | |
2391 | * c-typeck.c (convert_for_assignment): Use expr_loc for ic_argpass. | |
2392 | ||
742938c9 MP |
2393 | 2014-06-05 Marek Polacek <polacek@redhat.com> |
2394 | ||
2395 | PR c/49706 | |
2396 | * c-typeck.c (parser_build_binary_op): Warn when logical not is used | |
2397 | on the left hand side operand of a comparison. | |
2398 | ||
6447c55d MP |
2399 | 2014-06-05 Marek Polacek <polacek@redhat.com> |
2400 | ||
2401 | PR c/48062 | |
2402 | * c-decl.c (warn_if_shadowing): Call inform instead of warning_at. | |
2403 | Print note only if the warning was printed. | |
2404 | ||
9dc7743c IZ |
2405 | 2014-06-04 Igor Zamyatin <igor.zamyatin@intel.com> |
2406 | ||
2407 | PR c/58942 | |
2408 | * c-array-notation.c (fix_builtin_array_notation_fn): Handle the case | |
2409 | with a pointer. | |
2410 | ||
fedfecef MP |
2411 | 2014-06-03 Marek Polacek <polacek@redhat.com> |
2412 | ||
2413 | PR c/60439 | |
2414 | * c-parser.c (c_parser_switch_statement): Pass explicit_cast_p to | |
2415 | c_start_case. | |
2416 | * c-tree.h (c_start_case): Update. | |
2417 | * c-typeck.c (c_start_case): Add new boolean parameter. Warn if | |
2418 | switch condition has boolean value. | |
2419 | ||
9b2b7279 AM |
2420 | 2014-06-02 Andrew MacLeod <amacleod@redhat.com> |
2421 | ||
2422 | * c-decl.c: Include builtins.h. | |
2423 | * c-parser.c: Likewise. | |
2424 | ||
5c1bc275 MP |
2425 | 2014-05-27 Marek Polacek <polacek@redhat.com> |
2426 | ||
2427 | PR c/56724 | |
2428 | * c-typeck.c (convert_arguments): Get location of a parameter. Change | |
2429 | error and warning calls to error_at and warning_at. Pass location of | |
2430 | a parameter to it. Call warning_at with OPT_Wtraditional_conversion. | |
2431 | (convert_for_assignment): Add parameter to WARN_FOR_ASSIGNMENT and | |
2432 | WARN_FOR_QUALIFIERS. Pass expr_loc to those. | |
2433 | ||
97563bc8 IZ |
2434 | 2014-05-26 Igor Zamyatin <igor.zamyatin@intel.com> |
2435 | ||
2436 | PR c/61191 | |
2437 | * c-array-notation.c (fix_builtin_array_notation_fn): Check invalid | |
2438 | function parameters. | |
2439 | ||
aede2c10 JH |
2440 | 2014-05-23 Jan Hubicka <hubicka@ucw.cz> |
2441 | ||
2442 | * c-decl.c (merge_decls): Preserve symtab node pointers. | |
2443 | (duplicate_decls): Free new decl. | |
2444 | ||
edbba2ce TS |
2445 | 2014-05-23 Thomas Schwinge <thomas@codesourcery.com> |
2446 | ||
f3316c6d TS |
2447 | * c-typeck.c (c_finish_omp_clauses): Remove duplicated variable |
2448 | initialization. | |
2449 | ||
edbba2ce TS |
2450 | * c-parser.c (c_parser_omp_target): Return bool values. |
2451 | ||
68c81f24 TS |
2452 | 2014-05-22 Thomas Schwinge <thomas@codesourcery.com> |
2453 | ||
2454 | * c-parser.c (c_parser_omp_clause_thread_limit): Rename | |
2455 | num_teams_loc variable to num_thread_limit_loc. | |
2456 | ||
632f2871 RS |
2457 | 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com> |
2458 | ||
2459 | * c-array-notation.c (expand_array_notations): Use void_node | |
2460 | instead of void_zero_node. | |
2461 | ||
766090c2 TS |
2462 | 2014-05-17 Trevor Saunders <tsaunders@mozilla.com> |
2463 | ||
2464 | * c-decl.c (finish_struct): Adjust. | |
2465 | (finish_enum): Likewise. | |
2466 | (bind): Adjust. | |
2467 | (record_inline_static): Likewise. | |
2468 | (push_scope): Likewise. | |
2469 | (make_label): Likewise. | |
2470 | (lookup_label_for_goto): Likewise. | |
2471 | (finish_struct): Likewise. | |
2472 | (finish_enum): Likewise. | |
2473 | (store_parm_decls): Likewise. | |
2474 | (c_push_function_context): Likewise. | |
2475 | * c-lang.h: Remove usage of variable_size gty attribute. | |
2476 | * c-parser.c (c_parse_init): Adjust. | |
2477 | (c_parse_file): Likewise. | |
2478 | ||
2b107f6b MP |
2479 | 2014-05-13 Marek Polacek <polacek@redhat.com> |
2480 | ||
2481 | PR c/61162 | |
2482 | * c-typeck.c (convert_for_assignment): Pass location to | |
2483 | WARN_FOR_ASSIGNMENT instead of input_location. | |
2484 | ||
d033409e MP |
2485 | 2014-05-10 Marek Polacek <polacek@redhat.com> |
2486 | ||
2487 | * c-parser.c (c_parser_declaration_or_fndef): Pass init_loc to | |
2488 | maybe_warn_string_init. | |
2489 | (c_parser_postfix_expression_after_paren_type): Pass type_loc to | |
2490 | maybe_warn_string_init. | |
2491 | * c-tree.h (maybe_warn_string_init): Update declaration. | |
2492 | * c-typeck.c (maybe_warn_string_init): Add location parameter. | |
2493 | Call pedwarn_init with loc instead of with input_location. | |
2494 | (digest_init): Pass init_loc to maybe_warn_string_init. | |
2495 | (pop_init_level): Call pedwarn_init with loc instead of with | |
2496 | input_location. | |
2497 | (set_init_index): Likewise. | |
2498 | (process_init_element): Likewise. | |
2499 | ||
ea58ef42 MP |
2500 | 2014-05-09 Marek Polacek <polacek@redhat.com> |
2501 | ||
2502 | PR c/61096 | |
2503 | * c-parser.c (c_parser_braced_init): Pass brace_loc to push_init_level. | |
2504 | (c_parser_initelt): Pass location to set_init_label. Pass array index | |
2505 | location to set_init_index. | |
2506 | * c-tree.h (push_init_level): Update declaration. | |
2507 | (pop_init_level): Likewise. | |
2508 | (set_init_index): Likewise. | |
2509 | (set_init_label): Likewise. | |
2510 | * c-typeck.c (error_init): Add location parameter. Call error_at | |
2511 | instead of error. | |
2512 | (digest_init): Pass init_loc to error_init. | |
2513 | (really_start_incremental_init): | |
2514 | (push_init_level): Add location parameter. Pass loc to pop_init_level | |
2515 | and error_init. | |
2516 | (pop_init_level): Likewise. | |
2517 | (set_designator): Add location parameter. Pass loc to pop_init_level, | |
2518 | push_init_level, and error_init. | |
2519 | (set_init_index): Add location parameter. Pass loc to error_init and | |
2520 | set_designator. | |
2521 | (set_init_label): Likewise. | |
2522 | (output_init_element): Pass loc to error_init. | |
2523 | (process_init_element): Pass loc to error_init, pop_init_level, | |
2524 | pedwarn_init, and push_init_level. | |
2525 | ||
661a0813 MP |
2526 | 2014-05-09 Marek Polacek <polacek@redhat.com> |
2527 | ||
2528 | PR c/50459 | |
2529 | * c-parser.c (c_parser_attributes): Parse the arguments as an | |
2530 | expression-list if the attribute takes identifier. | |
2531 | ||
2793eeab MP |
2532 | 2014-05-08 Marek Polacek <polacek@redhat.com> |
2533 | ||
2534 | PR c/61053 | |
2535 | * c-decl.c (grokdeclarator): Use min_align_of_type instead of | |
2536 | TYPE_ALIGN_UNIT. | |
2537 | ||
f827930a MP |
2538 | 2014-05-08 Marek Polacek <polacek@redhat.com> |
2539 | ||
2540 | PR c/61077 | |
2541 | * c-decl.c (start_function): Warn for _Atomic-qualified return type | |
2542 | of main. | |
2543 | ||
1d60af08 KZ |
2544 | 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com> |
2545 | Mike Stump <mikestump@comcast.net> | |
2546 | Richard Sandiford <rdsandiford@googlemail.com> | |
2547 | ||
2548 | * c-decl.c (check_bitfield_type_and_width): Use TYPE_SIGN. | |
2549 | (finish_enum): Use wide-int interfaces. | |
2550 | * c-parser.c (c_parser_cilk_clause_vectorlength): Likewise. | |
2551 | * c-typeck.c (build_c_cast): Likewise. | |
2552 | (set_nonincremental_init_from_string): Likewise. | |
2553 | (c_tree_equal): Likewise. | |
2554 | ||
a0e24419 MP |
2555 | 2014-05-02 Marek Polacek <polacek@redhat.com> |
2556 | ||
2557 | PR c/25801 | |
2558 | * c-typeck.c (c_size_in_bytes): Update comment. Don't call error. | |
2559 | Return size_one_node when the type is not complete. | |
2560 | (pointer_diff): Remove comment. | |
2561 | (build_unary_op): Improve error messages. | |
2562 | ||
19fc9faa MP |
2563 | 2014-05-02 Marek Polacek <polacek@redhat.com> |
2564 | ||
2565 | * c-typeck.c (c_finish_return): Separate warning_at calls. | |
2566 | ||
63bc4e87 MP |
2567 | 2014-05-02 Marek Polacek <polacek@redhat.com> |
2568 | ||
2569 | * c-tree.h (error_init): Remove declaration. | |
2570 | (pedwarn_init): Likewise. | |
2571 | * c-typeck.c (error_init): Make static and move above. | |
2572 | (pedwarn_init): Likewise. | |
2573 | (warning_init): Move above. | |
2574 | (maybe_warn_string_init): Likewise. | |
2575 | ||
4bd2511b JL |
2576 | 2014-05-01 Jeff Law <law@redhat.com> |
2577 | ||
2578 | Revert: | |
2579 | ||
2580 | 2014-04-24 Prathamesh Kulkarni <bilbotheelffriend@gmail.com> | |
2581 | * c-parser.c (c_parser_sizeof_expression): Reorganize slightly to | |
2582 | avoid goto. | |
2583 | ||
6a358dcb MP |
2584 | 2014-05-02 Marek Polacek <polacek@redhat.com> |
2585 | ||
2586 | PR c/60784 | |
2587 | * c-typeck.c (push_init_level): Set constructor_designated to | |
2588 | p->designated for structures. | |
2589 | ||
ae5ebda4 MP |
2590 | 2014-05-01 Marek Polacek <polacek@redhat.com> |
2591 | ||
2592 | PR c/60915 | |
2593 | * c-parser.c (c_parser_declaration_or_fndef): Give better error if | |
2594 | function-definition has an attribute after the declarator. | |
2595 | ||
96b40f8d MP |
2596 | 2014-05-01 Marek Polacek <polacek@redhat.com> |
2597 | ||
2598 | PR c/60257 | |
2599 | * c-typeck.c (warning_init): Add location_t parameter. Call | |
2600 | warning_at instead of warning. | |
2601 | (push_init_level): Pass input_location to warning_init. | |
2602 | (add_pending_init): Add location_t parameter. Pass loc to | |
2603 | warning_init. | |
2604 | (set_nonincremental_init): Pass input_location to add_pending_init. | |
2605 | (set_nonincremental_init_from_string): Likewise. | |
2606 | (output_init_element): Pass loc to warning_init and to | |
2607 | add_pending_init. | |
2608 | ||
32e00768 MP |
2609 | 2014-05-01 Marek Polacek <polacek@redhat.com> |
2610 | ||
2611 | PR c/43395 | |
2612 | * c-typeck.c (c_finish_return): Distinguish between label and variable | |
2613 | when warning about returning local address. | |
2614 | ||
c9379ce2 MP |
2615 | 2014-05-01 Marek Polacek <polacek@redhat.com> |
2616 | ||
2617 | PR c/29467 | |
2618 | * c-decl.c (declspecs_add_type): Pedwarn if boolean types are used | |
2619 | in C89 mode. | |
2620 | ||
d00887e8 MP |
2621 | 2014-05-01 Marek Polacek <polacek@redhat.com> |
2622 | ||
2623 | PR c/43245 | |
2624 | * c-typeck.c (convert_for_assignment): Pass OPT_Wdiscarded_qualifiers | |
2625 | instead of 0 to WARN_FOR_QUALIFIERS. | |
2626 | ||
5436fa2e MP |
2627 | 2014-05-01 Marek Polacek <polacek@redhat.com> |
2628 | ||
2629 | PR c/56989 | |
2630 | * c-typeck.c (default_conversion): Use better location for | |
2631 | error call. | |
2632 | ||
f8ed5150 MP |
2633 | 2014-04-30 Marek Polacek <polacek@redhat.com> |
2634 | ||
2635 | * c-typeck.c (build_binary_op): Call ubsan_instrument_division | |
2636 | also when SANITIZE_FLOAT_DIVIDE is on. | |
2637 | ||
8337d1db MP |
2638 | 2014-04-30 Marek Polacek <polacek@redhat.com> |
2639 | ||
2640 | PR c/60139 | |
2641 | * c-typeck.c (output_init_element): Pass OPT_Wpedantic to pedwarn | |
2642 | and pedwarn_init. Use loc insted of input_location. | |
2643 | ||
c4bdc42f MP |
2644 | 2014-04-30 Marek Polacek <polacek@redhat.com> |
2645 | ||
2646 | PR c/60351 | |
2647 | * c-typeck.c (build_binary_op): Use location when warning about | |
2648 | shift count. | |
2649 | ||
45484dcf MP |
2650 | 2014-04-25 Marek Polacek <polacek@redhat.com> |
2651 | ||
2652 | PR c/18079 | |
2653 | * c-decl.c (diagnose_mismatched_decls): Warn for mismatched | |
2654 | always_inline/noinline and hot/cold attributes. | |
2655 | ||
34cf811f MP |
2656 | 2014-04-25 Marek Polacek <polacek@redhat.com> |
2657 | ||
2658 | PR c/60114 | |
2659 | * c-parser.c (c_parser_initelt): Pass input_location to | |
2660 | process_init_element. | |
2661 | (c_parser_initval): Pass loc to process_init_element. | |
2662 | * c-tree.h (process_init_element): Adjust declaration. | |
2663 | * c-typeck.c (push_init_level): Pass input_location to | |
2664 | process_init_element. | |
2665 | (pop_init_level): Likewise. | |
2666 | (set_designator): Likewise. | |
2667 | (output_init_element): Add location_t parameter. Pass loc to | |
2668 | digest_init. | |
2669 | (output_pending_init_elements): Pass input_location to | |
2670 | output_init_element. | |
2671 | (process_init_element): Add location_t parameter. Pass loc to | |
2672 | output_init_element. | |
2673 | ||
42056eac JJ |
2674 | 2014-04-24 Jakub Jelinek <jakub@redhat.com> |
2675 | ||
2676 | * c-parser.c (c_parser_omp_atomic): Allow seq_cst before | |
2677 | atomic-clause, allow comma in between atomic-clause and | |
2678 | seq_cst. | |
2679 | ||
e162a134 JJ |
2680 | 2014-04-22 Jakub Jelinek <jakub@redhat.com> |
2681 | ||
2682 | PR c/59073 | |
2683 | * c-parser.c (c_parser_omp_parallel): If c_parser_omp_for | |
2684 | fails, don't set OM_PARALLEL_COMBINED and return NULL. | |
2685 | ||
2f6babac IZ |
2686 | 2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com> |
2687 | ||
2688 | PR middle-end/60469 | |
2689 | * c-array-notation.c (fix_builtin_array_notation_fn): Use | |
2690 | create_tmp_var instead build_decl for creating temps. | |
2691 | (build_array_notation_expr): Likewise. | |
2692 | (fix_conditional_array_notations_1): Likewise. | |
2693 | (fix_array_notation_expr): Likewise. | |
2694 | (fix_array_notation_call_expr): Likewise. | |
2695 | ||
8edbfaa6 JJ |
2696 | 2014-03-28 Jakub Jelinek <jakub@redhat.com> |
2697 | ||
2698 | PR c++/60689 | |
2699 | * c-tree.h (c_build_function_call_vec): New prototype. | |
2700 | * c-typeck.c (build_function_call_vec): Don't call | |
2701 | resolve_overloaded_builtin here. | |
2702 | (c_build_function_call_vec): New wrapper function around | |
2703 | build_function_call_vec. Call resolve_overloaded_builtin here. | |
2704 | (convert_lvalue_to_rvalue, build_function_call, build_atomic_assign): | |
2705 | Call c_build_function_call_vec instead of build_function_call_vec. | |
2706 | * c-parser.c (c_parser_postfix_expression_after_primary): Likewise. | |
2707 | * c-decl.c (finish_decl): Likewise. | |
2708 | ||
7485aeea MLI |
2709 | 2014-03-18 Manuel López-Ibáñez <manu@gcc.gnu.org> |
2710 | ||
2711 | PR c/55383 | |
2712 | * c-typeck.c: Use correct format string in cast-qual warning | |
2713 | ||
b17a8b07 TS |
2714 | 2014-03-07 Thomas Schwinge <thomas@codesourcery.com> |
2715 | ||
2716 | * c-decl.c (c_decl_attributes): Use | |
2717 | lang_hooks.types.omp_mappable_type. | |
2718 | * c-typeck.c (c_finish_omp_clauses): Likewise. | |
2719 | ||
3af9c5e9 MP |
2720 | 2014-03-06 Marek Polacek <polacek@redhat.com> |
2721 | ||
2722 | PR c/60197 | |
2723 | * c-typeck.c (c_finish_return): Call contains_cilk_spawn_stmt instead | |
2724 | of checking tree code. | |
2725 | ||
1c9f5f33 PK |
2726 | 2014-02-19 Prathamesh Kulkarni <bilbotheelffriend@gmail.com> |
2727 | ||
2728 | * c-parser.c (c_parser_declspecs): Replace call to error by error_at. | |
2729 | (c_parser_parameter_declaration): Likewise. | |
2730 | ||
cc28fc7f MP |
2731 | 2014-02-19 Marek Polacek <polacek@redhat.com> |
2732 | ||
2733 | PR c/60195 | |
2734 | * c-typeck.c (convert_lvalue_to_rvalue): Set TREE_NO_WARNING on tmp. | |
2735 | Call mark_exp_read on exp.value. | |
2736 | (build_atomic_assign): Set TREE_NO_WARNING on val and old. Set | |
2737 | TREE_ADDRESSABLE on old instead of val. | |
2738 | (emit_side_effect_warnings): Warn only if RHS has !TREE_NO_WARNING. | |
2739 | ||
b581c05c PK |
2740 | 2014-02-07 Prathamesh Kulkarni <bilbotheelffriend@gmail.com> |
2741 | ||
2742 | * c-parser.c (c_parser_get_builtin_args): Replace calls to | |
2743 | C_EXPR_APPEND by vec_safe_push. | |
2744 | * c-tree.h (C_EXPR_APPEND): Remove. | |
2745 | ||
81e5eca8 MP |
2746 | 2014-01-31 Marek Polacek <polacek@redhat.com> |
2747 | ||
2748 | PR c/59963 | |
2749 | * c-typeck.c (convert_lvalue_to_rvalue): Pass vNULL to | |
2750 | build_function_call_vec. | |
2751 | (build_function_call): Likewise. | |
2752 | (build_atomic_assign): Likewise. | |
2753 | (build_function_call_vec): Add arg_loc parameter. Use it. | |
2754 | (convert_arguments): Likewise. | |
2755 | (convert_for_assignment): Rename rhs_loc to expr_loc. | |
2756 | * c-parser.c (c_parser_attributes): Pass NULL to c_parser_expr_list. | |
2757 | (c_parser_objc_keywordexpr): Likewise. | |
2758 | (c_parser_postfix_expression_after_primary): Call | |
2759 | build_function_call_vec with expr_loc rather than op_loc. | |
2760 | Call c_parser_expr_list to fill arg_loc. Pass arg_loc to | |
2761 | build_function_call_vec. | |
2762 | (c_parser_expr_list): Add locations parameter. Fill it with locations | |
2763 | of function arguments. | |
2764 | * c-decl.c (finish_decl): Pass vNULL to build_function_call_vec. | |
2765 | ||
68fca595 MP |
2766 | 2014-01-30 Marek Polacek <polacek@redhat.com> |
2767 | ||
2768 | PR c/59940 | |
2769 | * c-typeck.c (build_function_call_vec): Use loc parameter. | |
2770 | (convert_arguments): Add location parameter. Use it. | |
2771 | (ep_convert_and_check): Likewise. | |
2772 | (build_atomic_assign): Adjust convert_for_assignment call. | |
2773 | (build_modify_expr): Likewise. | |
2774 | (digest_init): Likewise. | |
2775 | (c_finish_return): Likewise. | |
2776 | (build_conditional_expr): Adjust ep_convert_and_check calls. | |
2777 | (convert_for_assignment): Add rhs_loc parameter. Use it. | |
2778 | (build_binary_op): Adjust convert_and_check and ep_convert_and_check | |
2779 | calls. | |
2780 | ||
fa337f3a RB |
2781 | 2014-01-30 Richard Biener <rguenther@suse.de> |
2782 | ||
2783 | PR c/59905 | |
2784 | * c-typeck.c (build_function_call_vec): Do not replace calls | |
2785 | to a function via an incompatible type with a runtime abort. | |
2786 | ||
b72271b9 BI |
2787 | 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com> |
2788 | ||
2789 | * c-parser.c (c_parser_declaration_or_fndef): Replaced | |
2790 | flag_enable_cilkplus with flag_cilkplus. | |
2791 | (c_parser_direct_declarator_inner): Likewise. | |
2792 | (c_parser_attribute_any_word): Likewise. | |
2793 | (c_parser_attributes): Likewise. | |
2794 | (c_parser_compound_statement): Likewise. | |
2795 | (c_parser_statement_after_labels): Likewise. | |
2796 | (c_parser_if_statement): Likewise. | |
2797 | (c_parser_switch_statement): Likewise. | |
2798 | (c_parser_do_statement): Likewise. | |
2799 | (c_parser_for_statement): Likewise. | |
2800 | (c_parser_unary_expression): Likewise. | |
2801 | (c_parser_postfix_expression): Likewise. | |
2802 | (c_parser_postfix_expression_after_primary): Likewise. | |
2803 | (c_parser_postfix_expression_after_primary): Likewise. | |
2804 | (c_parser_omp_clause_name): Likewise. | |
2805 | (c_finish_omp_declare_simd): Likewise. | |
2806 | (c_parser_cilk_verify_simd): Likewise. | |
2807 | * c-typeck.c (build_array_ref): Likewise. | |
2808 | (build_function_call_vec): Likewise. | |
2809 | (convert_arguments): Likewise. | |
2810 | (build_compound_expr): Likewise. | |
2811 | (c_finish_return): Likewise. | |
2812 | (c_finish_if_stmt): Likewise. | |
2813 | (c_finish_loop): Likewise. | |
2814 | (build_binary_op): Likewise. | |
2815 | ||
393e8e8b MP |
2816 | 2014-01-23 Marek Polacek <polacek@redhat.com> |
2817 | ||
2818 | PR c/59846 | |
2819 | * c-typeck.c (parser_build_binary_op): Use location instead of | |
2820 | input_location. | |
2821 | (build_binary_op): Pass location to shorten_compare. | |
2822 | ||
f04dda30 MP |
2823 | 2014-01-23 Marek Polacek <polacek@redhat.com> |
2824 | ||
2825 | PR c/58346 | |
2826 | * c-typeck.c (pointer_diff): Give an error on arithmetic on pointer to | |
2827 | an empty aggregate. | |
2828 | ||
789eadcd MP |
2829 | 2014-01-23 Marek Polacek <polacek@redhat.com> |
2830 | ||
2831 | PR c/59871 | |
2832 | * c-typeck.c (build_compound_expr): Warn even for right-hand operand | |
2833 | of a comma expression. | |
2834 | (emit_side_effect_warnings): Likewise. | |
2835 | ||
40f14e9f BI |
2836 | 2014-01-23 Balaji V. Iyer <balaji.v.iyer@intel.com> |
2837 | ||
2838 | PR c/59825 | |
2839 | * c-array-notation.c (expand_array_notation_exprs): Rewrote this | |
2840 | function to use walk_tree and moved a lot of its functionality to | |
2841 | expand_array_notations. | |
2842 | (expand_array_notations): New function. | |
2843 | ||
74558dd9 BI |
2844 | 2014-01-23 Balaji V. Iyer <balaji.v.iyer@intel.com> |
2845 | ||
2846 | * c-parser.c (c_finish_omp_declare_simd): Made "cilk simd function" | |
2847 | attribute an attribute without value. | |
2848 | ||
652fea39 JJ |
2849 | 2014-01-23 Jakub Jelinek <jakub@redhat.com> |
2850 | ||
2851 | PR middle-end/58809 | |
2852 | * c-typeck.c (c_finish_omp_clause): Reject MIN_EXPR, MAX_EXPR, | |
2853 | BIT_AND_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR on COMPLEX_TYPEs. | |
2854 | ||
f34f1c87 MP |
2855 | 2014-01-22 Marek Polacek <polacek@redhat.com> |
2856 | ||
2857 | PR c/59891 | |
2858 | * c-typeck.c (build_conditional_expr): Call c_fully_fold instead | |
2859 | of remove_c_maybe_const_expr on op1 and op2. | |
2860 | ||
241f845a JJ |
2861 | 2014-01-15 Jakub Jelinek <jakub@redhat.com> |
2862 | ||
2863 | PR c/58943 | |
2864 | * c-typeck.c (build_modify_expr): For lhs op= rhs, if rhs has side | |
2865 | effects, preevaluate rhs using SAVE_EXPR first. | |
2866 | ||
9a74f20c BI |
2867 | 2014-01-09 Balaji V. Iyer <balaji.v.iyer@intel.com> |
2868 | ||
2869 | PR c++/59631 | |
2870 | * c-parser.c (c_parser_postfix_expression): Replaced consecutive if | |
2871 | statements with if-elseif statements. | |
2872 | ||
96066ce1 MP |
2873 | 2014-01-06 Marek Polacek <polacek@redhat.com> |
2874 | ||
2875 | PR c/57773 | |
2876 | * c-decl.c (check_bitfield_type_and_width): Warn for implementation | |
2877 | defined bit-field types only in ISO C. | |
2878 | ||
23a5b65a RS |
2879 | 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com> |
2880 | ||
2881 | Update copyright years | |
2882 | ||
f9030485 RS |
2883 | 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com> |
2884 | ||
2885 | * c-array-notation.c: Use the standard form for the copyright notice. | |
2886 | ||
41958c28 BI |
2887 | 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com> |
2888 | ||
2889 | * c-parser.c (struct c_parser::cilk_simd_fn_tokens): Added new field. | |
2890 | (c_parser_declaration_or_fndef): Added a check if cilk_simd_fn_tokens | |
2891 | field in parser is not empty. If not-empty, call the function | |
2892 | c_parser_finish_omp_declare_simd. | |
2893 | (c_parser_cilk_clause_vectorlength): Modified function to be shared | |
2894 | between SIMD-enabled functions and #pragma simd. Added new parameter. | |
2895 | (c_parser_cilk_all_clauses): Modified the usage of the function | |
2896 | c_parser_cilk_clause_vectorlength as mentioned above. | |
2897 | (c_parser_cilk_simd_fn_vector_attrs): New function. | |
2898 | (c_finish_cilk_simd_fn_tokens): Likewise. | |
2899 | (is_cilkplus_vector_p): Likewise. | |
2900 | (c_parser_omp_clause_name): Added checking for "vectorlength," | |
2901 | "nomask," and "mask" strings in clause name. | |
2902 | (c_parser_omp_all_clauses): Added 3 new case statements: | |
2903 | PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_MASK and | |
2904 | PRAGMA_CILK_CLAUSE_NOMASK. | |
2905 | (c_parser_attributes): Added a cilk_simd_fn_tokens parameter. Added a | |
2906 | check for vector attribute and if so call the function | |
2907 | c_parser_cilk_simd_fn_vector_attrs. Also, when Cilk plus is enabled, | |
2908 | called the function c_finish_cilk_simd_fn_tokens. | |
2909 | (c_finish_omp_declare_simd): Added a check if cilk_simd_fn_tokens in | |
2910 | parser field is non-empty. If so, parse them as you would parse | |
2911 | the omp declare simd pragma. | |
2912 | (c_parser_omp_clause_linear): Added a new bool parm. is_cilk_simd_fn. | |
2913 | Added a check when step is a parameter and flag it as error. | |
2914 | (CILK_SIMD_FN_CLAUSE_MASK): New #define. | |
2915 | (c_parser_cilk_clause_name): Changed pragma_cilk_clause to | |
2916 | pragma_omp_clause. | |
2917 | ||
cef0fd0e TS |
2918 | 2013-12-17 Thomas Schwinge <thomas@codesourcery.com> |
2919 | ||
2920 | * c-parser.c (c_parser_omp_parallel): Fix description. | |
2921 | ||
12893402 BI |
2922 | 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com> |
2923 | ||
2924 | * c-objc-common.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Remove. | |
2925 | (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise. | |
2926 | (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise. | |
2927 | * c-typeck.c (cilk_install_body_with_frame_cleanup): New function. | |
2928 | ||
296674db JM |
2929 | 2013-12-04 Joseph Myers <joseph@codesourcery.com> |
2930 | ||
2931 | PR c/52023 | |
2932 | * c-parser.c (c_parser_alignas_specifier): Use | |
2933 | c_sizeof_or_alignof_type instead of c_alignof. | |
2934 | (c_parser_alignof_expression): Likewise, with min_alignof | |
2935 | parameter depending on alignof spelling used. | |
2936 | ||
edd28054 MP |
2937 | 2013-12-04 Marek Polacek <polacek@redhat.com> |
2938 | ||
2939 | PR c/54113 | |
2940 | * c-decl.c (start_function): Don't warn for missing prototype for | |
2941 | inline functions. | |
2942 | ||
da0fc454 MP |
2943 | 2013-12-03 Marek Polacek <polacek@redhat.com> |
2944 | ||
2945 | PR c/59351 | |
2946 | * c-decl.c (build_compound_literal): Allow compound literals with | |
2947 | empty initial value. | |
2948 | ||
4c2ecab0 JM |
2949 | 2013-12-02 Joseph Myers <joseph@codesourcery.com> |
2950 | ||
2951 | PR c/58235 | |
2952 | * c-typeck.c (build_modify_expr): Diagnose assignment to | |
2953 | expression with array type. | |
2954 | ||
340baef7 JM |
2955 | 2013-11-29 Joseph Myers <joseph@codesourcery.com> |
2956 | ||
2957 | PR c/42262 | |
2958 | * c-typeck.c (process_init_element): Do not treat a string as | |
2959 | initializing a whole array when used with a designator for an | |
2960 | individual element. | |
2961 | ||
6763b9f7 JM |
2962 | 2013-11-29 Joseph Myers <joseph@codesourcery.com> |
2963 | ||
2964 | PR c/57574 | |
2965 | * c-decl.c (merge_decls): Clear DECL_EXTERNAL for a definition of | |
2966 | an inline function following a static declaration. | |
2967 | ||
e7bd1de1 JJ |
2968 | 2013-11-28 Jakub Jelinek <jakub@redhat.com> |
2969 | ||
2970 | PR c/59310 | |
2971 | * c-parser.c (c_parser_omp_target): Copy "#pragma omp target" | |
2972 | to p_name before calling c_parser_omp_teams instead of after. | |
2973 | (c_parser_cilk_simd): Remove wrong ATTRIBUTE_UNUSED from parser | |
2974 | argument. Remove unused p_name variable. | |
2975 | ||
0136f8f0 AH |
2976 | 2013-11-27 Aldy Hernandez <aldyh@redhat.com> |
2977 | Jakub Jelinek <jakub@redhat.com> | |
2978 | ||
2979 | * c-decl.c (c_builtin_function_ext_scope): Avoid binding if | |
2980 | external_scope is NULL. | |
2981 | ||
241b71bb TV |
2982 | 2013-11-27 Tom de Vries <tom@codesourcery.com> |
2983 | Marc Glisse <marc.glisse@inria.fr> | |
2984 | ||
2985 | PR c++/59032 | |
2986 | * c-typeck.c (build_unary_op): Allow vector increment and decrement. | |
2987 | ||
2fb9a547 AM |
2988 | 2013-11-22 Andrew MacLeod <amacleod@redhat.com> |
2989 | ||
2990 | * c-typeck.c: Add required include files from gimple.h. | |
2991 | ||
8400e75e DM |
2992 | 2013-11-22 David Malcolm <dmalcolm@redhat.com> |
2993 | ||
2994 | * c-decl.c (define_label, shadow_tag_warned) | |
2995 | (check_bitfield_type_and_width, grokdeclarator, grokparms, | |
2996 | store_parm_decls_newstyle, store_parm_decls_oldstyle) | |
2997 | (declspecs_add_type): Remove use of in_system_header macro. | |
2998 | * c-parser.c (c_parser_unary_expression): Likewise. | |
2999 | * c-typeck.c (store_init_value, process_init_element) | |
3000 | (c_start_case): Likewise. | |
3001 | ||
3002 | * c-decl.c (build_enumerator): Remove use of EXPR_LOC_OR_HERE | |
3003 | macro. | |
3004 | ||
3005 | * c-parser.c (c_parser_set_source_position_from_token): Remove | |
3006 | reference to in_system_header from comment. | |
3007 | ||
386b1f1f RS |
3008 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
3009 | ||
3010 | * c-decl.c (grokdeclarator): Update comment to refer to | |
3011 | tree_to_[su]hwi rather than tree_low_cst. | |
3012 | ||
ae7e9ddd RS |
3013 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
3014 | ||
3015 | * c-decl.c, c-typeck.c: Replace tree_low_cst (..., 1) with | |
3016 | tree_to_uhwi throughout. | |
3017 | ||
9439e9a1 RS |
3018 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
3019 | ||
3020 | * c-parser.c: Replace tree_low_cst (..., 0) with tree_to_shwi | |
3021 | throughout. | |
3022 | ||
9541ffee RS |
3023 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
3024 | ||
3025 | * c-parser.c: Replace host_integerp (..., 0) with tree_fits_shwi_p | |
3026 | throughout. | |
3027 | ||
c02065fc AH |
3028 | 2013-11-15 Aldy Hernandez <aldyh@redhat.com> |
3029 | ||
3030 | * c-parser.c (c_parser_cilk_simd): New. | |
3031 | (c_parser_cilk_verify_simd): New. | |
3032 | (c_parser_pragma): Add case for PRAGMA_CILK_SIMD. | |
3033 | (c_parser_omp_for_loop): Add case for NE_EXPR. | |
3034 | Set c_break_label for CILK_SIMD. | |
3035 | (c_parser_cilk_clause_vectorlength): New. | |
3036 | (c_parser_cilk_clause_linear): New. | |
3037 | (c_parser_cilk_clause_name): New. | |
3038 | (c_parser_cilk_all_clauses): New. | |
3039 | * c-typeck.c (build_unary_op): Pass location argument to | |
3040 | readonly_error. | |
3041 | (build_modify_expr): Same. | |
3042 | (build_asm_expr): Same. | |
3043 | (c_finish_bc_stmt): Error on break/continue in loops. | |
3044 | ||
18f429e2 AM |
3045 | 2013-11-14 Andrew MacLeod <amacleod@redhat.com> |
3046 | ||
3047 | * c-typeck.c: Include only gimplify.h and gimple.h as needed. | |
3048 | ||
d8a2d370 DN |
3049 | 2013-11-14 Diego Novillo <dnovillo@google.com> |
3050 | ||
3051 | * c-decl.c: Include print-tree.h. | |
3052 | Include stor-layout.h. | |
3053 | Include varasm.h. | |
3054 | Include attribs.h. | |
3055 | Include stringpool.h. | |
3056 | * c-lang.c: Include fold-const.h. | |
3057 | * c-parser.c: Include stringpool.h. | |
3058 | Include attribs.h. | |
3059 | Include stor-layout.h. | |
3060 | Include varasm.h. | |
3061 | Include trans-mem.h. | |
3062 | * c-typeck.c: Include stor-layout.h. | |
3063 | Include trans-mem.h. | |
3064 | Include varasm.h. | |
3065 | Include stmt.h. | |
3066 | ||
38b7bc7f JM |
3067 | 2013-11-13 Joseph Myers <joseph@codesourcery.com> |
3068 | ||
3069 | * c-tree.h (c_typespec_keyword): Add cts_auto_type. | |
3070 | * c-decl.c (declspecs_add_type, finish_declspecs): Handle | |
3071 | __auto_type. | |
3072 | * c-parser.c (c_token_starts_typename, c_token_starts_declspecs) | |
3073 | (c_parser_attribute_any_word, c_parser_objc_selector): Handle | |
3074 | RID_AUTO_TYPE. | |
3075 | (c_parser_declspecs): Take argument AUTO_TYPE_OK. | |
3076 | (c_parser_declaration_or_fndef, c_parser_struct_declaration) | |
3077 | (c_parser_declarator, c_parser_direct_declarator_inner) | |
3078 | (c_parser_parameter_declaration, c_parser_type_name): All callers | |
3079 | changed. | |
3080 | (c_parser_declaration_or_fndef): Handle declarations with type | |
3081 | determined from the initializer. | |
3082 | ||
45b0be94 AM |
3083 | 2013-11-12 Andrew MacLeod <amacleod@redhat.com> |
3084 | ||
18f429e2 | 3085 | * c-typeck.c: Include gimplify.h. |
45b0be94 | 3086 | |
582d9b50 JM |
3087 | 2013-11-12 Joseph Myers <joseph@codesourcery.com> |
3088 | ||
3089 | * c-tree.h (struct c_declspecs): Add thread_gnu_p field. | |
3090 | * c-parser.c (c_parser_declspecs): Mention _Thread_local in | |
3091 | comment. | |
3092 | * c-decl.c (shadow_tag_warned, grokdeclarator): Mention __thread | |
3093 | or _Thread_local as appropriate in diagnostics. | |
3094 | (build_null_declspecs): Initialize ret->thread_gnu_p. | |
3095 | (declspecs_add_scspec): Handle either __thread or _Thread_local | |
3096 | for RID_THREAD. Diagnose _Thread_local for pre-C11 standards if | |
3097 | pedantic. Do not disallow _Thread_local extern and _Thread_local | |
3098 | static. | |
3099 | ||
267bac10 JM |
3100 | 2013-11-07 Joseph Myers <joseph@codesourcery.com> |
3101 | Andrew MacLeod <amacleod@redhat.com> | |
3102 | ||
3103 | * c-aux-info.c (gen_type): Handle atomic qualifier. | |
3104 | * c-decl.c (validate_proto_after_old_defn): Do not remove atomic | |
3105 | qualifiers when compating types. | |
3106 | (shadow_tag_warned): Handle atomic_p in declspecs. | |
3107 | (quals_from_declspecs): Likewise. | |
3108 | (start_decl): Use c_type_promotes_to when promoting argument | |
3109 | types. | |
3110 | (grokdeclarator): Handle _Atomic. | |
3111 | (get_parm_info): Diagnose any qualifier on "void" as only | |
3112 | parameter. | |
3113 | (store_parm_decls_oldstyle): Do not remove atomic qualifiers when | |
3114 | comparing types. Use c_type_promotes_to when promoting argument | |
3115 | types. | |
3116 | (finish_function): Use c_type_promotes_to when promoting argument | |
3117 | types. | |
3118 | (build_null_declspecs): Handle atomic_p in declspecs. | |
3119 | (declspecs_add_qual): Handle RID_ATOMIC. | |
3120 | * c-parser.c (c_token_starts_typename, c_token_is_qualifier) | |
3121 | (c_token_starts_declspecs): Handle RID_ATOMIC. | |
3122 | (c_parser_declspecs): Handle atomic type specifiers and | |
3123 | qualifiers. | |
3124 | (c_parser_typeof_specifier): Remove const and _Atomic qualifiers | |
3125 | from types of expressions with atomic type. | |
3126 | (c_parser_direct_declarator_inner): Use convert_lvalue_to_rvalue. | |
3127 | (c_parser_attribute_any_word): Handle RID_ATOMIC. | |
3128 | (c_parser_initializer, c_parser_initelt, c_parser_initval) | |
3129 | (c_parser_statement_after_labels, c_parser_switch_statement) | |
3130 | (c_parser_for_statement, c_parser_expr_no_commas) | |
3131 | (c_parser_conditional_expression, c_parser_binary_expression) | |
3132 | (c_parser_cast_expression, c_parser_unary_expression) | |
3133 | (c_parser_postfix_expression) | |
3134 | (c_parser_postfix_expression_after_primary, c_parser_expression): | |
3135 | Use convert_lvalue_to_rvalue. | |
3136 | (c_parser_expression_conv, c_parser_expr_list): Document | |
3137 | conversion of lvalues to rvalues. Use convert_lvalue_to_rvalue. | |
3138 | (c_parser_objc_synchronized_statement): Use | |
3139 | convert_lvalue_to_rvalue. | |
3140 | (c_parser_objc_selector): Handle RID_ATOMIC. | |
3141 | (c_parser_objc_receiver, c_parser_array_notation): Use | |
3142 | convert_lvalue_to_rvalue. | |
3143 | * c-tree.h (ctsk_typeof): Adjust comment to mention use for | |
3144 | _Atomic (type-name). | |
3145 | (struct c_declspecs): Add atomic_p field. | |
3146 | (convert_lvalue_to_rvalue): Declare. | |
3147 | * c-typeck.c (c_type_promotes_to): Promote atomic types to | |
3148 | corresponding atomic types. | |
3149 | (qualify_type): Don't add _Atomic qualifiers from second argument. | |
3150 | (comp_target_types): Do not allow _Atomic mismatches. | |
3151 | (type_lists_compatible_p): Do not remove atomic qualifiers when | |
3152 | comparing types. | |
3153 | (really_atomic_lvalue, convert_lvalue_to_rvalue) | |
3154 | (build_atomic_assign): New functions. | |
3155 | (build_unary_op): Use build_atomic_assign for atomic increment and | |
3156 | decrement. | |
3157 | (build_conditional_expr): Do not treat _Atomic void as a qualified | |
3158 | version of void. | |
3159 | (build_modify_expr): Use build_atomic_assign for atomic LHS. | |
3160 | (find_anonymous_field_with_type, convert_to_anonymous_field) | |
3161 | (convert_for_assignment): Do not remove atomic qualifiers when | |
3162 | comparing types. | |
3163 | (digest_init): Do not accept initialization of arrays of atomic | |
3164 | elements by string constants. | |
3165 | (build_asm_expr): Use convert_lvalue_to_rvalue. | |
3166 | (build_binary_op): Do not treat _Atomic void as a qualified | |
3167 | version of void. | |
3168 | ||
0c249d4b DD |
3169 | 2013-11-06 DJ Delorie <dj@redhat.com> |
3170 | ||
3171 | * c-decl.c (locate_old_decl): If a previous conflicting decl is | |
3172 | both explicit and builtin, print the location of the explicit one. | |
3173 | ||
6d7f7e0a TB |
3174 | 2013-11-05 Tobias Burnus <burnus@net-b.de> |
3175 | ||
3176 | * c-parser.c (c_parser_omp_for, c_parser_omp_parallel, | |
3177 | c_parser_omp_distribute, c_parser_omp_teams, | |
3178 | c_parser_omp_target, c_parser_omp_declare): Handle | |
3179 | -fopenmp-simd. | |
3180 | ||
b906f4ca MP |
3181 | 2013-11-03 Marek Polacek <polacek@redhat.com> |
3182 | ||
3183 | * c-decl.c (grokdeclarator): Add VLA instrumentation. | |
3184 | ||
ee1d5a02 JJ |
3185 | 2013-11-01 Jakub Jelinek <jakub@redhat.com> |
3186 | ||
3187 | * c-typeck.c (c_finish_omp_clauses) <case OMP_CLAUSE_UNIFORM>: Go to | |
3188 | check_dup_generic at the end, unless remove is true. | |
3189 | (c_finish_omp_clauses) <case OMP_CLAUSE_REDUCTION>: Add break; after | |
3190 | remove = true;. | |
3191 | (c_finish_omp_clauses) <case OMP_CLAUSE_COPYIN>: Likewise. | |
3192 | ||
5a9785fb JJ |
3193 | 2013-10-31 Jakub Jelinek <jakub@redhat.com> |
3194 | ||
3195 | * c-typeck.c (c_finish_omp_clauses): Diagnose aligned clause | |
3196 | with decl that is not pointer nor array. | |
3197 | ||
939b37da BI |
3198 | 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com> |
3199 | ||
3200 | * c-decl.c (finish_function): Added a call for insert_cilk_frame when | |
3201 | a spawning function is found. | |
3202 | * c-objc-common.h (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): New #define. | |
3203 | (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise. | |
3204 | (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise. | |
3205 | * c-parser.c (c_parser_statement_after_labels): Added RID_CILK_SYNC | |
3206 | case. | |
3207 | (c_parser_postfix_expression): Added RID_CILK_SPAWN case. | |
3208 | * c-typeck.c (build_compound_expr): Reject _Cilk_spawn in a comma | |
3209 | expr. | |
3210 | (c_finish_return): Added a check to reject _Cilk_spawn in return | |
3211 | expression. | |
3212 | (build_cilk_spawn): New function. | |
3213 | (build_cilk_sync): Likewise. | |
3214 | * Makefile.in (c-decl.o): Added cilk.h in dependency list. | |
3215 | ||
d4af74d4 TB |
3216 | 2013-10-27 Tobias Burnus <burnus@net-b.de> |
3217 | ||
3218 | PR other/33426 | |
3219 | * c-parser.c (c_parser_while_statement, c_parser_while_statement, | |
3220 | c_parser_pragma): Add GCC ivdep support to 'do' and 'while'. | |
3221 | (c_parser_statement_after_labels): Update calls. | |
3222 | ||
d73749df | 3223 | 2013-10-24 Tobias Burnus <burnus@net-b.de> |
8170608b TB |
3224 | |
3225 | PR other/33426 | |
3226 | * c-parser.c (c_parser_pragma, c_parser_for_statement): | |
3227 | Handle PRAGMA_IVDEP. | |
3228 | (c_parser_statement_after_labels): Update call. | |
3229 | ||
f28aa681 MP |
3230 | 2013-10-24 Marek Polacek <polacek@redhat.com> |
3231 | ||
3232 | * c-parser.c (c_parser_struct_declaration): Add a comment. | |
3233 | (c_parser_declarator): Don't allow _Alignas here. | |
3234 | ||
0645c1a2 AM |
3235 | 2013-10-17 Andrew MacLeod <amacleod@redhat.com> |
3236 | ||
3237 | * c-parser.c: Include omp-low.h. | |
3238 | * c-typeck.c: Likewise. | |
3239 | ||
568a31f2 MP |
3240 | 2013-10-17 Marek Polacek <polacek@redhat.com> |
3241 | ||
3242 | PR c/58267 | |
3243 | * c-parser.c (c_parser_declspecs): Add alignspec_ok parameter. | |
3244 | Document syntax of the array-declarator. | |
3245 | (c_parser_declspecs) <RID_ALIGNAS>: Bail out if alignment specs | |
3246 | are not permitted. | |
3247 | (c_parser_declaration_or_fndef): Adjust c_parser_declspecs call. | |
3248 | (c_parser_struct_declaration): Likewise. | |
3249 | (c_parser_declarator): Likewise. | |
3250 | (c_parser_direct_declarator_inner): Likewise. | |
3251 | (c_parser_parameter_declaration): Likewise. | |
3252 | (c_parser_type_name): Likewise. | |
3253 | ||
acf0174b JJ |
3254 | 2013-10-11 Jakub Jelinek <jakub@redhat.com> |
3255 | ||
3256 | * c-lang.h (current_omp_declare_target_attribute): New extern | |
3257 | decl. | |
3258 | * c-parser.c: Include c-lang.h. | |
3259 | (struct c_parser): Change tokens to c_token *. | |
3260 | Add tokens_buf field. Change tokens_avail type to unsigned int. | |
3261 | (c_parser_consume_token): If parser->tokens isn't | |
3262 | &parser->tokens_buf[0], increment parser->tokens. | |
3263 | (c_parser_consume_pragma): Likewise. | |
3264 | (enum pragma_context): Add pragma_struct and pragma_param. | |
3265 | (c_parser_external_declaration): Adjust | |
3266 | c_parser_declaration_or_fndef caller. | |
3267 | (c_parser_declaration_or_fndef): Add omp_declare_simd_clauses | |
3268 | argument, if it is non-vNULL vector, call c_finish_omp_declare_simd. | |
3269 | Adjust recursive call. | |
3270 | (c_parser_struct_or_union_specifier): Use pragma_struct instead | |
3271 | of pragma_external. | |
3272 | (c_parser_parameter_declaration): Use pragma_param instead of | |
3273 | pragma_external. | |
3274 | (c_parser_compound_statement_nostart, c_parser_label, | |
3275 | c_parser_for_statement): Adjust | |
3276 | c_parser_declaration_or_fndef callers. | |
3277 | (c_parser_expr_no_commas): Add omp_atomic_lhs argument, pass | |
3278 | it through to c_parser_conditional_expression. | |
3279 | (c_parser_conditional_expression): Add omp_atomic_lhs argument, | |
3280 | pass it through to c_parser_binary_expression. Adjust recursive | |
3281 | call. | |
3282 | (c_parser_binary_expression): Remove prec argument, add | |
3283 | omp_atomic_lhs argument instead. Always start from PREC_NONE, if | |
3284 | omp_atomic_lhs is non-NULL and one of the arguments of toplevel | |
3285 | binop matches it, use build2 instead of parser_build_binary_op. | |
3286 | (c_parser_pragma): Handle PRAGMA_OMP_CANCEL, | |
3287 | PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_TARGET, | |
3288 | PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_DECLARE_REDUCTION. | |
3289 | Handle pragma_struct and pragma_param the same as pragma_external. | |
3290 | (c_parser_omp_clause_name): Parse new OpenMP 4.0 clause names. | |
3291 | (c_parser_omp_variable_list): Parse array sections for | |
3292 | OMP_CLAUSE_{DEPEND,MAP,TO,FROM} clauses. | |
3293 | (c_parser_omp_clause_collapse): Fully fold collapse expression. | |
3294 | (c_parser_omp_clause_reduction): Handle user defined reductions. | |
3295 | (c_parser_omp_clause_branch, c_parser_omp_clause_cancelkind, | |
3296 | c_parser_omp_clause_num_teams, c_parser_omp_clause_thread_limit, | |
3297 | c_parser_omp_clause_aligned, c_parser_omp_clause_linear, | |
3298 | c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen, | |
3299 | c_parser_omp_clause_depend, c_parser_omp_clause_map, | |
3300 | c_parser_omp_clause_device, c_parser_omp_clause_dist_schedule, | |
3301 | c_parser_omp_clause_proc_bind, c_parser_omp_clause_to, | |
3302 | c_parser_omp_clause_from, c_parser_omp_clause_uniform): New functions. | |
3303 | (c_parser_omp_all_clauses): Add finish_p argument. Don't call | |
3304 | c_finish_omp_clauses if it is false. Handle new OpenMP 4.0 clauses. | |
3305 | (c_parser_omp_atomic): Parse seq_cst clause, pass true if it is | |
3306 | present to c_finish_omp_atomic. Handle OpenMP 4.0 atomic forms. | |
3307 | (c_parser_omp_for_loop): Add CODE argument, pass it through | |
3308 | to c_finish_omp_for. Change last argument to cclauses, | |
3309 | and adjust uses to grab parallel clauses from the array of all | |
3310 | the split clauses. Adjust c_parser_binary_expression, | |
3311 | c_parser_declaration_or_fndef and c_finish_omp_for callers. | |
3312 | (omp_split_clauses): New function. | |
3313 | (c_parser_omp_simd): New function. | |
3314 | (c_parser_omp_for): Add p_name, mask and cclauses arguments. | |
3315 | Allow the function to be called also when parsing combined constructs, | |
3316 | and call c_parser_omp_simd when parsing for simd. | |
3317 | (c_parser_omp_sections_scope): If section-sequence doesn't start with | |
3318 | #pragma omp section, require exactly one structured-block instead of | |
3319 | sequence of statements. | |
3320 | (c_parser_omp_sections): Add p_name, mask and cclauses arguments. | |
3321 | Allow the function to be called also when parsing combined constructs. | |
3322 | (c_parser_omp_parallel): Add p_name, mask and cclauses arguments. | |
3323 | Allow the function to be called also when parsing combined | |
3324 | constructs. | |
3325 | (c_parser_omp_taskgroup, c_parser_omp_cancel, | |
3326 | c_parser_omp_cancellation_point, c_parser_omp_distribute, | |
3327 | c_parser_omp_teams, c_parser_omp_target_data, | |
3328 | c_parser_omp_target_update, c_parser_omp_target, | |
3329 | c_parser_omp_declare_simd, c_finish_omp_declare_simd, | |
3330 | c_parser_omp_declare_target, c_parser_omp_end_declare_target, | |
3331 | c_parser_omp_declare_reduction, c_parser_omp_declare): New functions. | |
3332 | (c_parser_omp_construct): Add p_name and mask vars. Handle | |
3333 | PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_SIMD, PRAGMA_OMP_TASKGROUP, | |
3334 | PRAGMA_OMP_TEAMS. Adjust c_parser_omp_for, c_parser_omp_parallel | |
3335 | and c_parser_omp_sections callers. | |
3336 | (c_parse_file): Initialize tparser.tokens and the_parser->tokens here. | |
3337 | (OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK, | |
3338 | OMP_SINGLE_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1. | |
3339 | (OMP_PARALLEL_CLAUSE_MASK): Likewise. Add OMP_CLAUSE_PROC_BIND. | |
3340 | (OMP_TASK_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1. Add | |
3341 | OMP_CLAUSE_DEPEND. | |
3342 | (OMP_SIMD_CLAUSE_MASK, OMP_CANCEL_CLAUSE_MASK, | |
3343 | OMP_CANCELLATION_POINT_CLAUSE_MASK, OMP_DISTRIBUTE_CLAUSE_MASK, | |
3344 | OMP_TEAMS_CLAUSE_MASK, OMP_TARGET_DATA_CLAUSE_MASK, | |
3345 | OMP_TARGET_UPDATE_CLAUSE_MASK, OMP_TARGET_CLAUSE_MASK, | |
3346 | OMP_DECLARE_SIMD_CLAUSE_MASK): Define. | |
3347 | * c-typeck.c: Include tree-inline.h. | |
3348 | (c_finish_omp_cancel, c_finish_omp_cancellation_point, | |
3349 | handle_omp_array_sections_1, handle_omp_array_sections, | |
3350 | c_clone_omp_udr, c_find_omp_placeholder_r): New functions. | |
3351 | (c_finish_omp_clauses): Handle new OpenMP 4.0 clauses and | |
3352 | user defined reductions. | |
3353 | (c_tree_equal): New function. | |
3354 | * c-tree.h (temp_store_parm_decls, temp_pop_parm_decls, | |
3355 | c_finish_omp_cancel, c_finish_omp_cancellation_point, c_tree_equal, | |
3356 | c_omp_reduction_id, c_omp_reduction_decl, c_omp_reduction_lookup, | |
3357 | c_check_omp_declare_reduction_r): New prototypes. | |
3358 | * c-decl.c (current_omp_declare_target_attribute): New variable. | |
3359 | (c_decl_attributes): New function. | |
3360 | (start_decl, start_function): Use it instead of decl_attributes. | |
3361 | (temp_store_parm_decls, temp_pop_parm_decls, c_omp_reduction_id, | |
3362 | c_omp_reduction_decl, c_omp_reduction_lookup, | |
3363 | c_check_omp_declare_reduction_r): New functions. | |
3364 | ||
0a6c2227 TT |
3365 | 2013-09-25 Tom Tromey <tromey@redhat.com> |
3366 | ||
3367 | * Make-lang.in (c/gccspec.o): Remove. | |
3368 | (CFLAGS-c/gccspec.o): New variable. | |
3369 | (cc1-checksum.o, C_TREE_H, c/c-aux-info.o, c/c-convert.o) | |
3370 | (c/c-decl.o, c/c-errors.o, c/c-lang.o, c/c-objc-common.o) | |
3371 | (c/c-parser.o, c/c-typeck.o, c/c-array-notation.o): Remove. | |
3372 | ||
f3bc55f0 TT |
3373 | 2013-09-25 Tom Tromey <tromey@redhat.com> |
3374 | ||
3375 | * Make-lang.in (c/gccspec.o): Don't use subshell. | |
3376 | ||
a24d975c MP |
3377 | 2013-09-18 Marek Polacek <polacek@redhat.com> |
3378 | ||
3379 | PR sanitize/58443 | |
3380 | * c-typeck.c (build_binary_op): Properly honor -fsanitize options. | |
3381 | Remove unnecessary check. | |
3382 | ||
ce6923c5 MP |
3383 | 2013-09-18 Marek Polacek <polacek@redhat.com> |
3384 | ||
3385 | PR sanitizer/58411 | |
3386 | * c-typeck.c (build_binary_op): Don't sanitize function if it has the | |
3387 | no_sanitize_undefined attribute. | |
3388 | ||
a1e51df9 KT |
3389 | 2013-09-13 Kai Tietz <ktietz@redhat.com> |
3390 | ||
3391 | PR target/57848 | |
3392 | * c-decl.c (c_builtin_function_ext_scope): Remove | |
3393 | wrong assumption that it is never called on prexisting | |
3394 | symbol. | |
3395 | ||
0af94e6f JR |
3396 | 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com> |
3397 | ||
3398 | * c-typeck.c (build_binary_op): Use vector_types_compatible_elements_p. | |
3399 | ||
20059c8b GDR |
3400 | 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net> |
3401 | ||
3402 | * c-objc-common.c (c_tree_printer): Tidy. | |
3403 | ||
de5a5fa1 MP |
3404 | 2013-08-30 Marek Polacek <polacek@redhat.com> |
3405 | ||
3406 | * c-typeck.c (build_binary_op): Add division by zero and shift | |
3407 | instrumentation. | |
3408 | ||
2531a1d9 | 3409 | 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com> |
0fdd4508 | 3410 | Joseph Myers <joseph@codesourcery.com> |
2531a1d9 | 3411 | |
6e2bcc98 | 3412 | PR c/35649 |
2531a1d9 JR |
3413 | * c-typeck.c (c_common_type): Prefer double_type_node over |
3414 | other REAL_TYPE types with the same precision. | |
3415 | (convert_arguments): Likewise. | |
3416 | ||
025311c4 GDR |
3417 | 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net> |
3418 | ||
3419 | * c-objc-common.c (c_tree_printer): Document the nature of the cast. | |
3420 | (c_initialize_diagnostics): Call a destructor for the early printer. | |
3421 | ||
da6ca2b5 GDR |
3422 | 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net> |
3423 | ||
3424 | * c-objc-common.c (c_initialize_diagnostics): Simplify C pretty | |
3425 | printer initialization. | |
3426 | ||
318cda85 | 3427 | 2013-08-19 Balaji V. Iyer <balaji.v.iyer@intel.com> |
da6ca2b5 | 3428 | |
318cda85 BI |
3429 | PR c/57490 |
3430 | * c-array-notation.c (fix_conditional_array_notations_1): Added a | |
3431 | check for truth values. | |
3432 | (expand_array_notation_exprs): Added truth values case. Removed an | |
3433 | unwanted else. Added for-loop to walk through subtrees in default | |
3434 | case. | |
3435 | ||
b066401f GDR |
3436 | 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net> |
3437 | ||
3438 | * c-objc-common.c (c_initialize_diagnostics): Don't call pp_base. | |
3439 | ||
fb48aadc JM |
3440 | 2013-07-23 Joseph Myers <joseph@codesourcery.com> |
3441 | ||
3442 | * c-parser.c (struct c_generic_association): Fix typo. | |
3443 | ||
433cc7b0 TT |
3444 | 2013-07-23 Tom Tromey <tromey@redhat.com> |
3445 | Joseph Myers <joseph@codesourcery.com> | |
3446 | ||
3447 | * c-parser.c (struct c_generic_association): New. | |
3448 | (c_generic_association_d): New typedef. | |
3449 | (c_parser_generic_selection): New function. | |
3450 | (c_parser_postfix_expression): Handle RID_GENERIC. | |
3451 | ||
26d40c3d JM |
3452 | 2013-07-13 Jason Merrill <jason@redhat.com> |
3453 | ||
3454 | PR c++/57793 | |
3455 | * c-decl.c (finish_struct): Check for too-large class. | |
3456 | ||
ecdbd01a | 3457 | 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com> |
40d3d530 JR |
3458 | |
3459 | PR c/57821 | |
3460 | * c-typeck.c (set_init_index): When folding, check for index overflow. | |
3461 | ||
1141ed3f BI |
3462 | 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com> |
3463 | ||
3464 | * c-parser.c (c_parser_array_notation): Removed rejection of array | |
3465 | notations in an array of function pointers. | |
3466 | ||
713b46fa BI |
3467 | 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com> |
3468 | ||
3469 | * c-array-notation.c (make_triplet_val_inv): New function. | |
3470 | (create_cmp_incr): Likewise. | |
3471 | (create_array_refs): Likewise. | |
3472 | (fix_builtin_array_notation_fn): Replaced all mallocs with tree vec. | |
3473 | Also modularized common parts between functions and called the function. | |
3474 | (build_array_notation_expr): Likewise. | |
3475 | (fix_conditional_array_notations_1): Likewise. | |
3476 | (fix_array_notation_expr): Likewise. | |
3477 | (fix_array_notation_call_expr): Likewise. | |
3478 | ||
92f20202 MP |
3479 | 2013-06-18 Marek Polacek <polacek@redhat.com> |
3480 | ||
3481 | PR c/57630 | |
3482 | * c-decl.c (check_for_loop_decls): Improve diagnostics messages. | |
3483 | ||
73a23b06 BI |
3484 | 2013-06-12 Balaji V. Iyer <balaji.v.iyer@intel.com> |
3485 | ||
3486 | * c-array-notation.c (build_array_notation_expr): Reject array notation | |
3487 | mismatch between LHS and RHS even inside a call_expr. Also, removed | |
3488 | a couple while statements that were dead code. | |
3489 | ||
00b8517d BI |
3490 | 2013-06-10 Balaji V. Iyer <balaji.v.iyer@intel.com> |
3491 | ||
3492 | * c-array-notation.c (fix_builtin_array_notation_fn): Fully folded | |
3493 | excessive precision expressions in function parameters. Also removed | |
3494 | couple unwanted while statements. | |
3495 | ||
1509bdda BI |
3496 | 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com> |
3497 | ||
3498 | * c-array-notation.c (expand_array_notation_exprs): Added | |
3499 | ARRAY_NOTATION_REF case. | |
3500 | ||
d60f1706 BI |
3501 | 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com> |
3502 | ||
3503 | * c-array-notation.c (length_mismatch_in_expr_p): Moved this | |
3504 | function to c-family/array-notation-common.c. | |
3505 | (is_cilkplus_reduce_builtin): Likewise. | |
3506 | (find_rank): Likewise. | |
3507 | (extract_array_notation_exprs): Likewise. | |
3508 | (replace_array_notations): Likewise. | |
3509 | (find_inv_trees): Likewise. | |
3510 | (replace_inv_trees): Likewise. | |
3511 | (contains_array_notation_expr): Likewise. | |
3512 | (find_correct_array_notation_type): Likewise. | |
3513 | (replace_invariant_exprs): Initialized additional_tcodes to NULL. | |
3514 | (struct inv_list): Moved this to c-family/array-notation-common.c. | |
3515 | * c-tree.h (is_cilkplus_builtin_reduce): Remove prototype. | |
3516 | ||
6d6efbb3 BI |
3517 | 2013-06-05 Balaji V. Iyer <balaji.v.iyer@intel.com> |
3518 | ||
3519 | * c-typeck.c (convert_arguments): Moved checking of builtin cilkplus | |
3520 | reduction functions outside the for-loop. Added a check if the fundecl | |
3521 | is non-NULL. Finally, removed an unwanted if-statement, and made the | |
3522 | body unconditional. | |
3523 | ||
25c22937 BI |
3524 | 2013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com> |
3525 | ||
3526 | * c-typeck.c (c_finish_if_stmt): Added a check to see if the rank of the | |
3527 | condition of the if-statement matches the rank of else-block and then- | |
3528 | block when array notations are used. | |
3529 | * c-parser.c (c_parser_declaration_or_fndef): Expanded array notation | |
3530 | expression after the entire function body is parsed. | |
3531 | (c_parser_expr_no_commas): Delayed creating array notation expressions | |
3532 | to the end of function parsing. | |
3533 | * c-array-notation.c (fix_conditional_array_notations_1): Expanded the | |
3534 | whole if-statement instead of just the condition. | |
3535 | (expand_array_notation_exprs): Added MODIFY_EXPR case. | |
3536 | ||
edd25645 BI |
3537 | 2013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com> |
3538 | ||
3539 | PR c/57474 | |
3540 | * c-array-notation.c (build_array_notation_expr): Initialized rhs_length | |
3541 | array to NULL_TREE if they are unused. Also added a check for the | |
3542 | field to be NULL before its fields are used in future. | |
3543 | ||
065ce7f1 RO |
3544 | 2013-05-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
3545 | ||
3546 | PR bootstrap/57450 | |
3547 | * c-array-notation.c (length_mismatch_in_expr_p): Use absu_hwi. | |
3548 | (build_array_notation_expr): Likewise. | |
3549 | ||
36536d79 BI |
3550 | 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com> |
3551 | ||
3552 | * c-typeck.c (build_array_ref): Added a check to see if array's | |
3553 | index is greater than one. If true, then emit an error. | |
3554 | (build_function_call_vec): Exclude error reporting and checking | |
3555 | for builtin array-notation functions. | |
3556 | (convert_arguments): Likewise. | |
3557 | (c_finish_return): Added a check for array notations as a return | |
3558 | expression. If true, then emit an error. | |
3559 | (c_finish_loop): Added a check for array notations in a loop | |
3560 | condition. If true then emit an error. | |
3561 | (lvalue_p): Added a ARRAY_NOTATION_REF case. | |
3562 | (build_binary_op): Added a check for array notation expr inside | |
3563 | op1 and op0. If present, we call another function to find correct | |
3564 | type. | |
3565 | * Make-lang.in (C_AND_OBJC_OBJS): Added c-array-notation.o. | |
3566 | * c-parser.c (c_parser_compound_statement): Check if array | |
3567 | notation code is used in tree, if so, then transform them into | |
3568 | appropriate C code. | |
3569 | (c_parser_expr_no_commas): Check if array notation is used in LHS | |
3570 | or RHS, if so, then build array notation expression instead of | |
3571 | regular modify. | |
3572 | (c_parser_postfix_expression_after_primary): Added a check for | |
3573 | colon(s) after square braces, if so then handle it like an array | |
3574 | notation. Also, break up array notations in unary op if found. | |
3575 | (c_parser_direct_declarator_inner): Added a check for array | |
3576 | notation. | |
3577 | (c_parser_compound_statement): Added a check for array notation in | |
3578 | a stmt. If one is present, then expand array notation expr. | |
3579 | (c_parser_if_statement): Likewise. | |
3580 | (c_parser_switch_statement): Added a check for array notations in | |
3581 | a switch statement's condition. If true, then output an error. | |
3582 | (c_parser_while_statement): Similarly, but for a while. | |
3583 | (c_parser_do_statement): Similarly, but for a do-while. | |
3584 | (c_parser_for_statement): Similarly, but for a for-loop. | |
3585 | (c_parser_unary_expression): Check if array notation is used in a | |
3586 | pre-increment or pre-decrement expression. If true, then expand | |
3587 | them. | |
3588 | (c_parser_array_notation): New function. | |
3589 | * c-array-notation.c: New file. | |
3590 | * c-tree.h (is_cilkplus_reduce_builtin): Protoize. | |
3591 | ||
cd192ccc MS |
3592 | 2013-05-23 Mike Stump <mikestump@comcast.net> |
3593 | ||
3594 | * c-typeck.c (convert_for_assignment): Handle references to memory | |
3595 | spaces better. | |
3596 | ||
427b248d JM |
3597 | 2013-05-16 Jason Merrill <jason@redhat.com> |
3598 | ||
3599 | * Make-lang.in (cc1$(exeext)): Use link mutex. | |
3600 | ||
44d90fe1 PC |
3601 | 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com> |
3602 | ||
3603 | * c-typeck.c (pointer_diff): Change -Wpointer-arith pedwarns | |
3604 | to simply use OPT_Wpointer_arith. | |
3605 | (build_unary_op): Likewise. | |
3606 | ||
4e7d7b3d JJ |
3607 | 2013-04-03 Jakub Jelinek <jakub@redhat.com> |
3608 | ||
3609 | PR c/19449 | |
3610 | * c-parser.c (c_parser_get_builtin_args): Add choose_expr_p | |
3611 | argument. If set, or it temporarily for parsing of the first | |
3612 | argument into force_folding_builtin_constant_p. | |
3613 | (c_parser_postfix_expression): Adjust callers. | |
3614 | ||
839b422f RB |
3615 | 2013-03-21 Richard Biener <rguenther@suse.de> |
3616 | ||
3617 | * c-objc-common.c (c_tree_printer): Use DECL_HAS_DEBUG_EXPR_P | |
3618 | instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly. | |
3619 | ||
2ee028f1 MP |
3620 | 2013-02-12 Marek Polacek <polacek@redhat.com> |
3621 | ||
3622 | PR c/44938 | |
3623 | * c-parser.c (c_parser_postfix_expression_after_primary): Initialize | |
3624 | origtypes to NULL. | |
3625 | ||
8824edff JJ |
3626 | 2013-01-24 Jakub Jelinek <jakub@redhat.com> |
3627 | ||
3628 | PR c/56078 | |
3629 | * c-typeck.c (set_nonincremental_init_from_string): If | |
3630 | constructor_max_index is NULL, treat it as if tree_int_cst_lt | |
3631 | returned false. | |
3632 | (process_init_element): Likewise. | |
3633 | ||
eadd3d0d JJ |
3634 | 2012-12-20 Jakub Jelinek <jakub@redhat.com> |
3635 | ||
3636 | PR c++/55619 | |
3637 | * c-parser.c (c_parser_asm_operands): Remove CONVERT_P | |
3638 | argument, don't call default_function_array_conversion | |
3639 | nor c_fully_fold here. | |
3640 | (c_parser_asm_statement): Adjust callers. | |
3641 | * c-typeck.c (build_asm_expr): Call c_fully_fold on inputs | |
3642 | and outputs here, and call default_function_array_conversion | |
3643 | on inputs that don't need to be addressable. | |
3644 | ||
f8a93a2e JJ |
3645 | 2012-12-18 Jakub Jelinek <jakub@redhat.com> |
3646 | ||
3647 | PR c/39464 | |
3648 | * c-typeck.c (convert_for_assignment): For -Wpointer-sign | |
3649 | warning require that both c_common_unsigned_type as well as | |
3650 | c_common_signed_type is the same for both mvl and mvr types. | |
3651 | ||
9771b263 DN |
3652 | 2012-11-16 Diego Novillo <dnovillo@google.com> |
3653 | ||
3654 | Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec) | |
3655 | ||
3656 | * c-common.c: Use new vec API in vec.h. | |
3657 | * c-common.h: Likewise. | |
3658 | * c-gimplify.c: Likewise. | |
3659 | * c-pragma.c: Likewise. | |
3660 | * c-pretty-print.c: Likewise. | |
3661 | * c-pretty-print.h: Likewise. | |
3662 | * c-semantics.c: Likewise. | |
3663 | * c-decl.c: Likewise. | |
3664 | * c-parser.c: Likewise. | |
3665 | * c-tree.h: Likewise. | |
3666 | * c-typeck.c: Likewise. | |
3667 | ||
880661a4 JW |
3668 | 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com> |
3669 | ||
3670 | PR c++/54930 | |
3671 | * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr. | |
3672 | ||
077d1abe MLI |
3673 | 2012-10-29 Manuel López-Ibáñez <manu@gcc.gnu.org> |
3674 | ||
3675 | PR c/53066 | |
3676 | * c-decl.c (warn_if_shadowing): Do not warn if a variable | |
3677 | shadows a function, unless the variable is a function or a | |
3678 | pointer-to-function. | |
3679 | ||
3a785c97 JJ |
3680 | 2012-10-12 Jakub Jelinek <jakub@redhat.com> |
3681 | ||
3682 | PR c/54381 | |
3683 | * c-parser.c (struct c_tree_loc_pair): Removed. | |
3684 | (c_parser_expr_list): Remove struct c_tree_loc_pair * argument, | |
3685 | add location_t * and tree * arguments, fill in array of 3 | |
3686 | sizeof_arg trees and corresponding locs. | |
3687 | (c_parser_attributes, c_parser_objc_keywordexpr): Adjust | |
3688 | c_parser_expr_list callers. | |
3689 | (c_parser_postfix_expression_after_primary): Likewise. Pass | |
3690 | array of 3 sizeof_arg trees and locs (corresponding to first | |
3691 | 3 arguments) to sizeof_pointer_memaccess_warning. | |
3692 | ||
703c8606 LC |
3693 | 2012-10-09 Lawrence Crowl <crowl@google.com> |
3694 | ||
3695 | * Make-lang.in (c-decl.o): Add dependence on hash-table.h. | |
3696 | * c-decl.c (detect_field_duplicates_hash): Change to new type-safe | |
3697 | hash table. | |
3698 | ||
5d9de0d0 PC |
3699 | 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com> |
3700 | ||
3701 | PR c++/54194 | |
3702 | * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses | |
3703 | call. | |
3704 | ||
a212e43f MG |
3705 | 2012-10-09 Marc Glisse <marc.glisse@inria.fr> |
3706 | ||
3707 | PR c++/54427 | |
3708 | * c-typeck.c: Include c-common.h. | |
3709 | (enum stv_conv): Moved to c-common.h. | |
3710 | (scalar_to_vector): Moved to c-common.c. | |
3711 | (build_binary_op): Adapt to scalar_to_vector's new prototype. | |
3712 | * Make-lang.in: c-typeck.c depends on c-common.h. | |
3713 | ||
3b78de56 AC |
3714 | 2012-10-04 Arnaud Charlet <charlet@adacore.com> |
3715 | ||
3716 | * c-decl.c (c_write_global_declarations): Fix handling of | |
3717 | -fdump-ada-spec*. | |
3718 | ||
78c60e3d SS |
3719 | 2012-09-30 Sharad Singhai <singhai@google.com> |
3720 | ||
3721 | * c-decl.c (c_write_global_declarations): Use a different method | |
3722 | to determine if the dump has ben initialized. | |
3723 | ||
9f33203d JM |
3724 | 2012-09-14 Joseph Myers <joseph@codesourcery.com> |
3725 | ||
3726 | PR c/54552 | |
3727 | * c-typeck.c (c_cast_expr): When casting to a type requiring | |
3728 | C_MAYBE_CONST_EXPR to be created, pass the inner expression to | |
3729 | c_fully_fold first. | |
3730 | ||
a27d595d JM |
3731 | 2012-09-14 Joseph Myers <joseph@codesourcery.com> |
3732 | ||
3733 | PR c/54103 | |
3734 | * c-typeck.c (build_unary_op): Pass original argument of | |
3735 | TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove | |
3736 | any C_MAYBE_CONST_EXPR, if it has integer operands. | |
3737 | (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR, | |
3738 | TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR | |
3739 | to c_objc_common_truthvalue_conversion, then remove any | |
3740 | C_MAYBE_CONST_EXPR, if they have integer operands. Use | |
3741 | c_objc_common_truthvalue_conversion not | |
3742 | c_common_truthvalue_conversion. | |
3743 | (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and | |
3744 | call note_integer_operands for arguments with integer operands | |
3745 | that are not integer constants. | |
3746 | ||
9feb29df JJ |
3747 | 2012-09-13 Jakub Jelinek <jakub@redhat.com> |
3748 | ||
3749 | PR c/54559 | |
3750 | * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or | |
3751 | COMPLEX_TYPE with in_late_binary_op set temporarily to true. | |
3752 | ||
d409320c JJ |
3753 | 2012-08-31 Jakub Jelinek <jakub@redhat.com> |
3754 | ||
3755 | PR c/54428 | |
3756 | * c-convert.c (convert): Don't call fold_convert_loc if | |
3757 | TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e | |
3758 | is a COMPLEX_EXPR. Remove TYPE_MAIN_VARIANT check from | |
3759 | COMPLEX_TYPE -> COMPLEX_TYPE conversion. | |
3760 | ||
6265d07c JJ |
3761 | 2012-08-24 Jakub Jelinek <jakub@redhat.com> |
3762 | ||
3763 | PR c/54355 | |
3764 | * c-decl.c (c_parser_label): Pass true as nested and fix up comments | |
3765 | for nested and empty_ok arguments in the call to | |
3766 | c_parser_declaration_or_fndef. | |
3767 | ||
1a4049e7 JJ |
3768 | 2012-08-17 Jakub Jelinek <jakub@redhat.com> |
3769 | ||
3770 | * c-tree.h (c_last_sizeof_arg): Declare. | |
3771 | * c-parser.c (struct c_tree_loc_pair): New type. | |
3772 | (c_parser_expr_list): Add sizeof_arg argument. Fill it in if | |
3773 | non-NULL. | |
3774 | (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers. | |
3775 | (c_parser_postfix_expression_after_primary): Likewise. Call | |
3776 | sizeof_pointer_memaccess_warning if needed. | |
3777 | (sizeof_ptr_memacc_comptypes): New function. | |
3778 | * c-typeck.c (c_last_sizeof_arg): New global variable. | |
3779 | (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it. | |
3780 | ||
0229aee9 UB |
3781 | 2012-07-24 Uros Bizjak <ubizjak@gmail.com> |
3782 | ||
3783 | * c-lang.h (lang_decl): Add variable_size GTY option. | |
3784 | ||
7ee2468b SB |
3785 | 2012-07-16 Steven Bosscher <steven@gcc.gnu.org> |
3786 | ||
3787 | * c-decl.c: Include dumpfile.h instead of tree-dump.h. | |
3788 | * Make-lang.in: Fix dependencies. | |
3789 | ||
d4a10d0a SB |
3790 | 2012-06-29 Steven Bosscher <steven@gcc.gnu.org> |
3791 | ||
3792 | * Make-lang.in: New file, rules migrated from gcc/Makefile.in | |
3793 | and add language Makefile hooks. | |
3794 | * config-lang.in: New file. | |
3795 | * c-config-lang.in: Moved from gcc/config-lang.in to here, and | |
3796 | add the required "normal" config-lang.in rules. | |
3797 | * c-lang.h: Moved from gcc/ to here. | |
3798 | * c-tree.h: Likewise. | |
3799 | * c-objc-common.c: Likewise. | |
3800 | * c-objc-common.h: Likewise. | |
3801 | * c-typeck.c: Likewise. | |
3802 | * c-convert.c: Likewise. | |
3803 | * c-lang.c: Likewise. | |
3804 | * c-aux-info.c: Likewise. | |
3805 | * c-errors.c: Likewise. | |
3806 | * gccspec.c: Likewise. | |
3807 | * c-decl.c: Likewise. Include gt-c-c-decl.h, not gt-c-decl.h. | |
3808 | * c-parser.c: Likewise. Include gt-c-c-parser.h, not gt-c-parser.h. | |
3809 | \f | |
818ab71a | 3810 | Copyright (C) 2012-2016 Free Software Foundation, Inc. |
d4a10d0a SB |
3811 | |
3812 | Copying and distribution of this file, with or without modification, | |
3813 | are permitted in any medium without royalty provided the copyright | |
3814 | notice and this notice are preserved. |