c-common.c (get_source_date_epoch): Rename to cb_get_source_date_epoch.
[gcc.git] / gcc / c-family / ChangeLog
1 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
2
3 * c-common.c (get_source_date_epoch): Rename to
4 cb_get_source_date_epoch.
5 * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
6 message when the parsing fails. Use error_at instead of fatal_error.
7 * c-common.h (get_source_date_epoch): Rename to
8 cb_get_source_date_epoch.
9 * c-common.h (cb_get_source_date_epoch): Prototype.
10 * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
11 * c-common.h (c_omp_region_type): Remove trailing comma.
12 * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
13 * c-lex.c (c_lex_with_flags): Remove initialization of
14 pfile->source_date_epoch.
15
16 2016-05-30 Jakub Jelinek <jakub@redhat.com>
17
18 PR c++/71349
19 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
20 C_OMP_CLAUSE_SPLIT_TARGET. Put OMP_CLAUSE_NOWAIT to
21 C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
22 instead of C_OMP_CLAUSE_SPLIT_FOR.
23
24 2016-05-24 Richard Biener <rguenther@suse.de>
25
26 PR middle-end/70434
27 PR c/69504
28 * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
29 (convert_vector_to_array_for_subscript): ... this.
30 * c-common.c (convert_vector_to_pointer_for_subscript): Use a
31 VIEW_CONVERT_EXPR to an array type. Rename to ...
32 (convert_vector_to_array_for_subscript): ... this.
33
34 2016-05-12 Marek Polacek <polacek@redhat.com>
35
36 PR c/70756
37 * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
38 size_in_bytes and pass LOC to it.
39
40 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
41
42 PR c/43651
43 * c.opt (Wduplicate-decl-specifier): New option.
44
45 2016-05-11 Marek Polacek <polacek@redhat.com>
46
47 PR c++/71024
48 * c-common.c (diagnose_mismatched_attributes): New function.
49 * c-common.h (diagnose_mismatched_attributes): Declare.
50
51 2016-05-04 Marek Polacek <polacek@redhat.com>
52
53 * c.opt (Wdangling-else): New option.
54
55 2016-05-03 Marek Polacek <polacek@redhat.com>
56
57 PR c/70859
58 * c-common.c (builtin_function_validate_nargs): Add location
59 parameter. Use it.
60 (check_builtin_function_arguments): Add location and arguments
61 parameters. Use them.
62 * c-common.h (check_builtin_function_arguments): Update declaration.
63
64 2016-05-03 Richard Biener <rguenther@suse.de>
65
66 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
67 allow call args to gimplify to SSA names.
68
69 2016-05-03 Marek Polacek <polacek@redhat.com>
70
71 * c-common.h (enum c_omp_region_type): Remove stray comma.
72
73 2016-05-02 Cesar Philippidis <cesar@codesourcery.com>
74
75 * c-common.h (enum c_omp_region_type): Define.
76
77 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
78
79 * c-common.c (shorten_compare): Use wi::to_wide.
80
81 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
82
83 PR middle-end/70626
84 * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
85 * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
86 reduction clauses in acc parallel loops.
87
88 2016-04-29 Marek Polacek <polacek@redhat.com>
89
90 PR c/70852
91 * c-common.c (warn_for_memset): Check domain before accessing it.
92
93 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
94
95 PR/69089
96 * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
97 "aligned" attribute.
98
99 2016-04-28 Jason Merrill <jason@redhat.com>
100
101 * c-lex.c (c_common_has_attribute): Handle nodiscard.
102
103 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
104 Matthias Klose <doko@debian.org>
105
106 * c-common.c (get_source_date_epoch): New function, gets the environment
107 variable SOURCE_DATE_EPOCH and parses it as long long with error
108 handling.
109 * c-common.h (get_source_date_epoch): Prototype.
110 * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
111
112 2015-04-27 Ryan Burn <contact@rnburn.com>
113
114 PR c++/69024
115 PR c++/68997
116 * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
117 (cilk_recognize_spawn): Renamed from recognize_spawn and change to
118 external linkage.
119 (cilk_detect_and_unwrap): Corresponding changes.
120 (extract_free_variables): Don't extract free variables from
121 AGGR_INIT_EXPR slot.
122 * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
123 (cilk_recognize_spawn): Likewise.
124
125 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
126
127 * c.opt (Wmemset-elt-size): New option.
128 * c-common.c (warn_for_memset): New function.
129 * c-common.h (warn_for_memset): Declare.
130
131 2016-04-25 Jason Merrill <jason@redhat.com>
132
133 * c-common.c (handle_unused_attribute): Accept CONST_DECL.
134 No longer static.
135 * c-common.h: Declare it.
136 * c-lex.c (c_common_has_attribute): Add maybe_unused.
137
138 2016-04-22 Jason Merrill <jason@redhat.com>
139
140 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
141
142 2016-04-20 Ilya Verbin <ilya.verbin@intel.com>
143
144 PR c++/69363
145 * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
146 * c-common.h (c_finish_cilk_clauses): Remove declaration.
147
148 2016-04-18 Michael Matz <matz@suse.de>
149
150 * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
151 and SET_DECL_ALIGN.
152
153 2016-04-17 Eric Botcazou <ebotcazou@adacore.com>
154
155 * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
156 (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
157 to incomplete types.
158 (dump_nested_type): Remove redundant tests and tidy up.
159 (print_ada_declaration): Also set TREE_VISITED on the declaration of
160 a type which is the typedef of an original type.
161
162 2016-04-15 Marek Polacek <polacek@redhat.com>
163
164 PR c/70651
165 * c-common.c (build_va_arg): Change two asserts into errors and return
166 error_mark_node.
167
168 2016-04-13 Marek Polacek <polacek@redhat.com>
169
170 PR c++/70639
171 * c-indentation.c (should_warn_for_misleading_indentation): Bail out
172 for switch statements, too.
173
174 2016-03-28 Jason Merrill <jason@redhat.com>
175
176 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
177
178 2016-03-23 Marek Polacek <polacek@redhat.com>
179
180 PR c++/69884
181 * c.opt (Wignored-attributes): New option.
182
183 2016-03-22 David Malcolm <dmalcolm@redhat.com>
184
185 PR c/69993
186 * c-indentation.c (warn_for_misleading_indentation): Rewrite the
187 diagnostic text, reversing the order of the warning and note so
188 that they appear in source order.
189
190 2016-03-17 Marek Polacek <polacek@redhat.com>
191
192 PR c/69407
193 * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
194 operations.
195
196 2016-03-14 Jason Merrill <jason@redhat.com>
197
198 * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
199
200 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
201
202 2016-03-09 Richard Biener <rguenther@suse.de>
203
204 PR c/70143
205 * c-common.c (strict_aliasing_warning): Add back
206 alias_sets_conflict_p check.
207
208 2016-03-08 Jason Merrill <jason@redhat.com>
209
210 * c-opts.c (set_std_cxx1z): Don't enable concepts.
211
212 2016-03-04 David Malcolm <dmalcolm@redhat.com>
213
214 PR c/68187
215 * c-indentation.c (get_visual_column): Move code to determine next
216 tab stop to...
217 (next_tab_stop): ...this new function.
218 (line_contains_hash_if): Delete function.
219 (detect_preprocessor_logic): Delete function.
220 (get_first_nws_vis_column): New function.
221 (detect_intervening_unindent): New function.
222 (should_warn_for_misleading_indentation): Replace call to
223 detect_preprocessor_logic with a call to
224 detect_intervening_unindent.
225
226 2016-03-04 David Malcolm <dmalcolm@redhat.com>
227
228 PR c/68187
229 * c-indentation.c (should_warn_for_misleading_indentation): When
230 suppressing warnings about cases where the guard and body are on
231 the same column, only use the first non-whitespace column in place
232 of the guard token column when dealing with "else" clauses.
233 When rejecting aligned BODY and NEXT, loosen the requirement
234 from equality with the first non-whitespace of guard to simply
235 that they not be indented relative to it.
236
237 2016-03-04 Richard Biener <rguenther@suse.de>
238
239 PR c++/70054
240 * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
241 instead of alias_sets_conflict_p.
242
243 2016-03-01 Marek Polacek <polacek@redhat.com>
244
245 PR c++/69795
246 * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
247 any DECL.
248
249 2016-02-22 Martin Sebor <msebor@redhat.com>
250
251 PR middle-end/69780
252 * c-common.c (check_builtin_function_arguments): Validate and
253 reject invalid arguments to __builtin_alloca_with_align.
254
255 2016-02-20 Mark Wielaard <mjw@redhat.com>
256
257 PR c/28901
258 * c.opt (Wunused-const-variable): Turn into Alias for...
259 (Wunused-const-variable=): New option.
260
261 2016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
262
263 PR c++/69865
264 * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
265 here...
266 (c_common_init_options): ...to here.
267 (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
268
269 2016-02-19 Jakub Jelinek <jakub@redhat.com>
270
271 PR c++/69826
272 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
273 (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
274 flag_preprocess_only.
275
276 2016-02-16 Jakub Jelinek <jakub@redhat.com>
277
278 PR c/69835
279 * c.opt (Wnonnull-compare): Enable for -Wall.
280
281 2016-02-15 Jakub Jelinek <jakub@redhat.com>
282
283 PR c++/69797
284 * c-common.c (sync_resolve_size): Diagnose too few arguments
285 even when params is non-NULL empty vector.
286
287 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
288
289 PR target/60410
290 * c.opt (fshort-double): Remove.
291
292 2016-02-05 Martin Sebor <msebor@redhat.com>
293
294 PR c++/69662
295 * c.opt (Warning options): Update -Wplacement-new to take
296 an optional argument.
297
298 2016-02-01 Jakub Jelinek <jakub@redhat.com>
299
300 PR preprocessor/69543
301 PR c/69558
302 * c-pragma.c (handle_pragma_diagnostic): Pass input_location
303 instead of loc to control_warning_option.
304
305 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
306
307 * c.opt (fopenacc-dim=): New option.
308
309 2016-01-27 Ryan Burn <contact@rnburn.com>
310
311 PR cilkplus/69267
312 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
313 gimplify_arg. Removed superfluous post_p argument.
314 * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
315 superfluous post_p argument.
316 * c-gimplify.c (c_gimplify_expr): Likewise.
317
318 2016-01-26 David Malcolm <dmalcolm@redhat.com>
319
320 PR other/69006
321 * c-opts.c (c_diagnostic_finalizer): Replace invocation of
322 pp_newline_and_flush with pp_flush.
323
324 2016-01-20 Martin Sebor <msebor@redhat.com>
325
326 PR c/69405
327 * c-common.c (sync_resolve_size): Avoid printing diagnostic about
328 an incompatible argument when the argument isn't a valid tree node.
329
330 2016-01-18 Jason Merrill <jason@redhat.com>
331
332 PR c++/68767
333 * c-common.c (check_function_arguments_recurse): Fold the whole
334 COND_EXPR, not just the condition.
335
336 2016-01-18 Tom de Vries <tom@codesourcery.com>
337
338 * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
339 classify as loop clause.
340
341 2016-01-15 Jakub Jelinek <jakub@redhat.com>
342
343 PR bootstrap/68271
344 * c-pragma.c (c_register_pragma_1): Adjust comment to note that
345 C++ FE no longer has limit on number of pragmas.
346
347 2015-01-14 Ryan Burn <contact@rnburn.com>
348
349 PR c++/69048
350 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
351 to add missing cleanup point.
352
353 2016-01-14 David Malcolm <dmalcolm@redhat.com>
354
355 PR c++/68819
356 * c-indentation.c (get_visual_column): Add location_t param.
357 Handle the column number being zero by effectively disabling the
358 warning, with an "inform".
359 (should_warn_for_misleading_indentation): Add location_t argument
360 for all uses of get_visual_column.
361
362 2016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
363
364 PR c++/69029
365 * c-indentation.c (should_warn_for_misleading_indentation):
366 Don't warn about do-while statements.
367
368 2016-01-07 Martin Sebor <msebor@redhat.com>
369
370 PR c/68966
371 * c-common.c (sync_resolve_size): Reject first argument when it's
372 a pointer to _Bool.
373
374 2016-01-05 David Malcolm <dmalcolm@redhat.com>
375
376 PR c/69122
377 * c-indentation.c (get_visual_column): Remove default argument.
378 (should_warn_for_misleading_indentation): For the multiline case,
379 update call to get_visual_column for next_stmt_exploc so that it
380 captures the location of the first non-whitespace character in the
381 relevant line. Don't issue warnings if there is non-whitespace
382 before the next statement.
383
384 2016-01-04 Jakub Jelinek <jakub@redhat.com>
385
386 Update copyright years.
387
388 2015-12-21 David Malcolm <dmalcolm@redhat.com>
389
390 * c-common.c (binary_op_error): Convert first param from
391 location_t to rich_location * and use it when emitting an error.
392 * c-common.h (binary_op_error): Convert first param from
393 location_t to rich_location *.
394
395 2015-12-16 David Malcolm <dmalcolm@redhat.com>
396
397 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
398 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
399
400 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
401
402 * c-common.c (c_common_attribute_table): Handle "omp declare target
403 link" attribute.
404
405 2015-12-14 Jakub Jelinek <jakub@redhat.com>
406
407 PR c/68833
408 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
409
410 2014-12-12 Tobias Burnus <burnus@net-b.de>
411
412 PR fortran/68815
413 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
414 specifiers (%d, %i,%u and %c).
415
416 2015-12-10 David Malcolm <dmalcolm@redhat.com>
417
418 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
419
420 2015-12-08 Jakub Jelinek <jakub@redhat.com>
421
422 PR c/48088
423 PR c/68657
424 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
425 * c-pragma.c (handle_pragma_diagnostic): Adjust
426 control_warning_option caller.
427
428 2015-12-07 David Malcolm <dmalcolm@redhat.com>
429
430 * c-common.c (c_cpp_error): Update for change to
431 rich_location::set_range.
432
433 2015-12-04 Paolo Bonzini <bonzini@gnu.org>
434
435 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
436 shifting 1 out of the sign bit.
437
438 2015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
439
440 * c-common.c (c_common_attribute_table[]): Update max arguments
441 count for "simd" attribute.
442 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
443
444 2015-12-03 Jakub Jelinek <jakub@redhat.com>
445
446 PR preprocessor/57580
447 * c-ppoutput.c (print): Change printed field to bool.
448 Move src_file last for smaller padding.
449 (init_pp_output): Set print.printed to false instead of 0.
450 (scan_translation_unit): Fix up formatting. Set print.printed
451 to true after printing something other than newline.
452 (scan_translation_unit_trad): Set print.printed to true instead of 1.
453 (maybe_print_line_1): Set print.printed to false instead of 0.
454 (print_line_1): Likewise.
455 (do_line_change): Set print.printed to true instead of 1.
456 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
457 dump_macro): Set print.printed to false after printing newline.
458
459 2015-12-02 Jason Merrill <jason@redhat.com>
460
461 * c-common.c (fold_for_warn): New.
462 (warn_logical_operator, warn_tautological_cmp)
463 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
464
465 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
466 (c_fully_fold_internal, decl_constant_value_for_optimization):
467 Move to c/c-fold.c.
468 * c-common.h: Don't declare decl_constant_value_for_optimization.
469
470 2015-12-02 Joseph Myers <joseph@codesourcery.com>
471
472 PR c/68162
473 * c-common.h (c_build_qualified_type): Add extra default
474 arguments.
475
476 2015-12-01 Julian Brown <julian@codesourcery.com>
477 Cesar Philippidis <cesar@codesourcery.com>
478 James Norris <James_Norris@mentor.com>
479
480 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
481 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
482 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
483
484 2015-11-30 Eric Botcazou <ebotcazou@adacore.com>
485
486 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
487 (decl_sloc_common): Delete and move bulk of processing to...
488 (decl_sloc): ...here.
489 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
490 (dump_ada_double_name): Remove S parameter and compute the suffix.
491 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
492 element type and deal with an anonymous one.
493 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
494 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
495 and remove reference to QUAL_UNION_TYPE.
496 (dump_nested_types): Make 2 passes on the fields and move bulk to...
497 (dump_nested_type): ...here. New function extracted from above.
498 Generate a full declaration for anonymous element type of arrays.
499 (print_ada_declaration): Really skip anonymous declarations. Remove
500 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
501 Clean up processing of declarations of array types and objects.
502 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
503 Remove obsolete code and tidy up.
504
505 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
506
507 PR c/67581
508 * c-common.c (handle_transparent_union_attribute): Update
509 also type variants.
510
511 2015-11-27 Martin Liska <mliska@suse.cz>
512
513 PR c++/68312
514 * array-notation-common.c (cilkplus_extract_an_triplets):
515 Release vector of vectors.
516 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
517
518 2015-11-26 Eric Botcazou <ebotcazou@adacore.com>
519
520 PR c++/68527
521 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
522 (print_ada_struct_decl): Likewise.
523
524 2015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
525
526 PR c++/68001
527 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
528 * cilk.c (recognize_spawn): Determine location in a more precise
529 way.
530
531 2015-11-19 Jason Merrill <jason@redhat.com>
532
533 * c-common.c (shorten_compare): But look through macros from
534 system headers.
535
536 2015-11-18 Jason Merrill <jason@redhat.com>
537
538 * c-common.c (shorten_compare): Don't -Wtype-limits if the
539 non-constant operand comes from a macro.
540
541 2015-11-17 Jason Merrill <jason@redhat.com>
542
543 PR bootstrap/68346
544 * c-common.c (warn_tautological_cmp): Fold before checking for
545 constants.
546
547 2015-11-16 Marek Polacek <polacek@redhat.com>
548
549 PR c++/68362
550 * c-common.c (check_case_bounds): Fold low and high cases.
551
552 2015-11-16 Marek Polacek <polacek@redhat.com>
553
554 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
555 * c-common.c (c_common_get_alias_set): Likewise.
556 (handle_visibility_attribute): Likewise.
557
558 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
559
560 * c-common.c (handle_simd_attribute): New.
561 (struct attribute_spec): Add entry for "simd".
562 (handle_simd_attribute): New.
563
564 2015-11-13 Kai Tietz <ktietz70@googlemail.com>
565
566 * c-lex.c (interpret_float): Use fold_convert.
567
568 2015-11-13 David Malcolm <dmalcolm@redhat.com>
569
570 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
571 and store it on the result.
572 * c-opts.c (c_common_init_options): Set
573 global_dc->colorize_source_p.
574
575 2015-11-12 James Norris <jnorris@codesourcery.com>
576 Joseph Myers <joseph@codesourcery.com>
577
578 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
579 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
580 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
581 PRAGMA_OACC_CLAUSE_LINK.
582
583 2015-11-11 Marek Polacek <polacek@redhat.com>
584
585 PR c/68107
586 PR c++/68266
587 * c-common.c (valid_array_size_p): New function.
588 * c-common.h (valid_array_size_p): Declare.
589
590 2015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
591
592 PR bootstrap/68271
593 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
594
595 2015-11-11 Andrew MacLeod <amacleod@redhat.com>
596
597 * array-notation-common.c: Remove unused header files.
598 * c-ada-spec.c: Likewise.
599 * c-cilkplus.c: Likewise.
600 * c-common.c: Likewise.
601 * c-cppbuiltin.c: Likewise.
602 * c-dump.c: Likewise.
603 * c-format.c: Likewise.
604 * c-gimplify.c: Likewise.
605 * c-indentation.c: Likewise.
606 * c-lex.c: Likewise.
607 * c-omp.c: Likewise.
608 * c-opts.c: Likewise.
609 * c-pch.c: Likewise.
610 * c-ppoutput.c: Likewise.
611 * c-pragma.c: Likewise.
612 * c-pretty-print.c: Likewise.
613 * c-semantics.c: Likewise.
614 * c-ubsan.c: Likewise.
615 * cilk.c: Likewise.
616 * stub-objc.c: Likewise.
617
618 2015-11-09 Thomas Schwinge <thomas@codesourcery.com>
619 Cesar Philippidis <cesar@codesourcery.com>
620 James Norris <jnorris@codesourcery.com>
621 Julian Brown <julian@codesourcery.com>
622 Nathan Sidwell <nathan@codesourcery.com>
623
624 * c-pragma.c (oacc_pragmas): Add "routine".
625 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
626
627 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
628
629 * c-common.c (c_common_attributes): Add scalar_storage_order.
630 (handle_scalar_storage_order_attribute): New function.
631 * c-pragma.c (global_sso): New variable.
632 (maybe_apply_pragma_scalar_storage_order): New function.
633 (handle_pragma_scalar_storage_order): Likewise.
634 (init_pragma): Register scalar_storage_order.
635 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
636 * c.opt (Wscalar-storage-order): New warning.
637 (fsso-struct=): New option.
638
639 2015-11-08 Martin Sebor <msebor@redhat.com>
640
641 * c.opt (Wplacement-new): Add a period to the end of a sentence.
642
643 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
644
645 * c-common.c: Don't undef DEF_BUILTIN.
646
647 2015-11-06 David Malcolm <dmalcolm@redhat.com>
648
649 * c-common.c (c_cpp_error): Convert parameter from location_t to
650 rich_location *. Eliminate the "column_override" parameter and
651 the call to diagnostic_override_column.
652 Update the "done_lexing" clause to set range 0
653 on the rich_location, rather than overwriting a location_t.
654 * c-common.h (c_cpp_error): Convert parameter from location_t to
655 rich_location *. Eliminate the "column_override" parameter.
656
657 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
658 Thomas Schwinge <thomas@codesourcery.com>
659 James Norris <jnorris@codesourcery.com>
660
661 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
662 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
663 clauses with parallel and kernels and loops.
664 * c-pragma.h (enum pragma_omp_clause): Add entries for
665 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
666 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
667 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
668 INDEPENDENT,SEQ}.
669 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
670
671 2015-11-05 Martin Sebor <msebor@redhat.com>
672
673 PR c++/67942
674 * c.opt (-Wplacement-new): New option.
675
676 2015-11-05 Jakub Jelinek <jakub@redhat.com>
677
678 * c-common.h (c_finish_omp_atomic): Add TEST argument.
679 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
680 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
681 save_expr or create_tmp_var* if TEST is true.
682 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
683 Don't call add_stmt here.
684 (struct c_omp_check_loop_iv_data): New type.
685 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
686 c_omp_check_loop_iv_exprs): New functions.
687 (c_omp_split_clauses): Adjust for lastprivate being allowed on
688 distribute.
689 (c_omp_declare_simd_clauses_to_numbers): Change
690 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
691 (c_omp_declare_simd_clauses_to_decls): Similarly change those
692 from numbers to PARM_DECLs.
693
694 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
695
696 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
697 flag_checking.
698
699 2015-11-03 Bernd Schmidt <bschmidt@redhat.com>
700
701 PR c++-common/67882
702 * c-common.h (fold_offsetof_1): Add argument.
703 * c-common.c (fold_offsetof_1): Diagnose more invalid
704 offsetof expressions that reference elements past the end of
705 an array.
706
707 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
708 Chung-Lin Tang <cltang@codesourcery.com>
709
710 * c-pragma.c (oacc_pragmas): Add "atomic".
711 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
712
713 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
714
715 * c-common.c (handle_target_clones_attribute): New.
716 (c_common_attribute_table): Add handle_target_clones_attribute.
717 (handle_always_inline_attribute): Add check on target_clones attribute.
718 (handle_target_attribute): Ditto.
719
720 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
721
722 * array-notation-common.c: Reorder #include's and remove duplicates.
723 * c-ada-spec.c: Likewise.
724 * c-cilkplus.c: Likewise.
725 * c-common.c: Likewise.
726 * c-cppbuiltin.c: Likewise.
727 * c-dump.c: Likewise.
728 * c-format.c: Likewise.
729 * c-gimplify.c: Likewise.
730 * c-indentation.c: Likewise.
731 * c-lex.c: Likewise.
732 * c-omp.c: Likewise.
733 * c-opts.c: Likewise.
734 * c-pch.c: Likewise.
735 * c-ppoutput.c: Likewise.
736 * c-pragma.c: Likewise.
737 * c-pretty-print.c: Likewise.
738 * c-semantics.c: Likewise.
739 * c-ubsan.c: Likewise.
740 * cilk.c: Likewise.
741 * stub-objc.c: Likewise.
742
743 2015-10-28 Jason Merrill <jason@redhat.com>
744
745 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
746
747 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
748 James Norris <jnorris@codesourcery.com>
749 Cesar Philippidis <cesar@codesourcery.com>
750
751 PR c/64765
752 PR c/64880
753 * c-common.h (c_oacc_split_loop_clauses): Declare function.
754 * c-omp.c (c_oacc_split_loop_clauses): New function.
755
756 2015-10-21 Martin Sebor <msebor@redhat.com>
757
758 PR driver/68043
759 * c.opt: End each sentence that describes an option with a period.
760
761 2015-10-20 Marek Polacek <polacek@redhat.com>
762
763 * array-notation-common.c (is_cilkplus_vector_p): Define.
764 * c-common.h (is_cilkplus_vector_p): Declare.
765
766 2015-10-20 Marek Polacek <polacek@redhat.com>
767
768 * c.opt (std=gnu++11): Do not describe as experimental.
769 (std=gnu++14): Likewise.
770
771 2015-10-19 Jason Merrill <jason@redhat.com>
772
773 * c-cppbuiltin.c (c_cpp_builtins): Define
774 __cpp_nontype_template_args.
775
776 2015-10-19 Jason Merrill <jason@redhat.com>
777
778 * c-cppbuiltin.c (c_cpp_builtins): Define
779 __cpp_enumerator_attributes, __cpp_fold_expressions,
780 __cpp_unicode_characters.
781
782 2015-10-13 Jakub Jelinek <jakub@redhat.com>
783 Aldy Hernandez <aldyh@redhat.com>
784
785 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
786 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
787 (c_define_builtins): Likewise.
788 * c-common.h (enum c_omp_clause_split): Add
789 C_OMP_CLAUSE_SPLIT_TASKLOOP.
790 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
791 (c_finish_omp_for): Add ORIG_DECLV argument.
792 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
793 201511 instead of 201307.
794 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
795 OMP_CRITICAL_CLAUSES to it.
796 (c_finish_omp_ordered): Add CLAUSES argument, set
797 OMP_ORDERED_CLAUSES to it.
798 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
799 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
800 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
801 constructs and new OpenMP 4.5 clauses. Clear
802 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
803 verification code.
804 * c-pragma.c (omp_pragmas_simd): Add taskloop.
805 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
806 (enum pragma_omp_clause): Add
807 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
808 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
809
810 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
811
812 * c-lex.c (interpret_float): Use real_equal instead of
813 REAL_VALUES_EQUAL.
814
815 2015-10-04 Jason Merrill <jason@redhat.com>
816
817 Implement N4514, C++ Extensions for Transactional Memory.
818 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
819 (c_common_attribute_table): Add transaction_safe_dynamic.
820 transaction_safe now affects type identity.
821 (handle_tm_attribute): Handle transaction_safe_dynamic.
822 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
823 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
824 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
825 (D_TRANSMEM): New.
826 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
827 * c-pretty-print.c (pp_c_attributes_display): Don't print
828 transaction_safe in C++.
829
830 2015-10-02 Marek Polacek <polacek@redhat.com>
831
832 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
833
834 2015-10-02 Marek Polacek <polacek@redhat.com>
835
836 PR c/64249
837 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
838 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
839 * c.opt (Wduplicated-cond): New option.
840
841 2015-10-01 Joseph Myers <joseph@codesourcery.com>
842
843 * c.opt (std=c11): Do not describe as experimental.
844 (std=gnu11): Likewise.
845 (std=iso9899:2011): Likewise.
846
847 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
848
849 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
850 (DEF_FUNCTION_TYPE_VAR_11): Delete.
851
852 2015-09-25 Marek Polacek <polacek@redhat.com>
853
854 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
855 (ubsan_instrument_shift): Likewise.
856
857 2015-09-25 Marek Polacek <polacek@redhat.com>
858
859 PR sanitizer/64906
860 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
861
862 2015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
863
864 * c-indentation.c (should_warn_for_misleading_indentation):
865 Compare next_stmt_vis_column with guard_line_first_nws instead
866 of with guard_line_vis_column.
867
868 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
869
870 PR c/49654
871 PR c/49655
872 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
873 options and options not valid for the current language.
874
875 2015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
876
877 * c-indentation.c (should_warn_for_misleading_indentation):
878 Float out and consolidate the calls to get_visual_column that
879 are passed guard_exploc as an argument. Compare
880 next_stmt_vis_column with guard_line_first_nws instead of with
881 body_line_first_nws.
882
883 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
884
885 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
886 Wnamespaces): New C++ warnings.
887
888 2015-09-22 Jason Merrill <jason@redhat.com>
889
890 * c-common.h (abi_compat_version_crosses): New.
891 (warn_abi_version): Declare.
892 * c-common.c: Define it.
893 * c-opts.c (c_common_post_options): Handle it.
894 flag_abi_compat_version defaults to 8.
895
896 2015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
897
898 Complete the implementation of N4230, Nested namespace definition.
899 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
900 __cpp_nested_namespace_definitions.
901
902 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
903
904 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
905
906 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
907
908 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
909 when warning.
910 * c-pragma.h (pragma_lex): Add optional loc argument.
911
912 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
913
914 * c-format.c (check_format_arg): Adjust to use common block size in all
915 object pools.
916
917 2015-09-15 David Malcolm <dmalcolm@redhat.com>
918
919 * c-format.c (location_from_offset): Update for change in
920 signature of location_get_source_line.
921 * c-indentation.c (get_visual_column): Likewise.
922 (line_contains_hash_if): Likewise.
923
924 2015-09-14 Marek Polacek <polacek@redhat.com>
925
926 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
927 setting various warnings.
928
929 2015-09-14 Marek Polacek <polacek@redhat.com>
930
931 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
932 a negative value.
933
934 2015-09-11 Mark Wielaard <mjw@redhat.com>
935
936 PR c/28901
937 * c.opt (Wunused-variable): Option from common.opt.
938 (Wunused-const-variable): New option.
939
940 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
941
942 PR c++/53184
943 * c.opt ([Wsubobject-linkage]): Add.
944
945 2015-09-03 Martin Sebor <msebor@redhat.com>
946
947 PR c/66516
948 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
949 functions.
950 * c-common.c (reject_gcc_builtin): Define.
951
952 2015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
953
954 PR middle-end/60586
955 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
956 prototype.
957 * c-gimplify.c (c_gimplify_expr): Added a call to the function
958 cilk_gimplify_call_params_in_spawned_fn.
959 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
960 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
961 unwrapping.
962
963 2015-08-25 Marek Polacek <polacek@redhat.com>
964
965 PR middle-end/67330
966 * c-common.c (handle_weak_attribute): Don't check whether the
967 visibility can be changed here.
968
969 2015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
970
971 * c-lex.c (c_lex_with_flags): Use explicit locations.
972
973 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
974
975 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
976 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
977
978 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
979
980 PR middle-end/36757
981 * c-common.c (check_builtin_function_arguments): Add check
982 for BUILT_IN_SIGNBIT argument.
983
984 2015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
985
986 PR c++/67160
987 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
988 in c++1z mode.
989
990 2015-08-17 Marek Polacek <polacek@redhat.com>
991
992 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
993 with whitespaces before qualifier names.
994
995 2015-08-12 Marek Polacek <polacek@redhat.com>
996
997 PR c++/55095
998 * c-common.c (maybe_warn_shift_overflow): Properly handle
999 left-shifting 1 into the sign bit.
1000
1001 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1002
1003 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
1004
1005 2015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
1006 Braden Obrzut <admin@maniacsvault.net>
1007 Jason Merrill <jason@redhat.com>
1008
1009 Add C++ Concepts TS support.
1010 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
1011 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
1012 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
1013 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
1014 * c-opts.c (set_std_cxx1z): Set flag_concepts.
1015 * c.opt (fconcepts): New.
1016
1017 2015-08-02 Martin Sebor <msebor@redhat.com>
1018
1019 * c.opt (-Wframe-address): New warning option.
1020
1021 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1022
1023 * c-indentation.c (should_warn_for_misleading_indentation):
1024 Improve heuristics.
1025
1026 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1027
1028 * c-indentation.c (get_visual_column): Add parameter first_nws,
1029 use it. Update comment documenting the function.
1030 (is_first_nonwhitespace_on_line): Remove.
1031 (should_warn_for_misleading_indentation): Replace usage of
1032 of is_first_nonwhitespace_on_line with get_visual_column.
1033
1034 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1035
1036 * c-indentation.h (struct token_indent_info): Define.
1037 (get_token_indent_info): Define.
1038 (warn_for_misleading_information): Declare.
1039 * c-common.h (warn_for_misleading_information): Remove.
1040 * c-identation.c (warn_for_misleading_indentation):
1041 Change declaration to take three token_indent_infos. Adjust
1042 accordingly.
1043 * c-identation.c (should_warn_for_misleading_indentation):
1044 Likewise. Bail out early if the body is a compound statement.
1045 (guard_tinfo_to_string): Define.
1046
1047 2015-07-30 Jason Merrill <jason@redhat.com>
1048
1049 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
1050 '*' for reference decay.
1051
1052 2015-07-30 Marek Polacek <polacek@redhat.com>
1053
1054 * c-common.c (warn_tautological_cmp): Bail for float types.
1055
1056 2015-07-27 Marek Polacek <polacek@redhat.com>
1057
1058 PR bootstrap/67030
1059 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
1060
1061 2015-07-27 Marek Polacek <polacek@redhat.com>
1062
1063 PR c++/66555
1064 PR c/54979
1065 * c-common.c (find_array_ref_with_const_idx_r): New function.
1066 (warn_tautological_cmp): New function.
1067 * c-common.h (warn_tautological_cmp): Declare.
1068 * c.opt (Wtautological-compare): New option.
1069
1070 2015-07-23 Marek Polacek <polacek@redhat.com>
1071
1072 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
1073 (ubsan_instrument_shift): Likewise.
1074
1075 2015-07-23 Marek Polacek <polacek@redhat.com>
1076
1077 PR sanitizer/66908
1078 * c-ubsan.c: Include gimplify.h.
1079 (ubsan_instrument_division): Unshare OP0 and OP1.
1080 (ubsan_instrument_shift): Likewise.
1081
1082 2015-07-20 Marek Polacek <polacek@redhat.com>
1083 Richard Sandiford <richard.sandiford@arm.com>
1084
1085 PR c++/55095
1086 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
1087 Use EXPR_LOC_OR_LOC.
1088 (maybe_warn_shift_overflow): New function.
1089 * c-common.h (maybe_warn_shift_overflow): Declare.
1090 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
1091 * c.opt (Wshift-overflow): New option.
1092
1093 2015-07-16 Martin Liska <mliska@suse.cz>
1094
1095 * c-format.c (static void check_format_info_main): Use
1096 object_allocator instead of pool_allocator.
1097 (check_format_arg): Likewise.
1098 (check_format_info_main): Likewise.
1099
1100 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
1101
1102 * c-opts.c: Remove multiline #include comment.
1103
1104 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
1105
1106 * c-common.c: Fix double word typos.
1107
1108 2015-07-10 Eric Botcazou <ebotcazou@adacore.com>
1109
1110 * c-ada-spec.h (cpp_operation): Revert latest change.
1111 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
1112 constructors and destructors.
1113
1114 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
1115
1116 * c-common.h: Adjust includes for flags.h changes.
1117 * stub-objc.c: Likewise.
1118
1119 2015-07-08 Eric Botcazou <ebotcazou@adacore.com>
1120
1121 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
1122 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
1123
1124 2015-07-08 Jakub Jelinek <jakub@redhat.com>
1125
1126 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
1127 are to be removed, return NULL rather than original clauses list.
1128
1129 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
1130
1131 * array-notation-common.c: Adjust includes.
1132 * c-ada-spec.c: Likewise.
1133 * c-cilkplus.c: Likewise.
1134 * c-common.h: Likewise.
1135 * c-cppbuiltin.c: Likewise.
1136 * c-dump.c: Likewise.
1137 * c-format.c: Likewise.
1138 * c-gimplify.c: Likewise.
1139 * c-indentation.c: Likewise.
1140 * c-lex.c: Likewise.
1141 * c-omp.c: Likewise.
1142 * c-opts.c: Likewise.
1143 * c-pch.c: Likewise.
1144 * c-ppoutput.c: Likewise.
1145 * c-pragma.c: Likewise.
1146 * c-pretty-print.c: Likewise.
1147 * c-semantics.c: Likewise.
1148 * c-ubsan.c: Likewise.
1149 * cilk.c: Likewise.
1150 * stub-objc.c: Likewise.
1151
1152 2015-07-07 Eric Botcazou <ebotcazou@adacore.com>
1153
1154 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
1155 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
1156
1157 2015-07-01 Jason Merrill <jason@redhat.com>
1158
1159 * c-common.h (D_CXX11): Rename from D_CXX0X.
1160 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
1161 * c-common.c: Adjust.
1162
1163 * c-opts.c (c_common_post_options): Default to C++14.
1164
1165 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
1166
1167 2015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
1168
1169 Implement N4197 - Adding u8 character literals
1170 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
1171 CPP_CHAR.
1172 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
1173 CPP_UTF8CHAR_USERDEF tokens.
1174 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
1175 and CPP_UTF8CHAR tokens.
1176 (lex_charconst): Treat CPP_UTF8CHAR token.
1177
1178 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1179
1180 PR fortran/66605
1181 * c-common.c (do_warn_unused_parameter): Move here.
1182 * c-common.h (do_warn_unused_parameter): Declare.
1183
1184 2015-06-29 Marek Polacek <polacek@redhat.com>
1185
1186 PR c/66322
1187 * c-common.c (check_case_bounds): Add bool * parameter. Set
1188 OUTSIDE_RANGE_P.
1189 (c_add_case_label): Add bool * parameter. Pass it down to
1190 check_case_bounds.
1191 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
1192 warning here.
1193 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
1194 declarations.
1195
1196 2015-06-27 Marek Polacek <polacek@redhat.com>
1197
1198 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
1199 or VECTOR_INTEGER_TYPE_P throughout.
1200 * c-gimplify.c: Likewise.
1201
1202 2015-06-26 Marek Polacek <polacek@redhat.com>
1203
1204 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
1205 * c-common.c (c_fully_fold_internal): Likewise.
1206 (c_alignof_expr): Likewise.
1207 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
1208 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
1209 * cilk.c (create_parm_list): Likewise.
1210
1211 2015-06-26 Marek Polacek <polacek@redhat.com>
1212
1213 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
1214
1215 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
1216
1217 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
1218 * c-gimplify.c: Likewise.
1219 * c-pragma.c: Likewise.
1220 * c-ubsan.c: Likewise.
1221 * cilk.c: Likewise.
1222
1223 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
1224
1225 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
1226 ggc_hasher.
1227
1228 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
1229
1230 * cilk.c: Move calls.h after tm.h in the include chain.
1231
1232 2015-06-25 Marek Polacek <polacek@redhat.com>
1233
1234 * array-notation-common.c: Use VAR_P throughout.
1235 * c-ada-spec.c: Likewise.
1236 * c-common.c: Likewise.
1237 * c-format.c: Likewise.
1238 * c-gimplify.c: Likewise.
1239 * c-omp.c: Likewise.
1240 * c-pragma.c: Likewise.
1241 * c-pretty-print.c: Likewise.
1242 * cilk.c: Likewise.
1243
1244 2015-06-25 Marek Polacek <polacek@redhat.com>
1245
1246 * cilk.c (extract_free_variables): Use is_global_var.
1247
1248 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
1249
1250 * c-common.c: Don't include target-def.h.
1251
1252 2015-06-23 Marek Polacek <polacek@redhat.com>
1253
1254 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
1255 when comparing INTEGER_CSTs.
1256
1257 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
1258
1259 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
1260 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
1261 (dump_ada_template): Skip partially specialized types.
1262
1263 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
1264
1265 * c-common.c (scalar_to_vector): Use std::swap instead of manually
1266 swapping.
1267
1268 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
1269
1270 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
1271 * c-ada-spec.c: Likewise.
1272 * c-cilkplus.c: Likewise.
1273 * c-common.c: Likewise.
1274 * c-common.h: Likewise.
1275 * c-cppbuiltin.c: Likewise.
1276 * c-dump.c: Likewise.
1277 * c-format.c: Likewise.
1278 * c-gimplify.c: Likewise.
1279 * c-indentation.c: Likewise.
1280 * c-lex.c: Likewise.
1281 * c-omp.c: Likewise.
1282 * c-opts.c: Likewise.
1283 * c-pch.c: Likewise.
1284 * c-ppoutput.c: Likewise.
1285 * c-pragma.c: Likewise.
1286 * c-pretty-print.c: Likewise.
1287 * c-semantics.c: Likewise.
1288 * c-ubsan.c: Likewise.
1289 * cilk.c: Likewise.
1290 * stub-objc.c: Likewise.
1291
1292 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
1293
1294 PR c++/65168
1295 * c-common.c (c_common_truthvalue_conversion): Warn when
1296 converting an address of a reference to a truth value.
1297
1298 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
1299
1300 * array-notation-common.c : Adjust include files.
1301 * c-ada-spec.c : Likewise.
1302 * c-cilkplus.c : Likewise.
1303 * c-common.c : Likewise.
1304 * c-common.h : Likewise.
1305 * c-cppbuiltin.c : Likewise.
1306 * c-dump.c : Likewise.
1307 * c-format.c : Likewise.
1308 * c-gimplify.c : Likewise.
1309 * c-indentation.c : Likewise.
1310 * c-lex.c : Likewise.
1311 * c-omp.c : Likewise.
1312 * c-opts.c : Likewise.
1313 * c-pch.c : Likewise.
1314 * c-ppoutput.c : Likewise.
1315 * c-pragma.c : Likewise.
1316 * c-pretty-print.c : Likewise.
1317 * c-semantics.c : Likewise.
1318 * c-ubsan.c : Likewise.
1319 * cilk.c : Likewise.
1320 * stub-objc.c : Likewise.
1321
1322 2015-06-08 Marek Polacek <polacek@redhat.com>
1323
1324 PR c/66415
1325 * c-format.c (location_from_offset): Return LOC if LINE is null.
1326
1327 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
1328
1329 * c-common.h (c_parse_final_cleanups): New prototype.
1330 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
1331
1332 2015-06-04 Sriraman Tallam <tmsriram@google.com>
1333
1334 * c-common.c (noplt): New attribute.
1335 (handle_noplt_attribute): New handler.
1336
1337 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
1338
1339 * array-notation-common.c: Adjust includes for restructured coretypes.h.
1340 * c-ada-spec.c: Likewise.
1341 * c-cilkplus.c: Likewise.
1342 * c-common.c: Likewise.
1343 * c-common.h: Likewise.
1344 * c-cppbuiltin.c: Likewise.
1345 * c-dump.c: Likewise.
1346 * c-format.c: Likewise.
1347 * c-gimplify.c: Likewise.
1348 * c-indentation.c: Likewise.
1349 * c-lex.c: Likewise.
1350 * c-omp.c: Likewise.
1351 * c-opts.c: Likewise.
1352 * c-pch.c: Likewise.
1353 * c-ppoutput.c: Likewise.
1354 * c-pragma.c: Likewise.
1355 * c-pretty-print.c: Likewise.
1356 * c-semantics.c: Likewise.
1357 * c-ubsan.c: Likewise.
1358 * cilk.c: Likewise.
1359 * stub-objc.c: Likewise.
1360
1361 2015-06-02 David Malcolm <dmalcolm@redhat.com>
1362
1363 PR c/66220:
1364 * c-indentation.c (should_warn_for_misleading_indentation): Use
1365 expand_location rather than expand_location_to_spelling_point.
1366 Don't warn if the guarding statement is more indented than the
1367 next/body stmts.
1368
1369 2015-06-02 David Malcolm <dmalcolm@redhat.com>
1370
1371 * c-indentation.c (warn_for_misleading_indentation): Bail out
1372 immediately if -Wmisleading-indentation isn't enabled.
1373
1374 2015-06-01 Martin Liska <mliska@suse.cz>
1375
1376 * c-format.c (check_format_arg):Use new type-based pool allocator.
1377 (check_format_info_main) Likewise.
1378
1379 2015-05-31 Eric Botcazou <ebotcazou@adacore.com>
1380
1381 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
1382 (has_nontrivial_methods): Likewise.
1383
1384 2015-05-25 Marek Polacek <polacek@redhat.com>
1385
1386 * c-ubsan.c (ubsan_instrument_shift): Use type0.
1387
1388 2015-05-22 Marek Polacek <polacek@redhat.com>
1389
1390 PR c/47043
1391 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
1392
1393 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1394
1395 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
1396 STACK_GROWS_DOWNWARD.
1397
1398 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1399
1400 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
1401 STACK_GROWS_DOWNWARD rather than if it is defined.
1402
1403 2015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
1404
1405 PR c/52952
1406 * c-format.c (location_column_from_byte_offset): New.
1407 (location_from_offset): New.
1408 (struct format_wanted_type): Add offset_loc field.
1409 (check_format_info): Move handling of location for extra arguments
1410 closer to the point of warning.
1411 (check_format_info_main): Pass the result of location_from_offset
1412 to warning_at.
1413 (format_type_warning): Pass the result of location_from_offset
1414 to warning_at.
1415
1416 2015-05-20 Marek Polacek <polacek@redhat.com>
1417
1418 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
1419
1420 2015-05-20 Marek Polacek <polacek@redhat.com>
1421
1422 * c-ada-spec.c (dump_sloc): Use DECL_P.
1423
1424 2015-05-20 Marek Polacek <polacek@redhat.com>
1425
1426 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
1427 * c-common.c: Likewise.
1428
1429 2015-05-19 David Malcolm <dmalcolm@redhat.com>
1430
1431 * c-common.h (fe_file_change): Strengthen param from
1432 const line_map * to const line_map_ordinary *.
1433 (pp_file_change): Likewise.
1434 * c-lex.c (fe_file_change): Likewise.
1435 (cb_define): Use linemap_check_ordinary when invoking
1436 SOURCE_LINE.
1437 (cb_undef): Likewise.
1438 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
1439 invoking cb_file_change.
1440 (c_finish_options): Likewise.
1441 (push_command_line_include): Likewise.
1442 (cb_file_change): Strengthen param "new_map" from
1443 const line_map * to const line_map_ordinary *.
1444 * c-ppoutput.c (cb_define): Likewise for local "map".
1445 (pp_file_change): Likewise for param "map" and local "from".
1446
1447 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
1448
1449 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
1450
1451 2015-05-18 Tom de Vries <tom@codesourcery.com>
1452
1453 * c-common.c (build_va_arg_1): New function.
1454 (build_va_arg): Add address operator to va_list operand if necessary.
1455
1456 2015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
1457
1458 PR c/48956
1459 * c-common.c (int_safely_convertible_to_real_p): Define.
1460 (unsafe_conversion_p): Check conversions involving complex types.
1461 (conversion_warning): Add new warning message for conversions which
1462 discard imaginary component.
1463 * c-common.h: (enum conversion_safety): Add new enumerator for such
1464 conversions.
1465
1466 2015-05-14 Marek Polacek <polacek@redhat.com>
1467
1468 PR c/66066
1469 PR c/66127
1470 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
1471 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
1472 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
1473 use it. If FOR_INT_CONST, require that all evaluated operands be
1474 INTEGER_CSTs.
1475
1476 2015-05-12 David Malcolm <dmalcolm@redhat.com>
1477
1478 * c-common.h (warn_for_misleading_indentation): New prototype.
1479 * c-indentation.c: New file.
1480 * c.opt (Wmisleading-indentation): New option.
1481
1482 2015-05-12 Tom de Vries <tom@codesourcery.com>
1483
1484 PR tree-optimization/66010
1485 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
1486
1487 2015-05-09 Jason Merrill <jason@redhat.com>
1488
1489 * c-opts.c (c_common_post_options): Also clear
1490 cpp_opts->cpp_warn_cxx11_compat.
1491
1492 * c-common.h (enum cxx_dialect): Add cxx_unset.
1493 * c-common.c (cxx_dialect): Initialize to cxx_unset.
1494 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
1495
1496 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
1497 (std=gnu++0x): Mark as Undocumented.
1498 (std=gnu++1y): Add deprecated message.
1499
1500 2015-05-08 Jason Merrill <jason@redhat.com>
1501
1502 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
1503 * c-opts.c: Adjust.
1504
1505 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
1506
1507 2015-05-08 Marek Polacek <polacek@redhat.com>
1508
1509 PR c/64918
1510 * c.opt (Woverride-init-side-effects): New option.
1511
1512 2015-05-07 Marek Polacek <polacek@redhat.com>
1513
1514 PR c/65179
1515 * c-common.c (c_fully_fold_internal): Warn when left shifting a
1516 negative value.
1517 * c.opt (Wshift-negative-value): New option.
1518 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
1519 when -Wextra and C99/C++11 mode.
1520
1521 2015-05-07 Marek Polacek <polacek@redhat.com>
1522 Martin Uecker <uecker@eecs.berkeley.edu>
1523
1524 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
1525 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
1526
1527 2015-05-05 Jason Merrill <jason@redhat.com>
1528
1529 * c.opt (Wterminate): New.
1530
1531 2015-04-30 Marek Polacek <polacek@redhat.com>
1532
1533 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
1534 require that the non-constant be of a boolean type.
1535
1536 2015-04-29 Josh Triplett <josh@joshtriplett.org>
1537
1538 * c-common.c (handle_section_attribute): Refactor to reduce
1539 nesting and distinguish between error cases.
1540
1541 2015-04-29 Marek Polacek <polacek@redhat.com>
1542
1543 PR c/64610
1544 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
1545 with 0/1.
1546
1547 2015-04-29 Jakub Jelinek <jakub@redhat.com>
1548
1549 * c-common.h (omp_clause_mask): Unconditionally define as a class.
1550 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
1551 HOST_BITS_PER_WIDE_INT.
1552
1553 2015-04-28 Tom de Vries <tom@codesourcery.com>
1554
1555 PR tree-optimization/65887
1556 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
1557
1558 2015-04-28 Eric Botcazou <ebotcazou@adacore.com>
1559 Pierre-Marie de Rodat <derodat@adacore.com>
1560
1561 * c-ada-spec.c (in_function): Delete.
1562 (dump_generic_ada_node): Do not change in_function and remove the
1563 redundant code dealing with it.
1564 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
1565 (print_ada_methods): Output the static member functions in a nested
1566 package after the regular methods as well as associated renamings.
1567
1568 2015-04-24 Marek Polacek <polacek@redhat.com>
1569
1570 PR c/65830
1571 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
1572 and OPT_Wshift_count_overflow.
1573
1574 PR c/63357
1575 * c-common.c (warn_logical_operator): Warn if the operands have the
1576 same expressions.
1577
1578 2015-04-24 Marek Polacek <polacek@redhat.com>
1579
1580 PR c/61534
1581 * c-common.c (warn_logical_operator): Bail if either operand comes
1582 from a macro expansion.
1583
1584 2015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1585
1586 PR target/55143
1587 * c-common.c (c_default_pointer_mode): Add definition.
1588 * c-common.h (c_default_pointer_mode): Add declaration.
1589
1590 2015-03-11 Jakub Jelinek <jakub@redhat.com>
1591
1592 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
1593 on record_builtin_type argument.
1594
1595 2015-03-10 Jakub Jelinek <jakub@redhat.com>
1596
1597 PR c/65120
1598 * c-common.c (warn_logical_not_parentheses): Don't warn for
1599 !x == 0 or !x != 0.
1600
1601 2015-03-07 Marek Polacek <polacek@redhat.com>
1602
1603 PR sanitizer/65280
1604 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
1605 before trying to figure out whether we have a flexible array member.
1606
1607 2015-03-06 Eric Botcazou <ebotcazou@adacore.com>
1608 Jonathan Wakely <jwakely.gcc@gmail.com>
1609
1610 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
1611
1612 2015-03-05 Eric Botcazou <ebotcazou@adacore.com>
1613
1614 PR ada/65319
1615 * c-ada-spec.c (print_destructor): Remove obsolete code.
1616
1617 2015-03-01 Eric Botcazou <ebotcazou@adacore.com>
1618
1619 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
1620 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
1621 DECL_TEMPLATE_RESULT emulations.
1622 (dump_ada_template)): Add guard for TYPE_METHODS.
1623
1624 2015-02-27 Marek Polacek <polacek@redhat.com>
1625
1626 PR c/65040
1627 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
1628
1629 2015-02-27 Kai Tietz <ktietz@redhat.com>
1630
1631 PR c/35330
1632 * c-pragma.c (handle_pragma_weak): Do not try to create
1633 weak/alias of declarations not being function, or variable
1634 declarations.
1635
1636 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
1637
1638 PR libgomp/64625
1639 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
1640 Remove macros.
1641 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
1642
1643 2015-02-16 Marek Polacek <polacek@redhat.com>
1644
1645 PR c/65066
1646 * c-format.c (check_format_types): Handle null param.
1647
1648 2015-02-13 Marek Polacek <polacek@redhat.com>
1649
1650 PR c/65040
1651 * c-format.c (check_format_types): Don't warn about different
1652 signedness if the original value is in the range of WANTED_TYPE.
1653
1654 2015-02-12 Jason Merrill <jason@redhat.com>
1655
1656 PR c++/64956
1657 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
1658 to the current highest version.
1659 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
1660
1661 2015-02-04 Jakub Jelinek <jakub@redhat.com>
1662
1663 PR c/64824
1664 PR c/64868
1665 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
1666 instead of RDIV_EXPR. Use build_binary_op instead of
1667 build2_loc.
1668
1669 2015-01-30 Joseph Myers <joseph@codesourcery.com>
1670
1671 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
1672 to pass input_location as first argument.
1673
1674 2015-01-23 Tom de Vries <tom@codesourcery.com>
1675
1676 PR libgomp/64672
1677 * c.opt (fopenacc): Mark as LTO option.
1678
1679 2015-01-23 Tom de Vries <tom@codesourcery.com>
1680
1681 PR libgomp/64707
1682 * c.opt (fopenmp): Mark as LTO option.
1683
1684 2015-01-21 Jakub Jelinek <jakub@redhat.com>
1685
1686 PR c/63307
1687 * cilk.c (fill_decls_vec): Only put decls into vector v.
1688 (compare_decls): Fix up formatting.
1689
1690 2015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
1691
1692 PR c/63307
1693 * cilk.c: Include vec.h.
1694 (struct cilk_decls): New structure.
1695 (wrapper_parm_cb): Split this function to...
1696 (fill_decls_vec): ...this...
1697 (create_parm_list): ...and this.
1698 (compare_decls): New function.
1699 (for_local_cb): Remove.
1700 (wrapper_local_cb): Ditto.
1701 (build_wrapper_type): For now first traverse and fill vector of
1702 declarations then sort it and then deal with sorted vector.
1703 (cilk_outline): Ditto.
1704 (declare_one_free_variable): Ditto.
1705
1706 2015-01-21 Jason Merrill <jason@redhat.com>
1707
1708 PR c++/64629
1709 * c-format.c (check_format_arg): Call decl_constant_value.
1710
1711 2015-01-19 Martin Liska <mliska@suse.cz>
1712
1713 * c-common.c (handle_noicf_attribute): New function.
1714
1715 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
1716 Bernd Schmidt <bernds@codesourcery.com>
1717 James Norris <jnorris@codesourcery.com>
1718 Cesar Philippidis <cesar@codesourcery.com>
1719 Ilmir Usmanov <i.usmanov@samsung.com>
1720 Jakub Jelinek <jakub@redhat.com>
1721
1722 * c.opt (fopenacc): New option.
1723 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
1724 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
1725 New macros.
1726 * c-common.h (c_finish_oacc_wait): New prototype.
1727 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
1728 (c_finish_oacc_wait): New function.
1729 * c-pragma.c (oacc_pragmas): New variable.
1730 (c_pp_lookup_pragma, init_pragma): Handle it.
1731 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
1732 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
1733 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
1734 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
1735 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
1736 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
1737 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
1738 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
1739 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
1740 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
1741 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
1742 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
1743 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
1744 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
1745 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
1746 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
1747 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
1748 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
1749 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
1750 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
1751 PRAGMA_OACC_CLAUSE_WORKER.
1752
1753 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
1754
1755 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
1756 for the new option fstack-protector_explicit.
1757 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
1758 (handle_stack_protect_attribute): New function.
1759
1760 2015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
1761
1762 * c.opt: New option -Warray-bounds=.
1763
1764 2015-01-09 Michael Collison <michael.collison@linaro.org>
1765
1766 * array-notation-common.c: Include hash-set.h, machmode.h,
1767 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1768 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
1769 * c-ada-spec.c: Ditto.
1770 * c-cilkplus.c: Ditto.
1771 * c-common.c: Include input.h due to flattening of tree.h.
1772 Define macro GCC_C_COMMON_C.
1773 * c-common.h: Flatten tree.h header files into c-common.h.
1774 Remove include of tree-core.h.
1775 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
1776 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1777 fold-const.h, wide-int.h, and inchash.h due to
1778 flattening of tree.h.
1779 * c-dump.c: Ditto.
1780 * c-format.c: Flatten tree.h header files into c-common.h.
1781 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
1782 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1783 fold-const.h, wide-int.h, and inchash.h due to
1784 flattening of tree.h.
1785 * c-dump.c: Include hash-set.h, machmode.h,
1786 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1787 fold-const.h, wide-int.h, and inchash.h due to
1788 flattening of tree.h.
1789 * c-format.c: Include hash-set.h, machmode.h,
1790 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1791 fold-const.h, wide-int.h, inchash.h and real.h due to
1792 flattening of tree.h.
1793 * c-gimplify.c: Include hash-set.h, machmode.h,
1794 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1795 fold-const.h, wide-int.h, and inchash.h due to
1796 flattening of tree.h.
1797 * cilk.c: Ditto.
1798 * c-lex.c: Ditto.
1799 * c-omp.c: Ditto.
1800 * c-opts.c: Ditto.
1801 * c-pch.c: Ditto.
1802 * c-ppoutput.c: Ditto.
1803 * c-pragma.c: Ditto.
1804 * c-pretty-print.c: Ditto.
1805 * c-semantics.c: Ditto.
1806 * c-ubsan.c: Ditto.
1807 * stub-objc.c: Ditto.
1808
1809 2015-01-08 Jason Merrill <jason@redhat.com>
1810
1811 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
1812 do_ubsan_in_current_function.
1813 (ubsan_maybe_instrument_reference_or_call): Likewise.
1814 * c-ubsan.h: Declare it.
1815
1816 2015-01-08 Mike Stump <mikestump@comcast.net>
1817
1818 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
1819
1820 2015-01-07 Marek Polacek <polacek@redhat.com>
1821
1822 PR c/64440
1823 * c-common.c (c_fully_fold_internal): Warn for division and modulo
1824 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
1825
1826 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
1827
1828 PR c++/31397
1829 * c.opt (Wsuggest-override): New option.
1830
1831 2015-01-05 Jakub Jelinek <jakub@redhat.com>
1832
1833 Update copyright years.
1834
1835 2015-01-05 Marek Polacek <polacek@redhat.com>
1836
1837 PR c/64423
1838 * c-common.c (warn_array_subscript_with_type_char): Add location_t
1839 parameter. Use it.
1840 * c-common.h (warn_array_subscript_with_type_char): Update
1841 declaration.
1842
1843 2014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
1844
1845 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
1846 Control macro with flag_sized_deallocation.
1847
1848 2014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
1849
1850 * c.opt (Wdiscarded-array-qualifiers): New option.
1851
1852 2014-12-19 Jakub Jelinek <jakub@redhat.com>
1853
1854 PR preprocessor/63831
1855 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
1856 and __has_cpp_attribute here.
1857 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
1858 c_common_has_attribute.
1859 * c-common.h (c_common_has_attribute): New prototype.
1860 * c-lex.c (init_c_lex): Set cb->has_attribute to
1861 c_common_has_attribute instead of cb_has_attribute.
1862 (get_token_no_padding): New function.
1863 (cb_has_attribute): Renamed to ...
1864 (c_common_has_attribute): ... this. No longer static. Use
1865 get_token_no_padding, require ()s, don't build TREE_LIST
1866 unnecessarily, fix up formatting, adjust diagnostics, call
1867 init_attributes.
1868
1869 2014-12-15 Jason Merrill <jason@redhat.com>
1870
1871 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
1872 (-Wsized-deallocation): New.
1873 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
1874 to on in C++14 and up.
1875
1876 2014-12-11 Jason Merrill <jason@redhat.com>
1877
1878 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
1879
1880 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
1881 we aren't complaining about VLAs.
1882
1883 2014-12-06 Marek Polacek <polacek@redhat.com>
1884
1885 PR tree-optimization/64183
1886 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
1887 shift-expression if it is integer_type_node. Use types_compatible_p.
1888
1889 2014-11-29 Jakub Jelinek <jakub@redhat.com>
1890
1891 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
1892 last argument from create_tmp_var_raw and create_tmp_var calls.
1893 * cilk.c (gimplify_cilk_spawn): Likewise.
1894 * c-omp.c (c_finish_omp_atomic): Likewise.
1895
1896 2014-11-28 Marek Polacek <polacek@redhat.com>
1897
1898 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
1899 instead of unsigned_type_node.
1900
1901 2014-11-28 Marek Polacek <polacek@redhat.com>
1902
1903 PR c/63862
1904 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
1905 to op1_utype.
1906 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
1907 expression to unsigned_type_node.
1908
1909 2014-11-20 Mark Wielaard <mjw@redhat.com>
1910
1911 PR debug/38757
1912 * c-opts.c (set_std_c89): Set lang_hooks.name.
1913 (set_std_c99): Likewise.
1914 (set_std_c11): Likewise.
1915 (set_std_cxx98): Likewise.
1916 (set_std_cxx11): Likewise.
1917 (set_std_cxx14): Likewise.
1918 (set_std_cxx1z): Likewise.
1919
1920 2014-11-21 Jakub Jelinek <jakub@redhat.com>
1921
1922 PR target/63764
1923 * c-common.h (convert_vector_to_pointer_for_subscript): Change
1924 return type to bool.
1925 * c-common.c: Include gimple-expr.h.
1926 (convert_vector_to_pointer_for_subscript): Change return type to
1927 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
1928 and copy it into a TARGET_EXPR and use that instead of *vecp
1929 directly.
1930
1931 2014-11-19 David Malcolm <dmalcolm@redhat.com>
1932
1933 Merger of git branch "gimple-classes-v2-option-3".
1934 * ChangeLog.gimple-classes: New.
1935 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
1936 from being just a vec<gimple> to a vec<gbind *>.
1937
1938 2014-11-18 Jakub Jelinek <jakub@redhat.com>
1939
1940 PR sanitizer/63813
1941 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
1942 argument to ptype, set type to TREE_TYPE (ptype). Don't call
1943 get_pointer_alignment for non-pointers. Use ptype, or if it is
1944 reference type, corresponding pointer type, as type of kind
1945 argument.
1946 (ubsan_maybe_instrument_reference,
1947 ubsan_maybe_instrument_member_call): Adjust callers.
1948
1949 2014-11-15 Marek Polacek <polacek@redhat.com>
1950
1951 PR middle-end/63884
1952 * array-notation-common.c (is_sec_implicit_index_fn): Return false
1953 for NULL fndecl.
1954 (extract_array_notation_exprs): Return for NULL node.
1955
1956 2014-11-12 Joseph Myers <joseph@codesourcery.com>
1957
1958 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
1959 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
1960
1961 2014-11-12 Jakub Jelinek <jakub@redhat.com>
1962
1963 PR c/59708
1964 * c-common.c (check_builtin_function_arguments): Handle
1965 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
1966
1967 2014-11-10 Andi Kleen <ak@linux.intel.com>
1968
1969 PR c/60804
1970 * c-common.h (check_no_cilk): Declare.
1971 * cilk.c (get_error_location): New function.
1972 (check_no_cilk): Dito.
1973
1974 2014-11-10 Andi Kleen <ak@linux.intel.com>
1975
1976 * cilk.c (recognize_spawn): Use expression location
1977 for error message.
1978
1979 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
1980
1981 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
1982
1983 2014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
1984
1985 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
1986 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
1987 (__cpp_range_based_for, __cpp_initializer_lists,
1988 __cpp_delegating_constructors, __cpp_nsdmi,
1989 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
1990 for C++11; (__cpp_attribute_deprecated): Remove in favor of
1991 __has_cpp_attribute.
1992 * c-lex.c (cb_has_attribute): New callback CPP function;
1993 (init_c_lex): Set has_attribute callback.
1994
1995 2014-11-04 Richard Biener <rguenther@suse.de>
1996
1997 * c-common.c (shorten_compare): Do not shorten mixed
1998 DFP and non-DFP compares.
1999
2000 2014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
2001
2002 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
2003 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
2004 Commentary and rearrangement of tests.
2005 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
2006 Commentary and rearrangement of tests.
2007 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
2008 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
2009
2010 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
2011
2012 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
2013 enum from machine_mode.
2014
2015 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
2016
2017 * c-common.c: Adjust include files.
2018 * c-gimplify.c: Ditto.
2019 * cilk.c: Ditto.
2020 * c-pragma.c: Ditto.
2021 * c-ubsan.c: Ditto.
2022
2023 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
2024
2025 * c-gimplify.c: Adjust include files.
2026
2027 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
2028
2029 PR c++/53061
2030 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
2031 c_common_initialize_diagnostics.
2032 * c-common.h: Likewise.
2033
2034 2014-10-24 Marek Polacek <polacek@redhat.com>
2035
2036 PR c/56980
2037 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
2038 print "struct"/"union"/"enum" for typedefed names.
2039
2040 2014-10-23 Marek Polacek <polacek@redhat.com>
2041
2042 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
2043 in unsigned type.
2044
2045 2014-10-22 Jakub Jelinek <jakub@redhat.com>
2046 Yury Gribov <y.gribov@samsung.com>
2047
2048 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2049 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
2050 instead of flag_sanitize_recover as bool flag.
2051
2052 2014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
2053
2054 * cilk.c: Revert previous change.
2055
2056 2014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
2057
2058 PR c/63307
2059 * cilk.c: Include vec.h.
2060 (struct cilk_decls): New structure.
2061 (wrapper_parm_cb): Split this function to...
2062 (fill_decls_vec): ...this...
2063 (create_parm_list): ...and this.
2064 (compare_decls): New function.
2065 (for_local_cb): Remove.
2066 (wrapper_local_cb): Ditto.
2067 (build_wrapper_type): For now first traverse and fill vector of
2068 declarations then sort it and then deal with sorted vector.
2069 (cilk_outline): Ditto.
2070 (declare_one_free_variable): Ditto.
2071
2072 2014-10-17 Marek Polacek <polacek@redhat.com>
2073
2074 * c-opts.c (c_common_post_options): Set warn_implicit_int.
2075 * c.opt (Wimplicit-int): Initialize to -1.
2076
2077 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
2078
2079 * c-pragma.c: Adjust include files.
2080 * c-semantics.c: Likewise.
2081
2082 2014-10-16 DJ Delorie <dj@redhat.com>
2083
2084 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
2085 multiples of bytes.
2086
2087 2014-10-14 Jason Merrill <jason@redhat.com>
2088
2089 PR c++/63455
2090 * c-common.h (CPP_PREPARSED_EXPR): New.
2091 (N_CP_TTYPES): Adjust.
2092
2093 2014-10-15 Marek Polacek <polacek@redhat.com>
2094
2095 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
2096
2097 2014-10-14 DJ Delorie <dj@redhat.com>
2098
2099 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
2100 types, not just __int128.
2101 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
2102 types, not just __int128.
2103 (cpp_atomic_builtins): Round pointer sizes up.
2104 (type_suffix): Use type precision, not specific types.
2105 * c-common.c (c_common_reswords): Remove __int128 special case.
2106 (c_common_type_for_size): Check for all __intN types, not just
2107 __int128.
2108 (c_common_type_for_mode): Likewise.
2109 (c_common_signed_or_unsigned_type): Likewise.
2110 (c_build_bitfield_integer_type): Likewise.
2111 (c_common_nodes_and_builtins): Likewise.
2112 (keyword_begins_type_specifier): Likewise.
2113 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
2114 __intN variants.
2115
2116 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
2117
2118 * c-common.c: Use hash_table instead of hashtab.
2119
2120 2014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
2121
2122 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2123 C++11 section.
2124
2125 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
2126
2127 PR c++/54427
2128 PR c++/57198
2129 PR c++/58845
2130 * c-common.c (warn_logical_operator): Punt for vectors.
2131
2132 2014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
2133
2134 Implement SD-6: SG10 Feature Test Recommendations
2135 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
2136 macros and the __has_header macro.
2137
2138 2014-09-30 Jason Merrill <jason@redhat.com>
2139
2140 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
2141 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
2142 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
2143
2144 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
2145 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
2146
2147 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
2148 * c-common.c (c_common_reswords): Remove __is_convertible_to.
2149
2150 2014-09-24 Marek Polacek <polacek@redhat.com>
2151
2152 PR c/61405
2153 PR c/53874
2154 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
2155
2156 2014-09-23 Andi Kleen <ak@linux.intel.com>
2157
2158 * c-common.c (handle_no_reorder_attribute): New function.
2159 (c_common_attribute_table): Add no_reorder attribute.
2160
2161 2014-09-22 Joseph Myers <joseph@codesourcery.com>
2162
2163 * c-cppbuiltin.c (c_cpp_builtins): Define
2164 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
2165 modes.
2166
2167 2014-09-18 Joseph Myers <joseph@codesourcery.com>
2168
2169 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
2170 for supported floating-point modes.
2171
2172 2014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2173
2174 * c.opt (Wpsabi): Use LangEnabledBy.
2175 * c-opts.c (c_common_handle_option): Do not handle here.
2176
2177 2014-09-12 Joseph Myers <joseph@codesourcery.com>
2178
2179 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
2180 macros for floating-point modes.
2181
2182 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
2183
2184 PR target/58757
2185 * c-cppbuiltin.c (builtin_define_float_constants): Correct
2186 __*_DENORM_MIN__ without denormals.
2187
2188 2014-09-10 Jakub Jelinek <jakub@redhat.com>
2189
2190 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2191 ubsan_instrument_vla, ubsan_instrument_return): Adjust
2192 ubsan_create_data callers.
2193 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
2194 index is constant or BIT_AND_EXPR with constant mask and is
2195 small enough for the bound.
2196 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
2197 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
2198
2199 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2200
2201 * c.opt: Add CppReason to various flags.
2202 (Wdate-time): Re-sort.
2203 * c-common.c: Include c-common.h earlier.
2204 (struct reason_option_codes_t): Delete.
2205 (c_option_controlling_cpp_error): Prefix global type and struct
2206 with cpp_.
2207
2208 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2209
2210 * c.opt (Wnormalized): New.
2211 (Wnormalized=): Use Enum and Reject Negative.
2212 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
2213
2214 2014-09-08 Joseph Myers <joseph@codesourcery.com>
2215
2216 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
2217 digits of floating-point modes if -fbuilding-libgcc.
2218
2219 2014-09-05 Joseph Myers <joseph@codesourcery.com>
2220
2221 * c-cppbuiltin.c (c_cpp_builtins): Also define
2222 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
2223 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
2224 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
2225 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
2226 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
2227 __LIBGCC_STACK_GROWS_DOWNWARD__,
2228 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
2229 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
2230 __LIBGCC_DWARF_FRAME_REGISTERS__,
2231 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
2232 __LIBGCC_STACK_POINTER_REGNUM__ and
2233 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
2234 (builtin_define_with_value): Handle backslash-escaping in string
2235 macro values.
2236
2237 2014-09-05 Richard Biener <rguenther@suse.de>
2238
2239 PR middle-end/63148
2240 * c-format.c (check_format_arg): Properly handle
2241 effectively signed POINTER_PLUS_EXPR offset.
2242
2243 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
2244
2245 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
2246 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
2247 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
2248 and Init.
2249 * c-opts.c (c_common_handle_option): Do not handle here.
2250 (sanitize_cpp_opts): Likewise.
2251 * c-common.c (struct reason_option_codes_t): Handle
2252 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
2253
2254 2014-09-03 Marek Polacek <polacek@redhat.com>
2255
2256 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
2257
2258 2014-09-02 Jakub Jelinek <jakub@redhat.com>
2259 Balaji V. Iyer <balaji.v.iyer@intel.com>
2260 Igor Zamyatin <igor.zamyatin@intel.com>
2261
2262 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
2263 * c-common.c (c_common_reswords): Added _Cilk_for.
2264 * c-common.h (enum rid): Added RID_CILK_FOR.
2265 (cilk_for_number_of_iterations): Add declaration.
2266 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
2267 CILK_FOR.
2268 * c-pragma.c (init_pragma): Register "grainsize" pragma.
2269 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
2270
2271 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2272
2273 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
2274 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
2275 Wundef): Use CPP, Var and Init.
2276 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
2277
2278 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2279
2280 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
2281 * c-opts.c (c_common_handle_option): Do not handle here.
2282
2283 2014-08-25 Jason Merrill <jason@redhat.com>
2284
2285 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
2286 -std=c++14 and -std=gnu++14, rather than the reverse.
2287 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
2288 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
2289 * c-common.h (cxx_dialect): Remove cxx1y.
2290
2291 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
2292
2293 * c-common.h (enum cxx_dialect): Add cxx14.
2294 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
2295 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
2296 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
2297
2298 2014-08-22 Jason Merrill <jason@redhat.com>
2299
2300 * c.opt (std=gnu++17): Fix alias.
2301
2302 2014-08-22 Marek Polacek <polacek@redhat.com>
2303
2304 PR c++/62199
2305 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
2306 check for vector types. Drop LHS argument.
2307 * c-common.h (warn_logical_not_parentheses): Adjust.
2308
2309 2014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2310
2311 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
2312 (Wmultichar): Likewise.
2313 (Wdate-time): Use C-family languages instead of Common. Use CPP
2314 and Var.
2315 * c-opts.c (c_common_handle_option): Do not handle the above
2316 options here.
2317 (sanitize_cpp_opts): Likewise.
2318
2319 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
2320
2321 PR fortran/44054
2322 * c-opts.c: Include tree-diagnostics.h.
2323 (c_diagnostic_finalizer): New.
2324 (c_common_initialize_diagnostics): Use it.
2325
2326 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2327
2328 PR preprocessor/51303
2329 * c-common.c (struct reason_option_codes_t option_codes):
2330 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
2331
2332 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2333
2334 PR c/60975
2335 PR c/53063
2336 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
2337 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
2338 (c_common_post_options): Call init_global_opts_from_cpp.
2339 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
2340
2341 2014-08-19 Marek Polacek <polacek@redhat.com>
2342
2343 PR c++/62153
2344 * c-common.c (maybe_warn_bool_compare): New function.
2345 * c-common.h (maybe_warn_bool_compare): Declare.
2346 * c.opt (Wbool-compare): New option.
2347
2348 2014-08-19 Marek Polacek <polacek@redhat.com>
2349
2350 * c.opt (Wc99-c11-compat): New option.
2351
2352 2014-08-19 Marek Polacek <polacek@redhat.com>
2353
2354 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
2355 to warn_c90_c99_compat.
2356 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
2357 to -1.
2358
2359 2014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
2360 Steven Bosscher <steven@gcc.gnu.org>
2361
2362 PR c/52952
2363 * c-format.c: Add extra_arg_loc and format_string_loc to struct
2364 format_check_results.
2365 (check_function_format): Use true and add comment for boolean
2366 argument.
2367 (finish_dollar_format_checking): Use explicit location when warning.
2368 (check_format_info): Likewise.
2369 (check_format_arg): Set extra_arg_loc and format_string_loc.
2370 (check_format_info_main): Use explicit location when warning.
2371 (check_format_types): Pass explicit location.
2372 (format_type_warning): Likewise.
2373
2374 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2375
2376 PR fortran/44054
2377 * c-format.c: Handle Fortran flags.
2378
2379 2014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
2380
2381 PR other/61962
2382 * array-notation-common.c (find_rank): Added handling for other
2383 types of references.
2384
2385 2014-08-10 Marek Polacek <polacek@redhat.com>
2386
2387 PR c/51849
2388 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
2389 * c.opt (Wc90-c99-compat): Add option.
2390
2391 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
2392
2393 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
2394
2395 2014-08-03 Marek Polacek <polacek@redhat.com>
2396
2397 * c-common.c (check_case_value): Add location_t parameter. Use it.
2398 (c_add_case_label): Pass loc to check_case_value.
2399
2400 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2401
2402 * cilk.c: Use hash_map instead of pointer_map.
2403
2404 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2405
2406 * c-gimplify.c: Use hash_set instead of pointer_set.
2407
2408 2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
2409
2410 PR middle-end/61455
2411 * array-notation-common.c (extract_array_notation_exprs): Handling
2412 of DECL_EXPR added.
2413
2414 2014-08-01 Jakub Jelinek <jakub@redhat.com>
2415
2416 * c-common.h (min_align_of_type): Removed prototype.
2417 * c-common.c (min_align_of_type): Removed.
2418 * c-ubsan.h (ubsan_maybe_instrument_reference,
2419 ubsan_maybe_instrument_member_call): New prototypes.
2420 * c-ubsan.c: Include stor-layout.h and builtins.h.
2421 (ubsan_maybe_instrument_reference_or_call,
2422 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
2423 functions.
2424
2425 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
2426
2427 PR c++/60517
2428 * c.opt (-Wreturn-local-addr): Move to common.opt.
2429
2430 2014-07-30 Jason Merrill <jason@redhat.com>
2431
2432 PR c++/61659
2433 PR c++/61687
2434 Revert:
2435 * c.opt (-fuse-all-virtuals): New.
2436
2437 2014-07-30 Tom Tromey <tromey@redhat.com>
2438
2439 PR c/59855
2440 * c.opt (Wdesignated-init): New option.
2441 * c-common.c (c_common_attribute_table): Add "designated_init".
2442 (handle_designated_init): New function.
2443
2444 2014-07-24 Marek Polacek <polacek@redhat.com>
2445
2446 PR c/57653
2447 * c-opts.c (c_finish_options): If -imacros is in effect, return.
2448
2449 2014-07-16 Dodji Seketeli <dodji@redhat.com>
2450
2451 PR preprocessor/60723 - missing system-ness marks for macro tokens
2452 * c-ppoutput.c (struct print::prev_was_system_token): New data
2453 member.
2454 (init_pp_output): Initialize it.
2455 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
2456 (do_line_change): Return a flag saying if a line marker was
2457 emitted or not.
2458 (scan_translation_unit): Detect if the system-ness of the token we
2459 are about to emit is different from the one of the previously
2460 emitted token. If so, emit a line marker. Avoid emitting useless
2461 adjacent line markers. Avoid emitting line markers for tokens
2462 originating from the expansion of built-in macros.
2463 (scan_translation_unit_directives_only): Adjust.
2464
2465 2014-07-15 Marek Polacek <polacek@redhat.com>
2466
2467 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
2468 TYPE_MAX_VALUE is NULL.
2469
2470 2014-07-14 Jakub Jelinek <jakub@redhat.com>
2471
2472 PR middle-end/61294
2473 * c.opt (Wmemset-transposed-args): New warning.
2474
2475 2014-07-10 Jason Merrill <jason@redhat.com>
2476
2477 PR c++/61659
2478 PR c++/61687
2479 * c.opt (-fuse-all-virtuals): New.
2480
2481 2014-07-09 Richard Biener <rguenther@suse.de>
2482
2483 PR c-family/61741
2484 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2485 using unsigned arithmetic if overflow does not wrap instead of
2486 if overflow is undefined.
2487
2488 2014-07-06 Marek Polacek <polacek@redhat.com>
2489
2490 PR c/6940
2491 * c.opt (Wsizeof-array-argument): New option.
2492
2493 2014-07-03 Jakub Jelinek <jakub@redhat.com>
2494
2495 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
2496 comments->count <= 1, as comments->entries might be NULL.
2497
2498 2014-07-01 Marek Polacek <polacek@redhat.com>
2499
2500 * c.opt (Wint-conversion): New option.
2501
2502 2014-07-01 Marek Polacek <polacek@redhat.com>
2503
2504 PR c/58286
2505 * c.opt (Wincompatible-pointer-types): New option.
2506
2507 2014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
2508
2509 PR c++/51400
2510 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
2511 Do not discard TYPE_QUALS of type.
2512
2513 2014-06-26 Jason Merrill <jason@redhat.com>
2514
2515 * c-common.h (enum cxx_dialect): Add cxx1z.
2516 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
2517 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
2518
2519 2014-06-26 Teresa Johnson <tejohnson@google.com>
2520
2521 * c-common.h (get_dump_info): Declare.
2522 * c-gimplify.c (c_genericize): Use saved dump files.
2523 * c-opts.c (c_common_parse_file): Begin and end dumps
2524 once around parsing invocation.
2525 (get_dump_info): New function.
2526
2527 2014-06-23 Marek Polacek <polacek@redhat.com>
2528 Andrew MacLeod <amacleod@redhat.com>
2529
2530 PR c/61553
2531 * c-common.c (get_atomic_generic_size): Don't segfault if the
2532 type doesn't have a size.
2533
2534 2014-06-20 Marek Polacek <polacek@redhat.com>
2535
2536 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
2537 (ubsan_walk_array_refs_r): New function.
2538 (c_genericize): Instrument array bounds.
2539 * c-ubsan.c: Include "internal-fn.h".
2540 (ubsan_instrument_division): Mark instrumented arrays as having
2541 side effects. Adjust ubsan_type_descriptor call.
2542 (ubsan_instrument_shift): Likewise.
2543 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
2544 (ubsan_instrument_bounds): New function.
2545 (ubsan_array_ref_instrumented_p): New function.
2546 (ubsan_maybe_instrument_array_ref): New function.
2547 * c-ubsan.h (ubsan_instrument_bounds): Declare.
2548 (ubsan_array_ref_instrumented_p): Declare.
2549 (ubsan_maybe_instrument_array_ref): Declare.
2550
2551 2014-06-20 Hale Wang <hale.wang@arm.com>
2552
2553 PR lto/61123
2554 * c.opt (fshort-enums): Add to LTO.
2555 * c.opt (fshort-wchar): Likewise.
2556
2557 2014-06-16 Marek Polacek <polacek@redhat.com>
2558
2559 PR c/60439
2560 * c.opt (Wswitch-bool): Add Var.
2561
2562 2014-06-12 Jakub Jelinek <jakub@redhat.com>
2563
2564 PR middle-end/61486
2565 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
2566 #pragma omp target teams or
2567 #pragma omp {,target }teams distribute simd.
2568
2569 2014-06-12 Jason Merrill <jason@redhat.com>
2570
2571 * c.opt (Wabi=, fabi-compat-version): New.
2572 * c-opts.c (c_common_handle_option): Handle -Wabi=.
2573 (c_common_post_options): Handle flag_abi_compat_version default.
2574 Disallow -fabi-compat-version=1.
2575 * c-common.h (abi_version_crosses): New.
2576
2577 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
2578
2579 * c-common.c (handle_section_attribute): Update handling for
2580 section names that are no longer trees.
2581
2582 2014-06-10 Jakub Jelinek <jakub@redhat.com>
2583
2584 PR fortran/60928
2585 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
2586 (omp_pragmas): ... back here.
2587
2588 2014-06-05 Marek Polacek <polacek@redhat.com>
2589
2590 PR c/49706
2591 * c-common.c (warn_logical_not_parentheses): New function.
2592 * c-common.h (warn_logical_not_parentheses): Declare.
2593 * c.opt (Wlogical-not-parentheses): New option.
2594
2595 2014-06-04 Marek Polacek <polacek@redhat.com>
2596
2597 PR c/30020
2598 * c-common.c (check_case_bounds): Add location parameter.
2599 Use it.
2600 (c_add_case_label): Pass loc to check_case_bounds.
2601
2602 2014-06-03 Marek Polacek <polacek@redhat.com>
2603
2604 PR c/60439
2605 * c.opt (Wswitch-bool): New option.
2606
2607 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
2608
2609 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
2610 Remove prototypes.
2611 (record_types_used_by_current_var_decl): Move prototype to where
2612 it belongs.
2613
2614 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
2615 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
2616 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
2617
2618 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
2619
2620 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
2621 * c-common.c (c_common_nodes_and_builtins): Don't initialize
2622 void_zero_node.
2623 * c-pretty-print.c (pp_c_void_constant): New function.
2624 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
2625 (c_pretty_printer::expression): Handle VOID_CST.
2626 * cilk.c (extract_free_variables): Likewise.
2627 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
2628 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
2629
2630 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
2631
2632 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
2633 * c-pragma.c (push_alignment): Adjust.
2634 (handle_pragma_push_options): Likewise.
2635
2636 2014-05-09 Marek Polacek <polacek@redhat.com>
2637
2638 PR c/50459
2639 * c-common.c (check_user_alignment): Return -1 if alignment is error
2640 node.
2641 (handle_aligned_attribute): Don't call default_conversion on
2642 FUNCTION_DECLs.
2643 (handle_vector_size_attribute): Likewise.
2644 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
2645 (handle_sentinel_attribute): Call default_conversion and allow even
2646 integral types as an argument.
2647
2648 2014-05-08 Marek Polacek <polacek@redhat.com>
2649
2650 PR c/61053
2651 * c-common.c (min_align_of_type): New function factored out from...
2652 (c_sizeof_or_alignof_type): ...here.
2653 * c-common.h (min_align_of_type): Declare.
2654
2655 2014-05-08 Marek Polacek <polacek@redhat.com>
2656
2657 PR c/61077
2658 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
2659 parameter type of main.
2660
2661 2014-05-07 DJ Delorie <dj@redhat.com>
2662
2663 * c-cppbuiltin.c (print_bits_of_hex): New.
2664 (builtin_define_type_minmax): Print values using hex so as not to
2665 require a pre-computed list of string values.
2666
2667 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
2668 Mike Stump <mikestump@comcast.net>
2669 Richard Sandiford <rdsandiford@googlemail.com>
2670
2671 * c-ada-spec.c: Include wide-int.h.
2672 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
2673 (dump_generic_ada_node): Use wide-int interfaces.
2674 * c-common.c: Include wide-int-print.h.
2675 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
2676 (pointer_int_sum): Use wide-int interfaces.
2677 (c_common_nodes_and_builtins): Use make_int_cst.
2678 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
2679 (handle_alloc_size_attribute): Use wide-int interfaces.
2680 (get_nonnull_operand): Likewise.
2681 * c-format.c (get_constant): Use tree_fits_uhwi_p.
2682 * c-lex.c: Include wide-int.h.
2683 (narrowest_unsigned_type): Take a widest_int rather than two
2684 HOST_WIDE_INTs.
2685 (narrowest_signed_type): Likewise.
2686 (interpret_integer): Update accordingly. Use wide-int interfaces.
2687 (lex_charconst): Use wide-int interfaces.
2688 * c-pretty-print.c: Include wide-int.h.
2689 (pp_c_integer_constant): Use wide-int interfaces.
2690 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
2691 INT_CST_LT_UNSIGNED.
2692
2693 2014-05-06 Richard Biener <rguenther@suse.de>
2694
2695 * c-opts.c (c_common_post_options): For -freestanding,
2696 -fno-hosted and -fno-builtin disable pattern recognition
2697 if not enabled explicitely.
2698
2699 2014-05-02 Marek Polacek <polacek@redhat.com>
2700
2701 * c.opt (Wsizeof-pointer-memaccess): Describe option.
2702
2703 2014-05-01 Marek Polacek <polacek@redhat.com>
2704
2705 PR c/43245
2706 * c.opt (Wdiscarded-qualifiers): Add.
2707
2708 2014-04-30 Marek Polacek <polacek@redhat.com>
2709
2710 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
2711 INT_MIN / -1 sanitization only for integer types.
2712
2713 2014-04-25 Marek Polacek <polacek@redhat.com>
2714
2715 PR c/18079
2716 * c-common.c (handle_noinline_attribute): Warn if the attribute
2717 conflicts with always_inline attribute.
2718 (handle_always_inline_attribute): Warn if the attribute conflicts
2719 with noinline attribute.
2720
2721 2014-04-25 Marek Polacek <polacek@redhat.com>
2722
2723 PR c/60156
2724 * c-common.c (check_main_parameter_types): Warn about variadic main.
2725
2726 2014-04-24 Mike Stump <mikestump@comcast.net>
2727
2728 * c.opt (Wshadow-ivar): Default to on.
2729
2730 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
2731
2732 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
2733
2734 2014-04-23 Marek Polacek <polacek@redhat.com>
2735
2736 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
2737
2738 2014-04-22 Jakub Jelinek <jakub@redhat.com>
2739
2740 PR sanitizer/60275
2741 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
2742 if flag_sanitize_undefined_trap_on_error.
2743 (ubsan_instrument_division, ubsan_instrument_shift,
2744 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
2745 if !flag_sanitize_recover.
2746
2747 2014-04-22 Marc Glisse <marc.glisse@inria.fr>
2748
2749 PR libstdc++/43622
2750 * c-common.c (registered_builtin_types): Make non-static.
2751 * c-common.h (registered_builtin_types): Declare.
2752
2753 2014-04-14 Richard Biener <rguenther@suse.de>
2754 Marc Glisse <marc.glisse@inria.fr>
2755
2756 PR c/60819
2757 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
2758 apply may-alias the scalar pointer type when applicable.
2759
2760 2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
2761
2762 PR middle-end/60467
2763 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
2764 as possible argument for Cilk_spawn.
2765
2766 2014-04-11 Tobias Burnus <burnus@net-b.de>
2767
2768 PR c/60194
2769 * c.opt (Wformat-signedness): Add
2770 * c-format.c(check_format_types): Use it.
2771
2772 2014-04-11 Jason Merrill <jason@redhat.com>
2773
2774 PR c++/57926
2775 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
2776 default_conversion for an array argument.
2777
2778 2014-04-08 Marek Polacek <polacek@redhat.com>
2779
2780 PR sanitizer/60745
2781 * c-ubsan.c: Include asan.h.
2782 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
2783
2784 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
2785
2786 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
2787
2788 2014-04-02 Marek Polacek <polacek@redhat.com>
2789
2790 * c-common.h (c_expand_expr): Remove declaration.
2791
2792 2014-03-28 Jakub Jelinek <jakub@redhat.com>
2793
2794 PR c++/60689
2795 * c-common.c (add_atomic_size_parameter): When creating new
2796 params vector, push the size argument first.
2797
2798 2014-03-26 Jakub Jelinek <jakub@redhat.com>
2799
2800 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2801 ubsan_instrument_vla, ubsan_instrument_return): Adjust
2802 ubsan_create_data callers.
2803
2804 2014-03-22 Jakub Jelinek <jakub@redhat.com>
2805
2806 PR debug/60603
2807 * c-opts.c (c_finish_options): Restore cb_file_change call to
2808 <built-in>.
2809
2810 2014-03-13 Jakub Jelinek <jakub@redhat.com>
2811
2812 PR middle-end/36282
2813 * c-pragma.c (apply_pragma_weak): Only look at
2814 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
2815 DECL_ASSEMBLER_NAME_SET_P (decl).
2816 (maybe_apply_pending_pragma_weaks): Exit early if
2817 vec_safe_is_empty (pending_weaks) rather than only when
2818 !pending_weaks.
2819 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
2820 set assembler name back to NULL afterwards.
2821
2822 2014-03-11 Jason Merrill <jason@redhat.com>
2823
2824 * c.opt: Add -std=gnu++14.
2825
2826 2014-03-11 Ian Bolton <ian.bolton@arm.com>
2827
2828 * c-opts.c (c_common_post_options): Don't override
2829 -ffp-contract=fast if unsafe-math-optimizations is on.
2830
2831 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
2832
2833 * c.opt: Enable LTO FE for fshort-double.
2834
2835 2014-03-07 Jason Merrill <jason@redhat.com>
2836
2837 * c.opt: Add -std=c++14.
2838
2839 2014-03-06 Marek Polacek <polacek@redhat.com>
2840
2841 PR c/60197
2842 * cilk.c (contains_cilk_spawn_stmt): New function.
2843 (contains_cilk_spawn_stmt_walker): Likewise.
2844 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
2845 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
2846
2847 2014-03-03 Jakub Jelinek <jakub@redhat.com>
2848
2849 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
2850 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
2851 even when flag_preprocess_only.
2852
2853 2014-02-26 Jason Merrill <jason@redhat.com>
2854
2855 PR c++/59231
2856 PR c++/11586
2857 * c-common.c (shorten_compare): Don't check
2858 c_inhibit_evaluation_warnings.
2859
2860 2014-02-19 Jakub Jelinek <jakub@redhat.com>
2861
2862 PR c/37743
2863 * c-common.c (c_common_nodes_and_builtins): When initializing
2864 c_uint{16,32,64}_type_node, also set corresponding
2865 uint{16,32,64}_type_node to the same value.
2866
2867 PR c++/60267
2868 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
2869 for PRAGMA_IVDEP if flag_preprocess_only.
2870
2871 2014-02-12 Jakub Jelinek <jakub@redhat.com>
2872
2873 PR c/60101
2874 * c-common.c (merge_tlist): If copy is true, call new_tlist,
2875 if false, add ADD itself, rather than vice versa.
2876 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
2877 copy. For SAVE_EXPR, only call merge_tlist once.
2878
2879 2014-02-08 Jakub Jelinek <jakub@redhat.com>
2880
2881 PR middle-end/60092
2882 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
2883 and tree_to_uhwi.
2884 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
2885 functions.
2886 (c_common_attribute_table): Add alloc_align and assume_aligned
2887 attributes.
2888
2889 2014-02-06 Marek Polacek <polacek@redhat.com>
2890
2891 PR c/60087
2892 * c-common.c (warn_for_sign_compare): Call warning_at with location
2893 instead of warning.
2894
2895 2014-02-05 Marek Polacek <polacek@redhat.com>
2896
2897 PR c/53123
2898 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
2899 statement.
2900
2901 2014-02-04 Marek Polacek <polacek@redhat.com>
2902
2903 PR c/60036
2904 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
2905 SAVE_EXPR.
2906
2907 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
2908
2909 PR c++/53017
2910 PR c++/59211
2911 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
2912 handle_vector_size_attribute, handle_nonnull_attribute): Call
2913 default_conversion on the attribute argument.
2914 (handle_nonnull_attribute): Increment the argument number.
2915
2916 2014-01-31 Marek Polacek <polacek@redhat.com>
2917
2918 PR c/59963
2919 * c-common.c (add_atomic_size_parameter): Pass vNULL to
2920 build_function_call_vec.
2921 (resolve_overloaded_builtin): Likewise.
2922 * c-common.h (build_function_call_vec): Adjust declaration.
2923
2924 2014-01-30 Marek Polacek <polacek@redhat.com>
2925
2926 PR c/59940
2927 * c-common.h (unsafe_conversion_p): Adjust declaration.
2928 (warnings_for_convert_and_check): Likewise.
2929 (convert_and_check): Likewise.
2930 * c-common.c (unsafe_conversion_p): Add location parameter. Call
2931 expansion_point_location_if_in_system_header on it.
2932 (warnings_for_convert_and_check): Add location parameter. Call
2933 expansion_point_location_if_in_system_header on it. Use it.
2934 (convert_and_check): Add location parameter. Use it.
2935 (conversion_warning): Likewise.
2936 (c_add_case_label): Adjust convert_and_check calls.
2937 (scalar_to_vector): Adjust unsafe_conversion_p calls.
2938
2939 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
2940
2941 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
2942 flag_cilkplus.
2943 * c-pragma.c (init_pragma): Likewise.
2944 * c.opt: Likewise.
2945
2946 2014-01-23 Marek Polacek <polacek@redhat.com>
2947
2948 PR c/59846
2949 * c-common.c (shorten_compare): Add location_t parameter.
2950 * c-common.h (shorten_binary_op): Adjust declaration.
2951
2952 2014-01-23 Marek Polacek <polacek@redhat.com>
2953
2954 PR c/58346
2955 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
2956 * c-common.h: Declare it.
2957
2958 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
2959
2960 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
2961 * c-ada-spec.c (dump_ads): Likewise.
2962 (cpp_check): Likewise.
2963 (dump_ada_specs): Likewise.
2964
2965 2014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
2966
2967 PR c++/49718
2968 * c-common.c (handle_no_instrument_function_attribute): Allow
2969 no_instrument_function attribute in class member
2970 definition/declaration.
2971
2972 2014-01-15 Jakub Jelinek <jakub@redhat.com>
2973
2974 PR c/58943
2975 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
2976 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
2977 being COMPOUND_EXPR.
2978 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
2979 operand a SAVE_EXPR and second MODIFY_EXPR.
2980
2981 2014-01-09 Jakub Jelinek <jakub@redhat.com>
2982
2983 PR target/58115
2984 * c-pch.c (c_common_write_pch): Call
2985 prepare_target_option_nodes_for_pch.
2986
2987 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2988
2989 Update copyright years
2990
2991 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2992
2993 * array-notation-common.c, c-cilkplus.c: Use the standard form for
2994 the copyright notice.
2995
2996 2013-12-28 Eric Botcazou <ebotcazou@adacore.com>
2997
2998 * c-ada-spec.c (print_constructor): New function.
2999 (print_destructor): Retrieve the origin of the destructor.
3000 (print_ada_declaration): Revamp handling of constructors/destructors.
3001
3002 2013-12-23 Stuart Hastings <stuart@apple.com>
3003 Bill Maddox <maddox@google.com>
3004 Jason Merrill <jason@redhat.com>
3005
3006 * c.opt: Add -fdeclone-ctor-dtor.
3007 * c-opts.c (c_common_post_options): Default to on iff -Os.
3008
3009 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
3010
3011 * c-common.c (c_common_attribute_table): Added "cilk simd function"
3012 attribute.
3013 * c-pragma.h (enum pragma_cilk_clause): Remove.
3014 (enum pragma_omp_clause): Added the following fields:
3015 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
3016 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
3017 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
3018 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
3019 PRAGMA_CILK_CLAUSE_UNIFORM.
3020
3021
3022 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
3023
3024 * cilk.c (cilk_outline): Made this function non-static.
3025 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
3026 (create_cilk_wrapper): Added a new parameter: a function pointer.
3027 (c_install_body_w_frame_cleanup): Remove
3028 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
3029 * c-common.h (cilk_outline): New prototype.
3030 (gimplify_cilk_spawn): Removed two parameters.
3031 (cilk_install_body_with_frame_cleanup): New prototype.
3032 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
3033 CILK_SPAWN_STMT case.
3034
3035 2013-12-11 Bernd Schmidt <bernds@codesourcery.com>
3036
3037 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
3038
3039 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
3040 (int_array_type_node): Remove.
3041 * c-common.c (c_common_nodes_and_builtins): Don't build it.
3042
3043 2013-12-05 Marek Polacek <polacek@redhat.com>
3044
3045 PR c/52023
3046 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
3047 [ADJUST_FIELD_ALIGN].
3048
3049 2013-12-04 Joseph Myers <joseph@codesourcery.com>
3050
3051 PR c/52023
3052 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
3053 and check field alignment if set.
3054 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
3055 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
3056
3057 2013-12-04 Jakub Jelinek <jakub@redhat.com>
3058 Marek Polacek <polacek@redhat.com>
3059
3060 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
3061 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
3062
3063 2013-11-29 H.J. Lu <hongjiu.lu@intel.com>
3064
3065 PR c/59309
3066 * cilk.c (gimplify_cilk_spawn): Properly handle function without
3067 arguments.
3068
3069 2013-11-29 Jakub Jelinek <jakub@redhat.com>
3070
3071 PR c/59280
3072 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
3073 goto invalid. If it is error_mark_node, don't issue further
3074 diagnostics.
3075
3076 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
3077
3078 * c.opt (Wopenmp-simd): New.
3079
3080 2013-11-22 Jakub Jelinek <jakub@redhat.com>
3081
3082 * c-ubsan.h (ubsan_instrument_return): New prototype.
3083 * c-ubsan.c (ubsan_instrument_return): New function.
3084
3085 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
3086
3087 * c-common.c: Add required include files from gimple.h.
3088 * c-gimplify.c: Likewise
3089 * cilk.c: Likewise
3090
3091 2013-11-22 David Malcolm <dmalcolm@redhat.com>
3092
3093 * c-common.c (unsafe_conversion_p): Remove use of
3094 EXPR_LOC_OR_HERE macro.
3095 (conversion_warning): Likewise.
3096 (warnings_for_convert_and_check): Likewise.
3097 (warn_for_collisions_1): Likewise.
3098 (shorten_compare): Likewise, and remove use of in_system_header
3099 macro, using the location from the former.
3100 * c-lex.c (dump_one_header): Remove use of input_filename macro.
3101 (cb_def_pragma): Remove use of in_system_header macro.
3102 (lex_string): Likewise.
3103 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
3104
3105 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
3106 Mike Stump <mikestump@comcast.net>
3107 Richard Sandiford <rdsandiford@googlemail.com>
3108
3109 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
3110 instead of TREE_INT_CST_LOW, in cases where there is a protecting
3111 tree_fits_shwi_p or tree_fits_uhwi_p.
3112 (dump_generic_ada_node): Likewise.
3113 * c-format.c (check_format_arg): Likewise.
3114 * c-pretty-print.c (pp_c_integer_constant): Likewise.
3115
3116 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
3117
3118 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
3119
3120 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
3121
3122 PR c/53001
3123 * c-common.c (unsafe_conversion_p): Make this function
3124 return an enumeration with more detail.
3125 (conversion_warning): Use the new return type of
3126 unsafe_conversion_p to separately warn either about conversions
3127 that lower floating point number precision or about the other
3128 kinds of conversions.
3129 * c-common.h (enum conversion_safety): New enumeration.
3130 (unsafe_conversion_p): switching return type to
3131 conversion_safety enumeration.
3132 * c.opt: Adding new warning -Wfloat-conversion and
3133 enabling it with -Wconversion.
3134
3135 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
3136
3137 * c-opts.c: Include plugin.h.
3138 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
3139
3140 2013-11-19 Marek Polacek <polacek@redhat.com>
3141
3142 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
3143 call.
3144 (ubsan_instrument_shift): Likewise.
3145 (ubsan_instrument_vla): Likewise.
3146
3147 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3148
3149 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
3150 cast to unsigned type.
3151
3152 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3153
3154 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
3155 tree_low_cst.
3156 (complete_array_type): Update comment to refer to tree_to_[su]hwi
3157 rather than tree_low_cst.
3158
3159 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3160
3161 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
3162 tree_to_uhwi throughout.
3163
3164 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3165
3166 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
3167 tree_low_cst (..., 0) with tree_to_shwi throughout.
3168
3169 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3170
3171 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
3172 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
3173
3174 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3175
3176 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
3177 host_integerp (..., 0) with tree_fits_shwi_p throughout.
3178
3179 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
3180
3181 * c-cilkplus.c: New file.
3182 * c-common.c (readonly_error): Add location argument.
3183 * c-common.h (readonly_error): Same.
3184 (c_finish_cilk_clauses): Protoize.
3185 (c_check_cilk_loop): Same.
3186 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
3187 Do not fail on error_mark_node.
3188 Abstract increment canonicalization to here...
3189 (c_omp_for_incr_canonicalize_ptr): New.
3190 c-pragma.c (init_pragma): Register "simd" pragma.
3191 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
3192 (enum pragma_cilk_clause): New.
3193
3194 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
3195
3196 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
3197 wchar_type and host_integerp checks.
3198
3199 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
3200
3201 * c-common.c: Likewise.
3202 * c-gimplify.c: Likewise.
3203 * cilk.c: Likewise.
3204
3205 2013-11-14 Diego Novillo <dnovillo@google.com>
3206
3207 * c-common.c: Include fold-const.h.
3208 Include stor-layout.h.
3209 Include calls.h.
3210 Include stringpool.h.
3211 Include attribs.h.
3212 Include varasm.h.
3213 Include trans-mem.h.
3214 * c-cppbuiltin.c: Include stor-layout.h.
3215 Include stringpool.h.
3216 * c-format.c: Include stringpool.h.
3217 * c-lex.c: Include stringpool.h.
3218 Include stor-layout.h.
3219 * c-pragma.c: Include stringpool.h.
3220 Include attribs.h.
3221 Include varasm.h.
3222 Include gcc-symtab.h.
3223 * c-pretty-print.c: Include stor-layout.h.
3224 Include attribs.h.
3225 * cilk.c: Include stringpool.h.
3226 Include calls.h.
3227
3228 2013-11-13 Joseph Myers <joseph@codesourcery.com>
3229
3230 * c-common.h (enum rid): Add RID_AUTO_TYPE.
3231 * c-common.c (c_common_reswords): Add __auto_type.
3232 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
3233
3234 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
3235
3236 * c-common.c: Include gimplify.h.
3237 * c-gimplify.c: Likewise.
3238 * cilk.c: Likewise.
3239 * c-omp.c: Include gimple-expr.h instead of gimple.h.
3240 * c-ubsan.c: Don't include gimple.h.
3241
3242 2013-11-12 Joseph Myers <joseph@codesourcery.com>
3243
3244 * c-common.c (c_common_reswords): Add _Thread_local.
3245
3246 2013-11-09 Joseph Myers <joseph@codesourcery.com>
3247
3248 * c-common.c (atomic_size_supported_p): New function.
3249 (resolve_overloaded_atomic_exchange)
3250 (resolve_overloaded_atomic_compare_exchange)
3251 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
3252 Use it instead of comparing size with a local list of sizes.
3253
3254 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
3255 Joseph Myers <joseph@codesourcery.com>
3256
3257 * c-common.h (enum rid): Add RID_ATOMIC.
3258 * c-common.c (c_common_reswords): Add _Atomic.
3259 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
3260 (keyword_is_type_qualifier): Accept RID_ATOMIC.
3261 * c-format.c (check_format_types): Check for extra _Atomic
3262 qualifiers in format argument.
3263 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
3264 (pp_c_type_qualifier_list): Mention _Atomic in comment.
3265
3266 2013-11-06 Tobias Burnus <burnus@net-b.de>
3267
3268 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
3269
3270 2013-11-06 Joseph Myers <joseph@codesourcery.com>
3271
3272 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
3273 standards modes.
3274 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
3275 to mean lack of IEEE 754 support.
3276
3277 2013-11-05 Tobias Burnus <burnus@net-b.de>
3278
3279 * c.opt (-Wdate-time): New option
3280 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
3281
3282 2013-11-05 Joseph Myers <joseph@codesourcery.com>
3283
3284 * c-cppbuiltin.c (cpp_iec_559_value): Test
3285 flag_excess_precision_cmdline not flag_excess_precision.
3286
3287 2013-11-05 Tobias Burnus <burnus@net-b.de>
3288
3289 * c.opt (fopenmp-simd): New option.
3290 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
3291 (omp_pragmas): ... this new struct.
3292 (c_pp_lookup_pragma): Also walk omp_pragmas.
3293 (init_pragma): Init pragmas for -fopenmp-simd.
3294
3295 2013-11-04 Marek Polacek <polacek@redhat.com>
3296
3297 PR c++/58979
3298 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
3299
3300 2013-11-04 Joseph Myers <joseph@codesourcery.com>
3301
3302 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
3303 New functions.
3304 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
3305
3306 2013-11-04 Eric Botcazou <ebotcazou@adacore.com>
3307
3308 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
3309 (dump_ada_specs): Adjust prototype of second callback.
3310 * c-ada-spec.c (cpp_check): New global variable.
3311 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
3312 (print_generic_ada_decl): Likewise.
3313 (has_static_fields): Change return type to bool and add guard.
3314 (has_nontrivial_methods): New predicate.
3315 (is_tagged_type): Change return type to bool.
3316 (separate_class_package): Call has_nontrivial_methods.
3317 (pp_ada_tree_identifier): Minor tweaks.
3318 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
3319 (dump_ada_array_domains): Likewise.
3320 (dump_ada_array_type): Likewise.
3321 (dump_template_types): Remove cpp_check parameter and do not pass it to
3322 dump_generic_ada_node.
3323 (dump_ada_template): Likewise.
3324 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
3325 recursively.
3326 (print_ada_methods): Change return type to integer. Remove cpp_check
3327 parameter and do not pass it down.
3328 (dump_nested_types): Remove cpp_check parameter and do not pass it to
3329 dump_generic_ada_node.
3330 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
3331 accessing methods.
3332 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
3333 down. Use has_nontrivial_methods to recognize C++ classes. Use return
3334 value of print_ada_methods.
3335 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
3336 Set cpp_check to it before invoking dump_ada_nodes.
3337 (dump_ada_specs): Likewise.
3338
3339 2013-11-03 Marek Polacek <polacek@redhat.com>
3340
3341 * c-ubsan.c: Don't include hash-table.h.
3342 (ubsan_instrument_vla): New function.
3343 * c-ubsan.h: Declare it.
3344
3345 2013-10-31 David Malcolm <dmalcolm@redhat.com>
3346
3347 Automated part of renaming of symtab_node_base to symtab_node.
3348
3349 Patch autogenerated by rename_symtab.py from
3350 https://github.com/davidmalcolm/gcc-refactoring-scripts
3351 revision 58bb219cc090b2f4516a9297d868c245495ee622
3352
3353 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
3354 symtab_node_base to symtab_node.
3355
3356 2013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
3357
3358 Implement C++14 digit separators.
3359 * c-lex.c (interpret_float): Remove digit separators from scratch string
3360 before building real literal.
3361
3362 2013-10-30 Jakub Jelinek <jakub@redhat.com>
3363
3364 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
3365
3366 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
3367
3368 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
3369 fields.
3370 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
3371 enabled.
3372 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
3373 (insert_cilk_frame): New prototype.
3374 (cilk_init_builtins): Likewise.
3375 (gimplify_cilk_spawn): Likewise.
3376 (c_cilk_install_body_w_frame_cleanup): Likewise.
3377 (cilk_detect_spawn_and_unwrap): Likewise.
3378 (cilk_set_spawn_marker): Likewise.
3379 (build_cilk_sync): Likewise.
3380 (build_cilk_spawn): Likewise.
3381 * cilk.c: New file.
3382
3383 2013-10-29 David Malcolm <dmalcolm@redhat.com>
3384
3385 Patch autogenerated by refactor_symtab.py from
3386 https://github.com/davidmalcolm/gcc-refactoring-scripts
3387 revision 58bb219cc090b2f4516a9297d868c245495ee622
3388
3389 * c-gimplify.c (c_genericize): Update for conversion of symtab types
3390 to a true class hierarchy.
3391 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
3392
3393 2013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
3394
3395 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
3396
3397 2013-10-26 Jeff Law <law@redhat.com>
3398
3399 * c-common.c (c_define_builtins): Remove mudflap support.
3400 * c.opt: Ignore and warn for mudflap options.
3401
3402 2013-10-24 Tobias Burnus <burnus@net-b.de>
3403
3404 PR other/33426
3405 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
3406 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
3407
3408 2013-10-23 Jason Merrill <jason@redhat.com>
3409
3410 * c-format.c (gcc_cxxdiag_char_table): Add %X.
3411
3412 2013-10-11 Jakub Jelinek <jakub@redhat.com>
3413
3414 * c-common.h (omp_clause_mask::operator !=): New method.
3415 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
3416 instead of if (mask & something) tests everywhere.
3417
3418 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
3419 201307 instead of 201107.
3420 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
3421 (c_common_attribute_table): Add "omp declare target" and
3422 "omp declare simd" attributes.
3423 (handle_omp_declare_target_attribute,
3424 handle_omp_declare_simd_attribute): New functions.
3425 * c-omp.c: Include c-pragma.h.
3426 (c_finish_omp_taskgroup): New function.
3427 (c_finish_omp_atomic): Add swapped argument, if true,
3428 build the operation first with rhs, lhs arguments and use NOP_EXPR
3429 build_modify_expr.
3430 (c_finish_omp_for): Add code argument, pass it down to make_code.
3431 (c_omp_split_clauses): New function.
3432 (c_split_parallel_clauses): Removed.
3433 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
3434 c_omp_declare_simd_clauses_to_decls): New functions.
3435 * c-common.h (omp_clause_mask): New type.
3436 (OMP_CLAUSE_MASK_1): Define.
3437 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
3438 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
3439 omp_clause_mask::operator |, omp_clause_mask::operator &,
3440 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
3441 omp_clause_mask::operator ==): New methods.
3442 (enum c_omp_clause_split): New.
3443 (c_finish_omp_taskgroup): New prototype.
3444 (c_finish_omp_atomic): Add swapped argument.
3445 (c_finish_omp_for): Add code argument.
3446 (c_omp_split_clauses): New prototype.
3447 (c_split_parallel_clauses): Removed.
3448 (c_omp_declare_simd_clauses_to_numbers,
3449 c_omp_declare_simd_clauses_to_decls): New prototypes.
3450 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
3451 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
3452 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
3453 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
3454 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
3455 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
3456 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
3457 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
3458 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
3459 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
3460 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
3461 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
3462 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
3463 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
3464 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
3465 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
3466 PRAGMA_OMP_CLAUSE_UNIFORM.
3467
3468 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
3469
3470 PR tree-optimization/20318
3471 * c-common.c (handle_returns_nonnull_attribute): New function.
3472 (c_common_attribute_table): Add returns_nonnull.
3473
3474 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
3475
3476 PR c++/19476
3477 * c.opt (fcheck-new): Move to common.opt.
3478
3479 2013-09-25 Marek Polacek <polacek@redhat.com>
3480 Jakub Jelinek <jakub@redhat.com>
3481
3482 PR sanitizer/58413
3483 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
3484 an expression if we can prove it is correct.
3485 (ubsan_instrument_division): Likewise. Remove unnecessary
3486 check.
3487
3488 2013-09-18 Marek Polacek <polacek@redhat.com>
3489
3490 PR sanitizer/58411
3491 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
3492 Declare it.
3493 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
3494
3495 2013-09-14 Iain Sandoe <iain@codesourcery.com>
3496
3497 PR target/48094
3498 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
3499 fobjc-gc, freplace-objc-classes): Accept for LTO.
3500
3501 2013-09-13 Jacek Caban <jacek@codeweavers.com>
3502
3503 * c-target.def: New hook
3504
3505 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
3506
3507 PR c++/43452
3508 * c.opt (Wdelete-incomplete): Add.
3509
3510 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
3511
3512 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
3513 (vector_types_compatible_elements_p): New function.
3514 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
3515 declaration.
3516 (vector_types_compatible_elements_p): Declare.
3517
3518 2013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
3519
3520 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
3521 a virtual member function.
3522 (pp_simple_type_specifier): Remove.
3523 (pp_c_type_specifier): Likewise.
3524 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
3525 Rename from pp_c_type_specifier. Adjust.
3526 (c_pretty_printer::c_pretty_printer): Do not assign to
3527 simple_type_specifier.
3528
3529 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3530
3531 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
3532 member function.
3533 (c_pretty_printer::storage_class_specifier): Likewise.
3534 (c_pretty_printer::initializer): Likewise.
3535 (pp_declaration): Remove.
3536 (pp_declaration_specifiers): Likewise.
3537 (pp_abstract_declarator): Likewise.
3538 (pp_declarator): Likewise.
3539 (pp_type_id): Likewise.
3540 (pp_statement): Likewise.
3541 (pp_constant): Likewise.
3542 (pp_id_expression): Likewise.
3543 (pp_primary_expression): Likewise.
3544 (pp_unary_expression): Likewise.
3545 (pp_multiplicative_expression): Likewise.
3546 (pp_conditional_expression): Likewise.
3547 (pp_assignment_expression): Likewise.
3548 (pp_expression): Likewise.
3549 (pp_c_type_id): Likewise.
3550 (pp_c_storage_class_specifier): Likewise.
3551 * c-pretty-print.c (pp_c_type_cast): Tidy.
3552 (pp_c_pointer): Likewise.
3553 (pp_c_type_specifier): Likewise.
3554 (pp_c_parameter_type_list): Likewise.
3555 (pp_c_function_definition): Likewise.
3556 (pp_c_init_declarator): Likewise.
3557 (pp_c_initializer_list): Likewise.
3558 (pp_c_constructor_elts): Likewise.
3559 (c_pretty_printer::direct_abstract_declarator): Likewise.
3560 (c_pretty_printer::declaration_specifiers): Likewise.
3561 (c_pretty_printer::primary_expression): Likewise.
3562 (c_pretty_printer::postfix_expression): Likewise.
3563 (c_pretty_printer::type_id): Rename from pp_c_type_id.
3564 (c_pretty_printer::storage_class_specifier): Rename from
3565 pp_c_storage_class_specifier.
3566 (c_pretty_printer::initializer): Rename from pp_c_initializer.
3567 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
3568 storage_class_specifier, initializer, offset_list, flags.
3569
3570 2013-08-30 Marek Polacek <polacek@redhat.com>
3571
3572 * c-ubsan.c: New file.
3573 * c-ubsan.h: New file.
3574
3575 2013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
3576
3577 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
3578 member function.
3579 (c_pretty_printer::declaration_specifiers): Likewise.
3580 (c_pretty_printer::declarator): Likewise.
3581 (c_pretty_printer::abstract_declarator): Likewise.
3582 (c_pretty_printer::direct_abstract_declarator): Likewise.
3583 (c_pretty_printer::direct_declarator): Likewise.
3584 (c_pretty_printer::function_specifier): Likewise.
3585 (pp_declaration): Adjust.
3586 (pp_declaration_specifiers): Likewise.
3587 (pp_abstract_declarator): Likewise.
3588 (pp_direct_declarator): Likewise.
3589 (pp_function_specifier): Likewise.
3590 (pp_direct_abstract_declarator): Remove as unused.
3591 (pp_c_declaration): Remove.
3592 (pp_c_declaration_specifiers): Likewise.
3593 (pp_c_declarator): Likewise.
3594 (pp_c_direct_declarator): Likewise.
3595 (pp_c_function_specifier): Likewise.
3596 (pp_c_direct_abstract_declarator): Likewise.
3597 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
3598 from pp_c_abstract_declarator. Adjust.
3599 (c_pretty_printer::direct_abstract_declarator): Rename from
3600 pp_c_direct_abstract_declarator. Adjust.
3601 (c_pretty_printer::function_specifier): Rename from
3602 pp_c_function_specifier. Adjust.
3603 (c_pretty_printer::declaration_specifiers): Rename from
3604 pp_c_declaration_specifiers. Adjust.
3605 (c_pretty_printer::direct_declarator): Rename from
3606 pp_c_direct_declarator. Adjust.
3607 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
3608 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
3609 (c_pretty_printer::c_pretty_printer): Do not assign to
3610 declaration, declaration_specifiers, declarator,
3611 direct_declarator, direct_abstract_declarator, function_specifier.
3612
3613 2013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
3614
3615 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
3616 virtual member function.
3617 (c_pretty_printer::multiplicative_expression): Likewise.
3618 (c_pretty_printer::conditional_expression): Likewise.
3619 (c_pretty_printer::assignment_expression): Likewise.
3620 (c_pretty_printer::expression): Likewise.
3621 (pp_unary_expression): Adjust.
3622 (pp_multiplicative_expression): Likewise.
3623 (pp_assignment_expression): Likewise.
3624 (pp_conditional_expression): Likewise.
3625 (pp_expression): Likewise.
3626 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
3627 from pp_c_unary_expression. Adjust.
3628 (c_pretty_printer::multiplicative_expression): Rename from
3629 pp_c_multiplicative_expression. Adjust.
3630 (c_pretty_printer::conditional_expression): Rename from
3631 pp_c_conditional_expression. Adjust.
3632 (c_pretty_printer::assignment_expression): Rename from
3633 pp_c_assignment_expression. Adjust.
3634 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
3635 (c_pretty_printer::c_pretty_printer): Do not assign to
3636 unary_expression, multiplicative_expression,
3637 conditional_expression, expression.
3638
3639 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3640
3641 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
3642 virtual member function.
3643 (pp_postfix_expression): Adjust.
3644 (pp_c_postfix_expression): Remove.
3645 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
3646 from pp_c_postfix_expression. Adjust.
3647 (c_pretty_printer::c_pretty_printer): Do not assign to
3648 postfix_expression.
3649
3650 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3651
3652 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
3653 virtua member function.
3654 (pp_primary_expression): Adjust.
3655 (pp_c_primary_expression): Remove.
3656 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
3657 from pp_c_primary_expression. Adjust.
3658 (pp_c_initializer_list): Use pp_primary_expression.
3659 (c_pretty_printer::c_pretty_printer): Do not assign to
3660 primary_expression.
3661
3662 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3663
3664 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
3665 * c-pretty-print.c (M_): Remove.
3666 (c_pretty_printer::translate_string): Define.
3667 (pp_c_type_specifier): Use it.
3668 (pp_c_primary_expression): Likewise.
3669 (pp_c_expression): Likewise.
3670
3671 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
3672
3673 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
3674 virtual function.
3675 (pp_c_id_expression): Remove.
3676 (pp_id_expression): Adjust.
3677 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
3678 pp_c_id_expression. Adjust.
3679 (pp_c_postfix_expression): Use pp_id_expression.
3680 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
3681
3682 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
3683
3684 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
3685 member function.
3686 (pp_constant): Adjust.
3687 (pp_c_constant): Remove.
3688 * c-pretty-print.c (c_pretty_printer::constant): Rename from
3689 pp_c_constant. Adjust.
3690 (pp_c_constant)
3691 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
3692 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
3693
3694 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
3695
3696 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
3697 (c_pretty_printer::c_pretty_printer): Declare.
3698 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
3699 c_pretty_printer_init. Adjust.
3700 (print_c_tree): Do not call c_pretty_printer_init.
3701 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
3702
3703 2013-08-09 Arnaud Charlet <charlet@adacore.com>
3704
3705 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
3706
3707 2013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
3708
3709 PR c++/58080
3710 * c-common.c (pointer_int_sum): Add bool parameter.
3711 * c-common.h (pointer_int_sum): Adjust declaration.
3712
3713 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
3714
3715 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
3716 c_pretty_printer variable.
3717
3718 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
3719
3720 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
3721 (pp_base): Remove.
3722 (pp_c_base): Likewise. Adjust users.
3723 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
3724 (pp_c_whitespace): Do not call pp_base.
3725 (pp_c_left_paren): Likewise.
3726 (pp_c_right_paren): Likewise.
3727 (pp_c_left_brace): Likewise.
3728 (pp_c_right_brace): Likewise.
3729 (pp_c_left_bracket): Likewise.
3730 (pp_c_right_bracket): Likewise.
3731 (pp_c_dot): Likewise.
3732 (pp_c_ampersand): Likewise.
3733 (pp_c_star): Likewise.
3734 (pp_c_arrow): Likewise.
3735 (pp_c_semicolon): Likewise.
3736 (pp_c_complement): Likewise.
3737 (pp_c_exclamation): Likewise.
3738 (pp_c_direct_declarator): Likewise.
3739 (pp_c_ws_string): Likewise.
3740 (pp_c_identifier): Likewise.
3741 (pp_c_statement): Likewise.
3742 (print_c_tree): Likewise.
3743
3744 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
3745
3746 PR c++/58072
3747 * c-common.c (c_parse_error): Catch user-defined literal tokens and
3748 provide useful error strings.
3749
3750 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3751
3752 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
3753 printer functions instead of pp_string or operators and punctuators.
3754 (dump_generic_ada_node): Likewise.
3755 * c-pretty-print.c (pp_c_type_specifier): Likewise.
3756 (pp_c_relational_expression): Likewise.
3757 (pp_c_logical_or_expression): Likewise.
3758
3759 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3760
3761 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
3762 functions instead of pp_character.
3763 (pp_ada_tree_identifier): Likewise.
3764 (dump_ada_double_name): Likewise.
3765 (dump_ada_function_declaration): Likewise.
3766 (dump_ada_array_domains): Likewise.
3767 (dump_template_types): Likewise.
3768 (dump_generic_ada_node): Likewise.
3769 (print_ada_declaration): Likewise.
3770 (print_ada_struct_decl): Likewise.
3771 * c-pretty-print.c (pp_c_integer_constant): Likewise.
3772
3773 2013-07-23 Tom Tromey <tromey@redhat.com>
3774
3775 * c-common.h (enum rid) <RID_GENERIC>: New constant.
3776 * c-common.c (c_common_reswords): Add _Generic.
3777
3778 2013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
3779
3780 * c-common.c: Fix typos.
3781 * c-common.h: Likewise.
3782
3783 2013-07-13 Lubos Lunak <l.lunak@suse.cz>
3784
3785 PR c++/55203
3786 * c-common.c (c_common_attribute_table): Add warn_unused.
3787 (handle_warn_unused_attribute): New.
3788
3789 2013-07-10 Jakub Jelinek <jakub@redhat.com>
3790
3791 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
3792 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
3793
3794 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
3795
3796 PR c++/57869
3797 * c.opt: Add Wconditionally-supported.
3798
3799 2013-07-08 Graham Stott <graham.stott@btinternet.com>
3800
3801 * array-notation-common.c (length_mismatch_in_expr_p): Delete
3802 unused variables l_length and l_node.
3803
3804 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
3805
3806 PR c/57821
3807 * c-common.c (complete_array_type): Delay folding first index
3808 like other indices. When folding, check for index overflow.
3809
3810 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
3811
3812 PR c++/57509
3813 * c-common.h (c_build_vec_perm_expr): New complain argument.
3814 * c-common.c (c_build_vec_perm_expr): Likewise.
3815 Use save_expr also in C++.
3816
3817 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
3818
3819 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
3820 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3821 * c-opts.c (c_common_post_options): Likewise.
3822
3823 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
3824
3825 * array-notation-common.c (length_mismatch_in_expr): Changed the
3826 parameter type's from a dynamic array to a vec_tree. Also removed
3827 the size parameters.
3828 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
3829 the change above.
3830
3831 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
3832
3833 * c-common.h (struct cilkplus_an_parts): New structure.
3834 (struct cilkplus_an_loop_parts): Likewise.
3835 (cilkplus_extract_an_triplets): New prototype.
3836 (fix_sec_implicit_args): Likewise.
3837 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
3838 (fix_sec_implicit_args): Likewise.
3839
3840 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
3841
3842 * array-notation-common.c (find_inv_trees): Removed an unwanted
3843 typecasting.
3844 * c-common.h (struct inv_list::additional_tcodes): Changed type from
3845 enum rid to enum tree_code.
3846
3847 2013-06-11 Jan Hubicka <jh@suse.cz>
3848
3849 * c-common.c (handle_alias_ifunc_attribute): Do not set
3850 DECL_EXTERNAL for weakref variables.
3851 * c-pragma.c (handle_pragma_weak): Make sure aliases
3852 are not declared as external.
3853
3854 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
3855
3856 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
3857 function from c/c-array-notation.c.
3858 (is_cilkplus_reduce_builtin): Likewise.
3859 (find_rank): Likewise.
3860 (extract_array_notation_exprs): Likewise.
3861 (replace_array_notations): Likewise.
3862 (find_inv_trees): Likewise.
3863 (replace_inv_trees): Likewise.
3864 (contains_array_notation_expr): Likewise.
3865 (find_correct_array_notation_type): Likewise.
3866 * c-common.h (struct inv_list): Moved this struct from the file
3867 c/c-array-notation.c and added a new field called additional tcodes.
3868 (length_mismatch_in_expr_p): New prototype.
3869 (is_cilkplus_reduce_builtin): Likewise.
3870 (find_rank): Likewise.
3871 (extract_array_notation_exprs): Likewise.
3872 (replace_array_notation): Likewise.
3873 (find_inv_trees): Likewise.
3874 (replace_inv_trees): Likewise.
3875 (find_correct_array_notation_type): Likewise.
3876
3877 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
3878
3879 * c-common.c (c_define_builtins): When cilkplus is enabled, the
3880 function array_notation_init_builtins is called.
3881 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
3882 * c-common.def (ARRAY_NOTATION_REF): New tree.
3883 * c-common.h (build_array_notation_expr): New function declaration.
3884 (build_array_notation_ref): Likewise.
3885 (extract_sec_implicit_index_arg): New extern declaration.
3886 (is_sec_implicit_index_fn): Likewise.
3887 (ARRAY_NOTATION_CHECK): New define.
3888 (ARRAY_NOTATION_ARRAY): Likewise.
3889 (ARRAY_NOTATION_START): Likewise.
3890 (ARRAY_NOTATION_LENGTH): Likewise.
3891 (ARRAY_NOTATION_STRIDE): Likewise.
3892 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
3893 ARRAY_NOTATION_REF.
3894 (pp_c_expression): Likewise.
3895 * c.opt (flag_enable_cilkplus): New flag.
3896 * array-notation-common.c: New file.
3897
3898 2013-05-14 Jakub Jelinek <jakub@redhat.com>
3899
3900 PR c++/57274
3901 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
3902
3903 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
3904
3905 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
3906 vectors.
3907
3908 2013-05-07 Han Shen <shenhan@google.com>
3909
3910 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
3911
3912 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3913
3914 * c-common.c (check_user_alignment): Emit error for negative values.
3915
3916 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3917
3918 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
3919
3920 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3921
3922 * c-cppbuiltin.c (c_cpp_builtins): Do not define
3923 __GXX_EXPERIMENTAL_CXX1Y__.
3924
3925 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3926 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3927
3928 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
3929 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
3930 to simply use OPT_Wpointer_arith.
3931 (c_sizeof_or_alignof_type): Likewise.
3932
3933 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3934
3935 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
3936
3937 2013-04-12 Jakub Jelinek <jakub@redhat.com>
3938
3939 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
3940 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
3941 specifiers.
3942
3943 2013-04-07 Steven Bosscher <steven@gcc.gnu.org>
3944
3945 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
3946
3947 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
3948
3949 * c-common.c (pointer_int_sum): Remove dead code.
3950
3951 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
3952
3953 PR middle-end/56524
3954 * c-common.c (handle_optimize_attribute): Don't call
3955 save_optabs_if_changed.
3956
3957 2013-03-05 Jakub Jelinek <jakub@redhat.com>
3958
3959 PR middle-end/56461
3960 * c-pch.c (pch_init): Free target_validity at the end.
3961
3962 2013-03-04 Jakub Jelinek <jakub@redhat.com>
3963
3964 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
3965
3966 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
3967 Jakub Jelinek <jakub@redhat.com>
3968
3969 PR sanitizer/56454
3970 * c-common.c (handle_no_sanitize_address_attribute): New function.
3971 (c_common_attribute_table): Add no_sanitize_address attribute.
3972 (handle_no_address_safety_analysis_attribute): Add
3973 no_sanitize_address attribute, not no_address_safety_analysis
3974 attribute.
3975
3976 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
3977
3978 PR target/52555
3979 * c-common.c (handle_optimize_attribute): Call
3980 save_optabs_if_changed.
3981
3982 2013-02-18 Jakub Jelinek <jakub@redhat.com>
3983 Steven Bosscher <steven@gcc.gnu.org>
3984
3985 PR pch/54117
3986 * c-opts.c (c_common_post_options): If debug info is enabled
3987 and non-dwarf*, refuse to load PCH files and when writing PCH
3988 file warn.
3989
3990 2013-02-05 Jakub Jelinek <jakub@redhat.com>
3991
3992 PR middle-end/56167
3993 * c-common.c (handle_error_attribute): Fix condition.
3994
3995 2013-01-30 Jakub Jelinek <jakub@redhat.com>
3996
3997 PR c++/55742
3998 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
3999
4000 2013-01-18 Jason Merrill <jason@redhat.com>
4001
4002 PR target/54908
4003 * c.opt (-fextern-tls-init): New.
4004 * c-opts.c (c_common_post_options): Handle it.
4005
4006 2013-01-09 Jakub Jelinek <jakub@redhat.com>
4007
4008 PR c/48418
4009 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
4010 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
4011 and is either negative or bigger or equal to type precision
4012 of the first operand.
4013
4014 2012-12-03 Marek Polacek <polacek@redhat.com>
4015
4016 PR c/55570
4017 * c-common.c (check_user_alignment): Swap order of tests,
4018 check TREE_CODE first.
4019
4020 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
4021
4022 PR c++/52654
4023 * c-common.h (overflow_type): New enum.
4024 (build_userdef_literal): Add overflow_type argument.
4025 (tree_userdef_literal): Add overflow_type.
4026 (USERDEF_LITERAL_OVERFLOW): New access macro.
4027 * c-common.c (build_userdef_literal): Add overflow_type
4028 argument.
4029 * c-lex.c (c_lex_with_flags): Add overflow_type to
4030 build_userdef_literal calls.
4031 (interpret_integer, interpret_float): Add overflow_type argument.
4032
4033 2012-11-28 Richard Biener <rguenther@suse.de>
4034
4035 PR c/35634
4036 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
4037 here and use a type with proper overflow behavior for types that would
4038 need to be promoted for the arithmetic.
4039
4040 2012-11-23 Jakub Jelinek <jakub@redhat.com>
4041
4042 PR sanitizer/55435
4043 * c-common.c (handle_no_address_safety_analysis_attribute): New
4044 function.
4045 (c_common_attribute_table): Add no_address_safety_analysis.
4046
4047 2012-11-16 Simon Baldwin <simonb@google.com>
4048
4049 * c.opt: Add f[no-]canonical-system-headers.
4050 * c-opts.c (c_common_handle_option): Handle
4051 OPT_fcanonical_system_headers.
4052
4053 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
4054
4055 PR c++/54413
4056 * c-opts.c (c_common_handle_option): Set new flags.
4057 * c.opt: Describe new flags.
4058
4059 2012-11-09 Jason Merrill <jason@redhat.com>
4060
4061 * c.opt (Wabi-tag): New.
4062
4063 2012-11-09 Andi Kleen <ak@linux.intel.com>
4064
4065 PR 55139
4066 * c-common.c (get_atomic_generic_size): Mask with
4067 MEMMODEL_MASK
4068
4069 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4070
4071 PR c/53063
4072 * c.opt (Wformat): Make it Alias Wformat=1.
4073 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
4074 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
4075 LangEnabledBy.
4076 (Wformat=): RejectNegative. Use LangEnabledBy.
4077 (Wnonnull): Use LangEnabledBy.
4078 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
4079 * c-format.c (set_Wformat): Delete.
4080 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
4081 (maybe_read_dollar_number): Likewise.
4082 (avoid_dollar_number): Likewise.
4083 (finish_dollar_format_checking): Likewise.
4084 (check_format_info): Likewise.
4085 (check_format_info_main): Likewise.
4086 (check_format_types): Likewise.
4087 (format_type_warning): Likewise.
4088 * c-common.c (int): Likewise.
4089 (check_function_sentinel): Likewise.
4090 * c-common.h (warn_format,set_Wformat): Do not declare here.
4091
4092 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4093
4094 PR c/53063
4095 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
4096 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
4097 Use LangEnabledBy.
4098 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
4099 common.opt.
4100 (Wvariadic-macros): Init(1).
4101 * c-opts.c (c_common_handle_option): Do not handle them
4102 explicitly.
4103 (c_common_post_options): Likewise.
4104 (sanitize_cpp_opts): warn_unused_macros is now
4105 cpp_warn_unused_macros.
4106 (push_command_line_include): Likewise.
4107 * c-common.c (warn_unknown_pragmas): Do not define.
4108 * c-common.h (warn_unknown_pragmas): Do not declare.
4109
4110 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4111
4112 PR c/51294
4113 * c-common.c (conversion_warning): Handle conditional expressions.
4114
4115 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
4116
4117 PR c++/54930
4118 * c.opt (Wreturn_local_addr): Define new option.
4119
4120 2012-10-25 Jason Merrill <jason@redhat.com>
4121
4122 * c.opt (Wvirtual-move-assign): New.
4123
4124 * c.opt (Winherited-variadic-ctor): New.
4125
4126 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
4127
4128 PR c++/54427
4129 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
4130
4131 2012-10-23 Joseph Myers <joseph@codesourcery.com>
4132
4133 * c-common.h (pch_cpp_save_state): Declare.
4134 * c-target.def (c_preinclude): New hook.
4135 * c-opts.c (done_preinclude): New.
4136 (push_command_line_include): Handle default preincluded header.
4137 (cb_file_change): Call pch_cpp_save_state when calling
4138 push_command_line_include.
4139 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
4140 (pch_cpp_save_state): New.
4141 (pch_init): Call pch_cpp_save_state conditionally, instead of
4142 calling cpp_save_state.
4143
4144 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4145
4146 PR c/53063
4147 PR c/40989
4148 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
4149 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
4150 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
4151 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
4152 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
4153 * c-opts.c (c_common_handle_option): Remove explicit handling from
4154 here.
4155 (c_common_post_options): Likewise.
4156
4157 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
4158
4159 * c-ada-spec.c (LOCATION_COL): Delete.
4160 (compare_location): New function.
4161 (compare_node): Use it.
4162 (compare_comment): Likewise.
4163
4164 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
4165
4166 PR c/53063
4167 PR c/40989
4168 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
4169 * c-opts.c (c_common_handle_option): Do not set them here. Add
4170 comment.
4171 (c_common_post_options): Likewise.
4172
4173 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
4174
4175 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
4176 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
4177 Remove POINTER_TYPE handling, add large unsigned handling and use
4178 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
4179
4180 2012-10-12 Jakub Jelinek <jakub@redhat.com>
4181
4182 PR c/54381
4183 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
4184 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
4185 locs and array of 3 trees instead of just single loc and single
4186 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
4187 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
4188 For *cmp* builtins that take two sources strings report warnings
4189 about first and second source, not about destination and source.
4190
4191 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
4192
4193 PR c++/53055
4194 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
4195
4196 2012-10-11 Eric Botcazou <ebotcazou@adacore.com>
4197
4198 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
4199 declaring something coming from another file.
4200
4201 2012-10-10 Arnaud Charlet <charlet@adacore.com>
4202
4203 PR ada/54845
4204 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
4205
4206 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
4207
4208 PR c++/54194
4209 * c-common.c (warn_about_parentheses): Add location_t parameter;
4210 use EXPR_LOC_OR_LOC.
4211 * c-common.h: Update declaration.
4212
4213 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
4214
4215 PR c++/54427
4216 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
4217 more operations. Make error messages optional.
4218 * c-common.h (enum stv_conv): Moved from c-typeck.c.
4219 (scalar_to_vector): Declare.
4220
4221 2012-10-08 Jason Merrill <jason@redhat.com>
4222
4223 * c-common.c (c_common_reswords): Add thread_local.
4224
4225 2012-10-08 Dodji Seketeli <dodji@redhat.com>
4226
4227 PR c++/53528 C++11 attribute support
4228 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
4229 new functions.
4230 * c-common.c (check_cxx_fundamental_alignment_constraints): New
4231 static function.
4232 (handle_aligned_attribute): In choose strictest alignment
4233 among many. Use new check_cxx_fundamental_alignment_constraints.
4234 (handle_transparent_union_attribute): In c++11 attribute syntax,
4235 don't look through typedefs.
4236
4237 2012-10-04 Arnaud Charlet <charlet@adacore.com>
4238
4239 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
4240 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
4241 out of dumpfile.h.
4242
4243 2012-09-25 Dehao Chen <dehao@google.com>
4244
4245 PR middle-end/54645
4246 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
4247 map when read in the pch.
4248
4249 2012-09-18 Arnaud Charlet <charlet@adacore.com>
4250
4251 * c-ada-spec.c: Style fixes.
4252
4253 2012-09-18 Thomas Quinot <quinot@adacore.com>
4254
4255 * c.opt (-fada-spec-parent): Define new command line switch.
4256 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
4257 is specified, generate binding spec as a child of the specified unit.
4258
4259 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
4260 Manuel López-Ibáñez <manu@gcc.gnu.org>
4261
4262 PR c++/53210
4263 * c.opt ([Winit-self]): Enabled by -Wall in C++.
4264
4265 2012-08-23 Arnaud Charlet <charlet@adacore.com>
4266
4267 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
4268 for pointers, and add missing Convention C pragma.
4269 (print_ada_struct_decl): Add missing aliased keyword.
4270 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
4271
4272 2012-08-17 Jakub Jelinek <jakub@redhat.com>
4273
4274 * c-common.c (sizeof_pointer_memaccess_warning): New function.
4275 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
4276 * c-opts.c (c_common_handle_option): Enable it for -Wall.
4277 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
4278 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
4279
4280 2012-08-10 Richard Guenther <rguenther@suse.de>
4281
4282 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
4283
4284 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
4285
4286 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
4287 instead of separate pp_newline and pp_flush.
4288 (print_c_tree): Likewise.
4289
4290 2012-07-26 Richard Henderson <rth@redhat.com>
4291
4292 * c-common.c (handle_hot_attribute): Allow labels.
4293 (handle_cold_attribute): Likewise.
4294
4295 2012-07-20 Jakub Jelinek <jakub@redhat.com>
4296
4297 PR c++/28656
4298 * c-common.c (check_function_nonnull): Handle multiple nonnull
4299 attributes properly.
4300
4301 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
4302
4303 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
4304 * c-ada-spec.c: Likewise.
4305 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
4306
4307 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
4308
4309 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
4310 Remove code conditional on it.
4311
4312 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
4313
4314 * c-gimplify.c: Do not include basic-block.h.
4315 * c-common.c: Do not include linfuncs.h.
4316
4317 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
4318
4319 * c-common.h: Include tree.h.
4320
4321 2012-07-02 Jason Merrill <jason@redhat.com>
4322
4323 PR c++/53524
4324 * c-common.c (get_priority): Call default_conversion.
4325
4326 2012-07-01 Uros Bizjak <ubizjak@gmail.com>
4327
4328 * c-pch.c (c_common_write_pch): Remove unused variables.
4329
4330 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
4331
4332 * cppspec.c: Moved from gcc/ to here.
4333
4334 2012-06-27 Kai Tietz <ktietz@redhat.com>
4335
4336 PR preprocessor/37215
4337 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
4338
4339 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
4340
4341 * c-common.h (c_common_print_pch_checksum): Remove.
4342 * c-pch.c: Do not include output.h.
4343 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
4344 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
4345 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
4346 (struct c_pch_header): Remove.
4347 (get_ident): Update gpch version.
4348 (pch_init): Do not print executable_checksum to asm_out_file.
4349 Do not fail if there is no asm_out_file to read back from. Set
4350 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
4351 (c_common_write_pch): Verify that nothing was written to asm_out_file
4352 since pch_init was called. Do not write a c_pch_header, and do not
4353 copy from asm_out_file to the PCH.
4354 (c_common_read_pch): Do not read a c_pch_header, and do not restore
4355 the content of asm_out_file from the PCH.
4356 (c_common_print_pch_checksum): Remove.
4357 * c-opts.c (c_common_init): Print out executable_checksum directly.
4358
4359 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
4360
4361 * c-target.def (objc_declare_unresolved_class_reference,
4362 objc_declare_class_definition): Add new hooks.
4363
4364 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
4365
4366 * c-lex.c: Do not include output.h.
4367 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
4368 Remove uses of ASM_OUTPUT_IDENT.
4369
4370 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
4371
4372 PR c++/51033
4373 * c-common.h (c_build_vec_perm_expr): Move decl here.
4374 * c-common.c (c_build_vec_perm_expr): Move definition
4375 here.
4376
4377 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
4378
4379 * c.opt (fconserve-space): Turn into a no-op.
4380
4381 2012-06-04 Sterling Augustine <saugustine@google.com>
4382
4383 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
4384 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
4385 both the start and end of the function.
4386
4387 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
4388
4389 * c-common.c: Do not include output.h.
4390 * c-pragma.c: Likewise.
4391
4392 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
4393
4394 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
4395 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
4396 (lang_decl_name): Handle namespace decls.
4397
4398 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
4399
4400 * c-ada-spec.c: Do not include output.h.
4401 * c-semantics.c: Likewise.
4402
4403 2012-05-29 Joseph Myers <joseph@codesourcery.com>
4404
4405 * c-common.c: Fix typo.
4406
4407 2012-05-29 Michael Matz <matz@suse.de>
4408
4409 * c-common.h (c_expand_decl): Remove prototype.
4410
4411 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
4412
4413 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
4414 * c-opts.c (c_common_handle_option): Remove code handling
4415 warn_missing_braces.
4416
4417 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
4418
4419 PR c++/25137
4420 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
4421 -Wmissing_braces.
4422
4423 2012-05-22 Dodji Seketeli <dodji@redhat.com>
4424
4425 PR c++/53322
4426 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
4427
4428 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
4429
4430 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
4431 * c-opts.c (c_common_handle_option): Do not handle explicitly
4432 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
4433
4434 2012-05-16 Dodji Seketeli <dodji@redhat.com>
4435
4436 PR preprocessor/7263
4437 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
4438 to cpp_classify_number. For diagnostics, use the precise location
4439 instead of the global input_location.
4440
4441 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
4442
4443 PR c++/11856
4444 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
4445
4446 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
4447
4448 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
4449
4450 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
4451
4452 PR 53063
4453 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
4454 Wreorder): Use LangEnabledBy.
4455 * c-opts.c (c_common_handle_option): Do not enable them
4456 explicitly. Call lang-specific generated functions.
4457 (c_common_post_options): Do not set them here.
4458
4459 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
4460
4461 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
4462 Wmissing-field-initializers,Wmissing-parameter-type,
4463 Wold-style-declaration,Woverride-init): Use EnabledBy.
4464 * c-opts.c (c_common_post_options): Do not set here explicitly.
4465
4466 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4467
4468 PR 53063
4469 * c-opts.c (c_common_handle_option): Use handle_generated_option
4470 to enable sub-options.
4471
4472 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
4473
4474 PR c++/53158
4475 * c-common.c (warnings_for_convert_and_check): Use warning_at.
4476
4477 2012-05-10 Richard Guenther <rguenther@suse.de>
4478
4479 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
4480 adjust commentary about TYPE_IS_SIZETYPE types.
4481
4482 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4483
4484 PR c++/53261
4485 * c-common.c (warn_logical_operator): Check that argument of
4486 integer_zerop is not NULL.
4487
4488 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
4489
4490 PR c/43772
4491 * c-common.c (warn_logical_operator): Do not warn if either side
4492 is already true or false.
4493
4494 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
4495
4496 PR c/51712
4497 * c-common.c (expr_original_type): New.
4498 (shorten_compare): Do not warn for enumeration types.
4499
4500 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
4501
4502 * c.opt (fpermissive): Add Var(flag_permissive).
4503
4504 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
4505
4506 PR c++/51033
4507 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
4508 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
4509
4510 2012-04-30 Dodji Seketeli <dodji@redhat.com>
4511
4512 Add -Wvarargs option
4513 * c.opt (Wvarargs): Define new option.
4514
4515 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4516
4517 * c-common.c (check_function_arguments): Replace
4518 Wmissing-format-attribute with Wsuggest-attribute=format.
4519
4520 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4521
4522 * c.opt (Wsuggest-attribute=format): New. Alias of
4523 Wmissing-format-attribute.
4524 * c-format.c (decode_format_type): Replace
4525 Wmissing-format-attribute with Wsuggest-attribute=format.
4526 (check_function_format): Likewise.
4527
4528 2012-04-27 Ollie Wild <aaw@google.com>
4529
4530 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
4531 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
4532 * c.opt: Add Wliteral-suffix.
4533
4534 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
4535
4536 PR c/44774
4537 * c.opt (Wpedantic): New.
4538 (pedantic): Alias Wpedantic.
4539 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
4540 (c_common_post_options): Likewise.
4541 (sanitize_cpp_opts): Likewise.
4542 * c-lex.c (interpret_float): Likewise.
4543 * c-format.c (check_format_types): Likewise.
4544 * c-common.c (pointer_int_sum): Likewise.
4545 (c_sizeof_or_alignof_type): Likewise.
4546 (c_add_case_label): Likewise.
4547 (c_do_switch_warnings): Likewise.
4548 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
4549
4550 2012-04-15 Jason Merrill <jason@redhat.com>
4551
4552 PR c++/52818
4553 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
4554 (C_STD_NAME): Distinguish between C++98 and C++11.
4555
4556 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
4557
4558 PR target/52624
4559 * c-common.h (uint16_type_node): Rename into...
4560 (c_uint16_type_node): ...this.
4561 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
4562 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
4563
4564 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
4565
4566 * c-common.c (warn_if_unused_value): Move definition to here.
4567 * c-common.h (warn_if_unused_value): Move declaration to here.
4568
4569 2012-03-23 William Bader <williambader@hotmail.com>
4570
4571 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
4572
4573 2012-03-20 Jason Merrill <jason@redhat.com>
4574
4575 * c-common.h (enum cxx_dialect): Add cxx1y.
4576 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
4577 test.
4578 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
4579 * c-opts.c (c_common_post_options): Likewise.
4580 (set_std_cxx1y): New.
4581 (c_common_handle_option): Call it.
4582 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
4583
4584 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
4585
4586 PR c++/14710
4587 * c.opt ([Wuseless-cast]): Add.
4588
4589 2012-03-16 Richard Guenther <rguenther@suse.de>
4590
4591 * c-pretty-print.c (pp_c_initializer_list): Adjust.
4592
4593 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
4594
4595 PR c++/44783
4596 * c.opt (ftemplate-backtrace-limit) Add.
4597
4598 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4599
4600 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
4601 handling.
4602 * c-pragma.c (handle_pragma_extern_prefix): Remove.
4603 (init_pragma): Don't register extern_prefix.
4604
4605 2012-03-12 Richard Guenther <rguenther@suse.de>
4606
4607 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
4608 (builtin_type_for_size): Likewise.
4609
4610 2012-02-13 Jakub Jelinek <jakub@redhat.com>
4611
4612 PR c++/52215
4613 * c-common.c (sync_resolve_params): Don't decide whether to convert
4614 or not based on TYPE_SIZE comparison, convert whenever arg_type
4615 is unsigned INTEGER_TYPE.
4616
4617 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
4618
4619 PR c/52118
4620 * c.opt ([Wunused-local-typedefs]): Fix description.
4621
4622 2012-01-24 Mike Stump <mikestump@comcast.net>
4623
4624 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
4625 exactly.
4626
4627 2012-01-18 Richard Guenther <rguenther@suse.de>
4628
4629 * c-opts.c (c_common_post_options): Reset LTO flags if
4630 we are about to generate a PCH.
4631
4632 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
4633
4634 PR c++/51777
4635 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
4636 use pp_unsigned_wide_integer.
4637
4638 2012-01-10 Richard Guenther <rguenther@suse.de>
4639
4640 PR middle-end/51806
4641 * c-opts.c (c_common_handle_option): Move -Werror handling
4642 to language independent code.
4643
4644 2012-01-05 Richard Guenther <rguenther@suse.de>
4645
4646 PR middle-end/51764
4647 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
4648 from common.opt.
4649
4650 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
4651
4652 PR c++/51316
4653 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
4654 of array types with an unknown bound.
4655
4656 2011-12-20 Joseph Myers <joseph@codesourcery.com>
4657
4658 * c-common.c (flag_isoc99): Update comment to refer to C11.
4659 (flag_isoc1x): Change to flag_isoc11.
4660 * c-common.h (flag_isoc99): Update comment to refer to C11.
4661 (flag_isoc1x): Change to flag_isoc11.
4662 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
4663 C11.
4664 * c-opts.c (set_std_c1x): Change to set_std_c11.
4665 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
4666 Call set_std_c11.
4667 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
4668 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
4669 * c.opt (std=c1x): Change to std=c11. Document as non-draft
4670 standard.
4671 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
4672 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
4673 (std=gnu1x): Make alias of std=gnu11.
4674
4675 2011-12-19 Jason Merrill <jason@redhat.com>
4676
4677 PR c++/51228
4678 * c-common.c (handle_transparent_union_attribute): Check the first
4679 field if the type is complete.
4680
4681 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
4682
4683 PR libstdc++/51365
4684 * c-common.c (RID_IS_FINAL): Add.
4685 * c-common.h (RID_IS_FINAL): Add.
4686
4687 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
4688
4689 * c.opt (fgnu-runtime): Provide full description.
4690 (fnext-runtime): Likewise.
4691 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
4692
4693 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
4694
4695 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
4696 predefines in one place. Add LOCK_FREE predefines.
4697 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
4698 new func.
4699
4700 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
4701
4702 PR c/51256
4703 * c-common.c (get_atomic_generic_size): Check for various error
4704 conditions
4705 (resolve_overloaded_atomic_exchange,
4706 resolve_overloaded_atomic_compare_exchange,
4707 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
4708 error_mark_node for error conditions.
4709
4710 2011-11-08 Richard Guenther <rguenther@suse.de>
4711
4712 PR middle-end/51010
4713 c-family/
4714
4715 2011-11-07 Richard Henderson <rth@redhat.com>
4716 Aldy Hernandez <aldyh@redhat.com>
4717 Torvald Riegel <triegel@redhat.com>
4718
4719 Merged from transactional-memory.
4720
4721 * c-common.c (handle_tm_wrap_attribute,
4722 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
4723 (struct c_common_reswords): Added __transaction* keywords.
4724 (struct c_common_attribute_table): Added transaction* and tm_regparm
4725 attributes.
4726 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
4727 masks.
4728 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
4729 find_tm_attribute): Declare.
4730
4731 2011-11-07 Jason Merrill <jason@redhat.com>
4732
4733 PR c++/35688
4734 * c-common.c, c-common.h: Revert yesterday's changes.
4735
4736 2011-11-06 Jason Merrill <jason@redhat.com>
4737
4738 PR c++/35688
4739 * c-common.c (decl_has_visibility_attr): Split out from...
4740 (c_determine_visibility): ...here.
4741 * c-common.h: Declare it.
4742
4743 2011-11-06 Joseph Myers <joseph@codesourcery.com>
4744
4745 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
4746 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
4747 type.
4748 (check_user_alignment): New. Split out of
4749 handle_aligned_attribute. Disallow integer constants with
4750 noninteger types. Conditionally allow zero.
4751 (handle_aligned_attribute): Use check_user_alignment.
4752 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
4753
4754 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
4755 Richard Henderson <rth@redhat.com>
4756
4757 Merged from cxx-mem-model.
4758
4759 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
4760 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
4761 parameters that are the same type size.
4762 (get_atomic_generic_size): New. Find size of generic
4763 atomic function parameters and do typechecking.
4764 (add_atomic_size_parameter): New. Insert size into parameter list.
4765 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
4766 either __atomic_exchange_n or external library call.
4767 (resolve_overloaded_atomic_compare_exchange): Restructure
4768 __atomic_compare_exchange to either _n variant or external library call.
4769 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
4770 __atomic_load_n or an external library call.
4771 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
4772 __atomic_store_n or an external library call.
4773 (resolve_overloaded_builtin): Handle new __atomic builtins.
4774
4775 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
4776
4777 PR c++/50608
4778 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
4779 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
4780 <INDIRECT_REF>: Return the argument.
4781 <ARRAY_REF>: Remove special code for negative offset.
4782 Call fold_build_pointer_plus instead of size_binop.
4783 (fold_offsetof): Remove STOP_REF argument and adjust.
4784 * c-common.h (fold_offsetof_1): Declare.
4785 (fold_offsetof): Remove STOP_REF argument.
4786
4787 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
4788
4789 PR c++/50810
4790 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4791 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4792 Wnarrowing for C++0x and C++98.
4793 * c.opt ([Wnarrowing]): Update.
4794
4795 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
4796
4797 PR c++/44277
4798 * c.opt: Add Wzero-as-null-pointer-constant.
4799
4800 2011-10-31 Jason Merrill <jason@redhat.com>
4801
4802 * c.opt (-fdeduce-init-list): Off by default.
4803
4804 PR c++/50920
4805 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
4806 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
4807 and -Wc++11-compat.
4808 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
4809
4810 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
4811
4812 PR c++/30066
4813 * c.opt (fvisibility-inlines-hidden): Description change.
4814
4815 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
4816
4817 Implement C++11 user-defined literals.
4818 * c-common.c (build_userdef_literal): New.
4819 * c-common.def: New tree code.
4820 * c-common.h (tree_userdef_literal): New tree struct and accessors.
4821 * c-lex.c (interpret_float): Add suffix parm.
4822 (c_lex_with_flags): Build literal tokens.
4823
4824 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4825
4826 PR c++/50841
4827 Revert:
4828 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4829
4830 PR c++/50810
4831 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4832 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4833 Wnarrowing for C++0x and C++98.
4834 * c.opt ([Wnarrowing]): Update.
4835
4836 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4837
4838 PR c++/50810
4839 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4840 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4841 Wnarrowing for C++0x and C++98.
4842 * c.opt ([Wnarrowing]): Update.
4843
4844 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
4845
4846 PR c++/45385
4847 * c-common.c (conversion_warning): Remove code looking for
4848 artificial operands.
4849
4850 2011-10-18 Dodji Seketeli <dodji@redhat.com>
4851
4852 PR bootstrap/50760
4853 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
4854 !NO_IMPLICIT_EXTERN_C.
4855
4856 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
4857
4858 * c-common.c (c_common_reswords): Add __bases,
4859 __direct_bases.
4860 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
4861
4862 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
4863
4864 PR c++/50757
4865 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
4866
4867 2011-10-15 Tom Tromey <tromey@redhat.com>
4868 Dodji Seketeli <dodji@redhat.com>
4869
4870 * c.opt (fdebug-cpp): New option.
4871 * c-opts.c (c_common_handle_option): Handle the option.
4872 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
4873 output stream in parameter. Factorized from ...
4874 (maybe_print_line): ... this. Dump location debug information when
4875 -fdebug-cpp is in effect.
4876 (print_line_1): New static function. Takes an output stream in
4877 parameter. Factorized from ...
4878 (print_line): ... here. Dump location information when -fdebug-cpp
4879 is in effect.
4880 (scan_translation_unit): Dump location information when
4881 -fdebug-cpp is in effect.
4882
4883 2011-10-15 Tom Tromey <tromey@redhat.com>
4884 Dodji Seketeli <dodji@redhat.com>
4885
4886 * c.opt (ftrack-macro-expansion): New option. Handle it with and
4887 without argument.
4888 * c-opts.c (c_common_handle_option)<case
4889 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
4890 cases. Handle -ftrack-macro-expansion with and without argument.
4891
4892 2011-10-15 Tom Tromey <tromey@redhat.com>
4893 Dodji Seketeli <dodji@redhat.com>
4894
4895 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
4896 (print_line, cb_define, do_line_change): Adjust to avoid touching
4897 the internals of struct line_map. Use the public API instead.
4898 * c-pch.c (c_common_read_pch): Likewise.
4899 * c-lex.c (fe_file_change): Likewise.
4900
4901 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
4902
4903 PR c++/17212
4904 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
4905
4906 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
4907
4908 PR c++/33067
4909 * c-pretty-print.c (pp_c_floating_constant): Output
4910 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
4911
4912 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
4913
4914 * c-common.c (def_builtin_1): Delete old interface with two
4915 parallel arrays to hold standard builtin declarations, and replace
4916 it with a function based interface that can support creating
4917 builtins on the fly in the future. Change all uses, and poison
4918 the old names. Make sure 0 is not a legitimate builtin index.
4919 * c-omp.c (c_finish_omp_barrier): Ditto.
4920 (c_finish_omp_taskwait): Ditto.
4921 (c_finish_omp_flush): Ditto.
4922
4923 2011-10-11 Tristan Gingold <gingold@adacore.com>
4924
4925 * c.opt: (fallow-parameterless-variadic-functions): New.
4926
4927 2011-09-08 Dodji Seketeli <dodji@redhat.com>
4928
4929 PR c++/33255 - Support -Wunused-local-typedefs warning
4930 * c-common.h (struct c_language_function::local_typedefs): New
4931 field.
4932 (record_locally_defined_typedef, maybe_record_typedef_use)
4933 (maybe_warn_unused_local_typedefs): Declare new functions.
4934 * c-common.c (record_locally_defined_typedef)
4935 (maybe_record_typedef_use)
4936 (maybe_warn_unused_local_typedefs): Define new functions.
4937 * c.opt: Declare new -Wunused-local-typedefs flag.
4938
4939 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
4940
4941 PR middle-end/50266
4942 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
4943 computations.
4944
4945 2011-09-05 Richard Guenther <rguenther@suse.de>
4946
4947 * c-common.c (complete_array_type): Use ssize_int (-1) instead
4948 of integer_minus_one_node for empty array upper bounds.
4949
4950 2011-08-28 Dodji Seketeli <dodji@redhat.com>
4951
4952 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
4953 it's the first time it's being called on this main TU.
4954
4955 2011-08-24 Richard Guenther <rguenther@suse.de>
4956
4957 PR c/49396
4958 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
4959
4960 2011-08-22 Gabriel Charette <gchare@google.com>
4961
4962 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
4963 defined in cpp_init_builtins and c_cpp_builtins.
4964
4965 2011-08-19 Joseph Myers <joseph@codesourcery.com>
4966
4967 * c-common.c (c_common_reswords): Add __builtin_complex.
4968 * c-common.h (RID_BUILTIN_COMPLEX): New.
4969
4970 2011-08-18 Joseph Myers <joseph@codesourcery.com>
4971
4972 * c-common.c (c_common_reswords): Add _Noreturn.
4973 (keyword_is_function_specifier): Handle RID_NORETURN.
4974 * c-common.h (RID_NORETURN): New.
4975
4976 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4977
4978 * c-common.c (unsafe_conversion_p): New function. Check if it is
4979 unsafe to convert an expression to the type.
4980 (conversion_warning): Adjust, use unsafe_conversion_p.
4981 * c-common.h (unsafe_conversion_p): New function declaration.
4982
4983 2011-08-02 Jakub Jelinek <jakub@redhat.com>
4984
4985 * c-common.h (c_finish_omp_atomic): Adjust prototype.
4986 (c_finish_omp_taskyield): New prototype.
4987 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
4988 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
4989 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
4990 or RHS1 have side-effects, evaluate those too in the right spot,
4991 if it is a decl and LHS is also a decl, error out if they
4992 aren't the same.
4993 (c_finish_omp_taskyield): New function.
4994 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
4995 * c-pragma.c (omp_pragmas): Add taskyield.
4996 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
4997 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
4998 PRAGMA_OMP_CLAUSE_MERGEABLE.
4999
5000 2011-07-25 Dodji Seketeli <dodji@redhat.com>
5001
5002 * c-common.h (set_underlying_type): Remove parm name from
5003 declaration.
5004
5005 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
5006
5007 * c-pretty-print.h: Search c-common.h in c-family.
5008
5009 2011-07-22 Jason Merrill <jason@redhat.com>
5010
5011 PR c++/49793
5012 * c.opt (Wnarrowing): New.
5013
5014 PR c++/30112
5015 * c-common.h: Declare c_linkage_bindings.
5016 * c-pragma.c (handle_pragma_redefine_extname): Use it.
5017
5018 PR c++/49813
5019 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
5020 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
5021 as flag_isoc99 for 'restrict'.
5022 (pp_c_specifier_qualifier_list): Likewise for _Complex.
5023
5024 2011-07-21 Ian Lance Taylor <iant@google.com>
5025
5026 PR middle-end/49705
5027 * c-common.c (c_disable_warnings): New static function.
5028 (c_enable_warnings): New static function.
5029 (c_fully_fold_internal): Change local unused_p to bool. Call
5030 c_disable_warnings and c_enable_warnings rather than change
5031 c_inhibit_evaluation_warnings.
5032
5033 2011-07-20 Jason Merrill <jason@redhat.com>
5034
5035 PR c++/6709 (DR 743)
5036 PR c++/42603 (DR 950)
5037 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
5038 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
5039 (CPP_DECLTYPE): New.
5040 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
5041
5042 2011-07-19 Richard Guenther <rguenther@suse.de>
5043
5044 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
5045 * c-omp.c (c_finish_omp_for): Likewise.
5046
5047 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
5048
5049 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
5050 body on the next line.
5051
5052 2011-07-08 Jason Merrill <jason@redhat.com>
5053
5054 PR c++/45437
5055 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
5056
5057 PR c++/49673
5058 * c-common.c (c_apply_type_quals_to_decl): Don't check
5059 TYPE_NEEDS_CONSTRUCTING.
5060
5061 2011-07-06 Richard Guenther <rguenther@suse.de>
5062
5063 * c-common.c (c_common_nodes_and_builtins):
5064 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
5065
5066 2011-07-05 Richard Guenther <rguenther@suse.de>
5067
5068 * c-common.c (c_common_nodes_and_builtins): Build all common
5069 tree nodes first.
5070
5071 2011-06-27 Jakub Jelinek <jakub@redhat.com>
5072
5073 * c-common.h (c_tree_chain_next): New static inline function.
5074
5075 * c-common.c (check_builtin_function_arguments): Handle
5076 BUILT_IN_ASSUME_ALIGNED.
5077
5078 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
5079
5080 * c-common.c: Add sync_ or SYNC__ to builtin names.
5081 * c-omp.c: Add sync_ or SYNC__ to builtin names.
5082
5083 2011-06-20 Pierre Vittet <piervit@pvittet.com>
5084
5085 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
5086 handler.
5087 (gen_pragma_handler): New union.
5088 (internal_pragma_handler): New type.
5089 (c_register_pragma_with_data)
5090 (c_register_pragma_with_expansion_and_data): New functions.
5091
5092 * c-pragma.c (registered_pragmas, c_register_pragma_1)
5093 (c_register_pragma, c_register_pragma_with_expansion)
5094 (c_invoke_pragma_handler): Changed to work with
5095 internal_pragma_handler.
5096 (c_register_pragma_with_data)
5097 (c_register_pragma_with_expansion_and_data): New functions.
5098
5099 2011-06-14 Joseph Myers <joseph@codesourcery.com>
5100
5101 * c-common.c: Include common/common-target.h.
5102 (handle_section_attribute): Use
5103 targetm_common.have_named_sections.
5104 * c-cppbuiltin.c: Include common/common-target.h.
5105 (c_cpp_builtins): Use targetm_common.except_unwind_info.
5106
5107 2011-06-10 Richard Guenther <rguenther@suse.de>
5108
5109 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
5110 to print a IDENTIFIER_NODE.
5111
5112 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5113 Joseph Myers <joseph@codesourcery.com>
5114
5115 * c.opt (fbuilding-libgcc): New option.
5116 * c-cppbuiltin.c (c_cpp_builtins): Define
5117 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
5118
5119 2011-06-07 Jason Merrill <jason@redhat.com>
5120
5121 * c-common.c (max_tinst_depth): Lower default to 900.
5122
5123 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
5124
5125 2011-06-07 Richard Guenther <rguenther@suse.de>
5126
5127 * c-common.c (c_common_nodes_and_builtins): Do not set
5128 size_type_node or call set_sizetype.
5129
5130 2011-06-07 Dodji Seketeli <dodji@redhat.com>
5131
5132 PR debug/49130
5133 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
5134 type when using pointer comparison to compare types.
5135
5136 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
5137
5138 * c.opt: Add -Wdelete-non-virtual-dtor.
5139 * c-opts.c (c_common_handle_option): Include it in -Wall.
5140
5141 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
5142
5143 PR bootstrap/49190
5144
5145 Revert:
5146 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5147
5148 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
5149 not tree_common.
5150
5151 2011-05-27 Jakub Jelinek <jakub@redhat.com>
5152
5153 PR c++/49165
5154 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
5155 C++ don't call c_common_truthvalue_conversion on void type arms.
5156
5157 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
5158
5159 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
5160 (stmt_list_stack): Define.
5161 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
5162 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
5163
5164 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5165
5166 * c-common.c (warning_candidate_p): Check for BLOCKs.
5167
5168 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5169
5170 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
5171 not tree_common.
5172
5173 2011-05-25 Jakub Jelinek <jakub@redhat.com>
5174
5175 * c-common.c (def_fn_type): Remove extra va_end.
5176
5177 2011-05-23 Jason Merrill <jason@redhat.com>
5178
5179 PR c++/48106
5180 * c-common.c (c_common_get_narrower): New.
5181 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
5182
5183 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
5184
5185 * c-common.h (check_function_arguments): Tweak prototype of
5186 check_function_arguments.
5187 * c-common.c (check_function_arguments): Likewise. Adjust
5188 calls to check_function_nonnull, check_function_format, and
5189 check_function_sentinel.
5190 (check_function_sentinel): Take a FUNCTION_TYPE rather than
5191 separate attributes and typelist arguments. Use
5192 FOREACH_FUNCTION_ARGS to iterate over argument types.
5193
5194 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
5195
5196 * c-common.c (c_common_reswords): Reorder.
5197 * c-common.h (rid): Likewise.
5198
5199 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
5200
5201 * c-common.c (def_fn_type): Don't call build_function_type, call
5202 build_function_type_array or build_varargs_function_type_array
5203 instead.
5204 (c_common_nodes_and_builtins): Likewise.
5205
5206 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
5207
5208 * c-common.c (c_add_case_label): Omit the loc argument to
5209 build_case_label.
5210 * c-common.h (build_case_label): Remove.
5211 * c-semantics.c (build_case_label): Remove.
5212
5213 2011-05-05 Joseph Myers <joseph@codesourcery.com>
5214
5215 * c-objc.h (objc_start_method_definition): Update prototype.
5216 * stub-objc.c (objc_start_method_definition): Add extra parameter.
5217
5218 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
5219
5220 * c-common.c (check_main_parameter_types): Reindent. Don't use
5221 TYPE_ARG_TYPES directly.
5222 (handle_nonnull_attribute): Likewise.
5223 (sync_resolve_params): Likewise.
5224 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
5225 to check_format_string.
5226 (handle_format_attribute): Likewise.
5227 (check_format_string): Take a function type to examine instead of
5228 a type list. Use a function_arg_iterator to step through argument
5229 types.
5230
5231 2011-05-04 Richard Guenther <rguenther@suse.de>
5232
5233 * c-common.c (fix_string_type): Use size_int for index type bounds.
5234 (start_fname_decls): Do not pass NULL to build_int_cst.
5235 (c_init_attributes): Likewise.
5236 * c-lex.c (c_lex_with_flags): Likewise.
5237
5238 2011-04-27 Jason Merrill <jason@redhat.com>
5239
5240 * c-common.c (make_tree_vector_from_list): New.
5241 * c-common.h: Declare it.
5242
5243 2011-04-26 Richard Guenther <rguenther@suse.de>
5244
5245 PR preprocessor/48248
5246 * c-ppoutput.c (maybe_print_line): Always optimize newlines
5247 for output size with -P.
5248
5249 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
5250
5251 * c-common.c (struct c_common_resword): Add __underlying_type.
5252 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
5253
5254 2011-04-20 Jim Meyering <meyering@redhat.com>
5255
5256 * c-format.c (init_dollar_format_checking): Remove useless
5257 if-before-free.
5258
5259 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
5260
5261 * c-objc.h (objc_get_interface_ivars): Removed.
5262 (objc_detect_field_duplicates): New.
5263 * stub-objc.c: Likewise.
5264
5265 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5266
5267 * stub-objc.c (objc_declare_protocols): Renamed to
5268 objc_declare_protocol.
5269 * c-objc.h: Likewise.
5270
5271 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5272
5273 * stub-objc.c (objc_declare_class): Updated argument name.
5274
5275 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
5276
5277 * c-common.h (c_common_init_ts): Declare.
5278 * c-common.c (c_common_init_ts): Define.
5279
5280 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5281
5282 * c-objc.h (objc_build_message_expr): Updated prototype.
5283 * stub-objc.c (objc_build_message_expr): Likewise.
5284
5285 2011-04-12 Martin Jambor <mjambor@suse.cz>
5286
5287 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
5288 of cgraph_node.
5289
5290 2011-04-11 Richard Guenther <rguenther@suse.de>
5291
5292 * c-common.c (complete_array_type): Build a range type of
5293 proper type.
5294
5295 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
5296
5297 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
5298 (handle_type_generic_attribute): Likewise.
5299
5300 2011-04-07 Jason Merrill <jason@redhat.com>
5301
5302 PR c++/48450
5303 * c-common.c (c_common_truthvalue_conversion): Don't ignore
5304 conversion from C++0x scoped enum.
5305
5306 2011-04-06 Joseph Myers <joseph@codesourcery.com>
5307
5308 * c-target-def.h: New file.
5309 * c-target.def: New file.
5310 * c-target.h: New file.
5311 * c-common.c (targetcm): Don't define here.
5312 * c-common.h (default_handle_c_option): Declare.
5313 * c-format.c: Include c-target.h instead of target.h.
5314 * c-opts.c: Include c-target.h instead of target.h. Explicitly
5315 include tm.h.
5316 (default_handle_c_option): Move from targhooks.c.
5317
5318 2011-03-29 Jakub Jelinek <jakub@redhat.com>
5319
5320 PR preprocessor/48248
5321 * c-ppoutput.c (print): Add src_file field.
5322 (init_pp_output): Initialize it.
5323 (maybe_print_line): Don't optimize by adding up to 8 newlines
5324 if map->to_file and print.src_file are different file.
5325 (print_line): Update print.src_file.
5326
5327 2011-03-25 Kai Tietz <ktietz@redhat.com>
5328
5329 * c-ada-spec.c (compare_comment): Use filename_cmp
5330 instead of strcmp for filename.
5331
5332 2011-03-25 Jeff Law <law@redhat.com>
5333
5334 * c-common.c (def_fn_type): Add missing va_end.
5335
5336 2011-03-25 Jason Merrill <jason@redhat.com>
5337
5338 * c.opt: Add -std=c++03.
5339
5340 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
5341
5342 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
5343
5344 2011-03-17 Kai Tietz
5345
5346 PR target/12171
5347 * c-pretty-print.c (pp_c_specifier_qualifier_list):
5348 Display allowed attributes for function pointer types.
5349 (pp_c_attributes_display): New function to display
5350 attributes having affects_type_identity flag set to true.
5351 * c-pretty-print.h (pp_c_attributes_display): New prototype.
5352
5353 * c-common.c (c_common_attribute_table):
5354 Add new element.
5355 (c_common_format_attribute_table): Likewise.
5356
5357 2011-03-18 Jason Merrill <jason@redhat.com>
5358
5359 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
5360 * c-common.h: Don't declare it here.
5361 * c-common.c: Or define it here.
5362 * c-opts.c (c_common_handle_option): Or set it here.
5363
5364 PR c++/35315
5365 * c-common.c (handle_transparent_union_attribute): Don't
5366 make a duplicate type in C++.
5367
5368 2011-03-15 Jason Merrill <jason@redhat.com>
5369
5370 * c-common.c (max_constexpr_depth): New.
5371 * c-common.h: Declare it.
5372 * c-opts.c (c_common_handle_option): Set it.
5373 * c.opt (fconstexpr-depth): New option.
5374
5375 2011-03-11 Jason Merrill <jason@redhat.com>
5376
5377 * c-common.c (attribute_takes_identifier_p): Add missing const.
5378
5379 PR c++/46803
5380 * c-common.c (attribute_takes_identifier_p): Assume that an
5381 unknown attribute takes an identifier.
5382
5383 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
5384
5385 PR c/47786
5386 * c-common.c (c_type_hash): Call list_length instead of iterating
5387 through DECL_CHAIN. Rename 'i' to 'n_elements'.
5388
5389 2011-02-19 Jakub Jelinek <jakub@redhat.com>
5390
5391 PR c/47809
5392 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
5393
5394 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
5395
5396 * c.opt (fobjc-abi-version=) New.
5397 (fobjc-nilcheck): New.
5398
5399 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
5400
5401 PR c++/46890
5402 * c-common.h (keyword_is_decl_specifier): Declare.
5403 * c-common.c (keyword_is_decl_specifier): Define.
5404 (keyword_is_function_specifier): New function.
5405
5406 2011-01-26 Jakub Jelinek <jakub@redhat.com>
5407
5408 PR c/47473
5409 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
5410 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
5411 REAL_TYPE.
5412
5413 2011-01-26 Arnaud Charlet <charlet@adacore.com>
5414
5415 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
5416
5417 2011-01-26 Jakub Jelinek <jakub@redhat.com>
5418
5419 PR pch/47430
5420 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
5421 after init_c_lex if pch_file is set.
5422
5423 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
5424
5425 PR c++/43601
5426 * c.opt (-fkeep-inline-dllexport): New switch.
5427
5428 2011-01-12 Richard Guenther <rguenther@suse.de>
5429
5430 PR middle-end/32511
5431 * c-common.c (handle_weak_attribute): Warn instead of error
5432 on declaring an inline function weak.
5433
5434 2011-01-05 Tom Tromey <tromey@redhat.com>
5435
5436 * c-common.h (lvalue_error): Update.
5437 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
5438 not error.
5439
5440 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
5441
5442 PR objc/47075
5443 * c-objc.h (objc_finish_message_expr): Added argument to
5444 prototype.
5445
5446 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
5447
5448 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
5449 Use prototype_p.
5450
5451 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
5452
5453 * c-objc.h (objc_maybe_warn_exceptions): New.
5454 * stub-objc.c (objc_maybe_warn_exceptions): New.
5455
5456 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
5457
5458 * c-common.h (readonly_error): Declare.
5459 * c-common.c (readonly_error): Define.
5460
5461 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
5462
5463 * c-common.h (invalid_indirection_error): Declare.
5464 * c-common.c (invalid_indirection_error): Define.
5465
5466 2010-12-03 Richard Guenther <rguenther@suse.de>
5467
5468 PR c/46745
5469 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
5470 (pp_c_unary_expression): Likewise.
5471 (pp_c_expression): Likewise.
5472
5473 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
5474
5475 * c-common.h (objc_finish_function): New.
5476 (objc_non_volatilized_type): Removed.
5477 (objc_type_quals_match): Removed.
5478 * stub-objc.c (objc_finish_function): New.
5479 (objc_non_volatilized_type): Removed.
5480 (objc_type_quals_match): Removed.
5481
5482 2010-11-30 Joseph Myers <joseph@codesourcery.com>
5483
5484 * c-common.h (parse_optimize_options): Declare.
5485 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
5486 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
5487
5488 2010-11-29 Joseph Myers <joseph@codesourcery.com>
5489
5490 * c-opts.c (check_deps_environment_vars): Use getenv instead of
5491 GET_ENVIRONMENT.
5492 * c-pch.c (O_BINARY): Don't define here.
5493 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
5494
5495 2010-11-25 Joseph Myers <joseph@codesourcery.com>
5496
5497 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
5498 targetm.except_unwind_info.
5499
5500 2010-11-23 Joseph Myers <joseph@codesourcery.com>
5501
5502 * c-opts.c (c_common_handle_option): Pass location to
5503 set_struct_debug_option.
5504
5505 2010-11-23 Joseph Myers <joseph@codesourcery.com>
5506
5507 * c-common.c (visibility_options): Move from ../opts.c.
5508 * c-common.h (struct visibility_flags, visibility_options):
5509 Declare here.
5510 * c-opts.c (finish_options): Rename to c_finish_options.
5511 (c_common_init): Update call to finish_options.
5512
5513 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
5514
5515 PR objc/34033
5516 * c-lex.c (lex_string): Check that each string in an Objective-C
5517 string concat sequence starts with either one or zero '@', and
5518 that there are no spurious '@' signs at the end.
5519
5520 2010-11-20 Joseph Myers <joseph@codesourcery.com>
5521
5522 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
5523 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
5524 HANDLE_PRAGMA_VISIBILITY.
5525 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
5526 HANDLE_PRAGMA_VISIBILITY): Don't define.
5527 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
5528
5529 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
5530
5531 PR c++/16189
5532 PR c++/36888
5533 PR c++/45331
5534 * c-common.h (keyword_begins_type_specifier): Declare.
5535 (keyword_is_storage_class_specifier): Declare.
5536 (keyword_is_type_qualifier): Declare.
5537 * c-common.c (keyword_begins_type_specifier): New function.
5538 (keyword_is_storage_class_specifier): New function.
5539 (keyword_is_type_qualifier): Declare.
5540
5541 2010-11-19 Joseph Myers <joseph@codesourcery.com>
5542
5543 PR c/46547
5544 * c-common.c (in_late_binary_op): Define.
5545 (c_common_truthvalue_conversion): Check in_late_binary_op before
5546 calling c_save_expr.
5547 * c-common.h (in_late_binary_op): Declare.
5548
5549 2010-11-19 Joseph Myers <joseph@codesourcery.com>
5550
5551 * c-opts.c (c_common_handle_option): Update calls to
5552 set_struct_debug_option.
5553
5554 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
5555
5556 * c-common.h (objc_declare_protocols): Added additional argument.
5557 * stub-objc.c (objc_declare_protocol): Same change.
5558
5559 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
5560
5561 PR c/33193
5562 * c-common.h (build_real_imag_expr): Declare.
5563 * c-semantics.c (build_real_imag_expr): Define.
5564
5565 2010-11-17 Joseph Myers <joseph@codesourcery.com>
5566
5567 * c-opts.c (c_common_parse_file): Take no arguments.
5568 * c-common.h (c_common_parse_file): Update prototype.
5569
5570 2010-11-16 Jakub Jelinek <jakub@redhat.com>
5571
5572 PR c++/46401
5573 * c-common.c (warning_candidate_p): Don't track non-const calls
5574 or STRING_CSTs.
5575
5576 2010-11-15 Ian Lance Taylor <iant@google.com>
5577
5578 * c-lex.c (init_c_lex): Set macro debug callbacks if
5579 flag_dump_go_spec is set.
5580
5581 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
5582
5583 * c-common.h (objc_build_incr_expr_for_property_ref): New.
5584 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
5585
5586 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
5587
5588 PR preprocessor/45038
5589 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
5590 dialects.
5591
5592 2010-11-12 Joseph Myers <joseph@codesourcery.com>
5593
5594 * c-common.h (c_family_lang_mask): Declare.
5595 * c-opts.c (c_family_lang_mask): Make extern.
5596 * c-pragma.c (handle_pragma_diagnostic): Use
5597 control_warning_option.
5598
5599 2010-11-12 Joseph Myers <joseph@codesourcery.com>
5600
5601 * c-common.c (parse_optimize_options): Update call to
5602 decode_options.
5603 * c-common.h (c_common_handle_option): Update prototype.
5604 * c-opts.c (c_common_handle_option): Take location_t parameter and
5605 pass it to other functions.
5606
5607 2010-11-11 Joseph Myers <joseph@codesourcery.com>
5608
5609 * c-opts.c (warning_as_error_callback): Remove.
5610 (c_common_initialize_diagnostics): Don't call
5611 register_warning_as_error_callback.
5612 (c_common_handle_option): Handle -Werror=normalized= here.
5613
5614 2010-11-10 Joseph Myers <joseph@codesourcery.com>
5615
5616 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
5617 in diagnostic.
5618 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
5619 letter.
5620 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
5621 Remove trailing '.' from diagnostics.
5622 * c.opt (Wwrite-strings_: Avoid '`' in help text.
5623
5624 2010-11-10 Joseph Myers <joseph@codesourcery.com>
5625
5626 * c-common.c (parse_optimize_options): Pass global_dc to
5627 decode_options.
5628 * c-opts.c (c_common_handle_option): Pass &global_options to
5629 set_Wstrict_aliasing.
5630 * c.opt (v): Don't mark Common or document here.
5631
5632 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
5633
5634 PR target/44981
5635 * c-format.c (format_type): New type gcc_objc_string_format_type.
5636 (valid_stringptr_type_p): New.
5637 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
5638 (check_format_string): Pass expected type, use
5639 valid_stringptr_type_p (), check that the format string types are
5640 consistent with the format specification.
5641 (decode_format_attr): Warn if NSString is used outside objective-c.
5642 (format_types_orig): Add NSString.
5643 (format_name): New.
5644 (format_flags): New.
5645 (check_format_arg): Handle format strings requiring an external parser.
5646 first_target_format_type: New variable.
5647 (handle_format_attribute): Set up first_target_format_type, pass the
5648 expected format arg string type to check_format_string().
5649 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
5650 * stub-objc.c (objc_string_ref_type_p): New.
5651 (objc_check_format_arg): New.
5652
5653 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
5654
5655 Fixed using the Objective-C 2.0 dot-syntax with class names.
5656 * c-common.h (objc_build_class_component_ref): New.
5657 * stub-objc.c (objc_build_class_component_ref): New.
5658
5659 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
5660
5661 * c.opt (Wproperty-assign-default): New option.
5662
5663 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
5664
5665 Implemented -fobjc-std=objc1 flag.
5666 * c.opt (fobjc-std=objc1): New option.
5667
5668 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
5669
5670 Implemented format and noreturn attributes for Objective-C methods.
5671 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
5672 attribute for Objective-C methods.
5673
5674 2010-10-31 Jason Merrill <jason@redhat.com>
5675
5676 * c-common.c (conversion_warning, warn_for_collisions_1): Use
5677 EXPR_LOC_OR_HERE.
5678
5679 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
5680
5681 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
5682 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
5683 (objc_add_property_declaration): Removed arguments for copies and
5684 ivar.
5685 (objc_build_getter_call): Renamed to
5686 objc_maybe_build_component_ref.
5687 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
5688 (objc_is_property_ref): New.
5689 * c-common.c (c_common_reswords): Removed copies and ivar.
5690 * stub-objc.c (objc_add_property_declaration): Removed arguments
5691 for copies and ivar.
5692 (objc_build_getter_call): Renamed to
5693 objc_maybe_build_component_ref.
5694 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
5695 (objc_is_property_ref): New.
5696
5697 2010-10-29 Arnaud Charlet <charlet@adacore.com>
5698 Matthew Gingell <gingell@adacore.com>
5699
5700 * c-ada-spec.c (separate_class_package): New function.
5701 (pp_ada_tree_identifier): Prefix references to C++ classes with the
5702 name of their enclosing package.
5703 (print_ada_declaration): Use separate_class_package.
5704
5705 2010-10-27 Jason Merrill <jason@redhat.com>
5706
5707 * c-common.c (c_common_reswords): Add __is_literal_type.
5708 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
5709
5710 * c-common.c (check_case_value): Remove special C++ code.
5711
5712 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
5713
5714 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
5715 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
5716 and RID_LAST_PATTR.
5717 (objc_add_property_declaration): Added additional arguments.
5718 (objc_property_attribute_kind): Removed.
5719 (objc_set_property_attr): Removed.
5720 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
5721 copy and nonatomic.
5722 * stub-objc.c (objc_add_property_declaration): Added additional
5723 arguments.
5724 (objc_set_property_attr): Removed.
5725
5726 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
5727
5728 * c-common.h (objc_add_property_variable): Renamed to
5729 objc_add_property_declaration. Added location argument.
5730 * stub-objc.c (objc_add_property_variable): Same change.
5731
5732 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
5733
5734 * c-common.h (objc_maybe_printable_name): New.
5735 * stub-objc.c (objc_maybe_printable_name): New.
5736
5737 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
5738 Andrew Pinski <pinskia@gmail.com>
5739
5740 * c-common.h (c_common_mark_addressable_vec): Declare.
5741 * c-common.c (c_common_mark_addressable_vec): New function.
5742
5743 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
5744
5745 * c-common.h (objc_set_method_type): Removed.
5746 (objc_add_method_declaration): Added boolean argument.
5747 (objc_start_method_definition): Same change.
5748 (objc_build_method_signature): Same change.
5749 * stub-objc.c (objc_set_method_type): Removed.
5750 (objc_add_method_declaration): Added boolean argument.
5751 (objc_start_method_definition): Same change.
5752 (objc_build_method_signature): Same change.
5753
5754 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
5755
5756 * c-common.h (finish_file): Removed.
5757 (objc_write_global_declarations): New.
5758 * c-opts.c (c_common_parse_file): Do not call finish_file.
5759 * stub-objc.c (objc_write_global_declarations): New.
5760
5761 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
5762
5763 Implemented parsing @synthesize and @dynamic for
5764 Objective-C/Objective-C++.
5765 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
5766 (objc_add_synthesize_declaration): New.
5767 (objc_add_dynamic_declaration): New.
5768 * c-common.c (c_common_reswords): Add synthesize and dynamic.
5769 * stub-objc.c (objc_add_synthesize_declaration): New.
5770 (objc_add_dynamic_declaration): New.
5771
5772 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
5773
5774 PR target/46041
5775 * c-cppbuiltin.c (mode_has_fma): Move function here from
5776 builtins.c. Don't use the fma optab, instead just use the
5777 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
5778 using -save-temps.
5779
5780 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
5781
5782 Merge from 'apple/trunk' branch on FSF servers.
5783
5784 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
5785
5786 Radar 4330422
5787 * c-common.h (objc_non_volatilized_type): New declaration
5788 * stub-objc.c (objc_non_volatilized_type): New stub.
5789
5790 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
5791
5792 Merge from 'apple/trunk' branch on FSF servers.
5793
5794 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
5795
5796 Radar 4133425
5797 * c-common.h (objc_diagnose_private_ivar): New decl.
5798 * stub-objc.c (objc_diagnose_private_ivar): New stub.
5799
5800 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
5801
5802 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
5803 * c-common.h (enum rid): Add RID_AT_PACKAGE.
5804 (objc_ivar_visibility_kind): New enum.
5805 (objc_set_visibility): Adjust prototype to use visibility enum.
5806 * stub-objc.c (objc_set_visibility): Adjust stub to use
5807 visibility enum.
5808
5809 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5810
5811 * c-cppbuiltin.c (builtin_define_float_constants): Emit
5812 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
5813 has the appropriate fma builtins.
5814 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
5815
5816 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
5817
5818 merge from FSF apple 'trunk' branch.
5819 2006 Fariborz Jahanian <fjahanian@apple.com>
5820
5821 Radars 4436866, 4505126, 4506903, 4517826
5822 * c-common.c (c_common_resword): Define @property and its attributes.
5823 * c-common.h: Define property attribute enum entries.
5824 (OBJC_IS_PATTR_KEYWORD): New.
5825 (objc_property_attribute_kind): New enum.
5826 Declare objc_set_property_attr (), objc_add_property_variable (),
5827 objc_build_getter_call () and objc_build_setter_call ().
5828 * stub-objc.c (objc_set_property_attr): New stub.
5829 (objc_add_property_variable): Likewise.
5830 (objc_build_getter_call): Likewise.
5831 (objc_build_setter_call) Likewise.
5832
5833 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
5834
5835 merge from FSF apple 'trunk' branch.
5836 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
5837
5838 Radar 3803157 (method attributes)
5839 * c-common.c (handle_deprecated_attribute): Recognize
5840 objc methods as valid declarations.
5841 * c-common.h: Declare objc_method_decl ().
5842 * stub-objc.c (objc_method_decl): New stub.
5843
5844 2010-10-08 Joseph Myers <joseph@codesourcery.com>
5845
5846 * c-common.c (parse_optimize_options): Call
5847 decode_cmdline_options_to_array_default_mask before
5848 decode_options. Update arguments to decode_options.
5849 * c-common.h (c_common_init_options_struct): Declare.
5850 * c-opts.c (c_common_init_options_struct): New. Split out from
5851 c_common_init_options.
5852
5853 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
5854
5855 Implemented fast enumeration for Objective-C.
5856 * c-common.h (objc_finish_foreach_loop): New.
5857 * stub-objc.c (objc_finish_foreach_loop): New.
5858
5859 2010-10-05 Joseph Myers <joseph@codesourcery.com>
5860
5861 * c-common.h (struct diagnostic_context): Don't declare here.
5862 (c_common_initialize_diagnostics): Declare using
5863 diagnostic_context typedef.
5864 * c-opts.c (c_common_handle_option): Pass global_dc to
5865 handle_generated_option.
5866
5867 2010-10-04 Joseph Myers <joseph@codesourcery.com>
5868
5869 * c-opts.c (c_common_handle_option): Pass &global_options_set to
5870 handle_generated_option.
5871
5872 2010-10-03 Ian Lance Taylor <iant@google.com>
5873
5874 * c.opt (-fplan9-extensions): New option.
5875
5876 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5877
5878 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
5879 Remove.
5880 (c_cpp_builtins): Call functions from cppbuiltin.c instead
5881 of duplicating code.
5882
5883 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
5884
5885 * c-common.c: Add two new entries for @optional
5886 and @required keywords.
5887
5888 merge from FSF 'apple/trunk' branch.
5889 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
5890
5891 Radar 4386773
5892 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
5893 objective-c keywords.
5894 (objc_set_method_opt): New declaration.
5895 * stub-objc.c (objc_set_method_opt): New stub.
5896
5897 2010-09-30 Joseph Myers <joseph@codesourcery.com>
5898
5899 * c-common.c (handle_optimize_attribute): Pass &global_options to
5900 cl_optimization_save and cl_optimization_restore.
5901 * c-opts.c (c_common_handle_option): Pass &global_options to
5902 handle_generated_option.
5903 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
5904 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
5905 &global_options to cl_optimization_restore.
5906
5907 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
5908
5909 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
5910 Objective-C/Objective-C++ keywords.
5911
5912 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
5913
5914 Merge from 'apple/trunk' branch on FSF servers.
5915
5916 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
5917
5918 Radar 4281748
5919 * c-common.h (objc_check_global_decl): New declaration.
5920 * stub-objc.c (objc_check_global_decl): New stub.
5921
5922 2010-09-29 Joseph Myers <joseph@codesourcery.com>
5923
5924 * c.opt: Don't use VarExists.
5925
5926 2010-09-29 Joseph Myers <joseph@codesourcery.com>
5927
5928 * c-common.c (c_cpp_error): Update names of diagnostic_context
5929 members.
5930 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
5931 cl_optimization members.
5932 * c-opts.c (warning_as_error_callback, c_common_handle_option,
5933 sanitize_cpp_opts, finish_options): Update names of cpp_options
5934 members.
5935
5936 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
5937
5938 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
5939 (objc_is_reserved_word): Removed.
5940 * c-common.c: Updated comments.
5941 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
5942 objc_is_reserved_word.
5943 * stub-objc.c (objc_is_reserved_word): Removed.
5944
5945 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5946
5947 * c-common.h (objc_add_method_declaration): Adjust prototype to
5948 include attributes.
5949 (objc_start_method_definition): Likewise.
5950 (objc_build_keyword_decl): Likewise.
5951 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
5952 (objc_start_method_definition): Likewise.
5953 (objc_build_keyword_decl): Likewise.
5954
5955 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5956
5957 * c-common.h (objc_start_class_interface): Adjust prototype.
5958 (objc_start_category_interface): Likewise.
5959 (objc_start_protocol): Likewise.
5960 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
5961 (objc_start_class_interface): Likewise.
5962 (objc_start_category_interface): Likewise.
5963
5964 2010-09-27 Ian Lance Taylor <iant@google.com>
5965
5966 * c-common.c (c_common_attribute_table): Add no_split_stack.
5967 (handle_no_split_stack_attribute): New static function.
5968
5969 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
5970
5971 Merge from 'apple/trunk' branch on FSF servers.
5972
5973 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
5974
5975 Radar 4229905
5976 * c-common.h (objc_have_common_type): New declaration.
5977 * stub-objc.c (objc_have_common_type): New stub.
5978
5979 2005-06-22 Ziemowit Laski <zlaski@apple.com>
5980
5981 Radar 4154928
5982 * c-common.h (objc_common_type): New prototype.
5983 * stub-objc.c (objc_common_type): New stub.
5984
5985 2010-09-24 Jan Hubicka <jh@suse.cz>
5986
5987 * c-common.c (handle_leaf_attribute): New function.
5988 (struct attribute_spec c_common_att): Add leaf.
5989
5990 2010-09-22 Joseph Myers <joseph@codesourcery.com>
5991
5992 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
5993 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
5994 -dump, -dump=, -imacros, -imacros=, -include, -include=,
5995 -include-barrier, -include-directory, -include-directory=,
5996 -include-directory-after, -include-directory-after=,
5997 -include-prefix, -include-prefix=, -include-with-prefix,
5998 -include-with-prefix=, -include-with-prefix-after,
5999 -include-with-prefix-after=, -include-with-prefix-before,
6000 -include-with-prefix-before=, -no-integrated-cpp,
6001 -no-line-commands, -no-standard-includes, -no-warnings, -output,
6002 -output=, -pedantic, -pedantic-errors, -preprocess,
6003 -print-missing-file-dependencies, -trace-includes, -traditional,
6004 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
6005 -user-dependencies, -verbose, -write-dependencies,
6006 -write-user-dependencies, no-integrated-cpp, traditional): New.
6007
6008 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
6009
6010 PR objc/23710
6011 * c-common.h (objc_start_method_definition): Return bool instead
6012 of void.
6013 * stub-objc.c (objc_start_method_definition): Return bool instead
6014 of void.
6015
6016 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
6017
6018 PR objc/25965
6019 * c-common.h (objc_get_interface_ivars): New declaration.
6020 * stub-objc.c (objc_get_interface_ivars): New stub.
6021
6022 2010-09-15 Ian Lance Taylor <iant@google.com>
6023
6024 * c-common.c (parse_optimize_options): Do not capitalize warning
6025 messages. Remove period at end of warning message.
6026
6027 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
6028
6029 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
6030 (handle_alias_attribute): ... here.
6031 (handle_ifunc_attribute): New.
6032
6033 2010-09-06 Mark Mitchell <mark@codesourcery.com>
6034
6035 * c-common.h (do_warn_double_promotion): Declare.
6036 * c-common.c (do_warn_double_promotion): Define.
6037
6038 2010-09-05 Mark Mitchell <mark@codesourcery.com>
6039
6040 * c.opt (Wdouble-promotion): New.
6041
6042 2010-09-02 Joseph Myers <joseph@codesourcery.com>
6043
6044 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
6045 fvtable-thunks, fxref): Mark no longer supported in help text.
6046
6047 2010-09-02 Joseph Myers <joseph@codesourcery.com>
6048
6049 * c.opt (Wimport, fall-virtual, falt-external-templates,
6050 fdefault-inline, fenum-int-equiv, fexternal-templates,
6051 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
6052 fname-mangling-version-, fnew-abi, fnonnull-objects,
6053 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
6054 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
6055 applicable.
6056 (fhandle-exceptions): Mark with Alias and Warn.
6057 * c-opts.c (c_common_handle_option): Don't handle options marked
6058 as ignored.
6059
6060 2010-09-02 Joseph Myers <joseph@codesourcery.com>
6061
6062 * c.opt (Wcomments, Werror-implicit-function-declaration,
6063 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
6064 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
6065 aliases.
6066 * c-common.c (option_codes): Use OPT_Wcomment instead of
6067 OPT_Wcomments.
6068 * c-opts.c (warning_as_error_callback, c_common_handle_option):
6069 Don't handle options marked as aliases.
6070
6071 2010-08-25 Richard Guenther <rguenther@suse.de>
6072
6073 * c-common.c (c_common_get_alias_set): Remove special
6074 handling for pointers.
6075
6076 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
6077
6078 * c-common.c: Use FOR_EACH_VEC_ELT.
6079 * c-gimplify.c: Likewise.
6080 * c-pragma.c: Likewise.
6081
6082 2010-08-16 Joseph Myers <joseph@codesourcery.com>
6083
6084 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
6085 RejectDriver.
6086 (MMDX): Change back to MMD. Mark NoDriverArg instead of
6087 RejectDriver.
6088 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
6089 instead of OPT_MDX and OPT_MMDX.
6090
6091 2010-08-16 Joseph Myers <joseph@codesourcery.com>
6092
6093 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
6094
6095 2010-08-12 Joseph Myers <joseph@codesourcery.com>
6096
6097 * c.opt (MD, MMD): Change to MDX and MMDX.
6098 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
6099
6100 2010-08-11 Joseph Myers <joseph@codesourcery.com>
6101
6102 * c-opts.c (c_common_handle_option): Call handle_generated_option
6103 instead of handle_option.
6104
6105 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
6106
6107 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
6108 (maybe_apply_renaming_pragma): Delete unneeded declarations.
6109
6110 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
6111
6112 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
6113 (pending_redefine_extname): Change type to a VEC.
6114 (add_to_renaming_pragma_list): Update for new type of
6115 pending_redefine_extname.
6116 (maybe_apply_renaming_pragma): Likewise.
6117
6118 2010-08-04 Arnaud Charlet <charlet@adacore.com>
6119
6120 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
6121 visited.
6122 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
6123 decide whether a type has already been declared/seen.
6124 Do not go to the original type.
6125 (dump_nested_types): New parameter forward.
6126 Generate forward declaration if needed and mark type as visited.
6127 (print_ada_declaration): Call dump_nested_types if not already done.
6128 Mark types as visited.
6129
6130 2010-08-03 Joseph Myers <joseph@codesourcery.com>
6131
6132 * c.opt (-print-pch-checksum): Remove option.
6133 * c-opts.c (c_common_handle_option): Don't handle
6134 OPT_print_pch_checksum.
6135
6136 2010-07-27 Joseph Myers <joseph@codesourcery.com>
6137
6138 * c-common.h (c_common_handle_option): Update prototype and return
6139 value type.
6140 * c-opts.c (c_common_handle_option): Update prototype and return
6141 value type. Update calls to handle_option and
6142 enable_warning_as_error.
6143
6144 2010-07-27 Jakub Jelinek <jakub@redhat.com>
6145
6146 PR c/45079
6147 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
6148
6149 2010-07-27 Joseph Myers <joseph@codesourcery.com>
6150
6151 * c-common.h (c_common_missing_argument): Remove.
6152 * c-opts.c (c_common_missing_argument): Remove.
6153 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
6154 idirafter, imacros, include, isysroot, isystem, iquote): Add
6155 MissingArgError.
6156 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
6157
6158 2010-07-27 Joseph Myers <joseph@codesourcery.com>
6159
6160 * c-common.h (c_common_option_lang_mask,
6161 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
6162 New.
6163 (c_common_init_options): Update prototype.
6164 * c-opts.c (c_common_option_lang_mask): New.
6165 (c_common_initialize_diagnostics): Split out of
6166 c_common_init_options.
6167 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
6168 New.
6169 (c_common_init_options): Update prototype. Use decoded options in
6170 search for -lang-asm.
6171
6172 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
6173
6174 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
6175 * c-format.c: Likewise.
6176
6177 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
6178
6179 * c-common.h: Include diagnostic-core.h. Error if already
6180 included.
6181 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
6182
6183 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
6184
6185 * c-common.c (IN_GCC_FRONTEND): Do not undef.
6186 Do not include expr.h
6187 (vector_mode_valid_p): Move here.
6188
6189 2010-06-21 DJ Delorie <dj@redhat.com>
6190
6191 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
6192 allow these pragmas anywhere.
6193
6194 2010-06-14 Jakub Jelinek <jakub@redhat.com>
6195
6196 PR bootstrap/44509
6197 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
6198 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
6199 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
6200 ggc_strdup instead of xstrdup.
6201
6202 2010-06-10 Jakub Jelinek <jakub@redhat.com>
6203
6204 * c-cppbuiltin.c: Include cpp-id-data.h.
6205 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
6206 (lazy_hex_fp_value): New function.
6207 (builtin_define_with_hex_fp_value): Provide definitions lazily.
6208
6209 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
6210
6211 * c-gimplify.c: Do not include tree-flow.h
6212
6213 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
6214
6215 PR other/44034
6216 * c-common.c: Rename targetm member:
6217 targetm.enum_va_list -> targetm.enum_va_list_p
6218
6219 2010-06-28 Anatoly Sokolov <aesok@post.ru>
6220
6221 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
6222
6223 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
6224
6225 * c-cppbuiltin.c: Do not include except.h.
6226
6227 2010-06-24 Andi Kleen <ak@linux.intel.com>
6228
6229 * c-common.c (warn_for_omitted_condop): New.
6230 * c-common.h (warn_for_omitted_condop): Add prototype.
6231
6232 2010-06-21 Joseph Myers <joseph@codesourcery.com>
6233
6234 * c.opt (lang-objc): Remove.
6235 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
6236
6237 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
6238
6239 * c-opts.c: Include "tm_p.h".
6240
6241 2010-06-20 Joseph Myers <joseph@codesourcery.com>
6242
6243 * c-common.c (parse_optimize_options): Update call to
6244 decode_options.
6245
6246 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
6247
6248 * c-common.c (record_types_used_by_current_var_decl): Adjust for
6249 new type of types_used_by_cur_var_decl.
6250
6251 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
6252
6253 PR bootstrap/44512
6254 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
6255 for C++ standard compliance.
6256
6257 2010-06-16 Jason Merrill <jason@redhat.com>
6258
6259 * c.opt: Add -Wnoexcept.
6260
6261 2010-06-16 Richard Guenther <rguenther@suse.de>
6262
6263 PR c/44555
6264 * c-common.c (c_common_truthvalue_conversion): Remove
6265 premature and wrong optimization concering ADDR_EXPRs.
6266
6267 2010-06-15 Arnaud Charlet <charlet@adacore.com>
6268
6269 * c-ada-spec.c (dump_sloc): Remove column info.
6270 (is_simple_enum): New function.
6271 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
6272 enum types when relevant.
6273
6274 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
6275
6276 * c-common.c (conversion_warning): Warn at expression
6277 location.
6278
6279 2010-06-10 Joseph Myers <joseph@codesourcery.com>
6280
6281 * c-opts.c (c_common_handle_option): Don't handle
6282 OPT_fshow_column.
6283
6284 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
6285
6286 * c-pragma.c (push_alignment): Use typed GC allocation.
6287 (handle_pragma_push_options): Likewise.
6288
6289 * c-common.c (parse_optimize_options): Likewise.
6290
6291 * c-common.h (struct sorted_fields_type): Add variable_size GTY
6292 option.
6293
6294 2010-06-07 Joseph Myers <joseph@codesourcery.com>
6295
6296 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
6297 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
6298 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
6299 flag_signed_bitfields, warn_strict_null_sentinel,
6300 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
6301 flag_gen_declaration, flag_no_gnu_keywords,
6302 flag_implement_inlines, flag_implicit_templates,
6303 flag_implicit_inline_templates, flag_optional_diags,
6304 flag_elide_constructors, flag_default_inline, flag_rtti,
6305 flag_conserve_space, flag_access_control, flag_check_new,
6306 flag_new_for_scope, flag_weak, flag_working_directory,
6307 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
6308 flag_enforce_eh_specs, flag_threadsafe_statics,
6309 flag_pretty_templates): Remove.
6310 * c-common.h (flag_preprocess_only, flag_nil_receivers,
6311 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
6312 flag_replace_objc_classes, flag_undef, flag_no_builtin,
6313 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
6314 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
6315 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
6316 flag_no_gnu_keywords, flag_implement_inlines,
6317 flag_implicit_templates, flag_implicit_inline_templates,
6318 flag_optional_diags, flag_elide_constructors, flag_default_inline,
6319 flag_rtti, flag_conserve_space, flag_access_control,
6320 flag_check_new, flag_new_for_scope, flag_weak,
6321 flag_working_directory, flag_use_cxa_atexit,
6322 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
6323 flag_threadsafe_statics, flag_pretty_templates,
6324 warn_strict_null_sentinel): Remove.
6325 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
6326 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
6327 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
6328 fimplicit-inline-templates, fimplicit-templates,
6329 flax-vector-conversions, fms-extensions, fnil-receivers,
6330 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
6331 frtti, fshort-double, fshort-enums, fshort-wchar,
6332 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
6333 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
6334 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
6335 gen-decls, undef): Use Var.
6336 (fdefault-inline, foptional-diags): Document as doing nothing.
6337 * c-opts.c (c_common_handle_option): Remove cases for options now
6338 using Var. Mark ignored options as such.
6339
6340 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
6341
6342 * c-common.c: Moved to here from parent directory.
6343 * c-common.def: Likewise.
6344 * c-common.h: Likewise.
6345 * c-cppbuiltin.c: Likewise.
6346 * c-dump.c: Likewise.
6347 * c-format.c: Likewise.
6348 * c-format.h : Likewise.
6349 * c-gimplify.c: Likewise.
6350 * c-lex.c: Likewise.
6351 * c-omp.c: Likewise.
6352 * c.opt: Likewise.
6353 * c-opts.c: Likewise.
6354 * c-pch.c: Likewise.
6355 * c-ppoutput.c: Likewise.
6356 * c-pragma.c: Likewise.
6357 * c-pragma.h: Likewise.
6358 * c-pretty-print.c: Likewise.
6359 * c-pretty-print.h: Likewise.
6360 * c-semantics.c: Likewise.
6361 * stub-objc.c: Likewise.
6362
6363 * c-common.c: Include gt-c-family-c-common.h.
6364 * c-pragma.c: Include gt-c-family-c-pragma.h.
6365 \f
6366 Copyright (C) 2010-2016 Free Software Foundation, Inc.
6367
6368 Copying and distribution of this file, with or without modification,
6369 are permitted in any medium without royalty provided the copyright
6370 notice and this notice are preserved.