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