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