]> gcc.gnu.org Git - gcc.git/blame - gcc/c-family/ChangeLog
re PR testsuite/91549 (gcc.dg/wrapped-binop-simplify.c fails starting with r274925)
[gcc.git] / gcc / c-family / ChangeLog
CommitLineData
22f8849d
IS
12019-08-23 Iain Sandoe <iain@sandoe.co.uk>
2
3 PR pch/61250
4 * c-lex.c (c_lex_with_flags): Don't call
5 c_common_no_more_pch () from here.
6
df375b03
JJ
72019-08-23 Jakub Jelinek <jakub@redhat.com>
8
9 PR middle-end/91283
10 * c-common.c (c_ts18661_flt_eval_method): Use flag_excess_precision
11 instead of flag_excess_precision_cmdline.
12 * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): Likewise.
13 * c-opts.c (c_common_post_options): Likewise.
14
14b7950f
MS
152019-08-22 Martin Sebor <msebor@redhat.com>
16
17 PR middle-end/91490
18 * c-common.c (braced_list_to_string): Add argument and overload.
19 Handle flexible length arrays and unions.
20
8bb2ee59
EB
212019-08-21 Eric Botcazou <ebotcazou@adacore.com>
22
23 * c-ada-spec.c (dump_ada_function_declaration): Be prepared for broken
24 function declarations where arguments are missing. Rename variables.
25
21c1e205
RB
262019-08-15 Richard Biener <rguenther@suse.de>
27
28 * c-common.c (c_stddef_cpp_builtins): When the GIMPLE FE is
29 enabled, define __SIZETYPE__.
30
f0033821
CL
312019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
32
33 * c-attribs.c (c_common_attribute_table): Add "noinit" entry. Add
34 exclusion with "section" attribute.
35 (attr_noinit_exclusions): New table.
36 (handle_noinit_attribute): New function.
37
4d732405
RS
382019-08-13 Richard Sandiford <richard.sandiford@arm.com>
39
40 PR middle-end/91421
41 * c-common.c (resolve_overloaded_builtin): Use
42 copy_decl_built_in_function.
43
51ad8481
MS
442019-08-13 Martin Sebor <msebor@redhat.com>
45
46 PR c/80619
47 * c-format.c (printf_length_specs): Set FMT_LEN_w for "w".
48 (asm_fprintf_length_spec): Same.
49 * c-format.h (format_lengths): Add FMT_LEN_w.
50
77eb117f
JJ
512019-08-10 Jakub Jelinek <jakub@redhat.com>
52
53 * c-pragma.h (enum pragma_omp_clause): Add
54 PRAGMA_OMP_CLAUSE_DEVICE_TYPE.
55
398e3feb
JJ
562019-08-07 Jakub Jelinek <jakub@redhat.com>
57
58 * c-pragma.h (enum pragma_omp_clause): Add
59 PRAGMA_OMP_CLAUSE_USE_DEVICE_ADDR. Set PRAGMA_OACC_CLAUSE_USE_DEVICE
60 equal to PRAGMA_OMP_CLAUSE_USE_DEVICE_PTR instead of being a separate
61 enumeration value.
62
ab574db6
MP
632019-08-05 Marek Polacek <polacek@redhat.com>
64
65 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
66 * c-opts.c (c_common_post_options): Enable -Wcomma-subscript by
67 default for C++2a, unless -Wno-deprecated.
68 * c.opt (Wcomma-subscript): New warning.
69
554a530f
JJ
702019-07-20 Jakub Jelinek <jakub@redhat.com>
71
72 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_LOOP.
73 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_BIND.
74 * c-pragma.c (omp_pragmas_simd): Add PRAGMA_OMP_LOOP entry.
75 * c-common.h (enum c_omp_clause_split): Add C_OMP_CLAUSE_SPLIT_LOOP.
76 * c-omp.c (c_omp_split_clauses): Add support for 4 new combined
77 constructs with the loop construct.
78
1a888209
JJ
792019-07-13 Jakub Jelinek <jakub@redhat.com>
80
81 PR c/91149
82 * c-omp.c (c_omp_split_clauses): Fix a pasto in
83 OMP_CLAUSE_REDUCTION_TASK handling.
84
1fdd6f04
JJ
852019-07-12 Jakub Jelinek <jakub@redhat.com>
86
87 * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ORDER.
88 * c-omp.c (c_omp_split_clauses): Handle splitting of OMP_CLAUSE_ORDER.
89
99b1c316
MS
902019-07-09 Martin Sebor <msebor@redhat.com>
91
92 PR c++/61339
1fdd6f04 93 * c-opts.c (handle_deferred_opts): Change class-key of PODs to struct
99b1c316
MS
94 and others to class.
95 * c-pretty-print.h: Same.
96
6c1dae73
MS
972019-07-09 Martin Sebor <msebor@redhat.com>
98
99 PR c++/61339
100 * c-format.c (check_argument_type): Change class-key from class to
101 struct and vice versa to match convention and avoid -Wclass-is-pod
102 and -Wstruct-no-pod.
103 * c-pretty-print.h: Same.
104
8ba6ea87
ML
1052019-07-03 Martin Liska <mliska@suse.cz>
106
107 * c-common.c (try_to_locate_new_include_insertion_point): Remove
108 dead assignemts.
109
83eb9522
JJ
1102019-07-03 Jakub Jelinek <jakub@redhat.com>
111
112 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_REDUCTION_INSCAN
113 clauses on OMP_FOR rather than OMP_PARALLEL when OMP_FOR is combined
114 with OMP_PARALLEL.
115
1c6ffbab
QZ
1162019-07-02 qing zhao <qing.zhao@oracle.com>
117
118 PR preprocessor/90581
119 * c-opts.c (c_common_handle_option): Handle -fmax-include-depth.
120 * c.opt: Add new option -fmax-include-depth.
121
7ffc7de5
JM
1222019-06-26 Jason Merrill <jason@redhat.com>
123
124 PR c++/55442 - memory-hog with highly recursive constexpr.
125 * c.opt (fconstexpr-loop-limit): New.
126
361af3e4
JJ
1272019-06-25 Jakub Jelinek <jakub@redhat.com>
128
129 PR sanitizer/90954
130 * c-omp.c (c_finish_omp_atomic): Allow tree_invariant_p in addition
131 to SAVE_EXPR in first operand of a COMPOUND_EXPR.
132
ab20d992
JJ
1332019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
134
135 * c-common.c (c_common_nodes_and_builtins): Define
136 alternate "__intN__" name for "__intN" types.
137
f4af4019
JH
1382019-06-24 Jan Hubicka <jh@suse.cz>
139
140 * c-common.c (braced_lists_to_strings): Check that
141 type is array or integer prior checking string flag.
142
da9e9b57
MB
1432019-06-21 Matthew Beliveau <mbelivea@redhat.com>
144
145 PR c++/90875 - added -Wswitch-outside-range option
146 * c.opt (Wswitch-outside-range): Added new option.
147 * c-warn.c (c_do_switch_warnings): Use OPT_Wswitch-outside-range.
148
3f3d6a6f
MP
1492019-06-21 Marek Polacek <polacek@redhat.com>
150
151 PR c++/90953 - ICE with -Wmissing-format-attribute.
152 * c-common.c (check_function_arguments_recurse): Use
153 get_attribute_name.
154 (check_missing_format_attribute): Likewise.
155
1bf32c11
MP
1562019-06-19 Marek Polacek <polacek@redhat.com>
157
158 PR c++/60364 - noreturn after first decl not diagnosed.
159 * c-attribs.c (handle_noreturn_attribute): No longer static.
160 * c-common.h (handle_noreturn_attribute, attr_noreturn_exclusions):
161 Declare.
162 * c-format.c (check_function_format): Use get_attribute_name.
163
a04c0734
MS
1642019-06-19 Martin Sebor <msebor@redhat.com>
165
166 PR translation/90156
167 * c-format.c (function_format_info::format_type): Adjust type.
168 (function_format_info::is_raw): New member.
169 (decode_format_type): Adjust signature. Handle "raw" diag attributes.
170 (decode_format_attr): Adjust call to decode_format_type.
171 Avoid a redundant call to convert_format_name_to_system_name.
172 Avoid abbreviating the word "arguments" in a diagnostic.
173 (format_warning_substr): New function.
174 (avoid_dollar_number): Quote dollar sign in a diagnostic.
175 (finish_dollar_format_checking): Same.
176 (check_format_info): Same.
177 (struct baltoks_t): New.
178 (c_opers, c_keywords, cxx_keywords, badwords, contrs): New arrays.
179 (maybe_diag_unbalanced_tokens, check_tokens, check_plain): New
180 functions.
181 (check_format_info_main): Call check_plain. Use baltoks_t. Call
182 maybe_diag_unbalanced_tokens.
183 (handle_format_attribute): Spell out the word "arguments" in
184 a diagnostic.
185
d3786ebb
MB
1862019-06-11 Matthew Beliveau <mbelivea@redhat.com>
187
188 PR c++/90449 - add -Winaccessible-base option.
189 * c.opt (Winaccessible-base): New option.
190
bf38f7e9
JJ
1912019-06-10 Jakub Jelinek <jakub@redhat.com>
192
193 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_SCAN.
194 * c-pragma.c (omp_pragmas_simd): Add #pragma omp scan.
195 * c-omp.c (c_omp_split_clauses): Diagnose inscan reductions on
196 combined/composite constructs where it is not allowed. Copy over
197 OMP_CLAUSE_REDUCTION_INSCAN.
198
0ecf545c
MS
1992019-06-05 Martin Sebor <msebor@redhat.com>
200
201 * c-attribs.c (handle_mode_attribute): Adjust quoting and hyphenation.
202 (handle_alias_ifunc_attribute): Same.
203 (handle_copy_attribute): Same.
204 (handle_weakref_attribute): Same.
205 (handle_nonnull_attribute): Same.
206 * c-warn.c (warn_for_sign_compare): Same.
207 (warn_for_restrict): Same.
208 * c.opt: Same.
209
36b34127
MS
2102019-06-05 Martin Sebor <msebor@redhat.com>
211
212 * c-pragma.c (handle_pragma_weak): Adjust quoting in a diagnostic.
213 * c.opt (-Wformat-diag): Remove a spurious period.
214
357a352f
JJ
2152019-05-29 Jakub Jelinek <jakub@redhat.com>
216
217 PR c/90628
218 * c-common.c (check_builtin_function_arguments)
219 <case BUILTIN_*_OVERFLOW>: Diagnose pointer to const qualified integer
220 as last argument.
221
2b8235ea
EB
2222019-05-23 Eric Botcazou <ebotcazou@adacore.com>
223
224 * c-ada-spec.c (compare_node): Compare the DECL_UIDs as a last resort.
225
6d86ddc4
ML
2262019-05-22 Martin Liska <mliska@suse.cz>
227
228 PR lto/90500
229 * c-attribs.c (handle_copy_attribute): Do not copy
230 target_clones attribute.
231
419ba5b9
EB
2322019-05-21 Eric Botcazou <ebotcazou@adacore.com>
233
234 * c-ada-spec.h (enum cpp_operation): Add IS_ASSIGNMENT_OPERATOR.
235 * c-ada-spec.c (print_assignment_operator): New function.
236 (dump_ada_declaration) <FUNCTION_DECL>: Call it do dump explicit copy
237 assignment operators declared as methods and filter out the others.
238
e03436e7
TS
2392019-05-17 Thomas Schwinge <thomas@codesourcery.com>
240
241 PR c/89433
242 * c-attribs.c (c_common_attribute_table): Set min_len to -1 for
243 "omp declare target".
244
a9c697b8
MS
2452019-05-16 Martin Sebor <msebor@redhat.com>
246
ab20d992
JJ
247 * c-attribs.c (handle_no_sanitize_attribute): Quote identifiers,
248 keywords, operators, and types in diagnostics.
249 (handle_scalar_storage_order_attribute): Same.
250 (handle_mode_attribute): Same.
251 (handle_visibility_attribute): Same.
252 (handle_assume_aligned_attribute): Same.
253 (handle_no_split_stack_attribute): Same.
254 * c-common.c (shorten_compare): Same.
255 (c_common_truthvalue_conversion): Same.
256 (cb_get_source_date_epoch): Same.
257 * c-lex.c (cb_def_pragma): Quote keywords, operators, and types
258 in diagnostics.
259 (interpret_float): Same.
260 * c-omp.c (c_finish_omp_for): Same.
261 * c-opts.c (c_common_post_options): Same.
262 * c-pch.c (c_common_pch_pragma): Same.
263 * c-pragma.c (pop_alignment): Same.
264 (handle_pragma_pack): Same.
265 (apply_pragma_weak): Same.
266 (handle_pragma_weak): Same.
267 (handle_pragma_scalar_storage_order): Same.
268 (handle_pragma_redefine_extname): Same.
269 (add_to_renaming_pragma_list): Same.
270 (maybe_apply_renaming_pragma): Same.
271 (push_visibility): Same.
272 (handle_pragma_visibility): Same.
273 (handle_pragma_optimize): Same.
274 (handle_pragma_message): Same.
275 * c-warn.c (warn_for_omitted_condop): Same.
276 (lvalue_error): Same.
a9c697b8 277
6b943512
RB
2782019-05-15 Richard Biener <rguenther@suse.de>
279
280 PR c/90474
281 * c-common.c (c_common_mark_addressable_vec): Also mark
282 a COMPOUND_LITERAL_EXPR_DECL addressable similar to
283 c_mark_addressable.
ab20d992 284
b744fc85
NS
2852019-05-06 Nathan Sidwell <nathan@acm.org>
286
287 * c-opts.c (handle_defered_opts): Rename struct deps to struc mkdeps.
288
598f50d7
NS
2892019-04-30 Nathan Sidwell <nathan@acm.org>
290
291 * c-common.c (c_common_init_ts): Use MARK_TS_EXP. Mark SIZEOF_EXPR.
292
5bcc5a3b
ML
2932019-04-30 Martin Liska <mliska@suse.cz>
294
295 * c-pragma.c (handle_pragma_diagnostic): Provide hints
296 for unknown options.
297
e78a87f7
RS
2982019-04-26 Richard Sandiford <richard.sandiford@arm.com>
299
300 * c-warn.c (strict_aliasing_warning): Apply COMPLETE_TYPE_P to
301 the pointer target rather than the pointer itself.
302
c280b7ee
JJ
3032019-04-19 Jakub Jelinek <jakub@redhat.com>
304
305 PR c/89888
306 * c-common.h (c_add_case_label): Remove orig_type and outside_range_p
307 arguments.
308 (c_do_switch_warnings): Remove outside_range_p argument.
309 * c-common.c (check_case_bounds): Removed.
310 (c_add_case_label): Remove orig_type and outside_range_p arguments.
311 Don't call check_case_bounds. Fold low_value as well as high_value.
312 * c-warn.c (c_do_switch_warnings): Remove outside_range_p argument.
313 Check for case labels outside of range of original type here and
314 adjust them.
315
8e8225e6
JJ
3162019-04-12 Jakub Jelinek <jakub@redhat.com>
317
63b8a166
JJ
318 PR translation/90041
319 * c.opt (-fhandle-exceptions): Use %< and %> around option names
320 in the Warn diagnostics.
321
8e8225e6
JJ
322 PR c/89946
323 * c-attribs.c (handle_patchable_function_entry_attribute): Add
324 function comment. Warn if arguments of the attribute are not positive
325 integer constants.
326
53a3f614
EB
3272019-04-09 Eric Botcazou <ebotcazou@adacore.com>
328
329 * c-ada-spec.c (print_destructor): Deal with deleting destructors.
330 (dump_ada_declaration) <FUNCTION_DECL>: Likewise.
331
22be5873
EB
3322019-04-07 Eric Botcazou <ebotcazou@adacore.com>
333
334 * c-ada-spec.c (is_float128): New predicate extracted from...
335 (dump_ada_node) <COMPLEX_TYPE>: Use it to recognize __cfloat128.
336 <REAL_TYPE>: ...here. Call it.
337
34facf20
DM
3382019-04-05 David Malcolm <dmalcolm@redhat.com>
339
340 PR c/89985
341 * c-warn.c (check_address_or_pointer_of_packed_member): Add
342 auto_diagnostic_group. Guard inform calls by result of
343 warning_at call.
344
05564120
MP
3452019-04-05 Marek Polacek <polacek@redhat.com>
346
ab20d992 347 PR c++/89973 - -Waddress-of-packed-member ICE with invalid conversion.
05564120
MP
348 * c-warn.c (check_address_or_pointer_of_packed_member): Check the type
349 of RHS.
350
7a506c3c
JM
3512019-04-03 Jason Merrill <jason@redhat.com>
352
353 PR c++/86586 - -fcompare-debug=-Wsign-compare.
354 * c-warn.c (warn_for_sign_compare): Call fold_for_warn.
355
ddeae8c8
MS
3562019-04-01 Martin Sebor <msebor@redhat.com>
357
358 PR c/89685
359 * c-attribs.c (handle_copy_attribute): Handle references and
360 non-constant expressions.
361
a15ffa22
JJ
3622019-03-22 Jakub Jelinek <jakub@redhat.com>
363
364 PR c++/87481
365 * c.opt (-fconstexpr-ops-limit=): New option.
366
36a3a7a3
JJ
3672019-03-21 Jakub Jelinek <jakub@redhat.com>
368
369 * c-common.c (per_file_includes_t): Use false as Lazy in hash_set
370 template param.
371
bec1da64
MS
3722019-03-19 Martin Sebor <msebor@redhat.com>
373
374 PR tree-optimization/89688
375 * c-common.c (braced_list_to_string): Make static.
376 (braced_lists_to_strings): Define new function.
377 * c-common.h (braced_list_to_string): Remove.
378 (braced_lists_to_strings): Declare.
379
1fe61adf
ML
3802019-03-12 Martin Liska <mliska@suse.cz>
381
382 * c-opts.c (c_common_handle_option): Wrap option with %< and %>.
383
93964ebd
ML
3842019-03-11 Martin Liska <mliska@suse.cz>
385
386 * c-opts.c (c_common_post_options): Wrap apostrophes
387 in gcc internal format with %'.
388
a3f9f006
ML
3892019-03-11 Martin Liska <mliska@suse.cz>
390
391 * c-attribs.c (handle_nocf_check_attribute): Wrap an option name
392 in a string format message and fix GNU coding style.
393 * c-common.c (vector_types_convertible_p): Likewise.
394 (c_build_vec_perm_expr): Likewise.
395 * c-indentation.c (get_visual_column): Likewise.
396 * c-opts.c (c_common_handle_option): Likewise.
397 (c_common_post_options): Likewise.
398 (sanitize_cpp_opts): Likewise.
399 * c-pch.c (c_common_pch_pragma): Likewise.
400 * c-pragma.c (handle_pragma_pack): Likewise.
401
1db01ff9
JJ
4022019-03-08 Jakub Jelinek <jakub@redhat.com>
403
404 PR tree-optimization/89550
405 * c-common.c (c_common_truthvalue_conversion): Only set
406 TREE_NO_WARNING if warning_at returned true.
407 * c-warn.c (overflow_warning, warn_logical_operator): Likewise.
408
ba790e6f
JJ
4092019-02-25 Sandra Loosemore <sandra@codesourcery.com>
410 Martin Sebor <msebor@gmail.com>
411
412 * c.opt (Wmissing-attributes): Clean up doc string.
413
7da73ba7
JJ
4142019-02-25 Jakub Jelinek <jakub@redhat.com>
415
416 PR c/89495
417 * c-format.c (maybe_read_dollar_number): Compute nargnum in
418 HOST_WIDE_INT type to avoid overflows and change overflow_flag
419 checking.
420
921bb9d1
RB
4212019-02-22 Richard Biener <rguenther@suse.de>
422
423 * c-pch.c (no_checksum): Remove.
424 (pch_init): Remove assertion that executable_checksum is not
425 all zero.
426 (c_common_valid_pch): Likewise.
427
e2ebb05c
MS
4282019-02-18 Martin Sebor <msebor@redhat.com>
429
430 PR middle-end/89294
431 * c-common.c (invalid_array_size_error): Handle cst_size_not_constant.
432
3fe53000
DM
4332019-02-16 David Malcolm <dmalcolm@redhat.com>
434
435 PR c++/88680
436 * c-common.c (shorten_compare): Call fold_for_warn on op0 when
437 implementing -Wtype-limits.
438
28a8cef1
MS
4392019-02-11 Martin Sebor <msebor@redhat.com>
440
441 PR c++/87996
442 * c-common.c (invalid_array_size_error): New function.
443 (valid_array_size_p): Call it. Handle size as well as type.
444 * c-common.h (valid_constant_size_p): New function.
445 (enum cst_size_error): New type.
446
ec2be203
DM
4472019-01-31 David Malcolm <dmalcolm@redhat.com>
448
449 PR c/89122
450 * known-headers.cc (get_stdlib_header_for_name): Add
451 {FLT|DBL|LDBL}_{MAX|MIN} to "hints" array.
452
8936f047
JJ
4532019-01-31 Jakub Jelinek <jakub@redhat.com>
454
455 PR libstdc++/88170
456 * c-pretty-print.c (pp_c_enumeration_constant): Print always as
457 a C cast in pp_c_flag_gnu_v3 mode.
458
6a335b96
JJ
4592019-01-29 Jakub Jelinek <jakub@redhat.com>
460
461 PR c/86125
462 * c-common.c (c_common_nodes_and_builtins): Build type variants for
463 builtin_structptr_types types even for C.
464
2a06eba5
BE
4652019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
466
467 * c-warn.c (check_address_or_pointer_of_packed_member): Handle the case
468 when rhs is of array type correctly. Fix handling of nested structures.
469 Fix handling of indirect_ref together with nop_expr and/or addr_expr.
470 (check_and_warn_address_or_pointer_of_packed_member): Fix handling of
471 type casts within nested compound expressions.
472
18a23298
JJ
4732019-01-22 Jakub Jelinek <jakub@redhat.com>
474
475 PR middle-end/88968
476 * c-omp.c (c_finish_omp_atomic): For bitfield atomics, update type
477 variable after using BIT_FIELD_REF.
478
420183d9
L
4792019-01-18 H.J. Lu <hongjiu.lu@intel.com>
480
481 PR c/51628
482 PR c/88664
483 * c-common.h (warn_for_address_or_pointer_of_packed_member):
484 Remove the boolean argument.
485 * c-warn.c (check_address_of_packed_member): Renamed to ...
486 (check_address_or_pointer_of_packed_member): This. Also
487 warn pointer conversion.
488 (check_and_warn_address_of_packed_member): Renamed to ...
489 (check_and_warn_address_or_pointer_of_packed_member): This.
490 Also warn pointer conversion.
491 (warn_for_address_or_pointer_of_packed_member): Remove the
492 boolean argument. Don't check pointer conversion here.
493
99063eee
RS
4942019-01-15 Richard Sandiford <richard.sandiford@arm.com>
495
496 PR inline-asm/52813
497 * c.opt (Wdeprecated): Move documentation and variable to common.opt.
498
a30d0196
JJ
4992019-01-14 Jakub Jelinek <jakub@redhat.com>
500
501 * c-cppbuiltin.c (c_cpp_builtin): Define __cpp_guaranteed_copy_elision
502 and __cpp_nontype_template_parameter_auto. Add a comment that
503 __cpp_template_auto is deprecated.
504
2d91f79d
TH
5052019-01-14 Tom Honermann <tom@honermann.net>
506
507 Implement P0482R5, char8_t: A type for UTF-8 characters and strings
508 * c-common.c (c_common_reswords): Add char8_t.
509 (fix_string_type): Use char8_t for the type of u8 string literals.
510 (c_common_get_alias_set): char8_t doesn't alias.
511 (c_common_nodes_and_builtins): Define char8_t as a builtin type in
512 C++.
513 (c_stddef_cpp_builtins): Add __CHAR8_TYPE__.
514 (keyword_begins_type_specifier): Add RID_CHAR8.
515 * c-common.h (rid): Add RID_CHAR8.
516 (c_tree_index): Add CTI_CHAR8_TYPE and CTI_CHAR8_ARRAY_TYPE.
517 Define D_CXX_CHAR8_T and D_CXX_CHAR8_T_FLAGS.
518 Define char8_type_node and char8_array_type_node.
519 * c-cppbuiltin.c (cpp_atomic_builtins): Predefine
520 __GCC_ATOMIC_CHAR8_T_LOCK_FREE.
521 (c_cpp_builtins): Predefine __cpp_char8_t.
522 * c-lex.c (lex_string): Use char8_array_type_node as the type of
523 CPP_UTF8STRING.
524 (lex_charconst): Use char8_type_node as the type of CPP_UTF8CHAR.
525 * c-opts.c: If not otherwise specified, enable -fchar8_t when
526 targeting C++2a.
527 * c.opt: Add the -fchar8_t command line option.
528
23db6ced
MS
5292019-01-14 Martin Sebor <msebor@redhat.com>
530
531 PR target/88638
532 * c-attribs.c (positional_argument): Call valid_format_string_type_p
533 and issue errors if it fails.
534 * c-common.h (valid_format_string_type_p): Declare.
535 * c-format.c (valid_stringptr_type_p): Rename...
536 (valid_format_string_type_p): ...to this and make extern.
537 (handle_format_arg_attribute): Adjust to new name.
538 (check_format_string): Same.
539
234c3818
L
5402019-01-13 H.J. Lu <hongjiu.lu@intel.com>
541
542 * c-warn.c (warn_for_address_or_pointer_of_packed_member):
543 Replace "may may" with "may" in warning message.
544
d8fcab68
JJ
5452019-01-07 Jakub Jelinek <jakub@redhat.com>
546
547 PR c++/85052
548 * c-common.h (enum rid): Add RID_BUILTIN_CONVERTVECTOR.
549 (c_build_vec_convert): Declare.
550 * c-common.c (c_build_vec_convert): New function.
551
29d24852
MS
5522019-01-04 Martin Sebor <msebor@redhat.com>
553
554 PR c/88546
555 * c-attribs.c (handle_copy_attribute): Avoid copying attribute leaf.
556 Handle C++ empty throw specification and C11 _Noreturn.
557 (has_attribute): Also handle C11 _Noreturn.
558
9069a4c9
MS
5592019-01-04 Martin Sebor <msebor@redhat.com>
560
561 PR c/88363
562 * c-attribs.c (positional_argument): Also accept enumerated types.
563
a5544970
JJ
5642019-01-01 Jakub Jelinek <jakub@redhat.com>
565
566 Update copyright years.
567
da77eace
L
5682018-12-20 H.J. Lu <hongjiu.lu@intel.com>
569
570 PR c/51628
571 * c-common.h (warn_for_address_or_pointer_of_packed_member): New.
572 * c-warn.c (check_alignment_of_packed_member): New function.
573 (check_address_of_packed_member): Likewise.
574 (check_and_warn_address_of_packed_member): Likewise.
575 (warn_for_address_or_pointer_of_packed_member): Likewise.
576 * c.opt: Add -Wno-address-of-packed-member.
577
573767d4
DM
5782018-12-20 David Malcolm <dmalcolm@redhat.com>
579
580 PR c++/87504
581 * c-warn.c (get_outermost_macro_expansion): New function.
582 (spelled_the_same_p): Use it to unwind the macro expansions, and
583 compare the outermost macro in each nested expansion, rather than
584 the innermost.
585
a14feb3c
DM
5862018-12-19 David Malcolm <dmalcolm@redhat.com>
587
588 PR c++/87504
589 * c-common.h (warn_tautological_cmp): Convert 1st param from
590 location_t to const op_location_t &.
591 * c-warn.c (find_array_ref_with_const_idx_r): Call fold_for_warn
592 when testing for INTEGER_CST.
593 (warn_tautological_bitwise_comparison): Convert 1st param from
594 location_t to const op_location_t &; use it to build a
595 binary_op_rich_location, and use this.
596 (spelled_the_same_p): New function.
597 (warn_tautological_cmp): Convert 1st param from location_t to
598 const op_location_t &. Warn for macro expansions if
599 spelled_the_same_p. Use binary_op_rich_location.
600
dfd7fdca
DM
6012018-12-19 David Malcolm <dmalcolm@redhat.com>
602
603 PR c++/43064
604 PR c++/43486
605 * c-common.c (unsafe_conversion_p): Fold any location wrapper.
606 (verify_tree): Handle location wrappers.
607 (c_common_truthvalue_conversion): Strip any location wrapper.
608 Handle CONST_DECL.
609 (fold_offsetof): Strip any location wrapper.
610 (complete_array_type): Likewise for initial_value.
611 (convert_vector_to_array_for_subscript): Call fold_for_warn on the
612 index before checking for INTEGER_CST.
613 * c-pretty-print.c (c_pretty_printer::primary_expression): Don't
614 print parentheses around location wrappers.
615 * c-warn.c (warn_logical_operator): Call fold_for_warn on op_right
616 before checking for INTEGER_CST.
617 (warn_tautological_bitwise_comparison): Call
618 tree_strip_any_location_wrapper on lhs, rhs, and bitop's operand
619 before checking for INTEGER_CST.
620 (readonly_error): Strip any location wrapper.
621 (warn_array_subscript_with_type_char): Strip location wrappers
622 before checking for INTEGER_CST. Use the location of the index if
623 available.
624
5c8b3702
JM
6252018-12-06 Jason Merrill <jason@redhat.com>
626
627 PR c++/88136 - -Wdeprecated-copy false positives
628 * c.opt (Wdeprecated-copy-dtor): New.
629 (Wdeprecated-copy): Move to -Wextra.
630
673670da
MS
6312018-11-29 Martin Sebor <msebor@redhat.com>
632
633 PR c/88172
634 PR testsuite/88208
635 * c-attribs.c (common_handle_aligned_attribute): Silently avoid setting
636 alignments to values less than the target requires.
637 (has_attribute): For attribute aligned consider both the attribute
638 and the alignment bits.
639 * c-common.c (c_init_attributes): Optionally issue a warning for
640 zero alignment.
641
04864ec8
MS
6422018-11-28 Martin Sebor <msebor@redhat.com>
643
644 PR c/88065
645 PR c/87297
646 * c-warn.c (sizeof_pointer_memaccess_warning): Bail if source
647 or destination is an error.
648
ace83db0
JJ
6492018-11-28 Jakub Jelinek <jakub@redhat.com>
650
651 PR c++/88215
652 * c-ubsan.c: Include langhooks.h.
653 (ubsan_instrument_division): Change gcc_assert that main variants
654 of op0 and op1 types are equal to gcc_checking_assert that the
655 main variants are compatible types.
656
da193a27
EB
6572018-11-27 Eric Botcazou <ebotcazou@adacore.com>
658
659 * c-ada-spec.c: Include stringpool.h.
660 (has_static_fields): Return false for incomplete types.
661 (is_tagged_type): Likewise.
662 (has_nontrivial_methods): Likewise.
663 (dump_ada_node) <INTEGER_TYPE>: Deal specifically with __int128.
664 (struct overloaded_name_hash): New structure.
665 (struct overloaded_name_hasher): Likewise.
666 (overloaded_names): New global variable.
667 (init_overloaded_names): New static function.
668 (overloaded_name_p): New predicate.
669 (dump_ada_declaration) <TYPE_DECL>: Tidy up and set TREE_VISITED
670 on the TYPE_STUB_DECL of the original type of a typedef, if any.
671 <FUNCTION_DECL>: Bail out for an unsupported overloaded name.
672 Remove always-true condition and dump forward types.
673 (dump_ada_specs): Delete overloaded_names.
674
98f08eb8
MS
6752018-11-20 Martin Sebor <msebor@redhat.com>
676
677 * c-attribs.c (type_for_vector_size): New function.
678 (type_valid_for_vector_size): Same.
679 (handle_vector_size_attribute): Move code to the functions above
680 and call them.
681 (validate_attribute, has_attribute): New functions.
682 * c-common.h (has_attribute): Declare.
683 (rid): Add RID_HAS_ATTRIBUTE_EXPRESSION.
684 * c-common.c (c_common_resword): Same.
685
2674fa47
JM
6862018-11-16 Jason Merrill <jason@redhat.com>
687
688 * c-lex.c (c_common_has_attribute): Handle likely/unlikely.
689 * c-attribs.c (attr_cold_hot_exclusions): Make public.
690
258b3854
JJ
6912018-11-16 Jakub Jelinek <jakub@redhat.com>
692
693 PR middle-end/87854
694 * c-common.c (fix_string_type): Reject string literals larger than
695 TYPE_MAX_VALUE (ssizetype) bytes.
696
1d249509
MS
6972018-11-15 Martin Sebor <msebor@redhat.com>
698
699 PR c++/87541
700 PR c++/87542
701 * c-attribs.c (positional_argument): New function.
702 (handle_alloc_size_attribute): Use it and simplify.
703 (handle_alloc_align_attribute): Same.
704 (handle_assume_aligned_attribute): Same.
705 (handle_nonnull_attribute): Same.
706 * c-common.c (check_function_arguments): Pass fntype to
707 check_function_format.
708 * c-common.h (check_function_format): Add an argument.
709 (PosArgFlags, positional_argument): Declare new type and function.
710 * c-format.c (decode_format_attr): Add arguments.
711 (check_format_string, get_constant): Same.
712 (convert_format_name_to_system_name): Adjust.
713
478dd60d
DM
7142018-11-15 David Malcolm <dmalcolm@redhat.com>
715
716 PR other/19165
717 * c-opts.c (c_diagnostic_finalizer): Add diagnostic_t param.
718
8cca0163
JJ
7192018-11-14 Jakub Jelinek <jakub@redhat.com>
720
8ee09943
JJ
721 P1236R1 - Signed integers are two's complement
722 * c-warn.c (maybe_warn_shift_overflow): Don't warn for c++2a.
723 * c-ubsan.c (ubsan_instrument_shift): Make signed shifts
724 with in-range second operand well defined for -std=c++2a.
725
8cca0163
JJ
726 PR other/88007
727 * c-common.c (parse_optimize_options): Allocate option string from
728 opts_obstack rather than as GC memory. Move the allocation after
729 warning for invalid option.
730
620e594b
DM
7312018-11-13 David Malcolm <dmalcolm@redhat.com>
732
733 * c-common.c (c_get_substring_location): Update for renaming of
734 get_source_location_for_substring to get_location_within_string.
735 * c-lex.c: Replace "source_location" with "location_t".
736 * c-opts.c: Likewise.
737 * c-ppoutput.c: Likewise.
738
f9731de3
MS
7392018-11-13 Martin Sebor <msebor@redhat.com>
740
741 PR middle-end/81824
742 * c-attribs.c (handle_copy_attribute): Exclude inlining attributes.
743 (handle_tls_model_attribute): Improve diagnostics.
744
e4bd6d5e
JM
7452018-11-12 Jason Merrill <jason@redhat.com>
746
a6bb6b07
JM
747 * c-cppbuiltin.c (c_cpp_builtins): Define
748 __cpp_impl_destroying_delete.
749
e4bd6d5e
JM
750 * c-cppbuiltin.c (c_cpp_builtins): Change __cpp_explicit_bool to
751 __cpp_conditional_explicit.
752
79a2c428
MS
7532018-11-09 Martin Sebor <msebor@redhat.com>
754
755 PR middle-end/81824
756 * c-attribs.c (handle_copy_attribute): New function.
757
4c7bd361
MS
7582018-11-09 Martin Sebor <msebor@redhat.com>
759
760 PR c/87795
761 * c-common.c (check_user_alignment): Use MAX_OFILE_ALIGNMENT.
762
28567c40
JJ
7632018-11-08 Jakub Jelinek <jakub@redhat.com>
764
765 * c-common.h (c_finish_omp_taskgroup): Add CLAUSES argument.
766 (c_finish_omp_atomic): Replace bool SEQ_CST argument with
767 enum omp_memory_order MEMORY_ORDER.
768 (c_finish_omp_flush): Add MO argument.
769 (c_omp_depend_t_p, c_finish_omp_depobj): Declare.
770 (c_finish_omp_for): Add FINAL_P argument.
771 * c-omp.c: Include memmodel.h.
772 (c_finish_omp_taskgroup): Add CLAUSES argument. Set
773 OMP_TASKGROUP_CLAUSES to it.
774 (c_finish_omp_atomic): Replace bool SEQ_CST argument with
775 enum omp_memory_order MEMORY_ORDER. Set OMP_ATOMIC_MEMORY_ORDER
776 instead of OMP_ATOMIC_SEQ_CST.
777 (c_omp_depend_t_p, c_finish_omp_depobj): New functions.
778 (c_finish_omp_flush): Add MO argument, if not MEMMODEL_LAST, emit
779 __atomic_thread_fence call with the given value.
780 (check_omp_for_incr_expr): Formatting fixes.
781 (c_finish_omp_for): Add FINAL_P argument. Allow NE_EXPR
782 even in OpenMP loops, diagnose if NE_EXPR and incr expression
783 is not constant expression 1 or -1. Transform NE_EXPR loops
784 with iterators pointers to VLA into LT_EXPR or GT_EXPR loops.
785 (c_omp_check_loop_iv_r): Look for orig decl of C++ range for
786 loops too.
787 (c_omp_split_clauses): Add support for combined
788 #pragma omp parallel master and
789 #pragma omp {,parallel }master taskloop{, simd} constructs.
790 Handle OMP_CLAUSE_IN_REDUCTION. Handle OMP_CLAUSE_REDUCTION_TASK.
791 Handle OMP_CLAUSE_NONTEMPORAL. Handle splitting OMP_CLAUSE_IF
792 also to OMP_SIMD. Copy OMP_CLAUSE_LASTPRIVATE_CONDITIONAL.
793 (c_omp_predetermined_sharing): Don't return
794 OMP_CLAUSE_DEFAULT_SHARED for const qualified decls.
795 * c-pragma.c (omp_pragmas): Add PRAGMA_OMP_DEPOBJ and
796 PRAGMA_OMP_REQUIRES.
797 * c-pragma.h (enum pragma_kind): Likewise.
798 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_NONTEMPORAL
799 and PRAGMA_OMP_CLAUSE_{IN,TASK}_REDUCTION.
800
204839e7
DM
8012018-11-08 David Malcolm <dmalcolm@redhat.com>
802
803 * c-format.c (gcc_dump_printf_char_table): Add entry for %f.
804
d8010ee4
DM
8052018-11-08 David Malcolm <dmalcolm@redhat.com>
806
807 * c-format.c (local_cgraph_node_ptr_node): New variable.
808 (gcc_dump_printf_char_table): Add entry for %C.
809 (get_pointer_to_named_type): New function, taken from the handling
810 code for "gimple *" from...
811 (init_dynamic_diag_info): ...here. Add handling for
812 "cgraph_node *".
813 * c-format.h (T_CGRAPH_NODE): New.
814
4be5c72c
JM
8152018-10-19 Jason Merrill <jason@redhat.com>
816
817 * c-cppbuiltin.c (c_cpp_builtins): Add
818 __cpp_nontype_template_parameter_class.
819
f3f6029d
NS
8202018-10-31 Nathan Sidwell <nathan@acm.org>
821
ab5324fb
NS
822 * c-opts.c (c_finish_options): Force command line macro
823 location. Refactor to avoid repeating main debug hook.
824 (push_command_line_include): Clarify comment.
825
f3f6029d
NS
826 * c-opts.c (c_finish_options): Adjust cpp_force_token_locations call.
827
91e3ec29
MS
8282018-10-30 Martin Sebor <msebor@redhat.com>
829
830 PR middle-end/87041
831 * c-format.c (check_format_types): Avoid diagnosing null pointer
832 arguments to printf-family of functions.
833
b5ff4f5c
MP
8342018-10-30 Marek Polacek <polacek@redhat.com>
835
836 Implement P0892R2, explicit(bool).
837 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_explicit_bool.
838
7e2de6df
DM
8392018-10-29 David Malcolm <dmalcolm@redhat.com>
840
841 * name-hint.h (name_hint::take_deferred): New member function.
842
b2bf438c
DM
8432018-10-29 David Malcolm <dmalcolm@redhat.com>
844
845 PR c++/56856
846 * c-common.c (check_function_sentinel): Call fold_for_warn on the
847 argument.
848 (check_function_restrict): Rename param "argarray" to
849 "unfolded_argarray", and make a copy named "argarray", calling
850 fold_for_warn on each argument.
851 (check_function_arguments): Add note about responsibility for
852 folding the arguments.
853
9f936c86
JM
8542018-10-17 Joseph Myers <joseph@codesourcery.com>
855
856 * c-common.c (flag_isoc2x): New variable.
857 * c-common.h (clk_c): Update comment to reference C2X.
858 (flag_isoc99, flag_isoc11): Update comments to reference future
859 standard versions in general.
860 (flag_isoc2x): Declare.
861 * c-opts.c (set_std_c2x): New function.
862 (c_common_handle_option): Handle -std=c2x and -std=gnu2x.
863 (set_std_c89, set_std_c99, set_std_c11, set_std_c17): Set
864 flag_isoc2x to 0.
865 * c.opt (Wc11-c2x-compat, std=c2x, std=gnu2x): New options.
866
7a8a92c4
JM
8672018-10-17 Joseph Myers <joseph@codesourcery.com>
868
869 * c.opt (std=c17, std=c18, std=gnu17, std=gnu18, std=iso9899:2017)
870 (std=iso9899:2018): Document C17 as published in 2018.
871
4dc003ff
CL
8722018-10-12 Christophe Lyon <christophe.lyon@linaro.org>
873
874 PR c++/87364
875 * c-pretty-print.c (c_pretty_printer::constant): Fix typo.
876
79371671
WW
8772018-10-11 Will Wray <wjwray@gmail.com>
878
879 PR c++/87364
880 * c-pretty-print.h (pp_c_type_cast): Prototype.
881 (pp_c_integer_constant): Likewise.
882 * c-pretty-print.c (pp_c_type_cast): No longer static.
883 (pp_c_integer_constant): Likewise.
884 (pp_c_enumeration_constant): Fix loop termination when finding
885 name of constant. No longer returns a value. Call
886 pp_c_integer_constant.
887 (c_pretty_printer::constant): Update for changes to
888 pp_c_enumeration_constant.
889
46c62690
JJ
8902018-10-11 Jakub Jelinek <jakub@redhat.com>
891
892 * c-lex.c (c_common_has_attribute): Return 201803 instead of 20180312
893 for no_unique_address.
894
c24300ba
DM
8952018-10-09 David Malcolm <dmalcolm@redhat.com>
896
897 * c-common.c (c_option_controlling_cpp_error): Rename to...
898 (c_option_controlling_cpp_diagnostic): ...this, and convert
899 "reason" from int to enum.
900 (c_cpp_error): Rename to...
901 (c_cpp_diagnostic): ...this, converting level and reason to enums.
902 * c-common.h (c_cpp_error): Rename to...
903 (c_cpp_diagnostic): ...this, converting level and reason to enums.
904 * c-opts.c (c_common_init_options): Update for renaming.
905
8656dafa
RS
9062018-10-08 Richard Sandiford <richard.sandiford@arm.com>
907
908 PR c/87286
909 * c-common.c (vector_types_compatible_elements_p): Use
910 INTEGRAL_TYPE_P instead of checking only for INTEGER_TYPE.
911
8cff0652
VK
9122018-10-04 Vinay Kumar <vinay.kumar@blackfigtech.com>
913
914 * c-attribs.c (get_priority): Add a warning flag warn_prio_ctor_dtor
915 to generate constructor destructor priority warning.
916 * c.opt (-Wprio-ctor-dtor): New option.
917
bedf03a2
JM
9182018-10-01 Jason Merrill <jason@redhat.com>
919
920 * c-lex.c (c_common_has_attribute): Add no_unique_address.
921
6cc430c1
EB
9222018-10-01 Eric Botcazou <ebotcazou@adacore.com>
923
924 * c-ada-spec.c (get_underlying_decl): Get to the main type variant.
925 (dump_ada_node): Add const keyword.
926
87677ac7
ML
9272018-09-25 Martin Liska <mliska@suse.cz>
928
929 * c-common.c (c_common_truthvalue_conversion):
930 Remove Pascal from documentation.
931
518196cb
EB
9322018-09-21 Eric Botcazou <ebotcazou@adacore.com>
933
934 * c-ada-spec.c: Include diagnostic.h.
935 (dump_ada_declaration) <RECORD_TYPE>: Issue a warning on packed layout.
936
a599af84
MP
9372018-09-19 Marek Polacek <polacek@redhat.com>
938
939 * c.opt (Wclass-conversion): New.
940
9c4a4b3c
DM
9412018-09-17 David Malcolm <dmalcolm@redhat.com>
942
943 * c-format.c (range_label_for_format_type_mismatch::get_text):
944 Update for new param.
945
c896ecfe
DM
9462018-09-17 David Malcolm <dmalcolm@redhat.com>
947
948 * c-format.c (format_warning_at_char): Update for introduction of
949 format_string_diagnostic_t.
950 (format_type_warning): Likewise.
951
80c6d1f4
MJ
9522018-09-17 Martin Jambor <mjambor@suse.cz>
953
954 PR c/63886
955 * c.opt (Wabsolute-value): New.
956
6d900107
BE
9572018-09-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
958
959 * c-common.c (complete_flexible_array_elts): New helper function.
960 * c-common.h (complete_flexible_array_elts): Declare.
961
b5764229
BE
9622018-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
963
964 * c-common.c (braced_list_to_string): Remove eval parameter.
965 Add some more checks. Always create zero-terminated STRING_CST.
966 * c-common.h (braced_list_to_string): Adjust prototype.
967
85204e23
DM
9682018-08-27 David Malcolm <dmalcolm@redhat.com>
969
970 PR 87091
971 * c-common.c (c_cpp_error): Update for conversion of show_caret_p
972 to a tri-state.
973 (maybe_suggest_missing_token_insertion): Likewise.
974 (maybe_add_include_fixit): Add param "override_location". If set,
975 and source-printing is enabled, then override the rich_location's
976 primary location with that of the insertion point for the fix-it
977 hint, marking it with SHOW_LINES_WITHOUT_RANGE.
978 * c-common.h (extern void maybe_add_include_fixit): Add bool
979 param.
980 * c-format.c (selftest::test_type_mismatch_range_labels): Update
981 for conversion of show_caret_p to a tri-state.
982 * c-warn.c (warn_for_restrict): Likewise.
983 * known-headers.cc
984 (suggest_missing_header::~suggest_missing_header): Update call to
985 maybe_add_include_fixit to suggest overriding the location, as it
986 is for a note.
987
3d78e008
ML
9882018-08-27 Martin Liska <mliska@suse.cz>
989
990 * c-common.c (check_function_restrict): Use new function
92a285c1
ML
991 fndecl_built_in_p and remove check for FUNCTION_DECL if
992 possible.
3d78e008
ML
993 (check_builtin_function_arguments): Likewise.
994 (reject_gcc_builtin): Likewise.
995 * c-warn.c (sizeof_pointer_memaccess_warning): Likewise.
996
b5be6d0c
MP
9972018-08-26 Marek Polacek <polacek@redhat.com>
998
999 PR c++/87029, Implement -Wredundant-move.
1000 * c.opt (Wredundant-move): New option.
1001
79ca9c35
MP
10022018-08-21 Marek Polacek <polacek@redhat.com>
1003
1004 PR c++/86981, Implement -Wpessimizing-move.
1005 * c.opt (Wpessimizing-move): New option.
1006
097f82ec
DM
10072018-08-20 David Malcolm <dmalcolm@redhat.com>
1008
1009 PR other/84889
1010 * c-attribs.c (common_handle_aligned_attribute): Add
1011 auto_diagnostic_group instance.
1012 * c-indentation.c (warn_for_misleading_indentation): Likewise.
1013 * c-opts.c (c_common_post_options): Likewise.
1014 * c-warn.c (warn_logical_not_parentheses): Likewise.
1015 (warn_duplicated_cond_add_or_warn): Likewise.
1016 (warn_for_multistatement_macros): Likewise.
1017
3fb558b1
NS
10182018-08-20 Nathan Sidwell <nathan@acm.org>
1019
1020 * c-ada-spec.c (macro_length, dump_ada_macros): Adjust macro parm
1021 access.
1022
800c0e98
NS
10232018-08-17 Nathan Sidwell <nathan@acm.org>
1024
1025 * c-cppbuiltin.c (struct lazy_hex_fp_value_struct): Remove macro
1026 field.
1027 (laxy_hex_fp_value_count): Make unsigned.
1028 (lazy_hex_fp_value): Provided with macro & lazy number. Directly
1029 manipulate the macro.
1030 (builtin_defin_with_hex_fp_value): Adjust callback name, use
1031 cpp_define_lazily.
1032
6f795a92
DM
10332018-08-17 David Malcolm <dmalcolm@redhat.com>
1034
1035 * c-format.c (enum format_type): Add gcc_dump_printf_format_type.
1036 (gcc_dump_printf_length_specs): New.
1037 (gcc_dump_printf_flag_pairs): New.
1038 (gcc_dump_printf_flag_specs): New.
1039 (gcc_dump_printf_char_table): New.
1040 (format_types_orig): Add entry for "gcc_dump_printf".
1041 (init_dynamic_diag_info): Set up length_char_specs and
1042 conversion_specs for gcc_dump_printf_format_type.
1043 (handle_format_attribute): Handle gcc_dump_printf_format_type.
1044
c5d725c0
NS
10452018-08-17 Nathan Sidwell <nathan@acm.org>
1046
10f04917
NS
1047 * c-ada-spec.c (macro_length, dump_ada_macros): Constify.
1048
c5d725c0
NS
1049 * c-ada-spec.c: Don't #include "cpp-id-data.h"
1050 * c-cppbuiltin.c: Likewise.
1051
c0c12356
ML
10522018-08-17 Martin Liska <mliska@suse.cz>
1053
1054 * c.opt: Remove Warn, Init and Report for options with
92a285c1
ML
1055 Ignore/Deprecated flag. Warning is done automatically for
1056 Deprecated flags.
c0c12356 1057
10fcc142
DM
10582018-08-16 David Malcolm <dmalcolm@redhat.com>
1059
1060 PR c++/70693
1061 * c-common.c (selftest::c_family_tests): Call
1062 selftest::c_indentation_c_tests.
1063 * c-common.h (selftest::c_indentation_c_tests): New decl.
1064 * c-indentation.c: Include "selftest.h".
1065 (next_tab_stop): Add "tab_width" param, rather than accessing
1066 cpp_opts.
1067 (get_visual_column): Likewise. Clarify comment. Bulletproof
1068 against reading past the end of the line.
1069 (get_first_nws_vis_column): Add "tab_width" param.
1070 (detect_intervening_unindent): Likewise.
1071 (should_warn_for_misleading_indentation): Read tab width from
1072 cpp_opts and pass around.
1073 (selftest::test_next_tab_stop): New test.
1074 (selftest::assert_get_visual_column_succeeds): New function.
1075 (ASSERT_GET_VISUAL_COLUMN_SUCCEEDS): New macro.
1076 (selftest::assert_get_visual_column_fails): New function.
1077 (ASSERT_GET_VISUAL_COLUMN_FAILS): New macro.
1078 (selftest::test_get_visual_column): New test.
1079 (selftest::c_indentation_c_tests): New function.
1080
3f6677f4
NS
10812018-08-16 Nathan Sidwell <nathan@acm.org>
1082
1083 * c-ada-spec.c (count_ada_macro): Use cpp_user_macro_p.
1084 (store_ada_macro): Likewise.
1085 * c-ppoutput.c (cb_used_define, dump_macro): Likewise.
1086 * c-spellcheck.cc (should-suggest_as_macro_p): Likewise,
1087
96e6ae57
DM
10882018-08-15 David Malcolm <dmalcolm@redhat.com>
1089
1090 * c-format.c: Include "selftest-diagnostic.h" and
1091 "gcc-rich-location.h".
1092 (format_warning_at_char): Pass NULL for new label params of
1093 format_warning_va.
1094 (class indirection_suffix): New class.
1095 (class range_label_for_format_type_mismatch): New class.
1096 (format_type_warning): Move logic for generating "*" suffix to
1097 class indirection_suffix. Create "fmt_label" and "param_label"
1098 to show their types, and pass them to the
1099 format_warning_at_substring calls.
1100 (selftest::test_type_mismatch_range_labels): New test.
1101 (selftest::c_format_c_tests): Call it.
1102
23aa9f7c
MS
11032018-08-13 Martin Sebor <msebor@redhat.com>
1104
1105 PR tree-optimization/71625
1106 * c-common.c (braced_list_to_string): New function.
1107 * c-common.h (braced_list_to_string): Declare it.
1108
f10a9135
NS
11092018-08-08 Nathan Sidwell <nathan@acm.org>
1110
1111 * c-common.c (try_to_locate_new_include_inertion_point): Use
1112 linemap_included_from_linemap.
1113 * c-lex.c (fe_file_change): Use linemap_included_from.
1114 * c-ppoutput.c (pp_file_change): Likewise.
1115
8a45b051
MS
11162018-08-01 Martin Sebor <msebor@redhat.com>
1117
1118 PR tree-optimization/86650
ab20d992 1119 * c-format.c (gcc_tdiag_char_table): Update comment for "%G".
8a45b051
MS
1120 (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Same.
1121 (init_dynamic_diag_info): Update from "gcall *" to "gimple *".
1122 * c-format.h (T89_G): Update to be "gimple *" rather than
1123 "gcall *".
1124 (local_gcall_ptr_node): Rename...
1125 (local_gimple_ptr_node): ...to this.
1126
e540ccc0
DM
11272018-07-31 David Malcolm <dmalcolm@redhat.com>
1128
1129 * c-format.c (PP_FORMAT_CHAR_TABLE): New macro, based on existing
1130 table entries for gcc_diag_char_table, and the 'Z' entry from
1131 gcc_tdiag_char_table, changing the "chain" entry for 'Z' from
1132 &gcc_tdiag_char_table[0] to &gcc_diag_char_table[0].
1133 (gcc_diag_char_table): Use PP_FORMAT_CHAR_TABLE, implicitly
1134 adding missing "Z" for this table. Remove erroneous "G" and "K"
1135 entries.
1136 (gcc_tdiag_char_table): Use PP_FORMAT_CHAR_TABLE. Remove "v".
1137 (gcc_cdiag_char_table): Use PP_FORMAT_CHAR_TABLE.
1138 (gcc_cxxdiag_char_table): Use PP_FORMAT_CHAR_TABLE. Remove "v".
1139
425fc685
RE
11402018-07-31 Richard Earnshaw <rearnsha@arm.com>
1141
1142 * c-common.c (speculation_safe_resolve_call): New function.
1143 (speculation_safe_resolve_params): New function.
1144 (speculation_safe_resolve_return): New function.
1145 (resolve_overloaded_builtin): Handle __builtin_speculation_safe_value.
1146 * c-cppbuiltin.c (c_cpp_builtins): Add pre-define for
1147 __HAVE_SPECULATION_SAFE_VALUE.
1148
181463c2
DM
11492018-07-20 David Malcolm <dmalcolm@redhat.com>
1150
1151 * c-common.c (c_cpp_error): Remove redundant "line_table"
1152 parameter from call to rich_location::set_range.
1153 (maybe_suggest_missing_token_insertion): Likewise.
1154
0d7f9065
MS
11552018-07-20 Martin Sebor <msebor@redhat.com>
1156
1157 PR middle-end/82063
ab20d992 1158 * c.opt (-Warray-bounds): Remove redundant -Wall.
0d7f9065 1159
00abf86c
MS
11602018-07-20 Martin Sebor <msebor@redhat.com>
1161
1162 PR middle-end/82063
1163 * c-common.h (c_common_handle_option): Change function argument
1164 to HOST_WIDE_INT.
1165 * c-opts.c (c_common_init_options): Same.
1166 (c_common_handle_option): Same. Remove special handling of
1167 OPT_Walloca_larger_than_ and OPT_Wvla_larger_than_.
1168 * c.opt (-Walloc-size-larger-than, -Walloca-larger-than): Change
1169 options to take a HOST_WIDE_INT argument and accept a byte-size
1170 suffix. Initialize.
1171 (-Wvla-larger-than): Same.
1172 (-Wno-alloc-size-larger-than, -Wno-alloca-larger-than): New.
1173 (-Wno-vla-larger-than): Same.
1174
9b452033
JJ
11752018-07-12 Jakub Jelinek <jakub@redhat.com>
1176
1177 * c-attribs.c (c_common_attribute_table): Add
1178 "omp declare target implicit" attribute.
1179
cd0762f3
RB
11802018-07-12 Richard Biener <rguenther@suse.de>
1181
1182 PR c/86453
1183 * c-attribs.c (handle_packed_attribute): Do not build a variant
1184 type with TYPE_PACKED, instead ignore the attribute if we may
1185 not apply to the original type.
1186
0b27c3ed
JJ
11872018-07-10 Jakub Jelinek <jakub@redhat.com>
1188
1189 PR c++/86443
1190 * c-omp.c (c_omp_check_loop_iv_r, c_omp_check_loop_iv): Allow declv
1191 to contain TREE_LIST for both the original class iterator and the
1192 "last" helper var.
1193
e730a0ef
EB
11942018-07-07 Eric Botcazou <ebotcazou@adacore.com>
1195
1196 * c-ada-spec.c (to_ada_name): Remove index parameter.
1197 (pp_ada_tree_identifier): Likewise.
1198 (dump_ada_macros): Adjust call to to_ada_name.
1199 (struct overloaded_name_hash): Delete.
1200 (struct overloaded_name_hasher): Likewise.
1201 (overloaded_names): Likewise.
1202 (compute_overloading_index): Likewise.
1203 (dump_ada_decl_name): Do not call compute_overloading_index and
1204 adjust calls to pp_ada_tree_identifier.
1205 (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
1206 (dump_ada_import): Add spc parameter and switch to aspect syntax.
1207 (dump_ada_function_declaration): Adjust call to pp_ada_tree_identifier.
1208 (dump_ada_enum_type): Remove type and display_convention parameters.
1209 Adjust calls to pp_ada_tree_identifier.
1210 (dump_ada_node): Likewise and for dump_ada_structure.
1211 (dump_nested_type) <ENUMERAL_TYPE>: Adjust call to dump_ada_enum_type
1212 and tidy up.
1213 <RECORD_TYPE>: Adjust call to dump_ada_structure and switch to aspect
1214 syntax.
1215 (print_constructor): Adjust call to pp_ada_tree_identifier.
1216 (print_destructor): Likewise.
1217 (dump_ada_declaration): Switch to aspect syntax.
1218 (dump_ada_structure): Likewise and tidy up. Replace display_convention
1219 parameter with nested parameter.
1220 (dump_ads): Emit pragma Ada_2012 in lieu of pragma Ada_2005.
1221 (dump_ada_specs): Do not delete overloaded_names table.
1222
8de583fc
PB
12232018-07-06 Peter Bergner <bergner@linux.ibm.com>
1224
1225 PR target/86324
e730a0ef 1226 * c-attribs.c (handle_mode_attribute): Call translate_mode_attribute
8de583fc
PB
1227 target hook.
1228
09cff37b
NS
12292018-07-05 Nathan Sidwell <nathan@acm.org>
1230
1231 * c-lex.c (fe_file_change): Check SYSTEM_IMPLICIT_EXTERN_C not
1232 NO_IMPLICIT_EXTERN_C.
1233
98086b2b
ML
12342018-06-28 Martin Liska <mliska@suse.cz>
1235
1236 * cppspec.c: Include opt-suggestions.h.
1237
ab20d992
JJ
12382018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
1239 Thomas Schwinge <thomas@codesourcery.com>
829c6349
CLT
1240 Cesar Philippidis <cesar@codesourcery.com>
1241
1242 * c-pragma.h (enum pragma_omp_clause): Add
1243 PRAGMA_OACC_CLAUSE_{FINALIZE,IF_PRESENT}. Remove
1244 PRAGMA_OACC_CLAUSE_PRESENT_OR_{COPY,COPYIN,COPYOUT,CREATE}.
1245
f41b7612
JJ
12462018-06-20 Jakub Jelinek <jakub@redhat.com>
1247
1248 PR c++/86210
1249 * c-common.c (check_nonnull_arg): Use fold_for_warn. Adjust obsolete
1250 comment.
1251
4252ccd7
MS
12522018-06-18 Martin Sebor <msebor@redhat.com>
1253
1254 PR middle-end/85602
1255 * c-warn.c (sizeof_pointer_memaccess_warning): Check for attribute
1256 nonstring.
1257
e197e64e
KV
12582018-06-16 Kugan Vivekanandarajah <kuganv@linaro.org>
1259
1260 * c-common.c (c_common_truthvalue_conversion): Handle ABSU_EXPR.
1261
34a7a230
JM
12622018-06-13 Jason Merrill <jason@redhat.com>
1263
5cef3733
JM
1264 * c-opts.c (c_common_post_options): Warn about useless -Wabi.
1265 (c_common_handle_option) [OPT_Wabi_]: Remove flag_abi_compat_version
1266 handling.
1267
34a7a230
JM
1268 PR c++/86094 - wrong code with defaulted move ctor.
1269 * c-opts.c (c_common_post_options): Bump the current ABI version to
1270 13. Set warn_abi_version and flag_abi_compat_version to the current
1271 version rather than 0. Fix defaulting flag_abi_compat_version from
1272 warn_abi_version.
1273
bb0f14ae
MS
12742018-06-12 Martin Sebor <msebor@redhat.com>
1275
1276 PR c/85931
1277 * c-warn.c (sizeof_pointer_memaccess_warning): Avoid warning when
1278 sizeof source and destination yields the same value.
1279
3713f2e2
ML
12802018-06-12 Martin Liska <mliska@suse.cz>
1281
1282 * c.opt: Make MPX-related options as Deprecated.
1283
4af78ef8
DM
12842018-06-08 David Malcolm <dmalcolm@redhat.com>
1285
1286 * c-pretty-print.c (c_pretty_printer::statement): Use TDF_NONE
1287 rather than 0.
1288
31db0fe0
ML
12892018-06-08 Martin Liska <mliska@suse.cz>
1290
1291 * c-attribs.c (handle_bnd_variable_size_attribute): Remove support
1292 for MPX (macros, related functions, fields in cgraph_node, ...).
1293 (handle_bnd_legacy): Likewise.
1294 (handle_bnd_instrument): Likewise.
1295 * c.opt: Likewise.
1296
fe16acf2
JJ
12972018-06-06 Jakub Jelinek <jakub@redhat.com>
1298
1299 PR c++/86068
1300 * c-cppbuiltin.c (c_cpp_builtins): Fix a typo, set
1301 __cpp_transactional_memory to 201500 instead of 210500.
1302
4dbdb49b
JM
13032018-06-06 Jason Merrill <jason@redhat.com>
1304
1305 PR c++/85710 - ICE with -Wmemset-elt-size.
1306 * c-warn.c (warn_for_memset): Don't crash on incomplete element type.
1307
f8ad043f
JM
13082018-06-01 Jason Merrill <jason@redhat.com>
1309
1310 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_deduction_guides to
1311 201703.
1312
abc24d93
EB
13132018-06-01 Eric Botcazou <ebotcazou@adacore.com>
1314
1315 * c-ada-spec.c (dump_ada_declaration) <TYPE_DECL>: Generate a forward
1316 declaration for a typedef independently of whether the declaration of
1317 the subtype is generated.
1318
d258f4aa
MS
13192018-05-31 Martin Sebor <msebor@redhat.com>
1320
1321 PR c/82063
1322 * c.opt (-Wno-alloc-size-larger-than): New option.
1323
b67b9225
DP
13242018-04-22 David Pagan <dave.pagan@oracle.com>
1325
1326 PR c/55976
1327 * c-opts.c (c_common_post_options): Set default for warn_return_type
ab20d992 1328 for C++/C++ with ObjC extensions only. For C, makes it possible to
b67b9225
DP
1329 differentiate between default (no option), -Wreturn-type, and
1330 -Wno-return-type.
1331
04eb9c55
JM
13322018-05-29 Jason Merrill <jason@redhat.com>
1333
1334 * c.opt (Winit-list-lifetime): New flag.
1335
b0c31bc6
BE
13362018-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
1337
1338 * c-lex.c (get_fileinfo): Use splay_tree_compare_strings and
1339 splay_tree_delete_pointers.
1340
44284983
JJ
13412018-05-26 Jakub Jelinek <jakub@redhat.com>
1342
1343 PR bootstrap/85921
1344 * c-warn.c (diagnose_mismatched_attributes): Remove unnecessary
1345 noinline variable to workaround broken kernel headers.
1346
b46b715d
JM
13472018-05-18 Jason Merrill <jason@redhat.com>
1348
1349 * c.opt (Wdeprecated-copy): New flag.
1350
40659769
ML
13512018-05-17 Martin Liska <mliska@suse.cz>
1352
1353 * c-warn.c (overflow_warning): Do not use
1354 space in between 'G_' and '('.
1355
403962ea
JM
13562018-05-09 Jason Merrill <jason@redhat.com>
1357
1358 * c-common.c (valid_array_size_p): Add complain parameter.
1359 * c-common.h: ...which defaults to true.
1360
1c9ee609
JJ
13612018-05-11 Jakub Jelinek <jakub@redhat.com>
1362
1363 PR c/85696
1364 * c-omp.c (c_omp_predetermined_sharing): Return
1365 OMP_CLAUSE_DEFAULT_SHARED for artificial vars with integral type.
1366
19916065
ML
13672018-05-11 Martin Liska <mliska@suse.cz>
1368
92a285c1 1369 PR sanitizer/85556
19916065
ML
1370 * c-attribs.c (handle_no_sanitize_attribute): Iterate all
1371 TREE_LIST values.
1372
79e7b1fe
JJ
13732018-05-10 Jakub Jelinek <jakub@redhat.com>
1374
1375 PR c++/85662
1376 * c-common.h (fold_offsetof_1): Removed.
1377 (fold_offsetof): Add TYPE argument defaulted to size_type_node and
1378 CTX argument defaulted to ERROR_MARK.
1379 * c-common.c (fold_offsetof_1): Renamed to ...
1380 (fold_offsetof): ... this. Remove wrapper function. Add TYPE
1381 argument, convert the pointer constant to TYPE and use size_binop
1382 with PLUS_EXPR instead of fold_build_pointer_plus if type is not
1383 a pointer type. Adjust recursive calls.
1384
86c12f76
EB
13852018-05-10 Eric Botcazou <ebotcazou@adacore.com>
1386
1387 PR c++/85400
1388 * c-attribs.c (handle_visibility_attribute): Do not set no_add_attrs.
1389
ee336e84
NS
13902018-05-07 Nathan Sidwell <nathan@acm.org>
1391
1392 * c.opt (ffor-scope): Remove functionality, issue warning.
1393
6c072e21
NS
13942018-05-03 Nathan Sidwell <nathan@acm.org>
1395
1396 * c.opt (ffriend-injection): Remove functionality, issue warning.
1397
2cc7d3a7
DM
13982018-05-01 David Malcolm <dmalcolm@redhat.com>
1399
1400 PR c/84258
1401 * c-format.c (struct format_check_results): Add field
1402 "number_non_char".
1403 (check_format_info): Initialize it, and warn if encountered.
1404 (check_format_arg): Distinguish between wide char and
1405 everything else when detecting arrays of non-char.
1406
7761dfbe
DM
14072018-04-30 David Malcolm <dmalcolm@redhat.com>
1408
1409 * c-format.c (get_corrected_substring): Update for
1410 location_get_source_line returning a char_span. Use a char_span
1411 when handling the prefix of the correction.
1412 * c-indentation.c (get_visual_column): Update for
1413 location_get_source_line returning a char_span.
1414 (get_first_nws_vis_column): Likewise.
1415
62e98ef1
DM
14162018-03-29 David Malcolm <dmalcolm@redhat.com>
1417
1418 PR c++/84269
1419 * known-headers.cc (get_stdlib_header_for_name): Add various names
1420 from <assert.h>, <string.h>, and <memory.h>; add more names from
1421 <stdio.h>.
1422
a7dea617
JJ
14232018-03-27 Jakub Jelinek <jakub@redhat.com>
1424
1425 PR c++/85061
1426 * c-common.c (fold_offsetof_1) <case COMPOUND_EXPR>: Assert that
1427 get_base_address of the second operand is a VAR_P, rather than the
1428 operand itself, and use gcc_checking_assert instead of gcc_assert.
1429
889a3a30
MP
14302018-03-23 Marek Polacek <polacek@redhat.com>
1431
1432 PR c++/85045
1433 * c-pretty-print.c (c_pretty_printer::multiplicative_expression)
1434 <case RDIV_EXPR>: Tweak condition.
1435
452154b9
EB
14362018-03-20 Eric Botcazou <ebotcazou@adacore.com>
1437
1438 * c-ada-spec.c (pp_ada_tree_identifier): Deal specifically with _Bool.
1439
63ecb626
JJ
14402018-03-16 Jakub Jelinek <jakub@redhat.com>
1441
ce811fc4
JJ
1442 PR c/84909
1443 * c-warn.c (conversion_warning): Replace "to to" with "to" in
1444 diagnostics.
1445
63ecb626
JJ
1446 PR c/84910
1447 * c-warn.c (diagnose_mismatched_attributes): Remove trailing space from
1448 diagnostics.
1449
a1295eec
RB
14502018-03-16 Richard Biener <rguenther@suse.de>
1451
1452 PR c/84873
1453 * c-gimplify.c (c_gimplify_expr): Revert previous change. Instead
1454 unshare the possibly folded expression.
1455
919674fb
RB
14562018-03-15 Richard Biener <rguenther@suse.de>
1457
1458 PR c/84873
1459 * c-gimplify.c (c_gimplify_expr): Do not fold expressions.
1460
f99309b2
MS
14612018-03-13 Martin Sebor <msebor@redhat.com>
1462
1463 PR tree-optimization/84725
1464 * c-attribs.c (handle_nonstring_attribute): Allow attribute nonstring
1465 with all three narrow character types, including their qualified forms.
1466
e9b9fa4c
MS
14672018-03-12 Martin Sebor <msebor@redhat.com>
1468
1469 PR tree-optimization/83456
ab20d992 1470 * c-common.c (check_function_restrict): Return bool.
e9b9fa4c
MS
1471 Restore checking of bounded built-in functions.
1472 (check_function_arguments): Also return the result
1473 of warn_for_restrict.
ab20d992
JJ
1474 * c-common.c (check_function_restrict): Return bool.
1475 * c-warn.c (warn_for_restrict): Return bool.
e9b9fa4c 1476
0805d020
MP
14772018-03-02 Marek Polacek <polacek@redhat.com>
1478
1479 PR c++/84171
1480 * c-warn.c (warn_for_sign_compare): Bail out if any of the operands
1481 is erroneous.
1482
ed2a2f08
TS
14832018-03-02 Thomas Schwinge <thomas@codesourcery.com>
1484
1485 * c-attribs.c (c_common_attribute_table): Remove "cilk simd
1486 function".
1487
90abdde0
MP
14882018-03-01 Marek Polacek <polacek@redhat.com>
1489
1490 PR c++/84639
1491 * c-attribs.c (common_handle_aligned_attribute): Don't use invalid
1492 alignment in computation.
1493
c6db43fa
EB
14942018-02-28 Eric Botcazou <ebotcazou@adacore.com>
1495
1496 * c-ada-spec.c (dump_ada_node) <NULLPTR_TYPE>: New case.
1497 <REAL_TYPE>: Deal specifically with _Float128/__float128.
1498
9e25c7ed
EB
14992018-02-28 Eric Botcazou <ebotcazou@adacore.com>
1500
1501 * c-ada-spec.c (dump_ada_double_name) <ENUMERAL_TYPE>: New case.
1502 (is_char_array): Take a type instead of a declaration.
1503 (dump_ada_array_type): Likewise.
1504 (is_simple_enum): Minor tweak.
1505 (dump_ada_enum_type): New function extracted from...
1506 (dump_ada_node) <ENUMERAL_TYPE>: ...here. Invoke it.
1507 <INTEGER_TYPE>: Remove unreachable code.
1508 <RECORD_TYPE>: Likewise. Minor tweaks.
1509 (dump_nested_type) <ARRAY_TYPE>: Adjust to above changes.
1510 <ENUMERAL_TYPE>: New case.
1511 <RECORD_TYPE>: Factor out common code.
1512 (dump_ada_declaration) <ARRAY_TYPE>: Adjust to above changes.
1513 Minor tweaks. Deal with enumeral types.
1514 (dump_ada_structure): Minor tweaks.
1515
09de3550
EB
15162018-02-28 Eric Botcazou <ebotcazou@adacore.com>
1517
1518 * c-ada-spec.c (dump_ada_node) <POINTER_TYPE>: Do not use generic
1519 address for incomplete structures.
1520 (dump_forward_type): Do not bail out for incomplete structures.
1521 (dump_ada_declaration): Do not special-case incomplete structures
1522 for subtypes. Dump them as null records for types.
1523
095d8d4b
EB
15242018-02-28 Eric Botcazou <ebotcazou@adacore.com>
1525
1526 * c-ada-spec.c (dump_ada_import): Use boolean and fix formatting.
1527 (is_char_array): Fix formatting.
1528 (dump_template_types): Likewise.
1529 (dump_generic_ada_node): Rename into...
1530 (dump_ada_node): ...this.
1531 <POINTER_TYPE>: Remove superfluous space. Use generic address for
1532 incomplete structures and not for empty structures. Do not use it
1533 when forward declarations are needed.
1534 (dump_forward_type): New function.
1535 (dump_nested_types): Remove FORWARD parameter. Do not consider
1536 TREE_VISITED and do not generate a forward declaration. Only dump
1537 original nested types for nested declaration.
1538 (dump_nested_type) <POINTER_TYPE>: Call dump_forward_type.
1539 <ARRAY_TYPE>: Likewise if the component type is an anonymous pointer.
1540 <RECORD_TYPE>: Do not consider TREE_VISITED.
1541 (dump_ada_declaration): Use booleans and fix formatting throughout.
1542 <TYPE_DECL>: Skip incomplete structures and not empty structures.
1543 Call dump_forward_type instead of dump_nested_types for a typedef.
1544 Remove superfluous check and adjust call to dump_nested_types.
1545 <POINTER_TYPE>: Call dump_forward_type and fall through.
1546 (dump_ada_struct_decl): Rename into...
1547 (dump_ada_structure): ...this. Do not special-case empty structures.
1548
d4cfd486
MS
15492018-02-27 Martin Sebor <msebor@redhat.com>
1550
1551 PR c++/83871
1552 * c.opt (-Wmissing-attributes): New option.
1553
b22dbd03
ML
15542018-02-21 Martin Liska <mliska@suse.cz>
1555
1556 * c.opt (Wcatch-value=): Add IntegerRange.
1557
883dfe2a
JM
15582018-02-15 Jason Merrill <jason@redhat.com>
1559
1560 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_deduction_guides.
1561
0444aa9c
NS
15622018-02-09 Nathan Sidwell <nathan@acm.org>
1563
1564 PR c/84293
1565 * c-common.h (strict_aliasing_warning): Drop OTYPE arg, insert LOC
1566 arg.
1567 * c-warn.c (strict_aliasing_warning): Drop OTYPE arg, require LOC
1568 arg. Adjust.
1569
cea71f0a
MS
15702018-02-09 Martin Sebor <msebor@redhat.com>
1571
1572 PR lto/84212
1573 * c.opt (-Wstringop-overflow, -Warray-bounds): Add LTO.
1574 (-Walloc-size-larger-than, -Wformat-truncation=): Same.
1575 (-Wmaybe-uninitialized, -Wnonnull, -Wrestrict): Same.
1576 (-Wstrict-overflow, -Wsuggest-attribute): Same.
1577 (-Wuninitialized): Same.
1578
8c8b7be5
EB
15792018-02-09 Eric Botcazou <ebotcazou@adacore.com>
1580
1581 * c-ada-spec.c (dump_ada_declaration): Do not generate the 'constant'
1582 keyword for components.
1583
7c30b12a
PC
15842018-02-02 Paolo Carlini <paolo.carlini@oracle.com>
1585
1586 * c-common.h (DECL_UNNAMED_BIT_FIELD): New.
1587
eece7fe5
JK
15882018-02-02 Julia Koval <julia.koval@intel.com>
1589
1590 * c-common.h (omp_clause_mask): Move to wide_int_bitmask.h.
1591
7d07a93a
MP
15922018-01-29 Marek Polacek <polacek@redhat.com>
1593
1594 PR c/83966
1595 * c-format.c (check_function_format): Check current_function_decl.
1596
53723269
JJ
15972018-01-27 Jakub Jelinek <jakub@redhat.com>
1598
1599 * c-cppbuiltin.c (c_cpp_builtins): Use ggc_strdup for the fp_suffix
1600 argument.
1601 (LAZY_HEX_FP_VALUES_CNT): Define.
1602 (lazy_hex_fp_values): Allow up to LAZY_HEX_FP_VALUES_CNT lazy hex fp
1603 values rather than just 12.
1604 (builtin_define_with_hex_fp_value): Likewise.
1605
7365279f
BK
16062018-01-18 Boris Kolpackov <boris@codesynthesis.com>
1607
92a285c1
ML
1608 PR other/70268
1609 * c.opt (-fmacro-prefix-map): New option.
1610 * c-opts.c (c_common_handle_option): Handle it.
1611 * c-lex.c (init_c_lex): Set remap_filename cpp callback.
1612 * c-ppoutput.c (init_pp_output): Likewise.
7365279f 1613
bb9869d5
DM
16142018-01-17 David Malcolm <dmalcolm@redhat.com>
1615
1616 PR c++/83814
1617 * c-common.c (fold_for_warn): Move to c/c-fold.c and cp/expr.c.
1618
68dc87c3
EB
16192018-01-10 Eric Botcazou <ebotcazou@adacore.com>
1620
1621 * c-ada-spec.c (dump_number): Add FLOAT_P parameter.
1622 Skip 'f' and 'F' characters if it is true.
1623 (store_ada_macro): Minor tweak.
1624 (dump_ada_macros) <CPP_COMMENT>: Likewise.
1625 <CPP_WSTRING>: Likewise.
1626 <CPP_STRING>: Output '&' in the buffer if not the first string.
1627 <CPP_NUMBER>: Adjust calls to dump_number.
1628
9a004410
DM
16292018-01-10 David Malcolm <dmalcolm@redhat.com>
1630
1631 PR c++/43486
1632 * c-common.c: Include "selftest.h".
1633 (get_atomic_generic_size): Perform the test for integral type
1634 before the range test for any integer constant, fixing indentation
1635 of braces. Call fold_for_warn before testing for an INTEGER_CST.
1636 (reject_gcc_builtin): Strip any location wrapper from EXPR.
1637 (selftest::test_fold_for_warn): New function.
1638 (selftest::c_common_c_tests): New function.
1639 (selftest::c_family_tests): Call it, and
1640 selftest::c_pretty_print_c_tests.
1641 * c-common.h (selftest::c_pretty_print_c_tests): New decl.
1642 * c-format.c (check_format_arg): Convert VAR_P check to a
1643 fold_for_warn.
1644 * c-pretty-print.c: Include "selftest.h".
1645 (pp_c_cast_expression): Don't print casts for location wrappers.
1646 (selftest::assert_c_pretty_printer_output): New function.
1647 (ASSERT_C_PRETTY_PRINTER_OUTPUT): New macro.
1648 (selftest::test_location_wrappers): New function.
1649 (selftest::c_pretty_print_c_tests): New function.
1650 * c-warn.c (warn_for_memset): Call fold_for_warn on the arguments.
1651
5c0caeb3
RS
16522018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
1653 Alan Hayward <alan.hayward@arm.com>
1654 David Sherwood <david.sherwood@arm.com>
1655
1656 * c-common.c (c_common_type_for_mode): Handle MODE_VECTOR_BOOL.
1657
73a699ae
RS
16582018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
1659 Alan Hayward <alan.hayward@arm.com>
1660 David Sherwood <david.sherwood@arm.com>
1661
1662 * c-ubsan.c (ubsan_instrument_shift): Treat GET_MODE_BITSIZE
1663 as polynomial.
1664
928686b1
RS
16652018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
1666 Alan Hayward <alan.hayward@arm.com>
1667 David Sherwood <david.sherwood@arm.com>
1668
1669 * c-common.c (vector_types_convertible_p, c_build_vec_perm_expr)
1670 (convert_vector_to_array_for_subscript): Handle polynomial
1671 TYPE_VECTOR_SUBPARTS.
1672 (c_common_type_for_mode): Check valid_vector_subparts_p.
1673 * c-pretty-print.c (pp_c_initializer_list): Handle polynomial
1674 VECTOR_CST_NELTS.
1675
85ec4feb
JJ
16762018-01-03 Jakub Jelinek <jakub@redhat.com>
1677
1678 Update copyright years.
1679
170a8bd6 16802017-12-22 Mike Stump <mikestump@comcast.net>
92a285c1 1681 Eric Botcazou <ebotcazou@adacore.com>
170a8bd6
EB
1682
1683 * c-pragma.c (init_pragma): Register pragma GCC unroll.
1684 * c-pragma.h (enum pragma_kind): Add PRAGMA_UNROLL.
1685
ab20d992 16862017-12-22 Alexandre Oliva <aoliva@redhat.com>
18408e96
AO
1687
1688 PR debug/83527
1689 PR debug/83419
1690 * c-semantics.c (only_debug_stmts_after_p): New.
1691 (pop_stmt_list): Clear side effects in debug-only stmt list.
1692 Check for single nondebug stmt followed by debug stmts only.
1693
c12d20d4
AO
16942017-12-21 Alexandre Oliva <aoliva@redhat.com>
1695
1696 PR debug/83419
1697 * c-semantics.c (pop_stmt_list): Propagate side effects from
1698 single nondebug stmt to container list.
1699
01512446
JJ
17002017-12-19 Jakub Jelinek <jakub@redhat.com>
1701
1702 * known-headers.cc (get_stdlib_header_for_name): Replace Yoda
1703 conditions with typical order conditions.
1704
82cfbd01
MP
17052017-12-18 Marek Polacek <polacek@redhat.com>
1706
1707 * c-warn.c (warn_logical_operator): Return early if -Wlogical-op is
1708 not in effect.
1709
99da11ec
MS
17102017-12-17 Martin Sebor <msebor@redhat.com>
1711
1712 * c-attribs.c (common_handle_aligned_attribute): Avoid issuing
1713 an error for attribute warn_if_not_aligned.
1714
cc8bea0a
MS
17152017-12-16 Martin Sebor <msebor@redhat.com>
1716
1717 PR tree-optimization/78918
1718 * c-common.c (check_function_restrict): Avoid checking built-ins.
1719 * c.opt (-Wrestrict): Include in -Wall.
1720
4849deb1
JJ
17212017-12-15 Jakub Jelinek <jakub@redhat.com>
1722
1723 * c-attribs.c (c_common_attribute_table,
1724 c_common_format_attribute_table): Swap affects_type_identity
1725 and handler fields, adjust comments.
1726
c65e18d3
BE
17272017-12-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
1728
1729 * c.opt (Wcast-function-type): New warning option.
1730 * c-lex.c (get_fileinfo): Avoid warning.
1731 * c-ppoutput.c (scan_translation_unit_directives_only): Remove cast.
1732
2004617a
QZ
17332017-12-14 Qing Zhao <qing.zhao@oracle.com>
1734
7365279f 1735 PR middle_end/79538
2004617a
QZ
1736 * c-cppbuiltin.c (builtin_define_with_hex_fp_value):
1737 Adjust the size of buf1 and buf2, add a new buf to avoid
1738 format-overflow warning.
1739
ab20d992 17402017-12-12 Alexandre Oliva <aoliva@redhat.com>
96a95ac1
AO
1741
1742 * c-semantics.c (pop_stmt_list): Move begin stmt marker into
1743 subsequent statement list.
1744
5d9ae53d
MS
17452017-12-07 Martin Sebor <msebor@redhat.com>
1746
1747 PR c/81544
1748 PR c/81566
1749 * c-attribs.c (attr_aligned_exclusions): New array.
1750 (attr_alloc_exclusions, attr_cold_hot_exclusions): Same.
1751 (attr_common_exclusions, attr_const_pure_exclusions): Same.
1752 (attr_gnu_inline_exclusions, attr_inline_exclusions): Same.
1753 (attr_noreturn_exclusions, attr_returns_twice_exclusions): Same.
1754 (attr_warn_unused_result_exclusions): Same.
1755 (handle_hot_attribute, handle_cold_attribute): Simplify.
1756 (handle_const_attribute): Warn on function returning void.
1757 (handle_pure_attribute): Same.
1758 (handle_aligned_attribute): Diagnose conflicting attribute
1759 specifications.
1760 * c-warn.c (diagnose_mismatched_attributes): Simplify.
1761
c79144f8
DM
17622017-12-06 David Malcolm <dmalcolm@redhat.com>
1763
1764 PR c/83236
1765 * c-common.c (selftest::c_family_tests): Call
1766 selftest::c_spellcheck_cc_tests.
1767 * c-common.h (selftest::c_spellcheck_cc_tests): New decl.
1768 * c-spellcheck.cc: Include "selftest.h".
1769 (name_reserved_for_implementation_p): New function.
1770 (should_suggest_as_macro_p): New function.
1771 (find_closest_macro_cpp_cb): Move the check for NT_MACRO to
1772 should_suggest_as_macro_p and call it.
1773 (selftest::test_name_reserved_for_implementation_p): New function.
1774 (selftest::c_spellcheck_cc_tests): New function.
1775 * c-spellcheck.h (name_reserved_for_implementation_p): New decl.
1776
613bc14f
DM
17772017-12-06 David Malcolm <dmalcolm@redhat.com>
1778
1779 * c-spellcheck.cc: New file, taken from macro-handling code in
1780 spellcheck-tree.c.
1781 * c-spellcheck.h: New file, taken from macro-handling code in
1782 spellcheck-tree.h.
1783
e76c7157
JJ
17842017-12-01 Jakub Jelinek <jakub@redhat.com>
1785
1786 * c-attribs.c (c_common_attribute_table): Remove "cilk simd function"
1787 attribute.
1788 (handle_simd_attribute): Don't check for "cilk simd function"
1789 attribute. Reindent, formatting changes.
1790
b0da4034
JK
17912017-11-30 Julia Koval <julia.koval@intel.com>
1792
1793 * c-common.h (inv_list): Remove.
1794
058f0b9e
JJ
17952017-11-28 Jakub Jelinek <jakub@redhat.com>
1796
1797 PR sanitizer/81275
1798 * c-common.c (c_switch_covers_all_cases_p_1,
1799 c_switch_covers_all_cases_p): New functions.
1800 * c-common.h (c_switch_covers_all_cases_p): Declare.
1801
5e9d6aa4 18022017-11-28 Julia Koval <julia.koval@intel.com>
92a285c1 1803 Sebastian Peryt <sebastian.peryt@intel.com>
5e9d6aa4
JK
1804
1805 * array-notation-common.c: Delete.
1806 * c-cilkplus.c: Ditto.
1807 * c-common.c (_Cilk_spawn, _Cilk_sync, _Cilk_for): Remove.
1808 * c-common.def (ARRAY_NOTATION_REF): Remove.
1809 * c-common.h (RID_CILK_SPAWN, build_array_notation_expr,
1810 build_array_notation_ref, C_ORT_CILK, c_check_cilk_loop,
1811 c_validate_cilk_plus_loop, cilkplus_an_parts,
1812 cilk_ignorable_spawn_rhs_op,
1813 cilk_recognize_spawn): Remove.
1814 * c-gimplify.c (CILK_SPAWN_STMT): Remove.
1815 * c-omp.c: Remove CILK_SIMD check.
1816 * c-pragma.c: Ditto.
1817 * c-pragma.h: Remove CILK related pragmas.
1818 * c-pretty-print.c (c_pretty_printer::postfix_expression): Remove
1819 ARRAY_NOTATION_REF condition.
1820 (c_pretty_printer::expression): Ditto.
1821 * c.opt (fcilkplus): Remove.
1822 * cilk.c: Delete.
1823
1af4ebf5
MG
18242017-11-21 Marc Glisse <marc.glisse@inria.fr>
1825
1826 * c-pretty-print.c (pp_c_additive_expression,
1827 c_pretty_printer::expression): Handle POINTER_DIFF_EXPR.
1828
d44ed508
JJ
18292017-11-21 Jakub Jelinek <jakub@redhat.com>
1830
7d2f0f9b
JJ
1831 * c-common.c (get_nonnull_operand): Use tree_to_uhwi.
1832
d44ed508
JJ
1833 PR c++/83059
1834 * c-common.c (get_atomic_generic_size): Use TREE_INT_CST_LOW
1835 instead of tree_to_uhwi, formatting fix.
1836
26edace6
DM
18372017-11-20 David Malcolm <dmalcolm@redhat.com>
1838
1839 PR c/81404
1840 * known-headers.cc: New file, based on material from c/c-decl.c.
1841 (suggest_missing_header): Copied as-is.
1842 (get_stdlib_header_for_name): New, based on get_c_name_hint but
1843 heavily edited to add C++ support. Add some knowledge about
1844 <limits.h>, <stdint.h>, and <wchar.h>.
1845 * known-headers.h: Likewise.
1846
6c7a259b
DM
18472017-11-20 David Malcolm <dmalcolm@redhat.com>
1848
1849 * c-common.h (enum lookup_name_fuzzy_kind): Move to name-hint.h.
1850 (lookup_name_fuzzy): Likewise. Convert return type from
1851 const char * to name_hint. Add location_t param.
1852 * name-hint.h: New header.
1853
f9c59f7e
JJ
18542017-11-19 Jakub Jelinek <jakub@redhat.com>
1855
1856 PR c/66618
1857 PR c/69960
1858 * c-common.h (c_fully_fold): Add LVAL argument defaulted to false.
1859
1e39313a
JM
18602017-11-16 Joseph Myers <joseph@codesourcery.com>
1861
1862 * c.opt (-std=c17, std=gnu17, -std=iso9899:2017): Refer to 2018
1863 expected publication date of C17.
1864 (-std=c18, -std=gnu18, -std=iso9899:2018): New option aliases.
1865
3ca0dc60
JM
18662017-11-15 Joseph Myers <joseph@codesourcery.com>
1867
1868 PR c/81156
1869 * c-common.c (c_common_reswords): Add __builtin_tgmath.
1870 * c-common.h (enum rid): Add RID_BUILTIN_TGMATH.
1871
025d57f0
MS
18722017-11-10 Martin Sebor <msebor@redhat.com>
1873
1874 PR c/81117
1875 * c-common.c (catenate_strings): Use memcpy instead of strncpy.
1876 * c-warn.c (sizeof_pointer_memaccess_warning): Handle arrays.
1877 * c.opt (-Wstringop-truncation): New option.
1878
1b6fa695
ML
18792017-11-06 Martin Liska <mliska@suse.cz>
1880
1881 PR middle-end/82404
1882 * c-opts.c (c_common_post_options): Set -Wreturn-type for C++
1883 FE.
1884 * c.opt: Set default value of warn_return_type.
1885
64a5912c
DM
18862017-10-31 David Malcolm <dmalcolm@redhat.com>
1887
1888 * c-common.c (binary_op_error): Update for renaming of
1889 error_at_rich_loc.
1890 (c_parse_error): Likewise.
1891 * c-warn.c (warn_logical_not_parentheses): Likewise for
1892 renaming of inform_at_rich_loc.
1893 (warn_for_restrict): Likewise for renaming of
1894 warning_at_rich_loc_n.
1895
c76dc9c3
JM
18962017-10-30 Joseph Myers <joseph@codesourcery.com>
1897
1898 * c.opt (std=c17, std=gnu17, std=iso9899:2017): New options.
1899 * c-opts.c (set_std_c17): New function.
1900 (c_common_init_options): Use gnu17 as default C version.
1901 (c_common_handle_option): Handle -std=c17 and -std=gnu17.
1902
ee5fd23a
MM
19032017-10-27 Michael Meissner <meissner@linux.vnet.ibm.com>
1904
1905 * c-cppbuiltin.c (mode_has_fma): Add support for PowerPC KFmode.
1906 (c_cpp_builtins): If a machine has a fast fma _Float<N> and
1907 _Float<N>X variant, define __FP_FAST_FMA<N> and/or
1908 __FP_FAST_FMA<N>X.
1909
d1047465
MP
19102017-10-23 Marek Polacek <polacek@redhat.com>
1911
1912 PR c/82681
1913 * c-warn.c (warnings_for_convert_and_check): Fix typos.
1914
9e878cf1
EB
19152017-10-19 Eric Botcazou <ebotcazou@adacore.com>
1916
1917 * c-common.c (check_builtin_function_arguments): Also check arguments
1918 of __builtin_alloca_with_align_and_max.
1919
89b6abbb
DM
19202017-10-17 David Malcolm <dmalcolm@redhat.com>
1921
1922 * c-format.c (format_warning_at_char): Pass UNKNOWN_LOCATION
1923 rather than NULL to format_warning_va.
1924 (check_format_types): Likewise when calling format_type_warning.
1925 Remove code to extract source_ranges and source_range * in favor
1926 of just a location_t.
1927 (format_type_warning): Convert source_range * param to a
1928 location_t.
1929
39382c09
JJ
19302017-10-13 Jakub Jelinek <jakub@redhat.com>
1931
1932 * c-gimplify.c (c_gimplify_expr): Handle [LR]ROTATE_EXPR like
1933 [LR]SHIFT_EXPR.
1934
62e1c678
DM
19352017-10-12 David Malcolm <dmalcolm@redhat.com>
1936
1937 * c-common.c (enum missing_token_insertion_kind): New enum.
1938 (get_missing_token_insertion_kind): New function.
1939 (maybe_suggest_missing_token_insertion): New function.
1940 * c-common.h (maybe_suggest_missing_token_insertion): New decl.
1941
b90c9338
NS
19422017-10-11 Nathan Sidwell <nathan@acm.org>
1943
1944 * c-opts.c (add_prefixed_path): Change chain to incpath_kind.
1945 (c_common_handle_option): Update incpath_kind names.
1946
3a266bcd
ML
19472017-10-11 Martin Liska <mliska@suse.cz>
1948
1949 PR sanitizer/82490
1950 * c-attribs.c (handle_no_sanitize_attribute): Report directly
1951 Wattributes warning.
1952
8e6cdc90
RS
19532017-10-10 Richard Sandiford <richard.sandiford@linaro.org>
1954
1955 * c-ada-spec.c (dump_generic_ada_node): Use wi::to_wide when
1956 operating on trees as wide_ints.
1957 * c-common.c (pointer_int_sum): Likewise.
1958 * c-pretty-print.c (pp_c_integer_constant): Likewise.
1959 * c-warn.c (match_case_to_enum_1): Likewise.
1960 (c_do_switch_warnings): Likewise.
1961 (maybe_warn_shift_overflow): Likewise.
1962
802b38c9
JJ
19632017-10-10 Jakub Jelinek <jakub@redhat.com>
1964
1965 PR c/82437
1966 * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_wide
1967 instead of wide_int::from.
1968
4e34b338
JJ
19692017-10-06 Jakub Jelinek <jakub@redhat.com>
1970
1971 PR c/82437
1972 * c-warn.c (warn_tautological_bitwise_comparison): Instead of
1973 using to_widest use wide_int with the larger of the two precisions.
1974
4bc4b2b4
BE
19752017-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
1976
1977 * c-pretty-print.c (pp_c_parameter_type_list): Print ... for variadic
1978 functions.
1979
a1488398
RS
19802017-10-02 Richard Sandiford <richard.sandiford@linaro.org>
1981
1982 * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_widest
1983 when combining the original unconverted comparison operands.
1984
01c9fb68
JJ
19852017-09-29 Jakub Jelinek <jakub@redhat.com>
1986
1987 * c-attribs.c (handle_noipa_attribute): Don't add "stack_protect"
1988 attribute.
1989
6e3e8419
EB
19902017-09-29 Eric Botcazou <ebotcazou@adacore.com>
1991
1992 * c-ada-spec.c (to_ada_name): Add index parameter.
1993 (pp_ada_tree_identifier): Likewise.
1994 (dump_ada_macros): Adjust call to to_ada_name.
1995 (struct overloaded_name_hash): New type.
1996 (struct overloaded_name_hasher): Likewise.
1997 (overloaded_names): New hash table.
1998 (compute_overloading_index): New function.
1999 (dump_ada_decl_name): Call it and pass the result to
2000 pp_ada_tree_identifier.
2001 (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
2002 (dump_ada_function_declaration): Likewise.
2003 (dump_generic_ada_node): Likewise.
2004 (print_constructor): Likewise.
2005 (print_destructor): Likewise.
2006 (dump_ada_specs): Delete overloaded_names table.
2007
79310774
EB
20082017-09-29 Eric Botcazou <ebotcazou@adacore.com>
2009
2010 * c-ada-spec.c (max_ada_macros): Move around.
2011 (store_ada_macro_index): Likewise.
2012 (source_file): Rename into...
2013 (macro_source_file): ...this.
2014 (count_ada_macro): Move around.
2015 (store_ada_macro): Likewise.
2016 (compare_macro): Likewise.
2017 (print_ada_macros): Merge in...
2018 (dump_ada_macros): ...this.
2019 (source_file_base): Rename into...
2020 (current_source_file): ...this.
2021 (print_comment): Move around.
2022 (dump_ada_nodes): Call dump_ada_declaration directly.
2023 (struct with): Change type of limited field to bool.
2024 (append_withs): Change type of limited_access parameter to bool.
2025 (pp_ada_tree_identifie): Likewise.
2026 (dump_ada_decl_nam): Likewise.
2027 (dump_generic_ada_node): Likewise. Do not print the return type.
2028 (to_ada_name): Change type of space_found parameter to bool.
2029 (dump_ada_function_declaration): Return void and change type of
2030 parameters to bool. Also print the return type for a function.
2031 (print_ada_methods): Rename into...
2032 (dump_ada_methods): ...this.
2033 (print_ada_declaration): Rename into ...
2034 (dump_ada_declaration): ...this. Do not print the return type.
2035 (print_ada_struct_decl): Rename into...
2036 (dump_ada_struct_decl): ...this.
2037
7d386d45
JJ
20382017-09-29 Jakub Jelinek <jakub@redhat.com>
2039
2040 * c-attribs.c (handle_packed_attribute): Test DECL_C_BIT_FIELD
2041 rather than DECL_INITIAL.
2042 (common_handle_aligned_attribute): Likewise.
2043
ab20d992 20442017-09-20 Alexandre Oliva <aoliva@redhat.com>
9ed32e27
AO
2045
2046 * c.opt (gen-decls): Add RejectNegative.
2047
026a79f7
AS
20482017-09-15 Andrew Sutton <andrew.n.sutton@gmail.com>
2049 Jakub Jelinek <jakub@redhat.com>
2050
2051 Add support for -std=c++2a.
2052 * c-common.h (cxx_dialect): Add cxx2a as a dialect.
2053 * opt.c: Add options for -std=c++2a and -std=gnu++2a.
2054 * c-opts.c (set_std_cxx2a): New.
2055 (c_common_handle_option): Set options when -std=c++2a is enabled.
2056 (c_common_post_options): Adjust comments.
2057 (set_std_cxx14, set_std_cxx17): Likewise.
2058
4a8ca690
EB
20592017-09-15 Eric Botcazou <ebotcazou@adacore.com>
2060
2061 * c-pragma.c (handle_pragma_scalar_storage_order): Expand on error
2062 message for non-uniform endianness and issue a warning in C++.
2063
7b936140
JJ
20642017-09-15 Jakub Jelinek <jakub@redhat.com>
2065
2066 * c.opt (Wc++1z-compat): Change from option to undocumented alias.
2067 (Wc++17-compat): Change from undocumented alias to option.
2068 (Wnoexcept-type): Enable by Wc++17-compat instead of Wc++1z-compat,
2069 change C++1z to C++17 in description.
2070 (std=c++1z, std=gnu++1z): Change from option to undocumented
2071 deprecated alias.
2072 (std=c++17, std=gnu++17): Change from undocumented alias to option.
2073 Adjust description.
2074 * c-common.h (enum cxx_dialect): Rename cxx1z to cxx17.
2075 * c-opts.c (set_std_cxx1z): Rename to ...
2076 (set_std_cxx17): ... this.
2077 (c_common_handle_option): Rename OPT_std_c__1z to OPT_std_c__17
2078 and OPT_std_gnu__1z to OPT_std_gnu__17. Adjust set_std_cxx1z
7365279f 2079 caller.
7b936140
JJ
2080 (c_common_post_options): Use cxx17 instead of cxx1z. Adjust
2081 comments.
2082
12263f13
L
20832017-09-12 H.J. Lu <hongjiu.lu@intel.com>
2084
2085 * c-attribs.c (common_handle_aligned_attribute): Don't warn
2086 function alignment if warn_if_not_aligned_p is true.
2087
6836632e
NS
20882017-09-12 Nathan Sidwell <nathan@acm.org>
2089
2090 * c-common.c (field_decl_cmp, resort_data, resort_field_decl_cmp,
2091 resort_sorted_fields): Move to c/c-decl.c.
2092 * c-common.h (field_decl_cmp, resort_sorted_fields): Delete.
2093 (struct sorted_fields_type): Move to c/c-lang.h.
2094
019bf9ad
JW
20952017-09-09 Jonathan Wakely <jwakely@redhat.com>
2096
2097 PR c++/81852
2098 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_threadsafe_static_init.
2099
bc7fe952
MP
21002017-09-04 Marek Polacek <polacek@redhat.com>
2101
2102 PR c/81783
2103 * c-warn.c (warn_tautological_bitwise_comparison): New function.
2104 (warn_tautological_cmp): Call it.
2105
ab20d992 21062017-09-01 Boris Kolpackov <boris@codesynthesis.com>
de7c2c6a
BK
2107
2108 * c-opts.c (c_common_finish): Write dependency information even if
2109 there are errors.
2110
d2e05fcb
JJ
21112017-09-01 Jakub Jelinek <jakub@redhat.com>
2112
2113 PR c/81887
2114 * c-pragma.c (omp_pragmas): Move "ordered" entry from here to ...
2115 (omp_pragmas_simd): ... here.
2116 * c-omp.c (c_finish_omp_ordered): If clauses isn't simd clause alone,
2117 create new clauses list containing just simd clause.
2118
18e2a8b8
RS
21192017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2120 Alan Hayward <alan.hayward@arm.com>
2121 David Sherwood <david.sherwood@arm.com>
2122
2123 * c-attribs.c (vector_mode_valid_p) Fold GET_MODE_INNER call
2124 into scalar_mode_supported_p call.
2125 (handle_mode_attribute): Update call to scalar_mode_supported_p.
2126
16d22000
RS
21272017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2128 Alan Hayward <alan.hayward@arm.com>
2129 David Sherwood <david.sherwood@arm.com>
2130
2131 * c-common.c (c_common_fixed_point_type_for_size): Use opt_scalar_mode
2132 for the mode iterator.
2133
b397965c
RS
21342017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2135 Alan Hayward <alan.hayward@arm.com>
2136 David Sherwood <david.sherwood@arm.com>
2137
2138 * c-lex.c (interpret_fixed): Use SCALAR_TYPE_MODE.
2139 * c-common.c (c_build_vec_perm_expr): Likewise.
2140
357b7604
RS
21412017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2142 Alan Hayward <alan.hayward@arm.com>
2143 David Sherwood <david.sherwood@arm.com>
2144
2145 * c-common.c (c_common_type_for_mode): Use as_a <scalar_int_mode>.
2146
e05c94ba
RS
21472017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2148 Alan Hayward <alan.hayward@arm.com>
2149 David Sherwood <david.sherwood@arm.com>
2150
2151 * c-attribs.c (handle_mode_attribute): Check for a scalar_int_mode
2152 before calling targetm.addr_space.valid_pointer_mode.
2153
5c20c4af
RS
21542017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2155 Alan Hayward <alan.hayward@arm.com>
2156 David Sherwood <david.sherwood@arm.com>
2157
2158 * c-cppbuiltin.c (c_cpp_builtins): Use opt_scalar_float_mode.
2159
c94843d2 21602017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
92a285c1
ML
2161 Alan Hayward <alan.hayward@arm.com>
2162 David Sherwood <david.sherwood@arm.com>
c94843d2
RS
2163
2164 * c-common.c (c_common_fixed_point_type_for_size): Use new mode
2165 iterators.
2166 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2167
4e10a5a7
RS
21682017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2169 Alan Hayward <alan.hayward@arm.com>
2170 David Sherwood <david.sherwood@arm.com>
2171
2172 * c-cppbuiltin.c (mode_has_fma): Prefix mode names with E_ in
2173 case statements.
2174
130fcab0
ML
21752017-08-29 Martin Liska <mliska@suse.cz>
2176
2177 PR other/39851
2178 * c-common.c (parse_optimize_options): Add argument to function
2179 call.
2180 * c-pragma.c (handle_pragma_diagnostic): Likewise.
2181
14e18d71
DM
21822017-08-24 David Malcolm <dmalcolm@redhat.com>
2183
2184 * c-lex.c (interpret_float): Use token location
2185 when building an EXCESS_PRECISION_EXPR.
2186
2f687306
DM
21872017-08-21 David Malcolm <dmalcolm@redhat.com>
2188
2189 * c-common.c (check_function_arguments): Add "arglogs" param; pass
2190 it to check_function_format.
2191 * c-common.h (check_function_arguments): Add vec<location_t> *
2192 param.
2193 (check_function_format): Likewise.
2194 * c-format.c (struct format_check_context): Add field "arglocs".
2195 (check_function_format): Add param "arglocs"; pass it to
2196 check_format_info.
ab20d992 2197 (check_format_info): Add param "arglocs"; use it to initialize
2f687306
DM
2198 new field of format_ctx.
2199 (check_format_arg): Pass format_ctx->arglocs to new param of
2200 check_format_info_main.
2201 (class argument_parser): New field "arglocs".
2202 (argument_parser::argument_parser): Add "arglocs_" param and use
2203 it to initialize new field.
2204 (argument_parser::check_argument_type): Pass new arglocs field to
2205 check_format_types.
2206 (check_format_info_main): Add param "arglocs", and use it when
2207 constructing arg_parser.
2208 (check_format_types): Add param "arglocs"; use it if non-NULL when
2209 !EXPR_HAS_LOCATION (cur_param) to get at location information.
2210
00aa1fa2
L
22112017-08-18 H.J. Lu <hongjiu.lu@intel.com>
2212
2213 PR c/53037
2214 * c-attribs.c (handle_warn_if_not_aligned_attribute): New.
2215 (c_common_attribute_table): Add warn_if_not_aligned.
2216 (handle_aligned_attribute): Renamed to ...
2217 (common_handle_aligned_attribute): Remove argument, name, and add
2218 argument, warn_if_not_aligned. Handle warn_if_not_aligned.
2219 (handle_aligned_attribute): New.
2220 * c.opt: Add -Wif-not-aligned and -Wpacked-not-aligned.
2221
27be025d
MS
22222017-08-14 Martin Sebor <msebor@redhat.com>
2223
2224 PR c/81117
2225 * c-attribs.c (c_common_attribute_table): Add nonstring entry.
2226 (handle_nonstring_attribute): New function.
2227
da67acb9
MS
22282017-08-14 Martin Sebor <msebor@redhat.com>
2229
2230 PR c/81117
2231 * c-format.h (T89_G): New macro.
2232 * c-format.c (local_gcall_ptr_node): New variable.
2233 (init_dynamic_diag_info): Initialize it.
2234
a8b522b4
ML
22352017-08-11 Martin Liska <mliska@suse.cz>
2236
2237 * c-opts.c (c_common_post_options): Replace ASM_OUTPUT_DEF with
2238 TARGET_SUPPORTS_ALIASES.
2239
32129a17
DM
22402017-08-10 David Malcolm <dmalcolm@redhat.com>
2241
2242 * c-common.c (c_parse_error): Add rich_location * param, using it
2243 rather implicitly using input_location.
2244 * c-common.h (c_parse_error): Add rich_location * param.
2245
30af3a2b
MP
22462017-08-09 Marek Polacek <polacek@redhat.com>
2247
2248 * c-common.c (pointer_int_sum): Use true/false instead of 1/0.
2249 (c_common_truthvalue_conversion): Likewise.
2250 * c-omp.c (c_finish_omp_atomic): Likewise.
2251 * c-common.h (build_binary_op): Update declaration.
2252
314e6352
ML
22532017-08-08 Martin Liska <mliska@suse.cz>
2254
2255 * c-ada-spec.c: Include header files.
2256 * c-ubsan.c: Likewise.
2257 * c-warn.c: Likewise.
2258
56b5041c
JJ
22592017-08-07 Jakub Jelinek <jakub@redhat.com>
2260
2261 PR c/69389
2262 * c-omp.c (c_finish_omp_atomic): Handle atomics on bitfields.
2263
db440138
EB
22642017-08-07 Eric Botcazou <ebotcazou@adacore.com>
2265
2266 * c-ada-spec.c (has_nontrivial_methods): Test for FUNCTION_DECL.
2267 (print_ada_methods): Likewise.
2268 (print_ada_declaration): Likewise.
2269
577eec56
ML
22702017-08-07 Martin Liska <mliska@suse.cz>
2271
2272 * array-notation-common.c: Add new includes.
2273 * c-format.c( handle_format_attribute): Canonicalize a format
2274 function name.
2275 * c-lex.c (c_common_has_attribute): Canonicalize name of an
2276 attribute.
2277 * c-pretty-print.c: Add new include.
2278
b854df3c
EB
22792017-08-05 Eric Botcazou <ebotcazou@adacore.com>
2280
2281 * c-ada-spec.c (has_static_fields): Look only into variables.
2282 (print_constructor): Add TYPE parameter and use it for the name.
2283 (print_destructor): Likewise.
2284 (print_ada_declaration): Adjust to new constructor/destructor names.
2285 Adjust calls to print_constructor and print_destructor.
2286 (print_ada_struct_decl): Do not test TREE_STATIC on FIELD_DECL.
2287 Look only into variables in the final loop.
2288
9f2cb25e
EB
22892017-08-01 Eric Botcazou <ebotcazou@adacore.com>
2290
2291 * c-ada-spec.c (has_static_fields): Look only into fields.
2292 (dump_generic_ada_node): Small tweak.
2293 (dump_nested_types): Look only into fields.
2294 (print_ada_declaration): Look only into methods. Small tweak.
2295 (print_ada_struct_decl): Look only into fields. Use DECL_VIRTUAL_P.
2296
f4bcd9eb
EB
22972017-08-01 Eric Botcazou <ebotcazou@adacore.com>
2298
2299 * c-ada-spec.c (print_generic_ada_decl): Pass correctly-typed constant.
2300 (dump_ada_function_declaration): Likewise.
2301 (dump_generic_ada_node): Likewise.
2302 (print_ada_declaration): Add support for const-qualified variables.
2303
f34ebeb2
ML
23042017-07-31 Martin Liska <mliska@suse.cz>
2305
2306 PR sanitize/81530
2307 * c-ubsan.c (ubsan_maybe_instrument_array_ref):
2308 Guard condition with flag_sanitize_p also with current_function_decl
2309 non-null equality.
2310 (ubsan_maybe_instrument_reference_or_call): Likewise.
2311
218e5d04
UB
23122017-07-30 Uros Bizjak <ubizjak@gmail.com>
2313
2314 * c-format.c (asm_fprintf_char_table): Add 'z' to format_chars.
2315
942047f2
EB
23162017-07-29 Eric Botcazou <ebotcazou@adacore.com>
2317
2318 * c-ada-spec.c (dump_generic_ada_node): Take into account signedness
2319 for enumeral types.
2320 (print_ada_declaration): Add missing guard for record types.
2321
a40ff0ae
JJ
23222017-07-27 Jakub Jelinek <jakub@redhat.com>
2323
2324 PR c/45784
2325 * c-omp.c (c_finish_omp_for): If the condition is wrapped in
2326 rhs of COMPOUND_EXPR(s), skip them and readd their lhs into
2327 new COMPOUND_EXPRs around the rhs of the comparison.
2328
06bd22f6
MP
23292017-07-27 Marek Polacek <polacek@redhat.com>
2330
2331 PR c/81417
2332 * c-warn.c (warn_for_sign_compare): Tweak the warning message. Print
2333 the types.
2334
036ea399
JJ
23352017-07-27 Jakub Jelinek <jakub@redhat.com>
2336
2337 * c-attribs.c (c_common_attribute_table): Add noipa attribute.
2338 (handle_noipa_attribute): New function.
2339
417ca011
TD
23402017-07-07 Torsten Duwe <duwe@suse.de>
2341
2342 * c-attribs.c (c_common_attribute_table): Add entry for
2343 "patchable_function_entry".
2344
5aaa8fb4
NS
23452017-07-20 Nathan Sidwell <nathan@acm.org>
2346
2347 Remove TYPE_METHODS.
2348 * c-ada-spec.c (is_tagged_type, has_nontrivial_methods,
2349 dump_ada_template, print_ada_methods,
2350 print_ada_declaration): Member fns are on TYPE_FIELDS.
2351
ff22eb12
NS
23522017-07-18 Nathan Sidwell <nathan@acm.org>
2353
2354 * c-warn.c (warn_for_memset): Use TYPE_{MIN,MAX}_VALUE.
2355
eea77d1f
DM
23562017-07-14 David Malcolm <dmalcolm@redhat.com>
2357
2358 * c-common.c (try_to_locate_new_include_insertion_point): New
2359 function.
2360 (per_file_includes_t): New typedef.
2361 (added_includes_t): New typedef.
2362 (added_includes): New variable.
2363 (maybe_add_include_fixit): New function.
2364 * c-common.h (maybe_add_include_fixit): New decl.
2365
281ac396
MS
23662017-07-10 Martin Sebor <msebor@redhat.com>
2367
2368 PR other/81345
2369 * c.opt (-Wstringop-overflow): Set defaults in LangEnabledBy.
2370
b6f43128
DM
23712017-07-06 David Malcolm <dmalcolm@redhat.com>
2372
2373 * c-common.c (selftest::c_family_tests): New.
2374 * c-common.h (selftest::run_c_tests): Move decl to c/c-lang.h.
2375 (selftest::c_family_tests): New decl.
2376
efbf55b0
MP
23772017-07-04 Marek Polacek <polacek@redhat.com>
2378
2379 PR c/81231
2380 * c-common.c (sync_resolve_size): Give error for pointers to incomplete
2381 types.
2382
6c86bd88
MP
23832017-07-04 Marek Polacek <polacek@redhat.com>
2384
2385 * c-warn.c (warn_if_unused_value): Remove WITH_CLEANUP_EXPR handling.
2386
17a7218b
ML
23872017-06-28 Martin Liska <mliska@suse.cz>
2388
2389 PR ipa/81128
2390 * c-attribs.c (handle_alias_ifunc_attribute): Append ifunc alias
2391 to a function declaration.
2392
63010089
ML
23932017-06-28 Martin Liska <mliska@suse.cz>
2394
2395 PR driver/79659
2396 * c.opt: Add IntegerRange to various options.
2397
3e2becc4
MP
23982017-06-26 Marek Polacek <polacek@redhat.com>
2399
2400 PR c/80116
2401 * c-common.h (warn_for_multistatement_macros): Declare.
2402 * c-warn.c: Include "c-family/c-indentation.h".
2403 (warn_for_multistatement_macros): New function.
2404 * c.opt (Wmultistatement-macros): New option.
2405 * c-indentation.c (guard_tinfo_to_string): No longer static.
2406 Change the parameter type to "enum rid". Handle RID_SWITCH.
2407 * c-indentation.h (guard_tinfo_to_string): Declare.
2408
2db9b7cd
MG
24092017-06-23 Marc Glisse <marc.glisse@inria.fr>
2410
2411 * c-common.c (c_common_nodes_and_builtins): Use builtin_structptr_types.
2412
c3684b7b
MS
24132017-06-15 Martin Sebor <msebor@redhat.com>
2414
2415 PR c++/80560
2416 * c.opt (-Wclass-memaccess): New option.
2417
e72c4afd
BK
24182017-06-14 Boris Kolpackov <boris@codesynthesis.com>
2419
2420 * c-opts.c (c_common_finish): Handle '-' special value to -MF.
2421
8a516588
MP
24222017-06-13 Marek Polacek <polacek@redhat.com>
2423
2424 PR objc/80949
2425 * c-warn.c (do_warn_duplicated_branches): Return if any of the
2426 branches is null.
2427
45b2222a
ML
24282017-06-13 Martin Liska <mliska@suse.cz>
2429
2430 PR sanitize/78204
2431 * c-attribs.c (add_no_sanitize_value): New function.
2432 (handle_no_sanitize_attribute): Likewise.
2433 (handle_no_sanitize_address_attribute): Use the function.
2434 (handle_no_sanitize_thread_attribute): New function.
2435 (handle_no_address_safety_analysis_attribute): Use
2436 add_no_sanitize_value.
2437 (handle_no_sanitize_undefined_attribute): Likewise.
2438 * c-common.h: Declare new functions.
2439 * c-ubsan.c (ubsan_instrument_division): Use sanitize_flags_p.
2440 (ubsan_instrument_shift): Likewise.
2441 (ubsan_instrument_bounds): Likewise.
2442 (ubsan_maybe_instrument_array_ref): Likewise.
2443 (ubsan_maybe_instrument_reference_or_call): Likewise.
2444
a01f151f
JM
24452017-06-11 Jason Merrill <jason@redhat.com>
2446
2447 * c-ada-spec.c, c-pragma.c: Use id_equal.
2448
3de4ac6d
MP
24492017-06-04 Marek Polacek <polacek@redhat.com>
2450
2451 PR c/80919
2452 * c-format.c (matching_type_p): Return false if any of the types
2453 requires structural equality.
2454
2474f48f
MS
24552017-06-02 Martin Sebor <msebor@redhat.com>
2456
2457 PR c/80892
2458 * c-warn.c (conversion_warning): Use -Wconversion for integer
2459 conversion and -Wfloat-conversion for floating one.
2460
40ffd95f
BE
24612017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2462
2463 * c.opt (Wsizeof-pointer-div): New warning option.
2464
3fa4634c
VR
24652017-06-01 Volker Reichelt <v.reichelt@netcologne.de>
2466
2467 * c.opt (Wcatch-value): New shortcut for Wcatch-value=1.
2468 (Wcatch-value=1): Enable by -Wall.
2469
f012c8ef
DM
24702017-05-30 David Malcolm <dmalcolm@redhat.com>
2471
2472 * c-format.c (gcc_cxxdiag_char_table): Add 'H' and 'I' to
2473 format_chars.
2474 * c.opt (fdiagnostics-show-template-tree): New option.
2475 (felide-type): New option.
2476
63dbcd13
VR
24772017-05-25 Volker Reichelt <v.reichelt@netcologne.de>
2478
2479 * c.opt (Wcatch-value=): New C++ warning flag.
2480
be136b5c
NS
24812017-05-24 Nathan Sidwell <nathan@acm.org>
2482
2483 * c=common.c (field_decl_cmp, resort_field_decl_cmp): Adjust T
2484 const casts to avoid warning.
2485
3cd211af
MS
24862017-05-24 Martin Sebor <msebor@redhat.com>
2487
2488 PR c/80731
2489 * c-common.h (unsafe_conversion_p): Add a function argument.
2490 * c-common.c (unsafe_conversion_p): Same.
2491 Add type names and values to diagnostics.
2492 (scalar_to_vector): Adjust.
2493 * c-warn.c (constant_expression_error): Add a function argument.
2494 Add type names and values to diagnostics.
2495 (conversion_warning): Add a function argument.
2496 Add type names and values to diagnostics.
2497 (warnings_for_convert_and_check): Same.
2498
1ff7be5a
JM
24992017-05-19 Jason Merrill <jason@redhat.com>
2500
2501 * c-warn.c (match_case_to_enum_1): Don't warn about enums with no
2502 enumerators.
2503
ff502317
BE
25042017-05-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
2505
2506 * c-format.c (locus): Move out of function scope,
2507 add GTY attribute.
2508
2a8a8d7b
NS
25092017-05-19 Nathan Sidwell <nathan@acm.org>
2510
2511 * c-opts.c (class_dump_file, class_dump_flags): Delete.
2512 (c_common_parse_file): Remove class dump handling.
2513 (get_dump_info): Likewise.
2514
39aac208
RB
25152017-05-19 Richard Biener <rguenther@suse.de>
2516
2517 PR c++/80593
2518 * c-warn.c (strict_aliasing_warning): Do not warn for accesses
2519 to alias-set zero memory.
2520
6ecd2339
BE
25212017-05-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
2522
2523 * c-format.c (local_tree_type_node): Add GTY attribute.
2524
6574d78e
MP
25252017-05-18 Marek Polacek <polacek@redhat.com>
2526
2527 * c-common.c (c_common_type_for_size): Use NULL_TREE instead of 0.
2528 (c_common_fixed_point_type_for_size): Likewise.
2529 (c_common_type_for_mode): Likewise.
2530 (shorten_compare): Likewise.
2531 (c_promoting_integer_type_p): Use false/true instead of 0/1.
2532 * c-pragma.c (maybe_apply_renaming_pragma): Use NULL_TREE instead of 0.
2533
e3455240
MP
25342017-05-18 Marek Polacek <polacek@redhat.com>
2535
2536 * c-common.c (self_promoting_args_p): Change the return type to bool.
2537 Use false/true instead of 0/1.
2538 * c-common.h (self_promoting_args_p): Update.
2539
3fa8871b
MP
25402017-05-17 Marek Polacek <polacek@redhat.com>
2541
2542 * c-common.c: Use NULL_TREE instead of 0 where appropriate.
2543 * c-warn.c: Likewise.
2544
b42cc3ca
VV
25452017-05-17 Ville Voutilainen <ville.voutilainen@gmail.com>
2546
2547 Implement new C++ intrinsics __is_assignable and __is_constructible.
2548 * c-common.c (__is_assignable, __is_constructible): New.
2549 * c-common.h (RID_IS_ASSIGNABLE, RID_IS_CONSTRUCTIBLE): Likewise.
2550
1a817418
ML
25512017-05-17 Martin Liska <mliska@suse.cz>
2552
2553 * c-common.h: Introduce dump_flags_t type and
2554 use it instead of int type.
2555 * c-gimplify.c (c_genericize): Likewise.
2556 * c-opts.c: Likewise.
2557
b2fa0a8b
MP
25582017-05-17 Marek Polacek <polacek@redhat.com>
2559
2560 * c-common.c (c_save_expr): Remove.
2561 (c_common_truthvalue_conversion): Remove a call to c_save_expr.
2562 * c-common.h (c_save_expr): Remove declaration.
2563
31c2d57d
VR
25642017-05-09 Volker Reichelt <v.reichelt@netcologne.de>
2565
2566 PR c/35441
2567 * c-pretty-print.c (c_pretty_printer::expression): Handle MAX_EXPR,
2568 MIN_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, LROTATE_EXPR, RROTATE_EXPR.
2569 (c_pretty_printer::postfix_expression): Handle MAX_EXPR, MIN_EXPR.
2570 (c_pretty_printer::multiplicative_expression): Handle EXACT_DIV_EXPR,
2571 RDIV_EXPR.
2572 (pp_c_shift_expression): Handle LROTATE_EXPR, RROTATE_EXPR.
2573
684f84de
MP
25742017-05-09 Marek Polacek <polacek@redhat.com>
2575
2576 PR c/80525
2577 * c-warn.c (unwrap_c_maybe_const): New.
2578 (warn_logical_operator): Call it.
2579
641da50a
NS
25802017-05-09 Nathan Sidwell <nathan@acm.org>
2581
2582 * c-common.c (c_register_builtin_type): Use pushdecl lang_hook.
2583 * c-common.h (pushdecl_top_level, pushdecl): Don't declare here.
2584
631238ac
MS
25852017-05-08 Martin Sebor <msebor@redhat.com>
2586
2587 PR translation/80280
2588 * c-format.h (struct format_flag_spec): Add new member.
2589 (T89_T): New macro.
2590 * c-format.c (local_tree_type_node): New global.
2591 (printf_flag_specs, asm_fprintf_flag_spec): Initialize new data.
2592 (gcc_diag_flag_specs, scanf_flag_specs, strftime_flag_specs): Ditto.
2593 (strfmon_flag_specs): Likewise.
2594 (gcc_diag_char_table, gcc_cdiag_char_table): Split up specifiers
2595 with distinct quoting properties.
2596 (gcc_tdiag_char_table, gcc_cxxdiag_char_table): Same.
2597 (flag_chars_t::validate): Add argument and handle bad quoting.
2598 (check_format_info_main): Handle quoting problems.
2599 (init_dynamic_diag_info): Simplify.
2600
49f0c04c
JM
26012017-05-08 Jason Merrill <jason@redhat.com>
2602
2603 * c-opts.c (c_common_post_options): Update defaults for
2604 flag_abi_version and flag_abi_compat_version.
2605
56d35585
DM
26062017-05-05 David Malcolm <dmalcolm@redhat.com>
2607
2608 * c-common.c (c_cpp_error): Replace report_diagnostic
2609 with diagnostic_report_diagnostic.
2610
0f2c4a8f
MS
26112017-05-04 Martin Sebor <msebor@redhat.com>
2612
2613 PR translation/80280
2614 * c-attribs.c (handle_alias_ifunc_attribute): Quote a %D directive.
2615 (handle_weakref_attribute): Same.
2616
6fe63fb4
NS
26172017-05-03 Nathan Sidwell <nathan@acm.org>
2618
2619 Canonicalize canonical type hashing
2620 * c-common.c (complete_array_type): Use type_hash_canon.
2621
815d9cc6
XR
26222017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
2623
92a285c1 2624 PR c++/80038
815d9cc6
XR
2625 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): Remove
2626 prototype.
2627 (cilk_install_body_pedigree_operations): Likewise.
2628 * cilk.c (cilk_set_spawn_marker): Mark functions that should be
2629 detatched.
2630 (cilk_gimplify_call_params_in_spawned_fn): Remove.
2631 (cilk_install_body_pedigree_operations): Likewise.
2632 (gimplify_cilk_spawn): Add EXPR_STMT and CLEANUP_POINT_EXPR
2633 unwrapping.
2634
f8a36447
JJ
26352017-04-27 Jakub Jelinek <jakub@redhat.com>
2636
2637 PR c++/80534
2638 * c-common.c (complete_array_type): Only hash TYPE_TYPELESS_STORAGE
2639 flag on non-aggregate element types.
2640
7c145456
BE
26412017-04-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
2642
2643 * c-common.c (c_type_hasher, type_hash_table): Remove.
2644 (c_common_get_alias_set): Remove unreachable code.
2645 * c-opts.c (c_common_post_options): Make sure cc1 takes only one file.
2646
c3cbcd45
VR
26472017-04-20 Volker Reichelt <v.reichelt@netcologne.de>
2648
2649 * c.opt (Wextra-semi): New C++ warning flag.
2650
8a59d466
JJ
26512017-04-20 Jakub Jelinek <jakub@redhat.com>
2652
2653 PR middle-end/80423
2654 * c-common.c (complete_array_type): Preserve TYPE_TYPELESS_STORAGE.
2655
8487c9a5
JJ
26562017-04-18 Jakub Jelinek <jakub@redhat.com>
2657
2658 PR middle-end/79788
2659 PR middle-end/80375
2660 * c-common.c (c_common_type_for_mode): Don't handle
2661 widest_*_literal_type_node here.
2662 c_common_signed_or_unsigned_type): Likewise.
2663 (c_common_nodes_and_builtins): Set widest_*_literal_type_node
2664 to *intTI_type_node or *intDI_type_node depending on whether
2665 TImode is supported by the target or not.
2666
3ee0fb02
ML
26672017-04-10 Martin Liska <mliska@suse.cz>
2668
2669 PR sanitizer/80350
2670 * c-ubsan.c (ubsan_instrument_shift): Evaluate RHS before
2671 doing an UBSAN check.
2672
5764ee3c
JW
26732017-04-03 Jonathan Wakely <jwakely@redhat.com>
2674
2675 * c-warn.c (do_warn_double_promotion): Fix typo in comment.
2676
6f3af356
JJ
26772017-03-31 Jakub Jelinek <jakub@redhat.com>
2678
2679 PR c++/79572
2680 * c-ubsan.h (ubsan_maybe_instrument_reference): Change argument to
2681 tree *.
2682 * c-ubsan.c (ubsan_maybe_instrument_reference): Likewise. Handle
2683 not just NOP_EXPR to REFERENCE_TYPE, but also INTEGER_CST with
2684 REFERENCE_TYPE.
2685
f6a7a9d5
DM
26862017-03-31 David Malcolm <dmalcolm@redhat.com>
2687
2688 PR documentation/78732
2689 * c.opt (Wendif-labels): Fix description to refer to
2690 #else rather than #elif.
2691
af88f557
JJ
26922017-03-31 Jakub Jelinek <jakub@redhat.com>
2693
2694 PR libstdc++/80251
2695 * c-common.h (enum rid): Add RID_IS_AGGREGATE.
2696 * c-common.c (c_common_reswords): Add __is_aggregate trait.
2697
a9e4a1a5
JJ
26982017-03-27 Jakub Jelinek <jakub@redhat.com>
2699
2700 PR middle-end/80162
2701 * c-common.c (c_common_mark_addressable_vec): Don't set
2702 TREE_ADDRESSABLE on DECL_HARD_REGISTER.
2703
3f01b620
MS
27042017-03-21 Martin Sebor <msebor@redhat.com>
2705
2706 PR c++/79548
2707 * c-common.c (set_underlying_type): Mark type used only when
2708 original del is declared unused.
2709
2f6f187a
DM
27102017-03-10 David Malcolm <dmalcolm@redhat.com>
2711
2712 PR translation/79848
2713 * c-format.c (check_format_string): Simplify uses of "%<%s%>" to
2714 "%qs".
2715
a02fa805
DM
27162017-03-10 David Malcolm <dmalcolm@redhat.com>
2717
2718 PR c/79921
2719 * c-indentation.c (warn_for_misleading_indentation): Remove parens
2720 from inform's message, so that xgettext can locate it.
2721
822a132c
MP
27222017-03-09 Marek Polacek <polacek@redhat.com>
2723
2724 PR c++/79962
2725 PR c++/79984
2726 * c-attribs.c (handle_nonnull_attribute): Save the result of default
2727 conversion to the attribute list.
2728
bba81f1c
ML
27292017-03-09 Martin Liska <mliska@suse.cz>
2730
2731 * c-ada-spec.c (macro_length): Increment value instead of a pointer.
2732
108154ff
JM
27332017-03-03 Jason Merrill <jason@redhat.com>
2734
2735 * c.opt (Wnoexcept-type): New.
2736
eb0e7c34
RB
27372017-03-02 Richard Biener <rguenther@suse.de>
2738
2739 PR c/79756
2740 * c-common.c (c_common_mark_addressable_vec): Look through
2741 C_MAYBE_CONST_EXPR.
2742
9453ba0a
ML
27432017-02-28 Martin Liska <mliska@suse.cz>
2744
2745 * c.opt: Replace space with tabular for options of <number>
2746 type.
2747
6a825afe
ML
27482017-02-28 Martin Liska <mliska@suse.cz>
2749
2750 * c.opt: Fix --help=option -Q for options which are of
2751 an enum type.
2752
4227c9ad
JJ
27532017-02-24 Jakub Jelinek <jakub@redhat.com>
2754
2755 PR c++/79588
2756 * c-common.c (check_function_restrict): New function.
2757 (check_function_arguments): Add FNDECL argument. Call
2758 check_function_restrict if -Wrestrict.
2759 * c-warn.c (warn_for_restrict): Remove ARGS argument, add ARGARRAY
2760 and NARGS. Use auto_vec for ARG_POSITIONS, simplify.
2761 * c-common.h (check_function_arguments): Add FNDECL argument.
2762 (warn_for_restrict): Remove ARGS argument, add ARGARRAY and NARGS.
2763
59909673
EB
27642017-02-24 Eric Botcazou <ebotcazou@adacore.com>
2765
2766 * c-ada-spec.c (dump_ada_function_declaration): Add comment about the
2767 treatment of parameters with pointer-to-tagged type and tidy up.
2768 (print_ada_methods): Remove the special treatment of C++ static member
2769 functions.
2770
54dcd526
ML
27712017-02-22 Martin Liska <mliska@suse.cz>
2772
2773 * c.opt: Replace inequality signs with square brackets
2774 for -Wnornalized.
2775
00bc9de3
JJ
27762017-02-21 Jakub Jelinek <jakub@redhat.com>
2777
2778 PR c++/79641
2779 * c-attribs.c (handle_mode_attribute): Use build_qualified_type to
2780 preserve quals.
2781
97fcf744
JM
27822017-02-17 Joseph Myers <joseph@codesourcery.com>
2783
2784 * c-cppbuiltin.c (builtin_define_float_constants): Define
2785 __DECIMAL_DIG__ to the value for long double.
2786
c7545f1c
MP
27872017-02-15 Marek Polacek <polacek@redhat.com>
2788
2789 PR c/79515
2790 * c-warn.c (do_warn_double_promotion): Don't warn if an invalid
2791 conversion has occured.
2792
c2e84327
DM
27932017-01-24 David Malcolm <dmalcolm@redhat.com>
2794
2795 * c-common.c (c_common_reswords): Add "__RTL".
2796 * c-common.h (enum rid): Add RID_RTL.
2797
2ebd93e1
MP
27982017-01-20 Marek Polacek <polacek@redhat.com>
2799
2800 PR c/64279
2801 * c-common.h (do_warn_duplicated_branches_r): Declare.
2802 * c-gimplify.c (c_genericize): Walk the function tree calling
2803 do_warn_duplicated_branches_r.
2804 * c-warn.c (expr_from_macro_expansion_r): New.
2805 (do_warn_duplicated_branches): New.
2806 (do_warn_duplicated_branches_r): New.
2807 * c.opt (Wduplicated-branches): New option.
2808
0d80ab91
DM
28092017-01-17 David Malcolm <dmalcolm@redhat.com>
2810
2811 PR c++/71497
2812 * c-indentation.c (warn_for_misleading_indentation): Use the past
2813 subjunctive in the note.
2814
7f991c36
AH
28152017-01-17 Aldy Hernandez <aldyh@redhat.com>
2816
2817 PR c/79116
2818 * array-notation-common.c (cilkplus_extract_an_triplets): Convert
2819 start type to integer_type.
2820
1c70261c
JJ
28212017-01-16 Jakub Jelinek <jakub@redhat.com>
2822
2823 PR driver/49726
2824 * c.opt (gen-decls): Add Driver flag.
2825
1ddca3f3
PC
28262017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
2827
2828 Revert:
2829 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
2830
2831 PR c++/71737
2832 * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
2833
7d2f3f1d
PC
28342017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
2835
2836 PR c++/71737
2837 * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
2838
bce6f760
MS
28392017-01-12 Martin Sebor <msebor@redhat.com>
2840
2841 (-Wformat-overflow): ...to this.
2842
bf5fbf46
MS
28432017-01-11 Martin Sebor <msebor@redhat.com>
2844
2845 PR c/78768
2846 * c.opt (-Walloca-larger-than, -Wformat-length, -Wformat-truncation):
2847 Also enable for LTO.
2848
e363df3f
JM
28492017-01-10 Jason Merrill <jason@redhat.com>
2850
2851 Implement P0195R2, C++17 variadic using.
2852 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_variadic_using.
2853
bd2c6270
JJ
28542017-01-09 Jakub Jelinek <jakub@redhat.com>
2855
2856 PR translation/79019
2857 PR translation/79020
2858 * c.opt (Wnormalized=): Fix typo in description.
2859
efcc8d38
MS
28602017-01-08 Martin Sebor <msebor@redhat.com>
2861
2862 PR middle-end/77708
2863 * c.opt (-Wformat-truncation): New option.
2864
ab20d992 28652017-01-06 Alexandre Oliva <aoliva@redhat.com>
435f3f7a
AO
2866
2867 * c-pretty-print.c (pp_c_tree_decl_identifier): Convert 16-bit
2868 value to unsigned short to fit in 4 hex digits without
2869 warnings.
2870
4e89adf9
EB
28712017-01-05 Eric Botcazou <ebotcazou@adacore.com>
2872
2873 * c.opt (fsso-struct): Add 'native' value.
2874
cd445b54
ML
28752017-01-05 Martin Liska <mliska@suse.cz>
2876
2877 PR pch/78970
2878 * c-opts.c (c_common_post_options): Reject '-' filename for a precompiled
2879 header.
2880
a9342885
MP
28812017-01-04 Marek Polacek <polacek@redhat.com>
2882
2883 PR c++/64767
2884 * c.opt (Wpointer-compare): New option.
2885
fc73e60c
JJ
28862017-01-04 Jakub Jelinek <jakub@redhat.com>
2887
2888 PR driver/78957
2889 * c.opt (fsso-struct=): Add RejectNegative.
2890
cbe34bb5
JJ
28912017-01-01 Jakub Jelinek <jakub@redhat.com>
2892
2893 Update copyright years.
2894
d4a6c0ea
ML
28952016-12-29 Martin Liska <mliska@suse.cz>
2896
2897 PR c/78933
2898 * c.opt (strong-eval-order): Add RejectNegative keyword.
2899
67a5ad7c
JM
29002016-12-22 Jason Merrill <jason@redhat.com>
2901
2902 Implement P0522R0, matching of template template arguments.
2903 * c-cppbuiltin.c (c_cpp_builtins): Define
2904 __cpp_template_template_args.
2905
0dba7960
JJ
29062016-12-21 Jakub Jelinek <jakub@redhat.com>
2907
2908 PR bootstrap/78817
2909 * c-common.c (struct nonnull_arg_ctx): New type.
2910 (check_function_nonnull): Return bool instead of void. Use
2911 nonnull_arg_ctx as context rather than just location_t.
2912 (check_nonnull_arg): Adjust for the new context type, set
2913 warned_p to true if a warning has been diagnosed.
2914 (check_function_arguments): Return bool instead of void.
2915 * c-common.h (check_function_arguments): Adjust prototype.
2916
31bfc9b9
JM
29172016-12-21 Jason Merrill <jason@redhat.com>
2918
2919 * c.opt (-fnew-ttp-matching): New flag.
2920 * c-opts.c (c_common_post_options): Default on if -std=c++1z.
2921
629b3d75
MJ
29222016-12-14 Martin Jambor <mjambor@suse.cz>
2923
2924 * c-omp.c: Include omp-general.h instead of omp-low.h.
2925 (c_finish_oacc_wait): Adjusted call to find_omp_clause to use its new
2926 name.
2927
474da67e
MS
29282016-12-14 Martin Sebor <msebor@redhat.com>
2929
2930 PR c/17308
2931 * c-common.c (check_nonnull_arg): Disable when optimization
2932 is enabled.
2933
fe366b87
MP
29342016-12-12 Marek Polacek <polacek@redhat.com>
2935
2936 PR c++/78647
2937 * c-common.c (attribute_fallthrough_p): Return false for
2938 error_mark_node.
2939
8bd9f164
MS
29402016-12-08 Martin Sebor <msebor@redhat.com>
2941
2942 PR c/78284
2943 * c.opt (-Walloc-zero, -Walloc-size-larger-than): New options.
2944
060162e0
MS
29452016-12-08 Martin Sebor <msebor@redhat.com>
2946
2947 PR c/78165
92a285c1
ML
2948 * c-pretty-print (pp_c_integer_constant): Avoid formatting type
2949 suffix.
060162e0 2950
ee92e7ba
MS
29512016-12-07 Martin Sebor <msebor@redhat.com>
2952
2953 PR c/53562
2954 PR middle-end/77784
2955 PR middle-end/78149
2956 PR middle-end/78138
2957 * c.opt (-Wstringop-overflow): New option.
2958
84b0769e
MO
29592016-12-02 Maxim Ostapenko <m.ostapenko@samsung.com>
2960
2961 * c-attribs.c (asan odr indicator): New attribute.
2962 (handle_asan_odr_indicator_attribute): New function.
2963
7fa6a965
PK
29642016-11-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2965
2966 * c-common.c (c_common_nodes_and_builtins): Remove initialization of
2967 ptrdiff_type_node;
2968
56d8ffc1
JG
29692016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2970
2971 * c-common.c (excess_precision_mode_join): New.
2972 (c_ts18661_flt_eval_method): New.
2973 (c_c11_flt_eval_method): Likewise.
2974 (c_flt_eval_method): Likewise.
2975 * c-common.h (excess_precision_mode_join): New.
2976 (c_flt_eval_method): Likewise.
2977 * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): New.
2978 (cpp_iec_559_value): Call it.
2979 (c_cpp_builtins): Modify logic for __LIBGCC_*_EXCESS_PRECISION__,
2980 call c_flt_eval_method to set __FLT_EVAL_METHOD__ and
2981 __FLT_EVAL_METHOD_TS_18661_3__.
2982
04f0fcf7
JG
29832016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2984
2985 * c-opts.c (c_common_post_options): Add logic to handle the default
2986 case for -fpermitted-flt-eval-methods.
2987
fb2675cb
PB
29882016-11-23 Paolo Bonzini <bonzini@gnu.org>
2989
2990 * c.opt (Wexpansion-to-defined): New.
2991
ec1c5694
JJ
29922016-11-23 Jakub Jelinek <jakub@redhat.com>
2993
2994 PR target/78451
2995 * c-pragma.c (handle_pragma_target): Don't replace
2996 current_target_pragma, but chainon the new args to the current one.
2997
730c9e75
NS
29982016-11-22 Nathan Sidwell <nathan@acm.org>
2999
3000 * array-notation-common.c (cilkplus_extract_an_trplets): Fix
cacd29be 3001 indentation and formatting.
730c9e75 3002
89990732
MS
30032016-11-21 Martin Sebor <msebor@redhat.com>
3004
3005 * c.opt (-fprintf-return-value): Enable by default.
3006
48330c93
BE
30072016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
3008
3009 PR c++/71973
3010 * c.opt (-Wbuiltin-declaration-mismatch): New warning.
3011 * c-common.c (c_common_nodes_and_builtins): Initialize
3012 const_tm_ptr_type_node.
3013
0d939c95
MP
30142016-11-16 Marek Polacek <polacek@redhat.com>
3015
3016 PR c/78285
3017 * c-common.c (c_add_case_label): Turn error_at calls into inform.
3018
8e745a17
JJ
30192016-11-14 Jakub Jelinek <jakub@redhat.com>
3020
3021 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_structured_bindings.
3022
1ee62b92 30232016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
8e745a17
JJ
3024 Richard Biener <rguenther@suse.de>
3025
3026 * c-common.h (c_common_resword): Add RID_GIMPLE, RID_PHI types.
3027 * c-common.h (enum rid): Add RID_GIMPLE, RID_PHI.
3028 * c.opt (fgimple): New option.
1ee62b92 3029
22b15758
UB
30302016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3031
3032 PR c/35503
3033 * c-common.h (warn_for_restrict): Declare.
3034 * c-warn.c: Include gcc-rich-location.h.
3035 (warn_for_restrict): New function.
3036 * c-format.c (gcc_tdiag_char_table): Add entry for "Z" specifier.
3037 (gcc_cdiag_char_table): Likewise.
3038 (gcc_cxxdiag_char_table): Likewise.
3039 * c.opt (Wrestrict): New option.
3040
4be719cd
EB
30412016-11-13 Eric Botcazou <ebotcazou@adacore.com>
3042
3043 * c-ada-spec.c (print_ada_declaration): For typedef declarations, look
3044 for nested types only if the type is a record or union and dump SLOC.
3045
4a826ca6
JM
30462016-11-09 Jason Merrill <jason@redhat.com>
3047
3048 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_template_auto.
3049
2e955d50
JJ
30502016-11-09 Jakub Jelinek <jakub@redhat.com>
3051
3052 * c-ubsan.c (ubsan_instrument_shift): Handle split
3053 -fsanitize=shift-base and -fsanitize=shift-exponent.
3054
51dc6603
JM
30552016-11-07 Jason Merrill <jason@redhat.com>
3056
3057 * c.opt (Wc++1z-compat): New.
3058 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_noexcept_function_type.
3059
6dc4a604
ML
30602016-11-07 Martin Liska <mliska@suse.cz>
3061
3062 * c-warn.c (warn_for_unused_label): Save all labels used
3063 in goto or in &label.
3064
b302001e
JM
30652016-11-03 Jason Merrill <jason@redhat.com>
3066
3067 * c-cppbuiltin.c (c_cpp_builtins): Correct
3068 __cpp_inheriting_constructors.
3069
31f7f784
JM
30702016-11-01 Jason Merrill <jason@redhat.com>
3071
2bc78e3c
JM
3072 * c-cppbuiltin.c (c_cpp_builtins): Update
3073 __cpp_inheriting_constructors.
3074
31f7f784
JM
3075 * c.opt (-fnew-inheriting-ctors): New.
3076 * c-opts.c: Default to on for ABI 11+.
3077
dcb466ec
JJ
30782016-10-31 Jakub Jelinek <jakub@redhat.com>
3079
3080 PR c++/77948
3081 * c.opt (fext-numeric-literals): Add Var and Init.
3082 * c-opts.c (c_common_handle_option): Don't clear
3083 cpp_opts->ext_numeric_literals for -std=c++{11,14,1z}.
3084 (c_common_post_options): Clear it here if not set
3085 explicitly.
3086
52e1b91e
AH
30872016-10-28 Aldy Hernandez <aldyh@redhat.com>
3088
3089 PR debug/77773
3090 * c-pretty-print.c (simple_type_specifier): Do not dereference `t'
3091 if NULL.
3092
e16f1cc7
JJ
30932016-10-25 Jakub Jelinek <jakub@redhat.com>
3094
3095 * c-common.h (enum rid): Add RID_BUILTIN_LAUNDER.
3096 * c-common.c (c_common_reswords): Add __builtin_launder.
3097
f8348061
BE
30982016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
3099
3100 * c-common.c (c_common_truthvalue_conversion): Warn for
3101 multiplications in boolean context. Fix the quoting of '<<' and '<'
3102 in the shift warning.
3103
eff89e01
BE
31042016-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
3105
3106 * c-common.c (c_common_truthvalue_conversion): Fix the comment.
3107
24bc7bf4
JM
31082016-10-20 Jason Merrill <jason@redhat.com>
3109
3110 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_concepts value.
3111
4c712374
BE
31122016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
3113
3114 * c-common.c (c_common_truthvalue_conversion): Warn only for signed
3115 integer shift ops in boolean context.
3116
31172016-10-18 Aldy Hernandez <aldyh@redhat.com>
adc577c5
AH
3118
3119 * c.opt (Walloca): New.
3120 (Walloca-larger-than=): New.
3121 (Wvla-larger-than=): New.
3122
8fa18c06
MP
31232016-10-17 Marek Polacek <polacek@redhat.com>
3124
3125 * c-warn.c (find_array_ref_with_const_idx_r): Remove parameter names.
3126 Return immediately when finding a match.
3127 (warn_tautological_cmp): Remove a boolean variable that is no longer
3128 needed.
3129
b12b1915
MP
31302016-10-17 Marek Polacek <polacek@redhat.com>
3131
3132 * c-attribs.c: New file.
3133 * c-common.c: Move attributes handling to c-attribs.c.
3134 (get_nonnull_operand): No longer static.
3135 * c-common.h: Move the declarations from c-attribs.c to its own section.
3136
2045acd9
JM
31372016-10-14 Jason Merrill <jason@redhat.com>
3138
3139 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_aggregate_bases
3140 and __cpp_deduction_guides.
3141
14a2c9aa
JM
31422016-10-13 Jason Merrill <jason@redhat.com>
3143
3144 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_inline_variables.
3145
4d0cdd0c
TP
31462016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
3147
3148 * c-cppbuiltin.c: Include memmodel.h.
3149 * c-opts.c: Likewise.
3150 * c-pragma.c: Likewise.
3151 * c-warn.c: Likewise.
3152
70f6d5e1
JJ
31532016-10-12 Jakub Jelinek <jakub@redhat.com>
3154
3155 * c.opt (Wextra): Add as C/C++/ObjC/ObjC++ option.
3156 (Wimplicit-fallthrough=): Enable for these languages by -Wextra.
3157 * c-opts.c (sanitize_cpp_opts): Initialize
3158 cpp_opts->cpp_warn_implicit_fallthrough.
3159
78f61294
MP
31602016-10-11 Marek Polacek <polacek@redhat.com>
3161
3162 * c-common.c (warning_candidate_p): Change the return type to bool
3163 and return true/false instead of 1/0.
3164 (vector_mode_valid_p): Likewise.
3165
038b5cc0
MP
31662016-10-11 Marek Polacek <polacek@redhat.com>
3167
3168 * c-common.c (fold_for_warn): No longer static.
3169 (bool_promoted_to_int_p): Likewise.
3170 (c_common_get_narrower): Likewise.
3171 (constant_expression_warning): Move to c-warn.c.
3172 (constant_expression_error): Likewise.
3173 (overflow_warning): Likewise.
3174 (warn_logical_operator): Likewise.
3175 (find_array_ref_with_const_idx_r): Likewise.
3176 (warn_tautological_cmp): Likewise.
3177 (expr_has_boolean_operands_p): Likewise.
3178 (warn_logical_not_parentheses): Likewise.
3179 (warn_if_unused_value): Likewise.
3180 (strict_aliasing_warning): Likewise.
3181 (sizeof_pointer_memaccess_warning): Likewise.
3182 (check_main_parameter_types): Likewise.
3183 (conversion_warning): Likewise.
3184 (warnings_for_convert_and_check): Likewise.
3185 (match_case_to_enum_1): Likewise.
3186 (match_case_to_enum): Likewise.
3187 (c_do_switch_warnings): Likewise.
3188 (warn_for_omitted_condop): Likewise.
3189 (readonly_error): Likewise.
3190 (lvalue_error): Likewise.
3191 (invalid_indirection_error): Likewise.
3192 (warn_array_subscript_with_type_char): Likewise.
3193 (warn_about_parentheses): Likewise.
3194 (warn_for_unused_label): Likewise.
3195 (warn_for_div_by_zero): Likewise.
3196 (warn_for_memset): Likewise.
3197 (warn_for_sign_compare): Likewise.
3198 (do_warn_double_promotion): Likewise.
3199 (do_warn_unused_parameter): Likewise.
3200 (record_locally_defined_typedef): Likewise.
3201 (maybe_record_typedef_use): Likewise.
3202 (maybe_warn_unused_local_typedefs): Likewise.
3203 (maybe_warn_bool_compare): Likewise.
3204 (maybe_warn_shift_overflow): Likewise.
3205 (warn_duplicated_cond_add_or_warn): Likewise.
3206 (diagnose_mismatched_attributes): Likewise.
3207 * c-common.h: Move the declarations from c-warn.c to its own section.
3208 * c-warn.c: New file.
3209
627be19f
JM
32102016-10-08 Jason Merrill <jason@redhat.com>
3211
3212 * c-common.c (c_common_truthvalue_conversion): Don't distribute
3213 into COND_EXPR in C++.
3214
7bad794a
JJ
32152016-10-08 Jakub Jelinek <jakub@redhat.com>
3216
3217 * c-lex.c (c_lex_with_flags) <case CPP_COMMENT>: For CPP_COMMENT
3218 token with PREV_FALLTHROUGH, skip all following CPP_PADDING and
3219 CPP_COMMENT tokens and set add_flags to PREV_FALLTHROUGH afterwards.
3220
be845b04
JJ
32212016-10-07 Jakub Jelinek <jakub@redhat.com>
3222
3223 Implement LWG2296 helper intrinsic
3224 * c-common.h (enum rid): Add RID_ADDRESSOF.
3225 * c-common.c (c_common_reswords): Add __builtin_addressof.
3226
c09c4992
BE
32272016-10-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
3228
3229 PR c++/77700
3230 * c-common.c (c_common_truthvalue_conversion): Warn also for
3231 suspicious enum values in boolean context.
3232
342cfb3e
JJ
32332016-10-06 Jakub Jelinek <jakub@redhat.com>
3234
3235 Implement P0258R2 - helper for C++17
3236 std::has_unique_object_representations trait
3237 * c-common.h (enum rid): Add RID_HAS_UNIQUE_OBJ_REPRESENTATIONS.
3238 * c-common.c (c_common_reswords): Add
3239 __has_unique_object_representations.
3240
2e69f143
JJ
32412016-10-05 Jakub Jelinek <jakub@redhat.com>
3242
3243 PR sanitizer/66343
3244 * c-ubsan.c (ubsan_instrument_return): Don't call
3245 initialize_sanitizer_builtins here.
3246
700fff34
BE
32472016-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
3248
3249 * c-common.c (c_common_truthvalue_conversion): Warn also for suspicious
3250 conditional expression in boolean context when only one arm is
3251 non-boolean.
3252
9563bfcd
JJ
32532016-10-05 Jakub Jelinek <jakub@redhat.com>
3254
04a32443
JJ
3255 PR sanitizer/77823
3256 * c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0
3257 is not integral.
3258
9563bfcd
JJ
3259 * c-common.c (c_common_reswords): Update comment for C++11.
3260
f1644724
JM
32612016-10-04 Jason Merrill <jason@redhat.com>
3262
3263 * c-common.c (make_tree_vector_from_ctor): New.
3264 * c-common.h: Declare it.
3265
5a79befb
JJ
32662016-10-04 Jakub Jelinek <jakub@redhat.com>
3267
3268 * c-cppbuiltin.c (c_cpp_builtins): Don't define
3269 __LIBGCC_JCR_SECTION_NAME__.
3270
1633d3b9
BE
32712016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
3272
3273 * c-common.c (c_common_truthvalue_conversion): Warn for suspicious
3274 left shift in boolean context.
3275
a2c6e7f2
JJ
32762016-09-29 Jakub Jelinek <jakub@redhat.com>
3277
3278 Implement P0001R1 - C++17 removal of register storage class specifier
3279 * c.opt (Wregister): New warning.
3280 * c-opts.c (c_common_post_options): Enable -Wregister by
3281 default for C++17.
3282
75304c87
JG
32832016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
3284
3285 * c-opts.c (c_common_post_options): Remove special case for
3286 TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard
3287 in C++.
3288
bbfac6da
JJ
32892016-09-27 Jakub Jelinek <jakub@redhat.com>
3290
6e39060a
JJ
3291 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for
3292 -std=c++1z.
3293
bbfac6da
JJ
3294 * c-ada-spec.c (print_ada_declaration): Remove break after return.
3295
e73cf9a2
TP
32962016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
3297
3298 * c-common.c: Include memmodel.h.
3299
c6147dc4
MP
33002016-09-26 Marek Polacek <polacek@redhat.com>
3301
3302 * c-lex.c (c_common_has_attribute): Handle attribute fallthrough.
3303
81fea426
MP
33042016-09-26 Marek Polacek <polacek@redhat.com>
3305
3306 PR c/7652
3307 * c-common.c (c_common_attribute_table): Add fallthrough attribute.
3308 (handle_fallthrough_attribute): New function.
3309 (attribute_fallthrough_p): New function.
3310 * c-common.h (attribute_fallthrough_p): Declare.
3311
9a2300e9
MP
33122016-09-24 Marek Polacek <polacek@redhat.com>
3313
3314 PR c/77490
3315 * c.opt (Wbool-operation): New.
3316
a09e9e35
BE
33172016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
3318
3319 * c-common.c (c_common_truthvalue_conversion): Inhibit
3320 Wint-in-bool-context warning with from_macro_definition_at.
3321 Mention the expression will always evaluate to true.
3322
d43b4ccc
MS
33232016-09-21 Martin Sebor <msebor@redhat.com>
3324
3325 PR bootstrap/77676
3326 * c.opt (fprintf-return-value): Temporarily initialize to zero
3327 to unblock bootstrap failures.
3328
2e1c20b1
JJ
33292016-09-21 Jakub Jelinek <jakub@redhat.com>
3330
3331 PR c++/77651
3332 * c.opt (Waligned-new=): Add RejectNegative.
3333 (faligned-new=): Likewise. Spelling fix - change
3334 aligned_new_threshhold to aligned_new_threshold.
3335 * c-cppbuiltin.c (c_cpp_builtins): Change aligned_new_threshhold
3336 to aligned_new_threshold.
3337
88d0c3f0
MS
33382016-09-20 Martin Sebor <msebor@redhat.com>
3339
3340 PR middle-end/49905
3341 * c.opt: Add -Wformat-length and -fprintf-return-value.
3342
144a96e4
BE
33432016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
3344
3345 PR c++/77434
3346 * c.opt (Wint-in-bool-context): New warning.
3347 * c-common.c (c_common_truthvalue_conversion): Warn on integer
3348 constants in boolean context.
3349
63012d9a
JM
33502016-09-19 Joseph Myers <joseph@codesourcery.com>
3351
3352 * c-common.c (max_align_t_align): Also consider alignment of
3353 float128_type_node.
3354
931388ce
JM
33552016-09-15 Jason Merrill <jason@redhat.com>
3356
3357 * c-common.c (check_cxx_fundamental_alignment_constraints): Check
3358 DECL_EXTERNAL.
3359
38711381
JM
33602016-09-14 Jason Merrill <jason@redhat.com>
3361
3362 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
3363 limit FIELD_DECL, either.
3364
e51fbec3
MP
33652016-09-14 Marek Polacek <polacek@redhat.com>
3366
3367 * c-common.c (c_common_truthvalue_conversion): Use false instead of 0.
3368 * c-common.h (build_unary_op): Change nonconvert parameter type to bool.
3369 * c-omp.c (c_finish_omp_atomic): Use false instead of 0.
3370
254830ba
DM
33712016-09-13 David Malcolm <dmalcolm@redhat.com>
3372
3373 * c-common.c (warn_logical_not_parentheses): Replace
3374 rich_location::add_fixit_insert calls with add_fixit_insert_before
3375 and add_fixit_insert_after, eliminating the "next_loc" calculation.
3376
42763690
JM
33772016-09-13 Jason Merrill <jason@redhat.com>
3378 Tom de Vries <tom@codesourcery.com>
3379
3380 PR c++/77427
3381 * c-common.c (set_underlying_type): Don't treat array as builtin type.
3382
9453eee9
JM
33832016-09-13 Jason Merrill <jason@redhat.com>
3384
3385 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
3386 limit types at all.
3387
e96809e3
JM
33882016-09-12 Jason Merrill <jason@redhat.com>
3389
3390 * c-common.c (check_cxx_fundamental_alignment_constraints): Fix
3391 bit/byte confusion, allow large alignment for types.
3392
54dcdb88
BE
33932016-09-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
3394
3395 PR c++/77496
3396 * c-common.c (warn_for_omitted_condop): Also warn for boolean data.
3397
d1463eb9
DM
33982016-09-12 David Malcolm <dmalcolm@redhat.com>
3399
3400 PR c/72858
3401 * c-format.c (argument_parser::check_argument_type): Add params
3402 "type_start" and "conversion_char". Use the former to generate
3403 offset_to_type_start and pass it and conversion_char to
3404 check_format_types.
3405 (check_format_info_main): Capture the start of the type
3406 information as "type_start", and pass it an format_char
3407 to arg_parser.check_argument_type.
3408 (check_format_types): Provide an example in the leading comment.
3409 Add params "offset_to_type_start" and "conversion_char"; pass
3410 them to format_type_warning calls.
3411 (test_get_modifier_for_format_len): Likewise.
3412 (matching_type_p): New function.
3413 (get_format_for_type): Add param "conversion_char" and move
3414 implementation into...
3415 (get_format_for_type_1): ...new function, called twice.
3416 Use new function matching_type_p rather than checking for
3417 TYPE_CANONICAL equality.
3418 (get_corrected_substring): New function.
3419 (format_type_warning): Provide an example in the leading comment.
3420 Add params "offset_to_type_start" and "conversion_char". Replace
3421 call to get_format_for_type with call to get_corrected_substring
3422 and move rejection of hints for widths/precisions there.
3423 (assert_format_for_type_streq): Add param "conversion_char".
3424 (ASSERT_FORMAT_FOR_TYPE_STREQ): Add param CONVERSION_CHAR.
3425 (test_get_format_for_type_printf): Add conversion chars to the
3426 tests, adding coverage for various combinations of integer
3427 vs double conversions, and for preserving octal and hexadecimal
3428 conversions.
3429 (test_get_format_for_type_scanf): Add conversion chars to the
3430 tests.
3431
5b28efbb
TV
34322016-09-10 Tom de Vries <tom@codesourcery.com>
3433
3434 PR C/71602
3435 * c-common.c (build_va_arg): Handle more strict
3436 targetm.canonical_va_list_type. Replace first argument type error with
3437 assert.
3438
3f0177e7
MS
34392016-09-09 Martin Sebor <msebor@redhat.com>
3440
3441 PR c/77520
3442 PR c/77521
3443 * c-format.c (argument_parser::find_format_char_info): Use %qc
3444 format directive unconditionally.
3445
af63ba4b
JM
34462016-09-09 Jason Merrill <jason@redhat.com>
3447
3448 Implement C++17 new of over-aligned types.
3449 * c.opt: Add -faligned-new and -Waligned-new.
3450 * c-common.c (max_align_t_align): Split out from...
3451 (cxx_fundamental_alignment_p): ...here.
3452 * c-common.h: Declare it.
3453 * c-cppbuiltin.c (c_cpp_builtins): Handle aligned new.
3454
c65248cb
JM
34552016-09-09 Joseph Myers <joseph@codesourcery.com>
3456
3457 * c-cppbuiltin.c (builtin_define_type_width): New function.
3458 (builtin_define_stdint_macros, c_cpp_builtins): Define type width
3459 macros.
3460
e5106e27
DM
34612016-09-07 David Malcolm <dmalcolm@redhat.com>
3462
3463 * c-common.c (get_cpp_ttype_from_string_type): Handle being passed
3464 a POINTER_TYPE.
3465 (substring_loc::get_location): Move to substring-locations.c,
3466 keeping implementation as...
3467 (c_get_substring_location): New function, from the above, reworked
3468 to use accessors rather than member lookup.
3469 * c-common.h (class substring_loc): Move to substring-locations.h,
3470 replacing with a forward decl.
3471 (c_get_substring_location): New decl.
3472 * c-format.c: Include "substring-locations.h".
3473 (format_warning_va): Move to substring-locations.c.
3474 (format_warning_at_substring): Likewise.
3475
ab20d992 34762016-09-06 Martin Sebor <msebor@redhat.com>
a42e7952
MS
3477
3478 PR c/77336
3479 * c-format.c (check_function_format): Avoid issuing warnings for
3480 functions unless they call format functions with non-constant
3481 format strings.
3482
b772a565
RB
34832016-09-06 Richard Biener <rguenther@suse.de>
3484
3485 PR c/77450
3486 * c-common.c (c_common_mark_addressable_vec): Handle
3487 COMPOUND_LITERAL_EXPR.
3488
25ff5dd3
MP
34892016-09-05 Marek Polacek <polacek@redhat.com>
3490
3491 PR c/77423
3492 * c-common.c (bool_promoted_to_int_p): New function.
3493 (expr_has_boolean_operands_p): New function.
3494 (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p.
3495 (maybe_warn_bool_compare): Use bool_promoted_to_int_p.
3496
21234eb5
TV
34972016-09-04 Tom de Vries <tom@codesourcery.com>
3498
3499 revert:
3500 2016-08-29 Tom de Vries <tom@codesourcery.com>
3501
3502 * c-common.c (build_va_arg): Replace first argument type error
3503 with assert.
3504
9dc5773f
JJ
35052016-09-02 Jakub Jelinek <jakub@redhat.com>
3506
3507 PR c/65467
3508 * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions.
3509 (c_finish_omp_for): Reject _Atomic qualified iterators.
3510
35112016-09-01 Martin Sebor <msebor@redhat.com>
3d7b83b6
MS
3512
3513 * c-ada-spec.c (dump_ada_function_declaration): Increase buffer
3514 size to guarantee it fits the output of the formatted function
3515 regardless of its arguments.
3516
295844f6
MP
35172016-09-01 Marek Polacek <polacek@redhat.com>
3518
3519 PR c/7652
3520 * c-common.c (resolve_overloaded_builtin): Fix formatting. Add
3521 FALLTHRU comments.
3522
3d06b6f2
MP
35232016-08-29 Marek Polacek <polacek@redhat.com>
3524
3525 PR c/77292
3526 * c-common.c (warn_logical_not_parentheses): Don't warn for
3527 a comparison or a logical operator.
3528
34cedad5
TV
35292016-08-29 Tom de Vries <tom@codesourcery.com>
3530
3531 * c-common.c (build_va_arg): Fix type comparison assert.
3532
f162d717
TV
35332016-08-29 Tom de Vries <tom@codesourcery.com>
3534
3535 * c-common.c (build_va_arg): Replace first argument type error
3536 with assert.
3537
ba9bbd6f
TV
35382016-08-29 Tom de Vries <tom@codesourcery.com>
3539
3540 PR c/77398
3541 * c-common.c (build_va_arg): Add first argument error. Build va_arg
3542 with error_mark_node as va_list instead of with illegal va_list.
3543
ebef225f
MP
35442016-08-25 Marek Polacek <polacek@redhat.com>
3545 David Malcolm <dmalcolm@redhat.com>
3546
3547 * c-common.c (warn_logical_not_parentheses): Print fixit hints.
3548 * c-common.h (warn_logical_not_parentheses): Update declaration.
3549
b00e6e75
MP
35502016-08-22 Marek Polacek <polacek@redhat.com>
3551
3552 PR c++/77321
3553 * c-common.c (warn_for_memset): Check type for null.
3554
6dc198e3
JM
35552016-08-22 Joseph Myers <joseph@codesourcery.com>
3556
14ec014e 3557 * c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and
6dc198e3
JM
3558 _FloatNx types for suffixes for built-in functions.
3559
c65699ef
JM
35602016-08-19 Joseph Myers <joseph@codesourcery.com>
3561
3562 PR c/32187
3563 * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32)
3564 (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X)
3565 (RID_FLOAT128X): New enum rid values.
3566 (CASE_RID_FLOATN_NX): New macro.
3567 * c-common.c (c_common_reswords): Add _FloatN and _FloatNx
3568 keywords.
3569 (c_common_type_for_mode): Check for _FloatN and _FloatNx and
3570 corresponding complex types.
3571 (c_common_nodes_and_builtins): For non-C++, register _FloatN and
3572 _FloatNx and corresponding complex types.
3573 (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX.
3574 * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN
3575 and _FloatNx types for the widest type for determining
3576 DECIMAL_DIG. Define __LDBL_DECIMAL_DIG__ as well as
3577 __DECIMAL_DIG__ for long double. Handle FMA_SUFFIX being NULL.
3578 (c_cpp_builtins): Call builtin_define_float_constants for _FloatN
3579 and _FloatNx types.
3580 * c-lex.c (interpret_float): Handle _FloatN and _FloatNx
3581 constants.
3582 * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and
3583 _FloatNx types.
3584
cc015f3a
DM
35852016-08-18 David Malcolm <dmalcolm@redhat.com>
3586
3587 * c-opts.c (c_diagnostic_finalizer): Update for change to
3588 diagnostic_show_locus.
3589
cb18fd07
DM
35902016-08-18 David Malcolm <dmalcolm@redhat.com>
3591
3592 * c-common.c: Include "spellcheck.h".
3593 (cb_get_suggestion): New function.
3594 * c-common.h (cb_get_suggestion): New decl.
3595 * c-lex.c (init_c_lex): Initialize cb->get_suggestion to
3596 cb_get_suggestion.
3597
a76989dc
MP
35982016-08-18 Marek Polacek <polacek@redhat.com>
3599
3600 PR c/71514
3601 * c-common.c (get_atomic_generic_size): Disallow pointer-to-function
3602 and pointer-to-VLA.
3603
65e736c0
DM
36042016-08-16 David Malcolm <dmalcolm@redhat.com>
3605
3606 PR c/72857
3607 * c-common.c (substring_loc::get_range): Rename to...
3608 (substring_loc::get_location): ...this, converting param from a
3609 source_range * to a location_t *. Call
3610 get_source_location_for_substring rather than
3611 get_source_range_for_substring, and pass in m_caret_idx.
3612 * c-common.h (substring_loc::substring_loc): Add param "caret_idx".
3613 (substring_loc::get_range): Replace with...
3614 (substring_loc::get_location): ...this.
3615 (substring_loc::set_caret_index): New method.
3616 (substring_loc): Add field m_caret_idx.
3617 * c-format.c (format_warning_va): Update for above changes.
3618 Rename local "substring_loc" to "fmt_substring_loc" to avoid
3619 clashing with type name.
3620 (format_warning_at_char): Add caret_idx param to substring_loc ctor.
3621 (check_argument_type): Likewise.
3622 (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc"
3623 Use a copy when emitting warnings, setting the caret index from TYPE.
3624
7e1dde14 36252016-08-16 Eric Botcazou <ebotcazou@adacore.com>
8e745a17 3626 Arnaud Charlet <charlet@adacore.com>
7e1dde14
EB
3627
3628 * c-ada-spec.c (dump_number): New function.
3629 (handle_escape_character): Likewise.
3630 (print_ada_macros): Add handling of constant integers and strings.
3631
191816a3
MP
36322016-08-12 Marek Polacek <polacek@redhat.com>
3633
3634 PR c/7652
3635 * c-common.c (scalar_to_vector): Adjust fall through comment.
3636 * c-opts.c (c_common_handle_option): Likewise.
3637 * c-pragma.c (handle_pragma_pack): Add FALLTHRU.
3638 * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust
3639 fall through comment.
3640 * cilk.c (extract_free_variables): Add FALLTHRU.
3641
452df4a4
JM
36422016-08-10 Jason Merrill <jason@redhat.com>
3643
3644 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
3645
f3365c12
JM
36462016-08-09 Jason Merrill <jason@redhat.com>
3647
3648 * c-common.c (c_common_attribute_table): vector_size affects type
3649 identity.
3650
f0bc3323
MP
36512016-08-09 Marek Polacek <polacek@redhat.com>
3652
3653 PR c/7652
3654 * c-ada-spec.c (dump_generic_ada_node): Add return.
3655
98e5a19a
JM
36562016-08-09 Jason Merrill <jason@redhat.com>
3657
3658 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for
3659 C++17 constexpr lambdas.
3660
895aa8e1
DM
36612016-08-08 David Malcolm <dmalcolm@redhat.com>
3662
3663 PR c/64955
3664 * c-common.h (selftest::c_format_c_tests): New declaration.
3665 (selftest::run_c_tests): New declaration.
3666 * c-format.c: Include "selftest.h.
3667 (format_warning_va): Add param "corrected_substring" and use
3668 it to add a replacement fix-it hint.
3669 (format_warning_at_substring): Likewise.
3670 (format_warning_at_char): Update for new param of
3671 format_warning_va.
3672 (argument_parser::check_argument_type): Pass "fki" to
3673 check_format_types.
3674 (check_format_types): Add param "fki" and pass it to
3675 format_type_warning.
3676 (deref_n_times): New function.
3677 (get_modifier_for_format_len): New function.
3678 (selftest::test_get_modifier_for_format_len): New function.
3679 (get_format_for_type): New function.
3680 (format_type_warning): Add param "fki" and use it to attempt
3681 to provide hints for argument types when calling
3682 format_warning_at_substring.
3683 (selftest::get_info): New function.
3684 (selftest::assert_format_for_type_streq): New function.
3685 (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro.
3686 (selftest::test_get_format_for_type_printf): New function.
3687 (selftest::test_get_format_for_type_scanf): New function.
3688 (selftest::c_format_c_tests): New function.
3689
e52ed3fe
DM
36902016-08-08 David Malcolm <dmalcolm@redhat.com>
3691
3692 PR c/52952
3693 * c-format.c: Include "diagnostic.h".
3694 (location_column_from_byte_offset): Delete.
3695 (location_from_offset): Delete.
3696 (format_warning_va): New function.
3697 (format_warning_at_substring): New function.
3698 (format_warning_at_char): New function.
3699 (check_format_arg): Capture location of format_tree and pass to
3700 check_format_info_main.
3701 (argument_parser): Add fields "start_of_this_format" and
3702 "format_string_cst".
3703 (flag_chars_t::validate): Add param "format_string_cst". Convert
3704 warning_at call using location_from_offset to call to
3705 format_warning_at_char.
3706 (argument_parser::argument_parser): Add param "format_string_cst_"
3707 and use use it to initialize field "format_string_cst".
3708 Initialize new field "start_of_this_format".
3709 (argument_parser::read_format_flags): Convert warning_at call
3710 using location_from_offset to a call to format_warning_at_char.
3711 (argument_parser::read_any_format_left_precision): Likewise.
3712 (argument_parser::read_any_format_precision): Likewise.
3713 (argument_parser::read_any_other_modifier): Likewise.
3714 (argument_parser::find_format_char_info): Likewise, in three places.
3715 (argument_parser::parse_any_scan_set): Likewise, in one place.
3716 (argument_parser::handle_conversions): Likewise, in two places.
3717 (argument_parser::check_argument_type): Add param "fmt_param_loc"
3718 and use it to make a substring_loc. Pass the latter to
3719 check_format_types.
3720 (check_format_info_main): Add params "fmt_param_loc" and
3721 "format_string_cst". Convert warning_at calls using
3722 location_from_offset to calls to format_warning_at_char. Pass the
3723 new params to the arg_parser ctor. Pass "format_string_cst" to
3724 flag_chars.validate. Pass "fmt_param_loc" to
3725 arg_parser.check_argument_type.
3726 (check_format_types): Convert first param from a location_t
3727 to a const substring_loc & and rename to "fmt_loc". Attempt
3728 to extract the range of the relevant parameter and pass it
3729 to format_type_warning.
3730 (format_type_warning): Convert first param from a location_t
3731 to a const substring_loc & and rename to "fmt_loc". Add
3732 params "param_range" and "type". Replace calls to warning_at
3733 with calls to format_warning_at_substring.
3734
1c4d457e
DM
37352016-08-08 David Malcolm <dmalcolm@redhat.com>
3736
3737 * c-format.c (class flag_chars_t): New class.
3738 (struct length_modifier): New struct.
3739 (class argument_parser): New class.
3740 (flag_chars_t::flag_chars_t): New ctor.
3741 (flag_chars_t::has_char_p): New method.
3742 (flag_chars_t::add_char): New method.
3743 (flag_chars_t::validate): New method.
3744 (flag_chars_t::get_alloc_flag): New method.
3745 (flag_chars_t::assignment_suppression_p): New method.
3746 (argument_parser::argument_parser): New ctor.
3747 (argument_parser::read_any_dollar): New method.
3748 (argument_parser::read_format_flags): New method.
3749 (argument_parser::read_any_format_width): New method.
3750 (argument_parser::read_any_format_left_precision): New method.
3751 (argument_parser::read_any_format_precision): New method.
3752 (argument_parser::handle_alloc_chars): New method.
3753 (argument_parser::read_any_length_modifier): New method.
3754 (argument_parser::read_any_other_modifier): New method.
3755 (argument_parser::find_format_char_info): New method.
3756 (argument_parser::validate_flag_pairs): New method.
3757 (argument_parser::give_y2k_warnings): New method.
3758 (argument_parser::parse_any_scan_set): New method.
3759 (argument_parser::handle_conversions): New method.
3760 (argument_parser::check_argument_type): New method.
3761 (check_format_info_main): Introduce classes argument_parser
3762 and flag_chars_t, moving the code within the loop into methods
3763 of these classes. Make various locals "const".
3764
88fa5555
DM
37652016-08-05 David Malcolm <dmalcolm@redhat.com>
3766
3767 * c-common.c: Include "substring-locations.h".
3768 (get_cpp_ttype_from_string_type): New function.
3769 (g_string_concat_db): New global.
3770 (substring_loc::get_range): New method.
3771 * c-common.h (g_string_concat_db): New declaration.
3772 (class substring_loc): New class.
3773 * c-lex.c (lex_string): When concatenating strings, capture the
3774 locations of all tokens using a new obstack, and record the
3775 concatenation locations within g_string_concat_db.
3776 * c-opts.c (c_common_init_options): Construct g_string_concat_db
3777 on the ggc-heap.
3778
78169471
MP
37792016-07-29 Marek Polacek <polacek@redhat.com>
3780
638fc14f
MP
3781 PR c/71926
3782 * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the
3783 parentheses warning.
3784
78169471
MP
3785 PR c/71574
3786 * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL.
3787
1225d6b1
ML
37882016-07-28 Martin Liska <mliska@suse.cz>
3789
3790 PR gcov-profile/68025
3791 * c-common.c (handle_no_profile_instrument_function_attribute):
3792
ec1e2a40
BE
37932016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
3794
3795 * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of
3796 BITS_PER_UNIT_LOG.
3797
5ec2cd9f
JM
37982016-07-25 Jason Merrill <jason@redhat.com>
3799
3800 PR c++/65970
3801 * c.opt (fconstexpr-loop-limit): New.
3802
9dc5773f 38032016-07-22 Martin Sebor <msebor@redhat.com>
2e6b45af
MS
3804
3805 PR c++/71675
3806 * c-common.c (resolve_overloaded_builtin): Avoid converting
3807 __atomic_compare_exchange_n return type to that of what its
3808 first argument points to.
3809
e3fe09c1
UB
38102016-07-22 Uros Bizjak <ubizjak@gmail.com>
3811
3812 * c-common.c: Use HOST_WIDE_INT_M1U instead of
3813 ~(unsigned HOST_WIDE_INT) 0.
3814
bc91c436
ML
38152016-07-22 Martin Liska <mliska@suse.cz>
3816
3817 PR gcov-profile/69028
3818 PR gcov-profile/62047
3819 * cilk.c (create_cilk_helper_decl): Set location of a new decl
3820 to the current_function_decl.
3821
451dcc66
JM
38222016-07-21 Jason Merrill <jason@redhat.com>
3823
3824 PR c++/65168
3825 * c-common.c (c_common_truthvalue_conversion): Check
3826 c_inhibit_evaluation_warnings for warning about address of
3827 reference.
3828
de6a69ee
DM
38292016-07-20 David Malcolm <dmalcolm@redhat.com>
3830
3831 * c-common.h (lookup_name_fuzzy): Convert return type from tree to
3832 const char *.
3833
d022c55a
JM
38342016-07-15 Jason Merrill <jason@redhat.com>
3835
3836 * c-opts.c (c_common_post_options): Update -fabi-version default to 11.
3837
ddbbcb19
JJ
38382016-07-15 Jakub Jelinek <jakub@redhat.com>
3839
3840 PR c/71858
3841 * c-common.h (enum lookup_name_fuzzy_kind): Add
3842 FUZZY_LOOKUP_FUNCTION_NAME.
3843
d0cf395a
JM
38442016-07-08 Jason Merrill <jason@redhat.com>
3845
3846 P0145: Refining Expression Order for C++.
3847 * c.opts (-fargs-in-order): Rename to -fstrong-eval-order.
3848 * c-opts.c: Adjust.
3849
98d44e93
MT
38502016-07-05 Markus Trippelsdorf <markus@trippelsdorf.de>
3851
3852 PR c++/71214
3853 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
3854
f9d8d994
TS
38552016-06-29 Thomas Schwinge <thomas@codesourcery.com>
3856
3857 * c-pragma.h (enum pragma_kind): Rename
3858 PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE. Adjust all
3859 users.
3860
4aa83879
RB
38612016-06-29 Richard Biener <rguenther@suse.de>
3862
3863 PR middle-end/71002
3864 * c-common.c (c_common_get_alias_set): Remove union type punning case.
3865
a25bd9e6
JM
38662016-06-24 Jason Merrill <jason@redhat.com>
3867
3868 P0145R2: Refining Expression Order for C++.
3869 * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of
3870 MODIFY_EXPR.
3871
a86451b9
JJ
38722016-06-24 Jakub Jelinek <jakub@redhat.com>
3873
3874 * c-common.c (check_builtin_function_arguments): Require last
3875 argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type.
3876 Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW
3877 if the last argument is pointer to enumerated or boolean type.
3878
1a4f11c8
DM
38792016-06-22 David Malcolm <dmalcolm@redhat.com>
3880
3881 PR c/70339
3882 * c-common.h (enum lookup_name_fuzzy_kind): New enum.
3883 (lookup_name_fuzzy): New prototype.
3884
fe55692c
JDA
38852016-06-21 John David Anglin <danglin@gcc.gnu.org>
3886
3887 * c-common.c (get_source_date_epoch): Use int64_t instead of long long.
3888
4eb24e01
JM
38892016-06-14 Jason Merrill <jason@redhat.com>
3890
3891 P0145R2: Refining Expression Order for C++.
3892 * c.opt (fargs-in-order): New.
3893 * c-opts.c (c_common_post_options): Adjust flag_args_in_order.
3894
ef7cf206
JJ
38952016-06-13 Jakub Jelinek <jakub@redhat.com>
3896
0dda258b
JJ
3897 PR sanitizer/71498
3898 * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
3899 all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
3900
ef7cf206
JJ
3901 PR preprocessor/71183
3902 * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch
3903 to cb_get_source_date_epoch.
3904
50b15873
JJ
39052016-06-10 Jakub Jelinek <jakub@redhat.com>
3906
3907 PR c/68657
3908 * c.opt (Wpsabi): Add Warning flag.
3909
4d926e34
MS
39102016-06-10 Martin Sebor <msebor@redhat.com>
3911
3912 PR c/71392
14ec014e 3913 * c-common.c (handle_nonnull_attribute): Accept
4d926e34
MS
3914 the nonnull attribute in type-generic builtins.
3915
e01b4e16
MS
39162016-06-09 Martin Sebor <msebor@redhat.com>
3917
3918 PR c/70883
3919 * c-common.c (builtin_function_validate_nargs): Make text of error
3920 message consistent with others like it.
3921
44a845ca
MS
39222016-06-08 Martin Sebor <msebor@redhat.com>
3923 Jakub Jelinek <jakub@redhat.com>
3924
3925 PR c++/70507
3926 PR c/68120
3927 * c-common.c (check_builtin_function_arguments): Handle
3928 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
3929
a80a7051
RB
39302016-06-08 Richard Biener <rguenther@suse.de>
3931
3932 * c-common.c (parse_optimize_options): Improve diagnostic messages.
3933
bfd67b47
RB
39342016-06-07 Richard Biener <rguenther@suse.de>
3935
3936 PR c/61564
3937 * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
3938 options and warn about others.
3939
15c98b2e
ES
39402016-06-01 Eduard Sanou <dhole@openmailbox.org>
3941
3942 * c-common.c (get_source_date_epoch): Rename to
3943 cb_get_source_date_epoch.
3944 * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
3945 message when the parsing fails. Use error_at instead of fatal_error.
3946 * c-common.h (get_source_date_epoch): Rename to
3947 cb_get_source_date_epoch.
3948 * c-common.h (cb_get_source_date_epoch): Prototype.
3949 * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
3950 * c-common.h (c_omp_region_type): Remove trailing comma.
3951 * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
3952 * c-lex.c (c_lex_with_flags): Remove initialization of
3953 pfile->source_date_epoch.
3954
00631022
JJ
39552016-05-30 Jakub Jelinek <jakub@redhat.com>
3956
3957 PR c++/71349
3958 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
3959 C_OMP_CLAUSE_SPLIT_TARGET. Put OMP_CLAUSE_NOWAIT to
3960 C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
3961 instead of C_OMP_CLAUSE_SPLIT_FOR.
3962
f17a223d
RB
39632016-05-24 Richard Biener <rguenther@suse.de>
3964
3965 PR middle-end/70434
3966 PR c/69504
3967 * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
3968 (convert_vector_to_array_for_subscript): ... this.
3969 * c-common.c (convert_vector_to_pointer_for_subscript): Use a
3970 VIEW_CONVERT_EXPR to an array type. Rename to ...
3971 (convert_vector_to_array_for_subscript): ... this.
3972
4f2e1536
MP
39732016-05-12 Marek Polacek <polacek@redhat.com>
3974
3975 PR c/70756
3976 * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
3977 size_in_bytes and pass LOC to it.
3978
d6e83a8d
MM
39792016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
3980
3981 PR c/43651
3982 * c.opt (Wduplicate-decl-specifier): New option.
3983
5c3a10fb
MP
39842016-05-11 Marek Polacek <polacek@redhat.com>
3985
3986 PR c++/71024
3987 * c-common.c (diagnose_mismatched_attributes): New function.
3988 * c-common.h (diagnose_mismatched_attributes): Declare.
3989
deef7113
MP
39902016-05-04 Marek Polacek <polacek@redhat.com>
3991
3992 * c.opt (Wdangling-else): New option.
3993
79ce98bc
MP
39942016-05-03 Marek Polacek <polacek@redhat.com>
3995
3996 PR c/70859
3997 * c-common.c (builtin_function_validate_nargs): Add location
3998 parameter. Use it.
3999 (check_builtin_function_arguments): Add location and arguments
4000 parameters. Use them.
4001 * c-common.h (check_builtin_function_arguments): Update declaration.
4002
381cdae4
RB
40032016-05-03 Richard Biener <rguenther@suse.de>
4004
4005 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
4006 allow call args to gimplify to SSA names.
4007
1d793c34
MP
40082016-05-03 Marek Polacek <polacek@redhat.com>
4009
4010 * c-common.h (enum c_omp_region_type): Remove stray comma.
4011
77886428
CP
40122016-05-02 Cesar Philippidis <cesar@codesourcery.com>
4013
4014 * c-common.h (enum c_omp_region_type): Define.
4015
697e0b28
RS
40162016-05-02 Richard Sandiford <richard.sandiford@arm.com>
4017
4018 * c-common.c (shorten_compare): Use wi::to_wide.
4019
e7ff0319
CP
40202016-04-29 Cesar Philippidis <cesar@codesourcery.com>
4021
4022 PR middle-end/70626
4023 * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
4024 * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
4025 reduction clauses in acc parallel loops.
4026
2fff3db8
MP
40272016-04-29 Marek Polacek <polacek@redhat.com>
4028
4029 PR c/70852
4030 * c-common.c (warn_for_memset): Check domain before accessing it.
4031
509063eb
DV
40322016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
4033
4034 PR/69089
4035 * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
4036 "aligned" attribute.
4037
b632761d
JM
40382016-04-28 Jason Merrill <jason@redhat.com>
4039
4040 * c-lex.c (c_common_has_attribute): Handle nodiscard.
4041
174f6622
ES
40422016-04-28 Eduard Sanou <dhole@openmailbox.org>
4043 Matthias Klose <doko@debian.org>
4044
4045 * c-common.c (get_source_date_epoch): New function, gets the environment
7365279f 4046 variable SOURCE_DATE_EPOCH and parses it as long long with error
174f6622
ES
4047 handling.
4048 * c-common.h (get_source_date_epoch): Prototype.
4049 * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
4050
6bc2bb18
RB
40512015-04-27 Ryan Burn <contact@rnburn.com>
4052
4053 PR c++/69024
4054 PR c++/68997
4055 * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
4056 (cilk_recognize_spawn): Renamed from recognize_spawn and change to
4057 external linkage.
4058 (cilk_detect_and_unwrap): Corresponding changes.
4059 (extract_free_variables): Don't extract free variables from
4060 AGGR_INIT_EXPR slot.
4061 * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
4062 (cilk_recognize_spawn): Likewise.
4063
c1e1f433
BS
40642016-04-27 Bernd Schmidt <bschmidt@redhat.com>
4065
4066 * c.opt (Wmemset-elt-size): New option.
4067 * c-common.c (warn_for_memset): New function.
4068 * c-common.h (warn_for_memset): Declare.
4069
d067e05f
JM
40702016-04-25 Jason Merrill <jason@redhat.com>
4071
4072 * c-common.c (handle_unused_attribute): Accept CONST_DECL.
4073 No longer static.
4074 * c-common.h: Declare it.
4075 * c-lex.c (c_common_has_attribute): Add maybe_unused.
4076
9aa36ae5
JM
40772016-04-22 Jason Merrill <jason@redhat.com>
4078
4079 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
4080
477d4906
IV
40812016-04-20 Ilya Verbin <ilya.verbin@intel.com>
4082
4083 PR c++/69363
4084 * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
4085 * c-common.h (c_finish_cilk_clauses): Remove declaration.
4086
fe37c7af
MM
40872016-04-18 Michael Matz <matz@suse.de>
4088
4089 * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
4090 and SET_DECL_ALIGN.
4091
23f2660f
EB
40922016-04-17 Eric Botcazou <ebotcazou@adacore.com>
4093
4094 * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
4095 (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
4096 to incomplete types.
4097 (dump_nested_type): Remove redundant tests and tidy up.
4098 (print_ada_declaration): Also set TREE_VISITED on the declaration of
4099 a type which is the typedef of an original type.
4100
1e77281b
MP
41012016-04-15 Marek Polacek <polacek@redhat.com>
4102
4103 PR c/70651
4104 * c-common.c (build_va_arg): Change two asserts into errors and return
4105 error_mark_node.
4106
b3a77f21
MP
41072016-04-13 Marek Polacek <polacek@redhat.com>
4108
4109 PR c++/70639
4110 * c-indentation.c (should_warn_for_misleading_indentation): Bail out
4111 for switch statements, too.
4112
322b8466
JM
41132016-03-28 Jason Merrill <jason@redhat.com>
4114
4115 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
4116
fbdb6baf
MP
41172016-03-23 Marek Polacek <polacek@redhat.com>
4118
4119 PR c++/69884
4120 * c.opt (Wignored-attributes): New option.
4121
5c240f4d
DM
41222016-03-22 David Malcolm <dmalcolm@redhat.com>
4123
4124 PR c/69993
4125 * c-indentation.c (warn_for_misleading_indentation): Rewrite the
4126 diagnostic text, reversing the order of the warning and note so
4127 that they appear in source order.
4128
14ba7b28
MP
41292016-03-17 Marek Polacek <polacek@redhat.com>
4130
4131 PR c/69407
4132 * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
4133 operations.
4134
08a1cadc
JM
41352016-03-14 Jason Merrill <jason@redhat.com>
4136
2aaeea19
JM
4137 * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
4138
08a1cadc
JM
4139 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
4140
c06d25bb
RB
41412016-03-09 Richard Biener <rguenther@suse.de>
4142
4143 PR c/70143
4144 * c-common.c (strict_aliasing_warning): Add back
4145 alias_sets_conflict_p check.
4146
80aac5c8
JM
41472016-03-08 Jason Merrill <jason@redhat.com>
4148
4149 * c-opts.c (set_std_cxx1z): Don't enable concepts.
4150
64b23c13
DM
41512016-03-04 David Malcolm <dmalcolm@redhat.com>
4152
4153 PR c/68187
4154 * c-indentation.c (get_visual_column): Move code to determine next
4155 tab stop to...
4156 (next_tab_stop): ...this new function.
4157 (line_contains_hash_if): Delete function.
4158 (detect_preprocessor_logic): Delete function.
4159 (get_first_nws_vis_column): New function.
4160 (detect_intervening_unindent): New function.
4161 (should_warn_for_misleading_indentation): Replace call to
4162 detect_preprocessor_logic with a call to
4163 detect_intervening_unindent.
4164
729526f5
DM
41652016-03-04 David Malcolm <dmalcolm@redhat.com>
4166
4167 PR c/68187
4168 * c-indentation.c (should_warn_for_misleading_indentation): When
4169 suppressing warnings about cases where the guard and body are on
4170 the same column, only use the first non-whitespace column in place
4171 of the guard token column when dealing with "else" clauses.
4172 When rejecting aligned BODY and NEXT, loosen the requirement
4173 from equality with the first non-whitespace of guard to simply
4174 that they not be indented relative to it.
4175
e9a35493
RB
41762016-03-04 Richard Biener <rguenther@suse.de>
4177
4178 PR c++/70054
4179 * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
4180 instead of alias_sets_conflict_p.
4181
1be56bc5
MP
41822016-03-01 Marek Polacek <polacek@redhat.com>
4183
4184 PR c++/69795
4185 * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
4186 any DECL.
4187
35886f0b
MS
41882016-02-22 Martin Sebor <msebor@redhat.com>
4189
4190 PR middle-end/69780
4191 * c-common.c (check_builtin_function_arguments): Validate and
4192 reject invalid arguments to __builtin_alloca_with_align.
4193
4246c8da
MW
41942016-02-20 Mark Wielaard <mjw@redhat.com>
4195
4196 PR c/28901
4197 * c.opt (Wunused-const-variable): Turn into Alias for...
4198 (Wunused-const-variable=): New option.
4199
268be88c
BE
42002016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
4201
4202 PR c++/69865
4203 * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
4204 here...
4205 (c_common_init_options): ...to here.
4206 (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
4207
871b3f47
JJ
42082016-02-19 Jakub Jelinek <jakub@redhat.com>
4209
4210 PR c++/69826
4211 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
4212 (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
4213 flag_preprocess_only.
4214
bf14eba2
JJ
42152016-02-16 Jakub Jelinek <jakub@redhat.com>
4216
4217 PR c/69835
4218 * c.opt (Wnonnull-compare): Enable for -Wall.
4219
ba6b3795
JJ
42202016-02-15 Jakub Jelinek <jakub@redhat.com>
4221
4222 PR c++/69797
4223 * c-common.c (sync_resolve_size): Diagnose too few arguments
4224 even when params is non-NULL empty vector.
4225
a011cd92
BS
42262016-02-08 Bernd Schmidt <bschmidt@redhat.com>
4227
4228 PR target/60410
4229 * c.opt (fshort-double): Remove.
4230
46cb9332
MS
42312016-02-05 Martin Sebor <msebor@redhat.com>
4232
4233 PR c++/69662
4234 * c.opt (Warning options): Update -Wplacement-new to take
4235 an optional argument.
4236
e1b81f2b
JJ
42372016-02-01 Jakub Jelinek <jakub@redhat.com>
4238
4239 PR preprocessor/69543
4240 PR c/69558
4241 * c-pragma.c (handle_pragma_diagnostic): Pass input_location
4242 instead of loc to control_warning_option.
4243
b6adbb9f
NS
42442016-02-01 Nathan Sidwell <nathan@codesourcery.com>
4245
4246 * c.opt (fopenacc-dim=): New option.
4247
5d70666e
RB
42482016-01-27 Ryan Burn <contact@rnburn.com>
4249
4250 PR cilkplus/69267
4251 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
4252 gimplify_arg. Removed superfluous post_p argument.
4253 * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
4254 superfluous post_p argument.
4255 * c-gimplify.c (c_gimplify_expr): Likewise.
4256
01e1dea3
DM
42572016-01-26 David Malcolm <dmalcolm@redhat.com>
4258
4259 PR other/69006
4260 * c-opts.c (c_diagnostic_finalizer): Replace invocation of
4261 pp_newline_and_flush with pp_flush.
4262
9f04a53e
MS
42632016-01-20 Martin Sebor <msebor@redhat.com>
4264
4265 PR c/69405
4266 * c-common.c (sync_resolve_size): Avoid printing diagnostic about
4267 an incompatible argument when the argument isn't a valid tree node.
4268
7f26f7df
JM
42692016-01-18 Jason Merrill <jason@redhat.com>
4270
4271 PR c++/68767
4272 * c-common.c (check_function_arguments_recurse): Fold the whole
4273 COND_EXPR, not just the condition.
4274
f62bf092
TV
42752016-01-18 Tom de Vries <tom@codesourcery.com>
4276
4277 * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
4278 classify as loop clause.
4279
e0a575ff
JJ
42802016-01-15 Jakub Jelinek <jakub@redhat.com>
4281
4282 PR bootstrap/68271
4283 * c-pragma.c (c_register_pragma_1): Adjust comment to note that
4284 C++ FE no longer has limit on number of pragmas.
4285
42862015-01-14 Ryan Burn <contact@rnburn.com>
b6e3db06
RB
4287
4288 PR c++/69048
4289 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
c47eaca6 4290 to add missing cleanup point.
b6e3db06 4291
c7df95d8
DM
42922016-01-14 David Malcolm <dmalcolm@redhat.com>
4293
4294 PR c++/68819
4295 * c-indentation.c (get_visual_column): Add location_t param.
4296 Handle the column number being zero by effectively disabling the
4297 warning, with an "inform".
4298 (should_warn_for_misleading_indentation): Add location_t argument
4299 for all uses of get_visual_column.
4300
21efdd80
PP
43012016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
4302
4303 PR c++/69029
4304 * c-indentation.c (should_warn_for_misleading_indentation):
4305 Don't warn about do-while statements.
4306
7a127fa7
MS
43072016-01-07 Martin Sebor <msebor@redhat.com>
4308
4309 PR c/68966
4310 * c-common.c (sync_resolve_size): Reject first argument when it's
4311 a pointer to _Bool.
4312
c589e975
DM
43132016-01-05 David Malcolm <dmalcolm@redhat.com>
4314
4315 PR c/69122
4316 * c-indentation.c (get_visual_column): Remove default argument.
4317 (should_warn_for_misleading_indentation): For the multiline case,
4318 update call to get_visual_column for next_stmt_exploc so that it
4319 captures the location of the first non-whitespace character in the
4320 relevant line. Don't issue warnings if there is non-whitespace
4321 before the next statement.
4322
818ab71a
JJ
43232016-01-04 Jakub Jelinek <jakub@redhat.com>
4324
4325 Update copyright years.
4326
745e411d
DM
43272015-12-21 David Malcolm <dmalcolm@redhat.com>
4328
4329 * c-common.c (binary_op_error): Convert first param from
4330 location_t to rich_location * and use it when emitting an error.
4331 * c-common.h (binary_op_error): Convert first param from
4332 location_t to rich_location *.
4333
de67c4c3
DM
43342015-12-16 David Malcolm <dmalcolm@redhat.com>
4335
4336 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
4337 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
4338
4a38b02b
IV
43392015-12-15 Ilya Verbin <ilya.verbin@intel.com>
4340
4341 * c-common.c (c_common_attribute_table): Handle "omp declare target
4342 link" attribute.
4343
54d62f51
JJ
43442015-12-14 Jakub Jelinek <jakub@redhat.com>
4345
4346 PR c/68833
4347 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
4348
8d4227c8
TB
43492014-12-12 Tobias Burnus <burnus@net-b.de>
4350
4351 PR fortran/68815
4352 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
4353 specifiers (%d, %i,%u and %c).
4354
f6069ccc
DM
43552015-12-10 David Malcolm <dmalcolm@redhat.com>
4356
4357 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
4358
63bbf46d
JJ
43592015-12-08 Jakub Jelinek <jakub@redhat.com>
4360
4361 PR c/48088
4362 PR c/68657
4363 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
4364 * c-pragma.c (handle_pragma_diagnostic): Adjust
4365 control_warning_option caller.
4366
f79520bb
DM
43672015-12-07 David Malcolm <dmalcolm@redhat.com>
4368
4369 * c-common.c (c_cpp_error): Update for change to
4370 rich_location::set_range.
4371
b3d5bc62
JJ
43722015-12-04 Paolo Bonzini <bonzini@gnu.org>
4373
4374 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
4375 shifting 1 out of the sign bit.
4376
43772015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
4378
4379 * c-common.c (c_common_attribute_table[]): Update max arguments
4380 count for "simd" attribute.
4381 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
4382
6eb4a537
JJ
43832015-12-03 Jakub Jelinek <jakub@redhat.com>
4384
4385 PR preprocessor/57580
4386 * c-ppoutput.c (print): Change printed field to bool.
4387 Move src_file last for smaller padding.
4388 (init_pp_output): Set print.printed to false instead of 0.
4389 (scan_translation_unit): Fix up formatting. Set print.printed
4390 to true after printing something other than newline.
4391 (scan_translation_unit_trad): Set print.printed to true instead of 1.
4392 (maybe_print_line_1): Set print.printed to false instead of 0.
4393 (print_line_1): Likewise.
4394 (do_line_change): Set print.printed to true instead of 1.
4395 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
4396 dump_macro): Set print.printed to false after printing newline.
4397
4250754e
JM
43982015-12-02 Jason Merrill <jason@redhat.com>
4399
f479b43d
JM
4400 * c-common.c (fold_for_warn): New.
4401 (warn_logical_operator, warn_tautological_cmp)
4402 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
4403
4250754e
JM
4404 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
4405 (c_fully_fold_internal, decl_constant_value_for_optimization):
4406 Move to c/c-fold.c.
4407 * c-common.h: Don't declare decl_constant_value_for_optimization.
4408
e9e32ee6
JM
44092015-12-02 Joseph Myers <joseph@codesourcery.com>
4410
4411 PR c/68162
4412 * c-common.h (c_build_qualified_type): Add extra default
4413 arguments.
4414
37d5ad46
JB
44152015-12-01 Julian Brown <julian@codesourcery.com>
4416 Cesar Philippidis <cesar@codesourcery.com>
4417 James Norris <James_Norris@mentor.com>
4418
4419 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
4420 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
4421 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
4422
f07862c7
EB
44232015-11-30 Eric Botcazou <ebotcazou@adacore.com>
4424
4425 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
4426 (decl_sloc_common): Delete and move bulk of processing to...
4427 (decl_sloc): ...here.
4428 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
4429 (dump_ada_double_name): Remove S parameter and compute the suffix.
4430 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
4431 element type and deal with an anonymous one.
4432 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
4433 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
4434 and remove reference to QUAL_UNION_TYPE.
4435 (dump_nested_types): Make 2 passes on the fields and move bulk to...
4436 (dump_nested_type): ...here. New function extracted from above.
4437 Generate a full declaration for anonymous element type of arrays.
4438 (print_ada_declaration): Really skip anonymous declarations. Remove
4439 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
4440 Clean up processing of declarations of array types and objects.
4441 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
4442 Remove obsolete code and tidy up.
4443
75c8aac3
JH
44442015-11-29 Jan Hubicka <hubicka@ucw.cz>
4445
4446 PR c/67581
4447 * c-common.c (handle_transparent_union_attribute): Update
4448 also type variants.
4449
b58d3df2
ML
44502015-11-27 Martin Liska <mliska@suse.cz>
4451
4452 PR c++/68312
4453 * array-notation-common.c (cilkplus_extract_an_triplets):
4454 Release vector of vectors.
4455 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
4456
89a01fcf
EB
44572015-11-26 Eric Botcazou <ebotcazou@adacore.com>
4458
4459 PR c++/68527
4460 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
4461 (print_ada_struct_decl): Likewise.
4462
cc5c5226
IZ
44632015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
4464
4465 PR c++/68001
4466 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
4467 * cilk.c (recognize_spawn): Determine location in a more precise
4468 way.
4469
269adb9d
JM
44702015-11-19 Jason Merrill <jason@redhat.com>
4471
4472 * c-common.c (shorten_compare): But look through macros from
4473 system headers.
4474
d0eccfcd
JM
44752015-11-18 Jason Merrill <jason@redhat.com>
4476
4477 * c-common.c (shorten_compare): Don't -Wtype-limits if the
4478 non-constant operand comes from a macro.
4479
3e44547c
JM
44802015-11-17 Jason Merrill <jason@redhat.com>
4481
4482 PR bootstrap/68346
4483 * c-common.c (warn_tautological_cmp): Fold before checking for
4484 constants.
4485
0f62c7a0
MP
44862015-11-16 Marek Polacek <polacek@redhat.com>
4487
4488 PR c++/68362
4489 * c-common.c (check_case_bounds): Fold low and high cases.
4490
a868811e
MP
44912015-11-16 Marek Polacek <polacek@redhat.com>
4492
4493 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
4494 * c-common.c (c_common_get_alias_set): Likewise.
4495 (handle_visibility_attribute): Likewise.
4496
fff77217
KY
44972015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
4498
4499 * c-common.c (handle_simd_attribute): New.
4500 (struct attribute_spec): Add entry for "simd".
4501 (handle_simd_attribute): New.
4502
269e63b7
KT
45032015-11-13 Kai Tietz <ktietz70@googlemail.com>
4504
4505 * c-lex.c (interpret_float): Use fold_convert.
4506
ebedc9a3
DM
45072015-11-13 David Malcolm <dmalcolm@redhat.com>
4508
4509 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
4510 and store it on the result.
4511 * c-opts.c (c_common_init_options): Set
4512 global_dc->colorize_source_p.
4513
6e232ba4
JN
45142015-11-12 James Norris <jnorris@codesourcery.com>
4515 Joseph Myers <joseph@codesourcery.com>
4516
7365279f 4517 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
6e232ba4
JN
4518 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
4519 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
4520 PRAGMA_OACC_CLAUSE_LINK.
4521
e78bede6
MP
45222015-11-11 Marek Polacek <polacek@redhat.com>
4523
4524 PR c/68107
4525 PR c++/68266
4526 * c-common.c (valid_array_size_p): New function.
4527 * c-common.h (valid_array_size_p): Declare.
4528
3f8257db 45292015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
4ac93c7c
DH
4530
4531 PR bootstrap/68271
4532 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
4533
69f293c9
AM
45342015-11-11 Andrew MacLeod <amacleod@redhat.com>
4535
4536 * array-notation-common.c: Remove unused header files.
4537 * c-ada-spec.c: Likewise.
4538 * c-cilkplus.c: Likewise.
4539 * c-common.c: Likewise.
4540 * c-cppbuiltin.c: Likewise.
4541 * c-dump.c: Likewise.
4542 * c-format.c: Likewise.
4543 * c-gimplify.c: Likewise.
4544 * c-indentation.c: Likewise.
4545 * c-lex.c: Likewise.
4546 * c-omp.c: Likewise.
4547 * c-opts.c: Likewise.
4548 * c-pch.c: Likewise.
4549 * c-ppoutput.c: Likewise.
4550 * c-pragma.c: Likewise.
4551 * c-pretty-print.c: Likewise.
4552 * c-semantics.c: Likewise.
4553 * c-ubsan.c: Likewise.
4554 * cilk.c: Likewise.
4555 * stub-objc.c: Likewise.
4556
3a40d81d
NS
45572015-11-09 Thomas Schwinge <thomas@codesourcery.com>
4558 Cesar Philippidis <cesar@codesourcery.com>
4559 James Norris <jnorris@codesourcery.com>
4560 Julian Brown <julian@codesourcery.com>
4561 Nathan Sidwell <nathan@codesourcery.com>
4562
4563 * c-pragma.c (oacc_pragmas): Add "routine".
4564 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
4565
ee45a32d
EB
45662015-11-08 Eric Botcazou <ebotcazou@adacore.com>
4567
4568 * c-common.c (c_common_attributes): Add scalar_storage_order.
4569 (handle_scalar_storage_order_attribute): New function.
4570 * c-pragma.c (global_sso): New variable.
4571 (maybe_apply_pragma_scalar_storage_order): New function.
4572 (handle_pragma_scalar_storage_order): Likewise.
4573 (init_pragma): Register scalar_storage_order.
4574 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
4575 * c.opt (Wscalar-storage-order): New warning.
4576 (fsso-struct=): New option.
4577
eb11eb15
MS
45782015-11-08 Martin Sebor <msebor@redhat.com>
4579
4580 * c.opt (Wplacement-new): Add a period to the end of a sentence.
4581
0aad0198
RS
45822015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4583
4584 * c-common.c: Don't undef DEF_BUILTIN.
4585
8a645150
DM
45862015-11-06 David Malcolm <dmalcolm@redhat.com>
4587
4588 * c-common.c (c_cpp_error): Convert parameter from location_t to
4589 rich_location *. Eliminate the "column_override" parameter and
4590 the call to diagnostic_override_column.
4591 Update the "done_lexing" clause to set range 0
4592 on the rich_location, rather than overwriting a location_t.
4593 * c-common.h (c_cpp_error): Convert parameter from location_t to
4594 rich_location *. Eliminate the "column_override" parameter.
4595
7a5e4956
CP
45962015-11-05 Cesar Philippidis <cesar@codesourcery.com>
4597 Thomas Schwinge <thomas@codesourcery.com>
4598 James Norris <jnorris@codesourcery.com>
4599
4600 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
4601 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
4602 clauses with parallel and kernels and loops.
4603 * c-pragma.h (enum pragma_omp_clause): Add entries for
4604 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
4605 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
4606 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
4607 INDEPENDENT,SEQ}.
4608 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
4609
e2f5cc96
MS
46102015-11-05 Martin Sebor <msebor@redhat.com>
4611
4612 PR c++/67942
4613 * c.opt (-Wplacement-new): New option.
4614
e01d41e5
JJ
46152015-11-05 Jakub Jelinek <jakub@redhat.com>
4616
4617 * c-common.h (c_finish_omp_atomic): Add TEST argument.
4618 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
4619 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
4620 save_expr or create_tmp_var* if TEST is true.
4621 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
4622 Don't call add_stmt here.
4623 (struct c_omp_check_loop_iv_data): New type.
4624 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
4625 c_omp_check_loop_iv_exprs): New functions.
4626 (c_omp_split_clauses): Adjust for lastprivate being allowed on
4627 distribute.
4628 (c_omp_declare_simd_clauses_to_numbers): Change
4629 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
4630 (c_omp_declare_simd_clauses_to_decls): Similarly change those
4631 from numbers to PARM_DECLs.
4632
595278be
MM
46332015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
4634
4635 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
4636 flag_checking.
4637
3f8257db 46382015-11-03 Bernd Schmidt <bschmidt@redhat.com>
c85158de
MS
4639
4640 PR c++-common/67882
b3d5bc62
JJ
4641 * c-common.h (fold_offsetof_1): Add argument.
4642 * c-common.c (fold_offsetof_1): Diagnose more invalid
c85158de
MS
4643 offsetof expressions that reference elements past the end of
4644 an array.
4645
4bf9e5a8
TS
46462015-11-03 Thomas Schwinge <thomas@codesourcery.com>
4647 Chung-Lin Tang <cltang@codesourcery.com>
4648
4649 * c-pragma.c (oacc_pragmas): Add "atomic".
4650 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
4651
3b1661a9
ES
46522015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
4653
4654 * c-common.c (handle_target_clones_attribute): New.
4655 (c_common_attribute_table): Add handle_target_clones_attribute.
4656 (handle_always_inline_attribute): Add check on target_clones attribute.
4657 (handle_target_attribute): Ditto.
4658
2adfab87
AM
46592015-10-29 Andrew MacLeod <amacleod@redhat.com>
4660
4661 * array-notation-common.c: Reorder #include's and remove duplicates.
4662 * c-ada-spec.c: Likewise.
4663 * c-cilkplus.c: Likewise.
4664 * c-common.c: Likewise.
4665 * c-cppbuiltin.c: Likewise.
4666 * c-dump.c: Likewise.
4667 * c-format.c: Likewise.
4668 * c-gimplify.c: Likewise.
4669 * c-indentation.c: Likewise.
4670 * c-lex.c: Likewise.
4671 * c-omp.c: Likewise.
4672 * c-opts.c: Likewise.
4673 * c-pch.c: Likewise.
4674 * c-ppoutput.c: Likewise.
4675 * c-pragma.c: Likewise.
4676 * c-pretty-print.c: Likewise.
4677 * c-semantics.c: Likewise.
4678 * c-ubsan.c: Likewise.
4679 * cilk.c: Likewise.
4680 * stub-objc.c: Likewise.
4681
d90ec4f2
JM
46822015-10-28 Jason Merrill <jason@redhat.com>
4683
4684 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
4685
88bae6f4
TS
46862015-10-27 Thomas Schwinge <thomas@codesourcery.com>
4687 James Norris <jnorris@codesourcery.com>
4688 Cesar Philippidis <cesar@codesourcery.com>
4689
4690 PR c/64765
4691 PR c/64880
4692 * c-common.h (c_oacc_split_loop_clauses): Declare function.
4693 * c-omp.c (c_oacc_split_loop_clauses): New function.
4694
b1726d6c
MS
46952015-10-21 Martin Sebor <msebor@redhat.com>
4696
4697 PR driver/68043
4698 * c.opt: End each sentence that describes an option with a period.
4699
fa60eeb9
MP
47002015-10-20 Marek Polacek <polacek@redhat.com>
4701
4702 * array-notation-common.c (is_cilkplus_vector_p): Define.
4703 * c-common.h (is_cilkplus_vector_p): Declare.
4704
95979049
MP
47052015-10-20 Marek Polacek <polacek@redhat.com>
4706
4707 * c.opt (std=gnu++11): Do not describe as experimental.
4708 (std=gnu++14): Likewise.
4709
2a9fb712
JM
47102015-10-19 Jason Merrill <jason@redhat.com>
4711
4712 * c-cppbuiltin.c (c_cpp_builtins): Define
4713 __cpp_nontype_template_args.
4714
13b380a3
JM
47152015-10-19 Jason Merrill <jason@redhat.com>
4716
4717 * c-cppbuiltin.c (c_cpp_builtins): Define
4718 __cpp_enumerator_attributes, __cpp_fold_expressions,
4719 __cpp_unicode_characters.
4720
d9a6bd32
JJ
47212015-10-13 Jakub Jelinek <jakub@redhat.com>
4722 Aldy Hernandez <aldyh@redhat.com>
4723
4724 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
4725 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
4726 (c_define_builtins): Likewise.
4727 * c-common.h (enum c_omp_clause_split): Add
4728 C_OMP_CLAUSE_SPLIT_TASKLOOP.
4729 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
4730 (c_finish_omp_for): Add ORIG_DECLV argument.
4731 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
4732 201511 instead of 201307.
4733 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
4734 OMP_CRITICAL_CLAUSES to it.
4735 (c_finish_omp_ordered): Add CLAUSES argument, set
4736 OMP_ORDERED_CLAUSES to it.
4737 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
4738 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
4739 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
4740 constructs and new OpenMP 4.5 clauses. Clear
4741 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
4742 verification code.
4743 * c-pragma.c (omp_pragmas_simd): Add taskloop.
4744 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
4745 (enum pragma_omp_clause): Add
4746 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
4747 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
4748
624d31fe
RS
47492015-10-05 Richard Sandiford <richard.sandiford@arm.com>
4750
4751 * c-lex.c (interpret_float): Use real_equal instead of
4752 REAL_VALUES_EQUAL.
4753
b8fd7909
JM
47542015-10-04 Jason Merrill <jason@redhat.com>
4755
4756 Implement N4514, C++ Extensions for Transactional Memory.
4757 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
4758 (c_common_attribute_table): Add transaction_safe_dynamic.
4759 transaction_safe now affects type identity.
4760 (handle_tm_attribute): Handle transaction_safe_dynamic.
4761 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
4762 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
4763 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
4764 (D_TRANSMEM): New.
4765 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
4766 * c-pretty-print.c (pp_c_attributes_display): Don't print
4767 transaction_safe in C++.
4768
12651878
MP
47692015-10-02 Marek Polacek <polacek@redhat.com>
4770
4771 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
4772
3e3b8d63
MP
47732015-10-02 Marek Polacek <polacek@redhat.com>
4774
4775 PR c/64249
4776 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
4777 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
4778 * c.opt (Wduplicated-cond): New option.
4779
0d1a8f75
JM
47802015-10-01 Joseph Myers <joseph@codesourcery.com>
4781
4782 * c.opt (std=c11): Do not describe as experimental.
4783 (std=gnu11): Likewise.
4784 (std=iso9899:2011): Likewise.
4785
3e32ee19
NS
47862015-09-28 Nathan Sidwell <nathan@codesourcery.com>
4787
4788 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
4789 (DEF_FUNCTION_TYPE_VAR_11): Delete.
4790
974348ee
MP
47912015-09-25 Marek Polacek <polacek@redhat.com>
4792
4793 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
4794 (ubsan_instrument_shift): Likewise.
4795
15dbc1a6
MP
47962015-09-25 Marek Polacek <polacek@redhat.com>
4797
4798 PR sanitizer/64906
4799 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
4800
6b95d7cc
PP
48012015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
4802
4803 * c-indentation.c (should_warn_for_misleading_indentation):
4804 Compare next_stmt_vis_column with guard_line_first_nws instead
4805 of with guard_line_vis_column.
4806
c1822f9c
MLI
48072015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
4808
4809 PR c/49654
4810 PR c/49655
4811 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
4812 options and options not valid for the current language.
4813
d5398058
PP
48142015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
4815
4816 * c-indentation.c (should_warn_for_misleading_indentation):
4817 Float out and consolidate the calls to get_visual_column that
4818 are passed guard_exploc as an argument. Compare
4819 next_stmt_vis_column with guard_line_first_nws instead of with
4820 body_line_first_nws.
4821
6b333269
NS
48222015-09-22 Nathan Sidwell <nathan@codesourcery.com>
4823
4824 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
4825 Wnamespaces): New C++ warnings.
4826
a75f1574
JM
48272015-09-22 Jason Merrill <jason@redhat.com>
4828
4829 * c-common.h (abi_compat_version_crosses): New.
4830 (warn_abi_version): Declare.
4831 * c-common.c: Define it.
4832 * c-opts.c (c_common_post_options): Handle it.
4833 flag_abi_compat_version defaults to 8.
4834
bdaaa8b7
VV
48352015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
4836
4837 Complete the implementation of N4230, Nested namespace definition.
4838 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
4839 __cpp_nested_namespace_definitions.
4840
eaa797e8
MLI
48412015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
4842
4843 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
4844
c4914de6
MLI
48452015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
4846
4847 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
4848 when warning.
4849 * c-pragma.h (pragma_lex): Add optional loc argument.
4850
fcb87c50
MM
48512015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
4852
4853 * c-format.c (check_format_arg): Adjust to use common block size in all
4854 object pools.
4855
31bdd08a
DM
48562015-09-15 David Malcolm <dmalcolm@redhat.com>
4857
4858 * c-format.c (location_from_offset): Update for change in
4859 signature of location_get_source_line.
4860 * c-indentation.c (get_visual_column): Likewise.
4861 (line_contains_hash_if): Likewise.
4862
aa9f4b4c
MP
48632015-09-14 Marek Polacek <polacek@redhat.com>
4864
4865 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
4866 setting various warnings.
4867
aa256c4a
MP
48682015-09-14 Marek Polacek <polacek@redhat.com>
4869
4870 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
4871 a negative value.
4872
0f876f22
MW
48732015-09-11 Mark Wielaard <mjw@redhat.com>
4874
4875 PR c/28901
4876 * c.opt (Wunused-variable): Option from common.opt.
4877 (Wunused-const-variable): New option.
4878
273aa49e
PC
48792015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
4880
4881 PR c++/53184
4882 * c.opt ([Wsubobject-linkage]): Add.
4883
1807ffc1
MS
48842015-09-03 Martin Sebor <msebor@redhat.com>
4885
4886 PR c/66516
4887 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
4888 functions.
4889 * c-common.c (reject_gcc_builtin): Define.
4890
38942840
BI
48912015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
4892
4893 PR middle-end/60586
4894 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
4895 prototype.
4896 * c-gimplify.c (c_gimplify_expr): Added a call to the function
4897 cilk_gimplify_call_params_in_spawned_fn.
4898 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
4899 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
4900 unwrapping.
4901
c316b5e4
MP
49022015-08-25 Marek Polacek <polacek@redhat.com>
4903
4904 PR middle-end/67330
4905 * c-common.c (handle_weak_attribute): Don't check whether the
4906 visibility can be changed here.
4907
584a7c46
MLI
49082015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
4909
4910 * c-lex.c (c_lex_with_flags): Use explicit locations.
4911
a79683d5
TS
49122015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
4913
4914 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
4915 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
4916
61717a45
FXC
49172015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4918
4919 PR middle-end/36757
4920 * c-common.c (check_builtin_function_arguments): Add check
4921 for BUILT_IN_SIGNBIT argument.
4922
329524f5
PC
49232015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
4924
4925 PR c++/67160
4926 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
4927 in c++1z mode.
4928
4ee55665
MP
49292015-08-17 Marek Polacek <polacek@redhat.com>
4930
4931 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
4932 with whitespaces before qualifier names.
4933
b893e375
MP
49342015-08-12 Marek Polacek <polacek@redhat.com>
4935
4936 PR c++/55095
4937 * c-common.c (maybe_warn_shift_overflow): Properly handle
4938 left-shifting 1 into the sign bit.
4939
c2d89095
MLI
49402015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4941
4942 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
4943
971e17ff
AS
49442015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
4945 Braden Obrzut <admin@maniacsvault.net>
4946 Jason Merrill <jason@redhat.com>
4947
4948 Add C++ Concepts TS support.
4949 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
4950 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
4951 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
4952 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
4953 * c-opts.c (set_std_cxx1z): Set flag_concepts.
4954 * c.opt (fconcepts): New.
4955
b3d5bc62
JJ
49562015-08-02 Martin Sebor <msebor@redhat.com>
4957
4958 * c.opt (-Wframe-address): New warning option.
4959
8ebca419
PP
49602015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
4961
4962 * c-indentation.c (should_warn_for_misleading_indentation):
4963 Improve heuristics.
4964
1a1e101f
PP
49652015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
4966
4967 * c-indentation.c (get_visual_column): Add parameter first_nws,
4968 use it. Update comment documenting the function.
4969 (is_first_nonwhitespace_on_line): Remove.
4970 (should_warn_for_misleading_indentation): Replace usage of
4971 of is_first_nonwhitespace_on_line with get_visual_column.
4972
992118a1
PP
49732015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
4974
4975 * c-indentation.h (struct token_indent_info): Define.
4976 (get_token_indent_info): Define.
4977 (warn_for_misleading_information): Declare.
4978 * c-common.h (warn_for_misleading_information): Remove.
4979 * c-identation.c (warn_for_misleading_indentation):
4980 Change declaration to take three token_indent_infos. Adjust
4981 accordingly.
4982 * c-identation.c (should_warn_for_misleading_indentation):
4983 Likewise. Bail out early if the body is a compound statement.
4984 (guard_tinfo_to_string): Define.
4985
e8fa3817
JM
49862015-07-30 Jason Merrill <jason@redhat.com>
4987
4988 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
4989 '*' for reference decay.
4990
173864e8
MP
49912015-07-30 Marek Polacek <polacek@redhat.com>
4992
4993 * c-common.c (warn_tautological_cmp): Bail for float types.
4994
f2afe6dd
MP
49952015-07-27 Marek Polacek <polacek@redhat.com>
4996
4997 PR bootstrap/67030
4998 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
4999
05b28fd6
MP
50002015-07-27 Marek Polacek <polacek@redhat.com>
5001
5002 PR c++/66555
5003 PR c/54979
5004 * c-common.c (find_array_ref_with_const_idx_r): New function.
5005 (warn_tautological_cmp): New function.
5006 * c-common.h (warn_tautological_cmp): Declare.
5007 * c.opt (Wtautological-compare): New option.
5008
5a5062b8
MP
50092015-07-23 Marek Polacek <polacek@redhat.com>
5010
5011 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
5012 (ubsan_instrument_shift): Likewise.
5013
dc891fe7
MP
50142015-07-23 Marek Polacek <polacek@redhat.com>
5015
5016 PR sanitizer/66908
5017 * c-ubsan.c: Include gimplify.h.
5018 (ubsan_instrument_division): Unshare OP0 and OP1.
5019 (ubsan_instrument_shift): Likewise.
5020
451b5e48
MP
50212015-07-20 Marek Polacek <polacek@redhat.com>
5022 Richard Sandiford <richard.sandiford@arm.com>
5023
5024 PR c++/55095
5025 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
5026 Use EXPR_LOC_OR_LOC.
5027 (maybe_warn_shift_overflow): New function.
5028 * c-common.h (maybe_warn_shift_overflow): Declare.
5029 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
5030 * c.opt (Wshift-overflow): New option.
5031
fb0b2914
ML
50322015-07-16 Martin Liska <mliska@suse.cz>
5033
5034 * c-format.c (static void check_format_info_main): Use
5035 object_allocator instead of pool_allocator.
5036 (check_format_arg): Likewise.
5037 (check_format_info_main): Likewise.
5038
903f5c23
AM
50392015-07-15 Andrew MacLeod <amacleod@redhat.com>
5040
5041 * c-opts.c: Remove multiline #include comment.
5042
026c3cfd
AH
50432015-07-12 Aldy Hernandez <aldyh@redhat.com>
5044
5045 * c-common.c: Fix double word typos.
5046
bb49ee66
EB
50472015-07-10 Eric Botcazou <ebotcazou@adacore.com>
5048
5049 * c-ada-spec.h (cpp_operation): Revert latest change.
5050 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
5051 constructors and destructors.
5052
1916bcb5
AM
50532015-07-09 Andrew MacLeod <amacleod@redhat.com>
5054
5055 * c-common.h: Adjust includes for flags.h changes.
5056 * stub-objc.c: Likewise.
026c3cfd 5057
a9dcd529
EB
50582015-07-08 Eric Botcazou <ebotcazou@adacore.com>
5059
5060 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
5061 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
5062
b03b462f
JJ
50632015-07-08 Jakub Jelinek <jakub@redhat.com>
5064
5065 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
5066 are to be removed, return NULL rather than original clauses list.
5067
c7131fb2
AM
50682015-07-07 Andrew MacLeod <amacleod@redhat.com>
5069
5070 * array-notation-common.c: Adjust includes.
5071 * c-ada-spec.c: Likewise.
5072 * c-cilkplus.c: Likewise.
5073 * c-common.h: Likewise.
5074 * c-cppbuiltin.c: Likewise.
5075 * c-dump.c: Likewise.
5076 * c-format.c: Likewise.
5077 * c-gimplify.c: Likewise.
5078 * c-indentation.c: Likewise.
5079 * c-lex.c: Likewise.
5080 * c-omp.c: Likewise.
5081 * c-opts.c: Likewise.
5082 * c-pch.c: Likewise.
5083 * c-ppoutput.c: Likewise.
5084 * c-pragma.c: Likewise.
5085 * c-pretty-print.c: Likewise.
5086 * c-semantics.c: Likewise.
5087 * c-ubsan.c: Likewise.
5088 * cilk.c: Likewise.
5089 * stub-objc.c: Likewise.
5090
2a7fb83f
EB
50912015-07-07 Eric Botcazou <ebotcazou@adacore.com>
5092
5093 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
5094 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
5095
a03c9bf1
JM
50962015-07-01 Jason Merrill <jason@redhat.com>
5097
36a85135
JM
5098 * c-common.h (D_CXX11): Rename from D_CXX0X.
5099 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
5100 * c-common.c: Adjust.
5101
e7fa68d5
JM
5102 * c-opts.c (c_common_post_options): Default to C++14.
5103
a03c9bf1
JM
5104 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
5105
fe95b036
ESR
51062015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
5107
5108 Implement N4197 - Adding u8 character literals
b3d5bc62 5109 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
a64be36b 5110 CPP_CHAR.
b3d5bc62 5111 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
a64be36b 5112 CPP_UTF8CHAR_USERDEF tokens.
b3d5bc62 5113 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
a64be36b
EB
5114 and CPP_UTF8CHAR tokens.
5115 (lex_charconst): Treat CPP_UTF8CHAR token.
fe95b036 5116
da2e71c9
MLI
51172015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
5118
5119 PR fortran/66605
5120 * c-common.c (do_warn_unused_parameter): Move here.
5121 * c-common.h (do_warn_unused_parameter): Declare.
5122
b155cfd9
MP
51232015-06-29 Marek Polacek <polacek@redhat.com>
5124
5125 PR c/66322
5126 * c-common.c (check_case_bounds): Add bool * parameter. Set
5127 OUTSIDE_RANGE_P.
5128 (c_add_case_label): Add bool * parameter. Pass it down to
5129 check_case_bounds.
5130 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
5131 warning here.
5132 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
5133 declarations.
5134
31521951
MP
51352015-06-27 Marek Polacek <polacek@redhat.com>
5136
5137 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
5138 or VECTOR_INTEGER_TYPE_P throughout.
5139 * c-gimplify.c: Likewise.
5140
22d03525
MP
51412015-06-26 Marek Polacek <polacek@redhat.com>
5142
5143 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
5144 * c-common.c (c_fully_fold_internal): Likewise.
5145 (c_alignof_expr): Likewise.
5146 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
5147 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
b1726d6c 5148 * cilk.c (create_parm_list): Likewise.
22d03525 5149
af05e6e5
MP
51502015-06-26 Marek Polacek <polacek@redhat.com>
5151
5152 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
5153
f0889939
AM
51542015-06-25 Andrew MacLeod <amacleod@redhat.com>
5155
5156 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
5157 * c-gimplify.c: Likewise.
5158 * c-pragma.c: Likewise.
5159 * c-ubsan.c: Likewise.
5160 * cilk.c: Likewise.
5161
ca752f39
RS
51622015-06-25 Richard Sandiford <richard.sandiford@arm.com>
5163
5164 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
5165 ggc_hasher.
5166
16a16ec7
AM
51672015-06-25 Andrew MacLeod <amacleod@redhat.com>
5168
5169 * cilk.c: Move calls.h after tm.h in the include chain.
5170
0ae9bd27
MP
51712015-06-25 Marek Polacek <polacek@redhat.com>
5172
5173 * array-notation-common.c: Use VAR_P throughout.
5174 * c-ada-spec.c: Likewise.
5175 * c-common.c: Likewise.
5176 * c-format.c: Likewise.
5177 * c-gimplify.c: Likewise.
5178 * c-omp.c: Likewise.
5179 * c-pragma.c: Likewise.
5180 * c-pretty-print.c: Likewise.
5181 * cilk.c: Likewise.
5182
62f9079a
MP
51832015-06-25 Marek Polacek <polacek@redhat.com>
5184
5185 * cilk.c (extract_free_variables): Use is_global_var.
5186
0fa16060
RS
51872015-06-23 Richard Sandiford <richard.sandiford@arm.com>
5188
5189 * c-common.c: Don't include target-def.h.
5190
a68ae2e1
MP
51912015-06-23 Marek Polacek <polacek@redhat.com>
5192
5193 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
5194 when comparing INTEGER_CSTs.
5195
c6a2f2d9
PMR
51962015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
5197
5198 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
5199 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
5200 (dump_ada_template): Skip partially specialized types.
5201
6b4db501
MM
52022015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
5203
5204 * c-common.c (scalar_to_vector): Use std::swap instead of manually
5205 swapping.
5206
abb226c9
AM
52072015-06-17 Andrew MacLeod <amacleod@redhat.com>
5208
5209 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
5210 * c-ada-spec.c: Likewise.
5211 * c-cilkplus.c: Likewise.
5212 * c-common.c: Likewise.
5213 * c-common.h: Likewise.
5214 * c-cppbuiltin.c: Likewise.
5215 * c-dump.c: Likewise.
5216 * c-format.c: Likewise.
5217 * c-gimplify.c: Likewise.
5218 * c-indentation.c: Likewise.
5219 * c-lex.c: Likewise.
5220 * c-omp.c: Likewise.
5221 * c-opts.c: Likewise.
5222 * c-pch.c: Likewise.
5223 * c-ppoutput.c: Likewise.
5224 * c-pragma.c: Likewise.
5225 * c-pretty-print.c: Likewise.
5226 * c-semantics.c: Likewise.
5227 * c-ubsan.c: Likewise.
5228 * cilk.c: Likewise.
5229 * stub-objc.c: Likewise.
5230
076fecad
PP
52312015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
5232
5233 PR c++/65168
5234 * c-common.c (c_common_truthvalue_conversion): Warn when
5235 converting an address of a reference to a truth value.
5236
13fdf2e2
AM
52372015-06-08 Andrew MacLeod <amacleod@redhat.com>
5238
5239 * array-notation-common.c : Adjust include files.
5240 * c-ada-spec.c : Likewise.
5241 * c-cilkplus.c : Likewise.
5242 * c-common.c : Likewise.
5243 * c-common.h : Likewise.
5244 * c-cppbuiltin.c : Likewise.
5245 * c-dump.c : Likewise.
5246 * c-format.c : Likewise.
5247 * c-gimplify.c : Likewise.
5248 * c-indentation.c : Likewise.
5249 * c-lex.c : Likewise.
5250 * c-omp.c : Likewise.
5251 * c-opts.c : Likewise.
5252 * c-pch.c : Likewise.
5253 * c-ppoutput.c : Likewise.
5254 * c-pragma.c : Likewise.
5255 * c-pretty-print.c : Likewise.
5256 * c-semantics.c : Likewise.
5257 * c-ubsan.c : Likewise.
5258 * cilk.c : Likewise.
5259 * stub-objc.c : Likewise.
5260
a1661b90
MP
52612015-06-08 Marek Polacek <polacek@redhat.com>
5262
5263 PR c/66415
5264 * c-format.c (location_from_offset): Return LOC if LINE is null.
5265
d7438551
AH
52662015-06-05 Aldy Hernandez <aldyh@redhat.com>
5267
5268 * c-common.h (c_parse_final_cleanups): New prototype.
5269 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
5270
b3d5bc62
JJ
52712015-06-04 Sriraman Tallam <tmsriram@google.com>
5272
5273 * c-common.c (noplt): New attribute.
5274 (handle_noplt_attribute): New handler.
5275
ecb9f223
AM
52762015-06-04 Andrew MacLeod <amacleod@redhat.com>
5277
5278 * array-notation-common.c: Adjust includes for restructured coretypes.h.
5279 * c-ada-spec.c: Likewise.
5280 * c-cilkplus.c: Likewise.
5281 * c-common.c: Likewise.
5282 * c-common.h: Likewise.
5283 * c-cppbuiltin.c: Likewise.
5284 * c-dump.c: Likewise.
5285 * c-format.c: Likewise.
5286 * c-gimplify.c: Likewise.
5287 * c-indentation.c: Likewise.
5288 * c-lex.c: Likewise.
5289 * c-omp.c: Likewise.
5290 * c-opts.c: Likewise.
5291 * c-pch.c: Likewise.
5292 * c-ppoutput.c: Likewise.
5293 * c-pragma.c: Likewise.
5294 * c-pretty-print.c: Likewise.
5295 * c-semantics.c: Likewise.
5296 * c-ubsan.c: Likewise.
5297 * cilk.c: Likewise.
5298 * stub-objc.c: Likewise.
5299
6ac48155
DM
53002015-06-02 David Malcolm <dmalcolm@redhat.com>
5301
5302 PR c/66220:
5303 * c-indentation.c (should_warn_for_misleading_indentation): Use
5304 expand_location rather than expand_location_to_spelling_point.
5305 Don't warn if the guarding statement is more indented than the
5306 next/body stmts.
5307
773ce42e
DM
53082015-06-02 David Malcolm <dmalcolm@redhat.com>
5309
5310 * c-indentation.c (warn_for_misleading_indentation): Bail out
5311 immediately if -Wmisleading-indentation isn't enabled.
5312
4fef8379
ML
53132015-06-01 Martin Liska <mliska@suse.cz>
5314
5315 * c-format.c (check_format_arg):Use new type-based pool allocator.
5316 (check_format_info_main) Likewise.
5317
1edfb384
EB
53182015-05-31 Eric Botcazou <ebotcazou@adacore.com>
5319
5320 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
5321 (has_nontrivial_methods): Likewise.
5322
9677ef52
MP
53232015-05-25 Marek Polacek <polacek@redhat.com>
5324
5325 * c-ubsan.c (ubsan_instrument_shift): Use type0.
5326
fd5c817a
MP
53272015-05-22 Marek Polacek <polacek@redhat.com>
5328
5329 PR c/47043
5330 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
5331
a2f45fe6 53322015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
581edfa3
TS
5333
5334 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
5335 STACK_GROWS_DOWNWARD.
5336
a2f45fe6 53372015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
62f9f30b
TS
5338
5339 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
5340 STACK_GROWS_DOWNWARD rather than if it is defined.
5341
0fee2ac2 53422015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
b1726d6c 5343
0fee2ac2
MLI
5344 PR c/52952
5345 * c-format.c (location_column_from_byte_offset): New.
5346 (location_from_offset): New.
5347 (struct format_wanted_type): Add offset_loc field.
5348 (check_format_info): Move handling of location for extra arguments
5349 closer to the point of warning.
5350 (check_format_info_main): Pass the result of location_from_offset
5351 to warning_at.
5352 (format_type_warning): Pass the result of location_from_offset
5353 to warning_at.
5354
cf4ef6f7
MP
53552015-05-20 Marek Polacek <polacek@redhat.com>
5356
5357 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
5358
3a65ee74
MP
53592015-05-20 Marek Polacek <polacek@redhat.com>
5360
5361 * c-ada-spec.c (dump_sloc): Use DECL_P.
5362
21b634ae
MP
53632015-05-20 Marek Polacek <polacek@redhat.com>
5364
5365 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
5366 * c-common.c: Likewise.
5367
0e50b624
DM
53682015-05-19 David Malcolm <dmalcolm@redhat.com>
5369
5370 * c-common.h (fe_file_change): Strengthen param from
5371 const line_map * to const line_map_ordinary *.
5372 (pp_file_change): Likewise.
5373 * c-lex.c (fe_file_change): Likewise.
5374 (cb_define): Use linemap_check_ordinary when invoking
5375 SOURCE_LINE.
5376 (cb_undef): Likewise.
5377 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
5378 invoking cb_file_change.
5379 (c_finish_options): Likewise.
5380 (push_command_line_include): Likewise.
5381 (cb_file_change): Strengthen param "new_map" from
5382 const line_map * to const line_map_ordinary *.
5383 * c-ppoutput.c (cb_define): Likewise for local "map".
5384 (pp_file_change): Likewise for param "map" and local "from".
5385
fab27f52
MM
53862015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
5387
5388 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
5389
2fe1d762
TV
53902015-05-18 Tom de Vries <tom@codesourcery.com>
5391
5392 * c-common.c (build_va_arg_1): New function.
5393 (build_va_arg): Add address operator to va_list operand if necessary.
5394
7a37fa90
MM
53952015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
5396
5397 PR c/48956
5398 * c-common.c (int_safely_convertible_to_real_p): Define.
5399 (unsafe_conversion_p): Check conversions involving complex types.
5400 (conversion_warning): Add new warning message for conversions which
5401 discard imaginary component.
5402 * c-common.h: (enum conversion_safety): Add new enumerator for such
5403 conversions.
5404
3aa3c9fc
MP
54052015-05-14 Marek Polacek <polacek@redhat.com>
5406
5407 PR c/66066
5408 PR c/66127
5409 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
5410 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
5411 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
5412 use it. If FOR_INT_CONST, require that all evaluated operands be
5413 INTEGER_CSTs.
5414
c3388e62
DM
54152015-05-12 David Malcolm <dmalcolm@redhat.com>
5416
5417 * c-common.h (warn_for_misleading_indentation): New prototype.
5418 * c-indentation.c: New file.
5419 * c.opt (Wmisleading-indentation): New option.
5420
c7b38fd5
TV
54212015-05-12 Tom de Vries <tom@codesourcery.com>
5422
5423 PR tree-optimization/66010
5424 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
5425
381bf11e
JM
54262015-05-09 Jason Merrill <jason@redhat.com>
5427
edff0c06
JM
5428 * c-opts.c (c_common_post_options): Also clear
5429 cpp_opts->cpp_warn_cxx11_compat.
5430
129211bc
JM
5431 * c-common.h (enum cxx_dialect): Add cxx_unset.
5432 * c-common.c (cxx_dialect): Initialize to cxx_unset.
5433 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
5434
381bf11e
JM
5435 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
5436 (std=gnu++0x): Mark as Undocumented.
5437 (std=gnu++1y): Add deprecated message.
5438
fe191308
JM
54392015-05-08 Jason Merrill <jason@redhat.com>
5440
765189ff
JM
5441 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
5442 * c-opts.c: Adjust.
5443
fe191308
JM
5444 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
5445
755e528f
MP
54462015-05-08 Marek Polacek <polacek@redhat.com>
5447
5448 PR c/64918
5449 * c.opt (Woverride-init-side-effects): New option.
5450
0173bd2a
MP
54512015-05-07 Marek Polacek <polacek@redhat.com>
5452
5453 PR c/65179
5454 * c-common.c (c_fully_fold_internal): Warn when left shifting a
5455 negative value.
5456 * c.opt (Wshift-negative-value): New option.
5457 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
5458 when -Wextra and C99/C++11 mode.
5459
e0f0d3b9
MP
54602015-05-07 Marek Polacek <polacek@redhat.com>
5461 Martin Uecker <uecker@eecs.berkeley.edu>
5462
5463 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
5464 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
5465
8243e2a9
JM
54662015-05-05 Jason Merrill <jason@redhat.com>
5467
5468 * c.opt (Wterminate): New.
5469
577cd070
MP
54702015-04-30 Marek Polacek <polacek@redhat.com>
5471
5472 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
5473 require that the non-constant be of a boolean type.
5474
0373796b
JT
54752015-04-29 Josh Triplett <josh@joshtriplett.org>
5476
e0f0d3b9
MP
5477 * c-common.c (handle_section_attribute): Refactor to reduce
5478 nesting and distinguish between error cases.
0373796b 5479
716c0ba6
MP
54802015-04-29 Marek Polacek <polacek@redhat.com>
5481
5482 PR c/64610
5483 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
5484 with 0/1.
5485
8848828b
JJ
54862015-04-29 Jakub Jelinek <jakub@redhat.com>
5487
5488 * c-common.h (omp_clause_mask): Unconditionally define as a class.
5489 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
5490 HOST_BITS_PER_WIDE_INT.
5491
ecd0e562
TV
54922015-04-28 Tom de Vries <tom@codesourcery.com>
5493
5494 PR tree-optimization/65887
5495 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
5496
2a877204 54972015-04-28 Eric Botcazou <ebotcazou@adacore.com>
e0f0d3b9 5498 Pierre-Marie de Rodat <derodat@adacore.com>
2a877204
EB
5499
5500 * c-ada-spec.c (in_function): Delete.
5501 (dump_generic_ada_node): Do not change in_function and remove the
5502 redundant code dealing with it.
5503 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
5504 (print_ada_methods): Output the static member functions in a nested
5505 package after the regular methods as well as associated renamings.
5506
4853031e
MP
55072015-04-24 Marek Polacek <polacek@redhat.com>
5508
5509 PR c/65830
5510 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
5511 and OPT_Wshift_count_overflow.
5512
8c2b7f79
MP
5513 PR c/63357
5514 * c-common.c (warn_logical_operator): Warn if the operands have the
5515 same expressions.
5516
b8787813
MP
55172015-04-24 Marek Polacek <polacek@redhat.com>
5518
5519 PR c/61534
5520 * c-common.c (warn_logical_operator): Bail if either operand comes
5521 from a macro expansion.
5522
8fba1830
BRF
55232015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
5524
5525 PR target/55143
5526 * c-common.c (c_default_pointer_mode): Add definition.
5527 * c-common.h (c_default_pointer_mode): Add declaration.
5528
17958621
JJ
55292015-03-11 Jakub Jelinek <jakub@redhat.com>
5530
5531 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
5532 on record_builtin_type argument.
5533
7ccb1a11
JJ
55342015-03-10 Jakub Jelinek <jakub@redhat.com>
5535
5536 PR c/65120
5537 * c-common.c (warn_logical_not_parentheses): Don't warn for
5538 !x == 0 or !x != 0.
5539
04fd785e
MP
55402015-03-07 Marek Polacek <polacek@redhat.com>
5541
5542 PR sanitizer/65280
5543 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
5544 before trying to figure out whether we have a flexible array member.
5545
a4e26206 55462015-03-06 Eric Botcazou <ebotcazou@adacore.com>
8e745a17 5547 Jonathan Wakely <jwakely.gcc@gmail.com>
a4e26206
EB
5548
5549 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
5550
0d2489f4
EB
55512015-03-05 Eric Botcazou <ebotcazou@adacore.com>
5552
5553 PR ada/65319
5554 * c-ada-spec.c (print_destructor): Remove obsolete code.
5555
83ed54d7
EB
55562015-03-01 Eric Botcazou <ebotcazou@adacore.com>
5557
5558 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
5559 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
5560 DECL_TEMPLATE_RESULT emulations.
5561 (dump_ada_template)): Add guard for TYPE_METHODS.
5562
7631f0e2
MP
55632015-02-27 Marek Polacek <polacek@redhat.com>
5564
5565 PR c/65040
5566 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
5567
d1783ae5
KT
55682015-02-27 Kai Tietz <ktietz@redhat.com>
5569
5570 PR c/35330
5571 * c-pragma.c (handle_pragma_weak): Do not try to create
5572 weak/alias of declarations not being function, or variable
5573 declarations.
5574
56a9f6bc
TS
55752015-02-24 Thomas Schwinge <thomas@codesourcery.com>
5576
5577 PR libgomp/64625
5578 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
5579 Remove macros.
5580 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
5581
3d5cb23d
MP
55822015-02-16 Marek Polacek <polacek@redhat.com>
5583
5584 PR c/65066
5585 * c-format.c (check_format_types): Handle null param.
5586
fa008882
MP
55872015-02-13 Marek Polacek <polacek@redhat.com>
5588
5589 PR c/65040
5590 * c-format.c (check_format_types): Don't warn about different
5591 signedness if the original value is in the range of WANTED_TYPE.
5592
785f21af
JM
55932015-02-12 Jason Merrill <jason@redhat.com>
5594
5595 PR c++/64956
5596 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
5597 to the current highest version.
5598 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
5599
4886ec8e
JJ
56002015-02-04 Jakub Jelinek <jakub@redhat.com>
5601
5602 PR c/64824
5603 PR c/64868
5604 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
5605 instead of RDIV_EXPR. Use build_binary_op instead of
5606 build2_loc.
5607
40fecdd6
JM
56082015-01-30 Joseph Myers <joseph@codesourcery.com>
5609
5610 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
5611 to pass input_location as first argument.
5612
a0c88d06
TV
56132015-01-23 Tom de Vries <tom@codesourcery.com>
5614
5615 PR libgomp/64672
5616 * c.opt (fopenacc): Mark as LTO option.
5617
1506ae0e
TV
56182015-01-23 Tom de Vries <tom@codesourcery.com>
5619
5620 PR libgomp/64707
5621 * c.opt (fopenmp): Mark as LTO option.
5622
31be63ab
JJ
56232015-01-21 Jakub Jelinek <jakub@redhat.com>
5624
5625 PR c/63307
b1726d6c 5626 * cilk.c (fill_decls_vec): Only put decls into vector v.
31be63ab
JJ
5627 (compare_decls): Fix up formatting.
5628
56292015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
5630
5631 PR c/63307
5632 * cilk.c: Include vec.h.
5633 (struct cilk_decls): New structure.
5634 (wrapper_parm_cb): Split this function to...
5635 (fill_decls_vec): ...this...
5636 (create_parm_list): ...and this.
5637 (compare_decls): New function.
5638 (for_local_cb): Remove.
5639 (wrapper_local_cb): Ditto.
5640 (build_wrapper_type): For now first traverse and fill vector of
5641 declarations then sort it and then deal with sorted vector.
5642 (cilk_outline): Ditto.
5643 (declare_one_free_variable): Ditto.
5644
6875457f
JM
56452015-01-21 Jason Merrill <jason@redhat.com>
5646
5647 PR c++/64629
5648 * c-format.c (check_format_arg): Call decl_constant_value.
5649
185c9e56
ML
56502015-01-19 Martin Liska <mliska@suse.cz>
5651
5652 * c-common.c (handle_noicf_attribute): New function.
5653
41dbbb37
TS
56542015-01-15 Thomas Schwinge <thomas@codesourcery.com>
5655 Bernd Schmidt <bernds@codesourcery.com>
5656 James Norris <jnorris@codesourcery.com>
5657 Cesar Philippidis <cesar@codesourcery.com>
5658 Ilmir Usmanov <i.usmanov@samsung.com>
5659 Jakub Jelinek <jakub@redhat.com>
5660
5661 * c.opt (fopenacc): New option.
5662 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
5663 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
5664 New macros.
5665 * c-common.h (c_finish_oacc_wait): New prototype.
5666 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
5667 (c_finish_oacc_wait): New function.
5668 * c-pragma.c (oacc_pragmas): New variable.
5669 (c_pp_lookup_pragma, init_pragma): Handle it.
5670 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
5671 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
5672 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
5673 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
5674 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
5675 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
5676 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
5677 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
5678 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
5679 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
5680 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
5681 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
5682 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
5683 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
5684 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
5685 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
5686 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
5687 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
5688 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
5689 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
5690 PRAGMA_OACC_CLAUSE_WORKER.
5691
3f8257db 56922015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
5434dc07
MD
5693
5694 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
5695 for the new option fstack-protector_explicit.
5696 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
5697 (handle_stack_protect_attribute): New function.
5698
3f8257db 56992015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
de1b5c17
MU
5700
5701 * c.opt: New option -Warray-bounds=.
5702
adfac8df
JJ
57032015-01-09 Michael Collison <michael.collison@linaro.org>
5704
5705 * array-notation-common.c: Include hash-set.h, machmode.h,
5706 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
5707 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
5708 * c-ada-spec.c: Ditto.
5709 * c-cilkplus.c: Ditto.
5710 * c-common.c: Include input.h due to flattening of tree.h.
5711 Define macro GCC_C_COMMON_C.
5712 * c-common.h: Flatten tree.h header files into c-common.h.
5713 Remove include of tree-core.h.
5714 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
5715 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
5716 fold-const.h, wide-int.h, and inchash.h due to
5717 flattening of tree.h.
5718 * c-dump.c: Ditto.
5719 * c-format.c: Flatten tree.h header files into c-common.h.
5720 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
5721 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
5722 fold-const.h, wide-int.h, and inchash.h due to
5723 flattening of tree.h.
5724 * c-dump.c: Include hash-set.h, machmode.h,
5725 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
5726 fold-const.h, wide-int.h, and inchash.h due to
5727 flattening of tree.h.
5728 * c-format.c: Include hash-set.h, machmode.h,
5729 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
5730 fold-const.h, wide-int.h, inchash.h and real.h due to
5731 flattening of tree.h.
5732 * c-gimplify.c: Include hash-set.h, machmode.h,
5733 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
5734 fold-const.h, wide-int.h, and inchash.h due to
5735 flattening of tree.h.
5736 * cilk.c: Ditto.
5737 * c-lex.c: Ditto.
5738 * c-omp.c: Ditto.
5739 * c-opts.c: Ditto.
5740 * c-pch.c: Ditto.
5741 * c-ppoutput.c: Ditto.
5742 * c-pragma.c: Ditto.
5743 * c-pretty-print.c: Ditto.
5744 * c-semantics.c: Ditto.
5745 * c-ubsan.c: Ditto.
5746 * stub-objc.c: Ditto.
5747
f5481fc4
JM
57482015-01-08 Jason Merrill <jason@redhat.com>
5749
5750 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
5751 do_ubsan_in_current_function.
5752 (ubsan_maybe_instrument_reference_or_call): Likewise.
5753 * c-ubsan.h: Declare it.
5754
de35aa66
MS
57552015-01-08 Mike Stump <mikestump@comcast.net>
5756
5757 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
5758
4a9a42ab
MP
57592015-01-07 Marek Polacek <polacek@redhat.com>
5760
5761 PR c/64440
5762 * c-common.c (c_fully_fold_internal): Warn for division and modulo
5763 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
5764
2f42e5de
TS
57652015-01-05 Trevor Saunders <tsaunders@mozilla.com>
5766
5767 PR c++/31397
5768 * c.opt (Wsuggest-override): New option.
5769
5624e564
JJ
57702015-01-05 Jakub Jelinek <jakub@redhat.com>
5771
5772 Update copyright years.
5773
5bd012f8
MP
57742015-01-05 Marek Polacek <polacek@redhat.com>
5775
5776 PR c/64423
5777 * c-common.c (warn_array_subscript_with_type_char): Add location_t
5778 parameter. Use it.
5779 * c-common.h (warn_array_subscript_with_type_char): Update
5780 declaration.
5781
a7fa8d18
ESR
57822014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
5783
5784 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
5785 Control macro with flag_sized_deallocation.
5786
3f8257db 57872014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
768952be
MU
5788
5789 * c.opt (Wdiscarded-array-qualifiers): New option.
5790
1f8d3e84
JJ
57912014-12-19 Jakub Jelinek <jakub@redhat.com>
5792
5793 PR preprocessor/63831
5794 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
5795 and __has_cpp_attribute here.
5796 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
5797 c_common_has_attribute.
5798 * c-common.h (c_common_has_attribute): New prototype.
5799 * c-lex.c (init_c_lex): Set cb->has_attribute to
5800 c_common_has_attribute instead of cb_has_attribute.
5801 (get_token_no_padding): New function.
5802 (cb_has_attribute): Renamed to ...
5803 (c_common_has_attribute): ... this. No longer static. Use
5804 get_token_no_padding, require ()s, don't build TREE_LIST
5805 unnecessarily, fix up formatting, adjust diagnostics, call
5806 init_attributes.
5807
20b06add
JM
58082014-12-15 Jason Merrill <jason@redhat.com>
5809
5810 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
5811 (-Wsized-deallocation): New.
5812 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
5813 to on in C++14 and up.
5814
94a073b2
JM
58152014-12-11 Jason Merrill <jason@redhat.com>
5816
acaa5911
JM
5817 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
5818
94a073b2
JM
5819 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
5820 we aren't complaining about VLAs.
5821
7fb66c15
MP
58222014-12-06 Marek Polacek <polacek@redhat.com>
5823
5824 PR tree-optimization/64183
5825 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
5826 shift-expression if it is integer_type_node. Use types_compatible_p.
5827
b731b390
JJ
58282014-11-29 Jakub Jelinek <jakub@redhat.com>
5829
5830 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
5831 last argument from create_tmp_var_raw and create_tmp_var calls.
5832 * cilk.c (gimplify_cilk_spawn): Likewise.
5833 * c-omp.c (c_finish_omp_atomic): Likewise.
5834
6a4da643
MP
58352014-11-28 Marek Polacek <polacek@redhat.com>
5836
5837 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
5838 instead of unsigned_type_node.
5839
541e35a6
MP
58402014-11-28 Marek Polacek <polacek@redhat.com>
5841
5842 PR c/63862
5843 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
5844 to op1_utype.
5845 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
5846 expression to unsigned_type_node.
5847
dcc97066
MW
58482014-11-20 Mark Wielaard <mjw@redhat.com>
5849
5850 PR debug/38757
5851 * c-opts.c (set_std_c89): Set lang_hooks.name.
5852 (set_std_c99): Likewise.
5853 (set_std_c11): Likewise.
5854 (set_std_cxx98): Likewise.
5855 (set_std_cxx11): Likewise.
5856 (set_std_cxx14): Likewise.
5857 (set_std_cxx1z): Likewise.
5858
aa7da51a
JJ
58592014-11-21 Jakub Jelinek <jakub@redhat.com>
5860
5861 PR target/63764
5862 * c-common.h (convert_vector_to_pointer_for_subscript): Change
5863 return type to bool.
009a3480 5864 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
5865 (convert_vector_to_pointer_for_subscript): Change return type to
5866 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
5867 and copy it into a TARGET_EXPR and use that instead of *vecp
5868 directly.
5869
538dd0b7
DM
58702014-11-19 David Malcolm <dmalcolm@redhat.com>
5871
5872 Merger of git branch "gimple-classes-v2-option-3".
5873 * ChangeLog.gimple-classes: New.
5874 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
5875 from being just a vec<gimple> to a vec<gbind *>.
5876
c39a5e99
JJ
58772014-11-18 Jakub Jelinek <jakub@redhat.com>
5878
5879 PR sanitizer/63813
5880 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
5881 argument to ptype, set type to TREE_TYPE (ptype). Don't call
5882 get_pointer_alignment for non-pointers. Use ptype, or if it is
5883 reference type, corresponding pointer type, as type of kind
5884 argument.
5885 (ubsan_maybe_instrument_reference,
5886 ubsan_maybe_instrument_member_call): Adjust callers.
5887
8537a4a9
MP
58882014-11-15 Marek Polacek <polacek@redhat.com>
5889
5890 PR middle-end/63884
5891 * array-notation-common.c (is_sec_implicit_index_fn): Return false
5892 for NULL fndecl.
5893 (extract_array_notation_exprs): Return for NULL node.
5894
2079956a
JM
58952014-11-12 Joseph Myers <joseph@codesourcery.com>
5896
5897 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
5898 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
5899
1304953e
JJ
59002014-11-12 Jakub Jelinek <jakub@redhat.com>
5901
5902 PR c/59708
5903 * c-common.c (check_builtin_function_arguments): Handle
5904 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
5905
e5e44252
AK
59062014-11-10 Andi Kleen <ak@linux.intel.com>
5907
5908 PR c/60804
5909 * c-common.h (check_no_cilk): Declare.
5910 * cilk.c (get_error_location): New function.
5911 (check_no_cilk): Dito.
5912
e64b984d
AK
59132014-11-10 Andi Kleen <ak@linux.intel.com>
5914
5915 * cilk.c (recognize_spawn): Use expression location
5916 for error message.
5917
13c21655
PC
59182014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
5919
5920 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
5921
42fd12b1
ESR
59222014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
5923
5924 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
5925 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
5926 (__cpp_range_based_for, __cpp_initializer_lists,
5927 __cpp_delegating_constructors, __cpp_nsdmi,
5928 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
5929 for C++11; (__cpp_attribute_deprecated): Remove in favor of
5930 __has_cpp_attribute.
5931 * c-lex.c (cb_has_attribute): New callback CPP function;
5932 (init_c_lex): Set has_attribute callback.
5933
6f450181
RB
59342014-11-04 Richard Biener <rguenther@suse.de>
5935
5936 * c-common.c (shorten_compare): Do not shorten mixed
5937 DFP and non-DFP compares.
5938
26f0e1d6
ESR
59392014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
5940
5941 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
5942 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
5943 Commentary and rearrangement of tests.
5944 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
5945 Commentary and rearrangement of tests.
ab20d992 5946 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto.
26f0e1d6
ESR
5947 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
5948
ef4bddc2
RS
59492014-10-29 Richard Sandiford <richard.sandiford@arm.com>
5950
5951 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
5952 enum from machine_mode.
5953
c582198b
AM
59542014-10-28 Andrew MacLeod <amacleod@redhat.com>
5955
adfac8df
JJ
5956 * c-common.c: Adjust include files.
5957 * c-gimplify.c: Ditto.
5958 * cilk.c: Ditto.
5959 * c-pragma.c: Ditto.
5960 * c-ubsan.c: Ditto.
c582198b 5961
60393bbc
AM
59622014-10-27 Andrew MacLeod <amacleod@redhat.com>
5963
5964 * c-gimplify.c: Adjust include files.
5965
d723bb7c
MLI
59662014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
5967
5968 PR c++/53061
5969 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
5970 c_common_initialize_diagnostics.
5971 * c-common.h: Likewise.
5972
90f3520e
MP
59732014-10-24 Marek Polacek <polacek@redhat.com>
5974
5975 PR c/56980
5976 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
5977 print "struct"/"union"/"enum" for typedefed names.
5978
59d7607a
MP
59792014-10-23 Marek Polacek <polacek@redhat.com>
5980
5981 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
5982 in unsigned type.
5983
d95a2703
JJ
59842014-10-22 Jakub Jelinek <jakub@redhat.com>
5985 Yury Gribov <y.gribov@samsung.com>
5986
5987 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
5988 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
5989 instead of flag_sanitize_recover as bool flag.
5990
8e6ef852
KY
59912014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
5992
5993 * cilk.c: Revert previous change.
5994
948cf550
IZ
59952014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
5996
5997 PR c/63307
5998 * cilk.c: Include vec.h.
5999 (struct cilk_decls): New structure.
6000 (wrapper_parm_cb): Split this function to...
6001 (fill_decls_vec): ...this...
6002 (create_parm_list): ...and this.
6003 (compare_decls): New function.
6004 (for_local_cb): Remove.
6005 (wrapper_local_cb): Ditto.
6006 (build_wrapper_type): For now first traverse and fill vector of
6007 declarations then sort it and then deal with sorted vector.
6008 (cilk_outline): Ditto.
6009 (declare_one_free_variable): Ditto.
6010
92574c7c
MP
60112014-10-17 Marek Polacek <polacek@redhat.com>
6012
6013 * c-opts.c (c_common_post_options): Set warn_implicit_int.
6014 * c.opt (Wimplicit-int): Initialize to -1.
6015
83685514
AM
60162014-10-16 Andrew MacLeod <amacleod@redhat.com>
6017
6018 * c-pragma.c: Adjust include files.
6019 * c-semantics.c: Likewise.
6020
5b8300ea
DD
60212014-10-16 DJ Delorie <dj@redhat.com>
6022
6023 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
6024 multiples of bytes.
6025
5f83e90b
JM
60262014-10-14 Jason Merrill <jason@redhat.com>
6027
6028 PR c++/63455
6029 * c-common.h (CPP_PREPARSED_EXPR): New.
6030 (N_CP_TTYPES): Adjust.
6031
d73326ca
MP
60322014-10-15 Marek Polacek <polacek@redhat.com>
6033
6034 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
6035
78a7c317
DD
60362014-10-14 DJ Delorie <dj@redhat.com>
6037
6038 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
6039 types, not just __int128.
6040 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
6041 types, not just __int128.
6042 (cpp_atomic_builtins): Round pointer sizes up.
6043 (type_suffix): Use type precision, not specific types.
6044 * c-common.c (c_common_reswords): Remove __int128 special case.
6045 (c_common_type_for_size): Check for all __intN types, not just
6046 __int128.
6047 (c_common_type_for_mode): Likewise.
6048 (c_common_signed_or_unsigned_type): Likewise.
6049 (c_build_bitfield_integer_type): Likewise.
6050 (c_common_nodes_and_builtins): Likewise.
6051 (keyword_begins_type_specifier): Likewise.
6052 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
6053 __intN variants.
6054
2a22f99c
TS
60552014-10-12 Trevor Saunders <tsaunders@mozilla.com>
6056
6057 * c-common.c: Use hash_table instead of hashtab.
6058
2a8ef767
ESR
60592014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
6060
adfac8df 6061 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
6062 C++11 section.
6063
3c9aabbd
MG
60642014-10-03 Marc Glisse <marc.glisse@inria.fr>
6065
6066 PR c++/54427
6067 PR c++/57198
6068 PR c++/58845
6069 * c-common.c (warn_logical_operator): Punt for vectors.
6070
a15f7cb8
ESR
60712014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
6072
6073 Implement SD-6: SG10 Feature Test Recommendations
6074 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
6075 macros and the __has_header macro.
6076
8d0cf15e
JM
60772014-09-30 Jason Merrill <jason@redhat.com>
6078
dd5d5481
JM
6079 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
6080 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
6081 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
6082
b752325e
JM
6083 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
6084 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
6085
8d0cf15e
JM
6086 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
6087 * c-common.c (c_common_reswords): Remove __is_convertible_to.
6088
083e891e
MP
60892014-09-24 Marek Polacek <polacek@redhat.com>
6090
6091 PR c/61405
6092 PR c/53874
6093 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
6094
7861b648
AK
60952014-09-23 Andi Kleen <ak@linux.intel.com>
6096
6097 * c-common.c (handle_no_reorder_attribute): New function.
6098 (c_common_attribute_table): Add no_reorder attribute.
6099
9a79452d
JM
61002014-09-22 Joseph Myers <joseph@codesourcery.com>
6101
6102 * c-cppbuiltin.c (c_cpp_builtins): Define
6103 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
6104 modes.
6105
dd69f047
JM
61062014-09-18 Joseph Myers <joseph@codesourcery.com>
6107
6108 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
6109 for supported floating-point modes.
6110
737a4826
MLI
61112014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6112
6113 * c.opt (Wpsabi): Use LangEnabledBy.
6114 * c-opts.c (c_common_handle_option): Do not handle here.
6115
8cc4b7a2
JM
61162014-09-12 Joseph Myers <joseph@codesourcery.com>
6117
6118 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
6119 macros for floating-point modes.
6120
179b5a55
MG
61212014-09-11 Marc Glisse <marc.glisse@inria.fr>
6122
6123 PR target/58757
6124 * c-cppbuiltin.c (builtin_define_float_constants): Correct
6125 __*_DENORM_MIN__ without denormals.
6126
570a11fe
JJ
61272014-09-10 Jakub Jelinek <jakub@redhat.com>
6128
6129 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
6130 ubsan_instrument_vla, ubsan_instrument_return): Adjust
6131 ubsan_create_data callers.
6132 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
6133 index is constant or BIT_AND_EXPR with constant mask and is
6134 small enough for the bound.
6135 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
6136 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
6137
b559c810
MLI
61382014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
6139
6140 * c.opt: Add CppReason to various flags.
6141 (Wdate-time): Re-sort.
6142 * c-common.c: Include c-common.h earlier.
6143 (struct reason_option_codes_t): Delete.
6144 (c_option_controlling_cpp_error): Prefix global type and struct
6145 with cpp_.
6146
1ef33fd4
MLI
61472014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
6148
6149 * c.opt (Wnormalized): New.
6150 (Wnormalized=): Use Enum and Reject Negative.
6151 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
6152
66bb34c0
JM
61532014-09-08 Joseph Myers <joseph@codesourcery.com>
6154
6155 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
6156 digits of floating-point modes if -fbuilding-libgcc.
6157
53d68b9f
JM
61582014-09-05 Joseph Myers <joseph@codesourcery.com>
6159
6160 * c-cppbuiltin.c (c_cpp_builtins): Also define
6161 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
6162 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
6163 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
6164 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
6165 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
6166 __LIBGCC_STACK_GROWS_DOWNWARD__,
6167 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
6168 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
6169 __LIBGCC_DWARF_FRAME_REGISTERS__,
6170 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
6171 __LIBGCC_STACK_POINTER_REGNUM__ and
6172 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
6173 (builtin_define_with_value): Handle backslash-escaping in string
6174 macro values.
6175
f65586dc
RB
61762014-09-05 Richard Biener <rguenther@suse.de>
6177
6178 PR middle-end/63148
6179 * c-format.c (check_format_arg): Properly handle
6180 effectively signed POINTER_PLUS_EXPR offset.
6181
2b71f4a4
MLI
61822014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
6183
6184 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
6185 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
6186 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
6187 and Init.
6188 * c-opts.c (c_common_handle_option): Do not handle here.
6189 (sanitize_cpp_opts): Likewise.
6190 * c-common.c (struct reason_option_codes_t): Handle
6191 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
6192
d2e4feca
MP
61932014-09-03 Marek Polacek <polacek@redhat.com>
6194
6195 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
6196
9a771876
JJ
61972014-09-02 Jakub Jelinek <jakub@redhat.com>
6198 Balaji V. Iyer <balaji.v.iyer@intel.com>
6199 Igor Zamyatin <igor.zamyatin@intel.com>
6200
6201 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
6202 * c-common.c (c_common_reswords): Added _Cilk_for.
6203 * c-common.h (enum rid): Added RID_CILK_FOR.
6204 (cilk_for_number_of_iterations): Add declaration.
6205 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
6206 CILK_FOR.
6207 * c-pragma.c (init_pragma): Register "grainsize" pragma.
6208 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
6209
81b5d104
MLI
62102014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
6211
6212 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
6213 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
6214 Wundef): Use CPP, Var and Init.
6215 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
6216
b753b37b
MLI
62172014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
6218
6219 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
6220 * c-opts.c (c_common_handle_option): Do not handle here.
6221
028aee17
JM
62222014-08-25 Jason Merrill <jason@redhat.com>
6223
6224 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
6225 -std=c++14 and -std=gnu++14, rather than the reverse.
6226 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
6227 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
6228 * c-common.h (cxx_dialect): Remove cxx1y.
6229
e4276ba5
ESR
62302014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
6231
6232 * c-common.h (enum cxx_dialect): Add cxx14.
6233 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
6234 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
6235 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
6236
a545cacd
JM
62372014-08-22 Jason Merrill <jason@redhat.com>
6238
6239 * c.opt (std=gnu++17): Fix alias.
6240
59ea0364
MP
62412014-08-22 Marek Polacek <polacek@redhat.com>
6242
6243 PR c++/62199
6244 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
6245 check for vector types. Drop LHS argument.
6246 * c-common.h (warn_logical_not_parentheses): Adjust.
6247
596e808c
MLI
62482014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
6249
6250 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
6251 (Wmultichar): Likewise.
6252 (Wdate-time): Use C-family languages instead of Common. Use CPP
6253 and Var.
6254 * c-opts.c (c_common_handle_option): Do not handle the above
6255 options here.
6256 (sanitize_cpp_opts): Likewise.
6257
18767f65
MLI
62582014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
6259
6260 PR fortran/44054
6261 * c-opts.c: Include tree-diagnostics.h.
6262 (c_diagnostic_finalizer): New.
6263 (c_common_initialize_diagnostics): Use it.
6264
b4413594
MLI
62652014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
6266
6267 PR preprocessor/51303
6268 * c-common.c (struct reason_option_codes_t option_codes):
6269 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
6270
43f9a13c
MLI
62712014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
6272
6273 PR c/60975
6274 PR c/53063
6275 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
6276 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
6277 (c_common_post_options): Call init_global_opts_from_cpp.
6278 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
6279
04159acf
MP
62802014-08-19 Marek Polacek <polacek@redhat.com>
6281
6282 PR c++/62153
6283 * c-common.c (maybe_warn_bool_compare): New function.
6284 * c-common.h (maybe_warn_bool_compare): Declare.
6285 * c.opt (Wbool-compare): New option.
6286
35aff4fb
MP
62872014-08-19 Marek Polacek <polacek@redhat.com>
6288
6289 * c.opt (Wc99-c11-compat): New option.
6290
177cce46
MP
62912014-08-19 Marek Polacek <polacek@redhat.com>
6292
6293 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
6294 to warn_c90_c99_compat.
6295 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
6296 to -1.
6297
6ae9194f
MLI
62982014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
6299 Steven Bosscher <steven@gcc.gnu.org>
6300
6301 PR c/52952
6302 * c-format.c: Add extra_arg_loc and format_string_loc to struct
6303 format_check_results.
6304 (check_function_format): Use true and add comment for boolean
6305 argument.
6306 (finish_dollar_format_checking): Use explicit location when warning.
6307 (check_format_info): Likewise.
6308 (check_format_arg): Set extra_arg_loc and format_string_loc.
6309 (check_format_info_main): Use explicit location when warning.
6310 (check_format_types): Pass explicit location.
6311 (format_type_warning): Likewise.
6312
8e54f6d3
MLI
63132014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6314
6315 PR fortran/44054
6316 * c-format.c: Handle Fortran flags.
6317
cd4e76fc
IZ
63182014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
6319
6320 PR other/61962
6321 * array-notation-common.c (find_rank): Added handling for other
6322 types of references.
6323
f3bede71
MP
63242014-08-10 Marek Polacek <polacek@redhat.com>
6325
6326 PR c/51849
6327 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
6328 * c.opt (Wc90-c99-compat): Add option.
6329
9f25a338
TS
63302014-08-07 Trevor Saunders <tsaunders@mozilla.com>
6331
6332 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
6333
62e4eb35
MP
63342014-08-03 Marek Polacek <polacek@redhat.com>
6335
ab20d992 6336 * c-common.c (check_case_value): Add location_t parameter. Use it.
62e4eb35
MP
6337 (c_add_case_label): Pass loc to check_case_value.
6338
b787e7a2
TS
63392014-08-02 Trevor Saunders <tsaunders@mozilla.com>
6340
6341 * cilk.c: Use hash_map instead of pointer_map.
6342
6e2830c3
TS
63432014-08-02 Trevor Saunders <tsaunders@mozilla.com>
6344
6345 * c-gimplify.c: Use hash_set instead of pointer_set.
6346
a7ee52fb
IZ
63472014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
6348
6349 PR middle-end/61455
6350 * array-notation-common.c (extract_array_notation_exprs): Handling
6351 of DECL_EXPR added.
6352
944fa280
JJ
63532014-08-01 Jakub Jelinek <jakub@redhat.com>
6354
6355 * c-common.h (min_align_of_type): Removed prototype.
6356 * c-common.c (min_align_of_type): Removed.
6357 * c-ubsan.h (ubsan_maybe_instrument_reference,
6358 ubsan_maybe_instrument_member_call): New prototypes.
6359 * c-ubsan.c: Include stor-layout.h and builtins.h.
6360 (ubsan_maybe_instrument_reference_or_call,
6361 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
6362 functions.
6363
b4dfdc11
MG
63642014-07-31 Marc Glisse <marc.glisse@inria.fr>
6365
6366 PR c++/60517
6367 * c.opt (-Wreturn-local-addr): Move to common.opt.
6368
a41844e5
JM
63692014-07-30 Jason Merrill <jason@redhat.com>
6370
6371 PR c++/61659
6372 PR c++/61687
6373 Revert:
6374 * c.opt (-fuse-all-virtuals): New.
6375
976d5a22
TT
63762014-07-30 Tom Tromey <tromey@redhat.com>
6377
6378 PR c/59855
6379 * c.opt (Wdesignated-init): New option.
6380 * c-common.c (c_common_attribute_table): Add "designated_init".
6381 (handle_designated_init): New function.
6382
cdc94aca
MP
63832014-07-24 Marek Polacek <polacek@redhat.com>
6384
6385 PR c/57653
6386 * c-opts.c (c_finish_options): If -imacros is in effect, return.
6387
f41373b6
DS
63882014-07-16 Dodji Seketeli <dodji@redhat.com>
6389
6390 PR preprocessor/60723 - missing system-ness marks for macro tokens
6391 * c-ppoutput.c (struct print::prev_was_system_token): New data
6392 member.
6393 (init_pp_output): Initialize it.
6394 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
6395 (do_line_change): Return a flag saying if a line marker was
6396 emitted or not.
6397 (scan_translation_unit): Detect if the system-ness of the token we
6398 are about to emit is different from the one of the previously
6399 emitted token. If so, emit a line marker. Avoid emitting useless
6400 adjacent line markers. Avoid emitting line markers for tokens
6401 originating from the expansion of built-in macros.
6402 (scan_translation_unit_directives_only): Adjust.
6403
4d661eaa
MP
64042014-07-15 Marek Polacek <polacek@redhat.com>
6405
6406 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
6407 TYPE_MAX_VALUE is NULL.
6408
b108f48f
JJ
64092014-07-14 Jakub Jelinek <jakub@redhat.com>
6410
6411 PR middle-end/61294
6412 * c.opt (Wmemset-transposed-args): New warning.
6413
c0221884
JM
64142014-07-10 Jason Merrill <jason@redhat.com>
6415
6416 PR c++/61659
6417 PR c++/61687
6418 * c.opt (-fuse-all-virtuals): New.
6419
63dfbb95
RB
64202014-07-09 Richard Biener <rguenther@suse.de>
6421
6422 PR c-family/61741
6423 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
6424 using unsigned arithmetic if overflow does not wrap instead of
6425 if overflow is undefined.
6426
773ec47f
MP
64272014-07-06 Marek Polacek <polacek@redhat.com>
6428
6429 PR c/6940
6430 * c.opt (Wsizeof-array-argument): New option.
6431
00a7ba58
JJ
64322014-07-03 Jakub Jelinek <jakub@redhat.com>
6433
b1726d6c 6434 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
00a7ba58
JJ
6435 comments->count <= 1, as comments->entries might be NULL.
6436
52ec0ea3
MP
64372014-07-01 Marek Polacek <polacek@redhat.com>
6438
6439 * c.opt (Wint-conversion): New option.
6440
d5c3d343
MP
64412014-07-01 Marek Polacek <polacek@redhat.com>
6442
6443 PR c/58286
6444 * c.opt (Wincompatible-pointer-types): New option.
6445
6e7ceb17
PC
64462014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
6447
6448 PR c++/51400
6449 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
6450 Do not discard TYPE_QUALS of type.
6451
da73100b
JM
64522014-06-26 Jason Merrill <jason@redhat.com>
6453
6454 * c-common.h (enum cxx_dialect): Add cxx1z.
6455 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
6456 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
6457
08eedf75
TJ
64582014-06-26 Teresa Johnson <tejohnson@google.com>
6459
6460 * c-common.h (get_dump_info): Declare.
6461 * c-gimplify.c (c_genericize): Use saved dump files.
6462 * c-opts.c (c_common_parse_file): Begin and end dumps
6463 once around parsing invocation.
6464 (get_dump_info): New function.
6465
7b56b2f8
MP
64662014-06-23 Marek Polacek <polacek@redhat.com>
6467 Andrew MacLeod <amacleod@redhat.com>
6468
6469 PR c/61553
6470 * c-common.c (get_atomic_generic_size): Don't segfault if the
6471 type doesn't have a size.
6472
0e37a2f3
MP
64732014-06-20 Marek Polacek <polacek@redhat.com>
6474
6475 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
6476 (ubsan_walk_array_refs_r): New function.
6477 (c_genericize): Instrument array bounds.
6478 * c-ubsan.c: Include "internal-fn.h".
6479 (ubsan_instrument_division): Mark instrumented arrays as having
6480 side effects. Adjust ubsan_type_descriptor call.
6481 (ubsan_instrument_shift): Likewise.
6482 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
6483 (ubsan_instrument_bounds): New function.
6484 (ubsan_array_ref_instrumented_p): New function.
6485 (ubsan_maybe_instrument_array_ref): New function.
6486 * c-ubsan.h (ubsan_instrument_bounds): Declare.
6487 (ubsan_array_ref_instrumented_p): Declare.
6488 (ubsan_maybe_instrument_array_ref): Declare.
6489
64902014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
6491
6492 PR lto/61123
6493 * c.opt (fshort-enums): Add to LTO.
6494 * c.opt (fshort-wchar): Likewise.
6495
5c3d09f7
MP
64962014-06-16 Marek Polacek <polacek@redhat.com>
6497
6498 PR c/60439
6499 * c.opt (Wswitch-bool): Add Var.
6500
9cf32741
JJ
65012014-06-12 Jakub Jelinek <jakub@redhat.com>
6502
6503 PR middle-end/61486
6504 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
6505 #pragma omp target teams or
6506 #pragma omp {,target }teams distribute simd.
6507
62984918
JM
65082014-06-12 Jason Merrill <jason@redhat.com>
6509
6510 * c.opt (Wabi=, fabi-compat-version): New.
6511 * c-opts.c (c_common_handle_option): Handle -Wabi=.
6512 (c_common_post_options): Handle flag_abi_compat_version default.
6513 Disallow -fabi-compat-version=1.
6514 * c-common.h (abi_version_crosses): New.
6515
f961457f
JH
65162014-06-11 Jan Hubicka <hubicka@ucw.cz>
6517
adfac8df 6518 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
6519 section names that are no longer trees.
6520
92d28cbb
JJ
65212014-06-10 Jakub Jelinek <jakub@redhat.com>
6522
6523 PR fortran/60928
6524 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
6525 (omp_pragmas): ... back here.
6526
742938c9
MP
65272014-06-05 Marek Polacek <polacek@redhat.com>
6528
6529 PR c/49706
6530 * c-common.c (warn_logical_not_parentheses): New function.
6531 * c-common.h (warn_logical_not_parentheses): Declare.
6532 * c.opt (Wlogical-not-parentheses): New option.
6533
9d548dfb
MP
65342014-06-04 Marek Polacek <polacek@redhat.com>
6535
6536 PR c/30020
6537 * c-common.c (check_case_bounds): Add location parameter.
6538 Use it.
6539 (c_add_case_label): Pass loc to check_case_bounds.
6540
fedfecef
MP
65412014-06-03 Marek Polacek <polacek@redhat.com>
6542
6543 PR c/60439
6544 * c.opt (Wswitch-bool): New option.
6545
f6a7cffc
TS
65462014-05-22 Thomas Schwinge <thomas@codesourcery.com>
6547
040d18b6
TS
6548 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
6549 Remove prototypes.
6550 (record_types_used_by_current_var_decl): Move prototype to where
6551 it belongs.
6552
f6a7cffc
TS
6553 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
6554 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
6555 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
6556
632f2871
RS
65572014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
6558
6559 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
6560 * c-common.c (c_common_nodes_and_builtins): Don't initialize
6561 void_zero_node.
6562 * c-pretty-print.c (pp_c_void_constant): New function.
6563 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
6564 (c_pretty_printer::expression): Handle VOID_CST.
6565 * cilk.c (extract_free_variables): Likewise.
6566 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
6567 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
6568
766090c2
TS
65692014-05-17 Trevor Saunders <tsaunders@mozilla.com>
6570
6571 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
6572 * c-pragma.c (push_alignment): Adjust.
6573 (handle_pragma_push_options): Likewise.
6574
661a0813
MP
65752014-05-09 Marek Polacek <polacek@redhat.com>
6576
6577 PR c/50459
6578 * c-common.c (check_user_alignment): Return -1 if alignment is error
6579 node.
6580 (handle_aligned_attribute): Don't call default_conversion on
6581 FUNCTION_DECLs.
6582 (handle_vector_size_attribute): Likewise.
6583 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
6584 (handle_sentinel_attribute): Call default_conversion and allow even
6585 integral types as an argument.
6586
2793eeab
MP
65872014-05-08 Marek Polacek <polacek@redhat.com>
6588
6589 PR c/61053
6590 * c-common.c (min_align_of_type): New function factored out from...
6591 (c_sizeof_or_alignof_type): ...here.
6592 * c-common.h (min_align_of_type): Declare.
6593
f827930a
MP
65942014-05-08 Marek Polacek <polacek@redhat.com>
6595
6596 PR c/61077
6597 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
6598 parameter type of main.
6599
ca49b74e
DD
66002014-05-07 DJ Delorie <dj@redhat.com>
6601
6602 * c-cppbuiltin.c (print_bits_of_hex): New.
6603 (builtin_define_type_minmax): Print values using hex so as not to
6604 require a pre-computed list of string values.
6605
1d60af08
KZ
66062014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
6607 Mike Stump <mikestump@comcast.net>
6608 Richard Sandiford <rdsandiford@googlemail.com>
6609
6610 * c-ada-spec.c: Include wide-int.h.
6611 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
6612 (dump_generic_ada_node): Use wide-int interfaces.
6613 * c-common.c: Include wide-int-print.h.
6614 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
6615 (pointer_int_sum): Use wide-int interfaces.
6616 (c_common_nodes_and_builtins): Use make_int_cst.
6617 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
6618 (handle_alloc_size_attribute): Use wide-int interfaces.
6619 (get_nonnull_operand): Likewise.
6620 * c-format.c (get_constant): Use tree_fits_uhwi_p.
6621 * c-lex.c: Include wide-int.h.
6622 (narrowest_unsigned_type): Take a widest_int rather than two
6623 HOST_WIDE_INTs.
6624 (narrowest_signed_type): Likewise.
6625 (interpret_integer): Update accordingly. Use wide-int interfaces.
6626 (lex_charconst): Use wide-int interfaces.
6627 * c-pretty-print.c: Include wide-int.h.
6628 (pp_c_integer_constant): Use wide-int interfaces.
6629 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
6630 INT_CST_LT_UNSIGNED.
6631
b15458be
RB
66322014-05-06 Richard Biener <rguenther@suse.de>
6633
6634 * c-opts.c (c_common_post_options): For -freestanding,
6635 -fno-hosted and -fno-builtin disable pattern recognition
6636 if not enabled explicitely.
6637
6577374e
MP
66382014-05-02 Marek Polacek <polacek@redhat.com>
6639
6640 * c.opt (Wsizeof-pointer-memaccess): Describe option.
6641
d00887e8
MP
66422014-05-01 Marek Polacek <polacek@redhat.com>
6643
6644 PR c/43245
6645 * c.opt (Wdiscarded-qualifiers): Add.
6646
f8ed5150
MP
66472014-04-30 Marek Polacek <polacek@redhat.com>
6648
6649 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
6650 INT_MIN / -1 sanitization only for integer types.
6651
45484dcf
MP
66522014-04-25 Marek Polacek <polacek@redhat.com>
6653
6654 PR c/18079
6655 * c-common.c (handle_noinline_attribute): Warn if the attribute
6656 conflicts with always_inline attribute.
6657 (handle_always_inline_attribute): Warn if the attribute conflicts
6658 with noinline attribute.
6659
38e514c0
MP
66602014-04-25 Marek Polacek <polacek@redhat.com>
6661
6662 PR c/60156
6663 * c-common.c (check_main_parameter_types): Warn about variadic main.
6664
44875f92
MS
66652014-04-24 Mike Stump <mikestump@comcast.net>
6666
6667 * c.opt (Wshadow-ivar): Default to on.
6668
dcaaa5a0
DP
66692014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
6670
6671 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
6672
c07d7c02
MP
66732014-04-23 Marek Polacek <polacek@redhat.com>
6674
6675 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
6676
1c33c9b7
JJ
66772014-04-22 Jakub Jelinek <jakub@redhat.com>
6678
6679 PR sanitizer/60275
6680 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
6681 if flag_sanitize_undefined_trap_on_error.
6682 (ubsan_instrument_division, ubsan_instrument_shift,
6683 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
6684 if !flag_sanitize_recover.
6685
793c625f
MG
66862014-04-22 Marc Glisse <marc.glisse@inria.fr>
6687
6688 PR libstdc++/43622
6689 * c-common.c (registered_builtin_types): Make non-static.
6690 * c-common.h (registered_builtin_types): Declare.
6691
b0f1bf36 66922014-04-14 Richard Biener <rguenther@suse.de>
ab20d992 6693 Marc Glisse <marc.glisse@inria.fr>
b0f1bf36
RB
6694
6695 PR c/60819
6696 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
6697 apply may-alias the scalar pointer type when applicable.
6698
3b07fa4a
IZ
66992014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
6700
6701 PR middle-end/60467
6702 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
6703 as possible argument for Cilk_spawn.
6704
cbbd2b1c
TB
67052014-04-11 Tobias Burnus <burnus@net-b.de>
6706
6707 PR c/60194
6708 * c.opt (Wformat-signedness): Add
6709 * c-format.c(check_format_types): Use it.
6710
6415bd5d
JM
67112014-04-11 Jason Merrill <jason@redhat.com>
6712
6713 PR c++/57926
6714 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
6715 default_conversion for an array argument.
6716
6525783a
MP
67172014-04-08 Marek Polacek <polacek@redhat.com>
6718
6719 PR sanitizer/60745
6720 * c-ubsan.c: Include asan.h.
6721 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
6722
880a467b
NS
67232014-04-03 Nathan Sidwell <nathan@codesourcery.com>
6724
6725 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
6726
7b59ff2d
MP
67272014-04-02 Marek Polacek <polacek@redhat.com>
6728
6729 * c-common.h (c_expand_expr): Remove declaration.
6730
8edbfaa6
JJ
67312014-03-28 Jakub Jelinek <jakub@redhat.com>
6732
6733 PR c++/60689
6734 * c-common.c (add_atomic_size_parameter): When creating new
6735 params vector, push the size argument first.
6736
07d72e1d
JJ
67372014-03-26 Jakub Jelinek <jakub@redhat.com>
6738
6739 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
6740 ubsan_instrument_vla, ubsan_instrument_return): Adjust
6741 ubsan_create_data callers.
6742
b35e0fa0
JJ
67432014-03-22 Jakub Jelinek <jakub@redhat.com>
6744
6745 PR debug/60603
6746 * c-opts.c (c_finish_options): Restore cb_file_change call to
6747 <built-in>.
6748
39a1ebb3
JJ
67492014-03-13 Jakub Jelinek <jakub@redhat.com>
6750
6751 PR middle-end/36282
6752 * c-pragma.c (apply_pragma_weak): Only look at
6753 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
6754 DECL_ASSEMBLER_NAME_SET_P (decl).
6755 (maybe_apply_pending_pragma_weaks): Exit early if
6756 vec_safe_is_empty (pending_weaks) rather than only when
6757 !pending_weaks.
6758 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
6759 set assembler name back to NULL afterwards.
6760
a07f6ed2
JM
67612014-03-11 Jason Merrill <jason@redhat.com>
6762
6763 * c.opt: Add -std=gnu++14.
6764
75b107f5
IB
67652014-03-11 Ian Bolton <ian.bolton@arm.com>
6766
6767 * c-opts.c (c_common_post_options): Don't override
6768 -ffp-contract=fast if unsafe-math-optimizations is on.
6769
f42c637e
PM
67702014-03-08 Paulo Matos <paulo@matos-sorge.com>
6771
22b15758 6772 * c.opt: Enable LTO FE for fshort-double.
f42c637e 6773
70e24808
JM
67742014-03-07 Jason Merrill <jason@redhat.com>
6775
6776 * c.opt: Add -std=c++14.
6777
3af9c5e9
MP
67782014-03-06 Marek Polacek <polacek@redhat.com>
6779
6780 PR c/60197
6781 * cilk.c (contains_cilk_spawn_stmt): New function.
6782 (contains_cilk_spawn_stmt_walker): Likewise.
6783 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
6784 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
6785
b3bdf019
JJ
67862014-03-03 Jakub Jelinek <jakub@redhat.com>
6787
6788 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
6789 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
6790 even when flag_preprocess_only.
6791
ca7e759d
JM
67922014-02-26 Jason Merrill <jason@redhat.com>
6793
6794 PR c++/59231
6795 PR c++/11586
6796 * c-common.c (shorten_compare): Don't check
6797 c_inhibit_evaluation_warnings.
6798
28e41874
JJ
67992014-02-19 Jakub Jelinek <jakub@redhat.com>
6800
cca615af
JJ
6801 PR c/37743
6802 * c-common.c (c_common_nodes_and_builtins): When initializing
6803 c_uint{16,32,64}_type_node, also set corresponding
6804 uint{16,32,64}_type_node to the same value.
6805
28e41874
JJ
6806 PR c++/60267
6807 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
6808 for PRAGMA_IVDEP if flag_preprocess_only.
6809
c2bf53a1
JJ
68102014-02-12 Jakub Jelinek <jakub@redhat.com>
6811
6812 PR c/60101
6813 * c-common.c (merge_tlist): If copy is true, call new_tlist,
6814 if false, add ADD itself, rather than vice versa.
6815 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
6816 copy. For SAVE_EXPR, only call merge_tlist once.
6817
8fcbce72
JJ
68182014-02-08 Jakub Jelinek <jakub@redhat.com>
6819
6820 PR middle-end/60092
6821 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
6822 and tree_to_uhwi.
6823 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
6824 functions.
6825 (c_common_attribute_table): Add alloc_align and assume_aligned
6826 attributes.
6827
0a756a3f
MP
68282014-02-06 Marek Polacek <polacek@redhat.com>
6829
6830 PR c/60087
6831 * c-common.c (warn_for_sign_compare): Call warning_at with location
6832 instead of warning.
6833
7ec4847a
MP
68342014-02-05 Marek Polacek <polacek@redhat.com>
6835
6836 PR c/53123
6837 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
6838 statement.
6839
66f20604
MP
68402014-02-04 Marek Polacek <polacek@redhat.com>
6841
6842 PR c/60036
6843 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
6844 SAVE_EXPR.
6845
5d77fb19
MG
68462014-02-03 Marc Glisse <marc.glisse@inria.fr>
6847
6848 PR c++/53017
6849 PR c++/59211
6850 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
6851 handle_vector_size_attribute, handle_nonnull_attribute): Call
6852 default_conversion on the attribute argument.
6853 (handle_nonnull_attribute): Increment the argument number.
6854
81e5eca8
MP
68552014-01-31 Marek Polacek <polacek@redhat.com>
6856
6857 PR c/59963
6858 * c-common.c (add_atomic_size_parameter): Pass vNULL to
6859 build_function_call_vec.
6860 (resolve_overloaded_builtin): Likewise.
6861 * c-common.h (build_function_call_vec): Adjust declaration.
6862
68fca595
MP
68632014-01-30 Marek Polacek <polacek@redhat.com>
6864
6865 PR c/59940
6866 * c-common.h (unsafe_conversion_p): Adjust declaration.
6867 (warnings_for_convert_and_check): Likewise.
6868 (convert_and_check): Likewise.
6869 * c-common.c (unsafe_conversion_p): Add location parameter. Call
6870 expansion_point_location_if_in_system_header on it.
6871 (warnings_for_convert_and_check): Add location parameter. Call
6872 expansion_point_location_if_in_system_header on it. Use it.
6873 (convert_and_check): Add location parameter. Use it.
6874 (conversion_warning): Likewise.
6875 (c_add_case_label): Adjust convert_and_check calls.
6876 (scalar_to_vector): Adjust unsafe_conversion_p calls.
6877
b72271b9
BI
68782014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
6879
6880 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
6881 flag_cilkplus.
6882 * c-pragma.c (init_pragma): Likewise.
6883 * c.opt: Likewise.
6884
393e8e8b
MP
68852014-01-23 Marek Polacek <polacek@redhat.com>
6886
6887 PR c/59846
6888 * c-common.c (shorten_compare): Add location_t parameter.
6889 * c-common.h (shorten_binary_op): Adjust declaration.
6890
f04dda30
MP
68912014-01-23 Marek Polacek <polacek@redhat.com>
6892
6893 PR c/58346
6894 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
6895 * c-common.h: Declare it.
6896
621955cb
EB
68972014-01-20 Eric Botcazou <ebotcazou@adacore.com>
6898
6899 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
6900 * c-ada-spec.c (dump_ads): Likewise.
6901 (cpp_check): Likewise.
6902 (dump_ada_specs): Likewise.
6903
69042014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
6905
6906 PR c++/49718
6907 * c-common.c (handle_no_instrument_function_attribute): Allow
6908 no_instrument_function attribute in class member
6909 definition/declaration.
6910
241f845a
JJ
69112014-01-15 Jakub Jelinek <jakub@redhat.com>
6912
6913 PR c/58943
6914 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
6915 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
6916 being COMPOUND_EXPR.
6917 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
6918 operand a SAVE_EXPR and second MODIFY_EXPR.
6919
e83b8e2e
JJ
69202014-01-09 Jakub Jelinek <jakub@redhat.com>
6921
6922 PR target/58115
6923 * c-pch.c (c_common_write_pch): Call
6924 prepare_target_option_nodes_for_pch.
6925
23a5b65a
RS
69262014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
6927
6928 Update copyright years
6929
f9030485
RS
69302014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
6931
6932 * array-notation-common.c, c-cilkplus.c: Use the standard form for
6933 the copyright notice.
6934
f2aa696b
EB
69352013-12-28 Eric Botcazou <ebotcazou@adacore.com>
6936
6937 * c-ada-spec.c (print_constructor): New function.
6938 (print_destructor): Retrieve the origin of the destructor.
6939 (print_ada_declaration): Revamp handling of constructors/destructors.
6940
3f8257db 69412013-12-23 Stuart Hastings <stuart@apple.com>
1f26ac87
JM
6942 Bill Maddox <maddox@google.com>
6943 Jason Merrill <jason@redhat.com>
6944
6945 * c.opt: Add -fdeclone-ctor-dtor.
6946 * c-opts.c (c_common_post_options): Default to on iff -Os.
6947
41958c28
BI
69482013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
6949
6950 * c-common.c (c_common_attribute_table): Added "cilk simd function"
6951 attribute.
6952 * c-pragma.h (enum pragma_cilk_clause): Remove.
ab20d992 6953 (enum pragma_omp_clause): Added the following fields:
41958c28
BI
6954 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
6955 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
6956 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
6957 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
6958 PRAGMA_CILK_CLAUSE_UNIFORM.
6959
b1726d6c 6960
12893402
BI
69612013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
6962
6963 * cilk.c (cilk_outline): Made this function non-static.
6964 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
6965 (create_cilk_wrapper): Added a new parameter: a function pointer.
6966 (c_install_body_w_frame_cleanup): Remove
6967 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
6968 * c-common.h (cilk_outline): New prototype.
6969 (gimplify_cilk_spawn): Removed two parameters.
6970 (cilk_install_body_with_frame_cleanup): New prototype.
6971 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
6972 CILK_SPAWN_STMT case.
6973
085b42ed
BS
69742013-12-11 Bernd Schmidt <bernds@codesourcery.com>
6975
2ce064c3
BS
6976 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
6977
085b42ed
BS
6978 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
6979 (int_array_type_node): Remove.
6980 * c-common.c (c_common_nodes_and_builtins): Don't build it.
6981
9e36c9ed
MP
69822013-12-05 Marek Polacek <polacek@redhat.com>
6983
6984 PR c/52023
6985 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
6986 [ADJUST_FIELD_ALIGN].
6987
296674db
JM
69882013-12-04 Joseph Myers <joseph@codesourcery.com>
6989
6990 PR c/52023
6991 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
6992 and check field alignment if set.
6993 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
6994 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
6995
b1726d6c 69962013-12-04 Jakub Jelinek <jakub@redhat.com>
31e071ae
MP
6997 Marek Polacek <polacek@redhat.com>
6998
6999 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
7000 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
7001
d7947e19
L
70022013-11-29 H.J. Lu <hongjiu.lu@intel.com>
7003
7004 PR c/59309
7005 * cilk.c (gimplify_cilk_spawn): Properly handle function without
7006 arguments.
7007
fad7652e
JJ
70082013-11-29 Jakub Jelinek <jakub@redhat.com>
7009
7010 PR c/59280
7011 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
7012 goto invalid. If it is error_mark_node, don't issue further
7013 diagnostics.
7014
8b5e1202
SO
70152013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
7016
7017 * c.opt (Wopenmp-simd): New.
7018
0a508bb6
JJ
70192013-11-22 Jakub Jelinek <jakub@redhat.com>
7020
7021 * c-ubsan.h (ubsan_instrument_return): New prototype.
7022 * c-ubsan.c (ubsan_instrument_return): New function.
7023
2fb9a547
AM
70242013-11-22 Andrew MacLeod <amacleod@redhat.com>
7025
7026 * c-common.c: Add required include files from gimple.h.
ab20d992
JJ
7027 * c-gimplify.c: Likewise.
7028 * cilk.c: Likewise.
2fb9a547 7029
8400e75e
DM
70302013-11-22 David Malcolm <dmalcolm@redhat.com>
7031
7032 * c-common.c (unsafe_conversion_p): Remove use of
7033 EXPR_LOC_OR_HERE macro.
7034 (conversion_warning): Likewise.
7035 (warnings_for_convert_and_check): Likewise.
7036 (warn_for_collisions_1): Likewise.
7037 (shorten_compare): Likewise, and remove use of in_system_header
7038 macro, using the location from the former.
7039 * c-lex.c (dump_one_header): Remove use of input_filename macro.
7040 (cb_def_pragma): Remove use of in_system_header macro.
7041 (lex_string): Likewise.
7042 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
7043
eb1ce453
KZ
70442013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
7045 Mike Stump <mikestump@comcast.net>
7046 Richard Sandiford <rdsandiford@googlemail.com>
7047
7048 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
7049 instead of TREE_INT_CST_LOW, in cases where there is a protecting
7050 tree_fits_shwi_p or tree_fits_uhwi_p.
7051 (dump_generic_ada_node): Likewise.
7052 * c-format.c (check_format_arg): Likewise.
7053 * c-pretty-print.c (pp_c_integer_constant): Likewise.
7054
6b3b8c27
KZ
70552013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
7056
7057 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
7058
49b0aa18
JC
70592013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
7060
7061 PR c/53001
7062 * c-common.c (unsafe_conversion_p): Make this function
7063 return an enumeration with more detail.
7064 (conversion_warning): Use the new return type of
7065 unsafe_conversion_p to separately warn either about conversions
7066 that lower floating point number precision or about the other
7067 kinds of conversions.
7068 * c-common.h (enum conversion_safety): New enumeration.
8e745a17
JJ
7069 (unsafe_conversion_p): switching return type to
7070 conversion_safety enumeration.
49b0aa18
JC
7071 * c.opt: Adding new warning -Wfloat-conversion and
7072 enabling it with -Wconversion.
7073
b826515a
BS
70742013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
7075
8e745a17
JJ
7076 * c-opts.c: Include plugin.h.
7077 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
b826515a 7078
b9a55b13
MP
70792013-11-19 Marek Polacek <polacek@redhat.com>
7080
7081 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
7082 call.
7083 (ubsan_instrument_shift): Likewise.
7084 (ubsan_instrument_vla): Likewise.
7085
7d362f6c
RS
70862013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
7087
7088 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
7089 cast to unsigned type.
7090
386b1f1f
RS
70912013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
7092
7093 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
7094 tree_low_cst.
7095 (complete_array_type): Update comment to refer to tree_to_[su]hwi
7096 rather than tree_low_cst.
7097
ae7e9ddd
RS
70982013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
7099
7100 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
7101 tree_to_uhwi throughout.
7102
9439e9a1
RS
71032013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
7104
7105 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
7106 tree_low_cst (..., 0) with tree_to_shwi throughout.
7107
cc269bb6
RS
71082013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
7109
7110 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
7111 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
7112
9541ffee
RS
71132013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
7114
7115 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
7116 host_integerp (..., 0) with tree_fits_shwi_p throughout.
7117
c02065fc
AH
71182013-11-15 Aldy Hernandez <aldyh@redhat.com>
7119
7120 * c-cilkplus.c: New file.
7121 * c-common.c (readonly_error): Add location argument.
7122 * c-common.h (readonly_error): Same.
7123 (c_finish_cilk_clauses): Protoize.
7124 (c_check_cilk_loop): Same.
7125 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
7126 Do not fail on error_mark_node.
7127 Abstract increment canonicalization to here...
7128 (c_omp_for_incr_canonicalize_ptr): New.
7129 c-pragma.c (init_pragma): Register "simd" pragma.
7130 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
7131 (enum pragma_cilk_clause): New.
7132
9cc65f15
RS
71332013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
7134
7135 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
7136 wchar_type and host_integerp checks.
7137
18f429e2
AM
71382013-11-14 Andrew MacLeod <amacleod@redhat.com>
7139
7140 * c-common.c: Likewise.
7141 * c-gimplify.c: Likewise.
7142 * cilk.c: Likewise.
7143
d8a2d370
DN
71442013-11-14 Diego Novillo <dnovillo@google.com>
7145
7146 * c-common.c: Include fold-const.h.
7147 Include stor-layout.h.
7148 Include calls.h.
7149 Include stringpool.h.
7150 Include attribs.h.
7151 Include varasm.h.
7152 Include trans-mem.h.
7153 * c-cppbuiltin.c: Include stor-layout.h.
7154 Include stringpool.h.
7155 * c-format.c: Include stringpool.h.
7156 * c-lex.c: Include stringpool.h.
7157 Include stor-layout.h.
7158 * c-pragma.c: Include stringpool.h.
7159 Include attribs.h.
7160 Include varasm.h.
7161 Include gcc-symtab.h.
7162 * c-pretty-print.c: Include stor-layout.h.
7163 Include attribs.h.
7164 * cilk.c: Include stringpool.h.
7165 Include calls.h.
7166
38b7bc7f
JM
71672013-11-13 Joseph Myers <joseph@codesourcery.com>
7168
7169 * c-common.h (enum rid): Add RID_AUTO_TYPE.
7170 * c-common.c (c_common_reswords): Add __auto_type.
7171 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
7172
45b0be94
AM
71732013-11-12 Andrew MacLeod <amacleod@redhat.com>
7174
18f429e2
AM
7175 * c-common.c: Include gimplify.h.
7176 * c-gimplify.c: Likewise.
7177 * cilk.c: Likewise.
7178 * c-omp.c: Include gimple-expr.h instead of gimple.h.
7179 * c-ubsan.c: Don't include gimple.h.
45b0be94 7180
582d9b50
JM
71812013-11-12 Joseph Myers <joseph@codesourcery.com>
7182
7183 * c-common.c (c_common_reswords): Add _Thread_local.
7184
6b28e197
JM
71852013-11-09 Joseph Myers <joseph@codesourcery.com>
7186
7187 * c-common.c (atomic_size_supported_p): New function.
7188 (resolve_overloaded_atomic_exchange)
7189 (resolve_overloaded_atomic_compare_exchange)
7190 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
7191 Use it instead of comparing size with a local list of sizes.
7192
267bac10
JM
71932013-11-07 Andrew MacLeod <amacleod@redhat.com>
7194 Joseph Myers <joseph@codesourcery.com>
7195
7196 * c-common.h (enum rid): Add RID_ATOMIC.
7197 * c-common.c (c_common_reswords): Add _Atomic.
7198 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
7199 (keyword_is_type_qualifier): Accept RID_ATOMIC.
7200 * c-format.c (check_format_types): Check for extra _Atomic
7201 qualifiers in format argument.
7202 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
7203 (pp_c_type_qualifier_list): Mention _Atomic in comment.
7204
5157b91e
TB
72052013-11-06 Tobias Burnus <burnus@net-b.de>
7206
7207 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
7208
6dbe0958
JM
72092013-11-06 Joseph Myers <joseph@codesourcery.com>
7210
7211 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
7212 standards modes.
7213 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
7214 to mean lack of IEEE 754 support.
7215
e8ff5196
TB
72162013-11-05 Tobias Burnus <burnus@net-b.de>
7217
7218 * c.opt (-Wdate-time): New option
7219 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
7220
254a0760
JM
72212013-11-05 Joseph Myers <joseph@codesourcery.com>
7222
7223 * c-cppbuiltin.c (cpp_iec_559_value): Test
7224 flag_excess_precision_cmdline not flag_excess_precision.
7225
6d7f7e0a
TB
72262013-11-05 Tobias Burnus <burnus@net-b.de>
7227
7228 * c.opt (fopenmp-simd): New option.
7229 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
7230 (omp_pragmas): ... this new struct.
7231 (c_pp_lookup_pragma): Also walk omp_pragmas.
7232 (init_pragma): Init pragmas for -fopenmp-simd.
7233
55a7f02f
MP
72342013-11-04 Marek Polacek <polacek@redhat.com>
7235
7236 PR c++/58979
7237 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
7238
9193fb05
JM
72392013-11-04 Joseph Myers <joseph@codesourcery.com>
7240
7241 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
7242 New functions.
7243 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
7244
94159ecf
EB
72452013-11-04 Eric Botcazou <ebotcazou@adacore.com>
7246
7247 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
7248 (dump_ada_specs): Adjust prototype of second callback.
7249 * c-ada-spec.c (cpp_check): New global variable.
7250 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
7251 (print_generic_ada_decl): Likewise.
7252 (has_static_fields): Change return type to bool and add guard.
7253 (has_nontrivial_methods): New predicate.
7254 (is_tagged_type): Change return type to bool.
7255 (separate_class_package): Call has_nontrivial_methods.
7256 (pp_ada_tree_identifier): Minor tweaks.
7257 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
7258 (dump_ada_array_domains): Likewise.
7259 (dump_ada_array_type): Likewise.
7260 (dump_template_types): Remove cpp_check parameter and do not pass it to
7261 dump_generic_ada_node.
7262 (dump_ada_template): Likewise.
7263 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
7264 recursively.
7265 (print_ada_methods): Change return type to integer. Remove cpp_check
7266 parameter and do not pass it down.
7267 (dump_nested_types): Remove cpp_check parameter and do not pass it to
7268 dump_generic_ada_node.
7269 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
7270 accessing methods.
7271 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
7272 down. Use has_nontrivial_methods to recognize C++ classes. Use return
7273 value of print_ada_methods.
7274 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
7275 Set cpp_check to it before invoking dump_ada_nodes.
7276 (dump_ada_specs): Likewise.
7277
b906f4ca
MP
72782013-11-03 Marek Polacek <polacek@redhat.com>
7279
7280 * c-ubsan.c: Don't include hash-table.h.
7281 (ubsan_instrument_vla): New function.
7282 * c-ubsan.h: Declare it.
7283
5e20cdc9
DM
72842013-10-31 David Malcolm <dmalcolm@redhat.com>
7285
7286 Automated part of renaming of symtab_node_base to symtab_node.
7287
7288 Patch autogenerated by rename_symtab.py from
7289 https://github.com/davidmalcolm/gcc-refactoring-scripts
7290 revision 58bb219cc090b2f4516a9297d868c245495ee622
7291
7292 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
7293 symtab_node_base to symtab_node.
7294
7057e645
ESR
72952013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
7296
8e745a17 7297 Implement C++14 digit separators.
7057e645
ESR
7298 * c-lex.c (interpret_float): Remove digit separators from scratch string
7299 before building real literal.
7300
193ea7bc
JJ
73012013-10-30 Jakub Jelinek <jakub@redhat.com>
7302
7303 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
7304
939b37da
BI
73052013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
7306
7307 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
7308 fields.
7309 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
7310 enabled.
7311 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
7312 (insert_cilk_frame): New prototype.
7313 (cilk_init_builtins): Likewise.
7314 (gimplify_cilk_spawn): Likewise.
7315 (c_cilk_install_body_w_frame_cleanup): Likewise.
7316 (cilk_detect_spawn_and_unwrap): Likewise.
7317 (cilk_set_spawn_marker): Likewise.
7318 (build_cilk_sync): Likewise.
7319 (build_cilk_spawn): Likewise.
7320 * cilk.c: New file.
7321
67348ccc
DM
73222013-10-29 David Malcolm <dmalcolm@redhat.com>
7323
7324 Patch autogenerated by refactor_symtab.py from
7325 https://github.com/davidmalcolm/gcc-refactoring-scripts
7326 revision 58bb219cc090b2f4516a9297d868c245495ee622
7327
7328 * c-gimplify.c (c_genericize): Update for conversion of symtab types
7329 to a true class hierarchy.
7330 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
7331
d570872d
RS
73322013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
7333
7334 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
7335
98906124
JL
73362013-10-26 Jeff Law <law@redhat.com>
7337
adfac8df
JJ
7338 * c-common.c (c_define_builtins): Remove mudflap support.
7339 * c.opt: Ignore and warn for mudflap options.
98906124 7340
d73749df 73412013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
7342
7343 PR other/33426
7344 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
7345 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
7346
3f04b1bb
JM
73472013-10-23 Jason Merrill <jason@redhat.com>
7348
7349 * c-format.c (gcc_cxxdiag_char_table): Add %X.
7350
acf0174b
JJ
73512013-10-11 Jakub Jelinek <jakub@redhat.com>
7352
acd15a28
JJ
7353 * c-common.h (omp_clause_mask::operator !=): New method.
7354 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
7355 instead of if (mask & something) tests everywhere.
7356
acf0174b
JJ
7357 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
7358 201307 instead of 201107.
7359 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
7360 (c_common_attribute_table): Add "omp declare target" and
7361 "omp declare simd" attributes.
7362 (handle_omp_declare_target_attribute,
7363 handle_omp_declare_simd_attribute): New functions.
7364 * c-omp.c: Include c-pragma.h.
7365 (c_finish_omp_taskgroup): New function.
7366 (c_finish_omp_atomic): Add swapped argument, if true,
7367 build the operation first with rhs, lhs arguments and use NOP_EXPR
7368 build_modify_expr.
7369 (c_finish_omp_for): Add code argument, pass it down to make_code.
7370 (c_omp_split_clauses): New function.
7371 (c_split_parallel_clauses): Removed.
7372 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
7373 c_omp_declare_simd_clauses_to_decls): New functions.
7374 * c-common.h (omp_clause_mask): New type.
7375 (OMP_CLAUSE_MASK_1): Define.
7376 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
7377 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
7378 omp_clause_mask::operator |, omp_clause_mask::operator &,
7379 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
7380 omp_clause_mask::operator ==): New methods.
7381 (enum c_omp_clause_split): New.
7382 (c_finish_omp_taskgroup): New prototype.
7383 (c_finish_omp_atomic): Add swapped argument.
7384 (c_finish_omp_for): Add code argument.
7385 (c_omp_split_clauses): New prototype.
7386 (c_split_parallel_clauses): Removed.
7387 (c_omp_declare_simd_clauses_to_numbers,
7388 c_omp_declare_simd_clauses_to_decls): New prototypes.
7389 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
7390 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
7391 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
7392 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
7393 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
7394 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
7395 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
7396 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
7397 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
7398 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
7399 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
7400 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
7401 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
7402 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
7403 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
7404 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
7405 PRAGMA_OMP_CLAUSE_UNIFORM.
7406
826cacfe
MG
74072013-10-09 Marc Glisse <marc.glisse@inria.fr>
7408
7409 PR tree-optimization/20318
7410 * c-common.c (handle_returns_nonnull_attribute): New function.
7411 (c_common_attribute_table): Add returns_nonnull.
7412
2284b034
MG
74132013-10-03 Marc Glisse <marc.glisse@inria.fr>
7414
7415 PR c++/19476
7416 * c.opt (fcheck-new): Move to common.opt.
7417
b56e9788
MP
74182013-09-25 Marek Polacek <polacek@redhat.com>
7419 Jakub Jelinek <jakub@redhat.com>
7420
7421 PR sanitizer/58413
7422 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
7423 an expression if we can prove it is correct.
7424 (ubsan_instrument_division): Likewise. Remove unnecessary
7425 check.
7426
ce6923c5
MP
74272013-09-18 Marek Polacek <polacek@redhat.com>
7428
7429 PR sanitizer/58411
7430 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
7431 Declare it.
7432 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
7433
fb5610fb
IS
74342013-09-14 Iain Sandoe <iain@codesourcery.com>
7435
7436 PR target/48094
7437 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
7438 fobjc-gc, freplace-objc-classes): Accept for LTO.
7439
88b0e79e
JC
74402013-09-13 Jacek Caban <jacek@codeweavers.com>
7441
7442 * c-target.def: New hook
7443
c9b0866a
PC
74442013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
7445
7446 PR c++/43452
7447 * c.opt (Wdelete-incomplete): Add.
7448
0af94e6f
JR
74492013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
7450
7451 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
7452 (vector_types_compatible_elements_p): New function.
7453 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
7454 declaration.
7455 (vector_types_compatible_elements_p): Declare.
7456
7c26172c
GDR
74572013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
7458
7459 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
7460 a virtual member function.
7461 (pp_simple_type_specifier): Remove.
7462 (pp_c_type_specifier): Likewise.
7463 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
7464 Rename from pp_c_type_specifier. Adjust.
7465 (c_pretty_printer::c_pretty_printer): Do not assign to
7466 simple_type_specifier.
7467
20059c8b
GDR
74682013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
7469
7470 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
7471 member function.
7472 (c_pretty_printer::storage_class_specifier): Likewise.
7473 (c_pretty_printer::initializer): Likewise.
7474 (pp_declaration): Remove.
7475 (pp_declaration_specifiers): Likewise.
7476 (pp_abstract_declarator): Likewise.
7477 (pp_declarator): Likewise.
7478 (pp_type_id): Likewise.
7479 (pp_statement): Likewise.
7480 (pp_constant): Likewise.
7481 (pp_id_expression): Likewise.
7482 (pp_primary_expression): Likewise.
7483 (pp_unary_expression): Likewise.
7484 (pp_multiplicative_expression): Likewise.
7485 (pp_conditional_expression): Likewise.
7486 (pp_assignment_expression): Likewise.
7487 (pp_expression): Likewise.
7488 (pp_c_type_id): Likewise.
7489 (pp_c_storage_class_specifier): Likewise.
7490 * c-pretty-print.c (pp_c_type_cast): Tidy.
7491 (pp_c_pointer): Likewise.
7492 (pp_c_type_specifier): Likewise.
7493 (pp_c_parameter_type_list): Likewise.
7494 (pp_c_function_definition): Likewise.
7495 (pp_c_init_declarator): Likewise.
7496 (pp_c_initializer_list): Likewise.
7497 (pp_c_constructor_elts): Likewise.
7498 (c_pretty_printer::direct_abstract_declarator): Likewise.
7499 (c_pretty_printer::declaration_specifiers): Likewise.
7500 (c_pretty_printer::primary_expression): Likewise.
7501 (c_pretty_printer::postfix_expression): Likewise.
7502 (c_pretty_printer::type_id): Rename from pp_c_type_id.
7503 (c_pretty_printer::storage_class_specifier): Rename from
7504 pp_c_storage_class_specifier.
7505 (c_pretty_printer::initializer): Rename from pp_c_initializer.
7506 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
7507 storage_class_specifier, initializer, offset_list, flags.
7508
de5a5fa1
MP
75092013-08-30 Marek Polacek <polacek@redhat.com>
7510
7511 * c-ubsan.c: New file.
7512 * c-ubsan.h: New file.
7513
8f0e4d72
GDR
75142013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
7515
7516 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
7517 member function.
7518 (c_pretty_printer::declaration_specifiers): Likewise.
7519 (c_pretty_printer::declarator): Likewise.
7520 (c_pretty_printer::abstract_declarator): Likewise.
7521 (c_pretty_printer::direct_abstract_declarator): Likewise.
7522 (c_pretty_printer::direct_declarator): Likewise.
7523 (c_pretty_printer::function_specifier): Likewise.
7524 (pp_declaration): Adjust.
7525 (pp_declaration_specifiers): Likewise.
7526 (pp_abstract_declarator): Likewise.
7527 (pp_direct_declarator): Likewise.
7528 (pp_function_specifier): Likewise.
7529 (pp_direct_abstract_declarator): Remove as unused.
7530 (pp_c_declaration): Remove.
7531 (pp_c_declaration_specifiers): Likewise.
7532 (pp_c_declarator): Likewise.
7533 (pp_c_direct_declarator): Likewise.
7534 (pp_c_function_specifier): Likewise.
7535 (pp_c_direct_abstract_declarator): Likewise.
7536 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
7537 from pp_c_abstract_declarator. Adjust.
ab20d992 7538 (c_pretty_printer::direct_abstract_declarator): Rename from
8f0e4d72
GDR
7539 pp_c_direct_abstract_declarator. Adjust.
7540 (c_pretty_printer::function_specifier): Rename from
7541 pp_c_function_specifier. Adjust.
7542 (c_pretty_printer::declaration_specifiers): Rename from
7543 pp_c_declaration_specifiers. Adjust.
7544 (c_pretty_printer::direct_declarator): Rename from
7545 pp_c_direct_declarator. Adjust.
7546 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
7547 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
7548 (c_pretty_printer::c_pretty_printer): Do not assign to
7549 declaration, declaration_specifiers, declarator,
7550 direct_declarator, direct_abstract_declarator, function_specifier.
7551
00d34d3a
GDR
75522013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
7553
7554 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
7555 virtual member function.
7556 (c_pretty_printer::multiplicative_expression): Likewise.
7557 (c_pretty_printer::conditional_expression): Likewise.
7558 (c_pretty_printer::assignment_expression): Likewise.
7559 (c_pretty_printer::expression): Likewise.
7560 (pp_unary_expression): Adjust.
7561 (pp_multiplicative_expression): Likewise.
7562 (pp_assignment_expression): Likewise.
7563 (pp_conditional_expression): Likewise.
7564 (pp_expression): Likewise.
7565 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
7566 from pp_c_unary_expression. Adjust.
7567 (c_pretty_printer::multiplicative_expression): Rename from
7568 pp_c_multiplicative_expression. Adjust.
7569 (c_pretty_printer::conditional_expression): Rename from
7570 pp_c_conditional_expression. Adjust.
7571 (c_pretty_printer::assignment_expression): Rename from
7572 pp_c_assignment_expression. Adjust.
7573 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
7574 (c_pretty_printer::c_pretty_printer): Do not assign to
7575 unary_expression, multiplicative_expression,
7576 conditional_expression, expression.
7577
fb22178f
GDR
75782013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
7579
7580 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
7581 virtual member function.
7582 (pp_postfix_expression): Adjust.
7583 (pp_c_postfix_expression): Remove.
7584 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
7585 from pp_c_postfix_expression. Adjust.
7586 (c_pretty_printer::c_pretty_printer): Do not assign to
7587 postfix_expression.
7588
7ecc2600
GDR
75892013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
7590
7591 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
7592 virtua member function.
7593 (pp_primary_expression): Adjust.
7594 (pp_c_primary_expression): Remove.
7595 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
7596 from pp_c_primary_expression. Adjust.
7597 (pp_c_initializer_list): Use pp_primary_expression.
7598 (c_pretty_printer::c_pretty_printer): Do not assign to
7599 primary_expression.
7600
0691175f
GDR
76012013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
7602
7603 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
7604 * c-pretty-print.c (M_): Remove.
7605 (c_pretty_printer::translate_string): Define.
7606 (pp_c_type_specifier): Use it.
7607 (pp_c_primary_expression): Likewise.
7608 (pp_c_expression): Likewise.
7609
66dfe4c4
GDR
76102013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
7611
7612 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
7613 virtual function.
7614 (pp_c_id_expression): Remove.
7615 (pp_id_expression): Adjust.
7616 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
7617 pp_c_id_expression. Adjust.
7618 (pp_c_postfix_expression): Use pp_id_expression.
7619 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
7620
ca43e9d5
GDR
76212013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
7622
7623 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
7624 member function.
7625 (pp_constant): Adjust.
7626 (pp_c_constant): Remove.
7627 * c-pretty-print.c (c_pretty_printer::constant): Rename from
7628 pp_c_constant. Adjust.
7629 (pp_c_constant)
7630 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
7631 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
7632
da6ca2b5
GDR
76332013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
7634
7635 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
7636 (c_pretty_printer::c_pretty_printer): Declare.
7637 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
7638 c_pretty_printer_init. Adjust.
7639 (print_c_tree): Do not call c_pretty_printer_init.
7640 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
7641
65a372f4
AC
76422013-08-09 Arnaud Charlet <charlet@adacore.com>
7643
7644 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
7645
fd9b0f32
PC
76462013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
7647
7648 PR c++/58080
7649 * c-common.c (pointer_int_sum): Add bool parameter.
7650 * c-common.h (pointer_int_sum): Adjust declaration.
7651
e0aec1e9
GDR
76522013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
7653
7654 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
7655 c_pretty_printer variable.
7656
b066401f
GDR
76572013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
7658
7659 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
7660 (pp_base): Remove.
7661 (pp_c_base): Likewise. Adjust users.
7662 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
7663 (pp_c_whitespace): Do not call pp_base.
7664 (pp_c_left_paren): Likewise.
7665 (pp_c_right_paren): Likewise.
7666 (pp_c_left_brace): Likewise.
7667 (pp_c_right_brace): Likewise.
7668 (pp_c_left_bracket): Likewise.
7669 (pp_c_right_bracket): Likewise.
7670 (pp_c_dot): Likewise.
7671 (pp_c_ampersand): Likewise.
7672 (pp_c_star): Likewise.
7673 (pp_c_arrow): Likewise.
7674 (pp_c_semicolon): Likewise.
7675 (pp_c_complement): Likewise.
7676 (pp_c_exclamation): Likewise.
7677 (pp_c_direct_declarator): Likewise.
7678 (pp_c_ws_string): Likewise.
7679 (pp_c_identifier): Likewise.
7680 (pp_c_statement): Likewise.
7681 (print_c_tree): Likewise.
7682
65e5a578
ESR
76832013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
7684
7685 PR c++/58072
7686 * c-common.c (c_parse_error): Catch user-defined literal tokens and
7687 provide useful error strings.
7688
137a1a27
GDR
76892013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
7690
7691 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
7692 printer functions instead of pp_string or operators and punctuators.
7693 (dump_generic_ada_node): Likewise.
7694 * c-pretty-print.c (pp_c_type_specifier): Likewise.
7695 (pp_c_relational_expression): Likewise.
7696 (pp_c_logical_or_expression): Likewise.
7697
07838b13
GDR
76982013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
7699
7700 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
7701 functions instead of pp_character.
7702 (pp_ada_tree_identifier): Likewise.
7703 (dump_ada_double_name): Likewise.
7704 (dump_ada_function_declaration): Likewise.
7705 (dump_ada_array_domains): Likewise.
7706 (dump_template_types): Likewise.
7707 (dump_generic_ada_node): Likewise.
7708 (print_ada_declaration): Likewise.
7709 (print_ada_struct_decl): Likewise.
7710 * c-pretty-print.c (pp_c_integer_constant): Likewise.
7711
433cc7b0
TT
77122013-07-23 Tom Tromey <tromey@redhat.com>
7713
7714 * c-common.h (enum rid) <RID_GENERIC>: New constant.
7715 * c-common.c (c_common_reswords): Add _Generic.
7716
688010ba
OB
77172013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
7718
7719 * c-common.c: Fix typos.
7720 * c-common.h: Likewise.
7721
2a99e5e6
LL
77222013-07-13 Lubos Lunak <l.lunak@suse.cz>
7723
7724 PR c++/55203
7725 * c-common.c (c_common_attribute_table): Add warn_unused.
7726 (handle_warn_unused_attribute): New.
7727
c26302d5
JJ
77282013-07-10 Jakub Jelinek <jakub@redhat.com>
7729
7730 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
7731 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
7732
dfeadaa0
PC
77332013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
7734
7735 PR c++/57869
7736 * c.opt: Add Wconditionally-supported.
7737
6a2fa4b2
GS
77382013-07-08 Graham Stott <graham.stott@btinternet.com>
7739
adfac8df 7740 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
7741 unused variables l_length and l_node.
7742
ecdbd01a 77432013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
7744
7745 PR c/57821
7746 * c-common.c (complete_array_type): Delay folding first index
7747 like other indices. When folding, check for index overflow.
7748
bedc293e
MG
77492013-06-27 Marc Glisse <marc.glisse@inria.fr>
7750
7751 PR c++/57509
7752 * c-common.h (c_build_vec_perm_expr): New complain argument.
7753 * c-common.c (c_build_vec_perm_expr): Likewise.
7754 Use save_expr also in C++.
7755
604b2bfc
GDR
77562013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
7757
7758 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
7759 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
7760 * c-opts.c (c_common_post_options): Likewise.
7761
dfeadaa0 77622013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
7763
7764 * array-notation-common.c (length_mismatch_in_expr): Changed the
7765 parameter type's from a dynamic array to a vec_tree. Also removed
7766 the size parameters.
7767 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
7768 the change above.
7769
2ce86d2e
BI
77702013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
7771
7772 * c-common.h (struct cilkplus_an_parts): New structure.
7773 (struct cilkplus_an_loop_parts): Likewise.
7774 (cilkplus_extract_an_triplets): New prototype.
7775 (fix_sec_implicit_args): Likewise.
7776 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
7777 (fix_sec_implicit_args): Likewise.
604b2bfc 7778
07a6825b
BI
77792013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
7780
7781 * array-notation-common.c (find_inv_trees): Removed an unwanted
7782 typecasting.
7783 * c-common.h (struct inv_list::additional_tcodes): Changed type from
7784 enum rid to enum tree_code.
7785
08346abd
JH
77862013-06-11 Jan Hubicka <jh@suse.cz>
7787
7788 * c-common.c (handle_alias_ifunc_attribute): Do not set
7789 DECL_EXTERNAL for weakref variables.
7790 * c-pragma.c (handle_pragma_weak): Make sure aliases
7791 are not declared as external.
7792
d60f1706
BI
77932013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
7794
7795 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
7796 function from c/c-array-notation.c.
7797 (is_cilkplus_reduce_builtin): Likewise.
7798 (find_rank): Likewise.
7799 (extract_array_notation_exprs): Likewise.
7800 (replace_array_notations): Likewise.
7801 (find_inv_trees): Likewise.
7802 (replace_inv_trees): Likewise.
7803 (contains_array_notation_expr): Likewise.
7804 (find_correct_array_notation_type): Likewise.
7805 * c-common.h (struct inv_list): Moved this struct from the file
7806 c/c-array-notation.c and added a new field called additional tcodes.
7807 (length_mismatch_in_expr_p): New prototype.
7808 (is_cilkplus_reduce_builtin): Likewise.
7809 (find_rank): Likewise.
7810 (extract_array_notation_exprs): Likewise.
7811 (replace_array_notation): Likewise.
7812 (find_inv_trees): Likewise.
7813 (replace_inv_trees): Likewise.
7814 (find_correct_array_notation_type): Likewise.
dfeadaa0 7815
36536d79
BI
78162013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
7817
7818 * c-common.c (c_define_builtins): When cilkplus is enabled, the
7819 function array_notation_init_builtins is called.
7820 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
7821 * c-common.def (ARRAY_NOTATION_REF): New tree.
7822 * c-common.h (build_array_notation_expr): New function declaration.
7823 (build_array_notation_ref): Likewise.
7824 (extract_sec_implicit_index_arg): New extern declaration.
7825 (is_sec_implicit_index_fn): Likewise.
7826 (ARRAY_NOTATION_CHECK): New define.
7827 (ARRAY_NOTATION_ARRAY): Likewise.
7828 (ARRAY_NOTATION_START): Likewise.
7829 (ARRAY_NOTATION_LENGTH): Likewise.
7830 (ARRAY_NOTATION_STRIDE): Likewise.
7831 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
7832 ARRAY_NOTATION_REF.
7833 (pp_c_expression): Likewise.
7834 * c.opt (flag_enable_cilkplus): New flag.
7835 * array-notation-common.c: New file.
7836
f7716d57
JJ
78372013-05-14 Jakub Jelinek <jakub@redhat.com>
7838
7839 PR c++/57274
7840 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
7841
a5e0cd1d
MG
78422013-05-10 Marc Glisse <marc.glisse@inria.fr>
7843
7844 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
7845 vectors.
7846
f6bc1c4a
HS
78472013-05-07 Han Shen <shenhan@google.com>
7848
7849 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
7850
3f12f6e9
SKS
78512013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7852
7853 * c-common.c (check_user_alignment): Emit error for negative values.
7854
61949153
PC
78552013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
7856
7857 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
7858
e93e18e9
PC
78592013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
7860
7861 * c-cppbuiltin.c (c_cpp_builtins): Do not define
7862 __GXX_EXPERIMENTAL_CXX1Y__.
7863
44d90fe1 78642013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
8e745a17 7865 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
44d90fe1
PC
7866
7867 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
7868 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
7869 to simply use OPT_Wpointer_arith.
7870 (c_sizeof_or_alignof_type): Likewise.
7871
13f39b2e
PC
78722013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
7873
7874 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
7875
4b84d650
JJ
78762013-04-12 Jakub Jelinek <jakub@redhat.com>
7877
7878 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
7879 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
7880 specifiers.
7881
fb037b5d
SB
78822013-04-07 Steven Bosscher <steven@gcc.gnu.org>
7883
7884 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
7885
4e856798
PC
78862013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
7887
7888 * c-common.c (pointer_int_sum): Remove dead code.
7889
4b1baac8
RS
78902013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
7891
7892 PR middle-end/56524
7893 * c-common.c (handle_optimize_attribute): Don't call
7894 save_optabs_if_changed.
7895
0b50e654
JJ
78962013-03-05 Jakub Jelinek <jakub@redhat.com>
7897
7898 PR middle-end/56461
7899 * c-pch.c (pch_init): Free target_validity at the end.
7900
48c41403
JJ
79012013-03-04 Jakub Jelinek <jakub@redhat.com>
7902
7903 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
7904
e664c61c
KS
79052013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
7906 Jakub Jelinek <jakub@redhat.com>
7907
7908 PR sanitizer/56454
7909 * c-common.c (handle_no_sanitize_address_attribute): New function.
7910 (c_common_attribute_table): Add no_sanitize_address attribute.
7911 (handle_no_address_safety_analysis_attribute): Add
7912 no_sanitize_address attribute, not no_address_safety_analysis
7913 attribute.
7914
a475fd3d 79152013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
7916
7917 PR target/52555
7918 * c-common.c (handle_optimize_attribute): Call
7919 save_optabs_if_changed.
7920
f6007d99
JJ
79212013-02-18 Jakub Jelinek <jakub@redhat.com>
7922 Steven Bosscher <steven@gcc.gnu.org>
7923
7924 PR pch/54117
7925 * c-opts.c (c_common_post_options): If debug info is enabled
7926 and non-dwarf*, refuse to load PCH files and when writing PCH
7927 file warn.
7928
cf35e2b1
JJ
79292013-02-05 Jakub Jelinek <jakub@redhat.com>
7930
7931 PR middle-end/56167
7932 * c-common.c (handle_error_attribute): Fix condition.
7933
32887460
JJ
79342013-01-30 Jakub Jelinek <jakub@redhat.com>
7935
7936 PR c++/55742
7937 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
7938
5af057d8
JM
79392013-01-18 Jason Merrill <jason@redhat.com>
7940
7941 PR target/54908
7942 * c.opt (-fextern-tls-init): New.
7943 * c-opts.c (c_common_post_options): Handle it.
7944
cc83c823
JJ
79452013-01-09 Jakub Jelinek <jakub@redhat.com>
7946
7947 PR c/48418
7948 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
7949 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
7950 and is either negative or bigger or equal to type precision
7951 of the first operand.
7952
a859517f
MP
79532012-12-03 Marek Polacek <polacek@redhat.com>
7954
7955 PR c/55570
7956 * c-common.c (check_user_alignment): Swap order of tests,
7957 check TREE_CODE first.
7958
2d7aa578
ESR
79592012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
7960
7961 PR c++/52654
7962 * c-common.h (overflow_type): New enum.
7963 (build_userdef_literal): Add overflow_type argument.
7964 (tree_userdef_literal): Add overflow_type.
7965 (USERDEF_LITERAL_OVERFLOW): New access macro.
7966 * c-common.c (build_userdef_literal): Add overflow_type
7967 argument.
7968 * c-lex.c (c_lex_with_flags): Add overflow_type to
7969 build_userdef_literal calls.
7970 (interpret_integer, interpret_float): Add overflow_type argument.
7971
cc3c4f62
RB
79722012-11-28 Richard Biener <rguenther@suse.de>
7973
7974 PR c/35634
7975 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
7976 here and use a type with proper overflow behavior for types that would
7977 need to be promoted for the arithmetic.
7978
77bc5132
JJ
79792012-11-23 Jakub Jelinek <jakub@redhat.com>
7980
7981 PR sanitizer/55435
7982 * c-common.c (handle_no_address_safety_analysis_attribute): New
7983 function.
7984 (c_common_attribute_table): Add no_address_safety_analysis.
7985
5dc99c46
SB
79862012-11-16 Simon Baldwin <simonb@google.com>
7987
7988 * c.opt: Add f[no-]canonical-system-headers.
7989 * c-opts.c (c_common_handle_option): Handle
7990 OPT_fcanonical_system_headers.
7991
a4a0016d
ESR
79922012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
7993
7994 PR c++/54413
7995 * c-opts.c (c_common_handle_option): Set new flags.
7996 * c.opt: Describe new flags.
7997
7dbb85a7
JM
79982012-11-09 Jason Merrill <jason@redhat.com>
7999
8000 * c.opt (Wabi-tag): New.
8001
ad7bac31
AK
80022012-11-09 Andi Kleen <ak@linux.intel.com>
8003
8004 PR 55139
8005 * c-common.c (get_atomic_generic_size): Mask with
8e745a17 8006 MEMMODEL_MASK
ad7bac31 8007
7332899a
MLI
80082012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
8009
8010 PR c/53063
8011 * c.opt (Wformat): Make it Alias Wformat=1.
8012 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
8013 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
8014 LangEnabledBy.
8015 (Wformat=): RejectNegative. Use LangEnabledBy.
8016 (Wnonnull): Use LangEnabledBy.
8017 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
8018 * c-format.c (set_Wformat): Delete.
8019 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
ab20d992
JJ
8020 (maybe_read_dollar_number): Likewise.
8021 (avoid_dollar_number): Likewise.
8022 (finish_dollar_format_checking): Likewise.
8023 (check_format_info): Likewise.
8024 (check_format_info_main): Likewise.
8025 (check_format_types): Likewise.
8026 (format_type_warning): Likewise.
8027 * c-common.c (int): Likewise.
8028 (check_function_sentinel): Likewise.
8e745a17 8029 * c-common.h (warn_format,set_Wformat): Do not declare here.
7332899a 8030
34a180a6
MLI
80312012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
8032
8033 PR c/53063
8034 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
8035 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
8036 Use LangEnabledBy.
8037 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
8038 common.opt.
8039 (Wvariadic-macros): Init(1).
8040 * c-opts.c (c_common_handle_option): Do not handle them
8041 explicitly.
8042 (c_common_post_options): Likewise.
8043 (sanitize_cpp_opts): warn_unused_macros is now
8044 cpp_warn_unused_macros.
8045 (push_command_line_include): Likewise.
8046 * c-common.c (warn_unknown_pragmas): Do not define.
8047 * c-common.h (warn_unknown_pragmas): Do not declare.
8048
3f46d6a5
MLI
80492012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
8050
8051 PR c/51294
8052 * c-common.c (conversion_warning): Handle conditional expressions.
8053
880661a4
JW
80542012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
8055
8056 PR c++/54930
8057 * c.opt (Wreturn_local_addr): Define new option.
8058
4514a96b
JM
80592012-10-25 Jason Merrill <jason@redhat.com>
8060
f14edc1a
JM
8061 * c.opt (Wvirtual-move-assign): New.
8062
4514a96b
JM
8063 * c.opt (Winherited-variadic-ctor): New.
8064
93100c6b
MG
80652012-10-25 Marc Glisse <marc.glisse@inria.fr>
8066
8067 PR c++/54427
8068 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
8069
1efcb8c6
JM
80702012-10-23 Joseph Myers <joseph@codesourcery.com>
8071
8072 * c-common.h (pch_cpp_save_state): Declare.
8073 * c-target.def (c_preinclude): New hook.
8074 * c-opts.c (done_preinclude): New.
8075 (push_command_line_include): Handle default preincluded header.
8076 (cb_file_change): Call pch_cpp_save_state when calling
8077 push_command_line_include.
8078 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
8079 (pch_cpp_save_state): New.
8080 (pch_init): Call pch_cpp_save_state conditionally, instead of
8081 calling cpp_save_state.
8082
4a0ae68e
MLI
80832012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
8084
8085 PR c/53063
8086 PR c/40989
8087 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
8088 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
8089 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
8090 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
8091 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
8092 * c-opts.c (c_common_handle_option): Remove explicit handling from
8093 here.
8094 (c_common_post_options): Likewise.
8095
67e4210b
EB
80962012-10-18 Eric Botcazou <ebotcazou@adacore.com>
8097
8098 * c-ada-spec.c (LOCATION_COL): Delete.
8099 (compare_location): New function.
8100 (compare_node): Use it.
8101 (compare_comment): Likewise.
8102
65d4f2cd
MLI
81032012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
8104
8105 PR c/53063
8106 PR c/40989
8107 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
8108 * c-opts.c (c_common_handle_option): Do not set them here. Add
8109 comment.
8110 (c_common_post_options): Likewise.
8111
909881cb
EB
81122012-10-16 Eric Botcazou <ebotcazou@adacore.com>
8113
8114 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
8115 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
8116 Remove POINTER_TYPE handling, add large unsigned handling and use
8117 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
8118
3a785c97
JJ
81192012-10-12 Jakub Jelinek <jakub@redhat.com>
8120
8121 PR c/54381
8122 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
8123 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
8124 locs and array of 3 trees instead of just single loc and single
8125 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
8126 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
8127 For *cmp* builtins that take two sources strings report warnings
8128 about first and second source, not about destination and source.
8129
5e54f81d
MG
81302012-10-12 Marc Glisse <marc.glisse@inria.fr>
8131
8132 PR c++/53055
8133 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
8134
f5b02f1e
EB
81352012-10-11 Eric Botcazou <ebotcazou@adacore.com>
8136
8137 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
8138 declaring something coming from another file.
8139
b46dbc6c
AC
81402012-10-10 Arnaud Charlet <charlet@adacore.com>
8141
f5b02f1e 8142 PR ada/54845
b46dbc6c
AC
8143 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
8144
5d9de0d0
PC
81452012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
8146
8147 PR c++/54194
8148 * c-common.c (warn_about_parentheses): Add location_t parameter;
8149 use EXPR_LOC_OR_LOC.
8150 * c-common.h: Update declaration.
8151
a212e43f
MG
81522012-10-09 Marc Glisse <marc.glisse@inria.fr>
8153
8154 PR c++/54427
8155 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
8156 more operations. Make error messages optional.
8157 * c-common.h (enum stv_conv): Moved from c-typeck.c.
8158 (scalar_to_vector): Declare.
8159
b1db7f91
JM
81602012-10-08 Jason Merrill <jason@redhat.com>
8161
8162 * c-common.c (c_common_reswords): Add thread_local.
8163
e28d52cf
DS
81642012-10-08 Dodji Seketeli <dodji@redhat.com>
8165
8166 PR c++/53528 C++11 attribute support
8167 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
8168 new functions.
8169 * c-common.c (check_cxx_fundamental_alignment_constraints): New
8170 static function.
8171 (handle_aligned_attribute): In choose strictest alignment
8172 among many. Use new check_cxx_fundamental_alignment_constraints.
8173 (handle_transparent_union_attribute): In c++11 attribute syntax,
8174 don't look through typedefs.
8175
3b78de56
AC
81762012-10-04 Arnaud Charlet <charlet@adacore.com>
8177
8178 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
8179 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
8180 out of dumpfile.h.
8181
6040bb5f
DC
81822012-09-25 Dehao Chen <dehao@google.com>
8183
8184 PR middle-end/54645
3b78de56 8185 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
8186 map when read in the pch.
8187
3f8257db 81882012-09-18 Arnaud Charlet <charlet@adacore.com>
0b07a57e
AC
8189
8190 * c-ada-spec.c: Style fixes.
8191
3f8257db 81922012-09-18 Thomas Quinot <quinot@adacore.com>
da5182be
TQ
8193
8194 * c.opt (-fada-spec-parent): Define new command line switch.
8195 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
8196 is specified, generate binding spec as a child of the specified unit.
8197
0ccb505d
PC
81982012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
8199 Manuel López-Ibáñez <manu@gcc.gnu.org>
8200
8201 PR c++/53210
8202 * c.opt ([Winit-self]): Enabled by -Wall in C++.
8203
c583af79
AC
82042012-08-23 Arnaud Charlet <charlet@adacore.com>
8205
8206 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
8207 for pointers, and add missing Convention C pragma.
8208 (print_ada_struct_decl): Add missing aliased keyword.
8209 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
8210
1a4049e7
JJ
82112012-08-17 Jakub Jelinek <jakub@redhat.com>
8212
8213 * c-common.c (sizeof_pointer_memaccess_warning): New function.
8214 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
8215 * c-opts.c (c_common_handle_option): Enable it for -Wall.
8216 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
8217 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
8218
70b5e7dc
RG
82192012-08-10 Richard Guenther <rguenther@suse.de>
8220
8221 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
8222
f8923f7e
SB
82232012-08-07 Steven Bosscher <steven@gcc.gnu.org>
8224
8225 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
8226 instead of separate pp_newline and pp_flush.
8227 (print_c_tree): Likewise.
8228
e45abe1f
RH
82292012-07-26 Richard Henderson <rth@redhat.com>
8230
8231 * c-common.c (handle_hot_attribute): Allow labels.
8232 (handle_cold_attribute): Likewise.
8233
332f1d24
JJ
82342012-07-20 Jakub Jelinek <jakub@redhat.com>
8235
8236 PR c++/28656
8237 * c-common.c (check_function_nonnull): Handle multiple nonnull
8238 attributes properly.
8239
7ee2468b
SB
82402012-07-16 Steven Bosscher <steven@gcc.gnu.org>
8241
8242 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
8243 * c-ada-spec.c: Likewise.
8244 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
8245
ee7b28eb
SB
82462012-07-14 Steven Bosscher <steven@gcc.gnu.org>
8247
8248 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
8249 Remove code conditional on it.
8250
6bdf3519
SB
82512012-07-11 Steven Bosscher <steven@gcc.gnu.org>
8252
8253 * c-gimplify.c: Do not include basic-block.h.
8254 * c-common.c: Do not include linfuncs.h.
8255
532aafad
SB
82562012-07-08 Steven Bosscher <steven@gcc.gnu.org>
8257
8258 * c-common.h: Include tree.h.
8259
8d0d1915
JM
82602012-07-02 Jason Merrill <jason@redhat.com>
8261
8262 PR c++/53524
8263 * c-common.c (get_priority): Call default_conversion.
8264
fbc873ad
UB
82652012-07-01 Uros Bizjak <ubizjak@gmail.com>
8266
8267 * c-pch.c (c_common_write_pch): Remove unused variables.
8268
d4a10d0a
SB
82692012-06-29 Steven Bosscher <steven@gcc.gnu.org>
8270
8271 * cppspec.c: Moved from gcc/ to here.
8272
6f3a2e23
KT
82732012-06-27 Kai Tietz <ktietz@redhat.com>
8274
8275 PR preprocessor/37215
8276 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
8277
8ca92d04
SB
82782012-06-21 Steven Bosscher <steven@gcc.gnu.org>
8279
8280 * c-common.h (c_common_print_pch_checksum): Remove.
8281 * c-pch.c: Do not include output.h.
8282 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
8283 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
8284 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
8285 (struct c_pch_header): Remove.
8286 (get_ident): Update gpch version.
8287 (pch_init): Do not print executable_checksum to asm_out_file.
8288 Do not fail if there is no asm_out_file to read back from. Set
8289 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
8290 (c_common_write_pch): Verify that nothing was written to asm_out_file
8291 since pch_init was called. Do not write a c_pch_header, and do not
8292 copy from asm_out_file to the PCH.
8293 (c_common_read_pch): Do not read a c_pch_header, and do not restore
8294 the content of asm_out_file from the PCH.
8295 (c_common_print_pch_checksum): Remove.
8296 * c-opts.c (c_common_init): Print out executable_checksum directly.
8297
70f42967
SB
82982012-06-19 Steven Bosscher <steven@gcc.gnu.org>
8299
8300 * c-target.def (objc_declare_unresolved_class_reference,
8301 objc_declare_class_definition): Add new hooks.
8302
a8781821
SB
83032012-06-19 Steven Bosscher <steven@gcc.gnu.org>
8304
8305 * c-lex.c: Do not include output.h.
8306 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
8307 Remove uses of ASM_OUTPUT_IDENT.
8308
9e1a8dd1
RR
83092012-06-15 Marc Glisse <marc.glisse@inria.fr>
8310
8311 PR c++/51033
8312 * c-common.h (c_build_vec_perm_expr): Move decl here.
8313 * c-common.c (c_build_vec_perm_expr): Move definition
8314 here.
8315
6f07a821
SB
83162012-06-06 Steven Bosscher <steven@gcc.gnu.org>
8317
8318 * c.opt (fconserve-space): Turn into a no-op.
8319
9faeb493 83202012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
8321
8322 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
8323 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
8324 both the start and end of the function.
8325
a4b7d13c
SB
83262012-06-04 Steven Bosscher <steven@gcc.gnu.org>
8327
8328 * c-common.c: Do not include output.h.
8329 * c-pragma.c: Likewise.
8330
c265f413
SA
83312012-06-04 Steven Bosscher <steven@gcc.gnu.org>
8332
8333 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
8334 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
8335 (lang_decl_name): Handle namespace decls.
8336
be7a421e
SB
83372012-05-31 Steven Bosscher <steven@gcc.gnu.org>
8338
8339 * c-ada-spec.c: Do not include output.h.
8340 * c-semantics.c: Likewise.
8341
65de6659
JM
83422012-05-29 Joseph Myers <joseph@codesourcery.com>
8343
8344 * c-common.c: Fix typo.
8345
ca5f4331
MM
83462012-05-29 Michael Matz <matz@suse.de>
8347
8348 * c-common.h (c_expand_decl): Remove prototype.
8349
4f7f7aca
MLI
83502012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
8351
8352 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
8353 * c-opts.c (c_common_handle_option): Remove code handling
8354 warn_missing_braces.
8355
4a792f9b
PC
83562012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
8357
8358 PR c++/25137
8359 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
8360 -Wmissing_braces.
8361
650dc14a
DS
83622012-05-22 Dodji Seketeli <dodji@redhat.com>
8363
8364 PR c++/53322
8365 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
8366
9b095bf1
MLI
83672012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
8368
8369 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
8370 * c-opts.c (c_common_handle_option): Do not handle explicitly
8371 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
8372
0b2c4be5
DS
83732012-05-16 Dodji Seketeli <dodji@redhat.com>
8374
8375 PR preprocessor/7263
ab20d992 8376 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
0b2c4be5
DS
8377 to cpp_classify_number. For diagnostics, use the precise location
8378 instead of the global input_location.
8379
a1bde5af
PC
83802012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
8381
d02924ef 8382 PR c++/11856
a1bde5af
PC
8383 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
8384
d1ede5f4
BS
83852012-05-14 Bernd Schmidt <bernds@codesourcery.com>
8386
a1bde5af 8387 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 8388
f2bc201f
MLI
83892012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
8390
8391 PR 53063
8392 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
8393 Wreorder): Use LangEnabledBy.
8394 * c-opts.c (c_common_handle_option): Do not enable them
8395 explicitly. Call lang-specific generated functions.
8396 (c_common_post_options): Do not set them here.
8397
95744782
MLI
83982012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
8399
8400 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
8401 Wmissing-field-initializers,Wmissing-parameter-type,
8402 Wold-style-declaration,Woverride-init): Use EnabledBy.
8403 * c-opts.c (c_common_post_options): Do not set here explicitly.
8404
7d5a5747
MLI
84052012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
8406
8407 PR 53063
8408 * c-opts.c (c_common_handle_option): Use handle_generated_option
8409 to enable sub-options.
8410
5a3c9cf2
PC
84112012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
8412
8413 PR c++/53158
8414 * c-common.c (warnings_for_convert_and_check): Use warning_at.
8415
3ac8781c
RG
84162012-05-10 Richard Guenther <rguenther@suse.de>
8417
8418 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
8419 adjust commentary about TYPE_IS_SIZETYPE types.
8420
1e537948
MLI
84212012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
8422
8423 PR c++/53261
8424 * c-common.c (warn_logical_operator): Check that argument of
8425 integer_zerop is not NULL.
8426
f2c4a785
MLI
84272012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
8428
8429 PR c/43772
8430 * c-common.c (warn_logical_operator): Do not warn if either side
8431 is already true or false.
8432
50f305ca
MLI
84332012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
8434
8435 PR c/51712
8436 * c-common.c (expr_original_type): New.
8437 (shorten_compare): Do not warn for enumeration types.
8438
0c3641b0
MLI
84392012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
8440
8441 * c.opt (fpermissive): Add Var(flag_permissive).
8442
7edaa4d2
MG
84432012-04-30 Marc Glisse <marc.glisse@inria.fr>
8444
8445 PR c++/51033
8446 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
8447 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
8448
b9c8da34
DS
84492012-04-30 Dodji Seketeli <dodji@redhat.com>
8450
8451 Add -Wvarargs option
ab20d992 8452 * c.opt (Wvarargs): Define new option.
b9c8da34 8453
e6c69da0
MLI
84542012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
8455
8456 * c-common.c (check_function_arguments): Replace
8457 Wmissing-format-attribute with Wsuggest-attribute=format.
8458
90137d8f
MLI
84592012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
8460
8461 * c.opt (Wsuggest-attribute=format): New. Alias of
8462 Wmissing-format-attribute.
8463 * c-format.c (decode_format_type): Replace
8464 Wmissing-format-attribute with Wsuggest-attribute=format.
8465 (check_function_format): Likewise.
8466
9faeb493 84672012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
8468
8469 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
8470 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
8471 * c.opt: Add Wliteral-suffix.
8472
c1771a20
MLI
84732012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
8474
8475 PR c/44774
8476 * c.opt (Wpedantic): New.
8477 (pedantic): Alias Wpedantic.
8478 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
8479 (c_common_post_options): Likewise.
8480 (sanitize_cpp_opts): Likewise.
8481 * c-lex.c (interpret_float): Likewise.
8482 * c-format.c (check_format_types): Likewise.
8483 * c-common.c (pointer_int_sum): Likewise.
8484 (c_sizeof_or_alignof_type): Likewise.
8485 (c_add_case_label): Likewise.
8486 (c_do_switch_warnings): Likewise.
8487 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
8488
04b391c1
JM
84892012-04-15 Jason Merrill <jason@redhat.com>
8490
8491 PR c++/52818
8492 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
8493 (C_STD_NAME): Distinguish between C++98 and C++11.
8494
ac868f29
EB
84952012-04-11 Eric Botcazou <ebotcazou@adacore.com>
8496
8497 PR target/52624
8498 * c-common.h (uint16_type_node): Rename into...
8499 (c_uint16_type_node): ...this.
8500 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
8501 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
8502
fd4116f4
MLI
85032012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
8504
8505 * c-common.c (warn_if_unused_value): Move definition to here.
8506 * c-common.h (warn_if_unused_value): Move declaration to here.
8507
573ac65e
WB
85082012-03-23 William Bader <williambader@hotmail.com>
8509
8510 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
8511
552b8185
JM
85122012-03-20 Jason Merrill <jason@redhat.com>
8513
8514 * c-common.h (enum cxx_dialect): Add cxx1y.
8515 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
8516 test.
8517 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
8518 * c-opts.c (c_common_post_options): Likewise.
8519 (set_std_cxx1y): New.
8520 (c_common_handle_option): Call it.
8521 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
8522
04398fa8
PC
85232012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
8524
8525 PR c++/14710
8526 * c.opt ([Wuseless-cast]): Add.
8527
d2a12ae7
RG
85282012-03-16 Richard Guenther <rguenther@suse.de>
8529
8530 * c-pretty-print.c (pp_c_initializer_list): Adjust.
8531
a12bf402
MLI
85322012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
8533
8534 PR c++/44783
8535 * c.opt (ftemplate-backtrace-limit) Add.
8536
5c30094f
RO
85372012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8538
8539 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
8540 handling.
8541 * c-pragma.c (handle_pragma_extern_prefix): Remove.
8542 (init_pragma): Don't register extern_prefix.
8543
21fa2faf
RG
85442012-03-12 Richard Guenther <rguenther@suse.de>
8545
8546 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
8547 (builtin_type_for_size): Likewise.
8548
e3793c6f
JJ
85492012-02-13 Jakub Jelinek <jakub@redhat.com>
8550
8551 PR c++/52215
8552 * c-common.c (sync_resolve_params): Don't decide whether to convert
8553 or not based on TYPE_SIZE comparison, convert whenever arg_type
8554 is unsigned INTEGER_TYPE.
8555
93286335
PC
85562012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
8557
8558 PR c/52118
8559 * c.opt ([Wunused-local-typedefs]): Fix description.
8560
7a421706
MS
85612012-01-24 Mike Stump <mikestump@comcast.net>
8562
8563 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
8564 exactly.
8565
ba9b1f11
RG
85662012-01-18 Richard Guenther <rguenther@suse.de>
8567
8568 * c-opts.c (c_common_post_options): Reset LTO flags if
8569 we are about to generate a PCH.
8570
465406be
PC
85712012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
8572
8573 PR c++/51777
8574 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
8575 use pp_unsigned_wide_integer.
8576
aee15221
RG
85772012-01-10 Richard Guenther <rguenther@suse.de>
8578
8579 PR middle-end/51806
8580 * c-opts.c (c_common_handle_option): Move -Werror handling
8581 to language independent code.
8582
5720c0dc
RG
85832012-01-05 Richard Guenther <rguenther@suse.de>
8584
8585 PR middle-end/51764
8586 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
8587 from common.opt.
8588
73ac190a
PC
85892011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
8590
8591 PR c++/51316
8592 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
8593 of array types with an unknown bound.
8594
48b0b196
JM
85952011-12-20 Joseph Myers <joseph@codesourcery.com>
8596
8597 * c-common.c (flag_isoc99): Update comment to refer to C11.
8598 (flag_isoc1x): Change to flag_isoc11.
8599 * c-common.h (flag_isoc99): Update comment to refer to C11.
8600 (flag_isoc1x): Change to flag_isoc11.
8601 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
8602 C11.
8603 * c-opts.c (set_std_c1x): Change to set_std_c11.
8604 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
8605 Call set_std_c11.
8606 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
8607 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
8608 * c.opt (std=c1x): Change to std=c11. Document as non-draft
8609 standard.
8610 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
8611 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
8612 (std=gnu1x): Make alias of std=gnu11.
8613
d58d6eb5
JM
86142011-12-19 Jason Merrill <jason@redhat.com>
8615
8616 PR c++/51228
8617 * c-common.c (handle_transparent_union_attribute): Check the first
8618 field if the type is complete.
8619
b3908fcc
JW
86202011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
8621
8622 PR libstdc++/51365
8623 * c-common.c (RID_IS_FINAL): Add.
8624 * c-common.h (RID_IS_FINAL): Add.
8625
fea3ca91
IS
86262011-11-30 Iain Sandoe <iains@gcc.gnu.org>
8627
8628 * c.opt (fgnu-runtime): Provide full description.
8629 (fnext-runtime): Likewise.
8630 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
8631
62bad7cd
AM
86322011-11-28 Andrew MacLeod <amacleod@redhat.com>
8633
8634 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
8635 predefines in one place. Add LOCK_FREE predefines.
8636 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
8637 new func.
8638
c466c4ff
AM
86392011-11-24 Andrew MacLeod <amacleod@redhat.com>
8640
8641 PR c/51256
9faeb493 8642 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 8643 conditions
9faeb493
UB
8644 (resolve_overloaded_atomic_exchange,
8645 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
8646 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
8647 error_mark_node for error conditions.
9faeb493 8648
a5952633
RG
86492011-11-08 Richard Guenther <rguenther@suse.de>
8650
8651 PR middle-end/51010
ab20d992 8652 * c-pretty-print.c (pp_c_expression): Handle SSA_NAMEs.
a5952633 8653
0a35513e
AH
86542011-11-07 Richard Henderson <rth@redhat.com>
8655 Aldy Hernandez <aldyh@redhat.com>
8656 Torvald Riegel <triegel@redhat.com>
8657
8658 Merged from transactional-memory.
8659
8660 * c-common.c (handle_tm_wrap_attribute,
8661 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
8662 (struct c_common_reswords): Added __transaction* keywords.
8663 (struct c_common_attribute_table): Added transaction* and tm_regparm
8664 attributes.
8665 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
8666 masks.
8667 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
8668 find_tm_attribute): Declare.
8669
6d87092d
JM
86702011-11-07 Jason Merrill <jason@redhat.com>
8671
8672 PR c++/35688
8673 * c-common.c, c-common.h: Revert yesterday's changes.
8674
8e7860a1
JM
86752011-11-06 Jason Merrill <jason@redhat.com>
8676
8677 PR c++/35688
8678 * c-common.c (decl_has_visibility_attr): Split out from...
8679 (c_determine_visibility): ...here.
8680 * c-common.h: Declare it.
8681
d19fa6b5
JM
86822011-11-06 Joseph Myers <joseph@codesourcery.com>
8683
8684 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
8685 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
8686 type.
8687 (check_user_alignment): New. Split out of
8688 handle_aligned_attribute. Disallow integer constants with
8689 noninteger types. Conditionally allow zero.
8690 (handle_aligned_attribute): Use check_user_alignment.
8691 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
8692
86951993
AM
86932011-11-06 Andrew MacLeod <amacleod@redhat.com>
8694 Richard Henderson <rth@redhat.com>
8695
8696 Merged from cxx-mem-model.
8697
8698 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 8699 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
8700 parameters that are the same type size.
8701 (get_atomic_generic_size): New. Find size of generic
8702 atomic function parameters and do typechecking.
8703 (add_atomic_size_parameter): New. Insert size into parameter list.
8704 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
8705 either __atomic_exchange_n or external library call.
9faeb493 8706 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 8707 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 8708 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
8709 __atomic_load_n or an external library call.
8710 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
8711 __atomic_store_n or an external library call.
8712 (resolve_overloaded_builtin): Handle new __atomic builtins.
8713
cf9e9959
EB
87142011-11-04 Eric Botcazou <ebotcazou@adacore.com>
8715
8716 PR c++/50608
8717 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
8718 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
8719 <INDIRECT_REF>: Return the argument.
8720 <ARRAY_REF>: Remove special code for negative offset.
8721 Call fold_build_pointer_plus instead of size_binop.
8722 (fold_offsetof): Remove STOP_REF argument and adjust.
8723 * c-common.h (fold_offsetof_1): Declare.
8724 (fold_offsetof): Remove STOP_REF argument.
8725
25339f10
JM
87262011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
8727
8728 PR c++/50810
8729 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
8730 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
8731 Wnarrowing for C++0x and C++98.
8732 * c.opt ([Wnarrowing]): Update.
8733
89401152
PC
87342011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
8735
8736 PR c++/44277
8737 * c.opt: Add Wzero-as-null-pointer-constant.
8738
97e3ad20
JM
87392011-10-31 Jason Merrill <jason@redhat.com>
8740
15694fdd
JM
8741 * c.opt (-fdeduce-init-list): Off by default.
8742
97e3ad20
JM
8743 PR c++/50920
8744 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
8745 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
8746 and -Wc++11-compat.
8747 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
8748
fb9120e3
RAV
87492011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
8750
8751 PR c++/30066
8752 * c.opt (fvisibility-inlines-hidden): Description change.
8753
3ce4f9e4
ESR
87542011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
8755
8756 Implement C++11 user-defined literals.
8757 * c-common.c (build_userdef_literal): New.
8758 * c-common.def: New tree code.
8759 * c-common.h (tree_userdef_literal): New tree struct and accessors.
8760 * c-lex.c (interpret_float): Add suffix parm.
8761 (c_lex_with_flags): Build literal tokens.
8762
5f53c243
PC
87632011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
8764
8765 PR c++/50841
8766 Revert:
8767 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
8768
8769 PR c++/50810
8770 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
8771 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
8772 Wnarrowing for C++0x and C++98.
8773 * c.opt ([Wnarrowing]): Update.
8774
263734e1
PC
87752011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
8776
8777 PR c++/50810
8778 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
8779 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
8780 Wnarrowing for C++0x and C++98.
8781 * c.opt ([Wnarrowing]): Update.
8782
d2e312d7
PC
87832011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
8784
8785 PR c++/45385
8786 * c-common.c (conversion_warning): Remove code looking for
8787 artificial operands.
8788
d17687f6
DS
87892011-10-18 Dodji Seketeli <dodji@redhat.com>
8790
8791 PR bootstrap/50760
8792 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 8793 !NO_IMPLICIT_EXTERN_C.
d17687f6 8794
fc8396e9
PC
87952011-10-17 Michael Spertus <mike_spertus@symantec.com>
8796
8797 * c-common.c (c_common_reswords): Add __bases,
8798 __direct_bases.
8799 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
8800
88012011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
8802
8803 PR c++/50757
8804 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
8805
847e697a
TT
88062011-10-15 Tom Tromey <tromey@redhat.com>
8807 Dodji Seketeli <dodji@redhat.com>
8808
8809 * c.opt (fdebug-cpp): New option.
8810 * c-opts.c (c_common_handle_option): Handle the option.
8811 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
8812 output stream in parameter. Factorized from ...
8813 (maybe_print_line): ... this. Dump location debug information when
8814 -fdebug-cpp is in effect.
8815 (print_line_1): New static function. Takes an output stream in
8816 parameter. Factorized from ...
8817 (print_line): ... here. Dump location information when -fdebug-cpp
8818 is in effect.
8819 (scan_translation_unit): Dump location information when
8820 -fdebug-cpp is in effect.
8821
92582b75
TT
88222011-10-15 Tom Tromey <tromey@redhat.com>
8823 Dodji Seketeli <dodji@redhat.com>
8824
8825 * c.opt (ftrack-macro-expansion): New option. Handle it with and
8826 without argument.
8827 * c-opts.c (c_common_handle_option)<case
8828 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
8829 cases. Handle -ftrack-macro-expansion with and without argument.
8830
46427374
TT
88312011-10-15 Tom Tromey <tromey@redhat.com>
8832 Dodji Seketeli <dodji@redhat.com>
8833
8834 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
8835 (print_line, cb_define, do_line_change): Adjust to avoid touching
8836 the internals of struct line_map. Use the public API instead.
8837 * c-pch.c (c_common_read_pch): Likewise.
8838 * c-lex.c (fe_file_change): Likewise.
8839
fc8396e9
PC
88402011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
8841
8842 PR c++/17212
8843 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
8844
88452011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
8846
8847 PR c++/33067
8848 * c-pretty-print.c (pp_c_floating_constant): Output
8849 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
8850
e79983f4
MM
88512011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
8852
8853 * c-common.c (def_builtin_1): Delete old interface with two
8854 parallel arrays to hold standard builtin declarations, and replace
8855 it with a function based interface that can support creating
8856 builtins on the fly in the future. Change all uses, and poison
8857 the old names. Make sure 0 is not a legitimate builtin index.
8858 * c-omp.c (c_finish_omp_barrier): Ditto.
8859 (c_finish_omp_taskwait): Ditto.
8860 (c_finish_omp_flush): Ditto.
8861
6637388f
TG
88622011-10-11 Tristan Gingold <gingold@adacore.com>
8863
8864 * c.opt: (fallow-parameterless-variadic-functions): New.
8865
3797cb21
DS
88662011-09-08 Dodji Seketeli <dodji@redhat.com>
8867
8868 PR c++/33255 - Support -Wunused-local-typedefs warning
8869 * c-common.h (struct c_language_function::local_typedefs): New
8870 field.
9faeb493
UB
8871 (record_locally_defined_typedef, maybe_record_typedef_use)
8872 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 8873 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
8874 (maybe_record_typedef_use)
8875 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
8876 * c.opt: Declare new -Wunused-local-typedefs flag.
8877
693ddb1b
EB
88782011-09-06 Eric Botcazou <ebotcazou@adacore.com>
8879
8880 PR middle-end/50266
8881 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
8882 computations.
8883
830c740f
RG
88842011-09-05 Richard Guenther <rguenther@suse.de>
8885
8886 * c-common.c (complete_array_type): Use ssize_int (-1) instead
8887 of integer_minus_one_node for empty array upper bounds.
8888
892a371f
DS
88892011-08-28 Dodji Seketeli <dodji@redhat.com>
8890
8891 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
8892 it's the first time it's being called on this main TU.
8893
0e3fdb48
RB
88942011-08-24 Richard Guenther <rguenther@suse.de>
8895
8896 PR c/49396
8897 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
8898
88992011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
8900
8901 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
8902 defined in cpp_init_builtins and c_cpp_builtins.
8903
d4a83c10
JM
89042011-08-19 Joseph Myers <joseph@codesourcery.com>
8905
8906 * c-common.c (c_common_reswords): Add __builtin_complex.
8907 * c-common.h (RID_BUILTIN_COMPLEX): New.
8908
bbceee64
JM
89092011-08-18 Joseph Myers <joseph@codesourcery.com>
8910
8911 * c-common.c (c_common_reswords): Add _Noreturn.
8912 (keyword_is_function_specifier): Handle RID_NORETURN.
8913 * c-common.h (RID_NORETURN): New.
8914
3f8257db 89152011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
0e3a99ae
AS
8916
8917 * c-common.c (unsafe_conversion_p): New function. Check if it is
8918 unsafe to convert an expression to the type.
8919 (conversion_warning): Adjust, use unsafe_conversion_p.
8920 * c-common.h (unsafe_conversion_p): New function declaration.
8921
20906c66
JJ
89222011-08-02 Jakub Jelinek <jakub@redhat.com>
8923
8924 * c-common.h (c_finish_omp_atomic): Adjust prototype.
8925 (c_finish_omp_taskyield): New prototype.
8926 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
8927 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
8928 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
8929 or RHS1 have side-effects, evaluate those too in the right spot,
8930 if it is a decl and LHS is also a decl, error out if they
8931 aren't the same.
8932 (c_finish_omp_taskyield): New function.
8933 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
8934 * c-pragma.c (omp_pragmas): Add taskyield.
8935 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
8936 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
8937 PRAGMA_OMP_CLAUSE_MERGEABLE.
8938
770e5a2e
DS
89392011-07-25 Dodji Seketeli <dodji@redhat.com>
8940
8941 * c-common.h (set_underlying_type): Remove parm name from
8942 declaration.
8943
1baae426
RG
89442011-07-25 Romain Geissler <romain.geissler@gmail.com>
8945
8946 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 8947
fcb21722
JM
89482011-07-22 Jason Merrill <jason@redhat.com>
8949
76f86d00
JM
8950 PR c++/49793
8951 * c.opt (Wnarrowing): New.
8952
3a636414
JM
8953 PR c++/30112
8954 * c-common.h: Declare c_linkage_bindings.
8955 * c-pragma.c (handle_pragma_redefine_extname): Use it.
8956
fcb21722
JM
8957 PR c++/49813
8958 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
8959 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
8960 as flag_isoc99 for 'restrict'.
8961 (pp_c_specifier_qualifier_list): Likewise for _Complex.
8962
02614448
ILT
89632011-07-21 Ian Lance Taylor <iant@google.com>
8964
8965 PR middle-end/49705
8966 * c-common.c (c_disable_warnings): New static function.
8967 (c_enable_warnings): New static function.
8968 (c_fully_fold_internal): Change local unused_p to bool. Call
8969 c_disable_warnings and c_enable_warnings rather than change
8970 c_inhibit_evaluation_warnings.
8971
34429675
JM
89722011-07-20 Jason Merrill <jason@redhat.com>
8973
8974 PR c++/6709 (DR 743)
8975 PR c++/42603 (DR 950)
8976 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
8977 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
8978 (CPP_DECLTYPE): New.
8979 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
8980
5d49b6a7
RG
89812011-07-19 Richard Guenther <rguenther@suse.de>
8982
8983 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
8984 * c-omp.c (c_finish_omp_for): Likewise.
8985
e84a58ff
EB
89862011-07-12 Eric Botcazou <ebotcazou@adacore.com>
8987
8988 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
8989 body on the next line.
8990
329af3c7
JM
89912011-07-08 Jason Merrill <jason@redhat.com>
8992
4063e61b
JM
8993 PR c++/45437
8994 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
8995
329af3c7
JM
8996 PR c++/49673
8997 * c-common.c (c_apply_type_quals_to_decl): Don't check
8998 TYPE_NEEDS_CONSTRUCTING.
8999
1a072294
RG
90002011-07-06 Richard Guenther <rguenther@suse.de>
9001
9002 * c-common.c (c_common_nodes_and_builtins):
9003 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
9004
fce5dddd
RG
90052011-07-05 Richard Guenther <rguenther@suse.de>
9006
9007 * c-common.c (c_common_nodes_and_builtins): Build all common
9008 tree nodes first.
9009
45d439ac
JJ
90102011-06-27 Jakub Jelinek <jakub@redhat.com>
9011
56300785
JJ
9012 * c-common.h (c_tree_chain_next): New static inline function.
9013
45d439ac
JJ
9014 * c-common.c (check_builtin_function_arguments): Handle
9015 BUILT_IN_ASSUME_ALIGNED.
9016
e0a8ecf2
AM
90172011-06-21 Andrew MacLeod <amacleod@redhat.com>
9018
9019 * c-common.c: Add sync_ or SYNC__ to builtin names.
9020 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
9021
90222011-06-20 Pierre Vittet <piervit@pvittet.com>
9023
9024 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
9025 handler.
9026 (gen_pragma_handler): New union.
9027 (internal_pragma_handler): New type.
9028 (c_register_pragma_with_data)
9029 (c_register_pragma_with_expansion_and_data): New functions.
9030
9031 * c-pragma.c (registered_pragmas, c_register_pragma_1)
9032 (c_register_pragma, c_register_pragma_with_expansion)
9033 (c_invoke_pragma_handler): Changed to work with
9034 internal_pragma_handler.
9035 (c_register_pragma_with_data)
9036 (c_register_pragma_with_expansion_and_data): New functions.
9037
677f3fa8
JM
90382011-06-14 Joseph Myers <joseph@codesourcery.com>
9039
9040 * c-common.c: Include common/common-target.h.
9041 (handle_section_attribute): Use
9042 targetm_common.have_named_sections.
9043 * c-cppbuiltin.c: Include common/common-target.h.
9044 (c_cpp_builtins): Use targetm_common.except_unwind_info.
9045
d7fc8c14
RG
90462011-06-10 Richard Guenther <rguenther@suse.de>
9047
9048 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
9049 to print a IDENTIFIER_NODE.
9050
10e48e39
RO
90512011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9052 Joseph Myers <joseph@codesourcery.com>
9053
9054 * c.opt (fbuilding-libgcc): New option.
9055 * c-cppbuiltin.c (c_cpp_builtins): Define
9056 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
9057
6976ae51
JM
90582011-06-07 Jason Merrill <jason@redhat.com>
9059
3ff60975
JM
9060 * c-common.c (max_tinst_depth): Lower default to 900.
9061
6976ae51
JM
9062 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
9063
009db074
RG
90642011-06-07 Richard Guenther <rguenther@suse.de>
9065
9066 * c-common.c (c_common_nodes_and_builtins): Do not set
9067 size_type_node or call set_sizetype.
9068
b4592b92
DS
90692011-06-07 Dodji Seketeli <dodji@redhat.com>
9070
9071 PR debug/49130
9072 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 9073 type when using pointer comparison to compare types.
b4592b92 9074
014ab419
JW
90752011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
9076
9077 * c.opt: Add -Wdelete-non-virtual-dtor.
9078 * c-opts.c (c_common_handle_option): Include it in -Wall.
9079
4f60111f
NF
90802011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
9081
9082 PR bootstrap/49190
9083
9084 Revert:
9085 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
9086
9087 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
9088 not tree_common.
9089
4cc4f2f4
JJ
90902011-05-27 Jakub Jelinek <jakub@redhat.com>
9091
9092 PR c++/49165
9093 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
9094 C++ don't call c_common_truthvalue_conversion on void type arms.
9095
38e01f9e
NF
90962011-05-27 Nathan Froyd <froydnj@codesourcery.com>
9097
9098 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
9099 (stmt_list_stack): Define.
9100 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
9101 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
9102
92e948a8
NF
91032011-05-26 Nathan Froyd <froydnj@codesourcery.com>
9104
9105 * c-common.c (warning_candidate_p): Check for BLOCKs.
9106
a2fc3e63
NF
91072011-05-26 Nathan Froyd <froydnj@codesourcery.com>
9108
9109 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
9110 not tree_common.
9111
0957c029
JJ
91122011-05-25 Jakub Jelinek <jakub@redhat.com>
9113
9114 * c-common.c (def_fn_type): Remove extra va_end.
9115
828fb3ba
JM
91162011-05-23 Jason Merrill <jason@redhat.com>
9117
9118 PR c++/48106
9119 * c-common.c (c_common_get_narrower): New.
9120 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
9121
dde05067
NF
91222011-05-23 Nathan Froyd <froydnj@codesourcery.com>
9123
9124 * c-common.h (check_function_arguments): Tweak prototype of
9125 check_function_arguments.
9126 * c-common.c (check_function_arguments): Likewise. Adjust
9127 calls to check_function_nonnull, check_function_format, and
9128 check_function_sentinel.
9129 (check_function_sentinel): Take a FUNCTION_TYPE rather than
9130 separate attributes and typelist arguments. Use
9131 FOREACH_FUNCTION_ARGS to iterate over argument types.
9132
3c0d13bf
PC
91332011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
9134
9135 * c-common.c (c_common_reswords): Reorder.
9136 * c-common.h (rid): Likewise.
9137
8242dd04
NF
91382011-05-10 Nathan Froyd <froydnj@codesourcery.com>
9139
9140 * c-common.c (def_fn_type): Don't call build_function_type, call
9141 build_function_type_array or build_varargs_function_type_array
9142 instead.
9143 (c_common_nodes_and_builtins): Likewise.
9144
3d528853
NF
91452011-05-05 Nathan Froyd <froydnj@codesourcery.com>
9146
9147 * c-common.c (c_add_case_label): Omit the loc argument to
9148 build_case_label.
9149 * c-common.h (build_case_label): Remove.
9150 * c-semantics.c (build_case_label): Remove.
9151
a04a722b
JM
91522011-05-05 Joseph Myers <joseph@codesourcery.com>
9153
9154 * c-objc.h (objc_start_method_definition): Update prototype.
9155 * stub-objc.c (objc_start_method_definition): Add extra parameter.
9156
e19a18d4
NF
91572011-05-04 Nathan Froyd <froydnj@codesourcery.com>
9158
9159 * c-common.c (check_main_parameter_types): Reindent. Don't use
9160 TYPE_ARG_TYPES directly.
9161 (handle_nonnull_attribute): Likewise.
9162 (sync_resolve_params): Likewise.
9163 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
9164 to check_format_string.
9165 (handle_format_attribute): Likewise.
9166 (check_format_string): Take a function type to examine instead of
9167 a type list. Use a function_arg_iterator to step through argument
9168 types.
9169
c62c040f
RG
91702011-05-04 Richard Guenther <rguenther@suse.de>
9171
9172 * c-common.c (fix_string_type): Use size_int for index type bounds.
9173 (start_fname_decls): Do not pass NULL to build_int_cst.
9174 (c_init_attributes): Likewise.
9175 * c-lex.c (c_lex_with_flags): Likewise.
9176
c12ff9d8
JM
91772011-04-27 Jason Merrill <jason@redhat.com>
9178
9179 * c-common.c (make_tree_vector_from_list): New.
9180 * c-common.h: Declare it.
9181
304dfbe3
RG
91822011-04-26 Richard Guenther <rguenther@suse.de>
9183
9184 PR preprocessor/48248
9185 * c-ppoutput.c (maybe_print_line): Always optimize newlines
9186 for output size with -P.
9187
3c0d13bf
PC
91882011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
9189
9190 * c-common.c (struct c_common_resword): Add __underlying_type.
9191 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
9192
04695783
JM
91932011-04-20 Jim Meyering <meyering@redhat.com>
9194
9195 * c-format.c (init_dollar_format_checking): Remove useless
9196 if-before-free.
9197
0dc33c3c
NP
91982011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
9199
9200 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 9201 (objc_detect_field_duplicates): New.
0dc33c3c 9202 * stub-objc.c: Likewise.
3c0d13bf 9203
c59633d9
NP
92042011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
9205
9206 * stub-objc.c (objc_declare_protocols): Renamed to
9207 objc_declare_protocol.
9208 * c-objc.h: Likewise.
3c0d13bf 9209
32dabdaf
NP
92102011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
9211
9212 * stub-objc.c (objc_declare_class): Updated argument name.
9213
81f653d6
NF
92142011-04-12 Nathan Froyd <froydnj@codesourcery.com>
9215
9216 * c-common.h (c_common_init_ts): Declare.
9217 * c-common.c (c_common_init_ts): Define.
9218
eb345401
NP
92192011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
9220
9221 * c-objc.h (objc_build_message_expr): Updated prototype.
9222 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 9223
a358e188
MJ
92242011-04-12 Martin Jambor <mjambor@suse.cz>
9225
9226 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
9227 of cgraph_node.
9228
e6313a78
RG
92292011-04-11 Richard Guenther <rguenther@suse.de>
9230
9231 * c-common.c (complete_array_type): Build a range type of
9232 proper type.
9233
dcf0c47e
NF
92342011-04-08 Nathan Froyd <froydnj@codesourcery.com>
9235
9236 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
9237 (handle_type_generic_attribute): Likewise.
9238
1ee44b26
JM
92392011-04-07 Jason Merrill <jason@redhat.com>
9240
9241 PR c++/48450
9242 * c-common.c (c_common_truthvalue_conversion): Don't ignore
9243 conversion from C++0x scoped enum.
9244
acce4e77
JM
92452011-04-06 Joseph Myers <joseph@codesourcery.com>
9246
9247 * c-target-def.h: New file.
9248 * c-target.def: New file.
9249 * c-target.h: New file.
9250 * c-common.c (targetcm): Don't define here.
9251 * c-common.h (default_handle_c_option): Declare.
9252 * c-format.c: Include c-target.h instead of target.h.
9253 * c-opts.c: Include c-target.h instead of target.h. Explicitly
9254 include tm.h.
9255 (default_handle_c_option): Move from targhooks.c.
9256
e2eefb55
JJ
92572011-03-29 Jakub Jelinek <jakub@redhat.com>
9258
9259 PR preprocessor/48248
9260 * c-ppoutput.c (print): Add src_file field.
9261 (init_pp_output): Initialize it.
9262 (maybe_print_line): Don't optimize by adding up to 8 newlines
9263 if map->to_file and print.src_file are different file.
9264 (print_line): Update print.src_file.
9265
ba78087b
KT
92662011-03-25 Kai Tietz <ktietz@redhat.com>
9267
9268 * c-ada-spec.c (compare_comment): Use filename_cmp
9269 instead of strcmp for filename.
9270
0edf1bb2
JL
92712011-03-25 Jeff Law <law@redhat.com>
9272
adfac8df 9273 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 9274
c7dc8804
JM
92752011-03-25 Jason Merrill <jason@redhat.com>
9276
9277 * c.opt: Add -std=c++03.
9278
d1d879b1
EB
92792011-03-22 Eric Botcazou <ebotcazou@adacore.com>
9280
9281 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
9282
3f8257db 92832011-03-17 Kai Tietz <ktietz@redhat.com>
62d784f7
KT
9284
9285 PR target/12171
5050afdf
KT
9286 * c-pretty-print.c (pp_c_specifier_qualifier_list):
9287 Display allowed attributes for function pointer types.
9288 (pp_c_attributes_display): New function to display
9289 attributes having affects_type_identity flag set to true.
9290 * c-pretty-print.h (pp_c_attributes_display): New prototype.
9291
62d784f7
KT
9292 * c-common.c (c_common_attribute_table):
9293 Add new element.
9294 (c_common_format_attribute_table): Likewise.
9295
82d37118
JM
92962011-03-18 Jason Merrill <jason@redhat.com>
9297
49a000c3
JM
9298 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
9299 * c-common.h: Don't declare it here.
9300 * c-common.c: Or define it here.
9301 * c-opts.c (c_common_handle_option): Or set it here.
9302
82d37118
JM
9303 PR c++/35315
9304 * c-common.c (handle_transparent_union_attribute): Don't
9305 make a duplicate type in C++.
9306
17bc631c
JM
93072011-03-15 Jason Merrill <jason@redhat.com>
9308
9309 * c-common.c (max_constexpr_depth): New.
9310 * c-common.h: Declare it.
9311 * c-opts.c (c_common_handle_option): Set it.
9312 * c.opt (fconstexpr-depth): New option.
9313
1b9b91a6
JM
93142011-03-11 Jason Merrill <jason@redhat.com>
9315
f231b5ff
JM
9316 * c-common.c (attribute_takes_identifier_p): Add missing const.
9317
1b9b91a6
JM
9318 PR c++/46803
9319 * c-common.c (attribute_takes_identifier_p): Assume that an
9320 unknown attribute takes an identifier.
9321
a19e4d44
NF
93222011-03-07 Nathan Froyd <froydnj@codesourcery.com>
9323
9324 PR c/47786
9325 * c-common.c (c_type_hash): Call list_length instead of iterating
9326 through DECL_CHAIN. Rename 'i' to 'n_elements'.
9327
982d62f6
JJ
93282011-02-19 Jakub Jelinek <jakub@redhat.com>
9329
9330 PR c/47809
9331 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
9332
0a256240
NP
93332011-02-17 Iain Sandoe <iains@gcc.gnu.org>
9334
9335 * c.opt (fobjc-abi-version=) New.
9336 (fobjc-nilcheck): New.
9337
ba9e6dd5
NF
93382011-02-03 Nathan Froyd <froydnj@codesourcery.com>
9339
9340 PR c++/46890
9341 * c-common.h (keyword_is_decl_specifier): Declare.
9342 * c-common.c (keyword_is_decl_specifier): Define.
9343 (keyword_is_function_specifier): New function.
9344
7273813a
JJ
93452011-01-26 Jakub Jelinek <jakub@redhat.com>
9346
9347 PR c/47473
9348 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
9349 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
9350 REAL_TYPE.
9351
908ef79b
AC
93522011-01-26 Arnaud Charlet <charlet@adacore.com>
9353
9354 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
9355
237e9384
JJ
93562011-01-26 Jakub Jelinek <jakub@redhat.com>
9357
9358 PR pch/47430
9359 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
9360 after init_c_lex if pch_file is set.
9361
47ea1edf
DK
93622011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
9363
d4dba752 9364 PR c++/43601
47ea1edf
DK
9365 * c.opt (-fkeep-inline-dllexport): New switch.
9366
2aa9c6ae
RG
93672011-01-12 Richard Guenther <rguenther@suse.de>
9368
9369 PR middle-end/32511
9370 * c-common.c (handle_weak_attribute): Warn instead of error
9371 on declaring an inline function weak.
9372
7bd11157
TT
93732011-01-05 Tom Tromey <tromey@redhat.com>
9374
9375 * c-common.h (lvalue_error): Update.
9376 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
9377 not error.
9378
0e66e494 93792010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 9380
b4f588c4
NP
9381 PR objc/47075
9382 * c-objc.h (objc_finish_message_expr): Added argument to
9383 prototype.
9384
f4da8dce
NF
93852010-12-22 Nathan Froyd <froydnj@codesourcery.com>
9386
9387 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
9388 Use prototype_p.
9389
46270f14
NP
93902010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
9391
9392 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 9393 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 9394
4816c593
NF
93952010-12-10 Nathan Froyd <froydnj@codesourcery.com>
9396
9397 * c-common.h (readonly_error): Declare.
9398 * c-common.c (readonly_error): Define.
9399
7a6daeb0
NF
94002010-12-09 Nathan Froyd <froydnj@codesourcery.com>
9401
9402 * c-common.h (invalid_indirection_error): Declare.
9403 * c-common.c (invalid_indirection_error): Define.
9404
892f6119
RG
94052010-12-03 Richard Guenther <rguenther@suse.de>
9406
9407 PR c/46745
9408 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
9409 (pp_c_unary_expression): Likewise.
9410 (pp_c_expression): Likewise.
9411
6c39e757
NP
94122010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
9413
9414 * c-common.h (objc_finish_function): New.
9415 (objc_non_volatilized_type): Removed.
9416 (objc_type_quals_match): Removed.
9417 * stub-objc.c (objc_finish_function): New.
9418 (objc_non_volatilized_type): Removed.
9419 (objc_type_quals_match): Removed.
9faeb493 9420
7c475d11
JM
94212010-11-30 Joseph Myers <joseph@codesourcery.com>
9422
9423 * c-common.h (parse_optimize_options): Declare.
9424 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
9425 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
9426
71f3e391
JM
94272010-11-29 Joseph Myers <joseph@codesourcery.com>
9428
9429 * c-opts.c (check_deps_environment_vars): Use getenv instead of
9430 GET_ENVIRONMENT.
9431 * c-pch.c (O_BINARY): Don't define here.
9432 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
9433
d5fabb58
JM
94342010-11-25 Joseph Myers <joseph@codesourcery.com>
9435
9436 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
9437 targetm.except_unwind_info.
9438
299404a1
JM
94392010-11-23 Joseph Myers <joseph@codesourcery.com>
9440
9441 * c-opts.c (c_common_handle_option): Pass location to
9442 set_struct_debug_option.
9443
c98cd5bf
JM
94442010-11-23 Joseph Myers <joseph@codesourcery.com>
9445
9446 * c-common.c (visibility_options): Move from ../opts.c.
9447 * c-common.h (struct visibility_flags, visibility_options):
9448 Declare here.
9449 * c-opts.c (finish_options): Rename to c_finish_options.
9450 (c_common_init): Update call to finish_options.
9451
a9546771
NP
94522010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
9453
9454 PR objc/34033
9455 * c-lex.c (lex_string): Check that each string in an Objective-C
9456 string concat sequence starts with either one or zero '@', and
9457 that there are no spurious '@' signs at the end.
9458
24a57808
JM
94592010-11-20 Joseph Myers <joseph@codesourcery.com>
9460
9461 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
9462 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
9463 HANDLE_PRAGMA_VISIBILITY.
9464 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
9465 HANDLE_PRAGMA_VISIBILITY): Don't define.
9466 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
9467
a9aa2c3a
NF
94682010-11-20 Nathan Froyd <froydnj@codesourcery.com>
9469
9470 PR c++/16189
9471 PR c++/36888
9472 PR c++/45331
9473 * c-common.h (keyword_begins_type_specifier): Declare.
9474 (keyword_is_storage_class_specifier): Declare.
9475 (keyword_is_type_qualifier): Declare.
9476 * c-common.c (keyword_begins_type_specifier): New function.
9477 (keyword_is_storage_class_specifier): New function.
9478 (keyword_is_type_qualifier): Declare.
9479
5386338c
JM
94802010-11-19 Joseph Myers <joseph@codesourcery.com>
9481
9482 PR c/46547
9483 * c-common.c (in_late_binary_op): Define.
9484 (c_common_truthvalue_conversion): Check in_late_binary_op before
9485 calling c_save_expr.
9486 * c-common.h (in_late_binary_op): Declare.
9487
69ccdddb
JM
94882010-11-19 Joseph Myers <joseph@codesourcery.com>
9489
9490 * c-opts.c (c_common_handle_option): Update calls to
9491 set_struct_debug_option.
9492
6b192a09
NP
94932010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
9494
9495 * c-common.h (objc_declare_protocols): Added additional argument.
9496 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 9497
fb52b50a
NF
94982010-11-18 Nathan Froyd <froydnj@codesourcery.com>
9499
9500 PR c/33193
9501 * c-common.h (build_real_imag_expr): Declare.
9502 * c-semantics.c (build_real_imag_expr): Define.
9503
b37421c6
JM
95042010-11-17 Joseph Myers <joseph@codesourcery.com>
9505
9506 * c-opts.c (c_common_parse_file): Take no arguments.
9507 * c-common.h (c_common_parse_file): Update prototype.
9508
07078664
JJ
95092010-11-16 Jakub Jelinek <jakub@redhat.com>
9510
9511 PR c++/46401
9512 * c-common.c (warning_candidate_p): Don't track non-const calls
9513 or STRING_CSTs.
9514
c6a13190
ILT
95152010-11-15 Ian Lance Taylor <iant@google.com>
9516
9517 * c-lex.c (init_c_lex): Set macro debug callbacks if
9518 flag_dump_go_spec is set.
9519
925e8657
NP
95202010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
9521
9522 * c-common.h (objc_build_incr_expr_for_property_ref): New.
9523 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
9524
bb0a9581
NF
95252010-11-15 Nathan Froyd <froydnj@codesourcery.com>
9526
9527 PR preprocessor/45038
9528 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
9529 dialects.
9530
c5fa0890
JM
95312010-11-12 Joseph Myers <joseph@codesourcery.com>
9532
9533 * c-common.h (c_family_lang_mask): Declare.
9534 * c-opts.c (c_family_lang_mask): Make extern.
9535 * c-pragma.c (handle_pragma_diagnostic): Use
9536 control_warning_option.
9537
a4d8c676
JM
95382010-11-12 Joseph Myers <joseph@codesourcery.com>
9539
9540 * c-common.c (parse_optimize_options): Update call to
9541 decode_options.
9542 * c-common.h (c_common_handle_option): Update prototype.
9543 * c-opts.c (c_common_handle_option): Take location_t parameter and
9544 pass it to other functions.
9545
f954bd2c
JM
95462010-11-11 Joseph Myers <joseph@codesourcery.com>
9547
9548 * c-opts.c (warning_as_error_callback): Remove.
9549 (c_common_initialize_diagnostics): Don't call
9550 register_warning_as_error_callback.
9551 (c_common_handle_option): Handle -Werror=normalized= here.
9552
d8a07487
JM
95532010-11-10 Joseph Myers <joseph@codesourcery.com>
9554
9555 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
9556 in diagnostic.
9557 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
9558 letter.
9559 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
9560 Remove trailing '.' from diagnostics.
9561 * c.opt (Wwrite-strings_: Avoid '`' in help text.
9562
d5478783
JM
95632010-11-10 Joseph Myers <joseph@codesourcery.com>
9564
9565 * c-common.c (parse_optimize_options): Pass global_dc to
9566 decode_options.
9567 * c-opts.c (c_common_handle_option): Pass &global_options to
9568 set_Wstrict_aliasing.
9569 * c.opt (v): Don't mark Common or document here.
9570
91ebb981
IS
95712010-11-06 Iain Sandoe <iains@gcc.gnu.org>
9572
9573 PR target/44981
9574 * c-format.c (format_type): New type gcc_objc_string_format_type.
9575 (valid_stringptr_type_p): New.
9576 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 9577 (check_format_string): Pass expected type, use
91ebb981
IS
9578 valid_stringptr_type_p (), check that the format string types are
9579 consistent with the format specification.
9580 (decode_format_attr): Warn if NSString is used outside objective-c.
9581 (format_types_orig): Add NSString.
9582 (format_name): New.
9583 (format_flags): New.
9584 (check_format_arg): Handle format strings requiring an external parser.
9585 first_target_format_type: New variable.
9586 (handle_format_attribute): Set up first_target_format_type, pass the
9587 expected format arg string type to check_format_string().
ab20d992 9588 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
91ebb981
IS
9589 * stub-objc.c (objc_string_ref_type_p): New.
9590 (objc_check_format_arg): New.
9591
bede2adc
NP
95922010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
9593
9faeb493 9594 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
9595 * c-common.h (objc_build_class_component_ref): New.
9596 * stub-objc.c (objc_build_class_component_ref): New.
9597
9a179d01
NP
95982010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
9599
9600 * c.opt (Wproperty-assign-default): New option.
9601
22d8d616
NP
96022010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
9603
9604 Implemented -fobjc-std=objc1 flag.
9605 * c.opt (fobjc-std=objc1): New option.
9606
2debdb4f
NP
96072010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
9608
9609 Implemented format and noreturn attributes for Objective-C methods.
9610 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
9611 attribute for Objective-C methods.
9612
ec52b111
JM
96132010-10-31 Jason Merrill <jason@redhat.com>
9614
9615 * c-common.c (conversion_warning, warn_for_collisions_1): Use
9616 EXPR_LOC_OR_HERE.
9617
46a88c12
NP
96182010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
9619
9620 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
9621 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
9622 (objc_add_property_declaration): Removed arguments for copies and
9623 ivar.
9624 (objc_build_getter_call): Renamed to
9625 objc_maybe_build_component_ref.
9626 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
9627 (objc_is_property_ref): New.
9628 * c-common.c (c_common_reswords): Removed copies and ivar.
9629 * stub-objc.c (objc_add_property_declaration): Removed arguments
9630 for copies and ivar.
9631 (objc_build_getter_call): Renamed to
9632 objc_maybe_build_component_ref.
9633 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
9634 (objc_is_property_ref): New.
9faeb493 9635
1e4bf85b
AC
96362010-10-29 Arnaud Charlet <charlet@adacore.com>
9637 Matthew Gingell <gingell@adacore.com>
9638
9639 * c-ada-spec.c (separate_class_package): New function.
9640 (pp_ada_tree_identifier): Prefix references to C++ classes with the
9641 name of their enclosing package.
9642 (print_ada_declaration): Use separate_class_package.
9643
81f0bab2
JM
96442010-10-27 Jason Merrill <jason@redhat.com>
9645
2b08f2c5
JM
9646 * c-common.c (c_common_reswords): Add __is_literal_type.
9647 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
9648
81f0bab2
JM
9649 * c-common.c (check_case_value): Remove special C++ code.
9650
200290f2
NP
96512010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
9652
9653 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
9654 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
9655 and RID_LAST_PATTR.
9656 (objc_add_property_declaration): Added additional arguments.
9657 (objc_property_attribute_kind): Removed.
9658 (objc_set_property_attr): Removed.
9659 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
9660 copy and nonatomic.
9661 * stub-objc.c (objc_add_property_declaration): Added additional
9662 arguments.
9663 (objc_set_property_attr): Removed.
9faeb493 9664
f614132b
NP
96652010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
9666
9667 * c-common.h (objc_add_property_variable): Renamed to
9668 objc_add_property_declaration. Added location argument.
9669 * stub-objc.c (objc_add_property_variable): Same change.
b1726d6c 9670
b8a18805
NP
96712010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
9672
9673 * c-common.h (objc_maybe_printable_name): New.
9674 * stub-objc.c (objc_maybe_printable_name): New.
9675
3f8257db
JJ
96762010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
9677 Andrew Pinski <pinskia@gmail.com>
30cd1c5d
AS
9678
9679 * c-common.h (c_common_mark_addressable_vec): Declare.
9680 * c-common.c (c_common_mark_addressable_vec): New function.
9681
249a82c4
NP
96822010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
9683
9684 * c-common.h (objc_set_method_type): Removed.
9685 (objc_add_method_declaration): Added boolean argument.
9686 (objc_start_method_definition): Same change.
9687 (objc_build_method_signature): Same change.
9688 * stub-objc.c (objc_set_method_type): Removed.
9689 (objc_add_method_declaration): Added boolean argument.
9690 (objc_start_method_definition): Same change.
9691 (objc_build_method_signature): Same change.
9692
977e30bc
NP
96932010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
9694
9695 * c-common.h (finish_file): Removed.
9696 (objc_write_global_declarations): New.
9697 * c-opts.c (c_common_parse_file): Do not call finish_file.
9698 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 9699
da57d1b9
NP
97002010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
9701
9702 Implemented parsing @synthesize and @dynamic for
9703 Objective-C/Objective-C++.
9704 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
9705 (objc_add_synthesize_declaration): New.
9706 (objc_add_dynamic_declaration): New.
9707 * c-common.c (c_common_reswords): Add synthesize and dynamic.
9708 * stub-objc.c (objc_add_synthesize_declaration): New.
9709 (objc_add_dynamic_declaration): New.
9faeb493 9710
0069111f
MM
97112010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
9712
9713 PR target/46041
9714 * c-cppbuiltin.c (mode_has_fma): Move function here from
9715 builtins.c. Don't use the fma optab, instead just use the
9716 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
9717 using -save-temps.
9718
e426b47b
NP
97192010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
9720
9721 Merge from 'apple/trunk' branch on FSF servers.
0069111f 9722
3f8257db 9723 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
e426b47b 9724
9faeb493 9725 Radar 4330422
e426b47b
NP
9726 * c-common.h (objc_non_volatilized_type): New declaration
9727 * stub-objc.c (objc_non_volatilized_type): New stub.
9728
90fbfdc3
NP
97292010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
9730
e426b47b 9731 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3 9732
ab20d992 9733 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
90fbfdc3 9734
9faeb493 9735 Radar 4133425
90fbfdc3 9736 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 9737 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 9738
c37d8c30
IS
97392010-10-17 Iain Sandoe <iains@gcc.gnu.org>
9740
9741 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
9742 * c-common.h (enum rid): Add RID_AT_PACKAGE.
9743 (objc_ivar_visibility_kind): New enum.
9744 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 9745 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
9746 visibility enum.
9747
1b1562a5
MM
97482010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
9749
9750 * c-cppbuiltin.c (builtin_define_float_constants): Emit
9751 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
9752 has the appropriate fma builtins.
9753 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
9754
668ea4b1
IS
97552010-10-14 Iain Sandoe <iains@gcc.gnu.org>
9756
1b1562a5 9757 merge from FSF apple 'trunk' branch.
3f8257db 9758 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 9759
668ea4b1
IS
9760 Radars 4436866, 4505126, 4506903, 4517826
9761 * c-common.c (c_common_resword): Define @property and its attributes.
9762 * c-common.h: Define property attribute enum entries.
9763 (OBJC_IS_PATTR_KEYWORD): New.
9764 (objc_property_attribute_kind): New enum.
9765 Declare objc_set_property_attr (), objc_add_property_variable (),
9766 objc_build_getter_call () and objc_build_setter_call ().
9767 * stub-objc.c (objc_set_property_attr): New stub.
9768 (objc_add_property_variable): Likewise.
9769 (objc_build_getter_call): Likewise.
9770 (objc_build_setter_call) Likewise.
1b1562a5 9771
a1178b30
IS
97722010-10-13 Iain Sandoe <iains@gcc.gnu.org>
9773
1b1562a5 9774 merge from FSF apple 'trunk' branch.
ab20d992 9775 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
a1178b30
IS
9776
9777 Radar 3803157 (method attributes)
9778 * c-common.c (handle_deprecated_attribute): Recognize
9779 objc methods as valid declarations.
9780 * c-common.h: Declare objc_method_decl ().
1b1562a5 9781 * stub-objc.c (objc_method_decl): New stub.
a1178b30 9782
a75bfaa6
JM
97832010-10-08 Joseph Myers <joseph@codesourcery.com>
9784
9785 * c-common.c (parse_optimize_options): Call
9786 decode_cmdline_options_to_array_default_mask before
9787 decode_options. Update arguments to decode_options.
9788 * c-common.h (c_common_init_options_struct): Declare.
9789 * c-opts.c (c_common_init_options_struct): New. Split out from
9790 c_common_init_options.
9791
f05b9d93
NP
97922010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
9793
9794 Implemented fast enumeration for Objective-C.
9795 * c-common.h (objc_finish_foreach_loop): New.
9796 * stub-objc.c (objc_finish_foreach_loop): New.
9797
1ebe4b4f
JM
97982010-10-05 Joseph Myers <joseph@codesourcery.com>
9799
9800 * c-common.h (struct diagnostic_context): Don't declare here.
9801 (c_common_initialize_diagnostics): Declare using
9802 diagnostic_context typedef.
9803 * c-opts.c (c_common_handle_option): Pass global_dc to
9804 handle_generated_option.
9805
d4d24ba4
JM
98062010-10-04 Joseph Myers <joseph@codesourcery.com>
9807
9808 * c-opts.c (c_common_handle_option): Pass &global_options_set to
9809 handle_generated_option.
9810
478a1c5b
ILT
98112010-10-03 Ian Lance Taylor <iant@google.com>
9812
9813 * c.opt (-fplan9-extensions): New option.
9814
82a1c2fe
FXC
98152010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9816
9817 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
9818 Remove.
9819 (c_cpp_builtins): Call functions from cppbuiltin.c instead
9820 of duplicating code.
9821
92902b1b
IS
98222010-09-30 Iain Sandoe <iains@gcc.gnu.org>
9823
9824 * c-common.c: Add two new entries for @optional
9825 and @required keywords.
9826
9827 merge from FSF 'apple/trunk' branch.
3f8257db 9828 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
92902b1b
IS
9829
9830 Radar 4386773
9831 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
9832 objective-c keywords.
9833 (objc_set_method_opt): New declaration.
9834 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 9835
46625112
JM
98362010-09-30 Joseph Myers <joseph@codesourcery.com>
9837
9838 * c-common.c (handle_optimize_attribute): Pass &global_options to
9839 cl_optimization_save and cl_optimization_restore.
9840 * c-opts.c (c_common_handle_option): Pass &global_options to
9841 handle_generated_option.
9842 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
9843 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
9844 &global_options to cl_optimization_restore.
9845
49b91f05
NP
98462010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
9847
9848 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
9849 Objective-C/Objective-C++ keywords.
9850
13ed556f 98512010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 9852
9faeb493
UB
9853 Merge from 'apple/trunk' branch on FSF servers.
9854
3f8257db 9855 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
a6341d57
NP
9856
9857 Radar 4281748
9858 * c-common.h (objc_check_global_decl): New declaration.
9859 * stub-objc.c (objc_check_global_decl): New stub.
9860
f0036cca
JM
98612010-09-29 Joseph Myers <joseph@codesourcery.com>
9862
9863 * c.opt: Don't use VarExists.
9864
e3339d0f
JM
98652010-09-29 Joseph Myers <joseph@codesourcery.com>
9866
9867 * c-common.c (c_cpp_error): Update names of diagnostic_context
9868 members.
9869 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
9870 cl_optimization members.
9871 * c-opts.c (warning_as_error_callback, c_common_handle_option,
9872 sanitize_cpp_opts, finish_options): Update names of cpp_options
9873 members.
9874
1973201f
NP
98752010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
9876
9877 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
9878 (objc_is_reserved_word): Removed.
9879 * c-common.c: Updated comments.
9880 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
9881 objc_is_reserved_word.
9882 * stub-objc.c (objc_is_reserved_word): Removed.
9883
f7e71da5
IS
98842010-09-28 Iain Sandoe <iains@gcc.gnu.org>
9885
9faeb493 9886 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
9887 include attributes.
9888 (objc_start_method_definition): Likewise.
9889 (objc_build_keyword_decl): Likewise.
9890 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
9891 (objc_start_method_definition): Likewise.
9892 (objc_build_keyword_decl): Likewise.
9893
c165dca7
IS
98942010-09-28 Iain Sandoe <iains@gcc.gnu.org>
9895
9896 * c-common.h (objc_start_class_interface): Adjust prototype.
9897 (objc_start_category_interface): Likewise.
9898 (objc_start_protocol): Likewise.
9899 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
9900 (objc_start_class_interface): Likewise.
9901 (objc_start_category_interface): Likewise.
9902
7458026b
ILT
99032010-09-27 Ian Lance Taylor <iant@google.com>
9904
9905 * c-common.c (c_common_attribute_table): Add no_split_stack.
9906 (handle_no_split_stack_attribute): New static function.
9907
b581b85b
NP
99082010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
9909
9faeb493 9910 Merge from 'apple/trunk' branch on FSF servers.
b581b85b 9911
3f8257db 9912 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
b581b85b 9913
9faeb493 9914 Radar 4229905
b581b85b
NP
9915 * c-common.h (objc_have_common_type): New declaration.
9916 * stub-objc.c (objc_have_common_type): New stub.
9917
9918 2005-06-22 Ziemowit Laski <zlaski@apple.com>
9919
9920 Radar 4154928
9921 * c-common.h (objc_common_type): New prototype.
9faeb493 9922 * stub-objc.c (objc_common_type): New stub.
b581b85b 9923
46a4da10
JH
99242010-09-24 Jan Hubicka <jh@suse.cz>
9925
9926 * c-common.c (handle_leaf_attribute): New function.
9927 (struct attribute_spec c_common_att): Add leaf.
9928
e200444e
JM
99292010-09-22 Joseph Myers <joseph@codesourcery.com>
9930
9931 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
9932 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
9933 -dump, -dump=, -imacros, -imacros=, -include, -include=,
9934 -include-barrier, -include-directory, -include-directory=,
9935 -include-directory-after, -include-directory-after=,
9936 -include-prefix, -include-prefix=, -include-with-prefix,
9937 -include-with-prefix=, -include-with-prefix-after,
9938 -include-with-prefix-after=, -include-with-prefix-before,
9939 -include-with-prefix-before=, -no-integrated-cpp,
9940 -no-line-commands, -no-standard-includes, -no-warnings, -output,
9941 -output=, -pedantic, -pedantic-errors, -preprocess,
9942 -print-missing-file-dependencies, -trace-includes, -traditional,
9943 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
9944 -user-dependencies, -verbose, -write-dependencies,
9945 -write-user-dependencies, no-integrated-cpp, traditional): New.
9946
29a80ea6
NP
99472010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
9948
9949 PR objc/23710
ac1fc2fc
NP
9950 * c-common.h (objc_start_method_definition): Return bool instead
9951 of void.
9952 * stub-objc.c (objc_start_method_definition): Return bool instead
9953 of void.
9954
99552010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
9956
9957 PR objc/25965
9958 * c-common.h (objc_get_interface_ivars): New declaration.
9959 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 9960
de621752
ILT
99612010-09-15 Ian Lance Taylor <iant@google.com>
9962
9963 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 9964 messages. Remove period at end of warning message.
de621752 9965
ba885ec5
NS
99662010-09-09 Nathan Sidwell <nathan@codesourcery.com>
9967
9968 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
9969 (handle_alias_attribute): ... here.
9970 (handle_ifunc_attribute): New.
9971
c5ee1358
MM
99722010-09-06 Mark Mitchell <mark@codesourcery.com>
9973
9974 * c-common.h (do_warn_double_promotion): Declare.
9975 * c-common.c (do_warn_double_promotion): Define.
9976
0a0b3574
MM
99772010-09-05 Mark Mitchell <mark@codesourcery.com>
9978
9979 * c.opt (Wdouble-promotion): New.
9980
d1779886
JM
99812010-09-02 Joseph Myers <joseph@codesourcery.com>
9982
9983 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
9984 fvtable-thunks, fxref): Mark no longer supported in help text.
9985
2d2bd949
JM
99862010-09-02 Joseph Myers <joseph@codesourcery.com>
9987
9988 * c.opt (Wimport, fall-virtual, falt-external-templates,
9989 fdefault-inline, fenum-int-equiv, fexternal-templates,
9990 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
9991 fname-mangling-version-, fnew-abi, fnonnull-objects,
9992 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
9993 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
9994 applicable.
9995 (fhandle-exceptions): Mark with Alias and Warn.
9996 * c-opts.c (c_common_handle_option): Don't handle options marked
9997 as ignored.
9998
5de8299c
JM
99992010-09-02 Joseph Myers <joseph@codesourcery.com>
10000
10001 * c.opt (Wcomments, Werror-implicit-function-declaration,
10002 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
10003 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
10004 aliases.
10005 * c-common.c (option_codes): Use OPT_Wcomment instead of
10006 OPT_Wcomments.
10007 * c-opts.c (warning_as_error_callback, c_common_handle_option):
10008 Don't handle options marked as aliases.
10009
0ceb0201
RG
100102010-08-25 Richard Guenther <rguenther@suse.de>
10011
10012 * c-common.c (c_common_get_alias_set): Remove special
10013 handling for pointers.
10014
ac47786e
NF
100152010-08-20 Nathan Froyd <froydnj@codesourcery.com>
10016
10017 * c-common.c: Use FOR_EACH_VEC_ELT.
10018 * c-gimplify.c: Likewise.
10019 * c-pragma.c: Likewise.
10020
c878765b
JM
100212010-08-16 Joseph Myers <joseph@codesourcery.com>
10022
10023 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
10024 RejectDriver.
10025 (MMDX): Change back to MMD. Mark NoDriverArg instead of
10026 RejectDriver.
10027 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
10028 instead of OPT_MDX and OPT_MMDX.
10029
603349bf
JM
100302010-08-16 Joseph Myers <joseph@codesourcery.com>
10031
10032 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
10033
644fa7ac
JM
100342010-08-12 Joseph Myers <joseph@codesourcery.com>
10035
10036 * c.opt (MD, MMD): Change to MDX and MMDX.
10037 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
10038
481e1176
JM
100392010-08-11 Joseph Myers <joseph@codesourcery.com>
10040
10041 * c-opts.c (c_common_handle_option): Call handle_generated_option
10042 instead of handle_option.
10043
ac8dc9f7
NF
100442010-08-08 Nathan Froyd <froydnj@codesourcery.com>
10045
10046 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
10047 (maybe_apply_renaming_pragma): Delete unneeded declarations.
10048
4f8c876d
NF
100492010-08-08 Nathan Froyd <froydnj@codesourcery.com>
10050
10051 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
10052 (pending_redefine_extname): Change type to a VEC.
10053 (add_to_renaming_pragma_list): Update for new type of
10054 pending_redefine_extname.
ac8dc9f7 10055 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 10056
3b0c690e
AC
100572010-08-04 Arnaud Charlet <charlet@adacore.com>
10058
10059 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
10060 visited.
10061 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
10062 decide whether a type has already been declared/seen.
10063 Do not go to the original type.
10064 (dump_nested_types): New parameter forward.
10065 Generate forward declaration if needed and mark type as visited.
10066 (print_ada_declaration): Call dump_nested_types if not already done.
10067 Mark types as visited.
10068
1890bccc
JM
100692010-08-03 Joseph Myers <joseph@codesourcery.com>
10070
10071 * c.opt (-print-pch-checksum): Remove option.
10072 * c-opts.c (c_common_handle_option): Don't handle
10073 OPT_print_pch_checksum.
10074
5f20c657
JM
100752010-07-27 Joseph Myers <joseph@codesourcery.com>
10076
10077 * c-common.h (c_common_handle_option): Update prototype and return
10078 value type.
10079 * c-opts.c (c_common_handle_option): Update prototype and return
10080 value type. Update calls to handle_option and
10081 enable_warning_as_error.
10082
f551f80c
JJ
100832010-07-27 Jakub Jelinek <jakub@redhat.com>
10084
10085 PR c/45079
10086 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
10087
61ff2bdc
JM
100882010-07-27 Joseph Myers <joseph@codesourcery.com>
10089
10090 * c-common.h (c_common_missing_argument): Remove.
10091 * c-opts.c (c_common_missing_argument): Remove.
10092 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
10093 idirafter, imacros, include, isysroot, isystem, iquote): Add
10094 MissingArgError.
10095 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
10096
7a9bf9a4
JM
100972010-07-27 Joseph Myers <joseph@codesourcery.com>
10098
10099 * c-common.h (c_common_option_lang_mask,
10100 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
10101 New.
10102 (c_common_init_options): Update prototype.
10103 * c-opts.c (c_common_option_lang_mask): New.
10104 (c_common_initialize_diagnostics): Split out of
10105 c_common_init_options.
10106 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
10107 New.
10108 (c_common_init_options): Update prototype. Use decoded options in
10109 search for -lang-asm.
10110
910ad8de
NF
101112010-07-15 Nathan Froyd <froydnj@codesourcery.com>
10112
10113 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
10114 * c-format.c: Likewise.
10115
718f9c0f
MLI
101162010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
10117
10118 * c-common.h: Include diagnostic-core.h. Error if already
10119 included.
10120 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
10121
4d451982
MLI
101222010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
10123
adfac8df 10124 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
10125 Do not include expr.h
10126 (vector_mode_valid_p): Move here.
10127
119fe915
SB
101282010-06-21 DJ Delorie <dj@redhat.com>
10129
10130 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
10131 allow these pragmas anywhere.
10132
101332010-06-14 Jakub Jelinek <jakub@redhat.com>
10134
10135 PR bootstrap/44509
10136 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
10137 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
10138 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
10139 ggc_strdup instead of xstrdup.
10140
101412010-06-10 Jakub Jelinek <jakub@redhat.com>
10142
10143 * c-cppbuiltin.c: Include cpp-id-data.h.
10144 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
10145 (lazy_hex_fp_value): New function.
10146 (builtin_define_with_hex_fp_value): Provide definitions lazily.
10147
6662d794
MLI
101482010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
10149
10150 * c-gimplify.c: Do not include tree-flow.h
10151
38f8b050
JR
101522010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
10153
10154 PR other/44034
10155 * c-common.c: Rename targetm member:
10156 targetm.enum_va_list -> targetm.enum_va_list_p
10157
9589f23e
AS
101582010-06-28 Anatoly Sokolov <aesok@post.ru>
10159
10160 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
10161
3b06d379
SB
101622010-06-28 Steven Bosscher <steven@gcc.gnu.org>
10163
10164 * c-cppbuiltin.c: Do not include except.h.
10165
d166d4c3
AK
101662010-06-24 Andi Kleen <ak@linux.intel.com>
10167
9faeb493
UB
10168 * c-common.c (warn_for_omitted_condop): New.
10169 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 10170
70cb8be6
JM
101712010-06-21 Joseph Myers <joseph@codesourcery.com>
10172
10173 * c.opt (lang-objc): Remove.
10174 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
10175
a4c97feb
JR
101762010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
10177
10178 * c-opts.c: Include "tm_p.h".
10179
6e2f1956
JM
101802010-06-20 Joseph Myers <joseph@codesourcery.com>
10181
10182 * c-common.c (parse_optimize_options): Update call to
10183 decode_options.
10184
bc87224e
NF
101852010-06-18 Nathan Froyd <froydnj@codesourcery.com>
10186
10187 * c-common.c (record_types_used_by_current_var_decl): Adjust for
10188 new type of types_used_by_cur_var_decl.
10189
b49cf425
JR
101902010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
10191
10192 PR bootstrap/44512
10193 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
10194 for C++ standard compliance.
10195
59f9c2ed
JM
101962010-06-16 Jason Merrill <jason@redhat.com>
10197
10198 * c.opt: Add -Wnoexcept.
10199
33766b66
RG
102002010-06-16 Richard Guenther <rguenther@suse.de>
10201
10202 PR c/44555
10203 * c-common.c (c_common_truthvalue_conversion): Remove
10204 premature and wrong optimization concering ADDR_EXPRs.
10205
eff7e30c
AC
102062010-06-15 Arnaud Charlet <charlet@adacore.com>
10207
10208 * c-ada-spec.c (dump_sloc): Remove column info.
10209 (is_simple_enum): New function.
10210 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
10211 enum types when relevant.
10212
6312e84d
MLI
102132010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
10214
9faeb493 10215 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
10216 location.
10217
1cb42611
JM
102182010-06-10 Joseph Myers <joseph@codesourcery.com>
10219
10220 * c-opts.c (c_common_handle_option): Don't handle
10221 OPT_fshow_column.
10222
a9429e29
LB
102232010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
10224
10225 * c-pragma.c (push_alignment): Use typed GC allocation.
10226 (handle_pragma_push_options): Likewise.
10227
10228 * c-common.c (parse_optimize_options): Likewise.
10229
10230 * c-common.h (struct sorted_fields_type): Add variable_size GTY
10231 option.
10232
5498f011
JM
102332010-06-07 Joseph Myers <joseph@codesourcery.com>
10234
10235 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
10236 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
10237 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
10238 flag_signed_bitfields, warn_strict_null_sentinel,
10239 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
10240 flag_gen_declaration, flag_no_gnu_keywords,
10241 flag_implement_inlines, flag_implicit_templates,
10242 flag_implicit_inline_templates, flag_optional_diags,
10243 flag_elide_constructors, flag_default_inline, flag_rtti,
10244 flag_conserve_space, flag_access_control, flag_check_new,
10245 flag_new_for_scope, flag_weak, flag_working_directory,
10246 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
10247 flag_enforce_eh_specs, flag_threadsafe_statics,
10248 flag_pretty_templates): Remove.
10249 * c-common.h (flag_preprocess_only, flag_nil_receivers,
10250 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
10251 flag_replace_objc_classes, flag_undef, flag_no_builtin,
10252 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
10253 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
10254 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
10255 flag_no_gnu_keywords, flag_implement_inlines,
10256 flag_implicit_templates, flag_implicit_inline_templates,
10257 flag_optional_diags, flag_elide_constructors, flag_default_inline,
10258 flag_rtti, flag_conserve_space, flag_access_control,
10259 flag_check_new, flag_new_for_scope, flag_weak,
10260 flag_working_directory, flag_use_cxa_atexit,
10261 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
10262 flag_threadsafe_statics, flag_pretty_templates,
10263 warn_strict_null_sentinel): Remove.
10264 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
10265 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
10266 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
10267 fimplicit-inline-templates, fimplicit-templates,
10268 flax-vector-conversions, fms-extensions, fnil-receivers,
10269 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
10270 frtti, fshort-double, fshort-enums, fshort-wchar,
10271 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
10272 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
10273 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
10274 gen-decls, undef): Use Var.
10275 (fdefault-inline, foptional-diags): Document as doing nothing.
10276 * c-opts.c (c_common_handle_option): Remove cases for options now
10277 using Var. Mark ignored options as such.
10278
39dabefd
SB
102792010-06-05 Steven Bosscher <steven@gcc.gnu.org>
10280
9faeb493 10281 * c-common.c: Moved to here from parent directory.
39dabefd
SB
10282 * c-common.def: Likewise.
10283 * c-common.h: Likewise.
10284 * c-cppbuiltin.c: Likewise.
10285 * c-dump.c: Likewise.
10286 * c-format.c: Likewise.
10287 * c-format.h : Likewise.
10288 * c-gimplify.c: Likewise.
10289 * c-lex.c: Likewise.
10290 * c-omp.c: Likewise.
10291 * c.opt: Likewise.
10292 * c-opts.c: Likewise.
10293 * c-pch.c: Likewise.
10294 * c-ppoutput.c: Likewise.
10295 * c-pragma.c: Likewise.
10296 * c-pragma.h: Likewise.
10297 * c-pretty-print.c: Likewise.
10298 * c-pretty-print.h: Likewise.
10299 * c-semantics.c: Likewise.
10300 * stub-objc.c: Likewise.
10301
10302 * c-common.c: Include gt-c-family-c-common.h.
10303 * c-pragma.c: Include gt-c-family-c-pragma.h.
10304\f
a5544970 10305Copyright (C) 2010-2019 Free Software Foundation, Inc.
39dabefd
SB
10306
10307Copying and distribution of this file, with or without modification,
10308are permitted in any medium without royalty provided the copyright
10309notice and this notice are preserved.
This page took 3.354957 seconds and 5 git commands to generate.