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