]> gcc.gnu.org Git - gcc.git/blame - gcc/c-family/ChangeLog
Fortran/OpenMP] Don't create "alloc:" for 'target exit data'
[gcc.git] / gcc / c-family / ChangeLog
CommitLineData
ad1539d5
MS
12019-10-28 Martin Sebor <msebor@redhat.com>
2
3 PR c/66970
4 * c-common.c (c_common_nodes_and_builtins): Call c_define_builtins
5 even when only preprocessing.
6 * c-common.h (names_builtin_p): Declare new function.
7 * c-lex.c (init_c_lex): Set has_builtin.
8 (c_common_has_builtin): Define a new function.
9 * c-ppoutput.c (init_pp_output): Set has_builtin.
10
135df52c
JJ
112019-10-24 Jakub Jelinek <jakub@redhat.com>
12
13 * c-common.h (c_omp_context_selector_matches): Remove.
14 * c-omp.c (c_omp_context_selector_matches): Remove.
15 * c-attribs.c (c_common_attribute_table): Add
16 "omp declare target {host,nohost,block}" attributes.
17
8ad0c477
JM
182019-10-17 JeanHeyd Meneide <phdofthehouse@gmail.com>
19
20 * c-lex.c (c_common_has_attribute): Update nodiscard value.
21
56898e43
RS
222019-10-14 Richard Sandiford <richard.sandiford@arm.com>
23
24 * c-common.h (user_facing_original_type_p): Declare.
25 * c-common.c: Include c-spellcheck.h.
26 (user_facing_original_type_p): New function.
27
20de9568
JJ
282019-10-12 Jakub Jelinek <jakub@redhat.com>
29
30 * c-common.h (c_omp_mark_declare_variant,
31 c_omp_context_selector_matches): Declare.
32 * c-omp.c: Include attribs.h, gimplify.h, cgraph.h, symbol-summary.h
33 and hsa-common.h.
34 (c_omp_get_context_selector): Support second argument NULL.
35 (c_omp_mark_declare_variant, c_omp_context_selector_matches): New
36 functions.
37 * c-attribs.c (c_common_attribute_table): Remove "omp declare variant"
38 attribute, add "omp declare variant base" and
39 "omp declare variant variant" attributes.
40
175a85b2
JM
412019-10-11 Joseph Myers <joseph@codesourcery.com>
42
43 * c.opt (Wc11-c2x-compat): Add CPP(cpp_warn_c11_c2x_compat)
44 CppReason(CPP_W_C11_C2X_COMPAT).
45
fe2bc27c
JM
462019-10-11 Joseph Myers <joseph@codesourcery.com>
47
48 * c-common.c (c_common_reswords): Do not use D_EXT for _Decimal32,
49 _Decimal64 and _Decimal128.
50
27dfdc0f
JM
512019-10-10 Joseph Myers <joseph@codesourcery.com>
52
53 * c-cppbuiltin.c (c_cpp_builtins): Do not define macros for DFP
54 types if DFP not supported.
55
94e7f906
JJ
562019-10-10 Jakub Jelinek <jakub@redhat.com>
57
58 * c-common.h (c_omp_check_context_selector,
59 c_omp_get_context_selector): Declare.
60 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): Fix spelling
61 in diagnostic message.
62 (c_omp_check_context_selector, c_omp_get_context_selector): New
63 functions.
64 * c-attribs.c (c_common_attribute_table): Add "omp declare variant"
65 attribute.
66 (handle_omp_declare_variant_attribute): New function.
67
a7160771
MS
682019-10-09 Martin Sebor <msebor@redhat.com>
69
70 PR tree-optimization/90879
71 * c.opt (-Wstring-compare): New option.
72
cb57504a
JM
732019-10-08 Andrew Sutton <asutton@lock3software.com>
74 Jason Merrill <jason@redhat.com>
75
76 Update the concepts implementation to conform to the C++20
77 specification, improve compile times, and generally clean up
78 the implementation.
79
80 * c-cppbuiltin.c (c_cpp_builtins): Use new feature test values for
81 concepts when -std=c++2a. Bump __cpp_concepts to 201907.
82 * c.opt: Add -Wconcepts-ts.
83 * c-opts.c (c_common_post_options): Warn when -fconcepts is used
84 with -std=c++2a. Disable warning for -fconcepts in C++20 mode.
85 (set_std_cxx2a): Enable concepts by default.
86
fbb2a6dc
JM
872019-10-08 Joseph Myers <joseph@codesourcery.com>
88
89 * c-opts.c (c_common_post_options): Set
90 -fno-fp-int-builtin-inexact for C2X.
91
8e007055
JJ
922019-10-05 Jakub Jelinek <jakub@redhat.com>
93
94 PR c++/91369 - Implement P0784R7: constexpr new
95 * c-cppbuiltin.c (c_cpp_builtins): Predefine
96 __cpp_constexpr_dynamic_alloc=201907 for -std=c++2a.
97
843f104d
JM
982019-10-04 Joseph Myers <joseph@codesourcery.com>
99
100 PR c/82752
101 * c-format.c (C_STD_VER): Handle C2x.
102 (C_STD_NAME): Likewise.
103 (strftime_flag_specs): Add 'O' modifier with 'p' flag.
104 (time_char_table): Use separate entry for 'B' and 'b', with 'O'
105 modifier allowed and 'p' flag.
106 * c-format.h (enum format_std_version): Add STD_C2X.
107 (struct format_char_info): Mention 'p' in comment on flags2.
108
e9c9a142
DM
1092019-10-01 David Malcolm <dmalcolm@redhat.com>
110
111 * c-opts.c (c_diagnostic_finalizer): Temporarily clear prefix when
112 calling diagnostic_show_locus, rather than destroying it afterwards.
113
7552c36a
JJ
1142019-10-01 Jakub Jelinek <jakub@redhat.com>
115
116 PR c++/91925
117 * c-warn.c (check_alignment_of_packed_member): Ignore FIELD_DECLs
118 with NULL DECL_FIELD_OFFSET.
119
8209db25
RS
1202019-10-01 Richard Sandiford <richard.sandiford@arm.com>
121
122 * c-pretty-print.c (pp_c_specifier_qualifier_list): If a vector type
123 has a type name, use it in preference to the __vector syntax.
124
9343bf99
RS
1252019-09-30 Richard Sandiford <richard.sandiford@arm.com>
126
127 * c-pretty-print.c (pp_c_parameter_type_list): Avoid printing
128 two spaces between a comma and "...".
129
59bc434a
JJ
1302019-09-27 Jakub Jelinek <jakub@redhat.com>
131
132 PR c++/88203
133 * c-common.h (c_omp_predefined_variable): Declare.
134 * c-omp.c (c_omp_predefined_variable): New function.
135 (c_omp_predetermined_sharing): Return OMP_CLAUSE_DEFAULT_SHARED
136 for predefined variables.
137
c6447c20
RS
1382019-09-27 Richard Sandiford <richard.sandiford@arm.com>
139
140 * c-common.h (build_function_call_vec): Take the original
141 function decl as an optional final parameter.
142 (check_builtin_function_arguments): Take the original function decl.
143 * c-common.c (check_builtin_function_arguments): Likewise.
144 Handle all built-in functions, not just BUILT_IN_NORMAL ones.
145 Use targetm.check_builtin_call to check BUILT_IN_MD functions.
146
c4438114
JM
1472019-09-15 Jason Merrill <jason@redhat.com>
148
149 * c-warn.c (warn_logical_operator): Strip location wrappers. Don't
150 fold_for_warn in "|| mask" warning.
151
68a57628
ML
1522019-09-10 Martin Liska <mliska@suse.cz>
153
154 * c.opt: Use newly added WarnRemoved.
155
f48ef52e
ML
1562019-09-09 Martin Liska <mliska@suse.cz>
157
158 * c.opt: Update comment of removed
159 options that are preserved only for backward
160 compatibility.
161
67f6e649
ML
1622019-09-06 Martin Liska <mliska@suse.cz>
163
164 PR c++/91125
165 * c-common.c: Remove definition of flag_use_repository.
166 * c-common.h: Likewise.
167 * c-opts.c (c_common_handle_option):
168 Do not handle OPT_frepo option.
169 * c.opt: Mark the option with Deprecated.
170
db9d2274
MP
1712019-09-04 Marek Polacek <polacek@redhat.com>
172
173 * c.opt (fdeduce-init-list): Ignored.
174
68e2c199
PK
1752019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
176
177 PR c/78736
178 * c.opt (Wenum-conversion): New option.
179
7a4418a5
JL
1802019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
181
182 * c-attribs.c (handle_section_attribute): Call the
183 handle_generic_attribute target hook after performing target
184 independent processing.
185 (handle_noinit_attribute): Likewise.
186
5f76ab15
ILT
1872019-09-03 Ian Lance Taylor <iant@golang.org>
188
189 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Always expand
190 when using -fgo-dump-spec.
191
ae0d3f6a
ML
1922019-09-02 Martin Liska <mliska@suse.cz>
193
194 PR c++/91155
195 * c-common.c (fname_as_string): Use cxx_printable_name for
196 __PRETTY_FUNCTION__ same as was used before r265711.
197
8a902edb
MP
1982019-08-28 Marek Polacek <polacek@redhat.com>
199
200 Implement P1152R4: Deprecating some uses of volatile.
201 PR c++/91361
202 * c-opts.c (c_common_post_options): Enable -Wvolatile by
203 default for C++2a, unless -Wno-deprecated.
204 * c.opt (Wvolatile): New warning.
205
4742dbe7
MP
2062019-08-28 Marek Polacek <polacek@redhat.com>
207
208 PR c++/91360 - Implement C++20 P1143R2: constinit.
209 * c-common.c (c_common_reswords): Add constinit and __constinit.
210 (keyword_is_decl_specifier): Handle RID_CONSTINIT.
211 * c-common.h (enum rid): Add RID_CONSTINIT, RID_FIRST_CXX20, and
212 RID_LAST_CXX20.
213 (D_CXX20): Define.
214 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_constinit.
215 * c-format.c (cxx_keywords): Add "constinit".
216 * c.opt (Wc++2a-compat, Wc++20-compat): New options.
217
6a074892
JJ
2182019-08-27 Jakub Jelinek <jakub@redhat.com>
219
220 PR c++/91415
221 * c-common.c (verify_tree): For LSHIFT_EXPR, RSHIFT_EXPR,
222 COMPONENT_REF and ARRAY_REF in cxx_dialect >= cxx17 mode handle it
223 like COMPOUND_EXPR rather than normal expression.
224
22f8849d
IS
2252019-08-23 Iain Sandoe <iain@sandoe.co.uk>
226
227 PR pch/61250
228 * c-lex.c (c_lex_with_flags): Don't call
229 c_common_no_more_pch () from here.
230
df375b03
JJ
2312019-08-23 Jakub Jelinek <jakub@redhat.com>
232
233 PR middle-end/91283
234 * c-common.c (c_ts18661_flt_eval_method): Use flag_excess_precision
235 instead of flag_excess_precision_cmdline.
236 * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): Likewise.
237 * c-opts.c (c_common_post_options): Likewise.
238
14b7950f
MS
2392019-08-22 Martin Sebor <msebor@redhat.com>
240
241 PR middle-end/91490
242 * c-common.c (braced_list_to_string): Add argument and overload.
243 Handle flexible length arrays and unions.
244
8bb2ee59
EB
2452019-08-21 Eric Botcazou <ebotcazou@adacore.com>
246
247 * c-ada-spec.c (dump_ada_function_declaration): Be prepared for broken
248 function declarations where arguments are missing. Rename variables.
249
21c1e205
RB
2502019-08-15 Richard Biener <rguenther@suse.de>
251
252 * c-common.c (c_stddef_cpp_builtins): When the GIMPLE FE is
253 enabled, define __SIZETYPE__.
254
f0033821
CL
2552019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
256
257 * c-attribs.c (c_common_attribute_table): Add "noinit" entry. Add
258 exclusion with "section" attribute.
259 (attr_noinit_exclusions): New table.
260 (handle_noinit_attribute): New function.
261
4d732405
RS
2622019-08-13 Richard Sandiford <richard.sandiford@arm.com>
263
264 PR middle-end/91421
265 * c-common.c (resolve_overloaded_builtin): Use
266 copy_decl_built_in_function.
267
51ad8481
MS
2682019-08-13 Martin Sebor <msebor@redhat.com>
269
270 PR c/80619
271 * c-format.c (printf_length_specs): Set FMT_LEN_w for "w".
272 (asm_fprintf_length_spec): Same.
273 * c-format.h (format_lengths): Add FMT_LEN_w.
274
77eb117f
JJ
2752019-08-10 Jakub Jelinek <jakub@redhat.com>
276
277 * c-pragma.h (enum pragma_omp_clause): Add
278 PRAGMA_OMP_CLAUSE_DEVICE_TYPE.
279
398e3feb
JJ
2802019-08-07 Jakub Jelinek <jakub@redhat.com>
281
282 * c-pragma.h (enum pragma_omp_clause): Add
283 PRAGMA_OMP_CLAUSE_USE_DEVICE_ADDR. Set PRAGMA_OACC_CLAUSE_USE_DEVICE
284 equal to PRAGMA_OMP_CLAUSE_USE_DEVICE_PTR instead of being a separate
285 enumeration value.
286
ab574db6
MP
2872019-08-05 Marek Polacek <polacek@redhat.com>
288
289 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
290 * c-opts.c (c_common_post_options): Enable -Wcomma-subscript by
291 default for C++2a, unless -Wno-deprecated.
292 * c.opt (Wcomma-subscript): New warning.
293
554a530f
JJ
2942019-07-20 Jakub Jelinek <jakub@redhat.com>
295
296 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_LOOP.
297 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_BIND.
298 * c-pragma.c (omp_pragmas_simd): Add PRAGMA_OMP_LOOP entry.
299 * c-common.h (enum c_omp_clause_split): Add C_OMP_CLAUSE_SPLIT_LOOP.
300 * c-omp.c (c_omp_split_clauses): Add support for 4 new combined
301 constructs with the loop construct.
302
1a888209
JJ
3032019-07-13 Jakub Jelinek <jakub@redhat.com>
304
305 PR c/91149
306 * c-omp.c (c_omp_split_clauses): Fix a pasto in
307 OMP_CLAUSE_REDUCTION_TASK handling.
308
1fdd6f04
JJ
3092019-07-12 Jakub Jelinek <jakub@redhat.com>
310
311 * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ORDER.
312 * c-omp.c (c_omp_split_clauses): Handle splitting of OMP_CLAUSE_ORDER.
313
99b1c316
MS
3142019-07-09 Martin Sebor <msebor@redhat.com>
315
316 PR c++/61339
1fdd6f04 317 * c-opts.c (handle_deferred_opts): Change class-key of PODs to struct
99b1c316
MS
318 and others to class.
319 * c-pretty-print.h: Same.
320
6c1dae73
MS
3212019-07-09 Martin Sebor <msebor@redhat.com>
322
323 PR c++/61339
324 * c-format.c (check_argument_type): Change class-key from class to
325 struct and vice versa to match convention and avoid -Wclass-is-pod
326 and -Wstruct-no-pod.
327 * c-pretty-print.h: Same.
328
8ba6ea87
ML
3292019-07-03 Martin Liska <mliska@suse.cz>
330
331 * c-common.c (try_to_locate_new_include_insertion_point): Remove
332 dead assignemts.
333
83eb9522
JJ
3342019-07-03 Jakub Jelinek <jakub@redhat.com>
335
336 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_REDUCTION_INSCAN
337 clauses on OMP_FOR rather than OMP_PARALLEL when OMP_FOR is combined
338 with OMP_PARALLEL.
339
1c6ffbab
QZ
3402019-07-02 qing zhao <qing.zhao@oracle.com>
341
342 PR preprocessor/90581
343 * c-opts.c (c_common_handle_option): Handle -fmax-include-depth.
344 * c.opt: Add new option -fmax-include-depth.
345
7ffc7de5
JM
3462019-06-26 Jason Merrill <jason@redhat.com>
347
348 PR c++/55442 - memory-hog with highly recursive constexpr.
349 * c.opt (fconstexpr-loop-limit): New.
350
361af3e4
JJ
3512019-06-25 Jakub Jelinek <jakub@redhat.com>
352
353 PR sanitizer/90954
354 * c-omp.c (c_finish_omp_atomic): Allow tree_invariant_p in addition
355 to SAVE_EXPR in first operand of a COMPOUND_EXPR.
356
ab20d992
JJ
3572019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
358
359 * c-common.c (c_common_nodes_and_builtins): Define
360 alternate "__intN__" name for "__intN" types.
361
f4af4019
JH
3622019-06-24 Jan Hubicka <jh@suse.cz>
363
364 * c-common.c (braced_lists_to_strings): Check that
365 type is array or integer prior checking string flag.
366
da9e9b57
MB
3672019-06-21 Matthew Beliveau <mbelivea@redhat.com>
368
369 PR c++/90875 - added -Wswitch-outside-range option
370 * c.opt (Wswitch-outside-range): Added new option.
371 * c-warn.c (c_do_switch_warnings): Use OPT_Wswitch-outside-range.
372
3f3d6a6f
MP
3732019-06-21 Marek Polacek <polacek@redhat.com>
374
375 PR c++/90953 - ICE with -Wmissing-format-attribute.
376 * c-common.c (check_function_arguments_recurse): Use
377 get_attribute_name.
378 (check_missing_format_attribute): Likewise.
379
1bf32c11
MP
3802019-06-19 Marek Polacek <polacek@redhat.com>
381
382 PR c++/60364 - noreturn after first decl not diagnosed.
383 * c-attribs.c (handle_noreturn_attribute): No longer static.
384 * c-common.h (handle_noreturn_attribute, attr_noreturn_exclusions):
385 Declare.
386 * c-format.c (check_function_format): Use get_attribute_name.
387
a04c0734
MS
3882019-06-19 Martin Sebor <msebor@redhat.com>
389
390 PR translation/90156
391 * c-format.c (function_format_info::format_type): Adjust type.
392 (function_format_info::is_raw): New member.
393 (decode_format_type): Adjust signature. Handle "raw" diag attributes.
394 (decode_format_attr): Adjust call to decode_format_type.
395 Avoid a redundant call to convert_format_name_to_system_name.
396 Avoid abbreviating the word "arguments" in a diagnostic.
397 (format_warning_substr): New function.
398 (avoid_dollar_number): Quote dollar sign in a diagnostic.
399 (finish_dollar_format_checking): Same.
400 (check_format_info): Same.
401 (struct baltoks_t): New.
402 (c_opers, c_keywords, cxx_keywords, badwords, contrs): New arrays.
403 (maybe_diag_unbalanced_tokens, check_tokens, check_plain): New
404 functions.
405 (check_format_info_main): Call check_plain. Use baltoks_t. Call
406 maybe_diag_unbalanced_tokens.
407 (handle_format_attribute): Spell out the word "arguments" in
408 a diagnostic.
409
d3786ebb
MB
4102019-06-11 Matthew Beliveau <mbelivea@redhat.com>
411
412 PR c++/90449 - add -Winaccessible-base option.
413 * c.opt (Winaccessible-base): New option.
414
bf38f7e9
JJ
4152019-06-10 Jakub Jelinek <jakub@redhat.com>
416
417 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_SCAN.
418 * c-pragma.c (omp_pragmas_simd): Add #pragma omp scan.
419 * c-omp.c (c_omp_split_clauses): Diagnose inscan reductions on
420 combined/composite constructs where it is not allowed. Copy over
421 OMP_CLAUSE_REDUCTION_INSCAN.
422
0ecf545c
MS
4232019-06-05 Martin Sebor <msebor@redhat.com>
424
425 * c-attribs.c (handle_mode_attribute): Adjust quoting and hyphenation.
426 (handle_alias_ifunc_attribute): Same.
427 (handle_copy_attribute): Same.
428 (handle_weakref_attribute): Same.
429 (handle_nonnull_attribute): Same.
430 * c-warn.c (warn_for_sign_compare): Same.
431 (warn_for_restrict): Same.
432 * c.opt: Same.
433
36b34127
MS
4342019-06-05 Martin Sebor <msebor@redhat.com>
435
436 * c-pragma.c (handle_pragma_weak): Adjust quoting in a diagnostic.
437 * c.opt (-Wformat-diag): Remove a spurious period.
438
357a352f
JJ
4392019-05-29 Jakub Jelinek <jakub@redhat.com>
440
441 PR c/90628
442 * c-common.c (check_builtin_function_arguments)
443 <case BUILTIN_*_OVERFLOW>: Diagnose pointer to const qualified integer
444 as last argument.
445
2b8235ea
EB
4462019-05-23 Eric Botcazou <ebotcazou@adacore.com>
447
448 * c-ada-spec.c (compare_node): Compare the DECL_UIDs as a last resort.
449
6d86ddc4
ML
4502019-05-22 Martin Liska <mliska@suse.cz>
451
452 PR lto/90500
453 * c-attribs.c (handle_copy_attribute): Do not copy
454 target_clones attribute.
455
419ba5b9
EB
4562019-05-21 Eric Botcazou <ebotcazou@adacore.com>
457
458 * c-ada-spec.h (enum cpp_operation): Add IS_ASSIGNMENT_OPERATOR.
459 * c-ada-spec.c (print_assignment_operator): New function.
460 (dump_ada_declaration) <FUNCTION_DECL>: Call it do dump explicit copy
461 assignment operators declared as methods and filter out the others.
462
e03436e7
TS
4632019-05-17 Thomas Schwinge <thomas@codesourcery.com>
464
465 PR c/89433
466 * c-attribs.c (c_common_attribute_table): Set min_len to -1 for
467 "omp declare target".
468
a9c697b8
MS
4692019-05-16 Martin Sebor <msebor@redhat.com>
470
ab20d992
JJ
471 * c-attribs.c (handle_no_sanitize_attribute): Quote identifiers,
472 keywords, operators, and types in diagnostics.
473 (handle_scalar_storage_order_attribute): Same.
474 (handle_mode_attribute): Same.
475 (handle_visibility_attribute): Same.
476 (handle_assume_aligned_attribute): Same.
477 (handle_no_split_stack_attribute): Same.
478 * c-common.c (shorten_compare): Same.
479 (c_common_truthvalue_conversion): Same.
480 (cb_get_source_date_epoch): Same.
481 * c-lex.c (cb_def_pragma): Quote keywords, operators, and types
482 in diagnostics.
483 (interpret_float): Same.
484 * c-omp.c (c_finish_omp_for): Same.
485 * c-opts.c (c_common_post_options): Same.
486 * c-pch.c (c_common_pch_pragma): Same.
487 * c-pragma.c (pop_alignment): Same.
488 (handle_pragma_pack): Same.
489 (apply_pragma_weak): Same.
490 (handle_pragma_weak): Same.
491 (handle_pragma_scalar_storage_order): Same.
492 (handle_pragma_redefine_extname): Same.
493 (add_to_renaming_pragma_list): Same.
494 (maybe_apply_renaming_pragma): Same.
495 (push_visibility): Same.
496 (handle_pragma_visibility): Same.
497 (handle_pragma_optimize): Same.
498 (handle_pragma_message): Same.
499 * c-warn.c (warn_for_omitted_condop): Same.
500 (lvalue_error): Same.
a9c697b8 501
6b943512
RB
5022019-05-15 Richard Biener <rguenther@suse.de>
503
504 PR c/90474
505 * c-common.c (c_common_mark_addressable_vec): Also mark
506 a COMPOUND_LITERAL_EXPR_DECL addressable similar to
507 c_mark_addressable.
ab20d992 508
b744fc85
NS
5092019-05-06 Nathan Sidwell <nathan@acm.org>
510
511 * c-opts.c (handle_defered_opts): Rename struct deps to struc mkdeps.
512
598f50d7
NS
5132019-04-30 Nathan Sidwell <nathan@acm.org>
514
515 * c-common.c (c_common_init_ts): Use MARK_TS_EXP. Mark SIZEOF_EXPR.
516
5bcc5a3b
ML
5172019-04-30 Martin Liska <mliska@suse.cz>
518
519 * c-pragma.c (handle_pragma_diagnostic): Provide hints
520 for unknown options.
521
e78a87f7
RS
5222019-04-26 Richard Sandiford <richard.sandiford@arm.com>
523
524 * c-warn.c (strict_aliasing_warning): Apply COMPLETE_TYPE_P to
525 the pointer target rather than the pointer itself.
526
c280b7ee
JJ
5272019-04-19 Jakub Jelinek <jakub@redhat.com>
528
529 PR c/89888
530 * c-common.h (c_add_case_label): Remove orig_type and outside_range_p
531 arguments.
532 (c_do_switch_warnings): Remove outside_range_p argument.
533 * c-common.c (check_case_bounds): Removed.
534 (c_add_case_label): Remove orig_type and outside_range_p arguments.
535 Don't call check_case_bounds. Fold low_value as well as high_value.
536 * c-warn.c (c_do_switch_warnings): Remove outside_range_p argument.
537 Check for case labels outside of range of original type here and
538 adjust them.
539
8e8225e6
JJ
5402019-04-12 Jakub Jelinek <jakub@redhat.com>
541
63b8a166
JJ
542 PR translation/90041
543 * c.opt (-fhandle-exceptions): Use %< and %> around option names
544 in the Warn diagnostics.
545
8e8225e6
JJ
546 PR c/89946
547 * c-attribs.c (handle_patchable_function_entry_attribute): Add
548 function comment. Warn if arguments of the attribute are not positive
549 integer constants.
550
53a3f614
EB
5512019-04-09 Eric Botcazou <ebotcazou@adacore.com>
552
553 * c-ada-spec.c (print_destructor): Deal with deleting destructors.
554 (dump_ada_declaration) <FUNCTION_DECL>: Likewise.
555
22be5873
EB
5562019-04-07 Eric Botcazou <ebotcazou@adacore.com>
557
558 * c-ada-spec.c (is_float128): New predicate extracted from...
559 (dump_ada_node) <COMPLEX_TYPE>: Use it to recognize __cfloat128.
560 <REAL_TYPE>: ...here. Call it.
561
34facf20
DM
5622019-04-05 David Malcolm <dmalcolm@redhat.com>
563
564 PR c/89985
565 * c-warn.c (check_address_or_pointer_of_packed_member): Add
566 auto_diagnostic_group. Guard inform calls by result of
567 warning_at call.
568
05564120
MP
5692019-04-05 Marek Polacek <polacek@redhat.com>
570
ab20d992 571 PR c++/89973 - -Waddress-of-packed-member ICE with invalid conversion.
05564120
MP
572 * c-warn.c (check_address_or_pointer_of_packed_member): Check the type
573 of RHS.
574
7a506c3c
JM
5752019-04-03 Jason Merrill <jason@redhat.com>
576
577 PR c++/86586 - -fcompare-debug=-Wsign-compare.
578 * c-warn.c (warn_for_sign_compare): Call fold_for_warn.
579
ddeae8c8
MS
5802019-04-01 Martin Sebor <msebor@redhat.com>
581
582 PR c/89685
583 * c-attribs.c (handle_copy_attribute): Handle references and
584 non-constant expressions.
585
a15ffa22
JJ
5862019-03-22 Jakub Jelinek <jakub@redhat.com>
587
588 PR c++/87481
589 * c.opt (-fconstexpr-ops-limit=): New option.
590
36a3a7a3
JJ
5912019-03-21 Jakub Jelinek <jakub@redhat.com>
592
593 * c-common.c (per_file_includes_t): Use false as Lazy in hash_set
594 template param.
595
bec1da64
MS
5962019-03-19 Martin Sebor <msebor@redhat.com>
597
598 PR tree-optimization/89688
599 * c-common.c (braced_list_to_string): Make static.
600 (braced_lists_to_strings): Define new function.
601 * c-common.h (braced_list_to_string): Remove.
602 (braced_lists_to_strings): Declare.
603
1fe61adf
ML
6042019-03-12 Martin Liska <mliska@suse.cz>
605
606 * c-opts.c (c_common_handle_option): Wrap option with %< and %>.
607
93964ebd
ML
6082019-03-11 Martin Liska <mliska@suse.cz>
609
610 * c-opts.c (c_common_post_options): Wrap apostrophes
611 in gcc internal format with %'.
612
a3f9f006
ML
6132019-03-11 Martin Liska <mliska@suse.cz>
614
615 * c-attribs.c (handle_nocf_check_attribute): Wrap an option name
616 in a string format message and fix GNU coding style.
617 * c-common.c (vector_types_convertible_p): Likewise.
618 (c_build_vec_perm_expr): Likewise.
619 * c-indentation.c (get_visual_column): Likewise.
620 * c-opts.c (c_common_handle_option): Likewise.
621 (c_common_post_options): Likewise.
622 (sanitize_cpp_opts): Likewise.
623 * c-pch.c (c_common_pch_pragma): Likewise.
624 * c-pragma.c (handle_pragma_pack): Likewise.
625
1db01ff9
JJ
6262019-03-08 Jakub Jelinek <jakub@redhat.com>
627
628 PR tree-optimization/89550
629 * c-common.c (c_common_truthvalue_conversion): Only set
630 TREE_NO_WARNING if warning_at returned true.
631 * c-warn.c (overflow_warning, warn_logical_operator): Likewise.
632
ba790e6f
JJ
6332019-02-25 Sandra Loosemore <sandra@codesourcery.com>
634 Martin Sebor <msebor@gmail.com>
635
636 * c.opt (Wmissing-attributes): Clean up doc string.
637
7da73ba7
JJ
6382019-02-25 Jakub Jelinek <jakub@redhat.com>
639
640 PR c/89495
641 * c-format.c (maybe_read_dollar_number): Compute nargnum in
642 HOST_WIDE_INT type to avoid overflows and change overflow_flag
643 checking.
644
921bb9d1
RB
6452019-02-22 Richard Biener <rguenther@suse.de>
646
647 * c-pch.c (no_checksum): Remove.
648 (pch_init): Remove assertion that executable_checksum is not
649 all zero.
650 (c_common_valid_pch): Likewise.
651
e2ebb05c
MS
6522019-02-18 Martin Sebor <msebor@redhat.com>
653
654 PR middle-end/89294
655 * c-common.c (invalid_array_size_error): Handle cst_size_not_constant.
656
3fe53000
DM
6572019-02-16 David Malcolm <dmalcolm@redhat.com>
658
659 PR c++/88680
660 * c-common.c (shorten_compare): Call fold_for_warn on op0 when
661 implementing -Wtype-limits.
662
28a8cef1
MS
6632019-02-11 Martin Sebor <msebor@redhat.com>
664
665 PR c++/87996
666 * c-common.c (invalid_array_size_error): New function.
667 (valid_array_size_p): Call it. Handle size as well as type.
668 * c-common.h (valid_constant_size_p): New function.
669 (enum cst_size_error): New type.
670
ec2be203
DM
6712019-01-31 David Malcolm <dmalcolm@redhat.com>
672
673 PR c/89122
674 * known-headers.cc (get_stdlib_header_for_name): Add
675 {FLT|DBL|LDBL}_{MAX|MIN} to "hints" array.
676
8936f047
JJ
6772019-01-31 Jakub Jelinek <jakub@redhat.com>
678
679 PR libstdc++/88170
680 * c-pretty-print.c (pp_c_enumeration_constant): Print always as
681 a C cast in pp_c_flag_gnu_v3 mode.
682
6a335b96
JJ
6832019-01-29 Jakub Jelinek <jakub@redhat.com>
684
685 PR c/86125
686 * c-common.c (c_common_nodes_and_builtins): Build type variants for
687 builtin_structptr_types types even for C.
688
2a06eba5
BE
6892019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
690
691 * c-warn.c (check_address_or_pointer_of_packed_member): Handle the case
692 when rhs is of array type correctly. Fix handling of nested structures.
693 Fix handling of indirect_ref together with nop_expr and/or addr_expr.
694 (check_and_warn_address_or_pointer_of_packed_member): Fix handling of
695 type casts within nested compound expressions.
696
18a23298
JJ
6972019-01-22 Jakub Jelinek <jakub@redhat.com>
698
699 PR middle-end/88968
700 * c-omp.c (c_finish_omp_atomic): For bitfield atomics, update type
701 variable after using BIT_FIELD_REF.
702
420183d9
L
7032019-01-18 H.J. Lu <hongjiu.lu@intel.com>
704
705 PR c/51628
706 PR c/88664
707 * c-common.h (warn_for_address_or_pointer_of_packed_member):
708 Remove the boolean argument.
709 * c-warn.c (check_address_of_packed_member): Renamed to ...
710 (check_address_or_pointer_of_packed_member): This. Also
711 warn pointer conversion.
712 (check_and_warn_address_of_packed_member): Renamed to ...
713 (check_and_warn_address_or_pointer_of_packed_member): This.
714 Also warn pointer conversion.
715 (warn_for_address_or_pointer_of_packed_member): Remove the
716 boolean argument. Don't check pointer conversion here.
717
99063eee
RS
7182019-01-15 Richard Sandiford <richard.sandiford@arm.com>
719
720 PR inline-asm/52813
721 * c.opt (Wdeprecated): Move documentation and variable to common.opt.
722
a30d0196
JJ
7232019-01-14 Jakub Jelinek <jakub@redhat.com>
724
725 * c-cppbuiltin.c (c_cpp_builtin): Define __cpp_guaranteed_copy_elision
726 and __cpp_nontype_template_parameter_auto. Add a comment that
727 __cpp_template_auto is deprecated.
728
2d91f79d
TH
7292019-01-14 Tom Honermann <tom@honermann.net>
730
731 Implement P0482R5, char8_t: A type for UTF-8 characters and strings
732 * c-common.c (c_common_reswords): Add char8_t.
733 (fix_string_type): Use char8_t for the type of u8 string literals.
734 (c_common_get_alias_set): char8_t doesn't alias.
735 (c_common_nodes_and_builtins): Define char8_t as a builtin type in
736 C++.
737 (c_stddef_cpp_builtins): Add __CHAR8_TYPE__.
738 (keyword_begins_type_specifier): Add RID_CHAR8.
739 * c-common.h (rid): Add RID_CHAR8.
740 (c_tree_index): Add CTI_CHAR8_TYPE and CTI_CHAR8_ARRAY_TYPE.
741 Define D_CXX_CHAR8_T and D_CXX_CHAR8_T_FLAGS.
742 Define char8_type_node and char8_array_type_node.
743 * c-cppbuiltin.c (cpp_atomic_builtins): Predefine
744 __GCC_ATOMIC_CHAR8_T_LOCK_FREE.
745 (c_cpp_builtins): Predefine __cpp_char8_t.
746 * c-lex.c (lex_string): Use char8_array_type_node as the type of
747 CPP_UTF8STRING.
748 (lex_charconst): Use char8_type_node as the type of CPP_UTF8CHAR.
749 * c-opts.c: If not otherwise specified, enable -fchar8_t when
750 targeting C++2a.
751 * c.opt: Add the -fchar8_t command line option.
752
23db6ced
MS
7532019-01-14 Martin Sebor <msebor@redhat.com>
754
755 PR target/88638
756 * c-attribs.c (positional_argument): Call valid_format_string_type_p
757 and issue errors if it fails.
758 * c-common.h (valid_format_string_type_p): Declare.
759 * c-format.c (valid_stringptr_type_p): Rename...
760 (valid_format_string_type_p): ...to this and make extern.
761 (handle_format_arg_attribute): Adjust to new name.
762 (check_format_string): Same.
763
234c3818
L
7642019-01-13 H.J. Lu <hongjiu.lu@intel.com>
765
766 * c-warn.c (warn_for_address_or_pointer_of_packed_member):
767 Replace "may may" with "may" in warning message.
768
d8fcab68
JJ
7692019-01-07 Jakub Jelinek <jakub@redhat.com>
770
771 PR c++/85052
772 * c-common.h (enum rid): Add RID_BUILTIN_CONVERTVECTOR.
773 (c_build_vec_convert): Declare.
774 * c-common.c (c_build_vec_convert): New function.
775
29d24852
MS
7762019-01-04 Martin Sebor <msebor@redhat.com>
777
778 PR c/88546
779 * c-attribs.c (handle_copy_attribute): Avoid copying attribute leaf.
780 Handle C++ empty throw specification and C11 _Noreturn.
781 (has_attribute): Also handle C11 _Noreturn.
782
9069a4c9
MS
7832019-01-04 Martin Sebor <msebor@redhat.com>
784
785 PR c/88363
786 * c-attribs.c (positional_argument): Also accept enumerated types.
787
a5544970
JJ
7882019-01-01 Jakub Jelinek <jakub@redhat.com>
789
790 Update copyright years.
791
da77eace
L
7922018-12-20 H.J. Lu <hongjiu.lu@intel.com>
793
794 PR c/51628
795 * c-common.h (warn_for_address_or_pointer_of_packed_member): New.
796 * c-warn.c (check_alignment_of_packed_member): New function.
797 (check_address_of_packed_member): Likewise.
798 (check_and_warn_address_of_packed_member): Likewise.
799 (warn_for_address_or_pointer_of_packed_member): Likewise.
800 * c.opt: Add -Wno-address-of-packed-member.
801
573767d4
DM
8022018-12-20 David Malcolm <dmalcolm@redhat.com>
803
804 PR c++/87504
805 * c-warn.c (get_outermost_macro_expansion): New function.
806 (spelled_the_same_p): Use it to unwind the macro expansions, and
807 compare the outermost macro in each nested expansion, rather than
808 the innermost.
809
a14feb3c
DM
8102018-12-19 David Malcolm <dmalcolm@redhat.com>
811
812 PR c++/87504
813 * c-common.h (warn_tautological_cmp): Convert 1st param from
814 location_t to const op_location_t &.
815 * c-warn.c (find_array_ref_with_const_idx_r): Call fold_for_warn
816 when testing for INTEGER_CST.
817 (warn_tautological_bitwise_comparison): Convert 1st param from
818 location_t to const op_location_t &; use it to build a
819 binary_op_rich_location, and use this.
820 (spelled_the_same_p): New function.
821 (warn_tautological_cmp): Convert 1st param from location_t to
822 const op_location_t &. Warn for macro expansions if
823 spelled_the_same_p. Use binary_op_rich_location.
824
dfd7fdca
DM
8252018-12-19 David Malcolm <dmalcolm@redhat.com>
826
827 PR c++/43064
828 PR c++/43486
829 * c-common.c (unsafe_conversion_p): Fold any location wrapper.
830 (verify_tree): Handle location wrappers.
831 (c_common_truthvalue_conversion): Strip any location wrapper.
832 Handle CONST_DECL.
833 (fold_offsetof): Strip any location wrapper.
834 (complete_array_type): Likewise for initial_value.
835 (convert_vector_to_array_for_subscript): Call fold_for_warn on the
836 index before checking for INTEGER_CST.
837 * c-pretty-print.c (c_pretty_printer::primary_expression): Don't
838 print parentheses around location wrappers.
839 * c-warn.c (warn_logical_operator): Call fold_for_warn on op_right
840 before checking for INTEGER_CST.
841 (warn_tautological_bitwise_comparison): Call
842 tree_strip_any_location_wrapper on lhs, rhs, and bitop's operand
843 before checking for INTEGER_CST.
844 (readonly_error): Strip any location wrapper.
845 (warn_array_subscript_with_type_char): Strip location wrappers
846 before checking for INTEGER_CST. Use the location of the index if
847 available.
848
5c8b3702
JM
8492018-12-06 Jason Merrill <jason@redhat.com>
850
851 PR c++/88136 - -Wdeprecated-copy false positives
852 * c.opt (Wdeprecated-copy-dtor): New.
853 (Wdeprecated-copy): Move to -Wextra.
854
673670da
MS
8552018-11-29 Martin Sebor <msebor@redhat.com>
856
857 PR c/88172
858 PR testsuite/88208
859 * c-attribs.c (common_handle_aligned_attribute): Silently avoid setting
860 alignments to values less than the target requires.
861 (has_attribute): For attribute aligned consider both the attribute
862 and the alignment bits.
863 * c-common.c (c_init_attributes): Optionally issue a warning for
864 zero alignment.
865
04864ec8
MS
8662018-11-28 Martin Sebor <msebor@redhat.com>
867
868 PR c/88065
869 PR c/87297
870 * c-warn.c (sizeof_pointer_memaccess_warning): Bail if source
871 or destination is an error.
872
ace83db0
JJ
8732018-11-28 Jakub Jelinek <jakub@redhat.com>
874
875 PR c++/88215
876 * c-ubsan.c: Include langhooks.h.
877 (ubsan_instrument_division): Change gcc_assert that main variants
878 of op0 and op1 types are equal to gcc_checking_assert that the
879 main variants are compatible types.
880
da193a27
EB
8812018-11-27 Eric Botcazou <ebotcazou@adacore.com>
882
883 * c-ada-spec.c: Include stringpool.h.
884 (has_static_fields): Return false for incomplete types.
885 (is_tagged_type): Likewise.
886 (has_nontrivial_methods): Likewise.
887 (dump_ada_node) <INTEGER_TYPE>: Deal specifically with __int128.
888 (struct overloaded_name_hash): New structure.
889 (struct overloaded_name_hasher): Likewise.
890 (overloaded_names): New global variable.
891 (init_overloaded_names): New static function.
892 (overloaded_name_p): New predicate.
893 (dump_ada_declaration) <TYPE_DECL>: Tidy up and set TREE_VISITED
894 on the TYPE_STUB_DECL of the original type of a typedef, if any.
895 <FUNCTION_DECL>: Bail out for an unsupported overloaded name.
896 Remove always-true condition and dump forward types.
897 (dump_ada_specs): Delete overloaded_names.
898
98f08eb8
MS
8992018-11-20 Martin Sebor <msebor@redhat.com>
900
901 * c-attribs.c (type_for_vector_size): New function.
902 (type_valid_for_vector_size): Same.
903 (handle_vector_size_attribute): Move code to the functions above
904 and call them.
905 (validate_attribute, has_attribute): New functions.
906 * c-common.h (has_attribute): Declare.
907 (rid): Add RID_HAS_ATTRIBUTE_EXPRESSION.
908 * c-common.c (c_common_resword): Same.
909
2674fa47
JM
9102018-11-16 Jason Merrill <jason@redhat.com>
911
912 * c-lex.c (c_common_has_attribute): Handle likely/unlikely.
913 * c-attribs.c (attr_cold_hot_exclusions): Make public.
914
258b3854
JJ
9152018-11-16 Jakub Jelinek <jakub@redhat.com>
916
917 PR middle-end/87854
918 * c-common.c (fix_string_type): Reject string literals larger than
919 TYPE_MAX_VALUE (ssizetype) bytes.
920
1d249509
MS
9212018-11-15 Martin Sebor <msebor@redhat.com>
922
923 PR c++/87541
924 PR c++/87542
925 * c-attribs.c (positional_argument): New function.
926 (handle_alloc_size_attribute): Use it and simplify.
927 (handle_alloc_align_attribute): Same.
928 (handle_assume_aligned_attribute): Same.
929 (handle_nonnull_attribute): Same.
930 * c-common.c (check_function_arguments): Pass fntype to
931 check_function_format.
932 * c-common.h (check_function_format): Add an argument.
933 (PosArgFlags, positional_argument): Declare new type and function.
934 * c-format.c (decode_format_attr): Add arguments.
935 (check_format_string, get_constant): Same.
936 (convert_format_name_to_system_name): Adjust.
937
478dd60d
DM
9382018-11-15 David Malcolm <dmalcolm@redhat.com>
939
940 PR other/19165
941 * c-opts.c (c_diagnostic_finalizer): Add diagnostic_t param.
942
8cca0163
JJ
9432018-11-14 Jakub Jelinek <jakub@redhat.com>
944
8ee09943
JJ
945 P1236R1 - Signed integers are two's complement
946 * c-warn.c (maybe_warn_shift_overflow): Don't warn for c++2a.
947 * c-ubsan.c (ubsan_instrument_shift): Make signed shifts
948 with in-range second operand well defined for -std=c++2a.
949
8cca0163
JJ
950 PR other/88007
951 * c-common.c (parse_optimize_options): Allocate option string from
952 opts_obstack rather than as GC memory. Move the allocation after
953 warning for invalid option.
954
620e594b
DM
9552018-11-13 David Malcolm <dmalcolm@redhat.com>
956
957 * c-common.c (c_get_substring_location): Update for renaming of
958 get_source_location_for_substring to get_location_within_string.
959 * c-lex.c: Replace "source_location" with "location_t".
960 * c-opts.c: Likewise.
961 * c-ppoutput.c: Likewise.
962
f9731de3
MS
9632018-11-13 Martin Sebor <msebor@redhat.com>
964
965 PR middle-end/81824
966 * c-attribs.c (handle_copy_attribute): Exclude inlining attributes.
967 (handle_tls_model_attribute): Improve diagnostics.
968
e4bd6d5e
JM
9692018-11-12 Jason Merrill <jason@redhat.com>
970
a6bb6b07
JM
971 * c-cppbuiltin.c (c_cpp_builtins): Define
972 __cpp_impl_destroying_delete.
973
e4bd6d5e
JM
974 * c-cppbuiltin.c (c_cpp_builtins): Change __cpp_explicit_bool to
975 __cpp_conditional_explicit.
976
79a2c428
MS
9772018-11-09 Martin Sebor <msebor@redhat.com>
978
979 PR middle-end/81824
980 * c-attribs.c (handle_copy_attribute): New function.
981
4c7bd361
MS
9822018-11-09 Martin Sebor <msebor@redhat.com>
983
984 PR c/87795
985 * c-common.c (check_user_alignment): Use MAX_OFILE_ALIGNMENT.
986
28567c40
JJ
9872018-11-08 Jakub Jelinek <jakub@redhat.com>
988
989 * c-common.h (c_finish_omp_taskgroup): Add CLAUSES argument.
990 (c_finish_omp_atomic): Replace bool SEQ_CST argument with
991 enum omp_memory_order MEMORY_ORDER.
992 (c_finish_omp_flush): Add MO argument.
993 (c_omp_depend_t_p, c_finish_omp_depobj): Declare.
994 (c_finish_omp_for): Add FINAL_P argument.
995 * c-omp.c: Include memmodel.h.
996 (c_finish_omp_taskgroup): Add CLAUSES argument. Set
997 OMP_TASKGROUP_CLAUSES to it.
998 (c_finish_omp_atomic): Replace bool SEQ_CST argument with
999 enum omp_memory_order MEMORY_ORDER. Set OMP_ATOMIC_MEMORY_ORDER
1000 instead of OMP_ATOMIC_SEQ_CST.
1001 (c_omp_depend_t_p, c_finish_omp_depobj): New functions.
1002 (c_finish_omp_flush): Add MO argument, if not MEMMODEL_LAST, emit
1003 __atomic_thread_fence call with the given value.
1004 (check_omp_for_incr_expr): Formatting fixes.
1005 (c_finish_omp_for): Add FINAL_P argument. Allow NE_EXPR
1006 even in OpenMP loops, diagnose if NE_EXPR and incr expression
1007 is not constant expression 1 or -1. Transform NE_EXPR loops
1008 with iterators pointers to VLA into LT_EXPR or GT_EXPR loops.
1009 (c_omp_check_loop_iv_r): Look for orig decl of C++ range for
1010 loops too.
1011 (c_omp_split_clauses): Add support for combined
1012 #pragma omp parallel master and
1013 #pragma omp {,parallel }master taskloop{, simd} constructs.
1014 Handle OMP_CLAUSE_IN_REDUCTION. Handle OMP_CLAUSE_REDUCTION_TASK.
1015 Handle OMP_CLAUSE_NONTEMPORAL. Handle splitting OMP_CLAUSE_IF
1016 also to OMP_SIMD. Copy OMP_CLAUSE_LASTPRIVATE_CONDITIONAL.
1017 (c_omp_predetermined_sharing): Don't return
1018 OMP_CLAUSE_DEFAULT_SHARED for const qualified decls.
1019 * c-pragma.c (omp_pragmas): Add PRAGMA_OMP_DEPOBJ and
1020 PRAGMA_OMP_REQUIRES.
1021 * c-pragma.h (enum pragma_kind): Likewise.
1022 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_NONTEMPORAL
1023 and PRAGMA_OMP_CLAUSE_{IN,TASK}_REDUCTION.
1024
204839e7
DM
10252018-11-08 David Malcolm <dmalcolm@redhat.com>
1026
1027 * c-format.c (gcc_dump_printf_char_table): Add entry for %f.
1028
d8010ee4
DM
10292018-11-08 David Malcolm <dmalcolm@redhat.com>
1030
1031 * c-format.c (local_cgraph_node_ptr_node): New variable.
1032 (gcc_dump_printf_char_table): Add entry for %C.
1033 (get_pointer_to_named_type): New function, taken from the handling
1034 code for "gimple *" from...
1035 (init_dynamic_diag_info): ...here. Add handling for
1036 "cgraph_node *".
1037 * c-format.h (T_CGRAPH_NODE): New.
1038
4be5c72c
JM
10392018-10-19 Jason Merrill <jason@redhat.com>
1040
1041 * c-cppbuiltin.c (c_cpp_builtins): Add
1042 __cpp_nontype_template_parameter_class.
1043
f3f6029d
NS
10442018-10-31 Nathan Sidwell <nathan@acm.org>
1045
ab5324fb
NS
1046 * c-opts.c (c_finish_options): Force command line macro
1047 location. Refactor to avoid repeating main debug hook.
1048 (push_command_line_include): Clarify comment.
1049
f3f6029d
NS
1050 * c-opts.c (c_finish_options): Adjust cpp_force_token_locations call.
1051
91e3ec29
MS
10522018-10-30 Martin Sebor <msebor@redhat.com>
1053
1054 PR middle-end/87041
1055 * c-format.c (check_format_types): Avoid diagnosing null pointer
1056 arguments to printf-family of functions.
1057
b5ff4f5c
MP
10582018-10-30 Marek Polacek <polacek@redhat.com>
1059
1060 Implement P0892R2, explicit(bool).
1061 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_explicit_bool.
1062
7e2de6df
DM
10632018-10-29 David Malcolm <dmalcolm@redhat.com>
1064
1065 * name-hint.h (name_hint::take_deferred): New member function.
1066
b2bf438c
DM
10672018-10-29 David Malcolm <dmalcolm@redhat.com>
1068
1069 PR c++/56856
1070 * c-common.c (check_function_sentinel): Call fold_for_warn on the
1071 argument.
1072 (check_function_restrict): Rename param "argarray" to
1073 "unfolded_argarray", and make a copy named "argarray", calling
1074 fold_for_warn on each argument.
1075 (check_function_arguments): Add note about responsibility for
1076 folding the arguments.
1077
9f936c86
JM
10782018-10-17 Joseph Myers <joseph@codesourcery.com>
1079
1080 * c-common.c (flag_isoc2x): New variable.
1081 * c-common.h (clk_c): Update comment to reference C2X.
1082 (flag_isoc99, flag_isoc11): Update comments to reference future
1083 standard versions in general.
1084 (flag_isoc2x): Declare.
1085 * c-opts.c (set_std_c2x): New function.
1086 (c_common_handle_option): Handle -std=c2x and -std=gnu2x.
1087 (set_std_c89, set_std_c99, set_std_c11, set_std_c17): Set
1088 flag_isoc2x to 0.
1089 * c.opt (Wc11-c2x-compat, std=c2x, std=gnu2x): New options.
1090
7a8a92c4
JM
10912018-10-17 Joseph Myers <joseph@codesourcery.com>
1092
1093 * c.opt (std=c17, std=c18, std=gnu17, std=gnu18, std=iso9899:2017)
1094 (std=iso9899:2018): Document C17 as published in 2018.
1095
4dc003ff
CL
10962018-10-12 Christophe Lyon <christophe.lyon@linaro.org>
1097
1098 PR c++/87364
1099 * c-pretty-print.c (c_pretty_printer::constant): Fix typo.
1100
79371671
WW
11012018-10-11 Will Wray <wjwray@gmail.com>
1102
1103 PR c++/87364
1104 * c-pretty-print.h (pp_c_type_cast): Prototype.
1105 (pp_c_integer_constant): Likewise.
1106 * c-pretty-print.c (pp_c_type_cast): No longer static.
1107 (pp_c_integer_constant): Likewise.
1108 (pp_c_enumeration_constant): Fix loop termination when finding
1109 name of constant. No longer returns a value. Call
1110 pp_c_integer_constant.
1111 (c_pretty_printer::constant): Update for changes to
1112 pp_c_enumeration_constant.
1113
46c62690
JJ
11142018-10-11 Jakub Jelinek <jakub@redhat.com>
1115
1116 * c-lex.c (c_common_has_attribute): Return 201803 instead of 20180312
1117 for no_unique_address.
1118
c24300ba
DM
11192018-10-09 David Malcolm <dmalcolm@redhat.com>
1120
1121 * c-common.c (c_option_controlling_cpp_error): Rename to...
1122 (c_option_controlling_cpp_diagnostic): ...this, and convert
1123 "reason" from int to enum.
1124 (c_cpp_error): Rename to...
1125 (c_cpp_diagnostic): ...this, converting level and reason to enums.
1126 * c-common.h (c_cpp_error): Rename to...
1127 (c_cpp_diagnostic): ...this, converting level and reason to enums.
1128 * c-opts.c (c_common_init_options): Update for renaming.
1129
8656dafa
RS
11302018-10-08 Richard Sandiford <richard.sandiford@arm.com>
1131
1132 PR c/87286
1133 * c-common.c (vector_types_compatible_elements_p): Use
1134 INTEGRAL_TYPE_P instead of checking only for INTEGER_TYPE.
1135
8cff0652
VK
11362018-10-04 Vinay Kumar <vinay.kumar@blackfigtech.com>
1137
1138 * c-attribs.c (get_priority): Add a warning flag warn_prio_ctor_dtor
1139 to generate constructor destructor priority warning.
1140 * c.opt (-Wprio-ctor-dtor): New option.
1141
bedf03a2
JM
11422018-10-01 Jason Merrill <jason@redhat.com>
1143
1144 * c-lex.c (c_common_has_attribute): Add no_unique_address.
1145
6cc430c1
EB
11462018-10-01 Eric Botcazou <ebotcazou@adacore.com>
1147
1148 * c-ada-spec.c (get_underlying_decl): Get to the main type variant.
1149 (dump_ada_node): Add const keyword.
1150
87677ac7
ML
11512018-09-25 Martin Liska <mliska@suse.cz>
1152
1153 * c-common.c (c_common_truthvalue_conversion):
1154 Remove Pascal from documentation.
1155
518196cb
EB
11562018-09-21 Eric Botcazou <ebotcazou@adacore.com>
1157
1158 * c-ada-spec.c: Include diagnostic.h.
1159 (dump_ada_declaration) <RECORD_TYPE>: Issue a warning on packed layout.
1160
a599af84
MP
11612018-09-19 Marek Polacek <polacek@redhat.com>
1162
1163 * c.opt (Wclass-conversion): New.
1164
9c4a4b3c
DM
11652018-09-17 David Malcolm <dmalcolm@redhat.com>
1166
1167 * c-format.c (range_label_for_format_type_mismatch::get_text):
1168 Update for new param.
1169
c896ecfe
DM
11702018-09-17 David Malcolm <dmalcolm@redhat.com>
1171
1172 * c-format.c (format_warning_at_char): Update for introduction of
1173 format_string_diagnostic_t.
1174 (format_type_warning): Likewise.
1175
80c6d1f4
MJ
11762018-09-17 Martin Jambor <mjambor@suse.cz>
1177
1178 PR c/63886
1179 * c.opt (Wabsolute-value): New.
1180
6d900107
BE
11812018-09-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
1182
1183 * c-common.c (complete_flexible_array_elts): New helper function.
1184 * c-common.h (complete_flexible_array_elts): Declare.
1185
b5764229
BE
11862018-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
1187
1188 * c-common.c (braced_list_to_string): Remove eval parameter.
1189 Add some more checks. Always create zero-terminated STRING_CST.
1190 * c-common.h (braced_list_to_string): Adjust prototype.
1191
85204e23
DM
11922018-08-27 David Malcolm <dmalcolm@redhat.com>
1193
1194 PR 87091
1195 * c-common.c (c_cpp_error): Update for conversion of show_caret_p
1196 to a tri-state.
1197 (maybe_suggest_missing_token_insertion): Likewise.
1198 (maybe_add_include_fixit): Add param "override_location". If set,
1199 and source-printing is enabled, then override the rich_location's
1200 primary location with that of the insertion point for the fix-it
1201 hint, marking it with SHOW_LINES_WITHOUT_RANGE.
1202 * c-common.h (extern void maybe_add_include_fixit): Add bool
1203 param.
1204 * c-format.c (selftest::test_type_mismatch_range_labels): Update
1205 for conversion of show_caret_p to a tri-state.
1206 * c-warn.c (warn_for_restrict): Likewise.
1207 * known-headers.cc
1208 (suggest_missing_header::~suggest_missing_header): Update call to
1209 maybe_add_include_fixit to suggest overriding the location, as it
1210 is for a note.
1211
3d78e008
ML
12122018-08-27 Martin Liska <mliska@suse.cz>
1213
1214 * c-common.c (check_function_restrict): Use new function
92a285c1
ML
1215 fndecl_built_in_p and remove check for FUNCTION_DECL if
1216 possible.
3d78e008
ML
1217 (check_builtin_function_arguments): Likewise.
1218 (reject_gcc_builtin): Likewise.
1219 * c-warn.c (sizeof_pointer_memaccess_warning): Likewise.
1220
b5be6d0c
MP
12212018-08-26 Marek Polacek <polacek@redhat.com>
1222
1223 PR c++/87029, Implement -Wredundant-move.
1224 * c.opt (Wredundant-move): New option.
1225
79ca9c35
MP
12262018-08-21 Marek Polacek <polacek@redhat.com>
1227
1228 PR c++/86981, Implement -Wpessimizing-move.
1229 * c.opt (Wpessimizing-move): New option.
1230
097f82ec
DM
12312018-08-20 David Malcolm <dmalcolm@redhat.com>
1232
1233 PR other/84889
1234 * c-attribs.c (common_handle_aligned_attribute): Add
1235 auto_diagnostic_group instance.
1236 * c-indentation.c (warn_for_misleading_indentation): Likewise.
1237 * c-opts.c (c_common_post_options): Likewise.
1238 * c-warn.c (warn_logical_not_parentheses): Likewise.
1239 (warn_duplicated_cond_add_or_warn): Likewise.
1240 (warn_for_multistatement_macros): Likewise.
1241
3fb558b1
NS
12422018-08-20 Nathan Sidwell <nathan@acm.org>
1243
1244 * c-ada-spec.c (macro_length, dump_ada_macros): Adjust macro parm
1245 access.
1246
800c0e98
NS
12472018-08-17 Nathan Sidwell <nathan@acm.org>
1248
1249 * c-cppbuiltin.c (struct lazy_hex_fp_value_struct): Remove macro
1250 field.
1251 (laxy_hex_fp_value_count): Make unsigned.
1252 (lazy_hex_fp_value): Provided with macro & lazy number. Directly
1253 manipulate the macro.
1254 (builtin_defin_with_hex_fp_value): Adjust callback name, use
1255 cpp_define_lazily.
1256
6f795a92
DM
12572018-08-17 David Malcolm <dmalcolm@redhat.com>
1258
1259 * c-format.c (enum format_type): Add gcc_dump_printf_format_type.
1260 (gcc_dump_printf_length_specs): New.
1261 (gcc_dump_printf_flag_pairs): New.
1262 (gcc_dump_printf_flag_specs): New.
1263 (gcc_dump_printf_char_table): New.
1264 (format_types_orig): Add entry for "gcc_dump_printf".
1265 (init_dynamic_diag_info): Set up length_char_specs and
1266 conversion_specs for gcc_dump_printf_format_type.
1267 (handle_format_attribute): Handle gcc_dump_printf_format_type.
1268
c5d725c0
NS
12692018-08-17 Nathan Sidwell <nathan@acm.org>
1270
10f04917
NS
1271 * c-ada-spec.c (macro_length, dump_ada_macros): Constify.
1272
c5d725c0
NS
1273 * c-ada-spec.c: Don't #include "cpp-id-data.h"
1274 * c-cppbuiltin.c: Likewise.
1275
c0c12356
ML
12762018-08-17 Martin Liska <mliska@suse.cz>
1277
1278 * c.opt: Remove Warn, Init and Report for options with
92a285c1
ML
1279 Ignore/Deprecated flag. Warning is done automatically for
1280 Deprecated flags.
c0c12356 1281
10fcc142
DM
12822018-08-16 David Malcolm <dmalcolm@redhat.com>
1283
1284 PR c++/70693
1285 * c-common.c (selftest::c_family_tests): Call
1286 selftest::c_indentation_c_tests.
1287 * c-common.h (selftest::c_indentation_c_tests): New decl.
1288 * c-indentation.c: Include "selftest.h".
1289 (next_tab_stop): Add "tab_width" param, rather than accessing
1290 cpp_opts.
1291 (get_visual_column): Likewise. Clarify comment. Bulletproof
1292 against reading past the end of the line.
1293 (get_first_nws_vis_column): Add "tab_width" param.
1294 (detect_intervening_unindent): Likewise.
1295 (should_warn_for_misleading_indentation): Read tab width from
1296 cpp_opts and pass around.
1297 (selftest::test_next_tab_stop): New test.
1298 (selftest::assert_get_visual_column_succeeds): New function.
1299 (ASSERT_GET_VISUAL_COLUMN_SUCCEEDS): New macro.
1300 (selftest::assert_get_visual_column_fails): New function.
1301 (ASSERT_GET_VISUAL_COLUMN_FAILS): New macro.
1302 (selftest::test_get_visual_column): New test.
1303 (selftest::c_indentation_c_tests): New function.
1304
3f6677f4
NS
13052018-08-16 Nathan Sidwell <nathan@acm.org>
1306
1307 * c-ada-spec.c (count_ada_macro): Use cpp_user_macro_p.
1308 (store_ada_macro): Likewise.
1309 * c-ppoutput.c (cb_used_define, dump_macro): Likewise.
1310 * c-spellcheck.cc (should-suggest_as_macro_p): Likewise,
1311
96e6ae57
DM
13122018-08-15 David Malcolm <dmalcolm@redhat.com>
1313
1314 * c-format.c: Include "selftest-diagnostic.h" and
1315 "gcc-rich-location.h".
1316 (format_warning_at_char): Pass NULL for new label params of
1317 format_warning_va.
1318 (class indirection_suffix): New class.
1319 (class range_label_for_format_type_mismatch): New class.
1320 (format_type_warning): Move logic for generating "*" suffix to
1321 class indirection_suffix. Create "fmt_label" and "param_label"
1322 to show their types, and pass them to the
1323 format_warning_at_substring calls.
1324 (selftest::test_type_mismatch_range_labels): New test.
1325 (selftest::c_format_c_tests): Call it.
1326
23aa9f7c
MS
13272018-08-13 Martin Sebor <msebor@redhat.com>
1328
1329 PR tree-optimization/71625
1330 * c-common.c (braced_list_to_string): New function.
1331 * c-common.h (braced_list_to_string): Declare it.
1332
f10a9135
NS
13332018-08-08 Nathan Sidwell <nathan@acm.org>
1334
1335 * c-common.c (try_to_locate_new_include_inertion_point): Use
1336 linemap_included_from_linemap.
1337 * c-lex.c (fe_file_change): Use linemap_included_from.
1338 * c-ppoutput.c (pp_file_change): Likewise.
1339
8a45b051
MS
13402018-08-01 Martin Sebor <msebor@redhat.com>
1341
1342 PR tree-optimization/86650
ab20d992 1343 * c-format.c (gcc_tdiag_char_table): Update comment for "%G".
8a45b051
MS
1344 (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Same.
1345 (init_dynamic_diag_info): Update from "gcall *" to "gimple *".
1346 * c-format.h (T89_G): Update to be "gimple *" rather than
1347 "gcall *".
1348 (local_gcall_ptr_node): Rename...
1349 (local_gimple_ptr_node): ...to this.
1350
e540ccc0
DM
13512018-07-31 David Malcolm <dmalcolm@redhat.com>
1352
1353 * c-format.c (PP_FORMAT_CHAR_TABLE): New macro, based on existing
1354 table entries for gcc_diag_char_table, and the 'Z' entry from
1355 gcc_tdiag_char_table, changing the "chain" entry for 'Z' from
1356 &gcc_tdiag_char_table[0] to &gcc_diag_char_table[0].
1357 (gcc_diag_char_table): Use PP_FORMAT_CHAR_TABLE, implicitly
1358 adding missing "Z" for this table. Remove erroneous "G" and "K"
1359 entries.
1360 (gcc_tdiag_char_table): Use PP_FORMAT_CHAR_TABLE. Remove "v".
1361 (gcc_cdiag_char_table): Use PP_FORMAT_CHAR_TABLE.
1362 (gcc_cxxdiag_char_table): Use PP_FORMAT_CHAR_TABLE. Remove "v".
1363
425fc685
RE
13642018-07-31 Richard Earnshaw <rearnsha@arm.com>
1365
1366 * c-common.c (speculation_safe_resolve_call): New function.
1367 (speculation_safe_resolve_params): New function.
1368 (speculation_safe_resolve_return): New function.
1369 (resolve_overloaded_builtin): Handle __builtin_speculation_safe_value.
1370 * c-cppbuiltin.c (c_cpp_builtins): Add pre-define for
1371 __HAVE_SPECULATION_SAFE_VALUE.
1372
181463c2
DM
13732018-07-20 David Malcolm <dmalcolm@redhat.com>
1374
1375 * c-common.c (c_cpp_error): Remove redundant "line_table"
1376 parameter from call to rich_location::set_range.
1377 (maybe_suggest_missing_token_insertion): Likewise.
1378
0d7f9065
MS
13792018-07-20 Martin Sebor <msebor@redhat.com>
1380
1381 PR middle-end/82063
ab20d992 1382 * c.opt (-Warray-bounds): Remove redundant -Wall.
0d7f9065 1383
00abf86c
MS
13842018-07-20 Martin Sebor <msebor@redhat.com>
1385
1386 PR middle-end/82063
1387 * c-common.h (c_common_handle_option): Change function argument
1388 to HOST_WIDE_INT.
1389 * c-opts.c (c_common_init_options): Same.
1390 (c_common_handle_option): Same. Remove special handling of
1391 OPT_Walloca_larger_than_ and OPT_Wvla_larger_than_.
1392 * c.opt (-Walloc-size-larger-than, -Walloca-larger-than): Change
1393 options to take a HOST_WIDE_INT argument and accept a byte-size
1394 suffix. Initialize.
1395 (-Wvla-larger-than): Same.
1396 (-Wno-alloc-size-larger-than, -Wno-alloca-larger-than): New.
1397 (-Wno-vla-larger-than): Same.
1398
9b452033
JJ
13992018-07-12 Jakub Jelinek <jakub@redhat.com>
1400
1401 * c-attribs.c (c_common_attribute_table): Add
1402 "omp declare target implicit" attribute.
1403
cd0762f3
RB
14042018-07-12 Richard Biener <rguenther@suse.de>
1405
1406 PR c/86453
1407 * c-attribs.c (handle_packed_attribute): Do not build a variant
1408 type with TYPE_PACKED, instead ignore the attribute if we may
1409 not apply to the original type.
1410
0b27c3ed
JJ
14112018-07-10 Jakub Jelinek <jakub@redhat.com>
1412
1413 PR c++/86443
1414 * c-omp.c (c_omp_check_loop_iv_r, c_omp_check_loop_iv): Allow declv
1415 to contain TREE_LIST for both the original class iterator and the
1416 "last" helper var.
1417
e730a0ef
EB
14182018-07-07 Eric Botcazou <ebotcazou@adacore.com>
1419
1420 * c-ada-spec.c (to_ada_name): Remove index parameter.
1421 (pp_ada_tree_identifier): Likewise.
1422 (dump_ada_macros): Adjust call to to_ada_name.
1423 (struct overloaded_name_hash): Delete.
1424 (struct overloaded_name_hasher): Likewise.
1425 (overloaded_names): Likewise.
1426 (compute_overloading_index): Likewise.
1427 (dump_ada_decl_name): Do not call compute_overloading_index and
1428 adjust calls to pp_ada_tree_identifier.
1429 (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
1430 (dump_ada_import): Add spc parameter and switch to aspect syntax.
1431 (dump_ada_function_declaration): Adjust call to pp_ada_tree_identifier.
1432 (dump_ada_enum_type): Remove type and display_convention parameters.
1433 Adjust calls to pp_ada_tree_identifier.
1434 (dump_ada_node): Likewise and for dump_ada_structure.
1435 (dump_nested_type) <ENUMERAL_TYPE>: Adjust call to dump_ada_enum_type
1436 and tidy up.
1437 <RECORD_TYPE>: Adjust call to dump_ada_structure and switch to aspect
1438 syntax.
1439 (print_constructor): Adjust call to pp_ada_tree_identifier.
1440 (print_destructor): Likewise.
1441 (dump_ada_declaration): Switch to aspect syntax.
1442 (dump_ada_structure): Likewise and tidy up. Replace display_convention
1443 parameter with nested parameter.
1444 (dump_ads): Emit pragma Ada_2012 in lieu of pragma Ada_2005.
1445 (dump_ada_specs): Do not delete overloaded_names table.
1446
8de583fc
PB
14472018-07-06 Peter Bergner <bergner@linux.ibm.com>
1448
1449 PR target/86324
e730a0ef 1450 * c-attribs.c (handle_mode_attribute): Call translate_mode_attribute
8de583fc
PB
1451 target hook.
1452
09cff37b
NS
14532018-07-05 Nathan Sidwell <nathan@acm.org>
1454
1455 * c-lex.c (fe_file_change): Check SYSTEM_IMPLICIT_EXTERN_C not
1456 NO_IMPLICIT_EXTERN_C.
1457
98086b2b
ML
14582018-06-28 Martin Liska <mliska@suse.cz>
1459
1460 * cppspec.c: Include opt-suggestions.h.
1461
ab20d992
JJ
14622018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
1463 Thomas Schwinge <thomas@codesourcery.com>
829c6349
CLT
1464 Cesar Philippidis <cesar@codesourcery.com>
1465
1466 * c-pragma.h (enum pragma_omp_clause): Add
1467 PRAGMA_OACC_CLAUSE_{FINALIZE,IF_PRESENT}. Remove
1468 PRAGMA_OACC_CLAUSE_PRESENT_OR_{COPY,COPYIN,COPYOUT,CREATE}.
1469
f41b7612
JJ
14702018-06-20 Jakub Jelinek <jakub@redhat.com>
1471
1472 PR c++/86210
1473 * c-common.c (check_nonnull_arg): Use fold_for_warn. Adjust obsolete
1474 comment.
1475
4252ccd7
MS
14762018-06-18 Martin Sebor <msebor@redhat.com>
1477
1478 PR middle-end/85602
1479 * c-warn.c (sizeof_pointer_memaccess_warning): Check for attribute
1480 nonstring.
1481
e197e64e
KV
14822018-06-16 Kugan Vivekanandarajah <kuganv@linaro.org>
1483
1484 * c-common.c (c_common_truthvalue_conversion): Handle ABSU_EXPR.
1485
34a7a230
JM
14862018-06-13 Jason Merrill <jason@redhat.com>
1487
5cef3733
JM
1488 * c-opts.c (c_common_post_options): Warn about useless -Wabi.
1489 (c_common_handle_option) [OPT_Wabi_]: Remove flag_abi_compat_version
1490 handling.
1491
34a7a230
JM
1492 PR c++/86094 - wrong code with defaulted move ctor.
1493 * c-opts.c (c_common_post_options): Bump the current ABI version to
1494 13. Set warn_abi_version and flag_abi_compat_version to the current
1495 version rather than 0. Fix defaulting flag_abi_compat_version from
1496 warn_abi_version.
1497
bb0f14ae
MS
14982018-06-12 Martin Sebor <msebor@redhat.com>
1499
1500 PR c/85931
1501 * c-warn.c (sizeof_pointer_memaccess_warning): Avoid warning when
1502 sizeof source and destination yields the same value.
1503
3713f2e2
ML
15042018-06-12 Martin Liska <mliska@suse.cz>
1505
1506 * c.opt: Make MPX-related options as Deprecated.
1507
4af78ef8
DM
15082018-06-08 David Malcolm <dmalcolm@redhat.com>
1509
1510 * c-pretty-print.c (c_pretty_printer::statement): Use TDF_NONE
1511 rather than 0.
1512
31db0fe0
ML
15132018-06-08 Martin Liska <mliska@suse.cz>
1514
1515 * c-attribs.c (handle_bnd_variable_size_attribute): Remove support
1516 for MPX (macros, related functions, fields in cgraph_node, ...).
1517 (handle_bnd_legacy): Likewise.
1518 (handle_bnd_instrument): Likewise.
1519 * c.opt: Likewise.
1520
fe16acf2
JJ
15212018-06-06 Jakub Jelinek <jakub@redhat.com>
1522
1523 PR c++/86068
1524 * c-cppbuiltin.c (c_cpp_builtins): Fix a typo, set
1525 __cpp_transactional_memory to 201500 instead of 210500.
1526
4dbdb49b
JM
15272018-06-06 Jason Merrill <jason@redhat.com>
1528
1529 PR c++/85710 - ICE with -Wmemset-elt-size.
1530 * c-warn.c (warn_for_memset): Don't crash on incomplete element type.
1531
f8ad043f
JM
15322018-06-01 Jason Merrill <jason@redhat.com>
1533
1534 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_deduction_guides to
1535 201703.
1536
abc24d93
EB
15372018-06-01 Eric Botcazou <ebotcazou@adacore.com>
1538
1539 * c-ada-spec.c (dump_ada_declaration) <TYPE_DECL>: Generate a forward
1540 declaration for a typedef independently of whether the declaration of
1541 the subtype is generated.
1542
d258f4aa
MS
15432018-05-31 Martin Sebor <msebor@redhat.com>
1544
1545 PR c/82063
1546 * c.opt (-Wno-alloc-size-larger-than): New option.
1547
b67b9225
DP
15482018-04-22 David Pagan <dave.pagan@oracle.com>
1549
1550 PR c/55976
1551 * c-opts.c (c_common_post_options): Set default for warn_return_type
ab20d992 1552 for C++/C++ with ObjC extensions only. For C, makes it possible to
b67b9225
DP
1553 differentiate between default (no option), -Wreturn-type, and
1554 -Wno-return-type.
1555
04eb9c55
JM
15562018-05-29 Jason Merrill <jason@redhat.com>
1557
1558 * c.opt (Winit-list-lifetime): New flag.
1559
b0c31bc6
BE
15602018-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
1561
1562 * c-lex.c (get_fileinfo): Use splay_tree_compare_strings and
1563 splay_tree_delete_pointers.
1564
44284983
JJ
15652018-05-26 Jakub Jelinek <jakub@redhat.com>
1566
1567 PR bootstrap/85921
1568 * c-warn.c (diagnose_mismatched_attributes): Remove unnecessary
1569 noinline variable to workaround broken kernel headers.
1570
b46b715d
JM
15712018-05-18 Jason Merrill <jason@redhat.com>
1572
1573 * c.opt (Wdeprecated-copy): New flag.
1574
40659769
ML
15752018-05-17 Martin Liska <mliska@suse.cz>
1576
1577 * c-warn.c (overflow_warning): Do not use
1578 space in between 'G_' and '('.
1579
403962ea
JM
15802018-05-09 Jason Merrill <jason@redhat.com>
1581
1582 * c-common.c (valid_array_size_p): Add complain parameter.
1583 * c-common.h: ...which defaults to true.
1584
1c9ee609
JJ
15852018-05-11 Jakub Jelinek <jakub@redhat.com>
1586
1587 PR c/85696
1588 * c-omp.c (c_omp_predetermined_sharing): Return
1589 OMP_CLAUSE_DEFAULT_SHARED for artificial vars with integral type.
1590
19916065
ML
15912018-05-11 Martin Liska <mliska@suse.cz>
1592
92a285c1 1593 PR sanitizer/85556
19916065
ML
1594 * c-attribs.c (handle_no_sanitize_attribute): Iterate all
1595 TREE_LIST values.
1596
79e7b1fe
JJ
15972018-05-10 Jakub Jelinek <jakub@redhat.com>
1598
1599 PR c++/85662
1600 * c-common.h (fold_offsetof_1): Removed.
1601 (fold_offsetof): Add TYPE argument defaulted to size_type_node and
1602 CTX argument defaulted to ERROR_MARK.
1603 * c-common.c (fold_offsetof_1): Renamed to ...
1604 (fold_offsetof): ... this. Remove wrapper function. Add TYPE
1605 argument, convert the pointer constant to TYPE and use size_binop
1606 with PLUS_EXPR instead of fold_build_pointer_plus if type is not
1607 a pointer type. Adjust recursive calls.
1608
86c12f76
EB
16092018-05-10 Eric Botcazou <ebotcazou@adacore.com>
1610
1611 PR c++/85400
1612 * c-attribs.c (handle_visibility_attribute): Do not set no_add_attrs.
1613
ee336e84
NS
16142018-05-07 Nathan Sidwell <nathan@acm.org>
1615
1616 * c.opt (ffor-scope): Remove functionality, issue warning.
1617
6c072e21
NS
16182018-05-03 Nathan Sidwell <nathan@acm.org>
1619
1620 * c.opt (ffriend-injection): Remove functionality, issue warning.
1621
2cc7d3a7
DM
16222018-05-01 David Malcolm <dmalcolm@redhat.com>
1623
1624 PR c/84258
1625 * c-format.c (struct format_check_results): Add field
1626 "number_non_char".
1627 (check_format_info): Initialize it, and warn if encountered.
1628 (check_format_arg): Distinguish between wide char and
1629 everything else when detecting arrays of non-char.
1630
7761dfbe
DM
16312018-04-30 David Malcolm <dmalcolm@redhat.com>
1632
1633 * c-format.c (get_corrected_substring): Update for
1634 location_get_source_line returning a char_span. Use a char_span
1635 when handling the prefix of the correction.
1636 * c-indentation.c (get_visual_column): Update for
1637 location_get_source_line returning a char_span.
1638 (get_first_nws_vis_column): Likewise.
1639
62e98ef1
DM
16402018-03-29 David Malcolm <dmalcolm@redhat.com>
1641
1642 PR c++/84269
1643 * known-headers.cc (get_stdlib_header_for_name): Add various names
1644 from <assert.h>, <string.h>, and <memory.h>; add more names from
1645 <stdio.h>.
1646
a7dea617
JJ
16472018-03-27 Jakub Jelinek <jakub@redhat.com>
1648
1649 PR c++/85061
1650 * c-common.c (fold_offsetof_1) <case COMPOUND_EXPR>: Assert that
1651 get_base_address of the second operand is a VAR_P, rather than the
1652 operand itself, and use gcc_checking_assert instead of gcc_assert.
1653
889a3a30
MP
16542018-03-23 Marek Polacek <polacek@redhat.com>
1655
1656 PR c++/85045
1657 * c-pretty-print.c (c_pretty_printer::multiplicative_expression)
1658 <case RDIV_EXPR>: Tweak condition.
1659
452154b9
EB
16602018-03-20 Eric Botcazou <ebotcazou@adacore.com>
1661
1662 * c-ada-spec.c (pp_ada_tree_identifier): Deal specifically with _Bool.
1663
63ecb626
JJ
16642018-03-16 Jakub Jelinek <jakub@redhat.com>
1665
ce811fc4
JJ
1666 PR c/84909
1667 * c-warn.c (conversion_warning): Replace "to to" with "to" in
1668 diagnostics.
1669
63ecb626
JJ
1670 PR c/84910
1671 * c-warn.c (diagnose_mismatched_attributes): Remove trailing space from
1672 diagnostics.
1673
a1295eec
RB
16742018-03-16 Richard Biener <rguenther@suse.de>
1675
1676 PR c/84873
1677 * c-gimplify.c (c_gimplify_expr): Revert previous change. Instead
1678 unshare the possibly folded expression.
1679
919674fb
RB
16802018-03-15 Richard Biener <rguenther@suse.de>
1681
1682 PR c/84873
1683 * c-gimplify.c (c_gimplify_expr): Do not fold expressions.
1684
f99309b2
MS
16852018-03-13 Martin Sebor <msebor@redhat.com>
1686
1687 PR tree-optimization/84725
1688 * c-attribs.c (handle_nonstring_attribute): Allow attribute nonstring
1689 with all three narrow character types, including their qualified forms.
1690
e9b9fa4c
MS
16912018-03-12 Martin Sebor <msebor@redhat.com>
1692
1693 PR tree-optimization/83456
ab20d992 1694 * c-common.c (check_function_restrict): Return bool.
e9b9fa4c
MS
1695 Restore checking of bounded built-in functions.
1696 (check_function_arguments): Also return the result
1697 of warn_for_restrict.
ab20d992
JJ
1698 * c-common.c (check_function_restrict): Return bool.
1699 * c-warn.c (warn_for_restrict): Return bool.
e9b9fa4c 1700
0805d020
MP
17012018-03-02 Marek Polacek <polacek@redhat.com>
1702
1703 PR c++/84171
1704 * c-warn.c (warn_for_sign_compare): Bail out if any of the operands
1705 is erroneous.
1706
ed2a2f08
TS
17072018-03-02 Thomas Schwinge <thomas@codesourcery.com>
1708
1709 * c-attribs.c (c_common_attribute_table): Remove "cilk simd
1710 function".
1711
90abdde0
MP
17122018-03-01 Marek Polacek <polacek@redhat.com>
1713
1714 PR c++/84639
1715 * c-attribs.c (common_handle_aligned_attribute): Don't use invalid
1716 alignment in computation.
1717
c6db43fa
EB
17182018-02-28 Eric Botcazou <ebotcazou@adacore.com>
1719
1720 * c-ada-spec.c (dump_ada_node) <NULLPTR_TYPE>: New case.
1721 <REAL_TYPE>: Deal specifically with _Float128/__float128.
1722
9e25c7ed
EB
17232018-02-28 Eric Botcazou <ebotcazou@adacore.com>
1724
1725 * c-ada-spec.c (dump_ada_double_name) <ENUMERAL_TYPE>: New case.
1726 (is_char_array): Take a type instead of a declaration.
1727 (dump_ada_array_type): Likewise.
1728 (is_simple_enum): Minor tweak.
1729 (dump_ada_enum_type): New function extracted from...
1730 (dump_ada_node) <ENUMERAL_TYPE>: ...here. Invoke it.
1731 <INTEGER_TYPE>: Remove unreachable code.
1732 <RECORD_TYPE>: Likewise. Minor tweaks.
1733 (dump_nested_type) <ARRAY_TYPE>: Adjust to above changes.
1734 <ENUMERAL_TYPE>: New case.
1735 <RECORD_TYPE>: Factor out common code.
1736 (dump_ada_declaration) <ARRAY_TYPE>: Adjust to above changes.
1737 Minor tweaks. Deal with enumeral types.
1738 (dump_ada_structure): Minor tweaks.
1739
09de3550
EB
17402018-02-28 Eric Botcazou <ebotcazou@adacore.com>
1741
1742 * c-ada-spec.c (dump_ada_node) <POINTER_TYPE>: Do not use generic
1743 address for incomplete structures.
1744 (dump_forward_type): Do not bail out for incomplete structures.
1745 (dump_ada_declaration): Do not special-case incomplete structures
1746 for subtypes. Dump them as null records for types.
1747
095d8d4b
EB
17482018-02-28 Eric Botcazou <ebotcazou@adacore.com>
1749
1750 * c-ada-spec.c (dump_ada_import): Use boolean and fix formatting.
1751 (is_char_array): Fix formatting.
1752 (dump_template_types): Likewise.
1753 (dump_generic_ada_node): Rename into...
1754 (dump_ada_node): ...this.
1755 <POINTER_TYPE>: Remove superfluous space. Use generic address for
1756 incomplete structures and not for empty structures. Do not use it
1757 when forward declarations are needed.
1758 (dump_forward_type): New function.
1759 (dump_nested_types): Remove FORWARD parameter. Do not consider
1760 TREE_VISITED and do not generate a forward declaration. Only dump
1761 original nested types for nested declaration.
1762 (dump_nested_type) <POINTER_TYPE>: Call dump_forward_type.
1763 <ARRAY_TYPE>: Likewise if the component type is an anonymous pointer.
1764 <RECORD_TYPE>: Do not consider TREE_VISITED.
1765 (dump_ada_declaration): Use booleans and fix formatting throughout.
1766 <TYPE_DECL>: Skip incomplete structures and not empty structures.
1767 Call dump_forward_type instead of dump_nested_types for a typedef.
1768 Remove superfluous check and adjust call to dump_nested_types.
1769 <POINTER_TYPE>: Call dump_forward_type and fall through.
1770 (dump_ada_struct_decl): Rename into...
1771 (dump_ada_structure): ...this. Do not special-case empty structures.
1772
d4cfd486
MS
17732018-02-27 Martin Sebor <msebor@redhat.com>
1774
1775 PR c++/83871
1776 * c.opt (-Wmissing-attributes): New option.
1777
b22dbd03
ML
17782018-02-21 Martin Liska <mliska@suse.cz>
1779
1780 * c.opt (Wcatch-value=): Add IntegerRange.
1781
883dfe2a
JM
17822018-02-15 Jason Merrill <jason@redhat.com>
1783
1784 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_deduction_guides.
1785
0444aa9c
NS
17862018-02-09 Nathan Sidwell <nathan@acm.org>
1787
1788 PR c/84293
1789 * c-common.h (strict_aliasing_warning): Drop OTYPE arg, insert LOC
1790 arg.
1791 * c-warn.c (strict_aliasing_warning): Drop OTYPE arg, require LOC
1792 arg. Adjust.
1793
cea71f0a
MS
17942018-02-09 Martin Sebor <msebor@redhat.com>
1795
1796 PR lto/84212
1797 * c.opt (-Wstringop-overflow, -Warray-bounds): Add LTO.
1798 (-Walloc-size-larger-than, -Wformat-truncation=): Same.
1799 (-Wmaybe-uninitialized, -Wnonnull, -Wrestrict): Same.
1800 (-Wstrict-overflow, -Wsuggest-attribute): Same.
1801 (-Wuninitialized): Same.
1802
8c8b7be5
EB
18032018-02-09 Eric Botcazou <ebotcazou@adacore.com>
1804
1805 * c-ada-spec.c (dump_ada_declaration): Do not generate the 'constant'
1806 keyword for components.
1807
7c30b12a
PC
18082018-02-02 Paolo Carlini <paolo.carlini@oracle.com>
1809
1810 * c-common.h (DECL_UNNAMED_BIT_FIELD): New.
1811
eece7fe5
JK
18122018-02-02 Julia Koval <julia.koval@intel.com>
1813
1814 * c-common.h (omp_clause_mask): Move to wide_int_bitmask.h.
1815
7d07a93a
MP
18162018-01-29 Marek Polacek <polacek@redhat.com>
1817
1818 PR c/83966
1819 * c-format.c (check_function_format): Check current_function_decl.
1820
53723269
JJ
18212018-01-27 Jakub Jelinek <jakub@redhat.com>
1822
1823 * c-cppbuiltin.c (c_cpp_builtins): Use ggc_strdup for the fp_suffix
1824 argument.
1825 (LAZY_HEX_FP_VALUES_CNT): Define.
1826 (lazy_hex_fp_values): Allow up to LAZY_HEX_FP_VALUES_CNT lazy hex fp
1827 values rather than just 12.
1828 (builtin_define_with_hex_fp_value): Likewise.
1829
7365279f
BK
18302018-01-18 Boris Kolpackov <boris@codesynthesis.com>
1831
92a285c1
ML
1832 PR other/70268
1833 * c.opt (-fmacro-prefix-map): New option.
1834 * c-opts.c (c_common_handle_option): Handle it.
1835 * c-lex.c (init_c_lex): Set remap_filename cpp callback.
1836 * c-ppoutput.c (init_pp_output): Likewise.
7365279f 1837
bb9869d5
DM
18382018-01-17 David Malcolm <dmalcolm@redhat.com>
1839
1840 PR c++/83814
1841 * c-common.c (fold_for_warn): Move to c/c-fold.c and cp/expr.c.
1842
68dc87c3
EB
18432018-01-10 Eric Botcazou <ebotcazou@adacore.com>
1844
1845 * c-ada-spec.c (dump_number): Add FLOAT_P parameter.
1846 Skip 'f' and 'F' characters if it is true.
1847 (store_ada_macro): Minor tweak.
1848 (dump_ada_macros) <CPP_COMMENT>: Likewise.
1849 <CPP_WSTRING>: Likewise.
1850 <CPP_STRING>: Output '&' in the buffer if not the first string.
1851 <CPP_NUMBER>: Adjust calls to dump_number.
1852
9a004410
DM
18532018-01-10 David Malcolm <dmalcolm@redhat.com>
1854
1855 PR c++/43486
1856 * c-common.c: Include "selftest.h".
1857 (get_atomic_generic_size): Perform the test for integral type
1858 before the range test for any integer constant, fixing indentation
1859 of braces. Call fold_for_warn before testing for an INTEGER_CST.
1860 (reject_gcc_builtin): Strip any location wrapper from EXPR.
1861 (selftest::test_fold_for_warn): New function.
1862 (selftest::c_common_c_tests): New function.
1863 (selftest::c_family_tests): Call it, and
1864 selftest::c_pretty_print_c_tests.
1865 * c-common.h (selftest::c_pretty_print_c_tests): New decl.
1866 * c-format.c (check_format_arg): Convert VAR_P check to a
1867 fold_for_warn.
1868 * c-pretty-print.c: Include "selftest.h".
1869 (pp_c_cast_expression): Don't print casts for location wrappers.
1870 (selftest::assert_c_pretty_printer_output): New function.
1871 (ASSERT_C_PRETTY_PRINTER_OUTPUT): New macro.
1872 (selftest::test_location_wrappers): New function.
1873 (selftest::c_pretty_print_c_tests): New function.
1874 * c-warn.c (warn_for_memset): Call fold_for_warn on the arguments.
1875
5c0caeb3
RS
18762018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
1877 Alan Hayward <alan.hayward@arm.com>
1878 David Sherwood <david.sherwood@arm.com>
1879
1880 * c-common.c (c_common_type_for_mode): Handle MODE_VECTOR_BOOL.
1881
73a699ae
RS
18822018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
1883 Alan Hayward <alan.hayward@arm.com>
1884 David Sherwood <david.sherwood@arm.com>
1885
1886 * c-ubsan.c (ubsan_instrument_shift): Treat GET_MODE_BITSIZE
1887 as polynomial.
1888
928686b1
RS
18892018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
1890 Alan Hayward <alan.hayward@arm.com>
1891 David Sherwood <david.sherwood@arm.com>
1892
1893 * c-common.c (vector_types_convertible_p, c_build_vec_perm_expr)
1894 (convert_vector_to_array_for_subscript): Handle polynomial
1895 TYPE_VECTOR_SUBPARTS.
1896 (c_common_type_for_mode): Check valid_vector_subparts_p.
1897 * c-pretty-print.c (pp_c_initializer_list): Handle polynomial
1898 VECTOR_CST_NELTS.
1899
85ec4feb
JJ
19002018-01-03 Jakub Jelinek <jakub@redhat.com>
1901
1902 Update copyright years.
1903
170a8bd6 19042017-12-22 Mike Stump <mikestump@comcast.net>
92a285c1 1905 Eric Botcazou <ebotcazou@adacore.com>
170a8bd6
EB
1906
1907 * c-pragma.c (init_pragma): Register pragma GCC unroll.
1908 * c-pragma.h (enum pragma_kind): Add PRAGMA_UNROLL.
1909
ab20d992 19102017-12-22 Alexandre Oliva <aoliva@redhat.com>
18408e96
AO
1911
1912 PR debug/83527
1913 PR debug/83419
1914 * c-semantics.c (only_debug_stmts_after_p): New.
1915 (pop_stmt_list): Clear side effects in debug-only stmt list.
1916 Check for single nondebug stmt followed by debug stmts only.
1917
c12d20d4
AO
19182017-12-21 Alexandre Oliva <aoliva@redhat.com>
1919
1920 PR debug/83419
1921 * c-semantics.c (pop_stmt_list): Propagate side effects from
1922 single nondebug stmt to container list.
1923
01512446
JJ
19242017-12-19 Jakub Jelinek <jakub@redhat.com>
1925
1926 * known-headers.cc (get_stdlib_header_for_name): Replace Yoda
1927 conditions with typical order conditions.
1928
82cfbd01
MP
19292017-12-18 Marek Polacek <polacek@redhat.com>
1930
1931 * c-warn.c (warn_logical_operator): Return early if -Wlogical-op is
1932 not in effect.
1933
99da11ec
MS
19342017-12-17 Martin Sebor <msebor@redhat.com>
1935
1936 * c-attribs.c (common_handle_aligned_attribute): Avoid issuing
1937 an error for attribute warn_if_not_aligned.
1938
cc8bea0a
MS
19392017-12-16 Martin Sebor <msebor@redhat.com>
1940
1941 PR tree-optimization/78918
1942 * c-common.c (check_function_restrict): Avoid checking built-ins.
1943 * c.opt (-Wrestrict): Include in -Wall.
1944
4849deb1
JJ
19452017-12-15 Jakub Jelinek <jakub@redhat.com>
1946
1947 * c-attribs.c (c_common_attribute_table,
1948 c_common_format_attribute_table): Swap affects_type_identity
1949 and handler fields, adjust comments.
1950
c65e18d3
BE
19512017-12-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
1952
1953 * c.opt (Wcast-function-type): New warning option.
1954 * c-lex.c (get_fileinfo): Avoid warning.
1955 * c-ppoutput.c (scan_translation_unit_directives_only): Remove cast.
1956
2004617a
QZ
19572017-12-14 Qing Zhao <qing.zhao@oracle.com>
1958
7365279f 1959 PR middle_end/79538
2004617a
QZ
1960 * c-cppbuiltin.c (builtin_define_with_hex_fp_value):
1961 Adjust the size of buf1 and buf2, add a new buf to avoid
1962 format-overflow warning.
1963
ab20d992 19642017-12-12 Alexandre Oliva <aoliva@redhat.com>
96a95ac1
AO
1965
1966 * c-semantics.c (pop_stmt_list): Move begin stmt marker into
1967 subsequent statement list.
1968
5d9ae53d
MS
19692017-12-07 Martin Sebor <msebor@redhat.com>
1970
1971 PR c/81544
1972 PR c/81566
1973 * c-attribs.c (attr_aligned_exclusions): New array.
1974 (attr_alloc_exclusions, attr_cold_hot_exclusions): Same.
1975 (attr_common_exclusions, attr_const_pure_exclusions): Same.
1976 (attr_gnu_inline_exclusions, attr_inline_exclusions): Same.
1977 (attr_noreturn_exclusions, attr_returns_twice_exclusions): Same.
1978 (attr_warn_unused_result_exclusions): Same.
1979 (handle_hot_attribute, handle_cold_attribute): Simplify.
1980 (handle_const_attribute): Warn on function returning void.
1981 (handle_pure_attribute): Same.
1982 (handle_aligned_attribute): Diagnose conflicting attribute
1983 specifications.
1984 * c-warn.c (diagnose_mismatched_attributes): Simplify.
1985
c79144f8
DM
19862017-12-06 David Malcolm <dmalcolm@redhat.com>
1987
1988 PR c/83236
1989 * c-common.c (selftest::c_family_tests): Call
1990 selftest::c_spellcheck_cc_tests.
1991 * c-common.h (selftest::c_spellcheck_cc_tests): New decl.
1992 * c-spellcheck.cc: Include "selftest.h".
1993 (name_reserved_for_implementation_p): New function.
1994 (should_suggest_as_macro_p): New function.
1995 (find_closest_macro_cpp_cb): Move the check for NT_MACRO to
1996 should_suggest_as_macro_p and call it.
1997 (selftest::test_name_reserved_for_implementation_p): New function.
1998 (selftest::c_spellcheck_cc_tests): New function.
1999 * c-spellcheck.h (name_reserved_for_implementation_p): New decl.
2000
613bc14f
DM
20012017-12-06 David Malcolm <dmalcolm@redhat.com>
2002
2003 * c-spellcheck.cc: New file, taken from macro-handling code in
2004 spellcheck-tree.c.
2005 * c-spellcheck.h: New file, taken from macro-handling code in
2006 spellcheck-tree.h.
2007
e76c7157
JJ
20082017-12-01 Jakub Jelinek <jakub@redhat.com>
2009
2010 * c-attribs.c (c_common_attribute_table): Remove "cilk simd function"
2011 attribute.
2012 (handle_simd_attribute): Don't check for "cilk simd function"
2013 attribute. Reindent, formatting changes.
2014
b0da4034
JK
20152017-11-30 Julia Koval <julia.koval@intel.com>
2016
2017 * c-common.h (inv_list): Remove.
2018
058f0b9e
JJ
20192017-11-28 Jakub Jelinek <jakub@redhat.com>
2020
2021 PR sanitizer/81275
2022 * c-common.c (c_switch_covers_all_cases_p_1,
2023 c_switch_covers_all_cases_p): New functions.
2024 * c-common.h (c_switch_covers_all_cases_p): Declare.
2025
5e9d6aa4 20262017-11-28 Julia Koval <julia.koval@intel.com>
92a285c1 2027 Sebastian Peryt <sebastian.peryt@intel.com>
5e9d6aa4
JK
2028
2029 * array-notation-common.c: Delete.
2030 * c-cilkplus.c: Ditto.
2031 * c-common.c (_Cilk_spawn, _Cilk_sync, _Cilk_for): Remove.
2032 * c-common.def (ARRAY_NOTATION_REF): Remove.
2033 * c-common.h (RID_CILK_SPAWN, build_array_notation_expr,
2034 build_array_notation_ref, C_ORT_CILK, c_check_cilk_loop,
2035 c_validate_cilk_plus_loop, cilkplus_an_parts,
2036 cilk_ignorable_spawn_rhs_op,
2037 cilk_recognize_spawn): Remove.
2038 * c-gimplify.c (CILK_SPAWN_STMT): Remove.
2039 * c-omp.c: Remove CILK_SIMD check.
2040 * c-pragma.c: Ditto.
2041 * c-pragma.h: Remove CILK related pragmas.
2042 * c-pretty-print.c (c_pretty_printer::postfix_expression): Remove
2043 ARRAY_NOTATION_REF condition.
2044 (c_pretty_printer::expression): Ditto.
2045 * c.opt (fcilkplus): Remove.
2046 * cilk.c: Delete.
2047
1af4ebf5
MG
20482017-11-21 Marc Glisse <marc.glisse@inria.fr>
2049
2050 * c-pretty-print.c (pp_c_additive_expression,
2051 c_pretty_printer::expression): Handle POINTER_DIFF_EXPR.
2052
d44ed508
JJ
20532017-11-21 Jakub Jelinek <jakub@redhat.com>
2054
7d2f0f9b
JJ
2055 * c-common.c (get_nonnull_operand): Use tree_to_uhwi.
2056
d44ed508
JJ
2057 PR c++/83059
2058 * c-common.c (get_atomic_generic_size): Use TREE_INT_CST_LOW
2059 instead of tree_to_uhwi, formatting fix.
2060
26edace6
DM
20612017-11-20 David Malcolm <dmalcolm@redhat.com>
2062
2063 PR c/81404
2064 * known-headers.cc: New file, based on material from c/c-decl.c.
2065 (suggest_missing_header): Copied as-is.
2066 (get_stdlib_header_for_name): New, based on get_c_name_hint but
2067 heavily edited to add C++ support. Add some knowledge about
2068 <limits.h>, <stdint.h>, and <wchar.h>.
2069 * known-headers.h: Likewise.
2070
6c7a259b
DM
20712017-11-20 David Malcolm <dmalcolm@redhat.com>
2072
2073 * c-common.h (enum lookup_name_fuzzy_kind): Move to name-hint.h.
2074 (lookup_name_fuzzy): Likewise. Convert return type from
2075 const char * to name_hint. Add location_t param.
2076 * name-hint.h: New header.
2077
f9c59f7e
JJ
20782017-11-19 Jakub Jelinek <jakub@redhat.com>
2079
2080 PR c/66618
2081 PR c/69960
2082 * c-common.h (c_fully_fold): Add LVAL argument defaulted to false.
2083
1e39313a
JM
20842017-11-16 Joseph Myers <joseph@codesourcery.com>
2085
2086 * c.opt (-std=c17, std=gnu17, -std=iso9899:2017): Refer to 2018
2087 expected publication date of C17.
2088 (-std=c18, -std=gnu18, -std=iso9899:2018): New option aliases.
2089
3ca0dc60
JM
20902017-11-15 Joseph Myers <joseph@codesourcery.com>
2091
2092 PR c/81156
2093 * c-common.c (c_common_reswords): Add __builtin_tgmath.
2094 * c-common.h (enum rid): Add RID_BUILTIN_TGMATH.
2095
025d57f0
MS
20962017-11-10 Martin Sebor <msebor@redhat.com>
2097
2098 PR c/81117
2099 * c-common.c (catenate_strings): Use memcpy instead of strncpy.
2100 * c-warn.c (sizeof_pointer_memaccess_warning): Handle arrays.
2101 * c.opt (-Wstringop-truncation): New option.
2102
1b6fa695
ML
21032017-11-06 Martin Liska <mliska@suse.cz>
2104
2105 PR middle-end/82404
2106 * c-opts.c (c_common_post_options): Set -Wreturn-type for C++
2107 FE.
2108 * c.opt: Set default value of warn_return_type.
2109
64a5912c
DM
21102017-10-31 David Malcolm <dmalcolm@redhat.com>
2111
2112 * c-common.c (binary_op_error): Update for renaming of
2113 error_at_rich_loc.
2114 (c_parse_error): Likewise.
2115 * c-warn.c (warn_logical_not_parentheses): Likewise for
2116 renaming of inform_at_rich_loc.
2117 (warn_for_restrict): Likewise for renaming of
2118 warning_at_rich_loc_n.
2119
c76dc9c3
JM
21202017-10-30 Joseph Myers <joseph@codesourcery.com>
2121
2122 * c.opt (std=c17, std=gnu17, std=iso9899:2017): New options.
2123 * c-opts.c (set_std_c17): New function.
2124 (c_common_init_options): Use gnu17 as default C version.
2125 (c_common_handle_option): Handle -std=c17 and -std=gnu17.
2126
ee5fd23a
MM
21272017-10-27 Michael Meissner <meissner@linux.vnet.ibm.com>
2128
2129 * c-cppbuiltin.c (mode_has_fma): Add support for PowerPC KFmode.
2130 (c_cpp_builtins): If a machine has a fast fma _Float<N> and
2131 _Float<N>X variant, define __FP_FAST_FMA<N> and/or
2132 __FP_FAST_FMA<N>X.
2133
d1047465
MP
21342017-10-23 Marek Polacek <polacek@redhat.com>
2135
2136 PR c/82681
2137 * c-warn.c (warnings_for_convert_and_check): Fix typos.
2138
9e878cf1
EB
21392017-10-19 Eric Botcazou <ebotcazou@adacore.com>
2140
2141 * c-common.c (check_builtin_function_arguments): Also check arguments
2142 of __builtin_alloca_with_align_and_max.
2143
89b6abbb
DM
21442017-10-17 David Malcolm <dmalcolm@redhat.com>
2145
2146 * c-format.c (format_warning_at_char): Pass UNKNOWN_LOCATION
2147 rather than NULL to format_warning_va.
2148 (check_format_types): Likewise when calling format_type_warning.
2149 Remove code to extract source_ranges and source_range * in favor
2150 of just a location_t.
2151 (format_type_warning): Convert source_range * param to a
2152 location_t.
2153
39382c09
JJ
21542017-10-13 Jakub Jelinek <jakub@redhat.com>
2155
2156 * c-gimplify.c (c_gimplify_expr): Handle [LR]ROTATE_EXPR like
2157 [LR]SHIFT_EXPR.
2158
62e1c678
DM
21592017-10-12 David Malcolm <dmalcolm@redhat.com>
2160
2161 * c-common.c (enum missing_token_insertion_kind): New enum.
2162 (get_missing_token_insertion_kind): New function.
2163 (maybe_suggest_missing_token_insertion): New function.
2164 * c-common.h (maybe_suggest_missing_token_insertion): New decl.
2165
b90c9338
NS
21662017-10-11 Nathan Sidwell <nathan@acm.org>
2167
2168 * c-opts.c (add_prefixed_path): Change chain to incpath_kind.
2169 (c_common_handle_option): Update incpath_kind names.
2170
3a266bcd
ML
21712017-10-11 Martin Liska <mliska@suse.cz>
2172
2173 PR sanitizer/82490
2174 * c-attribs.c (handle_no_sanitize_attribute): Report directly
2175 Wattributes warning.
2176
8e6cdc90
RS
21772017-10-10 Richard Sandiford <richard.sandiford@linaro.org>
2178
2179 * c-ada-spec.c (dump_generic_ada_node): Use wi::to_wide when
2180 operating on trees as wide_ints.
2181 * c-common.c (pointer_int_sum): Likewise.
2182 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2183 * c-warn.c (match_case_to_enum_1): Likewise.
2184 (c_do_switch_warnings): Likewise.
2185 (maybe_warn_shift_overflow): Likewise.
2186
802b38c9
JJ
21872017-10-10 Jakub Jelinek <jakub@redhat.com>
2188
2189 PR c/82437
2190 * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_wide
2191 instead of wide_int::from.
2192
4e34b338
JJ
21932017-10-06 Jakub Jelinek <jakub@redhat.com>
2194
2195 PR c/82437
2196 * c-warn.c (warn_tautological_bitwise_comparison): Instead of
2197 using to_widest use wide_int with the larger of the two precisions.
2198
4bc4b2b4
BE
21992017-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
2200
2201 * c-pretty-print.c (pp_c_parameter_type_list): Print ... for variadic
2202 functions.
2203
a1488398
RS
22042017-10-02 Richard Sandiford <richard.sandiford@linaro.org>
2205
2206 * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_widest
2207 when combining the original unconverted comparison operands.
2208
01c9fb68
JJ
22092017-09-29 Jakub Jelinek <jakub@redhat.com>
2210
2211 * c-attribs.c (handle_noipa_attribute): Don't add "stack_protect"
2212 attribute.
2213
6e3e8419
EB
22142017-09-29 Eric Botcazou <ebotcazou@adacore.com>
2215
2216 * c-ada-spec.c (to_ada_name): Add index parameter.
2217 (pp_ada_tree_identifier): Likewise.
2218 (dump_ada_macros): Adjust call to to_ada_name.
2219 (struct overloaded_name_hash): New type.
2220 (struct overloaded_name_hasher): Likewise.
2221 (overloaded_names): New hash table.
2222 (compute_overloading_index): New function.
2223 (dump_ada_decl_name): Call it and pass the result to
2224 pp_ada_tree_identifier.
2225 (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
2226 (dump_ada_function_declaration): Likewise.
2227 (dump_generic_ada_node): Likewise.
2228 (print_constructor): Likewise.
2229 (print_destructor): Likewise.
2230 (dump_ada_specs): Delete overloaded_names table.
2231
79310774
EB
22322017-09-29 Eric Botcazou <ebotcazou@adacore.com>
2233
2234 * c-ada-spec.c (max_ada_macros): Move around.
2235 (store_ada_macro_index): Likewise.
2236 (source_file): Rename into...
2237 (macro_source_file): ...this.
2238 (count_ada_macro): Move around.
2239 (store_ada_macro): Likewise.
2240 (compare_macro): Likewise.
2241 (print_ada_macros): Merge in...
2242 (dump_ada_macros): ...this.
2243 (source_file_base): Rename into...
2244 (current_source_file): ...this.
2245 (print_comment): Move around.
2246 (dump_ada_nodes): Call dump_ada_declaration directly.
2247 (struct with): Change type of limited field to bool.
2248 (append_withs): Change type of limited_access parameter to bool.
2249 (pp_ada_tree_identifie): Likewise.
2250 (dump_ada_decl_nam): Likewise.
2251 (dump_generic_ada_node): Likewise. Do not print the return type.
2252 (to_ada_name): Change type of space_found parameter to bool.
2253 (dump_ada_function_declaration): Return void and change type of
2254 parameters to bool. Also print the return type for a function.
2255 (print_ada_methods): Rename into...
2256 (dump_ada_methods): ...this.
2257 (print_ada_declaration): Rename into ...
2258 (dump_ada_declaration): ...this. Do not print the return type.
2259 (print_ada_struct_decl): Rename into...
2260 (dump_ada_struct_decl): ...this.
2261
7d386d45
JJ
22622017-09-29 Jakub Jelinek <jakub@redhat.com>
2263
2264 * c-attribs.c (handle_packed_attribute): Test DECL_C_BIT_FIELD
2265 rather than DECL_INITIAL.
2266 (common_handle_aligned_attribute): Likewise.
2267
ab20d992 22682017-09-20 Alexandre Oliva <aoliva@redhat.com>
9ed32e27
AO
2269
2270 * c.opt (gen-decls): Add RejectNegative.
2271
026a79f7
AS
22722017-09-15 Andrew Sutton <andrew.n.sutton@gmail.com>
2273 Jakub Jelinek <jakub@redhat.com>
2274
2275 Add support for -std=c++2a.
2276 * c-common.h (cxx_dialect): Add cxx2a as a dialect.
2277 * opt.c: Add options for -std=c++2a and -std=gnu++2a.
2278 * c-opts.c (set_std_cxx2a): New.
2279 (c_common_handle_option): Set options when -std=c++2a is enabled.
2280 (c_common_post_options): Adjust comments.
2281 (set_std_cxx14, set_std_cxx17): Likewise.
2282
4a8ca690
EB
22832017-09-15 Eric Botcazou <ebotcazou@adacore.com>
2284
2285 * c-pragma.c (handle_pragma_scalar_storage_order): Expand on error
2286 message for non-uniform endianness and issue a warning in C++.
2287
7b936140
JJ
22882017-09-15 Jakub Jelinek <jakub@redhat.com>
2289
2290 * c.opt (Wc++1z-compat): Change from option to undocumented alias.
2291 (Wc++17-compat): Change from undocumented alias to option.
2292 (Wnoexcept-type): Enable by Wc++17-compat instead of Wc++1z-compat,
2293 change C++1z to C++17 in description.
2294 (std=c++1z, std=gnu++1z): Change from option to undocumented
2295 deprecated alias.
2296 (std=c++17, std=gnu++17): Change from undocumented alias to option.
2297 Adjust description.
2298 * c-common.h (enum cxx_dialect): Rename cxx1z to cxx17.
2299 * c-opts.c (set_std_cxx1z): Rename to ...
2300 (set_std_cxx17): ... this.
2301 (c_common_handle_option): Rename OPT_std_c__1z to OPT_std_c__17
2302 and OPT_std_gnu__1z to OPT_std_gnu__17. Adjust set_std_cxx1z
7365279f 2303 caller.
7b936140
JJ
2304 (c_common_post_options): Use cxx17 instead of cxx1z. Adjust
2305 comments.
2306
12263f13
L
23072017-09-12 H.J. Lu <hongjiu.lu@intel.com>
2308
2309 * c-attribs.c (common_handle_aligned_attribute): Don't warn
2310 function alignment if warn_if_not_aligned_p is true.
2311
6836632e
NS
23122017-09-12 Nathan Sidwell <nathan@acm.org>
2313
2314 * c-common.c (field_decl_cmp, resort_data, resort_field_decl_cmp,
2315 resort_sorted_fields): Move to c/c-decl.c.
2316 * c-common.h (field_decl_cmp, resort_sorted_fields): Delete.
2317 (struct sorted_fields_type): Move to c/c-lang.h.
2318
019bf9ad
JW
23192017-09-09 Jonathan Wakely <jwakely@redhat.com>
2320
2321 PR c++/81852
2322 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_threadsafe_static_init.
2323
bc7fe952
MP
23242017-09-04 Marek Polacek <polacek@redhat.com>
2325
2326 PR c/81783
2327 * c-warn.c (warn_tautological_bitwise_comparison): New function.
2328 (warn_tautological_cmp): Call it.
2329
ab20d992 23302017-09-01 Boris Kolpackov <boris@codesynthesis.com>
de7c2c6a
BK
2331
2332 * c-opts.c (c_common_finish): Write dependency information even if
2333 there are errors.
2334
d2e05fcb
JJ
23352017-09-01 Jakub Jelinek <jakub@redhat.com>
2336
2337 PR c/81887
2338 * c-pragma.c (omp_pragmas): Move "ordered" entry from here to ...
2339 (omp_pragmas_simd): ... here.
2340 * c-omp.c (c_finish_omp_ordered): If clauses isn't simd clause alone,
2341 create new clauses list containing just simd clause.
2342
18e2a8b8
RS
23432017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2344 Alan Hayward <alan.hayward@arm.com>
2345 David Sherwood <david.sherwood@arm.com>
2346
2347 * c-attribs.c (vector_mode_valid_p) Fold GET_MODE_INNER call
2348 into scalar_mode_supported_p call.
2349 (handle_mode_attribute): Update call to scalar_mode_supported_p.
2350
16d22000
RS
23512017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2352 Alan Hayward <alan.hayward@arm.com>
2353 David Sherwood <david.sherwood@arm.com>
2354
2355 * c-common.c (c_common_fixed_point_type_for_size): Use opt_scalar_mode
2356 for the mode iterator.
2357
b397965c
RS
23582017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2359 Alan Hayward <alan.hayward@arm.com>
2360 David Sherwood <david.sherwood@arm.com>
2361
2362 * c-lex.c (interpret_fixed): Use SCALAR_TYPE_MODE.
2363 * c-common.c (c_build_vec_perm_expr): Likewise.
2364
357b7604
RS
23652017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2366 Alan Hayward <alan.hayward@arm.com>
2367 David Sherwood <david.sherwood@arm.com>
2368
2369 * c-common.c (c_common_type_for_mode): Use as_a <scalar_int_mode>.
2370
e05c94ba
RS
23712017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2372 Alan Hayward <alan.hayward@arm.com>
2373 David Sherwood <david.sherwood@arm.com>
2374
2375 * c-attribs.c (handle_mode_attribute): Check for a scalar_int_mode
2376 before calling targetm.addr_space.valid_pointer_mode.
2377
5c20c4af
RS
23782017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2379 Alan Hayward <alan.hayward@arm.com>
2380 David Sherwood <david.sherwood@arm.com>
2381
2382 * c-cppbuiltin.c (c_cpp_builtins): Use opt_scalar_float_mode.
2383
c94843d2 23842017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
92a285c1
ML
2385 Alan Hayward <alan.hayward@arm.com>
2386 David Sherwood <david.sherwood@arm.com>
c94843d2
RS
2387
2388 * c-common.c (c_common_fixed_point_type_for_size): Use new mode
2389 iterators.
2390 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2391
4e10a5a7
RS
23922017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2393 Alan Hayward <alan.hayward@arm.com>
2394 David Sherwood <david.sherwood@arm.com>
2395
2396 * c-cppbuiltin.c (mode_has_fma): Prefix mode names with E_ in
2397 case statements.
2398
130fcab0
ML
23992017-08-29 Martin Liska <mliska@suse.cz>
2400
2401 PR other/39851
2402 * c-common.c (parse_optimize_options): Add argument to function
2403 call.
2404 * c-pragma.c (handle_pragma_diagnostic): Likewise.
2405
14e18d71
DM
24062017-08-24 David Malcolm <dmalcolm@redhat.com>
2407
2408 * c-lex.c (interpret_float): Use token location
2409 when building an EXCESS_PRECISION_EXPR.
2410
2f687306
DM
24112017-08-21 David Malcolm <dmalcolm@redhat.com>
2412
2413 * c-common.c (check_function_arguments): Add "arglogs" param; pass
2414 it to check_function_format.
2415 * c-common.h (check_function_arguments): Add vec<location_t> *
2416 param.
2417 (check_function_format): Likewise.
2418 * c-format.c (struct format_check_context): Add field "arglocs".
2419 (check_function_format): Add param "arglocs"; pass it to
2420 check_format_info.
ab20d992 2421 (check_format_info): Add param "arglocs"; use it to initialize
2f687306
DM
2422 new field of format_ctx.
2423 (check_format_arg): Pass format_ctx->arglocs to new param of
2424 check_format_info_main.
2425 (class argument_parser): New field "arglocs".
2426 (argument_parser::argument_parser): Add "arglocs_" param and use
2427 it to initialize new field.
2428 (argument_parser::check_argument_type): Pass new arglocs field to
2429 check_format_types.
2430 (check_format_info_main): Add param "arglocs", and use it when
2431 constructing arg_parser.
2432 (check_format_types): Add param "arglocs"; use it if non-NULL when
2433 !EXPR_HAS_LOCATION (cur_param) to get at location information.
2434
00aa1fa2
L
24352017-08-18 H.J. Lu <hongjiu.lu@intel.com>
2436
2437 PR c/53037
2438 * c-attribs.c (handle_warn_if_not_aligned_attribute): New.
2439 (c_common_attribute_table): Add warn_if_not_aligned.
2440 (handle_aligned_attribute): Renamed to ...
2441 (common_handle_aligned_attribute): Remove argument, name, and add
2442 argument, warn_if_not_aligned. Handle warn_if_not_aligned.
2443 (handle_aligned_attribute): New.
2444 * c.opt: Add -Wif-not-aligned and -Wpacked-not-aligned.
2445
27be025d
MS
24462017-08-14 Martin Sebor <msebor@redhat.com>
2447
2448 PR c/81117
2449 * c-attribs.c (c_common_attribute_table): Add nonstring entry.
2450 (handle_nonstring_attribute): New function.
2451
da67acb9
MS
24522017-08-14 Martin Sebor <msebor@redhat.com>
2453
2454 PR c/81117
2455 * c-format.h (T89_G): New macro.
2456 * c-format.c (local_gcall_ptr_node): New variable.
2457 (init_dynamic_diag_info): Initialize it.
2458
a8b522b4
ML
24592017-08-11 Martin Liska <mliska@suse.cz>
2460
2461 * c-opts.c (c_common_post_options): Replace ASM_OUTPUT_DEF with
2462 TARGET_SUPPORTS_ALIASES.
2463
32129a17
DM
24642017-08-10 David Malcolm <dmalcolm@redhat.com>
2465
2466 * c-common.c (c_parse_error): Add rich_location * param, using it
2467 rather implicitly using input_location.
2468 * c-common.h (c_parse_error): Add rich_location * param.
2469
30af3a2b
MP
24702017-08-09 Marek Polacek <polacek@redhat.com>
2471
2472 * c-common.c (pointer_int_sum): Use true/false instead of 1/0.
2473 (c_common_truthvalue_conversion): Likewise.
2474 * c-omp.c (c_finish_omp_atomic): Likewise.
2475 * c-common.h (build_binary_op): Update declaration.
2476
314e6352
ML
24772017-08-08 Martin Liska <mliska@suse.cz>
2478
2479 * c-ada-spec.c: Include header files.
2480 * c-ubsan.c: Likewise.
2481 * c-warn.c: Likewise.
2482
56b5041c
JJ
24832017-08-07 Jakub Jelinek <jakub@redhat.com>
2484
2485 PR c/69389
2486 * c-omp.c (c_finish_omp_atomic): Handle atomics on bitfields.
2487
db440138
EB
24882017-08-07 Eric Botcazou <ebotcazou@adacore.com>
2489
2490 * c-ada-spec.c (has_nontrivial_methods): Test for FUNCTION_DECL.
2491 (print_ada_methods): Likewise.
2492 (print_ada_declaration): Likewise.
2493
577eec56
ML
24942017-08-07 Martin Liska <mliska@suse.cz>
2495
2496 * array-notation-common.c: Add new includes.
2497 * c-format.c( handle_format_attribute): Canonicalize a format
2498 function name.
2499 * c-lex.c (c_common_has_attribute): Canonicalize name of an
2500 attribute.
2501 * c-pretty-print.c: Add new include.
2502
b854df3c
EB
25032017-08-05 Eric Botcazou <ebotcazou@adacore.com>
2504
2505 * c-ada-spec.c (has_static_fields): Look only into variables.
2506 (print_constructor): Add TYPE parameter and use it for the name.
2507 (print_destructor): Likewise.
2508 (print_ada_declaration): Adjust to new constructor/destructor names.
2509 Adjust calls to print_constructor and print_destructor.
2510 (print_ada_struct_decl): Do not test TREE_STATIC on FIELD_DECL.
2511 Look only into variables in the final loop.
2512
9f2cb25e
EB
25132017-08-01 Eric Botcazou <ebotcazou@adacore.com>
2514
2515 * c-ada-spec.c (has_static_fields): Look only into fields.
2516 (dump_generic_ada_node): Small tweak.
2517 (dump_nested_types): Look only into fields.
2518 (print_ada_declaration): Look only into methods. Small tweak.
2519 (print_ada_struct_decl): Look only into fields. Use DECL_VIRTUAL_P.
2520
f4bcd9eb
EB
25212017-08-01 Eric Botcazou <ebotcazou@adacore.com>
2522
2523 * c-ada-spec.c (print_generic_ada_decl): Pass correctly-typed constant.
2524 (dump_ada_function_declaration): Likewise.
2525 (dump_generic_ada_node): Likewise.
2526 (print_ada_declaration): Add support for const-qualified variables.
2527
f34ebeb2
ML
25282017-07-31 Martin Liska <mliska@suse.cz>
2529
2530 PR sanitize/81530
2531 * c-ubsan.c (ubsan_maybe_instrument_array_ref):
2532 Guard condition with flag_sanitize_p also with current_function_decl
2533 non-null equality.
2534 (ubsan_maybe_instrument_reference_or_call): Likewise.
2535
218e5d04
UB
25362017-07-30 Uros Bizjak <ubizjak@gmail.com>
2537
2538 * c-format.c (asm_fprintf_char_table): Add 'z' to format_chars.
2539
942047f2
EB
25402017-07-29 Eric Botcazou <ebotcazou@adacore.com>
2541
2542 * c-ada-spec.c (dump_generic_ada_node): Take into account signedness
2543 for enumeral types.
2544 (print_ada_declaration): Add missing guard for record types.
2545
a40ff0ae
JJ
25462017-07-27 Jakub Jelinek <jakub@redhat.com>
2547
2548 PR c/45784
2549 * c-omp.c (c_finish_omp_for): If the condition is wrapped in
2550 rhs of COMPOUND_EXPR(s), skip them and readd their lhs into
2551 new COMPOUND_EXPRs around the rhs of the comparison.
2552
06bd22f6
MP
25532017-07-27 Marek Polacek <polacek@redhat.com>
2554
2555 PR c/81417
2556 * c-warn.c (warn_for_sign_compare): Tweak the warning message. Print
2557 the types.
2558
036ea399
JJ
25592017-07-27 Jakub Jelinek <jakub@redhat.com>
2560
2561 * c-attribs.c (c_common_attribute_table): Add noipa attribute.
2562 (handle_noipa_attribute): New function.
2563
417ca011
TD
25642017-07-07 Torsten Duwe <duwe@suse.de>
2565
2566 * c-attribs.c (c_common_attribute_table): Add entry for
2567 "patchable_function_entry".
2568
5aaa8fb4
NS
25692017-07-20 Nathan Sidwell <nathan@acm.org>
2570
2571 Remove TYPE_METHODS.
2572 * c-ada-spec.c (is_tagged_type, has_nontrivial_methods,
2573 dump_ada_template, print_ada_methods,
2574 print_ada_declaration): Member fns are on TYPE_FIELDS.
2575
ff22eb12
NS
25762017-07-18 Nathan Sidwell <nathan@acm.org>
2577
2578 * c-warn.c (warn_for_memset): Use TYPE_{MIN,MAX}_VALUE.
2579
eea77d1f
DM
25802017-07-14 David Malcolm <dmalcolm@redhat.com>
2581
2582 * c-common.c (try_to_locate_new_include_insertion_point): New
2583 function.
2584 (per_file_includes_t): New typedef.
2585 (added_includes_t): New typedef.
2586 (added_includes): New variable.
2587 (maybe_add_include_fixit): New function.
2588 * c-common.h (maybe_add_include_fixit): New decl.
2589
281ac396
MS
25902017-07-10 Martin Sebor <msebor@redhat.com>
2591
2592 PR other/81345
2593 * c.opt (-Wstringop-overflow): Set defaults in LangEnabledBy.
2594
b6f43128
DM
25952017-07-06 David Malcolm <dmalcolm@redhat.com>
2596
2597 * c-common.c (selftest::c_family_tests): New.
2598 * c-common.h (selftest::run_c_tests): Move decl to c/c-lang.h.
2599 (selftest::c_family_tests): New decl.
2600
efbf55b0
MP
26012017-07-04 Marek Polacek <polacek@redhat.com>
2602
2603 PR c/81231
2604 * c-common.c (sync_resolve_size): Give error for pointers to incomplete
2605 types.
2606
6c86bd88
MP
26072017-07-04 Marek Polacek <polacek@redhat.com>
2608
2609 * c-warn.c (warn_if_unused_value): Remove WITH_CLEANUP_EXPR handling.
2610
17a7218b
ML
26112017-06-28 Martin Liska <mliska@suse.cz>
2612
2613 PR ipa/81128
2614 * c-attribs.c (handle_alias_ifunc_attribute): Append ifunc alias
2615 to a function declaration.
2616
63010089
ML
26172017-06-28 Martin Liska <mliska@suse.cz>
2618
2619 PR driver/79659
2620 * c.opt: Add IntegerRange to various options.
2621
3e2becc4
MP
26222017-06-26 Marek Polacek <polacek@redhat.com>
2623
2624 PR c/80116
2625 * c-common.h (warn_for_multistatement_macros): Declare.
2626 * c-warn.c: Include "c-family/c-indentation.h".
2627 (warn_for_multistatement_macros): New function.
2628 * c.opt (Wmultistatement-macros): New option.
2629 * c-indentation.c (guard_tinfo_to_string): No longer static.
2630 Change the parameter type to "enum rid". Handle RID_SWITCH.
2631 * c-indentation.h (guard_tinfo_to_string): Declare.
2632
2db9b7cd
MG
26332017-06-23 Marc Glisse <marc.glisse@inria.fr>
2634
2635 * c-common.c (c_common_nodes_and_builtins): Use builtin_structptr_types.
2636
c3684b7b
MS
26372017-06-15 Martin Sebor <msebor@redhat.com>
2638
2639 PR c++/80560
2640 * c.opt (-Wclass-memaccess): New option.
2641
e72c4afd
BK
26422017-06-14 Boris Kolpackov <boris@codesynthesis.com>
2643
2644 * c-opts.c (c_common_finish): Handle '-' special value to -MF.
2645
8a516588
MP
26462017-06-13 Marek Polacek <polacek@redhat.com>
2647
2648 PR objc/80949
2649 * c-warn.c (do_warn_duplicated_branches): Return if any of the
2650 branches is null.
2651
45b2222a
ML
26522017-06-13 Martin Liska <mliska@suse.cz>
2653
2654 PR sanitize/78204
2655 * c-attribs.c (add_no_sanitize_value): New function.
2656 (handle_no_sanitize_attribute): Likewise.
2657 (handle_no_sanitize_address_attribute): Use the function.
2658 (handle_no_sanitize_thread_attribute): New function.
2659 (handle_no_address_safety_analysis_attribute): Use
2660 add_no_sanitize_value.
2661 (handle_no_sanitize_undefined_attribute): Likewise.
2662 * c-common.h: Declare new functions.
2663 * c-ubsan.c (ubsan_instrument_division): Use sanitize_flags_p.
2664 (ubsan_instrument_shift): Likewise.
2665 (ubsan_instrument_bounds): Likewise.
2666 (ubsan_maybe_instrument_array_ref): Likewise.
2667 (ubsan_maybe_instrument_reference_or_call): Likewise.
2668
a01f151f
JM
26692017-06-11 Jason Merrill <jason@redhat.com>
2670
2671 * c-ada-spec.c, c-pragma.c: Use id_equal.
2672
3de4ac6d
MP
26732017-06-04 Marek Polacek <polacek@redhat.com>
2674
2675 PR c/80919
2676 * c-format.c (matching_type_p): Return false if any of the types
2677 requires structural equality.
2678
2474f48f
MS
26792017-06-02 Martin Sebor <msebor@redhat.com>
2680
2681 PR c/80892
2682 * c-warn.c (conversion_warning): Use -Wconversion for integer
2683 conversion and -Wfloat-conversion for floating one.
2684
40ffd95f
BE
26852017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2686
2687 * c.opt (Wsizeof-pointer-div): New warning option.
2688
3fa4634c
VR
26892017-06-01 Volker Reichelt <v.reichelt@netcologne.de>
2690
2691 * c.opt (Wcatch-value): New shortcut for Wcatch-value=1.
2692 (Wcatch-value=1): Enable by -Wall.
2693
f012c8ef
DM
26942017-05-30 David Malcolm <dmalcolm@redhat.com>
2695
2696 * c-format.c (gcc_cxxdiag_char_table): Add 'H' and 'I' to
2697 format_chars.
2698 * c.opt (fdiagnostics-show-template-tree): New option.
2699 (felide-type): New option.
2700
63dbcd13
VR
27012017-05-25 Volker Reichelt <v.reichelt@netcologne.de>
2702
2703 * c.opt (Wcatch-value=): New C++ warning flag.
2704
be136b5c
NS
27052017-05-24 Nathan Sidwell <nathan@acm.org>
2706
2707 * c=common.c (field_decl_cmp, resort_field_decl_cmp): Adjust T
2708 const casts to avoid warning.
2709
3cd211af
MS
27102017-05-24 Martin Sebor <msebor@redhat.com>
2711
2712 PR c/80731
2713 * c-common.h (unsafe_conversion_p): Add a function argument.
2714 * c-common.c (unsafe_conversion_p): Same.
2715 Add type names and values to diagnostics.
2716 (scalar_to_vector): Adjust.
2717 * c-warn.c (constant_expression_error): Add a function argument.
2718 Add type names and values to diagnostics.
2719 (conversion_warning): Add a function argument.
2720 Add type names and values to diagnostics.
2721 (warnings_for_convert_and_check): Same.
2722
1ff7be5a
JM
27232017-05-19 Jason Merrill <jason@redhat.com>
2724
2725 * c-warn.c (match_case_to_enum_1): Don't warn about enums with no
2726 enumerators.
2727
ff502317
BE
27282017-05-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
2729
2730 * c-format.c (locus): Move out of function scope,
2731 add GTY attribute.
2732
2a8a8d7b
NS
27332017-05-19 Nathan Sidwell <nathan@acm.org>
2734
2735 * c-opts.c (class_dump_file, class_dump_flags): Delete.
2736 (c_common_parse_file): Remove class dump handling.
2737 (get_dump_info): Likewise.
2738
39aac208
RB
27392017-05-19 Richard Biener <rguenther@suse.de>
2740
2741 PR c++/80593
2742 * c-warn.c (strict_aliasing_warning): Do not warn for accesses
2743 to alias-set zero memory.
2744
6ecd2339
BE
27452017-05-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
2746
2747 * c-format.c (local_tree_type_node): Add GTY attribute.
2748
6574d78e
MP
27492017-05-18 Marek Polacek <polacek@redhat.com>
2750
2751 * c-common.c (c_common_type_for_size): Use NULL_TREE instead of 0.
2752 (c_common_fixed_point_type_for_size): Likewise.
2753 (c_common_type_for_mode): Likewise.
2754 (shorten_compare): Likewise.
2755 (c_promoting_integer_type_p): Use false/true instead of 0/1.
2756 * c-pragma.c (maybe_apply_renaming_pragma): Use NULL_TREE instead of 0.
2757
e3455240
MP
27582017-05-18 Marek Polacek <polacek@redhat.com>
2759
2760 * c-common.c (self_promoting_args_p): Change the return type to bool.
2761 Use false/true instead of 0/1.
2762 * c-common.h (self_promoting_args_p): Update.
2763
3fa8871b
MP
27642017-05-17 Marek Polacek <polacek@redhat.com>
2765
2766 * c-common.c: Use NULL_TREE instead of 0 where appropriate.
2767 * c-warn.c: Likewise.
2768
b42cc3ca
VV
27692017-05-17 Ville Voutilainen <ville.voutilainen@gmail.com>
2770
2771 Implement new C++ intrinsics __is_assignable and __is_constructible.
2772 * c-common.c (__is_assignable, __is_constructible): New.
2773 * c-common.h (RID_IS_ASSIGNABLE, RID_IS_CONSTRUCTIBLE): Likewise.
2774
1a817418
ML
27752017-05-17 Martin Liska <mliska@suse.cz>
2776
2777 * c-common.h: Introduce dump_flags_t type and
2778 use it instead of int type.
2779 * c-gimplify.c (c_genericize): Likewise.
2780 * c-opts.c: Likewise.
2781
b2fa0a8b
MP
27822017-05-17 Marek Polacek <polacek@redhat.com>
2783
2784 * c-common.c (c_save_expr): Remove.
2785 (c_common_truthvalue_conversion): Remove a call to c_save_expr.
2786 * c-common.h (c_save_expr): Remove declaration.
2787
31c2d57d
VR
27882017-05-09 Volker Reichelt <v.reichelt@netcologne.de>
2789
2790 PR c/35441
2791 * c-pretty-print.c (c_pretty_printer::expression): Handle MAX_EXPR,
2792 MIN_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, LROTATE_EXPR, RROTATE_EXPR.
2793 (c_pretty_printer::postfix_expression): Handle MAX_EXPR, MIN_EXPR.
2794 (c_pretty_printer::multiplicative_expression): Handle EXACT_DIV_EXPR,
2795 RDIV_EXPR.
2796 (pp_c_shift_expression): Handle LROTATE_EXPR, RROTATE_EXPR.
2797
684f84de
MP
27982017-05-09 Marek Polacek <polacek@redhat.com>
2799
2800 PR c/80525
2801 * c-warn.c (unwrap_c_maybe_const): New.
2802 (warn_logical_operator): Call it.
2803
641da50a
NS
28042017-05-09 Nathan Sidwell <nathan@acm.org>
2805
2806 * c-common.c (c_register_builtin_type): Use pushdecl lang_hook.
2807 * c-common.h (pushdecl_top_level, pushdecl): Don't declare here.
2808
631238ac
MS
28092017-05-08 Martin Sebor <msebor@redhat.com>
2810
2811 PR translation/80280
2812 * c-format.h (struct format_flag_spec): Add new member.
2813 (T89_T): New macro.
2814 * c-format.c (local_tree_type_node): New global.
2815 (printf_flag_specs, asm_fprintf_flag_spec): Initialize new data.
2816 (gcc_diag_flag_specs, scanf_flag_specs, strftime_flag_specs): Ditto.
2817 (strfmon_flag_specs): Likewise.
2818 (gcc_diag_char_table, gcc_cdiag_char_table): Split up specifiers
2819 with distinct quoting properties.
2820 (gcc_tdiag_char_table, gcc_cxxdiag_char_table): Same.
2821 (flag_chars_t::validate): Add argument and handle bad quoting.
2822 (check_format_info_main): Handle quoting problems.
2823 (init_dynamic_diag_info): Simplify.
2824
49f0c04c
JM
28252017-05-08 Jason Merrill <jason@redhat.com>
2826
2827 * c-opts.c (c_common_post_options): Update defaults for
2828 flag_abi_version and flag_abi_compat_version.
2829
56d35585
DM
28302017-05-05 David Malcolm <dmalcolm@redhat.com>
2831
2832 * c-common.c (c_cpp_error): Replace report_diagnostic
2833 with diagnostic_report_diagnostic.
2834
0f2c4a8f
MS
28352017-05-04 Martin Sebor <msebor@redhat.com>
2836
2837 PR translation/80280
2838 * c-attribs.c (handle_alias_ifunc_attribute): Quote a %D directive.
2839 (handle_weakref_attribute): Same.
2840
6fe63fb4
NS
28412017-05-03 Nathan Sidwell <nathan@acm.org>
2842
2843 Canonicalize canonical type hashing
2844 * c-common.c (complete_array_type): Use type_hash_canon.
2845
815d9cc6
XR
28462017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
2847
92a285c1 2848 PR c++/80038
815d9cc6
XR
2849 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): Remove
2850 prototype.
2851 (cilk_install_body_pedigree_operations): Likewise.
2852 * cilk.c (cilk_set_spawn_marker): Mark functions that should be
2853 detatched.
2854 (cilk_gimplify_call_params_in_spawned_fn): Remove.
2855 (cilk_install_body_pedigree_operations): Likewise.
2856 (gimplify_cilk_spawn): Add EXPR_STMT and CLEANUP_POINT_EXPR
2857 unwrapping.
2858
f8a36447
JJ
28592017-04-27 Jakub Jelinek <jakub@redhat.com>
2860
2861 PR c++/80534
2862 * c-common.c (complete_array_type): Only hash TYPE_TYPELESS_STORAGE
2863 flag on non-aggregate element types.
2864
7c145456
BE
28652017-04-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
2866
2867 * c-common.c (c_type_hasher, type_hash_table): Remove.
2868 (c_common_get_alias_set): Remove unreachable code.
2869 * c-opts.c (c_common_post_options): Make sure cc1 takes only one file.
2870
c3cbcd45
VR
28712017-04-20 Volker Reichelt <v.reichelt@netcologne.de>
2872
2873 * c.opt (Wextra-semi): New C++ warning flag.
2874
8a59d466
JJ
28752017-04-20 Jakub Jelinek <jakub@redhat.com>
2876
2877 PR middle-end/80423
2878 * c-common.c (complete_array_type): Preserve TYPE_TYPELESS_STORAGE.
2879
8487c9a5
JJ
28802017-04-18 Jakub Jelinek <jakub@redhat.com>
2881
2882 PR middle-end/79788
2883 PR middle-end/80375
2884 * c-common.c (c_common_type_for_mode): Don't handle
2885 widest_*_literal_type_node here.
2886 c_common_signed_or_unsigned_type): Likewise.
2887 (c_common_nodes_and_builtins): Set widest_*_literal_type_node
2888 to *intTI_type_node or *intDI_type_node depending on whether
2889 TImode is supported by the target or not.
2890
3ee0fb02
ML
28912017-04-10 Martin Liska <mliska@suse.cz>
2892
2893 PR sanitizer/80350
2894 * c-ubsan.c (ubsan_instrument_shift): Evaluate RHS before
2895 doing an UBSAN check.
2896
5764ee3c
JW
28972017-04-03 Jonathan Wakely <jwakely@redhat.com>
2898
2899 * c-warn.c (do_warn_double_promotion): Fix typo in comment.
2900
6f3af356
JJ
29012017-03-31 Jakub Jelinek <jakub@redhat.com>
2902
2903 PR c++/79572
2904 * c-ubsan.h (ubsan_maybe_instrument_reference): Change argument to
2905 tree *.
2906 * c-ubsan.c (ubsan_maybe_instrument_reference): Likewise. Handle
2907 not just NOP_EXPR to REFERENCE_TYPE, but also INTEGER_CST with
2908 REFERENCE_TYPE.
2909
f6a7a9d5
DM
29102017-03-31 David Malcolm <dmalcolm@redhat.com>
2911
2912 PR documentation/78732
2913 * c.opt (Wendif-labels): Fix description to refer to
2914 #else rather than #elif.
2915
af88f557
JJ
29162017-03-31 Jakub Jelinek <jakub@redhat.com>
2917
2918 PR libstdc++/80251
2919 * c-common.h (enum rid): Add RID_IS_AGGREGATE.
2920 * c-common.c (c_common_reswords): Add __is_aggregate trait.
2921
a9e4a1a5
JJ
29222017-03-27 Jakub Jelinek <jakub@redhat.com>
2923
2924 PR middle-end/80162
2925 * c-common.c (c_common_mark_addressable_vec): Don't set
2926 TREE_ADDRESSABLE on DECL_HARD_REGISTER.
2927
3f01b620
MS
29282017-03-21 Martin Sebor <msebor@redhat.com>
2929
2930 PR c++/79548
2931 * c-common.c (set_underlying_type): Mark type used only when
2932 original del is declared unused.
2933
2f6f187a
DM
29342017-03-10 David Malcolm <dmalcolm@redhat.com>
2935
2936 PR translation/79848
2937 * c-format.c (check_format_string): Simplify uses of "%<%s%>" to
2938 "%qs".
2939
a02fa805
DM
29402017-03-10 David Malcolm <dmalcolm@redhat.com>
2941
2942 PR c/79921
2943 * c-indentation.c (warn_for_misleading_indentation): Remove parens
2944 from inform's message, so that xgettext can locate it.
2945
822a132c
MP
29462017-03-09 Marek Polacek <polacek@redhat.com>
2947
2948 PR c++/79962
2949 PR c++/79984
2950 * c-attribs.c (handle_nonnull_attribute): Save the result of default
2951 conversion to the attribute list.
2952
bba81f1c
ML
29532017-03-09 Martin Liska <mliska@suse.cz>
2954
2955 * c-ada-spec.c (macro_length): Increment value instead of a pointer.
2956
108154ff
JM
29572017-03-03 Jason Merrill <jason@redhat.com>
2958
2959 * c.opt (Wnoexcept-type): New.
2960
eb0e7c34
RB
29612017-03-02 Richard Biener <rguenther@suse.de>
2962
2963 PR c/79756
2964 * c-common.c (c_common_mark_addressable_vec): Look through
2965 C_MAYBE_CONST_EXPR.
2966
9453ba0a
ML
29672017-02-28 Martin Liska <mliska@suse.cz>
2968
2969 * c.opt: Replace space with tabular for options of <number>
2970 type.
2971
6a825afe
ML
29722017-02-28 Martin Liska <mliska@suse.cz>
2973
2974 * c.opt: Fix --help=option -Q for options which are of
2975 an enum type.
2976
4227c9ad
JJ
29772017-02-24 Jakub Jelinek <jakub@redhat.com>
2978
2979 PR c++/79588
2980 * c-common.c (check_function_restrict): New function.
2981 (check_function_arguments): Add FNDECL argument. Call
2982 check_function_restrict if -Wrestrict.
2983 * c-warn.c (warn_for_restrict): Remove ARGS argument, add ARGARRAY
2984 and NARGS. Use auto_vec for ARG_POSITIONS, simplify.
2985 * c-common.h (check_function_arguments): Add FNDECL argument.
2986 (warn_for_restrict): Remove ARGS argument, add ARGARRAY and NARGS.
2987
59909673
EB
29882017-02-24 Eric Botcazou <ebotcazou@adacore.com>
2989
2990 * c-ada-spec.c (dump_ada_function_declaration): Add comment about the
2991 treatment of parameters with pointer-to-tagged type and tidy up.
2992 (print_ada_methods): Remove the special treatment of C++ static member
2993 functions.
2994
54dcd526
ML
29952017-02-22 Martin Liska <mliska@suse.cz>
2996
2997 * c.opt: Replace inequality signs with square brackets
2998 for -Wnornalized.
2999
00bc9de3
JJ
30002017-02-21 Jakub Jelinek <jakub@redhat.com>
3001
3002 PR c++/79641
3003 * c-attribs.c (handle_mode_attribute): Use build_qualified_type to
3004 preserve quals.
3005
97fcf744
JM
30062017-02-17 Joseph Myers <joseph@codesourcery.com>
3007
3008 * c-cppbuiltin.c (builtin_define_float_constants): Define
3009 __DECIMAL_DIG__ to the value for long double.
3010
c7545f1c
MP
30112017-02-15 Marek Polacek <polacek@redhat.com>
3012
3013 PR c/79515
3014 * c-warn.c (do_warn_double_promotion): Don't warn if an invalid
3015 conversion has occured.
3016
c2e84327
DM
30172017-01-24 David Malcolm <dmalcolm@redhat.com>
3018
3019 * c-common.c (c_common_reswords): Add "__RTL".
3020 * c-common.h (enum rid): Add RID_RTL.
3021
2ebd93e1
MP
30222017-01-20 Marek Polacek <polacek@redhat.com>
3023
3024 PR c/64279
3025 * c-common.h (do_warn_duplicated_branches_r): Declare.
3026 * c-gimplify.c (c_genericize): Walk the function tree calling
3027 do_warn_duplicated_branches_r.
3028 * c-warn.c (expr_from_macro_expansion_r): New.
3029 (do_warn_duplicated_branches): New.
3030 (do_warn_duplicated_branches_r): New.
3031 * c.opt (Wduplicated-branches): New option.
3032
0d80ab91
DM
30332017-01-17 David Malcolm <dmalcolm@redhat.com>
3034
3035 PR c++/71497
3036 * c-indentation.c (warn_for_misleading_indentation): Use the past
3037 subjunctive in the note.
3038
7f991c36
AH
30392017-01-17 Aldy Hernandez <aldyh@redhat.com>
3040
3041 PR c/79116
3042 * array-notation-common.c (cilkplus_extract_an_triplets): Convert
3043 start type to integer_type.
3044
1c70261c
JJ
30452017-01-16 Jakub Jelinek <jakub@redhat.com>
3046
3047 PR driver/49726
3048 * c.opt (gen-decls): Add Driver flag.
3049
1ddca3f3
PC
30502017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
3051
3052 Revert:
3053 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
3054
3055 PR c++/71737
3056 * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
3057
7d2f3f1d
PC
30582017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
3059
3060 PR c++/71737
3061 * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
3062
bce6f760
MS
30632017-01-12 Martin Sebor <msebor@redhat.com>
3064
3065 (-Wformat-overflow): ...to this.
3066
bf5fbf46
MS
30672017-01-11 Martin Sebor <msebor@redhat.com>
3068
3069 PR c/78768
3070 * c.opt (-Walloca-larger-than, -Wformat-length, -Wformat-truncation):
3071 Also enable for LTO.
3072
e363df3f
JM
30732017-01-10 Jason Merrill <jason@redhat.com>
3074
3075 Implement P0195R2, C++17 variadic using.
3076 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_variadic_using.
3077
bd2c6270
JJ
30782017-01-09 Jakub Jelinek <jakub@redhat.com>
3079
3080 PR translation/79019
3081 PR translation/79020
3082 * c.opt (Wnormalized=): Fix typo in description.
3083
efcc8d38
MS
30842017-01-08 Martin Sebor <msebor@redhat.com>
3085
3086 PR middle-end/77708
3087 * c.opt (-Wformat-truncation): New option.
3088
ab20d992 30892017-01-06 Alexandre Oliva <aoliva@redhat.com>
435f3f7a
AO
3090
3091 * c-pretty-print.c (pp_c_tree_decl_identifier): Convert 16-bit
3092 value to unsigned short to fit in 4 hex digits without
3093 warnings.
3094
4e89adf9
EB
30952017-01-05 Eric Botcazou <ebotcazou@adacore.com>
3096
3097 * c.opt (fsso-struct): Add 'native' value.
3098
cd445b54
ML
30992017-01-05 Martin Liska <mliska@suse.cz>
3100
3101 PR pch/78970
3102 * c-opts.c (c_common_post_options): Reject '-' filename for a precompiled
3103 header.
3104
a9342885
MP
31052017-01-04 Marek Polacek <polacek@redhat.com>
3106
3107 PR c++/64767
3108 * c.opt (Wpointer-compare): New option.
3109
fc73e60c
JJ
31102017-01-04 Jakub Jelinek <jakub@redhat.com>
3111
3112 PR driver/78957
3113 * c.opt (fsso-struct=): Add RejectNegative.
3114
cbe34bb5
JJ
31152017-01-01 Jakub Jelinek <jakub@redhat.com>
3116
3117 Update copyright years.
3118
d4a6c0ea
ML
31192016-12-29 Martin Liska <mliska@suse.cz>
3120
3121 PR c/78933
3122 * c.opt (strong-eval-order): Add RejectNegative keyword.
3123
67a5ad7c
JM
31242016-12-22 Jason Merrill <jason@redhat.com>
3125
3126 Implement P0522R0, matching of template template arguments.
3127 * c-cppbuiltin.c (c_cpp_builtins): Define
3128 __cpp_template_template_args.
3129
0dba7960
JJ
31302016-12-21 Jakub Jelinek <jakub@redhat.com>
3131
3132 PR bootstrap/78817
3133 * c-common.c (struct nonnull_arg_ctx): New type.
3134 (check_function_nonnull): Return bool instead of void. Use
3135 nonnull_arg_ctx as context rather than just location_t.
3136 (check_nonnull_arg): Adjust for the new context type, set
3137 warned_p to true if a warning has been diagnosed.
3138 (check_function_arguments): Return bool instead of void.
3139 * c-common.h (check_function_arguments): Adjust prototype.
3140
31bfc9b9
JM
31412016-12-21 Jason Merrill <jason@redhat.com>
3142
3143 * c.opt (-fnew-ttp-matching): New flag.
3144 * c-opts.c (c_common_post_options): Default on if -std=c++1z.
3145
629b3d75
MJ
31462016-12-14 Martin Jambor <mjambor@suse.cz>
3147
3148 * c-omp.c: Include omp-general.h instead of omp-low.h.
3149 (c_finish_oacc_wait): Adjusted call to find_omp_clause to use its new
3150 name.
3151
474da67e
MS
31522016-12-14 Martin Sebor <msebor@redhat.com>
3153
3154 PR c/17308
3155 * c-common.c (check_nonnull_arg): Disable when optimization
3156 is enabled.
3157
fe366b87
MP
31582016-12-12 Marek Polacek <polacek@redhat.com>
3159
3160 PR c++/78647
3161 * c-common.c (attribute_fallthrough_p): Return false for
3162 error_mark_node.
3163
8bd9f164
MS
31642016-12-08 Martin Sebor <msebor@redhat.com>
3165
3166 PR c/78284
3167 * c.opt (-Walloc-zero, -Walloc-size-larger-than): New options.
3168
060162e0
MS
31692016-12-08 Martin Sebor <msebor@redhat.com>
3170
3171 PR c/78165
92a285c1
ML
3172 * c-pretty-print (pp_c_integer_constant): Avoid formatting type
3173 suffix.
060162e0 3174
ee92e7ba
MS
31752016-12-07 Martin Sebor <msebor@redhat.com>
3176
3177 PR c/53562
3178 PR middle-end/77784
3179 PR middle-end/78149
3180 PR middle-end/78138
3181 * c.opt (-Wstringop-overflow): New option.
3182
84b0769e
MO
31832016-12-02 Maxim Ostapenko <m.ostapenko@samsung.com>
3184
3185 * c-attribs.c (asan odr indicator): New attribute.
3186 (handle_asan_odr_indicator_attribute): New function.
3187
7fa6a965
PK
31882016-11-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3189
3190 * c-common.c (c_common_nodes_and_builtins): Remove initialization of
3191 ptrdiff_type_node;
3192
56d8ffc1
JG
31932016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3194
3195 * c-common.c (excess_precision_mode_join): New.
3196 (c_ts18661_flt_eval_method): New.
3197 (c_c11_flt_eval_method): Likewise.
3198 (c_flt_eval_method): Likewise.
3199 * c-common.h (excess_precision_mode_join): New.
3200 (c_flt_eval_method): Likewise.
3201 * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): New.
3202 (cpp_iec_559_value): Call it.
3203 (c_cpp_builtins): Modify logic for __LIBGCC_*_EXCESS_PRECISION__,
3204 call c_flt_eval_method to set __FLT_EVAL_METHOD__ and
3205 __FLT_EVAL_METHOD_TS_18661_3__.
3206
04f0fcf7
JG
32072016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3208
3209 * c-opts.c (c_common_post_options): Add logic to handle the default
3210 case for -fpermitted-flt-eval-methods.
3211
fb2675cb
PB
32122016-11-23 Paolo Bonzini <bonzini@gnu.org>
3213
3214 * c.opt (Wexpansion-to-defined): New.
3215
ec1c5694
JJ
32162016-11-23 Jakub Jelinek <jakub@redhat.com>
3217
3218 PR target/78451
3219 * c-pragma.c (handle_pragma_target): Don't replace
3220 current_target_pragma, but chainon the new args to the current one.
3221
730c9e75
NS
32222016-11-22 Nathan Sidwell <nathan@acm.org>
3223
3224 * array-notation-common.c (cilkplus_extract_an_trplets): Fix
cacd29be 3225 indentation and formatting.
730c9e75 3226
89990732
MS
32272016-11-21 Martin Sebor <msebor@redhat.com>
3228
3229 * c.opt (-fprintf-return-value): Enable by default.
3230
48330c93
BE
32312016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
3232
3233 PR c++/71973
3234 * c.opt (-Wbuiltin-declaration-mismatch): New warning.
3235 * c-common.c (c_common_nodes_and_builtins): Initialize
3236 const_tm_ptr_type_node.
3237
0d939c95
MP
32382016-11-16 Marek Polacek <polacek@redhat.com>
3239
3240 PR c/78285
3241 * c-common.c (c_add_case_label): Turn error_at calls into inform.
3242
8e745a17
JJ
32432016-11-14 Jakub Jelinek <jakub@redhat.com>
3244
3245 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_structured_bindings.
3246
1ee62b92 32472016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
8e745a17
JJ
3248 Richard Biener <rguenther@suse.de>
3249
3250 * c-common.h (c_common_resword): Add RID_GIMPLE, RID_PHI types.
3251 * c-common.h (enum rid): Add RID_GIMPLE, RID_PHI.
3252 * c.opt (fgimple): New option.
1ee62b92 3253
22b15758
UB
32542016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3255
3256 PR c/35503
3257 * c-common.h (warn_for_restrict): Declare.
3258 * c-warn.c: Include gcc-rich-location.h.
3259 (warn_for_restrict): New function.
3260 * c-format.c (gcc_tdiag_char_table): Add entry for "Z" specifier.
3261 (gcc_cdiag_char_table): Likewise.
3262 (gcc_cxxdiag_char_table): Likewise.
3263 * c.opt (Wrestrict): New option.
3264
4be719cd
EB
32652016-11-13 Eric Botcazou <ebotcazou@adacore.com>
3266
3267 * c-ada-spec.c (print_ada_declaration): For typedef declarations, look
3268 for nested types only if the type is a record or union and dump SLOC.
3269
4a826ca6
JM
32702016-11-09 Jason Merrill <jason@redhat.com>
3271
3272 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_template_auto.
3273
2e955d50
JJ
32742016-11-09 Jakub Jelinek <jakub@redhat.com>
3275
3276 * c-ubsan.c (ubsan_instrument_shift): Handle split
3277 -fsanitize=shift-base and -fsanitize=shift-exponent.
3278
51dc6603
JM
32792016-11-07 Jason Merrill <jason@redhat.com>
3280
3281 * c.opt (Wc++1z-compat): New.
3282 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_noexcept_function_type.
3283
6dc4a604
ML
32842016-11-07 Martin Liska <mliska@suse.cz>
3285
3286 * c-warn.c (warn_for_unused_label): Save all labels used
3287 in goto or in &label.
3288
b302001e
JM
32892016-11-03 Jason Merrill <jason@redhat.com>
3290
3291 * c-cppbuiltin.c (c_cpp_builtins): Correct
3292 __cpp_inheriting_constructors.
3293
31f7f784
JM
32942016-11-01 Jason Merrill <jason@redhat.com>
3295
2bc78e3c
JM
3296 * c-cppbuiltin.c (c_cpp_builtins): Update
3297 __cpp_inheriting_constructors.
3298
31f7f784
JM
3299 * c.opt (-fnew-inheriting-ctors): New.
3300 * c-opts.c: Default to on for ABI 11+.
3301
dcb466ec
JJ
33022016-10-31 Jakub Jelinek <jakub@redhat.com>
3303
3304 PR c++/77948
3305 * c.opt (fext-numeric-literals): Add Var and Init.
3306 * c-opts.c (c_common_handle_option): Don't clear
3307 cpp_opts->ext_numeric_literals for -std=c++{11,14,1z}.
3308 (c_common_post_options): Clear it here if not set
3309 explicitly.
3310
52e1b91e
AH
33112016-10-28 Aldy Hernandez <aldyh@redhat.com>
3312
3313 PR debug/77773
3314 * c-pretty-print.c (simple_type_specifier): Do not dereference `t'
3315 if NULL.
3316
e16f1cc7
JJ
33172016-10-25 Jakub Jelinek <jakub@redhat.com>
3318
3319 * c-common.h (enum rid): Add RID_BUILTIN_LAUNDER.
3320 * c-common.c (c_common_reswords): Add __builtin_launder.
3321
f8348061
BE
33222016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
3323
3324 * c-common.c (c_common_truthvalue_conversion): Warn for
3325 multiplications in boolean context. Fix the quoting of '<<' and '<'
3326 in the shift warning.
3327
eff89e01
BE
33282016-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
3329
3330 * c-common.c (c_common_truthvalue_conversion): Fix the comment.
3331
24bc7bf4
JM
33322016-10-20 Jason Merrill <jason@redhat.com>
3333
3334 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_concepts value.
3335
4c712374
BE
33362016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
3337
3338 * c-common.c (c_common_truthvalue_conversion): Warn only for signed
3339 integer shift ops in boolean context.
3340
33412016-10-18 Aldy Hernandez <aldyh@redhat.com>
adc577c5
AH
3342
3343 * c.opt (Walloca): New.
3344 (Walloca-larger-than=): New.
3345 (Wvla-larger-than=): New.
3346
8fa18c06
MP
33472016-10-17 Marek Polacek <polacek@redhat.com>
3348
3349 * c-warn.c (find_array_ref_with_const_idx_r): Remove parameter names.
3350 Return immediately when finding a match.
3351 (warn_tautological_cmp): Remove a boolean variable that is no longer
3352 needed.
3353
b12b1915
MP
33542016-10-17 Marek Polacek <polacek@redhat.com>
3355
3356 * c-attribs.c: New file.
3357 * c-common.c: Move attributes handling to c-attribs.c.
3358 (get_nonnull_operand): No longer static.
3359 * c-common.h: Move the declarations from c-attribs.c to its own section.
3360
2045acd9
JM
33612016-10-14 Jason Merrill <jason@redhat.com>
3362
3363 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_aggregate_bases
3364 and __cpp_deduction_guides.
3365
14a2c9aa
JM
33662016-10-13 Jason Merrill <jason@redhat.com>
3367
3368 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_inline_variables.
3369
4d0cdd0c
TP
33702016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
3371
3372 * c-cppbuiltin.c: Include memmodel.h.
3373 * c-opts.c: Likewise.
3374 * c-pragma.c: Likewise.
3375 * c-warn.c: Likewise.
3376
70f6d5e1
JJ
33772016-10-12 Jakub Jelinek <jakub@redhat.com>
3378
3379 * c.opt (Wextra): Add as C/C++/ObjC/ObjC++ option.
3380 (Wimplicit-fallthrough=): Enable for these languages by -Wextra.
3381 * c-opts.c (sanitize_cpp_opts): Initialize
3382 cpp_opts->cpp_warn_implicit_fallthrough.
3383
78f61294
MP
33842016-10-11 Marek Polacek <polacek@redhat.com>
3385
3386 * c-common.c (warning_candidate_p): Change the return type to bool
3387 and return true/false instead of 1/0.
3388 (vector_mode_valid_p): Likewise.
3389
038b5cc0
MP
33902016-10-11 Marek Polacek <polacek@redhat.com>
3391
3392 * c-common.c (fold_for_warn): No longer static.
3393 (bool_promoted_to_int_p): Likewise.
3394 (c_common_get_narrower): Likewise.
3395 (constant_expression_warning): Move to c-warn.c.
3396 (constant_expression_error): Likewise.
3397 (overflow_warning): Likewise.
3398 (warn_logical_operator): Likewise.
3399 (find_array_ref_with_const_idx_r): Likewise.
3400 (warn_tautological_cmp): Likewise.
3401 (expr_has_boolean_operands_p): Likewise.
3402 (warn_logical_not_parentheses): Likewise.
3403 (warn_if_unused_value): Likewise.
3404 (strict_aliasing_warning): Likewise.
3405 (sizeof_pointer_memaccess_warning): Likewise.
3406 (check_main_parameter_types): Likewise.
3407 (conversion_warning): Likewise.
3408 (warnings_for_convert_and_check): Likewise.
3409 (match_case_to_enum_1): Likewise.
3410 (match_case_to_enum): Likewise.
3411 (c_do_switch_warnings): Likewise.
3412 (warn_for_omitted_condop): Likewise.
3413 (readonly_error): Likewise.
3414 (lvalue_error): Likewise.
3415 (invalid_indirection_error): Likewise.
3416 (warn_array_subscript_with_type_char): Likewise.
3417 (warn_about_parentheses): Likewise.
3418 (warn_for_unused_label): Likewise.
3419 (warn_for_div_by_zero): Likewise.
3420 (warn_for_memset): Likewise.
3421 (warn_for_sign_compare): Likewise.
3422 (do_warn_double_promotion): Likewise.
3423 (do_warn_unused_parameter): Likewise.
3424 (record_locally_defined_typedef): Likewise.
3425 (maybe_record_typedef_use): Likewise.
3426 (maybe_warn_unused_local_typedefs): Likewise.
3427 (maybe_warn_bool_compare): Likewise.
3428 (maybe_warn_shift_overflow): Likewise.
3429 (warn_duplicated_cond_add_or_warn): Likewise.
3430 (diagnose_mismatched_attributes): Likewise.
3431 * c-common.h: Move the declarations from c-warn.c to its own section.
3432 * c-warn.c: New file.
3433
627be19f
JM
34342016-10-08 Jason Merrill <jason@redhat.com>
3435
3436 * c-common.c (c_common_truthvalue_conversion): Don't distribute
3437 into COND_EXPR in C++.
3438
7bad794a
JJ
34392016-10-08 Jakub Jelinek <jakub@redhat.com>
3440
3441 * c-lex.c (c_lex_with_flags) <case CPP_COMMENT>: For CPP_COMMENT
3442 token with PREV_FALLTHROUGH, skip all following CPP_PADDING and
3443 CPP_COMMENT tokens and set add_flags to PREV_FALLTHROUGH afterwards.
3444
be845b04
JJ
34452016-10-07 Jakub Jelinek <jakub@redhat.com>
3446
3447 Implement LWG2296 helper intrinsic
3448 * c-common.h (enum rid): Add RID_ADDRESSOF.
3449 * c-common.c (c_common_reswords): Add __builtin_addressof.
3450
c09c4992
BE
34512016-10-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
3452
3453 PR c++/77700
3454 * c-common.c (c_common_truthvalue_conversion): Warn also for
3455 suspicious enum values in boolean context.
3456
342cfb3e
JJ
34572016-10-06 Jakub Jelinek <jakub@redhat.com>
3458
3459 Implement P0258R2 - helper for C++17
3460 std::has_unique_object_representations trait
3461 * c-common.h (enum rid): Add RID_HAS_UNIQUE_OBJ_REPRESENTATIONS.
3462 * c-common.c (c_common_reswords): Add
3463 __has_unique_object_representations.
3464
2e69f143
JJ
34652016-10-05 Jakub Jelinek <jakub@redhat.com>
3466
3467 PR sanitizer/66343
3468 * c-ubsan.c (ubsan_instrument_return): Don't call
3469 initialize_sanitizer_builtins here.
3470
700fff34
BE
34712016-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
3472
3473 * c-common.c (c_common_truthvalue_conversion): Warn also for suspicious
3474 conditional expression in boolean context when only one arm is
3475 non-boolean.
3476
9563bfcd
JJ
34772016-10-05 Jakub Jelinek <jakub@redhat.com>
3478
04a32443
JJ
3479 PR sanitizer/77823
3480 * c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0
3481 is not integral.
3482
9563bfcd
JJ
3483 * c-common.c (c_common_reswords): Update comment for C++11.
3484
f1644724
JM
34852016-10-04 Jason Merrill <jason@redhat.com>
3486
3487 * c-common.c (make_tree_vector_from_ctor): New.
3488 * c-common.h: Declare it.
3489
5a79befb
JJ
34902016-10-04 Jakub Jelinek <jakub@redhat.com>
3491
3492 * c-cppbuiltin.c (c_cpp_builtins): Don't define
3493 __LIBGCC_JCR_SECTION_NAME__.
3494
1633d3b9
BE
34952016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
3496
3497 * c-common.c (c_common_truthvalue_conversion): Warn for suspicious
3498 left shift in boolean context.
3499
a2c6e7f2
JJ
35002016-09-29 Jakub Jelinek <jakub@redhat.com>
3501
3502 Implement P0001R1 - C++17 removal of register storage class specifier
3503 * c.opt (Wregister): New warning.
3504 * c-opts.c (c_common_post_options): Enable -Wregister by
3505 default for C++17.
3506
75304c87
JG
35072016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
3508
3509 * c-opts.c (c_common_post_options): Remove special case for
3510 TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard
3511 in C++.
3512
bbfac6da
JJ
35132016-09-27 Jakub Jelinek <jakub@redhat.com>
3514
6e39060a
JJ
3515 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for
3516 -std=c++1z.
3517
bbfac6da
JJ
3518 * c-ada-spec.c (print_ada_declaration): Remove break after return.
3519
e73cf9a2
TP
35202016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
3521
3522 * c-common.c: Include memmodel.h.
3523
c6147dc4
MP
35242016-09-26 Marek Polacek <polacek@redhat.com>
3525
3526 * c-lex.c (c_common_has_attribute): Handle attribute fallthrough.
3527
81fea426
MP
35282016-09-26 Marek Polacek <polacek@redhat.com>
3529
3530 PR c/7652
3531 * c-common.c (c_common_attribute_table): Add fallthrough attribute.
3532 (handle_fallthrough_attribute): New function.
3533 (attribute_fallthrough_p): New function.
3534 * c-common.h (attribute_fallthrough_p): Declare.
3535
9a2300e9
MP
35362016-09-24 Marek Polacek <polacek@redhat.com>
3537
3538 PR c/77490
3539 * c.opt (Wbool-operation): New.
3540
a09e9e35
BE
35412016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
3542
3543 * c-common.c (c_common_truthvalue_conversion): Inhibit
3544 Wint-in-bool-context warning with from_macro_definition_at.
3545 Mention the expression will always evaluate to true.
3546
d43b4ccc
MS
35472016-09-21 Martin Sebor <msebor@redhat.com>
3548
3549 PR bootstrap/77676
3550 * c.opt (fprintf-return-value): Temporarily initialize to zero
3551 to unblock bootstrap failures.
3552
2e1c20b1
JJ
35532016-09-21 Jakub Jelinek <jakub@redhat.com>
3554
3555 PR c++/77651
3556 * c.opt (Waligned-new=): Add RejectNegative.
3557 (faligned-new=): Likewise. Spelling fix - change
3558 aligned_new_threshhold to aligned_new_threshold.
3559 * c-cppbuiltin.c (c_cpp_builtins): Change aligned_new_threshhold
3560 to aligned_new_threshold.
3561
88d0c3f0
MS
35622016-09-20 Martin Sebor <msebor@redhat.com>
3563
3564 PR middle-end/49905
3565 * c.opt: Add -Wformat-length and -fprintf-return-value.
3566
144a96e4
BE
35672016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
3568
3569 PR c++/77434
3570 * c.opt (Wint-in-bool-context): New warning.
3571 * c-common.c (c_common_truthvalue_conversion): Warn on integer
3572 constants in boolean context.
3573
63012d9a
JM
35742016-09-19 Joseph Myers <joseph@codesourcery.com>
3575
3576 * c-common.c (max_align_t_align): Also consider alignment of
3577 float128_type_node.
3578
931388ce
JM
35792016-09-15 Jason Merrill <jason@redhat.com>
3580
3581 * c-common.c (check_cxx_fundamental_alignment_constraints): Check
3582 DECL_EXTERNAL.
3583
38711381
JM
35842016-09-14 Jason Merrill <jason@redhat.com>
3585
3586 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
3587 limit FIELD_DECL, either.
3588
e51fbec3
MP
35892016-09-14 Marek Polacek <polacek@redhat.com>
3590
3591 * c-common.c (c_common_truthvalue_conversion): Use false instead of 0.
3592 * c-common.h (build_unary_op): Change nonconvert parameter type to bool.
3593 * c-omp.c (c_finish_omp_atomic): Use false instead of 0.
3594
254830ba
DM
35952016-09-13 David Malcolm <dmalcolm@redhat.com>
3596
3597 * c-common.c (warn_logical_not_parentheses): Replace
3598 rich_location::add_fixit_insert calls with add_fixit_insert_before
3599 and add_fixit_insert_after, eliminating the "next_loc" calculation.
3600
42763690
JM
36012016-09-13 Jason Merrill <jason@redhat.com>
3602 Tom de Vries <tom@codesourcery.com>
3603
3604 PR c++/77427
3605 * c-common.c (set_underlying_type): Don't treat array as builtin type.
3606
9453eee9
JM
36072016-09-13 Jason Merrill <jason@redhat.com>
3608
3609 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
3610 limit types at all.
3611
e96809e3
JM
36122016-09-12 Jason Merrill <jason@redhat.com>
3613
3614 * c-common.c (check_cxx_fundamental_alignment_constraints): Fix
3615 bit/byte confusion, allow large alignment for types.
3616
54dcdb88
BE
36172016-09-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
3618
3619 PR c++/77496
3620 * c-common.c (warn_for_omitted_condop): Also warn for boolean data.
3621
d1463eb9
DM
36222016-09-12 David Malcolm <dmalcolm@redhat.com>
3623
3624 PR c/72858
3625 * c-format.c (argument_parser::check_argument_type): Add params
3626 "type_start" and "conversion_char". Use the former to generate
3627 offset_to_type_start and pass it and conversion_char to
3628 check_format_types.
3629 (check_format_info_main): Capture the start of the type
3630 information as "type_start", and pass it an format_char
3631 to arg_parser.check_argument_type.
3632 (check_format_types): Provide an example in the leading comment.
3633 Add params "offset_to_type_start" and "conversion_char"; pass
3634 them to format_type_warning calls.
3635 (test_get_modifier_for_format_len): Likewise.
3636 (matching_type_p): New function.
3637 (get_format_for_type): Add param "conversion_char" and move
3638 implementation into...
3639 (get_format_for_type_1): ...new function, called twice.
3640 Use new function matching_type_p rather than checking for
3641 TYPE_CANONICAL equality.
3642 (get_corrected_substring): New function.
3643 (format_type_warning): Provide an example in the leading comment.
3644 Add params "offset_to_type_start" and "conversion_char". Replace
3645 call to get_format_for_type with call to get_corrected_substring
3646 and move rejection of hints for widths/precisions there.
3647 (assert_format_for_type_streq): Add param "conversion_char".
3648 (ASSERT_FORMAT_FOR_TYPE_STREQ): Add param CONVERSION_CHAR.
3649 (test_get_format_for_type_printf): Add conversion chars to the
3650 tests, adding coverage for various combinations of integer
3651 vs double conversions, and for preserving octal and hexadecimal
3652 conversions.
3653 (test_get_format_for_type_scanf): Add conversion chars to the
3654 tests.
3655
5b28efbb
TV
36562016-09-10 Tom de Vries <tom@codesourcery.com>
3657
3658 PR C/71602
3659 * c-common.c (build_va_arg): Handle more strict
3660 targetm.canonical_va_list_type. Replace first argument type error with
3661 assert.
3662
3f0177e7
MS
36632016-09-09 Martin Sebor <msebor@redhat.com>
3664
3665 PR c/77520
3666 PR c/77521
3667 * c-format.c (argument_parser::find_format_char_info): Use %qc
3668 format directive unconditionally.
3669
af63ba4b
JM
36702016-09-09 Jason Merrill <jason@redhat.com>
3671
3672 Implement C++17 new of over-aligned types.
3673 * c.opt: Add -faligned-new and -Waligned-new.
3674 * c-common.c (max_align_t_align): Split out from...
3675 (cxx_fundamental_alignment_p): ...here.
3676 * c-common.h: Declare it.
3677 * c-cppbuiltin.c (c_cpp_builtins): Handle aligned new.
3678
c65248cb
JM
36792016-09-09 Joseph Myers <joseph@codesourcery.com>
3680
3681 * c-cppbuiltin.c (builtin_define_type_width): New function.
3682 (builtin_define_stdint_macros, c_cpp_builtins): Define type width
3683 macros.
3684
e5106e27
DM
36852016-09-07 David Malcolm <dmalcolm@redhat.com>
3686
3687 * c-common.c (get_cpp_ttype_from_string_type): Handle being passed
3688 a POINTER_TYPE.
3689 (substring_loc::get_location): Move to substring-locations.c,
3690 keeping implementation as...
3691 (c_get_substring_location): New function, from the above, reworked
3692 to use accessors rather than member lookup.
3693 * c-common.h (class substring_loc): Move to substring-locations.h,
3694 replacing with a forward decl.
3695 (c_get_substring_location): New decl.
3696 * c-format.c: Include "substring-locations.h".
3697 (format_warning_va): Move to substring-locations.c.
3698 (format_warning_at_substring): Likewise.
3699
ab20d992 37002016-09-06 Martin Sebor <msebor@redhat.com>
a42e7952
MS
3701
3702 PR c/77336
3703 * c-format.c (check_function_format): Avoid issuing warnings for
3704 functions unless they call format functions with non-constant
3705 format strings.
3706
b772a565
RB
37072016-09-06 Richard Biener <rguenther@suse.de>
3708
3709 PR c/77450
3710 * c-common.c (c_common_mark_addressable_vec): Handle
3711 COMPOUND_LITERAL_EXPR.
3712
25ff5dd3
MP
37132016-09-05 Marek Polacek <polacek@redhat.com>
3714
3715 PR c/77423
3716 * c-common.c (bool_promoted_to_int_p): New function.
3717 (expr_has_boolean_operands_p): New function.
3718 (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p.
3719 (maybe_warn_bool_compare): Use bool_promoted_to_int_p.
3720
21234eb5
TV
37212016-09-04 Tom de Vries <tom@codesourcery.com>
3722
3723 revert:
3724 2016-08-29 Tom de Vries <tom@codesourcery.com>
3725
3726 * c-common.c (build_va_arg): Replace first argument type error
3727 with assert.
3728
9dc5773f
JJ
37292016-09-02 Jakub Jelinek <jakub@redhat.com>
3730
3731 PR c/65467
3732 * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions.
3733 (c_finish_omp_for): Reject _Atomic qualified iterators.
3734
37352016-09-01 Martin Sebor <msebor@redhat.com>
3d7b83b6
MS
3736
3737 * c-ada-spec.c (dump_ada_function_declaration): Increase buffer
3738 size to guarantee it fits the output of the formatted function
3739 regardless of its arguments.
3740
295844f6
MP
37412016-09-01 Marek Polacek <polacek@redhat.com>
3742
3743 PR c/7652
3744 * c-common.c (resolve_overloaded_builtin): Fix formatting. Add
3745 FALLTHRU comments.
3746
3d06b6f2
MP
37472016-08-29 Marek Polacek <polacek@redhat.com>
3748
3749 PR c/77292
3750 * c-common.c (warn_logical_not_parentheses): Don't warn for
3751 a comparison or a logical operator.
3752
34cedad5
TV
37532016-08-29 Tom de Vries <tom@codesourcery.com>
3754
3755 * c-common.c (build_va_arg): Fix type comparison assert.
3756
f162d717
TV
37572016-08-29 Tom de Vries <tom@codesourcery.com>
3758
3759 * c-common.c (build_va_arg): Replace first argument type error
3760 with assert.
3761
ba9bbd6f
TV
37622016-08-29 Tom de Vries <tom@codesourcery.com>
3763
3764 PR c/77398
3765 * c-common.c (build_va_arg): Add first argument error. Build va_arg
3766 with error_mark_node as va_list instead of with illegal va_list.
3767
ebef225f
MP
37682016-08-25 Marek Polacek <polacek@redhat.com>
3769 David Malcolm <dmalcolm@redhat.com>
3770
3771 * c-common.c (warn_logical_not_parentheses): Print fixit hints.
3772 * c-common.h (warn_logical_not_parentheses): Update declaration.
3773
b00e6e75
MP
37742016-08-22 Marek Polacek <polacek@redhat.com>
3775
3776 PR c++/77321
3777 * c-common.c (warn_for_memset): Check type for null.
3778
6dc198e3
JM
37792016-08-22 Joseph Myers <joseph@codesourcery.com>
3780
14ec014e 3781 * c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and
6dc198e3
JM
3782 _FloatNx types for suffixes for built-in functions.
3783
c65699ef
JM
37842016-08-19 Joseph Myers <joseph@codesourcery.com>
3785
3786 PR c/32187
3787 * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32)
3788 (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X)
3789 (RID_FLOAT128X): New enum rid values.
3790 (CASE_RID_FLOATN_NX): New macro.
3791 * c-common.c (c_common_reswords): Add _FloatN and _FloatNx
3792 keywords.
3793 (c_common_type_for_mode): Check for _FloatN and _FloatNx and
3794 corresponding complex types.
3795 (c_common_nodes_and_builtins): For non-C++, register _FloatN and
3796 _FloatNx and corresponding complex types.
3797 (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX.
3798 * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN
3799 and _FloatNx types for the widest type for determining
3800 DECIMAL_DIG. Define __LDBL_DECIMAL_DIG__ as well as
3801 __DECIMAL_DIG__ for long double. Handle FMA_SUFFIX being NULL.
3802 (c_cpp_builtins): Call builtin_define_float_constants for _FloatN
3803 and _FloatNx types.
3804 * c-lex.c (interpret_float): Handle _FloatN and _FloatNx
3805 constants.
3806 * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and
3807 _FloatNx types.
3808
cc015f3a
DM
38092016-08-18 David Malcolm <dmalcolm@redhat.com>
3810
3811 * c-opts.c (c_diagnostic_finalizer): Update for change to
3812 diagnostic_show_locus.
3813
cb18fd07
DM
38142016-08-18 David Malcolm <dmalcolm@redhat.com>
3815
3816 * c-common.c: Include "spellcheck.h".
3817 (cb_get_suggestion): New function.
3818 * c-common.h (cb_get_suggestion): New decl.
3819 * c-lex.c (init_c_lex): Initialize cb->get_suggestion to
3820 cb_get_suggestion.
3821
a76989dc
MP
38222016-08-18 Marek Polacek <polacek@redhat.com>
3823
3824 PR c/71514
3825 * c-common.c (get_atomic_generic_size): Disallow pointer-to-function
3826 and pointer-to-VLA.
3827
65e736c0
DM
38282016-08-16 David Malcolm <dmalcolm@redhat.com>
3829
3830 PR c/72857
3831 * c-common.c (substring_loc::get_range): Rename to...
3832 (substring_loc::get_location): ...this, converting param from a
3833 source_range * to a location_t *. Call
3834 get_source_location_for_substring rather than
3835 get_source_range_for_substring, and pass in m_caret_idx.
3836 * c-common.h (substring_loc::substring_loc): Add param "caret_idx".
3837 (substring_loc::get_range): Replace with...
3838 (substring_loc::get_location): ...this.
3839 (substring_loc::set_caret_index): New method.
3840 (substring_loc): Add field m_caret_idx.
3841 * c-format.c (format_warning_va): Update for above changes.
3842 Rename local "substring_loc" to "fmt_substring_loc" to avoid
3843 clashing with type name.
3844 (format_warning_at_char): Add caret_idx param to substring_loc ctor.
3845 (check_argument_type): Likewise.
3846 (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc"
3847 Use a copy when emitting warnings, setting the caret index from TYPE.
3848
7e1dde14 38492016-08-16 Eric Botcazou <ebotcazou@adacore.com>
8e745a17 3850 Arnaud Charlet <charlet@adacore.com>
7e1dde14
EB
3851
3852 * c-ada-spec.c (dump_number): New function.
3853 (handle_escape_character): Likewise.
3854 (print_ada_macros): Add handling of constant integers and strings.
3855
191816a3
MP
38562016-08-12 Marek Polacek <polacek@redhat.com>
3857
3858 PR c/7652
3859 * c-common.c (scalar_to_vector): Adjust fall through comment.
3860 * c-opts.c (c_common_handle_option): Likewise.
3861 * c-pragma.c (handle_pragma_pack): Add FALLTHRU.
3862 * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust
3863 fall through comment.
3864 * cilk.c (extract_free_variables): Add FALLTHRU.
3865
452df4a4
JM
38662016-08-10 Jason Merrill <jason@redhat.com>
3867
3868 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
3869
f3365c12
JM
38702016-08-09 Jason Merrill <jason@redhat.com>
3871
3872 * c-common.c (c_common_attribute_table): vector_size affects type
3873 identity.
3874
f0bc3323
MP
38752016-08-09 Marek Polacek <polacek@redhat.com>
3876
3877 PR c/7652
3878 * c-ada-spec.c (dump_generic_ada_node): Add return.
3879
98e5a19a
JM
38802016-08-09 Jason Merrill <jason@redhat.com>
3881
3882 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for
3883 C++17 constexpr lambdas.
3884
895aa8e1
DM
38852016-08-08 David Malcolm <dmalcolm@redhat.com>
3886
3887 PR c/64955
3888 * c-common.h (selftest::c_format_c_tests): New declaration.
3889 (selftest::run_c_tests): New declaration.
3890 * c-format.c: Include "selftest.h.
3891 (format_warning_va): Add param "corrected_substring" and use
3892 it to add a replacement fix-it hint.
3893 (format_warning_at_substring): Likewise.
3894 (format_warning_at_char): Update for new param of
3895 format_warning_va.
3896 (argument_parser::check_argument_type): Pass "fki" to
3897 check_format_types.
3898 (check_format_types): Add param "fki" and pass it to
3899 format_type_warning.
3900 (deref_n_times): New function.
3901 (get_modifier_for_format_len): New function.
3902 (selftest::test_get_modifier_for_format_len): New function.
3903 (get_format_for_type): New function.
3904 (format_type_warning): Add param "fki" and use it to attempt
3905 to provide hints for argument types when calling
3906 format_warning_at_substring.
3907 (selftest::get_info): New function.
3908 (selftest::assert_format_for_type_streq): New function.
3909 (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro.
3910 (selftest::test_get_format_for_type_printf): New function.
3911 (selftest::test_get_format_for_type_scanf): New function.
3912 (selftest::c_format_c_tests): New function.
3913
e52ed3fe
DM
39142016-08-08 David Malcolm <dmalcolm@redhat.com>
3915
3916 PR c/52952
3917 * c-format.c: Include "diagnostic.h".
3918 (location_column_from_byte_offset): Delete.
3919 (location_from_offset): Delete.
3920 (format_warning_va): New function.
3921 (format_warning_at_substring): New function.
3922 (format_warning_at_char): New function.
3923 (check_format_arg): Capture location of format_tree and pass to
3924 check_format_info_main.
3925 (argument_parser): Add fields "start_of_this_format" and
3926 "format_string_cst".
3927 (flag_chars_t::validate): Add param "format_string_cst". Convert
3928 warning_at call using location_from_offset to call to
3929 format_warning_at_char.
3930 (argument_parser::argument_parser): Add param "format_string_cst_"
3931 and use use it to initialize field "format_string_cst".
3932 Initialize new field "start_of_this_format".
3933 (argument_parser::read_format_flags): Convert warning_at call
3934 using location_from_offset to a call to format_warning_at_char.
3935 (argument_parser::read_any_format_left_precision): Likewise.
3936 (argument_parser::read_any_format_precision): Likewise.
3937 (argument_parser::read_any_other_modifier): Likewise.
3938 (argument_parser::find_format_char_info): Likewise, in three places.
3939 (argument_parser::parse_any_scan_set): Likewise, in one place.
3940 (argument_parser::handle_conversions): Likewise, in two places.
3941 (argument_parser::check_argument_type): Add param "fmt_param_loc"
3942 and use it to make a substring_loc. Pass the latter to
3943 check_format_types.
3944 (check_format_info_main): Add params "fmt_param_loc" and
3945 "format_string_cst". Convert warning_at calls using
3946 location_from_offset to calls to format_warning_at_char. Pass the
3947 new params to the arg_parser ctor. Pass "format_string_cst" to
3948 flag_chars.validate. Pass "fmt_param_loc" to
3949 arg_parser.check_argument_type.
3950 (check_format_types): Convert first param from a location_t
3951 to a const substring_loc & and rename to "fmt_loc". Attempt
3952 to extract the range of the relevant parameter and pass it
3953 to format_type_warning.
3954 (format_type_warning): Convert first param from a location_t
3955 to a const substring_loc & and rename to "fmt_loc". Add
3956 params "param_range" and "type". Replace calls to warning_at
3957 with calls to format_warning_at_substring.
3958
1c4d457e
DM
39592016-08-08 David Malcolm <dmalcolm@redhat.com>
3960
3961 * c-format.c (class flag_chars_t): New class.
3962 (struct length_modifier): New struct.
3963 (class argument_parser): New class.
3964 (flag_chars_t::flag_chars_t): New ctor.
3965 (flag_chars_t::has_char_p): New method.
3966 (flag_chars_t::add_char): New method.
3967 (flag_chars_t::validate): New method.
3968 (flag_chars_t::get_alloc_flag): New method.
3969 (flag_chars_t::assignment_suppression_p): New method.
3970 (argument_parser::argument_parser): New ctor.
3971 (argument_parser::read_any_dollar): New method.
3972 (argument_parser::read_format_flags): New method.
3973 (argument_parser::read_any_format_width): New method.
3974 (argument_parser::read_any_format_left_precision): New method.
3975 (argument_parser::read_any_format_precision): New method.
3976 (argument_parser::handle_alloc_chars): New method.
3977 (argument_parser::read_any_length_modifier): New method.
3978 (argument_parser::read_any_other_modifier): New method.
3979 (argument_parser::find_format_char_info): New method.
3980 (argument_parser::validate_flag_pairs): New method.
3981 (argument_parser::give_y2k_warnings): New method.
3982 (argument_parser::parse_any_scan_set): New method.
3983 (argument_parser::handle_conversions): New method.
3984 (argument_parser::check_argument_type): New method.
3985 (check_format_info_main): Introduce classes argument_parser
3986 and flag_chars_t, moving the code within the loop into methods
3987 of these classes. Make various locals "const".
3988
88fa5555
DM
39892016-08-05 David Malcolm <dmalcolm@redhat.com>
3990
3991 * c-common.c: Include "substring-locations.h".
3992 (get_cpp_ttype_from_string_type): New function.
3993 (g_string_concat_db): New global.
3994 (substring_loc::get_range): New method.
3995 * c-common.h (g_string_concat_db): New declaration.
3996 (class substring_loc): New class.
3997 * c-lex.c (lex_string): When concatenating strings, capture the
3998 locations of all tokens using a new obstack, and record the
3999 concatenation locations within g_string_concat_db.
4000 * c-opts.c (c_common_init_options): Construct g_string_concat_db
4001 on the ggc-heap.
4002
78169471
MP
40032016-07-29 Marek Polacek <polacek@redhat.com>
4004
638fc14f
MP
4005 PR c/71926
4006 * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the
4007 parentheses warning.
4008
78169471
MP
4009 PR c/71574
4010 * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL.
4011
1225d6b1
ML
40122016-07-28 Martin Liska <mliska@suse.cz>
4013
4014 PR gcov-profile/68025
4015 * c-common.c (handle_no_profile_instrument_function_attribute):
4016
ec1e2a40
BE
40172016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
4018
4019 * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of
4020 BITS_PER_UNIT_LOG.
4021
5ec2cd9f
JM
40222016-07-25 Jason Merrill <jason@redhat.com>
4023
4024 PR c++/65970
4025 * c.opt (fconstexpr-loop-limit): New.
4026
9dc5773f 40272016-07-22 Martin Sebor <msebor@redhat.com>
2e6b45af
MS
4028
4029 PR c++/71675
4030 * c-common.c (resolve_overloaded_builtin): Avoid converting
4031 __atomic_compare_exchange_n return type to that of what its
4032 first argument points to.
4033
e3fe09c1
UB
40342016-07-22 Uros Bizjak <ubizjak@gmail.com>
4035
4036 * c-common.c: Use HOST_WIDE_INT_M1U instead of
4037 ~(unsigned HOST_WIDE_INT) 0.
4038
bc91c436
ML
40392016-07-22 Martin Liska <mliska@suse.cz>
4040
4041 PR gcov-profile/69028
4042 PR gcov-profile/62047
4043 * cilk.c (create_cilk_helper_decl): Set location of a new decl
4044 to the current_function_decl.
4045
451dcc66
JM
40462016-07-21 Jason Merrill <jason@redhat.com>
4047
4048 PR c++/65168
4049 * c-common.c (c_common_truthvalue_conversion): Check
4050 c_inhibit_evaluation_warnings for warning about address of
4051 reference.
4052
de6a69ee
DM
40532016-07-20 David Malcolm <dmalcolm@redhat.com>
4054
4055 * c-common.h (lookup_name_fuzzy): Convert return type from tree to
4056 const char *.
4057
d022c55a
JM
40582016-07-15 Jason Merrill <jason@redhat.com>
4059
4060 * c-opts.c (c_common_post_options): Update -fabi-version default to 11.
4061
ddbbcb19
JJ
40622016-07-15 Jakub Jelinek <jakub@redhat.com>
4063
4064 PR c/71858
4065 * c-common.h (enum lookup_name_fuzzy_kind): Add
4066 FUZZY_LOOKUP_FUNCTION_NAME.
4067
d0cf395a
JM
40682016-07-08 Jason Merrill <jason@redhat.com>
4069
4070 P0145: Refining Expression Order for C++.
4071 * c.opts (-fargs-in-order): Rename to -fstrong-eval-order.
4072 * c-opts.c: Adjust.
4073
98d44e93
MT
40742016-07-05 Markus Trippelsdorf <markus@trippelsdorf.de>
4075
4076 PR c++/71214
4077 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
4078
f9d8d994
TS
40792016-06-29 Thomas Schwinge <thomas@codesourcery.com>
4080
4081 * c-pragma.h (enum pragma_kind): Rename
4082 PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE. Adjust all
4083 users.
4084
4aa83879
RB
40852016-06-29 Richard Biener <rguenther@suse.de>
4086
4087 PR middle-end/71002
4088 * c-common.c (c_common_get_alias_set): Remove union type punning case.
4089
a25bd9e6
JM
40902016-06-24 Jason Merrill <jason@redhat.com>
4091
4092 P0145R2: Refining Expression Order for C++.
4093 * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of
4094 MODIFY_EXPR.
4095
a86451b9
JJ
40962016-06-24 Jakub Jelinek <jakub@redhat.com>
4097
4098 * c-common.c (check_builtin_function_arguments): Require last
4099 argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type.
4100 Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW
4101 if the last argument is pointer to enumerated or boolean type.
4102
1a4f11c8
DM
41032016-06-22 David Malcolm <dmalcolm@redhat.com>
4104
4105 PR c/70339
4106 * c-common.h (enum lookup_name_fuzzy_kind): New enum.
4107 (lookup_name_fuzzy): New prototype.
4108
fe55692c
JDA
41092016-06-21 John David Anglin <danglin@gcc.gnu.org>
4110
4111 * c-common.c (get_source_date_epoch): Use int64_t instead of long long.
4112
4eb24e01
JM
41132016-06-14 Jason Merrill <jason@redhat.com>
4114
4115 P0145R2: Refining Expression Order for C++.
4116 * c.opt (fargs-in-order): New.
4117 * c-opts.c (c_common_post_options): Adjust flag_args_in_order.
4118
ef7cf206
JJ
41192016-06-13 Jakub Jelinek <jakub@redhat.com>
4120
0dda258b
JJ
4121 PR sanitizer/71498
4122 * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
4123 all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
4124
ef7cf206
JJ
4125 PR preprocessor/71183
4126 * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch
4127 to cb_get_source_date_epoch.
4128
50b15873
JJ
41292016-06-10 Jakub Jelinek <jakub@redhat.com>
4130
4131 PR c/68657
4132 * c.opt (Wpsabi): Add Warning flag.
4133
4d926e34
MS
41342016-06-10 Martin Sebor <msebor@redhat.com>
4135
4136 PR c/71392
14ec014e 4137 * c-common.c (handle_nonnull_attribute): Accept
4d926e34
MS
4138 the nonnull attribute in type-generic builtins.
4139
e01b4e16
MS
41402016-06-09 Martin Sebor <msebor@redhat.com>
4141
4142 PR c/70883
4143 * c-common.c (builtin_function_validate_nargs): Make text of error
4144 message consistent with others like it.
4145
44a845ca
MS
41462016-06-08 Martin Sebor <msebor@redhat.com>
4147 Jakub Jelinek <jakub@redhat.com>
4148
4149 PR c++/70507
4150 PR c/68120
4151 * c-common.c (check_builtin_function_arguments): Handle
4152 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
4153
a80a7051
RB
41542016-06-08 Richard Biener <rguenther@suse.de>
4155
4156 * c-common.c (parse_optimize_options): Improve diagnostic messages.
4157
bfd67b47
RB
41582016-06-07 Richard Biener <rguenther@suse.de>
4159
4160 PR c/61564
4161 * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
4162 options and warn about others.
4163
15c98b2e
ES
41642016-06-01 Eduard Sanou <dhole@openmailbox.org>
4165
4166 * c-common.c (get_source_date_epoch): Rename to
4167 cb_get_source_date_epoch.
4168 * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
4169 message when the parsing fails. Use error_at instead of fatal_error.
4170 * c-common.h (get_source_date_epoch): Rename to
4171 cb_get_source_date_epoch.
4172 * c-common.h (cb_get_source_date_epoch): Prototype.
4173 * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
4174 * c-common.h (c_omp_region_type): Remove trailing comma.
4175 * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
4176 * c-lex.c (c_lex_with_flags): Remove initialization of
4177 pfile->source_date_epoch.
4178
00631022
JJ
41792016-05-30 Jakub Jelinek <jakub@redhat.com>
4180
4181 PR c++/71349
4182 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
4183 C_OMP_CLAUSE_SPLIT_TARGET. Put OMP_CLAUSE_NOWAIT to
4184 C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
4185 instead of C_OMP_CLAUSE_SPLIT_FOR.
4186
f17a223d
RB
41872016-05-24 Richard Biener <rguenther@suse.de>
4188
4189 PR middle-end/70434
4190 PR c/69504
4191 * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
4192 (convert_vector_to_array_for_subscript): ... this.
4193 * c-common.c (convert_vector_to_pointer_for_subscript): Use a
4194 VIEW_CONVERT_EXPR to an array type. Rename to ...
4195 (convert_vector_to_array_for_subscript): ... this.
4196
4f2e1536
MP
41972016-05-12 Marek Polacek <polacek@redhat.com>
4198
4199 PR c/70756
4200 * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
4201 size_in_bytes and pass LOC to it.
4202
d6e83a8d
MM
42032016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
4204
4205 PR c/43651
4206 * c.opt (Wduplicate-decl-specifier): New option.
4207
5c3a10fb
MP
42082016-05-11 Marek Polacek <polacek@redhat.com>
4209
4210 PR c++/71024
4211 * c-common.c (diagnose_mismatched_attributes): New function.
4212 * c-common.h (diagnose_mismatched_attributes): Declare.
4213
deef7113
MP
42142016-05-04 Marek Polacek <polacek@redhat.com>
4215
4216 * c.opt (Wdangling-else): New option.
4217
79ce98bc
MP
42182016-05-03 Marek Polacek <polacek@redhat.com>
4219
4220 PR c/70859
4221 * c-common.c (builtin_function_validate_nargs): Add location
4222 parameter. Use it.
4223 (check_builtin_function_arguments): Add location and arguments
4224 parameters. Use them.
4225 * c-common.h (check_builtin_function_arguments): Update declaration.
4226
381cdae4
RB
42272016-05-03 Richard Biener <rguenther@suse.de>
4228
4229 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
4230 allow call args to gimplify to SSA names.
4231
1d793c34
MP
42322016-05-03 Marek Polacek <polacek@redhat.com>
4233
4234 * c-common.h (enum c_omp_region_type): Remove stray comma.
4235
77886428
CP
42362016-05-02 Cesar Philippidis <cesar@codesourcery.com>
4237
4238 * c-common.h (enum c_omp_region_type): Define.
4239
697e0b28
RS
42402016-05-02 Richard Sandiford <richard.sandiford@arm.com>
4241
4242 * c-common.c (shorten_compare): Use wi::to_wide.
4243
e7ff0319
CP
42442016-04-29 Cesar Philippidis <cesar@codesourcery.com>
4245
4246 PR middle-end/70626
4247 * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
4248 * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
4249 reduction clauses in acc parallel loops.
4250
2fff3db8
MP
42512016-04-29 Marek Polacek <polacek@redhat.com>
4252
4253 PR c/70852
4254 * c-common.c (warn_for_memset): Check domain before accessing it.
4255
509063eb
DV
42562016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
4257
4258 PR/69089
4259 * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
4260 "aligned" attribute.
4261
b632761d
JM
42622016-04-28 Jason Merrill <jason@redhat.com>
4263
4264 * c-lex.c (c_common_has_attribute): Handle nodiscard.
4265
174f6622
ES
42662016-04-28 Eduard Sanou <dhole@openmailbox.org>
4267 Matthias Klose <doko@debian.org>
4268
4269 * c-common.c (get_source_date_epoch): New function, gets the environment
7365279f 4270 variable SOURCE_DATE_EPOCH and parses it as long long with error
174f6622
ES
4271 handling.
4272 * c-common.h (get_source_date_epoch): Prototype.
4273 * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
4274
6bc2bb18
RB
42752015-04-27 Ryan Burn <contact@rnburn.com>
4276
4277 PR c++/69024
4278 PR c++/68997
4279 * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
4280 (cilk_recognize_spawn): Renamed from recognize_spawn and change to
4281 external linkage.
4282 (cilk_detect_and_unwrap): Corresponding changes.
4283 (extract_free_variables): Don't extract free variables from
4284 AGGR_INIT_EXPR slot.
4285 * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
4286 (cilk_recognize_spawn): Likewise.
4287
c1e1f433
BS
42882016-04-27 Bernd Schmidt <bschmidt@redhat.com>
4289
4290 * c.opt (Wmemset-elt-size): New option.
4291 * c-common.c (warn_for_memset): New function.
4292 * c-common.h (warn_for_memset): Declare.
4293
d067e05f
JM
42942016-04-25 Jason Merrill <jason@redhat.com>
4295
4296 * c-common.c (handle_unused_attribute): Accept CONST_DECL.
4297 No longer static.
4298 * c-common.h: Declare it.
4299 * c-lex.c (c_common_has_attribute): Add maybe_unused.
4300
9aa36ae5
JM
43012016-04-22 Jason Merrill <jason@redhat.com>
4302
4303 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
4304
477d4906
IV
43052016-04-20 Ilya Verbin <ilya.verbin@intel.com>
4306
4307 PR c++/69363
4308 * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
4309 * c-common.h (c_finish_cilk_clauses): Remove declaration.
4310
fe37c7af
MM
43112016-04-18 Michael Matz <matz@suse.de>
4312
4313 * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
4314 and SET_DECL_ALIGN.
4315
23f2660f
EB
43162016-04-17 Eric Botcazou <ebotcazou@adacore.com>
4317
4318 * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
4319 (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
4320 to incomplete types.
4321 (dump_nested_type): Remove redundant tests and tidy up.
4322 (print_ada_declaration): Also set TREE_VISITED on the declaration of
4323 a type which is the typedef of an original type.
4324
1e77281b
MP
43252016-04-15 Marek Polacek <polacek@redhat.com>
4326
4327 PR c/70651
4328 * c-common.c (build_va_arg): Change two asserts into errors and return
4329 error_mark_node.
4330
b3a77f21
MP
43312016-04-13 Marek Polacek <polacek@redhat.com>
4332
4333 PR c++/70639
4334 * c-indentation.c (should_warn_for_misleading_indentation): Bail out
4335 for switch statements, too.
4336
322b8466
JM
43372016-03-28 Jason Merrill <jason@redhat.com>
4338
4339 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
4340
fbdb6baf
MP
43412016-03-23 Marek Polacek <polacek@redhat.com>
4342
4343 PR c++/69884
4344 * c.opt (Wignored-attributes): New option.
4345
5c240f4d
DM
43462016-03-22 David Malcolm <dmalcolm@redhat.com>
4347
4348 PR c/69993
4349 * c-indentation.c (warn_for_misleading_indentation): Rewrite the
4350 diagnostic text, reversing the order of the warning and note so
4351 that they appear in source order.
4352
14ba7b28
MP
43532016-03-17 Marek Polacek <polacek@redhat.com>
4354
4355 PR c/69407
4356 * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
4357 operations.
4358
08a1cadc
JM
43592016-03-14 Jason Merrill <jason@redhat.com>
4360
2aaeea19
JM
4361 * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
4362
08a1cadc
JM
4363 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
4364
c06d25bb
RB
43652016-03-09 Richard Biener <rguenther@suse.de>
4366
4367 PR c/70143
4368 * c-common.c (strict_aliasing_warning): Add back
4369 alias_sets_conflict_p check.
4370
80aac5c8
JM
43712016-03-08 Jason Merrill <jason@redhat.com>
4372
4373 * c-opts.c (set_std_cxx1z): Don't enable concepts.
4374
64b23c13
DM
43752016-03-04 David Malcolm <dmalcolm@redhat.com>
4376
4377 PR c/68187
4378 * c-indentation.c (get_visual_column): Move code to determine next
4379 tab stop to...
4380 (next_tab_stop): ...this new function.
4381 (line_contains_hash_if): Delete function.
4382 (detect_preprocessor_logic): Delete function.
4383 (get_first_nws_vis_column): New function.
4384 (detect_intervening_unindent): New function.
4385 (should_warn_for_misleading_indentation): Replace call to
4386 detect_preprocessor_logic with a call to
4387 detect_intervening_unindent.
4388
729526f5
DM
43892016-03-04 David Malcolm <dmalcolm@redhat.com>
4390
4391 PR c/68187
4392 * c-indentation.c (should_warn_for_misleading_indentation): When
4393 suppressing warnings about cases where the guard and body are on
4394 the same column, only use the first non-whitespace column in place
4395 of the guard token column when dealing with "else" clauses.
4396 When rejecting aligned BODY and NEXT, loosen the requirement
4397 from equality with the first non-whitespace of guard to simply
4398 that they not be indented relative to it.
4399
e9a35493
RB
44002016-03-04 Richard Biener <rguenther@suse.de>
4401
4402 PR c++/70054
4403 * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
4404 instead of alias_sets_conflict_p.
4405
1be56bc5
MP
44062016-03-01 Marek Polacek <polacek@redhat.com>
4407
4408 PR c++/69795
4409 * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
4410 any DECL.
4411
35886f0b
MS
44122016-02-22 Martin Sebor <msebor@redhat.com>
4413
4414 PR middle-end/69780
4415 * c-common.c (check_builtin_function_arguments): Validate and
4416 reject invalid arguments to __builtin_alloca_with_align.
4417
4246c8da
MW
44182016-02-20 Mark Wielaard <mjw@redhat.com>
4419
4420 PR c/28901
4421 * c.opt (Wunused-const-variable): Turn into Alias for...
4422 (Wunused-const-variable=): New option.
4423
268be88c
BE
44242016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
4425
4426 PR c++/69865
4427 * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
4428 here...
4429 (c_common_init_options): ...to here.
4430 (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
4431
871b3f47
JJ
44322016-02-19 Jakub Jelinek <jakub@redhat.com>
4433
4434 PR c++/69826
4435 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
4436 (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
4437 flag_preprocess_only.
4438
bf14eba2
JJ
44392016-02-16 Jakub Jelinek <jakub@redhat.com>
4440
4441 PR c/69835
4442 * c.opt (Wnonnull-compare): Enable for -Wall.
4443
ba6b3795
JJ
44442016-02-15 Jakub Jelinek <jakub@redhat.com>
4445
4446 PR c++/69797
4447 * c-common.c (sync_resolve_size): Diagnose too few arguments
4448 even when params is non-NULL empty vector.
4449
a011cd92
BS
44502016-02-08 Bernd Schmidt <bschmidt@redhat.com>
4451
4452 PR target/60410
4453 * c.opt (fshort-double): Remove.
4454
46cb9332
MS
44552016-02-05 Martin Sebor <msebor@redhat.com>
4456
4457 PR c++/69662
4458 * c.opt (Warning options): Update -Wplacement-new to take
4459 an optional argument.
4460
e1b81f2b
JJ
44612016-02-01 Jakub Jelinek <jakub@redhat.com>
4462
4463 PR preprocessor/69543
4464 PR c/69558
4465 * c-pragma.c (handle_pragma_diagnostic): Pass input_location
4466 instead of loc to control_warning_option.
4467
b6adbb9f
NS
44682016-02-01 Nathan Sidwell <nathan@codesourcery.com>
4469
4470 * c.opt (fopenacc-dim=): New option.
4471
5d70666e
RB
44722016-01-27 Ryan Burn <contact@rnburn.com>
4473
4474 PR cilkplus/69267
4475 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
4476 gimplify_arg. Removed superfluous post_p argument.
4477 * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
4478 superfluous post_p argument.
4479 * c-gimplify.c (c_gimplify_expr): Likewise.
4480
01e1dea3
DM
44812016-01-26 David Malcolm <dmalcolm@redhat.com>
4482
4483 PR other/69006
4484 * c-opts.c (c_diagnostic_finalizer): Replace invocation of
4485 pp_newline_and_flush with pp_flush.
4486
9f04a53e
MS
44872016-01-20 Martin Sebor <msebor@redhat.com>
4488
4489 PR c/69405
4490 * c-common.c (sync_resolve_size): Avoid printing diagnostic about
4491 an incompatible argument when the argument isn't a valid tree node.
4492
7f26f7df
JM
44932016-01-18 Jason Merrill <jason@redhat.com>
4494
4495 PR c++/68767
4496 * c-common.c (check_function_arguments_recurse): Fold the whole
4497 COND_EXPR, not just the condition.
4498
f62bf092
TV
44992016-01-18 Tom de Vries <tom@codesourcery.com>
4500
4501 * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
4502 classify as loop clause.
4503
e0a575ff
JJ
45042016-01-15 Jakub Jelinek <jakub@redhat.com>
4505
4506 PR bootstrap/68271
4507 * c-pragma.c (c_register_pragma_1): Adjust comment to note that
4508 C++ FE no longer has limit on number of pragmas.
4509
45102015-01-14 Ryan Burn <contact@rnburn.com>
b6e3db06
RB
4511
4512 PR c++/69048
4513 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
c47eaca6 4514 to add missing cleanup point.
b6e3db06 4515
c7df95d8
DM
45162016-01-14 David Malcolm <dmalcolm@redhat.com>
4517
4518 PR c++/68819
4519 * c-indentation.c (get_visual_column): Add location_t param.
4520 Handle the column number being zero by effectively disabling the
4521 warning, with an "inform".
4522 (should_warn_for_misleading_indentation): Add location_t argument
4523 for all uses of get_visual_column.
4524
21efdd80
PP
45252016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
4526
4527 PR c++/69029
4528 * c-indentation.c (should_warn_for_misleading_indentation):
4529 Don't warn about do-while statements.
4530
7a127fa7
MS
45312016-01-07 Martin Sebor <msebor@redhat.com>
4532
4533 PR c/68966
4534 * c-common.c (sync_resolve_size): Reject first argument when it's
4535 a pointer to _Bool.
4536
c589e975
DM
45372016-01-05 David Malcolm <dmalcolm@redhat.com>
4538
4539 PR c/69122
4540 * c-indentation.c (get_visual_column): Remove default argument.
4541 (should_warn_for_misleading_indentation): For the multiline case,
4542 update call to get_visual_column for next_stmt_exploc so that it
4543 captures the location of the first non-whitespace character in the
4544 relevant line. Don't issue warnings if there is non-whitespace
4545 before the next statement.
4546
818ab71a
JJ
45472016-01-04 Jakub Jelinek <jakub@redhat.com>
4548
4549 Update copyright years.
4550
745e411d
DM
45512015-12-21 David Malcolm <dmalcolm@redhat.com>
4552
4553 * c-common.c (binary_op_error): Convert first param from
4554 location_t to rich_location * and use it when emitting an error.
4555 * c-common.h (binary_op_error): Convert first param from
4556 location_t to rich_location *.
4557
de67c4c3
DM
45582015-12-16 David Malcolm <dmalcolm@redhat.com>
4559
4560 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
4561 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
4562
4a38b02b
IV
45632015-12-15 Ilya Verbin <ilya.verbin@intel.com>
4564
4565 * c-common.c (c_common_attribute_table): Handle "omp declare target
4566 link" attribute.
4567
54d62f51
JJ
45682015-12-14 Jakub Jelinek <jakub@redhat.com>
4569
4570 PR c/68833
4571 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
4572
8d4227c8
TB
45732014-12-12 Tobias Burnus <burnus@net-b.de>
4574
4575 PR fortran/68815
4576 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
4577 specifiers (%d, %i,%u and %c).
4578
f6069ccc
DM
45792015-12-10 David Malcolm <dmalcolm@redhat.com>
4580
4581 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
4582
63bbf46d
JJ
45832015-12-08 Jakub Jelinek <jakub@redhat.com>
4584
4585 PR c/48088
4586 PR c/68657
4587 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
4588 * c-pragma.c (handle_pragma_diagnostic): Adjust
4589 control_warning_option caller.
4590
f79520bb
DM
45912015-12-07 David Malcolm <dmalcolm@redhat.com>
4592
4593 * c-common.c (c_cpp_error): Update for change to
4594 rich_location::set_range.
4595
b3d5bc62
JJ
45962015-12-04 Paolo Bonzini <bonzini@gnu.org>
4597
4598 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
4599 shifting 1 out of the sign bit.
4600
46012015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
4602
4603 * c-common.c (c_common_attribute_table[]): Update max arguments
4604 count for "simd" attribute.
4605 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
4606
6eb4a537
JJ
46072015-12-03 Jakub Jelinek <jakub@redhat.com>
4608
4609 PR preprocessor/57580
4610 * c-ppoutput.c (print): Change printed field to bool.
4611 Move src_file last for smaller padding.
4612 (init_pp_output): Set print.printed to false instead of 0.
4613 (scan_translation_unit): Fix up formatting. Set print.printed
4614 to true after printing something other than newline.
4615 (scan_translation_unit_trad): Set print.printed to true instead of 1.
4616 (maybe_print_line_1): Set print.printed to false instead of 0.
4617 (print_line_1): Likewise.
4618 (do_line_change): Set print.printed to true instead of 1.
4619 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
4620 dump_macro): Set print.printed to false after printing newline.
4621
4250754e
JM
46222015-12-02 Jason Merrill <jason@redhat.com>
4623
f479b43d
JM
4624 * c-common.c (fold_for_warn): New.
4625 (warn_logical_operator, warn_tautological_cmp)
4626 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
4627
4250754e
JM
4628 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
4629 (c_fully_fold_internal, decl_constant_value_for_optimization):
4630 Move to c/c-fold.c.
4631 * c-common.h: Don't declare decl_constant_value_for_optimization.
4632
e9e32ee6
JM
46332015-12-02 Joseph Myers <joseph@codesourcery.com>
4634
4635 PR c/68162
4636 * c-common.h (c_build_qualified_type): Add extra default
4637 arguments.
4638
37d5ad46
JB
46392015-12-01 Julian Brown <julian@codesourcery.com>
4640 Cesar Philippidis <cesar@codesourcery.com>
4641 James Norris <James_Norris@mentor.com>
4642
4643 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
4644 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
4645 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
4646
f07862c7
EB
46472015-11-30 Eric Botcazou <ebotcazou@adacore.com>
4648
4649 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
4650 (decl_sloc_common): Delete and move bulk of processing to...
4651 (decl_sloc): ...here.
4652 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
4653 (dump_ada_double_name): Remove S parameter and compute the suffix.
4654 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
4655 element type and deal with an anonymous one.
4656 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
4657 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
4658 and remove reference to QUAL_UNION_TYPE.
4659 (dump_nested_types): Make 2 passes on the fields and move bulk to...
4660 (dump_nested_type): ...here. New function extracted from above.
4661 Generate a full declaration for anonymous element type of arrays.
4662 (print_ada_declaration): Really skip anonymous declarations. Remove
4663 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
4664 Clean up processing of declarations of array types and objects.
4665 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
4666 Remove obsolete code and tidy up.
4667
75c8aac3
JH
46682015-11-29 Jan Hubicka <hubicka@ucw.cz>
4669
4670 PR c/67581
4671 * c-common.c (handle_transparent_union_attribute): Update
4672 also type variants.
4673
b58d3df2
ML
46742015-11-27 Martin Liska <mliska@suse.cz>
4675
4676 PR c++/68312
4677 * array-notation-common.c (cilkplus_extract_an_triplets):
4678 Release vector of vectors.
4679 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
4680
89a01fcf
EB
46812015-11-26 Eric Botcazou <ebotcazou@adacore.com>
4682
4683 PR c++/68527
4684 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
4685 (print_ada_struct_decl): Likewise.
4686
cc5c5226
IZ
46872015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
4688
4689 PR c++/68001
4690 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
4691 * cilk.c (recognize_spawn): Determine location in a more precise
4692 way.
4693
269adb9d
JM
46942015-11-19 Jason Merrill <jason@redhat.com>
4695
4696 * c-common.c (shorten_compare): But look through macros from
4697 system headers.
4698
d0eccfcd
JM
46992015-11-18 Jason Merrill <jason@redhat.com>
4700
4701 * c-common.c (shorten_compare): Don't -Wtype-limits if the
4702 non-constant operand comes from a macro.
4703
3e44547c
JM
47042015-11-17 Jason Merrill <jason@redhat.com>
4705
4706 PR bootstrap/68346
4707 * c-common.c (warn_tautological_cmp): Fold before checking for
4708 constants.
4709
0f62c7a0
MP
47102015-11-16 Marek Polacek <polacek@redhat.com>
4711
4712 PR c++/68362
4713 * c-common.c (check_case_bounds): Fold low and high cases.
4714
a868811e
MP
47152015-11-16 Marek Polacek <polacek@redhat.com>
4716
4717 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
4718 * c-common.c (c_common_get_alias_set): Likewise.
4719 (handle_visibility_attribute): Likewise.
4720
fff77217
KY
47212015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
4722
4723 * c-common.c (handle_simd_attribute): New.
4724 (struct attribute_spec): Add entry for "simd".
4725 (handle_simd_attribute): New.
4726
269e63b7
KT
47272015-11-13 Kai Tietz <ktietz70@googlemail.com>
4728
4729 * c-lex.c (interpret_float): Use fold_convert.
4730
ebedc9a3
DM
47312015-11-13 David Malcolm <dmalcolm@redhat.com>
4732
4733 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
4734 and store it on the result.
4735 * c-opts.c (c_common_init_options): Set
4736 global_dc->colorize_source_p.
4737
6e232ba4
JN
47382015-11-12 James Norris <jnorris@codesourcery.com>
4739 Joseph Myers <joseph@codesourcery.com>
4740
7365279f 4741 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
6e232ba4
JN
4742 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
4743 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
4744 PRAGMA_OACC_CLAUSE_LINK.
4745
e78bede6
MP
47462015-11-11 Marek Polacek <polacek@redhat.com>
4747
4748 PR c/68107
4749 PR c++/68266
4750 * c-common.c (valid_array_size_p): New function.
4751 * c-common.h (valid_array_size_p): Declare.
4752
3f8257db 47532015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
4ac93c7c
DH
4754
4755 PR bootstrap/68271
4756 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
4757
69f293c9
AM
47582015-11-11 Andrew MacLeod <amacleod@redhat.com>
4759
4760 * array-notation-common.c: Remove unused header files.
4761 * c-ada-spec.c: Likewise.
4762 * c-cilkplus.c: Likewise.
4763 * c-common.c: Likewise.
4764 * c-cppbuiltin.c: Likewise.
4765 * c-dump.c: Likewise.
4766 * c-format.c: Likewise.
4767 * c-gimplify.c: Likewise.
4768 * c-indentation.c: Likewise.
4769 * c-lex.c: Likewise.
4770 * c-omp.c: Likewise.
4771 * c-opts.c: Likewise.
4772 * c-pch.c: Likewise.
4773 * c-ppoutput.c: Likewise.
4774 * c-pragma.c: Likewise.
4775 * c-pretty-print.c: Likewise.
4776 * c-semantics.c: Likewise.
4777 * c-ubsan.c: Likewise.
4778 * cilk.c: Likewise.
4779 * stub-objc.c: Likewise.
4780
3a40d81d
NS
47812015-11-09 Thomas Schwinge <thomas@codesourcery.com>
4782 Cesar Philippidis <cesar@codesourcery.com>
4783 James Norris <jnorris@codesourcery.com>
4784 Julian Brown <julian@codesourcery.com>
4785 Nathan Sidwell <nathan@codesourcery.com>
4786
4787 * c-pragma.c (oacc_pragmas): Add "routine".
4788 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
4789
ee45a32d
EB
47902015-11-08 Eric Botcazou <ebotcazou@adacore.com>
4791
4792 * c-common.c (c_common_attributes): Add scalar_storage_order.
4793 (handle_scalar_storage_order_attribute): New function.
4794 * c-pragma.c (global_sso): New variable.
4795 (maybe_apply_pragma_scalar_storage_order): New function.
4796 (handle_pragma_scalar_storage_order): Likewise.
4797 (init_pragma): Register scalar_storage_order.
4798 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
4799 * c.opt (Wscalar-storage-order): New warning.
4800 (fsso-struct=): New option.
4801
eb11eb15
MS
48022015-11-08 Martin Sebor <msebor@redhat.com>
4803
4804 * c.opt (Wplacement-new): Add a period to the end of a sentence.
4805
0aad0198
RS
48062015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4807
4808 * c-common.c: Don't undef DEF_BUILTIN.
4809
8a645150
DM
48102015-11-06 David Malcolm <dmalcolm@redhat.com>
4811
4812 * c-common.c (c_cpp_error): Convert parameter from location_t to
4813 rich_location *. Eliminate the "column_override" parameter and
4814 the call to diagnostic_override_column.
4815 Update the "done_lexing" clause to set range 0
4816 on the rich_location, rather than overwriting a location_t.
4817 * c-common.h (c_cpp_error): Convert parameter from location_t to
4818 rich_location *. Eliminate the "column_override" parameter.
4819
7a5e4956
CP
48202015-11-05 Cesar Philippidis <cesar@codesourcery.com>
4821 Thomas Schwinge <thomas@codesourcery.com>
4822 James Norris <jnorris@codesourcery.com>
4823
4824 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
4825 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
4826 clauses with parallel and kernels and loops.
4827 * c-pragma.h (enum pragma_omp_clause): Add entries for
4828 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
4829 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
4830 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
4831 INDEPENDENT,SEQ}.
4832 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
4833
e2f5cc96
MS
48342015-11-05 Martin Sebor <msebor@redhat.com>
4835
4836 PR c++/67942
4837 * c.opt (-Wplacement-new): New option.
4838
e01d41e5
JJ
48392015-11-05 Jakub Jelinek <jakub@redhat.com>
4840
4841 * c-common.h (c_finish_omp_atomic): Add TEST argument.
4842 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
4843 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
4844 save_expr or create_tmp_var* if TEST is true.
4845 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
4846 Don't call add_stmt here.
4847 (struct c_omp_check_loop_iv_data): New type.
4848 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
4849 c_omp_check_loop_iv_exprs): New functions.
4850 (c_omp_split_clauses): Adjust for lastprivate being allowed on
4851 distribute.
4852 (c_omp_declare_simd_clauses_to_numbers): Change
4853 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
4854 (c_omp_declare_simd_clauses_to_decls): Similarly change those
4855 from numbers to PARM_DECLs.
4856
595278be
MM
48572015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
4858
4859 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
4860 flag_checking.
4861
3f8257db 48622015-11-03 Bernd Schmidt <bschmidt@redhat.com>
c85158de
MS
4863
4864 PR c++-common/67882
b3d5bc62
JJ
4865 * c-common.h (fold_offsetof_1): Add argument.
4866 * c-common.c (fold_offsetof_1): Diagnose more invalid
c85158de
MS
4867 offsetof expressions that reference elements past the end of
4868 an array.
4869
4bf9e5a8
TS
48702015-11-03 Thomas Schwinge <thomas@codesourcery.com>
4871 Chung-Lin Tang <cltang@codesourcery.com>
4872
4873 * c-pragma.c (oacc_pragmas): Add "atomic".
4874 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
4875
3b1661a9
ES
48762015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
4877
4878 * c-common.c (handle_target_clones_attribute): New.
4879 (c_common_attribute_table): Add handle_target_clones_attribute.
4880 (handle_always_inline_attribute): Add check on target_clones attribute.
4881 (handle_target_attribute): Ditto.
4882
2adfab87
AM
48832015-10-29 Andrew MacLeod <amacleod@redhat.com>
4884
4885 * array-notation-common.c: Reorder #include's and remove duplicates.
4886 * c-ada-spec.c: Likewise.
4887 * c-cilkplus.c: Likewise.
4888 * c-common.c: Likewise.
4889 * c-cppbuiltin.c: Likewise.
4890 * c-dump.c: Likewise.
4891 * c-format.c: Likewise.
4892 * c-gimplify.c: Likewise.
4893 * c-indentation.c: Likewise.
4894 * c-lex.c: Likewise.
4895 * c-omp.c: Likewise.
4896 * c-opts.c: Likewise.
4897 * c-pch.c: Likewise.
4898 * c-ppoutput.c: Likewise.
4899 * c-pragma.c: Likewise.
4900 * c-pretty-print.c: Likewise.
4901 * c-semantics.c: Likewise.
4902 * c-ubsan.c: Likewise.
4903 * cilk.c: Likewise.
4904 * stub-objc.c: Likewise.
4905
d90ec4f2
JM
49062015-10-28 Jason Merrill <jason@redhat.com>
4907
4908 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
4909
88bae6f4
TS
49102015-10-27 Thomas Schwinge <thomas@codesourcery.com>
4911 James Norris <jnorris@codesourcery.com>
4912 Cesar Philippidis <cesar@codesourcery.com>
4913
4914 PR c/64765
4915 PR c/64880
4916 * c-common.h (c_oacc_split_loop_clauses): Declare function.
4917 * c-omp.c (c_oacc_split_loop_clauses): New function.
4918
b1726d6c
MS
49192015-10-21 Martin Sebor <msebor@redhat.com>
4920
4921 PR driver/68043
4922 * c.opt: End each sentence that describes an option with a period.
4923
fa60eeb9
MP
49242015-10-20 Marek Polacek <polacek@redhat.com>
4925
4926 * array-notation-common.c (is_cilkplus_vector_p): Define.
4927 * c-common.h (is_cilkplus_vector_p): Declare.
4928
95979049
MP
49292015-10-20 Marek Polacek <polacek@redhat.com>
4930
4931 * c.opt (std=gnu++11): Do not describe as experimental.
4932 (std=gnu++14): Likewise.
4933
2a9fb712
JM
49342015-10-19 Jason Merrill <jason@redhat.com>
4935
4936 * c-cppbuiltin.c (c_cpp_builtins): Define
4937 __cpp_nontype_template_args.
4938
13b380a3
JM
49392015-10-19 Jason Merrill <jason@redhat.com>
4940
4941 * c-cppbuiltin.c (c_cpp_builtins): Define
4942 __cpp_enumerator_attributes, __cpp_fold_expressions,
4943 __cpp_unicode_characters.
4944
d9a6bd32
JJ
49452015-10-13 Jakub Jelinek <jakub@redhat.com>
4946 Aldy Hernandez <aldyh@redhat.com>
4947
4948 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
4949 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
4950 (c_define_builtins): Likewise.
4951 * c-common.h (enum c_omp_clause_split): Add
4952 C_OMP_CLAUSE_SPLIT_TASKLOOP.
4953 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
4954 (c_finish_omp_for): Add ORIG_DECLV argument.
4955 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
4956 201511 instead of 201307.
4957 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
4958 OMP_CRITICAL_CLAUSES to it.
4959 (c_finish_omp_ordered): Add CLAUSES argument, set
4960 OMP_ORDERED_CLAUSES to it.
4961 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
4962 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
4963 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
4964 constructs and new OpenMP 4.5 clauses. Clear
4965 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
4966 verification code.
4967 * c-pragma.c (omp_pragmas_simd): Add taskloop.
4968 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
4969 (enum pragma_omp_clause): Add
4970 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
4971 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
4972
624d31fe
RS
49732015-10-05 Richard Sandiford <richard.sandiford@arm.com>
4974
4975 * c-lex.c (interpret_float): Use real_equal instead of
4976 REAL_VALUES_EQUAL.
4977
b8fd7909
JM
49782015-10-04 Jason Merrill <jason@redhat.com>
4979
4980 Implement N4514, C++ Extensions for Transactional Memory.
4981 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
4982 (c_common_attribute_table): Add transaction_safe_dynamic.
4983 transaction_safe now affects type identity.
4984 (handle_tm_attribute): Handle transaction_safe_dynamic.
4985 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
4986 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
4987 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
4988 (D_TRANSMEM): New.
4989 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
4990 * c-pretty-print.c (pp_c_attributes_display): Don't print
4991 transaction_safe in C++.
4992
12651878
MP
49932015-10-02 Marek Polacek <polacek@redhat.com>
4994
4995 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
4996
3e3b8d63
MP
49972015-10-02 Marek Polacek <polacek@redhat.com>
4998
4999 PR c/64249
5000 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
5001 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
5002 * c.opt (Wduplicated-cond): New option.
5003
0d1a8f75
JM
50042015-10-01 Joseph Myers <joseph@codesourcery.com>
5005
5006 * c.opt (std=c11): Do not describe as experimental.
5007 (std=gnu11): Likewise.
5008 (std=iso9899:2011): Likewise.
5009
3e32ee19
NS
50102015-09-28 Nathan Sidwell <nathan@codesourcery.com>
5011
5012 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
5013 (DEF_FUNCTION_TYPE_VAR_11): Delete.
5014
974348ee
MP
50152015-09-25 Marek Polacek <polacek@redhat.com>
5016
5017 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
5018 (ubsan_instrument_shift): Likewise.
5019
15dbc1a6
MP
50202015-09-25 Marek Polacek <polacek@redhat.com>
5021
5022 PR sanitizer/64906
5023 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
5024
6b95d7cc
PP
50252015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
5026
5027 * c-indentation.c (should_warn_for_misleading_indentation):
5028 Compare next_stmt_vis_column with guard_line_first_nws instead
5029 of with guard_line_vis_column.
5030
c1822f9c
MLI
50312015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
5032
5033 PR c/49654
5034 PR c/49655
5035 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
5036 options and options not valid for the current language.
5037
d5398058
PP
50382015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
5039
5040 * c-indentation.c (should_warn_for_misleading_indentation):
5041 Float out and consolidate the calls to get_visual_column that
5042 are passed guard_exploc as an argument. Compare
5043 next_stmt_vis_column with guard_line_first_nws instead of with
5044 body_line_first_nws.
5045
6b333269
NS
50462015-09-22 Nathan Sidwell <nathan@codesourcery.com>
5047
5048 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
5049 Wnamespaces): New C++ warnings.
5050
a75f1574
JM
50512015-09-22 Jason Merrill <jason@redhat.com>
5052
5053 * c-common.h (abi_compat_version_crosses): New.
5054 (warn_abi_version): Declare.
5055 * c-common.c: Define it.
5056 * c-opts.c (c_common_post_options): Handle it.
5057 flag_abi_compat_version defaults to 8.
5058
bdaaa8b7
VV
50592015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
5060
5061 Complete the implementation of N4230, Nested namespace definition.
5062 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
5063 __cpp_nested_namespace_definitions.
5064
eaa797e8
MLI
50652015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
5066
5067 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
5068
c4914de6
MLI
50692015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
5070
5071 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
5072 when warning.
5073 * c-pragma.h (pragma_lex): Add optional loc argument.
5074
fcb87c50
MM
50752015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
5076
5077 * c-format.c (check_format_arg): Adjust to use common block size in all
5078 object pools.
5079
31bdd08a
DM
50802015-09-15 David Malcolm <dmalcolm@redhat.com>
5081
5082 * c-format.c (location_from_offset): Update for change in
5083 signature of location_get_source_line.
5084 * c-indentation.c (get_visual_column): Likewise.
5085 (line_contains_hash_if): Likewise.
5086
aa9f4b4c
MP
50872015-09-14 Marek Polacek <polacek@redhat.com>
5088
5089 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
5090 setting various warnings.
5091
aa256c4a
MP
50922015-09-14 Marek Polacek <polacek@redhat.com>
5093
5094 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
5095 a negative value.
5096
0f876f22
MW
50972015-09-11 Mark Wielaard <mjw@redhat.com>
5098
5099 PR c/28901
5100 * c.opt (Wunused-variable): Option from common.opt.
5101 (Wunused-const-variable): New option.
5102
273aa49e
PC
51032015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
5104
5105 PR c++/53184
5106 * c.opt ([Wsubobject-linkage]): Add.
5107
1807ffc1
MS
51082015-09-03 Martin Sebor <msebor@redhat.com>
5109
5110 PR c/66516
5111 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
5112 functions.
5113 * c-common.c (reject_gcc_builtin): Define.
5114
38942840
BI
51152015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
5116
5117 PR middle-end/60586
5118 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
5119 prototype.
5120 * c-gimplify.c (c_gimplify_expr): Added a call to the function
5121 cilk_gimplify_call_params_in_spawned_fn.
5122 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
5123 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
5124 unwrapping.
5125
c316b5e4
MP
51262015-08-25 Marek Polacek <polacek@redhat.com>
5127
5128 PR middle-end/67330
5129 * c-common.c (handle_weak_attribute): Don't check whether the
5130 visibility can be changed here.
5131
584a7c46
MLI
51322015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
5133
5134 * c-lex.c (c_lex_with_flags): Use explicit locations.
5135
a79683d5
TS
51362015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
5137
5138 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
5139 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
5140
61717a45
FXC
51412015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5142
5143 PR middle-end/36757
5144 * c-common.c (check_builtin_function_arguments): Add check
5145 for BUILT_IN_SIGNBIT argument.
5146
329524f5
PC
51472015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
5148
5149 PR c++/67160
5150 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
5151 in c++1z mode.
5152
4ee55665
MP
51532015-08-17 Marek Polacek <polacek@redhat.com>
5154
5155 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
5156 with whitespaces before qualifier names.
5157
b893e375
MP
51582015-08-12 Marek Polacek <polacek@redhat.com>
5159
5160 PR c++/55095
5161 * c-common.c (maybe_warn_shift_overflow): Properly handle
5162 left-shifting 1 into the sign bit.
5163
c2d89095
MLI
51642015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5165
5166 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
5167
971e17ff
AS
51682015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
5169 Braden Obrzut <admin@maniacsvault.net>
5170 Jason Merrill <jason@redhat.com>
5171
5172 Add C++ Concepts TS support.
5173 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
5174 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
5175 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
5176 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
5177 * c-opts.c (set_std_cxx1z): Set flag_concepts.
5178 * c.opt (fconcepts): New.
5179
b3d5bc62
JJ
51802015-08-02 Martin Sebor <msebor@redhat.com>
5181
5182 * c.opt (-Wframe-address): New warning option.
5183
8ebca419
PP
51842015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
5185
5186 * c-indentation.c (should_warn_for_misleading_indentation):
5187 Improve heuristics.
5188
1a1e101f
PP
51892015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
5190
5191 * c-indentation.c (get_visual_column): Add parameter first_nws,
5192 use it. Update comment documenting the function.
5193 (is_first_nonwhitespace_on_line): Remove.
5194 (should_warn_for_misleading_indentation): Replace usage of
5195 of is_first_nonwhitespace_on_line with get_visual_column.
5196
992118a1
PP
51972015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
5198
5199 * c-indentation.h (struct token_indent_info): Define.
5200 (get_token_indent_info): Define.
5201 (warn_for_misleading_information): Declare.
5202 * c-common.h (warn_for_misleading_information): Remove.
5203 * c-identation.c (warn_for_misleading_indentation):
5204 Change declaration to take three token_indent_infos. Adjust
5205 accordingly.
5206 * c-identation.c (should_warn_for_misleading_indentation):
5207 Likewise. Bail out early if the body is a compound statement.
5208 (guard_tinfo_to_string): Define.
5209
e8fa3817
JM
52102015-07-30 Jason Merrill <jason@redhat.com>
5211
5212 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
5213 '*' for reference decay.
5214
173864e8
MP
52152015-07-30 Marek Polacek <polacek@redhat.com>
5216
5217 * c-common.c (warn_tautological_cmp): Bail for float types.
5218
f2afe6dd
MP
52192015-07-27 Marek Polacek <polacek@redhat.com>
5220
5221 PR bootstrap/67030
5222 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
5223
05b28fd6
MP
52242015-07-27 Marek Polacek <polacek@redhat.com>
5225
5226 PR c++/66555
5227 PR c/54979
5228 * c-common.c (find_array_ref_with_const_idx_r): New function.
5229 (warn_tautological_cmp): New function.
5230 * c-common.h (warn_tautological_cmp): Declare.
5231 * c.opt (Wtautological-compare): New option.
5232
5a5062b8
MP
52332015-07-23 Marek Polacek <polacek@redhat.com>
5234
5235 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
5236 (ubsan_instrument_shift): Likewise.
5237
dc891fe7
MP
52382015-07-23 Marek Polacek <polacek@redhat.com>
5239
5240 PR sanitizer/66908
5241 * c-ubsan.c: Include gimplify.h.
5242 (ubsan_instrument_division): Unshare OP0 and OP1.
5243 (ubsan_instrument_shift): Likewise.
5244
451b5e48
MP
52452015-07-20 Marek Polacek <polacek@redhat.com>
5246 Richard Sandiford <richard.sandiford@arm.com>
5247
5248 PR c++/55095
5249 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
5250 Use EXPR_LOC_OR_LOC.
5251 (maybe_warn_shift_overflow): New function.
5252 * c-common.h (maybe_warn_shift_overflow): Declare.
5253 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
5254 * c.opt (Wshift-overflow): New option.
5255
fb0b2914
ML
52562015-07-16 Martin Liska <mliska@suse.cz>
5257
5258 * c-format.c (static void check_format_info_main): Use
5259 object_allocator instead of pool_allocator.
5260 (check_format_arg): Likewise.
5261 (check_format_info_main): Likewise.
5262
903f5c23
AM
52632015-07-15 Andrew MacLeod <amacleod@redhat.com>
5264
5265 * c-opts.c: Remove multiline #include comment.
5266
026c3cfd
AH
52672015-07-12 Aldy Hernandez <aldyh@redhat.com>
5268
5269 * c-common.c: Fix double word typos.
5270
bb49ee66
EB
52712015-07-10 Eric Botcazou <ebotcazou@adacore.com>
5272
5273 * c-ada-spec.h (cpp_operation): Revert latest change.
5274 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
5275 constructors and destructors.
5276
1916bcb5
AM
52772015-07-09 Andrew MacLeod <amacleod@redhat.com>
5278
5279 * c-common.h: Adjust includes for flags.h changes.
5280 * stub-objc.c: Likewise.
026c3cfd 5281
a9dcd529
EB
52822015-07-08 Eric Botcazou <ebotcazou@adacore.com>
5283
5284 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
5285 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
5286
b03b462f
JJ
52872015-07-08 Jakub Jelinek <jakub@redhat.com>
5288
5289 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
5290 are to be removed, return NULL rather than original clauses list.
5291
c7131fb2
AM
52922015-07-07 Andrew MacLeod <amacleod@redhat.com>
5293
5294 * array-notation-common.c: Adjust includes.
5295 * c-ada-spec.c: Likewise.
5296 * c-cilkplus.c: Likewise.
5297 * c-common.h: Likewise.
5298 * c-cppbuiltin.c: Likewise.
5299 * c-dump.c: Likewise.
5300 * c-format.c: Likewise.
5301 * c-gimplify.c: Likewise.
5302 * c-indentation.c: Likewise.
5303 * c-lex.c: Likewise.
5304 * c-omp.c: Likewise.
5305 * c-opts.c: Likewise.
5306 * c-pch.c: Likewise.
5307 * c-ppoutput.c: Likewise.
5308 * c-pragma.c: Likewise.
5309 * c-pretty-print.c: Likewise.
5310 * c-semantics.c: Likewise.
5311 * c-ubsan.c: Likewise.
5312 * cilk.c: Likewise.
5313 * stub-objc.c: Likewise.
5314
2a7fb83f
EB
53152015-07-07 Eric Botcazou <ebotcazou@adacore.com>
5316
5317 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
5318 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
5319
a03c9bf1
JM
53202015-07-01 Jason Merrill <jason@redhat.com>
5321
36a85135
JM
5322 * c-common.h (D_CXX11): Rename from D_CXX0X.
5323 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
5324 * c-common.c: Adjust.
5325
e7fa68d5
JM
5326 * c-opts.c (c_common_post_options): Default to C++14.
5327
a03c9bf1
JM
5328 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
5329
fe95b036
ESR
53302015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
5331
5332 Implement N4197 - Adding u8 character literals
b3d5bc62 5333 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
a64be36b 5334 CPP_CHAR.
b3d5bc62 5335 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
a64be36b 5336 CPP_UTF8CHAR_USERDEF tokens.
b3d5bc62 5337 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
a64be36b
EB
5338 and CPP_UTF8CHAR tokens.
5339 (lex_charconst): Treat CPP_UTF8CHAR token.
fe95b036 5340
da2e71c9
MLI
53412015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
5342
5343 PR fortran/66605
5344 * c-common.c (do_warn_unused_parameter): Move here.
5345 * c-common.h (do_warn_unused_parameter): Declare.
5346
b155cfd9
MP
53472015-06-29 Marek Polacek <polacek@redhat.com>
5348
5349 PR c/66322
5350 * c-common.c (check_case_bounds): Add bool * parameter. Set
5351 OUTSIDE_RANGE_P.
5352 (c_add_case_label): Add bool * parameter. Pass it down to
5353 check_case_bounds.
5354 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
5355 warning here.
5356 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
5357 declarations.
5358
31521951
MP
53592015-06-27 Marek Polacek <polacek@redhat.com>
5360
5361 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
5362 or VECTOR_INTEGER_TYPE_P throughout.
5363 * c-gimplify.c: Likewise.
5364
22d03525
MP
53652015-06-26 Marek Polacek <polacek@redhat.com>
5366
5367 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
5368 * c-common.c (c_fully_fold_internal): Likewise.
5369 (c_alignof_expr): Likewise.
5370 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
5371 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
b1726d6c 5372 * cilk.c (create_parm_list): Likewise.
22d03525 5373
af05e6e5
MP
53742015-06-26 Marek Polacek <polacek@redhat.com>
5375
5376 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
5377
f0889939
AM
53782015-06-25 Andrew MacLeod <amacleod@redhat.com>
5379
5380 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
5381 * c-gimplify.c: Likewise.
5382 * c-pragma.c: Likewise.
5383 * c-ubsan.c: Likewise.
5384 * cilk.c: Likewise.
5385
ca752f39
RS
53862015-06-25 Richard Sandiford <richard.sandiford@arm.com>
5387
5388 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
5389 ggc_hasher.
5390
16a16ec7
AM
53912015-06-25 Andrew MacLeod <amacleod@redhat.com>
5392
5393 * cilk.c: Move calls.h after tm.h in the include chain.
5394
0ae9bd27
MP
53952015-06-25 Marek Polacek <polacek@redhat.com>
5396
5397 * array-notation-common.c: Use VAR_P throughout.
5398 * c-ada-spec.c: Likewise.
5399 * c-common.c: Likewise.
5400 * c-format.c: Likewise.
5401 * c-gimplify.c: Likewise.
5402 * c-omp.c: Likewise.
5403 * c-pragma.c: Likewise.
5404 * c-pretty-print.c: Likewise.
5405 * cilk.c: Likewise.
5406
62f9079a
MP
54072015-06-25 Marek Polacek <polacek@redhat.com>
5408
5409 * cilk.c (extract_free_variables): Use is_global_var.
5410
0fa16060
RS
54112015-06-23 Richard Sandiford <richard.sandiford@arm.com>
5412
5413 * c-common.c: Don't include target-def.h.
5414
a68ae2e1
MP
54152015-06-23 Marek Polacek <polacek@redhat.com>
5416
5417 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
5418 when comparing INTEGER_CSTs.
5419
c6a2f2d9
PMR
54202015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
5421
5422 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
5423 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
5424 (dump_ada_template): Skip partially specialized types.
5425
6b4db501
MM
54262015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
5427
5428 * c-common.c (scalar_to_vector): Use std::swap instead of manually
5429 swapping.
5430
abb226c9
AM
54312015-06-17 Andrew MacLeod <amacleod@redhat.com>
5432
5433 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
5434 * c-ada-spec.c: Likewise.
5435 * c-cilkplus.c: Likewise.
5436 * c-common.c: Likewise.
5437 * c-common.h: Likewise.
5438 * c-cppbuiltin.c: Likewise.
5439 * c-dump.c: Likewise.
5440 * c-format.c: Likewise.
5441 * c-gimplify.c: Likewise.
5442 * c-indentation.c: Likewise.
5443 * c-lex.c: Likewise.
5444 * c-omp.c: Likewise.
5445 * c-opts.c: Likewise.
5446 * c-pch.c: Likewise.
5447 * c-ppoutput.c: Likewise.
5448 * c-pragma.c: Likewise.
5449 * c-pretty-print.c: Likewise.
5450 * c-semantics.c: Likewise.
5451 * c-ubsan.c: Likewise.
5452 * cilk.c: Likewise.
5453 * stub-objc.c: Likewise.
5454
076fecad
PP
54552015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
5456
5457 PR c++/65168
5458 * c-common.c (c_common_truthvalue_conversion): Warn when
5459 converting an address of a reference to a truth value.
5460
13fdf2e2
AM
54612015-06-08 Andrew MacLeod <amacleod@redhat.com>
5462
5463 * array-notation-common.c : Adjust include files.
5464 * c-ada-spec.c : Likewise.
5465 * c-cilkplus.c : Likewise.
5466 * c-common.c : Likewise.
5467 * c-common.h : Likewise.
5468 * c-cppbuiltin.c : Likewise.
5469 * c-dump.c : Likewise.
5470 * c-format.c : Likewise.
5471 * c-gimplify.c : Likewise.
5472 * c-indentation.c : Likewise.
5473 * c-lex.c : Likewise.
5474 * c-omp.c : Likewise.
5475 * c-opts.c : Likewise.
5476 * c-pch.c : Likewise.
5477 * c-ppoutput.c : Likewise.
5478 * c-pragma.c : Likewise.
5479 * c-pretty-print.c : Likewise.
5480 * c-semantics.c : Likewise.
5481 * c-ubsan.c : Likewise.
5482 * cilk.c : Likewise.
5483 * stub-objc.c : Likewise.
5484
a1661b90
MP
54852015-06-08 Marek Polacek <polacek@redhat.com>
5486
5487 PR c/66415
5488 * c-format.c (location_from_offset): Return LOC if LINE is null.
5489
d7438551
AH
54902015-06-05 Aldy Hernandez <aldyh@redhat.com>
5491
5492 * c-common.h (c_parse_final_cleanups): New prototype.
5493 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
5494
b3d5bc62
JJ
54952015-06-04 Sriraman Tallam <tmsriram@google.com>
5496
5497 * c-common.c (noplt): New attribute.
5498 (handle_noplt_attribute): New handler.
5499
ecb9f223
AM
55002015-06-04 Andrew MacLeod <amacleod@redhat.com>
5501
5502 * array-notation-common.c: Adjust includes for restructured coretypes.h.
5503 * c-ada-spec.c: Likewise.
5504 * c-cilkplus.c: Likewise.
5505 * c-common.c: Likewise.
5506 * c-common.h: Likewise.
5507 * c-cppbuiltin.c: Likewise.
5508 * c-dump.c: Likewise.
5509 * c-format.c: Likewise.
5510 * c-gimplify.c: Likewise.
5511 * c-indentation.c: Likewise.
5512 * c-lex.c: Likewise.
5513 * c-omp.c: Likewise.
5514 * c-opts.c: Likewise.
5515 * c-pch.c: Likewise.
5516 * c-ppoutput.c: Likewise.
5517 * c-pragma.c: Likewise.
5518 * c-pretty-print.c: Likewise.
5519 * c-semantics.c: Likewise.
5520 * c-ubsan.c: Likewise.
5521 * cilk.c: Likewise.
5522 * stub-objc.c: Likewise.
5523
6ac48155
DM
55242015-06-02 David Malcolm <dmalcolm@redhat.com>
5525
5526 PR c/66220:
5527 * c-indentation.c (should_warn_for_misleading_indentation): Use
5528 expand_location rather than expand_location_to_spelling_point.
5529 Don't warn if the guarding statement is more indented than the
5530 next/body stmts.
5531
773ce42e
DM
55322015-06-02 David Malcolm <dmalcolm@redhat.com>
5533
5534 * c-indentation.c (warn_for_misleading_indentation): Bail out
5535 immediately if -Wmisleading-indentation isn't enabled.
5536
4fef8379
ML
55372015-06-01 Martin Liska <mliska@suse.cz>
5538
5539 * c-format.c (check_format_arg):Use new type-based pool allocator.
5540 (check_format_info_main) Likewise.
5541
1edfb384
EB
55422015-05-31 Eric Botcazou <ebotcazou@adacore.com>
5543
5544 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
5545 (has_nontrivial_methods): Likewise.
5546
9677ef52
MP
55472015-05-25 Marek Polacek <polacek@redhat.com>
5548
5549 * c-ubsan.c (ubsan_instrument_shift): Use type0.
5550
fd5c817a
MP
55512015-05-22 Marek Polacek <polacek@redhat.com>
5552
5553 PR c/47043
5554 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
5555
a2f45fe6 55562015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
581edfa3
TS
5557
5558 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
5559 STACK_GROWS_DOWNWARD.
5560
a2f45fe6 55612015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
62f9f30b
TS
5562
5563 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
5564 STACK_GROWS_DOWNWARD rather than if it is defined.
5565
0fee2ac2 55662015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
b1726d6c 5567
0fee2ac2
MLI
5568 PR c/52952
5569 * c-format.c (location_column_from_byte_offset): New.
5570 (location_from_offset): New.
5571 (struct format_wanted_type): Add offset_loc field.
5572 (check_format_info): Move handling of location for extra arguments
5573 closer to the point of warning.
5574 (check_format_info_main): Pass the result of location_from_offset
5575 to warning_at.
5576 (format_type_warning): Pass the result of location_from_offset
5577 to warning_at.
5578
cf4ef6f7
MP
55792015-05-20 Marek Polacek <polacek@redhat.com>
5580
5581 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
5582
3a65ee74
MP
55832015-05-20 Marek Polacek <polacek@redhat.com>
5584
5585 * c-ada-spec.c (dump_sloc): Use DECL_P.
5586
21b634ae
MP
55872015-05-20 Marek Polacek <polacek@redhat.com>
5588
5589 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
5590 * c-common.c: Likewise.
5591
0e50b624
DM
55922015-05-19 David Malcolm <dmalcolm@redhat.com>
5593
5594 * c-common.h (fe_file_change): Strengthen param from
5595 const line_map * to const line_map_ordinary *.
5596 (pp_file_change): Likewise.
5597 * c-lex.c (fe_file_change): Likewise.
5598 (cb_define): Use linemap_check_ordinary when invoking
5599 SOURCE_LINE.
5600 (cb_undef): Likewise.
5601 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
5602 invoking cb_file_change.
5603 (c_finish_options): Likewise.
5604 (push_command_line_include): Likewise.
5605 (cb_file_change): Strengthen param "new_map" from
5606 const line_map * to const line_map_ordinary *.
5607 * c-ppoutput.c (cb_define): Likewise for local "map".
5608 (pp_file_change): Likewise for param "map" and local "from".
5609
fab27f52
MM
56102015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
5611
5612 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
5613
2fe1d762
TV
56142015-05-18 Tom de Vries <tom@codesourcery.com>
5615
5616 * c-common.c (build_va_arg_1): New function.
5617 (build_va_arg): Add address operator to va_list operand if necessary.
5618
7a37fa90
MM
56192015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
5620
5621 PR c/48956
5622 * c-common.c (int_safely_convertible_to_real_p): Define.
5623 (unsafe_conversion_p): Check conversions involving complex types.
5624 (conversion_warning): Add new warning message for conversions which
5625 discard imaginary component.
5626 * c-common.h: (enum conversion_safety): Add new enumerator for such
5627 conversions.
5628
3aa3c9fc
MP
56292015-05-14 Marek Polacek <polacek@redhat.com>
5630
5631 PR c/66066
5632 PR c/66127
5633 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
5634 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
5635 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
5636 use it. If FOR_INT_CONST, require that all evaluated operands be
5637 INTEGER_CSTs.
5638
c3388e62
DM
56392015-05-12 David Malcolm <dmalcolm@redhat.com>
5640
5641 * c-common.h (warn_for_misleading_indentation): New prototype.
5642 * c-indentation.c: New file.
5643 * c.opt (Wmisleading-indentation): New option.
5644
c7b38fd5
TV
56452015-05-12 Tom de Vries <tom@codesourcery.com>
5646
5647 PR tree-optimization/66010
5648 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
5649
381bf11e
JM
56502015-05-09 Jason Merrill <jason@redhat.com>
5651
edff0c06
JM
5652 * c-opts.c (c_common_post_options): Also clear
5653 cpp_opts->cpp_warn_cxx11_compat.
5654
129211bc
JM
5655 * c-common.h (enum cxx_dialect): Add cxx_unset.
5656 * c-common.c (cxx_dialect): Initialize to cxx_unset.
5657 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
5658
381bf11e
JM
5659 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
5660 (std=gnu++0x): Mark as Undocumented.
5661 (std=gnu++1y): Add deprecated message.
5662
fe191308
JM
56632015-05-08 Jason Merrill <jason@redhat.com>
5664
765189ff
JM
5665 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
5666 * c-opts.c: Adjust.
5667
fe191308
JM
5668 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
5669
755e528f
MP
56702015-05-08 Marek Polacek <polacek@redhat.com>
5671
5672 PR c/64918
5673 * c.opt (Woverride-init-side-effects): New option.
5674
0173bd2a
MP
56752015-05-07 Marek Polacek <polacek@redhat.com>
5676
5677 PR c/65179
5678 * c-common.c (c_fully_fold_internal): Warn when left shifting a
5679 negative value.
5680 * c.opt (Wshift-negative-value): New option.
5681 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
5682 when -Wextra and C99/C++11 mode.
5683
e0f0d3b9
MP
56842015-05-07 Marek Polacek <polacek@redhat.com>
5685 Martin Uecker <uecker@eecs.berkeley.edu>
5686
5687 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
5688 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
5689
8243e2a9
JM
56902015-05-05 Jason Merrill <jason@redhat.com>
5691
5692 * c.opt (Wterminate): New.
5693
577cd070
MP
56942015-04-30 Marek Polacek <polacek@redhat.com>
5695
5696 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
5697 require that the non-constant be of a boolean type.
5698
0373796b
JT
56992015-04-29 Josh Triplett <josh@joshtriplett.org>
5700
e0f0d3b9
MP
5701 * c-common.c (handle_section_attribute): Refactor to reduce
5702 nesting and distinguish between error cases.
0373796b 5703
716c0ba6
MP
57042015-04-29 Marek Polacek <polacek@redhat.com>
5705
5706 PR c/64610
5707 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
5708 with 0/1.
5709
8848828b
JJ
57102015-04-29 Jakub Jelinek <jakub@redhat.com>
5711
5712 * c-common.h (omp_clause_mask): Unconditionally define as a class.
5713 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
5714 HOST_BITS_PER_WIDE_INT.
5715
ecd0e562
TV
57162015-04-28 Tom de Vries <tom@codesourcery.com>
5717
5718 PR tree-optimization/65887
5719 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
5720
2a877204 57212015-04-28 Eric Botcazou <ebotcazou@adacore.com>
e0f0d3b9 5722 Pierre-Marie de Rodat <derodat@adacore.com>
2a877204
EB
5723
5724 * c-ada-spec.c (in_function): Delete.
5725 (dump_generic_ada_node): Do not change in_function and remove the
5726 redundant code dealing with it.
5727 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
5728 (print_ada_methods): Output the static member functions in a nested
5729 package after the regular methods as well as associated renamings.
5730
4853031e
MP
57312015-04-24 Marek Polacek <polacek@redhat.com>
5732
5733 PR c/65830
5734 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
5735 and OPT_Wshift_count_overflow.
5736
8c2b7f79
MP
5737 PR c/63357
5738 * c-common.c (warn_logical_operator): Warn if the operands have the
5739 same expressions.
5740
b8787813
MP
57412015-04-24 Marek Polacek <polacek@redhat.com>
5742
5743 PR c/61534
5744 * c-common.c (warn_logical_operator): Bail if either operand comes
5745 from a macro expansion.
5746
8fba1830
BRF
57472015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
5748
5749 PR target/55143
5750 * c-common.c (c_default_pointer_mode): Add definition.
5751 * c-common.h (c_default_pointer_mode): Add declaration.
5752
17958621
JJ
57532015-03-11 Jakub Jelinek <jakub@redhat.com>
5754
5755 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
5756 on record_builtin_type argument.
5757
7ccb1a11
JJ
57582015-03-10 Jakub Jelinek <jakub@redhat.com>
5759
5760 PR c/65120
5761 * c-common.c (warn_logical_not_parentheses): Don't warn for
5762 !x == 0 or !x != 0.
5763
04fd785e
MP
57642015-03-07 Marek Polacek <polacek@redhat.com>
5765
5766 PR sanitizer/65280
5767 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
5768 before trying to figure out whether we have a flexible array member.
5769
a4e26206 57702015-03-06 Eric Botcazou <ebotcazou@adacore.com>
8e745a17 5771 Jonathan Wakely <jwakely.gcc@gmail.com>
a4e26206
EB
5772
5773 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
5774
0d2489f4
EB
57752015-03-05 Eric Botcazou <ebotcazou@adacore.com>
5776
5777 PR ada/65319
5778 * c-ada-spec.c (print_destructor): Remove obsolete code.
5779
83ed54d7
EB
57802015-03-01 Eric Botcazou <ebotcazou@adacore.com>
5781
5782 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
5783 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
5784 DECL_TEMPLATE_RESULT emulations.
5785 (dump_ada_template)): Add guard for TYPE_METHODS.
5786
7631f0e2
MP
57872015-02-27 Marek Polacek <polacek@redhat.com>
5788
5789 PR c/65040
5790 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
5791
d1783ae5
KT
57922015-02-27 Kai Tietz <ktietz@redhat.com>
5793
5794 PR c/35330
5795 * c-pragma.c (handle_pragma_weak): Do not try to create
5796 weak/alias of declarations not being function, or variable
5797 declarations.
5798
56a9f6bc
TS
57992015-02-24 Thomas Schwinge <thomas@codesourcery.com>
5800
5801 PR libgomp/64625
5802 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
5803 Remove macros.
5804 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
5805
3d5cb23d
MP
58062015-02-16 Marek Polacek <polacek@redhat.com>
5807
5808 PR c/65066
5809 * c-format.c (check_format_types): Handle null param.
5810
fa008882
MP
58112015-02-13 Marek Polacek <polacek@redhat.com>
5812
5813 PR c/65040
5814 * c-format.c (check_format_types): Don't warn about different
5815 signedness if the original value is in the range of WANTED_TYPE.
5816
785f21af
JM
58172015-02-12 Jason Merrill <jason@redhat.com>
5818
5819 PR c++/64956
5820 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
5821 to the current highest version.
5822 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
5823
4886ec8e
JJ
58242015-02-04 Jakub Jelinek <jakub@redhat.com>
5825
5826 PR c/64824
5827 PR c/64868
5828 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
5829 instead of RDIV_EXPR. Use build_binary_op instead of
5830 build2_loc.
5831
40fecdd6
JM
58322015-01-30 Joseph Myers <joseph@codesourcery.com>
5833
5834 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
5835 to pass input_location as first argument.
5836
a0c88d06
TV
58372015-01-23 Tom de Vries <tom@codesourcery.com>
5838
5839 PR libgomp/64672
5840 * c.opt (fopenacc): Mark as LTO option.
5841
1506ae0e
TV
58422015-01-23 Tom de Vries <tom@codesourcery.com>
5843
5844 PR libgomp/64707
5845 * c.opt (fopenmp): Mark as LTO option.
5846
31be63ab
JJ
58472015-01-21 Jakub Jelinek <jakub@redhat.com>
5848
5849 PR c/63307
b1726d6c 5850 * cilk.c (fill_decls_vec): Only put decls into vector v.
31be63ab
JJ
5851 (compare_decls): Fix up formatting.
5852
58532015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
5854
5855 PR c/63307
5856 * cilk.c: Include vec.h.
5857 (struct cilk_decls): New structure.
5858 (wrapper_parm_cb): Split this function to...
5859 (fill_decls_vec): ...this...
5860 (create_parm_list): ...and this.
5861 (compare_decls): New function.
5862 (for_local_cb): Remove.
5863 (wrapper_local_cb): Ditto.
5864 (build_wrapper_type): For now first traverse and fill vector of
5865 declarations then sort it and then deal with sorted vector.
5866 (cilk_outline): Ditto.
5867 (declare_one_free_variable): Ditto.
5868
6875457f
JM
58692015-01-21 Jason Merrill <jason@redhat.com>
5870
5871 PR c++/64629
5872 * c-format.c (check_format_arg): Call decl_constant_value.
5873
185c9e56
ML
58742015-01-19 Martin Liska <mliska@suse.cz>
5875
5876 * c-common.c (handle_noicf_attribute): New function.
5877
41dbbb37
TS
58782015-01-15 Thomas Schwinge <thomas@codesourcery.com>
5879 Bernd Schmidt <bernds@codesourcery.com>
5880 James Norris <jnorris@codesourcery.com>
5881 Cesar Philippidis <cesar@codesourcery.com>
5882 Ilmir Usmanov <i.usmanov@samsung.com>
5883 Jakub Jelinek <jakub@redhat.com>
5884
5885 * c.opt (fopenacc): New option.
5886 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
5887 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
5888 New macros.
5889 * c-common.h (c_finish_oacc_wait): New prototype.
5890 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
5891 (c_finish_oacc_wait): New function.
5892 * c-pragma.c (oacc_pragmas): New variable.
5893 (c_pp_lookup_pragma, init_pragma): Handle it.
5894 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
5895 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
5896 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
5897 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
5898 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
5899 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
5900 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
5901 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
5902 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
5903 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
5904 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
5905 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
5906 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
5907 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
5908 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
5909 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
5910 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
5911 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
5912 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
5913 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
5914 PRAGMA_OACC_CLAUSE_WORKER.
5915
3f8257db 59162015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
5434dc07
MD
5917
5918 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
5919 for the new option fstack-protector_explicit.
5920 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
5921 (handle_stack_protect_attribute): New function.
5922
3f8257db 59232015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
de1b5c17
MU
5924
5925 * c.opt: New option -Warray-bounds=.
5926
adfac8df
JJ
59272015-01-09 Michael Collison <michael.collison@linaro.org>
5928
5929 * array-notation-common.c: Include hash-set.h, machmode.h,
5930 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
5931 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
5932 * c-ada-spec.c: Ditto.
5933 * c-cilkplus.c: Ditto.
5934 * c-common.c: Include input.h due to flattening of tree.h.
5935 Define macro GCC_C_COMMON_C.
5936 * c-common.h: Flatten tree.h header files into c-common.h.
5937 Remove include of tree-core.h.
5938 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
5939 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
5940 fold-const.h, wide-int.h, and inchash.h due to
5941 flattening of tree.h.
5942 * c-dump.c: Ditto.
5943 * c-format.c: Flatten tree.h header files into c-common.h.
5944 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
5945 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
5946 fold-const.h, wide-int.h, and inchash.h due to
5947 flattening of tree.h.
5948 * c-dump.c: Include hash-set.h, machmode.h,
5949 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
5950 fold-const.h, wide-int.h, and inchash.h due to
5951 flattening of tree.h.
5952 * c-format.c: Include hash-set.h, machmode.h,
5953 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
5954 fold-const.h, wide-int.h, inchash.h and real.h due to
5955 flattening of tree.h.
5956 * c-gimplify.c: Include hash-set.h, machmode.h,
5957 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
5958 fold-const.h, wide-int.h, and inchash.h due to
5959 flattening of tree.h.
5960 * cilk.c: Ditto.
5961 * c-lex.c: Ditto.
5962 * c-omp.c: Ditto.
5963 * c-opts.c: Ditto.
5964 * c-pch.c: Ditto.
5965 * c-ppoutput.c: Ditto.
5966 * c-pragma.c: Ditto.
5967 * c-pretty-print.c: Ditto.
5968 * c-semantics.c: Ditto.
5969 * c-ubsan.c: Ditto.
5970 * stub-objc.c: Ditto.
5971
f5481fc4
JM
59722015-01-08 Jason Merrill <jason@redhat.com>
5973
5974 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
5975 do_ubsan_in_current_function.
5976 (ubsan_maybe_instrument_reference_or_call): Likewise.
5977 * c-ubsan.h: Declare it.
5978
de35aa66
MS
59792015-01-08 Mike Stump <mikestump@comcast.net>
5980
5981 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
5982
4a9a42ab
MP
59832015-01-07 Marek Polacek <polacek@redhat.com>
5984
5985 PR c/64440
5986 * c-common.c (c_fully_fold_internal): Warn for division and modulo
5987 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
5988
2f42e5de
TS
59892015-01-05 Trevor Saunders <tsaunders@mozilla.com>
5990
5991 PR c++/31397
5992 * c.opt (Wsuggest-override): New option.
5993
5624e564
JJ
59942015-01-05 Jakub Jelinek <jakub@redhat.com>
5995
5996 Update copyright years.
5997
5bd012f8
MP
59982015-01-05 Marek Polacek <polacek@redhat.com>
5999
6000 PR c/64423
6001 * c-common.c (warn_array_subscript_with_type_char): Add location_t
6002 parameter. Use it.
6003 * c-common.h (warn_array_subscript_with_type_char): Update
6004 declaration.
6005
a7fa8d18
ESR
60062014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
6007
6008 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
6009 Control macro with flag_sized_deallocation.
6010
3f8257db 60112014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
768952be
MU
6012
6013 * c.opt (Wdiscarded-array-qualifiers): New option.
6014
1f8d3e84
JJ
60152014-12-19 Jakub Jelinek <jakub@redhat.com>
6016
6017 PR preprocessor/63831
6018 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
6019 and __has_cpp_attribute here.
6020 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
6021 c_common_has_attribute.
6022 * c-common.h (c_common_has_attribute): New prototype.
6023 * c-lex.c (init_c_lex): Set cb->has_attribute to
6024 c_common_has_attribute instead of cb_has_attribute.
6025 (get_token_no_padding): New function.
6026 (cb_has_attribute): Renamed to ...
6027 (c_common_has_attribute): ... this. No longer static. Use
6028 get_token_no_padding, require ()s, don't build TREE_LIST
6029 unnecessarily, fix up formatting, adjust diagnostics, call
6030 init_attributes.
6031
20b06add
JM
60322014-12-15 Jason Merrill <jason@redhat.com>
6033
6034 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
6035 (-Wsized-deallocation): New.
6036 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
6037 to on in C++14 and up.
6038
94a073b2
JM
60392014-12-11 Jason Merrill <jason@redhat.com>
6040
acaa5911
JM
6041 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
6042
94a073b2
JM
6043 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
6044 we aren't complaining about VLAs.
6045
7fb66c15
MP
60462014-12-06 Marek Polacek <polacek@redhat.com>
6047
6048 PR tree-optimization/64183
6049 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
6050 shift-expression if it is integer_type_node. Use types_compatible_p.
6051
b731b390
JJ
60522014-11-29 Jakub Jelinek <jakub@redhat.com>
6053
6054 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
6055 last argument from create_tmp_var_raw and create_tmp_var calls.
6056 * cilk.c (gimplify_cilk_spawn): Likewise.
6057 * c-omp.c (c_finish_omp_atomic): Likewise.
6058
6a4da643
MP
60592014-11-28 Marek Polacek <polacek@redhat.com>
6060
6061 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
6062 instead of unsigned_type_node.
6063
541e35a6
MP
60642014-11-28 Marek Polacek <polacek@redhat.com>
6065
6066 PR c/63862
6067 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
6068 to op1_utype.
6069 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
6070 expression to unsigned_type_node.
6071
dcc97066
MW
60722014-11-20 Mark Wielaard <mjw@redhat.com>
6073
6074 PR debug/38757
6075 * c-opts.c (set_std_c89): Set lang_hooks.name.
6076 (set_std_c99): Likewise.
6077 (set_std_c11): Likewise.
6078 (set_std_cxx98): Likewise.
6079 (set_std_cxx11): Likewise.
6080 (set_std_cxx14): Likewise.
6081 (set_std_cxx1z): Likewise.
6082
aa7da51a
JJ
60832014-11-21 Jakub Jelinek <jakub@redhat.com>
6084
6085 PR target/63764
6086 * c-common.h (convert_vector_to_pointer_for_subscript): Change
6087 return type to bool.
009a3480 6088 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
6089 (convert_vector_to_pointer_for_subscript): Change return type to
6090 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
6091 and copy it into a TARGET_EXPR and use that instead of *vecp
6092 directly.
6093
538dd0b7
DM
60942014-11-19 David Malcolm <dmalcolm@redhat.com>
6095
6096 Merger of git branch "gimple-classes-v2-option-3".
6097 * ChangeLog.gimple-classes: New.
6098 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
6099 from being just a vec<gimple> to a vec<gbind *>.
6100
c39a5e99
JJ
61012014-11-18 Jakub Jelinek <jakub@redhat.com>
6102
6103 PR sanitizer/63813
6104 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
6105 argument to ptype, set type to TREE_TYPE (ptype). Don't call
6106 get_pointer_alignment for non-pointers. Use ptype, or if it is
6107 reference type, corresponding pointer type, as type of kind
6108 argument.
6109 (ubsan_maybe_instrument_reference,
6110 ubsan_maybe_instrument_member_call): Adjust callers.
6111
8537a4a9
MP
61122014-11-15 Marek Polacek <polacek@redhat.com>
6113
6114 PR middle-end/63884
6115 * array-notation-common.c (is_sec_implicit_index_fn): Return false
6116 for NULL fndecl.
6117 (extract_array_notation_exprs): Return for NULL node.
6118
2079956a
JM
61192014-11-12 Joseph Myers <joseph@codesourcery.com>
6120
6121 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
6122 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
6123
1304953e
JJ
61242014-11-12 Jakub Jelinek <jakub@redhat.com>
6125
6126 PR c/59708
6127 * c-common.c (check_builtin_function_arguments): Handle
6128 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
6129
e5e44252
AK
61302014-11-10 Andi Kleen <ak@linux.intel.com>
6131
6132 PR c/60804
6133 * c-common.h (check_no_cilk): Declare.
6134 * cilk.c (get_error_location): New function.
6135 (check_no_cilk): Dito.
6136
e64b984d
AK
61372014-11-10 Andi Kleen <ak@linux.intel.com>
6138
6139 * cilk.c (recognize_spawn): Use expression location
6140 for error message.
6141
13c21655
PC
61422014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
6143
6144 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
6145
42fd12b1
ESR
61462014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
6147
6148 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
6149 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
6150 (__cpp_range_based_for, __cpp_initializer_lists,
6151 __cpp_delegating_constructors, __cpp_nsdmi,
6152 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
6153 for C++11; (__cpp_attribute_deprecated): Remove in favor of
6154 __has_cpp_attribute.
6155 * c-lex.c (cb_has_attribute): New callback CPP function;
6156 (init_c_lex): Set has_attribute callback.
6157
6f450181
RB
61582014-11-04 Richard Biener <rguenther@suse.de>
6159
6160 * c-common.c (shorten_compare): Do not shorten mixed
6161 DFP and non-DFP compares.
6162
26f0e1d6
ESR
61632014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
6164
6165 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
6166 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
6167 Commentary and rearrangement of tests.
6168 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
6169 Commentary and rearrangement of tests.
ab20d992 6170 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto.
26f0e1d6
ESR
6171 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
6172
ef4bddc2
RS
61732014-10-29 Richard Sandiford <richard.sandiford@arm.com>
6174
6175 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
6176 enum from machine_mode.
6177
c582198b
AM
61782014-10-28 Andrew MacLeod <amacleod@redhat.com>
6179
adfac8df
JJ
6180 * c-common.c: Adjust include files.
6181 * c-gimplify.c: Ditto.
6182 * cilk.c: Ditto.
6183 * c-pragma.c: Ditto.
6184 * c-ubsan.c: Ditto.
c582198b 6185
60393bbc
AM
61862014-10-27 Andrew MacLeod <amacleod@redhat.com>
6187
6188 * c-gimplify.c: Adjust include files.
6189
d723bb7c
MLI
61902014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
6191
6192 PR c++/53061
6193 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
6194 c_common_initialize_diagnostics.
6195 * c-common.h: Likewise.
6196
90f3520e
MP
61972014-10-24 Marek Polacek <polacek@redhat.com>
6198
6199 PR c/56980
6200 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
6201 print "struct"/"union"/"enum" for typedefed names.
6202
59d7607a
MP
62032014-10-23 Marek Polacek <polacek@redhat.com>
6204
6205 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
6206 in unsigned type.
6207
d95a2703
JJ
62082014-10-22 Jakub Jelinek <jakub@redhat.com>
6209 Yury Gribov <y.gribov@samsung.com>
6210
6211 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
6212 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
6213 instead of flag_sanitize_recover as bool flag.
6214
8e6ef852
KY
62152014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
6216
6217 * cilk.c: Revert previous change.
6218
948cf550
IZ
62192014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
6220
6221 PR c/63307
6222 * cilk.c: Include vec.h.
6223 (struct cilk_decls): New structure.
6224 (wrapper_parm_cb): Split this function to...
6225 (fill_decls_vec): ...this...
6226 (create_parm_list): ...and this.
6227 (compare_decls): New function.
6228 (for_local_cb): Remove.
6229 (wrapper_local_cb): Ditto.
6230 (build_wrapper_type): For now first traverse and fill vector of
6231 declarations then sort it and then deal with sorted vector.
6232 (cilk_outline): Ditto.
6233 (declare_one_free_variable): Ditto.
6234
92574c7c
MP
62352014-10-17 Marek Polacek <polacek@redhat.com>
6236
6237 * c-opts.c (c_common_post_options): Set warn_implicit_int.
6238 * c.opt (Wimplicit-int): Initialize to -1.
6239
83685514
AM
62402014-10-16 Andrew MacLeod <amacleod@redhat.com>
6241
6242 * c-pragma.c: Adjust include files.
6243 * c-semantics.c: Likewise.
6244
5b8300ea
DD
62452014-10-16 DJ Delorie <dj@redhat.com>
6246
6247 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
6248 multiples of bytes.
6249
5f83e90b
JM
62502014-10-14 Jason Merrill <jason@redhat.com>
6251
6252 PR c++/63455
6253 * c-common.h (CPP_PREPARSED_EXPR): New.
6254 (N_CP_TTYPES): Adjust.
6255
d73326ca
MP
62562014-10-15 Marek Polacek <polacek@redhat.com>
6257
6258 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
6259
78a7c317
DD
62602014-10-14 DJ Delorie <dj@redhat.com>
6261
6262 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
6263 types, not just __int128.
6264 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
6265 types, not just __int128.
6266 (cpp_atomic_builtins): Round pointer sizes up.
6267 (type_suffix): Use type precision, not specific types.
6268 * c-common.c (c_common_reswords): Remove __int128 special case.
6269 (c_common_type_for_size): Check for all __intN types, not just
6270 __int128.
6271 (c_common_type_for_mode): Likewise.
6272 (c_common_signed_or_unsigned_type): Likewise.
6273 (c_build_bitfield_integer_type): Likewise.
6274 (c_common_nodes_and_builtins): Likewise.
6275 (keyword_begins_type_specifier): Likewise.
6276 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
6277 __intN variants.
6278
2a22f99c
TS
62792014-10-12 Trevor Saunders <tsaunders@mozilla.com>
6280
6281 * c-common.c: Use hash_table instead of hashtab.
6282
2a8ef767
ESR
62832014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
6284
adfac8df 6285 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
6286 C++11 section.
6287
3c9aabbd
MG
62882014-10-03 Marc Glisse <marc.glisse@inria.fr>
6289
6290 PR c++/54427
6291 PR c++/57198
6292 PR c++/58845
6293 * c-common.c (warn_logical_operator): Punt for vectors.
6294
a15f7cb8
ESR
62952014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
6296
6297 Implement SD-6: SG10 Feature Test Recommendations
6298 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
6299 macros and the __has_header macro.
6300
8d0cf15e
JM
63012014-09-30 Jason Merrill <jason@redhat.com>
6302
dd5d5481
JM
6303 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
6304 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
6305 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
6306
b752325e
JM
6307 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
6308 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
6309
8d0cf15e
JM
6310 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
6311 * c-common.c (c_common_reswords): Remove __is_convertible_to.
6312
083e891e
MP
63132014-09-24 Marek Polacek <polacek@redhat.com>
6314
6315 PR c/61405
6316 PR c/53874
6317 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
6318
7861b648
AK
63192014-09-23 Andi Kleen <ak@linux.intel.com>
6320
6321 * c-common.c (handle_no_reorder_attribute): New function.
6322 (c_common_attribute_table): Add no_reorder attribute.
6323
9a79452d
JM
63242014-09-22 Joseph Myers <joseph@codesourcery.com>
6325
6326 * c-cppbuiltin.c (c_cpp_builtins): Define
6327 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
6328 modes.
6329
dd69f047
JM
63302014-09-18 Joseph Myers <joseph@codesourcery.com>
6331
6332 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
6333 for supported floating-point modes.
6334
737a4826
MLI
63352014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6336
6337 * c.opt (Wpsabi): Use LangEnabledBy.
6338 * c-opts.c (c_common_handle_option): Do not handle here.
6339
8cc4b7a2
JM
63402014-09-12 Joseph Myers <joseph@codesourcery.com>
6341
6342 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
6343 macros for floating-point modes.
6344
179b5a55
MG
63452014-09-11 Marc Glisse <marc.glisse@inria.fr>
6346
6347 PR target/58757
6348 * c-cppbuiltin.c (builtin_define_float_constants): Correct
6349 __*_DENORM_MIN__ without denormals.
6350
570a11fe
JJ
63512014-09-10 Jakub Jelinek <jakub@redhat.com>
6352
6353 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
6354 ubsan_instrument_vla, ubsan_instrument_return): Adjust
6355 ubsan_create_data callers.
6356 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
6357 index is constant or BIT_AND_EXPR with constant mask and is
6358 small enough for the bound.
6359 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
6360 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
6361
b559c810
MLI
63622014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
6363
6364 * c.opt: Add CppReason to various flags.
6365 (Wdate-time): Re-sort.
6366 * c-common.c: Include c-common.h earlier.
6367 (struct reason_option_codes_t): Delete.
6368 (c_option_controlling_cpp_error): Prefix global type and struct
6369 with cpp_.
6370
1ef33fd4
MLI
63712014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
6372
6373 * c.opt (Wnormalized): New.
6374 (Wnormalized=): Use Enum and Reject Negative.
6375 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
6376
66bb34c0
JM
63772014-09-08 Joseph Myers <joseph@codesourcery.com>
6378
6379 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
6380 digits of floating-point modes if -fbuilding-libgcc.
6381
53d68b9f
JM
63822014-09-05 Joseph Myers <joseph@codesourcery.com>
6383
6384 * c-cppbuiltin.c (c_cpp_builtins): Also define
6385 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
6386 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
6387 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
6388 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
6389 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
6390 __LIBGCC_STACK_GROWS_DOWNWARD__,
6391 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
6392 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
6393 __LIBGCC_DWARF_FRAME_REGISTERS__,
6394 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
6395 __LIBGCC_STACK_POINTER_REGNUM__ and
6396 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
6397 (builtin_define_with_value): Handle backslash-escaping in string
6398 macro values.
6399
f65586dc
RB
64002014-09-05 Richard Biener <rguenther@suse.de>
6401
6402 PR middle-end/63148
6403 * c-format.c (check_format_arg): Properly handle
6404 effectively signed POINTER_PLUS_EXPR offset.
6405
2b71f4a4
MLI
64062014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
6407
6408 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
6409 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
6410 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
6411 and Init.
6412 * c-opts.c (c_common_handle_option): Do not handle here.
6413 (sanitize_cpp_opts): Likewise.
6414 * c-common.c (struct reason_option_codes_t): Handle
6415 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
6416
d2e4feca
MP
64172014-09-03 Marek Polacek <polacek@redhat.com>
6418
6419 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
6420
9a771876
JJ
64212014-09-02 Jakub Jelinek <jakub@redhat.com>
6422 Balaji V. Iyer <balaji.v.iyer@intel.com>
6423 Igor Zamyatin <igor.zamyatin@intel.com>
6424
6425 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
6426 * c-common.c (c_common_reswords): Added _Cilk_for.
6427 * c-common.h (enum rid): Added RID_CILK_FOR.
6428 (cilk_for_number_of_iterations): Add declaration.
6429 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
6430 CILK_FOR.
6431 * c-pragma.c (init_pragma): Register "grainsize" pragma.
6432 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
6433
81b5d104
MLI
64342014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
6435
6436 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
6437 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
6438 Wundef): Use CPP, Var and Init.
6439 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
6440
b753b37b
MLI
64412014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
6442
6443 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
6444 * c-opts.c (c_common_handle_option): Do not handle here.
6445
028aee17
JM
64462014-08-25 Jason Merrill <jason@redhat.com>
6447
6448 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
6449 -std=c++14 and -std=gnu++14, rather than the reverse.
6450 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
6451 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
6452 * c-common.h (cxx_dialect): Remove cxx1y.
6453
e4276ba5
ESR
64542014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
6455
6456 * c-common.h (enum cxx_dialect): Add cxx14.
6457 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
6458 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
6459 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
6460
a545cacd
JM
64612014-08-22 Jason Merrill <jason@redhat.com>
6462
6463 * c.opt (std=gnu++17): Fix alias.
6464
59ea0364
MP
64652014-08-22 Marek Polacek <polacek@redhat.com>
6466
6467 PR c++/62199
6468 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
6469 check for vector types. Drop LHS argument.
6470 * c-common.h (warn_logical_not_parentheses): Adjust.
6471
596e808c
MLI
64722014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
6473
6474 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
6475 (Wmultichar): Likewise.
6476 (Wdate-time): Use C-family languages instead of Common. Use CPP
6477 and Var.
6478 * c-opts.c (c_common_handle_option): Do not handle the above
6479 options here.
6480 (sanitize_cpp_opts): Likewise.
6481
18767f65
MLI
64822014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
6483
6484 PR fortran/44054
6485 * c-opts.c: Include tree-diagnostics.h.
6486 (c_diagnostic_finalizer): New.
6487 (c_common_initialize_diagnostics): Use it.
6488
b4413594
MLI
64892014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
6490
6491 PR preprocessor/51303
6492 * c-common.c (struct reason_option_codes_t option_codes):
6493 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
6494
43f9a13c
MLI
64952014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
6496
6497 PR c/60975
6498 PR c/53063
6499 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
6500 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
6501 (c_common_post_options): Call init_global_opts_from_cpp.
6502 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
6503
04159acf
MP
65042014-08-19 Marek Polacek <polacek@redhat.com>
6505
6506 PR c++/62153
6507 * c-common.c (maybe_warn_bool_compare): New function.
6508 * c-common.h (maybe_warn_bool_compare): Declare.
6509 * c.opt (Wbool-compare): New option.
6510
35aff4fb
MP
65112014-08-19 Marek Polacek <polacek@redhat.com>
6512
6513 * c.opt (Wc99-c11-compat): New option.
6514
177cce46
MP
65152014-08-19 Marek Polacek <polacek@redhat.com>
6516
6517 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
6518 to warn_c90_c99_compat.
6519 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
6520 to -1.
6521
6ae9194f
MLI
65222014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
6523 Steven Bosscher <steven@gcc.gnu.org>
6524
6525 PR c/52952
6526 * c-format.c: Add extra_arg_loc and format_string_loc to struct
6527 format_check_results.
6528 (check_function_format): Use true and add comment for boolean
6529 argument.
6530 (finish_dollar_format_checking): Use explicit location when warning.
6531 (check_format_info): Likewise.
6532 (check_format_arg): Set extra_arg_loc and format_string_loc.
6533 (check_format_info_main): Use explicit location when warning.
6534 (check_format_types): Pass explicit location.
6535 (format_type_warning): Likewise.
6536
8e54f6d3
MLI
65372014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6538
6539 PR fortran/44054
6540 * c-format.c: Handle Fortran flags.
6541
cd4e76fc
IZ
65422014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
6543
6544 PR other/61962
6545 * array-notation-common.c (find_rank): Added handling for other
6546 types of references.
6547
f3bede71
MP
65482014-08-10 Marek Polacek <polacek@redhat.com>
6549
6550 PR c/51849
6551 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
6552 * c.opt (Wc90-c99-compat): Add option.
6553
9f25a338
TS
65542014-08-07 Trevor Saunders <tsaunders@mozilla.com>
6555
6556 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
6557
62e4eb35
MP
65582014-08-03 Marek Polacek <polacek@redhat.com>
6559
ab20d992 6560 * c-common.c (check_case_value): Add location_t parameter. Use it.
62e4eb35
MP
6561 (c_add_case_label): Pass loc to check_case_value.
6562
b787e7a2
TS
65632014-08-02 Trevor Saunders <tsaunders@mozilla.com>
6564
6565 * cilk.c: Use hash_map instead of pointer_map.
6566
6e2830c3
TS
65672014-08-02 Trevor Saunders <tsaunders@mozilla.com>
6568
6569 * c-gimplify.c: Use hash_set instead of pointer_set.
6570
a7ee52fb
IZ
65712014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
6572
6573 PR middle-end/61455
6574 * array-notation-common.c (extract_array_notation_exprs): Handling
6575 of DECL_EXPR added.
6576
944fa280
JJ
65772014-08-01 Jakub Jelinek <jakub@redhat.com>
6578
6579 * c-common.h (min_align_of_type): Removed prototype.
6580 * c-common.c (min_align_of_type): Removed.
6581 * c-ubsan.h (ubsan_maybe_instrument_reference,
6582 ubsan_maybe_instrument_member_call): New prototypes.
6583 * c-ubsan.c: Include stor-layout.h and builtins.h.
6584 (ubsan_maybe_instrument_reference_or_call,
6585 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
6586 functions.
6587
b4dfdc11
MG
65882014-07-31 Marc Glisse <marc.glisse@inria.fr>
6589
6590 PR c++/60517
6591 * c.opt (-Wreturn-local-addr): Move to common.opt.
6592
a41844e5
JM
65932014-07-30 Jason Merrill <jason@redhat.com>
6594
6595 PR c++/61659
6596 PR c++/61687
6597 Revert:
6598 * c.opt (-fuse-all-virtuals): New.
6599
976d5a22
TT
66002014-07-30 Tom Tromey <tromey@redhat.com>
6601
6602 PR c/59855
6603 * c.opt (Wdesignated-init): New option.
6604 * c-common.c (c_common_attribute_table): Add "designated_init".
6605 (handle_designated_init): New function.
6606
cdc94aca
MP
66072014-07-24 Marek Polacek <polacek@redhat.com>
6608
6609 PR c/57653
6610 * c-opts.c (c_finish_options): If -imacros is in effect, return.
6611
f41373b6
DS
66122014-07-16 Dodji Seketeli <dodji@redhat.com>
6613
6614 PR preprocessor/60723 - missing system-ness marks for macro tokens
6615 * c-ppoutput.c (struct print::prev_was_system_token): New data
6616 member.
6617 (init_pp_output): Initialize it.
6618 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
6619 (do_line_change): Return a flag saying if a line marker was
6620 emitted or not.
6621 (scan_translation_unit): Detect if the system-ness of the token we
6622 are about to emit is different from the one of the previously
6623 emitted token. If so, emit a line marker. Avoid emitting useless
6624 adjacent line markers. Avoid emitting line markers for tokens
6625 originating from the expansion of built-in macros.
6626 (scan_translation_unit_directives_only): Adjust.
6627
4d661eaa
MP
66282014-07-15 Marek Polacek <polacek@redhat.com>
6629
6630 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
6631 TYPE_MAX_VALUE is NULL.
6632
b108f48f
JJ
66332014-07-14 Jakub Jelinek <jakub@redhat.com>
6634
6635 PR middle-end/61294
6636 * c.opt (Wmemset-transposed-args): New warning.
6637
c0221884
JM
66382014-07-10 Jason Merrill <jason@redhat.com>
6639
6640 PR c++/61659
6641 PR c++/61687
6642 * c.opt (-fuse-all-virtuals): New.
6643
63dfbb95
RB
66442014-07-09 Richard Biener <rguenther@suse.de>
6645
6646 PR c-family/61741
6647 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
6648 using unsigned arithmetic if overflow does not wrap instead of
6649 if overflow is undefined.
6650
773ec47f
MP
66512014-07-06 Marek Polacek <polacek@redhat.com>
6652
6653 PR c/6940
6654 * c.opt (Wsizeof-array-argument): New option.
6655
00a7ba58
JJ
66562014-07-03 Jakub Jelinek <jakub@redhat.com>
6657
b1726d6c 6658 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
00a7ba58
JJ
6659 comments->count <= 1, as comments->entries might be NULL.
6660
52ec0ea3
MP
66612014-07-01 Marek Polacek <polacek@redhat.com>
6662
6663 * c.opt (Wint-conversion): New option.
6664
d5c3d343
MP
66652014-07-01 Marek Polacek <polacek@redhat.com>
6666
6667 PR c/58286
6668 * c.opt (Wincompatible-pointer-types): New option.
6669
6e7ceb17
PC
66702014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
6671
6672 PR c++/51400
6673 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
6674 Do not discard TYPE_QUALS of type.
6675
da73100b
JM
66762014-06-26 Jason Merrill <jason@redhat.com>
6677
6678 * c-common.h (enum cxx_dialect): Add cxx1z.
6679 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
6680 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
6681
08eedf75
TJ
66822014-06-26 Teresa Johnson <tejohnson@google.com>
6683
6684 * c-common.h (get_dump_info): Declare.
6685 * c-gimplify.c (c_genericize): Use saved dump files.
6686 * c-opts.c (c_common_parse_file): Begin and end dumps
6687 once around parsing invocation.
6688 (get_dump_info): New function.
6689
7b56b2f8
MP
66902014-06-23 Marek Polacek <polacek@redhat.com>
6691 Andrew MacLeod <amacleod@redhat.com>
6692
6693 PR c/61553
6694 * c-common.c (get_atomic_generic_size): Don't segfault if the
6695 type doesn't have a size.
6696
0e37a2f3
MP
66972014-06-20 Marek Polacek <polacek@redhat.com>
6698
6699 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
6700 (ubsan_walk_array_refs_r): New function.
6701 (c_genericize): Instrument array bounds.
6702 * c-ubsan.c: Include "internal-fn.h".
6703 (ubsan_instrument_division): Mark instrumented arrays as having
6704 side effects. Adjust ubsan_type_descriptor call.
6705 (ubsan_instrument_shift): Likewise.
6706 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
6707 (ubsan_instrument_bounds): New function.
6708 (ubsan_array_ref_instrumented_p): New function.
6709 (ubsan_maybe_instrument_array_ref): New function.
6710 * c-ubsan.h (ubsan_instrument_bounds): Declare.
6711 (ubsan_array_ref_instrumented_p): Declare.
6712 (ubsan_maybe_instrument_array_ref): Declare.
6713
67142014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
6715
6716 PR lto/61123
6717 * c.opt (fshort-enums): Add to LTO.
6718 * c.opt (fshort-wchar): Likewise.
6719
5c3d09f7
MP
67202014-06-16 Marek Polacek <polacek@redhat.com>
6721
6722 PR c/60439
6723 * c.opt (Wswitch-bool): Add Var.
6724
9cf32741
JJ
67252014-06-12 Jakub Jelinek <jakub@redhat.com>
6726
6727 PR middle-end/61486
6728 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
6729 #pragma omp target teams or
6730 #pragma omp {,target }teams distribute simd.
6731
62984918
JM
67322014-06-12 Jason Merrill <jason@redhat.com>
6733
6734 * c.opt (Wabi=, fabi-compat-version): New.
6735 * c-opts.c (c_common_handle_option): Handle -Wabi=.
6736 (c_common_post_options): Handle flag_abi_compat_version default.
6737 Disallow -fabi-compat-version=1.
6738 * c-common.h (abi_version_crosses): New.
6739
f961457f
JH
67402014-06-11 Jan Hubicka <hubicka@ucw.cz>
6741
adfac8df 6742 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
6743 section names that are no longer trees.
6744
92d28cbb
JJ
67452014-06-10 Jakub Jelinek <jakub@redhat.com>
6746
6747 PR fortran/60928
6748 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
6749 (omp_pragmas): ... back here.
6750
742938c9
MP
67512014-06-05 Marek Polacek <polacek@redhat.com>
6752
6753 PR c/49706
6754 * c-common.c (warn_logical_not_parentheses): New function.
6755 * c-common.h (warn_logical_not_parentheses): Declare.
6756 * c.opt (Wlogical-not-parentheses): New option.
6757
9d548dfb
MP
67582014-06-04 Marek Polacek <polacek@redhat.com>
6759
6760 PR c/30020
6761 * c-common.c (check_case_bounds): Add location parameter.
6762 Use it.
6763 (c_add_case_label): Pass loc to check_case_bounds.
6764
fedfecef
MP
67652014-06-03 Marek Polacek <polacek@redhat.com>
6766
6767 PR c/60439
6768 * c.opt (Wswitch-bool): New option.
6769
f6a7cffc
TS
67702014-05-22 Thomas Schwinge <thomas@codesourcery.com>
6771
040d18b6
TS
6772 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
6773 Remove prototypes.
6774 (record_types_used_by_current_var_decl): Move prototype to where
6775 it belongs.
6776
f6a7cffc
TS
6777 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
6778 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
6779 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
6780
632f2871
RS
67812014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
6782
6783 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
6784 * c-common.c (c_common_nodes_and_builtins): Don't initialize
6785 void_zero_node.
6786 * c-pretty-print.c (pp_c_void_constant): New function.
6787 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
6788 (c_pretty_printer::expression): Handle VOID_CST.
6789 * cilk.c (extract_free_variables): Likewise.
6790 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
6791 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
6792
766090c2
TS
67932014-05-17 Trevor Saunders <tsaunders@mozilla.com>
6794
6795 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
6796 * c-pragma.c (push_alignment): Adjust.
6797 (handle_pragma_push_options): Likewise.
6798
661a0813
MP
67992014-05-09 Marek Polacek <polacek@redhat.com>
6800
6801 PR c/50459
6802 * c-common.c (check_user_alignment): Return -1 if alignment is error
6803 node.
6804 (handle_aligned_attribute): Don't call default_conversion on
6805 FUNCTION_DECLs.
6806 (handle_vector_size_attribute): Likewise.
6807 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
6808 (handle_sentinel_attribute): Call default_conversion and allow even
6809 integral types as an argument.
6810
2793eeab
MP
68112014-05-08 Marek Polacek <polacek@redhat.com>
6812
6813 PR c/61053
6814 * c-common.c (min_align_of_type): New function factored out from...
6815 (c_sizeof_or_alignof_type): ...here.
6816 * c-common.h (min_align_of_type): Declare.
6817
f827930a
MP
68182014-05-08 Marek Polacek <polacek@redhat.com>
6819
6820 PR c/61077
6821 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
6822 parameter type of main.
6823
ca49b74e
DD
68242014-05-07 DJ Delorie <dj@redhat.com>
6825
6826 * c-cppbuiltin.c (print_bits_of_hex): New.
6827 (builtin_define_type_minmax): Print values using hex so as not to
6828 require a pre-computed list of string values.
6829
1d60af08
KZ
68302014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
6831 Mike Stump <mikestump@comcast.net>
6832 Richard Sandiford <rdsandiford@googlemail.com>
6833
6834 * c-ada-spec.c: Include wide-int.h.
6835 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
6836 (dump_generic_ada_node): Use wide-int interfaces.
6837 * c-common.c: Include wide-int-print.h.
6838 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
6839 (pointer_int_sum): Use wide-int interfaces.
6840 (c_common_nodes_and_builtins): Use make_int_cst.
6841 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
6842 (handle_alloc_size_attribute): Use wide-int interfaces.
6843 (get_nonnull_operand): Likewise.
6844 * c-format.c (get_constant): Use tree_fits_uhwi_p.
6845 * c-lex.c: Include wide-int.h.
6846 (narrowest_unsigned_type): Take a widest_int rather than two
6847 HOST_WIDE_INTs.
6848 (narrowest_signed_type): Likewise.
6849 (interpret_integer): Update accordingly. Use wide-int interfaces.
6850 (lex_charconst): Use wide-int interfaces.
6851 * c-pretty-print.c: Include wide-int.h.
6852 (pp_c_integer_constant): Use wide-int interfaces.
6853 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
6854 INT_CST_LT_UNSIGNED.
6855
b15458be
RB
68562014-05-06 Richard Biener <rguenther@suse.de>
6857
6858 * c-opts.c (c_common_post_options): For -freestanding,
6859 -fno-hosted and -fno-builtin disable pattern recognition
6860 if not enabled explicitely.
6861
6577374e
MP
68622014-05-02 Marek Polacek <polacek@redhat.com>
6863
6864 * c.opt (Wsizeof-pointer-memaccess): Describe option.
6865
d00887e8
MP
68662014-05-01 Marek Polacek <polacek@redhat.com>
6867
6868 PR c/43245
6869 * c.opt (Wdiscarded-qualifiers): Add.
6870
f8ed5150
MP
68712014-04-30 Marek Polacek <polacek@redhat.com>
6872
6873 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
6874 INT_MIN / -1 sanitization only for integer types.
6875
45484dcf
MP
68762014-04-25 Marek Polacek <polacek@redhat.com>
6877
6878 PR c/18079
6879 * c-common.c (handle_noinline_attribute): Warn if the attribute
6880 conflicts with always_inline attribute.
6881 (handle_always_inline_attribute): Warn if the attribute conflicts
6882 with noinline attribute.
6883
38e514c0
MP
68842014-04-25 Marek Polacek <polacek@redhat.com>
6885
6886 PR c/60156
6887 * c-common.c (check_main_parameter_types): Warn about variadic main.
6888
44875f92
MS
68892014-04-24 Mike Stump <mikestump@comcast.net>
6890
6891 * c.opt (Wshadow-ivar): Default to on.
6892
dcaaa5a0
DP
68932014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
6894
6895 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
6896
c07d7c02
MP
68972014-04-23 Marek Polacek <polacek@redhat.com>
6898
6899 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
6900
1c33c9b7
JJ
69012014-04-22 Jakub Jelinek <jakub@redhat.com>
6902
6903 PR sanitizer/60275
6904 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
6905 if flag_sanitize_undefined_trap_on_error.
6906 (ubsan_instrument_division, ubsan_instrument_shift,
6907 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
6908 if !flag_sanitize_recover.
6909
793c625f
MG
69102014-04-22 Marc Glisse <marc.glisse@inria.fr>
6911
6912 PR libstdc++/43622
6913 * c-common.c (registered_builtin_types): Make non-static.
6914 * c-common.h (registered_builtin_types): Declare.
6915
b0f1bf36 69162014-04-14 Richard Biener <rguenther@suse.de>
ab20d992 6917 Marc Glisse <marc.glisse@inria.fr>
b0f1bf36
RB
6918
6919 PR c/60819
6920 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
6921 apply may-alias the scalar pointer type when applicable.
6922
3b07fa4a
IZ
69232014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
6924
6925 PR middle-end/60467
6926 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
6927 as possible argument for Cilk_spawn.
6928
cbbd2b1c
TB
69292014-04-11 Tobias Burnus <burnus@net-b.de>
6930
6931 PR c/60194
6932 * c.opt (Wformat-signedness): Add
6933 * c-format.c(check_format_types): Use it.
6934
6415bd5d
JM
69352014-04-11 Jason Merrill <jason@redhat.com>
6936
6937 PR c++/57926
6938 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
6939 default_conversion for an array argument.
6940
6525783a
MP
69412014-04-08 Marek Polacek <polacek@redhat.com>
6942
6943 PR sanitizer/60745
6944 * c-ubsan.c: Include asan.h.
6945 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
6946
880a467b
NS
69472014-04-03 Nathan Sidwell <nathan@codesourcery.com>
6948
6949 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
6950
7b59ff2d
MP
69512014-04-02 Marek Polacek <polacek@redhat.com>
6952
6953 * c-common.h (c_expand_expr): Remove declaration.
6954
8edbfaa6
JJ
69552014-03-28 Jakub Jelinek <jakub@redhat.com>
6956
6957 PR c++/60689
6958 * c-common.c (add_atomic_size_parameter): When creating new
6959 params vector, push the size argument first.
6960
07d72e1d
JJ
69612014-03-26 Jakub Jelinek <jakub@redhat.com>
6962
6963 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
6964 ubsan_instrument_vla, ubsan_instrument_return): Adjust
6965 ubsan_create_data callers.
6966
b35e0fa0
JJ
69672014-03-22 Jakub Jelinek <jakub@redhat.com>
6968
6969 PR debug/60603
6970 * c-opts.c (c_finish_options): Restore cb_file_change call to
6971 <built-in>.
6972
39a1ebb3
JJ
69732014-03-13 Jakub Jelinek <jakub@redhat.com>
6974
6975 PR middle-end/36282
6976 * c-pragma.c (apply_pragma_weak): Only look at
6977 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
6978 DECL_ASSEMBLER_NAME_SET_P (decl).
6979 (maybe_apply_pending_pragma_weaks): Exit early if
6980 vec_safe_is_empty (pending_weaks) rather than only when
6981 !pending_weaks.
6982 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
6983 set assembler name back to NULL afterwards.
6984
a07f6ed2
JM
69852014-03-11 Jason Merrill <jason@redhat.com>
6986
6987 * c.opt: Add -std=gnu++14.
6988
75b107f5
IB
69892014-03-11 Ian Bolton <ian.bolton@arm.com>
6990
6991 * c-opts.c (c_common_post_options): Don't override
6992 -ffp-contract=fast if unsafe-math-optimizations is on.
6993
f42c637e
PM
69942014-03-08 Paulo Matos <paulo@matos-sorge.com>
6995
22b15758 6996 * c.opt: Enable LTO FE for fshort-double.
f42c637e 6997
70e24808
JM
69982014-03-07 Jason Merrill <jason@redhat.com>
6999
7000 * c.opt: Add -std=c++14.
7001
3af9c5e9
MP
70022014-03-06 Marek Polacek <polacek@redhat.com>
7003
7004 PR c/60197
7005 * cilk.c (contains_cilk_spawn_stmt): New function.
7006 (contains_cilk_spawn_stmt_walker): Likewise.
7007 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
7008 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
7009
b3bdf019
JJ
70102014-03-03 Jakub Jelinek <jakub@redhat.com>
7011
7012 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
7013 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
7014 even when flag_preprocess_only.
7015
ca7e759d
JM
70162014-02-26 Jason Merrill <jason@redhat.com>
7017
7018 PR c++/59231
7019 PR c++/11586
7020 * c-common.c (shorten_compare): Don't check
7021 c_inhibit_evaluation_warnings.
7022
28e41874
JJ
70232014-02-19 Jakub Jelinek <jakub@redhat.com>
7024
cca615af
JJ
7025 PR c/37743
7026 * c-common.c (c_common_nodes_and_builtins): When initializing
7027 c_uint{16,32,64}_type_node, also set corresponding
7028 uint{16,32,64}_type_node to the same value.
7029
28e41874
JJ
7030 PR c++/60267
7031 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
7032 for PRAGMA_IVDEP if flag_preprocess_only.
7033
c2bf53a1
JJ
70342014-02-12 Jakub Jelinek <jakub@redhat.com>
7035
7036 PR c/60101
7037 * c-common.c (merge_tlist): If copy is true, call new_tlist,
7038 if false, add ADD itself, rather than vice versa.
7039 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
7040 copy. For SAVE_EXPR, only call merge_tlist once.
7041
8fcbce72
JJ
70422014-02-08 Jakub Jelinek <jakub@redhat.com>
7043
7044 PR middle-end/60092
7045 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
7046 and tree_to_uhwi.
7047 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
7048 functions.
7049 (c_common_attribute_table): Add alloc_align and assume_aligned
7050 attributes.
7051
0a756a3f
MP
70522014-02-06 Marek Polacek <polacek@redhat.com>
7053
7054 PR c/60087
7055 * c-common.c (warn_for_sign_compare): Call warning_at with location
7056 instead of warning.
7057
7ec4847a
MP
70582014-02-05 Marek Polacek <polacek@redhat.com>
7059
7060 PR c/53123
7061 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
7062 statement.
7063
66f20604
MP
70642014-02-04 Marek Polacek <polacek@redhat.com>
7065
7066 PR c/60036
7067 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
7068 SAVE_EXPR.
7069
5d77fb19
MG
70702014-02-03 Marc Glisse <marc.glisse@inria.fr>
7071
7072 PR c++/53017
7073 PR c++/59211
7074 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
7075 handle_vector_size_attribute, handle_nonnull_attribute): Call
7076 default_conversion on the attribute argument.
7077 (handle_nonnull_attribute): Increment the argument number.
7078
81e5eca8
MP
70792014-01-31 Marek Polacek <polacek@redhat.com>
7080
7081 PR c/59963
7082 * c-common.c (add_atomic_size_parameter): Pass vNULL to
7083 build_function_call_vec.
7084 (resolve_overloaded_builtin): Likewise.
7085 * c-common.h (build_function_call_vec): Adjust declaration.
7086
68fca595
MP
70872014-01-30 Marek Polacek <polacek@redhat.com>
7088
7089 PR c/59940
7090 * c-common.h (unsafe_conversion_p): Adjust declaration.
7091 (warnings_for_convert_and_check): Likewise.
7092 (convert_and_check): Likewise.
7093 * c-common.c (unsafe_conversion_p): Add location parameter. Call
7094 expansion_point_location_if_in_system_header on it.
7095 (warnings_for_convert_and_check): Add location parameter. Call
7096 expansion_point_location_if_in_system_header on it. Use it.
7097 (convert_and_check): Add location parameter. Use it.
7098 (conversion_warning): Likewise.
7099 (c_add_case_label): Adjust convert_and_check calls.
7100 (scalar_to_vector): Adjust unsafe_conversion_p calls.
7101
b72271b9
BI
71022014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
7103
7104 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
7105 flag_cilkplus.
7106 * c-pragma.c (init_pragma): Likewise.
7107 * c.opt: Likewise.
7108
393e8e8b
MP
71092014-01-23 Marek Polacek <polacek@redhat.com>
7110
7111 PR c/59846
7112 * c-common.c (shorten_compare): Add location_t parameter.
7113 * c-common.h (shorten_binary_op): Adjust declaration.
7114
f04dda30
MP
71152014-01-23 Marek Polacek <polacek@redhat.com>
7116
7117 PR c/58346
7118 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
7119 * c-common.h: Declare it.
7120
621955cb
EB
71212014-01-20 Eric Botcazou <ebotcazou@adacore.com>
7122
7123 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
7124 * c-ada-spec.c (dump_ads): Likewise.
7125 (cpp_check): Likewise.
7126 (dump_ada_specs): Likewise.
7127
71282014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
7129
7130 PR c++/49718
7131 * c-common.c (handle_no_instrument_function_attribute): Allow
7132 no_instrument_function attribute in class member
7133 definition/declaration.
7134
241f845a
JJ
71352014-01-15 Jakub Jelinek <jakub@redhat.com>
7136
7137 PR c/58943
7138 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
7139 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
7140 being COMPOUND_EXPR.
7141 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
7142 operand a SAVE_EXPR and second MODIFY_EXPR.
7143
e83b8e2e
JJ
71442014-01-09 Jakub Jelinek <jakub@redhat.com>
7145
7146 PR target/58115
7147 * c-pch.c (c_common_write_pch): Call
7148 prepare_target_option_nodes_for_pch.
7149
23a5b65a
RS
71502014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
7151
7152 Update copyright years
7153
f9030485
RS
71542014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
7155
7156 * array-notation-common.c, c-cilkplus.c: Use the standard form for
7157 the copyright notice.
7158
f2aa696b
EB
71592013-12-28 Eric Botcazou <ebotcazou@adacore.com>
7160
7161 * c-ada-spec.c (print_constructor): New function.
7162 (print_destructor): Retrieve the origin of the destructor.
7163 (print_ada_declaration): Revamp handling of constructors/destructors.
7164
3f8257db 71652013-12-23 Stuart Hastings <stuart@apple.com>
1f26ac87
JM
7166 Bill Maddox <maddox@google.com>
7167 Jason Merrill <jason@redhat.com>
7168
7169 * c.opt: Add -fdeclone-ctor-dtor.
7170 * c-opts.c (c_common_post_options): Default to on iff -Os.
7171
41958c28
BI
71722013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
7173
7174 * c-common.c (c_common_attribute_table): Added "cilk simd function"
7175 attribute.
7176 * c-pragma.h (enum pragma_cilk_clause): Remove.
ab20d992 7177 (enum pragma_omp_clause): Added the following fields:
41958c28
BI
7178 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
7179 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
7180 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
7181 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
7182 PRAGMA_CILK_CLAUSE_UNIFORM.
7183
b1726d6c 7184
12893402
BI
71852013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
7186
7187 * cilk.c (cilk_outline): Made this function non-static.
7188 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
7189 (create_cilk_wrapper): Added a new parameter: a function pointer.
7190 (c_install_body_w_frame_cleanup): Remove
7191 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
7192 * c-common.h (cilk_outline): New prototype.
7193 (gimplify_cilk_spawn): Removed two parameters.
7194 (cilk_install_body_with_frame_cleanup): New prototype.
7195 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
7196 CILK_SPAWN_STMT case.
7197
085b42ed
BS
71982013-12-11 Bernd Schmidt <bernds@codesourcery.com>
7199
2ce064c3
BS
7200 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
7201
085b42ed
BS
7202 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
7203 (int_array_type_node): Remove.
7204 * c-common.c (c_common_nodes_and_builtins): Don't build it.
7205
9e36c9ed
MP
72062013-12-05 Marek Polacek <polacek@redhat.com>
7207
7208 PR c/52023
7209 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
7210 [ADJUST_FIELD_ALIGN].
7211
296674db
JM
72122013-12-04 Joseph Myers <joseph@codesourcery.com>
7213
7214 PR c/52023
7215 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
7216 and check field alignment if set.
7217 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
7218 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
7219
b1726d6c 72202013-12-04 Jakub Jelinek <jakub@redhat.com>
31e071ae
MP
7221 Marek Polacek <polacek@redhat.com>
7222
7223 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
7224 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
7225
d7947e19
L
72262013-11-29 H.J. Lu <hongjiu.lu@intel.com>
7227
7228 PR c/59309
7229 * cilk.c (gimplify_cilk_spawn): Properly handle function without
7230 arguments.
7231
fad7652e
JJ
72322013-11-29 Jakub Jelinek <jakub@redhat.com>
7233
7234 PR c/59280
7235 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
7236 goto invalid. If it is error_mark_node, don't issue further
7237 diagnostics.
7238
8b5e1202
SO
72392013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
7240
7241 * c.opt (Wopenmp-simd): New.
7242
0a508bb6
JJ
72432013-11-22 Jakub Jelinek <jakub@redhat.com>
7244
7245 * c-ubsan.h (ubsan_instrument_return): New prototype.
7246 * c-ubsan.c (ubsan_instrument_return): New function.
7247
2fb9a547
AM
72482013-11-22 Andrew MacLeod <amacleod@redhat.com>
7249
7250 * c-common.c: Add required include files from gimple.h.
ab20d992
JJ
7251 * c-gimplify.c: Likewise.
7252 * cilk.c: Likewise.
2fb9a547 7253
8400e75e
DM
72542013-11-22 David Malcolm <dmalcolm@redhat.com>
7255
7256 * c-common.c (unsafe_conversion_p): Remove use of
7257 EXPR_LOC_OR_HERE macro.
7258 (conversion_warning): Likewise.
7259 (warnings_for_convert_and_check): Likewise.
7260 (warn_for_collisions_1): Likewise.
7261 (shorten_compare): Likewise, and remove use of in_system_header
7262 macro, using the location from the former.
7263 * c-lex.c (dump_one_header): Remove use of input_filename macro.
7264 (cb_def_pragma): Remove use of in_system_header macro.
7265 (lex_string): Likewise.
7266 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
7267
eb1ce453
KZ
72682013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
7269 Mike Stump <mikestump@comcast.net>
7270 Richard Sandiford <rdsandiford@googlemail.com>
7271
7272 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
7273 instead of TREE_INT_CST_LOW, in cases where there is a protecting
7274 tree_fits_shwi_p or tree_fits_uhwi_p.
7275 (dump_generic_ada_node): Likewise.
7276 * c-format.c (check_format_arg): Likewise.
7277 * c-pretty-print.c (pp_c_integer_constant): Likewise.
7278
6b3b8c27
KZ
72792013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
7280
7281 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
7282
49b0aa18
JC
72832013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
7284
7285 PR c/53001
7286 * c-common.c (unsafe_conversion_p): Make this function
7287 return an enumeration with more detail.
7288 (conversion_warning): Use the new return type of
7289 unsafe_conversion_p to separately warn either about conversions
7290 that lower floating point number precision or about the other
7291 kinds of conversions.
7292 * c-common.h (enum conversion_safety): New enumeration.
8e745a17
JJ
7293 (unsafe_conversion_p): switching return type to
7294 conversion_safety enumeration.
49b0aa18
JC
7295 * c.opt: Adding new warning -Wfloat-conversion and
7296 enabling it with -Wconversion.
7297
b826515a
BS
72982013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
7299
8e745a17
JJ
7300 * c-opts.c: Include plugin.h.
7301 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
b826515a 7302
b9a55b13
MP
73032013-11-19 Marek Polacek <polacek@redhat.com>
7304
7305 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
7306 call.
7307 (ubsan_instrument_shift): Likewise.
7308 (ubsan_instrument_vla): Likewise.
7309
7d362f6c
RS
73102013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
7311
7312 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
7313 cast to unsigned type.
7314
386b1f1f
RS
73152013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
7316
7317 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
7318 tree_low_cst.
7319 (complete_array_type): Update comment to refer to tree_to_[su]hwi
7320 rather than tree_low_cst.
7321
ae7e9ddd
RS
73222013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
7323
7324 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
7325 tree_to_uhwi throughout.
7326
9439e9a1
RS
73272013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
7328
7329 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
7330 tree_low_cst (..., 0) with tree_to_shwi throughout.
7331
cc269bb6
RS
73322013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
7333
7334 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
7335 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
7336
9541ffee
RS
73372013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
7338
7339 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
7340 host_integerp (..., 0) with tree_fits_shwi_p throughout.
7341
c02065fc
AH
73422013-11-15 Aldy Hernandez <aldyh@redhat.com>
7343
7344 * c-cilkplus.c: New file.
7345 * c-common.c (readonly_error): Add location argument.
7346 * c-common.h (readonly_error): Same.
7347 (c_finish_cilk_clauses): Protoize.
7348 (c_check_cilk_loop): Same.
7349 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
7350 Do not fail on error_mark_node.
7351 Abstract increment canonicalization to here...
7352 (c_omp_for_incr_canonicalize_ptr): New.
7353 c-pragma.c (init_pragma): Register "simd" pragma.
7354 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
7355 (enum pragma_cilk_clause): New.
7356
9cc65f15
RS
73572013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
7358
7359 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
7360 wchar_type and host_integerp checks.
7361
18f429e2
AM
73622013-11-14 Andrew MacLeod <amacleod@redhat.com>
7363
7364 * c-common.c: Likewise.
7365 * c-gimplify.c: Likewise.
7366 * cilk.c: Likewise.
7367
d8a2d370
DN
73682013-11-14 Diego Novillo <dnovillo@google.com>
7369
7370 * c-common.c: Include fold-const.h.
7371 Include stor-layout.h.
7372 Include calls.h.
7373 Include stringpool.h.
7374 Include attribs.h.
7375 Include varasm.h.
7376 Include trans-mem.h.
7377 * c-cppbuiltin.c: Include stor-layout.h.
7378 Include stringpool.h.
7379 * c-format.c: Include stringpool.h.
7380 * c-lex.c: Include stringpool.h.
7381 Include stor-layout.h.
7382 * c-pragma.c: Include stringpool.h.
7383 Include attribs.h.
7384 Include varasm.h.
7385 Include gcc-symtab.h.
7386 * c-pretty-print.c: Include stor-layout.h.
7387 Include attribs.h.
7388 * cilk.c: Include stringpool.h.
7389 Include calls.h.
7390
38b7bc7f
JM
73912013-11-13 Joseph Myers <joseph@codesourcery.com>
7392
7393 * c-common.h (enum rid): Add RID_AUTO_TYPE.
7394 * c-common.c (c_common_reswords): Add __auto_type.
7395 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
7396
45b0be94
AM
73972013-11-12 Andrew MacLeod <amacleod@redhat.com>
7398
18f429e2
AM
7399 * c-common.c: Include gimplify.h.
7400 * c-gimplify.c: Likewise.
7401 * cilk.c: Likewise.
7402 * c-omp.c: Include gimple-expr.h instead of gimple.h.
7403 * c-ubsan.c: Don't include gimple.h.
45b0be94 7404
582d9b50
JM
74052013-11-12 Joseph Myers <joseph@codesourcery.com>
7406
7407 * c-common.c (c_common_reswords): Add _Thread_local.
7408
6b28e197
JM
74092013-11-09 Joseph Myers <joseph@codesourcery.com>
7410
7411 * c-common.c (atomic_size_supported_p): New function.
7412 (resolve_overloaded_atomic_exchange)
7413 (resolve_overloaded_atomic_compare_exchange)
7414 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
7415 Use it instead of comparing size with a local list of sizes.
7416
267bac10
JM
74172013-11-07 Andrew MacLeod <amacleod@redhat.com>
7418 Joseph Myers <joseph@codesourcery.com>
7419
7420 * c-common.h (enum rid): Add RID_ATOMIC.
7421 * c-common.c (c_common_reswords): Add _Atomic.
7422 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
7423 (keyword_is_type_qualifier): Accept RID_ATOMIC.
7424 * c-format.c (check_format_types): Check for extra _Atomic
7425 qualifiers in format argument.
7426 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
7427 (pp_c_type_qualifier_list): Mention _Atomic in comment.
7428
5157b91e
TB
74292013-11-06 Tobias Burnus <burnus@net-b.de>
7430
7431 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
7432
6dbe0958
JM
74332013-11-06 Joseph Myers <joseph@codesourcery.com>
7434
7435 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
7436 standards modes.
7437 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
7438 to mean lack of IEEE 754 support.
7439
e8ff5196
TB
74402013-11-05 Tobias Burnus <burnus@net-b.de>
7441
7442 * c.opt (-Wdate-time): New option
7443 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
7444
254a0760
JM
74452013-11-05 Joseph Myers <joseph@codesourcery.com>
7446
7447 * c-cppbuiltin.c (cpp_iec_559_value): Test
7448 flag_excess_precision_cmdline not flag_excess_precision.
7449
6d7f7e0a
TB
74502013-11-05 Tobias Burnus <burnus@net-b.de>
7451
7452 * c.opt (fopenmp-simd): New option.
7453 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
7454 (omp_pragmas): ... this new struct.
7455 (c_pp_lookup_pragma): Also walk omp_pragmas.
7456 (init_pragma): Init pragmas for -fopenmp-simd.
7457
55a7f02f
MP
74582013-11-04 Marek Polacek <polacek@redhat.com>
7459
7460 PR c++/58979
7461 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
7462
9193fb05
JM
74632013-11-04 Joseph Myers <joseph@codesourcery.com>
7464
7465 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
7466 New functions.
7467 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
7468
94159ecf
EB
74692013-11-04 Eric Botcazou <ebotcazou@adacore.com>
7470
7471 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
7472 (dump_ada_specs): Adjust prototype of second callback.
7473 * c-ada-spec.c (cpp_check): New global variable.
7474 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
7475 (print_generic_ada_decl): Likewise.
7476 (has_static_fields): Change return type to bool and add guard.
7477 (has_nontrivial_methods): New predicate.
7478 (is_tagged_type): Change return type to bool.
7479 (separate_class_package): Call has_nontrivial_methods.
7480 (pp_ada_tree_identifier): Minor tweaks.
7481 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
7482 (dump_ada_array_domains): Likewise.
7483 (dump_ada_array_type): Likewise.
7484 (dump_template_types): Remove cpp_check parameter and do not pass it to
7485 dump_generic_ada_node.
7486 (dump_ada_template): Likewise.
7487 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
7488 recursively.
7489 (print_ada_methods): Change return type to integer. Remove cpp_check
7490 parameter and do not pass it down.
7491 (dump_nested_types): Remove cpp_check parameter and do not pass it to
7492 dump_generic_ada_node.
7493 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
7494 accessing methods.
7495 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
7496 down. Use has_nontrivial_methods to recognize C++ classes. Use return
7497 value of print_ada_methods.
7498 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
7499 Set cpp_check to it before invoking dump_ada_nodes.
7500 (dump_ada_specs): Likewise.
7501
b906f4ca
MP
75022013-11-03 Marek Polacek <polacek@redhat.com>
7503
7504 * c-ubsan.c: Don't include hash-table.h.
7505 (ubsan_instrument_vla): New function.
7506 * c-ubsan.h: Declare it.
7507
5e20cdc9
DM
75082013-10-31 David Malcolm <dmalcolm@redhat.com>
7509
7510 Automated part of renaming of symtab_node_base to symtab_node.
7511
7512 Patch autogenerated by rename_symtab.py from
7513 https://github.com/davidmalcolm/gcc-refactoring-scripts
7514 revision 58bb219cc090b2f4516a9297d868c245495ee622
7515
7516 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
7517 symtab_node_base to symtab_node.
7518
7057e645
ESR
75192013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
7520
8e745a17 7521 Implement C++14 digit separators.
7057e645
ESR
7522 * c-lex.c (interpret_float): Remove digit separators from scratch string
7523 before building real literal.
7524
193ea7bc
JJ
75252013-10-30 Jakub Jelinek <jakub@redhat.com>
7526
7527 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
7528
939b37da
BI
75292013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
7530
7531 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
7532 fields.
7533 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
7534 enabled.
7535 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
7536 (insert_cilk_frame): New prototype.
7537 (cilk_init_builtins): Likewise.
7538 (gimplify_cilk_spawn): Likewise.
7539 (c_cilk_install_body_w_frame_cleanup): Likewise.
7540 (cilk_detect_spawn_and_unwrap): Likewise.
7541 (cilk_set_spawn_marker): Likewise.
7542 (build_cilk_sync): Likewise.
7543 (build_cilk_spawn): Likewise.
7544 * cilk.c: New file.
7545
67348ccc
DM
75462013-10-29 David Malcolm <dmalcolm@redhat.com>
7547
7548 Patch autogenerated by refactor_symtab.py from
7549 https://github.com/davidmalcolm/gcc-refactoring-scripts
7550 revision 58bb219cc090b2f4516a9297d868c245495ee622
7551
7552 * c-gimplify.c (c_genericize): Update for conversion of symtab types
7553 to a true class hierarchy.
7554 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
7555
d570872d
RS
75562013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
7557
7558 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
7559
98906124
JL
75602013-10-26 Jeff Law <law@redhat.com>
7561
adfac8df
JJ
7562 * c-common.c (c_define_builtins): Remove mudflap support.
7563 * c.opt: Ignore and warn for mudflap options.
98906124 7564
d73749df 75652013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
7566
7567 PR other/33426
7568 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
7569 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
7570
3f04b1bb
JM
75712013-10-23 Jason Merrill <jason@redhat.com>
7572
7573 * c-format.c (gcc_cxxdiag_char_table): Add %X.
7574
acf0174b
JJ
75752013-10-11 Jakub Jelinek <jakub@redhat.com>
7576
acd15a28
JJ
7577 * c-common.h (omp_clause_mask::operator !=): New method.
7578 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
7579 instead of if (mask & something) tests everywhere.
7580
acf0174b
JJ
7581 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
7582 201307 instead of 201107.
7583 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
7584 (c_common_attribute_table): Add "omp declare target" and
7585 "omp declare simd" attributes.
7586 (handle_omp_declare_target_attribute,
7587 handle_omp_declare_simd_attribute): New functions.
7588 * c-omp.c: Include c-pragma.h.
7589 (c_finish_omp_taskgroup): New function.
7590 (c_finish_omp_atomic): Add swapped argument, if true,
7591 build the operation first with rhs, lhs arguments and use NOP_EXPR
7592 build_modify_expr.
7593 (c_finish_omp_for): Add code argument, pass it down to make_code.
7594 (c_omp_split_clauses): New function.
7595 (c_split_parallel_clauses): Removed.
7596 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
7597 c_omp_declare_simd_clauses_to_decls): New functions.
7598 * c-common.h (omp_clause_mask): New type.
7599 (OMP_CLAUSE_MASK_1): Define.
7600 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
7601 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
7602 omp_clause_mask::operator |, omp_clause_mask::operator &,
7603 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
7604 omp_clause_mask::operator ==): New methods.
7605 (enum c_omp_clause_split): New.
7606 (c_finish_omp_taskgroup): New prototype.
7607 (c_finish_omp_atomic): Add swapped argument.
7608 (c_finish_omp_for): Add code argument.
7609 (c_omp_split_clauses): New prototype.
7610 (c_split_parallel_clauses): Removed.
7611 (c_omp_declare_simd_clauses_to_numbers,
7612 c_omp_declare_simd_clauses_to_decls): New prototypes.
7613 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
7614 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
7615 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
7616 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
7617 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
7618 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
7619 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
7620 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
7621 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
7622 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
7623 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
7624 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
7625 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
7626 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
7627 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
7628 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
7629 PRAGMA_OMP_CLAUSE_UNIFORM.
7630
826cacfe
MG
76312013-10-09 Marc Glisse <marc.glisse@inria.fr>
7632
7633 PR tree-optimization/20318
7634 * c-common.c (handle_returns_nonnull_attribute): New function.
7635 (c_common_attribute_table): Add returns_nonnull.
7636
2284b034
MG
76372013-10-03 Marc Glisse <marc.glisse@inria.fr>
7638
7639 PR c++/19476
7640 * c.opt (fcheck-new): Move to common.opt.
7641
b56e9788
MP
76422013-09-25 Marek Polacek <polacek@redhat.com>
7643 Jakub Jelinek <jakub@redhat.com>
7644
7645 PR sanitizer/58413
7646 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
7647 an expression if we can prove it is correct.
7648 (ubsan_instrument_division): Likewise. Remove unnecessary
7649 check.
7650
ce6923c5
MP
76512013-09-18 Marek Polacek <polacek@redhat.com>
7652
7653 PR sanitizer/58411
7654 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
7655 Declare it.
7656 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
7657
fb5610fb
IS
76582013-09-14 Iain Sandoe <iain@codesourcery.com>
7659
7660 PR target/48094
7661 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
7662 fobjc-gc, freplace-objc-classes): Accept for LTO.
7663
88b0e79e
JC
76642013-09-13 Jacek Caban <jacek@codeweavers.com>
7665
7666 * c-target.def: New hook
7667
c9b0866a
PC
76682013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
7669
7670 PR c++/43452
7671 * c.opt (Wdelete-incomplete): Add.
7672
0af94e6f
JR
76732013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
7674
7675 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
7676 (vector_types_compatible_elements_p): New function.
7677 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
7678 declaration.
7679 (vector_types_compatible_elements_p): Declare.
7680
7c26172c
GDR
76812013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
7682
7683 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
7684 a virtual member function.
7685 (pp_simple_type_specifier): Remove.
7686 (pp_c_type_specifier): Likewise.
7687 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
7688 Rename from pp_c_type_specifier. Adjust.
7689 (c_pretty_printer::c_pretty_printer): Do not assign to
7690 simple_type_specifier.
7691
20059c8b
GDR
76922013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
7693
7694 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
7695 member function.
7696 (c_pretty_printer::storage_class_specifier): Likewise.
7697 (c_pretty_printer::initializer): Likewise.
7698 (pp_declaration): Remove.
7699 (pp_declaration_specifiers): Likewise.
7700 (pp_abstract_declarator): Likewise.
7701 (pp_declarator): Likewise.
7702 (pp_type_id): Likewise.
7703 (pp_statement): Likewise.
7704 (pp_constant): Likewise.
7705 (pp_id_expression): Likewise.
7706 (pp_primary_expression): Likewise.
7707 (pp_unary_expression): Likewise.
7708 (pp_multiplicative_expression): Likewise.
7709 (pp_conditional_expression): Likewise.
7710 (pp_assignment_expression): Likewise.
7711 (pp_expression): Likewise.
7712 (pp_c_type_id): Likewise.
7713 (pp_c_storage_class_specifier): Likewise.
7714 * c-pretty-print.c (pp_c_type_cast): Tidy.
7715 (pp_c_pointer): Likewise.
7716 (pp_c_type_specifier): Likewise.
7717 (pp_c_parameter_type_list): Likewise.
7718 (pp_c_function_definition): Likewise.
7719 (pp_c_init_declarator): Likewise.
7720 (pp_c_initializer_list): Likewise.
7721 (pp_c_constructor_elts): Likewise.
7722 (c_pretty_printer::direct_abstract_declarator): Likewise.
7723 (c_pretty_printer::declaration_specifiers): Likewise.
7724 (c_pretty_printer::primary_expression): Likewise.
7725 (c_pretty_printer::postfix_expression): Likewise.
7726 (c_pretty_printer::type_id): Rename from pp_c_type_id.
7727 (c_pretty_printer::storage_class_specifier): Rename from
7728 pp_c_storage_class_specifier.
7729 (c_pretty_printer::initializer): Rename from pp_c_initializer.
7730 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
7731 storage_class_specifier, initializer, offset_list, flags.
7732
de5a5fa1
MP
77332013-08-30 Marek Polacek <polacek@redhat.com>
7734
7735 * c-ubsan.c: New file.
7736 * c-ubsan.h: New file.
7737
8f0e4d72
GDR
77382013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
7739
7740 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
7741 member function.
7742 (c_pretty_printer::declaration_specifiers): Likewise.
7743 (c_pretty_printer::declarator): Likewise.
7744 (c_pretty_printer::abstract_declarator): Likewise.
7745 (c_pretty_printer::direct_abstract_declarator): Likewise.
7746 (c_pretty_printer::direct_declarator): Likewise.
7747 (c_pretty_printer::function_specifier): Likewise.
7748 (pp_declaration): Adjust.
7749 (pp_declaration_specifiers): Likewise.
7750 (pp_abstract_declarator): Likewise.
7751 (pp_direct_declarator): Likewise.
7752 (pp_function_specifier): Likewise.
7753 (pp_direct_abstract_declarator): Remove as unused.
7754 (pp_c_declaration): Remove.
7755 (pp_c_declaration_specifiers): Likewise.
7756 (pp_c_declarator): Likewise.
7757 (pp_c_direct_declarator): Likewise.
7758 (pp_c_function_specifier): Likewise.
7759 (pp_c_direct_abstract_declarator): Likewise.
7760 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
7761 from pp_c_abstract_declarator. Adjust.
ab20d992 7762 (c_pretty_printer::direct_abstract_declarator): Rename from
8f0e4d72
GDR
7763 pp_c_direct_abstract_declarator. Adjust.
7764 (c_pretty_printer::function_specifier): Rename from
7765 pp_c_function_specifier. Adjust.
7766 (c_pretty_printer::declaration_specifiers): Rename from
7767 pp_c_declaration_specifiers. Adjust.
7768 (c_pretty_printer::direct_declarator): Rename from
7769 pp_c_direct_declarator. Adjust.
7770 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
7771 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
7772 (c_pretty_printer::c_pretty_printer): Do not assign to
7773 declaration, declaration_specifiers, declarator,
7774 direct_declarator, direct_abstract_declarator, function_specifier.
7775
00d34d3a
GDR
77762013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
7777
7778 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
7779 virtual member function.
7780 (c_pretty_printer::multiplicative_expression): Likewise.
7781 (c_pretty_printer::conditional_expression): Likewise.
7782 (c_pretty_printer::assignment_expression): Likewise.
7783 (c_pretty_printer::expression): Likewise.
7784 (pp_unary_expression): Adjust.
7785 (pp_multiplicative_expression): Likewise.
7786 (pp_assignment_expression): Likewise.
7787 (pp_conditional_expression): Likewise.
7788 (pp_expression): Likewise.
7789 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
7790 from pp_c_unary_expression. Adjust.
7791 (c_pretty_printer::multiplicative_expression): Rename from
7792 pp_c_multiplicative_expression. Adjust.
7793 (c_pretty_printer::conditional_expression): Rename from
7794 pp_c_conditional_expression. Adjust.
7795 (c_pretty_printer::assignment_expression): Rename from
7796 pp_c_assignment_expression. Adjust.
7797 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
7798 (c_pretty_printer::c_pretty_printer): Do not assign to
7799 unary_expression, multiplicative_expression,
7800 conditional_expression, expression.
7801
fb22178f
GDR
78022013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
7803
7804 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
7805 virtual member function.
7806 (pp_postfix_expression): Adjust.
7807 (pp_c_postfix_expression): Remove.
7808 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
7809 from pp_c_postfix_expression. Adjust.
7810 (c_pretty_printer::c_pretty_printer): Do not assign to
7811 postfix_expression.
7812
7ecc2600
GDR
78132013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
7814
7815 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
7816 virtua member function.
7817 (pp_primary_expression): Adjust.
7818 (pp_c_primary_expression): Remove.
7819 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
7820 from pp_c_primary_expression. Adjust.
7821 (pp_c_initializer_list): Use pp_primary_expression.
7822 (c_pretty_printer::c_pretty_printer): Do not assign to
7823 primary_expression.
7824
0691175f
GDR
78252013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
7826
7827 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
7828 * c-pretty-print.c (M_): Remove.
7829 (c_pretty_printer::translate_string): Define.
7830 (pp_c_type_specifier): Use it.
7831 (pp_c_primary_expression): Likewise.
7832 (pp_c_expression): Likewise.
7833
66dfe4c4
GDR
78342013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
7835
7836 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
7837 virtual function.
7838 (pp_c_id_expression): Remove.
7839 (pp_id_expression): Adjust.
7840 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
7841 pp_c_id_expression. Adjust.
7842 (pp_c_postfix_expression): Use pp_id_expression.
7843 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
7844
ca43e9d5
GDR
78452013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
7846
7847 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
7848 member function.
7849 (pp_constant): Adjust.
7850 (pp_c_constant): Remove.
7851 * c-pretty-print.c (c_pretty_printer::constant): Rename from
7852 pp_c_constant. Adjust.
7853 (pp_c_constant)
7854 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
7855 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
7856
da6ca2b5
GDR
78572013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
7858
7859 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
7860 (c_pretty_printer::c_pretty_printer): Declare.
7861 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
7862 c_pretty_printer_init. Adjust.
7863 (print_c_tree): Do not call c_pretty_printer_init.
7864 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
7865
65a372f4
AC
78662013-08-09 Arnaud Charlet <charlet@adacore.com>
7867
7868 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
7869
fd9b0f32
PC
78702013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
7871
7872 PR c++/58080
7873 * c-common.c (pointer_int_sum): Add bool parameter.
7874 * c-common.h (pointer_int_sum): Adjust declaration.
7875
e0aec1e9
GDR
78762013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
7877
7878 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
7879 c_pretty_printer variable.
7880
b066401f
GDR
78812013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
7882
7883 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
7884 (pp_base): Remove.
7885 (pp_c_base): Likewise. Adjust users.
7886 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
7887 (pp_c_whitespace): Do not call pp_base.
7888 (pp_c_left_paren): Likewise.
7889 (pp_c_right_paren): Likewise.
7890 (pp_c_left_brace): Likewise.
7891 (pp_c_right_brace): Likewise.
7892 (pp_c_left_bracket): Likewise.
7893 (pp_c_right_bracket): Likewise.
7894 (pp_c_dot): Likewise.
7895 (pp_c_ampersand): Likewise.
7896 (pp_c_star): Likewise.
7897 (pp_c_arrow): Likewise.
7898 (pp_c_semicolon): Likewise.
7899 (pp_c_complement): Likewise.
7900 (pp_c_exclamation): Likewise.
7901 (pp_c_direct_declarator): Likewise.
7902 (pp_c_ws_string): Likewise.
7903 (pp_c_identifier): Likewise.
7904 (pp_c_statement): Likewise.
7905 (print_c_tree): Likewise.
7906
65e5a578
ESR
79072013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
7908
7909 PR c++/58072
7910 * c-common.c (c_parse_error): Catch user-defined literal tokens and
7911 provide useful error strings.
7912
137a1a27
GDR
79132013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
7914
7915 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
7916 printer functions instead of pp_string or operators and punctuators.
7917 (dump_generic_ada_node): Likewise.
7918 * c-pretty-print.c (pp_c_type_specifier): Likewise.
7919 (pp_c_relational_expression): Likewise.
7920 (pp_c_logical_or_expression): Likewise.
7921
07838b13
GDR
79222013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
7923
7924 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
7925 functions instead of pp_character.
7926 (pp_ada_tree_identifier): Likewise.
7927 (dump_ada_double_name): Likewise.
7928 (dump_ada_function_declaration): Likewise.
7929 (dump_ada_array_domains): Likewise.
7930 (dump_template_types): Likewise.
7931 (dump_generic_ada_node): Likewise.
7932 (print_ada_declaration): Likewise.
7933 (print_ada_struct_decl): Likewise.
7934 * c-pretty-print.c (pp_c_integer_constant): Likewise.
7935
433cc7b0
TT
79362013-07-23 Tom Tromey <tromey@redhat.com>
7937
7938 * c-common.h (enum rid) <RID_GENERIC>: New constant.
7939 * c-common.c (c_common_reswords): Add _Generic.
7940
688010ba
OB
79412013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
7942
7943 * c-common.c: Fix typos.
7944 * c-common.h: Likewise.
7945
2a99e5e6
LL
79462013-07-13 Lubos Lunak <l.lunak@suse.cz>
7947
7948 PR c++/55203
7949 * c-common.c (c_common_attribute_table): Add warn_unused.
7950 (handle_warn_unused_attribute): New.
7951
c26302d5
JJ
79522013-07-10 Jakub Jelinek <jakub@redhat.com>
7953
7954 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
7955 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
7956
dfeadaa0
PC
79572013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
7958
7959 PR c++/57869
7960 * c.opt: Add Wconditionally-supported.
7961
6a2fa4b2
GS
79622013-07-08 Graham Stott <graham.stott@btinternet.com>
7963
adfac8df 7964 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
7965 unused variables l_length and l_node.
7966
ecdbd01a 79672013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
7968
7969 PR c/57821
7970 * c-common.c (complete_array_type): Delay folding first index
7971 like other indices. When folding, check for index overflow.
7972
bedc293e
MG
79732013-06-27 Marc Glisse <marc.glisse@inria.fr>
7974
7975 PR c++/57509
7976 * c-common.h (c_build_vec_perm_expr): New complain argument.
7977 * c-common.c (c_build_vec_perm_expr): Likewise.
7978 Use save_expr also in C++.
7979
604b2bfc
GDR
79802013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
7981
7982 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
7983 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
7984 * c-opts.c (c_common_post_options): Likewise.
7985
dfeadaa0 79862013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
7987
7988 * array-notation-common.c (length_mismatch_in_expr): Changed the
7989 parameter type's from a dynamic array to a vec_tree. Also removed
7990 the size parameters.
7991 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
7992 the change above.
7993
2ce86d2e
BI
79942013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
7995
7996 * c-common.h (struct cilkplus_an_parts): New structure.
7997 (struct cilkplus_an_loop_parts): Likewise.
7998 (cilkplus_extract_an_triplets): New prototype.
7999 (fix_sec_implicit_args): Likewise.
8000 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
8001 (fix_sec_implicit_args): Likewise.
604b2bfc 8002
07a6825b
BI
80032013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
8004
8005 * array-notation-common.c (find_inv_trees): Removed an unwanted
8006 typecasting.
8007 * c-common.h (struct inv_list::additional_tcodes): Changed type from
8008 enum rid to enum tree_code.
8009
08346abd
JH
80102013-06-11 Jan Hubicka <jh@suse.cz>
8011
8012 * c-common.c (handle_alias_ifunc_attribute): Do not set
8013 DECL_EXTERNAL for weakref variables.
8014 * c-pragma.c (handle_pragma_weak): Make sure aliases
8015 are not declared as external.
8016
d60f1706
BI
80172013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
8018
8019 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
8020 function from c/c-array-notation.c.
8021 (is_cilkplus_reduce_builtin): Likewise.
8022 (find_rank): Likewise.
8023 (extract_array_notation_exprs): Likewise.
8024 (replace_array_notations): Likewise.
8025 (find_inv_trees): Likewise.
8026 (replace_inv_trees): Likewise.
8027 (contains_array_notation_expr): Likewise.
8028 (find_correct_array_notation_type): Likewise.
8029 * c-common.h (struct inv_list): Moved this struct from the file
8030 c/c-array-notation.c and added a new field called additional tcodes.
8031 (length_mismatch_in_expr_p): New prototype.
8032 (is_cilkplus_reduce_builtin): Likewise.
8033 (find_rank): Likewise.
8034 (extract_array_notation_exprs): Likewise.
8035 (replace_array_notation): Likewise.
8036 (find_inv_trees): Likewise.
8037 (replace_inv_trees): Likewise.
8038 (find_correct_array_notation_type): Likewise.
dfeadaa0 8039
36536d79
BI
80402013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
8041
8042 * c-common.c (c_define_builtins): When cilkplus is enabled, the
8043 function array_notation_init_builtins is called.
8044 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
8045 * c-common.def (ARRAY_NOTATION_REF): New tree.
8046 * c-common.h (build_array_notation_expr): New function declaration.
8047 (build_array_notation_ref): Likewise.
8048 (extract_sec_implicit_index_arg): New extern declaration.
8049 (is_sec_implicit_index_fn): Likewise.
8050 (ARRAY_NOTATION_CHECK): New define.
8051 (ARRAY_NOTATION_ARRAY): Likewise.
8052 (ARRAY_NOTATION_START): Likewise.
8053 (ARRAY_NOTATION_LENGTH): Likewise.
8054 (ARRAY_NOTATION_STRIDE): Likewise.
8055 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
8056 ARRAY_NOTATION_REF.
8057 (pp_c_expression): Likewise.
8058 * c.opt (flag_enable_cilkplus): New flag.
8059 * array-notation-common.c: New file.
8060
f7716d57
JJ
80612013-05-14 Jakub Jelinek <jakub@redhat.com>
8062
8063 PR c++/57274
8064 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
8065
a5e0cd1d
MG
80662013-05-10 Marc Glisse <marc.glisse@inria.fr>
8067
8068 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
8069 vectors.
8070
f6bc1c4a
HS
80712013-05-07 Han Shen <shenhan@google.com>
8072
8073 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
8074
3f12f6e9
SKS
80752013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8076
8077 * c-common.c (check_user_alignment): Emit error for negative values.
8078
61949153
PC
80792013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
8080
8081 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
8082
e93e18e9
PC
80832013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
8084
8085 * c-cppbuiltin.c (c_cpp_builtins): Do not define
8086 __GXX_EXPERIMENTAL_CXX1Y__.
8087
44d90fe1 80882013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
8e745a17 8089 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
44d90fe1
PC
8090
8091 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
8092 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
8093 to simply use OPT_Wpointer_arith.
8094 (c_sizeof_or_alignof_type): Likewise.
8095
13f39b2e
PC
80962013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
8097
8098 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
8099
4b84d650
JJ
81002013-04-12 Jakub Jelinek <jakub@redhat.com>
8101
8102 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
8103 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
8104 specifiers.
8105
fb037b5d
SB
81062013-04-07 Steven Bosscher <steven@gcc.gnu.org>
8107
8108 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
8109
4e856798
PC
81102013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
8111
8112 * c-common.c (pointer_int_sum): Remove dead code.
8113
4b1baac8
RS
81142013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
8115
8116 PR middle-end/56524
8117 * c-common.c (handle_optimize_attribute): Don't call
8118 save_optabs_if_changed.
8119
0b50e654
JJ
81202013-03-05 Jakub Jelinek <jakub@redhat.com>
8121
8122 PR middle-end/56461
8123 * c-pch.c (pch_init): Free target_validity at the end.
8124
48c41403
JJ
81252013-03-04 Jakub Jelinek <jakub@redhat.com>
8126
8127 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
8128
e664c61c
KS
81292013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
8130 Jakub Jelinek <jakub@redhat.com>
8131
8132 PR sanitizer/56454
8133 * c-common.c (handle_no_sanitize_address_attribute): New function.
8134 (c_common_attribute_table): Add no_sanitize_address attribute.
8135 (handle_no_address_safety_analysis_attribute): Add
8136 no_sanitize_address attribute, not no_address_safety_analysis
8137 attribute.
8138
a475fd3d 81392013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
8140
8141 PR target/52555
8142 * c-common.c (handle_optimize_attribute): Call
8143 save_optabs_if_changed.
8144
f6007d99
JJ
81452013-02-18 Jakub Jelinek <jakub@redhat.com>
8146 Steven Bosscher <steven@gcc.gnu.org>
8147
8148 PR pch/54117
8149 * c-opts.c (c_common_post_options): If debug info is enabled
8150 and non-dwarf*, refuse to load PCH files and when writing PCH
8151 file warn.
8152
cf35e2b1
JJ
81532013-02-05 Jakub Jelinek <jakub@redhat.com>
8154
8155 PR middle-end/56167
8156 * c-common.c (handle_error_attribute): Fix condition.
8157
32887460
JJ
81582013-01-30 Jakub Jelinek <jakub@redhat.com>
8159
8160 PR c++/55742
8161 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
8162
5af057d8
JM
81632013-01-18 Jason Merrill <jason@redhat.com>
8164
8165 PR target/54908
8166 * c.opt (-fextern-tls-init): New.
8167 * c-opts.c (c_common_post_options): Handle it.
8168
cc83c823
JJ
81692013-01-09 Jakub Jelinek <jakub@redhat.com>
8170
8171 PR c/48418
8172 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
8173 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
8174 and is either negative or bigger or equal to type precision
8175 of the first operand.
8176
a859517f
MP
81772012-12-03 Marek Polacek <polacek@redhat.com>
8178
8179 PR c/55570
8180 * c-common.c (check_user_alignment): Swap order of tests,
8181 check TREE_CODE first.
8182
2d7aa578
ESR
81832012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
8184
8185 PR c++/52654
8186 * c-common.h (overflow_type): New enum.
8187 (build_userdef_literal): Add overflow_type argument.
8188 (tree_userdef_literal): Add overflow_type.
8189 (USERDEF_LITERAL_OVERFLOW): New access macro.
8190 * c-common.c (build_userdef_literal): Add overflow_type
8191 argument.
8192 * c-lex.c (c_lex_with_flags): Add overflow_type to
8193 build_userdef_literal calls.
8194 (interpret_integer, interpret_float): Add overflow_type argument.
8195
cc3c4f62
RB
81962012-11-28 Richard Biener <rguenther@suse.de>
8197
8198 PR c/35634
8199 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
8200 here and use a type with proper overflow behavior for types that would
8201 need to be promoted for the arithmetic.
8202
77bc5132
JJ
82032012-11-23 Jakub Jelinek <jakub@redhat.com>
8204
8205 PR sanitizer/55435
8206 * c-common.c (handle_no_address_safety_analysis_attribute): New
8207 function.
8208 (c_common_attribute_table): Add no_address_safety_analysis.
8209
5dc99c46
SB
82102012-11-16 Simon Baldwin <simonb@google.com>
8211
8212 * c.opt: Add f[no-]canonical-system-headers.
8213 * c-opts.c (c_common_handle_option): Handle
8214 OPT_fcanonical_system_headers.
8215
a4a0016d
ESR
82162012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
8217
8218 PR c++/54413
8219 * c-opts.c (c_common_handle_option): Set new flags.
8220 * c.opt: Describe new flags.
8221
7dbb85a7
JM
82222012-11-09 Jason Merrill <jason@redhat.com>
8223
8224 * c.opt (Wabi-tag): New.
8225
ad7bac31
AK
82262012-11-09 Andi Kleen <ak@linux.intel.com>
8227
8228 PR 55139
8229 * c-common.c (get_atomic_generic_size): Mask with
8e745a17 8230 MEMMODEL_MASK
ad7bac31 8231
7332899a
MLI
82322012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
8233
8234 PR c/53063
8235 * c.opt (Wformat): Make it Alias Wformat=1.
8236 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
8237 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
8238 LangEnabledBy.
8239 (Wformat=): RejectNegative. Use LangEnabledBy.
8240 (Wnonnull): Use LangEnabledBy.
8241 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
8242 * c-format.c (set_Wformat): Delete.
8243 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
ab20d992
JJ
8244 (maybe_read_dollar_number): Likewise.
8245 (avoid_dollar_number): Likewise.
8246 (finish_dollar_format_checking): Likewise.
8247 (check_format_info): Likewise.
8248 (check_format_info_main): Likewise.
8249 (check_format_types): Likewise.
8250 (format_type_warning): Likewise.
8251 * c-common.c (int): Likewise.
8252 (check_function_sentinel): Likewise.
8e745a17 8253 * c-common.h (warn_format,set_Wformat): Do not declare here.
7332899a 8254
34a180a6
MLI
82552012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
8256
8257 PR c/53063
8258 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
8259 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
8260 Use LangEnabledBy.
8261 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
8262 common.opt.
8263 (Wvariadic-macros): Init(1).
8264 * c-opts.c (c_common_handle_option): Do not handle them
8265 explicitly.
8266 (c_common_post_options): Likewise.
8267 (sanitize_cpp_opts): warn_unused_macros is now
8268 cpp_warn_unused_macros.
8269 (push_command_line_include): Likewise.
8270 * c-common.c (warn_unknown_pragmas): Do not define.
8271 * c-common.h (warn_unknown_pragmas): Do not declare.
8272
3f46d6a5
MLI
82732012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
8274
8275 PR c/51294
8276 * c-common.c (conversion_warning): Handle conditional expressions.
8277
880661a4
JW
82782012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
8279
8280 PR c++/54930
8281 * c.opt (Wreturn_local_addr): Define new option.
8282
4514a96b
JM
82832012-10-25 Jason Merrill <jason@redhat.com>
8284
f14edc1a
JM
8285 * c.opt (Wvirtual-move-assign): New.
8286
4514a96b
JM
8287 * c.opt (Winherited-variadic-ctor): New.
8288
93100c6b
MG
82892012-10-25 Marc Glisse <marc.glisse@inria.fr>
8290
8291 PR c++/54427
8292 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
8293
1efcb8c6
JM
82942012-10-23 Joseph Myers <joseph@codesourcery.com>
8295
8296 * c-common.h (pch_cpp_save_state): Declare.
8297 * c-target.def (c_preinclude): New hook.
8298 * c-opts.c (done_preinclude): New.
8299 (push_command_line_include): Handle default preincluded header.
8300 (cb_file_change): Call pch_cpp_save_state when calling
8301 push_command_line_include.
8302 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
8303 (pch_cpp_save_state): New.
8304 (pch_init): Call pch_cpp_save_state conditionally, instead of
8305 calling cpp_save_state.
8306
4a0ae68e
MLI
83072012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
8308
8309 PR c/53063
8310 PR c/40989
8311 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
8312 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
8313 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
8314 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
8315 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
8316 * c-opts.c (c_common_handle_option): Remove explicit handling from
8317 here.
8318 (c_common_post_options): Likewise.
8319
67e4210b
EB
83202012-10-18 Eric Botcazou <ebotcazou@adacore.com>
8321
8322 * c-ada-spec.c (LOCATION_COL): Delete.
8323 (compare_location): New function.
8324 (compare_node): Use it.
8325 (compare_comment): Likewise.
8326
65d4f2cd
MLI
83272012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
8328
8329 PR c/53063
8330 PR c/40989
8331 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
8332 * c-opts.c (c_common_handle_option): Do not set them here. Add
8333 comment.
8334 (c_common_post_options): Likewise.
8335
909881cb
EB
83362012-10-16 Eric Botcazou <ebotcazou@adacore.com>
8337
8338 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
8339 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
8340 Remove POINTER_TYPE handling, add large unsigned handling and use
8341 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
8342
3a785c97
JJ
83432012-10-12 Jakub Jelinek <jakub@redhat.com>
8344
8345 PR c/54381
8346 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
8347 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
8348 locs and array of 3 trees instead of just single loc and single
8349 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
8350 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
8351 For *cmp* builtins that take two sources strings report warnings
8352 about first and second source, not about destination and source.
8353
5e54f81d
MG
83542012-10-12 Marc Glisse <marc.glisse@inria.fr>
8355
8356 PR c++/53055
8357 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
8358
f5b02f1e
EB
83592012-10-11 Eric Botcazou <ebotcazou@adacore.com>
8360
8361 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
8362 declaring something coming from another file.
8363
b46dbc6c
AC
83642012-10-10 Arnaud Charlet <charlet@adacore.com>
8365
f5b02f1e 8366 PR ada/54845
b46dbc6c
AC
8367 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
8368
5d9de0d0
PC
83692012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
8370
8371 PR c++/54194
8372 * c-common.c (warn_about_parentheses): Add location_t parameter;
8373 use EXPR_LOC_OR_LOC.
8374 * c-common.h: Update declaration.
8375
a212e43f
MG
83762012-10-09 Marc Glisse <marc.glisse@inria.fr>
8377
8378 PR c++/54427
8379 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
8380 more operations. Make error messages optional.
8381 * c-common.h (enum stv_conv): Moved from c-typeck.c.
8382 (scalar_to_vector): Declare.
8383
b1db7f91
JM
83842012-10-08 Jason Merrill <jason@redhat.com>
8385
8386 * c-common.c (c_common_reswords): Add thread_local.
8387
e28d52cf
DS
83882012-10-08 Dodji Seketeli <dodji@redhat.com>
8389
8390 PR c++/53528 C++11 attribute support
8391 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
8392 new functions.
8393 * c-common.c (check_cxx_fundamental_alignment_constraints): New
8394 static function.
8395 (handle_aligned_attribute): In choose strictest alignment
8396 among many. Use new check_cxx_fundamental_alignment_constraints.
8397 (handle_transparent_union_attribute): In c++11 attribute syntax,
8398 don't look through typedefs.
8399
3b78de56
AC
84002012-10-04 Arnaud Charlet <charlet@adacore.com>
8401
8402 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
8403 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
8404 out of dumpfile.h.
8405
6040bb5f
DC
84062012-09-25 Dehao Chen <dehao@google.com>
8407
8408 PR middle-end/54645
3b78de56 8409 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
8410 map when read in the pch.
8411
3f8257db 84122012-09-18 Arnaud Charlet <charlet@adacore.com>
0b07a57e
AC
8413
8414 * c-ada-spec.c: Style fixes.
8415
3f8257db 84162012-09-18 Thomas Quinot <quinot@adacore.com>
da5182be
TQ
8417
8418 * c.opt (-fada-spec-parent): Define new command line switch.
8419 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
8420 is specified, generate binding spec as a child of the specified unit.
8421
0ccb505d
PC
84222012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
8423 Manuel López-Ibáñez <manu@gcc.gnu.org>
8424
8425 PR c++/53210
8426 * c.opt ([Winit-self]): Enabled by -Wall in C++.
8427
c583af79
AC
84282012-08-23 Arnaud Charlet <charlet@adacore.com>
8429
8430 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
8431 for pointers, and add missing Convention C pragma.
8432 (print_ada_struct_decl): Add missing aliased keyword.
8433 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
8434
1a4049e7
JJ
84352012-08-17 Jakub Jelinek <jakub@redhat.com>
8436
8437 * c-common.c (sizeof_pointer_memaccess_warning): New function.
8438 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
8439 * c-opts.c (c_common_handle_option): Enable it for -Wall.
8440 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
8441 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
8442
70b5e7dc
RG
84432012-08-10 Richard Guenther <rguenther@suse.de>
8444
8445 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
8446
f8923f7e
SB
84472012-08-07 Steven Bosscher <steven@gcc.gnu.org>
8448
8449 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
8450 instead of separate pp_newline and pp_flush.
8451 (print_c_tree): Likewise.
8452
e45abe1f
RH
84532012-07-26 Richard Henderson <rth@redhat.com>
8454
8455 * c-common.c (handle_hot_attribute): Allow labels.
8456 (handle_cold_attribute): Likewise.
8457
332f1d24
JJ
84582012-07-20 Jakub Jelinek <jakub@redhat.com>
8459
8460 PR c++/28656
8461 * c-common.c (check_function_nonnull): Handle multiple nonnull
8462 attributes properly.
8463
7ee2468b
SB
84642012-07-16 Steven Bosscher <steven@gcc.gnu.org>
8465
8466 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
8467 * c-ada-spec.c: Likewise.
8468 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
8469
ee7b28eb
SB
84702012-07-14 Steven Bosscher <steven@gcc.gnu.org>
8471
8472 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
8473 Remove code conditional on it.
8474
6bdf3519
SB
84752012-07-11 Steven Bosscher <steven@gcc.gnu.org>
8476
8477 * c-gimplify.c: Do not include basic-block.h.
8478 * c-common.c: Do not include linfuncs.h.
8479
532aafad
SB
84802012-07-08 Steven Bosscher <steven@gcc.gnu.org>
8481
8482 * c-common.h: Include tree.h.
8483
8d0d1915
JM
84842012-07-02 Jason Merrill <jason@redhat.com>
8485
8486 PR c++/53524
8487 * c-common.c (get_priority): Call default_conversion.
8488
fbc873ad
UB
84892012-07-01 Uros Bizjak <ubizjak@gmail.com>
8490
8491 * c-pch.c (c_common_write_pch): Remove unused variables.
8492
d4a10d0a
SB
84932012-06-29 Steven Bosscher <steven@gcc.gnu.org>
8494
8495 * cppspec.c: Moved from gcc/ to here.
8496
6f3a2e23
KT
84972012-06-27 Kai Tietz <ktietz@redhat.com>
8498
8499 PR preprocessor/37215
8500 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
8501
8ca92d04
SB
85022012-06-21 Steven Bosscher <steven@gcc.gnu.org>
8503
8504 * c-common.h (c_common_print_pch_checksum): Remove.
8505 * c-pch.c: Do not include output.h.
8506 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
8507 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
8508 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
8509 (struct c_pch_header): Remove.
8510 (get_ident): Update gpch version.
8511 (pch_init): Do not print executable_checksum to asm_out_file.
8512 Do not fail if there is no asm_out_file to read back from. Set
8513 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
8514 (c_common_write_pch): Verify that nothing was written to asm_out_file
8515 since pch_init was called. Do not write a c_pch_header, and do not
8516 copy from asm_out_file to the PCH.
8517 (c_common_read_pch): Do not read a c_pch_header, and do not restore
8518 the content of asm_out_file from the PCH.
8519 (c_common_print_pch_checksum): Remove.
8520 * c-opts.c (c_common_init): Print out executable_checksum directly.
8521
70f42967
SB
85222012-06-19 Steven Bosscher <steven@gcc.gnu.org>
8523
8524 * c-target.def (objc_declare_unresolved_class_reference,
8525 objc_declare_class_definition): Add new hooks.
8526
a8781821
SB
85272012-06-19 Steven Bosscher <steven@gcc.gnu.org>
8528
8529 * c-lex.c: Do not include output.h.
8530 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
8531 Remove uses of ASM_OUTPUT_IDENT.
8532
9e1a8dd1
RR
85332012-06-15 Marc Glisse <marc.glisse@inria.fr>
8534
8535 PR c++/51033
8536 * c-common.h (c_build_vec_perm_expr): Move decl here.
8537 * c-common.c (c_build_vec_perm_expr): Move definition
8538 here.
8539
6f07a821
SB
85402012-06-06 Steven Bosscher <steven@gcc.gnu.org>
8541
8542 * c.opt (fconserve-space): Turn into a no-op.
8543
9faeb493 85442012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
8545
8546 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
8547 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
8548 both the start and end of the function.
8549
a4b7d13c
SB
85502012-06-04 Steven Bosscher <steven@gcc.gnu.org>
8551
8552 * c-common.c: Do not include output.h.
8553 * c-pragma.c: Likewise.
8554
c265f413
SA
85552012-06-04 Steven Bosscher <steven@gcc.gnu.org>
8556
8557 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
8558 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
8559 (lang_decl_name): Handle namespace decls.
8560
be7a421e
SB
85612012-05-31 Steven Bosscher <steven@gcc.gnu.org>
8562
8563 * c-ada-spec.c: Do not include output.h.
8564 * c-semantics.c: Likewise.
8565
65de6659
JM
85662012-05-29 Joseph Myers <joseph@codesourcery.com>
8567
8568 * c-common.c: Fix typo.
8569
ca5f4331
MM
85702012-05-29 Michael Matz <matz@suse.de>
8571
8572 * c-common.h (c_expand_decl): Remove prototype.
8573
4f7f7aca
MLI
85742012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
8575
8576 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
8577 * c-opts.c (c_common_handle_option): Remove code handling
8578 warn_missing_braces.
8579
4a792f9b
PC
85802012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
8581
8582 PR c++/25137
8583 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
8584 -Wmissing_braces.
8585
650dc14a
DS
85862012-05-22 Dodji Seketeli <dodji@redhat.com>
8587
8588 PR c++/53322
8589 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
8590
9b095bf1
MLI
85912012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
8592
8593 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
8594 * c-opts.c (c_common_handle_option): Do not handle explicitly
8595 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
8596
0b2c4be5
DS
85972012-05-16 Dodji Seketeli <dodji@redhat.com>
8598
8599 PR preprocessor/7263
ab20d992 8600 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
0b2c4be5
DS
8601 to cpp_classify_number. For diagnostics, use the precise location
8602 instead of the global input_location.
8603
a1bde5af
PC
86042012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
8605
d02924ef 8606 PR c++/11856
a1bde5af
PC
8607 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
8608
d1ede5f4
BS
86092012-05-14 Bernd Schmidt <bernds@codesourcery.com>
8610
a1bde5af 8611 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 8612
f2bc201f
MLI
86132012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
8614
8615 PR 53063
8616 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
8617 Wreorder): Use LangEnabledBy.
8618 * c-opts.c (c_common_handle_option): Do not enable them
8619 explicitly. Call lang-specific generated functions.
8620 (c_common_post_options): Do not set them here.
8621
95744782
MLI
86222012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
8623
8624 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
8625 Wmissing-field-initializers,Wmissing-parameter-type,
8626 Wold-style-declaration,Woverride-init): Use EnabledBy.
8627 * c-opts.c (c_common_post_options): Do not set here explicitly.
8628
7d5a5747
MLI
86292012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
8630
8631 PR 53063
8632 * c-opts.c (c_common_handle_option): Use handle_generated_option
8633 to enable sub-options.
8634
5a3c9cf2
PC
86352012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
8636
8637 PR c++/53158
8638 * c-common.c (warnings_for_convert_and_check): Use warning_at.
8639
3ac8781c
RG
86402012-05-10 Richard Guenther <rguenther@suse.de>
8641
8642 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
8643 adjust commentary about TYPE_IS_SIZETYPE types.
8644
1e537948
MLI
86452012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
8646
8647 PR c++/53261
8648 * c-common.c (warn_logical_operator): Check that argument of
8649 integer_zerop is not NULL.
8650
f2c4a785
MLI
86512012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
8652
8653 PR c/43772
8654 * c-common.c (warn_logical_operator): Do not warn if either side
8655 is already true or false.
8656
50f305ca
MLI
86572012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
8658
8659 PR c/51712
8660 * c-common.c (expr_original_type): New.
8661 (shorten_compare): Do not warn for enumeration types.
8662
0c3641b0
MLI
86632012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
8664
8665 * c.opt (fpermissive): Add Var(flag_permissive).
8666
7edaa4d2
MG
86672012-04-30 Marc Glisse <marc.glisse@inria.fr>
8668
8669 PR c++/51033
8670 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
8671 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
8672
b9c8da34
DS
86732012-04-30 Dodji Seketeli <dodji@redhat.com>
8674
8675 Add -Wvarargs option
ab20d992 8676 * c.opt (Wvarargs): Define new option.
b9c8da34 8677
e6c69da0
MLI
86782012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
8679
8680 * c-common.c (check_function_arguments): Replace
8681 Wmissing-format-attribute with Wsuggest-attribute=format.
8682
90137d8f
MLI
86832012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
8684
8685 * c.opt (Wsuggest-attribute=format): New. Alias of
8686 Wmissing-format-attribute.
8687 * c-format.c (decode_format_type): Replace
8688 Wmissing-format-attribute with Wsuggest-attribute=format.
8689 (check_function_format): Likewise.
8690
9faeb493 86912012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
8692
8693 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
8694 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
8695 * c.opt: Add Wliteral-suffix.
8696
c1771a20
MLI
86972012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
8698
8699 PR c/44774
8700 * c.opt (Wpedantic): New.
8701 (pedantic): Alias Wpedantic.
8702 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
8703 (c_common_post_options): Likewise.
8704 (sanitize_cpp_opts): Likewise.
8705 * c-lex.c (interpret_float): Likewise.
8706 * c-format.c (check_format_types): Likewise.
8707 * c-common.c (pointer_int_sum): Likewise.
8708 (c_sizeof_or_alignof_type): Likewise.
8709 (c_add_case_label): Likewise.
8710 (c_do_switch_warnings): Likewise.
8711 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
8712
04b391c1
JM
87132012-04-15 Jason Merrill <jason@redhat.com>
8714
8715 PR c++/52818
8716 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
8717 (C_STD_NAME): Distinguish between C++98 and C++11.
8718
ac868f29
EB
87192012-04-11 Eric Botcazou <ebotcazou@adacore.com>
8720
8721 PR target/52624
8722 * c-common.h (uint16_type_node): Rename into...
8723 (c_uint16_type_node): ...this.
8724 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
8725 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
8726
fd4116f4
MLI
87272012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
8728
8729 * c-common.c (warn_if_unused_value): Move definition to here.
8730 * c-common.h (warn_if_unused_value): Move declaration to here.
8731
573ac65e
WB
87322012-03-23 William Bader <williambader@hotmail.com>
8733
8734 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
8735
552b8185
JM
87362012-03-20 Jason Merrill <jason@redhat.com>
8737
8738 * c-common.h (enum cxx_dialect): Add cxx1y.
8739 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
8740 test.
8741 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
8742 * c-opts.c (c_common_post_options): Likewise.
8743 (set_std_cxx1y): New.
8744 (c_common_handle_option): Call it.
8745 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
8746
04398fa8
PC
87472012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
8748
8749 PR c++/14710
8750 * c.opt ([Wuseless-cast]): Add.
8751
d2a12ae7
RG
87522012-03-16 Richard Guenther <rguenther@suse.de>
8753
8754 * c-pretty-print.c (pp_c_initializer_list): Adjust.
8755
a12bf402
MLI
87562012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
8757
8758 PR c++/44783
8759 * c.opt (ftemplate-backtrace-limit) Add.
8760
5c30094f
RO
87612012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8762
8763 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
8764 handling.
8765 * c-pragma.c (handle_pragma_extern_prefix): Remove.
8766 (init_pragma): Don't register extern_prefix.
8767
21fa2faf
RG
87682012-03-12 Richard Guenther <rguenther@suse.de>
8769
8770 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
8771 (builtin_type_for_size): Likewise.
8772
e3793c6f
JJ
87732012-02-13 Jakub Jelinek <jakub@redhat.com>
8774
8775 PR c++/52215
8776 * c-common.c (sync_resolve_params): Don't decide whether to convert
8777 or not based on TYPE_SIZE comparison, convert whenever arg_type
8778 is unsigned INTEGER_TYPE.
8779
93286335
PC
87802012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
8781
8782 PR c/52118
8783 * c.opt ([Wunused-local-typedefs]): Fix description.
8784
7a421706
MS
87852012-01-24 Mike Stump <mikestump@comcast.net>
8786
8787 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
8788 exactly.
8789
ba9b1f11
RG
87902012-01-18 Richard Guenther <rguenther@suse.de>
8791
8792 * c-opts.c (c_common_post_options): Reset LTO flags if
8793 we are about to generate a PCH.
8794
465406be
PC
87952012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
8796
8797 PR c++/51777
8798 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
8799 use pp_unsigned_wide_integer.
8800
aee15221
RG
88012012-01-10 Richard Guenther <rguenther@suse.de>
8802
8803 PR middle-end/51806
8804 * c-opts.c (c_common_handle_option): Move -Werror handling
8805 to language independent code.
8806
5720c0dc
RG
88072012-01-05 Richard Guenther <rguenther@suse.de>
8808
8809 PR middle-end/51764
8810 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
8811 from common.opt.
8812
73ac190a
PC
88132011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
8814
8815 PR c++/51316
8816 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
8817 of array types with an unknown bound.
8818
48b0b196
JM
88192011-12-20 Joseph Myers <joseph@codesourcery.com>
8820
8821 * c-common.c (flag_isoc99): Update comment to refer to C11.
8822 (flag_isoc1x): Change to flag_isoc11.
8823 * c-common.h (flag_isoc99): Update comment to refer to C11.
8824 (flag_isoc1x): Change to flag_isoc11.
8825 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
8826 C11.
8827 * c-opts.c (set_std_c1x): Change to set_std_c11.
8828 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
8829 Call set_std_c11.
8830 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
8831 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
8832 * c.opt (std=c1x): Change to std=c11. Document as non-draft
8833 standard.
8834 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
8835 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
8836 (std=gnu1x): Make alias of std=gnu11.
8837
d58d6eb5
JM
88382011-12-19 Jason Merrill <jason@redhat.com>
8839
8840 PR c++/51228
8841 * c-common.c (handle_transparent_union_attribute): Check the first
8842 field if the type is complete.
8843
b3908fcc
JW
88442011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
8845
8846 PR libstdc++/51365
8847 * c-common.c (RID_IS_FINAL): Add.
8848 * c-common.h (RID_IS_FINAL): Add.
8849
fea3ca91
IS
88502011-11-30 Iain Sandoe <iains@gcc.gnu.org>
8851
8852 * c.opt (fgnu-runtime): Provide full description.
8853 (fnext-runtime): Likewise.
8854 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
8855
62bad7cd
AM
88562011-11-28 Andrew MacLeod <amacleod@redhat.com>
8857
8858 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
8859 predefines in one place. Add LOCK_FREE predefines.
8860 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
8861 new func.
8862
c466c4ff
AM
88632011-11-24 Andrew MacLeod <amacleod@redhat.com>
8864
8865 PR c/51256
9faeb493 8866 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 8867 conditions
9faeb493
UB
8868 (resolve_overloaded_atomic_exchange,
8869 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
8870 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
8871 error_mark_node for error conditions.
9faeb493 8872
a5952633
RG
88732011-11-08 Richard Guenther <rguenther@suse.de>
8874
8875 PR middle-end/51010
ab20d992 8876 * c-pretty-print.c (pp_c_expression): Handle SSA_NAMEs.
a5952633 8877
0a35513e
AH
88782011-11-07 Richard Henderson <rth@redhat.com>
8879 Aldy Hernandez <aldyh@redhat.com>
8880 Torvald Riegel <triegel@redhat.com>
8881
8882 Merged from transactional-memory.
8883
8884 * c-common.c (handle_tm_wrap_attribute,
8885 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
8886 (struct c_common_reswords): Added __transaction* keywords.
8887 (struct c_common_attribute_table): Added transaction* and tm_regparm
8888 attributes.
8889 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
8890 masks.
8891 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
8892 find_tm_attribute): Declare.
8893
6d87092d
JM
88942011-11-07 Jason Merrill <jason@redhat.com>
8895
8896 PR c++/35688
8897 * c-common.c, c-common.h: Revert yesterday's changes.
8898
8e7860a1
JM
88992011-11-06 Jason Merrill <jason@redhat.com>
8900
8901 PR c++/35688
8902 * c-common.c (decl_has_visibility_attr): Split out from...
8903 (c_determine_visibility): ...here.
8904 * c-common.h: Declare it.
8905
d19fa6b5
JM
89062011-11-06 Joseph Myers <joseph@codesourcery.com>
8907
8908 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
8909 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
8910 type.
8911 (check_user_alignment): New. Split out of
8912 handle_aligned_attribute. Disallow integer constants with
8913 noninteger types. Conditionally allow zero.
8914 (handle_aligned_attribute): Use check_user_alignment.
8915 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
8916
86951993
AM
89172011-11-06 Andrew MacLeod <amacleod@redhat.com>
8918 Richard Henderson <rth@redhat.com>
8919
8920 Merged from cxx-mem-model.
8921
8922 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 8923 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
8924 parameters that are the same type size.
8925 (get_atomic_generic_size): New. Find size of generic
8926 atomic function parameters and do typechecking.
8927 (add_atomic_size_parameter): New. Insert size into parameter list.
8928 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
8929 either __atomic_exchange_n or external library call.
9faeb493 8930 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 8931 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 8932 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
8933 __atomic_load_n or an external library call.
8934 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
8935 __atomic_store_n or an external library call.
8936 (resolve_overloaded_builtin): Handle new __atomic builtins.
8937
cf9e9959
EB
89382011-11-04 Eric Botcazou <ebotcazou@adacore.com>
8939
8940 PR c++/50608
8941 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
8942 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
8943 <INDIRECT_REF>: Return the argument.
8944 <ARRAY_REF>: Remove special code for negative offset.
8945 Call fold_build_pointer_plus instead of size_binop.
8946 (fold_offsetof): Remove STOP_REF argument and adjust.
8947 * c-common.h (fold_offsetof_1): Declare.
8948 (fold_offsetof): Remove STOP_REF argument.
8949
25339f10
JM
89502011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
8951
8952 PR c++/50810
8953 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
8954 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
8955 Wnarrowing for C++0x and C++98.
8956 * c.opt ([Wnarrowing]): Update.
8957
89401152
PC
89582011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
8959
8960 PR c++/44277
8961 * c.opt: Add Wzero-as-null-pointer-constant.
8962
97e3ad20
JM
89632011-10-31 Jason Merrill <jason@redhat.com>
8964
15694fdd
JM
8965 * c.opt (-fdeduce-init-list): Off by default.
8966
97e3ad20
JM
8967 PR c++/50920
8968 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
8969 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
8970 and -Wc++11-compat.
8971 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
8972
fb9120e3
RAV
89732011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
8974
8975 PR c++/30066
8976 * c.opt (fvisibility-inlines-hidden): Description change.
8977
3ce4f9e4
ESR
89782011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
8979
8980 Implement C++11 user-defined literals.
8981 * c-common.c (build_userdef_literal): New.
8982 * c-common.def: New tree code.
8983 * c-common.h (tree_userdef_literal): New tree struct and accessors.
8984 * c-lex.c (interpret_float): Add suffix parm.
8985 (c_lex_with_flags): Build literal tokens.
8986
5f53c243
PC
89872011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
8988
8989 PR c++/50841
8990 Revert:
8991 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
8992
8993 PR c++/50810
8994 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
8995 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
8996 Wnarrowing for C++0x and C++98.
8997 * c.opt ([Wnarrowing]): Update.
8998
263734e1
PC
89992011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
9000
9001 PR c++/50810
9002 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
9003 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
9004 Wnarrowing for C++0x and C++98.
9005 * c.opt ([Wnarrowing]): Update.
9006
d2e312d7
PC
90072011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
9008
9009 PR c++/45385
9010 * c-common.c (conversion_warning): Remove code looking for
9011 artificial operands.
9012
d17687f6
DS
90132011-10-18 Dodji Seketeli <dodji@redhat.com>
9014
9015 PR bootstrap/50760
9016 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 9017 !NO_IMPLICIT_EXTERN_C.
d17687f6 9018
fc8396e9
PC
90192011-10-17 Michael Spertus <mike_spertus@symantec.com>
9020
9021 * c-common.c (c_common_reswords): Add __bases,
9022 __direct_bases.
9023 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
9024
90252011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
9026
9027 PR c++/50757
9028 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
9029
847e697a
TT
90302011-10-15 Tom Tromey <tromey@redhat.com>
9031 Dodji Seketeli <dodji@redhat.com>
9032
9033 * c.opt (fdebug-cpp): New option.
9034 * c-opts.c (c_common_handle_option): Handle the option.
9035 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
9036 output stream in parameter. Factorized from ...
9037 (maybe_print_line): ... this. Dump location debug information when
9038 -fdebug-cpp is in effect.
9039 (print_line_1): New static function. Takes an output stream in
9040 parameter. Factorized from ...
9041 (print_line): ... here. Dump location information when -fdebug-cpp
9042 is in effect.
9043 (scan_translation_unit): Dump location information when
9044 -fdebug-cpp is in effect.
9045
92582b75
TT
90462011-10-15 Tom Tromey <tromey@redhat.com>
9047 Dodji Seketeli <dodji@redhat.com>
9048
9049 * c.opt (ftrack-macro-expansion): New option. Handle it with and
9050 without argument.
9051 * c-opts.c (c_common_handle_option)<case
9052 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
9053 cases. Handle -ftrack-macro-expansion with and without argument.
9054
46427374
TT
90552011-10-15 Tom Tromey <tromey@redhat.com>
9056 Dodji Seketeli <dodji@redhat.com>
9057
9058 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
9059 (print_line, cb_define, do_line_change): Adjust to avoid touching
9060 the internals of struct line_map. Use the public API instead.
9061 * c-pch.c (c_common_read_pch): Likewise.
9062 * c-lex.c (fe_file_change): Likewise.
9063
fc8396e9
PC
90642011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
9065
9066 PR c++/17212
9067 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
9068
90692011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
9070
9071 PR c++/33067
9072 * c-pretty-print.c (pp_c_floating_constant): Output
9073 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
9074
e79983f4
MM
90752011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
9076
9077 * c-common.c (def_builtin_1): Delete old interface with two
9078 parallel arrays to hold standard builtin declarations, and replace
9079 it with a function based interface that can support creating
9080 builtins on the fly in the future. Change all uses, and poison
9081 the old names. Make sure 0 is not a legitimate builtin index.
9082 * c-omp.c (c_finish_omp_barrier): Ditto.
9083 (c_finish_omp_taskwait): Ditto.
9084 (c_finish_omp_flush): Ditto.
9085
6637388f
TG
90862011-10-11 Tristan Gingold <gingold@adacore.com>
9087
9088 * c.opt: (fallow-parameterless-variadic-functions): New.
9089
3797cb21
DS
90902011-09-08 Dodji Seketeli <dodji@redhat.com>
9091
9092 PR c++/33255 - Support -Wunused-local-typedefs warning
9093 * c-common.h (struct c_language_function::local_typedefs): New
9094 field.
9faeb493
UB
9095 (record_locally_defined_typedef, maybe_record_typedef_use)
9096 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 9097 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
9098 (maybe_record_typedef_use)
9099 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
9100 * c.opt: Declare new -Wunused-local-typedefs flag.
9101
693ddb1b
EB
91022011-09-06 Eric Botcazou <ebotcazou@adacore.com>
9103
9104 PR middle-end/50266
9105 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
9106 computations.
9107
830c740f
RG
91082011-09-05 Richard Guenther <rguenther@suse.de>
9109
9110 * c-common.c (complete_array_type): Use ssize_int (-1) instead
9111 of integer_minus_one_node for empty array upper bounds.
9112
892a371f
DS
91132011-08-28 Dodji Seketeli <dodji@redhat.com>
9114
9115 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
9116 it's the first time it's being called on this main TU.
9117
0e3fdb48
RB
91182011-08-24 Richard Guenther <rguenther@suse.de>
9119
9120 PR c/49396
9121 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
9122
91232011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
9124
9125 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
9126 defined in cpp_init_builtins and c_cpp_builtins.
9127
d4a83c10
JM
91282011-08-19 Joseph Myers <joseph@codesourcery.com>
9129
9130 * c-common.c (c_common_reswords): Add __builtin_complex.
9131 * c-common.h (RID_BUILTIN_COMPLEX): New.
9132
bbceee64
JM
91332011-08-18 Joseph Myers <joseph@codesourcery.com>
9134
9135 * c-common.c (c_common_reswords): Add _Noreturn.
9136 (keyword_is_function_specifier): Handle RID_NORETURN.
9137 * c-common.h (RID_NORETURN): New.
9138
3f8257db 91392011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
0e3a99ae
AS
9140
9141 * c-common.c (unsafe_conversion_p): New function. Check if it is
9142 unsafe to convert an expression to the type.
9143 (conversion_warning): Adjust, use unsafe_conversion_p.
9144 * c-common.h (unsafe_conversion_p): New function declaration.
9145
20906c66
JJ
91462011-08-02 Jakub Jelinek <jakub@redhat.com>
9147
9148 * c-common.h (c_finish_omp_atomic): Adjust prototype.
9149 (c_finish_omp_taskyield): New prototype.
9150 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
9151 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
9152 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
9153 or RHS1 have side-effects, evaluate those too in the right spot,
9154 if it is a decl and LHS is also a decl, error out if they
9155 aren't the same.
9156 (c_finish_omp_taskyield): New function.
9157 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
9158 * c-pragma.c (omp_pragmas): Add taskyield.
9159 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
9160 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
9161 PRAGMA_OMP_CLAUSE_MERGEABLE.
9162
770e5a2e
DS
91632011-07-25 Dodji Seketeli <dodji@redhat.com>
9164
9165 * c-common.h (set_underlying_type): Remove parm name from
9166 declaration.
9167
1baae426
RG
91682011-07-25 Romain Geissler <romain.geissler@gmail.com>
9169
9170 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 9171
fcb21722
JM
91722011-07-22 Jason Merrill <jason@redhat.com>
9173
76f86d00
JM
9174 PR c++/49793
9175 * c.opt (Wnarrowing): New.
9176
3a636414
JM
9177 PR c++/30112
9178 * c-common.h: Declare c_linkage_bindings.
9179 * c-pragma.c (handle_pragma_redefine_extname): Use it.
9180
fcb21722
JM
9181 PR c++/49813
9182 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
9183 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
9184 as flag_isoc99 for 'restrict'.
9185 (pp_c_specifier_qualifier_list): Likewise for _Complex.
9186
02614448
ILT
91872011-07-21 Ian Lance Taylor <iant@google.com>
9188
9189 PR middle-end/49705
9190 * c-common.c (c_disable_warnings): New static function.
9191 (c_enable_warnings): New static function.
9192 (c_fully_fold_internal): Change local unused_p to bool. Call
9193 c_disable_warnings and c_enable_warnings rather than change
9194 c_inhibit_evaluation_warnings.
9195
34429675
JM
91962011-07-20 Jason Merrill <jason@redhat.com>
9197
9198 PR c++/6709 (DR 743)
9199 PR c++/42603 (DR 950)
9200 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
9201 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
9202 (CPP_DECLTYPE): New.
9203 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
9204
5d49b6a7
RG
92052011-07-19 Richard Guenther <rguenther@suse.de>
9206
9207 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
9208 * c-omp.c (c_finish_omp_for): Likewise.
9209
e84a58ff
EB
92102011-07-12 Eric Botcazou <ebotcazou@adacore.com>
9211
9212 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
9213 body on the next line.
9214
329af3c7
JM
92152011-07-08 Jason Merrill <jason@redhat.com>
9216
4063e61b
JM
9217 PR c++/45437
9218 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
9219
329af3c7
JM
9220 PR c++/49673
9221 * c-common.c (c_apply_type_quals_to_decl): Don't check
9222 TYPE_NEEDS_CONSTRUCTING.
9223
1a072294
RG
92242011-07-06 Richard Guenther <rguenther@suse.de>
9225
9226 * c-common.c (c_common_nodes_and_builtins):
9227 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
9228
fce5dddd
RG
92292011-07-05 Richard Guenther <rguenther@suse.de>
9230
9231 * c-common.c (c_common_nodes_and_builtins): Build all common
9232 tree nodes first.
9233
45d439ac
JJ
92342011-06-27 Jakub Jelinek <jakub@redhat.com>
9235
56300785
JJ
9236 * c-common.h (c_tree_chain_next): New static inline function.
9237
45d439ac
JJ
9238 * c-common.c (check_builtin_function_arguments): Handle
9239 BUILT_IN_ASSUME_ALIGNED.
9240
e0a8ecf2
AM
92412011-06-21 Andrew MacLeod <amacleod@redhat.com>
9242
9243 * c-common.c: Add sync_ or SYNC__ to builtin names.
9244 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
9245
92462011-06-20 Pierre Vittet <piervit@pvittet.com>
9247
9248 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
9249 handler.
9250 (gen_pragma_handler): New union.
9251 (internal_pragma_handler): New type.
9252 (c_register_pragma_with_data)
9253 (c_register_pragma_with_expansion_and_data): New functions.
9254
9255 * c-pragma.c (registered_pragmas, c_register_pragma_1)
9256 (c_register_pragma, c_register_pragma_with_expansion)
9257 (c_invoke_pragma_handler): Changed to work with
9258 internal_pragma_handler.
9259 (c_register_pragma_with_data)
9260 (c_register_pragma_with_expansion_and_data): New functions.
9261
677f3fa8
JM
92622011-06-14 Joseph Myers <joseph@codesourcery.com>
9263
9264 * c-common.c: Include common/common-target.h.
9265 (handle_section_attribute): Use
9266 targetm_common.have_named_sections.
9267 * c-cppbuiltin.c: Include common/common-target.h.
9268 (c_cpp_builtins): Use targetm_common.except_unwind_info.
9269
d7fc8c14
RG
92702011-06-10 Richard Guenther <rguenther@suse.de>
9271
9272 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
9273 to print a IDENTIFIER_NODE.
9274
10e48e39
RO
92752011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9276 Joseph Myers <joseph@codesourcery.com>
9277
9278 * c.opt (fbuilding-libgcc): New option.
9279 * c-cppbuiltin.c (c_cpp_builtins): Define
9280 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
9281
6976ae51
JM
92822011-06-07 Jason Merrill <jason@redhat.com>
9283
3ff60975
JM
9284 * c-common.c (max_tinst_depth): Lower default to 900.
9285
6976ae51
JM
9286 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
9287
009db074
RG
92882011-06-07 Richard Guenther <rguenther@suse.de>
9289
9290 * c-common.c (c_common_nodes_and_builtins): Do not set
9291 size_type_node or call set_sizetype.
9292
b4592b92
DS
92932011-06-07 Dodji Seketeli <dodji@redhat.com>
9294
9295 PR debug/49130
9296 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 9297 type when using pointer comparison to compare types.
b4592b92 9298
014ab419
JW
92992011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
9300
9301 * c.opt: Add -Wdelete-non-virtual-dtor.
9302 * c-opts.c (c_common_handle_option): Include it in -Wall.
9303
4f60111f
NF
93042011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
9305
9306 PR bootstrap/49190
9307
9308 Revert:
9309 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
9310
9311 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
9312 not tree_common.
9313
4cc4f2f4
JJ
93142011-05-27 Jakub Jelinek <jakub@redhat.com>
9315
9316 PR c++/49165
9317 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
9318 C++ don't call c_common_truthvalue_conversion on void type arms.
9319
38e01f9e
NF
93202011-05-27 Nathan Froyd <froydnj@codesourcery.com>
9321
9322 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
9323 (stmt_list_stack): Define.
9324 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
9325 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
9326
92e948a8
NF
93272011-05-26 Nathan Froyd <froydnj@codesourcery.com>
9328
9329 * c-common.c (warning_candidate_p): Check for BLOCKs.
9330
a2fc3e63
NF
93312011-05-26 Nathan Froyd <froydnj@codesourcery.com>
9332
9333 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
9334 not tree_common.
9335
0957c029
JJ
93362011-05-25 Jakub Jelinek <jakub@redhat.com>
9337
9338 * c-common.c (def_fn_type): Remove extra va_end.
9339
828fb3ba
JM
93402011-05-23 Jason Merrill <jason@redhat.com>
9341
9342 PR c++/48106
9343 * c-common.c (c_common_get_narrower): New.
9344 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
9345
dde05067
NF
93462011-05-23 Nathan Froyd <froydnj@codesourcery.com>
9347
9348 * c-common.h (check_function_arguments): Tweak prototype of
9349 check_function_arguments.
9350 * c-common.c (check_function_arguments): Likewise. Adjust
9351 calls to check_function_nonnull, check_function_format, and
9352 check_function_sentinel.
9353 (check_function_sentinel): Take a FUNCTION_TYPE rather than
9354 separate attributes and typelist arguments. Use
9355 FOREACH_FUNCTION_ARGS to iterate over argument types.
9356
3c0d13bf
PC
93572011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
9358
9359 * c-common.c (c_common_reswords): Reorder.
9360 * c-common.h (rid): Likewise.
9361
8242dd04
NF
93622011-05-10 Nathan Froyd <froydnj@codesourcery.com>
9363
9364 * c-common.c (def_fn_type): Don't call build_function_type, call
9365 build_function_type_array or build_varargs_function_type_array
9366 instead.
9367 (c_common_nodes_and_builtins): Likewise.
9368
3d528853
NF
93692011-05-05 Nathan Froyd <froydnj@codesourcery.com>
9370
9371 * c-common.c (c_add_case_label): Omit the loc argument to
9372 build_case_label.
9373 * c-common.h (build_case_label): Remove.
9374 * c-semantics.c (build_case_label): Remove.
9375
a04a722b
JM
93762011-05-05 Joseph Myers <joseph@codesourcery.com>
9377
9378 * c-objc.h (objc_start_method_definition): Update prototype.
9379 * stub-objc.c (objc_start_method_definition): Add extra parameter.
9380
e19a18d4
NF
93812011-05-04 Nathan Froyd <froydnj@codesourcery.com>
9382
9383 * c-common.c (check_main_parameter_types): Reindent. Don't use
9384 TYPE_ARG_TYPES directly.
9385 (handle_nonnull_attribute): Likewise.
9386 (sync_resolve_params): Likewise.
9387 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
9388 to check_format_string.
9389 (handle_format_attribute): Likewise.
9390 (check_format_string): Take a function type to examine instead of
9391 a type list. Use a function_arg_iterator to step through argument
9392 types.
9393
c62c040f
RG
93942011-05-04 Richard Guenther <rguenther@suse.de>
9395
9396 * c-common.c (fix_string_type): Use size_int for index type bounds.
9397 (start_fname_decls): Do not pass NULL to build_int_cst.
9398 (c_init_attributes): Likewise.
9399 * c-lex.c (c_lex_with_flags): Likewise.
9400
c12ff9d8
JM
94012011-04-27 Jason Merrill <jason@redhat.com>
9402
9403 * c-common.c (make_tree_vector_from_list): New.
9404 * c-common.h: Declare it.
9405
304dfbe3
RG
94062011-04-26 Richard Guenther <rguenther@suse.de>
9407
9408 PR preprocessor/48248
9409 * c-ppoutput.c (maybe_print_line): Always optimize newlines
9410 for output size with -P.
9411
3c0d13bf
PC
94122011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
9413
9414 * c-common.c (struct c_common_resword): Add __underlying_type.
9415 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
9416
04695783
JM
94172011-04-20 Jim Meyering <meyering@redhat.com>
9418
9419 * c-format.c (init_dollar_format_checking): Remove useless
9420 if-before-free.
9421
0dc33c3c
NP
94222011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
9423
9424 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 9425 (objc_detect_field_duplicates): New.
0dc33c3c 9426 * stub-objc.c: Likewise.
3c0d13bf 9427
c59633d9
NP
94282011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
9429
9430 * stub-objc.c (objc_declare_protocols): Renamed to
9431 objc_declare_protocol.
9432 * c-objc.h: Likewise.
3c0d13bf 9433
32dabdaf
NP
94342011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
9435
9436 * stub-objc.c (objc_declare_class): Updated argument name.
9437
81f653d6
NF
94382011-04-12 Nathan Froyd <froydnj@codesourcery.com>
9439
9440 * c-common.h (c_common_init_ts): Declare.
9441 * c-common.c (c_common_init_ts): Define.
9442
eb345401
NP
94432011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
9444
9445 * c-objc.h (objc_build_message_expr): Updated prototype.
9446 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 9447
a358e188
MJ
94482011-04-12 Martin Jambor <mjambor@suse.cz>
9449
9450 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
9451 of cgraph_node.
9452
e6313a78
RG
94532011-04-11 Richard Guenther <rguenther@suse.de>
9454
9455 * c-common.c (complete_array_type): Build a range type of
9456 proper type.
9457
dcf0c47e
NF
94582011-04-08 Nathan Froyd <froydnj@codesourcery.com>
9459
9460 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
9461 (handle_type_generic_attribute): Likewise.
9462
1ee44b26
JM
94632011-04-07 Jason Merrill <jason@redhat.com>
9464
9465 PR c++/48450
9466 * c-common.c (c_common_truthvalue_conversion): Don't ignore
9467 conversion from C++0x scoped enum.
9468
acce4e77
JM
94692011-04-06 Joseph Myers <joseph@codesourcery.com>
9470
9471 * c-target-def.h: New file.
9472 * c-target.def: New file.
9473 * c-target.h: New file.
9474 * c-common.c (targetcm): Don't define here.
9475 * c-common.h (default_handle_c_option): Declare.
9476 * c-format.c: Include c-target.h instead of target.h.
9477 * c-opts.c: Include c-target.h instead of target.h. Explicitly
9478 include tm.h.
9479 (default_handle_c_option): Move from targhooks.c.
9480
e2eefb55
JJ
94812011-03-29 Jakub Jelinek <jakub@redhat.com>
9482
9483 PR preprocessor/48248
9484 * c-ppoutput.c (print): Add src_file field.
9485 (init_pp_output): Initialize it.
9486 (maybe_print_line): Don't optimize by adding up to 8 newlines
9487 if map->to_file and print.src_file are different file.
9488 (print_line): Update print.src_file.
9489
ba78087b
KT
94902011-03-25 Kai Tietz <ktietz@redhat.com>
9491
9492 * c-ada-spec.c (compare_comment): Use filename_cmp
9493 instead of strcmp for filename.
9494
0edf1bb2
JL
94952011-03-25 Jeff Law <law@redhat.com>
9496
adfac8df 9497 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 9498
c7dc8804
JM
94992011-03-25 Jason Merrill <jason@redhat.com>
9500
9501 * c.opt: Add -std=c++03.
9502
d1d879b1
EB
95032011-03-22 Eric Botcazou <ebotcazou@adacore.com>
9504
9505 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
9506
3f8257db 95072011-03-17 Kai Tietz <ktietz@redhat.com>
62d784f7
KT
9508
9509 PR target/12171
5050afdf
KT
9510 * c-pretty-print.c (pp_c_specifier_qualifier_list):
9511 Display allowed attributes for function pointer types.
9512 (pp_c_attributes_display): New function to display
9513 attributes having affects_type_identity flag set to true.
9514 * c-pretty-print.h (pp_c_attributes_display): New prototype.
9515
62d784f7
KT
9516 * c-common.c (c_common_attribute_table):
9517 Add new element.
9518 (c_common_format_attribute_table): Likewise.
9519
82d37118
JM
95202011-03-18 Jason Merrill <jason@redhat.com>
9521
49a000c3
JM
9522 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
9523 * c-common.h: Don't declare it here.
9524 * c-common.c: Or define it here.
9525 * c-opts.c (c_common_handle_option): Or set it here.
9526
82d37118
JM
9527 PR c++/35315
9528 * c-common.c (handle_transparent_union_attribute): Don't
9529 make a duplicate type in C++.
9530
17bc631c
JM
95312011-03-15 Jason Merrill <jason@redhat.com>
9532
9533 * c-common.c (max_constexpr_depth): New.
9534 * c-common.h: Declare it.
9535 * c-opts.c (c_common_handle_option): Set it.
9536 * c.opt (fconstexpr-depth): New option.
9537
1b9b91a6
JM
95382011-03-11 Jason Merrill <jason@redhat.com>
9539
f231b5ff
JM
9540 * c-common.c (attribute_takes_identifier_p): Add missing const.
9541
1b9b91a6
JM
9542 PR c++/46803
9543 * c-common.c (attribute_takes_identifier_p): Assume that an
9544 unknown attribute takes an identifier.
9545
a19e4d44
NF
95462011-03-07 Nathan Froyd <froydnj@codesourcery.com>
9547
9548 PR c/47786
9549 * c-common.c (c_type_hash): Call list_length instead of iterating
9550 through DECL_CHAIN. Rename 'i' to 'n_elements'.
9551
982d62f6
JJ
95522011-02-19 Jakub Jelinek <jakub@redhat.com>
9553
9554 PR c/47809
9555 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
9556
0a256240
NP
95572011-02-17 Iain Sandoe <iains@gcc.gnu.org>
9558
9559 * c.opt (fobjc-abi-version=) New.
9560 (fobjc-nilcheck): New.
9561
ba9e6dd5
NF
95622011-02-03 Nathan Froyd <froydnj@codesourcery.com>
9563
9564 PR c++/46890
9565 * c-common.h (keyword_is_decl_specifier): Declare.
9566 * c-common.c (keyword_is_decl_specifier): Define.
9567 (keyword_is_function_specifier): New function.
9568
7273813a
JJ
95692011-01-26 Jakub Jelinek <jakub@redhat.com>
9570
9571 PR c/47473
9572 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
9573 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
9574 REAL_TYPE.
9575
908ef79b
AC
95762011-01-26 Arnaud Charlet <charlet@adacore.com>
9577
9578 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
9579
237e9384
JJ
95802011-01-26 Jakub Jelinek <jakub@redhat.com>
9581
9582 PR pch/47430
9583 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
9584 after init_c_lex if pch_file is set.
9585
47ea1edf
DK
95862011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
9587
d4dba752 9588 PR c++/43601
47ea1edf
DK
9589 * c.opt (-fkeep-inline-dllexport): New switch.
9590
2aa9c6ae
RG
95912011-01-12 Richard Guenther <rguenther@suse.de>
9592
9593 PR middle-end/32511
9594 * c-common.c (handle_weak_attribute): Warn instead of error
9595 on declaring an inline function weak.
9596
7bd11157
TT
95972011-01-05 Tom Tromey <tromey@redhat.com>
9598
9599 * c-common.h (lvalue_error): Update.
9600 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
9601 not error.
9602
0e66e494 96032010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 9604
b4f588c4
NP
9605 PR objc/47075
9606 * c-objc.h (objc_finish_message_expr): Added argument to
9607 prototype.
9608
f4da8dce
NF
96092010-12-22 Nathan Froyd <froydnj@codesourcery.com>
9610
9611 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
9612 Use prototype_p.
9613
46270f14
NP
96142010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
9615
9616 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 9617 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 9618
4816c593
NF
96192010-12-10 Nathan Froyd <froydnj@codesourcery.com>
9620
9621 * c-common.h (readonly_error): Declare.
9622 * c-common.c (readonly_error): Define.
9623
7a6daeb0
NF
96242010-12-09 Nathan Froyd <froydnj@codesourcery.com>
9625
9626 * c-common.h (invalid_indirection_error): Declare.
9627 * c-common.c (invalid_indirection_error): Define.
9628
892f6119
RG
96292010-12-03 Richard Guenther <rguenther@suse.de>
9630
9631 PR c/46745
9632 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
9633 (pp_c_unary_expression): Likewise.
9634 (pp_c_expression): Likewise.
9635
6c39e757
NP
96362010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
9637
9638 * c-common.h (objc_finish_function): New.
9639 (objc_non_volatilized_type): Removed.
9640 (objc_type_quals_match): Removed.
9641 * stub-objc.c (objc_finish_function): New.
9642 (objc_non_volatilized_type): Removed.
9643 (objc_type_quals_match): Removed.
9faeb493 9644
7c475d11
JM
96452010-11-30 Joseph Myers <joseph@codesourcery.com>
9646
9647 * c-common.h (parse_optimize_options): Declare.
9648 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
9649 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
9650
71f3e391
JM
96512010-11-29 Joseph Myers <joseph@codesourcery.com>
9652
9653 * c-opts.c (check_deps_environment_vars): Use getenv instead of
9654 GET_ENVIRONMENT.
9655 * c-pch.c (O_BINARY): Don't define here.
9656 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
9657
d5fabb58
JM
96582010-11-25 Joseph Myers <joseph@codesourcery.com>
9659
9660 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
9661 targetm.except_unwind_info.
9662
299404a1
JM
96632010-11-23 Joseph Myers <joseph@codesourcery.com>
9664
9665 * c-opts.c (c_common_handle_option): Pass location to
9666 set_struct_debug_option.
9667
c98cd5bf
JM
96682010-11-23 Joseph Myers <joseph@codesourcery.com>
9669
9670 * c-common.c (visibility_options): Move from ../opts.c.
9671 * c-common.h (struct visibility_flags, visibility_options):
9672 Declare here.
9673 * c-opts.c (finish_options): Rename to c_finish_options.
9674 (c_common_init): Update call to finish_options.
9675
a9546771
NP
96762010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
9677
9678 PR objc/34033
9679 * c-lex.c (lex_string): Check that each string in an Objective-C
9680 string concat sequence starts with either one or zero '@', and
9681 that there are no spurious '@' signs at the end.
9682
24a57808
JM
96832010-11-20 Joseph Myers <joseph@codesourcery.com>
9684
9685 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
9686 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
9687 HANDLE_PRAGMA_VISIBILITY.
9688 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
9689 HANDLE_PRAGMA_VISIBILITY): Don't define.
9690 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
9691
a9aa2c3a
NF
96922010-11-20 Nathan Froyd <froydnj@codesourcery.com>
9693
9694 PR c++/16189
9695 PR c++/36888
9696 PR c++/45331
9697 * c-common.h (keyword_begins_type_specifier): Declare.
9698 (keyword_is_storage_class_specifier): Declare.
9699 (keyword_is_type_qualifier): Declare.
9700 * c-common.c (keyword_begins_type_specifier): New function.
9701 (keyword_is_storage_class_specifier): New function.
9702 (keyword_is_type_qualifier): Declare.
9703
5386338c
JM
97042010-11-19 Joseph Myers <joseph@codesourcery.com>
9705
9706 PR c/46547
9707 * c-common.c (in_late_binary_op): Define.
9708 (c_common_truthvalue_conversion): Check in_late_binary_op before
9709 calling c_save_expr.
9710 * c-common.h (in_late_binary_op): Declare.
9711
69ccdddb
JM
97122010-11-19 Joseph Myers <joseph@codesourcery.com>
9713
9714 * c-opts.c (c_common_handle_option): Update calls to
9715 set_struct_debug_option.
9716
6b192a09
NP
97172010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
9718
9719 * c-common.h (objc_declare_protocols): Added additional argument.
9720 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 9721
fb52b50a
NF
97222010-11-18 Nathan Froyd <froydnj@codesourcery.com>
9723
9724 PR c/33193
9725 * c-common.h (build_real_imag_expr): Declare.
9726 * c-semantics.c (build_real_imag_expr): Define.
9727
b37421c6
JM
97282010-11-17 Joseph Myers <joseph@codesourcery.com>
9729
9730 * c-opts.c (c_common_parse_file): Take no arguments.
9731 * c-common.h (c_common_parse_file): Update prototype.
9732
07078664
JJ
97332010-11-16 Jakub Jelinek <jakub@redhat.com>
9734
9735 PR c++/46401
9736 * c-common.c (warning_candidate_p): Don't track non-const calls
9737 or STRING_CSTs.
9738
c6a13190
ILT
97392010-11-15 Ian Lance Taylor <iant@google.com>
9740
9741 * c-lex.c (init_c_lex): Set macro debug callbacks if
9742 flag_dump_go_spec is set.
9743
925e8657
NP
97442010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
9745
9746 * c-common.h (objc_build_incr_expr_for_property_ref): New.
9747 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
9748
bb0a9581
NF
97492010-11-15 Nathan Froyd <froydnj@codesourcery.com>
9750
9751 PR preprocessor/45038
9752 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
9753 dialects.
9754
c5fa0890
JM
97552010-11-12 Joseph Myers <joseph@codesourcery.com>
9756
9757 * c-common.h (c_family_lang_mask): Declare.
9758 * c-opts.c (c_family_lang_mask): Make extern.
9759 * c-pragma.c (handle_pragma_diagnostic): Use
9760 control_warning_option.
9761
a4d8c676
JM
97622010-11-12 Joseph Myers <joseph@codesourcery.com>
9763
9764 * c-common.c (parse_optimize_options): Update call to
9765 decode_options.
9766 * c-common.h (c_common_handle_option): Update prototype.
9767 * c-opts.c (c_common_handle_option): Take location_t parameter and
9768 pass it to other functions.
9769
f954bd2c
JM
97702010-11-11 Joseph Myers <joseph@codesourcery.com>
9771
9772 * c-opts.c (warning_as_error_callback): Remove.
9773 (c_common_initialize_diagnostics): Don't call
9774 register_warning_as_error_callback.
9775 (c_common_handle_option): Handle -Werror=normalized= here.
9776
d8a07487
JM
97772010-11-10 Joseph Myers <joseph@codesourcery.com>
9778
9779 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
9780 in diagnostic.
9781 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
9782 letter.
9783 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
9784 Remove trailing '.' from diagnostics.
9785 * c.opt (Wwrite-strings_: Avoid '`' in help text.
9786
d5478783
JM
97872010-11-10 Joseph Myers <joseph@codesourcery.com>
9788
9789 * c-common.c (parse_optimize_options): Pass global_dc to
9790 decode_options.
9791 * c-opts.c (c_common_handle_option): Pass &global_options to
9792 set_Wstrict_aliasing.
9793 * c.opt (v): Don't mark Common or document here.
9794
91ebb981
IS
97952010-11-06 Iain Sandoe <iains@gcc.gnu.org>
9796
9797 PR target/44981
9798 * c-format.c (format_type): New type gcc_objc_string_format_type.
9799 (valid_stringptr_type_p): New.
9800 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 9801 (check_format_string): Pass expected type, use
91ebb981
IS
9802 valid_stringptr_type_p (), check that the format string types are
9803 consistent with the format specification.
9804 (decode_format_attr): Warn if NSString is used outside objective-c.
9805 (format_types_orig): Add NSString.
9806 (format_name): New.
9807 (format_flags): New.
9808 (check_format_arg): Handle format strings requiring an external parser.
9809 first_target_format_type: New variable.
9810 (handle_format_attribute): Set up first_target_format_type, pass the
9811 expected format arg string type to check_format_string().
ab20d992 9812 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
91ebb981
IS
9813 * stub-objc.c (objc_string_ref_type_p): New.
9814 (objc_check_format_arg): New.
9815
bede2adc
NP
98162010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
9817
9faeb493 9818 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
9819 * c-common.h (objc_build_class_component_ref): New.
9820 * stub-objc.c (objc_build_class_component_ref): New.
9821
9a179d01
NP
98222010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
9823
9824 * c.opt (Wproperty-assign-default): New option.
9825
22d8d616
NP
98262010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
9827
9828 Implemented -fobjc-std=objc1 flag.
9829 * c.opt (fobjc-std=objc1): New option.
9830
2debdb4f
NP
98312010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
9832
9833 Implemented format and noreturn attributes for Objective-C methods.
9834 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
9835 attribute for Objective-C methods.
9836
ec52b111
JM
98372010-10-31 Jason Merrill <jason@redhat.com>
9838
9839 * c-common.c (conversion_warning, warn_for_collisions_1): Use
9840 EXPR_LOC_OR_HERE.
9841
46a88c12
NP
98422010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
9843
9844 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
9845 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
9846 (objc_add_property_declaration): Removed arguments for copies and
9847 ivar.
9848 (objc_build_getter_call): Renamed to
9849 objc_maybe_build_component_ref.
9850 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
9851 (objc_is_property_ref): New.
9852 * c-common.c (c_common_reswords): Removed copies and ivar.
9853 * stub-objc.c (objc_add_property_declaration): Removed arguments
9854 for copies and ivar.
9855 (objc_build_getter_call): Renamed to
9856 objc_maybe_build_component_ref.
9857 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
9858 (objc_is_property_ref): New.
9faeb493 9859
1e4bf85b
AC
98602010-10-29 Arnaud Charlet <charlet@adacore.com>
9861 Matthew Gingell <gingell@adacore.com>
9862
9863 * c-ada-spec.c (separate_class_package): New function.
9864 (pp_ada_tree_identifier): Prefix references to C++ classes with the
9865 name of their enclosing package.
9866 (print_ada_declaration): Use separate_class_package.
9867
81f0bab2
JM
98682010-10-27 Jason Merrill <jason@redhat.com>
9869
2b08f2c5
JM
9870 * c-common.c (c_common_reswords): Add __is_literal_type.
9871 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
9872
81f0bab2
JM
9873 * c-common.c (check_case_value): Remove special C++ code.
9874
200290f2
NP
98752010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
9876
9877 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
9878 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
9879 and RID_LAST_PATTR.
9880 (objc_add_property_declaration): Added additional arguments.
9881 (objc_property_attribute_kind): Removed.
9882 (objc_set_property_attr): Removed.
9883 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
9884 copy and nonatomic.
9885 * stub-objc.c (objc_add_property_declaration): Added additional
9886 arguments.
9887 (objc_set_property_attr): Removed.
9faeb493 9888
f614132b
NP
98892010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
9890
9891 * c-common.h (objc_add_property_variable): Renamed to
9892 objc_add_property_declaration. Added location argument.
9893 * stub-objc.c (objc_add_property_variable): Same change.
b1726d6c 9894
b8a18805
NP
98952010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
9896
9897 * c-common.h (objc_maybe_printable_name): New.
9898 * stub-objc.c (objc_maybe_printable_name): New.
9899
3f8257db
JJ
99002010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
9901 Andrew Pinski <pinskia@gmail.com>
30cd1c5d
AS
9902
9903 * c-common.h (c_common_mark_addressable_vec): Declare.
9904 * c-common.c (c_common_mark_addressable_vec): New function.
9905
249a82c4
NP
99062010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
9907
9908 * c-common.h (objc_set_method_type): Removed.
9909 (objc_add_method_declaration): Added boolean argument.
9910 (objc_start_method_definition): Same change.
9911 (objc_build_method_signature): Same change.
9912 * stub-objc.c (objc_set_method_type): Removed.
9913 (objc_add_method_declaration): Added boolean argument.
9914 (objc_start_method_definition): Same change.
9915 (objc_build_method_signature): Same change.
9916
977e30bc
NP
99172010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
9918
9919 * c-common.h (finish_file): Removed.
9920 (objc_write_global_declarations): New.
9921 * c-opts.c (c_common_parse_file): Do not call finish_file.
9922 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 9923
da57d1b9
NP
99242010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
9925
9926 Implemented parsing @synthesize and @dynamic for
9927 Objective-C/Objective-C++.
9928 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
9929 (objc_add_synthesize_declaration): New.
9930 (objc_add_dynamic_declaration): New.
9931 * c-common.c (c_common_reswords): Add synthesize and dynamic.
9932 * stub-objc.c (objc_add_synthesize_declaration): New.
9933 (objc_add_dynamic_declaration): New.
9faeb493 9934
0069111f
MM
99352010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
9936
9937 PR target/46041
9938 * c-cppbuiltin.c (mode_has_fma): Move function here from
9939 builtins.c. Don't use the fma optab, instead just use the
9940 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
9941 using -save-temps.
9942
e426b47b
NP
99432010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
9944
9945 Merge from 'apple/trunk' branch on FSF servers.
0069111f 9946
3f8257db 9947 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
e426b47b 9948
9faeb493 9949 Radar 4330422
e426b47b
NP
9950 * c-common.h (objc_non_volatilized_type): New declaration
9951 * stub-objc.c (objc_non_volatilized_type): New stub.
9952
90fbfdc3
NP
99532010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
9954
e426b47b 9955 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3 9956
ab20d992 9957 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
90fbfdc3 9958
9faeb493 9959 Radar 4133425
90fbfdc3 9960 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 9961 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 9962
c37d8c30
IS
99632010-10-17 Iain Sandoe <iains@gcc.gnu.org>
9964
9965 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
9966 * c-common.h (enum rid): Add RID_AT_PACKAGE.
9967 (objc_ivar_visibility_kind): New enum.
9968 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 9969 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
9970 visibility enum.
9971
1b1562a5
MM
99722010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
9973
9974 * c-cppbuiltin.c (builtin_define_float_constants): Emit
9975 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
9976 has the appropriate fma builtins.
9977 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
9978
668ea4b1
IS
99792010-10-14 Iain Sandoe <iains@gcc.gnu.org>
9980
1b1562a5 9981 merge from FSF apple 'trunk' branch.
3f8257db 9982 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 9983
668ea4b1
IS
9984 Radars 4436866, 4505126, 4506903, 4517826
9985 * c-common.c (c_common_resword): Define @property and its attributes.
9986 * c-common.h: Define property attribute enum entries.
9987 (OBJC_IS_PATTR_KEYWORD): New.
9988 (objc_property_attribute_kind): New enum.
9989 Declare objc_set_property_attr (), objc_add_property_variable (),
9990 objc_build_getter_call () and objc_build_setter_call ().
9991 * stub-objc.c (objc_set_property_attr): New stub.
9992 (objc_add_property_variable): Likewise.
9993 (objc_build_getter_call): Likewise.
9994 (objc_build_setter_call) Likewise.
1b1562a5 9995
a1178b30
IS
99962010-10-13 Iain Sandoe <iains@gcc.gnu.org>
9997
1b1562a5 9998 merge from FSF apple 'trunk' branch.
ab20d992 9999 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
a1178b30
IS
10000
10001 Radar 3803157 (method attributes)
10002 * c-common.c (handle_deprecated_attribute): Recognize
10003 objc methods as valid declarations.
10004 * c-common.h: Declare objc_method_decl ().
1b1562a5 10005 * stub-objc.c (objc_method_decl): New stub.
a1178b30 10006
a75bfaa6
JM
100072010-10-08 Joseph Myers <joseph@codesourcery.com>
10008
10009 * c-common.c (parse_optimize_options): Call
10010 decode_cmdline_options_to_array_default_mask before
10011 decode_options. Update arguments to decode_options.
10012 * c-common.h (c_common_init_options_struct): Declare.
10013 * c-opts.c (c_common_init_options_struct): New. Split out from
10014 c_common_init_options.
10015
f05b9d93
NP
100162010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
10017
10018 Implemented fast enumeration for Objective-C.
10019 * c-common.h (objc_finish_foreach_loop): New.
10020 * stub-objc.c (objc_finish_foreach_loop): New.
10021
1ebe4b4f
JM
100222010-10-05 Joseph Myers <joseph@codesourcery.com>
10023
10024 * c-common.h (struct diagnostic_context): Don't declare here.
10025 (c_common_initialize_diagnostics): Declare using
10026 diagnostic_context typedef.
10027 * c-opts.c (c_common_handle_option): Pass global_dc to
10028 handle_generated_option.
10029
d4d24ba4
JM
100302010-10-04 Joseph Myers <joseph@codesourcery.com>
10031
10032 * c-opts.c (c_common_handle_option): Pass &global_options_set to
10033 handle_generated_option.
10034
478a1c5b
ILT
100352010-10-03 Ian Lance Taylor <iant@google.com>
10036
10037 * c.opt (-fplan9-extensions): New option.
10038
82a1c2fe
FXC
100392010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10040
10041 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
10042 Remove.
10043 (c_cpp_builtins): Call functions from cppbuiltin.c instead
10044 of duplicating code.
10045
92902b1b
IS
100462010-09-30 Iain Sandoe <iains@gcc.gnu.org>
10047
10048 * c-common.c: Add two new entries for @optional
10049 and @required keywords.
10050
10051 merge from FSF 'apple/trunk' branch.
3f8257db 10052 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
92902b1b
IS
10053
10054 Radar 4386773
10055 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
10056 objective-c keywords.
10057 (objc_set_method_opt): New declaration.
10058 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 10059
46625112
JM
100602010-09-30 Joseph Myers <joseph@codesourcery.com>
10061
10062 * c-common.c (handle_optimize_attribute): Pass &global_options to
10063 cl_optimization_save and cl_optimization_restore.
10064 * c-opts.c (c_common_handle_option): Pass &global_options to
10065 handle_generated_option.
10066 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
10067 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
10068 &global_options to cl_optimization_restore.
10069
49b91f05
NP
100702010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
10071
10072 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
10073 Objective-C/Objective-C++ keywords.
10074
13ed556f 100752010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 10076
9faeb493
UB
10077 Merge from 'apple/trunk' branch on FSF servers.
10078
3f8257db 10079 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
a6341d57
NP
10080
10081 Radar 4281748
10082 * c-common.h (objc_check_global_decl): New declaration.
10083 * stub-objc.c (objc_check_global_decl): New stub.
10084
f0036cca
JM
100852010-09-29 Joseph Myers <joseph@codesourcery.com>
10086
10087 * c.opt: Don't use VarExists.
10088
e3339d0f
JM
100892010-09-29 Joseph Myers <joseph@codesourcery.com>
10090
10091 * c-common.c (c_cpp_error): Update names of diagnostic_context
10092 members.
10093 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
10094 cl_optimization members.
10095 * c-opts.c (warning_as_error_callback, c_common_handle_option,
10096 sanitize_cpp_opts, finish_options): Update names of cpp_options
10097 members.
10098
1973201f
NP
100992010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
10100
10101 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
10102 (objc_is_reserved_word): Removed.
10103 * c-common.c: Updated comments.
10104 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
10105 objc_is_reserved_word.
10106 * stub-objc.c (objc_is_reserved_word): Removed.
10107
f7e71da5
IS
101082010-09-28 Iain Sandoe <iains@gcc.gnu.org>
10109
9faeb493 10110 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
10111 include attributes.
10112 (objc_start_method_definition): Likewise.
10113 (objc_build_keyword_decl): Likewise.
10114 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
10115 (objc_start_method_definition): Likewise.
10116 (objc_build_keyword_decl): Likewise.
10117
c165dca7
IS
101182010-09-28 Iain Sandoe <iains@gcc.gnu.org>
10119
10120 * c-common.h (objc_start_class_interface): Adjust prototype.
10121 (objc_start_category_interface): Likewise.
10122 (objc_start_protocol): Likewise.
10123 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
10124 (objc_start_class_interface): Likewise.
10125 (objc_start_category_interface): Likewise.
10126
7458026b
ILT
101272010-09-27 Ian Lance Taylor <iant@google.com>
10128
10129 * c-common.c (c_common_attribute_table): Add no_split_stack.
10130 (handle_no_split_stack_attribute): New static function.
10131
b581b85b
NP
101322010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
10133
9faeb493 10134 Merge from 'apple/trunk' branch on FSF servers.
b581b85b 10135
3f8257db 10136 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
b581b85b 10137
9faeb493 10138 Radar 4229905
b581b85b
NP
10139 * c-common.h (objc_have_common_type): New declaration.
10140 * stub-objc.c (objc_have_common_type): New stub.
10141
10142 2005-06-22 Ziemowit Laski <zlaski@apple.com>
10143
10144 Radar 4154928
10145 * c-common.h (objc_common_type): New prototype.
9faeb493 10146 * stub-objc.c (objc_common_type): New stub.
b581b85b 10147
46a4da10
JH
101482010-09-24 Jan Hubicka <jh@suse.cz>
10149
10150 * c-common.c (handle_leaf_attribute): New function.
10151 (struct attribute_spec c_common_att): Add leaf.
10152
e200444e
JM
101532010-09-22 Joseph Myers <joseph@codesourcery.com>
10154
10155 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
10156 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
10157 -dump, -dump=, -imacros, -imacros=, -include, -include=,
10158 -include-barrier, -include-directory, -include-directory=,
10159 -include-directory-after, -include-directory-after=,
10160 -include-prefix, -include-prefix=, -include-with-prefix,
10161 -include-with-prefix=, -include-with-prefix-after,
10162 -include-with-prefix-after=, -include-with-prefix-before,
10163 -include-with-prefix-before=, -no-integrated-cpp,
10164 -no-line-commands, -no-standard-includes, -no-warnings, -output,
10165 -output=, -pedantic, -pedantic-errors, -preprocess,
10166 -print-missing-file-dependencies, -trace-includes, -traditional,
10167 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
10168 -user-dependencies, -verbose, -write-dependencies,
10169 -write-user-dependencies, no-integrated-cpp, traditional): New.
10170
29a80ea6
NP
101712010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
10172
10173 PR objc/23710
ac1fc2fc
NP
10174 * c-common.h (objc_start_method_definition): Return bool instead
10175 of void.
10176 * stub-objc.c (objc_start_method_definition): Return bool instead
10177 of void.
10178
101792010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
10180
10181 PR objc/25965
10182 * c-common.h (objc_get_interface_ivars): New declaration.
10183 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 10184
de621752
ILT
101852010-09-15 Ian Lance Taylor <iant@google.com>
10186
10187 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 10188 messages. Remove period at end of warning message.
de621752 10189
ba885ec5
NS
101902010-09-09 Nathan Sidwell <nathan@codesourcery.com>
10191
10192 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
10193 (handle_alias_attribute): ... here.
10194 (handle_ifunc_attribute): New.
10195
c5ee1358
MM
101962010-09-06 Mark Mitchell <mark@codesourcery.com>
10197
10198 * c-common.h (do_warn_double_promotion): Declare.
10199 * c-common.c (do_warn_double_promotion): Define.
10200
0a0b3574
MM
102012010-09-05 Mark Mitchell <mark@codesourcery.com>
10202
10203 * c.opt (Wdouble-promotion): New.
10204
d1779886
JM
102052010-09-02 Joseph Myers <joseph@codesourcery.com>
10206
10207 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
10208 fvtable-thunks, fxref): Mark no longer supported in help text.
10209
2d2bd949
JM
102102010-09-02 Joseph Myers <joseph@codesourcery.com>
10211
10212 * c.opt (Wimport, fall-virtual, falt-external-templates,
10213 fdefault-inline, fenum-int-equiv, fexternal-templates,
10214 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
10215 fname-mangling-version-, fnew-abi, fnonnull-objects,
10216 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
10217 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
10218 applicable.
10219 (fhandle-exceptions): Mark with Alias and Warn.
10220 * c-opts.c (c_common_handle_option): Don't handle options marked
10221 as ignored.
10222
5de8299c
JM
102232010-09-02 Joseph Myers <joseph@codesourcery.com>
10224
10225 * c.opt (Wcomments, Werror-implicit-function-declaration,
10226 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
10227 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
10228 aliases.
10229 * c-common.c (option_codes): Use OPT_Wcomment instead of
10230 OPT_Wcomments.
10231 * c-opts.c (warning_as_error_callback, c_common_handle_option):
10232 Don't handle options marked as aliases.
10233
0ceb0201
RG
102342010-08-25 Richard Guenther <rguenther@suse.de>
10235
10236 * c-common.c (c_common_get_alias_set): Remove special
10237 handling for pointers.
10238
ac47786e
NF
102392010-08-20 Nathan Froyd <froydnj@codesourcery.com>
10240
10241 * c-common.c: Use FOR_EACH_VEC_ELT.
10242 * c-gimplify.c: Likewise.
10243 * c-pragma.c: Likewise.
10244
c878765b
JM
102452010-08-16 Joseph Myers <joseph@codesourcery.com>
10246
10247 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
10248 RejectDriver.
10249 (MMDX): Change back to MMD. Mark NoDriverArg instead of
10250 RejectDriver.
10251 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
10252 instead of OPT_MDX and OPT_MMDX.
10253
603349bf
JM
102542010-08-16 Joseph Myers <joseph@codesourcery.com>
10255
10256 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
10257
644fa7ac
JM
102582010-08-12 Joseph Myers <joseph@codesourcery.com>
10259
10260 * c.opt (MD, MMD): Change to MDX and MMDX.
10261 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
10262
481e1176
JM
102632010-08-11 Joseph Myers <joseph@codesourcery.com>
10264
10265 * c-opts.c (c_common_handle_option): Call handle_generated_option
10266 instead of handle_option.
10267
ac8dc9f7
NF
102682010-08-08 Nathan Froyd <froydnj@codesourcery.com>
10269
10270 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
10271 (maybe_apply_renaming_pragma): Delete unneeded declarations.
10272
4f8c876d
NF
102732010-08-08 Nathan Froyd <froydnj@codesourcery.com>
10274
10275 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
10276 (pending_redefine_extname): Change type to a VEC.
10277 (add_to_renaming_pragma_list): Update for new type of
10278 pending_redefine_extname.
ac8dc9f7 10279 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 10280
3b0c690e
AC
102812010-08-04 Arnaud Charlet <charlet@adacore.com>
10282
10283 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
10284 visited.
10285 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
10286 decide whether a type has already been declared/seen.
10287 Do not go to the original type.
10288 (dump_nested_types): New parameter forward.
10289 Generate forward declaration if needed and mark type as visited.
10290 (print_ada_declaration): Call dump_nested_types if not already done.
10291 Mark types as visited.
10292
1890bccc
JM
102932010-08-03 Joseph Myers <joseph@codesourcery.com>
10294
10295 * c.opt (-print-pch-checksum): Remove option.
10296 * c-opts.c (c_common_handle_option): Don't handle
10297 OPT_print_pch_checksum.
10298
5f20c657
JM
102992010-07-27 Joseph Myers <joseph@codesourcery.com>
10300
10301 * c-common.h (c_common_handle_option): Update prototype and return
10302 value type.
10303 * c-opts.c (c_common_handle_option): Update prototype and return
10304 value type. Update calls to handle_option and
10305 enable_warning_as_error.
10306
f551f80c
JJ
103072010-07-27 Jakub Jelinek <jakub@redhat.com>
10308
10309 PR c/45079
10310 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
10311
61ff2bdc
JM
103122010-07-27 Joseph Myers <joseph@codesourcery.com>
10313
10314 * c-common.h (c_common_missing_argument): Remove.
10315 * c-opts.c (c_common_missing_argument): Remove.
10316 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
10317 idirafter, imacros, include, isysroot, isystem, iquote): Add
10318 MissingArgError.
10319 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
10320
7a9bf9a4
JM
103212010-07-27 Joseph Myers <joseph@codesourcery.com>
10322
10323 * c-common.h (c_common_option_lang_mask,
10324 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
10325 New.
10326 (c_common_init_options): Update prototype.
10327 * c-opts.c (c_common_option_lang_mask): New.
10328 (c_common_initialize_diagnostics): Split out of
10329 c_common_init_options.
10330 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
10331 New.
10332 (c_common_init_options): Update prototype. Use decoded options in
10333 search for -lang-asm.
10334
910ad8de
NF
103352010-07-15 Nathan Froyd <froydnj@codesourcery.com>
10336
10337 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
10338 * c-format.c: Likewise.
10339
718f9c0f
MLI
103402010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
10341
10342 * c-common.h: Include diagnostic-core.h. Error if already
10343 included.
10344 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
10345
4d451982
MLI
103462010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
10347
adfac8df 10348 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
10349 Do not include expr.h
10350 (vector_mode_valid_p): Move here.
10351
119fe915
SB
103522010-06-21 DJ Delorie <dj@redhat.com>
10353
10354 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
10355 allow these pragmas anywhere.
10356
103572010-06-14 Jakub Jelinek <jakub@redhat.com>
10358
10359 PR bootstrap/44509
10360 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
10361 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
10362 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
10363 ggc_strdup instead of xstrdup.
10364
103652010-06-10 Jakub Jelinek <jakub@redhat.com>
10366
10367 * c-cppbuiltin.c: Include cpp-id-data.h.
10368 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
10369 (lazy_hex_fp_value): New function.
10370 (builtin_define_with_hex_fp_value): Provide definitions lazily.
10371
6662d794
MLI
103722010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
10373
10374 * c-gimplify.c: Do not include tree-flow.h
10375
38f8b050
JR
103762010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
10377
10378 PR other/44034
10379 * c-common.c: Rename targetm member:
10380 targetm.enum_va_list -> targetm.enum_va_list_p
10381
9589f23e
AS
103822010-06-28 Anatoly Sokolov <aesok@post.ru>
10383
10384 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
10385
3b06d379
SB
103862010-06-28 Steven Bosscher <steven@gcc.gnu.org>
10387
10388 * c-cppbuiltin.c: Do not include except.h.
10389
d166d4c3
AK
103902010-06-24 Andi Kleen <ak@linux.intel.com>
10391
9faeb493
UB
10392 * c-common.c (warn_for_omitted_condop): New.
10393 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 10394
70cb8be6
JM
103952010-06-21 Joseph Myers <joseph@codesourcery.com>
10396
10397 * c.opt (lang-objc): Remove.
10398 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
10399
a4c97feb
JR
104002010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
10401
10402 * c-opts.c: Include "tm_p.h".
10403
6e2f1956
JM
104042010-06-20 Joseph Myers <joseph@codesourcery.com>
10405
10406 * c-common.c (parse_optimize_options): Update call to
10407 decode_options.
10408
bc87224e
NF
104092010-06-18 Nathan Froyd <froydnj@codesourcery.com>
10410
10411 * c-common.c (record_types_used_by_current_var_decl): Adjust for
10412 new type of types_used_by_cur_var_decl.
10413
b49cf425
JR
104142010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
10415
10416 PR bootstrap/44512
10417 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
10418 for C++ standard compliance.
10419
59f9c2ed
JM
104202010-06-16 Jason Merrill <jason@redhat.com>
10421
10422 * c.opt: Add -Wnoexcept.
10423
33766b66
RG
104242010-06-16 Richard Guenther <rguenther@suse.de>
10425
10426 PR c/44555
10427 * c-common.c (c_common_truthvalue_conversion): Remove
10428 premature and wrong optimization concering ADDR_EXPRs.
10429
eff7e30c
AC
104302010-06-15 Arnaud Charlet <charlet@adacore.com>
10431
10432 * c-ada-spec.c (dump_sloc): Remove column info.
10433 (is_simple_enum): New function.
10434 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
10435 enum types when relevant.
10436
6312e84d
MLI
104372010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
10438
9faeb493 10439 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
10440 location.
10441
1cb42611
JM
104422010-06-10 Joseph Myers <joseph@codesourcery.com>
10443
10444 * c-opts.c (c_common_handle_option): Don't handle
10445 OPT_fshow_column.
10446
a9429e29
LB
104472010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
10448
10449 * c-pragma.c (push_alignment): Use typed GC allocation.
10450 (handle_pragma_push_options): Likewise.
10451
10452 * c-common.c (parse_optimize_options): Likewise.
10453
10454 * c-common.h (struct sorted_fields_type): Add variable_size GTY
10455 option.
10456
5498f011
JM
104572010-06-07 Joseph Myers <joseph@codesourcery.com>
10458
10459 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
10460 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
10461 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
10462 flag_signed_bitfields, warn_strict_null_sentinel,
10463 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
10464 flag_gen_declaration, flag_no_gnu_keywords,
10465 flag_implement_inlines, flag_implicit_templates,
10466 flag_implicit_inline_templates, flag_optional_diags,
10467 flag_elide_constructors, flag_default_inline, flag_rtti,
10468 flag_conserve_space, flag_access_control, flag_check_new,
10469 flag_new_for_scope, flag_weak, flag_working_directory,
10470 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
10471 flag_enforce_eh_specs, flag_threadsafe_statics,
10472 flag_pretty_templates): Remove.
10473 * c-common.h (flag_preprocess_only, flag_nil_receivers,
10474 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
10475 flag_replace_objc_classes, flag_undef, flag_no_builtin,
10476 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
10477 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
10478 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
10479 flag_no_gnu_keywords, flag_implement_inlines,
10480 flag_implicit_templates, flag_implicit_inline_templates,
10481 flag_optional_diags, flag_elide_constructors, flag_default_inline,
10482 flag_rtti, flag_conserve_space, flag_access_control,
10483 flag_check_new, flag_new_for_scope, flag_weak,
10484 flag_working_directory, flag_use_cxa_atexit,
10485 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
10486 flag_threadsafe_statics, flag_pretty_templates,
10487 warn_strict_null_sentinel): Remove.
10488 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
10489 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
10490 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
10491 fimplicit-inline-templates, fimplicit-templates,
10492 flax-vector-conversions, fms-extensions, fnil-receivers,
10493 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
10494 frtti, fshort-double, fshort-enums, fshort-wchar,
10495 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
10496 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
10497 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
10498 gen-decls, undef): Use Var.
10499 (fdefault-inline, foptional-diags): Document as doing nothing.
10500 * c-opts.c (c_common_handle_option): Remove cases for options now
10501 using Var. Mark ignored options as such.
10502
39dabefd
SB
105032010-06-05 Steven Bosscher <steven@gcc.gnu.org>
10504
9faeb493 10505 * c-common.c: Moved to here from parent directory.
39dabefd
SB
10506 * c-common.def: Likewise.
10507 * c-common.h: Likewise.
10508 * c-cppbuiltin.c: Likewise.
10509 * c-dump.c: Likewise.
10510 * c-format.c: Likewise.
10511 * c-format.h : Likewise.
10512 * c-gimplify.c: Likewise.
10513 * c-lex.c: Likewise.
10514 * c-omp.c: Likewise.
10515 * c.opt: Likewise.
10516 * c-opts.c: Likewise.
10517 * c-pch.c: Likewise.
10518 * c-ppoutput.c: Likewise.
10519 * c-pragma.c: Likewise.
10520 * c-pragma.h: Likewise.
10521 * c-pretty-print.c: Likewise.
10522 * c-pretty-print.h: Likewise.
10523 * c-semantics.c: Likewise.
10524 * stub-objc.c: Likewise.
10525
10526 * c-common.c: Include gt-c-family-c-common.h.
10527 * c-pragma.c: Include gt-c-family-c-pragma.h.
10528\f
a5544970 10529Copyright (C) 2010-2019 Free Software Foundation, Inc.
39dabefd
SB
10530
10531Copying and distribution of this file, with or without modification,
10532are permitted in any medium without royalty provided the copyright
10533notice and this notice are preserved.
This page took 3.534921 seconds and 5 git commands to generate.