]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/c-family/ChangeLog
[PATCH] line-map include-from representation
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
1 2018-08-08 Nathan Sidwell <nathan@acm.org>
2
3 * c-common.c (try_to_locate_new_include_inertion_point): Use
4 linemap_included_from_linemap.
5 * c-lex.c (fe_file_change): Use linemap_included_from.
6 * c-ppoutput.c (pp_file_change): Likewise.
7
8 2018-08-01 Martin Sebor <msebor@redhat.com>
9
10 PR tree-optimization/86650
11 * c-family/c-format.c (gcc_tdiag_char_table): Update comment for "%G".
12 (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Same.
13 (init_dynamic_diag_info): Update from "gcall *" to "gimple *".
14 * c-format.h (T89_G): Update to be "gimple *" rather than
15 "gcall *".
16 (local_gcall_ptr_node): Rename...
17 (local_gimple_ptr_node): ...to this.
18
19 2018-07-31 David Malcolm <dmalcolm@redhat.com>
20
21 * c-format.c (PP_FORMAT_CHAR_TABLE): New macro, based on existing
22 table entries for gcc_diag_char_table, and the 'Z' entry from
23 gcc_tdiag_char_table, changing the "chain" entry for 'Z' from
24 &gcc_tdiag_char_table[0] to &gcc_diag_char_table[0].
25 (gcc_diag_char_table): Use PP_FORMAT_CHAR_TABLE, implicitly
26 adding missing "Z" for this table. Remove erroneous "G" and "K"
27 entries.
28 (gcc_tdiag_char_table): Use PP_FORMAT_CHAR_TABLE. Remove "v".
29 (gcc_cdiag_char_table): Use PP_FORMAT_CHAR_TABLE.
30 (gcc_cxxdiag_char_table): Use PP_FORMAT_CHAR_TABLE. Remove "v".
31
32 2018-07-31 Richard Earnshaw <rearnsha@arm.com>
33
34 * c-common.c (speculation_safe_resolve_call): New function.
35 (speculation_safe_resolve_params): New function.
36 (speculation_safe_resolve_return): New function.
37 (resolve_overloaded_builtin): Handle __builtin_speculation_safe_value.
38 * c-cppbuiltin.c (c_cpp_builtins): Add pre-define for
39 __HAVE_SPECULATION_SAFE_VALUE.
40
41 2018-07-20 David Malcolm <dmalcolm@redhat.com>
42
43 * c-common.c (c_cpp_error): Remove redundant "line_table"
44 parameter from call to rich_location::set_range.
45 (maybe_suggest_missing_token_insertion): Likewise.
46
47 2018-07-20 Martin Sebor <msebor@redhat.com>
48
49 PR middle-end/82063
50 * gcc/c-family/c.opt (-Warray-bounds): Remove redundant -Wall.
51
52 2018-07-20 Martin Sebor <msebor@redhat.com>
53
54 PR middle-end/82063
55 * c-common.h (c_common_handle_option): Change function argument
56 to HOST_WIDE_INT.
57 * c-opts.c (c_common_init_options): Same.
58 (c_common_handle_option): Same. Remove special handling of
59 OPT_Walloca_larger_than_ and OPT_Wvla_larger_than_.
60 * c.opt (-Walloc-size-larger-than, -Walloca-larger-than): Change
61 options to take a HOST_WIDE_INT argument and accept a byte-size
62 suffix. Initialize.
63 (-Wvla-larger-than): Same.
64 (-Wno-alloc-size-larger-than, -Wno-alloca-larger-than): New.
65 (-Wno-vla-larger-than): Same.
66
67 2018-07-12 Jakub Jelinek <jakub@redhat.com>
68
69 * c-attribs.c (c_common_attribute_table): Add
70 "omp declare target implicit" attribute.
71
72 2018-07-12 Richard Biener <rguenther@suse.de>
73
74 PR c/86453
75 * c-attribs.c (handle_packed_attribute): Do not build a variant
76 type with TYPE_PACKED, instead ignore the attribute if we may
77 not apply to the original type.
78
79 2018-07-10 Jakub Jelinek <jakub@redhat.com>
80
81 PR c++/86443
82 * c-omp.c (c_omp_check_loop_iv_r, c_omp_check_loop_iv): Allow declv
83 to contain TREE_LIST for both the original class iterator and the
84 "last" helper var.
85
86 2018-07-07 Eric Botcazou <ebotcazou@adacore.com>
87
88 * c-ada-spec.c (to_ada_name): Remove index parameter.
89 (pp_ada_tree_identifier): Likewise.
90 (dump_ada_macros): Adjust call to to_ada_name.
91 (struct overloaded_name_hash): Delete.
92 (struct overloaded_name_hasher): Likewise.
93 (overloaded_names): Likewise.
94 (compute_overloading_index): Likewise.
95 (dump_ada_decl_name): Do not call compute_overloading_index and
96 adjust calls to pp_ada_tree_identifier.
97 (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
98 (dump_ada_import): Add spc parameter and switch to aspect syntax.
99 (dump_ada_function_declaration): Adjust call to pp_ada_tree_identifier.
100 (dump_ada_enum_type): Remove type and display_convention parameters.
101 Adjust calls to pp_ada_tree_identifier.
102 (dump_ada_node): Likewise and for dump_ada_structure.
103 (dump_nested_type) <ENUMERAL_TYPE>: Adjust call to dump_ada_enum_type
104 and tidy up.
105 <RECORD_TYPE>: Adjust call to dump_ada_structure and switch to aspect
106 syntax.
107 (print_constructor): Adjust call to pp_ada_tree_identifier.
108 (print_destructor): Likewise.
109 (dump_ada_declaration): Switch to aspect syntax.
110 (dump_ada_structure): Likewise and tidy up. Replace display_convention
111 parameter with nested parameter.
112 (dump_ads): Emit pragma Ada_2012 in lieu of pragma Ada_2005.
113 (dump_ada_specs): Do not delete overloaded_names table.
114
115 2018-07-06 Peter Bergner <bergner@linux.ibm.com>
116
117 PR target/86324
118 * c-attribs.c (handle_mode_attribute): Call translate_mode_attribute
119 target hook.
120
121 2018-07-05 Nathan Sidwell <nathan@acm.org>
122
123 * c-lex.c (fe_file_change): Check SYSTEM_IMPLICIT_EXTERN_C not
124 NO_IMPLICIT_EXTERN_C.
125
126 2018-06-28 Martin Liska <mliska@suse.cz>
127
128 * cppspec.c: Include opt-suggestions.h.
129
130 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
131 Thomas Schwinge <thomas@codesourcery.com>
132 Cesar Philippidis <cesar@codesourcery.com>
133
134 * c-pragma.h (enum pragma_omp_clause): Add
135 PRAGMA_OACC_CLAUSE_{FINALIZE,IF_PRESENT}. Remove
136 PRAGMA_OACC_CLAUSE_PRESENT_OR_{COPY,COPYIN,COPYOUT,CREATE}.
137
138 2018-06-20 Jakub Jelinek <jakub@redhat.com>
139
140 PR c++/86210
141 * c-common.c (check_nonnull_arg): Use fold_for_warn. Adjust obsolete
142 comment.
143
144 2018-06-18 Martin Sebor <msebor@redhat.com>
145
146 PR middle-end/85602
147 * c-warn.c (sizeof_pointer_memaccess_warning): Check for attribute
148 nonstring.
149
150 2018-06-16 Kugan Vivekanandarajah <kuganv@linaro.org>
151
152 * c-common.c (c_common_truthvalue_conversion): Handle ABSU_EXPR.
153
154 2018-06-13 Jason Merrill <jason@redhat.com>
155
156 * c-opts.c (c_common_post_options): Warn about useless -Wabi.
157 (c_common_handle_option) [OPT_Wabi_]: Remove flag_abi_compat_version
158 handling.
159
160 PR c++/86094 - wrong code with defaulted move ctor.
161 * c-opts.c (c_common_post_options): Bump the current ABI version to
162 13. Set warn_abi_version and flag_abi_compat_version to the current
163 version rather than 0. Fix defaulting flag_abi_compat_version from
164 warn_abi_version.
165
166 2018-06-12 Martin Sebor <msebor@redhat.com>
167
168 PR c/85931
169 * c-warn.c (sizeof_pointer_memaccess_warning): Avoid warning when
170 sizeof source and destination yields the same value.
171
172 2018-06-12 Martin Liska <mliska@suse.cz>
173
174 * c.opt: Make MPX-related options as Deprecated.
175
176 2018-06-08 David Malcolm <dmalcolm@redhat.com>
177
178 * c-pretty-print.c (c_pretty_printer::statement): Use TDF_NONE
179 rather than 0.
180
181 2018-06-08 Martin Liska <mliska@suse.cz>
182
183 * c-attribs.c (handle_bnd_variable_size_attribute): Remove support
184 for MPX (macros, related functions, fields in cgraph_node, ...).
185 (handle_bnd_legacy): Likewise.
186 (handle_bnd_instrument): Likewise.
187 * c.opt: Likewise.
188
189 2018-06-06 Jakub Jelinek <jakub@redhat.com>
190
191 PR c++/86068
192 * c-cppbuiltin.c (c_cpp_builtins): Fix a typo, set
193 __cpp_transactional_memory to 201500 instead of 210500.
194
195 2018-06-06 Jason Merrill <jason@redhat.com>
196
197 PR c++/85710 - ICE with -Wmemset-elt-size.
198 * c-warn.c (warn_for_memset): Don't crash on incomplete element type.
199
200 2018-06-01 Jason Merrill <jason@redhat.com>
201
202 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_deduction_guides to
203 201703.
204
205 2018-06-01 Eric Botcazou <ebotcazou@adacore.com>
206
207 * c-ada-spec.c (dump_ada_declaration) <TYPE_DECL>: Generate a forward
208 declaration for a typedef independently of whether the declaration of
209 the subtype is generated.
210
211 2018-05-31 Martin Sebor <msebor@redhat.com>
212
213 PR c/82063
214 * c.opt (-Wno-alloc-size-larger-than): New option.
215
216 2018-04-22 David Pagan <dave.pagan@oracle.com>
217
218 PR c/55976
219 * c-opts.c (c_common_post_options): Set default for warn_return_type
220 for C++/C++ with ObjC extensions only. For C, makes it possible to
221 differentiate between default (no option), -Wreturn-type, and
222 -Wno-return-type.
223
224 2018-05-29 Jason Merrill <jason@redhat.com>
225
226 * c.opt (Winit-list-lifetime): New flag.
227
228 2018-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
229
230 * c-lex.c (get_fileinfo): Use splay_tree_compare_strings and
231 splay_tree_delete_pointers.
232
233 2018-05-26 Jakub Jelinek <jakub@redhat.com>
234
235 PR bootstrap/85921
236 * c-warn.c (diagnose_mismatched_attributes): Remove unnecessary
237 noinline variable to workaround broken kernel headers.
238
239 2018-05-18 Jason Merrill <jason@redhat.com>
240
241 * c.opt (Wdeprecated-copy): New flag.
242
243 2018-05-17 Martin Liska <mliska@suse.cz>
244
245 * c-warn.c (overflow_warning): Do not use
246 space in between 'G_' and '('.
247
248 2018-05-09 Jason Merrill <jason@redhat.com>
249
250 * c-common.c (valid_array_size_p): Add complain parameter.
251 * c-common.h: ...which defaults to true.
252
253 2018-05-11 Jakub Jelinek <jakub@redhat.com>
254
255 PR c/85696
256 * c-omp.c (c_omp_predetermined_sharing): Return
257 OMP_CLAUSE_DEFAULT_SHARED for artificial vars with integral type.
258
259 2018-05-11 Martin Liska <mliska@suse.cz>
260
261 PR sanitizer/85556
262 * c-attribs.c (handle_no_sanitize_attribute): Iterate all
263 TREE_LIST values.
264
265 2018-05-10 Jakub Jelinek <jakub@redhat.com>
266
267 PR c++/85662
268 * c-common.h (fold_offsetof_1): Removed.
269 (fold_offsetof): Add TYPE argument defaulted to size_type_node and
270 CTX argument defaulted to ERROR_MARK.
271 * c-common.c (fold_offsetof_1): Renamed to ...
272 (fold_offsetof): ... this. Remove wrapper function. Add TYPE
273 argument, convert the pointer constant to TYPE and use size_binop
274 with PLUS_EXPR instead of fold_build_pointer_plus if type is not
275 a pointer type. Adjust recursive calls.
276
277 2018-05-10 Eric Botcazou <ebotcazou@adacore.com>
278
279 PR c++/85400
280 * c-attribs.c (handle_visibility_attribute): Do not set no_add_attrs.
281
282 2018-05-07 Nathan Sidwell <nathan@acm.org>
283
284 * c.opt (ffor-scope): Remove functionality, issue warning.
285
286 2018-05-03 Nathan Sidwell <nathan@acm.org>
287
288 * c.opt (ffriend-injection): Remove functionality, issue warning.
289
290 2018-05-01 David Malcolm <dmalcolm@redhat.com>
291
292 PR c/84258
293 * c-format.c (struct format_check_results): Add field
294 "number_non_char".
295 (check_format_info): Initialize it, and warn if encountered.
296 (check_format_arg): Distinguish between wide char and
297 everything else when detecting arrays of non-char.
298
299 2018-04-30 David Malcolm <dmalcolm@redhat.com>
300
301 * c-format.c (get_corrected_substring): Update for
302 location_get_source_line returning a char_span. Use a char_span
303 when handling the prefix of the correction.
304 * c-indentation.c (get_visual_column): Update for
305 location_get_source_line returning a char_span.
306 (get_first_nws_vis_column): Likewise.
307
308 2018-03-29 David Malcolm <dmalcolm@redhat.com>
309
310 PR c++/84269
311 * known-headers.cc (get_stdlib_header_for_name): Add various names
312 from <assert.h>, <string.h>, and <memory.h>; add more names from
313 <stdio.h>.
314
315 2018-03-27 Jakub Jelinek <jakub@redhat.com>
316
317 PR c++/85061
318 * c-common.c (fold_offsetof_1) <case COMPOUND_EXPR>: Assert that
319 get_base_address of the second operand is a VAR_P, rather than the
320 operand itself, and use gcc_checking_assert instead of gcc_assert.
321
322 2018-03-23 Marek Polacek <polacek@redhat.com>
323
324 PR c++/85045
325 * c-pretty-print.c (c_pretty_printer::multiplicative_expression)
326 <case RDIV_EXPR>: Tweak condition.
327
328 2018-03-20 Eric Botcazou <ebotcazou@adacore.com>
329
330 * c-ada-spec.c (pp_ada_tree_identifier): Deal specifically with _Bool.
331
332 2018-03-16 Jakub Jelinek <jakub@redhat.com>
333
334 PR c/84909
335 * c-warn.c (conversion_warning): Replace "to to" with "to" in
336 diagnostics.
337
338 PR c/84910
339 * c-warn.c (diagnose_mismatched_attributes): Remove trailing space from
340 diagnostics.
341
342 2018-03-16 Richard Biener <rguenther@suse.de>
343
344 PR c/84873
345 * c-gimplify.c (c_gimplify_expr): Revert previous change. Instead
346 unshare the possibly folded expression.
347
348 2018-03-15 Richard Biener <rguenther@suse.de>
349
350 PR c/84873
351 * c-gimplify.c (c_gimplify_expr): Do not fold expressions.
352
353 2018-03-13 Martin Sebor <msebor@redhat.com>
354
355 PR tree-optimization/84725
356 * c-attribs.c (handle_nonstring_attribute): Allow attribute nonstring
357 with all three narrow character types, including their qualified forms.
358
359 2018-03-12 Martin Sebor <msebor@redhat.com>
360
361 PR tree-optimization/83456
362 * gcc/c-family/c-common.c (check_function_restrict): Return bool.
363 Restore checking of bounded built-in functions.
364 (check_function_arguments): Also return the result
365 of warn_for_restrict.
366 * gcc/c-family/c-common.c (check_function_restrict): Return bool.
367 * gcc/c-family/c-warn.c (warn_for_restrict): Return bool.
368
369 2018-03-02 Marek Polacek <polacek@redhat.com>
370
371 PR c++/84171
372 * c-warn.c (warn_for_sign_compare): Bail out if any of the operands
373 is erroneous.
374
375 2018-03-02 Thomas Schwinge <thomas@codesourcery.com>
376
377 * c-attribs.c (c_common_attribute_table): Remove "cilk simd
378 function".
379
380 2018-03-01 Marek Polacek <polacek@redhat.com>
381
382 PR c++/84639
383 * c-attribs.c (common_handle_aligned_attribute): Don't use invalid
384 alignment in computation.
385
386 2018-02-28 Eric Botcazou <ebotcazou@adacore.com>
387
388 * c-ada-spec.c (dump_ada_node) <NULLPTR_TYPE>: New case.
389 <REAL_TYPE>: Deal specifically with _Float128/__float128.
390
391 2018-02-28 Eric Botcazou <ebotcazou@adacore.com>
392
393 * c-ada-spec.c (dump_ada_double_name) <ENUMERAL_TYPE>: New case.
394 (is_char_array): Take a type instead of a declaration.
395 (dump_ada_array_type): Likewise.
396 (is_simple_enum): Minor tweak.
397 (dump_ada_enum_type): New function extracted from...
398 (dump_ada_node) <ENUMERAL_TYPE>: ...here. Invoke it.
399 <INTEGER_TYPE>: Remove unreachable code.
400 <RECORD_TYPE>: Likewise. Minor tweaks.
401 (dump_nested_type) <ARRAY_TYPE>: Adjust to above changes.
402 <ENUMERAL_TYPE>: New case.
403 <RECORD_TYPE>: Factor out common code.
404 (dump_ada_declaration) <ARRAY_TYPE>: Adjust to above changes.
405 Minor tweaks. Deal with enumeral types.
406 (dump_ada_structure): Minor tweaks.
407
408 2018-02-28 Eric Botcazou <ebotcazou@adacore.com>
409
410 * c-ada-spec.c (dump_ada_node) <POINTER_TYPE>: Do not use generic
411 address for incomplete structures.
412 (dump_forward_type): Do not bail out for incomplete structures.
413 (dump_ada_declaration): Do not special-case incomplete structures
414 for subtypes. Dump them as null records for types.
415
416 2018-02-28 Eric Botcazou <ebotcazou@adacore.com>
417
418 * c-ada-spec.c (dump_ada_import): Use boolean and fix formatting.
419 (is_char_array): Fix formatting.
420 (dump_template_types): Likewise.
421 (dump_generic_ada_node): Rename into...
422 (dump_ada_node): ...this.
423 <POINTER_TYPE>: Remove superfluous space. Use generic address for
424 incomplete structures and not for empty structures. Do not use it
425 when forward declarations are needed.
426 (dump_forward_type): New function.
427 (dump_nested_types): Remove FORWARD parameter. Do not consider
428 TREE_VISITED and do not generate a forward declaration. Only dump
429 original nested types for nested declaration.
430 (dump_nested_type) <POINTER_TYPE>: Call dump_forward_type.
431 <ARRAY_TYPE>: Likewise if the component type is an anonymous pointer.
432 <RECORD_TYPE>: Do not consider TREE_VISITED.
433 (dump_ada_declaration): Use booleans and fix formatting throughout.
434 <TYPE_DECL>: Skip incomplete structures and not empty structures.
435 Call dump_forward_type instead of dump_nested_types for a typedef.
436 Remove superfluous check and adjust call to dump_nested_types.
437 <POINTER_TYPE>: Call dump_forward_type and fall through.
438 (dump_ada_struct_decl): Rename into...
439 (dump_ada_structure): ...this. Do not special-case empty structures.
440
441 2018-02-27 Martin Sebor <msebor@redhat.com>
442
443 PR c++/83871
444 * c.opt (-Wmissing-attributes): New option.
445
446 2018-02-21 Martin Liska <mliska@suse.cz>
447
448 * c.opt (Wcatch-value=): Add IntegerRange.
449
450 2018-02-15 Jason Merrill <jason@redhat.com>
451
452 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_deduction_guides.
453
454 2018-02-09 Nathan Sidwell <nathan@acm.org>
455
456 PR c/84293
457 * c-common.h (strict_aliasing_warning): Drop OTYPE arg, insert LOC
458 arg.
459 * c-warn.c (strict_aliasing_warning): Drop OTYPE arg, require LOC
460 arg. Adjust.
461
462 2018-02-09 Martin Sebor <msebor@redhat.com>
463
464 PR lto/84212
465 * c.opt (-Wstringop-overflow, -Warray-bounds): Add LTO.
466 (-Walloc-size-larger-than, -Wformat-truncation=): Same.
467 (-Wmaybe-uninitialized, -Wnonnull, -Wrestrict): Same.
468 (-Wstrict-overflow, -Wsuggest-attribute): Same.
469 (-Wuninitialized): Same.
470
471 2018-02-09 Eric Botcazou <ebotcazou@adacore.com>
472
473 * c-ada-spec.c (dump_ada_declaration): Do not generate the 'constant'
474 keyword for components.
475
476 2018-02-02 Paolo Carlini <paolo.carlini@oracle.com>
477
478 * c-common.h (DECL_UNNAMED_BIT_FIELD): New.
479
480 2018-02-02 Julia Koval <julia.koval@intel.com>
481
482 * c-common.h (omp_clause_mask): Move to wide_int_bitmask.h.
483
484 2018-01-29 Marek Polacek <polacek@redhat.com>
485
486 PR c/83966
487 * c-format.c (check_function_format): Check current_function_decl.
488
489 2018-01-27 Jakub Jelinek <jakub@redhat.com>
490
491 * c-cppbuiltin.c (c_cpp_builtins): Use ggc_strdup for the fp_suffix
492 argument.
493 (LAZY_HEX_FP_VALUES_CNT): Define.
494 (lazy_hex_fp_values): Allow up to LAZY_HEX_FP_VALUES_CNT lazy hex fp
495 values rather than just 12.
496 (builtin_define_with_hex_fp_value): Likewise.
497
498 2018-01-18 Boris Kolpackov <boris@codesynthesis.com>
499
500 PR other/70268
501 * c.opt (-fmacro-prefix-map): New option.
502 * c-opts.c (c_common_handle_option): Handle it.
503 * c-lex.c (init_c_lex): Set remap_filename cpp callback.
504 * c-ppoutput.c (init_pp_output): Likewise.
505
506 2018-01-17 David Malcolm <dmalcolm@redhat.com>
507
508 PR c++/83814
509 * c-common.c (fold_for_warn): Move to c/c-fold.c and cp/expr.c.
510
511 2018-01-10 Eric Botcazou <ebotcazou@adacore.com>
512
513 * c-ada-spec.c (dump_number): Add FLOAT_P parameter.
514 Skip 'f' and 'F' characters if it is true.
515 (store_ada_macro): Minor tweak.
516 (dump_ada_macros) <CPP_COMMENT>: Likewise.
517 <CPP_WSTRING>: Likewise.
518 <CPP_STRING>: Output '&' in the buffer if not the first string.
519 <CPP_NUMBER>: Adjust calls to dump_number.
520
521 2018-01-10 David Malcolm <dmalcolm@redhat.com>
522
523 PR c++/43486
524 * c-common.c: Include "selftest.h".
525 (get_atomic_generic_size): Perform the test for integral type
526 before the range test for any integer constant, fixing indentation
527 of braces. Call fold_for_warn before testing for an INTEGER_CST.
528 (reject_gcc_builtin): Strip any location wrapper from EXPR.
529 (selftest::test_fold_for_warn): New function.
530 (selftest::c_common_c_tests): New function.
531 (selftest::c_family_tests): Call it, and
532 selftest::c_pretty_print_c_tests.
533 * c-common.h (selftest::c_pretty_print_c_tests): New decl.
534 * c-format.c (check_format_arg): Convert VAR_P check to a
535 fold_for_warn.
536 * c-pretty-print.c: Include "selftest.h".
537 (pp_c_cast_expression): Don't print casts for location wrappers.
538 (selftest::assert_c_pretty_printer_output): New function.
539 (ASSERT_C_PRETTY_PRINTER_OUTPUT): New macro.
540 (selftest::test_location_wrappers): New function.
541 (selftest::c_pretty_print_c_tests): New function.
542 * c-warn.c (warn_for_memset): Call fold_for_warn on the arguments.
543
544 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
545 Alan Hayward <alan.hayward@arm.com>
546 David Sherwood <david.sherwood@arm.com>
547
548 * c-common.c (c_common_type_for_mode): Handle MODE_VECTOR_BOOL.
549
550 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
551 Alan Hayward <alan.hayward@arm.com>
552 David Sherwood <david.sherwood@arm.com>
553
554 * c-ubsan.c (ubsan_instrument_shift): Treat GET_MODE_BITSIZE
555 as polynomial.
556
557 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
558 Alan Hayward <alan.hayward@arm.com>
559 David Sherwood <david.sherwood@arm.com>
560
561 * c-common.c (vector_types_convertible_p, c_build_vec_perm_expr)
562 (convert_vector_to_array_for_subscript): Handle polynomial
563 TYPE_VECTOR_SUBPARTS.
564 (c_common_type_for_mode): Check valid_vector_subparts_p.
565 * c-pretty-print.c (pp_c_initializer_list): Handle polynomial
566 VECTOR_CST_NELTS.
567
568 2018-01-03 Jakub Jelinek <jakub@redhat.com>
569
570 Update copyright years.
571
572 2017-12-22 Mike Stump <mikestump@comcast.net>
573 Eric Botcazou <ebotcazou@adacore.com>
574
575 * c-pragma.c (init_pragma): Register pragma GCC unroll.
576 * c-pragma.h (enum pragma_kind): Add PRAGMA_UNROLL.
577
578 2017-12-22 Alexandre Oliva <aoliva@redhat.com>
579
580 PR debug/83527
581 PR debug/83419
582 * c-semantics.c (only_debug_stmts_after_p): New.
583 (pop_stmt_list): Clear side effects in debug-only stmt list.
584 Check for single nondebug stmt followed by debug stmts only.
585
586 2017-12-21 Alexandre Oliva <aoliva@redhat.com>
587
588 PR debug/83419
589 * c-semantics.c (pop_stmt_list): Propagate side effects from
590 single nondebug stmt to container list.
591
592 2017-12-19 Jakub Jelinek <jakub@redhat.com>
593
594 * known-headers.cc (get_stdlib_header_for_name): Replace Yoda
595 conditions with typical order conditions.
596
597 2017-12-18 Marek Polacek <polacek@redhat.com>
598
599 * c-warn.c (warn_logical_operator): Return early if -Wlogical-op is
600 not in effect.
601
602 2017-12-17 Martin Sebor <msebor@redhat.com>
603
604 * c-attribs.c (common_handle_aligned_attribute): Avoid issuing
605 an error for attribute warn_if_not_aligned.
606
607 2017-12-16 Martin Sebor <msebor@redhat.com>
608
609 PR tree-optimization/78918
610 * c-common.c (check_function_restrict): Avoid checking built-ins.
611 * c.opt (-Wrestrict): Include in -Wall.
612
613 2017-12-15 Jakub Jelinek <jakub@redhat.com>
614
615 * c-attribs.c (c_common_attribute_table,
616 c_common_format_attribute_table): Swap affects_type_identity
617 and handler fields, adjust comments.
618
619 2017-12-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
620
621 * c.opt (Wcast-function-type): New warning option.
622 * c-lex.c (get_fileinfo): Avoid warning.
623 * c-ppoutput.c (scan_translation_unit_directives_only): Remove cast.
624
625 2017-12-14 Qing Zhao <qing.zhao@oracle.com>
626
627 PR middle_end/79538
628 * c-cppbuiltin.c (builtin_define_with_hex_fp_value):
629 Adjust the size of buf1 and buf2, add a new buf to avoid
630 format-overflow warning.
631
632 2017-12-12 Alexandre Oliva <aoliva@redhat.com>
633
634 * c-semantics.c (pop_stmt_list): Move begin stmt marker into
635 subsequent statement list.
636
637 2017-12-07 Martin Sebor <msebor@redhat.com>
638
639 PR c/81544
640 PR c/81566
641 * c-attribs.c (attr_aligned_exclusions): New array.
642 (attr_alloc_exclusions, attr_cold_hot_exclusions): Same.
643 (attr_common_exclusions, attr_const_pure_exclusions): Same.
644 (attr_gnu_inline_exclusions, attr_inline_exclusions): Same.
645 (attr_noreturn_exclusions, attr_returns_twice_exclusions): Same.
646 (attr_warn_unused_result_exclusions): Same.
647 (handle_hot_attribute, handle_cold_attribute): Simplify.
648 (handle_const_attribute): Warn on function returning void.
649 (handle_pure_attribute): Same.
650 (handle_aligned_attribute): Diagnose conflicting attribute
651 specifications.
652 * c-warn.c (diagnose_mismatched_attributes): Simplify.
653
654 2017-12-06 David Malcolm <dmalcolm@redhat.com>
655
656 PR c/83236
657 * c-common.c (selftest::c_family_tests): Call
658 selftest::c_spellcheck_cc_tests.
659 * c-common.h (selftest::c_spellcheck_cc_tests): New decl.
660 * c-spellcheck.cc: Include "selftest.h".
661 (name_reserved_for_implementation_p): New function.
662 (should_suggest_as_macro_p): New function.
663 (find_closest_macro_cpp_cb): Move the check for NT_MACRO to
664 should_suggest_as_macro_p and call it.
665 (selftest::test_name_reserved_for_implementation_p): New function.
666 (selftest::c_spellcheck_cc_tests): New function.
667 * c-spellcheck.h (name_reserved_for_implementation_p): New decl.
668
669 2017-12-06 David Malcolm <dmalcolm@redhat.com>
670
671 * c-spellcheck.cc: New file, taken from macro-handling code in
672 spellcheck-tree.c.
673 * c-spellcheck.h: New file, taken from macro-handling code in
674 spellcheck-tree.h.
675
676 2017-12-01 Jakub Jelinek <jakub@redhat.com>
677
678 * c-attribs.c (c_common_attribute_table): Remove "cilk simd function"
679 attribute.
680 (handle_simd_attribute): Don't check for "cilk simd function"
681 attribute. Reindent, formatting changes.
682
683 2017-11-30 Julia Koval <julia.koval@intel.com>
684
685 * c-common.h (inv_list): Remove.
686
687 2017-11-28 Jakub Jelinek <jakub@redhat.com>
688
689 PR sanitizer/81275
690 * c-common.c (c_switch_covers_all_cases_p_1,
691 c_switch_covers_all_cases_p): New functions.
692 * c-common.h (c_switch_covers_all_cases_p): Declare.
693
694 2017-11-28 Julia Koval <julia.koval@intel.com>
695 Sebastian Peryt <sebastian.peryt@intel.com>
696
697 * array-notation-common.c: Delete.
698 * c-cilkplus.c: Ditto.
699 * c-common.c (_Cilk_spawn, _Cilk_sync, _Cilk_for): Remove.
700 * c-common.def (ARRAY_NOTATION_REF): Remove.
701 * c-common.h (RID_CILK_SPAWN, build_array_notation_expr,
702 build_array_notation_ref, C_ORT_CILK, c_check_cilk_loop,
703 c_validate_cilk_plus_loop, cilkplus_an_parts,
704 cilk_ignorable_spawn_rhs_op,
705 cilk_recognize_spawn): Remove.
706 * c-gimplify.c (CILK_SPAWN_STMT): Remove.
707 * c-omp.c: Remove CILK_SIMD check.
708 * c-pragma.c: Ditto.
709 * c-pragma.h: Remove CILK related pragmas.
710 * c-pretty-print.c (c_pretty_printer::postfix_expression): Remove
711 ARRAY_NOTATION_REF condition.
712 (c_pretty_printer::expression): Ditto.
713 * c.opt (fcilkplus): Remove.
714 * cilk.c: Delete.
715
716 2017-11-21 Marc Glisse <marc.glisse@inria.fr>
717
718 * c-pretty-print.c (pp_c_additive_expression,
719 c_pretty_printer::expression): Handle POINTER_DIFF_EXPR.
720
721 2017-11-21 Jakub Jelinek <jakub@redhat.com>
722
723 * c-common.c (get_nonnull_operand): Use tree_to_uhwi.
724
725 PR c++/83059
726 * c-common.c (get_atomic_generic_size): Use TREE_INT_CST_LOW
727 instead of tree_to_uhwi, formatting fix.
728
729 2017-11-20 David Malcolm <dmalcolm@redhat.com>
730
731 PR c/81404
732 * known-headers.cc: New file, based on material from c/c-decl.c.
733 (suggest_missing_header): Copied as-is.
734 (get_stdlib_header_for_name): New, based on get_c_name_hint but
735 heavily edited to add C++ support. Add some knowledge about
736 <limits.h>, <stdint.h>, and <wchar.h>.
737 * known-headers.h: Likewise.
738
739 2017-11-20 David Malcolm <dmalcolm@redhat.com>
740
741 * c-common.h (enum lookup_name_fuzzy_kind): Move to name-hint.h.
742 (lookup_name_fuzzy): Likewise. Convert return type from
743 const char * to name_hint. Add location_t param.
744 * name-hint.h: New header.
745
746 2017-11-19 Jakub Jelinek <jakub@redhat.com>
747
748 PR c/66618
749 PR c/69960
750 * c-common.h (c_fully_fold): Add LVAL argument defaulted to false.
751
752 2017-11-16 Joseph Myers <joseph@codesourcery.com>
753
754 * c.opt (-std=c17, std=gnu17, -std=iso9899:2017): Refer to 2018
755 expected publication date of C17.
756 (-std=c18, -std=gnu18, -std=iso9899:2018): New option aliases.
757
758 2017-11-15 Joseph Myers <joseph@codesourcery.com>
759
760 PR c/81156
761 * c-common.c (c_common_reswords): Add __builtin_tgmath.
762 * c-common.h (enum rid): Add RID_BUILTIN_TGMATH.
763
764 2017-11-10 Martin Sebor <msebor@redhat.com>
765
766 PR c/81117
767 * c-common.c (catenate_strings): Use memcpy instead of strncpy.
768 * c-warn.c (sizeof_pointer_memaccess_warning): Handle arrays.
769 * c.opt (-Wstringop-truncation): New option.
770
771 2017-11-06 Martin Liska <mliska@suse.cz>
772
773 PR middle-end/82404
774 * c-opts.c (c_common_post_options): Set -Wreturn-type for C++
775 FE.
776 * c.opt: Set default value of warn_return_type.
777
778 2017-10-31 David Malcolm <dmalcolm@redhat.com>
779
780 * c-common.c (binary_op_error): Update for renaming of
781 error_at_rich_loc.
782 (c_parse_error): Likewise.
783 * c-warn.c (warn_logical_not_parentheses): Likewise for
784 renaming of inform_at_rich_loc.
785 (warn_for_restrict): Likewise for renaming of
786 warning_at_rich_loc_n.
787
788 2017-10-30 Joseph Myers <joseph@codesourcery.com>
789
790 * c.opt (std=c17, std=gnu17, std=iso9899:2017): New options.
791 * c-opts.c (set_std_c17): New function.
792 (c_common_init_options): Use gnu17 as default C version.
793 (c_common_handle_option): Handle -std=c17 and -std=gnu17.
794
795 2017-10-27 Michael Meissner <meissner@linux.vnet.ibm.com>
796
797 * c-cppbuiltin.c (mode_has_fma): Add support for PowerPC KFmode.
798 (c_cpp_builtins): If a machine has a fast fma _Float<N> and
799 _Float<N>X variant, define __FP_FAST_FMA<N> and/or
800 __FP_FAST_FMA<N>X.
801
802 2017-10-23 Marek Polacek <polacek@redhat.com>
803
804 PR c/82681
805 * c-warn.c (warnings_for_convert_and_check): Fix typos.
806
807 2017-10-19 Eric Botcazou <ebotcazou@adacore.com>
808
809 * c-common.c (check_builtin_function_arguments): Also check arguments
810 of __builtin_alloca_with_align_and_max.
811
812 2017-10-17 David Malcolm <dmalcolm@redhat.com>
813
814 * c-format.c (format_warning_at_char): Pass UNKNOWN_LOCATION
815 rather than NULL to format_warning_va.
816 (check_format_types): Likewise when calling format_type_warning.
817 Remove code to extract source_ranges and source_range * in favor
818 of just a location_t.
819 (format_type_warning): Convert source_range * param to a
820 location_t.
821
822 2017-10-13 Jakub Jelinek <jakub@redhat.com>
823
824 * c-gimplify.c (c_gimplify_expr): Handle [LR]ROTATE_EXPR like
825 [LR]SHIFT_EXPR.
826
827 2017-10-12 David Malcolm <dmalcolm@redhat.com>
828
829 * c-common.c (enum missing_token_insertion_kind): New enum.
830 (get_missing_token_insertion_kind): New function.
831 (maybe_suggest_missing_token_insertion): New function.
832 * c-common.h (maybe_suggest_missing_token_insertion): New decl.
833
834 2017-10-11 Nathan Sidwell <nathan@acm.org>
835
836 * c-opts.c (add_prefixed_path): Change chain to incpath_kind.
837 (c_common_handle_option): Update incpath_kind names.
838
839 2017-10-11 Martin Liska <mliska@suse.cz>
840
841 PR sanitizer/82490
842 * c-attribs.c (handle_no_sanitize_attribute): Report directly
843 Wattributes warning.
844
845 2017-10-10 Richard Sandiford <richard.sandiford@linaro.org>
846
847 * c-ada-spec.c (dump_generic_ada_node): Use wi::to_wide when
848 operating on trees as wide_ints.
849 * c-common.c (pointer_int_sum): Likewise.
850 * c-pretty-print.c (pp_c_integer_constant): Likewise.
851 * c-warn.c (match_case_to_enum_1): Likewise.
852 (c_do_switch_warnings): Likewise.
853 (maybe_warn_shift_overflow): Likewise.
854
855 2017-10-10 Jakub Jelinek <jakub@redhat.com>
856
857 PR c/82437
858 * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_wide
859 instead of wide_int::from.
860
861 2017-10-06 Jakub Jelinek <jakub@redhat.com>
862
863 PR c/82437
864 * c-warn.c (warn_tautological_bitwise_comparison): Instead of
865 using to_widest use wide_int with the larger of the two precisions.
866
867 2017-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
868
869 * c-pretty-print.c (pp_c_parameter_type_list): Print ... for variadic
870 functions.
871
872 2017-10-02 Richard Sandiford <richard.sandiford@linaro.org>
873
874 * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_widest
875 when combining the original unconverted comparison operands.
876
877 2017-09-29 Jakub Jelinek <jakub@redhat.com>
878
879 * c-attribs.c (handle_noipa_attribute): Don't add "stack_protect"
880 attribute.
881
882 2017-09-29 Eric Botcazou <ebotcazou@adacore.com>
883
884 * c-ada-spec.c (to_ada_name): Add index parameter.
885 (pp_ada_tree_identifier): Likewise.
886 (dump_ada_macros): Adjust call to to_ada_name.
887 (struct overloaded_name_hash): New type.
888 (struct overloaded_name_hasher): Likewise.
889 (overloaded_names): New hash table.
890 (compute_overloading_index): New function.
891 (dump_ada_decl_name): Call it and pass the result to
892 pp_ada_tree_identifier.
893 (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
894 (dump_ada_function_declaration): Likewise.
895 (dump_generic_ada_node): Likewise.
896 (print_constructor): Likewise.
897 (print_destructor): Likewise.
898 (dump_ada_specs): Delete overloaded_names table.
899
900 2017-09-29 Eric Botcazou <ebotcazou@adacore.com>
901
902 * c-ada-spec.c (max_ada_macros): Move around.
903 (store_ada_macro_index): Likewise.
904 (source_file): Rename into...
905 (macro_source_file): ...this.
906 (count_ada_macro): Move around.
907 (store_ada_macro): Likewise.
908 (compare_macro): Likewise.
909 (print_ada_macros): Merge in...
910 (dump_ada_macros): ...this.
911 (source_file_base): Rename into...
912 (current_source_file): ...this.
913 (print_comment): Move around.
914 (dump_ada_nodes): Call dump_ada_declaration directly.
915 (struct with): Change type of limited field to bool.
916 (append_withs): Change type of limited_access parameter to bool.
917 (pp_ada_tree_identifie): Likewise.
918 (dump_ada_decl_nam): Likewise.
919 (dump_generic_ada_node): Likewise. Do not print the return type.
920 (to_ada_name): Change type of space_found parameter to bool.
921 (dump_ada_function_declaration): Return void and change type of
922 parameters to bool. Also print the return type for a function.
923 (print_ada_methods): Rename into...
924 (dump_ada_methods): ...this.
925 (print_ada_declaration): Rename into ...
926 (dump_ada_declaration): ...this. Do not print the return type.
927 (print_ada_struct_decl): Rename into...
928 (dump_ada_struct_decl): ...this.
929
930 2017-09-29 Jakub Jelinek <jakub@redhat.com>
931
932 * c-attribs.c (handle_packed_attribute): Test DECL_C_BIT_FIELD
933 rather than DECL_INITIAL.
934 (common_handle_aligned_attribute): Likewise.
935
936 2017-09-20 Alexandre Oliva <aoliva@redhat.com>
937
938 * c.opt (gen-decls): Add RejectNegative.
939
940 2017-09-15 Andrew Sutton <andrew.n.sutton@gmail.com>
941 Jakub Jelinek <jakub@redhat.com>
942
943 Add support for -std=c++2a.
944 * c-common.h (cxx_dialect): Add cxx2a as a dialect.
945 * opt.c: Add options for -std=c++2a and -std=gnu++2a.
946 * c-opts.c (set_std_cxx2a): New.
947 (c_common_handle_option): Set options when -std=c++2a is enabled.
948 (c_common_post_options): Adjust comments.
949 (set_std_cxx14, set_std_cxx17): Likewise.
950
951 2017-09-15 Eric Botcazou <ebotcazou@adacore.com>
952
953 * c-pragma.c (handle_pragma_scalar_storage_order): Expand on error
954 message for non-uniform endianness and issue a warning in C++.
955
956 2017-09-15 Jakub Jelinek <jakub@redhat.com>
957
958 * c.opt (Wc++1z-compat): Change from option to undocumented alias.
959 (Wc++17-compat): Change from undocumented alias to option.
960 (Wnoexcept-type): Enable by Wc++17-compat instead of Wc++1z-compat,
961 change C++1z to C++17 in description.
962 (std=c++1z, std=gnu++1z): Change from option to undocumented
963 deprecated alias.
964 (std=c++17, std=gnu++17): Change from undocumented alias to option.
965 Adjust description.
966 * c-common.h (enum cxx_dialect): Rename cxx1z to cxx17.
967 * c-opts.c (set_std_cxx1z): Rename to ...
968 (set_std_cxx17): ... this.
969 (c_common_handle_option): Rename OPT_std_c__1z to OPT_std_c__17
970 and OPT_std_gnu__1z to OPT_std_gnu__17. Adjust set_std_cxx1z
971 caller.
972 (c_common_post_options): Use cxx17 instead of cxx1z. Adjust
973 comments.
974
975 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
976
977 * c-attribs.c (common_handle_aligned_attribute): Don't warn
978 function alignment if warn_if_not_aligned_p is true.
979
980 2017-09-12 Nathan Sidwell <nathan@acm.org>
981
982 * c-common.c (field_decl_cmp, resort_data, resort_field_decl_cmp,
983 resort_sorted_fields): Move to c/c-decl.c.
984 * c-common.h (field_decl_cmp, resort_sorted_fields): Delete.
985 (struct sorted_fields_type): Move to c/c-lang.h.
986
987 2017-09-09 Jonathan Wakely <jwakely@redhat.com>
988
989 PR c++/81852
990 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_threadsafe_static_init.
991
992 2017-09-04 Marek Polacek <polacek@redhat.com>
993
994 PR c/81783
995 * c-warn.c (warn_tautological_bitwise_comparison): New function.
996 (warn_tautological_cmp): Call it.
997
998 2017-09-01 Boris Kolpackov <boris@codesynthesis.com>
999
1000 * c-opts.c (c_common_finish): Write dependency information even if
1001 there are errors.
1002
1003 2017-09-01 Jakub Jelinek <jakub@redhat.com>
1004
1005 PR c/81887
1006 * c-pragma.c (omp_pragmas): Move "ordered" entry from here to ...
1007 (omp_pragmas_simd): ... here.
1008 * c-omp.c (c_finish_omp_ordered): If clauses isn't simd clause alone,
1009 create new clauses list containing just simd clause.
1010
1011 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1012 Alan Hayward <alan.hayward@arm.com>
1013 David Sherwood <david.sherwood@arm.com>
1014
1015 * c-attribs.c (vector_mode_valid_p) Fold GET_MODE_INNER call
1016 into scalar_mode_supported_p call.
1017 (handle_mode_attribute): Update call to scalar_mode_supported_p.
1018
1019 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1020 Alan Hayward <alan.hayward@arm.com>
1021 David Sherwood <david.sherwood@arm.com>
1022
1023 * c-common.c (c_common_fixed_point_type_for_size): Use opt_scalar_mode
1024 for the mode iterator.
1025
1026 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1027 Alan Hayward <alan.hayward@arm.com>
1028 David Sherwood <david.sherwood@arm.com>
1029
1030 * c-lex.c (interpret_fixed): Use SCALAR_TYPE_MODE.
1031 * c-common.c (c_build_vec_perm_expr): Likewise.
1032
1033 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1034 Alan Hayward <alan.hayward@arm.com>
1035 David Sherwood <david.sherwood@arm.com>
1036
1037 * c-common.c (c_common_type_for_mode): Use as_a <scalar_int_mode>.
1038
1039 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1040 Alan Hayward <alan.hayward@arm.com>
1041 David Sherwood <david.sherwood@arm.com>
1042
1043 * c-attribs.c (handle_mode_attribute): Check for a scalar_int_mode
1044 before calling targetm.addr_space.valid_pointer_mode.
1045
1046 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1047 Alan Hayward <alan.hayward@arm.com>
1048 David Sherwood <david.sherwood@arm.com>
1049
1050 * c-cppbuiltin.c (c_cpp_builtins): Use opt_scalar_float_mode.
1051
1052 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1053 Alan Hayward <alan.hayward@arm.com>
1054 David Sherwood <david.sherwood@arm.com>
1055
1056 * c-common.c (c_common_fixed_point_type_for_size): Use new mode
1057 iterators.
1058 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1059
1060 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1061 Alan Hayward <alan.hayward@arm.com>
1062 David Sherwood <david.sherwood@arm.com>
1063
1064 * c-cppbuiltin.c (mode_has_fma): Prefix mode names with E_ in
1065 case statements.
1066
1067 2017-08-29 Martin Liska <mliska@suse.cz>
1068
1069 PR other/39851
1070 * c-common.c (parse_optimize_options): Add argument to function
1071 call.
1072 * c-pragma.c (handle_pragma_diagnostic): Likewise.
1073
1074 2017-08-24 David Malcolm <dmalcolm@redhat.com>
1075
1076 * c-lex.c (interpret_float): Use token location
1077 when building an EXCESS_PRECISION_EXPR.
1078
1079 2017-08-21 David Malcolm <dmalcolm@redhat.com>
1080
1081 * c-common.c (check_function_arguments): Add "arglogs" param; pass
1082 it to check_function_format.
1083 * c-common.h (check_function_arguments): Add vec<location_t> *
1084 param.
1085 (check_function_format): Likewise.
1086 * c-format.c (struct format_check_context): Add field "arglocs".
1087 (check_function_format): Add param "arglocs"; pass it to
1088 check_format_info.
1089 (check_format_info): Add param "arglocs"; use it to initialize
1090 new field of format_ctx.
1091 (check_format_arg): Pass format_ctx->arglocs to new param of
1092 check_format_info_main.
1093 (class argument_parser): New field "arglocs".
1094 (argument_parser::argument_parser): Add "arglocs_" param and use
1095 it to initialize new field.
1096 (argument_parser::check_argument_type): Pass new arglocs field to
1097 check_format_types.
1098 (check_format_info_main): Add param "arglocs", and use it when
1099 constructing arg_parser.
1100 (check_format_types): Add param "arglocs"; use it if non-NULL when
1101 !EXPR_HAS_LOCATION (cur_param) to get at location information.
1102
1103 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
1104
1105 PR c/53037
1106 * c-attribs.c (handle_warn_if_not_aligned_attribute): New.
1107 (c_common_attribute_table): Add warn_if_not_aligned.
1108 (handle_aligned_attribute): Renamed to ...
1109 (common_handle_aligned_attribute): Remove argument, name, and add
1110 argument, warn_if_not_aligned. Handle warn_if_not_aligned.
1111 (handle_aligned_attribute): New.
1112 * c.opt: Add -Wif-not-aligned and -Wpacked-not-aligned.
1113
1114 2017-08-14 Martin Sebor <msebor@redhat.com>
1115
1116 PR c/81117
1117 * c-attribs.c (c_common_attribute_table): Add nonstring entry.
1118 (handle_nonstring_attribute): New function.
1119
1120 2017-08-14 Martin Sebor <msebor@redhat.com>
1121
1122 PR c/81117
1123 * c-format.h (T89_G): New macro.
1124 * c-format.c (local_gcall_ptr_node): New variable.
1125 (init_dynamic_diag_info): Initialize it.
1126
1127 2017-08-11 Martin Liska <mliska@suse.cz>
1128
1129 * c-opts.c (c_common_post_options): Replace ASM_OUTPUT_DEF with
1130 TARGET_SUPPORTS_ALIASES.
1131
1132 2017-08-10 David Malcolm <dmalcolm@redhat.com>
1133
1134 * c-common.c (c_parse_error): Add rich_location * param, using it
1135 rather implicitly using input_location.
1136 * c-common.h (c_parse_error): Add rich_location * param.
1137
1138 2017-08-09 Marek Polacek <polacek@redhat.com>
1139
1140 * c-common.c (pointer_int_sum): Use true/false instead of 1/0.
1141 (c_common_truthvalue_conversion): Likewise.
1142 * c-omp.c (c_finish_omp_atomic): Likewise.
1143 * c-common.h (build_binary_op): Update declaration.
1144
1145 2017-08-08 Martin Liska <mliska@suse.cz>
1146
1147 * c-ada-spec.c: Include header files.
1148 * c-ubsan.c: Likewise.
1149 * c-warn.c: Likewise.
1150
1151 2017-08-07 Jakub Jelinek <jakub@redhat.com>
1152
1153 PR c/69389
1154 * c-omp.c (c_finish_omp_atomic): Handle atomics on bitfields.
1155
1156 2017-08-07 Eric Botcazou <ebotcazou@adacore.com>
1157
1158 * c-ada-spec.c (has_nontrivial_methods): Test for FUNCTION_DECL.
1159 (print_ada_methods): Likewise.
1160 (print_ada_declaration): Likewise.
1161
1162 2017-08-07 Martin Liska <mliska@suse.cz>
1163
1164 * array-notation-common.c: Add new includes.
1165 * c-format.c( handle_format_attribute): Canonicalize a format
1166 function name.
1167 * c-lex.c (c_common_has_attribute): Canonicalize name of an
1168 attribute.
1169 * c-pretty-print.c: Add new include.
1170
1171 2017-08-05 Eric Botcazou <ebotcazou@adacore.com>
1172
1173 * c-ada-spec.c (has_static_fields): Look only into variables.
1174 (print_constructor): Add TYPE parameter and use it for the name.
1175 (print_destructor): Likewise.
1176 (print_ada_declaration): Adjust to new constructor/destructor names.
1177 Adjust calls to print_constructor and print_destructor.
1178 (print_ada_struct_decl): Do not test TREE_STATIC on FIELD_DECL.
1179 Look only into variables in the final loop.
1180
1181 2017-08-01 Eric Botcazou <ebotcazou@adacore.com>
1182
1183 * c-ada-spec.c (has_static_fields): Look only into fields.
1184 (dump_generic_ada_node): Small tweak.
1185 (dump_nested_types): Look only into fields.
1186 (print_ada_declaration): Look only into methods. Small tweak.
1187 (print_ada_struct_decl): Look only into fields. Use DECL_VIRTUAL_P.
1188
1189 2017-08-01 Eric Botcazou <ebotcazou@adacore.com>
1190
1191 * c-ada-spec.c (print_generic_ada_decl): Pass correctly-typed constant.
1192 (dump_ada_function_declaration): Likewise.
1193 (dump_generic_ada_node): Likewise.
1194 (print_ada_declaration): Add support for const-qualified variables.
1195
1196 2017-07-31 Martin Liska <mliska@suse.cz>
1197
1198 PR sanitize/81530
1199 * c-ubsan.c (ubsan_maybe_instrument_array_ref):
1200 Guard condition with flag_sanitize_p also with current_function_decl
1201 non-null equality.
1202 (ubsan_maybe_instrument_reference_or_call): Likewise.
1203
1204 2017-07-30 Uros Bizjak <ubizjak@gmail.com>
1205
1206 * c-format.c (asm_fprintf_char_table): Add 'z' to format_chars.
1207
1208 2017-07-29 Eric Botcazou <ebotcazou@adacore.com>
1209
1210 * c-ada-spec.c (dump_generic_ada_node): Take into account signedness
1211 for enumeral types.
1212 (print_ada_declaration): Add missing guard for record types.
1213
1214 2017-07-27 Jakub Jelinek <jakub@redhat.com>
1215
1216 PR c/45784
1217 * c-omp.c (c_finish_omp_for): If the condition is wrapped in
1218 rhs of COMPOUND_EXPR(s), skip them and readd their lhs into
1219 new COMPOUND_EXPRs around the rhs of the comparison.
1220
1221 2017-07-27 Marek Polacek <polacek@redhat.com>
1222
1223 PR c/81417
1224 * c-warn.c (warn_for_sign_compare): Tweak the warning message. Print
1225 the types.
1226
1227 2017-07-27 Jakub Jelinek <jakub@redhat.com>
1228
1229 * c-attribs.c (c_common_attribute_table): Add noipa attribute.
1230 (handle_noipa_attribute): New function.
1231
1232 2017-07-07 Torsten Duwe <duwe@suse.de>
1233
1234 * c-attribs.c (c_common_attribute_table): Add entry for
1235 "patchable_function_entry".
1236
1237 2017-07-20 Nathan Sidwell <nathan@acm.org>
1238
1239 Remove TYPE_METHODS.
1240 * c-ada-spec.c (is_tagged_type, has_nontrivial_methods,
1241 dump_ada_template, print_ada_methods,
1242 print_ada_declaration): Member fns are on TYPE_FIELDS.
1243
1244 2017-07-18 Nathan Sidwell <nathan@acm.org>
1245
1246 * c-warn.c (warn_for_memset): Use TYPE_{MIN,MAX}_VALUE.
1247
1248 2017-07-14 David Malcolm <dmalcolm@redhat.com>
1249
1250 * c-common.c (try_to_locate_new_include_insertion_point): New
1251 function.
1252 (per_file_includes_t): New typedef.
1253 (added_includes_t): New typedef.
1254 (added_includes): New variable.
1255 (maybe_add_include_fixit): New function.
1256 * c-common.h (maybe_add_include_fixit): New decl.
1257
1258 2017-07-10 Martin Sebor <msebor@redhat.com>
1259
1260 PR other/81345
1261 * c.opt (-Wstringop-overflow): Set defaults in LangEnabledBy.
1262
1263 2017-07-06 David Malcolm <dmalcolm@redhat.com>
1264
1265 * c-common.c (selftest::c_family_tests): New.
1266 * c-common.h (selftest::run_c_tests): Move decl to c/c-lang.h.
1267 (selftest::c_family_tests): New decl.
1268
1269 2017-07-04 Marek Polacek <polacek@redhat.com>
1270
1271 PR c/81231
1272 * c-common.c (sync_resolve_size): Give error for pointers to incomplete
1273 types.
1274
1275 2017-07-04 Marek Polacek <polacek@redhat.com>
1276
1277 * c-warn.c (warn_if_unused_value): Remove WITH_CLEANUP_EXPR handling.
1278
1279 2017-06-28 Martin Liska <mliska@suse.cz>
1280
1281 PR ipa/81128
1282 * c-attribs.c (handle_alias_ifunc_attribute): Append ifunc alias
1283 to a function declaration.
1284
1285 2017-06-28 Martin Liska <mliska@suse.cz>
1286
1287 PR driver/79659
1288 * c.opt: Add IntegerRange to various options.
1289
1290 2017-06-26 Marek Polacek <polacek@redhat.com>
1291
1292 PR c/80116
1293 * c-common.h (warn_for_multistatement_macros): Declare.
1294 * c-warn.c: Include "c-family/c-indentation.h".
1295 (warn_for_multistatement_macros): New function.
1296 * c.opt (Wmultistatement-macros): New option.
1297 * c-indentation.c (guard_tinfo_to_string): No longer static.
1298 Change the parameter type to "enum rid". Handle RID_SWITCH.
1299 * c-indentation.h (guard_tinfo_to_string): Declare.
1300
1301 2017-06-23 Marc Glisse <marc.glisse@inria.fr>
1302
1303 * c-common.c (c_common_nodes_and_builtins): Use builtin_structptr_types.
1304
1305 2017-06-15 Martin Sebor <msebor@redhat.com>
1306
1307 PR c++/80560
1308 * c.opt (-Wclass-memaccess): New option.
1309
1310 2017-06-14 Boris Kolpackov <boris@codesynthesis.com>
1311
1312 * c-opts.c (c_common_finish): Handle '-' special value to -MF.
1313
1314 2017-06-13 Marek Polacek <polacek@redhat.com>
1315
1316 PR objc/80949
1317 * c-warn.c (do_warn_duplicated_branches): Return if any of the
1318 branches is null.
1319
1320 2017-06-13 Martin Liska <mliska@suse.cz>
1321
1322 PR sanitize/78204
1323 * c-attribs.c (add_no_sanitize_value): New function.
1324 (handle_no_sanitize_attribute): Likewise.
1325 (handle_no_sanitize_address_attribute): Use the function.
1326 (handle_no_sanitize_thread_attribute): New function.
1327 (handle_no_address_safety_analysis_attribute): Use
1328 add_no_sanitize_value.
1329 (handle_no_sanitize_undefined_attribute): Likewise.
1330 * c-common.h: Declare new functions.
1331 * c-ubsan.c (ubsan_instrument_division): Use sanitize_flags_p.
1332 (ubsan_instrument_shift): Likewise.
1333 (ubsan_instrument_bounds): Likewise.
1334 (ubsan_maybe_instrument_array_ref): Likewise.
1335 (ubsan_maybe_instrument_reference_or_call): Likewise.
1336
1337 2017-06-11 Jason Merrill <jason@redhat.com>
1338
1339 * c-ada-spec.c, c-pragma.c: Use id_equal.
1340
1341 2017-06-04 Marek Polacek <polacek@redhat.com>
1342
1343 PR c/80919
1344 * c-format.c (matching_type_p): Return false if any of the types
1345 requires structural equality.
1346
1347 2017-06-02 Martin Sebor <msebor@redhat.com>
1348
1349 PR c/80892
1350 * c-warn.c (conversion_warning): Use -Wconversion for integer
1351 conversion and -Wfloat-conversion for floating one.
1352
1353 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
1354
1355 * c.opt (Wsizeof-pointer-div): New warning option.
1356
1357 2017-06-01 Volker Reichelt <v.reichelt@netcologne.de>
1358
1359 * c.opt (Wcatch-value): New shortcut for Wcatch-value=1.
1360 (Wcatch-value=1): Enable by -Wall.
1361
1362 2017-05-30 David Malcolm <dmalcolm@redhat.com>
1363
1364 * c-format.c (gcc_cxxdiag_char_table): Add 'H' and 'I' to
1365 format_chars.
1366 * c.opt (fdiagnostics-show-template-tree): New option.
1367 (felide-type): New option.
1368
1369 2017-05-25 Volker Reichelt <v.reichelt@netcologne.de>
1370
1371 * c.opt (Wcatch-value=): New C++ warning flag.
1372
1373 2017-05-24 Nathan Sidwell <nathan@acm.org>
1374
1375 * c=common.c (field_decl_cmp, resort_field_decl_cmp): Adjust T
1376 const casts to avoid warning.
1377
1378 2017-05-24 Martin Sebor <msebor@redhat.com>
1379
1380 PR c/80731
1381 * c-common.h (unsafe_conversion_p): Add a function argument.
1382 * c-common.c (unsafe_conversion_p): Same.
1383 Add type names and values to diagnostics.
1384 (scalar_to_vector): Adjust.
1385 * c-warn.c (constant_expression_error): Add a function argument.
1386 Add type names and values to diagnostics.
1387 (conversion_warning): Add a function argument.
1388 Add type names and values to diagnostics.
1389 (warnings_for_convert_and_check): Same.
1390
1391 2017-05-19 Jason Merrill <jason@redhat.com>
1392
1393 * c-warn.c (match_case_to_enum_1): Don't warn about enums with no
1394 enumerators.
1395
1396 2017-05-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
1397
1398 * c-format.c (locus): Move out of function scope,
1399 add GTY attribute.
1400
1401 2017-05-19 Nathan Sidwell <nathan@acm.org>
1402
1403 * c-opts.c (class_dump_file, class_dump_flags): Delete.
1404 (c_common_parse_file): Remove class dump handling.
1405 (get_dump_info): Likewise.
1406
1407 2017-05-19 Richard Biener <rguenther@suse.de>
1408
1409 PR c++/80593
1410 * c-warn.c (strict_aliasing_warning): Do not warn for accesses
1411 to alias-set zero memory.
1412
1413 2017-05-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
1414
1415 * c-format.c (local_tree_type_node): Add GTY attribute.
1416
1417 2017-05-18 Marek Polacek <polacek@redhat.com>
1418
1419 * c-common.c (c_common_type_for_size): Use NULL_TREE instead of 0.
1420 (c_common_fixed_point_type_for_size): Likewise.
1421 (c_common_type_for_mode): Likewise.
1422 (shorten_compare): Likewise.
1423 (c_promoting_integer_type_p): Use false/true instead of 0/1.
1424 * c-pragma.c (maybe_apply_renaming_pragma): Use NULL_TREE instead of 0.
1425
1426 2017-05-18 Marek Polacek <polacek@redhat.com>
1427
1428 * c-common.c (self_promoting_args_p): Change the return type to bool.
1429 Use false/true instead of 0/1.
1430 * c-common.h (self_promoting_args_p): Update.
1431
1432 2017-05-17 Marek Polacek <polacek@redhat.com>
1433
1434 * c-common.c: Use NULL_TREE instead of 0 where appropriate.
1435 * c-warn.c: Likewise.
1436
1437 2017-05-17 Ville Voutilainen <ville.voutilainen@gmail.com>
1438
1439 Implement new C++ intrinsics __is_assignable and __is_constructible.
1440 * c-common.c (__is_assignable, __is_constructible): New.
1441 * c-common.h (RID_IS_ASSIGNABLE, RID_IS_CONSTRUCTIBLE): Likewise.
1442
1443 2017-05-17 Martin Liska <mliska@suse.cz>
1444
1445 * c-common.h: Introduce dump_flags_t type and
1446 use it instead of int type.
1447 * c-gimplify.c (c_genericize): Likewise.
1448 * c-opts.c: Likewise.
1449
1450 2017-05-17 Marek Polacek <polacek@redhat.com>
1451
1452 * c-common.c (c_save_expr): Remove.
1453 (c_common_truthvalue_conversion): Remove a call to c_save_expr.
1454 * c-common.h (c_save_expr): Remove declaration.
1455
1456 2017-05-09 Volker Reichelt <v.reichelt@netcologne.de>
1457
1458 PR c/35441
1459 * c-pretty-print.c (c_pretty_printer::expression): Handle MAX_EXPR,
1460 MIN_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, LROTATE_EXPR, RROTATE_EXPR.
1461 (c_pretty_printer::postfix_expression): Handle MAX_EXPR, MIN_EXPR.
1462 (c_pretty_printer::multiplicative_expression): Handle EXACT_DIV_EXPR,
1463 RDIV_EXPR.
1464 (pp_c_shift_expression): Handle LROTATE_EXPR, RROTATE_EXPR.
1465
1466 2017-05-09 Marek Polacek <polacek@redhat.com>
1467
1468 PR c/80525
1469 * c-warn.c (unwrap_c_maybe_const): New.
1470 (warn_logical_operator): Call it.
1471
1472 2017-05-09 Nathan Sidwell <nathan@acm.org>
1473
1474 * c-common.c (c_register_builtin_type): Use pushdecl lang_hook.
1475 * c-common.h (pushdecl_top_level, pushdecl): Don't declare here.
1476
1477 2017-05-08 Martin Sebor <msebor@redhat.com>
1478
1479 PR translation/80280
1480 * c-format.h (struct format_flag_spec): Add new member.
1481 (T89_T): New macro.
1482 * c-format.c (local_tree_type_node): New global.
1483 (printf_flag_specs, asm_fprintf_flag_spec): Initialize new data.
1484 (gcc_diag_flag_specs, scanf_flag_specs, strftime_flag_specs): Ditto.
1485 (strfmon_flag_specs): Likewise.
1486 (gcc_diag_char_table, gcc_cdiag_char_table): Split up specifiers
1487 with distinct quoting properties.
1488 (gcc_tdiag_char_table, gcc_cxxdiag_char_table): Same.
1489 (flag_chars_t::validate): Add argument and handle bad quoting.
1490 (check_format_info_main): Handle quoting problems.
1491 (init_dynamic_diag_info): Simplify.
1492
1493 2017-05-08 Jason Merrill <jason@redhat.com>
1494
1495 * c-opts.c (c_common_post_options): Update defaults for
1496 flag_abi_version and flag_abi_compat_version.
1497
1498 2017-05-05 David Malcolm <dmalcolm@redhat.com>
1499
1500 * c-common.c (c_cpp_error): Replace report_diagnostic
1501 with diagnostic_report_diagnostic.
1502
1503 2017-05-04 Martin Sebor <msebor@redhat.com>
1504
1505 PR translation/80280
1506 * c-attribs.c (handle_alias_ifunc_attribute): Quote a %D directive.
1507 (handle_weakref_attribute): Same.
1508
1509 2017-05-03 Nathan Sidwell <nathan@acm.org>
1510
1511 Canonicalize canonical type hashing
1512 * c-common.c (complete_array_type): Use type_hash_canon.
1513
1514 2017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
1515
1516 PR c++/80038
1517 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): Remove
1518 prototype.
1519 (cilk_install_body_pedigree_operations): Likewise.
1520 * cilk.c (cilk_set_spawn_marker): Mark functions that should be
1521 detatched.
1522 (cilk_gimplify_call_params_in_spawned_fn): Remove.
1523 (cilk_install_body_pedigree_operations): Likewise.
1524 (gimplify_cilk_spawn): Add EXPR_STMT and CLEANUP_POINT_EXPR
1525 unwrapping.
1526
1527 2017-04-27 Jakub Jelinek <jakub@redhat.com>
1528
1529 PR c++/80534
1530 * c-common.c (complete_array_type): Only hash TYPE_TYPELESS_STORAGE
1531 flag on non-aggregate element types.
1532
1533 2017-04-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
1534
1535 * c-common.c (c_type_hasher, type_hash_table): Remove.
1536 (c_common_get_alias_set): Remove unreachable code.
1537 * c-opts.c (c_common_post_options): Make sure cc1 takes only one file.
1538
1539 2017-04-20 Volker Reichelt <v.reichelt@netcologne.de>
1540
1541 * c.opt (Wextra-semi): New C++ warning flag.
1542
1543 2017-04-20 Jakub Jelinek <jakub@redhat.com>
1544
1545 PR middle-end/80423
1546 * c-common.c (complete_array_type): Preserve TYPE_TYPELESS_STORAGE.
1547
1548 2017-04-18 Jakub Jelinek <jakub@redhat.com>
1549
1550 PR middle-end/79788
1551 PR middle-end/80375
1552 * c-common.c (c_common_type_for_mode): Don't handle
1553 widest_*_literal_type_node here.
1554 c_common_signed_or_unsigned_type): Likewise.
1555 (c_common_nodes_and_builtins): Set widest_*_literal_type_node
1556 to *intTI_type_node or *intDI_type_node depending on whether
1557 TImode is supported by the target or not.
1558
1559 2017-04-10 Martin Liska <mliska@suse.cz>
1560
1561 PR sanitizer/80350
1562 * c-ubsan.c (ubsan_instrument_shift): Evaluate RHS before
1563 doing an UBSAN check.
1564
1565 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
1566
1567 * c-warn.c (do_warn_double_promotion): Fix typo in comment.
1568
1569 2017-03-31 Jakub Jelinek <jakub@redhat.com>
1570
1571 PR c++/79572
1572 * c-ubsan.h (ubsan_maybe_instrument_reference): Change argument to
1573 tree *.
1574 * c-ubsan.c (ubsan_maybe_instrument_reference): Likewise. Handle
1575 not just NOP_EXPR to REFERENCE_TYPE, but also INTEGER_CST with
1576 REFERENCE_TYPE.
1577
1578 2017-03-31 David Malcolm <dmalcolm@redhat.com>
1579
1580 PR documentation/78732
1581 * c.opt (Wendif-labels): Fix description to refer to
1582 #else rather than #elif.
1583
1584 2017-03-31 Jakub Jelinek <jakub@redhat.com>
1585
1586 PR libstdc++/80251
1587 * c-common.h (enum rid): Add RID_IS_AGGREGATE.
1588 * c-common.c (c_common_reswords): Add __is_aggregate trait.
1589
1590 2017-03-27 Jakub Jelinek <jakub@redhat.com>
1591
1592 PR middle-end/80162
1593 * c-common.c (c_common_mark_addressable_vec): Don't set
1594 TREE_ADDRESSABLE on DECL_HARD_REGISTER.
1595
1596 2017-03-21 Martin Sebor <msebor@redhat.com>
1597
1598 PR c++/79548
1599 * c-common.c (set_underlying_type): Mark type used only when
1600 original del is declared unused.
1601
1602 2017-03-10 David Malcolm <dmalcolm@redhat.com>
1603
1604 PR translation/79848
1605 * c-format.c (check_format_string): Simplify uses of "%<%s%>" to
1606 "%qs".
1607
1608 2017-03-10 David Malcolm <dmalcolm@redhat.com>
1609
1610 PR c/79921
1611 * c-indentation.c (warn_for_misleading_indentation): Remove parens
1612 from inform's message, so that xgettext can locate it.
1613
1614 2017-03-09 Marek Polacek <polacek@redhat.com>
1615
1616 PR c++/79962
1617 PR c++/79984
1618 * c-attribs.c (handle_nonnull_attribute): Save the result of default
1619 conversion to the attribute list.
1620
1621 2017-03-09 Martin Liska <mliska@suse.cz>
1622
1623 * c-ada-spec.c (macro_length): Increment value instead of a pointer.
1624
1625 2017-03-03 Jason Merrill <jason@redhat.com>
1626
1627 * c.opt (Wnoexcept-type): New.
1628
1629 2017-03-02 Richard Biener <rguenther@suse.de>
1630
1631 PR c/79756
1632 * c-common.c (c_common_mark_addressable_vec): Look through
1633 C_MAYBE_CONST_EXPR.
1634
1635 2017-02-28 Martin Liska <mliska@suse.cz>
1636
1637 * c.opt: Replace space with tabular for options of <number>
1638 type.
1639
1640 2017-02-28 Martin Liska <mliska@suse.cz>
1641
1642 * c.opt: Fix --help=option -Q for options which are of
1643 an enum type.
1644
1645 2017-02-24 Jakub Jelinek <jakub@redhat.com>
1646
1647 PR c++/79588
1648 * c-common.c (check_function_restrict): New function.
1649 (check_function_arguments): Add FNDECL argument. Call
1650 check_function_restrict if -Wrestrict.
1651 * c-warn.c (warn_for_restrict): Remove ARGS argument, add ARGARRAY
1652 and NARGS. Use auto_vec for ARG_POSITIONS, simplify.
1653 * c-common.h (check_function_arguments): Add FNDECL argument.
1654 (warn_for_restrict): Remove ARGS argument, add ARGARRAY and NARGS.
1655
1656 2017-02-24 Eric Botcazou <ebotcazou@adacore.com>
1657
1658 * c-ada-spec.c (dump_ada_function_declaration): Add comment about the
1659 treatment of parameters with pointer-to-tagged type and tidy up.
1660 (print_ada_methods): Remove the special treatment of C++ static member
1661 functions.
1662
1663 2017-02-22 Martin Liska <mliska@suse.cz>
1664
1665 * c.opt: Replace inequality signs with square brackets
1666 for -Wnornalized.
1667
1668 2017-02-21 Jakub Jelinek <jakub@redhat.com>
1669
1670 PR c++/79641
1671 * c-attribs.c (handle_mode_attribute): Use build_qualified_type to
1672 preserve quals.
1673
1674 2017-02-17 Joseph Myers <joseph@codesourcery.com>
1675
1676 * c-cppbuiltin.c (builtin_define_float_constants): Define
1677 __DECIMAL_DIG__ to the value for long double.
1678
1679 2017-02-15 Marek Polacek <polacek@redhat.com>
1680
1681 PR c/79515
1682 * c-warn.c (do_warn_double_promotion): Don't warn if an invalid
1683 conversion has occured.
1684
1685 2017-01-24 David Malcolm <dmalcolm@redhat.com>
1686
1687 * c-common.c (c_common_reswords): Add "__RTL".
1688 * c-common.h (enum rid): Add RID_RTL.
1689
1690 2017-01-20 Marek Polacek <polacek@redhat.com>
1691
1692 PR c/64279
1693 * c-common.h (do_warn_duplicated_branches_r): Declare.
1694 * c-gimplify.c (c_genericize): Walk the function tree calling
1695 do_warn_duplicated_branches_r.
1696 * c-warn.c (expr_from_macro_expansion_r): New.
1697 (do_warn_duplicated_branches): New.
1698 (do_warn_duplicated_branches_r): New.
1699 * c.opt (Wduplicated-branches): New option.
1700
1701 2017-01-17 David Malcolm <dmalcolm@redhat.com>
1702
1703 PR c++/71497
1704 * c-indentation.c (warn_for_misleading_indentation): Use the past
1705 subjunctive in the note.
1706
1707 2017-01-17 Aldy Hernandez <aldyh@redhat.com>
1708
1709 PR c/79116
1710 * array-notation-common.c (cilkplus_extract_an_triplets): Convert
1711 start type to integer_type.
1712
1713 2017-01-16 Jakub Jelinek <jakub@redhat.com>
1714
1715 PR driver/49726
1716 * c.opt (gen-decls): Add Driver flag.
1717
1718 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
1719
1720 Revert:
1721 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
1722
1723 PR c++/71737
1724 * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
1725
1726 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
1727
1728 PR c++/71737
1729 * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
1730
1731 2017-01-12 Martin Sebor <msebor@redhat.com>
1732
1733 (-Wformat-overflow): ...to this.
1734
1735 2017-01-11 Martin Sebor <msebor@redhat.com>
1736
1737 PR c/78768
1738 * c.opt (-Walloca-larger-than, -Wformat-length, -Wformat-truncation):
1739 Also enable for LTO.
1740
1741 2017-01-10 Jason Merrill <jason@redhat.com>
1742
1743 Implement P0195R2, C++17 variadic using.
1744 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_variadic_using.
1745
1746 2017-01-09 Jakub Jelinek <jakub@redhat.com>
1747
1748 PR translation/79019
1749 PR translation/79020
1750 * c.opt (Wnormalized=): Fix typo in description.
1751
1752 2017-01-08 Martin Sebor <msebor@redhat.com>
1753
1754 PR middle-end/77708
1755 * c.opt (-Wformat-truncation): New option.
1756
1757 2017-01-06 Alexandre Oliva <aoliva@redhat.com>
1758
1759 * c-pretty-print.c (pp_c_tree_decl_identifier): Convert 16-bit
1760 value to unsigned short to fit in 4 hex digits without
1761 warnings.
1762
1763 2017-01-05 Eric Botcazou <ebotcazou@adacore.com>
1764
1765 * c.opt (fsso-struct): Add 'native' value.
1766
1767 2017-01-05 Martin Liska <mliska@suse.cz>
1768
1769 PR pch/78970
1770 * c-opts.c (c_common_post_options): Reject '-' filename for a precompiled
1771 header.
1772
1773 2017-01-04 Marek Polacek <polacek@redhat.com>
1774
1775 PR c++/64767
1776 * c.opt (Wpointer-compare): New option.
1777
1778 2017-01-04 Jakub Jelinek <jakub@redhat.com>
1779
1780 PR driver/78957
1781 * c.opt (fsso-struct=): Add RejectNegative.
1782
1783 2017-01-01 Jakub Jelinek <jakub@redhat.com>
1784
1785 Update copyright years.
1786
1787 2016-12-29 Martin Liska <mliska@suse.cz>
1788
1789 PR c/78933
1790 * c.opt (strong-eval-order): Add RejectNegative keyword.
1791
1792 2016-12-22 Jason Merrill <jason@redhat.com>
1793
1794 Implement P0522R0, matching of template template arguments.
1795 * c-cppbuiltin.c (c_cpp_builtins): Define
1796 __cpp_template_template_args.
1797
1798 2016-12-21 Jakub Jelinek <jakub@redhat.com>
1799
1800 PR bootstrap/78817
1801 * c-common.c (struct nonnull_arg_ctx): New type.
1802 (check_function_nonnull): Return bool instead of void. Use
1803 nonnull_arg_ctx as context rather than just location_t.
1804 (check_nonnull_arg): Adjust for the new context type, set
1805 warned_p to true if a warning has been diagnosed.
1806 (check_function_arguments): Return bool instead of void.
1807 * c-common.h (check_function_arguments): Adjust prototype.
1808
1809 2016-12-21 Jason Merrill <jason@redhat.com>
1810
1811 * c.opt (-fnew-ttp-matching): New flag.
1812 * c-opts.c (c_common_post_options): Default on if -std=c++1z.
1813
1814 2016-12-14 Martin Jambor <mjambor@suse.cz>
1815
1816 * c-omp.c: Include omp-general.h instead of omp-low.h.
1817 (c_finish_oacc_wait): Adjusted call to find_omp_clause to use its new
1818 name.
1819
1820 2016-12-14 Martin Sebor <msebor@redhat.com>
1821
1822 PR c/17308
1823 * c-common.c (check_nonnull_arg): Disable when optimization
1824 is enabled.
1825
1826 2016-12-12 Marek Polacek <polacek@redhat.com>
1827
1828 PR c++/78647
1829 * c-common.c (attribute_fallthrough_p): Return false for
1830 error_mark_node.
1831
1832 2016-12-08 Martin Sebor <msebor@redhat.com>
1833
1834 PR c/78284
1835 * c.opt (-Walloc-zero, -Walloc-size-larger-than): New options.
1836
1837 2016-12-08 Martin Sebor <msebor@redhat.com>
1838
1839 PR c/78165
1840 * c-pretty-print (pp_c_integer_constant): Avoid formatting type
1841 suffix.
1842
1843 2016-12-07 Martin Sebor <msebor@redhat.com>
1844
1845 PR c/53562
1846 PR middle-end/77784
1847 PR middle-end/78149
1848 PR middle-end/78138
1849 * c.opt (-Wstringop-overflow): New option.
1850
1851 2016-12-02 Maxim Ostapenko <m.ostapenko@samsung.com>
1852
1853 * c-attribs.c (asan odr indicator): New attribute.
1854 (handle_asan_odr_indicator_attribute): New function.
1855
1856 2016-11-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1857
1858 * c-common.c (c_common_nodes_and_builtins): Remove initialization of
1859 ptrdiff_type_node;
1860
1861 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
1862
1863 * c-common.c (excess_precision_mode_join): New.
1864 (c_ts18661_flt_eval_method): New.
1865 (c_c11_flt_eval_method): Likewise.
1866 (c_flt_eval_method): Likewise.
1867 * c-common.h (excess_precision_mode_join): New.
1868 (c_flt_eval_method): Likewise.
1869 * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): New.
1870 (cpp_iec_559_value): Call it.
1871 (c_cpp_builtins): Modify logic for __LIBGCC_*_EXCESS_PRECISION__,
1872 call c_flt_eval_method to set __FLT_EVAL_METHOD__ and
1873 __FLT_EVAL_METHOD_TS_18661_3__.
1874
1875 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
1876
1877 * c-opts.c (c_common_post_options): Add logic to handle the default
1878 case for -fpermitted-flt-eval-methods.
1879
1880 2016-11-23 Paolo Bonzini <bonzini@gnu.org>
1881
1882 * c.opt (Wexpansion-to-defined): New.
1883
1884 2016-11-23 Jakub Jelinek <jakub@redhat.com>
1885
1886 PR target/78451
1887 * c-pragma.c (handle_pragma_target): Don't replace
1888 current_target_pragma, but chainon the new args to the current one.
1889
1890 2016-11-22 Nathan Sidwell <nathan@acm.org>
1891
1892 * array-notation-common.c (cilkplus_extract_an_trplets): Fix
1893 indentation and formatting.
1894
1895 2016-11-21 Martin Sebor <msebor@redhat.com>
1896
1897 * c.opt (-fprintf-return-value): Enable by default.
1898
1899 2016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
1900
1901 PR c++/71973
1902 * c.opt (-Wbuiltin-declaration-mismatch): New warning.
1903 * c-common.c (c_common_nodes_and_builtins): Initialize
1904 const_tm_ptr_type_node.
1905
1906 2016-11-16 Marek Polacek <polacek@redhat.com>
1907
1908 PR c/78285
1909 * c-common.c (c_add_case_label): Turn error_at calls into inform.
1910
1911 2016-11-14 Jakub Jelinek <jakub@redhat.com>
1912
1913 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_structured_bindings.
1914
1915 2016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
1916 Richard Biener <rguenther@suse.de>
1917
1918 * c-common.h (c_common_resword): Add RID_GIMPLE, RID_PHI types.
1919 * c-common.h (enum rid): Add RID_GIMPLE, RID_PHI.
1920 * c.opt (fgimple): New option.
1921
1922 2016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1923
1924 PR c/35503
1925 * c-common.h (warn_for_restrict): Declare.
1926 * c-warn.c: Include gcc-rich-location.h.
1927 (warn_for_restrict): New function.
1928 * c-format.c (gcc_tdiag_char_table): Add entry for "Z" specifier.
1929 (gcc_cdiag_char_table): Likewise.
1930 (gcc_cxxdiag_char_table): Likewise.
1931 * c.opt (Wrestrict): New option.
1932
1933 2016-11-13 Eric Botcazou <ebotcazou@adacore.com>
1934
1935 * c-ada-spec.c (print_ada_declaration): For typedef declarations, look
1936 for nested types only if the type is a record or union and dump SLOC.
1937
1938 2016-11-09 Jason Merrill <jason@redhat.com>
1939
1940 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_template_auto.
1941
1942 2016-11-09 Jakub Jelinek <jakub@redhat.com>
1943
1944 * c-ubsan.c (ubsan_instrument_shift): Handle split
1945 -fsanitize=shift-base and -fsanitize=shift-exponent.
1946
1947 2016-11-07 Jason Merrill <jason@redhat.com>
1948
1949 * c.opt (Wc++1z-compat): New.
1950 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_noexcept_function_type.
1951
1952 2016-11-07 Martin Liska <mliska@suse.cz>
1953
1954 * c-warn.c (warn_for_unused_label): Save all labels used
1955 in goto or in &label.
1956
1957 2016-11-03 Jason Merrill <jason@redhat.com>
1958
1959 * c-cppbuiltin.c (c_cpp_builtins): Correct
1960 __cpp_inheriting_constructors.
1961
1962 2016-11-01 Jason Merrill <jason@redhat.com>
1963
1964 * c-cppbuiltin.c (c_cpp_builtins): Update
1965 __cpp_inheriting_constructors.
1966
1967 * c.opt (-fnew-inheriting-ctors): New.
1968 * c-opts.c: Default to on for ABI 11+.
1969
1970 2016-10-31 Jakub Jelinek <jakub@redhat.com>
1971
1972 PR c++/77948
1973 * c.opt (fext-numeric-literals): Add Var and Init.
1974 * c-opts.c (c_common_handle_option): Don't clear
1975 cpp_opts->ext_numeric_literals for -std=c++{11,14,1z}.
1976 (c_common_post_options): Clear it here if not set
1977 explicitly.
1978
1979 2016-10-28 Aldy Hernandez <aldyh@redhat.com>
1980
1981 PR debug/77773
1982 * c-pretty-print.c (simple_type_specifier): Do not dereference `t'
1983 if NULL.
1984
1985 2016-10-25 Jakub Jelinek <jakub@redhat.com>
1986
1987 * c-common.h (enum rid): Add RID_BUILTIN_LAUNDER.
1988 * c-common.c (c_common_reswords): Add __builtin_launder.
1989
1990 2016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
1991
1992 * c-common.c (c_common_truthvalue_conversion): Warn for
1993 multiplications in boolean context. Fix the quoting of '<<' and '<'
1994 in the shift warning.
1995
1996 2016-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
1997
1998 * c-common.c (c_common_truthvalue_conversion): Fix the comment.
1999
2000 2016-10-20 Jason Merrill <jason@redhat.com>
2001
2002 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_concepts value.
2003
2004 2016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
2005
2006 * c-common.c (c_common_truthvalue_conversion): Warn only for signed
2007 integer shift ops in boolean context.
2008
2009 2016-10-18 Aldy Hernandez <aldyh@redhat.com>
2010
2011 * c.opt (Walloca): New.
2012 (Walloca-larger-than=): New.
2013 (Wvla-larger-than=): New.
2014
2015 2016-10-17 Marek Polacek <polacek@redhat.com>
2016
2017 * c-warn.c (find_array_ref_with_const_idx_r): Remove parameter names.
2018 Return immediately when finding a match.
2019 (warn_tautological_cmp): Remove a boolean variable that is no longer
2020 needed.
2021
2022 2016-10-17 Marek Polacek <polacek@redhat.com>
2023
2024 * c-attribs.c: New file.
2025 * c-common.c: Move attributes handling to c-attribs.c.
2026 (get_nonnull_operand): No longer static.
2027 * c-common.h: Move the declarations from c-attribs.c to its own section.
2028
2029 2016-10-14 Jason Merrill <jason@redhat.com>
2030
2031 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_aggregate_bases
2032 and __cpp_deduction_guides.
2033
2034 2016-10-13 Jason Merrill <jason@redhat.com>
2035
2036 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_inline_variables.
2037
2038 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
2039
2040 * c-cppbuiltin.c: Include memmodel.h.
2041 * c-opts.c: Likewise.
2042 * c-pragma.c: Likewise.
2043 * c-warn.c: Likewise.
2044
2045 2016-10-12 Jakub Jelinek <jakub@redhat.com>
2046
2047 * c.opt (Wextra): Add as C/C++/ObjC/ObjC++ option.
2048 (Wimplicit-fallthrough=): Enable for these languages by -Wextra.
2049 * c-opts.c (sanitize_cpp_opts): Initialize
2050 cpp_opts->cpp_warn_implicit_fallthrough.
2051
2052 2016-10-11 Marek Polacek <polacek@redhat.com>
2053
2054 * c-common.c (warning_candidate_p): Change the return type to bool
2055 and return true/false instead of 1/0.
2056 (vector_mode_valid_p): Likewise.
2057
2058 2016-10-11 Marek Polacek <polacek@redhat.com>
2059
2060 * c-common.c (fold_for_warn): No longer static.
2061 (bool_promoted_to_int_p): Likewise.
2062 (c_common_get_narrower): Likewise.
2063 (constant_expression_warning): Move to c-warn.c.
2064 (constant_expression_error): Likewise.
2065 (overflow_warning): Likewise.
2066 (warn_logical_operator): Likewise.
2067 (find_array_ref_with_const_idx_r): Likewise.
2068 (warn_tautological_cmp): Likewise.
2069 (expr_has_boolean_operands_p): Likewise.
2070 (warn_logical_not_parentheses): Likewise.
2071 (warn_if_unused_value): Likewise.
2072 (strict_aliasing_warning): Likewise.
2073 (sizeof_pointer_memaccess_warning): Likewise.
2074 (check_main_parameter_types): Likewise.
2075 (conversion_warning): Likewise.
2076 (warnings_for_convert_and_check): Likewise.
2077 (match_case_to_enum_1): Likewise.
2078 (match_case_to_enum): Likewise.
2079 (c_do_switch_warnings): Likewise.
2080 (warn_for_omitted_condop): Likewise.
2081 (readonly_error): Likewise.
2082 (lvalue_error): Likewise.
2083 (invalid_indirection_error): Likewise.
2084 (warn_array_subscript_with_type_char): Likewise.
2085 (warn_about_parentheses): Likewise.
2086 (warn_for_unused_label): Likewise.
2087 (warn_for_div_by_zero): Likewise.
2088 (warn_for_memset): Likewise.
2089 (warn_for_sign_compare): Likewise.
2090 (do_warn_double_promotion): Likewise.
2091 (do_warn_unused_parameter): Likewise.
2092 (record_locally_defined_typedef): Likewise.
2093 (maybe_record_typedef_use): Likewise.
2094 (maybe_warn_unused_local_typedefs): Likewise.
2095 (maybe_warn_bool_compare): Likewise.
2096 (maybe_warn_shift_overflow): Likewise.
2097 (warn_duplicated_cond_add_or_warn): Likewise.
2098 (diagnose_mismatched_attributes): Likewise.
2099 * c-common.h: Move the declarations from c-warn.c to its own section.
2100 * c-warn.c: New file.
2101
2102 2016-10-08 Jason Merrill <jason@redhat.com>
2103
2104 * c-common.c (c_common_truthvalue_conversion): Don't distribute
2105 into COND_EXPR in C++.
2106
2107 2016-10-08 Jakub Jelinek <jakub@redhat.com>
2108
2109 * c-lex.c (c_lex_with_flags) <case CPP_COMMENT>: For CPP_COMMENT
2110 token with PREV_FALLTHROUGH, skip all following CPP_PADDING and
2111 CPP_COMMENT tokens and set add_flags to PREV_FALLTHROUGH afterwards.
2112
2113 2016-10-07 Jakub Jelinek <jakub@redhat.com>
2114
2115 Implement LWG2296 helper intrinsic
2116 * c-common.h (enum rid): Add RID_ADDRESSOF.
2117 * c-common.c (c_common_reswords): Add __builtin_addressof.
2118
2119 2016-10-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
2120
2121 PR c++/77700
2122 * c-common.c (c_common_truthvalue_conversion): Warn also for
2123 suspicious enum values in boolean context.
2124
2125 2016-10-06 Jakub Jelinek <jakub@redhat.com>
2126
2127 Implement P0258R2 - helper for C++17
2128 std::has_unique_object_representations trait
2129 * c-common.h (enum rid): Add RID_HAS_UNIQUE_OBJ_REPRESENTATIONS.
2130 * c-common.c (c_common_reswords): Add
2131 __has_unique_object_representations.
2132
2133 2016-10-05 Jakub Jelinek <jakub@redhat.com>
2134
2135 PR sanitizer/66343
2136 * c-ubsan.c (ubsan_instrument_return): Don't call
2137 initialize_sanitizer_builtins here.
2138
2139 2016-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
2140
2141 * c-common.c (c_common_truthvalue_conversion): Warn also for suspicious
2142 conditional expression in boolean context when only one arm is
2143 non-boolean.
2144
2145 2016-10-05 Jakub Jelinek <jakub@redhat.com>
2146
2147 PR sanitizer/77823
2148 * c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0
2149 is not integral.
2150
2151 * c-common.c (c_common_reswords): Update comment for C++11.
2152
2153 2016-10-04 Jason Merrill <jason@redhat.com>
2154
2155 * c-common.c (make_tree_vector_from_ctor): New.
2156 * c-common.h: Declare it.
2157
2158 2016-10-04 Jakub Jelinek <jakub@redhat.com>
2159
2160 * c-cppbuiltin.c (c_cpp_builtins): Don't define
2161 __LIBGCC_JCR_SECTION_NAME__.
2162
2163 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
2164
2165 * c-common.c (c_common_truthvalue_conversion): Warn for suspicious
2166 left shift in boolean context.
2167
2168 2016-09-29 Jakub Jelinek <jakub@redhat.com>
2169
2170 Implement P0001R1 - C++17 removal of register storage class specifier
2171 * c.opt (Wregister): New warning.
2172 * c-opts.c (c_common_post_options): Enable -Wregister by
2173 default for C++17.
2174
2175 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
2176
2177 * c-opts.c (c_common_post_options): Remove special case for
2178 TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard
2179 in C++.
2180
2181 2016-09-27 Jakub Jelinek <jakub@redhat.com>
2182
2183 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for
2184 -std=c++1z.
2185
2186 * c-ada-spec.c (print_ada_declaration): Remove break after return.
2187
2188 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
2189
2190 * c-common.c: Include memmodel.h.
2191
2192 2016-09-26 Marek Polacek <polacek@redhat.com>
2193
2194 * c-lex.c (c_common_has_attribute): Handle attribute fallthrough.
2195
2196 2016-09-26 Marek Polacek <polacek@redhat.com>
2197
2198 PR c/7652
2199 * c-common.c (c_common_attribute_table): Add fallthrough attribute.
2200 (handle_fallthrough_attribute): New function.
2201 (attribute_fallthrough_p): New function.
2202 * c-common.h (attribute_fallthrough_p): Declare.
2203
2204 2016-09-24 Marek Polacek <polacek@redhat.com>
2205
2206 PR c/77490
2207 * c.opt (Wbool-operation): New.
2208
2209 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
2210
2211 * c-common.c (c_common_truthvalue_conversion): Inhibit
2212 Wint-in-bool-context warning with from_macro_definition_at.
2213 Mention the expression will always evaluate to true.
2214
2215 2016-09-21 Martin Sebor <msebor@redhat.com>
2216
2217 PR bootstrap/77676
2218 * c.opt (fprintf-return-value): Temporarily initialize to zero
2219 to unblock bootstrap failures.
2220
2221 2016-09-21 Jakub Jelinek <jakub@redhat.com>
2222
2223 PR c++/77651
2224 * c.opt (Waligned-new=): Add RejectNegative.
2225 (faligned-new=): Likewise. Spelling fix - change
2226 aligned_new_threshhold to aligned_new_threshold.
2227 * c-cppbuiltin.c (c_cpp_builtins): Change aligned_new_threshhold
2228 to aligned_new_threshold.
2229
2230 2016-09-20 Martin Sebor <msebor@redhat.com>
2231
2232 PR middle-end/49905
2233 * c.opt: Add -Wformat-length and -fprintf-return-value.
2234
2235 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
2236
2237 PR c++/77434
2238 * c.opt (Wint-in-bool-context): New warning.
2239 * c-common.c (c_common_truthvalue_conversion): Warn on integer
2240 constants in boolean context.
2241
2242 2016-09-19 Joseph Myers <joseph@codesourcery.com>
2243
2244 * c-common.c (max_align_t_align): Also consider alignment of
2245 float128_type_node.
2246
2247 2016-09-15 Jason Merrill <jason@redhat.com>
2248
2249 * c-common.c (check_cxx_fundamental_alignment_constraints): Check
2250 DECL_EXTERNAL.
2251
2252 2016-09-14 Jason Merrill <jason@redhat.com>
2253
2254 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
2255 limit FIELD_DECL, either.
2256
2257 2016-09-14 Marek Polacek <polacek@redhat.com>
2258
2259 * c-common.c (c_common_truthvalue_conversion): Use false instead of 0.
2260 * c-common.h (build_unary_op): Change nonconvert parameter type to bool.
2261 * c-omp.c (c_finish_omp_atomic): Use false instead of 0.
2262
2263 2016-09-13 David Malcolm <dmalcolm@redhat.com>
2264
2265 * c-common.c (warn_logical_not_parentheses): Replace
2266 rich_location::add_fixit_insert calls with add_fixit_insert_before
2267 and add_fixit_insert_after, eliminating the "next_loc" calculation.
2268
2269 2016-09-13 Jason Merrill <jason@redhat.com>
2270 Tom de Vries <tom@codesourcery.com>
2271
2272 PR c++/77427
2273 * c-common.c (set_underlying_type): Don't treat array as builtin type.
2274
2275 2016-09-13 Jason Merrill <jason@redhat.com>
2276
2277 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
2278 limit types at all.
2279
2280 2016-09-12 Jason Merrill <jason@redhat.com>
2281
2282 * c-common.c (check_cxx_fundamental_alignment_constraints): Fix
2283 bit/byte confusion, allow large alignment for types.
2284
2285 2016-09-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
2286
2287 PR c++/77496
2288 * c-common.c (warn_for_omitted_condop): Also warn for boolean data.
2289
2290 2016-09-12 David Malcolm <dmalcolm@redhat.com>
2291
2292 PR c/72858
2293 * c-format.c (argument_parser::check_argument_type): Add params
2294 "type_start" and "conversion_char". Use the former to generate
2295 offset_to_type_start and pass it and conversion_char to
2296 check_format_types.
2297 (check_format_info_main): Capture the start of the type
2298 information as "type_start", and pass it an format_char
2299 to arg_parser.check_argument_type.
2300 (check_format_types): Provide an example in the leading comment.
2301 Add params "offset_to_type_start" and "conversion_char"; pass
2302 them to format_type_warning calls.
2303 (test_get_modifier_for_format_len): Likewise.
2304 (matching_type_p): New function.
2305 (get_format_for_type): Add param "conversion_char" and move
2306 implementation into...
2307 (get_format_for_type_1): ...new function, called twice.
2308 Use new function matching_type_p rather than checking for
2309 TYPE_CANONICAL equality.
2310 (get_corrected_substring): New function.
2311 (format_type_warning): Provide an example in the leading comment.
2312 Add params "offset_to_type_start" and "conversion_char". Replace
2313 call to get_format_for_type with call to get_corrected_substring
2314 and move rejection of hints for widths/precisions there.
2315 (assert_format_for_type_streq): Add param "conversion_char".
2316 (ASSERT_FORMAT_FOR_TYPE_STREQ): Add param CONVERSION_CHAR.
2317 (test_get_format_for_type_printf): Add conversion chars to the
2318 tests, adding coverage for various combinations of integer
2319 vs double conversions, and for preserving octal and hexadecimal
2320 conversions.
2321 (test_get_format_for_type_scanf): Add conversion chars to the
2322 tests.
2323
2324 2016-09-10 Tom de Vries <tom@codesourcery.com>
2325
2326 PR C/71602
2327 * c-common.c (build_va_arg): Handle more strict
2328 targetm.canonical_va_list_type. Replace first argument type error with
2329 assert.
2330
2331 2016-09-09 Martin Sebor <msebor@redhat.com>
2332
2333 PR c/77520
2334 PR c/77521
2335 * c-format.c (argument_parser::find_format_char_info): Use %qc
2336 format directive unconditionally.
2337
2338 2016-09-09 Jason Merrill <jason@redhat.com>
2339
2340 Implement C++17 new of over-aligned types.
2341 * c.opt: Add -faligned-new and -Waligned-new.
2342 * c-common.c (max_align_t_align): Split out from...
2343 (cxx_fundamental_alignment_p): ...here.
2344 * c-common.h: Declare it.
2345 * c-cppbuiltin.c (c_cpp_builtins): Handle aligned new.
2346
2347 2016-09-09 Joseph Myers <joseph@codesourcery.com>
2348
2349 * c-cppbuiltin.c (builtin_define_type_width): New function.
2350 (builtin_define_stdint_macros, c_cpp_builtins): Define type width
2351 macros.
2352
2353 2016-09-07 David Malcolm <dmalcolm@redhat.com>
2354
2355 * c-common.c (get_cpp_ttype_from_string_type): Handle being passed
2356 a POINTER_TYPE.
2357 (substring_loc::get_location): Move to substring-locations.c,
2358 keeping implementation as...
2359 (c_get_substring_location): New function, from the above, reworked
2360 to use accessors rather than member lookup.
2361 * c-common.h (class substring_loc): Move to substring-locations.h,
2362 replacing with a forward decl.
2363 (c_get_substring_location): New decl.
2364 * c-format.c: Include "substring-locations.h".
2365 (format_warning_va): Move to substring-locations.c.
2366 (format_warning_at_substring): Likewise.
2367
2368 2016-09-06 Martin Sebor <msebor@redhat.com>
2369
2370 PR c/77336
2371 * c-format.c (check_function_format): Avoid issuing warnings for
2372 functions unless they call format functions with non-constant
2373 format strings.
2374
2375 2016-09-06 Richard Biener <rguenther@suse.de>
2376
2377 PR c/77450
2378 * c-common.c (c_common_mark_addressable_vec): Handle
2379 COMPOUND_LITERAL_EXPR.
2380
2381 2016-09-05 Marek Polacek <polacek@redhat.com>
2382
2383 PR c/77423
2384 * c-common.c (bool_promoted_to_int_p): New function.
2385 (expr_has_boolean_operands_p): New function.
2386 (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p.
2387 (maybe_warn_bool_compare): Use bool_promoted_to_int_p.
2388
2389 2016-09-04 Tom de Vries <tom@codesourcery.com>
2390
2391 revert:
2392 2016-08-29 Tom de Vries <tom@codesourcery.com>
2393
2394 * c-common.c (build_va_arg): Replace first argument type error
2395 with assert.
2396
2397 2016-09-02 Jakub Jelinek <jakub@redhat.com>
2398
2399 PR c/65467
2400 * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions.
2401 (c_finish_omp_for): Reject _Atomic qualified iterators.
2402
2403 2016-09-01 Martin Sebor <msebor@redhat.com>
2404
2405 * c-ada-spec.c (dump_ada_function_declaration): Increase buffer
2406 size to guarantee it fits the output of the formatted function
2407 regardless of its arguments.
2408
2409 2016-09-01 Marek Polacek <polacek@redhat.com>
2410
2411 PR c/7652
2412 * c-common.c (resolve_overloaded_builtin): Fix formatting. Add
2413 FALLTHRU comments.
2414
2415 2016-08-29 Marek Polacek <polacek@redhat.com>
2416
2417 PR c/77292
2418 * c-common.c (warn_logical_not_parentheses): Don't warn for
2419 a comparison or a logical operator.
2420
2421 2016-08-29 Tom de Vries <tom@codesourcery.com>
2422
2423 * c-common.c (build_va_arg): Fix type comparison assert.
2424
2425 2016-08-29 Tom de Vries <tom@codesourcery.com>
2426
2427 * c-common.c (build_va_arg): Replace first argument type error
2428 with assert.
2429
2430 2016-08-29 Tom de Vries <tom@codesourcery.com>
2431
2432 PR c/77398
2433 * c-common.c (build_va_arg): Add first argument error. Build va_arg
2434 with error_mark_node as va_list instead of with illegal va_list.
2435
2436 2016-08-25 Marek Polacek <polacek@redhat.com>
2437 David Malcolm <dmalcolm@redhat.com>
2438
2439 * c-common.c (warn_logical_not_parentheses): Print fixit hints.
2440 * c-common.h (warn_logical_not_parentheses): Update declaration.
2441
2442 2016-08-22 Marek Polacek <polacek@redhat.com>
2443
2444 PR c++/77321
2445 * c-common.c (warn_for_memset): Check type for null.
2446
2447 2016-08-22 Joseph Myers <joseph@codesourcery.com>
2448
2449 * c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and
2450 _FloatNx types for suffixes for built-in functions.
2451
2452 2016-08-19 Joseph Myers <joseph@codesourcery.com>
2453
2454 PR c/32187
2455 * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32)
2456 (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X)
2457 (RID_FLOAT128X): New enum rid values.
2458 (CASE_RID_FLOATN_NX): New macro.
2459 * c-common.c (c_common_reswords): Add _FloatN and _FloatNx
2460 keywords.
2461 (c_common_type_for_mode): Check for _FloatN and _FloatNx and
2462 corresponding complex types.
2463 (c_common_nodes_and_builtins): For non-C++, register _FloatN and
2464 _FloatNx and corresponding complex types.
2465 (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX.
2466 * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN
2467 and _FloatNx types for the widest type for determining
2468 DECIMAL_DIG. Define __LDBL_DECIMAL_DIG__ as well as
2469 __DECIMAL_DIG__ for long double. Handle FMA_SUFFIX being NULL.
2470 (c_cpp_builtins): Call builtin_define_float_constants for _FloatN
2471 and _FloatNx types.
2472 * c-lex.c (interpret_float): Handle _FloatN and _FloatNx
2473 constants.
2474 * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and
2475 _FloatNx types.
2476
2477 2016-08-18 David Malcolm <dmalcolm@redhat.com>
2478
2479 * c-opts.c (c_diagnostic_finalizer): Update for change to
2480 diagnostic_show_locus.
2481
2482 2016-08-18 David Malcolm <dmalcolm@redhat.com>
2483
2484 * c-common.c: Include "spellcheck.h".
2485 (cb_get_suggestion): New function.
2486 * c-common.h (cb_get_suggestion): New decl.
2487 * c-lex.c (init_c_lex): Initialize cb->get_suggestion to
2488 cb_get_suggestion.
2489
2490 2016-08-18 Marek Polacek <polacek@redhat.com>
2491
2492 PR c/71514
2493 * c-common.c (get_atomic_generic_size): Disallow pointer-to-function
2494 and pointer-to-VLA.
2495
2496 2016-08-16 David Malcolm <dmalcolm@redhat.com>
2497
2498 PR c/72857
2499 * c-common.c (substring_loc::get_range): Rename to...
2500 (substring_loc::get_location): ...this, converting param from a
2501 source_range * to a location_t *. Call
2502 get_source_location_for_substring rather than
2503 get_source_range_for_substring, and pass in m_caret_idx.
2504 * c-common.h (substring_loc::substring_loc): Add param "caret_idx".
2505 (substring_loc::get_range): Replace with...
2506 (substring_loc::get_location): ...this.
2507 (substring_loc::set_caret_index): New method.
2508 (substring_loc): Add field m_caret_idx.
2509 * c-format.c (format_warning_va): Update for above changes.
2510 Rename local "substring_loc" to "fmt_substring_loc" to avoid
2511 clashing with type name.
2512 (format_warning_at_char): Add caret_idx param to substring_loc ctor.
2513 (check_argument_type): Likewise.
2514 (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc"
2515 Use a copy when emitting warnings, setting the caret index from TYPE.
2516
2517 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
2518 Arnaud Charlet <charlet@adacore.com>
2519
2520 * c-ada-spec.c (dump_number): New function.
2521 (handle_escape_character): Likewise.
2522 (print_ada_macros): Add handling of constant integers and strings.
2523
2524 2016-08-12 Marek Polacek <polacek@redhat.com>
2525
2526 PR c/7652
2527 * c-common.c (scalar_to_vector): Adjust fall through comment.
2528 * c-opts.c (c_common_handle_option): Likewise.
2529 * c-pragma.c (handle_pragma_pack): Add FALLTHRU.
2530 * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust
2531 fall through comment.
2532 * cilk.c (extract_free_variables): Add FALLTHRU.
2533
2534 2016-08-10 Jason Merrill <jason@redhat.com>
2535
2536 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
2537
2538 2016-08-09 Jason Merrill <jason@redhat.com>
2539
2540 * c-common.c (c_common_attribute_table): vector_size affects type
2541 identity.
2542
2543 2016-08-09 Marek Polacek <polacek@redhat.com>
2544
2545 PR c/7652
2546 * c-ada-spec.c (dump_generic_ada_node): Add return.
2547
2548 2016-08-09 Jason Merrill <jason@redhat.com>
2549
2550 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for
2551 C++17 constexpr lambdas.
2552
2553 2016-08-08 David Malcolm <dmalcolm@redhat.com>
2554
2555 PR c/64955
2556 * c-common.h (selftest::c_format_c_tests): New declaration.
2557 (selftest::run_c_tests): New declaration.
2558 * c-format.c: Include "selftest.h.
2559 (format_warning_va): Add param "corrected_substring" and use
2560 it to add a replacement fix-it hint.
2561 (format_warning_at_substring): Likewise.
2562 (format_warning_at_char): Update for new param of
2563 format_warning_va.
2564 (argument_parser::check_argument_type): Pass "fki" to
2565 check_format_types.
2566 (check_format_types): Add param "fki" and pass it to
2567 format_type_warning.
2568 (deref_n_times): New function.
2569 (get_modifier_for_format_len): New function.
2570 (selftest::test_get_modifier_for_format_len): New function.
2571 (get_format_for_type): New function.
2572 (format_type_warning): Add param "fki" and use it to attempt
2573 to provide hints for argument types when calling
2574 format_warning_at_substring.
2575 (selftest::get_info): New function.
2576 (selftest::assert_format_for_type_streq): New function.
2577 (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro.
2578 (selftest::test_get_format_for_type_printf): New function.
2579 (selftest::test_get_format_for_type_scanf): New function.
2580 (selftest::c_format_c_tests): New function.
2581
2582 2016-08-08 David Malcolm <dmalcolm@redhat.com>
2583
2584 PR c/52952
2585 * c-format.c: Include "diagnostic.h".
2586 (location_column_from_byte_offset): Delete.
2587 (location_from_offset): Delete.
2588 (format_warning_va): New function.
2589 (format_warning_at_substring): New function.
2590 (format_warning_at_char): New function.
2591 (check_format_arg): Capture location of format_tree and pass to
2592 check_format_info_main.
2593 (argument_parser): Add fields "start_of_this_format" and
2594 "format_string_cst".
2595 (flag_chars_t::validate): Add param "format_string_cst". Convert
2596 warning_at call using location_from_offset to call to
2597 format_warning_at_char.
2598 (argument_parser::argument_parser): Add param "format_string_cst_"
2599 and use use it to initialize field "format_string_cst".
2600 Initialize new field "start_of_this_format".
2601 (argument_parser::read_format_flags): Convert warning_at call
2602 using location_from_offset to a call to format_warning_at_char.
2603 (argument_parser::read_any_format_left_precision): Likewise.
2604 (argument_parser::read_any_format_precision): Likewise.
2605 (argument_parser::read_any_other_modifier): Likewise.
2606 (argument_parser::find_format_char_info): Likewise, in three places.
2607 (argument_parser::parse_any_scan_set): Likewise, in one place.
2608 (argument_parser::handle_conversions): Likewise, in two places.
2609 (argument_parser::check_argument_type): Add param "fmt_param_loc"
2610 and use it to make a substring_loc. Pass the latter to
2611 check_format_types.
2612 (check_format_info_main): Add params "fmt_param_loc" and
2613 "format_string_cst". Convert warning_at calls using
2614 location_from_offset to calls to format_warning_at_char. Pass the
2615 new params to the arg_parser ctor. Pass "format_string_cst" to
2616 flag_chars.validate. Pass "fmt_param_loc" to
2617 arg_parser.check_argument_type.
2618 (check_format_types): Convert first param from a location_t
2619 to a const substring_loc & and rename to "fmt_loc". Attempt
2620 to extract the range of the relevant parameter and pass it
2621 to format_type_warning.
2622 (format_type_warning): Convert first param from a location_t
2623 to a const substring_loc & and rename to "fmt_loc". Add
2624 params "param_range" and "type". Replace calls to warning_at
2625 with calls to format_warning_at_substring.
2626
2627 2016-08-08 David Malcolm <dmalcolm@redhat.com>
2628
2629 * c-format.c (class flag_chars_t): New class.
2630 (struct length_modifier): New struct.
2631 (class argument_parser): New class.
2632 (flag_chars_t::flag_chars_t): New ctor.
2633 (flag_chars_t::has_char_p): New method.
2634 (flag_chars_t::add_char): New method.
2635 (flag_chars_t::validate): New method.
2636 (flag_chars_t::get_alloc_flag): New method.
2637 (flag_chars_t::assignment_suppression_p): New method.
2638 (argument_parser::argument_parser): New ctor.
2639 (argument_parser::read_any_dollar): New method.
2640 (argument_parser::read_format_flags): New method.
2641 (argument_parser::read_any_format_width): New method.
2642 (argument_parser::read_any_format_left_precision): New method.
2643 (argument_parser::read_any_format_precision): New method.
2644 (argument_parser::handle_alloc_chars): New method.
2645 (argument_parser::read_any_length_modifier): New method.
2646 (argument_parser::read_any_other_modifier): New method.
2647 (argument_parser::find_format_char_info): New method.
2648 (argument_parser::validate_flag_pairs): New method.
2649 (argument_parser::give_y2k_warnings): New method.
2650 (argument_parser::parse_any_scan_set): New method.
2651 (argument_parser::handle_conversions): New method.
2652 (argument_parser::check_argument_type): New method.
2653 (check_format_info_main): Introduce classes argument_parser
2654 and flag_chars_t, moving the code within the loop into methods
2655 of these classes. Make various locals "const".
2656
2657 2016-08-05 David Malcolm <dmalcolm@redhat.com>
2658
2659 * c-common.c: Include "substring-locations.h".
2660 (get_cpp_ttype_from_string_type): New function.
2661 (g_string_concat_db): New global.
2662 (substring_loc::get_range): New method.
2663 * c-common.h (g_string_concat_db): New declaration.
2664 (class substring_loc): New class.
2665 * c-lex.c (lex_string): When concatenating strings, capture the
2666 locations of all tokens using a new obstack, and record the
2667 concatenation locations within g_string_concat_db.
2668 * c-opts.c (c_common_init_options): Construct g_string_concat_db
2669 on the ggc-heap.
2670
2671 2016-07-29 Marek Polacek <polacek@redhat.com>
2672
2673 PR c/71926
2674 * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the
2675 parentheses warning.
2676
2677 PR c/71574
2678 * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL.
2679
2680 2016-07-28 Martin Liska <mliska@suse.cz>
2681
2682 PR gcov-profile/68025
2683 * c-common.c (handle_no_profile_instrument_function_attribute):
2684
2685 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
2686
2687 * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of
2688 BITS_PER_UNIT_LOG.
2689
2690 2016-07-25 Jason Merrill <jason@redhat.com>
2691
2692 PR c++/65970
2693 * c.opt (fconstexpr-loop-limit): New.
2694
2695 2016-07-22 Martin Sebor <msebor@redhat.com>
2696
2697 PR c++/71675
2698 * c-common.c (resolve_overloaded_builtin): Avoid converting
2699 __atomic_compare_exchange_n return type to that of what its
2700 first argument points to.
2701
2702 2016-07-22 Uros Bizjak <ubizjak@gmail.com>
2703
2704 * c-common.c: Use HOST_WIDE_INT_M1U instead of
2705 ~(unsigned HOST_WIDE_INT) 0.
2706
2707 2016-07-22 Martin Liska <mliska@suse.cz>
2708
2709 PR gcov-profile/69028
2710 PR gcov-profile/62047
2711 * cilk.c (create_cilk_helper_decl): Set location of a new decl
2712 to the current_function_decl.
2713
2714 2016-07-21 Jason Merrill <jason@redhat.com>
2715
2716 PR c++/65168
2717 * c-common.c (c_common_truthvalue_conversion): Check
2718 c_inhibit_evaluation_warnings for warning about address of
2719 reference.
2720
2721 2016-07-20 David Malcolm <dmalcolm@redhat.com>
2722
2723 * c-common.h (lookup_name_fuzzy): Convert return type from tree to
2724 const char *.
2725
2726 2016-07-15 Jason Merrill <jason@redhat.com>
2727
2728 * c-opts.c (c_common_post_options): Update -fabi-version default to 11.
2729
2730 2016-07-15 Jakub Jelinek <jakub@redhat.com>
2731
2732 PR c/71858
2733 * c-common.h (enum lookup_name_fuzzy_kind): Add
2734 FUZZY_LOOKUP_FUNCTION_NAME.
2735
2736 2016-07-08 Jason Merrill <jason@redhat.com>
2737
2738 P0145: Refining Expression Order for C++.
2739 * c.opts (-fargs-in-order): Rename to -fstrong-eval-order.
2740 * c-opts.c: Adjust.
2741
2742 2016-07-05 Markus Trippelsdorf <markus@trippelsdorf.de>
2743
2744 PR c++/71214
2745 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
2746
2747 2016-06-29 Thomas Schwinge <thomas@codesourcery.com>
2748
2749 * c-pragma.h (enum pragma_kind): Rename
2750 PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE. Adjust all
2751 users.
2752
2753 2016-06-29 Richard Biener <rguenther@suse.de>
2754
2755 PR middle-end/71002
2756 * c-common.c (c_common_get_alias_set): Remove union type punning case.
2757
2758 2016-06-24 Jason Merrill <jason@redhat.com>
2759
2760 P0145R2: Refining Expression Order for C++.
2761 * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of
2762 MODIFY_EXPR.
2763
2764 2016-06-24 Jakub Jelinek <jakub@redhat.com>
2765
2766 * c-common.c (check_builtin_function_arguments): Require last
2767 argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type.
2768 Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW
2769 if the last argument is pointer to enumerated or boolean type.
2770
2771 2016-06-22 David Malcolm <dmalcolm@redhat.com>
2772
2773 PR c/70339
2774 * c-common.h (enum lookup_name_fuzzy_kind): New enum.
2775 (lookup_name_fuzzy): New prototype.
2776
2777 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
2778
2779 * c-common.c (get_source_date_epoch): Use int64_t instead of long long.
2780
2781 2016-06-14 Jason Merrill <jason@redhat.com>
2782
2783 P0145R2: Refining Expression Order for C++.
2784 * c.opt (fargs-in-order): New.
2785 * c-opts.c (c_common_post_options): Adjust flag_args_in_order.
2786
2787 2016-06-13 Jakub Jelinek <jakub@redhat.com>
2788
2789 PR sanitizer/71498
2790 * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
2791 all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
2792
2793 PR preprocessor/71183
2794 * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch
2795 to cb_get_source_date_epoch.
2796
2797 2016-06-10 Jakub Jelinek <jakub@redhat.com>
2798
2799 PR c/68657
2800 * c.opt (Wpsabi): Add Warning flag.
2801
2802 2016-06-10 Martin Sebor <msebor@redhat.com>
2803
2804 PR c/71392
2805 * c-common.c (handle_nonnull_attribute): Accept
2806 the nonnull attribute in type-generic builtins.
2807
2808 2016-06-09 Martin Sebor <msebor@redhat.com>
2809
2810 PR c/70883
2811 * c-common.c (builtin_function_validate_nargs): Make text of error
2812 message consistent with others like it.
2813
2814 2016-06-08 Martin Sebor <msebor@redhat.com>
2815 Jakub Jelinek <jakub@redhat.com>
2816
2817 PR c++/70507
2818 PR c/68120
2819 * c-common.c (check_builtin_function_arguments): Handle
2820 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
2821
2822 2016-06-08 Richard Biener <rguenther@suse.de>
2823
2824 * c-common.c (parse_optimize_options): Improve diagnostic messages.
2825
2826 2016-06-07 Richard Biener <rguenther@suse.de>
2827
2828 PR c/61564
2829 * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
2830 options and warn about others.
2831
2832 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
2833
2834 * c-common.c (get_source_date_epoch): Rename to
2835 cb_get_source_date_epoch.
2836 * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
2837 message when the parsing fails. Use error_at instead of fatal_error.
2838 * c-common.h (get_source_date_epoch): Rename to
2839 cb_get_source_date_epoch.
2840 * c-common.h (cb_get_source_date_epoch): Prototype.
2841 * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
2842 * c-common.h (c_omp_region_type): Remove trailing comma.
2843 * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
2844 * c-lex.c (c_lex_with_flags): Remove initialization of
2845 pfile->source_date_epoch.
2846
2847 2016-05-30 Jakub Jelinek <jakub@redhat.com>
2848
2849 PR c++/71349
2850 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
2851 C_OMP_CLAUSE_SPLIT_TARGET. Put OMP_CLAUSE_NOWAIT to
2852 C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
2853 instead of C_OMP_CLAUSE_SPLIT_FOR.
2854
2855 2016-05-24 Richard Biener <rguenther@suse.de>
2856
2857 PR middle-end/70434
2858 PR c/69504
2859 * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
2860 (convert_vector_to_array_for_subscript): ... this.
2861 * c-common.c (convert_vector_to_pointer_for_subscript): Use a
2862 VIEW_CONVERT_EXPR to an array type. Rename to ...
2863 (convert_vector_to_array_for_subscript): ... this.
2864
2865 2016-05-12 Marek Polacek <polacek@redhat.com>
2866
2867 PR c/70756
2868 * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
2869 size_in_bytes and pass LOC to it.
2870
2871 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
2872
2873 PR c/43651
2874 * c.opt (Wduplicate-decl-specifier): New option.
2875
2876 2016-05-11 Marek Polacek <polacek@redhat.com>
2877
2878 PR c++/71024
2879 * c-common.c (diagnose_mismatched_attributes): New function.
2880 * c-common.h (diagnose_mismatched_attributes): Declare.
2881
2882 2016-05-04 Marek Polacek <polacek@redhat.com>
2883
2884 * c.opt (Wdangling-else): New option.
2885
2886 2016-05-03 Marek Polacek <polacek@redhat.com>
2887
2888 PR c/70859
2889 * c-common.c (builtin_function_validate_nargs): Add location
2890 parameter. Use it.
2891 (check_builtin_function_arguments): Add location and arguments
2892 parameters. Use them.
2893 * c-common.h (check_builtin_function_arguments): Update declaration.
2894
2895 2016-05-03 Richard Biener <rguenther@suse.de>
2896
2897 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
2898 allow call args to gimplify to SSA names.
2899
2900 2016-05-03 Marek Polacek <polacek@redhat.com>
2901
2902 * c-common.h (enum c_omp_region_type): Remove stray comma.
2903
2904 2016-05-02 Cesar Philippidis <cesar@codesourcery.com>
2905
2906 * c-common.h (enum c_omp_region_type): Define.
2907
2908 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
2909
2910 * c-common.c (shorten_compare): Use wi::to_wide.
2911
2912 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
2913
2914 PR middle-end/70626
2915 * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
2916 * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
2917 reduction clauses in acc parallel loops.
2918
2919 2016-04-29 Marek Polacek <polacek@redhat.com>
2920
2921 PR c/70852
2922 * c-common.c (warn_for_memset): Check domain before accessing it.
2923
2924 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
2925
2926 PR/69089
2927 * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
2928 "aligned" attribute.
2929
2930 2016-04-28 Jason Merrill <jason@redhat.com>
2931
2932 * c-lex.c (c_common_has_attribute): Handle nodiscard.
2933
2934 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
2935 Matthias Klose <doko@debian.org>
2936
2937 * c-common.c (get_source_date_epoch): New function, gets the environment
2938 variable SOURCE_DATE_EPOCH and parses it as long long with error
2939 handling.
2940 * c-common.h (get_source_date_epoch): Prototype.
2941 * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
2942
2943 2015-04-27 Ryan Burn <contact@rnburn.com>
2944
2945 PR c++/69024
2946 PR c++/68997
2947 * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
2948 (cilk_recognize_spawn): Renamed from recognize_spawn and change to
2949 external linkage.
2950 (cilk_detect_and_unwrap): Corresponding changes.
2951 (extract_free_variables): Don't extract free variables from
2952 AGGR_INIT_EXPR slot.
2953 * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
2954 (cilk_recognize_spawn): Likewise.
2955
2956 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
2957
2958 * c.opt (Wmemset-elt-size): New option.
2959 * c-common.c (warn_for_memset): New function.
2960 * c-common.h (warn_for_memset): Declare.
2961
2962 2016-04-25 Jason Merrill <jason@redhat.com>
2963
2964 * c-common.c (handle_unused_attribute): Accept CONST_DECL.
2965 No longer static.
2966 * c-common.h: Declare it.
2967 * c-lex.c (c_common_has_attribute): Add maybe_unused.
2968
2969 2016-04-22 Jason Merrill <jason@redhat.com>
2970
2971 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
2972
2973 2016-04-20 Ilya Verbin <ilya.verbin@intel.com>
2974
2975 PR c++/69363
2976 * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
2977 * c-common.h (c_finish_cilk_clauses): Remove declaration.
2978
2979 2016-04-18 Michael Matz <matz@suse.de>
2980
2981 * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
2982 and SET_DECL_ALIGN.
2983
2984 2016-04-17 Eric Botcazou <ebotcazou@adacore.com>
2985
2986 * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
2987 (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
2988 to incomplete types.
2989 (dump_nested_type): Remove redundant tests and tidy up.
2990 (print_ada_declaration): Also set TREE_VISITED on the declaration of
2991 a type which is the typedef of an original type.
2992
2993 2016-04-15 Marek Polacek <polacek@redhat.com>
2994
2995 PR c/70651
2996 * c-common.c (build_va_arg): Change two asserts into errors and return
2997 error_mark_node.
2998
2999 2016-04-13 Marek Polacek <polacek@redhat.com>
3000
3001 PR c++/70639
3002 * c-indentation.c (should_warn_for_misleading_indentation): Bail out
3003 for switch statements, too.
3004
3005 2016-03-28 Jason Merrill <jason@redhat.com>
3006
3007 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
3008
3009 2016-03-23 Marek Polacek <polacek@redhat.com>
3010
3011 PR c++/69884
3012 * c.opt (Wignored-attributes): New option.
3013
3014 2016-03-22 David Malcolm <dmalcolm@redhat.com>
3015
3016 PR c/69993
3017 * c-indentation.c (warn_for_misleading_indentation): Rewrite the
3018 diagnostic text, reversing the order of the warning and note so
3019 that they appear in source order.
3020
3021 2016-03-17 Marek Polacek <polacek@redhat.com>
3022
3023 PR c/69407
3024 * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
3025 operations.
3026
3027 2016-03-14 Jason Merrill <jason@redhat.com>
3028
3029 * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
3030
3031 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
3032
3033 2016-03-09 Richard Biener <rguenther@suse.de>
3034
3035 PR c/70143
3036 * c-common.c (strict_aliasing_warning): Add back
3037 alias_sets_conflict_p check.
3038
3039 2016-03-08 Jason Merrill <jason@redhat.com>
3040
3041 * c-opts.c (set_std_cxx1z): Don't enable concepts.
3042
3043 2016-03-04 David Malcolm <dmalcolm@redhat.com>
3044
3045 PR c/68187
3046 * c-indentation.c (get_visual_column): Move code to determine next
3047 tab stop to...
3048 (next_tab_stop): ...this new function.
3049 (line_contains_hash_if): Delete function.
3050 (detect_preprocessor_logic): Delete function.
3051 (get_first_nws_vis_column): New function.
3052 (detect_intervening_unindent): New function.
3053 (should_warn_for_misleading_indentation): Replace call to
3054 detect_preprocessor_logic with a call to
3055 detect_intervening_unindent.
3056
3057 2016-03-04 David Malcolm <dmalcolm@redhat.com>
3058
3059 PR c/68187
3060 * c-indentation.c (should_warn_for_misleading_indentation): When
3061 suppressing warnings about cases where the guard and body are on
3062 the same column, only use the first non-whitespace column in place
3063 of the guard token column when dealing with "else" clauses.
3064 When rejecting aligned BODY and NEXT, loosen the requirement
3065 from equality with the first non-whitespace of guard to simply
3066 that they not be indented relative to it.
3067
3068 2016-03-04 Richard Biener <rguenther@suse.de>
3069
3070 PR c++/70054
3071 * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
3072 instead of alias_sets_conflict_p.
3073
3074 2016-03-01 Marek Polacek <polacek@redhat.com>
3075
3076 PR c++/69795
3077 * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
3078 any DECL.
3079
3080 2016-02-22 Martin Sebor <msebor@redhat.com>
3081
3082 PR middle-end/69780
3083 * c-common.c (check_builtin_function_arguments): Validate and
3084 reject invalid arguments to __builtin_alloca_with_align.
3085
3086 2016-02-20 Mark Wielaard <mjw@redhat.com>
3087
3088 PR c/28901
3089 * c.opt (Wunused-const-variable): Turn into Alias for...
3090 (Wunused-const-variable=): New option.
3091
3092 2016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
3093
3094 PR c++/69865
3095 * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
3096 here...
3097 (c_common_init_options): ...to here.
3098 (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
3099
3100 2016-02-19 Jakub Jelinek <jakub@redhat.com>
3101
3102 PR c++/69826
3103 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
3104 (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
3105 flag_preprocess_only.
3106
3107 2016-02-16 Jakub Jelinek <jakub@redhat.com>
3108
3109 PR c/69835
3110 * c.opt (Wnonnull-compare): Enable for -Wall.
3111
3112 2016-02-15 Jakub Jelinek <jakub@redhat.com>
3113
3114 PR c++/69797
3115 * c-common.c (sync_resolve_size): Diagnose too few arguments
3116 even when params is non-NULL empty vector.
3117
3118 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
3119
3120 PR target/60410
3121 * c.opt (fshort-double): Remove.
3122
3123 2016-02-05 Martin Sebor <msebor@redhat.com>
3124
3125 PR c++/69662
3126 * c.opt (Warning options): Update -Wplacement-new to take
3127 an optional argument.
3128
3129 2016-02-01 Jakub Jelinek <jakub@redhat.com>
3130
3131 PR preprocessor/69543
3132 PR c/69558
3133 * c-pragma.c (handle_pragma_diagnostic): Pass input_location
3134 instead of loc to control_warning_option.
3135
3136 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
3137
3138 * c.opt (fopenacc-dim=): New option.
3139
3140 2016-01-27 Ryan Burn <contact@rnburn.com>
3141
3142 PR cilkplus/69267
3143 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
3144 gimplify_arg. Removed superfluous post_p argument.
3145 * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
3146 superfluous post_p argument.
3147 * c-gimplify.c (c_gimplify_expr): Likewise.
3148
3149 2016-01-26 David Malcolm <dmalcolm@redhat.com>
3150
3151 PR other/69006
3152 * c-opts.c (c_diagnostic_finalizer): Replace invocation of
3153 pp_newline_and_flush with pp_flush.
3154
3155 2016-01-20 Martin Sebor <msebor@redhat.com>
3156
3157 PR c/69405
3158 * c-common.c (sync_resolve_size): Avoid printing diagnostic about
3159 an incompatible argument when the argument isn't a valid tree node.
3160
3161 2016-01-18 Jason Merrill <jason@redhat.com>
3162
3163 PR c++/68767
3164 * c-common.c (check_function_arguments_recurse): Fold the whole
3165 COND_EXPR, not just the condition.
3166
3167 2016-01-18 Tom de Vries <tom@codesourcery.com>
3168
3169 * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
3170 classify as loop clause.
3171
3172 2016-01-15 Jakub Jelinek <jakub@redhat.com>
3173
3174 PR bootstrap/68271
3175 * c-pragma.c (c_register_pragma_1): Adjust comment to note that
3176 C++ FE no longer has limit on number of pragmas.
3177
3178 2015-01-14 Ryan Burn <contact@rnburn.com>
3179
3180 PR c++/69048
3181 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
3182 to add missing cleanup point.
3183
3184 2016-01-14 David Malcolm <dmalcolm@redhat.com>
3185
3186 PR c++/68819
3187 * c-indentation.c (get_visual_column): Add location_t param.
3188 Handle the column number being zero by effectively disabling the
3189 warning, with an "inform".
3190 (should_warn_for_misleading_indentation): Add location_t argument
3191 for all uses of get_visual_column.
3192
3193 2016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
3194
3195 PR c++/69029
3196 * c-indentation.c (should_warn_for_misleading_indentation):
3197 Don't warn about do-while statements.
3198
3199 2016-01-07 Martin Sebor <msebor@redhat.com>
3200
3201 PR c/68966
3202 * c-common.c (sync_resolve_size): Reject first argument when it's
3203 a pointer to _Bool.
3204
3205 2016-01-05 David Malcolm <dmalcolm@redhat.com>
3206
3207 PR c/69122
3208 * c-indentation.c (get_visual_column): Remove default argument.
3209 (should_warn_for_misleading_indentation): For the multiline case,
3210 update call to get_visual_column for next_stmt_exploc so that it
3211 captures the location of the first non-whitespace character in the
3212 relevant line. Don't issue warnings if there is non-whitespace
3213 before the next statement.
3214
3215 2016-01-04 Jakub Jelinek <jakub@redhat.com>
3216
3217 Update copyright years.
3218
3219 2015-12-21 David Malcolm <dmalcolm@redhat.com>
3220
3221 * c-common.c (binary_op_error): Convert first param from
3222 location_t to rich_location * and use it when emitting an error.
3223 * c-common.h (binary_op_error): Convert first param from
3224 location_t to rich_location *.
3225
3226 2015-12-16 David Malcolm <dmalcolm@redhat.com>
3227
3228 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
3229 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
3230
3231 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
3232
3233 * c-common.c (c_common_attribute_table): Handle "omp declare target
3234 link" attribute.
3235
3236 2015-12-14 Jakub Jelinek <jakub@redhat.com>
3237
3238 PR c/68833
3239 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
3240
3241 2014-12-12 Tobias Burnus <burnus@net-b.de>
3242
3243 PR fortran/68815
3244 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
3245 specifiers (%d, %i,%u and %c).
3246
3247 2015-12-10 David Malcolm <dmalcolm@redhat.com>
3248
3249 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
3250
3251 2015-12-08 Jakub Jelinek <jakub@redhat.com>
3252
3253 PR c/48088
3254 PR c/68657
3255 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
3256 * c-pragma.c (handle_pragma_diagnostic): Adjust
3257 control_warning_option caller.
3258
3259 2015-12-07 David Malcolm <dmalcolm@redhat.com>
3260
3261 * c-common.c (c_cpp_error): Update for change to
3262 rich_location::set_range.
3263
3264 2015-12-04 Paolo Bonzini <bonzini@gnu.org>
3265
3266 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
3267 shifting 1 out of the sign bit.
3268
3269 2015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
3270
3271 * c-common.c (c_common_attribute_table[]): Update max arguments
3272 count for "simd" attribute.
3273 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
3274
3275 2015-12-03 Jakub Jelinek <jakub@redhat.com>
3276
3277 PR preprocessor/57580
3278 * c-ppoutput.c (print): Change printed field to bool.
3279 Move src_file last for smaller padding.
3280 (init_pp_output): Set print.printed to false instead of 0.
3281 (scan_translation_unit): Fix up formatting. Set print.printed
3282 to true after printing something other than newline.
3283 (scan_translation_unit_trad): Set print.printed to true instead of 1.
3284 (maybe_print_line_1): Set print.printed to false instead of 0.
3285 (print_line_1): Likewise.
3286 (do_line_change): Set print.printed to true instead of 1.
3287 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
3288 dump_macro): Set print.printed to false after printing newline.
3289
3290 2015-12-02 Jason Merrill <jason@redhat.com>
3291
3292 * c-common.c (fold_for_warn): New.
3293 (warn_logical_operator, warn_tautological_cmp)
3294 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
3295
3296 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
3297 (c_fully_fold_internal, decl_constant_value_for_optimization):
3298 Move to c/c-fold.c.
3299 * c-common.h: Don't declare decl_constant_value_for_optimization.
3300
3301 2015-12-02 Joseph Myers <joseph@codesourcery.com>
3302
3303 PR c/68162
3304 * c-common.h (c_build_qualified_type): Add extra default
3305 arguments.
3306
3307 2015-12-01 Julian Brown <julian@codesourcery.com>
3308 Cesar Philippidis <cesar@codesourcery.com>
3309 James Norris <James_Norris@mentor.com>
3310
3311 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
3312 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
3313 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
3314
3315 2015-11-30 Eric Botcazou <ebotcazou@adacore.com>
3316
3317 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
3318 (decl_sloc_common): Delete and move bulk of processing to...
3319 (decl_sloc): ...here.
3320 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
3321 (dump_ada_double_name): Remove S parameter and compute the suffix.
3322 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
3323 element type and deal with an anonymous one.
3324 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
3325 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
3326 and remove reference to QUAL_UNION_TYPE.
3327 (dump_nested_types): Make 2 passes on the fields and move bulk to...
3328 (dump_nested_type): ...here. New function extracted from above.
3329 Generate a full declaration for anonymous element type of arrays.
3330 (print_ada_declaration): Really skip anonymous declarations. Remove
3331 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
3332 Clean up processing of declarations of array types and objects.
3333 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
3334 Remove obsolete code and tidy up.
3335
3336 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
3337
3338 PR c/67581
3339 * c-common.c (handle_transparent_union_attribute): Update
3340 also type variants.
3341
3342 2015-11-27 Martin Liska <mliska@suse.cz>
3343
3344 PR c++/68312
3345 * array-notation-common.c (cilkplus_extract_an_triplets):
3346 Release vector of vectors.
3347 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
3348
3349 2015-11-26 Eric Botcazou <ebotcazou@adacore.com>
3350
3351 PR c++/68527
3352 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
3353 (print_ada_struct_decl): Likewise.
3354
3355 2015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
3356
3357 PR c++/68001
3358 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
3359 * cilk.c (recognize_spawn): Determine location in a more precise
3360 way.
3361
3362 2015-11-19 Jason Merrill <jason@redhat.com>
3363
3364 * c-common.c (shorten_compare): But look through macros from
3365 system headers.
3366
3367 2015-11-18 Jason Merrill <jason@redhat.com>
3368
3369 * c-common.c (shorten_compare): Don't -Wtype-limits if the
3370 non-constant operand comes from a macro.
3371
3372 2015-11-17 Jason Merrill <jason@redhat.com>
3373
3374 PR bootstrap/68346
3375 * c-common.c (warn_tautological_cmp): Fold before checking for
3376 constants.
3377
3378 2015-11-16 Marek Polacek <polacek@redhat.com>
3379
3380 PR c++/68362
3381 * c-common.c (check_case_bounds): Fold low and high cases.
3382
3383 2015-11-16 Marek Polacek <polacek@redhat.com>
3384
3385 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
3386 * c-common.c (c_common_get_alias_set): Likewise.
3387 (handle_visibility_attribute): Likewise.
3388
3389 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
3390
3391 * c-common.c (handle_simd_attribute): New.
3392 (struct attribute_spec): Add entry for "simd".
3393 (handle_simd_attribute): New.
3394
3395 2015-11-13 Kai Tietz <ktietz70@googlemail.com>
3396
3397 * c-lex.c (interpret_float): Use fold_convert.
3398
3399 2015-11-13 David Malcolm <dmalcolm@redhat.com>
3400
3401 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
3402 and store it on the result.
3403 * c-opts.c (c_common_init_options): Set
3404 global_dc->colorize_source_p.
3405
3406 2015-11-12 James Norris <jnorris@codesourcery.com>
3407 Joseph Myers <joseph@codesourcery.com>
3408
3409 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
3410 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
3411 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
3412 PRAGMA_OACC_CLAUSE_LINK.
3413
3414 2015-11-11 Marek Polacek <polacek@redhat.com>
3415
3416 PR c/68107
3417 PR c++/68266
3418 * c-common.c (valid_array_size_p): New function.
3419 * c-common.h (valid_array_size_p): Declare.
3420
3421 2015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
3422
3423 PR bootstrap/68271
3424 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
3425
3426 2015-11-11 Andrew MacLeod <amacleod@redhat.com>
3427
3428 * array-notation-common.c: Remove unused header files.
3429 * c-ada-spec.c: Likewise.
3430 * c-cilkplus.c: Likewise.
3431 * c-common.c: Likewise.
3432 * c-cppbuiltin.c: Likewise.
3433 * c-dump.c: Likewise.
3434 * c-format.c: Likewise.
3435 * c-gimplify.c: Likewise.
3436 * c-indentation.c: Likewise.
3437 * c-lex.c: Likewise.
3438 * c-omp.c: Likewise.
3439 * c-opts.c: Likewise.
3440 * c-pch.c: Likewise.
3441 * c-ppoutput.c: Likewise.
3442 * c-pragma.c: Likewise.
3443 * c-pretty-print.c: Likewise.
3444 * c-semantics.c: Likewise.
3445 * c-ubsan.c: Likewise.
3446 * cilk.c: Likewise.
3447 * stub-objc.c: Likewise.
3448
3449 2015-11-09 Thomas Schwinge <thomas@codesourcery.com>
3450 Cesar Philippidis <cesar@codesourcery.com>
3451 James Norris <jnorris@codesourcery.com>
3452 Julian Brown <julian@codesourcery.com>
3453 Nathan Sidwell <nathan@codesourcery.com>
3454
3455 * c-pragma.c (oacc_pragmas): Add "routine".
3456 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
3457
3458 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
3459
3460 * c-common.c (c_common_attributes): Add scalar_storage_order.
3461 (handle_scalar_storage_order_attribute): New function.
3462 * c-pragma.c (global_sso): New variable.
3463 (maybe_apply_pragma_scalar_storage_order): New function.
3464 (handle_pragma_scalar_storage_order): Likewise.
3465 (init_pragma): Register scalar_storage_order.
3466 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
3467 * c.opt (Wscalar-storage-order): New warning.
3468 (fsso-struct=): New option.
3469
3470 2015-11-08 Martin Sebor <msebor@redhat.com>
3471
3472 * c.opt (Wplacement-new): Add a period to the end of a sentence.
3473
3474 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3475
3476 * c-common.c: Don't undef DEF_BUILTIN.
3477
3478 2015-11-06 David Malcolm <dmalcolm@redhat.com>
3479
3480 * c-common.c (c_cpp_error): Convert parameter from location_t to
3481 rich_location *. Eliminate the "column_override" parameter and
3482 the call to diagnostic_override_column.
3483 Update the "done_lexing" clause to set range 0
3484 on the rich_location, rather than overwriting a location_t.
3485 * c-common.h (c_cpp_error): Convert parameter from location_t to
3486 rich_location *. Eliminate the "column_override" parameter.
3487
3488 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
3489 Thomas Schwinge <thomas@codesourcery.com>
3490 James Norris <jnorris@codesourcery.com>
3491
3492 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
3493 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
3494 clauses with parallel and kernels and loops.
3495 * c-pragma.h (enum pragma_omp_clause): Add entries for
3496 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
3497 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
3498 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
3499 INDEPENDENT,SEQ}.
3500 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
3501
3502 2015-11-05 Martin Sebor <msebor@redhat.com>
3503
3504 PR c++/67942
3505 * c.opt (-Wplacement-new): New option.
3506
3507 2015-11-05 Jakub Jelinek <jakub@redhat.com>
3508
3509 * c-common.h (c_finish_omp_atomic): Add TEST argument.
3510 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
3511 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
3512 save_expr or create_tmp_var* if TEST is true.
3513 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
3514 Don't call add_stmt here.
3515 (struct c_omp_check_loop_iv_data): New type.
3516 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
3517 c_omp_check_loop_iv_exprs): New functions.
3518 (c_omp_split_clauses): Adjust for lastprivate being allowed on
3519 distribute.
3520 (c_omp_declare_simd_clauses_to_numbers): Change
3521 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
3522 (c_omp_declare_simd_clauses_to_decls): Similarly change those
3523 from numbers to PARM_DECLs.
3524
3525 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
3526
3527 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
3528 flag_checking.
3529
3530 2015-11-03 Bernd Schmidt <bschmidt@redhat.com>
3531
3532 PR c++-common/67882
3533 * c-common.h (fold_offsetof_1): Add argument.
3534 * c-common.c (fold_offsetof_1): Diagnose more invalid
3535 offsetof expressions that reference elements past the end of
3536 an array.
3537
3538 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
3539 Chung-Lin Tang <cltang@codesourcery.com>
3540
3541 * c-pragma.c (oacc_pragmas): Add "atomic".
3542 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
3543
3544 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
3545
3546 * c-common.c (handle_target_clones_attribute): New.
3547 (c_common_attribute_table): Add handle_target_clones_attribute.
3548 (handle_always_inline_attribute): Add check on target_clones attribute.
3549 (handle_target_attribute): Ditto.
3550
3551 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
3552
3553 * array-notation-common.c: Reorder #include's and remove duplicates.
3554 * c-ada-spec.c: Likewise.
3555 * c-cilkplus.c: Likewise.
3556 * c-common.c: Likewise.
3557 * c-cppbuiltin.c: Likewise.
3558 * c-dump.c: Likewise.
3559 * c-format.c: Likewise.
3560 * c-gimplify.c: Likewise.
3561 * c-indentation.c: Likewise.
3562 * c-lex.c: Likewise.
3563 * c-omp.c: Likewise.
3564 * c-opts.c: Likewise.
3565 * c-pch.c: Likewise.
3566 * c-ppoutput.c: Likewise.
3567 * c-pragma.c: Likewise.
3568 * c-pretty-print.c: Likewise.
3569 * c-semantics.c: Likewise.
3570 * c-ubsan.c: Likewise.
3571 * cilk.c: Likewise.
3572 * stub-objc.c: Likewise.
3573
3574 2015-10-28 Jason Merrill <jason@redhat.com>
3575
3576 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
3577
3578 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
3579 James Norris <jnorris@codesourcery.com>
3580 Cesar Philippidis <cesar@codesourcery.com>
3581
3582 PR c/64765
3583 PR c/64880
3584 * c-common.h (c_oacc_split_loop_clauses): Declare function.
3585 * c-omp.c (c_oacc_split_loop_clauses): New function.
3586
3587 2015-10-21 Martin Sebor <msebor@redhat.com>
3588
3589 PR driver/68043
3590 * c.opt: End each sentence that describes an option with a period.
3591
3592 2015-10-20 Marek Polacek <polacek@redhat.com>
3593
3594 * array-notation-common.c (is_cilkplus_vector_p): Define.
3595 * c-common.h (is_cilkplus_vector_p): Declare.
3596
3597 2015-10-20 Marek Polacek <polacek@redhat.com>
3598
3599 * c.opt (std=gnu++11): Do not describe as experimental.
3600 (std=gnu++14): Likewise.
3601
3602 2015-10-19 Jason Merrill <jason@redhat.com>
3603
3604 * c-cppbuiltin.c (c_cpp_builtins): Define
3605 __cpp_nontype_template_args.
3606
3607 2015-10-19 Jason Merrill <jason@redhat.com>
3608
3609 * c-cppbuiltin.c (c_cpp_builtins): Define
3610 __cpp_enumerator_attributes, __cpp_fold_expressions,
3611 __cpp_unicode_characters.
3612
3613 2015-10-13 Jakub Jelinek <jakub@redhat.com>
3614 Aldy Hernandez <aldyh@redhat.com>
3615
3616 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
3617 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
3618 (c_define_builtins): Likewise.
3619 * c-common.h (enum c_omp_clause_split): Add
3620 C_OMP_CLAUSE_SPLIT_TASKLOOP.
3621 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
3622 (c_finish_omp_for): Add ORIG_DECLV argument.
3623 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
3624 201511 instead of 201307.
3625 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
3626 OMP_CRITICAL_CLAUSES to it.
3627 (c_finish_omp_ordered): Add CLAUSES argument, set
3628 OMP_ORDERED_CLAUSES to it.
3629 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
3630 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
3631 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
3632 constructs and new OpenMP 4.5 clauses. Clear
3633 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
3634 verification code.
3635 * c-pragma.c (omp_pragmas_simd): Add taskloop.
3636 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
3637 (enum pragma_omp_clause): Add
3638 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
3639 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
3640
3641 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
3642
3643 * c-lex.c (interpret_float): Use real_equal instead of
3644 REAL_VALUES_EQUAL.
3645
3646 2015-10-04 Jason Merrill <jason@redhat.com>
3647
3648 Implement N4514, C++ Extensions for Transactional Memory.
3649 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
3650 (c_common_attribute_table): Add transaction_safe_dynamic.
3651 transaction_safe now affects type identity.
3652 (handle_tm_attribute): Handle transaction_safe_dynamic.
3653 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
3654 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
3655 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
3656 (D_TRANSMEM): New.
3657 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
3658 * c-pretty-print.c (pp_c_attributes_display): Don't print
3659 transaction_safe in C++.
3660
3661 2015-10-02 Marek Polacek <polacek@redhat.com>
3662
3663 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
3664
3665 2015-10-02 Marek Polacek <polacek@redhat.com>
3666
3667 PR c/64249
3668 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
3669 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
3670 * c.opt (Wduplicated-cond): New option.
3671
3672 2015-10-01 Joseph Myers <joseph@codesourcery.com>
3673
3674 * c.opt (std=c11): Do not describe as experimental.
3675 (std=gnu11): Likewise.
3676 (std=iso9899:2011): Likewise.
3677
3678 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
3679
3680 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
3681 (DEF_FUNCTION_TYPE_VAR_11): Delete.
3682
3683 2015-09-25 Marek Polacek <polacek@redhat.com>
3684
3685 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
3686 (ubsan_instrument_shift): Likewise.
3687
3688 2015-09-25 Marek Polacek <polacek@redhat.com>
3689
3690 PR sanitizer/64906
3691 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
3692
3693 2015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
3694
3695 * c-indentation.c (should_warn_for_misleading_indentation):
3696 Compare next_stmt_vis_column with guard_line_first_nws instead
3697 of with guard_line_vis_column.
3698
3699 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
3700
3701 PR c/49654
3702 PR c/49655
3703 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
3704 options and options not valid for the current language.
3705
3706 2015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
3707
3708 * c-indentation.c (should_warn_for_misleading_indentation):
3709 Float out and consolidate the calls to get_visual_column that
3710 are passed guard_exploc as an argument. Compare
3711 next_stmt_vis_column with guard_line_first_nws instead of with
3712 body_line_first_nws.
3713
3714 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
3715
3716 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
3717 Wnamespaces): New C++ warnings.
3718
3719 2015-09-22 Jason Merrill <jason@redhat.com>
3720
3721 * c-common.h (abi_compat_version_crosses): New.
3722 (warn_abi_version): Declare.
3723 * c-common.c: Define it.
3724 * c-opts.c (c_common_post_options): Handle it.
3725 flag_abi_compat_version defaults to 8.
3726
3727 2015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
3728
3729 Complete the implementation of N4230, Nested namespace definition.
3730 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
3731 __cpp_nested_namespace_definitions.
3732
3733 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
3734
3735 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
3736
3737 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
3738
3739 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
3740 when warning.
3741 * c-pragma.h (pragma_lex): Add optional loc argument.
3742
3743 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
3744
3745 * c-format.c (check_format_arg): Adjust to use common block size in all
3746 object pools.
3747
3748 2015-09-15 David Malcolm <dmalcolm@redhat.com>
3749
3750 * c-format.c (location_from_offset): Update for change in
3751 signature of location_get_source_line.
3752 * c-indentation.c (get_visual_column): Likewise.
3753 (line_contains_hash_if): Likewise.
3754
3755 2015-09-14 Marek Polacek <polacek@redhat.com>
3756
3757 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
3758 setting various warnings.
3759
3760 2015-09-14 Marek Polacek <polacek@redhat.com>
3761
3762 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
3763 a negative value.
3764
3765 2015-09-11 Mark Wielaard <mjw@redhat.com>
3766
3767 PR c/28901
3768 * c.opt (Wunused-variable): Option from common.opt.
3769 (Wunused-const-variable): New option.
3770
3771 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
3772
3773 PR c++/53184
3774 * c.opt ([Wsubobject-linkage]): Add.
3775
3776 2015-09-03 Martin Sebor <msebor@redhat.com>
3777
3778 PR c/66516
3779 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
3780 functions.
3781 * c-common.c (reject_gcc_builtin): Define.
3782
3783 2015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
3784
3785 PR middle-end/60586
3786 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
3787 prototype.
3788 * c-gimplify.c (c_gimplify_expr): Added a call to the function
3789 cilk_gimplify_call_params_in_spawned_fn.
3790 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
3791 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
3792 unwrapping.
3793
3794 2015-08-25 Marek Polacek <polacek@redhat.com>
3795
3796 PR middle-end/67330
3797 * c-common.c (handle_weak_attribute): Don't check whether the
3798 visibility can be changed here.
3799
3800 2015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
3801
3802 * c-lex.c (c_lex_with_flags): Use explicit locations.
3803
3804 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
3805
3806 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
3807 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
3808
3809 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3810
3811 PR middle-end/36757
3812 * c-common.c (check_builtin_function_arguments): Add check
3813 for BUILT_IN_SIGNBIT argument.
3814
3815 2015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
3816
3817 PR c++/67160
3818 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
3819 in c++1z mode.
3820
3821 2015-08-17 Marek Polacek <polacek@redhat.com>
3822
3823 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
3824 with whitespaces before qualifier names.
3825
3826 2015-08-12 Marek Polacek <polacek@redhat.com>
3827
3828 PR c++/55095
3829 * c-common.c (maybe_warn_shift_overflow): Properly handle
3830 left-shifting 1 into the sign bit.
3831
3832 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3833
3834 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
3835
3836 2015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
3837 Braden Obrzut <admin@maniacsvault.net>
3838 Jason Merrill <jason@redhat.com>
3839
3840 Add C++ Concepts TS support.
3841 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
3842 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
3843 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
3844 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
3845 * c-opts.c (set_std_cxx1z): Set flag_concepts.
3846 * c.opt (fconcepts): New.
3847
3848 2015-08-02 Martin Sebor <msebor@redhat.com>
3849
3850 * c.opt (-Wframe-address): New warning option.
3851
3852 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
3853
3854 * c-indentation.c (should_warn_for_misleading_indentation):
3855 Improve heuristics.
3856
3857 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
3858
3859 * c-indentation.c (get_visual_column): Add parameter first_nws,
3860 use it. Update comment documenting the function.
3861 (is_first_nonwhitespace_on_line): Remove.
3862 (should_warn_for_misleading_indentation): Replace usage of
3863 of is_first_nonwhitespace_on_line with get_visual_column.
3864
3865 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
3866
3867 * c-indentation.h (struct token_indent_info): Define.
3868 (get_token_indent_info): Define.
3869 (warn_for_misleading_information): Declare.
3870 * c-common.h (warn_for_misleading_information): Remove.
3871 * c-identation.c (warn_for_misleading_indentation):
3872 Change declaration to take three token_indent_infos. Adjust
3873 accordingly.
3874 * c-identation.c (should_warn_for_misleading_indentation):
3875 Likewise. Bail out early if the body is a compound statement.
3876 (guard_tinfo_to_string): Define.
3877
3878 2015-07-30 Jason Merrill <jason@redhat.com>
3879
3880 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
3881 '*' for reference decay.
3882
3883 2015-07-30 Marek Polacek <polacek@redhat.com>
3884
3885 * c-common.c (warn_tautological_cmp): Bail for float types.
3886
3887 2015-07-27 Marek Polacek <polacek@redhat.com>
3888
3889 PR bootstrap/67030
3890 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
3891
3892 2015-07-27 Marek Polacek <polacek@redhat.com>
3893
3894 PR c++/66555
3895 PR c/54979
3896 * c-common.c (find_array_ref_with_const_idx_r): New function.
3897 (warn_tautological_cmp): New function.
3898 * c-common.h (warn_tautological_cmp): Declare.
3899 * c.opt (Wtautological-compare): New option.
3900
3901 2015-07-23 Marek Polacek <polacek@redhat.com>
3902
3903 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
3904 (ubsan_instrument_shift): Likewise.
3905
3906 2015-07-23 Marek Polacek <polacek@redhat.com>
3907
3908 PR sanitizer/66908
3909 * c-ubsan.c: Include gimplify.h.
3910 (ubsan_instrument_division): Unshare OP0 and OP1.
3911 (ubsan_instrument_shift): Likewise.
3912
3913 2015-07-20 Marek Polacek <polacek@redhat.com>
3914 Richard Sandiford <richard.sandiford@arm.com>
3915
3916 PR c++/55095
3917 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
3918 Use EXPR_LOC_OR_LOC.
3919 (maybe_warn_shift_overflow): New function.
3920 * c-common.h (maybe_warn_shift_overflow): Declare.
3921 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
3922 * c.opt (Wshift-overflow): New option.
3923
3924 2015-07-16 Martin Liska <mliska@suse.cz>
3925
3926 * c-format.c (static void check_format_info_main): Use
3927 object_allocator instead of pool_allocator.
3928 (check_format_arg): Likewise.
3929 (check_format_info_main): Likewise.
3930
3931 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
3932
3933 * c-opts.c: Remove multiline #include comment.
3934
3935 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
3936
3937 * c-common.c: Fix double word typos.
3938
3939 2015-07-10 Eric Botcazou <ebotcazou@adacore.com>
3940
3941 * c-ada-spec.h (cpp_operation): Revert latest change.
3942 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
3943 constructors and destructors.
3944
3945 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
3946
3947 * c-common.h: Adjust includes for flags.h changes.
3948 * stub-objc.c: Likewise.
3949
3950 2015-07-08 Eric Botcazou <ebotcazou@adacore.com>
3951
3952 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
3953 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
3954
3955 2015-07-08 Jakub Jelinek <jakub@redhat.com>
3956
3957 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
3958 are to be removed, return NULL rather than original clauses list.
3959
3960 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
3961
3962 * array-notation-common.c: Adjust includes.
3963 * c-ada-spec.c: Likewise.
3964 * c-cilkplus.c: Likewise.
3965 * c-common.h: Likewise.
3966 * c-cppbuiltin.c: Likewise.
3967 * c-dump.c: Likewise.
3968 * c-format.c: Likewise.
3969 * c-gimplify.c: Likewise.
3970 * c-indentation.c: Likewise.
3971 * c-lex.c: Likewise.
3972 * c-omp.c: Likewise.
3973 * c-opts.c: Likewise.
3974 * c-pch.c: Likewise.
3975 * c-ppoutput.c: Likewise.
3976 * c-pragma.c: Likewise.
3977 * c-pretty-print.c: Likewise.
3978 * c-semantics.c: Likewise.
3979 * c-ubsan.c: Likewise.
3980 * cilk.c: Likewise.
3981 * stub-objc.c: Likewise.
3982
3983 2015-07-07 Eric Botcazou <ebotcazou@adacore.com>
3984
3985 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
3986 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
3987
3988 2015-07-01 Jason Merrill <jason@redhat.com>
3989
3990 * c-common.h (D_CXX11): Rename from D_CXX0X.
3991 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
3992 * c-common.c: Adjust.
3993
3994 * c-opts.c (c_common_post_options): Default to C++14.
3995
3996 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
3997
3998 2015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
3999
4000 Implement N4197 - Adding u8 character literals
4001 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
4002 CPP_CHAR.
4003 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
4004 CPP_UTF8CHAR_USERDEF tokens.
4005 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
4006 and CPP_UTF8CHAR tokens.
4007 (lex_charconst): Treat CPP_UTF8CHAR token.
4008
4009 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
4010
4011 PR fortran/66605
4012 * c-common.c (do_warn_unused_parameter): Move here.
4013 * c-common.h (do_warn_unused_parameter): Declare.
4014
4015 2015-06-29 Marek Polacek <polacek@redhat.com>
4016
4017 PR c/66322
4018 * c-common.c (check_case_bounds): Add bool * parameter. Set
4019 OUTSIDE_RANGE_P.
4020 (c_add_case_label): Add bool * parameter. Pass it down to
4021 check_case_bounds.
4022 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
4023 warning here.
4024 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
4025 declarations.
4026
4027 2015-06-27 Marek Polacek <polacek@redhat.com>
4028
4029 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
4030 or VECTOR_INTEGER_TYPE_P throughout.
4031 * c-gimplify.c: Likewise.
4032
4033 2015-06-26 Marek Polacek <polacek@redhat.com>
4034
4035 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
4036 * c-common.c (c_fully_fold_internal): Likewise.
4037 (c_alignof_expr): Likewise.
4038 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
4039 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
4040 * cilk.c (create_parm_list): Likewise.
4041
4042 2015-06-26 Marek Polacek <polacek@redhat.com>
4043
4044 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
4045
4046 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
4047
4048 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
4049 * c-gimplify.c: Likewise.
4050 * c-pragma.c: Likewise.
4051 * c-ubsan.c: Likewise.
4052 * cilk.c: Likewise.
4053
4054 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4055
4056 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
4057 ggc_hasher.
4058
4059 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
4060
4061 * cilk.c: Move calls.h after tm.h in the include chain.
4062
4063 2015-06-25 Marek Polacek <polacek@redhat.com>
4064
4065 * array-notation-common.c: Use VAR_P throughout.
4066 * c-ada-spec.c: Likewise.
4067 * c-common.c: Likewise.
4068 * c-format.c: Likewise.
4069 * c-gimplify.c: Likewise.
4070 * c-omp.c: Likewise.
4071 * c-pragma.c: Likewise.
4072 * c-pretty-print.c: Likewise.
4073 * cilk.c: Likewise.
4074
4075 2015-06-25 Marek Polacek <polacek@redhat.com>
4076
4077 * cilk.c (extract_free_variables): Use is_global_var.
4078
4079 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
4080
4081 * c-common.c: Don't include target-def.h.
4082
4083 2015-06-23 Marek Polacek <polacek@redhat.com>
4084
4085 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
4086 when comparing INTEGER_CSTs.
4087
4088 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
4089
4090 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
4091 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
4092 (dump_ada_template): Skip partially specialized types.
4093
4094 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
4095
4096 * c-common.c (scalar_to_vector): Use std::swap instead of manually
4097 swapping.
4098
4099 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
4100
4101 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
4102 * c-ada-spec.c: Likewise.
4103 * c-cilkplus.c: Likewise.
4104 * c-common.c: Likewise.
4105 * c-common.h: Likewise.
4106 * c-cppbuiltin.c: Likewise.
4107 * c-dump.c: Likewise.
4108 * c-format.c: Likewise.
4109 * c-gimplify.c: Likewise.
4110 * c-indentation.c: Likewise.
4111 * c-lex.c: Likewise.
4112 * c-omp.c: Likewise.
4113 * c-opts.c: Likewise.
4114 * c-pch.c: Likewise.
4115 * c-ppoutput.c: Likewise.
4116 * c-pragma.c: Likewise.
4117 * c-pretty-print.c: Likewise.
4118 * c-semantics.c: Likewise.
4119 * c-ubsan.c: Likewise.
4120 * cilk.c: Likewise.
4121 * stub-objc.c: Likewise.
4122
4123 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
4124
4125 PR c++/65168
4126 * c-common.c (c_common_truthvalue_conversion): Warn when
4127 converting an address of a reference to a truth value.
4128
4129 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
4130
4131 * array-notation-common.c : Adjust include files.
4132 * c-ada-spec.c : Likewise.
4133 * c-cilkplus.c : Likewise.
4134 * c-common.c : Likewise.
4135 * c-common.h : Likewise.
4136 * c-cppbuiltin.c : Likewise.
4137 * c-dump.c : Likewise.
4138 * c-format.c : Likewise.
4139 * c-gimplify.c : Likewise.
4140 * c-indentation.c : Likewise.
4141 * c-lex.c : Likewise.
4142 * c-omp.c : Likewise.
4143 * c-opts.c : Likewise.
4144 * c-pch.c : Likewise.
4145 * c-ppoutput.c : Likewise.
4146 * c-pragma.c : Likewise.
4147 * c-pretty-print.c : Likewise.
4148 * c-semantics.c : Likewise.
4149 * c-ubsan.c : Likewise.
4150 * cilk.c : Likewise.
4151 * stub-objc.c : Likewise.
4152
4153 2015-06-08 Marek Polacek <polacek@redhat.com>
4154
4155 PR c/66415
4156 * c-format.c (location_from_offset): Return LOC if LINE is null.
4157
4158 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
4159
4160 * c-common.h (c_parse_final_cleanups): New prototype.
4161 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
4162
4163 2015-06-04 Sriraman Tallam <tmsriram@google.com>
4164
4165 * c-common.c (noplt): New attribute.
4166 (handle_noplt_attribute): New handler.
4167
4168 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
4169
4170 * array-notation-common.c: Adjust includes for restructured coretypes.h.
4171 * c-ada-spec.c: Likewise.
4172 * c-cilkplus.c: Likewise.
4173 * c-common.c: Likewise.
4174 * c-common.h: Likewise.
4175 * c-cppbuiltin.c: Likewise.
4176 * c-dump.c: Likewise.
4177 * c-format.c: Likewise.
4178 * c-gimplify.c: Likewise.
4179 * c-indentation.c: Likewise.
4180 * c-lex.c: Likewise.
4181 * c-omp.c: Likewise.
4182 * c-opts.c: Likewise.
4183 * c-pch.c: Likewise.
4184 * c-ppoutput.c: Likewise.
4185 * c-pragma.c: Likewise.
4186 * c-pretty-print.c: Likewise.
4187 * c-semantics.c: Likewise.
4188 * c-ubsan.c: Likewise.
4189 * cilk.c: Likewise.
4190 * stub-objc.c: Likewise.
4191
4192 2015-06-02 David Malcolm <dmalcolm@redhat.com>
4193
4194 PR c/66220:
4195 * c-indentation.c (should_warn_for_misleading_indentation): Use
4196 expand_location rather than expand_location_to_spelling_point.
4197 Don't warn if the guarding statement is more indented than the
4198 next/body stmts.
4199
4200 2015-06-02 David Malcolm <dmalcolm@redhat.com>
4201
4202 * c-indentation.c (warn_for_misleading_indentation): Bail out
4203 immediately if -Wmisleading-indentation isn't enabled.
4204
4205 2015-06-01 Martin Liska <mliska@suse.cz>
4206
4207 * c-format.c (check_format_arg):Use new type-based pool allocator.
4208 (check_format_info_main) Likewise.
4209
4210 2015-05-31 Eric Botcazou <ebotcazou@adacore.com>
4211
4212 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
4213 (has_nontrivial_methods): Likewise.
4214
4215 2015-05-25 Marek Polacek <polacek@redhat.com>
4216
4217 * c-ubsan.c (ubsan_instrument_shift): Use type0.
4218
4219 2015-05-22 Marek Polacek <polacek@redhat.com>
4220
4221 PR c/47043
4222 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
4223
4224 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4225
4226 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
4227 STACK_GROWS_DOWNWARD.
4228
4229 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4230
4231 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
4232 STACK_GROWS_DOWNWARD rather than if it is defined.
4233
4234 2015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4235
4236 PR c/52952
4237 * c-format.c (location_column_from_byte_offset): New.
4238 (location_from_offset): New.
4239 (struct format_wanted_type): Add offset_loc field.
4240 (check_format_info): Move handling of location for extra arguments
4241 closer to the point of warning.
4242 (check_format_info_main): Pass the result of location_from_offset
4243 to warning_at.
4244 (format_type_warning): Pass the result of location_from_offset
4245 to warning_at.
4246
4247 2015-05-20 Marek Polacek <polacek@redhat.com>
4248
4249 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
4250
4251 2015-05-20 Marek Polacek <polacek@redhat.com>
4252
4253 * c-ada-spec.c (dump_sloc): Use DECL_P.
4254
4255 2015-05-20 Marek Polacek <polacek@redhat.com>
4256
4257 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
4258 * c-common.c: Likewise.
4259
4260 2015-05-19 David Malcolm <dmalcolm@redhat.com>
4261
4262 * c-common.h (fe_file_change): Strengthen param from
4263 const line_map * to const line_map_ordinary *.
4264 (pp_file_change): Likewise.
4265 * c-lex.c (fe_file_change): Likewise.
4266 (cb_define): Use linemap_check_ordinary when invoking
4267 SOURCE_LINE.
4268 (cb_undef): Likewise.
4269 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
4270 invoking cb_file_change.
4271 (c_finish_options): Likewise.
4272 (push_command_line_include): Likewise.
4273 (cb_file_change): Strengthen param "new_map" from
4274 const line_map * to const line_map_ordinary *.
4275 * c-ppoutput.c (cb_define): Likewise for local "map".
4276 (pp_file_change): Likewise for param "map" and local "from".
4277
4278 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
4279
4280 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
4281
4282 2015-05-18 Tom de Vries <tom@codesourcery.com>
4283
4284 * c-common.c (build_va_arg_1): New function.
4285 (build_va_arg): Add address operator to va_list operand if necessary.
4286
4287 2015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
4288
4289 PR c/48956
4290 * c-common.c (int_safely_convertible_to_real_p): Define.
4291 (unsafe_conversion_p): Check conversions involving complex types.
4292 (conversion_warning): Add new warning message for conversions which
4293 discard imaginary component.
4294 * c-common.h: (enum conversion_safety): Add new enumerator for such
4295 conversions.
4296
4297 2015-05-14 Marek Polacek <polacek@redhat.com>
4298
4299 PR c/66066
4300 PR c/66127
4301 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
4302 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
4303 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
4304 use it. If FOR_INT_CONST, require that all evaluated operands be
4305 INTEGER_CSTs.
4306
4307 2015-05-12 David Malcolm <dmalcolm@redhat.com>
4308
4309 * c-common.h (warn_for_misleading_indentation): New prototype.
4310 * c-indentation.c: New file.
4311 * c.opt (Wmisleading-indentation): New option.
4312
4313 2015-05-12 Tom de Vries <tom@codesourcery.com>
4314
4315 PR tree-optimization/66010
4316 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
4317
4318 2015-05-09 Jason Merrill <jason@redhat.com>
4319
4320 * c-opts.c (c_common_post_options): Also clear
4321 cpp_opts->cpp_warn_cxx11_compat.
4322
4323 * c-common.h (enum cxx_dialect): Add cxx_unset.
4324 * c-common.c (cxx_dialect): Initialize to cxx_unset.
4325 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
4326
4327 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
4328 (std=gnu++0x): Mark as Undocumented.
4329 (std=gnu++1y): Add deprecated message.
4330
4331 2015-05-08 Jason Merrill <jason@redhat.com>
4332
4333 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
4334 * c-opts.c: Adjust.
4335
4336 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
4337
4338 2015-05-08 Marek Polacek <polacek@redhat.com>
4339
4340 PR c/64918
4341 * c.opt (Woverride-init-side-effects): New option.
4342
4343 2015-05-07 Marek Polacek <polacek@redhat.com>
4344
4345 PR c/65179
4346 * c-common.c (c_fully_fold_internal): Warn when left shifting a
4347 negative value.
4348 * c.opt (Wshift-negative-value): New option.
4349 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
4350 when -Wextra and C99/C++11 mode.
4351
4352 2015-05-07 Marek Polacek <polacek@redhat.com>
4353 Martin Uecker <uecker@eecs.berkeley.edu>
4354
4355 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
4356 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
4357
4358 2015-05-05 Jason Merrill <jason@redhat.com>
4359
4360 * c.opt (Wterminate): New.
4361
4362 2015-04-30 Marek Polacek <polacek@redhat.com>
4363
4364 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
4365 require that the non-constant be of a boolean type.
4366
4367 2015-04-29 Josh Triplett <josh@joshtriplett.org>
4368
4369 * c-common.c (handle_section_attribute): Refactor to reduce
4370 nesting and distinguish between error cases.
4371
4372 2015-04-29 Marek Polacek <polacek@redhat.com>
4373
4374 PR c/64610
4375 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
4376 with 0/1.
4377
4378 2015-04-29 Jakub Jelinek <jakub@redhat.com>
4379
4380 * c-common.h (omp_clause_mask): Unconditionally define as a class.
4381 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
4382 HOST_BITS_PER_WIDE_INT.
4383
4384 2015-04-28 Tom de Vries <tom@codesourcery.com>
4385
4386 PR tree-optimization/65887
4387 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
4388
4389 2015-04-28 Eric Botcazou <ebotcazou@adacore.com>
4390 Pierre-Marie de Rodat <derodat@adacore.com>
4391
4392 * c-ada-spec.c (in_function): Delete.
4393 (dump_generic_ada_node): Do not change in_function and remove the
4394 redundant code dealing with it.
4395 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
4396 (print_ada_methods): Output the static member functions in a nested
4397 package after the regular methods as well as associated renamings.
4398
4399 2015-04-24 Marek Polacek <polacek@redhat.com>
4400
4401 PR c/65830
4402 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
4403 and OPT_Wshift_count_overflow.
4404
4405 PR c/63357
4406 * c-common.c (warn_logical_operator): Warn if the operands have the
4407 same expressions.
4408
4409 2015-04-24 Marek Polacek <polacek@redhat.com>
4410
4411 PR c/61534
4412 * c-common.c (warn_logical_operator): Bail if either operand comes
4413 from a macro expansion.
4414
4415 2015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4416
4417 PR target/55143
4418 * c-common.c (c_default_pointer_mode): Add definition.
4419 * c-common.h (c_default_pointer_mode): Add declaration.
4420
4421 2015-03-11 Jakub Jelinek <jakub@redhat.com>
4422
4423 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
4424 on record_builtin_type argument.
4425
4426 2015-03-10 Jakub Jelinek <jakub@redhat.com>
4427
4428 PR c/65120
4429 * c-common.c (warn_logical_not_parentheses): Don't warn for
4430 !x == 0 or !x != 0.
4431
4432 2015-03-07 Marek Polacek <polacek@redhat.com>
4433
4434 PR sanitizer/65280
4435 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
4436 before trying to figure out whether we have a flexible array member.
4437
4438 2015-03-06 Eric Botcazou <ebotcazou@adacore.com>
4439 Jonathan Wakely <jwakely.gcc@gmail.com>
4440
4441 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
4442
4443 2015-03-05 Eric Botcazou <ebotcazou@adacore.com>
4444
4445 PR ada/65319
4446 * c-ada-spec.c (print_destructor): Remove obsolete code.
4447
4448 2015-03-01 Eric Botcazou <ebotcazou@adacore.com>
4449
4450 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
4451 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
4452 DECL_TEMPLATE_RESULT emulations.
4453 (dump_ada_template)): Add guard for TYPE_METHODS.
4454
4455 2015-02-27 Marek Polacek <polacek@redhat.com>
4456
4457 PR c/65040
4458 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
4459
4460 2015-02-27 Kai Tietz <ktietz@redhat.com>
4461
4462 PR c/35330
4463 * c-pragma.c (handle_pragma_weak): Do not try to create
4464 weak/alias of declarations not being function, or variable
4465 declarations.
4466
4467 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
4468
4469 PR libgomp/64625
4470 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
4471 Remove macros.
4472 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
4473
4474 2015-02-16 Marek Polacek <polacek@redhat.com>
4475
4476 PR c/65066
4477 * c-format.c (check_format_types): Handle null param.
4478
4479 2015-02-13 Marek Polacek <polacek@redhat.com>
4480
4481 PR c/65040
4482 * c-format.c (check_format_types): Don't warn about different
4483 signedness if the original value is in the range of WANTED_TYPE.
4484
4485 2015-02-12 Jason Merrill <jason@redhat.com>
4486
4487 PR c++/64956
4488 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
4489 to the current highest version.
4490 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
4491
4492 2015-02-04 Jakub Jelinek <jakub@redhat.com>
4493
4494 PR c/64824
4495 PR c/64868
4496 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
4497 instead of RDIV_EXPR. Use build_binary_op instead of
4498 build2_loc.
4499
4500 2015-01-30 Joseph Myers <joseph@codesourcery.com>
4501
4502 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
4503 to pass input_location as first argument.
4504
4505 2015-01-23 Tom de Vries <tom@codesourcery.com>
4506
4507 PR libgomp/64672
4508 * c.opt (fopenacc): Mark as LTO option.
4509
4510 2015-01-23 Tom de Vries <tom@codesourcery.com>
4511
4512 PR libgomp/64707
4513 * c.opt (fopenmp): Mark as LTO option.
4514
4515 2015-01-21 Jakub Jelinek <jakub@redhat.com>
4516
4517 PR c/63307
4518 * cilk.c (fill_decls_vec): Only put decls into vector v.
4519 (compare_decls): Fix up formatting.
4520
4521 2015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
4522
4523 PR c/63307
4524 * cilk.c: Include vec.h.
4525 (struct cilk_decls): New structure.
4526 (wrapper_parm_cb): Split this function to...
4527 (fill_decls_vec): ...this...
4528 (create_parm_list): ...and this.
4529 (compare_decls): New function.
4530 (for_local_cb): Remove.
4531 (wrapper_local_cb): Ditto.
4532 (build_wrapper_type): For now first traverse and fill vector of
4533 declarations then sort it and then deal with sorted vector.
4534 (cilk_outline): Ditto.
4535 (declare_one_free_variable): Ditto.
4536
4537 2015-01-21 Jason Merrill <jason@redhat.com>
4538
4539 PR c++/64629
4540 * c-format.c (check_format_arg): Call decl_constant_value.
4541
4542 2015-01-19 Martin Liska <mliska@suse.cz>
4543
4544 * c-common.c (handle_noicf_attribute): New function.
4545
4546 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
4547 Bernd Schmidt <bernds@codesourcery.com>
4548 James Norris <jnorris@codesourcery.com>
4549 Cesar Philippidis <cesar@codesourcery.com>
4550 Ilmir Usmanov <i.usmanov@samsung.com>
4551 Jakub Jelinek <jakub@redhat.com>
4552
4553 * c.opt (fopenacc): New option.
4554 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
4555 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
4556 New macros.
4557 * c-common.h (c_finish_oacc_wait): New prototype.
4558 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
4559 (c_finish_oacc_wait): New function.
4560 * c-pragma.c (oacc_pragmas): New variable.
4561 (c_pp_lookup_pragma, init_pragma): Handle it.
4562 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
4563 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
4564 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
4565 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
4566 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
4567 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
4568 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
4569 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
4570 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
4571 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
4572 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
4573 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
4574 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
4575 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
4576 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
4577 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
4578 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
4579 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
4580 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
4581 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
4582 PRAGMA_OACC_CLAUSE_WORKER.
4583
4584 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
4585
4586 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
4587 for the new option fstack-protector_explicit.
4588 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
4589 (handle_stack_protect_attribute): New function.
4590
4591 2015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
4592
4593 * c.opt: New option -Warray-bounds=.
4594
4595 2015-01-09 Michael Collison <michael.collison@linaro.org>
4596
4597 * array-notation-common.c: Include hash-set.h, machmode.h,
4598 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4599 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
4600 * c-ada-spec.c: Ditto.
4601 * c-cilkplus.c: Ditto.
4602 * c-common.c: Include input.h due to flattening of tree.h.
4603 Define macro GCC_C_COMMON_C.
4604 * c-common.h: Flatten tree.h header files into c-common.h.
4605 Remove include of tree-core.h.
4606 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
4607 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4608 fold-const.h, wide-int.h, and inchash.h due to
4609 flattening of tree.h.
4610 * c-dump.c: Ditto.
4611 * c-format.c: Flatten tree.h header files into c-common.h.
4612 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
4613 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4614 fold-const.h, wide-int.h, and inchash.h due to
4615 flattening of tree.h.
4616 * c-dump.c: Include hash-set.h, machmode.h,
4617 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4618 fold-const.h, wide-int.h, and inchash.h due to
4619 flattening of tree.h.
4620 * c-format.c: Include hash-set.h, machmode.h,
4621 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4622 fold-const.h, wide-int.h, inchash.h and real.h due to
4623 flattening of tree.h.
4624 * c-gimplify.c: Include hash-set.h, machmode.h,
4625 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4626 fold-const.h, wide-int.h, and inchash.h due to
4627 flattening of tree.h.
4628 * cilk.c: Ditto.
4629 * c-lex.c: Ditto.
4630 * c-omp.c: Ditto.
4631 * c-opts.c: Ditto.
4632 * c-pch.c: Ditto.
4633 * c-ppoutput.c: Ditto.
4634 * c-pragma.c: Ditto.
4635 * c-pretty-print.c: Ditto.
4636 * c-semantics.c: Ditto.
4637 * c-ubsan.c: Ditto.
4638 * stub-objc.c: Ditto.
4639
4640 2015-01-08 Jason Merrill <jason@redhat.com>
4641
4642 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
4643 do_ubsan_in_current_function.
4644 (ubsan_maybe_instrument_reference_or_call): Likewise.
4645 * c-ubsan.h: Declare it.
4646
4647 2015-01-08 Mike Stump <mikestump@comcast.net>
4648
4649 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
4650
4651 2015-01-07 Marek Polacek <polacek@redhat.com>
4652
4653 PR c/64440
4654 * c-common.c (c_fully_fold_internal): Warn for division and modulo
4655 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
4656
4657 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
4658
4659 PR c++/31397
4660 * c.opt (Wsuggest-override): New option.
4661
4662 2015-01-05 Jakub Jelinek <jakub@redhat.com>
4663
4664 Update copyright years.
4665
4666 2015-01-05 Marek Polacek <polacek@redhat.com>
4667
4668 PR c/64423
4669 * c-common.c (warn_array_subscript_with_type_char): Add location_t
4670 parameter. Use it.
4671 * c-common.h (warn_array_subscript_with_type_char): Update
4672 declaration.
4673
4674 2014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
4675
4676 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
4677 Control macro with flag_sized_deallocation.
4678
4679 2014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
4680
4681 * c.opt (Wdiscarded-array-qualifiers): New option.
4682
4683 2014-12-19 Jakub Jelinek <jakub@redhat.com>
4684
4685 PR preprocessor/63831
4686 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
4687 and __has_cpp_attribute here.
4688 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
4689 c_common_has_attribute.
4690 * c-common.h (c_common_has_attribute): New prototype.
4691 * c-lex.c (init_c_lex): Set cb->has_attribute to
4692 c_common_has_attribute instead of cb_has_attribute.
4693 (get_token_no_padding): New function.
4694 (cb_has_attribute): Renamed to ...
4695 (c_common_has_attribute): ... this. No longer static. Use
4696 get_token_no_padding, require ()s, don't build TREE_LIST
4697 unnecessarily, fix up formatting, adjust diagnostics, call
4698 init_attributes.
4699
4700 2014-12-15 Jason Merrill <jason@redhat.com>
4701
4702 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
4703 (-Wsized-deallocation): New.
4704 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
4705 to on in C++14 and up.
4706
4707 2014-12-11 Jason Merrill <jason@redhat.com>
4708
4709 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
4710
4711 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
4712 we aren't complaining about VLAs.
4713
4714 2014-12-06 Marek Polacek <polacek@redhat.com>
4715
4716 PR tree-optimization/64183
4717 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
4718 shift-expression if it is integer_type_node. Use types_compatible_p.
4719
4720 2014-11-29 Jakub Jelinek <jakub@redhat.com>
4721
4722 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
4723 last argument from create_tmp_var_raw and create_tmp_var calls.
4724 * cilk.c (gimplify_cilk_spawn): Likewise.
4725 * c-omp.c (c_finish_omp_atomic): Likewise.
4726
4727 2014-11-28 Marek Polacek <polacek@redhat.com>
4728
4729 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
4730 instead of unsigned_type_node.
4731
4732 2014-11-28 Marek Polacek <polacek@redhat.com>
4733
4734 PR c/63862
4735 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
4736 to op1_utype.
4737 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
4738 expression to unsigned_type_node.
4739
4740 2014-11-20 Mark Wielaard <mjw@redhat.com>
4741
4742 PR debug/38757
4743 * c-opts.c (set_std_c89): Set lang_hooks.name.
4744 (set_std_c99): Likewise.
4745 (set_std_c11): Likewise.
4746 (set_std_cxx98): Likewise.
4747 (set_std_cxx11): Likewise.
4748 (set_std_cxx14): Likewise.
4749 (set_std_cxx1z): Likewise.
4750
4751 2014-11-21 Jakub Jelinek <jakub@redhat.com>
4752
4753 PR target/63764
4754 * c-common.h (convert_vector_to_pointer_for_subscript): Change
4755 return type to bool.
4756 * c-common.c: Include gimple-expr.h.
4757 (convert_vector_to_pointer_for_subscript): Change return type to
4758 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
4759 and copy it into a TARGET_EXPR and use that instead of *vecp
4760 directly.
4761
4762 2014-11-19 David Malcolm <dmalcolm@redhat.com>
4763
4764 Merger of git branch "gimple-classes-v2-option-3".
4765 * ChangeLog.gimple-classes: New.
4766 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
4767 from being just a vec<gimple> to a vec<gbind *>.
4768
4769 2014-11-18 Jakub Jelinek <jakub@redhat.com>
4770
4771 PR sanitizer/63813
4772 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
4773 argument to ptype, set type to TREE_TYPE (ptype). Don't call
4774 get_pointer_alignment for non-pointers. Use ptype, or if it is
4775 reference type, corresponding pointer type, as type of kind
4776 argument.
4777 (ubsan_maybe_instrument_reference,
4778 ubsan_maybe_instrument_member_call): Adjust callers.
4779
4780 2014-11-15 Marek Polacek <polacek@redhat.com>
4781
4782 PR middle-end/63884
4783 * array-notation-common.c (is_sec_implicit_index_fn): Return false
4784 for NULL fndecl.
4785 (extract_array_notation_exprs): Return for NULL node.
4786
4787 2014-11-12 Joseph Myers <joseph@codesourcery.com>
4788
4789 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
4790 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
4791
4792 2014-11-12 Jakub Jelinek <jakub@redhat.com>
4793
4794 PR c/59708
4795 * c-common.c (check_builtin_function_arguments): Handle
4796 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
4797
4798 2014-11-10 Andi Kleen <ak@linux.intel.com>
4799
4800 PR c/60804
4801 * c-common.h (check_no_cilk): Declare.
4802 * cilk.c (get_error_location): New function.
4803 (check_no_cilk): Dito.
4804
4805 2014-11-10 Andi Kleen <ak@linux.intel.com>
4806
4807 * cilk.c (recognize_spawn): Use expression location
4808 for error message.
4809
4810 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
4811
4812 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
4813
4814 2014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
4815
4816 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
4817 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
4818 (__cpp_range_based_for, __cpp_initializer_lists,
4819 __cpp_delegating_constructors, __cpp_nsdmi,
4820 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
4821 for C++11; (__cpp_attribute_deprecated): Remove in favor of
4822 __has_cpp_attribute.
4823 * c-lex.c (cb_has_attribute): New callback CPP function;
4824 (init_c_lex): Set has_attribute callback.
4825
4826 2014-11-04 Richard Biener <rguenther@suse.de>
4827
4828 * c-common.c (shorten_compare): Do not shorten mixed
4829 DFP and non-DFP compares.
4830
4831 2014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
4832
4833 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
4834 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
4835 Commentary and rearrangement of tests.
4836 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
4837 Commentary and rearrangement of tests.
4838 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
4839 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
4840
4841 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
4842
4843 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
4844 enum from machine_mode.
4845
4846 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
4847
4848 * c-common.c: Adjust include files.
4849 * c-gimplify.c: Ditto.
4850 * cilk.c: Ditto.
4851 * c-pragma.c: Ditto.
4852 * c-ubsan.c: Ditto.
4853
4854 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
4855
4856 * c-gimplify.c: Adjust include files.
4857
4858 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
4859
4860 PR c++/53061
4861 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
4862 c_common_initialize_diagnostics.
4863 * c-common.h: Likewise.
4864
4865 2014-10-24 Marek Polacek <polacek@redhat.com>
4866
4867 PR c/56980
4868 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
4869 print "struct"/"union"/"enum" for typedefed names.
4870
4871 2014-10-23 Marek Polacek <polacek@redhat.com>
4872
4873 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
4874 in unsigned type.
4875
4876 2014-10-22 Jakub Jelinek <jakub@redhat.com>
4877 Yury Gribov <y.gribov@samsung.com>
4878
4879 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
4880 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
4881 instead of flag_sanitize_recover as bool flag.
4882
4883 2014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
4884
4885 * cilk.c: Revert previous change.
4886
4887 2014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
4888
4889 PR c/63307
4890 * cilk.c: Include vec.h.
4891 (struct cilk_decls): New structure.
4892 (wrapper_parm_cb): Split this function to...
4893 (fill_decls_vec): ...this...
4894 (create_parm_list): ...and this.
4895 (compare_decls): New function.
4896 (for_local_cb): Remove.
4897 (wrapper_local_cb): Ditto.
4898 (build_wrapper_type): For now first traverse and fill vector of
4899 declarations then sort it and then deal with sorted vector.
4900 (cilk_outline): Ditto.
4901 (declare_one_free_variable): Ditto.
4902
4903 2014-10-17 Marek Polacek <polacek@redhat.com>
4904
4905 * c-opts.c (c_common_post_options): Set warn_implicit_int.
4906 * c.opt (Wimplicit-int): Initialize to -1.
4907
4908 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
4909
4910 * c-pragma.c: Adjust include files.
4911 * c-semantics.c: Likewise.
4912
4913 2014-10-16 DJ Delorie <dj@redhat.com>
4914
4915 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
4916 multiples of bytes.
4917
4918 2014-10-14 Jason Merrill <jason@redhat.com>
4919
4920 PR c++/63455
4921 * c-common.h (CPP_PREPARSED_EXPR): New.
4922 (N_CP_TTYPES): Adjust.
4923
4924 2014-10-15 Marek Polacek <polacek@redhat.com>
4925
4926 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
4927
4928 2014-10-14 DJ Delorie <dj@redhat.com>
4929
4930 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
4931 types, not just __int128.
4932 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
4933 types, not just __int128.
4934 (cpp_atomic_builtins): Round pointer sizes up.
4935 (type_suffix): Use type precision, not specific types.
4936 * c-common.c (c_common_reswords): Remove __int128 special case.
4937 (c_common_type_for_size): Check for all __intN types, not just
4938 __int128.
4939 (c_common_type_for_mode): Likewise.
4940 (c_common_signed_or_unsigned_type): Likewise.
4941 (c_build_bitfield_integer_type): Likewise.
4942 (c_common_nodes_and_builtins): Likewise.
4943 (keyword_begins_type_specifier): Likewise.
4944 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
4945 __intN variants.
4946
4947 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
4948
4949 * c-common.c: Use hash_table instead of hashtab.
4950
4951 2014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
4952
4953 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
4954 C++11 section.
4955
4956 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
4957
4958 PR c++/54427
4959 PR c++/57198
4960 PR c++/58845
4961 * c-common.c (warn_logical_operator): Punt for vectors.
4962
4963 2014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
4964
4965 Implement SD-6: SG10 Feature Test Recommendations
4966 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
4967 macros and the __has_header macro.
4968
4969 2014-09-30 Jason Merrill <jason@redhat.com>
4970
4971 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
4972 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
4973 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
4974
4975 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
4976 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
4977
4978 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
4979 * c-common.c (c_common_reswords): Remove __is_convertible_to.
4980
4981 2014-09-24 Marek Polacek <polacek@redhat.com>
4982
4983 PR c/61405
4984 PR c/53874
4985 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
4986
4987 2014-09-23 Andi Kleen <ak@linux.intel.com>
4988
4989 * c-common.c (handle_no_reorder_attribute): New function.
4990 (c_common_attribute_table): Add no_reorder attribute.
4991
4992 2014-09-22 Joseph Myers <joseph@codesourcery.com>
4993
4994 * c-cppbuiltin.c (c_cpp_builtins): Define
4995 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
4996 modes.
4997
4998 2014-09-18 Joseph Myers <joseph@codesourcery.com>
4999
5000 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
5001 for supported floating-point modes.
5002
5003 2014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5004
5005 * c.opt (Wpsabi): Use LangEnabledBy.
5006 * c-opts.c (c_common_handle_option): Do not handle here.
5007
5008 2014-09-12 Joseph Myers <joseph@codesourcery.com>
5009
5010 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
5011 macros for floating-point modes.
5012
5013 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
5014
5015 PR target/58757
5016 * c-cppbuiltin.c (builtin_define_float_constants): Correct
5017 __*_DENORM_MIN__ without denormals.
5018
5019 2014-09-10 Jakub Jelinek <jakub@redhat.com>
5020
5021 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
5022 ubsan_instrument_vla, ubsan_instrument_return): Adjust
5023 ubsan_create_data callers.
5024 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
5025 index is constant or BIT_AND_EXPR with constant mask and is
5026 small enough for the bound.
5027 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
5028 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
5029
5030 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5031
5032 * c.opt: Add CppReason to various flags.
5033 (Wdate-time): Re-sort.
5034 * c-common.c: Include c-common.h earlier.
5035 (struct reason_option_codes_t): Delete.
5036 (c_option_controlling_cpp_error): Prefix global type and struct
5037 with cpp_.
5038
5039 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5040
5041 * c.opt (Wnormalized): New.
5042 (Wnormalized=): Use Enum and Reject Negative.
5043 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
5044
5045 2014-09-08 Joseph Myers <joseph@codesourcery.com>
5046
5047 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
5048 digits of floating-point modes if -fbuilding-libgcc.
5049
5050 2014-09-05 Joseph Myers <joseph@codesourcery.com>
5051
5052 * c-cppbuiltin.c (c_cpp_builtins): Also define
5053 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
5054 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
5055 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
5056 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
5057 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
5058 __LIBGCC_STACK_GROWS_DOWNWARD__,
5059 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
5060 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
5061 __LIBGCC_DWARF_FRAME_REGISTERS__,
5062 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
5063 __LIBGCC_STACK_POINTER_REGNUM__ and
5064 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
5065 (builtin_define_with_value): Handle backslash-escaping in string
5066 macro values.
5067
5068 2014-09-05 Richard Biener <rguenther@suse.de>
5069
5070 PR middle-end/63148
5071 * c-format.c (check_format_arg): Properly handle
5072 effectively signed POINTER_PLUS_EXPR offset.
5073
5074 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
5075
5076 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
5077 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
5078 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
5079 and Init.
5080 * c-opts.c (c_common_handle_option): Do not handle here.
5081 (sanitize_cpp_opts): Likewise.
5082 * c-common.c (struct reason_option_codes_t): Handle
5083 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
5084
5085 2014-09-03 Marek Polacek <polacek@redhat.com>
5086
5087 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
5088
5089 2014-09-02 Jakub Jelinek <jakub@redhat.com>
5090 Balaji V. Iyer <balaji.v.iyer@intel.com>
5091 Igor Zamyatin <igor.zamyatin@intel.com>
5092
5093 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
5094 * c-common.c (c_common_reswords): Added _Cilk_for.
5095 * c-common.h (enum rid): Added RID_CILK_FOR.
5096 (cilk_for_number_of_iterations): Add declaration.
5097 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
5098 CILK_FOR.
5099 * c-pragma.c (init_pragma): Register "grainsize" pragma.
5100 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
5101
5102 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
5103
5104 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
5105 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
5106 Wundef): Use CPP, Var and Init.
5107 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
5108
5109 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
5110
5111 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
5112 * c-opts.c (c_common_handle_option): Do not handle here.
5113
5114 2014-08-25 Jason Merrill <jason@redhat.com>
5115
5116 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
5117 -std=c++14 and -std=gnu++14, rather than the reverse.
5118 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
5119 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
5120 * c-common.h (cxx_dialect): Remove cxx1y.
5121
5122 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
5123
5124 * c-common.h (enum cxx_dialect): Add cxx14.
5125 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
5126 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
5127 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
5128
5129 2014-08-22 Jason Merrill <jason@redhat.com>
5130
5131 * c.opt (std=gnu++17): Fix alias.
5132
5133 2014-08-22 Marek Polacek <polacek@redhat.com>
5134
5135 PR c++/62199
5136 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
5137 check for vector types. Drop LHS argument.
5138 * c-common.h (warn_logical_not_parentheses): Adjust.
5139
5140 2014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
5141
5142 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
5143 (Wmultichar): Likewise.
5144 (Wdate-time): Use C-family languages instead of Common. Use CPP
5145 and Var.
5146 * c-opts.c (c_common_handle_option): Do not handle the above
5147 options here.
5148 (sanitize_cpp_opts): Likewise.
5149
5150 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5151
5152 PR fortran/44054
5153 * c-opts.c: Include tree-diagnostics.h.
5154 (c_diagnostic_finalizer): New.
5155 (c_common_initialize_diagnostics): Use it.
5156
5157 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5158
5159 PR preprocessor/51303
5160 * c-common.c (struct reason_option_codes_t option_codes):
5161 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
5162
5163 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5164
5165 PR c/60975
5166 PR c/53063
5167 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
5168 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
5169 (c_common_post_options): Call init_global_opts_from_cpp.
5170 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
5171
5172 2014-08-19 Marek Polacek <polacek@redhat.com>
5173
5174 PR c++/62153
5175 * c-common.c (maybe_warn_bool_compare): New function.
5176 * c-common.h (maybe_warn_bool_compare): Declare.
5177 * c.opt (Wbool-compare): New option.
5178
5179 2014-08-19 Marek Polacek <polacek@redhat.com>
5180
5181 * c.opt (Wc99-c11-compat): New option.
5182
5183 2014-08-19 Marek Polacek <polacek@redhat.com>
5184
5185 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
5186 to warn_c90_c99_compat.
5187 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
5188 to -1.
5189
5190 2014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
5191 Steven Bosscher <steven@gcc.gnu.org>
5192
5193 PR c/52952
5194 * c-format.c: Add extra_arg_loc and format_string_loc to struct
5195 format_check_results.
5196 (check_function_format): Use true and add comment for boolean
5197 argument.
5198 (finish_dollar_format_checking): Use explicit location when warning.
5199 (check_format_info): Likewise.
5200 (check_format_arg): Set extra_arg_loc and format_string_loc.
5201 (check_format_info_main): Use explicit location when warning.
5202 (check_format_types): Pass explicit location.
5203 (format_type_warning): Likewise.
5204
5205 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5206
5207 PR fortran/44054
5208 * c-format.c: Handle Fortran flags.
5209
5210 2014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
5211
5212 PR other/61962
5213 * array-notation-common.c (find_rank): Added handling for other
5214 types of references.
5215
5216 2014-08-10 Marek Polacek <polacek@redhat.com>
5217
5218 PR c/51849
5219 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
5220 * c.opt (Wc90-c99-compat): Add option.
5221
5222 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
5223
5224 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
5225
5226 2014-08-03 Marek Polacek <polacek@redhat.com>
5227
5228 * c-common.c (check_case_value): Add location_t parameter. Use it.
5229 (c_add_case_label): Pass loc to check_case_value.
5230
5231 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
5232
5233 * cilk.c: Use hash_map instead of pointer_map.
5234
5235 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
5236
5237 * c-gimplify.c: Use hash_set instead of pointer_set.
5238
5239 2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
5240
5241 PR middle-end/61455
5242 * array-notation-common.c (extract_array_notation_exprs): Handling
5243 of DECL_EXPR added.
5244
5245 2014-08-01 Jakub Jelinek <jakub@redhat.com>
5246
5247 * c-common.h (min_align_of_type): Removed prototype.
5248 * c-common.c (min_align_of_type): Removed.
5249 * c-ubsan.h (ubsan_maybe_instrument_reference,
5250 ubsan_maybe_instrument_member_call): New prototypes.
5251 * c-ubsan.c: Include stor-layout.h and builtins.h.
5252 (ubsan_maybe_instrument_reference_or_call,
5253 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
5254 functions.
5255
5256 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
5257
5258 PR c++/60517
5259 * c.opt (-Wreturn-local-addr): Move to common.opt.
5260
5261 2014-07-30 Jason Merrill <jason@redhat.com>
5262
5263 PR c++/61659
5264 PR c++/61687
5265 Revert:
5266 * c.opt (-fuse-all-virtuals): New.
5267
5268 2014-07-30 Tom Tromey <tromey@redhat.com>
5269
5270 PR c/59855
5271 * c.opt (Wdesignated-init): New option.
5272 * c-common.c (c_common_attribute_table): Add "designated_init".
5273 (handle_designated_init): New function.
5274
5275 2014-07-24 Marek Polacek <polacek@redhat.com>
5276
5277 PR c/57653
5278 * c-opts.c (c_finish_options): If -imacros is in effect, return.
5279
5280 2014-07-16 Dodji Seketeli <dodji@redhat.com>
5281
5282 PR preprocessor/60723 - missing system-ness marks for macro tokens
5283 * c-ppoutput.c (struct print::prev_was_system_token): New data
5284 member.
5285 (init_pp_output): Initialize it.
5286 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
5287 (do_line_change): Return a flag saying if a line marker was
5288 emitted or not.
5289 (scan_translation_unit): Detect if the system-ness of the token we
5290 are about to emit is different from the one of the previously
5291 emitted token. If so, emit a line marker. Avoid emitting useless
5292 adjacent line markers. Avoid emitting line markers for tokens
5293 originating from the expansion of built-in macros.
5294 (scan_translation_unit_directives_only): Adjust.
5295
5296 2014-07-15 Marek Polacek <polacek@redhat.com>
5297
5298 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
5299 TYPE_MAX_VALUE is NULL.
5300
5301 2014-07-14 Jakub Jelinek <jakub@redhat.com>
5302
5303 PR middle-end/61294
5304 * c.opt (Wmemset-transposed-args): New warning.
5305
5306 2014-07-10 Jason Merrill <jason@redhat.com>
5307
5308 PR c++/61659
5309 PR c++/61687
5310 * c.opt (-fuse-all-virtuals): New.
5311
5312 2014-07-09 Richard Biener <rguenther@suse.de>
5313
5314 PR c-family/61741
5315 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
5316 using unsigned arithmetic if overflow does not wrap instead of
5317 if overflow is undefined.
5318
5319 2014-07-06 Marek Polacek <polacek@redhat.com>
5320
5321 PR c/6940
5322 * c.opt (Wsizeof-array-argument): New option.
5323
5324 2014-07-03 Jakub Jelinek <jakub@redhat.com>
5325
5326 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
5327 comments->count <= 1, as comments->entries might be NULL.
5328
5329 2014-07-01 Marek Polacek <polacek@redhat.com>
5330
5331 * c.opt (Wint-conversion): New option.
5332
5333 2014-07-01 Marek Polacek <polacek@redhat.com>
5334
5335 PR c/58286
5336 * c.opt (Wincompatible-pointer-types): New option.
5337
5338 2014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
5339
5340 PR c++/51400
5341 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
5342 Do not discard TYPE_QUALS of type.
5343
5344 2014-06-26 Jason Merrill <jason@redhat.com>
5345
5346 * c-common.h (enum cxx_dialect): Add cxx1z.
5347 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
5348 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
5349
5350 2014-06-26 Teresa Johnson <tejohnson@google.com>
5351
5352 * c-common.h (get_dump_info): Declare.
5353 * c-gimplify.c (c_genericize): Use saved dump files.
5354 * c-opts.c (c_common_parse_file): Begin and end dumps
5355 once around parsing invocation.
5356 (get_dump_info): New function.
5357
5358 2014-06-23 Marek Polacek <polacek@redhat.com>
5359 Andrew MacLeod <amacleod@redhat.com>
5360
5361 PR c/61553
5362 * c-common.c (get_atomic_generic_size): Don't segfault if the
5363 type doesn't have a size.
5364
5365 2014-06-20 Marek Polacek <polacek@redhat.com>
5366
5367 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
5368 (ubsan_walk_array_refs_r): New function.
5369 (c_genericize): Instrument array bounds.
5370 * c-ubsan.c: Include "internal-fn.h".
5371 (ubsan_instrument_division): Mark instrumented arrays as having
5372 side effects. Adjust ubsan_type_descriptor call.
5373 (ubsan_instrument_shift): Likewise.
5374 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
5375 (ubsan_instrument_bounds): New function.
5376 (ubsan_array_ref_instrumented_p): New function.
5377 (ubsan_maybe_instrument_array_ref): New function.
5378 * c-ubsan.h (ubsan_instrument_bounds): Declare.
5379 (ubsan_array_ref_instrumented_p): Declare.
5380 (ubsan_maybe_instrument_array_ref): Declare.
5381
5382 2014-06-20 Hale Wang <hale.wang@arm.com>
5383
5384 PR lto/61123
5385 * c.opt (fshort-enums): Add to LTO.
5386 * c.opt (fshort-wchar): Likewise.
5387
5388 2014-06-16 Marek Polacek <polacek@redhat.com>
5389
5390 PR c/60439
5391 * c.opt (Wswitch-bool): Add Var.
5392
5393 2014-06-12 Jakub Jelinek <jakub@redhat.com>
5394
5395 PR middle-end/61486
5396 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
5397 #pragma omp target teams or
5398 #pragma omp {,target }teams distribute simd.
5399
5400 2014-06-12 Jason Merrill <jason@redhat.com>
5401
5402 * c.opt (Wabi=, fabi-compat-version): New.
5403 * c-opts.c (c_common_handle_option): Handle -Wabi=.
5404 (c_common_post_options): Handle flag_abi_compat_version default.
5405 Disallow -fabi-compat-version=1.
5406 * c-common.h (abi_version_crosses): New.
5407
5408 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
5409
5410 * c-common.c (handle_section_attribute): Update handling for
5411 section names that are no longer trees.
5412
5413 2014-06-10 Jakub Jelinek <jakub@redhat.com>
5414
5415 PR fortran/60928
5416 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
5417 (omp_pragmas): ... back here.
5418
5419 2014-06-05 Marek Polacek <polacek@redhat.com>
5420
5421 PR c/49706
5422 * c-common.c (warn_logical_not_parentheses): New function.
5423 * c-common.h (warn_logical_not_parentheses): Declare.
5424 * c.opt (Wlogical-not-parentheses): New option.
5425
5426 2014-06-04 Marek Polacek <polacek@redhat.com>
5427
5428 PR c/30020
5429 * c-common.c (check_case_bounds): Add location parameter.
5430 Use it.
5431 (c_add_case_label): Pass loc to check_case_bounds.
5432
5433 2014-06-03 Marek Polacek <polacek@redhat.com>
5434
5435 PR c/60439
5436 * c.opt (Wswitch-bool): New option.
5437
5438 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
5439
5440 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
5441 Remove prototypes.
5442 (record_types_used_by_current_var_decl): Move prototype to where
5443 it belongs.
5444
5445 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
5446 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
5447 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
5448
5449 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
5450
5451 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
5452 * c-common.c (c_common_nodes_and_builtins): Don't initialize
5453 void_zero_node.
5454 * c-pretty-print.c (pp_c_void_constant): New function.
5455 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
5456 (c_pretty_printer::expression): Handle VOID_CST.
5457 * cilk.c (extract_free_variables): Likewise.
5458 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
5459 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
5460
5461 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
5462
5463 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
5464 * c-pragma.c (push_alignment): Adjust.
5465 (handle_pragma_push_options): Likewise.
5466
5467 2014-05-09 Marek Polacek <polacek@redhat.com>
5468
5469 PR c/50459
5470 * c-common.c (check_user_alignment): Return -1 if alignment is error
5471 node.
5472 (handle_aligned_attribute): Don't call default_conversion on
5473 FUNCTION_DECLs.
5474 (handle_vector_size_attribute): Likewise.
5475 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
5476 (handle_sentinel_attribute): Call default_conversion and allow even
5477 integral types as an argument.
5478
5479 2014-05-08 Marek Polacek <polacek@redhat.com>
5480
5481 PR c/61053
5482 * c-common.c (min_align_of_type): New function factored out from...
5483 (c_sizeof_or_alignof_type): ...here.
5484 * c-common.h (min_align_of_type): Declare.
5485
5486 2014-05-08 Marek Polacek <polacek@redhat.com>
5487
5488 PR c/61077
5489 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
5490 parameter type of main.
5491
5492 2014-05-07 DJ Delorie <dj@redhat.com>
5493
5494 * c-cppbuiltin.c (print_bits_of_hex): New.
5495 (builtin_define_type_minmax): Print values using hex so as not to
5496 require a pre-computed list of string values.
5497
5498 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
5499 Mike Stump <mikestump@comcast.net>
5500 Richard Sandiford <rdsandiford@googlemail.com>
5501
5502 * c-ada-spec.c: Include wide-int.h.
5503 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
5504 (dump_generic_ada_node): Use wide-int interfaces.
5505 * c-common.c: Include wide-int-print.h.
5506 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
5507 (pointer_int_sum): Use wide-int interfaces.
5508 (c_common_nodes_and_builtins): Use make_int_cst.
5509 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
5510 (handle_alloc_size_attribute): Use wide-int interfaces.
5511 (get_nonnull_operand): Likewise.
5512 * c-format.c (get_constant): Use tree_fits_uhwi_p.
5513 * c-lex.c: Include wide-int.h.
5514 (narrowest_unsigned_type): Take a widest_int rather than two
5515 HOST_WIDE_INTs.
5516 (narrowest_signed_type): Likewise.
5517 (interpret_integer): Update accordingly. Use wide-int interfaces.
5518 (lex_charconst): Use wide-int interfaces.
5519 * c-pretty-print.c: Include wide-int.h.
5520 (pp_c_integer_constant): Use wide-int interfaces.
5521 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
5522 INT_CST_LT_UNSIGNED.
5523
5524 2014-05-06 Richard Biener <rguenther@suse.de>
5525
5526 * c-opts.c (c_common_post_options): For -freestanding,
5527 -fno-hosted and -fno-builtin disable pattern recognition
5528 if not enabled explicitely.
5529
5530 2014-05-02 Marek Polacek <polacek@redhat.com>
5531
5532 * c.opt (Wsizeof-pointer-memaccess): Describe option.
5533
5534 2014-05-01 Marek Polacek <polacek@redhat.com>
5535
5536 PR c/43245
5537 * c.opt (Wdiscarded-qualifiers): Add.
5538
5539 2014-04-30 Marek Polacek <polacek@redhat.com>
5540
5541 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
5542 INT_MIN / -1 sanitization only for integer types.
5543
5544 2014-04-25 Marek Polacek <polacek@redhat.com>
5545
5546 PR c/18079
5547 * c-common.c (handle_noinline_attribute): Warn if the attribute
5548 conflicts with always_inline attribute.
5549 (handle_always_inline_attribute): Warn if the attribute conflicts
5550 with noinline attribute.
5551
5552 2014-04-25 Marek Polacek <polacek@redhat.com>
5553
5554 PR c/60156
5555 * c-common.c (check_main_parameter_types): Warn about variadic main.
5556
5557 2014-04-24 Mike Stump <mikestump@comcast.net>
5558
5559 * c.opt (Wshadow-ivar): Default to on.
5560
5561 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
5562
5563 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
5564
5565 2014-04-23 Marek Polacek <polacek@redhat.com>
5566
5567 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
5568
5569 2014-04-22 Jakub Jelinek <jakub@redhat.com>
5570
5571 PR sanitizer/60275
5572 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
5573 if flag_sanitize_undefined_trap_on_error.
5574 (ubsan_instrument_division, ubsan_instrument_shift,
5575 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
5576 if !flag_sanitize_recover.
5577
5578 2014-04-22 Marc Glisse <marc.glisse@inria.fr>
5579
5580 PR libstdc++/43622
5581 * c-common.c (registered_builtin_types): Make non-static.
5582 * c-common.h (registered_builtin_types): Declare.
5583
5584 2014-04-14 Richard Biener <rguenther@suse.de>
5585 Marc Glisse <marc.glisse@inria.fr>
5586
5587 PR c/60819
5588 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
5589 apply may-alias the scalar pointer type when applicable.
5590
5591 2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
5592
5593 PR middle-end/60467
5594 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
5595 as possible argument for Cilk_spawn.
5596
5597 2014-04-11 Tobias Burnus <burnus@net-b.de>
5598
5599 PR c/60194
5600 * c.opt (Wformat-signedness): Add
5601 * c-format.c(check_format_types): Use it.
5602
5603 2014-04-11 Jason Merrill <jason@redhat.com>
5604
5605 PR c++/57926
5606 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
5607 default_conversion for an array argument.
5608
5609 2014-04-08 Marek Polacek <polacek@redhat.com>
5610
5611 PR sanitizer/60745
5612 * c-ubsan.c: Include asan.h.
5613 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
5614
5615 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
5616
5617 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
5618
5619 2014-04-02 Marek Polacek <polacek@redhat.com>
5620
5621 * c-common.h (c_expand_expr): Remove declaration.
5622
5623 2014-03-28 Jakub Jelinek <jakub@redhat.com>
5624
5625 PR c++/60689
5626 * c-common.c (add_atomic_size_parameter): When creating new
5627 params vector, push the size argument first.
5628
5629 2014-03-26 Jakub Jelinek <jakub@redhat.com>
5630
5631 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
5632 ubsan_instrument_vla, ubsan_instrument_return): Adjust
5633 ubsan_create_data callers.
5634
5635 2014-03-22 Jakub Jelinek <jakub@redhat.com>
5636
5637 PR debug/60603
5638 * c-opts.c (c_finish_options): Restore cb_file_change call to
5639 <built-in>.
5640
5641 2014-03-13 Jakub Jelinek <jakub@redhat.com>
5642
5643 PR middle-end/36282
5644 * c-pragma.c (apply_pragma_weak): Only look at
5645 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
5646 DECL_ASSEMBLER_NAME_SET_P (decl).
5647 (maybe_apply_pending_pragma_weaks): Exit early if
5648 vec_safe_is_empty (pending_weaks) rather than only when
5649 !pending_weaks.
5650 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
5651 set assembler name back to NULL afterwards.
5652
5653 2014-03-11 Jason Merrill <jason@redhat.com>
5654
5655 * c.opt: Add -std=gnu++14.
5656
5657 2014-03-11 Ian Bolton <ian.bolton@arm.com>
5658
5659 * c-opts.c (c_common_post_options): Don't override
5660 -ffp-contract=fast if unsafe-math-optimizations is on.
5661
5662 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
5663
5664 * c.opt: Enable LTO FE for fshort-double.
5665
5666 2014-03-07 Jason Merrill <jason@redhat.com>
5667
5668 * c.opt: Add -std=c++14.
5669
5670 2014-03-06 Marek Polacek <polacek@redhat.com>
5671
5672 PR c/60197
5673 * cilk.c (contains_cilk_spawn_stmt): New function.
5674 (contains_cilk_spawn_stmt_walker): Likewise.
5675 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
5676 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
5677
5678 2014-03-03 Jakub Jelinek <jakub@redhat.com>
5679
5680 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
5681 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
5682 even when flag_preprocess_only.
5683
5684 2014-02-26 Jason Merrill <jason@redhat.com>
5685
5686 PR c++/59231
5687 PR c++/11586
5688 * c-common.c (shorten_compare): Don't check
5689 c_inhibit_evaluation_warnings.
5690
5691 2014-02-19 Jakub Jelinek <jakub@redhat.com>
5692
5693 PR c/37743
5694 * c-common.c (c_common_nodes_and_builtins): When initializing
5695 c_uint{16,32,64}_type_node, also set corresponding
5696 uint{16,32,64}_type_node to the same value.
5697
5698 PR c++/60267
5699 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
5700 for PRAGMA_IVDEP if flag_preprocess_only.
5701
5702 2014-02-12 Jakub Jelinek <jakub@redhat.com>
5703
5704 PR c/60101
5705 * c-common.c (merge_tlist): If copy is true, call new_tlist,
5706 if false, add ADD itself, rather than vice versa.
5707 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
5708 copy. For SAVE_EXPR, only call merge_tlist once.
5709
5710 2014-02-08 Jakub Jelinek <jakub@redhat.com>
5711
5712 PR middle-end/60092
5713 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
5714 and tree_to_uhwi.
5715 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
5716 functions.
5717 (c_common_attribute_table): Add alloc_align and assume_aligned
5718 attributes.
5719
5720 2014-02-06 Marek Polacek <polacek@redhat.com>
5721
5722 PR c/60087
5723 * c-common.c (warn_for_sign_compare): Call warning_at with location
5724 instead of warning.
5725
5726 2014-02-05 Marek Polacek <polacek@redhat.com>
5727
5728 PR c/53123
5729 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
5730 statement.
5731
5732 2014-02-04 Marek Polacek <polacek@redhat.com>
5733
5734 PR c/60036
5735 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
5736 SAVE_EXPR.
5737
5738 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
5739
5740 PR c++/53017
5741 PR c++/59211
5742 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
5743 handle_vector_size_attribute, handle_nonnull_attribute): Call
5744 default_conversion on the attribute argument.
5745 (handle_nonnull_attribute): Increment the argument number.
5746
5747 2014-01-31 Marek Polacek <polacek@redhat.com>
5748
5749 PR c/59963
5750 * c-common.c (add_atomic_size_parameter): Pass vNULL to
5751 build_function_call_vec.
5752 (resolve_overloaded_builtin): Likewise.
5753 * c-common.h (build_function_call_vec): Adjust declaration.
5754
5755 2014-01-30 Marek Polacek <polacek@redhat.com>
5756
5757 PR c/59940
5758 * c-common.h (unsafe_conversion_p): Adjust declaration.
5759 (warnings_for_convert_and_check): Likewise.
5760 (convert_and_check): Likewise.
5761 * c-common.c (unsafe_conversion_p): Add location parameter. Call
5762 expansion_point_location_if_in_system_header on it.
5763 (warnings_for_convert_and_check): Add location parameter. Call
5764 expansion_point_location_if_in_system_header on it. Use it.
5765 (convert_and_check): Add location parameter. Use it.
5766 (conversion_warning): Likewise.
5767 (c_add_case_label): Adjust convert_and_check calls.
5768 (scalar_to_vector): Adjust unsafe_conversion_p calls.
5769
5770 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
5771
5772 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
5773 flag_cilkplus.
5774 * c-pragma.c (init_pragma): Likewise.
5775 * c.opt: Likewise.
5776
5777 2014-01-23 Marek Polacek <polacek@redhat.com>
5778
5779 PR c/59846
5780 * c-common.c (shorten_compare): Add location_t parameter.
5781 * c-common.h (shorten_binary_op): Adjust declaration.
5782
5783 2014-01-23 Marek Polacek <polacek@redhat.com>
5784
5785 PR c/58346
5786 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
5787 * c-common.h: Declare it.
5788
5789 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
5790
5791 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
5792 * c-ada-spec.c (dump_ads): Likewise.
5793 (cpp_check): Likewise.
5794 (dump_ada_specs): Likewise.
5795
5796 2014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
5797
5798 PR c++/49718
5799 * c-common.c (handle_no_instrument_function_attribute): Allow
5800 no_instrument_function attribute in class member
5801 definition/declaration.
5802
5803 2014-01-15 Jakub Jelinek <jakub@redhat.com>
5804
5805 PR c/58943
5806 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
5807 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
5808 being COMPOUND_EXPR.
5809 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
5810 operand a SAVE_EXPR and second MODIFY_EXPR.
5811
5812 2014-01-09 Jakub Jelinek <jakub@redhat.com>
5813
5814 PR target/58115
5815 * c-pch.c (c_common_write_pch): Call
5816 prepare_target_option_nodes_for_pch.
5817
5818 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
5819
5820 Update copyright years
5821
5822 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
5823
5824 * array-notation-common.c, c-cilkplus.c: Use the standard form for
5825 the copyright notice.
5826
5827 2013-12-28 Eric Botcazou <ebotcazou@adacore.com>
5828
5829 * c-ada-spec.c (print_constructor): New function.
5830 (print_destructor): Retrieve the origin of the destructor.
5831 (print_ada_declaration): Revamp handling of constructors/destructors.
5832
5833 2013-12-23 Stuart Hastings <stuart@apple.com>
5834 Bill Maddox <maddox@google.com>
5835 Jason Merrill <jason@redhat.com>
5836
5837 * c.opt: Add -fdeclone-ctor-dtor.
5838 * c-opts.c (c_common_post_options): Default to on iff -Os.
5839
5840 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
5841
5842 * c-common.c (c_common_attribute_table): Added "cilk simd function"
5843 attribute.
5844 * c-pragma.h (enum pragma_cilk_clause): Remove.
5845 (enum pragma_omp_clause): Added the following fields:
5846 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
5847 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
5848 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
5849 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
5850 PRAGMA_CILK_CLAUSE_UNIFORM.
5851
5852
5853 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
5854
5855 * cilk.c (cilk_outline): Made this function non-static.
5856 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
5857 (create_cilk_wrapper): Added a new parameter: a function pointer.
5858 (c_install_body_w_frame_cleanup): Remove
5859 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
5860 * c-common.h (cilk_outline): New prototype.
5861 (gimplify_cilk_spawn): Removed two parameters.
5862 (cilk_install_body_with_frame_cleanup): New prototype.
5863 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
5864 CILK_SPAWN_STMT case.
5865
5866 2013-12-11 Bernd Schmidt <bernds@codesourcery.com>
5867
5868 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
5869
5870 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
5871 (int_array_type_node): Remove.
5872 * c-common.c (c_common_nodes_and_builtins): Don't build it.
5873
5874 2013-12-05 Marek Polacek <polacek@redhat.com>
5875
5876 PR c/52023
5877 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
5878 [ADJUST_FIELD_ALIGN].
5879
5880 2013-12-04 Joseph Myers <joseph@codesourcery.com>
5881
5882 PR c/52023
5883 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
5884 and check field alignment if set.
5885 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
5886 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
5887
5888 2013-12-04 Jakub Jelinek <jakub@redhat.com>
5889 Marek Polacek <polacek@redhat.com>
5890
5891 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
5892 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
5893
5894 2013-11-29 H.J. Lu <hongjiu.lu@intel.com>
5895
5896 PR c/59309
5897 * cilk.c (gimplify_cilk_spawn): Properly handle function without
5898 arguments.
5899
5900 2013-11-29 Jakub Jelinek <jakub@redhat.com>
5901
5902 PR c/59280
5903 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
5904 goto invalid. If it is error_mark_node, don't issue further
5905 diagnostics.
5906
5907 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
5908
5909 * c.opt (Wopenmp-simd): New.
5910
5911 2013-11-22 Jakub Jelinek <jakub@redhat.com>
5912
5913 * c-ubsan.h (ubsan_instrument_return): New prototype.
5914 * c-ubsan.c (ubsan_instrument_return): New function.
5915
5916 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
5917
5918 * c-common.c: Add required include files from gimple.h.
5919 * c-gimplify.c: Likewise
5920 * cilk.c: Likewise
5921
5922 2013-11-22 David Malcolm <dmalcolm@redhat.com>
5923
5924 * c-common.c (unsafe_conversion_p): Remove use of
5925 EXPR_LOC_OR_HERE macro.
5926 (conversion_warning): Likewise.
5927 (warnings_for_convert_and_check): Likewise.
5928 (warn_for_collisions_1): Likewise.
5929 (shorten_compare): Likewise, and remove use of in_system_header
5930 macro, using the location from the former.
5931 * c-lex.c (dump_one_header): Remove use of input_filename macro.
5932 (cb_def_pragma): Remove use of in_system_header macro.
5933 (lex_string): Likewise.
5934 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
5935
5936 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
5937 Mike Stump <mikestump@comcast.net>
5938 Richard Sandiford <rdsandiford@googlemail.com>
5939
5940 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
5941 instead of TREE_INT_CST_LOW, in cases where there is a protecting
5942 tree_fits_shwi_p or tree_fits_uhwi_p.
5943 (dump_generic_ada_node): Likewise.
5944 * c-format.c (check_format_arg): Likewise.
5945 * c-pretty-print.c (pp_c_integer_constant): Likewise.
5946
5947 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
5948
5949 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
5950
5951 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
5952
5953 PR c/53001
5954 * c-common.c (unsafe_conversion_p): Make this function
5955 return an enumeration with more detail.
5956 (conversion_warning): Use the new return type of
5957 unsafe_conversion_p to separately warn either about conversions
5958 that lower floating point number precision or about the other
5959 kinds of conversions.
5960 * c-common.h (enum conversion_safety): New enumeration.
5961 (unsafe_conversion_p): switching return type to
5962 conversion_safety enumeration.
5963 * c.opt: Adding new warning -Wfloat-conversion and
5964 enabling it with -Wconversion.
5965
5966 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
5967
5968 * c-opts.c: Include plugin.h.
5969 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
5970
5971 2013-11-19 Marek Polacek <polacek@redhat.com>
5972
5973 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
5974 call.
5975 (ubsan_instrument_shift): Likewise.
5976 (ubsan_instrument_vla): Likewise.
5977
5978 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5979
5980 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
5981 cast to unsigned type.
5982
5983 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5984
5985 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
5986 tree_low_cst.
5987 (complete_array_type): Update comment to refer to tree_to_[su]hwi
5988 rather than tree_low_cst.
5989
5990 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5991
5992 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
5993 tree_to_uhwi throughout.
5994
5995 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5996
5997 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
5998 tree_low_cst (..., 0) with tree_to_shwi throughout.
5999
6000 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6001
6002 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
6003 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
6004
6005 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6006
6007 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
6008 host_integerp (..., 0) with tree_fits_shwi_p throughout.
6009
6010 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
6011
6012 * c-cilkplus.c: New file.
6013 * c-common.c (readonly_error): Add location argument.
6014 * c-common.h (readonly_error): Same.
6015 (c_finish_cilk_clauses): Protoize.
6016 (c_check_cilk_loop): Same.
6017 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
6018 Do not fail on error_mark_node.
6019 Abstract increment canonicalization to here...
6020 (c_omp_for_incr_canonicalize_ptr): New.
6021 c-pragma.c (init_pragma): Register "simd" pragma.
6022 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
6023 (enum pragma_cilk_clause): New.
6024
6025 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
6026
6027 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
6028 wchar_type and host_integerp checks.
6029
6030 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
6031
6032 * c-common.c: Likewise.
6033 * c-gimplify.c: Likewise.
6034 * cilk.c: Likewise.
6035
6036 2013-11-14 Diego Novillo <dnovillo@google.com>
6037
6038 * c-common.c: Include fold-const.h.
6039 Include stor-layout.h.
6040 Include calls.h.
6041 Include stringpool.h.
6042 Include attribs.h.
6043 Include varasm.h.
6044 Include trans-mem.h.
6045 * c-cppbuiltin.c: Include stor-layout.h.
6046 Include stringpool.h.
6047 * c-format.c: Include stringpool.h.
6048 * c-lex.c: Include stringpool.h.
6049 Include stor-layout.h.
6050 * c-pragma.c: Include stringpool.h.
6051 Include attribs.h.
6052 Include varasm.h.
6053 Include gcc-symtab.h.
6054 * c-pretty-print.c: Include stor-layout.h.
6055 Include attribs.h.
6056 * cilk.c: Include stringpool.h.
6057 Include calls.h.
6058
6059 2013-11-13 Joseph Myers <joseph@codesourcery.com>
6060
6061 * c-common.h (enum rid): Add RID_AUTO_TYPE.
6062 * c-common.c (c_common_reswords): Add __auto_type.
6063 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
6064
6065 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
6066
6067 * c-common.c: Include gimplify.h.
6068 * c-gimplify.c: Likewise.
6069 * cilk.c: Likewise.
6070 * c-omp.c: Include gimple-expr.h instead of gimple.h.
6071 * c-ubsan.c: Don't include gimple.h.
6072
6073 2013-11-12 Joseph Myers <joseph@codesourcery.com>
6074
6075 * c-common.c (c_common_reswords): Add _Thread_local.
6076
6077 2013-11-09 Joseph Myers <joseph@codesourcery.com>
6078
6079 * c-common.c (atomic_size_supported_p): New function.
6080 (resolve_overloaded_atomic_exchange)
6081 (resolve_overloaded_atomic_compare_exchange)
6082 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
6083 Use it instead of comparing size with a local list of sizes.
6084
6085 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
6086 Joseph Myers <joseph@codesourcery.com>
6087
6088 * c-common.h (enum rid): Add RID_ATOMIC.
6089 * c-common.c (c_common_reswords): Add _Atomic.
6090 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
6091 (keyword_is_type_qualifier): Accept RID_ATOMIC.
6092 * c-format.c (check_format_types): Check for extra _Atomic
6093 qualifiers in format argument.
6094 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
6095 (pp_c_type_qualifier_list): Mention _Atomic in comment.
6096
6097 2013-11-06 Tobias Burnus <burnus@net-b.de>
6098
6099 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
6100
6101 2013-11-06 Joseph Myers <joseph@codesourcery.com>
6102
6103 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
6104 standards modes.
6105 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
6106 to mean lack of IEEE 754 support.
6107
6108 2013-11-05 Tobias Burnus <burnus@net-b.de>
6109
6110 * c.opt (-Wdate-time): New option
6111 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
6112
6113 2013-11-05 Joseph Myers <joseph@codesourcery.com>
6114
6115 * c-cppbuiltin.c (cpp_iec_559_value): Test
6116 flag_excess_precision_cmdline not flag_excess_precision.
6117
6118 2013-11-05 Tobias Burnus <burnus@net-b.de>
6119
6120 * c.opt (fopenmp-simd): New option.
6121 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
6122 (omp_pragmas): ... this new struct.
6123 (c_pp_lookup_pragma): Also walk omp_pragmas.
6124 (init_pragma): Init pragmas for -fopenmp-simd.
6125
6126 2013-11-04 Marek Polacek <polacek@redhat.com>
6127
6128 PR c++/58979
6129 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
6130
6131 2013-11-04 Joseph Myers <joseph@codesourcery.com>
6132
6133 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
6134 New functions.
6135 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
6136
6137 2013-11-04 Eric Botcazou <ebotcazou@adacore.com>
6138
6139 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
6140 (dump_ada_specs): Adjust prototype of second callback.
6141 * c-ada-spec.c (cpp_check): New global variable.
6142 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
6143 (print_generic_ada_decl): Likewise.
6144 (has_static_fields): Change return type to bool and add guard.
6145 (has_nontrivial_methods): New predicate.
6146 (is_tagged_type): Change return type to bool.
6147 (separate_class_package): Call has_nontrivial_methods.
6148 (pp_ada_tree_identifier): Minor tweaks.
6149 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
6150 (dump_ada_array_domains): Likewise.
6151 (dump_ada_array_type): Likewise.
6152 (dump_template_types): Remove cpp_check parameter and do not pass it to
6153 dump_generic_ada_node.
6154 (dump_ada_template): Likewise.
6155 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
6156 recursively.
6157 (print_ada_methods): Change return type to integer. Remove cpp_check
6158 parameter and do not pass it down.
6159 (dump_nested_types): Remove cpp_check parameter and do not pass it to
6160 dump_generic_ada_node.
6161 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
6162 accessing methods.
6163 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
6164 down. Use has_nontrivial_methods to recognize C++ classes. Use return
6165 value of print_ada_methods.
6166 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
6167 Set cpp_check to it before invoking dump_ada_nodes.
6168 (dump_ada_specs): Likewise.
6169
6170 2013-11-03 Marek Polacek <polacek@redhat.com>
6171
6172 * c-ubsan.c: Don't include hash-table.h.
6173 (ubsan_instrument_vla): New function.
6174 * c-ubsan.h: Declare it.
6175
6176 2013-10-31 David Malcolm <dmalcolm@redhat.com>
6177
6178 Automated part of renaming of symtab_node_base to symtab_node.
6179
6180 Patch autogenerated by rename_symtab.py from
6181 https://github.com/davidmalcolm/gcc-refactoring-scripts
6182 revision 58bb219cc090b2f4516a9297d868c245495ee622
6183
6184 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
6185 symtab_node_base to symtab_node.
6186
6187 2013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
6188
6189 Implement C++14 digit separators.
6190 * c-lex.c (interpret_float): Remove digit separators from scratch string
6191 before building real literal.
6192
6193 2013-10-30 Jakub Jelinek <jakub@redhat.com>
6194
6195 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
6196
6197 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
6198
6199 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
6200 fields.
6201 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
6202 enabled.
6203 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
6204 (insert_cilk_frame): New prototype.
6205 (cilk_init_builtins): Likewise.
6206 (gimplify_cilk_spawn): Likewise.
6207 (c_cilk_install_body_w_frame_cleanup): Likewise.
6208 (cilk_detect_spawn_and_unwrap): Likewise.
6209 (cilk_set_spawn_marker): Likewise.
6210 (build_cilk_sync): Likewise.
6211 (build_cilk_spawn): Likewise.
6212 * cilk.c: New file.
6213
6214 2013-10-29 David Malcolm <dmalcolm@redhat.com>
6215
6216 Patch autogenerated by refactor_symtab.py from
6217 https://github.com/davidmalcolm/gcc-refactoring-scripts
6218 revision 58bb219cc090b2f4516a9297d868c245495ee622
6219
6220 * c-gimplify.c (c_genericize): Update for conversion of symtab types
6221 to a true class hierarchy.
6222 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
6223
6224 2013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
6225
6226 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
6227
6228 2013-10-26 Jeff Law <law@redhat.com>
6229
6230 * c-common.c (c_define_builtins): Remove mudflap support.
6231 * c.opt: Ignore and warn for mudflap options.
6232
6233 2013-10-24 Tobias Burnus <burnus@net-b.de>
6234
6235 PR other/33426
6236 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
6237 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
6238
6239 2013-10-23 Jason Merrill <jason@redhat.com>
6240
6241 * c-format.c (gcc_cxxdiag_char_table): Add %X.
6242
6243 2013-10-11 Jakub Jelinek <jakub@redhat.com>
6244
6245 * c-common.h (omp_clause_mask::operator !=): New method.
6246 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
6247 instead of if (mask & something) tests everywhere.
6248
6249 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
6250 201307 instead of 201107.
6251 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
6252 (c_common_attribute_table): Add "omp declare target" and
6253 "omp declare simd" attributes.
6254 (handle_omp_declare_target_attribute,
6255 handle_omp_declare_simd_attribute): New functions.
6256 * c-omp.c: Include c-pragma.h.
6257 (c_finish_omp_taskgroup): New function.
6258 (c_finish_omp_atomic): Add swapped argument, if true,
6259 build the operation first with rhs, lhs arguments and use NOP_EXPR
6260 build_modify_expr.
6261 (c_finish_omp_for): Add code argument, pass it down to make_code.
6262 (c_omp_split_clauses): New function.
6263 (c_split_parallel_clauses): Removed.
6264 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
6265 c_omp_declare_simd_clauses_to_decls): New functions.
6266 * c-common.h (omp_clause_mask): New type.
6267 (OMP_CLAUSE_MASK_1): Define.
6268 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
6269 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
6270 omp_clause_mask::operator |, omp_clause_mask::operator &,
6271 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
6272 omp_clause_mask::operator ==): New methods.
6273 (enum c_omp_clause_split): New.
6274 (c_finish_omp_taskgroup): New prototype.
6275 (c_finish_omp_atomic): Add swapped argument.
6276 (c_finish_omp_for): Add code argument.
6277 (c_omp_split_clauses): New prototype.
6278 (c_split_parallel_clauses): Removed.
6279 (c_omp_declare_simd_clauses_to_numbers,
6280 c_omp_declare_simd_clauses_to_decls): New prototypes.
6281 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
6282 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
6283 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
6284 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
6285 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
6286 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
6287 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
6288 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
6289 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
6290 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
6291 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
6292 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
6293 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
6294 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
6295 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
6296 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
6297 PRAGMA_OMP_CLAUSE_UNIFORM.
6298
6299 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
6300
6301 PR tree-optimization/20318
6302 * c-common.c (handle_returns_nonnull_attribute): New function.
6303 (c_common_attribute_table): Add returns_nonnull.
6304
6305 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
6306
6307 PR c++/19476
6308 * c.opt (fcheck-new): Move to common.opt.
6309
6310 2013-09-25 Marek Polacek <polacek@redhat.com>
6311 Jakub Jelinek <jakub@redhat.com>
6312
6313 PR sanitizer/58413
6314 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
6315 an expression if we can prove it is correct.
6316 (ubsan_instrument_division): Likewise. Remove unnecessary
6317 check.
6318
6319 2013-09-18 Marek Polacek <polacek@redhat.com>
6320
6321 PR sanitizer/58411
6322 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
6323 Declare it.
6324 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
6325
6326 2013-09-14 Iain Sandoe <iain@codesourcery.com>
6327
6328 PR target/48094
6329 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
6330 fobjc-gc, freplace-objc-classes): Accept for LTO.
6331
6332 2013-09-13 Jacek Caban <jacek@codeweavers.com>
6333
6334 * c-target.def: New hook
6335
6336 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
6337
6338 PR c++/43452
6339 * c.opt (Wdelete-incomplete): Add.
6340
6341 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
6342
6343 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
6344 (vector_types_compatible_elements_p): New function.
6345 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
6346 declaration.
6347 (vector_types_compatible_elements_p): Declare.
6348
6349 2013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
6350
6351 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
6352 a virtual member function.
6353 (pp_simple_type_specifier): Remove.
6354 (pp_c_type_specifier): Likewise.
6355 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
6356 Rename from pp_c_type_specifier. Adjust.
6357 (c_pretty_printer::c_pretty_printer): Do not assign to
6358 simple_type_specifier.
6359
6360 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
6361
6362 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
6363 member function.
6364 (c_pretty_printer::storage_class_specifier): Likewise.
6365 (c_pretty_printer::initializer): Likewise.
6366 (pp_declaration): Remove.
6367 (pp_declaration_specifiers): Likewise.
6368 (pp_abstract_declarator): Likewise.
6369 (pp_declarator): Likewise.
6370 (pp_type_id): Likewise.
6371 (pp_statement): Likewise.
6372 (pp_constant): Likewise.
6373 (pp_id_expression): Likewise.
6374 (pp_primary_expression): Likewise.
6375 (pp_unary_expression): Likewise.
6376 (pp_multiplicative_expression): Likewise.
6377 (pp_conditional_expression): Likewise.
6378 (pp_assignment_expression): Likewise.
6379 (pp_expression): Likewise.
6380 (pp_c_type_id): Likewise.
6381 (pp_c_storage_class_specifier): Likewise.
6382 * c-pretty-print.c (pp_c_type_cast): Tidy.
6383 (pp_c_pointer): Likewise.
6384 (pp_c_type_specifier): Likewise.
6385 (pp_c_parameter_type_list): Likewise.
6386 (pp_c_function_definition): Likewise.
6387 (pp_c_init_declarator): Likewise.
6388 (pp_c_initializer_list): Likewise.
6389 (pp_c_constructor_elts): Likewise.
6390 (c_pretty_printer::direct_abstract_declarator): Likewise.
6391 (c_pretty_printer::declaration_specifiers): Likewise.
6392 (c_pretty_printer::primary_expression): Likewise.
6393 (c_pretty_printer::postfix_expression): Likewise.
6394 (c_pretty_printer::type_id): Rename from pp_c_type_id.
6395 (c_pretty_printer::storage_class_specifier): Rename from
6396 pp_c_storage_class_specifier.
6397 (c_pretty_printer::initializer): Rename from pp_c_initializer.
6398 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
6399 storage_class_specifier, initializer, offset_list, flags.
6400
6401 2013-08-30 Marek Polacek <polacek@redhat.com>
6402
6403 * c-ubsan.c: New file.
6404 * c-ubsan.h: New file.
6405
6406 2013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
6407
6408 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
6409 member function.
6410 (c_pretty_printer::declaration_specifiers): Likewise.
6411 (c_pretty_printer::declarator): Likewise.
6412 (c_pretty_printer::abstract_declarator): Likewise.
6413 (c_pretty_printer::direct_abstract_declarator): Likewise.
6414 (c_pretty_printer::direct_declarator): Likewise.
6415 (c_pretty_printer::function_specifier): Likewise.
6416 (pp_declaration): Adjust.
6417 (pp_declaration_specifiers): Likewise.
6418 (pp_abstract_declarator): Likewise.
6419 (pp_direct_declarator): Likewise.
6420 (pp_function_specifier): Likewise.
6421 (pp_direct_abstract_declarator): Remove as unused.
6422 (pp_c_declaration): Remove.
6423 (pp_c_declaration_specifiers): Likewise.
6424 (pp_c_declarator): Likewise.
6425 (pp_c_direct_declarator): Likewise.
6426 (pp_c_function_specifier): Likewise.
6427 (pp_c_direct_abstract_declarator): Likewise.
6428 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
6429 from pp_c_abstract_declarator. Adjust.
6430 (c_pretty_printer::direct_abstract_declarator): Rename from
6431 pp_c_direct_abstract_declarator. Adjust.
6432 (c_pretty_printer::function_specifier): Rename from
6433 pp_c_function_specifier. Adjust.
6434 (c_pretty_printer::declaration_specifiers): Rename from
6435 pp_c_declaration_specifiers. Adjust.
6436 (c_pretty_printer::direct_declarator): Rename from
6437 pp_c_direct_declarator. Adjust.
6438 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
6439 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
6440 (c_pretty_printer::c_pretty_printer): Do not assign to
6441 declaration, declaration_specifiers, declarator,
6442 direct_declarator, direct_abstract_declarator, function_specifier.
6443
6444 2013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
6445
6446 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
6447 virtual member function.
6448 (c_pretty_printer::multiplicative_expression): Likewise.
6449 (c_pretty_printer::conditional_expression): Likewise.
6450 (c_pretty_printer::assignment_expression): Likewise.
6451 (c_pretty_printer::expression): Likewise.
6452 (pp_unary_expression): Adjust.
6453 (pp_multiplicative_expression): Likewise.
6454 (pp_assignment_expression): Likewise.
6455 (pp_conditional_expression): Likewise.
6456 (pp_expression): Likewise.
6457 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
6458 from pp_c_unary_expression. Adjust.
6459 (c_pretty_printer::multiplicative_expression): Rename from
6460 pp_c_multiplicative_expression. Adjust.
6461 (c_pretty_printer::conditional_expression): Rename from
6462 pp_c_conditional_expression. Adjust.
6463 (c_pretty_printer::assignment_expression): Rename from
6464 pp_c_assignment_expression. Adjust.
6465 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
6466 (c_pretty_printer::c_pretty_printer): Do not assign to
6467 unary_expression, multiplicative_expression,
6468 conditional_expression, expression.
6469
6470 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
6471
6472 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
6473 virtual member function.
6474 (pp_postfix_expression): Adjust.
6475 (pp_c_postfix_expression): Remove.
6476 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
6477 from pp_c_postfix_expression. Adjust.
6478 (c_pretty_printer::c_pretty_printer): Do not assign to
6479 postfix_expression.
6480
6481 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
6482
6483 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
6484 virtua member function.
6485 (pp_primary_expression): Adjust.
6486 (pp_c_primary_expression): Remove.
6487 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
6488 from pp_c_primary_expression. Adjust.
6489 (pp_c_initializer_list): Use pp_primary_expression.
6490 (c_pretty_printer::c_pretty_printer): Do not assign to
6491 primary_expression.
6492
6493 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
6494
6495 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
6496 * c-pretty-print.c (M_): Remove.
6497 (c_pretty_printer::translate_string): Define.
6498 (pp_c_type_specifier): Use it.
6499 (pp_c_primary_expression): Likewise.
6500 (pp_c_expression): Likewise.
6501
6502 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
6503
6504 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
6505 virtual function.
6506 (pp_c_id_expression): Remove.
6507 (pp_id_expression): Adjust.
6508 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
6509 pp_c_id_expression. Adjust.
6510 (pp_c_postfix_expression): Use pp_id_expression.
6511 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
6512
6513 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
6514
6515 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
6516 member function.
6517 (pp_constant): Adjust.
6518 (pp_c_constant): Remove.
6519 * c-pretty-print.c (c_pretty_printer::constant): Rename from
6520 pp_c_constant. Adjust.
6521 (pp_c_constant)
6522 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
6523 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
6524
6525 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
6526
6527 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
6528 (c_pretty_printer::c_pretty_printer): Declare.
6529 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
6530 c_pretty_printer_init. Adjust.
6531 (print_c_tree): Do not call c_pretty_printer_init.
6532 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
6533
6534 2013-08-09 Arnaud Charlet <charlet@adacore.com>
6535
6536 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
6537
6538 2013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
6539
6540 PR c++/58080
6541 * c-common.c (pointer_int_sum): Add bool parameter.
6542 * c-common.h (pointer_int_sum): Adjust declaration.
6543
6544 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
6545
6546 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
6547 c_pretty_printer variable.
6548
6549 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
6550
6551 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
6552 (pp_base): Remove.
6553 (pp_c_base): Likewise. Adjust users.
6554 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
6555 (pp_c_whitespace): Do not call pp_base.
6556 (pp_c_left_paren): Likewise.
6557 (pp_c_right_paren): Likewise.
6558 (pp_c_left_brace): Likewise.
6559 (pp_c_right_brace): Likewise.
6560 (pp_c_left_bracket): Likewise.
6561 (pp_c_right_bracket): Likewise.
6562 (pp_c_dot): Likewise.
6563 (pp_c_ampersand): Likewise.
6564 (pp_c_star): Likewise.
6565 (pp_c_arrow): Likewise.
6566 (pp_c_semicolon): Likewise.
6567 (pp_c_complement): Likewise.
6568 (pp_c_exclamation): Likewise.
6569 (pp_c_direct_declarator): Likewise.
6570 (pp_c_ws_string): Likewise.
6571 (pp_c_identifier): Likewise.
6572 (pp_c_statement): Likewise.
6573 (print_c_tree): Likewise.
6574
6575 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
6576
6577 PR c++/58072
6578 * c-common.c (c_parse_error): Catch user-defined literal tokens and
6579 provide useful error strings.
6580
6581 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
6582
6583 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
6584 printer functions instead of pp_string or operators and punctuators.
6585 (dump_generic_ada_node): Likewise.
6586 * c-pretty-print.c (pp_c_type_specifier): Likewise.
6587 (pp_c_relational_expression): Likewise.
6588 (pp_c_logical_or_expression): Likewise.
6589
6590 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
6591
6592 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
6593 functions instead of pp_character.
6594 (pp_ada_tree_identifier): Likewise.
6595 (dump_ada_double_name): Likewise.
6596 (dump_ada_function_declaration): Likewise.
6597 (dump_ada_array_domains): Likewise.
6598 (dump_template_types): Likewise.
6599 (dump_generic_ada_node): Likewise.
6600 (print_ada_declaration): Likewise.
6601 (print_ada_struct_decl): Likewise.
6602 * c-pretty-print.c (pp_c_integer_constant): Likewise.
6603
6604 2013-07-23 Tom Tromey <tromey@redhat.com>
6605
6606 * c-common.h (enum rid) <RID_GENERIC>: New constant.
6607 * c-common.c (c_common_reswords): Add _Generic.
6608
6609 2013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
6610
6611 * c-common.c: Fix typos.
6612 * c-common.h: Likewise.
6613
6614 2013-07-13 Lubos Lunak <l.lunak@suse.cz>
6615
6616 PR c++/55203
6617 * c-common.c (c_common_attribute_table): Add warn_unused.
6618 (handle_warn_unused_attribute): New.
6619
6620 2013-07-10 Jakub Jelinek <jakub@redhat.com>
6621
6622 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
6623 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
6624
6625 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
6626
6627 PR c++/57869
6628 * c.opt: Add Wconditionally-supported.
6629
6630 2013-07-08 Graham Stott <graham.stott@btinternet.com>
6631
6632 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6633 unused variables l_length and l_node.
6634
6635 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
6636
6637 PR c/57821
6638 * c-common.c (complete_array_type): Delay folding first index
6639 like other indices. When folding, check for index overflow.
6640
6641 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
6642
6643 PR c++/57509
6644 * c-common.h (c_build_vec_perm_expr): New complain argument.
6645 * c-common.c (c_build_vec_perm_expr): Likewise.
6646 Use save_expr also in C++.
6647
6648 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
6649
6650 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
6651 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
6652 * c-opts.c (c_common_post_options): Likewise.
6653
6654 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
6655
6656 * array-notation-common.c (length_mismatch_in_expr): Changed the
6657 parameter type's from a dynamic array to a vec_tree. Also removed
6658 the size parameters.
6659 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
6660 the change above.
6661
6662 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
6663
6664 * c-common.h (struct cilkplus_an_parts): New structure.
6665 (struct cilkplus_an_loop_parts): Likewise.
6666 (cilkplus_extract_an_triplets): New prototype.
6667 (fix_sec_implicit_args): Likewise.
6668 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
6669 (fix_sec_implicit_args): Likewise.
6670
6671 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
6672
6673 * array-notation-common.c (find_inv_trees): Removed an unwanted
6674 typecasting.
6675 * c-common.h (struct inv_list::additional_tcodes): Changed type from
6676 enum rid to enum tree_code.
6677
6678 2013-06-11 Jan Hubicka <jh@suse.cz>
6679
6680 * c-common.c (handle_alias_ifunc_attribute): Do not set
6681 DECL_EXTERNAL for weakref variables.
6682 * c-pragma.c (handle_pragma_weak): Make sure aliases
6683 are not declared as external.
6684
6685 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
6686
6687 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
6688 function from c/c-array-notation.c.
6689 (is_cilkplus_reduce_builtin): Likewise.
6690 (find_rank): Likewise.
6691 (extract_array_notation_exprs): Likewise.
6692 (replace_array_notations): Likewise.
6693 (find_inv_trees): Likewise.
6694 (replace_inv_trees): Likewise.
6695 (contains_array_notation_expr): Likewise.
6696 (find_correct_array_notation_type): Likewise.
6697 * c-common.h (struct inv_list): Moved this struct from the file
6698 c/c-array-notation.c and added a new field called additional tcodes.
6699 (length_mismatch_in_expr_p): New prototype.
6700 (is_cilkplus_reduce_builtin): Likewise.
6701 (find_rank): Likewise.
6702 (extract_array_notation_exprs): Likewise.
6703 (replace_array_notation): Likewise.
6704 (find_inv_trees): Likewise.
6705 (replace_inv_trees): Likewise.
6706 (find_correct_array_notation_type): Likewise.
6707
6708 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
6709
6710 * c-common.c (c_define_builtins): When cilkplus is enabled, the
6711 function array_notation_init_builtins is called.
6712 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
6713 * c-common.def (ARRAY_NOTATION_REF): New tree.
6714 * c-common.h (build_array_notation_expr): New function declaration.
6715 (build_array_notation_ref): Likewise.
6716 (extract_sec_implicit_index_arg): New extern declaration.
6717 (is_sec_implicit_index_fn): Likewise.
6718 (ARRAY_NOTATION_CHECK): New define.
6719 (ARRAY_NOTATION_ARRAY): Likewise.
6720 (ARRAY_NOTATION_START): Likewise.
6721 (ARRAY_NOTATION_LENGTH): Likewise.
6722 (ARRAY_NOTATION_STRIDE): Likewise.
6723 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
6724 ARRAY_NOTATION_REF.
6725 (pp_c_expression): Likewise.
6726 * c.opt (flag_enable_cilkplus): New flag.
6727 * array-notation-common.c: New file.
6728
6729 2013-05-14 Jakub Jelinek <jakub@redhat.com>
6730
6731 PR c++/57274
6732 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
6733
6734 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
6735
6736 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
6737 vectors.
6738
6739 2013-05-07 Han Shen <shenhan@google.com>
6740
6741 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
6742
6743 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6744
6745 * c-common.c (check_user_alignment): Emit error for negative values.
6746
6747 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6748
6749 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
6750
6751 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6752
6753 * c-cppbuiltin.c (c_cpp_builtins): Do not define
6754 __GXX_EXPERIMENTAL_CXX1Y__.
6755
6756 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6757 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6758
6759 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
6760 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
6761 to simply use OPT_Wpointer_arith.
6762 (c_sizeof_or_alignof_type): Likewise.
6763
6764 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6765
6766 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
6767
6768 2013-04-12 Jakub Jelinek <jakub@redhat.com>
6769
6770 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
6771 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
6772 specifiers.
6773
6774 2013-04-07 Steven Bosscher <steven@gcc.gnu.org>
6775
6776 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
6777
6778 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
6779
6780 * c-common.c (pointer_int_sum): Remove dead code.
6781
6782 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
6783
6784 PR middle-end/56524
6785 * c-common.c (handle_optimize_attribute): Don't call
6786 save_optabs_if_changed.
6787
6788 2013-03-05 Jakub Jelinek <jakub@redhat.com>
6789
6790 PR middle-end/56461
6791 * c-pch.c (pch_init): Free target_validity at the end.
6792
6793 2013-03-04 Jakub Jelinek <jakub@redhat.com>
6794
6795 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
6796
6797 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
6798 Jakub Jelinek <jakub@redhat.com>
6799
6800 PR sanitizer/56454
6801 * c-common.c (handle_no_sanitize_address_attribute): New function.
6802 (c_common_attribute_table): Add no_sanitize_address attribute.
6803 (handle_no_address_safety_analysis_attribute): Add
6804 no_sanitize_address attribute, not no_address_safety_analysis
6805 attribute.
6806
6807 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
6808
6809 PR target/52555
6810 * c-common.c (handle_optimize_attribute): Call
6811 save_optabs_if_changed.
6812
6813 2013-02-18 Jakub Jelinek <jakub@redhat.com>
6814 Steven Bosscher <steven@gcc.gnu.org>
6815
6816 PR pch/54117
6817 * c-opts.c (c_common_post_options): If debug info is enabled
6818 and non-dwarf*, refuse to load PCH files and when writing PCH
6819 file warn.
6820
6821 2013-02-05 Jakub Jelinek <jakub@redhat.com>
6822
6823 PR middle-end/56167
6824 * c-common.c (handle_error_attribute): Fix condition.
6825
6826 2013-01-30 Jakub Jelinek <jakub@redhat.com>
6827
6828 PR c++/55742
6829 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
6830
6831 2013-01-18 Jason Merrill <jason@redhat.com>
6832
6833 PR target/54908
6834 * c.opt (-fextern-tls-init): New.
6835 * c-opts.c (c_common_post_options): Handle it.
6836
6837 2013-01-09 Jakub Jelinek <jakub@redhat.com>
6838
6839 PR c/48418
6840 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
6841 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
6842 and is either negative or bigger or equal to type precision
6843 of the first operand.
6844
6845 2012-12-03 Marek Polacek <polacek@redhat.com>
6846
6847 PR c/55570
6848 * c-common.c (check_user_alignment): Swap order of tests,
6849 check TREE_CODE first.
6850
6851 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
6852
6853 PR c++/52654
6854 * c-common.h (overflow_type): New enum.
6855 (build_userdef_literal): Add overflow_type argument.
6856 (tree_userdef_literal): Add overflow_type.
6857 (USERDEF_LITERAL_OVERFLOW): New access macro.
6858 * c-common.c (build_userdef_literal): Add overflow_type
6859 argument.
6860 * c-lex.c (c_lex_with_flags): Add overflow_type to
6861 build_userdef_literal calls.
6862 (interpret_integer, interpret_float): Add overflow_type argument.
6863
6864 2012-11-28 Richard Biener <rguenther@suse.de>
6865
6866 PR c/35634
6867 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
6868 here and use a type with proper overflow behavior for types that would
6869 need to be promoted for the arithmetic.
6870
6871 2012-11-23 Jakub Jelinek <jakub@redhat.com>
6872
6873 PR sanitizer/55435
6874 * c-common.c (handle_no_address_safety_analysis_attribute): New
6875 function.
6876 (c_common_attribute_table): Add no_address_safety_analysis.
6877
6878 2012-11-16 Simon Baldwin <simonb@google.com>
6879
6880 * c.opt: Add f[no-]canonical-system-headers.
6881 * c-opts.c (c_common_handle_option): Handle
6882 OPT_fcanonical_system_headers.
6883
6884 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
6885
6886 PR c++/54413
6887 * c-opts.c (c_common_handle_option): Set new flags.
6888 * c.opt: Describe new flags.
6889
6890 2012-11-09 Jason Merrill <jason@redhat.com>
6891
6892 * c.opt (Wabi-tag): New.
6893
6894 2012-11-09 Andi Kleen <ak@linux.intel.com>
6895
6896 PR 55139
6897 * c-common.c (get_atomic_generic_size): Mask with
6898 MEMMODEL_MASK
6899
6900 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
6901
6902 PR c/53063
6903 * c.opt (Wformat): Make it Alias Wformat=1.
6904 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
6905 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
6906 LangEnabledBy.
6907 (Wformat=): RejectNegative. Use LangEnabledBy.
6908 (Wnonnull): Use LangEnabledBy.
6909 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
6910 * c-format.c (set_Wformat): Delete.
6911 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
6912 (maybe_read_dollar_number): Likewise.
6913 (avoid_dollar_number): Likewise.
6914 (finish_dollar_format_checking): Likewise.
6915 (check_format_info): Likewise.
6916 (check_format_info_main): Likewise.
6917 (check_format_types): Likewise.
6918 (format_type_warning): Likewise.
6919 * c-common.c (int): Likewise.
6920 (check_function_sentinel): Likewise.
6921 * c-common.h (warn_format,set_Wformat): Do not declare here.
6922
6923 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
6924
6925 PR c/53063
6926 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
6927 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
6928 Use LangEnabledBy.
6929 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
6930 common.opt.
6931 (Wvariadic-macros): Init(1).
6932 * c-opts.c (c_common_handle_option): Do not handle them
6933 explicitly.
6934 (c_common_post_options): Likewise.
6935 (sanitize_cpp_opts): warn_unused_macros is now
6936 cpp_warn_unused_macros.
6937 (push_command_line_include): Likewise.
6938 * c-common.c (warn_unknown_pragmas): Do not define.
6939 * c-common.h (warn_unknown_pragmas): Do not declare.
6940
6941 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
6942
6943 PR c/51294
6944 * c-common.c (conversion_warning): Handle conditional expressions.
6945
6946 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
6947
6948 PR c++/54930
6949 * c.opt (Wreturn_local_addr): Define new option.
6950
6951 2012-10-25 Jason Merrill <jason@redhat.com>
6952
6953 * c.opt (Wvirtual-move-assign): New.
6954
6955 * c.opt (Winherited-variadic-ctor): New.
6956
6957 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
6958
6959 PR c++/54427
6960 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
6961
6962 2012-10-23 Joseph Myers <joseph@codesourcery.com>
6963
6964 * c-common.h (pch_cpp_save_state): Declare.
6965 * c-target.def (c_preinclude): New hook.
6966 * c-opts.c (done_preinclude): New.
6967 (push_command_line_include): Handle default preincluded header.
6968 (cb_file_change): Call pch_cpp_save_state when calling
6969 push_command_line_include.
6970 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
6971 (pch_cpp_save_state): New.
6972 (pch_init): Call pch_cpp_save_state conditionally, instead of
6973 calling cpp_save_state.
6974
6975 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
6976
6977 PR c/53063
6978 PR c/40989
6979 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
6980 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
6981 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
6982 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
6983 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
6984 * c-opts.c (c_common_handle_option): Remove explicit handling from
6985 here.
6986 (c_common_post_options): Likewise.
6987
6988 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
6989
6990 * c-ada-spec.c (LOCATION_COL): Delete.
6991 (compare_location): New function.
6992 (compare_node): Use it.
6993 (compare_comment): Likewise.
6994
6995 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
6996
6997 PR c/53063
6998 PR c/40989
6999 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
7000 * c-opts.c (c_common_handle_option): Do not set them here. Add
7001 comment.
7002 (c_common_post_options): Likewise.
7003
7004 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
7005
7006 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
7007 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
7008 Remove POINTER_TYPE handling, add large unsigned handling and use
7009 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
7010
7011 2012-10-12 Jakub Jelinek <jakub@redhat.com>
7012
7013 PR c/54381
7014 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
7015 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
7016 locs and array of 3 trees instead of just single loc and single
7017 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
7018 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
7019 For *cmp* builtins that take two sources strings report warnings
7020 about first and second source, not about destination and source.
7021
7022 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
7023
7024 PR c++/53055
7025 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
7026
7027 2012-10-11 Eric Botcazou <ebotcazou@adacore.com>
7028
7029 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
7030 declaring something coming from another file.
7031
7032 2012-10-10 Arnaud Charlet <charlet@adacore.com>
7033
7034 PR ada/54845
7035 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
7036
7037 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
7038
7039 PR c++/54194
7040 * c-common.c (warn_about_parentheses): Add location_t parameter;
7041 use EXPR_LOC_OR_LOC.
7042 * c-common.h: Update declaration.
7043
7044 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
7045
7046 PR c++/54427
7047 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
7048 more operations. Make error messages optional.
7049 * c-common.h (enum stv_conv): Moved from c-typeck.c.
7050 (scalar_to_vector): Declare.
7051
7052 2012-10-08 Jason Merrill <jason@redhat.com>
7053
7054 * c-common.c (c_common_reswords): Add thread_local.
7055
7056 2012-10-08 Dodji Seketeli <dodji@redhat.com>
7057
7058 PR c++/53528 C++11 attribute support
7059 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
7060 new functions.
7061 * c-common.c (check_cxx_fundamental_alignment_constraints): New
7062 static function.
7063 (handle_aligned_attribute): In choose strictest alignment
7064 among many. Use new check_cxx_fundamental_alignment_constraints.
7065 (handle_transparent_union_attribute): In c++11 attribute syntax,
7066 don't look through typedefs.
7067
7068 2012-10-04 Arnaud Charlet <charlet@adacore.com>
7069
7070 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
7071 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
7072 out of dumpfile.h.
7073
7074 2012-09-25 Dehao Chen <dehao@google.com>
7075
7076 PR middle-end/54645
7077 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
7078 map when read in the pch.
7079
7080 2012-09-18 Arnaud Charlet <charlet@adacore.com>
7081
7082 * c-ada-spec.c: Style fixes.
7083
7084 2012-09-18 Thomas Quinot <quinot@adacore.com>
7085
7086 * c.opt (-fada-spec-parent): Define new command line switch.
7087 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
7088 is specified, generate binding spec as a child of the specified unit.
7089
7090 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
7091 Manuel López-Ibáñez <manu@gcc.gnu.org>
7092
7093 PR c++/53210
7094 * c.opt ([Winit-self]): Enabled by -Wall in C++.
7095
7096 2012-08-23 Arnaud Charlet <charlet@adacore.com>
7097
7098 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
7099 for pointers, and add missing Convention C pragma.
7100 (print_ada_struct_decl): Add missing aliased keyword.
7101 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
7102
7103 2012-08-17 Jakub Jelinek <jakub@redhat.com>
7104
7105 * c-common.c (sizeof_pointer_memaccess_warning): New function.
7106 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
7107 * c-opts.c (c_common_handle_option): Enable it for -Wall.
7108 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
7109 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
7110
7111 2012-08-10 Richard Guenther <rguenther@suse.de>
7112
7113 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
7114
7115 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
7116
7117 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
7118 instead of separate pp_newline and pp_flush.
7119 (print_c_tree): Likewise.
7120
7121 2012-07-26 Richard Henderson <rth@redhat.com>
7122
7123 * c-common.c (handle_hot_attribute): Allow labels.
7124 (handle_cold_attribute): Likewise.
7125
7126 2012-07-20 Jakub Jelinek <jakub@redhat.com>
7127
7128 PR c++/28656
7129 * c-common.c (check_function_nonnull): Handle multiple nonnull
7130 attributes properly.
7131
7132 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
7133
7134 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
7135 * c-ada-spec.c: Likewise.
7136 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
7137
7138 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
7139
7140 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
7141 Remove code conditional on it.
7142
7143 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
7144
7145 * c-gimplify.c: Do not include basic-block.h.
7146 * c-common.c: Do not include linfuncs.h.
7147
7148 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
7149
7150 * c-common.h: Include tree.h.
7151
7152 2012-07-02 Jason Merrill <jason@redhat.com>
7153
7154 PR c++/53524
7155 * c-common.c (get_priority): Call default_conversion.
7156
7157 2012-07-01 Uros Bizjak <ubizjak@gmail.com>
7158
7159 * c-pch.c (c_common_write_pch): Remove unused variables.
7160
7161 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
7162
7163 * cppspec.c: Moved from gcc/ to here.
7164
7165 2012-06-27 Kai Tietz <ktietz@redhat.com>
7166
7167 PR preprocessor/37215
7168 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
7169
7170 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
7171
7172 * c-common.h (c_common_print_pch_checksum): Remove.
7173 * c-pch.c: Do not include output.h.
7174 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
7175 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
7176 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
7177 (struct c_pch_header): Remove.
7178 (get_ident): Update gpch version.
7179 (pch_init): Do not print executable_checksum to asm_out_file.
7180 Do not fail if there is no asm_out_file to read back from. Set
7181 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
7182 (c_common_write_pch): Verify that nothing was written to asm_out_file
7183 since pch_init was called. Do not write a c_pch_header, and do not
7184 copy from asm_out_file to the PCH.
7185 (c_common_read_pch): Do not read a c_pch_header, and do not restore
7186 the content of asm_out_file from the PCH.
7187 (c_common_print_pch_checksum): Remove.
7188 * c-opts.c (c_common_init): Print out executable_checksum directly.
7189
7190 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
7191
7192 * c-target.def (objc_declare_unresolved_class_reference,
7193 objc_declare_class_definition): Add new hooks.
7194
7195 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
7196
7197 * c-lex.c: Do not include output.h.
7198 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
7199 Remove uses of ASM_OUTPUT_IDENT.
7200
7201 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
7202
7203 PR c++/51033
7204 * c-common.h (c_build_vec_perm_expr): Move decl here.
7205 * c-common.c (c_build_vec_perm_expr): Move definition
7206 here.
7207
7208 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
7209
7210 * c.opt (fconserve-space): Turn into a no-op.
7211
7212 2012-06-04 Sterling Augustine <saugustine@google.com>
7213
7214 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
7215 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
7216 both the start and end of the function.
7217
7218 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
7219
7220 * c-common.c: Do not include output.h.
7221 * c-pragma.c: Likewise.
7222
7223 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
7224
7225 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
7226 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
7227 (lang_decl_name): Handle namespace decls.
7228
7229 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
7230
7231 * c-ada-spec.c: Do not include output.h.
7232 * c-semantics.c: Likewise.
7233
7234 2012-05-29 Joseph Myers <joseph@codesourcery.com>
7235
7236 * c-common.c: Fix typo.
7237
7238 2012-05-29 Michael Matz <matz@suse.de>
7239
7240 * c-common.h (c_expand_decl): Remove prototype.
7241
7242 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
7243
7244 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
7245 * c-opts.c (c_common_handle_option): Remove code handling
7246 warn_missing_braces.
7247
7248 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
7249
7250 PR c++/25137
7251 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
7252 -Wmissing_braces.
7253
7254 2012-05-22 Dodji Seketeli <dodji@redhat.com>
7255
7256 PR c++/53322
7257 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
7258
7259 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
7260
7261 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
7262 * c-opts.c (c_common_handle_option): Do not handle explicitly
7263 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
7264
7265 2012-05-16 Dodji Seketeli <dodji@redhat.com>
7266
7267 PR preprocessor/7263
7268 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
7269 to cpp_classify_number. For diagnostics, use the precise location
7270 instead of the global input_location.
7271
7272 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
7273
7274 PR c++/11856
7275 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
7276
7277 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
7278
7279 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
7280
7281 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
7282
7283 PR 53063
7284 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
7285 Wreorder): Use LangEnabledBy.
7286 * c-opts.c (c_common_handle_option): Do not enable them
7287 explicitly. Call lang-specific generated functions.
7288 (c_common_post_options): Do not set them here.
7289
7290 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
7291
7292 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
7293 Wmissing-field-initializers,Wmissing-parameter-type,
7294 Wold-style-declaration,Woverride-init): Use EnabledBy.
7295 * c-opts.c (c_common_post_options): Do not set here explicitly.
7296
7297 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
7298
7299 PR 53063
7300 * c-opts.c (c_common_handle_option): Use handle_generated_option
7301 to enable sub-options.
7302
7303 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
7304
7305 PR c++/53158
7306 * c-common.c (warnings_for_convert_and_check): Use warning_at.
7307
7308 2012-05-10 Richard Guenther <rguenther@suse.de>
7309
7310 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
7311 adjust commentary about TYPE_IS_SIZETYPE types.
7312
7313 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
7314
7315 PR c++/53261
7316 * c-common.c (warn_logical_operator): Check that argument of
7317 integer_zerop is not NULL.
7318
7319 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
7320
7321 PR c/43772
7322 * c-common.c (warn_logical_operator): Do not warn if either side
7323 is already true or false.
7324
7325 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
7326
7327 PR c/51712
7328 * c-common.c (expr_original_type): New.
7329 (shorten_compare): Do not warn for enumeration types.
7330
7331 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
7332
7333 * c.opt (fpermissive): Add Var(flag_permissive).
7334
7335 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
7336
7337 PR c++/51033
7338 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
7339 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
7340
7341 2012-04-30 Dodji Seketeli <dodji@redhat.com>
7342
7343 Add -Wvarargs option
7344 * c.opt (Wvarargs): Define new option.
7345
7346 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
7347
7348 * c-common.c (check_function_arguments): Replace
7349 Wmissing-format-attribute with Wsuggest-attribute=format.
7350
7351 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
7352
7353 * c.opt (Wsuggest-attribute=format): New. Alias of
7354 Wmissing-format-attribute.
7355 * c-format.c (decode_format_type): Replace
7356 Wmissing-format-attribute with Wsuggest-attribute=format.
7357 (check_function_format): Likewise.
7358
7359 2012-04-27 Ollie Wild <aaw@google.com>
7360
7361 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
7362 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
7363 * c.opt: Add Wliteral-suffix.
7364
7365 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
7366
7367 PR c/44774
7368 * c.opt (Wpedantic): New.
7369 (pedantic): Alias Wpedantic.
7370 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
7371 (c_common_post_options): Likewise.
7372 (sanitize_cpp_opts): Likewise.
7373 * c-lex.c (interpret_float): Likewise.
7374 * c-format.c (check_format_types): Likewise.
7375 * c-common.c (pointer_int_sum): Likewise.
7376 (c_sizeof_or_alignof_type): Likewise.
7377 (c_add_case_label): Likewise.
7378 (c_do_switch_warnings): Likewise.
7379 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
7380
7381 2012-04-15 Jason Merrill <jason@redhat.com>
7382
7383 PR c++/52818
7384 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
7385 (C_STD_NAME): Distinguish between C++98 and C++11.
7386
7387 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
7388
7389 PR target/52624
7390 * c-common.h (uint16_type_node): Rename into...
7391 (c_uint16_type_node): ...this.
7392 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
7393 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
7394
7395 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
7396
7397 * c-common.c (warn_if_unused_value): Move definition to here.
7398 * c-common.h (warn_if_unused_value): Move declaration to here.
7399
7400 2012-03-23 William Bader <williambader@hotmail.com>
7401
7402 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
7403
7404 2012-03-20 Jason Merrill <jason@redhat.com>
7405
7406 * c-common.h (enum cxx_dialect): Add cxx1y.
7407 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
7408 test.
7409 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
7410 * c-opts.c (c_common_post_options): Likewise.
7411 (set_std_cxx1y): New.
7412 (c_common_handle_option): Call it.
7413 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
7414
7415 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
7416
7417 PR c++/14710
7418 * c.opt ([Wuseless-cast]): Add.
7419
7420 2012-03-16 Richard Guenther <rguenther@suse.de>
7421
7422 * c-pretty-print.c (pp_c_initializer_list): Adjust.
7423
7424 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
7425
7426 PR c++/44783
7427 * c.opt (ftemplate-backtrace-limit) Add.
7428
7429 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7430
7431 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
7432 handling.
7433 * c-pragma.c (handle_pragma_extern_prefix): Remove.
7434 (init_pragma): Don't register extern_prefix.
7435
7436 2012-03-12 Richard Guenther <rguenther@suse.de>
7437
7438 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
7439 (builtin_type_for_size): Likewise.
7440
7441 2012-02-13 Jakub Jelinek <jakub@redhat.com>
7442
7443 PR c++/52215
7444 * c-common.c (sync_resolve_params): Don't decide whether to convert
7445 or not based on TYPE_SIZE comparison, convert whenever arg_type
7446 is unsigned INTEGER_TYPE.
7447
7448 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
7449
7450 PR c/52118
7451 * c.opt ([Wunused-local-typedefs]): Fix description.
7452
7453 2012-01-24 Mike Stump <mikestump@comcast.net>
7454
7455 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
7456 exactly.
7457
7458 2012-01-18 Richard Guenther <rguenther@suse.de>
7459
7460 * c-opts.c (c_common_post_options): Reset LTO flags if
7461 we are about to generate a PCH.
7462
7463 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
7464
7465 PR c++/51777
7466 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
7467 use pp_unsigned_wide_integer.
7468
7469 2012-01-10 Richard Guenther <rguenther@suse.de>
7470
7471 PR middle-end/51806
7472 * c-opts.c (c_common_handle_option): Move -Werror handling
7473 to language independent code.
7474
7475 2012-01-05 Richard Guenther <rguenther@suse.de>
7476
7477 PR middle-end/51764
7478 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
7479 from common.opt.
7480
7481 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
7482
7483 PR c++/51316
7484 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
7485 of array types with an unknown bound.
7486
7487 2011-12-20 Joseph Myers <joseph@codesourcery.com>
7488
7489 * c-common.c (flag_isoc99): Update comment to refer to C11.
7490 (flag_isoc1x): Change to flag_isoc11.
7491 * c-common.h (flag_isoc99): Update comment to refer to C11.
7492 (flag_isoc1x): Change to flag_isoc11.
7493 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
7494 C11.
7495 * c-opts.c (set_std_c1x): Change to set_std_c11.
7496 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
7497 Call set_std_c11.
7498 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
7499 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
7500 * c.opt (std=c1x): Change to std=c11. Document as non-draft
7501 standard.
7502 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
7503 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
7504 (std=gnu1x): Make alias of std=gnu11.
7505
7506 2011-12-19 Jason Merrill <jason@redhat.com>
7507
7508 PR c++/51228
7509 * c-common.c (handle_transparent_union_attribute): Check the first
7510 field if the type is complete.
7511
7512 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
7513
7514 PR libstdc++/51365
7515 * c-common.c (RID_IS_FINAL): Add.
7516 * c-common.h (RID_IS_FINAL): Add.
7517
7518 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
7519
7520 * c.opt (fgnu-runtime): Provide full description.
7521 (fnext-runtime): Likewise.
7522 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
7523
7524 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
7525
7526 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
7527 predefines in one place. Add LOCK_FREE predefines.
7528 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
7529 new func.
7530
7531 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
7532
7533 PR c/51256
7534 * c-common.c (get_atomic_generic_size): Check for various error
7535 conditions
7536 (resolve_overloaded_atomic_exchange,
7537 resolve_overloaded_atomic_compare_exchange,
7538 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
7539 error_mark_node for error conditions.
7540
7541 2011-11-08 Richard Guenther <rguenther@suse.de>
7542
7543 PR middle-end/51010
7544 c-family/
7545
7546 2011-11-07 Richard Henderson <rth@redhat.com>
7547 Aldy Hernandez <aldyh@redhat.com>
7548 Torvald Riegel <triegel@redhat.com>
7549
7550 Merged from transactional-memory.
7551
7552 * c-common.c (handle_tm_wrap_attribute,
7553 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
7554 (struct c_common_reswords): Added __transaction* keywords.
7555 (struct c_common_attribute_table): Added transaction* and tm_regparm
7556 attributes.
7557 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
7558 masks.
7559 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
7560 find_tm_attribute): Declare.
7561
7562 2011-11-07 Jason Merrill <jason@redhat.com>
7563
7564 PR c++/35688
7565 * c-common.c, c-common.h: Revert yesterday's changes.
7566
7567 2011-11-06 Jason Merrill <jason@redhat.com>
7568
7569 PR c++/35688
7570 * c-common.c (decl_has_visibility_attr): Split out from...
7571 (c_determine_visibility): ...here.
7572 * c-common.h: Declare it.
7573
7574 2011-11-06 Joseph Myers <joseph@codesourcery.com>
7575
7576 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
7577 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
7578 type.
7579 (check_user_alignment): New. Split out of
7580 handle_aligned_attribute. Disallow integer constants with
7581 noninteger types. Conditionally allow zero.
7582 (handle_aligned_attribute): Use check_user_alignment.
7583 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
7584
7585 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
7586 Richard Henderson <rth@redhat.com>
7587
7588 Merged from cxx-mem-model.
7589
7590 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
7591 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
7592 parameters that are the same type size.
7593 (get_atomic_generic_size): New. Find size of generic
7594 atomic function parameters and do typechecking.
7595 (add_atomic_size_parameter): New. Insert size into parameter list.
7596 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
7597 either __atomic_exchange_n or external library call.
7598 (resolve_overloaded_atomic_compare_exchange): Restructure
7599 __atomic_compare_exchange to either _n variant or external library call.
7600 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
7601 __atomic_load_n or an external library call.
7602 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
7603 __atomic_store_n or an external library call.
7604 (resolve_overloaded_builtin): Handle new __atomic builtins.
7605
7606 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
7607
7608 PR c++/50608
7609 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
7610 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
7611 <INDIRECT_REF>: Return the argument.
7612 <ARRAY_REF>: Remove special code for negative offset.
7613 Call fold_build_pointer_plus instead of size_binop.
7614 (fold_offsetof): Remove STOP_REF argument and adjust.
7615 * c-common.h (fold_offsetof_1): Declare.
7616 (fold_offsetof): Remove STOP_REF argument.
7617
7618 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
7619
7620 PR c++/50810
7621 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
7622 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
7623 Wnarrowing for C++0x and C++98.
7624 * c.opt ([Wnarrowing]): Update.
7625
7626 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
7627
7628 PR c++/44277
7629 * c.opt: Add Wzero-as-null-pointer-constant.
7630
7631 2011-10-31 Jason Merrill <jason@redhat.com>
7632
7633 * c.opt (-fdeduce-init-list): Off by default.
7634
7635 PR c++/50920
7636 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
7637 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
7638 and -Wc++11-compat.
7639 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
7640
7641 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
7642
7643 PR c++/30066
7644 * c.opt (fvisibility-inlines-hidden): Description change.
7645
7646 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
7647
7648 Implement C++11 user-defined literals.
7649 * c-common.c (build_userdef_literal): New.
7650 * c-common.def: New tree code.
7651 * c-common.h (tree_userdef_literal): New tree struct and accessors.
7652 * c-lex.c (interpret_float): Add suffix parm.
7653 (c_lex_with_flags): Build literal tokens.
7654
7655 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
7656
7657 PR c++/50841
7658 Revert:
7659 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
7660
7661 PR c++/50810
7662 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
7663 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
7664 Wnarrowing for C++0x and C++98.
7665 * c.opt ([Wnarrowing]): Update.
7666
7667 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
7668
7669 PR c++/50810
7670 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
7671 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
7672 Wnarrowing for C++0x and C++98.
7673 * c.opt ([Wnarrowing]): Update.
7674
7675 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
7676
7677 PR c++/45385
7678 * c-common.c (conversion_warning): Remove code looking for
7679 artificial operands.
7680
7681 2011-10-18 Dodji Seketeli <dodji@redhat.com>
7682
7683 PR bootstrap/50760
7684 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
7685 !NO_IMPLICIT_EXTERN_C.
7686
7687 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
7688
7689 * c-common.c (c_common_reswords): Add __bases,
7690 __direct_bases.
7691 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
7692
7693 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
7694
7695 PR c++/50757
7696 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
7697
7698 2011-10-15 Tom Tromey <tromey@redhat.com>
7699 Dodji Seketeli <dodji@redhat.com>
7700
7701 * c.opt (fdebug-cpp): New option.
7702 * c-opts.c (c_common_handle_option): Handle the option.
7703 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
7704 output stream in parameter. Factorized from ...
7705 (maybe_print_line): ... this. Dump location debug information when
7706 -fdebug-cpp is in effect.
7707 (print_line_1): New static function. Takes an output stream in
7708 parameter. Factorized from ...
7709 (print_line): ... here. Dump location information when -fdebug-cpp
7710 is in effect.
7711 (scan_translation_unit): Dump location information when
7712 -fdebug-cpp is in effect.
7713
7714 2011-10-15 Tom Tromey <tromey@redhat.com>
7715 Dodji Seketeli <dodji@redhat.com>
7716
7717 * c.opt (ftrack-macro-expansion): New option. Handle it with and
7718 without argument.
7719 * c-opts.c (c_common_handle_option)<case
7720 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
7721 cases. Handle -ftrack-macro-expansion with and without argument.
7722
7723 2011-10-15 Tom Tromey <tromey@redhat.com>
7724 Dodji Seketeli <dodji@redhat.com>
7725
7726 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
7727 (print_line, cb_define, do_line_change): Adjust to avoid touching
7728 the internals of struct line_map. Use the public API instead.
7729 * c-pch.c (c_common_read_pch): Likewise.
7730 * c-lex.c (fe_file_change): Likewise.
7731
7732 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
7733
7734 PR c++/17212
7735 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
7736
7737 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
7738
7739 PR c++/33067
7740 * c-pretty-print.c (pp_c_floating_constant): Output
7741 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
7742
7743 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
7744
7745 * c-common.c (def_builtin_1): Delete old interface with two
7746 parallel arrays to hold standard builtin declarations, and replace
7747 it with a function based interface that can support creating
7748 builtins on the fly in the future. Change all uses, and poison
7749 the old names. Make sure 0 is not a legitimate builtin index.
7750 * c-omp.c (c_finish_omp_barrier): Ditto.
7751 (c_finish_omp_taskwait): Ditto.
7752 (c_finish_omp_flush): Ditto.
7753
7754 2011-10-11 Tristan Gingold <gingold@adacore.com>
7755
7756 * c.opt: (fallow-parameterless-variadic-functions): New.
7757
7758 2011-09-08 Dodji Seketeli <dodji@redhat.com>
7759
7760 PR c++/33255 - Support -Wunused-local-typedefs warning
7761 * c-common.h (struct c_language_function::local_typedefs): New
7762 field.
7763 (record_locally_defined_typedef, maybe_record_typedef_use)
7764 (maybe_warn_unused_local_typedefs): Declare new functions.
7765 * c-common.c (record_locally_defined_typedef)
7766 (maybe_record_typedef_use)
7767 (maybe_warn_unused_local_typedefs): Define new functions.
7768 * c.opt: Declare new -Wunused-local-typedefs flag.
7769
7770 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
7771
7772 PR middle-end/50266
7773 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
7774 computations.
7775
7776 2011-09-05 Richard Guenther <rguenther@suse.de>
7777
7778 * c-common.c (complete_array_type): Use ssize_int (-1) instead
7779 of integer_minus_one_node for empty array upper bounds.
7780
7781 2011-08-28 Dodji Seketeli <dodji@redhat.com>
7782
7783 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
7784 it's the first time it's being called on this main TU.
7785
7786 2011-08-24 Richard Guenther <rguenther@suse.de>
7787
7788 PR c/49396
7789 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
7790
7791 2011-08-22 Gabriel Charette <gchare@google.com>
7792
7793 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
7794 defined in cpp_init_builtins and c_cpp_builtins.
7795
7796 2011-08-19 Joseph Myers <joseph@codesourcery.com>
7797
7798 * c-common.c (c_common_reswords): Add __builtin_complex.
7799 * c-common.h (RID_BUILTIN_COMPLEX): New.
7800
7801 2011-08-18 Joseph Myers <joseph@codesourcery.com>
7802
7803 * c-common.c (c_common_reswords): Add _Noreturn.
7804 (keyword_is_function_specifier): Handle RID_NORETURN.
7805 * c-common.h (RID_NORETURN): New.
7806
7807 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
7808
7809 * c-common.c (unsafe_conversion_p): New function. Check if it is
7810 unsafe to convert an expression to the type.
7811 (conversion_warning): Adjust, use unsafe_conversion_p.
7812 * c-common.h (unsafe_conversion_p): New function declaration.
7813
7814 2011-08-02 Jakub Jelinek <jakub@redhat.com>
7815
7816 * c-common.h (c_finish_omp_atomic): Adjust prototype.
7817 (c_finish_omp_taskyield): New prototype.
7818 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
7819 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
7820 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
7821 or RHS1 have side-effects, evaluate those too in the right spot,
7822 if it is a decl and LHS is also a decl, error out if they
7823 aren't the same.
7824 (c_finish_omp_taskyield): New function.
7825 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
7826 * c-pragma.c (omp_pragmas): Add taskyield.
7827 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
7828 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
7829 PRAGMA_OMP_CLAUSE_MERGEABLE.
7830
7831 2011-07-25 Dodji Seketeli <dodji@redhat.com>
7832
7833 * c-common.h (set_underlying_type): Remove parm name from
7834 declaration.
7835
7836 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
7837
7838 * c-pretty-print.h: Search c-common.h in c-family.
7839
7840 2011-07-22 Jason Merrill <jason@redhat.com>
7841
7842 PR c++/49793
7843 * c.opt (Wnarrowing): New.
7844
7845 PR c++/30112
7846 * c-common.h: Declare c_linkage_bindings.
7847 * c-pragma.c (handle_pragma_redefine_extname): Use it.
7848
7849 PR c++/49813
7850 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
7851 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
7852 as flag_isoc99 for 'restrict'.
7853 (pp_c_specifier_qualifier_list): Likewise for _Complex.
7854
7855 2011-07-21 Ian Lance Taylor <iant@google.com>
7856
7857 PR middle-end/49705
7858 * c-common.c (c_disable_warnings): New static function.
7859 (c_enable_warnings): New static function.
7860 (c_fully_fold_internal): Change local unused_p to bool. Call
7861 c_disable_warnings and c_enable_warnings rather than change
7862 c_inhibit_evaluation_warnings.
7863
7864 2011-07-20 Jason Merrill <jason@redhat.com>
7865
7866 PR c++/6709 (DR 743)
7867 PR c++/42603 (DR 950)
7868 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
7869 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
7870 (CPP_DECLTYPE): New.
7871 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
7872
7873 2011-07-19 Richard Guenther <rguenther@suse.de>
7874
7875 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
7876 * c-omp.c (c_finish_omp_for): Likewise.
7877
7878 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
7879
7880 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
7881 body on the next line.
7882
7883 2011-07-08 Jason Merrill <jason@redhat.com>
7884
7885 PR c++/45437
7886 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
7887
7888 PR c++/49673
7889 * c-common.c (c_apply_type_quals_to_decl): Don't check
7890 TYPE_NEEDS_CONSTRUCTING.
7891
7892 2011-07-06 Richard Guenther <rguenther@suse.de>
7893
7894 * c-common.c (c_common_nodes_and_builtins):
7895 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
7896
7897 2011-07-05 Richard Guenther <rguenther@suse.de>
7898
7899 * c-common.c (c_common_nodes_and_builtins): Build all common
7900 tree nodes first.
7901
7902 2011-06-27 Jakub Jelinek <jakub@redhat.com>
7903
7904 * c-common.h (c_tree_chain_next): New static inline function.
7905
7906 * c-common.c (check_builtin_function_arguments): Handle
7907 BUILT_IN_ASSUME_ALIGNED.
7908
7909 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
7910
7911 * c-common.c: Add sync_ or SYNC__ to builtin names.
7912 * c-omp.c: Add sync_ or SYNC__ to builtin names.
7913
7914 2011-06-20 Pierre Vittet <piervit@pvittet.com>
7915
7916 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
7917 handler.
7918 (gen_pragma_handler): New union.
7919 (internal_pragma_handler): New type.
7920 (c_register_pragma_with_data)
7921 (c_register_pragma_with_expansion_and_data): New functions.
7922
7923 * c-pragma.c (registered_pragmas, c_register_pragma_1)
7924 (c_register_pragma, c_register_pragma_with_expansion)
7925 (c_invoke_pragma_handler): Changed to work with
7926 internal_pragma_handler.
7927 (c_register_pragma_with_data)
7928 (c_register_pragma_with_expansion_and_data): New functions.
7929
7930 2011-06-14 Joseph Myers <joseph@codesourcery.com>
7931
7932 * c-common.c: Include common/common-target.h.
7933 (handle_section_attribute): Use
7934 targetm_common.have_named_sections.
7935 * c-cppbuiltin.c: Include common/common-target.h.
7936 (c_cpp_builtins): Use targetm_common.except_unwind_info.
7937
7938 2011-06-10 Richard Guenther <rguenther@suse.de>
7939
7940 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
7941 to print a IDENTIFIER_NODE.
7942
7943 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7944 Joseph Myers <joseph@codesourcery.com>
7945
7946 * c.opt (fbuilding-libgcc): New option.
7947 * c-cppbuiltin.c (c_cpp_builtins): Define
7948 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
7949
7950 2011-06-07 Jason Merrill <jason@redhat.com>
7951
7952 * c-common.c (max_tinst_depth): Lower default to 900.
7953
7954 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
7955
7956 2011-06-07 Richard Guenther <rguenther@suse.de>
7957
7958 * c-common.c (c_common_nodes_and_builtins): Do not set
7959 size_type_node or call set_sizetype.
7960
7961 2011-06-07 Dodji Seketeli <dodji@redhat.com>
7962
7963 PR debug/49130
7964 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
7965 type when using pointer comparison to compare types.
7966
7967 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
7968
7969 * c.opt: Add -Wdelete-non-virtual-dtor.
7970 * c-opts.c (c_common_handle_option): Include it in -Wall.
7971
7972 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
7973
7974 PR bootstrap/49190
7975
7976 Revert:
7977 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
7978
7979 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
7980 not tree_common.
7981
7982 2011-05-27 Jakub Jelinek <jakub@redhat.com>
7983
7984 PR c++/49165
7985 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
7986 C++ don't call c_common_truthvalue_conversion on void type arms.
7987
7988 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
7989
7990 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
7991 (stmt_list_stack): Define.
7992 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
7993 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
7994
7995 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
7996
7997 * c-common.c (warning_candidate_p): Check for BLOCKs.
7998
7999 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
8000
8001 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
8002 not tree_common.
8003
8004 2011-05-25 Jakub Jelinek <jakub@redhat.com>
8005
8006 * c-common.c (def_fn_type): Remove extra va_end.
8007
8008 2011-05-23 Jason Merrill <jason@redhat.com>
8009
8010 PR c++/48106
8011 * c-common.c (c_common_get_narrower): New.
8012 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
8013
8014 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
8015
8016 * c-common.h (check_function_arguments): Tweak prototype of
8017 check_function_arguments.
8018 * c-common.c (check_function_arguments): Likewise. Adjust
8019 calls to check_function_nonnull, check_function_format, and
8020 check_function_sentinel.
8021 (check_function_sentinel): Take a FUNCTION_TYPE rather than
8022 separate attributes and typelist arguments. Use
8023 FOREACH_FUNCTION_ARGS to iterate over argument types.
8024
8025 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
8026
8027 * c-common.c (c_common_reswords): Reorder.
8028 * c-common.h (rid): Likewise.
8029
8030 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
8031
8032 * c-common.c (def_fn_type): Don't call build_function_type, call
8033 build_function_type_array or build_varargs_function_type_array
8034 instead.
8035 (c_common_nodes_and_builtins): Likewise.
8036
8037 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
8038
8039 * c-common.c (c_add_case_label): Omit the loc argument to
8040 build_case_label.
8041 * c-common.h (build_case_label): Remove.
8042 * c-semantics.c (build_case_label): Remove.
8043
8044 2011-05-05 Joseph Myers <joseph@codesourcery.com>
8045
8046 * c-objc.h (objc_start_method_definition): Update prototype.
8047 * stub-objc.c (objc_start_method_definition): Add extra parameter.
8048
8049 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
8050
8051 * c-common.c (check_main_parameter_types): Reindent. Don't use
8052 TYPE_ARG_TYPES directly.
8053 (handle_nonnull_attribute): Likewise.
8054 (sync_resolve_params): Likewise.
8055 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
8056 to check_format_string.
8057 (handle_format_attribute): Likewise.
8058 (check_format_string): Take a function type to examine instead of
8059 a type list. Use a function_arg_iterator to step through argument
8060 types.
8061
8062 2011-05-04 Richard Guenther <rguenther@suse.de>
8063
8064 * c-common.c (fix_string_type): Use size_int for index type bounds.
8065 (start_fname_decls): Do not pass NULL to build_int_cst.
8066 (c_init_attributes): Likewise.
8067 * c-lex.c (c_lex_with_flags): Likewise.
8068
8069 2011-04-27 Jason Merrill <jason@redhat.com>
8070
8071 * c-common.c (make_tree_vector_from_list): New.
8072 * c-common.h: Declare it.
8073
8074 2011-04-26 Richard Guenther <rguenther@suse.de>
8075
8076 PR preprocessor/48248
8077 * c-ppoutput.c (maybe_print_line): Always optimize newlines
8078 for output size with -P.
8079
8080 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
8081
8082 * c-common.c (struct c_common_resword): Add __underlying_type.
8083 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
8084
8085 2011-04-20 Jim Meyering <meyering@redhat.com>
8086
8087 * c-format.c (init_dollar_format_checking): Remove useless
8088 if-before-free.
8089
8090 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
8091
8092 * c-objc.h (objc_get_interface_ivars): Removed.
8093 (objc_detect_field_duplicates): New.
8094 * stub-objc.c: Likewise.
8095
8096 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
8097
8098 * stub-objc.c (objc_declare_protocols): Renamed to
8099 objc_declare_protocol.
8100 * c-objc.h: Likewise.
8101
8102 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
8103
8104 * stub-objc.c (objc_declare_class): Updated argument name.
8105
8106 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
8107
8108 * c-common.h (c_common_init_ts): Declare.
8109 * c-common.c (c_common_init_ts): Define.
8110
8111 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
8112
8113 * c-objc.h (objc_build_message_expr): Updated prototype.
8114 * stub-objc.c (objc_build_message_expr): Likewise.
8115
8116 2011-04-12 Martin Jambor <mjambor@suse.cz>
8117
8118 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
8119 of cgraph_node.
8120
8121 2011-04-11 Richard Guenther <rguenther@suse.de>
8122
8123 * c-common.c (complete_array_type): Build a range type of
8124 proper type.
8125
8126 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
8127
8128 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
8129 (handle_type_generic_attribute): Likewise.
8130
8131 2011-04-07 Jason Merrill <jason@redhat.com>
8132
8133 PR c++/48450
8134 * c-common.c (c_common_truthvalue_conversion): Don't ignore
8135 conversion from C++0x scoped enum.
8136
8137 2011-04-06 Joseph Myers <joseph@codesourcery.com>
8138
8139 * c-target-def.h: New file.
8140 * c-target.def: New file.
8141 * c-target.h: New file.
8142 * c-common.c (targetcm): Don't define here.
8143 * c-common.h (default_handle_c_option): Declare.
8144 * c-format.c: Include c-target.h instead of target.h.
8145 * c-opts.c: Include c-target.h instead of target.h. Explicitly
8146 include tm.h.
8147 (default_handle_c_option): Move from targhooks.c.
8148
8149 2011-03-29 Jakub Jelinek <jakub@redhat.com>
8150
8151 PR preprocessor/48248
8152 * c-ppoutput.c (print): Add src_file field.
8153 (init_pp_output): Initialize it.
8154 (maybe_print_line): Don't optimize by adding up to 8 newlines
8155 if map->to_file and print.src_file are different file.
8156 (print_line): Update print.src_file.
8157
8158 2011-03-25 Kai Tietz <ktietz@redhat.com>
8159
8160 * c-ada-spec.c (compare_comment): Use filename_cmp
8161 instead of strcmp for filename.
8162
8163 2011-03-25 Jeff Law <law@redhat.com>
8164
8165 * c-common.c (def_fn_type): Add missing va_end.
8166
8167 2011-03-25 Jason Merrill <jason@redhat.com>
8168
8169 * c.opt: Add -std=c++03.
8170
8171 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
8172
8173 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
8174
8175 2011-03-17 Kai Tietz <ktietz@redhat.com>
8176
8177 PR target/12171
8178 * c-pretty-print.c (pp_c_specifier_qualifier_list):
8179 Display allowed attributes for function pointer types.
8180 (pp_c_attributes_display): New function to display
8181 attributes having affects_type_identity flag set to true.
8182 * c-pretty-print.h (pp_c_attributes_display): New prototype.
8183
8184 * c-common.c (c_common_attribute_table):
8185 Add new element.
8186 (c_common_format_attribute_table): Likewise.
8187
8188 2011-03-18 Jason Merrill <jason@redhat.com>
8189
8190 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
8191 * c-common.h: Don't declare it here.
8192 * c-common.c: Or define it here.
8193 * c-opts.c (c_common_handle_option): Or set it here.
8194
8195 PR c++/35315
8196 * c-common.c (handle_transparent_union_attribute): Don't
8197 make a duplicate type in C++.
8198
8199 2011-03-15 Jason Merrill <jason@redhat.com>
8200
8201 * c-common.c (max_constexpr_depth): New.
8202 * c-common.h: Declare it.
8203 * c-opts.c (c_common_handle_option): Set it.
8204 * c.opt (fconstexpr-depth): New option.
8205
8206 2011-03-11 Jason Merrill <jason@redhat.com>
8207
8208 * c-common.c (attribute_takes_identifier_p): Add missing const.
8209
8210 PR c++/46803
8211 * c-common.c (attribute_takes_identifier_p): Assume that an
8212 unknown attribute takes an identifier.
8213
8214 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
8215
8216 PR c/47786
8217 * c-common.c (c_type_hash): Call list_length instead of iterating
8218 through DECL_CHAIN. Rename 'i' to 'n_elements'.
8219
8220 2011-02-19 Jakub Jelinek <jakub@redhat.com>
8221
8222 PR c/47809
8223 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
8224
8225 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
8226
8227 * c.opt (fobjc-abi-version=) New.
8228 (fobjc-nilcheck): New.
8229
8230 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
8231
8232 PR c++/46890
8233 * c-common.h (keyword_is_decl_specifier): Declare.
8234 * c-common.c (keyword_is_decl_specifier): Define.
8235 (keyword_is_function_specifier): New function.
8236
8237 2011-01-26 Jakub Jelinek <jakub@redhat.com>
8238
8239 PR c/47473
8240 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
8241 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
8242 REAL_TYPE.
8243
8244 2011-01-26 Arnaud Charlet <charlet@adacore.com>
8245
8246 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
8247
8248 2011-01-26 Jakub Jelinek <jakub@redhat.com>
8249
8250 PR pch/47430
8251 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
8252 after init_c_lex if pch_file is set.
8253
8254 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
8255
8256 PR c++/43601
8257 * c.opt (-fkeep-inline-dllexport): New switch.
8258
8259 2011-01-12 Richard Guenther <rguenther@suse.de>
8260
8261 PR middle-end/32511
8262 * c-common.c (handle_weak_attribute): Warn instead of error
8263 on declaring an inline function weak.
8264
8265 2011-01-05 Tom Tromey <tromey@redhat.com>
8266
8267 * c-common.h (lvalue_error): Update.
8268 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
8269 not error.
8270
8271 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
8272
8273 PR objc/47075
8274 * c-objc.h (objc_finish_message_expr): Added argument to
8275 prototype.
8276
8277 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
8278
8279 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
8280 Use prototype_p.
8281
8282 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
8283
8284 * c-objc.h (objc_maybe_warn_exceptions): New.
8285 * stub-objc.c (objc_maybe_warn_exceptions): New.
8286
8287 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
8288
8289 * c-common.h (readonly_error): Declare.
8290 * c-common.c (readonly_error): Define.
8291
8292 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
8293
8294 * c-common.h (invalid_indirection_error): Declare.
8295 * c-common.c (invalid_indirection_error): Define.
8296
8297 2010-12-03 Richard Guenther <rguenther@suse.de>
8298
8299 PR c/46745
8300 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
8301 (pp_c_unary_expression): Likewise.
8302 (pp_c_expression): Likewise.
8303
8304 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
8305
8306 * c-common.h (objc_finish_function): New.
8307 (objc_non_volatilized_type): Removed.
8308 (objc_type_quals_match): Removed.
8309 * stub-objc.c (objc_finish_function): New.
8310 (objc_non_volatilized_type): Removed.
8311 (objc_type_quals_match): Removed.
8312
8313 2010-11-30 Joseph Myers <joseph@codesourcery.com>
8314
8315 * c-common.h (parse_optimize_options): Declare.
8316 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
8317 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
8318
8319 2010-11-29 Joseph Myers <joseph@codesourcery.com>
8320
8321 * c-opts.c (check_deps_environment_vars): Use getenv instead of
8322 GET_ENVIRONMENT.
8323 * c-pch.c (O_BINARY): Don't define here.
8324 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
8325
8326 2010-11-25 Joseph Myers <joseph@codesourcery.com>
8327
8328 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
8329 targetm.except_unwind_info.
8330
8331 2010-11-23 Joseph Myers <joseph@codesourcery.com>
8332
8333 * c-opts.c (c_common_handle_option): Pass location to
8334 set_struct_debug_option.
8335
8336 2010-11-23 Joseph Myers <joseph@codesourcery.com>
8337
8338 * c-common.c (visibility_options): Move from ../opts.c.
8339 * c-common.h (struct visibility_flags, visibility_options):
8340 Declare here.
8341 * c-opts.c (finish_options): Rename to c_finish_options.
8342 (c_common_init): Update call to finish_options.
8343
8344 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
8345
8346 PR objc/34033
8347 * c-lex.c (lex_string): Check that each string in an Objective-C
8348 string concat sequence starts with either one or zero '@', and
8349 that there are no spurious '@' signs at the end.
8350
8351 2010-11-20 Joseph Myers <joseph@codesourcery.com>
8352
8353 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
8354 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
8355 HANDLE_PRAGMA_VISIBILITY.
8356 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
8357 HANDLE_PRAGMA_VISIBILITY): Don't define.
8358 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
8359
8360 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
8361
8362 PR c++/16189
8363 PR c++/36888
8364 PR c++/45331
8365 * c-common.h (keyword_begins_type_specifier): Declare.
8366 (keyword_is_storage_class_specifier): Declare.
8367 (keyword_is_type_qualifier): Declare.
8368 * c-common.c (keyword_begins_type_specifier): New function.
8369 (keyword_is_storage_class_specifier): New function.
8370 (keyword_is_type_qualifier): Declare.
8371
8372 2010-11-19 Joseph Myers <joseph@codesourcery.com>
8373
8374 PR c/46547
8375 * c-common.c (in_late_binary_op): Define.
8376 (c_common_truthvalue_conversion): Check in_late_binary_op before
8377 calling c_save_expr.
8378 * c-common.h (in_late_binary_op): Declare.
8379
8380 2010-11-19 Joseph Myers <joseph@codesourcery.com>
8381
8382 * c-opts.c (c_common_handle_option): Update calls to
8383 set_struct_debug_option.
8384
8385 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
8386
8387 * c-common.h (objc_declare_protocols): Added additional argument.
8388 * stub-objc.c (objc_declare_protocol): Same change.
8389
8390 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
8391
8392 PR c/33193
8393 * c-common.h (build_real_imag_expr): Declare.
8394 * c-semantics.c (build_real_imag_expr): Define.
8395
8396 2010-11-17 Joseph Myers <joseph@codesourcery.com>
8397
8398 * c-opts.c (c_common_parse_file): Take no arguments.
8399 * c-common.h (c_common_parse_file): Update prototype.
8400
8401 2010-11-16 Jakub Jelinek <jakub@redhat.com>
8402
8403 PR c++/46401
8404 * c-common.c (warning_candidate_p): Don't track non-const calls
8405 or STRING_CSTs.
8406
8407 2010-11-15 Ian Lance Taylor <iant@google.com>
8408
8409 * c-lex.c (init_c_lex): Set macro debug callbacks if
8410 flag_dump_go_spec is set.
8411
8412 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
8413
8414 * c-common.h (objc_build_incr_expr_for_property_ref): New.
8415 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
8416
8417 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
8418
8419 PR preprocessor/45038
8420 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
8421 dialects.
8422
8423 2010-11-12 Joseph Myers <joseph@codesourcery.com>
8424
8425 * c-common.h (c_family_lang_mask): Declare.
8426 * c-opts.c (c_family_lang_mask): Make extern.
8427 * c-pragma.c (handle_pragma_diagnostic): Use
8428 control_warning_option.
8429
8430 2010-11-12 Joseph Myers <joseph@codesourcery.com>
8431
8432 * c-common.c (parse_optimize_options): Update call to
8433 decode_options.
8434 * c-common.h (c_common_handle_option): Update prototype.
8435 * c-opts.c (c_common_handle_option): Take location_t parameter and
8436 pass it to other functions.
8437
8438 2010-11-11 Joseph Myers <joseph@codesourcery.com>
8439
8440 * c-opts.c (warning_as_error_callback): Remove.
8441 (c_common_initialize_diagnostics): Don't call
8442 register_warning_as_error_callback.
8443 (c_common_handle_option): Handle -Werror=normalized= here.
8444
8445 2010-11-10 Joseph Myers <joseph@codesourcery.com>
8446
8447 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
8448 in diagnostic.
8449 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
8450 letter.
8451 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
8452 Remove trailing '.' from diagnostics.
8453 * c.opt (Wwrite-strings_: Avoid '`' in help text.
8454
8455 2010-11-10 Joseph Myers <joseph@codesourcery.com>
8456
8457 * c-common.c (parse_optimize_options): Pass global_dc to
8458 decode_options.
8459 * c-opts.c (c_common_handle_option): Pass &global_options to
8460 set_Wstrict_aliasing.
8461 * c.opt (v): Don't mark Common or document here.
8462
8463 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
8464
8465 PR target/44981
8466 * c-format.c (format_type): New type gcc_objc_string_format_type.
8467 (valid_stringptr_type_p): New.
8468 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
8469 (check_format_string): Pass expected type, use
8470 valid_stringptr_type_p (), check that the format string types are
8471 consistent with the format specification.
8472 (decode_format_attr): Warn if NSString is used outside objective-c.
8473 (format_types_orig): Add NSString.
8474 (format_name): New.
8475 (format_flags): New.
8476 (check_format_arg): Handle format strings requiring an external parser.
8477 first_target_format_type: New variable.
8478 (handle_format_attribute): Set up first_target_format_type, pass the
8479 expected format arg string type to check_format_string().
8480 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
8481 * stub-objc.c (objc_string_ref_type_p): New.
8482 (objc_check_format_arg): New.
8483
8484 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
8485
8486 Fixed using the Objective-C 2.0 dot-syntax with class names.
8487 * c-common.h (objc_build_class_component_ref): New.
8488 * stub-objc.c (objc_build_class_component_ref): New.
8489
8490 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
8491
8492 * c.opt (Wproperty-assign-default): New option.
8493
8494 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
8495
8496 Implemented -fobjc-std=objc1 flag.
8497 * c.opt (fobjc-std=objc1): New option.
8498
8499 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
8500
8501 Implemented format and noreturn attributes for Objective-C methods.
8502 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
8503 attribute for Objective-C methods.
8504
8505 2010-10-31 Jason Merrill <jason@redhat.com>
8506
8507 * c-common.c (conversion_warning, warn_for_collisions_1): Use
8508 EXPR_LOC_OR_HERE.
8509
8510 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
8511
8512 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
8513 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
8514 (objc_add_property_declaration): Removed arguments for copies and
8515 ivar.
8516 (objc_build_getter_call): Renamed to
8517 objc_maybe_build_component_ref.
8518 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
8519 (objc_is_property_ref): New.
8520 * c-common.c (c_common_reswords): Removed copies and ivar.
8521 * stub-objc.c (objc_add_property_declaration): Removed arguments
8522 for copies and ivar.
8523 (objc_build_getter_call): Renamed to
8524 objc_maybe_build_component_ref.
8525 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
8526 (objc_is_property_ref): New.
8527
8528 2010-10-29 Arnaud Charlet <charlet@adacore.com>
8529 Matthew Gingell <gingell@adacore.com>
8530
8531 * c-ada-spec.c (separate_class_package): New function.
8532 (pp_ada_tree_identifier): Prefix references to C++ classes with the
8533 name of their enclosing package.
8534 (print_ada_declaration): Use separate_class_package.
8535
8536 2010-10-27 Jason Merrill <jason@redhat.com>
8537
8538 * c-common.c (c_common_reswords): Add __is_literal_type.
8539 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
8540
8541 * c-common.c (check_case_value): Remove special C++ code.
8542
8543 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
8544
8545 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
8546 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
8547 and RID_LAST_PATTR.
8548 (objc_add_property_declaration): Added additional arguments.
8549 (objc_property_attribute_kind): Removed.
8550 (objc_set_property_attr): Removed.
8551 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
8552 copy and nonatomic.
8553 * stub-objc.c (objc_add_property_declaration): Added additional
8554 arguments.
8555 (objc_set_property_attr): Removed.
8556
8557 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
8558
8559 * c-common.h (objc_add_property_variable): Renamed to
8560 objc_add_property_declaration. Added location argument.
8561 * stub-objc.c (objc_add_property_variable): Same change.
8562
8563 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
8564
8565 * c-common.h (objc_maybe_printable_name): New.
8566 * stub-objc.c (objc_maybe_printable_name): New.
8567
8568 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
8569 Andrew Pinski <pinskia@gmail.com>
8570
8571 * c-common.h (c_common_mark_addressable_vec): Declare.
8572 * c-common.c (c_common_mark_addressable_vec): New function.
8573
8574 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
8575
8576 * c-common.h (objc_set_method_type): Removed.
8577 (objc_add_method_declaration): Added boolean argument.
8578 (objc_start_method_definition): Same change.
8579 (objc_build_method_signature): Same change.
8580 * stub-objc.c (objc_set_method_type): Removed.
8581 (objc_add_method_declaration): Added boolean argument.
8582 (objc_start_method_definition): Same change.
8583 (objc_build_method_signature): Same change.
8584
8585 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
8586
8587 * c-common.h (finish_file): Removed.
8588 (objc_write_global_declarations): New.
8589 * c-opts.c (c_common_parse_file): Do not call finish_file.
8590 * stub-objc.c (objc_write_global_declarations): New.
8591
8592 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
8593
8594 Implemented parsing @synthesize and @dynamic for
8595 Objective-C/Objective-C++.
8596 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
8597 (objc_add_synthesize_declaration): New.
8598 (objc_add_dynamic_declaration): New.
8599 * c-common.c (c_common_reswords): Add synthesize and dynamic.
8600 * stub-objc.c (objc_add_synthesize_declaration): New.
8601 (objc_add_dynamic_declaration): New.
8602
8603 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
8604
8605 PR target/46041
8606 * c-cppbuiltin.c (mode_has_fma): Move function here from
8607 builtins.c. Don't use the fma optab, instead just use the
8608 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
8609 using -save-temps.
8610
8611 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
8612
8613 Merge from 'apple/trunk' branch on FSF servers.
8614
8615 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
8616
8617 Radar 4330422
8618 * c-common.h (objc_non_volatilized_type): New declaration
8619 * stub-objc.c (objc_non_volatilized_type): New stub.
8620
8621 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
8622
8623 Merge from 'apple/trunk' branch on FSF servers.
8624
8625 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
8626
8627 Radar 4133425
8628 * c-common.h (objc_diagnose_private_ivar): New decl.
8629 * stub-objc.c (objc_diagnose_private_ivar): New stub.
8630
8631 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
8632
8633 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
8634 * c-common.h (enum rid): Add RID_AT_PACKAGE.
8635 (objc_ivar_visibility_kind): New enum.
8636 (objc_set_visibility): Adjust prototype to use visibility enum.
8637 * stub-objc.c (objc_set_visibility): Adjust stub to use
8638 visibility enum.
8639
8640 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8641
8642 * c-cppbuiltin.c (builtin_define_float_constants): Emit
8643 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
8644 has the appropriate fma builtins.
8645 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
8646
8647 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
8648
8649 merge from FSF apple 'trunk' branch.
8650 2006 Fariborz Jahanian <fjahanian@apple.com>
8651
8652 Radars 4436866, 4505126, 4506903, 4517826
8653 * c-common.c (c_common_resword): Define @property and its attributes.
8654 * c-common.h: Define property attribute enum entries.
8655 (OBJC_IS_PATTR_KEYWORD): New.
8656 (objc_property_attribute_kind): New enum.
8657 Declare objc_set_property_attr (), objc_add_property_variable (),
8658 objc_build_getter_call () and objc_build_setter_call ().
8659 * stub-objc.c (objc_set_property_attr): New stub.
8660 (objc_add_property_variable): Likewise.
8661 (objc_build_getter_call): Likewise.
8662 (objc_build_setter_call) Likewise.
8663
8664 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
8665
8666 merge from FSF apple 'trunk' branch.
8667 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
8668
8669 Radar 3803157 (method attributes)
8670 * c-common.c (handle_deprecated_attribute): Recognize
8671 objc methods as valid declarations.
8672 * c-common.h: Declare objc_method_decl ().
8673 * stub-objc.c (objc_method_decl): New stub.
8674
8675 2010-10-08 Joseph Myers <joseph@codesourcery.com>
8676
8677 * c-common.c (parse_optimize_options): Call
8678 decode_cmdline_options_to_array_default_mask before
8679 decode_options. Update arguments to decode_options.
8680 * c-common.h (c_common_init_options_struct): Declare.
8681 * c-opts.c (c_common_init_options_struct): New. Split out from
8682 c_common_init_options.
8683
8684 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
8685
8686 Implemented fast enumeration for Objective-C.
8687 * c-common.h (objc_finish_foreach_loop): New.
8688 * stub-objc.c (objc_finish_foreach_loop): New.
8689
8690 2010-10-05 Joseph Myers <joseph@codesourcery.com>
8691
8692 * c-common.h (struct diagnostic_context): Don't declare here.
8693 (c_common_initialize_diagnostics): Declare using
8694 diagnostic_context typedef.
8695 * c-opts.c (c_common_handle_option): Pass global_dc to
8696 handle_generated_option.
8697
8698 2010-10-04 Joseph Myers <joseph@codesourcery.com>
8699
8700 * c-opts.c (c_common_handle_option): Pass &global_options_set to
8701 handle_generated_option.
8702
8703 2010-10-03 Ian Lance Taylor <iant@google.com>
8704
8705 * c.opt (-fplan9-extensions): New option.
8706
8707 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8708
8709 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
8710 Remove.
8711 (c_cpp_builtins): Call functions from cppbuiltin.c instead
8712 of duplicating code.
8713
8714 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
8715
8716 * c-common.c: Add two new entries for @optional
8717 and @required keywords.
8718
8719 merge from FSF 'apple/trunk' branch.
8720 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
8721
8722 Radar 4386773
8723 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
8724 objective-c keywords.
8725 (objc_set_method_opt): New declaration.
8726 * stub-objc.c (objc_set_method_opt): New stub.
8727
8728 2010-09-30 Joseph Myers <joseph@codesourcery.com>
8729
8730 * c-common.c (handle_optimize_attribute): Pass &global_options to
8731 cl_optimization_save and cl_optimization_restore.
8732 * c-opts.c (c_common_handle_option): Pass &global_options to
8733 handle_generated_option.
8734 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
8735 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
8736 &global_options to cl_optimization_restore.
8737
8738 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
8739
8740 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
8741 Objective-C/Objective-C++ keywords.
8742
8743 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
8744
8745 Merge from 'apple/trunk' branch on FSF servers.
8746
8747 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
8748
8749 Radar 4281748
8750 * c-common.h (objc_check_global_decl): New declaration.
8751 * stub-objc.c (objc_check_global_decl): New stub.
8752
8753 2010-09-29 Joseph Myers <joseph@codesourcery.com>
8754
8755 * c.opt: Don't use VarExists.
8756
8757 2010-09-29 Joseph Myers <joseph@codesourcery.com>
8758
8759 * c-common.c (c_cpp_error): Update names of diagnostic_context
8760 members.
8761 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
8762 cl_optimization members.
8763 * c-opts.c (warning_as_error_callback, c_common_handle_option,
8764 sanitize_cpp_opts, finish_options): Update names of cpp_options
8765 members.
8766
8767 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
8768
8769 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
8770 (objc_is_reserved_word): Removed.
8771 * c-common.c: Updated comments.
8772 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
8773 objc_is_reserved_word.
8774 * stub-objc.c (objc_is_reserved_word): Removed.
8775
8776 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
8777
8778 * c-common.h (objc_add_method_declaration): Adjust prototype to
8779 include attributes.
8780 (objc_start_method_definition): Likewise.
8781 (objc_build_keyword_decl): Likewise.
8782 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
8783 (objc_start_method_definition): Likewise.
8784 (objc_build_keyword_decl): Likewise.
8785
8786 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
8787
8788 * c-common.h (objc_start_class_interface): Adjust prototype.
8789 (objc_start_category_interface): Likewise.
8790 (objc_start_protocol): Likewise.
8791 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
8792 (objc_start_class_interface): Likewise.
8793 (objc_start_category_interface): Likewise.
8794
8795 2010-09-27 Ian Lance Taylor <iant@google.com>
8796
8797 * c-common.c (c_common_attribute_table): Add no_split_stack.
8798 (handle_no_split_stack_attribute): New static function.
8799
8800 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
8801
8802 Merge from 'apple/trunk' branch on FSF servers.
8803
8804 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
8805
8806 Radar 4229905
8807 * c-common.h (objc_have_common_type): New declaration.
8808 * stub-objc.c (objc_have_common_type): New stub.
8809
8810 2005-06-22 Ziemowit Laski <zlaski@apple.com>
8811
8812 Radar 4154928
8813 * c-common.h (objc_common_type): New prototype.
8814 * stub-objc.c (objc_common_type): New stub.
8815
8816 2010-09-24 Jan Hubicka <jh@suse.cz>
8817
8818 * c-common.c (handle_leaf_attribute): New function.
8819 (struct attribute_spec c_common_att): Add leaf.
8820
8821 2010-09-22 Joseph Myers <joseph@codesourcery.com>
8822
8823 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
8824 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
8825 -dump, -dump=, -imacros, -imacros=, -include, -include=,
8826 -include-barrier, -include-directory, -include-directory=,
8827 -include-directory-after, -include-directory-after=,
8828 -include-prefix, -include-prefix=, -include-with-prefix,
8829 -include-with-prefix=, -include-with-prefix-after,
8830 -include-with-prefix-after=, -include-with-prefix-before,
8831 -include-with-prefix-before=, -no-integrated-cpp,
8832 -no-line-commands, -no-standard-includes, -no-warnings, -output,
8833 -output=, -pedantic, -pedantic-errors, -preprocess,
8834 -print-missing-file-dependencies, -trace-includes, -traditional,
8835 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
8836 -user-dependencies, -verbose, -write-dependencies,
8837 -write-user-dependencies, no-integrated-cpp, traditional): New.
8838
8839 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
8840
8841 PR objc/23710
8842 * c-common.h (objc_start_method_definition): Return bool instead
8843 of void.
8844 * stub-objc.c (objc_start_method_definition): Return bool instead
8845 of void.
8846
8847 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
8848
8849 PR objc/25965
8850 * c-common.h (objc_get_interface_ivars): New declaration.
8851 * stub-objc.c (objc_get_interface_ivars): New stub.
8852
8853 2010-09-15 Ian Lance Taylor <iant@google.com>
8854
8855 * c-common.c (parse_optimize_options): Do not capitalize warning
8856 messages. Remove period at end of warning message.
8857
8858 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
8859
8860 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
8861 (handle_alias_attribute): ... here.
8862 (handle_ifunc_attribute): New.
8863
8864 2010-09-06 Mark Mitchell <mark@codesourcery.com>
8865
8866 * c-common.h (do_warn_double_promotion): Declare.
8867 * c-common.c (do_warn_double_promotion): Define.
8868
8869 2010-09-05 Mark Mitchell <mark@codesourcery.com>
8870
8871 * c.opt (Wdouble-promotion): New.
8872
8873 2010-09-02 Joseph Myers <joseph@codesourcery.com>
8874
8875 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
8876 fvtable-thunks, fxref): Mark no longer supported in help text.
8877
8878 2010-09-02 Joseph Myers <joseph@codesourcery.com>
8879
8880 * c.opt (Wimport, fall-virtual, falt-external-templates,
8881 fdefault-inline, fenum-int-equiv, fexternal-templates,
8882 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
8883 fname-mangling-version-, fnew-abi, fnonnull-objects,
8884 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
8885 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
8886 applicable.
8887 (fhandle-exceptions): Mark with Alias and Warn.
8888 * c-opts.c (c_common_handle_option): Don't handle options marked
8889 as ignored.
8890
8891 2010-09-02 Joseph Myers <joseph@codesourcery.com>
8892
8893 * c.opt (Wcomments, Werror-implicit-function-declaration,
8894 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
8895 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
8896 aliases.
8897 * c-common.c (option_codes): Use OPT_Wcomment instead of
8898 OPT_Wcomments.
8899 * c-opts.c (warning_as_error_callback, c_common_handle_option):
8900 Don't handle options marked as aliases.
8901
8902 2010-08-25 Richard Guenther <rguenther@suse.de>
8903
8904 * c-common.c (c_common_get_alias_set): Remove special
8905 handling for pointers.
8906
8907 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
8908
8909 * c-common.c: Use FOR_EACH_VEC_ELT.
8910 * c-gimplify.c: Likewise.
8911 * c-pragma.c: Likewise.
8912
8913 2010-08-16 Joseph Myers <joseph@codesourcery.com>
8914
8915 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
8916 RejectDriver.
8917 (MMDX): Change back to MMD. Mark NoDriverArg instead of
8918 RejectDriver.
8919 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
8920 instead of OPT_MDX and OPT_MMDX.
8921
8922 2010-08-16 Joseph Myers <joseph@codesourcery.com>
8923
8924 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
8925
8926 2010-08-12 Joseph Myers <joseph@codesourcery.com>
8927
8928 * c.opt (MD, MMD): Change to MDX and MMDX.
8929 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
8930
8931 2010-08-11 Joseph Myers <joseph@codesourcery.com>
8932
8933 * c-opts.c (c_common_handle_option): Call handle_generated_option
8934 instead of handle_option.
8935
8936 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
8937
8938 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
8939 (maybe_apply_renaming_pragma): Delete unneeded declarations.
8940
8941 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
8942
8943 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
8944 (pending_redefine_extname): Change type to a VEC.
8945 (add_to_renaming_pragma_list): Update for new type of
8946 pending_redefine_extname.
8947 (maybe_apply_renaming_pragma): Likewise.
8948
8949 2010-08-04 Arnaud Charlet <charlet@adacore.com>
8950
8951 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
8952 visited.
8953 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
8954 decide whether a type has already been declared/seen.
8955 Do not go to the original type.
8956 (dump_nested_types): New parameter forward.
8957 Generate forward declaration if needed and mark type as visited.
8958 (print_ada_declaration): Call dump_nested_types if not already done.
8959 Mark types as visited.
8960
8961 2010-08-03 Joseph Myers <joseph@codesourcery.com>
8962
8963 * c.opt (-print-pch-checksum): Remove option.
8964 * c-opts.c (c_common_handle_option): Don't handle
8965 OPT_print_pch_checksum.
8966
8967 2010-07-27 Joseph Myers <joseph@codesourcery.com>
8968
8969 * c-common.h (c_common_handle_option): Update prototype and return
8970 value type.
8971 * c-opts.c (c_common_handle_option): Update prototype and return
8972 value type. Update calls to handle_option and
8973 enable_warning_as_error.
8974
8975 2010-07-27 Jakub Jelinek <jakub@redhat.com>
8976
8977 PR c/45079
8978 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
8979
8980 2010-07-27 Joseph Myers <joseph@codesourcery.com>
8981
8982 * c-common.h (c_common_missing_argument): Remove.
8983 * c-opts.c (c_common_missing_argument): Remove.
8984 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
8985 idirafter, imacros, include, isysroot, isystem, iquote): Add
8986 MissingArgError.
8987 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
8988
8989 2010-07-27 Joseph Myers <joseph@codesourcery.com>
8990
8991 * c-common.h (c_common_option_lang_mask,
8992 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
8993 New.
8994 (c_common_init_options): Update prototype.
8995 * c-opts.c (c_common_option_lang_mask): New.
8996 (c_common_initialize_diagnostics): Split out of
8997 c_common_init_options.
8998 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
8999 New.
9000 (c_common_init_options): Update prototype. Use decoded options in
9001 search for -lang-asm.
9002
9003 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
9004
9005 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
9006 * c-format.c: Likewise.
9007
9008 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
9009
9010 * c-common.h: Include diagnostic-core.h. Error if already
9011 included.
9012 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
9013
9014 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
9015
9016 * c-common.c (IN_GCC_FRONTEND): Do not undef.
9017 Do not include expr.h
9018 (vector_mode_valid_p): Move here.
9019
9020 2010-06-21 DJ Delorie <dj@redhat.com>
9021
9022 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
9023 allow these pragmas anywhere.
9024
9025 2010-06-14 Jakub Jelinek <jakub@redhat.com>
9026
9027 PR bootstrap/44509
9028 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
9029 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
9030 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
9031 ggc_strdup instead of xstrdup.
9032
9033 2010-06-10 Jakub Jelinek <jakub@redhat.com>
9034
9035 * c-cppbuiltin.c: Include cpp-id-data.h.
9036 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
9037 (lazy_hex_fp_value): New function.
9038 (builtin_define_with_hex_fp_value): Provide definitions lazily.
9039
9040 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
9041
9042 * c-gimplify.c: Do not include tree-flow.h
9043
9044 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
9045
9046 PR other/44034
9047 * c-common.c: Rename targetm member:
9048 targetm.enum_va_list -> targetm.enum_va_list_p
9049
9050 2010-06-28 Anatoly Sokolov <aesok@post.ru>
9051
9052 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
9053
9054 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
9055
9056 * c-cppbuiltin.c: Do not include except.h.
9057
9058 2010-06-24 Andi Kleen <ak@linux.intel.com>
9059
9060 * c-common.c (warn_for_omitted_condop): New.
9061 * c-common.h (warn_for_omitted_condop): Add prototype.
9062
9063 2010-06-21 Joseph Myers <joseph@codesourcery.com>
9064
9065 * c.opt (lang-objc): Remove.
9066 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
9067
9068 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
9069
9070 * c-opts.c: Include "tm_p.h".
9071
9072 2010-06-20 Joseph Myers <joseph@codesourcery.com>
9073
9074 * c-common.c (parse_optimize_options): Update call to
9075 decode_options.
9076
9077 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
9078
9079 * c-common.c (record_types_used_by_current_var_decl): Adjust for
9080 new type of types_used_by_cur_var_decl.
9081
9082 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
9083
9084 PR bootstrap/44512
9085 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
9086 for C++ standard compliance.
9087
9088 2010-06-16 Jason Merrill <jason@redhat.com>
9089
9090 * c.opt: Add -Wnoexcept.
9091
9092 2010-06-16 Richard Guenther <rguenther@suse.de>
9093
9094 PR c/44555
9095 * c-common.c (c_common_truthvalue_conversion): Remove
9096 premature and wrong optimization concering ADDR_EXPRs.
9097
9098 2010-06-15 Arnaud Charlet <charlet@adacore.com>
9099
9100 * c-ada-spec.c (dump_sloc): Remove column info.
9101 (is_simple_enum): New function.
9102 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
9103 enum types when relevant.
9104
9105 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
9106
9107 * c-common.c (conversion_warning): Warn at expression
9108 location.
9109
9110 2010-06-10 Joseph Myers <joseph@codesourcery.com>
9111
9112 * c-opts.c (c_common_handle_option): Don't handle
9113 OPT_fshow_column.
9114
9115 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9116
9117 * c-pragma.c (push_alignment): Use typed GC allocation.
9118 (handle_pragma_push_options): Likewise.
9119
9120 * c-common.c (parse_optimize_options): Likewise.
9121
9122 * c-common.h (struct sorted_fields_type): Add variable_size GTY
9123 option.
9124
9125 2010-06-07 Joseph Myers <joseph@codesourcery.com>
9126
9127 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
9128 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
9129 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
9130 flag_signed_bitfields, warn_strict_null_sentinel,
9131 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
9132 flag_gen_declaration, flag_no_gnu_keywords,
9133 flag_implement_inlines, flag_implicit_templates,
9134 flag_implicit_inline_templates, flag_optional_diags,
9135 flag_elide_constructors, flag_default_inline, flag_rtti,
9136 flag_conserve_space, flag_access_control, flag_check_new,
9137 flag_new_for_scope, flag_weak, flag_working_directory,
9138 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
9139 flag_enforce_eh_specs, flag_threadsafe_statics,
9140 flag_pretty_templates): Remove.
9141 * c-common.h (flag_preprocess_only, flag_nil_receivers,
9142 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
9143 flag_replace_objc_classes, flag_undef, flag_no_builtin,
9144 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
9145 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
9146 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
9147 flag_no_gnu_keywords, flag_implement_inlines,
9148 flag_implicit_templates, flag_implicit_inline_templates,
9149 flag_optional_diags, flag_elide_constructors, flag_default_inline,
9150 flag_rtti, flag_conserve_space, flag_access_control,
9151 flag_check_new, flag_new_for_scope, flag_weak,
9152 flag_working_directory, flag_use_cxa_atexit,
9153 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
9154 flag_threadsafe_statics, flag_pretty_templates,
9155 warn_strict_null_sentinel): Remove.
9156 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
9157 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
9158 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
9159 fimplicit-inline-templates, fimplicit-templates,
9160 flax-vector-conversions, fms-extensions, fnil-receivers,
9161 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
9162 frtti, fshort-double, fshort-enums, fshort-wchar,
9163 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
9164 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
9165 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
9166 gen-decls, undef): Use Var.
9167 (fdefault-inline, foptional-diags): Document as doing nothing.
9168 * c-opts.c (c_common_handle_option): Remove cases for options now
9169 using Var. Mark ignored options as such.
9170
9171 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
9172
9173 * c-common.c: Moved to here from parent directory.
9174 * c-common.def: Likewise.
9175 * c-common.h: Likewise.
9176 * c-cppbuiltin.c: Likewise.
9177 * c-dump.c: Likewise.
9178 * c-format.c: Likewise.
9179 * c-format.h : Likewise.
9180 * c-gimplify.c: Likewise.
9181 * c-lex.c: Likewise.
9182 * c-omp.c: Likewise.
9183 * c.opt: Likewise.
9184 * c-opts.c: Likewise.
9185 * c-pch.c: Likewise.
9186 * c-ppoutput.c: Likewise.
9187 * c-pragma.c: Likewise.
9188 * c-pragma.h: Likewise.
9189 * c-pretty-print.c: Likewise.
9190 * c-pretty-print.h: Likewise.
9191 * c-semantics.c: Likewise.
9192 * stub-objc.c: Likewise.
9193
9194 * c-common.c: Include gt-c-family-c-common.h.
9195 * c-pragma.c: Include gt-c-family-c-pragma.h.
9196 \f
9197 Copyright (C) 2010-2018 Free Software Foundation, Inc.
9198
9199 Copying and distribution of this file, with or without modification,
9200 are permitted in any medium without royalty provided the copyright
9201 notice and this notice are preserved.