]>
Commit | Line | Data |
---|---|---|
bb0a1556 GA |
1 | 2022-09-01 Joseph Myers <joseph@codesourcery.com> |
2 | ||
3 | * c-decl.cc (grokparms): Handle () in a function declaration the | |
4 | same as (void) for C2X. | |
5 | ||
542c60c4 GA |
6 | 2022-08-31 Joseph Myers <joseph@codesourcery.com> |
7 | ||
8 | * c-parser.cc (c_parser_label): Pass attributes to do_case. | |
9 | * c-typeck.cc (do_case): Add argument ATTRS. Pass it to | |
10 | c_add_case_label. | |
11 | ||
16f542d6 GA |
12 | 2022-08-26 Jakub Jelinek <jakub@redhat.com> |
13 | ||
14 | * c-typeck.cc (convert_arguments): Handle BUILT_IN_ISSIGNALING. | |
15 | ||
5d4389dc GA |
16 | 2022-08-25 Marek Polacek <polacek@redhat.com> |
17 | ||
18 | * c-convert.cc (c_convert) <case POINTER_TYPE>: Handle NULLPTR_TYPE. | |
19 | Give a better diagnostic when converting to nullptr_t. | |
20 | * c-decl.cc (c_init_decl_processing): Perform C-specific nullptr | |
21 | initialization. | |
22 | * c-parser.cc (c_parse_init): Maybe OR D_C2X into mask. | |
23 | (c_parser_postfix_expression): Handle RID_NULLPTR. | |
24 | * c-typeck.cc (null_pointer_constant_p): Return true when expr is | |
25 | nullptr_node. | |
26 | (build_unary_op) <case TRUTH_NOT_EXPR>: Handle NULLPTR_TYPE. | |
27 | (build_conditional_expr): Handle the case when the second/third operand | |
28 | is NULLPTR_TYPE and third/second operand is POINTER_TYPE. | |
29 | (convert_for_assignment): Handle converting an expression of type | |
30 | nullptr_t to pointer/bool. | |
31 | (build_binary_op) <case TRUTH_XOR_EXPR>: Handle NULLPTR_TYPE. | |
32 | <case EQ_EXPR>: Handle comparing operands of type nullptr_t. | |
33 | ||
34 | 2022-08-25 Joseph Myers <joseph@codesourcery.com> | |
35 | ||
36 | * c-decl.cc (start_decl): Do not diagnose initialization of | |
37 | variable-sized objects here. | |
38 | * c-parser.cc (c_parser_braced_init): Add argument DECL. All | |
39 | callers changed. | |
40 | (c_parser_initializer): Diagnose initialization of variable-sized | |
41 | objects other than with braced initializer. | |
42 | (c_parser_braced_init): Use pedwarn_c11 for empty initializer | |
43 | braces and update diagnostic text. Diagnose initialization of | |
44 | variable-sized objects with nonempty braces. | |
45 | * c-typeck.cc (digest_init): Update diagnostic for initialization | |
46 | of variable-sized objects. | |
47 | (really_start_incremental_init, set_designator) | |
48 | (process_init_element): Update comments. | |
49 | (pop_init_level): Allow scalar empty initializers. | |
50 | ||
0342f034 GA |
51 | 2022-08-17 Tobias Burnus <tobias@codesourcery.com> |
52 | Chung-Lin Tang <cltang@codesourcery.com> | |
53 | ||
54 | PR c++/104493 | |
55 | * c-decl.cc (c_decl_attributes, finish_decl): Call omp_mappable_type | |
56 | instead of removed langhook. | |
57 | * c-typeck.cc (c_finish_omp_clauses): Likewise. | |
58 | ||
5cd525f0 GA |
59 | 2022-08-11 Marek Polacek <polacek@redhat.com> |
60 | ||
61 | PR middle-end/102633 | |
62 | * c-parser.cc (c_parser_initializer): Add new tree parameter. Use it. | |
63 | Call suppress_warning. | |
64 | (c_parser_declaration_or_fndef): Pass d down to c_parser_initializer. | |
65 | (c_parser_omp_declare_reduction): Pass omp_priv down to | |
66 | c_parser_initializer. | |
67 | ||
5f17badb GA |
68 | 2022-08-08 Tom Honermann <tom@honermann.net> |
69 | ||
70 | * c-parser.cc (c_parser_string_literal): Use char8_t as the type | |
71 | of CPP_UTF8STRING when char8_t support is enabled. | |
72 | * c-typeck.cc (digest_init): Allow initialization of an array | |
73 | of character type by a string literal with type array of | |
74 | char8_t. | |
75 | ||
32510382 GA |
76 | 2022-08-01 David Malcolm <dmalcolm@redhat.com> |
77 | ||
78 | * c-typeck.cc (build_c_cast): Quote names of address spaces in | |
79 | diagnostics. | |
80 | (convert_for_assignment): Add a note to address space mismatch | |
81 | diagnostics, specifying the expected and actual types. | |
82 | ||
b53ebbc5 GA |
83 | 2022-07-10 Lewis Hyatt <lhyatt@gmail.com> |
84 | ||
85 | PR preprocessor/97498 | |
86 | * c-parser.cc (c_parser_pragma): Set input_location to the | |
87 | location of the pragma, rather than the start of the line. | |
88 | ||
8467574d GA |
89 | 2022-07-04 Tobias Burnus <tobias@codesourcery.com> |
90 | Chung-Lin Tang <cltang@codesourcery.com> | |
91 | Thomas Schwinge <thomas@codesourcery.com> | |
92 | ||
93 | * c-parser.cc (c_parser_omp_target_data, c_parser_omp_target_update, | |
94 | c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): Set | |
95 | OMP_REQUIRES_TARGET_USED. | |
96 | (c_parser_omp_requires): Remove sorry. | |
97 | ||
ed974488 GA |
98 | 2022-07-01 Tobias Burnus <tobias@codesourcery.com> |
99 | ||
100 | * c-parser.cc (c_parser_omp_target_enter_data, | |
101 | c_parser_omp_target_exit_data): Accept tofrom | |
102 | map-type modifier but use 'to' / 'from' internally. | |
103 | ||
bc7e9f76 GA |
104 | 2022-06-16 David Malcolm <dmalcolm@redhat.com> |
105 | ||
106 | * c-decl.cc (implicitly_declare): Add auto_diagnostic_group to | |
107 | group the warning with any note. | |
108 | (warn_about_goto): Likewise to group error or warning with note. | |
109 | Bail out if the warning wasn't emitted, to avoid emitting orphan | |
110 | notes. | |
111 | (lookup_label_for_goto): Add auto_diagnostic_group to | |
112 | group the error with the note. | |
113 | (check_earlier_gotos): Likewise. | |
114 | (c_check_switch_jump_warnings): Likewise for any error/warning. | |
115 | Conditionalize emission of the notes. | |
116 | (diagnose_uninitialized_cst_member): Likewise for warning, | |
117 | conditionalizing emission of the note. | |
118 | (grokdeclarator): Add auto_diagnostic_group to group the "array | |
119 | type has incomplete element type" error with any note. | |
120 | (parser_xref_tag): Add auto_diagnostic_group to group warnings | |
121 | with their notes. Conditionalize emission of notes. | |
122 | (start_struct): Add auto_diagnostic_group to group the | |
123 | "redefinition of" errors with any note. | |
124 | (start_enum): Likewise for "redeclaration of %<enum %E%>" error. | |
125 | (check_for_loop_decls): Likewise for pre-C99 error. | |
126 | ||
445ba599 GA |
127 | 2022-06-07 Jakub Jelinek <jakub@redhat.com> |
128 | ||
129 | * c-parser.cc (c_parser_omp_clause_linear): Parse OpenMP 5.2 | |
130 | style linear clause modifiers. Set | |
131 | OMP_CLAUSE_LINEAR_OLD_LINEAR_MODIFIER flag on the clauses when | |
132 | old style modifiers are used. | |
133 | * c-typeck.cc (c_finish_omp_clauses): Only reject linear clause | |
134 | with val modifier on simd or for if the old style modifiers are | |
135 | used. | |
136 | ||
b168441c GA |
137 | 2022-06-02 David Malcolm <dmalcolm@redhat.com> |
138 | ||
139 | * c-lang.cc (LANG_HOOKS_GET_SARIF_SOURCE_LANGUAGE): Redefine. | |
140 | (c_get_sarif_source_language): New. | |
141 | * c-tree.h (c_get_sarif_source_language): New decl. | |
142 | ||
820ead45 GA |
143 | 2022-05-31 Jason Merrill <jason@redhat.com> |
144 | ||
145 | * Make-lang.in (c.tags): Look at *.cc. | |
146 | ||
147 | 2022-05-31 Jakub Jelinek <jakub@redhat.com> | |
148 | ||
149 | * c-parser.cc (OMP_SCOPE_CLAUSE_MASK): Add firstprivate and allocate | |
150 | clauses. | |
151 | ||
37b3b5da GA |
152 | 2022-05-28 Jakub Jelinek <jakub@redhat.com> |
153 | ||
154 | * c-parser.cc (c_parser_omp_declare_target): If OMP_CLAUSE_LINK was | |
155 | seen first, use "%<to%>" or "%<enter%>" depending on | |
156 | OMP_CLAUSE_ENTER_TO of the current clause, otherwise use | |
157 | "%<to%> or %<enter%>" wording. | |
158 | ||
d9176e64 GA |
159 | 2022-05-27 Jakub Jelinek <jakub@redhat.com> |
160 | ||
161 | * c-parser.cc (c_parser_omp_clause_name): Parse enter clause. | |
162 | (c_parser_omp_all_clauses): For to clause on declare target, use | |
163 | OMP_CLAUSE_ENTER clause with OMP_CLAUSE_ENTER_TO instead of | |
164 | OMP_CLAUSE_TO_DECLARE clause. Handle PRAGMA_OMP_CLAUSE_ENTER. | |
165 | (OMP_DECLARE_TARGET_CLAUSE_MASK): Add enter clause. | |
166 | (c_parser_omp_declare_target): Use OMP_CLAUSE_ENTER instead of | |
167 | OMP_CLAUSE_TO_DECLARE. | |
168 | * c-typeck.cc (c_finish_omp_clauses): Handle OMP_CLAUSE_ENTER instead | |
169 | of OMP_CLAUSE_TO_DECLARE, to OMP_CLAUSE_ENTER_TO use "to" as clause | |
170 | name in diagnostics instead of | |
171 | omp_clause_code_name[OMP_CLAUSE_CODE (c)]. | |
172 | ||
3dff965c GA |
173 | 2022-05-25 Jakub Jelinek <jakub@redhat.com> |
174 | ||
175 | PR c/91134 | |
176 | * c-tree.h (build_component_ref): Add ARROW_LOC location_t argument. | |
177 | * c-typeck.cc (build_component_ref): Likewise. If DATUM is | |
178 | INDIRECT_REF and ARROW_LOC isn't UNKNOWN_LOCATION, print a different | |
179 | diagnostic and fixit hint if DATUM has pointer type. | |
180 | * c-parser.cc (c_parser_postfix_expression, | |
181 | c_parser_omp_variable_list): Adjust build_component_ref callers. | |
182 | * gimple-parser.cc (c_parser_gimple_postfix_expression_after_primary): | |
183 | Likewise. | |
184 | ||
768f49a2 GA |
185 | 2022-05-24 Jakub Jelinek <jakub@redhat.com> |
186 | ||
187 | PR c/105378 | |
188 | * c-parser.cc (OMP_TASKWAIT_CLAUSE_MASK): Add nowait clause. | |
189 | ||
1cda629f GA |
190 | 2022-05-18 Marek Polacek <polacek@redhat.com> |
191 | ||
192 | PR c/105131 | |
193 | * c-decl.cc (diagnose_mismatched_decls): Warn about enum/integer type | |
194 | mismatches. | |
195 | * c-tree.h (comptypes_check_enum_int): Declare. | |
196 | * c-typeck.cc (comptypes): No longer static. | |
197 | ||
3d9439b1 GA |
198 | 2022-05-17 Marek Polacek <polacek@redhat.com> |
199 | ||
200 | * c-decl.cc (finish_enum): Store the CONST_DECL into TREE_VALUE, not | |
201 | its value. | |
202 | ||
203 | 2022-05-17 Jakub Jelinek <jakub@redhat.com> | |
204 | ||
205 | * c-parser.cc (c_parser_omp_clause_depend): Parse | |
206 | inoutset depend-kind. | |
207 | (c_parser_omp_depobj): Likewise. | |
208 | ||
702bd11f GA |
209 | 2022-05-16 Martin Liska <mliska@suse.cz> |
210 | ||
211 | * c-decl.cc (match_builtin_function_types): Use ARRAY_SIZE. | |
212 | ||
49ace834 GA |
213 | 2022-05-12 Jakub Jelinek <jakub@redhat.com> |
214 | ||
215 | * c-parser.cc (c_parse_init): Register omp_all_memory as keyword | |
216 | if flag_openmp. | |
217 | (c_parser_postfix_expression): Diagnose uses of omp_all_memory | |
218 | in postfix expressions. | |
219 | (c_parser_omp_variable_list): Handle omp_all_memory in depend | |
220 | clause. | |
221 | * c-typeck.cc (c_finish_omp_clauses): Handle omp_all_memory | |
222 | keyword in depend clause as null_pointer_node, diagnose invalid | |
223 | uses. | |
224 | ||
bd022ff9 GA |
225 | 2022-05-09 Martin Liska <mliska@suse.cz> |
226 | ||
227 | * c-parser.cc (c_parser_conditional_expression): Use {,UN}LIKELY | |
228 | macros. | |
229 | (c_parser_binary_expression): Likewise. | |
230 | ||
a1947c92 GA |
231 | 2022-05-07 Marek Polacek <polacek@redhat.com> |
232 | ||
233 | PR c++/101833 | |
234 | PR c++/47634 | |
235 | * c-objc-common.cc (maybe_adjust_arg_pos_for_attribute): New. | |
236 | ||
405eda0d GA |
237 | 2022-04-08 Jakub Jelinek <jakub@redhat.com> |
238 | ||
239 | PR c/105149 | |
240 | * c-typeck.cc (c_build_va_arg): Reject function types. | |
241 | ||
a2287813 GA |
242 | 2022-03-22 Marek Polacek <polacek@redhat.com> |
243 | ||
244 | PR c/82283 | |
245 | PR c/84685 | |
246 | * c-typeck.cc (struct initializer_stack): Add 'designated' member. | |
247 | (start_init): Set it. | |
248 | (finish_init): Restore constructor_designated. | |
249 | (push_init_level): Set constructor_designated to the value of | |
250 | constructor_designated in the upper constructor_stack. | |
251 | ||
57eeedda GA |
252 | 2022-03-12 Thomas Schwinge <thomas@codesourcery.com> |
253 | ||
254 | PR other/65095 | |
255 | * c-typeck.cc (handle_omp_array_sections_1) | |
256 | (c_oacc_check_attachments): Call 'user_omp_clause_code_name' | |
257 | instead of 'c_omp_map_clause_name'. | |
258 | ||
8cc4f9cd GA |
259 | 2022-03-09 Joseph Myers <joseph@codesourcery.com> |
260 | ||
261 | * c-typeck.cc (function_types_compatible_p): Do not handle C2X | |
262 | differently from earlier standards for unprototyped function type | |
263 | compatibility. | |
264 | ||
265 | 2022-03-09 Jakub Jelinek <jakub@redhat.com> | |
266 | ||
267 | PR c/104711 | |
268 | * c-fold.cc (c_fully_fold_internal): Don't emit | |
269 | -Wshift-negative-value warning if TYPE_OVERFLOW_WRAPS. | |
270 | * c-typeck.cc (build_binary_op): Likewise. | |
271 | ||
e6533e2e GA |
272 | 2022-03-07 Jakub Jelinek <jakub@redhat.com> |
273 | ||
274 | * c-parser.cc (c_parser_omp_clause_map): Add missing space in string | |
275 | literal. | |
276 | ||
4bf3bac1 GA |
277 | 2022-02-23 Richard Biener <rguenther@suse.de> |
278 | ||
279 | * gimple-parser.cc (c_parser_parse_gimple_body): Diagnose | |
280 | SSA names without definition. | |
281 | (c_parser_gimple_declaration): Handle pointer typed SSA names. | |
282 | ||
0bdb0498 GA |
283 | 2022-02-17 Jakub Jelinek <jakub@redhat.com> |
284 | ||
285 | PR c/104532 | |
286 | * c-parser.cc (c_parser_omp_variable_list): For CPP_DEREF, use | |
287 | convert_lvalue_to_rvalue and build_indirect_ref instead of | |
288 | build_simple_mem_ref. | |
289 | ||
e8d68f0a GA |
290 | 2022-02-11 Richard Biener <rguenther@suse.de> |
291 | ||
292 | * gimple-parser.cc (c_parser_gimple_statement): Properly parse | |
293 | VEC_COND_EXPRs. | |
294 | ||
a645583d GA |
295 | 2022-02-10 Marcel Vollweiler <marcel@codesourcery.com> |
296 | ||
297 | * c-parser.cc (c_parser_omp_clause_name): Parse 'has_device_addr' | |
298 | clause. | |
299 | (c_parser_omp_variable_list): Handle array sections. | |
300 | (c_parser_omp_clause_has_device_addr): Added. | |
301 | (c_parser_omp_all_clauses): Added PRAGMA_OMP_CLAUSE_HAS_DEVICE_ADDR | |
302 | case. | |
303 | (c_parser_omp_target_exit_data): Added HAS_DEVICE_ADDR to | |
304 | OMP_CLAUSE_MASK. | |
305 | * c-typeck.cc (handle_omp_array_sections): Handle clause restrictions. | |
306 | (c_finish_omp_clauses): Handle array sections. | |
307 | ||
3adf509f GA |
308 | 2022-02-09 Jakub Jelinek <jakub@redhat.com> |
309 | ||
310 | PR c/104427 | |
311 | * c-parser.cc (c_parser_postfix_expression) | |
312 | <case RID_BUILTIN_ASSOC_BARRIER>: Use parser_build_unary_op | |
313 | instead of build1_loc to build PAREN_EXPR. | |
314 | * c-typeck.cc (build_unary_op): Handle PAREN_EXPR. | |
315 | * c-fold.cc (c_fully_fold_internal): Likewise. | |
316 | ||
fc829782 GA |
317 | 2022-01-17 Martin Liska <mliska@suse.cz> |
318 | ||
319 | * Make-lang.in: Rename .c names to .cc. | |
320 | * c-convert.cc: Likewise. | |
321 | * c-decl.cc (struct lang_identifier): Likewise. | |
322 | (pop_scope): Likewise. | |
323 | (finish_decl): Likewise. | |
324 | * c-objc-common.h (GCC_C_OBJC_COMMON): Likewise. | |
325 | * c-parser.cc (c_parser_skip_to_end_of_block_or_statement): Likewise. | |
326 | * c-parser.h (GCC_C_PARSER_H): Likewise. | |
327 | * c-tree.h (c_keyword_starts_typename): Likewise. | |
328 | (finish_declspecs): Likewise. | |
329 | (c_get_alias_set): Likewise. | |
330 | (enum c_oracle_request): Likewise. | |
331 | (tag_exists_p): Likewise. | |
332 | (set_c_expr_source_range): Likewise. | |
333 | * c-typeck.cc (c_common_type): Likewise. | |
334 | (c_finish_omp_clauses): Likewise. | |
335 | * config-lang.in: Likewise. | |
336 | ||
337 | 2022-01-17 Martin Liska <mliska@suse.cz> | |
338 | ||
339 | * c-aux-info.c: Moved to... | |
340 | * c-aux-info.cc: ...here. | |
341 | * c-convert.c: Moved to... | |
342 | * c-convert.cc: ...here. | |
343 | * c-decl.c: Moved to... | |
344 | * c-decl.cc: ...here. | |
345 | * c-errors.c: Moved to... | |
346 | * c-errors.cc: ...here. | |
347 | * c-fold.c: Moved to... | |
348 | * c-fold.cc: ...here. | |
349 | * c-lang.c: Moved to... | |
350 | * c-lang.cc: ...here. | |
351 | * c-objc-common.c: Moved to... | |
352 | * c-objc-common.cc: ...here. | |
353 | * c-parser.c: Moved to... | |
354 | * c-parser.cc: ...here. | |
355 | * c-typeck.c: Moved to... | |
356 | * c-typeck.cc: ...here. | |
357 | * gccspec.c: Moved to... | |
358 | * gccspec.cc: ...here. | |
359 | * gimple-parser.c: Moved to... | |
360 | * gimple-parser.cc: ...here. | |
361 | ||
362 | 2022-01-17 Andrew Stubbs <ams@codesourcery.com> | |
363 | ||
364 | * c-parser.c (c_parser_omp_requires): Don't "sorry" dynamic_allocators. | |
365 | ||
617db51d GA |
366 | 2022-01-14 Chung-Lin Tang <cltang@codesourcery.com> |
367 | ||
368 | PR c++/103705 | |
369 | * c-typeck.c (c_finish_omp_clauses): Also continue peeling off of | |
370 | outer node for ARRAY_REFs. | |
371 | ||
62eb5308 GA |
372 | 2022-01-01 Jakub Jelinek <jakub@redhat.com> |
373 | ||
374 | PR objc/103639 | |
375 | * c-typeck.c (c_finish_bc_stmt): For break inside of switch inside of | |
376 | ObjC foreach, emit normal BREAK_STMT rather than goto to label. | |
377 | ||
2554e2da GA |
378 | 2021-12-17 Marek Polacek <polacek@redhat.com> |
379 | ||
380 | PR c/103649 | |
381 | * c-decl.c (c_warn_unused_attributes): Don't warn for | |
382 | attribute_ignored_p. | |
383 | * c-parser.c (c_parser_std_attribute): Skip parsing of the attribute | |
384 | arguments when the attribute is ignored. | |
385 | ||
9c6586bc GA |
386 | 2021-12-14 Jakub Jelinek <jakub@redhat.com> |
387 | ||
388 | PR c/103587 | |
389 | * c-parser.c (c_parser_balanced_token_sequence): For CPP_PRAGMA, | |
390 | consume the pragma and silently skip to the pragma eol. | |
391 | ||
c8dcf64b GA |
392 | 2021-12-12 Jonathan Wakely <jwakely@redhat.com> |
393 | ||
394 | * c-decl.c: Define INCLUDE_MEMORY instead of INCLUDE_UNIQUE_PTR. | |
395 | * c-parser.c: Likewise. | |
396 | ||
4b4839e3 GA |
397 | 2021-12-09 Jakub Jelinek <jakub@redhat.com> |
398 | ||
399 | PR pch/71934 | |
400 | * c-decl.c (resort_field_decl_cmp): Pass the same pointer twice | |
401 | to resort_data.new_value. | |
402 | ||
641ff219 GA |
403 | 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com> |
404 | ||
405 | * c-parser.c (struct omp_dim): New struct type for use inside | |
406 | c_parser_omp_variable_list. | |
407 | (c_parser_omp_variable_list): Allow multiple levels of array and | |
408 | component accesses in array section base-pointer expression. | |
409 | (c_parser_omp_clause_to): Set 'allow_deref' to true in call to | |
410 | c_parser_omp_var_list_parens. | |
411 | (c_parser_omp_clause_from): Likewise. | |
412 | * c-typeck.c (handle_omp_array_sections_1): Extend allowed range | |
413 | of base-pointer expressions involving INDIRECT/MEM/ARRAY_REF and | |
414 | POINTER_PLUS_EXPR. | |
415 | (c_finish_omp_clauses): Extend allowed ranged of expressions | |
416 | involving INDIRECT/MEM/ARRAY_REF and POINTER_PLUS_EXPR. | |
417 | ||
418 | 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com> | |
419 | ||
420 | PR middle-end/92120 | |
421 | * c-parser.c (c_parser_omp_clause_map): Set 'allow_deref' argument in | |
422 | call to c_parser_omp_variable_list to 'true'. | |
423 | * c-typeck.c (handle_omp_array_sections_1): Add strip of MEM_REF in | |
424 | array base handling. | |
425 | (c_finish_omp_clauses): Handle 'A->member' case in map clauses. | |
426 | ||
c177e806 GA |
427 | 2021-11-30 Thomas Schwinge <thomas@codesourcery.com> |
428 | ||
429 | * c-typeck.c (c_finish_omp_clauses): Remove "gang reduction on an | |
430 | orphan loop" checking. | |
431 | ||
432 | 2021-11-30 Cesar Philippidis <cesar@codesourcery.com> | |
433 | Thomas Schwinge <thomas@codesourcery.com> | |
434 | ||
435 | * c-typeck.c (c_finish_omp_clauses): Emit an error on orphan | |
436 | OpenACC gang reductions. | |
437 | ||
438 | 2021-11-30 Richard Biener <rguenther@suse.de> | |
439 | ||
440 | * gimple-parser.c (c_parser_gimple_postfix_expression): | |
441 | avoid unreachable code after break. | |
442 | ||
87cd82c8 GA |
443 | 2021-11-29 Eric Gallager <egallager@gcc.gnu.org> |
444 | ||
445 | PR other/103021 | |
446 | * Make-lang.in: Use ETAGS variable in TAGS target. | |
447 | ||
448 | 2021-11-29 Richard Biener <rguenther@suse.de> | |
449 | ||
450 | * c-typeck.c (c_tree_equal): Remove unreachable return. | |
451 | * c-parser.c (get_matching_symbol): Likewise. | |
452 | ||
e1d43592 GA |
453 | 2021-11-23 Jakub Jelinek <jakub@redhat.com> |
454 | ||
455 | * c-typeck.c (c_clone_omp_udr): Don't initialize | |
456 | id.transform_lang_insert_block. | |
457 | ||
9c077398 GA |
458 | 2021-11-19 Martin Sebor <msebor@redhat.com> |
459 | ||
460 | PR c++/33925 | |
461 | PR c/102867 | |
462 | * c-typeck.c (maybe_warn_for_null_address): Suppress warnings for | |
463 | code resulting from macro expansion. | |
464 | ||
465 | 2021-11-19 Martin Liska <mliska@suse.cz> | |
466 | ||
467 | Revert: | |
468 | 2021-11-19 Martin Liska <mliska@suse.cz> | |
469 | ||
470 | * c-parser.c (add_debug_begin_stmt): Use option directly. | |
471 | ||
483092d3 GA |
472 | 2021-11-18 Matthias Kretz <m.kretz@gsi.de> |
473 | ||
474 | * c-decl.c (names_builtin_p): Handle RID_BUILTIN_ASSOC_BARRIER. | |
475 | * c-parser.c (c_parser_postfix_expression): Likewise. | |
476 | ||
477 | 2021-11-18 Martin Liska <mliska@suse.cz> | |
478 | ||
479 | * c-parser.c (add_debug_begin_stmt): Use option directly. | |
480 | ||
280d2838 GA |
481 | 2021-11-17 Martin Sebor <msebor@redhat.com> |
482 | ||
483 | PR c/101702 | |
484 | * c-decl.c (get_parm_array_spec): Strip casts earlier and fold array | |
485 | bounds before deciding if they're constant. | |
486 | ||
e2b57363 GA |
487 | 2021-11-15 Jakub Jelinek <jakub@redhat.com> |
488 | ||
489 | * c-parser.c (OMP_TARGET_CLAUSE_MASK): Add | |
490 | PRAGMA_OMP_CLAUSE_THREAD_LIMIT. | |
491 | ||
b39265d4 GA |
492 | 2021-11-11 Jakub Jelinek <jakub@redhat.com> |
493 | ||
494 | * c-parser.c (c_parser_omp_clause_num_teams): Parse optional | |
495 | lower-bound and store it into OMP_CLAUSE_NUM_TEAMS_LOWER_EXPR. | |
496 | Use OMP_CLAUSE_NUM_TEAMS_UPPER_EXPR instead of | |
497 | OMP_CLAUSE_NUM_TEAMS_EXPR. | |
498 | (c_parser_omp_target): For OMP_CLAUSE_NUM_TEAMS evaluate before | |
499 | combined target teams even lower-bound expression. | |
500 | ||
501 | 2021-11-11 Richard Biener <rguenther@suse.de> | |
502 | ||
503 | * gimple-parser.c: Shuffle bitmap.h include. | |
504 | ||
18ae471f GA |
505 | 2021-11-03 Joseph Myers <joseph@codesourcery.com> |
506 | ||
507 | PR c/103031 | |
508 | * c-convert.c (c_convert): New function, based on convert. | |
509 | (convert): Make into wrapper of c_convert. | |
510 | (convert_init): New function. | |
511 | * c-typeck.c (enum impl_conv): Add ic_init_const. | |
512 | (convert_for_assignment): Handle ic_init_const like ic_init. Add | |
513 | new argument to convert_and_check call. | |
514 | (digest_init): Pass ic_init_const to convert_for_assignment for | |
515 | initializers required to be constant. | |
516 | ||
b4df2dd3 GA |
517 | 2021-11-02 Richard Sandiford <richard.sandiford@arm.com> |
518 | ||
519 | * c-tree.h (c_simulate_record_decl): Declare. | |
520 | * c-objc-common.h (LANG_HOOKS_SIMULATE_RECORD_DECL): Override. | |
521 | * c-decl.c (c_simulate_record_decl): New function. | |
522 | ||
c2bd5d8a GA |
523 | 2021-10-22 Eric Gallager <egallager@gcc.gnu.org> |
524 | ||
525 | PR other/102663 | |
526 | * Make-lang.in: Add dummy c.install-dvi target. | |
527 | ||
93d183a5 GA |
528 | 2021-10-15 Richard Biener <rguenther@suse.de> |
529 | ||
530 | PR c/102763 | |
531 | * gimple-parser.c | |
532 | (c_parser_gimple_postfix_expression_after_primary): Check | |
533 | for a pointer do be dereferenced by ->. | |
534 | ||
5d5885c9 GA |
535 | 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com> |
536 | ||
537 | * c-parser.c (c_finish_omp_declare_variant): Change call from | |
538 | c_omp_check_context_selector to omp_check_context_selector. Change | |
539 | call from c_omp_mark_declare_variant to omp_mark_declare_variant. | |
540 | ||
c9db17b8 GA |
541 | 2021-10-09 Jakub Jelinek <jakub@redhat.com> |
542 | ||
543 | * c-parser.c (c_parser_omp_structured_block_sequence): New function. | |
544 | (c_parser_omp_scan_loop_body): Use it. | |
545 | (c_parser_omp_sections_scope): Likewise. | |
546 | ||
50e20ee6 GA |
547 | 2021-10-07 Richard Biener <rguenther@suse.de> |
548 | ||
549 | * c-typeck.c (lvalue_p): Also allow MEM_REF and TARGET_MEM_REF. | |
550 | ||
bb6194e0 GA |
551 | 2021-10-05 Richard Biener <rguenther@suse.de> |
552 | ||
553 | PR c/102605 | |
554 | * gimple-parser.c (c_parser_gimple_postfix_expression): | |
555 | Accept more address _Literals. | |
556 | ||
da9c5f78 GA |
557 | 2021-10-04 Marek Polacek <polacek@redhat.com> |
558 | ||
559 | PR c++/97573 | |
560 | * c-typeck.c (parser_build_binary_op): Call do_warn_array_compare. | |
561 | ||
9d116bcc GA |
562 | 2021-10-01 Martin Sebor <msebor@redhat.com> |
563 | ||
564 | PR c/102103 | |
565 | * c-typeck.c (maybe_warn_for_null_address): New function. | |
566 | (build_binary_op): Call it. | |
567 | ||
568 | 2021-10-01 Jakub Jelinek <jakub@redhat.com> | |
569 | Richard Biener <rguenther@suse.de> | |
570 | ||
571 | PR sanitizer/102515 | |
572 | * c-typeck.c (build_binary_op): Call ubsan_instrument_division | |
573 | for division even for SANITIZE_SI_OVERFLOW. | |
574 | ||
575 | 2021-10-01 Jakub Jelinek <jakub@redhat.com> | |
576 | ||
577 | * c-parser.c (c_parser_omp_clause_order): Set | |
578 | OMP_CLAUSE_ORDER_REPRODUCIBLE for explicit reproducible: modifier. | |
579 | ||
fd133479 GA |
580 | 2021-09-28 Andrew Pinski <apinski@marvell.com> |
581 | ||
582 | PR c/32122 | |
583 | * c-parser.c (c_parser_statement_after_labels): Pass | |
584 | the c_expr instead of the tree to c_finish_goto_ptr. | |
585 | * c-typeck.c (c_finish_goto_ptr): Change the second | |
586 | argument type to c_expr. | |
587 | * c-tree.h (c_finish_goto_ptr): Likewise. | |
588 | Error out if the expression was not of a pointer type. | |
589 | ||
e4777439 GA |
590 | 2021-09-22 Jakub Jelinek <jakub@redhat.com> |
591 | ||
592 | * c-parser.c (c_parser_omp_clause_allocate): Parse allocate clause | |
593 | modifiers. | |
594 | ||
cf74e7b5 GA |
595 | 2021-09-18 Jakub Jelinek <jakub@redhat.com> |
596 | ||
597 | * c-parser.c (c_parser_omp_clause_order): Parse unconstrained | |
598 | and reproducible modifiers. | |
599 | (OMP_DISTRIBUTE_CLAUSE_MASK): Add order clause. | |
600 | ||
601 | 2021-09-18 Jakub Jelinek <jakub@redhat.com> | |
602 | ||
603 | * c-parser.c (c_parser_omp_clause_default): Handle private and | |
604 | firstprivate arguments, adjust diagnostics on unknown argument. | |
605 | ||
0a4cb439 GA |
606 | 2021-09-17 Jakub Jelinek <jakub@redhat.com> |
607 | ||
608 | * c-parser.c (c_parser_omp_atomic): Reject atomic swap if capture | |
609 | is true. | |
610 | ||
a26206ec GA |
611 | 2021-09-10 Jakub Jelinek <jakub@redhat.com> |
612 | ||
613 | * c-parser.c (c_parser_conditional_expression): If omp_atomic_lhs and | |
614 | cond.value is >, < or == with omp_atomic_lhs as one of the operands, | |
615 | don't call build_conditional_expr, instead build a COND_EXPR directly. | |
616 | (c_parser_binary_expression): Avoid calling parser_build_binary_op | |
617 | if omp_atomic_lhs even in more cases for >, < or ==. | |
618 | (c_parser_omp_atomic): Update function comment for OpenMP 5.1 atomics, | |
619 | parse OpenMP 5.1 atomics and fail, compare and weak clauses, allow | |
620 | acq_rel on atomic read/write and acq_rel/acquire clauses on update. | |
621 | * c-typeck.c (build_binary_op): For flag_openmp only handle | |
622 | MIN_EXPR/MAX_EXPR. | |
623 | ||
b2748138 GA |
624 | 2021-09-07 Marcel Vollweiler <marcel@codesourcery.com> |
625 | ||
626 | * c-parser.c (c_parser_omp_flush): Parse 'seq_cst' clause on 'flush' | |
627 | directive. | |
628 | ||
e11c6046 GA |
629 | 2021-09-01 Iain Sandoe <iain@sandoe.co.uk> |
630 | ||
631 | * c-decl.c (enum deprecated_states): Add unavailable state. | |
632 | (merge_decls): Copy unavailability. | |
633 | (quals_from_declspecs): Handle unavailable case. | |
634 | (start_decl): Amend the logic handling suppression of nested | |
635 | deprecation states to include unavailability. | |
636 | (smallest_type_quals_location): Amend comment. | |
637 | (grokdeclarator): Handle the unavailable deprecation state. | |
638 | (declspecs_add_type): Set TREE_UNAVAILABLE from the decl specs. | |
639 | * c-tree.h (struct c_declspecs): Add unavailable_p. | |
640 | * c-typeck.c (build_component_ref): Handle unavailability. | |
641 | (build_external_ref): Likewise. | |
642 | ||
643 | 2021-09-01 Roger Sayle <roger@nextmovesoftware.com> | |
644 | Joseph Myers <joseph@codesourcery.com> | |
645 | ||
646 | PR c/79412 | |
647 | * c-decl.c (duplicate_decls): On significant mismatches, mark the | |
648 | types of both (non-function) decls as error_mark_node, so that the | |
649 | middle-end can see the code is malformed. | |
650 | (free_attr_access_data): Don't process if the type has been set to | |
651 | error_mark_node. | |
652 | ||
6d51ee43 GA |
653 | 2021-08-31 Marcel Vollweiler <marcel@codesourcery.com> |
654 | ||
655 | * c-parser.c (c_parser_omp_clause_device): Parse device-modifiers 'device_num' | |
656 | and 'ancestor' in 'target device' clauses. | |
657 | ||
38b19c5b GA |
658 | 2021-08-23 Jakub Jelinek <jakub@redhat.com> |
659 | ||
660 | * c-parser.c (c_parser_omp_clause_num_tasks, | |
661 | c_parser_omp_clause_grainsize): Parse the optional strict: modifier. | |
662 | ||
5b2876f9 GA |
663 | 2021-08-22 Martin Uecker <muecker@gwdg.de> |
664 | ||
665 | PR c/98397 | |
666 | * c-typeck.c (comp_target_types): Change pedwarn to pedwarn_c11 | |
667 | for pointers to arrays with qualifiers. | |
668 | (build_conditional_expr): For C23 don't lose qualifiers for pointers | |
669 | to arrays when the other pointer is a void pointer. Update warnings. | |
670 | (convert_for_assignment): Update warnings for C2X when converting from | |
671 | void* with qualifiers to a pointer to array with the same qualifiers. | |
672 | ||
7c9e1645 GA |
673 | 2021-08-20 Jakub Jelinek <jakub@redhat.com> |
674 | ||
675 | * c-parser.c (c_parser_omp_error): New function. | |
676 | (c_parser_pragma): Handle PRAGMA_OMP_ERROR. | |
677 | ||
678 | 2021-08-20 Jakub Jelinek <jakub@redhat.com> | |
679 | ||
680 | * c-parser.c (c_parser_omp_clause_depend_sink): Reject spurious | |
681 | comma at the end of list. | |
682 | (c_parser_omp_requires): Likewise. | |
683 | ||
b57fba5e GA |
684 | 2021-08-19 Jakub Jelinek <jakub@redhat.com> |
685 | ||
686 | * c-parser.c (c_parser_omp_requires): Don't call | |
687 | c_parser_peek_2nd_token and optionally consume token if current | |
688 | token is CPP_EOF, CPP_PRAGMA_EOL or CPP_CLOSE_PAREN. | |
689 | ||
6e529985 GA |
690 | 2021-08-18 Jakub Jelinek <jakub@redhat.com> |
691 | ||
692 | * c-parser.c (c_parser_omp_nothing): New function. | |
693 | (c_parser_pragma): Handle PRAGMA_OMP_NOTHING. | |
694 | ||
695 | 2021-08-18 Jakub Jelinek <jakub@redhat.com> | |
696 | ||
697 | * c-parser.c (c_parser_statement_after_labels): Add restart label | |
698 | near the start of the function. If c_parser_pragma returns false, | |
699 | goto restart. | |
700 | (c_parser_pragma): For PRAGMA_OMP_CANCELLATION_POINT return what | |
701 | c_parser_omp_cancellation_point returned. For PRAGMA_OMP_DECLARE | |
702 | return what c_parser_omp_declare returned. Return true instead of | |
703 | false after emitting errors that the directive is not allowed in | |
704 | pragma_stmt context. | |
705 | (c_parser_omp_ordered): Return true instead of | |
706 | false after emitting errors that the directive is not allowed in | |
707 | pragma_stmt context. | |
708 | (c_parser_omp_target_update): Likewise. | |
709 | (c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): | |
710 | Change return type from tree to bool, return false if the | |
711 | directive should be ignored in pragma_stmt contexts. | |
712 | (c_parser_omp_target): Adjust callers of c_parser_omp_target_*_data, | |
713 | return their result directly. | |
714 | (c_parser_omp_cancellation_point): Change return type from void to | |
715 | bool, return false if the directive should be ignored in pragma_stmt | |
716 | contexts. | |
717 | (c_parser_omp_declare): Likewise. | |
718 | ||
2d14d64b GA |
719 | 2021-08-17 Jakub Jelinek <jakub@redhat.com> |
720 | ||
721 | * c-parser.c (OMP_SCOPE_CLAUSE_MASK): Define. | |
722 | (c_parser_omp_scope): New function. | |
723 | (c_parser_omp_construct): Handle PRAGMA_OMP_SCOPE. | |
724 | ||
72be20e2 GA |
725 | 2021-08-12 Jakub Jelinek <jakub@redhat.com> |
726 | ||
727 | * c-parser.c (c_parser_omp_clause_name): Parse filter clause name. | |
728 | (c_parser_omp_clause_filter): New function. | |
729 | (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FILTER. | |
730 | (OMP_MASKED_CLAUSE_MASK): Define. | |
731 | (c_parser_omp_masked): New function. | |
732 | (c_parser_omp_parallel): Handle parallel masked. | |
733 | (c_parser_omp_construct): Handle PRAGMA_OMP_MASKED. | |
734 | * c-typeck.c (c_finish_omp_clauses): Handle OMP_CLAUSE_FILTER. | |
735 | ||
736 | 2021-08-12 Martin Uecker <muecker@gwdg.de> | |
737 | ||
738 | PR c/101838 | |
739 | PR c/29970 | |
740 | * c-typeck.c (c_expr_sizeof_type): Evaluate | |
741 | size expressions for structs of variable size. | |
742 | ||
743 | 2021-08-12 Tobias Burnus <tobias@codesourcery.com> | |
744 | ||
745 | * c-parser.c (c_parser_omp_clause_proc_bind): Accept | |
746 | 'primary' as alias for 'master'. | |
747 | ||
3ae564ea GA |
748 | 2021-08-10 Martin Uecker <muecker@gwdg.de> |
749 | ||
750 | PR c/29970 | |
751 | * c-typeck.c (c_expr_sizeof_expr): Evaluate | |
752 | size expressions for structs of variable size. | |
753 | ||
f92f4778 GA |
754 | 2021-08-06 Tamar Christina <tamar.christina@arm.com> |
755 | ||
756 | * c-decl.c (c_simulate_enum_decl): Pass vec<> by pointer. | |
757 | * c-tree.h (c_simulate_enum_decl): Likewise. | |
758 | ||
759 | 2021-08-06 Martin Sebor <msebor@redhat.com> | |
760 | ||
761 | * c-parser.c (c_parser_declaration_or_fndef): Adjust by-value function | |
762 | vec arguments to by-reference. | |
763 | (c_finish_omp_declare_simd): Same. | |
764 | (c_parser_compound_statement_nostart): Same. | |
765 | (c_parser_for_statement): Same. | |
766 | (c_parser_objc_methodprotolist): Same. | |
767 | (c_parser_oacc_routine): Same. | |
768 | (c_parser_omp_for_loop): Same. | |
769 | (c_parser_omp_declare_simd): Same. | |
770 | ||
419c6c68 GA |
771 | 2021-07-21 Thomas Schwinge <thomas@codesourcery.com> |
772 | Joseph Myers <joseph@codesourcery.com> | |
773 | Cesar Philippidis <cesar@codesourcery.com> | |
774 | ||
775 | * c-parser.c (c_parser_omp_clause_name): Handle 'nohost'. | |
776 | (c_parser_oacc_all_clauses): Handle 'PRAGMA_OACC_CLAUSE_NOHOST'. | |
777 | (OACC_ROUTINE_CLAUSE_MASK): Add 'PRAGMA_OACC_CLAUSE_NOHOST'. | |
778 | * c-typeck.c (c_finish_omp_clauses): Handle 'OMP_CLAUSE_NOHOST'. | |
779 | ||
92d45509 GA |
780 | 2021-07-20 Martin Sebor <msebor@redhat.com> |
781 | ||
782 | * c-tree.h (c_build_function_call_vec): Adjust by-value argument to | |
783 | by-const-reference. | |
784 | * c-typeck.c (c_build_function_call_vec): Same. | |
785 | ||
d97d71a1 GA |
786 | 2021-07-15 Martin Sebor <msebor@redhat.com> |
787 | ||
788 | PR c/101289 | |
789 | PR c/97548 | |
790 | * c-decl.c (get_parm_array_spec): Strip nops. | |
791 | ||
6fba0eea GA |
792 | 2021-07-06 Martin Sebor <msebor@redhat.com> |
793 | ||
794 | * c-objc-common.c (c_tree_printer): Remove support for %G and %K. | |
795 | ||
7a60a6e8 GA |
796 | 2021-07-02 Jakub Jelinek <jakub@redhat.com> |
797 | ||
798 | PR c/101297 | |
799 | * c-parser.c (c_parser_omp_atomic): Consume comma only if it | |
800 | appears before a CPP_NAME. | |
801 | ||
90708f87 GA |
802 | 2021-06-25 Martin Sebor <msebor@redhat.com> |
803 | ||
804 | * c-decl.c (pop_scope): Replace direct uses of TREE_NO_WARNING with | |
805 | warning_suppressed_p, suppress_warning, and copy_no_warning. | |
806 | (diagnose_mismatched_decls): Same. | |
807 | (duplicate_decls): Same. | |
808 | (grokdeclarator): Same. | |
809 | (finish_function): Same. | |
810 | (c_write_global_declarations_1): Same. | |
811 | * c-fold.c (c_fully_fold_internal): Same. | |
812 | * c-parser.c (c_parser_expr_no_commas): Same. | |
813 | (c_parser_postfix_expression): Same. | |
814 | * c-typeck.c (array_to_pointer_conversion): Same. | |
815 | (function_to_pointer_conversion): Same. | |
816 | (default_function_array_conversion): Same. | |
817 | (convert_lvalue_to_rvalue): Same. | |
818 | (default_conversion): Same. | |
819 | (build_indirect_ref): Same. | |
820 | (build_function_call_vec): Same. | |
821 | (build_atomic_assign): Same. | |
822 | (build_unary_op): Same. | |
823 | (c_finish_return): Same. | |
824 | (emit_side_effect_warnings): Same. | |
825 | (c_finish_stmt_expr): Same. | |
826 | (c_omp_clause_copy_ctor): Same. | |
827 | ||
9aa8327e GA |
828 | 2021-06-24 Jakub Jelinek <jakub@redhat.com> |
829 | ||
830 | PR c/101176 | |
831 | * c-parser.c (c_parser_has_attribute_expression): Set source range for | |
832 | the result. | |
833 | ||
834 | 2021-06-24 Jakub Jelinek <jakub@redhat.com> | |
835 | ||
836 | PR c/101171 | |
837 | * c-typeck.c (build_c_cast): Don't call note_integer_operands on | |
838 | error_mark_node. | |
839 | ||
840 | 2021-06-24 Jakub Jelinek <jakub@redhat.com> | |
841 | ||
842 | * c-parser.c (omp_split_clauses): Pass C_ORT_OMP_TARGET instead of | |
843 | C_ORT_OMP for clauses on target construct. | |
844 | (OMP_TARGET_CLAUSE_MASK): Add in_reduction clause. | |
845 | (c_parser_omp_target): For non-combined target add | |
846 | map (always, tofrom:) clauses for OMP_CLAUSE_IN_REDUCTION. Pass | |
847 | C_ORT_OMP_TARGET to c_finish_omp_clauses. | |
848 | * c-typeck.c (handle_omp_array_sections): Adjust ort handling | |
849 | for addition of C_ORT_OMP_TARGET and simplify, mapping clauses are | |
850 | never present on C_ORT_*DECLARE_SIMD. | |
851 | (c_finish_omp_clauses): Likewise. Handle OMP_CLAUSE_IN_REDUCTION | |
852 | on C_ORT_OMP_TARGET, set OMP_CLAUSE_MAP_IN_REDUCTION on | |
853 | corresponding map clauses. | |
854 | ||
2f080224 GA |
855 | 2021-06-21 Jakub Jelinek <jakub@redhat.com> |
856 | ||
857 | PR inline-asm/100785 | |
858 | * c-typeck.c (c_mark_addressable): Diagnose trying to make | |
859 | bit-fields addressable. | |
860 | ||
ede6c356 GA |
861 | 2021-06-15 Robin Dapp <rdapp@linux.ibm.com> |
862 | ||
863 | * c-decl.c (merge_decls): Copy DECL_USER_ALIGN if DECL_ALIGN is | |
864 | similar. | |
865 | ||
8dc48181 GA |
866 | 2021-06-14 Tobias Burnus <tobias@codesourcery.com> |
867 | ||
868 | PR c/100913 | |
869 | * c-parser.c (c_parser_omp_clause_affinity): No need to set iterator | |
870 | var in the error case. | |
871 | ||
438aac59 GA |
872 | 2021-06-07 Eric Botcazou <ebotcazou@adacore.com> |
873 | ||
874 | PR c/100920 | |
875 | * c-typeck.c (convert_for_assignment): Test fndecl_built_in_p to | |
876 | spot built-in functions. | |
877 | ||
7d6987e9 GA |
878 | 2021-06-06 Jakub Jelinek <jakub@redhat.com> |
879 | ||
880 | PR c/100902 | |
881 | * c-parser.c (c_parser_omp_target): Call c_omp_adjust_map_clauses | |
882 | even when target is combined with other constructs. | |
883 | ||
884 | 2021-06-06 Eric Botcazou <ebotcazou@adacore.com> | |
885 | ||
886 | PR c/100920 | |
887 | * c-decl.c (finish_struct): Fix thinko in previous change. | |
888 | * c-typeck.c (convert_for_assignment): Do not warn on pointer | |
889 | assignment and initialization for storage order purposes if the | |
890 | RHS is a call to a DECL_IS_MALLOC function. | |
891 | ||
600f90cb GA |
892 | 2021-06-04 Martin Sebor <msebor@redhat.com> |
893 | ||
894 | PR c/100783 | |
895 | * c-objc-common.c (print_type): Handle erroneous types. | |
896 | ||
440c8a0a GA |
897 | 2021-06-03 Jakub Jelinek <jakub@redhat.com> |
898 | ||
899 | PR c++/100859 | |
900 | * c-typeck.c (c_finish_omp_clauses): Move OMP_CLAUSE_AFFINITY | |
901 | after depend only cases. | |
902 | ||
ee682192 GA |
903 | 2021-05-31 Richard Biener <rguenther@suse.de> |
904 | ||
905 | PR c++/88601 | |
906 | * c-decl.c (names_builtin_p): Handle RID_BUILTIN_SHUFFLEVECTOR. | |
907 | * c-parser.c (c_parser_postfix_expression): Likewise. | |
908 | ||
48166757 GA |
909 | 2021-05-28 Richard Biener <rguenther@suse.de> |
910 | ||
911 | PR c/100803 | |
912 | * gimple-parser.c (c_parser_gimple_paren_condition): Diagnose | |
913 | invalid if conditions. | |
914 | ||
915 | 2021-05-28 Jakub Jelinek <jakub@redhat.com> | |
916 | ||
917 | PR middle-end/99928 | |
918 | * c-typeck.c (handle_omp_array_sections): Copy OMP_CLAUSE_MAP_IMPLICIT. | |
919 | (c_finish_omp_clauses): Move not just OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT | |
920 | marked clauses last, but also OMP_CLAUSE_MAP_IMPLICIT. Add | |
921 | map_firstprivate_head bitmap, set it for GOMP_MAP_FIRSTPRIVATE_POINTER | |
922 | maps and silently remove OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT if it is | |
923 | present too. For OMP_CLAUSE_MAP_IMPLICIT silently remove the clause | |
924 | if present in map_head, map_field_head or map_firstprivate_head | |
925 | bitmaps. | |
926 | ||
927 | 2021-05-28 Tobias Burnus <tobias@codesourcery.com> | |
928 | ||
929 | * c-parser.c (c_parser_omp_clause_affinity): New. | |
930 | (c_parser_omp_clause_name, c_parser_omp_variable_list, | |
931 | c_parser_omp_all_clauses, OMP_TASK_CLAUSE_MASK): Handle affinity clause. | |
932 | * c-typeck.c (handle_omp_array_sections_1, handle_omp_array_sections, | |
933 | c_finish_omp_clauses): Likewise. | |
934 | ||
01c59ef2 GA |
935 | 2021-05-26 Eric Botcazou <ebotcazou@adacore.com> |
936 | ||
937 | PR c/100653 | |
938 | * c-decl.c (finish_struct): Warn for a union containing an aggregate | |
939 | field with a differing scalar storage order. | |
940 | ||
2832d51b GA |
941 | 2021-05-21 Jakub Jelinek <jakub@redhat.com> |
942 | ||
943 | PR middle-end/99928 | |
944 | * c-typeck.c (c_finish_omp_clauses): Move firstprivate clauses with | |
945 | OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT to the end of the chain. Don't error | |
946 | if a decl is mentioned both in map clause and in such firstprivate | |
947 | clause unless OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET is also set. | |
948 | ||
65f32e5d GA |
949 | 2021-05-19 Jakub Jelinek <jakub@redhat.com> |
950 | ||
951 | PR middle-end/99928 | |
952 | * c-parser.c (c_parser_omp_master): Set OMP_MASTER_COMBINED on | |
953 | master when combined with taskloop. | |
954 | (c_parser_omp_parallel): Don't set OMP_PARALLEL_COMBINED on | |
955 | parallel master when not combined with taskloop. | |
956 | ||
a8daf9a1 GA |
957 | 2021-05-18 Richard Biener <rguenther@suse.de> |
958 | ||
959 | PR c/100522 | |
960 | * gimple-parser.c (c_parser_gimple_postfix_expression_after_primary): | |
961 | Diagnose calls to non-functions. | |
962 | (c_parser_gimple_statement): Diagnose unexpected assignment RHS. | |
963 | ||
a7ffc1ef GA |
964 | 2021-05-17 Richard Biener <rguenther@suse.de> |
965 | ||
966 | PR c/100625 | |
967 | * gimple-parser.c (c_parser_gimple_label): Avoid building | |
968 | a GIMPLE label with NULL label decl. | |
969 | ||
f9af11c7 GA |
970 | 2021-05-13 Martin Sebor <msebor@redhat.com> |
971 | ||
972 | PR c/100550 | |
973 | * c-decl.c (get_parm_array_spec): Avoid erroneous VLA bounds. | |
974 | ||
0ff3a0f2 GA |
975 | 2021-05-12 Marcel Vollweiler <marcel@codesourcery.com> |
976 | ||
977 | * c-parser.c (c_parser_omp_clause_map): Support map-type-modifier | |
978 | 'close'. | |
979 | ||
aa891c56 GA |
980 | 2021-05-10 Martin Liska <mliska@suse.cz> |
981 | ||
982 | * c-aux-info.c (affix_data_type): Use startswith | |
983 | function instead of strncmp. | |
984 | * c-typeck.c (build_function_call_vec): Likewise. | |
985 | * gimple-parser.c (c_parser_gimple_parse_bb_spec): Likewise. | |
986 | ||
62d87a32 GA |
987 | 2021-05-07 Eric Botcazou <ebotcazou@adacore.com> |
988 | ||
989 | * c-typeck.c (build_unary_op) <ADDR_EXPR>: Do not issue an error | |
990 | on the address of a pointer field in a record with reverse SSO. | |
991 | ||
99e8df7a GA |
992 | 2021-05-04 Tobias Burnus <tobias@codesourcery.com> |
993 | ||
994 | * c-typeck.c (c_finish_omp_clauses): Accept float + complex | |
995 | for || and && reductions. | |
996 | ||
3c8e539d GA |
997 | 2021-04-29 Joseph Myers <joseph@codesourcery.com> |
998 | ||
999 | * c-typeck.c (function_types_compatible_p): For C2X, treat | |
1000 | unprototyped function as compatible with non-variadic prototyped | |
1001 | function even if some argument types are changed by the default | |
1002 | argument promotions. | |
1003 | ||
ee351f7f GA |
1004 | 2021-04-15 Martin Sebor <msebor@redhat.com> |
1005 | ||
1006 | PR c/99420 | |
1007 | PR c/99972 | |
1008 | * c-decl.c (pushdecl): Always propagate type attribute. | |
1009 | ||
1010 | 2021-04-15 Richard Sandiford <richard.sandiford@arm.com> | |
1011 | ||
1012 | PR c/98852 | |
1013 | * c-typeck.c (c_common_type): Do not drop attributes that | |
1014 | affect type identity. | |
1015 | ||
1d54b138 GA |
1016 | 2021-04-10 Jakub Jelinek <jakub@redhat.com> |
1017 | ||
1018 | PR c/99990 | |
1019 | * c-decl.c (finish_decl): Don't overwrite TREE_TYPE of | |
1020 | error_mark_node. | |
1021 | ||
4493b1c1 GA |
1022 | 2021-03-25 Jakub Jelinek <jakub@redhat.com> |
1023 | ||
1024 | PR c++/99565 | |
1025 | * c-typeck.c (build_conditional_expr): Pass OEP_ADDRESS_OF_SAME_FIELD | |
1026 | to operand_equal_p. | |
1027 | ||
5f256a70 GA |
1028 | 2021-03-19 Jakub Jelinek <jakub@redhat.com> |
1029 | ||
1030 | PR c/99588 | |
1031 | * c-typeck.c (mark_exp_read): Recognize what build_atomic_assign | |
1032 | with modifycode NOP_EXPR produces and mark the _Atomic var as read | |
1033 | if found. | |
1034 | (build_atomic_assign): For modifycode of NOP_EXPR, use COMPOUND_EXPRs | |
1035 | rather than STATEMENT_LIST. Otherwise call mark_exp_read on lhs. | |
1036 | Set TREE_SIDE_EFFECTS on the TARGET_EXPR. | |
1037 | ||
3c5b6d24 GA |
1038 | 2021-03-15 Tobias Burnus <tobias@codesourcery.com> |
1039 | ||
1040 | PR c++/99509 | |
1041 | * c-decl.c (finish_decl): For 'omp declare target implicit' vars, | |
1042 | ensure that the varpool node is marked as offloadable. | |
1043 | ||
ceae9533 GA |
1044 | 2021-03-05 Tobias Burnus <tobias@codesourcery.com> |
1045 | ||
1046 | PR c/99137 | |
1047 | * c-parser.c (c_parser_oacc_clause_async): Reject comma expressions. | |
1048 | ||
4028d01a GA |
1049 | 2021-02-24 Martin Sebor <msebor@redhat.com> |
1050 | ||
1051 | PR middle-end/97172 | |
1052 | * c-decl.c (free_attr_access_data): Clear attribute arg spec. | |
1053 | ||
bf81237e GA |
1054 | 2021-02-18 Jakub Jelinek <jakub@redhat.com> |
1055 | ||
1056 | PR c/99136 | |
1057 | * c-typeck.c (c_finish_return): Don't wrap retval into | |
1058 | EXCESS_PRECISION_EXPR in functions that return void. | |
1059 | ||
0c5cdb31 GA |
1060 | 2021-02-11 Marek Polacek <polacek@redhat.com> |
1061 | ||
1062 | * c-parser.c (c_parser_if_statement): Use vec_free. | |
1063 | ||
a19dd5e6 GA |
1064 | 2021-02-04 Martin Sebor <msebor@redhat.com> |
1065 | ||
1066 | PR c/97882 | |
1067 | * c-decl.c (locate_old_decl): Add type to diagnostic output. | |
1068 | (diagnose_mismatched_decls): Same. | |
1069 | (start_function): Introduce temporaries for better readability. | |
1070 | * c-typeck.c (comptypes_internal): Only consider complete enum | |
1071 | types in comparisons with integers. | |
1072 | ||
f7884fb1 GA |
1073 | 2021-02-01 Martin Sebor <msebor@redhat.com> |
1074 | ||
1075 | PR middle-end/97172 | |
1076 | * c-decl.c (free_attr_access_data): New function. | |
1077 | (c_parse_final_cleanups): Call free_attr_access_data. | |
1078 | ||
59cf67d1 GA |
1079 | 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com> |
1080 | ||
1081 | * c-parser.c (c_parser_omp_clause_detach): New. | |
1082 | (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_DETACH clause. | |
1083 | (OMP_TASK_CLAUSE_MASK): Add mask for PRAGMA_OMP_CLAUSE_DETACH. | |
1084 | * c-typeck.c (c_finish_omp_clauses): Handle PRAGMA_OMP_CLAUSE_DETACH | |
1085 | clause. Prevent use of detach with mergeable and overriding the | |
1086 | data sharing mode of the event handle. | |
1087 | ||
2f7f0d32 GA |
1088 | 2021-01-15 Jakub Jelinek <jakub@redhat.com> |
1089 | ||
1090 | * c-typeck.c (c_finish_omp_clauses): For reduction build array with | |
1091 | unqualified element type and then call c_build_qualified_type on the | |
1092 | ARRAY_TYPE. | |
1093 | ||
7d187e4f GA |
1094 | 2021-01-07 Richard Biener <rguenther@suse.de> |
1095 | ||
1096 | * gimple-parser.c (c_parser_gimple_compound_statement): Only | |
1097 | reallocate loop array if it is too small. | |
1098 | ||
eefe499f GA |
1099 | 2020-12-16 Martin Uecker <muecker@gwdg.de> |
1100 | ||
1101 | PR c/98047 | |
1102 | * c-typeck.c (build_modify_expr): Drop qualifiers. | |
1103 | ||
1104 | 2020-12-16 Martin Uecker <muecker@gwdg.de> | |
1105 | ||
1106 | PR c/98260 | |
1107 | * c-parser.c (c_parser_expression): Look into | |
1108 | nop expression when marking expressions as read. | |
1109 | ||
d52945ce GA |
1110 | 2020-12-14 Martin Liska <mliska@suse.cz> |
1111 | ||
1112 | PR sanitizer/98204 | |
1113 | * c-typeck.c (pointer_diff): Do not emit a top-level | |
1114 | sanitization. | |
1115 | (build_binary_op): Likewise. | |
1116 | ||
ca2bd949 GA |
1117 | 2020-12-09 Tobias Burnus <tobias@codesourcery.com> |
1118 | ||
1119 | * c-parser.c (c_parser_omp_allocate): New. | |
1120 | (c_parser_omp_construct): Call it. | |
1121 | ||
1122 | 2020-12-09 Richard Biener <rguenther@suse.de> | |
1123 | ||
1124 | PR c/98200 | |
1125 | * gimple-parser.c (c_parser_gimple_postfix_expression): Return | |
1126 | early on error. | |
1127 | ||
bc8a7013 GA |
1128 | 2020-12-07 Martin Uecker <muecker@gwdg.de> |
1129 | ||
1130 | PR c/97981 | |
1131 | * c-typeck.c (convert_lvalue_to_rvalue): Move the code | |
1132 | that drops qualifiers to the end of the function. | |
1133 | ||
d48df6f2 GA |
1134 | 2020-11-26 Martin Uecker <muecker@gwdg.de> |
1135 | ||
1136 | PR c/65455 | |
1137 | PR c/92935 | |
1138 | * c-parser.c (c_parser_declaration_or_fndef): Remove | |
1139 | redundant code to drop qualifiers of _Atomic types for __auto_type. | |
1140 | (c_parser_typeof_specifier): Do not drop qualifiers of _Atomic | |
1141 | types for __typeof__. | |
1142 | ||
1e2c9a27 GA |
1143 | 2020-11-24 Jakub Jelinek <jakub@redhat.com> |
1144 | ||
1145 | PR c/97958 | |
1146 | * c-parser.c (c_parser_binary_expression): For omp atomic binary | |
1147 | expressions, use make_node instead of build2 to avoid checking build2 | |
1148 | performs. | |
1149 | ||
8e6198d0 GA |
1150 | 2020-11-23 Joseph Myers <joseph@codesourcery.com> |
1151 | ||
1152 | PR c/95630 | |
1153 | * c-typeck.c (build_binary_op): Use pedwarn_c99 with OPT_Wpedantic | |
1154 | for comparisons of complete and incomplete pointers. | |
1155 | ||
7a97e2fc GA |
1156 | 2020-11-21 Aaron Sawdey <acsawdey@linux.ibm.com> |
1157 | ||
1158 | * c-aux-info.c (gen_type): Support opaque types. | |
1159 | ||
82e5048e GA |
1160 | 2020-11-20 Martin Sebor <msebor@redhat.com> |
1161 | ||
1162 | PR middle-end/97879 | |
1163 | * c-decl.c (start_function): Set ATTR_FLAG_INTERNAL in flags. | |
1164 | ||
1165 | 2020-11-20 Jakub Jelinek <jakub@redhat.com> | |
1166 | ||
1167 | PR other/97911 | |
1168 | * Make-lang.in (c.serial): Change from goal to a variable. | |
1169 | (.PHONY): Drop c.serial. | |
1170 | ||
1171 | 2020-11-20 Martin Uecker <muecker@gwdg.de> | |
1172 | ||
1173 | * c-typeck.c (convert_lvalue_to_rvalue): Drop qualifiers. | |
1174 | ||
d62586ee GA |
1175 | 2020-11-19 Jakub Jelinek <jakub@redhat.com> |
1176 | ||
1177 | PR c/97860 | |
1178 | * c-decl.c (get_parm_array_spec): Bail out of nelts is | |
1179 | error_operand_p. | |
1180 | ||
25bb75f8 GA |
1181 | 2020-11-18 Jakub Jelinek <jakub@redhat.com> |
1182 | ||
1183 | * Make-lang.in (c.serial): New goal. | |
1184 | (.PHONY): Add c.serial c.prev. | |
1185 | (cc1$(exeext)): Call LINK_PROGRESS. | |
1186 | ||
77f67db2 GA |
1187 | 2020-11-13 Vladimir N. Makarov <vmakarov@redhat.com> |
1188 | ||
1189 | * c-parser.c (c_parser_asm_statement): Parse outputs for asm | |
1190 | goto too. | |
1191 | * c-typeck.c (build_asm_expr): Remove an assert checking output | |
1192 | absence for asm goto. | |
1193 | ||
1194 | 2020-11-13 Jakub Jelinek <jakub@redhat.com> | |
1195 | ||
1196 | * c-typeck.c (c_finish_omp_clauses): Don't clear | |
1197 | OMP_CLAUSE_REDUCTION_INSCAN unless reduction_seen == -2. | |
1198 | ||
1199 | 2020-11-13 Iain Sandoe <iain@sandoe.co.uk> | |
1200 | ||
1201 | PR objc/77404 | |
1202 | * c-parser.c (c_parser_objc_class_definition): Pass the | |
1203 | location of the class name to the interface declaration. | |
1204 | ||
bb622641 GA |
1205 | 2020-11-10 Strager Neds <strager.nds@gmail.com> |
1206 | ||
1207 | * c-decl.c (merge_decls): Use new overload of | |
1208 | set_decl_section_name. | |
1209 | ||
1210 | 2020-11-10 Chung-Lin Tang <cltang@codesourcery.com> | |
1211 | ||
1212 | * c-parser.c (c_parser_omp_target_data): Add use of | |
1213 | new c_omp_adjust_map_clauses function. Add GOMP_MAP_ATTACH_DETACH as | |
1214 | handled map clause kind. | |
1215 | (c_parser_omp_target_enter_data): Likewise. | |
1216 | (c_parser_omp_target_exit_data): Likewise. | |
1217 | (c_parser_omp_target): Likewise. | |
1218 | * c-typeck.c (handle_omp_array_sections): Adjust COMPONENT_REF case to | |
1219 | use GOMP_MAP_ATTACH_DETACH map kind for C_ORT_OMP region type. | |
1220 | (c_finish_omp_clauses): Adjust bitmap checks to allow struct decl and | |
1221 | same struct field access to co-exist on OpenMP construct. | |
1222 | ||
2da7ee05 GA |
1223 | 2020-11-07 Martin Uecker <muecker@gwdg.de> |
1224 | ||
1225 | * c-parser.c (c_parser_label): Implement mixing of labels and code. | |
1226 | (c_parser_all_labels): Likewise. | |
1227 | ||
44cab2d8 GA |
1228 | 2020-11-06 Iain Sandoe <iain@sandoe.co.uk> |
1229 | ||
1230 | * c-parser.c (c_parser_objc_at_property_declaration): | |
1231 | Improve parsing fidelity. Associate better location info | |
1232 | with @property attributes. Clean up the interface to | |
1233 | objc_add_property_declaration (). | |
1234 | ||
1235 | 2020-11-06 Nathan Sidwell <nathan@acm.org> | |
1236 | ||
1237 | * c-decl.c (diagnose_mismatched_decls): Rename | |
1238 | DECL_IS_BUILTIN->DECL_IS_UNDECLARED_BUILTIN. | |
1239 | (warn_if_shadowing, implicitly_declare, names_builtin_p) | |
1240 | (collect_source_refs): Likewise. | |
1241 | * c-typeck.c (inform_declaration, inform_for_arg) | |
1242 | (convert_for_assignment): Likewise. | |
1243 | ||
1244 | 2020-11-06 Tobias Burnus <tobias@codesourcery.com> | |
1245 | ||
1246 | * c-parser.c (c_parser_omp_atomic): Add openacc parameter and update | |
1247 | OpenACC matching. | |
1248 | (c_parser_omp_construct): Update call. | |
1249 | ||
35c125cb GA |
1250 | 2020-11-04 Jakub Jelinek <jakub@redhat.com> |
1251 | ||
1252 | PR c++/97670 | |
1253 | * c-typeck.c (c_finish_omp_clauses): Look through array reductions to | |
1254 | find underlying decl to clear in the aligned_head bitmap. | |
1255 | ||
1256 | 2020-11-04 Joseph Myers <joseph@codesourcery.com> | |
1257 | ||
1258 | * c-decl.c (handle_nodiscard_attribute): New. | |
1259 | (std_attribute_table): Add nodiscard. | |
1260 | * c-parser.c (c_parser_std_attribute): Expect argument to | |
1261 | nodiscard attribute to be a string. Do not special-case ignoring | |
1262 | nodiscard. | |
1263 | * c-typeck.c (maybe_warn_nodiscard): New. | |
1264 | (build_compound_expr, emit_side_effect_warnings): Call | |
1265 | maybe_warn_nodiscard. | |
1266 | (c_process_expr_stmt, c_finish_stmt_expr): Also call | |
1267 | emit_side_effect_warnings if warn_unused_result. | |
1268 | ||
4f0606fe GA |
1269 | 2020-10-29 Asher Gordon <AsDaGo@posteo.net> |
1270 | ||
1271 | * c-typeck.c (free_all_tagged_tu_seen_up_to): Replace free | |
1272 | with XDELETE. | |
1273 | (finish_init): Likewise. | |
1274 | (pop_init_level): Likewise. | |
1275 | ||
e93aae4a GA |
1276 | 2020-10-28 Joseph Myers <joseph@codesourcery.com> |
1277 | ||
1278 | * c-decl.c (store_parm_decls_newstyle): Use pedwarn_c11 not | |
1279 | error_at for omitted parameter name. | |
1280 | ||
1281 | 2020-10-28 Jakub Jelinek <jakub@redhat.com> | |
1282 | ||
1283 | * c-parser.c (c_parser_omp_clause_name): Handle allocate. | |
1284 | (c_parser_omp_clause_allocate): New function. | |
1285 | (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_ALLOCATE. | |
1286 | (OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK, | |
1287 | OMP_PARALLEL_CLAUSE_MASK, OMP_SINGLE_CLAUSE_MASK, | |
1288 | OMP_TASK_CLAUSE_MASK, OMP_TASKGROUP_CLAUSE_MASK, | |
1289 | OMP_DISTRIBUTE_CLAUSE_MASK, OMP_TEAMS_CLAUSE_MASK, | |
1290 | OMP_TARGET_CLAUSE_MASK, OMP_TASKLOOP_CLAUSE_MASK): Add | |
1291 | PRAGMA_OMP_CLAUSE_ALLOCATE. | |
1292 | * c-typeck.c (c_finish_omp_clauses): Handle OMP_CLAUSE_ALLOCATE. | |
1293 | ||
89bb01e7 GA |
1294 | 2020-10-27 Joseph Myers <joseph@codesourcery.com> |
1295 | ||
1296 | * c-parser.c (c_parser_std_attribute_specifier): Allow duplicate | |
1297 | standard attributes. | |
1298 | ||
efe71fcc GA |
1299 | 2020-10-23 Marek Polacek <polacek@redhat.com> |
1300 | ||
1301 | PR c++/91741 | |
1302 | * c-parser.c (c_parser_binary_expression): Implement -Wsizeof-array-div. | |
1303 | (c_parser_postfix_expression): Set PAREN_SIZEOF_EXPR. | |
1304 | (c_parser_expr_list): Handle PAREN_SIZEOF_EXPR like SIZEOF_EXPR. | |
1305 | * c-tree.h (char_type_p): Declare. | |
1306 | * c-typeck.c (char_type_p): No longer static. | |
1307 | ||
1308 | 2020-10-23 Martin Sebor <msebor@redhat.com> | |
1309 | ||
1310 | PR middle-end/97552 | |
1311 | * c-decl.c (get_parm_array_spec): Handle static VLA parameters. | |
1312 | ||
2fe5b7d1 GA |
1313 | 2020-09-19 Martin Sebor <msebor@redhat.com> |
1314 | ||
1315 | PR c/50584 | |
1316 | * c-decl.c (lookup_last_decl): Define new function. | |
1317 | (c_decl_attributes): Call it. | |
1318 | (start_decl): Add argument and use it. | |
1319 | (finish_decl): Call build_attr_access_from_parms and decl_attributes. | |
1320 | (get_parm_array_spec): Define new function. | |
1321 | (push_parm_decl): Call get_parm_array_spec. | |
1322 | (start_function): Call warn_parm_array_mismatch. Build attribute | |
1323 | access and add it to current function. | |
1324 | * c-parser.c (c_parser_declaration_or_fndef): Diagnose mismatches | |
1325 | in forms of array parameters. | |
1326 | * c-tree.h (start_decl): Add argument. | |
1327 | ||
1328 | 2020-09-19 Sandra Loosemore <sandra@codesourcery.com> | |
1329 | ||
1330 | * c-decl.c (c_break_label, c_cont_label): Delete, and replace | |
1331 | with... | |
1332 | (in_statement): New. | |
1333 | (start_function): Adjust for above change. | |
1334 | (c_push_function_context, c_pop_function_context): Likewise. | |
1335 | * c-lang.h (struct language_function): Likewise. | |
1336 | * c-objc-common.h (LANG_HOOKS_BLOCK_MAY_FALLTHRU): Define. | |
1337 | * c-parser.c (objc_foreach_break_label, objc_foreach_continue_label): | |
1338 | New. | |
1339 | (c_parser_statement_after_labels): Adjust calls to c_finish_bc_stmt. | |
1340 | (c_parser_switch_statement): Adjust break/switch context handling | |
1341 | and calls to renamed functions. | |
1342 | (c_parser_while_statement): Adjust break/switch context handling and | |
1343 | build a WHILE_STMT. | |
1344 | (c_parser_do_statement): Ditto, with DO_STMT respectively. | |
1345 | (c_parser_for_statement): Ditto, with FOR_STMT respectively. | |
1346 | (c_parser_omp_for_loop): Adjust break/switch context handling. | |
1347 | * c-tree.h (c_break_label, c_cont_label): Delete. | |
1348 | (IN_SWITCH_STMT, IN_ITERATION_STMT): Define. | |
1349 | (IN_OMP_BLOCK, IN_OMP_FOR, IN_OBJC_FOREACH): Define. | |
1350 | (in_statement, switch_statement_break_seen_p): Declare. | |
1351 | (c_start_case, c_finish_case): Renamed to... | |
1352 | (c_start_switch, c_finish_switch). | |
1353 | (c_finish_bc_stmt): Adjust arguments. | |
1354 | * c-typeck.c (build_function_call_vec): Don't try to print | |
1355 | statements with %qE format. | |
1356 | (struct c_switch): Rename switch_expr field to switch_stmt. | |
1357 | Add break_stmt_seen_p field. | |
1358 | (c_start_case): Rename to c_start_switch. Build a SWITCH_STMT | |
1359 | instead of a SWITCH_EXPR. Update for changes to struct c_switch. | |
1360 | (do_case): Update for changes to struct c_switch. | |
1361 | (c_finish_case): Rename to c_finish_switch. Update for changes to | |
1362 | struct c_switch and change of representation from SWITCH_EXPR to | |
1363 | SWITCH_STMT. | |
1364 | (c_finish_loop): Delete. | |
1365 | (c_finish_bc_stmt): Update to reflect changes to break/continue | |
1366 | state representation. Build a BREAK_STMT or CONTINUE_STMT instead | |
1367 | of a GOTO_EXPR except for objc foreach loops. | |
1368 | ||
e1a4a8a0 GA |
1369 | 2020-09-01 Jakub Jelinek <jakub@redhat.com> |
1370 | ||
1371 | PR c++/96867 | |
1372 | * c-typeck.c (handle_omp_array_sections_1): Test C_ARRAY_PARAMETER | |
1373 | only on PARM_DECLs. | |
1374 | ||
8f7ea26a GA |
1375 | 2020-08-28 Martin Sebor <msebor@redhat.com> |
1376 | ||
1377 | PR c/96596 | |
1378 | * c-decl.c (match_builtin_function_types): Avoid dealing with erroneous | |
1379 | argument type. | |
1380 | ||
8b394f01 GA |
1381 | 2020-08-27 Martin Liska <mliska@suse.cz> |
1382 | ||
1383 | * gimple-parser.c (c_parser_gimple_compound_statement): Set exact argument of a vector | |
1384 | growth function to true. | |
1385 | ||
db0f6efe GA |
1386 | 2020-08-25 Tobias Burnus <tobias@codesourcery.com> |
1387 | ||
1388 | PR c/96678 | |
1389 | * c-typeck.c (handle_omp_array_sections_1): Talk about | |
1390 | array function parameter in the error message. | |
1391 | ||
5c265693 GA |
1392 | 2020-08-18 Jakub Jelinek <jakub@redhat.com> |
1393 | ||
1394 | PR c/96571 | |
1395 | * c-parser.c (c_parser_generic_selection): Change match_found from bool | |
1396 | to int, holding index of the match. Call mark_exp_read on the selector | |
1397 | expression and on expressions other than the selected one. | |
1398 | ||
4967ca2f GA |
1399 | 2020-08-01 Richard Sandiford <richard.sandiford@arm.com> |
1400 | ||
1401 | PR c/96377 | |
1402 | * c-typeck.c (process_init_element): Split test for whether to | |
1403 | recurse into a record, union or array into... | |
1404 | (initialize_elementwise_p): ...this new function. Don't recurse | |
1405 | into a vector type if the initialization value is also a vector. | |
1406 | ||
48cc2e46 GA |
1407 | 2020-07-31 Richard Biener <rguenther@suse.de> |
1408 | ||
1409 | PR debug/96383 | |
1410 | * c-objc-common.h (LANG_HOOKS_FINALIZE_EARLY_DEBUG): | |
1411 | Define to c_common_finalize_early_debug. | |
1412 | ||
3ea9abca GA |
1413 | 2020-07-22 Tobias Burnus <tobias@codesourcery.com> |
1414 | ||
1415 | * c-parser.c (c_parser_omp_clause_hint): Require nonnegative hint clause. | |
1416 | (c_parser_omp_critical): Permit hint(0) clause without named critical. | |
1417 | (c_parser_omp_construct): Don't assert if error_mark_node is returned. | |
1418 | ||
30430061 GA |
1419 | 2020-07-21 Sunil K Pandey <skpgkp2@gmail.com> |
1420 | ||
1421 | PR target/95237 | |
1422 | * c-decl.c (finish_decl): Call target hook | |
1423 | lower_local_decl_alignment to lower local decl alignment. | |
1424 | ||
3f8ca9cb GA |
1425 | 2020-07-09 Julian Brown <julian@codesourcery.com> |
1426 | Thomas Schwinge <thomas@codesourcery.com> | |
1427 | ||
1428 | PR middle-end/95270 | |
1429 | * c-typeck.c (c_finish_omp_clauses): Set OMP_CLAUSE_SIZE (bias) to zero | |
1430 | for standalone attach/detach clauses. | |
1431 | ||
a82c4c4c | 1432 | 2020-07-08 Eric Botcazou <ebotcazou@adacore.com> |
50873cc5 GA |
1433 | |
1434 | * c-typeck.c (convert_for_assignment): If -Wscalar-storage-order is | |
1435 | set, warn for conversion between pointers that point to incompatible | |
1436 | scalar storage orders. | |
1437 | ||
f60ee68d GA |
1438 | 2020-07-07 Kaipeng Zhou <zhoukaipeng3@huawei.com> |
1439 | ||
1440 | * c-parser.c (c_parser_statement_after_labels): Pass correct | |
1441 | parameters to c_parser_do_statement. | |
1442 | ||
56638b9b GA |
1443 | 2020-06-16 Jakub Jelinek <jakub@redhat.com> |
1444 | ||
1445 | * c-parser.c (c_parser_expr_no_commas): Save, clear and restore | |
1446 | c_in_omp_for. | |
1447 | (c_parser_omp_for_loop): Set c_in_omp_for around some calls to avoid | |
1448 | premature c_fully_fold. Defer explicit c_fully_fold calls to after | |
1449 | c_finish_omp_for. | |
1450 | * c-tree.h (c_in_omp_for): Declare. | |
1451 | * c-typeck.c (c_in_omp_for): Define. | |
1452 | (build_modify_expr): Avoid c_fully_fold if c_in_omp_for. | |
1453 | (digest_init): Likewise. | |
1454 | (build_binary_op): Likewise. | |
1455 | ||
1456 | 2020-06-16 Jakub Jelinek <jakub@redhat.com> | |
1457 | ||
1458 | * c-parser.c (c_parser_omp_clause_schedule): Reject modifier separated | |
1459 | from kind by comma rather than colon. | |
1460 | ||
1a59f3db GA |
1461 | 2020-06-05 Mark Wielaard <mark@klomp.org> |
1462 | ||
1463 | * c-decl.c (implicit_decl_warning): When warned and olddecl is | |
1464 | an undeclared builtin, then add a fixit header hint, if found. | |
1465 | (implicitly_declare): Add OPT_Wbuiltin_declaration_mismatch to | |
1466 | warning_at about implicit builtin declaration type mismatch. | |
1467 | ||
9a5b7438 GA |
1468 | 2020-06-03 Mark Wielaard <mark@klomp.org> |
1469 | ||
1470 | * c-parser.c (struct c_parser): Add seen_string_literal | |
1471 | bitfield. | |
1472 | (c_parser_consume_token): Reset seen_string_literal. | |
1473 | (c_parser_error_richloc): Add name_hint if seen_string_literal | |
1474 | and next token is a CPP_NAME and we have a missing header | |
1475 | suggestion for the name. | |
1476 | (c_parser_string_literal): Set seen_string_literal. | |
1477 | ||
1478 | 2020-06-03 Mark Wielaard <mark@klomp.org> | |
1479 | ||
1480 | * c-parser.c (c_parser_postfix_expression_after_primary): Add | |
1481 | scope with matching_parens after CPP_OPEN_PAREN. | |
1482 | ||
1483 | 2020-06-03 Tobias Burnus <tobias@codesourcery.com> | |
1484 | ||
1485 | * c-objc-common.h (LANG_HOOKS_OMP_PREDETERMINED_MAPPING): Redefine. | |
1486 | ||
53ffb43a GA |
1487 | 2020-05-28 Nicolas Bértolo <nicolasbertolo@gmail.com> |
1488 | ||
1489 | * Make-lang.in: Remove extra slash. | |
1490 | ||
8f66f175 ML |
1491 | 2020-05-19 Martin Liska <mliska@suse.cz> |
1492 | ||
1493 | * c-parser.c: Fix typo. | |
1494 | ||
49ddde69 JJ |
1495 | 2020-05-14 Jakub Jelinek <jakub@redhat.com> |
1496 | ||
1497 | * c-parser.c (c_parser_omp_target): Set cfun->has_omp_target. | |
1498 | ||
eb72dc66 RB |
1499 | 2020-05-07 Richard Biener <rguenther@suse.de> |
1500 | ||
1501 | PR middle-end/94703 | |
1502 | * gimple-parser.c (c_parser_parse_ssa_name): Do not set | |
1503 | DECL_GIMPLE_REG_P. | |
1504 | ||
bf915591 JJ |
1505 | 2020-04-30 Jakub Jelinek <jakub@redhat.com> |
1506 | ||
1507 | PR c/94842 | |
1508 | * c-decl.c (set_labels_context_r): In addition to context-less | |
1509 | LABEL_DECLs adjust also LABEL_DECLs with context equal to | |
1510 | parent function if any. | |
1511 | (store_parm_decls): Adjust comment. | |
1512 | ||
e1113ffb JJ |
1513 | 2020-04-19 Jakub Jelinek <jakub@redhat.com> |
1514 | ||
1515 | PR objc/94637 | |
1516 | * c-parser.c (c_parser_objc_selector_arg): Handle CPP_SCOPE like | |
1517 | two CPP_COLON tokens. | |
1518 | ||
2e389749 JJ |
1519 | 2020-04-17 Jakub Jelinek <jakub@redhat.com> |
1520 | ||
1521 | PR other/94629 | |
1522 | * c-parser.c (c_parser_oacc_routine): Remove redundant assignment | |
1523 | to data.clauses. | |
1524 | ||
2dc9294c JJ |
1525 | 2020-04-15 Jakub Jelinek <jakub@redhat.com> |
1526 | ||
1527 | PR c/94593 | |
1528 | * c-parser.c (c_parser_pragma) <case PRAGMA_OMP_REQUIRES>: Reject | |
1529 | requires directive when not at file scope. | |
1530 | ||
13e41d8b TB |
1531 | 2020-04-08 Tobias Burnus <tobias@codesourcery.com> |
1532 | ||
1533 | PR middle-end/94120 | |
1534 | * c-decl.c (c_check_in_current_scope): New function. | |
1535 | * c-tree.h (c_check_in_current_scope): Declare it. | |
1536 | * c-parser.c (c_parser_oacc_declare): Add check that variables | |
1537 | are declared in the same scope as the directive. Fix handling | |
1538 | of namespace vars. | |
1539 | ||
4df50a05 JJ |
1540 | 2020-04-07 Jakub Jelinek <jakub@redhat.com> |
1541 | ||
1542 | PR c++/94512 | |
1543 | * c-parser.c (c_parser_omp_parallel): Set OMP_PARALLEL_COMBINED | |
1544 | if c_parser_omp_master succeeded. | |
1545 | ||
5db9e893 JJ |
1546 | 2020-03-23 Jakub Jelinek <jakub@redhat.com> |
1547 | ||
1548 | PR gcov-profile/94029 | |
1549 | PR c/94239 | |
1550 | * c-parser.c (c_parser_declaration_or_fndef): Initialize endloc to | |
1551 | the function_start_locus location. Don't do that afterwards for the | |
1552 | __GIMPLE body parsing. | |
1553 | ||
9def91e9 JJ |
1554 | 2020-03-19 Jakub Jelinek <jakub@redhat.com> |
1555 | ||
1556 | PR gcov-profile/94029 | |
1557 | * c-tree.h (finish_function): Add location_t argument defaulted to | |
1558 | input_location. | |
1559 | * c-parser.c (c_parser_compound_statement): Add endlocp argument and | |
1560 | set it to the locus of closing } if non-NULL. | |
1561 | (c_parser_compound_statement_nostart): Return locus of closing }. | |
1562 | (c_parser_parse_rtl_body): Likewise. | |
1563 | (c_parser_declaration_or_fndef): Propagate locus of closing } to | |
1564 | finish_function. | |
1565 | * c-decl.c (finish_function): Add end_loc argument, use it instead of | |
1566 | input_location to set function_end_locus. | |
1567 | ||
046c5890 JJ |
1568 | 2020-03-17 Jakub Jelinek <jakub@redhat.com> |
1569 | ||
1570 | PR c/94172 | |
1571 | * c-tree.h (C_TYPE_INCOMPLETE_VARS): Define to TYPE_LANG_SLOT_1 | |
1572 | instead of TYPE_VFIELD, and support it on {RECORD,UNION,ENUMERAL}_TYPE. | |
1573 | (TYPE_ACTUAL_ARG_TYPES): Check that it is only used on FUNCTION_TYPEs. | |
1574 | * c-decl.c (pushdecl): Push C_TYPE_INCOMPLETE_VARS also to | |
1575 | ENUMERAL_TYPEs. | |
1576 | (finish_incomplete_vars): New function, moved from finish_struct. Use | |
1577 | relayout_decl instead of layout_decl. | |
1578 | (finish_struct): Remove obsolete comment about C_TYPE_INCOMPLETE_VARS | |
1579 | being TYPE_VFIELD. Use finish_incomplete_vars. | |
1580 | (finish_enum): Clear C_TYPE_INCOMPLETE_VARS. Call | |
1581 | finish_incomplete_vars. | |
1582 | * c-typeck.c (c_build_qualified_type): Clear C_TYPE_INCOMPLETE_VARS | |
1583 | also on ENUMERAL_TYPEs. | |
1584 | ||
c015ff8c JJ |
1585 | 2020-03-16 Jakub Jelinek <jakub@redhat.com> |
1586 | ||
1587 | PR c/94179 | |
1588 | * c-fold.c (c_fully_fold_internal): Handle MEM_REF. | |
1589 | ||
f2e9fe5f MS |
1590 | 2020-03-13 Martin Sebor <msebor@redhat.com> |
1591 | ||
1592 | PR c/94040 | |
1593 | * c-decl.c (builtin_structptr_type_count): New constant. | |
1594 | (match_builtin_function_types): Reject decls that are incompatible | |
1595 | in types pointed to by pointers. | |
1596 | (diagnose_mismatched_decls): Adjust comments. | |
1597 | ||
c9d70946 JM |
1598 | 2020-03-05 Joseph Myers <joseph@codesourcery.com> |
1599 | ||
1600 | PR c/93577 | |
1601 | * c-typeck.c (pop_init_level): Do not diagnose initializers as | |
1602 | empty when initialized type is error_mark_node. | |
1603 | (set_designator, process_init_element): Ignore initializers for | |
1604 | elements of a variable-size type or of error_mark_node. | |
1605 | ||
726e292d MS |
1606 | 2020-03-01 Martin Sebor <msebor@redhat.com> |
1607 | ||
1608 | PR middle-end/93926 | |
1609 | * c-decl.c (types_close_enough_to_match): New function. | |
1610 | (match_builtin_function_types): | |
1611 | (diagnose_mismatched_decls): Add missing inform call to a warning. | |
1612 | ||
a499c2f8 MS |
1613 | 2020-03-01 Martin Sebor <msebor@redhat.com> |
1614 | ||
1615 | PR c/93812 | |
1616 | * c-typeck.c (build_functype_attribute_variant): New function. | |
1617 | (composite_type): Call it. | |
1618 | ||
9c3da8cc JJ |
1619 | 2020-02-25 Jakub Jelinek <jakub@redhat.com> |
1620 | ||
1621 | PR other/93912 | |
1622 | * gimple-parser.c (c_parser_gimple_parse_bb_spec_edge_probability): | |
1623 | Rename last argument from probablity to probability. | |
1624 | ||
bacdd5e9 JJ |
1625 | 2020-02-13 Jakub Jelinek <jakub@redhat.com> |
1626 | ||
1627 | PR c/93576 | |
1628 | * c-decl.c (grokdeclarator): If this_size_varies, only push size into | |
1629 | *expr if it has side effects. | |
1630 | ||
f9eb0973 JL |
1631 | 2020-01-30 Jeff Law <law@redhat.com> |
1632 | ||
1633 | PR c/88660 | |
1634 | * c-parser.c (c_parser_switch_statement): Make sure to request | |
1635 | marking the switch expr as used. | |
1636 | ||
ac68e287 JM |
1637 | 2020-01-22 Joseph Myers <joseph@codesourcery.com> |
1638 | ||
1639 | PR c/93348 | |
1640 | * c-typeck.c (build_c_cast): Call remove_c_maybe_const_expr on | |
1641 | argument with integer operands. | |
1642 | ||
852f0ae8 KK |
1643 | 2020-01-16 Kerem Kat <keremkat@gmail.com> |
1644 | ||
1645 | PR c/92833 | |
1646 | * c-parser.c (c_parser_consume_token): Fix peeked token stack pop | |
1647 | to support 4 available tokens. | |
1648 | ||
e2346a33 JM |
1649 | 2020-01-15 Joseph Myers <joseph@codesourcery.com> |
1650 | ||
1651 | PR c/93072 | |
1652 | * c-decl.c (pushdecl): Use TREE_PUBLIC, not DECL_EXTERNAL, to | |
1653 | determine whether to set DECL_CONTEXT. | |
1654 | ||
3d77686d JM |
1655 | 2020-01-13 Joseph Myers <joseph@codesourcery.com> |
1656 | ||
1657 | PR c/93241 | |
1658 | * c-typeck.c (build_c_cast): Check for expressions with integer | |
1659 | operands that can occur in an unevaluated part of an integer | |
1660 | constant expression and call note_integer_operands as needed. | |
1661 | ||
f74c4b2c RB |
1662 | 2019-01-08 Richard Biener <rguenther@suse.de> |
1663 | ||
1664 | PR middle-end/93199 | |
1665 | * gimple-parser.c (c_parser_parse_gimple_body): Remove __PHI IFN | |
1666 | permanently. | |
1667 | ||
8d9254fc JJ |
1668 | 2020-01-01 Jakub Jelinek <jakub@redhat.com> |
1669 | ||
1670 | Update copyright years. | |
1671 | ||
39292e25 EB |
1672 | 2019-12-20 Eric Botcazou <ebotcazou@adacore.com> |
1673 | ||
1674 | * c-decl.c (collect_source_ref_cb): Delete. | |
1675 | (for_each_global_decl): Rename into... | |
1676 | (collect_source_refs): ...this. Call collect_source_ref directly. | |
1677 | (c_parse_final_cleanups): Always call collect_source_ref on the main | |
1678 | input filename. | |
1679 | ||
519d7496 JB |
1680 | 2019-12-19 Julian Brown <julian@codesourcery.com> |
1681 | Cesar Philippidis <cesar@codesourcery.com> | |
1682 | ||
1683 | * c-parser.c (c_parser_omp_clause_name): Add parsing of attach and | |
1684 | detach clauses. | |
1685 | (c_parser_omp_variable_list): Add ALLOW_DEREF optional parameter. | |
1686 | Allow deref (->) in variable lists if true. | |
1687 | (c_parser_omp_var_list_parens): Add ALLOW_DEREF optional parameter. | |
1688 | Pass to c_parser_omp_variable_list. | |
1689 | (c_parser_oacc_data_clause): Support attach and detach clauses. Update | |
1690 | call to c_parser_omp_variable_list. | |
1691 | (c_parser_oacc_all_clauses): Support attach and detach clauses. | |
1692 | (OACC_DATA_CLAUSE_MASK, OACC_ENTER_DATA_CLAUSE_MASK, | |
1693 | OACC_KERNELS_CLAUSE_MASK, OACC_PARALLEL_CLAUSE_MASK, | |
1694 | OACC_SERIAL_CLAUSE_MASK): Add PRAGMA_OACC_CLAUSE_ATTACH. | |
1695 | (OACC_EXIT_DATA_CLAUSE_MASK): Add PRAGMA_OACC_CLAUSE_DETACH. | |
1696 | * c-typeck.c (handle_omp_array_sections_1): Reject subarrays for attach | |
1697 | and detach. Support deref. | |
1698 | (handle_omp_array_sections): Use GOMP_MAP_ATTACH_DETACH instead of | |
1699 | GOMP_MAP_ALWAYS_POINTER for OpenACC. | |
1700 | (c_oacc_check_attachments): New function. | |
1701 | (c_finish_omp_clauses): Check attach/detach arguments for being | |
1702 | pointers using above. Support deref. | |
1703 | ||
a6163563 JB |
1704 | 2019-12-19 Julian Brown <julian@codesourcery.com> |
1705 | Maciej W. Rozycki <macro@codesourcery.com> | |
1706 | Tobias Burnus <tobias@codesourcery.com> | |
1707 | Thomas Schwinge <thomas@codesourcery.com> | |
1708 | ||
1709 | * c-parser.c (c_parser_omp_clause_name): Support no_create. | |
1710 | (c_parser_oacc_data_clause): Likewise. | |
1711 | (c_parser_oacc_all_clauses): Likewise. | |
1712 | (OACC_DATA_CLAUSE_MASK, OACC_KERNELS_CLAUSE_MASK) | |
1713 | (OACC_PARALLEL_CLAUSE_MASK, OACC_SERIAL_CLAUSE_MASK): Add | |
1714 | PRAGMA_OACC_CLAUSE_NO_CREATE. | |
1715 | * c-typeck.c (handle_omp_array_sections): Support | |
1716 | GOMP_MAP_NO_ALLOC. | |
1717 | ||
d68f5d45 DM |
1718 | 2019-12-09 David Malcolm <dmalcolm@redhat.com> |
1719 | ||
1720 | * c-objc-common.c (range_label_for_type_mismatch::get_text): | |
1721 | Replace label_text ctor calls. | |
1722 | ||
4691bf46 JM |
1723 | 2019-12-04 Joseph Myers <joseph@codesourcery.com> |
1724 | ||
1725 | PR c/36941 | |
1726 | PR c/88827 | |
1727 | * c-typeck.c (convert_lvalue_to_rvalue): Call | |
1728 | require_complete_type for arguments not of void types. | |
1729 | (build_indirect_ref): Do not diagnose dereferencing pointers to | |
1730 | incomplete types. | |
1731 | * c-tree.h (C_TYPE_ERROR_REPORTED): Remove. | |
1732 | ||
85d11957 JM |
1733 | 2019-12-03 Joseph Myers <joseph@codesourcery.com> |
1734 | ||
1735 | PR c/88704 | |
1736 | * c-decl.c (store_parm_decls_oldstyle): Diagnose use of [*] in | |
1737 | old-style parameter definitions. | |
1738 | ||
4569f8b3 SL |
1739 | 2019-12-01 Sandra Loosemore <sandra@codesourcery.com> |
1740 | ||
1741 | PR target/92499 | |
1742 | ||
1743 | * c-decl.c (flexible_array_type_p): Move to common code. | |
1744 | ||
65ef05d0 RS |
1745 | 2019-11-30 Richard Sandiford <richard.sandiford@arm.com> |
1746 | ||
1747 | * c-decl.c (start_decl): Allow initialization of variables whose | |
1748 | size is a POLY_INT_CST. | |
1749 | (finish_decl): Use verify_type_context to check whether the target | |
1750 | allows variables with a particular type to have static or thread-local | |
1751 | storage duration. Don't raise a second error if such variables do | |
1752 | not have a constant size. | |
1753 | (grokdeclarator): Use verify_type_context to check whether the | |
1754 | target allows fields or array elements to have a particular type. | |
1755 | * c-typeck.c (pointer_diff): Use verify_type_context to test whether | |
1756 | the target allows pointer difference for the types involved. | |
1757 | (build_unary_op): Likewise for pointer increment and decrement. | |
1758 | ||
34b43828 JM |
1759 | 2019-11-29 Joseph Myers <joseph@codesourcery.com> |
1760 | ||
1761 | * c-parser.c (struct c_parser): Add members raw_tokens and | |
1762 | raw_tokens_used. | |
1763 | (c_lex_one_token): Add argument raw. Handle lexing raw tokens and | |
1764 | using previously-lexed raw tokens. | |
1765 | (c_parser_peek_nth_token_raw) | |
1766 | (c_parser_check_balanced_raw_token_sequence): New functions. | |
1767 | (c_parser_nth_token_starts_std_attributes): Use | |
1768 | c_parser_check_balanced_raw_token_sequence for Objective-C. | |
1769 | ||
5b8d9367 JM |
1770 | 2019-11-25 Joseph Myers <joseph@codesourcery.com> |
1771 | ||
1772 | PR c/91985 | |
1773 | * c-decl.c (finish_declspecs): Use int instead of decimal | |
1774 | floating-point types if decimal floating-point not supported. | |
1775 | ||
1723e1be JM |
1776 | 2019-11-25 Joseph Myers <joseph@codesourcery.com> |
1777 | ||
1778 | * c-tree.h (struct c_declarator): Use a structure for id member. | |
1779 | * c-decl.c (grokdeclarator): Extract attributes from cdk_id | |
1780 | declarators at the start, not when handling individual declarators | |
1781 | later. Use u.id.id instead of u.id. | |
1782 | (grokfield): Use u.id.id instead of u.id. | |
1783 | (build_id_declarator): Set u.id.id and u.id.attrs. | |
1784 | (finish_declspecs): Handle postfix attributes in case of typedef | |
1785 | name or typeof used. | |
1786 | * c-parser.c (c_parser_direct_declarator) | |
1787 | (c_parser_direct_declarator_inner): Place declarator for | |
1788 | attributes inside that for function or array, not outside. Set | |
1789 | u.id.attrs for identifiers. | |
1790 | (c_parser_parameter_declaration): Use u.id.id instead of u.id. | |
1791 | * gimple-parser.c (c_parser_gimple_declaration): Use u.id.id | |
1792 | instead of u.id. | |
1793 | ||
bdaf8be1 JJ |
1794 | 2019-11-22 Jakub Jelinek <jakub@redhat.com> |
1795 | ||
1796 | PR c/90677 | |
1797 | * c-decl.c (identifier_global_tag): Define. | |
1798 | ||
3e00ba47 RB |
1799 | 2019-11-20 Richard Biener <rguenther@suse.de> |
1800 | ||
1801 | PR c/92088 | |
1802 | * c-decl.c (grokdeclarator): Prevent inlining of nested | |
1803 | function with VLA arguments. | |
1804 | ||
8c5b727a JM |
1805 | 2019-11-20 Joseph Myers <joseph@codesourcery.com> |
1806 | ||
1807 | * c-decl.c (c_warn_type_attributes): New function. | |
1808 | (groktypename, grokdeclarator, finish_declspecs): Call | |
1809 | c_warn_type_attributes before applying attributes to types. | |
1810 | * c-tree.h (c_warn_type_attributes): Declare. | |
1811 | ||
192961ff JM |
1812 | 2019-11-19 Joseph Myers <joseph@codesourcery.com> |
1813 | ||
1814 | * c-decl.c (c_warn_unused_attributes): Use pedwarn not warning for | |
1815 | standard attributes. | |
1816 | * c-parser.c (c_parser_std_attribute): Take argument for_tm. Use | |
1817 | pedwarn for unknown standard attributes and return error_mark_node | |
1818 | for them. | |
1819 | ||
20a38017 MM |
1820 | 2019-11-18 Matthew Malcomson <matthew.malcomson@arm.com> |
1821 | ||
1822 | * c-parser.c (c_parser_parse_rtl_body): Always call | |
1823 | run_rtl_passes, even if startwith pass is not provided. | |
1824 | ||
d5fbe5e0 JM |
1825 | 2019-11-15 Joseph Myers <joseph@codesourcery.com> |
1826 | ||
1827 | * c-parser.c (c_parser_std_attribute_specifier): Diagnose | |
1828 | duplicate standard attributes. | |
1829 | ||
97cc1187 JM |
1830 | 2019-11-15 Joseph Myers <joseph@codesourcery.com> |
1831 | ||
1832 | * c-decl.c (std_attribute_table): Add maybe_unused. | |
1833 | ||
f8aea5e3 JM |
1834 | 2019-11-15 Joseph Myers <joseph@codesourcery.com> |
1835 | ||
1836 | * c-decl.c (std_attribute_table): Add fallthrough. | |
1837 | * c-parser.c (c_parser_declaration_or_fndef): Diagnose fallthrough | |
1838 | attribute at top level. | |
1839 | ||
2cc94aa8 JM |
1840 | 2019-11-15 Joseph Myers <joseph@codesourcery.com> |
1841 | ||
1842 | * c-decl.c (std_attribute_table): New. | |
1843 | (c_init_decl_processing): Register attributes from | |
1844 | std_attribute_table. | |
1845 | * c-parser.c (c_parser_attribute_arguments): Add arguments | |
1846 | require_string and allow_empty_args. All callers changed. | |
1847 | (c_parser_std_attribute): Set require_string argument for | |
1848 | "deprecated" attribute. | |
1849 | ||
7c5890cc JM |
1850 | 2019-11-14 Joseph Myers <joseph@codesourcery.com> |
1851 | ||
1852 | * c-parser.c (c_parser_postfix_expression) | |
1853 | (c_parser_check_literal_zero): Handle CPP_UTF8CHAR. | |
1854 | * gimple-parser.c (c_parser_gimple_postfix_expression): Likewise. | |
1855 | ||
e8738f4e RS |
1856 | 2019-11-14 Richard Sandiford <richard.sandiford@arm.com> |
1857 | ||
1858 | * c-typeck.c (build_conditional_expr): Use truth_type_for instead | |
1859 | of build_same_sized_truth_vector_type. | |
1860 | (build_vec_cmp): Likewise. | |
1861 | ||
b2417b59 JJ |
1862 | 2019-11-14 Jakub Jelinek <jakub@redhat.com> |
1863 | ||
bedb7f04 JJ |
1864 | * c-parser.c (c_parser_omp_context_selector): Don't require score |
1865 | argument to fit into shwi, just to be INTEGER_CST. Diagnose | |
1866 | negative score. | |
1867 | ||
b2417b59 JJ |
1868 | * c-parser.c (c_parser_omp_context_selector): Rename |
1869 | CTX_PROPERTY_IDLIST to CTX_PROPERTY_NAME_LIST, add CTX_PROPERTY_ID. | |
1870 | Use CTX_PROPERTY_ID for atomic_default_mem_order, only allow a single | |
1871 | identifier in that. For CTX_PROPERTY_NAME_LIST, allow identifiers | |
1872 | and string literals. | |
1873 | ||
4e03c3a7 JM |
1874 | 2019-11-14 Joseph Myers <joseph@codesourcery.com> |
1875 | ||
1876 | * c-tree.h (enum c_typespec_kind): Add ctsk_tagref_attrs and | |
1877 | ctsk_tagfirstref_attrs. | |
1878 | (struct c_declspecs): Update description of attrs. Add | |
1879 | postfix_attrs and non_std_attrs_seen_p. Increase size of | |
1880 | typespec_kind bit-field. | |
1881 | (c_warn_unused_attributes): New declaration. | |
1882 | (parser_xref_tag): Update prototype. | |
1883 | * c-decl.c (c_warn_unused_attributes): New function. | |
1884 | (shadow_tag_warned): Handle ctsk_tagfirstref_attrs and | |
1885 | ctsk_tagref_attrs. Handle attribute declarations. | |
1886 | (check_compound_literal_type): Handle ctsk_tagfirstref_attrs. | |
1887 | (grokdeclarator): Handle standard attributes. | |
1888 | (parser_xref_tag): Add arguments have_std_attrs and attrs. Apply | |
1889 | attributes to incomplete type reference. | |
1890 | (xref_tag): Update call to parser_xref_tag. | |
1891 | (declspecs_add_addrspace, declspecs_add_type) | |
1892 | (declspecs_add_scspec, declspecs_add_attrs): Set | |
1893 | non_std_attrs_seen_p. | |
1894 | (finish_declspecs): Apply postfix standard attributes to type. | |
1895 | * c-parser.c (c_token_starts_declspecs) | |
1896 | (c_token_starts_declaration, c_parser_next_token_starts_declspecs) | |
1897 | (c_parser_next_tokens_start_declaration): Update comments. | |
1898 | (c_parser_consume_token, c_parser_consume_pragma): Handle moving | |
1899 | parser->tokens[2] to parser->tokens[1]. | |
1900 | (c_parser_nth_token_starts_std_attributes) | |
1901 | (c_parser_std_attribute_specifier_sequence): New functions. | |
1902 | (c_parser_declaration_or_fndef): Add arguments have_attrs and | |
1903 | attrs. All callers changed. Handle standard attributes. | |
1904 | (c_parser_parms_declarator, c_parser_parms_list_declarator) | |
1905 | (c_parser_parameter_declaration): Add argument have_gnu_attrs. | |
1906 | All callers changed. | |
1907 | (c_parser_declspecs): Add arguments start_std_attr_ok and | |
1908 | end_std_attr_ok. All callers changed. Handle standard | |
1909 | attributes. | |
1910 | (c_parser_enum_specifier, c_parser_struct_or_union_specifier) | |
1911 | (c_parser_direct_declarator, c_parser_direct_declarator_inner) | |
1912 | (c_parser_compound_statement_nostart, c_parser_all_labels) | |
1913 | (c_parser_label, c_parser_statement, c_parser_for_statement): | |
1914 | Handle standard attributes. | |
1915 | * c-parser.h (c_parser_declspecs): Update prototype. | |
1916 | * gimple-parser.c (c_parser_gimple_declaration): Update call to | |
1917 | c_parser_declspecs. | |
1918 | ||
0c29cac4 ML |
1919 | 2019-11-12 Martin Liska <mliska@suse.cz> |
1920 | ||
1921 | * gimple-parser.c: Do not include params.h. | |
1922 | ||
028d4092 ML |
1923 | 2019-11-12 Martin Liska <mliska@suse.cz> |
1924 | ||
1925 | * gimple-parser.c (c_parser_parse_gimple_body): Replace old parameter syntax | |
1926 | with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET | |
1927 | macro. | |
1928 | ||
62aee289 MR |
1929 | 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com> |
1930 | Frederik Harwath <frederik@codesourcery.com> | |
1931 | ||
1932 | gcc/c/ | |
1933 | * c-parser.c (OACC_SERIAL_CLAUSE_MASK): New macro. | |
1934 | (c_parser_oacc_kernels_parallel): Rename function to... | |
1935 | (c_parser_oacc_compute): ... this. Handle PRAGMA_OACC_SERIAL. | |
1936 | (c_parser_omp_construct): Update accordingly. | |
1937 | ||
1938 | ||
7cec9588 JJ |
1939 | 2019-11-11 Jakub Jelinek <jakub@redhat.com> |
1940 | ||
1941 | * c-parser.c (c_parser_translation_unit): Diagnose declare target | |
1942 | without corresponding end declare target. | |
1943 | ||
f486280c RS |
1944 | 2019-11-08 Richard Sandiford <richard.sandiford@arm.com> |
1945 | ||
1946 | * c-convert.c (convert): Only handle vector conversions if one of | |
1947 | the types satisfies gnu_vector_type_p or if -flax-vector-conversions | |
1948 | allows it. | |
1949 | * c-typeck.c (build_array_ref): Only allow vector indexing if the | |
1950 | vectors satisfy gnu_vector_type_p. | |
1951 | (build_unary_op): Only allow unary operators to be applied to | |
1952 | vectors if they satisfy gnu_vector_type_p. | |
1953 | (digest_init): Only allow by-element initialization of vectors | |
1954 | if they satisfy gnu_vector_type_p. | |
1955 | (really_start_incremental_init): Likewise. | |
1956 | (push_init_level): Likewise. | |
1957 | (pop_init_level): Likewise. | |
1958 | (process_init_element): Likewise. | |
1959 | (build_binary_op): Only allow binary operators to be applied to | |
1960 | vectors if they satisfy gnu_vector_type_p. | |
1961 | ||
017c6491 JM |
1962 | 2019-11-08 Joseph Myers <joseph@codesourcery.com> |
1963 | ||
1964 | * c-decl.c (grokparms): Convert () in a function definition to | |
1965 | (void) for C2x. | |
1966 | (store_parm_decls_oldstyle): Pedwarn for C2x. | |
1967 | (store_parm_decls): Update comment about () not generating a | |
1968 | prototype. | |
1969 | ||
c01bd174 JM |
1970 | 2019-11-07 Joseph Myers <joseph@codesourcery.com> |
1971 | ||
1972 | * c-parser.c (c_parser_attribute_arguments): New function. | |
1973 | Factored out of c_parser_gnu_attribute. | |
1974 | (c_parser_gnu_attribute): Use c_parser_attribute_arguments. | |
1975 | (c_parser_balanced_token_sequence, c_parser_std_attribute) | |
1976 | (c_parser_std_attribute_specifier): New functions. | |
1977 | (c_parser_transaction_attributes): Use | |
1978 | c_parser_std_attribute_specifier. | |
1979 | ||
471c5330 JM |
1980 | 2019-11-07 Joseph Myers <joseph@codesourcery.com> |
1981 | ||
1982 | * c-parser.c (c_parser): Remove lex_untranslated_string. Add | |
1983 | lex_joined_string and translate_strings_p. | |
1984 | (c_lex_one_token): Pass 0 or C_LEX_STRING_NO_JOIN to | |
1985 | c_lex_with_flags. | |
1986 | (c_parser_string_literal): New function. | |
1987 | (c_parser_static_assert_declaration_no_semi): Use | |
1988 | c_parser_string_literal. Do not set lex_untranslated_string. | |
1989 | (c_parser_asm_string_literal): Use c_parser_string_literal. | |
1990 | (c_parser_simple_asm_expr): Do not set lex_untranslated_string. | |
1991 | (c_parser_gnu_attributes): Set and restore translate_strings_p | |
1992 | instead of lex_untranslated_string. | |
1993 | (c_parser_asm_statement): Do not set lex_untranslated_string. | |
1994 | (c_parser_asm_operands): Likewise. | |
1995 | (c_parser_has_attribute_expression): Set and restore | |
1996 | translate_strings_p instead of lex_untranslated_string. | |
1997 | (c_parser_postfix_expression): Use c_parser_string_literal. | |
1998 | (pragma_lex): Likewise. | |
1999 | (c_parser_pragma_pch_preprocess): Set lex_joined_string. | |
2000 | (c_parse_file): Set translate_strings_p. | |
2001 | * gimple-parser.c (c_parser_gimple_postfix_expression) | |
2002 | (c_parser_gimple_or_rtl_pass_list): Use c_parser_string_literal. | |
2003 | * c-parser.c (c_parser_string_literal): Declare function. | |
2004 | ||
d0c464d2 JJ |
2005 | 2019-11-02 Jakub Jelinek <jakub@redhat.com> |
2006 | ||
2007 | * c-parser.c (c_finish_omp_declare_variant): Use | |
2008 | omp_get_context_selector instead of c_omp_get_context_selector. | |
2009 | ||
ac2cfa6c RS |
2010 | 2019-10-29 Richard Sandiford <richard.sandiford@arm.com> |
2011 | ||
2012 | * c-tree.h (c_simulate_enum_decl): Declare. | |
2013 | * c-decl.c (c_simulate_enum_decl): New function. | |
2014 | * c-objc-common.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define to the above. | |
2015 | ||
74078538 RS |
2016 | 2019-10-29 Richard Sandiford <richard.sandiford@arm.com> |
2017 | ||
2018 | * c-tree.h (c_simulate_builtin_function_decl): Declare. | |
2019 | * c-decl.c (c_simulate_builtin_function_decl): New function. | |
2020 | * c-objc-common.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define | |
2021 | to the above. | |
2022 | ||
ad1539d5 MS |
2023 | 2019-10-28 Martin Sebor <msebor@redhat.com> |
2024 | ||
2025 | PR c/66970 | |
2026 | * c-decl.c (names_builtin_p): Define a new function. | |
2027 | ||
cb73e4e7 RB |
2028 | 2019-10-28 Richard Biener <rguenther@suse.de> |
2029 | ||
2030 | PR c/92249 | |
2031 | * gimple-parser.c (c_parser_parse_gimple_body): Make | |
2032 | current_bb the entry block initially to easier recover | |
2033 | from errors. | |
2034 | (c_parser_gimple_compound_statement): Adjust. | |
2035 | ||
135df52c JJ |
2036 | 2019-10-24 Jakub Jelinek <jakub@redhat.com> |
2037 | ||
2038 | * c-parser.c (c_finish_omp_declare_variant): Use | |
2039 | omp_context_selector_matches instead of | |
2040 | c_omp_context_selector_matches. | |
2041 | * c-decl.c (c_decl_attributes): Add "omp declare target block" | |
2042 | attribute in between declare target and end declare target | |
2043 | pragmas. | |
2044 | ||
783bfe5e JM |
2045 | 2019-10-15 Joseph Myers <joseph@codesourcery.com> |
2046 | ||
2047 | * c-parser.c (c_parser_attribute_any_word): Rename to | |
2048 | c_parser_gnu_attribute_any_word. All callers changed. | |
2049 | (c_parser_attribute): Rename to c_parser_gnu_attribute. All | |
2050 | callers changed. | |
2051 | (c_parser_attributes): Rename to c_parser_gnu_attributes. All | |
2052 | callers changed. | |
2053 | (c_parser_declaration_or_fndef, c_parser_declspecs) | |
2054 | (c_parser_enum_specifier, c_parser_struct_or_union_specifier) | |
2055 | (c_parser_struct_declaration, c_parser_declarator) | |
2056 | (c_parser_gnu_attribute, c_parser_compound_statement) | |
2057 | (c_parser_label, c_parser_statement, c_parser_objc_method_decl) | |
2058 | (c_parser_transaction_attributes): Add "gnu-" prefix to names of | |
2059 | attribute-related syntax productions. | |
2060 | ||
56898e43 RS |
2061 | 2019-10-14 Richard Sandiford <richard.sandiford@arm.com> |
2062 | ||
2063 | * c-objc-common.c (useful_aka_type_p): Replace with... | |
2064 | (get_aka_type): ...this new function. Given the original type, | |
2065 | decide which aka type to print (if any). Only look through typedefs | |
2066 | if user_facing_original_type_p. | |
2067 | (print_type): Update accordingly. | |
2068 | ||
b9424661 JJ |
2069 | 2019-10-14 Jakub Jelinek <jakub@redhat.com> |
2070 | ||
2071 | * c-parser.c (c_parser_omp_all_clauses): Change bool NESTED_P argument | |
2072 | into int NESTED, if it is 2, diagnose missing commas in between | |
2073 | clauses. | |
2074 | (c_parser_omp_context_selector): Pass 2 as last argument to | |
2075 | c_parser_omp_all_clauses. | |
2076 | ||
20de9568 JJ |
2077 | 2019-10-12 Jakub Jelinek <jakub@redhat.com> |
2078 | ||
2079 | * c-parser.c (c_parser_omp_context_selector): Improve error recovery. | |
2080 | For simd properties, put them directly into TREE_VALUE. | |
2081 | (c_finish_omp_declare_variant): Call c_omp_mark_declare_variant. | |
2082 | If c_omp_context_selector_matches is 0, don't add attribute, otherwise | |
2083 | add "omp declare variant base" attribute rather than | |
2084 | "omp declare variant". | |
2085 | ||
fe2bc27c JM |
2086 | 2019-10-11 Joseph Myers <joseph@codesourcery.com> |
2087 | ||
2088 | * c-decl.c (declspecs_add_type): Use pedwarn_c11 for DFP types. | |
2089 | ||
94e7f906 JJ |
2090 | 2019-10-10 Jakub Jelinek <jakub@redhat.com> |
2091 | ||
2092 | * c-parser.c (c_parser_omp_all_clauses): Add NESTED_P argument, if | |
2093 | true, terminate processing on closing paren and don't skip to end of | |
2094 | pragma line. | |
2095 | (c_parser_omp_declare_simd): Handle also declare variant. | |
2096 | (omp_construct_selectors, omp_device_selectors, | |
2097 | omp_implementation_selectors, omp_user_selectors): New variables. | |
2098 | (c_parser_omp_context_selector, | |
2099 | c_parser_omp_context_selector_specification, | |
2100 | c_finish_omp_declare_variant): New functions. | |
2101 | (c_finish_omp_declare_simd): Handle both declare simd and | |
2102 | declare variant. | |
2103 | (c_parser_omp_declare): Handle declare variant. | |
2104 | ||
93313b94 JM |
2105 | 2019-10-02 Joseph Myers <joseph@codesourcery.com> |
2106 | ||
2107 | * c-parser.c (c_parser_asm_statement): Handle CPP_SCOPE like two | |
2108 | CPP_COLON tokens. | |
2109 | ||
55879815 RS |
2110 | 2019-10-01 Richard Sandiford <richard.sandiford@arm.com> |
2111 | ||
2112 | * c-objc-common.c (useful_aka_type_p): New function. | |
2113 | (print_type): Use it to decide whether an aka type is worth printing. | |
2114 | ||
59bc434a JJ |
2115 | 2019-09-27 Jakub Jelinek <jakub@redhat.com> |
2116 | ||
2117 | PR c++/88203 | |
2118 | * c-parser.c (c_parser_predefined_identifier): New function. | |
2119 | (c_parser_postfix_expression): Use it. | |
2120 | (c_parser_omp_variable_list): Parse predefined identifiers. | |
2121 | * c-typeck.c (c_finish_omp_clauses): Allow predefined variables | |
2122 | in shared and firstprivate clauses, even when they are predetermined | |
2123 | shared. | |
2124 | ||
c6447c20 RS |
2125 | 2019-09-27 Richard Sandiford <richard.sandiford@arm.com> |
2126 | ||
2127 | * c-typeck.c (build_function_call_vec): Take the original function | |
2128 | decl as an optional final parameter. Pass all built-in calls to | |
2129 | check_builtin_function_arguments. | |
2130 | ||
522da4c2 EB |
2131 | 2019-09-20 Eric Botcazou <ebotcazou@adacore.com> |
2132 | ||
2133 | PR c/91815 | |
2134 | * c-decl.c (pushdecl): In C detect duplicate declarations across scopes | |
2135 | of identifiers in the external scope only for variables and functions. | |
2136 | ||
68e2c199 PK |
2137 | 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
2138 | ||
2139 | PR c/78736 | |
2140 | * c-typeck.c (convert_for_assignment): Handle Wenum-conversion. | |
2141 | ||
22f8849d IS |
2142 | 2019-08-23 Iain Sandoe <iain@sandoe.co.uk> |
2143 | ||
2144 | PR pch/61250 | |
2145 | * c-parser.c (c_parse_file): Call c_common_no_more_pch () | |
2146 | after determining that the first token is not | |
2147 | PRAGMA_GCC_PCH_PREPROCESS. | |
2148 | ||
db376f45 EB |
2149 | 2019-08-22 Eric Botcazou <ebotcazou@adacore.com> |
2150 | ||
2151 | * c-parser.c (c_parser_declaration_or_fndef): Set DECL_ARGUMENTS of a | |
2152 | FUNCTION_DECL to the right value in the presence of nested declarators. | |
2153 | ||
4d732405 RS |
2154 | 2019-08-13 Richard Sandiford <richard.sandiford@arm.com> |
2155 | ||
2156 | PR middle-end/91421 | |
2157 | * c-decl.c (merge_decls): Use copy_decl_built_in_function. | |
2158 | ||
cb1180d5 RS |
2159 | 2019-08-13 Richard Sandiford <richard.sandiford@arm.com> |
2160 | ||
2161 | PR middle-end/91421 | |
2162 | * c-decl.c (header_for_builtin_fn): Take a FUNCTION_DECL instead | |
2163 | of a built_in_function. | |
2164 | (diagnose_mismatched_decls, implicitly_declare): Update accordingly. | |
2165 | ||
77eb117f JJ |
2166 | 2019-08-10 Jakub Jelinek <jakub@redhat.com> |
2167 | ||
2168 | * c-parser.c (c_parser_omp_clause_name): Parse device_type. | |
2169 | (c_parser_omp_clause_device_type): New function. | |
2170 | (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_DEVICE_TYPE. | |
2171 | (OMP_DECLARE_TARGET_CLAUSE_MASK): Add PRAGMA_OMP_CLAUSE_DEVICE_TYPE. | |
2172 | (c_parser_omp_declare_target): Handle device_type clauses. Remove | |
2173 | diagnostics for declare target with clauses nested in clause-less | |
2174 | declare target declaration-definition-seq. | |
2175 | * c-typeck.c (c_finish_omp_clauses): Handle OMP_CLAUSE_DEVICE_TYPE. | |
2176 | ||
2c3b8bad JJ |
2177 | 2019-08-09 Jakub Jelinek <jakub@redhat.com> |
2178 | ||
bb522e2e JJ |
2179 | * c-parser.c (check_no_duplicate_clause): Simplify using |
2180 | omp_find_clause. | |
2181 | (c_parser_omp_clause_if): Fix up printing of target {enter,exit} data | |
2182 | directive name modifiers. | |
2183 | (c_parser_omp_clause_proc_bind): Check for duplicate proc_bind clause. | |
2184 | ||
2c3b8bad JJ |
2185 | PR c/91401 |
2186 | * c-parser.c (c_parser_omp_clause_dist_schedule): Fix up typos in the | |
2187 | check_no_duplicate_clause call. Comment it out, instead emit a | |
2188 | warning for duplicate dist_schedule clauses. | |
2189 | ||
99769e7f RS |
2190 | 2019-08-08 Richard Sandiford <richard.sandiford@arm.com> |
2191 | ||
2192 | * c-decl.c (finish_enum): Clear C_TYPE_BEING_DEFINED. | |
2193 | ||
8860d270 JJ |
2194 | 2019-08-08 Jakub Jelinek <jakub@redhat.com> |
2195 | ||
2196 | * c-typeck.c (c_finish_omp_clauses): For C_ORT_OMP | |
2197 | OMP_CLAUSE_USE_DEVICE_* clauses use oacc_reduction_head bitmap | |
2198 | instead of generic_head to track duplicates. | |
2199 | ||
398e3feb JJ |
2200 | 2019-08-07 Jakub Jelinek <jakub@redhat.com> |
2201 | ||
2202 | * c-parser.c (c_parser_omp_clause_name): Parse use_device_addr clause. | |
2203 | (c_parser_omp_clause_use_device_addr): New function. | |
2204 | (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_USE_DEVICE_ADDR. | |
2205 | (OMP_TARGET_DATA_CLAUSE_MASK): Add PRAGMA_OMP_CLAUSE_USE_DEVICE_ADDR. | |
2206 | (c_parser_omp_target_data): Handle PRAGMA_OMP_CLAUSE_USE_DEVICE_ADDR | |
2207 | like PRAGMA_OMP_CLAUSE_USE_DEVICE_PTR, adjust diagnostics about no | |
2208 | map or use_device_* clauses. | |
2209 | * c-typeck.c (c_finish_omp_clauses): For OMP_CLAUSE_USE_DEVICE_PTR | |
2210 | in OpenMP, require pointer type rather than pointer or array type. | |
2211 | Handle OMP_CLAUSE_USE_DEVICE_ADDR. | |
2212 | ||
a28351e7 JJ |
2213 | 2019-07-31 Jakub Jelinek <jakub@redhat.com> |
2214 | ||
2215 | PR c/91192 | |
2216 | * c-parser.c (c_parser_sizeof_expression): Call set_c_expr_source_range | |
2217 | even if finish is UNKNOWN_LOCATION, just use start as finish in that | |
2218 | case. | |
2219 | ||
6343b6bf ML |
2220 | 2019-07-25 Martin Liska <mliska@suse.cz> |
2221 | Dominik Infuhr <dominik.infuehr@theobroma-systems.com> | |
2222 | ||
2223 | PR c++/23383 | |
2224 | * c-decl.c (merge_decls): Merge OPERATOR_DELETE flag. | |
2225 | ||
cb50701e ML |
2226 | 2019-07-25 Martin Liska <mliska@suse.cz> |
2227 | ||
2228 | * c-decl.c (merge_decls): Use new macros | |
2229 | (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P). | |
2230 | ||
62e3e66f RB |
2231 | 2019-07-23 Richard Biener <rguenther@suse.de> |
2232 | ||
2233 | PR tree-optimization/83518 | |
2234 | * gimple-parser.c (c_parser_parse_gimple_body): When we have | |
2235 | a CFG also rebuild cgraph edges. | |
2236 | ||
554a530f JJ |
2237 | 2019-07-20 Jakub Jelinek <jakub@redhat.com> |
2238 | ||
2239 | * c-parser.c (c_parser_omp_clause_name): Handle bind clause. | |
2240 | (c_parser_omp_clause_bind): New function. | |
2241 | (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_BIND. | |
2242 | (OMP_LOOP_CLAUSE_MASK): Define. | |
2243 | (c_parser_omp_loop): New function. | |
2244 | (c_parser_omp_parallel, c_parser_omp_teams): Handle parsing of | |
2245 | loop combined with parallel or teams. | |
2246 | (c_parser_omp_construct): Handle PRAGMA_OMP_LOOP. | |
2247 | * c-typeck.c (c_finish_omp_clauses): Handle OMP_CLAUSE_BIND. | |
2248 | ||
d119bf79 RS |
2249 | 2019-07-18 Richard Sandiford <richard.sandiford@arm.com> |
2250 | ||
2251 | PR c/53633 | |
2252 | * c-decl.c (finish_function): Check targetm.warn_func_return | |
2253 | before issuing a -Wreturn-type warning. | |
2254 | ||
ab20d992 | 2255 | 2019-07-12 Alexandre Oliva <oliva@adacore.com> |
fdc1f343 AO |
2256 | |
2257 | * gimple-parser.c (c_parser_gimple_try_stmt): New. | |
2258 | (c_parser_compound_statement): Call it. | |
2259 | ||
1fdd6f04 JJ |
2260 | 2019-07-12 Jakub Jelinek <jakub@redhat.com> |
2261 | ||
2262 | * c-parser.c (c_parser_omp_clause_name): Handle order clause. | |
2263 | (c_parser_omp_clause_order): New function. | |
2264 | (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_ORDER. | |
2265 | (OMP_SIMD_CLAUSE_MASK, OMP_FOR_CLAUSE_MASK): Add | |
2266 | PRAGMA_OMP_CLAUSE_ORDER. | |
2267 | * c-typeck.c (c_finish_omp_clauses): Handle OMP_CLAUSE_ORDER. | |
2268 | ||
8389386c RB |
2269 | 2019-07-10 Richard Biener <rguenther@suse.de> |
2270 | ||
2271 | * gimple-parser.c (c_parser_gimple_postfix_expression): Support | |
2272 | _Literal (int *) &x for address literals. | |
2273 | ||
99b1c316 MS |
2274 | 2019-07-09 Martin Sebor <msebor@redhat.com> |
2275 | ||
2276 | PR c++/61339 | |
2277 | * c-decl.c (xref_tag): Change class-key of PODs to struct and others | |
2278 | to class. | |
2279 | (field_decl_cmp): Same. | |
2280 | * c-parser.c (c_parser_struct_or_union_specifier): Same. | |
2281 | * c-tree.h: Same. | |
2282 | * gimple-parser.c (c_parser_gimple_compound_statement): Same. | |
2283 | ||
6c1dae73 MS |
2284 | 2019-07-09 Martin Sebor <msebor@redhat.com> |
2285 | ||
2286 | PR c++/61339 | |
2287 | * c-decl.c: Change class-key from class to struct and vice versa | |
2288 | to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod. | |
2289 | * gimple-parser.c: Same. | |
2290 | ||
69b5279e RB |
2291 | 2019-07-01 Richard Biener <rguenther@suse.de> |
2292 | ||
2293 | * gimple-parser.c (c_parser_gimple_postfix_expression): Handle | |
2294 | _Literal (char *) &"foo" for address literals pointing to | |
2295 | STRING_CSTs. | |
2296 | ||
ab20d992 JJ |
2297 | 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com> |
2298 | ||
2299 | * c-parser.c (c_parse_init): Create keyword for "__intN__" type. | |
2300 | * c-decl.c (declspecs_add_type): Don't pedwarn about "__intN" ISO | |
2301 | C incompatibility if alternate "__intN__" form is used. | |
2302 | ||
1e3d475e MS |
2303 | 2019-06-24 Martin Sebor <msebor@redhat.com> |
2304 | ||
2305 | * c-typeck.c (build_binary_op): Hyphenate floating-point. | |
2306 | ||
bf38f7e9 JJ |
2307 | 2019-06-10 Jakub Jelinek <jakub@redhat.com> |
2308 | ||
2309 | * c-parser.c (c_parser_pragma): Reject PRAGMA_OMP_SCAN. | |
2310 | (c_parser_omp_clause_reduction): Don't sorry_at on inscan reductions. | |
2311 | (c_parser_omp_scan_loop_body): New function. | |
2312 | (c_parser_omp_for_loop): Call c_parser_omp_scan_loop_body if there are | |
2313 | inscan reduction clauses. | |
2314 | * c-typeck.c (c_finish_omp_clauses): Reject mixing inscan with | |
2315 | non-inscan reductions on the same construct, or inscan reductions with | |
2316 | ordered or schedule clauses, or inscan array reductions. | |
2317 | ||
65985d78 MS |
2318 | 2019-06-05 Martin Sebor <msebor@redhat.com> |
2319 | ||
2320 | PR c/90737 | |
2321 | * c-typeck.c (c_finish_return): Only consider functions returning | |
2322 | pointers as candidates for -Wreturn-local-addr. | |
2323 | ||
0ecf545c MS |
2324 | 2019-06-05 Martin Sebor <msebor@redhat.com> |
2325 | ||
2326 | * c-decl.c (start_decl): Adjust quoting and hyphenation | |
2327 | in diagnostics. | |
2328 | (finish_decl): Same. | |
2329 | (finish_enum): Same. | |
2330 | (start_function): Same. | |
2331 | (declspecs_add_type): Same. | |
2332 | * c-parser.c (warn_for_abs): Same. | |
2333 | * c-typeck.c (build_binary_op): Same. | |
2334 | ||
e03436e7 TS |
2335 | 2019-05-17 Thomas Schwinge <thomas@codesourcery.com> |
2336 | ||
b48f44bf TS |
2337 | PR c/89433 |
2338 | * c-parser.c (c_finish_oacc_routine): Rework checking if already | |
2339 | marked with an OpenACC 'routine' directive. | |
2340 | ||
5bf04509 TS |
2341 | PR c/89433 |
2342 | * c-parser.c (c_parser_oacc_routine): Normalize order of clauses. | |
2343 | (c_finish_oacc_routine): Call oacc_verify_routine_clauses. | |
2344 | ||
e03436e7 TS |
2345 | PR c/89433 |
2346 | * c-parser.c (c_finish_oacc_routine): Refer to OpenACC 'routine' | |
2347 | clauses from "omp declare target" attribute. | |
2348 | ||
a9c697b8 MS |
2349 | 2019-05-16 Martin Sebor <msebor@redhat.com> |
2350 | ||
ab20d992 JJ |
2351 | * c-decl.c (start_decl): Quote keywords, operators, and |
2352 | types in diagnostics. | |
2353 | (finish_decl): Same. | |
2354 | * c-parser.c (c_parser_asm_statement): Same. | |
2355 | (c_parser_conditional_expression): Same. | |
2356 | (c_parser_transaction_cancel): Same. | |
2357 | * c-typeck.c (c_common_type): Same. | |
2358 | (build_conditional_expr): Same. | |
2359 | (digest_init): Same. | |
2360 | (process_init_element): Same. | |
2361 | (build_binary_op): Same. | |
a9c697b8 | 2362 | |
c4499192 RB |
2363 | 2019-05-17 Richard Biener <rguenther@suse.de> |
2364 | ||
2365 | * gimple-parser.c (c_parser_gimple_statement): Handle __VEC_PERM. | |
2366 | (c_parser_gimple_unary_expression): Likewise. | |
2367 | (c_parser_gimple_parentized_ternary_expression): New function. | |
2368 | ||
adfe6e4b RB |
2369 | 2019-05-16 Richard Biener <rguenther@suse.de> |
2370 | ||
2371 | * gimple-parser.c (c_parser_gimple_statement): Handle __BIT_INSERT. | |
2372 | (c_parser_gimple_unary_expression): Likewise. | |
2373 | ||
186dabf2 RB |
2374 | 2019-05-15 Richard Biener <rguenther@suse.de> |
2375 | ||
2376 | * gimple-parser.c (c_parser_gimple_postfix_expression): Handle | |
2377 | __BIT_FIELD_REF. | |
2378 | ||
1158c5b4 RB |
2379 | 2019-05-14 Richard Biener <rguenther@suse.de> |
2380 | ||
2381 | * gimple-parser.c (c_parser_gimple_statement): Remove | |
2382 | questionable auto-promotion to VIEW_CONVERT_EXPR. | |
2383 | (c_parser_gimple_typespec): Split out from __MEM parsing. | |
2384 | (c_parser_gimple_postfix_expression): Handle __VIEW_CONVERT. | |
2385 | * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR | |
2386 | as __VIEW_CONVERT with -gimple. | |
2387 | ||
fd4485aa ML |
2388 | 2019-05-09 Martin Liska <mliska@suse.cz> |
2389 | ||
2390 | * gimple-parser.c (c_parser_gimple_statement): Support __MIN and | |
2391 | __MAX. | |
2392 | (c_parser_gimple_unary_expression): Parse also binary expression | |
2393 | __MIN and __MAX. | |
2394 | (c_parser_gimple_parentized_binary_expression): New function. | |
2395 | ||
d276406a ML |
2396 | 2019-05-09 Martin Liska <mliska@suse.cz> |
2397 | ||
2398 | * gimple-parser.c (struct gimple_parser): Add probability. | |
2399 | for gimple_parser_edge. | |
2400 | (gimple_parser::push_edge): Add new argument probability. | |
2401 | (c_parser_gimple_parse_bb_spec): Parse also probability | |
2402 | if present. | |
2403 | (c_parser_parse_gimple_body): Set edge probability. | |
2404 | (c_parser_gimple_compound_statement): Consume token | |
2405 | before calling c_parser_gimple_goto_stmt. | |
2406 | Parse BB counts. | |
2407 | (c_parser_gimple_statement): Pass new argument. | |
2408 | (c_parser_gimple_goto_stmt): Likewise. | |
2409 | (c_parser_gimple_if_stmt): Likewise. | |
2410 | (c_parser_gimple_or_rtl_pass_list): Parse hot_bb_threshold. | |
2411 | * c-parser.c (c_parser_declaration_or_fndef): Pass | |
2412 | hot_bb_threshold argument. | |
2413 | * c-tree.h (struct c_declspecs): Add hot_bb_threshold | |
2414 | field. | |
2415 | (c_parser_gimple_parse_bb_spec_edge_probability): New. | |
2416 | ||
f179b64e JJ |
2417 | 2019-04-26 Jakub Jelinek <jakub@redhat.com> |
2418 | ||
2419 | PR debug/90197 | |
2420 | * c-tree.h (c_finish_loop): Add 2 further location_t arguments. | |
2421 | * c-parser.c (c_parser_while_statement): Adjust c_finish_loop caller. | |
2422 | (c_parser_do_statement): Likewise. | |
2423 | (c_parser_for_statement): Likewise. Formatting fixes. | |
2424 | * c-typeck.c (c_finish_loop): Add COND_LOCUS and INCR_LOCUS arguments, | |
2425 | emit DEBUG_BEGIN_STMTs if needed. | |
2426 | ||
e7178413 JJ |
2427 | 2019-04-19 Jakub Jelinek <jakub@redhat.com> |
2428 | ||
c280b7ee JJ |
2429 | PR c/89888 |
2430 | * c-typeck.c (struct c_switch): Remove outside_range_p member. | |
2431 | (c_start_case): Don't clear it. | |
2432 | (do_case): Adjust c_add_case_label caller. | |
2433 | (c_finish_case): Adjust c_do_switch_warnings caller. | |
2434 | ||
e7178413 JJ |
2435 | PR c++/90108 |
2436 | * c-decl.c (merge_decls): If remove is main variant and | |
2437 | DECL_ORIGINAL_TYPE is some other type, remove a DECL_ORIGINAL_TYPE | |
2438 | variant that has newdecl as TYPE_NAME if any. | |
2439 | ||
60a2c645 JJ |
2440 | 2019-04-12 Jakub Jelinek <jakub@redhat.com> |
2441 | ||
2442 | PR c/89933 | |
2443 | * c-decl.c (merge_decls): When newdecl's type is its main variant, | |
2444 | don't try to remove it from the variant list, but instead assert | |
2445 | it has no variants. | |
2446 | ||
2a82beaa RB |
2447 | 2019-04-01 Richard Biener <rguenther@suse.de> |
2448 | ||
2449 | PR c/71598 | |
2450 | * c-tree.h (c_get_alias_set): Declare. | |
2451 | * c-objc-common.h (LANG_HOOKS_GET_ALIAS_SET): Use c_get_alias_set. | |
2452 | * c-objc-common.c (c_get_alias_set): Treat enumeral types | |
2453 | as the underlying integer type. | |
2454 | ||
bec1da64 MS |
2455 | 2019-03-19 Martin Sebor <msebor@redhat.com> |
2456 | ||
2457 | PR tree-optimization/89688 | |
2458 | * c-decl.c (finish_decl): Call braced_lists_to_string for more | |
2459 | kinds of initializers. | |
2460 | ||
855cd9b1 JJ |
2461 | 2019-03-19 Jakub Jelinek <jakub@redhat.com> |
2462 | ||
2463 | PR c/89734 | |
2464 | * c-decl.c (grokdeclarator): Call c_build_qualified_type on function | |
2465 | return type even if quals_used is 0. Formatting fixes. | |
2466 | ||
baa09dc5 RB |
2467 | 2019-03-14 Richard Biener <rguenther@suse.de> |
2468 | ||
2469 | * c-tree.h (enum c_declspec_il): New. | |
2470 | (struct c_declspecs): Merge gimple_p and rtl_p into declspec_il | |
2471 | enum bitfield. | |
2472 | * c-parser.c (c_parser_declaration_or_fndef): Adjust accordingly. | |
2473 | Pass start pass and declspec_il to c_parser_parse_gimple_body. | |
2474 | (c_parser_declspecs): Adjust. | |
2475 | * gimple-parser.c: Include cfg.h, cfghooks.h, cfganal.h, tree-cfg.h, | |
2476 | gimple-iterator.h, cfgloop.h, tree-phinodes.h, tree-into-ssa.h | |
2477 | and bitmap.h. | |
2478 | (struct gimple_parser): New. | |
2479 | (gimple_parser::push_edge): New method. | |
2480 | (c_parser_gimple_parse_bb_spec): New helper. | |
2481 | (c_parser_parse_gimple_body): Get start pass and IL specification. | |
2482 | Initialize SSA and CFG. | |
2483 | (c_parser_gimple_compound_statement): Handle CFG and SSA build. | |
2484 | Build a gimple_parser parsing state and pass it along. | |
2485 | (c_parser_gimple_statement): Change intermittend __PHI internal | |
2486 | function argument for the edge. | |
2487 | (c_parser_gimple_or_rtl_pass_list): Handle ssa, cfg flags. | |
2488 | (c_parser_gimple_goto_stmt): Record edges to build. | |
2489 | (c_parser_gimple_if_stmt): Likewise. | |
2490 | * gimple-parser.h (c_parser_parse_gimple_body): Adjust. | |
2491 | (c_parser_gimple_or_rtl_pass_list): Likewise. | |
2492 | ||
a3f9f006 ML |
2493 | 2019-03-11 Martin Liska <mliska@suse.cz> |
2494 | ||
2495 | * c-decl.c (check_for_loop_decls): Wrap an option name | |
2496 | in a string format message and fix GNU coding style. | |
2497 | * c-parser.c (c_parser_declspecs): Likewise. | |
2498 | ||
1db01ff9 JJ |
2499 | 2019-03-08 Jakub Jelinek <jakub@redhat.com> |
2500 | ||
2501 | PR tree-optimization/89550 | |
2502 | * c-decl.c (finish_function): Only set TREE_NO_WARNING if warning_at | |
2503 | returned true. | |
2504 | (c_write_global_declarations_1): Only set TREE_NO_WARNING if pedwarn | |
2505 | or warning returned true. | |
2506 | ||
66dcb747 JJ |
2507 | 2019-02-28 Jakub Jelinek <jakub@redhat.com> |
2508 | ||
2509 | PR c/89525 | |
2510 | * c-typeck.c (convert_arguments): Call inform_declaration only if | |
2511 | the previous warning_at call returned true. | |
2512 | ||
2263c9f2 TS |
2513 | 2019-02-22 Thomas Schwinge <thomas@codesourcery.com> |
2514 | ||
2515 | * c-parser.c (c_parser_oacc_shape_clause): Add loc formal | |
2516 | parameter. Adjust all users. | |
2517 | (c_parser_oacc_simple_clause): Replace parser with loc formal | |
2518 | parameter. Adjust all users. | |
2519 | ||
ab20d992 | 2520 | 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com> |
19695f4d CLT |
2521 | |
2522 | PR c/87924 | |
2523 | * c-parser.c (c_parser_oacc_clause_wait): Add representation of wait | |
2524 | clause without argument as 'wait (GOMP_ASYNC_NOVAL)', adjust comments. | |
2525 | ||
5f88ba10 JJ |
2526 | 2019-02-15 Jakub Jelinek <jakub@redhat.com> |
2527 | ||
2528 | PR c/89340 | |
2529 | * c-decl.c (start_function): Clear TREE_PUBLIC on nested functions | |
2530 | before c_decl_attributes rather than after it. | |
2531 | ||
cfc30fd1 JJ |
2532 | 2019-02-06 Jakub Jelinek <jakub@redhat.com> |
2533 | ||
2534 | PR c/89211 | |
2535 | * c-parser.c (c_parser_declaration_or_fndef): Don't update | |
2536 | DECL_ARGUMENTS of d if it has been defined already. Use a single if | |
2537 | instead of 3 nested ifs. | |
2538 | ||
fbe83e6b JM |
2539 | 2019-02-06 Joseph Myers <joseph@codesourcery.com> |
2540 | ||
2541 | PR c/88584 | |
2542 | * c-decl.c (finish_decl): Do not complete array types for arrays | |
2543 | with external linkage not at file scope. | |
2544 | ||
f461f938 RB |
2545 | 2019-02-05 Richard Biener <rguenther@suse.de> |
2546 | ||
2547 | PR c/88606 | |
2548 | * c-decl.c (finish_struct): Reset TYPE_TRANSPARENT_AGGR on | |
2549 | all type variants when not supported. | |
2550 | ||
fe509359 JJ |
2551 | 2019-01-30 Jakub Jelinek <jakub@redhat.com> |
2552 | ||
2553 | PR c/89061 | |
2554 | * c-tree.h (C_DECL_COMPOUND_LITERAL_P): Define. | |
2555 | * c-decl.c (decl_jump_unsafe): Return false for | |
2556 | C_DECL_COMPOUND_LITERAL_P decls. | |
2557 | (build_compound_literal): Set C_DECL_COMPOUND_LITERAL_P. | |
2558 | ||
6a335b96 JJ |
2559 | 2019-01-29 Jakub Jelinek <jakub@redhat.com> |
2560 | ||
f4b7e754 JJ |
2561 | PR c/89045 |
2562 | * c-decl.c (build_compound_literal): Don't pushdecl if in parameter | |
2563 | scope. | |
2564 | ||
6a335b96 JJ |
2565 | PR c/86125 |
2566 | * c-decl.c (last_fileptr_type): Remove. | |
2567 | (last_structptr_types): New variable. | |
2568 | (match_builtin_function_types): Compare TYPE_MAIN_VARIANT of | |
2569 | {old,new}rettype instead of the types themselves. Assert | |
2570 | last_structptr_types array has the same number of elements | |
2571 | as builtin_structptr_types array. Use TYPE_MAIN_VARIANT for | |
2572 | argument oldtype and newtype. Instead of handling | |
2573 | just fileptr_type_node specially, handle all builtin_structptr_types | |
2574 | pointer nodes. Formatting fix. | |
2575 | ||
d8b5a1a0 MS |
2576 | 2019-01-24 Martin Sebor <msebor@redhat.com> |
2577 | ||
2578 | PR c/86125 | |
2579 | PR c/88886 | |
2580 | PR middle-end/86308 | |
2581 | * c-decl.c (match_builtin_function_types): Add arguments. | |
2582 | (diagnose_mismatched_decls): Diagnose mismatched declarations | |
2583 | of built-ins more strictly. | |
2584 | ||
e21c4491 JJ |
2585 | 2019-01-24 Jakub Jelinek <jakub@redhat.com> |
2586 | ||
2587 | PR c++/88976 | |
2588 | * c-typeck.c (c_finish_omp_cancel): Diagnose more than one if | |
2589 | on #pragma omp cancel with different modifiers. | |
2590 | ||
420183d9 L |
2591 | 2019-01-18 H.J. Lu <hongjiu.lu@intel.com> |
2592 | ||
2593 | PR c/51628 | |
2594 | PR c/88664 | |
2595 | * c-typeck.c (convert_for_assignment): Upate the | |
2596 | warn_for_address_or_pointer_of_packed_member call. | |
2597 | ||
17ad43dd TH |
2598 | 2019-01-16 Tom Honermann <tom@honermann.net> |
2599 | Jason Merrill <jason@redhat.com> | |
2600 | ||
2601 | * c-typeck.c (digest_init): Revised the error message produced for | |
2602 | ill-formed cases of array initialization with a string literal. | |
2603 | (error_init): Make variadic. | |
2604 | ||
5f07d78a JJ |
2605 | 2019-01-12 Jakub Jelinek <jakub@redhat.com> |
2606 | ||
2607 | * c-typeck.c (convert_for_assignment): Fix a comment typo. | |
2608 | ||
c4581bbf JJ |
2609 | 2019-01-07 Jakub Jelinek <jakub@redhat.com> |
2610 | ||
2611 | PR c/88701 | |
2612 | * c-decl.c (build_compound_literal): If not TREE_STATIC, only pushdecl | |
2613 | if current_function_decl is non-NULL. | |
2614 | ||
65c5b1eb JM |
2615 | 2019-01-07 Joseph Myers <joseph@codesourcery.com> |
2616 | ||
2617 | PR c/88720 | |
2618 | PR c/88726 | |
2619 | * c-decl.c (pop_scope): Use TREE_PUBLIC and b->nested to determine | |
2620 | whether a function is nested, not DECL_EXTERNAL. Diagnose inline | |
2621 | functions declared but never defined only for external scope, not | |
2622 | for other scopes. | |
2623 | ||
d8fcab68 JJ |
2624 | 2019-01-07 Jakub Jelinek <jakub@redhat.com> |
2625 | ||
2626 | PR c++/85052 | |
2627 | * c-parser.c (c_parser_postfix_expression): Parse | |
2628 | __builtin_convertvector. | |
2629 | ||
a5544970 JJ |
2630 | 2019-01-01 Jakub Jelinek <jakub@redhat.com> |
2631 | ||
2632 | Update copyright years. | |
2633 | ||
da77eace L |
2634 | 2018-12-20 H.J. Lu <hongjiu.lu@intel.com> |
2635 | ||
2636 | PR c/51628 | |
2637 | * c-typeck.c (convert_for_assignment): Call | |
2638 | warn_for_address_or_pointer_of_packed_member. | |
2639 | ||
1edf8866 SB |
2640 | 2018-12-19 Segher Boessenkool <segher@kernel.crashing.org> |
2641 | ||
2642 | * c-parser.c (c_parser_asm_statement) <RID_CONST, RID_RESTRICT>: Give | |
2643 | a more specific error message (instead of just falling through). | |
2644 | ||
db4fd626 SB |
2645 | 2018-12-19 Segher Boessenkool <segher@kernel.crashing.org> |
2646 | ||
2647 | * c-parser.c (c_parser_asm_statement): Keep track of the location each | |
2648 | asm qualifier is first seen; use that to give nicer "duplicate asm | |
2649 | qualifier" messages. Delete 'quals" variable, instead pass the | |
2650 | "is_volatile_ flag to build_asm_stmt directly. | |
2651 | * c-tree.h (build_asm_stmt): Make the first arg bool instead of tree. | |
2652 | * c-typeck.c (build_asm_stmt): Ditto; adjust. | |
2653 | ||
9c9cfcbb SB |
2654 | 2018-12-19 Segher Boessenkool <segher@kernel.crashing.org> |
2655 | ||
2656 | * c-parser.c (c_parser_asm_statement): Rewrite the loop to work without | |
2657 | "done" boolean variable. | |
2658 | ||
a14feb3c DM |
2659 | 2018-12-19 David Malcolm <dmalcolm@redhat.com> |
2660 | ||
2661 | PR c++/87504 | |
2662 | * c-typeck.c (class maybe_range_label_for_tree_type_mismatch): | |
2663 | Move from here to gcc-rich-location.h and gcc-rich-location.c. | |
2664 | (build_binary_op): Use struct op_location_t and | |
2665 | class binary_op_rich_location. | |
2666 | ||
6d939173 JJ |
2667 | 2018-12-11 Jakub Jelinek <jakub@redhat.com> |
2668 | ||
2669 | PR sanitizer/88426 | |
2670 | * c-convert.c (convert): Call c_fully_fold before calling | |
2671 | ubsan_instrument_float_cast. | |
2672 | ||
b7055028 SB |
2673 | 2018-12-08 Segher Boessenkool <segher@kernel.crashing.org> |
2674 | ||
2675 | * c-parser (c_parser_asm_statement) [RID_INLINE]: Delete stray line | |
2676 | setting "quals". | |
2677 | ||
5b76e75f SB |
2678 | 2018-12-06 Segher Boessenkool <segher@kernel.crashing.org> |
2679 | ||
2680 | * c-parser.c (c_parser_asm_statement): Detect the inline keyword | |
2681 | after asm. Pass a flag for it to build_asm_expr. | |
2682 | * c-tree.h (build_asm_expr): Update declaration. | |
2683 | * c-typeck.c (build_asm_stmt): Add is_inline parameter. Use it to | |
2684 | set ASM_INLINE_P. | |
2685 | ||
30bd42b9 SB |
2686 | 2018-12-06 Segher Boessenkool <segher@kernel.crashing.org> |
2687 | ||
2688 | PR inline-asm/55681 | |
2689 | * c-parser.c (c_parser_asm_statement): Update grammar. Allow any | |
2690 | combination of volatile and goto, in any order, without repetitions. | |
2691 | ||
9df6c0e4 JB |
2692 | 2018-12-04 James Norris <jnorris@codesourcery.com> |
2693 | Cesar Philippidis <cesar@codesourcery.com> | |
2694 | Julian Brown <julian@codesourcery.com> | |
2695 | ||
2696 | * c-parser.c (c_parser_oacc_wait_list): Remove dead diagnostic | |
2697 | code. | |
2698 | ||
f44697b7 RB |
2699 | 2018-11-30 Richard Biener <rguenther@suse.de> |
2700 | ||
2701 | * gimple-parser.c (c_parser_gimple_postfix_expression): Parse | |
2702 | _Literal (type) { ... } as empty aggregate or vector constructor. | |
2703 | ||
550dfbdc MS |
2704 | 2018-11-29 Martin Sebor <msebor@redhat.com> |
2705 | ||
2706 | PR c/88091 | |
2707 | * c-typeck.c (convert_argument): Add a parameter. Adjust indentation. | |
2708 | (convert_arguments): Add comments. Pass additional argument to | |
2709 | the function above. | |
2710 | ||
673670da MS |
2711 | 2018-11-29 Martin Sebor <msebor@redhat.com> |
2712 | ||
2713 | PR c/88172 | |
2714 | PR testsuite/88208 | |
2715 | * c-decl.c (declspec_add_alignas): Adjust call to check_user_alignment. | |
2716 | ||
db1d09b0 MS |
2717 | 2018-11-23 Martin Sebor <msebor@redhat.com> |
2718 | ||
2719 | PR testsuite/88098 | |
2720 | * c-typeck.c (convert_arguments): Call builtin_decl_explicit instead. | |
2721 | (maybe_warn_builtin_no_proto_arg): Handle short enum to int promotion. | |
2722 | ||
98f08eb8 MS |
2723 | 2018-11-20 Martin Sebor <msebor@redhat.com> |
2724 | ||
2725 | * c-parser.c (c_parser_has_attribute_expression): New function. | |
2726 | (c_parser_attribute): New function. | |
2727 | (c_parser_attributes): Move code into c_parser_attribute. | |
2728 | (c_parser_unary_expression): Handle RID_HAS_ATTRIBUTE_EXPRESSION. | |
2729 | ||
cd5da983 MS |
2730 | 2018-11-15 Martin Sebor <msebor@redhat.com> |
2731 | ||
2732 | PR c/83656 | |
2733 | * c-decl.c (header_for_builtin_fn): Declare. | |
2734 | (diagnose_mismatched_decls): Diagnose declarations of built-in | |
2735 | functions without a prototype. | |
2736 | * c-typeck.c (maybe_warn_builtin_no_proto_arg): New function. | |
2737 | (convert_argument): Same. | |
2738 | (convert_arguments): Factor code out into convert_argument. | |
2739 | Detect mismatches between built-in formal arguments in calls | |
2740 | to built-in without prototype. | |
2741 | (build_conditional_expr): Same. | |
2742 | (type_or_builtin_type): New function. | |
2743 | (convert_for_assignment): Add argument. Conditionally issue | |
2744 | warnings instead of errors for mismatches. | |
2745 | ||
620e594b DM |
2746 | 2018-11-13 David Malcolm <dmalcolm@redhat.com> |
2747 | ||
2748 | * c-decl.c: Replace "source_location" with "location_t". | |
2749 | * c-tree.h: Likewise. | |
2750 | * c-typeck.c: Likewise. | |
2751 | * gimple-parser.c: Likewise. | |
2752 | ||
3179ebae JJ |
2753 | 2018-11-09 Jakub Jelinek <jakub@redhat.com> |
2754 | ||
81a227c6 JJ |
2755 | * c-parser.c (c_parser_omp_clause_final): Use |
2756 | c_parser_expr_no_commas, convert_lvalue_to_rvalue, | |
2757 | c_objc_common_truthvalue_conversion, c_fully_fold and parentheses | |
2758 | parsing instead of c_parser_paren_condition. | |
2759 | (c_parser_omp_clause_if): Use c_parser_expr_no_commas, | |
2760 | convert_lvalue_to_rvalue, c_objc_common_truthvalue_conversion and | |
2761 | c_fully_fold instead of c_parser_condition. | |
2762 | (c_parser_omp_clause_num_threads, c_parser_omp_clause_num_tasks, | |
2763 | c_parser_omp_clause_grainsize, c_parser_omp_clause_priority, | |
2764 | c_parser_omp_clause_hint, c_parser_omp_clause_num_teams, | |
2765 | c_parser_omp_clause_thread_limit, c_parser_omp_clause_linear): Use | |
2766 | c_parser_expr_no_commas instead of c_parser_expression. | |
2767 | ||
98c91c56 JJ |
2768 | * c-parser.c (c_parser_omp_clause_reduction): Call sorry_at on |
2769 | reduction clause with inscan modifier. | |
2770 | ||
3179ebae JJ |
2771 | * c-parser.c (c_parser_omp_requires): Call sorry_at on requires |
2772 | clauses other than atomic_default_mem_order. | |
2773 | ||
28567c40 JJ |
2774 | 2018-11-08 Jakub Jelinek <jakub@redhat.com> |
2775 | ||
2776 | * c-parser.c: Include memmode.h. | |
2777 | (c_parser_omp_depobj, c_parser_omp_requires): New functions. | |
2778 | (c_parser_pragma): Handle PRAGMA_OMP_DEPOBJ and PRAGMA_OMP_REQUIRES. | |
2779 | (c_parser_omp_clause_name): Handle nontemporal, in_reduction and | |
2780 | task_reduction clauses. | |
2781 | (c_parser_omp_variable_list): Handle OMP_CLAUSE_{IN,TASK}_REDUCTION. | |
2782 | For OMP_CLAUSE_DEPEND, parse clause operands as either an array | |
2783 | section, or lvalue assignment expression. | |
2784 | (c_parser_omp_clause_if): Handle cancel and simd modifiers. | |
2785 | (c_parser_omp_clause_lastprivate): Parse optional | |
2786 | conditional: modifier. | |
2787 | (c_parser_omp_clause_hint): Require constant integer expression rather | |
2788 | than just integer expression. | |
2789 | (c_parser_omp_clause_defaultmap): Parse new kinds of defaultmap | |
2790 | clause. | |
2791 | (c_parser_omp_clause_reduction): Add IS_OMP and KIND arguments. | |
2792 | Parse reduction modifiers. Pass KIND to c_parser_omp_variable_list. | |
2793 | (c_parser_omp_clause_nontemporal, c_parser_omp_iterators): New | |
2794 | functions. | |
2795 | (c_parser_omp_clause_depend): Parse iterator modifier and handle | |
2796 | iterators. Parse mutexinoutset and depobj kinds. | |
2797 | (c_parser_oacc_all_clauses): Adjust c_parser_omp_clause_reduction | |
2798 | callers. | |
2799 | (c_parser_omp_all_clauses): Likewise. Handle | |
2800 | PRAGMA_OMP_CLAUSE_NONTEMPORAL and | |
2801 | PRAGMA_OMP_CLAUSE_{IN,TASK}_REDUCTION. | |
2802 | (c_parser_omp_atomic): Parse hint and memory order clauses. Handle | |
2803 | default memory order from requires directive if any. Adjust | |
2804 | c_finish_omp_atomic caller. | |
2805 | (c_parser_omp_critical): Allow comma in between (name) and hint clause. | |
2806 | (c_parser_omp_flush): Parse flush with memory-order-clause. | |
2807 | (c_parser_omp_for_loop): Allow NE_EXPR even in | |
2808 | OpenMP loops, adjust c_finish_omp_for caller. | |
2809 | (OMP_SIMD_CLAUSE_MASK): Add if and nontemporal clauses. | |
2810 | (c_parser_omp_master): Add p_name, mask and cclauses arguments. | |
2811 | Allow to be called while parsing combined parallel master. | |
2812 | Parse combined master taskloop{, simd}. | |
2813 | (c_parser_omp_parallel): Parse combined | |
2814 | parallel master{, taskloop{, simd}} constructs. | |
2815 | (OMP_TASK_CLAUSE_MASK): Add in_reduction clause. | |
2816 | (OMP_TASKGROUP_CLAUSE_MASK): Define. | |
2817 | (c_parser_omp_taskgroup): Add LOC argument. Parse taskgroup clauses. | |
2818 | (OMP_TASKWAIT_CLAUSE_MASK): Define. | |
2819 | (c_parser_omp_taskwait): Handle taskwait with depend clauses. | |
2820 | (c_parser_omp_teams): Force a BIND_EXPR with BLOCK | |
2821 | around teams body. Use SET_EXPR_LOCATION. | |
2822 | (c_parser_omp_target_data): Allow target data | |
2823 | with only use_device_ptr clauses. | |
2824 | (c_parser_omp_target): Use SET_EXPR_LOCATION. Set | |
2825 | OMP_REQUIRES_TARGET_USED bit in omp_requires_mask. | |
2826 | (c_parser_omp_requires): New function. | |
2827 | (c_finish_taskloop_clauses): New function. | |
2828 | (OMP_TASKLOOP_CLAUSE_MASK): Add reduction and in_reduction clauses. | |
2829 | (c_parser_omp_taskloop): Use c_finish_taskloop_clauses. Add forward | |
2830 | declaration. Disallow in_reduction clause when combined with parallel | |
2831 | master. | |
2832 | (c_parser_omp_construct): Adjust c_parser_omp_master and | |
2833 | c_parser_omp_taskgroup callers. | |
2834 | * c-typeck.c (c_finish_omp_cancel): Diagnose if clause with modifier | |
2835 | other than cancel. | |
2836 | (handle_omp_array_sections_1): Handle OMP_CLAUSE_{IN,TASK}_REDUCTION | |
2837 | like OMP_CLAUSE_REDUCTION. | |
2838 | (handle_omp_array_sections): Likewise. Call save_expr on array | |
2839 | reductions before calling build_index_type. Handle depend clauses | |
2840 | with iterators. | |
2841 | (struct c_find_omp_var_s): New type. | |
2842 | (c_find_omp_var_r, c_omp_finish_iterators): New functions. | |
2843 | (c_finish_omp_clauses): Don't diagnose nonmonotonic clause | |
2844 | with static, runtime or auto schedule kinds. Call save_expr for whole | |
2845 | array reduction sizes. Diagnose reductions with zero sized elements | |
2846 | or variable length structures. Diagnose nogroup clause used with | |
2847 | reduction clause(s). Handle depend clause with | |
2848 | OMP_CLAUSE_DEPEND_DEPOBJ. Diagnose bit-fields. Require | |
2849 | omp_depend_t type for OMP_CLAUSE_DEPEND_DEPOBJ kinds and | |
2850 | some different type for other kinds. Use build_unary_op with | |
2851 | ADDR_EXPR and build_indirect_ref instead of c_mark_addressable. | |
2852 | Handle depend clauses with iterators. Remove no longer needed special | |
2853 | case that predetermined const qualified vars may be specified in | |
2854 | firstprivate clause. Complain if const qualified vars are mentioned | |
2855 | in data-sharing clauses other than firstprivate or shared. Use | |
2856 | error_at with OMP_CLAUSE_LOCATION (c) as first argument instead of | |
2857 | error. Formatting fix. Handle OMP_CLAUSE_NONTEMPORAL and | |
2858 | OMP_CLAUSE_{IN,TASK}_REDUCTION. Allow any lvalue as | |
2859 | OMP_CLAUSE_DEPEND operand (besides array section), adjust diagnostics. | |
2860 | ||
7e2de6df DM |
2861 | 2018-10-29 David Malcolm <dmalcolm@redhat.com> |
2862 | ||
2863 | * c-decl.c (implicit_decl_warning): Update "is there a suggestion" | |
2864 | logic for change to name_hint::operator bool. | |
2865 | (undeclared_variable): Likewise. | |
2866 | * c-parser.c (c_parser_declaration_or_fndef): Likewise. | |
2867 | (c_parser_parameter_declaration): Likewise. | |
2868 | ||
9f936c86 JM |
2869 | 2018-10-17 Joseph Myers <joseph@codesourcery.com> |
2870 | ||
2871 | * c-errors.c (pedwarn_c11): New function. | |
2872 | * c-parser.c (disable_extension_diagnostics): Save | |
2873 | warn_c11_c2x_compat and set it to 0. | |
2874 | (restore_extension_diagnostics): Restore warn_c11_c2x_compat. | |
2875 | (c_parser_static_assert_declaration_no_semi): Handle | |
2876 | _Static_assert without string constant. | |
2877 | * c-tree.h (pedwarn_c11): New prototype. | |
2878 | ||
033eb567 DM |
2879 | 2018-10-17 David Malcolm <dmalcolm@redhat.com> |
2880 | ||
2881 | * Make-lang.in (selftest-c): New. | |
2882 | (C_SELFTEST_FLAGS, C_SELFTEST_DEPS, s-selftest-c, selftest-c-gdb) | |
2883 | (selftest-gdb, selftest-c-valgrind, selftest-valgrind): Move here | |
2884 | from gcc/Makefile.in. | |
2885 | ||
0edf3afe RB |
2886 | 2018-10-02 Richard Biener <rguenther@suse.de> |
2887 | ||
2888 | * c-decl.c (warn_if_shadowing): Do not test DECL_FROM_INLINE. | |
2889 | ||
8313a764 JM |
2890 | 2018-09-26 Joseph Myers <joseph@codesourcery.com> |
2891 | ||
2892 | PR c/87390 | |
2893 | * c-typeck.c (build_binary_op): Use excess precision for | |
2894 | comparisons of integers and floating-point for C11 and later. | |
2895 | ||
ce6f0888 MJ |
2896 | 2018-09-26 Martin Jambor <mjambor@suse.cz> |
2897 | ||
2898 | PR c/87347 | |
2899 | * c-parser.c (warn_for_abs): Bail out if TYPE_ARG_TYPES is NULL. Fix | |
ab20d992 | 2900 | comment. |
ce6f0888 | 2901 | |
9c4a4b3c DM |
2902 | 2018-09-17 David Malcolm <dmalcolm@redhat.com> |
2903 | ||
2904 | * c-objc-common.c (range_label_for_type_mismatch::get_text): | |
2905 | Update for new param. | |
2906 | * c-typeck.c (maybe_range_label_for_tree_type_mismatch::get_text): | |
2907 | Likewise. | |
2908 | ||
80c6d1f4 MJ |
2909 | 2018-09-17 Martin Jambor <mjambor@suse.cz> |
2910 | ||
2911 | PR c/63886 | |
2912 | * c-parser.c: (warn_for_abs): New function. | |
2913 | (c_parser_postfix_expression_after_primary): Call it. | |
2914 | ||
4a426e36 BE |
2915 | 2018-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de> |
2916 | ||
2917 | * c-typeck.c (digest_init): Shorten overlength strings. | |
2918 | ||
6d900107 BE |
2919 | 2018-09-06 Bernd Edlinger <bernd.edlinger@hotmail.de> |
2920 | ||
2921 | * c-decl.c (finish_decl): Call complete_flexible_array_elts. | |
2922 | ||
b5764229 BE |
2923 | 2018-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de> |
2924 | ||
2925 | * c-decl.c (finish_decl): Call braced_list_to_string here ... | |
2926 | * c-parser.c (c_parser_declaration_or_fndef): ... instead of here. | |
2927 | ||
22eea6b2 AM |
2928 | 2018-08-30 Alexander Monakov <amonakov@ispras.ru> |
2929 | ||
2930 | * gimple-parser.c (c_parser_gimple_binary_expression): Accept infix | |
2931 | "__MULT_HIGHPART" for MULT_HIGHPART_EXPR. | |
2932 | ||
85204e23 DM |
2933 | 2018-08-27 David Malcolm <dmalcolm@redhat.com> |
2934 | ||
2935 | PR 87091 | |
2936 | * c-decl.c (implicitly_declare): Update call to | |
2937 | maybe_add_include_fixit to suggest overriding the location, as it | |
2938 | is for a note. | |
2939 | * c-objc-common.c (c_tree_printer): Update for conversion of | |
2940 | show_caret_p to a tri-state. | |
2941 | ||
3d78e008 ML |
2942 | 2018-08-27 Martin Liska <mliska@suse.cz> |
2943 | ||
2944 | * c-decl.c (locate_old_decl): Use new function | |
92a285c1 ML |
2945 | fndecl_built_in_p and remove check for FUNCTION_DECL if |
2946 | possible. | |
3d78e008 ML |
2947 | (diagnose_mismatched_decls): Likewise. |
2948 | (merge_decls): Likewise. | |
2949 | (warn_if_shadowing): Likewise. | |
2950 | (pushdecl): Likewise. | |
2951 | (implicitly_declare): Likewise. | |
2952 | * c-parser.c (c_parser_postfix_expression_after_primary): Likewise. | |
2953 | * c-tree.h (C_DECL_ISNT_PROTOTYPE): Likewise. | |
2954 | * c-typeck.c (build_function_call_vec): Likewise. | |
2955 | (convert_arguments): Likewise. | |
2956 | ||
097f82ec DM |
2957 | 2018-08-20 David Malcolm <dmalcolm@redhat.com> |
2958 | ||
2959 | PR other/84889 | |
2960 | * c-decl.c (pushtag): Add auto_diagnostic_group instance. | |
2961 | (diagnose_mismatched_decls): Likewise, in various places. | |
2962 | (warn_if_shadowing): Likewise. | |
2963 | (implicit_decl_warning): Likewise. | |
2964 | (implicitly_declare): Likewise. | |
2965 | (undeclared_variable): Likewise. | |
2966 | (declare_label): Likewise. | |
2967 | (grokdeclarator): Likewise. | |
2968 | (start_function): Likewise. | |
2969 | * c-parser.c (c_parser_declaration_or_fndef): Likewise. | |
2970 | (c_parser_parameter_declaration): Likewise. | |
2971 | (c_parser_binary_expression): Likewise. | |
2972 | * c-typeck.c (c_expr_sizeof_expr): Likewise. | |
2973 | (parser_build_binary_op): Likewise. | |
2974 | (build_unary_op): Likewise. | |
2975 | (error_init): Likewise. | |
2976 | (pedwarn_init): Likewise. | |
2977 | (warning_init): Likewise. | |
2978 | (convert_for_assignment): Likewise. | |
2979 | ||
96e6ae57 DM |
2980 | 2018-08-15 David Malcolm <dmalcolm@redhat.com> |
2981 | ||
2982 | * c-objc-common.c: Include "gcc-rich-location.h". | |
2983 | (c_tree_printer): Move implemenation of '%T' to... | |
2984 | (print_type): ...this new function. | |
2985 | (range_label_for_type_mismatch::get_text): New function. | |
2986 | * c-typeck.c (convert_for_assignment): Add type labels to the rhs | |
2987 | range for the various ic_argpass cases. | |
2988 | (class maybe_range_label_for_tree_type_mismatch): New class. | |
2989 | (build_binary_op): Use it when calling binary_op_error. | |
2990 | ||
0cd020ae | 2991 | 2018-08-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
ab20d992 | 2992 | |
0cd020ae PK |
2993 | * c-decl.c (start_decl): Do not warn if variables is named as main |
2994 | and is a local variable. | |
2995 | ||
72733314 IS |
2996 | 2018-08-15 Iain Sandoe <iain@sandoe.co.uk> |
2997 | ||
2998 | PR c/19315 | |
2999 | * c-decl.c (finish_decl): Don't add the 'extern' storage class to | |
3000 | objects of unknown size. | |
3001 | ||
23aa9f7c MS |
3002 | 2018-08-13 Martin Sebor <msebor@redhat.com> |
3003 | ||
3004 | PR tree-optimization/71625 | |
3005 | * c-parser.c (c_parser_declaration_or_fndef): Call | |
3006 | braced_list_to_string. | |
3007 | ||
e5e7e50d BH |
3008 | 2018-08-03 Bogdan Harjoc <harjoc@gmail.com> |
3009 | ||
3010 | PR c/86690 | |
3011 | * c-typeck.c (lookup_field): Do not use TYPE_LANG_SPECIFIC after | |
3012 | errors. | |
3013 | ||
8a45b051 MS |
3014 | 2018-08-01 Martin Sebor <msebor@redhat.com> |
3015 | ||
3016 | PR tree-optimization/86650 | |
3017 | * c-objc-common.c (c_tree_printer): Move usage of EXPR_LOCATION (t) | |
3018 | and TREE_BLOCK (t) from within percent_K_format to this callsite. | |
3019 | ||
5922dcb5 JJ |
3020 | 2018-08-01 Jakub Jelinek <jakub@redhat.com> |
3021 | ||
3022 | PR c/85704 | |
3023 | * c-typeck.c (init_field_decl_cmp): New function. | |
3024 | (output_pending_init_elements): Use it for field comparisons | |
3025 | instead of pure bit_position comparisons. | |
3026 | ||
9b452033 JJ |
3027 | 2018-07-12 Jakub Jelinek <jakub@redhat.com> |
3028 | ||
3029 | * c-decl.c (c_decl_attributes): Don't diagnose vars without mappable | |
3030 | type here, instead add "omp declare target implicit" attribute. | |
3031 | (finish_decl): Diagnose vars without mappable type here. | |
3032 | ||
ab20d992 JJ |
3033 | 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com> |
3034 | Thomas Schwinge <thomas@codesourcery.com> | |
829c6349 CLT |
3035 | Cesar Philippidis <cesar@codesourcery.com> |
3036 | ||
3037 | * c-parser.c (c_parser_omp_clause_name): Add support for finalize | |
3038 | and if_present. Make present_or_{copy,copyin,copyout,create} aliases | |
3039 | to their non-present_or_* counterparts. Make 'self' an alias to | |
3040 | PRAGMA_OACC_CLAUSE_HOST. | |
3041 | (c_parser_oacc_data_clause): Update GOMP mappings for | |
3042 | PRAGMA_OACC_CLAUSE_{COPY,COPYIN,COPYOUT,CREATE,DELETE}. Remove | |
3043 | PRAGMA_OACC_CLAUSE_{SELF,PRESENT_OR_*}. | |
3044 | (c_parser_oacc_all_clauses): Handle finalize and if_present clauses. | |
3045 | Remove support for present_or_* clauses. | |
3046 | (OACC_KERNELS_CLAUSE_MASK): Remove PRESENT_OR_* clauses. | |
3047 | (OACC_PARALLEL_CLAUSE_MASK): Likewise. | |
3048 | (OACC_DECLARE_CLAUSE_MASK): Likewise. | |
3049 | (OACC_DATA_CLAUSE_MASK): Likewise. | |
3050 | (OACC_ENTER_DATA_CLAUSE_MASK): Remove PRESENT_OR_* clauses. | |
3051 | (OACC_EXIT_DATA_CLAUSE_MASK): Add FINALIZE clause. | |
3052 | (OACC_UPDATE_CLAUSE_MASK): Remove SELF, add IF_PRESENT. | |
3053 | (c_parser_oacc_declare): Remove PRESENT_OR_* clauses. | |
3054 | * c-typeck.c (c_finish_omp_clauses): Handle IF_PRESENT and FINALIZE. | |
3055 | ||
e197e64e KV |
3056 | 2018-06-16 Kugan Vivekanandarajah <kuganv@linaro.org> |
3057 | ||
3058 | * c-typeck.c (build_unary_op): Handle ABSU_EXPR; | |
3059 | * gimple-parser.c (c_parser_gimple_statement): Likewise. | |
3060 | (c_parser_gimple_unary_expression): Likewise. | |
3061 | ||
487f2f61 JJ |
3062 | 2018-06-15 Jakub Jelinek <jakub@redhat.com> |
3063 | ||
3064 | PR c/86093 | |
3065 | * c-typeck.c (pointer_diff): Cast both pointers to unqualified types | |
3066 | before doing POINTER_DIFF_EXPR. | |
3067 | ||
e4d44a37 MP |
3068 | 2018-06-07 Marek Polacek <polacek@redhat.com> |
3069 | ||
3070 | PR c/85318 | |
3071 | * c-decl.c (check_for_loop_decls): Add -Wc90-c99-compat warning about | |
3072 | for loop initial declarations. | |
3073 | ||
b67b9225 DP |
3074 | 2018-05-30 David Pagan <dave.pagan@oracle.com> |
3075 | ||
3076 | PR c/55976 | |
3077 | * c-decl.c (grokdeclarator): Update check for return type warnings. | |
3078 | (start_function): Likewise. | |
3079 | (finish_function): Likewise. | |
3080 | * c-typeck.c (c_finish_return): Update check for return type warnings. | |
3081 | Pass OPT_Wreturn_type to pedwarn when appropriate. | |
3082 | ||
c566cc9f RS |
3083 | 2018-05-18 Richard Sandiford <richard.sandiford@linaro.org> |
3084 | ||
3085 | * gimple-parser.c (c_parser_gimple_postfix_expression): Remove | |
3086 | __FMA_EXPR handlng. | |
3087 | ||
e4f81565 RS |
3088 | 2018-05-17 Richard Sandiford <richard.sandiford@linaro.org> |
3089 | ||
3090 | * gimple-parser.c: Include internal-fn.h. | |
3091 | (c_parser_gimple_statement): Treat a leading CPP_DOT as a call. | |
3092 | (c_parser_gimple_call_internal): New function. | |
3093 | (c_parser_gimple_postfix_expression): Use it to handle CPP_DOT. | |
3094 | Fix typos in comment. | |
3095 | ||
79e7b1fe JJ |
3096 | 2018-05-10 Jakub Jelinek <jakub@redhat.com> |
3097 | ||
3098 | PR c++/85662 | |
3099 | * c-fold.c (c_fully_fold_internal): Use fold_offsetof rather than | |
3100 | fold_offsetof_1, pass TREE_TYPE (expr) as TYPE to it and drop the | |
3101 | fold_convert_loc. | |
3102 | * c-typeck.c (build_unary_op): Use fold_offsetof rather than | |
3103 | fold_offsetof_1, pass argtype as TYPE to it and drop the | |
3104 | fold_convert_loc. | |
3105 | ||
f7584c81 DP |
3106 | 2018-05-02 David Pagan <dave.pagan@oracle.com> |
3107 | ||
3108 | PR c/30552 | |
3109 | * c-decl.c (old_style_parameter_scope): New function. | |
3110 | * c-parser.c (c_parser_postfix_expression): Check for statement | |
3111 | expressions in old-style function parameter list declarations. | |
3112 | * c-parser.h (old_style_parameter_scope): New extern declaration. | |
3113 | ||
b33a0cb3 JJ |
3114 | 2018-04-25 Jakub Jelinek <jakub@redhat.com> |
3115 | ||
3116 | PR sanitizer/84307 | |
3117 | * c-decl.c (build_compound_literal): Call pushdecl (decl) even when | |
3118 | it is not TREE_STATIC. | |
3119 | * c-typeck.c (c_mark_addressable) <case COMPOUND_LITERAL_EXPR>: Mark | |
3120 | not just the COMPOUND_LITERAL_EXPR node itself addressable, but also | |
3121 | its COMPOUND_LITERAL_EXPR_DECL. | |
3122 | ||
c5c5822a JM |
3123 | 2018-03-21 Joseph Myers <joseph@codesourcery.com> |
3124 | ||
3125 | * c-parser.c (c_parser_postfix_expression): For __builtin_tgmath | |
3126 | where all functions return the same _FloatN or _FloatNx type, | |
3127 | treat integer types as _Float64 instead of double. | |
3128 | ||
aa1c9429 JJ |
3129 | 2018-03-21 Jakub Jelinek <jakub@redhat.com> |
3130 | ||
3131 | PR c/84999 | |
3132 | * c-typeck.c (build_binary_op): If c_common_type_for_size fails when | |
3133 | building vector comparison, diagnose it and return error_mark_node. | |
3134 | ||
9bb45a95 JJ |
3135 | 2018-03-15 Jakub Jelinek <jakub@redhat.com> |
3136 | ||
3137 | PR c/84853 | |
3138 | * c-typeck.c (build_binary_op) <case RSHIFT_EXPR, case LSHIFT_EXPR>: | |
3139 | If code1 is INTEGER_TYPE, only allow code0 VECTOR_TYPE if it has | |
3140 | INTEGER_TYPE element type. | |
3141 | ||
ada6bad9 DP |
3142 | 2018-03-13 David Pagan <dave.pagan@oracle.com> |
3143 | ||
3144 | PR c/46921 | |
3145 | * c-typeck.c (output_init_element): Ensure field initializer | |
3146 | expression is always evaluated if there are side effects. | |
3147 | ||
849bbdb9 JJ |
3148 | 2018-03-06 Jakub Jelinek <jakub@redhat.com> |
3149 | ||
3150 | PR c/84721 | |
3151 | * c-parser.c (add_debug_begin_stmt): Don't add DEBUG_BEGIN_STMT if | |
3152 | !building_stmt_list_p (). | |
3153 | ||
d74641bd RS |
3154 | 2018-02-13 Richard Sandiford <richard.sandiford@linaro.org> |
3155 | ||
3156 | PR c/84305 | |
3157 | * c-decl.c (grokdeclarator): Create an anonymous TYPE_DECL | |
3158 | in PARM and TYPENAME contexts too, but attach it to a BIND_EXPR | |
3159 | and include the BIND_EXPR in the list of things that need to be | |
3160 | pre-evaluated. | |
3161 | ||
0444aa9c NS |
3162 | 2018-02-09 Nathan Sidwell <nathan@acm.org> |
3163 | ||
3164 | PR c/84293 | |
3165 | * c-typeck.c (build_indirect_ref, build_c_cast): Pass expr location | |
3166 | to strict_aliasing_warning. | |
3167 | ||
7c30b12a PC |
3168 | 2018-02-02 Paolo Carlini <paolo.carlini@oracle.com> |
3169 | ||
3170 | * c-typeck.c (really_start_incremental_init, push_init_level, | |
3171 | set_nonincremental_init, output_init_element, process_init_element): | |
3172 | Use DECL_UNNAMED_BIT_FIELD. | |
3173 | ||
2be4dfcb MP |
3174 | 2018-01-31 Marek Polacek <polacek@redhat.com> |
3175 | ||
3176 | PR c/81779 | |
3177 | * c-parser.c (c_parser_compound_statement_nostart): Call | |
3178 | expansion_point_location_if_in_system_header. | |
3179 | ||
bb9869d5 DM |
3180 | 2018-01-17 David Malcolm <dmalcolm@redhat.com> |
3181 | ||
3182 | PR c++/83814 | |
3183 | * c-fold.c (fold_for_warn): Move from c-common.c, reducing to just | |
3184 | the C part. | |
3185 | ||
b4923738 JJ |
3186 | 2018-01-13 Jakub Jelinek <jakub@redhat.com> |
3187 | ||
3188 | PR c/83801 | |
3189 | * c-tree.h (decl_constant_value_1): Add a bool argument. | |
3190 | * c-typeck.c (decl_constant_value_1): Add IN_INIT argument, allow | |
3191 | returning a CONSTRUCTOR if it is true. Use error_operand_p. | |
3192 | (decl_constant_value): Adjust caller. | |
3193 | * c-fold.c (c_fully_fold_internal): If in_init, pass true to | |
3194 | decl_constant_value_1 as IN_INIT. Otherwise, punt if | |
3195 | decl_constant_value returns initializer that has BLKmode or | |
3196 | array type. | |
3197 | (c_fully_fold_internal) <case COMPONENT_REF>: Fold if !lval. | |
3198 | ||
928686b1 RS |
3199 | 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org> |
3200 | Alan Hayward <alan.hayward@arm.com> | |
3201 | David Sherwood <david.sherwood@arm.com> | |
3202 | ||
3203 | * c-typeck.c (comptypes_internal, build_binary_op): Handle polynomial | |
3204 | TYPE_VECTOR_SUBPARTS. | |
3205 | ||
85ec4feb JJ |
3206 | 2018-01-03 Jakub Jelinek <jakub@redhat.com> |
3207 | ||
3208 | Update copyright years. | |
3209 | ||
913884f7 JJ |
3210 | 2018-01-01 Jakub Jelinek <jakub@redhat.com> |
3211 | ||
3212 | PR c/83595 | |
3213 | * c-parser.c (c_parser_braced_init, c_parser_initelt, | |
3214 | c_parser_conditional_expression, c_parser_cast_expression, | |
3215 | c_parser_sizeof_expression, c_parser_alignof_expression, | |
3216 | c_parser_postfix_expression, c_parser_omp_declare_reduction, | |
3217 | c_parser_transaction_expression): Use set_error () method instead | |
3218 | of setting value member to error_mark_node. | |
3219 | ||
c6cfa2bf MM |
3220 | 2017-12-28 Michael Meissner <meissner@linux.vnet.ibm.com> |
3221 | ||
3222 | * c-decl.c (header_for_builtin_fn): Add integer rounding _Float<N> | |
3223 | and _Float<N>X built-in functions. | |
3224 | ||
11d29d63 JJ |
3225 | 2017-12-22 Jakub Jelinek <jakub@redhat.com> |
3226 | ||
14ec014e JJ |
3227 | PR debug/83550 |
3228 | * c-decl.c (finish_struct): Set DECL_SOURCE_LOCATION on | |
3229 | TYPE_STUB_DECL and call rest_of_type_compilation before processing | |
3230 | incomplete vars rather than after it. | |
3231 | ||
11d29d63 JJ |
3232 | PR debug/83547 |
3233 | * c-typeck.c (c_finish_stmt_expr): Ignore !TREE_SIDE_EFFECTS as | |
3234 | indicator of ({ }), instead skip all trailing DEBUG_BEGIN_STMTs first, | |
3235 | and consider empty ones if there are no other stmts. For | |
3236 | -Wunused-value walk all statements before the one only followed by | |
3237 | DEBUG_BEGIN_STMTs. | |
3238 | ||
170a8bd6 | 3239 | 2017-12-22 Mike Stump <mikestump@comcast.net> |
92a285c1 | 3240 | Eric Botcazou <ebotcazou@adacore.com> |
170a8bd6 EB |
3241 | |
3242 | * c-parser.c (c_parser_while_statement): Add unroll parameter and | |
3243 | build ANNOTATE_EXPR if present. Add 3rd operand to ANNOTATE_EXPR. | |
3244 | (c_parser_do_statement): Likewise. | |
3245 | (c_parser_for_statement): Likewise. | |
3246 | (c_parser_statement_after_labels): Adjust calls to above. | |
3247 | (c_parse_pragma_ivdep): New static function. | |
3248 | (c_parser_pragma_unroll): Likewise. | |
3249 | (c_parser_pragma) <PRAGMA_IVDEP>: Add support for pragma Unroll. | |
3250 | <PRAGMA_UNROLL>: New case. | |
3251 | ||
01512446 JJ |
3252 | 2017-12-19 Jakub Jelinek <jakub@redhat.com> |
3253 | ||
3254 | * c-typeck.c (comptypes_internal, function_types_compatible_p, | |
3255 | perform_integral_promotions, digest_init): Replace Yoda conditions | |
3256 | with typical order conditions. | |
3257 | * c-decl.c (check_bitfield_type_and_width): Likewise. | |
3258 | ||
c65e18d3 BE |
3259 | 2017-12-14 Bernd Edlinger <bernd.edlinger@hotmail.de> |
3260 | ||
3261 | * c-typeck.c (c_safe_arg_type_equiv_p, | |
3262 | c_safe_function_type_cast_p): New function. | |
3263 | (build_c_cast): Implement -Wcast-function-type. | |
3264 | ||
b7280579 RB |
3265 | 2017-12-14 Richard Biener <rguenther@suse.de> |
3266 | ||
3267 | PR c/83415 | |
3268 | * c-fold.c (c_fully_fold_internal): Treat VIEW_CONVERT_EXPR | |
3269 | like REALPART_EXPR for the behavior of whether its operand | |
3270 | is an lvalue. | |
3271 | ||
49e6a6c0 MP |
3272 | 2017-12-12 Marek Polacek <polacek@redhat.com> |
3273 | ||
3274 | PR c/82679 | |
3275 | * c-decl.c (grokdeclarator): Check declspecs insted of atomicp. | |
3276 | ||
ab20d992 | 3277 | 2017-12-12 Alexandre Oliva <aoliva@redhat.com> |
96a95ac1 AO |
3278 | |
3279 | * c-objc-common.h (LANG_HOOKS_EMITS_BEGIN_STMT): Redefine as true. | |
3280 | * c-parser.c (add_debug_begin_stmt): New. | |
3281 | (c_parser_declaration_or_fndef): Call it. | |
3282 | (c_parser_compound_statement_nostart): Likewise. | |
3283 | (c_parser_statement_after_labels): Likewise. | |
3284 | * c-typeck (c_finish_stmt_expr): Skip begin stmts markers. | |
3285 | ||
4b2b493f JM |
3286 | 2017-12-07 Joseph Myers <joseph@codesourcery.com> |
3287 | ||
3288 | * c-decl.c (build_compound_literal): Add parameter alignas_align | |
3289 | and set alignment of decl if nonzero. | |
3290 | * c-parser.c (c_keyword_starts_typename): Allow RID_ALIGNAS. | |
3291 | (c_parser_declspecs): Allow RID_ALIGNAS to follow a type, like a | |
3292 | qualifier. | |
3293 | (c_parser_struct_declaration): Update syntax comment. | |
3294 | (c_parser_type_name): Add alignas_ok argument and pass it to | |
3295 | c_parser_declspecs. | |
3296 | (c_parser_cast_expression): Pass true to c_parser_type_name and | |
3297 | give error if a cast used an _Alignas specifier. | |
3298 | (c_parser_sizeof_expression): Pass true to c_parser_type_name and | |
3299 | give error if sizeof (type-name) used an _Alignas specifier. | |
3300 | (c_parser_alignof_expression): Pass true to c_parser_type_name and | |
3301 | give error if _Alignof (type-name) used an _Alignas specifier. | |
3302 | (c_parser_postfix_expression_after_paren_type): Check specified | |
3303 | alignment for a compound literal and pass it to | |
3304 | build_compound_literal. | |
3305 | * c-parser.h (c_parser_type_name): Update prototype. | |
3306 | * c-tree.h (build_compound_literal): Update prototype. | |
3307 | ||
5d9ae53d MS |
3308 | 2017-12-07 Martin Sebor <msebor@redhat.com> |
3309 | ||
3310 | PR c/81544 | |
3311 | * c-decl.c (c_decl_attributes): Look up existing declaration and | |
3312 | pass it to decl_attributes. | |
3313 | ||
c79144f8 DM |
3314 | 2017-12-06 David Malcolm <dmalcolm@redhat.com> |
3315 | ||
3316 | PR c/83236 | |
3317 | * c-decl.c (lookup_name_fuzzy): Don't suggest names that are | |
3318 | reserved for use by the implementation. | |
3319 | ||
613bc14f DM |
3320 | 2017-12-06 David Malcolm <dmalcolm@redhat.com> |
3321 | ||
3322 | * c-decl.c: Include "c-family/c-spellcheck.h". | |
3323 | ||
05abad4c ML |
3324 | 2017-12-05 Martin Liska <mliska@suse.cz> |
3325 | Jakub Jelinek <jakub@redhat.com> | |
3326 | ||
3327 | * c-typeck.c (pointer_diff): Add new argument and instrument | |
3328 | pointer subtraction. | |
3329 | (build_binary_op): Similar for pointer comparison. | |
3330 | ||
cc6534d4 JJ |
3331 | 2017-12-01 Jakub Jelinek <jakub@redhat.com> |
3332 | ||
65791f42 JJ |
3333 | PR c/79153 |
3334 | * c-parser.c: Include tree-iterator.h. | |
3335 | (c_parser_switch_statement): Emit LABEL_EXPR for the break label | |
3336 | into SWITCH_BODY instead of after it and set SWITCH_BREAK_LABEL_P | |
3337 | on it. | |
3338 | ||
cc6534d4 JJ |
3339 | PR c/83222 |
3340 | * c-tree.h (decl_constant_value_1): Declare. | |
3341 | * c-typeck.c (decl_constant_value_1): New function. | |
3342 | (decl_constant_value): Use it. | |
3343 | * c-fold.c (c_fully_fold_internal): If in_init, use | |
3344 | decl_constant_value_1 instead of decl_constant_value. | |
3345 | ||
5de73c05 JJ |
3346 | 2017-11-30 Jakub Jelinek <jakub@redhat.com> |
3347 | ||
3348 | * c-parser.c (c_parser_postfix_expression): Use ; instead of ;;. | |
3349 | ||
058f0b9e JJ |
3350 | 2017-11-28 Jakub Jelinek <jakub@redhat.com> |
3351 | ||
3352 | PR sanitizer/81275 | |
3353 | * c-typeck.c (c_finish_case): Set SWITCH_ALL_CASES_P if | |
3354 | c_switch_covers_all_cases_p returns true. | |
3355 | ||
5e9d6aa4 | 3356 | 2017-11-28 Julia Koval <julia.koval@intel.com> |
92a285c1 | 3357 | Sebastian Peryt <sebastian.peryt@intel.com> |
5e9d6aa4 JK |
3358 | |
3359 | * Make-lang.in (c/c-array-notation.o): Remove. | |
3360 | * c-array-notation.c: Delete. | |
3361 | * c-decl.c: Remove cilkplus condition. | |
3362 | * c-parser.c (c_parser_cilk_simd, c_parser_cilk_for, | |
3363 | c_parser_cilk_verify_simd, c_parser_array_notation, | |
3364 | c_parser_cilk_clause_vectorlength, c_parser_cilk_grainsize, | |
3365 | c_parser_cilk_simd_fn_vector_attrs, | |
3366 | c_finish_cilk_simd_fn_tokens): Delete. | |
3367 | (c_parser_declaration_or_fndef): Remove cilkplus condition. | |
3368 | (c_parser_direct_declarator_inner): Ditto. | |
3369 | (CILK_SIMD_FN_CLAUSE_MASK): Delete. | |
3370 | (c_parser_attributes, c_parser_compound_statement, | |
3371 | c_parser_statement_after_labels, c_parser_if_statement, | |
3372 | c_parser_switch_statement, c_parser_while_statement, | |
3373 | c_parser_do_statement, c_parser_for_statement, | |
3374 | c_parser_unary_expression, c_parser_postfix_expression, | |
3375 | c_parser_postfix_expression_after_primary, | |
3376 | c_parser_pragma, c_parser_omp_clause_name, c_parser_omp_all_clauses, | |
3377 | c_parser_omp_for_loop, c_finish_omp_declare_simd): Remove cilkplus | |
3378 | support. | |
3379 | * c-typeck.c (build_array_ref, build_function_call_vec, | |
3380 | convert_arguments, | |
3381 | lvalue_p, build_compound_expr, c_finish_return, c_finish_if_stmt, | |
3382 | c_finish_loop, build_binary_op): Remove cilkplus support. | |
3383 | ||
9e851845 JJ |
3384 | 2017-11-28 Jakub Jelinek <jakub@redhat.com> |
3385 | ||
3386 | * c-typeck.c (c_start_case): Build SWITCH_EXPR using build2 instead | |
3387 | of build3. | |
3388 | ||
ab20d992 | 3389 | 2017-11-14 Boris Kolpackov <boris@codesynthesis.com> |
8c7dbea9 BK |
3390 | |
3391 | * Make-lang.in (c.install-plugin): Install backend import library. | |
3392 | ||
41521dee JJ |
3393 | 2017-11-23 Jakub Jelinek <jakub@redhat.com> |
3394 | ||
3395 | * c-parser.c (c_parser_omp_declare_simd): Reject declare simd in | |
3396 | pragma_stmt context. | |
3397 | ||
ac9effed EB |
3398 | 2017-11-23 Mike Stump <mikestump@comcast.net> |
3399 | Eric Botcazou <ebotcazou@adacore.com> | |
3400 | ||
3401 | * c-parser.c (c_parser_while_statement): Pass 3rd operand to | |
3402 | ANNOTATE_EXPR. | |
3403 | (c_parser_do_statement): Likewise. | |
3404 | (c_parser_for_statement): Likewise. | |
3405 | ||
ce95abc4 DM |
3406 | 2017-11-22 David Malcolm <dmalcolm@redhat.com> |
3407 | ||
3408 | PR c++/62170 | |
3409 | * c-objc-common.c (c_tree_printer): Convert penultimate param from | |
3410 | bool to bool *. Within '%T' handling, if showing an "aka", use | |
3411 | "quoted" param to add appropriate quoting. | |
3412 | ||
974aedcc MP |
3413 | 2017-11-22 Marek Polacek <polacek@redhat.com> |
3414 | ||
3415 | PR c++/60336 | |
3416 | PR middle-end/67239 | |
3417 | PR target/68355 | |
3418 | * c-decl.c (grokdeclarator): Set DECL_PADDING_P on unnamed bit-fields. | |
3419 | ||
d4300cc6 DM |
3420 | 2017-11-21 David Malcolm <dmalcolm@redhat.com> |
3421 | ||
3422 | PR c/83056 | |
3423 | * c-decl.c (lookup_name_fuzzy): Don't suggest names that came from | |
3424 | earlier failed lookups. | |
3425 | ||
1af4ebf5 MG |
3426 | 2017-11-21 Marc Glisse <marc.glisse@inria.fr> |
3427 | ||
3428 | * c-fold.c (c_fully_fold_internal): Handle POINTER_DIFF_EXPR. | |
3429 | * c-typeck.c (pointer_diff): Use POINTER_DIFF_EXPR. | |
3430 | ||
26edace6 DM |
3431 | 2017-11-20 David Malcolm <dmalcolm@redhat.com> |
3432 | ||
3433 | PR c/81404 | |
3434 | * c-decl.c: Include "c-family/known-headers.h". | |
3435 | (get_c_name_hint): Rename to get_stdlib_header_for_name and move | |
3436 | to known-headers.cc. | |
3437 | (class suggest_missing_header): Move to known-header.h. | |
3438 | (lookup_name_fuzzy): Call get_c_stdlib_header_for_name rather | |
3439 | than get_c_name_hint. | |
3440 | ||
b1212255 DM |
3441 | 2017-11-20 David Malcolm <dmalcolm@redhat.com> |
3442 | ||
3443 | * c-decl.c (get_c_name_hint): New function. | |
3444 | (class suggest_missing_header): New class. | |
3445 | (lookup_name_fuzzy): Call get_c_name_hint and use it to | |
3446 | suggest missing headers to the user. | |
3447 | ||
6c7a259b DM |
3448 | 2017-11-20 David Malcolm <dmalcolm@redhat.com> |
3449 | ||
3450 | * c-decl.c: Define INCLUDE_UNIQUE_PTR before including system.h. | |
3451 | Include "c-family/name-hint.h" | |
3452 | (implicit_decl_warning): Convert "hint" from | |
3453 | const char * to name_hint. Pass location to | |
3454 | lookup_name_fuzzy. Suppress any deferred diagnostic if the | |
3455 | warning was not printed. | |
3456 | (undeclared_variable): Likewise for "guessed_id". | |
3457 | (lookup_name_fuzzy): Convert return type from const char * | |
3458 | to name_hint. Add location_t param. | |
3459 | * c-parser.c: Define INCLUDE_UNIQUE_PTR before including system.h. | |
3460 | Include "c-family/name-hint.h" | |
3461 | (c_parser_declaration_or_fndef): Convert "hint" from | |
3462 | const char * to name_hint. Pass location to lookup_name_fuzzy. | |
3463 | (c_parser_parameter_declaration): Likewise. | |
3464 | ||
f9c59f7e JJ |
3465 | 2017-11-19 Jakub Jelinek <jakub@redhat.com> |
3466 | ||
3467 | PR c/66618 | |
3468 | PR c/69960 | |
3469 | * c-parser.c (c_parser_omp_atomic): Pass true as LVAL to c_fully_fold | |
3470 | where needed. | |
3471 | * c-typeck.c (build_unary_op, build_modify_expr, build_asm_expr, | |
3472 | handle_omp_array_sections): Likewise. | |
3473 | (digest_init): Don't call decl_constant_value_for_optimization. | |
3474 | * c-tree.h (decl_constant_value_for_optimization): Removed. | |
3475 | * c-fold.c (c_fold_array_ref): New function. | |
3476 | (c_fully_fold_internal): Add LVAL argument, propagate it through | |
3477 | recursive calls. For VAR_P call decl_constant_value and | |
3478 | unshare if not LVAL and either optimizing or IN_INIT. Remove | |
3479 | decl_constant_value_for_optimization calls. If IN_INIT and not LVAL, | |
3480 | fold ARRAY_REF with STRING_CST and INTEGER_CST operands. | |
3481 | (c_fully_fold): Add LVAL argument, pass it through to | |
3482 | c_fully_fold_internal. | |
3483 | (decl_constant_value_for_optimization): Removed. | |
3484 | ||
3ca0dc60 JM |
3485 | 2017-11-15 Joseph Myers <joseph@codesourcery.com> |
3486 | ||
3487 | PR c/81156 | |
3488 | * c-parser.c (check_tgmath_function): New function. | |
3489 | (enum tgmath_parm_kind): New enum. | |
3490 | (c_parser_postfix_expression): Handle __builtin_tgmath. | |
3491 | ||
64a5912c DM |
3492 | 2017-10-31 David Malcolm <dmalcolm@redhat.com> |
3493 | ||
3494 | * c-decl.c (implicit_decl_warning): Update for renaming of | |
3495 | pedwarn_at_rich_loc and warning_at_rich_loc. | |
3496 | (implicitly_declare): Likewise for renaming of inform_at_rich_loc. | |
3497 | (undeclared_variable): Likewise for renaming of error_at_rich_loc. | |
3498 | * c-parser.c (c_parser_declaration_or_fndef): Likewise. | |
3499 | (c_parser_struct_or_union_specifier): Likewise for renaming of | |
3500 | pedwarn_at_rich_loc. | |
3501 | (c_parser_parameter_declaration): Likewise for renaming of | |
3502 | error_at_rich_loc. | |
3503 | * c-typeck.c (build_component_ref): Likewise. | |
3504 | (build_unary_op): Likewise for renaming of inform_at_rich_loc. | |
3505 | (pop_init_level): Likewise for renaming of warning_at_rich_loc. | |
3506 | (set_init_label): Likewise for renaming of error_at_rich_loc. | |
3507 | ||
c1136864 RB |
3508 | 2017-10-30 Richard Biener <rguenther@suse.de> |
3509 | ||
3510 | * gimple-parser.c (c_parser_gimple_statement): Parse conditional | |
3511 | stmts. | |
3512 | ||
ee5fd23a MM |
3513 | 2017-10-27 Michael Meissner <meissner@linux.vnet.ibm.com> |
3514 | ||
3515 | * c-decl.c (header_for_builtin_fn): Add support for copysign, fma, | |
3516 | fmax, fmin, and sqrt _Float<N> and _Float<N>X variants. | |
3517 | ||
1a59ccf2 DM |
3518 | 2017-10-25 David Malcolm <dmalcolm@redhat.com> |
3519 | ||
3520 | PR c/7356 | |
3521 | * c-parser.c (c_parser_declaration_or_fndef): Detect missing | |
3522 | semicolons. | |
3523 | ||
bc1a75dd JJ |
3524 | 2017-10-25 Jakub Jelinek <jakub@redhat.com> |
3525 | ||
3526 | PR libstdc++/81706 | |
3527 | * c-decl.c (merge_decls): Copy "omp declare simd" attributes from | |
3528 | newdecl to corresponding __builtin_ if any. | |
3529 | ||
ff1ff960 PC |
3530 | 2017-10-24 Paolo Carlini <paolo.carlini@oracle.com> |
3531 | ||
3532 | PR c++/82466 | |
3533 | * c-decl.c (diagnose_mismatched_decls): Use | |
3534 | OPT_Wbuiltin_declaration_mismatch. | |
3535 | ||
62e1c678 DM |
3536 | 2017-10-12 David Malcolm <dmalcolm@redhat.com> |
3537 | ||
3538 | * c-parser.c (c_parser_require): Add "type_is_unique" param and | |
3539 | use it to guard calls to maybe_suggest_missing_token_insertion. | |
3540 | (c_parser_parms_list_declarator): Override default value of new | |
3541 | "type_is_unique" param to c_parser_require. | |
3542 | (c_parser_asm_statement): Likewise. | |
3543 | * c-parser.h (c_parser_require): Add "type_is_unique" param, | |
3544 | defaulting to true. | |
3545 | ||
a92f6726 NS |
3546 | 2017-10-11 Nathan Sidwell <nathan@acm.org> |
3547 | ||
3548 | * c-decl.c (grokdeclarator): Check HAS_DECL_ASSEMBLER_NAME_P too. | |
3549 | ||
8e6cdc90 RS |
3550 | 2017-10-10 Richard Sandiford <richard.sandiford@linaro.org> |
3551 | ||
3552 | * c-parser.c (c_parser_cilk_clause_vectorlength): Use wi::to_wide when | |
3553 | operating on trees as wide_ints. | |
3554 | * c-typeck.c (build_c_cast, c_finish_omp_clauses): Likewise. | |
3555 | (c_tree_equal): Likewise. | |
3556 | ||
8139a48e DM |
3557 | 2017-10-04 David Malcolm <dmalcolm@redhat.com> |
3558 | ||
3559 | * c-decl.c (push_parm_decl): Store c_parm's location into the | |
3560 | PARAM_DECL. | |
3561 | (build_c_parm): Add "loc" param and store it within the c_parm. | |
3562 | * c-parser.c (struct c_parser): Add "last_token_location" field. | |
3563 | (c_parser_consume_token): Store location of the token into the | |
3564 | new field. | |
3565 | (c_parser_declaration_or_fndef): Store params into DECL_ARGUMENTS | |
3566 | when handling a FUNCTION_DECL, if it doesn't already have them. | |
3567 | (c_parser_parameter_declaration): Generate a location for the | |
3568 | parameter, and pass it to the call to build_c_parm. | |
3569 | * c-tree.h (struct c_parm): Add field "loc". | |
3570 | (build_c_parm): Add location_t param. | |
3571 | * c-typeck.c (get_fndecl_argument_location): New function. | |
3572 | (inform_for_arg): New function. | |
3573 | (convert_for_assignment): Use inform_for_arg when dealing with | |
3574 | ic_argpass. | |
3575 | ||
2a389958 JJ |
3576 | 2017-09-29 Jakub Jelinek <jakub@redhat.com> |
3577 | ||
7d386d45 JJ |
3578 | * c-decl.c (grokfield): Use SET_DECL_C_BIT_FIELD here if |
3579 | width is non-NULL. | |
3580 | (finish_struct): Test DECL_C_BIT_FIELD instead of DECL_INITIAL, | |
3581 | don't SET_DECL_C_BIT_FIELD here. | |
3582 | ||
2a389958 JJ |
3583 | PR c/82340 |
3584 | * c-decl.c (build_compound_literal): Use c_apply_type_quals_to_decl | |
3585 | instead of trying to set just TREE_READONLY manually. | |
3586 | ||
ebc6a85e TV |
3587 | 2017-09-16 Tom de Vries <tom@codesourcery.com> |
3588 | ||
3589 | PR c/81875 | |
3590 | * c-parser.c (c_parser_omp_for_loop): Fold only operands of cond, not | |
3591 | cond itself. | |
3592 | ||
bb75facd JM |
3593 | 2017-09-15 Joseph Myers <joseph@codesourcery.com> |
3594 | ||
3595 | PR c/82071 | |
3596 | * c-typeck.c (ep_convert_and_check): Just call convert_and_check | |
3597 | for C11. | |
3598 | (build_conditional_expr): For C11, generate result with excess | |
3599 | precision when one argument is an integer and the other is of a | |
3600 | type using excess precision. | |
3601 | ||
1d933576 BE |
3602 | 2017-09-15 Bernd Edlinger <bernd.edlinger@hotmail.de> |
3603 | ||
3604 | * c-typeck.c (build_c_cast): Implement -Wcast-align=strict. | |
3605 | ||
267bbb6f MP |
3606 | 2017-09-13 Marek Polacek <polacek@redhat.com> |
3607 | ||
3608 | PR c/82167 | |
3609 | * c-typeck.c (c_expr_sizeof_expr): Use the type of expr.value rather | |
3610 | than expr.original_type. | |
3611 | ||
6836632e NS |
3612 | 2017-09-12 Nathan Sidwell <nathan@acm.org> |
3613 | ||
3614 | * c-decl.c (field_decl_cmp, resort_data, resort_field_decl_cmp, | |
3615 | resort_sorted_fields): Moved from c-family/c-common.c. | |
3616 | * c-lang.h (struct sorted_fields_type): Moved from c-family/c-common.h. | |
3617 | ||
e035be33 JM |
3618 | 2017-09-01 Joseph Myers <joseph@codesourcery.com> |
3619 | ||
3620 | PR c/82071 | |
3621 | * c-typeck.c (build_atomic_assign): Handle argument with excess | |
3622 | precision. Ensure any EXCESS_PRECISION_EXPR is present in | |
3623 | argument passed to build_binary_op and convert_for_assignment but | |
3624 | not for call to c_fully_fold. | |
3625 | (build_modify_expr): Do not remove EXCESS_PRECISION_EXPR early. | |
3626 | Ensure build_binary_op is called with argument with original | |
3627 | semantic type. Avoid calling c_fully_fold with an | |
3628 | EXCESS_PRECISION_EXPR from build_binary_op. | |
3629 | ||
d2e05fcb JJ |
3630 | 2017-09-01 Jakub Jelinek <jakub@redhat.com> |
3631 | ||
3632 | PR c/81887 | |
3633 | * c-parser.c (c_parser_omp_ordered): Handle -fopenmp-simd. | |
3634 | ||
b397965c RS |
3635 | 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org> |
3636 | Alan Hayward <alan.hayward@arm.com> | |
3637 | David Sherwood <david.sherwood@arm.com> | |
3638 | ||
3639 | * c-typeck.c (build_binary_op): Use SCALAR_TYPE_MODE. | |
3640 | (c_common_type): Likewise. Use as_a <scalar_mode> when setting | |
3641 | m1 and m2 to the signed equivalent of a fixed-point | |
3642 | SCALAR_TYPE_MODE. | |
3643 | ||
14e18d71 DM |
3644 | 2017-08-24 David Malcolm <dmalcolm@redhat.com> |
3645 | ||
3646 | * c-tree.h (c_expr::get_location) Use EXPR_HAS_LOCATION rather | |
3647 | than CAN_HAVE_LOCATION_P when determining whether to use the | |
3648 | location_t value within "value". | |
3649 | ||
7f204c0f DM |
3650 | 2017-08-21 David Malcolm <dmalcolm@redhat.com> |
3651 | ||
3652 | * c-parser.c (c_parser_expr_list): Use c_expr::get_location () | |
3653 | rather than peeking the location of the first token. | |
3654 | * c-tree.h (c_expr::get_location): New method. | |
3655 | ||
2f687306 DM |
3656 | 2017-08-21 David Malcolm <dmalcolm@redhat.com> |
3657 | ||
3658 | * c-typeck.c (build_function_call_vec): Pass arg_loc to call | |
3659 | to check_function_arguments. | |
3660 | ||
3e7b80d7 MP |
3661 | 2017-08-18 Marek Polacek <polacek@redhat.com> |
3662 | ||
3663 | * c-parser.c (c_parser_postfix_expression): Remove unused code. Update | |
3664 | commentary. | |
3665 | ||
00aa1fa2 L |
3666 | 2017-08-18 H.J. Lu <hongjiu.lu@intel.com> |
3667 | ||
3668 | PR c/53037 | |
3669 | * c-decl.c (merge_decls): Also merge DECL_WARN_IF_NOT_ALIGN. | |
3670 | (check_bitfield_type_and_width): Don't allow bit-field with | |
3671 | warn_if_not_aligned type. | |
3672 | ||
da67acb9 MS |
3673 | 2017-08-14 Martin Sebor <msebor@redhat.com> |
3674 | ||
3675 | PR c/81117 | |
3676 | * c-objc-common.c (c_objc_common_init): Handle 'G'. | |
3677 | ||
bb85aa74 MP |
3678 | 2017-08-11 Marek Polacek <polacek@redhat.com> |
3679 | ||
3680 | PR c/81795 | |
3681 | * c-decl.c (pushtag): Only print inform if the warning was printed. | |
3682 | (grokdeclarator): Likewise. | |
3683 | ||
32129a17 DM |
3684 | 2017-08-10 David Malcolm <dmalcolm@redhat.com> |
3685 | ||
3686 | * c-parser.c (c_parser_error): Rename to... | |
3687 | (c_parser_error_richloc): ...this, making static, and adding | |
3688 | "richloc" parameter, passing it to the c_parse_error call, | |
3689 | rather than calling c_parser_set_source_position_from_token. | |
3690 | (c_parser_error): Reintroduce, reimplementing in terms of the | |
3691 | above, converting return type from void to bool. | |
3692 | (class token_pair): New class. | |
3693 | (struct matching_paren_traits): New struct. | |
3694 | (matching_parens): New typedef. | |
3695 | (struct matching_brace_traits): New struct. | |
3696 | (matching_braces): New typedef. | |
3697 | (get_matching_symbol): New function. | |
3698 | (c_parser_require): Add param MATCHING_LOCATION, using it to | |
3699 | highlight matching "opening" tokens for missing "closing" tokens. | |
3700 | (c_parser_skip_until_found): Likewise. | |
3701 | (c_parser_static_assert_declaration_no_semi): Convert explicit | |
3702 | parsing of CPP_OPEN_PAREN and CPP_CLOSE_PAREN to use of | |
3703 | class matching_parens, so that the pertinent open parenthesis is | |
3704 | highlighted when there are problems locating the close | |
3705 | parenthesis. | |
3706 | (c_parser_struct_or_union_specifier): Likewise. | |
3707 | (c_parser_typeof_specifier): Likewise. | |
3708 | (c_parser_alignas_specifier): Likewise. | |
3709 | (c_parser_simple_asm_expr): Likewise. | |
3710 | (c_parser_braced_init): Likewise, for matching_braces. | |
3711 | (c_parser_paren_condition): Likewise, for matching_parens. | |
3712 | (c_parser_switch_statement): Likewise. | |
3713 | (c_parser_for_statement): Likewise. | |
3714 | (c_parser_asm_statement): Likewise. | |
3715 | (c_parser_asm_operands): Likewise. | |
3716 | (c_parser_cast_expression): Likewise. | |
3717 | (c_parser_sizeof_expression): Likewise. | |
3718 | (c_parser_alignof_expression): Likewise. | |
3719 | (c_parser_generic_selection): Likewise. | |
3720 | (c_parser_postfix_expression): Likewise for cases RID_VA_ARG, | |
3721 | RID_OFFSETOF, RID_TYPES_COMPATIBLE_P, RID_AT_SELECTOR, | |
3722 | RID_AT_PROTOCOL, RID_AT_ENCODE, reindenting as necessary. | |
3723 | In case CPP_OPEN_PAREN, pass loc_open_paren to the | |
3724 | c_parser_skip_until_found call. | |
3725 | (c_parser_objc_class_definition): Use class matching_parens as | |
3726 | above. | |
3727 | (c_parser_objc_method_decl): Likewise. | |
3728 | (c_parser_objc_try_catch_finally_statement): Likewise. | |
3729 | (c_parser_objc_synchronized_statement): Likewise. | |
3730 | (c_parser_objc_at_property_declaration): Likewise. | |
3731 | (c_parser_oacc_wait_list): Likewise. | |
3732 | (c_parser_omp_var_list_parens): Likewise. | |
3733 | (c_parser_omp_clause_collapse): Likewise. | |
3734 | (c_parser_omp_clause_default): Likewise. | |
3735 | (c_parser_omp_clause_if): Likewise. | |
3736 | (c_parser_omp_clause_num_threads): Likewise. | |
3737 | (c_parser_omp_clause_num_tasks): Likewise. | |
3738 | (c_parser_omp_clause_grainsize): Likewise. | |
3739 | (c_parser_omp_clause_priority): Likewise. | |
3740 | (c_parser_omp_clause_hint): Likewise. | |
3741 | (c_parser_omp_clause_defaultmap): Likewise. | |
3742 | (c_parser_oacc_single_int_clause): Likewise. | |
3743 | (c_parser_omp_clause_ordered): Likewise. | |
3744 | (c_parser_omp_clause_reduction): Likewise. | |
3745 | (c_parser_omp_clause_schedule): Likewise. | |
3746 | (c_parser_omp_clause_num_teams): Likewise. | |
3747 | (c_parser_omp_clause_thread_limit): Likewise. | |
3748 | (c_parser_omp_clause_aligned): Likewise. | |
3749 | (c_parser_omp_clause_linear): Likewise. | |
3750 | (c_parser_omp_clause_safelen): Likewise. | |
3751 | (c_parser_omp_clause_simdlen): Likewise. | |
3752 | (c_parser_omp_clause_depend): Likewise. | |
3753 | (c_parser_omp_clause_map): Likewise. | |
3754 | (c_parser_omp_clause_device): Likewise. | |
3755 | (c_parser_omp_clause_dist_schedule): Likewise. | |
3756 | (c_parser_omp_clause_proc_bind): Likewise. | |
3757 | (c_parser_omp_clause_uniform): Likewise. | |
3758 | (c_parser_omp_for_loop): Likewise. | |
3759 | (c_parser_cilk_clause_vectorlength): Likewise. | |
3760 | (c_parser_cilk_clause_linear): Likewise. | |
3761 | (c_parser_transaction_expression): Likewise. | |
3762 | * c-parser.h (c_parser_require): Add param matching_location with | |
3763 | default UNKNOWN_LOCATION. | |
3764 | (c_parser_error): Convert return type from void to bool. | |
3765 | (c_parser_skip_until_found): Add param matching_location with | |
3766 | default UNKNOWN_LOCATION. | |
3767 | ||
30af3a2b MP |
3768 | 2017-08-09 Marek Polacek <polacek@redhat.com> |
3769 | ||
3770 | * c-decl.c (build_enumerator): Use true/false instead of 1/0. | |
3771 | * c-tree.h (build_external_ref): Update declaration. | |
3772 | * c-typeck.c (build_array_ref): Use true/false instead of 1/0. | |
3773 | (build_external_ref): Change the type of a parameter to bool. | |
3774 | (parser_build_binary_op): Use true/false instead of 1/0. | |
3775 | (pointer_diff): Likewise. | |
3776 | (build_modify_expr): Likewise. | |
3777 | (set_designator): Change the type of a parameter to bool. | |
3778 | (set_init_index): Use true/false instead of 1/0. | |
3779 | (set_init_label): Likewise. | |
3780 | (output_init_element): Change the type of a parameter to bool. | |
3781 | (output_pending_init_elements): Use true/false instead of 1/0. | |
3782 | (process_init_element): Likewise. | |
3783 | (build_binary_op): Change the type of a parameter to bool. | |
3784 | ||
296c53ac MP |
3785 | 2017-08-09 Marek Polacek <polacek@redhat.com> |
3786 | ||
3787 | PR c/81233 | |
3788 | * c-typeck.c (pedwarn_init): Make the function take a variable list. | |
3789 | Call emit_diagnostic_valist instead of pedwarn. | |
3790 | (convert_for_assignment): Unroll the PEDWARN_FOR_ASSIGNMENT macro. | |
3791 | Print the relevant types in diagnostics. | |
3792 | ||
a32c8316 MP |
3793 | 2017-08-09 Marek Polacek <polacek@redhat.com> |
3794 | ||
3795 | PR c/81417 | |
3796 | * c-array-notation.c (fix_builtin_array_notation_fn): Update calls to | |
ab20d992 | 3797 | build_conditional_expr. |
a32c8316 MP |
3798 | * c-parser.c (c_parser_conditional_expression): Create locations for |
3799 | EXP1 and EXP2 from their source ranges. Pass the locations down to | |
3800 | build_conditional_expr. | |
3801 | * c-tree.h (build_conditional_expr): Update declaration. | |
3802 | * c-typeck.c (build_conditional_expr): Add location_t parameters. | |
3803 | For -Wsign-compare, also print the types. | |
3804 | ||
314e6352 ML |
3805 | 2017-08-08 Martin Liska <mliska@suse.cz> |
3806 | ||
3807 | * c-convert.c: Include header files. | |
3808 | * c-typeck.c: Likewise. | |
3809 | ||
577eec56 ML |
3810 | 2017-08-07 Martin Liska <mliska@suse.cz> |
3811 | ||
3812 | * c-parser.c (c_parser_attributes): Canonicalize name of an | |
3813 | attribute. | |
3814 | ||
f7b6353a MP |
3815 | 2017-08-02 Marek Polacek <polacek@redhat.com> |
3816 | ||
3817 | PR c/81289 | |
3818 | * c-parser.c (c_parser_unary_expression): Use set_error. | |
3819 | ||
8a6eab34 MP |
3820 | PR c/81448 |
3821 | PR c/81306 | |
3822 | * c-warn.c (warn_for_multistatement_macros): Prevent bogus | |
3823 | warnings. Avoid walking MACRO_MAP_LOCATIONS. | |
3824 | ||
ab20d992 | 3825 | 2017-07-31 Jan Hubicka <hubicka@ucw.cz> |
7fef86d3 JH |
3826 | Martin Liska <mliska@suse.cz> |
3827 | ||
3828 | * c-typeck.c (c_finish_goto_label): Build gimple predict | |
f7b6353a | 3829 | statement. |
7fef86d3 | 3830 | |
f34ebeb2 ML |
3831 | 2017-07-31 Martin Liska <mliska@suse.cz> |
3832 | ||
3833 | PR sanitize/81530 | |
3834 | * c-convert.c (convert): Guard condition with flag_sanitize_p | |
3835 | also with current_function_decl non-null equality. | |
3836 | * c-decl.c (grokdeclarator): Likewise. | |
3837 | * c-typeck.c (build_binary_op): Likewise. | |
3838 | ||
8595f67b MP |
3839 | 2017-07-25 Marek Polacek <polacek@redhat.com> |
3840 | ||
3841 | * c-decl.c (grokfield): Remove local variable. | |
3842 | ||
d49718d6 MP |
3843 | 2017-07-25 Marek Polacek <polacek@redhat.com> |
3844 | ||
3845 | PR c/81364 | |
3846 | * c-parser.c (c_parser_else_body): Don't warn about multistatement | |
3847 | macro expansion if the body is in { }. | |
3848 | (c_parser_while_statement): Likewise. | |
3849 | (c_parser_for_statement): Likewise. | |
3850 | ||
ff22eb12 NS |
3851 | 2017-07-18 Nathan Sidwell <nathan@acm.org> |
3852 | ||
3853 | * c-parser.c (c_parser_array_notation): Use TYPE_{MIN,MAX}_VALUE. | |
3854 | ||
eea77d1f DM |
3855 | 2017-07-14 David Malcolm <dmalcolm@redhat.com> |
3856 | ||
3857 | * c-decl.c (implicitly_declare): When suggesting a missing | |
3858 | #include, provide a fix-it hint. | |
3859 | ||
b6f43128 DM |
3860 | 2017-07-06 David Malcolm <dmalcolm@redhat.com> |
3861 | ||
3862 | * c-lang.c (selftest::run_c_tests): Move body to c_family_tests, | |
3863 | and call that instead. | |
3864 | * c-tree.h (selftest::run_c_tests): New decl. | |
3865 | ||
3e2becc4 MP |
3866 | 2017-06-26 Marek Polacek <polacek@redhat.com> |
3867 | ||
3868 | PR c/80116 | |
3869 | * c-parser.c (c_parser_if_body): Set the location of the | |
3870 | body of the conditional after parsing all the labels. Call | |
3871 | warn_for_multistatement_macros. | |
3872 | (c_parser_else_body): Likewise. | |
3873 | (c_parser_switch_statement): Likewise. | |
3874 | (c_parser_while_statement): Likewise. | |
3875 | (c_parser_for_statement): Likewise. | |
3876 | (c_parser_statement): Add a default argument. Save the location | |
3877 | after labels have been parsed. | |
3878 | (c_parser_c99_block_statement): Likewise. | |
3879 | ||
343ae898 RB |
3880 | 2017-06-19 Richard Biener <rguenther@suse.de> |
3881 | ||
3882 | * gimple-parser.c (c_parser_gimple_postfix_expression): Handle | |
3883 | negated _Literals to parse _Literal (int) -1. | |
3884 | ||
45b2222a ML |
3885 | 2017-06-13 Martin Liska <mliska@suse.cz> |
3886 | ||
3887 | PR sanitize/78204 | |
3888 | * c-convert.c (convert): Use sanitize_flags_p. | |
3889 | * c-decl.c (grokdeclarator): Likewise. | |
3890 | * c-typeck.c (convert_for_assignment): Likewise. | |
3891 | (c_finish_return): Likewise. | |
3892 | (build_binary_op): Likewise. | |
3893 | ||
8ab7005b JJ |
3894 | 2017-06-08 Jakub Jelinek <jakub@redhat.com> |
3895 | ||
3896 | PR c/81006 | |
3897 | * c-typeck.c (handle_omp_array_sections_1): Convert TYPE_MAX_VALUE | |
3898 | to sizetype before size_binop. | |
3899 | ||
363dc72c JJ |
3900 | 2017-06-07 Jakub Jelinek <jakub@redhat.com> |
3901 | ||
3902 | * gimple-parser.c (c_parser_parse_gimple_body): Use TDI_gimple instead | |
3903 | of TDI_generic. | |
3904 | ||
dc949728 MP |
3905 | 2017-06-06 Marek Polacek <polacek@redhat.com> |
3906 | ||
3907 | PR c/79983 | |
3908 | * c-decl.c (start_struct): Use the location of TYPE_STUB_DECL of | |
3909 | ref. | |
3910 | (start_enum): Use the location of TYPE_STUB_DECL of enumtype. | |
3911 | ||
40ffd95f BE |
3912 | 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de> |
3913 | ||
3914 | * c-parser.c (c_parser_binary_expression): Implement the | |
3915 | -Wsizeof_pointer_div warning. | |
3916 | (c_parser_postfix_expression): Allow SIZEOF_EXPR as expr.original_code | |
3917 | from a parenthesized expression. | |
3918 | (c_parser_expr_list): Use c_last_sizeof_loc. | |
3919 | * c-tree.h (c_last_sizeof_loc): New external. | |
3920 | * c-typeck.c (c_last_sizeof_loc): New variable. | |
3921 | (c_expr_sizeof_expr, c_expr_sizeof_type): Assign c_last_sizeof_loc. | |
3922 | ||
9fc5e7a4 MM |
3923 | 2017-05-31 Mikhail Maltsev <maltsevm@gmail.com> |
3924 | ||
3925 | PR testsuite/80580 | |
3926 | * gimple-parser.c (c_parser_gimple_if_stmt): Check for empty labels. | |
3927 | ||
f012c8ef DM |
3928 | 2017-05-30 David Malcolm <dmalcolm@redhat.com> |
3929 | ||
3930 | * c-objc-common.c (c_tree_printer): Gain bool and const char ** | |
3931 | parameters. | |
3932 | ||
3cd211af MS |
3933 | 2017-05-24 Martin Sebor <msebor@redhat.com> |
3934 | ||
3935 | PR c/80731 | |
3936 | * c-fold.c (c_fully_fold_internal): Adjust. | |
3937 | * c-typeck.c (parser_build_unary_op): Adjust. | |
3938 | ||
fd71a9a2 TS |
3939 | 2017-05-23 Thomas Schwinge <thomas@codesourcery.com> |
3940 | ||
3941 | * c-parser.c (OACC_KERNELS_CLAUSE_MASK): Add | |
3942 | "PRAGMA_OACC_CLAUSE_NUM_GANGS", "PRAGMA_OACC_CLAUSE_NUM_WORKERS", | |
3943 | "VECTOR_LENGTH". | |
3944 | ||
92fa0f9e MP |
3945 | 2017-05-23 Marek Polacek <polacek@redhat.com> |
3946 | ||
3947 | * c-parser.c (c_parser_compound_statement_nostart): Remove redundant | |
3948 | quotes. | |
3949 | ||
d11c168a JJ |
3950 | 2017-05-22 Jakub Jelinek <jakub@redhat.com> |
3951 | ||
3952 | * c-fold.c (c_fully_fold_internal): Save the c_fully_fold_internal | |
3953 | result for SAVE_EXPR operand and set SAVE_EXPR_FOLDED_P even if | |
3954 | it returned invariant. Call tree_invariant_p unconditionally | |
3955 | afterwards to decide whether to return expr or op0. | |
3956 | ||
58aca9d9 NS |
3957 | 2017-05-22 Nathan Sidwell <nathan@acm.org> |
3958 | ||
3959 | * c-decl.c (c_parse_final_cleanups): Drop TDI_tu handling. | |
3960 | ||
7fd549d2 TS |
3961 | 2017-05-19 Thomas Schwinge <thomas@codesourcery.com> |
3962 | ||
3963 | * c-parser.c (c_parser_omp_clause_default): Handle | |
3964 | "OMP_CLAUSE_DEFAULT_PRESENT". | |
3965 | ||
6ecd2339 BE |
3966 | 2017-05-18 Bernd Edlinger <bernd.edlinger@hotmail.de> |
3967 | ||
3968 | * config-lang.in (gtfiles): Add c-family/c-format.c. | |
3969 | ||
8a57ecff NS |
3970 | 2017-05-18 Nathan Sidwell <nathan@acm.org> |
3971 | ||
3972 | * c-decl.c (pushdecl_top_level): Delete unused function. | |
3973 | ||
6574d78e MP |
3974 | 2017-05-18 Marek Polacek <polacek@redhat.com> |
3975 | ||
3976 | * c-decl.c (match_builtin_function_types): Use NULL_TREE instead of 0. | |
3977 | (check_earlier_gotos): Likewise. | |
3978 | (define_label): Likewise. | |
3979 | (pending_xref_error): Likewise. | |
3980 | (smallest_type_quals_location): Likewise. | |
3981 | (grokdeclarator): Likewise. | |
3982 | (grokparms): Likewise. | |
3983 | (identifier_global_value): Likewise. | |
3984 | * c-typeck.c (set_nonincremental_init_from_string): Likewise. | |
3985 | (find_init_member): Likewise. | |
3986 | ||
e3455240 MP |
3987 | 2017-05-18 Marek Polacek <polacek@redhat.com> |
3988 | ||
3989 | * c-decl.c (start_decl): Use false/true instead of 0/1. | |
3990 | (grokdeclarator): Likewise. | |
3991 | (finish_struct): Likewise. | |
3992 | (start_function): Change the return type to bool. Use false/true | |
3993 | instead of 0/1. | |
3994 | (declspecs_add_qual): Use UNKNOWN_LOCATION instead of 0. | |
3995 | * c-tree.h (start_function): Update. | |
3996 | * c-typeck.c (same_translation_unit_p): Change the return type to bool. | |
3997 | (set_designator): Change the return type to bool. Use false/true | |
3998 | instead of 0/1. | |
3999 | ||
3fa8871b MP |
4000 | 2017-05-17 Marek Polacek <polacek@redhat.com> |
4001 | ||
4002 | * c-decl.c: Use NULL_TREE instead of 0 where appropriate. | |
4003 | * c-typeck.c: Likewise. | |
4004 | ||
142473df MP |
4005 | 2017-05-17 Marek Polacek <polacek@redhat.com> |
4006 | ||
4007 | PR sanitizer/80659 | |
4008 | * c-decl.c (build_compound_literal): Set DECL_ARTIFICIAL and | |
4009 | DECL_IGNORED_P even for non-static compound literals. | |
4010 | ||
1a817418 ML |
4011 | 2017-05-17 Martin Liska <mliska@suse.cz> |
4012 | ||
4013 | * c-decl.c (c_parse_final_cleanups): Introduce dump_flags_t type and | |
4014 | use it instead of int type. | |
4015 | ||
b2fa0a8b MP |
4016 | 2017-05-17 Marek Polacek <polacek@redhat.com> |
4017 | ||
4018 | * c-convert.c (convert): Replace c_save_expr with save_expr. Don't | |
4019 | call c_fully_fold. | |
4020 | (convert) <case COMPLEX_TYPE>: Remove special handling of COMPLEX_TYPEs. | |
ab20d992 | 4021 | * c-decl.c (grokdeclarator): Replace c_save_expr with save_expr. |
b2fa0a8b MP |
4022 | * c-fold.c (c_fully_fold_internal): Handle SAVE_EXPR. |
4023 | * c-parser.c (c_parser_declaration_or_fndef): Replace c_save_expr with | |
4024 | save_expr. | |
4025 | (c_parser_conditional_expression): Likewise. | |
4026 | * c-tree.h (SAVE_EXPR_FOLDED_P): Define. | |
4027 | * c-typeck.c (build_modify_expr): Replace c_save_expr with save_expr. | |
4028 | (process_init_element): Likewise. | |
4029 | (build_binary_op): Likewise. | |
4030 | (handle_omp_array_sections_1): Likewise. | |
4031 | ||
1e47f02b TS |
4032 | 2017-05-12 Thomas Schwinge <thomas@codesourcery.com> |
4033 | ||
4034 | * c-parser.c (c_parser_omp_clause_num_gangs) | |
4035 | (c_parser_omp_clause_num_workers) | |
4036 | (c_parser_omp_clause_vector_length): Merge functions into... | |
4037 | (c_parser_oacc_single_int_clause): ... this new function. Adjust | |
4038 | all users. | |
4039 | ||
c24e924f NS |
4040 | 2017-05-11 Nathan Sidwell <nathan@acm.org> |
4041 | ||
4042 | * gimple-parser.c: Don't #include tree-dump.h. | |
4043 | ||
c587104e MM |
4044 | 2017-05-11 Mikhail Maltsev <maltsevm@gmail.com> |
4045 | ||
4046 | PR testsuite/80580 | |
4047 | * gimple-parser.c (c_parser_parse_ssa_name): Validate SSA name base. | |
4048 | ||
67ac9a9d MM |
4049 | 2017-05-11 Mikhail Maltsev <maltsevm@gmail.com> |
4050 | ||
4051 | PR testsuite/80580 | |
4052 | * gimple-parser.c (c_parser_gimple_postfix_expression): Handle | |
4053 | incorrect __MEM syntax. | |
4054 | ||
ac4eb40f MM |
4055 | 2017-05-11 Mikhail Maltsev <maltsevm@gmail.com> |
4056 | ||
4057 | PR testsuite/80580 | |
4058 | * gimple-parser.c (c_parser_gimple_unary_expression): Check argument | |
4059 | type of unary '*'. | |
4060 | ||
641da50a NS |
4061 | 2017-05-09 Nathan Sidwell <nathan@acm.org> |
4062 | ||
4063 | * c-tree.h (pushdecl): Declare. | |
4064 | ||
56d35585 DM |
4065 | 2017-05-05 David Malcolm <dmalcolm@redhat.com> |
4066 | ||
4067 | * c-decl.c (warn_defaults_to): Replace report_diagnostic | |
4068 | with diagnostic_report_diagnostic. | |
4069 | * c-errors.c (pedwarn_c99): Likewise. | |
4070 | (pedwarn_c90): Likewise. | |
4071 | ||
815d9cc6 XR |
4072 | 2017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn> |
4073 | ||
92a285c1 | 4074 | PR c++/80038 |
815d9cc6 XR |
4075 | * c-gimplify.c (c_gimplify_expr): Remove calls to |
4076 | cilk_gimplifY_call_params_in_spawned_fn. | |
4077 | ||
1c4ea66f DM |
4078 | 2017-04-25 David Malcolm <dmalcolm@redhat.com> |
4079 | ||
4080 | * c-parser.c (c_parser_struct_or_union_specifier): Add fix-it | |
4081 | hint for removing extra semicolon. | |
4082 | ||
666f7903 JJ |
4083 | 2017-04-21 Jakub Jelinek <jakub@redhat.com> |
4084 | ||
4085 | PR c/80468 | |
4086 | * c-decl.c (finish_declspecs) <case cts_int_n>: If int_n_idx is not | |
4087 | enabled, set specs->type to integer_type_node. | |
4088 | ||
5764ee3c JW |
4089 | 2017-04-03 Jonathan Wakely <jwakely@redhat.com> |
4090 | ||
4091 | * c-array-notation.c: Fix typo in comment. | |
4092 | ||
10fa8dfb MP |
4093 | 2017-03-29 Marek Polacek <polacek@redhat.com> |
4094 | ||
4095 | PR c/79730 | |
4096 | * c-decl.c (finish_decl): Check VAR_P. | |
4097 | ||
a9e4a1a5 JJ |
4098 | 2017-03-27 Jakub Jelinek <jakub@redhat.com> |
4099 | ||
4100 | PR middle-end/80162 | |
4101 | * c-tree.h (c_mark_addressable): Add array_ref_p argument. | |
4102 | * c-typeck.c (c_mark_addressable): Likewise. Look through | |
4103 | VIEW_CONVERT_EXPR unless array_ref_p and VCE is from VECTOR_TYPE | |
4104 | to ARRAY_TYPE. | |
4105 | (build_array_ref): Pass true as array_ref_p to c_mark_addressable. | |
4106 | ||
ee3ff394 MP |
4107 | 2017-03-23 Marek Polacek <polacek@redhat.com> |
4108 | ||
4109 | * c-tree.h: Remove a C_RID_YYCODE reference. | |
4110 | ||
4d1b8e70 JJ |
4111 | 2017-03-21 Jakub Jelinek <jakub@redhat.com> |
4112 | ||
4113 | PR c/80097 | |
4114 | * c-typeck.c (build_binary_op): Add EXCESS_PRECISION_EXPR only around | |
4115 | optional COMPOUND_EXPR with ubsan instrumentation. | |
4116 | ||
31dc71a8 MP |
4117 | 2017-03-17 Marek Polacek <polacek@redhat.com> |
4118 | ||
4119 | * c-parser.c: Add C11 references. | |
4120 | ||
d579c385 MP |
4121 | 2017-03-15 Marek Polacek <polacek@redhat.com> |
4122 | ||
4123 | * c-parser.c (c_parser_enum_specifier): Remove redundant line. | |
4124 | ||
85059a38 MP |
4125 | 2017-03-11 Marek Polacek <polacek@redhat.com> |
4126 | ||
4127 | * c-decl.c (implicit_decl_warning): Add a comment. Fix formatting. | |
4128 | ||
2f6f187a DM |
4129 | 2017-03-10 David Malcolm <dmalcolm@redhat.com> |
4130 | ||
4131 | PR translation/79848 | |
4132 | * c-decl.c (declspecs_add_type): Simplify uses of "%<%s%>" to | |
4133 | "%qs". | |
4134 | * c-parser.c (c_parser_oacc_shape_clause): Likewise. | |
4135 | ||
36618428 MP |
4136 | 2017-03-09 Marek Polacek <polacek@redhat.com> |
4137 | ||
4138 | PR sanitizer/79757 | |
4139 | * c-parser.c (c_parser_declaration_or_fndef): Don't sanitize old-style | |
4140 | parameter declarations with initializers. | |
4141 | ||
01e5af5a JJ |
4142 | 2017-03-09 Jakub Jelinek <jakub@redhat.com> |
4143 | ||
4144 | PR c/79969 | |
4145 | * c-decl.c (start_enum): Adjust DECL_SOURCE_LOCATION of | |
4146 | TYPE_STUB_DECL. | |
4147 | ||
a71dbc63 JJ |
4148 | 2017-03-07 Jakub Jelinek <jakub@redhat.com> |
4149 | ||
4150 | PR c/79834 | |
4151 | * c-parser.c (c_parser_pragma): Use error_at instead of c_parser_error | |
4152 | for "may only be used in compound statements" diagnostics, change it | |
4153 | such that the same translatable string is used for all pragmas. For | |
4154 | PRAGMA_OACC_WAIT use "acc wait" rather than "acc enter data" in the | |
4155 | diagnostics. | |
4156 | (c_parser_omp_cancellation_point, c_parser_omp_target_update, | |
4157 | c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): Change | |
4158 | "may only be used in compound statements" diagnostics, such that the | |
4159 | same translatable string is used for all pragmas. | |
4160 | ||
1ff4bae6 MP |
4161 | 2017-03-04 Marek Polacek <polacek@redhat.com> |
4162 | ||
4163 | PR c/79847 | |
4164 | * c-decl.c (implicit_decl_warning): Add missing space. | |
4165 | ||
7f5a7d78 MP |
4166 | 2017-03-03 Marek Polacek <polacek@redhat.com> |
4167 | ||
4168 | PR c/79758 | |
4169 | * c-decl.c (store_parm_decls_oldstyle): Check if the element of | |
4170 | current_function_prototype_arg_types is error_mark_node. Fix | |
4171 | formatting. Use TREE_VALUE instead of TREE_TYPE. | |
4172 | ||
883c8f06 JJ |
4173 | 2017-03-03 Jakub Jelinek <jakub@redhat.com> |
4174 | ||
79c9b7a8 JJ |
4175 | PR c/79837 |
4176 | * c-parser.c (c_parser_omp_clause_reduction): Don't mention | |
4177 | %<min%> or %<max%> in the diagnostics, instead mention identifier. | |
4178 | (c_parser_omp_declare_reduction): Don't mention %<min%> in the | |
4179 | diagnostics. | |
4180 | ||
883c8f06 JJ |
4181 | PR c/79836 |
4182 | * c-parser.c (c_parser_generic_selection): Use %<_Generic%> | |
4183 | instead of %<_Generic>. | |
4184 | (c_parser_omp_ordered): Use %<depend%> instead of %<depend>. | |
4185 | (c_parser_omp_target_exit_data): Use %<release%> instead of | |
4186 | %<release>. | |
4187 | ||
324ff1a0 JJ |
4188 | 2017-02-28 Jakub Jelinek <jakub@redhat.com> |
4189 | ||
4190 | * c-parser.c (c_parser_asm_statement): Use cond ? G_("...") : G_("...") | |
4191 | instead of just cond ? "..." : "...". | |
4192 | (c_parser_oacc_enter_exit_data): Use %s and ternary operator only | |
4193 | for "enter"/"exit" keyword. | |
4194 | (c_finish_oacc_routine): Don't use %s to supply portions of the | |
4195 | message. | |
4196 | ||
4227c9ad JJ |
4197 | 2017-02-24 Jakub Jelinek <jakub@redhat.com> |
4198 | ||
4199 | PR c++/79588 | |
4200 | * c-parser.c (c_parser_postfix_expression_after_primary): Don't | |
4201 | handle -Wrestrict here. | |
4202 | * c-typeck.c (build_function_call_vec): Adjust | |
4203 | check_function_arguments caller. | |
4204 | ||
5d972e66 RB |
4205 | 2017-02-23 Richard Biener <rguenther@suse.de> |
4206 | ||
4207 | PR c/79684 | |
4208 | * gimple-parser.c (c_parser_gimple_statement): Use set_error | |
4209 | to initialize c_exprs to return. | |
4210 | (c_parser_gimple_binary_expression): Likewise. | |
4211 | (c_parser_gimple_unary_expression): Likewise. | |
4212 | (c_parser_gimple_postfix_expression): Likewise. | |
4213 | ||
61ac5ebe MP |
4214 | 2017-02-22 Marek Polacek <polacek@redhat.com> |
4215 | ||
4216 | PR c/79662 | |
4217 | * c-typeck.c (convert_arguments): Handle error_mark_node. | |
4218 | ||
41d1b0b1 PK |
4219 | 2017-02-19 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
4220 | ||
4221 | * gimple-parser.c (c_parser_gimple_postfix_expression): Check return | |
4222 | value of c_parser_parse_ssa_name against error_mark_node and emit | |
4223 | error if ssa name is anonymous and written as default definition. | |
4224 | ||
eab1f169 PK |
4225 | 2017-02-19 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
4226 | ||
4227 | * gimple-parser.c (c_parser_gimple_postfix_expression): Handle | |
4228 | FMA_EXPR. | |
4229 | ||
bcac0b4d JJ |
4230 | 2017-02-16 Jakub Jelinek <jakub@redhat.com> |
4231 | ||
4232 | PR c++/79512 | |
4233 | * c-parser.c (c_parser_omp_target): For -fopenmp-simd | |
4234 | ignore #pragma omp target even when not followed by identifier. | |
4235 | ||
1be33173 PK |
4236 | 2017-02-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
4237 | ||
4238 | * gimpler-parser.c (c_parser_gimple_statement): Handle ABS_EXPR. | |
4239 | (c_parser_gimple_unary_expression): Likewise. | |
4240 | ||
aa326bfb JJ |
4241 | 2017-02-13 Jakub Jelinek <jakub@redhat.com> |
4242 | ||
4243 | * c-parser.c (c_parser_oacc_declare): Add missing space in | |
4244 | diagnostics. | |
4245 | ||
8a398bc5 PK |
4246 | 2017-02-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
4247 | ||
4248 | PR c/79478 | |
4249 | * gimple-parser.c (c_parser_gimple_postfix_expression): Call | |
4250 | set_c_expr_source_range when parsing ssa-name. | |
4251 | ||
3dcde5ef | 4252 | 2017-02-10 Prasad Ghangal <prasad.ghangal@gmail.com> |
ab20d992 | 4253 | Richard Biener <rguenther@suse.de> |
3dcde5ef PG |
4254 | |
4255 | * gimple-parser.c (c_parser_gimple_binary_expression): Avoid | |
4256 | building IL when arguments are error_mark_node. | |
4257 | (c_parser_gimple_unary_expression): Likewise. | |
4258 | (c_parser_gimple_if_stmt): Likewise. | |
4259 | (c_parser_gimple_switch_stmt): Likewise. | |
4260 | (c_parser_gimple_return_stmt): Likewise. | |
4261 | (c_parser_parse_ssa_name): When name lookup fails do not build | |
4262 | an SSA name. Use undeclared rather than not declared in error | |
4263 | reporting. | |
4264 | ||
192b048b MP |
4265 | 2017-02-09 Marek Polacek <polacek@redhat.com> |
4266 | ||
4267 | PR c/79428 | |
4268 | * c-parser.c (c_parser_omp_ordered): Call c_parser_skip_to_pragma_eol | |
4269 | instead of c_parser_skip_until_found. | |
4270 | ||
56f71478 JJ |
4271 | 2017-02-09 Jakub Jelinek <jakub@redhat.com> |
4272 | ||
4273 | PR c/79431 | |
4274 | * c-parser.c (c_parser_omp_declare_target): Don't invoke | |
4275 | symtab_node::get on automatic variables. | |
4276 | ||
02889d23 CLT |
4277 | 2016-02-09 Nathan Sidwell <nathan@codesourcery.com> |
4278 | Chung-Lin Tang <cltang@codesourcery.com> | |
4279 | ||
4280 | * c-parser.c (c_parser_omp_clause_collapse): Disallow tile. | |
4281 | (c_parser_oacc_clause_tile): Disallow collapse. Fix parsing and | |
4282 | semantic checking. | |
4283 | * c-parser.c (c_parser_omp_for_loop): Accept tiling constructs. | |
4284 | ||
7af4b20d RB |
4285 | 2017-02-07 Richard Biener <rguenther@suse.de> |
4286 | ||
4287 | * gimple-parser.c (c_parser_gimple_expr_list): Simplify. | |
4288 | (c_parser_gimple_postfix_expression_after_primary): | |
4289 | Do not use c_build_function_call_vec to avoid folding and promotion. | |
4290 | Simplify. | |
4291 | ||
e5e391d6 MO |
4292 | 2017-01-25 Maxim Ostapenko <m.ostapenko@samsung.com> |
4293 | ||
4294 | PR lto/79061 | |
4295 | * c-decl.c (pop_scope): Pass main_input_filename to | |
4296 | build_translation_unit_decl. | |
4297 | ||
c2e84327 DM |
4298 | 2017-01-24 David Malcolm <dmalcolm@redhat.com> |
4299 | ||
4300 | * c-parser.c: Include "read-rtl-function.h" and | |
4301 | "run-rtl-passes.h". | |
4302 | (c_parser_declaration_or_fndef): Rename "gimple-pass-list" in | |
4303 | grammar to gimple-or-rtl-pass-list. Add rtl-function-definition | |
4304 | production. Update for renaming of field "gimple_pass" to | |
4305 | "gimple_or_rtl_pass". If __RTL was seen, call | |
4306 | c_parser_parse_rtl_body. Convert a timevar_push/pop pair | |
4307 | to an auto_timevar, to cope with early exit. | |
4308 | (c_parser_declspecs): Update RID_GIMPLE handling for renaming of | |
4309 | field "gimple_pass" to "gimple_or_rtl_pass", and for renaming of | |
4310 | c_parser_gimple_pass_list to c_parser_gimple_or_rtl_pass_list. | |
4311 | Handle RID_RTL. | |
4312 | (c_parser_parse_rtl_body): New function. | |
4313 | * c-tree.h (enum c_declspec_word): Add cdw_rtl. | |
4314 | (struct c_declspecs): Rename field "gimple_pass" to | |
4315 | "gimple_or_rtl_pass". Add field "rtl_p". | |
4316 | * gimple-parser.c (c_parser_gimple_pass_list): Rename to... | |
4317 | (c_parser_gimple_or_rtl_pass_list): ...this, updating accordingly. | |
4318 | * gimple-parser.h (c_parser_gimple_pass_list): Rename to... | |
4319 | (c_parser_gimple_or_rtl_pass_list): ...this. | |
4320 | ||
2ebd93e1 MP |
4321 | 2017-01-20 Marek Polacek <polacek@redhat.com> |
4322 | ||
4323 | PR c/64279 | |
4324 | * c-typeck.c (build_conditional_expr): Warn about duplicated branches. | |
4325 | ||
b1c95bb5 RB |
4326 | 2017-01-13 Richard Biener <rguenther@suse.de> |
4327 | ||
4328 | * gimple-parser.c (c_parser_gimple_compound_statement): Handle | |
4329 | nops. | |
4330 | ||
25329913 RB |
4331 | 2017-01-13 Richard Biener <rguenther@suse.de> |
4332 | ||
4333 | * gimple-parser.c (c_parser_gimple_postfix_expression): Parse | |
4334 | _Literal ( type-name ) number. | |
4335 | ||
6bb4ea5c RB |
4336 | 2017-01-12 Richard Biener <rguenther@suse.de> |
4337 | ||
4338 | * gimple-parser.c (c_parser_gimple_postfix_expression): Parse | |
4339 | __MEM. | |
4340 | ||
6b5b4e9c JJ |
4341 | 2017-01-11 Jakub Jelinek <jakub@redhat.com> |
4342 | ||
4343 | PR c++/72813 | |
4344 | * c-decl.c (pop_file_scope): Set flag_syntax_only to 1 after writing | |
4345 | PCH file. | |
4346 | ||
e3252775 RB |
4347 | 2017-01-11 Richard Biener <rguenther@suse.de> |
4348 | ||
4349 | PR bootstrap/79052 | |
4350 | * gimple-parser.c (c_parser_gimple_switch_stmt): Add missing | |
4351 | returns on parse errors. | |
4352 | ||
a9342885 MP |
4353 | 2017-01-04 Marek Polacek <polacek@redhat.com> |
4354 | ||
4355 | PR c++/64767 | |
4356 | * c-parser.c (c_parser_postfix_expression): Mark zero character | |
4357 | constants by setting original_type in c_expr. | |
4358 | * c-typeck.c (parser_build_binary_op): Warn when a pointer is compared | |
4359 | with a zero character constant. | |
4360 | (char_type_p): New function. | |
4361 | ||
5dd9a9d0 DM |
4362 | 2017-01-04 David Malcolm <dmalcolm@redhat.com> |
4363 | ||
4364 | * c-parser.c (c_parser_declaration_or_fndef): Create a | |
4365 | rich_location at init_loc and parse it to start_init. | |
4366 | (last_init_list_comma): New global. | |
4367 | (c_parser_braced_init): Update last_init_list_comma when parsing | |
4368 | commas. Pass it to pop_init_level. Pass location of closing | |
4369 | brace to pop_init_level. | |
4370 | (c_parser_postfix_expression_after_paren_type): Create a | |
4371 | rich_location at type_loc and parse it to start_init. | |
4372 | (c_parser_omp_declare_reduction): Likewise for loc. | |
4373 | * c-tree.h (start_init): Add rich_location * param. | |
4374 | (pop_init_level): Add location_t param. | |
4375 | * c-typeck.c (struct initializer_stack): Add field | |
4376 | "missing_brace_richloc". | |
4377 | (start_init): Add richloc param, use it to initialize | |
4378 | the stack node's missing_brace_richloc. | |
4379 | (last_init_list_comma): New decl. | |
4380 | (finish_implicit_inits): Pass last_init_list_comma to | |
4381 | pop_init_level. | |
4382 | (push_init_level): When finding missing open braces, add fix-it | |
4383 | hints to the richloc. | |
4384 | (pop_init_level): Add "insert_before" param and pass it | |
4385 | when calling pop_init_level. Add fixits about missing | |
4386 | close braces to any richloc. Use the richloc for the | |
4387 | -Wmissing-braces warning. | |
4388 | (set_designator): Pass last_init_list_comma to pop_init_level. | |
4389 | (process_init_element): Likewise. | |
4390 | ||
cbe34bb5 JJ |
4391 | 2017-01-01 Jakub Jelinek <jakub@redhat.com> |
4392 | ||
4393 | Update copyright years. | |
4394 | ||
d17680f3 JJ |
4395 | 2016-12-21 Jakub Jelinek <jakub@redhat.com> |
4396 | ||
0dba7960 JJ |
4397 | PR bootstrap/78817 |
4398 | * c-typeck.c (build_function_call_vec): If check_function_arguments | |
4399 | returns true, set TREE_NO_WARNING on CALL_EXPR. | |
4400 | ||
d17680f3 JJ |
4401 | PR c/77767 |
4402 | * c-decl.c (grokdeclarator): If *expr is non-NULL, append expression | |
4403 | to *expr instead of overwriting it. | |
4404 | ||
aa90531e RB |
4405 | 2016-12-20 Richard Biener <rguenther@suse.de> |
4406 | ||
4407 | * gimple-parser.c (c_parser_gimple_compound_statement): Improve | |
4408 | error recovery. | |
4409 | (c_parser_gimple_statement): Only build assigns for non-error | |
4410 | stmts. | |
4411 | (c_parser_gimple_postfix_expression_after): Improve error recovery. | |
4412 | ||
629b3d75 MJ |
4413 | 2016-12-14 Martin Jambor <mjambor@suse.cz> |
4414 | ||
4415 | * c-parser.c: Include omp-general.h and omp-offload.h instead of | |
4416 | omp-low.h. | |
4417 | (c_finish_oacc_routine): Adjusted call to | |
4418 | get_oacc_fn_attrib, build_oacc_routine_dims and replace_oacc_fn_attrib | |
4419 | to use their new names. | |
4420 | (c_parser_oacc_enter_exit_data): Adjusted call to find_omp_clause to | |
4421 | use its new name. | |
4422 | (c_parser_oacc_update): Likewise. | |
4423 | (c_parser_omp_simd): Likewise. | |
4424 | (c_parser_omp_target_update): Likewise. | |
4425 | * c-typeck.c: Include omp-general.h instead of omp-low.h. | |
4426 | (c_finish_omp_cancel): Adjusted call to find_omp_clause to use its new | |
4427 | name. | |
4428 | (c_finish_omp_cancellation_point): Likewise. | |
4429 | * gimple-parser.c: Do not include omp-low.h | |
4430 | ||
c5af52eb CP |
4431 | 2016-12-02 Cesar Philippidis <cesar@codesourcery.com> |
4432 | James Norris <jnorris@codesourcery.com> | |
4433 | ||
4434 | * c-parser.c (c_parser_pragma): Error when PRAGMA_OACC_{ENTER_DATA, | |
4435 | EXIT_DATA,WAIT} are not used in compound statements. | |
4436 | (c_parser_oacc_enter_exit_data): Update diagnostics. | |
4437 | ||
48330c93 BE |
4438 | 2016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de> |
4439 | ||
4440 | PR c++/71973 | |
4441 | * c-decl.c (diagnose_mismatched_decls): Use | |
4442 | OPT_Wbuiltin_declaration_mismatch here too. | |
4443 | ||
899ca90e | 4444 | 2016-11-18 Richard Sandiford <richard.sandiford@arm.com> |
48330c93 BE |
4445 | Alan Hayward <alan.hayward@arm.com> |
4446 | David Sherwood <david.sherwood@arm.com> | |
899ca90e RS |
4447 | |
4448 | * c-decl.c (merge_decls): Use SET_DECL_MODE. | |
4449 | (make_label, finish_struct): Likewise. | |
4450 | ||
1ee62b92 | 4451 | 2016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com> |
8e745a17 | 4452 | Richard Biener <rguenther@suse.de> |
22b15758 | 4453 | |
8e745a17 JJ |
4454 | * Make-lang.in (C_AND_OBJC_OBJS): Add gimple-parser.o. |
4455 | * config-lang.in (gtfiles): Add c/c-parser.h. | |
4456 | * c-tree.h (enum c_declspec_word): Add cdw_gimple. | |
4457 | (struct c_declspecs): Add gimple_pass member and gimple_p flag. | |
4458 | * c-parser.c (enum c_id_kind, struct c_token, | |
4459 | c_parser_next_token_is, c_parser_next_token_is_not, | |
4460 | c_parser_next_token_is_keyword, | |
4461 | enum c_lookahead_kind, enum c_dtr_syn, enum c_parser_prec): | |
4462 | Split out to ... | |
4463 | * c-parser.h: ... new header. | |
4464 | * c-parser.c: Include c-parser.h and gimple-parser.h. | |
1ee62b92 | 4465 | (c_parser_peek_token, c_parser_peek_2nd_token, |
8e745a17 JJ |
4466 | c_token_starts_typename, c_parser_next_token_starts_declspecs, |
4467 | c_parser_next_tokens_start_declaration, c_parser_consume_token, | |
4468 | c_parser_error, c_parser_require, c_parser_skip_until_found, | |
4469 | c_parser_declspecs, c_parser_declarator, c_parser_peek_nth_token, | |
4470 | c_parser_type_name): Export. | |
4471 | (c_parser_tokens_buf): New function. | |
4472 | (c_parser_error): Likewise. | |
4473 | (c_parser_set_error): Likewise. | |
4474 | (c_parser_declspecs): Handle RID_GIMPLE. | |
1ee62b92 PG |
4475 | (c_parser_declaration_or_fndef): Parse __GIMPLE marked body |
4476 | via c_parser_parse_gimple_body. | |
8e745a17 JJ |
4477 | * c-parser.h (c_parser_peek_token, c_parser_peek_2nd_token, |
4478 | c_token_starts_typename, c_parser_next_token_starts_declspecs, | |
4479 | c_parser_next_tokens_start_declaration, c_parser_consume_token, | |
4480 | c_parser_error, c_parser_require, c_parser_skip_until_found, | |
4481 | c_parser_declspecs, c_parser_declarator, c_parser_peek_nth_token, | |
4482 | c_parser_type_name): Declare. | |
1ee62b92 PG |
4483 | (struct c_parser): Declare forward. |
4484 | (c_parser_tokens_buf): Declare. | |
8e745a17 JJ |
4485 | (c_parser_error): Likewise. |
4486 | (c_parser_set_error): Likewise. | |
4487 | * gimple-parser.c: New file. | |
4488 | * gimple-parser.h: Likewise. | |
1ee62b92 | 4489 | |
22b15758 UB |
4490 | 2016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
4491 | ||
4492 | PR c/35503 | |
4493 | * c-parser.c (c_parser_postfix_expression_after_primary): Call | |
4494 | warn_for_restrict. | |
4495 | ||
84ff4775 LCW |
4496 | 2016-09-11 Le-Chun Wu <lcwu@google.com> |
4497 | Mark Wielaard <mjw@redhat.com> | |
4498 | ||
4499 | * c-decl.c (warn_if_shadowing): Use the warning code corresponding | |
4500 | to the given -Wshadow= variant. | |
4501 | ||
4d0cdd0c TP |
4502 | 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com> |
4503 | ||
4504 | * c-typeck.c: Include memmodel.h. | |
4505 | ||
1202f33e JJ |
4506 | 2016-10-13 Jakub Jelinek <jakub@redhat.com> |
4507 | ||
4508 | PR target/77957 | |
4509 | * c-objc-common.h (LANG_HOOKS_GETDECLS): Use hook_tree_void_null | |
4510 | instead of lhd_return_null_tree_v. | |
4511 | ||
8a14afd0 BS |
4512 | 2016-10-07 Bernd Schmidt <bschmidt@redhat.com> |
4513 | ||
4514 | PR c++/69733 | |
4515 | * c-decl.c (smallest_type_quals_location): New static function. | |
4516 | (grokdeclarator): Try to find the correct location for an ignored | |
4517 | qualifier. | |
4518 | ||
81fea426 MP |
4519 | 2016-09-26 Marek Polacek <polacek@redhat.com> |
4520 | ||
4521 | PR c/7652 | |
4522 | * c-decl.c (pop_scope): Add gcc_fallthrough. | |
4523 | ||
4524 | 2016-09-26 Marek Polacek <polacek@redhat.com> | |
4525 | ||
4526 | PR c/7652 | |
4527 | * c-parser.c (struct c_token): Add flags field. | |
4528 | (c_lex_one_token): Pass it to c_lex_with_flags. | |
4529 | (c_parser_declaration_or_fndef): Turn __attribute__((fallthrough)); | |
4530 | into IFN_FALLTHROUGH. | |
4531 | (c_parser_label): Set FALLTHROUGH_LABEL_P on labels. Handle | |
4532 | attribute fallthrough after a case label or default label. | |
4533 | (c_parser_statement_after_labels): Handle RID_ATTRIBUTE. | |
4534 | ||
9a2300e9 MP |
4535 | 2016-09-24 Marek Polacek <polacek@redhat.com> |
4536 | ||
4537 | PR c/77490 | |
4538 | * c-typeck.c (build_unary_op): Warn about bit not on expressions that | |
4539 | have boolean value. Warn about ++/-- on booleans. | |
4540 | ||
7de76362 JJ |
4541 | 2016-09-23 Jakub Jelinek <jakub@redhat.com> |
4542 | ||
4543 | * c-parser.c (incomplete_record_decls): Remove unnecessary | |
4544 | = vNULL initialization of file scope vec. | |
4545 | ||
5b73d2ab MP |
4546 | 2016-09-16 Marek Polacek <polacek@redhat.com> |
4547 | ||
4548 | * c-typeck.c (lvalue_p): Use true and false instead of 1 and 0. | |
4549 | ||
e51fbec3 MP |
4550 | 2016-09-14 Marek Polacek <polacek@redhat.com> |
4551 | ||
4552 | * c-array-notation.c (create_cmp_incr): Use false instead of 0. | |
4553 | (fix_array_notation_expr): Likewise. | |
4554 | * c-decl.c (finish_decl): Likewise. | |
4555 | * c-parser.c (c_parser_postfix_expression_after_primary): Likewise. | |
4556 | * c-typeck.c (array_to_pointer_conversion): Use true instead of 1. | |
4557 | (function_to_pointer_conversion): Use false instead of 0. | |
4558 | (convert_lvalue_to_rvalue): Likewise. | |
4559 | (parser_build_unary_op): Likewise. | |
4560 | (build_atomic_assign): Likewise. | |
4561 | (build_unary_op): Change nonconvert parameter type to bool, use | |
4562 | true/false instead of 1/0. | |
4563 | (build_binary_op): Use true instead of 1. | |
4564 | ||
254830ba DM |
4565 | 2016-09-13 David Malcolm <dmalcolm@redhat.com> |
4566 | ||
4567 | * c-parser.c (c_parser_declaration_or_fndef): Update for renaming | |
4568 | of add_fixit_insert to add_fixit_insert_before. | |
4569 | ||
4c13ba17 MP |
4570 | 2016-09-13 Marek Polacek <polacek@redhat.com> |
4571 | ||
4572 | * c-typeck.c (build_unary_op): Rename FLAG parameter to NOCONVERT. Use | |
4573 | it. | |
4574 | ||
54dcdb88 BE |
4575 | 2016-09-12 Bernd Edlinger <bernd.edlinger@hotmail.de> |
4576 | ||
4577 | PR c++/77496 | |
4578 | * c-parser.c (c_parser_conditional_expression): Pass the rightmost | |
4579 | COMPOUND_EXPR to warn_for_omitted_condop. | |
4580 | ||
e5106e27 DM |
4581 | 2016-09-07 David Malcolm <dmalcolm@redhat.com> |
4582 | ||
4583 | * c-lang.c (LANG_HOOKS_GET_SUBSTRING_LOCATION): Use | |
4584 | c_get_substring_location for this new langhook. | |
4585 | ||
9dc5773f JJ |
4586 | 2016-09-02 Jakub Jelinek <jakub@redhat.com> |
4587 | ||
4588 | PR c/65467 | |
4589 | * c-parser.c (c_parser_declspecs): Don't sorry about _Atomic if | |
4590 | flag_openmp. | |
4591 | (c_parser_omp_variable_list): Use convert_lvalue_to_rvalue | |
4592 | instead of mark_exp_read on low_bound/length expression. | |
4593 | (c_parser_omp_clause_num_gangs, c_parser_omp_clause_num_threads, | |
4594 | c_parser_omp_clause_num_tasks, c_parser_omp_clause_grainsize, | |
4595 | c_parser_omp_clause_priority, c_parser_omp_clause_hint, | |
4596 | c_parser_omp_clause_num_workers, c_parser_oacc_shape_clause, | |
4597 | c_parser_oacc_clause_tile, c_parser_omp_clause_schedule, | |
4598 | c_parser_omp_clause_vector_length, c_parser_omp_clause_num_teams, | |
4599 | c_parser_omp_clause_thread_limit, c_parser_omp_clause_aligned, | |
4600 | c_parser_omp_clause_linear, c_parser_omp_clause_safelen, | |
4601 | c_parser_omp_clause_simdlen, c_parser_omp_clause_device, | |
4602 | c_parser_omp_clause_dist_schedule): Use convert_lvalue_to_rvalue | |
4603 | instead of mark_expr_read. | |
4604 | (c_parser_omp_declare_reduction): Reject _Atomic qualified types. | |
4605 | * c-objc-common.h (LANG_HOOKS_OMP_CLAUSE_COPY_CTOR, | |
4606 | LANG_HOOKS_OMP_CLAUSE_ASSIGN_OP): Redefine. | |
4607 | * c-tree.h (c_omp_clause_copy_ctor): New prototype. | |
4608 | * c-typeck.c (handle_omp_array_sections_1): Diagnose _Atomic qualified | |
4609 | array section bases outside of depend clause, for depend clause | |
4610 | use convert_lvalue_to_rvalue on the base. | |
4611 | (c_finish_omp_clauses): Reject _Atomic qualified vars in reduction, | |
4612 | linear, aligned, map, to and from clauses. | |
4613 | (c_omp_clause_copy_ctor): New function. | |
4614 | ||
295844f6 MP |
4615 | 2016-09-01 Marek Polacek <polacek@redhat.com> |
4616 | ||
4617 | PR c/7652 | |
4618 | * c-typeck.c (composite_type): Add FALLTHRU comment. | |
4619 | ||
089af25c DM |
4620 | 2016-08-31 David Malcolm <dmalcolm@redhat.com> |
4621 | ||
4622 | * c-parser.c (c_parser_declaration_or_fndef): Add trailing space | |
4623 | to the insertion fixits for "struct", "union", and "enum". | |
4624 | ||
f9087798 DM |
4625 | 2016-08-30 David Malcolm <dmalcolm@redhat.com> |
4626 | ||
4627 | * c-decl.c (implicit_decl_warning): Use add_fixit_replace | |
4628 | rather than add_fixit_misspelled_id. | |
4629 | (undeclared_variable): Likewise. | |
4630 | * c-parser.c (c_parser_declaration_or_fndef): Likewise. Remove | |
4631 | now-redundant "here" params from add_fixit_insert method calls. | |
4632 | (c_parser_parameter_declaration): Likewise. | |
4633 | * c-typeck.c (build_component_ref): Remove now-redundant range | |
4634 | param from add_fixit_replace method calls. | |
4635 | ||
ebef225f MP |
4636 | 2016-08-25 Marek Polacek <polacek@redhat.com> |
4637 | ||
4638 | * c-typeck.c (parser_build_binary_op): Pass LHS to | |
4639 | warn_logical_not_parentheses. | |
4640 | ||
fe377a48 MP |
4641 | 2016-08-25 Marek Polacek <polacek@redhat.com> |
4642 | ||
4643 | PR c/77323 | |
4644 | * c-decl.c (declspecs_add_type): Set typespec_word even when __intN | |
4645 | or _FloatN or _FloatNx is not supported. | |
4646 | (finish_declspecs): Set type to integer_type_node when _FloatN or | |
4647 | _FloatNx is not supported. | |
4648 | ||
c65699ef JM |
4649 | 2016-08-19 Joseph Myers <joseph@codesourcery.com> |
4650 | ||
4651 | PR c/32187 | |
4652 | * c-tree.h (cts_floatn_nx): New enum c_typespec_keyword value. | |
4653 | (struct c_declspecs): Add field floatn_nx_idx. | |
4654 | * c-decl.c (declspecs_add_type, finish_declspecs): Handle _FloatN | |
4655 | and _FloatNx type specifiers. | |
4656 | * c-parser.c (c_keyword_starts_typename, c_token_starts_declspecs) | |
4657 | (c_parser_declspecs, c_parser_attribute_any_word) | |
4658 | (c_parser_objc_selector): Use CASE_RID_FLOATN_NX. | |
4659 | * c-typeck.c (c_common_type): Handle _FloatN and _FloatNx types. | |
4660 | (convert_arguments): Avoid promoting _FloatN and _FloatNx types | |
4661 | narrower than double. | |
4662 | ||
2f1364c2 JJ |
4663 | 2016-08-12 Jakub Jelinek <jakub@redhat.com> |
4664 | Martin Liska <mliska@suse.cz> | |
4665 | ||
4666 | PR c/67410 | |
4667 | * c-typeck.c (set_nonincremental_init_from_string): Use / instead of | |
4668 | % to determine val element to change. Assert that | |
4669 | wchar_bytes * charwidth fits into val array. | |
4670 | ||
191816a3 MP |
4671 | 2016-08-12 Marek Polacek <polacek@redhat.com> |
4672 | ||
4673 | PR c/7652 | |
4674 | * c-parser.c (c_parser_external_declaration): Add FALLTHRU. | |
4675 | (c_parser_postfix_expression): Likewise. | |
4676 | * c-typeck.c (build_unary_op): Adjust fall through comment. | |
4677 | (c_mark_addressable): Likewise. | |
4678 | ||
b95a64bb JJ |
4679 | 2016-08-11 Jakub Jelinek <jakub@redhat.com> |
4680 | ||
4681 | PR c/72816 | |
4682 | * c-decl.c (grokdeclarator): When adding TYPE_DOMAIN for flexible | |
4683 | array member through typedef, for orig_qual_indirect == 0 clear | |
4684 | orig_qual_type. | |
4685 | ||
895aa8e1 DM |
4686 | 2016-08-08 David Malcolm <dmalcolm@redhat.com> |
4687 | ||
4688 | PR c/64955 | |
4689 | * c-lang.c (LANG_HOOKS_RUN_LANG_SELFTESTS): If CHECKING_P, wire | |
4690 | this up to selftest::run_c_tests. | |
4691 | (selftest::run_c_tests): New function. | |
4692 | ||
0b212d8c TS |
4693 | 2016-08-04 Thomas Schwinge <thomas@codesourcery.com> |
4694 | ||
ae9281fc TS |
4695 | * c-parser.c (struct oacc_routine_data): Add error_seen and |
4696 | fndecl_seen members. | |
4697 | (c_finish_oacc_routine): Use these. | |
4698 | (c_parser_declaration_or_fndef): Adjust. | |
4699 | (c_parser_oacc_routine): Likewise. Support more C language | |
4700 | constructs, and improve diagnostics. Move pragma context | |
4701 | checking... | |
4702 | (c_parser_pragma): ... here. | |
4703 | ||
0b212d8c TS |
4704 | * c-parser.c (struct oacc_routine_data): New. |
4705 | (c_parser_declaration_or_fndef, c_parser_oacc_routine): Use it. | |
4706 | Simplify code. | |
4707 | (c_finish_oacc_routine): Likewise. Don't attach clauses to "omp | |
4708 | declare target" attribute. | |
4709 | ||
76e2c821 JB |
4710 | 2016-08-01 Jan Beulich <jbeulich@suse.com> |
4711 | ||
4712 | * c-fold.c (c_fully_fold_internal): Also emit shift count | |
4713 | warnings for vector types. | |
4714 | * c-typeck.c (build_binary_op): Likewise. | |
4715 | ||
f618a472 MP |
4716 | 2016-07-29 Marek Polacek <polacek@redhat.com> |
4717 | ||
4718 | PR c/71742 | |
4719 | * c-decl.c (finish_struct): Rephrase an error message. | |
4720 | ||
efd0786f MP |
4721 | PR c/71853 |
4722 | * c-parser.c (c_parser_switch_statement): Initialize ce.original_type | |
4723 | to error node for invalid code. | |
4724 | ||
e00dceaf MP |
4725 | PR c/71573 |
4726 | * c-decl.c (implicitly_declare): Return decl early not only for | |
4727 | error_mark_nodes, but for anything that is not a FUNCTION_DECL. | |
4728 | ||
673a107a JJ |
4729 | 2016-07-29 Jakub Jelinek <jakub@redhat.com> |
4730 | ||
4731 | PR c/71969 | |
4732 | * c-decl.c (finish_function): Only set DECL_DISREGARD_INLINE_LIMITS | |
4733 | on GNU extern inline functions. | |
4734 | ||
a5b5c8b6 MP |
4735 | 2016-07-29 Marek Polacek <polacek@redhat.com> |
4736 | ||
4737 | PR c/71583 | |
4738 | * c-parser.c (c_parser_postfix_expression_after_paren_type): Also | |
4739 | check expr.value. | |
4740 | ||
e3fe09c1 UB |
4741 | 2016-07-22 Uros Bizjak <ubizjak@gmail.com> |
4742 | ||
4743 | * c-typeck.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1, | |
4744 | ||
7c8f7eaa DM |
4745 | 2016-07-20 David Malcolm <dmalcolm@redhat.com> |
4746 | ||
4747 | * c-decl.c (struct edit_distance_traits<cpp_hashnode *>): Move to | |
4748 | spellcheck-tree.h | |
4749 | (best_macro_match): Likewise, converting from a typedef to a | |
4750 | subclass. | |
4751 | (find_closest_macro_cpp_cb): Move to spellcheck-tree.c. | |
4752 | (lookup_name_fuzzy): Update for change of best_macro_match to a | |
4753 | subclass with a ctor that calls cpp_forall_identifiers. | |
4754 | ||
de6a69ee DM |
4755 | 2016-07-20 David Malcolm <dmalcolm@redhat.com> |
4756 | ||
4757 | * c-decl.c (implicit_decl_warning): Update for conversion of | |
4758 | return type of lookup_name_fuzzy to const char *. | |
4759 | (undeclared_variable): Likewise. | |
4760 | (lookup_name_fuzzy): Convert return type from tree to | |
4761 | const char *. | |
4762 | * c-parser.c (c_parser_declaration_or_fndef): Update for | |
4763 | conversion of return type of lookup_name_fuzzy to const char *. | |
4764 | (c_parser_parameter_declaration): Likewise. | |
4765 | ||
b1c9c068 CP |
4766 | 2016-07-15 Cesar Philippidis <cesar@codesourcery.com> |
4767 | ||
4768 | * c-parser.c (c_parser_oacc_declare): Don't scan for | |
4769 | GOMP_MAP_POINTER. | |
4770 | * c-typeck.c (handle_omp_array_sections): Mark data clauses with | |
4771 | GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having | |
4772 | zero-length subarrays. | |
4773 | ||
ddbbcb19 JJ |
4774 | 2016-07-15 Jakub Jelinek <jakub@redhat.com> |
4775 | ||
4776 | PR c/71858 | |
4777 | * c-decl.c (implicit_decl_warning): Use FUZZY_LOOKUP_FUNCTION_NAME | |
4778 | instead of FUZZY_LOOKUP_NAME. | |
4779 | (lookup_name_fuzzy): For FUZZY_LOOKUP_FUNCTION_NAME consider | |
4780 | FUNCTION_DECLs, {VAR,PARM}_DECLs function pointers and macros. | |
4781 | ||
dd36b877 JJ |
4782 | 2016-07-14 Jakub Jelinek <jakub@redhat.com> |
4783 | ||
4784 | PR c/71858 | |
4785 | * c-decl.c (lookup_name_fuzzy): Ignore binding->invisible. | |
4786 | ||
8c681247 TS |
4787 | 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> |
4788 | ||
4789 | * c-parser.c (c_parser_generic_selection): Make type of variable | |
4790 | auto_vec. | |
4791 | (c_parser_omp_declare_simd): Likewise. | |
4792 | ||
bf4fa671 TS |
4793 | 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> |
4794 | ||
4795 | * c-decl.c (struct c_struct_parse_info): Change member types | |
4796 | from vec to auto_vec. | |
4797 | (start_struct): Adjust. | |
4798 | (finish_struct): Likewise. | |
4799 | ||
557e8c49 JJ |
4800 | 2016-07-02 Jakub Jelinek <jakub@redhat.com> |
4801 | ||
4802 | PR c/71719 | |
4803 | * c-typeck.c (mark_exp_read): Handle VIEW_CONVERT_EXPR. | |
4804 | ||
54d19c3b TS |
4805 | 2016-06-29 Thomas Schwinge <thomas@codesourcery.com> |
4806 | ||
4807 | * c-parser.c (c_parser_pragma) <PRAGMA_OMP_CANCELLATION_POINT>: | |
4808 | Move pragma context checking into... | |
4809 | (c_parser_omp_cancellation_point): ... here, and improve | |
4810 | diagnostic messages. | |
4811 | * c-typeck.c (c_finish_omp_cancel) | |
4812 | (c_finish_omp_cancellation_point): Improve diagnostic messages. | |
4813 | ||
152ef731 JJ |
4814 | 2016-06-29 Jakub Jelinek <jakub@redhat.com> |
4815 | ||
4816 | PR c/71685 | |
4817 | * c-typeck.c (c_build_qualified_type): Don't clear | |
4818 | C_TYPE_INCOMPLETE_VARS for the main variant. | |
4819 | ||
4820 | 2016-06-28 Martin Sebor <msebor@redhat.com> | |
4378d117 MS |
4821 | |
4822 | PR c/71552 | |
4823 | * c-typeck.c (output_init_element): Diagnose incompatible types | |
4824 | before non-constant initializers. | |
4825 | ||
e9ac1f86 JJ |
4826 | 2016-06-28 Jakub Jelinek <jakub@redhat.com> |
4827 | ||
4828 | * Make-lang.in: Don't cat ../stage_current if it does not exist. | |
4829 | ||
277d7ee0 AK |
4830 | 2016-06-23 Andi Kleen <ak@linux.intel.com> |
4831 | ||
4832 | * Make-lang.in: Add support for autofdo. | |
4833 | ||
1a4f11c8 DM |
4834 | 2016-06-22 David Malcolm <dmalcolm@redhat.com> |
4835 | ||
4836 | PR c/70339 | |
4837 | * c-decl.c: Include spellcheck-tree.h and gcc-rich-location.h. | |
4838 | (implicit_decl_warning): When issuing warnings for implicit | |
4839 | declarations, attempt to provide a suggestion via | |
4840 | lookup_name_fuzzy. | |
4841 | (undeclared_variable): Likewise when issuing errors. | |
4842 | (lookup_name_in_scope): Likewise. | |
4843 | (struct edit_distance_traits<cpp_hashnode *>): New struct. | |
4844 | (best_macro_match): New typedef. | |
4845 | (find_closest_macro_cpp_cb): New function. | |
4846 | (lookup_name_fuzzy): New function. | |
4847 | * c-parser.c: Include gcc-rich-location.h. | |
4848 | (c_token_starts_typename): Split out case CPP_KEYWORD into... | |
4849 | (c_keyword_starts_typename): ...this new function. | |
4850 | (c_parser_declaration_or_fndef): When issuing errors about | |
4851 | missing "struct" etc, add a fixit. For other kinds of errors, | |
4852 | attempt to provide a suggestion via lookup_name_fuzzy. | |
4853 | (c_parser_parms_declarator): When looking ahead to detect typos in | |
4854 | type names, also reject CPP_KEYWORD. | |
4855 | (c_parser_parameter_declaration): When issuing errors about | |
4856 | unknown type names, attempt to provide a suggestion via | |
4857 | lookup_name_fuzzy. | |
4858 | * c-tree.h (c_keyword_starts_typename): New prototype. | |
4859 | ||
5a578671 JM |
4860 | 2016-06-20 Joseph Myers <joseph@codesourcery.com> |
4861 | ||
4862 | PR c/71601 | |
4863 | * c-typeck.c (build_conditional_expr): Return error_mark_node if | |
4864 | c_common_type returns error_mark_node. | |
4865 | ||
3f8257db | 4866 | 2016-06-19 Martin Sebor <msebor@redhat.com> |
aa0db437 MS |
4867 | |
4868 | PR c/69507 | |
4869 | * c-parser.c (c_parser_alignof_expression): Avoid diagnosing | |
4870 | __alignof__ (expression). | |
4871 | ||
6a3f203c DM |
4872 | 2016-06-14 David Malcolm <dmalcolm@redhat.com> |
4873 | ||
4874 | * c-typeck.c: Include spellcheck-tree.h rather than spellcheck.h. | |
4875 | ||
264757fb DM |
4876 | 2016-06-14 David Malcolm <dmalcolm@redhat.com> |
4877 | ||
4878 | * c-typeck.c (build_component_ref): Simplify fixit code by | |
4879 | using gcc_rich_location::add_fixit_misspelled_id. | |
4880 | (set_init_label): Likewise. | |
4881 | ||
f7e4f2e3 DM |
4882 | 2016-06-13 David Malcolm <dmalcolm@redhat.com> |
4883 | ||
4884 | * c-parser.c (c_parser_initelt): Provide location of name for new | |
4885 | location_t param of set_init_label. | |
4886 | * c-tree.h (set_init_label): Add location_t param. | |
4887 | * c-typeck.c (set_init_index): Add "fieldname_loc" location_t | |
4888 | param and use it when issuing error messages about unrecognized | |
4889 | field names. Attempt to provide a fixit hint if appropriate, | |
4890 | otherwise update the error message to provide the type name. | |
4891 | ||
4b1ffdb1 TS |
4892 | 2016-06-10 Thomas Schwinge <thomas@codesourcery.com> |
4893 | ||
4894 | PR c/71381 | |
4895 | * c-parser.c (c_parser_omp_variable_list) <OMP_CLAUSE__CACHE_>: | |
4896 | Loosen checking. | |
4897 | ||
44a845ca MS |
4898 | 2016-06-08 Martin Sebor <msebor@redhat.com> |
4899 | Jakub Jelinek <jakub@redhat.com> | |
4900 | ||
4901 | PR c++/70507 | |
4902 | PR c/68120 | |
4903 | * c-typeck.c (convert_arguments): Don't promote last argument | |
4904 | of BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P. | |
4905 | ||
92a5f2ba MP |
4906 | 2016-06-08 Marek Polacek <polacek@redhat.com> |
4907 | ||
4908 | PR c/71418 | |
4909 | * c-decl.c (grokdeclarator): Check TYPE_P. | |
4910 | ||
08203f73 MP |
4911 | PR c/71426 |
4912 | * c-decl.c (get_parm_info): Don't crash on an assert on invalid | |
4913 | code. | |
4914 | ||
6ffd47b7 DM |
4915 | 2016-06-07 David Malcolm <dmalcolm@redhat.com> |
4916 | ||
4917 | * c-parser.c (c_parser_postfix_expression): In __builtin_offsetof | |
4918 | and structure element reference, capture the location of the | |
4919 | element name token and pass it to build_component_ref. | |
4920 | (c_parser_postfix_expression_after_primary): Likewise for | |
4921 | structure element dereference. | |
4922 | (c_parser_omp_variable_list): Likewise for | |
4923 | OMP_CLAUSE_{_CACHE, MAP, FROM, TO}, | |
4924 | * c-tree.h (build_component_ref): Add location_t param. | |
4925 | * c-typeck.c (build_component_ref): Add location_t param | |
4926 | COMPONENT_LOC. Use it, if available, when issuing hints about | |
4927 | mispelled member names to provide a fixit replacement hint. | |
4928 | ||
1f40cff3 MP |
4929 | 2016-06-06 Marek Polacek <polacek@redhat.com> |
4930 | ||
4931 | PR c/71362 | |
4932 | * c-parser.c (c_parser_direct_declarator): Set location. | |
4933 | ||
5545a907 MP |
4934 | 2016-06-06 Marek Polacek <polacek@redhat.com> |
4935 | ||
4936 | * c-typeck.c (comptypes_internal): Handle comparisons of | |
4937 | INTEGER_TYPE, FIXED_POINT_TYPE, and REAL_TYPE nodes. Don't check | |
4938 | TYPE_REF_CAN_ALIAS_ALL. | |
4939 | ||
b605f663 CLT |
4940 | 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com> |
4941 | ||
4942 | * c-typeck.c (c_finish_omp_clauses): Mark OpenACC reduction | |
4943 | arguments as addressable when async clause exists. | |
4944 | ||
00631022 JJ |
4945 | 2016-05-30 Jakub Jelinek <jakub@redhat.com> |
4946 | ||
4947 | PR c++/71349 | |
4948 | * c-parser.c (c_parser_omp_for): Don't disallow nowait clause | |
4949 | when combined with target construct. | |
4950 | ||
7211a097 JJ |
4951 | 2016-05-26 Jakub Jelinek <jakub@redhat.com> |
4952 | ||
4953 | * c-parser.c (c_parser_omp_clause_schedule): Warn if | |
4954 | OMP_CLAUSE_SCHEDULE_CHUNK_EXPR is known not to be positive. | |
4955 | ||
95efe6b6 MP |
4956 | 2016-05-25 Marek Polacek <polacek@redhat.com> |
4957 | ||
4958 | PR c/71265 | |
4959 | * c-decl.c (c_make_fname_decl): Don't check seen_error. | |
4960 | ||
a23faf7a MP |
4961 | PR c/71266 |
4962 | * c-decl.c (store_parm_decls_oldstyle): Skip non-PARM_DECLs. | |
4963 | ||
e46c7770 CP |
4964 | 2016-05-24 Cesar Philippidis <cesar@codesourcery.com> |
4965 | ||
4966 | * c-parser.c (c_parser_oacc_declare): Add support for | |
4967 | GOMP_MAP_FIRSTPRIVATE_POINTER. | |
4968 | * c-typeck.c (handle_omp_array_sections_1): Replace bool is_omp | |
4969 | argument with enum c_omp_region_type ort. | |
4970 | (handle_omp_array_sections): Likewise. Update call to | |
4971 | handle_omp_array_sections_1. | |
4972 | (c_finish_omp_clauses): Add specific errors and warning messages for | |
4973 | OpenACC. Use firsrtprivate pointers for OpenACC subarrays. Update | |
4974 | call to handle_omp_array_sections. | |
4975 | ||
a04e69c0 TS |
4976 | 2016-05-24 Thomas Schwinge <thomas@codesourcery.com> |
4977 | ||
4978 | * c-parser.c (c_parser_oacc_routine): Tighten syntax checks. | |
4979 | ||
f17a223d RB |
4980 | 2016-05-24 Richard Biener <rguenther@suse.de> |
4981 | ||
4982 | PR middle-end/70434 | |
4983 | PR c/69504 | |
4984 | * c-typeck.c (build_array_ref): Do not complain about indexing | |
4985 | non-lvalue vectors. Adjust for function name change. | |
4986 | ||
79063edd MS |
4987 | 2016-05-20 Martin Sebor <msebor@redhat.com> |
4988 | ||
4989 | PR c/71115 | |
4990 | * c-typeck.c (error_init): Use | |
4991 | expansion_point_location_if_in_system_header. | |
4992 | (warning_init): Same. | |
4993 | ||
8a40fef3 DM |
4994 | 2016-05-19 David Malcolm <dmalcolm@redhat.com> |
4995 | ||
4996 | PR c/71171 | |
4997 | * c-parser.c (c_parser_generic_selection): Use c_expr::set_error | |
4998 | in error-handling. | |
4999 | (c_parser_postfix_expression): Likewise. | |
5000 | * c-tree.h (c_expr::set_error): New method. | |
5001 | * c-typeck.c (parser_build_binary_op): In error-handling, ensure | |
5002 | that result's range is initialized. | |
5003 | ||
e9892350 JG |
5004 | 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com> |
5005 | ||
5006 | * c-typeck.c (parser_build_unary_op): Fix formatting. | |
5007 | ||
8fad45f5 MW |
5008 | 2016-05-16 Matthew Wahab <matthew.wahab@arm.com> |
5009 | ||
5010 | * c-decl.c (grokdeclarator): Remove errmsg and use of | |
5011 | targetm.invalid_return_type. | |
5012 | (grokparms): Remove errmsg and use of | |
5013 | targetm.invalid_parameter_type. | |
5014 | ||
aa4b467b JM |
5015 | 2016-05-13 Joseph Myers <joseph@codesourcery.com> |
5016 | ||
5017 | * c-decl.c (grokdeclarator): For C11, discard qualifiers on | |
5018 | function return type. | |
5019 | ||
4f2e1536 MP |
5020 | 2016-05-12 Marek Polacek <polacek@redhat.com> |
5021 | ||
5022 | PR c/70756 | |
5023 | * c-decl.c (build_compound_literal): Pass LOC down to | |
5024 | c_incomplete_type_error. | |
5025 | * c-tree.h (require_complete_type): Adjust declaration. | |
5026 | (c_incomplete_type_error): Likewise. | |
5027 | * c-typeck.c (require_complete_type): Add location parameter, pass it | |
5028 | down to c_incomplete_type_error. | |
5029 | (c_incomplete_type_error): Add location parameter, pass it down to | |
5030 | error_at. | |
5031 | (build_component_ref): Pass location down to c_incomplete_type_error. | |
5032 | (default_conversion): Pass location down to require_complete_type. | |
5033 | (build_array_ref): Likewise. | |
5034 | (build_function_call_vec): Likewise. | |
5035 | (convert_arguments): Likewise. | |
5036 | (build_unary_op): Likewise. | |
5037 | (build_c_cast): Likewise. | |
5038 | (build_modify_expr): Likewise. | |
5039 | (convert_for_assignment): Likewise. | |
5040 | (c_finish_omp_clauses): Likewise. | |
5041 | ||
d6e83a8d MM |
5042 | 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com> |
5043 | ||
5044 | PR c/43651 | |
5045 | * c-decl.c (declspecs_add_qual): Warn when -Wduplicate-decl-specifier | |
5046 | is enabled. | |
5047 | * c-errors.c (pedwarn_c90): Return true if warned. | |
5048 | * c-tree.h (pedwarn_c90): Change return type to bool. | |
5049 | (enum c_declspec_word): Add new enumerator cdw_atomic. | |
5050 | ||
5c3a10fb MP |
5051 | 2016-05-11 Marek Polacek <polacek@redhat.com> |
5052 | ||
5053 | PR c++/71024 | |
5054 | * c-decl.c (diagnose_mismatched_decls): Factor out code to | |
5055 | diagnose_mismatched_attributes and call it. | |
5056 | ||
cf68d92c MP |
5057 | 2016-05-10 Marek Polacek <polacek@redhat.com> |
5058 | ||
5059 | PR c/70255 | |
5060 | * c-decl.c (diagnose_mismatched_decls): Warn for optimize attribute | |
5061 | on a declaration following the definition. | |
5062 | ||
351f85c5 JJ |
5063 | 2016-05-05 Jakub Jelinek <jakub@redhat.com> |
5064 | ||
5065 | * c-parser.c (c_parser_switch_statement): Add IF_P argument, | |
5066 | parse it through to c_parser_c99_block_statement. | |
5067 | (c_parser_statement_after_labels): Adjust c_parser_switch_statement | |
5068 | caller. | |
5069 | ||
deef7113 MP |
5070 | 2016-05-04 Marek Polacek <polacek@redhat.com> |
5071 | ||
5072 | * c-parser.c (c_parser_if_statement): Replace OPT_Wparentheses with | |
5073 | OPT_Wdangling_else. | |
5074 | ||
de55efd5 MP |
5075 | 2016-05-04 Marek Polacek <polacek@redhat.com> |
5076 | ||
5077 | PR c/48778 | |
5078 | * c-typeck.c (build_binary_op): Don't issue -Waddress warnings | |
5079 | for macro expansions. | |
5080 | ||
79ce98bc MP |
5081 | 2016-05-03 Marek Polacek <polacek@redhat.com> |
5082 | ||
5083 | PR c/70859 | |
5084 | * c-typeck.c (build_function_call_vec): Pass LOC and ARG_LOC down to | |
5085 | check_builtin_function_arguments. | |
5086 | ||
fb2647aa RB |
5087 | 2016-05-03 Richard Biener <rguenther@suse.de> |
5088 | ||
5089 | * Make-lang.in (cc1-checksum.c): For stage-final re-use | |
5090 | the checksum from the previous stage. | |
5091 | ||
77886428 CP |
5092 | 2016-05-02 Cesar Philippidis <cesar@codesourcery.com> |
5093 | ||
5094 | * c-parser.c (c_parser_oacc_all_clauses): Update call to | |
5095 | c_finish_omp_clauses. | |
5096 | (c_parser_omp_all_clauses): Likewise. | |
5097 | (c_parser_oacc_cache): Likewise. | |
5098 | (c_parser_oacc_loop): Likewise. | |
5099 | (omp_split_clauses): Likewise. | |
5100 | (c_parser_omp_declare_target): Likewise. | |
5101 | (c_parser_cilk_all_clauses): Likewise. | |
5102 | (c_parser_cilk_for): Likewise. | |
5103 | * c-typeck.c (c_finish_omp_clauses): Replace bool arguments | |
5104 | is_omp, declare_simd, and is_cilk with enum c_omp_region_type ort. | |
5105 | ||
7176a4a0 MP |
5106 | 2016-05-02 Marek Polacek <polacek@redhat.com> |
5107 | ||
5108 | PR c/70851 | |
5109 | * c-decl.c (grokdeclarator): Diagnose when array's size has an | |
5110 | incomplete type. | |
5111 | ||
e7ff0319 CP |
5112 | 2016-04-29 Cesar Philippidis <cesar@codesourcery.com> |
5113 | ||
5114 | PR middle-end/70626 | |
5115 | * c-parser.c (c_parser_oacc_loop): Don't augment mask with | |
5116 | OACC_LOOP_CLAUSE_MASK. | |
5117 | (c_parser_oacc_kernels_parallel): Update call to | |
5118 | c_oacc_split_loop_clauses. | |
5119 | ||
9f405ce1 AM |
5120 | 2016-04-28 Andrew MacLeod <amacleod@redhat.com> |
5121 | ||
5122 | * c-array-notation.c (fix_builtin_array_notation_fn): Fix final | |
5123 | argument to build_modify_expr in two cases. | |
5124 | ||
c1e1f433 BS |
5125 | 2016-04-27 Bernd Schmidt <bschmidt@redhat.com> |
5126 | ||
5127 | * c-parser.c (c_parser_postfix_expression_after_primary): Call | |
5128 | warn_for_memset instead of warning directly here. | |
5129 | ||
2448a956 MP |
5130 | 2016-04-26 Marek Polacek <polacek@redhat.com> |
5131 | ||
5132 | PR c/67784 | |
5133 | * c-parser.c (c_parser_maybe_reclassify_token): New function factored | |
5134 | out of ... | |
5135 | (c_parser_for_statement): ... here. | |
5136 | (c_parser_if_statement): Use it. | |
5137 | (c_parser_switch_statement): Use it. | |
5138 | (c_parser_while_statement): Use it. | |
5139 | ||
b02a5e26 MP |
5140 | PR c/70791 |
5141 | * c-decl.c (pushdecl): Pass LOCUS down to warning. | |
5142 | ||
477d4906 IV |
5143 | 2016-04-20 Ilya Verbin <ilya.verbin@intel.com> |
5144 | ||
5145 | PR c++/69363 | |
5146 | * c-parser.c (c_parser_cilk_all_clauses): Use c_finish_omp_clauses | |
5147 | instead of c_finish_cilk_clauses. | |
5148 | * c-tree.h (c_finish_omp_clauses): Add new default argument. | |
5149 | * c-typeck.c (c_finish_omp_clauses): Add new argument. Allow | |
5150 | floating-point variables in the linear clause for Cilk Plus. | |
5151 | ||
fe37c7af MM |
5152 | 2016-04-18 Michael Matz <matz@suse.de> |
5153 | ||
5154 | * c-decl.c (merge_decls): Use SET_DECL_ALIGN and SET_TYPE_ALIGN. | |
5155 | (grokdeclarator, parser_xref_tag, finish_enum): Use SET_TYPE_ALIGN. | |
5156 | ||
949505a9 MP |
5157 | 2016-04-15 Marek Polacek <polacek@redhat.com> |
5158 | ||
5159 | PR c/70671 | |
5160 | * c-typeck.c (build_unary_op): Pass location down to error and | |
5161 | warning call. | |
5162 | ||
dda1bf61 JJ |
5163 | 2016-04-15 Jakub Jelinek <jakub@redhat.com> |
5164 | ||
5165 | PR c/70436 | |
5166 | * c-parser.c (c_parser_pragma): Add IF_P argument, pass it down | |
5167 | where needed. | |
5168 | (c_parser_external_declaration, c_parser_struct_or_union_specifier, | |
5169 | c_parser_parameter_declaration, c_parser_compound_statement_nostart, | |
5170 | c_parser_objc_class_instance_variables, c_parser_objc_methodprotolist): | |
5171 | Adjust c_parser_pragma callers. | |
5172 | (c_parser_statement_after_labels): Likewise. Adjust c_parser_cilk_for | |
5173 | caller. | |
5174 | (c_parser_omp_structured_block): Add IF_P argument, pass it down to | |
5175 | c_parser_statement. | |
5176 | (c_parser_oacc_data, c_parser_oacc_host_data, c_parser_oacc_loop, | |
5177 | c_parser_oacc_kernels_parallel, c_parser_omp_critical, | |
5178 | c_parser_omp_simd, c_parser_omp_for, c_parser_omp_master, | |
5179 | c_parser_omp_ordered, c_parser_omp_parallel, c_parser_omp_single, | |
5180 | c_parser_omp_task, c_parser_omp_taskgroup, c_parser_omp_distribute, | |
5181 | c_parser_omp_teams, c_parser_omp_target_data, c_parser_omp_target, | |
5182 | c_parser_omp_taskloop, c_parser_omp_construct, c_parser_cilk_grainsize, | |
5183 | c_parser_cilk_simd, c_parser_cilk_for): Add IF_P argument, pass it | |
5184 | down where needed. | |
5185 | (c_parser_omp_for_loop): Likewise. Clear IF_P if nbraces. | |
5186 | (c_parser_omp_sections_scope): Adjust c_parser_omp_structured_block | |
5187 | calls. | |
5188 | ||
99cd9857 MP |
5189 | 2016-04-13 Marek Polacek <polacek@redhat.com> |
5190 | ||
5191 | PR c/70436 | |
5192 | * c-parser.c (c_parser_statement_after_labels): Add IF_P argument and | |
5193 | adjust callers. | |
5194 | (c_parser_statement): Likewise. | |
5195 | (c_parser_c99_block_statement): Likewise. | |
5196 | (c_parser_while_statement): Likewise. | |
5197 | (c_parser_for_statement): Likewise. | |
5198 | (c_parser_if_body): Don't set IF_P here. | |
5199 | (c_parser_if_statement): Add IF_P argument. Set IF_P here. Warn | |
5200 | about dangling else here. | |
5201 | * c-tree.h (c_finish_if_stmt): Adjust declaration. | |
5202 | * c-typeck.c (c_finish_if_stmt): Remove NESTED_IF parameter. Don't | |
5203 | warn about dangling else here. | |
5204 | ||
f13355da MP |
5205 | 2016-04-04 Marek Polacek <polacek@redhat.com> |
5206 | ||
5207 | PR c/70307 | |
5208 | * c-fold.c (c_fully_fold_internal): Handle VEC_COND_EXPR. | |
5209 | ||
5fde6a45 MP |
5210 | 2016-03-31 Marek Polacek <polacek@redhat.com> |
5211 | ||
5212 | PR c/70297 | |
5213 | * c-decl.c (merge_decls): Also set TYPE_ALIGN and TYPE_USER_ALIGN. | |
5214 | ||
4bbf545b DM |
5215 | 2016-03-18 David Malcolm <dmalcolm@redhat.com> |
5216 | ||
5217 | PR c/70281 | |
5218 | * c-parser.c (c_parser_postfix_expression): Set the source range | |
5219 | for uses of "__builtin_types_compatible_p". | |
5220 | ||
fcc2b74f JJ |
5221 | 2016-03-17 Jakub Jelinek <jakub@redhat.com> |
5222 | ||
5223 | PR c/70280 | |
5224 | * c-typeck.c (composite_type): Don't count void_list_node | |
5225 | into len, if the list is terminated by void_list_node, start | |
5226 | with void_list_node instead of NULL for newargs. Stop | |
5227 | at void_list_node. | |
5228 | ||
ab4c578f MP |
5229 | 2016-03-16 Marek Polacek <polacek@redhat.com> |
5230 | ||
5231 | PR c/70093 | |
5232 | * c-typeck.c (build_function_call_vec): Create a TARGET_EXPR for | |
5233 | nested functions returning VM types. | |
5234 | ||
96b3c82d CP |
5235 | 2016-03-09 Cesar Philippidis <cesar@codesourcery.com> |
5236 | ||
5237 | * c-parser.c (c_parser_oacc_loop): Update cclauses and clauses | |
5238 | when calling c_finish_omp_clauses. | |
5239 | ||
29b9828f BS |
5240 | 2016-03-04 Bernd Schmidt <bschmidt@redhat.com> |
5241 | ||
5242 | PR c/69824 | |
5243 | * c-decl.c (get_parm_info): Don't queue implicit function declarations | |
5244 | for later. | |
5245 | ||
7ff6ca38 MP |
5246 | 2016-03-04 Marek Polacek <polacek@redhat.com> |
5247 | ||
5248 | PR c/69798 | |
5249 | * c-parser.c (c_parser_postfix_expression): Call | |
5250 | c_parser_cast_expression rather than c_parser_postfix_expression. | |
5251 | ||
686e2237 JJ |
5252 | 2016-03-01 Jakub Jelinek <jakub@redhat.com> |
5253 | ||
5254 | PR c/69796 | |
5255 | PR c/69974 | |
5256 | * c-parser.c (c_parser_translation_unit): Don't change TREE_TYPE | |
5257 | of incomplete decls to error_mark_node. | |
5258 | ||
0b05329b MP |
5259 | 2016-02-24 Marek Polacek <polacek@redhat.com> |
5260 | ||
5261 | PR c/69819 | |
5262 | * c-decl.c (finish_decl): Don't update the copy of the type of a | |
5263 | different decl type. | |
5264 | ||
067fbd8b JJ |
5265 | 2016-02-23 Jakub Jelinek <jakub@redhat.com> |
5266 | ||
5267 | PR objc/69844 | |
5268 | * c-parser.c (c_parser_for_statement): Properly handle ObjC classes | |
5269 | in id_kind reclassification. | |
5270 | ||
bf14eba2 JJ |
5271 | 2016-02-16 Jakub Jelinek <jakub@redhat.com> |
5272 | ||
5273 | PR c/69835 | |
5274 | * c-typeck.c (build_binary_op): Revert 2015-09-09 change. | |
5275 | ||
ba539195 JN |
5276 | 2016-02-16 James Norris <jnorris@codesourcery.com> |
5277 | ||
5278 | PR c/64748 | |
5279 | * c-parser.c (c_parser_oacc_data_clause_deviceptr): Allow parms. | |
5280 | ||
16595a1f BS |
5281 | 2016-02-12 Bernd Schmidt <bschmidt@redhat.com> |
5282 | ||
f48dfe98 BS |
5283 | * c-decl.c (build_null_declspecs): Zero the entire struct. |
5284 | ||
16595a1f BS |
5285 | PR c/69522 |
5286 | * c-parser.c (c_parser_braced_init): New arg outer_obstack. All | |
5287 | callers changed. If nested_p is true, use it to call | |
5288 | finish_implicit_inits. | |
5289 | * c-tree.h (finish_implicit_inits): Declare. | |
5290 | * c-typeck.c (finish_implicit_inits): New function. Move code | |
5291 | from ... | |
5292 | (push_init_level): ... here. | |
5293 | (set_designator, process_init_element): Call finish_implicit_inits. | |
5294 | ||
66756373 JJ |
5295 | 2016-02-11 Jakub Jelinek <jakub@redhat.com> |
5296 | ||
5297 | PR c/69768 | |
5298 | * c-typeck.c (parser_build_binary_op): Strip nops from integer_zerop | |
5299 | arguments for -Waddress warning. | |
5300 | ||
1066e9b5 JJ |
5301 | 2016-02-04 Jakub Jelinek <jakub@redhat.com> |
5302 | ||
5303 | PR c/69669 | |
5304 | * c-decl.c (finish_enum): When honoring mode attribute, | |
5305 | make sure to use proper TYPE_MIN_VALUE and TYPE_MAX_VALUE. | |
5306 | ||
3a5d2ba4 JJ |
5307 | 2016-01-29 Jakub Jelinek <jakub@redhat.com> |
5308 | ||
5309 | PR debug/69518 | |
5310 | * c-decl.c (finish_struct): Clear C_TYPE_INCOMPLETE_VARS in | |
5311 | all type variants, not just TYPE_MAIN_VARIANT. | |
5312 | ||
cbdd8ae0 JJ |
5313 | 2016-01-27 Jakub Jelinek <jakub@redhat.com> |
5314 | ||
5315 | PR debug/66869 | |
5316 | * c-decl.c (c_write_global_declarations_1): Warn with | |
5317 | warn_unused_function if static prototype without definition | |
5318 | is not C_DECL_USED. | |
5319 | ||
fa74a4bc MP |
5320 | 2016-01-27 Marek Polacek <polacek@redhat.com> |
5321 | ||
5322 | PR c/68062 | |
5323 | * c-typeck.c (build_binary_op) [EQ_EXPR, GE_EXPR]: Promote operand | |
5324 | to unsigned, if needed. Add -Wsign-compare warning. | |
5325 | ||
13f92e8d JJ |
5326 | 2016-01-26 Jakub Jelinek <jakub@redhat.com> |
5327 | ||
5328 | PR tree-optimization/69483 | |
5329 | * c-parser.c (c_parser_translation_unit): Use FOR_EACH_VEC_ELT. | |
5330 | ||
cd8e73dc | 5331 | 2016-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
d25c7690 PK |
5332 | |
5333 | PR c/24293 | |
5334 | * c-tree.h (incomplete_record_decls): Declare. | |
5335 | * c-parser.c (incomplete_record_decls): Define. | |
5336 | (c_parser_translation_unit): Iterate through incomplete_record_decls and | |
5337 | report error if any decl has zero size. | |
5338 | * c-decl.c (finish_decl): Append static decl with incomplete struct/union | |
5339 | or enum type to incomplete_record_decls. | |
5340 | ||
e6d6ec9e TV |
5341 | 2016-01-14 Tom de Vries <tom@codesourcery.com> |
5342 | ||
5343 | PR tree-optimization/68773 | |
5344 | * c-parser.c (c_parser_oacc_declare, c_parser_omp_declare_target): Don't | |
5345 | set force_output. | |
5346 | ||
00083992 MP |
5347 | 2016-01-14 Marek Polacek <polacek@redhat.com> |
5348 | ||
5349 | PR c/69262 | |
5350 | * c-decl.c (grokdeclarator): Provide more information for invalid | |
5351 | array declarations. | |
5352 | ||
7443cf13 DM |
5353 | 2016-01-06 David Malcolm <dmalcolm@redhat.com> |
5354 | ||
5355 | * c-parser.c (c_parser_unary_expression): For dereferences, build | |
5356 | a combined location before calling build_indirect_ref, so that | |
5357 | error reports cover the full range, manually updating the c_expr | |
5358 | src_range. | |
5359 | ||
6b131d5b MP |
5360 | 2016-01-06 Marek Polacek <polacek@redhat.com> |
5361 | ||
5362 | PR sanitizer/69099 | |
5363 | * c-convert.c (convert) [INTEGER_TYPE]: Drop ARG. Don't pass ARG to | |
5364 | ubsan_instrument_float_cast. Fold EXPR. Use NULL_TREE instead of | |
5365 | NULL. | |
5366 | ||
818ab71a JJ |
5367 | 2016-01-04 Jakub Jelinek <jakub@redhat.com> |
5368 | ||
5369 | Update copyright years. | |
5370 | ||
2fe0a208 MP |
5371 | 2016-01-04 Marek Polacek <polacek@redhat.com> |
5372 | ||
5373 | PR c/68908 | |
5374 | * c-typeck.c (build_atomic_assign): Improve commentary. Add | |
5375 | optimization to use __atomic_fetch_* built-in if possible. | |
5376 | ||
c7b48c8a TS |
5377 | 2015-12-23 Thomas Schwinge <thomas@codesourcery.com> |
5378 | ||
5379 | * c-parser.c (c_parser_oacc_clause_use_device): Merge function | |
5380 | into... | |
5381 | (c_parser_omp_clause_use_device_ptr): ... this function. Adjust | |
5382 | all users. | |
5383 | ||
fda5652f MP |
5384 | 2015-12-22 Marek Polacek <polacek@redhat.com> |
5385 | ||
5386 | PR c/69002 | |
5387 | * c-typeck.c (build_component_ref): Warn when acessing elements of | |
5388 | atomic structures or unions. | |
5389 | ||
745e411d DM |
5390 | 2015-12-21 David Malcolm <dmalcolm@redhat.com> |
5391 | ||
5392 | * c-typeck.c: Include "gcc-rich-location.h". | |
5393 | (build_binary_op): In the two places that call binary_op_error, | |
5394 | create a gcc_rich_location and populate it with the location of | |
5395 | the binary op and its two operands. | |
5396 | ||
94c40e19 DM |
5397 | 2015-12-16 David Malcolm <dmalcolm@redhat.com> |
5398 | ||
5399 | * c-parser.c (c_parser_statement_after_labels): When calling | |
5400 | c_finish_return, Use the return expression's location if it has | |
5401 | one, falling back to the location of the first token within it. | |
5402 | * c-typeck.c (c_finish_return): When issuing warnings about | |
5403 | the incorrect presence/absence of a return value, issue a note | |
5404 | showing the declaration of the function. | |
5405 | ||
de67c4c3 DM |
5406 | 2015-12-16 David Malcolm <dmalcolm@redhat.com> |
5407 | ||
5408 | * c-parser.c (struct c_parser): Expand array "tokens_buf" from 2 | |
5409 | to 4. | |
5410 | (c_parser_peek_nth_token): New function. | |
5411 | (c_parser_peek_conflict_marker): New function. | |
5412 | (c_parser_error): Detect conflict markers and report them as such. | |
5413 | ||
a10704e1 DM |
5414 | 2015-12-16 David Malcolm <dmalcolm@redhat.com> |
5415 | ||
5416 | * c-parser.c (c_parser_postfix_expression): Use EXPR_LOC_OR_LOC | |
5417 | to preserve range information for the primary expression | |
5418 | in the call to c_parser_postfix_expression_after_primary. | |
5419 | ||
8062bca6 DM |
5420 | 2015-12-16 David Malcolm <dmalcolm@redhat.com> |
5421 | ||
5422 | * c-parser.c (c_parser_static_assert_declaration_no_semi): Use the | |
5423 | expression location, falling back on the first token location, | |
5424 | rather than always using the latter. | |
5425 | ||
d06f8b75 MP |
5426 | 2015-12-16 Marek Polacek <polacek@redhat.com> |
5427 | ||
5428 | PR c/64637 | |
5429 | * c-typeck.c (c_process_expr_stmt): Use location of the expression if | |
5430 | available. | |
5431 | ||
2994fb91 MP |
5432 | 2015-12-15 Marek Polacek <polacek@redhat.com> |
5433 | ||
5434 | PR c/68907 | |
5435 | * c-typeck.c (build_atomic_assign): Set TREE_NO_WARNING on an | |
5436 | artificial decl. | |
5437 | ||
a1b93f8d DM |
5438 | 2015-12-08 David Malcolm <dmalcolm@redhat.com> |
5439 | ||
5440 | * c-parser.c (c_parser_alignof_expression): Capture location of | |
5441 | closing parenthesis (if any), or of end of unary expression, and | |
5442 | use it to build a src_range for the expression. | |
5443 | ||
46c6e1e2 DM |
5444 | 2015-12-08 David Malcolm <dmalcolm@redhat.com> |
5445 | ||
5446 | PR c/68757 | |
5447 | * c-parser.c (c_parser_get_builtin_args): Add | |
5448 | "out_close_paren_loc" param, and write back to it. | |
5449 | (c_parser_postfix_expression): Capture the closing | |
5450 | parenthesis location for RID_CHOOSE_EXPR, | |
5451 | RID_BUILTIN_CALL_WITH_STATIC_CHAIN, RID_BUILTIN_COMPLEX, | |
5452 | RID_BUILTIN_SHUFFLE and use it to set the source range | |
5453 | for such expressions; within RID_BUILTIN_COMPLEX set | |
5454 | the underlying location. | |
5455 | ||
66189108 MP |
5456 | 2015-12-07 Marek Polacek <polacek@redhat.com> |
5457 | ||
5458 | PR c/68668 | |
5459 | * c-decl.c (grokdeclarator): If ORIG_QUAL_INDIRECT is indirect, use | |
5460 | TREE_TYPE of ORIG_QUAL_TYPE, otherwise decrement ORIG_QUAL_INDIRECT. | |
5461 | ||
f187980b EB |
5462 | 2015-12-04 Eric Botcazou <ebotcazou@adacore.com> |
5463 | ||
5464 | * c-tree.h (c_build_va_arg): Adjust prototype. | |
5465 | * c-parser.c (c_parser_postfix_expression): Adjust call to above. | |
5466 | * c-typeck.c (c_build_va_arg): Rename LOC parameter to LOC2, add LOC1 | |
5467 | parameter, adjust throughout and issue an error if EXPR is a component | |
5468 | with reverse storage order. | |
5469 | ||
4250754e JM |
5470 | 2015-12-02 Jason Merrill <jason@redhat.com> |
5471 | ||
5472 | * c-fold.c (c_disable_warnings, c_enable_warnings, c_fully_fold) | |
5473 | (c_fully_fold_internal, decl_constant_value_for_optimization): | |
5474 | Move from c-common.c. | |
5475 | * c-tree.h: Declare decl_constant_value_for_optimization. | |
5476 | * Make-lang.in (C_AND_OBJC_OBJS): Add c-fold.o. | |
5477 | ||
e9e32ee6 JM |
5478 | 2015-12-02 Joseph Myers <joseph@codesourcery.com> |
5479 | ||
5480 | PR c/68162 | |
5481 | * c-decl.c (grokdeclarator): Set first_non_attr_kind before | |
5482 | following link from declarator to next declarator. Track original | |
5483 | qualified type and pass it to c_build_qualified_type. | |
5484 | * c-typeck.c (c_build_qualified_type): Add arguments | |
5485 | orig_qual_type and orig_qual_indirect. | |
5486 | ||
ff7a55bf TS |
5487 | 2015-12-02 Thomas Schwinge <thomas@codesourcery.com> |
5488 | ||
5489 | * c-parser.c (c_parser_omp_clause_name) | |
5490 | (c_parser_oacc_all_clauses): Alphabetical sorting. | |
5491 | ||
657e4e47 JJ |
5492 | 2015-12-02 Jakub Jelinek <jakub@redhat.com> |
5493 | ||
5494 | PR c/68533 | |
5495 | * c-decl.c (get_parm_info): Use b->locus instead of input_location | |
5496 | for diagnostics. | |
5497 | ||
37d5ad46 JB |
5498 | 2015-12-01 Julian Brown <julian@codesourcery.com> |
5499 | Cesar Philippidis <cesar@codesourcery.com> | |
5500 | James Norris <James_Norris@mentor.com> | |
5501 | ||
5502 | * c-parser.c (c_parser_omp_clause_name): Add use_device support. | |
5503 | (c_parser_oacc_clause_use_device): New function. | |
5504 | (c_parser_oacc_all_clauses): Add use_device support. | |
5505 | (OACC_HOST_DATA_CLAUSE_MASK): New macro. | |
5506 | (c_parser_oacc_host_data): New function. | |
5507 | (c_parser_omp_construct): Add host_data support. | |
5508 | * c-tree.h (c_finish_oacc_host_data): Add prototype. | |
5509 | * c-typeck.c (c_finish_oacc_host_data): New function. | |
5510 | (c_finish_omp_clauses): Add use_device support. | |
5511 | ||
a4850ce9 JH |
5512 | 2015-11-29 Jan Hubicka <hubicka@ucw.cz> |
5513 | ||
5514 | PR c/67106 | |
5515 | * c-decl.c: Set TYPE_PACKED in variants. | |
5516 | ||
b58d3df2 ML |
5517 | 2015-11-27 Martin Liska <mliska@suse.cz> |
5518 | ||
5519 | PR c++/68312 | |
5520 | * c-array-notation.c (fix_builtin_array_notation_fn): | |
5521 | Use release_vec_vec instead of vec::release. | |
5522 | (build_array_notation_expr): Likewise. | |
5523 | (fix_conditional_array_notations_1): Likewise. | |
5524 | (fix_array_notation_expr): Likewise. | |
5525 | (fix_array_notation_call_expr): Likewise. | |
5526 | ||
aec17bfe JJ |
5527 | 2015-11-27 Jakub Jelinek <jakub@redhat.com> |
5528 | ||
5529 | PR c/63326 | |
5530 | * c-parser.c (c_parser_compound_statement_nostart): If | |
5531 | last_label is true, use pragma_stmt instead of pragma_compound | |
5532 | as second c_parser_pragma argument. | |
5533 | (c_parser_omp_ordered, c_parser_omp_target_update, | |
5534 | c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): Pass | |
5535 | false as second argument to c_parser_skip_to_pragma_eol after | |
5536 | diagnosing standalone directives used in pragma_stmt context. | |
5537 | ||
688c4de0 IV |
5538 | 2015-11-24 Ilya Verbin <ilya.verbin@intel.com> |
5539 | ||
5540 | * c-parser.c (c_parser_oacc_declare): Replace "ifdef ENABLE_OFFLOADING" | |
5541 | with "if (ENABLE_OFFLOADING)". | |
5542 | ||
cbd03aee DM |
5543 | 2015-11-23 David Malcolm <dmalcolm@redhat.com> |
5544 | ||
5545 | PR objc/68438 | |
5546 | * c-parser.c (c_parser_postfix_expression): Set up source ranges | |
5547 | for various Objective-C constructs: Class.name syntax, | |
5548 | @selector(), @protocol(), @encode(), and [] message syntax. | |
5549 | ||
a87a86e1 DM |
5550 | 2015-11-20 David Malcolm <dmalcolm@redhat.com> |
5551 | ||
5552 | PR 62314 | |
5553 | * c-typeck.c (should_suggest_deref_p): New function. | |
5554 | (build_component_ref): Special-case POINTER_TYPE when | |
5555 | generating a "not a structure of union" error message, and | |
5556 | suggest a "->" rather than a ".", providing a fix-it hint. | |
5557 | ||
8ece8dfb DM |
5558 | 2015-11-19 David Malcolm <dmalcolm@redhat.com> |
5559 | ||
5560 | * c-typeck.c (lookup_field_fuzzy): Move determination of closest | |
5561 | candidate into a new function, find_closest_identifier. | |
5562 | ||
433068cc MP |
5563 | 2015-11-19 Marek Polacek <polacek@redhat.com> |
5564 | ||
5565 | PR c/68412 | |
5566 | * c-typeck.c (parser_build_binary_op): Properly handle | |
5567 | C_MAYBE_CONST_EXPR before calling warn_tautological_cmp. | |
5568 | ||
bef08b71 DM |
5569 | 2015-11-17 David Malcolm <dmalcolm@redhat.com> |
5570 | ||
5571 | * c-parser.c (set_c_expr_source_range): Bulletproof both | |
5572 | overloaded implementations against NULL expr->value. | |
5573 | (c_parser_braced_init): Set src_range for "ret" to a sane pair of | |
5574 | values. | |
5575 | (c_parser_unary_expression): Likewise when handling addresses of | |
5576 | labels. | |
5577 | (c_parser_postfix_expression): Likewise for statement expressions, | |
5578 | for __FUNCTION__, __PRETTY_FUNCTION_ and __func__ keywords, for | |
5579 | __builtin_va_arg, and for __builtin_offset_of. | |
5580 | (c_parser_postfix_expression_after_paren_type): Initialize expr's | |
5581 | src_range using the range of the braced initializer. | |
5582 | (c_parser_transaction_expression): Set src_range for "ret" to a | |
5583 | sane pair of values. | |
5584 | ||
fff77217 KY |
5585 | 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com> |
5586 | ||
5587 | * c-parser.c (c_finish_omp_declare_simd): Look for | |
5588 | "simd" attribute as well. Update error message. | |
5589 | ||
1d899da2 TS |
5590 | 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> |
5591 | ||
5592 | * c-parser.c (c_parser_omp_declare_target): Adjust. | |
5593 | ||
e4606348 JJ |
5594 | 2015-11-14 Jakub Jelinek <jakub@redhat.com> |
5595 | ||
5596 | * c-typeck.c (c_finish_omp_clauses): Don't mark | |
5597 | GOMP_MAP_FIRSTPRIVATE_POINTER decls addressable. | |
5598 | ||
3e636daf MP |
5599 | 2015-11-14 Marek Polacek <polacek@redhat.com> |
5600 | ||
5601 | * c-decl.c: Use RECORD_OR_UNION_TYPE_P throughout. | |
5602 | * c-typeck.c: Likewise. | |
5603 | ||
ebedc9a3 DM |
5604 | 2015-11-13 David Malcolm <dmalcolm@redhat.com> |
5605 | ||
5606 | * c-decl.c (warn_defaults_to): Pass line_table to | |
5607 | rich_location ctor. | |
5608 | * c-errors.c (pedwarn_c99): Likewise. | |
5609 | (pedwarn_c90): Likewise. | |
5610 | * c-parser.c (set_c_expr_source_range): New functions. | |
5611 | (c_token::get_range): New method. | |
5612 | (c_token::get_finish): New method. | |
5613 | (c_parser_expr_no_commas): Call set_c_expr_source_range on the ret | |
5614 | based on the range from the start of the LHS to the end of the | |
5615 | RHS. | |
5616 | (c_parser_conditional_expression): Likewise, based on the range | |
5617 | from the start of the cond.value to the end of exp2.value. | |
5618 | (c_parser_binary_expression): Call set_c_expr_source_range on | |
5619 | the stack values for TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR. | |
5620 | (c_parser_cast_expression): Call set_c_expr_source_range on ret | |
5621 | based on the cast_loc through to the end of the expr. | |
5622 | (c_parser_unary_expression): Likewise, based on the | |
5623 | op_loc through to the end of op. | |
5624 | (c_parser_sizeof_expression) Likewise, based on the start of the | |
5625 | sizeof token through to either the closing paren or the end of | |
5626 | expr. | |
5627 | (c_parser_postfix_expression): Likewise, using the token range, | |
5628 | or from the open paren through to the close paren for | |
5629 | parenthesized expressions. | |
5630 | (c_parser_postfix_expression_after_primary): Likewise, for | |
5631 | various kinds of expression. | |
5632 | * c-tree.h (struct c_expr): Add field "src_range". | |
5633 | (c_expr::get_start): New method. | |
5634 | (c_expr::get_finish): New method. | |
5635 | (set_c_expr_source_range): New decls. | |
5636 | * c-typeck.c (parser_build_unary_op): Call set_c_expr_source_range | |
5637 | on ret for prefix unary ops. | |
5638 | (parser_build_binary_op): Likewise, running from the start of | |
5639 | arg1.value through to the end of arg2.value. | |
5640 | ||
ec8b536f MP |
5641 | 2015-11-13 Marek Polacek <polacek@redhat.com> |
5642 | ||
5643 | PR c/68320 | |
5644 | * c-parser.c (c_parser_for_statement): Treat unknown tokens as IDs. | |
5645 | ||
277fe616 DM |
5646 | 2015-11-13 David Malcolm <dmalcolm@redhat.com> |
5647 | ||
5648 | * c-typeck.c: Include spellcheck.h. | |
5649 | (lookup_field_fuzzy_find_candidates): New function. | |
5650 | (lookup_field_fuzzy): New function. | |
5651 | (build_component_ref): If the field was not found, try using | |
5652 | lookup_field_fuzzy and potentially offer a suggestion. | |
5653 | ||
6e232ba4 JN |
5654 | 2015-11-12 James Norris <jnorris@codesourcery.com> |
5655 | Joseph Myers <joseph@codesourcery.com> | |
5656 | ||
5657 | * c-parser.c (c_parser_pragma): Handle PRAGMA_OACC_DECLARE. | |
5658 | (c_parser_omp_clause_name): Handle 'device_resident' clause. | |
5659 | (c_parser_oacc_data_clause): Handle PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT | |
5660 | and PRAGMA_OMP_CLAUSE_LINK. | |
5661 | (c_parser_oacc_all_clauses): Handle PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT | |
5662 | and PRAGMA_OACC_CLAUSE_LINK. | |
5663 | (OACC_DECLARE_CLAUSE_MASK): New definition. | |
5664 | (c_parser_oacc_declare): New function. | |
5665 | ||
9be4f715 MP |
5666 | 2015-11-12 Marek Polacek <polacek@redhat.com> |
5667 | ||
5668 | PR c/67784 | |
5669 | * c-parser.c (c_parser_for_statement): Reclassify the token in | |
5670 | a correct scope. | |
5671 | ||
e78bede6 MP |
5672 | 2015-11-11 Marek Polacek <polacek@redhat.com> |
5673 | ||
5674 | PR c/68107 | |
5675 | PR c++/68266 | |
5676 | * c-decl.c (grokdeclarator): Call valid_array_size_p. Remove code | |
5677 | checking the size of an array. | |
5678 | ||
69f293c9 AM |
5679 | 2015-11-11 Andrew MacLeod <amacleod@redhat.com> |
5680 | ||
5681 | * c-array-notation.c: Remove unused header files. | |
5682 | * c-aux-info.c: Likewise. | |
5683 | * c-convert.c: Likewise. | |
5684 | * c-decl.c: Likewise. | |
5685 | * c-errors.c: Likewise. | |
5686 | * c-lang.c: Likewise. | |
5687 | * c-objc-common.c: Likewise. | |
5688 | * c-parser.c: Likewise. | |
5689 | * c-typeck.c: Likewise. | |
5690 | * gccspec.c: Likewise. | |
5691 | ||
3a40d81d NS |
5692 | 2015-11-09 Thomas Schwinge <thomas@codesourcery.com> |
5693 | Cesar Philippidis <cesar@codesourcery.com> | |
5694 | James Norris <jnorris@codesourcery.com> | |
5695 | Julian Brown <julian@codesourcery.com> | |
5696 | Nathan Sidwell <nathan@codesourcery.com> | |
5697 | ||
3a40d81d NS |
5698 | * c-parser.c (c_parser_declaration_or_fndef): Add OpenACC |
5699 | routine arg. | |
5700 | (c_parser_declaration_or_fndef): Call c_finish_oacc_routine. | |
5701 | (c_parser_pragma): Parse 'acc routine'. | |
5702 | (OACC_ROUTINE_CLAUSE_MARK): Define. | |
5703 | (c_parser_oacc_routine, (c_finish_oacc_routine): New. | |
5704 | ||
fc402eec AA |
5705 | 2015-11-09 Andreas Arnez <arnez@linux.vnet.ibm.com> |
5706 | ||
5707 | PR debug/67192 | |
5708 | * c-typeck.c (c_finish_loop): For unconditional loops, set the | |
5709 | location of the backward-goto to the start of the loop body. | |
5710 | ||
f6b0b3db AA |
5711 | 2015-11-09 Andreas Arnez <arnez@linux.vnet.ibm.com> |
5712 | ||
5713 | PR debug/67192 | |
5714 | * c-parser.c (c_parser_while_statement): Finish the loop before | |
5715 | parsing ahead for misleading indentation. | |
5716 | (c_parser_for_statement): Likewise. | |
5717 | ||
ee45a32d EB |
5718 | 2015-11-08 Eric Botcazou <ebotcazou@adacore.com> |
5719 | ||
5720 | * c-decl.c (finish_struct): If the structure has reverse storage | |
5721 | order, rewrite the type of array fields with scalar component. Call | |
5722 | maybe_apply_pragma_scalar_storage_order on entry. | |
5723 | * c-typeck.c (build_unary_op) <ADDR_EXPR>: Remove left-overs. Issue | |
5724 | errors on bit-fields and reverse SSO here and not... | |
5725 | (c_mark_addressable): ...here. | |
5726 | (output_init_element): Adjust call to initializer_constant_valid_p. | |
5727 | (c_build_qualified_type): Propagate TYPE_REVERSE_STORAGE_ORDER. | |
5728 | ||
8a645150 DM |
5729 | 2015-11-06 David Malcolm <dmalcolm@redhat.com> |
5730 | ||
5731 | * c-decl.c (warn_defaults_to): Update for change in signature | |
5732 | of diagnostic_set_info. | |
5733 | * c-errors.c (pedwarn_c99): Likewise. | |
5734 | (pedwarn_c90): Likewise. | |
5735 | * c-objc-common.c (c_tree_printer): Update for new "caret_p" param | |
5736 | for textinfo::set_location. | |
5737 | ||
7a5e4956 CP |
5738 | 2015-11-05 Cesar Philippidis <cesar@codesourcery.com> |
5739 | Thomas Schwinge <thomas@codesourcery.com> | |
5740 | James Norris <jnorris@codesourcery.com> | |
5741 | ||
5742 | * c-parser.c (c_parser_omp_clause_name): Add support for | |
5743 | PRAGMA_OACC_CLAUSE_INDEPENDENT and PRAGMA_OACC_CLAUSE_TILE. | |
5744 | (c_parser_omp_clause_default): Add is_oacc argument. Handle | |
5745 | default(none) in OpenACC. | |
5746 | (c_parser_oacc_shape_clause): Allow pointer variables as gang static | |
5747 | arguments. | |
5748 | (c_parser_oacc_clause_tile): New function. | |
5749 | (c_parser_oacc_all_clauses): Add support for OMP_CLAUSE_DEFAULT, | |
5750 | OMP_CLAUSE_INDEPENDENT and OMP_CLAUSE_TILE. | |
5751 | (OACC_LOOP_CLAUSE_MASK): Add PRAGMA_OACC_CLAUSE_{PRIVATE,INDEPENDENT, | |
5752 | TILE}. | |
5753 | (OACC_KERNELS_MASK): Add PRAGMA_OACC_CLAUSE_DEFAULT. | |
5754 | (OACC_PARALLEL_MASK): Add PRAGMA_OACC_CLAUSE_{DEFAULT,PRIVATE, | |
5755 | FIRSTPRIVATE}. | |
5756 | (c_parser_omp_all_clauses): Update call to c_parser_omp_clause_default. | |
5757 | (c_parser_oacc_update): Update the error message for missing clauses. | |
5758 | * c-typeck.c (c_finish_omp_clauses): Add support for OMP_CLAUSE_TILE | |
5759 | and OMP_CLAUSE_INDEPENDENT. | |
5760 | ||
bfcfbfa0 MP |
5761 | 2015-11-05 Marek Polacek <polacek@redhat.com> |
5762 | ||
5763 | PR c/68090 | |
5764 | * c-parser.c (c_parser_postfix_expression_after_paren_type): Don't | |
5765 | deal with pre-evaluation on invalid types. | |
5766 | ||
e01d41e5 JJ |
5767 | 2015-11-05 Jakub Jelinek <jakub@redhat.com> |
5768 | Ilya Verbin <ilya.verbin@intel.com> | |
5769 | ||
5770 | * c-parser.c: Include context.h and gimple-expr.h. | |
5771 | (c_parser_omp_clause_schedule): Parse schedule modifiers, diagnose | |
5772 | monotonic together with nonmonotonic. | |
5773 | (c_parser_omp_for_loop): Call c_omp_check_loop_iv. Call add_stmt here. | |
5774 | (OMP_DISTRIBUTE_CLAUSE_MASK): Add lastprivate clause. | |
5775 | (c_parser_omp_target_data, c_parser_omp_target_enter_data, | |
5776 | c_parser_omp_target_exit_data): Allow GOMP_MAP_ALWAYS_POINTER. | |
5777 | (c_parser_omp_target): Likewise. Evaluate num_teams and thread_limit | |
5778 | expressions on combined target teams before the target. | |
5779 | (c_parser_omp_declare_target): If decl has "omp declare target" or | |
5780 | "omp declare target link" attribute, and cgraph or varpool node already | |
5781 | exists, then set corresponding flags. Call c_finish_omp_clauses | |
5782 | in the parenthesized extended-list syntax case. | |
5783 | * c-decl.c (c_decl_attributes): Don't diagnose block scope vars inside | |
5784 | declare target. | |
5785 | * c-typeck.c (handle_omp_array_sections_1): Allow non-zero low-bound | |
5786 | on OMP_CLAUSE_REDUCTION array sections. | |
5787 | (handle_omp_array_sections): Encode low-bound into the MEM_REF, either | |
5788 | into the constant offset, or for variable low-bound using | |
5789 | POINTER_PLUS_EXPR. For structure element based array sections use | |
5790 | GOMP_MAP_ALWAYS_POINTER instead of GOMP_MAP_FIRSTPRIVATE_POINTER. | |
5791 | (c_finish_omp_clauses): Drop generic_field_head, structure | |
5792 | elements are now always mapped even as array section bases, | |
5793 | diagnose same var in data sharing and mapping clauses. Diagnose if | |
5794 | linear step on declare simd is neither a constant nor a uniform | |
5795 | parameter. Look through POINTER_PLUS_EXPR for array section | |
5796 | reductions. Diagnose the same var or function appearing multiple | |
5797 | times on the same directive. Fix up wording for the to clause if t | |
5798 | is neither a FUNCTION_DECL nor a VAR_DECL. Diagnose nonmonotonic | |
5799 | modifier on kinds other than dynamic or guided or nonmonotonic | |
5800 | modifier together with ordered clause. | |
5801 | ||
4bf9e5a8 TS |
5802 | 2015-11-03 Thomas Schwinge <thomas@codesourcery.com> |
5803 | Chung-Lin Tang <cltang@codesourcery.com> | |
5804 | ||
5805 | * c-parser.c (c_parser_omp_construct): Handle PRAGMA_OACC_ATOMIC. | |
5806 | ||
2adfab87 AM |
5807 | 2015-10-29 Andrew MacLeod <amacleod@redhat.com> |
5808 | ||
5809 | * c-array-notation.c: Reorder #include's and remove duplicates. | |
5810 | * c-aux-info.c: Likewise. | |
5811 | * c-convert.c: Likewise. | |
5812 | * c-decl.c: Likewise. | |
5813 | * c-errors.c: Likewise. | |
5814 | * c-lang.c: Likewise. | |
5815 | * c-objc-common.c: Likewise. | |
5816 | * c-parser.c: Likewise. | |
5817 | * c-typeck.c: Likewise. | |
5818 | ||
e922069e JW |
5819 | 2015-10-26 Jim Wilson <jim.wilson@linaro.org> |
5820 | ||
5821 | PR debug/66068 | |
5822 | * c-typeck.c (c_build_qualified_type): Clear C_TYPE_INCOMPLETE_VARS | |
5823 | after calling build_qualified_type. | |
5824 | ||
765dd391 CP |
5825 | 2015-10-27 Cesar Philippidis <cesar@codesourcery.com> |
5826 | Thomas Schwinge <thomas@codesourcery.com> | |
5827 | James Norris <jnorris@codesourcery.com> | |
5828 | Joseph Myers <joseph@codesourcery.com> | |
5829 | Julian Brown <julian@codesourcery.com> | |
5830 | Bernd Schmidt <bschmidt@redhat.com> | |
5831 | ||
5832 | * c-parser.c (c_parser_oacc_shape_clause): New. | |
5833 | (c_parser_oacc_simple_clause): New. | |
5834 | (c_parser_oacc_all_clauses): Add auto, gang, seq, vector, worker. | |
5835 | (OACC_LOOP_CLAUSE_MASK): Add gang, worker, vector, auto, seq. | |
5836 | ||
88bae6f4 TS |
5837 | 2015-10-27 Thomas Schwinge <thomas@codesourcery.com> |
5838 | James Norris <jnorris@codesourcery.com> | |
5839 | Cesar Philippidis <cesar@codesourcery.com> | |
5840 | ||
5841 | PR c/64765 | |
5842 | PR c/64880 | |
5843 | * c-parser.c (c_parser_oacc_loop): Add mask, cclauses formal | |
5844 | parameters, and handle these. Adjust all users. | |
5845 | (c_parser_oacc_kernels, c_parser_oacc_parallel): Merge functions | |
5846 | into... | |
5847 | (c_parser_oacc_kernels_parallel): ... this new function. Adjust | |
5848 | all users. | |
5849 | * c-tree.h (c_finish_oacc_parallel, c_finish_oacc_kernels): Don't | |
5850 | declare functions. | |
5851 | (c_finish_omp_construct): Declare function. | |
5852 | * c-typeck.c (c_finish_oacc_parallel, c_finish_oacc_kernels): | |
5853 | Merge functions into... | |
5854 | (c_finish_omp_construct): ... this new function. | |
5855 | ||
a8fc2579 RB |
5856 | 2015-10-22 Richard Biener <rguenther@suse.de> |
5857 | ||
5858 | * c-typeck.c (c_finish_omp_clauses): Properly convert operands | |
5859 | before folding a MINUS_EXPR. | |
5860 | ||
e9122ef6 MP |
5861 | 2015-10-21 Marek Polacek <polacek@redhat.com> |
5862 | ||
5863 | PR c/68024 | |
5864 | * c-decl.c (start_function): Warn about vararg functions without | |
5865 | a prototype. | |
5866 | ||
9f47c7e5 IE |
5867 | 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com> |
5868 | ||
5869 | * c-typeck.c (build_conditional_expr): Use boolean vector | |
5870 | type for vector comparison. | |
5871 | (build_vec_cmp): New. | |
5872 | (build_binary_op): Use build_vec_cmp for comparison. | |
5873 | ||
fa60eeb9 MP |
5874 | 2015-10-20 Marek Polacek <polacek@redhat.com> |
5875 | ||
5876 | * c-parser.c (is_cilkplus_vector_p): Don't define here. | |
5877 | ||
2c7020eb MP |
5878 | 2015-10-20 Marek Polacek <polacek@redhat.com> |
5879 | ||
5880 | PR c/67964 | |
5881 | * c-parser.c (c_parser_attributes): Break out of the loop if the | |
5882 | token after an attribute isn't a comma. | |
5883 | ||
d9a6bd32 JJ |
5884 | 2015-10-13 Jakub Jelinek <jakub@redhat.com> |
5885 | Aldy Hernandez <aldyh@redhat.com> | |
5886 | ||
5887 | * c-parser.c (c_parser_pragma): Handle PRAGMA_OMP_ORDERED here. | |
5888 | (c_parser_omp_clause_name): Handle OpenMP 4.5 clauses. | |
5889 | (c_parser_omp_variable_list): Handle structure elements for | |
5890 | map, to and from clauses. Handle array sections in reduction | |
5891 | clause. Formatting fixes. | |
5892 | (c_parser_omp_clause_if): Add IS_OMP argument, handle parsing of | |
5893 | if clause modifiers. | |
5894 | (c_parser_omp_clause_num_tasks, c_parser_omp_clause_grainsize, | |
5895 | c_parser_omp_clause_priority, c_parser_omp_clause_hint, | |
5896 | c_parser_omp_clause_defaultmap, c_parser_omp_clause_use_device_ptr, | |
5897 | c_parser_omp_clause_is_device_ptr): New functions. | |
5898 | (c_parser_omp_clause_ordered): Parse optional parameter. | |
5899 | (c_parser_omp_clause_reduction): Handle array reductions. | |
5900 | (c_parser_omp_clause_schedule): Parse optional simd modifier. | |
5901 | (c_parser_omp_clause_nogroup, c_parser_omp_clause_orderedkind): New | |
5902 | functions. | |
5903 | (c_parser_omp_clause_linear): Parse linear clause modifiers. | |
5904 | (c_parser_omp_clause_depend_sink): New function. | |
5905 | (c_parser_omp_clause_depend): Parse source/sink depend kinds. | |
5906 | (c_parser_omp_clause_map): Parse release/delete map kinds and | |
5907 | optional always modifier. | |
5908 | (c_parser_oacc_all_clauses): Adjust c_parser_omp_clause_if | |
5909 | and c_finish_omp_clauses callers. | |
5910 | (c_parser_omp_all_clauses): Likewise. Parse OpenMP 4.5 clauses. | |
5911 | Parse "to" as OMP_CLAUSE_TO_DECLARE if on declare target directive. | |
5912 | (c_parser_oacc_cache): Adjust c_finish_omp_clauses caller. | |
5913 | (OMP_CRITICAL_CLAUSE_MASK): Define. | |
5914 | (c_parser_omp_critical): Parse critical clauses. | |
5915 | (c_parser_omp_for_loop): Handle doacross loops, adjust | |
5916 | c_finish_omp_for and c_finish_omp_clauses callers. | |
5917 | (OMP_SIMD_CLAUSE_MASK): Add simdlen clause. | |
5918 | (c_parser_omp_simd): Allow ordered clause if it has no parameter. | |
5919 | (OMP_FOR_CLAUSE_MASK): Add linear clause. | |
5920 | (c_parser_omp_for): Disallow ordered clause when combined with | |
5921 | distribute. Disallow linear clause when combined with distribute | |
5922 | and not combined with simd. | |
5923 | (OMP_ORDERED_CLAUSE_MASK, OMP_ORDERED_DEPEND_CLAUSE_MASK): Define. | |
5924 | (c_parser_omp_ordered): Add CONTEXT argument, remove LOC argument, | |
5925 | parse clauses and if depend clause is found, don't parse a body. | |
5926 | (c_parser_omp_parallel): Disallow copyin clause on target parallel. | |
5927 | Allow target parallel without for after it. | |
5928 | (OMP_TASK_CLAUSE_MASK): Add priority clause. | |
5929 | (OMP_TARGET_DATA_CLAUSE_MASK): Add use_device_ptr clause. | |
5930 | (c_parser_omp_target_data): Diagnose no map clauses or clauses with | |
5931 | invalid kinds. | |
5932 | (OMP_TARGET_UPDATE_CLAUSE_MASK): Add depend and nowait clauses. | |
5933 | (OMP_TARGET_ENTER_DATA_CLAUSE_MASK, | |
5934 | OMP_TARGET_EXIT_DATA_CLAUSE_MASK): Define. | |
5935 | (c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): New | |
5936 | functions. | |
5937 | (OMP_TARGET_CLAUSE_MASK): Add depend, nowait, private, firstprivate, | |
5938 | defaultmap and is_device_ptr clauses. | |
5939 | (c_parser_omp_target): Parse target parallel and target simd. Set | |
5940 | OMP_TARGET_COMBINED on combined constructs. Parse target enter data | |
5941 | and target exit data. Diagnose invalid map kinds. | |
5942 | (OMP_DECLARE_TARGET_CLAUSE_MASK): Define. | |
5943 | (c_parser_omp_declare_target): Parse OpenMP 4.5 forms of this | |
5944 | construct. | |
5945 | (c_parser_omp_declare_reduction): Use STRIP_NOPS when checking for | |
5946 | &omp_priv. | |
5947 | (OMP_TASKLOOP_CLAUSE_MASK): Define. | |
5948 | (c_parser_omp_taskloop): New function. | |
5949 | (c_parser_omp_construct): Don't handle PRAGMA_OMP_ORDERED here, | |
5950 | handle PRAGMA_OMP_TASKLOOP. | |
5951 | (c_parser_cilk_for): Adjust c_finish_omp_clauses callers. | |
5952 | * c-tree.h (c_finish_omp_clauses): Add two new arguments. | |
5953 | * c-typeck.c (handle_omp_array_sections_1): Fix comment typo. | |
5954 | Add IS_OMP argument, handle structure element bases, diagnose | |
5955 | bitfields, pass IS_OMP recursively, diagnose known zero length | |
5956 | array sections in depend clauses, handle array sections in reduction | |
5957 | clause, diagnose negative length even for pointers. | |
5958 | (handle_omp_array_sections): Add IS_OMP argument, use auto_vec for | |
5959 | types, pass IS_OMP down to handle_omp_array_sections_1, handle | |
5960 | array sections in reduction clause, set | |
5961 | OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION if map could be zero | |
5962 | length array section, use GOMP_MAP_FIRSTPRIVATE_POINTER for IS_OMP. | |
5963 | (c_finish_omp_clauses): Add IS_OMP and DECLARE_SIMD arguments. | |
5964 | Handle new OpenMP 4.5 clauses and new restrictions for the old ones. | |
5965 | ||
21ba0cea MP |
5966 | 2015-10-06 Marek Polacek <polacek@redhat.com> |
5967 | ||
5968 | * c-parser.c (c_parser_statement_after_labels): Use | |
5969 | protected_set_expr_location. | |
5970 | (c_parser_omp_clause_num_gangs): Likewise. | |
5971 | (c_parser_omp_clause_num_threads): Likewise. | |
5972 | (c_parser_omp_clause_num_workers): Likewise. | |
5973 | (c_parser_omp_clause_vector_length): Likewise. | |
5974 | (c_parser_omp_clause_num_teams): Likewise. | |
5975 | (c_parser_omp_clause_thread_limit): Likewise. | |
5976 | * c-typeck.c (build_c_cast): Likewise. | |
5977 | (c_cast_expr): Likewise. | |
5978 | ||
624d31fe RS |
5979 | 2015-10-05 Richard Sandiford <richard.sandiford@arm.com> |
5980 | ||
5981 | * c-typeck.c (c_tree_equal): Use real_equal instead of | |
5982 | REAL_VALUES_EQUAL. | |
5983 | ||
b8fd7909 JM |
5984 | 2015-10-04 Jason Merrill <jason@redhat.com> |
5985 | ||
5986 | * c-parser.c (c_lex_one_token): Handle @synchronized. | |
5987 | * c-decl.c (match_builtin_function_types): A declaration of a built-in | |
5988 | can change whether the function is transaction_safe. | |
5989 | ||
1c7485af MP |
5990 | 2015-10-02 Marek Polacek <polacek@redhat.com> |
5991 | ||
5992 | PR c/67730 | |
5993 | * c-typeck.c (convert_for_assignment): Use the expansion point | |
5994 | location throughout. | |
5995 | ||
3e3b8d63 MP |
5996 | 2015-10-02 Marek Polacek <polacek@redhat.com> |
5997 | ||
5998 | PR c/64249 | |
5999 | * c-parser.c (c_parser_statement_after_labels): Add CHAIN parameter | |
6000 | and pass it down to c_parser_if_statement. | |
6001 | (c_parser_else_body): Add CHAIN parameter and pass it down to | |
6002 | c_parser_statement_after_labels. | |
6003 | (c_parser_if_statement): Add CHAIN parameter. Add code to warn about | |
6004 | duplicated if-else-if conditions. | |
6005 | ||
aabef2de MP |
6006 | 2015-10-01 Marek Polacek <polacek@redhat.com> |
6007 | ||
6008 | * c-typeck.c (convert_for_assignment): Improve commentary. | |
6009 | ||
de8ddd5f MP |
6010 | 2015-09-30 Marek Polacek <polacek@redhat.com> |
6011 | ||
6012 | PR c/67730 | |
6013 | * c-typeck.c (c_finish_return): Use the expansion point location for | |
6014 | certain "return with value" warnings. | |
6015 | ||
c4914de6 MLI |
6016 | 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org> |
6017 | ||
6018 | * c-parser.c (pragma_lex): Add loc argument. | |
6019 | ||
0e36f5c7 MP |
6020 | 2015-09-15 Marek Polacek <polacek@redhat.com> |
6021 | ||
6022 | PR c/67580 | |
6023 | * c-decl.c (tag_exists_p): New function. | |
6024 | * c-parser.c (c_parser_declaration_or_fndef): Give a hint when | |
6025 | struct/union/enum keywords are missing. | |
6026 | * c-tree.h (tag_exists_p): Declare. | |
6027 | ||
2f3bb934 MP |
6028 | 2015-09-15 Marek Polacek <polacek@redhat.com> |
6029 | ||
6030 | * c-decl.c (lookup_label): Return NULL_TREE instead of 0. | |
6031 | (lookup_tag): Change the type of THISLEVEL_ONLY to bool. | |
6032 | Return NULL_TREE instead of 0. | |
6033 | (lookup_name): Return NULL_TREE instead of 0. | |
6034 | (lookup_name_in_scope): Likewise. | |
6035 | (shadow_tag_warned): Use true instead of 1 and NULL_TREE instead of 0. | |
6036 | (parser_xref_tag): Use false instead of 0. | |
6037 | (start_struct): Use true instead of 1. | |
6038 | (start_enum): Use true instead of 1 and NULL_TREE instead of 0. | |
6039 | ||
aa256c4a MP |
6040 | 2015-09-14 Marek Polacek <polacek@redhat.com> |
6041 | ||
6042 | * c-typeck.c (set_nonincremental_init_from_string): Use | |
6043 | HOST_WIDE_INT_M1U when shifting a negative value. | |
6044 | ||
dbb68221 MW |
6045 | 2015-09-09 Mark Wielaard <mjw@redhat.com> |
6046 | ||
6047 | * c-typeck.c (build_binary_op): Check and warn when nonnull arg | |
6048 | parm against NULL. | |
6049 | ||
a8a098ac JJ |
6050 | 2015-09-10 Jakub Jelinek <jakub@redhat.com> |
6051 | ||
6052 | PR c/67502 | |
6053 | * c-parser.c (c_parser_omp_for_loop): Emit DECL_EXPR stmts | |
6054 | into OMP_FOR_PRE_BODY rather than before the loop. | |
6055 | ||
f4b189d5 JJ |
6056 | 2015-09-09 Jakub Jelinek <jakub@redhat.com> |
6057 | ||
0bb99c11 JJ |
6058 | PR c/67501 |
6059 | * c-parser.c (c_parser_oacc_all_clauses, | |
6060 | c_parser_omp_all_clauses): Remove invalid clause from | |
6061 | list of clauses even if parser->error is set. | |
6062 | ||
fce5e5e3 JJ |
6063 | PR c/67500 |
6064 | * c-parser.c (c_parser_omp_clause_aligned, | |
6065 | c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen): Fix up | |
6066 | test for errors. | |
6067 | * c-decl.c (temp_pop_parm_decls): Allow b->decl equal to | |
6068 | error_mark_node. | |
6069 | ||
f4b189d5 JJ |
6070 | PR c/67495 |
6071 | * c-parser.c (c_parser_omp_atomic): Use c_parser_cast_expression | |
6072 | instead of c_parser_unary_expression. If the result is !lvalue_p, | |
6073 | wrap the result of c_fully_fold into NON_LVALUE_EXPR. | |
6074 | ||
b2aaf235 MP |
6075 | 2015-09-04 Marek Polacek <polacek@redhat.com> |
6076 | ||
6077 | PR sanitizer/67279 | |
6078 | * c-typeck.c (build_binary_op): Don't instrument static initializers. | |
6079 | ||
1807ffc1 MS |
6080 | 2015-09-03 Martin Sebor <msebor@redhat.com> |
6081 | ||
6082 | PR c/66516 | |
8b652e65 JJ |
6083 | * c-typeck.c (convert_arguments, parser_build_unary_op, |
6084 | build_conditional_expr, c_cast_expr, convert_for_assignment, | |
6085 | build_binary_op, _objc_common_truthvalue_conversion): Call | |
1807ffc1 MS |
6086 | reject_gcc_builtin. |
6087 | (c_decl_implicit): Define. | |
6088 | ||
d04ff417 MP |
6089 | 2015-09-02 Marek Polacek <polacek@redhat.com> |
6090 | ||
6091 | PR c/67432 | |
6092 | * c-parser.c (c_parser_enum_specifier): Give a better error for | |
6093 | an empty enum. | |
6094 | ||
a79683d5 TS |
6095 | 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org> |
6096 | ||
6097 | * c-aux-info.c, c-parser.c, c-tree.h: Remove useless typedefs. | |
6098 | ||
191a6b94 MP |
6099 | 2015-08-12 Marek Polacek <polacek@redhat.com> |
6100 | ||
6101 | * c-decl.c (grokdeclarator): Call error_at instead of error and pass | |
6102 | LOC to it. | |
6103 | ||
420a9d9b MP |
6104 | 2015-08-03 Marek Polacek <polacek@redhat.com> |
6105 | ||
6106 | PR c/67088 | |
6107 | * c-decl.c (check_bitfield_type_and_width): Add location parameter. | |
6108 | Use it. | |
6109 | (grokdeclarator): Pass LOC down to check_bitfield_type_and_width. | |
6110 | ||
992118a1 PP |
6111 | 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org> |
6112 | ||
6113 | * c-parser.c (c_parser_if_body): Take token_indent_info | |
6114 | argument. Call warn_for_misleading_indentation even when the | |
6115 | body is a semicolon. Extract token_indent_infos corresponding | |
6116 | to the guard, body and next tokens. Adjust call to | |
6117 | warn_for_misleading_indentation accordingly. | |
6118 | (c_parser_else_body): Likewise. | |
6119 | (c_parser_if_statement): Likewise. | |
6120 | (c_parser_while_statement): Likewise. | |
6121 | (c_parser_for_statement): Likewise. | |
6122 | ||
46308474 LFSM |
6123 | 2015-07-28 Luis Felipe Strano Moraes <luis.strano@gmail.com> |
6124 | Manuel López-Ibáñez <manu@gcc.gnu.org> | |
6125 | ||
6126 | * c-decl.c (get_parm_info): Remove static var. Update warning | |
6127 | message. | |
6128 | ||
05b28fd6 MP |
6129 | 2015-07-27 Marek Polacek <polacek@redhat.com> |
6130 | ||
6131 | PR c++/66555 | |
6132 | PR c/54979 | |
6133 | * c-typeck.c (parser_build_binary_op): Call warn_tautological_cmp. | |
6134 | ||
451b5e48 MP |
6135 | 2015-07-20 Marek Polacek <polacek@redhat.com> |
6136 | ||
6137 | PR c++/55095 | |
6138 | * c-typeck.c (digest_init): Pass OPT_Wpedantic to pedwarn_init. | |
6139 | (build_binary_op): Warn about left shift overflows. | |
6140 | ||
1916bcb5 AM |
6141 | 2015-07-09 Andrew MacLeod <amacleod@redhat.com> |
6142 | ||
6143 | * c-array-notation.c: Adjust includes for flags.h changes. | |
6144 | * c-objc-common.c: Likewise. | |
6145 | ||
c7131fb2 AM |
6146 | 2015-07-07 Andrew MacLeod <amacleod@redhat.com> |
6147 | ||
6148 | * c-array-notation.c: Adjust includes. | |
6149 | * c-aux-info.c: Likewise. | |
6150 | * c-convert.c: Likewise. | |
6151 | * c-decl.c: Likewise. | |
6152 | * c-errors.c: Likewise. | |
6153 | * c-lang.c: Likewise. | |
6154 | * c-objc-common.c: Likewise. | |
6155 | * c-parser.c: Likewise. | |
6156 | * c-typeck.c: Likewise. | |
6157 | ||
da2e71c9 MLI |
6158 | 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org> |
6159 | ||
6160 | PR fortran/66605 | |
6161 | * c-decl.c (finish_function): Call do_warn_unused_parameter. | |
6162 | ||
b155cfd9 MP |
6163 | 2015-06-29 Marek Polacek <polacek@redhat.com> |
6164 | ||
6165 | PR c/66322 | |
6166 | * c-typeck.c (struct c_switch): Add BOOL_COND_P and OUTSIDE_RANGE_P. | |
6167 | (c_start_case): Set BOOL_COND_P and OUTSIDE_RANGE_P. Don't warn | |
6168 | about -Wswitch-bool here. | |
6169 | (do_case): Update c_add_case_label call. | |
6170 | (c_finish_case): Update c_do_switch_warnings call. | |
6171 | ||
31521951 MP |
6172 | 2015-06-27 Marek Polacek <polacek@redhat.com> |
6173 | ||
6174 | * c-typeck.c: Use VECTOR_TYPE_P throughout. | |
6175 | ||
22d03525 MP |
6176 | 2015-06-26 Marek Polacek <polacek@redhat.com> |
6177 | ||
6178 | * c-array-notation.c (fix_builtin_array_notation_fn): Use | |
6179 | INDIRECT_REF_P. | |
6180 | * c-typeck.c (array_to_pointer_conversion): Likewise. | |
6181 | (build_unary_op): Likewise. | |
6182 | (c_finish_return): Likewise. | |
6183 | ||
f0889939 AM |
6184 | 2015-06-25 Andrew MacLeod <amacleod@redhat.com> |
6185 | ||
6186 | * c-decl.c: Remove ipa-ref.h and plugin-api.h from include list. | |
6187 | * c-parser.c: Likewise. | |
6188 | ||
8d67ee55 RS |
6189 | 2015-06-25 Richard Sandiford <richard.sandiford@arm.com> |
6190 | ||
6191 | * c-decl.c (detect_field_duplicates_hash): Use nofree_ptr_hash | |
6192 | instead of pointer_hash. | |
6193 | (detect_field_duplicates): Likewise. | |
6194 | ||
0ae9bd27 MP |
6195 | 2015-06-25 Marek Polacek <polacek@redhat.com> |
6196 | ||
6197 | * c-array-notation.c: Use VAR_P throughout. | |
6198 | * c-decl.c: Likewise. | |
6199 | * c-objc-common.c: Likewise. | |
6200 | * c-parser.c: Likewise. | |
6201 | * c-typeck.c: Likewise. | |
6202 | ||
62f9079a MP |
6203 | 2015-06-25 Marek Polacek <polacek@redhat.com> |
6204 | ||
6205 | * c-decl.c: Use is_global_var throughout. | |
6206 | * c-parser.c: Likewise. | |
6207 | * c-typeck.c: Likewise. | |
6208 | ||
abb226c9 AM |
6209 | 2015-06-17 Andrew MacLeod <amacleod@redhat.com> |
6210 | ||
6211 | * c-array-notation.c: Do not include input.h, line-map.h or is-a.h. | |
6212 | * c-aux-info.c: Likewise. | |
6213 | * c-convert.c: Likewise. | |
6214 | * c-decl.c: Likewise. | |
6215 | * c-errors.c: Likewise. | |
6216 | * c-lang.c: Likewise. | |
6217 | * c-objc-common.c: Likewise. | |
6218 | * c-parser.c: Likewise. | |
6219 | * c-typeck.c: Likewise. | |
6220 | ||
8cbababc JH |
6221 | 2015-06-11 Jan Hubicka <hubicka@ucw.cz> |
6222 | ||
6223 | PR middle-end/66325 | |
6224 | * c-decl.c (start_enum): Set TYPE_PACKED consistently among type | |
6225 | variants. | |
6226 | ||
a0349665 PMR |
6227 | 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com> |
6228 | ||
6229 | * c-decl.c (pop_scope): Register the main translation unit | |
6230 | through the new debug hook. | |
6231 | ||
13fdf2e2 AM |
6232 | 2015-06-08 Andrew MacLeod <amacleod@redhat.com> |
6233 | ||
6234 | * c-array-notation.c : Adjust include files. | |
6235 | * c-aux-info.c : Likewise. | |
6236 | * c-convert.c : Likewise. | |
6237 | * c-decl.c : Likewise. | |
6238 | * c-errors.c : Likewise. | |
6239 | * c-lang.c : Likewise. | |
6240 | * c-lang.h : Likewise. | |
6241 | * c-objc-common.c : Likewise. | |
6242 | * c-parser.c : Likewise. | |
6243 | * c-typeck.c : Likewise. | |
6244 | ||
d7438551 AH |
6245 | 2015-06-05 Aldy Hernandez <aldyh@redhat.com> |
6246 | ||
6247 | * c-decl.c (finish_struct): Save C_TYPE_INCOMPLETE_VARS and | |
6248 | immediately clobber it. | |
6249 | (c_write_global_declarations_1): Remove call to | |
6250 | check_global_declaration_1. | |
6251 | (c_write_global_declarations_2): Remove. | |
6252 | (c_write_final_cleanups): Rename from c_write_global_declarations. | |
6253 | Remove call to finalize_compilation_unit. | |
6254 | Remove calls to debugging hooks. | |
6255 | * c-objc-common.c: Adjust comment for c_warn_unused_global_decl. | |
6256 | * c-objc-common.h: Remove LANG_HOOKS_WRITE_GLOBALS. | |
6257 | * c-tree.h: Remove c_write_global_declarations. | |
6258 | ||
ecb9f223 AM |
6259 | 2015-06-04 Andrew MacLeod <amacleod@redhat.com> |
6260 | ||
6261 | * c-array-notation.c: Adjust includes for restructured coretypes.h. | |
6262 | * c-aux-info.c: Likewise. | |
6263 | * c-convert.c: Likewise. | |
6264 | * c-decl.c: Likewise. | |
6265 | * c-errors.c: Likewise. | |
6266 | * c-lang.c: Likewise. | |
6267 | * c-objc-common.c: Likewise. | |
6268 | * c-parser.c: Likewise. | |
6269 | * c-typeck.c: Likewise. | |
6270 | ||
9482b620 MP |
6271 | 2015-06-04 Marek Polacek <polacek@redhat.com> |
6272 | ||
6273 | PR c/66341 | |
6274 | * c-typeck.c (build_c_cast): Wrap VALUE into NON_LVALUE_EXPR if | |
6275 | it is a lvalue. | |
6276 | ||
bc51ace3 PK |
6277 | 2015-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
6278 | ||
6279 | * c-decl.c (warn_cxx_compat_finish_struct): New parameters code, record_loc. | |
6280 | Warn for empty struct. | |
6281 | (finish_struct): Pass TREE_CODE(t) and loc to warn_cxx_compat_finish_struct. | |
6282 | ||
ea5b45b6 AT |
6283 | 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com> |
6284 | ||
6285 | * c-decl.c (start_function): Call plugin before parsing. | |
6286 | (finish_function): Call plugin after parsing. | |
6287 | ||
c2d47482 PK |
6288 | 2015-06-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
6289 | ||
6290 | PR c/49551 | |
6291 | * c-decl.c (merge_decls): Merge DECL_COMMON. | |
6292 | ||
a95492ab JW |
6293 | 2015-05-22 Jim Wilson <jim.wilson@linaro.org> |
6294 | ||
6295 | * Make-lang.in (check_gcc_pallelize): Define. | |
6296 | ||
fd5c817a MP |
6297 | 2015-05-22 Marek Polacek <polacek@redhat.com> |
6298 | ||
6299 | PR c/47043 | |
6300 | * c-parser.c (c_parser_enum_specifier): Parse and apply enumerator | |
6301 | attributes. | |
6302 | ||
c7b70a3c MP |
6303 | 2015-05-21 Marek Polacek <polacek@redhat.com> |
6304 | ||
6305 | * c-typeck.c (inform_declaration): Use DECL_IS_BUILTIN instead of | |
6306 | DECL_BUILT_IN. | |
6307 | ||
21b634ae MP |
6308 | 2015-05-20 Marek Polacek <polacek@redhat.com> |
6309 | ||
6310 | * c-decl.c: Use VAR_OR_FUNCTION_DECL_P throughout. | |
6311 | * c-typeck.c: Likewise. | |
6312 | ||
296a8c2f MP |
6313 | 2015-05-19 Marek Polacek <polacek@redhat.com> |
6314 | ||
6315 | * c-typeck.c (start_init): Use AGGREGATE_TYPE_P. | |
6316 | ||
41b37d5e JJ |
6317 | 2015-05-19 Jakub Jelinek <jakub@redhat.com> |
6318 | ||
6319 | PR middle-end/66199 | |
6320 | * c-parser.c (c_parser_omp_for_loop): Don't add | |
6321 | OMP_CLAUSE_SHARED to OMP_PARALLEL_CLAUSES when moving | |
6322 | OMP_CLAUSE_LASTPRIVATE clause to OMP_FOR_CLAUSES. | |
6323 | (c_parser_omp_teams): Set OMP_TEAMS_COMBINED for combined | |
6324 | constructs. | |
6325 | ||
fab27f52 MM |
6326 | 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com> |
6327 | ||
6328 | * c-typeck.c (build_array_ref): Use std::swap instead of explicit | |
296a8c2f | 6329 | swaps. |
fab27f52 | 6330 | |
40de31cf MLI |
6331 | 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org> |
6332 | ||
6333 | PR fortran/44054 | |
6334 | * c-objc-common.c (c_tree_printer): Replace locus pointer with | |
6335 | accessor function. | |
6336 | ||
3aa3c9fc MP |
6337 | 2015-05-14 Marek Polacek <polacek@redhat.com> |
6338 | ||
6339 | PR c/66066 | |
6340 | PR c/66127 | |
6341 | * c-typeck.c (digest_init): Call pedwarn_init with OPT_Wpedantic | |
6342 | rather than with 0. | |
6343 | ||
c3388e62 DM |
6344 | 2015-05-12 David Malcolm <dmalcolm@redhat.com> |
6345 | ||
6346 | * c-parser.c (c_parser_if_body): Add param "if_loc", use it | |
6347 | to add a call to warn_for_misleading_indentation. | |
6348 | (c_parser_else_body): Likewise, adding param "else_loc". | |
6349 | (c_parser_if_statement): Check for misleading indentation. | |
6350 | (c_parser_while_statement): Likewise. | |
6351 | (c_parser_for_statement): Likewise. | |
6352 | ||
755e528f MP |
6353 | 2015-05-08 Marek Polacek <polacek@redhat.com> |
6354 | ||
6355 | PR c/64918 | |
6356 | * c-typeck.c (add_pending_init): Use OPT_Woverride_init_side_effects. | |
6357 | (output_init_element): Likewise. | |
6358 | ||
0173bd2a MP |
6359 | 2015-05-07 Marek Polacek <polacek@redhat.com> |
6360 | ||
6361 | PR c/65179 | |
6362 | * c-typeck.c (build_binary_op): Warn when left shifting a negative | |
6363 | value. | |
6364 | ||
9babc352 MP |
6365 | 2015-04-30 Marek Polacek <polacek@redhat.com> |
6366 | ||
6367 | * c-typeck.c (set_init_label): Call error_at instead of error and | |
6368 | pass LOC to it. | |
6369 | ||
ac9f18db MP |
6370 | * c-typeck.c (c_incomplete_type_error): Refactor to use %qT. Print |
6371 | the type of a decl. | |
6372 | ||
ec3fba51 MP |
6373 | * c-typeck.c (c_build_va_arg): Clarify the error message. |
6374 | ||
b811915d TS |
6375 | 2015-04-29 Thomas Schwinge <thomas@codesourcery.com> |
6376 | ||
6377 | * c-parser.c (c_parser_oacc_enter_exit_data): Use | |
6378 | OMP_STANDALONE_CLAUSES. | |
6379 | ||
f3075008 MP |
6380 | 2015-04-28 Marek Polacek <polacek@redhat.com> |
6381 | ||
6382 | * c-parser.c (c_parser_binary_expression): Remove duplicate line. | |
6383 | ||
4e81b788 MP |
6384 | 2015-04-28 Marek Polacek <polacek@redhat.com> |
6385 | ||
6386 | PR c/65901 | |
6387 | * c-typeck.c (c_build_va_arg): Require TYPE be a complete type. | |
6388 | ||
6c1db78e MP |
6389 | 2015-04-25 Marek Polacek <polacek@redhat.com> |
6390 | ||
6391 | PR c/52085 | |
6392 | * c-decl.c (finish_enum): Copy over TYPE_ALIGN. Also check for "mode" | |
6393 | attribute. | |
6394 | ||
5c4abbb8 MP |
6395 | 2015-04-23 Marek Polacek <polacek@redhat.com> |
6396 | ||
6397 | PR c/65345 | |
6398 | * c-decl.c (set_labels_context_r): New function. | |
6399 | (store_parm_decls): Call it via walk_tree_without_duplicates. | |
6400 | * c-typeck.c (convert_lvalue_to_rvalue): Use create_tmp_var_raw | |
6401 | instead of create_tmp_var. Build TARGET_EXPR instead of | |
6402 | COMPOUND_EXPR. | |
6403 | (build_atomic_assign): Use create_tmp_var_raw instead of | |
6404 | create_tmp_var. Build TARGET_EXPRs instead of MODIFY_EXPR. | |
6405 | ||
06aca1d5 IV |
6406 | 2015-04-20 Ilya Verbin <ilya.verbin@intel.com> |
6407 | ||
6408 | * c-parser.c (c_parser_oacc_enter_exit_data): Remove excess semicolon. | |
6409 | (c_parser_omp_target_update): Add missed %> to error_at (). | |
6410 | ||
8fba1830 BRF |
6411 | 2015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org> |
6412 | ||
6413 | PR target/55143 | |
6414 | * c-decl.c (c_default_pointer_mode): Remove definition. | |
6415 | * c-tree.h (c_default_pointer_mode): Remove declaration. | |
6416 | ||
62021f64 TB |
6417 | 2015-03-27 Tobias Burnus <burnus@net-b.de> |
6418 | ||
6419 | PR c/65586 | |
6420 | * c-parser.c (c_parser_skip_to_pragma_eol): Optionally, don't | |
6421 | error out. | |
6422 | (c_parser_omp_for, c_parser_omp_parallel, c_parser_omp_distribute, | |
6423 | c_parser_omp_teams, c_parser_omp_target, c_parser_omp_declare): | |
6424 | Update calls to not error for skipped omp pragmas with -fopenmp-simd. | |
6425 | ||
9b65e171 JJ |
6426 | 2015-03-19 Jakub Jelinek <jakub@redhat.com> |
6427 | ||
6428 | * c-decl.c (c_decl_attributes): Also add "omp declare target" | |
6429 | attribute for DECL_EXTERNAL VAR_DECLs. | |
6430 | ||
17958621 JJ |
6431 | 2015-03-11 Jakub Jelinek <jakub@redhat.com> |
6432 | ||
6433 | * c-parser.c (c_parse_init): Don't call xstrdup on get_identifier | |
6434 | argument. | |
6435 | ||
7ccb1a11 JJ |
6436 | 2015-03-10 Jakub Jelinek <jakub@redhat.com> |
6437 | ||
6438 | PR c/65120 | |
6439 | * c-typeck.c (parser_build_binary_op): Check for tcc_comparison | |
6440 | before preparing arguments to warn_logical_not_parentheses. | |
6441 | ||
01177669 JJ |
6442 | 2015-03-09 Jakub Jelinek <jakub@redhat.com> |
6443 | ||
6444 | PR c/65120 | |
6445 | * c-typeck.c (parser_build_binary_op): Don't warn for | |
6446 | !!x == y or !b == y where b is _Bool. | |
6447 | ||
802ac282 MP |
6448 | 2015-03-09 Marek Polacek <polacek@redhat.com> |
6449 | ||
6450 | * c-convert.c (convert): Make use of do_ubsan_in_current_function. | |
6451 | * c-decl.c (grokdeclarator): Likewise. | |
6452 | * c-typeck.c (build_binary_op): Likewise. | |
6453 | ||
e5165b60 MP |
6454 | 2015-02-27 Marek Polacek <polacek@redhat.com> |
6455 | ||
6456 | PR c/65228 | |
6457 | * c-decl.c (start_decl): Return NULL_TREE if decl is an error node. | |
6458 | ||
065d214c MP |
6459 | 2015-02-14 Marek Polacek <polacek@redhat.com> |
6460 | ||
6461 | PR c/64768 | |
6462 | * c-decl.c (grokdeclarator): Set the range of a flexible array member | |
6463 | declared through a typedef name. | |
6464 | ||
e5d9235b MP |
6465 | 2015-02-13 Marek Polacek <polacek@redhat.com> |
6466 | ||
6467 | PR c/65050 | |
6468 | * c-decl.c (grokdeclarator): Print also the type when giving | |
6469 | the error message about array's incomplete element type. | |
6470 | ||
fa01ffcc JJ |
6471 | 2015-02-11 Jakub Jelinek <jakub@redhat.com> |
6472 | ||
6473 | PR c/64824 | |
6474 | * c-parser.c (c_parser_binary_expression): Fix OpenMP stack[sp].prec | |
6475 | check in the POP macro. | |
6476 | ||
c3e38a03 MP |
6477 | 2015-02-09 Marek Polacek <polacek@redhat.com> |
6478 | ||
6479 | PR c/64856 | |
6480 | * c-typeck.c (process_init_element): Don't always wrap | |
6481 | COMPOUND_LITERAL_EXPR in a SAVE_EXPR in C99 mode when | |
6482 | initializing a range of elements. | |
6483 | ||
4886ec8e JJ |
6484 | 2015-02-04 Jakub Jelinek <jakub@redhat.com> |
6485 | ||
6486 | PR c/64824 | |
6487 | PR c/64868 | |
6488 | * c-parser.c (c_parser_omp_atomic): Handle RDIV_EXPR. | |
6489 | ||
c3e38a03 | 6490 | 2015-02-02 Bruno Loff <bruno.loff@gmail.com> |
a4bb6959 BL |
6491 | |
6492 | * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks after | |
6493 | processing enum declaration. | |
6494 | ||
7b33f0c8 MP |
6495 | 2015-01-29 Marek Polacek <polacek@redhat.com> |
6496 | ||
6497 | PR c/64709 | |
6498 | * c-typeck.c (pop_init_level): If constructor_elements has | |
6499 | exactly one element with integer_zerop value, set constructor_zeroinit | |
6500 | to 1. Remove braces around warning_init call. | |
6501 | ||
dea63e49 JJ |
6502 | 2015-01-27 Jakub Jelinek <jakub@redhat.com> |
6503 | ||
6504 | PR c/64766 | |
6505 | * c-typeck.c (store_init_value): Don't overwrite DECL_INITIAL | |
6506 | of FUNCTION_DECLs with error_mark_node. | |
6507 | ||
d38f7dce JJ |
6508 | 2015-01-26 Jakub Jelinek <jakub@redhat.com> |
6509 | ||
6510 | PR c/64778 | |
6511 | * c-typeck.c (convert_arguments): Return -1 if there are | |
6512 | error_args, even if we've diagnosed too many arguments. | |
6513 | ||
cbf5d0e7 RB |
6514 | 2015-01-21 Richard Biener <rguenther@suse.de> |
6515 | ||
6516 | PR middle-end/64313 | |
6517 | * c-decl.c (merge_decls): Call set_builtin_decl_declared_p | |
6518 | for builtins the user declared correctly. | |
6519 | ||
41dbbb37 TS |
6520 | 2015-01-15 Thomas Schwinge <thomas@codesourcery.com> |
6521 | Bernd Schmidt <bernds@codesourcery.com> | |
6522 | Cesar Philippidis <cesar@codesourcery.com> | |
6523 | James Norris <jnorris@codesourcery.com> | |
6524 | Jakub Jelinek <jakub@redhat.com> | |
6525 | Ilmir Usmanov <i.usmanov@samsung.com> | |
6526 | ||
6527 | * c-parser.c: Include "gomp-constants.h". | |
6528 | (c_parser_omp_clause_map): Use enum gomp_map_kind instead of enum | |
6529 | omp_clause_map_kind. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. | |
6530 | Use OMP_CLAUSE_SET_MAP_KIND. | |
6531 | (c_parser_pragma): Handle PRAGMA_OACC_ENTER_DATA, | |
6532 | PRAGMA_OACC_EXIT_DATA, PRAGMA_OACC_UPDATE. | |
6533 | (c_parser_omp_construct): Handle PRAGMA_OACC_CACHE, | |
6534 | PRAGMA_OACC_DATA, PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, | |
6535 | PRAGMA_OACC_PARALLEL, PRAGMA_OACC_WAIT. | |
6536 | (c_parser_omp_clause_name): Handle "auto", "async", "copy", | |
6537 | "copyout", "create", "delete", "deviceptr", "gang", "host", | |
6538 | "num_gangs", "num_workers", "present", "present_or_copy", "pcopy", | |
6539 | "present_or_copyin", "pcopyin", "present_or_copyout", "pcopyout", | |
6540 | "present_or_create", "pcreate", "seq", "self", "vector", | |
6541 | "vector_length", "wait", "worker". | |
6542 | (OACC_DATA_CLAUSE_MASK, OACC_KERNELS_CLAUSE_MASK) | |
6543 | (OACC_ENTER_DATA_CLAUSE_MASK, OACC_EXIT_DATA_CLAUSE_MASK) | |
6544 | (OACC_LOOP_CLAUSE_MASK, OACC_PARALLEL_CLAUSE_MASK) | |
6545 | (OACC_UPDATE_CLAUSE_MASK, OACC_WAIT_CLAUSE_MASK): New macros. | |
6546 | (c_parser_omp_variable_list): Handle OMP_CLAUSE__CACHE_. | |
6547 | (c_parser_oacc_wait_list, c_parser_oacc_data_clause) | |
6548 | (c_parser_oacc_data_clause_deviceptr) | |
6549 | (c_parser_omp_clause_num_gangs, c_parser_omp_clause_num_workers) | |
6550 | (c_parser_oacc_clause_async, c_parser_oacc_clause_wait) | |
6551 | (c_parser_omp_clause_vector_length, c_parser_oacc_all_clauses) | |
6552 | (c_parser_oacc_cache, c_parser_oacc_data, c_parser_oacc_kernels) | |
6553 | (c_parser_oacc_enter_exit_data, c_parser_oacc_loop) | |
6554 | (c_parser_oacc_parallel, c_parser_oacc_update) | |
6555 | (c_parser_oacc_wait): New functions. | |
6556 | * c-tree.h (c_finish_oacc_parallel, c_finish_oacc_kernels) | |
6557 | (c_finish_oacc_data): New prototypes. | |
6558 | * c-typeck.c: Include "gomp-constants.h". | |
6559 | (handle_omp_array_sections): Handle GOMP_MAP_FORCE_DEVICEPTR. Use | |
6560 | GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use | |
6561 | OMP_CLAUSE_SET_MAP_KIND. | |
6562 | (c_finish_oacc_parallel, c_finish_oacc_kernels) | |
6563 | (c_finish_oacc_data): New functions. | |
6564 | (c_finish_omp_clauses): Handle OMP_CLAUSE__CACHE_, | |
6565 | OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS, | |
6566 | OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, | |
6567 | OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_GANG, | |
6568 | OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, and OMP_CLAUSE_MAP's | |
6569 | GOMP_MAP_FORCE_DEVICEPTR. | |
6570 | ||
adfac8df JJ |
6571 | 2015-01-09 Michael Collison <michael.collison@linaro.org> |
6572 | ||
6573 | * c-array-notation.c: Include hash-set.h, machmode.h, | |
6574 | vec.h, double-int.h, input.h, alias.h, symtab.h, options.h | |
6575 | fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h. | |
6576 | * c-aux-info.c: Ditto. | |
6577 | * c-convert.c: Ditto. | |
6578 | * c-decl.c: Ditto. | |
6579 | * c-errors.c: Ditto. | |
6580 | * c-lang.c: Dittoxs. | |
6581 | * c-objc-common.c: Ditto. | |
6582 | * c-parser.c: Ditto. | |
6583 | * c-typeck.c: Include hash-set.h, machmode.h, | |
6584 | vec.h, double-int.h, input.h, alias.h, symtab.h, options.h | |
6585 | fold-const.h, wide-int.h, inchash.h, real.h and | |
6586 | fixed-value.h due to flattening of tree.h. | |
6587 | ||
2cc901dc MP |
6588 | 2015-01-07 Marek Polacek <polacek@redhat.com> |
6589 | ||
6590 | PR c/64417 | |
6591 | * c-typeck.c (process_init_element): Disallow initialization of | |
6592 | a flexible array member with a string constant if the structure | |
6593 | is in an array. | |
6594 | ||
5624e564 JJ |
6595 | 2015-01-05 Jakub Jelinek <jakub@redhat.com> |
6596 | ||
e5341100 JJ |
6597 | PR sanitizer/64344 |
6598 | * c-typeck.c (convert_for_assignment, c_finish_return): For | |
6599 | -fsanitize=float-cast-overflow casts from REAL_TYPE to integer/enum | |
6600 | types also set in_late_binary_op around convert call. | |
6601 | * c-convert.c (convert): For -fsanitize=float-cast-overflow REAL_TYPE | |
6602 | to integral type casts, if not in_late_binary_op, pass c_fully_fold | |
6603 | result on expr as last argument to ubsan_instrument_float_cast, | |
6604 | if in_late_binary_op, don't use c_save_expr but save_expr. | |
6605 | ||
5624e564 JJ |
6606 | Update copyright years. |
6607 | ||
5bd012f8 MP |
6608 | 2015-01-05 Marek Polacek <polacek@redhat.com> |
6609 | ||
6610 | PR c/64423 | |
6611 | * c-typeck.c (build_array_ref): Pass loc down to | |
6612 | warn_array_subscript_with_type_char. | |
6613 | ||
3f8257db | 6614 | 2014-12-20 Martin Uecker <uecker@eecs.berkeley.edu> |
768952be MU |
6615 | |
6616 | * c-typeck.c: New behavious for pointers to arrays with qualifiers | |
8e745a17 | 6617 | (common-pointer-type): For pointers to arrays take qualifiers from |
768952be | 6618 | element type. |
8e745a17 | 6619 | (build_conditional_expr): Add warnings for lost qualifiers. |
768952be | 6620 | (comp-target-types): Allow pointers to arrays with different qualifiers. |
8e745a17 | 6621 | (convert-for-assignment): Adapt warnings for discarded qualifiers. Add |
768952be | 6622 | WARNING_FOR_QUALIFIERS macro and rename WARN_FOR_QUALIFIERS |
8e745a17 | 6623 | to PEDWARN_FOR_QUALIFIERS. |
768952be | 6624 | |
8f94a8c4 JJ |
6625 | 2014-12-17 Jakub Jelinek <jakub@redhat.com> |
6626 | ||
6627 | PR sanitizer/64289 | |
6628 | * c-convert.c: Include ubsan.h. | |
6629 | (convert): For real -> integral casts and | |
6630 | -fsanitize=float-cast-overflow don't call convert_to_integer, but | |
6631 | instead instrument the float cast directly. | |
6632 | ||
b731b390 JJ |
6633 | 2014-11-29 Jakub Jelinek <jakub@redhat.com> |
6634 | ||
6635 | * c-typeck.c (convert_lvalue_to_rvalue, build_atomic_assign, | |
6636 | c_finish_stmt_expr): Remove NULL last argument from | |
6637 | create_tmp_var_raw and create_tmp_var calls. | |
6638 | * c-array-notation.c (fix_builtin_array_notation_fn, | |
6639 | build_array_notation_expr, fix_conditional_array_notations_1, | |
6640 | fix_array_notation_expr, fix_array_notation_call_expr): Likewise. | |
6641 | ||
541e35a6 MP |
6642 | 2014-11-28 Marek Polacek <polacek@redhat.com> |
6643 | ||
6644 | PR c/63862 | |
6645 | * c-typeck.c (build_binary_op) <RSHIFT_EXPR, LSHIFT_EXPR>: Don't | |
6646 | convert the right operand to integer type. | |
6647 | ||
b286be94 MP |
6648 | 2014-11-25 Marek Polacek <polacek@redhat.com> |
6649 | ||
6650 | PR c/63877 | |
6651 | * c-decl.c (start_function): Disable -Wmissing-declarations warning | |
6652 | for inline functions. | |
6653 | ||
aa7da51a JJ |
6654 | 2014-11-21 Jakub Jelinek <jakub@redhat.com> |
6655 | ||
6656 | PR target/63764 | |
6657 | * c-typeck.c (build_array_ref): Adjust | |
6658 | convert_vector_to_pointer_for_subscript caller. If it returns true, | |
6659 | call non_lvalue_loc on the result. | |
6660 | ||
d876207f RB |
6661 | 2014-11-11 Richard Biener <rguenther@suse.de> |
6662 | ||
6663 | * c-decl.c (c_init_decl_processing): Do not set pedantic_lvalues | |
6664 | to true. | |
6665 | ||
e5e44252 AK |
6666 | 2014-11-10 Andi Kleen <ak@linux.intel.com> |
6667 | ||
6668 | PR c/60804 | |
6669 | * c-parser.c (c_parser_statement_after_labels): Call | |
6670 | check_no_cilk. | |
6671 | (c_parser_if_statement): Dito. | |
6672 | (c_parser_switch_statement): Dito. | |
6673 | (c_parser_while_statement): Dito. | |
6674 | (c_parser_do_statement): Dito. | |
6675 | (c_parser_for_statement): Dito. | |
6676 | * c-typeck.c (c_finish_loop): Dito. | |
6677 | ||
13c21655 PC |
6678 | 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com> |
6679 | ||
6680 | * c-typeck.c (build_binary_op): Use OPT_Wshift_count_negative and | |
6681 | OPT_Wshift_count_overflow in the warnings. | |
6682 | ||
2d51fcef MP |
6683 | 2014-10-30 Marek Polacek <polacek@redhat.com> |
6684 | ||
6685 | * c-objc-common.c (c_tree_printer) <case 'T'>: For a typedef name, | |
6686 | print the stripped version as well, if they're not the same. | |
6687 | ||
ef4bddc2 RS |
6688 | 2014-10-29 Richard Sandiford <richard.sandiford@arm.com> |
6689 | ||
6690 | * c-decl.c, c-tree.h, c-typeck.c: Remove redundant enum from | |
6691 | machine_mode. | |
6692 | ||
c582198b AM |
6693 | 2014-10-28 Andrew MacLeod <amacleod@redhat.com> |
6694 | ||
6695 | * c-decl.c: Adjust include files. | |
6696 | * c-parser.c: Ditto. | |
6697 | ||
ddc8de03 PM |
6698 | 2014-10-27 Phil Muldoon <pmuldoon@redhat.com> |
6699 | Tom Tromey <tromey@redhat.com> | |
6700 | ||
6701 | * c-tree.h (enum c_oracle_request): New. | |
6702 | (c_binding_oracle_function): New typedef. | |
6703 | (c_binding_oracle, c_pushtag, c_bind): Declare. | |
6704 | * c-decl.c (c_binding_oracle): New global. | |
6705 | (I_SYMBOL_CHECKED): New macro. | |
6706 | (i_symbol_binding): New function. | |
6707 | (I_SYMBOL_BINDING, I_SYMBOL_DECL): Redefine. | |
6708 | (I_TAG_CHECKED): New macro. | |
6709 | (i_tag_binding): New function. | |
6710 | (I_TAG_BINDING, I_TAG_DECL): Redefine. | |
6711 | (I_LABEL_CHECKED): New macro. | |
6712 | (i_label_binding): New function. | |
6713 | (I_LABEL_BINDING, I_LABEL_DECL): Redefine. | |
6714 | (c_print_identifier): Save and restore c_binding_oracle. | |
6715 | (c_pushtag, c_bind): New functions. | |
6716 | ||
60393bbc AM |
6717 | 2014-10-27 Andrew MacLeod <amacleod@redhat.com> |
6718 | ||
6719 | * c-typeck.c: Adjust include files. | |
6720 | ||
d723bb7c MLI |
6721 | 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org> |
6722 | ||
6723 | PR c++/53061 | |
6724 | * c-objc-common.c (c_objc_common_init): Do not do diagnostics | |
6725 | initialization here... | |
6726 | (c_initialize_diagnostics): ... but here. Set defaults after | |
6727 | building pretty-printer. | |
6728 | ||
1bc5a451 MP |
6729 | 2014-10-23 Marek Polacek <polacek@redhat.com> |
6730 | ||
6731 | PR c/63626 | |
6732 | * c-decl.c (pop_scope): Don't print warning in external_scope. | |
6733 | ||
4435bb92 MP |
6734 | 2014-10-19 Marek Polacek <polacek@redhat.com> |
6735 | ||
6736 | PR c/63567 | |
6737 | * c-typeck.c (output_init_element): Allow initializing objects with | |
6738 | static storage duration with compound literals even in C99 and add | |
6739 | pedwarn for it. | |
6740 | ||
7278465e MP |
6741 | 2014-10-17 Marek Polacek <polacek@redhat.com> |
6742 | ||
6743 | PR c/63567 | |
6744 | * c-typeck.c (digest_init): Allow initializing objects with static | |
6745 | storage duration with compound literals even in C99 and add pedwarn | |
6746 | for it. | |
6747 | ||
d9b7be2e MP |
6748 | 2014-10-17 Marek Polacek <polacek@redhat.com> |
6749 | ||
6750 | PR c/63543 | |
6751 | * c-tree.h (C_TYPE_ERROR_REPORTED): Define. | |
6752 | * c-typeck.c (build_indirect_ref): Don't print the "dereferencing..." | |
6753 | error multiple times. Print the type. | |
6754 | ||
f406ae1f MP |
6755 | 2014-10-17 Marek Polacek <polacek@redhat.com> |
6756 | ||
6757 | PR c/63549 | |
6758 | * c-typeck.c (build_array_ref): Bail if the index in an incomplete | |
6759 | type. | |
6760 | ||
92574c7c MP |
6761 | 2014-10-17 Marek Polacek <polacek@redhat.com> |
6762 | ||
6763 | * c-decl.c (grokdeclarator): Use OPT_Wimplicit_int unconditionally. | |
6764 | (start_function): Use OPT_Wimplicit_int instead of 0. | |
6765 | (store_parm_decls_oldstyle): Likewise. | |
6766 | ||
1bc4a978 MT |
6767 | 2014-10-17 Alan Modra <amodra@gmail.com> |
6768 | ||
6769 | PR middle-end/61848 | |
6770 | * c-decl.c (merge_decls): Don't merge section name or tls model | |
6771 | to newdecl symtab node, instead merge to olddecl. Override | |
6772 | existing olddecl section name. Set tls_model for all thread-local | |
6773 | vars, not just OMP thread-private ones. Remove incorrect comment. | |
6774 | ||
83685514 AM |
6775 | 2014-10-16 Andrew MacLeod <amacleod@redhat.com> |
6776 | ||
6777 | * c-decl.c: Adjust include files. | |
6778 | ||
78a7c317 DD |
6779 | 2014-10-14 DJ Delorie <dj@redhat.com> |
6780 | ||
6781 | * c-parser.c (c_parse_init): Add RID entries for each __intN. | |
6782 | (c_token_starts_typename): Check all __intN, not just __int128. | |
6783 | (c_token_starts_declspecs): Likewise. | |
6784 | (c_parser_declspecs): Likewise. | |
6785 | (c_parser_attribute_any_word): Likewise. | |
6786 | (c_parser_objc_selector): Likewise. | |
6787 | * c-tree.h (c_typespec_keyword): cts_int128 -> cts_int_n. | |
6788 | (struct c_declspecs): Add int_n_idx field to record *which* __intN | |
6789 | is specified. | |
6790 | * c-decl.c (declspecs_add_type): Check for all __intN, not just | |
6791 | __int128. | |
6792 | (finish_declspecs): Likewise. | |
6793 | ||
74d98c1e AB |
6794 | 2014-10-13 Anthony Brandon <anthony.brandon@gmail.com> |
6795 | ||
8e745a17 | 6796 | * c-parser.c (c_parser_all_labels): New function to replace |
74d98c1e | 6797 | the duplicate code. |
8e745a17 | 6798 | (c_parser_statement): Call the new function. |
74d98c1e | 6799 | |
84937de2 MP |
6800 | 2014-10-09 Marek Polacek <polacek@redhat.com> |
6801 | ||
6802 | PR c/63480 | |
6803 | * c-typeck.c (pop_init_level): Don't warn about initializing | |
6804 | with { }. | |
6805 | ||
0382aaa0 MP |
6806 | 2014-10-07 Marek Polacek <polacek@redhat.com> |
6807 | ||
6808 | PR c/59717 | |
6809 | * c-decl.c (header_for_builtin_fn): New function. | |
6810 | (implicitly_declare): Suggest which header to include. | |
6811 | ||
7a0ca710 MP |
6812 | 2014-10-07 Marek Polacek <polacek@redhat.com> |
6813 | ||
6814 | * c-convert.c (convert): Use error_operand_p. | |
6815 | * c-typeck.c (require_complete_type): Likewise. | |
6816 | (really_atomic_lvalue): Likewise. | |
6817 | (digest_init): Likewise. | |
6818 | (handle_omp_array_sections_1): Likewise. | |
6819 | ||
6bc8a126 MP |
6820 | 2014-10-03 Marek Polacek <polacek@redhat.com> |
6821 | ||
6822 | PR c/63453 | |
6823 | * c-decl.c (pop_scope): Don't warn about "inline function declared | |
6824 | but never defined" for functions marked with gnu_inline attribute. | |
6825 | ||
d90c0a59 JJ |
6826 | 2014-09-25 Jakub Jelinek <jakub@redhat.com> |
6827 | ||
6828 | PR c++/63249 | |
6829 | * c-parser.c (c_parser_omp_variable_list): Call mark_exp_read | |
6830 | on low_bound and length. | |
6831 | ||
083e891e MP |
6832 | 2014-09-24 Marek Polacek <polacek@redhat.com> |
6833 | ||
6834 | PR c/61405 | |
6835 | PR c/53874 | |
6836 | * c-parser.c: Don't define CPP_KEYWORD. | |
6837 | (c_parser_switch_statement): Pass original type to c_finish_case. | |
6838 | * c-tree.h (c_finish_case): Update declaration. | |
6839 | * c-typeck.c (c_finish_case): Add TYPE parameter. Pass it | |
6840 | conditionally to c_do_switch_warnings. | |
6841 | ||
8d95fe25 MP |
6842 | 2014-09-03 Marek Polacek <polacek@redhat.com> |
6843 | ||
6844 | PR c/62024 | |
6845 | * c-parser.c (c_parser_static_assert_declaration_no_semi): Strip no-op | |
6846 | conversions. | |
6847 | ||
9a771876 JJ |
6848 | 2014-09-02 Jakub Jelinek <jakub@redhat.com> |
6849 | Balaji V. Iyer <balaji.v.iyer@intel.com> | |
6850 | Igor Zamyatin <igor.zamyatin@intel.com> | |
6851 | ||
6852 | * c-parser.c (c_parser_cilk_for): New function. | |
6853 | (c_parser_cilk_grainsize): Likewise. | |
6854 | (c_get_temp_regvar): Likewise. | |
6855 | (c_parser_statement_after_labels): Added RID_CILK_FOR case. | |
6856 | (c_parser_pragma): Added PRAGMA_CILK_GRAINSIZE case. | |
6857 | (c_parser_omp_for_loop): Added CILK_FOR and CILK_SIMD checks. | |
6858 | * c-typeck.c (c_finish_omp_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ | |
6859 | case. | |
6860 | ||
b7679d96 CG |
6861 | 2014-08-27 Chen Gang <gang.chen.5i5j@gmail.com> |
6862 | ||
6863 | * c-aux-info.c (gen_type): Resize 'buff' from 10 to 23 bytes, | |
6864 | with using HOST_WIDE_INT without truncation to 'int' | |
6865 | ||
59ea0364 MP |
6866 | 2014-08-22 Marek Polacek <polacek@redhat.com> |
6867 | ||
6868 | PR c++/62199 | |
6869 | * c-typeck.c (parser_build_binary_op): Adjust call to | |
6870 | warn_logical_not_parentheses. | |
6871 | ||
671a475e IZ |
6872 | 2014-08-22 Igor Zamyatin <igor.zamyatin@intel.com> |
6873 | ||
6874 | PR other/62008 | |
6875 | * c-parser.c (c_parser_array_notation): Check for correct | |
6876 | type of an array added. | |
6877 | ||
04159acf MP |
6878 | 2014-08-19 Marek Polacek <polacek@redhat.com> |
6879 | ||
6880 | PR c++/62153 | |
6881 | * c-typeck.c (build_binary_op): If either operand of a comparison | |
6882 | is a boolean expression, call maybe_warn_bool_compare. | |
6883 | ||
c77935ee PP |
6884 | 2014-08-19 Patrick Palka <ppalka@gcc.gnu.org> |
6885 | ||
6886 | PR c/45584 | |
6887 | * c-typeck.c (build_c_cast): Do a conversion even when the | |
6888 | TYPE_MAIN_VARIANTs are the same. | |
6889 | ||
35aff4fb MP |
6890 | 2014-08-19 Marek Polacek <polacek@redhat.com> |
6891 | ||
6892 | * c-decl.c (diagnose_mismatched_decls): Unconditionally call | |
6893 | pedwarn_c99 instead of pedwarn. | |
6894 | (grokfield): Likewise. | |
6895 | (warn_defaults_to): New function. | |
6896 | (grokdeclarator): Call warn_defaults_to instead of pedwarn_c99. | |
6897 | Unconditionally call pedwarn_c99 instead of pedwarn. | |
6898 | (start_function): Call warn_defaults_to instead of pedwarn_c99. | |
6899 | (declspecs_add_scspec): Call pedwarn_c99 instead of pedwarn, don't | |
6900 | check flag_isoc11 before. | |
6901 | * c-errors.c (pedwarn_c99): Change the return type to bool. | |
6902 | Handle -Wc99-c11-compat. | |
6903 | * c-parser.c (disable_extension_diagnostics): Handle | |
6904 | warn_c99_c11_compat. | |
6905 | (restore_extension_diagnostics): Likewise. | |
6906 | (c_parser_static_assert_declaration_no_semi): Call pedwarn_c99 | |
6907 | instead of pedwarn, don't check flag_isoc11 before. | |
6908 | (c_parser_declspecs): Likewise. | |
6909 | (c_parser_alignas_specifier): Likewise. | |
6910 | (c_parser_alignof_expression): Likewise. | |
6911 | (c_parser_generic_selection): Likewise. | |
6912 | * c-tree.h (pedwarn_c99): Update declaration. | |
6913 | * c-typeck.c (c_finish_return): Call pedwarn or warning_at instead | |
6914 | of pedwarn_c99. | |
6915 | ||
177cce46 MP |
6916 | 2014-08-19 Marek Polacek <polacek@redhat.com> |
6917 | ||
6918 | * c-decl.c (warn_variable_length_array): Pass OPT_Wvla unconditionally | |
6919 | to pedwarn_c90. | |
6920 | * c-errors.c: Include "opts.h". | |
6921 | (pedwarn_c90): Rewrite to handle -Wno-c90-c99-compat better. | |
6922 | * c-parser.c (disable_extension_diagnostics): Handle negative value | |
6923 | of warn_c90_c99_compat, too. | |
6924 | (restore_extension_diagnostics): Likewise. | |
6925 | (c_parser_compound_statement_nostart): Pass | |
6926 | OPT_Wdeclaration_after_statement unconditionally to pedwarn_c90. | |
6927 | ||
6dc99c33 MP |
6928 | 2014-08-12 Marek Polacek <polacek@redhat.com> |
6929 | ||
6930 | * c-parser.c (c_parser_postfix_expression) <case RID_FUNCTION_NAME>: | |
6931 | Add pedwarn. | |
6932 | (c_parser_postfix_expression) <case RID_PRETTY_FUNCTION_NAME>: | |
6933 | Likewise. | |
6934 | (c_parser_postfix_expression) <case RID_C99_FUNCTION_NAME>: Likewise. | |
6935 | ||
3f8257db | 6936 | 2014-08-10 Marek Polacek <polacek@redhat.com> |
f3bede71 MP |
6937 | |
6938 | PR c/51849 | |
6939 | * c-decl.c (build_array_declarator): Remove check for !flag_isoc99. | |
6940 | Call pedwarn_c90 instead of pedwarn. | |
6941 | (check_bitfield_type_and_width): Likewise. | |
6942 | (declspecs_add_qual): Likewise. | |
6943 | (declspecs_add_type): Likewise. | |
6944 | (warn_variable_length_array): Unify function for -pedantic and -Wvla. | |
6945 | Adjust to only call pedwarn_c90. | |
6946 | (grokdeclarator): Remove pedantic && !flag_isoc99 check. Call | |
6947 | pedwarn_c90 instead of pedwarn. | |
6948 | * c-errors.c (pedwarn_c90): Handle -Wc90-c99-compat. | |
6949 | * c-parser.c (disable_extension_diagnostics): Handle | |
6950 | warn_c90_c99_compat. | |
6951 | (restore_extension_diagnostics): Likewise. | |
6952 | (c_parser_enum_specifier): Remove check for !flag_isoc99. Call | |
6953 | pedwarn_c90 instead of pedwarn. | |
6954 | (c_parser_initelt): Likewise. | |
6955 | (c_parser_postfix_expression): Likewise. | |
6956 | (c_parser_postfix_expression_after_paren_type): Likewise. | |
6957 | (c_parser_compound_statement_nostart): Remove check for !flag_isoc99. | |
6958 | * c-tree.h: Fix formatting. | |
6959 | * c-typeck.c (build_array_ref): Remove check for !flag_isoc99. Call | |
6960 | pedwarn_c90 instead of pedwarn. | |
6961 | ||
9f25a338 TS |
6962 | 2014-08-07 Trevor Saunders <tsaunders@mozilla.com> |
6963 | ||
6964 | * c-typeck.c: Remove include of pointer-set.h. | |
6965 | ||
044331a8 MP |
6966 | 2014-08-07 Marek Polacek <polacek@redhat.com> |
6967 | ||
6968 | * c-typeck.c (pointer_diff): Remove P - (P + CST) optimization. | |
6969 | ||
b787e7a2 TS |
6970 | 2014-08-02 Trevor Saunders <tsaunders@mozilla.com> |
6971 | ||
6972 | * c-typeck.c: Use hash_map instead of pointer_map. | |
6973 | ||
6e2830c3 TS |
6974 | 2014-08-02 Trevor Saunders <tsaunders@mozilla.com> |
6975 | ||
6976 | * c-decl.c: Use hash_set instead of pointer_set. | |
6977 | ||
a7ee52fb IZ |
6978 | 2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com> |
6979 | ||
6980 | PR middle-end/61455 | |
6981 | * c-array-notation.c (expand_array_notations): Handling | |
6982 | of DECL_EXPR added. | |
6983 | ||
b4dfdc11 MG |
6984 | 2014-07-31 Marc Glisse <marc.glisse@inria.fr> |
6985 | ||
6986 | PR c++/60517 | |
6987 | * c-typeck.c (c_finish_return): Return 0 instead of the address of | |
6988 | a local variable. | |
6989 | ||
976d5a22 TT |
6990 | 2014-07-30 Tom Tromey <tromey@redhat.com> |
6991 | ||
6992 | * c-typeck.c (struct constructor_stack) <designator_depth>: New | |
6993 | field. | |
6994 | (really_start_incremental_init, push_init_level): Initialize | |
6995 | designator_depth. | |
6996 | (pop_init_level): Set global designator_depth. | |
6997 | (process_init_element): Check for designated_init attribute. | |
6998 | ||
30281de2 MP |
6999 | 2014-07-20 Marek Polacek <polacek@redhat.com> |
7000 | ||
7001 | PR c/61852 | |
7002 | * c-decl.c (implicit_decl_warning): Add location_t parameter. Use it. | |
7003 | (implicitly_declare): Pass location to implicit_decl_warning. | |
7004 | ||
b108f48f JJ |
7005 | 2014-07-14 Jakub Jelinek <jakub@redhat.com> |
7006 | ||
7007 | PR middle-end/61294 | |
7008 | * c-parser.c (c_parser_expr_list): Add new argument literal_zero_mask. | |
7009 | If non-NULL, call c_parser_check_literal_zero. | |
7010 | (c_parser_check_literal_zero): New function. | |
7011 | (c_parser_postfix_expression_after_primary): Adjust | |
7012 | c_parser_expr_list caller, handle -Wmemset-transposed-args. | |
7013 | ||
773ec47f MP |
7014 | 2014-07-06 Marek Polacek <polacek@redhat.com> |
7015 | ||
7016 | PR c/6940 | |
7017 | * c-decl.c (grokdeclarator): Set C_ARRAY_PARAMETER. | |
7018 | * c-tree.h (C_ARRAY_PARAMETER): Define. | |
7019 | * c-typeck.c (c_expr_sizeof_expr): Warn when using sizeof on an array | |
7020 | function parameter. | |
7021 | ||
22e1cf1c | 7022 | 2014-07-02 Jan Hubicka <hubicka@ucw.cz> |
3f8257db | 7023 | Chen Gang <gang.chen.5i5j@gmail.com> |
22e1cf1c JH |
7024 | |
7025 | * c-decl.c (duplicate_decls): CLear DECL_STRUCT_FUNCTION before | |
7026 | releasing symbol. | |
7027 | ||
52ec0ea3 MP |
7028 | 2014-07-01 Marek Polacek <polacek@redhat.com> |
7029 | ||
7030 | * c-typeck.c (convert_for_assignment): Pass OPT_Wint_conversion | |
7031 | instead of 0 to WARN_FOR_ASSIGNMENT. | |
7032 | ||
d5c3d343 MP |
7033 | 2014-07-01 Marek Polacek <polacek@redhat.com> |
7034 | ||
7035 | PR c/58286 | |
7036 | * c-typeck.c (convert_for_assignment): Pass | |
7037 | OPT_Wincompatible_pointer_types instead of 0 to WARN_FOR_ASSIGNMENT. | |
7038 | ||
6a7253a4 MP |
7039 | 2014-06-30 Marek Polacek <polacek@redhat.com> |
7040 | ||
7041 | * c-decl.c (grokdeclarator): Don't instrument VLAs if the function | |
7042 | has no_sanitize_undefined attribute. | |
7043 | ||
5e88a8f4 IZ |
7044 | 2014-06-30 Igor Zamyatin <igor.zamyatin@intel.com> |
7045 | ||
7046 | PR middle-end/57541 | |
7047 | * c-array-notation.c (fix_builtin_array_notation_fn): | |
7048 | Check for 0 arguments in builtin call. Check that bultin argument is | |
7049 | correct. | |
7050 | * c-parser.c (c_parser_array_notation): Check for incorrect initial | |
7051 | index. | |
7052 | ||
9698b078 SH |
7053 | 2014-06-27 Sebastian Huber <sebastian.huber@embedded-brains.de> |
7054 | ||
7055 | * c-parser.c (c_parser_declaration_or_fndef): Discard all type | |
7056 | qualifiers in __auto_type for atomic types. | |
7057 | (c_parser_typeof_specifier): Discard all type qualifiers in | |
7058 | __typeof__ for atomic types. | |
7059 | ||
6e07c515 MP |
7060 | 2014-06-25 Marek Polacek <polacek@redhat.com> |
7061 | ||
7062 | PR c/61162 | |
7063 | * c-parser.c (c_parser_statement_after_labels): Pass the location of | |
7064 | the return expression to c_finish_return. | |
7065 | ||
da6f124d JJ |
7066 | 2014-06-25 Jakub Jelinek <jakub@redhat.com> |
7067 | ||
7068 | * c-typeck.c (c_finish_omp_clauses): Make sure | |
7069 | OMP_CLAUSE_LINEAR_STEP has correct type. | |
7070 | ||
c203e8a7 TS |
7071 | 2014-06-24 Trevor Saunders <tsaunders@mozilla.com> |
7072 | ||
7073 | * c-decl.c: Adjust. | |
7074 | ||
56ad0e38 JJ |
7075 | 2014-06-24 Jakub Jelinek <jakub@redhat.com> |
7076 | ||
7077 | * c-parser.c (c_parser_omp_for_loop): For | |
7078 | #pragma omp parallel for simd move lastprivate clause from parallel | |
7079 | to for rather than simd. | |
7080 | ||
47c2554f MP |
7081 | 2014-06-23 Marek Polacek <polacek@redhat.com> |
7082 | ||
7083 | * c-typeck.c (parser_build_binary_op): Don't call | |
7084 | warn_logical_not_parentheses if the RHS is TRUTH_NOT_EXPR. | |
7085 | ||
56363ffd JH |
7086 | 2014-06-15 Jan Hubicka <hubicka@ucw.cz> |
7087 | ||
7088 | * c-parser.c (c_parser_omp_threadprivate): Likewise. | |
7089 | * c-decl.c (merge_decls): Likewise. | |
7090 | ||
d7ff7ae5 MP |
7091 | 2014-06-09 Marek Polacek <polacek@redhat.com> |
7092 | ||
7093 | PR c/36446 | |
7094 | * c-typeck.c (error_init): Call inform instead of error_at. | |
7095 | (pedwarn_init): Call inform instead of pedwarn. | |
7096 | (warning_init): Call inform instead of warning_at. | |
7097 | ||
24d047a3 JH |
7098 | 2014-06-07 Jan Hubicka <hubicka@ucw.cz> |
7099 | ||
7100 | * c-decl.c (merge_decls): Use set_decl_section_name. | |
7101 | (duplicate_decls): Remove node if it exists. | |
7102 | ||
9bac5cbb G |
7103 | 2014-06-05 S. Gilles <sgilles@terpmail.umd.edu> |
7104 | ||
7105 | PR c/53119 | |
7106 | * c-typeck.c (push_init_level, process_init_element, | |
7107 | pop_init_level): Correct check for zero initialization, move | |
7108 | missing brace warning to respect zero initialization. | |
7109 | ||
8ffcdea8 MP |
7110 | 2014-06-05 Marek Polacek <polacek@redhat.com> |
7111 | ||
7112 | PR c/56724 | |
7113 | * c-typeck.c (convert_for_assignment): Use expr_loc for ic_argpass. | |
7114 | ||
742938c9 MP |
7115 | 2014-06-05 Marek Polacek <polacek@redhat.com> |
7116 | ||
7117 | PR c/49706 | |
7118 | * c-typeck.c (parser_build_binary_op): Warn when logical not is used | |
ab20d992 | 7119 | on the left hand side operand of a comparison. |
742938c9 | 7120 | |
6447c55d MP |
7121 | 2014-06-05 Marek Polacek <polacek@redhat.com> |
7122 | ||
7123 | PR c/48062 | |
7124 | * c-decl.c (warn_if_shadowing): Call inform instead of warning_at. | |
7125 | Print note only if the warning was printed. | |
7126 | ||
9dc7743c IZ |
7127 | 2014-06-04 Igor Zamyatin <igor.zamyatin@intel.com> |
7128 | ||
7129 | PR c/58942 | |
7130 | * c-array-notation.c (fix_builtin_array_notation_fn): Handle the case | |
7131 | with a pointer. | |
7132 | ||
fedfecef MP |
7133 | 2014-06-03 Marek Polacek <polacek@redhat.com> |
7134 | ||
7135 | PR c/60439 | |
7136 | * c-parser.c (c_parser_switch_statement): Pass explicit_cast_p to | |
7137 | c_start_case. | |
7138 | * c-tree.h (c_start_case): Update. | |
7139 | * c-typeck.c (c_start_case): Add new boolean parameter. Warn if | |
7140 | switch condition has boolean value. | |
7141 | ||
9b2b7279 AM |
7142 | 2014-06-02 Andrew MacLeod <amacleod@redhat.com> |
7143 | ||
7144 | * c-decl.c: Include builtins.h. | |
7145 | * c-parser.c: Likewise. | |
7146 | ||
5c1bc275 MP |
7147 | 2014-05-27 Marek Polacek <polacek@redhat.com> |
7148 | ||
7149 | PR c/56724 | |
7150 | * c-typeck.c (convert_arguments): Get location of a parameter. Change | |
7151 | error and warning calls to error_at and warning_at. Pass location of | |
7152 | a parameter to it. Call warning_at with OPT_Wtraditional_conversion. | |
7153 | (convert_for_assignment): Add parameter to WARN_FOR_ASSIGNMENT and | |
7154 | WARN_FOR_QUALIFIERS. Pass expr_loc to those. | |
7155 | ||
97563bc8 IZ |
7156 | 2014-05-26 Igor Zamyatin <igor.zamyatin@intel.com> |
7157 | ||
7158 | PR c/61191 | |
7159 | * c-array-notation.c (fix_builtin_array_notation_fn): Check invalid | |
7160 | function parameters. | |
7161 | ||
aede2c10 JH |
7162 | 2014-05-23 Jan Hubicka <hubicka@ucw.cz> |
7163 | ||
7164 | * c-decl.c (merge_decls): Preserve symtab node pointers. | |
7165 | (duplicate_decls): Free new decl. | |
7166 | ||
edbba2ce TS |
7167 | 2014-05-23 Thomas Schwinge <thomas@codesourcery.com> |
7168 | ||
f3316c6d TS |
7169 | * c-typeck.c (c_finish_omp_clauses): Remove duplicated variable |
7170 | initialization. | |
7171 | ||
edbba2ce TS |
7172 | * c-parser.c (c_parser_omp_target): Return bool values. |
7173 | ||
68c81f24 TS |
7174 | 2014-05-22 Thomas Schwinge <thomas@codesourcery.com> |
7175 | ||
7176 | * c-parser.c (c_parser_omp_clause_thread_limit): Rename | |
7177 | num_teams_loc variable to num_thread_limit_loc. | |
7178 | ||
632f2871 RS |
7179 | 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com> |
7180 | ||
7181 | * c-array-notation.c (expand_array_notations): Use void_node | |
7182 | instead of void_zero_node. | |
7183 | ||
766090c2 TS |
7184 | 2014-05-17 Trevor Saunders <tsaunders@mozilla.com> |
7185 | ||
7186 | * c-decl.c (finish_struct): Adjust. | |
7187 | (finish_enum): Likewise. | |
7188 | (bind): Adjust. | |
7189 | (record_inline_static): Likewise. | |
7190 | (push_scope): Likewise. | |
7191 | (make_label): Likewise. | |
7192 | (lookup_label_for_goto): Likewise. | |
7193 | (finish_struct): Likewise. | |
7194 | (finish_enum): Likewise. | |
7195 | (store_parm_decls): Likewise. | |
7196 | (c_push_function_context): Likewise. | |
7197 | * c-lang.h: Remove usage of variable_size gty attribute. | |
7198 | * c-parser.c (c_parse_init): Adjust. | |
7199 | (c_parse_file): Likewise. | |
7200 | ||
2b107f6b MP |
7201 | 2014-05-13 Marek Polacek <polacek@redhat.com> |
7202 | ||
7203 | PR c/61162 | |
7204 | * c-typeck.c (convert_for_assignment): Pass location to | |
7205 | WARN_FOR_ASSIGNMENT instead of input_location. | |
7206 | ||
d033409e MP |
7207 | 2014-05-10 Marek Polacek <polacek@redhat.com> |
7208 | ||
7209 | * c-parser.c (c_parser_declaration_or_fndef): Pass init_loc to | |
7210 | maybe_warn_string_init. | |
7211 | (c_parser_postfix_expression_after_paren_type): Pass type_loc to | |
7212 | maybe_warn_string_init. | |
7213 | * c-tree.h (maybe_warn_string_init): Update declaration. | |
7214 | * c-typeck.c (maybe_warn_string_init): Add location parameter. | |
7215 | Call pedwarn_init with loc instead of with input_location. | |
7216 | (digest_init): Pass init_loc to maybe_warn_string_init. | |
7217 | (pop_init_level): Call pedwarn_init with loc instead of with | |
7218 | input_location. | |
7219 | (set_init_index): Likewise. | |
7220 | (process_init_element): Likewise. | |
7221 | ||
ea58ef42 MP |
7222 | 2014-05-09 Marek Polacek <polacek@redhat.com> |
7223 | ||
7224 | PR c/61096 | |
7225 | * c-parser.c (c_parser_braced_init): Pass brace_loc to push_init_level. | |
7226 | (c_parser_initelt): Pass location to set_init_label. Pass array index | |
7227 | location to set_init_index. | |
7228 | * c-tree.h (push_init_level): Update declaration. | |
7229 | (pop_init_level): Likewise. | |
7230 | (set_init_index): Likewise. | |
7231 | (set_init_label): Likewise. | |
7232 | * c-typeck.c (error_init): Add location parameter. Call error_at | |
7233 | instead of error. | |
7234 | (digest_init): Pass init_loc to error_init. | |
7235 | (really_start_incremental_init): | |
7236 | (push_init_level): Add location parameter. Pass loc to pop_init_level | |
7237 | and error_init. | |
7238 | (pop_init_level): Likewise. | |
7239 | (set_designator): Add location parameter. Pass loc to pop_init_level, | |
7240 | push_init_level, and error_init. | |
7241 | (set_init_index): Add location parameter. Pass loc to error_init and | |
7242 | set_designator. | |
7243 | (set_init_label): Likewise. | |
7244 | (output_init_element): Pass loc to error_init. | |
7245 | (process_init_element): Pass loc to error_init, pop_init_level, | |
7246 | pedwarn_init, and push_init_level. | |
7247 | ||
661a0813 MP |
7248 | 2014-05-09 Marek Polacek <polacek@redhat.com> |
7249 | ||
7250 | PR c/50459 | |
7251 | * c-parser.c (c_parser_attributes): Parse the arguments as an | |
7252 | expression-list if the attribute takes identifier. | |
7253 | ||
2793eeab MP |
7254 | 2014-05-08 Marek Polacek <polacek@redhat.com> |
7255 | ||
7256 | PR c/61053 | |
7257 | * c-decl.c (grokdeclarator): Use min_align_of_type instead of | |
7258 | TYPE_ALIGN_UNIT. | |
7259 | ||
f827930a MP |
7260 | 2014-05-08 Marek Polacek <polacek@redhat.com> |
7261 | ||
7262 | PR c/61077 | |
7263 | * c-decl.c (start_function): Warn for _Atomic-qualified return type | |
7264 | of main. | |
7265 | ||
1d60af08 KZ |
7266 | 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com> |
7267 | Mike Stump <mikestump@comcast.net> | |
7268 | Richard Sandiford <rdsandiford@googlemail.com> | |
7269 | ||
7270 | * c-decl.c (check_bitfield_type_and_width): Use TYPE_SIGN. | |
7271 | (finish_enum): Use wide-int interfaces. | |
7272 | * c-parser.c (c_parser_cilk_clause_vectorlength): Likewise. | |
7273 | * c-typeck.c (build_c_cast): Likewise. | |
7274 | (set_nonincremental_init_from_string): Likewise. | |
7275 | (c_tree_equal): Likewise. | |
7276 | ||
a0e24419 MP |
7277 | 2014-05-02 Marek Polacek <polacek@redhat.com> |
7278 | ||
7279 | PR c/25801 | |
7280 | * c-typeck.c (c_size_in_bytes): Update comment. Don't call error. | |
7281 | Return size_one_node when the type is not complete. | |
7282 | (pointer_diff): Remove comment. | |
7283 | (build_unary_op): Improve error messages. | |
7284 | ||
19fc9faa MP |
7285 | 2014-05-02 Marek Polacek <polacek@redhat.com> |
7286 | ||
7287 | * c-typeck.c (c_finish_return): Separate warning_at calls. | |
7288 | ||
63bc4e87 MP |
7289 | 2014-05-02 Marek Polacek <polacek@redhat.com> |
7290 | ||
7291 | * c-tree.h (error_init): Remove declaration. | |
7292 | (pedwarn_init): Likewise. | |
7293 | * c-typeck.c (error_init): Make static and move above. | |
7294 | (pedwarn_init): Likewise. | |
7295 | (warning_init): Move above. | |
7296 | (maybe_warn_string_init): Likewise. | |
7297 | ||
4bd2511b JL |
7298 | 2014-05-01 Jeff Law <law@redhat.com> |
7299 | ||
7300 | Revert: | |
7301 | ||
7302 | 2014-04-24 Prathamesh Kulkarni <bilbotheelffriend@gmail.com> | |
7303 | * c-parser.c (c_parser_sizeof_expression): Reorganize slightly to | |
7304 | avoid goto. | |
7305 | ||
6a358dcb MP |
7306 | 2014-05-02 Marek Polacek <polacek@redhat.com> |
7307 | ||
7308 | PR c/60784 | |
7309 | * c-typeck.c (push_init_level): Set constructor_designated to | |
7310 | p->designated for structures. | |
7311 | ||
ae5ebda4 MP |
7312 | 2014-05-01 Marek Polacek <polacek@redhat.com> |
7313 | ||
7314 | PR c/60915 | |
7315 | * c-parser.c (c_parser_declaration_or_fndef): Give better error if | |
7316 | function-definition has an attribute after the declarator. | |
7317 | ||
96b40f8d MP |
7318 | 2014-05-01 Marek Polacek <polacek@redhat.com> |
7319 | ||
7320 | PR c/60257 | |
7321 | * c-typeck.c (warning_init): Add location_t parameter. Call | |
7322 | warning_at instead of warning. | |
7323 | (push_init_level): Pass input_location to warning_init. | |
7324 | (add_pending_init): Add location_t parameter. Pass loc to | |
7325 | warning_init. | |
7326 | (set_nonincremental_init): Pass input_location to add_pending_init. | |
7327 | (set_nonincremental_init_from_string): Likewise. | |
7328 | (output_init_element): Pass loc to warning_init and to | |
7329 | add_pending_init. | |
7330 | ||
32e00768 MP |
7331 | 2014-05-01 Marek Polacek <polacek@redhat.com> |
7332 | ||
7333 | PR c/43395 | |
7334 | * c-typeck.c (c_finish_return): Distinguish between label and variable | |
7335 | when warning about returning local address. | |
7336 | ||
c9379ce2 MP |
7337 | 2014-05-01 Marek Polacek <polacek@redhat.com> |
7338 | ||
7339 | PR c/29467 | |
7340 | * c-decl.c (declspecs_add_type): Pedwarn if boolean types are used | |
7341 | in C89 mode. | |
7342 | ||
d00887e8 MP |
7343 | 2014-05-01 Marek Polacek <polacek@redhat.com> |
7344 | ||
7345 | PR c/43245 | |
7346 | * c-typeck.c (convert_for_assignment): Pass OPT_Wdiscarded_qualifiers | |
7347 | instead of 0 to WARN_FOR_QUALIFIERS. | |
7348 | ||
5436fa2e MP |
7349 | 2014-05-01 Marek Polacek <polacek@redhat.com> |
7350 | ||
7351 | PR c/56989 | |
7352 | * c-typeck.c (default_conversion): Use better location for | |
7353 | error call. | |
7354 | ||
f8ed5150 MP |
7355 | 2014-04-30 Marek Polacek <polacek@redhat.com> |
7356 | ||
7357 | * c-typeck.c (build_binary_op): Call ubsan_instrument_division | |
7358 | also when SANITIZE_FLOAT_DIVIDE is on. | |
7359 | ||
8337d1db MP |
7360 | 2014-04-30 Marek Polacek <polacek@redhat.com> |
7361 | ||
7362 | PR c/60139 | |
7363 | * c-typeck.c (output_init_element): Pass OPT_Wpedantic to pedwarn | |
7364 | and pedwarn_init. Use loc insted of input_location. | |
7365 | ||
c4bdc42f MP |
7366 | 2014-04-30 Marek Polacek <polacek@redhat.com> |
7367 | ||
7368 | PR c/60351 | |
7369 | * c-typeck.c (build_binary_op): Use location when warning about | |
7370 | shift count. | |
7371 | ||
45484dcf MP |
7372 | 2014-04-25 Marek Polacek <polacek@redhat.com> |
7373 | ||
7374 | PR c/18079 | |
7375 | * c-decl.c (diagnose_mismatched_decls): Warn for mismatched | |
7376 | always_inline/noinline and hot/cold attributes. | |
7377 | ||
34cf811f MP |
7378 | 2014-04-25 Marek Polacek <polacek@redhat.com> |
7379 | ||
7380 | PR c/60114 | |
7381 | * c-parser.c (c_parser_initelt): Pass input_location to | |
7382 | process_init_element. | |
7383 | (c_parser_initval): Pass loc to process_init_element. | |
7384 | * c-tree.h (process_init_element): Adjust declaration. | |
7385 | * c-typeck.c (push_init_level): Pass input_location to | |
7386 | process_init_element. | |
7387 | (pop_init_level): Likewise. | |
7388 | (set_designator): Likewise. | |
7389 | (output_init_element): Add location_t parameter. Pass loc to | |
7390 | digest_init. | |
7391 | (output_pending_init_elements): Pass input_location to | |
7392 | output_init_element. | |
7393 | (process_init_element): Add location_t parameter. Pass loc to | |
7394 | output_init_element. | |
7395 | ||
42056eac JJ |
7396 | 2014-04-24 Jakub Jelinek <jakub@redhat.com> |
7397 | ||
7398 | * c-parser.c (c_parser_omp_atomic): Allow seq_cst before | |
7399 | atomic-clause, allow comma in between atomic-clause and | |
7400 | seq_cst. | |
7401 | ||
e162a134 JJ |
7402 | 2014-04-22 Jakub Jelinek <jakub@redhat.com> |
7403 | ||
7404 | PR c/59073 | |
7405 | * c-parser.c (c_parser_omp_parallel): If c_parser_omp_for | |
7406 | fails, don't set OM_PARALLEL_COMBINED and return NULL. | |
7407 | ||
2f6babac IZ |
7408 | 2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com> |
7409 | ||
7410 | PR middle-end/60469 | |
7411 | * c-array-notation.c (fix_builtin_array_notation_fn): Use | |
7412 | create_tmp_var instead build_decl for creating temps. | |
7413 | (build_array_notation_expr): Likewise. | |
7414 | (fix_conditional_array_notations_1): Likewise. | |
7415 | (fix_array_notation_expr): Likewise. | |
7416 | (fix_array_notation_call_expr): Likewise. | |
7417 | ||
8edbfaa6 JJ |
7418 | 2014-03-28 Jakub Jelinek <jakub@redhat.com> |
7419 | ||
7420 | PR c++/60689 | |
7421 | * c-tree.h (c_build_function_call_vec): New prototype. | |
7422 | * c-typeck.c (build_function_call_vec): Don't call | |
7423 | resolve_overloaded_builtin here. | |
7424 | (c_build_function_call_vec): New wrapper function around | |
7425 | build_function_call_vec. Call resolve_overloaded_builtin here. | |
7426 | (convert_lvalue_to_rvalue, build_function_call, build_atomic_assign): | |
7427 | Call c_build_function_call_vec instead of build_function_call_vec. | |
7428 | * c-parser.c (c_parser_postfix_expression_after_primary): Likewise. | |
7429 | * c-decl.c (finish_decl): Likewise. | |
7430 | ||
7485aeea MLI |
7431 | 2014-03-18 Manuel López-Ibáñez <manu@gcc.gnu.org> |
7432 | ||
7433 | PR c/55383 | |
7434 | * c-typeck.c: Use correct format string in cast-qual warning | |
7435 | ||
b17a8b07 TS |
7436 | 2014-03-07 Thomas Schwinge <thomas@codesourcery.com> |
7437 | ||
7438 | * c-decl.c (c_decl_attributes): Use | |
7439 | lang_hooks.types.omp_mappable_type. | |
7440 | * c-typeck.c (c_finish_omp_clauses): Likewise. | |
7441 | ||
3af9c5e9 MP |
7442 | 2014-03-06 Marek Polacek <polacek@redhat.com> |
7443 | ||
7444 | PR c/60197 | |
7445 | * c-typeck.c (c_finish_return): Call contains_cilk_spawn_stmt instead | |
7446 | of checking tree code. | |
7447 | ||
1c9f5f33 PK |
7448 | 2014-02-19 Prathamesh Kulkarni <bilbotheelffriend@gmail.com> |
7449 | ||
7450 | * c-parser.c (c_parser_declspecs): Replace call to error by error_at. | |
7451 | (c_parser_parameter_declaration): Likewise. | |
7452 | ||
cc28fc7f MP |
7453 | 2014-02-19 Marek Polacek <polacek@redhat.com> |
7454 | ||
7455 | PR c/60195 | |
7456 | * c-typeck.c (convert_lvalue_to_rvalue): Set TREE_NO_WARNING on tmp. | |
7457 | Call mark_exp_read on exp.value. | |
7458 | (build_atomic_assign): Set TREE_NO_WARNING on val and old. Set | |
7459 | TREE_ADDRESSABLE on old instead of val. | |
7460 | (emit_side_effect_warnings): Warn only if RHS has !TREE_NO_WARNING. | |
7461 | ||
b581c05c PK |
7462 | 2014-02-07 Prathamesh Kulkarni <bilbotheelffriend@gmail.com> |
7463 | ||
7464 | * c-parser.c (c_parser_get_builtin_args): Replace calls to | |
7465 | C_EXPR_APPEND by vec_safe_push. | |
7466 | * c-tree.h (C_EXPR_APPEND): Remove. | |
7467 | ||
81e5eca8 MP |
7468 | 2014-01-31 Marek Polacek <polacek@redhat.com> |
7469 | ||
7470 | PR c/59963 | |
7471 | * c-typeck.c (convert_lvalue_to_rvalue): Pass vNULL to | |
7472 | build_function_call_vec. | |
7473 | (build_function_call): Likewise. | |
7474 | (build_atomic_assign): Likewise. | |
7475 | (build_function_call_vec): Add arg_loc parameter. Use it. | |
7476 | (convert_arguments): Likewise. | |
7477 | (convert_for_assignment): Rename rhs_loc to expr_loc. | |
7478 | * c-parser.c (c_parser_attributes): Pass NULL to c_parser_expr_list. | |
7479 | (c_parser_objc_keywordexpr): Likewise. | |
7480 | (c_parser_postfix_expression_after_primary): Call | |
7481 | build_function_call_vec with expr_loc rather than op_loc. | |
7482 | Call c_parser_expr_list to fill arg_loc. Pass arg_loc to | |
7483 | build_function_call_vec. | |
7484 | (c_parser_expr_list): Add locations parameter. Fill it with locations | |
7485 | of function arguments. | |
7486 | * c-decl.c (finish_decl): Pass vNULL to build_function_call_vec. | |
7487 | ||
68fca595 MP |
7488 | 2014-01-30 Marek Polacek <polacek@redhat.com> |
7489 | ||
7490 | PR c/59940 | |
7491 | * c-typeck.c (build_function_call_vec): Use loc parameter. | |
7492 | (convert_arguments): Add location parameter. Use it. | |
7493 | (ep_convert_and_check): Likewise. | |
7494 | (build_atomic_assign): Adjust convert_for_assignment call. | |
7495 | (build_modify_expr): Likewise. | |
7496 | (digest_init): Likewise. | |
7497 | (c_finish_return): Likewise. | |
7498 | (build_conditional_expr): Adjust ep_convert_and_check calls. | |
7499 | (convert_for_assignment): Add rhs_loc parameter. Use it. | |
7500 | (build_binary_op): Adjust convert_and_check and ep_convert_and_check | |
7501 | calls. | |
7502 | ||
fa337f3a RB |
7503 | 2014-01-30 Richard Biener <rguenther@suse.de> |
7504 | ||
7505 | PR c/59905 | |
7506 | * c-typeck.c (build_function_call_vec): Do not replace calls | |
7507 | to a function via an incompatible type with a runtime abort. | |
7508 | ||
b72271b9 BI |
7509 | 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com> |
7510 | ||
7511 | * c-parser.c (c_parser_declaration_or_fndef): Replaced | |
7512 | flag_enable_cilkplus with flag_cilkplus. | |
7513 | (c_parser_direct_declarator_inner): Likewise. | |
7514 | (c_parser_attribute_any_word): Likewise. | |
7515 | (c_parser_attributes): Likewise. | |
7516 | (c_parser_compound_statement): Likewise. | |
7517 | (c_parser_statement_after_labels): Likewise. | |
7518 | (c_parser_if_statement): Likewise. | |
7519 | (c_parser_switch_statement): Likewise. | |
7520 | (c_parser_do_statement): Likewise. | |
7521 | (c_parser_for_statement): Likewise. | |
7522 | (c_parser_unary_expression): Likewise. | |
7523 | (c_parser_postfix_expression): Likewise. | |
7524 | (c_parser_postfix_expression_after_primary): Likewise. | |
7525 | (c_parser_postfix_expression_after_primary): Likewise. | |
7526 | (c_parser_omp_clause_name): Likewise. | |
7527 | (c_finish_omp_declare_simd): Likewise. | |
7528 | (c_parser_cilk_verify_simd): Likewise. | |
7529 | * c-typeck.c (build_array_ref): Likewise. | |
7530 | (build_function_call_vec): Likewise. | |
7531 | (convert_arguments): Likewise. | |
7532 | (build_compound_expr): Likewise. | |
7533 | (c_finish_return): Likewise. | |
7534 | (c_finish_if_stmt): Likewise. | |
7535 | (c_finish_loop): Likewise. | |
7536 | (build_binary_op): Likewise. | |
7537 | ||
393e8e8b MP |
7538 | 2014-01-23 Marek Polacek <polacek@redhat.com> |
7539 | ||
7540 | PR c/59846 | |
7541 | * c-typeck.c (parser_build_binary_op): Use location instead of | |
7542 | input_location. | |
7543 | (build_binary_op): Pass location to shorten_compare. | |
7544 | ||
f04dda30 MP |
7545 | 2014-01-23 Marek Polacek <polacek@redhat.com> |
7546 | ||
7547 | PR c/58346 | |
7548 | * c-typeck.c (pointer_diff): Give an error on arithmetic on pointer to | |
7549 | an empty aggregate. | |
7550 | ||
789eadcd MP |
7551 | 2014-01-23 Marek Polacek <polacek@redhat.com> |
7552 | ||
7553 | PR c/59871 | |
7554 | * c-typeck.c (build_compound_expr): Warn even for right-hand operand | |
7555 | of a comma expression. | |
7556 | (emit_side_effect_warnings): Likewise. | |
7557 | ||
40f14e9f BI |
7558 | 2014-01-23 Balaji V. Iyer <balaji.v.iyer@intel.com> |
7559 | ||
7560 | PR c/59825 | |
7561 | * c-array-notation.c (expand_array_notation_exprs): Rewrote this | |
7562 | function to use walk_tree and moved a lot of its functionality to | |
7563 | expand_array_notations. | |
7564 | (expand_array_notations): New function. | |
7565 | ||
74558dd9 BI |
7566 | 2014-01-23 Balaji V. Iyer <balaji.v.iyer@intel.com> |
7567 | ||
7568 | * c-parser.c (c_finish_omp_declare_simd): Made "cilk simd function" | |
7569 | attribute an attribute without value. | |
7570 | ||
652fea39 JJ |
7571 | 2014-01-23 Jakub Jelinek <jakub@redhat.com> |
7572 | ||
7573 | PR middle-end/58809 | |
7574 | * c-typeck.c (c_finish_omp_clause): Reject MIN_EXPR, MAX_EXPR, | |
7575 | BIT_AND_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR on COMPLEX_TYPEs. | |
7576 | ||
f34f1c87 MP |
7577 | 2014-01-22 Marek Polacek <polacek@redhat.com> |
7578 | ||
7579 | PR c/59891 | |
7580 | * c-typeck.c (build_conditional_expr): Call c_fully_fold instead | |
7581 | of remove_c_maybe_const_expr on op1 and op2. | |
7582 | ||
241f845a JJ |
7583 | 2014-01-15 Jakub Jelinek <jakub@redhat.com> |
7584 | ||
7585 | PR c/58943 | |
7586 | * c-typeck.c (build_modify_expr): For lhs op= rhs, if rhs has side | |
7587 | effects, preevaluate rhs using SAVE_EXPR first. | |
7588 | ||
9a74f20c BI |
7589 | 2014-01-09 Balaji V. Iyer <balaji.v.iyer@intel.com> |
7590 | ||
7591 | PR c++/59631 | |
7592 | * c-parser.c (c_parser_postfix_expression): Replaced consecutive if | |
7593 | statements with if-elseif statements. | |
7594 | ||
96066ce1 MP |
7595 | 2014-01-06 Marek Polacek <polacek@redhat.com> |
7596 | ||
7597 | PR c/57773 | |
7598 | * c-decl.c (check_bitfield_type_and_width): Warn for implementation | |
7599 | defined bit-field types only in ISO C. | |
7600 | ||
23a5b65a RS |
7601 | 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com> |
7602 | ||
7603 | Update copyright years | |
7604 | ||
f9030485 RS |
7605 | 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com> |
7606 | ||
7607 | * c-array-notation.c: Use the standard form for the copyright notice. | |
7608 | ||
41958c28 BI |
7609 | 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com> |
7610 | ||
7611 | * c-parser.c (struct c_parser::cilk_simd_fn_tokens): Added new field. | |
7612 | (c_parser_declaration_or_fndef): Added a check if cilk_simd_fn_tokens | |
7613 | field in parser is not empty. If not-empty, call the function | |
7614 | c_parser_finish_omp_declare_simd. | |
7615 | (c_parser_cilk_clause_vectorlength): Modified function to be shared | |
7616 | between SIMD-enabled functions and #pragma simd. Added new parameter. | |
7617 | (c_parser_cilk_all_clauses): Modified the usage of the function | |
7618 | c_parser_cilk_clause_vectorlength as mentioned above. | |
7619 | (c_parser_cilk_simd_fn_vector_attrs): New function. | |
7620 | (c_finish_cilk_simd_fn_tokens): Likewise. | |
7621 | (is_cilkplus_vector_p): Likewise. | |
7622 | (c_parser_omp_clause_name): Added checking for "vectorlength," | |
7623 | "nomask," and "mask" strings in clause name. | |
7624 | (c_parser_omp_all_clauses): Added 3 new case statements: | |
7625 | PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_MASK and | |
7626 | PRAGMA_CILK_CLAUSE_NOMASK. | |
7627 | (c_parser_attributes): Added a cilk_simd_fn_tokens parameter. Added a | |
7628 | check for vector attribute and if so call the function | |
7629 | c_parser_cilk_simd_fn_vector_attrs. Also, when Cilk plus is enabled, | |
7630 | called the function c_finish_cilk_simd_fn_tokens. | |
7631 | (c_finish_omp_declare_simd): Added a check if cilk_simd_fn_tokens in | |
7632 | parser field is non-empty. If so, parse them as you would parse | |
7633 | the omp declare simd pragma. | |
7634 | (c_parser_omp_clause_linear): Added a new bool parm. is_cilk_simd_fn. | |
7635 | Added a check when step is a parameter and flag it as error. | |
7636 | (CILK_SIMD_FN_CLAUSE_MASK): New #define. | |
7637 | (c_parser_cilk_clause_name): Changed pragma_cilk_clause to | |
7638 | pragma_omp_clause. | |
7639 | ||
cef0fd0e TS |
7640 | 2013-12-17 Thomas Schwinge <thomas@codesourcery.com> |
7641 | ||
7642 | * c-parser.c (c_parser_omp_parallel): Fix description. | |
7643 | ||
12893402 BI |
7644 | 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com> |
7645 | ||
7646 | * c-objc-common.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Remove. | |
7647 | (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise. | |
7648 | (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise. | |
7649 | * c-typeck.c (cilk_install_body_with_frame_cleanup): New function. | |
7650 | ||
296674db JM |
7651 | 2013-12-04 Joseph Myers <joseph@codesourcery.com> |
7652 | ||
7653 | PR c/52023 | |
7654 | * c-parser.c (c_parser_alignas_specifier): Use | |
7655 | c_sizeof_or_alignof_type instead of c_alignof. | |
7656 | (c_parser_alignof_expression): Likewise, with min_alignof | |
7657 | parameter depending on alignof spelling used. | |
7658 | ||
edd28054 MP |
7659 | 2013-12-04 Marek Polacek <polacek@redhat.com> |
7660 | ||
7661 | PR c/54113 | |
7662 | * c-decl.c (start_function): Don't warn for missing prototype for | |
7663 | inline functions. | |
7664 | ||
da0fc454 MP |
7665 | 2013-12-03 Marek Polacek <polacek@redhat.com> |
7666 | ||
7667 | PR c/59351 | |
7668 | * c-decl.c (build_compound_literal): Allow compound literals with | |
7669 | empty initial value. | |
7670 | ||
4c2ecab0 JM |
7671 | 2013-12-02 Joseph Myers <joseph@codesourcery.com> |
7672 | ||
7673 | PR c/58235 | |
7674 | * c-typeck.c (build_modify_expr): Diagnose assignment to | |
7675 | expression with array type. | |
7676 | ||
340baef7 JM |
7677 | 2013-11-29 Joseph Myers <joseph@codesourcery.com> |
7678 | ||
7679 | PR c/42262 | |
7680 | * c-typeck.c (process_init_element): Do not treat a string as | |
7681 | initializing a whole array when used with a designator for an | |
7682 | individual element. | |
7683 | ||
6763b9f7 JM |
7684 | 2013-11-29 Joseph Myers <joseph@codesourcery.com> |
7685 | ||
7686 | PR c/57574 | |
7687 | * c-decl.c (merge_decls): Clear DECL_EXTERNAL for a definition of | |
7688 | an inline function following a static declaration. | |
7689 | ||
e7bd1de1 JJ |
7690 | 2013-11-28 Jakub Jelinek <jakub@redhat.com> |
7691 | ||
7692 | PR c/59310 | |
7693 | * c-parser.c (c_parser_omp_target): Copy "#pragma omp target" | |
7694 | to p_name before calling c_parser_omp_teams instead of after. | |
7695 | (c_parser_cilk_simd): Remove wrong ATTRIBUTE_UNUSED from parser | |
7696 | argument. Remove unused p_name variable. | |
7697 | ||
0136f8f0 AH |
7698 | 2013-11-27 Aldy Hernandez <aldyh@redhat.com> |
7699 | Jakub Jelinek <jakub@redhat.com> | |
7700 | ||
7701 | * c-decl.c (c_builtin_function_ext_scope): Avoid binding if | |
7702 | external_scope is NULL. | |
7703 | ||
241b71bb TV |
7704 | 2013-11-27 Tom de Vries <tom@codesourcery.com> |
7705 | Marc Glisse <marc.glisse@inria.fr> | |
7706 | ||
7707 | PR c++/59032 | |
7708 | * c-typeck.c (build_unary_op): Allow vector increment and decrement. | |
7709 | ||
2fb9a547 AM |
7710 | 2013-11-22 Andrew MacLeod <amacleod@redhat.com> |
7711 | ||
7712 | * c-typeck.c: Add required include files from gimple.h. | |
7713 | ||
8400e75e DM |
7714 | 2013-11-22 David Malcolm <dmalcolm@redhat.com> |
7715 | ||
7716 | * c-decl.c (define_label, shadow_tag_warned) | |
7717 | (check_bitfield_type_and_width, grokdeclarator, grokparms, | |
7718 | store_parm_decls_newstyle, store_parm_decls_oldstyle) | |
7719 | (declspecs_add_type): Remove use of in_system_header macro. | |
7720 | * c-parser.c (c_parser_unary_expression): Likewise. | |
7721 | * c-typeck.c (store_init_value, process_init_element) | |
7722 | (c_start_case): Likewise. | |
7723 | ||
7724 | * c-decl.c (build_enumerator): Remove use of EXPR_LOC_OR_HERE | |
7725 | macro. | |
7726 | ||
7727 | * c-parser.c (c_parser_set_source_position_from_token): Remove | |
7728 | reference to in_system_header from comment. | |
7729 | ||
386b1f1f RS |
7730 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
7731 | ||
7732 | * c-decl.c (grokdeclarator): Update comment to refer to | |
7733 | tree_to_[su]hwi rather than tree_low_cst. | |
7734 | ||
ae7e9ddd RS |
7735 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
7736 | ||
7737 | * c-decl.c, c-typeck.c: Replace tree_low_cst (..., 1) with | |
7738 | tree_to_uhwi throughout. | |
7739 | ||
9439e9a1 RS |
7740 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
7741 | ||
7742 | * c-parser.c: Replace tree_low_cst (..., 0) with tree_to_shwi | |
7743 | throughout. | |
7744 | ||
9541ffee RS |
7745 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
7746 | ||
7747 | * c-parser.c: Replace host_integerp (..., 0) with tree_fits_shwi_p | |
7748 | throughout. | |
7749 | ||
c02065fc AH |
7750 | 2013-11-15 Aldy Hernandez <aldyh@redhat.com> |
7751 | ||
7752 | * c-parser.c (c_parser_cilk_simd): New. | |
7753 | (c_parser_cilk_verify_simd): New. | |
7754 | (c_parser_pragma): Add case for PRAGMA_CILK_SIMD. | |
7755 | (c_parser_omp_for_loop): Add case for NE_EXPR. | |
7756 | Set c_break_label for CILK_SIMD. | |
7757 | (c_parser_cilk_clause_vectorlength): New. | |
7758 | (c_parser_cilk_clause_linear): New. | |
7759 | (c_parser_cilk_clause_name): New. | |
7760 | (c_parser_cilk_all_clauses): New. | |
7761 | * c-typeck.c (build_unary_op): Pass location argument to | |
7762 | readonly_error. | |
7763 | (build_modify_expr): Same. | |
7764 | (build_asm_expr): Same. | |
7765 | (c_finish_bc_stmt): Error on break/continue in loops. | |
7766 | ||
18f429e2 AM |
7767 | 2013-11-14 Andrew MacLeod <amacleod@redhat.com> |
7768 | ||
7769 | * c-typeck.c: Include only gimplify.h and gimple.h as needed. | |
7770 | ||
d8a2d370 DN |
7771 | 2013-11-14 Diego Novillo <dnovillo@google.com> |
7772 | ||
7773 | * c-decl.c: Include print-tree.h. | |
7774 | Include stor-layout.h. | |
7775 | Include varasm.h. | |
7776 | Include attribs.h. | |
7777 | Include stringpool.h. | |
7778 | * c-lang.c: Include fold-const.h. | |
7779 | * c-parser.c: Include stringpool.h. | |
7780 | Include attribs.h. | |
7781 | Include stor-layout.h. | |
7782 | Include varasm.h. | |
7783 | Include trans-mem.h. | |
7784 | * c-typeck.c: Include stor-layout.h. | |
7785 | Include trans-mem.h. | |
7786 | Include varasm.h. | |
7787 | Include stmt.h. | |
7788 | ||
38b7bc7f JM |
7789 | 2013-11-13 Joseph Myers <joseph@codesourcery.com> |
7790 | ||
7791 | * c-tree.h (c_typespec_keyword): Add cts_auto_type. | |
7792 | * c-decl.c (declspecs_add_type, finish_declspecs): Handle | |
7793 | __auto_type. | |
7794 | * c-parser.c (c_token_starts_typename, c_token_starts_declspecs) | |
7795 | (c_parser_attribute_any_word, c_parser_objc_selector): Handle | |
7796 | RID_AUTO_TYPE. | |
7797 | (c_parser_declspecs): Take argument AUTO_TYPE_OK. | |
7798 | (c_parser_declaration_or_fndef, c_parser_struct_declaration) | |
7799 | (c_parser_declarator, c_parser_direct_declarator_inner) | |
7800 | (c_parser_parameter_declaration, c_parser_type_name): All callers | |
7801 | changed. | |
7802 | (c_parser_declaration_or_fndef): Handle declarations with type | |
7803 | determined from the initializer. | |
7804 | ||
45b0be94 AM |
7805 | 2013-11-12 Andrew MacLeod <amacleod@redhat.com> |
7806 | ||
18f429e2 | 7807 | * c-typeck.c: Include gimplify.h. |
45b0be94 | 7808 | |
582d9b50 JM |
7809 | 2013-11-12 Joseph Myers <joseph@codesourcery.com> |
7810 | ||
7811 | * c-tree.h (struct c_declspecs): Add thread_gnu_p field. | |
7812 | * c-parser.c (c_parser_declspecs): Mention _Thread_local in | |
7813 | comment. | |
7814 | * c-decl.c (shadow_tag_warned, grokdeclarator): Mention __thread | |
7815 | or _Thread_local as appropriate in diagnostics. | |
7816 | (build_null_declspecs): Initialize ret->thread_gnu_p. | |
7817 | (declspecs_add_scspec): Handle either __thread or _Thread_local | |
7818 | for RID_THREAD. Diagnose _Thread_local for pre-C11 standards if | |
7819 | pedantic. Do not disallow _Thread_local extern and _Thread_local | |
7820 | static. | |
7821 | ||
267bac10 JM |
7822 | 2013-11-07 Joseph Myers <joseph@codesourcery.com> |
7823 | Andrew MacLeod <amacleod@redhat.com> | |
7824 | ||
7825 | * c-aux-info.c (gen_type): Handle atomic qualifier. | |
7826 | * c-decl.c (validate_proto_after_old_defn): Do not remove atomic | |
7827 | qualifiers when compating types. | |
7828 | (shadow_tag_warned): Handle atomic_p in declspecs. | |
7829 | (quals_from_declspecs): Likewise. | |
7830 | (start_decl): Use c_type_promotes_to when promoting argument | |
7831 | types. | |
7832 | (grokdeclarator): Handle _Atomic. | |
7833 | (get_parm_info): Diagnose any qualifier on "void" as only | |
7834 | parameter. | |
7835 | (store_parm_decls_oldstyle): Do not remove atomic qualifiers when | |
7836 | comparing types. Use c_type_promotes_to when promoting argument | |
7837 | types. | |
7838 | (finish_function): Use c_type_promotes_to when promoting argument | |
7839 | types. | |
7840 | (build_null_declspecs): Handle atomic_p in declspecs. | |
7841 | (declspecs_add_qual): Handle RID_ATOMIC. | |
7842 | * c-parser.c (c_token_starts_typename, c_token_is_qualifier) | |
7843 | (c_token_starts_declspecs): Handle RID_ATOMIC. | |
7844 | (c_parser_declspecs): Handle atomic type specifiers and | |
7845 | qualifiers. | |
7846 | (c_parser_typeof_specifier): Remove const and _Atomic qualifiers | |
7847 | from types of expressions with atomic type. | |
7848 | (c_parser_direct_declarator_inner): Use convert_lvalue_to_rvalue. | |
7849 | (c_parser_attribute_any_word): Handle RID_ATOMIC. | |
7850 | (c_parser_initializer, c_parser_initelt, c_parser_initval) | |
7851 | (c_parser_statement_after_labels, c_parser_switch_statement) | |
7852 | (c_parser_for_statement, c_parser_expr_no_commas) | |
7853 | (c_parser_conditional_expression, c_parser_binary_expression) | |
7854 | (c_parser_cast_expression, c_parser_unary_expression) | |
7855 | (c_parser_postfix_expression) | |
7856 | (c_parser_postfix_expression_after_primary, c_parser_expression): | |
7857 | Use convert_lvalue_to_rvalue. | |
7858 | (c_parser_expression_conv, c_parser_expr_list): Document | |
7859 | conversion of lvalues to rvalues. Use convert_lvalue_to_rvalue. | |
7860 | (c_parser_objc_synchronized_statement): Use | |
7861 | convert_lvalue_to_rvalue. | |
7862 | (c_parser_objc_selector): Handle RID_ATOMIC. | |
7863 | (c_parser_objc_receiver, c_parser_array_notation): Use | |
7864 | convert_lvalue_to_rvalue. | |
7865 | * c-tree.h (ctsk_typeof): Adjust comment to mention use for | |
7866 | _Atomic (type-name). | |
7867 | (struct c_declspecs): Add atomic_p field. | |
7868 | (convert_lvalue_to_rvalue): Declare. | |
7869 | * c-typeck.c (c_type_promotes_to): Promote atomic types to | |
7870 | corresponding atomic types. | |
7871 | (qualify_type): Don't add _Atomic qualifiers from second argument. | |
7872 | (comp_target_types): Do not allow _Atomic mismatches. | |
7873 | (type_lists_compatible_p): Do not remove atomic qualifiers when | |
7874 | comparing types. | |
7875 | (really_atomic_lvalue, convert_lvalue_to_rvalue) | |
7876 | (build_atomic_assign): New functions. | |
7877 | (build_unary_op): Use build_atomic_assign for atomic increment and | |
7878 | decrement. | |
7879 | (build_conditional_expr): Do not treat _Atomic void as a qualified | |
7880 | version of void. | |
7881 | (build_modify_expr): Use build_atomic_assign for atomic LHS. | |
7882 | (find_anonymous_field_with_type, convert_to_anonymous_field) | |
7883 | (convert_for_assignment): Do not remove atomic qualifiers when | |
7884 | comparing types. | |
7885 | (digest_init): Do not accept initialization of arrays of atomic | |
7886 | elements by string constants. | |
7887 | (build_asm_expr): Use convert_lvalue_to_rvalue. | |
7888 | (build_binary_op): Do not treat _Atomic void as a qualified | |
7889 | version of void. | |
7890 | ||
0c249d4b DD |
7891 | 2013-11-06 DJ Delorie <dj@redhat.com> |
7892 | ||
7893 | * c-decl.c (locate_old_decl): If a previous conflicting decl is | |
7894 | both explicit and builtin, print the location of the explicit one. | |
7895 | ||
6d7f7e0a TB |
7896 | 2013-11-05 Tobias Burnus <burnus@net-b.de> |
7897 | ||
7898 | * c-parser.c (c_parser_omp_for, c_parser_omp_parallel, | |
7899 | c_parser_omp_distribute, c_parser_omp_teams, | |
7900 | c_parser_omp_target, c_parser_omp_declare): Handle | |
7901 | -fopenmp-simd. | |
7902 | ||
b906f4ca MP |
7903 | 2013-11-03 Marek Polacek <polacek@redhat.com> |
7904 | ||
7905 | * c-decl.c (grokdeclarator): Add VLA instrumentation. | |
7906 | ||
ee1d5a02 JJ |
7907 | 2013-11-01 Jakub Jelinek <jakub@redhat.com> |
7908 | ||
7909 | * c-typeck.c (c_finish_omp_clauses) <case OMP_CLAUSE_UNIFORM>: Go to | |
7910 | check_dup_generic at the end, unless remove is true. | |
7911 | (c_finish_omp_clauses) <case OMP_CLAUSE_REDUCTION>: Add break; after | |
7912 | remove = true;. | |
7913 | (c_finish_omp_clauses) <case OMP_CLAUSE_COPYIN>: Likewise. | |
7914 | ||
5a9785fb JJ |
7915 | 2013-10-31 Jakub Jelinek <jakub@redhat.com> |
7916 | ||
7917 | * c-typeck.c (c_finish_omp_clauses): Diagnose aligned clause | |
7918 | with decl that is not pointer nor array. | |
7919 | ||
939b37da BI |
7920 | 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com> |
7921 | ||
7922 | * c-decl.c (finish_function): Added a call for insert_cilk_frame when | |
7923 | a spawning function is found. | |
7924 | * c-objc-common.h (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): New #define. | |
7925 | (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise. | |
7926 | (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise. | |
7927 | * c-parser.c (c_parser_statement_after_labels): Added RID_CILK_SYNC | |
7928 | case. | |
7929 | (c_parser_postfix_expression): Added RID_CILK_SPAWN case. | |
7930 | * c-typeck.c (build_compound_expr): Reject _Cilk_spawn in a comma | |
7931 | expr. | |
7932 | (c_finish_return): Added a check to reject _Cilk_spawn in return | |
7933 | expression. | |
7934 | (build_cilk_spawn): New function. | |
7935 | (build_cilk_sync): Likewise. | |
7936 | * Makefile.in (c-decl.o): Added cilk.h in dependency list. | |
ab20d992 | 7937 | |
d4af74d4 TB |
7938 | 2013-10-27 Tobias Burnus <burnus@net-b.de> |
7939 | ||
7940 | PR other/33426 | |
7941 | * c-parser.c (c_parser_while_statement, c_parser_while_statement, | |
7942 | c_parser_pragma): Add GCC ivdep support to 'do' and 'while'. | |
7943 | (c_parser_statement_after_labels): Update calls. | |
7944 | ||
d73749df | 7945 | 2013-10-24 Tobias Burnus <burnus@net-b.de> |
8170608b TB |
7946 | |
7947 | PR other/33426 | |
7948 | * c-parser.c (c_parser_pragma, c_parser_for_statement): | |
7949 | Handle PRAGMA_IVDEP. | |
7950 | (c_parser_statement_after_labels): Update call. | |
7951 | ||
f28aa681 MP |
7952 | 2013-10-24 Marek Polacek <polacek@redhat.com> |
7953 | ||
7954 | * c-parser.c (c_parser_struct_declaration): Add a comment. | |
7955 | (c_parser_declarator): Don't allow _Alignas here. | |
7956 | ||
0645c1a2 AM |
7957 | 2013-10-17 Andrew MacLeod <amacleod@redhat.com> |
7958 | ||
7959 | * c-parser.c: Include omp-low.h. | |
7960 | * c-typeck.c: Likewise. | |
7961 | ||
568a31f2 MP |
7962 | 2013-10-17 Marek Polacek <polacek@redhat.com> |
7963 | ||
7964 | PR c/58267 | |
7965 | * c-parser.c (c_parser_declspecs): Add alignspec_ok parameter. | |
7966 | Document syntax of the array-declarator. | |
7967 | (c_parser_declspecs) <RID_ALIGNAS>: Bail out if alignment specs | |
7968 | are not permitted. | |
7969 | (c_parser_declaration_or_fndef): Adjust c_parser_declspecs call. | |
7970 | (c_parser_struct_declaration): Likewise. | |
7971 | (c_parser_declarator): Likewise. | |
7972 | (c_parser_direct_declarator_inner): Likewise. | |
7973 | (c_parser_parameter_declaration): Likewise. | |
7974 | (c_parser_type_name): Likewise. | |
7975 | ||
acf0174b JJ |
7976 | 2013-10-11 Jakub Jelinek <jakub@redhat.com> |
7977 | ||
7978 | * c-lang.h (current_omp_declare_target_attribute): New extern | |
7979 | decl. | |
7980 | * c-parser.c: Include c-lang.h. | |
7981 | (struct c_parser): Change tokens to c_token *. | |
7982 | Add tokens_buf field. Change tokens_avail type to unsigned int. | |
7983 | (c_parser_consume_token): If parser->tokens isn't | |
7984 | &parser->tokens_buf[0], increment parser->tokens. | |
7985 | (c_parser_consume_pragma): Likewise. | |
7986 | (enum pragma_context): Add pragma_struct and pragma_param. | |
7987 | (c_parser_external_declaration): Adjust | |
7988 | c_parser_declaration_or_fndef caller. | |
7989 | (c_parser_declaration_or_fndef): Add omp_declare_simd_clauses | |
7990 | argument, if it is non-vNULL vector, call c_finish_omp_declare_simd. | |
7991 | Adjust recursive call. | |
7992 | (c_parser_struct_or_union_specifier): Use pragma_struct instead | |
7993 | of pragma_external. | |
7994 | (c_parser_parameter_declaration): Use pragma_param instead of | |
7995 | pragma_external. | |
7996 | (c_parser_compound_statement_nostart, c_parser_label, | |
7997 | c_parser_for_statement): Adjust | |
7998 | c_parser_declaration_or_fndef callers. | |
7999 | (c_parser_expr_no_commas): Add omp_atomic_lhs argument, pass | |
8000 | it through to c_parser_conditional_expression. | |
8001 | (c_parser_conditional_expression): Add omp_atomic_lhs argument, | |
8002 | pass it through to c_parser_binary_expression. Adjust recursive | |
8003 | call. | |
8004 | (c_parser_binary_expression): Remove prec argument, add | |
8005 | omp_atomic_lhs argument instead. Always start from PREC_NONE, if | |
8006 | omp_atomic_lhs is non-NULL and one of the arguments of toplevel | |
8007 | binop matches it, use build2 instead of parser_build_binary_op. | |
8008 | (c_parser_pragma): Handle PRAGMA_OMP_CANCEL, | |
8009 | PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_TARGET, | |
8010 | PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_DECLARE_REDUCTION. | |
8011 | Handle pragma_struct and pragma_param the same as pragma_external. | |
8012 | (c_parser_omp_clause_name): Parse new OpenMP 4.0 clause names. | |
8013 | (c_parser_omp_variable_list): Parse array sections for | |
8014 | OMP_CLAUSE_{DEPEND,MAP,TO,FROM} clauses. | |
8015 | (c_parser_omp_clause_collapse): Fully fold collapse expression. | |
8016 | (c_parser_omp_clause_reduction): Handle user defined reductions. | |
8017 | (c_parser_omp_clause_branch, c_parser_omp_clause_cancelkind, | |
8018 | c_parser_omp_clause_num_teams, c_parser_omp_clause_thread_limit, | |
8019 | c_parser_omp_clause_aligned, c_parser_omp_clause_linear, | |
8020 | c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen, | |
8021 | c_parser_omp_clause_depend, c_parser_omp_clause_map, | |
8022 | c_parser_omp_clause_device, c_parser_omp_clause_dist_schedule, | |
8023 | c_parser_omp_clause_proc_bind, c_parser_omp_clause_to, | |
8024 | c_parser_omp_clause_from, c_parser_omp_clause_uniform): New functions. | |
8025 | (c_parser_omp_all_clauses): Add finish_p argument. Don't call | |
8026 | c_finish_omp_clauses if it is false. Handle new OpenMP 4.0 clauses. | |
8027 | (c_parser_omp_atomic): Parse seq_cst clause, pass true if it is | |
8028 | present to c_finish_omp_atomic. Handle OpenMP 4.0 atomic forms. | |
8029 | (c_parser_omp_for_loop): Add CODE argument, pass it through | |
8030 | to c_finish_omp_for. Change last argument to cclauses, | |
8031 | and adjust uses to grab parallel clauses from the array of all | |
8032 | the split clauses. Adjust c_parser_binary_expression, | |
8033 | c_parser_declaration_or_fndef and c_finish_omp_for callers. | |
8034 | (omp_split_clauses): New function. | |
8035 | (c_parser_omp_simd): New function. | |
8036 | (c_parser_omp_for): Add p_name, mask and cclauses arguments. | |
8037 | Allow the function to be called also when parsing combined constructs, | |
8038 | and call c_parser_omp_simd when parsing for simd. | |
8039 | (c_parser_omp_sections_scope): If section-sequence doesn't start with | |
8040 | #pragma omp section, require exactly one structured-block instead of | |
8041 | sequence of statements. | |
8042 | (c_parser_omp_sections): Add p_name, mask and cclauses arguments. | |
8043 | Allow the function to be called also when parsing combined constructs. | |
8044 | (c_parser_omp_parallel): Add p_name, mask and cclauses arguments. | |
8045 | Allow the function to be called also when parsing combined | |
8046 | constructs. | |
8047 | (c_parser_omp_taskgroup, c_parser_omp_cancel, | |
8048 | c_parser_omp_cancellation_point, c_parser_omp_distribute, | |
8049 | c_parser_omp_teams, c_parser_omp_target_data, | |
8050 | c_parser_omp_target_update, c_parser_omp_target, | |
8051 | c_parser_omp_declare_simd, c_finish_omp_declare_simd, | |
8052 | c_parser_omp_declare_target, c_parser_omp_end_declare_target, | |
8053 | c_parser_omp_declare_reduction, c_parser_omp_declare): New functions. | |
8054 | (c_parser_omp_construct): Add p_name and mask vars. Handle | |
8055 | PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_SIMD, PRAGMA_OMP_TASKGROUP, | |
8056 | PRAGMA_OMP_TEAMS. Adjust c_parser_omp_for, c_parser_omp_parallel | |
8057 | and c_parser_omp_sections callers. | |
8058 | (c_parse_file): Initialize tparser.tokens and the_parser->tokens here. | |
8059 | (OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK, | |
8060 | OMP_SINGLE_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1. | |
8061 | (OMP_PARALLEL_CLAUSE_MASK): Likewise. Add OMP_CLAUSE_PROC_BIND. | |
8062 | (OMP_TASK_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1. Add | |
8063 | OMP_CLAUSE_DEPEND. | |
8064 | (OMP_SIMD_CLAUSE_MASK, OMP_CANCEL_CLAUSE_MASK, | |
8065 | OMP_CANCELLATION_POINT_CLAUSE_MASK, OMP_DISTRIBUTE_CLAUSE_MASK, | |
8066 | OMP_TEAMS_CLAUSE_MASK, OMP_TARGET_DATA_CLAUSE_MASK, | |
8067 | OMP_TARGET_UPDATE_CLAUSE_MASK, OMP_TARGET_CLAUSE_MASK, | |
8068 | OMP_DECLARE_SIMD_CLAUSE_MASK): Define. | |
8069 | * c-typeck.c: Include tree-inline.h. | |
8070 | (c_finish_omp_cancel, c_finish_omp_cancellation_point, | |
8071 | handle_omp_array_sections_1, handle_omp_array_sections, | |
8072 | c_clone_omp_udr, c_find_omp_placeholder_r): New functions. | |
8073 | (c_finish_omp_clauses): Handle new OpenMP 4.0 clauses and | |
8074 | user defined reductions. | |
8075 | (c_tree_equal): New function. | |
8076 | * c-tree.h (temp_store_parm_decls, temp_pop_parm_decls, | |
8077 | c_finish_omp_cancel, c_finish_omp_cancellation_point, c_tree_equal, | |
8078 | c_omp_reduction_id, c_omp_reduction_decl, c_omp_reduction_lookup, | |
8079 | c_check_omp_declare_reduction_r): New prototypes. | |
8080 | * c-decl.c (current_omp_declare_target_attribute): New variable. | |
8081 | (c_decl_attributes): New function. | |
8082 | (start_decl, start_function): Use it instead of decl_attributes. | |
8083 | (temp_store_parm_decls, temp_pop_parm_decls, c_omp_reduction_id, | |
8084 | c_omp_reduction_decl, c_omp_reduction_lookup, | |
8085 | c_check_omp_declare_reduction_r): New functions. | |
8086 | ||
0a6c2227 TT |
8087 | 2013-09-25 Tom Tromey <tromey@redhat.com> |
8088 | ||
8089 | * Make-lang.in (c/gccspec.o): Remove. | |
8090 | (CFLAGS-c/gccspec.o): New variable. | |
8091 | (cc1-checksum.o, C_TREE_H, c/c-aux-info.o, c/c-convert.o) | |
8092 | (c/c-decl.o, c/c-errors.o, c/c-lang.o, c/c-objc-common.o) | |
8093 | (c/c-parser.o, c/c-typeck.o, c/c-array-notation.o): Remove. | |
8094 | ||
f3bc55f0 TT |
8095 | 2013-09-25 Tom Tromey <tromey@redhat.com> |
8096 | ||
8097 | * Make-lang.in (c/gccspec.o): Don't use subshell. | |
8098 | ||
a24d975c MP |
8099 | 2013-09-18 Marek Polacek <polacek@redhat.com> |
8100 | ||
8101 | PR sanitize/58443 | |
8102 | * c-typeck.c (build_binary_op): Properly honor -fsanitize options. | |
8103 | Remove unnecessary check. | |
8104 | ||
ce6923c5 MP |
8105 | 2013-09-18 Marek Polacek <polacek@redhat.com> |
8106 | ||
8107 | PR sanitizer/58411 | |
8108 | * c-typeck.c (build_binary_op): Don't sanitize function if it has the | |
8109 | no_sanitize_undefined attribute. | |
8110 | ||
a1e51df9 KT |
8111 | 2013-09-13 Kai Tietz <ktietz@redhat.com> |
8112 | ||
8113 | PR target/57848 | |
8114 | * c-decl.c (c_builtin_function_ext_scope): Remove | |
8115 | wrong assumption that it is never called on prexisting | |
8116 | symbol. | |
8117 | ||
0af94e6f JR |
8118 | 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com> |
8119 | ||
8120 | * c-typeck.c (build_binary_op): Use vector_types_compatible_elements_p. | |
8121 | ||
20059c8b GDR |
8122 | 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net> |
8123 | ||
8124 | * c-objc-common.c (c_tree_printer): Tidy. | |
8125 | ||
de5a5fa1 MP |
8126 | 2013-08-30 Marek Polacek <polacek@redhat.com> |
8127 | ||
8128 | * c-typeck.c (build_binary_op): Add division by zero and shift | |
8129 | instrumentation. | |
8130 | ||
2531a1d9 | 8131 | 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com> |
0fdd4508 | 8132 | Joseph Myers <joseph@codesourcery.com> |
2531a1d9 | 8133 | |
6e2bcc98 | 8134 | PR c/35649 |
2531a1d9 JR |
8135 | * c-typeck.c (c_common_type): Prefer double_type_node over |
8136 | other REAL_TYPE types with the same precision. | |
8137 | (convert_arguments): Likewise. | |
8138 | ||
025311c4 GDR |
8139 | 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net> |
8140 | ||
8141 | * c-objc-common.c (c_tree_printer): Document the nature of the cast. | |
8142 | (c_initialize_diagnostics): Call a destructor for the early printer. | |
8143 | ||
da6ca2b5 GDR |
8144 | 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net> |
8145 | ||
8146 | * c-objc-common.c (c_initialize_diagnostics): Simplify C pretty | |
8147 | printer initialization. | |
8148 | ||
318cda85 | 8149 | 2013-08-19 Balaji V. Iyer <balaji.v.iyer@intel.com> |
da6ca2b5 | 8150 | |
318cda85 BI |
8151 | PR c/57490 |
8152 | * c-array-notation.c (fix_conditional_array_notations_1): Added a | |
8153 | check for truth values. | |
8154 | (expand_array_notation_exprs): Added truth values case. Removed an | |
8155 | unwanted else. Added for-loop to walk through subtrees in default | |
8156 | case. | |
8157 | ||
b066401f GDR |
8158 | 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net> |
8159 | ||
8160 | * c-objc-common.c (c_initialize_diagnostics): Don't call pp_base. | |
8161 | ||
fb48aadc JM |
8162 | 2013-07-23 Joseph Myers <joseph@codesourcery.com> |
8163 | ||
8164 | * c-parser.c (struct c_generic_association): Fix typo. | |
8165 | ||
433cc7b0 TT |
8166 | 2013-07-23 Tom Tromey <tromey@redhat.com> |
8167 | Joseph Myers <joseph@codesourcery.com> | |
8168 | ||
8169 | * c-parser.c (struct c_generic_association): New. | |
8170 | (c_generic_association_d): New typedef. | |
8171 | (c_parser_generic_selection): New function. | |
8172 | (c_parser_postfix_expression): Handle RID_GENERIC. | |
8173 | ||
26d40c3d JM |
8174 | 2013-07-13 Jason Merrill <jason@redhat.com> |
8175 | ||
8176 | PR c++/57793 | |
8177 | * c-decl.c (finish_struct): Check for too-large class. | |
8178 | ||
ecdbd01a | 8179 | 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com> |
40d3d530 JR |
8180 | |
8181 | PR c/57821 | |
8182 | * c-typeck.c (set_init_index): When folding, check for index overflow. | |
8183 | ||
1141ed3f BI |
8184 | 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com> |
8185 | ||
8186 | * c-parser.c (c_parser_array_notation): Removed rejection of array | |
8187 | notations in an array of function pointers. | |
8188 | ||
713b46fa BI |
8189 | 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com> |
8190 | ||
8191 | * c-array-notation.c (make_triplet_val_inv): New function. | |
8192 | (create_cmp_incr): Likewise. | |
8193 | (create_array_refs): Likewise. | |
8194 | (fix_builtin_array_notation_fn): Replaced all mallocs with tree vec. | |
8195 | Also modularized common parts between functions and called the function. | |
8196 | (build_array_notation_expr): Likewise. | |
8197 | (fix_conditional_array_notations_1): Likewise. | |
8198 | (fix_array_notation_expr): Likewise. | |
8199 | (fix_array_notation_call_expr): Likewise. | |
8200 | ||
92f20202 MP |
8201 | 2013-06-18 Marek Polacek <polacek@redhat.com> |
8202 | ||
8203 | PR c/57630 | |
8204 | * c-decl.c (check_for_loop_decls): Improve diagnostics messages. | |
8205 | ||
73a23b06 BI |
8206 | 2013-06-12 Balaji V. Iyer <balaji.v.iyer@intel.com> |
8207 | ||
8208 | * c-array-notation.c (build_array_notation_expr): Reject array notation | |
8209 | mismatch between LHS and RHS even inside a call_expr. Also, removed | |
8210 | a couple while statements that were dead code. | |
8211 | ||
00b8517d BI |
8212 | 2013-06-10 Balaji V. Iyer <balaji.v.iyer@intel.com> |
8213 | ||
8214 | * c-array-notation.c (fix_builtin_array_notation_fn): Fully folded | |
8215 | excessive precision expressions in function parameters. Also removed | |
8216 | couple unwanted while statements. | |
8217 | ||
1509bdda BI |
8218 | 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com> |
8219 | ||
8220 | * c-array-notation.c (expand_array_notation_exprs): Added | |
8221 | ARRAY_NOTATION_REF case. | |
ab20d992 | 8222 | |
d60f1706 BI |
8223 | 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com> |
8224 | ||
8225 | * c-array-notation.c (length_mismatch_in_expr_p): Moved this | |
8226 | function to c-family/array-notation-common.c. | |
8227 | (is_cilkplus_reduce_builtin): Likewise. | |
8228 | (find_rank): Likewise. | |
8229 | (extract_array_notation_exprs): Likewise. | |
8230 | (replace_array_notations): Likewise. | |
8231 | (find_inv_trees): Likewise. | |
8232 | (replace_inv_trees): Likewise. | |
8233 | (contains_array_notation_expr): Likewise. | |
8234 | (find_correct_array_notation_type): Likewise. | |
8235 | (replace_invariant_exprs): Initialized additional_tcodes to NULL. | |
8236 | (struct inv_list): Moved this to c-family/array-notation-common.c. | |
8237 | * c-tree.h (is_cilkplus_builtin_reduce): Remove prototype. | |
ab20d992 | 8238 | |
6d6efbb3 BI |
8239 | 2013-06-05 Balaji V. Iyer <balaji.v.iyer@intel.com> |
8240 | ||
8241 | * c-typeck.c (convert_arguments): Moved checking of builtin cilkplus | |
8242 | reduction functions outside the for-loop. Added a check if the fundecl | |
8243 | is non-NULL. Finally, removed an unwanted if-statement, and made the | |
8244 | body unconditional. | |
8245 | ||
25c22937 BI |
8246 | 2013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com> |
8247 | ||
8248 | * c-typeck.c (c_finish_if_stmt): Added a check to see if the rank of the | |
8249 | condition of the if-statement matches the rank of else-block and then- | |
8250 | block when array notations are used. | |
8251 | * c-parser.c (c_parser_declaration_or_fndef): Expanded array notation | |
8252 | expression after the entire function body is parsed. | |
8253 | (c_parser_expr_no_commas): Delayed creating array notation expressions | |
8254 | to the end of function parsing. | |
8255 | * c-array-notation.c (fix_conditional_array_notations_1): Expanded the | |
8256 | whole if-statement instead of just the condition. | |
ab20d992 | 8257 | (expand_array_notation_exprs): Added MODIFY_EXPR case. |
25c22937 | 8258 | |
edd25645 BI |
8259 | 2013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com> |
8260 | ||
8261 | PR c/57474 | |
8262 | * c-array-notation.c (build_array_notation_expr): Initialized rhs_length | |
8263 | array to NULL_TREE if they are unused. Also added a check for the | |
8264 | field to be NULL before its fields are used in future. | |
ab20d992 | 8265 | |
065ce7f1 RO |
8266 | 2013-05-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
8267 | ||
8268 | PR bootstrap/57450 | |
8269 | * c-array-notation.c (length_mismatch_in_expr_p): Use absu_hwi. | |
8270 | (build_array_notation_expr): Likewise. | |
8271 | ||
36536d79 BI |
8272 | 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com> |
8273 | ||
8274 | * c-typeck.c (build_array_ref): Added a check to see if array's | |
8275 | index is greater than one. If true, then emit an error. | |
8276 | (build_function_call_vec): Exclude error reporting and checking | |
8277 | for builtin array-notation functions. | |
8278 | (convert_arguments): Likewise. | |
8279 | (c_finish_return): Added a check for array notations as a return | |
8280 | expression. If true, then emit an error. | |
8281 | (c_finish_loop): Added a check for array notations in a loop | |
8282 | condition. If true then emit an error. | |
8283 | (lvalue_p): Added a ARRAY_NOTATION_REF case. | |
8284 | (build_binary_op): Added a check for array notation expr inside | |
8285 | op1 and op0. If present, we call another function to find correct | |
8286 | type. | |
8287 | * Make-lang.in (C_AND_OBJC_OBJS): Added c-array-notation.o. | |
8288 | * c-parser.c (c_parser_compound_statement): Check if array | |
8289 | notation code is used in tree, if so, then transform them into | |
8290 | appropriate C code. | |
8291 | (c_parser_expr_no_commas): Check if array notation is used in LHS | |
8292 | or RHS, if so, then build array notation expression instead of | |
8293 | regular modify. | |
8294 | (c_parser_postfix_expression_after_primary): Added a check for | |
8295 | colon(s) after square braces, if so then handle it like an array | |
8296 | notation. Also, break up array notations in unary op if found. | |
8297 | (c_parser_direct_declarator_inner): Added a check for array | |
8298 | notation. | |
8299 | (c_parser_compound_statement): Added a check for array notation in | |
8300 | a stmt. If one is present, then expand array notation expr. | |
8301 | (c_parser_if_statement): Likewise. | |
8302 | (c_parser_switch_statement): Added a check for array notations in | |
8303 | a switch statement's condition. If true, then output an error. | |
8304 | (c_parser_while_statement): Similarly, but for a while. | |
8305 | (c_parser_do_statement): Similarly, but for a do-while. | |
8306 | (c_parser_for_statement): Similarly, but for a for-loop. | |
8307 | (c_parser_unary_expression): Check if array notation is used in a | |
8308 | pre-increment or pre-decrement expression. If true, then expand | |
8309 | them. | |
8310 | (c_parser_array_notation): New function. | |
8311 | * c-array-notation.c: New file. | |
8312 | * c-tree.h (is_cilkplus_reduce_builtin): Protoize. | |
ab20d992 | 8313 | |
cd192ccc MS |
8314 | 2013-05-23 Mike Stump <mikestump@comcast.net> |
8315 | ||
8316 | * c-typeck.c (convert_for_assignment): Handle references to memory | |
8317 | spaces better. | |
8318 | ||
427b248d JM |
8319 | 2013-05-16 Jason Merrill <jason@redhat.com> |
8320 | ||
8321 | * Make-lang.in (cc1$(exeext)): Use link mutex. | |
8322 | ||
44d90fe1 PC |
8323 | 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com> |
8324 | ||
8325 | * c-typeck.c (pointer_diff): Change -Wpointer-arith pedwarns | |
8326 | to simply use OPT_Wpointer_arith. | |
8327 | (build_unary_op): Likewise. | |
8328 | ||
4e7d7b3d JJ |
8329 | 2013-04-03 Jakub Jelinek <jakub@redhat.com> |
8330 | ||
8331 | PR c/19449 | |
8332 | * c-parser.c (c_parser_get_builtin_args): Add choose_expr_p | |
8333 | argument. If set, or it temporarily for parsing of the first | |
8334 | argument into force_folding_builtin_constant_p. | |
8335 | (c_parser_postfix_expression): Adjust callers. | |
8336 | ||
839b422f RB |
8337 | 2013-03-21 Richard Biener <rguenther@suse.de> |
8338 | ||
8339 | * c-objc-common.c (c_tree_printer): Use DECL_HAS_DEBUG_EXPR_P | |
8340 | instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly. | |
8341 | ||
2ee028f1 MP |
8342 | 2013-02-12 Marek Polacek <polacek@redhat.com> |
8343 | ||
8344 | PR c/44938 | |
8345 | * c-parser.c (c_parser_postfix_expression_after_primary): Initialize | |
8346 | origtypes to NULL. | |
8347 | ||
8824edff JJ |
8348 | 2013-01-24 Jakub Jelinek <jakub@redhat.com> |
8349 | ||
8350 | PR c/56078 | |
8351 | * c-typeck.c (set_nonincremental_init_from_string): If | |
8352 | constructor_max_index is NULL, treat it as if tree_int_cst_lt | |
8353 | returned false. | |
8354 | (process_init_element): Likewise. | |
8355 | ||
eadd3d0d JJ |
8356 | 2012-12-20 Jakub Jelinek <jakub@redhat.com> |
8357 | ||
8358 | PR c++/55619 | |
8359 | * c-parser.c (c_parser_asm_operands): Remove CONVERT_P | |
8360 | argument, don't call default_function_array_conversion | |
8361 | nor c_fully_fold here. | |
8362 | (c_parser_asm_statement): Adjust callers. | |
8363 | * c-typeck.c (build_asm_expr): Call c_fully_fold on inputs | |
8364 | and outputs here, and call default_function_array_conversion | |
8365 | on inputs that don't need to be addressable. | |
8366 | ||
f8a93a2e JJ |
8367 | 2012-12-18 Jakub Jelinek <jakub@redhat.com> |
8368 | ||
8369 | PR c/39464 | |
8370 | * c-typeck.c (convert_for_assignment): For -Wpointer-sign | |
8371 | warning require that both c_common_unsigned_type as well as | |
8372 | c_common_signed_type is the same for both mvl and mvr types. | |
8373 | ||
9771b263 DN |
8374 | 2012-11-16 Diego Novillo <dnovillo@google.com> |
8375 | ||
8376 | Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec) | |
8377 | ||
8378 | * c-common.c: Use new vec API in vec.h. | |
8379 | * c-common.h: Likewise. | |
8380 | * c-gimplify.c: Likewise. | |
8381 | * c-pragma.c: Likewise. | |
8382 | * c-pretty-print.c: Likewise. | |
8383 | * c-pretty-print.h: Likewise. | |
8384 | * c-semantics.c: Likewise. | |
8385 | * c-decl.c: Likewise. | |
8386 | * c-parser.c: Likewise. | |
8387 | * c-tree.h: Likewise. | |
8388 | * c-typeck.c: Likewise. | |
8389 | ||
880661a4 JW |
8390 | 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com> |
8391 | ||
8392 | PR c++/54930 | |
8393 | * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr. | |
8394 | ||
077d1abe MLI |
8395 | 2012-10-29 Manuel López-Ibáñez <manu@gcc.gnu.org> |
8396 | ||
8397 | PR c/53066 | |
8398 | * c-decl.c (warn_if_shadowing): Do not warn if a variable | |
8399 | shadows a function, unless the variable is a function or a | |
8400 | pointer-to-function. | |
8401 | ||
3a785c97 JJ |
8402 | 2012-10-12 Jakub Jelinek <jakub@redhat.com> |
8403 | ||
8404 | PR c/54381 | |
8405 | * c-parser.c (struct c_tree_loc_pair): Removed. | |
8406 | (c_parser_expr_list): Remove struct c_tree_loc_pair * argument, | |
8407 | add location_t * and tree * arguments, fill in array of 3 | |
8408 | sizeof_arg trees and corresponding locs. | |
8409 | (c_parser_attributes, c_parser_objc_keywordexpr): Adjust | |
8410 | c_parser_expr_list callers. | |
8411 | (c_parser_postfix_expression_after_primary): Likewise. Pass | |
8412 | array of 3 sizeof_arg trees and locs (corresponding to first | |
8413 | 3 arguments) to sizeof_pointer_memaccess_warning. | |
8414 | ||
703c8606 LC |
8415 | 2012-10-09 Lawrence Crowl <crowl@google.com> |
8416 | ||
8417 | * Make-lang.in (c-decl.o): Add dependence on hash-table.h. | |
8418 | * c-decl.c (detect_field_duplicates_hash): Change to new type-safe | |
8419 | hash table. | |
8420 | ||
5d9de0d0 PC |
8421 | 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com> |
8422 | ||
8423 | PR c++/54194 | |
8424 | * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses | |
8425 | call. | |
8426 | ||
a212e43f MG |
8427 | 2012-10-09 Marc Glisse <marc.glisse@inria.fr> |
8428 | ||
8429 | PR c++/54427 | |
8430 | * c-typeck.c: Include c-common.h. | |
8431 | (enum stv_conv): Moved to c-common.h. | |
8432 | (scalar_to_vector): Moved to c-common.c. | |
8433 | (build_binary_op): Adapt to scalar_to_vector's new prototype. | |
8434 | * Make-lang.in: c-typeck.c depends on c-common.h. | |
8435 | ||
3b78de56 AC |
8436 | 2012-10-04 Arnaud Charlet <charlet@adacore.com> |
8437 | ||
8438 | * c-decl.c (c_write_global_declarations): Fix handling of | |
8439 | -fdump-ada-spec*. | |
8440 | ||
78c60e3d SS |
8441 | 2012-09-30 Sharad Singhai <singhai@google.com> |
8442 | ||
8443 | * c-decl.c (c_write_global_declarations): Use a different method | |
8444 | to determine if the dump has ben initialized. | |
8445 | ||
9f33203d JM |
8446 | 2012-09-14 Joseph Myers <joseph@codesourcery.com> |
8447 | ||
8448 | PR c/54552 | |
8449 | * c-typeck.c (c_cast_expr): When casting to a type requiring | |
8450 | C_MAYBE_CONST_EXPR to be created, pass the inner expression to | |
8451 | c_fully_fold first. | |
8452 | ||
a27d595d JM |
8453 | 2012-09-14 Joseph Myers <joseph@codesourcery.com> |
8454 | ||
8455 | PR c/54103 | |
8456 | * c-typeck.c (build_unary_op): Pass original argument of | |
8457 | TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove | |
8458 | any C_MAYBE_CONST_EXPR, if it has integer operands. | |
8459 | (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR, | |
8460 | TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR | |
8461 | to c_objc_common_truthvalue_conversion, then remove any | |
8462 | C_MAYBE_CONST_EXPR, if they have integer operands. Use | |
8463 | c_objc_common_truthvalue_conversion not | |
8464 | c_common_truthvalue_conversion. | |
8465 | (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and | |
8466 | call note_integer_operands for arguments with integer operands | |
8467 | that are not integer constants. | |
8468 | ||
9feb29df JJ |
8469 | 2012-09-13 Jakub Jelinek <jakub@redhat.com> |
8470 | ||
8471 | PR c/54559 | |
8472 | * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or | |
8473 | COMPLEX_TYPE with in_late_binary_op set temporarily to true. | |
8474 | ||
d409320c JJ |
8475 | 2012-08-31 Jakub Jelinek <jakub@redhat.com> |
8476 | ||
8477 | PR c/54428 | |
8478 | * c-convert.c (convert): Don't call fold_convert_loc if | |
8479 | TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e | |
8480 | is a COMPLEX_EXPR. Remove TYPE_MAIN_VARIANT check from | |
8481 | COMPLEX_TYPE -> COMPLEX_TYPE conversion. | |
8482 | ||
6265d07c JJ |
8483 | 2012-08-24 Jakub Jelinek <jakub@redhat.com> |
8484 | ||
8485 | PR c/54355 | |
8486 | * c-decl.c (c_parser_label): Pass true as nested and fix up comments | |
8487 | for nested and empty_ok arguments in the call to | |
8488 | c_parser_declaration_or_fndef. | |
8489 | ||
1a4049e7 JJ |
8490 | 2012-08-17 Jakub Jelinek <jakub@redhat.com> |
8491 | ||
8492 | * c-tree.h (c_last_sizeof_arg): Declare. | |
8493 | * c-parser.c (struct c_tree_loc_pair): New type. | |
8494 | (c_parser_expr_list): Add sizeof_arg argument. Fill it in if | |
8495 | non-NULL. | |
8496 | (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers. | |
8497 | (c_parser_postfix_expression_after_primary): Likewise. Call | |
8498 | sizeof_pointer_memaccess_warning if needed. | |
8499 | (sizeof_ptr_memacc_comptypes): New function. | |
8500 | * c-typeck.c (c_last_sizeof_arg): New global variable. | |
8501 | (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it. | |
8502 | ||
0229aee9 UB |
8503 | 2012-07-24 Uros Bizjak <ubizjak@gmail.com> |
8504 | ||
8505 | * c-lang.h (lang_decl): Add variable_size GTY option. | |
8506 | ||
7ee2468b SB |
8507 | 2012-07-16 Steven Bosscher <steven@gcc.gnu.org> |
8508 | ||
8509 | * c-decl.c: Include dumpfile.h instead of tree-dump.h. | |
8510 | * Make-lang.in: Fix dependencies. | |
8511 | ||
d4a10d0a SB |
8512 | 2012-06-29 Steven Bosscher <steven@gcc.gnu.org> |
8513 | ||
8514 | * Make-lang.in: New file, rules migrated from gcc/Makefile.in | |
8515 | and add language Makefile hooks. | |
8516 | * config-lang.in: New file. | |
8517 | * c-config-lang.in: Moved from gcc/config-lang.in to here, and | |
8518 | add the required "normal" config-lang.in rules. | |
8519 | * c-lang.h: Moved from gcc/ to here. | |
8520 | * c-tree.h: Likewise. | |
8521 | * c-objc-common.c: Likewise. | |
8522 | * c-objc-common.h: Likewise. | |
8523 | * c-typeck.c: Likewise. | |
8524 | * c-convert.c: Likewise. | |
8525 | * c-lang.c: Likewise. | |
8526 | * c-aux-info.c: Likewise. | |
8527 | * c-errors.c: Likewise. | |
8528 | * gccspec.c: Likewise. | |
8529 | * c-decl.c: Likewise. Include gt-c-c-decl.h, not gt-c-decl.h. | |
8530 | * c-parser.c: Likewise. Include gt-c-c-parser.h, not gt-c-parser.h. | |
8531 | \f | |
877e3c2a | 8532 | Copyright (C) 2012-2022 Free Software Foundation, Inc. |
d4a10d0a SB |
8533 | |
8534 | Copying and distribution of this file, with or without modification, | |
8535 | are permitted in any medium without royalty provided the copyright | |
8536 | notice and this notice are preserved. |