]> gcc.gnu.org Git - gcc.git/blame - gcc/c-family/ChangeLog
cgraph.c (cgraph_node::dump): Dump unit_id and merged_extern_inline.
[gcc.git] / gcc / c-family / ChangeLog
CommitLineData
1a291106
JM
12019-11-27 Jason Merrill <jason@redhat.com>
2
3 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_deduction_guides.
4
05d6cb1a
JJ
52019-11-26 Jakub Jelinek <jakub@redhat.com>
6
7 PR c++/61414
8 * c-attribs.c (handle_mode_attribute): Add mode attribute to
9 ENUMERAL_TYPEs.
10
5b8d9367
JM
112019-11-25 Joseph Myers <joseph@codesourcery.com>
12
13 PR c/91985
14 * c-common.c (c_common_type_for_mode): Handle decimal
15 floating-point types being NULL_TREE.
16 * c-format.c (get_format_for_type_1): Handle specified types being
17 NULL_TREE.
18 * c-lex.c (interpret_float): Give an error for decimal
19 floating-point constants when decimal floating-point not
20 supported.
21
1fbf51cb
JJ
222019-11-23 Jakub Jelinek <jakub@redhat.com>
23
24 PR middle-end/83859
25 * c-attribs.c (append_access_attrs): Avoid buffer overflow. Avoid
26 memory leak. Use XNEWVEC macro. Use auto_diagnostic_group to
27 group warning with inform together.
28 (handle_access_attribute): Formatting fix.
29
761df906
JJ
302019-11-22 Jakub Jelinek <jakub@redhat.com>
31
bdaf8be1
JJ
32 PR c/90677
33 * c-common.h (identifier_global_tag): Declare.
34 * c-format.c (get_pointer_to_named_type): Renamed to ...
35 (get_named_type): ... this. Use identifier_global_tag instead of
36 identifier_global_value, handle the return value being a TYPE_P.
37 (init_dynamic_diag_info): Adjust get_pointer_to_named_type callers
38 to call get_named_type instead. Formatting fixes.
39
c2ecce6d 40 Implement P1902R1, Missing feature-test macros 2017-2019.
761df906
JJ
41 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_init_captures
42 and __cpp_generic_lambdas for -std=c++2a. Define
43 __cpp_designated_initializers, __cpp_constexpr_in_decltype and
44 __cpp_consteval for -std=c++2a. Remove a FIXME comment about
45 __cpp_concepts for -std=c++2a.
46
54aa6b58
MS
472019-11-22 Martin Sebor <msebor@redhat.com>
48
49 PR middle-end/83859
50 * c-attribs.c (handle_access_attribute): New function.
51 (c_common_attribute_table): Add new attribute.
52 (get_argument_type): New function.
53 (append_access_attrs): New function.
54 (get_nonnull_operand): Rename...
55 (get_attribute_operand): ...to this.
56 * c-common.c (get_nonnull_operand): Rename...
57 (get_attribute_operand): ...to this.
58
6c80b1b5
JM
592019-11-21 Joseph Myers <joseph@codesourcery.com>
60
61 * c-attribs.c (handle_fallthrough_attribute): Use pedwarn instead
62 of warning.
63
192961ff
JM
642019-11-19 Joseph Myers <joseph@codesourcery.com>
65
66 * c-common.c (attribute_fallthrough_p): In C, use pedwarn not
67 warning for standard attributes mixed with fallthrough attributes.
68
f8aea5e3
JM
692019-11-15 Joseph Myers <joseph@codesourcery.com>
70
71 * c-attribs.c (handle_fallthrough_attribute): Remove static.
72 * c-common.h (handle_fallthrough_attribute): Declare.
73
2cc94aa8
JM
742019-11-15 Joseph Myers <joseph@codesourcery.com>
75
76 * c-attribs.c (handle_deprecated_attribute): Remove static.
77 * c-common.h (handle_deprecated_attribute): Declare.
78
7c5890cc
JM
792019-11-14 Joseph Myers <joseph@codesourcery.com>
80
81 * c-lex.c (lex_charconst): Make CPP_UTF8CHAR constants unsigned
82 char for C.
83
b2417b59
JJ
842019-11-14 Jakub Jelinek <jakub@redhat.com>
85
d0ec7c93
JJ
86 * c-omp.c (c_omp_check_context_selector): Add nvidia to the list of
87 valid vendors.
88
b2417b59
JJ
89 * c-omp.c (c_omp_check_context_selector): Handle name lists
90 containing string literals. Don't diagnose atomic_default_mem_order
91 with multiple props.
92
00be2a5f
JM
932019-11-13 Joseph Myers <joseph@codesourcery.com>
94
95 * c-cppbuiltin.c (builtin_define_float_constants): Also define
96 NORM_MAX constants. Update call to get_max_float.
97 (LAZY_HEX_FP_VALUES_CNT): Update value to include NORM_MAX
98 constants.
99
2dbad62d
EB
1002019-11-13 Eric Botcazou <ebotcazou@adacore.com>
101
102 * c-ada-spec.c (get_underlying_decl): Do not look through typedefs.
103 (dump_forward_type): Do not generate a declaration for function types.
104 (dump_nested_type) <ARRAY_TYPE>: Do not generate a nested declaration
105 of the component type if it is declared in another file.
106
6ed76044
ML
1072019-11-12 Martin Liska <mliska@suse.cz>
108
109 * c-opts.c (c_common_post_options):
110 Use SET_OPTION_IF_UNSET.
111
62aee289
MR
1122019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
113 Frederik Harwath <frederik@codesourcery.com>
114
115 gcc/c-family/
116 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_SERIAL enumeration
117 constant.
118 * c-pragma.c (oacc_pragmas): Add "serial" entry.
119
f486280c
RS
1202019-11-08 Richard Sandiford <richard.sandiford@arm.com>
121
122 * c-common.h (gnu_vector_type_p): New function.
123 * c-common.c (c_build_vec_perm_expr): Require __builtin_shuffle
124 vectors to satisfy gnu_vector_type_p.
125 (c_build_vec_convert): Likewise __builtin_convertvector.
126 (convert_vector_to_array_for_subscript): Likewise when applying
127 implicit vector to array conversion.
128 (scalar_to_vector): Likewise when converting vector-scalar
129 operations to vector-vector operations.
130
017c6491
JM
1312019-11-08 Joseph Myers <joseph@codesourcery.com>
132
133 * c.opt (Wold-style-definition): Initialize to -1.
134 * c-opts.c (c_common_post_options): Set warn_old_style_definition
135 to flag_isoc2x if not set explicitly.
136
c01bd174
JM
1372019-11-07 Joseph Myers <joseph@codesourcery.com>
138
139 * c-attribs.c (parse_tm_stmt_attr): Handle scoped attributes.
140
0df65305
JM
1412019-11-05 Jason Merrill <jason@redhat.com>
142
143 * c-opts.c (c_common_post_options): -fconcepts-ts implies
144 -fconcepts.
145
e0c866dd
KK
1462019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
147
148 * c-opts.c (c_common_post_options): Update
149 latest_abi_version.
150
f968ef9b
JJ
1512019-11-02 Jakub Jelinek <jakub@redhat.com>
152
d0c464d2
JJ
153 * c-common.h (c_omp_get_context_selector): Remove.
154 * c-omp.c (c_omp_get_context_selector): Moved to omp-general.c
155 and renamed to omp_get_context_selector.
156
917dd789
JJ
157 * c-omp.c (c_omp_mark_declare_variant): Use
158 omp_context_selector_set_compare.
159
f968ef9b
JJ
160 PR c++/88335 - Implement P1073R3: Immediate functions
161 * c-common.h (enum rid): Add RID_CONSTEVAL.
162 * c-common.c (c_common_reswords): Add consteval.
163
5f6705b7
JJ
1642019-11-01 Martin Sebor <msebor@redhat.com>
165
166 PR middle-end/91679
167 PR middle-end/91647
168 PR middle-end/91463
169 PR middle-end/92312
170 * c-pretty-print.c (direct_abstract_declarator): Print
171 bound in zero-length arrays.
172 * c.opt (-Wzero-length-bounds): New option.
173
43f1814c
NS
1742019-10-30 Nathan Sidwell <nathan@acm.org>
175
176 * c-cppbuiltin.c (c_cpp_builtins): Add 'L' suffix to feature
177 macros.
178
ad1539d5
MS
1792019-10-28 Martin Sebor <msebor@redhat.com>
180
181 PR c/66970
182 * c-common.c (c_common_nodes_and_builtins): Call c_define_builtins
183 even when only preprocessing.
184 * c-common.h (names_builtin_p): Declare new function.
185 * c-lex.c (init_c_lex): Set has_builtin.
186 (c_common_has_builtin): Define a new function.
187 * c-ppoutput.c (init_pp_output): Set has_builtin.
188
135df52c
JJ
1892019-10-24 Jakub Jelinek <jakub@redhat.com>
190
191 * c-common.h (c_omp_context_selector_matches): Remove.
192 * c-omp.c (c_omp_context_selector_matches): Remove.
193 * c-attribs.c (c_common_attribute_table): Add
194 "omp declare target {host,nohost,block}" attributes.
195
8ad0c477
JM
1962019-10-17 JeanHeyd Meneide <phdofthehouse@gmail.com>
197
198 * c-lex.c (c_common_has_attribute): Update nodiscard value.
199
56898e43
RS
2002019-10-14 Richard Sandiford <richard.sandiford@arm.com>
201
202 * c-common.h (user_facing_original_type_p): Declare.
203 * c-common.c: Include c-spellcheck.h.
204 (user_facing_original_type_p): New function.
205
20de9568
JJ
2062019-10-12 Jakub Jelinek <jakub@redhat.com>
207
208 * c-common.h (c_omp_mark_declare_variant,
209 c_omp_context_selector_matches): Declare.
210 * c-omp.c: Include attribs.h, gimplify.h, cgraph.h, symbol-summary.h
211 and hsa-common.h.
212 (c_omp_get_context_selector): Support second argument NULL.
213 (c_omp_mark_declare_variant, c_omp_context_selector_matches): New
214 functions.
215 * c-attribs.c (c_common_attribute_table): Remove "omp declare variant"
216 attribute, add "omp declare variant base" and
217 "omp declare variant variant" attributes.
218
175a85b2
JM
2192019-10-11 Joseph Myers <joseph@codesourcery.com>
220
221 * c.opt (Wc11-c2x-compat): Add CPP(cpp_warn_c11_c2x_compat)
222 CppReason(CPP_W_C11_C2X_COMPAT).
223
fe2bc27c
JM
2242019-10-11 Joseph Myers <joseph@codesourcery.com>
225
226 * c-common.c (c_common_reswords): Do not use D_EXT for _Decimal32,
227 _Decimal64 and _Decimal128.
228
27dfdc0f
JM
2292019-10-10 Joseph Myers <joseph@codesourcery.com>
230
231 * c-cppbuiltin.c (c_cpp_builtins): Do not define macros for DFP
232 types if DFP not supported.
233
94e7f906
JJ
2342019-10-10 Jakub Jelinek <jakub@redhat.com>
235
236 * c-common.h (c_omp_check_context_selector,
237 c_omp_get_context_selector): Declare.
238 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): Fix spelling
239 in diagnostic message.
240 (c_omp_check_context_selector, c_omp_get_context_selector): New
241 functions.
242 * c-attribs.c (c_common_attribute_table): Add "omp declare variant"
243 attribute.
244 (handle_omp_declare_variant_attribute): New function.
245
a7160771
MS
2462019-10-09 Martin Sebor <msebor@redhat.com>
247
248 PR tree-optimization/90879
249 * c.opt (-Wstring-compare): New option.
250
cb57504a
JM
2512019-10-08 Andrew Sutton <asutton@lock3software.com>
252 Jason Merrill <jason@redhat.com>
253
254 Update the concepts implementation to conform to the C++20
255 specification, improve compile times, and generally clean up
256 the implementation.
257
258 * c-cppbuiltin.c (c_cpp_builtins): Use new feature test values for
259 concepts when -std=c++2a. Bump __cpp_concepts to 201907.
260 * c.opt: Add -Wconcepts-ts.
261 * c-opts.c (c_common_post_options): Warn when -fconcepts is used
262 with -std=c++2a. Disable warning for -fconcepts in C++20 mode.
263 (set_std_cxx2a): Enable concepts by default.
264
fbb2a6dc
JM
2652019-10-08 Joseph Myers <joseph@codesourcery.com>
266
267 * c-opts.c (c_common_post_options): Set
268 -fno-fp-int-builtin-inexact for C2X.
269
8e007055
JJ
2702019-10-05 Jakub Jelinek <jakub@redhat.com>
271
272 PR c++/91369 - Implement P0784R7: constexpr new
273 * c-cppbuiltin.c (c_cpp_builtins): Predefine
274 __cpp_constexpr_dynamic_alloc=201907 for -std=c++2a.
275
843f104d
JM
2762019-10-04 Joseph Myers <joseph@codesourcery.com>
277
278 PR c/82752
279 * c-format.c (C_STD_VER): Handle C2x.
280 (C_STD_NAME): Likewise.
281 (strftime_flag_specs): Add 'O' modifier with 'p' flag.
282 (time_char_table): Use separate entry for 'B' and 'b', with 'O'
283 modifier allowed and 'p' flag.
284 * c-format.h (enum format_std_version): Add STD_C2X.
285 (struct format_char_info): Mention 'p' in comment on flags2.
286
e9c9a142
DM
2872019-10-01 David Malcolm <dmalcolm@redhat.com>
288
289 * c-opts.c (c_diagnostic_finalizer): Temporarily clear prefix when
290 calling diagnostic_show_locus, rather than destroying it afterwards.
291
7552c36a
JJ
2922019-10-01 Jakub Jelinek <jakub@redhat.com>
293
294 PR c++/91925
295 * c-warn.c (check_alignment_of_packed_member): Ignore FIELD_DECLs
296 with NULL DECL_FIELD_OFFSET.
297
8209db25
RS
2982019-10-01 Richard Sandiford <richard.sandiford@arm.com>
299
300 * c-pretty-print.c (pp_c_specifier_qualifier_list): If a vector type
301 has a type name, use it in preference to the __vector syntax.
302
9343bf99
RS
3032019-09-30 Richard Sandiford <richard.sandiford@arm.com>
304
305 * c-pretty-print.c (pp_c_parameter_type_list): Avoid printing
306 two spaces between a comma and "...".
307
59bc434a
JJ
3082019-09-27 Jakub Jelinek <jakub@redhat.com>
309
310 PR c++/88203
311 * c-common.h (c_omp_predefined_variable): Declare.
312 * c-omp.c (c_omp_predefined_variable): New function.
313 (c_omp_predetermined_sharing): Return OMP_CLAUSE_DEFAULT_SHARED
314 for predefined variables.
315
c6447c20
RS
3162019-09-27 Richard Sandiford <richard.sandiford@arm.com>
317
318 * c-common.h (build_function_call_vec): Take the original
319 function decl as an optional final parameter.
320 (check_builtin_function_arguments): Take the original function decl.
321 * c-common.c (check_builtin_function_arguments): Likewise.
322 Handle all built-in functions, not just BUILT_IN_NORMAL ones.
323 Use targetm.check_builtin_call to check BUILT_IN_MD functions.
324
c4438114
JM
3252019-09-15 Jason Merrill <jason@redhat.com>
326
327 * c-warn.c (warn_logical_operator): Strip location wrappers. Don't
328 fold_for_warn in "|| mask" warning.
329
68a57628
ML
3302019-09-10 Martin Liska <mliska@suse.cz>
331
332 * c.opt: Use newly added WarnRemoved.
333
f48ef52e
ML
3342019-09-09 Martin Liska <mliska@suse.cz>
335
336 * c.opt: Update comment of removed
337 options that are preserved only for backward
338 compatibility.
339
67f6e649
ML
3402019-09-06 Martin Liska <mliska@suse.cz>
341
342 PR c++/91125
343 * c-common.c: Remove definition of flag_use_repository.
344 * c-common.h: Likewise.
345 * c-opts.c (c_common_handle_option):
346 Do not handle OPT_frepo option.
347 * c.opt: Mark the option with Deprecated.
348
db9d2274
MP
3492019-09-04 Marek Polacek <polacek@redhat.com>
350
351 * c.opt (fdeduce-init-list): Ignored.
352
68e2c199
PK
3532019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
354
355 PR c/78736
356 * c.opt (Wenum-conversion): New option.
357
7a4418a5
JL
3582019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
359
360 * c-attribs.c (handle_section_attribute): Call the
361 handle_generic_attribute target hook after performing target
362 independent processing.
363 (handle_noinit_attribute): Likewise.
364
5f76ab15
ILT
3652019-09-03 Ian Lance Taylor <iant@golang.org>
366
367 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Always expand
368 when using -fgo-dump-spec.
369
ae0d3f6a
ML
3702019-09-02 Martin Liska <mliska@suse.cz>
371
372 PR c++/91155
373 * c-common.c (fname_as_string): Use cxx_printable_name for
374 __PRETTY_FUNCTION__ same as was used before r265711.
375
8a902edb
MP
3762019-08-28 Marek Polacek <polacek@redhat.com>
377
378 Implement P1152R4: Deprecating some uses of volatile.
379 PR c++/91361
380 * c-opts.c (c_common_post_options): Enable -Wvolatile by
381 default for C++2a, unless -Wno-deprecated.
382 * c.opt (Wvolatile): New warning.
383
4742dbe7
MP
3842019-08-28 Marek Polacek <polacek@redhat.com>
385
386 PR c++/91360 - Implement C++20 P1143R2: constinit.
387 * c-common.c (c_common_reswords): Add constinit and __constinit.
388 (keyword_is_decl_specifier): Handle RID_CONSTINIT.
389 * c-common.h (enum rid): Add RID_CONSTINIT, RID_FIRST_CXX20, and
390 RID_LAST_CXX20.
391 (D_CXX20): Define.
392 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_constinit.
393 * c-format.c (cxx_keywords): Add "constinit".
394 * c.opt (Wc++2a-compat, Wc++20-compat): New options.
395
6a074892
JJ
3962019-08-27 Jakub Jelinek <jakub@redhat.com>
397
398 PR c++/91415
399 * c-common.c (verify_tree): For LSHIFT_EXPR, RSHIFT_EXPR,
400 COMPONENT_REF and ARRAY_REF in cxx_dialect >= cxx17 mode handle it
401 like COMPOUND_EXPR rather than normal expression.
402
22f8849d
IS
4032019-08-23 Iain Sandoe <iain@sandoe.co.uk>
404
405 PR pch/61250
406 * c-lex.c (c_lex_with_flags): Don't call
407 c_common_no_more_pch () from here.
408
df375b03
JJ
4092019-08-23 Jakub Jelinek <jakub@redhat.com>
410
411 PR middle-end/91283
412 * c-common.c (c_ts18661_flt_eval_method): Use flag_excess_precision
413 instead of flag_excess_precision_cmdline.
414 * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): Likewise.
415 * c-opts.c (c_common_post_options): Likewise.
416
14b7950f
MS
4172019-08-22 Martin Sebor <msebor@redhat.com>
418
419 PR middle-end/91490
420 * c-common.c (braced_list_to_string): Add argument and overload.
421 Handle flexible length arrays and unions.
422
8bb2ee59
EB
4232019-08-21 Eric Botcazou <ebotcazou@adacore.com>
424
425 * c-ada-spec.c (dump_ada_function_declaration): Be prepared for broken
426 function declarations where arguments are missing. Rename variables.
427
21c1e205
RB
4282019-08-15 Richard Biener <rguenther@suse.de>
429
430 * c-common.c (c_stddef_cpp_builtins): When the GIMPLE FE is
431 enabled, define __SIZETYPE__.
432
f0033821
CL
4332019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
434
435 * c-attribs.c (c_common_attribute_table): Add "noinit" entry. Add
436 exclusion with "section" attribute.
437 (attr_noinit_exclusions): New table.
438 (handle_noinit_attribute): New function.
439
4d732405
RS
4402019-08-13 Richard Sandiford <richard.sandiford@arm.com>
441
442 PR middle-end/91421
443 * c-common.c (resolve_overloaded_builtin): Use
444 copy_decl_built_in_function.
445
51ad8481
MS
4462019-08-13 Martin Sebor <msebor@redhat.com>
447
448 PR c/80619
449 * c-format.c (printf_length_specs): Set FMT_LEN_w for "w".
450 (asm_fprintf_length_spec): Same.
451 * c-format.h (format_lengths): Add FMT_LEN_w.
452
77eb117f
JJ
4532019-08-10 Jakub Jelinek <jakub@redhat.com>
454
455 * c-pragma.h (enum pragma_omp_clause): Add
456 PRAGMA_OMP_CLAUSE_DEVICE_TYPE.
457
398e3feb
JJ
4582019-08-07 Jakub Jelinek <jakub@redhat.com>
459
460 * c-pragma.h (enum pragma_omp_clause): Add
461 PRAGMA_OMP_CLAUSE_USE_DEVICE_ADDR. Set PRAGMA_OACC_CLAUSE_USE_DEVICE
462 equal to PRAGMA_OMP_CLAUSE_USE_DEVICE_PTR instead of being a separate
463 enumeration value.
464
ab574db6
MP
4652019-08-05 Marek Polacek <polacek@redhat.com>
466
467 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
468 * c-opts.c (c_common_post_options): Enable -Wcomma-subscript by
469 default for C++2a, unless -Wno-deprecated.
470 * c.opt (Wcomma-subscript): New warning.
471
554a530f
JJ
4722019-07-20 Jakub Jelinek <jakub@redhat.com>
473
474 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_LOOP.
475 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_BIND.
476 * c-pragma.c (omp_pragmas_simd): Add PRAGMA_OMP_LOOP entry.
477 * c-common.h (enum c_omp_clause_split): Add C_OMP_CLAUSE_SPLIT_LOOP.
478 * c-omp.c (c_omp_split_clauses): Add support for 4 new combined
479 constructs with the loop construct.
480
1a888209
JJ
4812019-07-13 Jakub Jelinek <jakub@redhat.com>
482
483 PR c/91149
484 * c-omp.c (c_omp_split_clauses): Fix a pasto in
485 OMP_CLAUSE_REDUCTION_TASK handling.
486
1fdd6f04
JJ
4872019-07-12 Jakub Jelinek <jakub@redhat.com>
488
489 * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ORDER.
490 * c-omp.c (c_omp_split_clauses): Handle splitting of OMP_CLAUSE_ORDER.
491
99b1c316
MS
4922019-07-09 Martin Sebor <msebor@redhat.com>
493
494 PR c++/61339
1fdd6f04 495 * c-opts.c (handle_deferred_opts): Change class-key of PODs to struct
99b1c316
MS
496 and others to class.
497 * c-pretty-print.h: Same.
498
6c1dae73
MS
4992019-07-09 Martin Sebor <msebor@redhat.com>
500
501 PR c++/61339
502 * c-format.c (check_argument_type): Change class-key from class to
503 struct and vice versa to match convention and avoid -Wclass-is-pod
504 and -Wstruct-no-pod.
505 * c-pretty-print.h: Same.
506
8ba6ea87
ML
5072019-07-03 Martin Liska <mliska@suse.cz>
508
509 * c-common.c (try_to_locate_new_include_insertion_point): Remove
510 dead assignemts.
511
83eb9522
JJ
5122019-07-03 Jakub Jelinek <jakub@redhat.com>
513
514 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_REDUCTION_INSCAN
515 clauses on OMP_FOR rather than OMP_PARALLEL when OMP_FOR is combined
516 with OMP_PARALLEL.
517
1c6ffbab
QZ
5182019-07-02 qing zhao <qing.zhao@oracle.com>
519
520 PR preprocessor/90581
521 * c-opts.c (c_common_handle_option): Handle -fmax-include-depth.
522 * c.opt: Add new option -fmax-include-depth.
523
7ffc7de5
JM
5242019-06-26 Jason Merrill <jason@redhat.com>
525
526 PR c++/55442 - memory-hog with highly recursive constexpr.
527 * c.opt (fconstexpr-loop-limit): New.
528
361af3e4
JJ
5292019-06-25 Jakub Jelinek <jakub@redhat.com>
530
531 PR sanitizer/90954
532 * c-omp.c (c_finish_omp_atomic): Allow tree_invariant_p in addition
533 to SAVE_EXPR in first operand of a COMPOUND_EXPR.
534
ab20d992
JJ
5352019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
536
537 * c-common.c (c_common_nodes_and_builtins): Define
538 alternate "__intN__" name for "__intN" types.
539
f4af4019
JH
5402019-06-24 Jan Hubicka <jh@suse.cz>
541
542 * c-common.c (braced_lists_to_strings): Check that
543 type is array or integer prior checking string flag.
544
da9e9b57
MB
5452019-06-21 Matthew Beliveau <mbelivea@redhat.com>
546
547 PR c++/90875 - added -Wswitch-outside-range option
548 * c.opt (Wswitch-outside-range): Added new option.
549 * c-warn.c (c_do_switch_warnings): Use OPT_Wswitch-outside-range.
550
3f3d6a6f
MP
5512019-06-21 Marek Polacek <polacek@redhat.com>
552
553 PR c++/90953 - ICE with -Wmissing-format-attribute.
554 * c-common.c (check_function_arguments_recurse): Use
555 get_attribute_name.
556 (check_missing_format_attribute): Likewise.
557
1bf32c11
MP
5582019-06-19 Marek Polacek <polacek@redhat.com>
559
560 PR c++/60364 - noreturn after first decl not diagnosed.
561 * c-attribs.c (handle_noreturn_attribute): No longer static.
562 * c-common.h (handle_noreturn_attribute, attr_noreturn_exclusions):
563 Declare.
564 * c-format.c (check_function_format): Use get_attribute_name.
565
a04c0734
MS
5662019-06-19 Martin Sebor <msebor@redhat.com>
567
568 PR translation/90156
569 * c-format.c (function_format_info::format_type): Adjust type.
570 (function_format_info::is_raw): New member.
571 (decode_format_type): Adjust signature. Handle "raw" diag attributes.
572 (decode_format_attr): Adjust call to decode_format_type.
573 Avoid a redundant call to convert_format_name_to_system_name.
574 Avoid abbreviating the word "arguments" in a diagnostic.
575 (format_warning_substr): New function.
576 (avoid_dollar_number): Quote dollar sign in a diagnostic.
577 (finish_dollar_format_checking): Same.
578 (check_format_info): Same.
579 (struct baltoks_t): New.
580 (c_opers, c_keywords, cxx_keywords, badwords, contrs): New arrays.
581 (maybe_diag_unbalanced_tokens, check_tokens, check_plain): New
582 functions.
583 (check_format_info_main): Call check_plain. Use baltoks_t. Call
584 maybe_diag_unbalanced_tokens.
585 (handle_format_attribute): Spell out the word "arguments" in
586 a diagnostic.
587
d3786ebb
MB
5882019-06-11 Matthew Beliveau <mbelivea@redhat.com>
589
590 PR c++/90449 - add -Winaccessible-base option.
591 * c.opt (Winaccessible-base): New option.
592
bf38f7e9
JJ
5932019-06-10 Jakub Jelinek <jakub@redhat.com>
594
595 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_SCAN.
596 * c-pragma.c (omp_pragmas_simd): Add #pragma omp scan.
597 * c-omp.c (c_omp_split_clauses): Diagnose inscan reductions on
598 combined/composite constructs where it is not allowed. Copy over
599 OMP_CLAUSE_REDUCTION_INSCAN.
600
0ecf545c
MS
6012019-06-05 Martin Sebor <msebor@redhat.com>
602
603 * c-attribs.c (handle_mode_attribute): Adjust quoting and hyphenation.
604 (handle_alias_ifunc_attribute): Same.
605 (handle_copy_attribute): Same.
606 (handle_weakref_attribute): Same.
607 (handle_nonnull_attribute): Same.
608 * c-warn.c (warn_for_sign_compare): Same.
609 (warn_for_restrict): Same.
610 * c.opt: Same.
611
36b34127
MS
6122019-06-05 Martin Sebor <msebor@redhat.com>
613
614 * c-pragma.c (handle_pragma_weak): Adjust quoting in a diagnostic.
615 * c.opt (-Wformat-diag): Remove a spurious period.
616
357a352f
JJ
6172019-05-29 Jakub Jelinek <jakub@redhat.com>
618
619 PR c/90628
620 * c-common.c (check_builtin_function_arguments)
621 <case BUILTIN_*_OVERFLOW>: Diagnose pointer to const qualified integer
622 as last argument.
623
2b8235ea
EB
6242019-05-23 Eric Botcazou <ebotcazou@adacore.com>
625
626 * c-ada-spec.c (compare_node): Compare the DECL_UIDs as a last resort.
627
6d86ddc4
ML
6282019-05-22 Martin Liska <mliska@suse.cz>
629
630 PR lto/90500
631 * c-attribs.c (handle_copy_attribute): Do not copy
632 target_clones attribute.
633
419ba5b9
EB
6342019-05-21 Eric Botcazou <ebotcazou@adacore.com>
635
636 * c-ada-spec.h (enum cpp_operation): Add IS_ASSIGNMENT_OPERATOR.
637 * c-ada-spec.c (print_assignment_operator): New function.
638 (dump_ada_declaration) <FUNCTION_DECL>: Call it do dump explicit copy
639 assignment operators declared as methods and filter out the others.
640
e03436e7
TS
6412019-05-17 Thomas Schwinge <thomas@codesourcery.com>
642
643 PR c/89433
644 * c-attribs.c (c_common_attribute_table): Set min_len to -1 for
645 "omp declare target".
646
a9c697b8
MS
6472019-05-16 Martin Sebor <msebor@redhat.com>
648
ab20d992
JJ
649 * c-attribs.c (handle_no_sanitize_attribute): Quote identifiers,
650 keywords, operators, and types in diagnostics.
651 (handle_scalar_storage_order_attribute): Same.
652 (handle_mode_attribute): Same.
653 (handle_visibility_attribute): Same.
654 (handle_assume_aligned_attribute): Same.
655 (handle_no_split_stack_attribute): Same.
656 * c-common.c (shorten_compare): Same.
657 (c_common_truthvalue_conversion): Same.
658 (cb_get_source_date_epoch): Same.
659 * c-lex.c (cb_def_pragma): Quote keywords, operators, and types
660 in diagnostics.
661 (interpret_float): Same.
662 * c-omp.c (c_finish_omp_for): Same.
663 * c-opts.c (c_common_post_options): Same.
664 * c-pch.c (c_common_pch_pragma): Same.
665 * c-pragma.c (pop_alignment): Same.
666 (handle_pragma_pack): Same.
667 (apply_pragma_weak): Same.
668 (handle_pragma_weak): Same.
669 (handle_pragma_scalar_storage_order): Same.
670 (handle_pragma_redefine_extname): Same.
671 (add_to_renaming_pragma_list): Same.
672 (maybe_apply_renaming_pragma): Same.
673 (push_visibility): Same.
674 (handle_pragma_visibility): Same.
675 (handle_pragma_optimize): Same.
676 (handle_pragma_message): Same.
677 * c-warn.c (warn_for_omitted_condop): Same.
678 (lvalue_error): Same.
a9c697b8 679
6b943512
RB
6802019-05-15 Richard Biener <rguenther@suse.de>
681
682 PR c/90474
683 * c-common.c (c_common_mark_addressable_vec): Also mark
684 a COMPOUND_LITERAL_EXPR_DECL addressable similar to
685 c_mark_addressable.
ab20d992 686
b744fc85
NS
6872019-05-06 Nathan Sidwell <nathan@acm.org>
688
689 * c-opts.c (handle_defered_opts): Rename struct deps to struc mkdeps.
690
598f50d7
NS
6912019-04-30 Nathan Sidwell <nathan@acm.org>
692
693 * c-common.c (c_common_init_ts): Use MARK_TS_EXP. Mark SIZEOF_EXPR.
694
5bcc5a3b
ML
6952019-04-30 Martin Liska <mliska@suse.cz>
696
697 * c-pragma.c (handle_pragma_diagnostic): Provide hints
698 for unknown options.
699
e78a87f7
RS
7002019-04-26 Richard Sandiford <richard.sandiford@arm.com>
701
702 * c-warn.c (strict_aliasing_warning): Apply COMPLETE_TYPE_P to
703 the pointer target rather than the pointer itself.
704
c280b7ee
JJ
7052019-04-19 Jakub Jelinek <jakub@redhat.com>
706
707 PR c/89888
708 * c-common.h (c_add_case_label): Remove orig_type and outside_range_p
709 arguments.
710 (c_do_switch_warnings): Remove outside_range_p argument.
711 * c-common.c (check_case_bounds): Removed.
712 (c_add_case_label): Remove orig_type and outside_range_p arguments.
713 Don't call check_case_bounds. Fold low_value as well as high_value.
714 * c-warn.c (c_do_switch_warnings): Remove outside_range_p argument.
715 Check for case labels outside of range of original type here and
716 adjust them.
717
8e8225e6
JJ
7182019-04-12 Jakub Jelinek <jakub@redhat.com>
719
63b8a166
JJ
720 PR translation/90041
721 * c.opt (-fhandle-exceptions): Use %< and %> around option names
722 in the Warn diagnostics.
723
8e8225e6
JJ
724 PR c/89946
725 * c-attribs.c (handle_patchable_function_entry_attribute): Add
726 function comment. Warn if arguments of the attribute are not positive
727 integer constants.
728
53a3f614
EB
7292019-04-09 Eric Botcazou <ebotcazou@adacore.com>
730
731 * c-ada-spec.c (print_destructor): Deal with deleting destructors.
732 (dump_ada_declaration) <FUNCTION_DECL>: Likewise.
733
22be5873
EB
7342019-04-07 Eric Botcazou <ebotcazou@adacore.com>
735
736 * c-ada-spec.c (is_float128): New predicate extracted from...
737 (dump_ada_node) <COMPLEX_TYPE>: Use it to recognize __cfloat128.
738 <REAL_TYPE>: ...here. Call it.
739
34facf20
DM
7402019-04-05 David Malcolm <dmalcolm@redhat.com>
741
742 PR c/89985
743 * c-warn.c (check_address_or_pointer_of_packed_member): Add
744 auto_diagnostic_group. Guard inform calls by result of
745 warning_at call.
746
05564120
MP
7472019-04-05 Marek Polacek <polacek@redhat.com>
748
ab20d992 749 PR c++/89973 - -Waddress-of-packed-member ICE with invalid conversion.
05564120
MP
750 * c-warn.c (check_address_or_pointer_of_packed_member): Check the type
751 of RHS.
752
7a506c3c
JM
7532019-04-03 Jason Merrill <jason@redhat.com>
754
755 PR c++/86586 - -fcompare-debug=-Wsign-compare.
756 * c-warn.c (warn_for_sign_compare): Call fold_for_warn.
757
ddeae8c8
MS
7582019-04-01 Martin Sebor <msebor@redhat.com>
759
760 PR c/89685
761 * c-attribs.c (handle_copy_attribute): Handle references and
762 non-constant expressions.
763
a15ffa22
JJ
7642019-03-22 Jakub Jelinek <jakub@redhat.com>
765
766 PR c++/87481
767 * c.opt (-fconstexpr-ops-limit=): New option.
768
36a3a7a3
JJ
7692019-03-21 Jakub Jelinek <jakub@redhat.com>
770
771 * c-common.c (per_file_includes_t): Use false as Lazy in hash_set
772 template param.
773
bec1da64
MS
7742019-03-19 Martin Sebor <msebor@redhat.com>
775
776 PR tree-optimization/89688
777 * c-common.c (braced_list_to_string): Make static.
778 (braced_lists_to_strings): Define new function.
779 * c-common.h (braced_list_to_string): Remove.
780 (braced_lists_to_strings): Declare.
781
1fe61adf
ML
7822019-03-12 Martin Liska <mliska@suse.cz>
783
784 * c-opts.c (c_common_handle_option): Wrap option with %< and %>.
785
93964ebd
ML
7862019-03-11 Martin Liska <mliska@suse.cz>
787
788 * c-opts.c (c_common_post_options): Wrap apostrophes
789 in gcc internal format with %'.
790
a3f9f006
ML
7912019-03-11 Martin Liska <mliska@suse.cz>
792
793 * c-attribs.c (handle_nocf_check_attribute): Wrap an option name
794 in a string format message and fix GNU coding style.
795 * c-common.c (vector_types_convertible_p): Likewise.
796 (c_build_vec_perm_expr): Likewise.
797 * c-indentation.c (get_visual_column): Likewise.
798 * c-opts.c (c_common_handle_option): Likewise.
799 (c_common_post_options): Likewise.
800 (sanitize_cpp_opts): Likewise.
801 * c-pch.c (c_common_pch_pragma): Likewise.
802 * c-pragma.c (handle_pragma_pack): Likewise.
803
1db01ff9
JJ
8042019-03-08 Jakub Jelinek <jakub@redhat.com>
805
806 PR tree-optimization/89550
807 * c-common.c (c_common_truthvalue_conversion): Only set
808 TREE_NO_WARNING if warning_at returned true.
809 * c-warn.c (overflow_warning, warn_logical_operator): Likewise.
810
ba790e6f
JJ
8112019-02-25 Sandra Loosemore <sandra@codesourcery.com>
812 Martin Sebor <msebor@gmail.com>
813
814 * c.opt (Wmissing-attributes): Clean up doc string.
815
7da73ba7
JJ
8162019-02-25 Jakub Jelinek <jakub@redhat.com>
817
818 PR c/89495
819 * c-format.c (maybe_read_dollar_number): Compute nargnum in
820 HOST_WIDE_INT type to avoid overflows and change overflow_flag
821 checking.
822
921bb9d1
RB
8232019-02-22 Richard Biener <rguenther@suse.de>
824
825 * c-pch.c (no_checksum): Remove.
826 (pch_init): Remove assertion that executable_checksum is not
827 all zero.
828 (c_common_valid_pch): Likewise.
829
e2ebb05c
MS
8302019-02-18 Martin Sebor <msebor@redhat.com>
831
832 PR middle-end/89294
833 * c-common.c (invalid_array_size_error): Handle cst_size_not_constant.
834
3fe53000
DM
8352019-02-16 David Malcolm <dmalcolm@redhat.com>
836
837 PR c++/88680
838 * c-common.c (shorten_compare): Call fold_for_warn on op0 when
839 implementing -Wtype-limits.
840
28a8cef1
MS
8412019-02-11 Martin Sebor <msebor@redhat.com>
842
843 PR c++/87996
844 * c-common.c (invalid_array_size_error): New function.
845 (valid_array_size_p): Call it. Handle size as well as type.
846 * c-common.h (valid_constant_size_p): New function.
847 (enum cst_size_error): New type.
848
ec2be203
DM
8492019-01-31 David Malcolm <dmalcolm@redhat.com>
850
851 PR c/89122
852 * known-headers.cc (get_stdlib_header_for_name): Add
853 {FLT|DBL|LDBL}_{MAX|MIN} to "hints" array.
854
8936f047
JJ
8552019-01-31 Jakub Jelinek <jakub@redhat.com>
856
857 PR libstdc++/88170
858 * c-pretty-print.c (pp_c_enumeration_constant): Print always as
859 a C cast in pp_c_flag_gnu_v3 mode.
860
6a335b96
JJ
8612019-01-29 Jakub Jelinek <jakub@redhat.com>
862
863 PR c/86125
864 * c-common.c (c_common_nodes_and_builtins): Build type variants for
865 builtin_structptr_types types even for C.
866
2a06eba5
BE
8672019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
868
869 * c-warn.c (check_address_or_pointer_of_packed_member): Handle the case
870 when rhs is of array type correctly. Fix handling of nested structures.
871 Fix handling of indirect_ref together with nop_expr and/or addr_expr.
872 (check_and_warn_address_or_pointer_of_packed_member): Fix handling of
873 type casts within nested compound expressions.
874
18a23298
JJ
8752019-01-22 Jakub Jelinek <jakub@redhat.com>
876
877 PR middle-end/88968
878 * c-omp.c (c_finish_omp_atomic): For bitfield atomics, update type
879 variable after using BIT_FIELD_REF.
880
420183d9
L
8812019-01-18 H.J. Lu <hongjiu.lu@intel.com>
882
883 PR c/51628
884 PR c/88664
885 * c-common.h (warn_for_address_or_pointer_of_packed_member):
886 Remove the boolean argument.
887 * c-warn.c (check_address_of_packed_member): Renamed to ...
888 (check_address_or_pointer_of_packed_member): This. Also
889 warn pointer conversion.
890 (check_and_warn_address_of_packed_member): Renamed to ...
891 (check_and_warn_address_or_pointer_of_packed_member): This.
892 Also warn pointer conversion.
893 (warn_for_address_or_pointer_of_packed_member): Remove the
894 boolean argument. Don't check pointer conversion here.
895
99063eee
RS
8962019-01-15 Richard Sandiford <richard.sandiford@arm.com>
897
898 PR inline-asm/52813
899 * c.opt (Wdeprecated): Move documentation and variable to common.opt.
900
a30d0196
JJ
9012019-01-14 Jakub Jelinek <jakub@redhat.com>
902
903 * c-cppbuiltin.c (c_cpp_builtin): Define __cpp_guaranteed_copy_elision
904 and __cpp_nontype_template_parameter_auto. Add a comment that
905 __cpp_template_auto is deprecated.
906
2d91f79d
TH
9072019-01-14 Tom Honermann <tom@honermann.net>
908
909 Implement P0482R5, char8_t: A type for UTF-8 characters and strings
910 * c-common.c (c_common_reswords): Add char8_t.
911 (fix_string_type): Use char8_t for the type of u8 string literals.
912 (c_common_get_alias_set): char8_t doesn't alias.
913 (c_common_nodes_and_builtins): Define char8_t as a builtin type in
914 C++.
915 (c_stddef_cpp_builtins): Add __CHAR8_TYPE__.
916 (keyword_begins_type_specifier): Add RID_CHAR8.
917 * c-common.h (rid): Add RID_CHAR8.
918 (c_tree_index): Add CTI_CHAR8_TYPE and CTI_CHAR8_ARRAY_TYPE.
919 Define D_CXX_CHAR8_T and D_CXX_CHAR8_T_FLAGS.
920 Define char8_type_node and char8_array_type_node.
921 * c-cppbuiltin.c (cpp_atomic_builtins): Predefine
922 __GCC_ATOMIC_CHAR8_T_LOCK_FREE.
923 (c_cpp_builtins): Predefine __cpp_char8_t.
924 * c-lex.c (lex_string): Use char8_array_type_node as the type of
925 CPP_UTF8STRING.
926 (lex_charconst): Use char8_type_node as the type of CPP_UTF8CHAR.
927 * c-opts.c: If not otherwise specified, enable -fchar8_t when
928 targeting C++2a.
929 * c.opt: Add the -fchar8_t command line option.
930
23db6ced
MS
9312019-01-14 Martin Sebor <msebor@redhat.com>
932
933 PR target/88638
934 * c-attribs.c (positional_argument): Call valid_format_string_type_p
935 and issue errors if it fails.
936 * c-common.h (valid_format_string_type_p): Declare.
937 * c-format.c (valid_stringptr_type_p): Rename...
938 (valid_format_string_type_p): ...to this and make extern.
939 (handle_format_arg_attribute): Adjust to new name.
940 (check_format_string): Same.
941
234c3818
L
9422019-01-13 H.J. Lu <hongjiu.lu@intel.com>
943
944 * c-warn.c (warn_for_address_or_pointer_of_packed_member):
945 Replace "may may" with "may" in warning message.
946
d8fcab68
JJ
9472019-01-07 Jakub Jelinek <jakub@redhat.com>
948
949 PR c++/85052
950 * c-common.h (enum rid): Add RID_BUILTIN_CONVERTVECTOR.
951 (c_build_vec_convert): Declare.
952 * c-common.c (c_build_vec_convert): New function.
953
29d24852
MS
9542019-01-04 Martin Sebor <msebor@redhat.com>
955
956 PR c/88546
957 * c-attribs.c (handle_copy_attribute): Avoid copying attribute leaf.
958 Handle C++ empty throw specification and C11 _Noreturn.
959 (has_attribute): Also handle C11 _Noreturn.
960
9069a4c9
MS
9612019-01-04 Martin Sebor <msebor@redhat.com>
962
963 PR c/88363
964 * c-attribs.c (positional_argument): Also accept enumerated types.
965
a5544970
JJ
9662019-01-01 Jakub Jelinek <jakub@redhat.com>
967
968 Update copyright years.
969
da77eace
L
9702018-12-20 H.J. Lu <hongjiu.lu@intel.com>
971
972 PR c/51628
973 * c-common.h (warn_for_address_or_pointer_of_packed_member): New.
974 * c-warn.c (check_alignment_of_packed_member): New function.
975 (check_address_of_packed_member): Likewise.
976 (check_and_warn_address_of_packed_member): Likewise.
977 (warn_for_address_or_pointer_of_packed_member): Likewise.
978 * c.opt: Add -Wno-address-of-packed-member.
979
573767d4
DM
9802018-12-20 David Malcolm <dmalcolm@redhat.com>
981
982 PR c++/87504
983 * c-warn.c (get_outermost_macro_expansion): New function.
984 (spelled_the_same_p): Use it to unwind the macro expansions, and
985 compare the outermost macro in each nested expansion, rather than
986 the innermost.
987
a14feb3c
DM
9882018-12-19 David Malcolm <dmalcolm@redhat.com>
989
990 PR c++/87504
991 * c-common.h (warn_tautological_cmp): Convert 1st param from
992 location_t to const op_location_t &.
993 * c-warn.c (find_array_ref_with_const_idx_r): Call fold_for_warn
994 when testing for INTEGER_CST.
995 (warn_tautological_bitwise_comparison): Convert 1st param from
996 location_t to const op_location_t &; use it to build a
997 binary_op_rich_location, and use this.
998 (spelled_the_same_p): New function.
999 (warn_tautological_cmp): Convert 1st param from location_t to
1000 const op_location_t &. Warn for macro expansions if
1001 spelled_the_same_p. Use binary_op_rich_location.
1002
dfd7fdca
DM
10032018-12-19 David Malcolm <dmalcolm@redhat.com>
1004
1005 PR c++/43064
1006 PR c++/43486
1007 * c-common.c (unsafe_conversion_p): Fold any location wrapper.
1008 (verify_tree): Handle location wrappers.
1009 (c_common_truthvalue_conversion): Strip any location wrapper.
1010 Handle CONST_DECL.
1011 (fold_offsetof): Strip any location wrapper.
1012 (complete_array_type): Likewise for initial_value.
1013 (convert_vector_to_array_for_subscript): Call fold_for_warn on the
1014 index before checking for INTEGER_CST.
1015 * c-pretty-print.c (c_pretty_printer::primary_expression): Don't
1016 print parentheses around location wrappers.
1017 * c-warn.c (warn_logical_operator): Call fold_for_warn on op_right
1018 before checking for INTEGER_CST.
1019 (warn_tautological_bitwise_comparison): Call
1020 tree_strip_any_location_wrapper on lhs, rhs, and bitop's operand
1021 before checking for INTEGER_CST.
1022 (readonly_error): Strip any location wrapper.
1023 (warn_array_subscript_with_type_char): Strip location wrappers
1024 before checking for INTEGER_CST. Use the location of the index if
1025 available.
1026
5c8b3702
JM
10272018-12-06 Jason Merrill <jason@redhat.com>
1028
1029 PR c++/88136 - -Wdeprecated-copy false positives
1030 * c.opt (Wdeprecated-copy-dtor): New.
1031 (Wdeprecated-copy): Move to -Wextra.
1032
673670da
MS
10332018-11-29 Martin Sebor <msebor@redhat.com>
1034
1035 PR c/88172
1036 PR testsuite/88208
1037 * c-attribs.c (common_handle_aligned_attribute): Silently avoid setting
1038 alignments to values less than the target requires.
1039 (has_attribute): For attribute aligned consider both the attribute
1040 and the alignment bits.
1041 * c-common.c (c_init_attributes): Optionally issue a warning for
1042 zero alignment.
1043
04864ec8
MS
10442018-11-28 Martin Sebor <msebor@redhat.com>
1045
1046 PR c/88065
1047 PR c/87297
1048 * c-warn.c (sizeof_pointer_memaccess_warning): Bail if source
1049 or destination is an error.
1050
ace83db0
JJ
10512018-11-28 Jakub Jelinek <jakub@redhat.com>
1052
1053 PR c++/88215
1054 * c-ubsan.c: Include langhooks.h.
1055 (ubsan_instrument_division): Change gcc_assert that main variants
1056 of op0 and op1 types are equal to gcc_checking_assert that the
1057 main variants are compatible types.
1058
da193a27
EB
10592018-11-27 Eric Botcazou <ebotcazou@adacore.com>
1060
1061 * c-ada-spec.c: Include stringpool.h.
1062 (has_static_fields): Return false for incomplete types.
1063 (is_tagged_type): Likewise.
1064 (has_nontrivial_methods): Likewise.
1065 (dump_ada_node) <INTEGER_TYPE>: Deal specifically with __int128.
1066 (struct overloaded_name_hash): New structure.
1067 (struct overloaded_name_hasher): Likewise.
1068 (overloaded_names): New global variable.
1069 (init_overloaded_names): New static function.
1070 (overloaded_name_p): New predicate.
1071 (dump_ada_declaration) <TYPE_DECL>: Tidy up and set TREE_VISITED
1072 on the TYPE_STUB_DECL of the original type of a typedef, if any.
1073 <FUNCTION_DECL>: Bail out for an unsupported overloaded name.
1074 Remove always-true condition and dump forward types.
1075 (dump_ada_specs): Delete overloaded_names.
1076
98f08eb8
MS
10772018-11-20 Martin Sebor <msebor@redhat.com>
1078
1079 * c-attribs.c (type_for_vector_size): New function.
1080 (type_valid_for_vector_size): Same.
1081 (handle_vector_size_attribute): Move code to the functions above
1082 and call them.
1083 (validate_attribute, has_attribute): New functions.
1084 * c-common.h (has_attribute): Declare.
1085 (rid): Add RID_HAS_ATTRIBUTE_EXPRESSION.
1086 * c-common.c (c_common_resword): Same.
1087
2674fa47
JM
10882018-11-16 Jason Merrill <jason@redhat.com>
1089
1090 * c-lex.c (c_common_has_attribute): Handle likely/unlikely.
1091 * c-attribs.c (attr_cold_hot_exclusions): Make public.
1092
258b3854
JJ
10932018-11-16 Jakub Jelinek <jakub@redhat.com>
1094
1095 PR middle-end/87854
1096 * c-common.c (fix_string_type): Reject string literals larger than
1097 TYPE_MAX_VALUE (ssizetype) bytes.
1098
1d249509
MS
10992018-11-15 Martin Sebor <msebor@redhat.com>
1100
1101 PR c++/87541
1102 PR c++/87542
1103 * c-attribs.c (positional_argument): New function.
1104 (handle_alloc_size_attribute): Use it and simplify.
1105 (handle_alloc_align_attribute): Same.
1106 (handle_assume_aligned_attribute): Same.
1107 (handle_nonnull_attribute): Same.
1108 * c-common.c (check_function_arguments): Pass fntype to
1109 check_function_format.
1110 * c-common.h (check_function_format): Add an argument.
1111 (PosArgFlags, positional_argument): Declare new type and function.
1112 * c-format.c (decode_format_attr): Add arguments.
1113 (check_format_string, get_constant): Same.
1114 (convert_format_name_to_system_name): Adjust.
1115
478dd60d
DM
11162018-11-15 David Malcolm <dmalcolm@redhat.com>
1117
1118 PR other/19165
1119 * c-opts.c (c_diagnostic_finalizer): Add diagnostic_t param.
1120
8cca0163
JJ
11212018-11-14 Jakub Jelinek <jakub@redhat.com>
1122
8ee09943
JJ
1123 P1236R1 - Signed integers are two's complement
1124 * c-warn.c (maybe_warn_shift_overflow): Don't warn for c++2a.
1125 * c-ubsan.c (ubsan_instrument_shift): Make signed shifts
1126 with in-range second operand well defined for -std=c++2a.
1127
8cca0163
JJ
1128 PR other/88007
1129 * c-common.c (parse_optimize_options): Allocate option string from
1130 opts_obstack rather than as GC memory. Move the allocation after
1131 warning for invalid option.
1132
620e594b
DM
11332018-11-13 David Malcolm <dmalcolm@redhat.com>
1134
1135 * c-common.c (c_get_substring_location): Update for renaming of
1136 get_source_location_for_substring to get_location_within_string.
1137 * c-lex.c: Replace "source_location" with "location_t".
1138 * c-opts.c: Likewise.
1139 * c-ppoutput.c: Likewise.
1140
f9731de3
MS
11412018-11-13 Martin Sebor <msebor@redhat.com>
1142
1143 PR middle-end/81824
1144 * c-attribs.c (handle_copy_attribute): Exclude inlining attributes.
1145 (handle_tls_model_attribute): Improve diagnostics.
1146
e4bd6d5e
JM
11472018-11-12 Jason Merrill <jason@redhat.com>
1148
a6bb6b07
JM
1149 * c-cppbuiltin.c (c_cpp_builtins): Define
1150 __cpp_impl_destroying_delete.
1151
e4bd6d5e
JM
1152 * c-cppbuiltin.c (c_cpp_builtins): Change __cpp_explicit_bool to
1153 __cpp_conditional_explicit.
1154
79a2c428
MS
11552018-11-09 Martin Sebor <msebor@redhat.com>
1156
1157 PR middle-end/81824
1158 * c-attribs.c (handle_copy_attribute): New function.
1159
4c7bd361
MS
11602018-11-09 Martin Sebor <msebor@redhat.com>
1161
1162 PR c/87795
1163 * c-common.c (check_user_alignment): Use MAX_OFILE_ALIGNMENT.
1164
28567c40
JJ
11652018-11-08 Jakub Jelinek <jakub@redhat.com>
1166
1167 * c-common.h (c_finish_omp_taskgroup): Add CLAUSES argument.
1168 (c_finish_omp_atomic): Replace bool SEQ_CST argument with
1169 enum omp_memory_order MEMORY_ORDER.
1170 (c_finish_omp_flush): Add MO argument.
1171 (c_omp_depend_t_p, c_finish_omp_depobj): Declare.
1172 (c_finish_omp_for): Add FINAL_P argument.
1173 * c-omp.c: Include memmodel.h.
1174 (c_finish_omp_taskgroup): Add CLAUSES argument. Set
1175 OMP_TASKGROUP_CLAUSES to it.
1176 (c_finish_omp_atomic): Replace bool SEQ_CST argument with
1177 enum omp_memory_order MEMORY_ORDER. Set OMP_ATOMIC_MEMORY_ORDER
1178 instead of OMP_ATOMIC_SEQ_CST.
1179 (c_omp_depend_t_p, c_finish_omp_depobj): New functions.
1180 (c_finish_omp_flush): Add MO argument, if not MEMMODEL_LAST, emit
1181 __atomic_thread_fence call with the given value.
1182 (check_omp_for_incr_expr): Formatting fixes.
1183 (c_finish_omp_for): Add FINAL_P argument. Allow NE_EXPR
1184 even in OpenMP loops, diagnose if NE_EXPR and incr expression
1185 is not constant expression 1 or -1. Transform NE_EXPR loops
1186 with iterators pointers to VLA into LT_EXPR or GT_EXPR loops.
1187 (c_omp_check_loop_iv_r): Look for orig decl of C++ range for
1188 loops too.
1189 (c_omp_split_clauses): Add support for combined
1190 #pragma omp parallel master and
1191 #pragma omp {,parallel }master taskloop{, simd} constructs.
1192 Handle OMP_CLAUSE_IN_REDUCTION. Handle OMP_CLAUSE_REDUCTION_TASK.
1193 Handle OMP_CLAUSE_NONTEMPORAL. Handle splitting OMP_CLAUSE_IF
1194 also to OMP_SIMD. Copy OMP_CLAUSE_LASTPRIVATE_CONDITIONAL.
1195 (c_omp_predetermined_sharing): Don't return
1196 OMP_CLAUSE_DEFAULT_SHARED for const qualified decls.
1197 * c-pragma.c (omp_pragmas): Add PRAGMA_OMP_DEPOBJ and
1198 PRAGMA_OMP_REQUIRES.
1199 * c-pragma.h (enum pragma_kind): Likewise.
1200 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_NONTEMPORAL
1201 and PRAGMA_OMP_CLAUSE_{IN,TASK}_REDUCTION.
1202
204839e7
DM
12032018-11-08 David Malcolm <dmalcolm@redhat.com>
1204
1205 * c-format.c (gcc_dump_printf_char_table): Add entry for %f.
1206
d8010ee4
DM
12072018-11-08 David Malcolm <dmalcolm@redhat.com>
1208
1209 * c-format.c (local_cgraph_node_ptr_node): New variable.
1210 (gcc_dump_printf_char_table): Add entry for %C.
1211 (get_pointer_to_named_type): New function, taken from the handling
1212 code for "gimple *" from...
1213 (init_dynamic_diag_info): ...here. Add handling for
1214 "cgraph_node *".
1215 * c-format.h (T_CGRAPH_NODE): New.
1216
4be5c72c
JM
12172018-10-19 Jason Merrill <jason@redhat.com>
1218
1219 * c-cppbuiltin.c (c_cpp_builtins): Add
1220 __cpp_nontype_template_parameter_class.
1221
f3f6029d
NS
12222018-10-31 Nathan Sidwell <nathan@acm.org>
1223
ab5324fb
NS
1224 * c-opts.c (c_finish_options): Force command line macro
1225 location. Refactor to avoid repeating main debug hook.
1226 (push_command_line_include): Clarify comment.
1227
f3f6029d
NS
1228 * c-opts.c (c_finish_options): Adjust cpp_force_token_locations call.
1229
91e3ec29
MS
12302018-10-30 Martin Sebor <msebor@redhat.com>
1231
1232 PR middle-end/87041
1233 * c-format.c (check_format_types): Avoid diagnosing null pointer
1234 arguments to printf-family of functions.
1235
b5ff4f5c
MP
12362018-10-30 Marek Polacek <polacek@redhat.com>
1237
1238 Implement P0892R2, explicit(bool).
1239 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_explicit_bool.
1240
7e2de6df
DM
12412018-10-29 David Malcolm <dmalcolm@redhat.com>
1242
1243 * name-hint.h (name_hint::take_deferred): New member function.
1244
b2bf438c
DM
12452018-10-29 David Malcolm <dmalcolm@redhat.com>
1246
1247 PR c++/56856
1248 * c-common.c (check_function_sentinel): Call fold_for_warn on the
1249 argument.
1250 (check_function_restrict): Rename param "argarray" to
1251 "unfolded_argarray", and make a copy named "argarray", calling
1252 fold_for_warn on each argument.
1253 (check_function_arguments): Add note about responsibility for
1254 folding the arguments.
1255
9f936c86
JM
12562018-10-17 Joseph Myers <joseph@codesourcery.com>
1257
1258 * c-common.c (flag_isoc2x): New variable.
1259 * c-common.h (clk_c): Update comment to reference C2X.
1260 (flag_isoc99, flag_isoc11): Update comments to reference future
1261 standard versions in general.
1262 (flag_isoc2x): Declare.
1263 * c-opts.c (set_std_c2x): New function.
1264 (c_common_handle_option): Handle -std=c2x and -std=gnu2x.
1265 (set_std_c89, set_std_c99, set_std_c11, set_std_c17): Set
1266 flag_isoc2x to 0.
1267 * c.opt (Wc11-c2x-compat, std=c2x, std=gnu2x): New options.
1268
7a8a92c4
JM
12692018-10-17 Joseph Myers <joseph@codesourcery.com>
1270
1271 * c.opt (std=c17, std=c18, std=gnu17, std=gnu18, std=iso9899:2017)
1272 (std=iso9899:2018): Document C17 as published in 2018.
1273
4dc003ff
CL
12742018-10-12 Christophe Lyon <christophe.lyon@linaro.org>
1275
1276 PR c++/87364
1277 * c-pretty-print.c (c_pretty_printer::constant): Fix typo.
1278
79371671
WW
12792018-10-11 Will Wray <wjwray@gmail.com>
1280
1281 PR c++/87364
1282 * c-pretty-print.h (pp_c_type_cast): Prototype.
1283 (pp_c_integer_constant): Likewise.
1284 * c-pretty-print.c (pp_c_type_cast): No longer static.
1285 (pp_c_integer_constant): Likewise.
1286 (pp_c_enumeration_constant): Fix loop termination when finding
1287 name of constant. No longer returns a value. Call
1288 pp_c_integer_constant.
1289 (c_pretty_printer::constant): Update for changes to
1290 pp_c_enumeration_constant.
1291
46c62690
JJ
12922018-10-11 Jakub Jelinek <jakub@redhat.com>
1293
1294 * c-lex.c (c_common_has_attribute): Return 201803 instead of 20180312
1295 for no_unique_address.
1296
c24300ba
DM
12972018-10-09 David Malcolm <dmalcolm@redhat.com>
1298
1299 * c-common.c (c_option_controlling_cpp_error): Rename to...
1300 (c_option_controlling_cpp_diagnostic): ...this, and convert
1301 "reason" from int to enum.
1302 (c_cpp_error): Rename to...
1303 (c_cpp_diagnostic): ...this, converting level and reason to enums.
1304 * c-common.h (c_cpp_error): Rename to...
1305 (c_cpp_diagnostic): ...this, converting level and reason to enums.
1306 * c-opts.c (c_common_init_options): Update for renaming.
1307
8656dafa
RS
13082018-10-08 Richard Sandiford <richard.sandiford@arm.com>
1309
1310 PR c/87286
1311 * c-common.c (vector_types_compatible_elements_p): Use
1312 INTEGRAL_TYPE_P instead of checking only for INTEGER_TYPE.
1313
8cff0652
VK
13142018-10-04 Vinay Kumar <vinay.kumar@blackfigtech.com>
1315
1316 * c-attribs.c (get_priority): Add a warning flag warn_prio_ctor_dtor
1317 to generate constructor destructor priority warning.
1318 * c.opt (-Wprio-ctor-dtor): New option.
1319
bedf03a2
JM
13202018-10-01 Jason Merrill <jason@redhat.com>
1321
1322 * c-lex.c (c_common_has_attribute): Add no_unique_address.
1323
6cc430c1
EB
13242018-10-01 Eric Botcazou <ebotcazou@adacore.com>
1325
1326 * c-ada-spec.c (get_underlying_decl): Get to the main type variant.
1327 (dump_ada_node): Add const keyword.
1328
87677ac7
ML
13292018-09-25 Martin Liska <mliska@suse.cz>
1330
1331 * c-common.c (c_common_truthvalue_conversion):
1332 Remove Pascal from documentation.
1333
518196cb
EB
13342018-09-21 Eric Botcazou <ebotcazou@adacore.com>
1335
1336 * c-ada-spec.c: Include diagnostic.h.
1337 (dump_ada_declaration) <RECORD_TYPE>: Issue a warning on packed layout.
1338
a599af84
MP
13392018-09-19 Marek Polacek <polacek@redhat.com>
1340
1341 * c.opt (Wclass-conversion): New.
1342
9c4a4b3c
DM
13432018-09-17 David Malcolm <dmalcolm@redhat.com>
1344
1345 * c-format.c (range_label_for_format_type_mismatch::get_text):
1346 Update for new param.
1347
c896ecfe
DM
13482018-09-17 David Malcolm <dmalcolm@redhat.com>
1349
1350 * c-format.c (format_warning_at_char): Update for introduction of
1351 format_string_diagnostic_t.
1352 (format_type_warning): Likewise.
1353
80c6d1f4
MJ
13542018-09-17 Martin Jambor <mjambor@suse.cz>
1355
1356 PR c/63886
1357 * c.opt (Wabsolute-value): New.
1358
6d900107
BE
13592018-09-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
1360
1361 * c-common.c (complete_flexible_array_elts): New helper function.
1362 * c-common.h (complete_flexible_array_elts): Declare.
1363
b5764229
BE
13642018-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
1365
1366 * c-common.c (braced_list_to_string): Remove eval parameter.
1367 Add some more checks. Always create zero-terminated STRING_CST.
1368 * c-common.h (braced_list_to_string): Adjust prototype.
1369
85204e23
DM
13702018-08-27 David Malcolm <dmalcolm@redhat.com>
1371
1372 PR 87091
1373 * c-common.c (c_cpp_error): Update for conversion of show_caret_p
1374 to a tri-state.
1375 (maybe_suggest_missing_token_insertion): Likewise.
1376 (maybe_add_include_fixit): Add param "override_location". If set,
1377 and source-printing is enabled, then override the rich_location's
1378 primary location with that of the insertion point for the fix-it
1379 hint, marking it with SHOW_LINES_WITHOUT_RANGE.
1380 * c-common.h (extern void maybe_add_include_fixit): Add bool
1381 param.
1382 * c-format.c (selftest::test_type_mismatch_range_labels): Update
1383 for conversion of show_caret_p to a tri-state.
1384 * c-warn.c (warn_for_restrict): Likewise.
1385 * known-headers.cc
1386 (suggest_missing_header::~suggest_missing_header): Update call to
1387 maybe_add_include_fixit to suggest overriding the location, as it
1388 is for a note.
1389
3d78e008
ML
13902018-08-27 Martin Liska <mliska@suse.cz>
1391
1392 * c-common.c (check_function_restrict): Use new function
92a285c1
ML
1393 fndecl_built_in_p and remove check for FUNCTION_DECL if
1394 possible.
3d78e008
ML
1395 (check_builtin_function_arguments): Likewise.
1396 (reject_gcc_builtin): Likewise.
1397 * c-warn.c (sizeof_pointer_memaccess_warning): Likewise.
1398
b5be6d0c
MP
13992018-08-26 Marek Polacek <polacek@redhat.com>
1400
1401 PR c++/87029, Implement -Wredundant-move.
1402 * c.opt (Wredundant-move): New option.
1403
79ca9c35
MP
14042018-08-21 Marek Polacek <polacek@redhat.com>
1405
1406 PR c++/86981, Implement -Wpessimizing-move.
1407 * c.opt (Wpessimizing-move): New option.
1408
097f82ec
DM
14092018-08-20 David Malcolm <dmalcolm@redhat.com>
1410
1411 PR other/84889
1412 * c-attribs.c (common_handle_aligned_attribute): Add
1413 auto_diagnostic_group instance.
1414 * c-indentation.c (warn_for_misleading_indentation): Likewise.
1415 * c-opts.c (c_common_post_options): Likewise.
1416 * c-warn.c (warn_logical_not_parentheses): Likewise.
1417 (warn_duplicated_cond_add_or_warn): Likewise.
1418 (warn_for_multistatement_macros): Likewise.
1419
3fb558b1
NS
14202018-08-20 Nathan Sidwell <nathan@acm.org>
1421
1422 * c-ada-spec.c (macro_length, dump_ada_macros): Adjust macro parm
1423 access.
1424
800c0e98
NS
14252018-08-17 Nathan Sidwell <nathan@acm.org>
1426
1427 * c-cppbuiltin.c (struct lazy_hex_fp_value_struct): Remove macro
1428 field.
1429 (laxy_hex_fp_value_count): Make unsigned.
1430 (lazy_hex_fp_value): Provided with macro & lazy number. Directly
1431 manipulate the macro.
1432 (builtin_defin_with_hex_fp_value): Adjust callback name, use
1433 cpp_define_lazily.
1434
6f795a92
DM
14352018-08-17 David Malcolm <dmalcolm@redhat.com>
1436
1437 * c-format.c (enum format_type): Add gcc_dump_printf_format_type.
1438 (gcc_dump_printf_length_specs): New.
1439 (gcc_dump_printf_flag_pairs): New.
1440 (gcc_dump_printf_flag_specs): New.
1441 (gcc_dump_printf_char_table): New.
1442 (format_types_orig): Add entry for "gcc_dump_printf".
1443 (init_dynamic_diag_info): Set up length_char_specs and
1444 conversion_specs for gcc_dump_printf_format_type.
1445 (handle_format_attribute): Handle gcc_dump_printf_format_type.
1446
c5d725c0
NS
14472018-08-17 Nathan Sidwell <nathan@acm.org>
1448
10f04917
NS
1449 * c-ada-spec.c (macro_length, dump_ada_macros): Constify.
1450
c5d725c0
NS
1451 * c-ada-spec.c: Don't #include "cpp-id-data.h"
1452 * c-cppbuiltin.c: Likewise.
1453
c0c12356
ML
14542018-08-17 Martin Liska <mliska@suse.cz>
1455
1456 * c.opt: Remove Warn, Init and Report for options with
92a285c1
ML
1457 Ignore/Deprecated flag. Warning is done automatically for
1458 Deprecated flags.
c0c12356 1459
10fcc142
DM
14602018-08-16 David Malcolm <dmalcolm@redhat.com>
1461
1462 PR c++/70693
1463 * c-common.c (selftest::c_family_tests): Call
1464 selftest::c_indentation_c_tests.
1465 * c-common.h (selftest::c_indentation_c_tests): New decl.
1466 * c-indentation.c: Include "selftest.h".
1467 (next_tab_stop): Add "tab_width" param, rather than accessing
1468 cpp_opts.
1469 (get_visual_column): Likewise. Clarify comment. Bulletproof
1470 against reading past the end of the line.
1471 (get_first_nws_vis_column): Add "tab_width" param.
1472 (detect_intervening_unindent): Likewise.
1473 (should_warn_for_misleading_indentation): Read tab width from
1474 cpp_opts and pass around.
1475 (selftest::test_next_tab_stop): New test.
1476 (selftest::assert_get_visual_column_succeeds): New function.
1477 (ASSERT_GET_VISUAL_COLUMN_SUCCEEDS): New macro.
1478 (selftest::assert_get_visual_column_fails): New function.
1479 (ASSERT_GET_VISUAL_COLUMN_FAILS): New macro.
1480 (selftest::test_get_visual_column): New test.
1481 (selftest::c_indentation_c_tests): New function.
1482
3f6677f4
NS
14832018-08-16 Nathan Sidwell <nathan@acm.org>
1484
1485 * c-ada-spec.c (count_ada_macro): Use cpp_user_macro_p.
1486 (store_ada_macro): Likewise.
1487 * c-ppoutput.c (cb_used_define, dump_macro): Likewise.
1488 * c-spellcheck.cc (should-suggest_as_macro_p): Likewise,
1489
96e6ae57
DM
14902018-08-15 David Malcolm <dmalcolm@redhat.com>
1491
1492 * c-format.c: Include "selftest-diagnostic.h" and
1493 "gcc-rich-location.h".
1494 (format_warning_at_char): Pass NULL for new label params of
1495 format_warning_va.
1496 (class indirection_suffix): New class.
1497 (class range_label_for_format_type_mismatch): New class.
1498 (format_type_warning): Move logic for generating "*" suffix to
1499 class indirection_suffix. Create "fmt_label" and "param_label"
1500 to show their types, and pass them to the
1501 format_warning_at_substring calls.
1502 (selftest::test_type_mismatch_range_labels): New test.
1503 (selftest::c_format_c_tests): Call it.
1504
23aa9f7c
MS
15052018-08-13 Martin Sebor <msebor@redhat.com>
1506
1507 PR tree-optimization/71625
1508 * c-common.c (braced_list_to_string): New function.
1509 * c-common.h (braced_list_to_string): Declare it.
1510
f10a9135
NS
15112018-08-08 Nathan Sidwell <nathan@acm.org>
1512
1513 * c-common.c (try_to_locate_new_include_inertion_point): Use
1514 linemap_included_from_linemap.
1515 * c-lex.c (fe_file_change): Use linemap_included_from.
1516 * c-ppoutput.c (pp_file_change): Likewise.
1517
8a45b051
MS
15182018-08-01 Martin Sebor <msebor@redhat.com>
1519
1520 PR tree-optimization/86650
ab20d992 1521 * c-format.c (gcc_tdiag_char_table): Update comment for "%G".
8a45b051
MS
1522 (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Same.
1523 (init_dynamic_diag_info): Update from "gcall *" to "gimple *".
1524 * c-format.h (T89_G): Update to be "gimple *" rather than
1525 "gcall *".
1526 (local_gcall_ptr_node): Rename...
1527 (local_gimple_ptr_node): ...to this.
1528
e540ccc0
DM
15292018-07-31 David Malcolm <dmalcolm@redhat.com>
1530
1531 * c-format.c (PP_FORMAT_CHAR_TABLE): New macro, based on existing
1532 table entries for gcc_diag_char_table, and the 'Z' entry from
1533 gcc_tdiag_char_table, changing the "chain" entry for 'Z' from
1534 &gcc_tdiag_char_table[0] to &gcc_diag_char_table[0].
1535 (gcc_diag_char_table): Use PP_FORMAT_CHAR_TABLE, implicitly
1536 adding missing "Z" for this table. Remove erroneous "G" and "K"
1537 entries.
1538 (gcc_tdiag_char_table): Use PP_FORMAT_CHAR_TABLE. Remove "v".
1539 (gcc_cdiag_char_table): Use PP_FORMAT_CHAR_TABLE.
1540 (gcc_cxxdiag_char_table): Use PP_FORMAT_CHAR_TABLE. Remove "v".
1541
425fc685
RE
15422018-07-31 Richard Earnshaw <rearnsha@arm.com>
1543
1544 * c-common.c (speculation_safe_resolve_call): New function.
1545 (speculation_safe_resolve_params): New function.
1546 (speculation_safe_resolve_return): New function.
1547 (resolve_overloaded_builtin): Handle __builtin_speculation_safe_value.
1548 * c-cppbuiltin.c (c_cpp_builtins): Add pre-define for
1549 __HAVE_SPECULATION_SAFE_VALUE.
1550
181463c2
DM
15512018-07-20 David Malcolm <dmalcolm@redhat.com>
1552
1553 * c-common.c (c_cpp_error): Remove redundant "line_table"
1554 parameter from call to rich_location::set_range.
1555 (maybe_suggest_missing_token_insertion): Likewise.
1556
0d7f9065
MS
15572018-07-20 Martin Sebor <msebor@redhat.com>
1558
1559 PR middle-end/82063
ab20d992 1560 * c.opt (-Warray-bounds): Remove redundant -Wall.
0d7f9065 1561
00abf86c
MS
15622018-07-20 Martin Sebor <msebor@redhat.com>
1563
1564 PR middle-end/82063
1565 * c-common.h (c_common_handle_option): Change function argument
1566 to HOST_WIDE_INT.
1567 * c-opts.c (c_common_init_options): Same.
1568 (c_common_handle_option): Same. Remove special handling of
1569 OPT_Walloca_larger_than_ and OPT_Wvla_larger_than_.
1570 * c.opt (-Walloc-size-larger-than, -Walloca-larger-than): Change
1571 options to take a HOST_WIDE_INT argument and accept a byte-size
1572 suffix. Initialize.
1573 (-Wvla-larger-than): Same.
1574 (-Wno-alloc-size-larger-than, -Wno-alloca-larger-than): New.
1575 (-Wno-vla-larger-than): Same.
1576
9b452033
JJ
15772018-07-12 Jakub Jelinek <jakub@redhat.com>
1578
1579 * c-attribs.c (c_common_attribute_table): Add
1580 "omp declare target implicit" attribute.
1581
cd0762f3
RB
15822018-07-12 Richard Biener <rguenther@suse.de>
1583
1584 PR c/86453
1585 * c-attribs.c (handle_packed_attribute): Do not build a variant
1586 type with TYPE_PACKED, instead ignore the attribute if we may
1587 not apply to the original type.
1588
0b27c3ed
JJ
15892018-07-10 Jakub Jelinek <jakub@redhat.com>
1590
1591 PR c++/86443
1592 * c-omp.c (c_omp_check_loop_iv_r, c_omp_check_loop_iv): Allow declv
1593 to contain TREE_LIST for both the original class iterator and the
1594 "last" helper var.
1595
e730a0ef
EB
15962018-07-07 Eric Botcazou <ebotcazou@adacore.com>
1597
1598 * c-ada-spec.c (to_ada_name): Remove index parameter.
1599 (pp_ada_tree_identifier): Likewise.
1600 (dump_ada_macros): Adjust call to to_ada_name.
1601 (struct overloaded_name_hash): Delete.
1602 (struct overloaded_name_hasher): Likewise.
1603 (overloaded_names): Likewise.
1604 (compute_overloading_index): Likewise.
1605 (dump_ada_decl_name): Do not call compute_overloading_index and
1606 adjust calls to pp_ada_tree_identifier.
1607 (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
1608 (dump_ada_import): Add spc parameter and switch to aspect syntax.
1609 (dump_ada_function_declaration): Adjust call to pp_ada_tree_identifier.
1610 (dump_ada_enum_type): Remove type and display_convention parameters.
1611 Adjust calls to pp_ada_tree_identifier.
1612 (dump_ada_node): Likewise and for dump_ada_structure.
1613 (dump_nested_type) <ENUMERAL_TYPE>: Adjust call to dump_ada_enum_type
1614 and tidy up.
1615 <RECORD_TYPE>: Adjust call to dump_ada_structure and switch to aspect
1616 syntax.
1617 (print_constructor): Adjust call to pp_ada_tree_identifier.
1618 (print_destructor): Likewise.
1619 (dump_ada_declaration): Switch to aspect syntax.
1620 (dump_ada_structure): Likewise and tidy up. Replace display_convention
1621 parameter with nested parameter.
1622 (dump_ads): Emit pragma Ada_2012 in lieu of pragma Ada_2005.
1623 (dump_ada_specs): Do not delete overloaded_names table.
1624
8de583fc
PB
16252018-07-06 Peter Bergner <bergner@linux.ibm.com>
1626
1627 PR target/86324
e730a0ef 1628 * c-attribs.c (handle_mode_attribute): Call translate_mode_attribute
8de583fc
PB
1629 target hook.
1630
09cff37b
NS
16312018-07-05 Nathan Sidwell <nathan@acm.org>
1632
1633 * c-lex.c (fe_file_change): Check SYSTEM_IMPLICIT_EXTERN_C not
1634 NO_IMPLICIT_EXTERN_C.
1635
98086b2b
ML
16362018-06-28 Martin Liska <mliska@suse.cz>
1637
1638 * cppspec.c: Include opt-suggestions.h.
1639
ab20d992
JJ
16402018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
1641 Thomas Schwinge <thomas@codesourcery.com>
829c6349
CLT
1642 Cesar Philippidis <cesar@codesourcery.com>
1643
1644 * c-pragma.h (enum pragma_omp_clause): Add
1645 PRAGMA_OACC_CLAUSE_{FINALIZE,IF_PRESENT}. Remove
1646 PRAGMA_OACC_CLAUSE_PRESENT_OR_{COPY,COPYIN,COPYOUT,CREATE}.
1647
f41b7612
JJ
16482018-06-20 Jakub Jelinek <jakub@redhat.com>
1649
1650 PR c++/86210
1651 * c-common.c (check_nonnull_arg): Use fold_for_warn. Adjust obsolete
1652 comment.
1653
4252ccd7
MS
16542018-06-18 Martin Sebor <msebor@redhat.com>
1655
1656 PR middle-end/85602
1657 * c-warn.c (sizeof_pointer_memaccess_warning): Check for attribute
1658 nonstring.
1659
e197e64e
KV
16602018-06-16 Kugan Vivekanandarajah <kuganv@linaro.org>
1661
1662 * c-common.c (c_common_truthvalue_conversion): Handle ABSU_EXPR.
1663
34a7a230
JM
16642018-06-13 Jason Merrill <jason@redhat.com>
1665
5cef3733
JM
1666 * c-opts.c (c_common_post_options): Warn about useless -Wabi.
1667 (c_common_handle_option) [OPT_Wabi_]: Remove flag_abi_compat_version
1668 handling.
1669
34a7a230
JM
1670 PR c++/86094 - wrong code with defaulted move ctor.
1671 * c-opts.c (c_common_post_options): Bump the current ABI version to
1672 13. Set warn_abi_version and flag_abi_compat_version to the current
1673 version rather than 0. Fix defaulting flag_abi_compat_version from
1674 warn_abi_version.
1675
bb0f14ae
MS
16762018-06-12 Martin Sebor <msebor@redhat.com>
1677
1678 PR c/85931
1679 * c-warn.c (sizeof_pointer_memaccess_warning): Avoid warning when
1680 sizeof source and destination yields the same value.
1681
3713f2e2
ML
16822018-06-12 Martin Liska <mliska@suse.cz>
1683
1684 * c.opt: Make MPX-related options as Deprecated.
1685
4af78ef8
DM
16862018-06-08 David Malcolm <dmalcolm@redhat.com>
1687
1688 * c-pretty-print.c (c_pretty_printer::statement): Use TDF_NONE
1689 rather than 0.
1690
31db0fe0
ML
16912018-06-08 Martin Liska <mliska@suse.cz>
1692
1693 * c-attribs.c (handle_bnd_variable_size_attribute): Remove support
1694 for MPX (macros, related functions, fields in cgraph_node, ...).
1695 (handle_bnd_legacy): Likewise.
1696 (handle_bnd_instrument): Likewise.
1697 * c.opt: Likewise.
1698
fe16acf2
JJ
16992018-06-06 Jakub Jelinek <jakub@redhat.com>
1700
1701 PR c++/86068
1702 * c-cppbuiltin.c (c_cpp_builtins): Fix a typo, set
1703 __cpp_transactional_memory to 201500 instead of 210500.
1704
4dbdb49b
JM
17052018-06-06 Jason Merrill <jason@redhat.com>
1706
1707 PR c++/85710 - ICE with -Wmemset-elt-size.
1708 * c-warn.c (warn_for_memset): Don't crash on incomplete element type.
1709
f8ad043f
JM
17102018-06-01 Jason Merrill <jason@redhat.com>
1711
1712 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_deduction_guides to
1713 201703.
1714
abc24d93
EB
17152018-06-01 Eric Botcazou <ebotcazou@adacore.com>
1716
1717 * c-ada-spec.c (dump_ada_declaration) <TYPE_DECL>: Generate a forward
1718 declaration for a typedef independently of whether the declaration of
1719 the subtype is generated.
1720
d258f4aa
MS
17212018-05-31 Martin Sebor <msebor@redhat.com>
1722
1723 PR c/82063
1724 * c.opt (-Wno-alloc-size-larger-than): New option.
1725
b67b9225
DP
17262018-04-22 David Pagan <dave.pagan@oracle.com>
1727
1728 PR c/55976
1729 * c-opts.c (c_common_post_options): Set default for warn_return_type
ab20d992 1730 for C++/C++ with ObjC extensions only. For C, makes it possible to
b67b9225
DP
1731 differentiate between default (no option), -Wreturn-type, and
1732 -Wno-return-type.
1733
04eb9c55
JM
17342018-05-29 Jason Merrill <jason@redhat.com>
1735
1736 * c.opt (Winit-list-lifetime): New flag.
1737
b0c31bc6
BE
17382018-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
1739
1740 * c-lex.c (get_fileinfo): Use splay_tree_compare_strings and
1741 splay_tree_delete_pointers.
1742
44284983
JJ
17432018-05-26 Jakub Jelinek <jakub@redhat.com>
1744
1745 PR bootstrap/85921
1746 * c-warn.c (diagnose_mismatched_attributes): Remove unnecessary
1747 noinline variable to workaround broken kernel headers.
1748
b46b715d
JM
17492018-05-18 Jason Merrill <jason@redhat.com>
1750
1751 * c.opt (Wdeprecated-copy): New flag.
1752
40659769
ML
17532018-05-17 Martin Liska <mliska@suse.cz>
1754
1755 * c-warn.c (overflow_warning): Do not use
1756 space in between 'G_' and '('.
1757
403962ea
JM
17582018-05-09 Jason Merrill <jason@redhat.com>
1759
1760 * c-common.c (valid_array_size_p): Add complain parameter.
1761 * c-common.h: ...which defaults to true.
1762
1c9ee609
JJ
17632018-05-11 Jakub Jelinek <jakub@redhat.com>
1764
1765 PR c/85696
1766 * c-omp.c (c_omp_predetermined_sharing): Return
1767 OMP_CLAUSE_DEFAULT_SHARED for artificial vars with integral type.
1768
19916065
ML
17692018-05-11 Martin Liska <mliska@suse.cz>
1770
92a285c1 1771 PR sanitizer/85556
19916065
ML
1772 * c-attribs.c (handle_no_sanitize_attribute): Iterate all
1773 TREE_LIST values.
1774
79e7b1fe
JJ
17752018-05-10 Jakub Jelinek <jakub@redhat.com>
1776
1777 PR c++/85662
1778 * c-common.h (fold_offsetof_1): Removed.
1779 (fold_offsetof): Add TYPE argument defaulted to size_type_node and
1780 CTX argument defaulted to ERROR_MARK.
1781 * c-common.c (fold_offsetof_1): Renamed to ...
1782 (fold_offsetof): ... this. Remove wrapper function. Add TYPE
1783 argument, convert the pointer constant to TYPE and use size_binop
1784 with PLUS_EXPR instead of fold_build_pointer_plus if type is not
1785 a pointer type. Adjust recursive calls.
1786
86c12f76
EB
17872018-05-10 Eric Botcazou <ebotcazou@adacore.com>
1788
1789 PR c++/85400
1790 * c-attribs.c (handle_visibility_attribute): Do not set no_add_attrs.
1791
ee336e84
NS
17922018-05-07 Nathan Sidwell <nathan@acm.org>
1793
1794 * c.opt (ffor-scope): Remove functionality, issue warning.
1795
6c072e21
NS
17962018-05-03 Nathan Sidwell <nathan@acm.org>
1797
1798 * c.opt (ffriend-injection): Remove functionality, issue warning.
1799
2cc7d3a7
DM
18002018-05-01 David Malcolm <dmalcolm@redhat.com>
1801
1802 PR c/84258
1803 * c-format.c (struct format_check_results): Add field
1804 "number_non_char".
1805 (check_format_info): Initialize it, and warn if encountered.
1806 (check_format_arg): Distinguish between wide char and
1807 everything else when detecting arrays of non-char.
1808
7761dfbe
DM
18092018-04-30 David Malcolm <dmalcolm@redhat.com>
1810
1811 * c-format.c (get_corrected_substring): Update for
1812 location_get_source_line returning a char_span. Use a char_span
1813 when handling the prefix of the correction.
1814 * c-indentation.c (get_visual_column): Update for
1815 location_get_source_line returning a char_span.
1816 (get_first_nws_vis_column): Likewise.
1817
62e98ef1
DM
18182018-03-29 David Malcolm <dmalcolm@redhat.com>
1819
1820 PR c++/84269
1821 * known-headers.cc (get_stdlib_header_for_name): Add various names
1822 from <assert.h>, <string.h>, and <memory.h>; add more names from
1823 <stdio.h>.
1824
a7dea617
JJ
18252018-03-27 Jakub Jelinek <jakub@redhat.com>
1826
1827 PR c++/85061
1828 * c-common.c (fold_offsetof_1) <case COMPOUND_EXPR>: Assert that
1829 get_base_address of the second operand is a VAR_P, rather than the
1830 operand itself, and use gcc_checking_assert instead of gcc_assert.
1831
889a3a30
MP
18322018-03-23 Marek Polacek <polacek@redhat.com>
1833
1834 PR c++/85045
1835 * c-pretty-print.c (c_pretty_printer::multiplicative_expression)
1836 <case RDIV_EXPR>: Tweak condition.
1837
452154b9
EB
18382018-03-20 Eric Botcazou <ebotcazou@adacore.com>
1839
1840 * c-ada-spec.c (pp_ada_tree_identifier): Deal specifically with _Bool.
1841
63ecb626
JJ
18422018-03-16 Jakub Jelinek <jakub@redhat.com>
1843
ce811fc4
JJ
1844 PR c/84909
1845 * c-warn.c (conversion_warning): Replace "to to" with "to" in
1846 diagnostics.
1847
63ecb626
JJ
1848 PR c/84910
1849 * c-warn.c (diagnose_mismatched_attributes): Remove trailing space from
1850 diagnostics.
1851
a1295eec
RB
18522018-03-16 Richard Biener <rguenther@suse.de>
1853
1854 PR c/84873
1855 * c-gimplify.c (c_gimplify_expr): Revert previous change. Instead
1856 unshare the possibly folded expression.
1857
919674fb
RB
18582018-03-15 Richard Biener <rguenther@suse.de>
1859
1860 PR c/84873
1861 * c-gimplify.c (c_gimplify_expr): Do not fold expressions.
1862
f99309b2
MS
18632018-03-13 Martin Sebor <msebor@redhat.com>
1864
1865 PR tree-optimization/84725
1866 * c-attribs.c (handle_nonstring_attribute): Allow attribute nonstring
1867 with all three narrow character types, including their qualified forms.
1868
e9b9fa4c
MS
18692018-03-12 Martin Sebor <msebor@redhat.com>
1870
1871 PR tree-optimization/83456
ab20d992 1872 * c-common.c (check_function_restrict): Return bool.
e9b9fa4c
MS
1873 Restore checking of bounded built-in functions.
1874 (check_function_arguments): Also return the result
1875 of warn_for_restrict.
ab20d992
JJ
1876 * c-common.c (check_function_restrict): Return bool.
1877 * c-warn.c (warn_for_restrict): Return bool.
e9b9fa4c 1878
0805d020
MP
18792018-03-02 Marek Polacek <polacek@redhat.com>
1880
1881 PR c++/84171
1882 * c-warn.c (warn_for_sign_compare): Bail out if any of the operands
1883 is erroneous.
1884
ed2a2f08
TS
18852018-03-02 Thomas Schwinge <thomas@codesourcery.com>
1886
1887 * c-attribs.c (c_common_attribute_table): Remove "cilk simd
1888 function".
1889
90abdde0
MP
18902018-03-01 Marek Polacek <polacek@redhat.com>
1891
1892 PR c++/84639
1893 * c-attribs.c (common_handle_aligned_attribute): Don't use invalid
1894 alignment in computation.
1895
c6db43fa
EB
18962018-02-28 Eric Botcazou <ebotcazou@adacore.com>
1897
1898 * c-ada-spec.c (dump_ada_node) <NULLPTR_TYPE>: New case.
1899 <REAL_TYPE>: Deal specifically with _Float128/__float128.
1900
9e25c7ed
EB
19012018-02-28 Eric Botcazou <ebotcazou@adacore.com>
1902
1903 * c-ada-spec.c (dump_ada_double_name) <ENUMERAL_TYPE>: New case.
1904 (is_char_array): Take a type instead of a declaration.
1905 (dump_ada_array_type): Likewise.
1906 (is_simple_enum): Minor tweak.
1907 (dump_ada_enum_type): New function extracted from...
1908 (dump_ada_node) <ENUMERAL_TYPE>: ...here. Invoke it.
1909 <INTEGER_TYPE>: Remove unreachable code.
1910 <RECORD_TYPE>: Likewise. Minor tweaks.
1911 (dump_nested_type) <ARRAY_TYPE>: Adjust to above changes.
1912 <ENUMERAL_TYPE>: New case.
1913 <RECORD_TYPE>: Factor out common code.
1914 (dump_ada_declaration) <ARRAY_TYPE>: Adjust to above changes.
1915 Minor tweaks. Deal with enumeral types.
1916 (dump_ada_structure): Minor tweaks.
1917
09de3550
EB
19182018-02-28 Eric Botcazou <ebotcazou@adacore.com>
1919
1920 * c-ada-spec.c (dump_ada_node) <POINTER_TYPE>: Do not use generic
1921 address for incomplete structures.
1922 (dump_forward_type): Do not bail out for incomplete structures.
1923 (dump_ada_declaration): Do not special-case incomplete structures
1924 for subtypes. Dump them as null records for types.
1925
095d8d4b
EB
19262018-02-28 Eric Botcazou <ebotcazou@adacore.com>
1927
1928 * c-ada-spec.c (dump_ada_import): Use boolean and fix formatting.
1929 (is_char_array): Fix formatting.
1930 (dump_template_types): Likewise.
1931 (dump_generic_ada_node): Rename into...
1932 (dump_ada_node): ...this.
1933 <POINTER_TYPE>: Remove superfluous space. Use generic address for
1934 incomplete structures and not for empty structures. Do not use it
1935 when forward declarations are needed.
1936 (dump_forward_type): New function.
1937 (dump_nested_types): Remove FORWARD parameter. Do not consider
1938 TREE_VISITED and do not generate a forward declaration. Only dump
1939 original nested types for nested declaration.
1940 (dump_nested_type) <POINTER_TYPE>: Call dump_forward_type.
1941 <ARRAY_TYPE>: Likewise if the component type is an anonymous pointer.
1942 <RECORD_TYPE>: Do not consider TREE_VISITED.
1943 (dump_ada_declaration): Use booleans and fix formatting throughout.
1944 <TYPE_DECL>: Skip incomplete structures and not empty structures.
1945 Call dump_forward_type instead of dump_nested_types for a typedef.
1946 Remove superfluous check and adjust call to dump_nested_types.
1947 <POINTER_TYPE>: Call dump_forward_type and fall through.
1948 (dump_ada_struct_decl): Rename into...
1949 (dump_ada_structure): ...this. Do not special-case empty structures.
1950
d4cfd486
MS
19512018-02-27 Martin Sebor <msebor@redhat.com>
1952
1953 PR c++/83871
1954 * c.opt (-Wmissing-attributes): New option.
1955
b22dbd03
ML
19562018-02-21 Martin Liska <mliska@suse.cz>
1957
1958 * c.opt (Wcatch-value=): Add IntegerRange.
1959
883dfe2a
JM
19602018-02-15 Jason Merrill <jason@redhat.com>
1961
1962 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_deduction_guides.
1963
0444aa9c
NS
19642018-02-09 Nathan Sidwell <nathan@acm.org>
1965
1966 PR c/84293
1967 * c-common.h (strict_aliasing_warning): Drop OTYPE arg, insert LOC
1968 arg.
1969 * c-warn.c (strict_aliasing_warning): Drop OTYPE arg, require LOC
1970 arg. Adjust.
1971
cea71f0a
MS
19722018-02-09 Martin Sebor <msebor@redhat.com>
1973
1974 PR lto/84212
1975 * c.opt (-Wstringop-overflow, -Warray-bounds): Add LTO.
1976 (-Walloc-size-larger-than, -Wformat-truncation=): Same.
1977 (-Wmaybe-uninitialized, -Wnonnull, -Wrestrict): Same.
1978 (-Wstrict-overflow, -Wsuggest-attribute): Same.
1979 (-Wuninitialized): Same.
1980
8c8b7be5
EB
19812018-02-09 Eric Botcazou <ebotcazou@adacore.com>
1982
1983 * c-ada-spec.c (dump_ada_declaration): Do not generate the 'constant'
1984 keyword for components.
1985
7c30b12a
PC
19862018-02-02 Paolo Carlini <paolo.carlini@oracle.com>
1987
1988 * c-common.h (DECL_UNNAMED_BIT_FIELD): New.
1989
eece7fe5
JK
19902018-02-02 Julia Koval <julia.koval@intel.com>
1991
1992 * c-common.h (omp_clause_mask): Move to wide_int_bitmask.h.
1993
7d07a93a
MP
19942018-01-29 Marek Polacek <polacek@redhat.com>
1995
1996 PR c/83966
1997 * c-format.c (check_function_format): Check current_function_decl.
1998
53723269
JJ
19992018-01-27 Jakub Jelinek <jakub@redhat.com>
2000
2001 * c-cppbuiltin.c (c_cpp_builtins): Use ggc_strdup for the fp_suffix
2002 argument.
2003 (LAZY_HEX_FP_VALUES_CNT): Define.
2004 (lazy_hex_fp_values): Allow up to LAZY_HEX_FP_VALUES_CNT lazy hex fp
2005 values rather than just 12.
2006 (builtin_define_with_hex_fp_value): Likewise.
2007
7365279f
BK
20082018-01-18 Boris Kolpackov <boris@codesynthesis.com>
2009
92a285c1
ML
2010 PR other/70268
2011 * c.opt (-fmacro-prefix-map): New option.
2012 * c-opts.c (c_common_handle_option): Handle it.
2013 * c-lex.c (init_c_lex): Set remap_filename cpp callback.
2014 * c-ppoutput.c (init_pp_output): Likewise.
7365279f 2015
bb9869d5
DM
20162018-01-17 David Malcolm <dmalcolm@redhat.com>
2017
2018 PR c++/83814
2019 * c-common.c (fold_for_warn): Move to c/c-fold.c and cp/expr.c.
2020
68dc87c3
EB
20212018-01-10 Eric Botcazou <ebotcazou@adacore.com>
2022
2023 * c-ada-spec.c (dump_number): Add FLOAT_P parameter.
2024 Skip 'f' and 'F' characters if it is true.
2025 (store_ada_macro): Minor tweak.
2026 (dump_ada_macros) <CPP_COMMENT>: Likewise.
2027 <CPP_WSTRING>: Likewise.
2028 <CPP_STRING>: Output '&' in the buffer if not the first string.
2029 <CPP_NUMBER>: Adjust calls to dump_number.
2030
9a004410
DM
20312018-01-10 David Malcolm <dmalcolm@redhat.com>
2032
2033 PR c++/43486
2034 * c-common.c: Include "selftest.h".
2035 (get_atomic_generic_size): Perform the test for integral type
2036 before the range test for any integer constant, fixing indentation
2037 of braces. Call fold_for_warn before testing for an INTEGER_CST.
2038 (reject_gcc_builtin): Strip any location wrapper from EXPR.
2039 (selftest::test_fold_for_warn): New function.
2040 (selftest::c_common_c_tests): New function.
2041 (selftest::c_family_tests): Call it, and
2042 selftest::c_pretty_print_c_tests.
2043 * c-common.h (selftest::c_pretty_print_c_tests): New decl.
2044 * c-format.c (check_format_arg): Convert VAR_P check to a
2045 fold_for_warn.
2046 * c-pretty-print.c: Include "selftest.h".
2047 (pp_c_cast_expression): Don't print casts for location wrappers.
2048 (selftest::assert_c_pretty_printer_output): New function.
2049 (ASSERT_C_PRETTY_PRINTER_OUTPUT): New macro.
2050 (selftest::test_location_wrappers): New function.
2051 (selftest::c_pretty_print_c_tests): New function.
2052 * c-warn.c (warn_for_memset): Call fold_for_warn on the arguments.
2053
5c0caeb3
RS
20542018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
2055 Alan Hayward <alan.hayward@arm.com>
2056 David Sherwood <david.sherwood@arm.com>
2057
2058 * c-common.c (c_common_type_for_mode): Handle MODE_VECTOR_BOOL.
2059
73a699ae
RS
20602018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
2061 Alan Hayward <alan.hayward@arm.com>
2062 David Sherwood <david.sherwood@arm.com>
2063
2064 * c-ubsan.c (ubsan_instrument_shift): Treat GET_MODE_BITSIZE
2065 as polynomial.
2066
928686b1
RS
20672018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
2068 Alan Hayward <alan.hayward@arm.com>
2069 David Sherwood <david.sherwood@arm.com>
2070
2071 * c-common.c (vector_types_convertible_p, c_build_vec_perm_expr)
2072 (convert_vector_to_array_for_subscript): Handle polynomial
2073 TYPE_VECTOR_SUBPARTS.
2074 (c_common_type_for_mode): Check valid_vector_subparts_p.
2075 * c-pretty-print.c (pp_c_initializer_list): Handle polynomial
2076 VECTOR_CST_NELTS.
2077
85ec4feb
JJ
20782018-01-03 Jakub Jelinek <jakub@redhat.com>
2079
2080 Update copyright years.
2081
170a8bd6 20822017-12-22 Mike Stump <mikestump@comcast.net>
92a285c1 2083 Eric Botcazou <ebotcazou@adacore.com>
170a8bd6
EB
2084
2085 * c-pragma.c (init_pragma): Register pragma GCC unroll.
2086 * c-pragma.h (enum pragma_kind): Add PRAGMA_UNROLL.
2087
ab20d992 20882017-12-22 Alexandre Oliva <aoliva@redhat.com>
18408e96
AO
2089
2090 PR debug/83527
2091 PR debug/83419
2092 * c-semantics.c (only_debug_stmts_after_p): New.
2093 (pop_stmt_list): Clear side effects in debug-only stmt list.
2094 Check for single nondebug stmt followed by debug stmts only.
2095
c12d20d4
AO
20962017-12-21 Alexandre Oliva <aoliva@redhat.com>
2097
2098 PR debug/83419
2099 * c-semantics.c (pop_stmt_list): Propagate side effects from
2100 single nondebug stmt to container list.
2101
01512446
JJ
21022017-12-19 Jakub Jelinek <jakub@redhat.com>
2103
2104 * known-headers.cc (get_stdlib_header_for_name): Replace Yoda
2105 conditions with typical order conditions.
2106
82cfbd01
MP
21072017-12-18 Marek Polacek <polacek@redhat.com>
2108
2109 * c-warn.c (warn_logical_operator): Return early if -Wlogical-op is
2110 not in effect.
2111
99da11ec
MS
21122017-12-17 Martin Sebor <msebor@redhat.com>
2113
2114 * c-attribs.c (common_handle_aligned_attribute): Avoid issuing
2115 an error for attribute warn_if_not_aligned.
2116
cc8bea0a
MS
21172017-12-16 Martin Sebor <msebor@redhat.com>
2118
2119 PR tree-optimization/78918
2120 * c-common.c (check_function_restrict): Avoid checking built-ins.
2121 * c.opt (-Wrestrict): Include in -Wall.
2122
4849deb1
JJ
21232017-12-15 Jakub Jelinek <jakub@redhat.com>
2124
2125 * c-attribs.c (c_common_attribute_table,
2126 c_common_format_attribute_table): Swap affects_type_identity
2127 and handler fields, adjust comments.
2128
c65e18d3
BE
21292017-12-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
2130
2131 * c.opt (Wcast-function-type): New warning option.
2132 * c-lex.c (get_fileinfo): Avoid warning.
2133 * c-ppoutput.c (scan_translation_unit_directives_only): Remove cast.
2134
2004617a
QZ
21352017-12-14 Qing Zhao <qing.zhao@oracle.com>
2136
7365279f 2137 PR middle_end/79538
2004617a
QZ
2138 * c-cppbuiltin.c (builtin_define_with_hex_fp_value):
2139 Adjust the size of buf1 and buf2, add a new buf to avoid
2140 format-overflow warning.
2141
ab20d992 21422017-12-12 Alexandre Oliva <aoliva@redhat.com>
96a95ac1
AO
2143
2144 * c-semantics.c (pop_stmt_list): Move begin stmt marker into
2145 subsequent statement list.
2146
5d9ae53d
MS
21472017-12-07 Martin Sebor <msebor@redhat.com>
2148
2149 PR c/81544
2150 PR c/81566
2151 * c-attribs.c (attr_aligned_exclusions): New array.
2152 (attr_alloc_exclusions, attr_cold_hot_exclusions): Same.
2153 (attr_common_exclusions, attr_const_pure_exclusions): Same.
2154 (attr_gnu_inline_exclusions, attr_inline_exclusions): Same.
2155 (attr_noreturn_exclusions, attr_returns_twice_exclusions): Same.
2156 (attr_warn_unused_result_exclusions): Same.
2157 (handle_hot_attribute, handle_cold_attribute): Simplify.
2158 (handle_const_attribute): Warn on function returning void.
2159 (handle_pure_attribute): Same.
2160 (handle_aligned_attribute): Diagnose conflicting attribute
2161 specifications.
2162 * c-warn.c (diagnose_mismatched_attributes): Simplify.
2163
c79144f8
DM
21642017-12-06 David Malcolm <dmalcolm@redhat.com>
2165
2166 PR c/83236
2167 * c-common.c (selftest::c_family_tests): Call
2168 selftest::c_spellcheck_cc_tests.
2169 * c-common.h (selftest::c_spellcheck_cc_tests): New decl.
2170 * c-spellcheck.cc: Include "selftest.h".
2171 (name_reserved_for_implementation_p): New function.
2172 (should_suggest_as_macro_p): New function.
2173 (find_closest_macro_cpp_cb): Move the check for NT_MACRO to
2174 should_suggest_as_macro_p and call it.
2175 (selftest::test_name_reserved_for_implementation_p): New function.
2176 (selftest::c_spellcheck_cc_tests): New function.
2177 * c-spellcheck.h (name_reserved_for_implementation_p): New decl.
2178
613bc14f
DM
21792017-12-06 David Malcolm <dmalcolm@redhat.com>
2180
2181 * c-spellcheck.cc: New file, taken from macro-handling code in
2182 spellcheck-tree.c.
2183 * c-spellcheck.h: New file, taken from macro-handling code in
2184 spellcheck-tree.h.
2185
e76c7157
JJ
21862017-12-01 Jakub Jelinek <jakub@redhat.com>
2187
2188 * c-attribs.c (c_common_attribute_table): Remove "cilk simd function"
2189 attribute.
2190 (handle_simd_attribute): Don't check for "cilk simd function"
2191 attribute. Reindent, formatting changes.
2192
b0da4034
JK
21932017-11-30 Julia Koval <julia.koval@intel.com>
2194
2195 * c-common.h (inv_list): Remove.
2196
058f0b9e
JJ
21972017-11-28 Jakub Jelinek <jakub@redhat.com>
2198
2199 PR sanitizer/81275
2200 * c-common.c (c_switch_covers_all_cases_p_1,
2201 c_switch_covers_all_cases_p): New functions.
2202 * c-common.h (c_switch_covers_all_cases_p): Declare.
2203
5e9d6aa4 22042017-11-28 Julia Koval <julia.koval@intel.com>
92a285c1 2205 Sebastian Peryt <sebastian.peryt@intel.com>
5e9d6aa4
JK
2206
2207 * array-notation-common.c: Delete.
2208 * c-cilkplus.c: Ditto.
2209 * c-common.c (_Cilk_spawn, _Cilk_sync, _Cilk_for): Remove.
2210 * c-common.def (ARRAY_NOTATION_REF): Remove.
2211 * c-common.h (RID_CILK_SPAWN, build_array_notation_expr,
2212 build_array_notation_ref, C_ORT_CILK, c_check_cilk_loop,
2213 c_validate_cilk_plus_loop, cilkplus_an_parts,
2214 cilk_ignorable_spawn_rhs_op,
2215 cilk_recognize_spawn): Remove.
2216 * c-gimplify.c (CILK_SPAWN_STMT): Remove.
2217 * c-omp.c: Remove CILK_SIMD check.
2218 * c-pragma.c: Ditto.
2219 * c-pragma.h: Remove CILK related pragmas.
2220 * c-pretty-print.c (c_pretty_printer::postfix_expression): Remove
2221 ARRAY_NOTATION_REF condition.
2222 (c_pretty_printer::expression): Ditto.
2223 * c.opt (fcilkplus): Remove.
2224 * cilk.c: Delete.
2225
1af4ebf5
MG
22262017-11-21 Marc Glisse <marc.glisse@inria.fr>
2227
2228 * c-pretty-print.c (pp_c_additive_expression,
2229 c_pretty_printer::expression): Handle POINTER_DIFF_EXPR.
2230
d44ed508
JJ
22312017-11-21 Jakub Jelinek <jakub@redhat.com>
2232
7d2f0f9b
JJ
2233 * c-common.c (get_nonnull_operand): Use tree_to_uhwi.
2234
d44ed508
JJ
2235 PR c++/83059
2236 * c-common.c (get_atomic_generic_size): Use TREE_INT_CST_LOW
2237 instead of tree_to_uhwi, formatting fix.
2238
26edace6
DM
22392017-11-20 David Malcolm <dmalcolm@redhat.com>
2240
2241 PR c/81404
2242 * known-headers.cc: New file, based on material from c/c-decl.c.
2243 (suggest_missing_header): Copied as-is.
2244 (get_stdlib_header_for_name): New, based on get_c_name_hint but
2245 heavily edited to add C++ support. Add some knowledge about
2246 <limits.h>, <stdint.h>, and <wchar.h>.
2247 * known-headers.h: Likewise.
2248
6c7a259b
DM
22492017-11-20 David Malcolm <dmalcolm@redhat.com>
2250
2251 * c-common.h (enum lookup_name_fuzzy_kind): Move to name-hint.h.
2252 (lookup_name_fuzzy): Likewise. Convert return type from
2253 const char * to name_hint. Add location_t param.
2254 * name-hint.h: New header.
2255
f9c59f7e
JJ
22562017-11-19 Jakub Jelinek <jakub@redhat.com>
2257
2258 PR c/66618
2259 PR c/69960
2260 * c-common.h (c_fully_fold): Add LVAL argument defaulted to false.
2261
1e39313a
JM
22622017-11-16 Joseph Myers <joseph@codesourcery.com>
2263
2264 * c.opt (-std=c17, std=gnu17, -std=iso9899:2017): Refer to 2018
2265 expected publication date of C17.
2266 (-std=c18, -std=gnu18, -std=iso9899:2018): New option aliases.
2267
3ca0dc60
JM
22682017-11-15 Joseph Myers <joseph@codesourcery.com>
2269
2270 PR c/81156
2271 * c-common.c (c_common_reswords): Add __builtin_tgmath.
2272 * c-common.h (enum rid): Add RID_BUILTIN_TGMATH.
2273
025d57f0
MS
22742017-11-10 Martin Sebor <msebor@redhat.com>
2275
2276 PR c/81117
2277 * c-common.c (catenate_strings): Use memcpy instead of strncpy.
2278 * c-warn.c (sizeof_pointer_memaccess_warning): Handle arrays.
2279 * c.opt (-Wstringop-truncation): New option.
2280
1b6fa695
ML
22812017-11-06 Martin Liska <mliska@suse.cz>
2282
2283 PR middle-end/82404
2284 * c-opts.c (c_common_post_options): Set -Wreturn-type for C++
2285 FE.
2286 * c.opt: Set default value of warn_return_type.
2287
64a5912c
DM
22882017-10-31 David Malcolm <dmalcolm@redhat.com>
2289
2290 * c-common.c (binary_op_error): Update for renaming of
2291 error_at_rich_loc.
2292 (c_parse_error): Likewise.
2293 * c-warn.c (warn_logical_not_parentheses): Likewise for
2294 renaming of inform_at_rich_loc.
2295 (warn_for_restrict): Likewise for renaming of
2296 warning_at_rich_loc_n.
2297
c76dc9c3
JM
22982017-10-30 Joseph Myers <joseph@codesourcery.com>
2299
2300 * c.opt (std=c17, std=gnu17, std=iso9899:2017): New options.
2301 * c-opts.c (set_std_c17): New function.
2302 (c_common_init_options): Use gnu17 as default C version.
2303 (c_common_handle_option): Handle -std=c17 and -std=gnu17.
2304
ee5fd23a
MM
23052017-10-27 Michael Meissner <meissner@linux.vnet.ibm.com>
2306
2307 * c-cppbuiltin.c (mode_has_fma): Add support for PowerPC KFmode.
2308 (c_cpp_builtins): If a machine has a fast fma _Float<N> and
2309 _Float<N>X variant, define __FP_FAST_FMA<N> and/or
2310 __FP_FAST_FMA<N>X.
2311
d1047465
MP
23122017-10-23 Marek Polacek <polacek@redhat.com>
2313
2314 PR c/82681
2315 * c-warn.c (warnings_for_convert_and_check): Fix typos.
2316
9e878cf1
EB
23172017-10-19 Eric Botcazou <ebotcazou@adacore.com>
2318
2319 * c-common.c (check_builtin_function_arguments): Also check arguments
2320 of __builtin_alloca_with_align_and_max.
2321
89b6abbb
DM
23222017-10-17 David Malcolm <dmalcolm@redhat.com>
2323
2324 * c-format.c (format_warning_at_char): Pass UNKNOWN_LOCATION
2325 rather than NULL to format_warning_va.
2326 (check_format_types): Likewise when calling format_type_warning.
2327 Remove code to extract source_ranges and source_range * in favor
2328 of just a location_t.
2329 (format_type_warning): Convert source_range * param to a
2330 location_t.
2331
39382c09
JJ
23322017-10-13 Jakub Jelinek <jakub@redhat.com>
2333
2334 * c-gimplify.c (c_gimplify_expr): Handle [LR]ROTATE_EXPR like
2335 [LR]SHIFT_EXPR.
2336
62e1c678
DM
23372017-10-12 David Malcolm <dmalcolm@redhat.com>
2338
2339 * c-common.c (enum missing_token_insertion_kind): New enum.
2340 (get_missing_token_insertion_kind): New function.
2341 (maybe_suggest_missing_token_insertion): New function.
2342 * c-common.h (maybe_suggest_missing_token_insertion): New decl.
2343
b90c9338
NS
23442017-10-11 Nathan Sidwell <nathan@acm.org>
2345
2346 * c-opts.c (add_prefixed_path): Change chain to incpath_kind.
2347 (c_common_handle_option): Update incpath_kind names.
2348
3a266bcd
ML
23492017-10-11 Martin Liska <mliska@suse.cz>
2350
2351 PR sanitizer/82490
2352 * c-attribs.c (handle_no_sanitize_attribute): Report directly
2353 Wattributes warning.
2354
8e6cdc90
RS
23552017-10-10 Richard Sandiford <richard.sandiford@linaro.org>
2356
2357 * c-ada-spec.c (dump_generic_ada_node): Use wi::to_wide when
2358 operating on trees as wide_ints.
2359 * c-common.c (pointer_int_sum): Likewise.
2360 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2361 * c-warn.c (match_case_to_enum_1): Likewise.
2362 (c_do_switch_warnings): Likewise.
2363 (maybe_warn_shift_overflow): Likewise.
2364
802b38c9
JJ
23652017-10-10 Jakub Jelinek <jakub@redhat.com>
2366
2367 PR c/82437
2368 * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_wide
2369 instead of wide_int::from.
2370
4e34b338
JJ
23712017-10-06 Jakub Jelinek <jakub@redhat.com>
2372
2373 PR c/82437
2374 * c-warn.c (warn_tautological_bitwise_comparison): Instead of
2375 using to_widest use wide_int with the larger of the two precisions.
2376
4bc4b2b4
BE
23772017-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
2378
2379 * c-pretty-print.c (pp_c_parameter_type_list): Print ... for variadic
2380 functions.
2381
a1488398
RS
23822017-10-02 Richard Sandiford <richard.sandiford@linaro.org>
2383
2384 * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_widest
2385 when combining the original unconverted comparison operands.
2386
01c9fb68
JJ
23872017-09-29 Jakub Jelinek <jakub@redhat.com>
2388
2389 * c-attribs.c (handle_noipa_attribute): Don't add "stack_protect"
2390 attribute.
2391
6e3e8419
EB
23922017-09-29 Eric Botcazou <ebotcazou@adacore.com>
2393
2394 * c-ada-spec.c (to_ada_name): Add index parameter.
2395 (pp_ada_tree_identifier): Likewise.
2396 (dump_ada_macros): Adjust call to to_ada_name.
2397 (struct overloaded_name_hash): New type.
2398 (struct overloaded_name_hasher): Likewise.
2399 (overloaded_names): New hash table.
2400 (compute_overloading_index): New function.
2401 (dump_ada_decl_name): Call it and pass the result to
2402 pp_ada_tree_identifier.
2403 (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
2404 (dump_ada_function_declaration): Likewise.
2405 (dump_generic_ada_node): Likewise.
2406 (print_constructor): Likewise.
2407 (print_destructor): Likewise.
2408 (dump_ada_specs): Delete overloaded_names table.
2409
79310774
EB
24102017-09-29 Eric Botcazou <ebotcazou@adacore.com>
2411
2412 * c-ada-spec.c (max_ada_macros): Move around.
2413 (store_ada_macro_index): Likewise.
2414 (source_file): Rename into...
2415 (macro_source_file): ...this.
2416 (count_ada_macro): Move around.
2417 (store_ada_macro): Likewise.
2418 (compare_macro): Likewise.
2419 (print_ada_macros): Merge in...
2420 (dump_ada_macros): ...this.
2421 (source_file_base): Rename into...
2422 (current_source_file): ...this.
2423 (print_comment): Move around.
2424 (dump_ada_nodes): Call dump_ada_declaration directly.
2425 (struct with): Change type of limited field to bool.
2426 (append_withs): Change type of limited_access parameter to bool.
2427 (pp_ada_tree_identifie): Likewise.
2428 (dump_ada_decl_nam): Likewise.
2429 (dump_generic_ada_node): Likewise. Do not print the return type.
2430 (to_ada_name): Change type of space_found parameter to bool.
2431 (dump_ada_function_declaration): Return void and change type of
2432 parameters to bool. Also print the return type for a function.
2433 (print_ada_methods): Rename into...
2434 (dump_ada_methods): ...this.
2435 (print_ada_declaration): Rename into ...
2436 (dump_ada_declaration): ...this. Do not print the return type.
2437 (print_ada_struct_decl): Rename into...
2438 (dump_ada_struct_decl): ...this.
2439
7d386d45
JJ
24402017-09-29 Jakub Jelinek <jakub@redhat.com>
2441
2442 * c-attribs.c (handle_packed_attribute): Test DECL_C_BIT_FIELD
2443 rather than DECL_INITIAL.
2444 (common_handle_aligned_attribute): Likewise.
2445
ab20d992 24462017-09-20 Alexandre Oliva <aoliva@redhat.com>
9ed32e27
AO
2447
2448 * c.opt (gen-decls): Add RejectNegative.
2449
026a79f7
AS
24502017-09-15 Andrew Sutton <andrew.n.sutton@gmail.com>
2451 Jakub Jelinek <jakub@redhat.com>
2452
2453 Add support for -std=c++2a.
2454 * c-common.h (cxx_dialect): Add cxx2a as a dialect.
2455 * opt.c: Add options for -std=c++2a and -std=gnu++2a.
2456 * c-opts.c (set_std_cxx2a): New.
2457 (c_common_handle_option): Set options when -std=c++2a is enabled.
2458 (c_common_post_options): Adjust comments.
2459 (set_std_cxx14, set_std_cxx17): Likewise.
2460
4a8ca690
EB
24612017-09-15 Eric Botcazou <ebotcazou@adacore.com>
2462
2463 * c-pragma.c (handle_pragma_scalar_storage_order): Expand on error
2464 message for non-uniform endianness and issue a warning in C++.
2465
7b936140
JJ
24662017-09-15 Jakub Jelinek <jakub@redhat.com>
2467
2468 * c.opt (Wc++1z-compat): Change from option to undocumented alias.
2469 (Wc++17-compat): Change from undocumented alias to option.
2470 (Wnoexcept-type): Enable by Wc++17-compat instead of Wc++1z-compat,
2471 change C++1z to C++17 in description.
2472 (std=c++1z, std=gnu++1z): Change from option to undocumented
2473 deprecated alias.
2474 (std=c++17, std=gnu++17): Change from undocumented alias to option.
2475 Adjust description.
2476 * c-common.h (enum cxx_dialect): Rename cxx1z to cxx17.
2477 * c-opts.c (set_std_cxx1z): Rename to ...
2478 (set_std_cxx17): ... this.
2479 (c_common_handle_option): Rename OPT_std_c__1z to OPT_std_c__17
2480 and OPT_std_gnu__1z to OPT_std_gnu__17. Adjust set_std_cxx1z
7365279f 2481 caller.
7b936140
JJ
2482 (c_common_post_options): Use cxx17 instead of cxx1z. Adjust
2483 comments.
2484
12263f13
L
24852017-09-12 H.J. Lu <hongjiu.lu@intel.com>
2486
2487 * c-attribs.c (common_handle_aligned_attribute): Don't warn
2488 function alignment if warn_if_not_aligned_p is true.
2489
6836632e
NS
24902017-09-12 Nathan Sidwell <nathan@acm.org>
2491
2492 * c-common.c (field_decl_cmp, resort_data, resort_field_decl_cmp,
2493 resort_sorted_fields): Move to c/c-decl.c.
2494 * c-common.h (field_decl_cmp, resort_sorted_fields): Delete.
2495 (struct sorted_fields_type): Move to c/c-lang.h.
2496
019bf9ad
JW
24972017-09-09 Jonathan Wakely <jwakely@redhat.com>
2498
2499 PR c++/81852
2500 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_threadsafe_static_init.
2501
bc7fe952
MP
25022017-09-04 Marek Polacek <polacek@redhat.com>
2503
2504 PR c/81783
2505 * c-warn.c (warn_tautological_bitwise_comparison): New function.
2506 (warn_tautological_cmp): Call it.
2507
ab20d992 25082017-09-01 Boris Kolpackov <boris@codesynthesis.com>
de7c2c6a
BK
2509
2510 * c-opts.c (c_common_finish): Write dependency information even if
2511 there are errors.
2512
d2e05fcb
JJ
25132017-09-01 Jakub Jelinek <jakub@redhat.com>
2514
2515 PR c/81887
2516 * c-pragma.c (omp_pragmas): Move "ordered" entry from here to ...
2517 (omp_pragmas_simd): ... here.
2518 * c-omp.c (c_finish_omp_ordered): If clauses isn't simd clause alone,
2519 create new clauses list containing just simd clause.
2520
18e2a8b8
RS
25212017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2522 Alan Hayward <alan.hayward@arm.com>
2523 David Sherwood <david.sherwood@arm.com>
2524
2525 * c-attribs.c (vector_mode_valid_p) Fold GET_MODE_INNER call
2526 into scalar_mode_supported_p call.
2527 (handle_mode_attribute): Update call to scalar_mode_supported_p.
2528
16d22000
RS
25292017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2530 Alan Hayward <alan.hayward@arm.com>
2531 David Sherwood <david.sherwood@arm.com>
2532
2533 * c-common.c (c_common_fixed_point_type_for_size): Use opt_scalar_mode
2534 for the mode iterator.
2535
b397965c
RS
25362017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2537 Alan Hayward <alan.hayward@arm.com>
2538 David Sherwood <david.sherwood@arm.com>
2539
2540 * c-lex.c (interpret_fixed): Use SCALAR_TYPE_MODE.
2541 * c-common.c (c_build_vec_perm_expr): Likewise.
2542
357b7604
RS
25432017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2544 Alan Hayward <alan.hayward@arm.com>
2545 David Sherwood <david.sherwood@arm.com>
2546
2547 * c-common.c (c_common_type_for_mode): Use as_a <scalar_int_mode>.
2548
e05c94ba
RS
25492017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2550 Alan Hayward <alan.hayward@arm.com>
2551 David Sherwood <david.sherwood@arm.com>
2552
2553 * c-attribs.c (handle_mode_attribute): Check for a scalar_int_mode
2554 before calling targetm.addr_space.valid_pointer_mode.
2555
5c20c4af
RS
25562017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2557 Alan Hayward <alan.hayward@arm.com>
2558 David Sherwood <david.sherwood@arm.com>
2559
2560 * c-cppbuiltin.c (c_cpp_builtins): Use opt_scalar_float_mode.
2561
c94843d2 25622017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
92a285c1
ML
2563 Alan Hayward <alan.hayward@arm.com>
2564 David Sherwood <david.sherwood@arm.com>
c94843d2
RS
2565
2566 * c-common.c (c_common_fixed_point_type_for_size): Use new mode
2567 iterators.
2568 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2569
4e10a5a7
RS
25702017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
2571 Alan Hayward <alan.hayward@arm.com>
2572 David Sherwood <david.sherwood@arm.com>
2573
2574 * c-cppbuiltin.c (mode_has_fma): Prefix mode names with E_ in
2575 case statements.
2576
130fcab0
ML
25772017-08-29 Martin Liska <mliska@suse.cz>
2578
2579 PR other/39851
2580 * c-common.c (parse_optimize_options): Add argument to function
2581 call.
2582 * c-pragma.c (handle_pragma_diagnostic): Likewise.
2583
14e18d71
DM
25842017-08-24 David Malcolm <dmalcolm@redhat.com>
2585
2586 * c-lex.c (interpret_float): Use token location
2587 when building an EXCESS_PRECISION_EXPR.
2588
2f687306
DM
25892017-08-21 David Malcolm <dmalcolm@redhat.com>
2590
2591 * c-common.c (check_function_arguments): Add "arglogs" param; pass
2592 it to check_function_format.
2593 * c-common.h (check_function_arguments): Add vec<location_t> *
2594 param.
2595 (check_function_format): Likewise.
2596 * c-format.c (struct format_check_context): Add field "arglocs".
2597 (check_function_format): Add param "arglocs"; pass it to
2598 check_format_info.
ab20d992 2599 (check_format_info): Add param "arglocs"; use it to initialize
2f687306
DM
2600 new field of format_ctx.
2601 (check_format_arg): Pass format_ctx->arglocs to new param of
2602 check_format_info_main.
2603 (class argument_parser): New field "arglocs".
2604 (argument_parser::argument_parser): Add "arglocs_" param and use
2605 it to initialize new field.
2606 (argument_parser::check_argument_type): Pass new arglocs field to
2607 check_format_types.
2608 (check_format_info_main): Add param "arglocs", and use it when
2609 constructing arg_parser.
2610 (check_format_types): Add param "arglocs"; use it if non-NULL when
2611 !EXPR_HAS_LOCATION (cur_param) to get at location information.
2612
00aa1fa2
L
26132017-08-18 H.J. Lu <hongjiu.lu@intel.com>
2614
2615 PR c/53037
2616 * c-attribs.c (handle_warn_if_not_aligned_attribute): New.
2617 (c_common_attribute_table): Add warn_if_not_aligned.
2618 (handle_aligned_attribute): Renamed to ...
2619 (common_handle_aligned_attribute): Remove argument, name, and add
2620 argument, warn_if_not_aligned. Handle warn_if_not_aligned.
2621 (handle_aligned_attribute): New.
2622 * c.opt: Add -Wif-not-aligned and -Wpacked-not-aligned.
2623
27be025d
MS
26242017-08-14 Martin Sebor <msebor@redhat.com>
2625
2626 PR c/81117
2627 * c-attribs.c (c_common_attribute_table): Add nonstring entry.
2628 (handle_nonstring_attribute): New function.
2629
da67acb9
MS
26302017-08-14 Martin Sebor <msebor@redhat.com>
2631
2632 PR c/81117
2633 * c-format.h (T89_G): New macro.
2634 * c-format.c (local_gcall_ptr_node): New variable.
2635 (init_dynamic_diag_info): Initialize it.
2636
a8b522b4
ML
26372017-08-11 Martin Liska <mliska@suse.cz>
2638
2639 * c-opts.c (c_common_post_options): Replace ASM_OUTPUT_DEF with
2640 TARGET_SUPPORTS_ALIASES.
2641
32129a17
DM
26422017-08-10 David Malcolm <dmalcolm@redhat.com>
2643
2644 * c-common.c (c_parse_error): Add rich_location * param, using it
2645 rather implicitly using input_location.
2646 * c-common.h (c_parse_error): Add rich_location * param.
2647
30af3a2b
MP
26482017-08-09 Marek Polacek <polacek@redhat.com>
2649
2650 * c-common.c (pointer_int_sum): Use true/false instead of 1/0.
2651 (c_common_truthvalue_conversion): Likewise.
2652 * c-omp.c (c_finish_omp_atomic): Likewise.
2653 * c-common.h (build_binary_op): Update declaration.
2654
314e6352
ML
26552017-08-08 Martin Liska <mliska@suse.cz>
2656
2657 * c-ada-spec.c: Include header files.
2658 * c-ubsan.c: Likewise.
2659 * c-warn.c: Likewise.
2660
56b5041c
JJ
26612017-08-07 Jakub Jelinek <jakub@redhat.com>
2662
2663 PR c/69389
2664 * c-omp.c (c_finish_omp_atomic): Handle atomics on bitfields.
2665
db440138
EB
26662017-08-07 Eric Botcazou <ebotcazou@adacore.com>
2667
2668 * c-ada-spec.c (has_nontrivial_methods): Test for FUNCTION_DECL.
2669 (print_ada_methods): Likewise.
2670 (print_ada_declaration): Likewise.
2671
577eec56
ML
26722017-08-07 Martin Liska <mliska@suse.cz>
2673
2674 * array-notation-common.c: Add new includes.
2675 * c-format.c( handle_format_attribute): Canonicalize a format
2676 function name.
2677 * c-lex.c (c_common_has_attribute): Canonicalize name of an
2678 attribute.
2679 * c-pretty-print.c: Add new include.
2680
b854df3c
EB
26812017-08-05 Eric Botcazou <ebotcazou@adacore.com>
2682
2683 * c-ada-spec.c (has_static_fields): Look only into variables.
2684 (print_constructor): Add TYPE parameter and use it for the name.
2685 (print_destructor): Likewise.
2686 (print_ada_declaration): Adjust to new constructor/destructor names.
2687 Adjust calls to print_constructor and print_destructor.
2688 (print_ada_struct_decl): Do not test TREE_STATIC on FIELD_DECL.
2689 Look only into variables in the final loop.
2690
9f2cb25e
EB
26912017-08-01 Eric Botcazou <ebotcazou@adacore.com>
2692
2693 * c-ada-spec.c (has_static_fields): Look only into fields.
2694 (dump_generic_ada_node): Small tweak.
2695 (dump_nested_types): Look only into fields.
2696 (print_ada_declaration): Look only into methods. Small tweak.
2697 (print_ada_struct_decl): Look only into fields. Use DECL_VIRTUAL_P.
2698
f4bcd9eb
EB
26992017-08-01 Eric Botcazou <ebotcazou@adacore.com>
2700
2701 * c-ada-spec.c (print_generic_ada_decl): Pass correctly-typed constant.
2702 (dump_ada_function_declaration): Likewise.
2703 (dump_generic_ada_node): Likewise.
2704 (print_ada_declaration): Add support for const-qualified variables.
2705
f34ebeb2
ML
27062017-07-31 Martin Liska <mliska@suse.cz>
2707
2708 PR sanitize/81530
2709 * c-ubsan.c (ubsan_maybe_instrument_array_ref):
2710 Guard condition with flag_sanitize_p also with current_function_decl
2711 non-null equality.
2712 (ubsan_maybe_instrument_reference_or_call): Likewise.
2713
218e5d04
UB
27142017-07-30 Uros Bizjak <ubizjak@gmail.com>
2715
2716 * c-format.c (asm_fprintf_char_table): Add 'z' to format_chars.
2717
942047f2
EB
27182017-07-29 Eric Botcazou <ebotcazou@adacore.com>
2719
2720 * c-ada-spec.c (dump_generic_ada_node): Take into account signedness
2721 for enumeral types.
2722 (print_ada_declaration): Add missing guard for record types.
2723
a40ff0ae
JJ
27242017-07-27 Jakub Jelinek <jakub@redhat.com>
2725
2726 PR c/45784
2727 * c-omp.c (c_finish_omp_for): If the condition is wrapped in
2728 rhs of COMPOUND_EXPR(s), skip them and readd their lhs into
2729 new COMPOUND_EXPRs around the rhs of the comparison.
2730
06bd22f6
MP
27312017-07-27 Marek Polacek <polacek@redhat.com>
2732
2733 PR c/81417
2734 * c-warn.c (warn_for_sign_compare): Tweak the warning message. Print
2735 the types.
2736
036ea399
JJ
27372017-07-27 Jakub Jelinek <jakub@redhat.com>
2738
2739 * c-attribs.c (c_common_attribute_table): Add noipa attribute.
2740 (handle_noipa_attribute): New function.
2741
417ca011
TD
27422017-07-07 Torsten Duwe <duwe@suse.de>
2743
2744 * c-attribs.c (c_common_attribute_table): Add entry for
2745 "patchable_function_entry".
2746
5aaa8fb4
NS
27472017-07-20 Nathan Sidwell <nathan@acm.org>
2748
2749 Remove TYPE_METHODS.
2750 * c-ada-spec.c (is_tagged_type, has_nontrivial_methods,
2751 dump_ada_template, print_ada_methods,
2752 print_ada_declaration): Member fns are on TYPE_FIELDS.
2753
ff22eb12
NS
27542017-07-18 Nathan Sidwell <nathan@acm.org>
2755
2756 * c-warn.c (warn_for_memset): Use TYPE_{MIN,MAX}_VALUE.
2757
eea77d1f
DM
27582017-07-14 David Malcolm <dmalcolm@redhat.com>
2759
2760 * c-common.c (try_to_locate_new_include_insertion_point): New
2761 function.
2762 (per_file_includes_t): New typedef.
2763 (added_includes_t): New typedef.
2764 (added_includes): New variable.
2765 (maybe_add_include_fixit): New function.
2766 * c-common.h (maybe_add_include_fixit): New decl.
2767
281ac396
MS
27682017-07-10 Martin Sebor <msebor@redhat.com>
2769
2770 PR other/81345
2771 * c.opt (-Wstringop-overflow): Set defaults in LangEnabledBy.
2772
b6f43128
DM
27732017-07-06 David Malcolm <dmalcolm@redhat.com>
2774
2775 * c-common.c (selftest::c_family_tests): New.
2776 * c-common.h (selftest::run_c_tests): Move decl to c/c-lang.h.
2777 (selftest::c_family_tests): New decl.
2778
efbf55b0
MP
27792017-07-04 Marek Polacek <polacek@redhat.com>
2780
2781 PR c/81231
2782 * c-common.c (sync_resolve_size): Give error for pointers to incomplete
2783 types.
2784
6c86bd88
MP
27852017-07-04 Marek Polacek <polacek@redhat.com>
2786
2787 * c-warn.c (warn_if_unused_value): Remove WITH_CLEANUP_EXPR handling.
2788
17a7218b
ML
27892017-06-28 Martin Liska <mliska@suse.cz>
2790
2791 PR ipa/81128
2792 * c-attribs.c (handle_alias_ifunc_attribute): Append ifunc alias
2793 to a function declaration.
2794
63010089
ML
27952017-06-28 Martin Liska <mliska@suse.cz>
2796
2797 PR driver/79659
2798 * c.opt: Add IntegerRange to various options.
2799
3e2becc4
MP
28002017-06-26 Marek Polacek <polacek@redhat.com>
2801
2802 PR c/80116
2803 * c-common.h (warn_for_multistatement_macros): Declare.
2804 * c-warn.c: Include "c-family/c-indentation.h".
2805 (warn_for_multistatement_macros): New function.
2806 * c.opt (Wmultistatement-macros): New option.
2807 * c-indentation.c (guard_tinfo_to_string): No longer static.
2808 Change the parameter type to "enum rid". Handle RID_SWITCH.
2809 * c-indentation.h (guard_tinfo_to_string): Declare.
2810
2db9b7cd
MG
28112017-06-23 Marc Glisse <marc.glisse@inria.fr>
2812
2813 * c-common.c (c_common_nodes_and_builtins): Use builtin_structptr_types.
2814
c3684b7b
MS
28152017-06-15 Martin Sebor <msebor@redhat.com>
2816
2817 PR c++/80560
2818 * c.opt (-Wclass-memaccess): New option.
2819
e72c4afd
BK
28202017-06-14 Boris Kolpackov <boris@codesynthesis.com>
2821
2822 * c-opts.c (c_common_finish): Handle '-' special value to -MF.
2823
8a516588
MP
28242017-06-13 Marek Polacek <polacek@redhat.com>
2825
2826 PR objc/80949
2827 * c-warn.c (do_warn_duplicated_branches): Return if any of the
2828 branches is null.
2829
45b2222a
ML
28302017-06-13 Martin Liska <mliska@suse.cz>
2831
2832 PR sanitize/78204
2833 * c-attribs.c (add_no_sanitize_value): New function.
2834 (handle_no_sanitize_attribute): Likewise.
2835 (handle_no_sanitize_address_attribute): Use the function.
2836 (handle_no_sanitize_thread_attribute): New function.
2837 (handle_no_address_safety_analysis_attribute): Use
2838 add_no_sanitize_value.
2839 (handle_no_sanitize_undefined_attribute): Likewise.
2840 * c-common.h: Declare new functions.
2841 * c-ubsan.c (ubsan_instrument_division): Use sanitize_flags_p.
2842 (ubsan_instrument_shift): Likewise.
2843 (ubsan_instrument_bounds): Likewise.
2844 (ubsan_maybe_instrument_array_ref): Likewise.
2845 (ubsan_maybe_instrument_reference_or_call): Likewise.
2846
a01f151f
JM
28472017-06-11 Jason Merrill <jason@redhat.com>
2848
2849 * c-ada-spec.c, c-pragma.c: Use id_equal.
2850
3de4ac6d
MP
28512017-06-04 Marek Polacek <polacek@redhat.com>
2852
2853 PR c/80919
2854 * c-format.c (matching_type_p): Return false if any of the types
2855 requires structural equality.
2856
2474f48f
MS
28572017-06-02 Martin Sebor <msebor@redhat.com>
2858
2859 PR c/80892
2860 * c-warn.c (conversion_warning): Use -Wconversion for integer
2861 conversion and -Wfloat-conversion for floating one.
2862
40ffd95f
BE
28632017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2864
2865 * c.opt (Wsizeof-pointer-div): New warning option.
2866
3fa4634c
VR
28672017-06-01 Volker Reichelt <v.reichelt@netcologne.de>
2868
2869 * c.opt (Wcatch-value): New shortcut for Wcatch-value=1.
2870 (Wcatch-value=1): Enable by -Wall.
2871
f012c8ef
DM
28722017-05-30 David Malcolm <dmalcolm@redhat.com>
2873
2874 * c-format.c (gcc_cxxdiag_char_table): Add 'H' and 'I' to
2875 format_chars.
2876 * c.opt (fdiagnostics-show-template-tree): New option.
2877 (felide-type): New option.
2878
63dbcd13
VR
28792017-05-25 Volker Reichelt <v.reichelt@netcologne.de>
2880
2881 * c.opt (Wcatch-value=): New C++ warning flag.
2882
be136b5c
NS
28832017-05-24 Nathan Sidwell <nathan@acm.org>
2884
2885 * c=common.c (field_decl_cmp, resort_field_decl_cmp): Adjust T
2886 const casts to avoid warning.
2887
3cd211af
MS
28882017-05-24 Martin Sebor <msebor@redhat.com>
2889
2890 PR c/80731
2891 * c-common.h (unsafe_conversion_p): Add a function argument.
2892 * c-common.c (unsafe_conversion_p): Same.
2893 Add type names and values to diagnostics.
2894 (scalar_to_vector): Adjust.
2895 * c-warn.c (constant_expression_error): Add a function argument.
2896 Add type names and values to diagnostics.
2897 (conversion_warning): Add a function argument.
2898 Add type names and values to diagnostics.
2899 (warnings_for_convert_and_check): Same.
2900
1ff7be5a
JM
29012017-05-19 Jason Merrill <jason@redhat.com>
2902
2903 * c-warn.c (match_case_to_enum_1): Don't warn about enums with no
2904 enumerators.
2905
ff502317
BE
29062017-05-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
2907
2908 * c-format.c (locus): Move out of function scope,
2909 add GTY attribute.
2910
2a8a8d7b
NS
29112017-05-19 Nathan Sidwell <nathan@acm.org>
2912
2913 * c-opts.c (class_dump_file, class_dump_flags): Delete.
2914 (c_common_parse_file): Remove class dump handling.
2915 (get_dump_info): Likewise.
2916
39aac208
RB
29172017-05-19 Richard Biener <rguenther@suse.de>
2918
2919 PR c++/80593
2920 * c-warn.c (strict_aliasing_warning): Do not warn for accesses
2921 to alias-set zero memory.
2922
6ecd2339
BE
29232017-05-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
2924
2925 * c-format.c (local_tree_type_node): Add GTY attribute.
2926
6574d78e
MP
29272017-05-18 Marek Polacek <polacek@redhat.com>
2928
2929 * c-common.c (c_common_type_for_size): Use NULL_TREE instead of 0.
2930 (c_common_fixed_point_type_for_size): Likewise.
2931 (c_common_type_for_mode): Likewise.
2932 (shorten_compare): Likewise.
2933 (c_promoting_integer_type_p): Use false/true instead of 0/1.
2934 * c-pragma.c (maybe_apply_renaming_pragma): Use NULL_TREE instead of 0.
2935
e3455240
MP
29362017-05-18 Marek Polacek <polacek@redhat.com>
2937
2938 * c-common.c (self_promoting_args_p): Change the return type to bool.
2939 Use false/true instead of 0/1.
2940 * c-common.h (self_promoting_args_p): Update.
2941
3fa8871b
MP
29422017-05-17 Marek Polacek <polacek@redhat.com>
2943
2944 * c-common.c: Use NULL_TREE instead of 0 where appropriate.
2945 * c-warn.c: Likewise.
2946
b42cc3ca
VV
29472017-05-17 Ville Voutilainen <ville.voutilainen@gmail.com>
2948
2949 Implement new C++ intrinsics __is_assignable and __is_constructible.
2950 * c-common.c (__is_assignable, __is_constructible): New.
2951 * c-common.h (RID_IS_ASSIGNABLE, RID_IS_CONSTRUCTIBLE): Likewise.
2952
1a817418
ML
29532017-05-17 Martin Liska <mliska@suse.cz>
2954
2955 * c-common.h: Introduce dump_flags_t type and
2956 use it instead of int type.
2957 * c-gimplify.c (c_genericize): Likewise.
2958 * c-opts.c: Likewise.
2959
b2fa0a8b
MP
29602017-05-17 Marek Polacek <polacek@redhat.com>
2961
2962 * c-common.c (c_save_expr): Remove.
2963 (c_common_truthvalue_conversion): Remove a call to c_save_expr.
2964 * c-common.h (c_save_expr): Remove declaration.
2965
31c2d57d
VR
29662017-05-09 Volker Reichelt <v.reichelt@netcologne.de>
2967
2968 PR c/35441
2969 * c-pretty-print.c (c_pretty_printer::expression): Handle MAX_EXPR,
2970 MIN_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, LROTATE_EXPR, RROTATE_EXPR.
2971 (c_pretty_printer::postfix_expression): Handle MAX_EXPR, MIN_EXPR.
2972 (c_pretty_printer::multiplicative_expression): Handle EXACT_DIV_EXPR,
2973 RDIV_EXPR.
2974 (pp_c_shift_expression): Handle LROTATE_EXPR, RROTATE_EXPR.
2975
684f84de
MP
29762017-05-09 Marek Polacek <polacek@redhat.com>
2977
2978 PR c/80525
2979 * c-warn.c (unwrap_c_maybe_const): New.
2980 (warn_logical_operator): Call it.
2981
641da50a
NS
29822017-05-09 Nathan Sidwell <nathan@acm.org>
2983
2984 * c-common.c (c_register_builtin_type): Use pushdecl lang_hook.
2985 * c-common.h (pushdecl_top_level, pushdecl): Don't declare here.
2986
631238ac
MS
29872017-05-08 Martin Sebor <msebor@redhat.com>
2988
2989 PR translation/80280
2990 * c-format.h (struct format_flag_spec): Add new member.
2991 (T89_T): New macro.
2992 * c-format.c (local_tree_type_node): New global.
2993 (printf_flag_specs, asm_fprintf_flag_spec): Initialize new data.
2994 (gcc_diag_flag_specs, scanf_flag_specs, strftime_flag_specs): Ditto.
2995 (strfmon_flag_specs): Likewise.
2996 (gcc_diag_char_table, gcc_cdiag_char_table): Split up specifiers
2997 with distinct quoting properties.
2998 (gcc_tdiag_char_table, gcc_cxxdiag_char_table): Same.
2999 (flag_chars_t::validate): Add argument and handle bad quoting.
3000 (check_format_info_main): Handle quoting problems.
3001 (init_dynamic_diag_info): Simplify.
3002
49f0c04c
JM
30032017-05-08 Jason Merrill <jason@redhat.com>
3004
3005 * c-opts.c (c_common_post_options): Update defaults for
3006 flag_abi_version and flag_abi_compat_version.
3007
56d35585
DM
30082017-05-05 David Malcolm <dmalcolm@redhat.com>
3009
3010 * c-common.c (c_cpp_error): Replace report_diagnostic
3011 with diagnostic_report_diagnostic.
3012
0f2c4a8f
MS
30132017-05-04 Martin Sebor <msebor@redhat.com>
3014
3015 PR translation/80280
3016 * c-attribs.c (handle_alias_ifunc_attribute): Quote a %D directive.
3017 (handle_weakref_attribute): Same.
3018
6fe63fb4
NS
30192017-05-03 Nathan Sidwell <nathan@acm.org>
3020
3021 Canonicalize canonical type hashing
3022 * c-common.c (complete_array_type): Use type_hash_canon.
3023
815d9cc6
XR
30242017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
3025
92a285c1 3026 PR c++/80038
815d9cc6
XR
3027 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): Remove
3028 prototype.
3029 (cilk_install_body_pedigree_operations): Likewise.
3030 * cilk.c (cilk_set_spawn_marker): Mark functions that should be
3031 detatched.
3032 (cilk_gimplify_call_params_in_spawned_fn): Remove.
3033 (cilk_install_body_pedigree_operations): Likewise.
3034 (gimplify_cilk_spawn): Add EXPR_STMT and CLEANUP_POINT_EXPR
3035 unwrapping.
3036
f8a36447
JJ
30372017-04-27 Jakub Jelinek <jakub@redhat.com>
3038
3039 PR c++/80534
3040 * c-common.c (complete_array_type): Only hash TYPE_TYPELESS_STORAGE
3041 flag on non-aggregate element types.
3042
7c145456
BE
30432017-04-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
3044
3045 * c-common.c (c_type_hasher, type_hash_table): Remove.
3046 (c_common_get_alias_set): Remove unreachable code.
3047 * c-opts.c (c_common_post_options): Make sure cc1 takes only one file.
3048
c3cbcd45
VR
30492017-04-20 Volker Reichelt <v.reichelt@netcologne.de>
3050
3051 * c.opt (Wextra-semi): New C++ warning flag.
3052
8a59d466
JJ
30532017-04-20 Jakub Jelinek <jakub@redhat.com>
3054
3055 PR middle-end/80423
3056 * c-common.c (complete_array_type): Preserve TYPE_TYPELESS_STORAGE.
3057
8487c9a5
JJ
30582017-04-18 Jakub Jelinek <jakub@redhat.com>
3059
3060 PR middle-end/79788
3061 PR middle-end/80375
3062 * c-common.c (c_common_type_for_mode): Don't handle
3063 widest_*_literal_type_node here.
3064 c_common_signed_or_unsigned_type): Likewise.
3065 (c_common_nodes_and_builtins): Set widest_*_literal_type_node
3066 to *intTI_type_node or *intDI_type_node depending on whether
3067 TImode is supported by the target or not.
3068
3ee0fb02
ML
30692017-04-10 Martin Liska <mliska@suse.cz>
3070
3071 PR sanitizer/80350
3072 * c-ubsan.c (ubsan_instrument_shift): Evaluate RHS before
3073 doing an UBSAN check.
3074
5764ee3c
JW
30752017-04-03 Jonathan Wakely <jwakely@redhat.com>
3076
3077 * c-warn.c (do_warn_double_promotion): Fix typo in comment.
3078
6f3af356
JJ
30792017-03-31 Jakub Jelinek <jakub@redhat.com>
3080
3081 PR c++/79572
3082 * c-ubsan.h (ubsan_maybe_instrument_reference): Change argument to
3083 tree *.
3084 * c-ubsan.c (ubsan_maybe_instrument_reference): Likewise. Handle
3085 not just NOP_EXPR to REFERENCE_TYPE, but also INTEGER_CST with
3086 REFERENCE_TYPE.
3087
f6a7a9d5
DM
30882017-03-31 David Malcolm <dmalcolm@redhat.com>
3089
3090 PR documentation/78732
3091 * c.opt (Wendif-labels): Fix description to refer to
3092 #else rather than #elif.
3093
af88f557
JJ
30942017-03-31 Jakub Jelinek <jakub@redhat.com>
3095
3096 PR libstdc++/80251
3097 * c-common.h (enum rid): Add RID_IS_AGGREGATE.
3098 * c-common.c (c_common_reswords): Add __is_aggregate trait.
3099
a9e4a1a5
JJ
31002017-03-27 Jakub Jelinek <jakub@redhat.com>
3101
3102 PR middle-end/80162
3103 * c-common.c (c_common_mark_addressable_vec): Don't set
3104 TREE_ADDRESSABLE on DECL_HARD_REGISTER.
3105
3f01b620
MS
31062017-03-21 Martin Sebor <msebor@redhat.com>
3107
3108 PR c++/79548
3109 * c-common.c (set_underlying_type): Mark type used only when
3110 original del is declared unused.
3111
2f6f187a
DM
31122017-03-10 David Malcolm <dmalcolm@redhat.com>
3113
3114 PR translation/79848
3115 * c-format.c (check_format_string): Simplify uses of "%<%s%>" to
3116 "%qs".
3117
a02fa805
DM
31182017-03-10 David Malcolm <dmalcolm@redhat.com>
3119
3120 PR c/79921
3121 * c-indentation.c (warn_for_misleading_indentation): Remove parens
3122 from inform's message, so that xgettext can locate it.
3123
822a132c
MP
31242017-03-09 Marek Polacek <polacek@redhat.com>
3125
3126 PR c++/79962
3127 PR c++/79984
3128 * c-attribs.c (handle_nonnull_attribute): Save the result of default
3129 conversion to the attribute list.
3130
bba81f1c
ML
31312017-03-09 Martin Liska <mliska@suse.cz>
3132
3133 * c-ada-spec.c (macro_length): Increment value instead of a pointer.
3134
108154ff
JM
31352017-03-03 Jason Merrill <jason@redhat.com>
3136
3137 * c.opt (Wnoexcept-type): New.
3138
eb0e7c34
RB
31392017-03-02 Richard Biener <rguenther@suse.de>
3140
3141 PR c/79756
3142 * c-common.c (c_common_mark_addressable_vec): Look through
3143 C_MAYBE_CONST_EXPR.
3144
9453ba0a
ML
31452017-02-28 Martin Liska <mliska@suse.cz>
3146
3147 * c.opt: Replace space with tabular for options of <number>
3148 type.
3149
6a825afe
ML
31502017-02-28 Martin Liska <mliska@suse.cz>
3151
3152 * c.opt: Fix --help=option -Q for options which are of
3153 an enum type.
3154
4227c9ad
JJ
31552017-02-24 Jakub Jelinek <jakub@redhat.com>
3156
3157 PR c++/79588
3158 * c-common.c (check_function_restrict): New function.
3159 (check_function_arguments): Add FNDECL argument. Call
3160 check_function_restrict if -Wrestrict.
3161 * c-warn.c (warn_for_restrict): Remove ARGS argument, add ARGARRAY
3162 and NARGS. Use auto_vec for ARG_POSITIONS, simplify.
3163 * c-common.h (check_function_arguments): Add FNDECL argument.
3164 (warn_for_restrict): Remove ARGS argument, add ARGARRAY and NARGS.
3165
59909673
EB
31662017-02-24 Eric Botcazou <ebotcazou@adacore.com>
3167
3168 * c-ada-spec.c (dump_ada_function_declaration): Add comment about the
3169 treatment of parameters with pointer-to-tagged type and tidy up.
3170 (print_ada_methods): Remove the special treatment of C++ static member
3171 functions.
3172
54dcd526
ML
31732017-02-22 Martin Liska <mliska@suse.cz>
3174
3175 * c.opt: Replace inequality signs with square brackets
3176 for -Wnornalized.
3177
00bc9de3
JJ
31782017-02-21 Jakub Jelinek <jakub@redhat.com>
3179
3180 PR c++/79641
3181 * c-attribs.c (handle_mode_attribute): Use build_qualified_type to
3182 preserve quals.
3183
97fcf744
JM
31842017-02-17 Joseph Myers <joseph@codesourcery.com>
3185
3186 * c-cppbuiltin.c (builtin_define_float_constants): Define
3187 __DECIMAL_DIG__ to the value for long double.
3188
c7545f1c
MP
31892017-02-15 Marek Polacek <polacek@redhat.com>
3190
3191 PR c/79515
3192 * c-warn.c (do_warn_double_promotion): Don't warn if an invalid
3193 conversion has occured.
3194
c2e84327
DM
31952017-01-24 David Malcolm <dmalcolm@redhat.com>
3196
3197 * c-common.c (c_common_reswords): Add "__RTL".
3198 * c-common.h (enum rid): Add RID_RTL.
3199
2ebd93e1
MP
32002017-01-20 Marek Polacek <polacek@redhat.com>
3201
3202 PR c/64279
3203 * c-common.h (do_warn_duplicated_branches_r): Declare.
3204 * c-gimplify.c (c_genericize): Walk the function tree calling
3205 do_warn_duplicated_branches_r.
3206 * c-warn.c (expr_from_macro_expansion_r): New.
3207 (do_warn_duplicated_branches): New.
3208 (do_warn_duplicated_branches_r): New.
3209 * c.opt (Wduplicated-branches): New option.
3210
0d80ab91
DM
32112017-01-17 David Malcolm <dmalcolm@redhat.com>
3212
3213 PR c++/71497
3214 * c-indentation.c (warn_for_misleading_indentation): Use the past
3215 subjunctive in the note.
3216
7f991c36
AH
32172017-01-17 Aldy Hernandez <aldyh@redhat.com>
3218
3219 PR c/79116
3220 * array-notation-common.c (cilkplus_extract_an_triplets): Convert
3221 start type to integer_type.
3222
1c70261c
JJ
32232017-01-16 Jakub Jelinek <jakub@redhat.com>
3224
3225 PR driver/49726
3226 * c.opt (gen-decls): Add Driver flag.
3227
1ddca3f3
PC
32282017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
3229
3230 Revert:
3231 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
3232
3233 PR c++/71737
3234 * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
3235
7d2f3f1d
PC
32362017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
3237
3238 PR c++/71737
3239 * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
3240
bce6f760
MS
32412017-01-12 Martin Sebor <msebor@redhat.com>
3242
3243 (-Wformat-overflow): ...to this.
3244
bf5fbf46
MS
32452017-01-11 Martin Sebor <msebor@redhat.com>
3246
3247 PR c/78768
3248 * c.opt (-Walloca-larger-than, -Wformat-length, -Wformat-truncation):
3249 Also enable for LTO.
3250
e363df3f
JM
32512017-01-10 Jason Merrill <jason@redhat.com>
3252
3253 Implement P0195R2, C++17 variadic using.
3254 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_variadic_using.
3255
bd2c6270
JJ
32562017-01-09 Jakub Jelinek <jakub@redhat.com>
3257
3258 PR translation/79019
3259 PR translation/79020
3260 * c.opt (Wnormalized=): Fix typo in description.
3261
efcc8d38
MS
32622017-01-08 Martin Sebor <msebor@redhat.com>
3263
3264 PR middle-end/77708
3265 * c.opt (-Wformat-truncation): New option.
3266
ab20d992 32672017-01-06 Alexandre Oliva <aoliva@redhat.com>
435f3f7a
AO
3268
3269 * c-pretty-print.c (pp_c_tree_decl_identifier): Convert 16-bit
3270 value to unsigned short to fit in 4 hex digits without
3271 warnings.
3272
4e89adf9
EB
32732017-01-05 Eric Botcazou <ebotcazou@adacore.com>
3274
3275 * c.opt (fsso-struct): Add 'native' value.
3276
cd445b54
ML
32772017-01-05 Martin Liska <mliska@suse.cz>
3278
3279 PR pch/78970
3280 * c-opts.c (c_common_post_options): Reject '-' filename for a precompiled
3281 header.
3282
a9342885
MP
32832017-01-04 Marek Polacek <polacek@redhat.com>
3284
3285 PR c++/64767
3286 * c.opt (Wpointer-compare): New option.
3287
fc73e60c
JJ
32882017-01-04 Jakub Jelinek <jakub@redhat.com>
3289
3290 PR driver/78957
3291 * c.opt (fsso-struct=): Add RejectNegative.
3292
cbe34bb5
JJ
32932017-01-01 Jakub Jelinek <jakub@redhat.com>
3294
3295 Update copyright years.
3296
d4a6c0ea
ML
32972016-12-29 Martin Liska <mliska@suse.cz>
3298
3299 PR c/78933
3300 * c.opt (strong-eval-order): Add RejectNegative keyword.
3301
67a5ad7c
JM
33022016-12-22 Jason Merrill <jason@redhat.com>
3303
3304 Implement P0522R0, matching of template template arguments.
3305 * c-cppbuiltin.c (c_cpp_builtins): Define
3306 __cpp_template_template_args.
3307
0dba7960
JJ
33082016-12-21 Jakub Jelinek <jakub@redhat.com>
3309
3310 PR bootstrap/78817
3311 * c-common.c (struct nonnull_arg_ctx): New type.
3312 (check_function_nonnull): Return bool instead of void. Use
3313 nonnull_arg_ctx as context rather than just location_t.
3314 (check_nonnull_arg): Adjust for the new context type, set
3315 warned_p to true if a warning has been diagnosed.
3316 (check_function_arguments): Return bool instead of void.
3317 * c-common.h (check_function_arguments): Adjust prototype.
3318
31bfc9b9
JM
33192016-12-21 Jason Merrill <jason@redhat.com>
3320
3321 * c.opt (-fnew-ttp-matching): New flag.
3322 * c-opts.c (c_common_post_options): Default on if -std=c++1z.
3323
629b3d75
MJ
33242016-12-14 Martin Jambor <mjambor@suse.cz>
3325
3326 * c-omp.c: Include omp-general.h instead of omp-low.h.
3327 (c_finish_oacc_wait): Adjusted call to find_omp_clause to use its new
3328 name.
3329
474da67e
MS
33302016-12-14 Martin Sebor <msebor@redhat.com>
3331
3332 PR c/17308
3333 * c-common.c (check_nonnull_arg): Disable when optimization
3334 is enabled.
3335
fe366b87
MP
33362016-12-12 Marek Polacek <polacek@redhat.com>
3337
3338 PR c++/78647
3339 * c-common.c (attribute_fallthrough_p): Return false for
3340 error_mark_node.
3341
8bd9f164
MS
33422016-12-08 Martin Sebor <msebor@redhat.com>
3343
3344 PR c/78284
3345 * c.opt (-Walloc-zero, -Walloc-size-larger-than): New options.
3346
060162e0
MS
33472016-12-08 Martin Sebor <msebor@redhat.com>
3348
3349 PR c/78165
92a285c1
ML
3350 * c-pretty-print (pp_c_integer_constant): Avoid formatting type
3351 suffix.
060162e0 3352
ee92e7ba
MS
33532016-12-07 Martin Sebor <msebor@redhat.com>
3354
3355 PR c/53562
3356 PR middle-end/77784
3357 PR middle-end/78149
3358 PR middle-end/78138
3359 * c.opt (-Wstringop-overflow): New option.
3360
84b0769e
MO
33612016-12-02 Maxim Ostapenko <m.ostapenko@samsung.com>
3362
3363 * c-attribs.c (asan odr indicator): New attribute.
3364 (handle_asan_odr_indicator_attribute): New function.
3365
7fa6a965
PK
33662016-11-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3367
3368 * c-common.c (c_common_nodes_and_builtins): Remove initialization of
3369 ptrdiff_type_node;
3370
56d8ffc1
JG
33712016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3372
3373 * c-common.c (excess_precision_mode_join): New.
3374 (c_ts18661_flt_eval_method): New.
3375 (c_c11_flt_eval_method): Likewise.
3376 (c_flt_eval_method): Likewise.
3377 * c-common.h (excess_precision_mode_join): New.
3378 (c_flt_eval_method): Likewise.
3379 * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): New.
3380 (cpp_iec_559_value): Call it.
3381 (c_cpp_builtins): Modify logic for __LIBGCC_*_EXCESS_PRECISION__,
3382 call c_flt_eval_method to set __FLT_EVAL_METHOD__ and
3383 __FLT_EVAL_METHOD_TS_18661_3__.
3384
04f0fcf7
JG
33852016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3386
3387 * c-opts.c (c_common_post_options): Add logic to handle the default
3388 case for -fpermitted-flt-eval-methods.
3389
fb2675cb
PB
33902016-11-23 Paolo Bonzini <bonzini@gnu.org>
3391
3392 * c.opt (Wexpansion-to-defined): New.
3393
ec1c5694
JJ
33942016-11-23 Jakub Jelinek <jakub@redhat.com>
3395
3396 PR target/78451
3397 * c-pragma.c (handle_pragma_target): Don't replace
3398 current_target_pragma, but chainon the new args to the current one.
3399
730c9e75
NS
34002016-11-22 Nathan Sidwell <nathan@acm.org>
3401
3402 * array-notation-common.c (cilkplus_extract_an_trplets): Fix
cacd29be 3403 indentation and formatting.
730c9e75 3404
89990732
MS
34052016-11-21 Martin Sebor <msebor@redhat.com>
3406
3407 * c.opt (-fprintf-return-value): Enable by default.
3408
48330c93
BE
34092016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
3410
3411 PR c++/71973
3412 * c.opt (-Wbuiltin-declaration-mismatch): New warning.
3413 * c-common.c (c_common_nodes_and_builtins): Initialize
3414 const_tm_ptr_type_node.
3415
0d939c95
MP
34162016-11-16 Marek Polacek <polacek@redhat.com>
3417
3418 PR c/78285
3419 * c-common.c (c_add_case_label): Turn error_at calls into inform.
3420
8e745a17
JJ
34212016-11-14 Jakub Jelinek <jakub@redhat.com>
3422
3423 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_structured_bindings.
3424
1ee62b92 34252016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
8e745a17
JJ
3426 Richard Biener <rguenther@suse.de>
3427
3428 * c-common.h (c_common_resword): Add RID_GIMPLE, RID_PHI types.
3429 * c-common.h (enum rid): Add RID_GIMPLE, RID_PHI.
3430 * c.opt (fgimple): New option.
1ee62b92 3431
22b15758
UB
34322016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3433
3434 PR c/35503
3435 * c-common.h (warn_for_restrict): Declare.
3436 * c-warn.c: Include gcc-rich-location.h.
3437 (warn_for_restrict): New function.
3438 * c-format.c (gcc_tdiag_char_table): Add entry for "Z" specifier.
3439 (gcc_cdiag_char_table): Likewise.
3440 (gcc_cxxdiag_char_table): Likewise.
3441 * c.opt (Wrestrict): New option.
3442
4be719cd
EB
34432016-11-13 Eric Botcazou <ebotcazou@adacore.com>
3444
3445 * c-ada-spec.c (print_ada_declaration): For typedef declarations, look
3446 for nested types only if the type is a record or union and dump SLOC.
3447
4a826ca6
JM
34482016-11-09 Jason Merrill <jason@redhat.com>
3449
3450 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_template_auto.
3451
2e955d50
JJ
34522016-11-09 Jakub Jelinek <jakub@redhat.com>
3453
3454 * c-ubsan.c (ubsan_instrument_shift): Handle split
3455 -fsanitize=shift-base and -fsanitize=shift-exponent.
3456
51dc6603
JM
34572016-11-07 Jason Merrill <jason@redhat.com>
3458
3459 * c.opt (Wc++1z-compat): New.
3460 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_noexcept_function_type.
3461
6dc4a604
ML
34622016-11-07 Martin Liska <mliska@suse.cz>
3463
3464 * c-warn.c (warn_for_unused_label): Save all labels used
3465 in goto or in &label.
3466
b302001e
JM
34672016-11-03 Jason Merrill <jason@redhat.com>
3468
3469 * c-cppbuiltin.c (c_cpp_builtins): Correct
3470 __cpp_inheriting_constructors.
3471
31f7f784
JM
34722016-11-01 Jason Merrill <jason@redhat.com>
3473
2bc78e3c
JM
3474 * c-cppbuiltin.c (c_cpp_builtins): Update
3475 __cpp_inheriting_constructors.
3476
31f7f784
JM
3477 * c.opt (-fnew-inheriting-ctors): New.
3478 * c-opts.c: Default to on for ABI 11+.
3479
dcb466ec
JJ
34802016-10-31 Jakub Jelinek <jakub@redhat.com>
3481
3482 PR c++/77948
3483 * c.opt (fext-numeric-literals): Add Var and Init.
3484 * c-opts.c (c_common_handle_option): Don't clear
3485 cpp_opts->ext_numeric_literals for -std=c++{11,14,1z}.
3486 (c_common_post_options): Clear it here if not set
3487 explicitly.
3488
52e1b91e
AH
34892016-10-28 Aldy Hernandez <aldyh@redhat.com>
3490
3491 PR debug/77773
3492 * c-pretty-print.c (simple_type_specifier): Do not dereference `t'
3493 if NULL.
3494
e16f1cc7
JJ
34952016-10-25 Jakub Jelinek <jakub@redhat.com>
3496
3497 * c-common.h (enum rid): Add RID_BUILTIN_LAUNDER.
3498 * c-common.c (c_common_reswords): Add __builtin_launder.
3499
f8348061
BE
35002016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
3501
3502 * c-common.c (c_common_truthvalue_conversion): Warn for
3503 multiplications in boolean context. Fix the quoting of '<<' and '<'
3504 in the shift warning.
3505
eff89e01
BE
35062016-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
3507
3508 * c-common.c (c_common_truthvalue_conversion): Fix the comment.
3509
24bc7bf4
JM
35102016-10-20 Jason Merrill <jason@redhat.com>
3511
3512 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_concepts value.
3513
4c712374
BE
35142016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
3515
3516 * c-common.c (c_common_truthvalue_conversion): Warn only for signed
3517 integer shift ops in boolean context.
3518
35192016-10-18 Aldy Hernandez <aldyh@redhat.com>
adc577c5
AH
3520
3521 * c.opt (Walloca): New.
3522 (Walloca-larger-than=): New.
3523 (Wvla-larger-than=): New.
3524
8fa18c06
MP
35252016-10-17 Marek Polacek <polacek@redhat.com>
3526
3527 * c-warn.c (find_array_ref_with_const_idx_r): Remove parameter names.
3528 Return immediately when finding a match.
3529 (warn_tautological_cmp): Remove a boolean variable that is no longer
3530 needed.
3531
b12b1915
MP
35322016-10-17 Marek Polacek <polacek@redhat.com>
3533
3534 * c-attribs.c: New file.
3535 * c-common.c: Move attributes handling to c-attribs.c.
3536 (get_nonnull_operand): No longer static.
3537 * c-common.h: Move the declarations from c-attribs.c to its own section.
3538
2045acd9
JM
35392016-10-14 Jason Merrill <jason@redhat.com>
3540
3541 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_aggregate_bases
3542 and __cpp_deduction_guides.
3543
14a2c9aa
JM
35442016-10-13 Jason Merrill <jason@redhat.com>
3545
3546 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_inline_variables.
3547
4d0cdd0c
TP
35482016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
3549
3550 * c-cppbuiltin.c: Include memmodel.h.
3551 * c-opts.c: Likewise.
3552 * c-pragma.c: Likewise.
3553 * c-warn.c: Likewise.
3554
70f6d5e1
JJ
35552016-10-12 Jakub Jelinek <jakub@redhat.com>
3556
3557 * c.opt (Wextra): Add as C/C++/ObjC/ObjC++ option.
3558 (Wimplicit-fallthrough=): Enable for these languages by -Wextra.
3559 * c-opts.c (sanitize_cpp_opts): Initialize
3560 cpp_opts->cpp_warn_implicit_fallthrough.
3561
78f61294
MP
35622016-10-11 Marek Polacek <polacek@redhat.com>
3563
3564 * c-common.c (warning_candidate_p): Change the return type to bool
3565 and return true/false instead of 1/0.
3566 (vector_mode_valid_p): Likewise.
3567
038b5cc0
MP
35682016-10-11 Marek Polacek <polacek@redhat.com>
3569
3570 * c-common.c (fold_for_warn): No longer static.
3571 (bool_promoted_to_int_p): Likewise.
3572 (c_common_get_narrower): Likewise.
3573 (constant_expression_warning): Move to c-warn.c.
3574 (constant_expression_error): Likewise.
3575 (overflow_warning): Likewise.
3576 (warn_logical_operator): Likewise.
3577 (find_array_ref_with_const_idx_r): Likewise.
3578 (warn_tautological_cmp): Likewise.
3579 (expr_has_boolean_operands_p): Likewise.
3580 (warn_logical_not_parentheses): Likewise.
3581 (warn_if_unused_value): Likewise.
3582 (strict_aliasing_warning): Likewise.
3583 (sizeof_pointer_memaccess_warning): Likewise.
3584 (check_main_parameter_types): Likewise.
3585 (conversion_warning): Likewise.
3586 (warnings_for_convert_and_check): Likewise.
3587 (match_case_to_enum_1): Likewise.
3588 (match_case_to_enum): Likewise.
3589 (c_do_switch_warnings): Likewise.
3590 (warn_for_omitted_condop): Likewise.
3591 (readonly_error): Likewise.
3592 (lvalue_error): Likewise.
3593 (invalid_indirection_error): Likewise.
3594 (warn_array_subscript_with_type_char): Likewise.
3595 (warn_about_parentheses): Likewise.
3596 (warn_for_unused_label): Likewise.
3597 (warn_for_div_by_zero): Likewise.
3598 (warn_for_memset): Likewise.
3599 (warn_for_sign_compare): Likewise.
3600 (do_warn_double_promotion): Likewise.
3601 (do_warn_unused_parameter): Likewise.
3602 (record_locally_defined_typedef): Likewise.
3603 (maybe_record_typedef_use): Likewise.
3604 (maybe_warn_unused_local_typedefs): Likewise.
3605 (maybe_warn_bool_compare): Likewise.
3606 (maybe_warn_shift_overflow): Likewise.
3607 (warn_duplicated_cond_add_or_warn): Likewise.
3608 (diagnose_mismatched_attributes): Likewise.
3609 * c-common.h: Move the declarations from c-warn.c to its own section.
3610 * c-warn.c: New file.
3611
627be19f
JM
36122016-10-08 Jason Merrill <jason@redhat.com>
3613
3614 * c-common.c (c_common_truthvalue_conversion): Don't distribute
3615 into COND_EXPR in C++.
3616
7bad794a
JJ
36172016-10-08 Jakub Jelinek <jakub@redhat.com>
3618
3619 * c-lex.c (c_lex_with_flags) <case CPP_COMMENT>: For CPP_COMMENT
3620 token with PREV_FALLTHROUGH, skip all following CPP_PADDING and
3621 CPP_COMMENT tokens and set add_flags to PREV_FALLTHROUGH afterwards.
3622
be845b04
JJ
36232016-10-07 Jakub Jelinek <jakub@redhat.com>
3624
3625 Implement LWG2296 helper intrinsic
3626 * c-common.h (enum rid): Add RID_ADDRESSOF.
3627 * c-common.c (c_common_reswords): Add __builtin_addressof.
3628
c09c4992
BE
36292016-10-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
3630
3631 PR c++/77700
3632 * c-common.c (c_common_truthvalue_conversion): Warn also for
3633 suspicious enum values in boolean context.
3634
342cfb3e
JJ
36352016-10-06 Jakub Jelinek <jakub@redhat.com>
3636
3637 Implement P0258R2 - helper for C++17
3638 std::has_unique_object_representations trait
3639 * c-common.h (enum rid): Add RID_HAS_UNIQUE_OBJ_REPRESENTATIONS.
3640 * c-common.c (c_common_reswords): Add
3641 __has_unique_object_representations.
3642
2e69f143
JJ
36432016-10-05 Jakub Jelinek <jakub@redhat.com>
3644
3645 PR sanitizer/66343
3646 * c-ubsan.c (ubsan_instrument_return): Don't call
3647 initialize_sanitizer_builtins here.
3648
700fff34
BE
36492016-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
3650
3651 * c-common.c (c_common_truthvalue_conversion): Warn also for suspicious
3652 conditional expression in boolean context when only one arm is
3653 non-boolean.
3654
9563bfcd
JJ
36552016-10-05 Jakub Jelinek <jakub@redhat.com>
3656
04a32443
JJ
3657 PR sanitizer/77823
3658 * c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0
3659 is not integral.
3660
9563bfcd
JJ
3661 * c-common.c (c_common_reswords): Update comment for C++11.
3662
f1644724
JM
36632016-10-04 Jason Merrill <jason@redhat.com>
3664
3665 * c-common.c (make_tree_vector_from_ctor): New.
3666 * c-common.h: Declare it.
3667
5a79befb
JJ
36682016-10-04 Jakub Jelinek <jakub@redhat.com>
3669
3670 * c-cppbuiltin.c (c_cpp_builtins): Don't define
3671 __LIBGCC_JCR_SECTION_NAME__.
3672
1633d3b9
BE
36732016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
3674
3675 * c-common.c (c_common_truthvalue_conversion): Warn for suspicious
3676 left shift in boolean context.
3677
a2c6e7f2
JJ
36782016-09-29 Jakub Jelinek <jakub@redhat.com>
3679
3680 Implement P0001R1 - C++17 removal of register storage class specifier
3681 * c.opt (Wregister): New warning.
3682 * c-opts.c (c_common_post_options): Enable -Wregister by
3683 default for C++17.
3684
75304c87
JG
36852016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
3686
3687 * c-opts.c (c_common_post_options): Remove special case for
3688 TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard
3689 in C++.
3690
bbfac6da
JJ
36912016-09-27 Jakub Jelinek <jakub@redhat.com>
3692
6e39060a
JJ
3693 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for
3694 -std=c++1z.
3695
bbfac6da
JJ
3696 * c-ada-spec.c (print_ada_declaration): Remove break after return.
3697
e73cf9a2
TP
36982016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
3699
3700 * c-common.c: Include memmodel.h.
3701
c6147dc4
MP
37022016-09-26 Marek Polacek <polacek@redhat.com>
3703
3704 * c-lex.c (c_common_has_attribute): Handle attribute fallthrough.
3705
81fea426
MP
37062016-09-26 Marek Polacek <polacek@redhat.com>
3707
3708 PR c/7652
3709 * c-common.c (c_common_attribute_table): Add fallthrough attribute.
3710 (handle_fallthrough_attribute): New function.
3711 (attribute_fallthrough_p): New function.
3712 * c-common.h (attribute_fallthrough_p): Declare.
3713
9a2300e9
MP
37142016-09-24 Marek Polacek <polacek@redhat.com>
3715
3716 PR c/77490
3717 * c.opt (Wbool-operation): New.
3718
a09e9e35
BE
37192016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
3720
3721 * c-common.c (c_common_truthvalue_conversion): Inhibit
3722 Wint-in-bool-context warning with from_macro_definition_at.
3723 Mention the expression will always evaluate to true.
3724
d43b4ccc
MS
37252016-09-21 Martin Sebor <msebor@redhat.com>
3726
3727 PR bootstrap/77676
3728 * c.opt (fprintf-return-value): Temporarily initialize to zero
3729 to unblock bootstrap failures.
3730
2e1c20b1
JJ
37312016-09-21 Jakub Jelinek <jakub@redhat.com>
3732
3733 PR c++/77651
3734 * c.opt (Waligned-new=): Add RejectNegative.
3735 (faligned-new=): Likewise. Spelling fix - change
3736 aligned_new_threshhold to aligned_new_threshold.
3737 * c-cppbuiltin.c (c_cpp_builtins): Change aligned_new_threshhold
3738 to aligned_new_threshold.
3739
88d0c3f0
MS
37402016-09-20 Martin Sebor <msebor@redhat.com>
3741
3742 PR middle-end/49905
3743 * c.opt: Add -Wformat-length and -fprintf-return-value.
3744
144a96e4
BE
37452016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
3746
3747 PR c++/77434
3748 * c.opt (Wint-in-bool-context): New warning.
3749 * c-common.c (c_common_truthvalue_conversion): Warn on integer
3750 constants in boolean context.
3751
63012d9a
JM
37522016-09-19 Joseph Myers <joseph@codesourcery.com>
3753
3754 * c-common.c (max_align_t_align): Also consider alignment of
3755 float128_type_node.
3756
931388ce
JM
37572016-09-15 Jason Merrill <jason@redhat.com>
3758
3759 * c-common.c (check_cxx_fundamental_alignment_constraints): Check
3760 DECL_EXTERNAL.
3761
38711381
JM
37622016-09-14 Jason Merrill <jason@redhat.com>
3763
3764 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
3765 limit FIELD_DECL, either.
3766
e51fbec3
MP
37672016-09-14 Marek Polacek <polacek@redhat.com>
3768
3769 * c-common.c (c_common_truthvalue_conversion): Use false instead of 0.
3770 * c-common.h (build_unary_op): Change nonconvert parameter type to bool.
3771 * c-omp.c (c_finish_omp_atomic): Use false instead of 0.
3772
254830ba
DM
37732016-09-13 David Malcolm <dmalcolm@redhat.com>
3774
3775 * c-common.c (warn_logical_not_parentheses): Replace
3776 rich_location::add_fixit_insert calls with add_fixit_insert_before
3777 and add_fixit_insert_after, eliminating the "next_loc" calculation.
3778
42763690
JM
37792016-09-13 Jason Merrill <jason@redhat.com>
3780 Tom de Vries <tom@codesourcery.com>
3781
3782 PR c++/77427
3783 * c-common.c (set_underlying_type): Don't treat array as builtin type.
3784
9453eee9
JM
37852016-09-13 Jason Merrill <jason@redhat.com>
3786
3787 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
3788 limit types at all.
3789
e96809e3
JM
37902016-09-12 Jason Merrill <jason@redhat.com>
3791
3792 * c-common.c (check_cxx_fundamental_alignment_constraints): Fix
3793 bit/byte confusion, allow large alignment for types.
3794
54dcdb88
BE
37952016-09-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
3796
3797 PR c++/77496
3798 * c-common.c (warn_for_omitted_condop): Also warn for boolean data.
3799
d1463eb9
DM
38002016-09-12 David Malcolm <dmalcolm@redhat.com>
3801
3802 PR c/72858
3803 * c-format.c (argument_parser::check_argument_type): Add params
3804 "type_start" and "conversion_char". Use the former to generate
3805 offset_to_type_start and pass it and conversion_char to
3806 check_format_types.
3807 (check_format_info_main): Capture the start of the type
3808 information as "type_start", and pass it an format_char
3809 to arg_parser.check_argument_type.
3810 (check_format_types): Provide an example in the leading comment.
3811 Add params "offset_to_type_start" and "conversion_char"; pass
3812 them to format_type_warning calls.
3813 (test_get_modifier_for_format_len): Likewise.
3814 (matching_type_p): New function.
3815 (get_format_for_type): Add param "conversion_char" and move
3816 implementation into...
3817 (get_format_for_type_1): ...new function, called twice.
3818 Use new function matching_type_p rather than checking for
3819 TYPE_CANONICAL equality.
3820 (get_corrected_substring): New function.
3821 (format_type_warning): Provide an example in the leading comment.
3822 Add params "offset_to_type_start" and "conversion_char". Replace
3823 call to get_format_for_type with call to get_corrected_substring
3824 and move rejection of hints for widths/precisions there.
3825 (assert_format_for_type_streq): Add param "conversion_char".
3826 (ASSERT_FORMAT_FOR_TYPE_STREQ): Add param CONVERSION_CHAR.
3827 (test_get_format_for_type_printf): Add conversion chars to the
3828 tests, adding coverage for various combinations of integer
3829 vs double conversions, and for preserving octal and hexadecimal
3830 conversions.
3831 (test_get_format_for_type_scanf): Add conversion chars to the
3832 tests.
3833
5b28efbb
TV
38342016-09-10 Tom de Vries <tom@codesourcery.com>
3835
3836 PR C/71602
3837 * c-common.c (build_va_arg): Handle more strict
3838 targetm.canonical_va_list_type. Replace first argument type error with
3839 assert.
3840
3f0177e7
MS
38412016-09-09 Martin Sebor <msebor@redhat.com>
3842
3843 PR c/77520
3844 PR c/77521
3845 * c-format.c (argument_parser::find_format_char_info): Use %qc
3846 format directive unconditionally.
3847
af63ba4b
JM
38482016-09-09 Jason Merrill <jason@redhat.com>
3849
3850 Implement C++17 new of over-aligned types.
3851 * c.opt: Add -faligned-new and -Waligned-new.
3852 * c-common.c (max_align_t_align): Split out from...
3853 (cxx_fundamental_alignment_p): ...here.
3854 * c-common.h: Declare it.
3855 * c-cppbuiltin.c (c_cpp_builtins): Handle aligned new.
3856
c65248cb
JM
38572016-09-09 Joseph Myers <joseph@codesourcery.com>
3858
3859 * c-cppbuiltin.c (builtin_define_type_width): New function.
3860 (builtin_define_stdint_macros, c_cpp_builtins): Define type width
3861 macros.
3862
e5106e27
DM
38632016-09-07 David Malcolm <dmalcolm@redhat.com>
3864
3865 * c-common.c (get_cpp_ttype_from_string_type): Handle being passed
3866 a POINTER_TYPE.
3867 (substring_loc::get_location): Move to substring-locations.c,
3868 keeping implementation as...
3869 (c_get_substring_location): New function, from the above, reworked
3870 to use accessors rather than member lookup.
3871 * c-common.h (class substring_loc): Move to substring-locations.h,
3872 replacing with a forward decl.
3873 (c_get_substring_location): New decl.
3874 * c-format.c: Include "substring-locations.h".
3875 (format_warning_va): Move to substring-locations.c.
3876 (format_warning_at_substring): Likewise.
3877
ab20d992 38782016-09-06 Martin Sebor <msebor@redhat.com>
a42e7952
MS
3879
3880 PR c/77336
3881 * c-format.c (check_function_format): Avoid issuing warnings for
3882 functions unless they call format functions with non-constant
3883 format strings.
3884
b772a565
RB
38852016-09-06 Richard Biener <rguenther@suse.de>
3886
3887 PR c/77450
3888 * c-common.c (c_common_mark_addressable_vec): Handle
3889 COMPOUND_LITERAL_EXPR.
3890
25ff5dd3
MP
38912016-09-05 Marek Polacek <polacek@redhat.com>
3892
3893 PR c/77423
3894 * c-common.c (bool_promoted_to_int_p): New function.
3895 (expr_has_boolean_operands_p): New function.
3896 (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p.
3897 (maybe_warn_bool_compare): Use bool_promoted_to_int_p.
3898
21234eb5
TV
38992016-09-04 Tom de Vries <tom@codesourcery.com>
3900
3901 revert:
3902 2016-08-29 Tom de Vries <tom@codesourcery.com>
3903
3904 * c-common.c (build_va_arg): Replace first argument type error
3905 with assert.
3906
9dc5773f
JJ
39072016-09-02 Jakub Jelinek <jakub@redhat.com>
3908
3909 PR c/65467
3910 * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions.
3911 (c_finish_omp_for): Reject _Atomic qualified iterators.
3912
39132016-09-01 Martin Sebor <msebor@redhat.com>
3d7b83b6
MS
3914
3915 * c-ada-spec.c (dump_ada_function_declaration): Increase buffer
3916 size to guarantee it fits the output of the formatted function
3917 regardless of its arguments.
3918
295844f6
MP
39192016-09-01 Marek Polacek <polacek@redhat.com>
3920
3921 PR c/7652
3922 * c-common.c (resolve_overloaded_builtin): Fix formatting. Add
3923 FALLTHRU comments.
3924
3d06b6f2
MP
39252016-08-29 Marek Polacek <polacek@redhat.com>
3926
3927 PR c/77292
3928 * c-common.c (warn_logical_not_parentheses): Don't warn for
3929 a comparison or a logical operator.
3930
34cedad5
TV
39312016-08-29 Tom de Vries <tom@codesourcery.com>
3932
3933 * c-common.c (build_va_arg): Fix type comparison assert.
3934
f162d717
TV
39352016-08-29 Tom de Vries <tom@codesourcery.com>
3936
3937 * c-common.c (build_va_arg): Replace first argument type error
3938 with assert.
3939
ba9bbd6f
TV
39402016-08-29 Tom de Vries <tom@codesourcery.com>
3941
3942 PR c/77398
3943 * c-common.c (build_va_arg): Add first argument error. Build va_arg
3944 with error_mark_node as va_list instead of with illegal va_list.
3945
ebef225f
MP
39462016-08-25 Marek Polacek <polacek@redhat.com>
3947 David Malcolm <dmalcolm@redhat.com>
3948
3949 * c-common.c (warn_logical_not_parentheses): Print fixit hints.
3950 * c-common.h (warn_logical_not_parentheses): Update declaration.
3951
b00e6e75
MP
39522016-08-22 Marek Polacek <polacek@redhat.com>
3953
3954 PR c++/77321
3955 * c-common.c (warn_for_memset): Check type for null.
3956
6dc198e3
JM
39572016-08-22 Joseph Myers <joseph@codesourcery.com>
3958
14ec014e 3959 * c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and
6dc198e3
JM
3960 _FloatNx types for suffixes for built-in functions.
3961
c65699ef
JM
39622016-08-19 Joseph Myers <joseph@codesourcery.com>
3963
3964 PR c/32187
3965 * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32)
3966 (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X)
3967 (RID_FLOAT128X): New enum rid values.
3968 (CASE_RID_FLOATN_NX): New macro.
3969 * c-common.c (c_common_reswords): Add _FloatN and _FloatNx
3970 keywords.
3971 (c_common_type_for_mode): Check for _FloatN and _FloatNx and
3972 corresponding complex types.
3973 (c_common_nodes_and_builtins): For non-C++, register _FloatN and
3974 _FloatNx and corresponding complex types.
3975 (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX.
3976 * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN
3977 and _FloatNx types for the widest type for determining
3978 DECIMAL_DIG. Define __LDBL_DECIMAL_DIG__ as well as
3979 __DECIMAL_DIG__ for long double. Handle FMA_SUFFIX being NULL.
3980 (c_cpp_builtins): Call builtin_define_float_constants for _FloatN
3981 and _FloatNx types.
3982 * c-lex.c (interpret_float): Handle _FloatN and _FloatNx
3983 constants.
3984 * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and
3985 _FloatNx types.
3986
cc015f3a
DM
39872016-08-18 David Malcolm <dmalcolm@redhat.com>
3988
3989 * c-opts.c (c_diagnostic_finalizer): Update for change to
3990 diagnostic_show_locus.
3991
cb18fd07
DM
39922016-08-18 David Malcolm <dmalcolm@redhat.com>
3993
3994 * c-common.c: Include "spellcheck.h".
3995 (cb_get_suggestion): New function.
3996 * c-common.h (cb_get_suggestion): New decl.
3997 * c-lex.c (init_c_lex): Initialize cb->get_suggestion to
3998 cb_get_suggestion.
3999
a76989dc
MP
40002016-08-18 Marek Polacek <polacek@redhat.com>
4001
4002 PR c/71514
4003 * c-common.c (get_atomic_generic_size): Disallow pointer-to-function
4004 and pointer-to-VLA.
4005
65e736c0
DM
40062016-08-16 David Malcolm <dmalcolm@redhat.com>
4007
4008 PR c/72857
4009 * c-common.c (substring_loc::get_range): Rename to...
4010 (substring_loc::get_location): ...this, converting param from a
4011 source_range * to a location_t *. Call
4012 get_source_location_for_substring rather than
4013 get_source_range_for_substring, and pass in m_caret_idx.
4014 * c-common.h (substring_loc::substring_loc): Add param "caret_idx".
4015 (substring_loc::get_range): Replace with...
4016 (substring_loc::get_location): ...this.
4017 (substring_loc::set_caret_index): New method.
4018 (substring_loc): Add field m_caret_idx.
4019 * c-format.c (format_warning_va): Update for above changes.
4020 Rename local "substring_loc" to "fmt_substring_loc" to avoid
4021 clashing with type name.
4022 (format_warning_at_char): Add caret_idx param to substring_loc ctor.
4023 (check_argument_type): Likewise.
4024 (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc"
4025 Use a copy when emitting warnings, setting the caret index from TYPE.
4026
7e1dde14 40272016-08-16 Eric Botcazou <ebotcazou@adacore.com>
8e745a17 4028 Arnaud Charlet <charlet@adacore.com>
7e1dde14
EB
4029
4030 * c-ada-spec.c (dump_number): New function.
4031 (handle_escape_character): Likewise.
4032 (print_ada_macros): Add handling of constant integers and strings.
4033
191816a3
MP
40342016-08-12 Marek Polacek <polacek@redhat.com>
4035
4036 PR c/7652
4037 * c-common.c (scalar_to_vector): Adjust fall through comment.
4038 * c-opts.c (c_common_handle_option): Likewise.
4039 * c-pragma.c (handle_pragma_pack): Add FALLTHRU.
4040 * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust
4041 fall through comment.
4042 * cilk.c (extract_free_variables): Add FALLTHRU.
4043
452df4a4
JM
40442016-08-10 Jason Merrill <jason@redhat.com>
4045
4046 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
4047
f3365c12
JM
40482016-08-09 Jason Merrill <jason@redhat.com>
4049
4050 * c-common.c (c_common_attribute_table): vector_size affects type
4051 identity.
4052
f0bc3323
MP
40532016-08-09 Marek Polacek <polacek@redhat.com>
4054
4055 PR c/7652
4056 * c-ada-spec.c (dump_generic_ada_node): Add return.
4057
98e5a19a
JM
40582016-08-09 Jason Merrill <jason@redhat.com>
4059
4060 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for
4061 C++17 constexpr lambdas.
4062
895aa8e1
DM
40632016-08-08 David Malcolm <dmalcolm@redhat.com>
4064
4065 PR c/64955
4066 * c-common.h (selftest::c_format_c_tests): New declaration.
4067 (selftest::run_c_tests): New declaration.
4068 * c-format.c: Include "selftest.h.
4069 (format_warning_va): Add param "corrected_substring" and use
4070 it to add a replacement fix-it hint.
4071 (format_warning_at_substring): Likewise.
4072 (format_warning_at_char): Update for new param of
4073 format_warning_va.
4074 (argument_parser::check_argument_type): Pass "fki" to
4075 check_format_types.
4076 (check_format_types): Add param "fki" and pass it to
4077 format_type_warning.
4078 (deref_n_times): New function.
4079 (get_modifier_for_format_len): New function.
4080 (selftest::test_get_modifier_for_format_len): New function.
4081 (get_format_for_type): New function.
4082 (format_type_warning): Add param "fki" and use it to attempt
4083 to provide hints for argument types when calling
4084 format_warning_at_substring.
4085 (selftest::get_info): New function.
4086 (selftest::assert_format_for_type_streq): New function.
4087 (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro.
4088 (selftest::test_get_format_for_type_printf): New function.
4089 (selftest::test_get_format_for_type_scanf): New function.
4090 (selftest::c_format_c_tests): New function.
4091
e52ed3fe
DM
40922016-08-08 David Malcolm <dmalcolm@redhat.com>
4093
4094 PR c/52952
4095 * c-format.c: Include "diagnostic.h".
4096 (location_column_from_byte_offset): Delete.
4097 (location_from_offset): Delete.
4098 (format_warning_va): New function.
4099 (format_warning_at_substring): New function.
4100 (format_warning_at_char): New function.
4101 (check_format_arg): Capture location of format_tree and pass to
4102 check_format_info_main.
4103 (argument_parser): Add fields "start_of_this_format" and
4104 "format_string_cst".
4105 (flag_chars_t::validate): Add param "format_string_cst". Convert
4106 warning_at call using location_from_offset to call to
4107 format_warning_at_char.
4108 (argument_parser::argument_parser): Add param "format_string_cst_"
4109 and use use it to initialize field "format_string_cst".
4110 Initialize new field "start_of_this_format".
4111 (argument_parser::read_format_flags): Convert warning_at call
4112 using location_from_offset to a call to format_warning_at_char.
4113 (argument_parser::read_any_format_left_precision): Likewise.
4114 (argument_parser::read_any_format_precision): Likewise.
4115 (argument_parser::read_any_other_modifier): Likewise.
4116 (argument_parser::find_format_char_info): Likewise, in three places.
4117 (argument_parser::parse_any_scan_set): Likewise, in one place.
4118 (argument_parser::handle_conversions): Likewise, in two places.
4119 (argument_parser::check_argument_type): Add param "fmt_param_loc"
4120 and use it to make a substring_loc. Pass the latter to
4121 check_format_types.
4122 (check_format_info_main): Add params "fmt_param_loc" and
4123 "format_string_cst". Convert warning_at calls using
4124 location_from_offset to calls to format_warning_at_char. Pass the
4125 new params to the arg_parser ctor. Pass "format_string_cst" to
4126 flag_chars.validate. Pass "fmt_param_loc" to
4127 arg_parser.check_argument_type.
4128 (check_format_types): Convert first param from a location_t
4129 to a const substring_loc & and rename to "fmt_loc". Attempt
4130 to extract the range of the relevant parameter and pass it
4131 to format_type_warning.
4132 (format_type_warning): Convert first param from a location_t
4133 to a const substring_loc & and rename to "fmt_loc". Add
4134 params "param_range" and "type". Replace calls to warning_at
4135 with calls to format_warning_at_substring.
4136
1c4d457e
DM
41372016-08-08 David Malcolm <dmalcolm@redhat.com>
4138
4139 * c-format.c (class flag_chars_t): New class.
4140 (struct length_modifier): New struct.
4141 (class argument_parser): New class.
4142 (flag_chars_t::flag_chars_t): New ctor.
4143 (flag_chars_t::has_char_p): New method.
4144 (flag_chars_t::add_char): New method.
4145 (flag_chars_t::validate): New method.
4146 (flag_chars_t::get_alloc_flag): New method.
4147 (flag_chars_t::assignment_suppression_p): New method.
4148 (argument_parser::argument_parser): New ctor.
4149 (argument_parser::read_any_dollar): New method.
4150 (argument_parser::read_format_flags): New method.
4151 (argument_parser::read_any_format_width): New method.
4152 (argument_parser::read_any_format_left_precision): New method.
4153 (argument_parser::read_any_format_precision): New method.
4154 (argument_parser::handle_alloc_chars): New method.
4155 (argument_parser::read_any_length_modifier): New method.
4156 (argument_parser::read_any_other_modifier): New method.
4157 (argument_parser::find_format_char_info): New method.
4158 (argument_parser::validate_flag_pairs): New method.
4159 (argument_parser::give_y2k_warnings): New method.
4160 (argument_parser::parse_any_scan_set): New method.
4161 (argument_parser::handle_conversions): New method.
4162 (argument_parser::check_argument_type): New method.
4163 (check_format_info_main): Introduce classes argument_parser
4164 and flag_chars_t, moving the code within the loop into methods
4165 of these classes. Make various locals "const".
4166
88fa5555
DM
41672016-08-05 David Malcolm <dmalcolm@redhat.com>
4168
4169 * c-common.c: Include "substring-locations.h".
4170 (get_cpp_ttype_from_string_type): New function.
4171 (g_string_concat_db): New global.
4172 (substring_loc::get_range): New method.
4173 * c-common.h (g_string_concat_db): New declaration.
4174 (class substring_loc): New class.
4175 * c-lex.c (lex_string): When concatenating strings, capture the
4176 locations of all tokens using a new obstack, and record the
4177 concatenation locations within g_string_concat_db.
4178 * c-opts.c (c_common_init_options): Construct g_string_concat_db
4179 on the ggc-heap.
4180
78169471
MP
41812016-07-29 Marek Polacek <polacek@redhat.com>
4182
638fc14f
MP
4183 PR c/71926
4184 * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the
4185 parentheses warning.
4186
78169471
MP
4187 PR c/71574
4188 * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL.
4189
1225d6b1
ML
41902016-07-28 Martin Liska <mliska@suse.cz>
4191
4192 PR gcov-profile/68025
4193 * c-common.c (handle_no_profile_instrument_function_attribute):
4194
ec1e2a40
BE
41952016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
4196
4197 * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of
4198 BITS_PER_UNIT_LOG.
4199
5ec2cd9f
JM
42002016-07-25 Jason Merrill <jason@redhat.com>
4201
4202 PR c++/65970
4203 * c.opt (fconstexpr-loop-limit): New.
4204
9dc5773f 42052016-07-22 Martin Sebor <msebor@redhat.com>
2e6b45af
MS
4206
4207 PR c++/71675
4208 * c-common.c (resolve_overloaded_builtin): Avoid converting
4209 __atomic_compare_exchange_n return type to that of what its
4210 first argument points to.
4211
e3fe09c1
UB
42122016-07-22 Uros Bizjak <ubizjak@gmail.com>
4213
4214 * c-common.c: Use HOST_WIDE_INT_M1U instead of
4215 ~(unsigned HOST_WIDE_INT) 0.
4216
bc91c436
ML
42172016-07-22 Martin Liska <mliska@suse.cz>
4218
4219 PR gcov-profile/69028
4220 PR gcov-profile/62047
4221 * cilk.c (create_cilk_helper_decl): Set location of a new decl
4222 to the current_function_decl.
4223
451dcc66
JM
42242016-07-21 Jason Merrill <jason@redhat.com>
4225
4226 PR c++/65168
4227 * c-common.c (c_common_truthvalue_conversion): Check
4228 c_inhibit_evaluation_warnings for warning about address of
4229 reference.
4230
de6a69ee
DM
42312016-07-20 David Malcolm <dmalcolm@redhat.com>
4232
4233 * c-common.h (lookup_name_fuzzy): Convert return type from tree to
4234 const char *.
4235
d022c55a
JM
42362016-07-15 Jason Merrill <jason@redhat.com>
4237
4238 * c-opts.c (c_common_post_options): Update -fabi-version default to 11.
4239
ddbbcb19
JJ
42402016-07-15 Jakub Jelinek <jakub@redhat.com>
4241
4242 PR c/71858
4243 * c-common.h (enum lookup_name_fuzzy_kind): Add
4244 FUZZY_LOOKUP_FUNCTION_NAME.
4245
d0cf395a
JM
42462016-07-08 Jason Merrill <jason@redhat.com>
4247
4248 P0145: Refining Expression Order for C++.
4249 * c.opts (-fargs-in-order): Rename to -fstrong-eval-order.
4250 * c-opts.c: Adjust.
4251
98d44e93
MT
42522016-07-05 Markus Trippelsdorf <markus@trippelsdorf.de>
4253
4254 PR c++/71214
4255 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
4256
f9d8d994
TS
42572016-06-29 Thomas Schwinge <thomas@codesourcery.com>
4258
4259 * c-pragma.h (enum pragma_kind): Rename
4260 PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE. Adjust all
4261 users.
4262
4aa83879
RB
42632016-06-29 Richard Biener <rguenther@suse.de>
4264
4265 PR middle-end/71002
4266 * c-common.c (c_common_get_alias_set): Remove union type punning case.
4267
a25bd9e6
JM
42682016-06-24 Jason Merrill <jason@redhat.com>
4269
4270 P0145R2: Refining Expression Order for C++.
4271 * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of
4272 MODIFY_EXPR.
4273
a86451b9
JJ
42742016-06-24 Jakub Jelinek <jakub@redhat.com>
4275
4276 * c-common.c (check_builtin_function_arguments): Require last
4277 argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type.
4278 Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW
4279 if the last argument is pointer to enumerated or boolean type.
4280
1a4f11c8
DM
42812016-06-22 David Malcolm <dmalcolm@redhat.com>
4282
4283 PR c/70339
4284 * c-common.h (enum lookup_name_fuzzy_kind): New enum.
4285 (lookup_name_fuzzy): New prototype.
4286
fe55692c
JDA
42872016-06-21 John David Anglin <danglin@gcc.gnu.org>
4288
4289 * c-common.c (get_source_date_epoch): Use int64_t instead of long long.
4290
4eb24e01
JM
42912016-06-14 Jason Merrill <jason@redhat.com>
4292
4293 P0145R2: Refining Expression Order for C++.
4294 * c.opt (fargs-in-order): New.
4295 * c-opts.c (c_common_post_options): Adjust flag_args_in_order.
4296
ef7cf206
JJ
42972016-06-13 Jakub Jelinek <jakub@redhat.com>
4298
0dda258b
JJ
4299 PR sanitizer/71498
4300 * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
4301 all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
4302
ef7cf206
JJ
4303 PR preprocessor/71183
4304 * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch
4305 to cb_get_source_date_epoch.
4306
50b15873
JJ
43072016-06-10 Jakub Jelinek <jakub@redhat.com>
4308
4309 PR c/68657
4310 * c.opt (Wpsabi): Add Warning flag.
4311
4d926e34
MS
43122016-06-10 Martin Sebor <msebor@redhat.com>
4313
4314 PR c/71392
14ec014e 4315 * c-common.c (handle_nonnull_attribute): Accept
4d926e34
MS
4316 the nonnull attribute in type-generic builtins.
4317
e01b4e16
MS
43182016-06-09 Martin Sebor <msebor@redhat.com>
4319
4320 PR c/70883
4321 * c-common.c (builtin_function_validate_nargs): Make text of error
4322 message consistent with others like it.
4323
44a845ca
MS
43242016-06-08 Martin Sebor <msebor@redhat.com>
4325 Jakub Jelinek <jakub@redhat.com>
4326
4327 PR c++/70507
4328 PR c/68120
4329 * c-common.c (check_builtin_function_arguments): Handle
4330 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
4331
a80a7051
RB
43322016-06-08 Richard Biener <rguenther@suse.de>
4333
4334 * c-common.c (parse_optimize_options): Improve diagnostic messages.
4335
bfd67b47
RB
43362016-06-07 Richard Biener <rguenther@suse.de>
4337
4338 PR c/61564
4339 * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
4340 options and warn about others.
4341
15c98b2e
ES
43422016-06-01 Eduard Sanou <dhole@openmailbox.org>
4343
4344 * c-common.c (get_source_date_epoch): Rename to
4345 cb_get_source_date_epoch.
4346 * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
4347 message when the parsing fails. Use error_at instead of fatal_error.
4348 * c-common.h (get_source_date_epoch): Rename to
4349 cb_get_source_date_epoch.
4350 * c-common.h (cb_get_source_date_epoch): Prototype.
4351 * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
4352 * c-common.h (c_omp_region_type): Remove trailing comma.
4353 * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
4354 * c-lex.c (c_lex_with_flags): Remove initialization of
4355 pfile->source_date_epoch.
4356
00631022
JJ
43572016-05-30 Jakub Jelinek <jakub@redhat.com>
4358
4359 PR c++/71349
4360 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
4361 C_OMP_CLAUSE_SPLIT_TARGET. Put OMP_CLAUSE_NOWAIT to
4362 C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
4363 instead of C_OMP_CLAUSE_SPLIT_FOR.
4364
f17a223d
RB
43652016-05-24 Richard Biener <rguenther@suse.de>
4366
4367 PR middle-end/70434
4368 PR c/69504
4369 * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
4370 (convert_vector_to_array_for_subscript): ... this.
4371 * c-common.c (convert_vector_to_pointer_for_subscript): Use a
4372 VIEW_CONVERT_EXPR to an array type. Rename to ...
4373 (convert_vector_to_array_for_subscript): ... this.
4374
4f2e1536
MP
43752016-05-12 Marek Polacek <polacek@redhat.com>
4376
4377 PR c/70756
4378 * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
4379 size_in_bytes and pass LOC to it.
4380
d6e83a8d
MM
43812016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
4382
4383 PR c/43651
4384 * c.opt (Wduplicate-decl-specifier): New option.
4385
5c3a10fb
MP
43862016-05-11 Marek Polacek <polacek@redhat.com>
4387
4388 PR c++/71024
4389 * c-common.c (diagnose_mismatched_attributes): New function.
4390 * c-common.h (diagnose_mismatched_attributes): Declare.
4391
deef7113
MP
43922016-05-04 Marek Polacek <polacek@redhat.com>
4393
4394 * c.opt (Wdangling-else): New option.
4395
79ce98bc
MP
43962016-05-03 Marek Polacek <polacek@redhat.com>
4397
4398 PR c/70859
4399 * c-common.c (builtin_function_validate_nargs): Add location
4400 parameter. Use it.
4401 (check_builtin_function_arguments): Add location and arguments
4402 parameters. Use them.
4403 * c-common.h (check_builtin_function_arguments): Update declaration.
4404
381cdae4
RB
44052016-05-03 Richard Biener <rguenther@suse.de>
4406
4407 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
4408 allow call args to gimplify to SSA names.
4409
1d793c34
MP
44102016-05-03 Marek Polacek <polacek@redhat.com>
4411
4412 * c-common.h (enum c_omp_region_type): Remove stray comma.
4413
77886428
CP
44142016-05-02 Cesar Philippidis <cesar@codesourcery.com>
4415
4416 * c-common.h (enum c_omp_region_type): Define.
4417
697e0b28
RS
44182016-05-02 Richard Sandiford <richard.sandiford@arm.com>
4419
4420 * c-common.c (shorten_compare): Use wi::to_wide.
4421
e7ff0319
CP
44222016-04-29 Cesar Philippidis <cesar@codesourcery.com>
4423
4424 PR middle-end/70626
4425 * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
4426 * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
4427 reduction clauses in acc parallel loops.
4428
2fff3db8
MP
44292016-04-29 Marek Polacek <polacek@redhat.com>
4430
4431 PR c/70852
4432 * c-common.c (warn_for_memset): Check domain before accessing it.
4433
509063eb
DV
44342016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
4435
4436 PR/69089
4437 * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
4438 "aligned" attribute.
4439
b632761d
JM
44402016-04-28 Jason Merrill <jason@redhat.com>
4441
4442 * c-lex.c (c_common_has_attribute): Handle nodiscard.
4443
174f6622
ES
44442016-04-28 Eduard Sanou <dhole@openmailbox.org>
4445 Matthias Klose <doko@debian.org>
4446
4447 * c-common.c (get_source_date_epoch): New function, gets the environment
7365279f 4448 variable SOURCE_DATE_EPOCH and parses it as long long with error
174f6622
ES
4449 handling.
4450 * c-common.h (get_source_date_epoch): Prototype.
4451 * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
4452
6bc2bb18
RB
44532015-04-27 Ryan Burn <contact@rnburn.com>
4454
4455 PR c++/69024
4456 PR c++/68997
4457 * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
4458 (cilk_recognize_spawn): Renamed from recognize_spawn and change to
4459 external linkage.
4460 (cilk_detect_and_unwrap): Corresponding changes.
4461 (extract_free_variables): Don't extract free variables from
4462 AGGR_INIT_EXPR slot.
4463 * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
4464 (cilk_recognize_spawn): Likewise.
4465
c1e1f433
BS
44662016-04-27 Bernd Schmidt <bschmidt@redhat.com>
4467
4468 * c.opt (Wmemset-elt-size): New option.
4469 * c-common.c (warn_for_memset): New function.
4470 * c-common.h (warn_for_memset): Declare.
4471
d067e05f
JM
44722016-04-25 Jason Merrill <jason@redhat.com>
4473
4474 * c-common.c (handle_unused_attribute): Accept CONST_DECL.
4475 No longer static.
4476 * c-common.h: Declare it.
4477 * c-lex.c (c_common_has_attribute): Add maybe_unused.
4478
9aa36ae5
JM
44792016-04-22 Jason Merrill <jason@redhat.com>
4480
4481 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
4482
477d4906
IV
44832016-04-20 Ilya Verbin <ilya.verbin@intel.com>
4484
4485 PR c++/69363
4486 * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
4487 * c-common.h (c_finish_cilk_clauses): Remove declaration.
4488
fe37c7af
MM
44892016-04-18 Michael Matz <matz@suse.de>
4490
4491 * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
4492 and SET_DECL_ALIGN.
4493
23f2660f
EB
44942016-04-17 Eric Botcazou <ebotcazou@adacore.com>
4495
4496 * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
4497 (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
4498 to incomplete types.
4499 (dump_nested_type): Remove redundant tests and tidy up.
4500 (print_ada_declaration): Also set TREE_VISITED on the declaration of
4501 a type which is the typedef of an original type.
4502
1e77281b
MP
45032016-04-15 Marek Polacek <polacek@redhat.com>
4504
4505 PR c/70651
4506 * c-common.c (build_va_arg): Change two asserts into errors and return
4507 error_mark_node.
4508
b3a77f21
MP
45092016-04-13 Marek Polacek <polacek@redhat.com>
4510
4511 PR c++/70639
4512 * c-indentation.c (should_warn_for_misleading_indentation): Bail out
4513 for switch statements, too.
4514
322b8466
JM
45152016-03-28 Jason Merrill <jason@redhat.com>
4516
4517 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
4518
fbdb6baf
MP
45192016-03-23 Marek Polacek <polacek@redhat.com>
4520
4521 PR c++/69884
4522 * c.opt (Wignored-attributes): New option.
4523
5c240f4d
DM
45242016-03-22 David Malcolm <dmalcolm@redhat.com>
4525
4526 PR c/69993
4527 * c-indentation.c (warn_for_misleading_indentation): Rewrite the
4528 diagnostic text, reversing the order of the warning and note so
4529 that they appear in source order.
4530
14ba7b28
MP
45312016-03-17 Marek Polacek <polacek@redhat.com>
4532
4533 PR c/69407
4534 * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
4535 operations.
4536
08a1cadc
JM
45372016-03-14 Jason Merrill <jason@redhat.com>
4538
2aaeea19
JM
4539 * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
4540
08a1cadc
JM
4541 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
4542
c06d25bb
RB
45432016-03-09 Richard Biener <rguenther@suse.de>
4544
4545 PR c/70143
4546 * c-common.c (strict_aliasing_warning): Add back
4547 alias_sets_conflict_p check.
4548
80aac5c8
JM
45492016-03-08 Jason Merrill <jason@redhat.com>
4550
4551 * c-opts.c (set_std_cxx1z): Don't enable concepts.
4552
64b23c13
DM
45532016-03-04 David Malcolm <dmalcolm@redhat.com>
4554
4555 PR c/68187
4556 * c-indentation.c (get_visual_column): Move code to determine next
4557 tab stop to...
4558 (next_tab_stop): ...this new function.
4559 (line_contains_hash_if): Delete function.
4560 (detect_preprocessor_logic): Delete function.
4561 (get_first_nws_vis_column): New function.
4562 (detect_intervening_unindent): New function.
4563 (should_warn_for_misleading_indentation): Replace call to
4564 detect_preprocessor_logic with a call to
4565 detect_intervening_unindent.
4566
729526f5
DM
45672016-03-04 David Malcolm <dmalcolm@redhat.com>
4568
4569 PR c/68187
4570 * c-indentation.c (should_warn_for_misleading_indentation): When
4571 suppressing warnings about cases where the guard and body are on
4572 the same column, only use the first non-whitespace column in place
4573 of the guard token column when dealing with "else" clauses.
4574 When rejecting aligned BODY and NEXT, loosen the requirement
4575 from equality with the first non-whitespace of guard to simply
4576 that they not be indented relative to it.
4577
e9a35493
RB
45782016-03-04 Richard Biener <rguenther@suse.de>
4579
4580 PR c++/70054
4581 * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
4582 instead of alias_sets_conflict_p.
4583
1be56bc5
MP
45842016-03-01 Marek Polacek <polacek@redhat.com>
4585
4586 PR c++/69795
4587 * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
4588 any DECL.
4589
35886f0b
MS
45902016-02-22 Martin Sebor <msebor@redhat.com>
4591
4592 PR middle-end/69780
4593 * c-common.c (check_builtin_function_arguments): Validate and
4594 reject invalid arguments to __builtin_alloca_with_align.
4595
4246c8da
MW
45962016-02-20 Mark Wielaard <mjw@redhat.com>
4597
4598 PR c/28901
4599 * c.opt (Wunused-const-variable): Turn into Alias for...
4600 (Wunused-const-variable=): New option.
4601
268be88c
BE
46022016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
4603
4604 PR c++/69865
4605 * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
4606 here...
4607 (c_common_init_options): ...to here.
4608 (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
4609
871b3f47
JJ
46102016-02-19 Jakub Jelinek <jakub@redhat.com>
4611
4612 PR c++/69826
4613 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
4614 (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
4615 flag_preprocess_only.
4616
bf14eba2
JJ
46172016-02-16 Jakub Jelinek <jakub@redhat.com>
4618
4619 PR c/69835
4620 * c.opt (Wnonnull-compare): Enable for -Wall.
4621
ba6b3795
JJ
46222016-02-15 Jakub Jelinek <jakub@redhat.com>
4623
4624 PR c++/69797
4625 * c-common.c (sync_resolve_size): Diagnose too few arguments
4626 even when params is non-NULL empty vector.
4627
a011cd92
BS
46282016-02-08 Bernd Schmidt <bschmidt@redhat.com>
4629
4630 PR target/60410
4631 * c.opt (fshort-double): Remove.
4632
46cb9332
MS
46332016-02-05 Martin Sebor <msebor@redhat.com>
4634
4635 PR c++/69662
4636 * c.opt (Warning options): Update -Wplacement-new to take
4637 an optional argument.
4638
e1b81f2b
JJ
46392016-02-01 Jakub Jelinek <jakub@redhat.com>
4640
4641 PR preprocessor/69543
4642 PR c/69558
4643 * c-pragma.c (handle_pragma_diagnostic): Pass input_location
4644 instead of loc to control_warning_option.
4645
b6adbb9f
NS
46462016-02-01 Nathan Sidwell <nathan@codesourcery.com>
4647
4648 * c.opt (fopenacc-dim=): New option.
4649
5d70666e
RB
46502016-01-27 Ryan Burn <contact@rnburn.com>
4651
4652 PR cilkplus/69267
4653 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
4654 gimplify_arg. Removed superfluous post_p argument.
4655 * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
4656 superfluous post_p argument.
4657 * c-gimplify.c (c_gimplify_expr): Likewise.
4658
01e1dea3
DM
46592016-01-26 David Malcolm <dmalcolm@redhat.com>
4660
4661 PR other/69006
4662 * c-opts.c (c_diagnostic_finalizer): Replace invocation of
4663 pp_newline_and_flush with pp_flush.
4664
9f04a53e
MS
46652016-01-20 Martin Sebor <msebor@redhat.com>
4666
4667 PR c/69405
4668 * c-common.c (sync_resolve_size): Avoid printing diagnostic about
4669 an incompatible argument when the argument isn't a valid tree node.
4670
7f26f7df
JM
46712016-01-18 Jason Merrill <jason@redhat.com>
4672
4673 PR c++/68767
4674 * c-common.c (check_function_arguments_recurse): Fold the whole
4675 COND_EXPR, not just the condition.
4676
f62bf092
TV
46772016-01-18 Tom de Vries <tom@codesourcery.com>
4678
4679 * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
4680 classify as loop clause.
4681
e0a575ff
JJ
46822016-01-15 Jakub Jelinek <jakub@redhat.com>
4683
4684 PR bootstrap/68271
4685 * c-pragma.c (c_register_pragma_1): Adjust comment to note that
4686 C++ FE no longer has limit on number of pragmas.
4687
46882015-01-14 Ryan Burn <contact@rnburn.com>
b6e3db06
RB
4689
4690 PR c++/69048
4691 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
c47eaca6 4692 to add missing cleanup point.
b6e3db06 4693
c7df95d8
DM
46942016-01-14 David Malcolm <dmalcolm@redhat.com>
4695
4696 PR c++/68819
4697 * c-indentation.c (get_visual_column): Add location_t param.
4698 Handle the column number being zero by effectively disabling the
4699 warning, with an "inform".
4700 (should_warn_for_misleading_indentation): Add location_t argument
4701 for all uses of get_visual_column.
4702
21efdd80
PP
47032016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
4704
4705 PR c++/69029
4706 * c-indentation.c (should_warn_for_misleading_indentation):
4707 Don't warn about do-while statements.
4708
7a127fa7
MS
47092016-01-07 Martin Sebor <msebor@redhat.com>
4710
4711 PR c/68966
4712 * c-common.c (sync_resolve_size): Reject first argument when it's
4713 a pointer to _Bool.
4714
c589e975
DM
47152016-01-05 David Malcolm <dmalcolm@redhat.com>
4716
4717 PR c/69122
4718 * c-indentation.c (get_visual_column): Remove default argument.
4719 (should_warn_for_misleading_indentation): For the multiline case,
4720 update call to get_visual_column for next_stmt_exploc so that it
4721 captures the location of the first non-whitespace character in the
4722 relevant line. Don't issue warnings if there is non-whitespace
4723 before the next statement.
4724
818ab71a
JJ
47252016-01-04 Jakub Jelinek <jakub@redhat.com>
4726
4727 Update copyright years.
4728
745e411d
DM
47292015-12-21 David Malcolm <dmalcolm@redhat.com>
4730
4731 * c-common.c (binary_op_error): Convert first param from
4732 location_t to rich_location * and use it when emitting an error.
4733 * c-common.h (binary_op_error): Convert first param from
4734 location_t to rich_location *.
4735
de67c4c3
DM
47362015-12-16 David Malcolm <dmalcolm@redhat.com>
4737
4738 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
4739 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
4740
4a38b02b
IV
47412015-12-15 Ilya Verbin <ilya.verbin@intel.com>
4742
4743 * c-common.c (c_common_attribute_table): Handle "omp declare target
4744 link" attribute.
4745
54d62f51
JJ
47462015-12-14 Jakub Jelinek <jakub@redhat.com>
4747
4748 PR c/68833
4749 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
4750
8d4227c8
TB
47512014-12-12 Tobias Burnus <burnus@net-b.de>
4752
4753 PR fortran/68815
4754 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
4755 specifiers (%d, %i,%u and %c).
4756
f6069ccc
DM
47572015-12-10 David Malcolm <dmalcolm@redhat.com>
4758
4759 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
4760
63bbf46d
JJ
47612015-12-08 Jakub Jelinek <jakub@redhat.com>
4762
4763 PR c/48088
4764 PR c/68657
4765 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
4766 * c-pragma.c (handle_pragma_diagnostic): Adjust
4767 control_warning_option caller.
4768
f79520bb
DM
47692015-12-07 David Malcolm <dmalcolm@redhat.com>
4770
4771 * c-common.c (c_cpp_error): Update for change to
4772 rich_location::set_range.
4773
b3d5bc62
JJ
47742015-12-04 Paolo Bonzini <bonzini@gnu.org>
4775
4776 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
4777 shifting 1 out of the sign bit.
4778
47792015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
4780
4781 * c-common.c (c_common_attribute_table[]): Update max arguments
4782 count for "simd" attribute.
4783 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
4784
6eb4a537
JJ
47852015-12-03 Jakub Jelinek <jakub@redhat.com>
4786
4787 PR preprocessor/57580
4788 * c-ppoutput.c (print): Change printed field to bool.
4789 Move src_file last for smaller padding.
4790 (init_pp_output): Set print.printed to false instead of 0.
4791 (scan_translation_unit): Fix up formatting. Set print.printed
4792 to true after printing something other than newline.
4793 (scan_translation_unit_trad): Set print.printed to true instead of 1.
4794 (maybe_print_line_1): Set print.printed to false instead of 0.
4795 (print_line_1): Likewise.
4796 (do_line_change): Set print.printed to true instead of 1.
4797 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
4798 dump_macro): Set print.printed to false after printing newline.
4799
4250754e
JM
48002015-12-02 Jason Merrill <jason@redhat.com>
4801
f479b43d
JM
4802 * c-common.c (fold_for_warn): New.
4803 (warn_logical_operator, warn_tautological_cmp)
4804 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
4805
4250754e
JM
4806 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
4807 (c_fully_fold_internal, decl_constant_value_for_optimization):
4808 Move to c/c-fold.c.
4809 * c-common.h: Don't declare decl_constant_value_for_optimization.
4810
e9e32ee6
JM
48112015-12-02 Joseph Myers <joseph@codesourcery.com>
4812
4813 PR c/68162
4814 * c-common.h (c_build_qualified_type): Add extra default
4815 arguments.
4816
37d5ad46
JB
48172015-12-01 Julian Brown <julian@codesourcery.com>
4818 Cesar Philippidis <cesar@codesourcery.com>
4819 James Norris <James_Norris@mentor.com>
4820
4821 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
4822 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
4823 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
4824
f07862c7
EB
48252015-11-30 Eric Botcazou <ebotcazou@adacore.com>
4826
4827 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
4828 (decl_sloc_common): Delete and move bulk of processing to...
4829 (decl_sloc): ...here.
4830 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
4831 (dump_ada_double_name): Remove S parameter and compute the suffix.
4832 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
4833 element type and deal with an anonymous one.
4834 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
4835 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
4836 and remove reference to QUAL_UNION_TYPE.
4837 (dump_nested_types): Make 2 passes on the fields and move bulk to...
4838 (dump_nested_type): ...here. New function extracted from above.
4839 Generate a full declaration for anonymous element type of arrays.
4840 (print_ada_declaration): Really skip anonymous declarations. Remove
4841 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
4842 Clean up processing of declarations of array types and objects.
4843 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
4844 Remove obsolete code and tidy up.
4845
75c8aac3
JH
48462015-11-29 Jan Hubicka <hubicka@ucw.cz>
4847
4848 PR c/67581
4849 * c-common.c (handle_transparent_union_attribute): Update
4850 also type variants.
4851
b58d3df2
ML
48522015-11-27 Martin Liska <mliska@suse.cz>
4853
4854 PR c++/68312
4855 * array-notation-common.c (cilkplus_extract_an_triplets):
4856 Release vector of vectors.
4857 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
4858
89a01fcf
EB
48592015-11-26 Eric Botcazou <ebotcazou@adacore.com>
4860
4861 PR c++/68527
4862 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
4863 (print_ada_struct_decl): Likewise.
4864
cc5c5226
IZ
48652015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
4866
4867 PR c++/68001
4868 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
4869 * cilk.c (recognize_spawn): Determine location in a more precise
4870 way.
4871
269adb9d
JM
48722015-11-19 Jason Merrill <jason@redhat.com>
4873
4874 * c-common.c (shorten_compare): But look through macros from
4875 system headers.
4876
d0eccfcd
JM
48772015-11-18 Jason Merrill <jason@redhat.com>
4878
4879 * c-common.c (shorten_compare): Don't -Wtype-limits if the
4880 non-constant operand comes from a macro.
4881
3e44547c
JM
48822015-11-17 Jason Merrill <jason@redhat.com>
4883
4884 PR bootstrap/68346
4885 * c-common.c (warn_tautological_cmp): Fold before checking for
4886 constants.
4887
0f62c7a0
MP
48882015-11-16 Marek Polacek <polacek@redhat.com>
4889
4890 PR c++/68362
4891 * c-common.c (check_case_bounds): Fold low and high cases.
4892
a868811e
MP
48932015-11-16 Marek Polacek <polacek@redhat.com>
4894
4895 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
4896 * c-common.c (c_common_get_alias_set): Likewise.
4897 (handle_visibility_attribute): Likewise.
4898
fff77217
KY
48992015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
4900
4901 * c-common.c (handle_simd_attribute): New.
4902 (struct attribute_spec): Add entry for "simd".
4903 (handle_simd_attribute): New.
4904
269e63b7
KT
49052015-11-13 Kai Tietz <ktietz70@googlemail.com>
4906
4907 * c-lex.c (interpret_float): Use fold_convert.
4908
ebedc9a3
DM
49092015-11-13 David Malcolm <dmalcolm@redhat.com>
4910
4911 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
4912 and store it on the result.
4913 * c-opts.c (c_common_init_options): Set
4914 global_dc->colorize_source_p.
4915
6e232ba4
JN
49162015-11-12 James Norris <jnorris@codesourcery.com>
4917 Joseph Myers <joseph@codesourcery.com>
4918
7365279f 4919 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
6e232ba4
JN
4920 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
4921 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
4922 PRAGMA_OACC_CLAUSE_LINK.
4923
e78bede6
MP
49242015-11-11 Marek Polacek <polacek@redhat.com>
4925
4926 PR c/68107
4927 PR c++/68266
4928 * c-common.c (valid_array_size_p): New function.
4929 * c-common.h (valid_array_size_p): Declare.
4930
3f8257db 49312015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
4ac93c7c
DH
4932
4933 PR bootstrap/68271
4934 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
4935
69f293c9
AM
49362015-11-11 Andrew MacLeod <amacleod@redhat.com>
4937
4938 * array-notation-common.c: Remove unused header files.
4939 * c-ada-spec.c: Likewise.
4940 * c-cilkplus.c: Likewise.
4941 * c-common.c: Likewise.
4942 * c-cppbuiltin.c: Likewise.
4943 * c-dump.c: Likewise.
4944 * c-format.c: Likewise.
4945 * c-gimplify.c: Likewise.
4946 * c-indentation.c: Likewise.
4947 * c-lex.c: Likewise.
4948 * c-omp.c: Likewise.
4949 * c-opts.c: Likewise.
4950 * c-pch.c: Likewise.
4951 * c-ppoutput.c: Likewise.
4952 * c-pragma.c: Likewise.
4953 * c-pretty-print.c: Likewise.
4954 * c-semantics.c: Likewise.
4955 * c-ubsan.c: Likewise.
4956 * cilk.c: Likewise.
4957 * stub-objc.c: Likewise.
4958
3a40d81d
NS
49592015-11-09 Thomas Schwinge <thomas@codesourcery.com>
4960 Cesar Philippidis <cesar@codesourcery.com>
4961 James Norris <jnorris@codesourcery.com>
4962 Julian Brown <julian@codesourcery.com>
4963 Nathan Sidwell <nathan@codesourcery.com>
4964
4965 * c-pragma.c (oacc_pragmas): Add "routine".
4966 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
4967
ee45a32d
EB
49682015-11-08 Eric Botcazou <ebotcazou@adacore.com>
4969
4970 * c-common.c (c_common_attributes): Add scalar_storage_order.
4971 (handle_scalar_storage_order_attribute): New function.
4972 * c-pragma.c (global_sso): New variable.
4973 (maybe_apply_pragma_scalar_storage_order): New function.
4974 (handle_pragma_scalar_storage_order): Likewise.
4975 (init_pragma): Register scalar_storage_order.
4976 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
4977 * c.opt (Wscalar-storage-order): New warning.
4978 (fsso-struct=): New option.
4979
eb11eb15
MS
49802015-11-08 Martin Sebor <msebor@redhat.com>
4981
4982 * c.opt (Wplacement-new): Add a period to the end of a sentence.
4983
0aad0198
RS
49842015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4985
4986 * c-common.c: Don't undef DEF_BUILTIN.
4987
8a645150
DM
49882015-11-06 David Malcolm <dmalcolm@redhat.com>
4989
4990 * c-common.c (c_cpp_error): Convert parameter from location_t to
4991 rich_location *. Eliminate the "column_override" parameter and
4992 the call to diagnostic_override_column.
4993 Update the "done_lexing" clause to set range 0
4994 on the rich_location, rather than overwriting a location_t.
4995 * c-common.h (c_cpp_error): Convert parameter from location_t to
4996 rich_location *. Eliminate the "column_override" parameter.
4997
7a5e4956
CP
49982015-11-05 Cesar Philippidis <cesar@codesourcery.com>
4999 Thomas Schwinge <thomas@codesourcery.com>
5000 James Norris <jnorris@codesourcery.com>
5001
5002 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
5003 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
5004 clauses with parallel and kernels and loops.
5005 * c-pragma.h (enum pragma_omp_clause): Add entries for
5006 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
5007 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
5008 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
5009 INDEPENDENT,SEQ}.
5010 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
5011
e2f5cc96
MS
50122015-11-05 Martin Sebor <msebor@redhat.com>
5013
5014 PR c++/67942
5015 * c.opt (-Wplacement-new): New option.
5016
e01d41e5
JJ
50172015-11-05 Jakub Jelinek <jakub@redhat.com>
5018
5019 * c-common.h (c_finish_omp_atomic): Add TEST argument.
5020 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
5021 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
5022 save_expr or create_tmp_var* if TEST is true.
5023 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
5024 Don't call add_stmt here.
5025 (struct c_omp_check_loop_iv_data): New type.
5026 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
5027 c_omp_check_loop_iv_exprs): New functions.
5028 (c_omp_split_clauses): Adjust for lastprivate being allowed on
5029 distribute.
5030 (c_omp_declare_simd_clauses_to_numbers): Change
5031 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
5032 (c_omp_declare_simd_clauses_to_decls): Similarly change those
5033 from numbers to PARM_DECLs.
5034
595278be
MM
50352015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
5036
5037 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
5038 flag_checking.
5039
3f8257db 50402015-11-03 Bernd Schmidt <bschmidt@redhat.com>
c85158de
MS
5041
5042 PR c++-common/67882
b3d5bc62
JJ
5043 * c-common.h (fold_offsetof_1): Add argument.
5044 * c-common.c (fold_offsetof_1): Diagnose more invalid
c85158de
MS
5045 offsetof expressions that reference elements past the end of
5046 an array.
5047
4bf9e5a8
TS
50482015-11-03 Thomas Schwinge <thomas@codesourcery.com>
5049 Chung-Lin Tang <cltang@codesourcery.com>
5050
5051 * c-pragma.c (oacc_pragmas): Add "atomic".
5052 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
5053
3b1661a9
ES
50542015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
5055
5056 * c-common.c (handle_target_clones_attribute): New.
5057 (c_common_attribute_table): Add handle_target_clones_attribute.
5058 (handle_always_inline_attribute): Add check on target_clones attribute.
5059 (handle_target_attribute): Ditto.
5060
2adfab87
AM
50612015-10-29 Andrew MacLeod <amacleod@redhat.com>
5062
5063 * array-notation-common.c: Reorder #include's and remove duplicates.
5064 * c-ada-spec.c: Likewise.
5065 * c-cilkplus.c: Likewise.
5066 * c-common.c: Likewise.
5067 * c-cppbuiltin.c: Likewise.
5068 * c-dump.c: Likewise.
5069 * c-format.c: Likewise.
5070 * c-gimplify.c: Likewise.
5071 * c-indentation.c: Likewise.
5072 * c-lex.c: Likewise.
5073 * c-omp.c: Likewise.
5074 * c-opts.c: Likewise.
5075 * c-pch.c: Likewise.
5076 * c-ppoutput.c: Likewise.
5077 * c-pragma.c: Likewise.
5078 * c-pretty-print.c: Likewise.
5079 * c-semantics.c: Likewise.
5080 * c-ubsan.c: Likewise.
5081 * cilk.c: Likewise.
5082 * stub-objc.c: Likewise.
5083
d90ec4f2
JM
50842015-10-28 Jason Merrill <jason@redhat.com>
5085
5086 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
5087
88bae6f4
TS
50882015-10-27 Thomas Schwinge <thomas@codesourcery.com>
5089 James Norris <jnorris@codesourcery.com>
5090 Cesar Philippidis <cesar@codesourcery.com>
5091
5092 PR c/64765
5093 PR c/64880
5094 * c-common.h (c_oacc_split_loop_clauses): Declare function.
5095 * c-omp.c (c_oacc_split_loop_clauses): New function.
5096
b1726d6c
MS
50972015-10-21 Martin Sebor <msebor@redhat.com>
5098
5099 PR driver/68043
5100 * c.opt: End each sentence that describes an option with a period.
5101
fa60eeb9
MP
51022015-10-20 Marek Polacek <polacek@redhat.com>
5103
5104 * array-notation-common.c (is_cilkplus_vector_p): Define.
5105 * c-common.h (is_cilkplus_vector_p): Declare.
5106
95979049
MP
51072015-10-20 Marek Polacek <polacek@redhat.com>
5108
5109 * c.opt (std=gnu++11): Do not describe as experimental.
5110 (std=gnu++14): Likewise.
5111
2a9fb712
JM
51122015-10-19 Jason Merrill <jason@redhat.com>
5113
5114 * c-cppbuiltin.c (c_cpp_builtins): Define
5115 __cpp_nontype_template_args.
5116
13b380a3
JM
51172015-10-19 Jason Merrill <jason@redhat.com>
5118
5119 * c-cppbuiltin.c (c_cpp_builtins): Define
5120 __cpp_enumerator_attributes, __cpp_fold_expressions,
5121 __cpp_unicode_characters.
5122
d9a6bd32
JJ
51232015-10-13 Jakub Jelinek <jakub@redhat.com>
5124 Aldy Hernandez <aldyh@redhat.com>
5125
5126 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
5127 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
5128 (c_define_builtins): Likewise.
5129 * c-common.h (enum c_omp_clause_split): Add
5130 C_OMP_CLAUSE_SPLIT_TASKLOOP.
5131 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
5132 (c_finish_omp_for): Add ORIG_DECLV argument.
5133 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
5134 201511 instead of 201307.
5135 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
5136 OMP_CRITICAL_CLAUSES to it.
5137 (c_finish_omp_ordered): Add CLAUSES argument, set
5138 OMP_ORDERED_CLAUSES to it.
5139 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
5140 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
5141 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
5142 constructs and new OpenMP 4.5 clauses. Clear
5143 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
5144 verification code.
5145 * c-pragma.c (omp_pragmas_simd): Add taskloop.
5146 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
5147 (enum pragma_omp_clause): Add
5148 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
5149 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
5150
624d31fe
RS
51512015-10-05 Richard Sandiford <richard.sandiford@arm.com>
5152
5153 * c-lex.c (interpret_float): Use real_equal instead of
5154 REAL_VALUES_EQUAL.
5155
b8fd7909
JM
51562015-10-04 Jason Merrill <jason@redhat.com>
5157
5158 Implement N4514, C++ Extensions for Transactional Memory.
5159 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
5160 (c_common_attribute_table): Add transaction_safe_dynamic.
5161 transaction_safe now affects type identity.
5162 (handle_tm_attribute): Handle transaction_safe_dynamic.
5163 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
5164 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
5165 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
5166 (D_TRANSMEM): New.
5167 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
5168 * c-pretty-print.c (pp_c_attributes_display): Don't print
5169 transaction_safe in C++.
5170
12651878
MP
51712015-10-02 Marek Polacek <polacek@redhat.com>
5172
5173 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
5174
3e3b8d63
MP
51752015-10-02 Marek Polacek <polacek@redhat.com>
5176
5177 PR c/64249
5178 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
5179 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
5180 * c.opt (Wduplicated-cond): New option.
5181
0d1a8f75
JM
51822015-10-01 Joseph Myers <joseph@codesourcery.com>
5183
5184 * c.opt (std=c11): Do not describe as experimental.
5185 (std=gnu11): Likewise.
5186 (std=iso9899:2011): Likewise.
5187
3e32ee19
NS
51882015-09-28 Nathan Sidwell <nathan@codesourcery.com>
5189
5190 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
5191 (DEF_FUNCTION_TYPE_VAR_11): Delete.
5192
974348ee
MP
51932015-09-25 Marek Polacek <polacek@redhat.com>
5194
5195 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
5196 (ubsan_instrument_shift): Likewise.
5197
15dbc1a6
MP
51982015-09-25 Marek Polacek <polacek@redhat.com>
5199
5200 PR sanitizer/64906
5201 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
5202
6b95d7cc
PP
52032015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
5204
5205 * c-indentation.c (should_warn_for_misleading_indentation):
5206 Compare next_stmt_vis_column with guard_line_first_nws instead
5207 of with guard_line_vis_column.
5208
c1822f9c
MLI
52092015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
5210
5211 PR c/49654
5212 PR c/49655
5213 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
5214 options and options not valid for the current language.
5215
d5398058
PP
52162015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
5217
5218 * c-indentation.c (should_warn_for_misleading_indentation):
5219 Float out and consolidate the calls to get_visual_column that
5220 are passed guard_exploc as an argument. Compare
5221 next_stmt_vis_column with guard_line_first_nws instead of with
5222 body_line_first_nws.
5223
6b333269
NS
52242015-09-22 Nathan Sidwell <nathan@codesourcery.com>
5225
5226 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
5227 Wnamespaces): New C++ warnings.
5228
a75f1574
JM
52292015-09-22 Jason Merrill <jason@redhat.com>
5230
5231 * c-common.h (abi_compat_version_crosses): New.
5232 (warn_abi_version): Declare.
5233 * c-common.c: Define it.
5234 * c-opts.c (c_common_post_options): Handle it.
5235 flag_abi_compat_version defaults to 8.
5236
bdaaa8b7
VV
52372015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
5238
5239 Complete the implementation of N4230, Nested namespace definition.
5240 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
5241 __cpp_nested_namespace_definitions.
5242
eaa797e8
MLI
52432015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
5244
5245 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
5246
c4914de6
MLI
52472015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
5248
5249 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
5250 when warning.
5251 * c-pragma.h (pragma_lex): Add optional loc argument.
5252
fcb87c50
MM
52532015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
5254
5255 * c-format.c (check_format_arg): Adjust to use common block size in all
5256 object pools.
5257
31bdd08a
DM
52582015-09-15 David Malcolm <dmalcolm@redhat.com>
5259
5260 * c-format.c (location_from_offset): Update for change in
5261 signature of location_get_source_line.
5262 * c-indentation.c (get_visual_column): Likewise.
5263 (line_contains_hash_if): Likewise.
5264
aa9f4b4c
MP
52652015-09-14 Marek Polacek <polacek@redhat.com>
5266
5267 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
5268 setting various warnings.
5269
aa256c4a
MP
52702015-09-14 Marek Polacek <polacek@redhat.com>
5271
5272 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
5273 a negative value.
5274
0f876f22
MW
52752015-09-11 Mark Wielaard <mjw@redhat.com>
5276
5277 PR c/28901
5278 * c.opt (Wunused-variable): Option from common.opt.
5279 (Wunused-const-variable): New option.
5280
273aa49e
PC
52812015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
5282
5283 PR c++/53184
5284 * c.opt ([Wsubobject-linkage]): Add.
5285
1807ffc1
MS
52862015-09-03 Martin Sebor <msebor@redhat.com>
5287
5288 PR c/66516
5289 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
5290 functions.
5291 * c-common.c (reject_gcc_builtin): Define.
5292
38942840
BI
52932015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
5294
5295 PR middle-end/60586
5296 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
5297 prototype.
5298 * c-gimplify.c (c_gimplify_expr): Added a call to the function
5299 cilk_gimplify_call_params_in_spawned_fn.
5300 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
5301 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
5302 unwrapping.
5303
c316b5e4
MP
53042015-08-25 Marek Polacek <polacek@redhat.com>
5305
5306 PR middle-end/67330
5307 * c-common.c (handle_weak_attribute): Don't check whether the
5308 visibility can be changed here.
5309
584a7c46
MLI
53102015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
5311
5312 * c-lex.c (c_lex_with_flags): Use explicit locations.
5313
a79683d5
TS
53142015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
5315
5316 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
5317 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
5318
61717a45
FXC
53192015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5320
5321 PR middle-end/36757
5322 * c-common.c (check_builtin_function_arguments): Add check
5323 for BUILT_IN_SIGNBIT argument.
5324
329524f5
PC
53252015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
5326
5327 PR c++/67160
5328 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
5329 in c++1z mode.
5330
4ee55665
MP
53312015-08-17 Marek Polacek <polacek@redhat.com>
5332
5333 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
5334 with whitespaces before qualifier names.
5335
b893e375
MP
53362015-08-12 Marek Polacek <polacek@redhat.com>
5337
5338 PR c++/55095
5339 * c-common.c (maybe_warn_shift_overflow): Properly handle
5340 left-shifting 1 into the sign bit.
5341
c2d89095
MLI
53422015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5343
5344 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
5345
971e17ff
AS
53462015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
5347 Braden Obrzut <admin@maniacsvault.net>
5348 Jason Merrill <jason@redhat.com>
5349
5350 Add C++ Concepts TS support.
5351 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
5352 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
5353 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
5354 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
5355 * c-opts.c (set_std_cxx1z): Set flag_concepts.
5356 * c.opt (fconcepts): New.
5357
b3d5bc62
JJ
53582015-08-02 Martin Sebor <msebor@redhat.com>
5359
5360 * c.opt (-Wframe-address): New warning option.
5361
8ebca419
PP
53622015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
5363
5364 * c-indentation.c (should_warn_for_misleading_indentation):
5365 Improve heuristics.
5366
1a1e101f
PP
53672015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
5368
5369 * c-indentation.c (get_visual_column): Add parameter first_nws,
5370 use it. Update comment documenting the function.
5371 (is_first_nonwhitespace_on_line): Remove.
5372 (should_warn_for_misleading_indentation): Replace usage of
5373 of is_first_nonwhitespace_on_line with get_visual_column.
5374
992118a1
PP
53752015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
5376
5377 * c-indentation.h (struct token_indent_info): Define.
5378 (get_token_indent_info): Define.
5379 (warn_for_misleading_information): Declare.
5380 * c-common.h (warn_for_misleading_information): Remove.
5381 * c-identation.c (warn_for_misleading_indentation):
5382 Change declaration to take three token_indent_infos. Adjust
5383 accordingly.
5384 * c-identation.c (should_warn_for_misleading_indentation):
5385 Likewise. Bail out early if the body is a compound statement.
5386 (guard_tinfo_to_string): Define.
5387
e8fa3817
JM
53882015-07-30 Jason Merrill <jason@redhat.com>
5389
5390 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
5391 '*' for reference decay.
5392
173864e8
MP
53932015-07-30 Marek Polacek <polacek@redhat.com>
5394
5395 * c-common.c (warn_tautological_cmp): Bail for float types.
5396
f2afe6dd
MP
53972015-07-27 Marek Polacek <polacek@redhat.com>
5398
5399 PR bootstrap/67030
5400 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
5401
05b28fd6
MP
54022015-07-27 Marek Polacek <polacek@redhat.com>
5403
5404 PR c++/66555
5405 PR c/54979
5406 * c-common.c (find_array_ref_with_const_idx_r): New function.
5407 (warn_tautological_cmp): New function.
5408 * c-common.h (warn_tautological_cmp): Declare.
5409 * c.opt (Wtautological-compare): New option.
5410
5a5062b8
MP
54112015-07-23 Marek Polacek <polacek@redhat.com>
5412
5413 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
5414 (ubsan_instrument_shift): Likewise.
5415
dc891fe7
MP
54162015-07-23 Marek Polacek <polacek@redhat.com>
5417
5418 PR sanitizer/66908
5419 * c-ubsan.c: Include gimplify.h.
5420 (ubsan_instrument_division): Unshare OP0 and OP1.
5421 (ubsan_instrument_shift): Likewise.
5422
451b5e48
MP
54232015-07-20 Marek Polacek <polacek@redhat.com>
5424 Richard Sandiford <richard.sandiford@arm.com>
5425
5426 PR c++/55095
5427 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
5428 Use EXPR_LOC_OR_LOC.
5429 (maybe_warn_shift_overflow): New function.
5430 * c-common.h (maybe_warn_shift_overflow): Declare.
5431 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
5432 * c.opt (Wshift-overflow): New option.
5433
fb0b2914
ML
54342015-07-16 Martin Liska <mliska@suse.cz>
5435
5436 * c-format.c (static void check_format_info_main): Use
5437 object_allocator instead of pool_allocator.
5438 (check_format_arg): Likewise.
5439 (check_format_info_main): Likewise.
5440
903f5c23
AM
54412015-07-15 Andrew MacLeod <amacleod@redhat.com>
5442
5443 * c-opts.c: Remove multiline #include comment.
5444
026c3cfd
AH
54452015-07-12 Aldy Hernandez <aldyh@redhat.com>
5446
5447 * c-common.c: Fix double word typos.
5448
bb49ee66
EB
54492015-07-10 Eric Botcazou <ebotcazou@adacore.com>
5450
5451 * c-ada-spec.h (cpp_operation): Revert latest change.
5452 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
5453 constructors and destructors.
5454
1916bcb5
AM
54552015-07-09 Andrew MacLeod <amacleod@redhat.com>
5456
5457 * c-common.h: Adjust includes for flags.h changes.
5458 * stub-objc.c: Likewise.
026c3cfd 5459
a9dcd529
EB
54602015-07-08 Eric Botcazou <ebotcazou@adacore.com>
5461
5462 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
5463 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
5464
b03b462f
JJ
54652015-07-08 Jakub Jelinek <jakub@redhat.com>
5466
5467 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
5468 are to be removed, return NULL rather than original clauses list.
5469
c7131fb2
AM
54702015-07-07 Andrew MacLeod <amacleod@redhat.com>
5471
5472 * array-notation-common.c: Adjust includes.
5473 * c-ada-spec.c: Likewise.
5474 * c-cilkplus.c: Likewise.
5475 * c-common.h: Likewise.
5476 * c-cppbuiltin.c: Likewise.
5477 * c-dump.c: Likewise.
5478 * c-format.c: Likewise.
5479 * c-gimplify.c: Likewise.
5480 * c-indentation.c: Likewise.
5481 * c-lex.c: Likewise.
5482 * c-omp.c: Likewise.
5483 * c-opts.c: Likewise.
5484 * c-pch.c: Likewise.
5485 * c-ppoutput.c: Likewise.
5486 * c-pragma.c: Likewise.
5487 * c-pretty-print.c: Likewise.
5488 * c-semantics.c: Likewise.
5489 * c-ubsan.c: Likewise.
5490 * cilk.c: Likewise.
5491 * stub-objc.c: Likewise.
5492
2a7fb83f
EB
54932015-07-07 Eric Botcazou <ebotcazou@adacore.com>
5494
5495 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
5496 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
5497
a03c9bf1
JM
54982015-07-01 Jason Merrill <jason@redhat.com>
5499
36a85135
JM
5500 * c-common.h (D_CXX11): Rename from D_CXX0X.
5501 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
5502 * c-common.c: Adjust.
5503
e7fa68d5
JM
5504 * c-opts.c (c_common_post_options): Default to C++14.
5505
a03c9bf1
JM
5506 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
5507
fe95b036
ESR
55082015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
5509
5510 Implement N4197 - Adding u8 character literals
b3d5bc62 5511 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
a64be36b 5512 CPP_CHAR.
b3d5bc62 5513 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
a64be36b 5514 CPP_UTF8CHAR_USERDEF tokens.
b3d5bc62 5515 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
a64be36b
EB
5516 and CPP_UTF8CHAR tokens.
5517 (lex_charconst): Treat CPP_UTF8CHAR token.
fe95b036 5518
da2e71c9
MLI
55192015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
5520
5521 PR fortran/66605
5522 * c-common.c (do_warn_unused_parameter): Move here.
5523 * c-common.h (do_warn_unused_parameter): Declare.
5524
b155cfd9
MP
55252015-06-29 Marek Polacek <polacek@redhat.com>
5526
5527 PR c/66322
5528 * c-common.c (check_case_bounds): Add bool * parameter. Set
5529 OUTSIDE_RANGE_P.
5530 (c_add_case_label): Add bool * parameter. Pass it down to
5531 check_case_bounds.
5532 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
5533 warning here.
5534 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
5535 declarations.
5536
31521951
MP
55372015-06-27 Marek Polacek <polacek@redhat.com>
5538
5539 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
5540 or VECTOR_INTEGER_TYPE_P throughout.
5541 * c-gimplify.c: Likewise.
5542
22d03525
MP
55432015-06-26 Marek Polacek <polacek@redhat.com>
5544
5545 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
5546 * c-common.c (c_fully_fold_internal): Likewise.
5547 (c_alignof_expr): Likewise.
5548 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
5549 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
b1726d6c 5550 * cilk.c (create_parm_list): Likewise.
22d03525 5551
af05e6e5
MP
55522015-06-26 Marek Polacek <polacek@redhat.com>
5553
5554 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
5555
f0889939
AM
55562015-06-25 Andrew MacLeod <amacleod@redhat.com>
5557
5558 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
5559 * c-gimplify.c: Likewise.
5560 * c-pragma.c: Likewise.
5561 * c-ubsan.c: Likewise.
5562 * cilk.c: Likewise.
5563
ca752f39
RS
55642015-06-25 Richard Sandiford <richard.sandiford@arm.com>
5565
5566 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
5567 ggc_hasher.
5568
16a16ec7
AM
55692015-06-25 Andrew MacLeod <amacleod@redhat.com>
5570
5571 * cilk.c: Move calls.h after tm.h in the include chain.
5572
0ae9bd27
MP
55732015-06-25 Marek Polacek <polacek@redhat.com>
5574
5575 * array-notation-common.c: Use VAR_P throughout.
5576 * c-ada-spec.c: Likewise.
5577 * c-common.c: Likewise.
5578 * c-format.c: Likewise.
5579 * c-gimplify.c: Likewise.
5580 * c-omp.c: Likewise.
5581 * c-pragma.c: Likewise.
5582 * c-pretty-print.c: Likewise.
5583 * cilk.c: Likewise.
5584
62f9079a
MP
55852015-06-25 Marek Polacek <polacek@redhat.com>
5586
5587 * cilk.c (extract_free_variables): Use is_global_var.
5588
0fa16060
RS
55892015-06-23 Richard Sandiford <richard.sandiford@arm.com>
5590
5591 * c-common.c: Don't include target-def.h.
5592
a68ae2e1
MP
55932015-06-23 Marek Polacek <polacek@redhat.com>
5594
5595 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
5596 when comparing INTEGER_CSTs.
5597
c6a2f2d9
PMR
55982015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
5599
5600 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
5601 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
5602 (dump_ada_template): Skip partially specialized types.
5603
6b4db501
MM
56042015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
5605
5606 * c-common.c (scalar_to_vector): Use std::swap instead of manually
5607 swapping.
5608
abb226c9
AM
56092015-06-17 Andrew MacLeod <amacleod@redhat.com>
5610
5611 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
5612 * c-ada-spec.c: Likewise.
5613 * c-cilkplus.c: Likewise.
5614 * c-common.c: Likewise.
5615 * c-common.h: Likewise.
5616 * c-cppbuiltin.c: Likewise.
5617 * c-dump.c: Likewise.
5618 * c-format.c: Likewise.
5619 * c-gimplify.c: Likewise.
5620 * c-indentation.c: Likewise.
5621 * c-lex.c: Likewise.
5622 * c-omp.c: Likewise.
5623 * c-opts.c: Likewise.
5624 * c-pch.c: Likewise.
5625 * c-ppoutput.c: Likewise.
5626 * c-pragma.c: Likewise.
5627 * c-pretty-print.c: Likewise.
5628 * c-semantics.c: Likewise.
5629 * c-ubsan.c: Likewise.
5630 * cilk.c: Likewise.
5631 * stub-objc.c: Likewise.
5632
076fecad
PP
56332015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
5634
5635 PR c++/65168
5636 * c-common.c (c_common_truthvalue_conversion): Warn when
5637 converting an address of a reference to a truth value.
5638
13fdf2e2
AM
56392015-06-08 Andrew MacLeod <amacleod@redhat.com>
5640
5641 * array-notation-common.c : Adjust include files.
5642 * c-ada-spec.c : Likewise.
5643 * c-cilkplus.c : Likewise.
5644 * c-common.c : Likewise.
5645 * c-common.h : Likewise.
5646 * c-cppbuiltin.c : Likewise.
5647 * c-dump.c : Likewise.
5648 * c-format.c : Likewise.
5649 * c-gimplify.c : Likewise.
5650 * c-indentation.c : Likewise.
5651 * c-lex.c : Likewise.
5652 * c-omp.c : Likewise.
5653 * c-opts.c : Likewise.
5654 * c-pch.c : Likewise.
5655 * c-ppoutput.c : Likewise.
5656 * c-pragma.c : Likewise.
5657 * c-pretty-print.c : Likewise.
5658 * c-semantics.c : Likewise.
5659 * c-ubsan.c : Likewise.
5660 * cilk.c : Likewise.
5661 * stub-objc.c : Likewise.
5662
a1661b90
MP
56632015-06-08 Marek Polacek <polacek@redhat.com>
5664
5665 PR c/66415
5666 * c-format.c (location_from_offset): Return LOC if LINE is null.
5667
d7438551
AH
56682015-06-05 Aldy Hernandez <aldyh@redhat.com>
5669
5670 * c-common.h (c_parse_final_cleanups): New prototype.
5671 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
5672
b3d5bc62
JJ
56732015-06-04 Sriraman Tallam <tmsriram@google.com>
5674
5675 * c-common.c (noplt): New attribute.
5676 (handle_noplt_attribute): New handler.
5677
ecb9f223
AM
56782015-06-04 Andrew MacLeod <amacleod@redhat.com>
5679
5680 * array-notation-common.c: Adjust includes for restructured coretypes.h.
5681 * c-ada-spec.c: Likewise.
5682 * c-cilkplus.c: Likewise.
5683 * c-common.c: Likewise.
5684 * c-common.h: Likewise.
5685 * c-cppbuiltin.c: Likewise.
5686 * c-dump.c: Likewise.
5687 * c-format.c: Likewise.
5688 * c-gimplify.c: Likewise.
5689 * c-indentation.c: Likewise.
5690 * c-lex.c: Likewise.
5691 * c-omp.c: Likewise.
5692 * c-opts.c: Likewise.
5693 * c-pch.c: Likewise.
5694 * c-ppoutput.c: Likewise.
5695 * c-pragma.c: Likewise.
5696 * c-pretty-print.c: Likewise.
5697 * c-semantics.c: Likewise.
5698 * c-ubsan.c: Likewise.
5699 * cilk.c: Likewise.
5700 * stub-objc.c: Likewise.
5701
6ac48155
DM
57022015-06-02 David Malcolm <dmalcolm@redhat.com>
5703
5704 PR c/66220:
5705 * c-indentation.c (should_warn_for_misleading_indentation): Use
5706 expand_location rather than expand_location_to_spelling_point.
5707 Don't warn if the guarding statement is more indented than the
5708 next/body stmts.
5709
773ce42e
DM
57102015-06-02 David Malcolm <dmalcolm@redhat.com>
5711
5712 * c-indentation.c (warn_for_misleading_indentation): Bail out
5713 immediately if -Wmisleading-indentation isn't enabled.
5714
4fef8379
ML
57152015-06-01 Martin Liska <mliska@suse.cz>
5716
5717 * c-format.c (check_format_arg):Use new type-based pool allocator.
5718 (check_format_info_main) Likewise.
5719
1edfb384
EB
57202015-05-31 Eric Botcazou <ebotcazou@adacore.com>
5721
5722 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
5723 (has_nontrivial_methods): Likewise.
5724
9677ef52
MP
57252015-05-25 Marek Polacek <polacek@redhat.com>
5726
5727 * c-ubsan.c (ubsan_instrument_shift): Use type0.
5728
fd5c817a
MP
57292015-05-22 Marek Polacek <polacek@redhat.com>
5730
5731 PR c/47043
5732 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
5733
a2f45fe6 57342015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
581edfa3
TS
5735
5736 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
5737 STACK_GROWS_DOWNWARD.
5738
a2f45fe6 57392015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
62f9f30b
TS
5740
5741 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
5742 STACK_GROWS_DOWNWARD rather than if it is defined.
5743
0fee2ac2 57442015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
b1726d6c 5745
0fee2ac2
MLI
5746 PR c/52952
5747 * c-format.c (location_column_from_byte_offset): New.
5748 (location_from_offset): New.
5749 (struct format_wanted_type): Add offset_loc field.
5750 (check_format_info): Move handling of location for extra arguments
5751 closer to the point of warning.
5752 (check_format_info_main): Pass the result of location_from_offset
5753 to warning_at.
5754 (format_type_warning): Pass the result of location_from_offset
5755 to warning_at.
5756
cf4ef6f7
MP
57572015-05-20 Marek Polacek <polacek@redhat.com>
5758
5759 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
5760
3a65ee74
MP
57612015-05-20 Marek Polacek <polacek@redhat.com>
5762
5763 * c-ada-spec.c (dump_sloc): Use DECL_P.
5764
21b634ae
MP
57652015-05-20 Marek Polacek <polacek@redhat.com>
5766
5767 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
5768 * c-common.c: Likewise.
5769
0e50b624
DM
57702015-05-19 David Malcolm <dmalcolm@redhat.com>
5771
5772 * c-common.h (fe_file_change): Strengthen param from
5773 const line_map * to const line_map_ordinary *.
5774 (pp_file_change): Likewise.
5775 * c-lex.c (fe_file_change): Likewise.
5776 (cb_define): Use linemap_check_ordinary when invoking
5777 SOURCE_LINE.
5778 (cb_undef): Likewise.
5779 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
5780 invoking cb_file_change.
5781 (c_finish_options): Likewise.
5782 (push_command_line_include): Likewise.
5783 (cb_file_change): Strengthen param "new_map" from
5784 const line_map * to const line_map_ordinary *.
5785 * c-ppoutput.c (cb_define): Likewise for local "map".
5786 (pp_file_change): Likewise for param "map" and local "from".
5787
fab27f52
MM
57882015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
5789
5790 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
5791
2fe1d762
TV
57922015-05-18 Tom de Vries <tom@codesourcery.com>
5793
5794 * c-common.c (build_va_arg_1): New function.
5795 (build_va_arg): Add address operator to va_list operand if necessary.
5796
7a37fa90
MM
57972015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
5798
5799 PR c/48956
5800 * c-common.c (int_safely_convertible_to_real_p): Define.
5801 (unsafe_conversion_p): Check conversions involving complex types.
5802 (conversion_warning): Add new warning message for conversions which
5803 discard imaginary component.
5804 * c-common.h: (enum conversion_safety): Add new enumerator for such
5805 conversions.
5806
3aa3c9fc
MP
58072015-05-14 Marek Polacek <polacek@redhat.com>
5808
5809 PR c/66066
5810 PR c/66127
5811 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
5812 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
5813 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
5814 use it. If FOR_INT_CONST, require that all evaluated operands be
5815 INTEGER_CSTs.
5816
c3388e62
DM
58172015-05-12 David Malcolm <dmalcolm@redhat.com>
5818
5819 * c-common.h (warn_for_misleading_indentation): New prototype.
5820 * c-indentation.c: New file.
5821 * c.opt (Wmisleading-indentation): New option.
5822
c7b38fd5
TV
58232015-05-12 Tom de Vries <tom@codesourcery.com>
5824
5825 PR tree-optimization/66010
5826 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
5827
381bf11e
JM
58282015-05-09 Jason Merrill <jason@redhat.com>
5829
edff0c06
JM
5830 * c-opts.c (c_common_post_options): Also clear
5831 cpp_opts->cpp_warn_cxx11_compat.
5832
129211bc
JM
5833 * c-common.h (enum cxx_dialect): Add cxx_unset.
5834 * c-common.c (cxx_dialect): Initialize to cxx_unset.
5835 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
5836
381bf11e
JM
5837 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
5838 (std=gnu++0x): Mark as Undocumented.
5839 (std=gnu++1y): Add deprecated message.
5840
fe191308
JM
58412015-05-08 Jason Merrill <jason@redhat.com>
5842
765189ff
JM
5843 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
5844 * c-opts.c: Adjust.
5845
fe191308
JM
5846 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
5847
755e528f
MP
58482015-05-08 Marek Polacek <polacek@redhat.com>
5849
5850 PR c/64918
5851 * c.opt (Woverride-init-side-effects): New option.
5852
0173bd2a
MP
58532015-05-07 Marek Polacek <polacek@redhat.com>
5854
5855 PR c/65179
5856 * c-common.c (c_fully_fold_internal): Warn when left shifting a
5857 negative value.
5858 * c.opt (Wshift-negative-value): New option.
5859 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
5860 when -Wextra and C99/C++11 mode.
5861
e0f0d3b9
MP
58622015-05-07 Marek Polacek <polacek@redhat.com>
5863 Martin Uecker <uecker@eecs.berkeley.edu>
5864
5865 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
5866 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
5867
8243e2a9
JM
58682015-05-05 Jason Merrill <jason@redhat.com>
5869
5870 * c.opt (Wterminate): New.
5871
577cd070
MP
58722015-04-30 Marek Polacek <polacek@redhat.com>
5873
5874 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
5875 require that the non-constant be of a boolean type.
5876
0373796b
JT
58772015-04-29 Josh Triplett <josh@joshtriplett.org>
5878
e0f0d3b9
MP
5879 * c-common.c (handle_section_attribute): Refactor to reduce
5880 nesting and distinguish between error cases.
0373796b 5881
716c0ba6
MP
58822015-04-29 Marek Polacek <polacek@redhat.com>
5883
5884 PR c/64610
5885 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
5886 with 0/1.
5887
8848828b
JJ
58882015-04-29 Jakub Jelinek <jakub@redhat.com>
5889
5890 * c-common.h (omp_clause_mask): Unconditionally define as a class.
5891 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
5892 HOST_BITS_PER_WIDE_INT.
5893
ecd0e562
TV
58942015-04-28 Tom de Vries <tom@codesourcery.com>
5895
5896 PR tree-optimization/65887
5897 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
5898
2a877204 58992015-04-28 Eric Botcazou <ebotcazou@adacore.com>
e0f0d3b9 5900 Pierre-Marie de Rodat <derodat@adacore.com>
2a877204
EB
5901
5902 * c-ada-spec.c (in_function): Delete.
5903 (dump_generic_ada_node): Do not change in_function and remove the
5904 redundant code dealing with it.
5905 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
5906 (print_ada_methods): Output the static member functions in a nested
5907 package after the regular methods as well as associated renamings.
5908
4853031e
MP
59092015-04-24 Marek Polacek <polacek@redhat.com>
5910
5911 PR c/65830
5912 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
5913 and OPT_Wshift_count_overflow.
5914
8c2b7f79
MP
5915 PR c/63357
5916 * c-common.c (warn_logical_operator): Warn if the operands have the
5917 same expressions.
5918
b8787813
MP
59192015-04-24 Marek Polacek <polacek@redhat.com>
5920
5921 PR c/61534
5922 * c-common.c (warn_logical_operator): Bail if either operand comes
5923 from a macro expansion.
5924
8fba1830
BRF
59252015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
5926
5927 PR target/55143
5928 * c-common.c (c_default_pointer_mode): Add definition.
5929 * c-common.h (c_default_pointer_mode): Add declaration.
5930
17958621
JJ
59312015-03-11 Jakub Jelinek <jakub@redhat.com>
5932
5933 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
5934 on record_builtin_type argument.
5935
7ccb1a11
JJ
59362015-03-10 Jakub Jelinek <jakub@redhat.com>
5937
5938 PR c/65120
5939 * c-common.c (warn_logical_not_parentheses): Don't warn for
5940 !x == 0 or !x != 0.
5941
04fd785e
MP
59422015-03-07 Marek Polacek <polacek@redhat.com>
5943
5944 PR sanitizer/65280
5945 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
5946 before trying to figure out whether we have a flexible array member.
5947
a4e26206 59482015-03-06 Eric Botcazou <ebotcazou@adacore.com>
8e745a17 5949 Jonathan Wakely <jwakely.gcc@gmail.com>
a4e26206
EB
5950
5951 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
5952
0d2489f4
EB
59532015-03-05 Eric Botcazou <ebotcazou@adacore.com>
5954
5955 PR ada/65319
5956 * c-ada-spec.c (print_destructor): Remove obsolete code.
5957
83ed54d7
EB
59582015-03-01 Eric Botcazou <ebotcazou@adacore.com>
5959
5960 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
5961 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
5962 DECL_TEMPLATE_RESULT emulations.
5963 (dump_ada_template)): Add guard for TYPE_METHODS.
5964
7631f0e2
MP
59652015-02-27 Marek Polacek <polacek@redhat.com>
5966
5967 PR c/65040
5968 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
5969
d1783ae5
KT
59702015-02-27 Kai Tietz <ktietz@redhat.com>
5971
5972 PR c/35330
5973 * c-pragma.c (handle_pragma_weak): Do not try to create
5974 weak/alias of declarations not being function, or variable
5975 declarations.
5976
56a9f6bc
TS
59772015-02-24 Thomas Schwinge <thomas@codesourcery.com>
5978
5979 PR libgomp/64625
5980 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
5981 Remove macros.
5982 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
5983
3d5cb23d
MP
59842015-02-16 Marek Polacek <polacek@redhat.com>
5985
5986 PR c/65066
5987 * c-format.c (check_format_types): Handle null param.
5988
fa008882
MP
59892015-02-13 Marek Polacek <polacek@redhat.com>
5990
5991 PR c/65040
5992 * c-format.c (check_format_types): Don't warn about different
5993 signedness if the original value is in the range of WANTED_TYPE.
5994
785f21af
JM
59952015-02-12 Jason Merrill <jason@redhat.com>
5996
5997 PR c++/64956
5998 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
5999 to the current highest version.
6000 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
6001
4886ec8e
JJ
60022015-02-04 Jakub Jelinek <jakub@redhat.com>
6003
6004 PR c/64824
6005 PR c/64868
6006 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
6007 instead of RDIV_EXPR. Use build_binary_op instead of
6008 build2_loc.
6009
40fecdd6
JM
60102015-01-30 Joseph Myers <joseph@codesourcery.com>
6011
6012 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
6013 to pass input_location as first argument.
6014
a0c88d06
TV
60152015-01-23 Tom de Vries <tom@codesourcery.com>
6016
6017 PR libgomp/64672
6018 * c.opt (fopenacc): Mark as LTO option.
6019
1506ae0e
TV
60202015-01-23 Tom de Vries <tom@codesourcery.com>
6021
6022 PR libgomp/64707
6023 * c.opt (fopenmp): Mark as LTO option.
6024
31be63ab
JJ
60252015-01-21 Jakub Jelinek <jakub@redhat.com>
6026
6027 PR c/63307
b1726d6c 6028 * cilk.c (fill_decls_vec): Only put decls into vector v.
31be63ab
JJ
6029 (compare_decls): Fix up formatting.
6030
60312015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
6032
6033 PR c/63307
6034 * cilk.c: Include vec.h.
6035 (struct cilk_decls): New structure.
6036 (wrapper_parm_cb): Split this function to...
6037 (fill_decls_vec): ...this...
6038 (create_parm_list): ...and this.
6039 (compare_decls): New function.
6040 (for_local_cb): Remove.
6041 (wrapper_local_cb): Ditto.
6042 (build_wrapper_type): For now first traverse and fill vector of
6043 declarations then sort it and then deal with sorted vector.
6044 (cilk_outline): Ditto.
6045 (declare_one_free_variable): Ditto.
6046
6875457f
JM
60472015-01-21 Jason Merrill <jason@redhat.com>
6048
6049 PR c++/64629
6050 * c-format.c (check_format_arg): Call decl_constant_value.
6051
185c9e56
ML
60522015-01-19 Martin Liska <mliska@suse.cz>
6053
6054 * c-common.c (handle_noicf_attribute): New function.
6055
41dbbb37
TS
60562015-01-15 Thomas Schwinge <thomas@codesourcery.com>
6057 Bernd Schmidt <bernds@codesourcery.com>
6058 James Norris <jnorris@codesourcery.com>
6059 Cesar Philippidis <cesar@codesourcery.com>
6060 Ilmir Usmanov <i.usmanov@samsung.com>
6061 Jakub Jelinek <jakub@redhat.com>
6062
6063 * c.opt (fopenacc): New option.
6064 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
6065 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
6066 New macros.
6067 * c-common.h (c_finish_oacc_wait): New prototype.
6068 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
6069 (c_finish_oacc_wait): New function.
6070 * c-pragma.c (oacc_pragmas): New variable.
6071 (c_pp_lookup_pragma, init_pragma): Handle it.
6072 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
6073 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
6074 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
6075 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
6076 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
6077 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
6078 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
6079 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
6080 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
6081 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
6082 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
6083 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
6084 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
6085 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
6086 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
6087 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
6088 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
6089 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
6090 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
6091 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
6092 PRAGMA_OACC_CLAUSE_WORKER.
6093
3f8257db 60942015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
5434dc07
MD
6095
6096 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
6097 for the new option fstack-protector_explicit.
6098 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
6099 (handle_stack_protect_attribute): New function.
6100
3f8257db 61012015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
de1b5c17
MU
6102
6103 * c.opt: New option -Warray-bounds=.
6104
adfac8df
JJ
61052015-01-09 Michael Collison <michael.collison@linaro.org>
6106
6107 * array-notation-common.c: Include hash-set.h, machmode.h,
6108 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
6109 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
6110 * c-ada-spec.c: Ditto.
6111 * c-cilkplus.c: Ditto.
6112 * c-common.c: Include input.h due to flattening of tree.h.
6113 Define macro GCC_C_COMMON_C.
6114 * c-common.h: Flatten tree.h header files into c-common.h.
6115 Remove include of tree-core.h.
6116 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
6117 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
6118 fold-const.h, wide-int.h, and inchash.h due to
6119 flattening of tree.h.
6120 * c-dump.c: Ditto.
6121 * c-format.c: Flatten tree.h header files into c-common.h.
6122 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
6123 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
6124 fold-const.h, wide-int.h, and inchash.h due to
6125 flattening of tree.h.
6126 * c-dump.c: Include hash-set.h, machmode.h,
6127 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
6128 fold-const.h, wide-int.h, and inchash.h due to
6129 flattening of tree.h.
6130 * c-format.c: Include hash-set.h, machmode.h,
6131 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
6132 fold-const.h, wide-int.h, inchash.h and real.h due to
6133 flattening of tree.h.
6134 * c-gimplify.c: Include hash-set.h, machmode.h,
6135 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
6136 fold-const.h, wide-int.h, and inchash.h due to
6137 flattening of tree.h.
6138 * cilk.c: Ditto.
6139 * c-lex.c: Ditto.
6140 * c-omp.c: Ditto.
6141 * c-opts.c: Ditto.
6142 * c-pch.c: Ditto.
6143 * c-ppoutput.c: Ditto.
6144 * c-pragma.c: Ditto.
6145 * c-pretty-print.c: Ditto.
6146 * c-semantics.c: Ditto.
6147 * c-ubsan.c: Ditto.
6148 * stub-objc.c: Ditto.
6149
f5481fc4
JM
61502015-01-08 Jason Merrill <jason@redhat.com>
6151
6152 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
6153 do_ubsan_in_current_function.
6154 (ubsan_maybe_instrument_reference_or_call): Likewise.
6155 * c-ubsan.h: Declare it.
6156
de35aa66
MS
61572015-01-08 Mike Stump <mikestump@comcast.net>
6158
6159 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
6160
4a9a42ab
MP
61612015-01-07 Marek Polacek <polacek@redhat.com>
6162
6163 PR c/64440
6164 * c-common.c (c_fully_fold_internal): Warn for division and modulo
6165 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
6166
2f42e5de
TS
61672015-01-05 Trevor Saunders <tsaunders@mozilla.com>
6168
6169 PR c++/31397
6170 * c.opt (Wsuggest-override): New option.
6171
5624e564
JJ
61722015-01-05 Jakub Jelinek <jakub@redhat.com>
6173
6174 Update copyright years.
6175
5bd012f8
MP
61762015-01-05 Marek Polacek <polacek@redhat.com>
6177
6178 PR c/64423
6179 * c-common.c (warn_array_subscript_with_type_char): Add location_t
6180 parameter. Use it.
6181 * c-common.h (warn_array_subscript_with_type_char): Update
6182 declaration.
6183
a7fa8d18
ESR
61842014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
6185
6186 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
6187 Control macro with flag_sized_deallocation.
6188
3f8257db 61892014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
768952be
MU
6190
6191 * c.opt (Wdiscarded-array-qualifiers): New option.
6192
1f8d3e84
JJ
61932014-12-19 Jakub Jelinek <jakub@redhat.com>
6194
6195 PR preprocessor/63831
6196 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
6197 and __has_cpp_attribute here.
6198 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
6199 c_common_has_attribute.
6200 * c-common.h (c_common_has_attribute): New prototype.
6201 * c-lex.c (init_c_lex): Set cb->has_attribute to
6202 c_common_has_attribute instead of cb_has_attribute.
6203 (get_token_no_padding): New function.
6204 (cb_has_attribute): Renamed to ...
6205 (c_common_has_attribute): ... this. No longer static. Use
6206 get_token_no_padding, require ()s, don't build TREE_LIST
6207 unnecessarily, fix up formatting, adjust diagnostics, call
6208 init_attributes.
6209
20b06add
JM
62102014-12-15 Jason Merrill <jason@redhat.com>
6211
6212 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
6213 (-Wsized-deallocation): New.
6214 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
6215 to on in C++14 and up.
6216
94a073b2
JM
62172014-12-11 Jason Merrill <jason@redhat.com>
6218
acaa5911
JM
6219 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
6220
94a073b2
JM
6221 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
6222 we aren't complaining about VLAs.
6223
7fb66c15
MP
62242014-12-06 Marek Polacek <polacek@redhat.com>
6225
6226 PR tree-optimization/64183
6227 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
6228 shift-expression if it is integer_type_node. Use types_compatible_p.
6229
b731b390
JJ
62302014-11-29 Jakub Jelinek <jakub@redhat.com>
6231
6232 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
6233 last argument from create_tmp_var_raw and create_tmp_var calls.
6234 * cilk.c (gimplify_cilk_spawn): Likewise.
6235 * c-omp.c (c_finish_omp_atomic): Likewise.
6236
6a4da643
MP
62372014-11-28 Marek Polacek <polacek@redhat.com>
6238
6239 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
6240 instead of unsigned_type_node.
6241
541e35a6
MP
62422014-11-28 Marek Polacek <polacek@redhat.com>
6243
6244 PR c/63862
6245 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
6246 to op1_utype.
6247 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
6248 expression to unsigned_type_node.
6249
dcc97066
MW
62502014-11-20 Mark Wielaard <mjw@redhat.com>
6251
6252 PR debug/38757
6253 * c-opts.c (set_std_c89): Set lang_hooks.name.
6254 (set_std_c99): Likewise.
6255 (set_std_c11): Likewise.
6256 (set_std_cxx98): Likewise.
6257 (set_std_cxx11): Likewise.
6258 (set_std_cxx14): Likewise.
6259 (set_std_cxx1z): Likewise.
6260
aa7da51a
JJ
62612014-11-21 Jakub Jelinek <jakub@redhat.com>
6262
6263 PR target/63764
6264 * c-common.h (convert_vector_to_pointer_for_subscript): Change
6265 return type to bool.
009a3480 6266 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
6267 (convert_vector_to_pointer_for_subscript): Change return type to
6268 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
6269 and copy it into a TARGET_EXPR and use that instead of *vecp
6270 directly.
6271
538dd0b7
DM
62722014-11-19 David Malcolm <dmalcolm@redhat.com>
6273
6274 Merger of git branch "gimple-classes-v2-option-3".
6275 * ChangeLog.gimple-classes: New.
6276 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
6277 from being just a vec<gimple> to a vec<gbind *>.
6278
c39a5e99
JJ
62792014-11-18 Jakub Jelinek <jakub@redhat.com>
6280
6281 PR sanitizer/63813
6282 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
6283 argument to ptype, set type to TREE_TYPE (ptype). Don't call
6284 get_pointer_alignment for non-pointers. Use ptype, or if it is
6285 reference type, corresponding pointer type, as type of kind
6286 argument.
6287 (ubsan_maybe_instrument_reference,
6288 ubsan_maybe_instrument_member_call): Adjust callers.
6289
8537a4a9
MP
62902014-11-15 Marek Polacek <polacek@redhat.com>
6291
6292 PR middle-end/63884
6293 * array-notation-common.c (is_sec_implicit_index_fn): Return false
6294 for NULL fndecl.
6295 (extract_array_notation_exprs): Return for NULL node.
6296
2079956a
JM
62972014-11-12 Joseph Myers <joseph@codesourcery.com>
6298
6299 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
6300 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
6301
1304953e
JJ
63022014-11-12 Jakub Jelinek <jakub@redhat.com>
6303
6304 PR c/59708
6305 * c-common.c (check_builtin_function_arguments): Handle
6306 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
6307
e5e44252
AK
63082014-11-10 Andi Kleen <ak@linux.intel.com>
6309
6310 PR c/60804
6311 * c-common.h (check_no_cilk): Declare.
6312 * cilk.c (get_error_location): New function.
6313 (check_no_cilk): Dito.
6314
e64b984d
AK
63152014-11-10 Andi Kleen <ak@linux.intel.com>
6316
6317 * cilk.c (recognize_spawn): Use expression location
6318 for error message.
6319
13c21655
PC
63202014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
6321
6322 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
6323
42fd12b1
ESR
63242014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
6325
6326 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
6327 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
6328 (__cpp_range_based_for, __cpp_initializer_lists,
6329 __cpp_delegating_constructors, __cpp_nsdmi,
6330 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
6331 for C++11; (__cpp_attribute_deprecated): Remove in favor of
6332 __has_cpp_attribute.
6333 * c-lex.c (cb_has_attribute): New callback CPP function;
6334 (init_c_lex): Set has_attribute callback.
6335
6f450181
RB
63362014-11-04 Richard Biener <rguenther@suse.de>
6337
6338 * c-common.c (shorten_compare): Do not shorten mixed
6339 DFP and non-DFP compares.
6340
26f0e1d6
ESR
63412014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
6342
6343 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
6344 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
6345 Commentary and rearrangement of tests.
6346 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
6347 Commentary and rearrangement of tests.
ab20d992 6348 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto.
26f0e1d6
ESR
6349 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
6350
ef4bddc2
RS
63512014-10-29 Richard Sandiford <richard.sandiford@arm.com>
6352
6353 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
6354 enum from machine_mode.
6355
c582198b
AM
63562014-10-28 Andrew MacLeod <amacleod@redhat.com>
6357
adfac8df
JJ
6358 * c-common.c: Adjust include files.
6359 * c-gimplify.c: Ditto.
6360 * cilk.c: Ditto.
6361 * c-pragma.c: Ditto.
6362 * c-ubsan.c: Ditto.
c582198b 6363
60393bbc
AM
63642014-10-27 Andrew MacLeod <amacleod@redhat.com>
6365
6366 * c-gimplify.c: Adjust include files.
6367
d723bb7c
MLI
63682014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
6369
6370 PR c++/53061
6371 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
6372 c_common_initialize_diagnostics.
6373 * c-common.h: Likewise.
6374
90f3520e
MP
63752014-10-24 Marek Polacek <polacek@redhat.com>
6376
6377 PR c/56980
6378 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
6379 print "struct"/"union"/"enum" for typedefed names.
6380
59d7607a
MP
63812014-10-23 Marek Polacek <polacek@redhat.com>
6382
6383 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
6384 in unsigned type.
6385
d95a2703
JJ
63862014-10-22 Jakub Jelinek <jakub@redhat.com>
6387 Yury Gribov <y.gribov@samsung.com>
6388
6389 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
6390 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
6391 instead of flag_sanitize_recover as bool flag.
6392
8e6ef852
KY
63932014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
6394
6395 * cilk.c: Revert previous change.
6396
948cf550
IZ
63972014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
6398
6399 PR c/63307
6400 * cilk.c: Include vec.h.
6401 (struct cilk_decls): New structure.
6402 (wrapper_parm_cb): Split this function to...
6403 (fill_decls_vec): ...this...
6404 (create_parm_list): ...and this.
6405 (compare_decls): New function.
6406 (for_local_cb): Remove.
6407 (wrapper_local_cb): Ditto.
6408 (build_wrapper_type): For now first traverse and fill vector of
6409 declarations then sort it and then deal with sorted vector.
6410 (cilk_outline): Ditto.
6411 (declare_one_free_variable): Ditto.
6412
92574c7c
MP
64132014-10-17 Marek Polacek <polacek@redhat.com>
6414
6415 * c-opts.c (c_common_post_options): Set warn_implicit_int.
6416 * c.opt (Wimplicit-int): Initialize to -1.
6417
83685514
AM
64182014-10-16 Andrew MacLeod <amacleod@redhat.com>
6419
6420 * c-pragma.c: Adjust include files.
6421 * c-semantics.c: Likewise.
6422
5b8300ea
DD
64232014-10-16 DJ Delorie <dj@redhat.com>
6424
6425 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
6426 multiples of bytes.
6427
5f83e90b
JM
64282014-10-14 Jason Merrill <jason@redhat.com>
6429
6430 PR c++/63455
6431 * c-common.h (CPP_PREPARSED_EXPR): New.
6432 (N_CP_TTYPES): Adjust.
6433
d73326ca
MP
64342014-10-15 Marek Polacek <polacek@redhat.com>
6435
6436 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
6437
78a7c317
DD
64382014-10-14 DJ Delorie <dj@redhat.com>
6439
6440 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
6441 types, not just __int128.
6442 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
6443 types, not just __int128.
6444 (cpp_atomic_builtins): Round pointer sizes up.
6445 (type_suffix): Use type precision, not specific types.
6446 * c-common.c (c_common_reswords): Remove __int128 special case.
6447 (c_common_type_for_size): Check for all __intN types, not just
6448 __int128.
6449 (c_common_type_for_mode): Likewise.
6450 (c_common_signed_or_unsigned_type): Likewise.
6451 (c_build_bitfield_integer_type): Likewise.
6452 (c_common_nodes_and_builtins): Likewise.
6453 (keyword_begins_type_specifier): Likewise.
6454 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
6455 __intN variants.
6456
2a22f99c
TS
64572014-10-12 Trevor Saunders <tsaunders@mozilla.com>
6458
6459 * c-common.c: Use hash_table instead of hashtab.
6460
2a8ef767
ESR
64612014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
6462
adfac8df 6463 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
6464 C++11 section.
6465
3c9aabbd
MG
64662014-10-03 Marc Glisse <marc.glisse@inria.fr>
6467
6468 PR c++/54427
6469 PR c++/57198
6470 PR c++/58845
6471 * c-common.c (warn_logical_operator): Punt for vectors.
6472
a15f7cb8
ESR
64732014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
6474
6475 Implement SD-6: SG10 Feature Test Recommendations
6476 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
6477 macros and the __has_header macro.
6478
8d0cf15e
JM
64792014-09-30 Jason Merrill <jason@redhat.com>
6480
dd5d5481
JM
6481 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
6482 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
6483 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
6484
b752325e
JM
6485 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
6486 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
6487
8d0cf15e
JM
6488 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
6489 * c-common.c (c_common_reswords): Remove __is_convertible_to.
6490
083e891e
MP
64912014-09-24 Marek Polacek <polacek@redhat.com>
6492
6493 PR c/61405
6494 PR c/53874
6495 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
6496
7861b648
AK
64972014-09-23 Andi Kleen <ak@linux.intel.com>
6498
6499 * c-common.c (handle_no_reorder_attribute): New function.
6500 (c_common_attribute_table): Add no_reorder attribute.
6501
9a79452d
JM
65022014-09-22 Joseph Myers <joseph@codesourcery.com>
6503
6504 * c-cppbuiltin.c (c_cpp_builtins): Define
6505 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
6506 modes.
6507
dd69f047
JM
65082014-09-18 Joseph Myers <joseph@codesourcery.com>
6509
6510 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
6511 for supported floating-point modes.
6512
737a4826
MLI
65132014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6514
6515 * c.opt (Wpsabi): Use LangEnabledBy.
6516 * c-opts.c (c_common_handle_option): Do not handle here.
6517
8cc4b7a2
JM
65182014-09-12 Joseph Myers <joseph@codesourcery.com>
6519
6520 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
6521 macros for floating-point modes.
6522
179b5a55
MG
65232014-09-11 Marc Glisse <marc.glisse@inria.fr>
6524
6525 PR target/58757
6526 * c-cppbuiltin.c (builtin_define_float_constants): Correct
6527 __*_DENORM_MIN__ without denormals.
6528
570a11fe
JJ
65292014-09-10 Jakub Jelinek <jakub@redhat.com>
6530
6531 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
6532 ubsan_instrument_vla, ubsan_instrument_return): Adjust
6533 ubsan_create_data callers.
6534 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
6535 index is constant or BIT_AND_EXPR with constant mask and is
6536 small enough for the bound.
6537 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
6538 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
6539
b559c810
MLI
65402014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
6541
6542 * c.opt: Add CppReason to various flags.
6543 (Wdate-time): Re-sort.
6544 * c-common.c: Include c-common.h earlier.
6545 (struct reason_option_codes_t): Delete.
6546 (c_option_controlling_cpp_error): Prefix global type and struct
6547 with cpp_.
6548
1ef33fd4
MLI
65492014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
6550
6551 * c.opt (Wnormalized): New.
6552 (Wnormalized=): Use Enum and Reject Negative.
6553 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
6554
66bb34c0
JM
65552014-09-08 Joseph Myers <joseph@codesourcery.com>
6556
6557 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
6558 digits of floating-point modes if -fbuilding-libgcc.
6559
53d68b9f
JM
65602014-09-05 Joseph Myers <joseph@codesourcery.com>
6561
6562 * c-cppbuiltin.c (c_cpp_builtins): Also define
6563 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
6564 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
6565 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
6566 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
6567 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
6568 __LIBGCC_STACK_GROWS_DOWNWARD__,
6569 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
6570 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
6571 __LIBGCC_DWARF_FRAME_REGISTERS__,
6572 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
6573 __LIBGCC_STACK_POINTER_REGNUM__ and
6574 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
6575 (builtin_define_with_value): Handle backslash-escaping in string
6576 macro values.
6577
f65586dc
RB
65782014-09-05 Richard Biener <rguenther@suse.de>
6579
6580 PR middle-end/63148
6581 * c-format.c (check_format_arg): Properly handle
6582 effectively signed POINTER_PLUS_EXPR offset.
6583
2b71f4a4
MLI
65842014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
6585
6586 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
6587 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
6588 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
6589 and Init.
6590 * c-opts.c (c_common_handle_option): Do not handle here.
6591 (sanitize_cpp_opts): Likewise.
6592 * c-common.c (struct reason_option_codes_t): Handle
6593 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
6594
d2e4feca
MP
65952014-09-03 Marek Polacek <polacek@redhat.com>
6596
6597 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
6598
9a771876
JJ
65992014-09-02 Jakub Jelinek <jakub@redhat.com>
6600 Balaji V. Iyer <balaji.v.iyer@intel.com>
6601 Igor Zamyatin <igor.zamyatin@intel.com>
6602
6603 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
6604 * c-common.c (c_common_reswords): Added _Cilk_for.
6605 * c-common.h (enum rid): Added RID_CILK_FOR.
6606 (cilk_for_number_of_iterations): Add declaration.
6607 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
6608 CILK_FOR.
6609 * c-pragma.c (init_pragma): Register "grainsize" pragma.
6610 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
6611
81b5d104
MLI
66122014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
6613
6614 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
6615 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
6616 Wundef): Use CPP, Var and Init.
6617 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
6618
b753b37b
MLI
66192014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
6620
6621 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
6622 * c-opts.c (c_common_handle_option): Do not handle here.
6623
028aee17
JM
66242014-08-25 Jason Merrill <jason@redhat.com>
6625
6626 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
6627 -std=c++14 and -std=gnu++14, rather than the reverse.
6628 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
6629 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
6630 * c-common.h (cxx_dialect): Remove cxx1y.
6631
e4276ba5
ESR
66322014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
6633
6634 * c-common.h (enum cxx_dialect): Add cxx14.
6635 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
6636 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
6637 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
6638
a545cacd
JM
66392014-08-22 Jason Merrill <jason@redhat.com>
6640
6641 * c.opt (std=gnu++17): Fix alias.
6642
59ea0364
MP
66432014-08-22 Marek Polacek <polacek@redhat.com>
6644
6645 PR c++/62199
6646 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
6647 check for vector types. Drop LHS argument.
6648 * c-common.h (warn_logical_not_parentheses): Adjust.
6649
596e808c
MLI
66502014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
6651
6652 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
6653 (Wmultichar): Likewise.
6654 (Wdate-time): Use C-family languages instead of Common. Use CPP
6655 and Var.
6656 * c-opts.c (c_common_handle_option): Do not handle the above
6657 options here.
6658 (sanitize_cpp_opts): Likewise.
6659
18767f65
MLI
66602014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
6661
6662 PR fortran/44054
6663 * c-opts.c: Include tree-diagnostics.h.
6664 (c_diagnostic_finalizer): New.
6665 (c_common_initialize_diagnostics): Use it.
6666
b4413594
MLI
66672014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
6668
6669 PR preprocessor/51303
6670 * c-common.c (struct reason_option_codes_t option_codes):
6671 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
6672
43f9a13c
MLI
66732014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
6674
6675 PR c/60975
6676 PR c/53063
6677 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
6678 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
6679 (c_common_post_options): Call init_global_opts_from_cpp.
6680 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
6681
04159acf
MP
66822014-08-19 Marek Polacek <polacek@redhat.com>
6683
6684 PR c++/62153
6685 * c-common.c (maybe_warn_bool_compare): New function.
6686 * c-common.h (maybe_warn_bool_compare): Declare.
6687 * c.opt (Wbool-compare): New option.
6688
35aff4fb
MP
66892014-08-19 Marek Polacek <polacek@redhat.com>
6690
6691 * c.opt (Wc99-c11-compat): New option.
6692
177cce46
MP
66932014-08-19 Marek Polacek <polacek@redhat.com>
6694
6695 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
6696 to warn_c90_c99_compat.
6697 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
6698 to -1.
6699
6ae9194f
MLI
67002014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
6701 Steven Bosscher <steven@gcc.gnu.org>
6702
6703 PR c/52952
6704 * c-format.c: Add extra_arg_loc and format_string_loc to struct
6705 format_check_results.
6706 (check_function_format): Use true and add comment for boolean
6707 argument.
6708 (finish_dollar_format_checking): Use explicit location when warning.
6709 (check_format_info): Likewise.
6710 (check_format_arg): Set extra_arg_loc and format_string_loc.
6711 (check_format_info_main): Use explicit location when warning.
6712 (check_format_types): Pass explicit location.
6713 (format_type_warning): Likewise.
6714
8e54f6d3
MLI
67152014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6716
6717 PR fortran/44054
6718 * c-format.c: Handle Fortran flags.
6719
cd4e76fc
IZ
67202014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
6721
6722 PR other/61962
6723 * array-notation-common.c (find_rank): Added handling for other
6724 types of references.
6725
f3bede71
MP
67262014-08-10 Marek Polacek <polacek@redhat.com>
6727
6728 PR c/51849
6729 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
6730 * c.opt (Wc90-c99-compat): Add option.
6731
9f25a338
TS
67322014-08-07 Trevor Saunders <tsaunders@mozilla.com>
6733
6734 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
6735
62e4eb35
MP
67362014-08-03 Marek Polacek <polacek@redhat.com>
6737
ab20d992 6738 * c-common.c (check_case_value): Add location_t parameter. Use it.
62e4eb35
MP
6739 (c_add_case_label): Pass loc to check_case_value.
6740
b787e7a2
TS
67412014-08-02 Trevor Saunders <tsaunders@mozilla.com>
6742
6743 * cilk.c: Use hash_map instead of pointer_map.
6744
6e2830c3
TS
67452014-08-02 Trevor Saunders <tsaunders@mozilla.com>
6746
6747 * c-gimplify.c: Use hash_set instead of pointer_set.
6748
a7ee52fb
IZ
67492014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
6750
6751 PR middle-end/61455
6752 * array-notation-common.c (extract_array_notation_exprs): Handling
6753 of DECL_EXPR added.
6754
944fa280
JJ
67552014-08-01 Jakub Jelinek <jakub@redhat.com>
6756
6757 * c-common.h (min_align_of_type): Removed prototype.
6758 * c-common.c (min_align_of_type): Removed.
6759 * c-ubsan.h (ubsan_maybe_instrument_reference,
6760 ubsan_maybe_instrument_member_call): New prototypes.
6761 * c-ubsan.c: Include stor-layout.h and builtins.h.
6762 (ubsan_maybe_instrument_reference_or_call,
6763 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
6764 functions.
6765
b4dfdc11
MG
67662014-07-31 Marc Glisse <marc.glisse@inria.fr>
6767
6768 PR c++/60517
6769 * c.opt (-Wreturn-local-addr): Move to common.opt.
6770
a41844e5
JM
67712014-07-30 Jason Merrill <jason@redhat.com>
6772
6773 PR c++/61659
6774 PR c++/61687
6775 Revert:
6776 * c.opt (-fuse-all-virtuals): New.
6777
976d5a22
TT
67782014-07-30 Tom Tromey <tromey@redhat.com>
6779
6780 PR c/59855
6781 * c.opt (Wdesignated-init): New option.
6782 * c-common.c (c_common_attribute_table): Add "designated_init".
6783 (handle_designated_init): New function.
6784
cdc94aca
MP
67852014-07-24 Marek Polacek <polacek@redhat.com>
6786
6787 PR c/57653
6788 * c-opts.c (c_finish_options): If -imacros is in effect, return.
6789
f41373b6
DS
67902014-07-16 Dodji Seketeli <dodji@redhat.com>
6791
6792 PR preprocessor/60723 - missing system-ness marks for macro tokens
6793 * c-ppoutput.c (struct print::prev_was_system_token): New data
6794 member.
6795 (init_pp_output): Initialize it.
6796 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
6797 (do_line_change): Return a flag saying if a line marker was
6798 emitted or not.
6799 (scan_translation_unit): Detect if the system-ness of the token we
6800 are about to emit is different from the one of the previously
6801 emitted token. If so, emit a line marker. Avoid emitting useless
6802 adjacent line markers. Avoid emitting line markers for tokens
6803 originating from the expansion of built-in macros.
6804 (scan_translation_unit_directives_only): Adjust.
6805
4d661eaa
MP
68062014-07-15 Marek Polacek <polacek@redhat.com>
6807
6808 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
6809 TYPE_MAX_VALUE is NULL.
6810
b108f48f
JJ
68112014-07-14 Jakub Jelinek <jakub@redhat.com>
6812
6813 PR middle-end/61294
6814 * c.opt (Wmemset-transposed-args): New warning.
6815
c0221884
JM
68162014-07-10 Jason Merrill <jason@redhat.com>
6817
6818 PR c++/61659
6819 PR c++/61687
6820 * c.opt (-fuse-all-virtuals): New.
6821
63dfbb95
RB
68222014-07-09 Richard Biener <rguenther@suse.de>
6823
6824 PR c-family/61741
6825 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
6826 using unsigned arithmetic if overflow does not wrap instead of
6827 if overflow is undefined.
6828
773ec47f
MP
68292014-07-06 Marek Polacek <polacek@redhat.com>
6830
6831 PR c/6940
6832 * c.opt (Wsizeof-array-argument): New option.
6833
00a7ba58
JJ
68342014-07-03 Jakub Jelinek <jakub@redhat.com>
6835
b1726d6c 6836 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
00a7ba58
JJ
6837 comments->count <= 1, as comments->entries might be NULL.
6838
52ec0ea3
MP
68392014-07-01 Marek Polacek <polacek@redhat.com>
6840
6841 * c.opt (Wint-conversion): New option.
6842
d5c3d343
MP
68432014-07-01 Marek Polacek <polacek@redhat.com>
6844
6845 PR c/58286
6846 * c.opt (Wincompatible-pointer-types): New option.
6847
6e7ceb17
PC
68482014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
6849
6850 PR c++/51400
6851 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
6852 Do not discard TYPE_QUALS of type.
6853
da73100b
JM
68542014-06-26 Jason Merrill <jason@redhat.com>
6855
6856 * c-common.h (enum cxx_dialect): Add cxx1z.
6857 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
6858 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
6859
08eedf75
TJ
68602014-06-26 Teresa Johnson <tejohnson@google.com>
6861
6862 * c-common.h (get_dump_info): Declare.
6863 * c-gimplify.c (c_genericize): Use saved dump files.
6864 * c-opts.c (c_common_parse_file): Begin and end dumps
6865 once around parsing invocation.
6866 (get_dump_info): New function.
6867
7b56b2f8
MP
68682014-06-23 Marek Polacek <polacek@redhat.com>
6869 Andrew MacLeod <amacleod@redhat.com>
6870
6871 PR c/61553
6872 * c-common.c (get_atomic_generic_size): Don't segfault if the
6873 type doesn't have a size.
6874
0e37a2f3
MP
68752014-06-20 Marek Polacek <polacek@redhat.com>
6876
6877 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
6878 (ubsan_walk_array_refs_r): New function.
6879 (c_genericize): Instrument array bounds.
6880 * c-ubsan.c: Include "internal-fn.h".
6881 (ubsan_instrument_division): Mark instrumented arrays as having
6882 side effects. Adjust ubsan_type_descriptor call.
6883 (ubsan_instrument_shift): Likewise.
6884 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
6885 (ubsan_instrument_bounds): New function.
6886 (ubsan_array_ref_instrumented_p): New function.
6887 (ubsan_maybe_instrument_array_ref): New function.
6888 * c-ubsan.h (ubsan_instrument_bounds): Declare.
6889 (ubsan_array_ref_instrumented_p): Declare.
6890 (ubsan_maybe_instrument_array_ref): Declare.
6891
68922014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
6893
6894 PR lto/61123
6895 * c.opt (fshort-enums): Add to LTO.
6896 * c.opt (fshort-wchar): Likewise.
6897
5c3d09f7
MP
68982014-06-16 Marek Polacek <polacek@redhat.com>
6899
6900 PR c/60439
6901 * c.opt (Wswitch-bool): Add Var.
6902
9cf32741
JJ
69032014-06-12 Jakub Jelinek <jakub@redhat.com>
6904
6905 PR middle-end/61486
6906 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
6907 #pragma omp target teams or
6908 #pragma omp {,target }teams distribute simd.
6909
62984918
JM
69102014-06-12 Jason Merrill <jason@redhat.com>
6911
6912 * c.opt (Wabi=, fabi-compat-version): New.
6913 * c-opts.c (c_common_handle_option): Handle -Wabi=.
6914 (c_common_post_options): Handle flag_abi_compat_version default.
6915 Disallow -fabi-compat-version=1.
6916 * c-common.h (abi_version_crosses): New.
6917
f961457f
JH
69182014-06-11 Jan Hubicka <hubicka@ucw.cz>
6919
adfac8df 6920 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
6921 section names that are no longer trees.
6922
92d28cbb
JJ
69232014-06-10 Jakub Jelinek <jakub@redhat.com>
6924
6925 PR fortran/60928
6926 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
6927 (omp_pragmas): ... back here.
6928
742938c9
MP
69292014-06-05 Marek Polacek <polacek@redhat.com>
6930
6931 PR c/49706
6932 * c-common.c (warn_logical_not_parentheses): New function.
6933 * c-common.h (warn_logical_not_parentheses): Declare.
6934 * c.opt (Wlogical-not-parentheses): New option.
6935
9d548dfb
MP
69362014-06-04 Marek Polacek <polacek@redhat.com>
6937
6938 PR c/30020
6939 * c-common.c (check_case_bounds): Add location parameter.
6940 Use it.
6941 (c_add_case_label): Pass loc to check_case_bounds.
6942
fedfecef
MP
69432014-06-03 Marek Polacek <polacek@redhat.com>
6944
6945 PR c/60439
6946 * c.opt (Wswitch-bool): New option.
6947
f6a7cffc
TS
69482014-05-22 Thomas Schwinge <thomas@codesourcery.com>
6949
040d18b6
TS
6950 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
6951 Remove prototypes.
6952 (record_types_used_by_current_var_decl): Move prototype to where
6953 it belongs.
6954
f6a7cffc
TS
6955 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
6956 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
6957 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
6958
632f2871
RS
69592014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
6960
6961 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
6962 * c-common.c (c_common_nodes_and_builtins): Don't initialize
6963 void_zero_node.
6964 * c-pretty-print.c (pp_c_void_constant): New function.
6965 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
6966 (c_pretty_printer::expression): Handle VOID_CST.
6967 * cilk.c (extract_free_variables): Likewise.
6968 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
6969 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
6970
766090c2
TS
69712014-05-17 Trevor Saunders <tsaunders@mozilla.com>
6972
6973 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
6974 * c-pragma.c (push_alignment): Adjust.
6975 (handle_pragma_push_options): Likewise.
6976
661a0813
MP
69772014-05-09 Marek Polacek <polacek@redhat.com>
6978
6979 PR c/50459
6980 * c-common.c (check_user_alignment): Return -1 if alignment is error
6981 node.
6982 (handle_aligned_attribute): Don't call default_conversion on
6983 FUNCTION_DECLs.
6984 (handle_vector_size_attribute): Likewise.
6985 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
6986 (handle_sentinel_attribute): Call default_conversion and allow even
6987 integral types as an argument.
6988
2793eeab
MP
69892014-05-08 Marek Polacek <polacek@redhat.com>
6990
6991 PR c/61053
6992 * c-common.c (min_align_of_type): New function factored out from...
6993 (c_sizeof_or_alignof_type): ...here.
6994 * c-common.h (min_align_of_type): Declare.
6995
f827930a
MP
69962014-05-08 Marek Polacek <polacek@redhat.com>
6997
6998 PR c/61077
6999 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
7000 parameter type of main.
7001
ca49b74e
DD
70022014-05-07 DJ Delorie <dj@redhat.com>
7003
7004 * c-cppbuiltin.c (print_bits_of_hex): New.
7005 (builtin_define_type_minmax): Print values using hex so as not to
7006 require a pre-computed list of string values.
7007
1d60af08
KZ
70082014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
7009 Mike Stump <mikestump@comcast.net>
7010 Richard Sandiford <rdsandiford@googlemail.com>
7011
7012 * c-ada-spec.c: Include wide-int.h.
7013 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
7014 (dump_generic_ada_node): Use wide-int interfaces.
7015 * c-common.c: Include wide-int-print.h.
7016 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
7017 (pointer_int_sum): Use wide-int interfaces.
7018 (c_common_nodes_and_builtins): Use make_int_cst.
7019 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
7020 (handle_alloc_size_attribute): Use wide-int interfaces.
7021 (get_nonnull_operand): Likewise.
7022 * c-format.c (get_constant): Use tree_fits_uhwi_p.
7023 * c-lex.c: Include wide-int.h.
7024 (narrowest_unsigned_type): Take a widest_int rather than two
7025 HOST_WIDE_INTs.
7026 (narrowest_signed_type): Likewise.
7027 (interpret_integer): Update accordingly. Use wide-int interfaces.
7028 (lex_charconst): Use wide-int interfaces.
7029 * c-pretty-print.c: Include wide-int.h.
7030 (pp_c_integer_constant): Use wide-int interfaces.
7031 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
7032 INT_CST_LT_UNSIGNED.
7033
b15458be
RB
70342014-05-06 Richard Biener <rguenther@suse.de>
7035
7036 * c-opts.c (c_common_post_options): For -freestanding,
7037 -fno-hosted and -fno-builtin disable pattern recognition
7038 if not enabled explicitely.
7039
6577374e
MP
70402014-05-02 Marek Polacek <polacek@redhat.com>
7041
7042 * c.opt (Wsizeof-pointer-memaccess): Describe option.
7043
d00887e8
MP
70442014-05-01 Marek Polacek <polacek@redhat.com>
7045
7046 PR c/43245
7047 * c.opt (Wdiscarded-qualifiers): Add.
7048
f8ed5150
MP
70492014-04-30 Marek Polacek <polacek@redhat.com>
7050
7051 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
7052 INT_MIN / -1 sanitization only for integer types.
7053
45484dcf
MP
70542014-04-25 Marek Polacek <polacek@redhat.com>
7055
7056 PR c/18079
7057 * c-common.c (handle_noinline_attribute): Warn if the attribute
7058 conflicts with always_inline attribute.
7059 (handle_always_inline_attribute): Warn if the attribute conflicts
7060 with noinline attribute.
7061
38e514c0
MP
70622014-04-25 Marek Polacek <polacek@redhat.com>
7063
7064 PR c/60156
7065 * c-common.c (check_main_parameter_types): Warn about variadic main.
7066
44875f92
MS
70672014-04-24 Mike Stump <mikestump@comcast.net>
7068
7069 * c.opt (Wshadow-ivar): Default to on.
7070
dcaaa5a0
DP
70712014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
7072
7073 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
7074
c07d7c02
MP
70752014-04-23 Marek Polacek <polacek@redhat.com>
7076
7077 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
7078
1c33c9b7
JJ
70792014-04-22 Jakub Jelinek <jakub@redhat.com>
7080
7081 PR sanitizer/60275
7082 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
7083 if flag_sanitize_undefined_trap_on_error.
7084 (ubsan_instrument_division, ubsan_instrument_shift,
7085 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
7086 if !flag_sanitize_recover.
7087
793c625f
MG
70882014-04-22 Marc Glisse <marc.glisse@inria.fr>
7089
7090 PR libstdc++/43622
7091 * c-common.c (registered_builtin_types): Make non-static.
7092 * c-common.h (registered_builtin_types): Declare.
7093
b0f1bf36 70942014-04-14 Richard Biener <rguenther@suse.de>
ab20d992 7095 Marc Glisse <marc.glisse@inria.fr>
b0f1bf36
RB
7096
7097 PR c/60819
7098 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
7099 apply may-alias the scalar pointer type when applicable.
7100
3b07fa4a
IZ
71012014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
7102
7103 PR middle-end/60467
7104 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
7105 as possible argument for Cilk_spawn.
7106
cbbd2b1c
TB
71072014-04-11 Tobias Burnus <burnus@net-b.de>
7108
7109 PR c/60194
7110 * c.opt (Wformat-signedness): Add
7111 * c-format.c(check_format_types): Use it.
7112
6415bd5d
JM
71132014-04-11 Jason Merrill <jason@redhat.com>
7114
7115 PR c++/57926
7116 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
7117 default_conversion for an array argument.
7118
6525783a
MP
71192014-04-08 Marek Polacek <polacek@redhat.com>
7120
7121 PR sanitizer/60745
7122 * c-ubsan.c: Include asan.h.
7123 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
7124
880a467b
NS
71252014-04-03 Nathan Sidwell <nathan@codesourcery.com>
7126
7127 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
7128
7b59ff2d
MP
71292014-04-02 Marek Polacek <polacek@redhat.com>
7130
7131 * c-common.h (c_expand_expr): Remove declaration.
7132
8edbfaa6
JJ
71332014-03-28 Jakub Jelinek <jakub@redhat.com>
7134
7135 PR c++/60689
7136 * c-common.c (add_atomic_size_parameter): When creating new
7137 params vector, push the size argument first.
7138
07d72e1d
JJ
71392014-03-26 Jakub Jelinek <jakub@redhat.com>
7140
7141 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
7142 ubsan_instrument_vla, ubsan_instrument_return): Adjust
7143 ubsan_create_data callers.
7144
b35e0fa0
JJ
71452014-03-22 Jakub Jelinek <jakub@redhat.com>
7146
7147 PR debug/60603
7148 * c-opts.c (c_finish_options): Restore cb_file_change call to
7149 <built-in>.
7150
39a1ebb3
JJ
71512014-03-13 Jakub Jelinek <jakub@redhat.com>
7152
7153 PR middle-end/36282
7154 * c-pragma.c (apply_pragma_weak): Only look at
7155 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
7156 DECL_ASSEMBLER_NAME_SET_P (decl).
7157 (maybe_apply_pending_pragma_weaks): Exit early if
7158 vec_safe_is_empty (pending_weaks) rather than only when
7159 !pending_weaks.
7160 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
7161 set assembler name back to NULL afterwards.
7162
a07f6ed2
JM
71632014-03-11 Jason Merrill <jason@redhat.com>
7164
7165 * c.opt: Add -std=gnu++14.
7166
75b107f5
IB
71672014-03-11 Ian Bolton <ian.bolton@arm.com>
7168
7169 * c-opts.c (c_common_post_options): Don't override
7170 -ffp-contract=fast if unsafe-math-optimizations is on.
7171
f42c637e
PM
71722014-03-08 Paulo Matos <paulo@matos-sorge.com>
7173
22b15758 7174 * c.opt: Enable LTO FE for fshort-double.
f42c637e 7175
70e24808
JM
71762014-03-07 Jason Merrill <jason@redhat.com>
7177
7178 * c.opt: Add -std=c++14.
7179
3af9c5e9
MP
71802014-03-06 Marek Polacek <polacek@redhat.com>
7181
7182 PR c/60197
7183 * cilk.c (contains_cilk_spawn_stmt): New function.
7184 (contains_cilk_spawn_stmt_walker): Likewise.
7185 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
7186 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
7187
b3bdf019
JJ
71882014-03-03 Jakub Jelinek <jakub@redhat.com>
7189
7190 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
7191 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
7192 even when flag_preprocess_only.
7193
ca7e759d
JM
71942014-02-26 Jason Merrill <jason@redhat.com>
7195
7196 PR c++/59231
7197 PR c++/11586
7198 * c-common.c (shorten_compare): Don't check
7199 c_inhibit_evaluation_warnings.
7200
28e41874
JJ
72012014-02-19 Jakub Jelinek <jakub@redhat.com>
7202
cca615af
JJ
7203 PR c/37743
7204 * c-common.c (c_common_nodes_and_builtins): When initializing
7205 c_uint{16,32,64}_type_node, also set corresponding
7206 uint{16,32,64}_type_node to the same value.
7207
28e41874
JJ
7208 PR c++/60267
7209 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
7210 for PRAGMA_IVDEP if flag_preprocess_only.
7211
c2bf53a1
JJ
72122014-02-12 Jakub Jelinek <jakub@redhat.com>
7213
7214 PR c/60101
7215 * c-common.c (merge_tlist): If copy is true, call new_tlist,
7216 if false, add ADD itself, rather than vice versa.
7217 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
7218 copy. For SAVE_EXPR, only call merge_tlist once.
7219
8fcbce72
JJ
72202014-02-08 Jakub Jelinek <jakub@redhat.com>
7221
7222 PR middle-end/60092
7223 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
7224 and tree_to_uhwi.
7225 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
7226 functions.
7227 (c_common_attribute_table): Add alloc_align and assume_aligned
7228 attributes.
7229
0a756a3f
MP
72302014-02-06 Marek Polacek <polacek@redhat.com>
7231
7232 PR c/60087
7233 * c-common.c (warn_for_sign_compare): Call warning_at with location
7234 instead of warning.
7235
7ec4847a
MP
72362014-02-05 Marek Polacek <polacek@redhat.com>
7237
7238 PR c/53123
7239 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
7240 statement.
7241
66f20604
MP
72422014-02-04 Marek Polacek <polacek@redhat.com>
7243
7244 PR c/60036
7245 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
7246 SAVE_EXPR.
7247
5d77fb19
MG
72482014-02-03 Marc Glisse <marc.glisse@inria.fr>
7249
7250 PR c++/53017
7251 PR c++/59211
7252 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
7253 handle_vector_size_attribute, handle_nonnull_attribute): Call
7254 default_conversion on the attribute argument.
7255 (handle_nonnull_attribute): Increment the argument number.
7256
81e5eca8
MP
72572014-01-31 Marek Polacek <polacek@redhat.com>
7258
7259 PR c/59963
7260 * c-common.c (add_atomic_size_parameter): Pass vNULL to
7261 build_function_call_vec.
7262 (resolve_overloaded_builtin): Likewise.
7263 * c-common.h (build_function_call_vec): Adjust declaration.
7264
68fca595
MP
72652014-01-30 Marek Polacek <polacek@redhat.com>
7266
7267 PR c/59940
7268 * c-common.h (unsafe_conversion_p): Adjust declaration.
7269 (warnings_for_convert_and_check): Likewise.
7270 (convert_and_check): Likewise.
7271 * c-common.c (unsafe_conversion_p): Add location parameter. Call
7272 expansion_point_location_if_in_system_header on it.
7273 (warnings_for_convert_and_check): Add location parameter. Call
7274 expansion_point_location_if_in_system_header on it. Use it.
7275 (convert_and_check): Add location parameter. Use it.
7276 (conversion_warning): Likewise.
7277 (c_add_case_label): Adjust convert_and_check calls.
7278 (scalar_to_vector): Adjust unsafe_conversion_p calls.
7279
b72271b9
BI
72802014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
7281
7282 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
7283 flag_cilkplus.
7284 * c-pragma.c (init_pragma): Likewise.
7285 * c.opt: Likewise.
7286
393e8e8b
MP
72872014-01-23 Marek Polacek <polacek@redhat.com>
7288
7289 PR c/59846
7290 * c-common.c (shorten_compare): Add location_t parameter.
7291 * c-common.h (shorten_binary_op): Adjust declaration.
7292
f04dda30
MP
72932014-01-23 Marek Polacek <polacek@redhat.com>
7294
7295 PR c/58346
7296 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
7297 * c-common.h: Declare it.
7298
621955cb
EB
72992014-01-20 Eric Botcazou <ebotcazou@adacore.com>
7300
7301 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
7302 * c-ada-spec.c (dump_ads): Likewise.
7303 (cpp_check): Likewise.
7304 (dump_ada_specs): Likewise.
7305
73062014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
7307
7308 PR c++/49718
7309 * c-common.c (handle_no_instrument_function_attribute): Allow
7310 no_instrument_function attribute in class member
7311 definition/declaration.
7312
241f845a
JJ
73132014-01-15 Jakub Jelinek <jakub@redhat.com>
7314
7315 PR c/58943
7316 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
7317 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
7318 being COMPOUND_EXPR.
7319 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
7320 operand a SAVE_EXPR and second MODIFY_EXPR.
7321
e83b8e2e
JJ
73222014-01-09 Jakub Jelinek <jakub@redhat.com>
7323
7324 PR target/58115
7325 * c-pch.c (c_common_write_pch): Call
7326 prepare_target_option_nodes_for_pch.
7327
23a5b65a
RS
73282014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
7329
7330 Update copyright years
7331
f9030485
RS
73322014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
7333
7334 * array-notation-common.c, c-cilkplus.c: Use the standard form for
7335 the copyright notice.
7336
f2aa696b
EB
73372013-12-28 Eric Botcazou <ebotcazou@adacore.com>
7338
7339 * c-ada-spec.c (print_constructor): New function.
7340 (print_destructor): Retrieve the origin of the destructor.
7341 (print_ada_declaration): Revamp handling of constructors/destructors.
7342
3f8257db 73432013-12-23 Stuart Hastings <stuart@apple.com>
1f26ac87
JM
7344 Bill Maddox <maddox@google.com>
7345 Jason Merrill <jason@redhat.com>
7346
7347 * c.opt: Add -fdeclone-ctor-dtor.
7348 * c-opts.c (c_common_post_options): Default to on iff -Os.
7349
41958c28
BI
73502013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
7351
7352 * c-common.c (c_common_attribute_table): Added "cilk simd function"
7353 attribute.
7354 * c-pragma.h (enum pragma_cilk_clause): Remove.
ab20d992 7355 (enum pragma_omp_clause): Added the following fields:
41958c28
BI
7356 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
7357 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
7358 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
7359 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
7360 PRAGMA_CILK_CLAUSE_UNIFORM.
7361
b1726d6c 7362
12893402
BI
73632013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
7364
7365 * cilk.c (cilk_outline): Made this function non-static.
7366 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
7367 (create_cilk_wrapper): Added a new parameter: a function pointer.
7368 (c_install_body_w_frame_cleanup): Remove
7369 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
7370 * c-common.h (cilk_outline): New prototype.
7371 (gimplify_cilk_spawn): Removed two parameters.
7372 (cilk_install_body_with_frame_cleanup): New prototype.
7373 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
7374 CILK_SPAWN_STMT case.
7375
085b42ed
BS
73762013-12-11 Bernd Schmidt <bernds@codesourcery.com>
7377
2ce064c3
BS
7378 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
7379
085b42ed
BS
7380 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
7381 (int_array_type_node): Remove.
7382 * c-common.c (c_common_nodes_and_builtins): Don't build it.
7383
9e36c9ed
MP
73842013-12-05 Marek Polacek <polacek@redhat.com>
7385
7386 PR c/52023
7387 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
7388 [ADJUST_FIELD_ALIGN].
7389
296674db
JM
73902013-12-04 Joseph Myers <joseph@codesourcery.com>
7391
7392 PR c/52023
7393 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
7394 and check field alignment if set.
7395 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
7396 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
7397
b1726d6c 73982013-12-04 Jakub Jelinek <jakub@redhat.com>
31e071ae
MP
7399 Marek Polacek <polacek@redhat.com>
7400
7401 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
7402 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
7403
d7947e19
L
74042013-11-29 H.J. Lu <hongjiu.lu@intel.com>
7405
7406 PR c/59309
7407 * cilk.c (gimplify_cilk_spawn): Properly handle function without
7408 arguments.
7409
fad7652e
JJ
74102013-11-29 Jakub Jelinek <jakub@redhat.com>
7411
7412 PR c/59280
7413 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
7414 goto invalid. If it is error_mark_node, don't issue further
7415 diagnostics.
7416
8b5e1202
SO
74172013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
7418
7419 * c.opt (Wopenmp-simd): New.
7420
0a508bb6
JJ
74212013-11-22 Jakub Jelinek <jakub@redhat.com>
7422
7423 * c-ubsan.h (ubsan_instrument_return): New prototype.
7424 * c-ubsan.c (ubsan_instrument_return): New function.
7425
2fb9a547
AM
74262013-11-22 Andrew MacLeod <amacleod@redhat.com>
7427
7428 * c-common.c: Add required include files from gimple.h.
ab20d992
JJ
7429 * c-gimplify.c: Likewise.
7430 * cilk.c: Likewise.
2fb9a547 7431
8400e75e
DM
74322013-11-22 David Malcolm <dmalcolm@redhat.com>
7433
7434 * c-common.c (unsafe_conversion_p): Remove use of
7435 EXPR_LOC_OR_HERE macro.
7436 (conversion_warning): Likewise.
7437 (warnings_for_convert_and_check): Likewise.
7438 (warn_for_collisions_1): Likewise.
7439 (shorten_compare): Likewise, and remove use of in_system_header
7440 macro, using the location from the former.
7441 * c-lex.c (dump_one_header): Remove use of input_filename macro.
7442 (cb_def_pragma): Remove use of in_system_header macro.
7443 (lex_string): Likewise.
7444 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
7445
eb1ce453
KZ
74462013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
7447 Mike Stump <mikestump@comcast.net>
7448 Richard Sandiford <rdsandiford@googlemail.com>
7449
7450 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
7451 instead of TREE_INT_CST_LOW, in cases where there is a protecting
7452 tree_fits_shwi_p or tree_fits_uhwi_p.
7453 (dump_generic_ada_node): Likewise.
7454 * c-format.c (check_format_arg): Likewise.
7455 * c-pretty-print.c (pp_c_integer_constant): Likewise.
7456
6b3b8c27
KZ
74572013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
7458
7459 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
7460
49b0aa18
JC
74612013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
7462
7463 PR c/53001
7464 * c-common.c (unsafe_conversion_p): Make this function
7465 return an enumeration with more detail.
7466 (conversion_warning): Use the new return type of
7467 unsafe_conversion_p to separately warn either about conversions
7468 that lower floating point number precision or about the other
7469 kinds of conversions.
7470 * c-common.h (enum conversion_safety): New enumeration.
8e745a17
JJ
7471 (unsafe_conversion_p): switching return type to
7472 conversion_safety enumeration.
49b0aa18
JC
7473 * c.opt: Adding new warning -Wfloat-conversion and
7474 enabling it with -Wconversion.
7475
b826515a
BS
74762013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
7477
8e745a17
JJ
7478 * c-opts.c: Include plugin.h.
7479 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
b826515a 7480
b9a55b13
MP
74812013-11-19 Marek Polacek <polacek@redhat.com>
7482
7483 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
7484 call.
7485 (ubsan_instrument_shift): Likewise.
7486 (ubsan_instrument_vla): Likewise.
7487
7d362f6c
RS
74882013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
7489
7490 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
7491 cast to unsigned type.
7492
386b1f1f
RS
74932013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
7494
7495 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
7496 tree_low_cst.
7497 (complete_array_type): Update comment to refer to tree_to_[su]hwi
7498 rather than tree_low_cst.
7499
ae7e9ddd
RS
75002013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
7501
7502 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
7503 tree_to_uhwi throughout.
7504
9439e9a1
RS
75052013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
7506
7507 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
7508 tree_low_cst (..., 0) with tree_to_shwi throughout.
7509
cc269bb6
RS
75102013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
7511
7512 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
7513 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
7514
9541ffee
RS
75152013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
7516
7517 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
7518 host_integerp (..., 0) with tree_fits_shwi_p throughout.
7519
c02065fc
AH
75202013-11-15 Aldy Hernandez <aldyh@redhat.com>
7521
7522 * c-cilkplus.c: New file.
7523 * c-common.c (readonly_error): Add location argument.
7524 * c-common.h (readonly_error): Same.
7525 (c_finish_cilk_clauses): Protoize.
7526 (c_check_cilk_loop): Same.
7527 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
7528 Do not fail on error_mark_node.
7529 Abstract increment canonicalization to here...
7530 (c_omp_for_incr_canonicalize_ptr): New.
7531 c-pragma.c (init_pragma): Register "simd" pragma.
7532 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
7533 (enum pragma_cilk_clause): New.
7534
9cc65f15
RS
75352013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
7536
7537 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
7538 wchar_type and host_integerp checks.
7539
18f429e2
AM
75402013-11-14 Andrew MacLeod <amacleod@redhat.com>
7541
7542 * c-common.c: Likewise.
7543 * c-gimplify.c: Likewise.
7544 * cilk.c: Likewise.
7545
d8a2d370
DN
75462013-11-14 Diego Novillo <dnovillo@google.com>
7547
7548 * c-common.c: Include fold-const.h.
7549 Include stor-layout.h.
7550 Include calls.h.
7551 Include stringpool.h.
7552 Include attribs.h.
7553 Include varasm.h.
7554 Include trans-mem.h.
7555 * c-cppbuiltin.c: Include stor-layout.h.
7556 Include stringpool.h.
7557 * c-format.c: Include stringpool.h.
7558 * c-lex.c: Include stringpool.h.
7559 Include stor-layout.h.
7560 * c-pragma.c: Include stringpool.h.
7561 Include attribs.h.
7562 Include varasm.h.
7563 Include gcc-symtab.h.
7564 * c-pretty-print.c: Include stor-layout.h.
7565 Include attribs.h.
7566 * cilk.c: Include stringpool.h.
7567 Include calls.h.
7568
38b7bc7f
JM
75692013-11-13 Joseph Myers <joseph@codesourcery.com>
7570
7571 * c-common.h (enum rid): Add RID_AUTO_TYPE.
7572 * c-common.c (c_common_reswords): Add __auto_type.
7573 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
7574
45b0be94
AM
75752013-11-12 Andrew MacLeod <amacleod@redhat.com>
7576
18f429e2
AM
7577 * c-common.c: Include gimplify.h.
7578 * c-gimplify.c: Likewise.
7579 * cilk.c: Likewise.
7580 * c-omp.c: Include gimple-expr.h instead of gimple.h.
7581 * c-ubsan.c: Don't include gimple.h.
45b0be94 7582
582d9b50
JM
75832013-11-12 Joseph Myers <joseph@codesourcery.com>
7584
7585 * c-common.c (c_common_reswords): Add _Thread_local.
7586
6b28e197
JM
75872013-11-09 Joseph Myers <joseph@codesourcery.com>
7588
7589 * c-common.c (atomic_size_supported_p): New function.
7590 (resolve_overloaded_atomic_exchange)
7591 (resolve_overloaded_atomic_compare_exchange)
7592 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
7593 Use it instead of comparing size with a local list of sizes.
7594
267bac10
JM
75952013-11-07 Andrew MacLeod <amacleod@redhat.com>
7596 Joseph Myers <joseph@codesourcery.com>
7597
7598 * c-common.h (enum rid): Add RID_ATOMIC.
7599 * c-common.c (c_common_reswords): Add _Atomic.
7600 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
7601 (keyword_is_type_qualifier): Accept RID_ATOMIC.
7602 * c-format.c (check_format_types): Check for extra _Atomic
7603 qualifiers in format argument.
7604 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
7605 (pp_c_type_qualifier_list): Mention _Atomic in comment.
7606
5157b91e
TB
76072013-11-06 Tobias Burnus <burnus@net-b.de>
7608
7609 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
7610
6dbe0958
JM
76112013-11-06 Joseph Myers <joseph@codesourcery.com>
7612
7613 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
7614 standards modes.
7615 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
7616 to mean lack of IEEE 754 support.
7617
e8ff5196
TB
76182013-11-05 Tobias Burnus <burnus@net-b.de>
7619
7620 * c.opt (-Wdate-time): New option
7621 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
7622
254a0760
JM
76232013-11-05 Joseph Myers <joseph@codesourcery.com>
7624
7625 * c-cppbuiltin.c (cpp_iec_559_value): Test
7626 flag_excess_precision_cmdline not flag_excess_precision.
7627
6d7f7e0a
TB
76282013-11-05 Tobias Burnus <burnus@net-b.de>
7629
7630 * c.opt (fopenmp-simd): New option.
7631 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
7632 (omp_pragmas): ... this new struct.
7633 (c_pp_lookup_pragma): Also walk omp_pragmas.
7634 (init_pragma): Init pragmas for -fopenmp-simd.
7635
55a7f02f
MP
76362013-11-04 Marek Polacek <polacek@redhat.com>
7637
7638 PR c++/58979
7639 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
7640
9193fb05
JM
76412013-11-04 Joseph Myers <joseph@codesourcery.com>
7642
7643 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
7644 New functions.
7645 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
7646
94159ecf
EB
76472013-11-04 Eric Botcazou <ebotcazou@adacore.com>
7648
7649 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
7650 (dump_ada_specs): Adjust prototype of second callback.
7651 * c-ada-spec.c (cpp_check): New global variable.
7652 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
7653 (print_generic_ada_decl): Likewise.
7654 (has_static_fields): Change return type to bool and add guard.
7655 (has_nontrivial_methods): New predicate.
7656 (is_tagged_type): Change return type to bool.
7657 (separate_class_package): Call has_nontrivial_methods.
7658 (pp_ada_tree_identifier): Minor tweaks.
7659 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
7660 (dump_ada_array_domains): Likewise.
7661 (dump_ada_array_type): Likewise.
7662 (dump_template_types): Remove cpp_check parameter and do not pass it to
7663 dump_generic_ada_node.
7664 (dump_ada_template): Likewise.
7665 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
7666 recursively.
7667 (print_ada_methods): Change return type to integer. Remove cpp_check
7668 parameter and do not pass it down.
7669 (dump_nested_types): Remove cpp_check parameter and do not pass it to
7670 dump_generic_ada_node.
7671 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
7672 accessing methods.
7673 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
7674 down. Use has_nontrivial_methods to recognize C++ classes. Use return
7675 value of print_ada_methods.
7676 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
7677 Set cpp_check to it before invoking dump_ada_nodes.
7678 (dump_ada_specs): Likewise.
7679
b906f4ca
MP
76802013-11-03 Marek Polacek <polacek@redhat.com>
7681
7682 * c-ubsan.c: Don't include hash-table.h.
7683 (ubsan_instrument_vla): New function.
7684 * c-ubsan.h: Declare it.
7685
5e20cdc9
DM
76862013-10-31 David Malcolm <dmalcolm@redhat.com>
7687
7688 Automated part of renaming of symtab_node_base to symtab_node.
7689
7690 Patch autogenerated by rename_symtab.py from
7691 https://github.com/davidmalcolm/gcc-refactoring-scripts
7692 revision 58bb219cc090b2f4516a9297d868c245495ee622
7693
7694 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
7695 symtab_node_base to symtab_node.
7696
7057e645
ESR
76972013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
7698
8e745a17 7699 Implement C++14 digit separators.
7057e645
ESR
7700 * c-lex.c (interpret_float): Remove digit separators from scratch string
7701 before building real literal.
7702
193ea7bc
JJ
77032013-10-30 Jakub Jelinek <jakub@redhat.com>
7704
7705 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
7706
939b37da
BI
77072013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
7708
7709 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
7710 fields.
7711 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
7712 enabled.
7713 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
7714 (insert_cilk_frame): New prototype.
7715 (cilk_init_builtins): Likewise.
7716 (gimplify_cilk_spawn): Likewise.
7717 (c_cilk_install_body_w_frame_cleanup): Likewise.
7718 (cilk_detect_spawn_and_unwrap): Likewise.
7719 (cilk_set_spawn_marker): Likewise.
7720 (build_cilk_sync): Likewise.
7721 (build_cilk_spawn): Likewise.
7722 * cilk.c: New file.
7723
67348ccc
DM
77242013-10-29 David Malcolm <dmalcolm@redhat.com>
7725
7726 Patch autogenerated by refactor_symtab.py from
7727 https://github.com/davidmalcolm/gcc-refactoring-scripts
7728 revision 58bb219cc090b2f4516a9297d868c245495ee622
7729
7730 * c-gimplify.c (c_genericize): Update for conversion of symtab types
7731 to a true class hierarchy.
7732 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
7733
d570872d
RS
77342013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
7735
7736 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
7737
98906124
JL
77382013-10-26 Jeff Law <law@redhat.com>
7739
adfac8df
JJ
7740 * c-common.c (c_define_builtins): Remove mudflap support.
7741 * c.opt: Ignore and warn for mudflap options.
98906124 7742
d73749df 77432013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
7744
7745 PR other/33426
7746 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
7747 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
7748
3f04b1bb
JM
77492013-10-23 Jason Merrill <jason@redhat.com>
7750
7751 * c-format.c (gcc_cxxdiag_char_table): Add %X.
7752
acf0174b
JJ
77532013-10-11 Jakub Jelinek <jakub@redhat.com>
7754
acd15a28
JJ
7755 * c-common.h (omp_clause_mask::operator !=): New method.
7756 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
7757 instead of if (mask & something) tests everywhere.
7758
acf0174b
JJ
7759 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
7760 201307 instead of 201107.
7761 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
7762 (c_common_attribute_table): Add "omp declare target" and
7763 "omp declare simd" attributes.
7764 (handle_omp_declare_target_attribute,
7765 handle_omp_declare_simd_attribute): New functions.
7766 * c-omp.c: Include c-pragma.h.
7767 (c_finish_omp_taskgroup): New function.
7768 (c_finish_omp_atomic): Add swapped argument, if true,
7769 build the operation first with rhs, lhs arguments and use NOP_EXPR
7770 build_modify_expr.
7771 (c_finish_omp_for): Add code argument, pass it down to make_code.
7772 (c_omp_split_clauses): New function.
7773 (c_split_parallel_clauses): Removed.
7774 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
7775 c_omp_declare_simd_clauses_to_decls): New functions.
7776 * c-common.h (omp_clause_mask): New type.
7777 (OMP_CLAUSE_MASK_1): Define.
7778 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
7779 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
7780 omp_clause_mask::operator |, omp_clause_mask::operator &,
7781 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
7782 omp_clause_mask::operator ==): New methods.
7783 (enum c_omp_clause_split): New.
7784 (c_finish_omp_taskgroup): New prototype.
7785 (c_finish_omp_atomic): Add swapped argument.
7786 (c_finish_omp_for): Add code argument.
7787 (c_omp_split_clauses): New prototype.
7788 (c_split_parallel_clauses): Removed.
7789 (c_omp_declare_simd_clauses_to_numbers,
7790 c_omp_declare_simd_clauses_to_decls): New prototypes.
7791 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
7792 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
7793 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
7794 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
7795 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
7796 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
7797 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
7798 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
7799 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
7800 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
7801 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
7802 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
7803 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
7804 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
7805 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
7806 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
7807 PRAGMA_OMP_CLAUSE_UNIFORM.
7808
826cacfe
MG
78092013-10-09 Marc Glisse <marc.glisse@inria.fr>
7810
7811 PR tree-optimization/20318
7812 * c-common.c (handle_returns_nonnull_attribute): New function.
7813 (c_common_attribute_table): Add returns_nonnull.
7814
2284b034
MG
78152013-10-03 Marc Glisse <marc.glisse@inria.fr>
7816
7817 PR c++/19476
7818 * c.opt (fcheck-new): Move to common.opt.
7819
b56e9788
MP
78202013-09-25 Marek Polacek <polacek@redhat.com>
7821 Jakub Jelinek <jakub@redhat.com>
7822
7823 PR sanitizer/58413
7824 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
7825 an expression if we can prove it is correct.
7826 (ubsan_instrument_division): Likewise. Remove unnecessary
7827 check.
7828
ce6923c5
MP
78292013-09-18 Marek Polacek <polacek@redhat.com>
7830
7831 PR sanitizer/58411
7832 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
7833 Declare it.
7834 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
7835
fb5610fb
IS
78362013-09-14 Iain Sandoe <iain@codesourcery.com>
7837
7838 PR target/48094
7839 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
7840 fobjc-gc, freplace-objc-classes): Accept for LTO.
7841
88b0e79e
JC
78422013-09-13 Jacek Caban <jacek@codeweavers.com>
7843
7844 * c-target.def: New hook
7845
c9b0866a
PC
78462013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
7847
7848 PR c++/43452
7849 * c.opt (Wdelete-incomplete): Add.
7850
0af94e6f
JR
78512013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
7852
7853 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
7854 (vector_types_compatible_elements_p): New function.
7855 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
7856 declaration.
7857 (vector_types_compatible_elements_p): Declare.
7858
7c26172c
GDR
78592013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
7860
7861 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
7862 a virtual member function.
7863 (pp_simple_type_specifier): Remove.
7864 (pp_c_type_specifier): Likewise.
7865 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
7866 Rename from pp_c_type_specifier. Adjust.
7867 (c_pretty_printer::c_pretty_printer): Do not assign to
7868 simple_type_specifier.
7869
20059c8b
GDR
78702013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
7871
7872 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
7873 member function.
7874 (c_pretty_printer::storage_class_specifier): Likewise.
7875 (c_pretty_printer::initializer): Likewise.
7876 (pp_declaration): Remove.
7877 (pp_declaration_specifiers): Likewise.
7878 (pp_abstract_declarator): Likewise.
7879 (pp_declarator): Likewise.
7880 (pp_type_id): Likewise.
7881 (pp_statement): Likewise.
7882 (pp_constant): Likewise.
7883 (pp_id_expression): Likewise.
7884 (pp_primary_expression): Likewise.
7885 (pp_unary_expression): Likewise.
7886 (pp_multiplicative_expression): Likewise.
7887 (pp_conditional_expression): Likewise.
7888 (pp_assignment_expression): Likewise.
7889 (pp_expression): Likewise.
7890 (pp_c_type_id): Likewise.
7891 (pp_c_storage_class_specifier): Likewise.
7892 * c-pretty-print.c (pp_c_type_cast): Tidy.
7893 (pp_c_pointer): Likewise.
7894 (pp_c_type_specifier): Likewise.
7895 (pp_c_parameter_type_list): Likewise.
7896 (pp_c_function_definition): Likewise.
7897 (pp_c_init_declarator): Likewise.
7898 (pp_c_initializer_list): Likewise.
7899 (pp_c_constructor_elts): Likewise.
7900 (c_pretty_printer::direct_abstract_declarator): Likewise.
7901 (c_pretty_printer::declaration_specifiers): Likewise.
7902 (c_pretty_printer::primary_expression): Likewise.
7903 (c_pretty_printer::postfix_expression): Likewise.
7904 (c_pretty_printer::type_id): Rename from pp_c_type_id.
7905 (c_pretty_printer::storage_class_specifier): Rename from
7906 pp_c_storage_class_specifier.
7907 (c_pretty_printer::initializer): Rename from pp_c_initializer.
7908 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
7909 storage_class_specifier, initializer, offset_list, flags.
7910
de5a5fa1
MP
79112013-08-30 Marek Polacek <polacek@redhat.com>
7912
7913 * c-ubsan.c: New file.
7914 * c-ubsan.h: New file.
7915
8f0e4d72
GDR
79162013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
7917
7918 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
7919 member function.
7920 (c_pretty_printer::declaration_specifiers): Likewise.
7921 (c_pretty_printer::declarator): Likewise.
7922 (c_pretty_printer::abstract_declarator): Likewise.
7923 (c_pretty_printer::direct_abstract_declarator): Likewise.
7924 (c_pretty_printer::direct_declarator): Likewise.
7925 (c_pretty_printer::function_specifier): Likewise.
7926 (pp_declaration): Adjust.
7927 (pp_declaration_specifiers): Likewise.
7928 (pp_abstract_declarator): Likewise.
7929 (pp_direct_declarator): Likewise.
7930 (pp_function_specifier): Likewise.
7931 (pp_direct_abstract_declarator): Remove as unused.
7932 (pp_c_declaration): Remove.
7933 (pp_c_declaration_specifiers): Likewise.
7934 (pp_c_declarator): Likewise.
7935 (pp_c_direct_declarator): Likewise.
7936 (pp_c_function_specifier): Likewise.
7937 (pp_c_direct_abstract_declarator): Likewise.
7938 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
7939 from pp_c_abstract_declarator. Adjust.
ab20d992 7940 (c_pretty_printer::direct_abstract_declarator): Rename from
8f0e4d72
GDR
7941 pp_c_direct_abstract_declarator. Adjust.
7942 (c_pretty_printer::function_specifier): Rename from
7943 pp_c_function_specifier. Adjust.
7944 (c_pretty_printer::declaration_specifiers): Rename from
7945 pp_c_declaration_specifiers. Adjust.
7946 (c_pretty_printer::direct_declarator): Rename from
7947 pp_c_direct_declarator. Adjust.
7948 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
7949 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
7950 (c_pretty_printer::c_pretty_printer): Do not assign to
7951 declaration, declaration_specifiers, declarator,
7952 direct_declarator, direct_abstract_declarator, function_specifier.
7953
00d34d3a
GDR
79542013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
7955
7956 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
7957 virtual member function.
7958 (c_pretty_printer::multiplicative_expression): Likewise.
7959 (c_pretty_printer::conditional_expression): Likewise.
7960 (c_pretty_printer::assignment_expression): Likewise.
7961 (c_pretty_printer::expression): Likewise.
7962 (pp_unary_expression): Adjust.
7963 (pp_multiplicative_expression): Likewise.
7964 (pp_assignment_expression): Likewise.
7965 (pp_conditional_expression): Likewise.
7966 (pp_expression): Likewise.
7967 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
7968 from pp_c_unary_expression. Adjust.
7969 (c_pretty_printer::multiplicative_expression): Rename from
7970 pp_c_multiplicative_expression. Adjust.
7971 (c_pretty_printer::conditional_expression): Rename from
7972 pp_c_conditional_expression. Adjust.
7973 (c_pretty_printer::assignment_expression): Rename from
7974 pp_c_assignment_expression. Adjust.
7975 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
7976 (c_pretty_printer::c_pretty_printer): Do not assign to
7977 unary_expression, multiplicative_expression,
7978 conditional_expression, expression.
7979
fb22178f
GDR
79802013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
7981
7982 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
7983 virtual member function.
7984 (pp_postfix_expression): Adjust.
7985 (pp_c_postfix_expression): Remove.
7986 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
7987 from pp_c_postfix_expression. Adjust.
7988 (c_pretty_printer::c_pretty_printer): Do not assign to
7989 postfix_expression.
7990
7ecc2600
GDR
79912013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
7992
7993 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
7994 virtua member function.
7995 (pp_primary_expression): Adjust.
7996 (pp_c_primary_expression): Remove.
7997 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
7998 from pp_c_primary_expression. Adjust.
7999 (pp_c_initializer_list): Use pp_primary_expression.
8000 (c_pretty_printer::c_pretty_printer): Do not assign to
8001 primary_expression.
8002
0691175f
GDR
80032013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
8004
8005 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
8006 * c-pretty-print.c (M_): Remove.
8007 (c_pretty_printer::translate_string): Define.
8008 (pp_c_type_specifier): Use it.
8009 (pp_c_primary_expression): Likewise.
8010 (pp_c_expression): Likewise.
8011
66dfe4c4
GDR
80122013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
8013
8014 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
8015 virtual function.
8016 (pp_c_id_expression): Remove.
8017 (pp_id_expression): Adjust.
8018 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
8019 pp_c_id_expression. Adjust.
8020 (pp_c_postfix_expression): Use pp_id_expression.
8021 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
8022
ca43e9d5
GDR
80232013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
8024
8025 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
8026 member function.
8027 (pp_constant): Adjust.
8028 (pp_c_constant): Remove.
8029 * c-pretty-print.c (c_pretty_printer::constant): Rename from
8030 pp_c_constant. Adjust.
8031 (pp_c_constant)
8032 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
8033 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
8034
da6ca2b5
GDR
80352013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
8036
8037 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
8038 (c_pretty_printer::c_pretty_printer): Declare.
8039 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
8040 c_pretty_printer_init. Adjust.
8041 (print_c_tree): Do not call c_pretty_printer_init.
8042 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
8043
65a372f4
AC
80442013-08-09 Arnaud Charlet <charlet@adacore.com>
8045
8046 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
8047
fd9b0f32
PC
80482013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
8049
8050 PR c++/58080
8051 * c-common.c (pointer_int_sum): Add bool parameter.
8052 * c-common.h (pointer_int_sum): Adjust declaration.
8053
e0aec1e9
GDR
80542013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
8055
8056 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
8057 c_pretty_printer variable.
8058
b066401f
GDR
80592013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
8060
8061 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
8062 (pp_base): Remove.
8063 (pp_c_base): Likewise. Adjust users.
8064 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
8065 (pp_c_whitespace): Do not call pp_base.
8066 (pp_c_left_paren): Likewise.
8067 (pp_c_right_paren): Likewise.
8068 (pp_c_left_brace): Likewise.
8069 (pp_c_right_brace): Likewise.
8070 (pp_c_left_bracket): Likewise.
8071 (pp_c_right_bracket): Likewise.
8072 (pp_c_dot): Likewise.
8073 (pp_c_ampersand): Likewise.
8074 (pp_c_star): Likewise.
8075 (pp_c_arrow): Likewise.
8076 (pp_c_semicolon): Likewise.
8077 (pp_c_complement): Likewise.
8078 (pp_c_exclamation): Likewise.
8079 (pp_c_direct_declarator): Likewise.
8080 (pp_c_ws_string): Likewise.
8081 (pp_c_identifier): Likewise.
8082 (pp_c_statement): Likewise.
8083 (print_c_tree): Likewise.
8084
65e5a578
ESR
80852013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
8086
8087 PR c++/58072
8088 * c-common.c (c_parse_error): Catch user-defined literal tokens and
8089 provide useful error strings.
8090
137a1a27
GDR
80912013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
8092
8093 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
8094 printer functions instead of pp_string or operators and punctuators.
8095 (dump_generic_ada_node): Likewise.
8096 * c-pretty-print.c (pp_c_type_specifier): Likewise.
8097 (pp_c_relational_expression): Likewise.
8098 (pp_c_logical_or_expression): Likewise.
8099
07838b13
GDR
81002013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
8101
8102 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
8103 functions instead of pp_character.
8104 (pp_ada_tree_identifier): Likewise.
8105 (dump_ada_double_name): Likewise.
8106 (dump_ada_function_declaration): Likewise.
8107 (dump_ada_array_domains): Likewise.
8108 (dump_template_types): Likewise.
8109 (dump_generic_ada_node): Likewise.
8110 (print_ada_declaration): Likewise.
8111 (print_ada_struct_decl): Likewise.
8112 * c-pretty-print.c (pp_c_integer_constant): Likewise.
8113
433cc7b0
TT
81142013-07-23 Tom Tromey <tromey@redhat.com>
8115
8116 * c-common.h (enum rid) <RID_GENERIC>: New constant.
8117 * c-common.c (c_common_reswords): Add _Generic.
8118
688010ba
OB
81192013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
8120
8121 * c-common.c: Fix typos.
8122 * c-common.h: Likewise.
8123
2a99e5e6
LL
81242013-07-13 Lubos Lunak <l.lunak@suse.cz>
8125
8126 PR c++/55203
8127 * c-common.c (c_common_attribute_table): Add warn_unused.
8128 (handle_warn_unused_attribute): New.
8129
c26302d5
JJ
81302013-07-10 Jakub Jelinek <jakub@redhat.com>
8131
8132 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
8133 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
8134
dfeadaa0
PC
81352013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
8136
8137 PR c++/57869
8138 * c.opt: Add Wconditionally-supported.
8139
6a2fa4b2
GS
81402013-07-08 Graham Stott <graham.stott@btinternet.com>
8141
adfac8df 8142 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
8143 unused variables l_length and l_node.
8144
ecdbd01a 81452013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
8146
8147 PR c/57821
8148 * c-common.c (complete_array_type): Delay folding first index
8149 like other indices. When folding, check for index overflow.
8150
bedc293e
MG
81512013-06-27 Marc Glisse <marc.glisse@inria.fr>
8152
8153 PR c++/57509
8154 * c-common.h (c_build_vec_perm_expr): New complain argument.
8155 * c-common.c (c_build_vec_perm_expr): Likewise.
8156 Use save_expr also in C++.
8157
604b2bfc
GDR
81582013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
8159
8160 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
8161 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
8162 * c-opts.c (c_common_post_options): Likewise.
8163
dfeadaa0 81642013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
8165
8166 * array-notation-common.c (length_mismatch_in_expr): Changed the
8167 parameter type's from a dynamic array to a vec_tree. Also removed
8168 the size parameters.
8169 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
8170 the change above.
8171
2ce86d2e
BI
81722013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
8173
8174 * c-common.h (struct cilkplus_an_parts): New structure.
8175 (struct cilkplus_an_loop_parts): Likewise.
8176 (cilkplus_extract_an_triplets): New prototype.
8177 (fix_sec_implicit_args): Likewise.
8178 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
8179 (fix_sec_implicit_args): Likewise.
604b2bfc 8180
07a6825b
BI
81812013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
8182
8183 * array-notation-common.c (find_inv_trees): Removed an unwanted
8184 typecasting.
8185 * c-common.h (struct inv_list::additional_tcodes): Changed type from
8186 enum rid to enum tree_code.
8187
08346abd
JH
81882013-06-11 Jan Hubicka <jh@suse.cz>
8189
8190 * c-common.c (handle_alias_ifunc_attribute): Do not set
8191 DECL_EXTERNAL for weakref variables.
8192 * c-pragma.c (handle_pragma_weak): Make sure aliases
8193 are not declared as external.
8194
d60f1706
BI
81952013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
8196
8197 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
8198 function from c/c-array-notation.c.
8199 (is_cilkplus_reduce_builtin): Likewise.
8200 (find_rank): Likewise.
8201 (extract_array_notation_exprs): Likewise.
8202 (replace_array_notations): Likewise.
8203 (find_inv_trees): Likewise.
8204 (replace_inv_trees): Likewise.
8205 (contains_array_notation_expr): Likewise.
8206 (find_correct_array_notation_type): Likewise.
8207 * c-common.h (struct inv_list): Moved this struct from the file
8208 c/c-array-notation.c and added a new field called additional tcodes.
8209 (length_mismatch_in_expr_p): New prototype.
8210 (is_cilkplus_reduce_builtin): Likewise.
8211 (find_rank): Likewise.
8212 (extract_array_notation_exprs): Likewise.
8213 (replace_array_notation): Likewise.
8214 (find_inv_trees): Likewise.
8215 (replace_inv_trees): Likewise.
8216 (find_correct_array_notation_type): Likewise.
dfeadaa0 8217
36536d79
BI
82182013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
8219
8220 * c-common.c (c_define_builtins): When cilkplus is enabled, the
8221 function array_notation_init_builtins is called.
8222 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
8223 * c-common.def (ARRAY_NOTATION_REF): New tree.
8224 * c-common.h (build_array_notation_expr): New function declaration.
8225 (build_array_notation_ref): Likewise.
8226 (extract_sec_implicit_index_arg): New extern declaration.
8227 (is_sec_implicit_index_fn): Likewise.
8228 (ARRAY_NOTATION_CHECK): New define.
8229 (ARRAY_NOTATION_ARRAY): Likewise.
8230 (ARRAY_NOTATION_START): Likewise.
8231 (ARRAY_NOTATION_LENGTH): Likewise.
8232 (ARRAY_NOTATION_STRIDE): Likewise.
8233 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
8234 ARRAY_NOTATION_REF.
8235 (pp_c_expression): Likewise.
8236 * c.opt (flag_enable_cilkplus): New flag.
8237 * array-notation-common.c: New file.
8238
f7716d57
JJ
82392013-05-14 Jakub Jelinek <jakub@redhat.com>
8240
8241 PR c++/57274
8242 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
8243
a5e0cd1d
MG
82442013-05-10 Marc Glisse <marc.glisse@inria.fr>
8245
8246 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
8247 vectors.
8248
f6bc1c4a
HS
82492013-05-07 Han Shen <shenhan@google.com>
8250
8251 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
8252
3f12f6e9
SKS
82532013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8254
8255 * c-common.c (check_user_alignment): Emit error for negative values.
8256
61949153
PC
82572013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
8258
8259 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
8260
e93e18e9
PC
82612013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
8262
8263 * c-cppbuiltin.c (c_cpp_builtins): Do not define
8264 __GXX_EXPERIMENTAL_CXX1Y__.
8265
44d90fe1 82662013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
8e745a17 8267 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
44d90fe1
PC
8268
8269 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
8270 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
8271 to simply use OPT_Wpointer_arith.
8272 (c_sizeof_or_alignof_type): Likewise.
8273
13f39b2e
PC
82742013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
8275
8276 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
8277
4b84d650
JJ
82782013-04-12 Jakub Jelinek <jakub@redhat.com>
8279
8280 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
8281 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
8282 specifiers.
8283
fb037b5d
SB
82842013-04-07 Steven Bosscher <steven@gcc.gnu.org>
8285
8286 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
8287
4e856798
PC
82882013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
8289
8290 * c-common.c (pointer_int_sum): Remove dead code.
8291
4b1baac8
RS
82922013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
8293
8294 PR middle-end/56524
8295 * c-common.c (handle_optimize_attribute): Don't call
8296 save_optabs_if_changed.
8297
0b50e654
JJ
82982013-03-05 Jakub Jelinek <jakub@redhat.com>
8299
8300 PR middle-end/56461
8301 * c-pch.c (pch_init): Free target_validity at the end.
8302
48c41403
JJ
83032013-03-04 Jakub Jelinek <jakub@redhat.com>
8304
8305 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
8306
e664c61c
KS
83072013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
8308 Jakub Jelinek <jakub@redhat.com>
8309
8310 PR sanitizer/56454
8311 * c-common.c (handle_no_sanitize_address_attribute): New function.
8312 (c_common_attribute_table): Add no_sanitize_address attribute.
8313 (handle_no_address_safety_analysis_attribute): Add
8314 no_sanitize_address attribute, not no_address_safety_analysis
8315 attribute.
8316
a475fd3d 83172013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
8318
8319 PR target/52555
8320 * c-common.c (handle_optimize_attribute): Call
8321 save_optabs_if_changed.
8322
f6007d99
JJ
83232013-02-18 Jakub Jelinek <jakub@redhat.com>
8324 Steven Bosscher <steven@gcc.gnu.org>
8325
8326 PR pch/54117
8327 * c-opts.c (c_common_post_options): If debug info is enabled
8328 and non-dwarf*, refuse to load PCH files and when writing PCH
8329 file warn.
8330
cf35e2b1
JJ
83312013-02-05 Jakub Jelinek <jakub@redhat.com>
8332
8333 PR middle-end/56167
8334 * c-common.c (handle_error_attribute): Fix condition.
8335
32887460
JJ
83362013-01-30 Jakub Jelinek <jakub@redhat.com>
8337
8338 PR c++/55742
8339 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
8340
5af057d8
JM
83412013-01-18 Jason Merrill <jason@redhat.com>
8342
8343 PR target/54908
8344 * c.opt (-fextern-tls-init): New.
8345 * c-opts.c (c_common_post_options): Handle it.
8346
cc83c823
JJ
83472013-01-09 Jakub Jelinek <jakub@redhat.com>
8348
8349 PR c/48418
8350 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
8351 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
8352 and is either negative or bigger or equal to type precision
8353 of the first operand.
8354
a859517f
MP
83552012-12-03 Marek Polacek <polacek@redhat.com>
8356
8357 PR c/55570
8358 * c-common.c (check_user_alignment): Swap order of tests,
8359 check TREE_CODE first.
8360
2d7aa578
ESR
83612012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
8362
8363 PR c++/52654
8364 * c-common.h (overflow_type): New enum.
8365 (build_userdef_literal): Add overflow_type argument.
8366 (tree_userdef_literal): Add overflow_type.
8367 (USERDEF_LITERAL_OVERFLOW): New access macro.
8368 * c-common.c (build_userdef_literal): Add overflow_type
8369 argument.
8370 * c-lex.c (c_lex_with_flags): Add overflow_type to
8371 build_userdef_literal calls.
8372 (interpret_integer, interpret_float): Add overflow_type argument.
8373
cc3c4f62
RB
83742012-11-28 Richard Biener <rguenther@suse.de>
8375
8376 PR c/35634
8377 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
8378 here and use a type with proper overflow behavior for types that would
8379 need to be promoted for the arithmetic.
8380
77bc5132
JJ
83812012-11-23 Jakub Jelinek <jakub@redhat.com>
8382
8383 PR sanitizer/55435
8384 * c-common.c (handle_no_address_safety_analysis_attribute): New
8385 function.
8386 (c_common_attribute_table): Add no_address_safety_analysis.
8387
5dc99c46
SB
83882012-11-16 Simon Baldwin <simonb@google.com>
8389
8390 * c.opt: Add f[no-]canonical-system-headers.
8391 * c-opts.c (c_common_handle_option): Handle
8392 OPT_fcanonical_system_headers.
8393
a4a0016d
ESR
83942012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
8395
8396 PR c++/54413
8397 * c-opts.c (c_common_handle_option): Set new flags.
8398 * c.opt: Describe new flags.
8399
7dbb85a7
JM
84002012-11-09 Jason Merrill <jason@redhat.com>
8401
8402 * c.opt (Wabi-tag): New.
8403
ad7bac31
AK
84042012-11-09 Andi Kleen <ak@linux.intel.com>
8405
8406 PR 55139
8407 * c-common.c (get_atomic_generic_size): Mask with
8e745a17 8408 MEMMODEL_MASK
ad7bac31 8409
7332899a
MLI
84102012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
8411
8412 PR c/53063
8413 * c.opt (Wformat): Make it Alias Wformat=1.
8414 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
8415 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
8416 LangEnabledBy.
8417 (Wformat=): RejectNegative. Use LangEnabledBy.
8418 (Wnonnull): Use LangEnabledBy.
8419 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
8420 * c-format.c (set_Wformat): Delete.
8421 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
ab20d992
JJ
8422 (maybe_read_dollar_number): Likewise.
8423 (avoid_dollar_number): Likewise.
8424 (finish_dollar_format_checking): Likewise.
8425 (check_format_info): Likewise.
8426 (check_format_info_main): Likewise.
8427 (check_format_types): Likewise.
8428 (format_type_warning): Likewise.
8429 * c-common.c (int): Likewise.
8430 (check_function_sentinel): Likewise.
8e745a17 8431 * c-common.h (warn_format,set_Wformat): Do not declare here.
7332899a 8432
34a180a6
MLI
84332012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
8434
8435 PR c/53063
8436 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
8437 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
8438 Use LangEnabledBy.
8439 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
8440 common.opt.
8441 (Wvariadic-macros): Init(1).
8442 * c-opts.c (c_common_handle_option): Do not handle them
8443 explicitly.
8444 (c_common_post_options): Likewise.
8445 (sanitize_cpp_opts): warn_unused_macros is now
8446 cpp_warn_unused_macros.
8447 (push_command_line_include): Likewise.
8448 * c-common.c (warn_unknown_pragmas): Do not define.
8449 * c-common.h (warn_unknown_pragmas): Do not declare.
8450
3f46d6a5
MLI
84512012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
8452
8453 PR c/51294
8454 * c-common.c (conversion_warning): Handle conditional expressions.
8455
880661a4
JW
84562012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
8457
8458 PR c++/54930
8459 * c.opt (Wreturn_local_addr): Define new option.
8460
4514a96b
JM
84612012-10-25 Jason Merrill <jason@redhat.com>
8462
f14edc1a
JM
8463 * c.opt (Wvirtual-move-assign): New.
8464
4514a96b
JM
8465 * c.opt (Winherited-variadic-ctor): New.
8466
93100c6b
MG
84672012-10-25 Marc Glisse <marc.glisse@inria.fr>
8468
8469 PR c++/54427
8470 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
8471
1efcb8c6
JM
84722012-10-23 Joseph Myers <joseph@codesourcery.com>
8473
8474 * c-common.h (pch_cpp_save_state): Declare.
8475 * c-target.def (c_preinclude): New hook.
8476 * c-opts.c (done_preinclude): New.
8477 (push_command_line_include): Handle default preincluded header.
8478 (cb_file_change): Call pch_cpp_save_state when calling
8479 push_command_line_include.
8480 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
8481 (pch_cpp_save_state): New.
8482 (pch_init): Call pch_cpp_save_state conditionally, instead of
8483 calling cpp_save_state.
8484
4a0ae68e
MLI
84852012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
8486
8487 PR c/53063
8488 PR c/40989
8489 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
8490 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
8491 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
8492 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
8493 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
8494 * c-opts.c (c_common_handle_option): Remove explicit handling from
8495 here.
8496 (c_common_post_options): Likewise.
8497
67e4210b
EB
84982012-10-18 Eric Botcazou <ebotcazou@adacore.com>
8499
8500 * c-ada-spec.c (LOCATION_COL): Delete.
8501 (compare_location): New function.
8502 (compare_node): Use it.
8503 (compare_comment): Likewise.
8504
65d4f2cd
MLI
85052012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
8506
8507 PR c/53063
8508 PR c/40989
8509 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
8510 * c-opts.c (c_common_handle_option): Do not set them here. Add
8511 comment.
8512 (c_common_post_options): Likewise.
8513
909881cb
EB
85142012-10-16 Eric Botcazou <ebotcazou@adacore.com>
8515
8516 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
8517 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
8518 Remove POINTER_TYPE handling, add large unsigned handling and use
8519 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
8520
3a785c97
JJ
85212012-10-12 Jakub Jelinek <jakub@redhat.com>
8522
8523 PR c/54381
8524 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
8525 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
8526 locs and array of 3 trees instead of just single loc and single
8527 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
8528 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
8529 For *cmp* builtins that take two sources strings report warnings
8530 about first and second source, not about destination and source.
8531
5e54f81d
MG
85322012-10-12 Marc Glisse <marc.glisse@inria.fr>
8533
8534 PR c++/53055
8535 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
8536
f5b02f1e
EB
85372012-10-11 Eric Botcazou <ebotcazou@adacore.com>
8538
8539 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
8540 declaring something coming from another file.
8541
b46dbc6c
AC
85422012-10-10 Arnaud Charlet <charlet@adacore.com>
8543
f5b02f1e 8544 PR ada/54845
b46dbc6c
AC
8545 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
8546
5d9de0d0
PC
85472012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
8548
8549 PR c++/54194
8550 * c-common.c (warn_about_parentheses): Add location_t parameter;
8551 use EXPR_LOC_OR_LOC.
8552 * c-common.h: Update declaration.
8553
a212e43f
MG
85542012-10-09 Marc Glisse <marc.glisse@inria.fr>
8555
8556 PR c++/54427
8557 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
8558 more operations. Make error messages optional.
8559 * c-common.h (enum stv_conv): Moved from c-typeck.c.
8560 (scalar_to_vector): Declare.
8561
b1db7f91
JM
85622012-10-08 Jason Merrill <jason@redhat.com>
8563
8564 * c-common.c (c_common_reswords): Add thread_local.
8565
e28d52cf
DS
85662012-10-08 Dodji Seketeli <dodji@redhat.com>
8567
8568 PR c++/53528 C++11 attribute support
8569 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
8570 new functions.
8571 * c-common.c (check_cxx_fundamental_alignment_constraints): New
8572 static function.
8573 (handle_aligned_attribute): In choose strictest alignment
8574 among many. Use new check_cxx_fundamental_alignment_constraints.
8575 (handle_transparent_union_attribute): In c++11 attribute syntax,
8576 don't look through typedefs.
8577
3b78de56
AC
85782012-10-04 Arnaud Charlet <charlet@adacore.com>
8579
8580 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
8581 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
8582 out of dumpfile.h.
8583
6040bb5f
DC
85842012-09-25 Dehao Chen <dehao@google.com>
8585
8586 PR middle-end/54645
3b78de56 8587 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
8588 map when read in the pch.
8589
3f8257db 85902012-09-18 Arnaud Charlet <charlet@adacore.com>
0b07a57e
AC
8591
8592 * c-ada-spec.c: Style fixes.
8593
3f8257db 85942012-09-18 Thomas Quinot <quinot@adacore.com>
da5182be
TQ
8595
8596 * c.opt (-fada-spec-parent): Define new command line switch.
8597 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
8598 is specified, generate binding spec as a child of the specified unit.
8599
0ccb505d
PC
86002012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
8601 Manuel López-Ibáñez <manu@gcc.gnu.org>
8602
8603 PR c++/53210
8604 * c.opt ([Winit-self]): Enabled by -Wall in C++.
8605
c583af79
AC
86062012-08-23 Arnaud Charlet <charlet@adacore.com>
8607
8608 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
8609 for pointers, and add missing Convention C pragma.
8610 (print_ada_struct_decl): Add missing aliased keyword.
8611 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
8612
1a4049e7
JJ
86132012-08-17 Jakub Jelinek <jakub@redhat.com>
8614
8615 * c-common.c (sizeof_pointer_memaccess_warning): New function.
8616 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
8617 * c-opts.c (c_common_handle_option): Enable it for -Wall.
8618 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
8619 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
8620
70b5e7dc
RG
86212012-08-10 Richard Guenther <rguenther@suse.de>
8622
8623 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
8624
f8923f7e
SB
86252012-08-07 Steven Bosscher <steven@gcc.gnu.org>
8626
8627 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
8628 instead of separate pp_newline and pp_flush.
8629 (print_c_tree): Likewise.
8630
e45abe1f
RH
86312012-07-26 Richard Henderson <rth@redhat.com>
8632
8633 * c-common.c (handle_hot_attribute): Allow labels.
8634 (handle_cold_attribute): Likewise.
8635
332f1d24
JJ
86362012-07-20 Jakub Jelinek <jakub@redhat.com>
8637
8638 PR c++/28656
8639 * c-common.c (check_function_nonnull): Handle multiple nonnull
8640 attributes properly.
8641
7ee2468b
SB
86422012-07-16 Steven Bosscher <steven@gcc.gnu.org>
8643
8644 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
8645 * c-ada-spec.c: Likewise.
8646 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
8647
ee7b28eb
SB
86482012-07-14 Steven Bosscher <steven@gcc.gnu.org>
8649
8650 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
8651 Remove code conditional on it.
8652
6bdf3519
SB
86532012-07-11 Steven Bosscher <steven@gcc.gnu.org>
8654
8655 * c-gimplify.c: Do not include basic-block.h.
8656 * c-common.c: Do not include linfuncs.h.
8657
532aafad
SB
86582012-07-08 Steven Bosscher <steven@gcc.gnu.org>
8659
8660 * c-common.h: Include tree.h.
8661
8d0d1915
JM
86622012-07-02 Jason Merrill <jason@redhat.com>
8663
8664 PR c++/53524
8665 * c-common.c (get_priority): Call default_conversion.
8666
fbc873ad
UB
86672012-07-01 Uros Bizjak <ubizjak@gmail.com>
8668
8669 * c-pch.c (c_common_write_pch): Remove unused variables.
8670
d4a10d0a
SB
86712012-06-29 Steven Bosscher <steven@gcc.gnu.org>
8672
8673 * cppspec.c: Moved from gcc/ to here.
8674
6f3a2e23
KT
86752012-06-27 Kai Tietz <ktietz@redhat.com>
8676
8677 PR preprocessor/37215
8678 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
8679
8ca92d04
SB
86802012-06-21 Steven Bosscher <steven@gcc.gnu.org>
8681
8682 * c-common.h (c_common_print_pch_checksum): Remove.
8683 * c-pch.c: Do not include output.h.
8684 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
8685 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
8686 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
8687 (struct c_pch_header): Remove.
8688 (get_ident): Update gpch version.
8689 (pch_init): Do not print executable_checksum to asm_out_file.
8690 Do not fail if there is no asm_out_file to read back from. Set
8691 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
8692 (c_common_write_pch): Verify that nothing was written to asm_out_file
8693 since pch_init was called. Do not write a c_pch_header, and do not
8694 copy from asm_out_file to the PCH.
8695 (c_common_read_pch): Do not read a c_pch_header, and do not restore
8696 the content of asm_out_file from the PCH.
8697 (c_common_print_pch_checksum): Remove.
8698 * c-opts.c (c_common_init): Print out executable_checksum directly.
8699
70f42967
SB
87002012-06-19 Steven Bosscher <steven@gcc.gnu.org>
8701
8702 * c-target.def (objc_declare_unresolved_class_reference,
8703 objc_declare_class_definition): Add new hooks.
8704
a8781821
SB
87052012-06-19 Steven Bosscher <steven@gcc.gnu.org>
8706
8707 * c-lex.c: Do not include output.h.
8708 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
8709 Remove uses of ASM_OUTPUT_IDENT.
8710
9e1a8dd1
RR
87112012-06-15 Marc Glisse <marc.glisse@inria.fr>
8712
8713 PR c++/51033
8714 * c-common.h (c_build_vec_perm_expr): Move decl here.
8715 * c-common.c (c_build_vec_perm_expr): Move definition
8716 here.
8717
6f07a821
SB
87182012-06-06 Steven Bosscher <steven@gcc.gnu.org>
8719
8720 * c.opt (fconserve-space): Turn into a no-op.
8721
9faeb493 87222012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
8723
8724 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
8725 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
8726 both the start and end of the function.
8727
a4b7d13c
SB
87282012-06-04 Steven Bosscher <steven@gcc.gnu.org>
8729
8730 * c-common.c: Do not include output.h.
8731 * c-pragma.c: Likewise.
8732
c265f413
SA
87332012-06-04 Steven Bosscher <steven@gcc.gnu.org>
8734
8735 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
8736 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
8737 (lang_decl_name): Handle namespace decls.
8738
be7a421e
SB
87392012-05-31 Steven Bosscher <steven@gcc.gnu.org>
8740
8741 * c-ada-spec.c: Do not include output.h.
8742 * c-semantics.c: Likewise.
8743
65de6659
JM
87442012-05-29 Joseph Myers <joseph@codesourcery.com>
8745
8746 * c-common.c: Fix typo.
8747
ca5f4331
MM
87482012-05-29 Michael Matz <matz@suse.de>
8749
8750 * c-common.h (c_expand_decl): Remove prototype.
8751
4f7f7aca
MLI
87522012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
8753
8754 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
8755 * c-opts.c (c_common_handle_option): Remove code handling
8756 warn_missing_braces.
8757
4a792f9b
PC
87582012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
8759
8760 PR c++/25137
8761 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
8762 -Wmissing_braces.
8763
650dc14a
DS
87642012-05-22 Dodji Seketeli <dodji@redhat.com>
8765
8766 PR c++/53322
8767 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
8768
9b095bf1
MLI
87692012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
8770
8771 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
8772 * c-opts.c (c_common_handle_option): Do not handle explicitly
8773 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
8774
0b2c4be5
DS
87752012-05-16 Dodji Seketeli <dodji@redhat.com>
8776
8777 PR preprocessor/7263
ab20d992 8778 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
0b2c4be5
DS
8779 to cpp_classify_number. For diagnostics, use the precise location
8780 instead of the global input_location.
8781
a1bde5af
PC
87822012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
8783
d02924ef 8784 PR c++/11856
a1bde5af
PC
8785 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
8786
d1ede5f4
BS
87872012-05-14 Bernd Schmidt <bernds@codesourcery.com>
8788
a1bde5af 8789 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 8790
f2bc201f
MLI
87912012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
8792
8793 PR 53063
8794 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
8795 Wreorder): Use LangEnabledBy.
8796 * c-opts.c (c_common_handle_option): Do not enable them
8797 explicitly. Call lang-specific generated functions.
8798 (c_common_post_options): Do not set them here.
8799
95744782
MLI
88002012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
8801
8802 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
8803 Wmissing-field-initializers,Wmissing-parameter-type,
8804 Wold-style-declaration,Woverride-init): Use EnabledBy.
8805 * c-opts.c (c_common_post_options): Do not set here explicitly.
8806
7d5a5747
MLI
88072012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
8808
8809 PR 53063
8810 * c-opts.c (c_common_handle_option): Use handle_generated_option
8811 to enable sub-options.
8812
5a3c9cf2
PC
88132012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
8814
8815 PR c++/53158
8816 * c-common.c (warnings_for_convert_and_check): Use warning_at.
8817
3ac8781c
RG
88182012-05-10 Richard Guenther <rguenther@suse.de>
8819
8820 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
8821 adjust commentary about TYPE_IS_SIZETYPE types.
8822
1e537948
MLI
88232012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
8824
8825 PR c++/53261
8826 * c-common.c (warn_logical_operator): Check that argument of
8827 integer_zerop is not NULL.
8828
f2c4a785
MLI
88292012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
8830
8831 PR c/43772
8832 * c-common.c (warn_logical_operator): Do not warn if either side
8833 is already true or false.
8834
50f305ca
MLI
88352012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
8836
8837 PR c/51712
8838 * c-common.c (expr_original_type): New.
8839 (shorten_compare): Do not warn for enumeration types.
8840
0c3641b0
MLI
88412012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
8842
8843 * c.opt (fpermissive): Add Var(flag_permissive).
8844
7edaa4d2
MG
88452012-04-30 Marc Glisse <marc.glisse@inria.fr>
8846
8847 PR c++/51033
8848 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
8849 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
8850
b9c8da34
DS
88512012-04-30 Dodji Seketeli <dodji@redhat.com>
8852
8853 Add -Wvarargs option
ab20d992 8854 * c.opt (Wvarargs): Define new option.
b9c8da34 8855
e6c69da0
MLI
88562012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
8857
8858 * c-common.c (check_function_arguments): Replace
8859 Wmissing-format-attribute with Wsuggest-attribute=format.
8860
90137d8f
MLI
88612012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
8862
8863 * c.opt (Wsuggest-attribute=format): New. Alias of
8864 Wmissing-format-attribute.
8865 * c-format.c (decode_format_type): Replace
8866 Wmissing-format-attribute with Wsuggest-attribute=format.
8867 (check_function_format): Likewise.
8868
9faeb493 88692012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
8870
8871 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
8872 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
8873 * c.opt: Add Wliteral-suffix.
8874
c1771a20
MLI
88752012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
8876
8877 PR c/44774
8878 * c.opt (Wpedantic): New.
8879 (pedantic): Alias Wpedantic.
8880 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
8881 (c_common_post_options): Likewise.
8882 (sanitize_cpp_opts): Likewise.
8883 * c-lex.c (interpret_float): Likewise.
8884 * c-format.c (check_format_types): Likewise.
8885 * c-common.c (pointer_int_sum): Likewise.
8886 (c_sizeof_or_alignof_type): Likewise.
8887 (c_add_case_label): Likewise.
8888 (c_do_switch_warnings): Likewise.
8889 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
8890
04b391c1
JM
88912012-04-15 Jason Merrill <jason@redhat.com>
8892
8893 PR c++/52818
8894 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
8895 (C_STD_NAME): Distinguish between C++98 and C++11.
8896
ac868f29
EB
88972012-04-11 Eric Botcazou <ebotcazou@adacore.com>
8898
8899 PR target/52624
8900 * c-common.h (uint16_type_node): Rename into...
8901 (c_uint16_type_node): ...this.
8902 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
8903 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
8904
fd4116f4
MLI
89052012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
8906
8907 * c-common.c (warn_if_unused_value): Move definition to here.
8908 * c-common.h (warn_if_unused_value): Move declaration to here.
8909
573ac65e
WB
89102012-03-23 William Bader <williambader@hotmail.com>
8911
8912 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
8913
552b8185
JM
89142012-03-20 Jason Merrill <jason@redhat.com>
8915
8916 * c-common.h (enum cxx_dialect): Add cxx1y.
8917 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
8918 test.
8919 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
8920 * c-opts.c (c_common_post_options): Likewise.
8921 (set_std_cxx1y): New.
8922 (c_common_handle_option): Call it.
8923 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
8924
04398fa8
PC
89252012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
8926
8927 PR c++/14710
8928 * c.opt ([Wuseless-cast]): Add.
8929
d2a12ae7
RG
89302012-03-16 Richard Guenther <rguenther@suse.de>
8931
8932 * c-pretty-print.c (pp_c_initializer_list): Adjust.
8933
a12bf402
MLI
89342012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
8935
8936 PR c++/44783
8937 * c.opt (ftemplate-backtrace-limit) Add.
8938
5c30094f
RO
89392012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8940
8941 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
8942 handling.
8943 * c-pragma.c (handle_pragma_extern_prefix): Remove.
8944 (init_pragma): Don't register extern_prefix.
8945
21fa2faf
RG
89462012-03-12 Richard Guenther <rguenther@suse.de>
8947
8948 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
8949 (builtin_type_for_size): Likewise.
8950
e3793c6f
JJ
89512012-02-13 Jakub Jelinek <jakub@redhat.com>
8952
8953 PR c++/52215
8954 * c-common.c (sync_resolve_params): Don't decide whether to convert
8955 or not based on TYPE_SIZE comparison, convert whenever arg_type
8956 is unsigned INTEGER_TYPE.
8957
93286335
PC
89582012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
8959
8960 PR c/52118
8961 * c.opt ([Wunused-local-typedefs]): Fix description.
8962
7a421706
MS
89632012-01-24 Mike Stump <mikestump@comcast.net>
8964
8965 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
8966 exactly.
8967
ba9b1f11
RG
89682012-01-18 Richard Guenther <rguenther@suse.de>
8969
8970 * c-opts.c (c_common_post_options): Reset LTO flags if
8971 we are about to generate a PCH.
8972
465406be
PC
89732012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
8974
8975 PR c++/51777
8976 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
8977 use pp_unsigned_wide_integer.
8978
aee15221
RG
89792012-01-10 Richard Guenther <rguenther@suse.de>
8980
8981 PR middle-end/51806
8982 * c-opts.c (c_common_handle_option): Move -Werror handling
8983 to language independent code.
8984
5720c0dc
RG
89852012-01-05 Richard Guenther <rguenther@suse.de>
8986
8987 PR middle-end/51764
8988 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
8989 from common.opt.
8990
73ac190a
PC
89912011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
8992
8993 PR c++/51316
8994 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
8995 of array types with an unknown bound.
8996
48b0b196
JM
89972011-12-20 Joseph Myers <joseph@codesourcery.com>
8998
8999 * c-common.c (flag_isoc99): Update comment to refer to C11.
9000 (flag_isoc1x): Change to flag_isoc11.
9001 * c-common.h (flag_isoc99): Update comment to refer to C11.
9002 (flag_isoc1x): Change to flag_isoc11.
9003 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
9004 C11.
9005 * c-opts.c (set_std_c1x): Change to set_std_c11.
9006 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
9007 Call set_std_c11.
9008 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
9009 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
9010 * c.opt (std=c1x): Change to std=c11. Document as non-draft
9011 standard.
9012 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
9013 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
9014 (std=gnu1x): Make alias of std=gnu11.
9015
d58d6eb5
JM
90162011-12-19 Jason Merrill <jason@redhat.com>
9017
9018 PR c++/51228
9019 * c-common.c (handle_transparent_union_attribute): Check the first
9020 field if the type is complete.
9021
b3908fcc
JW
90222011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
9023
9024 PR libstdc++/51365
9025 * c-common.c (RID_IS_FINAL): Add.
9026 * c-common.h (RID_IS_FINAL): Add.
9027
fea3ca91
IS
90282011-11-30 Iain Sandoe <iains@gcc.gnu.org>
9029
9030 * c.opt (fgnu-runtime): Provide full description.
9031 (fnext-runtime): Likewise.
9032 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
9033
62bad7cd
AM
90342011-11-28 Andrew MacLeod <amacleod@redhat.com>
9035
9036 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
9037 predefines in one place. Add LOCK_FREE predefines.
9038 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
9039 new func.
9040
c466c4ff
AM
90412011-11-24 Andrew MacLeod <amacleod@redhat.com>
9042
9043 PR c/51256
9faeb493 9044 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 9045 conditions
9faeb493
UB
9046 (resolve_overloaded_atomic_exchange,
9047 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
9048 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
9049 error_mark_node for error conditions.
9faeb493 9050
a5952633
RG
90512011-11-08 Richard Guenther <rguenther@suse.de>
9052
9053 PR middle-end/51010
ab20d992 9054 * c-pretty-print.c (pp_c_expression): Handle SSA_NAMEs.
a5952633 9055
0a35513e
AH
90562011-11-07 Richard Henderson <rth@redhat.com>
9057 Aldy Hernandez <aldyh@redhat.com>
9058 Torvald Riegel <triegel@redhat.com>
9059
9060 Merged from transactional-memory.
9061
9062 * c-common.c (handle_tm_wrap_attribute,
9063 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
9064 (struct c_common_reswords): Added __transaction* keywords.
9065 (struct c_common_attribute_table): Added transaction* and tm_regparm
9066 attributes.
9067 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
9068 masks.
9069 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
9070 find_tm_attribute): Declare.
9071
6d87092d
JM
90722011-11-07 Jason Merrill <jason@redhat.com>
9073
9074 PR c++/35688
9075 * c-common.c, c-common.h: Revert yesterday's changes.
9076
8e7860a1
JM
90772011-11-06 Jason Merrill <jason@redhat.com>
9078
9079 PR c++/35688
9080 * c-common.c (decl_has_visibility_attr): Split out from...
9081 (c_determine_visibility): ...here.
9082 * c-common.h: Declare it.
9083
d19fa6b5
JM
90842011-11-06 Joseph Myers <joseph@codesourcery.com>
9085
9086 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
9087 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
9088 type.
9089 (check_user_alignment): New. Split out of
9090 handle_aligned_attribute. Disallow integer constants with
9091 noninteger types. Conditionally allow zero.
9092 (handle_aligned_attribute): Use check_user_alignment.
9093 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
9094
86951993
AM
90952011-11-06 Andrew MacLeod <amacleod@redhat.com>
9096 Richard Henderson <rth@redhat.com>
9097
9098 Merged from cxx-mem-model.
9099
9100 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 9101 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
9102 parameters that are the same type size.
9103 (get_atomic_generic_size): New. Find size of generic
9104 atomic function parameters and do typechecking.
9105 (add_atomic_size_parameter): New. Insert size into parameter list.
9106 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
9107 either __atomic_exchange_n or external library call.
9faeb493 9108 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 9109 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 9110 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
9111 __atomic_load_n or an external library call.
9112 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
9113 __atomic_store_n or an external library call.
9114 (resolve_overloaded_builtin): Handle new __atomic builtins.
9115
cf9e9959
EB
91162011-11-04 Eric Botcazou <ebotcazou@adacore.com>
9117
9118 PR c++/50608
9119 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
9120 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
9121 <INDIRECT_REF>: Return the argument.
9122 <ARRAY_REF>: Remove special code for negative offset.
9123 Call fold_build_pointer_plus instead of size_binop.
9124 (fold_offsetof): Remove STOP_REF argument and adjust.
9125 * c-common.h (fold_offsetof_1): Declare.
9126 (fold_offsetof): Remove STOP_REF argument.
9127
25339f10
JM
91282011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
9129
9130 PR c++/50810
9131 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
9132 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
9133 Wnarrowing for C++0x and C++98.
9134 * c.opt ([Wnarrowing]): Update.
9135
89401152
PC
91362011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
9137
9138 PR c++/44277
9139 * c.opt: Add Wzero-as-null-pointer-constant.
9140
97e3ad20
JM
91412011-10-31 Jason Merrill <jason@redhat.com>
9142
15694fdd
JM
9143 * c.opt (-fdeduce-init-list): Off by default.
9144
97e3ad20
JM
9145 PR c++/50920
9146 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
9147 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
9148 and -Wc++11-compat.
9149 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
9150
fb9120e3
RAV
91512011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
9152
9153 PR c++/30066
9154 * c.opt (fvisibility-inlines-hidden): Description change.
9155
3ce4f9e4
ESR
91562011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
9157
9158 Implement C++11 user-defined literals.
9159 * c-common.c (build_userdef_literal): New.
9160 * c-common.def: New tree code.
9161 * c-common.h (tree_userdef_literal): New tree struct and accessors.
9162 * c-lex.c (interpret_float): Add suffix parm.
9163 (c_lex_with_flags): Build literal tokens.
9164
5f53c243
PC
91652011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
9166
9167 PR c++/50841
9168 Revert:
9169 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
9170
9171 PR c++/50810
9172 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
9173 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
9174 Wnarrowing for C++0x and C++98.
9175 * c.opt ([Wnarrowing]): Update.
9176
263734e1
PC
91772011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
9178
9179 PR c++/50810
9180 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
9181 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
9182 Wnarrowing for C++0x and C++98.
9183 * c.opt ([Wnarrowing]): Update.
9184
d2e312d7
PC
91852011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
9186
9187 PR c++/45385
9188 * c-common.c (conversion_warning): Remove code looking for
9189 artificial operands.
9190
d17687f6
DS
91912011-10-18 Dodji Seketeli <dodji@redhat.com>
9192
9193 PR bootstrap/50760
9194 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 9195 !NO_IMPLICIT_EXTERN_C.
d17687f6 9196
fc8396e9
PC
91972011-10-17 Michael Spertus <mike_spertus@symantec.com>
9198
9199 * c-common.c (c_common_reswords): Add __bases,
9200 __direct_bases.
9201 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
9202
92032011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
9204
9205 PR c++/50757
9206 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
9207
847e697a
TT
92082011-10-15 Tom Tromey <tromey@redhat.com>
9209 Dodji Seketeli <dodji@redhat.com>
9210
9211 * c.opt (fdebug-cpp): New option.
9212 * c-opts.c (c_common_handle_option): Handle the option.
9213 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
9214 output stream in parameter. Factorized from ...
9215 (maybe_print_line): ... this. Dump location debug information when
9216 -fdebug-cpp is in effect.
9217 (print_line_1): New static function. Takes an output stream in
9218 parameter. Factorized from ...
9219 (print_line): ... here. Dump location information when -fdebug-cpp
9220 is in effect.
9221 (scan_translation_unit): Dump location information when
9222 -fdebug-cpp is in effect.
9223
92582b75
TT
92242011-10-15 Tom Tromey <tromey@redhat.com>
9225 Dodji Seketeli <dodji@redhat.com>
9226
9227 * c.opt (ftrack-macro-expansion): New option. Handle it with and
9228 without argument.
9229 * c-opts.c (c_common_handle_option)<case
9230 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
9231 cases. Handle -ftrack-macro-expansion with and without argument.
9232
46427374
TT
92332011-10-15 Tom Tromey <tromey@redhat.com>
9234 Dodji Seketeli <dodji@redhat.com>
9235
9236 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
9237 (print_line, cb_define, do_line_change): Adjust to avoid touching
9238 the internals of struct line_map. Use the public API instead.
9239 * c-pch.c (c_common_read_pch): Likewise.
9240 * c-lex.c (fe_file_change): Likewise.
9241
fc8396e9
PC
92422011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
9243
9244 PR c++/17212
9245 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
9246
92472011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
9248
9249 PR c++/33067
9250 * c-pretty-print.c (pp_c_floating_constant): Output
9251 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
9252
e79983f4
MM
92532011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
9254
9255 * c-common.c (def_builtin_1): Delete old interface with two
9256 parallel arrays to hold standard builtin declarations, and replace
9257 it with a function based interface that can support creating
9258 builtins on the fly in the future. Change all uses, and poison
9259 the old names. Make sure 0 is not a legitimate builtin index.
9260 * c-omp.c (c_finish_omp_barrier): Ditto.
9261 (c_finish_omp_taskwait): Ditto.
9262 (c_finish_omp_flush): Ditto.
9263
6637388f
TG
92642011-10-11 Tristan Gingold <gingold@adacore.com>
9265
9266 * c.opt: (fallow-parameterless-variadic-functions): New.
9267
3797cb21
DS
92682011-09-08 Dodji Seketeli <dodji@redhat.com>
9269
9270 PR c++/33255 - Support -Wunused-local-typedefs warning
9271 * c-common.h (struct c_language_function::local_typedefs): New
9272 field.
9faeb493
UB
9273 (record_locally_defined_typedef, maybe_record_typedef_use)
9274 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 9275 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
9276 (maybe_record_typedef_use)
9277 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
9278 * c.opt: Declare new -Wunused-local-typedefs flag.
9279
693ddb1b
EB
92802011-09-06 Eric Botcazou <ebotcazou@adacore.com>
9281
9282 PR middle-end/50266
9283 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
9284 computations.
9285
830c740f
RG
92862011-09-05 Richard Guenther <rguenther@suse.de>
9287
9288 * c-common.c (complete_array_type): Use ssize_int (-1) instead
9289 of integer_minus_one_node for empty array upper bounds.
9290
892a371f
DS
92912011-08-28 Dodji Seketeli <dodji@redhat.com>
9292
9293 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
9294 it's the first time it's being called on this main TU.
9295
0e3fdb48
RB
92962011-08-24 Richard Guenther <rguenther@suse.de>
9297
9298 PR c/49396
9299 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
9300
93012011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
9302
9303 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
9304 defined in cpp_init_builtins and c_cpp_builtins.
9305
d4a83c10
JM
93062011-08-19 Joseph Myers <joseph@codesourcery.com>
9307
9308 * c-common.c (c_common_reswords): Add __builtin_complex.
9309 * c-common.h (RID_BUILTIN_COMPLEX): New.
9310
bbceee64
JM
93112011-08-18 Joseph Myers <joseph@codesourcery.com>
9312
9313 * c-common.c (c_common_reswords): Add _Noreturn.
9314 (keyword_is_function_specifier): Handle RID_NORETURN.
9315 * c-common.h (RID_NORETURN): New.
9316
3f8257db 93172011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
0e3a99ae
AS
9318
9319 * c-common.c (unsafe_conversion_p): New function. Check if it is
9320 unsafe to convert an expression to the type.
9321 (conversion_warning): Adjust, use unsafe_conversion_p.
9322 * c-common.h (unsafe_conversion_p): New function declaration.
9323
20906c66
JJ
93242011-08-02 Jakub Jelinek <jakub@redhat.com>
9325
9326 * c-common.h (c_finish_omp_atomic): Adjust prototype.
9327 (c_finish_omp_taskyield): New prototype.
9328 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
9329 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
9330 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
9331 or RHS1 have side-effects, evaluate those too in the right spot,
9332 if it is a decl and LHS is also a decl, error out if they
9333 aren't the same.
9334 (c_finish_omp_taskyield): New function.
9335 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
9336 * c-pragma.c (omp_pragmas): Add taskyield.
9337 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
9338 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
9339 PRAGMA_OMP_CLAUSE_MERGEABLE.
9340
770e5a2e
DS
93412011-07-25 Dodji Seketeli <dodji@redhat.com>
9342
9343 * c-common.h (set_underlying_type): Remove parm name from
9344 declaration.
9345
1baae426
RG
93462011-07-25 Romain Geissler <romain.geissler@gmail.com>
9347
9348 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 9349
fcb21722
JM
93502011-07-22 Jason Merrill <jason@redhat.com>
9351
76f86d00
JM
9352 PR c++/49793
9353 * c.opt (Wnarrowing): New.
9354
3a636414
JM
9355 PR c++/30112
9356 * c-common.h: Declare c_linkage_bindings.
9357 * c-pragma.c (handle_pragma_redefine_extname): Use it.
9358
fcb21722
JM
9359 PR c++/49813
9360 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
9361 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
9362 as flag_isoc99 for 'restrict'.
9363 (pp_c_specifier_qualifier_list): Likewise for _Complex.
9364
02614448
ILT
93652011-07-21 Ian Lance Taylor <iant@google.com>
9366
9367 PR middle-end/49705
9368 * c-common.c (c_disable_warnings): New static function.
9369 (c_enable_warnings): New static function.
9370 (c_fully_fold_internal): Change local unused_p to bool. Call
9371 c_disable_warnings and c_enable_warnings rather than change
9372 c_inhibit_evaluation_warnings.
9373
34429675
JM
93742011-07-20 Jason Merrill <jason@redhat.com>
9375
9376 PR c++/6709 (DR 743)
9377 PR c++/42603 (DR 950)
9378 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
9379 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
9380 (CPP_DECLTYPE): New.
9381 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
9382
5d49b6a7
RG
93832011-07-19 Richard Guenther <rguenther@suse.de>
9384
9385 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
9386 * c-omp.c (c_finish_omp_for): Likewise.
9387
e84a58ff
EB
93882011-07-12 Eric Botcazou <ebotcazou@adacore.com>
9389
9390 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
9391 body on the next line.
9392
329af3c7
JM
93932011-07-08 Jason Merrill <jason@redhat.com>
9394
4063e61b
JM
9395 PR c++/45437
9396 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
9397
329af3c7
JM
9398 PR c++/49673
9399 * c-common.c (c_apply_type_quals_to_decl): Don't check
9400 TYPE_NEEDS_CONSTRUCTING.
9401
1a072294
RG
94022011-07-06 Richard Guenther <rguenther@suse.de>
9403
9404 * c-common.c (c_common_nodes_and_builtins):
9405 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
9406
fce5dddd
RG
94072011-07-05 Richard Guenther <rguenther@suse.de>
9408
9409 * c-common.c (c_common_nodes_and_builtins): Build all common
9410 tree nodes first.
9411
45d439ac
JJ
94122011-06-27 Jakub Jelinek <jakub@redhat.com>
9413
56300785
JJ
9414 * c-common.h (c_tree_chain_next): New static inline function.
9415
45d439ac
JJ
9416 * c-common.c (check_builtin_function_arguments): Handle
9417 BUILT_IN_ASSUME_ALIGNED.
9418
e0a8ecf2
AM
94192011-06-21 Andrew MacLeod <amacleod@redhat.com>
9420
9421 * c-common.c: Add sync_ or SYNC__ to builtin names.
9422 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
9423
94242011-06-20 Pierre Vittet <piervit@pvittet.com>
9425
9426 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
9427 handler.
9428 (gen_pragma_handler): New union.
9429 (internal_pragma_handler): New type.
9430 (c_register_pragma_with_data)
9431 (c_register_pragma_with_expansion_and_data): New functions.
9432
9433 * c-pragma.c (registered_pragmas, c_register_pragma_1)
9434 (c_register_pragma, c_register_pragma_with_expansion)
9435 (c_invoke_pragma_handler): Changed to work with
9436 internal_pragma_handler.
9437 (c_register_pragma_with_data)
9438 (c_register_pragma_with_expansion_and_data): New functions.
9439
677f3fa8
JM
94402011-06-14 Joseph Myers <joseph@codesourcery.com>
9441
9442 * c-common.c: Include common/common-target.h.
9443 (handle_section_attribute): Use
9444 targetm_common.have_named_sections.
9445 * c-cppbuiltin.c: Include common/common-target.h.
9446 (c_cpp_builtins): Use targetm_common.except_unwind_info.
9447
d7fc8c14
RG
94482011-06-10 Richard Guenther <rguenther@suse.de>
9449
9450 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
9451 to print a IDENTIFIER_NODE.
9452
10e48e39
RO
94532011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9454 Joseph Myers <joseph@codesourcery.com>
9455
9456 * c.opt (fbuilding-libgcc): New option.
9457 * c-cppbuiltin.c (c_cpp_builtins): Define
9458 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
9459
6976ae51
JM
94602011-06-07 Jason Merrill <jason@redhat.com>
9461
3ff60975
JM
9462 * c-common.c (max_tinst_depth): Lower default to 900.
9463
6976ae51
JM
9464 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
9465
009db074
RG
94662011-06-07 Richard Guenther <rguenther@suse.de>
9467
9468 * c-common.c (c_common_nodes_and_builtins): Do not set
9469 size_type_node or call set_sizetype.
9470
b4592b92
DS
94712011-06-07 Dodji Seketeli <dodji@redhat.com>
9472
9473 PR debug/49130
9474 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 9475 type when using pointer comparison to compare types.
b4592b92 9476
014ab419
JW
94772011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
9478
9479 * c.opt: Add -Wdelete-non-virtual-dtor.
9480 * c-opts.c (c_common_handle_option): Include it in -Wall.
9481
4f60111f
NF
94822011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
9483
9484 PR bootstrap/49190
9485
9486 Revert:
9487 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
9488
9489 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
9490 not tree_common.
9491
4cc4f2f4
JJ
94922011-05-27 Jakub Jelinek <jakub@redhat.com>
9493
9494 PR c++/49165
9495 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
9496 C++ don't call c_common_truthvalue_conversion on void type arms.
9497
38e01f9e
NF
94982011-05-27 Nathan Froyd <froydnj@codesourcery.com>
9499
9500 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
9501 (stmt_list_stack): Define.
9502 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
9503 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
9504
92e948a8
NF
95052011-05-26 Nathan Froyd <froydnj@codesourcery.com>
9506
9507 * c-common.c (warning_candidate_p): Check for BLOCKs.
9508
a2fc3e63
NF
95092011-05-26 Nathan Froyd <froydnj@codesourcery.com>
9510
9511 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
9512 not tree_common.
9513
0957c029
JJ
95142011-05-25 Jakub Jelinek <jakub@redhat.com>
9515
9516 * c-common.c (def_fn_type): Remove extra va_end.
9517
828fb3ba
JM
95182011-05-23 Jason Merrill <jason@redhat.com>
9519
9520 PR c++/48106
9521 * c-common.c (c_common_get_narrower): New.
9522 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
9523
dde05067
NF
95242011-05-23 Nathan Froyd <froydnj@codesourcery.com>
9525
9526 * c-common.h (check_function_arguments): Tweak prototype of
9527 check_function_arguments.
9528 * c-common.c (check_function_arguments): Likewise. Adjust
9529 calls to check_function_nonnull, check_function_format, and
9530 check_function_sentinel.
9531 (check_function_sentinel): Take a FUNCTION_TYPE rather than
9532 separate attributes and typelist arguments. Use
9533 FOREACH_FUNCTION_ARGS to iterate over argument types.
9534
3c0d13bf
PC
95352011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
9536
9537 * c-common.c (c_common_reswords): Reorder.
9538 * c-common.h (rid): Likewise.
9539
8242dd04
NF
95402011-05-10 Nathan Froyd <froydnj@codesourcery.com>
9541
9542 * c-common.c (def_fn_type): Don't call build_function_type, call
9543 build_function_type_array or build_varargs_function_type_array
9544 instead.
9545 (c_common_nodes_and_builtins): Likewise.
9546
3d528853
NF
95472011-05-05 Nathan Froyd <froydnj@codesourcery.com>
9548
9549 * c-common.c (c_add_case_label): Omit the loc argument to
9550 build_case_label.
9551 * c-common.h (build_case_label): Remove.
9552 * c-semantics.c (build_case_label): Remove.
9553
a04a722b
JM
95542011-05-05 Joseph Myers <joseph@codesourcery.com>
9555
9556 * c-objc.h (objc_start_method_definition): Update prototype.
9557 * stub-objc.c (objc_start_method_definition): Add extra parameter.
9558
e19a18d4
NF
95592011-05-04 Nathan Froyd <froydnj@codesourcery.com>
9560
9561 * c-common.c (check_main_parameter_types): Reindent. Don't use
9562 TYPE_ARG_TYPES directly.
9563 (handle_nonnull_attribute): Likewise.
9564 (sync_resolve_params): Likewise.
9565 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
9566 to check_format_string.
9567 (handle_format_attribute): Likewise.
9568 (check_format_string): Take a function type to examine instead of
9569 a type list. Use a function_arg_iterator to step through argument
9570 types.
9571
c62c040f
RG
95722011-05-04 Richard Guenther <rguenther@suse.de>
9573
9574 * c-common.c (fix_string_type): Use size_int for index type bounds.
9575 (start_fname_decls): Do not pass NULL to build_int_cst.
9576 (c_init_attributes): Likewise.
9577 * c-lex.c (c_lex_with_flags): Likewise.
9578
c12ff9d8
JM
95792011-04-27 Jason Merrill <jason@redhat.com>
9580
9581 * c-common.c (make_tree_vector_from_list): New.
9582 * c-common.h: Declare it.
9583
304dfbe3
RG
95842011-04-26 Richard Guenther <rguenther@suse.de>
9585
9586 PR preprocessor/48248
9587 * c-ppoutput.c (maybe_print_line): Always optimize newlines
9588 for output size with -P.
9589
3c0d13bf
PC
95902011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
9591
9592 * c-common.c (struct c_common_resword): Add __underlying_type.
9593 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
9594
04695783
JM
95952011-04-20 Jim Meyering <meyering@redhat.com>
9596
9597 * c-format.c (init_dollar_format_checking): Remove useless
9598 if-before-free.
9599
0dc33c3c
NP
96002011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
9601
9602 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 9603 (objc_detect_field_duplicates): New.
0dc33c3c 9604 * stub-objc.c: Likewise.
3c0d13bf 9605
c59633d9
NP
96062011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
9607
9608 * stub-objc.c (objc_declare_protocols): Renamed to
9609 objc_declare_protocol.
9610 * c-objc.h: Likewise.
3c0d13bf 9611
32dabdaf
NP
96122011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
9613
9614 * stub-objc.c (objc_declare_class): Updated argument name.
9615
81f653d6
NF
96162011-04-12 Nathan Froyd <froydnj@codesourcery.com>
9617
9618 * c-common.h (c_common_init_ts): Declare.
9619 * c-common.c (c_common_init_ts): Define.
9620
eb345401
NP
96212011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
9622
9623 * c-objc.h (objc_build_message_expr): Updated prototype.
9624 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 9625
a358e188
MJ
96262011-04-12 Martin Jambor <mjambor@suse.cz>
9627
9628 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
9629 of cgraph_node.
9630
e6313a78
RG
96312011-04-11 Richard Guenther <rguenther@suse.de>
9632
9633 * c-common.c (complete_array_type): Build a range type of
9634 proper type.
9635
dcf0c47e
NF
96362011-04-08 Nathan Froyd <froydnj@codesourcery.com>
9637
9638 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
9639 (handle_type_generic_attribute): Likewise.
9640
1ee44b26
JM
96412011-04-07 Jason Merrill <jason@redhat.com>
9642
9643 PR c++/48450
9644 * c-common.c (c_common_truthvalue_conversion): Don't ignore
9645 conversion from C++0x scoped enum.
9646
acce4e77
JM
96472011-04-06 Joseph Myers <joseph@codesourcery.com>
9648
9649 * c-target-def.h: New file.
9650 * c-target.def: New file.
9651 * c-target.h: New file.
9652 * c-common.c (targetcm): Don't define here.
9653 * c-common.h (default_handle_c_option): Declare.
9654 * c-format.c: Include c-target.h instead of target.h.
9655 * c-opts.c: Include c-target.h instead of target.h. Explicitly
9656 include tm.h.
9657 (default_handle_c_option): Move from targhooks.c.
9658
e2eefb55
JJ
96592011-03-29 Jakub Jelinek <jakub@redhat.com>
9660
9661 PR preprocessor/48248
9662 * c-ppoutput.c (print): Add src_file field.
9663 (init_pp_output): Initialize it.
9664 (maybe_print_line): Don't optimize by adding up to 8 newlines
9665 if map->to_file and print.src_file are different file.
9666 (print_line): Update print.src_file.
9667
ba78087b
KT
96682011-03-25 Kai Tietz <ktietz@redhat.com>
9669
9670 * c-ada-spec.c (compare_comment): Use filename_cmp
9671 instead of strcmp for filename.
9672
0edf1bb2
JL
96732011-03-25 Jeff Law <law@redhat.com>
9674
adfac8df 9675 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 9676
c7dc8804
JM
96772011-03-25 Jason Merrill <jason@redhat.com>
9678
9679 * c.opt: Add -std=c++03.
9680
d1d879b1
EB
96812011-03-22 Eric Botcazou <ebotcazou@adacore.com>
9682
9683 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
9684
3f8257db 96852011-03-17 Kai Tietz <ktietz@redhat.com>
62d784f7
KT
9686
9687 PR target/12171
5050afdf
KT
9688 * c-pretty-print.c (pp_c_specifier_qualifier_list):
9689 Display allowed attributes for function pointer types.
9690 (pp_c_attributes_display): New function to display
9691 attributes having affects_type_identity flag set to true.
9692 * c-pretty-print.h (pp_c_attributes_display): New prototype.
9693
62d784f7
KT
9694 * c-common.c (c_common_attribute_table):
9695 Add new element.
9696 (c_common_format_attribute_table): Likewise.
9697
82d37118
JM
96982011-03-18 Jason Merrill <jason@redhat.com>
9699
49a000c3
JM
9700 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
9701 * c-common.h: Don't declare it here.
9702 * c-common.c: Or define it here.
9703 * c-opts.c (c_common_handle_option): Or set it here.
9704
82d37118
JM
9705 PR c++/35315
9706 * c-common.c (handle_transparent_union_attribute): Don't
9707 make a duplicate type in C++.
9708
17bc631c
JM
97092011-03-15 Jason Merrill <jason@redhat.com>
9710
9711 * c-common.c (max_constexpr_depth): New.
9712 * c-common.h: Declare it.
9713 * c-opts.c (c_common_handle_option): Set it.
9714 * c.opt (fconstexpr-depth): New option.
9715
1b9b91a6
JM
97162011-03-11 Jason Merrill <jason@redhat.com>
9717
f231b5ff
JM
9718 * c-common.c (attribute_takes_identifier_p): Add missing const.
9719
1b9b91a6
JM
9720 PR c++/46803
9721 * c-common.c (attribute_takes_identifier_p): Assume that an
9722 unknown attribute takes an identifier.
9723
a19e4d44
NF
97242011-03-07 Nathan Froyd <froydnj@codesourcery.com>
9725
9726 PR c/47786
9727 * c-common.c (c_type_hash): Call list_length instead of iterating
9728 through DECL_CHAIN. Rename 'i' to 'n_elements'.
9729
982d62f6
JJ
97302011-02-19 Jakub Jelinek <jakub@redhat.com>
9731
9732 PR c/47809
9733 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
9734
0a256240
NP
97352011-02-17 Iain Sandoe <iains@gcc.gnu.org>
9736
9737 * c.opt (fobjc-abi-version=) New.
9738 (fobjc-nilcheck): New.
9739
ba9e6dd5
NF
97402011-02-03 Nathan Froyd <froydnj@codesourcery.com>
9741
9742 PR c++/46890
9743 * c-common.h (keyword_is_decl_specifier): Declare.
9744 * c-common.c (keyword_is_decl_specifier): Define.
9745 (keyword_is_function_specifier): New function.
9746
7273813a
JJ
97472011-01-26 Jakub Jelinek <jakub@redhat.com>
9748
9749 PR c/47473
9750 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
9751 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
9752 REAL_TYPE.
9753
908ef79b
AC
97542011-01-26 Arnaud Charlet <charlet@adacore.com>
9755
9756 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
9757
237e9384
JJ
97582011-01-26 Jakub Jelinek <jakub@redhat.com>
9759
9760 PR pch/47430
9761 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
9762 after init_c_lex if pch_file is set.
9763
47ea1edf
DK
97642011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
9765
d4dba752 9766 PR c++/43601
47ea1edf
DK
9767 * c.opt (-fkeep-inline-dllexport): New switch.
9768
2aa9c6ae
RG
97692011-01-12 Richard Guenther <rguenther@suse.de>
9770
9771 PR middle-end/32511
9772 * c-common.c (handle_weak_attribute): Warn instead of error
9773 on declaring an inline function weak.
9774
7bd11157
TT
97752011-01-05 Tom Tromey <tromey@redhat.com>
9776
9777 * c-common.h (lvalue_error): Update.
9778 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
9779 not error.
9780
0e66e494 97812010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 9782
b4f588c4
NP
9783 PR objc/47075
9784 * c-objc.h (objc_finish_message_expr): Added argument to
9785 prototype.
9786
f4da8dce
NF
97872010-12-22 Nathan Froyd <froydnj@codesourcery.com>
9788
9789 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
9790 Use prototype_p.
9791
46270f14
NP
97922010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
9793
9794 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 9795 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 9796
4816c593
NF
97972010-12-10 Nathan Froyd <froydnj@codesourcery.com>
9798
9799 * c-common.h (readonly_error): Declare.
9800 * c-common.c (readonly_error): Define.
9801
7a6daeb0
NF
98022010-12-09 Nathan Froyd <froydnj@codesourcery.com>
9803
9804 * c-common.h (invalid_indirection_error): Declare.
9805 * c-common.c (invalid_indirection_error): Define.
9806
892f6119
RG
98072010-12-03 Richard Guenther <rguenther@suse.de>
9808
9809 PR c/46745
9810 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
9811 (pp_c_unary_expression): Likewise.
9812 (pp_c_expression): Likewise.
9813
6c39e757
NP
98142010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
9815
9816 * c-common.h (objc_finish_function): New.
9817 (objc_non_volatilized_type): Removed.
9818 (objc_type_quals_match): Removed.
9819 * stub-objc.c (objc_finish_function): New.
9820 (objc_non_volatilized_type): Removed.
9821 (objc_type_quals_match): Removed.
9faeb493 9822
7c475d11
JM
98232010-11-30 Joseph Myers <joseph@codesourcery.com>
9824
9825 * c-common.h (parse_optimize_options): Declare.
9826 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
9827 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
9828
71f3e391
JM
98292010-11-29 Joseph Myers <joseph@codesourcery.com>
9830
9831 * c-opts.c (check_deps_environment_vars): Use getenv instead of
9832 GET_ENVIRONMENT.
9833 * c-pch.c (O_BINARY): Don't define here.
9834 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
9835
d5fabb58
JM
98362010-11-25 Joseph Myers <joseph@codesourcery.com>
9837
9838 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
9839 targetm.except_unwind_info.
9840
299404a1
JM
98412010-11-23 Joseph Myers <joseph@codesourcery.com>
9842
9843 * c-opts.c (c_common_handle_option): Pass location to
9844 set_struct_debug_option.
9845
c98cd5bf
JM
98462010-11-23 Joseph Myers <joseph@codesourcery.com>
9847
9848 * c-common.c (visibility_options): Move from ../opts.c.
9849 * c-common.h (struct visibility_flags, visibility_options):
9850 Declare here.
9851 * c-opts.c (finish_options): Rename to c_finish_options.
9852 (c_common_init): Update call to finish_options.
9853
a9546771
NP
98542010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
9855
9856 PR objc/34033
9857 * c-lex.c (lex_string): Check that each string in an Objective-C
9858 string concat sequence starts with either one or zero '@', and
9859 that there are no spurious '@' signs at the end.
9860
24a57808
JM
98612010-11-20 Joseph Myers <joseph@codesourcery.com>
9862
9863 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
9864 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
9865 HANDLE_PRAGMA_VISIBILITY.
9866 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
9867 HANDLE_PRAGMA_VISIBILITY): Don't define.
9868 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
9869
a9aa2c3a
NF
98702010-11-20 Nathan Froyd <froydnj@codesourcery.com>
9871
9872 PR c++/16189
9873 PR c++/36888
9874 PR c++/45331
9875 * c-common.h (keyword_begins_type_specifier): Declare.
9876 (keyword_is_storage_class_specifier): Declare.
9877 (keyword_is_type_qualifier): Declare.
9878 * c-common.c (keyword_begins_type_specifier): New function.
9879 (keyword_is_storage_class_specifier): New function.
9880 (keyword_is_type_qualifier): Declare.
9881
5386338c
JM
98822010-11-19 Joseph Myers <joseph@codesourcery.com>
9883
9884 PR c/46547
9885 * c-common.c (in_late_binary_op): Define.
9886 (c_common_truthvalue_conversion): Check in_late_binary_op before
9887 calling c_save_expr.
9888 * c-common.h (in_late_binary_op): Declare.
9889
69ccdddb
JM
98902010-11-19 Joseph Myers <joseph@codesourcery.com>
9891
9892 * c-opts.c (c_common_handle_option): Update calls to
9893 set_struct_debug_option.
9894
6b192a09
NP
98952010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
9896
9897 * c-common.h (objc_declare_protocols): Added additional argument.
9898 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 9899
fb52b50a
NF
99002010-11-18 Nathan Froyd <froydnj@codesourcery.com>
9901
9902 PR c/33193
9903 * c-common.h (build_real_imag_expr): Declare.
9904 * c-semantics.c (build_real_imag_expr): Define.
9905
b37421c6
JM
99062010-11-17 Joseph Myers <joseph@codesourcery.com>
9907
9908 * c-opts.c (c_common_parse_file): Take no arguments.
9909 * c-common.h (c_common_parse_file): Update prototype.
9910
07078664
JJ
99112010-11-16 Jakub Jelinek <jakub@redhat.com>
9912
9913 PR c++/46401
9914 * c-common.c (warning_candidate_p): Don't track non-const calls
9915 or STRING_CSTs.
9916
c6a13190
ILT
99172010-11-15 Ian Lance Taylor <iant@google.com>
9918
9919 * c-lex.c (init_c_lex): Set macro debug callbacks if
9920 flag_dump_go_spec is set.
9921
925e8657
NP
99222010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
9923
9924 * c-common.h (objc_build_incr_expr_for_property_ref): New.
9925 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
9926
bb0a9581
NF
99272010-11-15 Nathan Froyd <froydnj@codesourcery.com>
9928
9929 PR preprocessor/45038
9930 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
9931 dialects.
9932
c5fa0890
JM
99332010-11-12 Joseph Myers <joseph@codesourcery.com>
9934
9935 * c-common.h (c_family_lang_mask): Declare.
9936 * c-opts.c (c_family_lang_mask): Make extern.
9937 * c-pragma.c (handle_pragma_diagnostic): Use
9938 control_warning_option.
9939
a4d8c676
JM
99402010-11-12 Joseph Myers <joseph@codesourcery.com>
9941
9942 * c-common.c (parse_optimize_options): Update call to
9943 decode_options.
9944 * c-common.h (c_common_handle_option): Update prototype.
9945 * c-opts.c (c_common_handle_option): Take location_t parameter and
9946 pass it to other functions.
9947
f954bd2c
JM
99482010-11-11 Joseph Myers <joseph@codesourcery.com>
9949
9950 * c-opts.c (warning_as_error_callback): Remove.
9951 (c_common_initialize_diagnostics): Don't call
9952 register_warning_as_error_callback.
9953 (c_common_handle_option): Handle -Werror=normalized= here.
9954
d8a07487
JM
99552010-11-10 Joseph Myers <joseph@codesourcery.com>
9956
9957 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
9958 in diagnostic.
9959 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
9960 letter.
9961 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
9962 Remove trailing '.' from diagnostics.
9963 * c.opt (Wwrite-strings_: Avoid '`' in help text.
9964
d5478783
JM
99652010-11-10 Joseph Myers <joseph@codesourcery.com>
9966
9967 * c-common.c (parse_optimize_options): Pass global_dc to
9968 decode_options.
9969 * c-opts.c (c_common_handle_option): Pass &global_options to
9970 set_Wstrict_aliasing.
9971 * c.opt (v): Don't mark Common or document here.
9972
91ebb981
IS
99732010-11-06 Iain Sandoe <iains@gcc.gnu.org>
9974
9975 PR target/44981
9976 * c-format.c (format_type): New type gcc_objc_string_format_type.
9977 (valid_stringptr_type_p): New.
9978 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 9979 (check_format_string): Pass expected type, use
91ebb981
IS
9980 valid_stringptr_type_p (), check that the format string types are
9981 consistent with the format specification.
9982 (decode_format_attr): Warn if NSString is used outside objective-c.
9983 (format_types_orig): Add NSString.
9984 (format_name): New.
9985 (format_flags): New.
9986 (check_format_arg): Handle format strings requiring an external parser.
9987 first_target_format_type: New variable.
9988 (handle_format_attribute): Set up first_target_format_type, pass the
9989 expected format arg string type to check_format_string().
ab20d992 9990 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
91ebb981
IS
9991 * stub-objc.c (objc_string_ref_type_p): New.
9992 (objc_check_format_arg): New.
9993
bede2adc
NP
99942010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
9995
9faeb493 9996 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
9997 * c-common.h (objc_build_class_component_ref): New.
9998 * stub-objc.c (objc_build_class_component_ref): New.
9999
9a179d01
NP
100002010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
10001
10002 * c.opt (Wproperty-assign-default): New option.
10003
22d8d616
NP
100042010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
10005
10006 Implemented -fobjc-std=objc1 flag.
10007 * c.opt (fobjc-std=objc1): New option.
10008
2debdb4f
NP
100092010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
10010
10011 Implemented format and noreturn attributes for Objective-C methods.
10012 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
10013 attribute for Objective-C methods.
10014
ec52b111
JM
100152010-10-31 Jason Merrill <jason@redhat.com>
10016
10017 * c-common.c (conversion_warning, warn_for_collisions_1): Use
10018 EXPR_LOC_OR_HERE.
10019
46a88c12
NP
100202010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
10021
10022 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
10023 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
10024 (objc_add_property_declaration): Removed arguments for copies and
10025 ivar.
10026 (objc_build_getter_call): Renamed to
10027 objc_maybe_build_component_ref.
10028 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
10029 (objc_is_property_ref): New.
10030 * c-common.c (c_common_reswords): Removed copies and ivar.
10031 * stub-objc.c (objc_add_property_declaration): Removed arguments
10032 for copies and ivar.
10033 (objc_build_getter_call): Renamed to
10034 objc_maybe_build_component_ref.
10035 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
10036 (objc_is_property_ref): New.
9faeb493 10037
1e4bf85b
AC
100382010-10-29 Arnaud Charlet <charlet@adacore.com>
10039 Matthew Gingell <gingell@adacore.com>
10040
10041 * c-ada-spec.c (separate_class_package): New function.
10042 (pp_ada_tree_identifier): Prefix references to C++ classes with the
10043 name of their enclosing package.
10044 (print_ada_declaration): Use separate_class_package.
10045
81f0bab2
JM
100462010-10-27 Jason Merrill <jason@redhat.com>
10047
2b08f2c5
JM
10048 * c-common.c (c_common_reswords): Add __is_literal_type.
10049 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
10050
81f0bab2
JM
10051 * c-common.c (check_case_value): Remove special C++ code.
10052
200290f2
NP
100532010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
10054
10055 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
10056 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
10057 and RID_LAST_PATTR.
10058 (objc_add_property_declaration): Added additional arguments.
10059 (objc_property_attribute_kind): Removed.
10060 (objc_set_property_attr): Removed.
10061 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
10062 copy and nonatomic.
10063 * stub-objc.c (objc_add_property_declaration): Added additional
10064 arguments.
10065 (objc_set_property_attr): Removed.
9faeb493 10066
f614132b
NP
100672010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
10068
10069 * c-common.h (objc_add_property_variable): Renamed to
10070 objc_add_property_declaration. Added location argument.
10071 * stub-objc.c (objc_add_property_variable): Same change.
b1726d6c 10072
b8a18805
NP
100732010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
10074
10075 * c-common.h (objc_maybe_printable_name): New.
10076 * stub-objc.c (objc_maybe_printable_name): New.
10077
3f8257db
JJ
100782010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
10079 Andrew Pinski <pinskia@gmail.com>
30cd1c5d
AS
10080
10081 * c-common.h (c_common_mark_addressable_vec): Declare.
10082 * c-common.c (c_common_mark_addressable_vec): New function.
10083
249a82c4
NP
100842010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
10085
10086 * c-common.h (objc_set_method_type): Removed.
10087 (objc_add_method_declaration): Added boolean argument.
10088 (objc_start_method_definition): Same change.
10089 (objc_build_method_signature): Same change.
10090 * stub-objc.c (objc_set_method_type): Removed.
10091 (objc_add_method_declaration): Added boolean argument.
10092 (objc_start_method_definition): Same change.
10093 (objc_build_method_signature): Same change.
10094
977e30bc
NP
100952010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
10096
10097 * c-common.h (finish_file): Removed.
10098 (objc_write_global_declarations): New.
10099 * c-opts.c (c_common_parse_file): Do not call finish_file.
10100 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 10101
da57d1b9
NP
101022010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
10103
10104 Implemented parsing @synthesize and @dynamic for
10105 Objective-C/Objective-C++.
10106 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
10107 (objc_add_synthesize_declaration): New.
10108 (objc_add_dynamic_declaration): New.
10109 * c-common.c (c_common_reswords): Add synthesize and dynamic.
10110 * stub-objc.c (objc_add_synthesize_declaration): New.
10111 (objc_add_dynamic_declaration): New.
9faeb493 10112
0069111f
MM
101132010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
10114
10115 PR target/46041
10116 * c-cppbuiltin.c (mode_has_fma): Move function here from
10117 builtins.c. Don't use the fma optab, instead just use the
10118 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
10119 using -save-temps.
10120
e426b47b
NP
101212010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
10122
10123 Merge from 'apple/trunk' branch on FSF servers.
0069111f 10124
3f8257db 10125 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
e426b47b 10126
9faeb493 10127 Radar 4330422
e426b47b
NP
10128 * c-common.h (objc_non_volatilized_type): New declaration
10129 * stub-objc.c (objc_non_volatilized_type): New stub.
10130
90fbfdc3
NP
101312010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
10132
e426b47b 10133 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3 10134
ab20d992 10135 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
90fbfdc3 10136
9faeb493 10137 Radar 4133425
90fbfdc3 10138 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 10139 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 10140
c37d8c30
IS
101412010-10-17 Iain Sandoe <iains@gcc.gnu.org>
10142
10143 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
10144 * c-common.h (enum rid): Add RID_AT_PACKAGE.
10145 (objc_ivar_visibility_kind): New enum.
10146 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 10147 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
10148 visibility enum.
10149
1b1562a5
MM
101502010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
10151
10152 * c-cppbuiltin.c (builtin_define_float_constants): Emit
10153 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
10154 has the appropriate fma builtins.
10155 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
10156
668ea4b1
IS
101572010-10-14 Iain Sandoe <iains@gcc.gnu.org>
10158
1b1562a5 10159 merge from FSF apple 'trunk' branch.
3f8257db 10160 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 10161
668ea4b1
IS
10162 Radars 4436866, 4505126, 4506903, 4517826
10163 * c-common.c (c_common_resword): Define @property and its attributes.
10164 * c-common.h: Define property attribute enum entries.
10165 (OBJC_IS_PATTR_KEYWORD): New.
10166 (objc_property_attribute_kind): New enum.
10167 Declare objc_set_property_attr (), objc_add_property_variable (),
10168 objc_build_getter_call () and objc_build_setter_call ().
10169 * stub-objc.c (objc_set_property_attr): New stub.
10170 (objc_add_property_variable): Likewise.
10171 (objc_build_getter_call): Likewise.
10172 (objc_build_setter_call) Likewise.
1b1562a5 10173
a1178b30
IS
101742010-10-13 Iain Sandoe <iains@gcc.gnu.org>
10175
1b1562a5 10176 merge from FSF apple 'trunk' branch.
ab20d992 10177 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
a1178b30
IS
10178
10179 Radar 3803157 (method attributes)
10180 * c-common.c (handle_deprecated_attribute): Recognize
10181 objc methods as valid declarations.
10182 * c-common.h: Declare objc_method_decl ().
1b1562a5 10183 * stub-objc.c (objc_method_decl): New stub.
a1178b30 10184
a75bfaa6
JM
101852010-10-08 Joseph Myers <joseph@codesourcery.com>
10186
10187 * c-common.c (parse_optimize_options): Call
10188 decode_cmdline_options_to_array_default_mask before
10189 decode_options. Update arguments to decode_options.
10190 * c-common.h (c_common_init_options_struct): Declare.
10191 * c-opts.c (c_common_init_options_struct): New. Split out from
10192 c_common_init_options.
10193
f05b9d93
NP
101942010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
10195
10196 Implemented fast enumeration for Objective-C.
10197 * c-common.h (objc_finish_foreach_loop): New.
10198 * stub-objc.c (objc_finish_foreach_loop): New.
10199
1ebe4b4f
JM
102002010-10-05 Joseph Myers <joseph@codesourcery.com>
10201
10202 * c-common.h (struct diagnostic_context): Don't declare here.
10203 (c_common_initialize_diagnostics): Declare using
10204 diagnostic_context typedef.
10205 * c-opts.c (c_common_handle_option): Pass global_dc to
10206 handle_generated_option.
10207
d4d24ba4
JM
102082010-10-04 Joseph Myers <joseph@codesourcery.com>
10209
10210 * c-opts.c (c_common_handle_option): Pass &global_options_set to
10211 handle_generated_option.
10212
478a1c5b
ILT
102132010-10-03 Ian Lance Taylor <iant@google.com>
10214
10215 * c.opt (-fplan9-extensions): New option.
10216
82a1c2fe
FXC
102172010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10218
10219 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
10220 Remove.
10221 (c_cpp_builtins): Call functions from cppbuiltin.c instead
10222 of duplicating code.
10223
92902b1b
IS
102242010-09-30 Iain Sandoe <iains@gcc.gnu.org>
10225
10226 * c-common.c: Add two new entries for @optional
10227 and @required keywords.
10228
10229 merge from FSF 'apple/trunk' branch.
3f8257db 10230 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
92902b1b
IS
10231
10232 Radar 4386773
10233 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
10234 objective-c keywords.
10235 (objc_set_method_opt): New declaration.
10236 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 10237
46625112
JM
102382010-09-30 Joseph Myers <joseph@codesourcery.com>
10239
10240 * c-common.c (handle_optimize_attribute): Pass &global_options to
10241 cl_optimization_save and cl_optimization_restore.
10242 * c-opts.c (c_common_handle_option): Pass &global_options to
10243 handle_generated_option.
10244 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
10245 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
10246 &global_options to cl_optimization_restore.
10247
49b91f05
NP
102482010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
10249
10250 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
10251 Objective-C/Objective-C++ keywords.
10252
13ed556f 102532010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 10254
9faeb493
UB
10255 Merge from 'apple/trunk' branch on FSF servers.
10256
3f8257db 10257 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
a6341d57
NP
10258
10259 Radar 4281748
10260 * c-common.h (objc_check_global_decl): New declaration.
10261 * stub-objc.c (objc_check_global_decl): New stub.
10262
f0036cca
JM
102632010-09-29 Joseph Myers <joseph@codesourcery.com>
10264
10265 * c.opt: Don't use VarExists.
10266
e3339d0f
JM
102672010-09-29 Joseph Myers <joseph@codesourcery.com>
10268
10269 * c-common.c (c_cpp_error): Update names of diagnostic_context
10270 members.
10271 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
10272 cl_optimization members.
10273 * c-opts.c (warning_as_error_callback, c_common_handle_option,
10274 sanitize_cpp_opts, finish_options): Update names of cpp_options
10275 members.
10276
1973201f
NP
102772010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
10278
10279 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
10280 (objc_is_reserved_word): Removed.
10281 * c-common.c: Updated comments.
10282 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
10283 objc_is_reserved_word.
10284 * stub-objc.c (objc_is_reserved_word): Removed.
10285
f7e71da5
IS
102862010-09-28 Iain Sandoe <iains@gcc.gnu.org>
10287
9faeb493 10288 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
10289 include attributes.
10290 (objc_start_method_definition): Likewise.
10291 (objc_build_keyword_decl): Likewise.
10292 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
10293 (objc_start_method_definition): Likewise.
10294 (objc_build_keyword_decl): Likewise.
10295
c165dca7
IS
102962010-09-28 Iain Sandoe <iains@gcc.gnu.org>
10297
10298 * c-common.h (objc_start_class_interface): Adjust prototype.
10299 (objc_start_category_interface): Likewise.
10300 (objc_start_protocol): Likewise.
10301 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
10302 (objc_start_class_interface): Likewise.
10303 (objc_start_category_interface): Likewise.
10304
7458026b
ILT
103052010-09-27 Ian Lance Taylor <iant@google.com>
10306
10307 * c-common.c (c_common_attribute_table): Add no_split_stack.
10308 (handle_no_split_stack_attribute): New static function.
10309
b581b85b
NP
103102010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
10311
9faeb493 10312 Merge from 'apple/trunk' branch on FSF servers.
b581b85b 10313
3f8257db 10314 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
b581b85b 10315
9faeb493 10316 Radar 4229905
b581b85b
NP
10317 * c-common.h (objc_have_common_type): New declaration.
10318 * stub-objc.c (objc_have_common_type): New stub.
10319
10320 2005-06-22 Ziemowit Laski <zlaski@apple.com>
10321
10322 Radar 4154928
10323 * c-common.h (objc_common_type): New prototype.
9faeb493 10324 * stub-objc.c (objc_common_type): New stub.
b581b85b 10325
46a4da10
JH
103262010-09-24 Jan Hubicka <jh@suse.cz>
10327
10328 * c-common.c (handle_leaf_attribute): New function.
10329 (struct attribute_spec c_common_att): Add leaf.
10330
e200444e
JM
103312010-09-22 Joseph Myers <joseph@codesourcery.com>
10332
10333 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
10334 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
10335 -dump, -dump=, -imacros, -imacros=, -include, -include=,
10336 -include-barrier, -include-directory, -include-directory=,
10337 -include-directory-after, -include-directory-after=,
10338 -include-prefix, -include-prefix=, -include-with-prefix,
10339 -include-with-prefix=, -include-with-prefix-after,
10340 -include-with-prefix-after=, -include-with-prefix-before,
10341 -include-with-prefix-before=, -no-integrated-cpp,
10342 -no-line-commands, -no-standard-includes, -no-warnings, -output,
10343 -output=, -pedantic, -pedantic-errors, -preprocess,
10344 -print-missing-file-dependencies, -trace-includes, -traditional,
10345 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
10346 -user-dependencies, -verbose, -write-dependencies,
10347 -write-user-dependencies, no-integrated-cpp, traditional): New.
10348
29a80ea6
NP
103492010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
10350
10351 PR objc/23710
ac1fc2fc
NP
10352 * c-common.h (objc_start_method_definition): Return bool instead
10353 of void.
10354 * stub-objc.c (objc_start_method_definition): Return bool instead
10355 of void.
10356
103572010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
10358
10359 PR objc/25965
10360 * c-common.h (objc_get_interface_ivars): New declaration.
10361 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 10362
de621752
ILT
103632010-09-15 Ian Lance Taylor <iant@google.com>
10364
10365 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 10366 messages. Remove period at end of warning message.
de621752 10367
ba885ec5
NS
103682010-09-09 Nathan Sidwell <nathan@codesourcery.com>
10369
10370 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
10371 (handle_alias_attribute): ... here.
10372 (handle_ifunc_attribute): New.
10373
c5ee1358
MM
103742010-09-06 Mark Mitchell <mark@codesourcery.com>
10375
10376 * c-common.h (do_warn_double_promotion): Declare.
10377 * c-common.c (do_warn_double_promotion): Define.
10378
0a0b3574
MM
103792010-09-05 Mark Mitchell <mark@codesourcery.com>
10380
10381 * c.opt (Wdouble-promotion): New.
10382
d1779886
JM
103832010-09-02 Joseph Myers <joseph@codesourcery.com>
10384
10385 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
10386 fvtable-thunks, fxref): Mark no longer supported in help text.
10387
2d2bd949
JM
103882010-09-02 Joseph Myers <joseph@codesourcery.com>
10389
10390 * c.opt (Wimport, fall-virtual, falt-external-templates,
10391 fdefault-inline, fenum-int-equiv, fexternal-templates,
10392 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
10393 fname-mangling-version-, fnew-abi, fnonnull-objects,
10394 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
10395 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
10396 applicable.
10397 (fhandle-exceptions): Mark with Alias and Warn.
10398 * c-opts.c (c_common_handle_option): Don't handle options marked
10399 as ignored.
10400
5de8299c
JM
104012010-09-02 Joseph Myers <joseph@codesourcery.com>
10402
10403 * c.opt (Wcomments, Werror-implicit-function-declaration,
10404 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
10405 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
10406 aliases.
10407 * c-common.c (option_codes): Use OPT_Wcomment instead of
10408 OPT_Wcomments.
10409 * c-opts.c (warning_as_error_callback, c_common_handle_option):
10410 Don't handle options marked as aliases.
10411
0ceb0201
RG
104122010-08-25 Richard Guenther <rguenther@suse.de>
10413
10414 * c-common.c (c_common_get_alias_set): Remove special
10415 handling for pointers.
10416
ac47786e
NF
104172010-08-20 Nathan Froyd <froydnj@codesourcery.com>
10418
10419 * c-common.c: Use FOR_EACH_VEC_ELT.
10420 * c-gimplify.c: Likewise.
10421 * c-pragma.c: Likewise.
10422
c878765b
JM
104232010-08-16 Joseph Myers <joseph@codesourcery.com>
10424
10425 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
10426 RejectDriver.
10427 (MMDX): Change back to MMD. Mark NoDriverArg instead of
10428 RejectDriver.
10429 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
10430 instead of OPT_MDX and OPT_MMDX.
10431
603349bf
JM
104322010-08-16 Joseph Myers <joseph@codesourcery.com>
10433
10434 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
10435
644fa7ac
JM
104362010-08-12 Joseph Myers <joseph@codesourcery.com>
10437
10438 * c.opt (MD, MMD): Change to MDX and MMDX.
10439 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
10440
481e1176
JM
104412010-08-11 Joseph Myers <joseph@codesourcery.com>
10442
10443 * c-opts.c (c_common_handle_option): Call handle_generated_option
10444 instead of handle_option.
10445
ac8dc9f7
NF
104462010-08-08 Nathan Froyd <froydnj@codesourcery.com>
10447
10448 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
10449 (maybe_apply_renaming_pragma): Delete unneeded declarations.
10450
4f8c876d
NF
104512010-08-08 Nathan Froyd <froydnj@codesourcery.com>
10452
10453 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
10454 (pending_redefine_extname): Change type to a VEC.
10455 (add_to_renaming_pragma_list): Update for new type of
10456 pending_redefine_extname.
ac8dc9f7 10457 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 10458
3b0c690e
AC
104592010-08-04 Arnaud Charlet <charlet@adacore.com>
10460
10461 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
10462 visited.
10463 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
10464 decide whether a type has already been declared/seen.
10465 Do not go to the original type.
10466 (dump_nested_types): New parameter forward.
10467 Generate forward declaration if needed and mark type as visited.
10468 (print_ada_declaration): Call dump_nested_types if not already done.
10469 Mark types as visited.
10470
1890bccc
JM
104712010-08-03 Joseph Myers <joseph@codesourcery.com>
10472
10473 * c.opt (-print-pch-checksum): Remove option.
10474 * c-opts.c (c_common_handle_option): Don't handle
10475 OPT_print_pch_checksum.
10476
5f20c657
JM
104772010-07-27 Joseph Myers <joseph@codesourcery.com>
10478
10479 * c-common.h (c_common_handle_option): Update prototype and return
10480 value type.
10481 * c-opts.c (c_common_handle_option): Update prototype and return
10482 value type. Update calls to handle_option and
10483 enable_warning_as_error.
10484
f551f80c
JJ
104852010-07-27 Jakub Jelinek <jakub@redhat.com>
10486
10487 PR c/45079
10488 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
10489
61ff2bdc
JM
104902010-07-27 Joseph Myers <joseph@codesourcery.com>
10491
10492 * c-common.h (c_common_missing_argument): Remove.
10493 * c-opts.c (c_common_missing_argument): Remove.
10494 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
10495 idirafter, imacros, include, isysroot, isystem, iquote): Add
10496 MissingArgError.
10497 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
10498
7a9bf9a4
JM
104992010-07-27 Joseph Myers <joseph@codesourcery.com>
10500
10501 * c-common.h (c_common_option_lang_mask,
10502 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
10503 New.
10504 (c_common_init_options): Update prototype.
10505 * c-opts.c (c_common_option_lang_mask): New.
10506 (c_common_initialize_diagnostics): Split out of
10507 c_common_init_options.
10508 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
10509 New.
10510 (c_common_init_options): Update prototype. Use decoded options in
10511 search for -lang-asm.
10512
910ad8de
NF
105132010-07-15 Nathan Froyd <froydnj@codesourcery.com>
10514
10515 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
10516 * c-format.c: Likewise.
10517
718f9c0f
MLI
105182010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
10519
10520 * c-common.h: Include diagnostic-core.h. Error if already
10521 included.
10522 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
10523
4d451982
MLI
105242010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
10525
adfac8df 10526 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
10527 Do not include expr.h
10528 (vector_mode_valid_p): Move here.
10529
119fe915
SB
105302010-06-21 DJ Delorie <dj@redhat.com>
10531
10532 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
10533 allow these pragmas anywhere.
10534
105352010-06-14 Jakub Jelinek <jakub@redhat.com>
10536
10537 PR bootstrap/44509
10538 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
10539 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
10540 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
10541 ggc_strdup instead of xstrdup.
10542
105432010-06-10 Jakub Jelinek <jakub@redhat.com>
10544
10545 * c-cppbuiltin.c: Include cpp-id-data.h.
10546 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
10547 (lazy_hex_fp_value): New function.
10548 (builtin_define_with_hex_fp_value): Provide definitions lazily.
10549
6662d794
MLI
105502010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
10551
10552 * c-gimplify.c: Do not include tree-flow.h
10553
38f8b050
JR
105542010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
10555
10556 PR other/44034
10557 * c-common.c: Rename targetm member:
10558 targetm.enum_va_list -> targetm.enum_va_list_p
10559
9589f23e
AS
105602010-06-28 Anatoly Sokolov <aesok@post.ru>
10561
10562 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
10563
3b06d379
SB
105642010-06-28 Steven Bosscher <steven@gcc.gnu.org>
10565
10566 * c-cppbuiltin.c: Do not include except.h.
10567
d166d4c3
AK
105682010-06-24 Andi Kleen <ak@linux.intel.com>
10569
9faeb493
UB
10570 * c-common.c (warn_for_omitted_condop): New.
10571 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 10572
70cb8be6
JM
105732010-06-21 Joseph Myers <joseph@codesourcery.com>
10574
10575 * c.opt (lang-objc): Remove.
10576 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
10577
a4c97feb
JR
105782010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
10579
10580 * c-opts.c: Include "tm_p.h".
10581
6e2f1956
JM
105822010-06-20 Joseph Myers <joseph@codesourcery.com>
10583
10584 * c-common.c (parse_optimize_options): Update call to
10585 decode_options.
10586
bc87224e
NF
105872010-06-18 Nathan Froyd <froydnj@codesourcery.com>
10588
10589 * c-common.c (record_types_used_by_current_var_decl): Adjust for
10590 new type of types_used_by_cur_var_decl.
10591
b49cf425
JR
105922010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
10593
10594 PR bootstrap/44512
10595 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
10596 for C++ standard compliance.
10597
59f9c2ed
JM
105982010-06-16 Jason Merrill <jason@redhat.com>
10599
10600 * c.opt: Add -Wnoexcept.
10601
33766b66
RG
106022010-06-16 Richard Guenther <rguenther@suse.de>
10603
10604 PR c/44555
10605 * c-common.c (c_common_truthvalue_conversion): Remove
10606 premature and wrong optimization concering ADDR_EXPRs.
10607
eff7e30c
AC
106082010-06-15 Arnaud Charlet <charlet@adacore.com>
10609
10610 * c-ada-spec.c (dump_sloc): Remove column info.
10611 (is_simple_enum): New function.
10612 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
10613 enum types when relevant.
10614
6312e84d
MLI
106152010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
10616
9faeb493 10617 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
10618 location.
10619
1cb42611
JM
106202010-06-10 Joseph Myers <joseph@codesourcery.com>
10621
10622 * c-opts.c (c_common_handle_option): Don't handle
10623 OPT_fshow_column.
10624
a9429e29
LB
106252010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
10626
10627 * c-pragma.c (push_alignment): Use typed GC allocation.
10628 (handle_pragma_push_options): Likewise.
10629
10630 * c-common.c (parse_optimize_options): Likewise.
10631
10632 * c-common.h (struct sorted_fields_type): Add variable_size GTY
10633 option.
10634
5498f011
JM
106352010-06-07 Joseph Myers <joseph@codesourcery.com>
10636
10637 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
10638 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
10639 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
10640 flag_signed_bitfields, warn_strict_null_sentinel,
10641 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
10642 flag_gen_declaration, flag_no_gnu_keywords,
10643 flag_implement_inlines, flag_implicit_templates,
10644 flag_implicit_inline_templates, flag_optional_diags,
10645 flag_elide_constructors, flag_default_inline, flag_rtti,
10646 flag_conserve_space, flag_access_control, flag_check_new,
10647 flag_new_for_scope, flag_weak, flag_working_directory,
10648 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
10649 flag_enforce_eh_specs, flag_threadsafe_statics,
10650 flag_pretty_templates): Remove.
10651 * c-common.h (flag_preprocess_only, flag_nil_receivers,
10652 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
10653 flag_replace_objc_classes, flag_undef, flag_no_builtin,
10654 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
10655 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
10656 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
10657 flag_no_gnu_keywords, flag_implement_inlines,
10658 flag_implicit_templates, flag_implicit_inline_templates,
10659 flag_optional_diags, flag_elide_constructors, flag_default_inline,
10660 flag_rtti, flag_conserve_space, flag_access_control,
10661 flag_check_new, flag_new_for_scope, flag_weak,
10662 flag_working_directory, flag_use_cxa_atexit,
10663 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
10664 flag_threadsafe_statics, flag_pretty_templates,
10665 warn_strict_null_sentinel): Remove.
10666 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
10667 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
10668 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
10669 fimplicit-inline-templates, fimplicit-templates,
10670 flax-vector-conversions, fms-extensions, fnil-receivers,
10671 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
10672 frtti, fshort-double, fshort-enums, fshort-wchar,
10673 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
10674 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
10675 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
10676 gen-decls, undef): Use Var.
10677 (fdefault-inline, foptional-diags): Document as doing nothing.
10678 * c-opts.c (c_common_handle_option): Remove cases for options now
10679 using Var. Mark ignored options as such.
10680
39dabefd
SB
106812010-06-05 Steven Bosscher <steven@gcc.gnu.org>
10682
9faeb493 10683 * c-common.c: Moved to here from parent directory.
39dabefd
SB
10684 * c-common.def: Likewise.
10685 * c-common.h: Likewise.
10686 * c-cppbuiltin.c: Likewise.
10687 * c-dump.c: Likewise.
10688 * c-format.c: Likewise.
10689 * c-format.h : Likewise.
10690 * c-gimplify.c: Likewise.
10691 * c-lex.c: Likewise.
10692 * c-omp.c: Likewise.
10693 * c.opt: Likewise.
10694 * c-opts.c: Likewise.
10695 * c-pch.c: Likewise.
10696 * c-ppoutput.c: Likewise.
10697 * c-pragma.c: Likewise.
10698 * c-pragma.h: Likewise.
10699 * c-pretty-print.c: Likewise.
10700 * c-pretty-print.h: Likewise.
10701 * c-semantics.c: Likewise.
10702 * stub-objc.c: Likewise.
10703
10704 * c-common.c: Include gt-c-family-c-common.h.
10705 * c-pragma.c: Include gt-c-family-c-pragma.h.
10706\f
a5544970 10707Copyright (C) 2010-2019 Free Software Foundation, Inc.
39dabefd
SB
10708
10709Copying and distribution of this file, with or without modification,
10710are permitted in any medium without royalty provided the copyright
10711notice and this notice are preserved.
This page took 3.773331 seconds and 5 git commands to generate.