]>
Commit | Line | Data |
---|---|---|
b2417b59 JJ |
1 | 2019-11-14 Jakub Jelinek <jakub@redhat.com> |
2 | ||
bedb7f04 JJ |
3 | * c-parser.c (c_parser_omp_context_selector): Don't require score |
4 | argument to fit into shwi, just to be INTEGER_CST. Diagnose | |
5 | negative score. | |
6 | ||
b2417b59 JJ |
7 | * c-parser.c (c_parser_omp_context_selector): Rename |
8 | CTX_PROPERTY_IDLIST to CTX_PROPERTY_NAME_LIST, add CTX_PROPERTY_ID. | |
9 | Use CTX_PROPERTY_ID for atomic_default_mem_order, only allow a single | |
10 | identifier in that. For CTX_PROPERTY_NAME_LIST, allow identifiers | |
11 | and string literals. | |
12 | ||
4e03c3a7 JM |
13 | 2019-11-14 Joseph Myers <joseph@codesourcery.com> |
14 | ||
15 | * c-tree.h (enum c_typespec_kind): Add ctsk_tagref_attrs and | |
16 | ctsk_tagfirstref_attrs. | |
17 | (struct c_declspecs): Update description of attrs. Add | |
18 | postfix_attrs and non_std_attrs_seen_p. Increase size of | |
19 | typespec_kind bit-field. | |
20 | (c_warn_unused_attributes): New declaration. | |
21 | (parser_xref_tag): Update prototype. | |
22 | * c-decl.c (c_warn_unused_attributes): New function. | |
23 | (shadow_tag_warned): Handle ctsk_tagfirstref_attrs and | |
24 | ctsk_tagref_attrs. Handle attribute declarations. | |
25 | (check_compound_literal_type): Handle ctsk_tagfirstref_attrs. | |
26 | (grokdeclarator): Handle standard attributes. | |
27 | (parser_xref_tag): Add arguments have_std_attrs and attrs. Apply | |
28 | attributes to incomplete type reference. | |
29 | (xref_tag): Update call to parser_xref_tag. | |
30 | (declspecs_add_addrspace, declspecs_add_type) | |
31 | (declspecs_add_scspec, declspecs_add_attrs): Set | |
32 | non_std_attrs_seen_p. | |
33 | (finish_declspecs): Apply postfix standard attributes to type. | |
34 | * c-parser.c (c_token_starts_declspecs) | |
35 | (c_token_starts_declaration, c_parser_next_token_starts_declspecs) | |
36 | (c_parser_next_tokens_start_declaration): Update comments. | |
37 | (c_parser_consume_token, c_parser_consume_pragma): Handle moving | |
38 | parser->tokens[2] to parser->tokens[1]. | |
39 | (c_parser_nth_token_starts_std_attributes) | |
40 | (c_parser_std_attribute_specifier_sequence): New functions. | |
41 | (c_parser_declaration_or_fndef): Add arguments have_attrs and | |
42 | attrs. All callers changed. Handle standard attributes. | |
43 | (c_parser_parms_declarator, c_parser_parms_list_declarator) | |
44 | (c_parser_parameter_declaration): Add argument have_gnu_attrs. | |
45 | All callers changed. | |
46 | (c_parser_declspecs): Add arguments start_std_attr_ok and | |
47 | end_std_attr_ok. All callers changed. Handle standard | |
48 | attributes. | |
49 | (c_parser_enum_specifier, c_parser_struct_or_union_specifier) | |
50 | (c_parser_direct_declarator, c_parser_direct_declarator_inner) | |
51 | (c_parser_compound_statement_nostart, c_parser_all_labels) | |
52 | (c_parser_label, c_parser_statement, c_parser_for_statement): | |
53 | Handle standard attributes. | |
54 | * c-parser.h (c_parser_declspecs): Update prototype. | |
55 | * gimple-parser.c (c_parser_gimple_declaration): Update call to | |
56 | c_parser_declspecs. | |
57 | ||
0c29cac4 ML |
58 | 2019-11-12 Martin Liska <mliska@suse.cz> |
59 | ||
60 | * gimple-parser.c: Do not include params.h. | |
61 | ||
028d4092 ML |
62 | 2019-11-12 Martin Liska <mliska@suse.cz> |
63 | ||
64 | * gimple-parser.c (c_parser_parse_gimple_body): Replace old parameter syntax | |
65 | with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET | |
66 | macro. | |
67 | ||
62aee289 MR |
68 | 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com> |
69 | Frederik Harwath <frederik@codesourcery.com> | |
70 | ||
71 | gcc/c/ | |
72 | * c-parser.c (OACC_SERIAL_CLAUSE_MASK): New macro. | |
73 | (c_parser_oacc_kernels_parallel): Rename function to... | |
74 | (c_parser_oacc_compute): ... this. Handle PRAGMA_OACC_SERIAL. | |
75 | (c_parser_omp_construct): Update accordingly. | |
76 | ||
77 | ||
7cec9588 JJ |
78 | 2019-11-11 Jakub Jelinek <jakub@redhat.com> |
79 | ||
80 | * c-parser.c (c_parser_translation_unit): Diagnose declare target | |
81 | without corresponding end declare target. | |
82 | ||
f486280c RS |
83 | 2019-11-08 Richard Sandiford <richard.sandiford@arm.com> |
84 | ||
85 | * c-convert.c (convert): Only handle vector conversions if one of | |
86 | the types satisfies gnu_vector_type_p or if -flax-vector-conversions | |
87 | allows it. | |
88 | * c-typeck.c (build_array_ref): Only allow vector indexing if the | |
89 | vectors satisfy gnu_vector_type_p. | |
90 | (build_unary_op): Only allow unary operators to be applied to | |
91 | vectors if they satisfy gnu_vector_type_p. | |
92 | (digest_init): Only allow by-element initialization of vectors | |
93 | if they satisfy gnu_vector_type_p. | |
94 | (really_start_incremental_init): Likewise. | |
95 | (push_init_level): Likewise. | |
96 | (pop_init_level): Likewise. | |
97 | (process_init_element): Likewise. | |
98 | (build_binary_op): Only allow binary operators to be applied to | |
99 | vectors if they satisfy gnu_vector_type_p. | |
100 | ||
017c6491 JM |
101 | 2019-11-08 Joseph Myers <joseph@codesourcery.com> |
102 | ||
103 | * c-decl.c (grokparms): Convert () in a function definition to | |
104 | (void) for C2x. | |
105 | (store_parm_decls_oldstyle): Pedwarn for C2x. | |
106 | (store_parm_decls): Update comment about () not generating a | |
107 | prototype. | |
108 | ||
c01bd174 JM |
109 | 2019-11-07 Joseph Myers <joseph@codesourcery.com> |
110 | ||
111 | * c-parser.c (c_parser_attribute_arguments): New function. | |
112 | Factored out of c_parser_gnu_attribute. | |
113 | (c_parser_gnu_attribute): Use c_parser_attribute_arguments. | |
114 | (c_parser_balanced_token_sequence, c_parser_std_attribute) | |
115 | (c_parser_std_attribute_specifier): New functions. | |
116 | (c_parser_transaction_attributes): Use | |
117 | c_parser_std_attribute_specifier. | |
118 | ||
471c5330 JM |
119 | 2019-11-07 Joseph Myers <joseph@codesourcery.com> |
120 | ||
121 | * c-parser.c (c_parser): Remove lex_untranslated_string. Add | |
122 | lex_joined_string and translate_strings_p. | |
123 | (c_lex_one_token): Pass 0 or C_LEX_STRING_NO_JOIN to | |
124 | c_lex_with_flags. | |
125 | (c_parser_string_literal): New function. | |
126 | (c_parser_static_assert_declaration_no_semi): Use | |
127 | c_parser_string_literal. Do not set lex_untranslated_string. | |
128 | (c_parser_asm_string_literal): Use c_parser_string_literal. | |
129 | (c_parser_simple_asm_expr): Do not set lex_untranslated_string. | |
130 | (c_parser_gnu_attributes): Set and restore translate_strings_p | |
131 | instead of lex_untranslated_string. | |
132 | (c_parser_asm_statement): Do not set lex_untranslated_string. | |
133 | (c_parser_asm_operands): Likewise. | |
134 | (c_parser_has_attribute_expression): Set and restore | |
135 | translate_strings_p instead of lex_untranslated_string. | |
136 | (c_parser_postfix_expression): Use c_parser_string_literal. | |
137 | (pragma_lex): Likewise. | |
138 | (c_parser_pragma_pch_preprocess): Set lex_joined_string. | |
139 | (c_parse_file): Set translate_strings_p. | |
140 | * gimple-parser.c (c_parser_gimple_postfix_expression) | |
141 | (c_parser_gimple_or_rtl_pass_list): Use c_parser_string_literal. | |
142 | * c-parser.c (c_parser_string_literal): Declare function. | |
143 | ||
d0c464d2 JJ |
144 | 2019-11-02 Jakub Jelinek <jakub@redhat.com> |
145 | ||
146 | * c-parser.c (c_finish_omp_declare_variant): Use | |
147 | omp_get_context_selector instead of c_omp_get_context_selector. | |
148 | ||
ac2cfa6c RS |
149 | 2019-10-29 Richard Sandiford <richard.sandiford@arm.com> |
150 | ||
151 | * c-tree.h (c_simulate_enum_decl): Declare. | |
152 | * c-decl.c (c_simulate_enum_decl): New function. | |
153 | * c-objc-common.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define to the above. | |
154 | ||
74078538 RS |
155 | 2019-10-29 Richard Sandiford <richard.sandiford@arm.com> |
156 | ||
157 | * c-tree.h (c_simulate_builtin_function_decl): Declare. | |
158 | * c-decl.c (c_simulate_builtin_function_decl): New function. | |
159 | * c-objc-common.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define | |
160 | to the above. | |
161 | ||
ad1539d5 MS |
162 | 2019-10-28 Martin Sebor <msebor@redhat.com> |
163 | ||
164 | PR c/66970 | |
165 | * c-decl.c (names_builtin_p): Define a new function. | |
166 | ||
cb73e4e7 RB |
167 | 2019-10-28 Richard Biener <rguenther@suse.de> |
168 | ||
169 | PR c/92249 | |
170 | * gimple-parser.c (c_parser_parse_gimple_body): Make | |
171 | current_bb the entry block initially to easier recover | |
172 | from errors. | |
173 | (c_parser_gimple_compound_statement): Adjust. | |
174 | ||
135df52c JJ |
175 | 2019-10-24 Jakub Jelinek <jakub@redhat.com> |
176 | ||
177 | * c-parser.c (c_finish_omp_declare_variant): Use | |
178 | omp_context_selector_matches instead of | |
179 | c_omp_context_selector_matches. | |
180 | * c-decl.c (c_decl_attributes): Add "omp declare target block" | |
181 | attribute in between declare target and end declare target | |
182 | pragmas. | |
183 | ||
783bfe5e JM |
184 | 2019-10-15 Joseph Myers <joseph@codesourcery.com> |
185 | ||
186 | * c-parser.c (c_parser_attribute_any_word): Rename to | |
187 | c_parser_gnu_attribute_any_word. All callers changed. | |
188 | (c_parser_attribute): Rename to c_parser_gnu_attribute. All | |
189 | callers changed. | |
190 | (c_parser_attributes): Rename to c_parser_gnu_attributes. All | |
191 | callers changed. | |
192 | (c_parser_declaration_or_fndef, c_parser_declspecs) | |
193 | (c_parser_enum_specifier, c_parser_struct_or_union_specifier) | |
194 | (c_parser_struct_declaration, c_parser_declarator) | |
195 | (c_parser_gnu_attribute, c_parser_compound_statement) | |
196 | (c_parser_label, c_parser_statement, c_parser_objc_method_decl) | |
197 | (c_parser_transaction_attributes): Add "gnu-" prefix to names of | |
198 | attribute-related syntax productions. | |
199 | ||
56898e43 RS |
200 | 2019-10-14 Richard Sandiford <richard.sandiford@arm.com> |
201 | ||
202 | * c-objc-common.c (useful_aka_type_p): Replace with... | |
203 | (get_aka_type): ...this new function. Given the original type, | |
204 | decide which aka type to print (if any). Only look through typedefs | |
205 | if user_facing_original_type_p. | |
206 | (print_type): Update accordingly. | |
207 | ||
b9424661 JJ |
208 | 2019-10-14 Jakub Jelinek <jakub@redhat.com> |
209 | ||
210 | * c-parser.c (c_parser_omp_all_clauses): Change bool NESTED_P argument | |
211 | into int NESTED, if it is 2, diagnose missing commas in between | |
212 | clauses. | |
213 | (c_parser_omp_context_selector): Pass 2 as last argument to | |
214 | c_parser_omp_all_clauses. | |
215 | ||
20de9568 JJ |
216 | 2019-10-12 Jakub Jelinek <jakub@redhat.com> |
217 | ||
218 | * c-parser.c (c_parser_omp_context_selector): Improve error recovery. | |
219 | For simd properties, put them directly into TREE_VALUE. | |
220 | (c_finish_omp_declare_variant): Call c_omp_mark_declare_variant. | |
221 | If c_omp_context_selector_matches is 0, don't add attribute, otherwise | |
222 | add "omp declare variant base" attribute rather than | |
223 | "omp declare variant". | |
224 | ||
fe2bc27c JM |
225 | 2019-10-11 Joseph Myers <joseph@codesourcery.com> |
226 | ||
227 | * c-decl.c (declspecs_add_type): Use pedwarn_c11 for DFP types. | |
228 | ||
94e7f906 JJ |
229 | 2019-10-10 Jakub Jelinek <jakub@redhat.com> |
230 | ||
231 | * c-parser.c (c_parser_omp_all_clauses): Add NESTED_P argument, if | |
232 | true, terminate processing on closing paren and don't skip to end of | |
233 | pragma line. | |
234 | (c_parser_omp_declare_simd): Handle also declare variant. | |
235 | (omp_construct_selectors, omp_device_selectors, | |
236 | omp_implementation_selectors, omp_user_selectors): New variables. | |
237 | (c_parser_omp_context_selector, | |
238 | c_parser_omp_context_selector_specification, | |
239 | c_finish_omp_declare_variant): New functions. | |
240 | (c_finish_omp_declare_simd): Handle both declare simd and | |
241 | declare variant. | |
242 | (c_parser_omp_declare): Handle declare variant. | |
243 | ||
93313b94 JM |
244 | 2019-10-02 Joseph Myers <joseph@codesourcery.com> |
245 | ||
246 | * c-parser.c (c_parser_asm_statement): Handle CPP_SCOPE like two | |
247 | CPP_COLON tokens. | |
248 | ||
55879815 RS |
249 | 2019-10-01 Richard Sandiford <richard.sandiford@arm.com> |
250 | ||
251 | * c-objc-common.c (useful_aka_type_p): New function. | |
252 | (print_type): Use it to decide whether an aka type is worth printing. | |
253 | ||
59bc434a JJ |
254 | 2019-09-27 Jakub Jelinek <jakub@redhat.com> |
255 | ||
256 | PR c++/88203 | |
257 | * c-parser.c (c_parser_predefined_identifier): New function. | |
258 | (c_parser_postfix_expression): Use it. | |
259 | (c_parser_omp_variable_list): Parse predefined identifiers. | |
260 | * c-typeck.c (c_finish_omp_clauses): Allow predefined variables | |
261 | in shared and firstprivate clauses, even when they are predetermined | |
262 | shared. | |
263 | ||
c6447c20 RS |
264 | 2019-09-27 Richard Sandiford <richard.sandiford@arm.com> |
265 | ||
266 | * c-typeck.c (build_function_call_vec): Take the original function | |
267 | decl as an optional final parameter. Pass all built-in calls to | |
268 | check_builtin_function_arguments. | |
269 | ||
522da4c2 EB |
270 | 2019-09-20 Eric Botcazou <ebotcazou@adacore.com> |
271 | ||
272 | PR c/91815 | |
273 | * c-decl.c (pushdecl): In C detect duplicate declarations across scopes | |
274 | of identifiers in the external scope only for variables and functions. | |
275 | ||
68e2c199 PK |
276 | 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
277 | ||
278 | PR c/78736 | |
279 | * c-typeck.c (convert_for_assignment): Handle Wenum-conversion. | |
280 | ||
22f8849d IS |
281 | 2019-08-23 Iain Sandoe <iain@sandoe.co.uk> |
282 | ||
283 | PR pch/61250 | |
284 | * c-parser.c (c_parse_file): Call c_common_no_more_pch () | |
285 | after determining that the first token is not | |
286 | PRAGMA_GCC_PCH_PREPROCESS. | |
287 | ||
db376f45 EB |
288 | 2019-08-22 Eric Botcazou <ebotcazou@adacore.com> |
289 | ||
290 | * c-parser.c (c_parser_declaration_or_fndef): Set DECL_ARGUMENTS of a | |
291 | FUNCTION_DECL to the right value in the presence of nested declarators. | |
292 | ||
4d732405 RS |
293 | 2019-08-13 Richard Sandiford <richard.sandiford@arm.com> |
294 | ||
295 | PR middle-end/91421 | |
296 | * c-decl.c (merge_decls): Use copy_decl_built_in_function. | |
297 | ||
cb1180d5 RS |
298 | 2019-08-13 Richard Sandiford <richard.sandiford@arm.com> |
299 | ||
300 | PR middle-end/91421 | |
301 | * c-decl.c (header_for_builtin_fn): Take a FUNCTION_DECL instead | |
302 | of a built_in_function. | |
303 | (diagnose_mismatched_decls, implicitly_declare): Update accordingly. | |
304 | ||
77eb117f JJ |
305 | 2019-08-10 Jakub Jelinek <jakub@redhat.com> |
306 | ||
307 | * c-parser.c (c_parser_omp_clause_name): Parse device_type. | |
308 | (c_parser_omp_clause_device_type): New function. | |
309 | (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_DEVICE_TYPE. | |
310 | (OMP_DECLARE_TARGET_CLAUSE_MASK): Add PRAGMA_OMP_CLAUSE_DEVICE_TYPE. | |
311 | (c_parser_omp_declare_target): Handle device_type clauses. Remove | |
312 | diagnostics for declare target with clauses nested in clause-less | |
313 | declare target declaration-definition-seq. | |
314 | * c-typeck.c (c_finish_omp_clauses): Handle OMP_CLAUSE_DEVICE_TYPE. | |
315 | ||
2c3b8bad JJ |
316 | 2019-08-09 Jakub Jelinek <jakub@redhat.com> |
317 | ||
bb522e2e JJ |
318 | * c-parser.c (check_no_duplicate_clause): Simplify using |
319 | omp_find_clause. | |
320 | (c_parser_omp_clause_if): Fix up printing of target {enter,exit} data | |
321 | directive name modifiers. | |
322 | (c_parser_omp_clause_proc_bind): Check for duplicate proc_bind clause. | |
323 | ||
2c3b8bad JJ |
324 | PR c/91401 |
325 | * c-parser.c (c_parser_omp_clause_dist_schedule): Fix up typos in the | |
326 | check_no_duplicate_clause call. Comment it out, instead emit a | |
327 | warning for duplicate dist_schedule clauses. | |
328 | ||
99769e7f RS |
329 | 2019-08-08 Richard Sandiford <richard.sandiford@arm.com> |
330 | ||
331 | * c-decl.c (finish_enum): Clear C_TYPE_BEING_DEFINED. | |
332 | ||
8860d270 JJ |
333 | 2019-08-08 Jakub Jelinek <jakub@redhat.com> |
334 | ||
335 | * c-typeck.c (c_finish_omp_clauses): For C_ORT_OMP | |
336 | OMP_CLAUSE_USE_DEVICE_* clauses use oacc_reduction_head bitmap | |
337 | instead of generic_head to track duplicates. | |
338 | ||
398e3feb JJ |
339 | 2019-08-07 Jakub Jelinek <jakub@redhat.com> |
340 | ||
341 | * c-parser.c (c_parser_omp_clause_name): Parse use_device_addr clause. | |
342 | (c_parser_omp_clause_use_device_addr): New function. | |
343 | (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_USE_DEVICE_ADDR. | |
344 | (OMP_TARGET_DATA_CLAUSE_MASK): Add PRAGMA_OMP_CLAUSE_USE_DEVICE_ADDR. | |
345 | (c_parser_omp_target_data): Handle PRAGMA_OMP_CLAUSE_USE_DEVICE_ADDR | |
346 | like PRAGMA_OMP_CLAUSE_USE_DEVICE_PTR, adjust diagnostics about no | |
347 | map or use_device_* clauses. | |
348 | * c-typeck.c (c_finish_omp_clauses): For OMP_CLAUSE_USE_DEVICE_PTR | |
349 | in OpenMP, require pointer type rather than pointer or array type. | |
350 | Handle OMP_CLAUSE_USE_DEVICE_ADDR. | |
351 | ||
a28351e7 JJ |
352 | 2019-07-31 Jakub Jelinek <jakub@redhat.com> |
353 | ||
354 | PR c/91192 | |
355 | * c-parser.c (c_parser_sizeof_expression): Call set_c_expr_source_range | |
356 | even if finish is UNKNOWN_LOCATION, just use start as finish in that | |
357 | case. | |
358 | ||
6343b6bf ML |
359 | 2019-07-25 Martin Liska <mliska@suse.cz> |
360 | Dominik Infuhr <dominik.infuehr@theobroma-systems.com> | |
361 | ||
362 | PR c++/23383 | |
363 | * c-decl.c (merge_decls): Merge OPERATOR_DELETE flag. | |
364 | ||
cb50701e ML |
365 | 2019-07-25 Martin Liska <mliska@suse.cz> |
366 | ||
367 | * c-decl.c (merge_decls): Use new macros | |
368 | (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P). | |
369 | ||
62e3e66f RB |
370 | 2019-07-23 Richard Biener <rguenther@suse.de> |
371 | ||
372 | PR tree-optimization/83518 | |
373 | * gimple-parser.c (c_parser_parse_gimple_body): When we have | |
374 | a CFG also rebuild cgraph edges. | |
375 | ||
554a530f JJ |
376 | 2019-07-20 Jakub Jelinek <jakub@redhat.com> |
377 | ||
378 | * c-parser.c (c_parser_omp_clause_name): Handle bind clause. | |
379 | (c_parser_omp_clause_bind): New function. | |
380 | (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_BIND. | |
381 | (OMP_LOOP_CLAUSE_MASK): Define. | |
382 | (c_parser_omp_loop): New function. | |
383 | (c_parser_omp_parallel, c_parser_omp_teams): Handle parsing of | |
384 | loop combined with parallel or teams. | |
385 | (c_parser_omp_construct): Handle PRAGMA_OMP_LOOP. | |
386 | * c-typeck.c (c_finish_omp_clauses): Handle OMP_CLAUSE_BIND. | |
387 | ||
d119bf79 RS |
388 | 2019-07-18 Richard Sandiford <richard.sandiford@arm.com> |
389 | ||
390 | PR c/53633 | |
391 | * c-decl.c (finish_function): Check targetm.warn_func_return | |
392 | before issuing a -Wreturn-type warning. | |
393 | ||
ab20d992 | 394 | 2019-07-12 Alexandre Oliva <oliva@adacore.com> |
fdc1f343 AO |
395 | |
396 | * gimple-parser.c (c_parser_gimple_try_stmt): New. | |
397 | (c_parser_compound_statement): Call it. | |
398 | ||
1fdd6f04 JJ |
399 | 2019-07-12 Jakub Jelinek <jakub@redhat.com> |
400 | ||
401 | * c-parser.c (c_parser_omp_clause_name): Handle order clause. | |
402 | (c_parser_omp_clause_order): New function. | |
403 | (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_ORDER. | |
404 | (OMP_SIMD_CLAUSE_MASK, OMP_FOR_CLAUSE_MASK): Add | |
405 | PRAGMA_OMP_CLAUSE_ORDER. | |
406 | * c-typeck.c (c_finish_omp_clauses): Handle OMP_CLAUSE_ORDER. | |
407 | ||
8389386c RB |
408 | 2019-07-10 Richard Biener <rguenther@suse.de> |
409 | ||
410 | * gimple-parser.c (c_parser_gimple_postfix_expression): Support | |
411 | _Literal (int *) &x for address literals. | |
412 | ||
99b1c316 MS |
413 | 2019-07-09 Martin Sebor <msebor@redhat.com> |
414 | ||
415 | PR c++/61339 | |
416 | * c-decl.c (xref_tag): Change class-key of PODs to struct and others | |
417 | to class. | |
418 | (field_decl_cmp): Same. | |
419 | * c-parser.c (c_parser_struct_or_union_specifier): Same. | |
420 | * c-tree.h: Same. | |
421 | * gimple-parser.c (c_parser_gimple_compound_statement): Same. | |
422 | ||
6c1dae73 MS |
423 | 2019-07-09 Martin Sebor <msebor@redhat.com> |
424 | ||
425 | PR c++/61339 | |
426 | * c-decl.c: Change class-key from class to struct and vice versa | |
427 | to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod. | |
428 | * gimple-parser.c: Same. | |
429 | ||
69b5279e RB |
430 | 2019-07-01 Richard Biener <rguenther@suse.de> |
431 | ||
432 | * gimple-parser.c (c_parser_gimple_postfix_expression): Handle | |
433 | _Literal (char *) &"foo" for address literals pointing to | |
434 | STRING_CSTs. | |
435 | ||
ab20d992 JJ |
436 | 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com> |
437 | ||
438 | * c-parser.c (c_parse_init): Create keyword for "__intN__" type. | |
439 | * c-decl.c (declspecs_add_type): Don't pedwarn about "__intN" ISO | |
440 | C incompatibility if alternate "__intN__" form is used. | |
441 | ||
1e3d475e MS |
442 | 2019-06-24 Martin Sebor <msebor@redhat.com> |
443 | ||
444 | * c-typeck.c (build_binary_op): Hyphenate floating-point. | |
445 | ||
bf38f7e9 JJ |
446 | 2019-06-10 Jakub Jelinek <jakub@redhat.com> |
447 | ||
448 | * c-parser.c (c_parser_pragma): Reject PRAGMA_OMP_SCAN. | |
449 | (c_parser_omp_clause_reduction): Don't sorry_at on inscan reductions. | |
450 | (c_parser_omp_scan_loop_body): New function. | |
451 | (c_parser_omp_for_loop): Call c_parser_omp_scan_loop_body if there are | |
452 | inscan reduction clauses. | |
453 | * c-typeck.c (c_finish_omp_clauses): Reject mixing inscan with | |
454 | non-inscan reductions on the same construct, or inscan reductions with | |
455 | ordered or schedule clauses, or inscan array reductions. | |
456 | ||
65985d78 MS |
457 | 2019-06-05 Martin Sebor <msebor@redhat.com> |
458 | ||
459 | PR c/90737 | |
460 | * c-typeck.c (c_finish_return): Only consider functions returning | |
461 | pointers as candidates for -Wreturn-local-addr. | |
462 | ||
0ecf545c MS |
463 | 2019-06-05 Martin Sebor <msebor@redhat.com> |
464 | ||
465 | * c-decl.c (start_decl): Adjust quoting and hyphenation | |
466 | in diagnostics. | |
467 | (finish_decl): Same. | |
468 | (finish_enum): Same. | |
469 | (start_function): Same. | |
470 | (declspecs_add_type): Same. | |
471 | * c-parser.c (warn_for_abs): Same. | |
472 | * c-typeck.c (build_binary_op): Same. | |
473 | ||
e03436e7 TS |
474 | 2019-05-17 Thomas Schwinge <thomas@codesourcery.com> |
475 | ||
b48f44bf TS |
476 | PR c/89433 |
477 | * c-parser.c (c_finish_oacc_routine): Rework checking if already | |
478 | marked with an OpenACC 'routine' directive. | |
479 | ||
5bf04509 TS |
480 | PR c/89433 |
481 | * c-parser.c (c_parser_oacc_routine): Normalize order of clauses. | |
482 | (c_finish_oacc_routine): Call oacc_verify_routine_clauses. | |
483 | ||
e03436e7 TS |
484 | PR c/89433 |
485 | * c-parser.c (c_finish_oacc_routine): Refer to OpenACC 'routine' | |
486 | clauses from "omp declare target" attribute. | |
487 | ||
a9c697b8 MS |
488 | 2019-05-16 Martin Sebor <msebor@redhat.com> |
489 | ||
ab20d992 JJ |
490 | * c-decl.c (start_decl): Quote keywords, operators, and |
491 | types in diagnostics. | |
492 | (finish_decl): Same. | |
493 | * c-parser.c (c_parser_asm_statement): Same. | |
494 | (c_parser_conditional_expression): Same. | |
495 | (c_parser_transaction_cancel): Same. | |
496 | * c-typeck.c (c_common_type): Same. | |
497 | (build_conditional_expr): Same. | |
498 | (digest_init): Same. | |
499 | (process_init_element): Same. | |
500 | (build_binary_op): Same. | |
a9c697b8 | 501 | |
c4499192 RB |
502 | 2019-05-17 Richard Biener <rguenther@suse.de> |
503 | ||
504 | * gimple-parser.c (c_parser_gimple_statement): Handle __VEC_PERM. | |
505 | (c_parser_gimple_unary_expression): Likewise. | |
506 | (c_parser_gimple_parentized_ternary_expression): New function. | |
507 | ||
adfe6e4b RB |
508 | 2019-05-16 Richard Biener <rguenther@suse.de> |
509 | ||
510 | * gimple-parser.c (c_parser_gimple_statement): Handle __BIT_INSERT. | |
511 | (c_parser_gimple_unary_expression): Likewise. | |
512 | ||
186dabf2 RB |
513 | 2019-05-15 Richard Biener <rguenther@suse.de> |
514 | ||
515 | * gimple-parser.c (c_parser_gimple_postfix_expression): Handle | |
516 | __BIT_FIELD_REF. | |
517 | ||
1158c5b4 RB |
518 | 2019-05-14 Richard Biener <rguenther@suse.de> |
519 | ||
520 | * gimple-parser.c (c_parser_gimple_statement): Remove | |
521 | questionable auto-promotion to VIEW_CONVERT_EXPR. | |
522 | (c_parser_gimple_typespec): Split out from __MEM parsing. | |
523 | (c_parser_gimple_postfix_expression): Handle __VIEW_CONVERT. | |
524 | * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR | |
525 | as __VIEW_CONVERT with -gimple. | |
526 | ||
fd4485aa ML |
527 | 2019-05-09 Martin Liska <mliska@suse.cz> |
528 | ||
529 | * gimple-parser.c (c_parser_gimple_statement): Support __MIN and | |
530 | __MAX. | |
531 | (c_parser_gimple_unary_expression): Parse also binary expression | |
532 | __MIN and __MAX. | |
533 | (c_parser_gimple_parentized_binary_expression): New function. | |
534 | ||
d276406a ML |
535 | 2019-05-09 Martin Liska <mliska@suse.cz> |
536 | ||
537 | * gimple-parser.c (struct gimple_parser): Add probability. | |
538 | for gimple_parser_edge. | |
539 | (gimple_parser::push_edge): Add new argument probability. | |
540 | (c_parser_gimple_parse_bb_spec): Parse also probability | |
541 | if present. | |
542 | (c_parser_parse_gimple_body): Set edge probability. | |
543 | (c_parser_gimple_compound_statement): Consume token | |
544 | before calling c_parser_gimple_goto_stmt. | |
545 | Parse BB counts. | |
546 | (c_parser_gimple_statement): Pass new argument. | |
547 | (c_parser_gimple_goto_stmt): Likewise. | |
548 | (c_parser_gimple_if_stmt): Likewise. | |
549 | (c_parser_gimple_or_rtl_pass_list): Parse hot_bb_threshold. | |
550 | * c-parser.c (c_parser_declaration_or_fndef): Pass | |
551 | hot_bb_threshold argument. | |
552 | * c-tree.h (struct c_declspecs): Add hot_bb_threshold | |
553 | field. | |
554 | (c_parser_gimple_parse_bb_spec_edge_probability): New. | |
555 | ||
f179b64e JJ |
556 | 2019-04-26 Jakub Jelinek <jakub@redhat.com> |
557 | ||
558 | PR debug/90197 | |
559 | * c-tree.h (c_finish_loop): Add 2 further location_t arguments. | |
560 | * c-parser.c (c_parser_while_statement): Adjust c_finish_loop caller. | |
561 | (c_parser_do_statement): Likewise. | |
562 | (c_parser_for_statement): Likewise. Formatting fixes. | |
563 | * c-typeck.c (c_finish_loop): Add COND_LOCUS and INCR_LOCUS arguments, | |
564 | emit DEBUG_BEGIN_STMTs if needed. | |
565 | ||
e7178413 JJ |
566 | 2019-04-19 Jakub Jelinek <jakub@redhat.com> |
567 | ||
c280b7ee JJ |
568 | PR c/89888 |
569 | * c-typeck.c (struct c_switch): Remove outside_range_p member. | |
570 | (c_start_case): Don't clear it. | |
571 | (do_case): Adjust c_add_case_label caller. | |
572 | (c_finish_case): Adjust c_do_switch_warnings caller. | |
573 | ||
e7178413 JJ |
574 | PR c++/90108 |
575 | * c-decl.c (merge_decls): If remove is main variant and | |
576 | DECL_ORIGINAL_TYPE is some other type, remove a DECL_ORIGINAL_TYPE | |
577 | variant that has newdecl as TYPE_NAME if any. | |
578 | ||
60a2c645 JJ |
579 | 2019-04-12 Jakub Jelinek <jakub@redhat.com> |
580 | ||
581 | PR c/89933 | |
582 | * c-decl.c (merge_decls): When newdecl's type is its main variant, | |
583 | don't try to remove it from the variant list, but instead assert | |
584 | it has no variants. | |
585 | ||
2a82beaa RB |
586 | 2019-04-01 Richard Biener <rguenther@suse.de> |
587 | ||
588 | PR c/71598 | |
589 | * c-tree.h (c_get_alias_set): Declare. | |
590 | * c-objc-common.h (LANG_HOOKS_GET_ALIAS_SET): Use c_get_alias_set. | |
591 | * c-objc-common.c (c_get_alias_set): Treat enumeral types | |
592 | as the underlying integer type. | |
593 | ||
bec1da64 MS |
594 | 2019-03-19 Martin Sebor <msebor@redhat.com> |
595 | ||
596 | PR tree-optimization/89688 | |
597 | * c-decl.c (finish_decl): Call braced_lists_to_string for more | |
598 | kinds of initializers. | |
599 | ||
855cd9b1 JJ |
600 | 2019-03-19 Jakub Jelinek <jakub@redhat.com> |
601 | ||
602 | PR c/89734 | |
603 | * c-decl.c (grokdeclarator): Call c_build_qualified_type on function | |
604 | return type even if quals_used is 0. Formatting fixes. | |
605 | ||
baa09dc5 RB |
606 | 2019-03-14 Richard Biener <rguenther@suse.de> |
607 | ||
608 | * c-tree.h (enum c_declspec_il): New. | |
609 | (struct c_declspecs): Merge gimple_p and rtl_p into declspec_il | |
610 | enum bitfield. | |
611 | * c-parser.c (c_parser_declaration_or_fndef): Adjust accordingly. | |
612 | Pass start pass and declspec_il to c_parser_parse_gimple_body. | |
613 | (c_parser_declspecs): Adjust. | |
614 | * gimple-parser.c: Include cfg.h, cfghooks.h, cfganal.h, tree-cfg.h, | |
615 | gimple-iterator.h, cfgloop.h, tree-phinodes.h, tree-into-ssa.h | |
616 | and bitmap.h. | |
617 | (struct gimple_parser): New. | |
618 | (gimple_parser::push_edge): New method. | |
619 | (c_parser_gimple_parse_bb_spec): New helper. | |
620 | (c_parser_parse_gimple_body): Get start pass and IL specification. | |
621 | Initialize SSA and CFG. | |
622 | (c_parser_gimple_compound_statement): Handle CFG and SSA build. | |
623 | Build a gimple_parser parsing state and pass it along. | |
624 | (c_parser_gimple_statement): Change intermittend __PHI internal | |
625 | function argument for the edge. | |
626 | (c_parser_gimple_or_rtl_pass_list): Handle ssa, cfg flags. | |
627 | (c_parser_gimple_goto_stmt): Record edges to build. | |
628 | (c_parser_gimple_if_stmt): Likewise. | |
629 | * gimple-parser.h (c_parser_parse_gimple_body): Adjust. | |
630 | (c_parser_gimple_or_rtl_pass_list): Likewise. | |
631 | ||
a3f9f006 ML |
632 | 2019-03-11 Martin Liska <mliska@suse.cz> |
633 | ||
634 | * c-decl.c (check_for_loop_decls): Wrap an option name | |
635 | in a string format message and fix GNU coding style. | |
636 | * c-parser.c (c_parser_declspecs): Likewise. | |
637 | ||
1db01ff9 JJ |
638 | 2019-03-08 Jakub Jelinek <jakub@redhat.com> |
639 | ||
640 | PR tree-optimization/89550 | |
641 | * c-decl.c (finish_function): Only set TREE_NO_WARNING if warning_at | |
642 | returned true. | |
643 | (c_write_global_declarations_1): Only set TREE_NO_WARNING if pedwarn | |
644 | or warning returned true. | |
645 | ||
66dcb747 JJ |
646 | 2019-02-28 Jakub Jelinek <jakub@redhat.com> |
647 | ||
648 | PR c/89525 | |
649 | * c-typeck.c (convert_arguments): Call inform_declaration only if | |
650 | the previous warning_at call returned true. | |
651 | ||
2263c9f2 TS |
652 | 2019-02-22 Thomas Schwinge <thomas@codesourcery.com> |
653 | ||
654 | * c-parser.c (c_parser_oacc_shape_clause): Add loc formal | |
655 | parameter. Adjust all users. | |
656 | (c_parser_oacc_simple_clause): Replace parser with loc formal | |
657 | parameter. Adjust all users. | |
658 | ||
ab20d992 | 659 | 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com> |
19695f4d CLT |
660 | |
661 | PR c/87924 | |
662 | * c-parser.c (c_parser_oacc_clause_wait): Add representation of wait | |
663 | clause without argument as 'wait (GOMP_ASYNC_NOVAL)', adjust comments. | |
664 | ||
5f88ba10 JJ |
665 | 2019-02-15 Jakub Jelinek <jakub@redhat.com> |
666 | ||
667 | PR c/89340 | |
668 | * c-decl.c (start_function): Clear TREE_PUBLIC on nested functions | |
669 | before c_decl_attributes rather than after it. | |
670 | ||
cfc30fd1 JJ |
671 | 2019-02-06 Jakub Jelinek <jakub@redhat.com> |
672 | ||
673 | PR c/89211 | |
674 | * c-parser.c (c_parser_declaration_or_fndef): Don't update | |
675 | DECL_ARGUMENTS of d if it has been defined already. Use a single if | |
676 | instead of 3 nested ifs. | |
677 | ||
fbe83e6b JM |
678 | 2019-02-06 Joseph Myers <joseph@codesourcery.com> |
679 | ||
680 | PR c/88584 | |
681 | * c-decl.c (finish_decl): Do not complete array types for arrays | |
682 | with external linkage not at file scope. | |
683 | ||
f461f938 RB |
684 | 2019-02-05 Richard Biener <rguenther@suse.de> |
685 | ||
686 | PR c/88606 | |
687 | * c-decl.c (finish_struct): Reset TYPE_TRANSPARENT_AGGR on | |
688 | all type variants when not supported. | |
689 | ||
fe509359 JJ |
690 | 2019-01-30 Jakub Jelinek <jakub@redhat.com> |
691 | ||
692 | PR c/89061 | |
693 | * c-tree.h (C_DECL_COMPOUND_LITERAL_P): Define. | |
694 | * c-decl.c (decl_jump_unsafe): Return false for | |
695 | C_DECL_COMPOUND_LITERAL_P decls. | |
696 | (build_compound_literal): Set C_DECL_COMPOUND_LITERAL_P. | |
697 | ||
6a335b96 JJ |
698 | 2019-01-29 Jakub Jelinek <jakub@redhat.com> |
699 | ||
f4b7e754 JJ |
700 | PR c/89045 |
701 | * c-decl.c (build_compound_literal): Don't pushdecl if in parameter | |
702 | scope. | |
703 | ||
6a335b96 JJ |
704 | PR c/86125 |
705 | * c-decl.c (last_fileptr_type): Remove. | |
706 | (last_structptr_types): New variable. | |
707 | (match_builtin_function_types): Compare TYPE_MAIN_VARIANT of | |
708 | {old,new}rettype instead of the types themselves. Assert | |
709 | last_structptr_types array has the same number of elements | |
710 | as builtin_structptr_types array. Use TYPE_MAIN_VARIANT for | |
711 | argument oldtype and newtype. Instead of handling | |
712 | just fileptr_type_node specially, handle all builtin_structptr_types | |
713 | pointer nodes. Formatting fix. | |
714 | ||
d8b5a1a0 MS |
715 | 2019-01-24 Martin Sebor <msebor@redhat.com> |
716 | ||
717 | PR c/86125 | |
718 | PR c/88886 | |
719 | PR middle-end/86308 | |
720 | * c-decl.c (match_builtin_function_types): Add arguments. | |
721 | (diagnose_mismatched_decls): Diagnose mismatched declarations | |
722 | of built-ins more strictly. | |
723 | ||
e21c4491 JJ |
724 | 2019-01-24 Jakub Jelinek <jakub@redhat.com> |
725 | ||
726 | PR c++/88976 | |
727 | * c-typeck.c (c_finish_omp_cancel): Diagnose more than one if | |
728 | on #pragma omp cancel with different modifiers. | |
729 | ||
420183d9 L |
730 | 2019-01-18 H.J. Lu <hongjiu.lu@intel.com> |
731 | ||
732 | PR c/51628 | |
733 | PR c/88664 | |
734 | * c-typeck.c (convert_for_assignment): Upate the | |
735 | warn_for_address_or_pointer_of_packed_member call. | |
736 | ||
17ad43dd TH |
737 | 2019-01-16 Tom Honermann <tom@honermann.net> |
738 | Jason Merrill <jason@redhat.com> | |
739 | ||
740 | * c-typeck.c (digest_init): Revised the error message produced for | |
741 | ill-formed cases of array initialization with a string literal. | |
742 | (error_init): Make variadic. | |
743 | ||
5f07d78a JJ |
744 | 2019-01-12 Jakub Jelinek <jakub@redhat.com> |
745 | ||
746 | * c-typeck.c (convert_for_assignment): Fix a comment typo. | |
747 | ||
c4581bbf JJ |
748 | 2019-01-07 Jakub Jelinek <jakub@redhat.com> |
749 | ||
750 | PR c/88701 | |
751 | * c-decl.c (build_compound_literal): If not TREE_STATIC, only pushdecl | |
752 | if current_function_decl is non-NULL. | |
753 | ||
65c5b1eb JM |
754 | 2019-01-07 Joseph Myers <joseph@codesourcery.com> |
755 | ||
756 | PR c/88720 | |
757 | PR c/88726 | |
758 | * c-decl.c (pop_scope): Use TREE_PUBLIC and b->nested to determine | |
759 | whether a function is nested, not DECL_EXTERNAL. Diagnose inline | |
760 | functions declared but never defined only for external scope, not | |
761 | for other scopes. | |
762 | ||
d8fcab68 JJ |
763 | 2019-01-07 Jakub Jelinek <jakub@redhat.com> |
764 | ||
765 | PR c++/85052 | |
766 | * c-parser.c (c_parser_postfix_expression): Parse | |
767 | __builtin_convertvector. | |
768 | ||
a5544970 JJ |
769 | 2019-01-01 Jakub Jelinek <jakub@redhat.com> |
770 | ||
771 | Update copyright years. | |
772 | ||
da77eace L |
773 | 2018-12-20 H.J. Lu <hongjiu.lu@intel.com> |
774 | ||
775 | PR c/51628 | |
776 | * c-typeck.c (convert_for_assignment): Call | |
777 | warn_for_address_or_pointer_of_packed_member. | |
778 | ||
1edf8866 SB |
779 | 2018-12-19 Segher Boessenkool <segher@kernel.crashing.org> |
780 | ||
781 | * c-parser.c (c_parser_asm_statement) <RID_CONST, RID_RESTRICT>: Give | |
782 | a more specific error message (instead of just falling through). | |
783 | ||
db4fd626 SB |
784 | 2018-12-19 Segher Boessenkool <segher@kernel.crashing.org> |
785 | ||
786 | * c-parser.c (c_parser_asm_statement): Keep track of the location each | |
787 | asm qualifier is first seen; use that to give nicer "duplicate asm | |
788 | qualifier" messages. Delete 'quals" variable, instead pass the | |
789 | "is_volatile_ flag to build_asm_stmt directly. | |
790 | * c-tree.h (build_asm_stmt): Make the first arg bool instead of tree. | |
791 | * c-typeck.c (build_asm_stmt): Ditto; adjust. | |
792 | ||
9c9cfcbb SB |
793 | 2018-12-19 Segher Boessenkool <segher@kernel.crashing.org> |
794 | ||
795 | * c-parser.c (c_parser_asm_statement): Rewrite the loop to work without | |
796 | "done" boolean variable. | |
797 | ||
a14feb3c DM |
798 | 2018-12-19 David Malcolm <dmalcolm@redhat.com> |
799 | ||
800 | PR c++/87504 | |
801 | * c-typeck.c (class maybe_range_label_for_tree_type_mismatch): | |
802 | Move from here to gcc-rich-location.h and gcc-rich-location.c. | |
803 | (build_binary_op): Use struct op_location_t and | |
804 | class binary_op_rich_location. | |
805 | ||
6d939173 JJ |
806 | 2018-12-11 Jakub Jelinek <jakub@redhat.com> |
807 | ||
808 | PR sanitizer/88426 | |
809 | * c-convert.c (convert): Call c_fully_fold before calling | |
810 | ubsan_instrument_float_cast. | |
811 | ||
b7055028 SB |
812 | 2018-12-08 Segher Boessenkool <segher@kernel.crashing.org> |
813 | ||
814 | * c-parser (c_parser_asm_statement) [RID_INLINE]: Delete stray line | |
815 | setting "quals". | |
816 | ||
5b76e75f SB |
817 | 2018-12-06 Segher Boessenkool <segher@kernel.crashing.org> |
818 | ||
819 | * c-parser.c (c_parser_asm_statement): Detect the inline keyword | |
820 | after asm. Pass a flag for it to build_asm_expr. | |
821 | * c-tree.h (build_asm_expr): Update declaration. | |
822 | * c-typeck.c (build_asm_stmt): Add is_inline parameter. Use it to | |
823 | set ASM_INLINE_P. | |
824 | ||
30bd42b9 SB |
825 | 2018-12-06 Segher Boessenkool <segher@kernel.crashing.org> |
826 | ||
827 | PR inline-asm/55681 | |
828 | * c-parser.c (c_parser_asm_statement): Update grammar. Allow any | |
829 | combination of volatile and goto, in any order, without repetitions. | |
830 | ||
9df6c0e4 JB |
831 | 2018-12-04 James Norris <jnorris@codesourcery.com> |
832 | Cesar Philippidis <cesar@codesourcery.com> | |
833 | Julian Brown <julian@codesourcery.com> | |
834 | ||
835 | * c-parser.c (c_parser_oacc_wait_list): Remove dead diagnostic | |
836 | code. | |
837 | ||
f44697b7 RB |
838 | 2018-11-30 Richard Biener <rguenther@suse.de> |
839 | ||
840 | * gimple-parser.c (c_parser_gimple_postfix_expression): Parse | |
841 | _Literal (type) { ... } as empty aggregate or vector constructor. | |
842 | ||
550dfbdc MS |
843 | 2018-11-29 Martin Sebor <msebor@redhat.com> |
844 | ||
845 | PR c/88091 | |
846 | * c-typeck.c (convert_argument): Add a parameter. Adjust indentation. | |
847 | (convert_arguments): Add comments. Pass additional argument to | |
848 | the function above. | |
849 | ||
673670da MS |
850 | 2018-11-29 Martin Sebor <msebor@redhat.com> |
851 | ||
852 | PR c/88172 | |
853 | PR testsuite/88208 | |
854 | * c-decl.c (declspec_add_alignas): Adjust call to check_user_alignment. | |
855 | ||
db1d09b0 MS |
856 | 2018-11-23 Martin Sebor <msebor@redhat.com> |
857 | ||
858 | PR testsuite/88098 | |
859 | * c-typeck.c (convert_arguments): Call builtin_decl_explicit instead. | |
860 | (maybe_warn_builtin_no_proto_arg): Handle short enum to int promotion. | |
861 | ||
98f08eb8 MS |
862 | 2018-11-20 Martin Sebor <msebor@redhat.com> |
863 | ||
864 | * c-parser.c (c_parser_has_attribute_expression): New function. | |
865 | (c_parser_attribute): New function. | |
866 | (c_parser_attributes): Move code into c_parser_attribute. | |
867 | (c_parser_unary_expression): Handle RID_HAS_ATTRIBUTE_EXPRESSION. | |
868 | ||
cd5da983 MS |
869 | 2018-11-15 Martin Sebor <msebor@redhat.com> |
870 | ||
871 | PR c/83656 | |
872 | * c-decl.c (header_for_builtin_fn): Declare. | |
873 | (diagnose_mismatched_decls): Diagnose declarations of built-in | |
874 | functions without a prototype. | |
875 | * c-typeck.c (maybe_warn_builtin_no_proto_arg): New function. | |
876 | (convert_argument): Same. | |
877 | (convert_arguments): Factor code out into convert_argument. | |
878 | Detect mismatches between built-in formal arguments in calls | |
879 | to built-in without prototype. | |
880 | (build_conditional_expr): Same. | |
881 | (type_or_builtin_type): New function. | |
882 | (convert_for_assignment): Add argument. Conditionally issue | |
883 | warnings instead of errors for mismatches. | |
884 | ||
620e594b DM |
885 | 2018-11-13 David Malcolm <dmalcolm@redhat.com> |
886 | ||
887 | * c-decl.c: Replace "source_location" with "location_t". | |
888 | * c-tree.h: Likewise. | |
889 | * c-typeck.c: Likewise. | |
890 | * gimple-parser.c: Likewise. | |
891 | ||
3179ebae JJ |
892 | 2018-11-09 Jakub Jelinek <jakub@redhat.com> |
893 | ||
81a227c6 JJ |
894 | * c-parser.c (c_parser_omp_clause_final): Use |
895 | c_parser_expr_no_commas, convert_lvalue_to_rvalue, | |
896 | c_objc_common_truthvalue_conversion, c_fully_fold and parentheses | |
897 | parsing instead of c_parser_paren_condition. | |
898 | (c_parser_omp_clause_if): Use c_parser_expr_no_commas, | |
899 | convert_lvalue_to_rvalue, c_objc_common_truthvalue_conversion and | |
900 | c_fully_fold instead of c_parser_condition. | |
901 | (c_parser_omp_clause_num_threads, c_parser_omp_clause_num_tasks, | |
902 | c_parser_omp_clause_grainsize, c_parser_omp_clause_priority, | |
903 | c_parser_omp_clause_hint, c_parser_omp_clause_num_teams, | |
904 | c_parser_omp_clause_thread_limit, c_parser_omp_clause_linear): Use | |
905 | c_parser_expr_no_commas instead of c_parser_expression. | |
906 | ||
98c91c56 JJ |
907 | * c-parser.c (c_parser_omp_clause_reduction): Call sorry_at on |
908 | reduction clause with inscan modifier. | |
909 | ||
3179ebae JJ |
910 | * c-parser.c (c_parser_omp_requires): Call sorry_at on requires |
911 | clauses other than atomic_default_mem_order. | |
912 | ||
28567c40 JJ |
913 | 2018-11-08 Jakub Jelinek <jakub@redhat.com> |
914 | ||
915 | * c-parser.c: Include memmode.h. | |
916 | (c_parser_omp_depobj, c_parser_omp_requires): New functions. | |
917 | (c_parser_pragma): Handle PRAGMA_OMP_DEPOBJ and PRAGMA_OMP_REQUIRES. | |
918 | (c_parser_omp_clause_name): Handle nontemporal, in_reduction and | |
919 | task_reduction clauses. | |
920 | (c_parser_omp_variable_list): Handle OMP_CLAUSE_{IN,TASK}_REDUCTION. | |
921 | For OMP_CLAUSE_DEPEND, parse clause operands as either an array | |
922 | section, or lvalue assignment expression. | |
923 | (c_parser_omp_clause_if): Handle cancel and simd modifiers. | |
924 | (c_parser_omp_clause_lastprivate): Parse optional | |
925 | conditional: modifier. | |
926 | (c_parser_omp_clause_hint): Require constant integer expression rather | |
927 | than just integer expression. | |
928 | (c_parser_omp_clause_defaultmap): Parse new kinds of defaultmap | |
929 | clause. | |
930 | (c_parser_omp_clause_reduction): Add IS_OMP and KIND arguments. | |
931 | Parse reduction modifiers. Pass KIND to c_parser_omp_variable_list. | |
932 | (c_parser_omp_clause_nontemporal, c_parser_omp_iterators): New | |
933 | functions. | |
934 | (c_parser_omp_clause_depend): Parse iterator modifier and handle | |
935 | iterators. Parse mutexinoutset and depobj kinds. | |
936 | (c_parser_oacc_all_clauses): Adjust c_parser_omp_clause_reduction | |
937 | callers. | |
938 | (c_parser_omp_all_clauses): Likewise. Handle | |
939 | PRAGMA_OMP_CLAUSE_NONTEMPORAL and | |
940 | PRAGMA_OMP_CLAUSE_{IN,TASK}_REDUCTION. | |
941 | (c_parser_omp_atomic): Parse hint and memory order clauses. Handle | |
942 | default memory order from requires directive if any. Adjust | |
943 | c_finish_omp_atomic caller. | |
944 | (c_parser_omp_critical): Allow comma in between (name) and hint clause. | |
945 | (c_parser_omp_flush): Parse flush with memory-order-clause. | |
946 | (c_parser_omp_for_loop): Allow NE_EXPR even in | |
947 | OpenMP loops, adjust c_finish_omp_for caller. | |
948 | (OMP_SIMD_CLAUSE_MASK): Add if and nontemporal clauses. | |
949 | (c_parser_omp_master): Add p_name, mask and cclauses arguments. | |
950 | Allow to be called while parsing combined parallel master. | |
951 | Parse combined master taskloop{, simd}. | |
952 | (c_parser_omp_parallel): Parse combined | |
953 | parallel master{, taskloop{, simd}} constructs. | |
954 | (OMP_TASK_CLAUSE_MASK): Add in_reduction clause. | |
955 | (OMP_TASKGROUP_CLAUSE_MASK): Define. | |
956 | (c_parser_omp_taskgroup): Add LOC argument. Parse taskgroup clauses. | |
957 | (OMP_TASKWAIT_CLAUSE_MASK): Define. | |
958 | (c_parser_omp_taskwait): Handle taskwait with depend clauses. | |
959 | (c_parser_omp_teams): Force a BIND_EXPR with BLOCK | |
960 | around teams body. Use SET_EXPR_LOCATION. | |
961 | (c_parser_omp_target_data): Allow target data | |
962 | with only use_device_ptr clauses. | |
963 | (c_parser_omp_target): Use SET_EXPR_LOCATION. Set | |
964 | OMP_REQUIRES_TARGET_USED bit in omp_requires_mask. | |
965 | (c_parser_omp_requires): New function. | |
966 | (c_finish_taskloop_clauses): New function. | |
967 | (OMP_TASKLOOP_CLAUSE_MASK): Add reduction and in_reduction clauses. | |
968 | (c_parser_omp_taskloop): Use c_finish_taskloop_clauses. Add forward | |
969 | declaration. Disallow in_reduction clause when combined with parallel | |
970 | master. | |
971 | (c_parser_omp_construct): Adjust c_parser_omp_master and | |
972 | c_parser_omp_taskgroup callers. | |
973 | * c-typeck.c (c_finish_omp_cancel): Diagnose if clause with modifier | |
974 | other than cancel. | |
975 | (handle_omp_array_sections_1): Handle OMP_CLAUSE_{IN,TASK}_REDUCTION | |
976 | like OMP_CLAUSE_REDUCTION. | |
977 | (handle_omp_array_sections): Likewise. Call save_expr on array | |
978 | reductions before calling build_index_type. Handle depend clauses | |
979 | with iterators. | |
980 | (struct c_find_omp_var_s): New type. | |
981 | (c_find_omp_var_r, c_omp_finish_iterators): New functions. | |
982 | (c_finish_omp_clauses): Don't diagnose nonmonotonic clause | |
983 | with static, runtime or auto schedule kinds. Call save_expr for whole | |
984 | array reduction sizes. Diagnose reductions with zero sized elements | |
985 | or variable length structures. Diagnose nogroup clause used with | |
986 | reduction clause(s). Handle depend clause with | |
987 | OMP_CLAUSE_DEPEND_DEPOBJ. Diagnose bit-fields. Require | |
988 | omp_depend_t type for OMP_CLAUSE_DEPEND_DEPOBJ kinds and | |
989 | some different type for other kinds. Use build_unary_op with | |
990 | ADDR_EXPR and build_indirect_ref instead of c_mark_addressable. | |
991 | Handle depend clauses with iterators. Remove no longer needed special | |
992 | case that predetermined const qualified vars may be specified in | |
993 | firstprivate clause. Complain if const qualified vars are mentioned | |
994 | in data-sharing clauses other than firstprivate or shared. Use | |
995 | error_at with OMP_CLAUSE_LOCATION (c) as first argument instead of | |
996 | error. Formatting fix. Handle OMP_CLAUSE_NONTEMPORAL and | |
997 | OMP_CLAUSE_{IN,TASK}_REDUCTION. Allow any lvalue as | |
998 | OMP_CLAUSE_DEPEND operand (besides array section), adjust diagnostics. | |
999 | ||
7e2de6df DM |
1000 | 2018-10-29 David Malcolm <dmalcolm@redhat.com> |
1001 | ||
1002 | * c-decl.c (implicit_decl_warning): Update "is there a suggestion" | |
1003 | logic for change to name_hint::operator bool. | |
1004 | (undeclared_variable): Likewise. | |
1005 | * c-parser.c (c_parser_declaration_or_fndef): Likewise. | |
1006 | (c_parser_parameter_declaration): Likewise. | |
1007 | ||
9f936c86 JM |
1008 | 2018-10-17 Joseph Myers <joseph@codesourcery.com> |
1009 | ||
1010 | * c-errors.c (pedwarn_c11): New function. | |
1011 | * c-parser.c (disable_extension_diagnostics): Save | |
1012 | warn_c11_c2x_compat and set it to 0. | |
1013 | (restore_extension_diagnostics): Restore warn_c11_c2x_compat. | |
1014 | (c_parser_static_assert_declaration_no_semi): Handle | |
1015 | _Static_assert without string constant. | |
1016 | * c-tree.h (pedwarn_c11): New prototype. | |
1017 | ||
033eb567 DM |
1018 | 2018-10-17 David Malcolm <dmalcolm@redhat.com> |
1019 | ||
1020 | * Make-lang.in (selftest-c): New. | |
1021 | (C_SELFTEST_FLAGS, C_SELFTEST_DEPS, s-selftest-c, selftest-c-gdb) | |
1022 | (selftest-gdb, selftest-c-valgrind, selftest-valgrind): Move here | |
1023 | from gcc/Makefile.in. | |
1024 | ||
0edf3afe RB |
1025 | 2018-10-02 Richard Biener <rguenther@suse.de> |
1026 | ||
1027 | * c-decl.c (warn_if_shadowing): Do not test DECL_FROM_INLINE. | |
1028 | ||
8313a764 JM |
1029 | 2018-09-26 Joseph Myers <joseph@codesourcery.com> |
1030 | ||
1031 | PR c/87390 | |
1032 | * c-typeck.c (build_binary_op): Use excess precision for | |
1033 | comparisons of integers and floating-point for C11 and later. | |
1034 | ||
ce6f0888 MJ |
1035 | 2018-09-26 Martin Jambor <mjambor@suse.cz> |
1036 | ||
1037 | PR c/87347 | |
1038 | * c-parser.c (warn_for_abs): Bail out if TYPE_ARG_TYPES is NULL. Fix | |
ab20d992 | 1039 | comment. |
ce6f0888 | 1040 | |
9c4a4b3c DM |
1041 | 2018-09-17 David Malcolm <dmalcolm@redhat.com> |
1042 | ||
1043 | * c-objc-common.c (range_label_for_type_mismatch::get_text): | |
1044 | Update for new param. | |
1045 | * c-typeck.c (maybe_range_label_for_tree_type_mismatch::get_text): | |
1046 | Likewise. | |
1047 | ||
80c6d1f4 MJ |
1048 | 2018-09-17 Martin Jambor <mjambor@suse.cz> |
1049 | ||
1050 | PR c/63886 | |
1051 | * c-parser.c: (warn_for_abs): New function. | |
1052 | (c_parser_postfix_expression_after_primary): Call it. | |
1053 | ||
4a426e36 BE |
1054 | 2018-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de> |
1055 | ||
1056 | * c-typeck.c (digest_init): Shorten overlength strings. | |
1057 | ||
6d900107 BE |
1058 | 2018-09-06 Bernd Edlinger <bernd.edlinger@hotmail.de> |
1059 | ||
1060 | * c-decl.c (finish_decl): Call complete_flexible_array_elts. | |
1061 | ||
b5764229 BE |
1062 | 2018-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de> |
1063 | ||
1064 | * c-decl.c (finish_decl): Call braced_list_to_string here ... | |
1065 | * c-parser.c (c_parser_declaration_or_fndef): ... instead of here. | |
1066 | ||
22eea6b2 AM |
1067 | 2018-08-30 Alexander Monakov <amonakov@ispras.ru> |
1068 | ||
1069 | * gimple-parser.c (c_parser_gimple_binary_expression): Accept infix | |
1070 | "__MULT_HIGHPART" for MULT_HIGHPART_EXPR. | |
1071 | ||
85204e23 DM |
1072 | 2018-08-27 David Malcolm <dmalcolm@redhat.com> |
1073 | ||
1074 | PR 87091 | |
1075 | * c-decl.c (implicitly_declare): Update call to | |
1076 | maybe_add_include_fixit to suggest overriding the location, as it | |
1077 | is for a note. | |
1078 | * c-objc-common.c (c_tree_printer): Update for conversion of | |
1079 | show_caret_p to a tri-state. | |
1080 | ||
3d78e008 ML |
1081 | 2018-08-27 Martin Liska <mliska@suse.cz> |
1082 | ||
1083 | * c-decl.c (locate_old_decl): Use new function | |
92a285c1 ML |
1084 | fndecl_built_in_p and remove check for FUNCTION_DECL if |
1085 | possible. | |
3d78e008 ML |
1086 | (diagnose_mismatched_decls): Likewise. |
1087 | (merge_decls): Likewise. | |
1088 | (warn_if_shadowing): Likewise. | |
1089 | (pushdecl): Likewise. | |
1090 | (implicitly_declare): Likewise. | |
1091 | * c-parser.c (c_parser_postfix_expression_after_primary): Likewise. | |
1092 | * c-tree.h (C_DECL_ISNT_PROTOTYPE): Likewise. | |
1093 | * c-typeck.c (build_function_call_vec): Likewise. | |
1094 | (convert_arguments): Likewise. | |
1095 | ||
097f82ec DM |
1096 | 2018-08-20 David Malcolm <dmalcolm@redhat.com> |
1097 | ||
1098 | PR other/84889 | |
1099 | * c-decl.c (pushtag): Add auto_diagnostic_group instance. | |
1100 | (diagnose_mismatched_decls): Likewise, in various places. | |
1101 | (warn_if_shadowing): Likewise. | |
1102 | (implicit_decl_warning): Likewise. | |
1103 | (implicitly_declare): Likewise. | |
1104 | (undeclared_variable): Likewise. | |
1105 | (declare_label): Likewise. | |
1106 | (grokdeclarator): Likewise. | |
1107 | (start_function): Likewise. | |
1108 | * c-parser.c (c_parser_declaration_or_fndef): Likewise. | |
1109 | (c_parser_parameter_declaration): Likewise. | |
1110 | (c_parser_binary_expression): Likewise. | |
1111 | * c-typeck.c (c_expr_sizeof_expr): Likewise. | |
1112 | (parser_build_binary_op): Likewise. | |
1113 | (build_unary_op): Likewise. | |
1114 | (error_init): Likewise. | |
1115 | (pedwarn_init): Likewise. | |
1116 | (warning_init): Likewise. | |
1117 | (convert_for_assignment): Likewise. | |
1118 | ||
96e6ae57 DM |
1119 | 2018-08-15 David Malcolm <dmalcolm@redhat.com> |
1120 | ||
1121 | * c-objc-common.c: Include "gcc-rich-location.h". | |
1122 | (c_tree_printer): Move implemenation of '%T' to... | |
1123 | (print_type): ...this new function. | |
1124 | (range_label_for_type_mismatch::get_text): New function. | |
1125 | * c-typeck.c (convert_for_assignment): Add type labels to the rhs | |
1126 | range for the various ic_argpass cases. | |
1127 | (class maybe_range_label_for_tree_type_mismatch): New class. | |
1128 | (build_binary_op): Use it when calling binary_op_error. | |
1129 | ||
0cd020ae | 1130 | 2018-08-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
ab20d992 | 1131 | |
0cd020ae PK |
1132 | * c-decl.c (start_decl): Do not warn if variables is named as main |
1133 | and is a local variable. | |
1134 | ||
72733314 IS |
1135 | 2018-08-15 Iain Sandoe <iain@sandoe.co.uk> |
1136 | ||
1137 | PR c/19315 | |
1138 | * c-decl.c (finish_decl): Don't add the 'extern' storage class to | |
1139 | objects of unknown size. | |
1140 | ||
23aa9f7c MS |
1141 | 2018-08-13 Martin Sebor <msebor@redhat.com> |
1142 | ||
1143 | PR tree-optimization/71625 | |
1144 | * c-parser.c (c_parser_declaration_or_fndef): Call | |
1145 | braced_list_to_string. | |
1146 | ||
e5e7e50d BH |
1147 | 2018-08-03 Bogdan Harjoc <harjoc@gmail.com> |
1148 | ||
1149 | PR c/86690 | |
1150 | * c-typeck.c (lookup_field): Do not use TYPE_LANG_SPECIFIC after | |
1151 | errors. | |
1152 | ||
8a45b051 MS |
1153 | 2018-08-01 Martin Sebor <msebor@redhat.com> |
1154 | ||
1155 | PR tree-optimization/86650 | |
1156 | * c-objc-common.c (c_tree_printer): Move usage of EXPR_LOCATION (t) | |
1157 | and TREE_BLOCK (t) from within percent_K_format to this callsite. | |
1158 | ||
5922dcb5 JJ |
1159 | 2018-08-01 Jakub Jelinek <jakub@redhat.com> |
1160 | ||
1161 | PR c/85704 | |
1162 | * c-typeck.c (init_field_decl_cmp): New function. | |
1163 | (output_pending_init_elements): Use it for field comparisons | |
1164 | instead of pure bit_position comparisons. | |
1165 | ||
9b452033 JJ |
1166 | 2018-07-12 Jakub Jelinek <jakub@redhat.com> |
1167 | ||
1168 | * c-decl.c (c_decl_attributes): Don't diagnose vars without mappable | |
1169 | type here, instead add "omp declare target implicit" attribute. | |
1170 | (finish_decl): Diagnose vars without mappable type here. | |
1171 | ||
ab20d992 JJ |
1172 | 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com> |
1173 | Thomas Schwinge <thomas@codesourcery.com> | |
829c6349 CLT |
1174 | Cesar Philippidis <cesar@codesourcery.com> |
1175 | ||
1176 | * c-parser.c (c_parser_omp_clause_name): Add support for finalize | |
1177 | and if_present. Make present_or_{copy,copyin,copyout,create} aliases | |
1178 | to their non-present_or_* counterparts. Make 'self' an alias to | |
1179 | PRAGMA_OACC_CLAUSE_HOST. | |
1180 | (c_parser_oacc_data_clause): Update GOMP mappings for | |
1181 | PRAGMA_OACC_CLAUSE_{COPY,COPYIN,COPYOUT,CREATE,DELETE}. Remove | |
1182 | PRAGMA_OACC_CLAUSE_{SELF,PRESENT_OR_*}. | |
1183 | (c_parser_oacc_all_clauses): Handle finalize and if_present clauses. | |
1184 | Remove support for present_or_* clauses. | |
1185 | (OACC_KERNELS_CLAUSE_MASK): Remove PRESENT_OR_* clauses. | |
1186 | (OACC_PARALLEL_CLAUSE_MASK): Likewise. | |
1187 | (OACC_DECLARE_CLAUSE_MASK): Likewise. | |
1188 | (OACC_DATA_CLAUSE_MASK): Likewise. | |
1189 | (OACC_ENTER_DATA_CLAUSE_MASK): Remove PRESENT_OR_* clauses. | |
1190 | (OACC_EXIT_DATA_CLAUSE_MASK): Add FINALIZE clause. | |
1191 | (OACC_UPDATE_CLAUSE_MASK): Remove SELF, add IF_PRESENT. | |
1192 | (c_parser_oacc_declare): Remove PRESENT_OR_* clauses. | |
1193 | * c-typeck.c (c_finish_omp_clauses): Handle IF_PRESENT and FINALIZE. | |
1194 | ||
e197e64e KV |
1195 | 2018-06-16 Kugan Vivekanandarajah <kuganv@linaro.org> |
1196 | ||
1197 | * c-typeck.c (build_unary_op): Handle ABSU_EXPR; | |
1198 | * gimple-parser.c (c_parser_gimple_statement): Likewise. | |
1199 | (c_parser_gimple_unary_expression): Likewise. | |
1200 | ||
487f2f61 JJ |
1201 | 2018-06-15 Jakub Jelinek <jakub@redhat.com> |
1202 | ||
1203 | PR c/86093 | |
1204 | * c-typeck.c (pointer_diff): Cast both pointers to unqualified types | |
1205 | before doing POINTER_DIFF_EXPR. | |
1206 | ||
e4d44a37 MP |
1207 | 2018-06-07 Marek Polacek <polacek@redhat.com> |
1208 | ||
1209 | PR c/85318 | |
1210 | * c-decl.c (check_for_loop_decls): Add -Wc90-c99-compat warning about | |
1211 | for loop initial declarations. | |
1212 | ||
b67b9225 DP |
1213 | 2018-05-30 David Pagan <dave.pagan@oracle.com> |
1214 | ||
1215 | PR c/55976 | |
1216 | * c-decl.c (grokdeclarator): Update check for return type warnings. | |
1217 | (start_function): Likewise. | |
1218 | (finish_function): Likewise. | |
1219 | * c-typeck.c (c_finish_return): Update check for return type warnings. | |
1220 | Pass OPT_Wreturn_type to pedwarn when appropriate. | |
1221 | ||
c566cc9f RS |
1222 | 2018-05-18 Richard Sandiford <richard.sandiford@linaro.org> |
1223 | ||
1224 | * gimple-parser.c (c_parser_gimple_postfix_expression): Remove | |
1225 | __FMA_EXPR handlng. | |
1226 | ||
e4f81565 RS |
1227 | 2018-05-17 Richard Sandiford <richard.sandiford@linaro.org> |
1228 | ||
1229 | * gimple-parser.c: Include internal-fn.h. | |
1230 | (c_parser_gimple_statement): Treat a leading CPP_DOT as a call. | |
1231 | (c_parser_gimple_call_internal): New function. | |
1232 | (c_parser_gimple_postfix_expression): Use it to handle CPP_DOT. | |
1233 | Fix typos in comment. | |
1234 | ||
79e7b1fe JJ |
1235 | 2018-05-10 Jakub Jelinek <jakub@redhat.com> |
1236 | ||
1237 | PR c++/85662 | |
1238 | * c-fold.c (c_fully_fold_internal): Use fold_offsetof rather than | |
1239 | fold_offsetof_1, pass TREE_TYPE (expr) as TYPE to it and drop the | |
1240 | fold_convert_loc. | |
1241 | * c-typeck.c (build_unary_op): Use fold_offsetof rather than | |
1242 | fold_offsetof_1, pass argtype as TYPE to it and drop the | |
1243 | fold_convert_loc. | |
1244 | ||
f7584c81 DP |
1245 | 2018-05-02 David Pagan <dave.pagan@oracle.com> |
1246 | ||
1247 | PR c/30552 | |
1248 | * c-decl.c (old_style_parameter_scope): New function. | |
1249 | * c-parser.c (c_parser_postfix_expression): Check for statement | |
1250 | expressions in old-style function parameter list declarations. | |
1251 | * c-parser.h (old_style_parameter_scope): New extern declaration. | |
1252 | ||
b33a0cb3 JJ |
1253 | 2018-04-25 Jakub Jelinek <jakub@redhat.com> |
1254 | ||
1255 | PR sanitizer/84307 | |
1256 | * c-decl.c (build_compound_literal): Call pushdecl (decl) even when | |
1257 | it is not TREE_STATIC. | |
1258 | * c-typeck.c (c_mark_addressable) <case COMPOUND_LITERAL_EXPR>: Mark | |
1259 | not just the COMPOUND_LITERAL_EXPR node itself addressable, but also | |
1260 | its COMPOUND_LITERAL_EXPR_DECL. | |
1261 | ||
c5c5822a JM |
1262 | 2018-03-21 Joseph Myers <joseph@codesourcery.com> |
1263 | ||
1264 | * c-parser.c (c_parser_postfix_expression): For __builtin_tgmath | |
1265 | where all functions return the same _FloatN or _FloatNx type, | |
1266 | treat integer types as _Float64 instead of double. | |
1267 | ||
aa1c9429 JJ |
1268 | 2018-03-21 Jakub Jelinek <jakub@redhat.com> |
1269 | ||
1270 | PR c/84999 | |
1271 | * c-typeck.c (build_binary_op): If c_common_type_for_size fails when | |
1272 | building vector comparison, diagnose it and return error_mark_node. | |
1273 | ||
9bb45a95 JJ |
1274 | 2018-03-15 Jakub Jelinek <jakub@redhat.com> |
1275 | ||
1276 | PR c/84853 | |
1277 | * c-typeck.c (build_binary_op) <case RSHIFT_EXPR, case LSHIFT_EXPR>: | |
1278 | If code1 is INTEGER_TYPE, only allow code0 VECTOR_TYPE if it has | |
1279 | INTEGER_TYPE element type. | |
1280 | ||
ada6bad9 DP |
1281 | 2018-03-13 David Pagan <dave.pagan@oracle.com> |
1282 | ||
1283 | PR c/46921 | |
1284 | * c-typeck.c (output_init_element): Ensure field initializer | |
1285 | expression is always evaluated if there are side effects. | |
1286 | ||
849bbdb9 JJ |
1287 | 2018-03-06 Jakub Jelinek <jakub@redhat.com> |
1288 | ||
1289 | PR c/84721 | |
1290 | * c-parser.c (add_debug_begin_stmt): Don't add DEBUG_BEGIN_STMT if | |
1291 | !building_stmt_list_p (). | |
1292 | ||
d74641bd RS |
1293 | 2018-02-13 Richard Sandiford <richard.sandiford@linaro.org> |
1294 | ||
1295 | PR c/84305 | |
1296 | * c-decl.c (grokdeclarator): Create an anonymous TYPE_DECL | |
1297 | in PARM and TYPENAME contexts too, but attach it to a BIND_EXPR | |
1298 | and include the BIND_EXPR in the list of things that need to be | |
1299 | pre-evaluated. | |
1300 | ||
0444aa9c NS |
1301 | 2018-02-09 Nathan Sidwell <nathan@acm.org> |
1302 | ||
1303 | PR c/84293 | |
1304 | * c-typeck.c (build_indirect_ref, build_c_cast): Pass expr location | |
1305 | to strict_aliasing_warning. | |
1306 | ||
7c30b12a PC |
1307 | 2018-02-02 Paolo Carlini <paolo.carlini@oracle.com> |
1308 | ||
1309 | * c-typeck.c (really_start_incremental_init, push_init_level, | |
1310 | set_nonincremental_init, output_init_element, process_init_element): | |
1311 | Use DECL_UNNAMED_BIT_FIELD. | |
1312 | ||
2be4dfcb MP |
1313 | 2018-01-31 Marek Polacek <polacek@redhat.com> |
1314 | ||
1315 | PR c/81779 | |
1316 | * c-parser.c (c_parser_compound_statement_nostart): Call | |
1317 | expansion_point_location_if_in_system_header. | |
1318 | ||
bb9869d5 DM |
1319 | 2018-01-17 David Malcolm <dmalcolm@redhat.com> |
1320 | ||
1321 | PR c++/83814 | |
1322 | * c-fold.c (fold_for_warn): Move from c-common.c, reducing to just | |
1323 | the C part. | |
1324 | ||
b4923738 JJ |
1325 | 2018-01-13 Jakub Jelinek <jakub@redhat.com> |
1326 | ||
1327 | PR c/83801 | |
1328 | * c-tree.h (decl_constant_value_1): Add a bool argument. | |
1329 | * c-typeck.c (decl_constant_value_1): Add IN_INIT argument, allow | |
1330 | returning a CONSTRUCTOR if it is true. Use error_operand_p. | |
1331 | (decl_constant_value): Adjust caller. | |
1332 | * c-fold.c (c_fully_fold_internal): If in_init, pass true to | |
1333 | decl_constant_value_1 as IN_INIT. Otherwise, punt if | |
1334 | decl_constant_value returns initializer that has BLKmode or | |
1335 | array type. | |
1336 | (c_fully_fold_internal) <case COMPONENT_REF>: Fold if !lval. | |
1337 | ||
928686b1 RS |
1338 | 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org> |
1339 | Alan Hayward <alan.hayward@arm.com> | |
1340 | David Sherwood <david.sherwood@arm.com> | |
1341 | ||
1342 | * c-typeck.c (comptypes_internal, build_binary_op): Handle polynomial | |
1343 | TYPE_VECTOR_SUBPARTS. | |
1344 | ||
85ec4feb JJ |
1345 | 2018-01-03 Jakub Jelinek <jakub@redhat.com> |
1346 | ||
1347 | Update copyright years. | |
1348 | ||
913884f7 JJ |
1349 | 2018-01-01 Jakub Jelinek <jakub@redhat.com> |
1350 | ||
1351 | PR c/83595 | |
1352 | * c-parser.c (c_parser_braced_init, c_parser_initelt, | |
1353 | c_parser_conditional_expression, c_parser_cast_expression, | |
1354 | c_parser_sizeof_expression, c_parser_alignof_expression, | |
1355 | c_parser_postfix_expression, c_parser_omp_declare_reduction, | |
1356 | c_parser_transaction_expression): Use set_error () method instead | |
1357 | of setting value member to error_mark_node. | |
1358 | ||
c6cfa2bf MM |
1359 | 2017-12-28 Michael Meissner <meissner@linux.vnet.ibm.com> |
1360 | ||
1361 | * c-decl.c (header_for_builtin_fn): Add integer rounding _Float<N> | |
1362 | and _Float<N>X built-in functions. | |
1363 | ||
11d29d63 JJ |
1364 | 2017-12-22 Jakub Jelinek <jakub@redhat.com> |
1365 | ||
14ec014e JJ |
1366 | PR debug/83550 |
1367 | * c-decl.c (finish_struct): Set DECL_SOURCE_LOCATION on | |
1368 | TYPE_STUB_DECL and call rest_of_type_compilation before processing | |
1369 | incomplete vars rather than after it. | |
1370 | ||
11d29d63 JJ |
1371 | PR debug/83547 |
1372 | * c-typeck.c (c_finish_stmt_expr): Ignore !TREE_SIDE_EFFECTS as | |
1373 | indicator of ({ }), instead skip all trailing DEBUG_BEGIN_STMTs first, | |
1374 | and consider empty ones if there are no other stmts. For | |
1375 | -Wunused-value walk all statements before the one only followed by | |
1376 | DEBUG_BEGIN_STMTs. | |
1377 | ||
170a8bd6 | 1378 | 2017-12-22 Mike Stump <mikestump@comcast.net> |
92a285c1 | 1379 | Eric Botcazou <ebotcazou@adacore.com> |
170a8bd6 EB |
1380 | |
1381 | * c-parser.c (c_parser_while_statement): Add unroll parameter and | |
1382 | build ANNOTATE_EXPR if present. Add 3rd operand to ANNOTATE_EXPR. | |
1383 | (c_parser_do_statement): Likewise. | |
1384 | (c_parser_for_statement): Likewise. | |
1385 | (c_parser_statement_after_labels): Adjust calls to above. | |
1386 | (c_parse_pragma_ivdep): New static function. | |
1387 | (c_parser_pragma_unroll): Likewise. | |
1388 | (c_parser_pragma) <PRAGMA_IVDEP>: Add support for pragma Unroll. | |
1389 | <PRAGMA_UNROLL>: New case. | |
1390 | ||
01512446 JJ |
1391 | 2017-12-19 Jakub Jelinek <jakub@redhat.com> |
1392 | ||
1393 | * c-typeck.c (comptypes_internal, function_types_compatible_p, | |
1394 | perform_integral_promotions, digest_init): Replace Yoda conditions | |
1395 | with typical order conditions. | |
1396 | * c-decl.c (check_bitfield_type_and_width): Likewise. | |
1397 | ||
c65e18d3 BE |
1398 | 2017-12-14 Bernd Edlinger <bernd.edlinger@hotmail.de> |
1399 | ||
1400 | * c-typeck.c (c_safe_arg_type_equiv_p, | |
1401 | c_safe_function_type_cast_p): New function. | |
1402 | (build_c_cast): Implement -Wcast-function-type. | |
1403 | ||
b7280579 RB |
1404 | 2017-12-14 Richard Biener <rguenther@suse.de> |
1405 | ||
1406 | PR c/83415 | |
1407 | * c-fold.c (c_fully_fold_internal): Treat VIEW_CONVERT_EXPR | |
1408 | like REALPART_EXPR for the behavior of whether its operand | |
1409 | is an lvalue. | |
1410 | ||
49e6a6c0 MP |
1411 | 2017-12-12 Marek Polacek <polacek@redhat.com> |
1412 | ||
1413 | PR c/82679 | |
1414 | * c-decl.c (grokdeclarator): Check declspecs insted of atomicp. | |
1415 | ||
ab20d992 | 1416 | 2017-12-12 Alexandre Oliva <aoliva@redhat.com> |
96a95ac1 AO |
1417 | |
1418 | * c-objc-common.h (LANG_HOOKS_EMITS_BEGIN_STMT): Redefine as true. | |
1419 | * c-parser.c (add_debug_begin_stmt): New. | |
1420 | (c_parser_declaration_or_fndef): Call it. | |
1421 | (c_parser_compound_statement_nostart): Likewise. | |
1422 | (c_parser_statement_after_labels): Likewise. | |
1423 | * c-typeck (c_finish_stmt_expr): Skip begin stmts markers. | |
1424 | ||
4b2b493f JM |
1425 | 2017-12-07 Joseph Myers <joseph@codesourcery.com> |
1426 | ||
1427 | * c-decl.c (build_compound_literal): Add parameter alignas_align | |
1428 | and set alignment of decl if nonzero. | |
1429 | * c-parser.c (c_keyword_starts_typename): Allow RID_ALIGNAS. | |
1430 | (c_parser_declspecs): Allow RID_ALIGNAS to follow a type, like a | |
1431 | qualifier. | |
1432 | (c_parser_struct_declaration): Update syntax comment. | |
1433 | (c_parser_type_name): Add alignas_ok argument and pass it to | |
1434 | c_parser_declspecs. | |
1435 | (c_parser_cast_expression): Pass true to c_parser_type_name and | |
1436 | give error if a cast used an _Alignas specifier. | |
1437 | (c_parser_sizeof_expression): Pass true to c_parser_type_name and | |
1438 | give error if sizeof (type-name) used an _Alignas specifier. | |
1439 | (c_parser_alignof_expression): Pass true to c_parser_type_name and | |
1440 | give error if _Alignof (type-name) used an _Alignas specifier. | |
1441 | (c_parser_postfix_expression_after_paren_type): Check specified | |
1442 | alignment for a compound literal and pass it to | |
1443 | build_compound_literal. | |
1444 | * c-parser.h (c_parser_type_name): Update prototype. | |
1445 | * c-tree.h (build_compound_literal): Update prototype. | |
1446 | ||
5d9ae53d MS |
1447 | 2017-12-07 Martin Sebor <msebor@redhat.com> |
1448 | ||
1449 | PR c/81544 | |
1450 | * c-decl.c (c_decl_attributes): Look up existing declaration and | |
1451 | pass it to decl_attributes. | |
1452 | ||
c79144f8 DM |
1453 | 2017-12-06 David Malcolm <dmalcolm@redhat.com> |
1454 | ||
1455 | PR c/83236 | |
1456 | * c-decl.c (lookup_name_fuzzy): Don't suggest names that are | |
1457 | reserved for use by the implementation. | |
1458 | ||
613bc14f DM |
1459 | 2017-12-06 David Malcolm <dmalcolm@redhat.com> |
1460 | ||
1461 | * c-decl.c: Include "c-family/c-spellcheck.h". | |
1462 | ||
05abad4c ML |
1463 | 2017-12-05 Martin Liska <mliska@suse.cz> |
1464 | Jakub Jelinek <jakub@redhat.com> | |
1465 | ||
1466 | * c-typeck.c (pointer_diff): Add new argument and instrument | |
1467 | pointer subtraction. | |
1468 | (build_binary_op): Similar for pointer comparison. | |
1469 | ||
cc6534d4 JJ |
1470 | 2017-12-01 Jakub Jelinek <jakub@redhat.com> |
1471 | ||
65791f42 JJ |
1472 | PR c/79153 |
1473 | * c-parser.c: Include tree-iterator.h. | |
1474 | (c_parser_switch_statement): Emit LABEL_EXPR for the break label | |
1475 | into SWITCH_BODY instead of after it and set SWITCH_BREAK_LABEL_P | |
1476 | on it. | |
1477 | ||
cc6534d4 JJ |
1478 | PR c/83222 |
1479 | * c-tree.h (decl_constant_value_1): Declare. | |
1480 | * c-typeck.c (decl_constant_value_1): New function. | |
1481 | (decl_constant_value): Use it. | |
1482 | * c-fold.c (c_fully_fold_internal): If in_init, use | |
1483 | decl_constant_value_1 instead of decl_constant_value. | |
1484 | ||
5de73c05 JJ |
1485 | 2017-11-30 Jakub Jelinek <jakub@redhat.com> |
1486 | ||
1487 | * c-parser.c (c_parser_postfix_expression): Use ; instead of ;;. | |
1488 | ||
058f0b9e JJ |
1489 | 2017-11-28 Jakub Jelinek <jakub@redhat.com> |
1490 | ||
1491 | PR sanitizer/81275 | |
1492 | * c-typeck.c (c_finish_case): Set SWITCH_ALL_CASES_P if | |
1493 | c_switch_covers_all_cases_p returns true. | |
1494 | ||
5e9d6aa4 | 1495 | 2017-11-28 Julia Koval <julia.koval@intel.com> |
92a285c1 | 1496 | Sebastian Peryt <sebastian.peryt@intel.com> |
5e9d6aa4 JK |
1497 | |
1498 | * Make-lang.in (c/c-array-notation.o): Remove. | |
1499 | * c-array-notation.c: Delete. | |
1500 | * c-decl.c: Remove cilkplus condition. | |
1501 | * c-parser.c (c_parser_cilk_simd, c_parser_cilk_for, | |
1502 | c_parser_cilk_verify_simd, c_parser_array_notation, | |
1503 | c_parser_cilk_clause_vectorlength, c_parser_cilk_grainsize, | |
1504 | c_parser_cilk_simd_fn_vector_attrs, | |
1505 | c_finish_cilk_simd_fn_tokens): Delete. | |
1506 | (c_parser_declaration_or_fndef): Remove cilkplus condition. | |
1507 | (c_parser_direct_declarator_inner): Ditto. | |
1508 | (CILK_SIMD_FN_CLAUSE_MASK): Delete. | |
1509 | (c_parser_attributes, c_parser_compound_statement, | |
1510 | c_parser_statement_after_labels, c_parser_if_statement, | |
1511 | c_parser_switch_statement, c_parser_while_statement, | |
1512 | c_parser_do_statement, c_parser_for_statement, | |
1513 | c_parser_unary_expression, c_parser_postfix_expression, | |
1514 | c_parser_postfix_expression_after_primary, | |
1515 | c_parser_pragma, c_parser_omp_clause_name, c_parser_omp_all_clauses, | |
1516 | c_parser_omp_for_loop, c_finish_omp_declare_simd): Remove cilkplus | |
1517 | support. | |
1518 | * c-typeck.c (build_array_ref, build_function_call_vec, | |
1519 | convert_arguments, | |
1520 | lvalue_p, build_compound_expr, c_finish_return, c_finish_if_stmt, | |
1521 | c_finish_loop, build_binary_op): Remove cilkplus support. | |
1522 | ||
9e851845 JJ |
1523 | 2017-11-28 Jakub Jelinek <jakub@redhat.com> |
1524 | ||
1525 | * c-typeck.c (c_start_case): Build SWITCH_EXPR using build2 instead | |
1526 | of build3. | |
1527 | ||
ab20d992 | 1528 | 2017-11-14 Boris Kolpackov <boris@codesynthesis.com> |
8c7dbea9 BK |
1529 | |
1530 | * Make-lang.in (c.install-plugin): Install backend import library. | |
1531 | ||
41521dee JJ |
1532 | 2017-11-23 Jakub Jelinek <jakub@redhat.com> |
1533 | ||
1534 | * c-parser.c (c_parser_omp_declare_simd): Reject declare simd in | |
1535 | pragma_stmt context. | |
1536 | ||
ac9effed EB |
1537 | 2017-11-23 Mike Stump <mikestump@comcast.net> |
1538 | Eric Botcazou <ebotcazou@adacore.com> | |
1539 | ||
1540 | * c-parser.c (c_parser_while_statement): Pass 3rd operand to | |
1541 | ANNOTATE_EXPR. | |
1542 | (c_parser_do_statement): Likewise. | |
1543 | (c_parser_for_statement): Likewise. | |
1544 | ||
ce95abc4 DM |
1545 | 2017-11-22 David Malcolm <dmalcolm@redhat.com> |
1546 | ||
1547 | PR c++/62170 | |
1548 | * c-objc-common.c (c_tree_printer): Convert penultimate param from | |
1549 | bool to bool *. Within '%T' handling, if showing an "aka", use | |
1550 | "quoted" param to add appropriate quoting. | |
1551 | ||
974aedcc MP |
1552 | 2017-11-22 Marek Polacek <polacek@redhat.com> |
1553 | ||
1554 | PR c++/60336 | |
1555 | PR middle-end/67239 | |
1556 | PR target/68355 | |
1557 | * c-decl.c (grokdeclarator): Set DECL_PADDING_P on unnamed bit-fields. | |
1558 | ||
d4300cc6 DM |
1559 | 2017-11-21 David Malcolm <dmalcolm@redhat.com> |
1560 | ||
1561 | PR c/83056 | |
1562 | * c-decl.c (lookup_name_fuzzy): Don't suggest names that came from | |
1563 | earlier failed lookups. | |
1564 | ||
1af4ebf5 MG |
1565 | 2017-11-21 Marc Glisse <marc.glisse@inria.fr> |
1566 | ||
1567 | * c-fold.c (c_fully_fold_internal): Handle POINTER_DIFF_EXPR. | |
1568 | * c-typeck.c (pointer_diff): Use POINTER_DIFF_EXPR. | |
1569 | ||
26edace6 DM |
1570 | 2017-11-20 David Malcolm <dmalcolm@redhat.com> |
1571 | ||
1572 | PR c/81404 | |
1573 | * c-decl.c: Include "c-family/known-headers.h". | |
1574 | (get_c_name_hint): Rename to get_stdlib_header_for_name and move | |
1575 | to known-headers.cc. | |
1576 | (class suggest_missing_header): Move to known-header.h. | |
1577 | (lookup_name_fuzzy): Call get_c_stdlib_header_for_name rather | |
1578 | than get_c_name_hint. | |
1579 | ||
b1212255 DM |
1580 | 2017-11-20 David Malcolm <dmalcolm@redhat.com> |
1581 | ||
1582 | * c-decl.c (get_c_name_hint): New function. | |
1583 | (class suggest_missing_header): New class. | |
1584 | (lookup_name_fuzzy): Call get_c_name_hint and use it to | |
1585 | suggest missing headers to the user. | |
1586 | ||
6c7a259b DM |
1587 | 2017-11-20 David Malcolm <dmalcolm@redhat.com> |
1588 | ||
1589 | * c-decl.c: Define INCLUDE_UNIQUE_PTR before including system.h. | |
1590 | Include "c-family/name-hint.h" | |
1591 | (implicit_decl_warning): Convert "hint" from | |
1592 | const char * to name_hint. Pass location to | |
1593 | lookup_name_fuzzy. Suppress any deferred diagnostic if the | |
1594 | warning was not printed. | |
1595 | (undeclared_variable): Likewise for "guessed_id". | |
1596 | (lookup_name_fuzzy): Convert return type from const char * | |
1597 | to name_hint. Add location_t param. | |
1598 | * c-parser.c: Define INCLUDE_UNIQUE_PTR before including system.h. | |
1599 | Include "c-family/name-hint.h" | |
1600 | (c_parser_declaration_or_fndef): Convert "hint" from | |
1601 | const char * to name_hint. Pass location to lookup_name_fuzzy. | |
1602 | (c_parser_parameter_declaration): Likewise. | |
1603 | ||
f9c59f7e JJ |
1604 | 2017-11-19 Jakub Jelinek <jakub@redhat.com> |
1605 | ||
1606 | PR c/66618 | |
1607 | PR c/69960 | |
1608 | * c-parser.c (c_parser_omp_atomic): Pass true as LVAL to c_fully_fold | |
1609 | where needed. | |
1610 | * c-typeck.c (build_unary_op, build_modify_expr, build_asm_expr, | |
1611 | handle_omp_array_sections): Likewise. | |
1612 | (digest_init): Don't call decl_constant_value_for_optimization. | |
1613 | * c-tree.h (decl_constant_value_for_optimization): Removed. | |
1614 | * c-fold.c (c_fold_array_ref): New function. | |
1615 | (c_fully_fold_internal): Add LVAL argument, propagate it through | |
1616 | recursive calls. For VAR_P call decl_constant_value and | |
1617 | unshare if not LVAL and either optimizing or IN_INIT. Remove | |
1618 | decl_constant_value_for_optimization calls. If IN_INIT and not LVAL, | |
1619 | fold ARRAY_REF with STRING_CST and INTEGER_CST operands. | |
1620 | (c_fully_fold): Add LVAL argument, pass it through to | |
1621 | c_fully_fold_internal. | |
1622 | (decl_constant_value_for_optimization): Removed. | |
1623 | ||
3ca0dc60 JM |
1624 | 2017-11-15 Joseph Myers <joseph@codesourcery.com> |
1625 | ||
1626 | PR c/81156 | |
1627 | * c-parser.c (check_tgmath_function): New function. | |
1628 | (enum tgmath_parm_kind): New enum. | |
1629 | (c_parser_postfix_expression): Handle __builtin_tgmath. | |
1630 | ||
64a5912c DM |
1631 | 2017-10-31 David Malcolm <dmalcolm@redhat.com> |
1632 | ||
1633 | * c-decl.c (implicit_decl_warning): Update for renaming of | |
1634 | pedwarn_at_rich_loc and warning_at_rich_loc. | |
1635 | (implicitly_declare): Likewise for renaming of inform_at_rich_loc. | |
1636 | (undeclared_variable): Likewise for renaming of error_at_rich_loc. | |
1637 | * c-parser.c (c_parser_declaration_or_fndef): Likewise. | |
1638 | (c_parser_struct_or_union_specifier): Likewise for renaming of | |
1639 | pedwarn_at_rich_loc. | |
1640 | (c_parser_parameter_declaration): Likewise for renaming of | |
1641 | error_at_rich_loc. | |
1642 | * c-typeck.c (build_component_ref): Likewise. | |
1643 | (build_unary_op): Likewise for renaming of inform_at_rich_loc. | |
1644 | (pop_init_level): Likewise for renaming of warning_at_rich_loc. | |
1645 | (set_init_label): Likewise for renaming of error_at_rich_loc. | |
1646 | ||
c1136864 RB |
1647 | 2017-10-30 Richard Biener <rguenther@suse.de> |
1648 | ||
1649 | * gimple-parser.c (c_parser_gimple_statement): Parse conditional | |
1650 | stmts. | |
1651 | ||
ee5fd23a MM |
1652 | 2017-10-27 Michael Meissner <meissner@linux.vnet.ibm.com> |
1653 | ||
1654 | * c-decl.c (header_for_builtin_fn): Add support for copysign, fma, | |
1655 | fmax, fmin, and sqrt _Float<N> and _Float<N>X variants. | |
1656 | ||
1a59ccf2 DM |
1657 | 2017-10-25 David Malcolm <dmalcolm@redhat.com> |
1658 | ||
1659 | PR c/7356 | |
1660 | * c-parser.c (c_parser_declaration_or_fndef): Detect missing | |
1661 | semicolons. | |
1662 | ||
bc1a75dd JJ |
1663 | 2017-10-25 Jakub Jelinek <jakub@redhat.com> |
1664 | ||
1665 | PR libstdc++/81706 | |
1666 | * c-decl.c (merge_decls): Copy "omp declare simd" attributes from | |
1667 | newdecl to corresponding __builtin_ if any. | |
1668 | ||
ff1ff960 PC |
1669 | 2017-10-24 Paolo Carlini <paolo.carlini@oracle.com> |
1670 | ||
1671 | PR c++/82466 | |
1672 | * c-decl.c (diagnose_mismatched_decls): Use | |
1673 | OPT_Wbuiltin_declaration_mismatch. | |
1674 | ||
62e1c678 DM |
1675 | 2017-10-12 David Malcolm <dmalcolm@redhat.com> |
1676 | ||
1677 | * c-parser.c (c_parser_require): Add "type_is_unique" param and | |
1678 | use it to guard calls to maybe_suggest_missing_token_insertion. | |
1679 | (c_parser_parms_list_declarator): Override default value of new | |
1680 | "type_is_unique" param to c_parser_require. | |
1681 | (c_parser_asm_statement): Likewise. | |
1682 | * c-parser.h (c_parser_require): Add "type_is_unique" param, | |
1683 | defaulting to true. | |
1684 | ||
a92f6726 NS |
1685 | 2017-10-11 Nathan Sidwell <nathan@acm.org> |
1686 | ||
1687 | * c-decl.c (grokdeclarator): Check HAS_DECL_ASSEMBLER_NAME_P too. | |
1688 | ||
8e6cdc90 RS |
1689 | 2017-10-10 Richard Sandiford <richard.sandiford@linaro.org> |
1690 | ||
1691 | * c-parser.c (c_parser_cilk_clause_vectorlength): Use wi::to_wide when | |
1692 | operating on trees as wide_ints. | |
1693 | * c-typeck.c (build_c_cast, c_finish_omp_clauses): Likewise. | |
1694 | (c_tree_equal): Likewise. | |
1695 | ||
8139a48e DM |
1696 | 2017-10-04 David Malcolm <dmalcolm@redhat.com> |
1697 | ||
1698 | * c-decl.c (push_parm_decl): Store c_parm's location into the | |
1699 | PARAM_DECL. | |
1700 | (build_c_parm): Add "loc" param and store it within the c_parm. | |
1701 | * c-parser.c (struct c_parser): Add "last_token_location" field. | |
1702 | (c_parser_consume_token): Store location of the token into the | |
1703 | new field. | |
1704 | (c_parser_declaration_or_fndef): Store params into DECL_ARGUMENTS | |
1705 | when handling a FUNCTION_DECL, if it doesn't already have them. | |
1706 | (c_parser_parameter_declaration): Generate a location for the | |
1707 | parameter, and pass it to the call to build_c_parm. | |
1708 | * c-tree.h (struct c_parm): Add field "loc". | |
1709 | (build_c_parm): Add location_t param. | |
1710 | * c-typeck.c (get_fndecl_argument_location): New function. | |
1711 | (inform_for_arg): New function. | |
1712 | (convert_for_assignment): Use inform_for_arg when dealing with | |
1713 | ic_argpass. | |
1714 | ||
2a389958 JJ |
1715 | 2017-09-29 Jakub Jelinek <jakub@redhat.com> |
1716 | ||
7d386d45 JJ |
1717 | * c-decl.c (grokfield): Use SET_DECL_C_BIT_FIELD here if |
1718 | width is non-NULL. | |
1719 | (finish_struct): Test DECL_C_BIT_FIELD instead of DECL_INITIAL, | |
1720 | don't SET_DECL_C_BIT_FIELD here. | |
1721 | ||
2a389958 JJ |
1722 | PR c/82340 |
1723 | * c-decl.c (build_compound_literal): Use c_apply_type_quals_to_decl | |
1724 | instead of trying to set just TREE_READONLY manually. | |
1725 | ||
ebc6a85e TV |
1726 | 2017-09-16 Tom de Vries <tom@codesourcery.com> |
1727 | ||
1728 | PR c/81875 | |
1729 | * c-parser.c (c_parser_omp_for_loop): Fold only operands of cond, not | |
1730 | cond itself. | |
1731 | ||
bb75facd JM |
1732 | 2017-09-15 Joseph Myers <joseph@codesourcery.com> |
1733 | ||
1734 | PR c/82071 | |
1735 | * c-typeck.c (ep_convert_and_check): Just call convert_and_check | |
1736 | for C11. | |
1737 | (build_conditional_expr): For C11, generate result with excess | |
1738 | precision when one argument is an integer and the other is of a | |
1739 | type using excess precision. | |
1740 | ||
1d933576 BE |
1741 | 2017-09-15 Bernd Edlinger <bernd.edlinger@hotmail.de> |
1742 | ||
1743 | * c-typeck.c (build_c_cast): Implement -Wcast-align=strict. | |
1744 | ||
267bbb6f MP |
1745 | 2017-09-13 Marek Polacek <polacek@redhat.com> |
1746 | ||
1747 | PR c/82167 | |
1748 | * c-typeck.c (c_expr_sizeof_expr): Use the type of expr.value rather | |
1749 | than expr.original_type. | |
1750 | ||
6836632e NS |
1751 | 2017-09-12 Nathan Sidwell <nathan@acm.org> |
1752 | ||
1753 | * c-decl.c (field_decl_cmp, resort_data, resort_field_decl_cmp, | |
1754 | resort_sorted_fields): Moved from c-family/c-common.c. | |
1755 | * c-lang.h (struct sorted_fields_type): Moved from c-family/c-common.h. | |
1756 | ||
e035be33 JM |
1757 | 2017-09-01 Joseph Myers <joseph@codesourcery.com> |
1758 | ||
1759 | PR c/82071 | |
1760 | * c-typeck.c (build_atomic_assign): Handle argument with excess | |
1761 | precision. Ensure any EXCESS_PRECISION_EXPR is present in | |
1762 | argument passed to build_binary_op and convert_for_assignment but | |
1763 | not for call to c_fully_fold. | |
1764 | (build_modify_expr): Do not remove EXCESS_PRECISION_EXPR early. | |
1765 | Ensure build_binary_op is called with argument with original | |
1766 | semantic type. Avoid calling c_fully_fold with an | |
1767 | EXCESS_PRECISION_EXPR from build_binary_op. | |
1768 | ||
d2e05fcb JJ |
1769 | 2017-09-01 Jakub Jelinek <jakub@redhat.com> |
1770 | ||
1771 | PR c/81887 | |
1772 | * c-parser.c (c_parser_omp_ordered): Handle -fopenmp-simd. | |
1773 | ||
b397965c RS |
1774 | 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org> |
1775 | Alan Hayward <alan.hayward@arm.com> | |
1776 | David Sherwood <david.sherwood@arm.com> | |
1777 | ||
1778 | * c-typeck.c (build_binary_op): Use SCALAR_TYPE_MODE. | |
1779 | (c_common_type): Likewise. Use as_a <scalar_mode> when setting | |
1780 | m1 and m2 to the signed equivalent of a fixed-point | |
1781 | SCALAR_TYPE_MODE. | |
1782 | ||
14e18d71 DM |
1783 | 2017-08-24 David Malcolm <dmalcolm@redhat.com> |
1784 | ||
1785 | * c-tree.h (c_expr::get_location) Use EXPR_HAS_LOCATION rather | |
1786 | than CAN_HAVE_LOCATION_P when determining whether to use the | |
1787 | location_t value within "value". | |
1788 | ||
7f204c0f DM |
1789 | 2017-08-21 David Malcolm <dmalcolm@redhat.com> |
1790 | ||
1791 | * c-parser.c (c_parser_expr_list): Use c_expr::get_location () | |
1792 | rather than peeking the location of the first token. | |
1793 | * c-tree.h (c_expr::get_location): New method. | |
1794 | ||
2f687306 DM |
1795 | 2017-08-21 David Malcolm <dmalcolm@redhat.com> |
1796 | ||
1797 | * c-typeck.c (build_function_call_vec): Pass arg_loc to call | |
1798 | to check_function_arguments. | |
1799 | ||
3e7b80d7 MP |
1800 | 2017-08-18 Marek Polacek <polacek@redhat.com> |
1801 | ||
1802 | * c-parser.c (c_parser_postfix_expression): Remove unused code. Update | |
1803 | commentary. | |
1804 | ||
00aa1fa2 L |
1805 | 2017-08-18 H.J. Lu <hongjiu.lu@intel.com> |
1806 | ||
1807 | PR c/53037 | |
1808 | * c-decl.c (merge_decls): Also merge DECL_WARN_IF_NOT_ALIGN. | |
1809 | (check_bitfield_type_and_width): Don't allow bit-field with | |
1810 | warn_if_not_aligned type. | |
1811 | ||
da67acb9 MS |
1812 | 2017-08-14 Martin Sebor <msebor@redhat.com> |
1813 | ||
1814 | PR c/81117 | |
1815 | * c-objc-common.c (c_objc_common_init): Handle 'G'. | |
1816 | ||
bb85aa74 MP |
1817 | 2017-08-11 Marek Polacek <polacek@redhat.com> |
1818 | ||
1819 | PR c/81795 | |
1820 | * c-decl.c (pushtag): Only print inform if the warning was printed. | |
1821 | (grokdeclarator): Likewise. | |
1822 | ||
32129a17 DM |
1823 | 2017-08-10 David Malcolm <dmalcolm@redhat.com> |
1824 | ||
1825 | * c-parser.c (c_parser_error): Rename to... | |
1826 | (c_parser_error_richloc): ...this, making static, and adding | |
1827 | "richloc" parameter, passing it to the c_parse_error call, | |
1828 | rather than calling c_parser_set_source_position_from_token. | |
1829 | (c_parser_error): Reintroduce, reimplementing in terms of the | |
1830 | above, converting return type from void to bool. | |
1831 | (class token_pair): New class. | |
1832 | (struct matching_paren_traits): New struct. | |
1833 | (matching_parens): New typedef. | |
1834 | (struct matching_brace_traits): New struct. | |
1835 | (matching_braces): New typedef. | |
1836 | (get_matching_symbol): New function. | |
1837 | (c_parser_require): Add param MATCHING_LOCATION, using it to | |
1838 | highlight matching "opening" tokens for missing "closing" tokens. | |
1839 | (c_parser_skip_until_found): Likewise. | |
1840 | (c_parser_static_assert_declaration_no_semi): Convert explicit | |
1841 | parsing of CPP_OPEN_PAREN and CPP_CLOSE_PAREN to use of | |
1842 | class matching_parens, so that the pertinent open parenthesis is | |
1843 | highlighted when there are problems locating the close | |
1844 | parenthesis. | |
1845 | (c_parser_struct_or_union_specifier): Likewise. | |
1846 | (c_parser_typeof_specifier): Likewise. | |
1847 | (c_parser_alignas_specifier): Likewise. | |
1848 | (c_parser_simple_asm_expr): Likewise. | |
1849 | (c_parser_braced_init): Likewise, for matching_braces. | |
1850 | (c_parser_paren_condition): Likewise, for matching_parens. | |
1851 | (c_parser_switch_statement): Likewise. | |
1852 | (c_parser_for_statement): Likewise. | |
1853 | (c_parser_asm_statement): Likewise. | |
1854 | (c_parser_asm_operands): Likewise. | |
1855 | (c_parser_cast_expression): Likewise. | |
1856 | (c_parser_sizeof_expression): Likewise. | |
1857 | (c_parser_alignof_expression): Likewise. | |
1858 | (c_parser_generic_selection): Likewise. | |
1859 | (c_parser_postfix_expression): Likewise for cases RID_VA_ARG, | |
1860 | RID_OFFSETOF, RID_TYPES_COMPATIBLE_P, RID_AT_SELECTOR, | |
1861 | RID_AT_PROTOCOL, RID_AT_ENCODE, reindenting as necessary. | |
1862 | In case CPP_OPEN_PAREN, pass loc_open_paren to the | |
1863 | c_parser_skip_until_found call. | |
1864 | (c_parser_objc_class_definition): Use class matching_parens as | |
1865 | above. | |
1866 | (c_parser_objc_method_decl): Likewise. | |
1867 | (c_parser_objc_try_catch_finally_statement): Likewise. | |
1868 | (c_parser_objc_synchronized_statement): Likewise. | |
1869 | (c_parser_objc_at_property_declaration): Likewise. | |
1870 | (c_parser_oacc_wait_list): Likewise. | |
1871 | (c_parser_omp_var_list_parens): Likewise. | |
1872 | (c_parser_omp_clause_collapse): Likewise. | |
1873 | (c_parser_omp_clause_default): Likewise. | |
1874 | (c_parser_omp_clause_if): Likewise. | |
1875 | (c_parser_omp_clause_num_threads): Likewise. | |
1876 | (c_parser_omp_clause_num_tasks): Likewise. | |
1877 | (c_parser_omp_clause_grainsize): Likewise. | |
1878 | (c_parser_omp_clause_priority): Likewise. | |
1879 | (c_parser_omp_clause_hint): Likewise. | |
1880 | (c_parser_omp_clause_defaultmap): Likewise. | |
1881 | (c_parser_oacc_single_int_clause): Likewise. | |
1882 | (c_parser_omp_clause_ordered): Likewise. | |
1883 | (c_parser_omp_clause_reduction): Likewise. | |
1884 | (c_parser_omp_clause_schedule): Likewise. | |
1885 | (c_parser_omp_clause_num_teams): Likewise. | |
1886 | (c_parser_omp_clause_thread_limit): Likewise. | |
1887 | (c_parser_omp_clause_aligned): Likewise. | |
1888 | (c_parser_omp_clause_linear): Likewise. | |
1889 | (c_parser_omp_clause_safelen): Likewise. | |
1890 | (c_parser_omp_clause_simdlen): Likewise. | |
1891 | (c_parser_omp_clause_depend): Likewise. | |
1892 | (c_parser_omp_clause_map): Likewise. | |
1893 | (c_parser_omp_clause_device): Likewise. | |
1894 | (c_parser_omp_clause_dist_schedule): Likewise. | |
1895 | (c_parser_omp_clause_proc_bind): Likewise. | |
1896 | (c_parser_omp_clause_uniform): Likewise. | |
1897 | (c_parser_omp_for_loop): Likewise. | |
1898 | (c_parser_cilk_clause_vectorlength): Likewise. | |
1899 | (c_parser_cilk_clause_linear): Likewise. | |
1900 | (c_parser_transaction_expression): Likewise. | |
1901 | * c-parser.h (c_parser_require): Add param matching_location with | |
1902 | default UNKNOWN_LOCATION. | |
1903 | (c_parser_error): Convert return type from void to bool. | |
1904 | (c_parser_skip_until_found): Add param matching_location with | |
1905 | default UNKNOWN_LOCATION. | |
1906 | ||
30af3a2b MP |
1907 | 2017-08-09 Marek Polacek <polacek@redhat.com> |
1908 | ||
1909 | * c-decl.c (build_enumerator): Use true/false instead of 1/0. | |
1910 | * c-tree.h (build_external_ref): Update declaration. | |
1911 | * c-typeck.c (build_array_ref): Use true/false instead of 1/0. | |
1912 | (build_external_ref): Change the type of a parameter to bool. | |
1913 | (parser_build_binary_op): Use true/false instead of 1/0. | |
1914 | (pointer_diff): Likewise. | |
1915 | (build_modify_expr): Likewise. | |
1916 | (set_designator): Change the type of a parameter to bool. | |
1917 | (set_init_index): Use true/false instead of 1/0. | |
1918 | (set_init_label): Likewise. | |
1919 | (output_init_element): Change the type of a parameter to bool. | |
1920 | (output_pending_init_elements): Use true/false instead of 1/0. | |
1921 | (process_init_element): Likewise. | |
1922 | (build_binary_op): Change the type of a parameter to bool. | |
1923 | ||
296c53ac MP |
1924 | 2017-08-09 Marek Polacek <polacek@redhat.com> |
1925 | ||
1926 | PR c/81233 | |
1927 | * c-typeck.c (pedwarn_init): Make the function take a variable list. | |
1928 | Call emit_diagnostic_valist instead of pedwarn. | |
1929 | (convert_for_assignment): Unroll the PEDWARN_FOR_ASSIGNMENT macro. | |
1930 | Print the relevant types in diagnostics. | |
1931 | ||
a32c8316 MP |
1932 | 2017-08-09 Marek Polacek <polacek@redhat.com> |
1933 | ||
1934 | PR c/81417 | |
1935 | * c-array-notation.c (fix_builtin_array_notation_fn): Update calls to | |
ab20d992 | 1936 | build_conditional_expr. |
a32c8316 MP |
1937 | * c-parser.c (c_parser_conditional_expression): Create locations for |
1938 | EXP1 and EXP2 from their source ranges. Pass the locations down to | |
1939 | build_conditional_expr. | |
1940 | * c-tree.h (build_conditional_expr): Update declaration. | |
1941 | * c-typeck.c (build_conditional_expr): Add location_t parameters. | |
1942 | For -Wsign-compare, also print the types. | |
1943 | ||
314e6352 ML |
1944 | 2017-08-08 Martin Liska <mliska@suse.cz> |
1945 | ||
1946 | * c-convert.c: Include header files. | |
1947 | * c-typeck.c: Likewise. | |
1948 | ||
577eec56 ML |
1949 | 2017-08-07 Martin Liska <mliska@suse.cz> |
1950 | ||
1951 | * c-parser.c (c_parser_attributes): Canonicalize name of an | |
1952 | attribute. | |
1953 | ||
f7b6353a MP |
1954 | 2017-08-02 Marek Polacek <polacek@redhat.com> |
1955 | ||
1956 | PR c/81289 | |
1957 | * c-parser.c (c_parser_unary_expression): Use set_error. | |
1958 | ||
8a6eab34 MP |
1959 | PR c/81448 |
1960 | PR c/81306 | |
1961 | * c-warn.c (warn_for_multistatement_macros): Prevent bogus | |
1962 | warnings. Avoid walking MACRO_MAP_LOCATIONS. | |
1963 | ||
ab20d992 | 1964 | 2017-07-31 Jan Hubicka <hubicka@ucw.cz> |
7fef86d3 JH |
1965 | Martin Liska <mliska@suse.cz> |
1966 | ||
1967 | * c-typeck.c (c_finish_goto_label): Build gimple predict | |
f7b6353a | 1968 | statement. |
7fef86d3 | 1969 | |
f34ebeb2 ML |
1970 | 2017-07-31 Martin Liska <mliska@suse.cz> |
1971 | ||
1972 | PR sanitize/81530 | |
1973 | * c-convert.c (convert): Guard condition with flag_sanitize_p | |
1974 | also with current_function_decl non-null equality. | |
1975 | * c-decl.c (grokdeclarator): Likewise. | |
1976 | * c-typeck.c (build_binary_op): Likewise. | |
1977 | ||
8595f67b MP |
1978 | 2017-07-25 Marek Polacek <polacek@redhat.com> |
1979 | ||
1980 | * c-decl.c (grokfield): Remove local variable. | |
1981 | ||
d49718d6 MP |
1982 | 2017-07-25 Marek Polacek <polacek@redhat.com> |
1983 | ||
1984 | PR c/81364 | |
1985 | * c-parser.c (c_parser_else_body): Don't warn about multistatement | |
1986 | macro expansion if the body is in { }. | |
1987 | (c_parser_while_statement): Likewise. | |
1988 | (c_parser_for_statement): Likewise. | |
1989 | ||
ff22eb12 NS |
1990 | 2017-07-18 Nathan Sidwell <nathan@acm.org> |
1991 | ||
1992 | * c-parser.c (c_parser_array_notation): Use TYPE_{MIN,MAX}_VALUE. | |
1993 | ||
eea77d1f DM |
1994 | 2017-07-14 David Malcolm <dmalcolm@redhat.com> |
1995 | ||
1996 | * c-decl.c (implicitly_declare): When suggesting a missing | |
1997 | #include, provide a fix-it hint. | |
1998 | ||
b6f43128 DM |
1999 | 2017-07-06 David Malcolm <dmalcolm@redhat.com> |
2000 | ||
2001 | * c-lang.c (selftest::run_c_tests): Move body to c_family_tests, | |
2002 | and call that instead. | |
2003 | * c-tree.h (selftest::run_c_tests): New decl. | |
2004 | ||
3e2becc4 MP |
2005 | 2017-06-26 Marek Polacek <polacek@redhat.com> |
2006 | ||
2007 | PR c/80116 | |
2008 | * c-parser.c (c_parser_if_body): Set the location of the | |
2009 | body of the conditional after parsing all the labels. Call | |
2010 | warn_for_multistatement_macros. | |
2011 | (c_parser_else_body): Likewise. | |
2012 | (c_parser_switch_statement): Likewise. | |
2013 | (c_parser_while_statement): Likewise. | |
2014 | (c_parser_for_statement): Likewise. | |
2015 | (c_parser_statement): Add a default argument. Save the location | |
2016 | after labels have been parsed. | |
2017 | (c_parser_c99_block_statement): Likewise. | |
2018 | ||
343ae898 RB |
2019 | 2017-06-19 Richard Biener <rguenther@suse.de> |
2020 | ||
2021 | * gimple-parser.c (c_parser_gimple_postfix_expression): Handle | |
2022 | negated _Literals to parse _Literal (int) -1. | |
2023 | ||
45b2222a ML |
2024 | 2017-06-13 Martin Liska <mliska@suse.cz> |
2025 | ||
2026 | PR sanitize/78204 | |
2027 | * c-convert.c (convert): Use sanitize_flags_p. | |
2028 | * c-decl.c (grokdeclarator): Likewise. | |
2029 | * c-typeck.c (convert_for_assignment): Likewise. | |
2030 | (c_finish_return): Likewise. | |
2031 | (build_binary_op): Likewise. | |
2032 | ||
8ab7005b JJ |
2033 | 2017-06-08 Jakub Jelinek <jakub@redhat.com> |
2034 | ||
2035 | PR c/81006 | |
2036 | * c-typeck.c (handle_omp_array_sections_1): Convert TYPE_MAX_VALUE | |
2037 | to sizetype before size_binop. | |
2038 | ||
363dc72c JJ |
2039 | 2017-06-07 Jakub Jelinek <jakub@redhat.com> |
2040 | ||
2041 | * gimple-parser.c (c_parser_parse_gimple_body): Use TDI_gimple instead | |
2042 | of TDI_generic. | |
2043 | ||
dc949728 MP |
2044 | 2017-06-06 Marek Polacek <polacek@redhat.com> |
2045 | ||
2046 | PR c/79983 | |
2047 | * c-decl.c (start_struct): Use the location of TYPE_STUB_DECL of | |
2048 | ref. | |
2049 | (start_enum): Use the location of TYPE_STUB_DECL of enumtype. | |
2050 | ||
40ffd95f BE |
2051 | 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de> |
2052 | ||
2053 | * c-parser.c (c_parser_binary_expression): Implement the | |
2054 | -Wsizeof_pointer_div warning. | |
2055 | (c_parser_postfix_expression): Allow SIZEOF_EXPR as expr.original_code | |
2056 | from a parenthesized expression. | |
2057 | (c_parser_expr_list): Use c_last_sizeof_loc. | |
2058 | * c-tree.h (c_last_sizeof_loc): New external. | |
2059 | * c-typeck.c (c_last_sizeof_loc): New variable. | |
2060 | (c_expr_sizeof_expr, c_expr_sizeof_type): Assign c_last_sizeof_loc. | |
2061 | ||
9fc5e7a4 MM |
2062 | 2017-05-31 Mikhail Maltsev <maltsevm@gmail.com> |
2063 | ||
2064 | PR testsuite/80580 | |
2065 | * gimple-parser.c (c_parser_gimple_if_stmt): Check for empty labels. | |
2066 | ||
f012c8ef DM |
2067 | 2017-05-30 David Malcolm <dmalcolm@redhat.com> |
2068 | ||
2069 | * c-objc-common.c (c_tree_printer): Gain bool and const char ** | |
2070 | parameters. | |
2071 | ||
3cd211af MS |
2072 | 2017-05-24 Martin Sebor <msebor@redhat.com> |
2073 | ||
2074 | PR c/80731 | |
2075 | * c-fold.c (c_fully_fold_internal): Adjust. | |
2076 | * c-typeck.c (parser_build_unary_op): Adjust. | |
2077 | ||
fd71a9a2 TS |
2078 | 2017-05-23 Thomas Schwinge <thomas@codesourcery.com> |
2079 | ||
2080 | * c-parser.c (OACC_KERNELS_CLAUSE_MASK): Add | |
2081 | "PRAGMA_OACC_CLAUSE_NUM_GANGS", "PRAGMA_OACC_CLAUSE_NUM_WORKERS", | |
2082 | "VECTOR_LENGTH". | |
2083 | ||
92fa0f9e MP |
2084 | 2017-05-23 Marek Polacek <polacek@redhat.com> |
2085 | ||
2086 | * c-parser.c (c_parser_compound_statement_nostart): Remove redundant | |
2087 | quotes. | |
2088 | ||
d11c168a JJ |
2089 | 2017-05-22 Jakub Jelinek <jakub@redhat.com> |
2090 | ||
2091 | * c-fold.c (c_fully_fold_internal): Save the c_fully_fold_internal | |
2092 | result for SAVE_EXPR operand and set SAVE_EXPR_FOLDED_P even if | |
2093 | it returned invariant. Call tree_invariant_p unconditionally | |
2094 | afterwards to decide whether to return expr or op0. | |
2095 | ||
58aca9d9 NS |
2096 | 2017-05-22 Nathan Sidwell <nathan@acm.org> |
2097 | ||
2098 | * c-decl.c (c_parse_final_cleanups): Drop TDI_tu handling. | |
2099 | ||
7fd549d2 TS |
2100 | 2017-05-19 Thomas Schwinge <thomas@codesourcery.com> |
2101 | ||
2102 | * c-parser.c (c_parser_omp_clause_default): Handle | |
2103 | "OMP_CLAUSE_DEFAULT_PRESENT". | |
2104 | ||
6ecd2339 BE |
2105 | 2017-05-18 Bernd Edlinger <bernd.edlinger@hotmail.de> |
2106 | ||
2107 | * config-lang.in (gtfiles): Add c-family/c-format.c. | |
2108 | ||
8a57ecff NS |
2109 | 2017-05-18 Nathan Sidwell <nathan@acm.org> |
2110 | ||
2111 | * c-decl.c (pushdecl_top_level): Delete unused function. | |
2112 | ||
6574d78e MP |
2113 | 2017-05-18 Marek Polacek <polacek@redhat.com> |
2114 | ||
2115 | * c-decl.c (match_builtin_function_types): Use NULL_TREE instead of 0. | |
2116 | (check_earlier_gotos): Likewise. | |
2117 | (define_label): Likewise. | |
2118 | (pending_xref_error): Likewise. | |
2119 | (smallest_type_quals_location): Likewise. | |
2120 | (grokdeclarator): Likewise. | |
2121 | (grokparms): Likewise. | |
2122 | (identifier_global_value): Likewise. | |
2123 | * c-typeck.c (set_nonincremental_init_from_string): Likewise. | |
2124 | (find_init_member): Likewise. | |
2125 | ||
e3455240 MP |
2126 | 2017-05-18 Marek Polacek <polacek@redhat.com> |
2127 | ||
2128 | * c-decl.c (start_decl): Use false/true instead of 0/1. | |
2129 | (grokdeclarator): Likewise. | |
2130 | (finish_struct): Likewise. | |
2131 | (start_function): Change the return type to bool. Use false/true | |
2132 | instead of 0/1. | |
2133 | (declspecs_add_qual): Use UNKNOWN_LOCATION instead of 0. | |
2134 | * c-tree.h (start_function): Update. | |
2135 | * c-typeck.c (same_translation_unit_p): Change the return type to bool. | |
2136 | (set_designator): Change the return type to bool. Use false/true | |
2137 | instead of 0/1. | |
2138 | ||
3fa8871b MP |
2139 | 2017-05-17 Marek Polacek <polacek@redhat.com> |
2140 | ||
2141 | * c-decl.c: Use NULL_TREE instead of 0 where appropriate. | |
2142 | * c-typeck.c: Likewise. | |
2143 | ||
142473df MP |
2144 | 2017-05-17 Marek Polacek <polacek@redhat.com> |
2145 | ||
2146 | PR sanitizer/80659 | |
2147 | * c-decl.c (build_compound_literal): Set DECL_ARTIFICIAL and | |
2148 | DECL_IGNORED_P even for non-static compound literals. | |
2149 | ||
1a817418 ML |
2150 | 2017-05-17 Martin Liska <mliska@suse.cz> |
2151 | ||
2152 | * c-decl.c (c_parse_final_cleanups): Introduce dump_flags_t type and | |
2153 | use it instead of int type. | |
2154 | ||
b2fa0a8b MP |
2155 | 2017-05-17 Marek Polacek <polacek@redhat.com> |
2156 | ||
2157 | * c-convert.c (convert): Replace c_save_expr with save_expr. Don't | |
2158 | call c_fully_fold. | |
2159 | (convert) <case COMPLEX_TYPE>: Remove special handling of COMPLEX_TYPEs. | |
ab20d992 | 2160 | * c-decl.c (grokdeclarator): Replace c_save_expr with save_expr. |
b2fa0a8b MP |
2161 | * c-fold.c (c_fully_fold_internal): Handle SAVE_EXPR. |
2162 | * c-parser.c (c_parser_declaration_or_fndef): Replace c_save_expr with | |
2163 | save_expr. | |
2164 | (c_parser_conditional_expression): Likewise. | |
2165 | * c-tree.h (SAVE_EXPR_FOLDED_P): Define. | |
2166 | * c-typeck.c (build_modify_expr): Replace c_save_expr with save_expr. | |
2167 | (process_init_element): Likewise. | |
2168 | (build_binary_op): Likewise. | |
2169 | (handle_omp_array_sections_1): Likewise. | |
2170 | ||
1e47f02b TS |
2171 | 2017-05-12 Thomas Schwinge <thomas@codesourcery.com> |
2172 | ||
2173 | * c-parser.c (c_parser_omp_clause_num_gangs) | |
2174 | (c_parser_omp_clause_num_workers) | |
2175 | (c_parser_omp_clause_vector_length): Merge functions into... | |
2176 | (c_parser_oacc_single_int_clause): ... this new function. Adjust | |
2177 | all users. | |
2178 | ||
c24e924f NS |
2179 | 2017-05-11 Nathan Sidwell <nathan@acm.org> |
2180 | ||
2181 | * gimple-parser.c: Don't #include tree-dump.h. | |
2182 | ||
c587104e MM |
2183 | 2017-05-11 Mikhail Maltsev <maltsevm@gmail.com> |
2184 | ||
2185 | PR testsuite/80580 | |
2186 | * gimple-parser.c (c_parser_parse_ssa_name): Validate SSA name base. | |
2187 | ||
67ac9a9d MM |
2188 | 2017-05-11 Mikhail Maltsev <maltsevm@gmail.com> |
2189 | ||
2190 | PR testsuite/80580 | |
2191 | * gimple-parser.c (c_parser_gimple_postfix_expression): Handle | |
2192 | incorrect __MEM syntax. | |
2193 | ||
ac4eb40f MM |
2194 | 2017-05-11 Mikhail Maltsev <maltsevm@gmail.com> |
2195 | ||
2196 | PR testsuite/80580 | |
2197 | * gimple-parser.c (c_parser_gimple_unary_expression): Check argument | |
2198 | type of unary '*'. | |
2199 | ||
641da50a NS |
2200 | 2017-05-09 Nathan Sidwell <nathan@acm.org> |
2201 | ||
2202 | * c-tree.h (pushdecl): Declare. | |
2203 | ||
56d35585 DM |
2204 | 2017-05-05 David Malcolm <dmalcolm@redhat.com> |
2205 | ||
2206 | * c-decl.c (warn_defaults_to): Replace report_diagnostic | |
2207 | with diagnostic_report_diagnostic. | |
2208 | * c-errors.c (pedwarn_c99): Likewise. | |
2209 | (pedwarn_c90): Likewise. | |
2210 | ||
815d9cc6 XR |
2211 | 2017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn> |
2212 | ||
92a285c1 | 2213 | PR c++/80038 |
815d9cc6 XR |
2214 | * c-gimplify.c (c_gimplify_expr): Remove calls to |
2215 | cilk_gimplifY_call_params_in_spawned_fn. | |
2216 | ||
1c4ea66f DM |
2217 | 2017-04-25 David Malcolm <dmalcolm@redhat.com> |
2218 | ||
2219 | * c-parser.c (c_parser_struct_or_union_specifier): Add fix-it | |
2220 | hint for removing extra semicolon. | |
2221 | ||
666f7903 JJ |
2222 | 2017-04-21 Jakub Jelinek <jakub@redhat.com> |
2223 | ||
2224 | PR c/80468 | |
2225 | * c-decl.c (finish_declspecs) <case cts_int_n>: If int_n_idx is not | |
2226 | enabled, set specs->type to integer_type_node. | |
2227 | ||
5764ee3c JW |
2228 | 2017-04-03 Jonathan Wakely <jwakely@redhat.com> |
2229 | ||
2230 | * c-array-notation.c: Fix typo in comment. | |
2231 | ||
10fa8dfb MP |
2232 | 2017-03-29 Marek Polacek <polacek@redhat.com> |
2233 | ||
2234 | PR c/79730 | |
2235 | * c-decl.c (finish_decl): Check VAR_P. | |
2236 | ||
a9e4a1a5 JJ |
2237 | 2017-03-27 Jakub Jelinek <jakub@redhat.com> |
2238 | ||
2239 | PR middle-end/80162 | |
2240 | * c-tree.h (c_mark_addressable): Add array_ref_p argument. | |
2241 | * c-typeck.c (c_mark_addressable): Likewise. Look through | |
2242 | VIEW_CONVERT_EXPR unless array_ref_p and VCE is from VECTOR_TYPE | |
2243 | to ARRAY_TYPE. | |
2244 | (build_array_ref): Pass true as array_ref_p to c_mark_addressable. | |
2245 | ||
ee3ff394 MP |
2246 | 2017-03-23 Marek Polacek <polacek@redhat.com> |
2247 | ||
2248 | * c-tree.h: Remove a C_RID_YYCODE reference. | |
2249 | ||
4d1b8e70 JJ |
2250 | 2017-03-21 Jakub Jelinek <jakub@redhat.com> |
2251 | ||
2252 | PR c/80097 | |
2253 | * c-typeck.c (build_binary_op): Add EXCESS_PRECISION_EXPR only around | |
2254 | optional COMPOUND_EXPR with ubsan instrumentation. | |
2255 | ||
31dc71a8 MP |
2256 | 2017-03-17 Marek Polacek <polacek@redhat.com> |
2257 | ||
2258 | * c-parser.c: Add C11 references. | |
2259 | ||
d579c385 MP |
2260 | 2017-03-15 Marek Polacek <polacek@redhat.com> |
2261 | ||
2262 | * c-parser.c (c_parser_enum_specifier): Remove redundant line. | |
2263 | ||
85059a38 MP |
2264 | 2017-03-11 Marek Polacek <polacek@redhat.com> |
2265 | ||
2266 | * c-decl.c (implicit_decl_warning): Add a comment. Fix formatting. | |
2267 | ||
2f6f187a DM |
2268 | 2017-03-10 David Malcolm <dmalcolm@redhat.com> |
2269 | ||
2270 | PR translation/79848 | |
2271 | * c-decl.c (declspecs_add_type): Simplify uses of "%<%s%>" to | |
2272 | "%qs". | |
2273 | * c-parser.c (c_parser_oacc_shape_clause): Likewise. | |
2274 | ||
36618428 MP |
2275 | 2017-03-09 Marek Polacek <polacek@redhat.com> |
2276 | ||
2277 | PR sanitizer/79757 | |
2278 | * c-parser.c (c_parser_declaration_or_fndef): Don't sanitize old-style | |
2279 | parameter declarations with initializers. | |
2280 | ||
01e5af5a JJ |
2281 | 2017-03-09 Jakub Jelinek <jakub@redhat.com> |
2282 | ||
2283 | PR c/79969 | |
2284 | * c-decl.c (start_enum): Adjust DECL_SOURCE_LOCATION of | |
2285 | TYPE_STUB_DECL. | |
2286 | ||
a71dbc63 JJ |
2287 | 2017-03-07 Jakub Jelinek <jakub@redhat.com> |
2288 | ||
2289 | PR c/79834 | |
2290 | * c-parser.c (c_parser_pragma): Use error_at instead of c_parser_error | |
2291 | for "may only be used in compound statements" diagnostics, change it | |
2292 | such that the same translatable string is used for all pragmas. For | |
2293 | PRAGMA_OACC_WAIT use "acc wait" rather than "acc enter data" in the | |
2294 | diagnostics. | |
2295 | (c_parser_omp_cancellation_point, c_parser_omp_target_update, | |
2296 | c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): Change | |
2297 | "may only be used in compound statements" diagnostics, such that the | |
2298 | same translatable string is used for all pragmas. | |
2299 | ||
1ff4bae6 MP |
2300 | 2017-03-04 Marek Polacek <polacek@redhat.com> |
2301 | ||
2302 | PR c/79847 | |
2303 | * c-decl.c (implicit_decl_warning): Add missing space. | |
2304 | ||
7f5a7d78 MP |
2305 | 2017-03-03 Marek Polacek <polacek@redhat.com> |
2306 | ||
2307 | PR c/79758 | |
2308 | * c-decl.c (store_parm_decls_oldstyle): Check if the element of | |
2309 | current_function_prototype_arg_types is error_mark_node. Fix | |
2310 | formatting. Use TREE_VALUE instead of TREE_TYPE. | |
2311 | ||
883c8f06 JJ |
2312 | 2017-03-03 Jakub Jelinek <jakub@redhat.com> |
2313 | ||
79c9b7a8 JJ |
2314 | PR c/79837 |
2315 | * c-parser.c (c_parser_omp_clause_reduction): Don't mention | |
2316 | %<min%> or %<max%> in the diagnostics, instead mention identifier. | |
2317 | (c_parser_omp_declare_reduction): Don't mention %<min%> in the | |
2318 | diagnostics. | |
2319 | ||
883c8f06 JJ |
2320 | PR c/79836 |
2321 | * c-parser.c (c_parser_generic_selection): Use %<_Generic%> | |
2322 | instead of %<_Generic>. | |
2323 | (c_parser_omp_ordered): Use %<depend%> instead of %<depend>. | |
2324 | (c_parser_omp_target_exit_data): Use %<release%> instead of | |
2325 | %<release>. | |
2326 | ||
324ff1a0 JJ |
2327 | 2017-02-28 Jakub Jelinek <jakub@redhat.com> |
2328 | ||
2329 | * c-parser.c (c_parser_asm_statement): Use cond ? G_("...") : G_("...") | |
2330 | instead of just cond ? "..." : "...". | |
2331 | (c_parser_oacc_enter_exit_data): Use %s and ternary operator only | |
2332 | for "enter"/"exit" keyword. | |
2333 | (c_finish_oacc_routine): Don't use %s to supply portions of the | |
2334 | message. | |
2335 | ||
4227c9ad JJ |
2336 | 2017-02-24 Jakub Jelinek <jakub@redhat.com> |
2337 | ||
2338 | PR c++/79588 | |
2339 | * c-parser.c (c_parser_postfix_expression_after_primary): Don't | |
2340 | handle -Wrestrict here. | |
2341 | * c-typeck.c (build_function_call_vec): Adjust | |
2342 | check_function_arguments caller. | |
2343 | ||
5d972e66 RB |
2344 | 2017-02-23 Richard Biener <rguenther@suse.de> |
2345 | ||
2346 | PR c/79684 | |
2347 | * gimple-parser.c (c_parser_gimple_statement): Use set_error | |
2348 | to initialize c_exprs to return. | |
2349 | (c_parser_gimple_binary_expression): Likewise. | |
2350 | (c_parser_gimple_unary_expression): Likewise. | |
2351 | (c_parser_gimple_postfix_expression): Likewise. | |
2352 | ||
61ac5ebe MP |
2353 | 2017-02-22 Marek Polacek <polacek@redhat.com> |
2354 | ||
2355 | PR c/79662 | |
2356 | * c-typeck.c (convert_arguments): Handle error_mark_node. | |
2357 | ||
41d1b0b1 PK |
2358 | 2017-02-19 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
2359 | ||
2360 | * gimple-parser.c (c_parser_gimple_postfix_expression): Check return | |
2361 | value of c_parser_parse_ssa_name against error_mark_node and emit | |
2362 | error if ssa name is anonymous and written as default definition. | |
2363 | ||
eab1f169 PK |
2364 | 2017-02-19 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
2365 | ||
2366 | * gimple-parser.c (c_parser_gimple_postfix_expression): Handle | |
2367 | FMA_EXPR. | |
2368 | ||
bcac0b4d JJ |
2369 | 2017-02-16 Jakub Jelinek <jakub@redhat.com> |
2370 | ||
2371 | PR c++/79512 | |
2372 | * c-parser.c (c_parser_omp_target): For -fopenmp-simd | |
2373 | ignore #pragma omp target even when not followed by identifier. | |
2374 | ||
1be33173 PK |
2375 | 2017-02-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
2376 | ||
2377 | * gimpler-parser.c (c_parser_gimple_statement): Handle ABS_EXPR. | |
2378 | (c_parser_gimple_unary_expression): Likewise. | |
2379 | ||
aa326bfb JJ |
2380 | 2017-02-13 Jakub Jelinek <jakub@redhat.com> |
2381 | ||
2382 | * c-parser.c (c_parser_oacc_declare): Add missing space in | |
2383 | diagnostics. | |
2384 | ||
8a398bc5 PK |
2385 | 2017-02-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
2386 | ||
2387 | PR c/79478 | |
2388 | * gimple-parser.c (c_parser_gimple_postfix_expression): Call | |
2389 | set_c_expr_source_range when parsing ssa-name. | |
2390 | ||
3dcde5ef | 2391 | 2017-02-10 Prasad Ghangal <prasad.ghangal@gmail.com> |
ab20d992 | 2392 | Richard Biener <rguenther@suse.de> |
3dcde5ef PG |
2393 | |
2394 | * gimple-parser.c (c_parser_gimple_binary_expression): Avoid | |
2395 | building IL when arguments are error_mark_node. | |
2396 | (c_parser_gimple_unary_expression): Likewise. | |
2397 | (c_parser_gimple_if_stmt): Likewise. | |
2398 | (c_parser_gimple_switch_stmt): Likewise. | |
2399 | (c_parser_gimple_return_stmt): Likewise. | |
2400 | (c_parser_parse_ssa_name): When name lookup fails do not build | |
2401 | an SSA name. Use undeclared rather than not declared in error | |
2402 | reporting. | |
2403 | ||
192b048b MP |
2404 | 2017-02-09 Marek Polacek <polacek@redhat.com> |
2405 | ||
2406 | PR c/79428 | |
2407 | * c-parser.c (c_parser_omp_ordered): Call c_parser_skip_to_pragma_eol | |
2408 | instead of c_parser_skip_until_found. | |
2409 | ||
56f71478 JJ |
2410 | 2017-02-09 Jakub Jelinek <jakub@redhat.com> |
2411 | ||
2412 | PR c/79431 | |
2413 | * c-parser.c (c_parser_omp_declare_target): Don't invoke | |
2414 | symtab_node::get on automatic variables. | |
2415 | ||
02889d23 CLT |
2416 | 2016-02-09 Nathan Sidwell <nathan@codesourcery.com> |
2417 | Chung-Lin Tang <cltang@codesourcery.com> | |
2418 | ||
2419 | * c-parser.c (c_parser_omp_clause_collapse): Disallow tile. | |
2420 | (c_parser_oacc_clause_tile): Disallow collapse. Fix parsing and | |
2421 | semantic checking. | |
2422 | * c-parser.c (c_parser_omp_for_loop): Accept tiling constructs. | |
2423 | ||
7af4b20d RB |
2424 | 2017-02-07 Richard Biener <rguenther@suse.de> |
2425 | ||
2426 | * gimple-parser.c (c_parser_gimple_expr_list): Simplify. | |
2427 | (c_parser_gimple_postfix_expression_after_primary): | |
2428 | Do not use c_build_function_call_vec to avoid folding and promotion. | |
2429 | Simplify. | |
2430 | ||
e5e391d6 MO |
2431 | 2017-01-25 Maxim Ostapenko <m.ostapenko@samsung.com> |
2432 | ||
2433 | PR lto/79061 | |
2434 | * c-decl.c (pop_scope): Pass main_input_filename to | |
2435 | build_translation_unit_decl. | |
2436 | ||
c2e84327 DM |
2437 | 2017-01-24 David Malcolm <dmalcolm@redhat.com> |
2438 | ||
2439 | * c-parser.c: Include "read-rtl-function.h" and | |
2440 | "run-rtl-passes.h". | |
2441 | (c_parser_declaration_or_fndef): Rename "gimple-pass-list" in | |
2442 | grammar to gimple-or-rtl-pass-list. Add rtl-function-definition | |
2443 | production. Update for renaming of field "gimple_pass" to | |
2444 | "gimple_or_rtl_pass". If __RTL was seen, call | |
2445 | c_parser_parse_rtl_body. Convert a timevar_push/pop pair | |
2446 | to an auto_timevar, to cope with early exit. | |
2447 | (c_parser_declspecs): Update RID_GIMPLE handling for renaming of | |
2448 | field "gimple_pass" to "gimple_or_rtl_pass", and for renaming of | |
2449 | c_parser_gimple_pass_list to c_parser_gimple_or_rtl_pass_list. | |
2450 | Handle RID_RTL. | |
2451 | (c_parser_parse_rtl_body): New function. | |
2452 | * c-tree.h (enum c_declspec_word): Add cdw_rtl. | |
2453 | (struct c_declspecs): Rename field "gimple_pass" to | |
2454 | "gimple_or_rtl_pass". Add field "rtl_p". | |
2455 | * gimple-parser.c (c_parser_gimple_pass_list): Rename to... | |
2456 | (c_parser_gimple_or_rtl_pass_list): ...this, updating accordingly. | |
2457 | * gimple-parser.h (c_parser_gimple_pass_list): Rename to... | |
2458 | (c_parser_gimple_or_rtl_pass_list): ...this. | |
2459 | ||
2ebd93e1 MP |
2460 | 2017-01-20 Marek Polacek <polacek@redhat.com> |
2461 | ||
2462 | PR c/64279 | |
2463 | * c-typeck.c (build_conditional_expr): Warn about duplicated branches. | |
2464 | ||
b1c95bb5 RB |
2465 | 2017-01-13 Richard Biener <rguenther@suse.de> |
2466 | ||
2467 | * gimple-parser.c (c_parser_gimple_compound_statement): Handle | |
2468 | nops. | |
2469 | ||
25329913 RB |
2470 | 2017-01-13 Richard Biener <rguenther@suse.de> |
2471 | ||
2472 | * gimple-parser.c (c_parser_gimple_postfix_expression): Parse | |
2473 | _Literal ( type-name ) number. | |
2474 | ||
6bb4ea5c RB |
2475 | 2017-01-12 Richard Biener <rguenther@suse.de> |
2476 | ||
2477 | * gimple-parser.c (c_parser_gimple_postfix_expression): Parse | |
2478 | __MEM. | |
2479 | ||
6b5b4e9c JJ |
2480 | 2017-01-11 Jakub Jelinek <jakub@redhat.com> |
2481 | ||
2482 | PR c++/72813 | |
2483 | * c-decl.c (pop_file_scope): Set flag_syntax_only to 1 after writing | |
2484 | PCH file. | |
2485 | ||
e3252775 RB |
2486 | 2017-01-11 Richard Biener <rguenther@suse.de> |
2487 | ||
2488 | PR bootstrap/79052 | |
2489 | * gimple-parser.c (c_parser_gimple_switch_stmt): Add missing | |
2490 | returns on parse errors. | |
2491 | ||
a9342885 MP |
2492 | 2017-01-04 Marek Polacek <polacek@redhat.com> |
2493 | ||
2494 | PR c++/64767 | |
2495 | * c-parser.c (c_parser_postfix_expression): Mark zero character | |
2496 | constants by setting original_type in c_expr. | |
2497 | * c-typeck.c (parser_build_binary_op): Warn when a pointer is compared | |
2498 | with a zero character constant. | |
2499 | (char_type_p): New function. | |
2500 | ||
5dd9a9d0 DM |
2501 | 2017-01-04 David Malcolm <dmalcolm@redhat.com> |
2502 | ||
2503 | * c-parser.c (c_parser_declaration_or_fndef): Create a | |
2504 | rich_location at init_loc and parse it to start_init. | |
2505 | (last_init_list_comma): New global. | |
2506 | (c_parser_braced_init): Update last_init_list_comma when parsing | |
2507 | commas. Pass it to pop_init_level. Pass location of closing | |
2508 | brace to pop_init_level. | |
2509 | (c_parser_postfix_expression_after_paren_type): Create a | |
2510 | rich_location at type_loc and parse it to start_init. | |
2511 | (c_parser_omp_declare_reduction): Likewise for loc. | |
2512 | * c-tree.h (start_init): Add rich_location * param. | |
2513 | (pop_init_level): Add location_t param. | |
2514 | * c-typeck.c (struct initializer_stack): Add field | |
2515 | "missing_brace_richloc". | |
2516 | (start_init): Add richloc param, use it to initialize | |
2517 | the stack node's missing_brace_richloc. | |
2518 | (last_init_list_comma): New decl. | |
2519 | (finish_implicit_inits): Pass last_init_list_comma to | |
2520 | pop_init_level. | |
2521 | (push_init_level): When finding missing open braces, add fix-it | |
2522 | hints to the richloc. | |
2523 | (pop_init_level): Add "insert_before" param and pass it | |
2524 | when calling pop_init_level. Add fixits about missing | |
2525 | close braces to any richloc. Use the richloc for the | |
2526 | -Wmissing-braces warning. | |
2527 | (set_designator): Pass last_init_list_comma to pop_init_level. | |
2528 | (process_init_element): Likewise. | |
2529 | ||
cbe34bb5 JJ |
2530 | 2017-01-01 Jakub Jelinek <jakub@redhat.com> |
2531 | ||
2532 | Update copyright years. | |
2533 | ||
d17680f3 JJ |
2534 | 2016-12-21 Jakub Jelinek <jakub@redhat.com> |
2535 | ||
0dba7960 JJ |
2536 | PR bootstrap/78817 |
2537 | * c-typeck.c (build_function_call_vec): If check_function_arguments | |
2538 | returns true, set TREE_NO_WARNING on CALL_EXPR. | |
2539 | ||
d17680f3 JJ |
2540 | PR c/77767 |
2541 | * c-decl.c (grokdeclarator): If *expr is non-NULL, append expression | |
2542 | to *expr instead of overwriting it. | |
2543 | ||
aa90531e RB |
2544 | 2016-12-20 Richard Biener <rguenther@suse.de> |
2545 | ||
2546 | * gimple-parser.c (c_parser_gimple_compound_statement): Improve | |
2547 | error recovery. | |
2548 | (c_parser_gimple_statement): Only build assigns for non-error | |
2549 | stmts. | |
2550 | (c_parser_gimple_postfix_expression_after): Improve error recovery. | |
2551 | ||
629b3d75 MJ |
2552 | 2016-12-14 Martin Jambor <mjambor@suse.cz> |
2553 | ||
2554 | * c-parser.c: Include omp-general.h and omp-offload.h instead of | |
2555 | omp-low.h. | |
2556 | (c_finish_oacc_routine): Adjusted call to | |
2557 | get_oacc_fn_attrib, build_oacc_routine_dims and replace_oacc_fn_attrib | |
2558 | to use their new names. | |
2559 | (c_parser_oacc_enter_exit_data): Adjusted call to find_omp_clause to | |
2560 | use its new name. | |
2561 | (c_parser_oacc_update): Likewise. | |
2562 | (c_parser_omp_simd): Likewise. | |
2563 | (c_parser_omp_target_update): Likewise. | |
2564 | * c-typeck.c: Include omp-general.h instead of omp-low.h. | |
2565 | (c_finish_omp_cancel): Adjusted call to find_omp_clause to use its new | |
2566 | name. | |
2567 | (c_finish_omp_cancellation_point): Likewise. | |
2568 | * gimple-parser.c: Do not include omp-low.h | |
2569 | ||
c5af52eb CP |
2570 | 2016-12-02 Cesar Philippidis <cesar@codesourcery.com> |
2571 | James Norris <jnorris@codesourcery.com> | |
2572 | ||
2573 | * c-parser.c (c_parser_pragma): Error when PRAGMA_OACC_{ENTER_DATA, | |
2574 | EXIT_DATA,WAIT} are not used in compound statements. | |
2575 | (c_parser_oacc_enter_exit_data): Update diagnostics. | |
2576 | ||
48330c93 BE |
2577 | 2016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de> |
2578 | ||
2579 | PR c++/71973 | |
2580 | * c-decl.c (diagnose_mismatched_decls): Use | |
2581 | OPT_Wbuiltin_declaration_mismatch here too. | |
2582 | ||
899ca90e | 2583 | 2016-11-18 Richard Sandiford <richard.sandiford@arm.com> |
48330c93 BE |
2584 | Alan Hayward <alan.hayward@arm.com> |
2585 | David Sherwood <david.sherwood@arm.com> | |
899ca90e RS |
2586 | |
2587 | * c-decl.c (merge_decls): Use SET_DECL_MODE. | |
2588 | (make_label, finish_struct): Likewise. | |
2589 | ||
1ee62b92 | 2590 | 2016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com> |
8e745a17 | 2591 | Richard Biener <rguenther@suse.de> |
22b15758 | 2592 | |
8e745a17 JJ |
2593 | * Make-lang.in (C_AND_OBJC_OBJS): Add gimple-parser.o. |
2594 | * config-lang.in (gtfiles): Add c/c-parser.h. | |
2595 | * c-tree.h (enum c_declspec_word): Add cdw_gimple. | |
2596 | (struct c_declspecs): Add gimple_pass member and gimple_p flag. | |
2597 | * c-parser.c (enum c_id_kind, struct c_token, | |
2598 | c_parser_next_token_is, c_parser_next_token_is_not, | |
2599 | c_parser_next_token_is_keyword, | |
2600 | enum c_lookahead_kind, enum c_dtr_syn, enum c_parser_prec): | |
2601 | Split out to ... | |
2602 | * c-parser.h: ... new header. | |
2603 | * c-parser.c: Include c-parser.h and gimple-parser.h. | |
1ee62b92 | 2604 | (c_parser_peek_token, c_parser_peek_2nd_token, |
8e745a17 JJ |
2605 | c_token_starts_typename, c_parser_next_token_starts_declspecs, |
2606 | c_parser_next_tokens_start_declaration, c_parser_consume_token, | |
2607 | c_parser_error, c_parser_require, c_parser_skip_until_found, | |
2608 | c_parser_declspecs, c_parser_declarator, c_parser_peek_nth_token, | |
2609 | c_parser_type_name): Export. | |
2610 | (c_parser_tokens_buf): New function. | |
2611 | (c_parser_error): Likewise. | |
2612 | (c_parser_set_error): Likewise. | |
2613 | (c_parser_declspecs): Handle RID_GIMPLE. | |
1ee62b92 PG |
2614 | (c_parser_declaration_or_fndef): Parse __GIMPLE marked body |
2615 | via c_parser_parse_gimple_body. | |
8e745a17 JJ |
2616 | * c-parser.h (c_parser_peek_token, c_parser_peek_2nd_token, |
2617 | c_token_starts_typename, c_parser_next_token_starts_declspecs, | |
2618 | c_parser_next_tokens_start_declaration, c_parser_consume_token, | |
2619 | c_parser_error, c_parser_require, c_parser_skip_until_found, | |
2620 | c_parser_declspecs, c_parser_declarator, c_parser_peek_nth_token, | |
2621 | c_parser_type_name): Declare. | |
1ee62b92 PG |
2622 | (struct c_parser): Declare forward. |
2623 | (c_parser_tokens_buf): Declare. | |
8e745a17 JJ |
2624 | (c_parser_error): Likewise. |
2625 | (c_parser_set_error): Likewise. | |
2626 | * gimple-parser.c: New file. | |
2627 | * gimple-parser.h: Likewise. | |
1ee62b92 | 2628 | |
22b15758 UB |
2629 | 2016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
2630 | ||
2631 | PR c/35503 | |
2632 | * c-parser.c (c_parser_postfix_expression_after_primary): Call | |
2633 | warn_for_restrict. | |
2634 | ||
84ff4775 LCW |
2635 | 2016-09-11 Le-Chun Wu <lcwu@google.com> |
2636 | Mark Wielaard <mjw@redhat.com> | |
2637 | ||
2638 | * c-decl.c (warn_if_shadowing): Use the warning code corresponding | |
2639 | to the given -Wshadow= variant. | |
2640 | ||
4d0cdd0c TP |
2641 | 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com> |
2642 | ||
2643 | * c-typeck.c: Include memmodel.h. | |
2644 | ||
1202f33e JJ |
2645 | 2016-10-13 Jakub Jelinek <jakub@redhat.com> |
2646 | ||
2647 | PR target/77957 | |
2648 | * c-objc-common.h (LANG_HOOKS_GETDECLS): Use hook_tree_void_null | |
2649 | instead of lhd_return_null_tree_v. | |
2650 | ||
8a14afd0 BS |
2651 | 2016-10-07 Bernd Schmidt <bschmidt@redhat.com> |
2652 | ||
2653 | PR c++/69733 | |
2654 | * c-decl.c (smallest_type_quals_location): New static function. | |
2655 | (grokdeclarator): Try to find the correct location for an ignored | |
2656 | qualifier. | |
2657 | ||
81fea426 MP |
2658 | 2016-09-26 Marek Polacek <polacek@redhat.com> |
2659 | ||
2660 | PR c/7652 | |
2661 | * c-decl.c (pop_scope): Add gcc_fallthrough. | |
2662 | ||
2663 | 2016-09-26 Marek Polacek <polacek@redhat.com> | |
2664 | ||
2665 | PR c/7652 | |
2666 | * c-parser.c (struct c_token): Add flags field. | |
2667 | (c_lex_one_token): Pass it to c_lex_with_flags. | |
2668 | (c_parser_declaration_or_fndef): Turn __attribute__((fallthrough)); | |
2669 | into IFN_FALLTHROUGH. | |
2670 | (c_parser_label): Set FALLTHROUGH_LABEL_P on labels. Handle | |
2671 | attribute fallthrough after a case label or default label. | |
2672 | (c_parser_statement_after_labels): Handle RID_ATTRIBUTE. | |
2673 | ||
9a2300e9 MP |
2674 | 2016-09-24 Marek Polacek <polacek@redhat.com> |
2675 | ||
2676 | PR c/77490 | |
2677 | * c-typeck.c (build_unary_op): Warn about bit not on expressions that | |
2678 | have boolean value. Warn about ++/-- on booleans. | |
2679 | ||
7de76362 JJ |
2680 | 2016-09-23 Jakub Jelinek <jakub@redhat.com> |
2681 | ||
2682 | * c-parser.c (incomplete_record_decls): Remove unnecessary | |
2683 | = vNULL initialization of file scope vec. | |
2684 | ||
5b73d2ab MP |
2685 | 2016-09-16 Marek Polacek <polacek@redhat.com> |
2686 | ||
2687 | * c-typeck.c (lvalue_p): Use true and false instead of 1 and 0. | |
2688 | ||
e51fbec3 MP |
2689 | 2016-09-14 Marek Polacek <polacek@redhat.com> |
2690 | ||
2691 | * c-array-notation.c (create_cmp_incr): Use false instead of 0. | |
2692 | (fix_array_notation_expr): Likewise. | |
2693 | * c-decl.c (finish_decl): Likewise. | |
2694 | * c-parser.c (c_parser_postfix_expression_after_primary): Likewise. | |
2695 | * c-typeck.c (array_to_pointer_conversion): Use true instead of 1. | |
2696 | (function_to_pointer_conversion): Use false instead of 0. | |
2697 | (convert_lvalue_to_rvalue): Likewise. | |
2698 | (parser_build_unary_op): Likewise. | |
2699 | (build_atomic_assign): Likewise. | |
2700 | (build_unary_op): Change nonconvert parameter type to bool, use | |
2701 | true/false instead of 1/0. | |
2702 | (build_binary_op): Use true instead of 1. | |
2703 | ||
254830ba DM |
2704 | 2016-09-13 David Malcolm <dmalcolm@redhat.com> |
2705 | ||
2706 | * c-parser.c (c_parser_declaration_or_fndef): Update for renaming | |
2707 | of add_fixit_insert to add_fixit_insert_before. | |
2708 | ||
4c13ba17 MP |
2709 | 2016-09-13 Marek Polacek <polacek@redhat.com> |
2710 | ||
2711 | * c-typeck.c (build_unary_op): Rename FLAG parameter to NOCONVERT. Use | |
2712 | it. | |
2713 | ||
54dcdb88 BE |
2714 | 2016-09-12 Bernd Edlinger <bernd.edlinger@hotmail.de> |
2715 | ||
2716 | PR c++/77496 | |
2717 | * c-parser.c (c_parser_conditional_expression): Pass the rightmost | |
2718 | COMPOUND_EXPR to warn_for_omitted_condop. | |
2719 | ||
e5106e27 DM |
2720 | 2016-09-07 David Malcolm <dmalcolm@redhat.com> |
2721 | ||
2722 | * c-lang.c (LANG_HOOKS_GET_SUBSTRING_LOCATION): Use | |
2723 | c_get_substring_location for this new langhook. | |
2724 | ||
9dc5773f JJ |
2725 | 2016-09-02 Jakub Jelinek <jakub@redhat.com> |
2726 | ||
2727 | PR c/65467 | |
2728 | * c-parser.c (c_parser_declspecs): Don't sorry about _Atomic if | |
2729 | flag_openmp. | |
2730 | (c_parser_omp_variable_list): Use convert_lvalue_to_rvalue | |
2731 | instead of mark_exp_read on low_bound/length expression. | |
2732 | (c_parser_omp_clause_num_gangs, c_parser_omp_clause_num_threads, | |
2733 | c_parser_omp_clause_num_tasks, c_parser_omp_clause_grainsize, | |
2734 | c_parser_omp_clause_priority, c_parser_omp_clause_hint, | |
2735 | c_parser_omp_clause_num_workers, c_parser_oacc_shape_clause, | |
2736 | c_parser_oacc_clause_tile, c_parser_omp_clause_schedule, | |
2737 | c_parser_omp_clause_vector_length, c_parser_omp_clause_num_teams, | |
2738 | c_parser_omp_clause_thread_limit, c_parser_omp_clause_aligned, | |
2739 | c_parser_omp_clause_linear, c_parser_omp_clause_safelen, | |
2740 | c_parser_omp_clause_simdlen, c_parser_omp_clause_device, | |
2741 | c_parser_omp_clause_dist_schedule): Use convert_lvalue_to_rvalue | |
2742 | instead of mark_expr_read. | |
2743 | (c_parser_omp_declare_reduction): Reject _Atomic qualified types. | |
2744 | * c-objc-common.h (LANG_HOOKS_OMP_CLAUSE_COPY_CTOR, | |
2745 | LANG_HOOKS_OMP_CLAUSE_ASSIGN_OP): Redefine. | |
2746 | * c-tree.h (c_omp_clause_copy_ctor): New prototype. | |
2747 | * c-typeck.c (handle_omp_array_sections_1): Diagnose _Atomic qualified | |
2748 | array section bases outside of depend clause, for depend clause | |
2749 | use convert_lvalue_to_rvalue on the base. | |
2750 | (c_finish_omp_clauses): Reject _Atomic qualified vars in reduction, | |
2751 | linear, aligned, map, to and from clauses. | |
2752 | (c_omp_clause_copy_ctor): New function. | |
2753 | ||
295844f6 MP |
2754 | 2016-09-01 Marek Polacek <polacek@redhat.com> |
2755 | ||
2756 | PR c/7652 | |
2757 | * c-typeck.c (composite_type): Add FALLTHRU comment. | |
2758 | ||
089af25c DM |
2759 | 2016-08-31 David Malcolm <dmalcolm@redhat.com> |
2760 | ||
2761 | * c-parser.c (c_parser_declaration_or_fndef): Add trailing space | |
2762 | to the insertion fixits for "struct", "union", and "enum". | |
2763 | ||
f9087798 DM |
2764 | 2016-08-30 David Malcolm <dmalcolm@redhat.com> |
2765 | ||
2766 | * c-decl.c (implicit_decl_warning): Use add_fixit_replace | |
2767 | rather than add_fixit_misspelled_id. | |
2768 | (undeclared_variable): Likewise. | |
2769 | * c-parser.c (c_parser_declaration_or_fndef): Likewise. Remove | |
2770 | now-redundant "here" params from add_fixit_insert method calls. | |
2771 | (c_parser_parameter_declaration): Likewise. | |
2772 | * c-typeck.c (build_component_ref): Remove now-redundant range | |
2773 | param from add_fixit_replace method calls. | |
2774 | ||
ebef225f MP |
2775 | 2016-08-25 Marek Polacek <polacek@redhat.com> |
2776 | ||
2777 | * c-typeck.c (parser_build_binary_op): Pass LHS to | |
2778 | warn_logical_not_parentheses. | |
2779 | ||
fe377a48 MP |
2780 | 2016-08-25 Marek Polacek <polacek@redhat.com> |
2781 | ||
2782 | PR c/77323 | |
2783 | * c-decl.c (declspecs_add_type): Set typespec_word even when __intN | |
2784 | or _FloatN or _FloatNx is not supported. | |
2785 | (finish_declspecs): Set type to integer_type_node when _FloatN or | |
2786 | _FloatNx is not supported. | |
2787 | ||
c65699ef JM |
2788 | 2016-08-19 Joseph Myers <joseph@codesourcery.com> |
2789 | ||
2790 | PR c/32187 | |
2791 | * c-tree.h (cts_floatn_nx): New enum c_typespec_keyword value. | |
2792 | (struct c_declspecs): Add field floatn_nx_idx. | |
2793 | * c-decl.c (declspecs_add_type, finish_declspecs): Handle _FloatN | |
2794 | and _FloatNx type specifiers. | |
2795 | * c-parser.c (c_keyword_starts_typename, c_token_starts_declspecs) | |
2796 | (c_parser_declspecs, c_parser_attribute_any_word) | |
2797 | (c_parser_objc_selector): Use CASE_RID_FLOATN_NX. | |
2798 | * c-typeck.c (c_common_type): Handle _FloatN and _FloatNx types. | |
2799 | (convert_arguments): Avoid promoting _FloatN and _FloatNx types | |
2800 | narrower than double. | |
2801 | ||
2f1364c2 JJ |
2802 | 2016-08-12 Jakub Jelinek <jakub@redhat.com> |
2803 | Martin Liska <mliska@suse.cz> | |
2804 | ||
2805 | PR c/67410 | |
2806 | * c-typeck.c (set_nonincremental_init_from_string): Use / instead of | |
2807 | % to determine val element to change. Assert that | |
2808 | wchar_bytes * charwidth fits into val array. | |
2809 | ||
191816a3 MP |
2810 | 2016-08-12 Marek Polacek <polacek@redhat.com> |
2811 | ||
2812 | PR c/7652 | |
2813 | * c-parser.c (c_parser_external_declaration): Add FALLTHRU. | |
2814 | (c_parser_postfix_expression): Likewise. | |
2815 | * c-typeck.c (build_unary_op): Adjust fall through comment. | |
2816 | (c_mark_addressable): Likewise. | |
2817 | ||
b95a64bb JJ |
2818 | 2016-08-11 Jakub Jelinek <jakub@redhat.com> |
2819 | ||
2820 | PR c/72816 | |
2821 | * c-decl.c (grokdeclarator): When adding TYPE_DOMAIN for flexible | |
2822 | array member through typedef, for orig_qual_indirect == 0 clear | |
2823 | orig_qual_type. | |
2824 | ||
895aa8e1 DM |
2825 | 2016-08-08 David Malcolm <dmalcolm@redhat.com> |
2826 | ||
2827 | PR c/64955 | |
2828 | * c-lang.c (LANG_HOOKS_RUN_LANG_SELFTESTS): If CHECKING_P, wire | |
2829 | this up to selftest::run_c_tests. | |
2830 | (selftest::run_c_tests): New function. | |
2831 | ||
0b212d8c TS |
2832 | 2016-08-04 Thomas Schwinge <thomas@codesourcery.com> |
2833 | ||
ae9281fc TS |
2834 | * c-parser.c (struct oacc_routine_data): Add error_seen and |
2835 | fndecl_seen members. | |
2836 | (c_finish_oacc_routine): Use these. | |
2837 | (c_parser_declaration_or_fndef): Adjust. | |
2838 | (c_parser_oacc_routine): Likewise. Support more C language | |
2839 | constructs, and improve diagnostics. Move pragma context | |
2840 | checking... | |
2841 | (c_parser_pragma): ... here. | |
2842 | ||
0b212d8c TS |
2843 | * c-parser.c (struct oacc_routine_data): New. |
2844 | (c_parser_declaration_or_fndef, c_parser_oacc_routine): Use it. | |
2845 | Simplify code. | |
2846 | (c_finish_oacc_routine): Likewise. Don't attach clauses to "omp | |
2847 | declare target" attribute. | |
2848 | ||
76e2c821 JB |
2849 | 2016-08-01 Jan Beulich <jbeulich@suse.com> |
2850 | ||
2851 | * c-fold.c (c_fully_fold_internal): Also emit shift count | |
2852 | warnings for vector types. | |
2853 | * c-typeck.c (build_binary_op): Likewise. | |
2854 | ||
f618a472 MP |
2855 | 2016-07-29 Marek Polacek <polacek@redhat.com> |
2856 | ||
2857 | PR c/71742 | |
2858 | * c-decl.c (finish_struct): Rephrase an error message. | |
2859 | ||
efd0786f MP |
2860 | PR c/71853 |
2861 | * c-parser.c (c_parser_switch_statement): Initialize ce.original_type | |
2862 | to error node for invalid code. | |
2863 | ||
e00dceaf MP |
2864 | PR c/71573 |
2865 | * c-decl.c (implicitly_declare): Return decl early not only for | |
2866 | error_mark_nodes, but for anything that is not a FUNCTION_DECL. | |
2867 | ||
673a107a JJ |
2868 | 2016-07-29 Jakub Jelinek <jakub@redhat.com> |
2869 | ||
2870 | PR c/71969 | |
2871 | * c-decl.c (finish_function): Only set DECL_DISREGARD_INLINE_LIMITS | |
2872 | on GNU extern inline functions. | |
2873 | ||
a5b5c8b6 MP |
2874 | 2016-07-29 Marek Polacek <polacek@redhat.com> |
2875 | ||
2876 | PR c/71583 | |
2877 | * c-parser.c (c_parser_postfix_expression_after_paren_type): Also | |
2878 | check expr.value. | |
2879 | ||
e3fe09c1 UB |
2880 | 2016-07-22 Uros Bizjak <ubizjak@gmail.com> |
2881 | ||
2882 | * c-typeck.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1, | |
2883 | ||
7c8f7eaa DM |
2884 | 2016-07-20 David Malcolm <dmalcolm@redhat.com> |
2885 | ||
2886 | * c-decl.c (struct edit_distance_traits<cpp_hashnode *>): Move to | |
2887 | spellcheck-tree.h | |
2888 | (best_macro_match): Likewise, converting from a typedef to a | |
2889 | subclass. | |
2890 | (find_closest_macro_cpp_cb): Move to spellcheck-tree.c. | |
2891 | (lookup_name_fuzzy): Update for change of best_macro_match to a | |
2892 | subclass with a ctor that calls cpp_forall_identifiers. | |
2893 | ||
de6a69ee DM |
2894 | 2016-07-20 David Malcolm <dmalcolm@redhat.com> |
2895 | ||
2896 | * c-decl.c (implicit_decl_warning): Update for conversion of | |
2897 | return type of lookup_name_fuzzy to const char *. | |
2898 | (undeclared_variable): Likewise. | |
2899 | (lookup_name_fuzzy): Convert return type from tree to | |
2900 | const char *. | |
2901 | * c-parser.c (c_parser_declaration_or_fndef): Update for | |
2902 | conversion of return type of lookup_name_fuzzy to const char *. | |
2903 | (c_parser_parameter_declaration): Likewise. | |
2904 | ||
b1c9c068 CP |
2905 | 2016-07-15 Cesar Philippidis <cesar@codesourcery.com> |
2906 | ||
2907 | * c-parser.c (c_parser_oacc_declare): Don't scan for | |
2908 | GOMP_MAP_POINTER. | |
2909 | * c-typeck.c (handle_omp_array_sections): Mark data clauses with | |
2910 | GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having | |
2911 | zero-length subarrays. | |
2912 | ||
ddbbcb19 JJ |
2913 | 2016-07-15 Jakub Jelinek <jakub@redhat.com> |
2914 | ||
2915 | PR c/71858 | |
2916 | * c-decl.c (implicit_decl_warning): Use FUZZY_LOOKUP_FUNCTION_NAME | |
2917 | instead of FUZZY_LOOKUP_NAME. | |
2918 | (lookup_name_fuzzy): For FUZZY_LOOKUP_FUNCTION_NAME consider | |
2919 | FUNCTION_DECLs, {VAR,PARM}_DECLs function pointers and macros. | |
2920 | ||
dd36b877 JJ |
2921 | 2016-07-14 Jakub Jelinek <jakub@redhat.com> |
2922 | ||
2923 | PR c/71858 | |
2924 | * c-decl.c (lookup_name_fuzzy): Ignore binding->invisible. | |
2925 | ||
8c681247 TS |
2926 | 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> |
2927 | ||
2928 | * c-parser.c (c_parser_generic_selection): Make type of variable | |
2929 | auto_vec. | |
2930 | (c_parser_omp_declare_simd): Likewise. | |
2931 | ||
bf4fa671 TS |
2932 | 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> |
2933 | ||
2934 | * c-decl.c (struct c_struct_parse_info): Change member types | |
2935 | from vec to auto_vec. | |
2936 | (start_struct): Adjust. | |
2937 | (finish_struct): Likewise. | |
2938 | ||
557e8c49 JJ |
2939 | 2016-07-02 Jakub Jelinek <jakub@redhat.com> |
2940 | ||
2941 | PR c/71719 | |
2942 | * c-typeck.c (mark_exp_read): Handle VIEW_CONVERT_EXPR. | |
2943 | ||
54d19c3b TS |
2944 | 2016-06-29 Thomas Schwinge <thomas@codesourcery.com> |
2945 | ||
2946 | * c-parser.c (c_parser_pragma) <PRAGMA_OMP_CANCELLATION_POINT>: | |
2947 | Move pragma context checking into... | |
2948 | (c_parser_omp_cancellation_point): ... here, and improve | |
2949 | diagnostic messages. | |
2950 | * c-typeck.c (c_finish_omp_cancel) | |
2951 | (c_finish_omp_cancellation_point): Improve diagnostic messages. | |
2952 | ||
152ef731 JJ |
2953 | 2016-06-29 Jakub Jelinek <jakub@redhat.com> |
2954 | ||
2955 | PR c/71685 | |
2956 | * c-typeck.c (c_build_qualified_type): Don't clear | |
2957 | C_TYPE_INCOMPLETE_VARS for the main variant. | |
2958 | ||
2959 | 2016-06-28 Martin Sebor <msebor@redhat.com> | |
4378d117 MS |
2960 | |
2961 | PR c/71552 | |
2962 | * c-typeck.c (output_init_element): Diagnose incompatible types | |
2963 | before non-constant initializers. | |
2964 | ||
e9ac1f86 JJ |
2965 | 2016-06-28 Jakub Jelinek <jakub@redhat.com> |
2966 | ||
2967 | * Make-lang.in: Don't cat ../stage_current if it does not exist. | |
2968 | ||
277d7ee0 AK |
2969 | 2016-06-23 Andi Kleen <ak@linux.intel.com> |
2970 | ||
2971 | * Make-lang.in: Add support for autofdo. | |
2972 | ||
1a4f11c8 DM |
2973 | 2016-06-22 David Malcolm <dmalcolm@redhat.com> |
2974 | ||
2975 | PR c/70339 | |
2976 | * c-decl.c: Include spellcheck-tree.h and gcc-rich-location.h. | |
2977 | (implicit_decl_warning): When issuing warnings for implicit | |
2978 | declarations, attempt to provide a suggestion via | |
2979 | lookup_name_fuzzy. | |
2980 | (undeclared_variable): Likewise when issuing errors. | |
2981 | (lookup_name_in_scope): Likewise. | |
2982 | (struct edit_distance_traits<cpp_hashnode *>): New struct. | |
2983 | (best_macro_match): New typedef. | |
2984 | (find_closest_macro_cpp_cb): New function. | |
2985 | (lookup_name_fuzzy): New function. | |
2986 | * c-parser.c: Include gcc-rich-location.h. | |
2987 | (c_token_starts_typename): Split out case CPP_KEYWORD into... | |
2988 | (c_keyword_starts_typename): ...this new function. | |
2989 | (c_parser_declaration_or_fndef): When issuing errors about | |
2990 | missing "struct" etc, add a fixit. For other kinds of errors, | |
2991 | attempt to provide a suggestion via lookup_name_fuzzy. | |
2992 | (c_parser_parms_declarator): When looking ahead to detect typos in | |
2993 | type names, also reject CPP_KEYWORD. | |
2994 | (c_parser_parameter_declaration): When issuing errors about | |
2995 | unknown type names, attempt to provide a suggestion via | |
2996 | lookup_name_fuzzy. | |
2997 | * c-tree.h (c_keyword_starts_typename): New prototype. | |
2998 | ||
5a578671 JM |
2999 | 2016-06-20 Joseph Myers <joseph@codesourcery.com> |
3000 | ||
3001 | PR c/71601 | |
3002 | * c-typeck.c (build_conditional_expr): Return error_mark_node if | |
3003 | c_common_type returns error_mark_node. | |
3004 | ||
3f8257db | 3005 | 2016-06-19 Martin Sebor <msebor@redhat.com> |
aa0db437 MS |
3006 | |
3007 | PR c/69507 | |
3008 | * c-parser.c (c_parser_alignof_expression): Avoid diagnosing | |
3009 | __alignof__ (expression). | |
3010 | ||
6a3f203c DM |
3011 | 2016-06-14 David Malcolm <dmalcolm@redhat.com> |
3012 | ||
3013 | * c-typeck.c: Include spellcheck-tree.h rather than spellcheck.h. | |
3014 | ||
264757fb DM |
3015 | 2016-06-14 David Malcolm <dmalcolm@redhat.com> |
3016 | ||
3017 | * c-typeck.c (build_component_ref): Simplify fixit code by | |
3018 | using gcc_rich_location::add_fixit_misspelled_id. | |
3019 | (set_init_label): Likewise. | |
3020 | ||
f7e4f2e3 DM |
3021 | 2016-06-13 David Malcolm <dmalcolm@redhat.com> |
3022 | ||
3023 | * c-parser.c (c_parser_initelt): Provide location of name for new | |
3024 | location_t param of set_init_label. | |
3025 | * c-tree.h (set_init_label): Add location_t param. | |
3026 | * c-typeck.c (set_init_index): Add "fieldname_loc" location_t | |
3027 | param and use it when issuing error messages about unrecognized | |
3028 | field names. Attempt to provide a fixit hint if appropriate, | |
3029 | otherwise update the error message to provide the type name. | |
3030 | ||
4b1ffdb1 TS |
3031 | 2016-06-10 Thomas Schwinge <thomas@codesourcery.com> |
3032 | ||
3033 | PR c/71381 | |
3034 | * c-parser.c (c_parser_omp_variable_list) <OMP_CLAUSE__CACHE_>: | |
3035 | Loosen checking. | |
3036 | ||
44a845ca MS |
3037 | 2016-06-08 Martin Sebor <msebor@redhat.com> |
3038 | Jakub Jelinek <jakub@redhat.com> | |
3039 | ||
3040 | PR c++/70507 | |
3041 | PR c/68120 | |
3042 | * c-typeck.c (convert_arguments): Don't promote last argument | |
3043 | of BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P. | |
3044 | ||
92a5f2ba MP |
3045 | 2016-06-08 Marek Polacek <polacek@redhat.com> |
3046 | ||
3047 | PR c/71418 | |
3048 | * c-decl.c (grokdeclarator): Check TYPE_P. | |
3049 | ||
08203f73 MP |
3050 | PR c/71426 |
3051 | * c-decl.c (get_parm_info): Don't crash on an assert on invalid | |
3052 | code. | |
3053 | ||
6ffd47b7 DM |
3054 | 2016-06-07 David Malcolm <dmalcolm@redhat.com> |
3055 | ||
3056 | * c-parser.c (c_parser_postfix_expression): In __builtin_offsetof | |
3057 | and structure element reference, capture the location of the | |
3058 | element name token and pass it to build_component_ref. | |
3059 | (c_parser_postfix_expression_after_primary): Likewise for | |
3060 | structure element dereference. | |
3061 | (c_parser_omp_variable_list): Likewise for | |
3062 | OMP_CLAUSE_{_CACHE, MAP, FROM, TO}, | |
3063 | * c-tree.h (build_component_ref): Add location_t param. | |
3064 | * c-typeck.c (build_component_ref): Add location_t param | |
3065 | COMPONENT_LOC. Use it, if available, when issuing hints about | |
3066 | mispelled member names to provide a fixit replacement hint. | |
3067 | ||
1f40cff3 MP |
3068 | 2016-06-06 Marek Polacek <polacek@redhat.com> |
3069 | ||
3070 | PR c/71362 | |
3071 | * c-parser.c (c_parser_direct_declarator): Set location. | |
3072 | ||
5545a907 MP |
3073 | 2016-06-06 Marek Polacek <polacek@redhat.com> |
3074 | ||
3075 | * c-typeck.c (comptypes_internal): Handle comparisons of | |
3076 | INTEGER_TYPE, FIXED_POINT_TYPE, and REAL_TYPE nodes. Don't check | |
3077 | TYPE_REF_CAN_ALIAS_ALL. | |
3078 | ||
b605f663 CLT |
3079 | 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com> |
3080 | ||
3081 | * c-typeck.c (c_finish_omp_clauses): Mark OpenACC reduction | |
3082 | arguments as addressable when async clause exists. | |
3083 | ||
00631022 JJ |
3084 | 2016-05-30 Jakub Jelinek <jakub@redhat.com> |
3085 | ||
3086 | PR c++/71349 | |
3087 | * c-parser.c (c_parser_omp_for): Don't disallow nowait clause | |
3088 | when combined with target construct. | |
3089 | ||
7211a097 JJ |
3090 | 2016-05-26 Jakub Jelinek <jakub@redhat.com> |
3091 | ||
3092 | * c-parser.c (c_parser_omp_clause_schedule): Warn if | |
3093 | OMP_CLAUSE_SCHEDULE_CHUNK_EXPR is known not to be positive. | |
3094 | ||
95efe6b6 MP |
3095 | 2016-05-25 Marek Polacek <polacek@redhat.com> |
3096 | ||
3097 | PR c/71265 | |
3098 | * c-decl.c (c_make_fname_decl): Don't check seen_error. | |
3099 | ||
a23faf7a MP |
3100 | PR c/71266 |
3101 | * c-decl.c (store_parm_decls_oldstyle): Skip non-PARM_DECLs. | |
3102 | ||
e46c7770 CP |
3103 | 2016-05-24 Cesar Philippidis <cesar@codesourcery.com> |
3104 | ||
3105 | * c-parser.c (c_parser_oacc_declare): Add support for | |
3106 | GOMP_MAP_FIRSTPRIVATE_POINTER. | |
3107 | * c-typeck.c (handle_omp_array_sections_1): Replace bool is_omp | |
3108 | argument with enum c_omp_region_type ort. | |
3109 | (handle_omp_array_sections): Likewise. Update call to | |
3110 | handle_omp_array_sections_1. | |
3111 | (c_finish_omp_clauses): Add specific errors and warning messages for | |
3112 | OpenACC. Use firsrtprivate pointers for OpenACC subarrays. Update | |
3113 | call to handle_omp_array_sections. | |
3114 | ||
a04e69c0 TS |
3115 | 2016-05-24 Thomas Schwinge <thomas@codesourcery.com> |
3116 | ||
3117 | * c-parser.c (c_parser_oacc_routine): Tighten syntax checks. | |
3118 | ||
f17a223d RB |
3119 | 2016-05-24 Richard Biener <rguenther@suse.de> |
3120 | ||
3121 | PR middle-end/70434 | |
3122 | PR c/69504 | |
3123 | * c-typeck.c (build_array_ref): Do not complain about indexing | |
3124 | non-lvalue vectors. Adjust for function name change. | |
3125 | ||
79063edd MS |
3126 | 2016-05-20 Martin Sebor <msebor@redhat.com> |
3127 | ||
3128 | PR c/71115 | |
3129 | * c-typeck.c (error_init): Use | |
3130 | expansion_point_location_if_in_system_header. | |
3131 | (warning_init): Same. | |
3132 | ||
8a40fef3 DM |
3133 | 2016-05-19 David Malcolm <dmalcolm@redhat.com> |
3134 | ||
3135 | PR c/71171 | |
3136 | * c-parser.c (c_parser_generic_selection): Use c_expr::set_error | |
3137 | in error-handling. | |
3138 | (c_parser_postfix_expression): Likewise. | |
3139 | * c-tree.h (c_expr::set_error): New method. | |
3140 | * c-typeck.c (parser_build_binary_op): In error-handling, ensure | |
3141 | that result's range is initialized. | |
3142 | ||
e9892350 JG |
3143 | 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com> |
3144 | ||
3145 | * c-typeck.c (parser_build_unary_op): Fix formatting. | |
3146 | ||
8fad45f5 MW |
3147 | 2016-05-16 Matthew Wahab <matthew.wahab@arm.com> |
3148 | ||
3149 | * c-decl.c (grokdeclarator): Remove errmsg and use of | |
3150 | targetm.invalid_return_type. | |
3151 | (grokparms): Remove errmsg and use of | |
3152 | targetm.invalid_parameter_type. | |
3153 | ||
aa4b467b JM |
3154 | 2016-05-13 Joseph Myers <joseph@codesourcery.com> |
3155 | ||
3156 | * c-decl.c (grokdeclarator): For C11, discard qualifiers on | |
3157 | function return type. | |
3158 | ||
4f2e1536 MP |
3159 | 2016-05-12 Marek Polacek <polacek@redhat.com> |
3160 | ||
3161 | PR c/70756 | |
3162 | * c-decl.c (build_compound_literal): Pass LOC down to | |
3163 | c_incomplete_type_error. | |
3164 | * c-tree.h (require_complete_type): Adjust declaration. | |
3165 | (c_incomplete_type_error): Likewise. | |
3166 | * c-typeck.c (require_complete_type): Add location parameter, pass it | |
3167 | down to c_incomplete_type_error. | |
3168 | (c_incomplete_type_error): Add location parameter, pass it down to | |
3169 | error_at. | |
3170 | (build_component_ref): Pass location down to c_incomplete_type_error. | |
3171 | (default_conversion): Pass location down to require_complete_type. | |
3172 | (build_array_ref): Likewise. | |
3173 | (build_function_call_vec): Likewise. | |
3174 | (convert_arguments): Likewise. | |
3175 | (build_unary_op): Likewise. | |
3176 | (build_c_cast): Likewise. | |
3177 | (build_modify_expr): Likewise. | |
3178 | (convert_for_assignment): Likewise. | |
3179 | (c_finish_omp_clauses): Likewise. | |
3180 | ||
d6e83a8d MM |
3181 | 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com> |
3182 | ||
3183 | PR c/43651 | |
3184 | * c-decl.c (declspecs_add_qual): Warn when -Wduplicate-decl-specifier | |
3185 | is enabled. | |
3186 | * c-errors.c (pedwarn_c90): Return true if warned. | |
3187 | * c-tree.h (pedwarn_c90): Change return type to bool. | |
3188 | (enum c_declspec_word): Add new enumerator cdw_atomic. | |
3189 | ||
5c3a10fb MP |
3190 | 2016-05-11 Marek Polacek <polacek@redhat.com> |
3191 | ||
3192 | PR c++/71024 | |
3193 | * c-decl.c (diagnose_mismatched_decls): Factor out code to | |
3194 | diagnose_mismatched_attributes and call it. | |
3195 | ||
cf68d92c MP |
3196 | 2016-05-10 Marek Polacek <polacek@redhat.com> |
3197 | ||
3198 | PR c/70255 | |
3199 | * c-decl.c (diagnose_mismatched_decls): Warn for optimize attribute | |
3200 | on a declaration following the definition. | |
3201 | ||
351f85c5 JJ |
3202 | 2016-05-05 Jakub Jelinek <jakub@redhat.com> |
3203 | ||
3204 | * c-parser.c (c_parser_switch_statement): Add IF_P argument, | |
3205 | parse it through to c_parser_c99_block_statement. | |
3206 | (c_parser_statement_after_labels): Adjust c_parser_switch_statement | |
3207 | caller. | |
3208 | ||
deef7113 MP |
3209 | 2016-05-04 Marek Polacek <polacek@redhat.com> |
3210 | ||
3211 | * c-parser.c (c_parser_if_statement): Replace OPT_Wparentheses with | |
3212 | OPT_Wdangling_else. | |
3213 | ||
de55efd5 MP |
3214 | 2016-05-04 Marek Polacek <polacek@redhat.com> |
3215 | ||
3216 | PR c/48778 | |
3217 | * c-typeck.c (build_binary_op): Don't issue -Waddress warnings | |
3218 | for macro expansions. | |
3219 | ||
79ce98bc MP |
3220 | 2016-05-03 Marek Polacek <polacek@redhat.com> |
3221 | ||
3222 | PR c/70859 | |
3223 | * c-typeck.c (build_function_call_vec): Pass LOC and ARG_LOC down to | |
3224 | check_builtin_function_arguments. | |
3225 | ||
fb2647aa RB |
3226 | 2016-05-03 Richard Biener <rguenther@suse.de> |
3227 | ||
3228 | * Make-lang.in (cc1-checksum.c): For stage-final re-use | |
3229 | the checksum from the previous stage. | |
3230 | ||
77886428 CP |
3231 | 2016-05-02 Cesar Philippidis <cesar@codesourcery.com> |
3232 | ||
3233 | * c-parser.c (c_parser_oacc_all_clauses): Update call to | |
3234 | c_finish_omp_clauses. | |
3235 | (c_parser_omp_all_clauses): Likewise. | |
3236 | (c_parser_oacc_cache): Likewise. | |
3237 | (c_parser_oacc_loop): Likewise. | |
3238 | (omp_split_clauses): Likewise. | |
3239 | (c_parser_omp_declare_target): Likewise. | |
3240 | (c_parser_cilk_all_clauses): Likewise. | |
3241 | (c_parser_cilk_for): Likewise. | |
3242 | * c-typeck.c (c_finish_omp_clauses): Replace bool arguments | |
3243 | is_omp, declare_simd, and is_cilk with enum c_omp_region_type ort. | |
3244 | ||
7176a4a0 MP |
3245 | 2016-05-02 Marek Polacek <polacek@redhat.com> |
3246 | ||
3247 | PR c/70851 | |
3248 | * c-decl.c (grokdeclarator): Diagnose when array's size has an | |
3249 | incomplete type. | |
3250 | ||
e7ff0319 CP |
3251 | 2016-04-29 Cesar Philippidis <cesar@codesourcery.com> |
3252 | ||
3253 | PR middle-end/70626 | |
3254 | * c-parser.c (c_parser_oacc_loop): Don't augment mask with | |
3255 | OACC_LOOP_CLAUSE_MASK. | |
3256 | (c_parser_oacc_kernels_parallel): Update call to | |
3257 | c_oacc_split_loop_clauses. | |
3258 | ||
9f405ce1 AM |
3259 | 2016-04-28 Andrew MacLeod <amacleod@redhat.com> |
3260 | ||
3261 | * c-array-notation.c (fix_builtin_array_notation_fn): Fix final | |
3262 | argument to build_modify_expr in two cases. | |
3263 | ||
c1e1f433 BS |
3264 | 2016-04-27 Bernd Schmidt <bschmidt@redhat.com> |
3265 | ||
3266 | * c-parser.c (c_parser_postfix_expression_after_primary): Call | |
3267 | warn_for_memset instead of warning directly here. | |
3268 | ||
2448a956 MP |
3269 | 2016-04-26 Marek Polacek <polacek@redhat.com> |
3270 | ||
3271 | PR c/67784 | |
3272 | * c-parser.c (c_parser_maybe_reclassify_token): New function factored | |
3273 | out of ... | |
3274 | (c_parser_for_statement): ... here. | |
3275 | (c_parser_if_statement): Use it. | |
3276 | (c_parser_switch_statement): Use it. | |
3277 | (c_parser_while_statement): Use it. | |
3278 | ||
b02a5e26 MP |
3279 | PR c/70791 |
3280 | * c-decl.c (pushdecl): Pass LOCUS down to warning. | |
3281 | ||
477d4906 IV |
3282 | 2016-04-20 Ilya Verbin <ilya.verbin@intel.com> |
3283 | ||
3284 | PR c++/69363 | |
3285 | * c-parser.c (c_parser_cilk_all_clauses): Use c_finish_omp_clauses | |
3286 | instead of c_finish_cilk_clauses. | |
3287 | * c-tree.h (c_finish_omp_clauses): Add new default argument. | |
3288 | * c-typeck.c (c_finish_omp_clauses): Add new argument. Allow | |
3289 | floating-point variables in the linear clause for Cilk Plus. | |
3290 | ||
fe37c7af MM |
3291 | 2016-04-18 Michael Matz <matz@suse.de> |
3292 | ||
3293 | * c-decl.c (merge_decls): Use SET_DECL_ALIGN and SET_TYPE_ALIGN. | |
3294 | (grokdeclarator, parser_xref_tag, finish_enum): Use SET_TYPE_ALIGN. | |
3295 | ||
949505a9 MP |
3296 | 2016-04-15 Marek Polacek <polacek@redhat.com> |
3297 | ||
3298 | PR c/70671 | |
3299 | * c-typeck.c (build_unary_op): Pass location down to error and | |
3300 | warning call. | |
3301 | ||
dda1bf61 JJ |
3302 | 2016-04-15 Jakub Jelinek <jakub@redhat.com> |
3303 | ||
3304 | PR c/70436 | |
3305 | * c-parser.c (c_parser_pragma): Add IF_P argument, pass it down | |
3306 | where needed. | |
3307 | (c_parser_external_declaration, c_parser_struct_or_union_specifier, | |
3308 | c_parser_parameter_declaration, c_parser_compound_statement_nostart, | |
3309 | c_parser_objc_class_instance_variables, c_parser_objc_methodprotolist): | |
3310 | Adjust c_parser_pragma callers. | |
3311 | (c_parser_statement_after_labels): Likewise. Adjust c_parser_cilk_for | |
3312 | caller. | |
3313 | (c_parser_omp_structured_block): Add IF_P argument, pass it down to | |
3314 | c_parser_statement. | |
3315 | (c_parser_oacc_data, c_parser_oacc_host_data, c_parser_oacc_loop, | |
3316 | c_parser_oacc_kernels_parallel, c_parser_omp_critical, | |
3317 | c_parser_omp_simd, c_parser_omp_for, c_parser_omp_master, | |
3318 | c_parser_omp_ordered, c_parser_omp_parallel, c_parser_omp_single, | |
3319 | c_parser_omp_task, c_parser_omp_taskgroup, c_parser_omp_distribute, | |
3320 | c_parser_omp_teams, c_parser_omp_target_data, c_parser_omp_target, | |
3321 | c_parser_omp_taskloop, c_parser_omp_construct, c_parser_cilk_grainsize, | |
3322 | c_parser_cilk_simd, c_parser_cilk_for): Add IF_P argument, pass it | |
3323 | down where needed. | |
3324 | (c_parser_omp_for_loop): Likewise. Clear IF_P if nbraces. | |
3325 | (c_parser_omp_sections_scope): Adjust c_parser_omp_structured_block | |
3326 | calls. | |
3327 | ||
99cd9857 MP |
3328 | 2016-04-13 Marek Polacek <polacek@redhat.com> |
3329 | ||
3330 | PR c/70436 | |
3331 | * c-parser.c (c_parser_statement_after_labels): Add IF_P argument and | |
3332 | adjust callers. | |
3333 | (c_parser_statement): Likewise. | |
3334 | (c_parser_c99_block_statement): Likewise. | |
3335 | (c_parser_while_statement): Likewise. | |
3336 | (c_parser_for_statement): Likewise. | |
3337 | (c_parser_if_body): Don't set IF_P here. | |
3338 | (c_parser_if_statement): Add IF_P argument. Set IF_P here. Warn | |
3339 | about dangling else here. | |
3340 | * c-tree.h (c_finish_if_stmt): Adjust declaration. | |
3341 | * c-typeck.c (c_finish_if_stmt): Remove NESTED_IF parameter. Don't | |
3342 | warn about dangling else here. | |
3343 | ||
f13355da MP |
3344 | 2016-04-04 Marek Polacek <polacek@redhat.com> |
3345 | ||
3346 | PR c/70307 | |
3347 | * c-fold.c (c_fully_fold_internal): Handle VEC_COND_EXPR. | |
3348 | ||
5fde6a45 MP |
3349 | 2016-03-31 Marek Polacek <polacek@redhat.com> |
3350 | ||
3351 | PR c/70297 | |
3352 | * c-decl.c (merge_decls): Also set TYPE_ALIGN and TYPE_USER_ALIGN. | |
3353 | ||
4bbf545b DM |
3354 | 2016-03-18 David Malcolm <dmalcolm@redhat.com> |
3355 | ||
3356 | PR c/70281 | |
3357 | * c-parser.c (c_parser_postfix_expression): Set the source range | |
3358 | for uses of "__builtin_types_compatible_p". | |
3359 | ||
fcc2b74f JJ |
3360 | 2016-03-17 Jakub Jelinek <jakub@redhat.com> |
3361 | ||
3362 | PR c/70280 | |
3363 | * c-typeck.c (composite_type): Don't count void_list_node | |
3364 | into len, if the list is terminated by void_list_node, start | |
3365 | with void_list_node instead of NULL for newargs. Stop | |
3366 | at void_list_node. | |
3367 | ||
ab4c578f MP |
3368 | 2016-03-16 Marek Polacek <polacek@redhat.com> |
3369 | ||
3370 | PR c/70093 | |
3371 | * c-typeck.c (build_function_call_vec): Create a TARGET_EXPR for | |
3372 | nested functions returning VM types. | |
3373 | ||
96b3c82d CP |
3374 | 2016-03-09 Cesar Philippidis <cesar@codesourcery.com> |
3375 | ||
3376 | * c-parser.c (c_parser_oacc_loop): Update cclauses and clauses | |
3377 | when calling c_finish_omp_clauses. | |
3378 | ||
29b9828f BS |
3379 | 2016-03-04 Bernd Schmidt <bschmidt@redhat.com> |
3380 | ||
3381 | PR c/69824 | |
3382 | * c-decl.c (get_parm_info): Don't queue implicit function declarations | |
3383 | for later. | |
3384 | ||
7ff6ca38 MP |
3385 | 2016-03-04 Marek Polacek <polacek@redhat.com> |
3386 | ||
3387 | PR c/69798 | |
3388 | * c-parser.c (c_parser_postfix_expression): Call | |
3389 | c_parser_cast_expression rather than c_parser_postfix_expression. | |
3390 | ||
686e2237 JJ |
3391 | 2016-03-01 Jakub Jelinek <jakub@redhat.com> |
3392 | ||
3393 | PR c/69796 | |
3394 | PR c/69974 | |
3395 | * c-parser.c (c_parser_translation_unit): Don't change TREE_TYPE | |
3396 | of incomplete decls to error_mark_node. | |
3397 | ||
0b05329b MP |
3398 | 2016-02-24 Marek Polacek <polacek@redhat.com> |
3399 | ||
3400 | PR c/69819 | |
3401 | * c-decl.c (finish_decl): Don't update the copy of the type of a | |
3402 | different decl type. | |
3403 | ||
067fbd8b JJ |
3404 | 2016-02-23 Jakub Jelinek <jakub@redhat.com> |
3405 | ||
3406 | PR objc/69844 | |
3407 | * c-parser.c (c_parser_for_statement): Properly handle ObjC classes | |
3408 | in id_kind reclassification. | |
3409 | ||
bf14eba2 JJ |
3410 | 2016-02-16 Jakub Jelinek <jakub@redhat.com> |
3411 | ||
3412 | PR c/69835 | |
3413 | * c-typeck.c (build_binary_op): Revert 2015-09-09 change. | |
3414 | ||
ba539195 JN |
3415 | 2016-02-16 James Norris <jnorris@codesourcery.com> |
3416 | ||
3417 | PR c/64748 | |
3418 | * c-parser.c (c_parser_oacc_data_clause_deviceptr): Allow parms. | |
3419 | ||
16595a1f BS |
3420 | 2016-02-12 Bernd Schmidt <bschmidt@redhat.com> |
3421 | ||
f48dfe98 BS |
3422 | * c-decl.c (build_null_declspecs): Zero the entire struct. |
3423 | ||
16595a1f BS |
3424 | PR c/69522 |
3425 | * c-parser.c (c_parser_braced_init): New arg outer_obstack. All | |
3426 | callers changed. If nested_p is true, use it to call | |
3427 | finish_implicit_inits. | |
3428 | * c-tree.h (finish_implicit_inits): Declare. | |
3429 | * c-typeck.c (finish_implicit_inits): New function. Move code | |
3430 | from ... | |
3431 | (push_init_level): ... here. | |
3432 | (set_designator, process_init_element): Call finish_implicit_inits. | |
3433 | ||
66756373 JJ |
3434 | 2016-02-11 Jakub Jelinek <jakub@redhat.com> |
3435 | ||
3436 | PR c/69768 | |
3437 | * c-typeck.c (parser_build_binary_op): Strip nops from integer_zerop | |
3438 | arguments for -Waddress warning. | |
3439 | ||
1066e9b5 JJ |
3440 | 2016-02-04 Jakub Jelinek <jakub@redhat.com> |
3441 | ||
3442 | PR c/69669 | |
3443 | * c-decl.c (finish_enum): When honoring mode attribute, | |
3444 | make sure to use proper TYPE_MIN_VALUE and TYPE_MAX_VALUE. | |
3445 | ||
3a5d2ba4 JJ |
3446 | 2016-01-29 Jakub Jelinek <jakub@redhat.com> |
3447 | ||
3448 | PR debug/69518 | |
3449 | * c-decl.c (finish_struct): Clear C_TYPE_INCOMPLETE_VARS in | |
3450 | all type variants, not just TYPE_MAIN_VARIANT. | |
3451 | ||
cbdd8ae0 JJ |
3452 | 2016-01-27 Jakub Jelinek <jakub@redhat.com> |
3453 | ||
3454 | PR debug/66869 | |
3455 | * c-decl.c (c_write_global_declarations_1): Warn with | |
3456 | warn_unused_function if static prototype without definition | |
3457 | is not C_DECL_USED. | |
3458 | ||
fa74a4bc MP |
3459 | 2016-01-27 Marek Polacek <polacek@redhat.com> |
3460 | ||
3461 | PR c/68062 | |
3462 | * c-typeck.c (build_binary_op) [EQ_EXPR, GE_EXPR]: Promote operand | |
3463 | to unsigned, if needed. Add -Wsign-compare warning. | |
3464 | ||
13f92e8d JJ |
3465 | 2016-01-26 Jakub Jelinek <jakub@redhat.com> |
3466 | ||
3467 | PR tree-optimization/69483 | |
3468 | * c-parser.c (c_parser_translation_unit): Use FOR_EACH_VEC_ELT. | |
3469 | ||
cd8e73dc | 3470 | 2016-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
d25c7690 PK |
3471 | |
3472 | PR c/24293 | |
3473 | * c-tree.h (incomplete_record_decls): Declare. | |
3474 | * c-parser.c (incomplete_record_decls): Define. | |
3475 | (c_parser_translation_unit): Iterate through incomplete_record_decls and | |
3476 | report error if any decl has zero size. | |
3477 | * c-decl.c (finish_decl): Append static decl with incomplete struct/union | |
3478 | or enum type to incomplete_record_decls. | |
3479 | ||
e6d6ec9e TV |
3480 | 2016-01-14 Tom de Vries <tom@codesourcery.com> |
3481 | ||
3482 | PR tree-optimization/68773 | |
3483 | * c-parser.c (c_parser_oacc_declare, c_parser_omp_declare_target): Don't | |
3484 | set force_output. | |
3485 | ||
00083992 MP |
3486 | 2016-01-14 Marek Polacek <polacek@redhat.com> |
3487 | ||
3488 | PR c/69262 | |
3489 | * c-decl.c (grokdeclarator): Provide more information for invalid | |
3490 | array declarations. | |
3491 | ||
7443cf13 DM |
3492 | 2016-01-06 David Malcolm <dmalcolm@redhat.com> |
3493 | ||
3494 | * c-parser.c (c_parser_unary_expression): For dereferences, build | |
3495 | a combined location before calling build_indirect_ref, so that | |
3496 | error reports cover the full range, manually updating the c_expr | |
3497 | src_range. | |
3498 | ||
6b131d5b MP |
3499 | 2016-01-06 Marek Polacek <polacek@redhat.com> |
3500 | ||
3501 | PR sanitizer/69099 | |
3502 | * c-convert.c (convert) [INTEGER_TYPE]: Drop ARG. Don't pass ARG to | |
3503 | ubsan_instrument_float_cast. Fold EXPR. Use NULL_TREE instead of | |
3504 | NULL. | |
3505 | ||
818ab71a JJ |
3506 | 2016-01-04 Jakub Jelinek <jakub@redhat.com> |
3507 | ||
3508 | Update copyright years. | |
3509 | ||
2fe0a208 MP |
3510 | 2016-01-04 Marek Polacek <polacek@redhat.com> |
3511 | ||
3512 | PR c/68908 | |
3513 | * c-typeck.c (build_atomic_assign): Improve commentary. Add | |
3514 | optimization to use __atomic_fetch_* built-in if possible. | |
3515 | ||
c7b48c8a TS |
3516 | 2015-12-23 Thomas Schwinge <thomas@codesourcery.com> |
3517 | ||
3518 | * c-parser.c (c_parser_oacc_clause_use_device): Merge function | |
3519 | into... | |
3520 | (c_parser_omp_clause_use_device_ptr): ... this function. Adjust | |
3521 | all users. | |
3522 | ||
fda5652f MP |
3523 | 2015-12-22 Marek Polacek <polacek@redhat.com> |
3524 | ||
3525 | PR c/69002 | |
3526 | * c-typeck.c (build_component_ref): Warn when acessing elements of | |
3527 | atomic structures or unions. | |
3528 | ||
745e411d DM |
3529 | 2015-12-21 David Malcolm <dmalcolm@redhat.com> |
3530 | ||
3531 | * c-typeck.c: Include "gcc-rich-location.h". | |
3532 | (build_binary_op): In the two places that call binary_op_error, | |
3533 | create a gcc_rich_location and populate it with the location of | |
3534 | the binary op and its two operands. | |
3535 | ||
94c40e19 DM |
3536 | 2015-12-16 David Malcolm <dmalcolm@redhat.com> |
3537 | ||
3538 | * c-parser.c (c_parser_statement_after_labels): When calling | |
3539 | c_finish_return, Use the return expression's location if it has | |
3540 | one, falling back to the location of the first token within it. | |
3541 | * c-typeck.c (c_finish_return): When issuing warnings about | |
3542 | the incorrect presence/absence of a return value, issue a note | |
3543 | showing the declaration of the function. | |
3544 | ||
de67c4c3 DM |
3545 | 2015-12-16 David Malcolm <dmalcolm@redhat.com> |
3546 | ||
3547 | * c-parser.c (struct c_parser): Expand array "tokens_buf" from 2 | |
3548 | to 4. | |
3549 | (c_parser_peek_nth_token): New function. | |
3550 | (c_parser_peek_conflict_marker): New function. | |
3551 | (c_parser_error): Detect conflict markers and report them as such. | |
3552 | ||
a10704e1 DM |
3553 | 2015-12-16 David Malcolm <dmalcolm@redhat.com> |
3554 | ||
3555 | * c-parser.c (c_parser_postfix_expression): Use EXPR_LOC_OR_LOC | |
3556 | to preserve range information for the primary expression | |
3557 | in the call to c_parser_postfix_expression_after_primary. | |
3558 | ||
8062bca6 DM |
3559 | 2015-12-16 David Malcolm <dmalcolm@redhat.com> |
3560 | ||
3561 | * c-parser.c (c_parser_static_assert_declaration_no_semi): Use the | |
3562 | expression location, falling back on the first token location, | |
3563 | rather than always using the latter. | |
3564 | ||
d06f8b75 MP |
3565 | 2015-12-16 Marek Polacek <polacek@redhat.com> |
3566 | ||
3567 | PR c/64637 | |
3568 | * c-typeck.c (c_process_expr_stmt): Use location of the expression if | |
3569 | available. | |
3570 | ||
2994fb91 MP |
3571 | 2015-12-15 Marek Polacek <polacek@redhat.com> |
3572 | ||
3573 | PR c/68907 | |
3574 | * c-typeck.c (build_atomic_assign): Set TREE_NO_WARNING on an | |
3575 | artificial decl. | |
3576 | ||
a1b93f8d DM |
3577 | 2015-12-08 David Malcolm <dmalcolm@redhat.com> |
3578 | ||
3579 | * c-parser.c (c_parser_alignof_expression): Capture location of | |
3580 | closing parenthesis (if any), or of end of unary expression, and | |
3581 | use it to build a src_range for the expression. | |
3582 | ||
46c6e1e2 DM |
3583 | 2015-12-08 David Malcolm <dmalcolm@redhat.com> |
3584 | ||
3585 | PR c/68757 | |
3586 | * c-parser.c (c_parser_get_builtin_args): Add | |
3587 | "out_close_paren_loc" param, and write back to it. | |
3588 | (c_parser_postfix_expression): Capture the closing | |
3589 | parenthesis location for RID_CHOOSE_EXPR, | |
3590 | RID_BUILTIN_CALL_WITH_STATIC_CHAIN, RID_BUILTIN_COMPLEX, | |
3591 | RID_BUILTIN_SHUFFLE and use it to set the source range | |
3592 | for such expressions; within RID_BUILTIN_COMPLEX set | |
3593 | the underlying location. | |
3594 | ||
66189108 MP |
3595 | 2015-12-07 Marek Polacek <polacek@redhat.com> |
3596 | ||
3597 | PR c/68668 | |
3598 | * c-decl.c (grokdeclarator): If ORIG_QUAL_INDIRECT is indirect, use | |
3599 | TREE_TYPE of ORIG_QUAL_TYPE, otherwise decrement ORIG_QUAL_INDIRECT. | |
3600 | ||
f187980b EB |
3601 | 2015-12-04 Eric Botcazou <ebotcazou@adacore.com> |
3602 | ||
3603 | * c-tree.h (c_build_va_arg): Adjust prototype. | |
3604 | * c-parser.c (c_parser_postfix_expression): Adjust call to above. | |
3605 | * c-typeck.c (c_build_va_arg): Rename LOC parameter to LOC2, add LOC1 | |
3606 | parameter, adjust throughout and issue an error if EXPR is a component | |
3607 | with reverse storage order. | |
3608 | ||
4250754e JM |
3609 | 2015-12-02 Jason Merrill <jason@redhat.com> |
3610 | ||
3611 | * c-fold.c (c_disable_warnings, c_enable_warnings, c_fully_fold) | |
3612 | (c_fully_fold_internal, decl_constant_value_for_optimization): | |
3613 | Move from c-common.c. | |
3614 | * c-tree.h: Declare decl_constant_value_for_optimization. | |
3615 | * Make-lang.in (C_AND_OBJC_OBJS): Add c-fold.o. | |
3616 | ||
e9e32ee6 JM |
3617 | 2015-12-02 Joseph Myers <joseph@codesourcery.com> |
3618 | ||
3619 | PR c/68162 | |
3620 | * c-decl.c (grokdeclarator): Set first_non_attr_kind before | |
3621 | following link from declarator to next declarator. Track original | |
3622 | qualified type and pass it to c_build_qualified_type. | |
3623 | * c-typeck.c (c_build_qualified_type): Add arguments | |
3624 | orig_qual_type and orig_qual_indirect. | |
3625 | ||
ff7a55bf TS |
3626 | 2015-12-02 Thomas Schwinge <thomas@codesourcery.com> |
3627 | ||
3628 | * c-parser.c (c_parser_omp_clause_name) | |
3629 | (c_parser_oacc_all_clauses): Alphabetical sorting. | |
3630 | ||
657e4e47 JJ |
3631 | 2015-12-02 Jakub Jelinek <jakub@redhat.com> |
3632 | ||
3633 | PR c/68533 | |
3634 | * c-decl.c (get_parm_info): Use b->locus instead of input_location | |
3635 | for diagnostics. | |
3636 | ||
37d5ad46 JB |
3637 | 2015-12-01 Julian Brown <julian@codesourcery.com> |
3638 | Cesar Philippidis <cesar@codesourcery.com> | |
3639 | James Norris <James_Norris@mentor.com> | |
3640 | ||
3641 | * c-parser.c (c_parser_omp_clause_name): Add use_device support. | |
3642 | (c_parser_oacc_clause_use_device): New function. | |
3643 | (c_parser_oacc_all_clauses): Add use_device support. | |
3644 | (OACC_HOST_DATA_CLAUSE_MASK): New macro. | |
3645 | (c_parser_oacc_host_data): New function. | |
3646 | (c_parser_omp_construct): Add host_data support. | |
3647 | * c-tree.h (c_finish_oacc_host_data): Add prototype. | |
3648 | * c-typeck.c (c_finish_oacc_host_data): New function. | |
3649 | (c_finish_omp_clauses): Add use_device support. | |
3650 | ||
a4850ce9 JH |
3651 | 2015-11-29 Jan Hubicka <hubicka@ucw.cz> |
3652 | ||
3653 | PR c/67106 | |
3654 | * c-decl.c: Set TYPE_PACKED in variants. | |
3655 | ||
b58d3df2 ML |
3656 | 2015-11-27 Martin Liska <mliska@suse.cz> |
3657 | ||
3658 | PR c++/68312 | |
3659 | * c-array-notation.c (fix_builtin_array_notation_fn): | |
3660 | Use release_vec_vec instead of vec::release. | |
3661 | (build_array_notation_expr): Likewise. | |
3662 | (fix_conditional_array_notations_1): Likewise. | |
3663 | (fix_array_notation_expr): Likewise. | |
3664 | (fix_array_notation_call_expr): Likewise. | |
3665 | ||
aec17bfe JJ |
3666 | 2015-11-27 Jakub Jelinek <jakub@redhat.com> |
3667 | ||
3668 | PR c/63326 | |
3669 | * c-parser.c (c_parser_compound_statement_nostart): If | |
3670 | last_label is true, use pragma_stmt instead of pragma_compound | |
3671 | as second c_parser_pragma argument. | |
3672 | (c_parser_omp_ordered, c_parser_omp_target_update, | |
3673 | c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): Pass | |
3674 | false as second argument to c_parser_skip_to_pragma_eol after | |
3675 | diagnosing standalone directives used in pragma_stmt context. | |
3676 | ||
688c4de0 IV |
3677 | 2015-11-24 Ilya Verbin <ilya.verbin@intel.com> |
3678 | ||
3679 | * c-parser.c (c_parser_oacc_declare): Replace "ifdef ENABLE_OFFLOADING" | |
3680 | with "if (ENABLE_OFFLOADING)". | |
3681 | ||
cbd03aee DM |
3682 | 2015-11-23 David Malcolm <dmalcolm@redhat.com> |
3683 | ||
3684 | PR objc/68438 | |
3685 | * c-parser.c (c_parser_postfix_expression): Set up source ranges | |
3686 | for various Objective-C constructs: Class.name syntax, | |
3687 | @selector(), @protocol(), @encode(), and [] message syntax. | |
3688 | ||
a87a86e1 DM |
3689 | 2015-11-20 David Malcolm <dmalcolm@redhat.com> |
3690 | ||
3691 | PR 62314 | |
3692 | * c-typeck.c (should_suggest_deref_p): New function. | |
3693 | (build_component_ref): Special-case POINTER_TYPE when | |
3694 | generating a "not a structure of union" error message, and | |
3695 | suggest a "->" rather than a ".", providing a fix-it hint. | |
3696 | ||
8ece8dfb DM |
3697 | 2015-11-19 David Malcolm <dmalcolm@redhat.com> |
3698 | ||
3699 | * c-typeck.c (lookup_field_fuzzy): Move determination of closest | |
3700 | candidate into a new function, find_closest_identifier. | |
3701 | ||
433068cc MP |
3702 | 2015-11-19 Marek Polacek <polacek@redhat.com> |
3703 | ||
3704 | PR c/68412 | |
3705 | * c-typeck.c (parser_build_binary_op): Properly handle | |
3706 | C_MAYBE_CONST_EXPR before calling warn_tautological_cmp. | |
3707 | ||
bef08b71 DM |
3708 | 2015-11-17 David Malcolm <dmalcolm@redhat.com> |
3709 | ||
3710 | * c-parser.c (set_c_expr_source_range): Bulletproof both | |
3711 | overloaded implementations against NULL expr->value. | |
3712 | (c_parser_braced_init): Set src_range for "ret" to a sane pair of | |
3713 | values. | |
3714 | (c_parser_unary_expression): Likewise when handling addresses of | |
3715 | labels. | |
3716 | (c_parser_postfix_expression): Likewise for statement expressions, | |
3717 | for __FUNCTION__, __PRETTY_FUNCTION_ and __func__ keywords, for | |
3718 | __builtin_va_arg, and for __builtin_offset_of. | |
3719 | (c_parser_postfix_expression_after_paren_type): Initialize expr's | |
3720 | src_range using the range of the braced initializer. | |
3721 | (c_parser_transaction_expression): Set src_range for "ret" to a | |
3722 | sane pair of values. | |
3723 | ||
fff77217 KY |
3724 | 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com> |
3725 | ||
3726 | * c-parser.c (c_finish_omp_declare_simd): Look for | |
3727 | "simd" attribute as well. Update error message. | |
3728 | ||
1d899da2 TS |
3729 | 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> |
3730 | ||
3731 | * c-parser.c (c_parser_omp_declare_target): Adjust. | |
3732 | ||
e4606348 JJ |
3733 | 2015-11-14 Jakub Jelinek <jakub@redhat.com> |
3734 | ||
3735 | * c-typeck.c (c_finish_omp_clauses): Don't mark | |
3736 | GOMP_MAP_FIRSTPRIVATE_POINTER decls addressable. | |
3737 | ||
3e636daf MP |
3738 | 2015-11-14 Marek Polacek <polacek@redhat.com> |
3739 | ||
3740 | * c-decl.c: Use RECORD_OR_UNION_TYPE_P throughout. | |
3741 | * c-typeck.c: Likewise. | |
3742 | ||
ebedc9a3 DM |
3743 | 2015-11-13 David Malcolm <dmalcolm@redhat.com> |
3744 | ||
3745 | * c-decl.c (warn_defaults_to): Pass line_table to | |
3746 | rich_location ctor. | |
3747 | * c-errors.c (pedwarn_c99): Likewise. | |
3748 | (pedwarn_c90): Likewise. | |
3749 | * c-parser.c (set_c_expr_source_range): New functions. | |
3750 | (c_token::get_range): New method. | |
3751 | (c_token::get_finish): New method. | |
3752 | (c_parser_expr_no_commas): Call set_c_expr_source_range on the ret | |
3753 | based on the range from the start of the LHS to the end of the | |
3754 | RHS. | |
3755 | (c_parser_conditional_expression): Likewise, based on the range | |
3756 | from the start of the cond.value to the end of exp2.value. | |
3757 | (c_parser_binary_expression): Call set_c_expr_source_range on | |
3758 | the stack values for TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR. | |
3759 | (c_parser_cast_expression): Call set_c_expr_source_range on ret | |
3760 | based on the cast_loc through to the end of the expr. | |
3761 | (c_parser_unary_expression): Likewise, based on the | |
3762 | op_loc through to the end of op. | |
3763 | (c_parser_sizeof_expression) Likewise, based on the start of the | |
3764 | sizeof token through to either the closing paren or the end of | |
3765 | expr. | |
3766 | (c_parser_postfix_expression): Likewise, using the token range, | |
3767 | or from the open paren through to the close paren for | |
3768 | parenthesized expressions. | |
3769 | (c_parser_postfix_expression_after_primary): Likewise, for | |
3770 | various kinds of expression. | |
3771 | * c-tree.h (struct c_expr): Add field "src_range". | |
3772 | (c_expr::get_start): New method. | |
3773 | (c_expr::get_finish): New method. | |
3774 | (set_c_expr_source_range): New decls. | |
3775 | * c-typeck.c (parser_build_unary_op): Call set_c_expr_source_range | |
3776 | on ret for prefix unary ops. | |
3777 | (parser_build_binary_op): Likewise, running from the start of | |
3778 | arg1.value through to the end of arg2.value. | |
3779 | ||
ec8b536f MP |
3780 | 2015-11-13 Marek Polacek <polacek@redhat.com> |
3781 | ||
3782 | PR c/68320 | |
3783 | * c-parser.c (c_parser_for_statement): Treat unknown tokens as IDs. | |
3784 | ||
277fe616 DM |
3785 | 2015-11-13 David Malcolm <dmalcolm@redhat.com> |
3786 | ||
3787 | * c-typeck.c: Include spellcheck.h. | |
3788 | (lookup_field_fuzzy_find_candidates): New function. | |
3789 | (lookup_field_fuzzy): New function. | |
3790 | (build_component_ref): If the field was not found, try using | |
3791 | lookup_field_fuzzy and potentially offer a suggestion. | |
3792 | ||
6e232ba4 JN |
3793 | 2015-11-12 James Norris <jnorris@codesourcery.com> |
3794 | Joseph Myers <joseph@codesourcery.com> | |
3795 | ||
3796 | * c-parser.c (c_parser_pragma): Handle PRAGMA_OACC_DECLARE. | |
3797 | (c_parser_omp_clause_name): Handle 'device_resident' clause. | |
3798 | (c_parser_oacc_data_clause): Handle PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT | |
3799 | and PRAGMA_OMP_CLAUSE_LINK. | |
3800 | (c_parser_oacc_all_clauses): Handle PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT | |
3801 | and PRAGMA_OACC_CLAUSE_LINK. | |
3802 | (OACC_DECLARE_CLAUSE_MASK): New definition. | |
3803 | (c_parser_oacc_declare): New function. | |
3804 | ||
9be4f715 MP |
3805 | 2015-11-12 Marek Polacek <polacek@redhat.com> |
3806 | ||
3807 | PR c/67784 | |
3808 | * c-parser.c (c_parser_for_statement): Reclassify the token in | |
3809 | a correct scope. | |
3810 | ||
e78bede6 MP |
3811 | 2015-11-11 Marek Polacek <polacek@redhat.com> |
3812 | ||
3813 | PR c/68107 | |
3814 | PR c++/68266 | |
3815 | * c-decl.c (grokdeclarator): Call valid_array_size_p. Remove code | |
3816 | checking the size of an array. | |
3817 | ||
69f293c9 AM |
3818 | 2015-11-11 Andrew MacLeod <amacleod@redhat.com> |
3819 | ||
3820 | * c-array-notation.c: Remove unused header files. | |
3821 | * c-aux-info.c: Likewise. | |
3822 | * c-convert.c: Likewise. | |
3823 | * c-decl.c: Likewise. | |
3824 | * c-errors.c: Likewise. | |
3825 | * c-lang.c: Likewise. | |
3826 | * c-objc-common.c: Likewise. | |
3827 | * c-parser.c: Likewise. | |
3828 | * c-typeck.c: Likewise. | |
3829 | * gccspec.c: Likewise. | |
3830 | ||
3a40d81d NS |
3831 | 2015-11-09 Thomas Schwinge <thomas@codesourcery.com> |
3832 | Cesar Philippidis <cesar@codesourcery.com> | |
3833 | James Norris <jnorris@codesourcery.com> | |
3834 | Julian Brown <julian@codesourcery.com> | |
3835 | Nathan Sidwell <nathan@codesourcery.com> | |
3836 | ||
3a40d81d NS |
3837 | * c-parser.c (c_parser_declaration_or_fndef): Add OpenACC |
3838 | routine arg. | |
3839 | (c_parser_declaration_or_fndef): Call c_finish_oacc_routine. | |
3840 | (c_parser_pragma): Parse 'acc routine'. | |
3841 | (OACC_ROUTINE_CLAUSE_MARK): Define. | |
3842 | (c_parser_oacc_routine, (c_finish_oacc_routine): New. | |
3843 | ||
fc402eec AA |
3844 | 2015-11-09 Andreas Arnez <arnez@linux.vnet.ibm.com> |
3845 | ||
3846 | PR debug/67192 | |
3847 | * c-typeck.c (c_finish_loop): For unconditional loops, set the | |
3848 | location of the backward-goto to the start of the loop body. | |
3849 | ||
f6b0b3db AA |
3850 | 2015-11-09 Andreas Arnez <arnez@linux.vnet.ibm.com> |
3851 | ||
3852 | PR debug/67192 | |
3853 | * c-parser.c (c_parser_while_statement): Finish the loop before | |
3854 | parsing ahead for misleading indentation. | |
3855 | (c_parser_for_statement): Likewise. | |
3856 | ||
ee45a32d EB |
3857 | 2015-11-08 Eric Botcazou <ebotcazou@adacore.com> |
3858 | ||
3859 | * c-decl.c (finish_struct): If the structure has reverse storage | |
3860 | order, rewrite the type of array fields with scalar component. Call | |
3861 | maybe_apply_pragma_scalar_storage_order on entry. | |
3862 | * c-typeck.c (build_unary_op) <ADDR_EXPR>: Remove left-overs. Issue | |
3863 | errors on bit-fields and reverse SSO here and not... | |
3864 | (c_mark_addressable): ...here. | |
3865 | (output_init_element): Adjust call to initializer_constant_valid_p. | |
3866 | (c_build_qualified_type): Propagate TYPE_REVERSE_STORAGE_ORDER. | |
3867 | ||
8a645150 DM |
3868 | 2015-11-06 David Malcolm <dmalcolm@redhat.com> |
3869 | ||
3870 | * c-decl.c (warn_defaults_to): Update for change in signature | |
3871 | of diagnostic_set_info. | |
3872 | * c-errors.c (pedwarn_c99): Likewise. | |
3873 | (pedwarn_c90): Likewise. | |
3874 | * c-objc-common.c (c_tree_printer): Update for new "caret_p" param | |
3875 | for textinfo::set_location. | |
3876 | ||
7a5e4956 CP |
3877 | 2015-11-05 Cesar Philippidis <cesar@codesourcery.com> |
3878 | Thomas Schwinge <thomas@codesourcery.com> | |
3879 | James Norris <jnorris@codesourcery.com> | |
3880 | ||
3881 | * c-parser.c (c_parser_omp_clause_name): Add support for | |
3882 | PRAGMA_OACC_CLAUSE_INDEPENDENT and PRAGMA_OACC_CLAUSE_TILE. | |
3883 | (c_parser_omp_clause_default): Add is_oacc argument. Handle | |
3884 | default(none) in OpenACC. | |
3885 | (c_parser_oacc_shape_clause): Allow pointer variables as gang static | |
3886 | arguments. | |
3887 | (c_parser_oacc_clause_tile): New function. | |
3888 | (c_parser_oacc_all_clauses): Add support for OMP_CLAUSE_DEFAULT, | |
3889 | OMP_CLAUSE_INDEPENDENT and OMP_CLAUSE_TILE. | |
3890 | (OACC_LOOP_CLAUSE_MASK): Add PRAGMA_OACC_CLAUSE_{PRIVATE,INDEPENDENT, | |
3891 | TILE}. | |
3892 | (OACC_KERNELS_MASK): Add PRAGMA_OACC_CLAUSE_DEFAULT. | |
3893 | (OACC_PARALLEL_MASK): Add PRAGMA_OACC_CLAUSE_{DEFAULT,PRIVATE, | |
3894 | FIRSTPRIVATE}. | |
3895 | (c_parser_omp_all_clauses): Update call to c_parser_omp_clause_default. | |
3896 | (c_parser_oacc_update): Update the error message for missing clauses. | |
3897 | * c-typeck.c (c_finish_omp_clauses): Add support for OMP_CLAUSE_TILE | |
3898 | and OMP_CLAUSE_INDEPENDENT. | |
3899 | ||
bfcfbfa0 MP |
3900 | 2015-11-05 Marek Polacek <polacek@redhat.com> |
3901 | ||
3902 | PR c/68090 | |
3903 | * c-parser.c (c_parser_postfix_expression_after_paren_type): Don't | |
3904 | deal with pre-evaluation on invalid types. | |
3905 | ||
e01d41e5 JJ |
3906 | 2015-11-05 Jakub Jelinek <jakub@redhat.com> |
3907 | Ilya Verbin <ilya.verbin@intel.com> | |
3908 | ||
3909 | * c-parser.c: Include context.h and gimple-expr.h. | |
3910 | (c_parser_omp_clause_schedule): Parse schedule modifiers, diagnose | |
3911 | monotonic together with nonmonotonic. | |
3912 | (c_parser_omp_for_loop): Call c_omp_check_loop_iv. Call add_stmt here. | |
3913 | (OMP_DISTRIBUTE_CLAUSE_MASK): Add lastprivate clause. | |
3914 | (c_parser_omp_target_data, c_parser_omp_target_enter_data, | |
3915 | c_parser_omp_target_exit_data): Allow GOMP_MAP_ALWAYS_POINTER. | |
3916 | (c_parser_omp_target): Likewise. Evaluate num_teams and thread_limit | |
3917 | expressions on combined target teams before the target. | |
3918 | (c_parser_omp_declare_target): If decl has "omp declare target" or | |
3919 | "omp declare target link" attribute, and cgraph or varpool node already | |
3920 | exists, then set corresponding flags. Call c_finish_omp_clauses | |
3921 | in the parenthesized extended-list syntax case. | |
3922 | * c-decl.c (c_decl_attributes): Don't diagnose block scope vars inside | |
3923 | declare target. | |
3924 | * c-typeck.c (handle_omp_array_sections_1): Allow non-zero low-bound | |
3925 | on OMP_CLAUSE_REDUCTION array sections. | |
3926 | (handle_omp_array_sections): Encode low-bound into the MEM_REF, either | |
3927 | into the constant offset, or for variable low-bound using | |
3928 | POINTER_PLUS_EXPR. For structure element based array sections use | |
3929 | GOMP_MAP_ALWAYS_POINTER instead of GOMP_MAP_FIRSTPRIVATE_POINTER. | |
3930 | (c_finish_omp_clauses): Drop generic_field_head, structure | |
3931 | elements are now always mapped even as array section bases, | |
3932 | diagnose same var in data sharing and mapping clauses. Diagnose if | |
3933 | linear step on declare simd is neither a constant nor a uniform | |
3934 | parameter. Look through POINTER_PLUS_EXPR for array section | |
3935 | reductions. Diagnose the same var or function appearing multiple | |
3936 | times on the same directive. Fix up wording for the to clause if t | |
3937 | is neither a FUNCTION_DECL nor a VAR_DECL. Diagnose nonmonotonic | |
3938 | modifier on kinds other than dynamic or guided or nonmonotonic | |
3939 | modifier together with ordered clause. | |
3940 | ||
4bf9e5a8 TS |
3941 | 2015-11-03 Thomas Schwinge <thomas@codesourcery.com> |
3942 | Chung-Lin Tang <cltang@codesourcery.com> | |
3943 | ||
3944 | * c-parser.c (c_parser_omp_construct): Handle PRAGMA_OACC_ATOMIC. | |
3945 | ||
2adfab87 AM |
3946 | 2015-10-29 Andrew MacLeod <amacleod@redhat.com> |
3947 | ||
3948 | * c-array-notation.c: Reorder #include's and remove duplicates. | |
3949 | * c-aux-info.c: Likewise. | |
3950 | * c-convert.c: Likewise. | |
3951 | * c-decl.c: Likewise. | |
3952 | * c-errors.c: Likewise. | |
3953 | * c-lang.c: Likewise. | |
3954 | * c-objc-common.c: Likewise. | |
3955 | * c-parser.c: Likewise. | |
3956 | * c-typeck.c: Likewise. | |
3957 | ||
e922069e JW |
3958 | 2015-10-26 Jim Wilson <jim.wilson@linaro.org> |
3959 | ||
3960 | PR debug/66068 | |
3961 | * c-typeck.c (c_build_qualified_type): Clear C_TYPE_INCOMPLETE_VARS | |
3962 | after calling build_qualified_type. | |
3963 | ||
765dd391 CP |
3964 | 2015-10-27 Cesar Philippidis <cesar@codesourcery.com> |
3965 | Thomas Schwinge <thomas@codesourcery.com> | |
3966 | James Norris <jnorris@codesourcery.com> | |
3967 | Joseph Myers <joseph@codesourcery.com> | |
3968 | Julian Brown <julian@codesourcery.com> | |
3969 | Bernd Schmidt <bschmidt@redhat.com> | |
3970 | ||
3971 | * c-parser.c (c_parser_oacc_shape_clause): New. | |
3972 | (c_parser_oacc_simple_clause): New. | |
3973 | (c_parser_oacc_all_clauses): Add auto, gang, seq, vector, worker. | |
3974 | (OACC_LOOP_CLAUSE_MASK): Add gang, worker, vector, auto, seq. | |
3975 | ||
88bae6f4 TS |
3976 | 2015-10-27 Thomas Schwinge <thomas@codesourcery.com> |
3977 | James Norris <jnorris@codesourcery.com> | |
3978 | Cesar Philippidis <cesar@codesourcery.com> | |
3979 | ||
3980 | PR c/64765 | |
3981 | PR c/64880 | |
3982 | * c-parser.c (c_parser_oacc_loop): Add mask, cclauses formal | |
3983 | parameters, and handle these. Adjust all users. | |
3984 | (c_parser_oacc_kernels, c_parser_oacc_parallel): Merge functions | |
3985 | into... | |
3986 | (c_parser_oacc_kernels_parallel): ... this new function. Adjust | |
3987 | all users. | |
3988 | * c-tree.h (c_finish_oacc_parallel, c_finish_oacc_kernels): Don't | |
3989 | declare functions. | |
3990 | (c_finish_omp_construct): Declare function. | |
3991 | * c-typeck.c (c_finish_oacc_parallel, c_finish_oacc_kernels): | |
3992 | Merge functions into... | |
3993 | (c_finish_omp_construct): ... this new function. | |
3994 | ||
a8fc2579 RB |
3995 | 2015-10-22 Richard Biener <rguenther@suse.de> |
3996 | ||
3997 | * c-typeck.c (c_finish_omp_clauses): Properly convert operands | |
3998 | before folding a MINUS_EXPR. | |
3999 | ||
e9122ef6 MP |
4000 | 2015-10-21 Marek Polacek <polacek@redhat.com> |
4001 | ||
4002 | PR c/68024 | |
4003 | * c-decl.c (start_function): Warn about vararg functions without | |
4004 | a prototype. | |
4005 | ||
9f47c7e5 IE |
4006 | 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com> |
4007 | ||
4008 | * c-typeck.c (build_conditional_expr): Use boolean vector | |
4009 | type for vector comparison. | |
4010 | (build_vec_cmp): New. | |
4011 | (build_binary_op): Use build_vec_cmp for comparison. | |
4012 | ||
fa60eeb9 MP |
4013 | 2015-10-20 Marek Polacek <polacek@redhat.com> |
4014 | ||
4015 | * c-parser.c (is_cilkplus_vector_p): Don't define here. | |
4016 | ||
2c7020eb MP |
4017 | 2015-10-20 Marek Polacek <polacek@redhat.com> |
4018 | ||
4019 | PR c/67964 | |
4020 | * c-parser.c (c_parser_attributes): Break out of the loop if the | |
4021 | token after an attribute isn't a comma. | |
4022 | ||
d9a6bd32 JJ |
4023 | 2015-10-13 Jakub Jelinek <jakub@redhat.com> |
4024 | Aldy Hernandez <aldyh@redhat.com> | |
4025 | ||
4026 | * c-parser.c (c_parser_pragma): Handle PRAGMA_OMP_ORDERED here. | |
4027 | (c_parser_omp_clause_name): Handle OpenMP 4.5 clauses. | |
4028 | (c_parser_omp_variable_list): Handle structure elements for | |
4029 | map, to and from clauses. Handle array sections in reduction | |
4030 | clause. Formatting fixes. | |
4031 | (c_parser_omp_clause_if): Add IS_OMP argument, handle parsing of | |
4032 | if clause modifiers. | |
4033 | (c_parser_omp_clause_num_tasks, c_parser_omp_clause_grainsize, | |
4034 | c_parser_omp_clause_priority, c_parser_omp_clause_hint, | |
4035 | c_parser_omp_clause_defaultmap, c_parser_omp_clause_use_device_ptr, | |
4036 | c_parser_omp_clause_is_device_ptr): New functions. | |
4037 | (c_parser_omp_clause_ordered): Parse optional parameter. | |
4038 | (c_parser_omp_clause_reduction): Handle array reductions. | |
4039 | (c_parser_omp_clause_schedule): Parse optional simd modifier. | |
4040 | (c_parser_omp_clause_nogroup, c_parser_omp_clause_orderedkind): New | |
4041 | functions. | |
4042 | (c_parser_omp_clause_linear): Parse linear clause modifiers. | |
4043 | (c_parser_omp_clause_depend_sink): New function. | |
4044 | (c_parser_omp_clause_depend): Parse source/sink depend kinds. | |
4045 | (c_parser_omp_clause_map): Parse release/delete map kinds and | |
4046 | optional always modifier. | |
4047 | (c_parser_oacc_all_clauses): Adjust c_parser_omp_clause_if | |
4048 | and c_finish_omp_clauses callers. | |
4049 | (c_parser_omp_all_clauses): Likewise. Parse OpenMP 4.5 clauses. | |
4050 | Parse "to" as OMP_CLAUSE_TO_DECLARE if on declare target directive. | |
4051 | (c_parser_oacc_cache): Adjust c_finish_omp_clauses caller. | |
4052 | (OMP_CRITICAL_CLAUSE_MASK): Define. | |
4053 | (c_parser_omp_critical): Parse critical clauses. | |
4054 | (c_parser_omp_for_loop): Handle doacross loops, adjust | |
4055 | c_finish_omp_for and c_finish_omp_clauses callers. | |
4056 | (OMP_SIMD_CLAUSE_MASK): Add simdlen clause. | |
4057 | (c_parser_omp_simd): Allow ordered clause if it has no parameter. | |
4058 | (OMP_FOR_CLAUSE_MASK): Add linear clause. | |
4059 | (c_parser_omp_for): Disallow ordered clause when combined with | |
4060 | distribute. Disallow linear clause when combined with distribute | |
4061 | and not combined with simd. | |
4062 | (OMP_ORDERED_CLAUSE_MASK, OMP_ORDERED_DEPEND_CLAUSE_MASK): Define. | |
4063 | (c_parser_omp_ordered): Add CONTEXT argument, remove LOC argument, | |
4064 | parse clauses and if depend clause is found, don't parse a body. | |
4065 | (c_parser_omp_parallel): Disallow copyin clause on target parallel. | |
4066 | Allow target parallel without for after it. | |
4067 | (OMP_TASK_CLAUSE_MASK): Add priority clause. | |
4068 | (OMP_TARGET_DATA_CLAUSE_MASK): Add use_device_ptr clause. | |
4069 | (c_parser_omp_target_data): Diagnose no map clauses or clauses with | |
4070 | invalid kinds. | |
4071 | (OMP_TARGET_UPDATE_CLAUSE_MASK): Add depend and nowait clauses. | |
4072 | (OMP_TARGET_ENTER_DATA_CLAUSE_MASK, | |
4073 | OMP_TARGET_EXIT_DATA_CLAUSE_MASK): Define. | |
4074 | (c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): New | |
4075 | functions. | |
4076 | (OMP_TARGET_CLAUSE_MASK): Add depend, nowait, private, firstprivate, | |
4077 | defaultmap and is_device_ptr clauses. | |
4078 | (c_parser_omp_target): Parse target parallel and target simd. Set | |
4079 | OMP_TARGET_COMBINED on combined constructs. Parse target enter data | |
4080 | and target exit data. Diagnose invalid map kinds. | |
4081 | (OMP_DECLARE_TARGET_CLAUSE_MASK): Define. | |
4082 | (c_parser_omp_declare_target): Parse OpenMP 4.5 forms of this | |
4083 | construct. | |
4084 | (c_parser_omp_declare_reduction): Use STRIP_NOPS when checking for | |
4085 | &omp_priv. | |
4086 | (OMP_TASKLOOP_CLAUSE_MASK): Define. | |
4087 | (c_parser_omp_taskloop): New function. | |
4088 | (c_parser_omp_construct): Don't handle PRAGMA_OMP_ORDERED here, | |
4089 | handle PRAGMA_OMP_TASKLOOP. | |
4090 | (c_parser_cilk_for): Adjust c_finish_omp_clauses callers. | |
4091 | * c-tree.h (c_finish_omp_clauses): Add two new arguments. | |
4092 | * c-typeck.c (handle_omp_array_sections_1): Fix comment typo. | |
4093 | Add IS_OMP argument, handle structure element bases, diagnose | |
4094 | bitfields, pass IS_OMP recursively, diagnose known zero length | |
4095 | array sections in depend clauses, handle array sections in reduction | |
4096 | clause, diagnose negative length even for pointers. | |
4097 | (handle_omp_array_sections): Add IS_OMP argument, use auto_vec for | |
4098 | types, pass IS_OMP down to handle_omp_array_sections_1, handle | |
4099 | array sections in reduction clause, set | |
4100 | OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION if map could be zero | |
4101 | length array section, use GOMP_MAP_FIRSTPRIVATE_POINTER for IS_OMP. | |
4102 | (c_finish_omp_clauses): Add IS_OMP and DECLARE_SIMD arguments. | |
4103 | Handle new OpenMP 4.5 clauses and new restrictions for the old ones. | |
4104 | ||
21ba0cea MP |
4105 | 2015-10-06 Marek Polacek <polacek@redhat.com> |
4106 | ||
4107 | * c-parser.c (c_parser_statement_after_labels): Use | |
4108 | protected_set_expr_location. | |
4109 | (c_parser_omp_clause_num_gangs): Likewise. | |
4110 | (c_parser_omp_clause_num_threads): Likewise. | |
4111 | (c_parser_omp_clause_num_workers): Likewise. | |
4112 | (c_parser_omp_clause_vector_length): Likewise. | |
4113 | (c_parser_omp_clause_num_teams): Likewise. | |
4114 | (c_parser_omp_clause_thread_limit): Likewise. | |
4115 | * c-typeck.c (build_c_cast): Likewise. | |
4116 | (c_cast_expr): Likewise. | |
4117 | ||
624d31fe RS |
4118 | 2015-10-05 Richard Sandiford <richard.sandiford@arm.com> |
4119 | ||
4120 | * c-typeck.c (c_tree_equal): Use real_equal instead of | |
4121 | REAL_VALUES_EQUAL. | |
4122 | ||
b8fd7909 JM |
4123 | 2015-10-04 Jason Merrill <jason@redhat.com> |
4124 | ||
4125 | * c-parser.c (c_lex_one_token): Handle @synchronized. | |
4126 | * c-decl.c (match_builtin_function_types): A declaration of a built-in | |
4127 | can change whether the function is transaction_safe. | |
4128 | ||
1c7485af MP |
4129 | 2015-10-02 Marek Polacek <polacek@redhat.com> |
4130 | ||
4131 | PR c/67730 | |
4132 | * c-typeck.c (convert_for_assignment): Use the expansion point | |
4133 | location throughout. | |
4134 | ||
3e3b8d63 MP |
4135 | 2015-10-02 Marek Polacek <polacek@redhat.com> |
4136 | ||
4137 | PR c/64249 | |
4138 | * c-parser.c (c_parser_statement_after_labels): Add CHAIN parameter | |
4139 | and pass it down to c_parser_if_statement. | |
4140 | (c_parser_else_body): Add CHAIN parameter and pass it down to | |
4141 | c_parser_statement_after_labels. | |
4142 | (c_parser_if_statement): Add CHAIN parameter. Add code to warn about | |
4143 | duplicated if-else-if conditions. | |
4144 | ||
aabef2de MP |
4145 | 2015-10-01 Marek Polacek <polacek@redhat.com> |
4146 | ||
4147 | * c-typeck.c (convert_for_assignment): Improve commentary. | |
4148 | ||
de8ddd5f MP |
4149 | 2015-09-30 Marek Polacek <polacek@redhat.com> |
4150 | ||
4151 | PR c/67730 | |
4152 | * c-typeck.c (c_finish_return): Use the expansion point location for | |
4153 | certain "return with value" warnings. | |
4154 | ||
c4914de6 MLI |
4155 | 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org> |
4156 | ||
4157 | * c-parser.c (pragma_lex): Add loc argument. | |
4158 | ||
0e36f5c7 MP |
4159 | 2015-09-15 Marek Polacek <polacek@redhat.com> |
4160 | ||
4161 | PR c/67580 | |
4162 | * c-decl.c (tag_exists_p): New function. | |
4163 | * c-parser.c (c_parser_declaration_or_fndef): Give a hint when | |
4164 | struct/union/enum keywords are missing. | |
4165 | * c-tree.h (tag_exists_p): Declare. | |
4166 | ||
2f3bb934 MP |
4167 | 2015-09-15 Marek Polacek <polacek@redhat.com> |
4168 | ||
4169 | * c-decl.c (lookup_label): Return NULL_TREE instead of 0. | |
4170 | (lookup_tag): Change the type of THISLEVEL_ONLY to bool. | |
4171 | Return NULL_TREE instead of 0. | |
4172 | (lookup_name): Return NULL_TREE instead of 0. | |
4173 | (lookup_name_in_scope): Likewise. | |
4174 | (shadow_tag_warned): Use true instead of 1 and NULL_TREE instead of 0. | |
4175 | (parser_xref_tag): Use false instead of 0. | |
4176 | (start_struct): Use true instead of 1. | |
4177 | (start_enum): Use true instead of 1 and NULL_TREE instead of 0. | |
4178 | ||
aa256c4a MP |
4179 | 2015-09-14 Marek Polacek <polacek@redhat.com> |
4180 | ||
4181 | * c-typeck.c (set_nonincremental_init_from_string): Use | |
4182 | HOST_WIDE_INT_M1U when shifting a negative value. | |
4183 | ||
dbb68221 MW |
4184 | 2015-09-09 Mark Wielaard <mjw@redhat.com> |
4185 | ||
4186 | * c-typeck.c (build_binary_op): Check and warn when nonnull arg | |
4187 | parm against NULL. | |
4188 | ||
a8a098ac JJ |
4189 | 2015-09-10 Jakub Jelinek <jakub@redhat.com> |
4190 | ||
4191 | PR c/67502 | |
4192 | * c-parser.c (c_parser_omp_for_loop): Emit DECL_EXPR stmts | |
4193 | into OMP_FOR_PRE_BODY rather than before the loop. | |
4194 | ||
f4b189d5 JJ |
4195 | 2015-09-09 Jakub Jelinek <jakub@redhat.com> |
4196 | ||
0bb99c11 JJ |
4197 | PR c/67501 |
4198 | * c-parser.c (c_parser_oacc_all_clauses, | |
4199 | c_parser_omp_all_clauses): Remove invalid clause from | |
4200 | list of clauses even if parser->error is set. | |
4201 | ||
fce5e5e3 JJ |
4202 | PR c/67500 |
4203 | * c-parser.c (c_parser_omp_clause_aligned, | |
4204 | c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen): Fix up | |
4205 | test for errors. | |
4206 | * c-decl.c (temp_pop_parm_decls): Allow b->decl equal to | |
4207 | error_mark_node. | |
4208 | ||
f4b189d5 JJ |
4209 | PR c/67495 |
4210 | * c-parser.c (c_parser_omp_atomic): Use c_parser_cast_expression | |
4211 | instead of c_parser_unary_expression. If the result is !lvalue_p, | |
4212 | wrap the result of c_fully_fold into NON_LVALUE_EXPR. | |
4213 | ||
b2aaf235 MP |
4214 | 2015-09-04 Marek Polacek <polacek@redhat.com> |
4215 | ||
4216 | PR sanitizer/67279 | |
4217 | * c-typeck.c (build_binary_op): Don't instrument static initializers. | |
4218 | ||
1807ffc1 MS |
4219 | 2015-09-03 Martin Sebor <msebor@redhat.com> |
4220 | ||
4221 | PR c/66516 | |
8b652e65 JJ |
4222 | * c-typeck.c (convert_arguments, parser_build_unary_op, |
4223 | build_conditional_expr, c_cast_expr, convert_for_assignment, | |
4224 | build_binary_op, _objc_common_truthvalue_conversion): Call | |
1807ffc1 MS |
4225 | reject_gcc_builtin. |
4226 | (c_decl_implicit): Define. | |
4227 | ||
d04ff417 MP |
4228 | 2015-09-02 Marek Polacek <polacek@redhat.com> |
4229 | ||
4230 | PR c/67432 | |
4231 | * c-parser.c (c_parser_enum_specifier): Give a better error for | |
4232 | an empty enum. | |
4233 | ||
a79683d5 TS |
4234 | 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org> |
4235 | ||
4236 | * c-aux-info.c, c-parser.c, c-tree.h: Remove useless typedefs. | |
4237 | ||
191a6b94 MP |
4238 | 2015-08-12 Marek Polacek <polacek@redhat.com> |
4239 | ||
4240 | * c-decl.c (grokdeclarator): Call error_at instead of error and pass | |
4241 | LOC to it. | |
4242 | ||
420a9d9b MP |
4243 | 2015-08-03 Marek Polacek <polacek@redhat.com> |
4244 | ||
4245 | PR c/67088 | |
4246 | * c-decl.c (check_bitfield_type_and_width): Add location parameter. | |
4247 | Use it. | |
4248 | (grokdeclarator): Pass LOC down to check_bitfield_type_and_width. | |
4249 | ||
992118a1 PP |
4250 | 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org> |
4251 | ||
4252 | * c-parser.c (c_parser_if_body): Take token_indent_info | |
4253 | argument. Call warn_for_misleading_indentation even when the | |
4254 | body is a semicolon. Extract token_indent_infos corresponding | |
4255 | to the guard, body and next tokens. Adjust call to | |
4256 | warn_for_misleading_indentation accordingly. | |
4257 | (c_parser_else_body): Likewise. | |
4258 | (c_parser_if_statement): Likewise. | |
4259 | (c_parser_while_statement): Likewise. | |
4260 | (c_parser_for_statement): Likewise. | |
4261 | ||
46308474 LFSM |
4262 | 2015-07-28 Luis Felipe Strano Moraes <luis.strano@gmail.com> |
4263 | Manuel López-Ibáñez <manu@gcc.gnu.org> | |
4264 | ||
4265 | * c-decl.c (get_parm_info): Remove static var. Update warning | |
4266 | message. | |
4267 | ||
05b28fd6 MP |
4268 | 2015-07-27 Marek Polacek <polacek@redhat.com> |
4269 | ||
4270 | PR c++/66555 | |
4271 | PR c/54979 | |
4272 | * c-typeck.c (parser_build_binary_op): Call warn_tautological_cmp. | |
4273 | ||
451b5e48 MP |
4274 | 2015-07-20 Marek Polacek <polacek@redhat.com> |
4275 | ||
4276 | PR c++/55095 | |
4277 | * c-typeck.c (digest_init): Pass OPT_Wpedantic to pedwarn_init. | |
4278 | (build_binary_op): Warn about left shift overflows. | |
4279 | ||
1916bcb5 AM |
4280 | 2015-07-09 Andrew MacLeod <amacleod@redhat.com> |
4281 | ||
4282 | * c-array-notation.c: Adjust includes for flags.h changes. | |
4283 | * c-objc-common.c: Likewise. | |
4284 | ||
c7131fb2 AM |
4285 | 2015-07-07 Andrew MacLeod <amacleod@redhat.com> |
4286 | ||
4287 | * c-array-notation.c: Adjust includes. | |
4288 | * c-aux-info.c: Likewise. | |
4289 | * c-convert.c: Likewise. | |
4290 | * c-decl.c: Likewise. | |
4291 | * c-errors.c: Likewise. | |
4292 | * c-lang.c: Likewise. | |
4293 | * c-objc-common.c: Likewise. | |
4294 | * c-parser.c: Likewise. | |
4295 | * c-typeck.c: Likewise. | |
4296 | ||
da2e71c9 MLI |
4297 | 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org> |
4298 | ||
4299 | PR fortran/66605 | |
4300 | * c-decl.c (finish_function): Call do_warn_unused_parameter. | |
4301 | ||
b155cfd9 MP |
4302 | 2015-06-29 Marek Polacek <polacek@redhat.com> |
4303 | ||
4304 | PR c/66322 | |
4305 | * c-typeck.c (struct c_switch): Add BOOL_COND_P and OUTSIDE_RANGE_P. | |
4306 | (c_start_case): Set BOOL_COND_P and OUTSIDE_RANGE_P. Don't warn | |
4307 | about -Wswitch-bool here. | |
4308 | (do_case): Update c_add_case_label call. | |
4309 | (c_finish_case): Update c_do_switch_warnings call. | |
4310 | ||
31521951 MP |
4311 | 2015-06-27 Marek Polacek <polacek@redhat.com> |
4312 | ||
4313 | * c-typeck.c: Use VECTOR_TYPE_P throughout. | |
4314 | ||
22d03525 MP |
4315 | 2015-06-26 Marek Polacek <polacek@redhat.com> |
4316 | ||
4317 | * c-array-notation.c (fix_builtin_array_notation_fn): Use | |
4318 | INDIRECT_REF_P. | |
4319 | * c-typeck.c (array_to_pointer_conversion): Likewise. | |
4320 | (build_unary_op): Likewise. | |
4321 | (c_finish_return): Likewise. | |
4322 | ||
f0889939 AM |
4323 | 2015-06-25 Andrew MacLeod <amacleod@redhat.com> |
4324 | ||
4325 | * c-decl.c: Remove ipa-ref.h and plugin-api.h from include list. | |
4326 | * c-parser.c: Likewise. | |
4327 | ||
8d67ee55 RS |
4328 | 2015-06-25 Richard Sandiford <richard.sandiford@arm.com> |
4329 | ||
4330 | * c-decl.c (detect_field_duplicates_hash): Use nofree_ptr_hash | |
4331 | instead of pointer_hash. | |
4332 | (detect_field_duplicates): Likewise. | |
4333 | ||
0ae9bd27 MP |
4334 | 2015-06-25 Marek Polacek <polacek@redhat.com> |
4335 | ||
4336 | * c-array-notation.c: Use VAR_P throughout. | |
4337 | * c-decl.c: Likewise. | |
4338 | * c-objc-common.c: Likewise. | |
4339 | * c-parser.c: Likewise. | |
4340 | * c-typeck.c: Likewise. | |
4341 | ||
62f9079a MP |
4342 | 2015-06-25 Marek Polacek <polacek@redhat.com> |
4343 | ||
4344 | * c-decl.c: Use is_global_var throughout. | |
4345 | * c-parser.c: Likewise. | |
4346 | * c-typeck.c: Likewise. | |
4347 | ||
abb226c9 AM |
4348 | 2015-06-17 Andrew MacLeod <amacleod@redhat.com> |
4349 | ||
4350 | * c-array-notation.c: Do not include input.h, line-map.h or is-a.h. | |
4351 | * c-aux-info.c: Likewise. | |
4352 | * c-convert.c: Likewise. | |
4353 | * c-decl.c: Likewise. | |
4354 | * c-errors.c: Likewise. | |
4355 | * c-lang.c: Likewise. | |
4356 | * c-objc-common.c: Likewise. | |
4357 | * c-parser.c: Likewise. | |
4358 | * c-typeck.c: Likewise. | |
4359 | ||
8cbababc JH |
4360 | 2015-06-11 Jan Hubicka <hubicka@ucw.cz> |
4361 | ||
4362 | PR middle-end/66325 | |
4363 | * c-decl.c (start_enum): Set TYPE_PACKED consistently among type | |
4364 | variants. | |
4365 | ||
a0349665 PMR |
4366 | 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com> |
4367 | ||
4368 | * c-decl.c (pop_scope): Register the main translation unit | |
4369 | through the new debug hook. | |
4370 | ||
13fdf2e2 AM |
4371 | 2015-06-08 Andrew MacLeod <amacleod@redhat.com> |
4372 | ||
4373 | * c-array-notation.c : Adjust include files. | |
4374 | * c-aux-info.c : Likewise. | |
4375 | * c-convert.c : Likewise. | |
4376 | * c-decl.c : Likewise. | |
4377 | * c-errors.c : Likewise. | |
4378 | * c-lang.c : Likewise. | |
4379 | * c-lang.h : Likewise. | |
4380 | * c-objc-common.c : Likewise. | |
4381 | * c-parser.c : Likewise. | |
4382 | * c-typeck.c : Likewise. | |
4383 | ||
d7438551 AH |
4384 | 2015-06-05 Aldy Hernandez <aldyh@redhat.com> |
4385 | ||
4386 | * c-decl.c (finish_struct): Save C_TYPE_INCOMPLETE_VARS and | |
4387 | immediately clobber it. | |
4388 | (c_write_global_declarations_1): Remove call to | |
4389 | check_global_declaration_1. | |
4390 | (c_write_global_declarations_2): Remove. | |
4391 | (c_write_final_cleanups): Rename from c_write_global_declarations. | |
4392 | Remove call to finalize_compilation_unit. | |
4393 | Remove calls to debugging hooks. | |
4394 | * c-objc-common.c: Adjust comment for c_warn_unused_global_decl. | |
4395 | * c-objc-common.h: Remove LANG_HOOKS_WRITE_GLOBALS. | |
4396 | * c-tree.h: Remove c_write_global_declarations. | |
4397 | ||
ecb9f223 AM |
4398 | 2015-06-04 Andrew MacLeod <amacleod@redhat.com> |
4399 | ||
4400 | * c-array-notation.c: Adjust includes for restructured coretypes.h. | |
4401 | * c-aux-info.c: Likewise. | |
4402 | * c-convert.c: Likewise. | |
4403 | * c-decl.c: Likewise. | |
4404 | * c-errors.c: Likewise. | |
4405 | * c-lang.c: Likewise. | |
4406 | * c-objc-common.c: Likewise. | |
4407 | * c-parser.c: Likewise. | |
4408 | * c-typeck.c: Likewise. | |
4409 | ||
9482b620 MP |
4410 | 2015-06-04 Marek Polacek <polacek@redhat.com> |
4411 | ||
4412 | PR c/66341 | |
4413 | * c-typeck.c (build_c_cast): Wrap VALUE into NON_LVALUE_EXPR if | |
4414 | it is a lvalue. | |
4415 | ||
bc51ace3 PK |
4416 | 2015-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
4417 | ||
4418 | * c-decl.c (warn_cxx_compat_finish_struct): New parameters code, record_loc. | |
4419 | Warn for empty struct. | |
4420 | (finish_struct): Pass TREE_CODE(t) and loc to warn_cxx_compat_finish_struct. | |
4421 | ||
ea5b45b6 AT |
4422 | 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com> |
4423 | ||
4424 | * c-decl.c (start_function): Call plugin before parsing. | |
4425 | (finish_function): Call plugin after parsing. | |
4426 | ||
c2d47482 PK |
4427 | 2015-06-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
4428 | ||
4429 | PR c/49551 | |
4430 | * c-decl.c (merge_decls): Merge DECL_COMMON. | |
4431 | ||
a95492ab JW |
4432 | 2015-05-22 Jim Wilson <jim.wilson@linaro.org> |
4433 | ||
4434 | * Make-lang.in (check_gcc_pallelize): Define. | |
4435 | ||
fd5c817a MP |
4436 | 2015-05-22 Marek Polacek <polacek@redhat.com> |
4437 | ||
4438 | PR c/47043 | |
4439 | * c-parser.c (c_parser_enum_specifier): Parse and apply enumerator | |
4440 | attributes. | |
4441 | ||
c7b70a3c MP |
4442 | 2015-05-21 Marek Polacek <polacek@redhat.com> |
4443 | ||
4444 | * c-typeck.c (inform_declaration): Use DECL_IS_BUILTIN instead of | |
4445 | DECL_BUILT_IN. | |
4446 | ||
21b634ae MP |
4447 | 2015-05-20 Marek Polacek <polacek@redhat.com> |
4448 | ||
4449 | * c-decl.c: Use VAR_OR_FUNCTION_DECL_P throughout. | |
4450 | * c-typeck.c: Likewise. | |
4451 | ||
296a8c2f MP |
4452 | 2015-05-19 Marek Polacek <polacek@redhat.com> |
4453 | ||
4454 | * c-typeck.c (start_init): Use AGGREGATE_TYPE_P. | |
4455 | ||
41b37d5e JJ |
4456 | 2015-05-19 Jakub Jelinek <jakub@redhat.com> |
4457 | ||
4458 | PR middle-end/66199 | |
4459 | * c-parser.c (c_parser_omp_for_loop): Don't add | |
4460 | OMP_CLAUSE_SHARED to OMP_PARALLEL_CLAUSES when moving | |
4461 | OMP_CLAUSE_LASTPRIVATE clause to OMP_FOR_CLAUSES. | |
4462 | (c_parser_omp_teams): Set OMP_TEAMS_COMBINED for combined | |
4463 | constructs. | |
4464 | ||
fab27f52 MM |
4465 | 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com> |
4466 | ||
4467 | * c-typeck.c (build_array_ref): Use std::swap instead of explicit | |
296a8c2f | 4468 | swaps. |
fab27f52 | 4469 | |
40de31cf MLI |
4470 | 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org> |
4471 | ||
4472 | PR fortran/44054 | |
4473 | * c-objc-common.c (c_tree_printer): Replace locus pointer with | |
4474 | accessor function. | |
4475 | ||
3aa3c9fc MP |
4476 | 2015-05-14 Marek Polacek <polacek@redhat.com> |
4477 | ||
4478 | PR c/66066 | |
4479 | PR c/66127 | |
4480 | * c-typeck.c (digest_init): Call pedwarn_init with OPT_Wpedantic | |
4481 | rather than with 0. | |
4482 | ||
c3388e62 DM |
4483 | 2015-05-12 David Malcolm <dmalcolm@redhat.com> |
4484 | ||
4485 | * c-parser.c (c_parser_if_body): Add param "if_loc", use it | |
4486 | to add a call to warn_for_misleading_indentation. | |
4487 | (c_parser_else_body): Likewise, adding param "else_loc". | |
4488 | (c_parser_if_statement): Check for misleading indentation. | |
4489 | (c_parser_while_statement): Likewise. | |
4490 | (c_parser_for_statement): Likewise. | |
4491 | ||
755e528f MP |
4492 | 2015-05-08 Marek Polacek <polacek@redhat.com> |
4493 | ||
4494 | PR c/64918 | |
4495 | * c-typeck.c (add_pending_init): Use OPT_Woverride_init_side_effects. | |
4496 | (output_init_element): Likewise. | |
4497 | ||
0173bd2a MP |
4498 | 2015-05-07 Marek Polacek <polacek@redhat.com> |
4499 | ||
4500 | PR c/65179 | |
4501 | * c-typeck.c (build_binary_op): Warn when left shifting a negative | |
4502 | value. | |
4503 | ||
9babc352 MP |
4504 | 2015-04-30 Marek Polacek <polacek@redhat.com> |
4505 | ||
4506 | * c-typeck.c (set_init_label): Call error_at instead of error and | |
4507 | pass LOC to it. | |
4508 | ||
ac9f18db MP |
4509 | * c-typeck.c (c_incomplete_type_error): Refactor to use %qT. Print |
4510 | the type of a decl. | |
4511 | ||
ec3fba51 MP |
4512 | * c-typeck.c (c_build_va_arg): Clarify the error message. |
4513 | ||
b811915d TS |
4514 | 2015-04-29 Thomas Schwinge <thomas@codesourcery.com> |
4515 | ||
4516 | * c-parser.c (c_parser_oacc_enter_exit_data): Use | |
4517 | OMP_STANDALONE_CLAUSES. | |
4518 | ||
f3075008 MP |
4519 | 2015-04-28 Marek Polacek <polacek@redhat.com> |
4520 | ||
4521 | * c-parser.c (c_parser_binary_expression): Remove duplicate line. | |
4522 | ||
4e81b788 MP |
4523 | 2015-04-28 Marek Polacek <polacek@redhat.com> |
4524 | ||
4525 | PR c/65901 | |
4526 | * c-typeck.c (c_build_va_arg): Require TYPE be a complete type. | |
4527 | ||
6c1db78e MP |
4528 | 2015-04-25 Marek Polacek <polacek@redhat.com> |
4529 | ||
4530 | PR c/52085 | |
4531 | * c-decl.c (finish_enum): Copy over TYPE_ALIGN. Also check for "mode" | |
4532 | attribute. | |
4533 | ||
5c4abbb8 MP |
4534 | 2015-04-23 Marek Polacek <polacek@redhat.com> |
4535 | ||
4536 | PR c/65345 | |
4537 | * c-decl.c (set_labels_context_r): New function. | |
4538 | (store_parm_decls): Call it via walk_tree_without_duplicates. | |
4539 | * c-typeck.c (convert_lvalue_to_rvalue): Use create_tmp_var_raw | |
4540 | instead of create_tmp_var. Build TARGET_EXPR instead of | |
4541 | COMPOUND_EXPR. | |
4542 | (build_atomic_assign): Use create_tmp_var_raw instead of | |
4543 | create_tmp_var. Build TARGET_EXPRs instead of MODIFY_EXPR. | |
4544 | ||
06aca1d5 IV |
4545 | 2015-04-20 Ilya Verbin <ilya.verbin@intel.com> |
4546 | ||
4547 | * c-parser.c (c_parser_oacc_enter_exit_data): Remove excess semicolon. | |
4548 | (c_parser_omp_target_update): Add missed %> to error_at (). | |
4549 | ||
8fba1830 BRF |
4550 | 2015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org> |
4551 | ||
4552 | PR target/55143 | |
4553 | * c-decl.c (c_default_pointer_mode): Remove definition. | |
4554 | * c-tree.h (c_default_pointer_mode): Remove declaration. | |
4555 | ||
62021f64 TB |
4556 | 2015-03-27 Tobias Burnus <burnus@net-b.de> |
4557 | ||
4558 | PR c/65586 | |
4559 | * c-parser.c (c_parser_skip_to_pragma_eol): Optionally, don't | |
4560 | error out. | |
4561 | (c_parser_omp_for, c_parser_omp_parallel, c_parser_omp_distribute, | |
4562 | c_parser_omp_teams, c_parser_omp_target, c_parser_omp_declare): | |
4563 | Update calls to not error for skipped omp pragmas with -fopenmp-simd. | |
4564 | ||
9b65e171 JJ |
4565 | 2015-03-19 Jakub Jelinek <jakub@redhat.com> |
4566 | ||
4567 | * c-decl.c (c_decl_attributes): Also add "omp declare target" | |
4568 | attribute for DECL_EXTERNAL VAR_DECLs. | |
4569 | ||
17958621 JJ |
4570 | 2015-03-11 Jakub Jelinek <jakub@redhat.com> |
4571 | ||
4572 | * c-parser.c (c_parse_init): Don't call xstrdup on get_identifier | |
4573 | argument. | |
4574 | ||
7ccb1a11 JJ |
4575 | 2015-03-10 Jakub Jelinek <jakub@redhat.com> |
4576 | ||
4577 | PR c/65120 | |
4578 | * c-typeck.c (parser_build_binary_op): Check for tcc_comparison | |
4579 | before preparing arguments to warn_logical_not_parentheses. | |
4580 | ||
01177669 JJ |
4581 | 2015-03-09 Jakub Jelinek <jakub@redhat.com> |
4582 | ||
4583 | PR c/65120 | |
4584 | * c-typeck.c (parser_build_binary_op): Don't warn for | |
4585 | !!x == y or !b == y where b is _Bool. | |
4586 | ||
802ac282 MP |
4587 | 2015-03-09 Marek Polacek <polacek@redhat.com> |
4588 | ||
4589 | * c-convert.c (convert): Make use of do_ubsan_in_current_function. | |
4590 | * c-decl.c (grokdeclarator): Likewise. | |
4591 | * c-typeck.c (build_binary_op): Likewise. | |
4592 | ||
e5165b60 MP |
4593 | 2015-02-27 Marek Polacek <polacek@redhat.com> |
4594 | ||
4595 | PR c/65228 | |
4596 | * c-decl.c (start_decl): Return NULL_TREE if decl is an error node. | |
4597 | ||
065d214c MP |
4598 | 2015-02-14 Marek Polacek <polacek@redhat.com> |
4599 | ||
4600 | PR c/64768 | |
4601 | * c-decl.c (grokdeclarator): Set the range of a flexible array member | |
4602 | declared through a typedef name. | |
4603 | ||
e5d9235b MP |
4604 | 2015-02-13 Marek Polacek <polacek@redhat.com> |
4605 | ||
4606 | PR c/65050 | |
4607 | * c-decl.c (grokdeclarator): Print also the type when giving | |
4608 | the error message about array's incomplete element type. | |
4609 | ||
fa01ffcc JJ |
4610 | 2015-02-11 Jakub Jelinek <jakub@redhat.com> |
4611 | ||
4612 | PR c/64824 | |
4613 | * c-parser.c (c_parser_binary_expression): Fix OpenMP stack[sp].prec | |
4614 | check in the POP macro. | |
4615 | ||
c3e38a03 MP |
4616 | 2015-02-09 Marek Polacek <polacek@redhat.com> |
4617 | ||
4618 | PR c/64856 | |
4619 | * c-typeck.c (process_init_element): Don't always wrap | |
4620 | COMPOUND_LITERAL_EXPR in a SAVE_EXPR in C99 mode when | |
4621 | initializing a range of elements. | |
4622 | ||
4886ec8e JJ |
4623 | 2015-02-04 Jakub Jelinek <jakub@redhat.com> |
4624 | ||
4625 | PR c/64824 | |
4626 | PR c/64868 | |
4627 | * c-parser.c (c_parser_omp_atomic): Handle RDIV_EXPR. | |
4628 | ||
c3e38a03 | 4629 | 2015-02-02 Bruno Loff <bruno.loff@gmail.com> |
a4bb6959 BL |
4630 | |
4631 | * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks after | |
4632 | processing enum declaration. | |
4633 | ||
7b33f0c8 MP |
4634 | 2015-01-29 Marek Polacek <polacek@redhat.com> |
4635 | ||
4636 | PR c/64709 | |
4637 | * c-typeck.c (pop_init_level): If constructor_elements has | |
4638 | exactly one element with integer_zerop value, set constructor_zeroinit | |
4639 | to 1. Remove braces around warning_init call. | |
4640 | ||
dea63e49 JJ |
4641 | 2015-01-27 Jakub Jelinek <jakub@redhat.com> |
4642 | ||
4643 | PR c/64766 | |
4644 | * c-typeck.c (store_init_value): Don't overwrite DECL_INITIAL | |
4645 | of FUNCTION_DECLs with error_mark_node. | |
4646 | ||
d38f7dce JJ |
4647 | 2015-01-26 Jakub Jelinek <jakub@redhat.com> |
4648 | ||
4649 | PR c/64778 | |
4650 | * c-typeck.c (convert_arguments): Return -1 if there are | |
4651 | error_args, even if we've diagnosed too many arguments. | |
4652 | ||
cbf5d0e7 RB |
4653 | 2015-01-21 Richard Biener <rguenther@suse.de> |
4654 | ||
4655 | PR middle-end/64313 | |
4656 | * c-decl.c (merge_decls): Call set_builtin_decl_declared_p | |
4657 | for builtins the user declared correctly. | |
4658 | ||
41dbbb37 TS |
4659 | 2015-01-15 Thomas Schwinge <thomas@codesourcery.com> |
4660 | Bernd Schmidt <bernds@codesourcery.com> | |
4661 | Cesar Philippidis <cesar@codesourcery.com> | |
4662 | James Norris <jnorris@codesourcery.com> | |
4663 | Jakub Jelinek <jakub@redhat.com> | |
4664 | Ilmir Usmanov <i.usmanov@samsung.com> | |
4665 | ||
4666 | * c-parser.c: Include "gomp-constants.h". | |
4667 | (c_parser_omp_clause_map): Use enum gomp_map_kind instead of enum | |
4668 | omp_clause_map_kind. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. | |
4669 | Use OMP_CLAUSE_SET_MAP_KIND. | |
4670 | (c_parser_pragma): Handle PRAGMA_OACC_ENTER_DATA, | |
4671 | PRAGMA_OACC_EXIT_DATA, PRAGMA_OACC_UPDATE. | |
4672 | (c_parser_omp_construct): Handle PRAGMA_OACC_CACHE, | |
4673 | PRAGMA_OACC_DATA, PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, | |
4674 | PRAGMA_OACC_PARALLEL, PRAGMA_OACC_WAIT. | |
4675 | (c_parser_omp_clause_name): Handle "auto", "async", "copy", | |
4676 | "copyout", "create", "delete", "deviceptr", "gang", "host", | |
4677 | "num_gangs", "num_workers", "present", "present_or_copy", "pcopy", | |
4678 | "present_or_copyin", "pcopyin", "present_or_copyout", "pcopyout", | |
4679 | "present_or_create", "pcreate", "seq", "self", "vector", | |
4680 | "vector_length", "wait", "worker". | |
4681 | (OACC_DATA_CLAUSE_MASK, OACC_KERNELS_CLAUSE_MASK) | |
4682 | (OACC_ENTER_DATA_CLAUSE_MASK, OACC_EXIT_DATA_CLAUSE_MASK) | |
4683 | (OACC_LOOP_CLAUSE_MASK, OACC_PARALLEL_CLAUSE_MASK) | |
4684 | (OACC_UPDATE_CLAUSE_MASK, OACC_WAIT_CLAUSE_MASK): New macros. | |
4685 | (c_parser_omp_variable_list): Handle OMP_CLAUSE__CACHE_. | |
4686 | (c_parser_oacc_wait_list, c_parser_oacc_data_clause) | |
4687 | (c_parser_oacc_data_clause_deviceptr) | |
4688 | (c_parser_omp_clause_num_gangs, c_parser_omp_clause_num_workers) | |
4689 | (c_parser_oacc_clause_async, c_parser_oacc_clause_wait) | |
4690 | (c_parser_omp_clause_vector_length, c_parser_oacc_all_clauses) | |
4691 | (c_parser_oacc_cache, c_parser_oacc_data, c_parser_oacc_kernels) | |
4692 | (c_parser_oacc_enter_exit_data, c_parser_oacc_loop) | |
4693 | (c_parser_oacc_parallel, c_parser_oacc_update) | |
4694 | (c_parser_oacc_wait): New functions. | |
4695 | * c-tree.h (c_finish_oacc_parallel, c_finish_oacc_kernels) | |
4696 | (c_finish_oacc_data): New prototypes. | |
4697 | * c-typeck.c: Include "gomp-constants.h". | |
4698 | (handle_omp_array_sections): Handle GOMP_MAP_FORCE_DEVICEPTR. Use | |
4699 | GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use | |
4700 | OMP_CLAUSE_SET_MAP_KIND. | |
4701 | (c_finish_oacc_parallel, c_finish_oacc_kernels) | |
4702 | (c_finish_oacc_data): New functions. | |
4703 | (c_finish_omp_clauses): Handle OMP_CLAUSE__CACHE_, | |
4704 | OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS, | |
4705 | OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, | |
4706 | OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_GANG, | |
4707 | OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, and OMP_CLAUSE_MAP's | |
4708 | GOMP_MAP_FORCE_DEVICEPTR. | |
4709 | ||
adfac8df JJ |
4710 | 2015-01-09 Michael Collison <michael.collison@linaro.org> |
4711 | ||
4712 | * c-array-notation.c: Include hash-set.h, machmode.h, | |
4713 | vec.h, double-int.h, input.h, alias.h, symtab.h, options.h | |
4714 | fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h. | |
4715 | * c-aux-info.c: Ditto. | |
4716 | * c-convert.c: Ditto. | |
4717 | * c-decl.c: Ditto. | |
4718 | * c-errors.c: Ditto. | |
4719 | * c-lang.c: Dittoxs. | |
4720 | * c-objc-common.c: Ditto. | |
4721 | * c-parser.c: Ditto. | |
4722 | * c-typeck.c: Include hash-set.h, machmode.h, | |
4723 | vec.h, double-int.h, input.h, alias.h, symtab.h, options.h | |
4724 | fold-const.h, wide-int.h, inchash.h, real.h and | |
4725 | fixed-value.h due to flattening of tree.h. | |
4726 | ||
2cc901dc MP |
4727 | 2015-01-07 Marek Polacek <polacek@redhat.com> |
4728 | ||
4729 | PR c/64417 | |
4730 | * c-typeck.c (process_init_element): Disallow initialization of | |
4731 | a flexible array member with a string constant if the structure | |
4732 | is in an array. | |
4733 | ||
5624e564 JJ |
4734 | 2015-01-05 Jakub Jelinek <jakub@redhat.com> |
4735 | ||
e5341100 JJ |
4736 | PR sanitizer/64344 |
4737 | * c-typeck.c (convert_for_assignment, c_finish_return): For | |
4738 | -fsanitize=float-cast-overflow casts from REAL_TYPE to integer/enum | |
4739 | types also set in_late_binary_op around convert call. | |
4740 | * c-convert.c (convert): For -fsanitize=float-cast-overflow REAL_TYPE | |
4741 | to integral type casts, if not in_late_binary_op, pass c_fully_fold | |
4742 | result on expr as last argument to ubsan_instrument_float_cast, | |
4743 | if in_late_binary_op, don't use c_save_expr but save_expr. | |
4744 | ||
5624e564 JJ |
4745 | Update copyright years. |
4746 | ||
5bd012f8 MP |
4747 | 2015-01-05 Marek Polacek <polacek@redhat.com> |
4748 | ||
4749 | PR c/64423 | |
4750 | * c-typeck.c (build_array_ref): Pass loc down to | |
4751 | warn_array_subscript_with_type_char. | |
4752 | ||
3f8257db | 4753 | 2014-12-20 Martin Uecker <uecker@eecs.berkeley.edu> |
768952be MU |
4754 | |
4755 | * c-typeck.c: New behavious for pointers to arrays with qualifiers | |
8e745a17 | 4756 | (common-pointer-type): For pointers to arrays take qualifiers from |
768952be | 4757 | element type. |
8e745a17 | 4758 | (build_conditional_expr): Add warnings for lost qualifiers. |
768952be | 4759 | (comp-target-types): Allow pointers to arrays with different qualifiers. |
8e745a17 | 4760 | (convert-for-assignment): Adapt warnings for discarded qualifiers. Add |
768952be | 4761 | WARNING_FOR_QUALIFIERS macro and rename WARN_FOR_QUALIFIERS |
8e745a17 | 4762 | to PEDWARN_FOR_QUALIFIERS. |
768952be | 4763 | |
8f94a8c4 JJ |
4764 | 2014-12-17 Jakub Jelinek <jakub@redhat.com> |
4765 | ||
4766 | PR sanitizer/64289 | |
4767 | * c-convert.c: Include ubsan.h. | |
4768 | (convert): For real -> integral casts and | |
4769 | -fsanitize=float-cast-overflow don't call convert_to_integer, but | |
4770 | instead instrument the float cast directly. | |
4771 | ||
b731b390 JJ |
4772 | 2014-11-29 Jakub Jelinek <jakub@redhat.com> |
4773 | ||
4774 | * c-typeck.c (convert_lvalue_to_rvalue, build_atomic_assign, | |
4775 | c_finish_stmt_expr): Remove NULL last argument from | |
4776 | create_tmp_var_raw and create_tmp_var calls. | |
4777 | * c-array-notation.c (fix_builtin_array_notation_fn, | |
4778 | build_array_notation_expr, fix_conditional_array_notations_1, | |
4779 | fix_array_notation_expr, fix_array_notation_call_expr): Likewise. | |
4780 | ||
541e35a6 MP |
4781 | 2014-11-28 Marek Polacek <polacek@redhat.com> |
4782 | ||
4783 | PR c/63862 | |
4784 | * c-typeck.c (build_binary_op) <RSHIFT_EXPR, LSHIFT_EXPR>: Don't | |
4785 | convert the right operand to integer type. | |
4786 | ||
b286be94 MP |
4787 | 2014-11-25 Marek Polacek <polacek@redhat.com> |
4788 | ||
4789 | PR c/63877 | |
4790 | * c-decl.c (start_function): Disable -Wmissing-declarations warning | |
4791 | for inline functions. | |
4792 | ||
aa7da51a JJ |
4793 | 2014-11-21 Jakub Jelinek <jakub@redhat.com> |
4794 | ||
4795 | PR target/63764 | |
4796 | * c-typeck.c (build_array_ref): Adjust | |
4797 | convert_vector_to_pointer_for_subscript caller. If it returns true, | |
4798 | call non_lvalue_loc on the result. | |
4799 | ||
d876207f RB |
4800 | 2014-11-11 Richard Biener <rguenther@suse.de> |
4801 | ||
4802 | * c-decl.c (c_init_decl_processing): Do not set pedantic_lvalues | |
4803 | to true. | |
4804 | ||
e5e44252 AK |
4805 | 2014-11-10 Andi Kleen <ak@linux.intel.com> |
4806 | ||
4807 | PR c/60804 | |
4808 | * c-parser.c (c_parser_statement_after_labels): Call | |
4809 | check_no_cilk. | |
4810 | (c_parser_if_statement): Dito. | |
4811 | (c_parser_switch_statement): Dito. | |
4812 | (c_parser_while_statement): Dito. | |
4813 | (c_parser_do_statement): Dito. | |
4814 | (c_parser_for_statement): Dito. | |
4815 | * c-typeck.c (c_finish_loop): Dito. | |
4816 | ||
13c21655 PC |
4817 | 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com> |
4818 | ||
4819 | * c-typeck.c (build_binary_op): Use OPT_Wshift_count_negative and | |
4820 | OPT_Wshift_count_overflow in the warnings. | |
4821 | ||
2d51fcef MP |
4822 | 2014-10-30 Marek Polacek <polacek@redhat.com> |
4823 | ||
4824 | * c-objc-common.c (c_tree_printer) <case 'T'>: For a typedef name, | |
4825 | print the stripped version as well, if they're not the same. | |
4826 | ||
ef4bddc2 RS |
4827 | 2014-10-29 Richard Sandiford <richard.sandiford@arm.com> |
4828 | ||
4829 | * c-decl.c, c-tree.h, c-typeck.c: Remove redundant enum from | |
4830 | machine_mode. | |
4831 | ||
c582198b AM |
4832 | 2014-10-28 Andrew MacLeod <amacleod@redhat.com> |
4833 | ||
4834 | * c-decl.c: Adjust include files. | |
4835 | * c-parser.c: Ditto. | |
4836 | ||
ddc8de03 PM |
4837 | 2014-10-27 Phil Muldoon <pmuldoon@redhat.com> |
4838 | Tom Tromey <tromey@redhat.com> | |
4839 | ||
4840 | * c-tree.h (enum c_oracle_request): New. | |
4841 | (c_binding_oracle_function): New typedef. | |
4842 | (c_binding_oracle, c_pushtag, c_bind): Declare. | |
4843 | * c-decl.c (c_binding_oracle): New global. | |
4844 | (I_SYMBOL_CHECKED): New macro. | |
4845 | (i_symbol_binding): New function. | |
4846 | (I_SYMBOL_BINDING, I_SYMBOL_DECL): Redefine. | |
4847 | (I_TAG_CHECKED): New macro. | |
4848 | (i_tag_binding): New function. | |
4849 | (I_TAG_BINDING, I_TAG_DECL): Redefine. | |
4850 | (I_LABEL_CHECKED): New macro. | |
4851 | (i_label_binding): New function. | |
4852 | (I_LABEL_BINDING, I_LABEL_DECL): Redefine. | |
4853 | (c_print_identifier): Save and restore c_binding_oracle. | |
4854 | (c_pushtag, c_bind): New functions. | |
4855 | ||
60393bbc AM |
4856 | 2014-10-27 Andrew MacLeod <amacleod@redhat.com> |
4857 | ||
4858 | * c-typeck.c: Adjust include files. | |
4859 | ||
d723bb7c MLI |
4860 | 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org> |
4861 | ||
4862 | PR c++/53061 | |
4863 | * c-objc-common.c (c_objc_common_init): Do not do diagnostics | |
4864 | initialization here... | |
4865 | (c_initialize_diagnostics): ... but here. Set defaults after | |
4866 | building pretty-printer. | |
4867 | ||
1bc5a451 MP |
4868 | 2014-10-23 Marek Polacek <polacek@redhat.com> |
4869 | ||
4870 | PR c/63626 | |
4871 | * c-decl.c (pop_scope): Don't print warning in external_scope. | |
4872 | ||
4435bb92 MP |
4873 | 2014-10-19 Marek Polacek <polacek@redhat.com> |
4874 | ||
4875 | PR c/63567 | |
4876 | * c-typeck.c (output_init_element): Allow initializing objects with | |
4877 | static storage duration with compound literals even in C99 and add | |
4878 | pedwarn for it. | |
4879 | ||
7278465e MP |
4880 | 2014-10-17 Marek Polacek <polacek@redhat.com> |
4881 | ||
4882 | PR c/63567 | |
4883 | * c-typeck.c (digest_init): Allow initializing objects with static | |
4884 | storage duration with compound literals even in C99 and add pedwarn | |
4885 | for it. | |
4886 | ||
d9b7be2e MP |
4887 | 2014-10-17 Marek Polacek <polacek@redhat.com> |
4888 | ||
4889 | PR c/63543 | |
4890 | * c-tree.h (C_TYPE_ERROR_REPORTED): Define. | |
4891 | * c-typeck.c (build_indirect_ref): Don't print the "dereferencing..." | |
4892 | error multiple times. Print the type. | |
4893 | ||
f406ae1f MP |
4894 | 2014-10-17 Marek Polacek <polacek@redhat.com> |
4895 | ||
4896 | PR c/63549 | |
4897 | * c-typeck.c (build_array_ref): Bail if the index in an incomplete | |
4898 | type. | |
4899 | ||
92574c7c MP |
4900 | 2014-10-17 Marek Polacek <polacek@redhat.com> |
4901 | ||
4902 | * c-decl.c (grokdeclarator): Use OPT_Wimplicit_int unconditionally. | |
4903 | (start_function): Use OPT_Wimplicit_int instead of 0. | |
4904 | (store_parm_decls_oldstyle): Likewise. | |
4905 | ||
1bc4a978 MT |
4906 | 2014-10-17 Alan Modra <amodra@gmail.com> |
4907 | ||
4908 | PR middle-end/61848 | |
4909 | * c-decl.c (merge_decls): Don't merge section name or tls model | |
4910 | to newdecl symtab node, instead merge to olddecl. Override | |
4911 | existing olddecl section name. Set tls_model for all thread-local | |
4912 | vars, not just OMP thread-private ones. Remove incorrect comment. | |
4913 | ||
83685514 AM |
4914 | 2014-10-16 Andrew MacLeod <amacleod@redhat.com> |
4915 | ||
4916 | * c-decl.c: Adjust include files. | |
4917 | ||
78a7c317 DD |
4918 | 2014-10-14 DJ Delorie <dj@redhat.com> |
4919 | ||
4920 | * c-parser.c (c_parse_init): Add RID entries for each __intN. | |
4921 | (c_token_starts_typename): Check all __intN, not just __int128. | |
4922 | (c_token_starts_declspecs): Likewise. | |
4923 | (c_parser_declspecs): Likewise. | |
4924 | (c_parser_attribute_any_word): Likewise. | |
4925 | (c_parser_objc_selector): Likewise. | |
4926 | * c-tree.h (c_typespec_keyword): cts_int128 -> cts_int_n. | |
4927 | (struct c_declspecs): Add int_n_idx field to record *which* __intN | |
4928 | is specified. | |
4929 | * c-decl.c (declspecs_add_type): Check for all __intN, not just | |
4930 | __int128. | |
4931 | (finish_declspecs): Likewise. | |
4932 | ||
74d98c1e AB |
4933 | 2014-10-13 Anthony Brandon <anthony.brandon@gmail.com> |
4934 | ||
8e745a17 | 4935 | * c-parser.c (c_parser_all_labels): New function to replace |
74d98c1e | 4936 | the duplicate code. |
8e745a17 | 4937 | (c_parser_statement): Call the new function. |
74d98c1e | 4938 | |
84937de2 MP |
4939 | 2014-10-09 Marek Polacek <polacek@redhat.com> |
4940 | ||
4941 | PR c/63480 | |
4942 | * c-typeck.c (pop_init_level): Don't warn about initializing | |
4943 | with { }. | |
4944 | ||
0382aaa0 MP |
4945 | 2014-10-07 Marek Polacek <polacek@redhat.com> |
4946 | ||
4947 | PR c/59717 | |
4948 | * c-decl.c (header_for_builtin_fn): New function. | |
4949 | (implicitly_declare): Suggest which header to include. | |
4950 | ||
7a0ca710 MP |
4951 | 2014-10-07 Marek Polacek <polacek@redhat.com> |
4952 | ||
4953 | * c-convert.c (convert): Use error_operand_p. | |
4954 | * c-typeck.c (require_complete_type): Likewise. | |
4955 | (really_atomic_lvalue): Likewise. | |
4956 | (digest_init): Likewise. | |
4957 | (handle_omp_array_sections_1): Likewise. | |
4958 | ||
6bc8a126 MP |
4959 | 2014-10-03 Marek Polacek <polacek@redhat.com> |
4960 | ||
4961 | PR c/63453 | |
4962 | * c-decl.c (pop_scope): Don't warn about "inline function declared | |
4963 | but never defined" for functions marked with gnu_inline attribute. | |
4964 | ||
d90c0a59 JJ |
4965 | 2014-09-25 Jakub Jelinek <jakub@redhat.com> |
4966 | ||
4967 | PR c++/63249 | |
4968 | * c-parser.c (c_parser_omp_variable_list): Call mark_exp_read | |
4969 | on low_bound and length. | |
4970 | ||
083e891e MP |
4971 | 2014-09-24 Marek Polacek <polacek@redhat.com> |
4972 | ||
4973 | PR c/61405 | |
4974 | PR c/53874 | |
4975 | * c-parser.c: Don't define CPP_KEYWORD. | |
4976 | (c_parser_switch_statement): Pass original type to c_finish_case. | |
4977 | * c-tree.h (c_finish_case): Update declaration. | |
4978 | * c-typeck.c (c_finish_case): Add TYPE parameter. Pass it | |
4979 | conditionally to c_do_switch_warnings. | |
4980 | ||
8d95fe25 MP |
4981 | 2014-09-03 Marek Polacek <polacek@redhat.com> |
4982 | ||
4983 | PR c/62024 | |
4984 | * c-parser.c (c_parser_static_assert_declaration_no_semi): Strip no-op | |
4985 | conversions. | |
4986 | ||
9a771876 JJ |
4987 | 2014-09-02 Jakub Jelinek <jakub@redhat.com> |
4988 | Balaji V. Iyer <balaji.v.iyer@intel.com> | |
4989 | Igor Zamyatin <igor.zamyatin@intel.com> | |
4990 | ||
4991 | * c-parser.c (c_parser_cilk_for): New function. | |
4992 | (c_parser_cilk_grainsize): Likewise. | |
4993 | (c_get_temp_regvar): Likewise. | |
4994 | (c_parser_statement_after_labels): Added RID_CILK_FOR case. | |
4995 | (c_parser_pragma): Added PRAGMA_CILK_GRAINSIZE case. | |
4996 | (c_parser_omp_for_loop): Added CILK_FOR and CILK_SIMD checks. | |
4997 | * c-typeck.c (c_finish_omp_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ | |
4998 | case. | |
4999 | ||
b7679d96 CG |
5000 | 2014-08-27 Chen Gang <gang.chen.5i5j@gmail.com> |
5001 | ||
5002 | * c-aux-info.c (gen_type): Resize 'buff' from 10 to 23 bytes, | |
5003 | with using HOST_WIDE_INT without truncation to 'int' | |
5004 | ||
59ea0364 MP |
5005 | 2014-08-22 Marek Polacek <polacek@redhat.com> |
5006 | ||
5007 | PR c++/62199 | |
5008 | * c-typeck.c (parser_build_binary_op): Adjust call to | |
5009 | warn_logical_not_parentheses. | |
5010 | ||
671a475e IZ |
5011 | 2014-08-22 Igor Zamyatin <igor.zamyatin@intel.com> |
5012 | ||
5013 | PR other/62008 | |
5014 | * c-parser.c (c_parser_array_notation): Check for correct | |
5015 | type of an array added. | |
5016 | ||
04159acf MP |
5017 | 2014-08-19 Marek Polacek <polacek@redhat.com> |
5018 | ||
5019 | PR c++/62153 | |
5020 | * c-typeck.c (build_binary_op): If either operand of a comparison | |
5021 | is a boolean expression, call maybe_warn_bool_compare. | |
5022 | ||
c77935ee PP |
5023 | 2014-08-19 Patrick Palka <ppalka@gcc.gnu.org> |
5024 | ||
5025 | PR c/45584 | |
5026 | * c-typeck.c (build_c_cast): Do a conversion even when the | |
5027 | TYPE_MAIN_VARIANTs are the same. | |
5028 | ||
35aff4fb MP |
5029 | 2014-08-19 Marek Polacek <polacek@redhat.com> |
5030 | ||
5031 | * c-decl.c (diagnose_mismatched_decls): Unconditionally call | |
5032 | pedwarn_c99 instead of pedwarn. | |
5033 | (grokfield): Likewise. | |
5034 | (warn_defaults_to): New function. | |
5035 | (grokdeclarator): Call warn_defaults_to instead of pedwarn_c99. | |
5036 | Unconditionally call pedwarn_c99 instead of pedwarn. | |
5037 | (start_function): Call warn_defaults_to instead of pedwarn_c99. | |
5038 | (declspecs_add_scspec): Call pedwarn_c99 instead of pedwarn, don't | |
5039 | check flag_isoc11 before. | |
5040 | * c-errors.c (pedwarn_c99): Change the return type to bool. | |
5041 | Handle -Wc99-c11-compat. | |
5042 | * c-parser.c (disable_extension_diagnostics): Handle | |
5043 | warn_c99_c11_compat. | |
5044 | (restore_extension_diagnostics): Likewise. | |
5045 | (c_parser_static_assert_declaration_no_semi): Call pedwarn_c99 | |
5046 | instead of pedwarn, don't check flag_isoc11 before. | |
5047 | (c_parser_declspecs): Likewise. | |
5048 | (c_parser_alignas_specifier): Likewise. | |
5049 | (c_parser_alignof_expression): Likewise. | |
5050 | (c_parser_generic_selection): Likewise. | |
5051 | * c-tree.h (pedwarn_c99): Update declaration. | |
5052 | * c-typeck.c (c_finish_return): Call pedwarn or warning_at instead | |
5053 | of pedwarn_c99. | |
5054 | ||
177cce46 MP |
5055 | 2014-08-19 Marek Polacek <polacek@redhat.com> |
5056 | ||
5057 | * c-decl.c (warn_variable_length_array): Pass OPT_Wvla unconditionally | |
5058 | to pedwarn_c90. | |
5059 | * c-errors.c: Include "opts.h". | |
5060 | (pedwarn_c90): Rewrite to handle -Wno-c90-c99-compat better. | |
5061 | * c-parser.c (disable_extension_diagnostics): Handle negative value | |
5062 | of warn_c90_c99_compat, too. | |
5063 | (restore_extension_diagnostics): Likewise. | |
5064 | (c_parser_compound_statement_nostart): Pass | |
5065 | OPT_Wdeclaration_after_statement unconditionally to pedwarn_c90. | |
5066 | ||
6dc99c33 MP |
5067 | 2014-08-12 Marek Polacek <polacek@redhat.com> |
5068 | ||
5069 | * c-parser.c (c_parser_postfix_expression) <case RID_FUNCTION_NAME>: | |
5070 | Add pedwarn. | |
5071 | (c_parser_postfix_expression) <case RID_PRETTY_FUNCTION_NAME>: | |
5072 | Likewise. | |
5073 | (c_parser_postfix_expression) <case RID_C99_FUNCTION_NAME>: Likewise. | |
5074 | ||
3f8257db | 5075 | 2014-08-10 Marek Polacek <polacek@redhat.com> |
f3bede71 MP |
5076 | |
5077 | PR c/51849 | |
5078 | * c-decl.c (build_array_declarator): Remove check for !flag_isoc99. | |
5079 | Call pedwarn_c90 instead of pedwarn. | |
5080 | (check_bitfield_type_and_width): Likewise. | |
5081 | (declspecs_add_qual): Likewise. | |
5082 | (declspecs_add_type): Likewise. | |
5083 | (warn_variable_length_array): Unify function for -pedantic and -Wvla. | |
5084 | Adjust to only call pedwarn_c90. | |
5085 | (grokdeclarator): Remove pedantic && !flag_isoc99 check. Call | |
5086 | pedwarn_c90 instead of pedwarn. | |
5087 | * c-errors.c (pedwarn_c90): Handle -Wc90-c99-compat. | |
5088 | * c-parser.c (disable_extension_diagnostics): Handle | |
5089 | warn_c90_c99_compat. | |
5090 | (restore_extension_diagnostics): Likewise. | |
5091 | (c_parser_enum_specifier): Remove check for !flag_isoc99. Call | |
5092 | pedwarn_c90 instead of pedwarn. | |
5093 | (c_parser_initelt): Likewise. | |
5094 | (c_parser_postfix_expression): Likewise. | |
5095 | (c_parser_postfix_expression_after_paren_type): Likewise. | |
5096 | (c_parser_compound_statement_nostart): Remove check for !flag_isoc99. | |
5097 | * c-tree.h: Fix formatting. | |
5098 | * c-typeck.c (build_array_ref): Remove check for !flag_isoc99. Call | |
5099 | pedwarn_c90 instead of pedwarn. | |
5100 | ||
9f25a338 TS |
5101 | 2014-08-07 Trevor Saunders <tsaunders@mozilla.com> |
5102 | ||
5103 | * c-typeck.c: Remove include of pointer-set.h. | |
5104 | ||
044331a8 MP |
5105 | 2014-08-07 Marek Polacek <polacek@redhat.com> |
5106 | ||
5107 | * c-typeck.c (pointer_diff): Remove P - (P + CST) optimization. | |
5108 | ||
b787e7a2 TS |
5109 | 2014-08-02 Trevor Saunders <tsaunders@mozilla.com> |
5110 | ||
5111 | * c-typeck.c: Use hash_map instead of pointer_map. | |
5112 | ||
6e2830c3 TS |
5113 | 2014-08-02 Trevor Saunders <tsaunders@mozilla.com> |
5114 | ||
5115 | * c-decl.c: Use hash_set instead of pointer_set. | |
5116 | ||
a7ee52fb IZ |
5117 | 2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com> |
5118 | ||
5119 | PR middle-end/61455 | |
5120 | * c-array-notation.c (expand_array_notations): Handling | |
5121 | of DECL_EXPR added. | |
5122 | ||
b4dfdc11 MG |
5123 | 2014-07-31 Marc Glisse <marc.glisse@inria.fr> |
5124 | ||
5125 | PR c++/60517 | |
5126 | * c-typeck.c (c_finish_return): Return 0 instead of the address of | |
5127 | a local variable. | |
5128 | ||
976d5a22 TT |
5129 | 2014-07-30 Tom Tromey <tromey@redhat.com> |
5130 | ||
5131 | * c-typeck.c (struct constructor_stack) <designator_depth>: New | |
5132 | field. | |
5133 | (really_start_incremental_init, push_init_level): Initialize | |
5134 | designator_depth. | |
5135 | (pop_init_level): Set global designator_depth. | |
5136 | (process_init_element): Check for designated_init attribute. | |
5137 | ||
30281de2 MP |
5138 | 2014-07-20 Marek Polacek <polacek@redhat.com> |
5139 | ||
5140 | PR c/61852 | |
5141 | * c-decl.c (implicit_decl_warning): Add location_t parameter. Use it. | |
5142 | (implicitly_declare): Pass location to implicit_decl_warning. | |
5143 | ||
b108f48f JJ |
5144 | 2014-07-14 Jakub Jelinek <jakub@redhat.com> |
5145 | ||
5146 | PR middle-end/61294 | |
5147 | * c-parser.c (c_parser_expr_list): Add new argument literal_zero_mask. | |
5148 | If non-NULL, call c_parser_check_literal_zero. | |
5149 | (c_parser_check_literal_zero): New function. | |
5150 | (c_parser_postfix_expression_after_primary): Adjust | |
5151 | c_parser_expr_list caller, handle -Wmemset-transposed-args. | |
5152 | ||
773ec47f MP |
5153 | 2014-07-06 Marek Polacek <polacek@redhat.com> |
5154 | ||
5155 | PR c/6940 | |
5156 | * c-decl.c (grokdeclarator): Set C_ARRAY_PARAMETER. | |
5157 | * c-tree.h (C_ARRAY_PARAMETER): Define. | |
5158 | * c-typeck.c (c_expr_sizeof_expr): Warn when using sizeof on an array | |
5159 | function parameter. | |
5160 | ||
22e1cf1c | 5161 | 2014-07-02 Jan Hubicka <hubicka@ucw.cz> |
3f8257db | 5162 | Chen Gang <gang.chen.5i5j@gmail.com> |
22e1cf1c JH |
5163 | |
5164 | * c-decl.c (duplicate_decls): CLear DECL_STRUCT_FUNCTION before | |
5165 | releasing symbol. | |
5166 | ||
52ec0ea3 MP |
5167 | 2014-07-01 Marek Polacek <polacek@redhat.com> |
5168 | ||
5169 | * c-typeck.c (convert_for_assignment): Pass OPT_Wint_conversion | |
5170 | instead of 0 to WARN_FOR_ASSIGNMENT. | |
5171 | ||
d5c3d343 MP |
5172 | 2014-07-01 Marek Polacek <polacek@redhat.com> |
5173 | ||
5174 | PR c/58286 | |
5175 | * c-typeck.c (convert_for_assignment): Pass | |
5176 | OPT_Wincompatible_pointer_types instead of 0 to WARN_FOR_ASSIGNMENT. | |
5177 | ||
6a7253a4 MP |
5178 | 2014-06-30 Marek Polacek <polacek@redhat.com> |
5179 | ||
5180 | * c-decl.c (grokdeclarator): Don't instrument VLAs if the function | |
5181 | has no_sanitize_undefined attribute. | |
5182 | ||
5e88a8f4 IZ |
5183 | 2014-06-30 Igor Zamyatin <igor.zamyatin@intel.com> |
5184 | ||
5185 | PR middle-end/57541 | |
5186 | * c-array-notation.c (fix_builtin_array_notation_fn): | |
5187 | Check for 0 arguments in builtin call. Check that bultin argument is | |
5188 | correct. | |
5189 | * c-parser.c (c_parser_array_notation): Check for incorrect initial | |
5190 | index. | |
5191 | ||
9698b078 SH |
5192 | 2014-06-27 Sebastian Huber <sebastian.huber@embedded-brains.de> |
5193 | ||
5194 | * c-parser.c (c_parser_declaration_or_fndef): Discard all type | |
5195 | qualifiers in __auto_type for atomic types. | |
5196 | (c_parser_typeof_specifier): Discard all type qualifiers in | |
5197 | __typeof__ for atomic types. | |
5198 | ||
6e07c515 MP |
5199 | 2014-06-25 Marek Polacek <polacek@redhat.com> |
5200 | ||
5201 | PR c/61162 | |
5202 | * c-parser.c (c_parser_statement_after_labels): Pass the location of | |
5203 | the return expression to c_finish_return. | |
5204 | ||
da6f124d JJ |
5205 | 2014-06-25 Jakub Jelinek <jakub@redhat.com> |
5206 | ||
5207 | * c-typeck.c (c_finish_omp_clauses): Make sure | |
5208 | OMP_CLAUSE_LINEAR_STEP has correct type. | |
5209 | ||
c203e8a7 TS |
5210 | 2014-06-24 Trevor Saunders <tsaunders@mozilla.com> |
5211 | ||
5212 | * c-decl.c: Adjust. | |
5213 | ||
56ad0e38 JJ |
5214 | 2014-06-24 Jakub Jelinek <jakub@redhat.com> |
5215 | ||
5216 | * c-parser.c (c_parser_omp_for_loop): For | |
5217 | #pragma omp parallel for simd move lastprivate clause from parallel | |
5218 | to for rather than simd. | |
5219 | ||
47c2554f MP |
5220 | 2014-06-23 Marek Polacek <polacek@redhat.com> |
5221 | ||
5222 | * c-typeck.c (parser_build_binary_op): Don't call | |
5223 | warn_logical_not_parentheses if the RHS is TRUTH_NOT_EXPR. | |
5224 | ||
56363ffd JH |
5225 | 2014-06-15 Jan Hubicka <hubicka@ucw.cz> |
5226 | ||
5227 | * c-parser.c (c_parser_omp_threadprivate): Likewise. | |
5228 | * c-decl.c (merge_decls): Likewise. | |
5229 | ||
d7ff7ae5 MP |
5230 | 2014-06-09 Marek Polacek <polacek@redhat.com> |
5231 | ||
5232 | PR c/36446 | |
5233 | * c-typeck.c (error_init): Call inform instead of error_at. | |
5234 | (pedwarn_init): Call inform instead of pedwarn. | |
5235 | (warning_init): Call inform instead of warning_at. | |
5236 | ||
24d047a3 JH |
5237 | 2014-06-07 Jan Hubicka <hubicka@ucw.cz> |
5238 | ||
5239 | * c-decl.c (merge_decls): Use set_decl_section_name. | |
5240 | (duplicate_decls): Remove node if it exists. | |
5241 | ||
9bac5cbb G |
5242 | 2014-06-05 S. Gilles <sgilles@terpmail.umd.edu> |
5243 | ||
5244 | PR c/53119 | |
5245 | * c-typeck.c (push_init_level, process_init_element, | |
5246 | pop_init_level): Correct check for zero initialization, move | |
5247 | missing brace warning to respect zero initialization. | |
5248 | ||
8ffcdea8 MP |
5249 | 2014-06-05 Marek Polacek <polacek@redhat.com> |
5250 | ||
5251 | PR c/56724 | |
5252 | * c-typeck.c (convert_for_assignment): Use expr_loc for ic_argpass. | |
5253 | ||
742938c9 MP |
5254 | 2014-06-05 Marek Polacek <polacek@redhat.com> |
5255 | ||
5256 | PR c/49706 | |
5257 | * c-typeck.c (parser_build_binary_op): Warn when logical not is used | |
ab20d992 | 5258 | on the left hand side operand of a comparison. |
742938c9 | 5259 | |
6447c55d MP |
5260 | 2014-06-05 Marek Polacek <polacek@redhat.com> |
5261 | ||
5262 | PR c/48062 | |
5263 | * c-decl.c (warn_if_shadowing): Call inform instead of warning_at. | |
5264 | Print note only if the warning was printed. | |
5265 | ||
9dc7743c IZ |
5266 | 2014-06-04 Igor Zamyatin <igor.zamyatin@intel.com> |
5267 | ||
5268 | PR c/58942 | |
5269 | * c-array-notation.c (fix_builtin_array_notation_fn): Handle the case | |
5270 | with a pointer. | |
5271 | ||
fedfecef MP |
5272 | 2014-06-03 Marek Polacek <polacek@redhat.com> |
5273 | ||
5274 | PR c/60439 | |
5275 | * c-parser.c (c_parser_switch_statement): Pass explicit_cast_p to | |
5276 | c_start_case. | |
5277 | * c-tree.h (c_start_case): Update. | |
5278 | * c-typeck.c (c_start_case): Add new boolean parameter. Warn if | |
5279 | switch condition has boolean value. | |
5280 | ||
9b2b7279 AM |
5281 | 2014-06-02 Andrew MacLeod <amacleod@redhat.com> |
5282 | ||
5283 | * c-decl.c: Include builtins.h. | |
5284 | * c-parser.c: Likewise. | |
5285 | ||
5c1bc275 MP |
5286 | 2014-05-27 Marek Polacek <polacek@redhat.com> |
5287 | ||
5288 | PR c/56724 | |
5289 | * c-typeck.c (convert_arguments): Get location of a parameter. Change | |
5290 | error and warning calls to error_at and warning_at. Pass location of | |
5291 | a parameter to it. Call warning_at with OPT_Wtraditional_conversion. | |
5292 | (convert_for_assignment): Add parameter to WARN_FOR_ASSIGNMENT and | |
5293 | WARN_FOR_QUALIFIERS. Pass expr_loc to those. | |
5294 | ||
97563bc8 IZ |
5295 | 2014-05-26 Igor Zamyatin <igor.zamyatin@intel.com> |
5296 | ||
5297 | PR c/61191 | |
5298 | * c-array-notation.c (fix_builtin_array_notation_fn): Check invalid | |
5299 | function parameters. | |
5300 | ||
aede2c10 JH |
5301 | 2014-05-23 Jan Hubicka <hubicka@ucw.cz> |
5302 | ||
5303 | * c-decl.c (merge_decls): Preserve symtab node pointers. | |
5304 | (duplicate_decls): Free new decl. | |
5305 | ||
edbba2ce TS |
5306 | 2014-05-23 Thomas Schwinge <thomas@codesourcery.com> |
5307 | ||
f3316c6d TS |
5308 | * c-typeck.c (c_finish_omp_clauses): Remove duplicated variable |
5309 | initialization. | |
5310 | ||
edbba2ce TS |
5311 | * c-parser.c (c_parser_omp_target): Return bool values. |
5312 | ||
68c81f24 TS |
5313 | 2014-05-22 Thomas Schwinge <thomas@codesourcery.com> |
5314 | ||
5315 | * c-parser.c (c_parser_omp_clause_thread_limit): Rename | |
5316 | num_teams_loc variable to num_thread_limit_loc. | |
5317 | ||
632f2871 RS |
5318 | 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com> |
5319 | ||
5320 | * c-array-notation.c (expand_array_notations): Use void_node | |
5321 | instead of void_zero_node. | |
5322 | ||
766090c2 TS |
5323 | 2014-05-17 Trevor Saunders <tsaunders@mozilla.com> |
5324 | ||
5325 | * c-decl.c (finish_struct): Adjust. | |
5326 | (finish_enum): Likewise. | |
5327 | (bind): Adjust. | |
5328 | (record_inline_static): Likewise. | |
5329 | (push_scope): Likewise. | |
5330 | (make_label): Likewise. | |
5331 | (lookup_label_for_goto): Likewise. | |
5332 | (finish_struct): Likewise. | |
5333 | (finish_enum): Likewise. | |
5334 | (store_parm_decls): Likewise. | |
5335 | (c_push_function_context): Likewise. | |
5336 | * c-lang.h: Remove usage of variable_size gty attribute. | |
5337 | * c-parser.c (c_parse_init): Adjust. | |
5338 | (c_parse_file): Likewise. | |
5339 | ||
2b107f6b MP |
5340 | 2014-05-13 Marek Polacek <polacek@redhat.com> |
5341 | ||
5342 | PR c/61162 | |
5343 | * c-typeck.c (convert_for_assignment): Pass location to | |
5344 | WARN_FOR_ASSIGNMENT instead of input_location. | |
5345 | ||
d033409e MP |
5346 | 2014-05-10 Marek Polacek <polacek@redhat.com> |
5347 | ||
5348 | * c-parser.c (c_parser_declaration_or_fndef): Pass init_loc to | |
5349 | maybe_warn_string_init. | |
5350 | (c_parser_postfix_expression_after_paren_type): Pass type_loc to | |
5351 | maybe_warn_string_init. | |
5352 | * c-tree.h (maybe_warn_string_init): Update declaration. | |
5353 | * c-typeck.c (maybe_warn_string_init): Add location parameter. | |
5354 | Call pedwarn_init with loc instead of with input_location. | |
5355 | (digest_init): Pass init_loc to maybe_warn_string_init. | |
5356 | (pop_init_level): Call pedwarn_init with loc instead of with | |
5357 | input_location. | |
5358 | (set_init_index): Likewise. | |
5359 | (process_init_element): Likewise. | |
5360 | ||
ea58ef42 MP |
5361 | 2014-05-09 Marek Polacek <polacek@redhat.com> |
5362 | ||
5363 | PR c/61096 | |
5364 | * c-parser.c (c_parser_braced_init): Pass brace_loc to push_init_level. | |
5365 | (c_parser_initelt): Pass location to set_init_label. Pass array index | |
5366 | location to set_init_index. | |
5367 | * c-tree.h (push_init_level): Update declaration. | |
5368 | (pop_init_level): Likewise. | |
5369 | (set_init_index): Likewise. | |
5370 | (set_init_label): Likewise. | |
5371 | * c-typeck.c (error_init): Add location parameter. Call error_at | |
5372 | instead of error. | |
5373 | (digest_init): Pass init_loc to error_init. | |
5374 | (really_start_incremental_init): | |
5375 | (push_init_level): Add location parameter. Pass loc to pop_init_level | |
5376 | and error_init. | |
5377 | (pop_init_level): Likewise. | |
5378 | (set_designator): Add location parameter. Pass loc to pop_init_level, | |
5379 | push_init_level, and error_init. | |
5380 | (set_init_index): Add location parameter. Pass loc to error_init and | |
5381 | set_designator. | |
5382 | (set_init_label): Likewise. | |
5383 | (output_init_element): Pass loc to error_init. | |
5384 | (process_init_element): Pass loc to error_init, pop_init_level, | |
5385 | pedwarn_init, and push_init_level. | |
5386 | ||
661a0813 MP |
5387 | 2014-05-09 Marek Polacek <polacek@redhat.com> |
5388 | ||
5389 | PR c/50459 | |
5390 | * c-parser.c (c_parser_attributes): Parse the arguments as an | |
5391 | expression-list if the attribute takes identifier. | |
5392 | ||
2793eeab MP |
5393 | 2014-05-08 Marek Polacek <polacek@redhat.com> |
5394 | ||
5395 | PR c/61053 | |
5396 | * c-decl.c (grokdeclarator): Use min_align_of_type instead of | |
5397 | TYPE_ALIGN_UNIT. | |
5398 | ||
f827930a MP |
5399 | 2014-05-08 Marek Polacek <polacek@redhat.com> |
5400 | ||
5401 | PR c/61077 | |
5402 | * c-decl.c (start_function): Warn for _Atomic-qualified return type | |
5403 | of main. | |
5404 | ||
1d60af08 KZ |
5405 | 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com> |
5406 | Mike Stump <mikestump@comcast.net> | |
5407 | Richard Sandiford <rdsandiford@googlemail.com> | |
5408 | ||
5409 | * c-decl.c (check_bitfield_type_and_width): Use TYPE_SIGN. | |
5410 | (finish_enum): Use wide-int interfaces. | |
5411 | * c-parser.c (c_parser_cilk_clause_vectorlength): Likewise. | |
5412 | * c-typeck.c (build_c_cast): Likewise. | |
5413 | (set_nonincremental_init_from_string): Likewise. | |
5414 | (c_tree_equal): Likewise. | |
5415 | ||
a0e24419 MP |
5416 | 2014-05-02 Marek Polacek <polacek@redhat.com> |
5417 | ||
5418 | PR c/25801 | |
5419 | * c-typeck.c (c_size_in_bytes): Update comment. Don't call error. | |
5420 | Return size_one_node when the type is not complete. | |
5421 | (pointer_diff): Remove comment. | |
5422 | (build_unary_op): Improve error messages. | |
5423 | ||
19fc9faa MP |
5424 | 2014-05-02 Marek Polacek <polacek@redhat.com> |
5425 | ||
5426 | * c-typeck.c (c_finish_return): Separate warning_at calls. | |
5427 | ||
63bc4e87 MP |
5428 | 2014-05-02 Marek Polacek <polacek@redhat.com> |
5429 | ||
5430 | * c-tree.h (error_init): Remove declaration. | |
5431 | (pedwarn_init): Likewise. | |
5432 | * c-typeck.c (error_init): Make static and move above. | |
5433 | (pedwarn_init): Likewise. | |
5434 | (warning_init): Move above. | |
5435 | (maybe_warn_string_init): Likewise. | |
5436 | ||
4bd2511b JL |
5437 | 2014-05-01 Jeff Law <law@redhat.com> |
5438 | ||
5439 | Revert: | |
5440 | ||
5441 | 2014-04-24 Prathamesh Kulkarni <bilbotheelffriend@gmail.com> | |
5442 | * c-parser.c (c_parser_sizeof_expression): Reorganize slightly to | |
5443 | avoid goto. | |
5444 | ||
6a358dcb MP |
5445 | 2014-05-02 Marek Polacek <polacek@redhat.com> |
5446 | ||
5447 | PR c/60784 | |
5448 | * c-typeck.c (push_init_level): Set constructor_designated to | |
5449 | p->designated for structures. | |
5450 | ||
ae5ebda4 MP |
5451 | 2014-05-01 Marek Polacek <polacek@redhat.com> |
5452 | ||
5453 | PR c/60915 | |
5454 | * c-parser.c (c_parser_declaration_or_fndef): Give better error if | |
5455 | function-definition has an attribute after the declarator. | |
5456 | ||
96b40f8d MP |
5457 | 2014-05-01 Marek Polacek <polacek@redhat.com> |
5458 | ||
5459 | PR c/60257 | |
5460 | * c-typeck.c (warning_init): Add location_t parameter. Call | |
5461 | warning_at instead of warning. | |
5462 | (push_init_level): Pass input_location to warning_init. | |
5463 | (add_pending_init): Add location_t parameter. Pass loc to | |
5464 | warning_init. | |
5465 | (set_nonincremental_init): Pass input_location to add_pending_init. | |
5466 | (set_nonincremental_init_from_string): Likewise. | |
5467 | (output_init_element): Pass loc to warning_init and to | |
5468 | add_pending_init. | |
5469 | ||
32e00768 MP |
5470 | 2014-05-01 Marek Polacek <polacek@redhat.com> |
5471 | ||
5472 | PR c/43395 | |
5473 | * c-typeck.c (c_finish_return): Distinguish between label and variable | |
5474 | when warning about returning local address. | |
5475 | ||
c9379ce2 MP |
5476 | 2014-05-01 Marek Polacek <polacek@redhat.com> |
5477 | ||
5478 | PR c/29467 | |
5479 | * c-decl.c (declspecs_add_type): Pedwarn if boolean types are used | |
5480 | in C89 mode. | |
5481 | ||
d00887e8 MP |
5482 | 2014-05-01 Marek Polacek <polacek@redhat.com> |
5483 | ||
5484 | PR c/43245 | |
5485 | * c-typeck.c (convert_for_assignment): Pass OPT_Wdiscarded_qualifiers | |
5486 | instead of 0 to WARN_FOR_QUALIFIERS. | |
5487 | ||
5436fa2e MP |
5488 | 2014-05-01 Marek Polacek <polacek@redhat.com> |
5489 | ||
5490 | PR c/56989 | |
5491 | * c-typeck.c (default_conversion): Use better location for | |
5492 | error call. | |
5493 | ||
f8ed5150 MP |
5494 | 2014-04-30 Marek Polacek <polacek@redhat.com> |
5495 | ||
5496 | * c-typeck.c (build_binary_op): Call ubsan_instrument_division | |
5497 | also when SANITIZE_FLOAT_DIVIDE is on. | |
5498 | ||
8337d1db MP |
5499 | 2014-04-30 Marek Polacek <polacek@redhat.com> |
5500 | ||
5501 | PR c/60139 | |
5502 | * c-typeck.c (output_init_element): Pass OPT_Wpedantic to pedwarn | |
5503 | and pedwarn_init. Use loc insted of input_location. | |
5504 | ||
c4bdc42f MP |
5505 | 2014-04-30 Marek Polacek <polacek@redhat.com> |
5506 | ||
5507 | PR c/60351 | |
5508 | * c-typeck.c (build_binary_op): Use location when warning about | |
5509 | shift count. | |
5510 | ||
45484dcf MP |
5511 | 2014-04-25 Marek Polacek <polacek@redhat.com> |
5512 | ||
5513 | PR c/18079 | |
5514 | * c-decl.c (diagnose_mismatched_decls): Warn for mismatched | |
5515 | always_inline/noinline and hot/cold attributes. | |
5516 | ||
34cf811f MP |
5517 | 2014-04-25 Marek Polacek <polacek@redhat.com> |
5518 | ||
5519 | PR c/60114 | |
5520 | * c-parser.c (c_parser_initelt): Pass input_location to | |
5521 | process_init_element. | |
5522 | (c_parser_initval): Pass loc to process_init_element. | |
5523 | * c-tree.h (process_init_element): Adjust declaration. | |
5524 | * c-typeck.c (push_init_level): Pass input_location to | |
5525 | process_init_element. | |
5526 | (pop_init_level): Likewise. | |
5527 | (set_designator): Likewise. | |
5528 | (output_init_element): Add location_t parameter. Pass loc to | |
5529 | digest_init. | |
5530 | (output_pending_init_elements): Pass input_location to | |
5531 | output_init_element. | |
5532 | (process_init_element): Add location_t parameter. Pass loc to | |
5533 | output_init_element. | |
5534 | ||
42056eac JJ |
5535 | 2014-04-24 Jakub Jelinek <jakub@redhat.com> |
5536 | ||
5537 | * c-parser.c (c_parser_omp_atomic): Allow seq_cst before | |
5538 | atomic-clause, allow comma in between atomic-clause and | |
5539 | seq_cst. | |
5540 | ||
e162a134 JJ |
5541 | 2014-04-22 Jakub Jelinek <jakub@redhat.com> |
5542 | ||
5543 | PR c/59073 | |
5544 | * c-parser.c (c_parser_omp_parallel): If c_parser_omp_for | |
5545 | fails, don't set OM_PARALLEL_COMBINED and return NULL. | |
5546 | ||
2f6babac IZ |
5547 | 2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com> |
5548 | ||
5549 | PR middle-end/60469 | |
5550 | * c-array-notation.c (fix_builtin_array_notation_fn): Use | |
5551 | create_tmp_var instead build_decl for creating temps. | |
5552 | (build_array_notation_expr): Likewise. | |
5553 | (fix_conditional_array_notations_1): Likewise. | |
5554 | (fix_array_notation_expr): Likewise. | |
5555 | (fix_array_notation_call_expr): Likewise. | |
5556 | ||
8edbfaa6 JJ |
5557 | 2014-03-28 Jakub Jelinek <jakub@redhat.com> |
5558 | ||
5559 | PR c++/60689 | |
5560 | * c-tree.h (c_build_function_call_vec): New prototype. | |
5561 | * c-typeck.c (build_function_call_vec): Don't call | |
5562 | resolve_overloaded_builtin here. | |
5563 | (c_build_function_call_vec): New wrapper function around | |
5564 | build_function_call_vec. Call resolve_overloaded_builtin here. | |
5565 | (convert_lvalue_to_rvalue, build_function_call, build_atomic_assign): | |
5566 | Call c_build_function_call_vec instead of build_function_call_vec. | |
5567 | * c-parser.c (c_parser_postfix_expression_after_primary): Likewise. | |
5568 | * c-decl.c (finish_decl): Likewise. | |
5569 | ||
7485aeea MLI |
5570 | 2014-03-18 Manuel López-Ibáñez <manu@gcc.gnu.org> |
5571 | ||
5572 | PR c/55383 | |
5573 | * c-typeck.c: Use correct format string in cast-qual warning | |
5574 | ||
b17a8b07 TS |
5575 | 2014-03-07 Thomas Schwinge <thomas@codesourcery.com> |
5576 | ||
5577 | * c-decl.c (c_decl_attributes): Use | |
5578 | lang_hooks.types.omp_mappable_type. | |
5579 | * c-typeck.c (c_finish_omp_clauses): Likewise. | |
5580 | ||
3af9c5e9 MP |
5581 | 2014-03-06 Marek Polacek <polacek@redhat.com> |
5582 | ||
5583 | PR c/60197 | |
5584 | * c-typeck.c (c_finish_return): Call contains_cilk_spawn_stmt instead | |
5585 | of checking tree code. | |
5586 | ||
1c9f5f33 PK |
5587 | 2014-02-19 Prathamesh Kulkarni <bilbotheelffriend@gmail.com> |
5588 | ||
5589 | * c-parser.c (c_parser_declspecs): Replace call to error by error_at. | |
5590 | (c_parser_parameter_declaration): Likewise. | |
5591 | ||
cc28fc7f MP |
5592 | 2014-02-19 Marek Polacek <polacek@redhat.com> |
5593 | ||
5594 | PR c/60195 | |
5595 | * c-typeck.c (convert_lvalue_to_rvalue): Set TREE_NO_WARNING on tmp. | |
5596 | Call mark_exp_read on exp.value. | |
5597 | (build_atomic_assign): Set TREE_NO_WARNING on val and old. Set | |
5598 | TREE_ADDRESSABLE on old instead of val. | |
5599 | (emit_side_effect_warnings): Warn only if RHS has !TREE_NO_WARNING. | |
5600 | ||
b581c05c PK |
5601 | 2014-02-07 Prathamesh Kulkarni <bilbotheelffriend@gmail.com> |
5602 | ||
5603 | * c-parser.c (c_parser_get_builtin_args): Replace calls to | |
5604 | C_EXPR_APPEND by vec_safe_push. | |
5605 | * c-tree.h (C_EXPR_APPEND): Remove. | |
5606 | ||
81e5eca8 MP |
5607 | 2014-01-31 Marek Polacek <polacek@redhat.com> |
5608 | ||
5609 | PR c/59963 | |
5610 | * c-typeck.c (convert_lvalue_to_rvalue): Pass vNULL to | |
5611 | build_function_call_vec. | |
5612 | (build_function_call): Likewise. | |
5613 | (build_atomic_assign): Likewise. | |
5614 | (build_function_call_vec): Add arg_loc parameter. Use it. | |
5615 | (convert_arguments): Likewise. | |
5616 | (convert_for_assignment): Rename rhs_loc to expr_loc. | |
5617 | * c-parser.c (c_parser_attributes): Pass NULL to c_parser_expr_list. | |
5618 | (c_parser_objc_keywordexpr): Likewise. | |
5619 | (c_parser_postfix_expression_after_primary): Call | |
5620 | build_function_call_vec with expr_loc rather than op_loc. | |
5621 | Call c_parser_expr_list to fill arg_loc. Pass arg_loc to | |
5622 | build_function_call_vec. | |
5623 | (c_parser_expr_list): Add locations parameter. Fill it with locations | |
5624 | of function arguments. | |
5625 | * c-decl.c (finish_decl): Pass vNULL to build_function_call_vec. | |
5626 | ||
68fca595 MP |
5627 | 2014-01-30 Marek Polacek <polacek@redhat.com> |
5628 | ||
5629 | PR c/59940 | |
5630 | * c-typeck.c (build_function_call_vec): Use loc parameter. | |
5631 | (convert_arguments): Add location parameter. Use it. | |
5632 | (ep_convert_and_check): Likewise. | |
5633 | (build_atomic_assign): Adjust convert_for_assignment call. | |
5634 | (build_modify_expr): Likewise. | |
5635 | (digest_init): Likewise. | |
5636 | (c_finish_return): Likewise. | |
5637 | (build_conditional_expr): Adjust ep_convert_and_check calls. | |
5638 | (convert_for_assignment): Add rhs_loc parameter. Use it. | |
5639 | (build_binary_op): Adjust convert_and_check and ep_convert_and_check | |
5640 | calls. | |
5641 | ||
fa337f3a RB |
5642 | 2014-01-30 Richard Biener <rguenther@suse.de> |
5643 | ||
5644 | PR c/59905 | |
5645 | * c-typeck.c (build_function_call_vec): Do not replace calls | |
5646 | to a function via an incompatible type with a runtime abort. | |
5647 | ||
b72271b9 BI |
5648 | 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com> |
5649 | ||
5650 | * c-parser.c (c_parser_declaration_or_fndef): Replaced | |
5651 | flag_enable_cilkplus with flag_cilkplus. | |
5652 | (c_parser_direct_declarator_inner): Likewise. | |
5653 | (c_parser_attribute_any_word): Likewise. | |
5654 | (c_parser_attributes): Likewise. | |
5655 | (c_parser_compound_statement): Likewise. | |
5656 | (c_parser_statement_after_labels): Likewise. | |
5657 | (c_parser_if_statement): Likewise. | |
5658 | (c_parser_switch_statement): Likewise. | |
5659 | (c_parser_do_statement): Likewise. | |
5660 | (c_parser_for_statement): Likewise. | |
5661 | (c_parser_unary_expression): Likewise. | |
5662 | (c_parser_postfix_expression): Likewise. | |
5663 | (c_parser_postfix_expression_after_primary): Likewise. | |
5664 | (c_parser_postfix_expression_after_primary): Likewise. | |
5665 | (c_parser_omp_clause_name): Likewise. | |
5666 | (c_finish_omp_declare_simd): Likewise. | |
5667 | (c_parser_cilk_verify_simd): Likewise. | |
5668 | * c-typeck.c (build_array_ref): Likewise. | |
5669 | (build_function_call_vec): Likewise. | |
5670 | (convert_arguments): Likewise. | |
5671 | (build_compound_expr): Likewise. | |
5672 | (c_finish_return): Likewise. | |
5673 | (c_finish_if_stmt): Likewise. | |
5674 | (c_finish_loop): Likewise. | |
5675 | (build_binary_op): Likewise. | |
5676 | ||
393e8e8b MP |
5677 | 2014-01-23 Marek Polacek <polacek@redhat.com> |
5678 | ||
5679 | PR c/59846 | |
5680 | * c-typeck.c (parser_build_binary_op): Use location instead of | |
5681 | input_location. | |
5682 | (build_binary_op): Pass location to shorten_compare. | |
5683 | ||
f04dda30 MP |
5684 | 2014-01-23 Marek Polacek <polacek@redhat.com> |
5685 | ||
5686 | PR c/58346 | |
5687 | * c-typeck.c (pointer_diff): Give an error on arithmetic on pointer to | |
5688 | an empty aggregate. | |
5689 | ||
789eadcd MP |
5690 | 2014-01-23 Marek Polacek <polacek@redhat.com> |
5691 | ||
5692 | PR c/59871 | |
5693 | * c-typeck.c (build_compound_expr): Warn even for right-hand operand | |
5694 | of a comma expression. | |
5695 | (emit_side_effect_warnings): Likewise. | |
5696 | ||
40f14e9f BI |
5697 | 2014-01-23 Balaji V. Iyer <balaji.v.iyer@intel.com> |
5698 | ||
5699 | PR c/59825 | |
5700 | * c-array-notation.c (expand_array_notation_exprs): Rewrote this | |
5701 | function to use walk_tree and moved a lot of its functionality to | |
5702 | expand_array_notations. | |
5703 | (expand_array_notations): New function. | |
5704 | ||
74558dd9 BI |
5705 | 2014-01-23 Balaji V. Iyer <balaji.v.iyer@intel.com> |
5706 | ||
5707 | * c-parser.c (c_finish_omp_declare_simd): Made "cilk simd function" | |
5708 | attribute an attribute without value. | |
5709 | ||
652fea39 JJ |
5710 | 2014-01-23 Jakub Jelinek <jakub@redhat.com> |
5711 | ||
5712 | PR middle-end/58809 | |
5713 | * c-typeck.c (c_finish_omp_clause): Reject MIN_EXPR, MAX_EXPR, | |
5714 | BIT_AND_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR on COMPLEX_TYPEs. | |
5715 | ||
f34f1c87 MP |
5716 | 2014-01-22 Marek Polacek <polacek@redhat.com> |
5717 | ||
5718 | PR c/59891 | |
5719 | * c-typeck.c (build_conditional_expr): Call c_fully_fold instead | |
5720 | of remove_c_maybe_const_expr on op1 and op2. | |
5721 | ||
241f845a JJ |
5722 | 2014-01-15 Jakub Jelinek <jakub@redhat.com> |
5723 | ||
5724 | PR c/58943 | |
5725 | * c-typeck.c (build_modify_expr): For lhs op= rhs, if rhs has side | |
5726 | effects, preevaluate rhs using SAVE_EXPR first. | |
5727 | ||
9a74f20c BI |
5728 | 2014-01-09 Balaji V. Iyer <balaji.v.iyer@intel.com> |
5729 | ||
5730 | PR c++/59631 | |
5731 | * c-parser.c (c_parser_postfix_expression): Replaced consecutive if | |
5732 | statements with if-elseif statements. | |
5733 | ||
96066ce1 MP |
5734 | 2014-01-06 Marek Polacek <polacek@redhat.com> |
5735 | ||
5736 | PR c/57773 | |
5737 | * c-decl.c (check_bitfield_type_and_width): Warn for implementation | |
5738 | defined bit-field types only in ISO C. | |
5739 | ||
23a5b65a RS |
5740 | 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com> |
5741 | ||
5742 | Update copyright years | |
5743 | ||
f9030485 RS |
5744 | 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com> |
5745 | ||
5746 | * c-array-notation.c: Use the standard form for the copyright notice. | |
5747 | ||
41958c28 BI |
5748 | 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com> |
5749 | ||
5750 | * c-parser.c (struct c_parser::cilk_simd_fn_tokens): Added new field. | |
5751 | (c_parser_declaration_or_fndef): Added a check if cilk_simd_fn_tokens | |
5752 | field in parser is not empty. If not-empty, call the function | |
5753 | c_parser_finish_omp_declare_simd. | |
5754 | (c_parser_cilk_clause_vectorlength): Modified function to be shared | |
5755 | between SIMD-enabled functions and #pragma simd. Added new parameter. | |
5756 | (c_parser_cilk_all_clauses): Modified the usage of the function | |
5757 | c_parser_cilk_clause_vectorlength as mentioned above. | |
5758 | (c_parser_cilk_simd_fn_vector_attrs): New function. | |
5759 | (c_finish_cilk_simd_fn_tokens): Likewise. | |
5760 | (is_cilkplus_vector_p): Likewise. | |
5761 | (c_parser_omp_clause_name): Added checking for "vectorlength," | |
5762 | "nomask," and "mask" strings in clause name. | |
5763 | (c_parser_omp_all_clauses): Added 3 new case statements: | |
5764 | PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_MASK and | |
5765 | PRAGMA_CILK_CLAUSE_NOMASK. | |
5766 | (c_parser_attributes): Added a cilk_simd_fn_tokens parameter. Added a | |
5767 | check for vector attribute and if so call the function | |
5768 | c_parser_cilk_simd_fn_vector_attrs. Also, when Cilk plus is enabled, | |
5769 | called the function c_finish_cilk_simd_fn_tokens. | |
5770 | (c_finish_omp_declare_simd): Added a check if cilk_simd_fn_tokens in | |
5771 | parser field is non-empty. If so, parse them as you would parse | |
5772 | the omp declare simd pragma. | |
5773 | (c_parser_omp_clause_linear): Added a new bool parm. is_cilk_simd_fn. | |
5774 | Added a check when step is a parameter and flag it as error. | |
5775 | (CILK_SIMD_FN_CLAUSE_MASK): New #define. | |
5776 | (c_parser_cilk_clause_name): Changed pragma_cilk_clause to | |
5777 | pragma_omp_clause. | |
5778 | ||
cef0fd0e TS |
5779 | 2013-12-17 Thomas Schwinge <thomas@codesourcery.com> |
5780 | ||
5781 | * c-parser.c (c_parser_omp_parallel): Fix description. | |
5782 | ||
12893402 BI |
5783 | 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com> |
5784 | ||
5785 | * c-objc-common.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Remove. | |
5786 | (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise. | |
5787 | (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise. | |
5788 | * c-typeck.c (cilk_install_body_with_frame_cleanup): New function. | |
5789 | ||
296674db JM |
5790 | 2013-12-04 Joseph Myers <joseph@codesourcery.com> |
5791 | ||
5792 | PR c/52023 | |
5793 | * c-parser.c (c_parser_alignas_specifier): Use | |
5794 | c_sizeof_or_alignof_type instead of c_alignof. | |
5795 | (c_parser_alignof_expression): Likewise, with min_alignof | |
5796 | parameter depending on alignof spelling used. | |
5797 | ||
edd28054 MP |
5798 | 2013-12-04 Marek Polacek <polacek@redhat.com> |
5799 | ||
5800 | PR c/54113 | |
5801 | * c-decl.c (start_function): Don't warn for missing prototype for | |
5802 | inline functions. | |
5803 | ||
da0fc454 MP |
5804 | 2013-12-03 Marek Polacek <polacek@redhat.com> |
5805 | ||
5806 | PR c/59351 | |
5807 | * c-decl.c (build_compound_literal): Allow compound literals with | |
5808 | empty initial value. | |
5809 | ||
4c2ecab0 JM |
5810 | 2013-12-02 Joseph Myers <joseph@codesourcery.com> |
5811 | ||
5812 | PR c/58235 | |
5813 | * c-typeck.c (build_modify_expr): Diagnose assignment to | |
5814 | expression with array type. | |
5815 | ||
340baef7 JM |
5816 | 2013-11-29 Joseph Myers <joseph@codesourcery.com> |
5817 | ||
5818 | PR c/42262 | |
5819 | * c-typeck.c (process_init_element): Do not treat a string as | |
5820 | initializing a whole array when used with a designator for an | |
5821 | individual element. | |
5822 | ||
6763b9f7 JM |
5823 | 2013-11-29 Joseph Myers <joseph@codesourcery.com> |
5824 | ||
5825 | PR c/57574 | |
5826 | * c-decl.c (merge_decls): Clear DECL_EXTERNAL for a definition of | |
5827 | an inline function following a static declaration. | |
5828 | ||
e7bd1de1 JJ |
5829 | 2013-11-28 Jakub Jelinek <jakub@redhat.com> |
5830 | ||
5831 | PR c/59310 | |
5832 | * c-parser.c (c_parser_omp_target): Copy "#pragma omp target" | |
5833 | to p_name before calling c_parser_omp_teams instead of after. | |
5834 | (c_parser_cilk_simd): Remove wrong ATTRIBUTE_UNUSED from parser | |
5835 | argument. Remove unused p_name variable. | |
5836 | ||
0136f8f0 AH |
5837 | 2013-11-27 Aldy Hernandez <aldyh@redhat.com> |
5838 | Jakub Jelinek <jakub@redhat.com> | |
5839 | ||
5840 | * c-decl.c (c_builtin_function_ext_scope): Avoid binding if | |
5841 | external_scope is NULL. | |
5842 | ||
241b71bb TV |
5843 | 2013-11-27 Tom de Vries <tom@codesourcery.com> |
5844 | Marc Glisse <marc.glisse@inria.fr> | |
5845 | ||
5846 | PR c++/59032 | |
5847 | * c-typeck.c (build_unary_op): Allow vector increment and decrement. | |
5848 | ||
2fb9a547 AM |
5849 | 2013-11-22 Andrew MacLeod <amacleod@redhat.com> |
5850 | ||
5851 | * c-typeck.c: Add required include files from gimple.h. | |
5852 | ||
8400e75e DM |
5853 | 2013-11-22 David Malcolm <dmalcolm@redhat.com> |
5854 | ||
5855 | * c-decl.c (define_label, shadow_tag_warned) | |
5856 | (check_bitfield_type_and_width, grokdeclarator, grokparms, | |
5857 | store_parm_decls_newstyle, store_parm_decls_oldstyle) | |
5858 | (declspecs_add_type): Remove use of in_system_header macro. | |
5859 | * c-parser.c (c_parser_unary_expression): Likewise. | |
5860 | * c-typeck.c (store_init_value, process_init_element) | |
5861 | (c_start_case): Likewise. | |
5862 | ||
5863 | * c-decl.c (build_enumerator): Remove use of EXPR_LOC_OR_HERE | |
5864 | macro. | |
5865 | ||
5866 | * c-parser.c (c_parser_set_source_position_from_token): Remove | |
5867 | reference to in_system_header from comment. | |
5868 | ||
386b1f1f RS |
5869 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
5870 | ||
5871 | * c-decl.c (grokdeclarator): Update comment to refer to | |
5872 | tree_to_[su]hwi rather than tree_low_cst. | |
5873 | ||
ae7e9ddd RS |
5874 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
5875 | ||
5876 | * c-decl.c, c-typeck.c: Replace tree_low_cst (..., 1) with | |
5877 | tree_to_uhwi throughout. | |
5878 | ||
9439e9a1 RS |
5879 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
5880 | ||
5881 | * c-parser.c: Replace tree_low_cst (..., 0) with tree_to_shwi | |
5882 | throughout. | |
5883 | ||
9541ffee RS |
5884 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
5885 | ||
5886 | * c-parser.c: Replace host_integerp (..., 0) with tree_fits_shwi_p | |
5887 | throughout. | |
5888 | ||
c02065fc AH |
5889 | 2013-11-15 Aldy Hernandez <aldyh@redhat.com> |
5890 | ||
5891 | * c-parser.c (c_parser_cilk_simd): New. | |
5892 | (c_parser_cilk_verify_simd): New. | |
5893 | (c_parser_pragma): Add case for PRAGMA_CILK_SIMD. | |
5894 | (c_parser_omp_for_loop): Add case for NE_EXPR. | |
5895 | Set c_break_label for CILK_SIMD. | |
5896 | (c_parser_cilk_clause_vectorlength): New. | |
5897 | (c_parser_cilk_clause_linear): New. | |
5898 | (c_parser_cilk_clause_name): New. | |
5899 | (c_parser_cilk_all_clauses): New. | |
5900 | * c-typeck.c (build_unary_op): Pass location argument to | |
5901 | readonly_error. | |
5902 | (build_modify_expr): Same. | |
5903 | (build_asm_expr): Same. | |
5904 | (c_finish_bc_stmt): Error on break/continue in loops. | |
5905 | ||
18f429e2 AM |
5906 | 2013-11-14 Andrew MacLeod <amacleod@redhat.com> |
5907 | ||
5908 | * c-typeck.c: Include only gimplify.h and gimple.h as needed. | |
5909 | ||
d8a2d370 DN |
5910 | 2013-11-14 Diego Novillo <dnovillo@google.com> |
5911 | ||
5912 | * c-decl.c: Include print-tree.h. | |
5913 | Include stor-layout.h. | |
5914 | Include varasm.h. | |
5915 | Include attribs.h. | |
5916 | Include stringpool.h. | |
5917 | * c-lang.c: Include fold-const.h. | |
5918 | * c-parser.c: Include stringpool.h. | |
5919 | Include attribs.h. | |
5920 | Include stor-layout.h. | |
5921 | Include varasm.h. | |
5922 | Include trans-mem.h. | |
5923 | * c-typeck.c: Include stor-layout.h. | |
5924 | Include trans-mem.h. | |
5925 | Include varasm.h. | |
5926 | Include stmt.h. | |
5927 | ||
38b7bc7f JM |
5928 | 2013-11-13 Joseph Myers <joseph@codesourcery.com> |
5929 | ||
5930 | * c-tree.h (c_typespec_keyword): Add cts_auto_type. | |
5931 | * c-decl.c (declspecs_add_type, finish_declspecs): Handle | |
5932 | __auto_type. | |
5933 | * c-parser.c (c_token_starts_typename, c_token_starts_declspecs) | |
5934 | (c_parser_attribute_any_word, c_parser_objc_selector): Handle | |
5935 | RID_AUTO_TYPE. | |
5936 | (c_parser_declspecs): Take argument AUTO_TYPE_OK. | |
5937 | (c_parser_declaration_or_fndef, c_parser_struct_declaration) | |
5938 | (c_parser_declarator, c_parser_direct_declarator_inner) | |
5939 | (c_parser_parameter_declaration, c_parser_type_name): All callers | |
5940 | changed. | |
5941 | (c_parser_declaration_or_fndef): Handle declarations with type | |
5942 | determined from the initializer. | |
5943 | ||
45b0be94 AM |
5944 | 2013-11-12 Andrew MacLeod <amacleod@redhat.com> |
5945 | ||
18f429e2 | 5946 | * c-typeck.c: Include gimplify.h. |
45b0be94 | 5947 | |
582d9b50 JM |
5948 | 2013-11-12 Joseph Myers <joseph@codesourcery.com> |
5949 | ||
5950 | * c-tree.h (struct c_declspecs): Add thread_gnu_p field. | |
5951 | * c-parser.c (c_parser_declspecs): Mention _Thread_local in | |
5952 | comment. | |
5953 | * c-decl.c (shadow_tag_warned, grokdeclarator): Mention __thread | |
5954 | or _Thread_local as appropriate in diagnostics. | |
5955 | (build_null_declspecs): Initialize ret->thread_gnu_p. | |
5956 | (declspecs_add_scspec): Handle either __thread or _Thread_local | |
5957 | for RID_THREAD. Diagnose _Thread_local for pre-C11 standards if | |
5958 | pedantic. Do not disallow _Thread_local extern and _Thread_local | |
5959 | static. | |
5960 | ||
267bac10 JM |
5961 | 2013-11-07 Joseph Myers <joseph@codesourcery.com> |
5962 | Andrew MacLeod <amacleod@redhat.com> | |
5963 | ||
5964 | * c-aux-info.c (gen_type): Handle atomic qualifier. | |
5965 | * c-decl.c (validate_proto_after_old_defn): Do not remove atomic | |
5966 | qualifiers when compating types. | |
5967 | (shadow_tag_warned): Handle atomic_p in declspecs. | |
5968 | (quals_from_declspecs): Likewise. | |
5969 | (start_decl): Use c_type_promotes_to when promoting argument | |
5970 | types. | |
5971 | (grokdeclarator): Handle _Atomic. | |
5972 | (get_parm_info): Diagnose any qualifier on "void" as only | |
5973 | parameter. | |
5974 | (store_parm_decls_oldstyle): Do not remove atomic qualifiers when | |
5975 | comparing types. Use c_type_promotes_to when promoting argument | |
5976 | types. | |
5977 | (finish_function): Use c_type_promotes_to when promoting argument | |
5978 | types. | |
5979 | (build_null_declspecs): Handle atomic_p in declspecs. | |
5980 | (declspecs_add_qual): Handle RID_ATOMIC. | |
5981 | * c-parser.c (c_token_starts_typename, c_token_is_qualifier) | |
5982 | (c_token_starts_declspecs): Handle RID_ATOMIC. | |
5983 | (c_parser_declspecs): Handle atomic type specifiers and | |
5984 | qualifiers. | |
5985 | (c_parser_typeof_specifier): Remove const and _Atomic qualifiers | |
5986 | from types of expressions with atomic type. | |
5987 | (c_parser_direct_declarator_inner): Use convert_lvalue_to_rvalue. | |
5988 | (c_parser_attribute_any_word): Handle RID_ATOMIC. | |
5989 | (c_parser_initializer, c_parser_initelt, c_parser_initval) | |
5990 | (c_parser_statement_after_labels, c_parser_switch_statement) | |
5991 | (c_parser_for_statement, c_parser_expr_no_commas) | |
5992 | (c_parser_conditional_expression, c_parser_binary_expression) | |
5993 | (c_parser_cast_expression, c_parser_unary_expression) | |
5994 | (c_parser_postfix_expression) | |
5995 | (c_parser_postfix_expression_after_primary, c_parser_expression): | |
5996 | Use convert_lvalue_to_rvalue. | |
5997 | (c_parser_expression_conv, c_parser_expr_list): Document | |
5998 | conversion of lvalues to rvalues. Use convert_lvalue_to_rvalue. | |
5999 | (c_parser_objc_synchronized_statement): Use | |
6000 | convert_lvalue_to_rvalue. | |
6001 | (c_parser_objc_selector): Handle RID_ATOMIC. | |
6002 | (c_parser_objc_receiver, c_parser_array_notation): Use | |
6003 | convert_lvalue_to_rvalue. | |
6004 | * c-tree.h (ctsk_typeof): Adjust comment to mention use for | |
6005 | _Atomic (type-name). | |
6006 | (struct c_declspecs): Add atomic_p field. | |
6007 | (convert_lvalue_to_rvalue): Declare. | |
6008 | * c-typeck.c (c_type_promotes_to): Promote atomic types to | |
6009 | corresponding atomic types. | |
6010 | (qualify_type): Don't add _Atomic qualifiers from second argument. | |
6011 | (comp_target_types): Do not allow _Atomic mismatches. | |
6012 | (type_lists_compatible_p): Do not remove atomic qualifiers when | |
6013 | comparing types. | |
6014 | (really_atomic_lvalue, convert_lvalue_to_rvalue) | |
6015 | (build_atomic_assign): New functions. | |
6016 | (build_unary_op): Use build_atomic_assign for atomic increment and | |
6017 | decrement. | |
6018 | (build_conditional_expr): Do not treat _Atomic void as a qualified | |
6019 | version of void. | |
6020 | (build_modify_expr): Use build_atomic_assign for atomic LHS. | |
6021 | (find_anonymous_field_with_type, convert_to_anonymous_field) | |
6022 | (convert_for_assignment): Do not remove atomic qualifiers when | |
6023 | comparing types. | |
6024 | (digest_init): Do not accept initialization of arrays of atomic | |
6025 | elements by string constants. | |
6026 | (build_asm_expr): Use convert_lvalue_to_rvalue. | |
6027 | (build_binary_op): Do not treat _Atomic void as a qualified | |
6028 | version of void. | |
6029 | ||
0c249d4b DD |
6030 | 2013-11-06 DJ Delorie <dj@redhat.com> |
6031 | ||
6032 | * c-decl.c (locate_old_decl): If a previous conflicting decl is | |
6033 | both explicit and builtin, print the location of the explicit one. | |
6034 | ||
6d7f7e0a TB |
6035 | 2013-11-05 Tobias Burnus <burnus@net-b.de> |
6036 | ||
6037 | * c-parser.c (c_parser_omp_for, c_parser_omp_parallel, | |
6038 | c_parser_omp_distribute, c_parser_omp_teams, | |
6039 | c_parser_omp_target, c_parser_omp_declare): Handle | |
6040 | -fopenmp-simd. | |
6041 | ||
b906f4ca MP |
6042 | 2013-11-03 Marek Polacek <polacek@redhat.com> |
6043 | ||
6044 | * c-decl.c (grokdeclarator): Add VLA instrumentation. | |
6045 | ||
ee1d5a02 JJ |
6046 | 2013-11-01 Jakub Jelinek <jakub@redhat.com> |
6047 | ||
6048 | * c-typeck.c (c_finish_omp_clauses) <case OMP_CLAUSE_UNIFORM>: Go to | |
6049 | check_dup_generic at the end, unless remove is true. | |
6050 | (c_finish_omp_clauses) <case OMP_CLAUSE_REDUCTION>: Add break; after | |
6051 | remove = true;. | |
6052 | (c_finish_omp_clauses) <case OMP_CLAUSE_COPYIN>: Likewise. | |
6053 | ||
5a9785fb JJ |
6054 | 2013-10-31 Jakub Jelinek <jakub@redhat.com> |
6055 | ||
6056 | * c-typeck.c (c_finish_omp_clauses): Diagnose aligned clause | |
6057 | with decl that is not pointer nor array. | |
6058 | ||
939b37da BI |
6059 | 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com> |
6060 | ||
6061 | * c-decl.c (finish_function): Added a call for insert_cilk_frame when | |
6062 | a spawning function is found. | |
6063 | * c-objc-common.h (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): New #define. | |
6064 | (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise. | |
6065 | (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise. | |
6066 | * c-parser.c (c_parser_statement_after_labels): Added RID_CILK_SYNC | |
6067 | case. | |
6068 | (c_parser_postfix_expression): Added RID_CILK_SPAWN case. | |
6069 | * c-typeck.c (build_compound_expr): Reject _Cilk_spawn in a comma | |
6070 | expr. | |
6071 | (c_finish_return): Added a check to reject _Cilk_spawn in return | |
6072 | expression. | |
6073 | (build_cilk_spawn): New function. | |
6074 | (build_cilk_sync): Likewise. | |
6075 | * Makefile.in (c-decl.o): Added cilk.h in dependency list. | |
ab20d992 | 6076 | |
d4af74d4 TB |
6077 | 2013-10-27 Tobias Burnus <burnus@net-b.de> |
6078 | ||
6079 | PR other/33426 | |
6080 | * c-parser.c (c_parser_while_statement, c_parser_while_statement, | |
6081 | c_parser_pragma): Add GCC ivdep support to 'do' and 'while'. | |
6082 | (c_parser_statement_after_labels): Update calls. | |
6083 | ||
d73749df | 6084 | 2013-10-24 Tobias Burnus <burnus@net-b.de> |
8170608b TB |
6085 | |
6086 | PR other/33426 | |
6087 | * c-parser.c (c_parser_pragma, c_parser_for_statement): | |
6088 | Handle PRAGMA_IVDEP. | |
6089 | (c_parser_statement_after_labels): Update call. | |
6090 | ||
f28aa681 MP |
6091 | 2013-10-24 Marek Polacek <polacek@redhat.com> |
6092 | ||
6093 | * c-parser.c (c_parser_struct_declaration): Add a comment. | |
6094 | (c_parser_declarator): Don't allow _Alignas here. | |
6095 | ||
0645c1a2 AM |
6096 | 2013-10-17 Andrew MacLeod <amacleod@redhat.com> |
6097 | ||
6098 | * c-parser.c: Include omp-low.h. | |
6099 | * c-typeck.c: Likewise. | |
6100 | ||
568a31f2 MP |
6101 | 2013-10-17 Marek Polacek <polacek@redhat.com> |
6102 | ||
6103 | PR c/58267 | |
6104 | * c-parser.c (c_parser_declspecs): Add alignspec_ok parameter. | |
6105 | Document syntax of the array-declarator. | |
6106 | (c_parser_declspecs) <RID_ALIGNAS>: Bail out if alignment specs | |
6107 | are not permitted. | |
6108 | (c_parser_declaration_or_fndef): Adjust c_parser_declspecs call. | |
6109 | (c_parser_struct_declaration): Likewise. | |
6110 | (c_parser_declarator): Likewise. | |
6111 | (c_parser_direct_declarator_inner): Likewise. | |
6112 | (c_parser_parameter_declaration): Likewise. | |
6113 | (c_parser_type_name): Likewise. | |
6114 | ||
acf0174b JJ |
6115 | 2013-10-11 Jakub Jelinek <jakub@redhat.com> |
6116 | ||
6117 | * c-lang.h (current_omp_declare_target_attribute): New extern | |
6118 | decl. | |
6119 | * c-parser.c: Include c-lang.h. | |
6120 | (struct c_parser): Change tokens to c_token *. | |
6121 | Add tokens_buf field. Change tokens_avail type to unsigned int. | |
6122 | (c_parser_consume_token): If parser->tokens isn't | |
6123 | &parser->tokens_buf[0], increment parser->tokens. | |
6124 | (c_parser_consume_pragma): Likewise. | |
6125 | (enum pragma_context): Add pragma_struct and pragma_param. | |
6126 | (c_parser_external_declaration): Adjust | |
6127 | c_parser_declaration_or_fndef caller. | |
6128 | (c_parser_declaration_or_fndef): Add omp_declare_simd_clauses | |
6129 | argument, if it is non-vNULL vector, call c_finish_omp_declare_simd. | |
6130 | Adjust recursive call. | |
6131 | (c_parser_struct_or_union_specifier): Use pragma_struct instead | |
6132 | of pragma_external. | |
6133 | (c_parser_parameter_declaration): Use pragma_param instead of | |
6134 | pragma_external. | |
6135 | (c_parser_compound_statement_nostart, c_parser_label, | |
6136 | c_parser_for_statement): Adjust | |
6137 | c_parser_declaration_or_fndef callers. | |
6138 | (c_parser_expr_no_commas): Add omp_atomic_lhs argument, pass | |
6139 | it through to c_parser_conditional_expression. | |
6140 | (c_parser_conditional_expression): Add omp_atomic_lhs argument, | |
6141 | pass it through to c_parser_binary_expression. Adjust recursive | |
6142 | call. | |
6143 | (c_parser_binary_expression): Remove prec argument, add | |
6144 | omp_atomic_lhs argument instead. Always start from PREC_NONE, if | |
6145 | omp_atomic_lhs is non-NULL and one of the arguments of toplevel | |
6146 | binop matches it, use build2 instead of parser_build_binary_op. | |
6147 | (c_parser_pragma): Handle PRAGMA_OMP_CANCEL, | |
6148 | PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_TARGET, | |
6149 | PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_DECLARE_REDUCTION. | |
6150 | Handle pragma_struct and pragma_param the same as pragma_external. | |
6151 | (c_parser_omp_clause_name): Parse new OpenMP 4.0 clause names. | |
6152 | (c_parser_omp_variable_list): Parse array sections for | |
6153 | OMP_CLAUSE_{DEPEND,MAP,TO,FROM} clauses. | |
6154 | (c_parser_omp_clause_collapse): Fully fold collapse expression. | |
6155 | (c_parser_omp_clause_reduction): Handle user defined reductions. | |
6156 | (c_parser_omp_clause_branch, c_parser_omp_clause_cancelkind, | |
6157 | c_parser_omp_clause_num_teams, c_parser_omp_clause_thread_limit, | |
6158 | c_parser_omp_clause_aligned, c_parser_omp_clause_linear, | |
6159 | c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen, | |
6160 | c_parser_omp_clause_depend, c_parser_omp_clause_map, | |
6161 | c_parser_omp_clause_device, c_parser_omp_clause_dist_schedule, | |
6162 | c_parser_omp_clause_proc_bind, c_parser_omp_clause_to, | |
6163 | c_parser_omp_clause_from, c_parser_omp_clause_uniform): New functions. | |
6164 | (c_parser_omp_all_clauses): Add finish_p argument. Don't call | |
6165 | c_finish_omp_clauses if it is false. Handle new OpenMP 4.0 clauses. | |
6166 | (c_parser_omp_atomic): Parse seq_cst clause, pass true if it is | |
6167 | present to c_finish_omp_atomic. Handle OpenMP 4.0 atomic forms. | |
6168 | (c_parser_omp_for_loop): Add CODE argument, pass it through | |
6169 | to c_finish_omp_for. Change last argument to cclauses, | |
6170 | and adjust uses to grab parallel clauses from the array of all | |
6171 | the split clauses. Adjust c_parser_binary_expression, | |
6172 | c_parser_declaration_or_fndef and c_finish_omp_for callers. | |
6173 | (omp_split_clauses): New function. | |
6174 | (c_parser_omp_simd): New function. | |
6175 | (c_parser_omp_for): Add p_name, mask and cclauses arguments. | |
6176 | Allow the function to be called also when parsing combined constructs, | |
6177 | and call c_parser_omp_simd when parsing for simd. | |
6178 | (c_parser_omp_sections_scope): If section-sequence doesn't start with | |
6179 | #pragma omp section, require exactly one structured-block instead of | |
6180 | sequence of statements. | |
6181 | (c_parser_omp_sections): Add p_name, mask and cclauses arguments. | |
6182 | Allow the function to be called also when parsing combined constructs. | |
6183 | (c_parser_omp_parallel): Add p_name, mask and cclauses arguments. | |
6184 | Allow the function to be called also when parsing combined | |
6185 | constructs. | |
6186 | (c_parser_omp_taskgroup, c_parser_omp_cancel, | |
6187 | c_parser_omp_cancellation_point, c_parser_omp_distribute, | |
6188 | c_parser_omp_teams, c_parser_omp_target_data, | |
6189 | c_parser_omp_target_update, c_parser_omp_target, | |
6190 | c_parser_omp_declare_simd, c_finish_omp_declare_simd, | |
6191 | c_parser_omp_declare_target, c_parser_omp_end_declare_target, | |
6192 | c_parser_omp_declare_reduction, c_parser_omp_declare): New functions. | |
6193 | (c_parser_omp_construct): Add p_name and mask vars. Handle | |
6194 | PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_SIMD, PRAGMA_OMP_TASKGROUP, | |
6195 | PRAGMA_OMP_TEAMS. Adjust c_parser_omp_for, c_parser_omp_parallel | |
6196 | and c_parser_omp_sections callers. | |
6197 | (c_parse_file): Initialize tparser.tokens and the_parser->tokens here. | |
6198 | (OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK, | |
6199 | OMP_SINGLE_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1. | |
6200 | (OMP_PARALLEL_CLAUSE_MASK): Likewise. Add OMP_CLAUSE_PROC_BIND. | |
6201 | (OMP_TASK_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1. Add | |
6202 | OMP_CLAUSE_DEPEND. | |
6203 | (OMP_SIMD_CLAUSE_MASK, OMP_CANCEL_CLAUSE_MASK, | |
6204 | OMP_CANCELLATION_POINT_CLAUSE_MASK, OMP_DISTRIBUTE_CLAUSE_MASK, | |
6205 | OMP_TEAMS_CLAUSE_MASK, OMP_TARGET_DATA_CLAUSE_MASK, | |
6206 | OMP_TARGET_UPDATE_CLAUSE_MASK, OMP_TARGET_CLAUSE_MASK, | |
6207 | OMP_DECLARE_SIMD_CLAUSE_MASK): Define. | |
6208 | * c-typeck.c: Include tree-inline.h. | |
6209 | (c_finish_omp_cancel, c_finish_omp_cancellation_point, | |
6210 | handle_omp_array_sections_1, handle_omp_array_sections, | |
6211 | c_clone_omp_udr, c_find_omp_placeholder_r): New functions. | |
6212 | (c_finish_omp_clauses): Handle new OpenMP 4.0 clauses and | |
6213 | user defined reductions. | |
6214 | (c_tree_equal): New function. | |
6215 | * c-tree.h (temp_store_parm_decls, temp_pop_parm_decls, | |
6216 | c_finish_omp_cancel, c_finish_omp_cancellation_point, c_tree_equal, | |
6217 | c_omp_reduction_id, c_omp_reduction_decl, c_omp_reduction_lookup, | |
6218 | c_check_omp_declare_reduction_r): New prototypes. | |
6219 | * c-decl.c (current_omp_declare_target_attribute): New variable. | |
6220 | (c_decl_attributes): New function. | |
6221 | (start_decl, start_function): Use it instead of decl_attributes. | |
6222 | (temp_store_parm_decls, temp_pop_parm_decls, c_omp_reduction_id, | |
6223 | c_omp_reduction_decl, c_omp_reduction_lookup, | |
6224 | c_check_omp_declare_reduction_r): New functions. | |
6225 | ||
0a6c2227 TT |
6226 | 2013-09-25 Tom Tromey <tromey@redhat.com> |
6227 | ||
6228 | * Make-lang.in (c/gccspec.o): Remove. | |
6229 | (CFLAGS-c/gccspec.o): New variable. | |
6230 | (cc1-checksum.o, C_TREE_H, c/c-aux-info.o, c/c-convert.o) | |
6231 | (c/c-decl.o, c/c-errors.o, c/c-lang.o, c/c-objc-common.o) | |
6232 | (c/c-parser.o, c/c-typeck.o, c/c-array-notation.o): Remove. | |
6233 | ||
f3bc55f0 TT |
6234 | 2013-09-25 Tom Tromey <tromey@redhat.com> |
6235 | ||
6236 | * Make-lang.in (c/gccspec.o): Don't use subshell. | |
6237 | ||
a24d975c MP |
6238 | 2013-09-18 Marek Polacek <polacek@redhat.com> |
6239 | ||
6240 | PR sanitize/58443 | |
6241 | * c-typeck.c (build_binary_op): Properly honor -fsanitize options. | |
6242 | Remove unnecessary check. | |
6243 | ||
ce6923c5 MP |
6244 | 2013-09-18 Marek Polacek <polacek@redhat.com> |
6245 | ||
6246 | PR sanitizer/58411 | |
6247 | * c-typeck.c (build_binary_op): Don't sanitize function if it has the | |
6248 | no_sanitize_undefined attribute. | |
6249 | ||
a1e51df9 KT |
6250 | 2013-09-13 Kai Tietz <ktietz@redhat.com> |
6251 | ||
6252 | PR target/57848 | |
6253 | * c-decl.c (c_builtin_function_ext_scope): Remove | |
6254 | wrong assumption that it is never called on prexisting | |
6255 | symbol. | |
6256 | ||
0af94e6f JR |
6257 | 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com> |
6258 | ||
6259 | * c-typeck.c (build_binary_op): Use vector_types_compatible_elements_p. | |
6260 | ||
20059c8b GDR |
6261 | 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net> |
6262 | ||
6263 | * c-objc-common.c (c_tree_printer): Tidy. | |
6264 | ||
de5a5fa1 MP |
6265 | 2013-08-30 Marek Polacek <polacek@redhat.com> |
6266 | ||
6267 | * c-typeck.c (build_binary_op): Add division by zero and shift | |
6268 | instrumentation. | |
6269 | ||
2531a1d9 | 6270 | 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com> |
0fdd4508 | 6271 | Joseph Myers <joseph@codesourcery.com> |
2531a1d9 | 6272 | |
6e2bcc98 | 6273 | PR c/35649 |
2531a1d9 JR |
6274 | * c-typeck.c (c_common_type): Prefer double_type_node over |
6275 | other REAL_TYPE types with the same precision. | |
6276 | (convert_arguments): Likewise. | |
6277 | ||
025311c4 GDR |
6278 | 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net> |
6279 | ||
6280 | * c-objc-common.c (c_tree_printer): Document the nature of the cast. | |
6281 | (c_initialize_diagnostics): Call a destructor for the early printer. | |
6282 | ||
da6ca2b5 GDR |
6283 | 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net> |
6284 | ||
6285 | * c-objc-common.c (c_initialize_diagnostics): Simplify C pretty | |
6286 | printer initialization. | |
6287 | ||
318cda85 | 6288 | 2013-08-19 Balaji V. Iyer <balaji.v.iyer@intel.com> |
da6ca2b5 | 6289 | |
318cda85 BI |
6290 | PR c/57490 |
6291 | * c-array-notation.c (fix_conditional_array_notations_1): Added a | |
6292 | check for truth values. | |
6293 | (expand_array_notation_exprs): Added truth values case. Removed an | |
6294 | unwanted else. Added for-loop to walk through subtrees in default | |
6295 | case. | |
6296 | ||
b066401f GDR |
6297 | 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net> |
6298 | ||
6299 | * c-objc-common.c (c_initialize_diagnostics): Don't call pp_base. | |
6300 | ||
fb48aadc JM |
6301 | 2013-07-23 Joseph Myers <joseph@codesourcery.com> |
6302 | ||
6303 | * c-parser.c (struct c_generic_association): Fix typo. | |
6304 | ||
433cc7b0 TT |
6305 | 2013-07-23 Tom Tromey <tromey@redhat.com> |
6306 | Joseph Myers <joseph@codesourcery.com> | |
6307 | ||
6308 | * c-parser.c (struct c_generic_association): New. | |
6309 | (c_generic_association_d): New typedef. | |
6310 | (c_parser_generic_selection): New function. | |
6311 | (c_parser_postfix_expression): Handle RID_GENERIC. | |
6312 | ||
26d40c3d JM |
6313 | 2013-07-13 Jason Merrill <jason@redhat.com> |
6314 | ||
6315 | PR c++/57793 | |
6316 | * c-decl.c (finish_struct): Check for too-large class. | |
6317 | ||
ecdbd01a | 6318 | 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com> |
40d3d530 JR |
6319 | |
6320 | PR c/57821 | |
6321 | * c-typeck.c (set_init_index): When folding, check for index overflow. | |
6322 | ||
1141ed3f BI |
6323 | 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com> |
6324 | ||
6325 | * c-parser.c (c_parser_array_notation): Removed rejection of array | |
6326 | notations in an array of function pointers. | |
6327 | ||
713b46fa BI |
6328 | 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com> |
6329 | ||
6330 | * c-array-notation.c (make_triplet_val_inv): New function. | |
6331 | (create_cmp_incr): Likewise. | |
6332 | (create_array_refs): Likewise. | |
6333 | (fix_builtin_array_notation_fn): Replaced all mallocs with tree vec. | |
6334 | Also modularized common parts between functions and called the function. | |
6335 | (build_array_notation_expr): Likewise. | |
6336 | (fix_conditional_array_notations_1): Likewise. | |
6337 | (fix_array_notation_expr): Likewise. | |
6338 | (fix_array_notation_call_expr): Likewise. | |
6339 | ||
92f20202 MP |
6340 | 2013-06-18 Marek Polacek <polacek@redhat.com> |
6341 | ||
6342 | PR c/57630 | |
6343 | * c-decl.c (check_for_loop_decls): Improve diagnostics messages. | |
6344 | ||
73a23b06 BI |
6345 | 2013-06-12 Balaji V. Iyer <balaji.v.iyer@intel.com> |
6346 | ||
6347 | * c-array-notation.c (build_array_notation_expr): Reject array notation | |
6348 | mismatch between LHS and RHS even inside a call_expr. Also, removed | |
6349 | a couple while statements that were dead code. | |
6350 | ||
00b8517d BI |
6351 | 2013-06-10 Balaji V. Iyer <balaji.v.iyer@intel.com> |
6352 | ||
6353 | * c-array-notation.c (fix_builtin_array_notation_fn): Fully folded | |
6354 | excessive precision expressions in function parameters. Also removed | |
6355 | couple unwanted while statements. | |
6356 | ||
1509bdda BI |
6357 | 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com> |
6358 | ||
6359 | * c-array-notation.c (expand_array_notation_exprs): Added | |
6360 | ARRAY_NOTATION_REF case. | |
ab20d992 | 6361 | |
d60f1706 BI |
6362 | 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com> |
6363 | ||
6364 | * c-array-notation.c (length_mismatch_in_expr_p): Moved this | |
6365 | function to c-family/array-notation-common.c. | |
6366 | (is_cilkplus_reduce_builtin): Likewise. | |
6367 | (find_rank): Likewise. | |
6368 | (extract_array_notation_exprs): Likewise. | |
6369 | (replace_array_notations): Likewise. | |
6370 | (find_inv_trees): Likewise. | |
6371 | (replace_inv_trees): Likewise. | |
6372 | (contains_array_notation_expr): Likewise. | |
6373 | (find_correct_array_notation_type): Likewise. | |
6374 | (replace_invariant_exprs): Initialized additional_tcodes to NULL. | |
6375 | (struct inv_list): Moved this to c-family/array-notation-common.c. | |
6376 | * c-tree.h (is_cilkplus_builtin_reduce): Remove prototype. | |
ab20d992 | 6377 | |
6d6efbb3 BI |
6378 | 2013-06-05 Balaji V. Iyer <balaji.v.iyer@intel.com> |
6379 | ||
6380 | * c-typeck.c (convert_arguments): Moved checking of builtin cilkplus | |
6381 | reduction functions outside the for-loop. Added a check if the fundecl | |
6382 | is non-NULL. Finally, removed an unwanted if-statement, and made the | |
6383 | body unconditional. | |
6384 | ||
25c22937 BI |
6385 | 2013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com> |
6386 | ||
6387 | * c-typeck.c (c_finish_if_stmt): Added a check to see if the rank of the | |
6388 | condition of the if-statement matches the rank of else-block and then- | |
6389 | block when array notations are used. | |
6390 | * c-parser.c (c_parser_declaration_or_fndef): Expanded array notation | |
6391 | expression after the entire function body is parsed. | |
6392 | (c_parser_expr_no_commas): Delayed creating array notation expressions | |
6393 | to the end of function parsing. | |
6394 | * c-array-notation.c (fix_conditional_array_notations_1): Expanded the | |
6395 | whole if-statement instead of just the condition. | |
ab20d992 | 6396 | (expand_array_notation_exprs): Added MODIFY_EXPR case. |
25c22937 | 6397 | |
edd25645 BI |
6398 | 2013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com> |
6399 | ||
6400 | PR c/57474 | |
6401 | * c-array-notation.c (build_array_notation_expr): Initialized rhs_length | |
6402 | array to NULL_TREE if they are unused. Also added a check for the | |
6403 | field to be NULL before its fields are used in future. | |
ab20d992 | 6404 | |
065ce7f1 RO |
6405 | 2013-05-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
6406 | ||
6407 | PR bootstrap/57450 | |
6408 | * c-array-notation.c (length_mismatch_in_expr_p): Use absu_hwi. | |
6409 | (build_array_notation_expr): Likewise. | |
6410 | ||
36536d79 BI |
6411 | 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com> |
6412 | ||
6413 | * c-typeck.c (build_array_ref): Added a check to see if array's | |
6414 | index is greater than one. If true, then emit an error. | |
6415 | (build_function_call_vec): Exclude error reporting and checking | |
6416 | for builtin array-notation functions. | |
6417 | (convert_arguments): Likewise. | |
6418 | (c_finish_return): Added a check for array notations as a return | |
6419 | expression. If true, then emit an error. | |
6420 | (c_finish_loop): Added a check for array notations in a loop | |
6421 | condition. If true then emit an error. | |
6422 | (lvalue_p): Added a ARRAY_NOTATION_REF case. | |
6423 | (build_binary_op): Added a check for array notation expr inside | |
6424 | op1 and op0. If present, we call another function to find correct | |
6425 | type. | |
6426 | * Make-lang.in (C_AND_OBJC_OBJS): Added c-array-notation.o. | |
6427 | * c-parser.c (c_parser_compound_statement): Check if array | |
6428 | notation code is used in tree, if so, then transform them into | |
6429 | appropriate C code. | |
6430 | (c_parser_expr_no_commas): Check if array notation is used in LHS | |
6431 | or RHS, if so, then build array notation expression instead of | |
6432 | regular modify. | |
6433 | (c_parser_postfix_expression_after_primary): Added a check for | |
6434 | colon(s) after square braces, if so then handle it like an array | |
6435 | notation. Also, break up array notations in unary op if found. | |
6436 | (c_parser_direct_declarator_inner): Added a check for array | |
6437 | notation. | |
6438 | (c_parser_compound_statement): Added a check for array notation in | |
6439 | a stmt. If one is present, then expand array notation expr. | |
6440 | (c_parser_if_statement): Likewise. | |
6441 | (c_parser_switch_statement): Added a check for array notations in | |
6442 | a switch statement's condition. If true, then output an error. | |
6443 | (c_parser_while_statement): Similarly, but for a while. | |
6444 | (c_parser_do_statement): Similarly, but for a do-while. | |
6445 | (c_parser_for_statement): Similarly, but for a for-loop. | |
6446 | (c_parser_unary_expression): Check if array notation is used in a | |
6447 | pre-increment or pre-decrement expression. If true, then expand | |
6448 | them. | |
6449 | (c_parser_array_notation): New function. | |
6450 | * c-array-notation.c: New file. | |
6451 | * c-tree.h (is_cilkplus_reduce_builtin): Protoize. | |
ab20d992 | 6452 | |
cd192ccc MS |
6453 | 2013-05-23 Mike Stump <mikestump@comcast.net> |
6454 | ||
6455 | * c-typeck.c (convert_for_assignment): Handle references to memory | |
6456 | spaces better. | |
6457 | ||
427b248d JM |
6458 | 2013-05-16 Jason Merrill <jason@redhat.com> |
6459 | ||
6460 | * Make-lang.in (cc1$(exeext)): Use link mutex. | |
6461 | ||
44d90fe1 PC |
6462 | 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com> |
6463 | ||
6464 | * c-typeck.c (pointer_diff): Change -Wpointer-arith pedwarns | |
6465 | to simply use OPT_Wpointer_arith. | |
6466 | (build_unary_op): Likewise. | |
6467 | ||
4e7d7b3d JJ |
6468 | 2013-04-03 Jakub Jelinek <jakub@redhat.com> |
6469 | ||
6470 | PR c/19449 | |
6471 | * c-parser.c (c_parser_get_builtin_args): Add choose_expr_p | |
6472 | argument. If set, or it temporarily for parsing of the first | |
6473 | argument into force_folding_builtin_constant_p. | |
6474 | (c_parser_postfix_expression): Adjust callers. | |
6475 | ||
839b422f RB |
6476 | 2013-03-21 Richard Biener <rguenther@suse.de> |
6477 | ||
6478 | * c-objc-common.c (c_tree_printer): Use DECL_HAS_DEBUG_EXPR_P | |
6479 | instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly. | |
6480 | ||
2ee028f1 MP |
6481 | 2013-02-12 Marek Polacek <polacek@redhat.com> |
6482 | ||
6483 | PR c/44938 | |
6484 | * c-parser.c (c_parser_postfix_expression_after_primary): Initialize | |
6485 | origtypes to NULL. | |
6486 | ||
8824edff JJ |
6487 | 2013-01-24 Jakub Jelinek <jakub@redhat.com> |
6488 | ||
6489 | PR c/56078 | |
6490 | * c-typeck.c (set_nonincremental_init_from_string): If | |
6491 | constructor_max_index is NULL, treat it as if tree_int_cst_lt | |
6492 | returned false. | |
6493 | (process_init_element): Likewise. | |
6494 | ||
eadd3d0d JJ |
6495 | 2012-12-20 Jakub Jelinek <jakub@redhat.com> |
6496 | ||
6497 | PR c++/55619 | |
6498 | * c-parser.c (c_parser_asm_operands): Remove CONVERT_P | |
6499 | argument, don't call default_function_array_conversion | |
6500 | nor c_fully_fold here. | |
6501 | (c_parser_asm_statement): Adjust callers. | |
6502 | * c-typeck.c (build_asm_expr): Call c_fully_fold on inputs | |
6503 | and outputs here, and call default_function_array_conversion | |
6504 | on inputs that don't need to be addressable. | |
6505 | ||
f8a93a2e JJ |
6506 | 2012-12-18 Jakub Jelinek <jakub@redhat.com> |
6507 | ||
6508 | PR c/39464 | |
6509 | * c-typeck.c (convert_for_assignment): For -Wpointer-sign | |
6510 | warning require that both c_common_unsigned_type as well as | |
6511 | c_common_signed_type is the same for both mvl and mvr types. | |
6512 | ||
9771b263 DN |
6513 | 2012-11-16 Diego Novillo <dnovillo@google.com> |
6514 | ||
6515 | Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec) | |
6516 | ||
6517 | * c-common.c: Use new vec API in vec.h. | |
6518 | * c-common.h: Likewise. | |
6519 | * c-gimplify.c: Likewise. | |
6520 | * c-pragma.c: Likewise. | |
6521 | * c-pretty-print.c: Likewise. | |
6522 | * c-pretty-print.h: Likewise. | |
6523 | * c-semantics.c: Likewise. | |
6524 | * c-decl.c: Likewise. | |
6525 | * c-parser.c: Likewise. | |
6526 | * c-tree.h: Likewise. | |
6527 | * c-typeck.c: Likewise. | |
6528 | ||
880661a4 JW |
6529 | 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com> |
6530 | ||
6531 | PR c++/54930 | |
6532 | * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr. | |
6533 | ||
077d1abe MLI |
6534 | 2012-10-29 Manuel López-Ibáñez <manu@gcc.gnu.org> |
6535 | ||
6536 | PR c/53066 | |
6537 | * c-decl.c (warn_if_shadowing): Do not warn if a variable | |
6538 | shadows a function, unless the variable is a function or a | |
6539 | pointer-to-function. | |
6540 | ||
3a785c97 JJ |
6541 | 2012-10-12 Jakub Jelinek <jakub@redhat.com> |
6542 | ||
6543 | PR c/54381 | |
6544 | * c-parser.c (struct c_tree_loc_pair): Removed. | |
6545 | (c_parser_expr_list): Remove struct c_tree_loc_pair * argument, | |
6546 | add location_t * and tree * arguments, fill in array of 3 | |
6547 | sizeof_arg trees and corresponding locs. | |
6548 | (c_parser_attributes, c_parser_objc_keywordexpr): Adjust | |
6549 | c_parser_expr_list callers. | |
6550 | (c_parser_postfix_expression_after_primary): Likewise. Pass | |
6551 | array of 3 sizeof_arg trees and locs (corresponding to first | |
6552 | 3 arguments) to sizeof_pointer_memaccess_warning. | |
6553 | ||
703c8606 LC |
6554 | 2012-10-09 Lawrence Crowl <crowl@google.com> |
6555 | ||
6556 | * Make-lang.in (c-decl.o): Add dependence on hash-table.h. | |
6557 | * c-decl.c (detect_field_duplicates_hash): Change to new type-safe | |
6558 | hash table. | |
6559 | ||
5d9de0d0 PC |
6560 | 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com> |
6561 | ||
6562 | PR c++/54194 | |
6563 | * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses | |
6564 | call. | |
6565 | ||
a212e43f MG |
6566 | 2012-10-09 Marc Glisse <marc.glisse@inria.fr> |
6567 | ||
6568 | PR c++/54427 | |
6569 | * c-typeck.c: Include c-common.h. | |
6570 | (enum stv_conv): Moved to c-common.h. | |
6571 | (scalar_to_vector): Moved to c-common.c. | |
6572 | (build_binary_op): Adapt to scalar_to_vector's new prototype. | |
6573 | * Make-lang.in: c-typeck.c depends on c-common.h. | |
6574 | ||
3b78de56 AC |
6575 | 2012-10-04 Arnaud Charlet <charlet@adacore.com> |
6576 | ||
6577 | * c-decl.c (c_write_global_declarations): Fix handling of | |
6578 | -fdump-ada-spec*. | |
6579 | ||
78c60e3d SS |
6580 | 2012-09-30 Sharad Singhai <singhai@google.com> |
6581 | ||
6582 | * c-decl.c (c_write_global_declarations): Use a different method | |
6583 | to determine if the dump has ben initialized. | |
6584 | ||
9f33203d JM |
6585 | 2012-09-14 Joseph Myers <joseph@codesourcery.com> |
6586 | ||
6587 | PR c/54552 | |
6588 | * c-typeck.c (c_cast_expr): When casting to a type requiring | |
6589 | C_MAYBE_CONST_EXPR to be created, pass the inner expression to | |
6590 | c_fully_fold first. | |
6591 | ||
a27d595d JM |
6592 | 2012-09-14 Joseph Myers <joseph@codesourcery.com> |
6593 | ||
6594 | PR c/54103 | |
6595 | * c-typeck.c (build_unary_op): Pass original argument of | |
6596 | TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove | |
6597 | any C_MAYBE_CONST_EXPR, if it has integer operands. | |
6598 | (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR, | |
6599 | TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR | |
6600 | to c_objc_common_truthvalue_conversion, then remove any | |
6601 | C_MAYBE_CONST_EXPR, if they have integer operands. Use | |
6602 | c_objc_common_truthvalue_conversion not | |
6603 | c_common_truthvalue_conversion. | |
6604 | (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and | |
6605 | call note_integer_operands for arguments with integer operands | |
6606 | that are not integer constants. | |
6607 | ||
9feb29df JJ |
6608 | 2012-09-13 Jakub Jelinek <jakub@redhat.com> |
6609 | ||
6610 | PR c/54559 | |
6611 | * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or | |
6612 | COMPLEX_TYPE with in_late_binary_op set temporarily to true. | |
6613 | ||
d409320c JJ |
6614 | 2012-08-31 Jakub Jelinek <jakub@redhat.com> |
6615 | ||
6616 | PR c/54428 | |
6617 | * c-convert.c (convert): Don't call fold_convert_loc if | |
6618 | TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e | |
6619 | is a COMPLEX_EXPR. Remove TYPE_MAIN_VARIANT check from | |
6620 | COMPLEX_TYPE -> COMPLEX_TYPE conversion. | |
6621 | ||
6265d07c JJ |
6622 | 2012-08-24 Jakub Jelinek <jakub@redhat.com> |
6623 | ||
6624 | PR c/54355 | |
6625 | * c-decl.c (c_parser_label): Pass true as nested and fix up comments | |
6626 | for nested and empty_ok arguments in the call to | |
6627 | c_parser_declaration_or_fndef. | |
6628 | ||
1a4049e7 JJ |
6629 | 2012-08-17 Jakub Jelinek <jakub@redhat.com> |
6630 | ||
6631 | * c-tree.h (c_last_sizeof_arg): Declare. | |
6632 | * c-parser.c (struct c_tree_loc_pair): New type. | |
6633 | (c_parser_expr_list): Add sizeof_arg argument. Fill it in if | |
6634 | non-NULL. | |
6635 | (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers. | |
6636 | (c_parser_postfix_expression_after_primary): Likewise. Call | |
6637 | sizeof_pointer_memaccess_warning if needed. | |
6638 | (sizeof_ptr_memacc_comptypes): New function. | |
6639 | * c-typeck.c (c_last_sizeof_arg): New global variable. | |
6640 | (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it. | |
6641 | ||
0229aee9 UB |
6642 | 2012-07-24 Uros Bizjak <ubizjak@gmail.com> |
6643 | ||
6644 | * c-lang.h (lang_decl): Add variable_size GTY option. | |
6645 | ||
7ee2468b SB |
6646 | 2012-07-16 Steven Bosscher <steven@gcc.gnu.org> |
6647 | ||
6648 | * c-decl.c: Include dumpfile.h instead of tree-dump.h. | |
6649 | * Make-lang.in: Fix dependencies. | |
6650 | ||
d4a10d0a SB |
6651 | 2012-06-29 Steven Bosscher <steven@gcc.gnu.org> |
6652 | ||
6653 | * Make-lang.in: New file, rules migrated from gcc/Makefile.in | |
6654 | and add language Makefile hooks. | |
6655 | * config-lang.in: New file. | |
6656 | * c-config-lang.in: Moved from gcc/config-lang.in to here, and | |
6657 | add the required "normal" config-lang.in rules. | |
6658 | * c-lang.h: Moved from gcc/ to here. | |
6659 | * c-tree.h: Likewise. | |
6660 | * c-objc-common.c: Likewise. | |
6661 | * c-objc-common.h: Likewise. | |
6662 | * c-typeck.c: Likewise. | |
6663 | * c-convert.c: Likewise. | |
6664 | * c-lang.c: Likewise. | |
6665 | * c-aux-info.c: Likewise. | |
6666 | * c-errors.c: Likewise. | |
6667 | * gccspec.c: Likewise. | |
6668 | * c-decl.c: Likewise. Include gt-c-c-decl.h, not gt-c-decl.h. | |
6669 | * c-parser.c: Likewise. Include gt-c-c-parser.h, not gt-c-parser.h. | |
6670 | \f | |
a5544970 | 6671 | Copyright (C) 2012-2019 Free Software Foundation, Inc. |
d4a10d0a SB |
6672 | |
6673 | Copying and distribution of this file, with or without modification, | |
6674 | are permitted in any medium without royalty provided the copyright | |
6675 | notice and this notice are preserved. |