]>
Commit | Line | Data |
---|---|---|
f84e2f0b GA |
1 | 2021-09-09 qing zhao <qing.zhao@oracle.com> |
2 | ||
3 | * c-attribs.c (handle_uninitialized_attribute): New function. | |
4 | (c_common_attribute_table): Add "uninitialized" attribute. | |
5 | ||
b6db7cd4 GA |
6 | 2021-09-08 liuhongt <hongtao.liu@intel.com> |
7 | ||
8 | * c-common.c (excess_precision_mode_join): Update below comments. | |
9 | (c_ts18661_flt_eval_method): Set excess_precision_type to | |
10 | EXCESS_PRECISION_TYPE_FLOAT16 when -fexcess-precision=16. | |
11 | * c-cppbuiltin.c (cpp_atomic_builtins): Update below comments. | |
12 | (c_cpp_flt_eval_method_iec_559): Set excess_precision_type to | |
13 | EXCESS_PRECISION_TYPE_FLOAT16 when -fexcess-precision=16. | |
14 | ||
b2748138 GA |
15 | 2021-09-07 Marcel Vollweiler <marcel@codesourcery.com> |
16 | ||
17 | * c-omp.c (c_finish_omp_flush): Handle MEMMODEL_SEQ_CST. | |
18 | ||
7b739540 GA |
19 | 2021-09-03 Eric Botcazou <ebotcazou@adacore.com> |
20 | ||
21 | * c-ada-spec.c (dump_ads): Generate pragmas to disable style checks | |
22 | and -gnatwu warning for the package specification. | |
23 | ||
e11c6046 GA |
24 | 2021-09-01 Iain Sandoe <iain@sandoe.co.uk> |
25 | ||
26 | * c-attribs.c (handle_unavailable_attribute): New. | |
27 | ||
1e2f030b GA |
28 | 2021-08-30 Jason Merrill <jason@redhat.com> |
29 | ||
30 | * c.opt: Add -Wmissing-requires. | |
31 | ||
85d77ac4 GA |
32 | 2021-08-25 Lewis Hyatt <lhyatt@gmail.com> |
33 | ||
34 | PR other/93067 | |
35 | * c-opts.c (c_common_input_charset_cb): New function. | |
36 | (c_common_post_options): Call new function | |
37 | diagnostic_initialize_input_context(). | |
38 | ||
7c9e1645 GA |
39 | 2021-08-20 Tobias Burnus <tobias@codesourcery.com> |
40 | ||
41 | * c-format.c (gcc_gfc_length_specs): Add 'll' and 'w'. | |
42 | (gcc_gfc_char_table): Add T9L_LL and T9L_ULL to | |
43 | "di" and "u", respecitively; fill with BADLEN to match | |
44 | size of 'types'. | |
45 | (get_init_dynamic_hwi): Split off from ... | |
46 | (init_dynamic_diag_info): ... here. Call it. | |
47 | (init_dynamic_gfc_info): Call it. | |
48 | ||
49 | 2021-08-20 Jakub Jelinek <jakub@redhat.com> | |
50 | ||
51 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_ERROR. | |
52 | * c-pragma.c (omp_pragmas): Add error directive. | |
53 | * c-omp.c (omp_directives): Uncomment error directive entry. | |
54 | ||
6e529985 GA |
55 | 2021-08-18 Jakub Jelinek <jakub@redhat.com> |
56 | ||
57 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_NOTHING. | |
58 | * c-pragma.c (omp_pragmas): Add nothing directive. | |
59 | * c-omp.c (omp_directives): Uncomment nothing directive entry. | |
60 | ||
2d14d64b GA |
61 | 2021-08-17 Jakub Jelinek <jakub@redhat.com> |
62 | ||
63 | PR c++/101539 | |
64 | * c-common.h (enum rid): Add RID_IS_LAYOUT_COMPATIBLE. | |
65 | * c-common.c (c_common_reswords): Add __is_layout_compatible. | |
66 | ||
67 | 2021-08-17 Matt Jacobson <mhjacobson@me.com> | |
68 | ||
69 | * c-opts.c (c_common_post_options): Default to | |
70 | flag_objc_sjlj_exceptions = 1 only when flag_objc_abi < 2. | |
71 | ||
72 | 2021-08-17 Jakub Jelinek <jakub@redhat.com> | |
73 | ||
74 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_SCOPE. | |
75 | * c-pragma.c (omp_pragmas): Add scope construct. | |
76 | * c-omp.c (omp_directives): Uncomment scope directive entry. | |
77 | ||
9d1d9fc8 GA |
78 | 2021-08-16 Sebastian Huber <sebastian.huber@embedded-brains.de> |
79 | ||
80 | * c-cppbuiltin.c (c_cpp_builtins): Define | |
81 | __LIBGCC_GCOV_TYPE_SIZE if flag_building_libgcc is true. | |
82 | ||
72be20e2 GA |
83 | 2021-08-12 Jakub Jelinek <jakub@redhat.com> |
84 | ||
85 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_MASKED. | |
86 | (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FILTER. | |
87 | * c-pragma.c (omp_pragmas_simd): Add masked construct. | |
88 | * c-common.h (enum c_omp_clause_split): Add C_OMP_CLAUSE_SPLIT_MASKED | |
89 | enumerator. | |
90 | (c_finish_omp_masked): Declare. | |
91 | * c-omp.c (c_finish_omp_masked): New function. | |
92 | (c_omp_split_clauses): Handle combined masked constructs. | |
93 | ||
4d17ca1b GA |
94 | 2021-07-30 Jakub Jelinek <jakub@redhat.com> |
95 | ||
96 | PR c++/101539 | |
97 | * c-common.h (enum rid): Add RID_IS_POINTER_INTERCONVERTIBLE_BASE_OF. | |
98 | * c-common.c (c_common_reswords): Add | |
99 | __is_pointer_interconvertible_base_of. | |
100 | ||
101 | 2021-07-29 Richard Biener <rguenther@suse.de> | |
102 | ||
103 | PR c/101512 | |
104 | * c-common.c (c_common_mark_addressable_vec): Look through | |
105 | C_MAYBE_CONST_EXPR even if not at the toplevel. | |
106 | ||
af3f12e6 GA |
107 | 2021-07-27 Martin Sebor <msebor@redhat.com> |
108 | ||
109 | PR c/101585 | |
110 | * c-warn.c (warn_parm_ptrarray_mismatch): Use OEP_DECL_NAME. | |
111 | ||
ead235f6 GA |
112 | 2021-07-23 Jakub Jelinek <jakub@redhat.com> |
113 | ||
114 | * c-lex.c (c_common_has_attribute): Call canonicalize_attr_name also | |
115 | on attr_id. Return 1 for omp::directive or omp::sequence in C++11 | |
116 | and later. | |
117 | ||
118 | 2021-07-23 Jakub Jelinek <jakub@redhat.com> | |
119 | ||
120 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP__START_ and | |
121 | PRAGMA_OMP__LAST_ enumerators. | |
122 | ||
419c6c68 GA |
123 | 2021-07-21 Thomas Schwinge <thomas@codesourcery.com> |
124 | Joseph Myers <joseph@codesourcery.com> | |
125 | Cesar Philippidis <cesar@codesourcery.com> | |
126 | ||
127 | * c-pragma.h (pragma_omp_clause): Add 'PRAGMA_OACC_CLAUSE_NOHOST'. | |
128 | ||
92d45509 GA |
129 | 2021-07-20 Martin Sebor <msebor@redhat.com> |
130 | ||
131 | * c-common.c (c_build_shufflevector): Adjust by-value argument to | |
132 | by-const-reference. | |
133 | * c-common.h (c_build_shufflevector): Same. | |
134 | ||
87277b6a GA |
135 | 2021-07-16 Andrew Pinski <apinski@marvell.com> |
136 | ||
137 | PR c/101453 | |
138 | * c-common.c (parse_optimize_options): Use the correct | |
139 | size for buffer. | |
140 | ||
d97d71a1 GA |
141 | 2021-07-15 Martin Sebor <msebor@redhat.com> |
142 | ||
143 | PR c/101289 | |
144 | PR c/97548 | |
145 | * c-warn.c (warn_parm_array_mismatch): Use OEP_DECL_NAME. | |
146 | ||
c4fee1c6 GA |
147 | 2021-07-14 Jason Merrill <jason@redhat.com> |
148 | ||
149 | * c-opts.c (c_common_post_options): Set -fdelete-dead-exceptions. | |
150 | ||
6fba0eea GA |
151 | 2021-07-06 Martin Sebor <msebor@redhat.com> |
152 | ||
153 | * c-format.c (gcc_tdiag_char_table): Remove support for %G and %K. | |
154 | (gcc_cdiag_char_table): Same. | |
155 | (gcc_cxxdiag_char_table): Same. | |
156 | ||
7a60a6e8 GA |
157 | 2021-07-02 Jakub Jelinek <jakub@redhat.com> |
158 | ||
159 | * c-common.h (enum c_omp_directive_kind): New enum. | |
160 | (struct c_omp_directive): New type. | |
161 | (c_omp_categorize_directive): Declare. | |
162 | * c-omp.c (omp_directives): New variable. | |
163 | (c_omp_categorize_directive): New function. | |
164 | ||
bea7c16a GA |
165 | 2021-07-01 Eric Botcazou <ebotcazou@adacore.com> |
166 | ||
167 | * c-ada-spec.c (packed_layout): New global variable. | |
168 | (dump_ada_declaration): Set it upon seeing a packed record type. | |
169 | Do not put the "aliased" keyword if it is set. | |
170 | (dump_ada_structure): Add Pack aspect if it is set and clear it. | |
171 | ||
172 | 2021-07-01 Eric Botcazou <ebotcazou@adacore.com> | |
173 | ||
174 | * c-ada-spec.c (check_name): Rename into... | |
175 | (check_type_name_conflict): ...this. Minor tweak. | |
176 | (dump_ada_function_declaration): Adjust to above renaming. | |
177 | (dump_ada_array_domains): Fix oversight. | |
178 | (dump_ada_declaration): Call check_type_name_conflict for variables. | |
179 | ||
90708f87 GA |
180 | 2021-06-25 Martin Sebor <msebor@redhat.com> |
181 | ||
182 | * c-common.c (c_wrap_maybe_const): Remove TREE_NO_WARNING. | |
183 | (c_common_truthvalue_conversion): Replace direct uses of | |
184 | TREE_NO_WARNING with warning_suppressed_p, suppress_warning, and | |
185 | copy_no_warning. | |
186 | (check_function_arguments_recurse): Same. | |
187 | * c-gimplify.c (c_gimplify_expr): Same. | |
188 | * c-warn.c (overflow_warning): Same. | |
189 | (warn_logical_operator): Same. | |
190 | (warn_if_unused_value): Same. | |
191 | (do_warn_unused_parameter): Same. | |
192 | ||
9aa8327e GA |
193 | 2021-06-24 Jakub Jelinek <jakub@redhat.com> |
194 | ||
195 | * c-common.h (enum c_omp_region_type): Add C_ORT_TARGET and | |
196 | C_ORT_OMP_TARGET. | |
197 | * c-omp.c (c_omp_split_clauses): For OMP_CLAUSE_IN_REDUCTION on | |
198 | combined target constructs also add map (always, tofrom:) clause. | |
199 | ||
ede6c356 GA |
200 | 2021-06-15 Robin Dapp <rdapp@linux.ibm.com> |
201 | ||
202 | * c-attribs.c (common_handle_aligned_attribute): Remove short | |
203 | circuit and dead code. | |
204 | ||
8dc48181 GA |
205 | 2021-06-14 Jonathan Wakely <jwakely@redhat.com> |
206 | ||
207 | PR c++/101052 | |
208 | * known-headers.cc (get_stdlib_header_for_name): Add known | |
209 | headers for EXIT_FAILURE, EXIT_SUCCESS, abort, atexit, calloc, | |
210 | exit, and getenv. | |
211 | ||
8b8c3912 GA |
212 | 2021-06-12 Jason Merrill <jason@redhat.com> |
213 | ||
214 | * c-attribs.c (handle_unused_attribute): Handle FIELD_DECL. | |
215 | ||
f16f65f8 GA |
216 | 2021-06-11 Jakub Jelinek <jakub@redhat.com> |
217 | ||
218 | PR c++/100974 | |
219 | * c-cppbuiltin.c (c_cpp_builtins): Predefine __cpp_if_consteval for | |
220 | -std=c++2b for P1938R3 consteval if support. | |
221 | ||
4f625f47 GA |
222 | 2021-06-09 Jason Merrill <jason@redhat.com> |
223 | ||
224 | PR c++/100879 | |
225 | * c-warn.c (warn_for_sign_compare): Remove C++ enum mismatch | |
226 | warning. | |
227 | ||
438aac59 GA |
228 | 2021-06-07 Martin Liska <mliska@suse.cz> |
229 | ||
230 | * c-target.def: Split long lines and replace them | |
231 | with '\n\'. | |
232 | ||
600f90cb GA |
233 | 2021-06-04 Martin Sebor <msebor@redhat.com> |
234 | ||
235 | PR c/100783 | |
236 | * c-attribs.c (positional_argument): Bail on erroneous types. | |
237 | ||
238 | 2021-06-04 Martin Sebor <msebor@redhat.com> | |
239 | ||
240 | * c-warn.c (warn_parm_array_mismatch): Check TREE_PURPOSE to test | |
241 | for element presence. | |
242 | ||
440c8a0a GA |
243 | 2021-06-03 Eric Botcazou <ebotcazou@adacore.com> |
244 | ||
245 | * c-ada-spec.c (dump_ada_macros): Minor tweaks. | |
246 | (dump_ada_decl_name): Likewise. | |
247 | (dump_anonymous_type_name): Remove parent parameter and adjust. | |
248 | (dump_sloc): Minor tweak. | |
249 | (dump_ada_array_type): Remove type parameter and adjust. | |
250 | (dump_ada_enum_type): Remove parent parameter and adjust. | |
251 | (dump_ada_node): Adjust calls to above functions. | |
252 | (dumped_anonymous_types): New global variable. | |
253 | (dump_nested_types_1): Rename into... | |
254 | (dump_nested_types): ...this. | |
255 | (dump_nested_type): Remove parent and dumped_types parameters. | |
256 | <ARRAY_TYPE>: Replace dumped_types with dumped_anonymous_types. | |
257 | Adjust calls to dump_anonymous_type_name and dump_ada_array_type. | |
258 | (dump_ada_specs): Initialize and free dumped_anonymous_types. | |
259 | ||
260 | 2021-06-03 Eric Botcazou <ebotcazou@adacore.com> | |
261 | ||
262 | * c-ada-spec.c (pp_ada_tree_identifier): Tidy up. | |
263 | (dump_ada_node) <POINTER_TYPE>: Deal specially with external subtypes. | |
264 | ||
265 | 2021-06-03 Eric Botcazou <ebotcazou@adacore.com> | |
266 | ||
267 | * c-ada-spec.c (dump_ada_enum_type): Dump a prefix for constants. | |
268 | (htable_t): New typedef. | |
269 | (overloaded_names): Use it. | |
270 | (add_name): New function. | |
271 | (init_overloaded_names): Use add_name to populate the table and add | |
272 | special cases for sigaction and stat. | |
273 | (overloaded_name_p): Rename into... | |
274 | (overloading_index): ...this. Do not initialize overloaded_names table | |
275 | here. Return the index or zero. | |
276 | (dump_ada_declaration): Minor tweaks. Do not skip overloaded functions | |
277 | but add an overloading suffix instead. | |
278 | (dump_ada_specs): Initialize overloaded_names tables here. | |
279 | ||
b75978d1 GA |
280 | 2021-06-01 Martin Liska <mliska@suse.cz> |
281 | ||
282 | PR other/100759 | |
283 | * c-attribs.c (handle_optimize_attribute): Limit sanity check | |
284 | to a situation where we are not in processing of an optimize | |
285 | pragma. | |
286 | * c-pragma.c (handle_pragma_pop_options): Restore target | |
287 | options. | |
288 | ||
ee682192 GA |
289 | 2021-05-31 Indu Bhagat <indu.bhagat@oracle.com> |
290 | ||
291 | PR testsuite/100749 | |
292 | * c-pch.c (c_common_valid_pch): Use xstrdup for debug format set names. | |
293 | ||
294 | 2021-05-31 Richard Biener <rguenther@suse.de> | |
295 | ||
296 | PR c++/88601 | |
297 | * c-common.c: Include tree-vector-builder.h and | |
298 | vec-perm-indices.h. | |
299 | (c_common_reswords): Add __builtin_shufflevector. | |
300 | (c_build_shufflevector): New funtion. | |
301 | * c-common.h (enum rid): Add RID_BUILTIN_SHUFFLEVECTOR. | |
302 | (c_build_shufflevector): Declare. | |
303 | ||
48166757 GA |
304 | 2021-05-28 Jakub Jelinek <jakub@redhat.com> |
305 | ||
306 | PR middle-end/99928 | |
307 | * c-omp.c (c_omp_split_clauses): For reduction clause if combined with | |
308 | target add a map tofrom clause with OMP_CLAUSE_MAP_IMPLICIT. | |
309 | ||
310 | 2021-05-28 Tobias Burnus <tobias@codesourcery.com> | |
311 | ||
312 | * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_AFFINITY. | |
313 | ||
2bc6dace GA |
314 | 2021-05-25 Martin Liska <mliska@suse.cz> |
315 | ||
316 | PR tree-optimization/92860 | |
317 | PR target/99592 | |
318 | * c-attribs.c (handle_optimize_attribute): Save target node | |
319 | before calling parse_optimize_options and save it in case | |
320 | it changes. | |
321 | * c-pragma.c (handle_pragma_target): Similarly for pragma. | |
322 | (handle_pragma_pop_options): Likewise here. | |
323 | ||
324 | 2021-05-25 Martin Liska <mliska@suse.cz> | |
325 | ||
326 | * c-attribs.c (handle_no_sanitize_coverage_attribute): New. | |
327 | ||
328 | 2021-05-25 Jakub Jelinek <jakub@redhat.com> | |
329 | ||
330 | PR middle-end/99928 | |
331 | * c-omp.c (c_omp_split_clauses): Copy reduction to teams when teams is | |
332 | combined with simd and not with taskloop or for. | |
333 | ||
2832d51b GA |
334 | 2021-05-21 Jakub Jelinek <jakub@redhat.com> |
335 | ||
336 | PR middle-end/99928 | |
337 | * c-omp.c (c_omp_split_clauses): Set OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT | |
338 | on firstprivate clause copy going to target construct, and for | |
339 | target simd set also OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET bit. | |
340 | ||
ea34e2ed GA |
341 | 2021-05-20 Jonathan Wakely <jwakely@redhat.com> |
342 | ||
343 | * c.opt (Wc++11-extensions, Wc++14-extensions) | |
344 | (Wc++17-extensions, Wc++20-extensions, Wc++23-extensions): New | |
345 | options. | |
346 | ||
347 | 2021-05-20 Indu Bhagat <indu.bhagat@oracle.com> | |
348 | ||
349 | * c-lex.c (init_c_lex): Use dwarf_debuginfo_p. | |
350 | ||
351 | 2021-05-20 Indu Bhagat <indu.bhagat@oracle.com> | |
352 | ||
353 | * c-opts.c (c_common_post_options): Adjust access to debug_type_names. | |
354 | * c-pch.c (struct c_pch_validity): Use type uint32_t. | |
355 | (pch_init): Renamed member. | |
356 | (c_common_valid_pch): Adjust access to debug_type_names. | |
357 | ||
65f32e5d GA |
358 | 2021-05-19 Martin Sebor <msebor@redhat.com> |
359 | ||
360 | PR c/100619 | |
361 | * c-attribs.c (build_attr_access_from_parms): Handle arbitrarily many | |
362 | bounds. | |
363 | ||
a8daf9a1 GA |
364 | 2021-05-18 Richard Biener <rguenther@suse.de> |
365 | ||
366 | PR c/100547 | |
367 | * c-attribs.c (type_valid_for_vector_size): Reject too large nunits. | |
368 | Reword existing nunit diagnostic. | |
369 | ||
a7ffc1ef GA |
370 | 2021-05-17 Joern Rennecke <joern.rennecke@embecosm.com> |
371 | ||
372 | * c-common.c (braced_list_to_string): Return CTOR unchanged | |
373 | if host and target character sizes don't match. | |
374 | ||
87a7d10c GA |
375 | 2021-05-14 Martin Liska <mliska@suse.cz> |
376 | ||
377 | * c.opt: Add Warning keyword for 2 options. | |
378 | ||
f9af11c7 GA |
379 | 2021-05-13 Martin Liska <mliska@suse.cz> |
380 | ||
381 | PR middle-end/100504 | |
382 | * c-attribs.c (handle_target_clones_attribute): Expect a string | |
383 | argument to target_clone argument. | |
384 | ||
037e3661 GA |
385 | 2021-05-11 Joseph Myers <joseph@codesourcery.com> |
386 | ||
387 | * c-lex.c (interpret_float): Handle digit separators for C2X. | |
388 | ||
aa891c56 GA |
389 | 2021-05-10 Martin Liska <mliska@suse.cz> |
390 | ||
391 | * c-ada-spec.c (print_destructor): Use startswith | |
392 | function instead of strncmp. | |
393 | (dump_ada_declaration): Likewise. | |
394 | * c-common.c (disable_builtin_function): Likewise. | |
395 | (def_builtin_1): Likewise. | |
396 | * c-format.c (check_tokens): Likewise. | |
397 | (check_plain): Likewise. | |
398 | (convert_format_name_to_system_name): Likewise. | |
399 | ||
e4ff4ffb GA |
400 | 2021-04-28 Patrick McGehearty <patrick.mcgehearty@oracle.com> |
401 | ||
402 | * c-cppbuiltin.c (c_cpp_builtins): Add supporting macros for new | |
403 | complex divide | |
404 | ||
c0fa3f2f GA |
405 | 2021-04-26 Thomas Schwinge <thomas@codesourcery.com> |
406 | Nathan Sidwell <nathan@codesourcery.com> | |
407 | Tom de Vries <vries@codesourcery.com> | |
408 | Julian Brown <julian@codesourcery.com> | |
409 | Kwok Cheung Yeung <kcy@codesourcery.com> | |
410 | ||
411 | * c.opt (Wopenacc-parallelism): New. | |
412 | ||
6e81e015 GA |
413 | 2021-04-19 Thomas Schwinge <thomas@codesourcery.com> |
414 | ||
415 | * c.opt (fopenacc-kernels=): Remove. | |
416 | ||
019a9220 GA |
417 | 2021-04-08 Jakub Jelinek <jakub@redhat.com> |
418 | ||
419 | * c-warn.c (do_warn_double_promotion): Fix comment typo, | |
420 | occured -> occurred. | |
421 | (check_alignment_of_packed_member): Fix a comment typo, | |
422 | memeber -> member. | |
423 | (warn_parm_ptrarray_mismatch): Fix comment typos, os -> of | |
424 | and onless -> unless. | |
425 | (warn_parm_array_mismatch): Fix comment typos, declaratation | |
426 | -> declaration and woud -> would. Fix up comment indentation. | |
427 | ||
428 | 2021-04-08 Martin Sebor <msebor@redhat.com> | |
429 | ||
430 | PR middle-end/99883 | |
431 | * c.opt (Wmismatched-new-delete): Correct spelling. | |
432 | ||
b1da9916 GA |
433 | 2021-04-05 Eric Botcazou <ebotcazou@adacore.com> |
434 | ||
435 | * c-ada-spec.c (is_simple_enum): Minor tweaks. | |
436 | (dump_ada_enum_type): Add TYPE and PARENT parameters. For non-simple | |
437 | enumeral types use again the type name for the enumeration constants. | |
438 | (dump_ada_node): Adjust call to dump_ada_enum_type. | |
439 | (dump_nested_type): Likewise. | |
440 | ||
f1607029 GA |
441 | 2021-04-01 Jason Merrill <jason@redhat.com> |
442 | ||
443 | PR c++/98481 | |
444 | * c-opts.c (c_common_post_options): Bump latest_abi_version. | |
445 | ||
4493b1c1 GA |
446 | 2021-03-25 Jakub Jelinek <jakub@redhat.com> |
447 | ||
448 | PR c++/99565 | |
449 | * c-warn.c (do_warn_duplicated_branches): Pass also | |
450 | OEP_ADDRESS_OF_SAME_FIELD to operand_equal_p. | |
451 | ||
6af7b307 GA |
452 | 2021-03-20 Jakub Jelinek <jakub@redhat.com> |
453 | ||
454 | PR debug/99230 | |
455 | * c-gimplify.c (c_genericize_control_stmt): Handle STATEMENT_LIST. | |
456 | ||
ceae9533 GA |
457 | 2021-03-05 Eric Botcazou <ebotcazou@adacore.com> |
458 | ||
459 | * c-ada-spec.c (dump_ada_declaration) <TYPE_DECL>: Dump nested types | |
460 | after entering the separate class package, if any. | |
461 | ||
67f10d28 GA |
462 | 2021-03-04 Richard Biener <rguenther@suse.de> |
463 | ||
464 | * c-pretty-print.c (c_pretty_printer::direct_abstract_declarator): | |
465 | Handle ERROR_MARK. | |
466 | ||
467 | 2021-03-04 Jakub Jelinek <jakub@redhat.com> | |
468 | ||
469 | PR c/99325 | |
470 | * c-ppoutput.c (print): Change src_line type from int to unsigned. | |
471 | (token_streamer::stream) Likewise. | |
472 | (maybe_print_line_1): Likewise. Don't strcmp src_file if src_loc is | |
473 | UNKNOWN_LOCATION. | |
474 | ||
f3641ac7 GA |
475 | 2021-03-03 Jakub Jelinek <jakub@redhat.com> |
476 | ||
477 | PR c/99324 | |
478 | * c-common.c (build_va_arg): Call c_common_mark_addressable_vec | |
479 | instead of mark_addressable. Fix a comment typo - | |
480 | neutrallly -> neutrally. | |
481 | ||
2c83c3fb GA |
482 | 2021-02-28 Jakub Jelinek <jakub@redhat.com> |
483 | ||
484 | PR c/99304 | |
485 | * c-attribs.c (handle_malloc_attribute): Fix a typo in inform | |
486 | message - refernced -> referenced. Remove superfluous space before | |
487 | closing paren of function calls. | |
488 | ||
daa68844 GA |
489 | 2021-02-25 Nathan Sidwell <nathan@acm.org> |
490 | ||
491 | PR c++/99166 | |
492 | * c.opt (-flang-info-module-cmi): Renamed option. | |
493 | ||
50352c6c GA |
494 | 2021-02-19 Nathan Sidwell <nathan@acm.org> |
495 | ||
496 | * c.opt (flang-info-module-read, flang-info-module-read=): New. | |
497 | ||
bf81237e GA |
498 | 2021-02-18 H.J. Lu <hjl.tools@gmail.com> |
499 | ||
500 | PR target/99113 | |
501 | * c-attribs.c (c_common_attribute_table): Add the "retain" | |
502 | attribute. | |
503 | (handle_retain_attribute): New function. | |
504 | ||
0e804ce3 GA |
505 | 2021-02-16 Marek Polacek <polacek@redhat.com> |
506 | ||
507 | PR c++/99062 | |
508 | * c-attribs.c (handle_assume_aligned_attribute): Check that the | |
509 | alignment argument is non-negative. Tweak a warning message. | |
510 | ||
fab095da GA |
511 | 2021-02-12 Martin Sebor <msebor@redhat.com> |
512 | ||
513 | PR c/99055 | |
514 | * c-warn.c (warn_parm_array_mismatch): Free strings returned from | |
515 | print_generic_expr_to_str. | |
516 | ||
4b37c3ea GA |
517 | 2021-02-10 Richard Biener <rguenther@suse.de> |
518 | ||
519 | * c-common.c (parse_optimize_options): Free decoded_options. | |
520 | ||
a19dd5e6 GA |
521 | 2021-02-04 emsr <3dw4rd@verizon.net> |
522 | ||
523 | * c-cppbuiltin.c (c_cpp_builtins): __cpp_size_t_suffix=202011L. | |
524 | ||
9faaa807 GA |
525 | 2021-02-03 Ed Smith-Rowland <3dw4rd@verizon.net> |
526 | ||
527 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_size_t_suffix. | |
528 | * c-lex.c (interpret_integer): Set node type for size literal. | |
529 | ||
85d04a2e GA |
530 | 2021-01-28 Jakub Jelinek <jakub@redhat.com> |
531 | ||
532 | * c.opt (-std=c++2a, -std=c++20, -std=gnu++2a, -std=gnu++20): Remove | |
533 | draft from description. | |
534 | (-std=c++2b): Fix a pasto, 2020 -> 2023. | |
535 | ||
e62bb7f0 GA |
536 | 2021-01-26 Paul Fee <paul.f.fee@gmail.com> |
537 | ||
538 | * c-common.h (cxx_dialect): Add cxx23 as a dialect. | |
539 | * c.opt: Add options for -std=c++23, std=c++2b, -std=gnu++23 | |
540 | and -std=gnu++2b | |
541 | * c-opts.c (set_std_cxx23): New. | |
542 | (c_common_handle_option): Set options when -std=c++23 is enabled. | |
543 | (c_common_post_options): Adjust comments. | |
544 | (set_std_cxx20): Likewise. | |
545 | ||
161e4c08 GA |
546 | 2021-01-25 Martin Sebor <msebor@redhat.com> |
547 | ||
548 | PR c++/98646 | |
549 | * c-common.c (check_nonnull_arg): Adjust warning text. | |
550 | ||
4c9bcd5c GA |
551 | 2021-01-17 Martin Sebor <msebor@redhat.com> |
552 | ||
553 | * c-pretty-print.c (c_pretty_printer::primary_expression): Don't | |
554 | assume SSA_NAME_IDENTIFIER evaluates to nonzero. | |
555 | ||
59cf67d1 GA |
556 | 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com> |
557 | ||
558 | * c-pragma.h (pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_DETACH. | |
559 | Redefine PRAGMA_OACC_CLAUSE_DETACH. | |
560 | ||
2f7f0d32 GA |
561 | 2021-01-15 Jakub Jelinek <jakub@redhat.com> |
562 | ||
563 | PR tree-optimization/98597 | |
564 | * c-pretty-print.c: Include options.h. | |
565 | (c_fold_indirect_ref_for_warn): New function. | |
566 | (print_mem_ref): Use it. If it returns something that has compatible | |
567 | type and is TBAA compatible with zero offset, print it and return, | |
568 | otherwise print it using offsetof syntax or array ref syntax. Fix up | |
569 | printing if MEM_REFs first operand is ADDR_EXPR, or when the first | |
570 | argument has pointer to array type. Print pointers using the standard | |
571 | formatting. | |
572 | ||
6851dda2 GA |
573 | 2021-01-12 Martin Sebor <msebor@redhat.com> |
574 | ||
575 | PR c/98597 | |
576 | PR c/98592 | |
577 | * c-pretty-print.c (print_mem_ref): Avoid assuming MEM_REF operand | |
578 | has pointer type. Remove redundant code. Avoid calling | |
579 | gimple_canonical_types_compatible_p. | |
580 | ||
7d187e4f GA |
581 | 2021-01-07 Martin Sebor <msebor@redhat.com> |
582 | ||
583 | PR middle-end/98578 | |
584 | * c-pretty-print.c (print_mem_ref): Strip array from access type. | |
585 | Avoid assuming acces type's size is constant. Correct condition | |
586 | guarding the printing of a parenthesis. | |
587 | ||
942ae5be GA |
588 | 2021-01-06 Martin Sebor <msebor@redhat.com> |
589 | ||
590 | PR c++/95768 | |
591 | * c-pretty-print.c (c_pretty_printer::primary_expression): For | |
592 | SSA_NAMEs print VLA names and GIMPLE defining statements. | |
593 | (print_mem_ref): New function. | |
594 | (c_pretty_printer::unary_expression): Call it. | |
595 | ||
596 | 2021-01-06 Richard Biener <rguenther@suse.de> | |
597 | ||
598 | PR tree-optimization/95582 | |
599 | * c-attribs.c (c_common_attribute_table): Add entry for | |
600 | signed_bool_precision. | |
601 | (handle_signed_bool_precision_attribute): New. | |
602 | ||
8daa719b GA |
603 | 2020-12-24 Iain Sandoe <iain@sandoe.co.uk> |
604 | ||
605 | * c.opt: Add -stdlib= option and enumerations for | |
606 | libstdc++ and libc++. | |
607 | ||
eefe499f GA |
608 | 2020-12-16 Martin Liska <mliska@suse.cz> |
609 | ||
610 | * c.opt: Remove usage of Report. | |
611 | ||
d52945ce GA |
612 | 2020-12-14 Martin Sebor <msebor@redhat.com> |
613 | ||
614 | PR middle-end/98166 | |
615 | PR c++/57111 | |
616 | PR middle-end/98160 | |
617 | * c-attribs.c (maybe_add_noinline): New function. | |
618 | (handle_malloc_attribute): Call it. Use ATTR_FLAG_INTERNAL. | |
619 | Implicitly add attribute noinline to functions not declared inline | |
620 | and warn on those. | |
621 | ||
ca2bd949 GA |
622 | 2020-12-09 Tobias Burnus <tobias@codesourcery.com> |
623 | ||
624 | * c-pragma.c (omp_pragmas): Add 'allocate'. | |
625 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_ALLOCATE. | |
626 | ||
f6e8e279 GA |
627 | 2020-12-08 Jakub Jelinek <jakub@redhat.com> |
628 | ||
629 | PR c++/98187 | |
630 | * c-pragma.c (omp_pragmas): Remove "master". | |
631 | (omp_pragmas_simd): Add "master". | |
632 | ||
bc8a7013 GA |
633 | 2020-12-07 Marek Polacek <polacek@redhat.com> |
634 | ||
635 | PR c++/98126 | |
636 | * c-common.c (verify_tree_lim_r): New function. | |
637 | (verify_sequence_points): Use it. Use nullptr instead of 0. | |
638 | ||
b8dd0ef7 GA |
639 | 2020-12-03 Martin Sebor <msebor@redhat.com> |
640 | ||
641 | PR c++/90629 | |
642 | PR middle-end/94527 | |
643 | * c-attribs.c (handle_dealloc_attribute): New function. | |
644 | (handle_malloc_attribute): Handle argument forms of attribute. | |
645 | * c.opt (-Wmismatched-dealloc): New option. | |
646 | (-Wmismatched-new-delete): New option. | |
647 | ||
648 | 2020-12-03 Jakub Jelinek <jakub@redhat.com> | |
649 | ||
650 | PR libstdc++/93121 | |
651 | * c-common.h (enum rid): Add RID_BUILTIN_BIT_CAST. | |
652 | * c-common.c (c_common_reswords): Add __builtin_bit_cast. | |
653 | ||
e0f5e792 GA |
654 | 2020-12-01 JeanHeyd Meneide <phdofthehouse@gmail.com> |
655 | ||
656 | * c-cppbuiltin.c (c_cpp_builtins): Add predefined | |
657 | {__GNUC_EXECUTION_CHARSET_NAME} and | |
658 | _WIDE_EXECUTION_CHARSET_NAME} macros. | |
659 | ||
660 | 2020-12-01 Nathan Sidwell <nathan@acm.org> | |
661 | ||
662 | * c-common.c (module, import, export): New internal tokens (with | |
663 | trailing space). | |
664 | * c-common.h (RID__MODULE, RID__IMPORT & RID__EXPORT): Enumerate | |
665 | them. | |
666 | (D_CXX_MODULES, D_CXX_MODULES_FLAGS): Enable them. | |
667 | * c-cppbuiltin.c (c_cpp_builtins): Feature macro. | |
668 | ||
669 | 2020-12-01 Nathan Sidwell <nathan@acm.org> | |
670 | ||
671 | * c-opts.c (c_common_init_options): Ask for module dependencies. | |
672 | (c_common_handle_option): Handle -Mmodules -Mno-modules. | |
673 | * c-pch.c (c_common_valid_pch): ... does not play with C++ | |
674 | modules. | |
675 | * c.opt (Mmodules, Mno-modules): New preprocessor dependency | |
676 | options. | |
677 | (fmodules-ts, fmodule-header, fmodule-implicit-inline) | |
678 | (fmodule-only, fmodule-mapper, fmodule-lazy) | |
679 | (fmodule-version-ignore, Winvalid-imported-macros) | |
680 | (flang-info-include-translate, flang-info-include-translate-not): | |
681 | New options | |
682 | ||
5fbf0ecb GA |
683 | 2020-11-28 Eric Botcazou <ebotcazou@adacore.com> |
684 | ||
685 | * c-ada-spec.c (dump_nested_type) <RECORD_TYPE>: Remove obsolete code. | |
686 | (dump_ada_structure): Also deal with convention, unchecked union and | |
687 | bit-field for nested types. In the latter case, print an Alignment | |
688 | aspect along with the Pack aspect. | |
689 | ||
360258da GA |
690 | 2020-11-25 Martin Sebor <msebor@redhat.com> |
691 | ||
692 | PR bootstrap/94982 | |
693 | * c-attribs.c (handle_patchable_function_entry_attribute): Avoid | |
694 | -Wformat-diag. | |
695 | ||
1e2c9a27 GA |
696 | 2020-11-24 Martin Sebor <msebor@redhat.com> |
697 | ||
698 | * c-warn.c (warn_parm_array_mismatch): Avoid invalid redeclarations. | |
699 | ||
8e6198d0 GA |
700 | 2020-11-23 Jozef Lawrynowicz <jozef.l@mittosystems.com> |
701 | ||
702 | * c-attribs.c (handle_special_var_sec_attribute): New. | |
703 | (handle_noinit_attribute): Remove. | |
704 | (attr_noinit_exclusions): Rename to... | |
705 | (attr_section_exclusions): ...this, and add "persistent" attribute | |
706 | exclusion. | |
707 | (c_common_attribute_table): Add "persistent" attribute. | |
708 | ||
7a97e2fc GA |
709 | 2020-11-21 Aaron Sawdey <acsawdey@linux.ibm.com> |
710 | ||
711 | * c-pretty-print.c (c_pretty_printer::simple_type_specifier): | |
712 | Treat opaque types like other types. | |
713 | (c_pretty_printer::direct_abstract_declarator): Opaque types are | |
714 | supported types. | |
715 | ||
82e5048e GA |
716 | 2020-11-20 Martin Sebor <msebor@redhat.com> |
717 | ||
718 | * c-warn.c (warn_parm_array_mismatch): Bail on invalid redeclarations | |
719 | with fewer arguments. | |
720 | ||
721 | 2020-11-20 Martin Sebor <msebor@redhat.com> | |
722 | ||
723 | PR middle-end/97879 | |
724 | * c-attribs.c (handle_access_attribute): Handle ATTR_FLAG_INTERNAL. | |
725 | Error out on invalid modes. | |
726 | ||
727 | 2020-11-20 Jakub Jelinek <jakub@redhat.com> | |
728 | ||
729 | PR libstdc++/88101 | |
730 | * c-common.c (check_builtin_function_arguments): Handle | |
731 | BUILT_IN_CLEAR_PADDING. | |
732 | ||
25bb75f8 GA |
733 | 2020-11-18 Nathan Sidwell <nathan@acm.org> |
734 | ||
735 | * c-lex.c (c_lex_with_flags): CPP_HEADER_NAMEs can now be seen. | |
736 | ||
4dabb037 GA |
737 | 2020-11-17 Nathan Sidwell <nathan@acm.org> |
738 | ||
739 | * c-common.h (enum c_tree_index): Reorder to place lazy fields | |
740 | after newly-added CTI_MODULE_HWM. | |
741 | ||
742 | 2020-11-17 Joseph Myers <joseph@codesourcery.com> | |
743 | ||
744 | * c-cppbuiltin.c (builtin_define_float_constants): Define | |
745 | "*_IS_IEC_60559__" macros. | |
746 | ||
747 | 2020-11-17 Nathan Sidwell <nathan@acm.org> | |
748 | ||
749 | * c-lex.c: #include "langhooks.h". | |
750 | (cb_undef): Maybe call preprocess_undef lang hook. | |
751 | * c-opts.c (c_common_post_options): Maybe call preprocess_options | |
752 | lang hook. | |
753 | (push_command_line_include): Maybe call preprocess_main_file lang | |
754 | hook. | |
755 | (cb_file_change): Likewise. | |
756 | * c-ppoutput.c: #include "langhooks.h. | |
757 | (scan_translation_unit): Maybe call preprocess_token lang hook. | |
758 | (class do_streamer): New, derive from token_streamer. | |
759 | (directives_only_cb): Data pointer is do_streamer, call | |
760 | preprocess_token lang hook. | |
761 | (scan_translation_unit_directives_only): Use do_streamer. | |
762 | (print_line_1): Move src_line recording to after string output. | |
763 | (cb_undef): Maybe call preprocess_undef lang hook. | |
764 | ||
765 | 2020-11-17 Nathan Sidwell <nathan@acm.org> | |
766 | ||
767 | * c-ppoutput.c (scan_translation_unit): Use token_streamer, remove | |
768 | code duplicating that functionality. | |
769 | ||
770 | 2020-11-17 Jakub Jelinek <jakub@redhat.com> | |
771 | ||
772 | PR c/90628 | |
773 | * c-common.c (check_builtin_function_arguments) | |
774 | <case BUILT_IN_ADD_OVERFLOW>: Diagnose when last argument is pointer | |
775 | to _Atomic. For the TYPE_READONLY case, adjust message to be usable | |
776 | for more builtins and argument positions. | |
777 | ||
29c5d9ce GA |
778 | 2020-11-16 Iain Sandoe <iain@sandoe.co.uk> |
779 | ||
780 | PR objc/97854 | |
781 | * stub-objc.c: Include c-common.h to declare enum rid. | |
782 | ||
77f67db2 GA |
783 | 2020-11-13 Jakub Jelinek <jakub@redhat.com> |
784 | ||
785 | PR c++/63287 | |
786 | * c-cppbuiltin.c: Include configargs.h. | |
787 | (c_cpp_builtins): For C++11 and later if THREAD_MODEL_SPEC is not | |
788 | defined, predefine __STDCPP_THREADS__ to 1 unless thread_model is | |
789 | "single". | |
790 | ||
791 | 2020-11-13 Gergö Barany <gergo@codesourcery.com> | |
792 | Thomas Schwinge <thomas@codesourcery.com> | |
793 | ||
794 | * c.opt (fopenacc-kernels): Add. | |
795 | ||
796 | 2020-11-13 Jason Merrill <jason@redhat.com> | |
797 | ||
798 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_using_enum. | |
799 | ||
800 | 2020-11-13 Piotr H. Dabrowski <phd@phd.re> | |
801 | ||
802 | PR c++/91318 | |
803 | * c-cppbuiltin.c: c_cpp_builtins_optimize_pragma(): use cpp_define_unused() | |
804 | ||
805 | 2020-11-13 Martin Liska <mliska@suse.cz> | |
806 | ||
807 | * c-attribs.c (build_attr_access_from_parms): Format properly. | |
808 | ||
809 | 2020-11-13 Iain Sandoe <iain@sandoe.co.uk> | |
810 | ||
811 | PR objc/90707 | |
812 | * c-common.c (c_common_reswords): null_unspecified, nullable, | |
813 | nonnull, null_resettable: New keywords. | |
814 | * c-common.h (enum rid): RID_NULL_UNSPECIFIED, RID_NULLABLE, | |
815 | RID_NONNULL, RID_NULL_RESETTABLE: New. | |
816 | (OBJC_IS_PATTR_KEYWORD): Include nullability keywords in the | |
817 | ranges accepted for property attributes. | |
818 | * c-attribs.c (handle_objc_nullability_attribute): New. | |
819 | * c-objc.h (enum objc_property_attribute_group): Add | |
820 | OBJC_PROPATTR_GROUP_NULLABLE. | |
821 | (enum objc_property_attribute_kind):Add | |
822 | OBJC_PROPERTY_ATTR_NULL_UNSPECIFIED, OBJC_PROPERTY_ATTR_NULLABLE, | |
823 | OBJC_PROPERTY_ATTR_NONNULL, OBJC_PROPERTY_ATTR_NULL_RESETTABLE. | |
824 | ||
825 | 2020-11-13 Iain Sandoe <iain@sandoe.co.uk> | |
826 | ||
827 | PR objc/77404 | |
828 | * c-attribs.c (handle_objc_root_class_attribute): New | |
829 | * c-objc.h (objc_start_class_interface): Add a location | |
830 | value for the position of the class name. | |
831 | * c.opt: Add Wobjc-root-class. | |
832 | * stub-objc.c (objc_start_class_interface): Add a location | |
833 | value for the position of the class name. | |
834 | ||
a5a11525 GA |
835 | 2020-11-12 Joseph Myers <joseph@codesourcery.com> |
836 | ||
837 | * c-lex.c (c_common_has_attribute): Take argument std_syntax. | |
838 | Allow scope for C. Handle standard attributes for C. Do not | |
839 | accept unscoped attributes if std_syntax and not handled as | |
840 | standard attributes. | |
841 | * c-common.h (c_common_has_attribute): Update prototype. | |
842 | ||
843 | 2020-11-12 Nicholas Guriev <guriev-ns@ya.ru> | |
844 | ||
845 | PR pch/86674 | |
846 | * c-pch.c (c_common_valid_pch): Use cpp_warning with CPP_W_INVALID_PCH | |
847 | reason to fix -Werror=invalid-pch and -Wno-error=invalid-pch switches. | |
848 | ||
0f5f9ed5 GA |
849 | 2020-11-11 Patrick Palka <ppalka@redhat.com> |
850 | ||
851 | PR c++/88115 | |
852 | * c-opts.c (c_common_post_options): Update latest_abi_version. | |
853 | ||
bb622641 GA |
854 | 2020-11-10 Jakub Jelinek <jakub@redhat.com> |
855 | ||
856 | PR c/97748 | |
857 | * c-common.h (warn_if_unused_value): Add quiet argument defaulted | |
858 | to false. | |
859 | * c-warn.c (warn_if_unused_value): Likewise. Pass it down | |
860 | recursively and just return true instead of warning if it is true. | |
861 | Handle COMPLEX_EXPR. | |
862 | ||
863 | 2020-11-10 Chung-Lin Tang <cltang@codesourcery.com> | |
864 | ||
865 | * c-common.h (c_omp_adjust_map_clauses): New declaration. | |
866 | * c-omp.c (struct map_clause): Helper type for c_omp_adjust_map_clauses. | |
867 | (c_omp_adjust_map_clauses): New function. | |
868 | ||
2bee28dd GA |
869 | 2020-11-09 Marek Polacek <polacek@redhat.com> |
870 | ||
871 | DR 1914 | |
872 | * c-common.c (attribute_fallthrough_p): Tweak the warning | |
873 | message. | |
874 | ||
875 | 2020-11-09 Patrick Palka <ppalka@redhat.com> | |
876 | ||
877 | * c-pragma.c (handle_pragma_diagnostic): Split the | |
878 | unknown-option -Wpragmas diagnostic into a warning and a | |
879 | subsequent note containing a spelling suggestion. Avoid | |
880 | computing the suggestion if -Wpragmas warnings are being | |
881 | suppressed. | |
882 | ||
883 | 2020-11-09 Patrick Palka <ppalka@redhat.com> | |
884 | ||
885 | PR testsuite/97117 | |
886 | * c-indentation.c (get_visual_column): Remove location_t | |
887 | parameter. Move the column-tracking diagnostic code from here | |
888 | to ... | |
889 | (should_warn_for_misleading_indentation): ... here, before the | |
890 | early exit for when the loci are not all distinct. Don't pass a | |
891 | location_t argument to get_visual_column. | |
892 | (assert_get_visual_column_succeeds): Don't pass a location_t | |
893 | argument to get_visual_column. | |
894 | (assert_get_visual_column_fails): Likewise. | |
895 | ||
fb95de7a GA |
896 | 2020-11-08 Iain Sandoe <iain@sandoe.co.uk> |
897 | ||
898 | * c-common.h (OBJC_IS_PATTR_KEYWORD): Add class to the list | |
899 | of keywords accepted in @property attribute contexts. | |
900 | * c-objc.h (enum objc_property_attribute_group): Add | |
901 | OBJC_PROPATTR_GROUP_CLASS. | |
902 | (enum objc_property_attribute_kind): Add | |
903 | OBJC_PROPERTY_ATTR_CLASS. | |
904 | ||
2da7ee05 GA |
905 | 2020-11-07 Iain Sandoe <iain@sandoe.co.uk> |
906 | ||
907 | * c-common.c (c_common_reswords): Add 'atomic' property | |
908 | attribute. | |
909 | * c-common.h (enum rid): Add RID_PROPATOMIC for atomic | |
910 | property attributes. | |
911 | ||
912 | 2020-11-07 Iain Sandoe <iain@sandoe.co.uk> | |
913 | ||
914 | * c-attribs.c (handle_nsobject_attribute): New. | |
915 | * c.opt: Add WNSObject-attribute. | |
916 | ||
44cab2d8 GA |
917 | 2020-11-06 Iain Sandoe <iain@sandoe.co.uk> |
918 | ||
919 | * c-objc.h (enum objc_property_attribute_group): New | |
920 | (enum objc_property_attribute_kind): New. | |
921 | (OBJC_PROPATTR_GROUP_MASK): New. | |
922 | (struct property_attribute_info): Small class encapsulating | |
923 | parser output from property attributes. | |
924 | (objc_prop_attr_kind_for_rid): New | |
925 | (objc_add_property_declaration): Simplify interface. | |
926 | * stub-objc.c (enum rid): Dummy type. | |
927 | (objc_add_property_declaration): Simplify interface. | |
928 | (objc_prop_attr_kind_for_rid): New. | |
929 | ||
930 | 2020-11-06 Nathan Sidwell <nathan@acm.org> | |
931 | ||
932 | * c-ada-spec.c (collect_ada_nodes): Rename | |
933 | DECL_IS_BUILTIN->DECL_IS_UNDECLARED_BUILTIN. | |
934 | (collect_ada_node): Likewise. | |
935 | (dump_forward_type): Likewise. | |
936 | * c-common.c (set_underlying_type): Rename | |
937 | DECL_IS_BUILTIN->DECL_IS_UNDECLARED_BUILTIN. | |
938 | (user_facing_original_type, c_common_finalize_early_debug): Likewise. | |
939 | ||
940 | 2020-11-06 Jakub Jelinek <jakub@redhat.com> | |
941 | ||
942 | * c-common.c (verify_sequence_points): Remove DEBUG_FUNCTION. | |
943 | ||
0cfd9109 GA |
944 | 2020-11-05 Marek Polacek <polacek@redhat.com> |
945 | ||
946 | PR c++/97675 | |
947 | * c.opt (Wexceptions): New option. | |
948 | ||
949 | 2020-11-05 Marek Polacek <polacek@redhat.com> | |
950 | ||
951 | PR c++/25814 | |
952 | * c.opt (Wvexing-parse): New option. | |
953 | ||
35c125cb GA |
954 | 2020-11-04 Jakub Jelinek <jakub@redhat.com> |
955 | ||
956 | PR c++/97670 | |
957 | * c-omp.c (c_omp_split_clauses): Look through array reductions to find | |
958 | underlying decl to clear in the allocate_head bitmap. | |
959 | ||
960 | 2020-11-04 Iain Sandoe <iain@sandoe.co.uk> | |
961 | ||
962 | * c-objc.h (objc_non_constant_expr_p): New. | |
963 | * stub-objc.c (objc_non_constant_expr_p): New. | |
964 | ||
fd2325ea GA |
965 | 2020-11-03 Nathan Sidwell <nathan@acm.org> |
966 | ||
967 | * c.opt (MQ,MT): Reword description to be make-agnostic. | |
968 | ||
88ce3d5f GA |
969 | 2020-11-02 Nathan Sidwell <nathan@acm.org> |
970 | ||
971 | * c-opts.c (c_common_post_options): Move var decl to its | |
972 | initialization point. | |
973 | ||
974 | 2020-11-01 Iain Sandoe <iain@sandoe.co.uk> | |
975 | ||
976 | * c-lex.c (c_lex_with_flags): When combining '@' with a | |
977 | keyword for Objective-C, combine the location ranges too. | |
978 | ||
979 | 2020-10-30 Qing Zhao <qing.zhao@oracle.com> | |
980 | H.J.Lu <hjl.tools@gmail.com> | |
981 | ||
982 | * c-attribs.c (c_common_attribute_table): Add new attribute | |
983 | zero_call_used_regs. | |
984 | (handle_zero_call_used_regs_attribute): New function. | |
985 | ||
e93aae4a GA |
986 | 2020-10-28 Marek Polacek <polacek@redhat.com> |
987 | ||
988 | PR c++/97573 | |
989 | * c-opts.c (c_common_post_options): In C++20, turn on | |
990 | -Wdeprecated-enum-enum-conversion and | |
991 | -Wdeprecated-enum-float-conversion. | |
992 | * c.opt (Wdeprecated-enum-enum-conversion, | |
993 | Wdeprecated-enum-float-conversion): New options. | |
994 | (Wenum-conversion): Allow for C++ too. | |
995 | ||
996 | 2020-10-28 Jakub Jelinek <jakub@redhat.com> | |
997 | ||
998 | * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALLOCATE. | |
999 | * c-omp.c: Include bitmap.h. | |
1000 | (c_omp_split_clauses): Handle OMP_CLAUSE_ALLOCATE. | |
1001 | ||
f19e7c8d GA |
1002 | 2020-10-26 Ville Voutilainen <ville.voutilainen@gmail.com> |
1003 | ||
1004 | * c-common.c (__is_nothrow_assignable): New. | |
1005 | (__is_nothrow_constructible): Likewise. | |
1006 | * c-common.h (RID_IS_NOTHROW_ASSIGNABLE): New. | |
1007 | (RID_IS_NOTHROW_CONSTRUCTIBLE): Likewise. | |
1008 | ||
efe71fcc GA |
1009 | 2020-10-23 Jan Hubicka <hubicka@ucw.cz> |
1010 | ||
1011 | * c-common.c (c_common_finalize_early_debug): Update for new thunk api. | |
1012 | ||
1013 | 2020-10-23 Marek Polacek <polacek@redhat.com> | |
1014 | ||
1015 | PR c++/91741 | |
1016 | * c-common.c (verify_tree): Handle PAREN_SIZEOF_EXPR. | |
1017 | (c_common_init_ts): Likewise. | |
1018 | * c-common.def (PAREN_SIZEOF_EXPR): New tree code. | |
1019 | * c-common.h (maybe_warn_sizeof_array_div): Declare. | |
1020 | * c-warn.c (sizeof_pointer_memaccess_warning): Unwrap NOP_EXPRs. | |
1021 | (maybe_warn_sizeof_array_div): New function. | |
1022 | * c.opt (Wsizeof-array-div): New option. | |
1023 | ||
1024 | 2020-10-23 Martin Sebor <msebor@redhat.com> | |
1025 | ||
1026 | PR c/97463 | |
1027 | * c-warn.c (warn_parm_ptrarray_mismatch): Move null test earlier. | |
1028 | ||
56ddd5e2 GA |
1029 | 2020-10-22 Martin Liska <mliska@suse.cz> |
1030 | ||
1031 | PR c/94722 | |
1032 | * c-attribs.c (handle_no_stack_protect_function_attribute): New. | |
1033 | (handle_stack_protect_attribute): Add error message for a | |
1034 | no_stack_protector function. | |
1035 | ||
1036 | 2020-10-22 Martin Liska <mliska@suse.cz> | |
1037 | ||
1038 | * c-cppbuiltin.c (c_cpp_builtins): Use the stack_protector enum. | |
1039 | ||
1040 | 2020-10-22 Jan Hubicka <hubicka@ucw.cz> | |
1041 | ||
1042 | * c-gimplify.c: Include tree-nested.h | |
1043 | (c_genericize): Update for new nested function info. | |
1044 | ||
b2698c21 GA |
1045 | 2020-10-14 Martin Sebor <msebor@redhat.com> |
1046 | ||
1047 | PR c/97413 | |
1048 | * c-attribs.c (build_attr_access_from_parms): Wrap chain of VLA | |
1049 | bounds in an extra list. | |
1050 | ||
7e9282ae GA |
1051 | 2020-10-05 Richard Biener <rguenther@suse.de> |
1052 | Jakub Jelinek <jakub@redhat.com> | |
1053 | ||
1054 | PR c++/97197 | |
1055 | * c-pretty-print.c: Include langhooks.h. | |
1056 | (c_pretty_printer::postfix_expression): Handle TARGET_MEM_REF as | |
1057 | expression. | |
1058 | (c_pretty_printer::expression): Handle TARGET_MEM_REF as | |
1059 | unary_expression. | |
1060 | (c_pretty_printer::unary_expression): Handle TARGET_MEM_REF. | |
1061 | ||
660bfe61 GA |
1062 | 2020-09-30 Martin Sebor <msebor@redhat.com> |
1063 | ||
1064 | PR middle-end/97189 | |
1065 | * c-attribs.c (append_access_attr): Use the function declaration | |
1066 | location for a warning about an attribute access argument. | |
1067 | ||
93bca37c GA |
1068 | 2020-09-29 Marek Polacek <polacek@redhat.com> |
1069 | ||
1070 | PR c++/94695 | |
1071 | * c.opt (Wrange-loop-construct): New option. | |
1072 | ||
82b77dee GA |
1073 | 2020-09-23 Martin Sebor <msebor@redhat.com> |
1074 | ||
1075 | PR c/97131 | |
1076 | * c-warn.c (warn_parm_ptrarray_mismatch): Handle more invalid input. | |
1077 | ||
1078 | 2020-09-23 Marek Polacek <polacek@redhat.com> | |
1079 | ||
1080 | PR c/97125 | |
1081 | * c-gimplify.c (c_genericize): Only call do_warn_duplicated_branches_r | |
1082 | after loops and other structured control constructs have been lowered. | |
1083 | ||
521d2711 GA |
1084 | 2020-09-22 Jakub Jelinek <jakub@redhat.com> |
1085 | ||
1086 | * c.opt (Wbuiltin-declaration-mismatch): Fix typo in variable name: | |
1087 | warn_builtin_declaraion_mismatch -> warn_builtin_declaration_mismatch. | |
1088 | ||
44135373 GA |
1089 | 2020-09-21 Marek Polacek <polacek@redhat.com> |
1090 | ||
1091 | * c.opt (Wctad-maybe-unsupported): New option. | |
1092 | ||
2fe5b7d1 GA |
1093 | 2020-09-19 Martin Sebor <msebor@redhat.com> |
1094 | ||
1095 | PR c/50584 | |
1096 | * c-common.h (warn_parm_array_mismatch): Declare new function. | |
1097 | (has_attribute): Move declaration of an existing function. | |
1098 | (build_attr_access_from_parms): Declare new function. | |
1099 | * c-warn.c (parm_array_as_string): Define new function. | |
1100 | (plus_one): Define new function. | |
1101 | (warn_parm_ptrarray_mismatch): Define new function. | |
1102 | (warn_parm_array_mismatch): Define new function. | |
1103 | (vla_bound_parm_decl): New function. | |
1104 | * c.opt (-Warray-parameter, -Wvla-parameter): New options. | |
1105 | * c-pretty-print.c (pp_c_type_qualifier_list): Don't print array type | |
1106 | qualifiers here... | |
1107 | (c_pretty_printer::direct_abstract_declarator): ...but instead print | |
1108 | them in brackets here. Also print [static]. Strip extraneous | |
1109 | expressions from VLA bounds. | |
1110 | ||
1111 | 2020-09-19 Martin Sebor <msebor@redhat.com> | |
1112 | ||
1113 | PR c/50584 | |
1114 | * c-attribs.c (c_common_attribute_table): Add "arg spec" attribute. | |
1115 | (handle_argspec_attribute): New function. | |
1116 | (get_argument, get_argument_type): New functions. | |
1117 | (append_access_attrs): Add overload. Handle internal attribute | |
1118 | representation in addition to external. | |
1119 | (handle_access_attribute): Handle internal attribute representation | |
1120 | in addition to external. | |
1121 | (build_attr_access_from_parms): New function. | |
1122 | ||
1123 | 2020-09-19 Sandra Loosemore <sandra@codesourcery.com> | |
1124 | ||
1125 | * c-gimplify.c (genericize_c_loop): Rewrite to match | |
1126 | c_finish_loop in c-typeck.c. | |
1127 | ||
1128 | 2020-09-19 Sandra Loosemore <sandra@codesourcery.com> | |
1129 | ||
1130 | * c-common.c (c_block_may_fallthrough): New, split from | |
1131 | cxx_block_may_fallthrough in the cp front end. | |
1132 | (c_common_init_ts): Move handling of loop and switch-related | |
1133 | statements here from the cp front end. | |
1134 | * c-common.def (FOR_STMT, WHILE_STMT, DO_STMT): Move here from | |
1135 | cp front end. | |
1136 | (BREAK_STMT, CONTINUE_STMT, SWITCH_STMT): Likewise. | |
1137 | * c-common.h (c_block_may_fallthru): Declare. | |
1138 | (bc_state_t): Move here from cp front end. | |
1139 | (save_bc_state, restore_bc_state): Declare. | |
1140 | (c_genericize_control_stmt): Declare. | |
1141 | (WHILE_COND, WHILE_BODY): Likewise. | |
1142 | (DO_COND, DO_BODY): Likewise. | |
1143 | (FOR_INIT_STMT, FOR_COND, FOR_EXPR, FOR_BODY, FOR_SCOPE): Likewise. | |
1144 | (SWITCH_STMT_COND, SWITCH_STMT_BODY): Likewise. | |
1145 | (SWITCH_STMT_TYPE, SWITCH_STMT_SCOPE): Likewise. | |
1146 | (SWITCH_STMT_ALL_CASES_P, SWITCH_STMT_NO_BREAK_P): Likewise. | |
1147 | (LABEL_DECL_BREAK, LABEL_DECL_CONTINUE): Likewise. | |
1148 | * c-dump.c (dump_stmt): Copy from cp front end. | |
1149 | (c_dump_tree): Move code to handle structured loop and switch | |
1150 | tree nodes here from cp front end. | |
1151 | * c-gimplify.c: Adjust includes. | |
1152 | (enum bc_t, bc_label, begin_bc_block, finish_bc_block): Move from | |
1153 | cp front end. | |
1154 | (save_bc_state, restore_bc_state): New functions using old code | |
1155 | from cp front end. | |
1156 | (get_bc_label, expr_loc_or_loc): Move from cp front end. | |
1157 | (genericize_c_loop): Move from cp front end. | |
1158 | (genericize_for_stmt, genericize_while_stmt): Likewise. | |
1159 | (genericize_do_stmt, genericize_switch_stmt): Likewise. | |
1160 | (genericize_continue_stmt, genericize_break_stmt): Likewise. | |
1161 | (genericize_omp_for_stmt): Likewise. | |
1162 | (c_genericize_control_stmt): New function using code split from | |
1163 | cp front end. | |
1164 | (c_genericize_control_r): New. | |
1165 | (c_genericize): Call walk_tree with c_genericize_control_r. | |
1166 | * c-pretty-print.c (c_pretty_printer::statement): Move code to handle | |
1167 | structured loop and switch tree nodes here from cp front end. | |
1168 | ||
2aad20c0 GA |
1169 | 2020-09-17 Patrick Palka <ppalka@redhat.com> |
1170 | ||
1171 | PR c/80076 | |
1172 | * c-indentation.c (should_warn_for_misleading_indentation): Move | |
1173 | declarations of local variables closer to their first use. | |
1174 | Handle virtual token locations by resolving them to their | |
1175 | respective macro expansion points. If all three tokens are | |
1176 | produced from the same macro expansion, then instead use their | |
1177 | loci within the macro definition. | |
1178 | ||
ecde1b0a GA |
1179 | 2020-09-16 Martin Sebor <msebor@redhat.com> |
1180 | ||
1181 | PR c/78666 | |
1182 | PR c/96126 | |
1183 | * c-attribs.c (validate_attr_args): New function. | |
1184 | (validate_attr_arg): Same. | |
1185 | (handle_section_attribute): Call it. Introduce a local variable. | |
1186 | (handle_alloc_size_attribute): Same. | |
1187 | (handle_alloc_align_attribute): Same. | |
1188 | ||
50a71cd0 GA |
1189 | 2020-09-14 Jakub Jelinek <jakub@redhat.com> |
1190 | ||
1191 | * c-attribs.c (handle_optimize_attribute): Adjust | |
1192 | cl_optimization_save, cl_optimization_restore and | |
1193 | build_optimization_node callers. | |
1194 | * c-pragma.c (handle_pragma_optimize): Adjust | |
1195 | build_optimization_node caller. | |
1196 | (handle_pragma_push_options): Adjust | |
1197 | build_optimization_node and build_target_option_node callers. | |
1198 | (handle_pragma_pop_options, handle_pragma_reset_options): | |
1199 | Adjust cl_optimization_restore callers. | |
1200 | ||
8f7ea26a GA |
1201 | 2020-08-28 Martin Sebor <msebor@redhat.com> |
1202 | ||
1203 | * c.opt (Wstringop-overread): New option. | |
1204 | ||
a6493809 GA |
1205 | 2020-08-11 Jakub Jelinek <jakub@redhat.com> |
1206 | ||
1207 | PR c/96545 | |
1208 | * c-common.c (get_atomic_generic_size): Require that first argument's | |
1209 | type points to a complete type and use tree_fits_uhwi_p instead of | |
1210 | just INTEGER_CST TREE_CODE check for the TYPE_SIZE_UNIT. | |
1211 | ||
48cc2e46 GA |
1212 | 2020-07-31 Martin Sebor <msebor@redhat.com> |
1213 | ||
1214 | PR c++/96003 | |
1215 | * c-common.c (check_function_arguments_recurse): Return early when | |
1216 | no-warning bit is set. | |
1217 | ||
1218 | 2020-07-31 Richard Biener <rguenther@suse.de> | |
1219 | ||
1220 | PR debug/96383 | |
1221 | * c-common.h (c_common_finalize_early_debug): Declare. | |
1222 | * c-common.c: Include debug.h. | |
1223 | (c_common_finalize_early_debug): finalize_early_debug langhook | |
1224 | implementation generating debug for extern declarations. | |
1225 | ||
e71dab87 GA |
1226 | 2020-07-27 Nathan Sidwell <nathan@acm.org> |
1227 | ||
1228 | * c-common.c (try_to_locate_new_include_insertion_point): Use | |
1229 | strcmp, not pointer equality. | |
1230 | ||
ae2e0bc1 GA |
1231 | 2020-07-25 Martin Sebor <msebor@redhat.com> |
1232 | ||
1233 | PR c++/96310 | |
1234 | * c-common.c (check_nonnull_arg): Print note only when warning was | |
1235 | issued. | |
1236 | ||
3ea9abca GA |
1237 | 2020-07-22 Tobias Burnus <tobias@codesourcery.com> |
1238 | ||
1239 | * c-omp.c (c_finish_omp_critical): Check for no name but | |
1240 | nonzero hint provided. | |
1241 | ||
0933f508 GA |
1242 | 2020-07-20 Jason Merrill <jason@redhat.com> |
1243 | ||
1244 | * c-cppbuiltin.c (c_cpp_builtins): Update | |
1245 | __cpp_nontype_template_args for C++20. | |
1246 | ||
1247 | 2020-07-20 Martin Sebor <msebor@redhat.com> | |
1248 | ||
1249 | PR c/96249 | |
1250 | * c.opt: Remove stray text. | |
1251 | ||
8ca07a30 GA |
1252 | 2020-07-14 Lewis Hyatt <lhyatt@gmail.com> |
1253 | ||
1254 | PR other/86904 | |
1255 | * c-indentation.c (should_warn_for_misleading_indentation): Get | |
1256 | global tabstop from the new source. | |
1257 | * c-opts.c (c_common_handle_option): Remove handling of -ftabstop, which | |
1258 | is now a common option. | |
1259 | * c.opt: Likewise. | |
1260 | ||
a82c4c4c | 1261 | 2020-07-08 Eric Botcazou <ebotcazou@adacore.com> |
50873cc5 GA |
1262 | |
1263 | * c.opt (Wscalar-storage-order): Add explicit variable. | |
1264 | ||
f60ee68d GA |
1265 | 2020-07-07 Nathan Sidwell <nathan@acm.org> |
1266 | ||
1267 | * c-opts.c (c_common_post_options): Add 'injecting' arg to | |
1268 | cpp_read_main_file. | |
1269 | (c_finish_options): Add linemap_line_start calls for builtin and cmd | |
1270 | maps. Force token position to line_table's highest line. | |
1271 | * c-ppoutput.c (print_line_1): Refactor, print line zero. | |
1272 | (cb_define): Always increment source line. | |
1273 | ||
4077d74c GA |
1274 | 2020-07-06 Martin Sebor <msebor@redhat.com> |
1275 | ||
1276 | PR c++/95984 | |
1277 | * c-common.c (check_function_nonnull): Avoid checking syntesized calls | |
1278 | to stub lambda objects with null this pointer. | |
1279 | (check_nonnull_arg): Handle C++ nullptr. | |
1280 | ||
b5f24739 GA |
1281 | 2020-07-02 Jason Merrill <jason@redhat.com> |
1282 | Jakub Jelinek <jakub@redhat.com> | |
1283 | ||
1284 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_consteval. | |
1285 | ||
46fbb6c6 GA |
1286 | 2020-06-30 Jakub Jelinek <jakub@redhat.com> |
1287 | ||
1288 | PR c++/95963 | |
1289 | * c-common.c (check_function_arguments_recurse): Don't crash on | |
1290 | calls to internal functions. | |
1291 | ||
69273534 GA |
1292 | 2020-06-28 Martin Sebor <msebor@redhat.com> |
1293 | ||
1294 | PR c++/86568 | |
1295 | * c-common.c (struct nonnull_arg_ctx): Add members. | |
1296 | (check_function_nonnull): Use nonnull_arg_ctx as argument. Handle | |
1297 | C++ member functions specially. Consider the this pointer implicitly | |
1298 | nonnull. | |
1299 | (check_nonnull_arg): Use location of argument when available. | |
1300 | (check_function_arguments): Use nonnull_arg_ctx as argument. | |
1301 | ||
9a33c41f GA |
1302 | 2020-06-27 Jakub Jelinek <jakub@redhat.com> |
1303 | ||
1304 | PR middle-end/95903 | |
1305 | * c-common.c (pointer_int_sum): Use TYPE_OVERFLOW_UNDEFINED instead of | |
1306 | !TYPE_UNSIGNED check to see if we can apply distributive law and handle | |
1307 | smaller precision intop operands separately. | |
1308 | ||
c9c05f73 GA |
1309 | 2020-06-26 Marek Polacek <polacek@redhat.com> |
1310 | ||
1311 | * c-opts.c (c_common_init_options): Default to gnu++17. | |
1312 | ||
aff95ee7 GA |
1313 | 2020-06-17 Jonathan Wakely <jwakely@redhat.com> |
1314 | ||
bd0a89dc | 1315 | PR c/95378 |
aff95ee7 GA |
1316 | * c-common.c (get_atomic_generic_size): Check cv-qualifiers in |
1317 | pointer arguments. | |
1318 | ||
56638b9b GA |
1319 | 2020-06-16 Jakub Jelinek <jakub@redhat.com> |
1320 | ||
1321 | * c-common.h (c_omp_check_loop_iv_exprs): Add an int argument. | |
1322 | * c-omp.c (struct c_omp_check_loop_iv_data): Add maybe_nonrect and | |
1323 | idx members. | |
1324 | (c_omp_is_loop_iterator): New function. | |
1325 | (c_omp_check_loop_iv_r): Use it. Add support for silent scanning | |
1326 | if outer loop iterator is present. Perform duplicate checking through | |
1327 | hash_set in the function rather than expecting caller to do that. | |
1328 | Pass NULL instead of d->ppset to walk_tree_1. | |
1329 | (c_omp_check_nonrect_loop_iv): New function. | |
1330 | (c_omp_check_loop_iv): Use it. Fill in new members, allow | |
1331 | non-rectangular loop forms, diagnose multiple associated loops with | |
1332 | the same iterator. Pass NULL instead of &pset to walk_tree_1. | |
1333 | (c_omp_check_loop_iv_exprs): Likewise. | |
1334 | ||
ec6ffbb9 GA |
1335 | 2020-06-10 Martin Liska <mliska@suse.cz> |
1336 | ||
1337 | PR tree-optimization/92860 | |
1338 | * c-attribs.c (handle_optimize_attribute): | |
1339 | Save global options and compare it after parsing of function | |
1340 | attribute. | |
1341 | * c-pragma.c (opt_stack::saved_global_options): New field. | |
1342 | (handle_pragma_push_options): Save global_options. | |
1343 | (handle_pragma_pop_options): Compare them after pop. | |
1344 | ||
b952c2cf GA |
1345 | 2020-06-09 Jakub Jelinek <jakub@redhat.com> |
1346 | ||
1347 | PR c/95580 | |
1348 | * c-pretty-print.c (c_pretty_printer::unary_expression): Handle the | |
1349 | case when MEM_REF's first argument has type pointer to incomplete type. | |
1350 | ||
1a59f3db GA |
1351 | 2020-06-05 Jason Merrill <jason@redhat.com> |
1352 | ||
1353 | * c-pretty-print.c (pp_c_additive_expression): Handle negative | |
1354 | operand to POINTER_PLUS_EXPR. | |
1355 | ||
3add3425 GA |
1356 | 2020-06-04 Martin Sebor <msebor@redhat.com> |
1357 | ||
1358 | PR middle-end/10138 | |
1359 | PR middle-end/95136 | |
1360 | * c-attribs.c (append_access_attrs): Handle attr_access::none. | |
1361 | (handle_access_attribute): Same. | |
1362 | ||
9a5b7438 GA |
1363 | 2020-06-03 Mark Wielaard <mark@klomp.org> |
1364 | ||
1365 | * known-headers.cc (get_cp_stdlib_header_for_string_macro_name): | |
1366 | New function. | |
1367 | * known-headers.h (get_cp_stdlib_header_for_string_macro_name): | |
1368 | New function declaration. | |
1369 | ||
1370 | 2020-06-03 Mark Wielaard <mark@klomp.org> | |
1371 | ||
1372 | * known-headers.cc (get_string_macro_hint): New function. | |
1373 | (get_stdlib_header_for_name): Use get_string_macro_hint. | |
1374 | (get_c_stdlib_header_for_string_macro_name): New function. | |
1375 | * known-headers.h (get_c_stdlib_header_for_string_macro_name): | |
1376 | New function declaration. | |
1377 | ||
1378 | 2020-06-03 Tobias Burnus <tobias@codesourcery.com> | |
1379 | ||
1380 | * c-common.h (c_omp_predetermined_mapping): Declare. | |
1381 | * c-omp.c (c_omp_predetermined_mapping): New. | |
1382 | ||
af114c38 MW |
1383 | 2020-05-22 Mark Wielaard <mark@klomp.org> |
1384 | ||
1385 | * known-headers.cc (get_stdlib_header_for_name): Add a new | |
1386 | stdlib_hint array for stdbool and stdint. | |
1387 | ||
45c50b6a MW |
1388 | 2020-05-22 Mark Wielaard <mark@klomp.org> |
1389 | ||
1390 | * known-headers.cc (get_stdlib_header_for_name): Return | |
1391 | "<stdbool.h>" for "bool", "true" or "false" when STDLIB_C and | |
1392 | flag_isoc99. | |
1393 | ||
c22027a0 NS |
1394 | 2020-05-20 Nathan Sidwell <nathan@acm.org> |
1395 | ||
38a4db21 NS |
1396 | * c-common.c (try_to_locate_new_include_insertion_point): Revert change. |
1397 | ||
c22027a0 NS |
1398 | * c-common.c (try_to_locate_new_include_insertion_point): Use |
1399 | strcmp to compare filenames. | |
1400 | * c-lex.c (init_c_lex): Move declaration to initialization. | |
1401 | * c-opts.c (handle_deferred_opts): Move cpp_get_deps call into | |
1402 | deferred count loop. | |
1403 | ||
29f0e90d JM |
1404 | 2020-05-15 Jason Merrill <jason@redhat.com> |
1405 | ||
1406 | * c-opts.c (set_std_cxx20): Set flag_coroutines. | |
1407 | ||
b04445d4 JM |
1408 | 2020-05-13 Jason Merrill <jason@redhat.com> |
1409 | ||
1410 | * c.opt (std=c++20): Make c++2a the alias. | |
1411 | (std=gnu++20): Likewise. | |
1412 | * c-common.h (cxx_dialect): Change cxx2a to cxx20. | |
1413 | * c-opts.c: Adjust. | |
1414 | * c-cppbuiltin.c: Adjust. | |
1415 | * c-ubsan.c: Adjust. | |
1416 | * c-warn.c: Adjust. | |
1417 | ||
11dd3be5 EB |
1418 | 2020-05-12 Eric Botcazou <ebotcazou@adacore.com> |
1419 | ||
1420 | * c-ada-spec.c (dump_ads): Output pragma Warnings ("U"); on entry. | |
1421 | ||
b224c376 NS |
1422 | 2020-05-08 Nathan Sidwell <nathan@acm.org> |
1423 | ||
1424 | Reimplement directives only processing. | |
1425 | * c-ppoutput.c (token_streamer): Ne. | |
1426 | (directives_only_cb): New. Swallow ... | |
1427 | (print_lines_directives_only): ... this. | |
1428 | (scan_translation_unit_directives_only): Reimplment using the | |
1429 | published interface. | |
1430 | ||
f1d94677 MP |
1431 | 2020-05-07 Marek Polacek <polacek@redhat.com> |
1432 | ||
1433 | * c-format.c (badwords): Add "nonstatic". | |
1434 | ||
9b95bb52 JJ |
1435 | 202-05-07 Jakub Jelinek <jakub@redhat.com> |
1436 | ||
1437 | PR c/94968 | |
1438 | * c-common.c (speculation_safe_value_resolve_params): Return false if | |
1439 | error_operand_p (val2). | |
1440 | (resolve_overloaded_builtin) <case BUILT_IN_SPECULATION_SAFE_VALUE_N>: | |
1441 | Remove extraneous semicolon. | |
1442 | ||
530b4409 | 1443 | 2020-05-06 qing zhao <qing.zhao@oracle.com> |
1444 | ||
1445 | PR c/94230 | |
1446 | * c-indentation.c (get_visual_column): Add a hint to use the new | |
1447 | -flarge-source-files option. | |
1448 | ||
b776bdca SSF |
1449 | 2020-05-05 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com> |
1450 | ||
1451 | * c-attribs.c (handle_vector_size_attribute): Add attribute | |
1452 | nonnull for argument args in order to silence warning of | |
1453 | uninitialized variable usage. Since this is local to the | |
1454 | compilation unit and thus cannot be checked at call sides by the | |
1455 | compiler, added an assert statement in order to verify this. | |
1456 | ||
6607bdd9 L |
1457 | 2020-05-01 H.J. Lu <hongjiu.lu@intel.com> |
1458 | ||
1459 | PR target/93492 | |
1460 | * c-attribs.c (handle_patchable_function_entry_attribute): Limit | |
1461 | value to USHRT_MAX (65535). | |
1462 | ||
691eeb65 JJ |
1463 | 2020-04-29 Jakub Jelinek <jakub@redhat.com> |
1464 | ||
1465 | * c-format.c (PP_FORMAT_CHAR_TABLE): Add %{ and %}. | |
1466 | ||
26d76be7 JJ |
1467 | 2020-04-27 Jakub Jelinek <jakub@redhat.com> |
1468 | ||
1469 | PR c/94755 | |
1470 | * c-common.c (resolve_overloaded_builtin): Return error_mark_node for | |
1471 | fncode == BUILT_IN_NONE before initialization of first_param. | |
1472 | ||
7291b2ed MP |
1473 | 2020-04-23 Marek Polacek <polacek@redhat.com> |
1474 | ||
1475 | PR c++/94733 | |
1476 | * c-attribs.c (find_tm_attribute): Use get_attribute_name instead of | |
1477 | TREE_PURPOSE. | |
1478 | ||
58a29af8 PP |
1479 | 2020-04-14 Patrick Palka <ppalka@redhat.com> |
1480 | ||
1481 | PR c++/85278 | |
1482 | * c-pretty-print.c (pp_c_pointer) <case REFERENCE_TYPE>: Print a double | |
1483 | ampersand if it's an rvalue reference type. | |
1484 | ||
09f04139 MS |
1485 | 2020-04-13 Martin Sebor <msebor@redhat.com> |
1486 | ||
1487 | PR c/92326 | |
1488 | * c-pretty-print.c (c_pretty_printer::direct_abstract_declarator): Avoid | |
1489 | printing array bound for flexible array members. | |
1490 | ||
ee26baf4 IS |
1491 | 2020-04-13 Iain Sandoe <iain@sandoe.co.uk> |
1492 | ||
1493 | * c-cppbuiltin.c (c_cpp_builtins): Update coroutines builtin | |
1494 | define, per n4861. | |
1495 | ||
75efe9cb RB |
1496 | 2020-04-02 Richard Biener <rguenther@suse.de> |
1497 | ||
1498 | PR c/94392 | |
1499 | * c-opts.c (c_common_post_options): Enable -ffinite-loops | |
1500 | for -O2 and C++11 or newer. | |
1501 | ||
75defde9 PP |
1502 | 2020-03-28 Patrick Palka <ppalka@redhat.com> |
1503 | ||
1504 | * c.opt: Add -fconcepts-diagnostics-depth. | |
1505 | ||
52f24a9e MS |
1506 | 2020-03-27 Martin Sebor <msebor@redhat.com> |
1507 | ||
1508 | PR c++/94346 | |
1509 | * c-attribs.c (handle_copy_attribute): Avoid passing expressions | |
1510 | to decl_attributes. Make handling of different kinds of entities | |
1511 | more robust. | |
1512 | ||
ccacf77b MS |
1513 | 2020-03-27 Martin Sebor <msebor@redhat.com> |
1514 | ||
1515 | PR c++/94098 | |
1516 | * c-attribs.c (handle_access_attribute): Avoid setting TYPE_ATTRIBUTES | |
1517 | here. | |
1518 | ||
ca6c7225 JJ |
1519 | 2020-03-23 Jakub Jelinek <jakub@redhat.com> |
1520 | ||
1521 | PR c++/91993 | |
1522 | * c-warn.c (warnings_for_convert_and_check): For expr and/or | |
1523 | result being COMPOUND_EXPRs, skip to ultimate rhs. | |
1524 | ||
1aa22b19 RS |
1525 | 2020-03-20 Richard Sandiford <richard.sandiford@arm.com> |
1526 | ||
1527 | PR middle-end/94072 | |
1528 | * c-common.c (c_common_type_for_mode): Before using a registered | |
1529 | built-in type, check that the vectorness of the type matches | |
1530 | the vectorness of the mode. | |
1531 | ||
700d4cb0 JJ |
1532 | 2020-03-17 Jakub Jelinek <jakub@redhat.com> |
1533 | ||
1534 | * c-common.c (resolve_overloaded_builtin): Fix up duplicated word | |
1535 | issue in a diagnostic message. | |
1536 | ||
b408e010 LH |
1537 | 2020-03-15 Lewis Hyatt <lhyatt@gmail.com> |
1538 | ||
1539 | * c.opt: Avoid redundancy in the help text. | |
1540 | ||
e78e50d5 MP |
1541 | 2020-03-02 Marek Polacek <polacek@redhat.com> |
1542 | ||
1543 | PR c++/93958 - add missing -std=gnu++20. | |
1544 | * c.opt: Add -std=gnu++20. | |
1545 | ||
649e1741 MS |
1546 | 2020-03-01 Martin Sebor <msebor@redhat.com> |
1547 | ||
1548 | PR c++/92721 | |
1549 | * c-attribs.c (append_access_attrs): Correctly handle attribute. | |
1550 | (handle_access_attribute): Same. | |
1551 | ||
7b60f3ba JJ |
1552 | 2020-02-25 Jakub Jelinek <jakub@redhat.com> |
1553 | ||
1554 | PR c/93858 | |
1555 | * c-pragma.c (handle_pragma_diagnostic): Add missing ? after | |
1556 | "did you mean" hint in diagnostics. | |
1557 | ||
fb260504 JM |
1558 | 2020-02-15 Jason Merrill <jason@redhat.com> |
1559 | ||
1560 | * c.opt: Add -std=c++20. | |
1561 | ||
1d757b09 EB |
1562 | 2020-02-14 Eric Botcazou <ebotcazou@adacore.com> |
1563 | ||
1564 | * c-ada-spec.c: Include bitmap.h. | |
1565 | (dump_ada_double_name): Rename into... | |
1566 | (dump_anonymous_type_name): ...this. Always use the TYPE_UID. | |
1567 | (dump_ada_array_type): Adjust to above renaming. Robustify. | |
1568 | (dump_nested_types_1): New function copied from... Add dumped_types | |
1569 | parameter and pass it down to dump_nested_type. | |
1570 | (dump_nested_types): ...this. Remove parent parameter. Just call | |
1571 | dump_nested_types_1 on an automatic bitmap. | |
1572 | (dump_nested_type): Add dumped_types parameter. | |
1573 | <ARRAY_TYPE>: Do not dump it if already present in dumped_types. | |
1574 | Adjust recursive calls and adjust to above renaming. | |
1575 | (dump_ada_declaration): Adjust call to dump_nested_types. | |
1576 | Tidy up and adjust to above renaming. | |
1577 | (dump_ada_specs): Initialize and release bitmap obstack. | |
1578 | ||
0cc575e4 MS |
1579 | 2020-02-10 Martin Sebor <msebor@redhat.com> |
1580 | ||
1581 | PR c/93640 | |
1582 | * c-attribs.c (handle_access_attribute): Correct off-by-one mistakes. | |
1583 | ||
a59aa302 JJ |
1584 | 2020-02-10 Jakub Jelinek <jakub@redhat.com> |
1585 | ||
1586 | PR other/93641 | |
1587 | * c-format.c (check_plain): Fix up last argument of strncasecmp. | |
1588 | Remove useless extra test. | |
1589 | ||
e464fc90 TB |
1590 | 2020-02-03 Julian Brown <julian@codesourcery.com> |
1591 | Tobias Burnus <tobias@codesourcery.com> | |
1592 | ||
1593 | * c-cppbuiltin.c (c_cpp_builtins): Update _OPENACC define to 201711. | |
1594 | ||
e3b6c052 JM |
1595 | 2020-01-29 Jason Merrill <jason@redhat.com> |
1596 | ||
1597 | PR c++/89357 | |
1598 | * c-attribs.c (check_cxx_fundamental_alignment_constraints): Remove. | |
1599 | ||
6d00f052 JM |
1600 | 2020-01-23 Jason Merrill <jason@redhat.com> |
1601 | ||
1602 | * c-warn.c (conversion_warning): Change -Wsign-conversion handling. | |
1603 | ||
8a990ffa MS |
1604 | 2020-01-23 Martin Sebor <msebor@redhat.com> |
1605 | ||
1606 | PR c/84919 | |
1607 | * c-common.c (check_function_arguments): Avoid overlap checking | |
1608 | of sprintf functions. | |
1609 | ||
55b7df8b JM |
1610 | 2020-01-22 Jason Merrill <jason@redhat.com> |
1611 | ||
1612 | PR testsuite/93391 - PR 40752 test fails with unsigned plain char. | |
1613 | PR c++/40752 | |
1614 | * c-warn.c (conversion_warning): Check operands only after checking | |
1615 | the whole expression. Don't check second operand of + for sign. | |
1616 | ||
c77074d0 JM |
1617 | 2020-01-21 Jason Merrill <jason@redhat.com> |
1618 | Manuel López-Ibáñez <manu@gcc.gnu.org> | |
1619 | ||
1620 | PR c++/40752 - useless -Wconversion with short +=. | |
1621 | * c.opt (-Warith-conversion): New. | |
1622 | * c-warn.c (conversion_warning): Recurse for operands of | |
1623 | operators. Only warn about the whole expression with | |
1624 | -Warith-conversion. | |
1625 | ||
731dbfc3 JM |
1626 | 2020-01-21 Jason Merrill <jason@redhat.com> |
1627 | ||
1628 | * c-common.c (unsafe_conversion_p): Don't warn, return UNSAFE_SIGN. | |
1629 | * c-warn.c (conversion_warning): Warn about UNSAFE_SIGN. | |
1630 | ||
ad1a3914 NS |
1631 | 2020-01-20 Nathan Sidwell <nathan@acm.org> |
1632 | ||
1633 | PR preprocessor/80005 | |
1634 | * c-cppbuiltins.c (c_cpp_builtins): Don't define __has_include{,_next}. | |
1635 | ||
49789fd0 IS |
1636 | 2020-01-18 Iain Sandoe <iain@sandoe.co.uk> |
1637 | ||
1638 | * c-common.c (co_await, co_yield, co_return): New. | |
1639 | * c-common.h (RID_CO_AWAIT, RID_CO_YIELD, | |
1640 | RID_CO_RETURN): New enumeration values. | |
1641 | (D_CXX_COROUTINES): Bit to identify coroutines are active. | |
1642 | (D_CXX_COROUTINES_FLAGS): Guard for coroutine keywords. | |
1643 | * c-cppbuiltin.c (__cpp_coroutines): New cpp define. | |
1644 | * c.opt (fcoroutines): New command-line switch. | |
1645 | ||
4bc1899b DM |
1646 | 2020-01-10 David Malcolm <dmalcolm@redhat.com> |
1647 | ||
1648 | * c-format.c (local_event_ptr_node): New. | |
1649 | (PP_FORMAT_CHAR_TABLE): Add entry for "%@". | |
1650 | (init_dynamic_diag_info): Initialize local_event_ptr_node. | |
1651 | * c-format.h (T_EVENT_PTR): New define. | |
1652 | ||
f25e33fa MS |
1653 | 2020-01-10 Martin Sebor <msebor@redhat.com> |
1654 | ||
1655 | PR c/93132 | |
1656 | * c-attribs.c (append_access_attrs): Validate against the translated | |
1657 | access string rather than the human-readable representation. | |
1658 | ||
8d9254fc JJ |
1659 | 2020-01-01 Jakub Jelinek <jakub@redhat.com> |
1660 | ||
1661 | Update copyright years. | |
1662 | ||
39292e25 EB |
1663 | 2019-12-20 Eric Botcazou <ebotcazou@adacore.com> |
1664 | ||
1665 | * c-ada-spec.h (decl_sloc): Delete. | |
1666 | * c-ada-spec.c (decl_sloc): Make static. | |
1667 | ||
519d7496 JB |
1668 | 2019-12-19 Julian Brown <julian@codesourcery.com> |
1669 | ||
1670 | * c-common.h (c_omp_map_clause_name): Add prototype. | |
1671 | * c-omp.c (c_omp_map_clause_name): New function. | |
1672 | * c-pragma.h (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ATTACH and | |
1673 | PRAGMA_OACC_CLAUSE_DETACH. | |
1674 | ||
a6163563 JB |
1675 | 2019-12-19 Julian Brown <julian@codesourcery.com> |
1676 | Maciej W. Rozycki <macro@codesourcery.com> | |
1677 | Tobias Burnus <tobias@codesourcery.com> | |
1678 | Thomas Schwinge <thomas@codesourcery.com> | |
1679 | ||
1680 | * c-pragma.h (pragma_omp_clause): Add | |
1681 | PRAGMA_OACC_CLAUSE_NO_CREATE. | |
1682 | ||
e8f1ade2 MS |
1683 | 2019-12-17 Martin Sebor <msebor@redhat.com> |
1684 | ||
1685 | PR c++/61339 | |
1686 | * c.opt (-Wmismatched-tags, -Wredundant-tags): New options. | |
1687 | ||
368877a1 DM |
1688 | 2019-12-11 David Malcolm <dmalcolm@redhat.com> |
1689 | ||
1690 | * c-pretty-print.c (c_pretty_printer::clone): New vfunc | |
1691 | implementation. | |
1692 | * c-pretty-print.h (c_pretty_printer::clone): New vfunc decl. | |
1693 | ||
d68f5d45 DM |
1694 | 2019-12-09 David Malcolm <dmalcolm@redhat.com> |
1695 | ||
1696 | * c-format.c (range_label_for_format_type_mismatch::get_text): | |
1697 | Replace label_text ctor called with true with label_text::take. | |
1698 | ||
d3e28653 DM |
1699 | 2019-12-09 David Malcolm <dmalcolm@redhat.com> |
1700 | ||
1701 | * c-format.c (selftest::test_type_mismatch_range_labels): Remove | |
1702 | initial newline from expected outputs. | |
1703 | * c-opts.c (c_diagnostic_finalizer): Add pp_newline call before | |
1704 | call to diagnostic_show_locus. | |
1705 | ||
abd6d8cc JJ |
1706 | 2019-12-06 Jakub Jelinek <jakub@redhat.com> |
1707 | ||
1708 | * c-cppbuiltin.c (c_cpp_builtins): Don't define __cpp_consteval for | |
1709 | now. | |
1710 | ||
7906797e MP |
1711 | 2019-12-05 Marek Polacek <polacek@redhat.com> |
1712 | Jakub Jelinek <jakub@redhat.com> | |
1713 | ||
1714 | PR c++/91353 - P1331R2: Allow trivial default init in constexpr contexts. | |
1715 | * c-cppbuiltin.c (c_cpp_builtins): Adjust the value of __cpp_constexpr. | |
1716 | ||
5c04da88 MP |
1717 | 2019-12-05 Marek Polacek <polacek@redhat.com> |
1718 | ||
1719 | PR c++/92271 - make __is_same alias for __is_same_as. | |
1720 | * c-common.c: Add __is_same, an alias for __is_same_as. | |
1721 | ||
43aae289 MP |
1722 | 2019-12-03 Marek Polacek <polacek@redhat.com> |
1723 | ||
1724 | PR c++/91363 - P0960R3: Parenthesized initialization of aggregates. | |
1725 | * c-cppbuiltin.c (c_cpp_builtins): Predefine | |
1726 | __cpp_aggregate_paren_init=201902 for -std=c++2a. | |
1727 | ||
d7ddfbcb JH |
1728 | 2019-11-30 Jan Hubicka <hubicka@ucw.cz> |
1729 | ||
1730 | * c-attribs.c (handle_symver_attribute): New function | |
1731 | (c_common_attributes): Add symver. | |
1732 | ||
65ef05d0 RS |
1733 | 2019-11-30 Richard Sandiford <richard.sandiford@arm.com> |
1734 | ||
1735 | * c-common.c (pointer_int_sum): Use verify_type_context to check | |
1736 | whether the target allows pointer arithmetic for the types involved. | |
1737 | (c_sizeof_or_alignof_type, c_alignof_expr): Use verify_type_context | |
1738 | to check whether the target allows sizeof and alignof operations | |
1739 | for the types involved. | |
1740 | ||
1a291106 JM |
1741 | 2019-11-27 Jason Merrill <jason@redhat.com> |
1742 | ||
1743 | * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_deduction_guides. | |
1744 | ||
05d6cb1a JJ |
1745 | 2019-11-26 Jakub Jelinek <jakub@redhat.com> |
1746 | ||
1747 | PR c++/61414 | |
1748 | * c-attribs.c (handle_mode_attribute): Add mode attribute to | |
1749 | ENUMERAL_TYPEs. | |
1750 | ||
5b8d9367 JM |
1751 | 2019-11-25 Joseph Myers <joseph@codesourcery.com> |
1752 | ||
1753 | PR c/91985 | |
1754 | * c-common.c (c_common_type_for_mode): Handle decimal | |
1755 | floating-point types being NULL_TREE. | |
1756 | * c-format.c (get_format_for_type_1): Handle specified types being | |
1757 | NULL_TREE. | |
1758 | * c-lex.c (interpret_float): Give an error for decimal | |
1759 | floating-point constants when decimal floating-point not | |
1760 | supported. | |
1761 | ||
1fbf51cb JJ |
1762 | 2019-11-23 Jakub Jelinek <jakub@redhat.com> |
1763 | ||
1764 | PR middle-end/83859 | |
1765 | * c-attribs.c (append_access_attrs): Avoid buffer overflow. Avoid | |
1766 | memory leak. Use XNEWVEC macro. Use auto_diagnostic_group to | |
1767 | group warning with inform together. | |
1768 | (handle_access_attribute): Formatting fix. | |
1769 | ||
761df906 JJ |
1770 | 2019-11-22 Jakub Jelinek <jakub@redhat.com> |
1771 | ||
bdaf8be1 JJ |
1772 | PR c/90677 |
1773 | * c-common.h (identifier_global_tag): Declare. | |
1774 | * c-format.c (get_pointer_to_named_type): Renamed to ... | |
1775 | (get_named_type): ... this. Use identifier_global_tag instead of | |
1776 | identifier_global_value, handle the return value being a TYPE_P. | |
1777 | (init_dynamic_diag_info): Adjust get_pointer_to_named_type callers | |
1778 | to call get_named_type instead. Formatting fixes. | |
1779 | ||
c2ecce6d | 1780 | Implement P1902R1, Missing feature-test macros 2017-2019. |
761df906 JJ |
1781 | * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_init_captures |
1782 | and __cpp_generic_lambdas for -std=c++2a. Define | |
1783 | __cpp_designated_initializers, __cpp_constexpr_in_decltype and | |
1784 | __cpp_consteval for -std=c++2a. Remove a FIXME comment about | |
1785 | __cpp_concepts for -std=c++2a. | |
1786 | ||
54aa6b58 MS |
1787 | 2019-11-22 Martin Sebor <msebor@redhat.com> |
1788 | ||
1789 | PR middle-end/83859 | |
1790 | * c-attribs.c (handle_access_attribute): New function. | |
1791 | (c_common_attribute_table): Add new attribute. | |
1792 | (get_argument_type): New function. | |
1793 | (append_access_attrs): New function. | |
1794 | (get_nonnull_operand): Rename... | |
1795 | (get_attribute_operand): ...to this. | |
1796 | * c-common.c (get_nonnull_operand): Rename... | |
1797 | (get_attribute_operand): ...to this. | |
1798 | ||
6c80b1b5 JM |
1799 | 2019-11-21 Joseph Myers <joseph@codesourcery.com> |
1800 | ||
1801 | * c-attribs.c (handle_fallthrough_attribute): Use pedwarn instead | |
1802 | of warning. | |
1803 | ||
192961ff JM |
1804 | 2019-11-19 Joseph Myers <joseph@codesourcery.com> |
1805 | ||
1806 | * c-common.c (attribute_fallthrough_p): In C, use pedwarn not | |
1807 | warning for standard attributes mixed with fallthrough attributes. | |
1808 | ||
f8aea5e3 JM |
1809 | 2019-11-15 Joseph Myers <joseph@codesourcery.com> |
1810 | ||
1811 | * c-attribs.c (handle_fallthrough_attribute): Remove static. | |
1812 | * c-common.h (handle_fallthrough_attribute): Declare. | |
1813 | ||
2cc94aa8 JM |
1814 | 2019-11-15 Joseph Myers <joseph@codesourcery.com> |
1815 | ||
1816 | * c-attribs.c (handle_deprecated_attribute): Remove static. | |
1817 | * c-common.h (handle_deprecated_attribute): Declare. | |
1818 | ||
7c5890cc JM |
1819 | 2019-11-14 Joseph Myers <joseph@codesourcery.com> |
1820 | ||
1821 | * c-lex.c (lex_charconst): Make CPP_UTF8CHAR constants unsigned | |
1822 | char for C. | |
1823 | ||
b2417b59 JJ |
1824 | 2019-11-14 Jakub Jelinek <jakub@redhat.com> |
1825 | ||
d0ec7c93 JJ |
1826 | * c-omp.c (c_omp_check_context_selector): Add nvidia to the list of |
1827 | valid vendors. | |
1828 | ||
b2417b59 JJ |
1829 | * c-omp.c (c_omp_check_context_selector): Handle name lists |
1830 | containing string literals. Don't diagnose atomic_default_mem_order | |
1831 | with multiple props. | |
1832 | ||
00be2a5f JM |
1833 | 2019-11-13 Joseph Myers <joseph@codesourcery.com> |
1834 | ||
1835 | * c-cppbuiltin.c (builtin_define_float_constants): Also define | |
1836 | NORM_MAX constants. Update call to get_max_float. | |
1837 | (LAZY_HEX_FP_VALUES_CNT): Update value to include NORM_MAX | |
1838 | constants. | |
1839 | ||
2dbad62d EB |
1840 | 2019-11-13 Eric Botcazou <ebotcazou@adacore.com> |
1841 | ||
1842 | * c-ada-spec.c (get_underlying_decl): Do not look through typedefs. | |
1843 | (dump_forward_type): Do not generate a declaration for function types. | |
1844 | (dump_nested_type) <ARRAY_TYPE>: Do not generate a nested declaration | |
1845 | of the component type if it is declared in another file. | |
1846 | ||
6ed76044 ML |
1847 | 2019-11-12 Martin Liska <mliska@suse.cz> |
1848 | ||
1849 | * c-opts.c (c_common_post_options): | |
1850 | Use SET_OPTION_IF_UNSET. | |
1851 | ||
62aee289 MR |
1852 | 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com> |
1853 | Frederik Harwath <frederik@codesourcery.com> | |
1854 | ||
1855 | gcc/c-family/ | |
1856 | * c-pragma.h (pragma_kind): Add PRAGMA_OACC_SERIAL enumeration | |
1857 | constant. | |
1858 | * c-pragma.c (oacc_pragmas): Add "serial" entry. | |
1859 | ||
f486280c RS |
1860 | 2019-11-08 Richard Sandiford <richard.sandiford@arm.com> |
1861 | ||
1862 | * c-common.h (gnu_vector_type_p): New function. | |
1863 | * c-common.c (c_build_vec_perm_expr): Require __builtin_shuffle | |
1864 | vectors to satisfy gnu_vector_type_p. | |
1865 | (c_build_vec_convert): Likewise __builtin_convertvector. | |
1866 | (convert_vector_to_array_for_subscript): Likewise when applying | |
1867 | implicit vector to array conversion. | |
1868 | (scalar_to_vector): Likewise when converting vector-scalar | |
1869 | operations to vector-vector operations. | |
1870 | ||
017c6491 JM |
1871 | 2019-11-08 Joseph Myers <joseph@codesourcery.com> |
1872 | ||
1873 | * c.opt (Wold-style-definition): Initialize to -1. | |
1874 | * c-opts.c (c_common_post_options): Set warn_old_style_definition | |
1875 | to flag_isoc2x if not set explicitly. | |
1876 | ||
c01bd174 JM |
1877 | 2019-11-07 Joseph Myers <joseph@codesourcery.com> |
1878 | ||
1879 | * c-attribs.c (parse_tm_stmt_attr): Handle scoped attributes. | |
1880 | ||
0df65305 JM |
1881 | 2019-11-05 Jason Merrill <jason@redhat.com> |
1882 | ||
1883 | * c-opts.c (c_common_post_options): -fconcepts-ts implies | |
1884 | -fconcepts. | |
1885 | ||
e0c866dd KK |
1886 | 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com> |
1887 | ||
1888 | * c-opts.c (c_common_post_options): Update | |
1889 | latest_abi_version. | |
1890 | ||
f968ef9b JJ |
1891 | 2019-11-02 Jakub Jelinek <jakub@redhat.com> |
1892 | ||
d0c464d2 JJ |
1893 | * c-common.h (c_omp_get_context_selector): Remove. |
1894 | * c-omp.c (c_omp_get_context_selector): Moved to omp-general.c | |
1895 | and renamed to omp_get_context_selector. | |
1896 | ||
917dd789 JJ |
1897 | * c-omp.c (c_omp_mark_declare_variant): Use |
1898 | omp_context_selector_set_compare. | |
1899 | ||
f968ef9b JJ |
1900 | PR c++/88335 - Implement P1073R3: Immediate functions |
1901 | * c-common.h (enum rid): Add RID_CONSTEVAL. | |
1902 | * c-common.c (c_common_reswords): Add consteval. | |
1903 | ||
5f6705b7 JJ |
1904 | 2019-11-01 Martin Sebor <msebor@redhat.com> |
1905 | ||
1906 | PR middle-end/91679 | |
1907 | PR middle-end/91647 | |
1908 | PR middle-end/91463 | |
1909 | PR middle-end/92312 | |
1910 | * c-pretty-print.c (direct_abstract_declarator): Print | |
1911 | bound in zero-length arrays. | |
1912 | * c.opt (-Wzero-length-bounds): New option. | |
1913 | ||
43f1814c NS |
1914 | 2019-10-30 Nathan Sidwell <nathan@acm.org> |
1915 | ||
1916 | * c-cppbuiltin.c (c_cpp_builtins): Add 'L' suffix to feature | |
1917 | macros. | |
1918 | ||
ad1539d5 MS |
1919 | 2019-10-28 Martin Sebor <msebor@redhat.com> |
1920 | ||
1921 | PR c/66970 | |
1922 | * c-common.c (c_common_nodes_and_builtins): Call c_define_builtins | |
1923 | even when only preprocessing. | |
1924 | * c-common.h (names_builtin_p): Declare new function. | |
1925 | * c-lex.c (init_c_lex): Set has_builtin. | |
1926 | (c_common_has_builtin): Define a new function. | |
1927 | * c-ppoutput.c (init_pp_output): Set has_builtin. | |
1928 | ||
135df52c JJ |
1929 | 2019-10-24 Jakub Jelinek <jakub@redhat.com> |
1930 | ||
1931 | * c-common.h (c_omp_context_selector_matches): Remove. | |
1932 | * c-omp.c (c_omp_context_selector_matches): Remove. | |
1933 | * c-attribs.c (c_common_attribute_table): Add | |
1934 | "omp declare target {host,nohost,block}" attributes. | |
1935 | ||
8ad0c477 JM |
1936 | 2019-10-17 JeanHeyd Meneide <phdofthehouse@gmail.com> |
1937 | ||
1938 | * c-lex.c (c_common_has_attribute): Update nodiscard value. | |
1939 | ||
56898e43 RS |
1940 | 2019-10-14 Richard Sandiford <richard.sandiford@arm.com> |
1941 | ||
1942 | * c-common.h (user_facing_original_type_p): Declare. | |
1943 | * c-common.c: Include c-spellcheck.h. | |
1944 | (user_facing_original_type_p): New function. | |
1945 | ||
20de9568 JJ |
1946 | 2019-10-12 Jakub Jelinek <jakub@redhat.com> |
1947 | ||
1948 | * c-common.h (c_omp_mark_declare_variant, | |
1949 | c_omp_context_selector_matches): Declare. | |
1950 | * c-omp.c: Include attribs.h, gimplify.h, cgraph.h, symbol-summary.h | |
1951 | and hsa-common.h. | |
1952 | (c_omp_get_context_selector): Support second argument NULL. | |
1953 | (c_omp_mark_declare_variant, c_omp_context_selector_matches): New | |
1954 | functions. | |
1955 | * c-attribs.c (c_common_attribute_table): Remove "omp declare variant" | |
1956 | attribute, add "omp declare variant base" and | |
1957 | "omp declare variant variant" attributes. | |
1958 | ||
175a85b2 JM |
1959 | 2019-10-11 Joseph Myers <joseph@codesourcery.com> |
1960 | ||
1961 | * c.opt (Wc11-c2x-compat): Add CPP(cpp_warn_c11_c2x_compat) | |
1962 | CppReason(CPP_W_C11_C2X_COMPAT). | |
1963 | ||
fe2bc27c JM |
1964 | 2019-10-11 Joseph Myers <joseph@codesourcery.com> |
1965 | ||
1966 | * c-common.c (c_common_reswords): Do not use D_EXT for _Decimal32, | |
1967 | _Decimal64 and _Decimal128. | |
1968 | ||
27dfdc0f JM |
1969 | 2019-10-10 Joseph Myers <joseph@codesourcery.com> |
1970 | ||
1971 | * c-cppbuiltin.c (c_cpp_builtins): Do not define macros for DFP | |
1972 | types if DFP not supported. | |
1973 | ||
94e7f906 JJ |
1974 | 2019-10-10 Jakub Jelinek <jakub@redhat.com> |
1975 | ||
1976 | * c-common.h (c_omp_check_context_selector, | |
1977 | c_omp_get_context_selector): Declare. | |
1978 | * c-omp.c (c_omp_declare_simd_clauses_to_numbers): Fix spelling | |
1979 | in diagnostic message. | |
1980 | (c_omp_check_context_selector, c_omp_get_context_selector): New | |
1981 | functions. | |
1982 | * c-attribs.c (c_common_attribute_table): Add "omp declare variant" | |
1983 | attribute. | |
1984 | (handle_omp_declare_variant_attribute): New function. | |
1985 | ||
a7160771 MS |
1986 | 2019-10-09 Martin Sebor <msebor@redhat.com> |
1987 | ||
1988 | PR tree-optimization/90879 | |
1989 | * c.opt (-Wstring-compare): New option. | |
1990 | ||
cb57504a JM |
1991 | 2019-10-08 Andrew Sutton <asutton@lock3software.com> |
1992 | Jason Merrill <jason@redhat.com> | |
1993 | ||
1994 | Update the concepts implementation to conform to the C++20 | |
1995 | specification, improve compile times, and generally clean up | |
1996 | the implementation. | |
1997 | ||
1998 | * c-cppbuiltin.c (c_cpp_builtins): Use new feature test values for | |
1999 | concepts when -std=c++2a. Bump __cpp_concepts to 201907. | |
2000 | * c.opt: Add -Wconcepts-ts. | |
2001 | * c-opts.c (c_common_post_options): Warn when -fconcepts is used | |
2002 | with -std=c++2a. Disable warning for -fconcepts in C++20 mode. | |
2003 | (set_std_cxx2a): Enable concepts by default. | |
2004 | ||
fbb2a6dc JM |
2005 | 2019-10-08 Joseph Myers <joseph@codesourcery.com> |
2006 | ||
2007 | * c-opts.c (c_common_post_options): Set | |
2008 | -fno-fp-int-builtin-inexact for C2X. | |
2009 | ||
8e007055 JJ |
2010 | 2019-10-05 Jakub Jelinek <jakub@redhat.com> |
2011 | ||
2012 | PR c++/91369 - Implement P0784R7: constexpr new | |
2013 | * c-cppbuiltin.c (c_cpp_builtins): Predefine | |
2014 | __cpp_constexpr_dynamic_alloc=201907 for -std=c++2a. | |
2015 | ||
843f104d JM |
2016 | 2019-10-04 Joseph Myers <joseph@codesourcery.com> |
2017 | ||
2018 | PR c/82752 | |
2019 | * c-format.c (C_STD_VER): Handle C2x. | |
2020 | (C_STD_NAME): Likewise. | |
2021 | (strftime_flag_specs): Add 'O' modifier with 'p' flag. | |
2022 | (time_char_table): Use separate entry for 'B' and 'b', with 'O' | |
2023 | modifier allowed and 'p' flag. | |
2024 | * c-format.h (enum format_std_version): Add STD_C2X. | |
2025 | (struct format_char_info): Mention 'p' in comment on flags2. | |
2026 | ||
e9c9a142 DM |
2027 | 2019-10-01 David Malcolm <dmalcolm@redhat.com> |
2028 | ||
2029 | * c-opts.c (c_diagnostic_finalizer): Temporarily clear prefix when | |
2030 | calling diagnostic_show_locus, rather than destroying it afterwards. | |
2031 | ||
7552c36a JJ |
2032 | 2019-10-01 Jakub Jelinek <jakub@redhat.com> |
2033 | ||
2034 | PR c++/91925 | |
2035 | * c-warn.c (check_alignment_of_packed_member): Ignore FIELD_DECLs | |
2036 | with NULL DECL_FIELD_OFFSET. | |
2037 | ||
8209db25 RS |
2038 | 2019-10-01 Richard Sandiford <richard.sandiford@arm.com> |
2039 | ||
2040 | * c-pretty-print.c (pp_c_specifier_qualifier_list): If a vector type | |
2041 | has a type name, use it in preference to the __vector syntax. | |
2042 | ||
9343bf99 RS |
2043 | 2019-09-30 Richard Sandiford <richard.sandiford@arm.com> |
2044 | ||
2045 | * c-pretty-print.c (pp_c_parameter_type_list): Avoid printing | |
2046 | two spaces between a comma and "...". | |
2047 | ||
59bc434a JJ |
2048 | 2019-09-27 Jakub Jelinek <jakub@redhat.com> |
2049 | ||
2050 | PR c++/88203 | |
2051 | * c-common.h (c_omp_predefined_variable): Declare. | |
2052 | * c-omp.c (c_omp_predefined_variable): New function. | |
2053 | (c_omp_predetermined_sharing): Return OMP_CLAUSE_DEFAULT_SHARED | |
2054 | for predefined variables. | |
2055 | ||
c6447c20 RS |
2056 | 2019-09-27 Richard Sandiford <richard.sandiford@arm.com> |
2057 | ||
2058 | * c-common.h (build_function_call_vec): Take the original | |
2059 | function decl as an optional final parameter. | |
2060 | (check_builtin_function_arguments): Take the original function decl. | |
2061 | * c-common.c (check_builtin_function_arguments): Likewise. | |
2062 | Handle all built-in functions, not just BUILT_IN_NORMAL ones. | |
2063 | Use targetm.check_builtin_call to check BUILT_IN_MD functions. | |
2064 | ||
c4438114 JM |
2065 | 2019-09-15 Jason Merrill <jason@redhat.com> |
2066 | ||
2067 | * c-warn.c (warn_logical_operator): Strip location wrappers. Don't | |
2068 | fold_for_warn in "|| mask" warning. | |
2069 | ||
68a57628 ML |
2070 | 2019-09-10 Martin Liska <mliska@suse.cz> |
2071 | ||
2072 | * c.opt: Use newly added WarnRemoved. | |
2073 | ||
f48ef52e ML |
2074 | 2019-09-09 Martin Liska <mliska@suse.cz> |
2075 | ||
2076 | * c.opt: Update comment of removed | |
2077 | options that are preserved only for backward | |
2078 | compatibility. | |
2079 | ||
67f6e649 ML |
2080 | 2019-09-06 Martin Liska <mliska@suse.cz> |
2081 | ||
2082 | PR c++/91125 | |
2083 | * c-common.c: Remove definition of flag_use_repository. | |
2084 | * c-common.h: Likewise. | |
2085 | * c-opts.c (c_common_handle_option): | |
2086 | Do not handle OPT_frepo option. | |
2087 | * c.opt: Mark the option with Deprecated. | |
2088 | ||
db9d2274 MP |
2089 | 2019-09-04 Marek Polacek <polacek@redhat.com> |
2090 | ||
2091 | * c.opt (fdeduce-init-list): Ignored. | |
2092 | ||
68e2c199 PK |
2093 | 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
2094 | ||
2095 | PR c/78736 | |
2096 | * c.opt (Wenum-conversion): New option. | |
2097 | ||
7a4418a5 JL |
2098 | 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com> |
2099 | ||
2100 | * c-attribs.c (handle_section_attribute): Call the | |
2101 | handle_generic_attribute target hook after performing target | |
2102 | independent processing. | |
2103 | (handle_noinit_attribute): Likewise. | |
2104 | ||
5f76ab15 ILT |
2105 | 2019-09-03 Ian Lance Taylor <iant@golang.org> |
2106 | ||
2107 | * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Always expand | |
2108 | when using -fgo-dump-spec. | |
2109 | ||
ae0d3f6a ML |
2110 | 2019-09-02 Martin Liska <mliska@suse.cz> |
2111 | ||
2112 | PR c++/91155 | |
2113 | * c-common.c (fname_as_string): Use cxx_printable_name for | |
2114 | __PRETTY_FUNCTION__ same as was used before r265711. | |
2115 | ||
8a902edb MP |
2116 | 2019-08-28 Marek Polacek <polacek@redhat.com> |
2117 | ||
2118 | Implement P1152R4: Deprecating some uses of volatile. | |
2119 | PR c++/91361 | |
2120 | * c-opts.c (c_common_post_options): Enable -Wvolatile by | |
2121 | default for C++2a, unless -Wno-deprecated. | |
2122 | * c.opt (Wvolatile): New warning. | |
2123 | ||
4742dbe7 MP |
2124 | 2019-08-28 Marek Polacek <polacek@redhat.com> |
2125 | ||
2126 | PR c++/91360 - Implement C++20 P1143R2: constinit. | |
2127 | * c-common.c (c_common_reswords): Add constinit and __constinit. | |
2128 | (keyword_is_decl_specifier): Handle RID_CONSTINIT. | |
2129 | * c-common.h (enum rid): Add RID_CONSTINIT, RID_FIRST_CXX20, and | |
2130 | RID_LAST_CXX20. | |
2131 | (D_CXX20): Define. | |
2132 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_constinit. | |
2133 | * c-format.c (cxx_keywords): Add "constinit". | |
2134 | * c.opt (Wc++2a-compat, Wc++20-compat): New options. | |
2135 | ||
6a074892 JJ |
2136 | 2019-08-27 Jakub Jelinek <jakub@redhat.com> |
2137 | ||
2138 | PR c++/91415 | |
2139 | * c-common.c (verify_tree): For LSHIFT_EXPR, RSHIFT_EXPR, | |
2140 | COMPONENT_REF and ARRAY_REF in cxx_dialect >= cxx17 mode handle it | |
2141 | like COMPOUND_EXPR rather than normal expression. | |
2142 | ||
22f8849d IS |
2143 | 2019-08-23 Iain Sandoe <iain@sandoe.co.uk> |
2144 | ||
2145 | PR pch/61250 | |
2146 | * c-lex.c (c_lex_with_flags): Don't call | |
2147 | c_common_no_more_pch () from here. | |
2148 | ||
df375b03 JJ |
2149 | 2019-08-23 Jakub Jelinek <jakub@redhat.com> |
2150 | ||
2151 | PR middle-end/91283 | |
2152 | * c-common.c (c_ts18661_flt_eval_method): Use flag_excess_precision | |
2153 | instead of flag_excess_precision_cmdline. | |
2154 | * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): Likewise. | |
2155 | * c-opts.c (c_common_post_options): Likewise. | |
2156 | ||
14b7950f MS |
2157 | 2019-08-22 Martin Sebor <msebor@redhat.com> |
2158 | ||
2159 | PR middle-end/91490 | |
2160 | * c-common.c (braced_list_to_string): Add argument and overload. | |
2161 | Handle flexible length arrays and unions. | |
2162 | ||
8bb2ee59 EB |
2163 | 2019-08-21 Eric Botcazou <ebotcazou@adacore.com> |
2164 | ||
2165 | * c-ada-spec.c (dump_ada_function_declaration): Be prepared for broken | |
2166 | function declarations where arguments are missing. Rename variables. | |
2167 | ||
21c1e205 RB |
2168 | 2019-08-15 Richard Biener <rguenther@suse.de> |
2169 | ||
2170 | * c-common.c (c_stddef_cpp_builtins): When the GIMPLE FE is | |
2171 | enabled, define __SIZETYPE__. | |
2172 | ||
f0033821 CL |
2173 | 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org> |
2174 | ||
2175 | * c-attribs.c (c_common_attribute_table): Add "noinit" entry. Add | |
2176 | exclusion with "section" attribute. | |
2177 | (attr_noinit_exclusions): New table. | |
2178 | (handle_noinit_attribute): New function. | |
2179 | ||
4d732405 RS |
2180 | 2019-08-13 Richard Sandiford <richard.sandiford@arm.com> |
2181 | ||
2182 | PR middle-end/91421 | |
2183 | * c-common.c (resolve_overloaded_builtin): Use | |
2184 | copy_decl_built_in_function. | |
2185 | ||
51ad8481 MS |
2186 | 2019-08-13 Martin Sebor <msebor@redhat.com> |
2187 | ||
2188 | PR c/80619 | |
2189 | * c-format.c (printf_length_specs): Set FMT_LEN_w for "w". | |
2190 | (asm_fprintf_length_spec): Same. | |
2191 | * c-format.h (format_lengths): Add FMT_LEN_w. | |
2192 | ||
77eb117f JJ |
2193 | 2019-08-10 Jakub Jelinek <jakub@redhat.com> |
2194 | ||
2195 | * c-pragma.h (enum pragma_omp_clause): Add | |
2196 | PRAGMA_OMP_CLAUSE_DEVICE_TYPE. | |
2197 | ||
398e3feb JJ |
2198 | 2019-08-07 Jakub Jelinek <jakub@redhat.com> |
2199 | ||
2200 | * c-pragma.h (enum pragma_omp_clause): Add | |
2201 | PRAGMA_OMP_CLAUSE_USE_DEVICE_ADDR. Set PRAGMA_OACC_CLAUSE_USE_DEVICE | |
2202 | equal to PRAGMA_OMP_CLAUSE_USE_DEVICE_PTR instead of being a separate | |
2203 | enumeration value. | |
2204 | ||
ab574db6 MP |
2205 | 2019-08-05 Marek Polacek <polacek@redhat.com> |
2206 | ||
2207 | PR c++/91338 - Implement P1161R3: Deprecate a[b,c]. | |
2208 | * c-opts.c (c_common_post_options): Enable -Wcomma-subscript by | |
2209 | default for C++2a, unless -Wno-deprecated. | |
2210 | * c.opt (Wcomma-subscript): New warning. | |
2211 | ||
554a530f JJ |
2212 | 2019-07-20 Jakub Jelinek <jakub@redhat.com> |
2213 | ||
2214 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_LOOP. | |
2215 | (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_BIND. | |
2216 | * c-pragma.c (omp_pragmas_simd): Add PRAGMA_OMP_LOOP entry. | |
2217 | * c-common.h (enum c_omp_clause_split): Add C_OMP_CLAUSE_SPLIT_LOOP. | |
2218 | * c-omp.c (c_omp_split_clauses): Add support for 4 new combined | |
2219 | constructs with the loop construct. | |
2220 | ||
1a888209 JJ |
2221 | 2019-07-13 Jakub Jelinek <jakub@redhat.com> |
2222 | ||
2223 | PR c/91149 | |
2224 | * c-omp.c (c_omp_split_clauses): Fix a pasto in | |
2225 | OMP_CLAUSE_REDUCTION_TASK handling. | |
2226 | ||
1fdd6f04 JJ |
2227 | 2019-07-12 Jakub Jelinek <jakub@redhat.com> |
2228 | ||
2229 | * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ORDER. | |
2230 | * c-omp.c (c_omp_split_clauses): Handle splitting of OMP_CLAUSE_ORDER. | |
2231 | ||
99b1c316 MS |
2232 | 2019-07-09 Martin Sebor <msebor@redhat.com> |
2233 | ||
2234 | PR c++/61339 | |
1fdd6f04 | 2235 | * c-opts.c (handle_deferred_opts): Change class-key of PODs to struct |
99b1c316 MS |
2236 | and others to class. |
2237 | * c-pretty-print.h: Same. | |
2238 | ||
6c1dae73 MS |
2239 | 2019-07-09 Martin Sebor <msebor@redhat.com> |
2240 | ||
2241 | PR c++/61339 | |
2242 | * c-format.c (check_argument_type): Change class-key from class to | |
2243 | struct and vice versa to match convention and avoid -Wclass-is-pod | |
2244 | and -Wstruct-no-pod. | |
2245 | * c-pretty-print.h: Same. | |
2246 | ||
8ba6ea87 ML |
2247 | 2019-07-03 Martin Liska <mliska@suse.cz> |
2248 | ||
2249 | * c-common.c (try_to_locate_new_include_insertion_point): Remove | |
2250 | dead assignemts. | |
2251 | ||
83eb9522 JJ |
2252 | 2019-07-03 Jakub Jelinek <jakub@redhat.com> |
2253 | ||
2254 | * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_REDUCTION_INSCAN | |
2255 | clauses on OMP_FOR rather than OMP_PARALLEL when OMP_FOR is combined | |
2256 | with OMP_PARALLEL. | |
2257 | ||
1c6ffbab QZ |
2258 | 2019-07-02 qing zhao <qing.zhao@oracle.com> |
2259 | ||
2260 | PR preprocessor/90581 | |
2261 | * c-opts.c (c_common_handle_option): Handle -fmax-include-depth. | |
2262 | * c.opt: Add new option -fmax-include-depth. | |
2263 | ||
7ffc7de5 JM |
2264 | 2019-06-26 Jason Merrill <jason@redhat.com> |
2265 | ||
2266 | PR c++/55442 - memory-hog with highly recursive constexpr. | |
2267 | * c.opt (fconstexpr-loop-limit): New. | |
2268 | ||
361af3e4 JJ |
2269 | 2019-06-25 Jakub Jelinek <jakub@redhat.com> |
2270 | ||
2271 | PR sanitizer/90954 | |
2272 | * c-omp.c (c_finish_omp_atomic): Allow tree_invariant_p in addition | |
2273 | to SAVE_EXPR in first operand of a COMPOUND_EXPR. | |
2274 | ||
ab20d992 JJ |
2275 | 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com> |
2276 | ||
2277 | * c-common.c (c_common_nodes_and_builtins): Define | |
2278 | alternate "__intN__" name for "__intN" types. | |
2279 | ||
f4af4019 JH |
2280 | 2019-06-24 Jan Hubicka <jh@suse.cz> |
2281 | ||
2282 | * c-common.c (braced_lists_to_strings): Check that | |
2283 | type is array or integer prior checking string flag. | |
2284 | ||
da9e9b57 MB |
2285 | 2019-06-21 Matthew Beliveau <mbelivea@redhat.com> |
2286 | ||
2287 | PR c++/90875 - added -Wswitch-outside-range option | |
2288 | * c.opt (Wswitch-outside-range): Added new option. | |
2289 | * c-warn.c (c_do_switch_warnings): Use OPT_Wswitch-outside-range. | |
2290 | ||
3f3d6a6f MP |
2291 | 2019-06-21 Marek Polacek <polacek@redhat.com> |
2292 | ||
2293 | PR c++/90953 - ICE with -Wmissing-format-attribute. | |
2294 | * c-common.c (check_function_arguments_recurse): Use | |
2295 | get_attribute_name. | |
2296 | (check_missing_format_attribute): Likewise. | |
2297 | ||
1bf32c11 MP |
2298 | 2019-06-19 Marek Polacek <polacek@redhat.com> |
2299 | ||
2300 | PR c++/60364 - noreturn after first decl not diagnosed. | |
2301 | * c-attribs.c (handle_noreturn_attribute): No longer static. | |
2302 | * c-common.h (handle_noreturn_attribute, attr_noreturn_exclusions): | |
2303 | Declare. | |
2304 | * c-format.c (check_function_format): Use get_attribute_name. | |
2305 | ||
a04c0734 MS |
2306 | 2019-06-19 Martin Sebor <msebor@redhat.com> |
2307 | ||
2308 | PR translation/90156 | |
2309 | * c-format.c (function_format_info::format_type): Adjust type. | |
2310 | (function_format_info::is_raw): New member. | |
2311 | (decode_format_type): Adjust signature. Handle "raw" diag attributes. | |
2312 | (decode_format_attr): Adjust call to decode_format_type. | |
2313 | Avoid a redundant call to convert_format_name_to_system_name. | |
2314 | Avoid abbreviating the word "arguments" in a diagnostic. | |
2315 | (format_warning_substr): New function. | |
2316 | (avoid_dollar_number): Quote dollar sign in a diagnostic. | |
2317 | (finish_dollar_format_checking): Same. | |
2318 | (check_format_info): Same. | |
2319 | (struct baltoks_t): New. | |
2320 | (c_opers, c_keywords, cxx_keywords, badwords, contrs): New arrays. | |
2321 | (maybe_diag_unbalanced_tokens, check_tokens, check_plain): New | |
2322 | functions. | |
2323 | (check_format_info_main): Call check_plain. Use baltoks_t. Call | |
2324 | maybe_diag_unbalanced_tokens. | |
2325 | (handle_format_attribute): Spell out the word "arguments" in | |
2326 | a diagnostic. | |
2327 | ||
d3786ebb MB |
2328 | 2019-06-11 Matthew Beliveau <mbelivea@redhat.com> |
2329 | ||
2330 | PR c++/90449 - add -Winaccessible-base option. | |
2331 | * c.opt (Winaccessible-base): New option. | |
2332 | ||
bf38f7e9 JJ |
2333 | 2019-06-10 Jakub Jelinek <jakub@redhat.com> |
2334 | ||
2335 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_SCAN. | |
2336 | * c-pragma.c (omp_pragmas_simd): Add #pragma omp scan. | |
2337 | * c-omp.c (c_omp_split_clauses): Diagnose inscan reductions on | |
2338 | combined/composite constructs where it is not allowed. Copy over | |
2339 | OMP_CLAUSE_REDUCTION_INSCAN. | |
2340 | ||
0ecf545c MS |
2341 | 2019-06-05 Martin Sebor <msebor@redhat.com> |
2342 | ||
2343 | * c-attribs.c (handle_mode_attribute): Adjust quoting and hyphenation. | |
2344 | (handle_alias_ifunc_attribute): Same. | |
2345 | (handle_copy_attribute): Same. | |
2346 | (handle_weakref_attribute): Same. | |
2347 | (handle_nonnull_attribute): Same. | |
2348 | * c-warn.c (warn_for_sign_compare): Same. | |
2349 | (warn_for_restrict): Same. | |
2350 | * c.opt: Same. | |
2351 | ||
36b34127 MS |
2352 | 2019-06-05 Martin Sebor <msebor@redhat.com> |
2353 | ||
2354 | * c-pragma.c (handle_pragma_weak): Adjust quoting in a diagnostic. | |
2355 | * c.opt (-Wformat-diag): Remove a spurious period. | |
2356 | ||
357a352f JJ |
2357 | 2019-05-29 Jakub Jelinek <jakub@redhat.com> |
2358 | ||
2359 | PR c/90628 | |
2360 | * c-common.c (check_builtin_function_arguments) | |
2361 | <case BUILTIN_*_OVERFLOW>: Diagnose pointer to const qualified integer | |
2362 | as last argument. | |
2363 | ||
2b8235ea EB |
2364 | 2019-05-23 Eric Botcazou <ebotcazou@adacore.com> |
2365 | ||
2366 | * c-ada-spec.c (compare_node): Compare the DECL_UIDs as a last resort. | |
2367 | ||
6d86ddc4 ML |
2368 | 2019-05-22 Martin Liska <mliska@suse.cz> |
2369 | ||
2370 | PR lto/90500 | |
2371 | * c-attribs.c (handle_copy_attribute): Do not copy | |
2372 | target_clones attribute. | |
2373 | ||
419ba5b9 EB |
2374 | 2019-05-21 Eric Botcazou <ebotcazou@adacore.com> |
2375 | ||
2376 | * c-ada-spec.h (enum cpp_operation): Add IS_ASSIGNMENT_OPERATOR. | |
2377 | * c-ada-spec.c (print_assignment_operator): New function. | |
2378 | (dump_ada_declaration) <FUNCTION_DECL>: Call it do dump explicit copy | |
2379 | assignment operators declared as methods and filter out the others. | |
2380 | ||
e03436e7 TS |
2381 | 2019-05-17 Thomas Schwinge <thomas@codesourcery.com> |
2382 | ||
2383 | PR c/89433 | |
2384 | * c-attribs.c (c_common_attribute_table): Set min_len to -1 for | |
2385 | "omp declare target". | |
2386 | ||
a9c697b8 MS |
2387 | 2019-05-16 Martin Sebor <msebor@redhat.com> |
2388 | ||
ab20d992 JJ |
2389 | * c-attribs.c (handle_no_sanitize_attribute): Quote identifiers, |
2390 | keywords, operators, and types in diagnostics. | |
2391 | (handle_scalar_storage_order_attribute): Same. | |
2392 | (handle_mode_attribute): Same. | |
2393 | (handle_visibility_attribute): Same. | |
2394 | (handle_assume_aligned_attribute): Same. | |
2395 | (handle_no_split_stack_attribute): Same. | |
2396 | * c-common.c (shorten_compare): Same. | |
2397 | (c_common_truthvalue_conversion): Same. | |
2398 | (cb_get_source_date_epoch): Same. | |
2399 | * c-lex.c (cb_def_pragma): Quote keywords, operators, and types | |
2400 | in diagnostics. | |
2401 | (interpret_float): Same. | |
2402 | * c-omp.c (c_finish_omp_for): Same. | |
2403 | * c-opts.c (c_common_post_options): Same. | |
2404 | * c-pch.c (c_common_pch_pragma): Same. | |
2405 | * c-pragma.c (pop_alignment): Same. | |
2406 | (handle_pragma_pack): Same. | |
2407 | (apply_pragma_weak): Same. | |
2408 | (handle_pragma_weak): Same. | |
2409 | (handle_pragma_scalar_storage_order): Same. | |
2410 | (handle_pragma_redefine_extname): Same. | |
2411 | (add_to_renaming_pragma_list): Same. | |
2412 | (maybe_apply_renaming_pragma): Same. | |
2413 | (push_visibility): Same. | |
2414 | (handle_pragma_visibility): Same. | |
2415 | (handle_pragma_optimize): Same. | |
2416 | (handle_pragma_message): Same. | |
2417 | * c-warn.c (warn_for_omitted_condop): Same. | |
2418 | (lvalue_error): Same. | |
a9c697b8 | 2419 | |
6b943512 RB |
2420 | 2019-05-15 Richard Biener <rguenther@suse.de> |
2421 | ||
2422 | PR c/90474 | |
2423 | * c-common.c (c_common_mark_addressable_vec): Also mark | |
2424 | a COMPOUND_LITERAL_EXPR_DECL addressable similar to | |
2425 | c_mark_addressable. | |
ab20d992 | 2426 | |
b744fc85 NS |
2427 | 2019-05-06 Nathan Sidwell <nathan@acm.org> |
2428 | ||
2429 | * c-opts.c (handle_defered_opts): Rename struct deps to struc mkdeps. | |
2430 | ||
598f50d7 NS |
2431 | 2019-04-30 Nathan Sidwell <nathan@acm.org> |
2432 | ||
2433 | * c-common.c (c_common_init_ts): Use MARK_TS_EXP. Mark SIZEOF_EXPR. | |
2434 | ||
5bcc5a3b ML |
2435 | 2019-04-30 Martin Liska <mliska@suse.cz> |
2436 | ||
2437 | * c-pragma.c (handle_pragma_diagnostic): Provide hints | |
2438 | for unknown options. | |
2439 | ||
e78a87f7 RS |
2440 | 2019-04-26 Richard Sandiford <richard.sandiford@arm.com> |
2441 | ||
2442 | * c-warn.c (strict_aliasing_warning): Apply COMPLETE_TYPE_P to | |
2443 | the pointer target rather than the pointer itself. | |
2444 | ||
c280b7ee JJ |
2445 | 2019-04-19 Jakub Jelinek <jakub@redhat.com> |
2446 | ||
2447 | PR c/89888 | |
2448 | * c-common.h (c_add_case_label): Remove orig_type and outside_range_p | |
2449 | arguments. | |
2450 | (c_do_switch_warnings): Remove outside_range_p argument. | |
2451 | * c-common.c (check_case_bounds): Removed. | |
2452 | (c_add_case_label): Remove orig_type and outside_range_p arguments. | |
2453 | Don't call check_case_bounds. Fold low_value as well as high_value. | |
2454 | * c-warn.c (c_do_switch_warnings): Remove outside_range_p argument. | |
2455 | Check for case labels outside of range of original type here and | |
2456 | adjust them. | |
2457 | ||
8e8225e6 JJ |
2458 | 2019-04-12 Jakub Jelinek <jakub@redhat.com> |
2459 | ||
63b8a166 JJ |
2460 | PR translation/90041 |
2461 | * c.opt (-fhandle-exceptions): Use %< and %> around option names | |
2462 | in the Warn diagnostics. | |
2463 | ||
8e8225e6 JJ |
2464 | PR c/89946 |
2465 | * c-attribs.c (handle_patchable_function_entry_attribute): Add | |
2466 | function comment. Warn if arguments of the attribute are not positive | |
2467 | integer constants. | |
2468 | ||
53a3f614 EB |
2469 | 2019-04-09 Eric Botcazou <ebotcazou@adacore.com> |
2470 | ||
2471 | * c-ada-spec.c (print_destructor): Deal with deleting destructors. | |
2472 | (dump_ada_declaration) <FUNCTION_DECL>: Likewise. | |
2473 | ||
22be5873 EB |
2474 | 2019-04-07 Eric Botcazou <ebotcazou@adacore.com> |
2475 | ||
2476 | * c-ada-spec.c (is_float128): New predicate extracted from... | |
2477 | (dump_ada_node) <COMPLEX_TYPE>: Use it to recognize __cfloat128. | |
2478 | <REAL_TYPE>: ...here. Call it. | |
2479 | ||
34facf20 DM |
2480 | 2019-04-05 David Malcolm <dmalcolm@redhat.com> |
2481 | ||
2482 | PR c/89985 | |
2483 | * c-warn.c (check_address_or_pointer_of_packed_member): Add | |
2484 | auto_diagnostic_group. Guard inform calls by result of | |
2485 | warning_at call. | |
2486 | ||
05564120 MP |
2487 | 2019-04-05 Marek Polacek <polacek@redhat.com> |
2488 | ||
ab20d992 | 2489 | PR c++/89973 - -Waddress-of-packed-member ICE with invalid conversion. |
05564120 MP |
2490 | * c-warn.c (check_address_or_pointer_of_packed_member): Check the type |
2491 | of RHS. | |
2492 | ||
7a506c3c JM |
2493 | 2019-04-03 Jason Merrill <jason@redhat.com> |
2494 | ||
2495 | PR c++/86586 - -fcompare-debug=-Wsign-compare. | |
2496 | * c-warn.c (warn_for_sign_compare): Call fold_for_warn. | |
2497 | ||
ddeae8c8 MS |
2498 | 2019-04-01 Martin Sebor <msebor@redhat.com> |
2499 | ||
2500 | PR c/89685 | |
2501 | * c-attribs.c (handle_copy_attribute): Handle references and | |
2502 | non-constant expressions. | |
2503 | ||
a15ffa22 JJ |
2504 | 2019-03-22 Jakub Jelinek <jakub@redhat.com> |
2505 | ||
2506 | PR c++/87481 | |
2507 | * c.opt (-fconstexpr-ops-limit=): New option. | |
2508 | ||
36a3a7a3 JJ |
2509 | 2019-03-21 Jakub Jelinek <jakub@redhat.com> |
2510 | ||
2511 | * c-common.c (per_file_includes_t): Use false as Lazy in hash_set | |
2512 | template param. | |
2513 | ||
bec1da64 MS |
2514 | 2019-03-19 Martin Sebor <msebor@redhat.com> |
2515 | ||
2516 | PR tree-optimization/89688 | |
2517 | * c-common.c (braced_list_to_string): Make static. | |
2518 | (braced_lists_to_strings): Define new function. | |
2519 | * c-common.h (braced_list_to_string): Remove. | |
2520 | (braced_lists_to_strings): Declare. | |
2521 | ||
1fe61adf ML |
2522 | 2019-03-12 Martin Liska <mliska@suse.cz> |
2523 | ||
2524 | * c-opts.c (c_common_handle_option): Wrap option with %< and %>. | |
2525 | ||
93964ebd ML |
2526 | 2019-03-11 Martin Liska <mliska@suse.cz> |
2527 | ||
2528 | * c-opts.c (c_common_post_options): Wrap apostrophes | |
2529 | in gcc internal format with %'. | |
2530 | ||
a3f9f006 ML |
2531 | 2019-03-11 Martin Liska <mliska@suse.cz> |
2532 | ||
2533 | * c-attribs.c (handle_nocf_check_attribute): Wrap an option name | |
2534 | in a string format message and fix GNU coding style. | |
2535 | * c-common.c (vector_types_convertible_p): Likewise. | |
2536 | (c_build_vec_perm_expr): Likewise. | |
2537 | * c-indentation.c (get_visual_column): Likewise. | |
2538 | * c-opts.c (c_common_handle_option): Likewise. | |
2539 | (c_common_post_options): Likewise. | |
2540 | (sanitize_cpp_opts): Likewise. | |
2541 | * c-pch.c (c_common_pch_pragma): Likewise. | |
2542 | * c-pragma.c (handle_pragma_pack): Likewise. | |
2543 | ||
1db01ff9 JJ |
2544 | 2019-03-08 Jakub Jelinek <jakub@redhat.com> |
2545 | ||
2546 | PR tree-optimization/89550 | |
2547 | * c-common.c (c_common_truthvalue_conversion): Only set | |
2548 | TREE_NO_WARNING if warning_at returned true. | |
2549 | * c-warn.c (overflow_warning, warn_logical_operator): Likewise. | |
2550 | ||
ba790e6f JJ |
2551 | 2019-02-25 Sandra Loosemore <sandra@codesourcery.com> |
2552 | Martin Sebor <msebor@gmail.com> | |
2553 | ||
2554 | * c.opt (Wmissing-attributes): Clean up doc string. | |
2555 | ||
7da73ba7 JJ |
2556 | 2019-02-25 Jakub Jelinek <jakub@redhat.com> |
2557 | ||
2558 | PR c/89495 | |
2559 | * c-format.c (maybe_read_dollar_number): Compute nargnum in | |
2560 | HOST_WIDE_INT type to avoid overflows and change overflow_flag | |
2561 | checking. | |
2562 | ||
921bb9d1 RB |
2563 | 2019-02-22 Richard Biener <rguenther@suse.de> |
2564 | ||
2565 | * c-pch.c (no_checksum): Remove. | |
2566 | (pch_init): Remove assertion that executable_checksum is not | |
2567 | all zero. | |
2568 | (c_common_valid_pch): Likewise. | |
2569 | ||
e2ebb05c MS |
2570 | 2019-02-18 Martin Sebor <msebor@redhat.com> |
2571 | ||
2572 | PR middle-end/89294 | |
2573 | * c-common.c (invalid_array_size_error): Handle cst_size_not_constant. | |
2574 | ||
3fe53000 DM |
2575 | 2019-02-16 David Malcolm <dmalcolm@redhat.com> |
2576 | ||
2577 | PR c++/88680 | |
2578 | * c-common.c (shorten_compare): Call fold_for_warn on op0 when | |
2579 | implementing -Wtype-limits. | |
2580 | ||
28a8cef1 MS |
2581 | 2019-02-11 Martin Sebor <msebor@redhat.com> |
2582 | ||
2583 | PR c++/87996 | |
2584 | * c-common.c (invalid_array_size_error): New function. | |
2585 | (valid_array_size_p): Call it. Handle size as well as type. | |
2586 | * c-common.h (valid_constant_size_p): New function. | |
2587 | (enum cst_size_error): New type. | |
2588 | ||
ec2be203 DM |
2589 | 2019-01-31 David Malcolm <dmalcolm@redhat.com> |
2590 | ||
2591 | PR c/89122 | |
2592 | * known-headers.cc (get_stdlib_header_for_name): Add | |
2593 | {FLT|DBL|LDBL}_{MAX|MIN} to "hints" array. | |
2594 | ||
8936f047 JJ |
2595 | 2019-01-31 Jakub Jelinek <jakub@redhat.com> |
2596 | ||
2597 | PR libstdc++/88170 | |
2598 | * c-pretty-print.c (pp_c_enumeration_constant): Print always as | |
2599 | a C cast in pp_c_flag_gnu_v3 mode. | |
2600 | ||
6a335b96 JJ |
2601 | 2019-01-29 Jakub Jelinek <jakub@redhat.com> |
2602 | ||
2603 | PR c/86125 | |
2604 | * c-common.c (c_common_nodes_and_builtins): Build type variants for | |
2605 | builtin_structptr_types types even for C. | |
2606 | ||
2a06eba5 BE |
2607 | 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de> |
2608 | ||
2609 | * c-warn.c (check_address_or_pointer_of_packed_member): Handle the case | |
2610 | when rhs is of array type correctly. Fix handling of nested structures. | |
2611 | Fix handling of indirect_ref together with nop_expr and/or addr_expr. | |
2612 | (check_and_warn_address_or_pointer_of_packed_member): Fix handling of | |
2613 | type casts within nested compound expressions. | |
2614 | ||
18a23298 JJ |
2615 | 2019-01-22 Jakub Jelinek <jakub@redhat.com> |
2616 | ||
2617 | PR middle-end/88968 | |
2618 | * c-omp.c (c_finish_omp_atomic): For bitfield atomics, update type | |
2619 | variable after using BIT_FIELD_REF. | |
2620 | ||
420183d9 L |
2621 | 2019-01-18 H.J. Lu <hongjiu.lu@intel.com> |
2622 | ||
2623 | PR c/51628 | |
2624 | PR c/88664 | |
2625 | * c-common.h (warn_for_address_or_pointer_of_packed_member): | |
2626 | Remove the boolean argument. | |
2627 | * c-warn.c (check_address_of_packed_member): Renamed to ... | |
2628 | (check_address_or_pointer_of_packed_member): This. Also | |
2629 | warn pointer conversion. | |
2630 | (check_and_warn_address_of_packed_member): Renamed to ... | |
2631 | (check_and_warn_address_or_pointer_of_packed_member): This. | |
2632 | Also warn pointer conversion. | |
2633 | (warn_for_address_or_pointer_of_packed_member): Remove the | |
2634 | boolean argument. Don't check pointer conversion here. | |
2635 | ||
99063eee RS |
2636 | 2019-01-15 Richard Sandiford <richard.sandiford@arm.com> |
2637 | ||
2638 | PR inline-asm/52813 | |
2639 | * c.opt (Wdeprecated): Move documentation and variable to common.opt. | |
2640 | ||
a30d0196 JJ |
2641 | 2019-01-14 Jakub Jelinek <jakub@redhat.com> |
2642 | ||
2643 | * c-cppbuiltin.c (c_cpp_builtin): Define __cpp_guaranteed_copy_elision | |
2644 | and __cpp_nontype_template_parameter_auto. Add a comment that | |
2645 | __cpp_template_auto is deprecated. | |
2646 | ||
2d91f79d TH |
2647 | 2019-01-14 Tom Honermann <tom@honermann.net> |
2648 | ||
2649 | Implement P0482R5, char8_t: A type for UTF-8 characters and strings | |
2650 | * c-common.c (c_common_reswords): Add char8_t. | |
2651 | (fix_string_type): Use char8_t for the type of u8 string literals. | |
2652 | (c_common_get_alias_set): char8_t doesn't alias. | |
2653 | (c_common_nodes_and_builtins): Define char8_t as a builtin type in | |
2654 | C++. | |
2655 | (c_stddef_cpp_builtins): Add __CHAR8_TYPE__. | |
2656 | (keyword_begins_type_specifier): Add RID_CHAR8. | |
2657 | * c-common.h (rid): Add RID_CHAR8. | |
2658 | (c_tree_index): Add CTI_CHAR8_TYPE and CTI_CHAR8_ARRAY_TYPE. | |
2659 | Define D_CXX_CHAR8_T and D_CXX_CHAR8_T_FLAGS. | |
2660 | Define char8_type_node and char8_array_type_node. | |
2661 | * c-cppbuiltin.c (cpp_atomic_builtins): Predefine | |
2662 | __GCC_ATOMIC_CHAR8_T_LOCK_FREE. | |
2663 | (c_cpp_builtins): Predefine __cpp_char8_t. | |
2664 | * c-lex.c (lex_string): Use char8_array_type_node as the type of | |
2665 | CPP_UTF8STRING. | |
2666 | (lex_charconst): Use char8_type_node as the type of CPP_UTF8CHAR. | |
2667 | * c-opts.c: If not otherwise specified, enable -fchar8_t when | |
2668 | targeting C++2a. | |
2669 | * c.opt: Add the -fchar8_t command line option. | |
2670 | ||
23db6ced MS |
2671 | 2019-01-14 Martin Sebor <msebor@redhat.com> |
2672 | ||
2673 | PR target/88638 | |
2674 | * c-attribs.c (positional_argument): Call valid_format_string_type_p | |
2675 | and issue errors if it fails. | |
2676 | * c-common.h (valid_format_string_type_p): Declare. | |
2677 | * c-format.c (valid_stringptr_type_p): Rename... | |
2678 | (valid_format_string_type_p): ...to this and make extern. | |
2679 | (handle_format_arg_attribute): Adjust to new name. | |
2680 | (check_format_string): Same. | |
2681 | ||
234c3818 L |
2682 | 2019-01-13 H.J. Lu <hongjiu.lu@intel.com> |
2683 | ||
2684 | * c-warn.c (warn_for_address_or_pointer_of_packed_member): | |
2685 | Replace "may may" with "may" in warning message. | |
2686 | ||
d8fcab68 JJ |
2687 | 2019-01-07 Jakub Jelinek <jakub@redhat.com> |
2688 | ||
2689 | PR c++/85052 | |
2690 | * c-common.h (enum rid): Add RID_BUILTIN_CONVERTVECTOR. | |
2691 | (c_build_vec_convert): Declare. | |
2692 | * c-common.c (c_build_vec_convert): New function. | |
2693 | ||
29d24852 MS |
2694 | 2019-01-04 Martin Sebor <msebor@redhat.com> |
2695 | ||
2696 | PR c/88546 | |
2697 | * c-attribs.c (handle_copy_attribute): Avoid copying attribute leaf. | |
2698 | Handle C++ empty throw specification and C11 _Noreturn. | |
2699 | (has_attribute): Also handle C11 _Noreturn. | |
2700 | ||
9069a4c9 MS |
2701 | 2019-01-04 Martin Sebor <msebor@redhat.com> |
2702 | ||
2703 | PR c/88363 | |
2704 | * c-attribs.c (positional_argument): Also accept enumerated types. | |
2705 | ||
a5544970 JJ |
2706 | 2019-01-01 Jakub Jelinek <jakub@redhat.com> |
2707 | ||
2708 | Update copyright years. | |
2709 | ||
da77eace L |
2710 | 2018-12-20 H.J. Lu <hongjiu.lu@intel.com> |
2711 | ||
2712 | PR c/51628 | |
2713 | * c-common.h (warn_for_address_or_pointer_of_packed_member): New. | |
2714 | * c-warn.c (check_alignment_of_packed_member): New function. | |
2715 | (check_address_of_packed_member): Likewise. | |
2716 | (check_and_warn_address_of_packed_member): Likewise. | |
2717 | (warn_for_address_or_pointer_of_packed_member): Likewise. | |
2718 | * c.opt: Add -Wno-address-of-packed-member. | |
2719 | ||
573767d4 DM |
2720 | 2018-12-20 David Malcolm <dmalcolm@redhat.com> |
2721 | ||
2722 | PR c++/87504 | |
2723 | * c-warn.c (get_outermost_macro_expansion): New function. | |
2724 | (spelled_the_same_p): Use it to unwind the macro expansions, and | |
2725 | compare the outermost macro in each nested expansion, rather than | |
2726 | the innermost. | |
2727 | ||
a14feb3c DM |
2728 | 2018-12-19 David Malcolm <dmalcolm@redhat.com> |
2729 | ||
2730 | PR c++/87504 | |
2731 | * c-common.h (warn_tautological_cmp): Convert 1st param from | |
2732 | location_t to const op_location_t &. | |
2733 | * c-warn.c (find_array_ref_with_const_idx_r): Call fold_for_warn | |
2734 | when testing for INTEGER_CST. | |
2735 | (warn_tautological_bitwise_comparison): Convert 1st param from | |
2736 | location_t to const op_location_t &; use it to build a | |
2737 | binary_op_rich_location, and use this. | |
2738 | (spelled_the_same_p): New function. | |
2739 | (warn_tautological_cmp): Convert 1st param from location_t to | |
2740 | const op_location_t &. Warn for macro expansions if | |
2741 | spelled_the_same_p. Use binary_op_rich_location. | |
2742 | ||
dfd7fdca DM |
2743 | 2018-12-19 David Malcolm <dmalcolm@redhat.com> |
2744 | ||
2745 | PR c++/43064 | |
2746 | PR c++/43486 | |
2747 | * c-common.c (unsafe_conversion_p): Fold any location wrapper. | |
2748 | (verify_tree): Handle location wrappers. | |
2749 | (c_common_truthvalue_conversion): Strip any location wrapper. | |
2750 | Handle CONST_DECL. | |
2751 | (fold_offsetof): Strip any location wrapper. | |
2752 | (complete_array_type): Likewise for initial_value. | |
2753 | (convert_vector_to_array_for_subscript): Call fold_for_warn on the | |
2754 | index before checking for INTEGER_CST. | |
2755 | * c-pretty-print.c (c_pretty_printer::primary_expression): Don't | |
2756 | print parentheses around location wrappers. | |
2757 | * c-warn.c (warn_logical_operator): Call fold_for_warn on op_right | |
2758 | before checking for INTEGER_CST. | |
2759 | (warn_tautological_bitwise_comparison): Call | |
2760 | tree_strip_any_location_wrapper on lhs, rhs, and bitop's operand | |
2761 | before checking for INTEGER_CST. | |
2762 | (readonly_error): Strip any location wrapper. | |
2763 | (warn_array_subscript_with_type_char): Strip location wrappers | |
2764 | before checking for INTEGER_CST. Use the location of the index if | |
2765 | available. | |
2766 | ||
5c8b3702 JM |
2767 | 2018-12-06 Jason Merrill <jason@redhat.com> |
2768 | ||
2769 | PR c++/88136 - -Wdeprecated-copy false positives | |
2770 | * c.opt (Wdeprecated-copy-dtor): New. | |
2771 | (Wdeprecated-copy): Move to -Wextra. | |
2772 | ||
673670da MS |
2773 | 2018-11-29 Martin Sebor <msebor@redhat.com> |
2774 | ||
2775 | PR c/88172 | |
2776 | PR testsuite/88208 | |
2777 | * c-attribs.c (common_handle_aligned_attribute): Silently avoid setting | |
2778 | alignments to values less than the target requires. | |
2779 | (has_attribute): For attribute aligned consider both the attribute | |
2780 | and the alignment bits. | |
2781 | * c-common.c (c_init_attributes): Optionally issue a warning for | |
2782 | zero alignment. | |
2783 | ||
04864ec8 MS |
2784 | 2018-11-28 Martin Sebor <msebor@redhat.com> |
2785 | ||
2786 | PR c/88065 | |
2787 | PR c/87297 | |
2788 | * c-warn.c (sizeof_pointer_memaccess_warning): Bail if source | |
2789 | or destination is an error. | |
2790 | ||
ace83db0 JJ |
2791 | 2018-11-28 Jakub Jelinek <jakub@redhat.com> |
2792 | ||
2793 | PR c++/88215 | |
2794 | * c-ubsan.c: Include langhooks.h. | |
2795 | (ubsan_instrument_division): Change gcc_assert that main variants | |
2796 | of op0 and op1 types are equal to gcc_checking_assert that the | |
2797 | main variants are compatible types. | |
2798 | ||
da193a27 EB |
2799 | 2018-11-27 Eric Botcazou <ebotcazou@adacore.com> |
2800 | ||
2801 | * c-ada-spec.c: Include stringpool.h. | |
2802 | (has_static_fields): Return false for incomplete types. | |
2803 | (is_tagged_type): Likewise. | |
2804 | (has_nontrivial_methods): Likewise. | |
2805 | (dump_ada_node) <INTEGER_TYPE>: Deal specifically with __int128. | |
2806 | (struct overloaded_name_hash): New structure. | |
2807 | (struct overloaded_name_hasher): Likewise. | |
2808 | (overloaded_names): New global variable. | |
2809 | (init_overloaded_names): New static function. | |
2810 | (overloaded_name_p): New predicate. | |
2811 | (dump_ada_declaration) <TYPE_DECL>: Tidy up and set TREE_VISITED | |
2812 | on the TYPE_STUB_DECL of the original type of a typedef, if any. | |
2813 | <FUNCTION_DECL>: Bail out for an unsupported overloaded name. | |
2814 | Remove always-true condition and dump forward types. | |
2815 | (dump_ada_specs): Delete overloaded_names. | |
2816 | ||
98f08eb8 MS |
2817 | 2018-11-20 Martin Sebor <msebor@redhat.com> |
2818 | ||
2819 | * c-attribs.c (type_for_vector_size): New function. | |
2820 | (type_valid_for_vector_size): Same. | |
2821 | (handle_vector_size_attribute): Move code to the functions above | |
2822 | and call them. | |
2823 | (validate_attribute, has_attribute): New functions. | |
2824 | * c-common.h (has_attribute): Declare. | |
2825 | (rid): Add RID_HAS_ATTRIBUTE_EXPRESSION. | |
2826 | * c-common.c (c_common_resword): Same. | |
2827 | ||
2674fa47 JM |
2828 | 2018-11-16 Jason Merrill <jason@redhat.com> |
2829 | ||
2830 | * c-lex.c (c_common_has_attribute): Handle likely/unlikely. | |
2831 | * c-attribs.c (attr_cold_hot_exclusions): Make public. | |
2832 | ||
258b3854 JJ |
2833 | 2018-11-16 Jakub Jelinek <jakub@redhat.com> |
2834 | ||
2835 | PR middle-end/87854 | |
2836 | * c-common.c (fix_string_type): Reject string literals larger than | |
2837 | TYPE_MAX_VALUE (ssizetype) bytes. | |
2838 | ||
1d249509 MS |
2839 | 2018-11-15 Martin Sebor <msebor@redhat.com> |
2840 | ||
2841 | PR c++/87541 | |
2842 | PR c++/87542 | |
2843 | * c-attribs.c (positional_argument): New function. | |
2844 | (handle_alloc_size_attribute): Use it and simplify. | |
2845 | (handle_alloc_align_attribute): Same. | |
2846 | (handle_assume_aligned_attribute): Same. | |
2847 | (handle_nonnull_attribute): Same. | |
2848 | * c-common.c (check_function_arguments): Pass fntype to | |
2849 | check_function_format. | |
2850 | * c-common.h (check_function_format): Add an argument. | |
2851 | (PosArgFlags, positional_argument): Declare new type and function. | |
2852 | * c-format.c (decode_format_attr): Add arguments. | |
2853 | (check_format_string, get_constant): Same. | |
2854 | (convert_format_name_to_system_name): Adjust. | |
2855 | ||
478dd60d DM |
2856 | 2018-11-15 David Malcolm <dmalcolm@redhat.com> |
2857 | ||
2858 | PR other/19165 | |
2859 | * c-opts.c (c_diagnostic_finalizer): Add diagnostic_t param. | |
2860 | ||
8cca0163 JJ |
2861 | 2018-11-14 Jakub Jelinek <jakub@redhat.com> |
2862 | ||
8ee09943 JJ |
2863 | P1236R1 - Signed integers are two's complement |
2864 | * c-warn.c (maybe_warn_shift_overflow): Don't warn for c++2a. | |
2865 | * c-ubsan.c (ubsan_instrument_shift): Make signed shifts | |
2866 | with in-range second operand well defined for -std=c++2a. | |
2867 | ||
8cca0163 JJ |
2868 | PR other/88007 |
2869 | * c-common.c (parse_optimize_options): Allocate option string from | |
2870 | opts_obstack rather than as GC memory. Move the allocation after | |
2871 | warning for invalid option. | |
2872 | ||
620e594b DM |
2873 | 2018-11-13 David Malcolm <dmalcolm@redhat.com> |
2874 | ||
2875 | * c-common.c (c_get_substring_location): Update for renaming of | |
2876 | get_source_location_for_substring to get_location_within_string. | |
2877 | * c-lex.c: Replace "source_location" with "location_t". | |
2878 | * c-opts.c: Likewise. | |
2879 | * c-ppoutput.c: Likewise. | |
2880 | ||
f9731de3 MS |
2881 | 2018-11-13 Martin Sebor <msebor@redhat.com> |
2882 | ||
2883 | PR middle-end/81824 | |
2884 | * c-attribs.c (handle_copy_attribute): Exclude inlining attributes. | |
2885 | (handle_tls_model_attribute): Improve diagnostics. | |
2886 | ||
e4bd6d5e JM |
2887 | 2018-11-12 Jason Merrill <jason@redhat.com> |
2888 | ||
a6bb6b07 JM |
2889 | * c-cppbuiltin.c (c_cpp_builtins): Define |
2890 | __cpp_impl_destroying_delete. | |
2891 | ||
e4bd6d5e JM |
2892 | * c-cppbuiltin.c (c_cpp_builtins): Change __cpp_explicit_bool to |
2893 | __cpp_conditional_explicit. | |
2894 | ||
79a2c428 MS |
2895 | 2018-11-09 Martin Sebor <msebor@redhat.com> |
2896 | ||
2897 | PR middle-end/81824 | |
2898 | * c-attribs.c (handle_copy_attribute): New function. | |
2899 | ||
4c7bd361 MS |
2900 | 2018-11-09 Martin Sebor <msebor@redhat.com> |
2901 | ||
2902 | PR c/87795 | |
2903 | * c-common.c (check_user_alignment): Use MAX_OFILE_ALIGNMENT. | |
2904 | ||
28567c40 JJ |
2905 | 2018-11-08 Jakub Jelinek <jakub@redhat.com> |
2906 | ||
2907 | * c-common.h (c_finish_omp_taskgroup): Add CLAUSES argument. | |
2908 | (c_finish_omp_atomic): Replace bool SEQ_CST argument with | |
2909 | enum omp_memory_order MEMORY_ORDER. | |
2910 | (c_finish_omp_flush): Add MO argument. | |
2911 | (c_omp_depend_t_p, c_finish_omp_depobj): Declare. | |
2912 | (c_finish_omp_for): Add FINAL_P argument. | |
2913 | * c-omp.c: Include memmodel.h. | |
2914 | (c_finish_omp_taskgroup): Add CLAUSES argument. Set | |
2915 | OMP_TASKGROUP_CLAUSES to it. | |
2916 | (c_finish_omp_atomic): Replace bool SEQ_CST argument with | |
2917 | enum omp_memory_order MEMORY_ORDER. Set OMP_ATOMIC_MEMORY_ORDER | |
2918 | instead of OMP_ATOMIC_SEQ_CST. | |
2919 | (c_omp_depend_t_p, c_finish_omp_depobj): New functions. | |
2920 | (c_finish_omp_flush): Add MO argument, if not MEMMODEL_LAST, emit | |
2921 | __atomic_thread_fence call with the given value. | |
2922 | (check_omp_for_incr_expr): Formatting fixes. | |
2923 | (c_finish_omp_for): Add FINAL_P argument. Allow NE_EXPR | |
2924 | even in OpenMP loops, diagnose if NE_EXPR and incr expression | |
2925 | is not constant expression 1 or -1. Transform NE_EXPR loops | |
2926 | with iterators pointers to VLA into LT_EXPR or GT_EXPR loops. | |
2927 | (c_omp_check_loop_iv_r): Look for orig decl of C++ range for | |
2928 | loops too. | |
2929 | (c_omp_split_clauses): Add support for combined | |
2930 | #pragma omp parallel master and | |
2931 | #pragma omp {,parallel }master taskloop{, simd} constructs. | |
2932 | Handle OMP_CLAUSE_IN_REDUCTION. Handle OMP_CLAUSE_REDUCTION_TASK. | |
2933 | Handle OMP_CLAUSE_NONTEMPORAL. Handle splitting OMP_CLAUSE_IF | |
2934 | also to OMP_SIMD. Copy OMP_CLAUSE_LASTPRIVATE_CONDITIONAL. | |
2935 | (c_omp_predetermined_sharing): Don't return | |
2936 | OMP_CLAUSE_DEFAULT_SHARED for const qualified decls. | |
2937 | * c-pragma.c (omp_pragmas): Add PRAGMA_OMP_DEPOBJ and | |
2938 | PRAGMA_OMP_REQUIRES. | |
2939 | * c-pragma.h (enum pragma_kind): Likewise. | |
2940 | (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_NONTEMPORAL | |
2941 | and PRAGMA_OMP_CLAUSE_{IN,TASK}_REDUCTION. | |
2942 | ||
204839e7 DM |
2943 | 2018-11-08 David Malcolm <dmalcolm@redhat.com> |
2944 | ||
2945 | * c-format.c (gcc_dump_printf_char_table): Add entry for %f. | |
2946 | ||
d8010ee4 DM |
2947 | 2018-11-08 David Malcolm <dmalcolm@redhat.com> |
2948 | ||
2949 | * c-format.c (local_cgraph_node_ptr_node): New variable. | |
2950 | (gcc_dump_printf_char_table): Add entry for %C. | |
2951 | (get_pointer_to_named_type): New function, taken from the handling | |
2952 | code for "gimple *" from... | |
2953 | (init_dynamic_diag_info): ...here. Add handling for | |
2954 | "cgraph_node *". | |
2955 | * c-format.h (T_CGRAPH_NODE): New. | |
2956 | ||
4be5c72c JM |
2957 | 2018-10-19 Jason Merrill <jason@redhat.com> |
2958 | ||
2959 | * c-cppbuiltin.c (c_cpp_builtins): Add | |
2960 | __cpp_nontype_template_parameter_class. | |
2961 | ||
f3f6029d NS |
2962 | 2018-10-31 Nathan Sidwell <nathan@acm.org> |
2963 | ||
ab5324fb NS |
2964 | * c-opts.c (c_finish_options): Force command line macro |
2965 | location. Refactor to avoid repeating main debug hook. | |
2966 | (push_command_line_include): Clarify comment. | |
2967 | ||
f3f6029d NS |
2968 | * c-opts.c (c_finish_options): Adjust cpp_force_token_locations call. |
2969 | ||
91e3ec29 MS |
2970 | 2018-10-30 Martin Sebor <msebor@redhat.com> |
2971 | ||
2972 | PR middle-end/87041 | |
2973 | * c-format.c (check_format_types): Avoid diagnosing null pointer | |
2974 | arguments to printf-family of functions. | |
2975 | ||
b5ff4f5c MP |
2976 | 2018-10-30 Marek Polacek <polacek@redhat.com> |
2977 | ||
2978 | Implement P0892R2, explicit(bool). | |
2979 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_explicit_bool. | |
2980 | ||
7e2de6df DM |
2981 | 2018-10-29 David Malcolm <dmalcolm@redhat.com> |
2982 | ||
2983 | * name-hint.h (name_hint::take_deferred): New member function. | |
2984 | ||
b2bf438c DM |
2985 | 2018-10-29 David Malcolm <dmalcolm@redhat.com> |
2986 | ||
2987 | PR c++/56856 | |
2988 | * c-common.c (check_function_sentinel): Call fold_for_warn on the | |
2989 | argument. | |
2990 | (check_function_restrict): Rename param "argarray" to | |
2991 | "unfolded_argarray", and make a copy named "argarray", calling | |
2992 | fold_for_warn on each argument. | |
2993 | (check_function_arguments): Add note about responsibility for | |
2994 | folding the arguments. | |
2995 | ||
9f936c86 JM |
2996 | 2018-10-17 Joseph Myers <joseph@codesourcery.com> |
2997 | ||
2998 | * c-common.c (flag_isoc2x): New variable. | |
2999 | * c-common.h (clk_c): Update comment to reference C2X. | |
3000 | (flag_isoc99, flag_isoc11): Update comments to reference future | |
3001 | standard versions in general. | |
3002 | (flag_isoc2x): Declare. | |
3003 | * c-opts.c (set_std_c2x): New function. | |
3004 | (c_common_handle_option): Handle -std=c2x and -std=gnu2x. | |
3005 | (set_std_c89, set_std_c99, set_std_c11, set_std_c17): Set | |
3006 | flag_isoc2x to 0. | |
3007 | * c.opt (Wc11-c2x-compat, std=c2x, std=gnu2x): New options. | |
3008 | ||
7a8a92c4 JM |
3009 | 2018-10-17 Joseph Myers <joseph@codesourcery.com> |
3010 | ||
3011 | * c.opt (std=c17, std=c18, std=gnu17, std=gnu18, std=iso9899:2017) | |
3012 | (std=iso9899:2018): Document C17 as published in 2018. | |
3013 | ||
4dc003ff CL |
3014 | 2018-10-12 Christophe Lyon <christophe.lyon@linaro.org> |
3015 | ||
3016 | PR c++/87364 | |
3017 | * c-pretty-print.c (c_pretty_printer::constant): Fix typo. | |
3018 | ||
79371671 WW |
3019 | 2018-10-11 Will Wray <wjwray@gmail.com> |
3020 | ||
3021 | PR c++/87364 | |
3022 | * c-pretty-print.h (pp_c_type_cast): Prototype. | |
3023 | (pp_c_integer_constant): Likewise. | |
3024 | * c-pretty-print.c (pp_c_type_cast): No longer static. | |
3025 | (pp_c_integer_constant): Likewise. | |
3026 | (pp_c_enumeration_constant): Fix loop termination when finding | |
3027 | name of constant. No longer returns a value. Call | |
3028 | pp_c_integer_constant. | |
3029 | (c_pretty_printer::constant): Update for changes to | |
3030 | pp_c_enumeration_constant. | |
3031 | ||
46c62690 JJ |
3032 | 2018-10-11 Jakub Jelinek <jakub@redhat.com> |
3033 | ||
3034 | * c-lex.c (c_common_has_attribute): Return 201803 instead of 20180312 | |
3035 | for no_unique_address. | |
3036 | ||
c24300ba DM |
3037 | 2018-10-09 David Malcolm <dmalcolm@redhat.com> |
3038 | ||
3039 | * c-common.c (c_option_controlling_cpp_error): Rename to... | |
3040 | (c_option_controlling_cpp_diagnostic): ...this, and convert | |
3041 | "reason" from int to enum. | |
3042 | (c_cpp_error): Rename to... | |
3043 | (c_cpp_diagnostic): ...this, converting level and reason to enums. | |
3044 | * c-common.h (c_cpp_error): Rename to... | |
3045 | (c_cpp_diagnostic): ...this, converting level and reason to enums. | |
3046 | * c-opts.c (c_common_init_options): Update for renaming. | |
3047 | ||
8656dafa RS |
3048 | 2018-10-08 Richard Sandiford <richard.sandiford@arm.com> |
3049 | ||
3050 | PR c/87286 | |
3051 | * c-common.c (vector_types_compatible_elements_p): Use | |
3052 | INTEGRAL_TYPE_P instead of checking only for INTEGER_TYPE. | |
3053 | ||
8cff0652 VK |
3054 | 2018-10-04 Vinay Kumar <vinay.kumar@blackfigtech.com> |
3055 | ||
3056 | * c-attribs.c (get_priority): Add a warning flag warn_prio_ctor_dtor | |
3057 | to generate constructor destructor priority warning. | |
3058 | * c.opt (-Wprio-ctor-dtor): New option. | |
3059 | ||
bedf03a2 JM |
3060 | 2018-10-01 Jason Merrill <jason@redhat.com> |
3061 | ||
3062 | * c-lex.c (c_common_has_attribute): Add no_unique_address. | |
3063 | ||
6cc430c1 EB |
3064 | 2018-10-01 Eric Botcazou <ebotcazou@adacore.com> |
3065 | ||
3066 | * c-ada-spec.c (get_underlying_decl): Get to the main type variant. | |
3067 | (dump_ada_node): Add const keyword. | |
3068 | ||
87677ac7 ML |
3069 | 2018-09-25 Martin Liska <mliska@suse.cz> |
3070 | ||
3071 | * c-common.c (c_common_truthvalue_conversion): | |
3072 | Remove Pascal from documentation. | |
3073 | ||
518196cb EB |
3074 | 2018-09-21 Eric Botcazou <ebotcazou@adacore.com> |
3075 | ||
3076 | * c-ada-spec.c: Include diagnostic.h. | |
3077 | (dump_ada_declaration) <RECORD_TYPE>: Issue a warning on packed layout. | |
3078 | ||
a599af84 MP |
3079 | 2018-09-19 Marek Polacek <polacek@redhat.com> |
3080 | ||
3081 | * c.opt (Wclass-conversion): New. | |
3082 | ||
9c4a4b3c DM |
3083 | 2018-09-17 David Malcolm <dmalcolm@redhat.com> |
3084 | ||
3085 | * c-format.c (range_label_for_format_type_mismatch::get_text): | |
3086 | Update for new param. | |
3087 | ||
c896ecfe DM |
3088 | 2018-09-17 David Malcolm <dmalcolm@redhat.com> |
3089 | ||
3090 | * c-format.c (format_warning_at_char): Update for introduction of | |
3091 | format_string_diagnostic_t. | |
3092 | (format_type_warning): Likewise. | |
3093 | ||
80c6d1f4 MJ |
3094 | 2018-09-17 Martin Jambor <mjambor@suse.cz> |
3095 | ||
3096 | PR c/63886 | |
3097 | * c.opt (Wabsolute-value): New. | |
3098 | ||
6d900107 BE |
3099 | 2018-09-06 Bernd Edlinger <bernd.edlinger@hotmail.de> |
3100 | ||
3101 | * c-common.c (complete_flexible_array_elts): New helper function. | |
3102 | * c-common.h (complete_flexible_array_elts): Declare. | |
3103 | ||
b5764229 BE |
3104 | 2018-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de> |
3105 | ||
3106 | * c-common.c (braced_list_to_string): Remove eval parameter. | |
3107 | Add some more checks. Always create zero-terminated STRING_CST. | |
3108 | * c-common.h (braced_list_to_string): Adjust prototype. | |
3109 | ||
85204e23 DM |
3110 | 2018-08-27 David Malcolm <dmalcolm@redhat.com> |
3111 | ||
3112 | PR 87091 | |
3113 | * c-common.c (c_cpp_error): Update for conversion of show_caret_p | |
3114 | to a tri-state. | |
3115 | (maybe_suggest_missing_token_insertion): Likewise. | |
3116 | (maybe_add_include_fixit): Add param "override_location". If set, | |
3117 | and source-printing is enabled, then override the rich_location's | |
3118 | primary location with that of the insertion point for the fix-it | |
3119 | hint, marking it with SHOW_LINES_WITHOUT_RANGE. | |
3120 | * c-common.h (extern void maybe_add_include_fixit): Add bool | |
3121 | param. | |
3122 | * c-format.c (selftest::test_type_mismatch_range_labels): Update | |
3123 | for conversion of show_caret_p to a tri-state. | |
3124 | * c-warn.c (warn_for_restrict): Likewise. | |
3125 | * known-headers.cc | |
3126 | (suggest_missing_header::~suggest_missing_header): Update call to | |
3127 | maybe_add_include_fixit to suggest overriding the location, as it | |
3128 | is for a note. | |
3129 | ||
3d78e008 ML |
3130 | 2018-08-27 Martin Liska <mliska@suse.cz> |
3131 | ||
3132 | * c-common.c (check_function_restrict): Use new function | |
92a285c1 ML |
3133 | fndecl_built_in_p and remove check for FUNCTION_DECL if |
3134 | possible. | |
3d78e008 ML |
3135 | (check_builtin_function_arguments): Likewise. |
3136 | (reject_gcc_builtin): Likewise. | |
3137 | * c-warn.c (sizeof_pointer_memaccess_warning): Likewise. | |
3138 | ||
b5be6d0c MP |
3139 | 2018-08-26 Marek Polacek <polacek@redhat.com> |
3140 | ||
3141 | PR c++/87029, Implement -Wredundant-move. | |
3142 | * c.opt (Wredundant-move): New option. | |
3143 | ||
79ca9c35 MP |
3144 | 2018-08-21 Marek Polacek <polacek@redhat.com> |
3145 | ||
3146 | PR c++/86981, Implement -Wpessimizing-move. | |
3147 | * c.opt (Wpessimizing-move): New option. | |
3148 | ||
097f82ec DM |
3149 | 2018-08-20 David Malcolm <dmalcolm@redhat.com> |
3150 | ||
3151 | PR other/84889 | |
3152 | * c-attribs.c (common_handle_aligned_attribute): Add | |
3153 | auto_diagnostic_group instance. | |
3154 | * c-indentation.c (warn_for_misleading_indentation): Likewise. | |
3155 | * c-opts.c (c_common_post_options): Likewise. | |
3156 | * c-warn.c (warn_logical_not_parentheses): Likewise. | |
3157 | (warn_duplicated_cond_add_or_warn): Likewise. | |
3158 | (warn_for_multistatement_macros): Likewise. | |
3159 | ||
3fb558b1 NS |
3160 | 2018-08-20 Nathan Sidwell <nathan@acm.org> |
3161 | ||
3162 | * c-ada-spec.c (macro_length, dump_ada_macros): Adjust macro parm | |
3163 | access. | |
3164 | ||
800c0e98 NS |
3165 | 2018-08-17 Nathan Sidwell <nathan@acm.org> |
3166 | ||
3167 | * c-cppbuiltin.c (struct lazy_hex_fp_value_struct): Remove macro | |
3168 | field. | |
3169 | (laxy_hex_fp_value_count): Make unsigned. | |
3170 | (lazy_hex_fp_value): Provided with macro & lazy number. Directly | |
3171 | manipulate the macro. | |
3172 | (builtin_defin_with_hex_fp_value): Adjust callback name, use | |
3173 | cpp_define_lazily. | |
3174 | ||
6f795a92 DM |
3175 | 2018-08-17 David Malcolm <dmalcolm@redhat.com> |
3176 | ||
3177 | * c-format.c (enum format_type): Add gcc_dump_printf_format_type. | |
3178 | (gcc_dump_printf_length_specs): New. | |
3179 | (gcc_dump_printf_flag_pairs): New. | |
3180 | (gcc_dump_printf_flag_specs): New. | |
3181 | (gcc_dump_printf_char_table): New. | |
3182 | (format_types_orig): Add entry for "gcc_dump_printf". | |
3183 | (init_dynamic_diag_info): Set up length_char_specs and | |
3184 | conversion_specs for gcc_dump_printf_format_type. | |
3185 | (handle_format_attribute): Handle gcc_dump_printf_format_type. | |
3186 | ||
c5d725c0 NS |
3187 | 2018-08-17 Nathan Sidwell <nathan@acm.org> |
3188 | ||
10f04917 NS |
3189 | * c-ada-spec.c (macro_length, dump_ada_macros): Constify. |
3190 | ||
c5d725c0 NS |
3191 | * c-ada-spec.c: Don't #include "cpp-id-data.h" |
3192 | * c-cppbuiltin.c: Likewise. | |
3193 | ||
c0c12356 ML |
3194 | 2018-08-17 Martin Liska <mliska@suse.cz> |
3195 | ||
3196 | * c.opt: Remove Warn, Init and Report for options with | |
92a285c1 ML |
3197 | Ignore/Deprecated flag. Warning is done automatically for |
3198 | Deprecated flags. | |
c0c12356 | 3199 | |
10fcc142 DM |
3200 | 2018-08-16 David Malcolm <dmalcolm@redhat.com> |
3201 | ||
3202 | PR c++/70693 | |
3203 | * c-common.c (selftest::c_family_tests): Call | |
3204 | selftest::c_indentation_c_tests. | |
3205 | * c-common.h (selftest::c_indentation_c_tests): New decl. | |
3206 | * c-indentation.c: Include "selftest.h". | |
3207 | (next_tab_stop): Add "tab_width" param, rather than accessing | |
3208 | cpp_opts. | |
3209 | (get_visual_column): Likewise. Clarify comment. Bulletproof | |
3210 | against reading past the end of the line. | |
3211 | (get_first_nws_vis_column): Add "tab_width" param. | |
3212 | (detect_intervening_unindent): Likewise. | |
3213 | (should_warn_for_misleading_indentation): Read tab width from | |
3214 | cpp_opts and pass around. | |
3215 | (selftest::test_next_tab_stop): New test. | |
3216 | (selftest::assert_get_visual_column_succeeds): New function. | |
3217 | (ASSERT_GET_VISUAL_COLUMN_SUCCEEDS): New macro. | |
3218 | (selftest::assert_get_visual_column_fails): New function. | |
3219 | (ASSERT_GET_VISUAL_COLUMN_FAILS): New macro. | |
3220 | (selftest::test_get_visual_column): New test. | |
3221 | (selftest::c_indentation_c_tests): New function. | |
3222 | ||
3f6677f4 NS |
3223 | 2018-08-16 Nathan Sidwell <nathan@acm.org> |
3224 | ||
3225 | * c-ada-spec.c (count_ada_macro): Use cpp_user_macro_p. | |
3226 | (store_ada_macro): Likewise. | |
3227 | * c-ppoutput.c (cb_used_define, dump_macro): Likewise. | |
3228 | * c-spellcheck.cc (should-suggest_as_macro_p): Likewise, | |
3229 | ||
96e6ae57 DM |
3230 | 2018-08-15 David Malcolm <dmalcolm@redhat.com> |
3231 | ||
3232 | * c-format.c: Include "selftest-diagnostic.h" and | |
3233 | "gcc-rich-location.h". | |
3234 | (format_warning_at_char): Pass NULL for new label params of | |
3235 | format_warning_va. | |
3236 | (class indirection_suffix): New class. | |
3237 | (class range_label_for_format_type_mismatch): New class. | |
3238 | (format_type_warning): Move logic for generating "*" suffix to | |
3239 | class indirection_suffix. Create "fmt_label" and "param_label" | |
3240 | to show their types, and pass them to the | |
3241 | format_warning_at_substring calls. | |
3242 | (selftest::test_type_mismatch_range_labels): New test. | |
3243 | (selftest::c_format_c_tests): Call it. | |
3244 | ||
23aa9f7c MS |
3245 | 2018-08-13 Martin Sebor <msebor@redhat.com> |
3246 | ||
3247 | PR tree-optimization/71625 | |
3248 | * c-common.c (braced_list_to_string): New function. | |
3249 | * c-common.h (braced_list_to_string): Declare it. | |
3250 | ||
f10a9135 NS |
3251 | 2018-08-08 Nathan Sidwell <nathan@acm.org> |
3252 | ||
3253 | * c-common.c (try_to_locate_new_include_inertion_point): Use | |
3254 | linemap_included_from_linemap. | |
3255 | * c-lex.c (fe_file_change): Use linemap_included_from. | |
3256 | * c-ppoutput.c (pp_file_change): Likewise. | |
3257 | ||
8a45b051 MS |
3258 | 2018-08-01 Martin Sebor <msebor@redhat.com> |
3259 | ||
3260 | PR tree-optimization/86650 | |
ab20d992 | 3261 | * c-format.c (gcc_tdiag_char_table): Update comment for "%G". |
8a45b051 MS |
3262 | (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Same. |
3263 | (init_dynamic_diag_info): Update from "gcall *" to "gimple *". | |
3264 | * c-format.h (T89_G): Update to be "gimple *" rather than | |
3265 | "gcall *". | |
3266 | (local_gcall_ptr_node): Rename... | |
3267 | (local_gimple_ptr_node): ...to this. | |
3268 | ||
e540ccc0 DM |
3269 | 2018-07-31 David Malcolm <dmalcolm@redhat.com> |
3270 | ||
3271 | * c-format.c (PP_FORMAT_CHAR_TABLE): New macro, based on existing | |
3272 | table entries for gcc_diag_char_table, and the 'Z' entry from | |
3273 | gcc_tdiag_char_table, changing the "chain" entry for 'Z' from | |
3274 | &gcc_tdiag_char_table[0] to &gcc_diag_char_table[0]. | |
3275 | (gcc_diag_char_table): Use PP_FORMAT_CHAR_TABLE, implicitly | |
3276 | adding missing "Z" for this table. Remove erroneous "G" and "K" | |
3277 | entries. | |
3278 | (gcc_tdiag_char_table): Use PP_FORMAT_CHAR_TABLE. Remove "v". | |
3279 | (gcc_cdiag_char_table): Use PP_FORMAT_CHAR_TABLE. | |
3280 | (gcc_cxxdiag_char_table): Use PP_FORMAT_CHAR_TABLE. Remove "v". | |
3281 | ||
425fc685 RE |
3282 | 2018-07-31 Richard Earnshaw <rearnsha@arm.com> |
3283 | ||
3284 | * c-common.c (speculation_safe_resolve_call): New function. | |
3285 | (speculation_safe_resolve_params): New function. | |
3286 | (speculation_safe_resolve_return): New function. | |
3287 | (resolve_overloaded_builtin): Handle __builtin_speculation_safe_value. | |
3288 | * c-cppbuiltin.c (c_cpp_builtins): Add pre-define for | |
3289 | __HAVE_SPECULATION_SAFE_VALUE. | |
3290 | ||
181463c2 DM |
3291 | 2018-07-20 David Malcolm <dmalcolm@redhat.com> |
3292 | ||
3293 | * c-common.c (c_cpp_error): Remove redundant "line_table" | |
3294 | parameter from call to rich_location::set_range. | |
3295 | (maybe_suggest_missing_token_insertion): Likewise. | |
3296 | ||
0d7f9065 MS |
3297 | 2018-07-20 Martin Sebor <msebor@redhat.com> |
3298 | ||
3299 | PR middle-end/82063 | |
ab20d992 | 3300 | * c.opt (-Warray-bounds): Remove redundant -Wall. |
0d7f9065 | 3301 | |
00abf86c MS |
3302 | 2018-07-20 Martin Sebor <msebor@redhat.com> |
3303 | ||
3304 | PR middle-end/82063 | |
3305 | * c-common.h (c_common_handle_option): Change function argument | |
3306 | to HOST_WIDE_INT. | |
3307 | * c-opts.c (c_common_init_options): Same. | |
3308 | (c_common_handle_option): Same. Remove special handling of | |
3309 | OPT_Walloca_larger_than_ and OPT_Wvla_larger_than_. | |
3310 | * c.opt (-Walloc-size-larger-than, -Walloca-larger-than): Change | |
3311 | options to take a HOST_WIDE_INT argument and accept a byte-size | |
3312 | suffix. Initialize. | |
3313 | (-Wvla-larger-than): Same. | |
3314 | (-Wno-alloc-size-larger-than, -Wno-alloca-larger-than): New. | |
3315 | (-Wno-vla-larger-than): Same. | |
3316 | ||
9b452033 JJ |
3317 | 2018-07-12 Jakub Jelinek <jakub@redhat.com> |
3318 | ||
3319 | * c-attribs.c (c_common_attribute_table): Add | |
3320 | "omp declare target implicit" attribute. | |
3321 | ||
cd0762f3 RB |
3322 | 2018-07-12 Richard Biener <rguenther@suse.de> |
3323 | ||
3324 | PR c/86453 | |
3325 | * c-attribs.c (handle_packed_attribute): Do not build a variant | |
3326 | type with TYPE_PACKED, instead ignore the attribute if we may | |
3327 | not apply to the original type. | |
3328 | ||
0b27c3ed JJ |
3329 | 2018-07-10 Jakub Jelinek <jakub@redhat.com> |
3330 | ||
3331 | PR c++/86443 | |
3332 | * c-omp.c (c_omp_check_loop_iv_r, c_omp_check_loop_iv): Allow declv | |
3333 | to contain TREE_LIST for both the original class iterator and the | |
3334 | "last" helper var. | |
3335 | ||
e730a0ef EB |
3336 | 2018-07-07 Eric Botcazou <ebotcazou@adacore.com> |
3337 | ||
3338 | * c-ada-spec.c (to_ada_name): Remove index parameter. | |
3339 | (pp_ada_tree_identifier): Likewise. | |
3340 | (dump_ada_macros): Adjust call to to_ada_name. | |
3341 | (struct overloaded_name_hash): Delete. | |
3342 | (struct overloaded_name_hasher): Likewise. | |
3343 | (overloaded_names): Likewise. | |
3344 | (compute_overloading_index): Likewise. | |
3345 | (dump_ada_decl_name): Do not call compute_overloading_index and | |
3346 | adjust calls to pp_ada_tree_identifier. | |
3347 | (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier. | |
3348 | (dump_ada_import): Add spc parameter and switch to aspect syntax. | |
3349 | (dump_ada_function_declaration): Adjust call to pp_ada_tree_identifier. | |
3350 | (dump_ada_enum_type): Remove type and display_convention parameters. | |
3351 | Adjust calls to pp_ada_tree_identifier. | |
3352 | (dump_ada_node): Likewise and for dump_ada_structure. | |
3353 | (dump_nested_type) <ENUMERAL_TYPE>: Adjust call to dump_ada_enum_type | |
3354 | and tidy up. | |
3355 | <RECORD_TYPE>: Adjust call to dump_ada_structure and switch to aspect | |
3356 | syntax. | |
3357 | (print_constructor): Adjust call to pp_ada_tree_identifier. | |
3358 | (print_destructor): Likewise. | |
3359 | (dump_ada_declaration): Switch to aspect syntax. | |
3360 | (dump_ada_structure): Likewise and tidy up. Replace display_convention | |
3361 | parameter with nested parameter. | |
3362 | (dump_ads): Emit pragma Ada_2012 in lieu of pragma Ada_2005. | |
3363 | (dump_ada_specs): Do not delete overloaded_names table. | |
3364 | ||
8de583fc PB |
3365 | 2018-07-06 Peter Bergner <bergner@linux.ibm.com> |
3366 | ||
3367 | PR target/86324 | |
e730a0ef | 3368 | * c-attribs.c (handle_mode_attribute): Call translate_mode_attribute |
8de583fc PB |
3369 | target hook. |
3370 | ||
09cff37b NS |
3371 | 2018-07-05 Nathan Sidwell <nathan@acm.org> |
3372 | ||
3373 | * c-lex.c (fe_file_change): Check SYSTEM_IMPLICIT_EXTERN_C not | |
3374 | NO_IMPLICIT_EXTERN_C. | |
3375 | ||
98086b2b ML |
3376 | 2018-06-28 Martin Liska <mliska@suse.cz> |
3377 | ||
3378 | * cppspec.c: Include opt-suggestions.h. | |
3379 | ||
ab20d992 JJ |
3380 | 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com> |
3381 | Thomas Schwinge <thomas@codesourcery.com> | |
829c6349 CLT |
3382 | Cesar Philippidis <cesar@codesourcery.com> |
3383 | ||
3384 | * c-pragma.h (enum pragma_omp_clause): Add | |
3385 | PRAGMA_OACC_CLAUSE_{FINALIZE,IF_PRESENT}. Remove | |
3386 | PRAGMA_OACC_CLAUSE_PRESENT_OR_{COPY,COPYIN,COPYOUT,CREATE}. | |
3387 | ||
f41b7612 JJ |
3388 | 2018-06-20 Jakub Jelinek <jakub@redhat.com> |
3389 | ||
3390 | PR c++/86210 | |
3391 | * c-common.c (check_nonnull_arg): Use fold_for_warn. Adjust obsolete | |
3392 | comment. | |
3393 | ||
4252ccd7 MS |
3394 | 2018-06-18 Martin Sebor <msebor@redhat.com> |
3395 | ||
3396 | PR middle-end/85602 | |
3397 | * c-warn.c (sizeof_pointer_memaccess_warning): Check for attribute | |
3398 | nonstring. | |
3399 | ||
e197e64e KV |
3400 | 2018-06-16 Kugan Vivekanandarajah <kuganv@linaro.org> |
3401 | ||
3402 | * c-common.c (c_common_truthvalue_conversion): Handle ABSU_EXPR. | |
3403 | ||
34a7a230 JM |
3404 | 2018-06-13 Jason Merrill <jason@redhat.com> |
3405 | ||
5cef3733 JM |
3406 | * c-opts.c (c_common_post_options): Warn about useless -Wabi. |
3407 | (c_common_handle_option) [OPT_Wabi_]: Remove flag_abi_compat_version | |
3408 | handling. | |
3409 | ||
34a7a230 JM |
3410 | PR c++/86094 - wrong code with defaulted move ctor. |
3411 | * c-opts.c (c_common_post_options): Bump the current ABI version to | |
3412 | 13. Set warn_abi_version and flag_abi_compat_version to the current | |
3413 | version rather than 0. Fix defaulting flag_abi_compat_version from | |
3414 | warn_abi_version. | |
3415 | ||
bb0f14ae MS |
3416 | 2018-06-12 Martin Sebor <msebor@redhat.com> |
3417 | ||
3418 | PR c/85931 | |
3419 | * c-warn.c (sizeof_pointer_memaccess_warning): Avoid warning when | |
3420 | sizeof source and destination yields the same value. | |
3421 | ||
3713f2e2 ML |
3422 | 2018-06-12 Martin Liska <mliska@suse.cz> |
3423 | ||
3424 | * c.opt: Make MPX-related options as Deprecated. | |
3425 | ||
4af78ef8 DM |
3426 | 2018-06-08 David Malcolm <dmalcolm@redhat.com> |
3427 | ||
3428 | * c-pretty-print.c (c_pretty_printer::statement): Use TDF_NONE | |
3429 | rather than 0. | |
3430 | ||
31db0fe0 ML |
3431 | 2018-06-08 Martin Liska <mliska@suse.cz> |
3432 | ||
3433 | * c-attribs.c (handle_bnd_variable_size_attribute): Remove support | |
3434 | for MPX (macros, related functions, fields in cgraph_node, ...). | |
3435 | (handle_bnd_legacy): Likewise. | |
3436 | (handle_bnd_instrument): Likewise. | |
3437 | * c.opt: Likewise. | |
3438 | ||
fe16acf2 JJ |
3439 | 2018-06-06 Jakub Jelinek <jakub@redhat.com> |
3440 | ||
3441 | PR c++/86068 | |
3442 | * c-cppbuiltin.c (c_cpp_builtins): Fix a typo, set | |
3443 | __cpp_transactional_memory to 201500 instead of 210500. | |
3444 | ||
4dbdb49b JM |
3445 | 2018-06-06 Jason Merrill <jason@redhat.com> |
3446 | ||
3447 | PR c++/85710 - ICE with -Wmemset-elt-size. | |
3448 | * c-warn.c (warn_for_memset): Don't crash on incomplete element type. | |
3449 | ||
f8ad043f JM |
3450 | 2018-06-01 Jason Merrill <jason@redhat.com> |
3451 | ||
3452 | * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_deduction_guides to | |
3453 | 201703. | |
3454 | ||
abc24d93 EB |
3455 | 2018-06-01 Eric Botcazou <ebotcazou@adacore.com> |
3456 | ||
3457 | * c-ada-spec.c (dump_ada_declaration) <TYPE_DECL>: Generate a forward | |
3458 | declaration for a typedef independently of whether the declaration of | |
3459 | the subtype is generated. | |
3460 | ||
d258f4aa MS |
3461 | 2018-05-31 Martin Sebor <msebor@redhat.com> |
3462 | ||
3463 | PR c/82063 | |
3464 | * c.opt (-Wno-alloc-size-larger-than): New option. | |
3465 | ||
b67b9225 DP |
3466 | 2018-04-22 David Pagan <dave.pagan@oracle.com> |
3467 | ||
3468 | PR c/55976 | |
3469 | * c-opts.c (c_common_post_options): Set default for warn_return_type | |
ab20d992 | 3470 | for C++/C++ with ObjC extensions only. For C, makes it possible to |
b67b9225 DP |
3471 | differentiate between default (no option), -Wreturn-type, and |
3472 | -Wno-return-type. | |
3473 | ||
04eb9c55 JM |
3474 | 2018-05-29 Jason Merrill <jason@redhat.com> |
3475 | ||
3476 | * c.opt (Winit-list-lifetime): New flag. | |
3477 | ||
b0c31bc6 BE |
3478 | 2018-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de> |
3479 | ||
3480 | * c-lex.c (get_fileinfo): Use splay_tree_compare_strings and | |
3481 | splay_tree_delete_pointers. | |
3482 | ||
44284983 JJ |
3483 | 2018-05-26 Jakub Jelinek <jakub@redhat.com> |
3484 | ||
3485 | PR bootstrap/85921 | |
3486 | * c-warn.c (diagnose_mismatched_attributes): Remove unnecessary | |
3487 | noinline variable to workaround broken kernel headers. | |
3488 | ||
b46b715d JM |
3489 | 2018-05-18 Jason Merrill <jason@redhat.com> |
3490 | ||
3491 | * c.opt (Wdeprecated-copy): New flag. | |
3492 | ||
40659769 ML |
3493 | 2018-05-17 Martin Liska <mliska@suse.cz> |
3494 | ||
3495 | * c-warn.c (overflow_warning): Do not use | |
3496 | space in between 'G_' and '('. | |
3497 | ||
403962ea JM |
3498 | 2018-05-09 Jason Merrill <jason@redhat.com> |
3499 | ||
3500 | * c-common.c (valid_array_size_p): Add complain parameter. | |
3501 | * c-common.h: ...which defaults to true. | |
3502 | ||
1c9ee609 JJ |
3503 | 2018-05-11 Jakub Jelinek <jakub@redhat.com> |
3504 | ||
3505 | PR c/85696 | |
3506 | * c-omp.c (c_omp_predetermined_sharing): Return | |
3507 | OMP_CLAUSE_DEFAULT_SHARED for artificial vars with integral type. | |
3508 | ||
19916065 ML |
3509 | 2018-05-11 Martin Liska <mliska@suse.cz> |
3510 | ||
92a285c1 | 3511 | PR sanitizer/85556 |
19916065 ML |
3512 | * c-attribs.c (handle_no_sanitize_attribute): Iterate all |
3513 | TREE_LIST values. | |
3514 | ||
79e7b1fe JJ |
3515 | 2018-05-10 Jakub Jelinek <jakub@redhat.com> |
3516 | ||
3517 | PR c++/85662 | |
3518 | * c-common.h (fold_offsetof_1): Removed. | |
3519 | (fold_offsetof): Add TYPE argument defaulted to size_type_node and | |
3520 | CTX argument defaulted to ERROR_MARK. | |
3521 | * c-common.c (fold_offsetof_1): Renamed to ... | |
3522 | (fold_offsetof): ... this. Remove wrapper function. Add TYPE | |
3523 | argument, convert the pointer constant to TYPE and use size_binop | |
3524 | with PLUS_EXPR instead of fold_build_pointer_plus if type is not | |
3525 | a pointer type. Adjust recursive calls. | |
3526 | ||
86c12f76 EB |
3527 | 2018-05-10 Eric Botcazou <ebotcazou@adacore.com> |
3528 | ||
3529 | PR c++/85400 | |
3530 | * c-attribs.c (handle_visibility_attribute): Do not set no_add_attrs. | |
3531 | ||
ee336e84 NS |
3532 | 2018-05-07 Nathan Sidwell <nathan@acm.org> |
3533 | ||
3534 | * c.opt (ffor-scope): Remove functionality, issue warning. | |
3535 | ||
6c072e21 NS |
3536 | 2018-05-03 Nathan Sidwell <nathan@acm.org> |
3537 | ||
3538 | * c.opt (ffriend-injection): Remove functionality, issue warning. | |
3539 | ||
2cc7d3a7 DM |
3540 | 2018-05-01 David Malcolm <dmalcolm@redhat.com> |
3541 | ||
3542 | PR c/84258 | |
3543 | * c-format.c (struct format_check_results): Add field | |
3544 | "number_non_char". | |
3545 | (check_format_info): Initialize it, and warn if encountered. | |
3546 | (check_format_arg): Distinguish between wide char and | |
3547 | everything else when detecting arrays of non-char. | |
3548 | ||
7761dfbe DM |
3549 | 2018-04-30 David Malcolm <dmalcolm@redhat.com> |
3550 | ||
3551 | * c-format.c (get_corrected_substring): Update for | |
3552 | location_get_source_line returning a char_span. Use a char_span | |
3553 | when handling the prefix of the correction. | |
3554 | * c-indentation.c (get_visual_column): Update for | |
3555 | location_get_source_line returning a char_span. | |
3556 | (get_first_nws_vis_column): Likewise. | |
3557 | ||
62e98ef1 DM |
3558 | 2018-03-29 David Malcolm <dmalcolm@redhat.com> |
3559 | ||
3560 | PR c++/84269 | |
3561 | * known-headers.cc (get_stdlib_header_for_name): Add various names | |
3562 | from <assert.h>, <string.h>, and <memory.h>; add more names from | |
3563 | <stdio.h>. | |
3564 | ||
a7dea617 JJ |
3565 | 2018-03-27 Jakub Jelinek <jakub@redhat.com> |
3566 | ||
3567 | PR c++/85061 | |
3568 | * c-common.c (fold_offsetof_1) <case COMPOUND_EXPR>: Assert that | |
3569 | get_base_address of the second operand is a VAR_P, rather than the | |
3570 | operand itself, and use gcc_checking_assert instead of gcc_assert. | |
3571 | ||
889a3a30 MP |
3572 | 2018-03-23 Marek Polacek <polacek@redhat.com> |
3573 | ||
3574 | PR c++/85045 | |
3575 | * c-pretty-print.c (c_pretty_printer::multiplicative_expression) | |
3576 | <case RDIV_EXPR>: Tweak condition. | |
3577 | ||
452154b9 EB |
3578 | 2018-03-20 Eric Botcazou <ebotcazou@adacore.com> |
3579 | ||
3580 | * c-ada-spec.c (pp_ada_tree_identifier): Deal specifically with _Bool. | |
3581 | ||
63ecb626 JJ |
3582 | 2018-03-16 Jakub Jelinek <jakub@redhat.com> |
3583 | ||
ce811fc4 JJ |
3584 | PR c/84909 |
3585 | * c-warn.c (conversion_warning): Replace "to to" with "to" in | |
3586 | diagnostics. | |
3587 | ||
63ecb626 JJ |
3588 | PR c/84910 |
3589 | * c-warn.c (diagnose_mismatched_attributes): Remove trailing space from | |
3590 | diagnostics. | |
3591 | ||
a1295eec RB |
3592 | 2018-03-16 Richard Biener <rguenther@suse.de> |
3593 | ||
3594 | PR c/84873 | |
3595 | * c-gimplify.c (c_gimplify_expr): Revert previous change. Instead | |
3596 | unshare the possibly folded expression. | |
3597 | ||
919674fb RB |
3598 | 2018-03-15 Richard Biener <rguenther@suse.de> |
3599 | ||
3600 | PR c/84873 | |
3601 | * c-gimplify.c (c_gimplify_expr): Do not fold expressions. | |
3602 | ||
f99309b2 MS |
3603 | 2018-03-13 Martin Sebor <msebor@redhat.com> |
3604 | ||
3605 | PR tree-optimization/84725 | |
3606 | * c-attribs.c (handle_nonstring_attribute): Allow attribute nonstring | |
3607 | with all three narrow character types, including their qualified forms. | |
3608 | ||
e9b9fa4c MS |
3609 | 2018-03-12 Martin Sebor <msebor@redhat.com> |
3610 | ||
3611 | PR tree-optimization/83456 | |
ab20d992 | 3612 | * c-common.c (check_function_restrict): Return bool. |
e9b9fa4c MS |
3613 | Restore checking of bounded built-in functions. |
3614 | (check_function_arguments): Also return the result | |
3615 | of warn_for_restrict. | |
ab20d992 JJ |
3616 | * c-common.c (check_function_restrict): Return bool. |
3617 | * c-warn.c (warn_for_restrict): Return bool. | |
e9b9fa4c | 3618 | |
0805d020 MP |
3619 | 2018-03-02 Marek Polacek <polacek@redhat.com> |
3620 | ||
3621 | PR c++/84171 | |
3622 | * c-warn.c (warn_for_sign_compare): Bail out if any of the operands | |
3623 | is erroneous. | |
3624 | ||
ed2a2f08 TS |
3625 | 2018-03-02 Thomas Schwinge <thomas@codesourcery.com> |
3626 | ||
3627 | * c-attribs.c (c_common_attribute_table): Remove "cilk simd | |
3628 | function". | |
3629 | ||
90abdde0 MP |
3630 | 2018-03-01 Marek Polacek <polacek@redhat.com> |
3631 | ||
3632 | PR c++/84639 | |
3633 | * c-attribs.c (common_handle_aligned_attribute): Don't use invalid | |
3634 | alignment in computation. | |
3635 | ||
c6db43fa EB |
3636 | 2018-02-28 Eric Botcazou <ebotcazou@adacore.com> |
3637 | ||
3638 | * c-ada-spec.c (dump_ada_node) <NULLPTR_TYPE>: New case. | |
3639 | <REAL_TYPE>: Deal specifically with _Float128/__float128. | |
3640 | ||
9e25c7ed EB |
3641 | 2018-02-28 Eric Botcazou <ebotcazou@adacore.com> |
3642 | ||
3643 | * c-ada-spec.c (dump_ada_double_name) <ENUMERAL_TYPE>: New case. | |
3644 | (is_char_array): Take a type instead of a declaration. | |
3645 | (dump_ada_array_type): Likewise. | |
3646 | (is_simple_enum): Minor tweak. | |
3647 | (dump_ada_enum_type): New function extracted from... | |
3648 | (dump_ada_node) <ENUMERAL_TYPE>: ...here. Invoke it. | |
3649 | <INTEGER_TYPE>: Remove unreachable code. | |
3650 | <RECORD_TYPE>: Likewise. Minor tweaks. | |
3651 | (dump_nested_type) <ARRAY_TYPE>: Adjust to above changes. | |
3652 | <ENUMERAL_TYPE>: New case. | |
3653 | <RECORD_TYPE>: Factor out common code. | |
3654 | (dump_ada_declaration) <ARRAY_TYPE>: Adjust to above changes. | |
3655 | Minor tweaks. Deal with enumeral types. | |
3656 | (dump_ada_structure): Minor tweaks. | |
3657 | ||
09de3550 EB |
3658 | 2018-02-28 Eric Botcazou <ebotcazou@adacore.com> |
3659 | ||
3660 | * c-ada-spec.c (dump_ada_node) <POINTER_TYPE>: Do not use generic | |
3661 | address for incomplete structures. | |
3662 | (dump_forward_type): Do not bail out for incomplete structures. | |
3663 | (dump_ada_declaration): Do not special-case incomplete structures | |
3664 | for subtypes. Dump them as null records for types. | |
3665 | ||
095d8d4b EB |
3666 | 2018-02-28 Eric Botcazou <ebotcazou@adacore.com> |
3667 | ||
3668 | * c-ada-spec.c (dump_ada_import): Use boolean and fix formatting. | |
3669 | (is_char_array): Fix formatting. | |
3670 | (dump_template_types): Likewise. | |
3671 | (dump_generic_ada_node): Rename into... | |
3672 | (dump_ada_node): ...this. | |
3673 | <POINTER_TYPE>: Remove superfluous space. Use generic address for | |
3674 | incomplete structures and not for empty structures. Do not use it | |
3675 | when forward declarations are needed. | |
3676 | (dump_forward_type): New function. | |
3677 | (dump_nested_types): Remove FORWARD parameter. Do not consider | |
3678 | TREE_VISITED and do not generate a forward declaration. Only dump | |
3679 | original nested types for nested declaration. | |
3680 | (dump_nested_type) <POINTER_TYPE>: Call dump_forward_type. | |
3681 | <ARRAY_TYPE>: Likewise if the component type is an anonymous pointer. | |
3682 | <RECORD_TYPE>: Do not consider TREE_VISITED. | |
3683 | (dump_ada_declaration): Use booleans and fix formatting throughout. | |
3684 | <TYPE_DECL>: Skip incomplete structures and not empty structures. | |
3685 | Call dump_forward_type instead of dump_nested_types for a typedef. | |
3686 | Remove superfluous check and adjust call to dump_nested_types. | |
3687 | <POINTER_TYPE>: Call dump_forward_type and fall through. | |
3688 | (dump_ada_struct_decl): Rename into... | |
3689 | (dump_ada_structure): ...this. Do not special-case empty structures. | |
3690 | ||
d4cfd486 MS |
3691 | 2018-02-27 Martin Sebor <msebor@redhat.com> |
3692 | ||
3693 | PR c++/83871 | |
3694 | * c.opt (-Wmissing-attributes): New option. | |
3695 | ||
b22dbd03 ML |
3696 | 2018-02-21 Martin Liska <mliska@suse.cz> |
3697 | ||
3698 | * c.opt (Wcatch-value=): Add IntegerRange. | |
3699 | ||
883dfe2a JM |
3700 | 2018-02-15 Jason Merrill <jason@redhat.com> |
3701 | ||
3702 | * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_deduction_guides. | |
3703 | ||
0444aa9c NS |
3704 | 2018-02-09 Nathan Sidwell <nathan@acm.org> |
3705 | ||
3706 | PR c/84293 | |
3707 | * c-common.h (strict_aliasing_warning): Drop OTYPE arg, insert LOC | |
3708 | arg. | |
3709 | * c-warn.c (strict_aliasing_warning): Drop OTYPE arg, require LOC | |
3710 | arg. Adjust. | |
3711 | ||
cea71f0a MS |
3712 | 2018-02-09 Martin Sebor <msebor@redhat.com> |
3713 | ||
3714 | PR lto/84212 | |
3715 | * c.opt (-Wstringop-overflow, -Warray-bounds): Add LTO. | |
3716 | (-Walloc-size-larger-than, -Wformat-truncation=): Same. | |
3717 | (-Wmaybe-uninitialized, -Wnonnull, -Wrestrict): Same. | |
3718 | (-Wstrict-overflow, -Wsuggest-attribute): Same. | |
3719 | (-Wuninitialized): Same. | |
3720 | ||
8c8b7be5 EB |
3721 | 2018-02-09 Eric Botcazou <ebotcazou@adacore.com> |
3722 | ||
3723 | * c-ada-spec.c (dump_ada_declaration): Do not generate the 'constant' | |
3724 | keyword for components. | |
3725 | ||
7c30b12a PC |
3726 | 2018-02-02 Paolo Carlini <paolo.carlini@oracle.com> |
3727 | ||
3728 | * c-common.h (DECL_UNNAMED_BIT_FIELD): New. | |
3729 | ||
eece7fe5 JK |
3730 | 2018-02-02 Julia Koval <julia.koval@intel.com> |
3731 | ||
3732 | * c-common.h (omp_clause_mask): Move to wide_int_bitmask.h. | |
3733 | ||
7d07a93a MP |
3734 | 2018-01-29 Marek Polacek <polacek@redhat.com> |
3735 | ||
3736 | PR c/83966 | |
3737 | * c-format.c (check_function_format): Check current_function_decl. | |
3738 | ||
53723269 JJ |
3739 | 2018-01-27 Jakub Jelinek <jakub@redhat.com> |
3740 | ||
3741 | * c-cppbuiltin.c (c_cpp_builtins): Use ggc_strdup for the fp_suffix | |
3742 | argument. | |
3743 | (LAZY_HEX_FP_VALUES_CNT): Define. | |
3744 | (lazy_hex_fp_values): Allow up to LAZY_HEX_FP_VALUES_CNT lazy hex fp | |
3745 | values rather than just 12. | |
3746 | (builtin_define_with_hex_fp_value): Likewise. | |
3747 | ||
7365279f BK |
3748 | 2018-01-18 Boris Kolpackov <boris@codesynthesis.com> |
3749 | ||
92a285c1 ML |
3750 | PR other/70268 |
3751 | * c.opt (-fmacro-prefix-map): New option. | |
3752 | * c-opts.c (c_common_handle_option): Handle it. | |
3753 | * c-lex.c (init_c_lex): Set remap_filename cpp callback. | |
3754 | * c-ppoutput.c (init_pp_output): Likewise. | |
7365279f | 3755 | |
bb9869d5 DM |
3756 | 2018-01-17 David Malcolm <dmalcolm@redhat.com> |
3757 | ||
3758 | PR c++/83814 | |
3759 | * c-common.c (fold_for_warn): Move to c/c-fold.c and cp/expr.c. | |
3760 | ||
68dc87c3 EB |
3761 | 2018-01-10 Eric Botcazou <ebotcazou@adacore.com> |
3762 | ||
3763 | * c-ada-spec.c (dump_number): Add FLOAT_P parameter. | |
3764 | Skip 'f' and 'F' characters if it is true. | |
3765 | (store_ada_macro): Minor tweak. | |
3766 | (dump_ada_macros) <CPP_COMMENT>: Likewise. | |
3767 | <CPP_WSTRING>: Likewise. | |
3768 | <CPP_STRING>: Output '&' in the buffer if not the first string. | |
3769 | <CPP_NUMBER>: Adjust calls to dump_number. | |
3770 | ||
9a004410 DM |
3771 | 2018-01-10 David Malcolm <dmalcolm@redhat.com> |
3772 | ||
3773 | PR c++/43486 | |
3774 | * c-common.c: Include "selftest.h". | |
3775 | (get_atomic_generic_size): Perform the test for integral type | |
3776 | before the range test for any integer constant, fixing indentation | |
3777 | of braces. Call fold_for_warn before testing for an INTEGER_CST. | |
3778 | (reject_gcc_builtin): Strip any location wrapper from EXPR. | |
3779 | (selftest::test_fold_for_warn): New function. | |
3780 | (selftest::c_common_c_tests): New function. | |
3781 | (selftest::c_family_tests): Call it, and | |
3782 | selftest::c_pretty_print_c_tests. | |
3783 | * c-common.h (selftest::c_pretty_print_c_tests): New decl. | |
3784 | * c-format.c (check_format_arg): Convert VAR_P check to a | |
3785 | fold_for_warn. | |
3786 | * c-pretty-print.c: Include "selftest.h". | |
3787 | (pp_c_cast_expression): Don't print casts for location wrappers. | |
3788 | (selftest::assert_c_pretty_printer_output): New function. | |
3789 | (ASSERT_C_PRETTY_PRINTER_OUTPUT): New macro. | |
3790 | (selftest::test_location_wrappers): New function. | |
3791 | (selftest::c_pretty_print_c_tests): New function. | |
3792 | * c-warn.c (warn_for_memset): Call fold_for_warn on the arguments. | |
3793 | ||
5c0caeb3 RS |
3794 | 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org> |
3795 | Alan Hayward <alan.hayward@arm.com> | |
3796 | David Sherwood <david.sherwood@arm.com> | |
3797 | ||
3798 | * c-common.c (c_common_type_for_mode): Handle MODE_VECTOR_BOOL. | |
3799 | ||
73a699ae RS |
3800 | 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org> |
3801 | Alan Hayward <alan.hayward@arm.com> | |
3802 | David Sherwood <david.sherwood@arm.com> | |
3803 | ||
3804 | * c-ubsan.c (ubsan_instrument_shift): Treat GET_MODE_BITSIZE | |
3805 | as polynomial. | |
3806 | ||
928686b1 RS |
3807 | 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org> |
3808 | Alan Hayward <alan.hayward@arm.com> | |
3809 | David Sherwood <david.sherwood@arm.com> | |
3810 | ||
3811 | * c-common.c (vector_types_convertible_p, c_build_vec_perm_expr) | |
3812 | (convert_vector_to_array_for_subscript): Handle polynomial | |
3813 | TYPE_VECTOR_SUBPARTS. | |
3814 | (c_common_type_for_mode): Check valid_vector_subparts_p. | |
3815 | * c-pretty-print.c (pp_c_initializer_list): Handle polynomial | |
3816 | VECTOR_CST_NELTS. | |
3817 | ||
85ec4feb JJ |
3818 | 2018-01-03 Jakub Jelinek <jakub@redhat.com> |
3819 | ||
3820 | Update copyright years. | |
3821 | ||
170a8bd6 | 3822 | 2017-12-22 Mike Stump <mikestump@comcast.net> |
92a285c1 | 3823 | Eric Botcazou <ebotcazou@adacore.com> |
170a8bd6 EB |
3824 | |
3825 | * c-pragma.c (init_pragma): Register pragma GCC unroll. | |
3826 | * c-pragma.h (enum pragma_kind): Add PRAGMA_UNROLL. | |
3827 | ||
ab20d992 | 3828 | 2017-12-22 Alexandre Oliva <aoliva@redhat.com> |
18408e96 AO |
3829 | |
3830 | PR debug/83527 | |
3831 | PR debug/83419 | |
3832 | * c-semantics.c (only_debug_stmts_after_p): New. | |
3833 | (pop_stmt_list): Clear side effects in debug-only stmt list. | |
3834 | Check for single nondebug stmt followed by debug stmts only. | |
3835 | ||
c12d20d4 AO |
3836 | 2017-12-21 Alexandre Oliva <aoliva@redhat.com> |
3837 | ||
3838 | PR debug/83419 | |
3839 | * c-semantics.c (pop_stmt_list): Propagate side effects from | |
3840 | single nondebug stmt to container list. | |
3841 | ||
01512446 JJ |
3842 | 2017-12-19 Jakub Jelinek <jakub@redhat.com> |
3843 | ||
3844 | * known-headers.cc (get_stdlib_header_for_name): Replace Yoda | |
3845 | conditions with typical order conditions. | |
3846 | ||
82cfbd01 MP |
3847 | 2017-12-18 Marek Polacek <polacek@redhat.com> |
3848 | ||
3849 | * c-warn.c (warn_logical_operator): Return early if -Wlogical-op is | |
3850 | not in effect. | |
3851 | ||
99da11ec MS |
3852 | 2017-12-17 Martin Sebor <msebor@redhat.com> |
3853 | ||
3854 | * c-attribs.c (common_handle_aligned_attribute): Avoid issuing | |
3855 | an error for attribute warn_if_not_aligned. | |
3856 | ||
cc8bea0a MS |
3857 | 2017-12-16 Martin Sebor <msebor@redhat.com> |
3858 | ||
3859 | PR tree-optimization/78918 | |
3860 | * c-common.c (check_function_restrict): Avoid checking built-ins. | |
3861 | * c.opt (-Wrestrict): Include in -Wall. | |
3862 | ||
4849deb1 JJ |
3863 | 2017-12-15 Jakub Jelinek <jakub@redhat.com> |
3864 | ||
3865 | * c-attribs.c (c_common_attribute_table, | |
3866 | c_common_format_attribute_table): Swap affects_type_identity | |
3867 | and handler fields, adjust comments. | |
3868 | ||
c65e18d3 BE |
3869 | 2017-12-14 Bernd Edlinger <bernd.edlinger@hotmail.de> |
3870 | ||
3871 | * c.opt (Wcast-function-type): New warning option. | |
3872 | * c-lex.c (get_fileinfo): Avoid warning. | |
3873 | * c-ppoutput.c (scan_translation_unit_directives_only): Remove cast. | |
3874 | ||
2004617a QZ |
3875 | 2017-12-14 Qing Zhao <qing.zhao@oracle.com> |
3876 | ||
7365279f | 3877 | PR middle_end/79538 |
2004617a QZ |
3878 | * c-cppbuiltin.c (builtin_define_with_hex_fp_value): |
3879 | Adjust the size of buf1 and buf2, add a new buf to avoid | |
3880 | format-overflow warning. | |
3881 | ||
ab20d992 | 3882 | 2017-12-12 Alexandre Oliva <aoliva@redhat.com> |
96a95ac1 AO |
3883 | |
3884 | * c-semantics.c (pop_stmt_list): Move begin stmt marker into | |
3885 | subsequent statement list. | |
3886 | ||
5d9ae53d MS |
3887 | 2017-12-07 Martin Sebor <msebor@redhat.com> |
3888 | ||
3889 | PR c/81544 | |
3890 | PR c/81566 | |
3891 | * c-attribs.c (attr_aligned_exclusions): New array. | |
3892 | (attr_alloc_exclusions, attr_cold_hot_exclusions): Same. | |
3893 | (attr_common_exclusions, attr_const_pure_exclusions): Same. | |
3894 | (attr_gnu_inline_exclusions, attr_inline_exclusions): Same. | |
3895 | (attr_noreturn_exclusions, attr_returns_twice_exclusions): Same. | |
3896 | (attr_warn_unused_result_exclusions): Same. | |
3897 | (handle_hot_attribute, handle_cold_attribute): Simplify. | |
3898 | (handle_const_attribute): Warn on function returning void. | |
3899 | (handle_pure_attribute): Same. | |
3900 | (handle_aligned_attribute): Diagnose conflicting attribute | |
3901 | specifications. | |
3902 | * c-warn.c (diagnose_mismatched_attributes): Simplify. | |
3903 | ||
c79144f8 DM |
3904 | 2017-12-06 David Malcolm <dmalcolm@redhat.com> |
3905 | ||
3906 | PR c/83236 | |
3907 | * c-common.c (selftest::c_family_tests): Call | |
3908 | selftest::c_spellcheck_cc_tests. | |
3909 | * c-common.h (selftest::c_spellcheck_cc_tests): New decl. | |
3910 | * c-spellcheck.cc: Include "selftest.h". | |
3911 | (name_reserved_for_implementation_p): New function. | |
3912 | (should_suggest_as_macro_p): New function. | |
3913 | (find_closest_macro_cpp_cb): Move the check for NT_MACRO to | |
3914 | should_suggest_as_macro_p and call it. | |
3915 | (selftest::test_name_reserved_for_implementation_p): New function. | |
3916 | (selftest::c_spellcheck_cc_tests): New function. | |
3917 | * c-spellcheck.h (name_reserved_for_implementation_p): New decl. | |
3918 | ||
613bc14f DM |
3919 | 2017-12-06 David Malcolm <dmalcolm@redhat.com> |
3920 | ||
3921 | * c-spellcheck.cc: New file, taken from macro-handling code in | |
3922 | spellcheck-tree.c. | |
3923 | * c-spellcheck.h: New file, taken from macro-handling code in | |
3924 | spellcheck-tree.h. | |
3925 | ||
e76c7157 JJ |
3926 | 2017-12-01 Jakub Jelinek <jakub@redhat.com> |
3927 | ||
3928 | * c-attribs.c (c_common_attribute_table): Remove "cilk simd function" | |
3929 | attribute. | |
3930 | (handle_simd_attribute): Don't check for "cilk simd function" | |
3931 | attribute. Reindent, formatting changes. | |
3932 | ||
b0da4034 JK |
3933 | 2017-11-30 Julia Koval <julia.koval@intel.com> |
3934 | ||
3935 | * c-common.h (inv_list): Remove. | |
3936 | ||
058f0b9e JJ |
3937 | 2017-11-28 Jakub Jelinek <jakub@redhat.com> |
3938 | ||
3939 | PR sanitizer/81275 | |
3940 | * c-common.c (c_switch_covers_all_cases_p_1, | |
3941 | c_switch_covers_all_cases_p): New functions. | |
3942 | * c-common.h (c_switch_covers_all_cases_p): Declare. | |
3943 | ||
5e9d6aa4 | 3944 | 2017-11-28 Julia Koval <julia.koval@intel.com> |
92a285c1 | 3945 | Sebastian Peryt <sebastian.peryt@intel.com> |
5e9d6aa4 JK |
3946 | |
3947 | * array-notation-common.c: Delete. | |
3948 | * c-cilkplus.c: Ditto. | |
3949 | * c-common.c (_Cilk_spawn, _Cilk_sync, _Cilk_for): Remove. | |
3950 | * c-common.def (ARRAY_NOTATION_REF): Remove. | |
3951 | * c-common.h (RID_CILK_SPAWN, build_array_notation_expr, | |
3952 | build_array_notation_ref, C_ORT_CILK, c_check_cilk_loop, | |
3953 | c_validate_cilk_plus_loop, cilkplus_an_parts, | |
3954 | cilk_ignorable_spawn_rhs_op, | |
3955 | cilk_recognize_spawn): Remove. | |
3956 | * c-gimplify.c (CILK_SPAWN_STMT): Remove. | |
3957 | * c-omp.c: Remove CILK_SIMD check. | |
3958 | * c-pragma.c: Ditto. | |
3959 | * c-pragma.h: Remove CILK related pragmas. | |
3960 | * c-pretty-print.c (c_pretty_printer::postfix_expression): Remove | |
3961 | ARRAY_NOTATION_REF condition. | |
3962 | (c_pretty_printer::expression): Ditto. | |
3963 | * c.opt (fcilkplus): Remove. | |
3964 | * cilk.c: Delete. | |
3965 | ||
1af4ebf5 MG |
3966 | 2017-11-21 Marc Glisse <marc.glisse@inria.fr> |
3967 | ||
3968 | * c-pretty-print.c (pp_c_additive_expression, | |
3969 | c_pretty_printer::expression): Handle POINTER_DIFF_EXPR. | |
3970 | ||
d44ed508 JJ |
3971 | 2017-11-21 Jakub Jelinek <jakub@redhat.com> |
3972 | ||
7d2f0f9b JJ |
3973 | * c-common.c (get_nonnull_operand): Use tree_to_uhwi. |
3974 | ||
d44ed508 JJ |
3975 | PR c++/83059 |
3976 | * c-common.c (get_atomic_generic_size): Use TREE_INT_CST_LOW | |
3977 | instead of tree_to_uhwi, formatting fix. | |
3978 | ||
26edace6 DM |
3979 | 2017-11-20 David Malcolm <dmalcolm@redhat.com> |
3980 | ||
3981 | PR c/81404 | |
3982 | * known-headers.cc: New file, based on material from c/c-decl.c. | |
3983 | (suggest_missing_header): Copied as-is. | |
3984 | (get_stdlib_header_for_name): New, based on get_c_name_hint but | |
3985 | heavily edited to add C++ support. Add some knowledge about | |
3986 | <limits.h>, <stdint.h>, and <wchar.h>. | |
3987 | * known-headers.h: Likewise. | |
3988 | ||
6c7a259b DM |
3989 | 2017-11-20 David Malcolm <dmalcolm@redhat.com> |
3990 | ||
3991 | * c-common.h (enum lookup_name_fuzzy_kind): Move to name-hint.h. | |
3992 | (lookup_name_fuzzy): Likewise. Convert return type from | |
3993 | const char * to name_hint. Add location_t param. | |
3994 | * name-hint.h: New header. | |
3995 | ||
f9c59f7e JJ |
3996 | 2017-11-19 Jakub Jelinek <jakub@redhat.com> |
3997 | ||
3998 | PR c/66618 | |
3999 | PR c/69960 | |
4000 | * c-common.h (c_fully_fold): Add LVAL argument defaulted to false. | |
4001 | ||
1e39313a JM |
4002 | 2017-11-16 Joseph Myers <joseph@codesourcery.com> |
4003 | ||
4004 | * c.opt (-std=c17, std=gnu17, -std=iso9899:2017): Refer to 2018 | |
4005 | expected publication date of C17. | |
4006 | (-std=c18, -std=gnu18, -std=iso9899:2018): New option aliases. | |
4007 | ||
3ca0dc60 JM |
4008 | 2017-11-15 Joseph Myers <joseph@codesourcery.com> |
4009 | ||
4010 | PR c/81156 | |
4011 | * c-common.c (c_common_reswords): Add __builtin_tgmath. | |
4012 | * c-common.h (enum rid): Add RID_BUILTIN_TGMATH. | |
4013 | ||
025d57f0 MS |
4014 | 2017-11-10 Martin Sebor <msebor@redhat.com> |
4015 | ||
4016 | PR c/81117 | |
4017 | * c-common.c (catenate_strings): Use memcpy instead of strncpy. | |
4018 | * c-warn.c (sizeof_pointer_memaccess_warning): Handle arrays. | |
4019 | * c.opt (-Wstringop-truncation): New option. | |
4020 | ||
1b6fa695 ML |
4021 | 2017-11-06 Martin Liska <mliska@suse.cz> |
4022 | ||
4023 | PR middle-end/82404 | |
4024 | * c-opts.c (c_common_post_options): Set -Wreturn-type for C++ | |
4025 | FE. | |
4026 | * c.opt: Set default value of warn_return_type. | |
4027 | ||
64a5912c DM |
4028 | 2017-10-31 David Malcolm <dmalcolm@redhat.com> |
4029 | ||
4030 | * c-common.c (binary_op_error): Update for renaming of | |
4031 | error_at_rich_loc. | |
4032 | (c_parse_error): Likewise. | |
4033 | * c-warn.c (warn_logical_not_parentheses): Likewise for | |
4034 | renaming of inform_at_rich_loc. | |
4035 | (warn_for_restrict): Likewise for renaming of | |
4036 | warning_at_rich_loc_n. | |
4037 | ||
c76dc9c3 JM |
4038 | 2017-10-30 Joseph Myers <joseph@codesourcery.com> |
4039 | ||
4040 | * c.opt (std=c17, std=gnu17, std=iso9899:2017): New options. | |
4041 | * c-opts.c (set_std_c17): New function. | |
4042 | (c_common_init_options): Use gnu17 as default C version. | |
4043 | (c_common_handle_option): Handle -std=c17 and -std=gnu17. | |
4044 | ||
ee5fd23a MM |
4045 | 2017-10-27 Michael Meissner <meissner@linux.vnet.ibm.com> |
4046 | ||
4047 | * c-cppbuiltin.c (mode_has_fma): Add support for PowerPC KFmode. | |
4048 | (c_cpp_builtins): If a machine has a fast fma _Float<N> and | |
4049 | _Float<N>X variant, define __FP_FAST_FMA<N> and/or | |
4050 | __FP_FAST_FMA<N>X. | |
4051 | ||
d1047465 MP |
4052 | 2017-10-23 Marek Polacek <polacek@redhat.com> |
4053 | ||
4054 | PR c/82681 | |
4055 | * c-warn.c (warnings_for_convert_and_check): Fix typos. | |
4056 | ||
9e878cf1 EB |
4057 | 2017-10-19 Eric Botcazou <ebotcazou@adacore.com> |
4058 | ||
4059 | * c-common.c (check_builtin_function_arguments): Also check arguments | |
4060 | of __builtin_alloca_with_align_and_max. | |
4061 | ||
89b6abbb DM |
4062 | 2017-10-17 David Malcolm <dmalcolm@redhat.com> |
4063 | ||
4064 | * c-format.c (format_warning_at_char): Pass UNKNOWN_LOCATION | |
4065 | rather than NULL to format_warning_va. | |
4066 | (check_format_types): Likewise when calling format_type_warning. | |
4067 | Remove code to extract source_ranges and source_range * in favor | |
4068 | of just a location_t. | |
4069 | (format_type_warning): Convert source_range * param to a | |
4070 | location_t. | |
4071 | ||
39382c09 JJ |
4072 | 2017-10-13 Jakub Jelinek <jakub@redhat.com> |
4073 | ||
4074 | * c-gimplify.c (c_gimplify_expr): Handle [LR]ROTATE_EXPR like | |
4075 | [LR]SHIFT_EXPR. | |
4076 | ||
62e1c678 DM |
4077 | 2017-10-12 David Malcolm <dmalcolm@redhat.com> |
4078 | ||
4079 | * c-common.c (enum missing_token_insertion_kind): New enum. | |
4080 | (get_missing_token_insertion_kind): New function. | |
4081 | (maybe_suggest_missing_token_insertion): New function. | |
4082 | * c-common.h (maybe_suggest_missing_token_insertion): New decl. | |
4083 | ||
b90c9338 NS |
4084 | 2017-10-11 Nathan Sidwell <nathan@acm.org> |
4085 | ||
4086 | * c-opts.c (add_prefixed_path): Change chain to incpath_kind. | |
4087 | (c_common_handle_option): Update incpath_kind names. | |
4088 | ||
3a266bcd ML |
4089 | 2017-10-11 Martin Liska <mliska@suse.cz> |
4090 | ||
4091 | PR sanitizer/82490 | |
4092 | * c-attribs.c (handle_no_sanitize_attribute): Report directly | |
4093 | Wattributes warning. | |
4094 | ||
8e6cdc90 RS |
4095 | 2017-10-10 Richard Sandiford <richard.sandiford@linaro.org> |
4096 | ||
4097 | * c-ada-spec.c (dump_generic_ada_node): Use wi::to_wide when | |
4098 | operating on trees as wide_ints. | |
4099 | * c-common.c (pointer_int_sum): Likewise. | |
4100 | * c-pretty-print.c (pp_c_integer_constant): Likewise. | |
4101 | * c-warn.c (match_case_to_enum_1): Likewise. | |
4102 | (c_do_switch_warnings): Likewise. | |
4103 | (maybe_warn_shift_overflow): Likewise. | |
4104 | ||
802b38c9 JJ |
4105 | 2017-10-10 Jakub Jelinek <jakub@redhat.com> |
4106 | ||
4107 | PR c/82437 | |
4108 | * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_wide | |
4109 | instead of wide_int::from. | |
4110 | ||
4e34b338 JJ |
4111 | 2017-10-06 Jakub Jelinek <jakub@redhat.com> |
4112 | ||
4113 | PR c/82437 | |
4114 | * c-warn.c (warn_tautological_bitwise_comparison): Instead of | |
4115 | using to_widest use wide_int with the larger of the two precisions. | |
4116 | ||
4bc4b2b4 BE |
4117 | 2017-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de> |
4118 | ||
4119 | * c-pretty-print.c (pp_c_parameter_type_list): Print ... for variadic | |
4120 | functions. | |
4121 | ||
a1488398 RS |
4122 | 2017-10-02 Richard Sandiford <richard.sandiford@linaro.org> |
4123 | ||
4124 | * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_widest | |
4125 | when combining the original unconverted comparison operands. | |
4126 | ||
01c9fb68 JJ |
4127 | 2017-09-29 Jakub Jelinek <jakub@redhat.com> |
4128 | ||
4129 | * c-attribs.c (handle_noipa_attribute): Don't add "stack_protect" | |
4130 | attribute. | |
4131 | ||
6e3e8419 EB |
4132 | 2017-09-29 Eric Botcazou <ebotcazou@adacore.com> |
4133 | ||
4134 | * c-ada-spec.c (to_ada_name): Add index parameter. | |
4135 | (pp_ada_tree_identifier): Likewise. | |
4136 | (dump_ada_macros): Adjust call to to_ada_name. | |
4137 | (struct overloaded_name_hash): New type. | |
4138 | (struct overloaded_name_hasher): Likewise. | |
4139 | (overloaded_names): New hash table. | |
4140 | (compute_overloading_index): New function. | |
4141 | (dump_ada_decl_name): Call it and pass the result to | |
4142 | pp_ada_tree_identifier. | |
4143 | (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier. | |
4144 | (dump_ada_function_declaration): Likewise. | |
4145 | (dump_generic_ada_node): Likewise. | |
4146 | (print_constructor): Likewise. | |
4147 | (print_destructor): Likewise. | |
4148 | (dump_ada_specs): Delete overloaded_names table. | |
4149 | ||
79310774 EB |
4150 | 2017-09-29 Eric Botcazou <ebotcazou@adacore.com> |
4151 | ||
4152 | * c-ada-spec.c (max_ada_macros): Move around. | |
4153 | (store_ada_macro_index): Likewise. | |
4154 | (source_file): Rename into... | |
4155 | (macro_source_file): ...this. | |
4156 | (count_ada_macro): Move around. | |
4157 | (store_ada_macro): Likewise. | |
4158 | (compare_macro): Likewise. | |
4159 | (print_ada_macros): Merge in... | |
4160 | (dump_ada_macros): ...this. | |
4161 | (source_file_base): Rename into... | |
4162 | (current_source_file): ...this. | |
4163 | (print_comment): Move around. | |
4164 | (dump_ada_nodes): Call dump_ada_declaration directly. | |
4165 | (struct with): Change type of limited field to bool. | |
4166 | (append_withs): Change type of limited_access parameter to bool. | |
4167 | (pp_ada_tree_identifie): Likewise. | |
4168 | (dump_ada_decl_nam): Likewise. | |
4169 | (dump_generic_ada_node): Likewise. Do not print the return type. | |
4170 | (to_ada_name): Change type of space_found parameter to bool. | |
4171 | (dump_ada_function_declaration): Return void and change type of | |
4172 | parameters to bool. Also print the return type for a function. | |
4173 | (print_ada_methods): Rename into... | |
4174 | (dump_ada_methods): ...this. | |
4175 | (print_ada_declaration): Rename into ... | |
4176 | (dump_ada_declaration): ...this. Do not print the return type. | |
4177 | (print_ada_struct_decl): Rename into... | |
4178 | (dump_ada_struct_decl): ...this. | |
4179 | ||
7d386d45 JJ |
4180 | 2017-09-29 Jakub Jelinek <jakub@redhat.com> |
4181 | ||
4182 | * c-attribs.c (handle_packed_attribute): Test DECL_C_BIT_FIELD | |
4183 | rather than DECL_INITIAL. | |
4184 | (common_handle_aligned_attribute): Likewise. | |
4185 | ||
ab20d992 | 4186 | 2017-09-20 Alexandre Oliva <aoliva@redhat.com> |
9ed32e27 AO |
4187 | |
4188 | * c.opt (gen-decls): Add RejectNegative. | |
4189 | ||
026a79f7 AS |
4190 | 2017-09-15 Andrew Sutton <andrew.n.sutton@gmail.com> |
4191 | Jakub Jelinek <jakub@redhat.com> | |
4192 | ||
4193 | Add support for -std=c++2a. | |
4194 | * c-common.h (cxx_dialect): Add cxx2a as a dialect. | |
4195 | * opt.c: Add options for -std=c++2a and -std=gnu++2a. | |
4196 | * c-opts.c (set_std_cxx2a): New. | |
4197 | (c_common_handle_option): Set options when -std=c++2a is enabled. | |
4198 | (c_common_post_options): Adjust comments. | |
4199 | (set_std_cxx14, set_std_cxx17): Likewise. | |
4200 | ||
4a8ca690 EB |
4201 | 2017-09-15 Eric Botcazou <ebotcazou@adacore.com> |
4202 | ||
4203 | * c-pragma.c (handle_pragma_scalar_storage_order): Expand on error | |
4204 | message for non-uniform endianness and issue a warning in C++. | |
4205 | ||
7b936140 JJ |
4206 | 2017-09-15 Jakub Jelinek <jakub@redhat.com> |
4207 | ||
4208 | * c.opt (Wc++1z-compat): Change from option to undocumented alias. | |
4209 | (Wc++17-compat): Change from undocumented alias to option. | |
4210 | (Wnoexcept-type): Enable by Wc++17-compat instead of Wc++1z-compat, | |
4211 | change C++1z to C++17 in description. | |
4212 | (std=c++1z, std=gnu++1z): Change from option to undocumented | |
4213 | deprecated alias. | |
4214 | (std=c++17, std=gnu++17): Change from undocumented alias to option. | |
4215 | Adjust description. | |
4216 | * c-common.h (enum cxx_dialect): Rename cxx1z to cxx17. | |
4217 | * c-opts.c (set_std_cxx1z): Rename to ... | |
4218 | (set_std_cxx17): ... this. | |
4219 | (c_common_handle_option): Rename OPT_std_c__1z to OPT_std_c__17 | |
4220 | and OPT_std_gnu__1z to OPT_std_gnu__17. Adjust set_std_cxx1z | |
7365279f | 4221 | caller. |
7b936140 JJ |
4222 | (c_common_post_options): Use cxx17 instead of cxx1z. Adjust |
4223 | comments. | |
4224 | ||
12263f13 L |
4225 | 2017-09-12 H.J. Lu <hongjiu.lu@intel.com> |
4226 | ||
4227 | * c-attribs.c (common_handle_aligned_attribute): Don't warn | |
4228 | function alignment if warn_if_not_aligned_p is true. | |
4229 | ||
6836632e NS |
4230 | 2017-09-12 Nathan Sidwell <nathan@acm.org> |
4231 | ||
4232 | * c-common.c (field_decl_cmp, resort_data, resort_field_decl_cmp, | |
4233 | resort_sorted_fields): Move to c/c-decl.c. | |
4234 | * c-common.h (field_decl_cmp, resort_sorted_fields): Delete. | |
4235 | (struct sorted_fields_type): Move to c/c-lang.h. | |
4236 | ||
019bf9ad JW |
4237 | 2017-09-09 Jonathan Wakely <jwakely@redhat.com> |
4238 | ||
4239 | PR c++/81852 | |
4240 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_threadsafe_static_init. | |
4241 | ||
bc7fe952 MP |
4242 | 2017-09-04 Marek Polacek <polacek@redhat.com> |
4243 | ||
4244 | PR c/81783 | |
4245 | * c-warn.c (warn_tautological_bitwise_comparison): New function. | |
4246 | (warn_tautological_cmp): Call it. | |
4247 | ||
ab20d992 | 4248 | 2017-09-01 Boris Kolpackov <boris@codesynthesis.com> |
de7c2c6a BK |
4249 | |
4250 | * c-opts.c (c_common_finish): Write dependency information even if | |
4251 | there are errors. | |
4252 | ||
d2e05fcb JJ |
4253 | 2017-09-01 Jakub Jelinek <jakub@redhat.com> |
4254 | ||
4255 | PR c/81887 | |
4256 | * c-pragma.c (omp_pragmas): Move "ordered" entry from here to ... | |
4257 | (omp_pragmas_simd): ... here. | |
4258 | * c-omp.c (c_finish_omp_ordered): If clauses isn't simd clause alone, | |
4259 | create new clauses list containing just simd clause. | |
4260 | ||
18e2a8b8 RS |
4261 | 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org> |
4262 | Alan Hayward <alan.hayward@arm.com> | |
4263 | David Sherwood <david.sherwood@arm.com> | |
4264 | ||
4265 | * c-attribs.c (vector_mode_valid_p) Fold GET_MODE_INNER call | |
4266 | into scalar_mode_supported_p call. | |
4267 | (handle_mode_attribute): Update call to scalar_mode_supported_p. | |
4268 | ||
16d22000 RS |
4269 | 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org> |
4270 | Alan Hayward <alan.hayward@arm.com> | |
4271 | David Sherwood <david.sherwood@arm.com> | |
4272 | ||
4273 | * c-common.c (c_common_fixed_point_type_for_size): Use opt_scalar_mode | |
4274 | for the mode iterator. | |
4275 | ||
b397965c RS |
4276 | 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org> |
4277 | Alan Hayward <alan.hayward@arm.com> | |
4278 | David Sherwood <david.sherwood@arm.com> | |
4279 | ||
4280 | * c-lex.c (interpret_fixed): Use SCALAR_TYPE_MODE. | |
4281 | * c-common.c (c_build_vec_perm_expr): Likewise. | |
4282 | ||
357b7604 RS |
4283 | 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org> |
4284 | Alan Hayward <alan.hayward@arm.com> | |
4285 | David Sherwood <david.sherwood@arm.com> | |
4286 | ||
4287 | * c-common.c (c_common_type_for_mode): Use as_a <scalar_int_mode>. | |
4288 | ||
e05c94ba RS |
4289 | 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org> |
4290 | Alan Hayward <alan.hayward@arm.com> | |
4291 | David Sherwood <david.sherwood@arm.com> | |
4292 | ||
4293 | * c-attribs.c (handle_mode_attribute): Check for a scalar_int_mode | |
4294 | before calling targetm.addr_space.valid_pointer_mode. | |
4295 | ||
5c20c4af RS |
4296 | 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org> |
4297 | Alan Hayward <alan.hayward@arm.com> | |
4298 | David Sherwood <david.sherwood@arm.com> | |
4299 | ||
4300 | * c-cppbuiltin.c (c_cpp_builtins): Use opt_scalar_float_mode. | |
4301 | ||
c94843d2 | 4302 | 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org> |
92a285c1 ML |
4303 | Alan Hayward <alan.hayward@arm.com> |
4304 | David Sherwood <david.sherwood@arm.com> | |
c94843d2 RS |
4305 | |
4306 | * c-common.c (c_common_fixed_point_type_for_size): Use new mode | |
4307 | iterators. | |
4308 | * c-cppbuiltin.c (c_cpp_builtins): Likewise. | |
4309 | ||
4e10a5a7 RS |
4310 | 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org> |
4311 | Alan Hayward <alan.hayward@arm.com> | |
4312 | David Sherwood <david.sherwood@arm.com> | |
4313 | ||
4314 | * c-cppbuiltin.c (mode_has_fma): Prefix mode names with E_ in | |
4315 | case statements. | |
4316 | ||
130fcab0 ML |
4317 | 2017-08-29 Martin Liska <mliska@suse.cz> |
4318 | ||
4319 | PR other/39851 | |
4320 | * c-common.c (parse_optimize_options): Add argument to function | |
4321 | call. | |
4322 | * c-pragma.c (handle_pragma_diagnostic): Likewise. | |
4323 | ||
14e18d71 DM |
4324 | 2017-08-24 David Malcolm <dmalcolm@redhat.com> |
4325 | ||
4326 | * c-lex.c (interpret_float): Use token location | |
4327 | when building an EXCESS_PRECISION_EXPR. | |
4328 | ||
2f687306 DM |
4329 | 2017-08-21 David Malcolm <dmalcolm@redhat.com> |
4330 | ||
4331 | * c-common.c (check_function_arguments): Add "arglogs" param; pass | |
4332 | it to check_function_format. | |
4333 | * c-common.h (check_function_arguments): Add vec<location_t> * | |
4334 | param. | |
4335 | (check_function_format): Likewise. | |
4336 | * c-format.c (struct format_check_context): Add field "arglocs". | |
4337 | (check_function_format): Add param "arglocs"; pass it to | |
4338 | check_format_info. | |
ab20d992 | 4339 | (check_format_info): Add param "arglocs"; use it to initialize |
2f687306 DM |
4340 | new field of format_ctx. |
4341 | (check_format_arg): Pass format_ctx->arglocs to new param of | |
4342 | check_format_info_main. | |
4343 | (class argument_parser): New field "arglocs". | |
4344 | (argument_parser::argument_parser): Add "arglocs_" param and use | |
4345 | it to initialize new field. | |
4346 | (argument_parser::check_argument_type): Pass new arglocs field to | |
4347 | check_format_types. | |
4348 | (check_format_info_main): Add param "arglocs", and use it when | |
4349 | constructing arg_parser. | |
4350 | (check_format_types): Add param "arglocs"; use it if non-NULL when | |
4351 | !EXPR_HAS_LOCATION (cur_param) to get at location information. | |
4352 | ||
00aa1fa2 L |
4353 | 2017-08-18 H.J. Lu <hongjiu.lu@intel.com> |
4354 | ||
4355 | PR c/53037 | |
4356 | * c-attribs.c (handle_warn_if_not_aligned_attribute): New. | |
4357 | (c_common_attribute_table): Add warn_if_not_aligned. | |
4358 | (handle_aligned_attribute): Renamed to ... | |
4359 | (common_handle_aligned_attribute): Remove argument, name, and add | |
4360 | argument, warn_if_not_aligned. Handle warn_if_not_aligned. | |
4361 | (handle_aligned_attribute): New. | |
4362 | * c.opt: Add -Wif-not-aligned and -Wpacked-not-aligned. | |
4363 | ||
27be025d MS |
4364 | 2017-08-14 Martin Sebor <msebor@redhat.com> |
4365 | ||
4366 | PR c/81117 | |
4367 | * c-attribs.c (c_common_attribute_table): Add nonstring entry. | |
4368 | (handle_nonstring_attribute): New function. | |
4369 | ||
da67acb9 MS |
4370 | 2017-08-14 Martin Sebor <msebor@redhat.com> |
4371 | ||
4372 | PR c/81117 | |
4373 | * c-format.h (T89_G): New macro. | |
4374 | * c-format.c (local_gcall_ptr_node): New variable. | |
4375 | (init_dynamic_diag_info): Initialize it. | |
4376 | ||
a8b522b4 ML |
4377 | 2017-08-11 Martin Liska <mliska@suse.cz> |
4378 | ||
4379 | * c-opts.c (c_common_post_options): Replace ASM_OUTPUT_DEF with | |
4380 | TARGET_SUPPORTS_ALIASES. | |
4381 | ||
32129a17 DM |
4382 | 2017-08-10 David Malcolm <dmalcolm@redhat.com> |
4383 | ||
4384 | * c-common.c (c_parse_error): Add rich_location * param, using it | |
4385 | rather implicitly using input_location. | |
4386 | * c-common.h (c_parse_error): Add rich_location * param. | |
4387 | ||
30af3a2b MP |
4388 | 2017-08-09 Marek Polacek <polacek@redhat.com> |
4389 | ||
4390 | * c-common.c (pointer_int_sum): Use true/false instead of 1/0. | |
4391 | (c_common_truthvalue_conversion): Likewise. | |
4392 | * c-omp.c (c_finish_omp_atomic): Likewise. | |
4393 | * c-common.h (build_binary_op): Update declaration. | |
4394 | ||
314e6352 ML |
4395 | 2017-08-08 Martin Liska <mliska@suse.cz> |
4396 | ||
4397 | * c-ada-spec.c: Include header files. | |
4398 | * c-ubsan.c: Likewise. | |
4399 | * c-warn.c: Likewise. | |
4400 | ||
56b5041c JJ |
4401 | 2017-08-07 Jakub Jelinek <jakub@redhat.com> |
4402 | ||
4403 | PR c/69389 | |
4404 | * c-omp.c (c_finish_omp_atomic): Handle atomics on bitfields. | |
4405 | ||
db440138 EB |
4406 | 2017-08-07 Eric Botcazou <ebotcazou@adacore.com> |
4407 | ||
4408 | * c-ada-spec.c (has_nontrivial_methods): Test for FUNCTION_DECL. | |
4409 | (print_ada_methods): Likewise. | |
4410 | (print_ada_declaration): Likewise. | |
4411 | ||
577eec56 ML |
4412 | 2017-08-07 Martin Liska <mliska@suse.cz> |
4413 | ||
4414 | * array-notation-common.c: Add new includes. | |
4415 | * c-format.c( handle_format_attribute): Canonicalize a format | |
4416 | function name. | |
4417 | * c-lex.c (c_common_has_attribute): Canonicalize name of an | |
4418 | attribute. | |
4419 | * c-pretty-print.c: Add new include. | |
4420 | ||
b854df3c EB |
4421 | 2017-08-05 Eric Botcazou <ebotcazou@adacore.com> |
4422 | ||
4423 | * c-ada-spec.c (has_static_fields): Look only into variables. | |
4424 | (print_constructor): Add TYPE parameter and use it for the name. | |
4425 | (print_destructor): Likewise. | |
4426 | (print_ada_declaration): Adjust to new constructor/destructor names. | |
4427 | Adjust calls to print_constructor and print_destructor. | |
4428 | (print_ada_struct_decl): Do not test TREE_STATIC on FIELD_DECL. | |
4429 | Look only into variables in the final loop. | |
4430 | ||
9f2cb25e EB |
4431 | 2017-08-01 Eric Botcazou <ebotcazou@adacore.com> |
4432 | ||
4433 | * c-ada-spec.c (has_static_fields): Look only into fields. | |
4434 | (dump_generic_ada_node): Small tweak. | |
4435 | (dump_nested_types): Look only into fields. | |
4436 | (print_ada_declaration): Look only into methods. Small tweak. | |
4437 | (print_ada_struct_decl): Look only into fields. Use DECL_VIRTUAL_P. | |
4438 | ||
f4bcd9eb EB |
4439 | 2017-08-01 Eric Botcazou <ebotcazou@adacore.com> |
4440 | ||
4441 | * c-ada-spec.c (print_generic_ada_decl): Pass correctly-typed constant. | |
4442 | (dump_ada_function_declaration): Likewise. | |
4443 | (dump_generic_ada_node): Likewise. | |
4444 | (print_ada_declaration): Add support for const-qualified variables. | |
4445 | ||
f34ebeb2 ML |
4446 | 2017-07-31 Martin Liska <mliska@suse.cz> |
4447 | ||
4448 | PR sanitize/81530 | |
4449 | * c-ubsan.c (ubsan_maybe_instrument_array_ref): | |
4450 | Guard condition with flag_sanitize_p also with current_function_decl | |
4451 | non-null equality. | |
4452 | (ubsan_maybe_instrument_reference_or_call): Likewise. | |
4453 | ||
218e5d04 UB |
4454 | 2017-07-30 Uros Bizjak <ubizjak@gmail.com> |
4455 | ||
4456 | * c-format.c (asm_fprintf_char_table): Add 'z' to format_chars. | |
4457 | ||
942047f2 EB |
4458 | 2017-07-29 Eric Botcazou <ebotcazou@adacore.com> |
4459 | ||
4460 | * c-ada-spec.c (dump_generic_ada_node): Take into account signedness | |
4461 | for enumeral types. | |
4462 | (print_ada_declaration): Add missing guard for record types. | |
4463 | ||
a40ff0ae JJ |
4464 | 2017-07-27 Jakub Jelinek <jakub@redhat.com> |
4465 | ||
4466 | PR c/45784 | |
4467 | * c-omp.c (c_finish_omp_for): If the condition is wrapped in | |
4468 | rhs of COMPOUND_EXPR(s), skip them and readd their lhs into | |
4469 | new COMPOUND_EXPRs around the rhs of the comparison. | |
4470 | ||
06bd22f6 MP |
4471 | 2017-07-27 Marek Polacek <polacek@redhat.com> |
4472 | ||
4473 | PR c/81417 | |
4474 | * c-warn.c (warn_for_sign_compare): Tweak the warning message. Print | |
4475 | the types. | |
4476 | ||
036ea399 JJ |
4477 | 2017-07-27 Jakub Jelinek <jakub@redhat.com> |
4478 | ||
4479 | * c-attribs.c (c_common_attribute_table): Add noipa attribute. | |
4480 | (handle_noipa_attribute): New function. | |
4481 | ||
417ca011 TD |
4482 | 2017-07-07 Torsten Duwe <duwe@suse.de> |
4483 | ||
4484 | * c-attribs.c (c_common_attribute_table): Add entry for | |
4485 | "patchable_function_entry". | |
4486 | ||
5aaa8fb4 NS |
4487 | 2017-07-20 Nathan Sidwell <nathan@acm.org> |
4488 | ||
4489 | Remove TYPE_METHODS. | |
4490 | * c-ada-spec.c (is_tagged_type, has_nontrivial_methods, | |
4491 | dump_ada_template, print_ada_methods, | |
4492 | print_ada_declaration): Member fns are on TYPE_FIELDS. | |
4493 | ||
ff22eb12 NS |
4494 | 2017-07-18 Nathan Sidwell <nathan@acm.org> |
4495 | ||
4496 | * c-warn.c (warn_for_memset): Use TYPE_{MIN,MAX}_VALUE. | |
4497 | ||
eea77d1f DM |
4498 | 2017-07-14 David Malcolm <dmalcolm@redhat.com> |
4499 | ||
4500 | * c-common.c (try_to_locate_new_include_insertion_point): New | |
4501 | function. | |
4502 | (per_file_includes_t): New typedef. | |
4503 | (added_includes_t): New typedef. | |
4504 | (added_includes): New variable. | |
4505 | (maybe_add_include_fixit): New function. | |
4506 | * c-common.h (maybe_add_include_fixit): New decl. | |
4507 | ||
281ac396 MS |
4508 | 2017-07-10 Martin Sebor <msebor@redhat.com> |
4509 | ||
4510 | PR other/81345 | |
4511 | * c.opt (-Wstringop-overflow): Set defaults in LangEnabledBy. | |
4512 | ||
b6f43128 DM |
4513 | 2017-07-06 David Malcolm <dmalcolm@redhat.com> |
4514 | ||
4515 | * c-common.c (selftest::c_family_tests): New. | |
4516 | * c-common.h (selftest::run_c_tests): Move decl to c/c-lang.h. | |
4517 | (selftest::c_family_tests): New decl. | |
4518 | ||
efbf55b0 MP |
4519 | 2017-07-04 Marek Polacek <polacek@redhat.com> |
4520 | ||
4521 | PR c/81231 | |
4522 | * c-common.c (sync_resolve_size): Give error for pointers to incomplete | |
4523 | types. | |
4524 | ||
6c86bd88 MP |
4525 | 2017-07-04 Marek Polacek <polacek@redhat.com> |
4526 | ||
4527 | * c-warn.c (warn_if_unused_value): Remove WITH_CLEANUP_EXPR handling. | |
4528 | ||
17a7218b ML |
4529 | 2017-06-28 Martin Liska <mliska@suse.cz> |
4530 | ||
4531 | PR ipa/81128 | |
4532 | * c-attribs.c (handle_alias_ifunc_attribute): Append ifunc alias | |
4533 | to a function declaration. | |
4534 | ||
63010089 ML |
4535 | 2017-06-28 Martin Liska <mliska@suse.cz> |
4536 | ||
4537 | PR driver/79659 | |
4538 | * c.opt: Add IntegerRange to various options. | |
4539 | ||
3e2becc4 MP |
4540 | 2017-06-26 Marek Polacek <polacek@redhat.com> |
4541 | ||
4542 | PR c/80116 | |
4543 | * c-common.h (warn_for_multistatement_macros): Declare. | |
4544 | * c-warn.c: Include "c-family/c-indentation.h". | |
4545 | (warn_for_multistatement_macros): New function. | |
4546 | * c.opt (Wmultistatement-macros): New option. | |
4547 | * c-indentation.c (guard_tinfo_to_string): No longer static. | |
4548 | Change the parameter type to "enum rid". Handle RID_SWITCH. | |
4549 | * c-indentation.h (guard_tinfo_to_string): Declare. | |
4550 | ||
2db9b7cd MG |
4551 | 2017-06-23 Marc Glisse <marc.glisse@inria.fr> |
4552 | ||
4553 | * c-common.c (c_common_nodes_and_builtins): Use builtin_structptr_types. | |
4554 | ||
c3684b7b MS |
4555 | 2017-06-15 Martin Sebor <msebor@redhat.com> |
4556 | ||
4557 | PR c++/80560 | |
4558 | * c.opt (-Wclass-memaccess): New option. | |
4559 | ||
e72c4afd BK |
4560 | 2017-06-14 Boris Kolpackov <boris@codesynthesis.com> |
4561 | ||
4562 | * c-opts.c (c_common_finish): Handle '-' special value to -MF. | |
4563 | ||
8a516588 MP |
4564 | 2017-06-13 Marek Polacek <polacek@redhat.com> |
4565 | ||
4566 | PR objc/80949 | |
4567 | * c-warn.c (do_warn_duplicated_branches): Return if any of the | |
4568 | branches is null. | |
4569 | ||
45b2222a ML |
4570 | 2017-06-13 Martin Liska <mliska@suse.cz> |
4571 | ||
4572 | PR sanitize/78204 | |
4573 | * c-attribs.c (add_no_sanitize_value): New function. | |
4574 | (handle_no_sanitize_attribute): Likewise. | |
4575 | (handle_no_sanitize_address_attribute): Use the function. | |
4576 | (handle_no_sanitize_thread_attribute): New function. | |
4577 | (handle_no_address_safety_analysis_attribute): Use | |
4578 | add_no_sanitize_value. | |
4579 | (handle_no_sanitize_undefined_attribute): Likewise. | |
4580 | * c-common.h: Declare new functions. | |
4581 | * c-ubsan.c (ubsan_instrument_division): Use sanitize_flags_p. | |
4582 | (ubsan_instrument_shift): Likewise. | |
4583 | (ubsan_instrument_bounds): Likewise. | |
4584 | (ubsan_maybe_instrument_array_ref): Likewise. | |
4585 | (ubsan_maybe_instrument_reference_or_call): Likewise. | |
4586 | ||
a01f151f JM |
4587 | 2017-06-11 Jason Merrill <jason@redhat.com> |
4588 | ||
4589 | * c-ada-spec.c, c-pragma.c: Use id_equal. | |
4590 | ||
3de4ac6d MP |
4591 | 2017-06-04 Marek Polacek <polacek@redhat.com> |
4592 | ||
4593 | PR c/80919 | |
4594 | * c-format.c (matching_type_p): Return false if any of the types | |
4595 | requires structural equality. | |
4596 | ||
2474f48f MS |
4597 | 2017-06-02 Martin Sebor <msebor@redhat.com> |
4598 | ||
4599 | PR c/80892 | |
4600 | * c-warn.c (conversion_warning): Use -Wconversion for integer | |
4601 | conversion and -Wfloat-conversion for floating one. | |
4602 | ||
40ffd95f BE |
4603 | 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de> |
4604 | ||
4605 | * c.opt (Wsizeof-pointer-div): New warning option. | |
4606 | ||
3fa4634c VR |
4607 | 2017-06-01 Volker Reichelt <v.reichelt@netcologne.de> |
4608 | ||
4609 | * c.opt (Wcatch-value): New shortcut for Wcatch-value=1. | |
4610 | (Wcatch-value=1): Enable by -Wall. | |
4611 | ||
f012c8ef DM |
4612 | 2017-05-30 David Malcolm <dmalcolm@redhat.com> |
4613 | ||
4614 | * c-format.c (gcc_cxxdiag_char_table): Add 'H' and 'I' to | |
4615 | format_chars. | |
4616 | * c.opt (fdiagnostics-show-template-tree): New option. | |
4617 | (felide-type): New option. | |
4618 | ||
63dbcd13 VR |
4619 | 2017-05-25 Volker Reichelt <v.reichelt@netcologne.de> |
4620 | ||
4621 | * c.opt (Wcatch-value=): New C++ warning flag. | |
4622 | ||
be136b5c NS |
4623 | 2017-05-24 Nathan Sidwell <nathan@acm.org> |
4624 | ||
4625 | * c=common.c (field_decl_cmp, resort_field_decl_cmp): Adjust T | |
4626 | const casts to avoid warning. | |
4627 | ||
3cd211af MS |
4628 | 2017-05-24 Martin Sebor <msebor@redhat.com> |
4629 | ||
4630 | PR c/80731 | |
4631 | * c-common.h (unsafe_conversion_p): Add a function argument. | |
4632 | * c-common.c (unsafe_conversion_p): Same. | |
4633 | Add type names and values to diagnostics. | |
4634 | (scalar_to_vector): Adjust. | |
4635 | * c-warn.c (constant_expression_error): Add a function argument. | |
4636 | Add type names and values to diagnostics. | |
4637 | (conversion_warning): Add a function argument. | |
4638 | Add type names and values to diagnostics. | |
4639 | (warnings_for_convert_and_check): Same. | |
4640 | ||
1ff7be5a JM |
4641 | 2017-05-19 Jason Merrill <jason@redhat.com> |
4642 | ||
4643 | * c-warn.c (match_case_to_enum_1): Don't warn about enums with no | |
4644 | enumerators. | |
4645 | ||
ff502317 BE |
4646 | 2017-05-19 Bernd Edlinger <bernd.edlinger@hotmail.de> |
4647 | ||
4648 | * c-format.c (locus): Move out of function scope, | |
4649 | add GTY attribute. | |
4650 | ||
2a8a8d7b NS |
4651 | 2017-05-19 Nathan Sidwell <nathan@acm.org> |
4652 | ||
4653 | * c-opts.c (class_dump_file, class_dump_flags): Delete. | |
4654 | (c_common_parse_file): Remove class dump handling. | |
4655 | (get_dump_info): Likewise. | |
4656 | ||
39aac208 RB |
4657 | 2017-05-19 Richard Biener <rguenther@suse.de> |
4658 | ||
4659 | PR c++/80593 | |
4660 | * c-warn.c (strict_aliasing_warning): Do not warn for accesses | |
4661 | to alias-set zero memory. | |
4662 | ||
6ecd2339 BE |
4663 | 2017-05-18 Bernd Edlinger <bernd.edlinger@hotmail.de> |
4664 | ||
4665 | * c-format.c (local_tree_type_node): Add GTY attribute. | |
4666 | ||
6574d78e MP |
4667 | 2017-05-18 Marek Polacek <polacek@redhat.com> |
4668 | ||
4669 | * c-common.c (c_common_type_for_size): Use NULL_TREE instead of 0. | |
4670 | (c_common_fixed_point_type_for_size): Likewise. | |
4671 | (c_common_type_for_mode): Likewise. | |
4672 | (shorten_compare): Likewise. | |
4673 | (c_promoting_integer_type_p): Use false/true instead of 0/1. | |
4674 | * c-pragma.c (maybe_apply_renaming_pragma): Use NULL_TREE instead of 0. | |
4675 | ||
e3455240 MP |
4676 | 2017-05-18 Marek Polacek <polacek@redhat.com> |
4677 | ||
4678 | * c-common.c (self_promoting_args_p): Change the return type to bool. | |
4679 | Use false/true instead of 0/1. | |
4680 | * c-common.h (self_promoting_args_p): Update. | |
4681 | ||
3fa8871b MP |
4682 | 2017-05-17 Marek Polacek <polacek@redhat.com> |
4683 | ||
4684 | * c-common.c: Use NULL_TREE instead of 0 where appropriate. | |
4685 | * c-warn.c: Likewise. | |
4686 | ||
b42cc3ca VV |
4687 | 2017-05-17 Ville Voutilainen <ville.voutilainen@gmail.com> |
4688 | ||
4689 | Implement new C++ intrinsics __is_assignable and __is_constructible. | |
4690 | * c-common.c (__is_assignable, __is_constructible): New. | |
4691 | * c-common.h (RID_IS_ASSIGNABLE, RID_IS_CONSTRUCTIBLE): Likewise. | |
4692 | ||
1a817418 ML |
4693 | 2017-05-17 Martin Liska <mliska@suse.cz> |
4694 | ||
4695 | * c-common.h: Introduce dump_flags_t type and | |
4696 | use it instead of int type. | |
4697 | * c-gimplify.c (c_genericize): Likewise. | |
4698 | * c-opts.c: Likewise. | |
4699 | ||
b2fa0a8b MP |
4700 | 2017-05-17 Marek Polacek <polacek@redhat.com> |
4701 | ||
4702 | * c-common.c (c_save_expr): Remove. | |
4703 | (c_common_truthvalue_conversion): Remove a call to c_save_expr. | |
4704 | * c-common.h (c_save_expr): Remove declaration. | |
4705 | ||
31c2d57d VR |
4706 | 2017-05-09 Volker Reichelt <v.reichelt@netcologne.de> |
4707 | ||
4708 | PR c/35441 | |
4709 | * c-pretty-print.c (c_pretty_printer::expression): Handle MAX_EXPR, | |
4710 | MIN_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, LROTATE_EXPR, RROTATE_EXPR. | |
4711 | (c_pretty_printer::postfix_expression): Handle MAX_EXPR, MIN_EXPR. | |
4712 | (c_pretty_printer::multiplicative_expression): Handle EXACT_DIV_EXPR, | |
4713 | RDIV_EXPR. | |
4714 | (pp_c_shift_expression): Handle LROTATE_EXPR, RROTATE_EXPR. | |
4715 | ||
684f84de MP |
4716 | 2017-05-09 Marek Polacek <polacek@redhat.com> |
4717 | ||
4718 | PR c/80525 | |
4719 | * c-warn.c (unwrap_c_maybe_const): New. | |
4720 | (warn_logical_operator): Call it. | |
4721 | ||
641da50a NS |
4722 | 2017-05-09 Nathan Sidwell <nathan@acm.org> |
4723 | ||
4724 | * c-common.c (c_register_builtin_type): Use pushdecl lang_hook. | |
4725 | * c-common.h (pushdecl_top_level, pushdecl): Don't declare here. | |
4726 | ||
631238ac MS |
4727 | 2017-05-08 Martin Sebor <msebor@redhat.com> |
4728 | ||
4729 | PR translation/80280 | |
4730 | * c-format.h (struct format_flag_spec): Add new member. | |
4731 | (T89_T): New macro. | |
4732 | * c-format.c (local_tree_type_node): New global. | |
4733 | (printf_flag_specs, asm_fprintf_flag_spec): Initialize new data. | |
4734 | (gcc_diag_flag_specs, scanf_flag_specs, strftime_flag_specs): Ditto. | |
4735 | (strfmon_flag_specs): Likewise. | |
4736 | (gcc_diag_char_table, gcc_cdiag_char_table): Split up specifiers | |
4737 | with distinct quoting properties. | |
4738 | (gcc_tdiag_char_table, gcc_cxxdiag_char_table): Same. | |
4739 | (flag_chars_t::validate): Add argument and handle bad quoting. | |
4740 | (check_format_info_main): Handle quoting problems. | |
4741 | (init_dynamic_diag_info): Simplify. | |
4742 | ||
49f0c04c JM |
4743 | 2017-05-08 Jason Merrill <jason@redhat.com> |
4744 | ||
4745 | * c-opts.c (c_common_post_options): Update defaults for | |
4746 | flag_abi_version and flag_abi_compat_version. | |
4747 | ||
56d35585 DM |
4748 | 2017-05-05 David Malcolm <dmalcolm@redhat.com> |
4749 | ||
4750 | * c-common.c (c_cpp_error): Replace report_diagnostic | |
4751 | with diagnostic_report_diagnostic. | |
4752 | ||
0f2c4a8f MS |
4753 | 2017-05-04 Martin Sebor <msebor@redhat.com> |
4754 | ||
4755 | PR translation/80280 | |
4756 | * c-attribs.c (handle_alias_ifunc_attribute): Quote a %D directive. | |
4757 | (handle_weakref_attribute): Same. | |
4758 | ||
6fe63fb4 NS |
4759 | 2017-05-03 Nathan Sidwell <nathan@acm.org> |
4760 | ||
4761 | Canonicalize canonical type hashing | |
4762 | * c-common.c (complete_array_type): Use type_hash_canon. | |
4763 | ||
815d9cc6 XR |
4764 | 2017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn> |
4765 | ||
92a285c1 | 4766 | PR c++/80038 |
815d9cc6 XR |
4767 | * c-common.h (cilk_gimplify_call_params_in_spawned_fn): Remove |
4768 | prototype. | |
4769 | (cilk_install_body_pedigree_operations): Likewise. | |
4770 | * cilk.c (cilk_set_spawn_marker): Mark functions that should be | |
4771 | detatched. | |
4772 | (cilk_gimplify_call_params_in_spawned_fn): Remove. | |
4773 | (cilk_install_body_pedigree_operations): Likewise. | |
4774 | (gimplify_cilk_spawn): Add EXPR_STMT and CLEANUP_POINT_EXPR | |
4775 | unwrapping. | |
4776 | ||
f8a36447 JJ |
4777 | 2017-04-27 Jakub Jelinek <jakub@redhat.com> |
4778 | ||
4779 | PR c++/80534 | |
4780 | * c-common.c (complete_array_type): Only hash TYPE_TYPELESS_STORAGE | |
4781 | flag on non-aggregate element types. | |
4782 | ||
7c145456 BE |
4783 | 2017-04-25 Bernd Edlinger <bernd.edlinger@hotmail.de> |
4784 | ||
4785 | * c-common.c (c_type_hasher, type_hash_table): Remove. | |
4786 | (c_common_get_alias_set): Remove unreachable code. | |
4787 | * c-opts.c (c_common_post_options): Make sure cc1 takes only one file. | |
4788 | ||
c3cbcd45 VR |
4789 | 2017-04-20 Volker Reichelt <v.reichelt@netcologne.de> |
4790 | ||
4791 | * c.opt (Wextra-semi): New C++ warning flag. | |
4792 | ||
8a59d466 JJ |
4793 | 2017-04-20 Jakub Jelinek <jakub@redhat.com> |
4794 | ||
4795 | PR middle-end/80423 | |
4796 | * c-common.c (complete_array_type): Preserve TYPE_TYPELESS_STORAGE. | |
4797 | ||
8487c9a5 JJ |
4798 | 2017-04-18 Jakub Jelinek <jakub@redhat.com> |
4799 | ||
4800 | PR middle-end/79788 | |
4801 | PR middle-end/80375 | |
4802 | * c-common.c (c_common_type_for_mode): Don't handle | |
4803 | widest_*_literal_type_node here. | |
4804 | c_common_signed_or_unsigned_type): Likewise. | |
4805 | (c_common_nodes_and_builtins): Set widest_*_literal_type_node | |
4806 | to *intTI_type_node or *intDI_type_node depending on whether | |
4807 | TImode is supported by the target or not. | |
4808 | ||
3ee0fb02 ML |
4809 | 2017-04-10 Martin Liska <mliska@suse.cz> |
4810 | ||
4811 | PR sanitizer/80350 | |
4812 | * c-ubsan.c (ubsan_instrument_shift): Evaluate RHS before | |
4813 | doing an UBSAN check. | |
4814 | ||
5764ee3c JW |
4815 | 2017-04-03 Jonathan Wakely <jwakely@redhat.com> |
4816 | ||
4817 | * c-warn.c (do_warn_double_promotion): Fix typo in comment. | |
4818 | ||
6f3af356 JJ |
4819 | 2017-03-31 Jakub Jelinek <jakub@redhat.com> |
4820 | ||
4821 | PR c++/79572 | |
4822 | * c-ubsan.h (ubsan_maybe_instrument_reference): Change argument to | |
4823 | tree *. | |
4824 | * c-ubsan.c (ubsan_maybe_instrument_reference): Likewise. Handle | |
4825 | not just NOP_EXPR to REFERENCE_TYPE, but also INTEGER_CST with | |
4826 | REFERENCE_TYPE. | |
4827 | ||
f6a7a9d5 DM |
4828 | 2017-03-31 David Malcolm <dmalcolm@redhat.com> |
4829 | ||
4830 | PR documentation/78732 | |
4831 | * c.opt (Wendif-labels): Fix description to refer to | |
4832 | #else rather than #elif. | |
4833 | ||
af88f557 JJ |
4834 | 2017-03-31 Jakub Jelinek <jakub@redhat.com> |
4835 | ||
4836 | PR libstdc++/80251 | |
4837 | * c-common.h (enum rid): Add RID_IS_AGGREGATE. | |
4838 | * c-common.c (c_common_reswords): Add __is_aggregate trait. | |
4839 | ||
a9e4a1a5 JJ |
4840 | 2017-03-27 Jakub Jelinek <jakub@redhat.com> |
4841 | ||
4842 | PR middle-end/80162 | |
4843 | * c-common.c (c_common_mark_addressable_vec): Don't set | |
4844 | TREE_ADDRESSABLE on DECL_HARD_REGISTER. | |
4845 | ||
3f01b620 MS |
4846 | 2017-03-21 Martin Sebor <msebor@redhat.com> |
4847 | ||
4848 | PR c++/79548 | |
4849 | * c-common.c (set_underlying_type): Mark type used only when | |
4850 | original del is declared unused. | |
4851 | ||
2f6f187a DM |
4852 | 2017-03-10 David Malcolm <dmalcolm@redhat.com> |
4853 | ||
4854 | PR translation/79848 | |
4855 | * c-format.c (check_format_string): Simplify uses of "%<%s%>" to | |
4856 | "%qs". | |
4857 | ||
a02fa805 DM |
4858 | 2017-03-10 David Malcolm <dmalcolm@redhat.com> |
4859 | ||
4860 | PR c/79921 | |
4861 | * c-indentation.c (warn_for_misleading_indentation): Remove parens | |
4862 | from inform's message, so that xgettext can locate it. | |
4863 | ||
822a132c MP |
4864 | 2017-03-09 Marek Polacek <polacek@redhat.com> |
4865 | ||
4866 | PR c++/79962 | |
4867 | PR c++/79984 | |
4868 | * c-attribs.c (handle_nonnull_attribute): Save the result of default | |
4869 | conversion to the attribute list. | |
4870 | ||
bba81f1c ML |
4871 | 2017-03-09 Martin Liska <mliska@suse.cz> |
4872 | ||
4873 | * c-ada-spec.c (macro_length): Increment value instead of a pointer. | |
4874 | ||
108154ff JM |
4875 | 2017-03-03 Jason Merrill <jason@redhat.com> |
4876 | ||
4877 | * c.opt (Wnoexcept-type): New. | |
4878 | ||
eb0e7c34 RB |
4879 | 2017-03-02 Richard Biener <rguenther@suse.de> |
4880 | ||
4881 | PR c/79756 | |
4882 | * c-common.c (c_common_mark_addressable_vec): Look through | |
4883 | C_MAYBE_CONST_EXPR. | |
4884 | ||
9453ba0a ML |
4885 | 2017-02-28 Martin Liska <mliska@suse.cz> |
4886 | ||
4887 | * c.opt: Replace space with tabular for options of <number> | |
4888 | type. | |
4889 | ||
6a825afe ML |
4890 | 2017-02-28 Martin Liska <mliska@suse.cz> |
4891 | ||
4892 | * c.opt: Fix --help=option -Q for options which are of | |
4893 | an enum type. | |
4894 | ||
4227c9ad JJ |
4895 | 2017-02-24 Jakub Jelinek <jakub@redhat.com> |
4896 | ||
4897 | PR c++/79588 | |
4898 | * c-common.c (check_function_restrict): New function. | |
4899 | (check_function_arguments): Add FNDECL argument. Call | |
4900 | check_function_restrict if -Wrestrict. | |
4901 | * c-warn.c (warn_for_restrict): Remove ARGS argument, add ARGARRAY | |
4902 | and NARGS. Use auto_vec for ARG_POSITIONS, simplify. | |
4903 | * c-common.h (check_function_arguments): Add FNDECL argument. | |
4904 | (warn_for_restrict): Remove ARGS argument, add ARGARRAY and NARGS. | |
4905 | ||
59909673 EB |
4906 | 2017-02-24 Eric Botcazou <ebotcazou@adacore.com> |
4907 | ||
4908 | * c-ada-spec.c (dump_ada_function_declaration): Add comment about the | |
4909 | treatment of parameters with pointer-to-tagged type and tidy up. | |
4910 | (print_ada_methods): Remove the special treatment of C++ static member | |
4911 | functions. | |
4912 | ||
54dcd526 ML |
4913 | 2017-02-22 Martin Liska <mliska@suse.cz> |
4914 | ||
4915 | * c.opt: Replace inequality signs with square brackets | |
4916 | for -Wnornalized. | |
4917 | ||
00bc9de3 JJ |
4918 | 2017-02-21 Jakub Jelinek <jakub@redhat.com> |
4919 | ||
4920 | PR c++/79641 | |
4921 | * c-attribs.c (handle_mode_attribute): Use build_qualified_type to | |
4922 | preserve quals. | |
4923 | ||
97fcf744 JM |
4924 | 2017-02-17 Joseph Myers <joseph@codesourcery.com> |
4925 | ||
4926 | * c-cppbuiltin.c (builtin_define_float_constants): Define | |
4927 | __DECIMAL_DIG__ to the value for long double. | |
4928 | ||
c7545f1c MP |
4929 | 2017-02-15 Marek Polacek <polacek@redhat.com> |
4930 | ||
4931 | PR c/79515 | |
4932 | * c-warn.c (do_warn_double_promotion): Don't warn if an invalid | |
4933 | conversion has occured. | |
4934 | ||
c2e84327 DM |
4935 | 2017-01-24 David Malcolm <dmalcolm@redhat.com> |
4936 | ||
4937 | * c-common.c (c_common_reswords): Add "__RTL". | |
4938 | * c-common.h (enum rid): Add RID_RTL. | |
4939 | ||
2ebd93e1 MP |
4940 | 2017-01-20 Marek Polacek <polacek@redhat.com> |
4941 | ||
4942 | PR c/64279 | |
4943 | * c-common.h (do_warn_duplicated_branches_r): Declare. | |
4944 | * c-gimplify.c (c_genericize): Walk the function tree calling | |
4945 | do_warn_duplicated_branches_r. | |
4946 | * c-warn.c (expr_from_macro_expansion_r): New. | |
4947 | (do_warn_duplicated_branches): New. | |
4948 | (do_warn_duplicated_branches_r): New. | |
4949 | * c.opt (Wduplicated-branches): New option. | |
4950 | ||
0d80ab91 DM |
4951 | 2017-01-17 David Malcolm <dmalcolm@redhat.com> |
4952 | ||
4953 | PR c++/71497 | |
4954 | * c-indentation.c (warn_for_misleading_indentation): Use the past | |
4955 | subjunctive in the note. | |
4956 | ||
7f991c36 AH |
4957 | 2017-01-17 Aldy Hernandez <aldyh@redhat.com> |
4958 | ||
4959 | PR c/79116 | |
4960 | * array-notation-common.c (cilkplus_extract_an_triplets): Convert | |
4961 | start type to integer_type. | |
4962 | ||
1c70261c JJ |
4963 | 2017-01-16 Jakub Jelinek <jakub@redhat.com> |
4964 | ||
4965 | PR driver/49726 | |
4966 | * c.opt (gen-decls): Add Driver flag. | |
4967 | ||
1ddca3f3 PC |
4968 | 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com> |
4969 | ||
4970 | Revert: | |
4971 | 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com> | |
4972 | ||
4973 | PR c++/71737 | |
4974 | * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE. | |
4975 | ||
7d2f3f1d PC |
4976 | 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com> |
4977 | ||
4978 | PR c++/71737 | |
4979 | * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE. | |
4980 | ||
bce6f760 MS |
4981 | 2017-01-12 Martin Sebor <msebor@redhat.com> |
4982 | ||
4983 | (-Wformat-overflow): ...to this. | |
4984 | ||
bf5fbf46 MS |
4985 | 2017-01-11 Martin Sebor <msebor@redhat.com> |
4986 | ||
4987 | PR c/78768 | |
4988 | * c.opt (-Walloca-larger-than, -Wformat-length, -Wformat-truncation): | |
4989 | Also enable for LTO. | |
4990 | ||
e363df3f JM |
4991 | 2017-01-10 Jason Merrill <jason@redhat.com> |
4992 | ||
4993 | Implement P0195R2, C++17 variadic using. | |
4994 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_variadic_using. | |
4995 | ||
bd2c6270 JJ |
4996 | 2017-01-09 Jakub Jelinek <jakub@redhat.com> |
4997 | ||
4998 | PR translation/79019 | |
4999 | PR translation/79020 | |
5000 | * c.opt (Wnormalized=): Fix typo in description. | |
5001 | ||
efcc8d38 MS |
5002 | 2017-01-08 Martin Sebor <msebor@redhat.com> |
5003 | ||
5004 | PR middle-end/77708 | |
5005 | * c.opt (-Wformat-truncation): New option. | |
5006 | ||
ab20d992 | 5007 | 2017-01-06 Alexandre Oliva <aoliva@redhat.com> |
435f3f7a AO |
5008 | |
5009 | * c-pretty-print.c (pp_c_tree_decl_identifier): Convert 16-bit | |
5010 | value to unsigned short to fit in 4 hex digits without | |
5011 | warnings. | |
5012 | ||
4e89adf9 EB |
5013 | 2017-01-05 Eric Botcazou <ebotcazou@adacore.com> |
5014 | ||
5015 | * c.opt (fsso-struct): Add 'native' value. | |
5016 | ||
cd445b54 ML |
5017 | 2017-01-05 Martin Liska <mliska@suse.cz> |
5018 | ||
5019 | PR pch/78970 | |
5020 | * c-opts.c (c_common_post_options): Reject '-' filename for a precompiled | |
5021 | header. | |
5022 | ||
a9342885 MP |
5023 | 2017-01-04 Marek Polacek <polacek@redhat.com> |
5024 | ||
5025 | PR c++/64767 | |
5026 | * c.opt (Wpointer-compare): New option. | |
5027 | ||
fc73e60c JJ |
5028 | 2017-01-04 Jakub Jelinek <jakub@redhat.com> |
5029 | ||
5030 | PR driver/78957 | |
5031 | * c.opt (fsso-struct=): Add RejectNegative. | |
5032 | ||
cbe34bb5 JJ |
5033 | 2017-01-01 Jakub Jelinek <jakub@redhat.com> |
5034 | ||
5035 | Update copyright years. | |
5036 | ||
d4a6c0ea ML |
5037 | 2016-12-29 Martin Liska <mliska@suse.cz> |
5038 | ||
5039 | PR c/78933 | |
5040 | * c.opt (strong-eval-order): Add RejectNegative keyword. | |
5041 | ||
67a5ad7c JM |
5042 | 2016-12-22 Jason Merrill <jason@redhat.com> |
5043 | ||
5044 | Implement P0522R0, matching of template template arguments. | |
5045 | * c-cppbuiltin.c (c_cpp_builtins): Define | |
5046 | __cpp_template_template_args. | |
5047 | ||
0dba7960 JJ |
5048 | 2016-12-21 Jakub Jelinek <jakub@redhat.com> |
5049 | ||
5050 | PR bootstrap/78817 | |
5051 | * c-common.c (struct nonnull_arg_ctx): New type. | |
5052 | (check_function_nonnull): Return bool instead of void. Use | |
5053 | nonnull_arg_ctx as context rather than just location_t. | |
5054 | (check_nonnull_arg): Adjust for the new context type, set | |
5055 | warned_p to true if a warning has been diagnosed. | |
5056 | (check_function_arguments): Return bool instead of void. | |
5057 | * c-common.h (check_function_arguments): Adjust prototype. | |
5058 | ||
31bfc9b9 JM |
5059 | 2016-12-21 Jason Merrill <jason@redhat.com> |
5060 | ||
5061 | * c.opt (-fnew-ttp-matching): New flag. | |
5062 | * c-opts.c (c_common_post_options): Default on if -std=c++1z. | |
5063 | ||
629b3d75 MJ |
5064 | 2016-12-14 Martin Jambor <mjambor@suse.cz> |
5065 | ||
5066 | * c-omp.c: Include omp-general.h instead of omp-low.h. | |
5067 | (c_finish_oacc_wait): Adjusted call to find_omp_clause to use its new | |
5068 | name. | |
5069 | ||
474da67e MS |
5070 | 2016-12-14 Martin Sebor <msebor@redhat.com> |
5071 | ||
5072 | PR c/17308 | |
5073 | * c-common.c (check_nonnull_arg): Disable when optimization | |
5074 | is enabled. | |
5075 | ||
fe366b87 MP |
5076 | 2016-12-12 Marek Polacek <polacek@redhat.com> |
5077 | ||
5078 | PR c++/78647 | |
5079 | * c-common.c (attribute_fallthrough_p): Return false for | |
5080 | error_mark_node. | |
5081 | ||
8bd9f164 MS |
5082 | 2016-12-08 Martin Sebor <msebor@redhat.com> |
5083 | ||
5084 | PR c/78284 | |
5085 | * c.opt (-Walloc-zero, -Walloc-size-larger-than): New options. | |
5086 | ||
060162e0 MS |
5087 | 2016-12-08 Martin Sebor <msebor@redhat.com> |
5088 | ||
5089 | PR c/78165 | |
92a285c1 ML |
5090 | * c-pretty-print (pp_c_integer_constant): Avoid formatting type |
5091 | suffix. | |
060162e0 | 5092 | |
ee92e7ba MS |
5093 | 2016-12-07 Martin Sebor <msebor@redhat.com> |
5094 | ||
5095 | PR c/53562 | |
5096 | PR middle-end/77784 | |
5097 | PR middle-end/78149 | |
5098 | PR middle-end/78138 | |
5099 | * c.opt (-Wstringop-overflow): New option. | |
5100 | ||
84b0769e MO |
5101 | 2016-12-02 Maxim Ostapenko <m.ostapenko@samsung.com> |
5102 | ||
5103 | * c-attribs.c (asan odr indicator): New attribute. | |
5104 | (handle_asan_odr_indicator_attribute): New function. | |
5105 | ||
7fa6a965 PK |
5106 | 2016-11-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
5107 | ||
5108 | * c-common.c (c_common_nodes_and_builtins): Remove initialization of | |
5109 | ptrdiff_type_node; | |
5110 | ||
56d8ffc1 JG |
5111 | 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com> |
5112 | ||
5113 | * c-common.c (excess_precision_mode_join): New. | |
5114 | (c_ts18661_flt_eval_method): New. | |
5115 | (c_c11_flt_eval_method): Likewise. | |
5116 | (c_flt_eval_method): Likewise. | |
5117 | * c-common.h (excess_precision_mode_join): New. | |
5118 | (c_flt_eval_method): Likewise. | |
5119 | * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): New. | |
5120 | (cpp_iec_559_value): Call it. | |
5121 | (c_cpp_builtins): Modify logic for __LIBGCC_*_EXCESS_PRECISION__, | |
5122 | call c_flt_eval_method to set __FLT_EVAL_METHOD__ and | |
5123 | __FLT_EVAL_METHOD_TS_18661_3__. | |
5124 | ||
04f0fcf7 JG |
5125 | 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com> |
5126 | ||
5127 | * c-opts.c (c_common_post_options): Add logic to handle the default | |
5128 | case for -fpermitted-flt-eval-methods. | |
5129 | ||
fb2675cb PB |
5130 | 2016-11-23 Paolo Bonzini <bonzini@gnu.org> |
5131 | ||
5132 | * c.opt (Wexpansion-to-defined): New. | |
5133 | ||
ec1c5694 JJ |
5134 | 2016-11-23 Jakub Jelinek <jakub@redhat.com> |
5135 | ||
5136 | PR target/78451 | |
5137 | * c-pragma.c (handle_pragma_target): Don't replace | |
5138 | current_target_pragma, but chainon the new args to the current one. | |
5139 | ||
730c9e75 NS |
5140 | 2016-11-22 Nathan Sidwell <nathan@acm.org> |
5141 | ||
5142 | * array-notation-common.c (cilkplus_extract_an_trplets): Fix | |
cacd29be | 5143 | indentation and formatting. |
730c9e75 | 5144 | |
89990732 MS |
5145 | 2016-11-21 Martin Sebor <msebor@redhat.com> |
5146 | ||
5147 | * c.opt (-fprintf-return-value): Enable by default. | |
5148 | ||
48330c93 BE |
5149 | 2016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de> |
5150 | ||
5151 | PR c++/71973 | |
5152 | * c.opt (-Wbuiltin-declaration-mismatch): New warning. | |
5153 | * c-common.c (c_common_nodes_and_builtins): Initialize | |
5154 | const_tm_ptr_type_node. | |
5155 | ||
0d939c95 MP |
5156 | 2016-11-16 Marek Polacek <polacek@redhat.com> |
5157 | ||
5158 | PR c/78285 | |
5159 | * c-common.c (c_add_case_label): Turn error_at calls into inform. | |
5160 | ||
8e745a17 JJ |
5161 | 2016-11-14 Jakub Jelinek <jakub@redhat.com> |
5162 | ||
5163 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_structured_bindings. | |
5164 | ||
1ee62b92 | 5165 | 2016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com> |
8e745a17 JJ |
5166 | Richard Biener <rguenther@suse.de> |
5167 | ||
5168 | * c-common.h (c_common_resword): Add RID_GIMPLE, RID_PHI types. | |
5169 | * c-common.h (enum rid): Add RID_GIMPLE, RID_PHI. | |
5170 | * c.opt (fgimple): New option. | |
1ee62b92 | 5171 | |
22b15758 UB |
5172 | 2016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
5173 | ||
5174 | PR c/35503 | |
5175 | * c-common.h (warn_for_restrict): Declare. | |
5176 | * c-warn.c: Include gcc-rich-location.h. | |
5177 | (warn_for_restrict): New function. | |
5178 | * c-format.c (gcc_tdiag_char_table): Add entry for "Z" specifier. | |
5179 | (gcc_cdiag_char_table): Likewise. | |
5180 | (gcc_cxxdiag_char_table): Likewise. | |
5181 | * c.opt (Wrestrict): New option. | |
5182 | ||
4be719cd EB |
5183 | 2016-11-13 Eric Botcazou <ebotcazou@adacore.com> |
5184 | ||
5185 | * c-ada-spec.c (print_ada_declaration): For typedef declarations, look | |
5186 | for nested types only if the type is a record or union and dump SLOC. | |
5187 | ||
4a826ca6 JM |
5188 | 2016-11-09 Jason Merrill <jason@redhat.com> |
5189 | ||
5190 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_template_auto. | |
5191 | ||
2e955d50 JJ |
5192 | 2016-11-09 Jakub Jelinek <jakub@redhat.com> |
5193 | ||
5194 | * c-ubsan.c (ubsan_instrument_shift): Handle split | |
5195 | -fsanitize=shift-base and -fsanitize=shift-exponent. | |
5196 | ||
51dc6603 JM |
5197 | 2016-11-07 Jason Merrill <jason@redhat.com> |
5198 | ||
5199 | * c.opt (Wc++1z-compat): New. | |
5200 | * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_noexcept_function_type. | |
5201 | ||
6dc4a604 ML |
5202 | 2016-11-07 Martin Liska <mliska@suse.cz> |
5203 | ||
5204 | * c-warn.c (warn_for_unused_label): Save all labels used | |
5205 | in goto or in &label. | |
5206 | ||
b302001e JM |
5207 | 2016-11-03 Jason Merrill <jason@redhat.com> |
5208 | ||
5209 | * c-cppbuiltin.c (c_cpp_builtins): Correct | |
5210 | __cpp_inheriting_constructors. | |
5211 | ||
31f7f784 JM |
5212 | 2016-11-01 Jason Merrill <jason@redhat.com> |
5213 | ||
2bc78e3c JM |
5214 | * c-cppbuiltin.c (c_cpp_builtins): Update |
5215 | __cpp_inheriting_constructors. | |
5216 | ||
31f7f784 JM |
5217 | * c.opt (-fnew-inheriting-ctors): New. |
5218 | * c-opts.c: Default to on for ABI 11+. | |
5219 | ||
dcb466ec JJ |
5220 | 2016-10-31 Jakub Jelinek <jakub@redhat.com> |
5221 | ||
5222 | PR c++/77948 | |
5223 | * c.opt (fext-numeric-literals): Add Var and Init. | |
5224 | * c-opts.c (c_common_handle_option): Don't clear | |
5225 | cpp_opts->ext_numeric_literals for -std=c++{11,14,1z}. | |
5226 | (c_common_post_options): Clear it here if not set | |
5227 | explicitly. | |
5228 | ||
52e1b91e AH |
5229 | 2016-10-28 Aldy Hernandez <aldyh@redhat.com> |
5230 | ||
5231 | PR debug/77773 | |
5232 | * c-pretty-print.c (simple_type_specifier): Do not dereference `t' | |
5233 | if NULL. | |
5234 | ||
e16f1cc7 JJ |
5235 | 2016-10-25 Jakub Jelinek <jakub@redhat.com> |
5236 | ||
5237 | * c-common.h (enum rid): Add RID_BUILTIN_LAUNDER. | |
5238 | * c-common.c (c_common_reswords): Add __builtin_launder. | |
5239 | ||
f8348061 BE |
5240 | 2016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de> |
5241 | ||
5242 | * c-common.c (c_common_truthvalue_conversion): Warn for | |
5243 | multiplications in boolean context. Fix the quoting of '<<' and '<' | |
5244 | in the shift warning. | |
5245 | ||
eff89e01 BE |
5246 | 2016-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de> |
5247 | ||
5248 | * c-common.c (c_common_truthvalue_conversion): Fix the comment. | |
5249 | ||
24bc7bf4 JM |
5250 | 2016-10-20 Jason Merrill <jason@redhat.com> |
5251 | ||
5252 | * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_concepts value. | |
5253 | ||
4c712374 BE |
5254 | 2016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de> |
5255 | ||
5256 | * c-common.c (c_common_truthvalue_conversion): Warn only for signed | |
5257 | integer shift ops in boolean context. | |
5258 | ||
5259 | 2016-10-18 Aldy Hernandez <aldyh@redhat.com> | |
adc577c5 AH |
5260 | |
5261 | * c.opt (Walloca): New. | |
5262 | (Walloca-larger-than=): New. | |
5263 | (Wvla-larger-than=): New. | |
5264 | ||
8fa18c06 MP |
5265 | 2016-10-17 Marek Polacek <polacek@redhat.com> |
5266 | ||
5267 | * c-warn.c (find_array_ref_with_const_idx_r): Remove parameter names. | |
5268 | Return immediately when finding a match. | |
5269 | (warn_tautological_cmp): Remove a boolean variable that is no longer | |
5270 | needed. | |
5271 | ||
b12b1915 MP |
5272 | 2016-10-17 Marek Polacek <polacek@redhat.com> |
5273 | ||
5274 | * c-attribs.c: New file. | |
5275 | * c-common.c: Move attributes handling to c-attribs.c. | |
5276 | (get_nonnull_operand): No longer static. | |
5277 | * c-common.h: Move the declarations from c-attribs.c to its own section. | |
5278 | ||
2045acd9 JM |
5279 | 2016-10-14 Jason Merrill <jason@redhat.com> |
5280 | ||
5281 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_aggregate_bases | |
5282 | and __cpp_deduction_guides. | |
5283 | ||
14a2c9aa JM |
5284 | 2016-10-13 Jason Merrill <jason@redhat.com> |
5285 | ||
5286 | * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_inline_variables. | |
5287 | ||
4d0cdd0c TP |
5288 | 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com> |
5289 | ||
5290 | * c-cppbuiltin.c: Include memmodel.h. | |
5291 | * c-opts.c: Likewise. | |
5292 | * c-pragma.c: Likewise. | |
5293 | * c-warn.c: Likewise. | |
5294 | ||
70f6d5e1 JJ |
5295 | 2016-10-12 Jakub Jelinek <jakub@redhat.com> |
5296 | ||
5297 | * c.opt (Wextra): Add as C/C++/ObjC/ObjC++ option. | |
5298 | (Wimplicit-fallthrough=): Enable for these languages by -Wextra. | |
5299 | * c-opts.c (sanitize_cpp_opts): Initialize | |
5300 | cpp_opts->cpp_warn_implicit_fallthrough. | |
5301 | ||
78f61294 MP |
5302 | 2016-10-11 Marek Polacek <polacek@redhat.com> |
5303 | ||
5304 | * c-common.c (warning_candidate_p): Change the return type to bool | |
5305 | and return true/false instead of 1/0. | |
5306 | (vector_mode_valid_p): Likewise. | |
5307 | ||
038b5cc0 MP |
5308 | 2016-10-11 Marek Polacek <polacek@redhat.com> |
5309 | ||
5310 | * c-common.c (fold_for_warn): No longer static. | |
5311 | (bool_promoted_to_int_p): Likewise. | |
5312 | (c_common_get_narrower): Likewise. | |
5313 | (constant_expression_warning): Move to c-warn.c. | |
5314 | (constant_expression_error): Likewise. | |
5315 | (overflow_warning): Likewise. | |
5316 | (warn_logical_operator): Likewise. | |
5317 | (find_array_ref_with_const_idx_r): Likewise. | |
5318 | (warn_tautological_cmp): Likewise. | |
5319 | (expr_has_boolean_operands_p): Likewise. | |
5320 | (warn_logical_not_parentheses): Likewise. | |
5321 | (warn_if_unused_value): Likewise. | |
5322 | (strict_aliasing_warning): Likewise. | |
5323 | (sizeof_pointer_memaccess_warning): Likewise. | |
5324 | (check_main_parameter_types): Likewise. | |
5325 | (conversion_warning): Likewise. | |
5326 | (warnings_for_convert_and_check): Likewise. | |
5327 | (match_case_to_enum_1): Likewise. | |
5328 | (match_case_to_enum): Likewise. | |
5329 | (c_do_switch_warnings): Likewise. | |
5330 | (warn_for_omitted_condop): Likewise. | |
5331 | (readonly_error): Likewise. | |
5332 | (lvalue_error): Likewise. | |
5333 | (invalid_indirection_error): Likewise. | |
5334 | (warn_array_subscript_with_type_char): Likewise. | |
5335 | (warn_about_parentheses): Likewise. | |
5336 | (warn_for_unused_label): Likewise. | |
5337 | (warn_for_div_by_zero): Likewise. | |
5338 | (warn_for_memset): Likewise. | |
5339 | (warn_for_sign_compare): Likewise. | |
5340 | (do_warn_double_promotion): Likewise. | |
5341 | (do_warn_unused_parameter): Likewise. | |
5342 | (record_locally_defined_typedef): Likewise. | |
5343 | (maybe_record_typedef_use): Likewise. | |
5344 | (maybe_warn_unused_local_typedefs): Likewise. | |
5345 | (maybe_warn_bool_compare): Likewise. | |
5346 | (maybe_warn_shift_overflow): Likewise. | |
5347 | (warn_duplicated_cond_add_or_warn): Likewise. | |
5348 | (diagnose_mismatched_attributes): Likewise. | |
5349 | * c-common.h: Move the declarations from c-warn.c to its own section. | |
5350 | * c-warn.c: New file. | |
5351 | ||
627be19f JM |
5352 | 2016-10-08 Jason Merrill <jason@redhat.com> |
5353 | ||
5354 | * c-common.c (c_common_truthvalue_conversion): Don't distribute | |
5355 | into COND_EXPR in C++. | |
5356 | ||
7bad794a JJ |
5357 | 2016-10-08 Jakub Jelinek <jakub@redhat.com> |
5358 | ||
5359 | * c-lex.c (c_lex_with_flags) <case CPP_COMMENT>: For CPP_COMMENT | |
5360 | token with PREV_FALLTHROUGH, skip all following CPP_PADDING and | |
5361 | CPP_COMMENT tokens and set add_flags to PREV_FALLTHROUGH afterwards. | |
5362 | ||
be845b04 JJ |
5363 | 2016-10-07 Jakub Jelinek <jakub@redhat.com> |
5364 | ||
5365 | Implement LWG2296 helper intrinsic | |
5366 | * c-common.h (enum rid): Add RID_ADDRESSOF. | |
5367 | * c-common.c (c_common_reswords): Add __builtin_addressof. | |
5368 | ||
c09c4992 BE |
5369 | 2016-10-07 Bernd Edlinger <bernd.edlinger@hotmail.de> |
5370 | ||
5371 | PR c++/77700 | |
5372 | * c-common.c (c_common_truthvalue_conversion): Warn also for | |
5373 | suspicious enum values in boolean context. | |
5374 | ||
342cfb3e JJ |
5375 | 2016-10-06 Jakub Jelinek <jakub@redhat.com> |
5376 | ||
5377 | Implement P0258R2 - helper for C++17 | |
5378 | std::has_unique_object_representations trait | |
5379 | * c-common.h (enum rid): Add RID_HAS_UNIQUE_OBJ_REPRESENTATIONS. | |
5380 | * c-common.c (c_common_reswords): Add | |
5381 | __has_unique_object_representations. | |
5382 | ||
2e69f143 JJ |
5383 | 2016-10-05 Jakub Jelinek <jakub@redhat.com> |
5384 | ||
5385 | PR sanitizer/66343 | |
5386 | * c-ubsan.c (ubsan_instrument_return): Don't call | |
5387 | initialize_sanitizer_builtins here. | |
5388 | ||
700fff34 BE |
5389 | 2016-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de> |
5390 | ||
5391 | * c-common.c (c_common_truthvalue_conversion): Warn also for suspicious | |
5392 | conditional expression in boolean context when only one arm is | |
5393 | non-boolean. | |
5394 | ||
9563bfcd JJ |
5395 | 2016-10-05 Jakub Jelinek <jakub@redhat.com> |
5396 | ||
04a32443 JJ |
5397 | PR sanitizer/77823 |
5398 | * c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0 | |
5399 | is not integral. | |
5400 | ||
9563bfcd JJ |
5401 | * c-common.c (c_common_reswords): Update comment for C++11. |
5402 | ||
f1644724 JM |
5403 | 2016-10-04 Jason Merrill <jason@redhat.com> |
5404 | ||
5405 | * c-common.c (make_tree_vector_from_ctor): New. | |
5406 | * c-common.h: Declare it. | |
5407 | ||
5a79befb JJ |
5408 | 2016-10-04 Jakub Jelinek <jakub@redhat.com> |
5409 | ||
5410 | * c-cppbuiltin.c (c_cpp_builtins): Don't define | |
5411 | __LIBGCC_JCR_SECTION_NAME__. | |
5412 | ||
1633d3b9 BE |
5413 | 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de> |
5414 | ||
5415 | * c-common.c (c_common_truthvalue_conversion): Warn for suspicious | |
5416 | left shift in boolean context. | |
5417 | ||
a2c6e7f2 JJ |
5418 | 2016-09-29 Jakub Jelinek <jakub@redhat.com> |
5419 | ||
5420 | Implement P0001R1 - C++17 removal of register storage class specifier | |
5421 | * c.opt (Wregister): New warning. | |
5422 | * c-opts.c (c_common_post_options): Enable -Wregister by | |
5423 | default for C++17. | |
5424 | ||
75304c87 JG |
5425 | 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com> |
5426 | ||
5427 | * c-opts.c (c_common_post_options): Remove special case for | |
5428 | TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard | |
5429 | in C++. | |
5430 | ||
bbfac6da JJ |
5431 | 2016-09-27 Jakub Jelinek <jakub@redhat.com> |
5432 | ||
6e39060a JJ |
5433 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for |
5434 | -std=c++1z. | |
5435 | ||
bbfac6da JJ |
5436 | * c-ada-spec.c (print_ada_declaration): Remove break after return. |
5437 | ||
e73cf9a2 TP |
5438 | 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com> |
5439 | ||
5440 | * c-common.c: Include memmodel.h. | |
5441 | ||
c6147dc4 MP |
5442 | 2016-09-26 Marek Polacek <polacek@redhat.com> |
5443 | ||
5444 | * c-lex.c (c_common_has_attribute): Handle attribute fallthrough. | |
5445 | ||
81fea426 MP |
5446 | 2016-09-26 Marek Polacek <polacek@redhat.com> |
5447 | ||
5448 | PR c/7652 | |
5449 | * c-common.c (c_common_attribute_table): Add fallthrough attribute. | |
5450 | (handle_fallthrough_attribute): New function. | |
5451 | (attribute_fallthrough_p): New function. | |
5452 | * c-common.h (attribute_fallthrough_p): Declare. | |
5453 | ||
9a2300e9 MP |
5454 | 2016-09-24 Marek Polacek <polacek@redhat.com> |
5455 | ||
5456 | PR c/77490 | |
5457 | * c.opt (Wbool-operation): New. | |
5458 | ||
a09e9e35 BE |
5459 | 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de> |
5460 | ||
5461 | * c-common.c (c_common_truthvalue_conversion): Inhibit | |
5462 | Wint-in-bool-context warning with from_macro_definition_at. | |
5463 | Mention the expression will always evaluate to true. | |
5464 | ||
d43b4ccc MS |
5465 | 2016-09-21 Martin Sebor <msebor@redhat.com> |
5466 | ||
5467 | PR bootstrap/77676 | |
5468 | * c.opt (fprintf-return-value): Temporarily initialize to zero | |
5469 | to unblock bootstrap failures. | |
5470 | ||
2e1c20b1 JJ |
5471 | 2016-09-21 Jakub Jelinek <jakub@redhat.com> |
5472 | ||
5473 | PR c++/77651 | |
5474 | * c.opt (Waligned-new=): Add RejectNegative. | |
5475 | (faligned-new=): Likewise. Spelling fix - change | |
5476 | aligned_new_threshhold to aligned_new_threshold. | |
5477 | * c-cppbuiltin.c (c_cpp_builtins): Change aligned_new_threshhold | |
5478 | to aligned_new_threshold. | |
5479 | ||
88d0c3f0 MS |
5480 | 2016-09-20 Martin Sebor <msebor@redhat.com> |
5481 | ||
5482 | PR middle-end/49905 | |
5483 | * c.opt: Add -Wformat-length and -fprintf-return-value. | |
5484 | ||
144a96e4 BE |
5485 | 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de> |
5486 | ||
5487 | PR c++/77434 | |
5488 | * c.opt (Wint-in-bool-context): New warning. | |
5489 | * c-common.c (c_common_truthvalue_conversion): Warn on integer | |
5490 | constants in boolean context. | |
5491 | ||
63012d9a JM |
5492 | 2016-09-19 Joseph Myers <joseph@codesourcery.com> |
5493 | ||
5494 | * c-common.c (max_align_t_align): Also consider alignment of | |
5495 | float128_type_node. | |
5496 | ||
931388ce JM |
5497 | 2016-09-15 Jason Merrill <jason@redhat.com> |
5498 | ||
5499 | * c-common.c (check_cxx_fundamental_alignment_constraints): Check | |
5500 | DECL_EXTERNAL. | |
5501 | ||
38711381 JM |
5502 | 2016-09-14 Jason Merrill <jason@redhat.com> |
5503 | ||
5504 | * c-common.c (check_cxx_fundamental_alignment_constraints): Don't | |
5505 | limit FIELD_DECL, either. | |
5506 | ||
e51fbec3 MP |
5507 | 2016-09-14 Marek Polacek <polacek@redhat.com> |
5508 | ||
5509 | * c-common.c (c_common_truthvalue_conversion): Use false instead of 0. | |
5510 | * c-common.h (build_unary_op): Change nonconvert parameter type to bool. | |
5511 | * c-omp.c (c_finish_omp_atomic): Use false instead of 0. | |
5512 | ||
254830ba DM |
5513 | 2016-09-13 David Malcolm <dmalcolm@redhat.com> |
5514 | ||
5515 | * c-common.c (warn_logical_not_parentheses): Replace | |
5516 | rich_location::add_fixit_insert calls with add_fixit_insert_before | |
5517 | and add_fixit_insert_after, eliminating the "next_loc" calculation. | |
5518 | ||
42763690 JM |
5519 | 2016-09-13 Jason Merrill <jason@redhat.com> |
5520 | Tom de Vries <tom@codesourcery.com> | |
5521 | ||
5522 | PR c++/77427 | |
5523 | * c-common.c (set_underlying_type): Don't treat array as builtin type. | |
5524 | ||
9453eee9 JM |
5525 | 2016-09-13 Jason Merrill <jason@redhat.com> |
5526 | ||
5527 | * c-common.c (check_cxx_fundamental_alignment_constraints): Don't | |
5528 | limit types at all. | |
5529 | ||
e96809e3 JM |
5530 | 2016-09-12 Jason Merrill <jason@redhat.com> |
5531 | ||
5532 | * c-common.c (check_cxx_fundamental_alignment_constraints): Fix | |
5533 | bit/byte confusion, allow large alignment for types. | |
5534 | ||
54dcdb88 BE |
5535 | 2016-09-12 Bernd Edlinger <bernd.edlinger@hotmail.de> |
5536 | ||
5537 | PR c++/77496 | |
5538 | * c-common.c (warn_for_omitted_condop): Also warn for boolean data. | |
5539 | ||
d1463eb9 DM |
5540 | 2016-09-12 David Malcolm <dmalcolm@redhat.com> |
5541 | ||
5542 | PR c/72858 | |
5543 | * c-format.c (argument_parser::check_argument_type): Add params | |
5544 | "type_start" and "conversion_char". Use the former to generate | |
5545 | offset_to_type_start and pass it and conversion_char to | |
5546 | check_format_types. | |
5547 | (check_format_info_main): Capture the start of the type | |
5548 | information as "type_start", and pass it an format_char | |
5549 | to arg_parser.check_argument_type. | |
5550 | (check_format_types): Provide an example in the leading comment. | |
5551 | Add params "offset_to_type_start" and "conversion_char"; pass | |
5552 | them to format_type_warning calls. | |
5553 | (test_get_modifier_for_format_len): Likewise. | |
5554 | (matching_type_p): New function. | |
5555 | (get_format_for_type): Add param "conversion_char" and move | |
5556 | implementation into... | |
5557 | (get_format_for_type_1): ...new function, called twice. | |
5558 | Use new function matching_type_p rather than checking for | |
5559 | TYPE_CANONICAL equality. | |
5560 | (get_corrected_substring): New function. | |
5561 | (format_type_warning): Provide an example in the leading comment. | |
5562 | Add params "offset_to_type_start" and "conversion_char". Replace | |
5563 | call to get_format_for_type with call to get_corrected_substring | |
5564 | and move rejection of hints for widths/precisions there. | |
5565 | (assert_format_for_type_streq): Add param "conversion_char". | |
5566 | (ASSERT_FORMAT_FOR_TYPE_STREQ): Add param CONVERSION_CHAR. | |
5567 | (test_get_format_for_type_printf): Add conversion chars to the | |
5568 | tests, adding coverage for various combinations of integer | |
5569 | vs double conversions, and for preserving octal and hexadecimal | |
5570 | conversions. | |
5571 | (test_get_format_for_type_scanf): Add conversion chars to the | |
5572 | tests. | |
5573 | ||
5b28efbb TV |
5574 | 2016-09-10 Tom de Vries <tom@codesourcery.com> |
5575 | ||
5576 | PR C/71602 | |
5577 | * c-common.c (build_va_arg): Handle more strict | |
5578 | targetm.canonical_va_list_type. Replace first argument type error with | |
5579 | assert. | |
5580 | ||
3f0177e7 MS |
5581 | 2016-09-09 Martin Sebor <msebor@redhat.com> |
5582 | ||
5583 | PR c/77520 | |
5584 | PR c/77521 | |
5585 | * c-format.c (argument_parser::find_format_char_info): Use %qc | |
5586 | format directive unconditionally. | |
5587 | ||
af63ba4b JM |
5588 | 2016-09-09 Jason Merrill <jason@redhat.com> |
5589 | ||
5590 | Implement C++17 new of over-aligned types. | |
5591 | * c.opt: Add -faligned-new and -Waligned-new. | |
5592 | * c-common.c (max_align_t_align): Split out from... | |
5593 | (cxx_fundamental_alignment_p): ...here. | |
5594 | * c-common.h: Declare it. | |
5595 | * c-cppbuiltin.c (c_cpp_builtins): Handle aligned new. | |
5596 | ||
c65248cb JM |
5597 | 2016-09-09 Joseph Myers <joseph@codesourcery.com> |
5598 | ||
5599 | * c-cppbuiltin.c (builtin_define_type_width): New function. | |
5600 | (builtin_define_stdint_macros, c_cpp_builtins): Define type width | |
5601 | macros. | |
5602 | ||
e5106e27 DM |
5603 | 2016-09-07 David Malcolm <dmalcolm@redhat.com> |
5604 | ||
5605 | * c-common.c (get_cpp_ttype_from_string_type): Handle being passed | |
5606 | a POINTER_TYPE. | |
5607 | (substring_loc::get_location): Move to substring-locations.c, | |
5608 | keeping implementation as... | |
5609 | (c_get_substring_location): New function, from the above, reworked | |
5610 | to use accessors rather than member lookup. | |
5611 | * c-common.h (class substring_loc): Move to substring-locations.h, | |
5612 | replacing with a forward decl. | |
5613 | (c_get_substring_location): New decl. | |
5614 | * c-format.c: Include "substring-locations.h". | |
5615 | (format_warning_va): Move to substring-locations.c. | |
5616 | (format_warning_at_substring): Likewise. | |
5617 | ||
ab20d992 | 5618 | 2016-09-06 Martin Sebor <msebor@redhat.com> |
a42e7952 MS |
5619 | |
5620 | PR c/77336 | |
5621 | * c-format.c (check_function_format): Avoid issuing warnings for | |
5622 | functions unless they call format functions with non-constant | |
5623 | format strings. | |
5624 | ||
b772a565 RB |
5625 | 2016-09-06 Richard Biener <rguenther@suse.de> |
5626 | ||
5627 | PR c/77450 | |
5628 | * c-common.c (c_common_mark_addressable_vec): Handle | |
5629 | COMPOUND_LITERAL_EXPR. | |
5630 | ||
25ff5dd3 MP |
5631 | 2016-09-05 Marek Polacek <polacek@redhat.com> |
5632 | ||
5633 | PR c/77423 | |
5634 | * c-common.c (bool_promoted_to_int_p): New function. | |
5635 | (expr_has_boolean_operands_p): New function. | |
5636 | (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p. | |
5637 | (maybe_warn_bool_compare): Use bool_promoted_to_int_p. | |
5638 | ||
21234eb5 TV |
5639 | 2016-09-04 Tom de Vries <tom@codesourcery.com> |
5640 | ||
5641 | revert: | |
5642 | 2016-08-29 Tom de Vries <tom@codesourcery.com> | |
5643 | ||
5644 | * c-common.c (build_va_arg): Replace first argument type error | |
5645 | with assert. | |
5646 | ||
9dc5773f JJ |
5647 | 2016-09-02 Jakub Jelinek <jakub@redhat.com> |
5648 | ||
5649 | PR c/65467 | |
5650 | * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions. | |
5651 | (c_finish_omp_for): Reject _Atomic qualified iterators. | |
5652 | ||
5653 | 2016-09-01 Martin Sebor <msebor@redhat.com> | |
3d7b83b6 MS |
5654 | |
5655 | * c-ada-spec.c (dump_ada_function_declaration): Increase buffer | |
5656 | size to guarantee it fits the output of the formatted function | |
5657 | regardless of its arguments. | |
5658 | ||
295844f6 MP |
5659 | 2016-09-01 Marek Polacek <polacek@redhat.com> |
5660 | ||
5661 | PR c/7652 | |
5662 | * c-common.c (resolve_overloaded_builtin): Fix formatting. Add | |
5663 | FALLTHRU comments. | |
5664 | ||
3d06b6f2 MP |
5665 | 2016-08-29 Marek Polacek <polacek@redhat.com> |
5666 | ||
5667 | PR c/77292 | |
5668 | * c-common.c (warn_logical_not_parentheses): Don't warn for | |
5669 | a comparison or a logical operator. | |
5670 | ||
34cedad5 TV |
5671 | 2016-08-29 Tom de Vries <tom@codesourcery.com> |
5672 | ||
5673 | * c-common.c (build_va_arg): Fix type comparison assert. | |
5674 | ||
f162d717 TV |
5675 | 2016-08-29 Tom de Vries <tom@codesourcery.com> |
5676 | ||
5677 | * c-common.c (build_va_arg): Replace first argument type error | |
5678 | with assert. | |
5679 | ||
ba9bbd6f TV |
5680 | 2016-08-29 Tom de Vries <tom@codesourcery.com> |
5681 | ||
5682 | PR c/77398 | |
5683 | * c-common.c (build_va_arg): Add first argument error. Build va_arg | |
5684 | with error_mark_node as va_list instead of with illegal va_list. | |
5685 | ||
ebef225f MP |
5686 | 2016-08-25 Marek Polacek <polacek@redhat.com> |
5687 | David Malcolm <dmalcolm@redhat.com> | |
5688 | ||
5689 | * c-common.c (warn_logical_not_parentheses): Print fixit hints. | |
5690 | * c-common.h (warn_logical_not_parentheses): Update declaration. | |
5691 | ||
b00e6e75 MP |
5692 | 2016-08-22 Marek Polacek <polacek@redhat.com> |
5693 | ||
5694 | PR c++/77321 | |
5695 | * c-common.c (warn_for_memset): Check type for null. | |
5696 | ||
6dc198e3 JM |
5697 | 2016-08-22 Joseph Myers <joseph@codesourcery.com> |
5698 | ||
14ec014e | 5699 | * c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and |
6dc198e3 JM |
5700 | _FloatNx types for suffixes for built-in functions. |
5701 | ||
c65699ef JM |
5702 | 2016-08-19 Joseph Myers <joseph@codesourcery.com> |
5703 | ||
5704 | PR c/32187 | |
5705 | * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32) | |
5706 | (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X) | |
5707 | (RID_FLOAT128X): New enum rid values. | |
5708 | (CASE_RID_FLOATN_NX): New macro. | |
5709 | * c-common.c (c_common_reswords): Add _FloatN and _FloatNx | |
5710 | keywords. | |
5711 | (c_common_type_for_mode): Check for _FloatN and _FloatNx and | |
5712 | corresponding complex types. | |
5713 | (c_common_nodes_and_builtins): For non-C++, register _FloatN and | |
5714 | _FloatNx and corresponding complex types. | |
5715 | (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX. | |
5716 | * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN | |
5717 | and _FloatNx types for the widest type for determining | |
5718 | DECIMAL_DIG. Define __LDBL_DECIMAL_DIG__ as well as | |
5719 | __DECIMAL_DIG__ for long double. Handle FMA_SUFFIX being NULL. | |
5720 | (c_cpp_builtins): Call builtin_define_float_constants for _FloatN | |
5721 | and _FloatNx types. | |
5722 | * c-lex.c (interpret_float): Handle _FloatN and _FloatNx | |
5723 | constants. | |
5724 | * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and | |
5725 | _FloatNx types. | |
5726 | ||
cc015f3a DM |
5727 | 2016-08-18 David Malcolm <dmalcolm@redhat.com> |
5728 | ||
5729 | * c-opts.c (c_diagnostic_finalizer): Update for change to | |
5730 | diagnostic_show_locus. | |
5731 | ||
cb18fd07 DM |
5732 | 2016-08-18 David Malcolm <dmalcolm@redhat.com> |
5733 | ||
5734 | * c-common.c: Include "spellcheck.h". | |
5735 | (cb_get_suggestion): New function. | |
5736 | * c-common.h (cb_get_suggestion): New decl. | |
5737 | * c-lex.c (init_c_lex): Initialize cb->get_suggestion to | |
5738 | cb_get_suggestion. | |
5739 | ||
a76989dc MP |
5740 | 2016-08-18 Marek Polacek <polacek@redhat.com> |
5741 | ||
5742 | PR c/71514 | |
5743 | * c-common.c (get_atomic_generic_size): Disallow pointer-to-function | |
5744 | and pointer-to-VLA. | |
5745 | ||
65e736c0 DM |
5746 | 2016-08-16 David Malcolm <dmalcolm@redhat.com> |
5747 | ||
5748 | PR c/72857 | |
5749 | * c-common.c (substring_loc::get_range): Rename to... | |
5750 | (substring_loc::get_location): ...this, converting param from a | |
5751 | source_range * to a location_t *. Call | |
5752 | get_source_location_for_substring rather than | |
5753 | get_source_range_for_substring, and pass in m_caret_idx. | |
5754 | * c-common.h (substring_loc::substring_loc): Add param "caret_idx". | |
5755 | (substring_loc::get_range): Replace with... | |
5756 | (substring_loc::get_location): ...this. | |
5757 | (substring_loc::set_caret_index): New method. | |
5758 | (substring_loc): Add field m_caret_idx. | |
5759 | * c-format.c (format_warning_va): Update for above changes. | |
5760 | Rename local "substring_loc" to "fmt_substring_loc" to avoid | |
5761 | clashing with type name. | |
5762 | (format_warning_at_char): Add caret_idx param to substring_loc ctor. | |
5763 | (check_argument_type): Likewise. | |
5764 | (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc" | |
5765 | Use a copy when emitting warnings, setting the caret index from TYPE. | |
5766 | ||
7e1dde14 | 5767 | 2016-08-16 Eric Botcazou <ebotcazou@adacore.com> |
8e745a17 | 5768 | Arnaud Charlet <charlet@adacore.com> |
7e1dde14 EB |
5769 | |
5770 | * c-ada-spec.c (dump_number): New function. | |
5771 | (handle_escape_character): Likewise. | |
5772 | (print_ada_macros): Add handling of constant integers and strings. | |
5773 | ||
191816a3 MP |
5774 | 2016-08-12 Marek Polacek <polacek@redhat.com> |
5775 | ||
5776 | PR c/7652 | |
5777 | * c-common.c (scalar_to_vector): Adjust fall through comment. | |
5778 | * c-opts.c (c_common_handle_option): Likewise. | |
5779 | * c-pragma.c (handle_pragma_pack): Add FALLTHRU. | |
5780 | * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust | |
5781 | fall through comment. | |
5782 | * cilk.c (extract_free_variables): Add FALLTHRU. | |
5783 | ||
452df4a4 JM |
5784 | 2016-08-10 Jason Merrill <jason@redhat.com> |
5785 | ||
5786 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr. | |
5787 | ||
f3365c12 JM |
5788 | 2016-08-09 Jason Merrill <jason@redhat.com> |
5789 | ||
5790 | * c-common.c (c_common_attribute_table): vector_size affects type | |
5791 | identity. | |
5792 | ||
f0bc3323 MP |
5793 | 2016-08-09 Marek Polacek <polacek@redhat.com> |
5794 | ||
5795 | PR c/7652 | |
5796 | * c-ada-spec.c (dump_generic_ada_node): Add return. | |
5797 | ||
98e5a19a JM |
5798 | 2016-08-09 Jason Merrill <jason@redhat.com> |
5799 | ||
5800 | * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for | |
5801 | C++17 constexpr lambdas. | |
5802 | ||
895aa8e1 DM |
5803 | 2016-08-08 David Malcolm <dmalcolm@redhat.com> |
5804 | ||
5805 | PR c/64955 | |
5806 | * c-common.h (selftest::c_format_c_tests): New declaration. | |
5807 | (selftest::run_c_tests): New declaration. | |
5808 | * c-format.c: Include "selftest.h. | |
5809 | (format_warning_va): Add param "corrected_substring" and use | |
5810 | it to add a replacement fix-it hint. | |
5811 | (format_warning_at_substring): Likewise. | |
5812 | (format_warning_at_char): Update for new param of | |
5813 | format_warning_va. | |
5814 | (argument_parser::check_argument_type): Pass "fki" to | |
5815 | check_format_types. | |
5816 | (check_format_types): Add param "fki" and pass it to | |
5817 | format_type_warning. | |
5818 | (deref_n_times): New function. | |
5819 | (get_modifier_for_format_len): New function. | |
5820 | (selftest::test_get_modifier_for_format_len): New function. | |
5821 | (get_format_for_type): New function. | |
5822 | (format_type_warning): Add param "fki" and use it to attempt | |
5823 | to provide hints for argument types when calling | |
5824 | format_warning_at_substring. | |
5825 | (selftest::get_info): New function. | |
5826 | (selftest::assert_format_for_type_streq): New function. | |
5827 | (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro. | |
5828 | (selftest::test_get_format_for_type_printf): New function. | |
5829 | (selftest::test_get_format_for_type_scanf): New function. | |
5830 | (selftest::c_format_c_tests): New function. | |
5831 | ||
e52ed3fe DM |
5832 | 2016-08-08 David Malcolm <dmalcolm@redhat.com> |
5833 | ||
5834 | PR c/52952 | |
5835 | * c-format.c: Include "diagnostic.h". | |
5836 | (location_column_from_byte_offset): Delete. | |
5837 | (location_from_offset): Delete. | |
5838 | (format_warning_va): New function. | |
5839 | (format_warning_at_substring): New function. | |
5840 | (format_warning_at_char): New function. | |
5841 | (check_format_arg): Capture location of format_tree and pass to | |
5842 | check_format_info_main. | |
5843 | (argument_parser): Add fields "start_of_this_format" and | |
5844 | "format_string_cst". | |
5845 | (flag_chars_t::validate): Add param "format_string_cst". Convert | |
5846 | warning_at call using location_from_offset to call to | |
5847 | format_warning_at_char. | |
5848 | (argument_parser::argument_parser): Add param "format_string_cst_" | |
5849 | and use use it to initialize field "format_string_cst". | |
5850 | Initialize new field "start_of_this_format". | |
5851 | (argument_parser::read_format_flags): Convert warning_at call | |
5852 | using location_from_offset to a call to format_warning_at_char. | |
5853 | (argument_parser::read_any_format_left_precision): Likewise. | |
5854 | (argument_parser::read_any_format_precision): Likewise. | |
5855 | (argument_parser::read_any_other_modifier): Likewise. | |
5856 | (argument_parser::find_format_char_info): Likewise, in three places. | |
5857 | (argument_parser::parse_any_scan_set): Likewise, in one place. | |
5858 | (argument_parser::handle_conversions): Likewise, in two places. | |
5859 | (argument_parser::check_argument_type): Add param "fmt_param_loc" | |
5860 | and use it to make a substring_loc. Pass the latter to | |
5861 | check_format_types. | |
5862 | (check_format_info_main): Add params "fmt_param_loc" and | |
5863 | "format_string_cst". Convert warning_at calls using | |
5864 | location_from_offset to calls to format_warning_at_char. Pass the | |
5865 | new params to the arg_parser ctor. Pass "format_string_cst" to | |
5866 | flag_chars.validate. Pass "fmt_param_loc" to | |
5867 | arg_parser.check_argument_type. | |
5868 | (check_format_types): Convert first param from a location_t | |
5869 | to a const substring_loc & and rename to "fmt_loc". Attempt | |
5870 | to extract the range of the relevant parameter and pass it | |
5871 | to format_type_warning. | |
5872 | (format_type_warning): Convert first param from a location_t | |
5873 | to a const substring_loc & and rename to "fmt_loc". Add | |
5874 | params "param_range" and "type". Replace calls to warning_at | |
5875 | with calls to format_warning_at_substring. | |
5876 | ||
1c4d457e DM |
5877 | 2016-08-08 David Malcolm <dmalcolm@redhat.com> |
5878 | ||
5879 | * c-format.c (class flag_chars_t): New class. | |
5880 | (struct length_modifier): New struct. | |
5881 | (class argument_parser): New class. | |
5882 | (flag_chars_t::flag_chars_t): New ctor. | |
5883 | (flag_chars_t::has_char_p): New method. | |
5884 | (flag_chars_t::add_char): New method. | |
5885 | (flag_chars_t::validate): New method. | |
5886 | (flag_chars_t::get_alloc_flag): New method. | |
5887 | (flag_chars_t::assignment_suppression_p): New method. | |
5888 | (argument_parser::argument_parser): New ctor. | |
5889 | (argument_parser::read_any_dollar): New method. | |
5890 | (argument_parser::read_format_flags): New method. | |
5891 | (argument_parser::read_any_format_width): New method. | |
5892 | (argument_parser::read_any_format_left_precision): New method. | |
5893 | (argument_parser::read_any_format_precision): New method. | |
5894 | (argument_parser::handle_alloc_chars): New method. | |
5895 | (argument_parser::read_any_length_modifier): New method. | |
5896 | (argument_parser::read_any_other_modifier): New method. | |
5897 | (argument_parser::find_format_char_info): New method. | |
5898 | (argument_parser::validate_flag_pairs): New method. | |
5899 | (argument_parser::give_y2k_warnings): New method. | |
5900 | (argument_parser::parse_any_scan_set): New method. | |
5901 | (argument_parser::handle_conversions): New method. | |
5902 | (argument_parser::check_argument_type): New method. | |
5903 | (check_format_info_main): Introduce classes argument_parser | |
5904 | and flag_chars_t, moving the code within the loop into methods | |
5905 | of these classes. Make various locals "const". | |
5906 | ||
88fa5555 DM |
5907 | 2016-08-05 David Malcolm <dmalcolm@redhat.com> |
5908 | ||
5909 | * c-common.c: Include "substring-locations.h". | |
5910 | (get_cpp_ttype_from_string_type): New function. | |
5911 | (g_string_concat_db): New global. | |
5912 | (substring_loc::get_range): New method. | |
5913 | * c-common.h (g_string_concat_db): New declaration. | |
5914 | (class substring_loc): New class. | |
5915 | * c-lex.c (lex_string): When concatenating strings, capture the | |
5916 | locations of all tokens using a new obstack, and record the | |
5917 | concatenation locations within g_string_concat_db. | |
5918 | * c-opts.c (c_common_init_options): Construct g_string_concat_db | |
5919 | on the ggc-heap. | |
5920 | ||
78169471 MP |
5921 | 2016-07-29 Marek Polacek <polacek@redhat.com> |
5922 | ||
638fc14f MP |
5923 | PR c/71926 |
5924 | * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the | |
5925 | parentheses warning. | |
5926 | ||
78169471 MP |
5927 | PR c/71574 |
5928 | * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL. | |
5929 | ||
1225d6b1 ML |
5930 | 2016-07-28 Martin Liska <mliska@suse.cz> |
5931 | ||
5932 | PR gcov-profile/68025 | |
5933 | * c-common.c (handle_no_profile_instrument_function_attribute): | |
5934 | ||
ec1e2a40 BE |
5935 | 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de> |
5936 | ||
5937 | * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of | |
5938 | BITS_PER_UNIT_LOG. | |
5939 | ||
5ec2cd9f JM |
5940 | 2016-07-25 Jason Merrill <jason@redhat.com> |
5941 | ||
5942 | PR c++/65970 | |
5943 | * c.opt (fconstexpr-loop-limit): New. | |
5944 | ||
9dc5773f | 5945 | 2016-07-22 Martin Sebor <msebor@redhat.com> |
2e6b45af MS |
5946 | |
5947 | PR c++/71675 | |
5948 | * c-common.c (resolve_overloaded_builtin): Avoid converting | |
5949 | __atomic_compare_exchange_n return type to that of what its | |
5950 | first argument points to. | |
5951 | ||
e3fe09c1 UB |
5952 | 2016-07-22 Uros Bizjak <ubizjak@gmail.com> |
5953 | ||
5954 | * c-common.c: Use HOST_WIDE_INT_M1U instead of | |
5955 | ~(unsigned HOST_WIDE_INT) 0. | |
5956 | ||
bc91c436 ML |
5957 | 2016-07-22 Martin Liska <mliska@suse.cz> |
5958 | ||
5959 | PR gcov-profile/69028 | |
5960 | PR gcov-profile/62047 | |
5961 | * cilk.c (create_cilk_helper_decl): Set location of a new decl | |
5962 | to the current_function_decl. | |
5963 | ||
451dcc66 JM |
5964 | 2016-07-21 Jason Merrill <jason@redhat.com> |
5965 | ||
5966 | PR c++/65168 | |
5967 | * c-common.c (c_common_truthvalue_conversion): Check | |
5968 | c_inhibit_evaluation_warnings for warning about address of | |
5969 | reference. | |
5970 | ||
de6a69ee DM |
5971 | 2016-07-20 David Malcolm <dmalcolm@redhat.com> |
5972 | ||
5973 | * c-common.h (lookup_name_fuzzy): Convert return type from tree to | |
5974 | const char *. | |
5975 | ||
d022c55a JM |
5976 | 2016-07-15 Jason Merrill <jason@redhat.com> |
5977 | ||
5978 | * c-opts.c (c_common_post_options): Update -fabi-version default to 11. | |
5979 | ||
ddbbcb19 JJ |
5980 | 2016-07-15 Jakub Jelinek <jakub@redhat.com> |
5981 | ||
5982 | PR c/71858 | |
5983 | * c-common.h (enum lookup_name_fuzzy_kind): Add | |
5984 | FUZZY_LOOKUP_FUNCTION_NAME. | |
5985 | ||
d0cf395a JM |
5986 | 2016-07-08 Jason Merrill <jason@redhat.com> |
5987 | ||
5988 | P0145: Refining Expression Order for C++. | |
5989 | * c.opts (-fargs-in-order): Rename to -fstrong-eval-order. | |
5990 | * c-opts.c: Adjust. | |
5991 | ||
98d44e93 MT |
5992 | 2016-07-05 Markus Trippelsdorf <markus@trippelsdorf.de> |
5993 | ||
5994 | PR c++/71214 | |
5995 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references. | |
5996 | ||
f9d8d994 TS |
5997 | 2016-06-29 Thomas Schwinge <thomas@codesourcery.com> |
5998 | ||
5999 | * c-pragma.h (enum pragma_kind): Rename | |
6000 | PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE. Adjust all | |
6001 | users. | |
6002 | ||
4aa83879 RB |
6003 | 2016-06-29 Richard Biener <rguenther@suse.de> |
6004 | ||
6005 | PR middle-end/71002 | |
6006 | * c-common.c (c_common_get_alias_set): Remove union type punning case. | |
6007 | ||
a25bd9e6 JM |
6008 | 2016-06-24 Jason Merrill <jason@redhat.com> |
6009 | ||
6010 | P0145R2: Refining Expression Order for C++. | |
6011 | * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of | |
6012 | MODIFY_EXPR. | |
6013 | ||
a86451b9 JJ |
6014 | 2016-06-24 Jakub Jelinek <jakub@redhat.com> |
6015 | ||
6016 | * c-common.c (check_builtin_function_arguments): Require last | |
6017 | argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type. | |
6018 | Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW | |
6019 | if the last argument is pointer to enumerated or boolean type. | |
6020 | ||
1a4f11c8 DM |
6021 | 2016-06-22 David Malcolm <dmalcolm@redhat.com> |
6022 | ||
6023 | PR c/70339 | |
6024 | * c-common.h (enum lookup_name_fuzzy_kind): New enum. | |
6025 | (lookup_name_fuzzy): New prototype. | |
6026 | ||
fe55692c JDA |
6027 | 2016-06-21 John David Anglin <danglin@gcc.gnu.org> |
6028 | ||
6029 | * c-common.c (get_source_date_epoch): Use int64_t instead of long long. | |
6030 | ||
4eb24e01 JM |
6031 | 2016-06-14 Jason Merrill <jason@redhat.com> |
6032 | ||
6033 | P0145R2: Refining Expression Order for C++. | |
6034 | * c.opt (fargs-in-order): New. | |
6035 | * c-opts.c (c_common_post_options): Adjust flag_args_in_order. | |
6036 | ||
ef7cf206 JJ |
6037 | 2016-06-13 Jakub Jelinek <jakub@redhat.com> |
6038 | ||
0dda258b JJ |
6039 | PR sanitizer/71498 |
6040 | * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on | |
6041 | all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY. | |
6042 | ||
ef7cf206 JJ |
6043 | PR preprocessor/71183 |
6044 | * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch | |
6045 | to cb_get_source_date_epoch. | |
6046 | ||
50b15873 JJ |
6047 | 2016-06-10 Jakub Jelinek <jakub@redhat.com> |
6048 | ||
6049 | PR c/68657 | |
6050 | * c.opt (Wpsabi): Add Warning flag. | |
6051 | ||
4d926e34 MS |
6052 | 2016-06-10 Martin Sebor <msebor@redhat.com> |
6053 | ||
6054 | PR c/71392 | |
14ec014e | 6055 | * c-common.c (handle_nonnull_attribute): Accept |
4d926e34 MS |
6056 | the nonnull attribute in type-generic builtins. |
6057 | ||
e01b4e16 MS |
6058 | 2016-06-09 Martin Sebor <msebor@redhat.com> |
6059 | ||
6060 | PR c/70883 | |
6061 | * c-common.c (builtin_function_validate_nargs): Make text of error | |
6062 | message consistent with others like it. | |
6063 | ||
44a845ca MS |
6064 | 2016-06-08 Martin Sebor <msebor@redhat.com> |
6065 | Jakub Jelinek <jakub@redhat.com> | |
6066 | ||
6067 | PR c++/70507 | |
6068 | PR c/68120 | |
6069 | * c-common.c (check_builtin_function_arguments): Handle | |
6070 | BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P. | |
6071 | ||
a80a7051 RB |
6072 | 2016-06-08 Richard Biener <rguenther@suse.de> |
6073 | ||
6074 | * c-common.c (parse_optimize_options): Improve diagnostic messages. | |
6075 | ||
bfd67b47 RB |
6076 | 2016-06-07 Richard Biener <rguenther@suse.de> |
6077 | ||
6078 | PR c/61564 | |
6079 | * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION | |
6080 | options and warn about others. | |
6081 | ||
15c98b2e ES |
6082 | 2016-06-01 Eduard Sanou <dhole@openmailbox.org> |
6083 | ||
6084 | * c-common.c (get_source_date_epoch): Rename to | |
6085 | cb_get_source_date_epoch. | |
6086 | * c-common.c (cb_get_source_date_epoch): Use a single generic erorr | |
6087 | message when the parsing fails. Use error_at instead of fatal_error. | |
6088 | * c-common.h (get_source_date_epoch): Rename to | |
6089 | cb_get_source_date_epoch. | |
6090 | * c-common.h (cb_get_source_date_epoch): Prototype. | |
6091 | * c-common.h (MAX_SOURCE_DATE_EPOCH): Define. | |
6092 | * c-common.h (c_omp_region_type): Remove trailing comma. | |
6093 | * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback. | |
6094 | * c-lex.c (c_lex_with_flags): Remove initialization of | |
6095 | pfile->source_date_epoch. | |
6096 | ||
00631022 JJ |
6097 | 2016-05-30 Jakub Jelinek <jakub@redhat.com> |
6098 | ||
6099 | PR c++/71349 | |
6100 | * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to | |
6101 | C_OMP_CLAUSE_SPLIT_TARGET. Put OMP_CLAUSE_NOWAIT to | |
6102 | C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct, | |
6103 | instead of C_OMP_CLAUSE_SPLIT_FOR. | |
6104 | ||
f17a223d RB |
6105 | 2016-05-24 Richard Biener <rguenther@suse.de> |
6106 | ||
6107 | PR middle-end/70434 | |
6108 | PR c/69504 | |
6109 | * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ... | |
6110 | (convert_vector_to_array_for_subscript): ... this. | |
6111 | * c-common.c (convert_vector_to_pointer_for_subscript): Use a | |
6112 | VIEW_CONVERT_EXPR to an array type. Rename to ... | |
6113 | (convert_vector_to_array_for_subscript): ... this. | |
6114 | ||
4f2e1536 MP |
6115 | 2016-05-12 Marek Polacek <polacek@redhat.com> |
6116 | ||
6117 | PR c/70756 | |
6118 | * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of | |
6119 | size_in_bytes and pass LOC to it. | |
6120 | ||
d6e83a8d MM |
6121 | 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com> |
6122 | ||
6123 | PR c/43651 | |
6124 | * c.opt (Wduplicate-decl-specifier): New option. | |
6125 | ||
5c3a10fb MP |
6126 | 2016-05-11 Marek Polacek <polacek@redhat.com> |
6127 | ||
6128 | PR c++/71024 | |
6129 | * c-common.c (diagnose_mismatched_attributes): New function. | |
6130 | * c-common.h (diagnose_mismatched_attributes): Declare. | |
6131 | ||
deef7113 MP |
6132 | 2016-05-04 Marek Polacek <polacek@redhat.com> |
6133 | ||
6134 | * c.opt (Wdangling-else): New option. | |
6135 | ||
79ce98bc MP |
6136 | 2016-05-03 Marek Polacek <polacek@redhat.com> |
6137 | ||
6138 | PR c/70859 | |
6139 | * c-common.c (builtin_function_validate_nargs): Add location | |
6140 | parameter. Use it. | |
6141 | (check_builtin_function_arguments): Add location and arguments | |
6142 | parameters. Use them. | |
6143 | * c-common.h (check_builtin_function_arguments): Update declaration. | |
6144 | ||
381cdae4 RB |
6145 | 2016-05-03 Richard Biener <rguenther@suse.de> |
6146 | ||
6147 | * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not | |
6148 | allow call args to gimplify to SSA names. | |
6149 | ||
1d793c34 MP |
6150 | 2016-05-03 Marek Polacek <polacek@redhat.com> |
6151 | ||
6152 | * c-common.h (enum c_omp_region_type): Remove stray comma. | |
6153 | ||
77886428 CP |
6154 | 2016-05-02 Cesar Philippidis <cesar@codesourcery.com> |
6155 | ||
6156 | * c-common.h (enum c_omp_region_type): Define. | |
6157 | ||
697e0b28 RS |
6158 | 2016-05-02 Richard Sandiford <richard.sandiford@arm.com> |
6159 | ||
6160 | * c-common.c (shorten_compare): Use wi::to_wide. | |
6161 | ||
e7ff0319 CP |
6162 | 2016-04-29 Cesar Philippidis <cesar@codesourcery.com> |
6163 | ||
6164 | PR middle-end/70626 | |
6165 | * c-common.h (c_oacc_split_loop_clauses): Add boolean argument. | |
6166 | * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate | |
6167 | reduction clauses in acc parallel loops. | |
6168 | ||
2fff3db8 MP |
6169 | 2016-04-29 Marek Polacek <polacek@redhat.com> |
6170 | ||
6171 | PR c/70852 | |
6172 | * c-common.c (warn_for_memset): Check domain before accessing it. | |
6173 | ||
509063eb DV |
6174 | 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com> |
6175 | ||
6176 | PR/69089 | |
6177 | * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the | |
6178 | "aligned" attribute. | |
6179 | ||
b632761d JM |
6180 | 2016-04-28 Jason Merrill <jason@redhat.com> |
6181 | ||
6182 | * c-lex.c (c_common_has_attribute): Handle nodiscard. | |
6183 | ||
174f6622 ES |
6184 | 2016-04-28 Eduard Sanou <dhole@openmailbox.org> |
6185 | Matthias Klose <doko@debian.org> | |
6186 | ||
6187 | * c-common.c (get_source_date_epoch): New function, gets the environment | |
7365279f | 6188 | variable SOURCE_DATE_EPOCH and parses it as long long with error |
174f6622 ES |
6189 | handling. |
6190 | * c-common.h (get_source_date_epoch): Prototype. | |
6191 | * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch. | |
6192 | ||
6bc2bb18 RB |
6193 | 2015-04-27 Ryan Burn <contact@rnburn.com> |
6194 | ||
6195 | PR c++/69024 | |
6196 | PR c++/68997 | |
6197 | * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage. | |
6198 | (cilk_recognize_spawn): Renamed from recognize_spawn and change to | |
6199 | external linkage. | |
6200 | (cilk_detect_and_unwrap): Corresponding changes. | |
6201 | (extract_free_variables): Don't extract free variables from | |
6202 | AGGR_INIT_EXPR slot. | |
6203 | * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype. | |
6204 | (cilk_recognize_spawn): Likewise. | |
6205 | ||
c1e1f433 BS |
6206 | 2016-04-27 Bernd Schmidt <bschmidt@redhat.com> |
6207 | ||
6208 | * c.opt (Wmemset-elt-size): New option. | |
6209 | * c-common.c (warn_for_memset): New function. | |
6210 | * c-common.h (warn_for_memset): Declare. | |
6211 | ||
d067e05f JM |
6212 | 2016-04-25 Jason Merrill <jason@redhat.com> |
6213 | ||
6214 | * c-common.c (handle_unused_attribute): Accept CONST_DECL. | |
6215 | No longer static. | |
6216 | * c-common.h: Declare it. | |
6217 | * c-lex.c (c_common_has_attribute): Add maybe_unused. | |
6218 | ||
9aa36ae5 JM |
6219 | 2016-04-22 Jason Merrill <jason@redhat.com> |
6220 | ||
6221 | * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for. | |
6222 | ||
477d4906 IV |
6223 | 2016-04-20 Ilya Verbin <ilya.verbin@intel.com> |
6224 | ||
6225 | PR c++/69363 | |
6226 | * c-cilkplus.c (c_finish_cilk_clauses): Remove function. | |
6227 | * c-common.h (c_finish_cilk_clauses): Remove declaration. | |
6228 | ||
fe37c7af MM |
6229 | 2016-04-18 Michael Matz <matz@suse.de> |
6230 | ||
6231 | * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN | |
6232 | and SET_DECL_ALIGN. | |
6233 | ||
23f2660f EB |
6234 | 2016-04-17 Eric Botcazou <ebotcazou@adacore.com> |
6235 | ||
6236 | * c-ada-spec.c (get_underlying_decl): Return the typedef, if any. | |
6237 | (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access | |
6238 | to incomplete types. | |
6239 | (dump_nested_type): Remove redundant tests and tidy up. | |
6240 | (print_ada_declaration): Also set TREE_VISITED on the declaration of | |
6241 | a type which is the typedef of an original type. | |
6242 | ||
1e77281b MP |
6243 | 2016-04-15 Marek Polacek <polacek@redhat.com> |
6244 | ||
6245 | PR c/70651 | |
6246 | * c-common.c (build_va_arg): Change two asserts into errors and return | |
6247 | error_mark_node. | |
6248 | ||
b3a77f21 MP |
6249 | 2016-04-13 Marek Polacek <polacek@redhat.com> |
6250 | ||
6251 | PR c++/70639 | |
6252 | * c-indentation.c (should_warn_for_misleading_indentation): Bail out | |
6253 | for switch statements, too. | |
6254 | ||
322b8466 JM |
6255 | 2016-03-28 Jason Merrill <jason@redhat.com> |
6256 | ||
6257 | * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for. | |
6258 | ||
fbdb6baf MP |
6259 | 2016-03-23 Marek Polacek <polacek@redhat.com> |
6260 | ||
6261 | PR c++/69884 | |
6262 | * c.opt (Wignored-attributes): New option. | |
6263 | ||
5c240f4d DM |
6264 | 2016-03-22 David Malcolm <dmalcolm@redhat.com> |
6265 | ||
6266 | PR c/69993 | |
6267 | * c-indentation.c (warn_for_misleading_indentation): Rewrite the | |
6268 | diagnostic text, reversing the order of the warning and note so | |
6269 | that they appear in source order. | |
6270 | ||
14ba7b28 MP |
6271 | 2016-03-17 Marek Polacek <polacek@redhat.com> |
6272 | ||
6273 | PR c/69407 | |
6274 | * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch | |
6275 | operations. | |
6276 | ||
08a1cadc JM |
6277 | 2016-03-14 Jason Merrill <jason@redhat.com> |
6278 | ||
2aaeea19 JM |
6279 | * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float. |
6280 | ||
08a1cadc JM |
6281 | * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for. |
6282 | ||
c06d25bb RB |
6283 | 2016-03-09 Richard Biener <rguenther@suse.de> |
6284 | ||
6285 | PR c/70143 | |
6286 | * c-common.c (strict_aliasing_warning): Add back | |
6287 | alias_sets_conflict_p check. | |
6288 | ||
80aac5c8 JM |
6289 | 2016-03-08 Jason Merrill <jason@redhat.com> |
6290 | ||
6291 | * c-opts.c (set_std_cxx1z): Don't enable concepts. | |
6292 | ||
64b23c13 DM |
6293 | 2016-03-04 David Malcolm <dmalcolm@redhat.com> |
6294 | ||
6295 | PR c/68187 | |
6296 | * c-indentation.c (get_visual_column): Move code to determine next | |
6297 | tab stop to... | |
6298 | (next_tab_stop): ...this new function. | |
6299 | (line_contains_hash_if): Delete function. | |
6300 | (detect_preprocessor_logic): Delete function. | |
6301 | (get_first_nws_vis_column): New function. | |
6302 | (detect_intervening_unindent): New function. | |
6303 | (should_warn_for_misleading_indentation): Replace call to | |
6304 | detect_preprocessor_logic with a call to | |
6305 | detect_intervening_unindent. | |
6306 | ||
729526f5 DM |
6307 | 2016-03-04 David Malcolm <dmalcolm@redhat.com> |
6308 | ||
6309 | PR c/68187 | |
6310 | * c-indentation.c (should_warn_for_misleading_indentation): When | |
6311 | suppressing warnings about cases where the guard and body are on | |
6312 | the same column, only use the first non-whitespace column in place | |
6313 | of the guard token column when dealing with "else" clauses. | |
6314 | When rejecting aligned BODY and NEXT, loosen the requirement | |
6315 | from equality with the first non-whitespace of guard to simply | |
6316 | that they not be indented relative to it. | |
6317 | ||
e9a35493 RB |
6318 | 2016-03-04 Richard Biener <rguenther@suse.de> |
6319 | ||
6320 | PR c++/70054 | |
6321 | * c-common.c (strict_aliasing_warning): Use alias_set_subset_of | |
6322 | instead of alias_sets_conflict_p. | |
6323 | ||
1be56bc5 MP |
6324 | 2016-03-01 Marek Polacek <polacek@redhat.com> |
6325 | ||
6326 | PR c++/69795 | |
6327 | * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than | |
6328 | any DECL. | |
6329 | ||
35886f0b MS |
6330 | 2016-02-22 Martin Sebor <msebor@redhat.com> |
6331 | ||
6332 | PR middle-end/69780 | |
6333 | * c-common.c (check_builtin_function_arguments): Validate and | |
6334 | reject invalid arguments to __builtin_alloca_with_align. | |
6335 | ||
4246c8da MW |
6336 | 2016-02-20 Mark Wielaard <mjw@redhat.com> |
6337 | ||
6338 | PR c/28901 | |
6339 | * c.opt (Wunused-const-variable): Turn into Alias for... | |
6340 | (Wunused-const-variable=): New option. | |
6341 | ||
268be88c BE |
6342 | 2016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de> |
6343 | ||
6344 | PR c++/69865 | |
6345 | * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from | |
6346 | here... | |
6347 | (c_common_init_options): ...to here. | |
6348 | (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99. | |
6349 | ||
871b3f47 JJ |
6350 | 2016-02-19 Jakub Jelinek <jakub@redhat.com> |
6351 | ||
6352 | PR c++/69826 | |
6353 | * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE. | |
6354 | (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for | |
6355 | flag_preprocess_only. | |
6356 | ||
bf14eba2 JJ |
6357 | 2016-02-16 Jakub Jelinek <jakub@redhat.com> |
6358 | ||
6359 | PR c/69835 | |
6360 | * c.opt (Wnonnull-compare): Enable for -Wall. | |
6361 | ||
ba6b3795 JJ |
6362 | 2016-02-15 Jakub Jelinek <jakub@redhat.com> |
6363 | ||
6364 | PR c++/69797 | |
6365 | * c-common.c (sync_resolve_size): Diagnose too few arguments | |
6366 | even when params is non-NULL empty vector. | |
6367 | ||
a011cd92 BS |
6368 | 2016-02-08 Bernd Schmidt <bschmidt@redhat.com> |
6369 | ||
6370 | PR target/60410 | |
6371 | * c.opt (fshort-double): Remove. | |
6372 | ||
46cb9332 MS |
6373 | 2016-02-05 Martin Sebor <msebor@redhat.com> |
6374 | ||
6375 | PR c++/69662 | |
6376 | * c.opt (Warning options): Update -Wplacement-new to take | |
6377 | an optional argument. | |
6378 | ||
e1b81f2b JJ |
6379 | 2016-02-01 Jakub Jelinek <jakub@redhat.com> |
6380 | ||
6381 | PR preprocessor/69543 | |
6382 | PR c/69558 | |
6383 | * c-pragma.c (handle_pragma_diagnostic): Pass input_location | |
6384 | instead of loc to control_warning_option. | |
6385 | ||
b6adbb9f NS |
6386 | 2016-02-01 Nathan Sidwell <nathan@codesourcery.com> |
6387 | ||
6388 | * c.opt (fopenacc-dim=): New option. | |
6389 | ||
5d70666e RB |
6390 | 2016-01-27 Ryan Burn <contact@rnburn.com> |
6391 | ||
6392 | PR cilkplus/69267 | |
6393 | * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use | |
6394 | gimplify_arg. Removed superfluous post_p argument. | |
6395 | * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed | |
6396 | superfluous post_p argument. | |
6397 | * c-gimplify.c (c_gimplify_expr): Likewise. | |
6398 | ||
01e1dea3 DM |
6399 | 2016-01-26 David Malcolm <dmalcolm@redhat.com> |
6400 | ||
6401 | PR other/69006 | |
6402 | * c-opts.c (c_diagnostic_finalizer): Replace invocation of | |
6403 | pp_newline_and_flush with pp_flush. | |
6404 | ||
9f04a53e MS |
6405 | 2016-01-20 Martin Sebor <msebor@redhat.com> |
6406 | ||
6407 | PR c/69405 | |
6408 | * c-common.c (sync_resolve_size): Avoid printing diagnostic about | |
6409 | an incompatible argument when the argument isn't a valid tree node. | |
6410 | ||
7f26f7df JM |
6411 | 2016-01-18 Jason Merrill <jason@redhat.com> |
6412 | ||
6413 | PR c++/68767 | |
6414 | * c-common.c (check_function_arguments_recurse): Fold the whole | |
6415 | COND_EXPR, not just the condition. | |
6416 | ||
f62bf092 TV |
6417 | 2016-01-18 Tom de Vries <tom@codesourcery.com> |
6418 | ||
6419 | * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION, | |
6420 | classify as loop clause. | |
6421 | ||
e0a575ff JJ |
6422 | 2016-01-15 Jakub Jelinek <jakub@redhat.com> |
6423 | ||
6424 | PR bootstrap/68271 | |
6425 | * c-pragma.c (c_register_pragma_1): Adjust comment to note that | |
6426 | C++ FE no longer has limit on number of pragmas. | |
6427 | ||
6428 | 2015-01-14 Ryan Burn <contact@rnburn.com> | |
b6e3db06 RB |
6429 | |
6430 | PR c++/69048 | |
6431 | * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr | |
c47eaca6 | 6432 | to add missing cleanup point. |
b6e3db06 | 6433 | |
c7df95d8 DM |
6434 | 2016-01-14 David Malcolm <dmalcolm@redhat.com> |
6435 | ||
6436 | PR c++/68819 | |
6437 | * c-indentation.c (get_visual_column): Add location_t param. | |
6438 | Handle the column number being zero by effectively disabling the | |
6439 | warning, with an "inform". | |
6440 | (should_warn_for_misleading_indentation): Add location_t argument | |
6441 | for all uses of get_visual_column. | |
6442 | ||
21efdd80 PP |
6443 | 2016-01-10 Patrick Palka <ppalka@gcc.gnu.org> |
6444 | ||
6445 | PR c++/69029 | |
6446 | * c-indentation.c (should_warn_for_misleading_indentation): | |
6447 | Don't warn about do-while statements. | |
6448 | ||
7a127fa7 MS |
6449 | 2016-01-07 Martin Sebor <msebor@redhat.com> |
6450 | ||
6451 | PR c/68966 | |
6452 | * c-common.c (sync_resolve_size): Reject first argument when it's | |
6453 | a pointer to _Bool. | |
6454 | ||
c589e975 DM |
6455 | 2016-01-05 David Malcolm <dmalcolm@redhat.com> |
6456 | ||
6457 | PR c/69122 | |
6458 | * c-indentation.c (get_visual_column): Remove default argument. | |
6459 | (should_warn_for_misleading_indentation): For the multiline case, | |
6460 | update call to get_visual_column for next_stmt_exploc so that it | |
6461 | captures the location of the first non-whitespace character in the | |
6462 | relevant line. Don't issue warnings if there is non-whitespace | |
6463 | before the next statement. | |
6464 | ||
818ab71a JJ |
6465 | 2016-01-04 Jakub Jelinek <jakub@redhat.com> |
6466 | ||
6467 | Update copyright years. | |
6468 | ||
745e411d DM |
6469 | 2015-12-21 David Malcolm <dmalcolm@redhat.com> |
6470 | ||
6471 | * c-common.c (binary_op_error): Convert first param from | |
6472 | location_t to rich_location * and use it when emitting an error. | |
6473 | * c-common.h (binary_op_error): Convert first param from | |
6474 | location_t to rich_location *. | |
6475 | ||
de67c4c3 DM |
6476 | 2015-12-16 David Malcolm <dmalcolm@redhat.com> |
6477 | ||
6478 | * c-common.h (conflict_marker_get_final_tok_kind): New prototype. | |
6479 | * c-lex.c (conflict_marker_get_final_tok_kind): New function. | |
6480 | ||
4a38b02b IV |
6481 | 2015-12-15 Ilya Verbin <ilya.verbin@intel.com> |
6482 | ||
6483 | * c-common.c (c_common_attribute_table): Handle "omp declare target | |
6484 | link" attribute. | |
6485 | ||
54d62f51 JJ |
6486 | 2015-12-14 Jakub Jelinek <jakub@redhat.com> |
6487 | ||
6488 | PR c/68833 | |
6489 | * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option. | |
6490 | ||
8d4227c8 TB |
6491 | 2014-12-12 Tobias Burnus <burnus@net-b.de> |
6492 | ||
6493 | PR fortran/68815 | |
6494 | * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining | |
6495 | specifiers (%d, %i,%u and %c). | |
6496 | ||
f6069ccc DM |
6497 | 2015-12-10 David Malcolm <dmalcolm@redhat.com> |
6498 | ||
6499 | * c.opt (Wmisleading-indentation): Add to -Wall for C and C++. | |
6500 | ||
63bbf46d JJ |
6501 | 2015-12-08 Jakub Jelinek <jakub@redhat.com> |
6502 | ||
6503 | PR c/48088 | |
6504 | PR c/68657 | |
6505 | * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning. | |
6506 | * c-pragma.c (handle_pragma_diagnostic): Adjust | |
6507 | control_warning_option caller. | |
6508 | ||
f79520bb DM |
6509 | 2015-12-07 David Malcolm <dmalcolm@redhat.com> |
6510 | ||
6511 | * c-common.c (c_cpp_error): Update for change to | |
6512 | rich_location::set_range. | |
6513 | ||
b3d5bc62 JJ |
6514 | 2015-12-04 Paolo Bonzini <bonzini@gnu.org> |
6515 | ||
6516 | * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if | |
6517 | shifting 1 out of the sign bit. | |
6518 | ||
6519 | 2015-12-04 Kirill Yukhin <kirill.yukhin@intel.com> | |
6520 | ||
6521 | * c-common.c (c_common_attribute_table[]): Update max arguments | |
6522 | count for "simd" attribute. | |
6523 | (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments. | |
6524 | ||
6eb4a537 JJ |
6525 | 2015-12-03 Jakub Jelinek <jakub@redhat.com> |
6526 | ||
6527 | PR preprocessor/57580 | |
6528 | * c-ppoutput.c (print): Change printed field to bool. | |
6529 | Move src_file last for smaller padding. | |
6530 | (init_pp_output): Set print.printed to false instead of 0. | |
6531 | (scan_translation_unit): Fix up formatting. Set print.printed | |
6532 | to true after printing something other than newline. | |
6533 | (scan_translation_unit_trad): Set print.printed to true instead of 1. | |
6534 | (maybe_print_line_1): Set print.printed to false instead of 0. | |
6535 | (print_line_1): Likewise. | |
6536 | (do_line_change): Set print.printed to true instead of 1. | |
6537 | (cb_define, dump_queued_macros, cb_include, cb_def_pragma, | |
6538 | dump_macro): Set print.printed to false after printing newline. | |
6539 | ||
4250754e JM |
6540 | 2015-12-02 Jason Merrill <jason@redhat.com> |
6541 | ||
f479b43d JM |
6542 | * c-common.c (fold_for_warn): New. |
6543 | (warn_logical_operator, warn_tautological_cmp) | |
6544 | (check_function_arguments_recurse, maybe_warn_bool_compare): Use it. | |
6545 | ||
4250754e JM |
6546 | * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold) |
6547 | (c_fully_fold_internal, decl_constant_value_for_optimization): | |
6548 | Move to c/c-fold.c. | |
6549 | * c-common.h: Don't declare decl_constant_value_for_optimization. | |
6550 | ||
e9e32ee6 JM |
6551 | 2015-12-02 Joseph Myers <joseph@codesourcery.com> |
6552 | ||
6553 | PR c/68162 | |
6554 | * c-common.h (c_build_qualified_type): Add extra default | |
6555 | arguments. | |
6556 | ||
37d5ad46 JB |
6557 | 2015-12-01 Julian Brown <julian@codesourcery.com> |
6558 | Cesar Philippidis <cesar@codesourcery.com> | |
6559 | James Norris <James_Norris@mentor.com> | |
6560 | ||
6561 | * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA. | |
6562 | * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA. | |
6563 | (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE. | |
6564 | ||
f07862c7 EB |
6565 | 2015-11-30 Eric Botcazou <ebotcazou@adacore.com> |
6566 | ||
6567 | * c-ada-spec.c (print_ada_macros): Remove redundant blank line. | |
6568 | (decl_sloc_common): Delete and move bulk of processing to... | |
6569 | (decl_sloc): ...here. | |
6570 | (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE. | |
6571 | (dump_ada_double_name): Remove S parameter and compute the suffix. | |
6572 | (dump_ada_array_type): Add PARENT parameter. Simplify computation of | |
6573 | element type and deal with an anonymous one. | |
6574 | (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro. | |
6575 | (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type | |
6576 | and remove reference to QUAL_UNION_TYPE. | |
6577 | (dump_nested_types): Make 2 passes on the fields and move bulk to... | |
6578 | (dump_nested_type): ...here. New function extracted from above. | |
6579 | Generate a full declaration for anonymous element type of arrays. | |
6580 | (print_ada_declaration): Really skip anonymous declarations. Remove | |
6581 | references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type. | |
6582 | Clean up processing of declarations of array types and objects. | |
6583 | (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE. | |
6584 | Remove obsolete code and tidy up. | |
6585 | ||
75c8aac3 JH |
6586 | 2015-11-29 Jan Hubicka <hubicka@ucw.cz> |
6587 | ||
6588 | PR c/67581 | |
6589 | * c-common.c (handle_transparent_union_attribute): Update | |
6590 | also type variants. | |
6591 | ||
b58d3df2 ML |
6592 | 2015-11-27 Martin Liska <mliska@suse.cz> |
6593 | ||
6594 | PR c++/68312 | |
6595 | * array-notation-common.c (cilkplus_extract_an_triplets): | |
6596 | Release vector of vectors. | |
6597 | * cilk.c (gimplify_cilk_spawn): Free allocated memory. | |
6598 | ||
89a01fcf EB |
6599 | 2015-11-26 Eric Botcazou <ebotcazou@adacore.com> |
6600 | ||
6601 | PR c++/68527 | |
6602 | * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node. | |
6603 | (print_ada_struct_decl): Likewise. | |
6604 | ||
cc5c5226 IZ |
6605 | 2015-11-23 Igor Zamyatin <igor.zamyatin@intel.com> |
6606 | ||
6607 | PR c++/68001 | |
6608 | * c-gimplify.c (c_gimplify_expr): Stop the process if see an error. | |
6609 | * cilk.c (recognize_spawn): Determine location in a more precise | |
6610 | way. | |
6611 | ||
269adb9d JM |
6612 | 2015-11-19 Jason Merrill <jason@redhat.com> |
6613 | ||
6614 | * c-common.c (shorten_compare): But look through macros from | |
6615 | system headers. | |
6616 | ||
d0eccfcd JM |
6617 | 2015-11-18 Jason Merrill <jason@redhat.com> |
6618 | ||
6619 | * c-common.c (shorten_compare): Don't -Wtype-limits if the | |
6620 | non-constant operand comes from a macro. | |
6621 | ||
3e44547c JM |
6622 | 2015-11-17 Jason Merrill <jason@redhat.com> |
6623 | ||
6624 | PR bootstrap/68346 | |
6625 | * c-common.c (warn_tautological_cmp): Fold before checking for | |
6626 | constants. | |
6627 | ||
0f62c7a0 MP |
6628 | 2015-11-16 Marek Polacek <polacek@redhat.com> |
6629 | ||
6630 | PR c++/68362 | |
6631 | * c-common.c (check_case_bounds): Fold low and high cases. | |
6632 | ||
a868811e MP |
6633 | 2015-11-16 Marek Polacek <polacek@redhat.com> |
6634 | ||
6635 | * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P. | |
6636 | * c-common.c (c_common_get_alias_set): Likewise. | |
6637 | (handle_visibility_attribute): Likewise. | |
6638 | ||
fff77217 KY |
6639 | 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com> |
6640 | ||
6641 | * c-common.c (handle_simd_attribute): New. | |
6642 | (struct attribute_spec): Add entry for "simd". | |
6643 | (handle_simd_attribute): New. | |
6644 | ||
269e63b7 KT |
6645 | 2015-11-13 Kai Tietz <ktietz70@googlemail.com> |
6646 | ||
6647 | * c-lex.c (interpret_float): Use fold_convert. | |
6648 | ||
ebedc9a3 DM |
6649 | 2015-11-13 David Malcolm <dmalcolm@redhat.com> |
6650 | ||
6651 | * c-common.c (c_fully_fold_internal): Capture existing souce_range, | |
6652 | and store it on the result. | |
6653 | * c-opts.c (c_common_init_options): Set | |
6654 | global_dc->colorize_source_p. | |
6655 | ||
6e232ba4 JN |
6656 | 2015-11-12 James Norris <jnorris@codesourcery.com> |
6657 | Joseph Myers <joseph@codesourcery.com> | |
6658 | ||
7365279f | 6659 | * c-pragma.c (oacc_pragmas): Add entry for declare directive. |
6e232ba4 JN |
6660 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE. |
6661 | (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and | |
6662 | PRAGMA_OACC_CLAUSE_LINK. | |
6663 | ||
e78bede6 MP |
6664 | 2015-11-11 Marek Polacek <polacek@redhat.com> |
6665 | ||
6666 | PR c/68107 | |
6667 | PR c++/68266 | |
6668 | * c-common.c (valid_array_size_p): New function. | |
6669 | * c-common.h (valid_array_size_p): Declare. | |
6670 | ||
3f8257db | 6671 | 2015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr> |
4ac93c7c DH |
6672 | |
6673 | PR bootstrap/68271 | |
6674 | * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256. | |
6675 | ||
69f293c9 AM |
6676 | 2015-11-11 Andrew MacLeod <amacleod@redhat.com> |
6677 | ||
6678 | * array-notation-common.c: Remove unused header files. | |
6679 | * c-ada-spec.c: Likewise. | |
6680 | * c-cilkplus.c: Likewise. | |
6681 | * c-common.c: Likewise. | |
6682 | * c-cppbuiltin.c: Likewise. | |
6683 | * c-dump.c: Likewise. | |
6684 | * c-format.c: Likewise. | |
6685 | * c-gimplify.c: Likewise. | |
6686 | * c-indentation.c: Likewise. | |
6687 | * c-lex.c: Likewise. | |
6688 | * c-omp.c: Likewise. | |
6689 | * c-opts.c: Likewise. | |
6690 | * c-pch.c: Likewise. | |
6691 | * c-ppoutput.c: Likewise. | |
6692 | * c-pragma.c: Likewise. | |
6693 | * c-pretty-print.c: Likewise. | |
6694 | * c-semantics.c: Likewise. | |
6695 | * c-ubsan.c: Likewise. | |
6696 | * cilk.c: Likewise. | |
6697 | * stub-objc.c: Likewise. | |
6698 | ||
3a40d81d NS |
6699 | 2015-11-09 Thomas Schwinge <thomas@codesourcery.com> |
6700 | Cesar Philippidis <cesar@codesourcery.com> | |
6701 | James Norris <jnorris@codesourcery.com> | |
6702 | Julian Brown <julian@codesourcery.com> | |
6703 | Nathan Sidwell <nathan@codesourcery.com> | |
6704 | ||
6705 | * c-pragma.c (oacc_pragmas): Add "routine". | |
6706 | * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE. | |
6707 | ||
ee45a32d EB |
6708 | 2015-11-08 Eric Botcazou <ebotcazou@adacore.com> |
6709 | ||
6710 | * c-common.c (c_common_attributes): Add scalar_storage_order. | |
6711 | (handle_scalar_storage_order_attribute): New function. | |
6712 | * c-pragma.c (global_sso): New variable. | |
6713 | (maybe_apply_pragma_scalar_storage_order): New function. | |
6714 | (handle_pragma_scalar_storage_order): Likewise. | |
6715 | (init_pragma): Register scalar_storage_order. | |
6716 | * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare. | |
6717 | * c.opt (Wscalar-storage-order): New warning. | |
6718 | (fsso-struct=): New option. | |
6719 | ||
eb11eb15 MS |
6720 | 2015-11-08 Martin Sebor <msebor@redhat.com> |
6721 | ||
6722 | * c.opt (Wplacement-new): Add a period to the end of a sentence. | |
6723 | ||
0aad0198 RS |
6724 | 2015-11-07 Richard Sandiford <richard.sandiford@arm.com> |
6725 | ||
6726 | * c-common.c: Don't undef DEF_BUILTIN. | |
6727 | ||
8a645150 DM |
6728 | 2015-11-06 David Malcolm <dmalcolm@redhat.com> |
6729 | ||
6730 | * c-common.c (c_cpp_error): Convert parameter from location_t to | |
6731 | rich_location *. Eliminate the "column_override" parameter and | |
6732 | the call to diagnostic_override_column. | |
6733 | Update the "done_lexing" clause to set range 0 | |
6734 | on the rich_location, rather than overwriting a location_t. | |
6735 | * c-common.h (c_cpp_error): Convert parameter from location_t to | |
6736 | rich_location *. Eliminate the "column_override" parameter. | |
6737 | ||
7a5e4956 CP |
6738 | 2015-11-05 Cesar Philippidis <cesar@codesourcery.com> |
6739 | Thomas Schwinge <thomas@codesourcery.com> | |
6740 | James Norris <jnorris@codesourcery.com> | |
6741 | ||
6742 | * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR, | |
6743 | AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION | |
6744 | clauses with parallel and kernels and loops. | |
6745 | * c-pragma.h (enum pragma_omp_clause): Add entries for | |
6746 | PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}. | |
6747 | * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS, | |
6748 | NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO, | |
6749 | INDEPENDENT,SEQ}. | |
6750 | (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}. | |
6751 | ||
e2f5cc96 MS |
6752 | 2015-11-05 Martin Sebor <msebor@redhat.com> |
6753 | ||
6754 | PR c++/67942 | |
6755 | * c.opt (-Wplacement-new): New option. | |
6756 | ||
e01d41e5 JJ |
6757 | 2015-11-05 Jakub Jelinek <jakub@redhat.com> |
6758 | ||
6759 | * c-common.h (c_finish_omp_atomic): Add TEST argument. | |
6760 | (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes. | |
6761 | * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call | |
6762 | save_expr or create_tmp_var* if TEST is true. | |
6763 | (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always. | |
6764 | Don't call add_stmt here. | |
6765 | (struct c_omp_check_loop_iv_data): New type. | |
6766 | (c_omp_check_loop_iv_r, c_omp_check_loop_iv, | |
6767 | c_omp_check_loop_iv_exprs): New functions. | |
6768 | (c_omp_split_clauses): Adjust for lastprivate being allowed on | |
6769 | distribute. | |
6770 | (c_omp_declare_simd_clauses_to_numbers): Change | |
6771 | OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers. | |
6772 | (c_omp_declare_simd_clauses_to_decls): Similarly change those | |
6773 | from numbers to PARM_DECLs. | |
6774 | ||
595278be MM |
6775 | 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com> |
6776 | ||
6777 | * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use | |
6778 | flag_checking. | |
6779 | ||
3f8257db | 6780 | 2015-11-03 Bernd Schmidt <bschmidt@redhat.com> |
c85158de MS |
6781 | |
6782 | PR c++-common/67882 | |
b3d5bc62 JJ |
6783 | * c-common.h (fold_offsetof_1): Add argument. |
6784 | * c-common.c (fold_offsetof_1): Diagnose more invalid | |
c85158de MS |
6785 | offsetof expressions that reference elements past the end of |
6786 | an array. | |
6787 | ||
4bf9e5a8 TS |
6788 | 2015-11-03 Thomas Schwinge <thomas@codesourcery.com> |
6789 | Chung-Lin Tang <cltang@codesourcery.com> | |
6790 | ||
6791 | * c-pragma.c (oacc_pragmas): Add "atomic". | |
6792 | * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC. | |
6793 | ||
3b1661a9 ES |
6794 | 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com> |
6795 | ||
6796 | * c-common.c (handle_target_clones_attribute): New. | |
6797 | (c_common_attribute_table): Add handle_target_clones_attribute. | |
6798 | (handle_always_inline_attribute): Add check on target_clones attribute. | |
6799 | (handle_target_attribute): Ditto. | |
6800 | ||
2adfab87 AM |
6801 | 2015-10-29 Andrew MacLeod <amacleod@redhat.com> |
6802 | ||
6803 | * array-notation-common.c: Reorder #include's and remove duplicates. | |
6804 | * c-ada-spec.c: Likewise. | |
6805 | * c-cilkplus.c: Likewise. | |
6806 | * c-common.c: Likewise. | |
6807 | * c-cppbuiltin.c: Likewise. | |
6808 | * c-dump.c: Likewise. | |
6809 | * c-format.c: Likewise. | |
6810 | * c-gimplify.c: Likewise. | |
6811 | * c-indentation.c: Likewise. | |
6812 | * c-lex.c: Likewise. | |
6813 | * c-omp.c: Likewise. | |
6814 | * c-opts.c: Likewise. | |
6815 | * c-pch.c: Likewise. | |
6816 | * c-ppoutput.c: Likewise. | |
6817 | * c-pragma.c: Likewise. | |
6818 | * c-pretty-print.c: Likewise. | |
6819 | * c-semantics.c: Likewise. | |
6820 | * c-ubsan.c: Likewise. | |
6821 | * cilk.c: Likewise. | |
6822 | * stub-objc.c: Likewise. | |
6823 | ||
d90ec4f2 JM |
6824 | 2015-10-28 Jason Merrill <jason@redhat.com> |
6825 | ||
6826 | * c-common.c (pointer_int_sum): Fold the MULT_EXPR. | |
6827 | ||
88bae6f4 TS |
6828 | 2015-10-27 Thomas Schwinge <thomas@codesourcery.com> |
6829 | James Norris <jnorris@codesourcery.com> | |
6830 | Cesar Philippidis <cesar@codesourcery.com> | |
6831 | ||
6832 | PR c/64765 | |
6833 | PR c/64880 | |
6834 | * c-common.h (c_oacc_split_loop_clauses): Declare function. | |
6835 | * c-omp.c (c_oacc_split_loop_clauses): New function. | |
6836 | ||
b1726d6c MS |
6837 | 2015-10-21 Martin Sebor <msebor@redhat.com> |
6838 | ||
6839 | PR driver/68043 | |
6840 | * c.opt: End each sentence that describes an option with a period. | |
6841 | ||
fa60eeb9 MP |
6842 | 2015-10-20 Marek Polacek <polacek@redhat.com> |
6843 | ||
6844 | * array-notation-common.c (is_cilkplus_vector_p): Define. | |
6845 | * c-common.h (is_cilkplus_vector_p): Declare. | |
6846 | ||
95979049 MP |
6847 | 2015-10-20 Marek Polacek <polacek@redhat.com> |
6848 | ||
6849 | * c.opt (std=gnu++11): Do not describe as experimental. | |
6850 | (std=gnu++14): Likewise. | |
6851 | ||
2a9fb712 JM |
6852 | 2015-10-19 Jason Merrill <jason@redhat.com> |
6853 | ||
6854 | * c-cppbuiltin.c (c_cpp_builtins): Define | |
6855 | __cpp_nontype_template_args. | |
6856 | ||
13b380a3 JM |
6857 | 2015-10-19 Jason Merrill <jason@redhat.com> |
6858 | ||
6859 | * c-cppbuiltin.c (c_cpp_builtins): Define | |
6860 | __cpp_enumerator_attributes, __cpp_fold_expressions, | |
6861 | __cpp_unicode_characters. | |
6862 | ||
d9a6bd32 JJ |
6863 | 2015-10-13 Jakub Jelinek <jakub@redhat.com> |
6864 | Aldy Hernandez <aldyh@redhat.com> | |
6865 | ||
6866 | * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9, | |
6867 | DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11. | |
6868 | (c_define_builtins): Likewise. | |
6869 | * c-common.h (enum c_omp_clause_split): Add | |
6870 | C_OMP_CLAUSE_SPLIT_TASKLOOP. | |
6871 | (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument. | |
6872 | (c_finish_omp_for): Add ORIG_DECLV argument. | |
6873 | * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as | |
6874 | 201511 instead of 201307. | |
6875 | * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set | |
6876 | OMP_CRITICAL_CLAUSES to it. | |
6877 | (c_finish_omp_ordered): Add CLAUSES argument, set | |
6878 | OMP_ORDERED_CLAUSES to it. | |
6879 | (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS | |
6880 | to it if OMP_FOR. Clear DECL_INITIAL on the IVs. | |
6881 | (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite | |
6882 | constructs and new OpenMP 4.5 clauses. Clear | |
6883 | OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add | |
6884 | verification code. | |
6885 | * c-pragma.c (omp_pragmas_simd): Add taskloop. | |
6886 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP. | |
6887 | (enum pragma_omp_clause): Add | |
6888 | PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR} | |
6889 | and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}. | |
6890 | ||
624d31fe RS |
6891 | 2015-10-05 Richard Sandiford <richard.sandiford@arm.com> |
6892 | ||
6893 | * c-lex.c (interpret_float): Use real_equal instead of | |
6894 | REAL_VALUES_EQUAL. | |
6895 | ||
b8fd7909 JM |
6896 | 2015-10-04 Jason Merrill <jason@redhat.com> |
6897 | ||
6898 | Implement N4514, C++ Extensions for Transactional Memory. | |
6899 | * c-common.c (c_common_reswords): Add C++ TM TS keywords. | |
6900 | (c_common_attribute_table): Add transaction_safe_dynamic. | |
6901 | transaction_safe now affects type identity. | |
6902 | (handle_tm_attribute): Handle transaction_safe_dynamic. | |
6903 | * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT, | |
6904 | RID_ATOMIC_CANCEL, RID_SYNCHRONIZED. | |
6905 | (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED. | |
6906 | (D_TRANSMEM): New. | |
6907 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory. | |
6908 | * c-pretty-print.c (pp_c_attributes_display): Don't print | |
6909 | transaction_safe in C++. | |
6910 | ||
12651878 MP |
6911 | 2015-10-02 Marek Polacek <polacek@redhat.com> |
6912 | ||
6913 | * c.opt (Wduplicated-cond): Don't enable by -Wall anymore. | |
6914 | ||
3e3b8d63 MP |
6915 | 2015-10-02 Marek Polacek <polacek@redhat.com> |
6916 | ||
6917 | PR c/64249 | |
6918 | * c-common.c (warn_duplicated_cond_add_or_warn): New function. | |
6919 | * c-common.h (warn_duplicated_cond_add_or_warn): Declare. | |
6920 | * c.opt (Wduplicated-cond): New option. | |
6921 | ||
0d1a8f75 JM |
6922 | 2015-10-01 Joseph Myers <joseph@codesourcery.com> |
6923 | ||
6924 | * c.opt (std=c11): Do not describe as experimental. | |
6925 | (std=gnu11): Likewise. | |
6926 | (std=iso9899:2011): Likewise. | |
6927 | ||
3e32ee19 NS |
6928 | 2015-09-28 Nathan Sidwell <nathan@codesourcery.com> |
6929 | ||
6930 | * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New. | |
6931 | (DEF_FUNCTION_TYPE_VAR_11): Delete. | |
6932 | ||
974348ee MP |
6933 | 2015-09-25 Marek Polacek <polacek@redhat.com> |
6934 | ||
6935 | * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code. | |
6936 | (ubsan_instrument_shift): Likewise. | |
6937 | ||
15dbc1a6 MP |
6938 | 2015-09-25 Marek Polacek <polacek@redhat.com> |
6939 | ||
6940 | PR sanitizer/64906 | |
6941 | * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1. | |
6942 | ||
6b95d7cc PP |
6943 | 2015-09-24 Patrick Palka <ppalka@gcc.gnu.org> |
6944 | ||
6945 | * c-indentation.c (should_warn_for_misleading_indentation): | |
6946 | Compare next_stmt_vis_column with guard_line_first_nws instead | |
6947 | of with guard_line_vis_column. | |
6948 | ||
c1822f9c MLI |
6949 | 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org> |
6950 | ||
6951 | PR c/49654 | |
6952 | PR c/49655 | |
6953 | * c-pragma.c (handle_pragma_diagnostic): Detect non-warning | |
6954 | options and options not valid for the current language. | |
6955 | ||
d5398058 PP |
6956 | 2015-09-22 Patrick Palka <ppalka@gcc.gnu.org> |
6957 | ||
6958 | * c-indentation.c (should_warn_for_misleading_indentation): | |
6959 | Float out and consolidate the calls to get_visual_column that | |
6960 | are passed guard_exploc as an argument. Compare | |
6961 | next_stmt_vis_column with guard_line_first_nws instead of with | |
6962 | body_line_first_nws. | |
6963 | ||
6b333269 NS |
6964 | 2015-09-22 Nathan Sidwell <nathan@codesourcery.com> |
6965 | ||
6966 | * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates, | |
6967 | Wnamespaces): New C++ warnings. | |
6968 | ||
a75f1574 JM |
6969 | 2015-09-22 Jason Merrill <jason@redhat.com> |
6970 | ||
6971 | * c-common.h (abi_compat_version_crosses): New. | |
6972 | (warn_abi_version): Declare. | |
6973 | * c-common.c: Define it. | |
6974 | * c-opts.c (c_common_post_options): Handle it. | |
6975 | flag_abi_compat_version defaults to 8. | |
6976 | ||
bdaaa8b7 VV |
6977 | 2015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com> |
6978 | ||
6979 | Complete the implementation of N4230, Nested namespace definition. | |
6980 | * c-cppbuiltin.c: Add __cpp_namespace_attributes and | |
6981 | __cpp_nested_namespace_definitions. | |
6982 | ||
eaa797e8 MLI |
6983 | 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org> |
6984 | ||
6985 | * c-pragma.c (handle_pragma_diagnostic): Fix wrong return. | |
6986 | ||
c4914de6 MLI |
6987 | 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org> |
6988 | ||
6989 | * c-pragma.c (handle_pragma_diagnostic): Use explicit location | |
6990 | when warning. | |
6991 | * c-pragma.h (pragma_lex): Add optional loc argument. | |
6992 | ||
fcb87c50 MM |
6993 | 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com> |
6994 | ||
6995 | * c-format.c (check_format_arg): Adjust to use common block size in all | |
6996 | object pools. | |
6997 | ||
31bdd08a DM |
6998 | 2015-09-15 David Malcolm <dmalcolm@redhat.com> |
6999 | ||
7000 | * c-format.c (location_from_offset): Update for change in | |
7001 | signature of location_get_source_line. | |
7002 | * c-indentation.c (get_visual_column): Likewise. | |
7003 | (line_contains_hash_if): Likewise. | |
7004 | ||
aa9f4b4c MP |
7005 | 2015-09-14 Marek Polacek <polacek@redhat.com> |
7006 | ||
7007 | * c-opts.c (c_common_post_options): Set C++ standard earlier, before | |
7008 | setting various warnings. | |
7009 | ||
aa256c4a MP |
7010 | 2015-09-14 Marek Polacek <polacek@redhat.com> |
7011 | ||
7012 | * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting | |
7013 | a negative value. | |
7014 | ||
0f876f22 MW |
7015 | 2015-09-11 Mark Wielaard <mjw@redhat.com> |
7016 | ||
7017 | PR c/28901 | |
7018 | * c.opt (Wunused-variable): Option from common.opt. | |
7019 | (Wunused-const-variable): New option. | |
7020 | ||
273aa49e PC |
7021 | 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com> |
7022 | ||
7023 | PR c++/53184 | |
7024 | * c.opt ([Wsubobject-linkage]): Add. | |
7025 | ||
1807ffc1 MS |
7026 | 2015-09-03 Martin Sebor <msebor@redhat.com> |
7027 | ||
7028 | PR c/66516 | |
7029 | * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new | |
7030 | functions. | |
7031 | * c-common.c (reject_gcc_builtin): Define. | |
7032 | ||
38942840 BI |
7033 | 2015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com> |
7034 | ||
7035 | PR middle-end/60586 | |
7036 | * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New | |
7037 | prototype. | |
7038 | * c-gimplify.c (c_gimplify_expr): Added a call to the function | |
7039 | cilk_gimplify_call_params_in_spawned_fn. | |
7040 | * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function. | |
7041 | (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR | |
7042 | unwrapping. | |
7043 | ||
c316b5e4 MP |
7044 | 2015-08-25 Marek Polacek <polacek@redhat.com> |
7045 | ||
7046 | PR middle-end/67330 | |
7047 | * c-common.c (handle_weak_attribute): Don't check whether the | |
7048 | visibility can be changed here. | |
7049 | ||
584a7c46 MLI |
7050 | 2015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org> |
7051 | ||
7052 | * c-lex.c (c_lex_with_flags): Use explicit locations. | |
7053 | ||
a79683d5 TS |
7054 | 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org> |
7055 | ||
7056 | * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h, | |
7057 | c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless | |
7058 | ||
61717a45 FXC |
7059 | 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> |
7060 | ||
7061 | PR middle-end/36757 | |
7062 | * c-common.c (check_builtin_function_arguments): Add check | |
7063 | for BUILT_IN_SIGNBIT argument. | |
7064 | ||
329524f5 PC |
7065 | 2015-08-18 Paolo Carlini <paolo.carlini@oracle.com> |
7066 | ||
7067 | PR c++/67160 | |
7068 | * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value | |
7069 | in c++1z mode. | |
7070 | ||
4ee55665 MP |
7071 | 2015-08-17 Marek Polacek <polacek@redhat.com> |
7072 | ||
7073 | * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing | |
7074 | with whitespaces before qualifier names. | |
7075 | ||
b893e375 MP |
7076 | 2015-08-12 Marek Polacek <polacek@redhat.com> |
7077 | ||
7078 | PR c++/55095 | |
7079 | * c-common.c (maybe_warn_shift_overflow): Properly handle | |
7080 | left-shifting 1 into the sign bit. | |
7081 | ||
c2d89095 MLI |
7082 | 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org> |
7083 | ||
7084 | * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy. | |
7085 | ||
971e17ff AS |
7086 | 2015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com> |
7087 | Braden Obrzut <admin@maniacsvault.net> | |
7088 | Jason Merrill <jason@redhat.com> | |
7089 | ||
7090 | Add C++ Concepts TS support. | |
7091 | * c-common.c (c_common_reswords): Add __is_same_as, concept, requires. | |
7092 | * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES. | |
7093 | (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New. | |
7094 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts. | |
7095 | * c-opts.c (set_std_cxx1z): Set flag_concepts. | |
7096 | * c.opt (fconcepts): New. | |
7097 | ||
b3d5bc62 JJ |
7098 | 2015-08-02 Martin Sebor <msebor@redhat.com> |
7099 | ||
7100 | * c.opt (-Wframe-address): New warning option. | |
7101 | ||
8ebca419 PP |
7102 | 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org> |
7103 | ||
7104 | * c-indentation.c (should_warn_for_misleading_indentation): | |
7105 | Improve heuristics. | |
7106 | ||
1a1e101f PP |
7107 | 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org> |
7108 | ||
7109 | * c-indentation.c (get_visual_column): Add parameter first_nws, | |
7110 | use it. Update comment documenting the function. | |
7111 | (is_first_nonwhitespace_on_line): Remove. | |
7112 | (should_warn_for_misleading_indentation): Replace usage of | |
7113 | of is_first_nonwhitespace_on_line with get_visual_column. | |
7114 | ||
992118a1 PP |
7115 | 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org> |
7116 | ||
7117 | * c-indentation.h (struct token_indent_info): Define. | |
7118 | (get_token_indent_info): Define. | |
7119 | (warn_for_misleading_information): Declare. | |
7120 | * c-common.h (warn_for_misleading_information): Remove. | |
7121 | * c-identation.c (warn_for_misleading_indentation): | |
7122 | Change declaration to take three token_indent_infos. Adjust | |
7123 | accordingly. | |
7124 | * c-identation.c (should_warn_for_misleading_indentation): | |
7125 | Likewise. Bail out early if the body is a compound statement. | |
7126 | (guard_tinfo_to_string): Define. | |
7127 | ||
e8fa3817 JM |
7128 | 2015-07-30 Jason Merrill <jason@redhat.com> |
7129 | ||
7130 | * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print | |
7131 | '*' for reference decay. | |
7132 | ||
173864e8 MP |
7133 | 2015-07-30 Marek Polacek <polacek@redhat.com> |
7134 | ||
7135 | * c-common.c (warn_tautological_cmp): Bail for float types. | |
7136 | ||
f2afe6dd MP |
7137 | 2015-07-27 Marek Polacek <polacek@redhat.com> |
7138 | ||
7139 | PR bootstrap/67030 | |
7140 | * c-common.c (warn_tautological_cmp): Don't warn for macro expansion. | |
7141 | ||
05b28fd6 MP |
7142 | 2015-07-27 Marek Polacek <polacek@redhat.com> |
7143 | ||
7144 | PR c++/66555 | |
7145 | PR c/54979 | |
7146 | * c-common.c (find_array_ref_with_const_idx_r): New function. | |
7147 | (warn_tautological_cmp): New function. | |
7148 | * c-common.h (warn_tautological_cmp): Declare. | |
7149 | * c.opt (Wtautological-compare): New option. | |
7150 | ||
5a5062b8 MP |
7151 | 2015-07-23 Marek Polacek <polacek@redhat.com> |
7152 | ||
7153 | * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout. | |
7154 | (ubsan_instrument_shift): Likewise. | |
7155 | ||
dc891fe7 MP |
7156 | 2015-07-23 Marek Polacek <polacek@redhat.com> |
7157 | ||
7158 | PR sanitizer/66908 | |
7159 | * c-ubsan.c: Include gimplify.h. | |
7160 | (ubsan_instrument_division): Unshare OP0 and OP1. | |
7161 | (ubsan_instrument_shift): Likewise. | |
7162 | ||
451b5e48 MP |
7163 | 2015-07-20 Marek Polacek <polacek@redhat.com> |
7164 | Richard Sandiford <richard.sandiford@arm.com> | |
7165 | ||
7166 | PR c++/55095 | |
7167 | * c-common.c (c_fully_fold_internal): Warn about left shift overflows. | |
7168 | Use EXPR_LOC_OR_LOC. | |
7169 | (maybe_warn_shift_overflow): New function. | |
7170 | * c-common.h (maybe_warn_shift_overflow): Declare. | |
7171 | * c-opts.c (c_common_post_options): Set warn_shift_overflow. | |
7172 | * c.opt (Wshift-overflow): New option. | |
7173 | ||
fb0b2914 ML |
7174 | 2015-07-16 Martin Liska <mliska@suse.cz> |
7175 | ||
7176 | * c-format.c (static void check_format_info_main): Use | |
7177 | object_allocator instead of pool_allocator. | |
7178 | (check_format_arg): Likewise. | |
7179 | (check_format_info_main): Likewise. | |
7180 | ||
903f5c23 AM |
7181 | 2015-07-15 Andrew MacLeod <amacleod@redhat.com> |
7182 | ||
7183 | * c-opts.c: Remove multiline #include comment. | |
7184 | ||
026c3cfd AH |
7185 | 2015-07-12 Aldy Hernandez <aldyh@redhat.com> |
7186 | ||
7187 | * c-common.c: Fix double word typos. | |
7188 | ||
bb49ee66 EB |
7189 | 2015-07-10 Eric Botcazou <ebotcazou@adacore.com> |
7190 | ||
7191 | * c-ada-spec.h (cpp_operation): Revert latest change. | |
7192 | * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit | |
7193 | constructors and destructors. | |
7194 | ||
1916bcb5 AM |
7195 | 2015-07-09 Andrew MacLeod <amacleod@redhat.com> |
7196 | ||
7197 | * c-common.h: Adjust includes for flags.h changes. | |
7198 | * stub-objc.c: Likewise. | |
026c3cfd | 7199 | |
a9dcd529 EB |
7200 | 2015-07-08 Eric Botcazou <ebotcazou@adacore.com> |
7201 | ||
7202 | * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR. | |
7203 | * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors. | |
7204 | ||
b03b462f JJ |
7205 | 2015-07-08 Jakub Jelinek <jakub@redhat.com> |
7206 | ||
7207 | * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses | |
7208 | are to be removed, return NULL rather than original clauses list. | |
7209 | ||
c7131fb2 AM |
7210 | 2015-07-07 Andrew MacLeod <amacleod@redhat.com> |
7211 | ||
7212 | * array-notation-common.c: Adjust includes. | |
7213 | * c-ada-spec.c: Likewise. | |
7214 | * c-cilkplus.c: Likewise. | |
7215 | * c-common.h: Likewise. | |
7216 | * c-cppbuiltin.c: Likewise. | |
7217 | * c-dump.c: Likewise. | |
7218 | * c-format.c: Likewise. | |
7219 | * c-gimplify.c: Likewise. | |
7220 | * c-indentation.c: Likewise. | |
7221 | * c-lex.c: Likewise. | |
7222 | * c-omp.c: Likewise. | |
7223 | * c-opts.c: Likewise. | |
7224 | * c-pch.c: Likewise. | |
7225 | * c-ppoutput.c: Likewise. | |
7226 | * c-pragma.c: Likewise. | |
7227 | * c-pretty-print.c: Likewise. | |
7228 | * c-semantics.c: Likewise. | |
7229 | * c-ubsan.c: Likewise. | |
7230 | * cilk.c: Likewise. | |
7231 | * stub-objc.c: Likewise. | |
7232 | ||
2a7fb83f EB |
7233 | 2015-07-07 Eric Botcazou <ebotcazou@adacore.com> |
7234 | ||
7235 | * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR. | |
7236 | * c-ada-spec.c (print_ada_declaration): Skip move constructors. | |
7237 | ||
a03c9bf1 JM |
7238 | 2015-07-01 Jason Merrill <jason@redhat.com> |
7239 | ||
36a85135 JM |
7240 | * c-common.h (D_CXX11): Rename from D_CXX0X. |
7241 | (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X. | |
7242 | * c-common.c: Adjust. | |
7243 | ||
e7fa68d5 JM |
7244 | * c-opts.c (c_common_post_options): Default to C++14. |
7245 | ||
a03c9bf1 JM |
7246 | * c-opts.c (c_common_post_options): Highest ABI level is now 10. |
7247 | ||
fe95b036 ESR |
7248 | 2015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net> |
7249 | ||
7250 | Implement N4197 - Adding u8 character literals | |
b3d5bc62 | 7251 | * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like |
a64be36b | 7252 | CPP_CHAR. |
b3d5bc62 | 7253 | * c-common.c (c_parse_error): Print CPP_UTF8CHAR and |
a64be36b | 7254 | CPP_UTF8CHAR_USERDEF tokens. |
b3d5bc62 | 7255 | * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF |
a64be36b EB |
7256 | and CPP_UTF8CHAR tokens. |
7257 | (lex_charconst): Treat CPP_UTF8CHAR token. | |
fe95b036 | 7258 | |
da2e71c9 MLI |
7259 | 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org> |
7260 | ||
7261 | PR fortran/66605 | |
7262 | * c-common.c (do_warn_unused_parameter): Move here. | |
7263 | * c-common.h (do_warn_unused_parameter): Declare. | |
7264 | ||
b155cfd9 MP |
7265 | 2015-06-29 Marek Polacek <polacek@redhat.com> |
7266 | ||
7267 | PR c/66322 | |
7268 | * c-common.c (check_case_bounds): Add bool * parameter. Set | |
7269 | OUTSIDE_RANGE_P. | |
7270 | (c_add_case_label): Add bool * parameter. Pass it down to | |
7271 | check_case_bounds. | |
7272 | (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool | |
7273 | warning here. | |
7274 | * c-common.h (c_add_case_label, c_do_switch_warnings): Update | |
7275 | declarations. | |
7276 | ||
31521951 MP |
7277 | 2015-06-27 Marek Polacek <polacek@redhat.com> |
7278 | ||
7279 | * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P | |
7280 | or VECTOR_INTEGER_TYPE_P throughout. | |
7281 | * c-gimplify.c: Likewise. | |
7282 | ||
22d03525 MP |
7283 | 2015-06-26 Marek Polacek <polacek@redhat.com> |
7284 | ||
7285 | * array-notation-common.c (find_rank): Use INDIRECT_REF_P. | |
7286 | * c-common.c (c_fully_fold_internal): Likewise. | |
7287 | (c_alignof_expr): Likewise. | |
7288 | * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise. | |
7289 | * c-ubsan.c (ubsan_instrument_bounds): Likewise. | |
b1726d6c | 7290 | * cilk.c (create_parm_list): Likewise. |
22d03525 | 7291 | |
af05e6e5 MP |
7292 | 2015-06-26 Marek Polacek <polacek@redhat.com> |
7293 | ||
7294 | * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P. | |
7295 | ||
f0889939 AM |
7296 | 2015-06-25 Andrew MacLeod <amacleod@redhat.com> |
7297 | ||
7298 | * c-common.c: Remove ipa-ref.h and plugin-api.h from include list. | |
7299 | * c-gimplify.c: Likewise. | |
7300 | * c-pragma.c: Likewise. | |
7301 | * c-ubsan.c: Likewise. | |
7302 | * cilk.c: Likewise. | |
7303 | ||
ca752f39 RS |
7304 | 2015-06-25 Richard Sandiford <richard.sandiford@arm.com> |
7305 | ||
7306 | * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than | |
7307 | ggc_hasher. | |
7308 | ||
16a16ec7 AM |
7309 | 2015-06-25 Andrew MacLeod <amacleod@redhat.com> |
7310 | ||
7311 | * cilk.c: Move calls.h after tm.h in the include chain. | |
7312 | ||
0ae9bd27 MP |
7313 | 2015-06-25 Marek Polacek <polacek@redhat.com> |
7314 | ||
7315 | * array-notation-common.c: Use VAR_P throughout. | |
7316 | * c-ada-spec.c: Likewise. | |
7317 | * c-common.c: Likewise. | |
7318 | * c-format.c: Likewise. | |
7319 | * c-gimplify.c: Likewise. | |
7320 | * c-omp.c: Likewise. | |
7321 | * c-pragma.c: Likewise. | |
7322 | * c-pretty-print.c: Likewise. | |
7323 | * cilk.c: Likewise. | |
7324 | ||
62f9079a MP |
7325 | 2015-06-25 Marek Polacek <polacek@redhat.com> |
7326 | ||
7327 | * cilk.c (extract_free_variables): Use is_global_var. | |
7328 | ||
0fa16060 RS |
7329 | 2015-06-23 Richard Sandiford <richard.sandiford@arm.com> |
7330 | ||
7331 | * c-common.c: Don't include target-def.h. | |
7332 | ||
a68ae2e1 MP |
7333 | 2015-06-23 Marek Polacek <polacek@redhat.com> |
7334 | ||
7335 | * c-common.c (warn_logical_operator): Use tree_int_cst_equal | |
7336 | when comparing INTEGER_CSTs. | |
7337 | ||
c6a2f2d9 PMR |
7338 | 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com> |
7339 | ||
7340 | * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS. | |
7341 | * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL | |
7342 | (dump_ada_template): Skip partially specialized types. | |
7343 | ||
6b4db501 MM |
7344 | 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com> |
7345 | ||
7346 | * c-common.c (scalar_to_vector): Use std::swap instead of manually | |
7347 | swapping. | |
7348 | ||
abb226c9 AM |
7349 | 2015-06-17 Andrew MacLeod <amacleod@redhat.com> |
7350 | ||
7351 | * array-notation-common.c: Do not include input.h, line-map.h or is-a.h. | |
7352 | * c-ada-spec.c: Likewise. | |
7353 | * c-cilkplus.c: Likewise. | |
7354 | * c-common.c: Likewise. | |
7355 | * c-common.h: Likewise. | |
7356 | * c-cppbuiltin.c: Likewise. | |
7357 | * c-dump.c: Likewise. | |
7358 | * c-format.c: Likewise. | |
7359 | * c-gimplify.c: Likewise. | |
7360 | * c-indentation.c: Likewise. | |
7361 | * c-lex.c: Likewise. | |
7362 | * c-omp.c: Likewise. | |
7363 | * c-opts.c: Likewise. | |
7364 | * c-pch.c: Likewise. | |
7365 | * c-ppoutput.c: Likewise. | |
7366 | * c-pragma.c: Likewise. | |
7367 | * c-pretty-print.c: Likewise. | |
7368 | * c-semantics.c: Likewise. | |
7369 | * c-ubsan.c: Likewise. | |
7370 | * cilk.c: Likewise. | |
7371 | * stub-objc.c: Likewise. | |
7372 | ||
076fecad PP |
7373 | 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org> |
7374 | ||
7375 | PR c++/65168 | |
7376 | * c-common.c (c_common_truthvalue_conversion): Warn when | |
7377 | converting an address of a reference to a truth value. | |
7378 | ||
13fdf2e2 AM |
7379 | 2015-06-08 Andrew MacLeod <amacleod@redhat.com> |
7380 | ||
7381 | * array-notation-common.c : Adjust include files. | |
7382 | * c-ada-spec.c : Likewise. | |
7383 | * c-cilkplus.c : Likewise. | |
7384 | * c-common.c : Likewise. | |
7385 | * c-common.h : Likewise. | |
7386 | * c-cppbuiltin.c : Likewise. | |
7387 | * c-dump.c : Likewise. | |
7388 | * c-format.c : Likewise. | |
7389 | * c-gimplify.c : Likewise. | |
7390 | * c-indentation.c : Likewise. | |
7391 | * c-lex.c : Likewise. | |
7392 | * c-omp.c : Likewise. | |
7393 | * c-opts.c : Likewise. | |
7394 | * c-pch.c : Likewise. | |
7395 | * c-ppoutput.c : Likewise. | |
7396 | * c-pragma.c : Likewise. | |
7397 | * c-pretty-print.c : Likewise. | |
7398 | * c-semantics.c : Likewise. | |
7399 | * c-ubsan.c : Likewise. | |
7400 | * cilk.c : Likewise. | |
7401 | * stub-objc.c : Likewise. | |
7402 | ||
a1661b90 MP |
7403 | 2015-06-08 Marek Polacek <polacek@redhat.com> |
7404 | ||
7405 | PR c/66415 | |
7406 | * c-format.c (location_from_offset): Return LOC if LINE is null. | |
7407 | ||
d7438551 AH |
7408 | 2015-06-05 Aldy Hernandez <aldyh@redhat.com> |
7409 | ||
7410 | * c-common.h (c_parse_final_cleanups): New prototype. | |
7411 | * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups. | |
7412 | ||
b3d5bc62 JJ |
7413 | 2015-06-04 Sriraman Tallam <tmsriram@google.com> |
7414 | ||
7415 | * c-common.c (noplt): New attribute. | |
7416 | (handle_noplt_attribute): New handler. | |
7417 | ||
ecb9f223 AM |
7418 | 2015-06-04 Andrew MacLeod <amacleod@redhat.com> |
7419 | ||
7420 | * array-notation-common.c: Adjust includes for restructured coretypes.h. | |
7421 | * c-ada-spec.c: Likewise. | |
7422 | * c-cilkplus.c: Likewise. | |
7423 | * c-common.c: Likewise. | |
7424 | * c-common.h: Likewise. | |
7425 | * c-cppbuiltin.c: Likewise. | |
7426 | * c-dump.c: Likewise. | |
7427 | * c-format.c: Likewise. | |
7428 | * c-gimplify.c: Likewise. | |
7429 | * c-indentation.c: Likewise. | |
7430 | * c-lex.c: Likewise. | |
7431 | * c-omp.c: Likewise. | |
7432 | * c-opts.c: Likewise. | |
7433 | * c-pch.c: Likewise. | |
7434 | * c-ppoutput.c: Likewise. | |
7435 | * c-pragma.c: Likewise. | |
7436 | * c-pretty-print.c: Likewise. | |
7437 | * c-semantics.c: Likewise. | |
7438 | * c-ubsan.c: Likewise. | |
7439 | * cilk.c: Likewise. | |
7440 | * stub-objc.c: Likewise. | |
7441 | ||
6ac48155 DM |
7442 | 2015-06-02 David Malcolm <dmalcolm@redhat.com> |
7443 | ||
7444 | PR c/66220: | |
7445 | * c-indentation.c (should_warn_for_misleading_indentation): Use | |
7446 | expand_location rather than expand_location_to_spelling_point. | |
7447 | Don't warn if the guarding statement is more indented than the | |
7448 | next/body stmts. | |
7449 | ||
773ce42e DM |
7450 | 2015-06-02 David Malcolm <dmalcolm@redhat.com> |
7451 | ||
7452 | * c-indentation.c (warn_for_misleading_indentation): Bail out | |
7453 | immediately if -Wmisleading-indentation isn't enabled. | |
7454 | ||
4fef8379 ML |
7455 | 2015-06-01 Martin Liska <mliska@suse.cz> |
7456 | ||
7457 | * c-format.c (check_format_arg):Use new type-based pool allocator. | |
7458 | (check_format_info_main) Likewise. | |
7459 | ||
1edfb384 EB |
7460 | 2015-05-31 Eric Botcazou <ebotcazou@adacore.com> |
7461 | ||
7462 | * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant. | |
7463 | (has_nontrivial_methods): Likewise. | |
7464 | ||
9677ef52 MP |
7465 | 2015-05-25 Marek Polacek <polacek@redhat.com> |
7466 | ||
7467 | * c-ubsan.c (ubsan_instrument_shift): Use type0. | |
7468 | ||
fd5c817a MP |
7469 | 2015-05-22 Marek Polacek <polacek@redhat.com> |
7470 | ||
7471 | PR c/47043 | |
7472 | * c-common.c (handle_deprecated_attribute): Allow CONST_DECL. | |
7473 | ||
a2f45fe6 | 7474 | 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> |
581edfa3 TS |
7475 | |
7476 | * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with | |
7477 | STACK_GROWS_DOWNWARD. | |
7478 | ||
a2f45fe6 | 7479 | 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> |
62f9f30b TS |
7480 | |
7481 | * c-cppbuiltin.c (c_cpp_builtins): Check the value of | |
7482 | STACK_GROWS_DOWNWARD rather than if it is defined. | |
7483 | ||
0fee2ac2 | 7484 | 2015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org> |
b1726d6c | 7485 | |
0fee2ac2 MLI |
7486 | PR c/52952 |
7487 | * c-format.c (location_column_from_byte_offset): New. | |
7488 | (location_from_offset): New. | |
7489 | (struct format_wanted_type): Add offset_loc field. | |
7490 | (check_format_info): Move handling of location for extra arguments | |
7491 | closer to the point of warning. | |
7492 | (check_format_info_main): Pass the result of location_from_offset | |
7493 | to warning_at. | |
7494 | (format_type_warning): Pass the result of location_from_offset | |
7495 | to warning_at. | |
7496 | ||
cf4ef6f7 MP |
7497 | 2015-05-20 Marek Polacek <polacek@redhat.com> |
7498 | ||
7499 | * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P. | |
7500 | ||
3a65ee74 MP |
7501 | 2015-05-20 Marek Polacek <polacek@redhat.com> |
7502 | ||
7503 | * c-ada-spec.c (dump_sloc): Use DECL_P. | |
7504 | ||
21b634ae MP |
7505 | 2015-05-20 Marek Polacek <polacek@redhat.com> |
7506 | ||
7507 | * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout. | |
7508 | * c-common.c: Likewise. | |
7509 | ||
0e50b624 DM |
7510 | 2015-05-19 David Malcolm <dmalcolm@redhat.com> |
7511 | ||
7512 | * c-common.h (fe_file_change): Strengthen param from | |
7513 | const line_map * to const line_map_ordinary *. | |
7514 | (pp_file_change): Likewise. | |
7515 | * c-lex.c (fe_file_change): Likewise. | |
7516 | (cb_define): Use linemap_check_ordinary when invoking | |
7517 | SOURCE_LINE. | |
7518 | (cb_undef): Likewise. | |
7519 | * c-opts.c (c_finish_options): Use linemap_check_ordinary when | |
7520 | invoking cb_file_change. | |
7521 | (c_finish_options): Likewise. | |
7522 | (push_command_line_include): Likewise. | |
7523 | (cb_file_change): Strengthen param "new_map" from | |
7524 | const line_map * to const line_map_ordinary *. | |
7525 | * c-ppoutput.c (cb_define): Likewise for local "map". | |
7526 | (pp_file_change): Likewise for param "map" and local "from". | |
7527 | ||
fab27f52 MM |
7528 | 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com> |
7529 | ||
7530 | * c-common.c (shorten_compare): Use std::swap instead of explicit swaps. | |
7531 | ||
2fe1d762 TV |
7532 | 2015-05-18 Tom de Vries <tom@codesourcery.com> |
7533 | ||
7534 | * c-common.c (build_va_arg_1): New function. | |
7535 | (build_va_arg): Add address operator to va_list operand if necessary. | |
7536 | ||
7a37fa90 MM |
7537 | 2015-05-15 Mikhail Maltsev <maltsevm@gmail.com> |
7538 | ||
7539 | PR c/48956 | |
7540 | * c-common.c (int_safely_convertible_to_real_p): Define. | |
7541 | (unsafe_conversion_p): Check conversions involving complex types. | |
7542 | (conversion_warning): Add new warning message for conversions which | |
7543 | discard imaginary component. | |
7544 | * c-common.h: (enum conversion_safety): Add new enumerator for such | |
7545 | conversions. | |
7546 | ||
3aa3c9fc MP |
7547 | 2015-05-14 Marek Polacek <polacek@redhat.com> |
7548 | ||
7549 | PR c/66066 | |
7550 | PR c/66127 | |
7551 | * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal. | |
7552 | (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with | |
7553 | C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and | |
7554 | use it. If FOR_INT_CONST, require that all evaluated operands be | |
7555 | INTEGER_CSTs. | |
7556 | ||
c3388e62 DM |
7557 | 2015-05-12 David Malcolm <dmalcolm@redhat.com> |
7558 | ||
7559 | * c-common.h (warn_for_misleading_indentation): New prototype. | |
7560 | * c-indentation.c: New file. | |
7561 | * c.opt (Wmisleading-indentation): New option. | |
7562 | ||
c7b38fd5 TV |
7563 | 2015-05-12 Tom de Vries <tom@codesourcery.com> |
7564 | ||
7565 | PR tree-optimization/66010 | |
7566 | * c-common.c (build_va_arg): Don't mark ap addressable unless necessary. | |
7567 | ||
381bf11e JM |
7568 | 2015-05-09 Jason Merrill <jason@redhat.com> |
7569 | ||
edff0c06 JM |
7570 | * c-opts.c (c_common_post_options): Also clear |
7571 | cpp_opts->cpp_warn_cxx11_compat. | |
7572 | ||
129211bc JM |
7573 | * c-common.h (enum cxx_dialect): Add cxx_unset. |
7574 | * c-common.c (cxx_dialect): Initialize to cxx_unset. | |
7575 | * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset. | |
7576 | ||
381bf11e JM |
7577 | * c.opt (std=c++14): Remove Undocumented flag and experimental warning. |
7578 | (std=gnu++0x): Mark as Undocumented. | |
7579 | (std=gnu++1y): Add deprecated message. | |
7580 | ||
fe191308 JM |
7581 | 2015-05-08 Jason Merrill <jason@redhat.com> |
7582 | ||
765189ff JM |
7583 | * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat. |
7584 | * c-opts.c: Adjust. | |
7585 | ||
fe191308 JM |
7586 | * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat. |
7587 | ||
755e528f MP |
7588 | 2015-05-08 Marek Polacek <polacek@redhat.com> |
7589 | ||
7590 | PR c/64918 | |
7591 | * c.opt (Woverride-init-side-effects): New option. | |
7592 | ||
0173bd2a MP |
7593 | 2015-05-07 Marek Polacek <polacek@redhat.com> |
7594 | ||
7595 | PR c/65179 | |
7596 | * c-common.c (c_fully_fold_internal): Warn when left shifting a | |
7597 | negative value. | |
7598 | * c.opt (Wshift-negative-value): New option. | |
7599 | * c-opts.c (c_common_post_options): Set warn_shift_negative_value | |
7600 | when -Wextra and C99/C++11 mode. | |
7601 | ||
e0f0d3b9 MP |
7602 | 2015-05-07 Marek Polacek <polacek@redhat.com> |
7603 | Martin Uecker <uecker@eecs.berkeley.edu> | |
7604 | ||
7605 | * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting | |
7606 | flexible member array-like members if SANITIZE_BOUNDS_STRICT. | |
7607 | ||
8243e2a9 JM |
7608 | 2015-05-05 Jason Merrill <jason@redhat.com> |
7609 | ||
7610 | * c.opt (Wterminate): New. | |
7611 | ||
577cd070 MP |
7612 | 2015-04-30 Marek Polacek <polacek@redhat.com> |
7613 | ||
7614 | * c-common.c (maybe_warn_bool_compare): When comparing with 0/1, | |
7615 | require that the non-constant be of a boolean type. | |
7616 | ||
0373796b JT |
7617 | 2015-04-29 Josh Triplett <josh@joshtriplett.org> |
7618 | ||
e0f0d3b9 MP |
7619 | * c-common.c (handle_section_attribute): Refactor to reduce |
7620 | nesting and distinguish between error cases. | |
0373796b | 7621 | |
716c0ba6 MP |
7622 | 2015-04-29 Marek Polacek <polacek@redhat.com> |
7623 | ||
7624 | PR c/64610 | |
7625 | * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean | |
7626 | with 0/1. | |
7627 | ||
8848828b JJ |
7628 | 2015-04-29 Jakub Jelinek <jakub@redhat.com> |
7629 | ||
7630 | * c-common.h (omp_clause_mask): Unconditionally define as a class. | |
7631 | Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of | |
7632 | HOST_BITS_PER_WIDE_INT. | |
7633 | ||
ecd0e562 TV |
7634 | 2015-04-28 Tom de Vries <tom@codesourcery.com> |
7635 | ||
7636 | PR tree-optimization/65887 | |
7637 | * c-common.c (build_va_arg): Mark va_arg ap argument as addressable. | |
7638 | ||
2a877204 | 7639 | 2015-04-28 Eric Botcazou <ebotcazou@adacore.com> |
e0f0d3b9 | 7640 | Pierre-Marie de Rodat <derodat@adacore.com> |
2a877204 EB |
7641 | |
7642 | * c-ada-spec.c (in_function): Delete. | |
7643 | (dump_generic_ada_node): Do not change in_function and remove the | |
7644 | redundant code dealing with it. | |
7645 | (print_ada_declaration): Do not change in_function. Use INDENT_INCR. | |
7646 | (print_ada_methods): Output the static member functions in a nested | |
7647 | package after the regular methods as well as associated renamings. | |
7648 | ||
4853031e MP |
7649 | 2015-04-24 Marek Polacek <polacek@redhat.com> |
7650 | ||
7651 | PR c/65830 | |
7652 | * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative | |
7653 | and OPT_Wshift_count_overflow. | |
7654 | ||
8c2b7f79 MP |
7655 | PR c/63357 |
7656 | * c-common.c (warn_logical_operator): Warn if the operands have the | |
7657 | same expressions. | |
7658 | ||
b8787813 MP |
7659 | 2015-04-24 Marek Polacek <polacek@redhat.com> |
7660 | ||
7661 | PR c/61534 | |
7662 | * c-common.c (warn_logical_operator): Bail if either operand comes | |
7663 | from a macro expansion. | |
7664 | ||
8fba1830 BRF |
7665 | 2015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org> |
7666 | ||
7667 | PR target/55143 | |
7668 | * c-common.c (c_default_pointer_mode): Add definition. | |
7669 | * c-common.h (c_default_pointer_mode): Add declaration. | |
7670 | ||
17958621 JJ |
7671 | 2015-03-11 Jakub Jelinek <jakub@redhat.com> |
7672 | ||
7673 | * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup | |
7674 | on record_builtin_type argument. | |
7675 | ||
7ccb1a11 JJ |
7676 | 2015-03-10 Jakub Jelinek <jakub@redhat.com> |
7677 | ||
7678 | PR c/65120 | |
7679 | * c-common.c (warn_logical_not_parentheses): Don't warn for | |
7680 | !x == 0 or !x != 0. | |
7681 | ||
04fd785e MP |
7682 | 2015-03-07 Marek Polacek <polacek@redhat.com> |
7683 | ||
7684 | PR sanitizer/65280 | |
7685 | * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF | |
7686 | before trying to figure out whether we have a flexible array member. | |
7687 | ||
a4e26206 | 7688 | 2015-03-06 Eric Botcazou <ebotcazou@adacore.com> |
8e745a17 | 7689 | Jonathan Wakely <jwakely.gcc@gmail.com> |
a4e26206 EB |
7690 | |
7691 | * c-ada-spec.c (dump_ada_double_name): Fix pasto. | |
7692 | ||
0d2489f4 EB |
7693 | 2015-03-05 Eric Botcazou <ebotcazou@adacore.com> |
7694 | ||
7695 | PR ada/65319 | |
7696 | * c-ada-spec.c (print_destructor): Remove obsolete code. | |
7697 | ||
83ed54d7 EB |
7698 | 2015-03-01 Eric Botcazou <ebotcazou@adacore.com> |
7699 | ||
7700 | * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX. | |
7701 | (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and | |
7702 | DECL_TEMPLATE_RESULT emulations. | |
7703 | (dump_ada_template)): Add guard for TYPE_METHODS. | |
7704 | ||
7631f0e2 MP |
7705 | 2015-02-27 Marek Polacek <polacek@redhat.com> |
7706 | ||
7707 | PR c/65040 | |
7708 | * c.opt (Wformat-signedness): Don't enable by -Wformat=2. | |
7709 | ||
d1783ae5 KT |
7710 | 2015-02-27 Kai Tietz <ktietz@redhat.com> |
7711 | ||
7712 | PR c/35330 | |
7713 | * c-pragma.c (handle_pragma_weak): Do not try to create | |
7714 | weak/alias of declarations not being function, or variable | |
7715 | declarations. | |
7716 | ||
56a9f6bc TS |
7717 | 2015-02-24 Thomas Schwinge <thomas@codesourcery.com> |
7718 | ||
7719 | PR libgomp/64625 | |
7720 | * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12): | |
7721 | Remove macros. | |
7722 | (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros. | |
7723 | ||
3d5cb23d MP |
7724 | 2015-02-16 Marek Polacek <polacek@redhat.com> |
7725 | ||
7726 | PR c/65066 | |
7727 | * c-format.c (check_format_types): Handle null param. | |
7728 | ||
fa008882 MP |
7729 | 2015-02-13 Marek Polacek <polacek@redhat.com> |
7730 | ||
7731 | PR c/65040 | |
7732 | * c-format.c (check_format_types): Don't warn about different | |
7733 | signedness if the original value is in the range of WANTED_TYPE. | |
7734 | ||
785f21af JM |
7735 | 2015-02-12 Jason Merrill <jason@redhat.com> |
7736 | ||
7737 | PR c++/64956 | |
7738 | * c-opts.c (c_common_post_options): Change flag_abi_version from 0 | |
7739 | to the current highest version. | |
7740 | * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0. | |
7741 | ||
4886ec8e JJ |
7742 | 2015-02-04 Jakub Jelinek <jakub@redhat.com> |
7743 | ||
7744 | PR c/64824 | |
7745 | PR c/64868 | |
7746 | * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR | |
7747 | instead of RDIV_EXPR. Use build_binary_op instead of | |
7748 | build2_loc. | |
7749 | ||
40fecdd6 JM |
7750 | 2015-01-30 Joseph Myers <joseph@codesourcery.com> |
7751 | ||
7752 | * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed | |
7753 | to pass input_location as first argument. | |
7754 | ||
a0c88d06 TV |
7755 | 2015-01-23 Tom de Vries <tom@codesourcery.com> |
7756 | ||
7757 | PR libgomp/64672 | |
7758 | * c.opt (fopenacc): Mark as LTO option. | |
7759 | ||
1506ae0e TV |
7760 | 2015-01-23 Tom de Vries <tom@codesourcery.com> |
7761 | ||
7762 | PR libgomp/64707 | |
7763 | * c.opt (fopenmp): Mark as LTO option. | |
7764 | ||
31be63ab JJ |
7765 | 2015-01-21 Jakub Jelinek <jakub@redhat.com> |
7766 | ||
7767 | PR c/63307 | |
b1726d6c | 7768 | * cilk.c (fill_decls_vec): Only put decls into vector v. |
31be63ab JJ |
7769 | (compare_decls): Fix up formatting. |
7770 | ||
7771 | 2015-01-21 Igor Zamyatin <igor.zamyatin@intel.com> | |
7772 | ||
7773 | PR c/63307 | |
7774 | * cilk.c: Include vec.h. | |
7775 | (struct cilk_decls): New structure. | |
7776 | (wrapper_parm_cb): Split this function to... | |
7777 | (fill_decls_vec): ...this... | |
7778 | (create_parm_list): ...and this. | |
7779 | (compare_decls): New function. | |
7780 | (for_local_cb): Remove. | |
7781 | (wrapper_local_cb): Ditto. | |
7782 | (build_wrapper_type): For now first traverse and fill vector of | |
7783 | declarations then sort it and then deal with sorted vector. | |
7784 | (cilk_outline): Ditto. | |
7785 | (declare_one_free_variable): Ditto. | |
7786 | ||
6875457f JM |
7787 | 2015-01-21 Jason Merrill <jason@redhat.com> |
7788 | ||
7789 | PR c++/64629 | |
7790 | * c-format.c (check_format_arg): Call decl_constant_value. | |
7791 | ||
185c9e56 ML |
7792 | 2015-01-19 Martin Liska <mliska@suse.cz> |
7793 | ||
7794 | * c-common.c (handle_noicf_attribute): New function. | |
7795 | ||
41dbbb37 TS |
7796 | 2015-01-15 Thomas Schwinge <thomas@codesourcery.com> |
7797 | Bernd Schmidt <bernds@codesourcery.com> | |
7798 | James Norris <jnorris@codesourcery.com> | |
7799 | Cesar Philippidis <cesar@codesourcery.com> | |
7800 | Ilmir Usmanov <i.usmanov@samsung.com> | |
7801 | Jakub Jelinek <jakub@redhat.com> | |
7802 | ||
7803 | * c.opt (fopenacc): New option. | |
7804 | * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC. | |
7805 | * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12): | |
7806 | New macros. | |
7807 | * c-common.h (c_finish_oacc_wait): New prototype. | |
7808 | * c-omp.c: Include "omp-low.h" and "gomp-constants.h". | |
7809 | (c_finish_oacc_wait): New function. | |
7810 | * c-pragma.c (oacc_pragmas): New variable. | |
7811 | (c_pp_lookup_pragma, init_pragma): Handle it. | |
7812 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE, | |
7813 | PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA, | |
7814 | PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL, | |
7815 | PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT. | |
7816 | (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC, | |
7817 | PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE, | |
7818 | PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN, | |
7819 | PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE, | |
7820 | PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE, | |
7821 | PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE, | |
7822 | PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST, | |
7823 | PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS, | |
7824 | PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT, | |
7825 | PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY, | |
7826 | PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN, | |
7827 | PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT, | |
7828 | PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE, | |
7829 | PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF, | |
7830 | PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR, | |
7831 | PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT, | |
7832 | PRAGMA_OACC_CLAUSE_WORKER. | |
7833 | ||
3f8257db | 7834 | 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com> |
5434dc07 MD |
7835 | |
7836 | * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__ | |
7837 | for the new option fstack-protector_explicit. | |
7838 | * c-common.c (c_common_attribute_table): Add stack_protect attribute. | |
7839 | (handle_stack_protect_attribute): New function. | |
7840 | ||
3f8257db | 7841 | 2015-01-13 Martin Uecker <uecker@eecs.berkeley.edu> |
de1b5c17 MU |
7842 | |
7843 | * c.opt: New option -Warray-bounds=. | |
7844 | ||
adfac8df JJ |
7845 | 2015-01-09 Michael Collison <michael.collison@linaro.org> |
7846 | ||
7847 | * array-notation-common.c: Include hash-set.h, machmode.h, | |
7848 | vec.h, double-int.h, input.h, alias.h, symtab.h, options.h | |
7849 | fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h. | |
7850 | * c-ada-spec.c: Ditto. | |
7851 | * c-cilkplus.c: Ditto. | |
7852 | * c-common.c: Include input.h due to flattening of tree.h. | |
7853 | Define macro GCC_C_COMMON_C. | |
7854 | * c-common.h: Flatten tree.h header files into c-common.h. | |
7855 | Remove include of tree-core.h. | |
7856 | * c-cppbuiltin.c: Include hash-set.h, machmode.h, | |
7857 | vec.h, double-int.h, input.h, alias.h, symtab.h, options.h | |
7858 | fold-const.h, wide-int.h, and inchash.h due to | |
7859 | flattening of tree.h. | |
7860 | * c-dump.c: Ditto. | |
7861 | * c-format.c: Flatten tree.h header files into c-common.h. | |
7862 | * c-cppbuiltin.c: Include hash-set.h, machmode.h, | |
7863 | vec.h, double-int.h, input.h, alias.h, symtab.h, options.h | |
7864 | fold-const.h, wide-int.h, and inchash.h due to | |
7865 | flattening of tree.h. | |
7866 | * c-dump.c: Include hash-set.h, machmode.h, | |
7867 | vec.h, double-int.h, input.h, alias.h, symtab.h, options.h | |
7868 | fold-const.h, wide-int.h, and inchash.h due to | |
7869 | flattening of tree.h. | |
7870 | * c-format.c: Include hash-set.h, machmode.h, | |
7871 | vec.h, double-int.h, input.h, alias.h, symtab.h, options.h | |
7872 | fold-const.h, wide-int.h, inchash.h and real.h due to | |
7873 | flattening of tree.h. | |
7874 | * c-gimplify.c: Include hash-set.h, machmode.h, | |
7875 | vec.h, double-int.h, input.h, alias.h, symtab.h, options.h | |
7876 | fold-const.h, wide-int.h, and inchash.h due to | |
7877 | flattening of tree.h. | |
7878 | * cilk.c: Ditto. | |
7879 | * c-lex.c: Ditto. | |
7880 | * c-omp.c: Ditto. | |
7881 | * c-opts.c: Ditto. | |
7882 | * c-pch.c: Ditto. | |
7883 | * c-ppoutput.c: Ditto. | |
7884 | * c-pragma.c: Ditto. | |
7885 | * c-pretty-print.c: Ditto. | |
7886 | * c-semantics.c: Ditto. | |
7887 | * c-ubsan.c: Ditto. | |
7888 | * stub-objc.c: Ditto. | |
7889 | ||
f5481fc4 JM |
7890 | 2015-01-08 Jason Merrill <jason@redhat.com> |
7891 | ||
7892 | * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use | |
7893 | do_ubsan_in_current_function. | |
7894 | (ubsan_maybe_instrument_reference_or_call): Likewise. | |
7895 | * c-ubsan.h: Declare it. | |
7896 | ||
de35aa66 MS |
7897 | 2015-01-08 Mike Stump <mikestump@comcast.net> |
7898 | ||
7899 | * c-common.c (c_common_attribute_table): Add no_sanitize_thread. | |
7900 | ||
4a9a42ab MP |
7901 | 2015-01-07 Marek Polacek <polacek@redhat.com> |
7902 | ||
7903 | PR c/64440 | |
7904 | * c-common.c (c_fully_fold_internal): Warn for division and modulo | |
7905 | if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero. | |
7906 | ||
2f42e5de TS |
7907 | 2015-01-05 Trevor Saunders <tsaunders@mozilla.com> |
7908 | ||
7909 | PR c++/31397 | |
7910 | * c.opt (Wsuggest-override): New option. | |
7911 | ||
5624e564 JJ |
7912 | 2015-01-05 Jakub Jelinek <jakub@redhat.com> |
7913 | ||
7914 | Update copyright years. | |
7915 | ||
5bd012f8 MP |
7916 | 2015-01-05 Marek Polacek <polacek@redhat.com> |
7917 | ||
7918 | PR c/64423 | |
7919 | * c-common.c (warn_array_subscript_with_type_char): Add location_t | |
7920 | parameter. Use it. | |
7921 | * c-common.h (warn_array_subscript_with_type_char): Update | |
7922 | declaration. | |
7923 | ||
a7fa8d18 ESR |
7924 | 2014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net> |
7925 | ||
7926 | * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro. | |
7927 | Control macro with flag_sized_deallocation. | |
7928 | ||
3f8257db | 7929 | 2014-12-20 Martin Uecker <uecker@eecs.berkeley.edu> |
768952be MU |
7930 | |
7931 | * c.opt (Wdiscarded-array-qualifiers): New option. | |
7932 | ||
1f8d3e84 JJ |
7933 | 2014-12-19 Jakub Jelinek <jakub@redhat.com> |
7934 | ||
7935 | PR preprocessor/63831 | |
7936 | * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute | |
7937 | and __has_cpp_attribute here. | |
7938 | * c-ppoutput.c (init_pp_output): Set cb->has_attribute to | |
7939 | c_common_has_attribute. | |
7940 | * c-common.h (c_common_has_attribute): New prototype. | |
7941 | * c-lex.c (init_c_lex): Set cb->has_attribute to | |
7942 | c_common_has_attribute instead of cb_has_attribute. | |
7943 | (get_token_no_padding): New function. | |
7944 | (cb_has_attribute): Renamed to ... | |
7945 | (c_common_has_attribute): ... this. No longer static. Use | |
7946 | get_token_no_padding, require ()s, don't build TREE_LIST | |
7947 | unnecessarily, fix up formatting, adjust diagnostics, call | |
7948 | init_attributes. | |
7949 | ||
20b06add JM |
7950 | 2014-12-15 Jason Merrill <jason@redhat.com> |
7951 | ||
7952 | * c.opt (-fsized-deallocation, -Wc++14-compat): New. | |
7953 | (-Wsized-deallocation): New. | |
7954 | * c-opts.c (c_common_post_options): -fsized-deallocation defaults | |
7955 | to on in C++14 and up. | |
7956 | ||
94a073b2 JM |
7957 | 2014-12-11 Jason Merrill <jason@redhat.com> |
7958 | ||
acaa5911 JM |
7959 | * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr. |
7960 | ||
94a073b2 JM |
7961 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if |
7962 | we aren't complaining about VLAs. | |
7963 | ||
7fb66c15 MP |
7964 | 2014-12-06 Marek Polacek <polacek@redhat.com> |
7965 | ||
7966 | PR tree-optimization/64183 | |
7967 | * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a | |
7968 | shift-expression if it is integer_type_node. Use types_compatible_p. | |
7969 | ||
b731b390 JJ |
7970 | 2014-11-29 Jakub Jelinek <jakub@redhat.com> |
7971 | ||
7972 | * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL | |
7973 | last argument from create_tmp_var_raw and create_tmp_var calls. | |
7974 | * cilk.c (gimplify_cilk_spawn): Likewise. | |
7975 | * c-omp.c (c_finish_omp_atomic): Likewise. | |
7976 | ||
6a4da643 MP |
7977 | 2014-11-28 Marek Polacek <polacek@redhat.com> |
7978 | ||
7979 | * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR | |
7980 | instead of unsigned_type_node. | |
7981 | ||
541e35a6 MP |
7982 | 2014-11-28 Marek Polacek <polacek@redhat.com> |
7983 | ||
7984 | PR c/63862 | |
7985 | * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR | |
7986 | to op1_utype. | |
7987 | * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift | |
7988 | expression to unsigned_type_node. | |
7989 | ||
dcc97066 MW |
7990 | 2014-11-20 Mark Wielaard <mjw@redhat.com> |
7991 | ||
7992 | PR debug/38757 | |
7993 | * c-opts.c (set_std_c89): Set lang_hooks.name. | |
7994 | (set_std_c99): Likewise. | |
7995 | (set_std_c11): Likewise. | |
7996 | (set_std_cxx98): Likewise. | |
7997 | (set_std_cxx11): Likewise. | |
7998 | (set_std_cxx14): Likewise. | |
7999 | (set_std_cxx1z): Likewise. | |
8000 | ||
aa7da51a JJ |
8001 | 2014-11-21 Jakub Jelinek <jakub@redhat.com> |
8002 | ||
8003 | PR target/63764 | |
8004 | * c-common.h (convert_vector_to_pointer_for_subscript): Change | |
8005 | return type to bool. | |
009a3480 | 8006 | * c-common.c: Include gimple-expr.h. |
aa7da51a JJ |
8007 | (convert_vector_to_pointer_for_subscript): Change return type to |
8008 | bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true | |
8009 | and copy it into a TARGET_EXPR and use that instead of *vecp | |
8010 | directly. | |
8011 | ||
538dd0b7 DM |
8012 | 2014-11-19 David Malcolm <dmalcolm@redhat.com> |
8013 | ||
8014 | Merger of git branch "gimple-classes-v2-option-3". | |
8015 | * ChangeLog.gimple-classes: New. | |
8016 | * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack" | |
8017 | from being just a vec<gimple> to a vec<gbind *>. | |
8018 | ||
c39a5e99 JJ |
8019 | 2014-11-18 Jakub Jelinek <jakub@redhat.com> |
8020 | ||
8021 | PR sanitizer/63813 | |
8022 | * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type | |
8023 | argument to ptype, set type to TREE_TYPE (ptype). Don't call | |
8024 | get_pointer_alignment for non-pointers. Use ptype, or if it is | |
8025 | reference type, corresponding pointer type, as type of kind | |
8026 | argument. | |
8027 | (ubsan_maybe_instrument_reference, | |
8028 | ubsan_maybe_instrument_member_call): Adjust callers. | |
8029 | ||
8537a4a9 MP |
8030 | 2014-11-15 Marek Polacek <polacek@redhat.com> |
8031 | ||
8032 | PR middle-end/63884 | |
8033 | * array-notation-common.c (is_sec_implicit_index_fn): Return false | |
8034 | for NULL fndecl. | |
8035 | (extract_array_notation_exprs): Return for NULL node. | |
8036 | ||
2079956a JM |
8037 | 2014-11-12 Joseph Myers <joseph@codesourcery.com> |
8038 | ||
8039 | * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and | |
8040 | undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state. | |
8041 | ||
1304953e JJ |
8042 | 2014-11-12 Jakub Jelinek <jakub@redhat.com> |
8043 | ||
8044 | PR c/59708 | |
8045 | * c-common.c (check_builtin_function_arguments): Handle | |
8046 | BUILT_IN_{ADD,SUB,MUL}_OVERFLOW. | |
8047 | ||
e5e44252 AK |
8048 | 2014-11-10 Andi Kleen <ak@linux.intel.com> |
8049 | ||
8050 | PR c/60804 | |
8051 | * c-common.h (check_no_cilk): Declare. | |
8052 | * cilk.c (get_error_location): New function. | |
8053 | (check_no_cilk): Dito. | |
8054 | ||
e64b984d AK |
8055 | 2014-11-10 Andi Kleen <ak@linux.intel.com> |
8056 | ||
8057 | * cilk.c (recognize_spawn): Use expression location | |
8058 | for error message. | |
8059 | ||
13c21655 PC |
8060 | 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com> |
8061 | ||
8062 | * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add. | |
8063 | ||
42fd12b1 ESR |
8064 | 2014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net> |
8065 | ||
8066 | * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros; | |
8067 | (__cpp_rtti, __cpp_exceptions): New macros for C++98; | |
8068 | (__cpp_range_based_for, __cpp_initializer_lists, | |
8069 | __cpp_delegating_constructors, __cpp_nsdmi, | |
8070 | __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros | |
8071 | for C++11; (__cpp_attribute_deprecated): Remove in favor of | |
8072 | __has_cpp_attribute. | |
8073 | * c-lex.c (cb_has_attribute): New callback CPP function; | |
8074 | (init_c_lex): Set has_attribute callback. | |
8075 | ||
6f450181 RB |
8076 | 2014-11-04 Richard Biener <rguenther@suse.de> |
8077 | ||
8078 | * c-common.c (shorten_compare): Do not shorten mixed | |
8079 | DFP and non-DFP compares. | |
8080 | ||
26f0e1d6 ESR |
8081 | 2014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net> |
8082 | ||
8083 | * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests. | |
8084 | * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test. | |
8085 | Commentary and rearrangement of tests. | |
8086 | * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test. | |
8087 | Commentary and rearrangement of tests. | |
ab20d992 | 8088 | * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto. |
26f0e1d6 ESR |
8089 | * g++.dg/cpp1y/feat-cxx98.C: Commentary. |
8090 | ||
ef4bddc2 RS |
8091 | 2014-10-29 Richard Sandiford <richard.sandiford@arm.com> |
8092 | ||
8093 | * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant | |
8094 | enum from machine_mode. | |
8095 | ||
c582198b AM |
8096 | 2014-10-28 Andrew MacLeod <amacleod@redhat.com> |
8097 | ||
adfac8df JJ |
8098 | * c-common.c: Adjust include files. |
8099 | * c-gimplify.c: Ditto. | |
8100 | * cilk.c: Ditto. | |
8101 | * c-pragma.c: Ditto. | |
8102 | * c-ubsan.c: Ditto. | |
c582198b | 8103 | |
60393bbc AM |
8104 | 2014-10-27 Andrew MacLeod <amacleod@redhat.com> |
8105 | ||
8106 | * c-gimplify.c: Adjust include files. | |
8107 | ||
d723bb7c MLI |
8108 | 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org> |
8109 | ||
8110 | PR c++/53061 | |
8111 | * c-opts.c (c_common_diagnostics_set_defaults): Renamed from | |
8112 | c_common_initialize_diagnostics. | |
8113 | * c-common.h: Likewise. | |
8114 | ||
90f3520e MP |
8115 | 2014-10-24 Marek Polacek <polacek@redhat.com> |
8116 | ||
8117 | PR c/56980 | |
8118 | * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't | |
8119 | print "struct"/"union"/"enum" for typedefed names. | |
8120 | ||
59d7607a MP |
8121 | 2014-10-23 Marek Polacek <polacek@redhat.com> |
8122 | ||
8123 | * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR | |
8124 | in unsigned type. | |
8125 | ||
d95a2703 JJ |
8126 | 2014-10-22 Jakub Jelinek <jakub@redhat.com> |
8127 | Yury Gribov <y.gribov@samsung.com> | |
8128 | ||
8129 | * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift, | |
8130 | ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask | |
8131 | instead of flag_sanitize_recover as bool flag. | |
8132 | ||
8e6ef852 KY |
8133 | 2014-10-21 Kirill Yukhin <kirill.yukhin@intel.com> |
8134 | ||
8135 | * cilk.c: Revert previous change. | |
8136 | ||
948cf550 IZ |
8137 | 2014-10-20 Igor Zamyatin <igor.zamyatin@intel.com> |
8138 | ||
8139 | PR c/63307 | |
8140 | * cilk.c: Include vec.h. | |
8141 | (struct cilk_decls): New structure. | |
8142 | (wrapper_parm_cb): Split this function to... | |
8143 | (fill_decls_vec): ...this... | |
8144 | (create_parm_list): ...and this. | |
8145 | (compare_decls): New function. | |
8146 | (for_local_cb): Remove. | |
8147 | (wrapper_local_cb): Ditto. | |
8148 | (build_wrapper_type): For now first traverse and fill vector of | |
8149 | declarations then sort it and then deal with sorted vector. | |
8150 | (cilk_outline): Ditto. | |
8151 | (declare_one_free_variable): Ditto. | |
8152 | ||
92574c7c MP |
8153 | 2014-10-17 Marek Polacek <polacek@redhat.com> |
8154 | ||
8155 | * c-opts.c (c_common_post_options): Set warn_implicit_int. | |
8156 | * c.opt (Wimplicit-int): Initialize to -1. | |
8157 | ||
83685514 AM |
8158 | 2014-10-16 Andrew MacLeod <amacleod@redhat.com> |
8159 | ||
8160 | * c-pragma.c: Adjust include files. | |
8161 | * c-semantics.c: Likewise. | |
8162 | ||
5b8300ea DD |
8163 | 2014-10-16 DJ Delorie <dj@redhat.com> |
8164 | ||
8165 | * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are | |
8166 | multiples of bytes. | |
8167 | ||
5f83e90b JM |
8168 | 2014-10-14 Jason Merrill <jason@redhat.com> |
8169 | ||
8170 | PR c++/63455 | |
8171 | * c-common.h (CPP_PREPARSED_EXPR): New. | |
8172 | (N_CP_TTYPES): Adjust. | |
8173 | ||
d73326ca MP |
8174 | 2014-10-15 Marek Polacek <polacek@redhat.com> |
8175 | ||
8176 | * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C. | |
8177 | ||
78a7c317 DD |
8178 | 2014-10-14 DJ Delorie <dj@redhat.com> |
8179 | ||
8180 | * c-pretty-print.c (pp_c_integer_constant): Check for all __intN | |
8181 | types, not just __int128. | |
8182 | * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN | |
8183 | types, not just __int128. | |
8184 | (cpp_atomic_builtins): Round pointer sizes up. | |
8185 | (type_suffix): Use type precision, not specific types. | |
8186 | * c-common.c (c_common_reswords): Remove __int128 special case. | |
8187 | (c_common_type_for_size): Check for all __intN types, not just | |
8188 | __int128. | |
8189 | (c_common_type_for_mode): Likewise. | |
8190 | (c_common_signed_or_unsigned_type): Likewise. | |
8191 | (c_build_bitfield_integer_type): Likewise. | |
8192 | (c_common_nodes_and_builtins): Likewise. | |
8193 | (keyword_begins_type_specifier): Likewise. | |
8194 | * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all | |
8195 | __intN variants. | |
8196 | ||
2a22f99c TS |
8197 | 2014-10-12 Trevor Saunders <tsaunders@mozilla.com> |
8198 | ||
8199 | * c-common.c: Use hash_table instead of hashtab. | |
8200 | ||
2a8ef767 ESR |
8201 | 2014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net> |
8202 | ||
adfac8df | 8203 | * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the |
2a8ef767 ESR |
8204 | C++11 section. |
8205 | ||
3c9aabbd MG |
8206 | 2014-10-03 Marc Glisse <marc.glisse@inria.fr> |
8207 | ||
8208 | PR c++/54427 | |
8209 | PR c++/57198 | |
8210 | PR c++/58845 | |
8211 | * c-common.c (warn_logical_operator): Punt for vectors. | |
8212 | ||
a15f7cb8 ESR |
8213 | 2014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net> |
8214 | ||
8215 | Implement SD-6: SG10 Feature Test Recommendations | |
8216 | * c-cppbuiltin.c (c_cpp_builtins()): Define language feature | |
8217 | macros and the __has_header macro. | |
8218 | ||
8d0cf15e JM |
8219 | 2014-09-30 Jason Merrill <jason@redhat.com> |
8220 | ||
dd5d5481 JM |
8221 | * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and |
8222 | RID_IS_TRIVIALLY_CONSTRUCTIBLE. | |
8223 | * c-common.c (c_common_reswords): Add __is_trivially_copyable. | |
8224 | ||
b752325e JM |
8225 | * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE. |
8226 | * c-common.c (c_common_reswords): Add __is_trivially_copyable. | |
8227 | ||
8d0cf15e JM |
8228 | * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO. |
8229 | * c-common.c (c_common_reswords): Remove __is_convertible_to. | |
8230 | ||
083e891e MP |
8231 | 2014-09-24 Marek Polacek <polacek@redhat.com> |
8232 | ||
8233 | PR c/61405 | |
8234 | PR c/53874 | |
8235 | * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD. | |
8236 | ||
7861b648 AK |
8237 | 2014-09-23 Andi Kleen <ak@linux.intel.com> |
8238 | ||
8239 | * c-common.c (handle_no_reorder_attribute): New function. | |
8240 | (c_common_attribute_table): Add no_reorder attribute. | |
8241 | ||
9a79452d JM |
8242 | 2014-09-22 Joseph Myers <joseph@codesourcery.com> |
8243 | ||
8244 | * c-cppbuiltin.c (c_cpp_builtins): Define | |
8245 | __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point | |
8246 | modes. | |
8247 | ||
dd69f047 JM |
8248 | 2014-09-18 Joseph Myers <joseph@codesourcery.com> |
8249 | ||
8250 | * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__ | |
8251 | for supported floating-point modes. | |
8252 | ||
737a4826 MLI |
8253 | 2014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org> |
8254 | ||
8255 | * c.opt (Wpsabi): Use LangEnabledBy. | |
8256 | * c-opts.c (c_common_handle_option): Do not handle here. | |
8257 | ||
8cc4b7a2 JM |
8258 | 2014-09-12 Joseph Myers <joseph@codesourcery.com> |
8259 | ||
8260 | * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__ | |
8261 | macros for floating-point modes. | |
8262 | ||
179b5a55 MG |
8263 | 2014-09-11 Marc Glisse <marc.glisse@inria.fr> |
8264 | ||
8265 | PR target/58757 | |
8266 | * c-cppbuiltin.c (builtin_define_float_constants): Correct | |
8267 | __*_DENORM_MIN__ without denormals. | |
8268 | ||
570a11fe JJ |
8269 | 2014-09-10 Jakub Jelinek <jakub@redhat.com> |
8270 | ||
8271 | * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift, | |
8272 | ubsan_instrument_vla, ubsan_instrument_return): Adjust | |
8273 | ubsan_create_data callers. | |
8274 | (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if | |
8275 | index is constant or BIT_AND_EXPR with constant mask and is | |
8276 | small enough for the bound. | |
8277 | * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of | |
8278 | ARRAY_REF, make sure the inner ARRAY_REF is not walked again. | |
8279 | ||
b559c810 MLI |
8280 | 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org> |
8281 | ||
8282 | * c.opt: Add CppReason to various flags. | |
8283 | (Wdate-time): Re-sort. | |
8284 | * c-common.c: Include c-common.h earlier. | |
8285 | (struct reason_option_codes_t): Delete. | |
8286 | (c_option_controlling_cpp_error): Prefix global type and struct | |
8287 | with cpp_. | |
8288 | ||
1ef33fd4 MLI |
8289 | 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org> |
8290 | ||
8291 | * c.opt (Wnormalized): New. | |
8292 | (Wnormalized=): Use Enum and Reject Negative. | |
8293 | * c-opts.c (c_common_handle_option): Do not handle Wnormalized here. | |
8294 | ||
66bb34c0 JM |
8295 | 2014-09-08 Joseph Myers <joseph@codesourcery.com> |
8296 | ||
8297 | * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa | |
8298 | digits of floating-point modes if -fbuilding-libgcc. | |
8299 | ||
53d68b9f JM |
8300 | 2014-09-05 Joseph Myers <joseph@codesourcery.com> |
8301 | ||
8302 | * c-cppbuiltin.c (c_cpp_builtins): Also define | |
8303 | __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__, | |
8304 | __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__, | |
8305 | __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__, | |
8306 | __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__, | |
8307 | __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__, | |
8308 | __LIBGCC_STACK_GROWS_DOWNWARD__, | |
8309 | __LIBGCC_DONT_USE_BUILTIN_SETJMP__, | |
8310 | __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__, | |
8311 | __LIBGCC_DWARF_FRAME_REGISTERS__, | |
8312 | __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__, | |
8313 | __LIBGCC_STACK_POINTER_REGNUM__ and | |
8314 | __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc. | |
8315 | (builtin_define_with_value): Handle backslash-escaping in string | |
8316 | macro values. | |
8317 | ||
f65586dc RB |
8318 | 2014-09-05 Richard Biener <rguenther@suse.de> |
8319 | ||
8320 | PR middle-end/63148 | |
8321 | * c-format.c (check_format_arg): Properly handle | |
8322 | effectively signed POINTER_PLUS_EXPR offset. | |
8323 | ||
2b71f4a4 MLI |
8324 | 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org> |
8325 | ||
8326 | * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels, | |
8327 | Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic, | |
8328 | (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var | |
8329 | and Init. | |
8330 | * c-opts.c (c_common_handle_option): Do not handle here. | |
8331 | (sanitize_cpp_opts): Likewise. | |
8332 | * c-common.c (struct reason_option_codes_t): Handle | |
8333 | CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC. | |
8334 | ||
d2e4feca MP |
8335 | 2014-09-03 Marek Polacek <polacek@redhat.com> |
8336 | ||
8337 | * c.opt (Wlogical-not-parentheses): Enable by -Wall. | |
8338 | ||
9a771876 JJ |
8339 | 2014-09-02 Jakub Jelinek <jakub@redhat.com> |
8340 | Balaji V. Iyer <balaji.v.iyer@intel.com> | |
8341 | Igor Zamyatin <igor.zamyatin@intel.com> | |
8342 | ||
8343 | * c-cilkplus.c (cilk_for_number_of_iterations): New function. | |
8344 | * c-common.c (c_common_reswords): Added _Cilk_for. | |
8345 | * c-common.h (enum rid): Added RID_CILK_FOR. | |
8346 | (cilk_for_number_of_iterations): Add declaration. | |
8347 | * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and | |
8348 | CILK_FOR. | |
8349 | * c-pragma.c (init_pragma): Register "grainsize" pragma. | |
8350 | * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE. | |
8351 | ||
81b5d104 MLI |
8352 | 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org> |
8353 | ||
8354 | * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels, | |
8355 | Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs, | |
8356 | Wundef): Use CPP, Var and Init. | |
8357 | * c-opts.c (c_common_handle_option): Do not handle the above flags here. | |
8358 | ||
b753b37b MLI |
8359 | 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org> |
8360 | ||
8361 | * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init. | |
8362 | * c-opts.c (c_common_handle_option): Do not handle here. | |
8363 | ||
028aee17 JM |
8364 | 2014-08-25 Jason Merrill <jason@redhat.com> |
8365 | ||
8366 | * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for | |
8367 | -std=c++14 and -std=gnu++14, rather than the reverse. | |
8368 | * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and | |
8369 | OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14. | |
8370 | * c-common.h (cxx_dialect): Remove cxx1y. | |
8371 | ||
e4276ba5 ESR |
8372 | 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net> |
8373 | ||
8374 | * c-common.h (enum cxx_dialect): Add cxx14. | |
8375 | * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14. | |
8376 | * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from | |
8377 | cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11. | |
8378 | ||
a545cacd JM |
8379 | 2014-08-22 Jason Merrill <jason@redhat.com> |
8380 | ||
8381 | * c.opt (std=gnu++17): Fix alias. | |
8382 | ||
59ea0364 MP |
8383 | 2014-08-22 Marek Polacek <polacek@redhat.com> |
8384 | ||
8385 | PR c++/62199 | |
8386 | * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't | |
8387 | check for vector types. Drop LHS argument. | |
8388 | * c-common.h (warn_logical_not_parentheses): Adjust. | |
8389 | ||
596e808c MLI |
8390 | 2014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org> |
8391 | ||
8392 | * c.opt (Wcomment): Use CPP, Var and LangEnabledBy. | |
8393 | (Wmultichar): Likewise. | |
8394 | (Wdate-time): Use C-family languages instead of Common. Use CPP | |
8395 | and Var. | |
8396 | * c-opts.c (c_common_handle_option): Do not handle the above | |
8397 | options here. | |
8398 | (sanitize_cpp_opts): Likewise. | |
8399 | ||
18767f65 MLI |
8400 | 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org> |
8401 | ||
8402 | PR fortran/44054 | |
8403 | * c-opts.c: Include tree-diagnostics.h. | |
8404 | (c_diagnostic_finalizer): New. | |
8405 | (c_common_initialize_diagnostics): Use it. | |
8406 | ||
b4413594 MLI |
8407 | 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org> |
8408 | ||
8409 | PR preprocessor/51303 | |
8410 | * c-common.c (struct reason_option_codes_t option_codes): | |
8411 | Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically. | |
8412 | ||
43f9a13c MLI |
8413 | 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org> |
8414 | ||
8415 | PR c/60975 | |
8416 | PR c/53063 | |
8417 | * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy. | |
8418 | * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto. | |
8419 | (c_common_post_options): Call init_global_opts_from_cpp. | |
8420 | (sanitize_cpp_opts): Do not handle Wvariadic-macros here. | |
8421 | ||
04159acf MP |
8422 | 2014-08-19 Marek Polacek <polacek@redhat.com> |
8423 | ||
8424 | PR c++/62153 | |
8425 | * c-common.c (maybe_warn_bool_compare): New function. | |
8426 | * c-common.h (maybe_warn_bool_compare): Declare. | |
8427 | * c.opt (Wbool-compare): New option. | |
8428 | ||
35aff4fb MP |
8429 | 2014-08-19 Marek Polacek <polacek@redhat.com> |
8430 | ||
8431 | * c.opt (Wc99-c11-compat): New option. | |
8432 | ||
177cce46 MP |
8433 | 2014-08-19 Marek Polacek <polacek@redhat.com> |
8434 | ||
8435 | * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according | |
8436 | to warn_c90_c99_compat. | |
8437 | * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize | |
8438 | to -1. | |
8439 | ||
6ae9194f MLI |
8440 | 2014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org> |
8441 | Steven Bosscher <steven@gcc.gnu.org> | |
8442 | ||
8443 | PR c/52952 | |
8444 | * c-format.c: Add extra_arg_loc and format_string_loc to struct | |
8445 | format_check_results. | |
8446 | (check_function_format): Use true and add comment for boolean | |
8447 | argument. | |
8448 | (finish_dollar_format_checking): Use explicit location when warning. | |
8449 | (check_format_info): Likewise. | |
8450 | (check_format_arg): Set extra_arg_loc and format_string_loc. | |
8451 | (check_format_info_main): Use explicit location when warning. | |
8452 | (check_format_types): Pass explicit location. | |
8453 | (format_type_warning): Likewise. | |
8454 | ||
8e54f6d3 MLI |
8455 | 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org> |
8456 | ||
8457 | PR fortran/44054 | |
8458 | * c-format.c: Handle Fortran flags. | |
8459 | ||
cd4e76fc IZ |
8460 | 2014-08-12 Igor Zamyatin <igor.zamyatin@intel.com> |
8461 | ||
8462 | PR other/61962 | |
8463 | * array-notation-common.c (find_rank): Added handling for other | |
8464 | types of references. | |
8465 | ||
f3bede71 MP |
8466 | 2014-08-10 Marek Polacek <polacek@redhat.com> |
8467 | ||
8468 | PR c/51849 | |
8469 | * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp. | |
8470 | * c.opt (Wc90-c99-compat): Add option. | |
8471 | ||
9f25a338 TS |
8472 | 2014-08-07 Trevor Saunders <tsaunders@mozilla.com> |
8473 | ||
8474 | * c-gimplify.c, cilk.c: Remove includes of pointer-set.h. | |
8475 | ||
62e4eb35 MP |
8476 | 2014-08-03 Marek Polacek <polacek@redhat.com> |
8477 | ||
ab20d992 | 8478 | * c-common.c (check_case_value): Add location_t parameter. Use it. |
62e4eb35 MP |
8479 | (c_add_case_label): Pass loc to check_case_value. |
8480 | ||
b787e7a2 TS |
8481 | 2014-08-02 Trevor Saunders <tsaunders@mozilla.com> |
8482 | ||
8483 | * cilk.c: Use hash_map instead of pointer_map. | |
8484 | ||
6e2830c3 TS |
8485 | 2014-08-02 Trevor Saunders <tsaunders@mozilla.com> |
8486 | ||
8487 | * c-gimplify.c: Use hash_set instead of pointer_set. | |
8488 | ||
a7ee52fb IZ |
8489 | 2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com> |
8490 | ||
8491 | PR middle-end/61455 | |
8492 | * array-notation-common.c (extract_array_notation_exprs): Handling | |
8493 | of DECL_EXPR added. | |
8494 | ||
944fa280 JJ |
8495 | 2014-08-01 Jakub Jelinek <jakub@redhat.com> |
8496 | ||
8497 | * c-common.h (min_align_of_type): Removed prototype. | |
8498 | * c-common.c (min_align_of_type): Removed. | |
8499 | * c-ubsan.h (ubsan_maybe_instrument_reference, | |
8500 | ubsan_maybe_instrument_member_call): New prototypes. | |
8501 | * c-ubsan.c: Include stor-layout.h and builtins.h. | |
8502 | (ubsan_maybe_instrument_reference_or_call, | |
8503 | ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New | |
8504 | functions. | |
8505 | ||
b4dfdc11 MG |
8506 | 2014-07-31 Marc Glisse <marc.glisse@inria.fr> |
8507 | ||
8508 | PR c++/60517 | |
8509 | * c.opt (-Wreturn-local-addr): Move to common.opt. | |
8510 | ||
a41844e5 JM |
8511 | 2014-07-30 Jason Merrill <jason@redhat.com> |
8512 | ||
8513 | PR c++/61659 | |
8514 | PR c++/61687 | |
8515 | Revert: | |
8516 | * c.opt (-fuse-all-virtuals): New. | |
8517 | ||
976d5a22 TT |
8518 | 2014-07-30 Tom Tromey <tromey@redhat.com> |
8519 | ||
8520 | PR c/59855 | |
8521 | * c.opt (Wdesignated-init): New option. | |
8522 | * c-common.c (c_common_attribute_table): Add "designated_init". | |
8523 | (handle_designated_init): New function. | |
8524 | ||
cdc94aca MP |
8525 | 2014-07-24 Marek Polacek <polacek@redhat.com> |
8526 | ||
8527 | PR c/57653 | |
8528 | * c-opts.c (c_finish_options): If -imacros is in effect, return. | |
8529 | ||
f41373b6 DS |
8530 | 2014-07-16 Dodji Seketeli <dodji@redhat.com> |
8531 | ||
8532 | PR preprocessor/60723 - missing system-ness marks for macro tokens | |
8533 | * c-ppoutput.c (struct print::prev_was_system_token): New data | |
8534 | member. | |
8535 | (init_pp_output): Initialize it. | |
8536 | (maybe_print_line_1, maybe_print_line, print_line_1, print_line) | |
8537 | (do_line_change): Return a flag saying if a line marker was | |
8538 | emitted or not. | |
8539 | (scan_translation_unit): Detect if the system-ness of the token we | |
8540 | are about to emit is different from the one of the previously | |
8541 | emitted token. If so, emit a line marker. Avoid emitting useless | |
8542 | adjacent line markers. Avoid emitting line markers for tokens | |
8543 | originating from the expansion of built-in macros. | |
8544 | (scan_translation_unit_directives_only): Adjust. | |
8545 | ||
4d661eaa MP |
8546 | 2014-07-15 Marek Polacek <polacek@redhat.com> |
8547 | ||
8548 | * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if | |
8549 | TYPE_MAX_VALUE is NULL. | |
8550 | ||
b108f48f JJ |
8551 | 2014-07-14 Jakub Jelinek <jakub@redhat.com> |
8552 | ||
8553 | PR middle-end/61294 | |
8554 | * c.opt (Wmemset-transposed-args): New warning. | |
8555 | ||
c0221884 JM |
8556 | 2014-07-10 Jason Merrill <jason@redhat.com> |
8557 | ||
8558 | PR c++/61659 | |
8559 | PR c++/61687 | |
8560 | * c.opt (-fuse-all-virtuals): New. | |
8561 | ||
63dfbb95 RB |
8562 | 2014-07-09 Richard Biener <rguenther@suse.de> |
8563 | ||
8564 | PR c-family/61741 | |
8565 | * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions | |
8566 | using unsigned arithmetic if overflow does not wrap instead of | |
8567 | if overflow is undefined. | |
8568 | ||
773ec47f MP |
8569 | 2014-07-06 Marek Polacek <polacek@redhat.com> |
8570 | ||
8571 | PR c/6940 | |
8572 | * c.opt (Wsizeof-array-argument): New option. | |
8573 | ||
00a7ba58 JJ |
8574 | 2014-07-03 Jakub Jelinek <jakub@redhat.com> |
8575 | ||
b1726d6c | 8576 | * c-ada-spec.c (dump_ada_nodes): Don't call qsort if |
00a7ba58 JJ |
8577 | comments->count <= 1, as comments->entries might be NULL. |
8578 | ||
52ec0ea3 MP |
8579 | 2014-07-01 Marek Polacek <polacek@redhat.com> |
8580 | ||
8581 | * c.opt (Wint-conversion): New option. | |
8582 | ||
d5c3d343 MP |
8583 | 2014-07-01 Marek Polacek <polacek@redhat.com> |
8584 | ||
8585 | PR c/58286 | |
8586 | * c.opt (Wincompatible-pointer-types): New option. | |
8587 | ||
6e7ceb17 PC |
8588 | 2014-06-30 Paolo Carlini <paolo.carlini@oracle.com> |
8589 | ||
8590 | PR c++/51400 | |
8591 | * c-common.c (handle_noreturn_attribute, handle_const_attribute): | |
8592 | Do not discard TYPE_QUALS of type. | |
8593 | ||
da73100b JM |
8594 | 2014-06-26 Jason Merrill <jason@redhat.com> |
8595 | ||
8596 | * c-common.h (enum cxx_dialect): Add cxx1z. | |
8597 | * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New. | |
8598 | * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it. | |
8599 | ||
08eedf75 TJ |
8600 | 2014-06-26 Teresa Johnson <tejohnson@google.com> |
8601 | ||
8602 | * c-common.h (get_dump_info): Declare. | |
8603 | * c-gimplify.c (c_genericize): Use saved dump files. | |
8604 | * c-opts.c (c_common_parse_file): Begin and end dumps | |
8605 | once around parsing invocation. | |
8606 | (get_dump_info): New function. | |
8607 | ||
7b56b2f8 MP |
8608 | 2014-06-23 Marek Polacek <polacek@redhat.com> |
8609 | Andrew MacLeod <amacleod@redhat.com> | |
8610 | ||
8611 | PR c/61553 | |
8612 | * c-common.c (get_atomic_generic_size): Don't segfault if the | |
8613 | type doesn't have a size. | |
8614 | ||
0e37a2f3 MP |
8615 | 2014-06-20 Marek Polacek <polacek@redhat.com> |
8616 | ||
8617 | * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h". | |
8618 | (ubsan_walk_array_refs_r): New function. | |
8619 | (c_genericize): Instrument array bounds. | |
8620 | * c-ubsan.c: Include "internal-fn.h". | |
8621 | (ubsan_instrument_division): Mark instrumented arrays as having | |
8622 | side effects. Adjust ubsan_type_descriptor call. | |
8623 | (ubsan_instrument_shift): Likewise. | |
8624 | (ubsan_instrument_vla): Adjust ubsan_type_descriptor call. | |
8625 | (ubsan_instrument_bounds): New function. | |
8626 | (ubsan_array_ref_instrumented_p): New function. | |
8627 | (ubsan_maybe_instrument_array_ref): New function. | |
8628 | * c-ubsan.h (ubsan_instrument_bounds): Declare. | |
8629 | (ubsan_array_ref_instrumented_p): Declare. | |
8630 | (ubsan_maybe_instrument_array_ref): Declare. | |
8631 | ||
8632 | 2014-06-20 Hale Wang <hale.wang@arm.com> | |
dd6fe7d4 HW |
8633 | |
8634 | PR lto/61123 | |
8635 | * c.opt (fshort-enums): Add to LTO. | |
8636 | * c.opt (fshort-wchar): Likewise. | |
8637 | ||
5c3d09f7 MP |
8638 | 2014-06-16 Marek Polacek <polacek@redhat.com> |
8639 | ||
8640 | PR c/60439 | |
8641 | * c.opt (Wswitch-bool): Add Var. | |
8642 | ||
9cf32741 JJ |
8643 | 2014-06-12 Jakub Jelinek <jakub@redhat.com> |
8644 | ||
8645 | PR middle-end/61486 | |
8646 | * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in | |
8647 | #pragma omp target teams or | |
8648 | #pragma omp {,target }teams distribute simd. | |
8649 | ||
62984918 JM |
8650 | 2014-06-12 Jason Merrill <jason@redhat.com> |
8651 | ||
8652 | * c.opt (Wabi=, fabi-compat-version): New. | |
8653 | * c-opts.c (c_common_handle_option): Handle -Wabi=. | |
8654 | (c_common_post_options): Handle flag_abi_compat_version default. | |
8655 | Disallow -fabi-compat-version=1. | |
8656 | * c-common.h (abi_version_crosses): New. | |
8657 | ||
f961457f JH |
8658 | 2014-06-11 Jan Hubicka <hubicka@ucw.cz> |
8659 | ||
adfac8df | 8660 | * c-common.c (handle_section_attribute): Update handling for |
f961457f JH |
8661 | section names that are no longer trees. |
8662 | ||
92d28cbb JJ |
8663 | 2014-06-10 Jakub Jelinek <jakub@redhat.com> |
8664 | ||
8665 | PR fortran/60928 | |
8666 | * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK... | |
8667 | (omp_pragmas): ... back here. | |
8668 | ||
742938c9 MP |
8669 | 2014-06-05 Marek Polacek <polacek@redhat.com> |
8670 | ||
8671 | PR c/49706 | |
8672 | * c-common.c (warn_logical_not_parentheses): New function. | |
8673 | * c-common.h (warn_logical_not_parentheses): Declare. | |
8674 | * c.opt (Wlogical-not-parentheses): New option. | |
8675 | ||
9d548dfb MP |
8676 | 2014-06-04 Marek Polacek <polacek@redhat.com> |
8677 | ||
8678 | PR c/30020 | |
8679 | * c-common.c (check_case_bounds): Add location parameter. | |
8680 | Use it. | |
8681 | (c_add_case_label): Pass loc to check_case_bounds. | |
8682 | ||
fedfecef MP |
8683 | 2014-06-03 Marek Polacek <polacek@redhat.com> |
8684 | ||
8685 | PR c/60439 | |
8686 | * c.opt (Wswitch-bool): New option. | |
8687 | ||
f6a7cffc TS |
8688 | 2014-05-22 Thomas Schwinge <thomas@codesourcery.com> |
8689 | ||
040d18b6 TS |
8690 | * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl): |
8691 | Remove prototypes. | |
8692 | (record_types_used_by_current_var_decl): Move prototype to where | |
8693 | it belongs. | |
8694 | ||
f6a7cffc TS |
8695 | * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6) |
8696 | (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8) | |
8697 | (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes. | |
8698 | ||
632f2871 RS |
8699 | 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com> |
8700 | ||
8701 | * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete. | |
8702 | * c-common.c (c_common_nodes_and_builtins): Don't initialize | |
8703 | void_zero_node. | |
8704 | * c-pretty-print.c (pp_c_void_constant): New function. | |
8705 | (c_pretty_printer::constant, c_pretty_printer::primary_expression) | |
8706 | (c_pretty_printer::expression): Handle VOID_CST. | |
8707 | * cilk.c (extract_free_variables): Likewise. | |
8708 | * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift) | |
8709 | (ubsan_instrument_vla): Use void_node instead of void_zero_node. | |
8710 | ||
766090c2 TS |
8711 | 2014-05-17 Trevor Saunders <tsaunders@mozilla.com> |
8712 | ||
8713 | * c-common.h (sorted_fields_type): Remove variable_size GTY attribute. | |
8714 | * c-pragma.c (push_alignment): Adjust. | |
8715 | (handle_pragma_push_options): Likewise. | |
8716 | ||
661a0813 MP |
8717 | 2014-05-09 Marek Polacek <polacek@redhat.com> |
8718 | ||
8719 | PR c/50459 | |
8720 | * c-common.c (check_user_alignment): Return -1 if alignment is error | |
8721 | node. | |
8722 | (handle_aligned_attribute): Don't call default_conversion on | |
8723 | FUNCTION_DECLs. | |
8724 | (handle_vector_size_attribute): Likewise. | |
8725 | (handle_tm_wrap_attribute): Handle case when wrap_decl is error node. | |
8726 | (handle_sentinel_attribute): Call default_conversion and allow even | |
8727 | integral types as an argument. | |
8728 | ||
2793eeab MP |
8729 | 2014-05-08 Marek Polacek <polacek@redhat.com> |
8730 | ||
8731 | PR c/61053 | |
8732 | * c-common.c (min_align_of_type): New function factored out from... | |
8733 | (c_sizeof_or_alignof_type): ...here. | |
8734 | * c-common.h (min_align_of_type): Declare. | |
8735 | ||
f827930a MP |
8736 | 2014-05-08 Marek Polacek <polacek@redhat.com> |
8737 | ||
8738 | PR c/61077 | |
8739 | * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified | |
8740 | parameter type of main. | |
8741 | ||
ca49b74e DD |
8742 | 2014-05-07 DJ Delorie <dj@redhat.com> |
8743 | ||
8744 | * c-cppbuiltin.c (print_bits_of_hex): New. | |
8745 | (builtin_define_type_minmax): Print values using hex so as not to | |
8746 | require a pre-computed list of string values. | |
8747 | ||
1d60af08 KZ |
8748 | 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com> |
8749 | Mike Stump <mikestump@comcast.net> | |
8750 | Richard Sandiford <rdsandiford@googlemail.com> | |
8751 | ||
8752 | * c-ada-spec.c: Include wide-int.h. | |
8753 | (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove. | |
8754 | (dump_generic_ada_node): Use wide-int interfaces. | |
8755 | * c-common.c: Include wide-int-print.h. | |
8756 | (shorten_compare): Use wide-int interfaces and tree_int_cst_lt. | |
8757 | (pointer_int_sum): Use wide-int interfaces. | |
8758 | (c_common_nodes_and_builtins): Use make_int_cst. | |
8759 | (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p. | |
8760 | (handle_alloc_size_attribute): Use wide-int interfaces. | |
8761 | (get_nonnull_operand): Likewise. | |
8762 | * c-format.c (get_constant): Use tree_fits_uhwi_p. | |
8763 | * c-lex.c: Include wide-int.h. | |
8764 | (narrowest_unsigned_type): Take a widest_int rather than two | |
8765 | HOST_WIDE_INTs. | |
8766 | (narrowest_signed_type): Likewise. | |
8767 | (interpret_integer): Update accordingly. Use wide-int interfaces. | |
8768 | (lex_charconst): Use wide-int interfaces. | |
8769 | * c-pretty-print.c: Include wide-int.h. | |
8770 | (pp_c_integer_constant): Use wide-int interfaces. | |
8771 | * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of | |
8772 | INT_CST_LT_UNSIGNED. | |
8773 | ||
b15458be RB |
8774 | 2014-05-06 Richard Biener <rguenther@suse.de> |
8775 | ||
8776 | * c-opts.c (c_common_post_options): For -freestanding, | |
8777 | -fno-hosted and -fno-builtin disable pattern recognition | |
8778 | if not enabled explicitely. | |
8779 | ||
6577374e MP |
8780 | 2014-05-02 Marek Polacek <polacek@redhat.com> |
8781 | ||
8782 | * c.opt (Wsizeof-pointer-memaccess): Describe option. | |
8783 | ||
d00887e8 MP |
8784 | 2014-05-01 Marek Polacek <polacek@redhat.com> |
8785 | ||
8786 | PR c/43245 | |
8787 | * c.opt (Wdiscarded-qualifiers): Add. | |
8788 | ||
f8ed5150 MP |
8789 | 2014-04-30 Marek Polacek <polacek@redhat.com> |
8790 | ||
8791 | * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform | |
8792 | INT_MIN / -1 sanitization only for integer types. | |
8793 | ||
45484dcf MP |
8794 | 2014-04-25 Marek Polacek <polacek@redhat.com> |
8795 | ||
8796 | PR c/18079 | |
8797 | * c-common.c (handle_noinline_attribute): Warn if the attribute | |
8798 | conflicts with always_inline attribute. | |
8799 | (handle_always_inline_attribute): Warn if the attribute conflicts | |
8800 | with noinline attribute. | |
8801 | ||
38e514c0 MP |
8802 | 2014-04-25 Marek Polacek <polacek@redhat.com> |
8803 | ||
8804 | PR c/60156 | |
8805 | * c-common.c (check_main_parameter_types): Warn about variadic main. | |
8806 | ||
44875f92 MS |
8807 | 2014-04-24 Mike Stump <mikestump@comcast.net> |
8808 | ||
8809 | * c.opt (Wshadow-ivar): Default to on. | |
8810 | ||
dcaaa5a0 DP |
8811 | 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com> |
8812 | ||
8813 | * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add. | |
8814 | ||
c07d7c02 MP |
8815 | 2014-04-23 Marek Polacek <polacek@redhat.com> |
8816 | ||
8817 | * c-common.c (handle_tm_wrap_attribute): Tweak error message. | |
8818 | ||
1c33c9b7 JJ |
8819 | 2014-04-22 Jakub Jelinek <jakub@redhat.com> |
8820 | ||
8821 | PR sanitizer/60275 | |
8822 | * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap () | |
8823 | if flag_sanitize_undefined_trap_on_error. | |
8824 | (ubsan_instrument_division, ubsan_instrument_shift, | |
8825 | ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort () | |
8826 | if !flag_sanitize_recover. | |
8827 | ||
793c625f MG |
8828 | 2014-04-22 Marc Glisse <marc.glisse@inria.fr> |
8829 | ||
8830 | PR libstdc++/43622 | |
8831 | * c-common.c (registered_builtin_types): Make non-static. | |
8832 | * c-common.h (registered_builtin_types): Declare. | |
8833 | ||
b0f1bf36 | 8834 | 2014-04-14 Richard Biener <rguenther@suse.de> |
ab20d992 | 8835 | Marc Glisse <marc.glisse@inria.fr> |
b0f1bf36 RB |
8836 | |
8837 | PR c/60819 | |
8838 | * c-common.c (convert_vector_to_pointer_for_subscript): Properly | |
8839 | apply may-alias the scalar pointer type when applicable. | |
8840 | ||
3b07fa4a IZ |
8841 | 2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com> |
8842 | ||
8843 | PR middle-end/60467 | |
8844 | * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL | |
8845 | as possible argument for Cilk_spawn. | |
8846 | ||
cbbd2b1c TB |
8847 | 2014-04-11 Tobias Burnus <burnus@net-b.de> |
8848 | ||
8849 | PR c/60194 | |
8850 | * c.opt (Wformat-signedness): Add | |
8851 | * c-format.c(check_format_types): Use it. | |
8852 | ||
6415bd5d JM |
8853 | 2014-04-11 Jason Merrill <jason@redhat.com> |
8854 | ||
8855 | PR c++/57926 | |
8856 | * c-common.c (sync_resolve_size, get_atomic_generic_size): Call | |
8857 | default_conversion for an array argument. | |
8858 | ||
6525783a MP |
8859 | 2014-04-08 Marek Polacek <polacek@redhat.com> |
8860 | ||
8861 | PR sanitizer/60745 | |
8862 | * c-ubsan.c: Include asan.h. | |
8863 | (ubsan_instrument_return): Call initialize_sanitizer_builtins. | |
8864 | ||
880a467b NS |
8865 | 2014-04-03 Nathan Sidwell <nathan@codesourcery.com> |
8866 | ||
8867 | * c.opt (Wnon-virtual-dtor): Auto set when Weffc++. | |
8868 | ||
7b59ff2d MP |
8869 | 2014-04-02 Marek Polacek <polacek@redhat.com> |
8870 | ||
8871 | * c-common.h (c_expand_expr): Remove declaration. | |
8872 | ||
8edbfaa6 JJ |
8873 | 2014-03-28 Jakub Jelinek <jakub@redhat.com> |
8874 | ||
8875 | PR c++/60689 | |
8876 | * c-common.c (add_atomic_size_parameter): When creating new | |
8877 | params vector, push the size argument first. | |
8878 | ||
07d72e1d JJ |
8879 | 2014-03-26 Jakub Jelinek <jakub@redhat.com> |
8880 | ||
8881 | * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift, | |
8882 | ubsan_instrument_vla, ubsan_instrument_return): Adjust | |
8883 | ubsan_create_data callers. | |
8884 | ||
b35e0fa0 JJ |
8885 | 2014-03-22 Jakub Jelinek <jakub@redhat.com> |
8886 | ||
8887 | PR debug/60603 | |
8888 | * c-opts.c (c_finish_options): Restore cb_file_change call to | |
8889 | <built-in>. | |
8890 | ||
39a1ebb3 JJ |
8891 | 2014-03-13 Jakub Jelinek <jakub@redhat.com> |
8892 | ||
8893 | PR middle-end/36282 | |
8894 | * c-pragma.c (apply_pragma_weak): Only look at | |
8895 | TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if | |
8896 | DECL_ASSEMBLER_NAME_SET_P (decl). | |
8897 | (maybe_apply_pending_pragma_weaks): Exit early if | |
8898 | vec_safe_is_empty (pending_weaks) rather than only when | |
8899 | !pending_weaks. | |
8900 | (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P, | |
8901 | set assembler name back to NULL afterwards. | |
8902 | ||
a07f6ed2 JM |
8903 | 2014-03-11 Jason Merrill <jason@redhat.com> |
8904 | ||
8905 | * c.opt: Add -std=gnu++14. | |
8906 | ||
75b107f5 IB |
8907 | 2014-03-11 Ian Bolton <ian.bolton@arm.com> |
8908 | ||
8909 | * c-opts.c (c_common_post_options): Don't override | |
8910 | -ffp-contract=fast if unsafe-math-optimizations is on. | |
8911 | ||
f42c637e PM |
8912 | 2014-03-08 Paulo Matos <paulo@matos-sorge.com> |
8913 | ||
22b15758 | 8914 | * c.opt: Enable LTO FE for fshort-double. |
f42c637e | 8915 | |
70e24808 JM |
8916 | 2014-03-07 Jason Merrill <jason@redhat.com> |
8917 | ||
8918 | * c.opt: Add -std=c++14. | |
8919 | ||
3af9c5e9 MP |
8920 | 2014-03-06 Marek Polacek <polacek@redhat.com> |
8921 | ||
8922 | PR c/60197 | |
8923 | * cilk.c (contains_cilk_spawn_stmt): New function. | |
8924 | (contains_cilk_spawn_stmt_walker): Likewise. | |
8925 | (recognize_spawn): Give error on invalid use of _Cilk_spawn. | |
8926 | * c-common.h (contains_cilk_spawn_stmt): Add declaration. | |
8927 | ||
b3bdf019 JJ |
8928 | 2014-03-03 Jakub Jelinek <jakub@redhat.com> |
8929 | ||
8930 | * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD. | |
8931 | (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD | |
8932 | even when flag_preprocess_only. | |
8933 | ||
ca7e759d JM |
8934 | 2014-02-26 Jason Merrill <jason@redhat.com> |
8935 | ||
8936 | PR c++/59231 | |
8937 | PR c++/11586 | |
8938 | * c-common.c (shorten_compare): Don't check | |
8939 | c_inhibit_evaluation_warnings. | |
8940 | ||
28e41874 JJ |
8941 | 2014-02-19 Jakub Jelinek <jakub@redhat.com> |
8942 | ||
cca615af JJ |
8943 | PR c/37743 |
8944 | * c-common.c (c_common_nodes_and_builtins): When initializing | |
8945 | c_uint{16,32,64}_type_node, also set corresponding | |
8946 | uint{16,32,64}_type_node to the same value. | |
8947 | ||
28e41874 JJ |
8948 | PR c++/60267 |
8949 | * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma | |
8950 | for PRAGMA_IVDEP if flag_preprocess_only. | |
8951 | ||
c2bf53a1 JJ |
8952 | 2014-02-12 Jakub Jelinek <jakub@redhat.com> |
8953 | ||
8954 | PR c/60101 | |
8955 | * c-common.c (merge_tlist): If copy is true, call new_tlist, | |
8956 | if false, add ADD itself, rather than vice versa. | |
8957 | (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero | |
8958 | copy. For SAVE_EXPR, only call merge_tlist once. | |
8959 | ||
8fcbce72 JJ |
8960 | 2014-02-08 Jakub Jelinek <jakub@redhat.com> |
8961 | ||
8962 | PR middle-end/60092 | |
8963 | * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p | |
8964 | and tree_to_uhwi. | |
8965 | (handle_alloc_align_attribute, handle_assume_aligned_attribute): New | |
8966 | functions. | |
8967 | (c_common_attribute_table): Add alloc_align and assume_aligned | |
8968 | attributes. | |
8969 | ||
0a756a3f MP |
8970 | 2014-02-06 Marek Polacek <polacek@redhat.com> |
8971 | ||
8972 | PR c/60087 | |
8973 | * c-common.c (warn_for_sign_compare): Call warning_at with location | |
8974 | instead of warning. | |
8975 | ||
7ec4847a MP |
8976 | 2014-02-05 Marek Polacek <polacek@redhat.com> |
8977 | ||
8978 | PR c/53123 | |
8979 | * c-omp.c (c_finish_omp_atomic): Remove unreachable return | |
8980 | statement. | |
8981 | ||
66f20604 MP |
8982 | 2014-02-04 Marek Polacek <polacek@redhat.com> |
8983 | ||
8984 | PR c/60036 | |
8985 | * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or | |
8986 | SAVE_EXPR. | |
8987 | ||
5d77fb19 MG |
8988 | 2014-02-03 Marc Glisse <marc.glisse@inria.fr> |
8989 | ||
8990 | PR c++/53017 | |
8991 | PR c++/59211 | |
8992 | * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute, | |
8993 | handle_vector_size_attribute, handle_nonnull_attribute): Call | |
8994 | default_conversion on the attribute argument. | |
8995 | (handle_nonnull_attribute): Increment the argument number. | |
8996 | ||
81e5eca8 MP |
8997 | 2014-01-31 Marek Polacek <polacek@redhat.com> |
8998 | ||
8999 | PR c/59963 | |
9000 | * c-common.c (add_atomic_size_parameter): Pass vNULL to | |
9001 | build_function_call_vec. | |
9002 | (resolve_overloaded_builtin): Likewise. | |
9003 | * c-common.h (build_function_call_vec): Adjust declaration. | |
9004 | ||
68fca595 MP |
9005 | 2014-01-30 Marek Polacek <polacek@redhat.com> |
9006 | ||
9007 | PR c/59940 | |
9008 | * c-common.h (unsafe_conversion_p): Adjust declaration. | |
9009 | (warnings_for_convert_and_check): Likewise. | |
9010 | (convert_and_check): Likewise. | |
9011 | * c-common.c (unsafe_conversion_p): Add location parameter. Call | |
9012 | expansion_point_location_if_in_system_header on it. | |
9013 | (warnings_for_convert_and_check): Add location parameter. Call | |
9014 | expansion_point_location_if_in_system_header on it. Use it. | |
9015 | (convert_and_check): Add location parameter. Use it. | |
9016 | (conversion_warning): Likewise. | |
9017 | (c_add_case_label): Adjust convert_and_check calls. | |
9018 | (scalar_to_vector): Adjust unsafe_conversion_p calls. | |
9019 | ||
b72271b9 BI |
9020 | 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com> |
9021 | ||
9022 | * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with | |
9023 | flag_cilkplus. | |
9024 | * c-pragma.c (init_pragma): Likewise. | |
9025 | * c.opt: Likewise. | |
9026 | ||
393e8e8b MP |
9027 | 2014-01-23 Marek Polacek <polacek@redhat.com> |
9028 | ||
9029 | PR c/59846 | |
9030 | * c-common.c (shorten_compare): Add location_t parameter. | |
9031 | * c-common.h (shorten_binary_op): Adjust declaration. | |
9032 | ||
f04dda30 MP |
9033 | 2014-01-23 Marek Polacek <polacek@redhat.com> |
9034 | ||
9035 | PR c/58346 | |
9036 | * c-common.c (pointer_to_zero_sized_aggr_p): New function. | |
9037 | * c-common.h: Declare it. | |
9038 | ||
621955cb EB |
9039 | 2014-01-20 Eric Botcazou <ebotcazou@adacore.com> |
9040 | ||
9041 | * c-ada-spec.h (dump_ada_specs): Revert prototype change. | |
9042 | * c-ada-spec.c (dump_ads): Likewise. | |
9043 | (cpp_check): Likewise. | |
9044 | (dump_ada_specs): Likewise. | |
9045 | ||
9046 | 2014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com> | |
67bf2939 LA |
9047 | |
9048 | PR c++/49718 | |
9049 | * c-common.c (handle_no_instrument_function_attribute): Allow | |
9050 | no_instrument_function attribute in class member | |
9051 | definition/declaration. | |
9052 | ||
241f845a JJ |
9053 | 2014-01-15 Jakub Jelinek <jakub@redhat.com> |
9054 | ||
9055 | PR c/58943 | |
9056 | * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around | |
9057 | build_modify_expr with non-NOP_EXPR opcode. Handle return from it | |
9058 | being COMPOUND_EXPR. | |
9059 | (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first | |
9060 | operand a SAVE_EXPR and second MODIFY_EXPR. | |
9061 | ||
e83b8e2e JJ |
9062 | 2014-01-09 Jakub Jelinek <jakub@redhat.com> |
9063 | ||
9064 | PR target/58115 | |
9065 | * c-pch.c (c_common_write_pch): Call | |
9066 | prepare_target_option_nodes_for_pch. | |
9067 | ||
23a5b65a RS |
9068 | 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com> |
9069 | ||
9070 | Update copyright years | |
9071 | ||
f9030485 RS |
9072 | 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com> |
9073 | ||
9074 | * array-notation-common.c, c-cilkplus.c: Use the standard form for | |
9075 | the copyright notice. | |
9076 | ||
f2aa696b EB |
9077 | 2013-12-28 Eric Botcazou <ebotcazou@adacore.com> |
9078 | ||
9079 | * c-ada-spec.c (print_constructor): New function. | |
9080 | (print_destructor): Retrieve the origin of the destructor. | |
9081 | (print_ada_declaration): Revamp handling of constructors/destructors. | |
9082 | ||
3f8257db | 9083 | 2013-12-23 Stuart Hastings <stuart@apple.com> |
1f26ac87 JM |
9084 | Bill Maddox <maddox@google.com> |
9085 | Jason Merrill <jason@redhat.com> | |
9086 | ||
9087 | * c.opt: Add -fdeclone-ctor-dtor. | |
9088 | * c-opts.c (c_common_post_options): Default to on iff -Os. | |
9089 | ||
41958c28 BI |
9090 | 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com> |
9091 | ||
9092 | * c-common.c (c_common_attribute_table): Added "cilk simd function" | |
9093 | attribute. | |
9094 | * c-pragma.h (enum pragma_cilk_clause): Remove. | |
ab20d992 | 9095 | (enum pragma_omp_clause): Added the following fields: |
41958c28 BI |
9096 | PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK, |
9097 | PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE, | |
9098 | PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE, | |
9099 | PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE, | |
9100 | PRAGMA_CILK_CLAUSE_UNIFORM. | |
9101 | ||
b1726d6c | 9102 | |
12893402 BI |
9103 | 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com> |
9104 | ||
9105 | * cilk.c (cilk_outline): Made this function non-static. | |
9106 | (gimplify_cilk_spawn): Removed pre_p and post_p arguments. | |
9107 | (create_cilk_wrapper): Added a new parameter: a function pointer. | |
9108 | (c_install_body_w_frame_cleanup): Remove | |
9109 | (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case. | |
9110 | * c-common.h (cilk_outline): New prototype. | |
9111 | (gimplify_cilk_spawn): Removed two parameters. | |
9112 | (cilk_install_body_with_frame_cleanup): New prototype. | |
9113 | * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and | |
9114 | CILK_SPAWN_STMT case. | |
9115 | ||
085b42ed BS |
9116 | 2013-12-11 Bernd Schmidt <bernds@codesourcery.com> |
9117 | ||
2ce064c3 BS |
9118 | * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR. |
9119 | ||
085b42ed BS |
9120 | * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE. |
9121 | (int_array_type_node): Remove. | |
9122 | * c-common.c (c_common_nodes_and_builtins): Don't build it. | |
9123 | ||
9e36c9ed MP |
9124 | 2013-12-05 Marek Polacek <polacek@redhat.com> |
9125 | ||
9126 | PR c/52023 | |
9127 | * c-common.c (c_sizeof_or_alignof_type): Move a declaration into | |
9128 | [ADJUST_FIELD_ALIGN]. | |
9129 | ||
296674db JM |
9130 | 2013-12-04 Joseph Myers <joseph@codesourcery.com> |
9131 | ||
9132 | PR c/52023 | |
9133 | * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof | |
9134 | and check field alignment if set. | |
9135 | * c-common.h (c_sizeof_or_alignof_type): Update prototype. | |
9136 | (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type. | |
9137 | ||
b1726d6c | 9138 | 2013-12-04 Jakub Jelinek <jakub@redhat.com> |
31e071ae MP |
9139 | Marek Polacek <polacek@redhat.com> |
9140 | ||
9141 | * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow | |
9142 | sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS. | |
9143 | ||
d7947e19 L |
9144 | 2013-11-29 H.J. Lu <hongjiu.lu@intel.com> |
9145 | ||
9146 | PR c/59309 | |
9147 | * cilk.c (gimplify_cilk_spawn): Properly handle function without | |
9148 | arguments. | |
9149 | ||
fad7652e JJ |
9150 | 2013-11-29 Jakub Jelinek <jakub@redhat.com> |
9151 | ||
9152 | PR c/59280 | |
9153 | * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE, | |
9154 | goto invalid. If it is error_mark_node, don't issue further | |
9155 | diagnostics. | |
9156 | ||
8b5e1202 SO |
9157 | 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com> |
9158 | ||
9159 | * c.opt (Wopenmp-simd): New. | |
9160 | ||
0a508bb6 JJ |
9161 | 2013-11-22 Jakub Jelinek <jakub@redhat.com> |
9162 | ||
9163 | * c-ubsan.h (ubsan_instrument_return): New prototype. | |
9164 | * c-ubsan.c (ubsan_instrument_return): New function. | |
9165 | ||
2fb9a547 AM |
9166 | 2013-11-22 Andrew MacLeod <amacleod@redhat.com> |
9167 | ||
9168 | * c-common.c: Add required include files from gimple.h. | |
ab20d992 JJ |
9169 | * c-gimplify.c: Likewise. |
9170 | * cilk.c: Likewise. | |
2fb9a547 | 9171 | |
8400e75e DM |
9172 | 2013-11-22 David Malcolm <dmalcolm@redhat.com> |
9173 | ||
9174 | * c-common.c (unsafe_conversion_p): Remove use of | |
9175 | EXPR_LOC_OR_HERE macro. | |
9176 | (conversion_warning): Likewise. | |
9177 | (warnings_for_convert_and_check): Likewise. | |
9178 | (warn_for_collisions_1): Likewise. | |
9179 | (shorten_compare): Likewise, and remove use of in_system_header | |
9180 | macro, using the location from the former. | |
9181 | * c-lex.c (dump_one_header): Remove use of input_filename macro. | |
9182 | (cb_def_pragma): Remove use of in_system_header macro. | |
9183 | (lex_string): Likewise. | |
9184 | * c-pragma.c (handle_pragma_float_const_decimal64): Likewise. | |
9185 | ||
eb1ce453 KZ |
9186 | 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com> |
9187 | Mike Stump <mikestump@comcast.net> | |
9188 | Richard Sandiford <rdsandiford@googlemail.com> | |
9189 | ||
9190 | * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi | |
9191 | instead of TREE_INT_CST_LOW, in cases where there is a protecting | |
9192 | tree_fits_shwi_p or tree_fits_uhwi_p. | |
9193 | (dump_generic_ada_node): Likewise. | |
9194 | * c-format.c (check_format_arg): Likewise. | |
9195 | * c-pretty-print.c (pp_c_integer_constant): Likewise. | |
9196 | ||
6b3b8c27 KZ |
9197 | 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com> |
9198 | ||
9199 | * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi. | |
9200 | ||
49b0aa18 JC |
9201 | 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com> |
9202 | ||
9203 | PR c/53001 | |
9204 | * c-common.c (unsafe_conversion_p): Make this function | |
9205 | return an enumeration with more detail. | |
9206 | (conversion_warning): Use the new return type of | |
9207 | unsafe_conversion_p to separately warn either about conversions | |
9208 | that lower floating point number precision or about the other | |
9209 | kinds of conversions. | |
9210 | * c-common.h (enum conversion_safety): New enumeration. | |
8e745a17 JJ |
9211 | (unsafe_conversion_p): switching return type to |
9212 | conversion_safety enumeration. | |
49b0aa18 JC |
9213 | * c.opt: Adding new warning -Wfloat-conversion and |
9214 | enabling it with -Wconversion. | |
9215 | ||
b826515a BS |
9216 | 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net> |
9217 | ||
8e745a17 JJ |
9218 | * c-opts.c: Include plugin.h. |
9219 | (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE. | |
b826515a | 9220 | |
b9a55b13 MP |
9221 | 2013-11-19 Marek Polacek <polacek@redhat.com> |
9222 | ||
9223 | * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data | |
9224 | call. | |
9225 | (ubsan_instrument_shift): Likewise. | |
9226 | (ubsan_instrument_vla): Likewise. | |
9227 | ||
7d362f6c RS |
9228 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
9229 | ||
9230 | * c-common.c (convert_vector_to_pointer_for_subscript): Remove | |
9231 | cast to unsigned type. | |
9232 | ||
386b1f1f RS |
9233 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
9234 | ||
9235 | * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than | |
9236 | tree_low_cst. | |
9237 | (complete_array_type): Update comment to refer to tree_to_[su]hwi | |
9238 | rather than tree_low_cst. | |
9239 | ||
ae7e9ddd RS |
9240 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
9241 | ||
9242 | * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with | |
9243 | tree_to_uhwi throughout. | |
9244 | ||
9439e9a1 RS |
9245 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
9246 | ||
9247 | * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace | |
9248 | tree_low_cst (..., 0) with tree_to_shwi throughout. | |
9249 | ||
cc269bb6 RS |
9250 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
9251 | ||
9252 | * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace | |
9253 | host_integerp (..., 1) with tree_fits_uhwi_p throughout. | |
9254 | ||
9541ffee RS |
9255 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
9256 | ||
9257 | * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace | |
9258 | host_integerp (..., 0) with tree_fits_shwi_p throughout. | |
9259 | ||
c02065fc AH |
9260 | 2013-11-15 Aldy Hernandez <aldyh@redhat.com> |
9261 | ||
9262 | * c-cilkplus.c: New file. | |
9263 | * c-common.c (readonly_error): Add location argument. | |
9264 | * c-common.h (readonly_error): Same. | |
9265 | (c_finish_cilk_clauses): Protoize. | |
9266 | (c_check_cilk_loop): Same. | |
9267 | c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes. | |
9268 | Do not fail on error_mark_node. | |
9269 | Abstract increment canonicalization to here... | |
9270 | (c_omp_for_incr_canonicalize_ptr): New. | |
9271 | c-pragma.c (init_pragma): Register "simd" pragma. | |
9272 | c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD. | |
9273 | (enum pragma_cilk_clause): New. | |
9274 | ||
9cc65f15 RS |
9275 | 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com> |
9276 | ||
9277 | * c-pretty-print.c (pp_c_character_constant): Remove unnecessary | |
9278 | wchar_type and host_integerp checks. | |
9279 | ||
18f429e2 AM |
9280 | 2013-11-14 Andrew MacLeod <amacleod@redhat.com> |
9281 | ||
9282 | * c-common.c: Likewise. | |
9283 | * c-gimplify.c: Likewise. | |
9284 | * cilk.c: Likewise. | |
9285 | ||
d8a2d370 DN |
9286 | 2013-11-14 Diego Novillo <dnovillo@google.com> |
9287 | ||
9288 | * c-common.c: Include fold-const.h. | |
9289 | Include stor-layout.h. | |
9290 | Include calls.h. | |
9291 | Include stringpool.h. | |
9292 | Include attribs.h. | |
9293 | Include varasm.h. | |
9294 | Include trans-mem.h. | |
9295 | * c-cppbuiltin.c: Include stor-layout.h. | |
9296 | Include stringpool.h. | |
9297 | * c-format.c: Include stringpool.h. | |
9298 | * c-lex.c: Include stringpool.h. | |
9299 | Include stor-layout.h. | |
9300 | * c-pragma.c: Include stringpool.h. | |
9301 | Include attribs.h. | |
9302 | Include varasm.h. | |
9303 | Include gcc-symtab.h. | |
9304 | * c-pretty-print.c: Include stor-layout.h. | |
9305 | Include attribs.h. | |
9306 | * cilk.c: Include stringpool.h. | |
9307 | Include calls.h. | |
9308 | ||
38b7bc7f JM |
9309 | 2013-11-13 Joseph Myers <joseph@codesourcery.com> |
9310 | ||
9311 | * c-common.h (enum rid): Add RID_AUTO_TYPE. | |
9312 | * c-common.c (c_common_reswords): Add __auto_type. | |
9313 | (keyword_begins_type_specifier): Handle RID_AUTO_TYPE. | |
9314 | ||
45b0be94 AM |
9315 | 2013-11-12 Andrew MacLeod <amacleod@redhat.com> |
9316 | ||
18f429e2 AM |
9317 | * c-common.c: Include gimplify.h. |
9318 | * c-gimplify.c: Likewise. | |
9319 | * cilk.c: Likewise. | |
9320 | * c-omp.c: Include gimple-expr.h instead of gimple.h. | |
9321 | * c-ubsan.c: Don't include gimple.h. | |
45b0be94 | 9322 | |
582d9b50 JM |
9323 | 2013-11-12 Joseph Myers <joseph@codesourcery.com> |
9324 | ||
9325 | * c-common.c (c_common_reswords): Add _Thread_local. | |
9326 | ||
6b28e197 JM |
9327 | 2013-11-09 Joseph Myers <joseph@codesourcery.com> |
9328 | ||
9329 | * c-common.c (atomic_size_supported_p): New function. | |
9330 | (resolve_overloaded_atomic_exchange) | |
9331 | (resolve_overloaded_atomic_compare_exchange) | |
9332 | (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): | |
9333 | Use it instead of comparing size with a local list of sizes. | |
9334 | ||
267bac10 JM |
9335 | 2013-11-07 Andrew MacLeod <amacleod@redhat.com> |
9336 | Joseph Myers <joseph@codesourcery.com> | |
9337 | ||
9338 | * c-common.h (enum rid): Add RID_ATOMIC. | |
9339 | * c-common.c (c_common_reswords): Add _Atomic. | |
9340 | (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument. | |
9341 | (keyword_is_type_qualifier): Accept RID_ATOMIC. | |
9342 | * c-format.c (check_format_types): Check for extra _Atomic | |
9343 | qualifiers in format argument. | |
9344 | * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier. | |
9345 | (pp_c_type_qualifier_list): Mention _Atomic in comment. | |
9346 | ||
5157b91e TB |
9347 | 2013-11-06 Tobias Burnus <burnus@net-b.de> |
9348 | ||
9349 | * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME. | |
9350 | ||
6dbe0958 JM |
9351 | 2013-11-06 Joseph Myers <joseph@codesourcery.com> |
9352 | ||
9353 | * c-opts.c (c_common_post_options): Set -ffp-contract=off in C | |
9354 | standards modes. | |
9355 | * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast | |
9356 | to mean lack of IEEE 754 support. | |
9357 | ||
e8ff5196 TB |
9358 | 2013-11-05 Tobias Burnus <burnus@net-b.de> |
9359 | ||
9360 | * c.opt (-Wdate-time): New option | |
9361 | * c-opts.c (sanitize_cpp_opts): Pass on to libcpp. | |
9362 | ||
254a0760 JM |
9363 | 2013-11-05 Joseph Myers <joseph@codesourcery.com> |
9364 | ||
9365 | * c-cppbuiltin.c (cpp_iec_559_value): Test | |
9366 | flag_excess_precision_cmdline not flag_excess_precision. | |
9367 | ||
6d7f7e0a TB |
9368 | 2013-11-05 Tobias Burnus <burnus@net-b.de> |
9369 | ||
9370 | * c.opt (fopenmp-simd): New option. | |
9371 | * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ... | |
9372 | (omp_pragmas): ... this new struct. | |
9373 | (c_pp_lookup_pragma): Also walk omp_pragmas. | |
9374 | (init_pragma): Init pragmas for -fopenmp-simd. | |
9375 | ||
55a7f02f MP |
9376 | 2013-11-04 Marek Polacek <polacek@redhat.com> |
9377 | ||
9378 | PR c++/58979 | |
9379 | * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case. | |
9380 | ||
9193fb05 JM |
9381 | 2013-11-04 Joseph Myers <joseph@codesourcery.com> |
9382 | ||
9383 | * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value): | |
9384 | New functions. | |
9385 | (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX. | |
9386 | ||
94159ecf EB |
9387 | 2013-11-04 Eric Botcazou <ebotcazou@adacore.com> |
9388 | ||
9389 | * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL. | |
9390 | (dump_ada_specs): Adjust prototype of second callback. | |
9391 | * c-ada-spec.c (cpp_check): New global variable. | |
9392 | (dump_ada_nodes): Remove cpp_check parameter and do not pass it down. | |
9393 | (print_generic_ada_decl): Likewise. | |
9394 | (has_static_fields): Change return type to bool and add guard. | |
9395 | (has_nontrivial_methods): New predicate. | |
9396 | (is_tagged_type): Change return type to bool. | |
9397 | (separate_class_package): Call has_nontrivial_methods. | |
9398 | (pp_ada_tree_identifier): Minor tweaks. | |
9399 | (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node. | |
9400 | (dump_ada_array_domains): Likewise. | |
9401 | (dump_ada_array_type): Likewise. | |
9402 | (dump_template_types): Remove cpp_check parameter and do not pass it to | |
9403 | dump_generic_ada_node. | |
9404 | (dump_ada_template): Likewise. | |
9405 | (dump_generic_ada_node): Remove cpp_check parameter and do not pass it | |
9406 | recursively. | |
9407 | (print_ada_methods): Change return type to integer. Remove cpp_check | |
9408 | parameter and do not pass it down. | |
9409 | (dump_nested_types): Remove cpp_check parameter and do not pass it to | |
9410 | dump_generic_ada_node. | |
9411 | (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before | |
9412 | accessing methods. | |
9413 | (print_ada_struct_decl): Remove cpp_check parameter and do not pass it | |
9414 | down. Use has_nontrivial_methods to recognize C++ classes. Use return | |
9415 | value of print_ada_methods. | |
9416 | (dump_ads): Rename cpp_check parameter to check and adjust prototype. | |
9417 | Set cpp_check to it before invoking dump_ada_nodes. | |
9418 | (dump_ada_specs): Likewise. | |
9419 | ||
b906f4ca MP |
9420 | 2013-11-03 Marek Polacek <polacek@redhat.com> |
9421 | ||
9422 | * c-ubsan.c: Don't include hash-table.h. | |
9423 | (ubsan_instrument_vla): New function. | |
9424 | * c-ubsan.h: Declare it. | |
9425 | ||
5e20cdc9 DM |
9426 | 2013-10-31 David Malcolm <dmalcolm@redhat.com> |
9427 | ||
9428 | Automated part of renaming of symtab_node_base to symtab_node. | |
9429 | ||
9430 | Patch autogenerated by rename_symtab.py from | |
9431 | https://github.com/davidmalcolm/gcc-refactoring-scripts | |
9432 | revision 58bb219cc090b2f4516a9297d868c245495ee622 | |
9433 | ||
9434 | * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename | |
9435 | symtab_node_base to symtab_node. | |
9436 | ||
7057e645 ESR |
9437 | 2013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net> |
9438 | ||
8e745a17 | 9439 | Implement C++14 digit separators. |
7057e645 ESR |
9440 | * c-lex.c (interpret_float): Remove digit separators from scratch string |
9441 | before building real literal. | |
9442 | ||
193ea7bc JJ |
9443 | 2013-10-30 Jakub Jelinek <jakub@redhat.com> |
9444 | ||
9445 | * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC. | |
9446 | ||
939b37da BI |
9447 | 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com> |
9448 | ||
9449 | * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync | |
9450 | fields. | |
9451 | (c_define_builtins): Called cilk_init_builtins if Cilk Plus is | |
9452 | enabled. | |
9453 | * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC. | |
9454 | (insert_cilk_frame): New prototype. | |
9455 | (cilk_init_builtins): Likewise. | |
9456 | (gimplify_cilk_spawn): Likewise. | |
9457 | (c_cilk_install_body_w_frame_cleanup): Likewise. | |
9458 | (cilk_detect_spawn_and_unwrap): Likewise. | |
9459 | (cilk_set_spawn_marker): Likewise. | |
9460 | (build_cilk_sync): Likewise. | |
9461 | (build_cilk_spawn): Likewise. | |
9462 | * cilk.c: New file. | |
9463 | ||
67348ccc DM |
9464 | 2013-10-29 David Malcolm <dmalcolm@redhat.com> |
9465 | ||
9466 | Patch autogenerated by refactor_symtab.py from | |
9467 | https://github.com/davidmalcolm/gcc-refactoring-scripts | |
9468 | revision 58bb219cc090b2f4516a9297d868c245495ee622 | |
9469 | ||
9470 | * c-gimplify.c (c_genericize): Update for conversion of symtab types | |
9471 | to a true class hierarchy. | |
9472 | * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise. | |
9473 | ||
d570872d RS |
9474 | 2013-10-27 Richard Sandiford <rdsandiford@googlemail.com> |
9475 | ||
9476 | * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend. | |
9477 | ||
98906124 JL |
9478 | 2013-10-26 Jeff Law <law@redhat.com> |
9479 | ||
adfac8df JJ |
9480 | * c-common.c (c_define_builtins): Remove mudflap support. |
9481 | * c.opt: Ignore and warn for mudflap options. | |
98906124 | 9482 | |
d73749df | 9483 | 2013-10-24 Tobias Burnus <burnus@net-b.de> |
8170608b TB |
9484 | |
9485 | PR other/33426 | |
9486 | * c-pragma.c (init_pragma) Add #pragma ivdep handling. | |
9487 | * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP. | |
9488 | ||
3f04b1bb JM |
9489 | 2013-10-23 Jason Merrill <jason@redhat.com> |
9490 | ||
9491 | * c-format.c (gcc_cxxdiag_char_table): Add %X. | |
9492 | ||
acf0174b JJ |
9493 | 2013-10-11 Jakub Jelinek <jakub@redhat.com> |
9494 | ||
acd15a28 JJ |
9495 | * c-common.h (omp_clause_mask::operator !=): New method. |
9496 | * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0) | |
9497 | instead of if (mask & something) tests everywhere. | |
9498 | ||
acf0174b JJ |
9499 | * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to |
9500 | 201307 instead of 201107. | |
9501 | * c-common.c (DEF_FUNCTION_TYPE_8): Define. | |
9502 | (c_common_attribute_table): Add "omp declare target" and | |
9503 | "omp declare simd" attributes. | |
9504 | (handle_omp_declare_target_attribute, | |
9505 | handle_omp_declare_simd_attribute): New functions. | |
9506 | * c-omp.c: Include c-pragma.h. | |
9507 | (c_finish_omp_taskgroup): New function. | |
9508 | (c_finish_omp_atomic): Add swapped argument, if true, | |
9509 | build the operation first with rhs, lhs arguments and use NOP_EXPR | |
9510 | build_modify_expr. | |
9511 | (c_finish_omp_for): Add code argument, pass it down to make_code. | |
9512 | (c_omp_split_clauses): New function. | |
9513 | (c_split_parallel_clauses): Removed. | |
9514 | (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers, | |
9515 | c_omp_declare_simd_clauses_to_decls): New functions. | |
9516 | * c-common.h (omp_clause_mask): New type. | |
9517 | (OMP_CLAUSE_MASK_1): Define. | |
9518 | (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=, | |
9519 | omp_clause_mask::operator |=, omp_clause_mask::operator ~, | |
9520 | omp_clause_mask::operator |, omp_clause_mask::operator &, | |
9521 | omp_clause_mask::operator <<, omp_clause_mask::operator >>, | |
9522 | omp_clause_mask::operator ==): New methods. | |
9523 | (enum c_omp_clause_split): New. | |
9524 | (c_finish_omp_taskgroup): New prototype. | |
9525 | (c_finish_omp_atomic): Add swapped argument. | |
9526 | (c_finish_omp_for): Add code argument. | |
9527 | (c_omp_split_clauses): New prototype. | |
9528 | (c_split_parallel_clauses): Removed. | |
9529 | (c_omp_declare_simd_clauses_to_numbers, | |
9530 | c_omp_declare_simd_clauses_to_decls): New prototypes. | |
9531 | * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs. | |
9532 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL, | |
9533 | PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION, | |
9534 | PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD, | |
9535 | PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS. | |
9536 | Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS. | |
9537 | (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED, | |
9538 | PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE, | |
9539 | PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR, | |
9540 | PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH, | |
9541 | PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP, | |
9542 | PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS, | |
9543 | PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND, | |
9544 | PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS, | |
9545 | PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP, | |
9546 | PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and | |
9547 | PRAGMA_OMP_CLAUSE_UNIFORM. | |
9548 | ||
826cacfe MG |
9549 | 2013-10-09 Marc Glisse <marc.glisse@inria.fr> |
9550 | ||
9551 | PR tree-optimization/20318 | |
9552 | * c-common.c (handle_returns_nonnull_attribute): New function. | |
9553 | (c_common_attribute_table): Add returns_nonnull. | |
9554 | ||
2284b034 MG |
9555 | 2013-10-03 Marc Glisse <marc.glisse@inria.fr> |
9556 | ||
9557 | PR c++/19476 | |
9558 | * c.opt (fcheck-new): Move to common.opt. | |
9559 | ||
b56e9788 MP |
9560 | 2013-09-25 Marek Polacek <polacek@redhat.com> |
9561 | Jakub Jelinek <jakub@redhat.com> | |
9562 | ||
9563 | PR sanitizer/58413 | |
9564 | * c-ubsan.c (ubsan_instrument_shift): Don't instrument | |
9565 | an expression if we can prove it is correct. | |
9566 | (ubsan_instrument_division): Likewise. Remove unnecessary | |
9567 | check. | |
9568 | ||
ce6923c5 MP |
9569 | 2013-09-18 Marek Polacek <polacek@redhat.com> |
9570 | ||
9571 | PR sanitizer/58411 | |
9572 | * c-common.c (handle_no_sanitize_undefined_attribute): New function. | |
9573 | Declare it. | |
9574 | (struct attribute_spec c_common_att): Add no_sanitize_undefined. | |
9575 | ||
fb5610fb IS |
9576 | 2013-09-14 Iain Sandoe <iain@codesourcery.com> |
9577 | ||
9578 | PR target/48094 | |
9579 | * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version, | |
9580 | fobjc-gc, freplace-objc-classes): Accept for LTO. | |
9581 | ||
88b0e79e JC |
9582 | 2013-09-13 Jacek Caban <jacek@codeweavers.com> |
9583 | ||
9584 | * c-target.def: New hook | |
9585 | ||
c9b0866a PC |
9586 | 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com> |
9587 | ||
9588 | PR c++/43452 | |
9589 | * c.opt (Wdelete-incomplete): Add. | |
9590 | ||
0af94e6f JR |
9591 | 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com> |
9592 | ||
9593 | * c-common.c (same_scalar_type_ignoring_signedness): Delete. | |
9594 | (vector_types_compatible_elements_p): New function. | |
9595 | * c-common.h: (same_scalar_type_ignoring_signedness): Delete | |
9596 | declaration. | |
9597 | (vector_types_compatible_elements_p): Declare. | |
9598 | ||
7c26172c GDR |
9599 | 2013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net> |
9600 | ||
9601 | * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now | |
9602 | a virtual member function. | |
9603 | (pp_simple_type_specifier): Remove. | |
9604 | (pp_c_type_specifier): Likewise. | |
9605 | * c-pretty-print.c (c_pretty_printer::simple_type_specifier): | |
9606 | Rename from pp_c_type_specifier. Adjust. | |
9607 | (c_pretty_printer::c_pretty_printer): Do not assign to | |
9608 | simple_type_specifier. | |
9609 | ||
20059c8b GDR |
9610 | 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net> |
9611 | ||
9612 | * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual | |
9613 | member function. | |
9614 | (c_pretty_printer::storage_class_specifier): Likewise. | |
9615 | (c_pretty_printer::initializer): Likewise. | |
9616 | (pp_declaration): Remove. | |
9617 | (pp_declaration_specifiers): Likewise. | |
9618 | (pp_abstract_declarator): Likewise. | |
9619 | (pp_declarator): Likewise. | |
9620 | (pp_type_id): Likewise. | |
9621 | (pp_statement): Likewise. | |
9622 | (pp_constant): Likewise. | |
9623 | (pp_id_expression): Likewise. | |
9624 | (pp_primary_expression): Likewise. | |
9625 | (pp_unary_expression): Likewise. | |
9626 | (pp_multiplicative_expression): Likewise. | |
9627 | (pp_conditional_expression): Likewise. | |
9628 | (pp_assignment_expression): Likewise. | |
9629 | (pp_expression): Likewise. | |
9630 | (pp_c_type_id): Likewise. | |
9631 | (pp_c_storage_class_specifier): Likewise. | |
9632 | * c-pretty-print.c (pp_c_type_cast): Tidy. | |
9633 | (pp_c_pointer): Likewise. | |
9634 | (pp_c_type_specifier): Likewise. | |
9635 | (pp_c_parameter_type_list): Likewise. | |
9636 | (pp_c_function_definition): Likewise. | |
9637 | (pp_c_init_declarator): Likewise. | |
9638 | (pp_c_initializer_list): Likewise. | |
9639 | (pp_c_constructor_elts): Likewise. | |
9640 | (c_pretty_printer::direct_abstract_declarator): Likewise. | |
9641 | (c_pretty_printer::declaration_specifiers): Likewise. | |
9642 | (c_pretty_printer::primary_expression): Likewise. | |
9643 | (c_pretty_printer::postfix_expression): Likewise. | |
9644 | (c_pretty_printer::type_id): Rename from pp_c_type_id. | |
9645 | (c_pretty_printer::storage_class_specifier): Rename from | |
9646 | pp_c_storage_class_specifier. | |
9647 | (c_pretty_printer::initializer): Rename from pp_c_initializer. | |
9648 | (c_pretty_printer::c_pretty_printer): Do not assign to type_id, | |
9649 | storage_class_specifier, initializer, offset_list, flags. | |
9650 | ||
de5a5fa1 MP |
9651 | 2013-08-30 Marek Polacek <polacek@redhat.com> |
9652 | ||
9653 | * c-ubsan.c: New file. | |
9654 | * c-ubsan.h: New file. | |
9655 | ||
8f0e4d72 GDR |
9656 | 2013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net> |
9657 | ||
9658 | * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual | |
9659 | member function. | |
9660 | (c_pretty_printer::declaration_specifiers): Likewise. | |
9661 | (c_pretty_printer::declarator): Likewise. | |
9662 | (c_pretty_printer::abstract_declarator): Likewise. | |
9663 | (c_pretty_printer::direct_abstract_declarator): Likewise. | |
9664 | (c_pretty_printer::direct_declarator): Likewise. | |
9665 | (c_pretty_printer::function_specifier): Likewise. | |
9666 | (pp_declaration): Adjust. | |
9667 | (pp_declaration_specifiers): Likewise. | |
9668 | (pp_abstract_declarator): Likewise. | |
9669 | (pp_direct_declarator): Likewise. | |
9670 | (pp_function_specifier): Likewise. | |
9671 | (pp_direct_abstract_declarator): Remove as unused. | |
9672 | (pp_c_declaration): Remove. | |
9673 | (pp_c_declaration_specifiers): Likewise. | |
9674 | (pp_c_declarator): Likewise. | |
9675 | (pp_c_direct_declarator): Likewise. | |
9676 | (pp_c_function_specifier): Likewise. | |
9677 | (pp_c_direct_abstract_declarator): Likewise. | |
9678 | * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename | |
9679 | from pp_c_abstract_declarator. Adjust. | |
ab20d992 | 9680 | (c_pretty_printer::direct_abstract_declarator): Rename from |
8f0e4d72 GDR |
9681 | pp_c_direct_abstract_declarator. Adjust. |
9682 | (c_pretty_printer::function_specifier): Rename from | |
9683 | pp_c_function_specifier. Adjust. | |
9684 | (c_pretty_printer::declaration_specifiers): Rename from | |
9685 | pp_c_declaration_specifiers. Adjust. | |
9686 | (c_pretty_printer::direct_declarator): Rename from | |
9687 | pp_c_direct_declarator. Adjust. | |
9688 | (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust. | |
9689 | (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust. | |
9690 | (c_pretty_printer::c_pretty_printer): Do not assign to | |
9691 | declaration, declaration_specifiers, declarator, | |
9692 | direct_declarator, direct_abstract_declarator, function_specifier. | |
9693 | ||
00d34d3a GDR |
9694 | 2013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net> |
9695 | ||
9696 | * c-pretty-print.h (c_pretty_printer::unary_expression): Now a | |
9697 | virtual member function. | |
9698 | (c_pretty_printer::multiplicative_expression): Likewise. | |
9699 | (c_pretty_printer::conditional_expression): Likewise. | |
9700 | (c_pretty_printer::assignment_expression): Likewise. | |
9701 | (c_pretty_printer::expression): Likewise. | |
9702 | (pp_unary_expression): Adjust. | |
9703 | (pp_multiplicative_expression): Likewise. | |
9704 | (pp_assignment_expression): Likewise. | |
9705 | (pp_conditional_expression): Likewise. | |
9706 | (pp_expression): Likewise. | |
9707 | * c-pretty-print.c (c_pretty_printer::unary_expression): Rename | |
9708 | from pp_c_unary_expression. Adjust. | |
9709 | (c_pretty_printer::multiplicative_expression): Rename from | |
9710 | pp_c_multiplicative_expression. Adjust. | |
9711 | (c_pretty_printer::conditional_expression): Rename from | |
9712 | pp_c_conditional_expression. Adjust. | |
9713 | (c_pretty_printer::assignment_expression): Rename from | |
9714 | pp_c_assignment_expression. Adjust. | |
9715 | (c_pretty_printer::expression): Rename from pp_c_expression. Adjust. | |
9716 | (c_pretty_printer::c_pretty_printer): Do not assign to | |
9717 | unary_expression, multiplicative_expression, | |
9718 | conditional_expression, expression. | |
9719 | ||
fb22178f GDR |
9720 | 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net> |
9721 | ||
9722 | * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a | |
9723 | virtual member function. | |
9724 | (pp_postfix_expression): Adjust. | |
9725 | (pp_c_postfix_expression): Remove. | |
9726 | * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename | |
9727 | from pp_c_postfix_expression. Adjust. | |
9728 | (c_pretty_printer::c_pretty_printer): Do not assign to | |
9729 | postfix_expression. | |
9730 | ||
7ecc2600 GDR |
9731 | 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net> |
9732 | ||
9733 | * c-pretty-print.h (c_pretty_printer::primary_expression): Now a | |
9734 | virtua member function. | |
9735 | (pp_primary_expression): Adjust. | |
9736 | (pp_c_primary_expression): Remove. | |
9737 | * c-pretty-print.c (c_pretty_printer::primary_expression): Rename | |
9738 | from pp_c_primary_expression. Adjust. | |
9739 | (pp_c_initializer_list): Use pp_primary_expression. | |
9740 | (c_pretty_printer::c_pretty_printer): Do not assign to | |
9741 | primary_expression. | |
9742 | ||
0691175f GDR |
9743 | 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net> |
9744 | ||
9745 | * c-pretty-print.h (c_pretty_printer::translate_string): Declare. | |
9746 | * c-pretty-print.c (M_): Remove. | |
9747 | (c_pretty_printer::translate_string): Define. | |
9748 | (pp_c_type_specifier): Use it. | |
9749 | (pp_c_primary_expression): Likewise. | |
9750 | (pp_c_expression): Likewise. | |
9751 | ||
66dfe4c4 GDR |
9752 | 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net> |
9753 | ||
9754 | * c-pretty-print.h (c_pretty_printer::id_expression): Now a | |
9755 | virtual function. | |
9756 | (pp_c_id_expression): Remove. | |
9757 | (pp_id_expression): Adjust. | |
9758 | * c-pretty-print.c (c_pretty_printer::id_expression): Rename from | |
9759 | pp_c_id_expression. Adjust. | |
9760 | (pp_c_postfix_expression): Use pp_id_expression. | |
9761 | (c_pretty_printer::c_pretty_printer): Do not assign to id_expression. | |
9762 | ||
ca43e9d5 GDR |
9763 | 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net> |
9764 | ||
9765 | * c-pretty-print.h (c_pretty_printer::constant): Now a virtual | |
9766 | member function. | |
9767 | (pp_constant): Adjust. | |
9768 | (pp_c_constant): Remove. | |
9769 | * c-pretty-print.c (c_pretty_printer::constant): Rename from | |
9770 | pp_c_constant. Adjust. | |
9771 | (pp_c_constant) | |
9772 | (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant. | |
9773 | (c_pretty_printer::c_pretty_printer): Remove assignment to constant. | |
9774 | ||
da6ca2b5 GDR |
9775 | 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net> |
9776 | ||
9777 | * c-pretty-print.h (pp_c_pretty_printer_init): Remove. | |
9778 | (c_pretty_printer::c_pretty_printer): Declare. | |
9779 | * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from | |
9780 | c_pretty_printer_init. Adjust. | |
9781 | (print_c_tree): Do not call c_pretty_printer_init. | |
9782 | * c-ada-spec.c (dump_ads): Remove call to pp_construct. | |
9783 | ||
65a372f4 AC |
9784 | 2013-08-09 Arnaud Charlet <charlet@adacore.com> |
9785 | ||
9786 | * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name | |
9787 | ||
fd9b0f32 PC |
9788 | 2013-08-05 Paolo Carlini <paolo.carlini@oracle.com> |
9789 | ||
9790 | PR c++/58080 | |
9791 | * c-common.c (pointer_int_sum): Add bool parameter. | |
9792 | * c-common.h (pointer_int_sum): Adjust declaration. | |
9793 | ||
e0aec1e9 GDR |
9794 | 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net> |
9795 | ||
9796 | * c-pretty-print.c (print_c_tree): Simplify. Use non-static local | |
9797 | c_pretty_printer variable. | |
9798 | ||
b066401f GDR |
9799 | 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net> |
9800 | ||
9801 | * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer. | |
9802 | (pp_base): Remove. | |
9803 | (pp_c_base): Likewise. Adjust users. | |
9804 | * c-pretty-print.c (pp_c_maybe_whitespace): Adjust. | |
9805 | (pp_c_whitespace): Do not call pp_base. | |
9806 | (pp_c_left_paren): Likewise. | |
9807 | (pp_c_right_paren): Likewise. | |
9808 | (pp_c_left_brace): Likewise. | |
9809 | (pp_c_right_brace): Likewise. | |
9810 | (pp_c_left_bracket): Likewise. | |
9811 | (pp_c_right_bracket): Likewise. | |
9812 | (pp_c_dot): Likewise. | |
9813 | (pp_c_ampersand): Likewise. | |
9814 | (pp_c_star): Likewise. | |
9815 | (pp_c_arrow): Likewise. | |
9816 | (pp_c_semicolon): Likewise. | |
9817 | (pp_c_complement): Likewise. | |
9818 | (pp_c_exclamation): Likewise. | |
9819 | (pp_c_direct_declarator): Likewise. | |
9820 | (pp_c_ws_string): Likewise. | |
9821 | (pp_c_identifier): Likewise. | |
9822 | (pp_c_statement): Likewise. | |
9823 | (print_c_tree): Likewise. | |
9824 | ||
65e5a578 ESR |
9825 | 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net> |
9826 | ||
9827 | PR c++/58072 | |
9828 | * c-common.c (c_parse_error): Catch user-defined literal tokens and | |
9829 | provide useful error strings. | |
9830 | ||
137a1a27 GDR |
9831 | 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net> |
9832 | ||
9833 | * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty | |
9834 | printer functions instead of pp_string or operators and punctuators. | |
9835 | (dump_generic_ada_node): Likewise. | |
9836 | * c-pretty-print.c (pp_c_type_specifier): Likewise. | |
9837 | (pp_c_relational_expression): Likewise. | |
9838 | (pp_c_logical_or_expression): Likewise. | |
9839 | ||
07838b13 GDR |
9840 | 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net> |
9841 | ||
9842 | * c-ada-spec.c (print_ada_macros): Use specialized pretty printer | |
9843 | functions instead of pp_character. | |
9844 | (pp_ada_tree_identifier): Likewise. | |
9845 | (dump_ada_double_name): Likewise. | |
9846 | (dump_ada_function_declaration): Likewise. | |
9847 | (dump_ada_array_domains): Likewise. | |
9848 | (dump_template_types): Likewise. | |
9849 | (dump_generic_ada_node): Likewise. | |
9850 | (print_ada_declaration): Likewise. | |
9851 | (print_ada_struct_decl): Likewise. | |
9852 | * c-pretty-print.c (pp_c_integer_constant): Likewise. | |
9853 | ||
433cc7b0 TT |
9854 | 2013-07-23 Tom Tromey <tromey@redhat.com> |
9855 | ||
9856 | * c-common.h (enum rid) <RID_GENERIC>: New constant. | |
9857 | * c-common.c (c_common_reswords): Add _Generic. | |
9858 | ||
688010ba OB |
9859 | 2013-07-21 OndÅ\99ej BÃlka <neleai@seznam.cz> |
9860 | ||
9861 | * c-common.c: Fix typos. | |
9862 | * c-common.h: Likewise. | |
9863 | ||
2a99e5e6 LL |
9864 | 2013-07-13 Lubos Lunak <l.lunak@suse.cz> |
9865 | ||
9866 | PR c++/55203 | |
9867 | * c-common.c (c_common_attribute_table): Add warn_unused. | |
9868 | (handle_warn_unused_attribute): New. | |
9869 | ||
c26302d5 JJ |
9870 | 2013-07-10 Jakub Jelinek <jakub@redhat.com> |
9871 | ||
9872 | * c-ppoutput.c (scan_translation_unit): Call account_for_newlines | |
9873 | for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT. | |
9874 | ||
dfeadaa0 PC |
9875 | 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com> |
9876 | ||
9877 | PR c++/57869 | |
9878 | * c.opt: Add Wconditionally-supported. | |
9879 | ||
6a2fa4b2 GS |
9880 | 2013-07-08 Graham Stott <graham.stott@btinternet.com> |
9881 | ||
adfac8df | 9882 | * array-notation-common.c (length_mismatch_in_expr_p): Delete |
6a2fa4b2 GS |
9883 | unused variables l_length and l_node. |
9884 | ||
ecdbd01a | 9885 | 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com> |
40d3d530 JR |
9886 | |
9887 | PR c/57821 | |
9888 | * c-common.c (complete_array_type): Delay folding first index | |
9889 | like other indices. When folding, check for index overflow. | |
9890 | ||
bedc293e MG |
9891 | 2013-06-27 Marc Glisse <marc.glisse@inria.fr> |
9892 | ||
9893 | PR c++/57509 | |
9894 | * c-common.h (c_build_vec_perm_expr): New complain argument. | |
9895 | * c-common.c (c_build_vec_perm_expr): Likewise. | |
9896 | Use save_expr also in C++. | |
9897 | ||
604b2bfc GDR |
9898 | 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net> |
9899 | ||
9900 | * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x. | |
9901 | * c-cppbuiltin.c (c_cpp_builtins): Likewise. | |
9902 | * c-opts.c (c_common_post_options): Likewise. | |
9903 | ||
dfeadaa0 | 9904 | 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com> |
713b46fa BI |
9905 | |
9906 | * array-notation-common.c (length_mismatch_in_expr): Changed the | |
9907 | parameter type's from a dynamic array to a vec_tree. Also removed | |
9908 | the size parameters. | |
9909 | * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per | |
9910 | the change above. | |
9911 | ||
2ce86d2e BI |
9912 | 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com> |
9913 | ||
9914 | * c-common.h (struct cilkplus_an_parts): New structure. | |
9915 | (struct cilkplus_an_loop_parts): Likewise. | |
9916 | (cilkplus_extract_an_triplets): New prototype. | |
9917 | (fix_sec_implicit_args): Likewise. | |
9918 | * array-notation-common.c (cilkplus_extract_an_triplets): New function. | |
9919 | (fix_sec_implicit_args): Likewise. | |
604b2bfc | 9920 | |
07a6825b BI |
9921 | 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com> |
9922 | ||
9923 | * array-notation-common.c (find_inv_trees): Removed an unwanted | |
9924 | typecasting. | |
9925 | * c-common.h (struct inv_list::additional_tcodes): Changed type from | |
9926 | enum rid to enum tree_code. | |
9927 | ||
08346abd JH |
9928 | 2013-06-11 Jan Hubicka <jh@suse.cz> |
9929 | ||
9930 | * c-common.c (handle_alias_ifunc_attribute): Do not set | |
9931 | DECL_EXTERNAL for weakref variables. | |
9932 | * c-pragma.c (handle_pragma_weak): Make sure aliases | |
9933 | are not declared as external. | |
9934 | ||
d60f1706 BI |
9935 | 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com> |
9936 | ||
9937 | * array-notation-common.c (length_mismatch_in_expr_p): Moved this | |
9938 | function from c/c-array-notation.c. | |
9939 | (is_cilkplus_reduce_builtin): Likewise. | |
9940 | (find_rank): Likewise. | |
9941 | (extract_array_notation_exprs): Likewise. | |
9942 | (replace_array_notations): Likewise. | |
9943 | (find_inv_trees): Likewise. | |
9944 | (replace_inv_trees): Likewise. | |
9945 | (contains_array_notation_expr): Likewise. | |
9946 | (find_correct_array_notation_type): Likewise. | |
9947 | * c-common.h (struct inv_list): Moved this struct from the file | |
9948 | c/c-array-notation.c and added a new field called additional tcodes. | |
9949 | (length_mismatch_in_expr_p): New prototype. | |
9950 | (is_cilkplus_reduce_builtin): Likewise. | |
9951 | (find_rank): Likewise. | |
9952 | (extract_array_notation_exprs): Likewise. | |
9953 | (replace_array_notation): Likewise. | |
9954 | (find_inv_trees): Likewise. | |
9955 | (replace_inv_trees): Likewise. | |
9956 | (find_correct_array_notation_type): Likewise. | |
dfeadaa0 | 9957 | |
36536d79 BI |
9958 | 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com> |
9959 | ||
9960 | * c-common.c (c_define_builtins): When cilkplus is enabled, the | |
9961 | function array_notation_init_builtins is called. | |
9962 | (c_common_init_ts): Added ARRAY_NOTATION_REF as typed. | |
9963 | * c-common.def (ARRAY_NOTATION_REF): New tree. | |
9964 | * c-common.h (build_array_notation_expr): New function declaration. | |
9965 | (build_array_notation_ref): Likewise. | |
9966 | (extract_sec_implicit_index_arg): New extern declaration. | |
9967 | (is_sec_implicit_index_fn): Likewise. | |
9968 | (ARRAY_NOTATION_CHECK): New define. | |
9969 | (ARRAY_NOTATION_ARRAY): Likewise. | |
9970 | (ARRAY_NOTATION_START): Likewise. | |
9971 | (ARRAY_NOTATION_LENGTH): Likewise. | |
9972 | (ARRAY_NOTATION_STRIDE): Likewise. | |
9973 | * c-pretty-print.c (pp_c_postifix_expression): Added a new case for | |
9974 | ARRAY_NOTATION_REF. | |
9975 | (pp_c_expression): Likewise. | |
9976 | * c.opt (flag_enable_cilkplus): New flag. | |
9977 | * array-notation-common.c: New file. | |
9978 | ||
f7716d57 JJ |
9979 | 2013-05-14 Jakub Jelinek <jakub@redhat.com> |
9980 | ||
9981 | PR c++/57274 | |
9982 | * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR. | |
9983 | ||
a5e0cd1d MG |
9984 | 2013-05-10 Marc Glisse <marc.glisse@inria.fr> |
9985 | ||
9986 | * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for | |
9987 | vectors. | |
9988 | ||
f6bc1c4a HS |
9989 | 2013-05-07 Han Shen <shenhan@google.com> |
9990 | ||
9991 | * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3". | |
9992 | ||
3f12f6e9 SKS |
9993 | 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> |
9994 | ||
9995 | * c-common.c (check_user_alignment): Emit error for negative values. | |
9996 | ||
61949153 PC |
9997 | 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com> |
9998 | ||
9999 | * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y. | |
10000 | ||
e93e18e9 PC |
10001 | 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com> |
10002 | ||
10003 | * c-cppbuiltin.c (c_cpp_builtins): Do not define | |
10004 | __GXX_EXPERIMENTAL_CXX1Y__. | |
10005 | ||
44d90fe1 | 10006 | 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com> |
8e745a17 | 10007 | Manuel Lopez-Ibanez <manu@gcc.gnu.org> |
44d90fe1 PC |
10008 | |
10009 | * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented. | |
10010 | * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns | |
10011 | to simply use OPT_Wpointer_arith. | |
10012 | (c_sizeof_or_alignof_type): Likewise. | |
10013 | ||
13f39b2e PC |
10014 | 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com> |
10015 | ||
10016 | * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__. | |
10017 | ||
4b84d650 JJ |
10018 | 2013-04-12 Jakub Jelinek <jakub@redhat.com> |
10019 | ||
10020 | * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table, | |
10021 | gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format | |
10022 | specifiers. | |
10023 | ||
fb037b5d SB |
10024 | 2013-04-07 Steven Bosscher <steven@gcc.gnu.org> |
10025 | ||
10026 | * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment. | |
10027 | ||
4e856798 PC |
10028 | 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com> |
10029 | ||
10030 | * c-common.c (pointer_int_sum): Remove dead code. | |
10031 | ||
4b1baac8 RS |
10032 | 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com> |
10033 | ||
10034 | PR middle-end/56524 | |
10035 | * c-common.c (handle_optimize_attribute): Don't call | |
10036 | save_optabs_if_changed. | |
10037 | ||
0b50e654 JJ |
10038 | 2013-03-05 Jakub Jelinek <jakub@redhat.com> |
10039 | ||
10040 | PR middle-end/56461 | |
10041 | * c-pch.c (pch_init): Free target_validity at the end. | |
10042 | ||
48c41403 JJ |
10043 | 2013-03-04 Jakub Jelinek <jakub@redhat.com> |
10044 | ||
10045 | * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags. | |
10046 | ||
e664c61c KS |
10047 | 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com> |
10048 | Jakub Jelinek <jakub@redhat.com> | |
10049 | ||
10050 | PR sanitizer/56454 | |
10051 | * c-common.c (handle_no_sanitize_address_attribute): New function. | |
10052 | (c_common_attribute_table): Add no_sanitize_address attribute. | |
10053 | (handle_no_address_safety_analysis_attribute): Add | |
10054 | no_sanitize_address attribute, not no_address_safety_analysis | |
10055 | attribute. | |
10056 | ||
a475fd3d | 10057 | 2013-02-18 Aldy Hernandez <aldyh@redhat.com> |
135204dd AH |
10058 | |
10059 | PR target/52555 | |
10060 | * c-common.c (handle_optimize_attribute): Call | |
10061 | save_optabs_if_changed. | |
10062 | ||
f6007d99 JJ |
10063 | 2013-02-18 Jakub Jelinek <jakub@redhat.com> |
10064 | Steven Bosscher <steven@gcc.gnu.org> | |
10065 | ||
10066 | PR pch/54117 | |
10067 | * c-opts.c (c_common_post_options): If debug info is enabled | |
10068 | and non-dwarf*, refuse to load PCH files and when writing PCH | |
10069 | file warn. | |
10070 | ||
cf35e2b1 JJ |
10071 | 2013-02-05 Jakub Jelinek <jakub@redhat.com> |
10072 | ||
10073 | PR middle-end/56167 | |
10074 | * c-common.c (handle_error_attribute): Fix condition. | |
10075 | ||
32887460 JJ |
10076 | 2013-01-30 Jakub Jelinek <jakub@redhat.com> |
10077 | ||
10078 | PR c++/55742 | |
10079 | * c-common.c (handle_target_attribute): Revert 2012-12-26 change. | |
10080 | ||
5af057d8 JM |
10081 | 2013-01-18 Jason Merrill <jason@redhat.com> |
10082 | ||
10083 | PR target/54908 | |
10084 | * c.opt (-fextern-tls-init): New. | |
10085 | * c-opts.c (c_common_post_options): Handle it. | |
10086 | ||
cc83c823 JJ |
10087 | 2013-01-09 Jakub Jelinek <jakub@redhat.com> |
10088 | ||
10089 | PR c/48418 | |
10090 | * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and | |
10091 | RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST | |
10092 | and is either negative or bigger or equal to type precision | |
10093 | of the first operand. | |
10094 | ||
a859517f MP |
10095 | 2012-12-03 Marek Polacek <polacek@redhat.com> |
10096 | ||
10097 | PR c/55570 | |
10098 | * c-common.c (check_user_alignment): Swap order of tests, | |
10099 | check TREE_CODE first. | |
10100 | ||
2d7aa578 ESR |
10101 | 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net> |
10102 | ||
10103 | PR c++/52654 | |
10104 | * c-common.h (overflow_type): New enum. | |
10105 | (build_userdef_literal): Add overflow_type argument. | |
10106 | (tree_userdef_literal): Add overflow_type. | |
10107 | (USERDEF_LITERAL_OVERFLOW): New access macro. | |
10108 | * c-common.c (build_userdef_literal): Add overflow_type | |
10109 | argument. | |
10110 | * c-lex.c (c_lex_with_flags): Add overflow_type to | |
10111 | build_userdef_literal calls. | |
10112 | (interpret_integer, interpret_float): Add overflow_type argument. | |
10113 | ||
cc3c4f62 RB |
10114 | 2012-11-28 Richard Biener <rguenther@suse.de> |
10115 | ||
10116 | PR c/35634 | |
10117 | * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions | |
10118 | here and use a type with proper overflow behavior for types that would | |
10119 | need to be promoted for the arithmetic. | |
10120 | ||
77bc5132 JJ |
10121 | 2012-11-23 Jakub Jelinek <jakub@redhat.com> |
10122 | ||
10123 | PR sanitizer/55435 | |
10124 | * c-common.c (handle_no_address_safety_analysis_attribute): New | |
10125 | function. | |
10126 | (c_common_attribute_table): Add no_address_safety_analysis. | |
10127 | ||
5dc99c46 SB |
10128 | 2012-11-16 Simon Baldwin <simonb@google.com> |
10129 | ||
10130 | * c.opt: Add f[no-]canonical-system-headers. | |
10131 | * c-opts.c (c_common_handle_option): Handle | |
10132 | OPT_fcanonical_system_headers. | |
10133 | ||
a4a0016d ESR |
10134 | 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net> |
10135 | ||
10136 | PR c++/54413 | |
10137 | * c-opts.c (c_common_handle_option): Set new flags. | |
10138 | * c.opt: Describe new flags. | |
10139 | ||
7dbb85a7 JM |
10140 | 2012-11-09 Jason Merrill <jason@redhat.com> |
10141 | ||
10142 | * c.opt (Wabi-tag): New. | |
10143 | ||
ad7bac31 AK |
10144 | 2012-11-09 Andi Kleen <ak@linux.intel.com> |
10145 | ||
10146 | PR 55139 | |
10147 | * c-common.c (get_atomic_generic_size): Mask with | |
8e745a17 | 10148 | MEMMODEL_MASK |
ad7bac31 | 10149 | |
7332899a MLI |
10150 | 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org> |
10151 | ||
10152 | PR c/53063 | |
10153 | * c.opt (Wformat): Make it Alias Wformat=1. | |
10154 | (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral, | |
10155 | Wformat-security,Wformat-y2k,Wformat-zero-length): Use | |
10156 | LangEnabledBy. | |
10157 | (Wformat=): RejectNegative. Use LangEnabledBy. | |
10158 | (Wnonnull): Use LangEnabledBy. | |
10159 | * c-opts.c (c_common_handle_option): Do not handle Wformat here. | |
10160 | * c-format.c (set_Wformat): Delete. | |
10161 | (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_. | |
ab20d992 JJ |
10162 | (maybe_read_dollar_number): Likewise. |
10163 | (avoid_dollar_number): Likewise. | |
10164 | (finish_dollar_format_checking): Likewise. | |
10165 | (check_format_info): Likewise. | |
10166 | (check_format_info_main): Likewise. | |
10167 | (check_format_types): Likewise. | |
10168 | (format_type_warning): Likewise. | |
10169 | * c-common.c (int): Likewise. | |
10170 | (check_function_sentinel): Likewise. | |
8e745a17 | 10171 | * c-common.h (warn_format,set_Wformat): Do not declare here. |
7332899a | 10172 | |
34a180a6 MLI |
10173 | 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org> |
10174 | ||
10175 | PR c/53063 | |
10176 | * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare, | |
10177 | Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros): | |
10178 | Use LangEnabledBy. | |
10179 | (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from | |
10180 | common.opt. | |
10181 | (Wvariadic-macros): Init(1). | |
10182 | * c-opts.c (c_common_handle_option): Do not handle them | |
10183 | explicitly. | |
10184 | (c_common_post_options): Likewise. | |
10185 | (sanitize_cpp_opts): warn_unused_macros is now | |
10186 | cpp_warn_unused_macros. | |
10187 | (push_command_line_include): Likewise. | |
10188 | * c-common.c (warn_unknown_pragmas): Do not define. | |
10189 | * c-common.h (warn_unknown_pragmas): Do not declare. | |
10190 | ||
3f46d6a5 MLI |
10191 | 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org> |
10192 | ||
10193 | PR c/51294 | |
10194 | * c-common.c (conversion_warning): Handle conditional expressions. | |
10195 | ||
880661a4 JW |
10196 | 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com> |
10197 | ||
10198 | PR c++/54930 | |
10199 | * c.opt (Wreturn_local_addr): Define new option. | |
10200 | ||
4514a96b JM |
10201 | 2012-10-25 Jason Merrill <jason@redhat.com> |
10202 | ||
f14edc1a JM |
10203 | * c.opt (Wvirtual-move-assign): New. |
10204 | ||
4514a96b JM |
10205 | * c.opt (Winherited-variadic-ctor): New. |
10206 | ||
93100c6b MG |
10207 | 2012-10-25 Marc Glisse <marc.glisse@inria.fr> |
10208 | ||
10209 | PR c++/54427 | |
10210 | * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR. | |
10211 | ||
1efcb8c6 JM |
10212 | 2012-10-23 Joseph Myers <joseph@codesourcery.com> |
10213 | ||
10214 | * c-common.h (pch_cpp_save_state): Declare. | |
10215 | * c-target.def (c_preinclude): New hook. | |
10216 | * c-opts.c (done_preinclude): New. | |
10217 | (push_command_line_include): Handle default preincluded header. | |
10218 | (cb_file_change): Call pch_cpp_save_state when calling | |
10219 | push_command_line_include. | |
10220 | * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved) | |
10221 | (pch_cpp_save_state): New. | |
10222 | (pch_init): Call pch_cpp_save_state conditionally, instead of | |
10223 | calling cpp_save_state. | |
10224 | ||
4a0ae68e MLI |
10225 | 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org> |
10226 | ||
10227 | PR c/53063 | |
10228 | PR c/40989 | |
10229 | * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit, | |
10230 | Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess, | |
10231 | Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point, | |
10232 | Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused, | |
10233 | Wvolatile-register-var): Add LangEnabledBy or EnabledBy. | |
10234 | * c-opts.c (c_common_handle_option): Remove explicit handling from | |
10235 | here. | |
10236 | (c_common_post_options): Likewise. | |
10237 | ||
67e4210b EB |
10238 | 2012-10-18 Eric Botcazou <ebotcazou@adacore.com> |
10239 | ||
10240 | * c-ada-spec.c (LOCATION_COL): Delete. | |
10241 | (compare_location): New function. | |
10242 | (compare_node): Use it. | |
10243 | (compare_comment): Likewise. | |
10244 | ||
65d4f2cd MLI |
10245 | 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org> |
10246 | ||
10247 | PR c/53063 | |
10248 | PR c/40989 | |
10249 | * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy. | |
10250 | * c-opts.c (c_common_handle_option): Do not set them here. Add | |
10251 | comment. | |
10252 | (c_common_post_options): Likewise. | |
10253 | ||
909881cb EB |
10254 | 2012-10-16 Eric Botcazou <ebotcazou@adacore.com> |
10255 | ||
10256 | * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define. | |
10257 | (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially. | |
10258 | Remove POINTER_TYPE handling, add large unsigned handling and use | |
10259 | ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers. | |
10260 | ||
3a785c97 JJ |
10261 | 2012-10-12 Jakub Jelinek <jakub@redhat.com> |
10262 | ||
10263 | PR c/54381 | |
10264 | * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype. | |
10265 | * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3 | |
10266 | locs and array of 3 trees instead of just single loc and single | |
10267 | sizeof_arg tree. Handle __builtin___*_chk builtins too, and | |
10268 | also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins. | |
10269 | For *cmp* builtins that take two sources strings report warnings | |
10270 | about first and second source, not about destination and source. | |
10271 | ||
5e54f81d MG |
10272 | 2012-10-12 Marc Glisse <marc.glisse@inria.fr> |
10273 | ||
10274 | PR c++/53055 | |
10275 | * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New. | |
10276 | ||
f5b02f1e EB |
10277 | 2012-10-11 Eric Botcazou <ebotcazou@adacore.com> |
10278 | ||
10279 | * c-ada-spec.c (dump_ada_template): Bail out for template declarations | |
10280 | declaring something coming from another file. | |
10281 | ||
b46dbc6c AC |
10282 | 2012-10-10 Arnaud Charlet <charlet@adacore.com> |
10283 | ||
f5b02f1e | 10284 | PR ada/54845 |
b46dbc6c AC |
10285 | * c-ada-spec.c (print_ada_struct_decl): Increase buf size. |
10286 | ||
5d9de0d0 PC |
10287 | 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com> |
10288 | ||
10289 | PR c++/54194 | |
10290 | * c-common.c (warn_about_parentheses): Add location_t parameter; | |
10291 | use EXPR_LOC_OR_LOC. | |
10292 | * c-common.h: Update declaration. | |
10293 | ||
a212e43f MG |
10294 | 2012-10-09 Marc Glisse <marc.glisse@inria.fr> |
10295 | ||
10296 | PR c++/54427 | |
10297 | * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support | |
10298 | more operations. Make error messages optional. | |
10299 | * c-common.h (enum stv_conv): Moved from c-typeck.c. | |
10300 | (scalar_to_vector): Declare. | |
10301 | ||
b1db7f91 JM |
10302 | 2012-10-08 Jason Merrill <jason@redhat.com> |
10303 | ||
10304 | * c-common.c (c_common_reswords): Add thread_local. | |
10305 | ||
e28d52cf DS |
10306 | 2012-10-08 Dodji Seketeli <dodji@redhat.com> |
10307 | ||
10308 | PR c++/53528 C++11 attribute support | |
10309 | * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare | |
10310 | new functions. | |
10311 | * c-common.c (check_cxx_fundamental_alignment_constraints): New | |
10312 | static function. | |
10313 | (handle_aligned_attribute): In choose strictest alignment | |
10314 | among many. Use new check_cxx_fundamental_alignment_constraints. | |
10315 | (handle_transparent_union_attribute): In c++11 attribute syntax, | |
10316 | don't look through typedefs. | |
10317 | ||
3b78de56 AC |
10318 | 2012-10-04 Arnaud Charlet <charlet@adacore.com> |
10319 | ||
10320 | * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW. | |
10321 | * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition | |
10322 | out of dumpfile.h. | |
10323 | ||
6040bb5f DC |
10324 | 2012-09-25 Dehao Chen <dehao@google.com> |
10325 | ||
10326 | PR middle-end/54645 | |
3b78de56 | 10327 | * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data |
6040bb5f DC |
10328 | map when read in the pch. |
10329 | ||
3f8257db | 10330 | 2012-09-18 Arnaud Charlet <charlet@adacore.com> |
0b07a57e AC |
10331 | |
10332 | * c-ada-spec.c: Style fixes. | |
10333 | ||
3f8257db | 10334 | 2012-09-18 Thomas Quinot <quinot@adacore.com> |
da5182be TQ |
10335 | |
10336 | * c.opt (-fada-spec-parent): Define new command line switch. | |
10337 | * c-ada-spec.c (get_ada_package): When -fada-spec-parent | |
10338 | is specified, generate binding spec as a child of the specified unit. | |
10339 | ||
0ccb505d PC |
10340 | 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com> |
10341 | Manuel López-Ibáñez <manu@gcc.gnu.org> | |
10342 | ||
10343 | PR c++/53210 | |
10344 | * c.opt ([Winit-self]): Enabled by -Wall in C++. | |
10345 | ||
c583af79 AC |
10346 | 2012-08-23 Arnaud Charlet <charlet@adacore.com> |
10347 | ||
10348 | * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only | |
10349 | for pointers, and add missing Convention C pragma. | |
10350 | (print_ada_struct_decl): Add missing aliased keyword. | |
10351 | (dump_ads): Add pragma Ada_2005 and Style_Checks (Off). | |
10352 | ||
1a4049e7 JJ |
10353 | 2012-08-17 Jakub Jelinek <jakub@redhat.com> |
10354 | ||
10355 | * c-common.c (sizeof_pointer_memaccess_warning): New function. | |
10356 | * c.opt (-Wsizeof-pointer-memaccess): Add new option. | |
10357 | * c-opts.c (c_common_handle_option): Enable it for -Wall. | |
10358 | * c-common.h (sizeof_pointer_memaccess_warning): Add prototype. | |
10359 | * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def. | |
10360 | ||
70b5e7dc RG |
10361 | 2012-08-10 Richard Guenther <rguenther@suse.de> |
10362 | ||
10363 | * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names. | |
10364 | ||
f8923f7e SB |
10365 | 2012-08-07 Steven Bosscher <steven@gcc.gnu.org> |
10366 | ||
10367 | * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush | |
10368 | instead of separate pp_newline and pp_flush. | |
10369 | (print_c_tree): Likewise. | |
10370 | ||
e45abe1f RH |
10371 | 2012-07-26 Richard Henderson <rth@redhat.com> |
10372 | ||
10373 | * c-common.c (handle_hot_attribute): Allow labels. | |
10374 | (handle_cold_attribute): Likewise. | |
10375 | ||
332f1d24 JJ |
10376 | 2012-07-20 Jakub Jelinek <jakub@redhat.com> |
10377 | ||
10378 | PR c++/28656 | |
10379 | * c-common.c (check_function_nonnull): Handle multiple nonnull | |
10380 | attributes properly. | |
10381 | ||
7ee2468b SB |
10382 | 2012-07-16 Steven Bosscher <steven@gcc.gnu.org> |
10383 | ||
10384 | * c-gimplify.c: Include dumpfile.h instead of tree-dump.h. | |
10385 | * c-ada-spec.c: Likewise. | |
10386 | * c-dump.c (dump_stmt): Move to cp/dump.c, the only user. | |
10387 | ||
ee7b28eb SB |
10388 | 2012-07-14 Steven Bosscher <steven@gcc.gnu.org> |
10389 | ||
10390 | * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define. | |
10391 | Remove code conditional on it. | |
10392 | ||
6bdf3519 SB |
10393 | 2012-07-11 Steven Bosscher <steven@gcc.gnu.org> |
10394 | ||
10395 | * c-gimplify.c: Do not include basic-block.h. | |
10396 | * c-common.c: Do not include linfuncs.h. | |
10397 | ||
532aafad SB |
10398 | 2012-07-08 Steven Bosscher <steven@gcc.gnu.org> |
10399 | ||
10400 | * c-common.h: Include tree.h. | |
10401 | ||
8d0d1915 JM |
10402 | 2012-07-02 Jason Merrill <jason@redhat.com> |
10403 | ||
10404 | PR c++/53524 | |
10405 | * c-common.c (get_priority): Call default_conversion. | |
10406 | ||
fbc873ad UB |
10407 | 2012-07-01 Uros Bizjak <ubizjak@gmail.com> |
10408 | ||
10409 | * c-pch.c (c_common_write_pch): Remove unused variables. | |
10410 | ||
d4a10d0a SB |
10411 | 2012-06-29 Steven Bosscher <steven@gcc.gnu.org> |
10412 | ||
10413 | * cppspec.c: Moved from gcc/ to here. | |
10414 | ||
6f3a2e23 KT |
10415 | 2012-06-27 Kai Tietz <ktietz@redhat.com> |
10416 | ||
10417 | PR preprocessor/37215 | |
10418 | * c-ppoutput.c (preprocess_file): Check for nonempty buffer. | |
10419 | ||
8ca92d04 SB |
10420 | 2012-06-21 Steven Bosscher <steven@gcc.gnu.org> |
10421 | ||
10422 | * c-common.h (c_common_print_pch_checksum): Remove. | |
10423 | * c-pch.c: Do not include output.h. | |
10424 | (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME. | |
10425 | (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined. | |
10426 | (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined. | |
10427 | (struct c_pch_header): Remove. | |
10428 | (get_ident): Update gpch version. | |
10429 | (pch_init): Do not print executable_checksum to asm_out_file. | |
10430 | Do not fail if there is no asm_out_file to read back from. Set | |
10431 | asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined. | |
10432 | (c_common_write_pch): Verify that nothing was written to asm_out_file | |
10433 | since pch_init was called. Do not write a c_pch_header, and do not | |
10434 | copy from asm_out_file to the PCH. | |
10435 | (c_common_read_pch): Do not read a c_pch_header, and do not restore | |
10436 | the content of asm_out_file from the PCH. | |
10437 | (c_common_print_pch_checksum): Remove. | |
10438 | * c-opts.c (c_common_init): Print out executable_checksum directly. | |
10439 | ||
70f42967 SB |
10440 | 2012-06-19 Steven Bosscher <steven@gcc.gnu.org> |
10441 | ||
10442 | * c-target.def (objc_declare_unresolved_class_reference, | |
10443 | objc_declare_class_definition): Add new hooks. | |
10444 | ||
a8781821 SB |
10445 | 2012-06-19 Steven Bosscher <steven@gcc.gnu.org> |
10446 | ||
10447 | * c-lex.c: Do not include output.h. | |
10448 | (cb_ident): Try to put out .ident with targetm.asm_out.output_ident. | |
10449 | Remove uses of ASM_OUTPUT_IDENT. | |
10450 | ||
9e1a8dd1 RR |
10451 | 2012-06-15 Marc Glisse <marc.glisse@inria.fr> |
10452 | ||
10453 | PR c++/51033 | |
10454 | * c-common.h (c_build_vec_perm_expr): Move decl here. | |
10455 | * c-common.c (c_build_vec_perm_expr): Move definition | |
10456 | here. | |
10457 | ||
6f07a821 SB |
10458 | 2012-06-06 Steven Bosscher <steven@gcc.gnu.org> |
10459 | ||
10460 | * c.opt (fconserve-space): Turn into a no-op. | |
10461 | ||
9faeb493 | 10462 | 2012-06-04 Sterling Augustine <saugustine@google.com> |
c265f413 SA |
10463 | |
10464 | * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator. | |
10465 | * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at | |
10466 | both the start and end of the function. | |
10467 | ||
a4b7d13c SB |
10468 | 2012-06-04 Steven Bosscher <steven@gcc.gnu.org> |
10469 | ||
10470 | * c-common.c: Do not include output.h. | |
10471 | * c-pragma.c: Likewise. | |
10472 | ||
c265f413 SA |
10473 | 2012-06-04 Steven Bosscher <steven@gcc.gnu.org> |
10474 | ||
10475 | * error.c (dump_decl): Check pp_c_flag_gnu_v3. | |
10476 | (decl_as_dwarf_string, lang_decl_dwarf_name): New functions. | |
10477 | (lang_decl_name): Handle namespace decls. | |
10478 | ||
be7a421e SB |
10479 | 2012-05-31 Steven Bosscher <steven@gcc.gnu.org> |
10480 | ||
10481 | * c-ada-spec.c: Do not include output.h. | |
10482 | * c-semantics.c: Likewise. | |
10483 | ||
65de6659 JM |
10484 | 2012-05-29 Joseph Myers <joseph@codesourcery.com> |
10485 | ||
10486 | * c-common.c: Fix typo. | |
10487 | ||
ca5f4331 MM |
10488 | 2012-05-29 Michael Matz <matz@suse.de> |
10489 | ||
10490 | * c-common.h (c_expand_decl): Remove prototype. | |
10491 | ||
4f7f7aca MLI |
10492 | 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org> |
10493 | ||
10494 | * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall). | |
10495 | * c-opts.c (c_common_handle_option): Remove code handling | |
10496 | warn_missing_braces. | |
10497 | ||
4a792f9b PC |
10498 | 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com> |
10499 | ||
10500 | PR c++/25137 | |
10501 | * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable | |
10502 | -Wmissing_braces. | |
10503 | ||
650dc14a DS |
10504 | 2012-05-22 Dodji Seketeli <dodji@redhat.com> |
10505 | ||
10506 | PR c++/53322 | |
10507 | * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused). | |
10508 | ||
9b095bf1 MLI |
10509 | 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org> |
10510 | ||
10511 | * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here. | |
10512 | * c-opts.c (c_common_handle_option): Do not handle explicitly | |
10513 | Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors. | |
10514 | ||
0b2c4be5 DS |
10515 | 2012-05-16 Dodji Seketeli <dodji@redhat.com> |
10516 | ||
10517 | PR preprocessor/7263 | |
ab20d992 | 10518 | * c-lex.c (c_lex_with_flags): Pass a virtual location to the call |
0b2c4be5 DS |
10519 | to cpp_classify_number. For diagnostics, use the precise location |
10520 | instead of the global input_location. | |
10521 | ||
a1bde5af PC |
10522 | 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com> |
10523 | ||
d02924ef | 10524 | PR c++/11856 |
a1bde5af PC |
10525 | * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings. |
10526 | ||
d1ede5f4 BS |
10527 | 2012-05-14 Bernd Schmidt <bernds@codesourcery.com> |
10528 | ||
a1bde5af | 10529 | * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary. |
d1ede5f4 | 10530 | |
f2bc201f MLI |
10531 | 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org> |
10532 | ||
10533 | PR 53063 | |
10534 | * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init, | |
10535 | Wreorder): Use LangEnabledBy. | |
10536 | * c-opts.c (c_common_handle_option): Do not enable them | |
10537 | explicitly. Call lang-specific generated functions. | |
10538 | (c_common_post_options): Do not set them here. | |
10539 | ||
95744782 MLI |
10540 | 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org> |
10541 | ||
10542 | * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers, | |
10543 | Wmissing-field-initializers,Wmissing-parameter-type, | |
10544 | Wold-style-declaration,Woverride-init): Use EnabledBy. | |
10545 | * c-opts.c (c_common_post_options): Do not set here explicitly. | |
10546 | ||
7d5a5747 MLI |
10547 | 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org> |
10548 | ||
10549 | PR 53063 | |
10550 | * c-opts.c (c_common_handle_option): Use handle_generated_option | |
10551 | to enable sub-options. | |
10552 | ||
5a3c9cf2 PC |
10553 | 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com> |
10554 | ||
10555 | PR c++/53158 | |
10556 | * c-common.c (warnings_for_convert_and_check): Use warning_at. | |
10557 | ||
3ac8781c RG |
10558 | 2012-05-10 Richard Guenther <rguenther@suse.de> |
10559 | ||
10560 | * c-common.c (c_sizeof_or_alignof_type): Remove assert and | |
10561 | adjust commentary about TYPE_IS_SIZETYPE types. | |
10562 | ||
1e537948 MLI |
10563 | 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org> |
10564 | ||
10565 | PR c++/53261 | |
10566 | * c-common.c (warn_logical_operator): Check that argument of | |
10567 | integer_zerop is not NULL. | |
10568 | ||
f2c4a785 MLI |
10569 | 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org> |
10570 | ||
10571 | PR c/43772 | |
10572 | * c-common.c (warn_logical_operator): Do not warn if either side | |
10573 | is already true or false. | |
10574 | ||
50f305ca MLI |
10575 | 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org> |
10576 | ||
10577 | PR c/51712 | |
10578 | * c-common.c (expr_original_type): New. | |
10579 | (shorten_compare): Do not warn for enumeration types. | |
10580 | ||
0c3641b0 MLI |
10581 | 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org> |
10582 | ||
10583 | * c.opt (fpermissive): Add Var(flag_permissive). | |
10584 | ||
7edaa4d2 MG |
10585 | 2012-04-30 Marc Glisse <marc.glisse@inria.fr> |
10586 | ||
10587 | PR c++/51033 | |
10588 | * c-common.c (convert_vector_to_pointer_for_subscript): New function. | |
10589 | * c-common.h (convert_vector_to_pointer_for_subscript): Declare it. | |
10590 | ||
b9c8da34 DS |
10591 | 2012-04-30 Dodji Seketeli <dodji@redhat.com> |
10592 | ||
10593 | Add -Wvarargs option | |
ab20d992 | 10594 | * c.opt (Wvarargs): Define new option. |
b9c8da34 | 10595 | |
e6c69da0 MLI |
10596 | 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org> |
10597 | ||
10598 | * c-common.c (check_function_arguments): Replace | |
10599 | Wmissing-format-attribute with Wsuggest-attribute=format. | |
10600 | ||
90137d8f MLI |
10601 | 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org> |
10602 | ||
10603 | * c.opt (Wsuggest-attribute=format): New. Alias of | |
10604 | Wmissing-format-attribute. | |
10605 | * c-format.c (decode_format_type): Replace | |
10606 | Wmissing-format-attribute with Wsuggest-attribute=format. | |
10607 | (check_function_format): Likewise. | |
10608 | ||
9faeb493 | 10609 | 2012-04-27 Ollie Wild <aaw@google.com> |
7f5f5f98 OW |
10610 | |
10611 | * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping. | |
10612 | * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix. | |
10613 | * c.opt: Add Wliteral-suffix. | |
10614 | ||
c1771a20 MLI |
10615 | 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org> |
10616 | ||
10617 | PR c/44774 | |
10618 | * c.opt (Wpedantic): New. | |
10619 | (pedantic): Alias Wpedantic. | |
10620 | * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic. | |
10621 | (c_common_post_options): Likewise. | |
10622 | (sanitize_cpp_opts): Likewise. | |
10623 | * c-lex.c (interpret_float): Likewise. | |
10624 | * c-format.c (check_format_types): Likewise. | |
10625 | * c-common.c (pointer_int_sum): Likewise. | |
10626 | (c_sizeof_or_alignof_type): Likewise. | |
10627 | (c_add_case_label): Likewise. | |
10628 | (c_do_switch_warnings): Likewise. | |
10629 | * c-pragma.c (handle_pragma_float_const_decimal64): Likewise. | |
10630 | ||
04b391c1 JM |
10631 | 2012-04-15 Jason Merrill <jason@redhat.com> |
10632 | ||
10633 | PR c++/52818 | |
10634 | * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99. | |
10635 | (C_STD_NAME): Distinguish between C++98 and C++11. | |
10636 | ||
ac868f29 EB |
10637 | 2012-04-11 Eric Botcazou <ebotcazou@adacore.com> |
10638 | ||
10639 | PR target/52624 | |
10640 | * c-common.h (uint16_type_node): Rename into... | |
10641 | (c_uint16_type_node): ...this. | |
10642 | * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming. | |
10643 | * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise. | |
10644 | ||
fd4116f4 MLI |
10645 | 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org> |
10646 | ||
10647 | * c-common.c (warn_if_unused_value): Move definition to here. | |
10648 | * c-common.h (warn_if_unused_value): Move declaration to here. | |
10649 | ||
573ac65e WB |
10650 | 2012-03-23 William Bader <williambader@hotmail.com> |
10651 | ||
10652 | * c-lex.c (c_lex_with_flags): Avoid declarations after stmts. | |
10653 | ||
552b8185 JM |
10654 | 2012-03-20 Jason Merrill <jason@redhat.com> |
10655 | ||
10656 | * c-common.h (enum cxx_dialect): Add cxx1y. | |
10657 | * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect | |
10658 | test. | |
10659 | * c-cppbuiltin.c (c_cpp_builtins): Likewise. | |
10660 | * c-opts.c (c_common_post_options): Likewise. | |
10661 | (set_std_cxx1y): New. | |
10662 | (c_common_handle_option): Call it. | |
10663 | * c.opt (-std=c++1y, -std=gnu++1y): New flags. | |
10664 | ||
04398fa8 PC |
10665 | 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com> |
10666 | ||
10667 | PR c++/14710 | |
10668 | * c.opt ([Wuseless-cast]): Add. | |
10669 | ||
d2a12ae7 RG |
10670 | 2012-03-16 Richard Guenther <rguenther@suse.de> |
10671 | ||
10672 | * c-pretty-print.c (pp_c_initializer_list): Adjust. | |
10673 | ||
a12bf402 MLI |
10674 | 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org> |
10675 | ||
10676 | PR c++/44783 | |
10677 | * c.opt (ftemplate-backtrace-limit) Add. | |
10678 | ||
5c30094f RO |
10679 | 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
10680 | ||
10681 | * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix | |
10682 | handling. | |
10683 | * c-pragma.c (handle_pragma_extern_prefix): Remove. | |
10684 | (init_pragma): Don't register extern_prefix. | |
10685 | ||
21fa2faf RG |
10686 | 2012-03-12 Richard Guenther <rguenther@suse.de> |
10687 | ||
10688 | * c-common.c (c_common_get_narrower): Use c_common_type_for_size. | |
10689 | (builtin_type_for_size): Likewise. | |
10690 | ||
e3793c6f JJ |
10691 | 2012-02-13 Jakub Jelinek <jakub@redhat.com> |
10692 | ||
10693 | PR c++/52215 | |
10694 | * c-common.c (sync_resolve_params): Don't decide whether to convert | |
10695 | or not based on TYPE_SIZE comparison, convert whenever arg_type | |
10696 | is unsigned INTEGER_TYPE. | |
10697 | ||
93286335 PC |
10698 | 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com> |
10699 | ||
10700 | PR c/52118 | |
10701 | * c.opt ([Wunused-local-typedefs]): Fix description. | |
10702 | ||
7a421706 MS |
10703 | 2012-01-24 Mike Stump <mikestump@comcast.net> |
10704 | ||
10705 | * c-common.c (c_common_type_for_mode): Match signed/unsigned types | |
10706 | exactly. | |
10707 | ||
ba9b1f11 RG |
10708 | 2012-01-18 Richard Guenther <rguenther@suse.de> |
10709 | ||
10710 | * c-opts.c (c_common_post_options): Reset LTO flags if | |
10711 | we are about to generate a PCH. | |
10712 | ||
465406be PC |
10713 | 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com> |
10714 | ||
10715 | PR c++/51777 | |
10716 | * c-pretty-print.c (pp_c_integer_constant): For unsigned constants | |
10717 | use pp_unsigned_wide_integer. | |
10718 | ||
aee15221 RG |
10719 | 2012-01-10 Richard Guenther <rguenther@suse.de> |
10720 | ||
10721 | PR middle-end/51806 | |
10722 | * c-opts.c (c_common_handle_option): Move -Werror handling | |
10723 | to language independent code. | |
10724 | ||
5720c0dc RG |
10725 | 2012-01-05 Richard Guenther <rguenther@suse.de> |
10726 | ||
10727 | PR middle-end/51764 | |
10728 | * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here | |
10729 | from common.opt. | |
10730 | ||
73ac190a PC |
10731 | 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com> |
10732 | ||
10733 | PR c++/51316 | |
10734 | * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof | |
10735 | of array types with an unknown bound. | |
10736 | ||
48b0b196 JM |
10737 | 2011-12-20 Joseph Myers <joseph@codesourcery.com> |
10738 | ||
10739 | * c-common.c (flag_isoc99): Update comment to refer to C11. | |
10740 | (flag_isoc1x): Change to flag_isoc11. | |
10741 | * c-common.h (flag_isoc99): Update comment to refer to C11. | |
10742 | (flag_isoc1x): Change to flag_isoc11. | |
10743 | * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to | |
10744 | C11. | |
10745 | * c-opts.c (set_std_c1x): Change to set_std_c11. | |
10746 | (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11. | |
10747 | Call set_std_c11. | |
10748 | (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11. | |
10749 | (set_std_c1): Use CLK_STDC11 and CLK_GNUC11. | |
10750 | * c.opt (std=c1x): Change to std=c11. Document as non-draft | |
10751 | standard. | |
10752 | (std=c1x, std=iso9899:2011): Add as aliases of std=c11. | |
10753 | (std=gnu1x): Change to std=gnu11. Refer to non-draft standard. | |
10754 | (std=gnu1x): Make alias of std=gnu11. | |
10755 | ||
d58d6eb5 JM |
10756 | 2011-12-19 Jason Merrill <jason@redhat.com> |
10757 | ||
10758 | PR c++/51228 | |
10759 | * c-common.c (handle_transparent_union_attribute): Check the first | |
10760 | field if the type is complete. | |
10761 | ||
b3908fcc JW |
10762 | 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com> |
10763 | ||
10764 | PR libstdc++/51365 | |
10765 | * c-common.c (RID_IS_FINAL): Add. | |
10766 | * c-common.h (RID_IS_FINAL): Add. | |
10767 | ||
fea3ca91 IS |
10768 | 2011-11-30 Iain Sandoe <iains@gcc.gnu.org> |
10769 | ||
10770 | * c.opt (fgnu-runtime): Provide full description. | |
10771 | (fnext-runtime): Likewise. | |
10772 | * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove. | |
10773 | ||
62bad7cd AM |
10774 | 2011-11-28 Andrew MacLeod <amacleod@redhat.com> |
10775 | ||
10776 | * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic | |
10777 | predefines in one place. Add LOCK_FREE predefines. | |
10778 | (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to | |
10779 | new func. | |
10780 | ||
c466c4ff AM |
10781 | 2011-11-24 Andrew MacLeod <amacleod@redhat.com> |
10782 | ||
10783 | PR c/51256 | |
9faeb493 | 10784 | * c-common.c (get_atomic_generic_size): Check for various error |
c466c4ff | 10785 | conditions |
9faeb493 UB |
10786 | (resolve_overloaded_atomic_exchange, |
10787 | resolve_overloaded_atomic_compare_exchange, | |
c466c4ff AM |
10788 | resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return |
10789 | error_mark_node for error conditions. | |
9faeb493 | 10790 | |
a5952633 RG |
10791 | 2011-11-08 Richard Guenther <rguenther@suse.de> |
10792 | ||
10793 | PR middle-end/51010 | |
ab20d992 | 10794 | * c-pretty-print.c (pp_c_expression): Handle SSA_NAMEs. |
a5952633 | 10795 | |
0a35513e AH |
10796 | 2011-11-07 Richard Henderson <rth@redhat.com> |
10797 | Aldy Hernandez <aldyh@redhat.com> | |
10798 | Torvald Riegel <triegel@redhat.com> | |
10799 | ||
10800 | Merged from transactional-memory. | |
10801 | ||
10802 | * c-common.c (handle_tm_wrap_attribute, | |
10803 | handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New. | |
10804 | (struct c_common_reswords): Added __transaction* keywords. | |
10805 | (struct c_common_attribute_table): Added transaction* and tm_regparm | |
10806 | attributes. | |
10807 | * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT* | |
10808 | masks. | |
10809 | (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr, | |
10810 | find_tm_attribute): Declare. | |
10811 | ||
6d87092d JM |
10812 | 2011-11-07 Jason Merrill <jason@redhat.com> |
10813 | ||
10814 | PR c++/35688 | |
10815 | * c-common.c, c-common.h: Revert yesterday's changes. | |
10816 | ||
8e7860a1 JM |
10817 | 2011-11-06 Jason Merrill <jason@redhat.com> |
10818 | ||
10819 | PR c++/35688 | |
10820 | * c-common.c (decl_has_visibility_attr): Split out from... | |
10821 | (c_determine_visibility): ...here. | |
10822 | * c-common.h: Declare it. | |
10823 | ||
d19fa6b5 JM |
10824 | 2011-11-06 Joseph Myers <joseph@codesourcery.com> |
10825 | ||
10826 | * c-common.c (c_common_reswords): Add _Alignas and _Alignof. | |
10827 | (c_sizeof_or_alignof_type): Diagnose alignof applied to a function | |
10828 | type. | |
10829 | (check_user_alignment): New. Split out of | |
10830 | handle_aligned_attribute. Disallow integer constants with | |
10831 | noninteger types. Conditionally allow zero. | |
10832 | (handle_aligned_attribute): Use check_user_alignment. | |
10833 | * c-common.h (RID_ALIGNAS, check_user_alignment): New. | |
10834 | ||
86951993 AM |
10835 | 2011-11-06 Andrew MacLeod <amacleod@redhat.com> |
10836 | Richard Henderson <rth@redhat.com> | |
10837 | ||
10838 | Merged from cxx-mem-model. | |
10839 | ||
10840 | * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns. | |
9faeb493 | 10841 | * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak |
86951993 AM |
10842 | parameters that are the same type size. |
10843 | (get_atomic_generic_size): New. Find size of generic | |
10844 | atomic function parameters and do typechecking. | |
10845 | (add_atomic_size_parameter): New. Insert size into parameter list. | |
10846 | (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to | |
10847 | either __atomic_exchange_n or external library call. | |
9faeb493 | 10848 | (resolve_overloaded_atomic_compare_exchange): Restructure |
86951993 | 10849 | __atomic_compare_exchange to either _n variant or external library call. |
9faeb493 | 10850 | (resolve_overloaded_atomic_load): Restructure __atomic_load to either |
86951993 AM |
10851 | __atomic_load_n or an external library call. |
10852 | (resolve_overloaded_atomic_store): Restructure __atomic_store to either | |
10853 | __atomic_store_n or an external library call. | |
10854 | (resolve_overloaded_builtin): Handle new __atomic builtins. | |
10855 | ||
cf9e9959 EB |
10856 | 2011-11-04 Eric Botcazou <ebotcazou@adacore.com> |
10857 | ||
10858 | PR c++/50608 | |
10859 | * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1. | |
10860 | (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust. | |
10861 | <INDIRECT_REF>: Return the argument. | |
10862 | <ARRAY_REF>: Remove special code for negative offset. | |
10863 | Call fold_build_pointer_plus instead of size_binop. | |
10864 | (fold_offsetof): Remove STOP_REF argument and adjust. | |
10865 | * c-common.h (fold_offsetof_1): Declare. | |
10866 | (fold_offsetof): Remove STOP_REF argument. | |
10867 | ||
25339f10 JM |
10868 | 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com> |
10869 | ||
10870 | PR c++/50810 | |
10871 | * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part | |
10872 | of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default | |
10873 | Wnarrowing for C++0x and C++98. | |
10874 | * c.opt ([Wnarrowing]): Update. | |
10875 | ||
89401152 PC |
10876 | 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com> |
10877 | ||
10878 | PR c++/44277 | |
10879 | * c.opt: Add Wzero-as-null-pointer-constant. | |
10880 | ||
97e3ad20 JM |
10881 | 2011-10-31 Jason Merrill <jason@redhat.com> |
10882 | ||
15694fdd JM |
10883 | * c.opt (-fdeduce-init-list): Off by default. |
10884 | ||
97e3ad20 JM |
10885 | PR c++/50920 |
10886 | * c-common.h (cxx_dialect): Add cxx11 and cxx03. | |
10887 | * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03, | |
10888 | and -Wc++11-compat. | |
10889 | * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x. | |
10890 | ||
fb9120e3 RAV |
10891 | 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov> |
10892 | ||
10893 | PR c++/30066 | |
10894 | * c.opt (fvisibility-inlines-hidden): Description change. | |
10895 | ||
3ce4f9e4 ESR |
10896 | 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net> |
10897 | ||
10898 | Implement C++11 user-defined literals. | |
10899 | * c-common.c (build_userdef_literal): New. | |
10900 | * c-common.def: New tree code. | |
10901 | * c-common.h (tree_userdef_literal): New tree struct and accessors. | |
10902 | * c-lex.c (interpret_float): Add suffix parm. | |
10903 | (c_lex_with_flags): Build literal tokens. | |
10904 | ||
5f53c243 PC |
10905 | 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> |
10906 | ||
10907 | PR c++/50841 | |
10908 | Revert: | |
10909 | 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> | |
10910 | ||
10911 | PR c++/50810 | |
10912 | * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part | |
10913 | of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default | |
10914 | Wnarrowing for C++0x and C++98. | |
10915 | * c.opt ([Wnarrowing]): Update. | |
10916 | ||
263734e1 PC |
10917 | 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> |
10918 | ||
10919 | PR c++/50810 | |
10920 | * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part | |
10921 | of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default | |
10922 | Wnarrowing for C++0x and C++98. | |
10923 | * c.opt ([Wnarrowing]): Update. | |
10924 | ||
d2e312d7 PC |
10925 | 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com> |
10926 | ||
10927 | PR c++/45385 | |
10928 | * c-common.c (conversion_warning): Remove code looking for | |
10929 | artificial operands. | |
10930 | ||
d17687f6 DS |
10931 | 2011-10-18 Dodji Seketeli <dodji@redhat.com> |
10932 | ||
10933 | PR bootstrap/50760 | |
10934 | * c-lex.c (fe_file_change): Use LINEMAP_SYSP when | |
9faeb493 | 10935 | !NO_IMPLICIT_EXTERN_C. |
d17687f6 | 10936 | |
fc8396e9 PC |
10937 | 2011-10-17 Michael Spertus <mike_spertus@symantec.com> |
10938 | ||
10939 | * c-common.c (c_common_reswords): Add __bases, | |
10940 | __direct_bases. | |
10941 | * c-common.h: Add RID_BASES and RID_DIRECT_BASES. | |
10942 | ||
10943 | 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com> | |
10944 | ||
10945 | PR c++/50757 | |
10946 | * c.opt ([Wnonnull]): Add C++ and Objective-C++. | |
10947 | ||
847e697a TT |
10948 | 2011-10-15 Tom Tromey <tromey@redhat.com> |
10949 | Dodji Seketeli <dodji@redhat.com> | |
10950 | ||
10951 | * c.opt (fdebug-cpp): New option. | |
10952 | * c-opts.c (c_common_handle_option): Handle the option. | |
10953 | * c-ppoutput.c (maybe_print_line_1): New static function. Takes an | |
10954 | output stream in parameter. Factorized from ... | |
10955 | (maybe_print_line): ... this. Dump location debug information when | |
10956 | -fdebug-cpp is in effect. | |
10957 | (print_line_1): New static function. Takes an output stream in | |
10958 | parameter. Factorized from ... | |
10959 | (print_line): ... here. Dump location information when -fdebug-cpp | |
10960 | is in effect. | |
10961 | (scan_translation_unit): Dump location information when | |
10962 | -fdebug-cpp is in effect. | |
10963 | ||
92582b75 TT |
10964 | 2011-10-15 Tom Tromey <tromey@redhat.com> |
10965 | Dodji Seketeli <dodji@redhat.com> | |
10966 | ||
10967 | * c.opt (ftrack-macro-expansion): New option. Handle it with and | |
10968 | without argument. | |
10969 | * c-opts.c (c_common_handle_option)<case | |
10970 | OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New | |
10971 | cases. Handle -ftrack-macro-expansion with and without argument. | |
10972 | ||
46427374 TT |
10973 | 2011-10-15 Tom Tromey <tromey@redhat.com> |
10974 | Dodji Seketeli <dodji@redhat.com> | |
10975 | ||
10976 | * c-ppoutput.c (scan_translation_unit, maybe_print_line) | |
10977 | (print_line, cb_define, do_line_change): Adjust to avoid touching | |
10978 | the internals of struct line_map. Use the public API instead. | |
10979 | * c-pch.c (c_common_read_pch): Likewise. | |
10980 | * c-lex.c (fe_file_change): Likewise. | |
10981 | ||
fc8396e9 PC |
10982 | 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com> |
10983 | ||
10984 | PR c++/17212 | |
10985 | * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++. | |
10986 | ||
10987 | 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com> | |
10988 | ||
10989 | PR c++/33067 | |
10990 | * c-pretty-print.c (pp_c_floating_constant): Output | |
10991 | max_digits10 (in the ISO C++ WG N1822 sense) decimal digits. | |
10992 | ||
e79983f4 MM |
10993 | 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com> |
10994 | ||
10995 | * c-common.c (def_builtin_1): Delete old interface with two | |
10996 | parallel arrays to hold standard builtin declarations, and replace | |
10997 | it with a function based interface that can support creating | |
10998 | builtins on the fly in the future. Change all uses, and poison | |
10999 | the old names. Make sure 0 is not a legitimate builtin index. | |
11000 | * c-omp.c (c_finish_omp_barrier): Ditto. | |
11001 | (c_finish_omp_taskwait): Ditto. | |
11002 | (c_finish_omp_flush): Ditto. | |
11003 | ||
6637388f TG |
11004 | 2011-10-11 Tristan Gingold <gingold@adacore.com> |
11005 | ||
11006 | * c.opt: (fallow-parameterless-variadic-functions): New. | |
11007 | ||
3797cb21 DS |
11008 | 2011-09-08 Dodji Seketeli <dodji@redhat.com> |
11009 | ||
11010 | PR c++/33255 - Support -Wunused-local-typedefs warning | |
11011 | * c-common.h (struct c_language_function::local_typedefs): New | |
11012 | field. | |
9faeb493 UB |
11013 | (record_locally_defined_typedef, maybe_record_typedef_use) |
11014 | (maybe_warn_unused_local_typedefs): Declare new functions. | |
3797cb21 | 11015 | * c-common.c (record_locally_defined_typedef) |
9faeb493 UB |
11016 | (maybe_record_typedef_use) |
11017 | (maybe_warn_unused_local_typedefs): Define new functions. | |
3797cb21 DS |
11018 | * c.opt: Declare new -Wunused-local-typedefs flag. |
11019 | ||
693ddb1b EB |
11020 | 2011-09-06 Eric Botcazou <ebotcazou@adacore.com> |
11021 | ||
11022 | PR middle-end/50266 | |
11023 | * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like | |
11024 | computations. | |
11025 | ||
830c740f RG |
11026 | 2011-09-05 Richard Guenther <rguenther@suse.de> |
11027 | ||
11028 | * c-common.c (complete_array_type): Use ssize_int (-1) instead | |
11029 | of integer_minus_one_node for empty array upper bounds. | |
11030 | ||
892a371f DS |
11031 | 2011-08-28 Dodji Seketeli <dodji@redhat.com> |
11032 | ||
11033 | * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as | |
11034 | it's the first time it's being called on this main TU. | |
11035 | ||
0e3fdb48 RB |
11036 | 2011-08-24 Richard Guenther <rguenther@suse.de> |
11037 | ||
11038 | PR c/49396 | |
11039 | * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional. | |
11040 | ||
11041 | 2011-08-22 Gabriel Charette <gchare@google.com> | |
e3dfef44 GC |
11042 | |
11043 | * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens | |
11044 | defined in cpp_init_builtins and c_cpp_builtins. | |
11045 | ||
d4a83c10 JM |
11046 | 2011-08-19 Joseph Myers <joseph@codesourcery.com> |
11047 | ||
11048 | * c-common.c (c_common_reswords): Add __builtin_complex. | |
11049 | * c-common.h (RID_BUILTIN_COMPLEX): New. | |
11050 | ||
bbceee64 JM |
11051 | 2011-08-18 Joseph Myers <joseph@codesourcery.com> |
11052 | ||
11053 | * c-common.c (c_common_reswords): Add _Noreturn. | |
11054 | (keyword_is_function_specifier): Handle RID_NORETURN. | |
11055 | * c-common.h (RID_NORETURN): New. | |
11056 | ||
3f8257db | 11057 | 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com> |
0e3a99ae AS |
11058 | |
11059 | * c-common.c (unsafe_conversion_p): New function. Check if it is | |
11060 | unsafe to convert an expression to the type. | |
11061 | (conversion_warning): Adjust, use unsafe_conversion_p. | |
11062 | * c-common.h (unsafe_conversion_p): New function declaration. | |
11063 | ||
20906c66 JJ |
11064 | 2011-08-02 Jakub Jelinek <jakub@redhat.com> |
11065 | ||
11066 | * c-common.h (c_finish_omp_atomic): Adjust prototype. | |
11067 | (c_finish_omp_taskyield): New prototype. | |
11068 | * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1 | |
11069 | arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and | |
11070 | OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1 | |
11071 | or RHS1 have side-effects, evaluate those too in the right spot, | |
11072 | if it is a decl and LHS is also a decl, error out if they | |
11073 | aren't the same. | |
11074 | (c_finish_omp_taskyield): New function. | |
11075 | * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107. | |
11076 | * c-pragma.c (omp_pragmas): Add taskyield. | |
11077 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD. | |
11078 | (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and | |
11079 | PRAGMA_OMP_CLAUSE_MERGEABLE. | |
11080 | ||
770e5a2e DS |
11081 | 2011-07-25 Dodji Seketeli <dodji@redhat.com> |
11082 | ||
11083 | * c-common.h (set_underlying_type): Remove parm name from | |
11084 | declaration. | |
11085 | ||
1baae426 RG |
11086 | 2011-07-25 Romain Geissler <romain.geissler@gmail.com> |
11087 | ||
11088 | * c-pretty-print.h: Search c-common.h in c-family. | |
9faeb493 | 11089 | |
fcb21722 JM |
11090 | 2011-07-22 Jason Merrill <jason@redhat.com> |
11091 | ||
76f86d00 JM |
11092 | PR c++/49793 |
11093 | * c.opt (Wnarrowing): New. | |
11094 | ||
3a636414 JM |
11095 | PR c++/30112 |
11096 | * c-common.h: Declare c_linkage_bindings. | |
11097 | * c-pragma.c (handle_pragma_redefine_extname): Use it. | |
11098 | ||
fcb21722 JM |
11099 | PR c++/49813 |
11100 | * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99. | |
11101 | * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well | |
11102 | as flag_isoc99 for 'restrict'. | |
11103 | (pp_c_specifier_qualifier_list): Likewise for _Complex. | |
11104 | ||
02614448 ILT |
11105 | 2011-07-21 Ian Lance Taylor <iant@google.com> |
11106 | ||
11107 | PR middle-end/49705 | |
11108 | * c-common.c (c_disable_warnings): New static function. | |
11109 | (c_enable_warnings): New static function. | |
11110 | (c_fully_fold_internal): Change local unused_p to bool. Call | |
11111 | c_disable_warnings and c_enable_warnings rather than change | |
11112 | c_inhibit_evaluation_warnings. | |
11113 | ||
34429675 JM |
11114 | 2011-07-20 Jason Merrill <jason@redhat.com> |
11115 | ||
11116 | PR c++/6709 (DR 743) | |
11117 | PR c++/42603 (DR 950) | |
11118 | * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h. | |
11119 | (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise. | |
11120 | (CPP_DECLTYPE): New. | |
11121 | * c-common.c (c_parse_error): Handle CPP_DECLTYPE. | |
11122 | ||
5d49b6a7 RG |
11123 | 2011-07-19 Richard Guenther <rguenther@suse.de> |
11124 | ||
11125 | * c-common.c (pointer_int_sum): Use fold_build_pointer_plus. | |
11126 | * c-omp.c (c_finish_omp_for): Likewise. | |
11127 | ||
e84a58ff EB |
11128 | 2011-07-12 Eric Botcazou <ebotcazou@adacore.com> |
11129 | ||
11130 | * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop | |
11131 | body on the next line. | |
11132 | ||
329af3c7 JM |
11133 | 2011-07-08 Jason Merrill <jason@redhat.com> |
11134 | ||
4063e61b JM |
11135 | PR c++/45437 |
11136 | * c-omp.c (check_omp_for_incr_expr): Handle preevaluation. | |
11137 | ||
329af3c7 JM |
11138 | PR c++/49673 |
11139 | * c-common.c (c_apply_type_quals_to_decl): Don't check | |
11140 | TYPE_NEEDS_CONSTRUCTING. | |
11141 | ||
1a072294 RG |
11142 | 2011-07-06 Richard Guenther <rguenther@suse.de> |
11143 | ||
11144 | * c-common.c (c_common_nodes_and_builtins): | |
11145 | Merge calls to build_common_tree_nodes and build_common_tree_nodes_2. | |
11146 | ||
fce5dddd RG |
11147 | 2011-07-05 Richard Guenther <rguenther@suse.de> |
11148 | ||
11149 | * c-common.c (c_common_nodes_and_builtins): Build all common | |
11150 | tree nodes first. | |
11151 | ||
45d439ac JJ |
11152 | 2011-06-27 Jakub Jelinek <jakub@redhat.com> |
11153 | ||
56300785 JJ |
11154 | * c-common.h (c_tree_chain_next): New static inline function. |
11155 | ||
45d439ac JJ |
11156 | * c-common.c (check_builtin_function_arguments): Handle |
11157 | BUILT_IN_ASSUME_ALIGNED. | |
11158 | ||
e0a8ecf2 AM |
11159 | 2011-06-21 Andrew MacLeod <amacleod@redhat.com> |
11160 | ||
11161 | * c-common.c: Add sync_ or SYNC__ to builtin names. | |
11162 | * c-omp.c: Add sync_ or SYNC__ to builtin names. | |
dfb43cd5 PV |
11163 | |
11164 | 2011-06-20 Pierre Vittet <piervit@pvittet.com> | |
11165 | ||
11166 | * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New | |
11167 | handler. | |
11168 | (gen_pragma_handler): New union. | |
11169 | (internal_pragma_handler): New type. | |
11170 | (c_register_pragma_with_data) | |
11171 | (c_register_pragma_with_expansion_and_data): New functions. | |
11172 | ||
11173 | * c-pragma.c (registered_pragmas, c_register_pragma_1) | |
11174 | (c_register_pragma, c_register_pragma_with_expansion) | |
11175 | (c_invoke_pragma_handler): Changed to work with | |
11176 | internal_pragma_handler. | |
11177 | (c_register_pragma_with_data) | |
11178 | (c_register_pragma_with_expansion_and_data): New functions. | |
11179 | ||
677f3fa8 JM |
11180 | 2011-06-14 Joseph Myers <joseph@codesourcery.com> |
11181 | ||
11182 | * c-common.c: Include common/common-target.h. | |
11183 | (handle_section_attribute): Use | |
11184 | targetm_common.have_named_sections. | |
11185 | * c-cppbuiltin.c: Include common/common-target.h. | |
11186 | (c_cpp_builtins): Use targetm_common.except_unwind_info. | |
11187 | ||
d7fc8c14 RG |
11188 | 2011-06-10 Richard Guenther <rguenther@suse.de> |
11189 | ||
11190 | * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier | |
11191 | to print a IDENTIFIER_NODE. | |
11192 | ||
10e48e39 RO |
11193 | 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
11194 | Joseph Myers <joseph@codesourcery.com> | |
11195 | ||
11196 | * c.opt (fbuilding-libgcc): New option. | |
11197 | * c-cppbuiltin.c (c_cpp_builtins): Define | |
11198 | __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc. | |
11199 | ||
6976ae51 JM |
11200 | 2011-06-07 Jason Merrill <jason@redhat.com> |
11201 | ||
3ff60975 JM |
11202 | * c-common.c (max_tinst_depth): Lower default to 900. |
11203 | ||
6976ae51 JM |
11204 | * c-format.c (gcc_cxxdiag_char_table): Add 'S' format. |
11205 | ||
009db074 RG |
11206 | 2011-06-07 Richard Guenther <rguenther@suse.de> |
11207 | ||
11208 | * c-common.c (c_common_nodes_and_builtins): Do not set | |
11209 | size_type_node or call set_sizetype. | |
11210 | ||
b4592b92 DS |
11211 | 2011-06-07 Dodji Seketeli <dodji@redhat.com> |
11212 | ||
11213 | PR debug/49130 | |
11214 | * c-pretty-print.c (pp_c_integer_constant): Consider the canonical | |
9faeb493 | 11215 | type when using pointer comparison to compare types. |
b4592b92 | 11216 | |
014ab419 JW |
11217 | 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com> |
11218 | ||
11219 | * c.opt: Add -Wdelete-non-virtual-dtor. | |
11220 | * c-opts.c (c_common_handle_option): Include it in -Wall. | |
11221 | ||
4f60111f NF |
11222 | 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org> |
11223 | ||
11224 | PR bootstrap/49190 | |
11225 | ||
11226 | Revert: | |
11227 | 2011-05-26 Nathan Froyd <froydnj@codesourcery.com> | |
11228 | ||
11229 | * c-common.h (struct c_common_identifier): Inherit from tree_typed, | |
11230 | not tree_common. | |
11231 | ||
4cc4f2f4 JJ |
11232 | 2011-05-27 Jakub Jelinek <jakub@redhat.com> |
11233 | ||
11234 | PR c++/49165 | |
11235 | * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For | |
11236 | C++ don't call c_common_truthvalue_conversion on void type arms. | |
11237 | ||
38e01f9e NF |
11238 | 2011-05-27 Nathan Froyd <froydnj@codesourcery.com> |
11239 | ||
11240 | * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC. | |
11241 | (stmt_list_stack): Define. | |
11242 | (cur_stmt_list): Adjust for new type of x_cur_stmt_list. | |
11243 | * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise. | |
11244 | ||
92e948a8 NF |
11245 | 2011-05-26 Nathan Froyd <froydnj@codesourcery.com> |
11246 | ||
11247 | * c-common.c (warning_candidate_p): Check for BLOCKs. | |
11248 | ||
a2fc3e63 NF |
11249 | 2011-05-26 Nathan Froyd <froydnj@codesourcery.com> |
11250 | ||
11251 | * c-common.h (struct c_common_identifier): Inherit from tree_typed, | |
11252 | not tree_common. | |
11253 | ||
0957c029 JJ |
11254 | 2011-05-25 Jakub Jelinek <jakub@redhat.com> |
11255 | ||
11256 | * c-common.c (def_fn_type): Remove extra va_end. | |
11257 | ||
828fb3ba JM |
11258 | 2011-05-23 Jason Merrill <jason@redhat.com> |
11259 | ||
11260 | PR c++/48106 | |
11261 | * c-common.c (c_common_get_narrower): New. | |
11262 | (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it. | |
11263 | ||
dde05067 NF |
11264 | 2011-05-23 Nathan Froyd <froydnj@codesourcery.com> |
11265 | ||
11266 | * c-common.h (check_function_arguments): Tweak prototype of | |
11267 | check_function_arguments. | |
11268 | * c-common.c (check_function_arguments): Likewise. Adjust | |
11269 | calls to check_function_nonnull, check_function_format, and | |
11270 | check_function_sentinel. | |
11271 | (check_function_sentinel): Take a FUNCTION_TYPE rather than | |
11272 | separate attributes and typelist arguments. Use | |
11273 | FOREACH_FUNCTION_ARGS to iterate over argument types. | |
11274 | ||
3c0d13bf PC |
11275 | 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com> |
11276 | ||
11277 | * c-common.c (c_common_reswords): Reorder. | |
11278 | * c-common.h (rid): Likewise. | |
11279 | ||
8242dd04 NF |
11280 | 2011-05-10 Nathan Froyd <froydnj@codesourcery.com> |
11281 | ||
11282 | * c-common.c (def_fn_type): Don't call build_function_type, call | |
11283 | build_function_type_array or build_varargs_function_type_array | |
11284 | instead. | |
11285 | (c_common_nodes_and_builtins): Likewise. | |
11286 | ||
3d528853 NF |
11287 | 2011-05-05 Nathan Froyd <froydnj@codesourcery.com> |
11288 | ||
11289 | * c-common.c (c_add_case_label): Omit the loc argument to | |
11290 | build_case_label. | |
11291 | * c-common.h (build_case_label): Remove. | |
11292 | * c-semantics.c (build_case_label): Remove. | |
11293 | ||
a04a722b JM |
11294 | 2011-05-05 Joseph Myers <joseph@codesourcery.com> |
11295 | ||
11296 | * c-objc.h (objc_start_method_definition): Update prototype. | |
11297 | * stub-objc.c (objc_start_method_definition): Add extra parameter. | |
11298 | ||
e19a18d4 NF |
11299 | 2011-05-04 Nathan Froyd <froydnj@codesourcery.com> |
11300 | ||
11301 | * c-common.c (check_main_parameter_types): Reindent. Don't use | |
11302 | TYPE_ARG_TYPES directly. | |
11303 | (handle_nonnull_attribute): Likewise. | |
11304 | (sync_resolve_params): Likewise. | |
11305 | * c-format.c (handle_format_arg_attribute): Likewise. Adjust call | |
11306 | to check_format_string. | |
11307 | (handle_format_attribute): Likewise. | |
11308 | (check_format_string): Take a function type to examine instead of | |
11309 | a type list. Use a function_arg_iterator to step through argument | |
11310 | types. | |
11311 | ||
c62c040f RG |
11312 | 2011-05-04 Richard Guenther <rguenther@suse.de> |
11313 | ||
11314 | * c-common.c (fix_string_type): Use size_int for index type bounds. | |
11315 | (start_fname_decls): Do not pass NULL to build_int_cst. | |
11316 | (c_init_attributes): Likewise. | |
11317 | * c-lex.c (c_lex_with_flags): Likewise. | |
11318 | ||
c12ff9d8 JM |
11319 | 2011-04-27 Jason Merrill <jason@redhat.com> |
11320 | ||
11321 | * c-common.c (make_tree_vector_from_list): New. | |
11322 | * c-common.h: Declare it. | |
11323 | ||
304dfbe3 RG |
11324 | 2011-04-26 Richard Guenther <rguenther@suse.de> |
11325 | ||
11326 | PR preprocessor/48248 | |
11327 | * c-ppoutput.c (maybe_print_line): Always optimize newlines | |
11328 | for output size with -P. | |
11329 | ||
3c0d13bf PC |
11330 | 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com> |
11331 | ||
11332 | * c-common.c (struct c_common_resword): Add __underlying_type. | |
11333 | * c-common.h (enum rid): Add RID_UNDERLYING_TYPE. | |
11334 | ||
04695783 JM |
11335 | 2011-04-20 Jim Meyering <meyering@redhat.com> |
11336 | ||
11337 | * c-format.c (init_dollar_format_checking): Remove useless | |
11338 | if-before-free. | |
11339 | ||
0dc33c3c NP |
11340 | 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com> |
11341 | ||
11342 | * c-objc.h (objc_get_interface_ivars): Removed. | |
3c0d13bf | 11343 | (objc_detect_field_duplicates): New. |
0dc33c3c | 11344 | * stub-objc.c: Likewise. |
3c0d13bf | 11345 | |
c59633d9 NP |
11346 | 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com> |
11347 | ||
11348 | * stub-objc.c (objc_declare_protocols): Renamed to | |
11349 | objc_declare_protocol. | |
11350 | * c-objc.h: Likewise. | |
3c0d13bf | 11351 | |
32dabdaf NP |
11352 | 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com> |
11353 | ||
11354 | * stub-objc.c (objc_declare_class): Updated argument name. | |
11355 | ||
81f653d6 NF |
11356 | 2011-04-12 Nathan Froyd <froydnj@codesourcery.com> |
11357 | ||
11358 | * c-common.h (c_common_init_ts): Declare. | |
11359 | * c-common.c (c_common_init_ts): Define. | |
11360 | ||
eb345401 NP |
11361 | 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com> |
11362 | ||
11363 | * c-objc.h (objc_build_message_expr): Updated prototype. | |
11364 | * stub-objc.c (objc_build_message_expr): Likewise. | |
9faeb493 | 11365 | |
a358e188 MJ |
11366 | 2011-04-12 Martin Jambor <mjambor@suse.cz> |
11367 | ||
11368 | * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead | |
11369 | of cgraph_node. | |
11370 | ||
e6313a78 RG |
11371 | 2011-04-11 Richard Guenther <rguenther@suse.de> |
11372 | ||
11373 | * c-common.c (complete_array_type): Build a range type of | |
11374 | proper type. | |
11375 | ||
dcf0c47e NF |
11376 | 2011-04-08 Nathan Froyd <froydnj@codesourcery.com> |
11377 | ||
11378 | * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES. | |
11379 | (handle_type_generic_attribute): Likewise. | |
11380 | ||
1ee44b26 JM |
11381 | 2011-04-07 Jason Merrill <jason@redhat.com> |
11382 | ||
11383 | PR c++/48450 | |
11384 | * c-common.c (c_common_truthvalue_conversion): Don't ignore | |
11385 | conversion from C++0x scoped enum. | |
11386 | ||
acce4e77 JM |
11387 | 2011-04-06 Joseph Myers <joseph@codesourcery.com> |
11388 | ||
11389 | * c-target-def.h: New file. | |
11390 | * c-target.def: New file. | |
11391 | * c-target.h: New file. | |
11392 | * c-common.c (targetcm): Don't define here. | |
11393 | * c-common.h (default_handle_c_option): Declare. | |
11394 | * c-format.c: Include c-target.h instead of target.h. | |
11395 | * c-opts.c: Include c-target.h instead of target.h. Explicitly | |
11396 | include tm.h. | |
11397 | (default_handle_c_option): Move from targhooks.c. | |
11398 | ||
e2eefb55 JJ |
11399 | 2011-03-29 Jakub Jelinek <jakub@redhat.com> |
11400 | ||
11401 | PR preprocessor/48248 | |
11402 | * c-ppoutput.c (print): Add src_file field. | |
11403 | (init_pp_output): Initialize it. | |
11404 | (maybe_print_line): Don't optimize by adding up to 8 newlines | |
11405 | if map->to_file and print.src_file are different file. | |
11406 | (print_line): Update print.src_file. | |
11407 | ||
ba78087b KT |
11408 | 2011-03-25 Kai Tietz <ktietz@redhat.com> |
11409 | ||
11410 | * c-ada-spec.c (compare_comment): Use filename_cmp | |
11411 | instead of strcmp for filename. | |
11412 | ||
0edf1bb2 JL |
11413 | 2011-03-25 Jeff Law <law@redhat.com> |
11414 | ||
adfac8df | 11415 | * c-common.c (def_fn_type): Add missing va_end. |
0edf1bb2 | 11416 | |
c7dc8804 JM |
11417 | 2011-03-25 Jason Merrill <jason@redhat.com> |
11418 | ||
11419 | * c.opt: Add -std=c++03. | |
11420 | ||
d1d879b1 EB |
11421 | 2011-03-22 Eric Botcazou <ebotcazou@adacore.com> |
11422 | ||
11423 | * c-ada-spec.c (dump_ada_template): Skip non-class instances. | |
11424 | ||
3f8257db | 11425 | 2011-03-17 Kai Tietz <ktietz@redhat.com> |
62d784f7 KT |
11426 | |
11427 | PR target/12171 | |
5050afdf KT |
11428 | * c-pretty-print.c (pp_c_specifier_qualifier_list): |
11429 | Display allowed attributes for function pointer types. | |
11430 | (pp_c_attributes_display): New function to display | |
11431 | attributes having affects_type_identity flag set to true. | |
11432 | * c-pretty-print.h (pp_c_attributes_display): New prototype. | |
11433 | ||
62d784f7 KT |
11434 | * c-common.c (c_common_attribute_table): |
11435 | Add new element. | |
11436 | (c_common_format_attribute_table): Likewise. | |
11437 | ||
82d37118 JM |
11438 | 2011-03-18 Jason Merrill <jason@redhat.com> |
11439 | ||
49a000c3 JM |
11440 | * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth). |
11441 | * c-common.h: Don't declare it here. | |
11442 | * c-common.c: Or define it here. | |
11443 | * c-opts.c (c_common_handle_option): Or set it here. | |
11444 | ||
82d37118 JM |
11445 | PR c++/35315 |
11446 | * c-common.c (handle_transparent_union_attribute): Don't | |
11447 | make a duplicate type in C++. | |
11448 | ||
17bc631c JM |
11449 | 2011-03-15 Jason Merrill <jason@redhat.com> |
11450 | ||
11451 | * c-common.c (max_constexpr_depth): New. | |
11452 | * c-common.h: Declare it. | |
11453 | * c-opts.c (c_common_handle_option): Set it. | |
11454 | * c.opt (fconstexpr-depth): New option. | |
11455 | ||
1b9b91a6 JM |
11456 | 2011-03-11 Jason Merrill <jason@redhat.com> |
11457 | ||
f231b5ff JM |
11458 | * c-common.c (attribute_takes_identifier_p): Add missing const. |
11459 | ||
1b9b91a6 JM |
11460 | PR c++/46803 |
11461 | * c-common.c (attribute_takes_identifier_p): Assume that an | |
11462 | unknown attribute takes an identifier. | |
11463 | ||
a19e4d44 NF |
11464 | 2011-03-07 Nathan Froyd <froydnj@codesourcery.com> |
11465 | ||
11466 | PR c/47786 | |
11467 | * c-common.c (c_type_hash): Call list_length instead of iterating | |
11468 | through DECL_CHAIN. Rename 'i' to 'n_elements'. | |
11469 | ||
982d62f6 JJ |
11470 | 2011-02-19 Jakub Jelinek <jakub@redhat.com> |
11471 | ||
11472 | PR c/47809 | |
11473 | * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR. | |
11474 | ||
0a256240 NP |
11475 | 2011-02-17 Iain Sandoe <iains@gcc.gnu.org> |
11476 | ||
11477 | * c.opt (fobjc-abi-version=) New. | |
11478 | (fobjc-nilcheck): New. | |
11479 | ||
ba9e6dd5 NF |
11480 | 2011-02-03 Nathan Froyd <froydnj@codesourcery.com> |
11481 | ||
11482 | PR c++/46890 | |
11483 | * c-common.h (keyword_is_decl_specifier): Declare. | |
11484 | * c-common.c (keyword_is_decl_specifier): Define. | |
11485 | (keyword_is_function_specifier): New function. | |
11486 | ||
7273813a JJ |
11487 | 2011-01-26 Jakub Jelinek <jakub@redhat.com> |
11488 | ||
11489 | PR c/47473 | |
11490 | * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure | |
11491 | EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of | |
11492 | REAL_TYPE. | |
11493 | ||
908ef79b AC |
11494 | 2011-01-26 Arnaud Charlet <charlet@adacore.com> |
11495 | ||
11496 | * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type. | |
11497 | ||
237e9384 JJ |
11498 | 2011-01-26 Jakub Jelinek <jakub@redhat.com> |
11499 | ||
11500 | PR pch/47430 | |
11501 | * c-opts.c (c_common_post_options): Call c_common_no_more_pch | |
11502 | after init_c_lex if pch_file is set. | |
11503 | ||
47ea1edf DK |
11504 | 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com> |
11505 | ||
d4dba752 | 11506 | PR c++/43601 |
47ea1edf DK |
11507 | * c.opt (-fkeep-inline-dllexport): New switch. |
11508 | ||
2aa9c6ae RG |
11509 | 2011-01-12 Richard Guenther <rguenther@suse.de> |
11510 | ||
11511 | PR middle-end/32511 | |
11512 | * c-common.c (handle_weak_attribute): Warn instead of error | |
11513 | on declaring an inline function weak. | |
11514 | ||
7bd11157 TT |
11515 | 2011-01-05 Tom Tromey <tromey@redhat.com> |
11516 | ||
11517 | * c-common.h (lvalue_error): Update. | |
11518 | * c-common.c (lvalue_error): Add 'loc' argument. Call error_at, | |
11519 | not error. | |
11520 | ||
0e66e494 | 11521 | 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com> |
9faeb493 | 11522 | |
b4f588c4 NP |
11523 | PR objc/47075 |
11524 | * c-objc.h (objc_finish_message_expr): Added argument to | |
11525 | prototype. | |
11526 | ||
f4da8dce NF |
11527 | 2010-12-22 Nathan Froyd <froydnj@codesourcery.com> |
11528 | ||
11529 | * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute): | |
11530 | Use prototype_p. | |
11531 | ||
46270f14 NP |
11532 | 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com> |
11533 | ||
11534 | * c-objc.h (objc_maybe_warn_exceptions): New. | |
9faeb493 | 11535 | * stub-objc.c (objc_maybe_warn_exceptions): New. |
46270f14 | 11536 | |
4816c593 NF |
11537 | 2010-12-10 Nathan Froyd <froydnj@codesourcery.com> |
11538 | ||
11539 | * c-common.h (readonly_error): Declare. | |
11540 | * c-common.c (readonly_error): Define. | |
11541 | ||
7a6daeb0 NF |
11542 | 2010-12-09 Nathan Froyd <froydnj@codesourcery.com> |
11543 | ||
11544 | * c-common.h (invalid_indirection_error): Declare. | |
11545 | * c-common.c (invalid_indirection_error): Define. | |
11546 | ||
892f6119 RG |
11547 | 2010-12-03 Richard Guenther <rguenther@suse.de> |
11548 | ||
11549 | PR c/46745 | |
11550 | * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF. | |
11551 | (pp_c_unary_expression): Likewise. | |
11552 | (pp_c_expression): Likewise. | |
11553 | ||
6c39e757 NP |
11554 | 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com> |
11555 | ||
11556 | * c-common.h (objc_finish_function): New. | |
11557 | (objc_non_volatilized_type): Removed. | |
11558 | (objc_type_quals_match): Removed. | |
11559 | * stub-objc.c (objc_finish_function): New. | |
11560 | (objc_non_volatilized_type): Removed. | |
11561 | (objc_type_quals_match): Removed. | |
9faeb493 | 11562 | |
7c475d11 JM |
11563 | 2010-11-30 Joseph Myers <joseph@codesourcery.com> |
11564 | ||
11565 | * c-common.h (parse_optimize_options): Declare. | |
11566 | * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c, | |
11567 | c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h. | |
11568 | ||
71f3e391 JM |
11569 | 2010-11-29 Joseph Myers <joseph@codesourcery.com> |
11570 | ||
11571 | * c-opts.c (check_deps_environment_vars): Use getenv instead of | |
11572 | GET_ENVIRONMENT. | |
11573 | * c-pch.c (O_BINARY): Don't define here. | |
11574 | * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>. | |
11575 | ||
d5fabb58 JM |
11576 | 2010-11-25 Joseph Myers <joseph@codesourcery.com> |
11577 | ||
11578 | * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to | |
11579 | targetm.except_unwind_info. | |
11580 | ||
299404a1 JM |
11581 | 2010-11-23 Joseph Myers <joseph@codesourcery.com> |
11582 | ||
11583 | * c-opts.c (c_common_handle_option): Pass location to | |
11584 | set_struct_debug_option. | |
11585 | ||
c98cd5bf JM |
11586 | 2010-11-23 Joseph Myers <joseph@codesourcery.com> |
11587 | ||
11588 | * c-common.c (visibility_options): Move from ../opts.c. | |
11589 | * c-common.h (struct visibility_flags, visibility_options): | |
11590 | Declare here. | |
11591 | * c-opts.c (finish_options): Rename to c_finish_options. | |
11592 | (c_common_init): Update call to finish_options. | |
11593 | ||
a9546771 NP |
11594 | 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com> |
11595 | ||
11596 | PR objc/34033 | |
11597 | * c-lex.c (lex_string): Check that each string in an Objective-C | |
11598 | string concat sequence starts with either one or zero '@', and | |
11599 | that there are no spurious '@' signs at the end. | |
11600 | ||
24a57808 JM |
11601 | 2010-11-20 Joseph Myers <joseph@codesourcery.com> |
11602 | ||
11603 | * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK, | |
11604 | HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and | |
11605 | HANDLE_PRAGMA_VISIBILITY. | |
11606 | * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK, | |
11607 | HANDLE_PRAGMA_VISIBILITY): Don't define. | |
11608 | (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test. | |
11609 | ||
a9aa2c3a NF |
11610 | 2010-11-20 Nathan Froyd <froydnj@codesourcery.com> |
11611 | ||
11612 | PR c++/16189 | |
11613 | PR c++/36888 | |
11614 | PR c++/45331 | |
11615 | * c-common.h (keyword_begins_type_specifier): Declare. | |
11616 | (keyword_is_storage_class_specifier): Declare. | |
11617 | (keyword_is_type_qualifier): Declare. | |
11618 | * c-common.c (keyword_begins_type_specifier): New function. | |
11619 | (keyword_is_storage_class_specifier): New function. | |
11620 | (keyword_is_type_qualifier): Declare. | |
11621 | ||
5386338c JM |
11622 | 2010-11-19 Joseph Myers <joseph@codesourcery.com> |
11623 | ||
11624 | PR c/46547 | |
11625 | * c-common.c (in_late_binary_op): Define. | |
11626 | (c_common_truthvalue_conversion): Check in_late_binary_op before | |
11627 | calling c_save_expr. | |
11628 | * c-common.h (in_late_binary_op): Declare. | |
11629 | ||
69ccdddb JM |
11630 | 2010-11-19 Joseph Myers <joseph@codesourcery.com> |
11631 | ||
11632 | * c-opts.c (c_common_handle_option): Update calls to | |
11633 | set_struct_debug_option. | |
11634 | ||
6b192a09 NP |
11635 | 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com> |
11636 | ||
11637 | * c-common.h (objc_declare_protocols): Added additional argument. | |
11638 | * stub-objc.c (objc_declare_protocol): Same change. | |
9faeb493 | 11639 | |
fb52b50a NF |
11640 | 2010-11-18 Nathan Froyd <froydnj@codesourcery.com> |
11641 | ||
11642 | PR c/33193 | |
11643 | * c-common.h (build_real_imag_expr): Declare. | |
11644 | * c-semantics.c (build_real_imag_expr): Define. | |
11645 | ||
b37421c6 JM |
11646 | 2010-11-17 Joseph Myers <joseph@codesourcery.com> |
11647 | ||
11648 | * c-opts.c (c_common_parse_file): Take no arguments. | |
11649 | * c-common.h (c_common_parse_file): Update prototype. | |
11650 | ||
07078664 JJ |
11651 | 2010-11-16 Jakub Jelinek <jakub@redhat.com> |
11652 | ||
11653 | PR c++/46401 | |
11654 | * c-common.c (warning_candidate_p): Don't track non-const calls | |
11655 | or STRING_CSTs. | |
11656 | ||
c6a13190 ILT |
11657 | 2010-11-15 Ian Lance Taylor <iant@google.com> |
11658 | ||
11659 | * c-lex.c (init_c_lex): Set macro debug callbacks if | |
11660 | flag_dump_go_spec is set. | |
11661 | ||
925e8657 NP |
11662 | 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com> |
11663 | ||
11664 | * c-common.h (objc_build_incr_expr_for_property_ref): New. | |
11665 | * stub-objc.c (objc_build_incr_expr_for_property_ref): New. | |
11666 | ||
bb0a9581 NF |
11667 | 2010-11-15 Nathan Froyd <froydnj@codesourcery.com> |
11668 | ||
11669 | PR preprocessor/45038 | |
11670 | * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++ | |
11671 | dialects. | |
11672 | ||
c5fa0890 JM |
11673 | 2010-11-12 Joseph Myers <joseph@codesourcery.com> |
11674 | ||
11675 | * c-common.h (c_family_lang_mask): Declare. | |
11676 | * c-opts.c (c_family_lang_mask): Make extern. | |
11677 | * c-pragma.c (handle_pragma_diagnostic): Use | |
11678 | control_warning_option. | |
11679 | ||
a4d8c676 JM |
11680 | 2010-11-12 Joseph Myers <joseph@codesourcery.com> |
11681 | ||
11682 | * c-common.c (parse_optimize_options): Update call to | |
11683 | decode_options. | |
11684 | * c-common.h (c_common_handle_option): Update prototype. | |
11685 | * c-opts.c (c_common_handle_option): Take location_t parameter and | |
11686 | pass it to other functions. | |
11687 | ||
f954bd2c JM |
11688 | 2010-11-11 Joseph Myers <joseph@codesourcery.com> |
11689 | ||
11690 | * c-opts.c (warning_as_error_callback): Remove. | |
11691 | (c_common_initialize_diagnostics): Don't call | |
11692 | register_warning_as_error_callback. | |
11693 | (c_common_handle_option): Handle -Werror=normalized= here. | |
11694 | ||
d8a07487 JM |
11695 | 2010-11-10 Joseph Myers <joseph@codesourcery.com> |
11696 | ||
11697 | * c-common.c (handle_mode_attribute): Use %' and word "signedness" | |
11698 | in diagnostic. | |
11699 | * c-opts.c (c_common_parse_file): Start diagnostics with lowercase | |
11700 | letter. | |
11701 | * c-pragma.c (handle_pragma_target, handle_pragma_optimize): | |
11702 | Remove trailing '.' from diagnostics. | |
11703 | * c.opt (Wwrite-strings_: Avoid '`' in help text. | |
11704 | ||
d5478783 JM |
11705 | 2010-11-10 Joseph Myers <joseph@codesourcery.com> |
11706 | ||
11707 | * c-common.c (parse_optimize_options): Pass global_dc to | |
11708 | decode_options. | |
11709 | * c-opts.c (c_common_handle_option): Pass &global_options to | |
11710 | set_Wstrict_aliasing. | |
11711 | * c.opt (v): Don't mark Common or document here. | |
11712 | ||
91ebb981 IS |
11713 | 2010-11-06 Iain Sandoe <iains@gcc.gnu.org> |
11714 | ||
11715 | PR target/44981 | |
11716 | * c-format.c (format_type): New type gcc_objc_string_format_type. | |
11717 | (valid_stringptr_type_p): New. | |
11718 | (handle_format_arg_attribute): Use valid_stringptr_type_p (). | |
9faeb493 | 11719 | (check_format_string): Pass expected type, use |
91ebb981 IS |
11720 | valid_stringptr_type_p (), check that the format string types are |
11721 | consistent with the format specification. | |
11722 | (decode_format_attr): Warn if NSString is used outside objective-c. | |
11723 | (format_types_orig): Add NSString. | |
11724 | (format_name): New. | |
11725 | (format_flags): New. | |
11726 | (check_format_arg): Handle format strings requiring an external parser. | |
11727 | first_target_format_type: New variable. | |
11728 | (handle_format_attribute): Set up first_target_format_type, pass the | |
11729 | expected format arg string type to check_format_string(). | |
ab20d992 | 11730 | * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag. |
91ebb981 IS |
11731 | * stub-objc.c (objc_string_ref_type_p): New. |
11732 | (objc_check_format_arg): New. | |
11733 | ||
bede2adc NP |
11734 | 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com> |
11735 | ||
9faeb493 | 11736 | Fixed using the Objective-C 2.0 dot-syntax with class names. |
bede2adc NP |
11737 | * c-common.h (objc_build_class_component_ref): New. |
11738 | * stub-objc.c (objc_build_class_component_ref): New. | |
11739 | ||
9a179d01 NP |
11740 | 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com> |
11741 | ||
11742 | * c.opt (Wproperty-assign-default): New option. | |
11743 | ||
22d8d616 NP |
11744 | 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com> |
11745 | ||
11746 | Implemented -fobjc-std=objc1 flag. | |
11747 | * c.opt (fobjc-std=objc1): New option. | |
11748 | ||
2debdb4f NP |
11749 | 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com> |
11750 | ||
11751 | Implemented format and noreturn attributes for Objective-C methods. | |
11752 | * c-common.c (handle_noreturn_attribute): Recognize 'noreturn' | |
11753 | attribute for Objective-C methods. | |
11754 | ||
ec52b111 JM |
11755 | 2010-10-31 Jason Merrill <jason@redhat.com> |
11756 | ||
11757 | * c-common.c (conversion_warning, warn_for_collisions_1): Use | |
11758 | EXPR_LOC_OR_HERE. | |
11759 | ||
46a88c12 NP |
11760 | 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com> |
11761 | ||
11762 | Implemented Objective-C 2.0 @property, @synthesize and @dynamic. | |
11763 | * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR. | |
11764 | (objc_add_property_declaration): Removed arguments for copies and | |
11765 | ivar. | |
11766 | (objc_build_getter_call): Renamed to | |
11767 | objc_maybe_build_component_ref. | |
11768 | (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr. | |
11769 | (objc_is_property_ref): New. | |
11770 | * c-common.c (c_common_reswords): Removed copies and ivar. | |
11771 | * stub-objc.c (objc_add_property_declaration): Removed arguments | |
11772 | for copies and ivar. | |
11773 | (objc_build_getter_call): Renamed to | |
11774 | objc_maybe_build_component_ref. | |
11775 | (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr. | |
11776 | (objc_is_property_ref): New. | |
9faeb493 | 11777 | |
1e4bf85b AC |
11778 | 2010-10-29 Arnaud Charlet <charlet@adacore.com> |
11779 | Matthew Gingell <gingell@adacore.com> | |
11780 | ||
11781 | * c-ada-spec.c (separate_class_package): New function. | |
11782 | (pp_ada_tree_identifier): Prefix references to C++ classes with the | |
11783 | name of their enclosing package. | |
11784 | (print_ada_declaration): Use separate_class_package. | |
11785 | ||
81f0bab2 JM |
11786 | 2010-10-27 Jason Merrill <jason@redhat.com> |
11787 | ||
2b08f2c5 JM |
11788 | * c-common.c (c_common_reswords): Add __is_literal_type. |
11789 | * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE. | |
11790 | ||
81f0bab2 JM |
11791 | * c-common.c (check_case_value): Remove special C++ code. |
11792 | ||
200290f2 NP |
11793 | 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com> |
11794 | ||
11795 | * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN, | |
11796 | RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR | |
11797 | and RID_LAST_PATTR. | |
11798 | (objc_add_property_declaration): Added additional arguments. | |
11799 | (objc_property_attribute_kind): Removed. | |
11800 | (objc_set_property_attr): Removed. | |
11801 | * c-common.c (c_common_reswords): Added readwrite, assign, retain, | |
11802 | copy and nonatomic. | |
11803 | * stub-objc.c (objc_add_property_declaration): Added additional | |
11804 | arguments. | |
11805 | (objc_set_property_attr): Removed. | |
9faeb493 | 11806 | |
f614132b NP |
11807 | 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com> |
11808 | ||
11809 | * c-common.h (objc_add_property_variable): Renamed to | |
11810 | objc_add_property_declaration. Added location argument. | |
11811 | * stub-objc.c (objc_add_property_variable): Same change. | |
b1726d6c | 11812 | |
b8a18805 NP |
11813 | 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com> |
11814 | ||
11815 | * c-common.h (objc_maybe_printable_name): New. | |
11816 | * stub-objc.c (objc_maybe_printable_name): New. | |
11817 | ||
3f8257db JJ |
11818 | 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com> |
11819 | Andrew Pinski <pinskia@gmail.com> | |
30cd1c5d AS |
11820 | |
11821 | * c-common.h (c_common_mark_addressable_vec): Declare. | |
11822 | * c-common.c (c_common_mark_addressable_vec): New function. | |
11823 | ||
249a82c4 NP |
11824 | 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com> |
11825 | ||
11826 | * c-common.h (objc_set_method_type): Removed. | |
11827 | (objc_add_method_declaration): Added boolean argument. | |
11828 | (objc_start_method_definition): Same change. | |
11829 | (objc_build_method_signature): Same change. | |
11830 | * stub-objc.c (objc_set_method_type): Removed. | |
11831 | (objc_add_method_declaration): Added boolean argument. | |
11832 | (objc_start_method_definition): Same change. | |
11833 | (objc_build_method_signature): Same change. | |
11834 | ||
977e30bc NP |
11835 | 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com> |
11836 | ||
11837 | * c-common.h (finish_file): Removed. | |
11838 | (objc_write_global_declarations): New. | |
11839 | * c-opts.c (c_common_parse_file): Do not call finish_file. | |
11840 | * stub-objc.c (objc_write_global_declarations): New. | |
9faeb493 | 11841 | |
da57d1b9 NP |
11842 | 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com> |
11843 | ||
11844 | Implemented parsing @synthesize and @dynamic for | |
11845 | Objective-C/Objective-C++. | |
11846 | * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC. | |
11847 | (objc_add_synthesize_declaration): New. | |
11848 | (objc_add_dynamic_declaration): New. | |
11849 | * c-common.c (c_common_reswords): Add synthesize and dynamic. | |
11850 | * stub-objc.c (objc_add_synthesize_declaration): New. | |
11851 | (objc_add_dynamic_declaration): New. | |
9faeb493 | 11852 | |
0069111f MM |
11853 | 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com> |
11854 | ||
11855 | PR target/46041 | |
11856 | * c-cppbuiltin.c (mode_has_fma): Move function here from | |
11857 | builtins.c. Don't use the fma optab, instead just use the | |
11858 | HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when | |
11859 | using -save-temps. | |
11860 | ||
e426b47b NP |
11861 | 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com> |
11862 | ||
11863 | Merge from 'apple/trunk' branch on FSF servers. | |
0069111f | 11864 | |
3f8257db | 11865 | 2005-11-08 Fariborz Jahanian <fjahanian@apple.com> |
e426b47b | 11866 | |
9faeb493 | 11867 | Radar 4330422 |
e426b47b NP |
11868 | * c-common.h (objc_non_volatilized_type): New declaration |
11869 | * stub-objc.c (objc_non_volatilized_type): New stub. | |
11870 | ||
90fbfdc3 NP |
11871 | 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com> |
11872 | ||
e426b47b | 11873 | Merge from 'apple/trunk' branch on FSF servers. |
90fbfdc3 | 11874 | |
ab20d992 | 11875 | 2006-03-27 Fariborz Jahanian <fjahanian@apple.com> |
90fbfdc3 | 11876 | |
9faeb493 | 11877 | Radar 4133425 |
90fbfdc3 | 11878 | * c-common.h (objc_diagnose_private_ivar): New decl. |
0069111f | 11879 | * stub-objc.c (objc_diagnose_private_ivar): New stub. |
90fbfdc3 | 11880 | |
c37d8c30 IS |
11881 | 2010-10-17 Iain Sandoe <iains@gcc.gnu.org> |
11882 | ||
11883 | * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE. | |
11884 | * c-common.h (enum rid): Add RID_AT_PACKAGE. | |
11885 | (objc_ivar_visibility_kind): New enum. | |
11886 | (objc_set_visibility): Adjust prototype to use visibility enum. | |
0069111f | 11887 | * stub-objc.c (objc_set_visibility): Adjust stub to use |
c37d8c30 IS |
11888 | visibility enum. |
11889 | ||
1b1562a5 MM |
11890 | 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com> |
11891 | ||
11892 | * c-cppbuiltin.c (builtin_define_float_constants): Emit | |
11893 | __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine | |
11894 | has the appropriate fma builtins. | |
11895 | (c_cpp_builtins): Adjust call to builtin_define_float_constants. | |
11896 | ||
668ea4b1 IS |
11897 | 2010-10-14 Iain Sandoe <iains@gcc.gnu.org> |
11898 | ||
1b1562a5 | 11899 | merge from FSF apple 'trunk' branch. |
3f8257db | 11900 | 2006 Fariborz Jahanian <fjahanian@apple.com> |
1b1562a5 | 11901 | |
668ea4b1 IS |
11902 | Radars 4436866, 4505126, 4506903, 4517826 |
11903 | * c-common.c (c_common_resword): Define @property and its attributes. | |
11904 | * c-common.h: Define property attribute enum entries. | |
11905 | (OBJC_IS_PATTR_KEYWORD): New. | |
11906 | (objc_property_attribute_kind): New enum. | |
11907 | Declare objc_set_property_attr (), objc_add_property_variable (), | |
11908 | objc_build_getter_call () and objc_build_setter_call (). | |
11909 | * stub-objc.c (objc_set_property_attr): New stub. | |
11910 | (objc_add_property_variable): Likewise. | |
11911 | (objc_build_getter_call): Likewise. | |
11912 | (objc_build_setter_call) Likewise. | |
1b1562a5 | 11913 | |
a1178b30 IS |
11914 | 2010-10-13 Iain Sandoe <iains@gcc.gnu.org> |
11915 | ||
1b1562a5 | 11916 | merge from FSF apple 'trunk' branch. |
ab20d992 | 11917 | 2006-04-26 Fariborz Jahanian <fjahanian@apple.com> |
a1178b30 IS |
11918 | |
11919 | Radar 3803157 (method attributes) | |
11920 | * c-common.c (handle_deprecated_attribute): Recognize | |
11921 | objc methods as valid declarations. | |
11922 | * c-common.h: Declare objc_method_decl (). | |
1b1562a5 | 11923 | * stub-objc.c (objc_method_decl): New stub. |
a1178b30 | 11924 | |
a75bfaa6 JM |
11925 | 2010-10-08 Joseph Myers <joseph@codesourcery.com> |
11926 | ||
11927 | * c-common.c (parse_optimize_options): Call | |
11928 | decode_cmdline_options_to_array_default_mask before | |
11929 | decode_options. Update arguments to decode_options. | |
11930 | * c-common.h (c_common_init_options_struct): Declare. | |
11931 | * c-opts.c (c_common_init_options_struct): New. Split out from | |
11932 | c_common_init_options. | |
11933 | ||
f05b9d93 NP |
11934 | 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com> |
11935 | ||
11936 | Implemented fast enumeration for Objective-C. | |
11937 | * c-common.h (objc_finish_foreach_loop): New. | |
11938 | * stub-objc.c (objc_finish_foreach_loop): New. | |
11939 | ||
1ebe4b4f JM |
11940 | 2010-10-05 Joseph Myers <joseph@codesourcery.com> |
11941 | ||
11942 | * c-common.h (struct diagnostic_context): Don't declare here. | |
11943 | (c_common_initialize_diagnostics): Declare using | |
11944 | diagnostic_context typedef. | |
11945 | * c-opts.c (c_common_handle_option): Pass global_dc to | |
11946 | handle_generated_option. | |
11947 | ||
d4d24ba4 JM |
11948 | 2010-10-04 Joseph Myers <joseph@codesourcery.com> |
11949 | ||
11950 | * c-opts.c (c_common_handle_option): Pass &global_options_set to | |
11951 | handle_generated_option. | |
11952 | ||
478a1c5b ILT |
11953 | 2010-10-03 Ian Lance Taylor <iant@google.com> |
11954 | ||
11955 | * c.opt (-fplan9-extensions): New option. | |
11956 | ||
82a1c2fe FXC |
11957 | 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> |
11958 | ||
11959 | * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision): | |
11960 | Remove. | |
11961 | (c_cpp_builtins): Call functions from cppbuiltin.c instead | |
11962 | of duplicating code. | |
11963 | ||
92902b1b IS |
11964 | 2010-09-30 Iain Sandoe <iains@gcc.gnu.org> |
11965 | ||
11966 | * c-common.c: Add two new entries for @optional | |
11967 | and @required keywords. | |
11968 | ||
11969 | merge from FSF 'apple/trunk' branch. | |
3f8257db | 11970 | 2006-01-30 Fariborz Jahanian <fjahanian@apple.com> |
92902b1b IS |
11971 | |
11972 | Radar 4386773 | |
11973 | * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new | |
11974 | objective-c keywords. | |
11975 | (objc_set_method_opt): New declaration. | |
11976 | * stub-objc.c (objc_set_method_opt): New stub. | |
9faeb493 | 11977 | |
46625112 JM |
11978 | 2010-09-30 Joseph Myers <joseph@codesourcery.com> |
11979 | ||
11980 | * c-common.c (handle_optimize_attribute): Pass &global_options to | |
11981 | cl_optimization_save and cl_optimization_restore. | |
11982 | * c-opts.c (c_common_handle_option): Pass &global_options to | |
11983 | handle_generated_option. | |
11984 | * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var. | |
11985 | (handle_pragma_pop_options, handle_pragma_reset_options): Pass | |
11986 | &global_options to cl_optimization_restore. | |
11987 | ||
49b91f05 NP |
11988 | 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com> |
11989 | ||
11990 | * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME | |
11991 | Objective-C/Objective-C++ keywords. | |
11992 | ||
13ed556f | 11993 | 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com> |
a6341d57 | 11994 | |
9faeb493 UB |
11995 | Merge from 'apple/trunk' branch on FSF servers. |
11996 | ||
3f8257db | 11997 | 2005-10-04 Fariborz Jahanian <fjahanian@apple.com> |
a6341d57 NP |
11998 | |
11999 | Radar 4281748 | |
12000 | * c-common.h (objc_check_global_decl): New declaration. | |
12001 | * stub-objc.c (objc_check_global_decl): New stub. | |
12002 | ||
f0036cca JM |
12003 | 2010-09-29 Joseph Myers <joseph@codesourcery.com> |
12004 | ||
12005 | * c.opt: Don't use VarExists. | |
12006 | ||
e3339d0f JM |
12007 | 2010-09-29 Joseph Myers <joseph@codesourcery.com> |
12008 | ||
12009 | * c-common.c (c_cpp_error): Update names of diagnostic_context | |
12010 | members. | |
12011 | * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of | |
12012 | cl_optimization members. | |
12013 | * c-opts.c (warning_as_error_callback, c_common_handle_option, | |
12014 | sanitize_cpp_opts, finish_options): Update names of cpp_options | |
12015 | members. | |
12016 | ||
1973201f NP |
12017 | 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com> |
12018 | ||
12019 | * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments. | |
12020 | (objc_is_reserved_word): Removed. | |
12021 | * c-common.c: Updated comments. | |
12022 | * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of | |
12023 | objc_is_reserved_word. | |
12024 | * stub-objc.c (objc_is_reserved_word): Removed. | |
12025 | ||
f7e71da5 IS |
12026 | 2010-09-28 Iain Sandoe <iains@gcc.gnu.org> |
12027 | ||
9faeb493 | 12028 | * c-common.h (objc_add_method_declaration): Adjust prototype to |
f7e71da5 IS |
12029 | include attributes. |
12030 | (objc_start_method_definition): Likewise. | |
12031 | (objc_build_keyword_decl): Likewise. | |
12032 | * stub-objc.c:(objc_add_method_declaration): Handle attributes. | |
12033 | (objc_start_method_definition): Likewise. | |
12034 | (objc_build_keyword_decl): Likewise. | |
12035 | ||
c165dca7 IS |
12036 | 2010-09-28 Iain Sandoe <iains@gcc.gnu.org> |
12037 | ||
12038 | * c-common.h (objc_start_class_interface): Adjust prototype. | |
12039 | (objc_start_category_interface): Likewise. | |
12040 | (objc_start_protocol): Likewise. | |
12041 | * stub-objc.c (objc_start_protocol): Adjust for extra argument. | |
12042 | (objc_start_class_interface): Likewise. | |
12043 | (objc_start_category_interface): Likewise. | |
12044 | ||
7458026b ILT |
12045 | 2010-09-27 Ian Lance Taylor <iant@google.com> |
12046 | ||
12047 | * c-common.c (c_common_attribute_table): Add no_split_stack. | |
12048 | (handle_no_split_stack_attribute): New static function. | |
12049 | ||
b581b85b NP |
12050 | 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com> |
12051 | ||
9faeb493 | 12052 | Merge from 'apple/trunk' branch on FSF servers. |
b581b85b | 12053 | |
3f8257db | 12054 | 2005-12-15 Fariborz Jahanian <fjahanian@apple.com> |
b581b85b | 12055 | |
9faeb493 | 12056 | Radar 4229905 |
b581b85b NP |
12057 | * c-common.h (objc_have_common_type): New declaration. |
12058 | * stub-objc.c (objc_have_common_type): New stub. | |
12059 | ||
12060 | 2005-06-22 Ziemowit Laski <zlaski@apple.com> | |
12061 | ||
12062 | Radar 4154928 | |
12063 | * c-common.h (objc_common_type): New prototype. | |
9faeb493 | 12064 | * stub-objc.c (objc_common_type): New stub. |
b581b85b | 12065 | |
46a4da10 JH |
12066 | 2010-09-24 Jan Hubicka <jh@suse.cz> |
12067 | ||
12068 | * c-common.c (handle_leaf_attribute): New function. | |
12069 | (struct attribute_spec c_common_att): Add leaf. | |
12070 | ||
e200444e JM |
12071 | 2010-09-22 Joseph Myers <joseph@codesourcery.com> |
12072 | ||
12073 | * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments, | |
12074 | -comments-in-macros, -define-macro, -define-macro=, -dependencies, | |
12075 | -dump, -dump=, -imacros, -imacros=, -include, -include=, | |
12076 | -include-barrier, -include-directory, -include-directory=, | |
12077 | -include-directory-after, -include-directory-after=, | |
12078 | -include-prefix, -include-prefix=, -include-with-prefix, | |
12079 | -include-with-prefix=, -include-with-prefix-after, | |
12080 | -include-with-prefix-after=, -include-with-prefix-before, | |
12081 | -include-with-prefix-before=, -no-integrated-cpp, | |
12082 | -no-line-commands, -no-standard-includes, -no-warnings, -output, | |
12083 | -output=, -pedantic, -pedantic-errors, -preprocess, | |
12084 | -print-missing-file-dependencies, -trace-includes, -traditional, | |
12085 | -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=, | |
12086 | -user-dependencies, -verbose, -write-dependencies, | |
12087 | -write-user-dependencies, no-integrated-cpp, traditional): New. | |
12088 | ||
29a80ea6 NP |
12089 | 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com> |
12090 | ||
12091 | PR objc/23710 | |
ac1fc2fc NP |
12092 | * c-common.h (objc_start_method_definition): Return bool instead |
12093 | of void. | |
12094 | * stub-objc.c (objc_start_method_definition): Return bool instead | |
12095 | of void. | |
12096 | ||
12097 | 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com> | |
12098 | ||
12099 | PR objc/25965 | |
12100 | * c-common.h (objc_get_interface_ivars): New declaration. | |
12101 | * stub-objc.c (objc_get_interface_ivars): New stub. | |
29a80ea6 | 12102 | |
de621752 ILT |
12103 | 2010-09-15 Ian Lance Taylor <iant@google.com> |
12104 | ||
12105 | * c-common.c (parse_optimize_options): Do not capitalize warning | |
06730c5d | 12106 | messages. Remove period at end of warning message. |
de621752 | 12107 | |
ba885ec5 NS |
12108 | 2010-09-09 Nathan Sidwell <nathan@codesourcery.com> |
12109 | ||
12110 | * c-common.c (handle_alias_ifunc_attribute): New, broken out of ... | |
12111 | (handle_alias_attribute): ... here. | |
12112 | (handle_ifunc_attribute): New. | |
12113 | ||
c5ee1358 MM |
12114 | 2010-09-06 Mark Mitchell <mark@codesourcery.com> |
12115 | ||
12116 | * c-common.h (do_warn_double_promotion): Declare. | |
12117 | * c-common.c (do_warn_double_promotion): Define. | |
12118 | ||
0a0b3574 MM |
12119 | 2010-09-05 Mark Mitchell <mark@codesourcery.com> |
12120 | ||
12121 | * c.opt (Wdouble-promotion): New. | |
12122 | ||
d1779886 JM |
12123 | 2010-09-02 Joseph Myers <joseph@codesourcery.com> |
12124 | ||
12125 | * c.opt (falt-external-templates, fhuge-objects, fvtable-gc, | |
12126 | fvtable-thunks, fxref): Mark no longer supported in help text. | |
12127 | ||
2d2bd949 JM |
12128 | 2010-09-02 Joseph Myers <joseph@codesourcery.com> |
12129 | ||
12130 | * c.opt (Wimport, fall-virtual, falt-external-templates, | |
12131 | fdefault-inline, fenum-int-equiv, fexternal-templates, | |
12132 | fguiding-decls, fhonor-std, fhuge-objects, flabels-ok, | |
12133 | fname-mangling-version-, fnew-abi, fnonnull-objects, | |
12134 | foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable, | |
12135 | fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as | |
12136 | applicable. | |
12137 | (fhandle-exceptions): Mark with Alias and Warn. | |
12138 | * c-opts.c (c_common_handle_option): Don't handle options marked | |
12139 | as ignored. | |
12140 | ||
5de8299c JM |
12141 | 2010-09-02 Joseph Myers <joseph@codesourcery.com> |
12142 | ||
12143 | * c.opt (Wcomments, Werror-implicit-function-declaration, | |
12144 | ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x, | |
12145 | std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as | |
12146 | aliases. | |
12147 | * c-common.c (option_codes): Use OPT_Wcomment instead of | |
12148 | OPT_Wcomments. | |
12149 | * c-opts.c (warning_as_error_callback, c_common_handle_option): | |
12150 | Don't handle options marked as aliases. | |
12151 | ||
0ceb0201 RG |
12152 | 2010-08-25 Richard Guenther <rguenther@suse.de> |
12153 | ||
12154 | * c-common.c (c_common_get_alias_set): Remove special | |
12155 | handling for pointers. | |
12156 | ||
ac47786e NF |
12157 | 2010-08-20 Nathan Froyd <froydnj@codesourcery.com> |
12158 | ||
12159 | * c-common.c: Use FOR_EACH_VEC_ELT. | |
12160 | * c-gimplify.c: Likewise. | |
12161 | * c-pragma.c: Likewise. | |
12162 | ||
c878765b JM |
12163 | 2010-08-16 Joseph Myers <joseph@codesourcery.com> |
12164 | ||
12165 | * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of | |
12166 | RejectDriver. | |
12167 | (MMDX): Change back to MMD. Mark NoDriverArg instead of | |
12168 | RejectDriver. | |
12169 | * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD | |
12170 | instead of OPT_MDX and OPT_MMDX. | |
12171 | ||
603349bf JM |
12172 | 2010-08-16 Joseph Myers <joseph@codesourcery.com> |
12173 | ||
12174 | * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver. | |
12175 | ||
644fa7ac JM |
12176 | 2010-08-12 Joseph Myers <joseph@codesourcery.com> |
12177 | ||
12178 | * c.opt (MD, MMD): Change to MDX and MMDX. | |
12179 | * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX. | |
12180 | ||
481e1176 JM |
12181 | 2010-08-11 Joseph Myers <joseph@codesourcery.com> |
12182 | ||
12183 | * c-opts.c (c_common_handle_option): Call handle_generated_option | |
12184 | instead of handle_option. | |
12185 | ||
ac8dc9f7 NF |
12186 | 2010-08-08 Nathan Froyd <froydnj@codesourcery.com> |
12187 | ||
12188 | * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push. | |
12189 | (maybe_apply_renaming_pragma): Delete unneeded declarations. | |
12190 | ||
4f8c876d NF |
12191 | 2010-08-08 Nathan Froyd <froydnj@codesourcery.com> |
12192 | ||
12193 | * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it. | |
12194 | (pending_redefine_extname): Change type to a VEC. | |
12195 | (add_to_renaming_pragma_list): Update for new type of | |
12196 | pending_redefine_extname. | |
ac8dc9f7 | 12197 | (maybe_apply_renaming_pragma): Likewise. |
4f8c876d | 12198 | |
3b0c690e AC |
12199 | 2010-08-04 Arnaud Charlet <charlet@adacore.com> |
12200 | ||
12201 | * c-ada-spec.c (dump_ada_template): Mark underlying instance type as | |
12202 | visited. | |
12203 | (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to | |
12204 | decide whether a type has already been declared/seen. | |
12205 | Do not go to the original type. | |
12206 | (dump_nested_types): New parameter forward. | |
12207 | Generate forward declaration if needed and mark type as visited. | |
12208 | (print_ada_declaration): Call dump_nested_types if not already done. | |
12209 | Mark types as visited. | |
12210 | ||
1890bccc JM |
12211 | 2010-08-03 Joseph Myers <joseph@codesourcery.com> |
12212 | ||
12213 | * c.opt (-print-pch-checksum): Remove option. | |
12214 | * c-opts.c (c_common_handle_option): Don't handle | |
12215 | OPT_print_pch_checksum. | |
12216 | ||
5f20c657 JM |
12217 | 2010-07-27 Joseph Myers <joseph@codesourcery.com> |
12218 | ||
12219 | * c-common.h (c_common_handle_option): Update prototype and return | |
12220 | value type. | |
12221 | * c-opts.c (c_common_handle_option): Update prototype and return | |
12222 | value type. Update calls to handle_option and | |
12223 | enable_warning_as_error. | |
12224 | ||
f551f80c JJ |
12225 | 2010-07-27 Jakub Jelinek <jakub@redhat.com> |
12226 | ||
12227 | PR c/45079 | |
12228 | * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR. | |
12229 | ||
61ff2bdc JM |
12230 | 2010-07-27 Joseph Myers <joseph@codesourcery.com> |
12231 | ||
12232 | * c-common.h (c_common_missing_argument): Remove. | |
12233 | * c-opts.c (c_common_missing_argument): Remove. | |
12234 | * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=, | |
12235 | idirafter, imacros, include, isysroot, isystem, iquote): Add | |
12236 | MissingArgError. | |
12237 | * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove. | |
12238 | ||
7a9bf9a4 JM |
12239 | 2010-07-27 Joseph Myers <joseph@codesourcery.com> |
12240 | ||
12241 | * c-common.h (c_common_option_lang_mask, | |
12242 | c_common_initialize_diagnostics, c_common_complain_wrong_lang_p): | |
12243 | New. | |
12244 | (c_common_init_options): Update prototype. | |
12245 | * c-opts.c (c_common_option_lang_mask): New. | |
12246 | (c_common_initialize_diagnostics): Split out of | |
12247 | c_common_init_options. | |
12248 | (accept_all_c_family_options, c_common_complain_wrong_lang_p): | |
12249 | New. | |
12250 | (c_common_init_options): Update prototype. Use decoded options in | |
12251 | search for -lang-asm. | |
12252 | ||
910ad8de NF |
12253 | 2010-07-15 Nathan Froyd <froydnj@codesourcery.com> |
12254 | ||
12255 | * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN. | |
12256 | * c-format.c: Likewise. | |
12257 | ||
718f9c0f MLI |
12258 | 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org> |
12259 | ||
12260 | * c-common.h: Include diagnostic-core.h. Error if already | |
12261 | included. | |
12262 | * c-semantics.c: Do not define GCC_DIAG_STYLE here. | |
12263 | ||
4d451982 MLI |
12264 | 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org> |
12265 | ||
adfac8df | 12266 | * c-common.c (IN_GCC_FRONTEND): Do not undef. |
4d451982 MLI |
12267 | Do not include expr.h |
12268 | (vector_mode_valid_p): Move here. | |
12269 | ||
119fe915 SB |
12270 | 2010-06-21 DJ Delorie <dj@redhat.com> |
12271 | ||
12272 | * c-pragma.c (handle_pragma_diagnostic): Add push/pop, | |
12273 | allow these pragmas anywhere. | |
12274 | ||
12275 | 2010-06-14 Jakub Jelinek <jakub@redhat.com> | |
12276 | ||
12277 | PR bootstrap/44509 | |
12278 | * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h. | |
12279 | (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers. | |
12280 | (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use | |
12281 | ggc_strdup instead of xstrdup. | |
12282 | ||
12283 | 2010-06-10 Jakub Jelinek <jakub@redhat.com> | |
12284 | ||
12285 | * c-cppbuiltin.c: Include cpp-id-data.h. | |
12286 | (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables. | |
12287 | (lazy_hex_fp_value): New function. | |
12288 | (builtin_define_with_hex_fp_value): Provide definitions lazily. | |
12289 | ||
6662d794 MLI |
12290 | 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org> |
12291 | ||
12292 | * c-gimplify.c: Do not include tree-flow.h | |
12293 | ||
38f8b050 JR |
12294 | 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com> |
12295 | ||
12296 | PR other/44034 | |
12297 | * c-common.c: Rename targetm member: | |
12298 | targetm.enum_va_list -> targetm.enum_va_list_p | |
12299 | ||
9589f23e AS |
12300 | 2010-06-28 Anatoly Sokolov <aesok@post.ru> |
12301 | ||
12302 | * c-common.c (shorten_compare): Adjust call to force_fit_type_double. | |
12303 | ||
3b06d379 SB |
12304 | 2010-06-28 Steven Bosscher <steven@gcc.gnu.org> |
12305 | ||
12306 | * c-cppbuiltin.c: Do not include except.h. | |
12307 | ||
d166d4c3 AK |
12308 | 2010-06-24 Andi Kleen <ak@linux.intel.com> |
12309 | ||
9faeb493 UB |
12310 | * c-common.c (warn_for_omitted_condop): New. |
12311 | * c-common.h (warn_for_omitted_condop): Add prototype. | |
d166d4c3 | 12312 | |
70cb8be6 JM |
12313 | 2010-06-21 Joseph Myers <joseph@codesourcery.com> |
12314 | ||
12315 | * c.opt (lang-objc): Remove. | |
12316 | * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc. | |
12317 | ||
a4c97feb JR |
12318 | 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com> |
12319 | ||
12320 | * c-opts.c: Include "tm_p.h". | |
12321 | ||
6e2f1956 JM |
12322 | 2010-06-20 Joseph Myers <joseph@codesourcery.com> |
12323 | ||
12324 | * c-common.c (parse_optimize_options): Update call to | |
12325 | decode_options. | |
12326 | ||
bc87224e NF |
12327 | 2010-06-18 Nathan Froyd <froydnj@codesourcery.com> |
12328 | ||
12329 | * c-common.c (record_types_used_by_current_var_decl): Adjust for | |
12330 | new type of types_used_by_cur_var_decl. | |
12331 | ||
b49cf425 JR |
12332 | 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com> |
12333 | ||
12334 | PR bootstrap/44512 | |
12335 | * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast | |
12336 | for C++ standard compliance. | |
12337 | ||
59f9c2ed JM |
12338 | 2010-06-16 Jason Merrill <jason@redhat.com> |
12339 | ||
12340 | * c.opt: Add -Wnoexcept. | |
12341 | ||
33766b66 RG |
12342 | 2010-06-16 Richard Guenther <rguenther@suse.de> |
12343 | ||
12344 | PR c/44555 | |
12345 | * c-common.c (c_common_truthvalue_conversion): Remove | |
12346 | premature and wrong optimization concering ADDR_EXPRs. | |
12347 | ||
eff7e30c AC |
12348 | 2010-06-15 Arnaud Charlet <charlet@adacore.com> |
12349 | ||
12350 | * c-ada-spec.c (dump_sloc): Remove column info. | |
12351 | (is_simple_enum): New function. | |
12352 | (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada | |
12353 | enum types when relevant. | |
12354 | ||
6312e84d MLI |
12355 | 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org> |
12356 | ||
9faeb493 | 12357 | * c-common.c (conversion_warning): Warn at expression |
6312e84d MLI |
12358 | location. |
12359 | ||
1cb42611 JM |
12360 | 2010-06-10 Joseph Myers <joseph@codesourcery.com> |
12361 | ||
12362 | * c-opts.c (c_common_handle_option): Don't handle | |
12363 | OPT_fshow_column. | |
12364 | ||
a9429e29 LB |
12365 | 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com> |
12366 | ||
12367 | * c-pragma.c (push_alignment): Use typed GC allocation. | |
12368 | (handle_pragma_push_options): Likewise. | |
12369 | ||
12370 | * c-common.c (parse_optimize_options): Likewise. | |
12371 | ||
12372 | * c-common.h (struct sorted_fields_type): Add variable_size GTY | |
12373 | option. | |
12374 | ||
5498f011 JM |
12375 | 2010-06-07 Joseph Myers <joseph@codesourcery.com> |
12376 | ||
12377 | * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin, | |
12378 | flag_no_nonansi_builtin, flag_short_double, flag_short_wchar, | |
12379 | flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm, | |
12380 | flag_signed_bitfields, warn_strict_null_sentinel, | |
12381 | flag_nil_receivers, flag_zero_link, flag_replace_objc_classes, | |
12382 | flag_gen_declaration, flag_no_gnu_keywords, | |
12383 | flag_implement_inlines, flag_implicit_templates, | |
12384 | flag_implicit_inline_templates, flag_optional_diags, | |
12385 | flag_elide_constructors, flag_default_inline, flag_rtti, | |
12386 | flag_conserve_space, flag_access_control, flag_check_new, | |
12387 | flag_new_for_scope, flag_weak, flag_working_directory, | |
12388 | flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr, | |
12389 | flag_enforce_eh_specs, flag_threadsafe_statics, | |
12390 | flag_pretty_templates): Remove. | |
12391 | * c-common.h (flag_preprocess_only, flag_nil_receivers, | |
12392 | flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link, | |
12393 | flag_replace_objc_classes, flag_undef, flag_no_builtin, | |
12394 | flag_no_nonansi_builtin, flag_short_double, flag_short_wchar, | |
12395 | flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm, | |
12396 | flag_const_strings, flag_signed_bitfields, flag_gen_declaration, | |
12397 | flag_no_gnu_keywords, flag_implement_inlines, | |
12398 | flag_implicit_templates, flag_implicit_inline_templates, | |
12399 | flag_optional_diags, flag_elide_constructors, flag_default_inline, | |
12400 | flag_rtti, flag_conserve_space, flag_access_control, | |
12401 | flag_check_new, flag_new_for_scope, flag_weak, | |
12402 | flag_working_directory, flag_use_cxa_atexit, | |
12403 | flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs, | |
12404 | flag_threadsafe_statics, flag_pretty_templates, | |
12405 | warn_strict_null_sentinel): Remove. | |
12406 | * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm, | |
12407 | fbuiltin, fcheck-new, fconserve-space, felide-constructors, | |
12408 | fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines, | |
12409 | fimplicit-inline-templates, fimplicit-templates, | |
12410 | flax-vector-conversions, fms-extensions, fnil-receivers, | |
12411 | fnonansi-builtins, fpretty-templates, freplace-objc-classes, | |
12412 | frtti, fshort-double, fshort-enums, fshort-wchar, | |
12413 | fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics, | |
12414 | funsigned-bitfields, funsigned-char, fuse-cxa-atexit, | |
12415 | fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link, | |
12416 | gen-decls, undef): Use Var. | |
12417 | (fdefault-inline, foptional-diags): Document as doing nothing. | |
12418 | * c-opts.c (c_common_handle_option): Remove cases for options now | |
12419 | using Var. Mark ignored options as such. | |
12420 | ||
39dabefd SB |
12421 | 2010-06-05 Steven Bosscher <steven@gcc.gnu.org> |
12422 | ||
9faeb493 | 12423 | * c-common.c: Moved to here from parent directory. |
39dabefd SB |
12424 | * c-common.def: Likewise. |
12425 | * c-common.h: Likewise. | |
12426 | * c-cppbuiltin.c: Likewise. | |
12427 | * c-dump.c: Likewise. | |
12428 | * c-format.c: Likewise. | |
12429 | * c-format.h : Likewise. | |
12430 | * c-gimplify.c: Likewise. | |
12431 | * c-lex.c: Likewise. | |
12432 | * c-omp.c: Likewise. | |
12433 | * c.opt: Likewise. | |
12434 | * c-opts.c: Likewise. | |
12435 | * c-pch.c: Likewise. | |
12436 | * c-ppoutput.c: Likewise. | |
12437 | * c-pragma.c: Likewise. | |
12438 | * c-pragma.h: Likewise. | |
12439 | * c-pretty-print.c: Likewise. | |
12440 | * c-pretty-print.h: Likewise. | |
12441 | * c-semantics.c: Likewise. | |
12442 | * stub-objc.c: Likewise. | |
12443 | ||
12444 | * c-common.c: Include gt-c-family-c-common.h. | |
12445 | * c-pragma.c: Include gt-c-family-c-pragma.h. | |
12446 | \f | |
c48514be | 12447 | Copyright (C) 2010-2021 Free Software Foundation, Inc. |
39dabefd SB |
12448 | |
12449 | Copying and distribution of this file, with or without modification, | |
12450 | are permitted in any medium without royalty provided the copyright | |
12451 | notice and this notice are preserved. |