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