]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
Daily bump.
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
ed2b2eb2 12015-07-10 Eric Botcazou <ebotcazou@adacore.com>
2
3 * c-ada-spec.h (cpp_operation): Revert latest change.
4 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
5 constructors and destructors.
6
1eacc14a 72015-07-09 Andrew MacLeod <amacleod@redhat.com>
8
9 * c-common.h: Adjust includes for flags.h changes.
10 * stub-objc.c: Likewise.
11
0124237f 122015-07-08 Eric Botcazou <ebotcazou@adacore.com>
13
14 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
15 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
16
386ef929 172015-07-08 Jakub Jelinek <jakub@redhat.com>
18
19 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
20 are to be removed, return NULL rather than original clauses list.
21
9ef16211 222015-07-07 Andrew MacLeod <amacleod@redhat.com>
23
24 * array-notation-common.c: Adjust includes.
25 * c-ada-spec.c: Likewise.
26 * c-cilkplus.c: Likewise.
27 * c-common.h: Likewise.
28 * c-cppbuiltin.c: Likewise.
29 * c-dump.c: Likewise.
30 * c-format.c: Likewise.
31 * c-gimplify.c: Likewise.
32 * c-indentation.c: Likewise.
33 * c-lex.c: Likewise.
34 * c-omp.c: Likewise.
35 * c-opts.c: Likewise.
36 * c-pch.c: Likewise.
37 * c-ppoutput.c: Likewise.
38 * c-pragma.c: Likewise.
39 * c-pretty-print.c: Likewise.
40 * c-semantics.c: Likewise.
41 * c-ubsan.c: Likewise.
42 * cilk.c: Likewise.
43 * stub-objc.c: Likewise.
44
67ede3e4 452015-07-07 Eric Botcazou <ebotcazou@adacore.com>
46
47 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
48 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
49
42af8c2a 502015-07-01 Jason Merrill <jason@redhat.com>
51
fa769cc5 52 * c-common.h (D_CXX11): Rename from D_CXX0X.
53 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
54 * c-common.c: Adjust.
55
97e9c847 56 * c-opts.c (c_common_post_options): Default to C++14.
57
42af8c2a 58 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
59
30b1ba42 602015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
61
62 Implement N4197 - Adding u8 character literals
95858835 63 * c-family/c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
64 CPP_CHAR.
65 * c-family/c-common.c (c_parse_error): Print CPP_UTF8CHAR and
66 CPP_UTF8CHAR_USERDEF tokens.
67 * c-family/c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
68 and CPP_UTF8CHAR tokens.
69 (lex_charconst): Treat CPP_UTF8CHAR token.
30b1ba42 70
0949f227 712015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
72
73 PR fortran/66605
74 * c-common.c (do_warn_unused_parameter): Move here.
75 * c-common.h (do_warn_unused_parameter): Declare.
76
be23b16f 772015-06-29 Marek Polacek <polacek@redhat.com>
78
79 PR c/66322
80 * c-common.c (check_case_bounds): Add bool * parameter. Set
81 OUTSIDE_RANGE_P.
82 (c_add_case_label): Add bool * parameter. Pass it down to
83 check_case_bounds.
84 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
85 warning here.
86 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
87 declarations.
88
6290f0db 892015-06-27 Marek Polacek <polacek@redhat.com>
90
91 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
92 or VECTOR_INTEGER_TYPE_P throughout.
93 * c-gimplify.c: Likewise.
94
aa3e402e 952015-06-26 Marek Polacek <polacek@redhat.com>
96
97 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
98 * c-common.c (c_fully_fold_internal): Likewise.
99 (c_alignof_expr): Likewise.
100 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
101 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
102 * cilk.c (create_parm_list): Likewise.
103
4e81b384 1042015-06-26 Marek Polacek <polacek@redhat.com>
105
106 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
107
ec2e0095 1082015-06-25 Andrew MacLeod <amacleod@redhat.com>
109
110 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
111 * c-gimplify.c: Likewise.
112 * c-pragma.c: Likewise.
113 * c-ubsan.c: Likewise.
114 * cilk.c: Likewise.
115
b594087e 1162015-06-25 Richard Sandiford <richard.sandiford@arm.com>
117
118 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
119 ggc_hasher.
120
a3c76fda 1212015-06-25 Andrew MacLeod <amacleod@redhat.com>
122
123 * cilk.c: Move calls.h after tm.h in the include chain.
124
f48c7f4a 1252015-06-25 Marek Polacek <polacek@redhat.com>
126
127 * array-notation-common.c: Use VAR_P throughout.
128 * c-ada-spec.c: Likewise.
129 * c-common.c: Likewise.
130 * c-format.c: Likewise.
131 * c-gimplify.c: Likewise.
132 * c-omp.c: Likewise.
133 * c-pragma.c: Likewise.
134 * c-pretty-print.c: Likewise.
135 * cilk.c: Likewise.
136
ce41e81a 1372015-06-25 Marek Polacek <polacek@redhat.com>
138
139 * cilk.c (extract_free_variables): Use is_global_var.
140
de231ec2 1412015-06-23 Richard Sandiford <richard.sandiford@arm.com>
142
143 * c-common.c: Don't include target-def.h.
144
0200602e 1452015-06-23 Marek Polacek <polacek@redhat.com>
146
147 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
148 when comparing INTEGER_CSTs.
149
99838ed7 1502015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
151
152 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
153 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
154 (dump_ada_template): Skip partially specialized types.
155
a4f59596 1562015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
157
158 * c-common.c (scalar_to_vector): Use std::swap instead of manually
159 swapping.
160
f2ab3bac 1612015-06-17 Andrew MacLeod <amacleod@redhat.com>
162
163 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
164 * c-ada-spec.c: Likewise.
165 * c-cilkplus.c: Likewise.
166 * c-common.c: Likewise.
167 * c-common.h: Likewise.
168 * c-cppbuiltin.c: Likewise.
169 * c-dump.c: Likewise.
170 * c-format.c: Likewise.
171 * c-gimplify.c: Likewise.
172 * c-indentation.c: Likewise.
173 * c-lex.c: Likewise.
174 * c-omp.c: Likewise.
175 * c-opts.c: Likewise.
176 * c-pch.c: Likewise.
177 * c-ppoutput.c: Likewise.
178 * c-pragma.c: Likewise.
179 * c-pretty-print.c: Likewise.
180 * c-semantics.c: Likewise.
181 * c-ubsan.c: Likewise.
182 * cilk.c: Likewise.
183 * stub-objc.c: Likewise.
184
db3d1ffc 1852015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
186
187 PR c++/65168
188 * c-common.c (c_common_truthvalue_conversion): Warn when
189 converting an address of a reference to a truth value.
190
64486212 1912015-06-08 Andrew MacLeod <amacleod@redhat.com>
192
193 * array-notation-common.c : Adjust include files.
194 * c-ada-spec.c : Likewise.
195 * c-cilkplus.c : Likewise.
196 * c-common.c : Likewise.
197 * c-common.h : Likewise.
198 * c-cppbuiltin.c : Likewise.
199 * c-dump.c : Likewise.
200 * c-format.c : Likewise.
201 * c-gimplify.c : Likewise.
202 * c-indentation.c : Likewise.
203 * c-lex.c : Likewise.
204 * c-omp.c : Likewise.
205 * c-opts.c : Likewise.
206 * c-pch.c : Likewise.
207 * c-ppoutput.c : Likewise.
208 * c-pragma.c : Likewise.
209 * c-pretty-print.c : Likewise.
210 * c-semantics.c : Likewise.
211 * c-ubsan.c : Likewise.
212 * cilk.c : Likewise.
213 * stub-objc.c : Likewise.
214
6e84ccad 2152015-06-08 Marek Polacek <polacek@redhat.com>
216
217 PR c/66415
218 * c-format.c (location_from_offset): Return LOC if LINE is null.
219
3a1c9df2 2202015-06-05 Aldy Hernandez <aldyh@redhat.com>
221
222 * c-common.h (c_parse_final_cleanups): New prototype.
223 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
224
f77c0292 2252015-06-04 Andrew MacLeod <amacleod@redhat.com>
226
227 * array-notation-common.c: Adjust includes for restructured coretypes.h.
228 * c-ada-spec.c: Likewise.
229 * c-cilkplus.c: Likewise.
230 * c-common.c: Likewise.
231 * c-common.h: Likewise.
232 * c-cppbuiltin.c: Likewise.
233 * c-dump.c: Likewise.
234 * c-format.c: Likewise.
235 * c-gimplify.c: Likewise.
236 * c-indentation.c: Likewise.
237 * c-lex.c: Likewise.
238 * c-omp.c: Likewise.
239 * c-opts.c: Likewise.
240 * c-pch.c: Likewise.
241 * c-ppoutput.c: Likewise.
242 * c-pragma.c: Likewise.
243 * c-pretty-print.c: Likewise.
244 * c-semantics.c: Likewise.
245 * c-ubsan.c: Likewise.
246 * cilk.c: Likewise.
247 * stub-objc.c: Likewise.
248
7c62dfbb 2492015-06-02 David Malcolm <dmalcolm@redhat.com>
250
251 PR c/66220:
252 * c-indentation.c (should_warn_for_misleading_indentation): Use
253 expand_location rather than expand_location_to_spelling_point.
254 Don't warn if the guarding statement is more indented than the
255 next/body stmts.
256
9af7c176 2572015-06-02 David Malcolm <dmalcolm@redhat.com>
258
259 * c-indentation.c (warn_for_misleading_indentation): Bail out
260 immediately if -Wmisleading-indentation isn't enabled.
261
eebcf436 2622015-06-01 Martin Liska <mliska@suse.cz>
263
264 * c-format.c (check_format_arg):Use new type-based pool allocator.
265 (check_format_info_main) Likewise.
266
b0a23e2f 2672015-05-31 Eric Botcazou <ebotcazou@adacore.com>
268
269 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
270 (has_nontrivial_methods): Likewise.
271
63dc1330 2722015-05-25 Marek Polacek <polacek@redhat.com>
273
274 * c-ubsan.c (ubsan_instrument_shift): Use type0.
275
5a4c69dd 2762015-05-22 Marek Polacek <polacek@redhat.com>
277
278 PR c/47043
279 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
280
044580bb 2812015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3764c94e 282
283 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
284 STACK_GROWS_DOWNWARD.
285
044580bb 2862015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2b785411 287
288 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
289 STACK_GROWS_DOWNWARD rather than if it is defined.
290
d5a2ddc7 2912015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
292
293 PR c/52952
294 * c-format.c (location_column_from_byte_offset): New.
295 (location_from_offset): New.
296 (struct format_wanted_type): Add offset_loc field.
297 (check_format_info): Move handling of location for extra arguments
298 closer to the point of warning.
299 (check_format_info_main): Pass the result of location_from_offset
300 to warning_at.
301 (format_type_warning): Pass the result of location_from_offset
302 to warning_at.
303
72f8014e 3042015-05-20 Marek Polacek <polacek@redhat.com>
305
306 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
307
74efe522 3082015-05-20 Marek Polacek <polacek@redhat.com>
309
310 * c-ada-spec.c (dump_sloc): Use DECL_P.
311
b443c459 3122015-05-20 Marek Polacek <polacek@redhat.com>
313
314 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
315 * c-common.c: Likewise.
316
551e34da 3172015-05-19 David Malcolm <dmalcolm@redhat.com>
318
319 * c-common.h (fe_file_change): Strengthen param from
320 const line_map * to const line_map_ordinary *.
321 (pp_file_change): Likewise.
322 * c-lex.c (fe_file_change): Likewise.
323 (cb_define): Use linemap_check_ordinary when invoking
324 SOURCE_LINE.
325 (cb_undef): Likewise.
326 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
327 invoking cb_file_change.
328 (c_finish_options): Likewise.
329 (push_command_line_include): Likewise.
330 (cb_file_change): Strengthen param "new_map" from
331 const line_map * to const line_map_ordinary *.
332 * c-ppoutput.c (cb_define): Likewise for local "map".
333 (pp_file_change): Likewise for param "map" and local "from".
334
dfcf26a5 3352015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
336
337 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
338
2e474820 3392015-05-18 Tom de Vries <tom@codesourcery.com>
340
341 * c-common.c (build_va_arg_1): New function.
342 (build_va_arg): Add address operator to va_list operand if necessary.
343
e53013a8 3442015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
345
346 PR c/48956
347 * c-common.c (int_safely_convertible_to_real_p): Define.
348 (unsafe_conversion_p): Check conversions involving complex types.
349 (conversion_warning): Add new warning message for conversions which
350 discard imaginary component.
351 * c-common.h: (enum conversion_safety): Add new enumerator for such
352 conversions.
353
aac24642 3542015-05-14 Marek Polacek <polacek@redhat.com>
355
356 PR c/66066
357 PR c/66127
358 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
359 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
360 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
361 use it. If FOR_INT_CONST, require that all evaluated operands be
362 INTEGER_CSTs.
363
e5f01cba 3642015-05-12 David Malcolm <dmalcolm@redhat.com>
365
366 * c-common.h (warn_for_misleading_indentation): New prototype.
367 * c-indentation.c: New file.
368 * c.opt (Wmisleading-indentation): New option.
369
c37be9ec 3702015-05-12 Tom de Vries <tom@codesourcery.com>
371
372 PR tree-optimization/66010
373 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
374
7290114b 3752015-05-09 Jason Merrill <jason@redhat.com>
376
3c665566 377 * c-opts.c (c_common_post_options): Also clear
378 cpp_opts->cpp_warn_cxx11_compat.
379
d875b9d2 380 * c-common.h (enum cxx_dialect): Add cxx_unset.
381 * c-common.c (cxx_dialect): Initialize to cxx_unset.
382 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
383
7290114b 384 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
385 (std=gnu++0x): Mark as Undocumented.
386 (std=gnu++1y): Add deprecated message.
387
1b03cc89 3882015-05-08 Jason Merrill <jason@redhat.com>
389
1c5f7aba 390 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
391 * c-opts.c: Adjust.
392
1b03cc89 393 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
394
dc5945dc 3952015-05-08 Marek Polacek <polacek@redhat.com>
396
397 PR c/64918
398 * c.opt (Woverride-init-side-effects): New option.
399
cdc64059 4002015-05-07 Marek Polacek <polacek@redhat.com>
401
402 PR c/65179
403 * c-common.c (c_fully_fold_internal): Warn when left shifting a
404 negative value.
405 * c.opt (Wshift-negative-value): New option.
406 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
407 when -Wextra and C99/C++11 mode.
408
8cafe283 4092015-05-07 Marek Polacek <polacek@redhat.com>
410 Martin Uecker <uecker@eecs.berkeley.edu>
411
412 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
413 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
414
cb40a6f7 4152015-05-05 Jason Merrill <jason@redhat.com>
416
417 * c.opt (Wterminate): New.
418
14744a16 4192015-04-30 Marek Polacek <polacek@redhat.com>
420
421 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
422 require that the non-constant be of a boolean type.
423
9866562d 4242015-04-29 Josh Triplett <josh@joshtriplett.org>
425
8cafe283 426 * c-common.c (handle_section_attribute): Refactor to reduce
427 nesting and distinguish between error cases.
9866562d 428
a720ab1c 4292015-04-29 Marek Polacek <polacek@redhat.com>
430
431 PR c/64610
432 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
433 with 0/1.
434
8c072e52 4352015-04-29 Jakub Jelinek <jakub@redhat.com>
436
437 * c-common.h (omp_clause_mask): Unconditionally define as a class.
438 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
439 HOST_BITS_PER_WIDE_INT.
440
f7fec1c7 4412015-04-28 Tom de Vries <tom@codesourcery.com>
442
443 PR tree-optimization/65887
444 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
445
483b3d26 4462015-04-28 Eric Botcazou <ebotcazou@adacore.com>
8cafe283 447 Pierre-Marie de Rodat <derodat@adacore.com>
483b3d26 448
449 * c-ada-spec.c (in_function): Delete.
450 (dump_generic_ada_node): Do not change in_function and remove the
451 redundant code dealing with it.
452 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
453 (print_ada_methods): Output the static member functions in a nested
454 package after the regular methods as well as associated renamings.
455
f11bdffb 4562015-04-24 Marek Polacek <polacek@redhat.com>
457
458 PR c/65830
459 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
460 and OPT_Wshift_count_overflow.
461
485f6b9c 462 PR c/63357
463 * c-common.c (warn_logical_operator): Warn if the operands have the
464 same expressions.
465
439606a9 4662015-04-24 Marek Polacek <polacek@redhat.com>
467
468 PR c/61534
469 * c-common.c (warn_logical_operator): Bail if either operand comes
470 from a macro expansion.
471
de801c28 4722015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
473
474 PR target/55143
475 * c-common.c (c_default_pointer_mode): Add definition.
476 * c-common.h (c_default_pointer_mode): Add declaration.
477
76738f56 4782015-03-11 Jakub Jelinek <jakub@redhat.com>
479
480 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
481 on record_builtin_type argument.
482
16f958b3 4832015-03-10 Jakub Jelinek <jakub@redhat.com>
484
485 PR c/65120
486 * c-common.c (warn_logical_not_parentheses): Don't warn for
487 !x == 0 or !x != 0.
488
9b22f73f 4892015-03-07 Marek Polacek <polacek@redhat.com>
490
491 PR sanitizer/65280
492 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
493 before trying to figure out whether we have a flexible array member.
494
a864b7d4 4952015-03-06 Eric Botcazou <ebotcazou@adacore.com>
496 Jonathan Wakely <jwakely.gcc@gmail.com>
497
498 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
499
9bf8c90b 5002015-03-05 Eric Botcazou <ebotcazou@adacore.com>
501
502 PR ada/65319
503 * c-ada-spec.c (print_destructor): Remove obsolete code.
504
037ac54f 5052015-03-01 Eric Botcazou <ebotcazou@adacore.com>
506
507 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
508 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
509 DECL_TEMPLATE_RESULT emulations.
510 (dump_ada_template)): Add guard for TYPE_METHODS.
511
495cbfb8 5122015-02-27 Marek Polacek <polacek@redhat.com>
513
514 PR c/65040
515 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
516
688a864e 5172015-02-27 Kai Tietz <ktietz@redhat.com>
518
519 PR c/35330
520 * c-pragma.c (handle_pragma_weak): Do not try to create
521 weak/alias of declarations not being function, or variable
522 declarations.
523
6349b8cc 5242015-02-24 Thomas Schwinge <thomas@codesourcery.com>
525
526 PR libgomp/64625
527 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
528 Remove macros.
529 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
530
3afd5369 5312015-02-16 Marek Polacek <polacek@redhat.com>
532
533 PR c/65066
534 * c-format.c (check_format_types): Handle null param.
535
46173d1b 5362015-02-13 Marek Polacek <polacek@redhat.com>
537
538 PR c/65040
539 * c-format.c (check_format_types): Don't warn about different
540 signedness if the original value is in the range of WANTED_TYPE.
541
1d524ff7 5422015-02-12 Jason Merrill <jason@redhat.com>
543
544 PR c++/64956
545 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
546 to the current highest version.
547 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
548
bbf8fbec 5492015-02-04 Jakub Jelinek <jakub@redhat.com>
550
551 PR c/64824
552 PR c/64868
553 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
554 instead of RDIV_EXPR. Use build_binary_op instead of
555 build2_loc.
556
c05be867 5572015-01-30 Joseph Myers <joseph@codesourcery.com>
558
559 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
560 to pass input_location as first argument.
561
85977647 5622015-01-23 Tom de Vries <tom@codesourcery.com>
563
564 PR libgomp/64672
565 * c.opt (fopenacc): Mark as LTO option.
566
fa175926 5672015-01-23 Tom de Vries <tom@codesourcery.com>
568
569 PR libgomp/64707
570 * c.opt (fopenmp): Mark as LTO option.
571
20aad5ba 5722015-01-21 Jakub Jelinek <jakub@redhat.com>
573
574 PR c/63307
575 * cilk.c (fill_decls_vec): Only put decls into vector v.
576 (compare_decls): Fix up formatting.
577
5782015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
579
580 PR c/63307
581 * cilk.c: Include vec.h.
582 (struct cilk_decls): New structure.
583 (wrapper_parm_cb): Split this function to...
584 (fill_decls_vec): ...this...
585 (create_parm_list): ...and this.
586 (compare_decls): New function.
587 (for_local_cb): Remove.
588 (wrapper_local_cb): Ditto.
589 (build_wrapper_type): For now first traverse and fill vector of
590 declarations then sort it and then deal with sorted vector.
591 (cilk_outline): Ditto.
592 (declare_one_free_variable): Ditto.
593
60b77e28 5942015-01-21 Jason Merrill <jason@redhat.com>
595
596 PR c++/64629
597 * c-format.c (check_format_arg): Call decl_constant_value.
598
85fbea97 5992015-01-19 Martin Liska <mliska@suse.cz>
600
601 * c-common.c (handle_noicf_attribute): New function.
602
ca4c3545 6032015-01-15 Thomas Schwinge <thomas@codesourcery.com>
604 Bernd Schmidt <bernds@codesourcery.com>
605 James Norris <jnorris@codesourcery.com>
606 Cesar Philippidis <cesar@codesourcery.com>
607 Ilmir Usmanov <i.usmanov@samsung.com>
608 Jakub Jelinek <jakub@redhat.com>
609
610 * c.opt (fopenacc): New option.
611 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
612 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
613 New macros.
614 * c-common.h (c_finish_oacc_wait): New prototype.
615 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
616 (c_finish_oacc_wait): New function.
617 * c-pragma.c (oacc_pragmas): New variable.
618 (c_pp_lookup_pragma, init_pragma): Handle it.
619 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
620 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
621 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
622 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
623 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
624 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
625 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
626 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
627 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
628 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
629 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
630 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
631 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
632 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
633 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
634 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
635 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
636 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
637 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
638 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
639 PRAGMA_OACC_CLAUSE_WORKER.
640
947aa916 6412015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
642
643 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
644 for the new option fstack-protector_explicit.
645 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
646 (handle_stack_protect_attribute): New function.
647
e4fd7af1 6482015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
649
650 * c.opt: New option -Warray-bounds=.
651
1f78217c 6522015-01-09 Michael Collison <michael.collison@linaro.org>
653
654 * array-notation-common.c: Include hash-set.h, machmode.h,
655 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
656 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
657 * c-ada-spec.c: Ditto.
658 * c-cilkplus.c: Ditto.
659 * c-common.c: Include input.h due to flattening of tree.h.
660 Define macro GCC_C_COMMON_C.
661 * c-common.h: Flatten tree.h header files into c-common.h.
662 Remove include of tree-core.h.
663 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
664 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
665 fold-const.h, wide-int.h, and inchash.h due to
666 flattening of tree.h.
667 * c-dump.c: Ditto.
668 * c-format.c: Flatten tree.h header files into c-common.h.
669 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
670 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
671 fold-const.h, wide-int.h, and inchash.h due to
672 flattening of tree.h.
673 * c-dump.c: Include hash-set.h, machmode.h,
674 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
675 fold-const.h, wide-int.h, and inchash.h due to
676 flattening of tree.h.
677 * c-format.c: Include hash-set.h, machmode.h,
678 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
679 fold-const.h, wide-int.h, inchash.h and real.h due to
680 flattening of tree.h.
681 * c-gimplify.c: Include hash-set.h, machmode.h,
682 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
683 fold-const.h, wide-int.h, and inchash.h due to
684 flattening of tree.h.
685 * cilk.c: Ditto.
686 * c-lex.c: Ditto.
687 * c-omp.c: Ditto.
688 * c-opts.c: Ditto.
689 * c-pch.c: Ditto.
690 * c-ppoutput.c: Ditto.
691 * c-pragma.c: Ditto.
692 * c-pretty-print.c: Ditto.
693 * c-semantics.c: Ditto.
694 * c-ubsan.c: Ditto.
695 * stub-objc.c: Ditto.
696
411b7663 6972015-01-08 Jason Merrill <jason@redhat.com>
698
699 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
700 do_ubsan_in_current_function.
701 (ubsan_maybe_instrument_reference_or_call): Likewise.
702 * c-ubsan.h: Declare it.
703
d1e96383 7042015-01-08 Mike Stump <mikestump@comcast.net>
705
706 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
707
b57910fa 7082015-01-07 Marek Polacek <polacek@redhat.com>
709
710 PR c/64440
711 * c-common.c (c_fully_fold_internal): Warn for division and modulo
712 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
713
678a4e3e 7142015-01-05 Trevor Saunders <tsaunders@mozilla.com>
715
716 PR c++/31397
717 * c.opt (Wsuggest-override): New option.
718
d353bf18 7192015-01-05 Jakub Jelinek <jakub@redhat.com>
720
721 Update copyright years.
722
92b63884 7232015-01-05 Marek Polacek <polacek@redhat.com>
724
725 PR c/64423
726 * c-common.c (warn_array_subscript_with_type_char): Add location_t
727 parameter. Use it.
728 * c-common.h (warn_array_subscript_with_type_char): Update
729 declaration.
730
83715bc4 7312014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
732
733 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
734 Control macro with flag_sized_deallocation.
735
8a8211df 7362014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
737
738 * c.opt (Wdiscarded-array-qualifiers): New option.
739
33058239 7402014-12-19 Jakub Jelinek <jakub@redhat.com>
741
742 PR preprocessor/63831
743 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
744 and __has_cpp_attribute here.
745 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
746 c_common_has_attribute.
747 * c-common.h (c_common_has_attribute): New prototype.
748 * c-lex.c (init_c_lex): Set cb->has_attribute to
749 c_common_has_attribute instead of cb_has_attribute.
750 (get_token_no_padding): New function.
751 (cb_has_attribute): Renamed to ...
752 (c_common_has_attribute): ... this. No longer static. Use
753 get_token_no_padding, require ()s, don't build TREE_LIST
754 unnecessarily, fix up formatting, adjust diagnostics, call
755 init_attributes.
756
d1856d2c 7572014-12-15 Jason Merrill <jason@redhat.com>
758
759 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
760 (-Wsized-deallocation): New.
761 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
762 to on in C++14 and up.
763
4972ed5d 7642014-12-11 Jason Merrill <jason@redhat.com>
765
7d7fa964 766 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
767
4972ed5d 768 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
769 we aren't complaining about VLAs.
770
5ebccf71 7712014-12-06 Marek Polacek <polacek@redhat.com>
772
773 PR tree-optimization/64183
774 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
775 shift-expression if it is integer_type_node. Use types_compatible_p.
776
f9e245b2 7772014-11-29 Jakub Jelinek <jakub@redhat.com>
778
779 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
780 last argument from create_tmp_var_raw and create_tmp_var calls.
781 * cilk.c (gimplify_cilk_spawn): Likewise.
782 * c-omp.c (c_finish_omp_atomic): Likewise.
783
d2f60593 7842014-11-28 Marek Polacek <polacek@redhat.com>
785
786 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
787 instead of unsigned_type_node.
788
fce2dbd1 7892014-11-28 Marek Polacek <polacek@redhat.com>
790
791 PR c/63862
792 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
793 to op1_utype.
794 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
795 expression to unsigned_type_node.
796
3a4a2292 7972014-11-20 Mark Wielaard <mjw@redhat.com>
798
799 PR debug/38757
800 * c-opts.c (set_std_c89): Set lang_hooks.name.
801 (set_std_c99): Likewise.
802 (set_std_c11): Likewise.
803 (set_std_cxx98): Likewise.
804 (set_std_cxx11): Likewise.
805 (set_std_cxx14): Likewise.
806 (set_std_cxx1z): Likewise.
807
c61ef207 8082014-11-21 Jakub Jelinek <jakub@redhat.com>
809
810 PR target/63764
811 * c-common.h (convert_vector_to_pointer_for_subscript): Change
812 return type to bool.
c9ed79de 813 * c-common.c: Include gimple-expr.h.
c61ef207 814 (convert_vector_to_pointer_for_subscript): Change return type to
815 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
816 and copy it into a TARGET_EXPR and use that instead of *vecp
817 directly.
818
1a91d914 8192014-11-19 David Malcolm <dmalcolm@redhat.com>
820
821 Merger of git branch "gimple-classes-v2-option-3".
822 * ChangeLog.gimple-classes: New.
823 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
824 from being just a vec<gimple> to a vec<gbind *>.
825
f8fc8b8e 8262014-11-18 Jakub Jelinek <jakub@redhat.com>
827
828 PR sanitizer/63813
829 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
830 argument to ptype, set type to TREE_TYPE (ptype). Don't call
831 get_pointer_alignment for non-pointers. Use ptype, or if it is
832 reference type, corresponding pointer type, as type of kind
833 argument.
834 (ubsan_maybe_instrument_reference,
835 ubsan_maybe_instrument_member_call): Adjust callers.
836
8315e35e 8372014-11-15 Marek Polacek <polacek@redhat.com>
838
839 PR middle-end/63884
840 * array-notation-common.c (is_sec_implicit_index_fn): Return false
841 for NULL fndecl.
842 (extract_array_notation_exprs): Return for NULL node.
843
86b9f14b 8442014-11-12 Joseph Myers <joseph@codesourcery.com>
845
846 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
847 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
848
0c93c8a9 8492014-11-12 Jakub Jelinek <jakub@redhat.com>
850
851 PR c/59708
852 * c-common.c (check_builtin_function_arguments): Handle
853 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
854
fdd735a7 8552014-11-10 Andi Kleen <ak@linux.intel.com>
856
857 PR c/60804
858 * c-common.h (check_no_cilk): Declare.
859 * cilk.c (get_error_location): New function.
860 (check_no_cilk): Dito.
861
5cb678b4 8622014-11-10 Andi Kleen <ak@linux.intel.com>
863
864 * cilk.c (recognize_spawn): Use expression location
865 for error message.
866
0feb4de1 8672014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
868
869 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
870
3aa2fa44 8712014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
872
873 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
874 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
875 (__cpp_range_based_for, __cpp_initializer_lists,
876 __cpp_delegating_constructors, __cpp_nsdmi,
877 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
878 for C++11; (__cpp_attribute_deprecated): Remove in favor of
879 __has_cpp_attribute.
880 * c-lex.c (cb_has_attribute): New callback CPP function;
881 (init_c_lex): Set has_attribute callback.
882
7fd22aae 8832014-11-04 Richard Biener <rguenther@suse.de>
884
885 * c-common.c (shorten_compare): Do not shorten mixed
886 DFP and non-DFP compares.
887
4af203ac 8882014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
889
890 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
891 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
892 Commentary and rearrangement of tests.
893 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
894 Commentary and rearrangement of tests.
895 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
896 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
897
3754d046 8982014-10-29 Richard Sandiford <richard.sandiford@arm.com>
899
900 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
901 enum from machine_mode.
902
1140c305 9032014-10-28 Andrew MacLeod <amacleod@redhat.com>
904
1f78217c 905 * c-common.c: Adjust include files.
906 * c-gimplify.c: Ditto.
907 * cilk.c: Ditto.
908 * c-pragma.c: Ditto.
909 * c-ubsan.c: Ditto.
1140c305 910
94ea8568 9112014-10-27 Andrew MacLeod <amacleod@redhat.com>
912
913 * c-gimplify.c: Adjust include files.
914
32ecf960 9152014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
916
917 PR c++/53061
918 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
919 c_common_initialize_diagnostics.
920 * c-common.h: Likewise.
921
85fecbe2 9222014-10-24 Marek Polacek <polacek@redhat.com>
923
924 PR c/56980
925 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
926 print "struct"/"union"/"enum" for typedefed names.
927
e7ec033a 9282014-10-23 Marek Polacek <polacek@redhat.com>
929
930 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
931 in unsigned type.
932
c2598081 9332014-10-22 Jakub Jelinek <jakub@redhat.com>
934 Yury Gribov <y.gribov@samsung.com>
935
936 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
937 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
938 instead of flag_sanitize_recover as bool flag.
939
acebb7e2 9402014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
941
942 * cilk.c: Revert previous change.
943
6115016c 9442014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
945
946 PR c/63307
947 * cilk.c: Include vec.h.
948 (struct cilk_decls): New structure.
949 (wrapper_parm_cb): Split this function to...
950 (fill_decls_vec): ...this...
951 (create_parm_list): ...and this.
952 (compare_decls): New function.
953 (for_local_cb): Remove.
954 (wrapper_local_cb): Ditto.
955 (build_wrapper_type): For now first traverse and fill vector of
956 declarations then sort it and then deal with sorted vector.
957 (cilk_outline): Ditto.
958 (declare_one_free_variable): Ditto.
959
e610d2b2 9602014-10-17 Marek Polacek <polacek@redhat.com>
961
962 * c-opts.c (c_common_post_options): Set warn_implicit_int.
963 * c.opt (Wimplicit-int): Initialize to -1.
964
a3020f2f 9652014-10-16 Andrew MacLeod <amacleod@redhat.com>
966
967 * c-pragma.c: Adjust include files.
968 * c-semantics.c: Likewise.
969
926ddd2c 9702014-10-16 DJ Delorie <dj@redhat.com>
971
972 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
973 multiples of bytes.
974
b0542e7c 9752014-10-14 Jason Merrill <jason@redhat.com>
976
977 PR c++/63455
978 * c-common.h (CPP_PREPARSED_EXPR): New.
979 (N_CP_TTYPES): Adjust.
980
b2601928 9812014-10-15 Marek Polacek <polacek@redhat.com>
982
983 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
984
9f75f026 9852014-10-14 DJ Delorie <dj@redhat.com>
986
987 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
988 types, not just __int128.
989 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
990 types, not just __int128.
991 (cpp_atomic_builtins): Round pointer sizes up.
992 (type_suffix): Use type precision, not specific types.
993 * c-common.c (c_common_reswords): Remove __int128 special case.
994 (c_common_type_for_size): Check for all __intN types, not just
995 __int128.
996 (c_common_type_for_mode): Likewise.
997 (c_common_signed_or_unsigned_type): Likewise.
998 (c_build_bitfield_integer_type): Likewise.
999 (c_common_nodes_and_builtins): Likewise.
1000 (keyword_begins_type_specifier): Likewise.
1001 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
1002 __intN variants.
1003
2ef51f0e 10042014-10-12 Trevor Saunders <tsaunders@mozilla.com>
1005
1006 * c-common.c: Use hash_table instead of hashtab.
1007
5b8257e3 10082014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
1009
1f78217c 1010 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
5b8257e3 1011 C++11 section.
1012
5e84569c 10132014-10-03 Marc Glisse <marc.glisse@inria.fr>
1014
1015 PR c++/54427
1016 PR c++/57198
1017 PR c++/58845
1018 * c-common.c (warn_logical_operator): Punt for vectors.
1019
f6751ff2 10202014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
1021
1022 Implement SD-6: SG10 Feature Test Recommendations
1023 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
1024 macros and the __has_header macro.
1025
c33e051d 10262014-09-30 Jason Merrill <jason@redhat.com>
1027
f76a9aa8 1028 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
1029 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
1030 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
1031
717e52f9 1032 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
1033 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
1034
c33e051d 1035 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
1036 * c-common.c (c_common_reswords): Remove __is_convertible_to.
1037
5213d6c9 10382014-09-24 Marek Polacek <polacek@redhat.com>
1039
1040 PR c/61405
1041 PR c/53874
1042 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
1043
6b722052 10442014-09-23 Andi Kleen <ak@linux.intel.com>
1045
1046 * c-common.c (handle_no_reorder_attribute): New function.
1047 (c_common_attribute_table): Add no_reorder attribute.
1048
0cb69d12 10492014-09-22 Joseph Myers <joseph@codesourcery.com>
1050
1051 * c-cppbuiltin.c (c_cpp_builtins): Define
1052 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
1053 modes.
1054
168dfbf0 10552014-09-18 Joseph Myers <joseph@codesourcery.com>
1056
1057 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
1058 for supported floating-point modes.
1059
b83705f4 10602014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1061
1062 * c.opt (Wpsabi): Use LangEnabledBy.
1063 * c-opts.c (c_common_handle_option): Do not handle here.
1064
d5957f0d 10652014-09-12 Joseph Myers <joseph@codesourcery.com>
1066
1067 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
1068 macros for floating-point modes.
1069
bae6edff 10702014-09-11 Marc Glisse <marc.glisse@inria.fr>
1071
1072 PR target/58757
1073 * c-cppbuiltin.c (builtin_define_float_constants): Correct
1074 __*_DENORM_MIN__ without denormals.
1075
73a69d02 10762014-09-10 Jakub Jelinek <jakub@redhat.com>
1077
1078 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1079 ubsan_instrument_vla, ubsan_instrument_return): Adjust
1080 ubsan_create_data callers.
1081 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
1082 index is constant or BIT_AND_EXPR with constant mask and is
1083 small enough for the bound.
1084 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
1085 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
1086
7ff8db31 10872014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1088
1089 * c.opt: Add CppReason to various flags.
1090 (Wdate-time): Re-sort.
1091 * c-common.c: Include c-common.h earlier.
1092 (struct reason_option_codes_t): Delete.
1093 (c_option_controlling_cpp_error): Prefix global type and struct
1094 with cpp_.
1095
bcc1f37e 10962014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1097
1098 * c.opt (Wnormalized): New.
1099 (Wnormalized=): Use Enum and Reject Negative.
1100 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
1101
b660d3c6 11022014-09-08 Joseph Myers <joseph@codesourcery.com>
1103
1104 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
1105 digits of floating-point modes if -fbuilding-libgcc.
1106
325b8c3c 11072014-09-05 Joseph Myers <joseph@codesourcery.com>
1108
1109 * c-cppbuiltin.c (c_cpp_builtins): Also define
1110 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
1111 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
1112 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
1113 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
1114 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
1115 __LIBGCC_STACK_GROWS_DOWNWARD__,
1116 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
1117 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
1118 __LIBGCC_DWARF_FRAME_REGISTERS__,
1119 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
1120 __LIBGCC_STACK_POINTER_REGNUM__ and
1121 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
1122 (builtin_define_with_value): Handle backslash-escaping in string
1123 macro values.
1124
1e074e77 11252014-09-05 Richard Biener <rguenther@suse.de>
1126
1127 PR middle-end/63148
1128 * c-format.c (check_format_arg): Properly handle
1129 effectively signed POINTER_PLUS_EXPR offset.
1130
04afd878 11312014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1132
1133 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
1134 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
1135 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
1136 and Init.
1137 * c-opts.c (c_common_handle_option): Do not handle here.
1138 (sanitize_cpp_opts): Likewise.
1139 * c-common.c (struct reason_option_codes_t): Handle
1140 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
1141
a3f448f0 11422014-09-03 Marek Polacek <polacek@redhat.com>
1143
1144 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
1145
40750995 11462014-09-02 Jakub Jelinek <jakub@redhat.com>
1147 Balaji V. Iyer <balaji.v.iyer@intel.com>
1148 Igor Zamyatin <igor.zamyatin@intel.com>
1149
1150 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
1151 * c-common.c (c_common_reswords): Added _Cilk_for.
1152 * c-common.h (enum rid): Added RID_CILK_FOR.
1153 (cilk_for_number_of_iterations): Add declaration.
1154 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
1155 CILK_FOR.
1156 * c-pragma.c (init_pragma): Register "grainsize" pragma.
1157 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
1158
f0fbe519 11592014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1160
1161 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
1162 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
1163 Wundef): Use CPP, Var and Init.
1164 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
1165
a7d2e480 11662014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1167
1168 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
1169 * c-opts.c (c_common_handle_option): Do not handle here.
1170
c35e53f1 11712014-08-25 Jason Merrill <jason@redhat.com>
1172
1173 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
1174 -std=c++14 and -std=gnu++14, rather than the reverse.
1175 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
1176 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
1177 * c-common.h (cxx_dialect): Remove cxx1y.
1178
4e454776 11792014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
1180
1181 * c-common.h (enum cxx_dialect): Add cxx14.
1182 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
1183 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
1184 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
1185
af1a80f2 11862014-08-22 Jason Merrill <jason@redhat.com>
1187
1188 * c.opt (std=gnu++17): Fix alias.
1189
dc6229e8 11902014-08-22 Marek Polacek <polacek@redhat.com>
1191
1192 PR c++/62199
1193 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
1194 check for vector types. Drop LHS argument.
1195 * c-common.h (warn_logical_not_parentheses): Adjust.
1196
ba7f7c88 11972014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1198
1199 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
1200 (Wmultichar): Likewise.
1201 (Wdate-time): Use C-family languages instead of Common. Use CPP
1202 and Var.
1203 * c-opts.c (c_common_handle_option): Do not handle the above
1204 options here.
1205 (sanitize_cpp_opts): Likewise.
1206
399d4f80 12072014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
1208
1209 PR fortran/44054
1210 * c-opts.c: Include tree-diagnostics.h.
1211 (c_diagnostic_finalizer): New.
1212 (c_common_initialize_diagnostics): Use it.
1213
1babed5f 12142014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1215
1216 PR preprocessor/51303
1217 * c-common.c (struct reason_option_codes_t option_codes):
1218 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
1219
3636964b 12202014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1221
1222 PR c/60975
1223 PR c/53063
1224 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
1225 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
1226 (c_common_post_options): Call init_global_opts_from_cpp.
1227 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
1228
78bf4156 12292014-08-19 Marek Polacek <polacek@redhat.com>
1230
1231 PR c++/62153
1232 * c-common.c (maybe_warn_bool_compare): New function.
1233 * c-common.h (maybe_warn_bool_compare): Declare.
1234 * c.opt (Wbool-compare): New option.
1235
508ea33a 12362014-08-19 Marek Polacek <polacek@redhat.com>
1237
1238 * c.opt (Wc99-c11-compat): New option.
1239
806fe15e 12402014-08-19 Marek Polacek <polacek@redhat.com>
1241
1242 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
1243 to warn_c90_c99_compat.
1244 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
1245 to -1.
1246
6c867de1 12472014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
1248 Steven Bosscher <steven@gcc.gnu.org>
1249
1250 PR c/52952
1251 * c-format.c: Add extra_arg_loc and format_string_loc to struct
1252 format_check_results.
1253 (check_function_format): Use true and add comment for boolean
1254 argument.
1255 (finish_dollar_format_checking): Use explicit location when warning.
1256 (check_format_info): Likewise.
1257 (check_format_arg): Set extra_arg_loc and format_string_loc.
1258 (check_format_info_main): Use explicit location when warning.
1259 (check_format_types): Pass explicit location.
1260 (format_type_warning): Likewise.
1261
dc8078a3 12622014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1263
1264 PR fortran/44054
1265 * c-format.c: Handle Fortran flags.
1266
d271ec7e 12672014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
1268
1269 PR other/61962
1270 * array-notation-common.c (find_rank): Added handling for other
1271 types of references.
1272
890c2e2f 12732014-08-10 Marek Polacek <polacek@redhat.com>
1274
1275 PR c/51849
1276 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
1277 * c.opt (Wc90-c99-compat): Add option.
1278
7149db5f 12792014-08-07 Trevor Saunders <tsaunders@mozilla.com>
1280
1281 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
1282
2d2f6a15 12832014-08-03 Marek Polacek <polacek@redhat.com>
1284
1285 * c-common.c (check_case_value): Add location_t parameter. Use it.
1286 (c_add_case_label): Pass loc to check_case_value.
1287
06ecf488 12882014-08-02 Trevor Saunders <tsaunders@mozilla.com>
1289
1290 * cilk.c: Use hash_map instead of pointer_map.
1291
431205b7 12922014-08-02 Trevor Saunders <tsaunders@mozilla.com>
1293
1294 * c-gimplify.c: Use hash_set instead of pointer_set.
1295
3394c80c 12962014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
1297
1298 PR middle-end/61455
1299 * array-notation-common.c (extract_array_notation_exprs): Handling
1300 of DECL_EXPR added.
1301
392dee1e 13022014-08-01 Jakub Jelinek <jakub@redhat.com>
1303
1304 * c-common.h (min_align_of_type): Removed prototype.
1305 * c-common.c (min_align_of_type): Removed.
1306 * c-ubsan.h (ubsan_maybe_instrument_reference,
1307 ubsan_maybe_instrument_member_call): New prototypes.
1308 * c-ubsan.c: Include stor-layout.h and builtins.h.
1309 (ubsan_maybe_instrument_reference_or_call,
1310 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
1311 functions.
1312
f22a2cb7 13132014-07-31 Marc Glisse <marc.glisse@inria.fr>
1314
1315 PR c++/60517
1316 * c.opt (-Wreturn-local-addr): Move to common.opt.
1317
87b0198f 13182014-07-30 Jason Merrill <jason@redhat.com>
1319
1320 PR c++/61659
1321 PR c++/61687
1322 Revert:
1323 * c.opt (-fuse-all-virtuals): New.
1324
74691f46 13252014-07-30 Tom Tromey <tromey@redhat.com>
1326
1327 PR c/59855
1328 * c.opt (Wdesignated-init): New option.
1329 * c-common.c (c_common_attribute_table): Add "designated_init".
1330 (handle_designated_init): New function.
1331
9140d56f 13322014-07-24 Marek Polacek <polacek@redhat.com>
1333
1334 PR c/57653
1335 * c-opts.c (c_finish_options): If -imacros is in effect, return.
1336
a09c5cc2 13372014-07-16 Dodji Seketeli <dodji@redhat.com>
1338
1339 PR preprocessor/60723 - missing system-ness marks for macro tokens
1340 * c-ppoutput.c (struct print::prev_was_system_token): New data
1341 member.
1342 (init_pp_output): Initialize it.
1343 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
1344 (do_line_change): Return a flag saying if a line marker was
1345 emitted or not.
1346 (scan_translation_unit): Detect if the system-ness of the token we
1347 are about to emit is different from the one of the previously
1348 emitted token. If so, emit a line marker. Avoid emitting useless
1349 adjacent line markers. Avoid emitting line markers for tokens
1350 originating from the expansion of built-in macros.
1351 (scan_translation_unit_directives_only): Adjust.
1352
2b25b62f 13532014-07-15 Marek Polacek <polacek@redhat.com>
1354
1355 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
1356 TYPE_MAX_VALUE is NULL.
1357
305d96bc 13582014-07-14 Jakub Jelinek <jakub@redhat.com>
1359
1360 PR middle-end/61294
1361 * c.opt (Wmemset-transposed-args): New warning.
1362
8ea4660d 13632014-07-10 Jason Merrill <jason@redhat.com>
1364
1365 PR c++/61659
1366 PR c++/61687
1367 * c.opt (-fuse-all-virtuals): New.
1368
cd480f3d 13692014-07-09 Richard Biener <rguenther@suse.de>
1370
1371 PR c-family/61741
1372 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1373 using unsigned arithmetic if overflow does not wrap instead of
1374 if overflow is undefined.
1375
87d59e72 13762014-07-06 Marek Polacek <polacek@redhat.com>
1377
1378 PR c/6940
1379 * c.opt (Wsizeof-array-argument): New option.
1380
d69521d8 13812014-07-03 Jakub Jelinek <jakub@redhat.com>
1382
1383 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
1384 comments->count <= 1, as comments->entries might be NULL.
1385
1207866e 13862014-07-01 Marek Polacek <polacek@redhat.com>
1387
1388 * c.opt (Wint-conversion): New option.
1389
7a6bbb76 13902014-07-01 Marek Polacek <polacek@redhat.com>
1391
1392 PR c/58286
1393 * c.opt (Wincompatible-pointer-types): New option.
1394
9d4eeb52 13952014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
1396
1397 PR c++/51400
1398 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
1399 Do not discard TYPE_QUALS of type.
1400
4b53bc0f 14012014-06-26 Jason Merrill <jason@redhat.com>
1402
1403 * c-common.h (enum cxx_dialect): Add cxx1z.
1404 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
1405 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
1406
a8a8d4ea 14072014-06-26 Teresa Johnson <tejohnson@google.com>
1408
1409 * c-common.h (get_dump_info): Declare.
1410 * c-gimplify.c (c_genericize): Use saved dump files.
1411 * c-opts.c (c_common_parse_file): Begin and end dumps
1412 once around parsing invocation.
1413 (get_dump_info): New function.
1414
1f6be080 14152014-06-23 Marek Polacek <polacek@redhat.com>
1416 Andrew MacLeod <amacleod@redhat.com>
1417
1418 PR c/61553
1419 * c-common.c (get_atomic_generic_size): Don't segfault if the
1420 type doesn't have a size.
1421
5ef6b660 14222014-06-20 Marek Polacek <polacek@redhat.com>
1423
1424 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
1425 (ubsan_walk_array_refs_r): New function.
1426 (c_genericize): Instrument array bounds.
1427 * c-ubsan.c: Include "internal-fn.h".
1428 (ubsan_instrument_division): Mark instrumented arrays as having
1429 side effects. Adjust ubsan_type_descriptor call.
1430 (ubsan_instrument_shift): Likewise.
1431 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
1432 (ubsan_instrument_bounds): New function.
1433 (ubsan_array_ref_instrumented_p): New function.
1434 (ubsan_maybe_instrument_array_ref): New function.
1435 * c-ubsan.h (ubsan_instrument_bounds): Declare.
1436 (ubsan_array_ref_instrumented_p): Declare.
1437 (ubsan_maybe_instrument_array_ref): Declare.
1438
14392014-06-20 Hale Wang <hale.wang@arm.com>
3ccd1e6e 1440
1441 PR lto/61123
1442 * c.opt (fshort-enums): Add to LTO.
1443 * c.opt (fshort-wchar): Likewise.
1444
78438f31 14452014-06-16 Marek Polacek <polacek@redhat.com>
1446
1447 PR c/60439
1448 * c.opt (Wswitch-bool): Add Var.
1449
5fddcf34 14502014-06-12 Jakub Jelinek <jakub@redhat.com>
1451
1452 PR middle-end/61486
1453 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
1454 #pragma omp target teams or
1455 #pragma omp {,target }teams distribute simd.
1456
74b777e5 14572014-06-12 Jason Merrill <jason@redhat.com>
1458
1459 * c.opt (Wabi=, fabi-compat-version): New.
1460 * c-opts.c (c_common_handle_option): Handle -Wabi=.
1461 (c_common_post_options): Handle flag_abi_compat_version default.
1462 Disallow -fabi-compat-version=1.
1463 * c-common.h (abi_version_crosses): New.
1464
738a6bda 14652014-06-11 Jan Hubicka <hubicka@ucw.cz>
1466
1f78217c 1467 * c-common.c (handle_section_attribute): Update handling for
738a6bda 1468 section names that are no longer trees.
1469
cf5f881f 14702014-06-10 Jakub Jelinek <jakub@redhat.com>
1471
1472 PR fortran/60928
1473 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
1474 (omp_pragmas): ... back here.
1475
32dc1512 14762014-06-05 Marek Polacek <polacek@redhat.com>
1477
1478 PR c/49706
1479 * c-common.c (warn_logical_not_parentheses): New function.
1480 * c-common.h (warn_logical_not_parentheses): Declare.
1481 * c.opt (Wlogical-not-parentheses): New option.
1482
f61a9bc2 14832014-06-04 Marek Polacek <polacek@redhat.com>
1484
1485 PR c/30020
1486 * c-common.c (check_case_bounds): Add location parameter.
1487 Use it.
1488 (c_add_case_label): Pass loc to check_case_bounds.
1489
c69ec07d 14902014-06-03 Marek Polacek <polacek@redhat.com>
1491
1492 PR c/60439
1493 * c.opt (Wswitch-bool): New option.
1494
3c77ca67 14952014-05-22 Thomas Schwinge <thomas@codesourcery.com>
1496
68a2c870 1497 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
1498 Remove prototypes.
1499 (record_types_used_by_current_var_decl): Move prototype to where
1500 it belongs.
1501
3c77ca67 1502 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
1503 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
1504 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
1505
3ab4693e 15062014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1507
1508 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
1509 * c-common.c (c_common_nodes_and_builtins): Don't initialize
1510 void_zero_node.
1511 * c-pretty-print.c (pp_c_void_constant): New function.
1512 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
1513 (c_pretty_printer::expression): Handle VOID_CST.
1514 * cilk.c (extract_free_variables): Likewise.
1515 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
1516 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
1517
25a27413 15182014-05-17 Trevor Saunders <tsaunders@mozilla.com>
1519
1520 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
1521 * c-pragma.c (push_alignment): Adjust.
1522 (handle_pragma_push_options): Likewise.
1523
3e5a8b00 15242014-05-09 Marek Polacek <polacek@redhat.com>
1525
1526 PR c/50459
1527 * c-common.c (check_user_alignment): Return -1 if alignment is error
1528 node.
1529 (handle_aligned_attribute): Don't call default_conversion on
1530 FUNCTION_DECLs.
1531 (handle_vector_size_attribute): Likewise.
1532 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
1533 (handle_sentinel_attribute): Call default_conversion and allow even
1534 integral types as an argument.
1535
c2c4ae8d 15362014-05-08 Marek Polacek <polacek@redhat.com>
1537
1538 PR c/61053
1539 * c-common.c (min_align_of_type): New function factored out from...
1540 (c_sizeof_or_alignof_type): ...here.
1541 * c-common.h (min_align_of_type): Declare.
1542
2026249a 15432014-05-08 Marek Polacek <polacek@redhat.com>
1544
1545 PR c/61077
1546 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
1547 parameter type of main.
1548
33c8dcfe 15492014-05-07 DJ Delorie <dj@redhat.com>
1550
1551 * c-cppbuiltin.c (print_bits_of_hex): New.
1552 (builtin_define_type_minmax): Print values using hex so as not to
1553 require a pre-computed list of string values.
1554
960d5a55 15552014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
1556 Mike Stump <mikestump@comcast.net>
1557 Richard Sandiford <rdsandiford@googlemail.com>
1558
1559 * c-ada-spec.c: Include wide-int.h.
1560 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
1561 (dump_generic_ada_node): Use wide-int interfaces.
1562 * c-common.c: Include wide-int-print.h.
1563 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
1564 (pointer_int_sum): Use wide-int interfaces.
1565 (c_common_nodes_and_builtins): Use make_int_cst.
1566 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
1567 (handle_alloc_size_attribute): Use wide-int interfaces.
1568 (get_nonnull_operand): Likewise.
1569 * c-format.c (get_constant): Use tree_fits_uhwi_p.
1570 * c-lex.c: Include wide-int.h.
1571 (narrowest_unsigned_type): Take a widest_int rather than two
1572 HOST_WIDE_INTs.
1573 (narrowest_signed_type): Likewise.
1574 (interpret_integer): Update accordingly. Use wide-int interfaces.
1575 (lex_charconst): Use wide-int interfaces.
1576 * c-pretty-print.c: Include wide-int.h.
1577 (pp_c_integer_constant): Use wide-int interfaces.
1578 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
1579 INT_CST_LT_UNSIGNED.
1580
bbb88b31 15812014-05-06 Richard Biener <rguenther@suse.de>
1582
1583 * c-opts.c (c_common_post_options): For -freestanding,
1584 -fno-hosted and -fno-builtin disable pattern recognition
1585 if not enabled explicitely.
1586
022d4718 15872014-05-02 Marek Polacek <polacek@redhat.com>
1588
1589 * c.opt (Wsizeof-pointer-memaccess): Describe option.
1590
e4ab2ef3 15912014-05-01 Marek Polacek <polacek@redhat.com>
1592
1593 PR c/43245
1594 * c.opt (Wdiscarded-qualifiers): Add.
1595
52cc0072 15962014-04-30 Marek Polacek <polacek@redhat.com>
1597
1598 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
1599 INT_MIN / -1 sanitization only for integer types.
1600
4a026b48 16012014-04-25 Marek Polacek <polacek@redhat.com>
1602
1603 PR c/18079
1604 * c-common.c (handle_noinline_attribute): Warn if the attribute
1605 conflicts with always_inline attribute.
1606 (handle_always_inline_attribute): Warn if the attribute conflicts
1607 with noinline attribute.
1608
90e645fa 16092014-04-25 Marek Polacek <polacek@redhat.com>
1610
1611 PR c/60156
1612 * c-common.c (check_main_parameter_types): Warn about variadic main.
1613
db103ea4 16142014-04-24 Mike Stump <mikestump@comcast.net>
1615
1616 * c.opt (Wshadow-ivar): Default to on.
1617
06511efd 16182014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
1619
1620 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
1621
cdf34fca 16222014-04-23 Marek Polacek <polacek@redhat.com>
1623
1624 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
1625
7311d7c1 16262014-04-22 Jakub Jelinek <jakub@redhat.com>
1627
1628 PR sanitizer/60275
1629 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
1630 if flag_sanitize_undefined_trap_on_error.
1631 (ubsan_instrument_division, ubsan_instrument_shift,
1632 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
1633 if !flag_sanitize_recover.
1634
c1917557 16352014-04-22 Marc Glisse <marc.glisse@inria.fr>
1636
1637 PR libstdc++/43622
1638 * c-common.c (registered_builtin_types): Make non-static.
1639 * c-common.h (registered_builtin_types): Declare.
1640
b2ca6510 16412014-04-14 Richard Biener <rguenther@suse.de>
1642 Marc Glisse <marc.glisse@inria.fr>
1643
1644 PR c/60819
1645 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
1646 apply may-alias the scalar pointer type when applicable.
1647
855372a3 16482014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
1649
1650 PR middle-end/60467
1651 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
1652 as possible argument for Cilk_spawn.
1653
4012a986 16542014-04-11 Tobias Burnus <burnus@net-b.de>
1655
1656 PR c/60194
1657 * c.opt (Wformat-signedness): Add
1658 * c-format.c(check_format_types): Use it.
1659
0d284870 16602014-04-11 Jason Merrill <jason@redhat.com>
1661
1662 PR c++/57926
1663 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
1664 default_conversion for an array argument.
1665
a34c1231 16662014-04-08 Marek Polacek <polacek@redhat.com>
1667
1668 PR sanitizer/60745
1669 * c-ubsan.c: Include asan.h.
1670 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
1671
a35a8e18 16722014-04-03 Nathan Sidwell <nathan@codesourcery.com>
1673
1674 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
1675
b23e42b6 16762014-04-02 Marek Polacek <polacek@redhat.com>
1677
1678 * c-common.h (c_expand_expr): Remove declaration.
1679
5a672e62 16802014-03-28 Jakub Jelinek <jakub@redhat.com>
1681
1682 PR c++/60689
1683 * c-common.c (add_atomic_size_parameter): When creating new
1684 params vector, push the size argument first.
1685
d4d068c0 16862014-03-26 Jakub Jelinek <jakub@redhat.com>
1687
1688 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1689 ubsan_instrument_vla, ubsan_instrument_return): Adjust
1690 ubsan_create_data callers.
1691
446bdf5f 16922014-03-22 Jakub Jelinek <jakub@redhat.com>
1693
1694 PR debug/60603
1695 * c-opts.c (c_finish_options): Restore cb_file_change call to
1696 <built-in>.
1697
8895f0a3 16982014-03-13 Jakub Jelinek <jakub@redhat.com>
1699
1700 PR middle-end/36282
1701 * c-pragma.c (apply_pragma_weak): Only look at
1702 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
1703 DECL_ASSEMBLER_NAME_SET_P (decl).
1704 (maybe_apply_pending_pragma_weaks): Exit early if
1705 vec_safe_is_empty (pending_weaks) rather than only when
1706 !pending_weaks.
1707 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
1708 set assembler name back to NULL afterwards.
1709
7a5da2cd 17102014-03-11 Jason Merrill <jason@redhat.com>
1711
1712 * c.opt: Add -std=gnu++14.
1713
95093889 17142014-03-11 Ian Bolton <ian.bolton@arm.com>
1715
1716 * c-opts.c (c_common_post_options): Don't override
1717 -ffp-contract=fast if unsafe-math-optimizations is on.
1718
c9a24b37 17192014-03-08 Paulo Matos <paulo@matos-sorge.com>
1720
1721 * c.opt: Enable LTO FE for fshort-double.
1722
3f6dba6e 17232014-03-07 Jason Merrill <jason@redhat.com>
1724
1725 * c.opt: Add -std=c++14.
1726
3bfdc94f 17272014-03-06 Marek Polacek <polacek@redhat.com>
1728
1729 PR c/60197
1730 * cilk.c (contains_cilk_spawn_stmt): New function.
1731 (contains_cilk_spawn_stmt_walker): Likewise.
1732 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
1733 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
1734
8b3a6a4c 17352014-03-03 Jakub Jelinek <jakub@redhat.com>
1736
1737 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
1738 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
1739 even when flag_preprocess_only.
1740
734ec290 17412014-02-26 Jason Merrill <jason@redhat.com>
1742
1743 PR c++/59231
1744 PR c++/11586
1745 * c-common.c (shorten_compare): Don't check
1746 c_inhibit_evaluation_warnings.
1747
81aec8b8 17482014-02-19 Jakub Jelinek <jakub@redhat.com>
1749
d1081017 1750 PR c/37743
1751 * c-common.c (c_common_nodes_and_builtins): When initializing
1752 c_uint{16,32,64}_type_node, also set corresponding
1753 uint{16,32,64}_type_node to the same value.
1754
81aec8b8 1755 PR c++/60267
1756 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
1757 for PRAGMA_IVDEP if flag_preprocess_only.
1758
312243bb 17592014-02-12 Jakub Jelinek <jakub@redhat.com>
1760
1761 PR c/60101
1762 * c-common.c (merge_tlist): If copy is true, call new_tlist,
1763 if false, add ADD itself, rather than vice versa.
1764 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
1765 copy. For SAVE_EXPR, only call merge_tlist once.
1766
237e78b1 17672014-02-08 Jakub Jelinek <jakub@redhat.com>
1768
1769 PR middle-end/60092
1770 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
1771 and tree_to_uhwi.
1772 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
1773 functions.
1774 (c_common_attribute_table): Add alloc_align and assume_aligned
1775 attributes.
1776
76fdceeb 17772014-02-06 Marek Polacek <polacek@redhat.com>
1778
1779 PR c/60087
1780 * c-common.c (warn_for_sign_compare): Call warning_at with location
1781 instead of warning.
1782
4a4dea42 17832014-02-05 Marek Polacek <polacek@redhat.com>
1784
1785 PR c/53123
1786 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
1787 statement.
1788
ec704957 17892014-02-04 Marek Polacek <polacek@redhat.com>
1790
1791 PR c/60036
1792 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
1793 SAVE_EXPR.
1794
caf62483 17952014-02-03 Marc Glisse <marc.glisse@inria.fr>
1796
1797 PR c++/53017
1798 PR c++/59211
1799 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
1800 handle_vector_size_attribute, handle_nonnull_attribute): Call
1801 default_conversion on the attribute argument.
1802 (handle_nonnull_attribute): Increment the argument number.
1803
ec761d5a 18042014-01-31 Marek Polacek <polacek@redhat.com>
1805
1806 PR c/59963
1807 * c-common.c (add_atomic_size_parameter): Pass vNULL to
1808 build_function_call_vec.
1809 (resolve_overloaded_builtin): Likewise.
1810 * c-common.h (build_function_call_vec): Adjust declaration.
1811
22a75734 18122014-01-30 Marek Polacek <polacek@redhat.com>
1813
1814 PR c/59940
1815 * c-common.h (unsafe_conversion_p): Adjust declaration.
1816 (warnings_for_convert_and_check): Likewise.
1817 (convert_and_check): Likewise.
1818 * c-common.c (unsafe_conversion_p): Add location parameter. Call
1819 expansion_point_location_if_in_system_header on it.
1820 (warnings_for_convert_and_check): Add location parameter. Call
1821 expansion_point_location_if_in_system_header on it. Use it.
1822 (convert_and_check): Add location parameter. Use it.
1823 (conversion_warning): Likewise.
1824 (c_add_case_label): Adjust convert_and_check calls.
1825 (scalar_to_vector): Adjust unsafe_conversion_p calls.
1826
a89e6c15 18272014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
1828
1829 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
1830 flag_cilkplus.
1831 * c-pragma.c (init_pragma): Likewise.
1832 * c.opt: Likewise.
1833
2623625f 18342014-01-23 Marek Polacek <polacek@redhat.com>
1835
1836 PR c/59846
1837 * c-common.c (shorten_compare): Add location_t parameter.
1838 * c-common.h (shorten_binary_op): Adjust declaration.
1839
46da3601 18402014-01-23 Marek Polacek <polacek@redhat.com>
1841
1842 PR c/58346
1843 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
1844 * c-common.h: Declare it.
1845
c9743c6a 18462014-01-20 Eric Botcazou <ebotcazou@adacore.com>
1847
1848 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
1849 * c-ada-spec.c (dump_ads): Likewise.
1850 (cpp_check): Likewise.
1851 (dump_ada_specs): Likewise.
1852
18532014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
36e33c6a 1854
1855 PR c++/49718
1856 * c-common.c (handle_no_instrument_function_attribute): Allow
1857 no_instrument_function attribute in class member
1858 definition/declaration.
1859
1248c663 18602014-01-15 Jakub Jelinek <jakub@redhat.com>
1861
1862 PR c/58943
1863 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
1864 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
1865 being COMPOUND_EXPR.
1866 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
1867 operand a SAVE_EXPR and second MODIFY_EXPR.
1868
6e5c480b 18692014-01-09 Jakub Jelinek <jakub@redhat.com>
1870
1871 PR target/58115
1872 * c-pch.c (c_common_write_pch): Call
1873 prepare_target_option_nodes_for_pch.
1874
3aea1f79 18752014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1876
1877 Update copyright years
1878
e4f22041 18792014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1880
1881 * array-notation-common.c, c-cilkplus.c: Use the standard form for
1882 the copyright notice.
1883
7fb0fe24 18842013-12-28 Eric Botcazou <ebotcazou@adacore.com>
1885
1886 * c-ada-spec.c (print_constructor): New function.
1887 (print_destructor): Retrieve the origin of the destructor.
1888 (print_ada_declaration): Revamp handling of constructors/destructors.
1889
468088ac 18902013-12-23 Stuart Hastings <stuart@apple.com>
1891 Bill Maddox <maddox@google.com>
1892 Jason Merrill <jason@redhat.com>
1893
1894 * c.opt: Add -fdeclone-ctor-dtor.
1895 * c-opts.c (c_common_post_options): Default to on iff -Os.
1896
74acc703 18972013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
1898
1899 * c-common.c (c_common_attribute_table): Added "cilk simd function"
1900 attribute.
1901 * c-pragma.h (enum pragma_cilk_clause): Remove.
1902 (enum pragma_omp_clause): Added the following fields:
1903 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
1904 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
1905 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
1906 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
1907 PRAGMA_CILK_CLAUSE_UNIFORM.
1908
1909
433e804e 19102013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
1911
1912 * cilk.c (cilk_outline): Made this function non-static.
1913 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
1914 (create_cilk_wrapper): Added a new parameter: a function pointer.
1915 (c_install_body_w_frame_cleanup): Remove
1916 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
1917 * c-common.h (cilk_outline): New prototype.
1918 (gimplify_cilk_spawn): Removed two parameters.
1919 (cilk_install_body_with_frame_cleanup): New prototype.
1920 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
1921 CILK_SPAWN_STMT case.
1922
5bcc7e60 19232013-12-11 Bernd Schmidt <bernds@codesourcery.com>
1924
e66325ea 1925 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
1926
5bcc7e60 1927 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
1928 (int_array_type_node): Remove.
1929 * c-common.c (c_common_nodes_and_builtins): Don't build it.
1930
0b26ec77 19312013-12-05 Marek Polacek <polacek@redhat.com>
1932
1933 PR c/52023
1934 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
1935 [ADJUST_FIELD_ALIGN].
1936
a179a7dc 19372013-12-04 Joseph Myers <joseph@codesourcery.com>
1938
1939 PR c/52023
1940 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
1941 and check field alignment if set.
1942 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
1943 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
1944
137559b2 19452013-12-04 Jakub Jelinek <jakub@redhat.com>
1946 Marek Polacek <polacek@redhat.com>
1947
1948 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
1949 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
1950
648fd348 19512013-11-29 H.J. Lu <hongjiu.lu@intel.com>
1952
1953 PR c/59309
1954 * cilk.c (gimplify_cilk_spawn): Properly handle function without
1955 arguments.
1956
253e1cae 19572013-11-29 Jakub Jelinek <jakub@redhat.com>
1958
1959 PR c/59280
1960 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
1961 goto invalid. If it is error_mark_node, don't issue further
1962 diagnostics.
1963
3e398f5b 19642013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
1965
1966 * c.opt (Wopenmp-simd): New.
1967
020bc656 19682013-11-22 Jakub Jelinek <jakub@redhat.com>
1969
1970 * c-ubsan.h (ubsan_instrument_return): New prototype.
1971 * c-ubsan.c (ubsan_instrument_return): New function.
1972
bc61cadb 19732013-11-22 Andrew MacLeod <amacleod@redhat.com>
1974
1975 * c-common.c: Add required include files from gimple.h.
1976 * c-gimplify.c: Likewise
1977 * cilk.c: Likewise
1978
3df42822 19792013-11-22 David Malcolm <dmalcolm@redhat.com>
1980
1981 * c-common.c (unsafe_conversion_p): Remove use of
1982 EXPR_LOC_OR_HERE macro.
1983 (conversion_warning): Likewise.
1984 (warnings_for_convert_and_check): Likewise.
1985 (warn_for_collisions_1): Likewise.
1986 (shorten_compare): Likewise, and remove use of in_system_header
1987 macro, using the location from the former.
1988 * c-lex.c (dump_one_header): Remove use of input_filename macro.
1989 (cb_def_pragma): Remove use of in_system_header macro.
1990 (lex_string): Likewise.
1991 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1992
8c53c46c 19932013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
1994 Mike Stump <mikestump@comcast.net>
1995 Richard Sandiford <rdsandiford@googlemail.com>
1996
1997 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
1998 instead of TREE_INT_CST_LOW, in cases where there is a protecting
1999 tree_fits_shwi_p or tree_fits_uhwi_p.
2000 (dump_generic_ada_node): Likewise.
2001 * c-format.c (check_format_arg): Likewise.
2002 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2003
5200ef07 20042013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2005
2006 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
2007
ca9d7d74 20082013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
2009
2010 PR c/53001
2011 * c-common.c (unsafe_conversion_p): Make this function
2012 return an enumeration with more detail.
2013 (conversion_warning): Use the new return type of
2014 unsafe_conversion_p to separately warn either about conversions
2015 that lower floating point number precision or about the other
2016 kinds of conversions.
2017 * c-common.h (enum conversion_safety): New enumeration.
2018 (unsafe_conversion_p): switching return type to
2019 conversion_safety enumeration.
2020 * c.opt: Adding new warning -Wfloat-conversion and
2021 enabling it with -Wconversion.
2022
0391a567 20232013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
2024
2025 * c-opts.c: Include plugin.h.
2026 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
2027
19b928d9 20282013-11-19 Marek Polacek <polacek@redhat.com>
2029
2030 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
2031 call.
2032 (ubsan_instrument_shift): Likewise.
2033 (ubsan_instrument_vla): Likewise.
2034
aa59f000 20352013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2036
2037 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
2038 cast to unsigned type.
2039
08f817b3 20402013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2041
2042 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
2043 tree_low_cst.
2044 (complete_array_type): Update comment to refer to tree_to_[su]hwi
2045 rather than tree_low_cst.
2046
6a0712d4 20472013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2048
2049 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
2050 tree_to_uhwi throughout.
2051
fcb97e84 20522013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2053
2054 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
2055 tree_low_cst (..., 0) with tree_to_shwi throughout.
2056
cd4547bf 20572013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2058
2059 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
2060 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
2061
35ec552a 20622013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2063
2064 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
2065 host_integerp (..., 0) with tree_fits_shwi_p throughout.
2066
f2697631 20672013-11-15 Aldy Hernandez <aldyh@redhat.com>
2068
2069 * c-cilkplus.c: New file.
2070 * c-common.c (readonly_error): Add location argument.
2071 * c-common.h (readonly_error): Same.
2072 (c_finish_cilk_clauses): Protoize.
2073 (c_check_cilk_loop): Same.
2074 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
2075 Do not fail on error_mark_node.
2076 Abstract increment canonicalization to here...
2077 (c_omp_for_incr_canonicalize_ptr): New.
2078 c-pragma.c (init_pragma): Register "simd" pragma.
2079 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
2080 (enum pragma_cilk_clause): New.
2081
0aa8c34e 20822013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
2083
2084 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
2085 wchar_type and host_integerp checks.
2086
e795d6e1 20872013-11-14 Andrew MacLeod <amacleod@redhat.com>
2088
2089 * c-common.c: Likewise.
2090 * c-gimplify.c: Likewise.
2091 * cilk.c: Likewise.
2092
9ed99284 20932013-11-14 Diego Novillo <dnovillo@google.com>
2094
2095 * c-common.c: Include fold-const.h.
2096 Include stor-layout.h.
2097 Include calls.h.
2098 Include stringpool.h.
2099 Include attribs.h.
2100 Include varasm.h.
2101 Include trans-mem.h.
2102 * c-cppbuiltin.c: Include stor-layout.h.
2103 Include stringpool.h.
2104 * c-format.c: Include stringpool.h.
2105 * c-lex.c: Include stringpool.h.
2106 Include stor-layout.h.
2107 * c-pragma.c: Include stringpool.h.
2108 Include attribs.h.
2109 Include varasm.h.
2110 Include gcc-symtab.h.
2111 * c-pretty-print.c: Include stor-layout.h.
2112 Include attribs.h.
2113 * cilk.c: Include stringpool.h.
2114 Include calls.h.
2115
4fba5eb9 21162013-11-13 Joseph Myers <joseph@codesourcery.com>
2117
2118 * c-common.h (enum rid): Add RID_AUTO_TYPE.
2119 * c-common.c (c_common_reswords): Add __auto_type.
2120 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
2121
a8783bee 21222013-11-12 Andrew MacLeod <amacleod@redhat.com>
2123
e795d6e1 2124 * c-common.c: Include gimplify.h.
2125 * c-gimplify.c: Likewise.
2126 * cilk.c: Likewise.
2127 * c-omp.c: Include gimple-expr.h instead of gimple.h.
2128 * c-ubsan.c: Don't include gimple.h.
a8783bee 2129
d184e0c0 21302013-11-12 Joseph Myers <joseph@codesourcery.com>
2131
2132 * c-common.c (c_common_reswords): Add _Thread_local.
2133
a056826c 21342013-11-09 Joseph Myers <joseph@codesourcery.com>
2135
2136 * c-common.c (atomic_size_supported_p): New function.
2137 (resolve_overloaded_atomic_exchange)
2138 (resolve_overloaded_atomic_compare_exchange)
2139 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
2140 Use it instead of comparing size with a local list of sizes.
2141
b560fabd 21422013-11-07 Andrew MacLeod <amacleod@redhat.com>
2143 Joseph Myers <joseph@codesourcery.com>
2144
2145 * c-common.h (enum rid): Add RID_ATOMIC.
2146 * c-common.c (c_common_reswords): Add _Atomic.
2147 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
2148 (keyword_is_type_qualifier): Accept RID_ATOMIC.
2149 * c-format.c (check_format_types): Check for extra _Atomic
2150 qualifiers in format argument.
2151 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
2152 (pp_c_type_qualifier_list): Mention _Atomic in comment.
2153
5b1a0622 21542013-11-06 Tobias Burnus <burnus@net-b.de>
2155
2156 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
2157
4f8f4cb8 21582013-11-06 Joseph Myers <joseph@codesourcery.com>
2159
2160 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
2161 standards modes.
2162 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
2163 to mean lack of IEEE 754 support.
2164
9148bda3 21652013-11-05 Tobias Burnus <burnus@net-b.de>
2166
2167 * c.opt (-Wdate-time): New option
2168 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
2169
08c5f4d5 21702013-11-05 Joseph Myers <joseph@codesourcery.com>
2171
2172 * c-cppbuiltin.c (cpp_iec_559_value): Test
2173 flag_excess_precision_cmdline not flag_excess_precision.
2174
c630ef93 21752013-11-05 Tobias Burnus <burnus@net-b.de>
2176
2177 * c.opt (fopenmp-simd): New option.
2178 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
2179 (omp_pragmas): ... this new struct.
2180 (c_pp_lookup_pragma): Also walk omp_pragmas.
2181 (init_pragma): Init pragmas for -fopenmp-simd.
2182
7354a89b 21832013-11-04 Marek Polacek <polacek@redhat.com>
2184
2185 PR c++/58979
2186 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
2187
4c866b9b 21882013-11-04 Joseph Myers <joseph@codesourcery.com>
2189
2190 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
2191 New functions.
2192 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
2193
e2a6a333 21942013-11-04 Eric Botcazou <ebotcazou@adacore.com>
2195
2196 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
2197 (dump_ada_specs): Adjust prototype of second callback.
2198 * c-ada-spec.c (cpp_check): New global variable.
2199 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
2200 (print_generic_ada_decl): Likewise.
2201 (has_static_fields): Change return type to bool and add guard.
2202 (has_nontrivial_methods): New predicate.
2203 (is_tagged_type): Change return type to bool.
2204 (separate_class_package): Call has_nontrivial_methods.
2205 (pp_ada_tree_identifier): Minor tweaks.
2206 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
2207 (dump_ada_array_domains): Likewise.
2208 (dump_ada_array_type): Likewise.
2209 (dump_template_types): Remove cpp_check parameter and do not pass it to
2210 dump_generic_ada_node.
2211 (dump_ada_template): Likewise.
2212 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
2213 recursively.
2214 (print_ada_methods): Change return type to integer. Remove cpp_check
2215 parameter and do not pass it down.
2216 (dump_nested_types): Remove cpp_check parameter and do not pass it to
2217 dump_generic_ada_node.
2218 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
2219 accessing methods.
2220 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
2221 down. Use has_nontrivial_methods to recognize C++ classes. Use return
2222 value of print_ada_methods.
2223 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
2224 Set cpp_check to it before invoking dump_ada_nodes.
2225 (dump_ada_specs): Likewise.
2226
2c4c3477 22272013-11-03 Marek Polacek <polacek@redhat.com>
2228
2229 * c-ubsan.c: Don't include hash-table.h.
2230 (ubsan_instrument_vla): New function.
2231 * c-ubsan.h: Declare it.
2232
452659af 22332013-10-31 David Malcolm <dmalcolm@redhat.com>
2234
2235 Automated part of renaming of symtab_node_base to symtab_node.
2236
2237 Patch autogenerated by rename_symtab.py from
2238 https://github.com/davidmalcolm/gcc-refactoring-scripts
2239 revision 58bb219cc090b2f4516a9297d868c245495ee622
2240
2241 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
2242 symtab_node_base to symtab_node.
2243
4d6f7dd4 22442013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
2245
2246 Implement C++14 digit separators.
2247 * c-lex.c (interpret_float): Remove digit separators from scratch string
2248 before building real literal.
2249
06cfe805 22502013-10-30 Jakub Jelinek <jakub@redhat.com>
2251
2252 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
2253
d037099f 22542013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
2255
2256 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
2257 fields.
2258 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
2259 enabled.
2260 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
2261 (insert_cilk_frame): New prototype.
2262 (cilk_init_builtins): Likewise.
2263 (gimplify_cilk_spawn): Likewise.
2264 (c_cilk_install_body_w_frame_cleanup): Likewise.
2265 (cilk_detect_spawn_and_unwrap): Likewise.
2266 (cilk_set_spawn_marker): Likewise.
2267 (build_cilk_sync): Likewise.
2268 (build_cilk_spawn): Likewise.
2269 * cilk.c: New file.
2270
02774f2d 22712013-10-29 David Malcolm <dmalcolm@redhat.com>
2272
2273 Patch autogenerated by refactor_symtab.py from
2274 https://github.com/davidmalcolm/gcc-refactoring-scripts
2275 revision 58bb219cc090b2f4516a9297d868c245495ee622
2276
2277 * c-gimplify.c (c_genericize): Update for conversion of symtab types
2278 to a true class hierarchy.
2279 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
2280
31fe10fd 22812013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
2282
2283 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
2284
b1c06ff9 22852013-10-26 Jeff Law <law@redhat.com>
2286
1f78217c 2287 * c-common.c (c_define_builtins): Remove mudflap support.
2288 * c.opt: Ignore and warn for mudflap options.
b1c06ff9 2289
48a972c8 22902013-10-24 Tobias Burnus <burnus@net-b.de>
4644b593 2291
2292 PR other/33426
2293 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
2294 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
2295
546a04b1 22962013-10-23 Jason Merrill <jason@redhat.com>
2297
2298 * c-format.c (gcc_cxxdiag_char_table): Add %X.
2299
bc7bff74 23002013-10-11 Jakub Jelinek <jakub@redhat.com>
2301
d62c713e 2302 * c-common.h (omp_clause_mask::operator !=): New method.
2303 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
2304 instead of if (mask & something) tests everywhere.
2305
bc7bff74 2306 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
2307 201307 instead of 201107.
2308 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
2309 (c_common_attribute_table): Add "omp declare target" and
2310 "omp declare simd" attributes.
2311 (handle_omp_declare_target_attribute,
2312 handle_omp_declare_simd_attribute): New functions.
2313 * c-omp.c: Include c-pragma.h.
2314 (c_finish_omp_taskgroup): New function.
2315 (c_finish_omp_atomic): Add swapped argument, if true,
2316 build the operation first with rhs, lhs arguments and use NOP_EXPR
2317 build_modify_expr.
2318 (c_finish_omp_for): Add code argument, pass it down to make_code.
2319 (c_omp_split_clauses): New function.
2320 (c_split_parallel_clauses): Removed.
2321 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
2322 c_omp_declare_simd_clauses_to_decls): New functions.
2323 * c-common.h (omp_clause_mask): New type.
2324 (OMP_CLAUSE_MASK_1): Define.
2325 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
2326 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
2327 omp_clause_mask::operator |, omp_clause_mask::operator &,
2328 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
2329 omp_clause_mask::operator ==): New methods.
2330 (enum c_omp_clause_split): New.
2331 (c_finish_omp_taskgroup): New prototype.
2332 (c_finish_omp_atomic): Add swapped argument.
2333 (c_finish_omp_for): Add code argument.
2334 (c_omp_split_clauses): New prototype.
2335 (c_split_parallel_clauses): Removed.
2336 (c_omp_declare_simd_clauses_to_numbers,
2337 c_omp_declare_simd_clauses_to_decls): New prototypes.
2338 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
2339 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
2340 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
2341 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
2342 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
2343 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
2344 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
2345 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
2346 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
2347 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
2348 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
2349 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
2350 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
2351 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
2352 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
2353 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
2354 PRAGMA_OMP_CLAUSE_UNIFORM.
2355
d7dcba40 23562013-10-09 Marc Glisse <marc.glisse@inria.fr>
2357
2358 PR tree-optimization/20318
2359 * c-common.c (handle_returns_nonnull_attribute): New function.
2360 (c_common_attribute_table): Add returns_nonnull.
2361
0b7282f1 23622013-10-03 Marc Glisse <marc.glisse@inria.fr>
2363
2364 PR c++/19476
2365 * c.opt (fcheck-new): Move to common.opt.
2366
51f553af 23672013-09-25 Marek Polacek <polacek@redhat.com>
2368 Jakub Jelinek <jakub@redhat.com>
2369
2370 PR sanitizer/58413
2371 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
2372 an expression if we can prove it is correct.
2373 (ubsan_instrument_division): Likewise. Remove unnecessary
2374 check.
2375
05f893e1 23762013-09-18 Marek Polacek <polacek@redhat.com>
2377
2378 PR sanitizer/58411
2379 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
2380 Declare it.
2381 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
2382
236ce1d1 23832013-09-14 Iain Sandoe <iain@codesourcery.com>
2384
2385 PR target/48094
2386 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
2387 fobjc-gc, freplace-objc-classes): Accept for LTO.
2388
f9f68d35 23892013-09-13 Jacek Caban <jacek@codeweavers.com>
2390
2391 * c-target.def: New hook
2392
ba2f764e 23932013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
2394
2395 PR c++/43452
2396 * c.opt (Wdelete-incomplete): Add.
2397
73437615 23982013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
2399
2400 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
2401 (vector_types_compatible_elements_p): New function.
2402 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
2403 declaration.
2404 (vector_types_compatible_elements_p): Declare.
2405
95af4c75 24062013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2407
2408 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
2409 a virtual member function.
2410 (pp_simple_type_specifier): Remove.
2411 (pp_c_type_specifier): Likewise.
2412 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
2413 Rename from pp_c_type_specifier. Adjust.
2414 (c_pretty_printer::c_pretty_printer): Do not assign to
2415 simple_type_specifier.
2416
eaab24b9 24172013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2418
2419 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
2420 member function.
2421 (c_pretty_printer::storage_class_specifier): Likewise.
2422 (c_pretty_printer::initializer): Likewise.
2423 (pp_declaration): Remove.
2424 (pp_declaration_specifiers): Likewise.
2425 (pp_abstract_declarator): Likewise.
2426 (pp_declarator): Likewise.
2427 (pp_type_id): Likewise.
2428 (pp_statement): Likewise.
2429 (pp_constant): Likewise.
2430 (pp_id_expression): Likewise.
2431 (pp_primary_expression): Likewise.
2432 (pp_unary_expression): Likewise.
2433 (pp_multiplicative_expression): Likewise.
2434 (pp_conditional_expression): Likewise.
2435 (pp_assignment_expression): Likewise.
2436 (pp_expression): Likewise.
2437 (pp_c_type_id): Likewise.
2438 (pp_c_storage_class_specifier): Likewise.
2439 * c-pretty-print.c (pp_c_type_cast): Tidy.
2440 (pp_c_pointer): Likewise.
2441 (pp_c_type_specifier): Likewise.
2442 (pp_c_parameter_type_list): Likewise.
2443 (pp_c_function_definition): Likewise.
2444 (pp_c_init_declarator): Likewise.
2445 (pp_c_initializer_list): Likewise.
2446 (pp_c_constructor_elts): Likewise.
2447 (c_pretty_printer::direct_abstract_declarator): Likewise.
2448 (c_pretty_printer::declaration_specifiers): Likewise.
2449 (c_pretty_printer::primary_expression): Likewise.
2450 (c_pretty_printer::postfix_expression): Likewise.
2451 (c_pretty_printer::type_id): Rename from pp_c_type_id.
2452 (c_pretty_printer::storage_class_specifier): Rename from
2453 pp_c_storage_class_specifier.
2454 (c_pretty_printer::initializer): Rename from pp_c_initializer.
2455 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
2456 storage_class_specifier, initializer, offset_list, flags.
2457
9e46467d 24582013-08-30 Marek Polacek <polacek@redhat.com>
2459
2460 * c-ubsan.c: New file.
2461 * c-ubsan.h: New file.
2462
36a8d9b9 24632013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2464
2465 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
2466 member function.
2467 (c_pretty_printer::declaration_specifiers): Likewise.
2468 (c_pretty_printer::declarator): Likewise.
2469 (c_pretty_printer::abstract_declarator): Likewise.
2470 (c_pretty_printer::direct_abstract_declarator): Likewise.
2471 (c_pretty_printer::direct_declarator): Likewise.
2472 (c_pretty_printer::function_specifier): Likewise.
2473 (pp_declaration): Adjust.
2474 (pp_declaration_specifiers): Likewise.
2475 (pp_abstract_declarator): Likewise.
2476 (pp_direct_declarator): Likewise.
2477 (pp_function_specifier): Likewise.
2478 (pp_direct_abstract_declarator): Remove as unused.
2479 (pp_c_declaration): Remove.
2480 (pp_c_declaration_specifiers): Likewise.
2481 (pp_c_declarator): Likewise.
2482 (pp_c_direct_declarator): Likewise.
2483 (pp_c_function_specifier): Likewise.
2484 (pp_c_direct_abstract_declarator): Likewise.
2485 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
2486 from pp_c_abstract_declarator. Adjust.
2487 (c_pretty_printer::direct_abstract_declarator): Rename from
2488 pp_c_direct_abstract_declarator. Adjust.
2489 (c_pretty_printer::function_specifier): Rename from
2490 pp_c_function_specifier. Adjust.
2491 (c_pretty_printer::declaration_specifiers): Rename from
2492 pp_c_declaration_specifiers. Adjust.
2493 (c_pretty_printer::direct_declarator): Rename from
2494 pp_c_direct_declarator. Adjust.
2495 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
2496 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
2497 (c_pretty_printer::c_pretty_printer): Do not assign to
2498 declaration, declaration_specifiers, declarator,
2499 direct_declarator, direct_abstract_declarator, function_specifier.
2500
30635c2e 25012013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
2502
2503 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
2504 virtual member function.
2505 (c_pretty_printer::multiplicative_expression): Likewise.
2506 (c_pretty_printer::conditional_expression): Likewise.
2507 (c_pretty_printer::assignment_expression): Likewise.
2508 (c_pretty_printer::expression): Likewise.
2509 (pp_unary_expression): Adjust.
2510 (pp_multiplicative_expression): Likewise.
2511 (pp_assignment_expression): Likewise.
2512 (pp_conditional_expression): Likewise.
2513 (pp_expression): Likewise.
2514 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
2515 from pp_c_unary_expression. Adjust.
2516 (c_pretty_printer::multiplicative_expression): Rename from
2517 pp_c_multiplicative_expression. Adjust.
2518 (c_pretty_printer::conditional_expression): Rename from
2519 pp_c_conditional_expression. Adjust.
2520 (c_pretty_printer::assignment_expression): Rename from
2521 pp_c_assignment_expression. Adjust.
2522 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
2523 (c_pretty_printer::c_pretty_printer): Do not assign to
2524 unary_expression, multiplicative_expression,
2525 conditional_expression, expression.
2526
027d08ed 25272013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2528
2529 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
2530 virtual member function.
2531 (pp_postfix_expression): Adjust.
2532 (pp_c_postfix_expression): Remove.
2533 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
2534 from pp_c_postfix_expression. Adjust.
2535 (c_pretty_printer::c_pretty_printer): Do not assign to
2536 postfix_expression.
2537
f873303a 25382013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2539
2540 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
2541 virtua member function.
2542 (pp_primary_expression): Adjust.
2543 (pp_c_primary_expression): Remove.
2544 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
2545 from pp_c_primary_expression. Adjust.
2546 (pp_c_initializer_list): Use pp_primary_expression.
2547 (c_pretty_printer::c_pretty_printer): Do not assign to
2548 primary_expression.
2549
08e3e481 25502013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2551
2552 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
2553 * c-pretty-print.c (M_): Remove.
2554 (c_pretty_printer::translate_string): Define.
2555 (pp_c_type_specifier): Use it.
2556 (pp_c_primary_expression): Likewise.
2557 (pp_c_expression): Likewise.
2558
1fc4a87f 25592013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
2560
2561 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
2562 virtual function.
2563 (pp_c_id_expression): Remove.
2564 (pp_id_expression): Adjust.
2565 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
2566 pp_c_id_expression. Adjust.
2567 (pp_c_postfix_expression): Use pp_id_expression.
2568 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
2569
a6cb161b 25702013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
2571
2572 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
2573 member function.
2574 (pp_constant): Adjust.
2575 (pp_c_constant): Remove.
2576 * c-pretty-print.c (c_pretty_printer::constant): Rename from
2577 pp_c_constant. Adjust.
2578 (pp_c_constant)
2579 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
2580 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
2581
eed6bc21 25822013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2583
2584 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
2585 (c_pretty_printer::c_pretty_printer): Declare.
2586 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
2587 c_pretty_printer_init. Adjust.
2588 (print_c_tree): Do not call c_pretty_printer_init.
2589 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
2590
df558d2e 25912013-08-09 Arnaud Charlet <charlet@adacore.com>
2592
2593 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
2594
42f9a786 25952013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
2596
2597 PR c++/58080
2598 * c-common.c (pointer_int_sum): Add bool parameter.
2599 * c-common.h (pointer_int_sum): Adjust declaration.
2600
f874ddad 26012013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
2602
2603 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
2604 c_pretty_printer variable.
2605
a94db6b0 26062013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2607
2608 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
2609 (pp_base): Remove.
2610 (pp_c_base): Likewise. Adjust users.
2611 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
2612 (pp_c_whitespace): Do not call pp_base.
2613 (pp_c_left_paren): Likewise.
2614 (pp_c_right_paren): Likewise.
2615 (pp_c_left_brace): Likewise.
2616 (pp_c_right_brace): Likewise.
2617 (pp_c_left_bracket): Likewise.
2618 (pp_c_right_bracket): Likewise.
2619 (pp_c_dot): Likewise.
2620 (pp_c_ampersand): Likewise.
2621 (pp_c_star): Likewise.
2622 (pp_c_arrow): Likewise.
2623 (pp_c_semicolon): Likewise.
2624 (pp_c_complement): Likewise.
2625 (pp_c_exclamation): Likewise.
2626 (pp_c_direct_declarator): Likewise.
2627 (pp_c_ws_string): Likewise.
2628 (pp_c_identifier): Likewise.
2629 (pp_c_statement): Likewise.
2630 (print_c_tree): Likewise.
2631
1898176c 26322013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
2633
2634 PR c++/58072
2635 * c-common.c (c_parse_error): Catch user-defined literal tokens and
2636 provide useful error strings.
2637
70d60d1d 26382013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2639
2640 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
2641 printer functions instead of pp_string or operators and punctuators.
2642 (dump_generic_ada_node): Likewise.
2643 * c-pretty-print.c (pp_c_type_specifier): Likewise.
2644 (pp_c_relational_expression): Likewise.
2645 (pp_c_logical_or_expression): Likewise.
2646
dda4f0ec 26472013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2648
2649 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
2650 functions instead of pp_character.
2651 (pp_ada_tree_identifier): Likewise.
2652 (dump_ada_double_name): Likewise.
2653 (dump_ada_function_declaration): Likewise.
2654 (dump_ada_array_domains): Likewise.
2655 (dump_template_types): Likewise.
2656 (dump_generic_ada_node): Likewise.
2657 (print_ada_declaration): Likewise.
2658 (print_ada_struct_decl): Likewise.
2659 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2660
7aa04c8d 26612013-07-23 Tom Tromey <tromey@redhat.com>
2662
2663 * c-common.h (enum rid) <RID_GENERIC>: New constant.
2664 * c-common.c (c_common_reswords): Add _Generic.
2665
a04e8d62 26662013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
2667
2668 * c-common.c: Fix typos.
2669 * c-common.h: Likewise.
2670
a96c3cc1 26712013-07-13 Lubos Lunak <l.lunak@suse.cz>
2672
2673 PR c++/55203
2674 * c-common.c (c_common_attribute_table): Add warn_unused.
2675 (handle_warn_unused_attribute): New.
2676
da31536d 26772013-07-10 Jakub Jelinek <jakub@redhat.com>
2678
2679 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
2680 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
2681
839f2f70 26822013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
2683
2684 PR c++/57869
2685 * c.opt: Add Wconditionally-supported.
2686
73f353d0 26872013-07-08 Graham Stott <graham.stott@btinternet.com>
2688
1f78217c 2689 * array-notation-common.c (length_mismatch_in_expr_p): Delete
73f353d0 2690 unused variables l_length and l_node.
2691
21ebaa24 26922013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
f5298614 2693
2694 PR c/57821
2695 * c-common.c (complete_array_type): Delay folding first index
2696 like other indices. When folding, check for index overflow.
2697
68ea4406 26982013-06-27 Marc Glisse <marc.glisse@inria.fr>
2699
2700 PR c++/57509
2701 * c-common.h (c_build_vec_perm_expr): New complain argument.
2702 * c-common.c (c_build_vec_perm_expr): Likewise.
2703 Use save_expr also in C++.
2704
60777f69 27052013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2706
2707 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
2708 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2709 * c-opts.c (c_common_post_options): Likewise.
2710
839f2f70 27112013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
50acebe0 2712
2713 * array-notation-common.c (length_mismatch_in_expr): Changed the
2714 parameter type's from a dynamic array to a vec_tree. Also removed
2715 the size parameters.
2716 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
2717 the change above.
2718
e9331eab 27192013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
2720
2721 * c-common.h (struct cilkplus_an_parts): New structure.
2722 (struct cilkplus_an_loop_parts): Likewise.
2723 (cilkplus_extract_an_triplets): New prototype.
2724 (fix_sec_implicit_args): Likewise.
2725 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
2726 (fix_sec_implicit_args): Likewise.
60777f69 2727
a9c99fc4 27282013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
2729
2730 * array-notation-common.c (find_inv_trees): Removed an unwanted
2731 typecasting.
2732 * c-common.h (struct inv_list::additional_tcodes): Changed type from
2733 enum rid to enum tree_code.
2734
f2526cce 27352013-06-11 Jan Hubicka <jh@suse.cz>
2736
2737 * c-common.c (handle_alias_ifunc_attribute): Do not set
2738 DECL_EXTERNAL for weakref variables.
2739 * c-pragma.c (handle_pragma_weak): Make sure aliases
2740 are not declared as external.
2741
09970d67 27422013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
2743
2744 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
2745 function from c/c-array-notation.c.
2746 (is_cilkplus_reduce_builtin): Likewise.
2747 (find_rank): Likewise.
2748 (extract_array_notation_exprs): Likewise.
2749 (replace_array_notations): Likewise.
2750 (find_inv_trees): Likewise.
2751 (replace_inv_trees): Likewise.
2752 (contains_array_notation_expr): Likewise.
2753 (find_correct_array_notation_type): Likewise.
2754 * c-common.h (struct inv_list): Moved this struct from the file
2755 c/c-array-notation.c and added a new field called additional tcodes.
2756 (length_mismatch_in_expr_p): New prototype.
2757 (is_cilkplus_reduce_builtin): Likewise.
2758 (find_rank): Likewise.
2759 (extract_array_notation_exprs): Likewise.
2760 (replace_array_notation): Likewise.
2761 (find_inv_trees): Likewise.
2762 (replace_inv_trees): Likewise.
2763 (find_correct_array_notation_type): Likewise.
839f2f70 2764
3c6d4197 27652013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
2766
2767 * c-common.c (c_define_builtins): When cilkplus is enabled, the
2768 function array_notation_init_builtins is called.
2769 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
2770 * c-common.def (ARRAY_NOTATION_REF): New tree.
2771 * c-common.h (build_array_notation_expr): New function declaration.
2772 (build_array_notation_ref): Likewise.
2773 (extract_sec_implicit_index_arg): New extern declaration.
2774 (is_sec_implicit_index_fn): Likewise.
2775 (ARRAY_NOTATION_CHECK): New define.
2776 (ARRAY_NOTATION_ARRAY): Likewise.
2777 (ARRAY_NOTATION_START): Likewise.
2778 (ARRAY_NOTATION_LENGTH): Likewise.
2779 (ARRAY_NOTATION_STRIDE): Likewise.
2780 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
2781 ARRAY_NOTATION_REF.
2782 (pp_c_expression): Likewise.
2783 * c.opt (flag_enable_cilkplus): New flag.
2784 * array-notation-common.c: New file.
2785
8e71dad2 27862013-05-14 Jakub Jelinek <jakub@redhat.com>
2787
2788 PR c++/57274
2789 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
2790
432dd330 27912013-05-10 Marc Glisse <marc.glisse@inria.fr>
2792
2793 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
2794 vectors.
2795
b156ec37 27962013-05-07 Han Shen <shenhan@google.com>
2797
2798 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
2799
1a087624 28002013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2801
2802 * c-common.c (check_user_alignment): Emit error for negative values.
2803
1638c736 28042013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2805
2806 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
2807
949dbf93 28082013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2809
2810 * c-cppbuiltin.c (c_cpp_builtins): Do not define
2811 __GXX_EXPERIMENTAL_CXX1Y__.
2812
9205a6cc 28132013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2814 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2815
2816 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
2817 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
2818 to simply use OPT_Wpointer_arith.
2819 (c_sizeof_or_alignof_type): Likewise.
2820
05d0bce1 28212013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2822
2823 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
2824
41609f8b 28252013-04-12 Jakub Jelinek <jakub@redhat.com>
2826
2827 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
2828 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
2829 specifiers.
2830
c671dc4f 28312013-04-07 Steven Bosscher <steven@gcc.gnu.org>
2832
2833 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
2834
ba125576 28352013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
2836
2837 * c-common.c (pointer_int_sum): Remove dead code.
2838
9d3fa937 28392013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
2840
2841 PR middle-end/56524
2842 * c-common.c (handle_optimize_attribute): Don't call
2843 save_optabs_if_changed.
2844
5ceebb21 28452013-03-05 Jakub Jelinek <jakub@redhat.com>
2846
2847 PR middle-end/56461
2848 * c-pch.c (pch_init): Free target_validity at the end.
2849
18eeed2b 28502013-03-04 Jakub Jelinek <jakub@redhat.com>
2851
2852 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
2853
a9196da9 28542013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
2855 Jakub Jelinek <jakub@redhat.com>
2856
2857 PR sanitizer/56454
2858 * c-common.c (handle_no_sanitize_address_attribute): New function.
2859 (c_common_attribute_table): Add no_sanitize_address attribute.
2860 (handle_no_address_safety_analysis_attribute): Add
2861 no_sanitize_address attribute, not no_address_safety_analysis
2862 attribute.
2863
15c27dda 28642013-02-18 Aldy Hernandez <aldyh@redhat.com>
08c7d04b 2865
2866 PR target/52555
2867 * c-common.c (handle_optimize_attribute): Call
2868 save_optabs_if_changed.
2869
19426fe1 28702013-02-18 Jakub Jelinek <jakub@redhat.com>
2871 Steven Bosscher <steven@gcc.gnu.org>
2872
2873 PR pch/54117
2874 * c-opts.c (c_common_post_options): If debug info is enabled
2875 and non-dwarf*, refuse to load PCH files and when writing PCH
2876 file warn.
2877
df936998 28782013-02-05 Jakub Jelinek <jakub@redhat.com>
2879
2880 PR middle-end/56167
2881 * c-common.c (handle_error_attribute): Fix condition.
2882
ae0c3984 28832013-01-30 Jakub Jelinek <jakub@redhat.com>
2884
2885 PR c++/55742
2886 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
2887
1c4973d7 28882013-01-18 Jason Merrill <jason@redhat.com>
2889
2890 PR target/54908
2891 * c.opt (-fextern-tls-init): New.
2892 * c-opts.c (c_common_post_options): Handle it.
2893
7c834436 28942013-01-09 Jakub Jelinek <jakub@redhat.com>
2895
2896 PR c/48418
2897 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
2898 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
2899 and is either negative or bigger or equal to type precision
2900 of the first operand.
2901
5abaa10a 29022012-12-03 Marek Polacek <polacek@redhat.com>
2903
2904 PR c/55570
2905 * c-common.c (check_user_alignment): Swap order of tests,
2906 check TREE_CODE first.
2907
324ca377 29082012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
2909
2910 PR c++/52654
2911 * c-common.h (overflow_type): New enum.
2912 (build_userdef_literal): Add overflow_type argument.
2913 (tree_userdef_literal): Add overflow_type.
2914 (USERDEF_LITERAL_OVERFLOW): New access macro.
2915 * c-common.c (build_userdef_literal): Add overflow_type
2916 argument.
2917 * c-lex.c (c_lex_with_flags): Add overflow_type to
2918 build_userdef_literal calls.
2919 (interpret_integer, interpret_float): Add overflow_type argument.
2920
b4c4a429 29212012-11-28 Richard Biener <rguenther@suse.de>
2922
2923 PR c/35634
2924 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2925 here and use a type with proper overflow behavior for types that would
2926 need to be promoted for the arithmetic.
2927
d413ffdd 29282012-11-23 Jakub Jelinek <jakub@redhat.com>
2929
2930 PR sanitizer/55435
2931 * c-common.c (handle_no_address_safety_analysis_attribute): New
2932 function.
2933 (c_common_attribute_table): Add no_address_safety_analysis.
2934
52bc861d 29352012-11-16 Simon Baldwin <simonb@google.com>
2936
2937 * c.opt: Add f[no-]canonical-system-headers.
2938 * c-opts.c (c_common_handle_option): Handle
2939 OPT_fcanonical_system_headers.
2940
2dd00636 29412012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
2942
2943 PR c++/54413
2944 * c-opts.c (c_common_handle_option): Set new flags.
2945 * c.opt: Describe new flags.
2946
d4701f6c 29472012-11-09 Jason Merrill <jason@redhat.com>
2948
2949 * c.opt (Wabi-tag): New.
2950
72d65da9 29512012-11-09 Andi Kleen <ak@linux.intel.com>
2952
2953 PR 55139
2954 * c-common.c (get_atomic_generic_size): Mask with
2955 MEMMODEL_MASK
2956
77a357e3 29572012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2958
2959 PR c/53063
2960 * c.opt (Wformat): Make it Alias Wformat=1.
2961 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
2962 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
2963 LangEnabledBy.
2964 (Wformat=): RejectNegative. Use LangEnabledBy.
2965 (Wnonnull): Use LangEnabledBy.
2966 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
2967 * c-format.c (set_Wformat): Delete.
2968 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
2969 (maybe_read_dollar_number): Likewise.
2970 (avoid_dollar_number): Likewise.
2971 (finish_dollar_format_checking): Likewise.
2972 (check_format_info): Likewise.
2973 (check_format_info_main): Likewise.
2974 (check_format_types): Likewise.
2975 (format_type_warning): Likewise.
2976 * c-common.c (int): Likewise.
2977 (check_function_sentinel): Likewise.
2978 * c-common.h (warn_format,set_Wformat): Do not declare here.
2979
45efa6b9 29802012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2981
2982 PR c/53063
2983 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
2984 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
2985 Use LangEnabledBy.
2986 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
2987 common.opt.
2988 (Wvariadic-macros): Init(1).
2989 * c-opts.c (c_common_handle_option): Do not handle them
2990 explicitly.
2991 (c_common_post_options): Likewise.
2992 (sanitize_cpp_opts): warn_unused_macros is now
2993 cpp_warn_unused_macros.
2994 (push_command_line_include): Likewise.
2995 * c-common.c (warn_unknown_pragmas): Do not define.
2996 * c-common.h (warn_unknown_pragmas): Do not declare.
2997
0e4e775a 29982012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2999
3000 PR c/51294
3001 * c-common.c (conversion_warning): Handle conditional expressions.
3002
8b447d3f 30032012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
3004
3005 PR c++/54930
3006 * c.opt (Wreturn_local_addr): Define new option.
3007
f4a61754 30082012-10-25 Jason Merrill <jason@redhat.com>
3009
ecb10e6a 3010 * c.opt (Wvirtual-move-assign): New.
3011
f4a61754 3012 * c.opt (Winherited-variadic-ctor): New.
3013
7b463b19 30142012-10-25 Marc Glisse <marc.glisse@inria.fr>
3015
3016 PR c++/54427
3017 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
3018
6adc88f8 30192012-10-23 Joseph Myers <joseph@codesourcery.com>
3020
3021 * c-common.h (pch_cpp_save_state): Declare.
3022 * c-target.def (c_preinclude): New hook.
3023 * c-opts.c (done_preinclude): New.
3024 (push_command_line_include): Handle default preincluded header.
3025 (cb_file_change): Call pch_cpp_save_state when calling
3026 push_command_line_include.
3027 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
3028 (pch_cpp_save_state): New.
3029 (pch_init): Call pch_cpp_save_state conditionally, instead of
3030 calling cpp_save_state.
3031
fa816b0b 30322012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3033
3034 PR c/53063
3035 PR c/40989
3036 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
3037 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
3038 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
3039 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
3040 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
3041 * c-opts.c (c_common_handle_option): Remove explicit handling from
3042 here.
3043 (c_common_post_options): Likewise.
3044
d214ccee 30452012-10-18 Eric Botcazou <ebotcazou@adacore.com>
3046
3047 * c-ada-spec.c (LOCATION_COL): Delete.
3048 (compare_location): New function.
3049 (compare_node): Use it.
3050 (compare_comment): Likewise.
3051
77b27208 30522012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
3053
3054 PR c/53063
3055 PR c/40989
3056 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
3057 * c-opts.c (c_common_handle_option): Do not set them here. Add
3058 comment.
3059 (c_common_post_options): Likewise.
3060
cc02ca4d 30612012-10-16 Eric Botcazou <ebotcazou@adacore.com>
3062
3063 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
3064 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
3065 Remove POINTER_TYPE handling, add large unsigned handling and use
3066 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
3067
57f872a2 30682012-10-12 Jakub Jelinek <jakub@redhat.com>
3069
3070 PR c/54381
3071 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
3072 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
3073 locs and array of 3 trees instead of just single loc and single
3074 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
3075 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
3076 For *cmp* builtins that take two sources strings report warnings
3077 about first and second source, not about destination and source.
3078
7354ad2e 30792012-10-12 Marc Glisse <marc.glisse@inria.fr>
3080
3081 PR c++/53055
3082 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
3083
1ac7f120 30842012-10-11 Eric Botcazou <ebotcazou@adacore.com>
3085
3086 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
3087 declaring something coming from another file.
3088
1e0cc9e3 30892012-10-10 Arnaud Charlet <charlet@adacore.com>
3090
1ac7f120 3091 PR ada/54845
1e0cc9e3 3092 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
3093
b0e7825e 30942012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
3095
3096 PR c++/54194
3097 * c-common.c (warn_about_parentheses): Add location_t parameter;
3098 use EXPR_LOC_OR_LOC.
3099 * c-common.h: Update declaration.
3100
41ed701a 31012012-10-09 Marc Glisse <marc.glisse@inria.fr>
3102
3103 PR c++/54427
3104 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
3105 more operations. Make error messages optional.
3106 * c-common.h (enum stv_conv): Moved from c-typeck.c.
3107 (scalar_to_vector): Declare.
3108
3740094c 31092012-10-08 Jason Merrill <jason@redhat.com>
3110
3111 * c-common.c (c_common_reswords): Add thread_local.
3112
ffcdbf9c 31132012-10-08 Dodji Seketeli <dodji@redhat.com>
3114
3115 PR c++/53528 C++11 attribute support
3116 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
3117 new functions.
3118 * c-common.c (check_cxx_fundamental_alignment_constraints): New
3119 static function.
3120 (handle_aligned_attribute): In choose strictest alignment
3121 among many. Use new check_cxx_fundamental_alignment_constraints.
3122 (handle_transparent_union_attribute): In c++11 attribute syntax,
3123 don't look through typedefs.
3124
ef34afc1 31252012-10-04 Arnaud Charlet <charlet@adacore.com>
3126
3127 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
3128 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
3129 out of dumpfile.h.
3130
f1ff4562 31312012-09-25 Dehao Chen <dehao@google.com>
3132
3133 PR middle-end/54645
ef34afc1 3134 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
f1ff4562 3135 map when read in the pch.
3136
735538a1 31372012-09-18 Arnaud Charlet <charlet@adacore.com>
3138
3139 * c-ada-spec.c: Style fixes.
3140
9120cdc8 31412012-09-18 Thomas Quinot <quinot@adacore.com>
3142
3143 * c.opt (-fada-spec-parent): Define new command line switch.
3144 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
3145 is specified, generate binding spec as a child of the specified unit.
3146
8eba82c2 31472012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
3148 Manuel López-Ibáñez <manu@gcc.gnu.org>
3149
3150 PR c++/53210
3151 * c.opt ([Winit-self]): Enabled by -Wall in C++.
3152
38682990 31532012-08-23 Arnaud Charlet <charlet@adacore.com>
3154
3155 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
3156 for pointers, and add missing Convention C pragma.
3157 (print_ada_struct_decl): Add missing aliased keyword.
3158 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
3159
f003f5dc 31602012-08-17 Jakub Jelinek <jakub@redhat.com>
3161
3162 * c-common.c (sizeof_pointer_memaccess_warning): New function.
3163 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
3164 * c-opts.c (c_common_handle_option): Enable it for -Wall.
3165 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
3166 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
3167
ec11736b 31682012-08-10 Richard Guenther <rguenther@suse.de>
3169
3170 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
3171
5f7f600e 31722012-08-07 Steven Bosscher <steven@gcc.gnu.org>
3173
3174 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
3175 instead of separate pp_newline and pp_flush.
3176 (print_c_tree): Likewise.
3177
758a38ab 31782012-07-26 Richard Henderson <rth@redhat.com>
3179
3180 * c-common.c (handle_hot_attribute): Allow labels.
3181 (handle_cold_attribute): Likewise.
3182
9ca77b08 31832012-07-20 Jakub Jelinek <jakub@redhat.com>
3184
3185 PR c++/28656
3186 * c-common.c (check_function_nonnull): Handle multiple nonnull
3187 attributes properly.
3188
b9ed1410 31892012-07-16 Steven Bosscher <steven@gcc.gnu.org>
3190
3191 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
3192 * c-ada-spec.c: Likewise.
3193 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
3194
c2a65b90 31952012-07-14 Steven Bosscher <steven@gcc.gnu.org>
3196
3197 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
3198 Remove code conditional on it.
3199
88c5a1d1 32002012-07-11 Steven Bosscher <steven@gcc.gnu.org>
3201
3202 * c-gimplify.c: Do not include basic-block.h.
3203 * c-common.c: Do not include linfuncs.h.
3204
4a020a8c 32052012-07-08 Steven Bosscher <steven@gcc.gnu.org>
3206
3207 * c-common.h: Include tree.h.
3208
c28ddc97 32092012-07-02 Jason Merrill <jason@redhat.com>
3210
3211 PR c++/53524
3212 * c-common.c (get_priority): Call default_conversion.
3213
405ed67f 32142012-07-01 Uros Bizjak <ubizjak@gmail.com>
3215
3216 * c-pch.c (c_common_write_pch): Remove unused variables.
3217
e53d55e7 32182012-06-29 Steven Bosscher <steven@gcc.gnu.org>
3219
3220 * cppspec.c: Moved from gcc/ to here.
3221
3d9c25ec 32222012-06-27 Kai Tietz <ktietz@redhat.com>
3223
3224 PR preprocessor/37215
3225 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
3226
3169c57a 32272012-06-21 Steven Bosscher <steven@gcc.gnu.org>
3228
3229 * c-common.h (c_common_print_pch_checksum): Remove.
3230 * c-pch.c: Do not include output.h.
3231 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
3232 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
3233 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
3234 (struct c_pch_header): Remove.
3235 (get_ident): Update gpch version.
3236 (pch_init): Do not print executable_checksum to asm_out_file.
3237 Do not fail if there is no asm_out_file to read back from. Set
3238 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
3239 (c_common_write_pch): Verify that nothing was written to asm_out_file
3240 since pch_init was called. Do not write a c_pch_header, and do not
3241 copy from asm_out_file to the PCH.
3242 (c_common_read_pch): Do not read a c_pch_header, and do not restore
3243 the content of asm_out_file from the PCH.
3244 (c_common_print_pch_checksum): Remove.
3245 * c-opts.c (c_common_init): Print out executable_checksum directly.
3246
ff6624bc 32472012-06-19 Steven Bosscher <steven@gcc.gnu.org>
3248
3249 * c-target.def (objc_declare_unresolved_class_reference,
3250 objc_declare_class_definition): Add new hooks.
3251
367b1459 32522012-06-19 Steven Bosscher <steven@gcc.gnu.org>
3253
3254 * c-lex.c: Do not include output.h.
3255 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
3256 Remove uses of ASM_OUTPUT_IDENT.
3257
bf0cb017 32582012-06-15 Marc Glisse <marc.glisse@inria.fr>
3259
3260 PR c++/51033
3261 * c-common.h (c_build_vec_perm_expr): Move decl here.
3262 * c-common.c (c_build_vec_perm_expr): Move definition
3263 here.
3264
b37a3600 32652012-06-06 Steven Bosscher <steven@gcc.gnu.org>
3266
3267 * c.opt (fconserve-space): Turn into a no-op.
3268
19931eea 32692012-06-04 Sterling Augustine <saugustine@google.com>
5f9e7dd5 3270
3271 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
3272 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
3273 both the start and end of the function.
3274
dff12c10 32752012-06-04 Steven Bosscher <steven@gcc.gnu.org>
3276
3277 * c-common.c: Do not include output.h.
3278 * c-pragma.c: Likewise.
3279
5f9e7dd5 32802012-06-04 Steven Bosscher <steven@gcc.gnu.org>
3281
3282 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
3283 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
3284 (lang_decl_name): Handle namespace decls.
3285
b5369b7d 32862012-05-31 Steven Bosscher <steven@gcc.gnu.org>
3287
3288 * c-ada-spec.c: Do not include output.h.
3289 * c-semantics.c: Likewise.
3290
8032877c 32912012-05-29 Joseph Myers <joseph@codesourcery.com>
3292
3293 * c-common.c: Fix typo.
3294
7843e4bc 32952012-05-29 Michael Matz <matz@suse.de>
3296
3297 * c-common.h (c_expand_decl): Remove prototype.
3298
8cf857d4 32992012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3300
3301 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
3302 * c-opts.c (c_common_handle_option): Remove code handling
3303 warn_missing_braces.
3304
8b64dc3c 33052012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
3306
3307 PR c++/25137
3308 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
3309 -Wmissing_braces.
3310
43cbde16 33112012-05-22 Dodji Seketeli <dodji@redhat.com>
3312
3313 PR c++/53322
3314 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
3315
db490cb6 33162012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
3317
3318 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
3319 * c-opts.c (c_common_handle_option): Do not handle explicitly
3320 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
3321
a60f3e81 33222012-05-16 Dodji Seketeli <dodji@redhat.com>
3323
3324 PR preprocessor/7263
3325 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
3326 to cpp_classify_number. For diagnostics, use the precise location
3327 instead of the global input_location.
3328
82e6ef7c 33292012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
3330
cd4797ff 3331 PR c++/11856
82e6ef7c 3332 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
3333
258a168d 33342012-05-14 Bernd Schmidt <bernds@codesourcery.com>
3335
82e6ef7c 3336 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
258a168d 3337
d3b7ee7c 33382012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
3339
3340 PR 53063
3341 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
3342 Wreorder): Use LangEnabledBy.
3343 * c-opts.c (c_common_handle_option): Do not enable them
3344 explicitly. Call lang-specific generated functions.
3345 (c_common_post_options): Do not set them here.
3346
70059cea 33472012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
3348
3349 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
3350 Wmissing-field-initializers,Wmissing-parameter-type,
3351 Wold-style-declaration,Woverride-init): Use EnabledBy.
3352 * c-opts.c (c_common_post_options): Do not set here explicitly.
3353
fbb6fbd8 33542012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3355
3356 PR 53063
3357 * c-opts.c (c_common_handle_option): Use handle_generated_option
3358 to enable sub-options.
3359
61f69bc9 33602012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
3361
3362 PR c++/53158
3363 * c-common.c (warnings_for_convert_and_check): Use warning_at.
3364
5a1fe2db 33652012-05-10 Richard Guenther <rguenther@suse.de>
3366
3367 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
3368 adjust commentary about TYPE_IS_SIZETYPE types.
3369
d42e7c5a 33702012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3371
3372 PR c++/53261
3373 * c-common.c (warn_logical_operator): Check that argument of
3374 integer_zerop is not NULL.
3375
686369e8 33762012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
3377
3378 PR c/43772
3379 * c-common.c (warn_logical_operator): Do not warn if either side
3380 is already true or false.
3381
03fe1dc2 33822012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
3383
3384 PR c/51712
3385 * c-common.c (expr_original_type): New.
3386 (shorten_compare): Do not warn for enumeration types.
3387
bba5a206 33882012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3389
3390 * c.opt (fpermissive): Add Var(flag_permissive).
3391
7059d45d 33922012-04-30 Marc Glisse <marc.glisse@inria.fr>
3393
3394 PR c++/51033
3395 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
3396 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
3397
7edb1062 33982012-04-30 Dodji Seketeli <dodji@redhat.com>
3399
3400 Add -Wvarargs option
3401 * c.opt (Wvarargs): Define new option.
3402
068bea1e 34032012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3404
3405 * c-common.c (check_function_arguments): Replace
3406 Wmissing-format-attribute with Wsuggest-attribute=format.
3407
b86527d8 34082012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3409
3410 * c.opt (Wsuggest-attribute=format): New. Alias of
3411 Wmissing-format-attribute.
3412 * c-format.c (decode_format_type): Replace
3413 Wmissing-format-attribute with Wsuggest-attribute=format.
3414 (check_function_format): Likewise.
3415
19931eea 34162012-04-27 Ollie Wild <aaw@google.com>
76d340ac 3417
3418 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
3419 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
3420 * c.opt: Add Wliteral-suffix.
3421
29438999 34222012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
3423
3424 PR c/44774
3425 * c.opt (Wpedantic): New.
3426 (pedantic): Alias Wpedantic.
3427 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
3428 (c_common_post_options): Likewise.
3429 (sanitize_cpp_opts): Likewise.
3430 * c-lex.c (interpret_float): Likewise.
3431 * c-format.c (check_format_types): Likewise.
3432 * c-common.c (pointer_int_sum): Likewise.
3433 (c_sizeof_or_alignof_type): Likewise.
3434 (c_add_case_label): Likewise.
3435 (c_do_switch_warnings): Likewise.
3436 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
3437
4f9d6b8b 34382012-04-15 Jason Merrill <jason@redhat.com>
3439
3440 PR c++/52818
3441 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
3442 (C_STD_NAME): Distinguish between C++98 and C++11.
3443
74bdbe96 34442012-04-11 Eric Botcazou <ebotcazou@adacore.com>
3445
3446 PR target/52624
3447 * c-common.h (uint16_type_node): Rename into...
3448 (c_uint16_type_node): ...this.
3449 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
3450 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
3451
3d177e8c 34522012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
3453
3454 * c-common.c (warn_if_unused_value): Move definition to here.
3455 * c-common.h (warn_if_unused_value): Move declaration to here.
3456
6a9a958f 34572012-03-23 William Bader <williambader@hotmail.com>
3458
3459 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
3460
543efdbe 34612012-03-20 Jason Merrill <jason@redhat.com>
3462
3463 * c-common.h (enum cxx_dialect): Add cxx1y.
3464 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
3465 test.
3466 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3467 * c-opts.c (c_common_post_options): Likewise.
3468 (set_std_cxx1y): New.
3469 (c_common_handle_option): Call it.
3470 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
3471
62206d34 34722012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
3473
3474 PR c++/14710
3475 * c.opt ([Wuseless-cast]): Add.
3476
fadf62f4 34772012-03-16 Richard Guenther <rguenther@suse.de>
3478
3479 * c-pretty-print.c (pp_c_initializer_list): Adjust.
3480
249faa35 34812012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3482
3483 PR c++/44783
3484 * c.opt (ftemplate-backtrace-limit) Add.
3485
126b6848 34862012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3487
3488 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
3489 handling.
3490 * c-pragma.c (handle_pragma_extern_prefix): Remove.
3491 (init_pragma): Don't register extern_prefix.
3492
a51edb4c 34932012-03-12 Richard Guenther <rguenther@suse.de>
3494
3495 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
3496 (builtin_type_for_size): Likewise.
3497
0f6a7cb7 34982012-02-13 Jakub Jelinek <jakub@redhat.com>
3499
3500 PR c++/52215
3501 * c-common.c (sync_resolve_params): Don't decide whether to convert
3502 or not based on TYPE_SIZE comparison, convert whenever arg_type
3503 is unsigned INTEGER_TYPE.
3504
0779e32c 35052012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
3506
3507 PR c/52118
3508 * c.opt ([Wunused-local-typedefs]): Fix description.
3509
baec58e1 35102012-01-24 Mike Stump <mikestump@comcast.net>
3511
3512 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
3513 exactly.
3514
c779d8cc 35152012-01-18 Richard Guenther <rguenther@suse.de>
3516
3517 * c-opts.c (c_common_post_options): Reset LTO flags if
3518 we are about to generate a PCH.
3519
ee917d24 35202012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
3521
3522 PR c++/51777
3523 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
3524 use pp_unsigned_wide_integer.
3525
90e2341f 35262012-01-10 Richard Guenther <rguenther@suse.de>
3527
3528 PR middle-end/51806
3529 * c-opts.c (c_common_handle_option): Move -Werror handling
3530 to language independent code.
3531
9ea022ce 35322012-01-05 Richard Guenther <rguenther@suse.de>
3533
3534 PR middle-end/51764
3535 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
3536 from common.opt.
3537
3df19e1b 35382011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
3539
3540 PR c++/51316
3541 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
3542 of array types with an unknown bound.
3543
32074525 35442011-12-20 Joseph Myers <joseph@codesourcery.com>
3545
3546 * c-common.c (flag_isoc99): Update comment to refer to C11.
3547 (flag_isoc1x): Change to flag_isoc11.
3548 * c-common.h (flag_isoc99): Update comment to refer to C11.
3549 (flag_isoc1x): Change to flag_isoc11.
3550 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
3551 C11.
3552 * c-opts.c (set_std_c1x): Change to set_std_c11.
3553 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
3554 Call set_std_c11.
3555 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
3556 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
3557 * c.opt (std=c1x): Change to std=c11. Document as non-draft
3558 standard.
3559 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
3560 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
3561 (std=gnu1x): Make alias of std=gnu11.
3562
fca86134 35632011-12-19 Jason Merrill <jason@redhat.com>
3564
3565 PR c++/51228
3566 * c-common.c (handle_transparent_union_attribute): Check the first
3567 field if the type is complete.
3568
aa4313eb 35692011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
3570
3571 PR libstdc++/51365
3572 * c-common.c (RID_IS_FINAL): Add.
3573 * c-common.h (RID_IS_FINAL): Add.
3574
3f3d5ad4 35752011-11-30 Iain Sandoe <iains@gcc.gnu.org>
3576
3577 * c.opt (fgnu-runtime): Provide full description.
3578 (fnext-runtime): Likewise.
3579 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
3580
c4606d19 35812011-11-28 Andrew MacLeod <amacleod@redhat.com>
3582
3583 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
3584 predefines in one place. Add LOCK_FREE predefines.
3585 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
3586 new func.
3587
1d581089 35882011-11-24 Andrew MacLeod <amacleod@redhat.com>
3589
3590 PR c/51256
19931eea 3591 * c-common.c (get_atomic_generic_size): Check for various error
1d581089 3592 conditions
19931eea 3593 (resolve_overloaded_atomic_exchange,
3594 resolve_overloaded_atomic_compare_exchange,
1d581089 3595 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
3596 error_mark_node for error conditions.
19931eea 3597
6aa221fa 35982011-11-08 Richard Guenther <rguenther@suse.de>
3599
3600 PR middle-end/51010
3601 c-family/
3602
4c0315d0 36032011-11-07 Richard Henderson <rth@redhat.com>
3604 Aldy Hernandez <aldyh@redhat.com>
3605 Torvald Riegel <triegel@redhat.com>
3606
3607 Merged from transactional-memory.
3608
3609 * c-common.c (handle_tm_wrap_attribute,
3610 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
3611 (struct c_common_reswords): Added __transaction* keywords.
3612 (struct c_common_attribute_table): Added transaction* and tm_regparm
3613 attributes.
3614 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
3615 masks.
3616 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
3617 find_tm_attribute): Declare.
3618
920f5a70 36192011-11-07 Jason Merrill <jason@redhat.com>
3620
3621 PR c++/35688
3622 * c-common.c, c-common.h: Revert yesterday's changes.
3623
b4f861b4 36242011-11-06 Jason Merrill <jason@redhat.com>
3625
3626 PR c++/35688
3627 * c-common.c (decl_has_visibility_attr): Split out from...
3628 (c_determine_visibility): ...here.
3629 * c-common.h: Declare it.
3630
83e25171 36312011-11-06 Joseph Myers <joseph@codesourcery.com>
3632
3633 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
3634 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
3635 type.
3636 (check_user_alignment): New. Split out of
3637 handle_aligned_attribute. Disallow integer constants with
3638 noninteger types. Conditionally allow zero.
3639 (handle_aligned_attribute): Use check_user_alignment.
3640 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
3641
1cd6e20d 36422011-11-06 Andrew MacLeod <amacleod@redhat.com>
3643 Richard Henderson <rth@redhat.com>
3644
3645 Merged from cxx-mem-model.
3646
3647 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
19931eea 3648 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
1cd6e20d 3649 parameters that are the same type size.
3650 (get_atomic_generic_size): New. Find size of generic
3651 atomic function parameters and do typechecking.
3652 (add_atomic_size_parameter): New. Insert size into parameter list.
3653 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
3654 either __atomic_exchange_n or external library call.
19931eea 3655 (resolve_overloaded_atomic_compare_exchange): Restructure
1cd6e20d 3656 __atomic_compare_exchange to either _n variant or external library call.
19931eea 3657 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
1cd6e20d 3658 __atomic_load_n or an external library call.
3659 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
3660 __atomic_store_n or an external library call.
3661 (resolve_overloaded_builtin): Handle new __atomic builtins.
3662
7549df0d 36632011-11-04 Eric Botcazou <ebotcazou@adacore.com>
3664
3665 PR c++/50608
3666 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
3667 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
3668 <INDIRECT_REF>: Return the argument.
3669 <ARRAY_REF>: Remove special code for negative offset.
3670 Call fold_build_pointer_plus instead of size_binop.
3671 (fold_offsetof): Remove STOP_REF argument and adjust.
3672 * c-common.h (fold_offsetof_1): Declare.
3673 (fold_offsetof): Remove STOP_REF argument.
3674
7e783eb3 36752011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
3676
3677 PR c++/50810
3678 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3679 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3680 Wnarrowing for C++0x and C++98.
3681 * c.opt ([Wnarrowing]): Update.
3682
8fe701f5 36832011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
3684
3685 PR c++/44277
3686 * c.opt: Add Wzero-as-null-pointer-constant.
3687
0d84dc2d 36882011-10-31 Jason Merrill <jason@redhat.com>
3689
67031f52 3690 * c.opt (-fdeduce-init-list): Off by default.
3691
0d84dc2d 3692 PR c++/50920
3693 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
3694 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
3695 and -Wc++11-compat.
3696 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
3697
66f24c41 36982011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
3699
3700 PR c++/30066
3701 * c.opt (fvisibility-inlines-hidden): Description change.
3702
244db24d 37032011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
3704
3705 Implement C++11 user-defined literals.
3706 * c-common.c (build_userdef_literal): New.
3707 * c-common.def: New tree code.
3708 * c-common.h (tree_userdef_literal): New tree struct and accessors.
3709 * c-lex.c (interpret_float): Add suffix parm.
3710 (c_lex_with_flags): Build literal tokens.
3711
235be70f 37122011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3713
3714 PR c++/50841
3715 Revert:
3716 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3717
3718 PR c++/50810
3719 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3720 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3721 Wnarrowing for C++0x and C++98.
3722 * c.opt ([Wnarrowing]): Update.
3723
4fe0fb1c 37242011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3725
3726 PR c++/50810
3727 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3728 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3729 Wnarrowing for C++0x and C++98.
3730 * c.opt ([Wnarrowing]): Update.
3731
5f7504f9 37322011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
3733
3734 PR c++/45385
3735 * c-common.c (conversion_warning): Remove code looking for
3736 artificial operands.
3737
2a688977 37382011-10-18 Dodji Seketeli <dodji@redhat.com>
3739
3740 PR bootstrap/50760
3741 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
19931eea 3742 !NO_IMPLICIT_EXTERN_C.
2a688977 3743
326e3391 37442011-10-17 Michael Spertus <mike_spertus@symantec.com>
3745
3746 * c-common.c (c_common_reswords): Add __bases,
3747 __direct_bases.
3748 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
3749
37502011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
3751
3752 PR c++/50757
3753 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
3754
62db153a 37552011-10-15 Tom Tromey <tromey@redhat.com>
3756 Dodji Seketeli <dodji@redhat.com>
3757
3758 * c.opt (fdebug-cpp): New option.
3759 * c-opts.c (c_common_handle_option): Handle the option.
3760 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
3761 output stream in parameter. Factorized from ...
3762 (maybe_print_line): ... this. Dump location debug information when
3763 -fdebug-cpp is in effect.
3764 (print_line_1): New static function. Takes an output stream in
3765 parameter. Factorized from ...
3766 (print_line): ... here. Dump location information when -fdebug-cpp
3767 is in effect.
3768 (scan_translation_unit): Dump location information when
3769 -fdebug-cpp is in effect.
3770
ce70f433 37712011-10-15 Tom Tromey <tromey@redhat.com>
3772 Dodji Seketeli <dodji@redhat.com>
3773
3774 * c.opt (ftrack-macro-expansion): New option. Handle it with and
3775 without argument.
3776 * c-opts.c (c_common_handle_option)<case
3777 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
3778 cases. Handle -ftrack-macro-expansion with and without argument.
3779
97bfb9ef 37802011-10-15 Tom Tromey <tromey@redhat.com>
3781 Dodji Seketeli <dodji@redhat.com>
3782
3783 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
3784 (print_line, cb_define, do_line_change): Adjust to avoid touching
3785 the internals of struct line_map. Use the public API instead.
3786 * c-pch.c (c_common_read_pch): Likewise.
3787 * c-lex.c (fe_file_change): Likewise.
3788
326e3391 37892011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
3790
3791 PR c++/17212
3792 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
3793
37942011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
3795
3796 PR c++/33067
3797 * c-pretty-print.c (pp_c_floating_constant): Output
3798 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
3799
b9a16870 38002011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
3801
3802 * c-common.c (def_builtin_1): Delete old interface with two
3803 parallel arrays to hold standard builtin declarations, and replace
3804 it with a function based interface that can support creating
3805 builtins on the fly in the future. Change all uses, and poison
3806 the old names. Make sure 0 is not a legitimate builtin index.
3807 * c-omp.c (c_finish_omp_barrier): Ditto.
3808 (c_finish_omp_taskwait): Ditto.
3809 (c_finish_omp_flush): Ditto.
3810
c7964868 38112011-10-11 Tristan Gingold <gingold@adacore.com>
3812
3813 * c.opt: (fallow-parameterless-variadic-functions): New.
3814
a4e3ffad 38152011-09-08 Dodji Seketeli <dodji@redhat.com>
3816
3817 PR c++/33255 - Support -Wunused-local-typedefs warning
3818 * c-common.h (struct c_language_function::local_typedefs): New
3819 field.
19931eea 3820 (record_locally_defined_typedef, maybe_record_typedef_use)
3821 (maybe_warn_unused_local_typedefs): Declare new functions.
a4e3ffad 3822 * c-common.c (record_locally_defined_typedef)
19931eea 3823 (maybe_record_typedef_use)
3824 (maybe_warn_unused_local_typedefs): Define new functions.
a4e3ffad 3825 * c.opt: Declare new -Wunused-local-typedefs flag.
3826
737a23cc 38272011-09-06 Eric Botcazou <ebotcazou@adacore.com>
3828
3829 PR middle-end/50266
3830 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
3831 computations.
3832
7542c3b4 38332011-09-05 Richard Guenther <rguenther@suse.de>
3834
3835 * c-common.c (complete_array_type): Use ssize_int (-1) instead
3836 of integer_minus_one_node for empty array upper bounds.
3837
1dc92c59 38382011-08-28 Dodji Seketeli <dodji@redhat.com>
3839
3840 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
3841 it's the first time it's being called on this main TU.
3842
2bdf2b6e 38432011-08-24 Richard Guenther <rguenther@suse.de>
3844
3845 PR c/49396
3846 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
3847
38482011-08-22 Gabriel Charette <gchare@google.com>
6ea2c7a3 3849
3850 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
3851 defined in cpp_init_builtins and c_cpp_builtins.
3852
bff4ad11 38532011-08-19 Joseph Myers <joseph@codesourcery.com>
3854
3855 * c-common.c (c_common_reswords): Add __builtin_complex.
3856 * c-common.h (RID_BUILTIN_COMPLEX): New.
3857
985c6e3a 38582011-08-18 Joseph Myers <joseph@codesourcery.com>
3859
3860 * c-common.c (c_common_reswords): Add _Noreturn.
3861 (keyword_is_function_specifier): Handle RID_NORETURN.
3862 * c-common.h (RID_NORETURN): New.
3863
7dfa155b 38642011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3865
3866 * c-common.c (unsafe_conversion_p): New function. Check if it is
3867 unsafe to convert an expression to the type.
3868 (conversion_warning): Adjust, use unsafe_conversion_p.
3869 * c-common.h (unsafe_conversion_p): New function declaration.
3870
2169f33b 38712011-08-02 Jakub Jelinek <jakub@redhat.com>
3872
3873 * c-common.h (c_finish_omp_atomic): Adjust prototype.
3874 (c_finish_omp_taskyield): New prototype.
3875 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
3876 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
3877 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
3878 or RHS1 have side-effects, evaluate those too in the right spot,
3879 if it is a decl and LHS is also a decl, error out if they
3880 aren't the same.
3881 (c_finish_omp_taskyield): New function.
3882 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
3883 * c-pragma.c (omp_pragmas): Add taskyield.
3884 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
3885 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
3886 PRAGMA_OMP_CLAUSE_MERGEABLE.
3887
ab77850e 38882011-07-25 Dodji Seketeli <dodji@redhat.com>
3889
3890 * c-common.h (set_underlying_type): Remove parm name from
3891 declaration.
3892
6ee97920 38932011-07-25 Romain Geissler <romain.geissler@gmail.com>
3894
3895 * c-pretty-print.h: Search c-common.h in c-family.
19931eea 3896
dc251364 38972011-07-22 Jason Merrill <jason@redhat.com>
3898
1a2a35f0 3899 PR c++/49793
3900 * c.opt (Wnarrowing): New.
3901
27282252 3902 PR c++/30112
3903 * c-common.h: Declare c_linkage_bindings.
3904 * c-pragma.c (handle_pragma_redefine_extname): Use it.
3905
dc251364 3906 PR c++/49813
3907 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
3908 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
3909 as flag_isoc99 for 'restrict'.
3910 (pp_c_specifier_qualifier_list): Likewise for _Complex.
3911
fc501191 39122011-07-21 Ian Lance Taylor <iant@google.com>
3913
3914 PR middle-end/49705
3915 * c-common.c (c_disable_warnings): New static function.
3916 (c_enable_warnings): New static function.
3917 (c_fully_fold_internal): Change local unused_p to bool. Call
3918 c_disable_warnings and c_enable_warnings rather than change
3919 c_inhibit_evaluation_warnings.
3920
07b8f133 39212011-07-20 Jason Merrill <jason@redhat.com>
3922
3923 PR c++/6709 (DR 743)
3924 PR c++/42603 (DR 950)
3925 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
3926 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
3927 (CPP_DECLTYPE): New.
3928 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
3929
2cc66f2a 39302011-07-19 Richard Guenther <rguenther@suse.de>
3931
3932 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
3933 * c-omp.c (c_finish_omp_for): Likewise.
3934
3c802a1e 39352011-07-12 Eric Botcazou <ebotcazou@adacore.com>
3936
3937 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
3938 body on the next line.
3939
98a33d9f 39402011-07-08 Jason Merrill <jason@redhat.com>
3941
3115bda0 3942 PR c++/45437
3943 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
3944
98a33d9f 3945 PR c++/49673
3946 * c-common.c (c_apply_type_quals_to_decl): Don't check
3947 TYPE_NEEDS_CONSTRUCTING.
3948
c38a75b7 39492011-07-06 Richard Guenther <rguenther@suse.de>
3950
3951 * c-common.c (c_common_nodes_and_builtins):
3952 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
3953
e593356b 39542011-07-05 Richard Guenther <rguenther@suse.de>
3955
3956 * c-common.c (c_common_nodes_and_builtins): Build all common
3957 tree nodes first.
3958
fca0886c 39592011-06-27 Jakub Jelinek <jakub@redhat.com>
3960
a68f7a8d 3961 * c-common.h (c_tree_chain_next): New static inline function.
3962
fca0886c 3963 * c-common.c (check_builtin_function_arguments): Handle
3964 BUILT_IN_ASSUME_ALIGNED.
3965
2797f13a 39662011-06-21 Andrew MacLeod <amacleod@redhat.com>
3967
3968 * c-common.c: Add sync_ or SYNC__ to builtin names.
3969 * c-omp.c: Add sync_ or SYNC__ to builtin names.
9cad95b7 3970
39712011-06-20 Pierre Vittet <piervit@pvittet.com>
3972
3973 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
3974 handler.
3975 (gen_pragma_handler): New union.
3976 (internal_pragma_handler): New type.
3977 (c_register_pragma_with_data)
3978 (c_register_pragma_with_expansion_and_data): New functions.
3979
3980 * c-pragma.c (registered_pragmas, c_register_pragma_1)
3981 (c_register_pragma, c_register_pragma_with_expansion)
3982 (c_invoke_pragma_handler): Changed to work with
3983 internal_pragma_handler.
3984 (c_register_pragma_with_data)
3985 (c_register_pragma_with_expansion_and_data): New functions.
3986
218e3e4e 39872011-06-14 Joseph Myers <joseph@codesourcery.com>
3988
3989 * c-common.c: Include common/common-target.h.
3990 (handle_section_attribute): Use
3991 targetm_common.have_named_sections.
3992 * c-cppbuiltin.c: Include common/common-target.h.
3993 (c_cpp_builtins): Use targetm_common.except_unwind_info.
3994
41e53ed2 39952011-06-10 Richard Guenther <rguenther@suse.de>
3996
3997 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
3998 to print a IDENTIFIER_NODE.
3999
a6f06169 40002011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4001 Joseph Myers <joseph@codesourcery.com>
4002
4003 * c.opt (fbuilding-libgcc): New option.
4004 * c-cppbuiltin.c (c_cpp_builtins): Define
4005 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
4006
1ea9269b 40072011-06-07 Jason Merrill <jason@redhat.com>
4008
8ce59854 4009 * c-common.c (max_tinst_depth): Lower default to 900.
4010
1ea9269b 4011 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
4012
1af0124d 40132011-06-07 Richard Guenther <rguenther@suse.de>
4014
4015 * c-common.c (c_common_nodes_and_builtins): Do not set
4016 size_type_node or call set_sizetype.
4017
0e9a4c01 40182011-06-07 Dodji Seketeli <dodji@redhat.com>
4019
4020 PR debug/49130
4021 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
19931eea 4022 type when using pointer comparison to compare types.
0e9a4c01 4023
90b40725 40242011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
4025
4026 * c.opt: Add -Wdelete-non-virtual-dtor.
4027 * c-opts.c (c_common_handle_option): Include it in -Wall.
4028
fc9c9e87 40292011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
4030
4031 PR bootstrap/49190
4032
4033 Revert:
4034 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4035
4036 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
4037 not tree_common.
4038
d0389adc 40392011-05-27 Jakub Jelinek <jakub@redhat.com>
4040
4041 PR c++/49165
4042 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
4043 C++ don't call c_common_truthvalue_conversion on void type arms.
4044
cacfdc02 40452011-05-27 Nathan Froyd <froydnj@codesourcery.com>
4046
4047 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
4048 (stmt_list_stack): Define.
4049 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
4050 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
4051
027fc6ef 40522011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4053
4054 * c-common.c (warning_candidate_p): Check for BLOCKs.
4055
f21317a1 40562011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4057
4058 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
4059 not tree_common.
4060
789e953d 40612011-05-25 Jakub Jelinek <jakub@redhat.com>
4062
4063 * c-common.c (def_fn_type): Remove extra va_end.
4064
7f506bca 40652011-05-23 Jason Merrill <jason@redhat.com>
4066
4067 PR c++/48106
4068 * c-common.c (c_common_get_narrower): New.
4069 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
4070
774e9d58 40712011-05-23 Nathan Froyd <froydnj@codesourcery.com>
4072
4073 * c-common.h (check_function_arguments): Tweak prototype of
4074 check_function_arguments.
4075 * c-common.c (check_function_arguments): Likewise. Adjust
4076 calls to check_function_nonnull, check_function_format, and
4077 check_function_sentinel.
4078 (check_function_sentinel): Take a FUNCTION_TYPE rather than
4079 separate attributes and typelist arguments. Use
4080 FOREACH_FUNCTION_ARGS to iterate over argument types.
4081
23407dc9 40822011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
4083
4084 * c-common.c (c_common_reswords): Reorder.
4085 * c-common.h (rid): Likewise.
4086
3a939d12 40872011-05-10 Nathan Froyd <froydnj@codesourcery.com>
4088
4089 * c-common.c (def_fn_type): Don't call build_function_type, call
4090 build_function_type_array or build_varargs_function_type_array
4091 instead.
4092 (c_common_nodes_and_builtins): Likewise.
4093
b6e3dd65 40942011-05-05 Nathan Froyd <froydnj@codesourcery.com>
4095
4096 * c-common.c (c_add_case_label): Omit the loc argument to
4097 build_case_label.
4098 * c-common.h (build_case_label): Remove.
4099 * c-semantics.c (build_case_label): Remove.
4100
4232a958 41012011-05-05 Joseph Myers <joseph@codesourcery.com>
4102
4103 * c-objc.h (objc_start_method_definition): Update prototype.
4104 * stub-objc.c (objc_start_method_definition): Add extra parameter.
4105
d0af78c5 41062011-05-04 Nathan Froyd <froydnj@codesourcery.com>
4107
4108 * c-common.c (check_main_parameter_types): Reindent. Don't use
4109 TYPE_ARG_TYPES directly.
4110 (handle_nonnull_attribute): Likewise.
4111 (sync_resolve_params): Likewise.
4112 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
4113 to check_format_string.
4114 (handle_format_attribute): Likewise.
4115 (check_format_string): Take a function type to examine instead of
4116 a type list. Use a function_arg_iterator to step through argument
4117 types.
4118
ceb7b692 41192011-05-04 Richard Guenther <rguenther@suse.de>
4120
4121 * c-common.c (fix_string_type): Use size_int for index type bounds.
4122 (start_fname_decls): Do not pass NULL to build_int_cst.
4123 (c_init_attributes): Likewise.
4124 * c-lex.c (c_lex_with_flags): Likewise.
4125
c66c81be 41262011-04-27 Jason Merrill <jason@redhat.com>
4127
4128 * c-common.c (make_tree_vector_from_list): New.
4129 * c-common.h: Declare it.
4130
16930c72 41312011-04-26 Richard Guenther <rguenther@suse.de>
4132
4133 PR preprocessor/48248
4134 * c-ppoutput.c (maybe_print_line): Always optimize newlines
4135 for output size with -P.
4136
23407dc9 41372011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
4138
4139 * c-common.c (struct c_common_resword): Add __underlying_type.
4140 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
4141
dd045aee 41422011-04-20 Jim Meyering <meyering@redhat.com>
4143
4144 * c-format.c (init_dollar_format_checking): Remove useless
4145 if-before-free.
4146
394dd737 41472011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
4148
4149 * c-objc.h (objc_get_interface_ivars): Removed.
23407dc9 4150 (objc_detect_field_duplicates): New.
394dd737 4151 * stub-objc.c: Likewise.
23407dc9 4152
a758bf7d 41532011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4154
4155 * stub-objc.c (objc_declare_protocols): Renamed to
4156 objc_declare_protocol.
4157 * c-objc.h: Likewise.
23407dc9 4158
29d7200d 41592011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4160
4161 * stub-objc.c (objc_declare_class): Updated argument name.
4162
9b88d08d 41632011-04-12 Nathan Froyd <froydnj@codesourcery.com>
4164
4165 * c-common.h (c_common_init_ts): Declare.
4166 * c-common.c (c_common_init_ts): Define.
4167
4185cf58 41682011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4169
4170 * c-objc.h (objc_build_message_expr): Updated prototype.
4171 * stub-objc.c (objc_build_message_expr): Likewise.
19931eea 4172
5a90471f 41732011-04-12 Martin Jambor <mjambor@suse.cz>
4174
4175 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
4176 of cgraph_node.
4177
783bb57e 41782011-04-11 Richard Guenther <rguenther@suse.de>
4179
4180 * c-common.c (complete_array_type): Build a range type of
4181 proper type.
4182
c33080b9 41832011-04-08 Nathan Froyd <froydnj@codesourcery.com>
4184
4185 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
4186 (handle_type_generic_attribute): Likewise.
4187
f8913d47 41882011-04-07 Jason Merrill <jason@redhat.com>
4189
4190 PR c++/48450
4191 * c-common.c (c_common_truthvalue_conversion): Don't ignore
4192 conversion from C++0x scoped enum.
4193
c94b1d0e 41942011-04-06 Joseph Myers <joseph@codesourcery.com>
4195
4196 * c-target-def.h: New file.
4197 * c-target.def: New file.
4198 * c-target.h: New file.
4199 * c-common.c (targetcm): Don't define here.
4200 * c-common.h (default_handle_c_option): Declare.
4201 * c-format.c: Include c-target.h instead of target.h.
4202 * c-opts.c: Include c-target.h instead of target.h. Explicitly
4203 include tm.h.
4204 (default_handle_c_option): Move from targhooks.c.
4205
acb10f41 42062011-03-29 Jakub Jelinek <jakub@redhat.com>
4207
4208 PR preprocessor/48248
4209 * c-ppoutput.c (print): Add src_file field.
4210 (init_pp_output): Initialize it.
4211 (maybe_print_line): Don't optimize by adding up to 8 newlines
4212 if map->to_file and print.src_file are different file.
4213 (print_line): Update print.src_file.
4214
82715bcd 42152011-03-25 Kai Tietz <ktietz@redhat.com>
4216
4217 * c-ada-spec.c (compare_comment): Use filename_cmp
4218 instead of strcmp for filename.
4219
451c8e2f 42202011-03-25 Jeff Law <law@redhat.com>
4221
1f78217c 4222 * c-common.c (def_fn_type): Add missing va_end.
451c8e2f 4223
3c47771c 42242011-03-25 Jason Merrill <jason@redhat.com>
4225
4226 * c.opt: Add -std=c++03.
4227
97e6200f 42282011-03-22 Eric Botcazou <ebotcazou@adacore.com>
4229
4230 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
4231
ac86af5d 42322011-03-17 Kai Tietz
4233
4234 PR target/12171
ee212425 4235 * c-pretty-print.c (pp_c_specifier_qualifier_list):
4236 Display allowed attributes for function pointer types.
4237 (pp_c_attributes_display): New function to display
4238 attributes having affects_type_identity flag set to true.
4239 * c-pretty-print.h (pp_c_attributes_display): New prototype.
4240
ac86af5d 4241 * c-common.c (c_common_attribute_table):
4242 Add new element.
4243 (c_common_format_attribute_table): Likewise.
4244
914d1151 42452011-03-18 Jason Merrill <jason@redhat.com>
4246
69788bdf 4247 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
4248 * c-common.h: Don't declare it here.
4249 * c-common.c: Or define it here.
4250 * c-opts.c (c_common_handle_option): Or set it here.
4251
914d1151 4252 PR c++/35315
4253 * c-common.c (handle_transparent_union_attribute): Don't
4254 make a duplicate type in C++.
4255
54cf6eed 42562011-03-15 Jason Merrill <jason@redhat.com>
4257
4258 * c-common.c (max_constexpr_depth): New.
4259 * c-common.h: Declare it.
4260 * c-opts.c (c_common_handle_option): Set it.
4261 * c.opt (fconstexpr-depth): New option.
4262
02cb1060 42632011-03-11 Jason Merrill <jason@redhat.com>
4264
9bf1c74e 4265 * c-common.c (attribute_takes_identifier_p): Add missing const.
4266
02cb1060 4267 PR c++/46803
4268 * c-common.c (attribute_takes_identifier_p): Assume that an
4269 unknown attribute takes an identifier.
4270
ecf2703d 42712011-03-07 Nathan Froyd <froydnj@codesourcery.com>
4272
4273 PR c/47786
4274 * c-common.c (c_type_hash): Call list_length instead of iterating
4275 through DECL_CHAIN. Rename 'i' to 'n_elements'.
4276
2b19dfe4 42772011-02-19 Jakub Jelinek <jakub@redhat.com>
4278
4279 PR c/47809
4280 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
4281
29cf2335 42822011-02-17 Iain Sandoe <iains@gcc.gnu.org>
4283
4284 * c.opt (fobjc-abi-version=) New.
4285 (fobjc-nilcheck): New.
4286
fad3f658 42872011-02-03 Nathan Froyd <froydnj@codesourcery.com>
4288
4289 PR c++/46890
4290 * c-common.h (keyword_is_decl_specifier): Declare.
4291 * c-common.c (keyword_is_decl_specifier): Define.
4292 (keyword_is_function_specifier): New function.
4293
a12319b3 42942011-01-26 Jakub Jelinek <jakub@redhat.com>
4295
4296 PR c/47473
4297 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
4298 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
4299 REAL_TYPE.
4300
5c128dc8 43012011-01-26 Arnaud Charlet <charlet@adacore.com>
4302
4303 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
4304
8d67b0c7 43052011-01-26 Jakub Jelinek <jakub@redhat.com>
4306
4307 PR pch/47430
4308 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
4309 after init_c_lex if pch_file is set.
4310
0675168d 43112011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
4312
e8911163 4313 PR c++/43601
0675168d 4314 * c.opt (-fkeep-inline-dllexport): New switch.
4315
0725e25c 43162011-01-12 Richard Guenther <rguenther@suse.de>
4317
4318 PR middle-end/32511
4319 * c-common.c (handle_weak_attribute): Warn instead of error
4320 on declaring an inline function weak.
4321
fdd84b77 43222011-01-05 Tom Tromey <tromey@redhat.com>
4323
4324 * c-common.h (lvalue_error): Update.
4325 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
4326 not error.
4327
e6e73d14 43282010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
19931eea 4329
d67e8485 4330 PR objc/47075
4331 * c-objc.h (objc_finish_message_expr): Added argument to
4332 prototype.
4333
a36cf284 43342010-12-22 Nathan Froyd <froydnj@codesourcery.com>
4335
4336 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
4337 Use prototype_p.
4338
33b3681f 43392010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
4340
4341 * c-objc.h (objc_maybe_warn_exceptions): New.
19931eea 4342 * stub-objc.c (objc_maybe_warn_exceptions): New.
33b3681f 4343
a1f90215 43442010-12-10 Nathan Froyd <froydnj@codesourcery.com>
4345
4346 * c-common.h (readonly_error): Declare.
4347 * c-common.c (readonly_error): Define.
4348
b1bbc8e5 43492010-12-09 Nathan Froyd <froydnj@codesourcery.com>
4350
4351 * c-common.h (invalid_indirection_error): Declare.
4352 * c-common.c (invalid_indirection_error): Define.
4353
b0d55af9 43542010-12-03 Richard Guenther <rguenther@suse.de>
4355
4356 PR c/46745
4357 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
4358 (pp_c_unary_expression): Likewise.
4359 (pp_c_expression): Likewise.
4360
d7489d8d 43612010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
4362
4363 * c-common.h (objc_finish_function): New.
4364 (objc_non_volatilized_type): Removed.
4365 (objc_type_quals_match): Removed.
4366 * stub-objc.c (objc_finish_function): New.
4367 (objc_non_volatilized_type): Removed.
4368 (objc_type_quals_match): Removed.
19931eea 4369
92468061 43702010-11-30 Joseph Myers <joseph@codesourcery.com>
4371
4372 * c-common.h (parse_optimize_options): Declare.
4373 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
4374 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
4375
967958e4 43762010-11-29 Joseph Myers <joseph@codesourcery.com>
4377
4378 * c-opts.c (check_deps_environment_vars): Use getenv instead of
4379 GET_ENVIRONMENT.
4380 * c-pch.c (O_BINARY): Don't define here.
4381 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
4382
b213bf24 43832010-11-25 Joseph Myers <joseph@codesourcery.com>
4384
4385 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
4386 targetm.except_unwind_info.
4387
9faf44d6 43882010-11-23 Joseph Myers <joseph@codesourcery.com>
4389
4390 * c-opts.c (c_common_handle_option): Pass location to
4391 set_struct_debug_option.
4392
79396169 43932010-11-23 Joseph Myers <joseph@codesourcery.com>
4394
4395 * c-common.c (visibility_options): Move from ../opts.c.
4396 * c-common.h (struct visibility_flags, visibility_options):
4397 Declare here.
4398 * c-opts.c (finish_options): Rename to c_finish_options.
4399 (c_common_init): Update call to finish_options.
4400
b4aa4123 44012010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
4402
4403 PR objc/34033
4404 * c-lex.c (lex_string): Check that each string in an Objective-C
4405 string concat sequence starts with either one or zero '@', and
4406 that there are no spurious '@' signs at the end.
4407
3e0e49f2 44082010-11-20 Joseph Myers <joseph@codesourcery.com>
4409
4410 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
4411 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
4412 HANDLE_PRAGMA_VISIBILITY.
4413 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
4414 HANDLE_PRAGMA_VISIBILITY): Don't define.
4415 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
4416
a9ffdd35 44172010-11-20 Nathan Froyd <froydnj@codesourcery.com>
4418
4419 PR c++/16189
4420 PR c++/36888
4421 PR c++/45331
4422 * c-common.h (keyword_begins_type_specifier): Declare.
4423 (keyword_is_storage_class_specifier): Declare.
4424 (keyword_is_type_qualifier): Declare.
4425 * c-common.c (keyword_begins_type_specifier): New function.
4426 (keyword_is_storage_class_specifier): New function.
4427 (keyword_is_type_qualifier): Declare.
4428
93be21c0 44292010-11-19 Joseph Myers <joseph@codesourcery.com>
4430
4431 PR c/46547
4432 * c-common.c (in_late_binary_op): Define.
4433 (c_common_truthvalue_conversion): Check in_late_binary_op before
4434 calling c_save_expr.
4435 * c-common.h (in_late_binary_op): Declare.
4436
d7175aef 44372010-11-19 Joseph Myers <joseph@codesourcery.com>
4438
4439 * c-opts.c (c_common_handle_option): Update calls to
4440 set_struct_debug_option.
4441
c213e196 44422010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
4443
4444 * c-common.h (objc_declare_protocols): Added additional argument.
4445 * stub-objc.c (objc_declare_protocol): Same change.
19931eea 4446
0b5fc5d6 44472010-11-18 Nathan Froyd <froydnj@codesourcery.com>
4448
4449 PR c/33193
4450 * c-common.h (build_real_imag_expr): Declare.
4451 * c-semantics.c (build_real_imag_expr): Define.
4452
b8ba44e7 44532010-11-17 Joseph Myers <joseph@codesourcery.com>
4454
4455 * c-opts.c (c_common_parse_file): Take no arguments.
4456 * c-common.h (c_common_parse_file): Update prototype.
4457
6ef8d12f 44582010-11-16 Jakub Jelinek <jakub@redhat.com>
4459
4460 PR c++/46401
4461 * c-common.c (warning_candidate_p): Don't track non-const calls
4462 or STRING_CSTs.
4463
929d2a90 44642010-11-15 Ian Lance Taylor <iant@google.com>
4465
4466 * c-lex.c (init_c_lex): Set macro debug callbacks if
4467 flag_dump_go_spec is set.
4468
e4a7640a 44692010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
4470
4471 * c-common.h (objc_build_incr_expr_for_property_ref): New.
4472 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
4473
597d2d81 44742010-11-15 Nathan Froyd <froydnj@codesourcery.com>
4475
4476 PR preprocessor/45038
4477 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
4478 dialects.
4479
c123f04d 44802010-11-12 Joseph Myers <joseph@codesourcery.com>
4481
4482 * c-common.h (c_family_lang_mask): Declare.
4483 * c-opts.c (c_family_lang_mask): Make extern.
4484 * c-pragma.c (handle_pragma_diagnostic): Use
4485 control_warning_option.
4486
3c6c0e40 44872010-11-12 Joseph Myers <joseph@codesourcery.com>
4488
4489 * c-common.c (parse_optimize_options): Update call to
4490 decode_options.
4491 * c-common.h (c_common_handle_option): Update prototype.
4492 * c-opts.c (c_common_handle_option): Take location_t parameter and
4493 pass it to other functions.
4494
19ec5c9e 44952010-11-11 Joseph Myers <joseph@codesourcery.com>
4496
4497 * c-opts.c (warning_as_error_callback): Remove.
4498 (c_common_initialize_diagnostics): Don't call
4499 register_warning_as_error_callback.
4500 (c_common_handle_option): Handle -Werror=normalized= here.
4501
bf776685 45022010-11-10 Joseph Myers <joseph@codesourcery.com>
4503
4504 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
4505 in diagnostic.
4506 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
4507 letter.
4508 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
4509 Remove trailing '.' from diagnostics.
4510 * c.opt (Wwrite-strings_: Avoid '`' in help text.
4511
6bd9d862 45122010-11-10 Joseph Myers <joseph@codesourcery.com>
4513
4514 * c-common.c (parse_optimize_options): Pass global_dc to
4515 decode_options.
4516 * c-opts.c (c_common_handle_option): Pass &global_options to
4517 set_Wstrict_aliasing.
4518 * c.opt (v): Don't mark Common or document here.
4519
1f6616ee 45202010-11-06 Iain Sandoe <iains@gcc.gnu.org>
4521
4522 PR target/44981
4523 * c-format.c (format_type): New type gcc_objc_string_format_type.
4524 (valid_stringptr_type_p): New.
4525 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
19931eea 4526 (check_format_string): Pass expected type, use
1f6616ee 4527 valid_stringptr_type_p (), check that the format string types are
4528 consistent with the format specification.
4529 (decode_format_attr): Warn if NSString is used outside objective-c.
4530 (format_types_orig): Add NSString.
4531 (format_name): New.
4532 (format_flags): New.
4533 (check_format_arg): Handle format strings requiring an external parser.
4534 first_target_format_type: New variable.
4535 (handle_format_attribute): Set up first_target_format_type, pass the
4536 expected format arg string type to check_format_string().
4537 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
4538 * stub-objc.c (objc_string_ref_type_p): New.
4539 (objc_check_format_arg): New.
4540
b0d0931f 45412010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
4542
19931eea 4543 Fixed using the Objective-C 2.0 dot-syntax with class names.
b0d0931f 4544 * c-common.h (objc_build_class_component_ref): New.
4545 * stub-objc.c (objc_build_class_component_ref): New.
4546
f26877d5 45472010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
4548
4549 * c.opt (Wproperty-assign-default): New option.
4550
1ef143b6 45512010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
4552
4553 Implemented -fobjc-std=objc1 flag.
4554 * c.opt (fobjc-std=objc1): New option.
4555
8c582e4f 45562010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
4557
4558 Implemented format and noreturn attributes for Objective-C methods.
4559 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
4560 attribute for Objective-C methods.
4561
8637f1db 45622010-10-31 Jason Merrill <jason@redhat.com>
4563
4564 * c-common.c (conversion_warning, warn_for_collisions_1): Use
4565 EXPR_LOC_OR_HERE.
4566
9d9f5bb3 45672010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
4568
4569 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
4570 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
4571 (objc_add_property_declaration): Removed arguments for copies and
4572 ivar.
4573 (objc_build_getter_call): Renamed to
4574 objc_maybe_build_component_ref.
4575 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4576 (objc_is_property_ref): New.
4577 * c-common.c (c_common_reswords): Removed copies and ivar.
4578 * stub-objc.c (objc_add_property_declaration): Removed arguments
4579 for copies and ivar.
4580 (objc_build_getter_call): Renamed to
4581 objc_maybe_build_component_ref.
4582 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4583 (objc_is_property_ref): New.
19931eea 4584
56f907a0 45852010-10-29 Arnaud Charlet <charlet@adacore.com>
4586 Matthew Gingell <gingell@adacore.com>
4587
4588 * c-ada-spec.c (separate_class_package): New function.
4589 (pp_ada_tree_identifier): Prefix references to C++ classes with the
4590 name of their enclosing package.
4591 (print_ada_declaration): Use separate_class_package.
4592
b5fa273e 45932010-10-27 Jason Merrill <jason@redhat.com>
4594
5290e253 4595 * c-common.c (c_common_reswords): Add __is_literal_type.
4596 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
4597
b5fa273e 4598 * c-common.c (check_case_value): Remove special C++ code.
4599
7590f0e5 46002010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4601
4602 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
4603 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
4604 and RID_LAST_PATTR.
4605 (objc_add_property_declaration): Added additional arguments.
4606 (objc_property_attribute_kind): Removed.
4607 (objc_set_property_attr): Removed.
4608 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
4609 copy and nonatomic.
4610 * stub-objc.c (objc_add_property_declaration): Added additional
4611 arguments.
4612 (objc_set_property_attr): Removed.
19931eea 4613
1d894bcf 46142010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4615
4616 * c-common.h (objc_add_property_variable): Renamed to
4617 objc_add_property_declaration. Added location argument.
4618 * stub-objc.c (objc_add_property_variable): Same change.
4619
e23bf1fb 46202010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
4621
4622 * c-common.h (objc_maybe_printable_name): New.
4623 * stub-objc.c (objc_maybe_printable_name): New.
4624
93426222 46252010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4626 Andrew Pinski <pinskia@gmail.com>
4627
4628 * c-common.h (c_common_mark_addressable_vec): Declare.
4629 * c-common.c (c_common_mark_addressable_vec): New function.
4630
45b2b110 46312010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
4632
4633 * c-common.h (objc_set_method_type): Removed.
4634 (objc_add_method_declaration): Added boolean argument.
4635 (objc_start_method_definition): Same change.
4636 (objc_build_method_signature): Same change.
4637 * stub-objc.c (objc_set_method_type): Removed.
4638 (objc_add_method_declaration): Added boolean argument.
4639 (objc_start_method_definition): Same change.
4640 (objc_build_method_signature): Same change.
4641
64cd9619 46422010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
4643
4644 * c-common.h (finish_file): Removed.
4645 (objc_write_global_declarations): New.
4646 * c-opts.c (c_common_parse_file): Do not call finish_file.
4647 * stub-objc.c (objc_write_global_declarations): New.
19931eea 4648
e1f293c0 46492010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4650
4651 Implemented parsing @synthesize and @dynamic for
4652 Objective-C/Objective-C++.
4653 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
4654 (objc_add_synthesize_declaration): New.
4655 (objc_add_dynamic_declaration): New.
4656 * c-common.c (c_common_reswords): Add synthesize and dynamic.
4657 * stub-objc.c (objc_add_synthesize_declaration): New.
4658 (objc_add_dynamic_declaration): New.
19931eea 4659
ef97a312 46602010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
4661
4662 PR target/46041
4663 * c-cppbuiltin.c (mode_has_fma): Move function here from
4664 builtins.c. Don't use the fma optab, instead just use the
4665 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
4666 using -save-temps.
4667
69b07042 46682010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4669
4670 Merge from 'apple/trunk' branch on FSF servers.
ef97a312 4671
69b07042 4672 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
4673
19931eea 4674 Radar 4330422
69b07042 4675 * c-common.h (objc_non_volatilized_type): New declaration
4676 * stub-objc.c (objc_non_volatilized_type): New stub.
4677
f15f2e56 46782010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
4679
69b07042 4680 Merge from 'apple/trunk' branch on FSF servers.
f15f2e56 4681
4682 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
4683
19931eea 4684 Radar 4133425
f15f2e56 4685 * c-common.h (objc_diagnose_private_ivar): New decl.
ef97a312 4686 * stub-objc.c (objc_diagnose_private_ivar): New stub.
f15f2e56 4687
4a8875ed 46882010-10-17 Iain Sandoe <iains@gcc.gnu.org>
4689
4690 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
4691 * c-common.h (enum rid): Add RID_AT_PACKAGE.
4692 (objc_ivar_visibility_kind): New enum.
4693 (objc_set_visibility): Adjust prototype to use visibility enum.
ef97a312 4694 * stub-objc.c (objc_set_visibility): Adjust stub to use
4a8875ed 4695 visibility enum.
4696
7e0713b1 46972010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
4698
4699 * c-cppbuiltin.c (builtin_define_float_constants): Emit
4700 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
4701 has the appropriate fma builtins.
4702 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
4703
86c110ac 47042010-10-14 Iain Sandoe <iains@gcc.gnu.org>
4705
7e0713b1 4706 merge from FSF apple 'trunk' branch.
86c110ac 4707 2006 Fariborz Jahanian <fjahanian@apple.com>
7e0713b1 4708
86c110ac 4709 Radars 4436866, 4505126, 4506903, 4517826
4710 * c-common.c (c_common_resword): Define @property and its attributes.
4711 * c-common.h: Define property attribute enum entries.
4712 (OBJC_IS_PATTR_KEYWORD): New.
4713 (objc_property_attribute_kind): New enum.
4714 Declare objc_set_property_attr (), objc_add_property_variable (),
4715 objc_build_getter_call () and objc_build_setter_call ().
4716 * stub-objc.c (objc_set_property_attr): New stub.
4717 (objc_add_property_variable): Likewise.
4718 (objc_build_getter_call): Likewise.
4719 (objc_build_setter_call) Likewise.
7e0713b1 4720
40c8d1dd 47212010-10-13 Iain Sandoe <iains@gcc.gnu.org>
4722
7e0713b1 4723 merge from FSF apple 'trunk' branch.
40c8d1dd 4724 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
4725
4726 Radar 3803157 (method attributes)
4727 * c-common.c (handle_deprecated_attribute): Recognize
4728 objc methods as valid declarations.
4729 * c-common.h: Declare objc_method_decl ().
7e0713b1 4730 * stub-objc.c (objc_method_decl): New stub.
40c8d1dd 4731
f3f006ad 47322010-10-08 Joseph Myers <joseph@codesourcery.com>
4733
4734 * c-common.c (parse_optimize_options): Call
4735 decode_cmdline_options_to_array_default_mask before
4736 decode_options. Update arguments to decode_options.
4737 * c-common.h (c_common_init_options_struct): Declare.
4738 * c-opts.c (c_common_init_options_struct): New. Split out from
4739 c_common_init_options.
4740
0a65c3bb 47412010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
4742
4743 Implemented fast enumeration for Objective-C.
4744 * c-common.h (objc_finish_foreach_loop): New.
4745 * stub-objc.c (objc_finish_foreach_loop): New.
4746
24ca3b4e 47472010-10-05 Joseph Myers <joseph@codesourcery.com>
4748
4749 * c-common.h (struct diagnostic_context): Don't declare here.
4750 (c_common_initialize_diagnostics): Declare using
4751 diagnostic_context typedef.
4752 * c-opts.c (c_common_handle_option): Pass global_dc to
4753 handle_generated_option.
4754
f83b64ca 47552010-10-04 Joseph Myers <joseph@codesourcery.com>
4756
4757 * c-opts.c (c_common_handle_option): Pass &global_options_set to
4758 handle_generated_option.
4759
2fdec027 47602010-10-03 Ian Lance Taylor <iant@google.com>
4761
4762 * c.opt (-fplan9-extensions): New option.
4763
41acdfa4 47642010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4765
4766 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
4767 Remove.
4768 (c_cpp_builtins): Call functions from cppbuiltin.c instead
4769 of duplicating code.
4770
069761fb 47712010-09-30 Iain Sandoe <iains@gcc.gnu.org>
4772
4773 * c-common.c: Add two new entries for @optional
4774 and @required keywords.
4775
4776 merge from FSF 'apple/trunk' branch.
4777 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
4778
4779 Radar 4386773
4780 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
4781 objective-c keywords.
4782 (objc_set_method_opt): New declaration.
4783 * stub-objc.c (objc_set_method_opt): New stub.
19931eea 4784
2c5d2e39 47852010-09-30 Joseph Myers <joseph@codesourcery.com>
4786
4787 * c-common.c (handle_optimize_attribute): Pass &global_options to
4788 cl_optimization_save and cl_optimization_restore.
4789 * c-opts.c (c_common_handle_option): Pass &global_options to
4790 handle_generated_option.
4791 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
4792 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
4793 &global_options to cl_optimization_restore.
4794
e5c75ac3 47952010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
4796
4797 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
4798 Objective-C/Objective-C++ keywords.
4799
3511333e 48002010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
e147d6aa 4801
19931eea 4802 Merge from 'apple/trunk' branch on FSF servers.
4803
e147d6aa 4804 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
4805
4806 Radar 4281748
4807 * c-common.h (objc_check_global_decl): New declaration.
4808 * stub-objc.c (objc_check_global_decl): New stub.
4809
5461e683 48102010-09-29 Joseph Myers <joseph@codesourcery.com>
4811
4812 * c.opt: Don't use VarExists.
4813
5ae82d58 48142010-09-29 Joseph Myers <joseph@codesourcery.com>
4815
4816 * c-common.c (c_cpp_error): Update names of diagnostic_context
4817 members.
4818 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
4819 cl_optimization members.
4820 * c-opts.c (warning_as_error_callback, c_common_handle_option,
4821 sanitize_cpp_opts, finish_options): Update names of cpp_options
4822 members.
4823
b27e241e 48242010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
4825
4826 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
4827 (objc_is_reserved_word): Removed.
4828 * c-common.c: Updated comments.
4829 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
4830 objc_is_reserved_word.
4831 * stub-objc.c (objc_is_reserved_word): Removed.
4832
03fc2271 48332010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4834
19931eea 4835 * c-common.h (objc_add_method_declaration): Adjust prototype to
03fc2271 4836 include attributes.
4837 (objc_start_method_definition): Likewise.
4838 (objc_build_keyword_decl): Likewise.
4839 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
4840 (objc_start_method_definition): Likewise.
4841 (objc_build_keyword_decl): Likewise.
4842
a336eb4b 48432010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4844
4845 * c-common.h (objc_start_class_interface): Adjust prototype.
4846 (objc_start_category_interface): Likewise.
4847 (objc_start_protocol): Likewise.
4848 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
4849 (objc_start_class_interface): Likewise.
4850 (objc_start_category_interface): Likewise.
4851
48b14f50 48522010-09-27 Ian Lance Taylor <iant@google.com>
4853
4854 * c-common.c (c_common_attribute_table): Add no_split_stack.
4855 (handle_no_split_stack_attribute): New static function.
4856
4abfc532 48572010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
4858
19931eea 4859 Merge from 'apple/trunk' branch on FSF servers.
4abfc532 4860
4861 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
4862
19931eea 4863 Radar 4229905
4abfc532 4864 * c-common.h (objc_have_common_type): New declaration.
4865 * stub-objc.c (objc_have_common_type): New stub.
4866
4867 2005-06-22 Ziemowit Laski <zlaski@apple.com>
4868
4869 Radar 4154928
4870 * c-common.h (objc_common_type): New prototype.
19931eea 4871 * stub-objc.c (objc_common_type): New stub.
4abfc532 4872
7bd95dfd 48732010-09-24 Jan Hubicka <jh@suse.cz>
4874
4875 * c-common.c (handle_leaf_attribute): New function.
4876 (struct attribute_spec c_common_att): Add leaf.
4877
5789e05b 48782010-09-22 Joseph Myers <joseph@codesourcery.com>
4879
4880 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
4881 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
4882 -dump, -dump=, -imacros, -imacros=, -include, -include=,
4883 -include-barrier, -include-directory, -include-directory=,
4884 -include-directory-after, -include-directory-after=,
4885 -include-prefix, -include-prefix=, -include-with-prefix,
4886 -include-with-prefix=, -include-with-prefix-after,
4887 -include-with-prefix-after=, -include-with-prefix-before,
4888 -include-with-prefix-before=, -no-integrated-cpp,
4889 -no-line-commands, -no-standard-includes, -no-warnings, -output,
4890 -output=, -pedantic, -pedantic-errors, -preprocess,
4891 -print-missing-file-dependencies, -trace-includes, -traditional,
4892 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
4893 -user-dependencies, -verbose, -write-dependencies,
4894 -write-user-dependencies, no-integrated-cpp, traditional): New.
4895
e6fb54ba 48962010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
4897
4898 PR objc/23710
9b60f3b0 4899 * c-common.h (objc_start_method_definition): Return bool instead
4900 of void.
4901 * stub-objc.c (objc_start_method_definition): Return bool instead
4902 of void.
4903
49042010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
4905
4906 PR objc/25965
4907 * c-common.h (objc_get_interface_ivars): New declaration.
4908 * stub-objc.c (objc_get_interface_ivars): New stub.
e6fb54ba 4909
e44b0a1f 49102010-09-15 Ian Lance Taylor <iant@google.com>
4911
4912 * c-common.c (parse_optimize_options): Do not capitalize warning
ebd7c4c1 4913 messages. Remove period at end of warning message.
e44b0a1f 4914
85c0a25c 49152010-09-09 Nathan Sidwell <nathan@codesourcery.com>
4916
4917 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
4918 (handle_alias_attribute): ... here.
4919 (handle_ifunc_attribute): New.
4920
5ba33bf4 49212010-09-06 Mark Mitchell <mark@codesourcery.com>
4922
4923 * c-common.h (do_warn_double_promotion): Declare.
4924 * c-common.c (do_warn_double_promotion): Define.
4925
c920faa3 49262010-09-05 Mark Mitchell <mark@codesourcery.com>
4927
4928 * c.opt (Wdouble-promotion): New.
4929
9604e070 49302010-09-02 Joseph Myers <joseph@codesourcery.com>
4931
4932 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
4933 fvtable-thunks, fxref): Mark no longer supported in help text.
4934
3b0273a1 49352010-09-02 Joseph Myers <joseph@codesourcery.com>
4936
4937 * c.opt (Wimport, fall-virtual, falt-external-templates,
4938 fdefault-inline, fenum-int-equiv, fexternal-templates,
4939 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
4940 fname-mangling-version-, fnew-abi, fnonnull-objects,
4941 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
4942 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
4943 applicable.
4944 (fhandle-exceptions): Mark with Alias and Warn.
4945 * c-opts.c (c_common_handle_option): Don't handle options marked
4946 as ignored.
4947
67089c6b 49482010-09-02 Joseph Myers <joseph@codesourcery.com>
4949
4950 * c.opt (Wcomments, Werror-implicit-function-declaration,
4951 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
4952 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
4953 aliases.
4954 * c-common.c (option_codes): Use OPT_Wcomment instead of
4955 OPT_Wcomments.
4956 * c-opts.c (warning_as_error_callback, c_common_handle_option):
4957 Don't handle options marked as aliases.
4958
2af087f2 49592010-08-25 Richard Guenther <rguenther@suse.de>
4960
4961 * c-common.c (c_common_get_alias_set): Remove special
4962 handling for pointers.
4963
48148244 49642010-08-20 Nathan Froyd <froydnj@codesourcery.com>
4965
4966 * c-common.c: Use FOR_EACH_VEC_ELT.
4967 * c-gimplify.c: Likewise.
4968 * c-pragma.c: Likewise.
4969
89c69892 49702010-08-16 Joseph Myers <joseph@codesourcery.com>
4971
4972 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
4973 RejectDriver.
4974 (MMDX): Change back to MMD. Mark NoDriverArg instead of
4975 RejectDriver.
4976 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
4977 instead of OPT_MDX and OPT_MMDX.
4978
e28aa114 49792010-08-16 Joseph Myers <joseph@codesourcery.com>
4980
4981 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
4982
99b66d21 49832010-08-12 Joseph Myers <joseph@codesourcery.com>
4984
4985 * c.opt (MD, MMD): Change to MDX and MMDX.
4986 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
4987
666f4bf0 49882010-08-11 Joseph Myers <joseph@codesourcery.com>
4989
4990 * c-opts.c (c_common_handle_option): Call handle_generated_option
4991 instead of handle_option.
4992
5ec815f6 49932010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4994
4995 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
4996 (maybe_apply_renaming_pragma): Delete unneeded declarations.
4997
d13143cf 49982010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4999
5000 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
5001 (pending_redefine_extname): Change type to a VEC.
5002 (add_to_renaming_pragma_list): Update for new type of
5003 pending_redefine_extname.
5ec815f6 5004 (maybe_apply_renaming_pragma): Likewise.
d13143cf 5005
2008c983 50062010-08-04 Arnaud Charlet <charlet@adacore.com>
5007
5008 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
5009 visited.
5010 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
5011 decide whether a type has already been declared/seen.
5012 Do not go to the original type.
5013 (dump_nested_types): New parameter forward.
5014 Generate forward declaration if needed and mark type as visited.
5015 (print_ada_declaration): Call dump_nested_types if not already done.
5016 Mark types as visited.
5017
9b091a73 50182010-08-03 Joseph Myers <joseph@codesourcery.com>
5019
5020 * c.opt (-print-pch-checksum): Remove option.
5021 * c-opts.c (c_common_handle_option): Don't handle
5022 OPT_print_pch_checksum.
5023
b78351e5 50242010-07-27 Joseph Myers <joseph@codesourcery.com>
5025
5026 * c-common.h (c_common_handle_option): Update prototype and return
5027 value type.
5028 * c-opts.c (c_common_handle_option): Update prototype and return
5029 value type. Update calls to handle_option and
5030 enable_warning_as_error.
5031
34416a90 50322010-07-27 Jakub Jelinek <jakub@redhat.com>
5033
5034 PR c/45079
5035 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
5036
fecf9011 50372010-07-27 Joseph Myers <joseph@codesourcery.com>
5038
5039 * c-common.h (c_common_missing_argument): Remove.
5040 * c-opts.c (c_common_missing_argument): Remove.
5041 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
5042 idirafter, imacros, include, isysroot, isystem, iquote): Add
5043 MissingArgError.
5044 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
5045
e88d34f6 50462010-07-27 Joseph Myers <joseph@codesourcery.com>
5047
5048 * c-common.h (c_common_option_lang_mask,
5049 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
5050 New.
5051 (c_common_init_options): Update prototype.
5052 * c-opts.c (c_common_option_lang_mask): New.
5053 (c_common_initialize_diagnostics): Split out of
5054 c_common_init_options.
5055 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
5056 New.
5057 (c_common_init_options): Update prototype. Use decoded options in
5058 search for -lang-asm.
5059
1767a056 50602010-07-15 Nathan Froyd <froydnj@codesourcery.com>
5061
5062 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
5063 * c-format.c: Likewise.
5064
0b205f4c 50652010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
5066
5067 * c-common.h: Include diagnostic-core.h. Error if already
5068 included.
5069 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
5070
1c58e3f1 50712010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
5072
1f78217c 5073 * c-common.c (IN_GCC_FRONTEND): Do not undef.
1c58e3f1 5074 Do not include expr.h
5075 (vector_mode_valid_p): Move here.
5076
33cc157c 50772010-06-21 DJ Delorie <dj@redhat.com>
5078
5079 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
5080 allow these pragmas anywhere.
5081
50822010-06-14 Jakub Jelinek <jakub@redhat.com>
5083
5084 PR bootstrap/44509
5085 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
5086 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
5087 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
5088 ggc_strdup instead of xstrdup.
5089
50902010-06-10 Jakub Jelinek <jakub@redhat.com>
5091
5092 * c-cppbuiltin.c: Include cpp-id-data.h.
5093 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
5094 (lazy_hex_fp_value): New function.
5095 (builtin_define_with_hex_fp_value): Provide definitions lazily.
5096
9b40bfbf 50972010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5098
5099 * c-gimplify.c: Do not include tree-flow.h
5100
202d6e5f 51012010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
5102
5103 PR other/44034
5104 * c-common.c: Rename targetm member:
5105 targetm.enum_va_list -> targetm.enum_va_list_p
5106
d3237426 51072010-06-28 Anatoly Sokolov <aesok@post.ru>
5108
5109 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
5110
596981c8 51112010-06-28 Steven Bosscher <steven@gcc.gnu.org>
5112
5113 * c-cppbuiltin.c: Do not include except.h.
5114
b9bdfa0b 51152010-06-24 Andi Kleen <ak@linux.intel.com>
5116
19931eea 5117 * c-common.c (warn_for_omitted_condop): New.
5118 * c-common.h (warn_for_omitted_condop): Add prototype.
b9bdfa0b 5119
55ad092d 51202010-06-21 Joseph Myers <joseph@codesourcery.com>
5121
5122 * c.opt (lang-objc): Remove.
5123 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
5124
9e7c2572 51252010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
5126
5127 * c-opts.c: Include "tm_p.h".
5128
615ef0bb 51292010-06-20 Joseph Myers <joseph@codesourcery.com>
5130
5131 * c-common.c (parse_optimize_options): Update call to
5132 decode_options.
5133
aef48c9a 51342010-06-18 Nathan Froyd <froydnj@codesourcery.com>
5135
5136 * c-common.c (record_types_used_by_current_var_decl): Adjust for
5137 new type of types_used_by_cur_var_decl.
5138
d74003b4 51392010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
5140
5141 PR bootstrap/44512
5142 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
5143 for C++ standard compliance.
5144
1194d077 51452010-06-16 Jason Merrill <jason@redhat.com>
5146
5147 * c.opt: Add -Wnoexcept.
5148
d473d901 51492010-06-16 Richard Guenther <rguenther@suse.de>
5150
5151 PR c/44555
5152 * c-common.c (c_common_truthvalue_conversion): Remove
5153 premature and wrong optimization concering ADDR_EXPRs.
5154
b62dbfd3 51552010-06-15 Arnaud Charlet <charlet@adacore.com>
5156
5157 * c-ada-spec.c (dump_sloc): Remove column info.
5158 (is_simple_enum): New function.
5159 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
5160 enum types when relevant.
5161
200dd99c 51622010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
5163
19931eea 5164 * c-common.c (conversion_warning): Warn at expression
200dd99c 5165 location.
5166
abf6a617 51672010-06-10 Joseph Myers <joseph@codesourcery.com>
5168
5169 * c-opts.c (c_common_handle_option): Don't handle
5170 OPT_fshow_column.
5171
ba72912a 51722010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5173
5174 * c-pragma.c (push_alignment): Use typed GC allocation.
5175 (handle_pragma_push_options): Likewise.
5176
5177 * c-common.c (parse_optimize_options): Likewise.
5178
5179 * c-common.h (struct sorted_fields_type): Add variable_size GTY
5180 option.
5181
4aafe913 51822010-06-07 Joseph Myers <joseph@codesourcery.com>
5183
5184 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
5185 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
5186 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
5187 flag_signed_bitfields, warn_strict_null_sentinel,
5188 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
5189 flag_gen_declaration, flag_no_gnu_keywords,
5190 flag_implement_inlines, flag_implicit_templates,
5191 flag_implicit_inline_templates, flag_optional_diags,
5192 flag_elide_constructors, flag_default_inline, flag_rtti,
5193 flag_conserve_space, flag_access_control, flag_check_new,
5194 flag_new_for_scope, flag_weak, flag_working_directory,
5195 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
5196 flag_enforce_eh_specs, flag_threadsafe_statics,
5197 flag_pretty_templates): Remove.
5198 * c-common.h (flag_preprocess_only, flag_nil_receivers,
5199 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
5200 flag_replace_objc_classes, flag_undef, flag_no_builtin,
5201 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
5202 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
5203 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
5204 flag_no_gnu_keywords, flag_implement_inlines,
5205 flag_implicit_templates, flag_implicit_inline_templates,
5206 flag_optional_diags, flag_elide_constructors, flag_default_inline,
5207 flag_rtti, flag_conserve_space, flag_access_control,
5208 flag_check_new, flag_new_for_scope, flag_weak,
5209 flag_working_directory, flag_use_cxa_atexit,
5210 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
5211 flag_threadsafe_statics, flag_pretty_templates,
5212 warn_strict_null_sentinel): Remove.
5213 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
5214 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
5215 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
5216 fimplicit-inline-templates, fimplicit-templates,
5217 flax-vector-conversions, fms-extensions, fnil-receivers,
5218 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
5219 frtti, fshort-double, fshort-enums, fshort-wchar,
5220 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
5221 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
5222 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
5223 gen-decls, undef): Use Var.
5224 (fdefault-inline, foptional-diags): Document as doing nothing.
5225 * c-opts.c (c_common_handle_option): Remove cases for options now
5226 using Var. Mark ignored options as such.
5227
7bedc3a0 52282010-06-05 Steven Bosscher <steven@gcc.gnu.org>
5229
19931eea 5230 * c-common.c: Moved to here from parent directory.
7bedc3a0 5231 * c-common.def: Likewise.
5232 * c-common.h: Likewise.
5233 * c-cppbuiltin.c: Likewise.
5234 * c-dump.c: Likewise.
5235 * c-format.c: Likewise.
5236 * c-format.h : Likewise.
5237 * c-gimplify.c: Likewise.
5238 * c-lex.c: Likewise.
5239 * c-omp.c: Likewise.
5240 * c.opt: Likewise.
5241 * c-opts.c: Likewise.
5242 * c-pch.c: Likewise.
5243 * c-ppoutput.c: Likewise.
5244 * c-pragma.c: Likewise.
5245 * c-pragma.h: Likewise.
5246 * c-pretty-print.c: Likewise.
5247 * c-pretty-print.h: Likewise.
5248 * c-semantics.c: Likewise.
5249 * stub-objc.c: Likewise.
5250
5251 * c-common.c: Include gt-c-family-c-common.h.
5252 * c-pragma.c: Include gt-c-family-c-pragma.h.
5253\f
d353bf18 5254Copyright (C) 2010-2015 Free Software Foundation, Inc.
7bedc3a0 5255
5256Copying and distribution of this file, with or without modification,
5257are permitted in any medium without royalty provided the copyright
5258notice and this notice are preserved.