]> gcc.gnu.org Git - gcc.git/blame - gcc/c-family/ChangeLog
re PR c++/65945 (C++ alignment of nullptr_t is 1 and might cause unaligned stores...
[gcc.git] / gcc / c-family / ChangeLog
CommitLineData
fe95b036
ESR
12015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
2
3 Implement N4197 - Adding u8 character literals
a64be36b
EB
4 * c-family/c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
5 CPP_CHAR.
6 * c-family/c-common.c (c_parse_error): Print CPP_UTF8CHAR and
7 CPP_UTF8CHAR_USERDEF tokens.
8 * c-family/c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
9 and CPP_UTF8CHAR tokens.
10 (lex_charconst): Treat CPP_UTF8CHAR token.
fe95b036 11
da2e71c9
MLI
122015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
13
14 PR fortran/66605
15 * c-common.c (do_warn_unused_parameter): Move here.
16 * c-common.h (do_warn_unused_parameter): Declare.
17
b155cfd9
MP
182015-06-29 Marek Polacek <polacek@redhat.com>
19
20 PR c/66322
21 * c-common.c (check_case_bounds): Add bool * parameter. Set
22 OUTSIDE_RANGE_P.
23 (c_add_case_label): Add bool * parameter. Pass it down to
24 check_case_bounds.
25 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
26 warning here.
27 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
28 declarations.
29
31521951
MP
302015-06-27 Marek Polacek <polacek@redhat.com>
31
32 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
33 or VECTOR_INTEGER_TYPE_P throughout.
34 * c-gimplify.c: Likewise.
35
22d03525
MP
362015-06-26 Marek Polacek <polacek@redhat.com>
37
38 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
39 * c-common.c (c_fully_fold_internal): Likewise.
40 (c_alignof_expr): Likewise.
41 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
42 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
43 * cilk.c (create_parm_list): Likewise.
44
af05e6e5
MP
452015-06-26 Marek Polacek <polacek@redhat.com>
46
47 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
48
f0889939
AM
492015-06-25 Andrew MacLeod <amacleod@redhat.com>
50
51 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
52 * c-gimplify.c: Likewise.
53 * c-pragma.c: Likewise.
54 * c-ubsan.c: Likewise.
55 * cilk.c: Likewise.
56
ca752f39
RS
572015-06-25 Richard Sandiford <richard.sandiford@arm.com>
58
59 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
60 ggc_hasher.
61
16a16ec7
AM
622015-06-25 Andrew MacLeod <amacleod@redhat.com>
63
64 * cilk.c: Move calls.h after tm.h in the include chain.
65
0ae9bd27
MP
662015-06-25 Marek Polacek <polacek@redhat.com>
67
68 * array-notation-common.c: Use VAR_P throughout.
69 * c-ada-spec.c: Likewise.
70 * c-common.c: Likewise.
71 * c-format.c: Likewise.
72 * c-gimplify.c: Likewise.
73 * c-omp.c: Likewise.
74 * c-pragma.c: Likewise.
75 * c-pretty-print.c: Likewise.
76 * cilk.c: Likewise.
77
62f9079a
MP
782015-06-25 Marek Polacek <polacek@redhat.com>
79
80 * cilk.c (extract_free_variables): Use is_global_var.
81
0fa16060
RS
822015-06-23 Richard Sandiford <richard.sandiford@arm.com>
83
84 * c-common.c: Don't include target-def.h.
85
a68ae2e1
MP
862015-06-23 Marek Polacek <polacek@redhat.com>
87
88 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
89 when comparing INTEGER_CSTs.
90
c6a2f2d9
PMR
912015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
92
93 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
94 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
95 (dump_ada_template): Skip partially specialized types.
96
6b4db501
MM
972015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
98
99 * c-common.c (scalar_to_vector): Use std::swap instead of manually
100 swapping.
101
abb226c9
AM
1022015-06-17 Andrew MacLeod <amacleod@redhat.com>
103
104 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
105 * c-ada-spec.c: Likewise.
106 * c-cilkplus.c: Likewise.
107 * c-common.c: Likewise.
108 * c-common.h: Likewise.
109 * c-cppbuiltin.c: Likewise.
110 * c-dump.c: Likewise.
111 * c-format.c: Likewise.
112 * c-gimplify.c: Likewise.
113 * c-indentation.c: Likewise.
114 * c-lex.c: Likewise.
115 * c-omp.c: Likewise.
116 * c-opts.c: Likewise.
117 * c-pch.c: Likewise.
118 * c-ppoutput.c: Likewise.
119 * c-pragma.c: Likewise.
120 * c-pretty-print.c: Likewise.
121 * c-semantics.c: Likewise.
122 * c-ubsan.c: Likewise.
123 * cilk.c: Likewise.
124 * stub-objc.c: Likewise.
125
076fecad
PP
1262015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
127
128 PR c++/65168
129 * c-common.c (c_common_truthvalue_conversion): Warn when
130 converting an address of a reference to a truth value.
131
13fdf2e2
AM
1322015-06-08 Andrew MacLeod <amacleod@redhat.com>
133
134 * array-notation-common.c : Adjust include files.
135 * c-ada-spec.c : Likewise.
136 * c-cilkplus.c : Likewise.
137 * c-common.c : Likewise.
138 * c-common.h : Likewise.
139 * c-cppbuiltin.c : Likewise.
140 * c-dump.c : Likewise.
141 * c-format.c : Likewise.
142 * c-gimplify.c : Likewise.
143 * c-indentation.c : Likewise.
144 * c-lex.c : Likewise.
145 * c-omp.c : Likewise.
146 * c-opts.c : Likewise.
147 * c-pch.c : Likewise.
148 * c-ppoutput.c : Likewise.
149 * c-pragma.c : Likewise.
150 * c-pretty-print.c : Likewise.
151 * c-semantics.c : Likewise.
152 * c-ubsan.c : Likewise.
153 * cilk.c : Likewise.
154 * stub-objc.c : Likewise.
155
a1661b90
MP
1562015-06-08 Marek Polacek <polacek@redhat.com>
157
158 PR c/66415
159 * c-format.c (location_from_offset): Return LOC if LINE is null.
160
d7438551
AH
1612015-06-05 Aldy Hernandez <aldyh@redhat.com>
162
163 * c-common.h (c_parse_final_cleanups): New prototype.
164 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
165
ecb9f223
AM
1662015-06-04 Andrew MacLeod <amacleod@redhat.com>
167
168 * array-notation-common.c: Adjust includes for restructured coretypes.h.
169 * c-ada-spec.c: Likewise.
170 * c-cilkplus.c: Likewise.
171 * c-common.c: Likewise.
172 * c-common.h: Likewise.
173 * c-cppbuiltin.c: Likewise.
174 * c-dump.c: Likewise.
175 * c-format.c: Likewise.
176 * c-gimplify.c: Likewise.
177 * c-indentation.c: Likewise.
178 * c-lex.c: Likewise.
179 * c-omp.c: Likewise.
180 * c-opts.c: Likewise.
181 * c-pch.c: Likewise.
182 * c-ppoutput.c: Likewise.
183 * c-pragma.c: Likewise.
184 * c-pretty-print.c: Likewise.
185 * c-semantics.c: Likewise.
186 * c-ubsan.c: Likewise.
187 * cilk.c: Likewise.
188 * stub-objc.c: Likewise.
189
6ac48155
DM
1902015-06-02 David Malcolm <dmalcolm@redhat.com>
191
192 PR c/66220:
193 * c-indentation.c (should_warn_for_misleading_indentation): Use
194 expand_location rather than expand_location_to_spelling_point.
195 Don't warn if the guarding statement is more indented than the
196 next/body stmts.
197
773ce42e
DM
1982015-06-02 David Malcolm <dmalcolm@redhat.com>
199
200 * c-indentation.c (warn_for_misleading_indentation): Bail out
201 immediately if -Wmisleading-indentation isn't enabled.
202
4fef8379
ML
2032015-06-01 Martin Liska <mliska@suse.cz>
204
205 * c-format.c (check_format_arg):Use new type-based pool allocator.
206 (check_format_info_main) Likewise.
207
1edfb384
EB
2082015-05-31 Eric Botcazou <ebotcazou@adacore.com>
209
210 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
211 (has_nontrivial_methods): Likewise.
212
9677ef52
MP
2132015-05-25 Marek Polacek <polacek@redhat.com>
214
215 * c-ubsan.c (ubsan_instrument_shift): Use type0.
216
fd5c817a
MP
2172015-05-22 Marek Polacek <polacek@redhat.com>
218
219 PR c/47043
220 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
221
a2f45fe6 2222015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
581edfa3
TS
223
224 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
225 STACK_GROWS_DOWNWARD.
226
a2f45fe6 2272015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
62f9f30b
TS
228
229 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
230 STACK_GROWS_DOWNWARD rather than if it is defined.
231
0fee2ac2
MLI
2322015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
233
234 PR c/52952
235 * c-format.c (location_column_from_byte_offset): New.
236 (location_from_offset): New.
237 (struct format_wanted_type): Add offset_loc field.
238 (check_format_info): Move handling of location for extra arguments
239 closer to the point of warning.
240 (check_format_info_main): Pass the result of location_from_offset
241 to warning_at.
242 (format_type_warning): Pass the result of location_from_offset
243 to warning_at.
244
cf4ef6f7
MP
2452015-05-20 Marek Polacek <polacek@redhat.com>
246
247 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
248
3a65ee74
MP
2492015-05-20 Marek Polacek <polacek@redhat.com>
250
251 * c-ada-spec.c (dump_sloc): Use DECL_P.
252
21b634ae
MP
2532015-05-20 Marek Polacek <polacek@redhat.com>
254
255 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
256 * c-common.c: Likewise.
257
0e50b624
DM
2582015-05-19 David Malcolm <dmalcolm@redhat.com>
259
260 * c-common.h (fe_file_change): Strengthen param from
261 const line_map * to const line_map_ordinary *.
262 (pp_file_change): Likewise.
263 * c-lex.c (fe_file_change): Likewise.
264 (cb_define): Use linemap_check_ordinary when invoking
265 SOURCE_LINE.
266 (cb_undef): Likewise.
267 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
268 invoking cb_file_change.
269 (c_finish_options): Likewise.
270 (push_command_line_include): Likewise.
271 (cb_file_change): Strengthen param "new_map" from
272 const line_map * to const line_map_ordinary *.
273 * c-ppoutput.c (cb_define): Likewise for local "map".
274 (pp_file_change): Likewise for param "map" and local "from".
275
fab27f52
MM
2762015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
277
278 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
279
2fe1d762
TV
2802015-05-18 Tom de Vries <tom@codesourcery.com>
281
282 * c-common.c (build_va_arg_1): New function.
283 (build_va_arg): Add address operator to va_list operand if necessary.
284
7a37fa90
MM
2852015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
286
287 PR c/48956
288 * c-common.c (int_safely_convertible_to_real_p): Define.
289 (unsafe_conversion_p): Check conversions involving complex types.
290 (conversion_warning): Add new warning message for conversions which
291 discard imaginary component.
292 * c-common.h: (enum conversion_safety): Add new enumerator for such
293 conversions.
294
3aa3c9fc
MP
2952015-05-14 Marek Polacek <polacek@redhat.com>
296
297 PR c/66066
298 PR c/66127
299 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
300 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
301 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
302 use it. If FOR_INT_CONST, require that all evaluated operands be
303 INTEGER_CSTs.
304
c3388e62
DM
3052015-05-12 David Malcolm <dmalcolm@redhat.com>
306
307 * c-common.h (warn_for_misleading_indentation): New prototype.
308 * c-indentation.c: New file.
309 * c.opt (Wmisleading-indentation): New option.
310
c7b38fd5
TV
3112015-05-12 Tom de Vries <tom@codesourcery.com>
312
313 PR tree-optimization/66010
314 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
315
381bf11e
JM
3162015-05-09 Jason Merrill <jason@redhat.com>
317
edff0c06
JM
318 * c-opts.c (c_common_post_options): Also clear
319 cpp_opts->cpp_warn_cxx11_compat.
320
129211bc
JM
321 * c-common.h (enum cxx_dialect): Add cxx_unset.
322 * c-common.c (cxx_dialect): Initialize to cxx_unset.
323 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
324
381bf11e
JM
325 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
326 (std=gnu++0x): Mark as Undocumented.
327 (std=gnu++1y): Add deprecated message.
328
fe191308
JM
3292015-05-08 Jason Merrill <jason@redhat.com>
330
765189ff
JM
331 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
332 * c-opts.c: Adjust.
333
fe191308
JM
334 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
335
755e528f
MP
3362015-05-08 Marek Polacek <polacek@redhat.com>
337
338 PR c/64918
339 * c.opt (Woverride-init-side-effects): New option.
340
0173bd2a
MP
3412015-05-07 Marek Polacek <polacek@redhat.com>
342
343 PR c/65179
344 * c-common.c (c_fully_fold_internal): Warn when left shifting a
345 negative value.
346 * c.opt (Wshift-negative-value): New option.
347 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
348 when -Wextra and C99/C++11 mode.
349
e0f0d3b9
MP
3502015-05-07 Marek Polacek <polacek@redhat.com>
351 Martin Uecker <uecker@eecs.berkeley.edu>
352
353 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
354 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
355
8243e2a9
JM
3562015-05-05 Jason Merrill <jason@redhat.com>
357
358 * c.opt (Wterminate): New.
359
577cd070
MP
3602015-04-30 Marek Polacek <polacek@redhat.com>
361
362 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
363 require that the non-constant be of a boolean type.
364
0373796b
JT
3652015-04-29 Josh Triplett <josh@joshtriplett.org>
366
e0f0d3b9
MP
367 * c-common.c (handle_section_attribute): Refactor to reduce
368 nesting and distinguish between error cases.
0373796b 369
716c0ba6
MP
3702015-04-29 Marek Polacek <polacek@redhat.com>
371
372 PR c/64610
373 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
374 with 0/1.
375
8848828b
JJ
3762015-04-29 Jakub Jelinek <jakub@redhat.com>
377
378 * c-common.h (omp_clause_mask): Unconditionally define as a class.
379 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
380 HOST_BITS_PER_WIDE_INT.
381
ecd0e562
TV
3822015-04-28 Tom de Vries <tom@codesourcery.com>
383
384 PR tree-optimization/65887
385 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
386
2a877204 3872015-04-28 Eric Botcazou <ebotcazou@adacore.com>
e0f0d3b9 388 Pierre-Marie de Rodat <derodat@adacore.com>
2a877204
EB
389
390 * c-ada-spec.c (in_function): Delete.
391 (dump_generic_ada_node): Do not change in_function and remove the
392 redundant code dealing with it.
393 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
394 (print_ada_methods): Output the static member functions in a nested
395 package after the regular methods as well as associated renamings.
396
4853031e
MP
3972015-04-24 Marek Polacek <polacek@redhat.com>
398
399 PR c/65830
400 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
401 and OPT_Wshift_count_overflow.
402
8c2b7f79
MP
403 PR c/63357
404 * c-common.c (warn_logical_operator): Warn if the operands have the
405 same expressions.
406
b8787813
MP
4072015-04-24 Marek Polacek <polacek@redhat.com>
408
409 PR c/61534
410 * c-common.c (warn_logical_operator): Bail if either operand comes
411 from a macro expansion.
412
8fba1830
BRF
4132015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
414
415 PR target/55143
416 * c-common.c (c_default_pointer_mode): Add definition.
417 * c-common.h (c_default_pointer_mode): Add declaration.
418
17958621
JJ
4192015-03-11 Jakub Jelinek <jakub@redhat.com>
420
421 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
422 on record_builtin_type argument.
423
7ccb1a11
JJ
4242015-03-10 Jakub Jelinek <jakub@redhat.com>
425
426 PR c/65120
427 * c-common.c (warn_logical_not_parentheses): Don't warn for
428 !x == 0 or !x != 0.
429
04fd785e
MP
4302015-03-07 Marek Polacek <polacek@redhat.com>
431
432 PR sanitizer/65280
433 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
434 before trying to figure out whether we have a flexible array member.
435
a4e26206
EB
4362015-03-06 Eric Botcazou <ebotcazou@adacore.com>
437 Jonathan Wakely <jwakely.gcc@gmail.com>
438
439 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
440
0d2489f4
EB
4412015-03-05 Eric Botcazou <ebotcazou@adacore.com>
442
443 PR ada/65319
444 * c-ada-spec.c (print_destructor): Remove obsolete code.
445
83ed54d7
EB
4462015-03-01 Eric Botcazou <ebotcazou@adacore.com>
447
448 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
449 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
450 DECL_TEMPLATE_RESULT emulations.
451 (dump_ada_template)): Add guard for TYPE_METHODS.
452
7631f0e2
MP
4532015-02-27 Marek Polacek <polacek@redhat.com>
454
455 PR c/65040
456 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
457
d1783ae5
KT
4582015-02-27 Kai Tietz <ktietz@redhat.com>
459
460 PR c/35330
461 * c-pragma.c (handle_pragma_weak): Do not try to create
462 weak/alias of declarations not being function, or variable
463 declarations.
464
56a9f6bc
TS
4652015-02-24 Thomas Schwinge <thomas@codesourcery.com>
466
467 PR libgomp/64625
468 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
469 Remove macros.
470 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
471
3d5cb23d
MP
4722015-02-16 Marek Polacek <polacek@redhat.com>
473
474 PR c/65066
475 * c-format.c (check_format_types): Handle null param.
476
fa008882
MP
4772015-02-13 Marek Polacek <polacek@redhat.com>
478
479 PR c/65040
480 * c-format.c (check_format_types): Don't warn about different
481 signedness if the original value is in the range of WANTED_TYPE.
482
785f21af
JM
4832015-02-12 Jason Merrill <jason@redhat.com>
484
485 PR c++/64956
486 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
487 to the current highest version.
488 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
489
4886ec8e
JJ
4902015-02-04 Jakub Jelinek <jakub@redhat.com>
491
492 PR c/64824
493 PR c/64868
494 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
495 instead of RDIV_EXPR. Use build_binary_op instead of
496 build2_loc.
497
40fecdd6
JM
4982015-01-30 Joseph Myers <joseph@codesourcery.com>
499
500 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
501 to pass input_location as first argument.
502
a0c88d06
TV
5032015-01-23 Tom de Vries <tom@codesourcery.com>
504
505 PR libgomp/64672
506 * c.opt (fopenacc): Mark as LTO option.
507
1506ae0e
TV
5082015-01-23 Tom de Vries <tom@codesourcery.com>
509
510 PR libgomp/64707
511 * c.opt (fopenmp): Mark as LTO option.
512
31be63ab
JJ
5132015-01-21 Jakub Jelinek <jakub@redhat.com>
514
515 PR c/63307
516 * cilk.c (fill_decls_vec): Only put decls into vector v.
517 (compare_decls): Fix up formatting.
518
5192015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
520
521 PR c/63307
522 * cilk.c: Include vec.h.
523 (struct cilk_decls): New structure.
524 (wrapper_parm_cb): Split this function to...
525 (fill_decls_vec): ...this...
526 (create_parm_list): ...and this.
527 (compare_decls): New function.
528 (for_local_cb): Remove.
529 (wrapper_local_cb): Ditto.
530 (build_wrapper_type): For now first traverse and fill vector of
531 declarations then sort it and then deal with sorted vector.
532 (cilk_outline): Ditto.
533 (declare_one_free_variable): Ditto.
534
6875457f
JM
5352015-01-21 Jason Merrill <jason@redhat.com>
536
537 PR c++/64629
538 * c-format.c (check_format_arg): Call decl_constant_value.
539
185c9e56
ML
5402015-01-19 Martin Liska <mliska@suse.cz>
541
542 * c-common.c (handle_noicf_attribute): New function.
543
41dbbb37
TS
5442015-01-15 Thomas Schwinge <thomas@codesourcery.com>
545 Bernd Schmidt <bernds@codesourcery.com>
546 James Norris <jnorris@codesourcery.com>
547 Cesar Philippidis <cesar@codesourcery.com>
548 Ilmir Usmanov <i.usmanov@samsung.com>
549 Jakub Jelinek <jakub@redhat.com>
550
551 * c.opt (fopenacc): New option.
552 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
553 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
554 New macros.
555 * c-common.h (c_finish_oacc_wait): New prototype.
556 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
557 (c_finish_oacc_wait): New function.
558 * c-pragma.c (oacc_pragmas): New variable.
559 (c_pp_lookup_pragma, init_pragma): Handle it.
560 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
561 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
562 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
563 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
564 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
565 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
566 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
567 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
568 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
569 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
570 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
571 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
572 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
573 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
574 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
575 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
576 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
577 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
578 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
579 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
580 PRAGMA_OACC_CLAUSE_WORKER.
581
5434dc07
MD
5822015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
583
584 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
585 for the new option fstack-protector_explicit.
586 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
587 (handle_stack_protect_attribute): New function.
588
de1b5c17
MU
5892015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
590
591 * c.opt: New option -Warray-bounds=.
592
adfac8df
JJ
5932015-01-09 Michael Collison <michael.collison@linaro.org>
594
595 * array-notation-common.c: Include hash-set.h, machmode.h,
596 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
597 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
598 * c-ada-spec.c: Ditto.
599 * c-cilkplus.c: Ditto.
600 * c-common.c: Include input.h due to flattening of tree.h.
601 Define macro GCC_C_COMMON_C.
602 * c-common.h: Flatten tree.h header files into c-common.h.
603 Remove include of tree-core.h.
604 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
605 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
606 fold-const.h, wide-int.h, and inchash.h due to
607 flattening of tree.h.
608 * c-dump.c: Ditto.
609 * c-format.c: Flatten tree.h header files into c-common.h.
610 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
611 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
612 fold-const.h, wide-int.h, and inchash.h due to
613 flattening of tree.h.
614 * c-dump.c: Include hash-set.h, machmode.h,
615 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
616 fold-const.h, wide-int.h, and inchash.h due to
617 flattening of tree.h.
618 * c-format.c: Include hash-set.h, machmode.h,
619 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
620 fold-const.h, wide-int.h, inchash.h and real.h due to
621 flattening of tree.h.
622 * c-gimplify.c: Include hash-set.h, machmode.h,
623 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
624 fold-const.h, wide-int.h, and inchash.h due to
625 flattening of tree.h.
626 * cilk.c: Ditto.
627 * c-lex.c: Ditto.
628 * c-omp.c: Ditto.
629 * c-opts.c: Ditto.
630 * c-pch.c: Ditto.
631 * c-ppoutput.c: Ditto.
632 * c-pragma.c: Ditto.
633 * c-pretty-print.c: Ditto.
634 * c-semantics.c: Ditto.
635 * c-ubsan.c: Ditto.
636 * stub-objc.c: Ditto.
637
f5481fc4
JM
6382015-01-08 Jason Merrill <jason@redhat.com>
639
640 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
641 do_ubsan_in_current_function.
642 (ubsan_maybe_instrument_reference_or_call): Likewise.
643 * c-ubsan.h: Declare it.
644
de35aa66
MS
6452015-01-08 Mike Stump <mikestump@comcast.net>
646
647 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
648
4a9a42ab
MP
6492015-01-07 Marek Polacek <polacek@redhat.com>
650
651 PR c/64440
652 * c-common.c (c_fully_fold_internal): Warn for division and modulo
653 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
654
2f42e5de
TS
6552015-01-05 Trevor Saunders <tsaunders@mozilla.com>
656
657 PR c++/31397
658 * c.opt (Wsuggest-override): New option.
659
5624e564
JJ
6602015-01-05 Jakub Jelinek <jakub@redhat.com>
661
662 Update copyright years.
663
5bd012f8
MP
6642015-01-05 Marek Polacek <polacek@redhat.com>
665
666 PR c/64423
667 * c-common.c (warn_array_subscript_with_type_char): Add location_t
668 parameter. Use it.
669 * c-common.h (warn_array_subscript_with_type_char): Update
670 declaration.
671
a7fa8d18
ESR
6722014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
673
674 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
675 Control macro with flag_sized_deallocation.
676
768952be
MU
6772014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
678
679 * c.opt (Wdiscarded-array-qualifiers): New option.
680
1f8d3e84
JJ
6812014-12-19 Jakub Jelinek <jakub@redhat.com>
682
683 PR preprocessor/63831
684 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
685 and __has_cpp_attribute here.
686 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
687 c_common_has_attribute.
688 * c-common.h (c_common_has_attribute): New prototype.
689 * c-lex.c (init_c_lex): Set cb->has_attribute to
690 c_common_has_attribute instead of cb_has_attribute.
691 (get_token_no_padding): New function.
692 (cb_has_attribute): Renamed to ...
693 (c_common_has_attribute): ... this. No longer static. Use
694 get_token_no_padding, require ()s, don't build TREE_LIST
695 unnecessarily, fix up formatting, adjust diagnostics, call
696 init_attributes.
697
20b06add
JM
6982014-12-15 Jason Merrill <jason@redhat.com>
699
700 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
701 (-Wsized-deallocation): New.
702 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
703 to on in C++14 and up.
704
94a073b2
JM
7052014-12-11 Jason Merrill <jason@redhat.com>
706
acaa5911
JM
707 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
708
94a073b2
JM
709 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
710 we aren't complaining about VLAs.
711
7fb66c15
MP
7122014-12-06 Marek Polacek <polacek@redhat.com>
713
714 PR tree-optimization/64183
715 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
716 shift-expression if it is integer_type_node. Use types_compatible_p.
717
b731b390
JJ
7182014-11-29 Jakub Jelinek <jakub@redhat.com>
719
720 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
721 last argument from create_tmp_var_raw and create_tmp_var calls.
722 * cilk.c (gimplify_cilk_spawn): Likewise.
723 * c-omp.c (c_finish_omp_atomic): Likewise.
724
6a4da643
MP
7252014-11-28 Marek Polacek <polacek@redhat.com>
726
727 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
728 instead of unsigned_type_node.
729
541e35a6
MP
7302014-11-28 Marek Polacek <polacek@redhat.com>
731
732 PR c/63862
733 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
734 to op1_utype.
735 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
736 expression to unsigned_type_node.
737
dcc97066
MW
7382014-11-20 Mark Wielaard <mjw@redhat.com>
739
740 PR debug/38757
741 * c-opts.c (set_std_c89): Set lang_hooks.name.
742 (set_std_c99): Likewise.
743 (set_std_c11): Likewise.
744 (set_std_cxx98): Likewise.
745 (set_std_cxx11): Likewise.
746 (set_std_cxx14): Likewise.
747 (set_std_cxx1z): Likewise.
748
aa7da51a
JJ
7492014-11-21 Jakub Jelinek <jakub@redhat.com>
750
751 PR target/63764
752 * c-common.h (convert_vector_to_pointer_for_subscript): Change
753 return type to bool.
009a3480 754 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
755 (convert_vector_to_pointer_for_subscript): Change return type to
756 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
757 and copy it into a TARGET_EXPR and use that instead of *vecp
758 directly.
759
538dd0b7
DM
7602014-11-19 David Malcolm <dmalcolm@redhat.com>
761
762 Merger of git branch "gimple-classes-v2-option-3".
763 * ChangeLog.gimple-classes: New.
764 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
765 from being just a vec<gimple> to a vec<gbind *>.
766
c39a5e99
JJ
7672014-11-18 Jakub Jelinek <jakub@redhat.com>
768
769 PR sanitizer/63813
770 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
771 argument to ptype, set type to TREE_TYPE (ptype). Don't call
772 get_pointer_alignment for non-pointers. Use ptype, or if it is
773 reference type, corresponding pointer type, as type of kind
774 argument.
775 (ubsan_maybe_instrument_reference,
776 ubsan_maybe_instrument_member_call): Adjust callers.
777
8537a4a9
MP
7782014-11-15 Marek Polacek <polacek@redhat.com>
779
780 PR middle-end/63884
781 * array-notation-common.c (is_sec_implicit_index_fn): Return false
782 for NULL fndecl.
783 (extract_array_notation_exprs): Return for NULL node.
784
2079956a
JM
7852014-11-12 Joseph Myers <joseph@codesourcery.com>
786
787 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
788 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
789
1304953e
JJ
7902014-11-12 Jakub Jelinek <jakub@redhat.com>
791
792 PR c/59708
793 * c-common.c (check_builtin_function_arguments): Handle
794 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
795
e5e44252
AK
7962014-11-10 Andi Kleen <ak@linux.intel.com>
797
798 PR c/60804
799 * c-common.h (check_no_cilk): Declare.
800 * cilk.c (get_error_location): New function.
801 (check_no_cilk): Dito.
802
e64b984d
AK
8032014-11-10 Andi Kleen <ak@linux.intel.com>
804
805 * cilk.c (recognize_spawn): Use expression location
806 for error message.
807
13c21655
PC
8082014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
809
810 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
811
42fd12b1
ESR
8122014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
813
814 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
815 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
816 (__cpp_range_based_for, __cpp_initializer_lists,
817 __cpp_delegating_constructors, __cpp_nsdmi,
818 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
819 for C++11; (__cpp_attribute_deprecated): Remove in favor of
820 __has_cpp_attribute.
821 * c-lex.c (cb_has_attribute): New callback CPP function;
822 (init_c_lex): Set has_attribute callback.
823
6f450181
RB
8242014-11-04 Richard Biener <rguenther@suse.de>
825
826 * c-common.c (shorten_compare): Do not shorten mixed
827 DFP and non-DFP compares.
828
26f0e1d6
ESR
8292014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
830
831 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
832 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
833 Commentary and rearrangement of tests.
834 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
835 Commentary and rearrangement of tests.
836 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
837 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
838
ef4bddc2
RS
8392014-10-29 Richard Sandiford <richard.sandiford@arm.com>
840
841 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
842 enum from machine_mode.
843
c582198b
AM
8442014-10-28 Andrew MacLeod <amacleod@redhat.com>
845
adfac8df
JJ
846 * c-common.c: Adjust include files.
847 * c-gimplify.c: Ditto.
848 * cilk.c: Ditto.
849 * c-pragma.c: Ditto.
850 * c-ubsan.c: Ditto.
c582198b 851
60393bbc
AM
8522014-10-27 Andrew MacLeod <amacleod@redhat.com>
853
854 * c-gimplify.c: Adjust include files.
855
d723bb7c
MLI
8562014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
857
858 PR c++/53061
859 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
860 c_common_initialize_diagnostics.
861 * c-common.h: Likewise.
862
90f3520e
MP
8632014-10-24 Marek Polacek <polacek@redhat.com>
864
865 PR c/56980
866 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
867 print "struct"/"union"/"enum" for typedefed names.
868
59d7607a
MP
8692014-10-23 Marek Polacek <polacek@redhat.com>
870
871 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
872 in unsigned type.
873
d95a2703
JJ
8742014-10-22 Jakub Jelinek <jakub@redhat.com>
875 Yury Gribov <y.gribov@samsung.com>
876
877 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
878 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
879 instead of flag_sanitize_recover as bool flag.
880
8e6ef852
KY
8812014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
882
883 * cilk.c: Revert previous change.
884
948cf550
IZ
8852014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
886
887 PR c/63307
888 * cilk.c: Include vec.h.
889 (struct cilk_decls): New structure.
890 (wrapper_parm_cb): Split this function to...
891 (fill_decls_vec): ...this...
892 (create_parm_list): ...and this.
893 (compare_decls): New function.
894 (for_local_cb): Remove.
895 (wrapper_local_cb): Ditto.
896 (build_wrapper_type): For now first traverse and fill vector of
897 declarations then sort it and then deal with sorted vector.
898 (cilk_outline): Ditto.
899 (declare_one_free_variable): Ditto.
900
92574c7c
MP
9012014-10-17 Marek Polacek <polacek@redhat.com>
902
903 * c-opts.c (c_common_post_options): Set warn_implicit_int.
904 * c.opt (Wimplicit-int): Initialize to -1.
905
83685514
AM
9062014-10-16 Andrew MacLeod <amacleod@redhat.com>
907
908 * c-pragma.c: Adjust include files.
909 * c-semantics.c: Likewise.
910
5b8300ea
DD
9112014-10-16 DJ Delorie <dj@redhat.com>
912
913 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
914 multiples of bytes.
915
5f83e90b
JM
9162014-10-14 Jason Merrill <jason@redhat.com>
917
918 PR c++/63455
919 * c-common.h (CPP_PREPARSED_EXPR): New.
920 (N_CP_TTYPES): Adjust.
921
d73326ca
MP
9222014-10-15 Marek Polacek <polacek@redhat.com>
923
924 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
925
78a7c317
DD
9262014-10-14 DJ Delorie <dj@redhat.com>
927
928 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
929 types, not just __int128.
930 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
931 types, not just __int128.
932 (cpp_atomic_builtins): Round pointer sizes up.
933 (type_suffix): Use type precision, not specific types.
934 * c-common.c (c_common_reswords): Remove __int128 special case.
935 (c_common_type_for_size): Check for all __intN types, not just
936 __int128.
937 (c_common_type_for_mode): Likewise.
938 (c_common_signed_or_unsigned_type): Likewise.
939 (c_build_bitfield_integer_type): Likewise.
940 (c_common_nodes_and_builtins): Likewise.
941 (keyword_begins_type_specifier): Likewise.
942 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
943 __intN variants.
944
2a22f99c
TS
9452014-10-12 Trevor Saunders <tsaunders@mozilla.com>
946
947 * c-common.c: Use hash_table instead of hashtab.
948
2a8ef767
ESR
9492014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
950
adfac8df 951 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
952 C++11 section.
953
3c9aabbd
MG
9542014-10-03 Marc Glisse <marc.glisse@inria.fr>
955
956 PR c++/54427
957 PR c++/57198
958 PR c++/58845
959 * c-common.c (warn_logical_operator): Punt for vectors.
960
a15f7cb8
ESR
9612014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
962
963 Implement SD-6: SG10 Feature Test Recommendations
964 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
965 macros and the __has_header macro.
966
8d0cf15e
JM
9672014-09-30 Jason Merrill <jason@redhat.com>
968
dd5d5481
JM
969 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
970 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
971 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
972
b752325e
JM
973 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
974 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
975
8d0cf15e
JM
976 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
977 * c-common.c (c_common_reswords): Remove __is_convertible_to.
978
083e891e
MP
9792014-09-24 Marek Polacek <polacek@redhat.com>
980
981 PR c/61405
982 PR c/53874
983 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
984
7861b648
AK
9852014-09-23 Andi Kleen <ak@linux.intel.com>
986
987 * c-common.c (handle_no_reorder_attribute): New function.
988 (c_common_attribute_table): Add no_reorder attribute.
989
9a79452d
JM
9902014-09-22 Joseph Myers <joseph@codesourcery.com>
991
992 * c-cppbuiltin.c (c_cpp_builtins): Define
993 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
994 modes.
995
dd69f047
JM
9962014-09-18 Joseph Myers <joseph@codesourcery.com>
997
998 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
999 for supported floating-point modes.
1000
737a4826
MLI
10012014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1002
1003 * c.opt (Wpsabi): Use LangEnabledBy.
1004 * c-opts.c (c_common_handle_option): Do not handle here.
1005
8cc4b7a2
JM
10062014-09-12 Joseph Myers <joseph@codesourcery.com>
1007
1008 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
1009 macros for floating-point modes.
1010
179b5a55
MG
10112014-09-11 Marc Glisse <marc.glisse@inria.fr>
1012
1013 PR target/58757
1014 * c-cppbuiltin.c (builtin_define_float_constants): Correct
1015 __*_DENORM_MIN__ without denormals.
1016
570a11fe
JJ
10172014-09-10 Jakub Jelinek <jakub@redhat.com>
1018
1019 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1020 ubsan_instrument_vla, ubsan_instrument_return): Adjust
1021 ubsan_create_data callers.
1022 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
1023 index is constant or BIT_AND_EXPR with constant mask and is
1024 small enough for the bound.
1025 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
1026 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
1027
b559c810
MLI
10282014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1029
1030 * c.opt: Add CppReason to various flags.
1031 (Wdate-time): Re-sort.
1032 * c-common.c: Include c-common.h earlier.
1033 (struct reason_option_codes_t): Delete.
1034 (c_option_controlling_cpp_error): Prefix global type and struct
1035 with cpp_.
1036
1ef33fd4
MLI
10372014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1038
1039 * c.opt (Wnormalized): New.
1040 (Wnormalized=): Use Enum and Reject Negative.
1041 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
1042
66bb34c0
JM
10432014-09-08 Joseph Myers <joseph@codesourcery.com>
1044
1045 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
1046 digits of floating-point modes if -fbuilding-libgcc.
1047
53d68b9f
JM
10482014-09-05 Joseph Myers <joseph@codesourcery.com>
1049
1050 * c-cppbuiltin.c (c_cpp_builtins): Also define
1051 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
1052 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
1053 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
1054 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
1055 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
1056 __LIBGCC_STACK_GROWS_DOWNWARD__,
1057 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
1058 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
1059 __LIBGCC_DWARF_FRAME_REGISTERS__,
1060 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
1061 __LIBGCC_STACK_POINTER_REGNUM__ and
1062 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
1063 (builtin_define_with_value): Handle backslash-escaping in string
1064 macro values.
1065
f65586dc
RB
10662014-09-05 Richard Biener <rguenther@suse.de>
1067
1068 PR middle-end/63148
1069 * c-format.c (check_format_arg): Properly handle
1070 effectively signed POINTER_PLUS_EXPR offset.
1071
2b71f4a4
MLI
10722014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1073
1074 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
1075 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
1076 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
1077 and Init.
1078 * c-opts.c (c_common_handle_option): Do not handle here.
1079 (sanitize_cpp_opts): Likewise.
1080 * c-common.c (struct reason_option_codes_t): Handle
1081 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
1082
d2e4feca
MP
10832014-09-03 Marek Polacek <polacek@redhat.com>
1084
1085 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
1086
9a771876
JJ
10872014-09-02 Jakub Jelinek <jakub@redhat.com>
1088 Balaji V. Iyer <balaji.v.iyer@intel.com>
1089 Igor Zamyatin <igor.zamyatin@intel.com>
1090
1091 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
1092 * c-common.c (c_common_reswords): Added _Cilk_for.
1093 * c-common.h (enum rid): Added RID_CILK_FOR.
1094 (cilk_for_number_of_iterations): Add declaration.
1095 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
1096 CILK_FOR.
1097 * c-pragma.c (init_pragma): Register "grainsize" pragma.
1098 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
1099
81b5d104
MLI
11002014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1101
1102 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
1103 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
1104 Wundef): Use CPP, Var and Init.
1105 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
1106
b753b37b
MLI
11072014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1108
1109 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
1110 * c-opts.c (c_common_handle_option): Do not handle here.
1111
028aee17
JM
11122014-08-25 Jason Merrill <jason@redhat.com>
1113
1114 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
1115 -std=c++14 and -std=gnu++14, rather than the reverse.
1116 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
1117 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
1118 * c-common.h (cxx_dialect): Remove cxx1y.
1119
e4276ba5
ESR
11202014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
1121
1122 * c-common.h (enum cxx_dialect): Add cxx14.
1123 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
1124 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
1125 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
1126
a545cacd
JM
11272014-08-22 Jason Merrill <jason@redhat.com>
1128
1129 * c.opt (std=gnu++17): Fix alias.
1130
59ea0364
MP
11312014-08-22 Marek Polacek <polacek@redhat.com>
1132
1133 PR c++/62199
1134 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
1135 check for vector types. Drop LHS argument.
1136 * c-common.h (warn_logical_not_parentheses): Adjust.
1137
596e808c
MLI
11382014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1139
1140 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
1141 (Wmultichar): Likewise.
1142 (Wdate-time): Use C-family languages instead of Common. Use CPP
1143 and Var.
1144 * c-opts.c (c_common_handle_option): Do not handle the above
1145 options here.
1146 (sanitize_cpp_opts): Likewise.
1147
18767f65
MLI
11482014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
1149
1150 PR fortran/44054
1151 * c-opts.c: Include tree-diagnostics.h.
1152 (c_diagnostic_finalizer): New.
1153 (c_common_initialize_diagnostics): Use it.
1154
b4413594
MLI
11552014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1156
1157 PR preprocessor/51303
1158 * c-common.c (struct reason_option_codes_t option_codes):
1159 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
1160
43f9a13c
MLI
11612014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1162
1163 PR c/60975
1164 PR c/53063
1165 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
1166 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
1167 (c_common_post_options): Call init_global_opts_from_cpp.
1168 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
1169
04159acf
MP
11702014-08-19 Marek Polacek <polacek@redhat.com>
1171
1172 PR c++/62153
1173 * c-common.c (maybe_warn_bool_compare): New function.
1174 * c-common.h (maybe_warn_bool_compare): Declare.
1175 * c.opt (Wbool-compare): New option.
1176
35aff4fb
MP
11772014-08-19 Marek Polacek <polacek@redhat.com>
1178
1179 * c.opt (Wc99-c11-compat): New option.
1180
177cce46
MP
11812014-08-19 Marek Polacek <polacek@redhat.com>
1182
1183 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
1184 to warn_c90_c99_compat.
1185 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
1186 to -1.
1187
6ae9194f
MLI
11882014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
1189 Steven Bosscher <steven@gcc.gnu.org>
1190
1191 PR c/52952
1192 * c-format.c: Add extra_arg_loc and format_string_loc to struct
1193 format_check_results.
1194 (check_function_format): Use true and add comment for boolean
1195 argument.
1196 (finish_dollar_format_checking): Use explicit location when warning.
1197 (check_format_info): Likewise.
1198 (check_format_arg): Set extra_arg_loc and format_string_loc.
1199 (check_format_info_main): Use explicit location when warning.
1200 (check_format_types): Pass explicit location.
1201 (format_type_warning): Likewise.
1202
8e54f6d3
MLI
12032014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1204
1205 PR fortran/44054
1206 * c-format.c: Handle Fortran flags.
1207
cd4e76fc
IZ
12082014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
1209
1210 PR other/61962
1211 * array-notation-common.c (find_rank): Added handling for other
1212 types of references.
1213
f3bede71
MP
12142014-08-10 Marek Polacek <polacek@redhat.com>
1215
1216 PR c/51849
1217 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
1218 * c.opt (Wc90-c99-compat): Add option.
1219
9f25a338
TS
12202014-08-07 Trevor Saunders <tsaunders@mozilla.com>
1221
1222 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
1223
62e4eb35
MP
12242014-08-03 Marek Polacek <polacek@redhat.com>
1225
1226 * c-common.c (check_case_value): Add location_t parameter. Use it.
1227 (c_add_case_label): Pass loc to check_case_value.
1228
b787e7a2
TS
12292014-08-02 Trevor Saunders <tsaunders@mozilla.com>
1230
1231 * cilk.c: Use hash_map instead of pointer_map.
1232
6e2830c3
TS
12332014-08-02 Trevor Saunders <tsaunders@mozilla.com>
1234
1235 * c-gimplify.c: Use hash_set instead of pointer_set.
1236
a7ee52fb
IZ
12372014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
1238
1239 PR middle-end/61455
1240 * array-notation-common.c (extract_array_notation_exprs): Handling
1241 of DECL_EXPR added.
1242
944fa280
JJ
12432014-08-01 Jakub Jelinek <jakub@redhat.com>
1244
1245 * c-common.h (min_align_of_type): Removed prototype.
1246 * c-common.c (min_align_of_type): Removed.
1247 * c-ubsan.h (ubsan_maybe_instrument_reference,
1248 ubsan_maybe_instrument_member_call): New prototypes.
1249 * c-ubsan.c: Include stor-layout.h and builtins.h.
1250 (ubsan_maybe_instrument_reference_or_call,
1251 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
1252 functions.
1253
b4dfdc11
MG
12542014-07-31 Marc Glisse <marc.glisse@inria.fr>
1255
1256 PR c++/60517
1257 * c.opt (-Wreturn-local-addr): Move to common.opt.
1258
a41844e5
JM
12592014-07-30 Jason Merrill <jason@redhat.com>
1260
1261 PR c++/61659
1262 PR c++/61687
1263 Revert:
1264 * c.opt (-fuse-all-virtuals): New.
1265
976d5a22
TT
12662014-07-30 Tom Tromey <tromey@redhat.com>
1267
1268 PR c/59855
1269 * c.opt (Wdesignated-init): New option.
1270 * c-common.c (c_common_attribute_table): Add "designated_init".
1271 (handle_designated_init): New function.
1272
cdc94aca
MP
12732014-07-24 Marek Polacek <polacek@redhat.com>
1274
1275 PR c/57653
1276 * c-opts.c (c_finish_options): If -imacros is in effect, return.
1277
f41373b6
DS
12782014-07-16 Dodji Seketeli <dodji@redhat.com>
1279
1280 PR preprocessor/60723 - missing system-ness marks for macro tokens
1281 * c-ppoutput.c (struct print::prev_was_system_token): New data
1282 member.
1283 (init_pp_output): Initialize it.
1284 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
1285 (do_line_change): Return a flag saying if a line marker was
1286 emitted or not.
1287 (scan_translation_unit): Detect if the system-ness of the token we
1288 are about to emit is different from the one of the previously
1289 emitted token. If so, emit a line marker. Avoid emitting useless
1290 adjacent line markers. Avoid emitting line markers for tokens
1291 originating from the expansion of built-in macros.
1292 (scan_translation_unit_directives_only): Adjust.
1293
4d661eaa
MP
12942014-07-15 Marek Polacek <polacek@redhat.com>
1295
1296 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
1297 TYPE_MAX_VALUE is NULL.
1298
b108f48f
JJ
12992014-07-14 Jakub Jelinek <jakub@redhat.com>
1300
1301 PR middle-end/61294
1302 * c.opt (Wmemset-transposed-args): New warning.
1303
c0221884
JM
13042014-07-10 Jason Merrill <jason@redhat.com>
1305
1306 PR c++/61659
1307 PR c++/61687
1308 * c.opt (-fuse-all-virtuals): New.
1309
63dfbb95
RB
13102014-07-09 Richard Biener <rguenther@suse.de>
1311
1312 PR c-family/61741
1313 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1314 using unsigned arithmetic if overflow does not wrap instead of
1315 if overflow is undefined.
1316
773ec47f
MP
13172014-07-06 Marek Polacek <polacek@redhat.com>
1318
1319 PR c/6940
1320 * c.opt (Wsizeof-array-argument): New option.
1321
00a7ba58
JJ
13222014-07-03 Jakub Jelinek <jakub@redhat.com>
1323
1324 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
1325 comments->count <= 1, as comments->entries might be NULL.
1326
52ec0ea3
MP
13272014-07-01 Marek Polacek <polacek@redhat.com>
1328
1329 * c.opt (Wint-conversion): New option.
1330
d5c3d343
MP
13312014-07-01 Marek Polacek <polacek@redhat.com>
1332
1333 PR c/58286
1334 * c.opt (Wincompatible-pointer-types): New option.
1335
6e7ceb17
PC
13362014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
1337
1338 PR c++/51400
1339 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
1340 Do not discard TYPE_QUALS of type.
1341
da73100b
JM
13422014-06-26 Jason Merrill <jason@redhat.com>
1343
1344 * c-common.h (enum cxx_dialect): Add cxx1z.
1345 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
1346 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
1347
08eedf75
TJ
13482014-06-26 Teresa Johnson <tejohnson@google.com>
1349
1350 * c-common.h (get_dump_info): Declare.
1351 * c-gimplify.c (c_genericize): Use saved dump files.
1352 * c-opts.c (c_common_parse_file): Begin and end dumps
1353 once around parsing invocation.
1354 (get_dump_info): New function.
1355
7b56b2f8
MP
13562014-06-23 Marek Polacek <polacek@redhat.com>
1357 Andrew MacLeod <amacleod@redhat.com>
1358
1359 PR c/61553
1360 * c-common.c (get_atomic_generic_size): Don't segfault if the
1361 type doesn't have a size.
1362
0e37a2f3
MP
13632014-06-20 Marek Polacek <polacek@redhat.com>
1364
1365 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
1366 (ubsan_walk_array_refs_r): New function.
1367 (c_genericize): Instrument array bounds.
1368 * c-ubsan.c: Include "internal-fn.h".
1369 (ubsan_instrument_division): Mark instrumented arrays as having
1370 side effects. Adjust ubsan_type_descriptor call.
1371 (ubsan_instrument_shift): Likewise.
1372 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
1373 (ubsan_instrument_bounds): New function.
1374 (ubsan_array_ref_instrumented_p): New function.
1375 (ubsan_maybe_instrument_array_ref): New function.
1376 * c-ubsan.h (ubsan_instrument_bounds): Declare.
1377 (ubsan_array_ref_instrumented_p): Declare.
1378 (ubsan_maybe_instrument_array_ref): Declare.
1379
13802014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
1381
1382 PR lto/61123
1383 * c.opt (fshort-enums): Add to LTO.
1384 * c.opt (fshort-wchar): Likewise.
1385
5c3d09f7
MP
13862014-06-16 Marek Polacek <polacek@redhat.com>
1387
1388 PR c/60439
1389 * c.opt (Wswitch-bool): Add Var.
1390
9cf32741
JJ
13912014-06-12 Jakub Jelinek <jakub@redhat.com>
1392
1393 PR middle-end/61486
1394 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
1395 #pragma omp target teams or
1396 #pragma omp {,target }teams distribute simd.
1397
62984918
JM
13982014-06-12 Jason Merrill <jason@redhat.com>
1399
1400 * c.opt (Wabi=, fabi-compat-version): New.
1401 * c-opts.c (c_common_handle_option): Handle -Wabi=.
1402 (c_common_post_options): Handle flag_abi_compat_version default.
1403 Disallow -fabi-compat-version=1.
1404 * c-common.h (abi_version_crosses): New.
1405
f961457f
JH
14062014-06-11 Jan Hubicka <hubicka@ucw.cz>
1407
adfac8df 1408 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
1409 section names that are no longer trees.
1410
92d28cbb
JJ
14112014-06-10 Jakub Jelinek <jakub@redhat.com>
1412
1413 PR fortran/60928
1414 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
1415 (omp_pragmas): ... back here.
1416
742938c9
MP
14172014-06-05 Marek Polacek <polacek@redhat.com>
1418
1419 PR c/49706
1420 * c-common.c (warn_logical_not_parentheses): New function.
1421 * c-common.h (warn_logical_not_parentheses): Declare.
1422 * c.opt (Wlogical-not-parentheses): New option.
1423
9d548dfb
MP
14242014-06-04 Marek Polacek <polacek@redhat.com>
1425
1426 PR c/30020
1427 * c-common.c (check_case_bounds): Add location parameter.
1428 Use it.
1429 (c_add_case_label): Pass loc to check_case_bounds.
1430
fedfecef
MP
14312014-06-03 Marek Polacek <polacek@redhat.com>
1432
1433 PR c/60439
1434 * c.opt (Wswitch-bool): New option.
1435
f6a7cffc
TS
14362014-05-22 Thomas Schwinge <thomas@codesourcery.com>
1437
040d18b6
TS
1438 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
1439 Remove prototypes.
1440 (record_types_used_by_current_var_decl): Move prototype to where
1441 it belongs.
1442
f6a7cffc
TS
1443 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
1444 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
1445 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
1446
632f2871
RS
14472014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1448
1449 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
1450 * c-common.c (c_common_nodes_and_builtins): Don't initialize
1451 void_zero_node.
1452 * c-pretty-print.c (pp_c_void_constant): New function.
1453 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
1454 (c_pretty_printer::expression): Handle VOID_CST.
1455 * cilk.c (extract_free_variables): Likewise.
1456 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
1457 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
1458
766090c2
TS
14592014-05-17 Trevor Saunders <tsaunders@mozilla.com>
1460
1461 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
1462 * c-pragma.c (push_alignment): Adjust.
1463 (handle_pragma_push_options): Likewise.
1464
661a0813
MP
14652014-05-09 Marek Polacek <polacek@redhat.com>
1466
1467 PR c/50459
1468 * c-common.c (check_user_alignment): Return -1 if alignment is error
1469 node.
1470 (handle_aligned_attribute): Don't call default_conversion on
1471 FUNCTION_DECLs.
1472 (handle_vector_size_attribute): Likewise.
1473 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
1474 (handle_sentinel_attribute): Call default_conversion and allow even
1475 integral types as an argument.
1476
2793eeab
MP
14772014-05-08 Marek Polacek <polacek@redhat.com>
1478
1479 PR c/61053
1480 * c-common.c (min_align_of_type): New function factored out from...
1481 (c_sizeof_or_alignof_type): ...here.
1482 * c-common.h (min_align_of_type): Declare.
1483
f827930a
MP
14842014-05-08 Marek Polacek <polacek@redhat.com>
1485
1486 PR c/61077
1487 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
1488 parameter type of main.
1489
ca49b74e
DD
14902014-05-07 DJ Delorie <dj@redhat.com>
1491
1492 * c-cppbuiltin.c (print_bits_of_hex): New.
1493 (builtin_define_type_minmax): Print values using hex so as not to
1494 require a pre-computed list of string values.
1495
1d60af08
KZ
14962014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
1497 Mike Stump <mikestump@comcast.net>
1498 Richard Sandiford <rdsandiford@googlemail.com>
1499
1500 * c-ada-spec.c: Include wide-int.h.
1501 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
1502 (dump_generic_ada_node): Use wide-int interfaces.
1503 * c-common.c: Include wide-int-print.h.
1504 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
1505 (pointer_int_sum): Use wide-int interfaces.
1506 (c_common_nodes_and_builtins): Use make_int_cst.
1507 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
1508 (handle_alloc_size_attribute): Use wide-int interfaces.
1509 (get_nonnull_operand): Likewise.
1510 * c-format.c (get_constant): Use tree_fits_uhwi_p.
1511 * c-lex.c: Include wide-int.h.
1512 (narrowest_unsigned_type): Take a widest_int rather than two
1513 HOST_WIDE_INTs.
1514 (narrowest_signed_type): Likewise.
1515 (interpret_integer): Update accordingly. Use wide-int interfaces.
1516 (lex_charconst): Use wide-int interfaces.
1517 * c-pretty-print.c: Include wide-int.h.
1518 (pp_c_integer_constant): Use wide-int interfaces.
1519 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
1520 INT_CST_LT_UNSIGNED.
1521
b15458be
RB
15222014-05-06 Richard Biener <rguenther@suse.de>
1523
1524 * c-opts.c (c_common_post_options): For -freestanding,
1525 -fno-hosted and -fno-builtin disable pattern recognition
1526 if not enabled explicitely.
1527
6577374e
MP
15282014-05-02 Marek Polacek <polacek@redhat.com>
1529
1530 * c.opt (Wsizeof-pointer-memaccess): Describe option.
1531
d00887e8
MP
15322014-05-01 Marek Polacek <polacek@redhat.com>
1533
1534 PR c/43245
1535 * c.opt (Wdiscarded-qualifiers): Add.
1536
f8ed5150
MP
15372014-04-30 Marek Polacek <polacek@redhat.com>
1538
1539 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
1540 INT_MIN / -1 sanitization only for integer types.
1541
45484dcf
MP
15422014-04-25 Marek Polacek <polacek@redhat.com>
1543
1544 PR c/18079
1545 * c-common.c (handle_noinline_attribute): Warn if the attribute
1546 conflicts with always_inline attribute.
1547 (handle_always_inline_attribute): Warn if the attribute conflicts
1548 with noinline attribute.
1549
38e514c0
MP
15502014-04-25 Marek Polacek <polacek@redhat.com>
1551
1552 PR c/60156
1553 * c-common.c (check_main_parameter_types): Warn about variadic main.
1554
44875f92
MS
15552014-04-24 Mike Stump <mikestump@comcast.net>
1556
1557 * c.opt (Wshadow-ivar): Default to on.
1558
dcaaa5a0
DP
15592014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
1560
1561 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
1562
c07d7c02
MP
15632014-04-23 Marek Polacek <polacek@redhat.com>
1564
1565 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
1566
1c33c9b7
JJ
15672014-04-22 Jakub Jelinek <jakub@redhat.com>
1568
1569 PR sanitizer/60275
1570 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
1571 if flag_sanitize_undefined_trap_on_error.
1572 (ubsan_instrument_division, ubsan_instrument_shift,
1573 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
1574 if !flag_sanitize_recover.
1575
793c625f
MG
15762014-04-22 Marc Glisse <marc.glisse@inria.fr>
1577
1578 PR libstdc++/43622
1579 * c-common.c (registered_builtin_types): Make non-static.
1580 * c-common.h (registered_builtin_types): Declare.
1581
b0f1bf36
RB
15822014-04-14 Richard Biener <rguenther@suse.de>
1583 Marc Glisse <marc.glisse@inria.fr>
1584
1585 PR c/60819
1586 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
1587 apply may-alias the scalar pointer type when applicable.
1588
3b07fa4a
IZ
15892014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
1590
1591 PR middle-end/60467
1592 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
1593 as possible argument for Cilk_spawn.
1594
cbbd2b1c
TB
15952014-04-11 Tobias Burnus <burnus@net-b.de>
1596
1597 PR c/60194
1598 * c.opt (Wformat-signedness): Add
1599 * c-format.c(check_format_types): Use it.
1600
6415bd5d
JM
16012014-04-11 Jason Merrill <jason@redhat.com>
1602
1603 PR c++/57926
1604 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
1605 default_conversion for an array argument.
1606
6525783a
MP
16072014-04-08 Marek Polacek <polacek@redhat.com>
1608
1609 PR sanitizer/60745
1610 * c-ubsan.c: Include asan.h.
1611 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
1612
880a467b
NS
16132014-04-03 Nathan Sidwell <nathan@codesourcery.com>
1614
1615 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
1616
7b59ff2d
MP
16172014-04-02 Marek Polacek <polacek@redhat.com>
1618
1619 * c-common.h (c_expand_expr): Remove declaration.
1620
8edbfaa6
JJ
16212014-03-28 Jakub Jelinek <jakub@redhat.com>
1622
1623 PR c++/60689
1624 * c-common.c (add_atomic_size_parameter): When creating new
1625 params vector, push the size argument first.
1626
07d72e1d
JJ
16272014-03-26 Jakub Jelinek <jakub@redhat.com>
1628
1629 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1630 ubsan_instrument_vla, ubsan_instrument_return): Adjust
1631 ubsan_create_data callers.
1632
b35e0fa0
JJ
16332014-03-22 Jakub Jelinek <jakub@redhat.com>
1634
1635 PR debug/60603
1636 * c-opts.c (c_finish_options): Restore cb_file_change call to
1637 <built-in>.
1638
39a1ebb3
JJ
16392014-03-13 Jakub Jelinek <jakub@redhat.com>
1640
1641 PR middle-end/36282
1642 * c-pragma.c (apply_pragma_weak): Only look at
1643 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
1644 DECL_ASSEMBLER_NAME_SET_P (decl).
1645 (maybe_apply_pending_pragma_weaks): Exit early if
1646 vec_safe_is_empty (pending_weaks) rather than only when
1647 !pending_weaks.
1648 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
1649 set assembler name back to NULL afterwards.
1650
a07f6ed2
JM
16512014-03-11 Jason Merrill <jason@redhat.com>
1652
1653 * c.opt: Add -std=gnu++14.
1654
75b107f5
IB
16552014-03-11 Ian Bolton <ian.bolton@arm.com>
1656
1657 * c-opts.c (c_common_post_options): Don't override
1658 -ffp-contract=fast if unsafe-math-optimizations is on.
1659
f42c637e
PM
16602014-03-08 Paulo Matos <paulo@matos-sorge.com>
1661
1662 * c.opt: Enable LTO FE for fshort-double.
1663
70e24808
JM
16642014-03-07 Jason Merrill <jason@redhat.com>
1665
1666 * c.opt: Add -std=c++14.
1667
3af9c5e9
MP
16682014-03-06 Marek Polacek <polacek@redhat.com>
1669
1670 PR c/60197
1671 * cilk.c (contains_cilk_spawn_stmt): New function.
1672 (contains_cilk_spawn_stmt_walker): Likewise.
1673 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
1674 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
1675
b3bdf019
JJ
16762014-03-03 Jakub Jelinek <jakub@redhat.com>
1677
1678 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
1679 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
1680 even when flag_preprocess_only.
1681
ca7e759d
JM
16822014-02-26 Jason Merrill <jason@redhat.com>
1683
1684 PR c++/59231
1685 PR c++/11586
1686 * c-common.c (shorten_compare): Don't check
1687 c_inhibit_evaluation_warnings.
1688
28e41874
JJ
16892014-02-19 Jakub Jelinek <jakub@redhat.com>
1690
cca615af
JJ
1691 PR c/37743
1692 * c-common.c (c_common_nodes_and_builtins): When initializing
1693 c_uint{16,32,64}_type_node, also set corresponding
1694 uint{16,32,64}_type_node to the same value.
1695
28e41874
JJ
1696 PR c++/60267
1697 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
1698 for PRAGMA_IVDEP if flag_preprocess_only.
1699
c2bf53a1
JJ
17002014-02-12 Jakub Jelinek <jakub@redhat.com>
1701
1702 PR c/60101
1703 * c-common.c (merge_tlist): If copy is true, call new_tlist,
1704 if false, add ADD itself, rather than vice versa.
1705 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
1706 copy. For SAVE_EXPR, only call merge_tlist once.
1707
8fcbce72
JJ
17082014-02-08 Jakub Jelinek <jakub@redhat.com>
1709
1710 PR middle-end/60092
1711 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
1712 and tree_to_uhwi.
1713 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
1714 functions.
1715 (c_common_attribute_table): Add alloc_align and assume_aligned
1716 attributes.
1717
0a756a3f
MP
17182014-02-06 Marek Polacek <polacek@redhat.com>
1719
1720 PR c/60087
1721 * c-common.c (warn_for_sign_compare): Call warning_at with location
1722 instead of warning.
1723
7ec4847a
MP
17242014-02-05 Marek Polacek <polacek@redhat.com>
1725
1726 PR c/53123
1727 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
1728 statement.
1729
66f20604
MP
17302014-02-04 Marek Polacek <polacek@redhat.com>
1731
1732 PR c/60036
1733 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
1734 SAVE_EXPR.
1735
5d77fb19
MG
17362014-02-03 Marc Glisse <marc.glisse@inria.fr>
1737
1738 PR c++/53017
1739 PR c++/59211
1740 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
1741 handle_vector_size_attribute, handle_nonnull_attribute): Call
1742 default_conversion on the attribute argument.
1743 (handle_nonnull_attribute): Increment the argument number.
1744
81e5eca8
MP
17452014-01-31 Marek Polacek <polacek@redhat.com>
1746
1747 PR c/59963
1748 * c-common.c (add_atomic_size_parameter): Pass vNULL to
1749 build_function_call_vec.
1750 (resolve_overloaded_builtin): Likewise.
1751 * c-common.h (build_function_call_vec): Adjust declaration.
1752
68fca595
MP
17532014-01-30 Marek Polacek <polacek@redhat.com>
1754
1755 PR c/59940
1756 * c-common.h (unsafe_conversion_p): Adjust declaration.
1757 (warnings_for_convert_and_check): Likewise.
1758 (convert_and_check): Likewise.
1759 * c-common.c (unsafe_conversion_p): Add location parameter. Call
1760 expansion_point_location_if_in_system_header on it.
1761 (warnings_for_convert_and_check): Add location parameter. Call
1762 expansion_point_location_if_in_system_header on it. Use it.
1763 (convert_and_check): Add location parameter. Use it.
1764 (conversion_warning): Likewise.
1765 (c_add_case_label): Adjust convert_and_check calls.
1766 (scalar_to_vector): Adjust unsafe_conversion_p calls.
1767
b72271b9
BI
17682014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
1769
1770 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
1771 flag_cilkplus.
1772 * c-pragma.c (init_pragma): Likewise.
1773 * c.opt: Likewise.
1774
393e8e8b
MP
17752014-01-23 Marek Polacek <polacek@redhat.com>
1776
1777 PR c/59846
1778 * c-common.c (shorten_compare): Add location_t parameter.
1779 * c-common.h (shorten_binary_op): Adjust declaration.
1780
f04dda30
MP
17812014-01-23 Marek Polacek <polacek@redhat.com>
1782
1783 PR c/58346
1784 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
1785 * c-common.h: Declare it.
1786
621955cb
EB
17872014-01-20 Eric Botcazou <ebotcazou@adacore.com>
1788
1789 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
1790 * c-ada-spec.c (dump_ads): Likewise.
1791 (cpp_check): Likewise.
1792 (dump_ada_specs): Likewise.
1793
17942014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
1795
1796 PR c++/49718
1797 * c-common.c (handle_no_instrument_function_attribute): Allow
1798 no_instrument_function attribute in class member
1799 definition/declaration.
1800
241f845a
JJ
18012014-01-15 Jakub Jelinek <jakub@redhat.com>
1802
1803 PR c/58943
1804 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
1805 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
1806 being COMPOUND_EXPR.
1807 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
1808 operand a SAVE_EXPR and second MODIFY_EXPR.
1809
e83b8e2e
JJ
18102014-01-09 Jakub Jelinek <jakub@redhat.com>
1811
1812 PR target/58115
1813 * c-pch.c (c_common_write_pch): Call
1814 prepare_target_option_nodes_for_pch.
1815
23a5b65a
RS
18162014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1817
1818 Update copyright years
1819
f9030485
RS
18202014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1821
1822 * array-notation-common.c, c-cilkplus.c: Use the standard form for
1823 the copyright notice.
1824
f2aa696b
EB
18252013-12-28 Eric Botcazou <ebotcazou@adacore.com>
1826
1827 * c-ada-spec.c (print_constructor): New function.
1828 (print_destructor): Retrieve the origin of the destructor.
1829 (print_ada_declaration): Revamp handling of constructors/destructors.
1830
1f26ac87
JM
18312013-12-23 Stuart Hastings <stuart@apple.com>
1832 Bill Maddox <maddox@google.com>
1833 Jason Merrill <jason@redhat.com>
1834
1835 * c.opt: Add -fdeclone-ctor-dtor.
1836 * c-opts.c (c_common_post_options): Default to on iff -Os.
1837
41958c28
BI
18382013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
1839
1840 * c-common.c (c_common_attribute_table): Added "cilk simd function"
1841 attribute.
1842 * c-pragma.h (enum pragma_cilk_clause): Remove.
1843 (enum pragma_omp_clause): Added the following fields:
1844 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
1845 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
1846 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
1847 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
1848 PRAGMA_CILK_CLAUSE_UNIFORM.
1849
1850
12893402
BI
18512013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
1852
1853 * cilk.c (cilk_outline): Made this function non-static.
1854 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
1855 (create_cilk_wrapper): Added a new parameter: a function pointer.
1856 (c_install_body_w_frame_cleanup): Remove
1857 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
1858 * c-common.h (cilk_outline): New prototype.
1859 (gimplify_cilk_spawn): Removed two parameters.
1860 (cilk_install_body_with_frame_cleanup): New prototype.
1861 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
1862 CILK_SPAWN_STMT case.
1863
085b42ed
BS
18642013-12-11 Bernd Schmidt <bernds@codesourcery.com>
1865
2ce064c3
BS
1866 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
1867
085b42ed
BS
1868 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
1869 (int_array_type_node): Remove.
1870 * c-common.c (c_common_nodes_and_builtins): Don't build it.
1871
9e36c9ed
MP
18722013-12-05 Marek Polacek <polacek@redhat.com>
1873
1874 PR c/52023
1875 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
1876 [ADJUST_FIELD_ALIGN].
1877
296674db
JM
18782013-12-04 Joseph Myers <joseph@codesourcery.com>
1879
1880 PR c/52023
1881 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
1882 and check field alignment if set.
1883 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
1884 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
1885
31e071ae
MP
18862013-12-04 Jakub Jelinek <jakub@redhat.com>
1887 Marek Polacek <polacek@redhat.com>
1888
1889 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
1890 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
1891
d7947e19
L
18922013-11-29 H.J. Lu <hongjiu.lu@intel.com>
1893
1894 PR c/59309
1895 * cilk.c (gimplify_cilk_spawn): Properly handle function without
1896 arguments.
1897
fad7652e
JJ
18982013-11-29 Jakub Jelinek <jakub@redhat.com>
1899
1900 PR c/59280
1901 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
1902 goto invalid. If it is error_mark_node, don't issue further
1903 diagnostics.
1904
8b5e1202
SO
19052013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
1906
1907 * c.opt (Wopenmp-simd): New.
1908
0a508bb6
JJ
19092013-11-22 Jakub Jelinek <jakub@redhat.com>
1910
1911 * c-ubsan.h (ubsan_instrument_return): New prototype.
1912 * c-ubsan.c (ubsan_instrument_return): New function.
1913
2fb9a547
AM
19142013-11-22 Andrew MacLeod <amacleod@redhat.com>
1915
1916 * c-common.c: Add required include files from gimple.h.
1917 * c-gimplify.c: Likewise
1918 * cilk.c: Likewise
1919
8400e75e
DM
19202013-11-22 David Malcolm <dmalcolm@redhat.com>
1921
1922 * c-common.c (unsafe_conversion_p): Remove use of
1923 EXPR_LOC_OR_HERE macro.
1924 (conversion_warning): Likewise.
1925 (warnings_for_convert_and_check): Likewise.
1926 (warn_for_collisions_1): Likewise.
1927 (shorten_compare): Likewise, and remove use of in_system_header
1928 macro, using the location from the former.
1929 * c-lex.c (dump_one_header): Remove use of input_filename macro.
1930 (cb_def_pragma): Remove use of in_system_header macro.
1931 (lex_string): Likewise.
1932 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1933
eb1ce453
KZ
19342013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
1935 Mike Stump <mikestump@comcast.net>
1936 Richard Sandiford <rdsandiford@googlemail.com>
1937
1938 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
1939 instead of TREE_INT_CST_LOW, in cases where there is a protecting
1940 tree_fits_shwi_p or tree_fits_uhwi_p.
1941 (dump_generic_ada_node): Likewise.
1942 * c-format.c (check_format_arg): Likewise.
1943 * c-pretty-print.c (pp_c_integer_constant): Likewise.
1944
6b3b8c27
KZ
19452013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
1946
1947 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
1948
49b0aa18
JC
19492013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
1950
1951 PR c/53001
1952 * c-common.c (unsafe_conversion_p): Make this function
1953 return an enumeration with more detail.
1954 (conversion_warning): Use the new return type of
1955 unsafe_conversion_p to separately warn either about conversions
1956 that lower floating point number precision or about the other
1957 kinds of conversions.
1958 * c-common.h (enum conversion_safety): New enumeration.
1959 (unsafe_conversion_p): switching return type to
1960 conversion_safety enumeration.
1961 * c.opt: Adding new warning -Wfloat-conversion and
1962 enabling it with -Wconversion.
1963
b826515a
BS
19642013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
1965
1966 * c-opts.c: Include plugin.h.
1967 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
1968
b9a55b13
MP
19692013-11-19 Marek Polacek <polacek@redhat.com>
1970
1971 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
1972 call.
1973 (ubsan_instrument_shift): Likewise.
1974 (ubsan_instrument_vla): Likewise.
1975
7d362f6c
RS
19762013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1977
1978 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
1979 cast to unsigned type.
1980
386b1f1f
RS
19812013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1982
1983 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
1984 tree_low_cst.
1985 (complete_array_type): Update comment to refer to tree_to_[su]hwi
1986 rather than tree_low_cst.
1987
ae7e9ddd
RS
19882013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1989
1990 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
1991 tree_to_uhwi throughout.
1992
9439e9a1
RS
19932013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1994
1995 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
1996 tree_low_cst (..., 0) with tree_to_shwi throughout.
1997
cc269bb6
RS
19982013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1999
2000 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
2001 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
2002
9541ffee
RS
20032013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2004
2005 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
2006 host_integerp (..., 0) with tree_fits_shwi_p throughout.
2007
c02065fc
AH
20082013-11-15 Aldy Hernandez <aldyh@redhat.com>
2009
2010 * c-cilkplus.c: New file.
2011 * c-common.c (readonly_error): Add location argument.
2012 * c-common.h (readonly_error): Same.
2013 (c_finish_cilk_clauses): Protoize.
2014 (c_check_cilk_loop): Same.
2015 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
2016 Do not fail on error_mark_node.
2017 Abstract increment canonicalization to here...
2018 (c_omp_for_incr_canonicalize_ptr): New.
2019 c-pragma.c (init_pragma): Register "simd" pragma.
2020 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
2021 (enum pragma_cilk_clause): New.
2022
9cc65f15
RS
20232013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
2024
2025 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
2026 wchar_type and host_integerp checks.
2027
18f429e2
AM
20282013-11-14 Andrew MacLeod <amacleod@redhat.com>
2029
2030 * c-common.c: Likewise.
2031 * c-gimplify.c: Likewise.
2032 * cilk.c: Likewise.
2033
d8a2d370
DN
20342013-11-14 Diego Novillo <dnovillo@google.com>
2035
2036 * c-common.c: Include fold-const.h.
2037 Include stor-layout.h.
2038 Include calls.h.
2039 Include stringpool.h.
2040 Include attribs.h.
2041 Include varasm.h.
2042 Include trans-mem.h.
2043 * c-cppbuiltin.c: Include stor-layout.h.
2044 Include stringpool.h.
2045 * c-format.c: Include stringpool.h.
2046 * c-lex.c: Include stringpool.h.
2047 Include stor-layout.h.
2048 * c-pragma.c: Include stringpool.h.
2049 Include attribs.h.
2050 Include varasm.h.
2051 Include gcc-symtab.h.
2052 * c-pretty-print.c: Include stor-layout.h.
2053 Include attribs.h.
2054 * cilk.c: Include stringpool.h.
2055 Include calls.h.
2056
38b7bc7f
JM
20572013-11-13 Joseph Myers <joseph@codesourcery.com>
2058
2059 * c-common.h (enum rid): Add RID_AUTO_TYPE.
2060 * c-common.c (c_common_reswords): Add __auto_type.
2061 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
2062
45b0be94
AM
20632013-11-12 Andrew MacLeod <amacleod@redhat.com>
2064
18f429e2
AM
2065 * c-common.c: Include gimplify.h.
2066 * c-gimplify.c: Likewise.
2067 * cilk.c: Likewise.
2068 * c-omp.c: Include gimple-expr.h instead of gimple.h.
2069 * c-ubsan.c: Don't include gimple.h.
45b0be94 2070
582d9b50
JM
20712013-11-12 Joseph Myers <joseph@codesourcery.com>
2072
2073 * c-common.c (c_common_reswords): Add _Thread_local.
2074
6b28e197
JM
20752013-11-09 Joseph Myers <joseph@codesourcery.com>
2076
2077 * c-common.c (atomic_size_supported_p): New function.
2078 (resolve_overloaded_atomic_exchange)
2079 (resolve_overloaded_atomic_compare_exchange)
2080 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
2081 Use it instead of comparing size with a local list of sizes.
2082
267bac10
JM
20832013-11-07 Andrew MacLeod <amacleod@redhat.com>
2084 Joseph Myers <joseph@codesourcery.com>
2085
2086 * c-common.h (enum rid): Add RID_ATOMIC.
2087 * c-common.c (c_common_reswords): Add _Atomic.
2088 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
2089 (keyword_is_type_qualifier): Accept RID_ATOMIC.
2090 * c-format.c (check_format_types): Check for extra _Atomic
2091 qualifiers in format argument.
2092 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
2093 (pp_c_type_qualifier_list): Mention _Atomic in comment.
2094
5157b91e
TB
20952013-11-06 Tobias Burnus <burnus@net-b.de>
2096
2097 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
2098
6dbe0958
JM
20992013-11-06 Joseph Myers <joseph@codesourcery.com>
2100
2101 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
2102 standards modes.
2103 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
2104 to mean lack of IEEE 754 support.
2105
e8ff5196
TB
21062013-11-05 Tobias Burnus <burnus@net-b.de>
2107
2108 * c.opt (-Wdate-time): New option
2109 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
2110
254a0760
JM
21112013-11-05 Joseph Myers <joseph@codesourcery.com>
2112
2113 * c-cppbuiltin.c (cpp_iec_559_value): Test
2114 flag_excess_precision_cmdline not flag_excess_precision.
2115
6d7f7e0a
TB
21162013-11-05 Tobias Burnus <burnus@net-b.de>
2117
2118 * c.opt (fopenmp-simd): New option.
2119 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
2120 (omp_pragmas): ... this new struct.
2121 (c_pp_lookup_pragma): Also walk omp_pragmas.
2122 (init_pragma): Init pragmas for -fopenmp-simd.
2123
55a7f02f
MP
21242013-11-04 Marek Polacek <polacek@redhat.com>
2125
2126 PR c++/58979
2127 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
2128
9193fb05
JM
21292013-11-04 Joseph Myers <joseph@codesourcery.com>
2130
2131 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
2132 New functions.
2133 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
2134
94159ecf
EB
21352013-11-04 Eric Botcazou <ebotcazou@adacore.com>
2136
2137 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
2138 (dump_ada_specs): Adjust prototype of second callback.
2139 * c-ada-spec.c (cpp_check): New global variable.
2140 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
2141 (print_generic_ada_decl): Likewise.
2142 (has_static_fields): Change return type to bool and add guard.
2143 (has_nontrivial_methods): New predicate.
2144 (is_tagged_type): Change return type to bool.
2145 (separate_class_package): Call has_nontrivial_methods.
2146 (pp_ada_tree_identifier): Minor tweaks.
2147 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
2148 (dump_ada_array_domains): Likewise.
2149 (dump_ada_array_type): Likewise.
2150 (dump_template_types): Remove cpp_check parameter and do not pass it to
2151 dump_generic_ada_node.
2152 (dump_ada_template): Likewise.
2153 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
2154 recursively.
2155 (print_ada_methods): Change return type to integer. Remove cpp_check
2156 parameter and do not pass it down.
2157 (dump_nested_types): Remove cpp_check parameter and do not pass it to
2158 dump_generic_ada_node.
2159 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
2160 accessing methods.
2161 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
2162 down. Use has_nontrivial_methods to recognize C++ classes. Use return
2163 value of print_ada_methods.
2164 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
2165 Set cpp_check to it before invoking dump_ada_nodes.
2166 (dump_ada_specs): Likewise.
2167
b906f4ca
MP
21682013-11-03 Marek Polacek <polacek@redhat.com>
2169
2170 * c-ubsan.c: Don't include hash-table.h.
2171 (ubsan_instrument_vla): New function.
2172 * c-ubsan.h: Declare it.
2173
5e20cdc9
DM
21742013-10-31 David Malcolm <dmalcolm@redhat.com>
2175
2176 Automated part of renaming of symtab_node_base to symtab_node.
2177
2178 Patch autogenerated by rename_symtab.py from
2179 https://github.com/davidmalcolm/gcc-refactoring-scripts
2180 revision 58bb219cc090b2f4516a9297d868c245495ee622
2181
2182 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
2183 symtab_node_base to symtab_node.
2184
7057e645
ESR
21852013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
2186
2187 Implement C++14 digit separators.
2188 * c-lex.c (interpret_float): Remove digit separators from scratch string
2189 before building real literal.
2190
193ea7bc
JJ
21912013-10-30 Jakub Jelinek <jakub@redhat.com>
2192
2193 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
2194
939b37da
BI
21952013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
2196
2197 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
2198 fields.
2199 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
2200 enabled.
2201 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
2202 (insert_cilk_frame): New prototype.
2203 (cilk_init_builtins): Likewise.
2204 (gimplify_cilk_spawn): Likewise.
2205 (c_cilk_install_body_w_frame_cleanup): Likewise.
2206 (cilk_detect_spawn_and_unwrap): Likewise.
2207 (cilk_set_spawn_marker): Likewise.
2208 (build_cilk_sync): Likewise.
2209 (build_cilk_spawn): Likewise.
2210 * cilk.c: New file.
2211
67348ccc
DM
22122013-10-29 David Malcolm <dmalcolm@redhat.com>
2213
2214 Patch autogenerated by refactor_symtab.py from
2215 https://github.com/davidmalcolm/gcc-refactoring-scripts
2216 revision 58bb219cc090b2f4516a9297d868c245495ee622
2217
2218 * c-gimplify.c (c_genericize): Update for conversion of symtab types
2219 to a true class hierarchy.
2220 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
2221
d570872d
RS
22222013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
2223
2224 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
2225
98906124
JL
22262013-10-26 Jeff Law <law@redhat.com>
2227
adfac8df
JJ
2228 * c-common.c (c_define_builtins): Remove mudflap support.
2229 * c.opt: Ignore and warn for mudflap options.
98906124 2230
d73749df 22312013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
2232
2233 PR other/33426
2234 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
2235 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
2236
3f04b1bb
JM
22372013-10-23 Jason Merrill <jason@redhat.com>
2238
2239 * c-format.c (gcc_cxxdiag_char_table): Add %X.
2240
acf0174b
JJ
22412013-10-11 Jakub Jelinek <jakub@redhat.com>
2242
acd15a28
JJ
2243 * c-common.h (omp_clause_mask::operator !=): New method.
2244 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
2245 instead of if (mask & something) tests everywhere.
2246
acf0174b
JJ
2247 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
2248 201307 instead of 201107.
2249 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
2250 (c_common_attribute_table): Add "omp declare target" and
2251 "omp declare simd" attributes.
2252 (handle_omp_declare_target_attribute,
2253 handle_omp_declare_simd_attribute): New functions.
2254 * c-omp.c: Include c-pragma.h.
2255 (c_finish_omp_taskgroup): New function.
2256 (c_finish_omp_atomic): Add swapped argument, if true,
2257 build the operation first with rhs, lhs arguments and use NOP_EXPR
2258 build_modify_expr.
2259 (c_finish_omp_for): Add code argument, pass it down to make_code.
2260 (c_omp_split_clauses): New function.
2261 (c_split_parallel_clauses): Removed.
2262 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
2263 c_omp_declare_simd_clauses_to_decls): New functions.
2264 * c-common.h (omp_clause_mask): New type.
2265 (OMP_CLAUSE_MASK_1): Define.
2266 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
2267 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
2268 omp_clause_mask::operator |, omp_clause_mask::operator &,
2269 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
2270 omp_clause_mask::operator ==): New methods.
2271 (enum c_omp_clause_split): New.
2272 (c_finish_omp_taskgroup): New prototype.
2273 (c_finish_omp_atomic): Add swapped argument.
2274 (c_finish_omp_for): Add code argument.
2275 (c_omp_split_clauses): New prototype.
2276 (c_split_parallel_clauses): Removed.
2277 (c_omp_declare_simd_clauses_to_numbers,
2278 c_omp_declare_simd_clauses_to_decls): New prototypes.
2279 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
2280 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
2281 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
2282 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
2283 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
2284 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
2285 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
2286 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
2287 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
2288 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
2289 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
2290 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
2291 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
2292 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
2293 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
2294 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
2295 PRAGMA_OMP_CLAUSE_UNIFORM.
2296
826cacfe
MG
22972013-10-09 Marc Glisse <marc.glisse@inria.fr>
2298
2299 PR tree-optimization/20318
2300 * c-common.c (handle_returns_nonnull_attribute): New function.
2301 (c_common_attribute_table): Add returns_nonnull.
2302
2284b034
MG
23032013-10-03 Marc Glisse <marc.glisse@inria.fr>
2304
2305 PR c++/19476
2306 * c.opt (fcheck-new): Move to common.opt.
2307
b56e9788
MP
23082013-09-25 Marek Polacek <polacek@redhat.com>
2309 Jakub Jelinek <jakub@redhat.com>
2310
2311 PR sanitizer/58413
2312 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
2313 an expression if we can prove it is correct.
2314 (ubsan_instrument_division): Likewise. Remove unnecessary
2315 check.
2316
ce6923c5
MP
23172013-09-18 Marek Polacek <polacek@redhat.com>
2318
2319 PR sanitizer/58411
2320 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
2321 Declare it.
2322 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
2323
fb5610fb
IS
23242013-09-14 Iain Sandoe <iain@codesourcery.com>
2325
2326 PR target/48094
2327 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
2328 fobjc-gc, freplace-objc-classes): Accept for LTO.
2329
88b0e79e
JC
23302013-09-13 Jacek Caban <jacek@codeweavers.com>
2331
2332 * c-target.def: New hook
2333
c9b0866a
PC
23342013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
2335
2336 PR c++/43452
2337 * c.opt (Wdelete-incomplete): Add.
2338
0af94e6f
JR
23392013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
2340
2341 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
2342 (vector_types_compatible_elements_p): New function.
2343 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
2344 declaration.
2345 (vector_types_compatible_elements_p): Declare.
2346
7c26172c
GDR
23472013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2348
2349 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
2350 a virtual member function.
2351 (pp_simple_type_specifier): Remove.
2352 (pp_c_type_specifier): Likewise.
2353 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
2354 Rename from pp_c_type_specifier. Adjust.
2355 (c_pretty_printer::c_pretty_printer): Do not assign to
2356 simple_type_specifier.
2357
20059c8b
GDR
23582013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2359
2360 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
2361 member function.
2362 (c_pretty_printer::storage_class_specifier): Likewise.
2363 (c_pretty_printer::initializer): Likewise.
2364 (pp_declaration): Remove.
2365 (pp_declaration_specifiers): Likewise.
2366 (pp_abstract_declarator): Likewise.
2367 (pp_declarator): Likewise.
2368 (pp_type_id): Likewise.
2369 (pp_statement): Likewise.
2370 (pp_constant): Likewise.
2371 (pp_id_expression): Likewise.
2372 (pp_primary_expression): Likewise.
2373 (pp_unary_expression): Likewise.
2374 (pp_multiplicative_expression): Likewise.
2375 (pp_conditional_expression): Likewise.
2376 (pp_assignment_expression): Likewise.
2377 (pp_expression): Likewise.
2378 (pp_c_type_id): Likewise.
2379 (pp_c_storage_class_specifier): Likewise.
2380 * c-pretty-print.c (pp_c_type_cast): Tidy.
2381 (pp_c_pointer): Likewise.
2382 (pp_c_type_specifier): Likewise.
2383 (pp_c_parameter_type_list): Likewise.
2384 (pp_c_function_definition): Likewise.
2385 (pp_c_init_declarator): Likewise.
2386 (pp_c_initializer_list): Likewise.
2387 (pp_c_constructor_elts): Likewise.
2388 (c_pretty_printer::direct_abstract_declarator): Likewise.
2389 (c_pretty_printer::declaration_specifiers): Likewise.
2390 (c_pretty_printer::primary_expression): Likewise.
2391 (c_pretty_printer::postfix_expression): Likewise.
2392 (c_pretty_printer::type_id): Rename from pp_c_type_id.
2393 (c_pretty_printer::storage_class_specifier): Rename from
2394 pp_c_storage_class_specifier.
2395 (c_pretty_printer::initializer): Rename from pp_c_initializer.
2396 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
2397 storage_class_specifier, initializer, offset_list, flags.
2398
de5a5fa1
MP
23992013-08-30 Marek Polacek <polacek@redhat.com>
2400
2401 * c-ubsan.c: New file.
2402 * c-ubsan.h: New file.
2403
8f0e4d72
GDR
24042013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2405
2406 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
2407 member function.
2408 (c_pretty_printer::declaration_specifiers): Likewise.
2409 (c_pretty_printer::declarator): Likewise.
2410 (c_pretty_printer::abstract_declarator): Likewise.
2411 (c_pretty_printer::direct_abstract_declarator): Likewise.
2412 (c_pretty_printer::direct_declarator): Likewise.
2413 (c_pretty_printer::function_specifier): Likewise.
2414 (pp_declaration): Adjust.
2415 (pp_declaration_specifiers): Likewise.
2416 (pp_abstract_declarator): Likewise.
2417 (pp_direct_declarator): Likewise.
2418 (pp_function_specifier): Likewise.
2419 (pp_direct_abstract_declarator): Remove as unused.
2420 (pp_c_declaration): Remove.
2421 (pp_c_declaration_specifiers): Likewise.
2422 (pp_c_declarator): Likewise.
2423 (pp_c_direct_declarator): Likewise.
2424 (pp_c_function_specifier): Likewise.
2425 (pp_c_direct_abstract_declarator): Likewise.
2426 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
2427 from pp_c_abstract_declarator. Adjust.
2428 (c_pretty_printer::direct_abstract_declarator): Rename from
2429 pp_c_direct_abstract_declarator. Adjust.
2430 (c_pretty_printer::function_specifier): Rename from
2431 pp_c_function_specifier. Adjust.
2432 (c_pretty_printer::declaration_specifiers): Rename from
2433 pp_c_declaration_specifiers. Adjust.
2434 (c_pretty_printer::direct_declarator): Rename from
2435 pp_c_direct_declarator. Adjust.
2436 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
2437 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
2438 (c_pretty_printer::c_pretty_printer): Do not assign to
2439 declaration, declaration_specifiers, declarator,
2440 direct_declarator, direct_abstract_declarator, function_specifier.
2441
00d34d3a
GDR
24422013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
2443
2444 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
2445 virtual member function.
2446 (c_pretty_printer::multiplicative_expression): Likewise.
2447 (c_pretty_printer::conditional_expression): Likewise.
2448 (c_pretty_printer::assignment_expression): Likewise.
2449 (c_pretty_printer::expression): Likewise.
2450 (pp_unary_expression): Adjust.
2451 (pp_multiplicative_expression): Likewise.
2452 (pp_assignment_expression): Likewise.
2453 (pp_conditional_expression): Likewise.
2454 (pp_expression): Likewise.
2455 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
2456 from pp_c_unary_expression. Adjust.
2457 (c_pretty_printer::multiplicative_expression): Rename from
2458 pp_c_multiplicative_expression. Adjust.
2459 (c_pretty_printer::conditional_expression): Rename from
2460 pp_c_conditional_expression. Adjust.
2461 (c_pretty_printer::assignment_expression): Rename from
2462 pp_c_assignment_expression. Adjust.
2463 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
2464 (c_pretty_printer::c_pretty_printer): Do not assign to
2465 unary_expression, multiplicative_expression,
2466 conditional_expression, expression.
2467
fb22178f
GDR
24682013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2469
2470 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
2471 virtual member function.
2472 (pp_postfix_expression): Adjust.
2473 (pp_c_postfix_expression): Remove.
2474 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
2475 from pp_c_postfix_expression. Adjust.
2476 (c_pretty_printer::c_pretty_printer): Do not assign to
2477 postfix_expression.
2478
7ecc2600
GDR
24792013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2480
2481 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
2482 virtua member function.
2483 (pp_primary_expression): Adjust.
2484 (pp_c_primary_expression): Remove.
2485 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
2486 from pp_c_primary_expression. Adjust.
2487 (pp_c_initializer_list): Use pp_primary_expression.
2488 (c_pretty_printer::c_pretty_printer): Do not assign to
2489 primary_expression.
2490
0691175f
GDR
24912013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2492
2493 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
2494 * c-pretty-print.c (M_): Remove.
2495 (c_pretty_printer::translate_string): Define.
2496 (pp_c_type_specifier): Use it.
2497 (pp_c_primary_expression): Likewise.
2498 (pp_c_expression): Likewise.
2499
66dfe4c4
GDR
25002013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
2501
2502 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
2503 virtual function.
2504 (pp_c_id_expression): Remove.
2505 (pp_id_expression): Adjust.
2506 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
2507 pp_c_id_expression. Adjust.
2508 (pp_c_postfix_expression): Use pp_id_expression.
2509 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
2510
ca43e9d5
GDR
25112013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
2512
2513 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
2514 member function.
2515 (pp_constant): Adjust.
2516 (pp_c_constant): Remove.
2517 * c-pretty-print.c (c_pretty_printer::constant): Rename from
2518 pp_c_constant. Adjust.
2519 (pp_c_constant)
2520 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
2521 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
2522
da6ca2b5
GDR
25232013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2524
2525 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
2526 (c_pretty_printer::c_pretty_printer): Declare.
2527 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
2528 c_pretty_printer_init. Adjust.
2529 (print_c_tree): Do not call c_pretty_printer_init.
2530 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
2531
65a372f4
AC
25322013-08-09 Arnaud Charlet <charlet@adacore.com>
2533
2534 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
2535
fd9b0f32
PC
25362013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
2537
2538 PR c++/58080
2539 * c-common.c (pointer_int_sum): Add bool parameter.
2540 * c-common.h (pointer_int_sum): Adjust declaration.
2541
e0aec1e9
GDR
25422013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
2543
2544 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
2545 c_pretty_printer variable.
2546
b066401f
GDR
25472013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2548
2549 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
2550 (pp_base): Remove.
2551 (pp_c_base): Likewise. Adjust users.
2552 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
2553 (pp_c_whitespace): Do not call pp_base.
2554 (pp_c_left_paren): Likewise.
2555 (pp_c_right_paren): Likewise.
2556 (pp_c_left_brace): Likewise.
2557 (pp_c_right_brace): Likewise.
2558 (pp_c_left_bracket): Likewise.
2559 (pp_c_right_bracket): Likewise.
2560 (pp_c_dot): Likewise.
2561 (pp_c_ampersand): Likewise.
2562 (pp_c_star): Likewise.
2563 (pp_c_arrow): Likewise.
2564 (pp_c_semicolon): Likewise.
2565 (pp_c_complement): Likewise.
2566 (pp_c_exclamation): Likewise.
2567 (pp_c_direct_declarator): Likewise.
2568 (pp_c_ws_string): Likewise.
2569 (pp_c_identifier): Likewise.
2570 (pp_c_statement): Likewise.
2571 (print_c_tree): Likewise.
2572
65e5a578
ESR
25732013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
2574
2575 PR c++/58072
2576 * c-common.c (c_parse_error): Catch user-defined literal tokens and
2577 provide useful error strings.
2578
137a1a27
GDR
25792013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2580
2581 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
2582 printer functions instead of pp_string or operators and punctuators.
2583 (dump_generic_ada_node): Likewise.
2584 * c-pretty-print.c (pp_c_type_specifier): Likewise.
2585 (pp_c_relational_expression): Likewise.
2586 (pp_c_logical_or_expression): Likewise.
2587
07838b13
GDR
25882013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2589
2590 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
2591 functions instead of pp_character.
2592 (pp_ada_tree_identifier): Likewise.
2593 (dump_ada_double_name): Likewise.
2594 (dump_ada_function_declaration): Likewise.
2595 (dump_ada_array_domains): Likewise.
2596 (dump_template_types): Likewise.
2597 (dump_generic_ada_node): Likewise.
2598 (print_ada_declaration): Likewise.
2599 (print_ada_struct_decl): Likewise.
2600 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2601
433cc7b0
TT
26022013-07-23 Tom Tromey <tromey@redhat.com>
2603
2604 * c-common.h (enum rid) <RID_GENERIC>: New constant.
2605 * c-common.c (c_common_reswords): Add _Generic.
2606
688010ba
OB
26072013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
2608
2609 * c-common.c: Fix typos.
2610 * c-common.h: Likewise.
2611
2a99e5e6
LL
26122013-07-13 Lubos Lunak <l.lunak@suse.cz>
2613
2614 PR c++/55203
2615 * c-common.c (c_common_attribute_table): Add warn_unused.
2616 (handle_warn_unused_attribute): New.
2617
c26302d5
JJ
26182013-07-10 Jakub Jelinek <jakub@redhat.com>
2619
2620 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
2621 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
2622
dfeadaa0
PC
26232013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
2624
2625 PR c++/57869
2626 * c.opt: Add Wconditionally-supported.
2627
6a2fa4b2
GS
26282013-07-08 Graham Stott <graham.stott@btinternet.com>
2629
adfac8df 2630 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
2631 unused variables l_length and l_node.
2632
ecdbd01a 26332013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
2634
2635 PR c/57821
2636 * c-common.c (complete_array_type): Delay folding first index
2637 like other indices. When folding, check for index overflow.
2638
bedc293e
MG
26392013-06-27 Marc Glisse <marc.glisse@inria.fr>
2640
2641 PR c++/57509
2642 * c-common.h (c_build_vec_perm_expr): New complain argument.
2643 * c-common.c (c_build_vec_perm_expr): Likewise.
2644 Use save_expr also in C++.
2645
604b2bfc
GDR
26462013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2647
2648 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
2649 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2650 * c-opts.c (c_common_post_options): Likewise.
2651
dfeadaa0 26522013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
2653
2654 * array-notation-common.c (length_mismatch_in_expr): Changed the
2655 parameter type's from a dynamic array to a vec_tree. Also removed
2656 the size parameters.
2657 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
2658 the change above.
2659
2ce86d2e
BI
26602013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
2661
2662 * c-common.h (struct cilkplus_an_parts): New structure.
2663 (struct cilkplus_an_loop_parts): Likewise.
2664 (cilkplus_extract_an_triplets): New prototype.
2665 (fix_sec_implicit_args): Likewise.
2666 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
2667 (fix_sec_implicit_args): Likewise.
604b2bfc 2668
07a6825b
BI
26692013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
2670
2671 * array-notation-common.c (find_inv_trees): Removed an unwanted
2672 typecasting.
2673 * c-common.h (struct inv_list::additional_tcodes): Changed type from
2674 enum rid to enum tree_code.
2675
08346abd
JH
26762013-06-11 Jan Hubicka <jh@suse.cz>
2677
2678 * c-common.c (handle_alias_ifunc_attribute): Do not set
2679 DECL_EXTERNAL for weakref variables.
2680 * c-pragma.c (handle_pragma_weak): Make sure aliases
2681 are not declared as external.
2682
d60f1706
BI
26832013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
2684
2685 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
2686 function from c/c-array-notation.c.
2687 (is_cilkplus_reduce_builtin): Likewise.
2688 (find_rank): Likewise.
2689 (extract_array_notation_exprs): Likewise.
2690 (replace_array_notations): Likewise.
2691 (find_inv_trees): Likewise.
2692 (replace_inv_trees): Likewise.
2693 (contains_array_notation_expr): Likewise.
2694 (find_correct_array_notation_type): Likewise.
2695 * c-common.h (struct inv_list): Moved this struct from the file
2696 c/c-array-notation.c and added a new field called additional tcodes.
2697 (length_mismatch_in_expr_p): New prototype.
2698 (is_cilkplus_reduce_builtin): Likewise.
2699 (find_rank): Likewise.
2700 (extract_array_notation_exprs): Likewise.
2701 (replace_array_notation): Likewise.
2702 (find_inv_trees): Likewise.
2703 (replace_inv_trees): Likewise.
2704 (find_correct_array_notation_type): Likewise.
dfeadaa0 2705
36536d79
BI
27062013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
2707
2708 * c-common.c (c_define_builtins): When cilkplus is enabled, the
2709 function array_notation_init_builtins is called.
2710 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
2711 * c-common.def (ARRAY_NOTATION_REF): New tree.
2712 * c-common.h (build_array_notation_expr): New function declaration.
2713 (build_array_notation_ref): Likewise.
2714 (extract_sec_implicit_index_arg): New extern declaration.
2715 (is_sec_implicit_index_fn): Likewise.
2716 (ARRAY_NOTATION_CHECK): New define.
2717 (ARRAY_NOTATION_ARRAY): Likewise.
2718 (ARRAY_NOTATION_START): Likewise.
2719 (ARRAY_NOTATION_LENGTH): Likewise.
2720 (ARRAY_NOTATION_STRIDE): Likewise.
2721 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
2722 ARRAY_NOTATION_REF.
2723 (pp_c_expression): Likewise.
2724 * c.opt (flag_enable_cilkplus): New flag.
2725 * array-notation-common.c: New file.
2726
f7716d57
JJ
27272013-05-14 Jakub Jelinek <jakub@redhat.com>
2728
2729 PR c++/57274
2730 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
2731
a5e0cd1d
MG
27322013-05-10 Marc Glisse <marc.glisse@inria.fr>
2733
2734 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
2735 vectors.
2736
f6bc1c4a
HS
27372013-05-07 Han Shen <shenhan@google.com>
2738
2739 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
2740
3f12f6e9
SKS
27412013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2742
2743 * c-common.c (check_user_alignment): Emit error for negative values.
2744
61949153
PC
27452013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2746
2747 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
2748
e93e18e9
PC
27492013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2750
2751 * c-cppbuiltin.c (c_cpp_builtins): Do not define
2752 __GXX_EXPERIMENTAL_CXX1Y__.
2753
44d90fe1
PC
27542013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2755 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2756
2757 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
2758 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
2759 to simply use OPT_Wpointer_arith.
2760 (c_sizeof_or_alignof_type): Likewise.
2761
13f39b2e
PC
27622013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2763
2764 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
2765
4b84d650
JJ
27662013-04-12 Jakub Jelinek <jakub@redhat.com>
2767
2768 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
2769 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
2770 specifiers.
2771
fb037b5d
SB
27722013-04-07 Steven Bosscher <steven@gcc.gnu.org>
2773
2774 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
2775
4e856798
PC
27762013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
2777
2778 * c-common.c (pointer_int_sum): Remove dead code.
2779
4b1baac8
RS
27802013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
2781
2782 PR middle-end/56524
2783 * c-common.c (handle_optimize_attribute): Don't call
2784 save_optabs_if_changed.
2785
0b50e654
JJ
27862013-03-05 Jakub Jelinek <jakub@redhat.com>
2787
2788 PR middle-end/56461
2789 * c-pch.c (pch_init): Free target_validity at the end.
2790
48c41403
JJ
27912013-03-04 Jakub Jelinek <jakub@redhat.com>
2792
2793 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
2794
e664c61c
KS
27952013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
2796 Jakub Jelinek <jakub@redhat.com>
2797
2798 PR sanitizer/56454
2799 * c-common.c (handle_no_sanitize_address_attribute): New function.
2800 (c_common_attribute_table): Add no_sanitize_address attribute.
2801 (handle_no_address_safety_analysis_attribute): Add
2802 no_sanitize_address attribute, not no_address_safety_analysis
2803 attribute.
2804
a475fd3d 28052013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
2806
2807 PR target/52555
2808 * c-common.c (handle_optimize_attribute): Call
2809 save_optabs_if_changed.
2810
f6007d99
JJ
28112013-02-18 Jakub Jelinek <jakub@redhat.com>
2812 Steven Bosscher <steven@gcc.gnu.org>
2813
2814 PR pch/54117
2815 * c-opts.c (c_common_post_options): If debug info is enabled
2816 and non-dwarf*, refuse to load PCH files and when writing PCH
2817 file warn.
2818
cf35e2b1
JJ
28192013-02-05 Jakub Jelinek <jakub@redhat.com>
2820
2821 PR middle-end/56167
2822 * c-common.c (handle_error_attribute): Fix condition.
2823
32887460
JJ
28242013-01-30 Jakub Jelinek <jakub@redhat.com>
2825
2826 PR c++/55742
2827 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
2828
5af057d8
JM
28292013-01-18 Jason Merrill <jason@redhat.com>
2830
2831 PR target/54908
2832 * c.opt (-fextern-tls-init): New.
2833 * c-opts.c (c_common_post_options): Handle it.
2834
cc83c823
JJ
28352013-01-09 Jakub Jelinek <jakub@redhat.com>
2836
2837 PR c/48418
2838 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
2839 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
2840 and is either negative or bigger or equal to type precision
2841 of the first operand.
2842
a859517f
MP
28432012-12-03 Marek Polacek <polacek@redhat.com>
2844
2845 PR c/55570
2846 * c-common.c (check_user_alignment): Swap order of tests,
2847 check TREE_CODE first.
2848
2d7aa578
ESR
28492012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
2850
2851 PR c++/52654
2852 * c-common.h (overflow_type): New enum.
2853 (build_userdef_literal): Add overflow_type argument.
2854 (tree_userdef_literal): Add overflow_type.
2855 (USERDEF_LITERAL_OVERFLOW): New access macro.
2856 * c-common.c (build_userdef_literal): Add overflow_type
2857 argument.
2858 * c-lex.c (c_lex_with_flags): Add overflow_type to
2859 build_userdef_literal calls.
2860 (interpret_integer, interpret_float): Add overflow_type argument.
2861
cc3c4f62
RB
28622012-11-28 Richard Biener <rguenther@suse.de>
2863
2864 PR c/35634
2865 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2866 here and use a type with proper overflow behavior for types that would
2867 need to be promoted for the arithmetic.
2868
77bc5132
JJ
28692012-11-23 Jakub Jelinek <jakub@redhat.com>
2870
2871 PR sanitizer/55435
2872 * c-common.c (handle_no_address_safety_analysis_attribute): New
2873 function.
2874 (c_common_attribute_table): Add no_address_safety_analysis.
2875
5dc99c46
SB
28762012-11-16 Simon Baldwin <simonb@google.com>
2877
2878 * c.opt: Add f[no-]canonical-system-headers.
2879 * c-opts.c (c_common_handle_option): Handle
2880 OPT_fcanonical_system_headers.
2881
a4a0016d
ESR
28822012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
2883
2884 PR c++/54413
2885 * c-opts.c (c_common_handle_option): Set new flags.
2886 * c.opt: Describe new flags.
2887
7dbb85a7
JM
28882012-11-09 Jason Merrill <jason@redhat.com>
2889
2890 * c.opt (Wabi-tag): New.
2891
ad7bac31
AK
28922012-11-09 Andi Kleen <ak@linux.intel.com>
2893
2894 PR 55139
2895 * c-common.c (get_atomic_generic_size): Mask with
2896 MEMMODEL_MASK
2897
7332899a
MLI
28982012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2899
2900 PR c/53063
2901 * c.opt (Wformat): Make it Alias Wformat=1.
2902 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
2903 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
2904 LangEnabledBy.
2905 (Wformat=): RejectNegative. Use LangEnabledBy.
2906 (Wnonnull): Use LangEnabledBy.
2907 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
2908 * c-format.c (set_Wformat): Delete.
2909 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
2910 (maybe_read_dollar_number): Likewise.
2911 (avoid_dollar_number): Likewise.
2912 (finish_dollar_format_checking): Likewise.
2913 (check_format_info): Likewise.
2914 (check_format_info_main): Likewise.
2915 (check_format_types): Likewise.
2916 (format_type_warning): Likewise.
2917 * c-common.c (int): Likewise.
2918 (check_function_sentinel): Likewise.
2919 * c-common.h (warn_format,set_Wformat): Do not declare here.
2920
34a180a6
MLI
29212012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2922
2923 PR c/53063
2924 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
2925 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
2926 Use LangEnabledBy.
2927 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
2928 common.opt.
2929 (Wvariadic-macros): Init(1).
2930 * c-opts.c (c_common_handle_option): Do not handle them
2931 explicitly.
2932 (c_common_post_options): Likewise.
2933 (sanitize_cpp_opts): warn_unused_macros is now
2934 cpp_warn_unused_macros.
2935 (push_command_line_include): Likewise.
2936 * c-common.c (warn_unknown_pragmas): Do not define.
2937 * c-common.h (warn_unknown_pragmas): Do not declare.
2938
3f46d6a5
MLI
29392012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2940
2941 PR c/51294
2942 * c-common.c (conversion_warning): Handle conditional expressions.
2943
880661a4
JW
29442012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
2945
2946 PR c++/54930
2947 * c.opt (Wreturn_local_addr): Define new option.
2948
4514a96b
JM
29492012-10-25 Jason Merrill <jason@redhat.com>
2950
f14edc1a
JM
2951 * c.opt (Wvirtual-move-assign): New.
2952
4514a96b
JM
2953 * c.opt (Winherited-variadic-ctor): New.
2954
93100c6b
MG
29552012-10-25 Marc Glisse <marc.glisse@inria.fr>
2956
2957 PR c++/54427
2958 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
2959
1efcb8c6
JM
29602012-10-23 Joseph Myers <joseph@codesourcery.com>
2961
2962 * c-common.h (pch_cpp_save_state): Declare.
2963 * c-target.def (c_preinclude): New hook.
2964 * c-opts.c (done_preinclude): New.
2965 (push_command_line_include): Handle default preincluded header.
2966 (cb_file_change): Call pch_cpp_save_state when calling
2967 push_command_line_include.
2968 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
2969 (pch_cpp_save_state): New.
2970 (pch_init): Call pch_cpp_save_state conditionally, instead of
2971 calling cpp_save_state.
2972
4a0ae68e
MLI
29732012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2974
2975 PR c/53063
2976 PR c/40989
2977 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
2978 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
2979 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
2980 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
2981 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
2982 * c-opts.c (c_common_handle_option): Remove explicit handling from
2983 here.
2984 (c_common_post_options): Likewise.
2985
67e4210b
EB
29862012-10-18 Eric Botcazou <ebotcazou@adacore.com>
2987
2988 * c-ada-spec.c (LOCATION_COL): Delete.
2989 (compare_location): New function.
2990 (compare_node): Use it.
2991 (compare_comment): Likewise.
2992
65d4f2cd
MLI
29932012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
2994
2995 PR c/53063
2996 PR c/40989
2997 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
2998 * c-opts.c (c_common_handle_option): Do not set them here. Add
2999 comment.
3000 (c_common_post_options): Likewise.
3001
909881cb
EB
30022012-10-16 Eric Botcazou <ebotcazou@adacore.com>
3003
3004 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
3005 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
3006 Remove POINTER_TYPE handling, add large unsigned handling and use
3007 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
3008
3a785c97
JJ
30092012-10-12 Jakub Jelinek <jakub@redhat.com>
3010
3011 PR c/54381
3012 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
3013 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
3014 locs and array of 3 trees instead of just single loc and single
3015 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
3016 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
3017 For *cmp* builtins that take two sources strings report warnings
3018 about first and second source, not about destination and source.
3019
5e54f81d
MG
30202012-10-12 Marc Glisse <marc.glisse@inria.fr>
3021
3022 PR c++/53055
3023 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
3024
f5b02f1e
EB
30252012-10-11 Eric Botcazou <ebotcazou@adacore.com>
3026
3027 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
3028 declaring something coming from another file.
3029
b46dbc6c
AC
30302012-10-10 Arnaud Charlet <charlet@adacore.com>
3031
f5b02f1e 3032 PR ada/54845
b46dbc6c
AC
3033 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
3034
5d9de0d0
PC
30352012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
3036
3037 PR c++/54194
3038 * c-common.c (warn_about_parentheses): Add location_t parameter;
3039 use EXPR_LOC_OR_LOC.
3040 * c-common.h: Update declaration.
3041
a212e43f
MG
30422012-10-09 Marc Glisse <marc.glisse@inria.fr>
3043
3044 PR c++/54427
3045 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
3046 more operations. Make error messages optional.
3047 * c-common.h (enum stv_conv): Moved from c-typeck.c.
3048 (scalar_to_vector): Declare.
3049
b1db7f91
JM
30502012-10-08 Jason Merrill <jason@redhat.com>
3051
3052 * c-common.c (c_common_reswords): Add thread_local.
3053
e28d52cf
DS
30542012-10-08 Dodji Seketeli <dodji@redhat.com>
3055
3056 PR c++/53528 C++11 attribute support
3057 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
3058 new functions.
3059 * c-common.c (check_cxx_fundamental_alignment_constraints): New
3060 static function.
3061 (handle_aligned_attribute): In choose strictest alignment
3062 among many. Use new check_cxx_fundamental_alignment_constraints.
3063 (handle_transparent_union_attribute): In c++11 attribute syntax,
3064 don't look through typedefs.
3065
3b78de56
AC
30662012-10-04 Arnaud Charlet <charlet@adacore.com>
3067
3068 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
3069 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
3070 out of dumpfile.h.
3071
6040bb5f
DC
30722012-09-25 Dehao Chen <dehao@google.com>
3073
3074 PR middle-end/54645
3b78de56 3075 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
3076 map when read in the pch.
3077
0b07a57e
AC
30782012-09-18 Arnaud Charlet <charlet@adacore.com>
3079
3080 * c-ada-spec.c: Style fixes.
3081
da5182be
TQ
30822012-09-18 Thomas Quinot <quinot@adacore.com>
3083
3084 * c.opt (-fada-spec-parent): Define new command line switch.
3085 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
3086 is specified, generate binding spec as a child of the specified unit.
3087
0ccb505d
PC
30882012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
3089 Manuel López-Ibáñez <manu@gcc.gnu.org>
3090
3091 PR c++/53210
3092 * c.opt ([Winit-self]): Enabled by -Wall in C++.
3093
c583af79
AC
30942012-08-23 Arnaud Charlet <charlet@adacore.com>
3095
3096 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
3097 for pointers, and add missing Convention C pragma.
3098 (print_ada_struct_decl): Add missing aliased keyword.
3099 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
3100
1a4049e7
JJ
31012012-08-17 Jakub Jelinek <jakub@redhat.com>
3102
3103 * c-common.c (sizeof_pointer_memaccess_warning): New function.
3104 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
3105 * c-opts.c (c_common_handle_option): Enable it for -Wall.
3106 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
3107 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
3108
70b5e7dc
RG
31092012-08-10 Richard Guenther <rguenther@suse.de>
3110
3111 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
3112
f8923f7e
SB
31132012-08-07 Steven Bosscher <steven@gcc.gnu.org>
3114
3115 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
3116 instead of separate pp_newline and pp_flush.
3117 (print_c_tree): Likewise.
3118
e45abe1f
RH
31192012-07-26 Richard Henderson <rth@redhat.com>
3120
3121 * c-common.c (handle_hot_attribute): Allow labels.
3122 (handle_cold_attribute): Likewise.
3123
332f1d24
JJ
31242012-07-20 Jakub Jelinek <jakub@redhat.com>
3125
3126 PR c++/28656
3127 * c-common.c (check_function_nonnull): Handle multiple nonnull
3128 attributes properly.
3129
7ee2468b
SB
31302012-07-16 Steven Bosscher <steven@gcc.gnu.org>
3131
3132 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
3133 * c-ada-spec.c: Likewise.
3134 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
3135
ee7b28eb
SB
31362012-07-14 Steven Bosscher <steven@gcc.gnu.org>
3137
3138 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
3139 Remove code conditional on it.
3140
6bdf3519
SB
31412012-07-11 Steven Bosscher <steven@gcc.gnu.org>
3142
3143 * c-gimplify.c: Do not include basic-block.h.
3144 * c-common.c: Do not include linfuncs.h.
3145
532aafad
SB
31462012-07-08 Steven Bosscher <steven@gcc.gnu.org>
3147
3148 * c-common.h: Include tree.h.
3149
8d0d1915
JM
31502012-07-02 Jason Merrill <jason@redhat.com>
3151
3152 PR c++/53524
3153 * c-common.c (get_priority): Call default_conversion.
3154
fbc873ad
UB
31552012-07-01 Uros Bizjak <ubizjak@gmail.com>
3156
3157 * c-pch.c (c_common_write_pch): Remove unused variables.
3158
d4a10d0a
SB
31592012-06-29 Steven Bosscher <steven@gcc.gnu.org>
3160
3161 * cppspec.c: Moved from gcc/ to here.
3162
6f3a2e23
KT
31632012-06-27 Kai Tietz <ktietz@redhat.com>
3164
3165 PR preprocessor/37215
3166 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
3167
8ca92d04
SB
31682012-06-21 Steven Bosscher <steven@gcc.gnu.org>
3169
3170 * c-common.h (c_common_print_pch_checksum): Remove.
3171 * c-pch.c: Do not include output.h.
3172 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
3173 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
3174 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
3175 (struct c_pch_header): Remove.
3176 (get_ident): Update gpch version.
3177 (pch_init): Do not print executable_checksum to asm_out_file.
3178 Do not fail if there is no asm_out_file to read back from. Set
3179 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
3180 (c_common_write_pch): Verify that nothing was written to asm_out_file
3181 since pch_init was called. Do not write a c_pch_header, and do not
3182 copy from asm_out_file to the PCH.
3183 (c_common_read_pch): Do not read a c_pch_header, and do not restore
3184 the content of asm_out_file from the PCH.
3185 (c_common_print_pch_checksum): Remove.
3186 * c-opts.c (c_common_init): Print out executable_checksum directly.
3187
70f42967
SB
31882012-06-19 Steven Bosscher <steven@gcc.gnu.org>
3189
3190 * c-target.def (objc_declare_unresolved_class_reference,
3191 objc_declare_class_definition): Add new hooks.
3192
a8781821
SB
31932012-06-19 Steven Bosscher <steven@gcc.gnu.org>
3194
3195 * c-lex.c: Do not include output.h.
3196 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
3197 Remove uses of ASM_OUTPUT_IDENT.
3198
9e1a8dd1
RR
31992012-06-15 Marc Glisse <marc.glisse@inria.fr>
3200
3201 PR c++/51033
3202 * c-common.h (c_build_vec_perm_expr): Move decl here.
3203 * c-common.c (c_build_vec_perm_expr): Move definition
3204 here.
3205
6f07a821
SB
32062012-06-06 Steven Bosscher <steven@gcc.gnu.org>
3207
3208 * c.opt (fconserve-space): Turn into a no-op.
3209
9faeb493 32102012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
3211
3212 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
3213 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
3214 both the start and end of the function.
3215
a4b7d13c
SB
32162012-06-04 Steven Bosscher <steven@gcc.gnu.org>
3217
3218 * c-common.c: Do not include output.h.
3219 * c-pragma.c: Likewise.
3220
c265f413
SA
32212012-06-04 Steven Bosscher <steven@gcc.gnu.org>
3222
3223 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
3224 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
3225 (lang_decl_name): Handle namespace decls.
3226
be7a421e
SB
32272012-05-31 Steven Bosscher <steven@gcc.gnu.org>
3228
3229 * c-ada-spec.c: Do not include output.h.
3230 * c-semantics.c: Likewise.
3231
65de6659
JM
32322012-05-29 Joseph Myers <joseph@codesourcery.com>
3233
3234 * c-common.c: Fix typo.
3235
ca5f4331
MM
32362012-05-29 Michael Matz <matz@suse.de>
3237
3238 * c-common.h (c_expand_decl): Remove prototype.
3239
4f7f7aca
MLI
32402012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3241
3242 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
3243 * c-opts.c (c_common_handle_option): Remove code handling
3244 warn_missing_braces.
3245
4a792f9b
PC
32462012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
3247
3248 PR c++/25137
3249 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
3250 -Wmissing_braces.
3251
650dc14a
DS
32522012-05-22 Dodji Seketeli <dodji@redhat.com>
3253
3254 PR c++/53322
3255 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
3256
9b095bf1
MLI
32572012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
3258
3259 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
3260 * c-opts.c (c_common_handle_option): Do not handle explicitly
3261 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
3262
0b2c4be5
DS
32632012-05-16 Dodji Seketeli <dodji@redhat.com>
3264
3265 PR preprocessor/7263
3266 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
3267 to cpp_classify_number. For diagnostics, use the precise location
3268 instead of the global input_location.
3269
a1bde5af
PC
32702012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
3271
d02924ef 3272 PR c++/11856
a1bde5af
PC
3273 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
3274
d1ede5f4
BS
32752012-05-14 Bernd Schmidt <bernds@codesourcery.com>
3276
a1bde5af 3277 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 3278
f2bc201f
MLI
32792012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
3280
3281 PR 53063
3282 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
3283 Wreorder): Use LangEnabledBy.
3284 * c-opts.c (c_common_handle_option): Do not enable them
3285 explicitly. Call lang-specific generated functions.
3286 (c_common_post_options): Do not set them here.
3287
95744782
MLI
32882012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
3289
3290 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
3291 Wmissing-field-initializers,Wmissing-parameter-type,
3292 Wold-style-declaration,Woverride-init): Use EnabledBy.
3293 * c-opts.c (c_common_post_options): Do not set here explicitly.
3294
7d5a5747
MLI
32952012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3296
3297 PR 53063
3298 * c-opts.c (c_common_handle_option): Use handle_generated_option
3299 to enable sub-options.
3300
5a3c9cf2
PC
33012012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
3302
3303 PR c++/53158
3304 * c-common.c (warnings_for_convert_and_check): Use warning_at.
3305
3ac8781c
RG
33062012-05-10 Richard Guenther <rguenther@suse.de>
3307
3308 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
3309 adjust commentary about TYPE_IS_SIZETYPE types.
3310
1e537948
MLI
33112012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3312
3313 PR c++/53261
3314 * c-common.c (warn_logical_operator): Check that argument of
3315 integer_zerop is not NULL.
3316
f2c4a785
MLI
33172012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
3318
3319 PR c/43772
3320 * c-common.c (warn_logical_operator): Do not warn if either side
3321 is already true or false.
3322
50f305ca
MLI
33232012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
3324
3325 PR c/51712
3326 * c-common.c (expr_original_type): New.
3327 (shorten_compare): Do not warn for enumeration types.
3328
0c3641b0
MLI
33292012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3330
3331 * c.opt (fpermissive): Add Var(flag_permissive).
3332
7edaa4d2
MG
33332012-04-30 Marc Glisse <marc.glisse@inria.fr>
3334
3335 PR c++/51033
3336 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
3337 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
3338
b9c8da34
DS
33392012-04-30 Dodji Seketeli <dodji@redhat.com>
3340
3341 Add -Wvarargs option
3342 * c.opt (Wvarargs): Define new option.
3343
e6c69da0
MLI
33442012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3345
3346 * c-common.c (check_function_arguments): Replace
3347 Wmissing-format-attribute with Wsuggest-attribute=format.
3348
90137d8f
MLI
33492012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3350
3351 * c.opt (Wsuggest-attribute=format): New. Alias of
3352 Wmissing-format-attribute.
3353 * c-format.c (decode_format_type): Replace
3354 Wmissing-format-attribute with Wsuggest-attribute=format.
3355 (check_function_format): Likewise.
3356
9faeb493 33572012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
3358
3359 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
3360 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
3361 * c.opt: Add Wliteral-suffix.
3362
c1771a20
MLI
33632012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
3364
3365 PR c/44774
3366 * c.opt (Wpedantic): New.
3367 (pedantic): Alias Wpedantic.
3368 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
3369 (c_common_post_options): Likewise.
3370 (sanitize_cpp_opts): Likewise.
3371 * c-lex.c (interpret_float): Likewise.
3372 * c-format.c (check_format_types): Likewise.
3373 * c-common.c (pointer_int_sum): Likewise.
3374 (c_sizeof_or_alignof_type): Likewise.
3375 (c_add_case_label): Likewise.
3376 (c_do_switch_warnings): Likewise.
3377 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
3378
04b391c1
JM
33792012-04-15 Jason Merrill <jason@redhat.com>
3380
3381 PR c++/52818
3382 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
3383 (C_STD_NAME): Distinguish between C++98 and C++11.
3384
ac868f29
EB
33852012-04-11 Eric Botcazou <ebotcazou@adacore.com>
3386
3387 PR target/52624
3388 * c-common.h (uint16_type_node): Rename into...
3389 (c_uint16_type_node): ...this.
3390 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
3391 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
3392
fd4116f4
MLI
33932012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
3394
3395 * c-common.c (warn_if_unused_value): Move definition to here.
3396 * c-common.h (warn_if_unused_value): Move declaration to here.
3397
573ac65e
WB
33982012-03-23 William Bader <williambader@hotmail.com>
3399
3400 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
3401
552b8185
JM
34022012-03-20 Jason Merrill <jason@redhat.com>
3403
3404 * c-common.h (enum cxx_dialect): Add cxx1y.
3405 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
3406 test.
3407 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3408 * c-opts.c (c_common_post_options): Likewise.
3409 (set_std_cxx1y): New.
3410 (c_common_handle_option): Call it.
3411 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
3412
04398fa8
PC
34132012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
3414
3415 PR c++/14710
3416 * c.opt ([Wuseless-cast]): Add.
3417
d2a12ae7
RG
34182012-03-16 Richard Guenther <rguenther@suse.de>
3419
3420 * c-pretty-print.c (pp_c_initializer_list): Adjust.
3421
a12bf402
MLI
34222012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3423
3424 PR c++/44783
3425 * c.opt (ftemplate-backtrace-limit) Add.
3426
5c30094f
RO
34272012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3428
3429 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
3430 handling.
3431 * c-pragma.c (handle_pragma_extern_prefix): Remove.
3432 (init_pragma): Don't register extern_prefix.
3433
21fa2faf
RG
34342012-03-12 Richard Guenther <rguenther@suse.de>
3435
3436 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
3437 (builtin_type_for_size): Likewise.
3438
e3793c6f
JJ
34392012-02-13 Jakub Jelinek <jakub@redhat.com>
3440
3441 PR c++/52215
3442 * c-common.c (sync_resolve_params): Don't decide whether to convert
3443 or not based on TYPE_SIZE comparison, convert whenever arg_type
3444 is unsigned INTEGER_TYPE.
3445
93286335
PC
34462012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
3447
3448 PR c/52118
3449 * c.opt ([Wunused-local-typedefs]): Fix description.
3450
7a421706
MS
34512012-01-24 Mike Stump <mikestump@comcast.net>
3452
3453 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
3454 exactly.
3455
ba9b1f11
RG
34562012-01-18 Richard Guenther <rguenther@suse.de>
3457
3458 * c-opts.c (c_common_post_options): Reset LTO flags if
3459 we are about to generate a PCH.
3460
465406be
PC
34612012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
3462
3463 PR c++/51777
3464 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
3465 use pp_unsigned_wide_integer.
3466
aee15221
RG
34672012-01-10 Richard Guenther <rguenther@suse.de>
3468
3469 PR middle-end/51806
3470 * c-opts.c (c_common_handle_option): Move -Werror handling
3471 to language independent code.
3472
5720c0dc
RG
34732012-01-05 Richard Guenther <rguenther@suse.de>
3474
3475 PR middle-end/51764
3476 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
3477 from common.opt.
3478
73ac190a
PC
34792011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
3480
3481 PR c++/51316
3482 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
3483 of array types with an unknown bound.
3484
48b0b196
JM
34852011-12-20 Joseph Myers <joseph@codesourcery.com>
3486
3487 * c-common.c (flag_isoc99): Update comment to refer to C11.
3488 (flag_isoc1x): Change to flag_isoc11.
3489 * c-common.h (flag_isoc99): Update comment to refer to C11.
3490 (flag_isoc1x): Change to flag_isoc11.
3491 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
3492 C11.
3493 * c-opts.c (set_std_c1x): Change to set_std_c11.
3494 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
3495 Call set_std_c11.
3496 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
3497 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
3498 * c.opt (std=c1x): Change to std=c11. Document as non-draft
3499 standard.
3500 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
3501 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
3502 (std=gnu1x): Make alias of std=gnu11.
3503
d58d6eb5
JM
35042011-12-19 Jason Merrill <jason@redhat.com>
3505
3506 PR c++/51228
3507 * c-common.c (handle_transparent_union_attribute): Check the first
3508 field if the type is complete.
3509
b3908fcc
JW
35102011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
3511
3512 PR libstdc++/51365
3513 * c-common.c (RID_IS_FINAL): Add.
3514 * c-common.h (RID_IS_FINAL): Add.
3515
fea3ca91
IS
35162011-11-30 Iain Sandoe <iains@gcc.gnu.org>
3517
3518 * c.opt (fgnu-runtime): Provide full description.
3519 (fnext-runtime): Likewise.
3520 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
3521
62bad7cd
AM
35222011-11-28 Andrew MacLeod <amacleod@redhat.com>
3523
3524 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
3525 predefines in one place. Add LOCK_FREE predefines.
3526 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
3527 new func.
3528
c466c4ff
AM
35292011-11-24 Andrew MacLeod <amacleod@redhat.com>
3530
3531 PR c/51256
9faeb493 3532 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 3533 conditions
9faeb493
UB
3534 (resolve_overloaded_atomic_exchange,
3535 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
3536 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
3537 error_mark_node for error conditions.
9faeb493 3538
a5952633
RG
35392011-11-08 Richard Guenther <rguenther@suse.de>
3540
3541 PR middle-end/51010
3542 c-family/
3543
0a35513e
AH
35442011-11-07 Richard Henderson <rth@redhat.com>
3545 Aldy Hernandez <aldyh@redhat.com>
3546 Torvald Riegel <triegel@redhat.com>
3547
3548 Merged from transactional-memory.
3549
3550 * c-common.c (handle_tm_wrap_attribute,
3551 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
3552 (struct c_common_reswords): Added __transaction* keywords.
3553 (struct c_common_attribute_table): Added transaction* and tm_regparm
3554 attributes.
3555 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
3556 masks.
3557 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
3558 find_tm_attribute): Declare.
3559
6d87092d
JM
35602011-11-07 Jason Merrill <jason@redhat.com>
3561
3562 PR c++/35688
3563 * c-common.c, c-common.h: Revert yesterday's changes.
3564
8e7860a1
JM
35652011-11-06 Jason Merrill <jason@redhat.com>
3566
3567 PR c++/35688
3568 * c-common.c (decl_has_visibility_attr): Split out from...
3569 (c_determine_visibility): ...here.
3570 * c-common.h: Declare it.
3571
d19fa6b5
JM
35722011-11-06 Joseph Myers <joseph@codesourcery.com>
3573
3574 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
3575 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
3576 type.
3577 (check_user_alignment): New. Split out of
3578 handle_aligned_attribute. Disallow integer constants with
3579 noninteger types. Conditionally allow zero.
3580 (handle_aligned_attribute): Use check_user_alignment.
3581 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
3582
86951993
AM
35832011-11-06 Andrew MacLeod <amacleod@redhat.com>
3584 Richard Henderson <rth@redhat.com>
3585
3586 Merged from cxx-mem-model.
3587
3588 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 3589 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
3590 parameters that are the same type size.
3591 (get_atomic_generic_size): New. Find size of generic
3592 atomic function parameters and do typechecking.
3593 (add_atomic_size_parameter): New. Insert size into parameter list.
3594 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
3595 either __atomic_exchange_n or external library call.
9faeb493 3596 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 3597 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 3598 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
3599 __atomic_load_n or an external library call.
3600 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
3601 __atomic_store_n or an external library call.
3602 (resolve_overloaded_builtin): Handle new __atomic builtins.
3603
cf9e9959
EB
36042011-11-04 Eric Botcazou <ebotcazou@adacore.com>
3605
3606 PR c++/50608
3607 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
3608 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
3609 <INDIRECT_REF>: Return the argument.
3610 <ARRAY_REF>: Remove special code for negative offset.
3611 Call fold_build_pointer_plus instead of size_binop.
3612 (fold_offsetof): Remove STOP_REF argument and adjust.
3613 * c-common.h (fold_offsetof_1): Declare.
3614 (fold_offsetof): Remove STOP_REF argument.
3615
25339f10
JM
36162011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
3617
3618 PR c++/50810
3619 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3620 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3621 Wnarrowing for C++0x and C++98.
3622 * c.opt ([Wnarrowing]): Update.
3623
89401152
PC
36242011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
3625
3626 PR c++/44277
3627 * c.opt: Add Wzero-as-null-pointer-constant.
3628
97e3ad20
JM
36292011-10-31 Jason Merrill <jason@redhat.com>
3630
15694fdd
JM
3631 * c.opt (-fdeduce-init-list): Off by default.
3632
97e3ad20
JM
3633 PR c++/50920
3634 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
3635 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
3636 and -Wc++11-compat.
3637 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
3638
fb9120e3
RAV
36392011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
3640
3641 PR c++/30066
3642 * c.opt (fvisibility-inlines-hidden): Description change.
3643
3ce4f9e4
ESR
36442011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
3645
3646 Implement C++11 user-defined literals.
3647 * c-common.c (build_userdef_literal): New.
3648 * c-common.def: New tree code.
3649 * c-common.h (tree_userdef_literal): New tree struct and accessors.
3650 * c-lex.c (interpret_float): Add suffix parm.
3651 (c_lex_with_flags): Build literal tokens.
3652
5f53c243
PC
36532011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3654
3655 PR c++/50841
3656 Revert:
3657 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3658
3659 PR c++/50810
3660 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3661 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3662 Wnarrowing for C++0x and C++98.
3663 * c.opt ([Wnarrowing]): Update.
3664
263734e1
PC
36652011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3666
3667 PR c++/50810
3668 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3669 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3670 Wnarrowing for C++0x and C++98.
3671 * c.opt ([Wnarrowing]): Update.
3672
d2e312d7
PC
36732011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
3674
3675 PR c++/45385
3676 * c-common.c (conversion_warning): Remove code looking for
3677 artificial operands.
3678
d17687f6
DS
36792011-10-18 Dodji Seketeli <dodji@redhat.com>
3680
3681 PR bootstrap/50760
3682 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 3683 !NO_IMPLICIT_EXTERN_C.
d17687f6 3684
fc8396e9
PC
36852011-10-17 Michael Spertus <mike_spertus@symantec.com>
3686
3687 * c-common.c (c_common_reswords): Add __bases,
3688 __direct_bases.
3689 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
3690
36912011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
3692
3693 PR c++/50757
3694 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
3695
847e697a
TT
36962011-10-15 Tom Tromey <tromey@redhat.com>
3697 Dodji Seketeli <dodji@redhat.com>
3698
3699 * c.opt (fdebug-cpp): New option.
3700 * c-opts.c (c_common_handle_option): Handle the option.
3701 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
3702 output stream in parameter. Factorized from ...
3703 (maybe_print_line): ... this. Dump location debug information when
3704 -fdebug-cpp is in effect.
3705 (print_line_1): New static function. Takes an output stream in
3706 parameter. Factorized from ...
3707 (print_line): ... here. Dump location information when -fdebug-cpp
3708 is in effect.
3709 (scan_translation_unit): Dump location information when
3710 -fdebug-cpp is in effect.
3711
92582b75
TT
37122011-10-15 Tom Tromey <tromey@redhat.com>
3713 Dodji Seketeli <dodji@redhat.com>
3714
3715 * c.opt (ftrack-macro-expansion): New option. Handle it with and
3716 without argument.
3717 * c-opts.c (c_common_handle_option)<case
3718 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
3719 cases. Handle -ftrack-macro-expansion with and without argument.
3720
46427374
TT
37212011-10-15 Tom Tromey <tromey@redhat.com>
3722 Dodji Seketeli <dodji@redhat.com>
3723
3724 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
3725 (print_line, cb_define, do_line_change): Adjust to avoid touching
3726 the internals of struct line_map. Use the public API instead.
3727 * c-pch.c (c_common_read_pch): Likewise.
3728 * c-lex.c (fe_file_change): Likewise.
3729
fc8396e9
PC
37302011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
3731
3732 PR c++/17212
3733 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
3734
37352011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
3736
3737 PR c++/33067
3738 * c-pretty-print.c (pp_c_floating_constant): Output
3739 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
3740
e79983f4
MM
37412011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
3742
3743 * c-common.c (def_builtin_1): Delete old interface with two
3744 parallel arrays to hold standard builtin declarations, and replace
3745 it with a function based interface that can support creating
3746 builtins on the fly in the future. Change all uses, and poison
3747 the old names. Make sure 0 is not a legitimate builtin index.
3748 * c-omp.c (c_finish_omp_barrier): Ditto.
3749 (c_finish_omp_taskwait): Ditto.
3750 (c_finish_omp_flush): Ditto.
3751
6637388f
TG
37522011-10-11 Tristan Gingold <gingold@adacore.com>
3753
3754 * c.opt: (fallow-parameterless-variadic-functions): New.
3755
3797cb21
DS
37562011-09-08 Dodji Seketeli <dodji@redhat.com>
3757
3758 PR c++/33255 - Support -Wunused-local-typedefs warning
3759 * c-common.h (struct c_language_function::local_typedefs): New
3760 field.
9faeb493
UB
3761 (record_locally_defined_typedef, maybe_record_typedef_use)
3762 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 3763 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
3764 (maybe_record_typedef_use)
3765 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
3766 * c.opt: Declare new -Wunused-local-typedefs flag.
3767
693ddb1b
EB
37682011-09-06 Eric Botcazou <ebotcazou@adacore.com>
3769
3770 PR middle-end/50266
3771 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
3772 computations.
3773
830c740f
RG
37742011-09-05 Richard Guenther <rguenther@suse.de>
3775
3776 * c-common.c (complete_array_type): Use ssize_int (-1) instead
3777 of integer_minus_one_node for empty array upper bounds.
3778
892a371f
DS
37792011-08-28 Dodji Seketeli <dodji@redhat.com>
3780
3781 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
3782 it's the first time it's being called on this main TU.
3783
0e3fdb48
RB
37842011-08-24 Richard Guenther <rguenther@suse.de>
3785
3786 PR c/49396
3787 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
3788
37892011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
3790
3791 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
3792 defined in cpp_init_builtins and c_cpp_builtins.
3793
d4a83c10
JM
37942011-08-19 Joseph Myers <joseph@codesourcery.com>
3795
3796 * c-common.c (c_common_reswords): Add __builtin_complex.
3797 * c-common.h (RID_BUILTIN_COMPLEX): New.
3798
bbceee64
JM
37992011-08-18 Joseph Myers <joseph@codesourcery.com>
3800
3801 * c-common.c (c_common_reswords): Add _Noreturn.
3802 (keyword_is_function_specifier): Handle RID_NORETURN.
3803 * c-common.h (RID_NORETURN): New.
3804
0e3a99ae
AS
38052011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3806
3807 * c-common.c (unsafe_conversion_p): New function. Check if it is
3808 unsafe to convert an expression to the type.
3809 (conversion_warning): Adjust, use unsafe_conversion_p.
3810 * c-common.h (unsafe_conversion_p): New function declaration.
3811
20906c66
JJ
38122011-08-02 Jakub Jelinek <jakub@redhat.com>
3813
3814 * c-common.h (c_finish_omp_atomic): Adjust prototype.
3815 (c_finish_omp_taskyield): New prototype.
3816 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
3817 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
3818 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
3819 or RHS1 have side-effects, evaluate those too in the right spot,
3820 if it is a decl and LHS is also a decl, error out if they
3821 aren't the same.
3822 (c_finish_omp_taskyield): New function.
3823 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
3824 * c-pragma.c (omp_pragmas): Add taskyield.
3825 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
3826 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
3827 PRAGMA_OMP_CLAUSE_MERGEABLE.
3828
770e5a2e
DS
38292011-07-25 Dodji Seketeli <dodji@redhat.com>
3830
3831 * c-common.h (set_underlying_type): Remove parm name from
3832 declaration.
3833
1baae426
RG
38342011-07-25 Romain Geissler <romain.geissler@gmail.com>
3835
3836 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 3837
fcb21722
JM
38382011-07-22 Jason Merrill <jason@redhat.com>
3839
76f86d00
JM
3840 PR c++/49793
3841 * c.opt (Wnarrowing): New.
3842
3a636414
JM
3843 PR c++/30112
3844 * c-common.h: Declare c_linkage_bindings.
3845 * c-pragma.c (handle_pragma_redefine_extname): Use it.
3846
fcb21722
JM
3847 PR c++/49813
3848 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
3849 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
3850 as flag_isoc99 for 'restrict'.
3851 (pp_c_specifier_qualifier_list): Likewise for _Complex.
3852
02614448
ILT
38532011-07-21 Ian Lance Taylor <iant@google.com>
3854
3855 PR middle-end/49705
3856 * c-common.c (c_disable_warnings): New static function.
3857 (c_enable_warnings): New static function.
3858 (c_fully_fold_internal): Change local unused_p to bool. Call
3859 c_disable_warnings and c_enable_warnings rather than change
3860 c_inhibit_evaluation_warnings.
3861
34429675
JM
38622011-07-20 Jason Merrill <jason@redhat.com>
3863
3864 PR c++/6709 (DR 743)
3865 PR c++/42603 (DR 950)
3866 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
3867 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
3868 (CPP_DECLTYPE): New.
3869 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
3870
5d49b6a7
RG
38712011-07-19 Richard Guenther <rguenther@suse.de>
3872
3873 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
3874 * c-omp.c (c_finish_omp_for): Likewise.
3875
e84a58ff
EB
38762011-07-12 Eric Botcazou <ebotcazou@adacore.com>
3877
3878 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
3879 body on the next line.
3880
329af3c7
JM
38812011-07-08 Jason Merrill <jason@redhat.com>
3882
4063e61b
JM
3883 PR c++/45437
3884 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
3885
329af3c7
JM
3886 PR c++/49673
3887 * c-common.c (c_apply_type_quals_to_decl): Don't check
3888 TYPE_NEEDS_CONSTRUCTING.
3889
1a072294
RG
38902011-07-06 Richard Guenther <rguenther@suse.de>
3891
3892 * c-common.c (c_common_nodes_and_builtins):
3893 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
3894
fce5dddd
RG
38952011-07-05 Richard Guenther <rguenther@suse.de>
3896
3897 * c-common.c (c_common_nodes_and_builtins): Build all common
3898 tree nodes first.
3899
45d439ac
JJ
39002011-06-27 Jakub Jelinek <jakub@redhat.com>
3901
56300785
JJ
3902 * c-common.h (c_tree_chain_next): New static inline function.
3903
45d439ac
JJ
3904 * c-common.c (check_builtin_function_arguments): Handle
3905 BUILT_IN_ASSUME_ALIGNED.
3906
e0a8ecf2
AM
39072011-06-21 Andrew MacLeod <amacleod@redhat.com>
3908
3909 * c-common.c: Add sync_ or SYNC__ to builtin names.
3910 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
3911
39122011-06-20 Pierre Vittet <piervit@pvittet.com>
3913
3914 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
3915 handler.
3916 (gen_pragma_handler): New union.
3917 (internal_pragma_handler): New type.
3918 (c_register_pragma_with_data)
3919 (c_register_pragma_with_expansion_and_data): New functions.
3920
3921 * c-pragma.c (registered_pragmas, c_register_pragma_1)
3922 (c_register_pragma, c_register_pragma_with_expansion)
3923 (c_invoke_pragma_handler): Changed to work with
3924 internal_pragma_handler.
3925 (c_register_pragma_with_data)
3926 (c_register_pragma_with_expansion_and_data): New functions.
3927
677f3fa8
JM
39282011-06-14 Joseph Myers <joseph@codesourcery.com>
3929
3930 * c-common.c: Include common/common-target.h.
3931 (handle_section_attribute): Use
3932 targetm_common.have_named_sections.
3933 * c-cppbuiltin.c: Include common/common-target.h.
3934 (c_cpp_builtins): Use targetm_common.except_unwind_info.
3935
d7fc8c14
RG
39362011-06-10 Richard Guenther <rguenther@suse.de>
3937
3938 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
3939 to print a IDENTIFIER_NODE.
3940
10e48e39
RO
39412011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3942 Joseph Myers <joseph@codesourcery.com>
3943
3944 * c.opt (fbuilding-libgcc): New option.
3945 * c-cppbuiltin.c (c_cpp_builtins): Define
3946 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
3947
6976ae51
JM
39482011-06-07 Jason Merrill <jason@redhat.com>
3949
3ff60975
JM
3950 * c-common.c (max_tinst_depth): Lower default to 900.
3951
6976ae51
JM
3952 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
3953
009db074
RG
39542011-06-07 Richard Guenther <rguenther@suse.de>
3955
3956 * c-common.c (c_common_nodes_and_builtins): Do not set
3957 size_type_node or call set_sizetype.
3958
b4592b92
DS
39592011-06-07 Dodji Seketeli <dodji@redhat.com>
3960
3961 PR debug/49130
3962 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 3963 type when using pointer comparison to compare types.
b4592b92 3964
014ab419
JW
39652011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
3966
3967 * c.opt: Add -Wdelete-non-virtual-dtor.
3968 * c-opts.c (c_common_handle_option): Include it in -Wall.
3969
4f60111f
NF
39702011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
3971
3972 PR bootstrap/49190
3973
3974 Revert:
3975 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3976
3977 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3978 not tree_common.
3979
4cc4f2f4
JJ
39802011-05-27 Jakub Jelinek <jakub@redhat.com>
3981
3982 PR c++/49165
3983 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
3984 C++ don't call c_common_truthvalue_conversion on void type arms.
3985
38e01f9e
NF
39862011-05-27 Nathan Froyd <froydnj@codesourcery.com>
3987
3988 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
3989 (stmt_list_stack): Define.
3990 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
3991 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
3992
92e948a8
NF
39932011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3994
3995 * c-common.c (warning_candidate_p): Check for BLOCKs.
3996
a2fc3e63
NF
39972011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3998
3999 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
4000 not tree_common.
4001
0957c029
JJ
40022011-05-25 Jakub Jelinek <jakub@redhat.com>
4003
4004 * c-common.c (def_fn_type): Remove extra va_end.
4005
828fb3ba
JM
40062011-05-23 Jason Merrill <jason@redhat.com>
4007
4008 PR c++/48106
4009 * c-common.c (c_common_get_narrower): New.
4010 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
4011
dde05067
NF
40122011-05-23 Nathan Froyd <froydnj@codesourcery.com>
4013
4014 * c-common.h (check_function_arguments): Tweak prototype of
4015 check_function_arguments.
4016 * c-common.c (check_function_arguments): Likewise. Adjust
4017 calls to check_function_nonnull, check_function_format, and
4018 check_function_sentinel.
4019 (check_function_sentinel): Take a FUNCTION_TYPE rather than
4020 separate attributes and typelist arguments. Use
4021 FOREACH_FUNCTION_ARGS to iterate over argument types.
4022
3c0d13bf
PC
40232011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
4024
4025 * c-common.c (c_common_reswords): Reorder.
4026 * c-common.h (rid): Likewise.
4027
8242dd04
NF
40282011-05-10 Nathan Froyd <froydnj@codesourcery.com>
4029
4030 * c-common.c (def_fn_type): Don't call build_function_type, call
4031 build_function_type_array or build_varargs_function_type_array
4032 instead.
4033 (c_common_nodes_and_builtins): Likewise.
4034
3d528853
NF
40352011-05-05 Nathan Froyd <froydnj@codesourcery.com>
4036
4037 * c-common.c (c_add_case_label): Omit the loc argument to
4038 build_case_label.
4039 * c-common.h (build_case_label): Remove.
4040 * c-semantics.c (build_case_label): Remove.
4041
a04a722b
JM
40422011-05-05 Joseph Myers <joseph@codesourcery.com>
4043
4044 * c-objc.h (objc_start_method_definition): Update prototype.
4045 * stub-objc.c (objc_start_method_definition): Add extra parameter.
4046
e19a18d4
NF
40472011-05-04 Nathan Froyd <froydnj@codesourcery.com>
4048
4049 * c-common.c (check_main_parameter_types): Reindent. Don't use
4050 TYPE_ARG_TYPES directly.
4051 (handle_nonnull_attribute): Likewise.
4052 (sync_resolve_params): Likewise.
4053 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
4054 to check_format_string.
4055 (handle_format_attribute): Likewise.
4056 (check_format_string): Take a function type to examine instead of
4057 a type list. Use a function_arg_iterator to step through argument
4058 types.
4059
c62c040f
RG
40602011-05-04 Richard Guenther <rguenther@suse.de>
4061
4062 * c-common.c (fix_string_type): Use size_int for index type bounds.
4063 (start_fname_decls): Do not pass NULL to build_int_cst.
4064 (c_init_attributes): Likewise.
4065 * c-lex.c (c_lex_with_flags): Likewise.
4066
c12ff9d8
JM
40672011-04-27 Jason Merrill <jason@redhat.com>
4068
4069 * c-common.c (make_tree_vector_from_list): New.
4070 * c-common.h: Declare it.
4071
304dfbe3
RG
40722011-04-26 Richard Guenther <rguenther@suse.de>
4073
4074 PR preprocessor/48248
4075 * c-ppoutput.c (maybe_print_line): Always optimize newlines
4076 for output size with -P.
4077
3c0d13bf
PC
40782011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
4079
4080 * c-common.c (struct c_common_resword): Add __underlying_type.
4081 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
4082
04695783
JM
40832011-04-20 Jim Meyering <meyering@redhat.com>
4084
4085 * c-format.c (init_dollar_format_checking): Remove useless
4086 if-before-free.
4087
0dc33c3c
NP
40882011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
4089
4090 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 4091 (objc_detect_field_duplicates): New.
0dc33c3c 4092 * stub-objc.c: Likewise.
3c0d13bf 4093
c59633d9
NP
40942011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4095
4096 * stub-objc.c (objc_declare_protocols): Renamed to
4097 objc_declare_protocol.
4098 * c-objc.h: Likewise.
3c0d13bf 4099
32dabdaf
NP
41002011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4101
4102 * stub-objc.c (objc_declare_class): Updated argument name.
4103
81f653d6
NF
41042011-04-12 Nathan Froyd <froydnj@codesourcery.com>
4105
4106 * c-common.h (c_common_init_ts): Declare.
4107 * c-common.c (c_common_init_ts): Define.
4108
eb345401
NP
41092011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4110
4111 * c-objc.h (objc_build_message_expr): Updated prototype.
4112 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 4113
a358e188
MJ
41142011-04-12 Martin Jambor <mjambor@suse.cz>
4115
4116 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
4117 of cgraph_node.
4118
e6313a78
RG
41192011-04-11 Richard Guenther <rguenther@suse.de>
4120
4121 * c-common.c (complete_array_type): Build a range type of
4122 proper type.
4123
dcf0c47e
NF
41242011-04-08 Nathan Froyd <froydnj@codesourcery.com>
4125
4126 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
4127 (handle_type_generic_attribute): Likewise.
4128
1ee44b26
JM
41292011-04-07 Jason Merrill <jason@redhat.com>
4130
4131 PR c++/48450
4132 * c-common.c (c_common_truthvalue_conversion): Don't ignore
4133 conversion from C++0x scoped enum.
4134
acce4e77
JM
41352011-04-06 Joseph Myers <joseph@codesourcery.com>
4136
4137 * c-target-def.h: New file.
4138 * c-target.def: New file.
4139 * c-target.h: New file.
4140 * c-common.c (targetcm): Don't define here.
4141 * c-common.h (default_handle_c_option): Declare.
4142 * c-format.c: Include c-target.h instead of target.h.
4143 * c-opts.c: Include c-target.h instead of target.h. Explicitly
4144 include tm.h.
4145 (default_handle_c_option): Move from targhooks.c.
4146
e2eefb55
JJ
41472011-03-29 Jakub Jelinek <jakub@redhat.com>
4148
4149 PR preprocessor/48248
4150 * c-ppoutput.c (print): Add src_file field.
4151 (init_pp_output): Initialize it.
4152 (maybe_print_line): Don't optimize by adding up to 8 newlines
4153 if map->to_file and print.src_file are different file.
4154 (print_line): Update print.src_file.
4155
ba78087b
KT
41562011-03-25 Kai Tietz <ktietz@redhat.com>
4157
4158 * c-ada-spec.c (compare_comment): Use filename_cmp
4159 instead of strcmp for filename.
4160
0edf1bb2
JL
41612011-03-25 Jeff Law <law@redhat.com>
4162
adfac8df 4163 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 4164
c7dc8804
JM
41652011-03-25 Jason Merrill <jason@redhat.com>
4166
4167 * c.opt: Add -std=c++03.
4168
d1d879b1
EB
41692011-03-22 Eric Botcazou <ebotcazou@adacore.com>
4170
4171 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
4172
62d784f7
KT
41732011-03-17 Kai Tietz
4174
4175 PR target/12171
5050afdf
KT
4176 * c-pretty-print.c (pp_c_specifier_qualifier_list):
4177 Display allowed attributes for function pointer types.
4178 (pp_c_attributes_display): New function to display
4179 attributes having affects_type_identity flag set to true.
4180 * c-pretty-print.h (pp_c_attributes_display): New prototype.
4181
62d784f7
KT
4182 * c-common.c (c_common_attribute_table):
4183 Add new element.
4184 (c_common_format_attribute_table): Likewise.
4185
82d37118
JM
41862011-03-18 Jason Merrill <jason@redhat.com>
4187
49a000c3
JM
4188 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
4189 * c-common.h: Don't declare it here.
4190 * c-common.c: Or define it here.
4191 * c-opts.c (c_common_handle_option): Or set it here.
4192
82d37118
JM
4193 PR c++/35315
4194 * c-common.c (handle_transparent_union_attribute): Don't
4195 make a duplicate type in C++.
4196
17bc631c
JM
41972011-03-15 Jason Merrill <jason@redhat.com>
4198
4199 * c-common.c (max_constexpr_depth): New.
4200 * c-common.h: Declare it.
4201 * c-opts.c (c_common_handle_option): Set it.
4202 * c.opt (fconstexpr-depth): New option.
4203
1b9b91a6
JM
42042011-03-11 Jason Merrill <jason@redhat.com>
4205
f231b5ff
JM
4206 * c-common.c (attribute_takes_identifier_p): Add missing const.
4207
1b9b91a6
JM
4208 PR c++/46803
4209 * c-common.c (attribute_takes_identifier_p): Assume that an
4210 unknown attribute takes an identifier.
4211
a19e4d44
NF
42122011-03-07 Nathan Froyd <froydnj@codesourcery.com>
4213
4214 PR c/47786
4215 * c-common.c (c_type_hash): Call list_length instead of iterating
4216 through DECL_CHAIN. Rename 'i' to 'n_elements'.
4217
982d62f6
JJ
42182011-02-19 Jakub Jelinek <jakub@redhat.com>
4219
4220 PR c/47809
4221 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
4222
0a256240
NP
42232011-02-17 Iain Sandoe <iains@gcc.gnu.org>
4224
4225 * c.opt (fobjc-abi-version=) New.
4226 (fobjc-nilcheck): New.
4227
ba9e6dd5
NF
42282011-02-03 Nathan Froyd <froydnj@codesourcery.com>
4229
4230 PR c++/46890
4231 * c-common.h (keyword_is_decl_specifier): Declare.
4232 * c-common.c (keyword_is_decl_specifier): Define.
4233 (keyword_is_function_specifier): New function.
4234
7273813a
JJ
42352011-01-26 Jakub Jelinek <jakub@redhat.com>
4236
4237 PR c/47473
4238 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
4239 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
4240 REAL_TYPE.
4241
908ef79b
AC
42422011-01-26 Arnaud Charlet <charlet@adacore.com>
4243
4244 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
4245
237e9384
JJ
42462011-01-26 Jakub Jelinek <jakub@redhat.com>
4247
4248 PR pch/47430
4249 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
4250 after init_c_lex if pch_file is set.
4251
47ea1edf
DK
42522011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
4253
d4dba752 4254 PR c++/43601
47ea1edf
DK
4255 * c.opt (-fkeep-inline-dllexport): New switch.
4256
2aa9c6ae
RG
42572011-01-12 Richard Guenther <rguenther@suse.de>
4258
4259 PR middle-end/32511
4260 * c-common.c (handle_weak_attribute): Warn instead of error
4261 on declaring an inline function weak.
4262
7bd11157
TT
42632011-01-05 Tom Tromey <tromey@redhat.com>
4264
4265 * c-common.h (lvalue_error): Update.
4266 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
4267 not error.
4268
0e66e494 42692010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 4270
b4f588c4
NP
4271 PR objc/47075
4272 * c-objc.h (objc_finish_message_expr): Added argument to
4273 prototype.
4274
f4da8dce
NF
42752010-12-22 Nathan Froyd <froydnj@codesourcery.com>
4276
4277 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
4278 Use prototype_p.
4279
46270f14
NP
42802010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
4281
4282 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 4283 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 4284
4816c593
NF
42852010-12-10 Nathan Froyd <froydnj@codesourcery.com>
4286
4287 * c-common.h (readonly_error): Declare.
4288 * c-common.c (readonly_error): Define.
4289
7a6daeb0
NF
42902010-12-09 Nathan Froyd <froydnj@codesourcery.com>
4291
4292 * c-common.h (invalid_indirection_error): Declare.
4293 * c-common.c (invalid_indirection_error): Define.
4294
892f6119
RG
42952010-12-03 Richard Guenther <rguenther@suse.de>
4296
4297 PR c/46745
4298 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
4299 (pp_c_unary_expression): Likewise.
4300 (pp_c_expression): Likewise.
4301
6c39e757
NP
43022010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
4303
4304 * c-common.h (objc_finish_function): New.
4305 (objc_non_volatilized_type): Removed.
4306 (objc_type_quals_match): Removed.
4307 * stub-objc.c (objc_finish_function): New.
4308 (objc_non_volatilized_type): Removed.
4309 (objc_type_quals_match): Removed.
9faeb493 4310
7c475d11
JM
43112010-11-30 Joseph Myers <joseph@codesourcery.com>
4312
4313 * c-common.h (parse_optimize_options): Declare.
4314 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
4315 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
4316
71f3e391
JM
43172010-11-29 Joseph Myers <joseph@codesourcery.com>
4318
4319 * c-opts.c (check_deps_environment_vars): Use getenv instead of
4320 GET_ENVIRONMENT.
4321 * c-pch.c (O_BINARY): Don't define here.
4322 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
4323
d5fabb58
JM
43242010-11-25 Joseph Myers <joseph@codesourcery.com>
4325
4326 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
4327 targetm.except_unwind_info.
4328
299404a1
JM
43292010-11-23 Joseph Myers <joseph@codesourcery.com>
4330
4331 * c-opts.c (c_common_handle_option): Pass location to
4332 set_struct_debug_option.
4333
c98cd5bf
JM
43342010-11-23 Joseph Myers <joseph@codesourcery.com>
4335
4336 * c-common.c (visibility_options): Move from ../opts.c.
4337 * c-common.h (struct visibility_flags, visibility_options):
4338 Declare here.
4339 * c-opts.c (finish_options): Rename to c_finish_options.
4340 (c_common_init): Update call to finish_options.
4341
a9546771
NP
43422010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
4343
4344 PR objc/34033
4345 * c-lex.c (lex_string): Check that each string in an Objective-C
4346 string concat sequence starts with either one or zero '@', and
4347 that there are no spurious '@' signs at the end.
4348
24a57808
JM
43492010-11-20 Joseph Myers <joseph@codesourcery.com>
4350
4351 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
4352 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
4353 HANDLE_PRAGMA_VISIBILITY.
4354 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
4355 HANDLE_PRAGMA_VISIBILITY): Don't define.
4356 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
4357
a9aa2c3a
NF
43582010-11-20 Nathan Froyd <froydnj@codesourcery.com>
4359
4360 PR c++/16189
4361 PR c++/36888
4362 PR c++/45331
4363 * c-common.h (keyword_begins_type_specifier): Declare.
4364 (keyword_is_storage_class_specifier): Declare.
4365 (keyword_is_type_qualifier): Declare.
4366 * c-common.c (keyword_begins_type_specifier): New function.
4367 (keyword_is_storage_class_specifier): New function.
4368 (keyword_is_type_qualifier): Declare.
4369
5386338c
JM
43702010-11-19 Joseph Myers <joseph@codesourcery.com>
4371
4372 PR c/46547
4373 * c-common.c (in_late_binary_op): Define.
4374 (c_common_truthvalue_conversion): Check in_late_binary_op before
4375 calling c_save_expr.
4376 * c-common.h (in_late_binary_op): Declare.
4377
69ccdddb
JM
43782010-11-19 Joseph Myers <joseph@codesourcery.com>
4379
4380 * c-opts.c (c_common_handle_option): Update calls to
4381 set_struct_debug_option.
4382
6b192a09
NP
43832010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
4384
4385 * c-common.h (objc_declare_protocols): Added additional argument.
4386 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 4387
fb52b50a
NF
43882010-11-18 Nathan Froyd <froydnj@codesourcery.com>
4389
4390 PR c/33193
4391 * c-common.h (build_real_imag_expr): Declare.
4392 * c-semantics.c (build_real_imag_expr): Define.
4393
b37421c6
JM
43942010-11-17 Joseph Myers <joseph@codesourcery.com>
4395
4396 * c-opts.c (c_common_parse_file): Take no arguments.
4397 * c-common.h (c_common_parse_file): Update prototype.
4398
07078664
JJ
43992010-11-16 Jakub Jelinek <jakub@redhat.com>
4400
4401 PR c++/46401
4402 * c-common.c (warning_candidate_p): Don't track non-const calls
4403 or STRING_CSTs.
4404
c6a13190
ILT
44052010-11-15 Ian Lance Taylor <iant@google.com>
4406
4407 * c-lex.c (init_c_lex): Set macro debug callbacks if
4408 flag_dump_go_spec is set.
4409
925e8657
NP
44102010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
4411
4412 * c-common.h (objc_build_incr_expr_for_property_ref): New.
4413 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
4414
bb0a9581
NF
44152010-11-15 Nathan Froyd <froydnj@codesourcery.com>
4416
4417 PR preprocessor/45038
4418 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
4419 dialects.
4420
c5fa0890
JM
44212010-11-12 Joseph Myers <joseph@codesourcery.com>
4422
4423 * c-common.h (c_family_lang_mask): Declare.
4424 * c-opts.c (c_family_lang_mask): Make extern.
4425 * c-pragma.c (handle_pragma_diagnostic): Use
4426 control_warning_option.
4427
a4d8c676
JM
44282010-11-12 Joseph Myers <joseph@codesourcery.com>
4429
4430 * c-common.c (parse_optimize_options): Update call to
4431 decode_options.
4432 * c-common.h (c_common_handle_option): Update prototype.
4433 * c-opts.c (c_common_handle_option): Take location_t parameter and
4434 pass it to other functions.
4435
f954bd2c
JM
44362010-11-11 Joseph Myers <joseph@codesourcery.com>
4437
4438 * c-opts.c (warning_as_error_callback): Remove.
4439 (c_common_initialize_diagnostics): Don't call
4440 register_warning_as_error_callback.
4441 (c_common_handle_option): Handle -Werror=normalized= here.
4442
d8a07487
JM
44432010-11-10 Joseph Myers <joseph@codesourcery.com>
4444
4445 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
4446 in diagnostic.
4447 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
4448 letter.
4449 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
4450 Remove trailing '.' from diagnostics.
4451 * c.opt (Wwrite-strings_: Avoid '`' in help text.
4452
d5478783
JM
44532010-11-10 Joseph Myers <joseph@codesourcery.com>
4454
4455 * c-common.c (parse_optimize_options): Pass global_dc to
4456 decode_options.
4457 * c-opts.c (c_common_handle_option): Pass &global_options to
4458 set_Wstrict_aliasing.
4459 * c.opt (v): Don't mark Common or document here.
4460
91ebb981
IS
44612010-11-06 Iain Sandoe <iains@gcc.gnu.org>
4462
4463 PR target/44981
4464 * c-format.c (format_type): New type gcc_objc_string_format_type.
4465 (valid_stringptr_type_p): New.
4466 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 4467 (check_format_string): Pass expected type, use
91ebb981
IS
4468 valid_stringptr_type_p (), check that the format string types are
4469 consistent with the format specification.
4470 (decode_format_attr): Warn if NSString is used outside objective-c.
4471 (format_types_orig): Add NSString.
4472 (format_name): New.
4473 (format_flags): New.
4474 (check_format_arg): Handle format strings requiring an external parser.
4475 first_target_format_type: New variable.
4476 (handle_format_attribute): Set up first_target_format_type, pass the
4477 expected format arg string type to check_format_string().
4478 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
4479 * stub-objc.c (objc_string_ref_type_p): New.
4480 (objc_check_format_arg): New.
4481
bede2adc
NP
44822010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
4483
9faeb493 4484 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
4485 * c-common.h (objc_build_class_component_ref): New.
4486 * stub-objc.c (objc_build_class_component_ref): New.
4487
9a179d01
NP
44882010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
4489
4490 * c.opt (Wproperty-assign-default): New option.
4491
22d8d616
NP
44922010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
4493
4494 Implemented -fobjc-std=objc1 flag.
4495 * c.opt (fobjc-std=objc1): New option.
4496
2debdb4f
NP
44972010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
4498
4499 Implemented format and noreturn attributes for Objective-C methods.
4500 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
4501 attribute for Objective-C methods.
4502
ec52b111
JM
45032010-10-31 Jason Merrill <jason@redhat.com>
4504
4505 * c-common.c (conversion_warning, warn_for_collisions_1): Use
4506 EXPR_LOC_OR_HERE.
4507
46a88c12
NP
45082010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
4509
4510 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
4511 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
4512 (objc_add_property_declaration): Removed arguments for copies and
4513 ivar.
4514 (objc_build_getter_call): Renamed to
4515 objc_maybe_build_component_ref.
4516 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4517 (objc_is_property_ref): New.
4518 * c-common.c (c_common_reswords): Removed copies and ivar.
4519 * stub-objc.c (objc_add_property_declaration): Removed arguments
4520 for copies and ivar.
4521 (objc_build_getter_call): Renamed to
4522 objc_maybe_build_component_ref.
4523 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4524 (objc_is_property_ref): New.
9faeb493 4525
1e4bf85b
AC
45262010-10-29 Arnaud Charlet <charlet@adacore.com>
4527 Matthew Gingell <gingell@adacore.com>
4528
4529 * c-ada-spec.c (separate_class_package): New function.
4530 (pp_ada_tree_identifier): Prefix references to C++ classes with the
4531 name of their enclosing package.
4532 (print_ada_declaration): Use separate_class_package.
4533
81f0bab2
JM
45342010-10-27 Jason Merrill <jason@redhat.com>
4535
2b08f2c5
JM
4536 * c-common.c (c_common_reswords): Add __is_literal_type.
4537 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
4538
81f0bab2
JM
4539 * c-common.c (check_case_value): Remove special C++ code.
4540
200290f2
NP
45412010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4542
4543 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
4544 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
4545 and RID_LAST_PATTR.
4546 (objc_add_property_declaration): Added additional arguments.
4547 (objc_property_attribute_kind): Removed.
4548 (objc_set_property_attr): Removed.
4549 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
4550 copy and nonatomic.
4551 * stub-objc.c (objc_add_property_declaration): Added additional
4552 arguments.
4553 (objc_set_property_attr): Removed.
9faeb493 4554
f614132b
NP
45552010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4556
4557 * c-common.h (objc_add_property_variable): Renamed to
4558 objc_add_property_declaration. Added location argument.
4559 * stub-objc.c (objc_add_property_variable): Same change.
4560
b8a18805
NP
45612010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
4562
4563 * c-common.h (objc_maybe_printable_name): New.
4564 * stub-objc.c (objc_maybe_printable_name): New.
4565
30cd1c5d
AS
45662010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4567 Andrew Pinski <pinskia@gmail.com>
4568
4569 * c-common.h (c_common_mark_addressable_vec): Declare.
4570 * c-common.c (c_common_mark_addressable_vec): New function.
4571
249a82c4
NP
45722010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
4573
4574 * c-common.h (objc_set_method_type): Removed.
4575 (objc_add_method_declaration): Added boolean argument.
4576 (objc_start_method_definition): Same change.
4577 (objc_build_method_signature): Same change.
4578 * stub-objc.c (objc_set_method_type): Removed.
4579 (objc_add_method_declaration): Added boolean argument.
4580 (objc_start_method_definition): Same change.
4581 (objc_build_method_signature): Same change.
4582
977e30bc
NP
45832010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
4584
4585 * c-common.h (finish_file): Removed.
4586 (objc_write_global_declarations): New.
4587 * c-opts.c (c_common_parse_file): Do not call finish_file.
4588 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 4589
da57d1b9
NP
45902010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4591
4592 Implemented parsing @synthesize and @dynamic for
4593 Objective-C/Objective-C++.
4594 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
4595 (objc_add_synthesize_declaration): New.
4596 (objc_add_dynamic_declaration): New.
4597 * c-common.c (c_common_reswords): Add synthesize and dynamic.
4598 * stub-objc.c (objc_add_synthesize_declaration): New.
4599 (objc_add_dynamic_declaration): New.
9faeb493 4600
0069111f
MM
46012010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
4602
4603 PR target/46041
4604 * c-cppbuiltin.c (mode_has_fma): Move function here from
4605 builtins.c. Don't use the fma optab, instead just use the
4606 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
4607 using -save-temps.
4608
e426b47b
NP
46092010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4610
4611 Merge from 'apple/trunk' branch on FSF servers.
0069111f 4612
e426b47b
NP
4613 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
4614
9faeb493 4615 Radar 4330422
e426b47b
NP
4616 * c-common.h (objc_non_volatilized_type): New declaration
4617 * stub-objc.c (objc_non_volatilized_type): New stub.
4618
90fbfdc3
NP
46192010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
4620
e426b47b 4621 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
4622
4623 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
4624
9faeb493 4625 Radar 4133425
90fbfdc3 4626 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 4627 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 4628
c37d8c30
IS
46292010-10-17 Iain Sandoe <iains@gcc.gnu.org>
4630
4631 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
4632 * c-common.h (enum rid): Add RID_AT_PACKAGE.
4633 (objc_ivar_visibility_kind): New enum.
4634 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 4635 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
4636 visibility enum.
4637
1b1562a5
MM
46382010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
4639
4640 * c-cppbuiltin.c (builtin_define_float_constants): Emit
4641 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
4642 has the appropriate fma builtins.
4643 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
4644
668ea4b1
IS
46452010-10-14 Iain Sandoe <iains@gcc.gnu.org>
4646
1b1562a5 4647 merge from FSF apple 'trunk' branch.
668ea4b1 4648 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 4649
668ea4b1
IS
4650 Radars 4436866, 4505126, 4506903, 4517826
4651 * c-common.c (c_common_resword): Define @property and its attributes.
4652 * c-common.h: Define property attribute enum entries.
4653 (OBJC_IS_PATTR_KEYWORD): New.
4654 (objc_property_attribute_kind): New enum.
4655 Declare objc_set_property_attr (), objc_add_property_variable (),
4656 objc_build_getter_call () and objc_build_setter_call ().
4657 * stub-objc.c (objc_set_property_attr): New stub.
4658 (objc_add_property_variable): Likewise.
4659 (objc_build_getter_call): Likewise.
4660 (objc_build_setter_call) Likewise.
1b1562a5 4661
a1178b30
IS
46622010-10-13 Iain Sandoe <iains@gcc.gnu.org>
4663
1b1562a5 4664 merge from FSF apple 'trunk' branch.
a1178b30
IS
4665 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
4666
4667 Radar 3803157 (method attributes)
4668 * c-common.c (handle_deprecated_attribute): Recognize
4669 objc methods as valid declarations.
4670 * c-common.h: Declare objc_method_decl ().
1b1562a5 4671 * stub-objc.c (objc_method_decl): New stub.
a1178b30 4672
a75bfaa6
JM
46732010-10-08 Joseph Myers <joseph@codesourcery.com>
4674
4675 * c-common.c (parse_optimize_options): Call
4676 decode_cmdline_options_to_array_default_mask before
4677 decode_options. Update arguments to decode_options.
4678 * c-common.h (c_common_init_options_struct): Declare.
4679 * c-opts.c (c_common_init_options_struct): New. Split out from
4680 c_common_init_options.
4681
f05b9d93
NP
46822010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
4683
4684 Implemented fast enumeration for Objective-C.
4685 * c-common.h (objc_finish_foreach_loop): New.
4686 * stub-objc.c (objc_finish_foreach_loop): New.
4687
1ebe4b4f
JM
46882010-10-05 Joseph Myers <joseph@codesourcery.com>
4689
4690 * c-common.h (struct diagnostic_context): Don't declare here.
4691 (c_common_initialize_diagnostics): Declare using
4692 diagnostic_context typedef.
4693 * c-opts.c (c_common_handle_option): Pass global_dc to
4694 handle_generated_option.
4695
d4d24ba4
JM
46962010-10-04 Joseph Myers <joseph@codesourcery.com>
4697
4698 * c-opts.c (c_common_handle_option): Pass &global_options_set to
4699 handle_generated_option.
4700
478a1c5b
ILT
47012010-10-03 Ian Lance Taylor <iant@google.com>
4702
4703 * c.opt (-fplan9-extensions): New option.
4704
82a1c2fe
FXC
47052010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4706
4707 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
4708 Remove.
4709 (c_cpp_builtins): Call functions from cppbuiltin.c instead
4710 of duplicating code.
4711
92902b1b
IS
47122010-09-30 Iain Sandoe <iains@gcc.gnu.org>
4713
4714 * c-common.c: Add two new entries for @optional
4715 and @required keywords.
4716
4717 merge from FSF 'apple/trunk' branch.
4718 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
4719
4720 Radar 4386773
4721 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
4722 objective-c keywords.
4723 (objc_set_method_opt): New declaration.
4724 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 4725
46625112
JM
47262010-09-30 Joseph Myers <joseph@codesourcery.com>
4727
4728 * c-common.c (handle_optimize_attribute): Pass &global_options to
4729 cl_optimization_save and cl_optimization_restore.
4730 * c-opts.c (c_common_handle_option): Pass &global_options to
4731 handle_generated_option.
4732 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
4733 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
4734 &global_options to cl_optimization_restore.
4735
49b91f05
NP
47362010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
4737
4738 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
4739 Objective-C/Objective-C++ keywords.
4740
13ed556f 47412010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 4742
9faeb493
UB
4743 Merge from 'apple/trunk' branch on FSF servers.
4744
a6341d57
NP
4745 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
4746
4747 Radar 4281748
4748 * c-common.h (objc_check_global_decl): New declaration.
4749 * stub-objc.c (objc_check_global_decl): New stub.
4750
f0036cca
JM
47512010-09-29 Joseph Myers <joseph@codesourcery.com>
4752
4753 * c.opt: Don't use VarExists.
4754
e3339d0f
JM
47552010-09-29 Joseph Myers <joseph@codesourcery.com>
4756
4757 * c-common.c (c_cpp_error): Update names of diagnostic_context
4758 members.
4759 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
4760 cl_optimization members.
4761 * c-opts.c (warning_as_error_callback, c_common_handle_option,
4762 sanitize_cpp_opts, finish_options): Update names of cpp_options
4763 members.
4764
1973201f
NP
47652010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
4766
4767 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
4768 (objc_is_reserved_word): Removed.
4769 * c-common.c: Updated comments.
4770 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
4771 objc_is_reserved_word.
4772 * stub-objc.c (objc_is_reserved_word): Removed.
4773
f7e71da5
IS
47742010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4775
9faeb493 4776 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
4777 include attributes.
4778 (objc_start_method_definition): Likewise.
4779 (objc_build_keyword_decl): Likewise.
4780 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
4781 (objc_start_method_definition): Likewise.
4782 (objc_build_keyword_decl): Likewise.
4783
c165dca7
IS
47842010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4785
4786 * c-common.h (objc_start_class_interface): Adjust prototype.
4787 (objc_start_category_interface): Likewise.
4788 (objc_start_protocol): Likewise.
4789 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
4790 (objc_start_class_interface): Likewise.
4791 (objc_start_category_interface): Likewise.
4792
7458026b
ILT
47932010-09-27 Ian Lance Taylor <iant@google.com>
4794
4795 * c-common.c (c_common_attribute_table): Add no_split_stack.
4796 (handle_no_split_stack_attribute): New static function.
4797
b581b85b
NP
47982010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
4799
9faeb493 4800 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
4801
4802 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
4803
9faeb493 4804 Radar 4229905
b581b85b
NP
4805 * c-common.h (objc_have_common_type): New declaration.
4806 * stub-objc.c (objc_have_common_type): New stub.
4807
4808 2005-06-22 Ziemowit Laski <zlaski@apple.com>
4809
4810 Radar 4154928
4811 * c-common.h (objc_common_type): New prototype.
9faeb493 4812 * stub-objc.c (objc_common_type): New stub.
b581b85b 4813
46a4da10
JH
48142010-09-24 Jan Hubicka <jh@suse.cz>
4815
4816 * c-common.c (handle_leaf_attribute): New function.
4817 (struct attribute_spec c_common_att): Add leaf.
4818
e200444e
JM
48192010-09-22 Joseph Myers <joseph@codesourcery.com>
4820
4821 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
4822 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
4823 -dump, -dump=, -imacros, -imacros=, -include, -include=,
4824 -include-barrier, -include-directory, -include-directory=,
4825 -include-directory-after, -include-directory-after=,
4826 -include-prefix, -include-prefix=, -include-with-prefix,
4827 -include-with-prefix=, -include-with-prefix-after,
4828 -include-with-prefix-after=, -include-with-prefix-before,
4829 -include-with-prefix-before=, -no-integrated-cpp,
4830 -no-line-commands, -no-standard-includes, -no-warnings, -output,
4831 -output=, -pedantic, -pedantic-errors, -preprocess,
4832 -print-missing-file-dependencies, -trace-includes, -traditional,
4833 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
4834 -user-dependencies, -verbose, -write-dependencies,
4835 -write-user-dependencies, no-integrated-cpp, traditional): New.
4836
29a80ea6
NP
48372010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
4838
4839 PR objc/23710
ac1fc2fc
NP
4840 * c-common.h (objc_start_method_definition): Return bool instead
4841 of void.
4842 * stub-objc.c (objc_start_method_definition): Return bool instead
4843 of void.
4844
48452010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
4846
4847 PR objc/25965
4848 * c-common.h (objc_get_interface_ivars): New declaration.
4849 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 4850
de621752
ILT
48512010-09-15 Ian Lance Taylor <iant@google.com>
4852
4853 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 4854 messages. Remove period at end of warning message.
de621752 4855
ba885ec5
NS
48562010-09-09 Nathan Sidwell <nathan@codesourcery.com>
4857
4858 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
4859 (handle_alias_attribute): ... here.
4860 (handle_ifunc_attribute): New.
4861
c5ee1358
MM
48622010-09-06 Mark Mitchell <mark@codesourcery.com>
4863
4864 * c-common.h (do_warn_double_promotion): Declare.
4865 * c-common.c (do_warn_double_promotion): Define.
4866
0a0b3574
MM
48672010-09-05 Mark Mitchell <mark@codesourcery.com>
4868
4869 * c.opt (Wdouble-promotion): New.
4870
d1779886
JM
48712010-09-02 Joseph Myers <joseph@codesourcery.com>
4872
4873 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
4874 fvtable-thunks, fxref): Mark no longer supported in help text.
4875
2d2bd949
JM
48762010-09-02 Joseph Myers <joseph@codesourcery.com>
4877
4878 * c.opt (Wimport, fall-virtual, falt-external-templates,
4879 fdefault-inline, fenum-int-equiv, fexternal-templates,
4880 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
4881 fname-mangling-version-, fnew-abi, fnonnull-objects,
4882 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
4883 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
4884 applicable.
4885 (fhandle-exceptions): Mark with Alias and Warn.
4886 * c-opts.c (c_common_handle_option): Don't handle options marked
4887 as ignored.
4888
5de8299c
JM
48892010-09-02 Joseph Myers <joseph@codesourcery.com>
4890
4891 * c.opt (Wcomments, Werror-implicit-function-declaration,
4892 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
4893 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
4894 aliases.
4895 * c-common.c (option_codes): Use OPT_Wcomment instead of
4896 OPT_Wcomments.
4897 * c-opts.c (warning_as_error_callback, c_common_handle_option):
4898 Don't handle options marked as aliases.
4899
0ceb0201
RG
49002010-08-25 Richard Guenther <rguenther@suse.de>
4901
4902 * c-common.c (c_common_get_alias_set): Remove special
4903 handling for pointers.
4904
ac47786e
NF
49052010-08-20 Nathan Froyd <froydnj@codesourcery.com>
4906
4907 * c-common.c: Use FOR_EACH_VEC_ELT.
4908 * c-gimplify.c: Likewise.
4909 * c-pragma.c: Likewise.
4910
c878765b
JM
49112010-08-16 Joseph Myers <joseph@codesourcery.com>
4912
4913 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
4914 RejectDriver.
4915 (MMDX): Change back to MMD. Mark NoDriverArg instead of
4916 RejectDriver.
4917 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
4918 instead of OPT_MDX and OPT_MMDX.
4919
603349bf
JM
49202010-08-16 Joseph Myers <joseph@codesourcery.com>
4921
4922 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
4923
644fa7ac
JM
49242010-08-12 Joseph Myers <joseph@codesourcery.com>
4925
4926 * c.opt (MD, MMD): Change to MDX and MMDX.
4927 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
4928
481e1176
JM
49292010-08-11 Joseph Myers <joseph@codesourcery.com>
4930
4931 * c-opts.c (c_common_handle_option): Call handle_generated_option
4932 instead of handle_option.
4933
ac8dc9f7
NF
49342010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4935
4936 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
4937 (maybe_apply_renaming_pragma): Delete unneeded declarations.
4938
4f8c876d
NF
49392010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4940
4941 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
4942 (pending_redefine_extname): Change type to a VEC.
4943 (add_to_renaming_pragma_list): Update for new type of
4944 pending_redefine_extname.
ac8dc9f7 4945 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 4946
3b0c690e
AC
49472010-08-04 Arnaud Charlet <charlet@adacore.com>
4948
4949 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
4950 visited.
4951 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
4952 decide whether a type has already been declared/seen.
4953 Do not go to the original type.
4954 (dump_nested_types): New parameter forward.
4955 Generate forward declaration if needed and mark type as visited.
4956 (print_ada_declaration): Call dump_nested_types if not already done.
4957 Mark types as visited.
4958
1890bccc
JM
49592010-08-03 Joseph Myers <joseph@codesourcery.com>
4960
4961 * c.opt (-print-pch-checksum): Remove option.
4962 * c-opts.c (c_common_handle_option): Don't handle
4963 OPT_print_pch_checksum.
4964
5f20c657
JM
49652010-07-27 Joseph Myers <joseph@codesourcery.com>
4966
4967 * c-common.h (c_common_handle_option): Update prototype and return
4968 value type.
4969 * c-opts.c (c_common_handle_option): Update prototype and return
4970 value type. Update calls to handle_option and
4971 enable_warning_as_error.
4972
f551f80c
JJ
49732010-07-27 Jakub Jelinek <jakub@redhat.com>
4974
4975 PR c/45079
4976 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
4977
61ff2bdc
JM
49782010-07-27 Joseph Myers <joseph@codesourcery.com>
4979
4980 * c-common.h (c_common_missing_argument): Remove.
4981 * c-opts.c (c_common_missing_argument): Remove.
4982 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
4983 idirafter, imacros, include, isysroot, isystem, iquote): Add
4984 MissingArgError.
4985 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
4986
7a9bf9a4
JM
49872010-07-27 Joseph Myers <joseph@codesourcery.com>
4988
4989 * c-common.h (c_common_option_lang_mask,
4990 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
4991 New.
4992 (c_common_init_options): Update prototype.
4993 * c-opts.c (c_common_option_lang_mask): New.
4994 (c_common_initialize_diagnostics): Split out of
4995 c_common_init_options.
4996 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
4997 New.
4998 (c_common_init_options): Update prototype. Use decoded options in
4999 search for -lang-asm.
5000
910ad8de
NF
50012010-07-15 Nathan Froyd <froydnj@codesourcery.com>
5002
5003 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
5004 * c-format.c: Likewise.
5005
718f9c0f
MLI
50062010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
5007
5008 * c-common.h: Include diagnostic-core.h. Error if already
5009 included.
5010 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
5011
4d451982
MLI
50122010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
5013
adfac8df 5014 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
5015 Do not include expr.h
5016 (vector_mode_valid_p): Move here.
5017
119fe915
SB
50182010-06-21 DJ Delorie <dj@redhat.com>
5019
5020 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
5021 allow these pragmas anywhere.
5022
50232010-06-14 Jakub Jelinek <jakub@redhat.com>
5024
5025 PR bootstrap/44509
5026 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
5027 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
5028 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
5029 ggc_strdup instead of xstrdup.
5030
50312010-06-10 Jakub Jelinek <jakub@redhat.com>
5032
5033 * c-cppbuiltin.c: Include cpp-id-data.h.
5034 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
5035 (lazy_hex_fp_value): New function.
5036 (builtin_define_with_hex_fp_value): Provide definitions lazily.
5037
6662d794
MLI
50382010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5039
5040 * c-gimplify.c: Do not include tree-flow.h
5041
38f8b050
JR
50422010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
5043
5044 PR other/44034
5045 * c-common.c: Rename targetm member:
5046 targetm.enum_va_list -> targetm.enum_va_list_p
5047
9589f23e
AS
50482010-06-28 Anatoly Sokolov <aesok@post.ru>
5049
5050 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
5051
3b06d379
SB
50522010-06-28 Steven Bosscher <steven@gcc.gnu.org>
5053
5054 * c-cppbuiltin.c: Do not include except.h.
5055
d166d4c3
AK
50562010-06-24 Andi Kleen <ak@linux.intel.com>
5057
9faeb493
UB
5058 * c-common.c (warn_for_omitted_condop): New.
5059 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 5060
70cb8be6
JM
50612010-06-21 Joseph Myers <joseph@codesourcery.com>
5062
5063 * c.opt (lang-objc): Remove.
5064 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
5065
a4c97feb
JR
50662010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
5067
5068 * c-opts.c: Include "tm_p.h".
5069
6e2f1956
JM
50702010-06-20 Joseph Myers <joseph@codesourcery.com>
5071
5072 * c-common.c (parse_optimize_options): Update call to
5073 decode_options.
5074
bc87224e
NF
50752010-06-18 Nathan Froyd <froydnj@codesourcery.com>
5076
5077 * c-common.c (record_types_used_by_current_var_decl): Adjust for
5078 new type of types_used_by_cur_var_decl.
5079
b49cf425
JR
50802010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
5081
5082 PR bootstrap/44512
5083 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
5084 for C++ standard compliance.
5085
59f9c2ed
JM
50862010-06-16 Jason Merrill <jason@redhat.com>
5087
5088 * c.opt: Add -Wnoexcept.
5089
33766b66
RG
50902010-06-16 Richard Guenther <rguenther@suse.de>
5091
5092 PR c/44555
5093 * c-common.c (c_common_truthvalue_conversion): Remove
5094 premature and wrong optimization concering ADDR_EXPRs.
5095
eff7e30c
AC
50962010-06-15 Arnaud Charlet <charlet@adacore.com>
5097
5098 * c-ada-spec.c (dump_sloc): Remove column info.
5099 (is_simple_enum): New function.
5100 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
5101 enum types when relevant.
5102
6312e84d
MLI
51032010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
5104
9faeb493 5105 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
5106 location.
5107
1cb42611
JM
51082010-06-10 Joseph Myers <joseph@codesourcery.com>
5109
5110 * c-opts.c (c_common_handle_option): Don't handle
5111 OPT_fshow_column.
5112
a9429e29
LB
51132010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5114
5115 * c-pragma.c (push_alignment): Use typed GC allocation.
5116 (handle_pragma_push_options): Likewise.
5117
5118 * c-common.c (parse_optimize_options): Likewise.
5119
5120 * c-common.h (struct sorted_fields_type): Add variable_size GTY
5121 option.
5122
5498f011
JM
51232010-06-07 Joseph Myers <joseph@codesourcery.com>
5124
5125 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
5126 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
5127 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
5128 flag_signed_bitfields, warn_strict_null_sentinel,
5129 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
5130 flag_gen_declaration, flag_no_gnu_keywords,
5131 flag_implement_inlines, flag_implicit_templates,
5132 flag_implicit_inline_templates, flag_optional_diags,
5133 flag_elide_constructors, flag_default_inline, flag_rtti,
5134 flag_conserve_space, flag_access_control, flag_check_new,
5135 flag_new_for_scope, flag_weak, flag_working_directory,
5136 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
5137 flag_enforce_eh_specs, flag_threadsafe_statics,
5138 flag_pretty_templates): Remove.
5139 * c-common.h (flag_preprocess_only, flag_nil_receivers,
5140 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
5141 flag_replace_objc_classes, flag_undef, flag_no_builtin,
5142 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
5143 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
5144 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
5145 flag_no_gnu_keywords, flag_implement_inlines,
5146 flag_implicit_templates, flag_implicit_inline_templates,
5147 flag_optional_diags, flag_elide_constructors, flag_default_inline,
5148 flag_rtti, flag_conserve_space, flag_access_control,
5149 flag_check_new, flag_new_for_scope, flag_weak,
5150 flag_working_directory, flag_use_cxa_atexit,
5151 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
5152 flag_threadsafe_statics, flag_pretty_templates,
5153 warn_strict_null_sentinel): Remove.
5154 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
5155 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
5156 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
5157 fimplicit-inline-templates, fimplicit-templates,
5158 flax-vector-conversions, fms-extensions, fnil-receivers,
5159 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
5160 frtti, fshort-double, fshort-enums, fshort-wchar,
5161 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
5162 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
5163 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
5164 gen-decls, undef): Use Var.
5165 (fdefault-inline, foptional-diags): Document as doing nothing.
5166 * c-opts.c (c_common_handle_option): Remove cases for options now
5167 using Var. Mark ignored options as such.
5168
39dabefd
SB
51692010-06-05 Steven Bosscher <steven@gcc.gnu.org>
5170
9faeb493 5171 * c-common.c: Moved to here from parent directory.
39dabefd
SB
5172 * c-common.def: Likewise.
5173 * c-common.h: Likewise.
5174 * c-cppbuiltin.c: Likewise.
5175 * c-dump.c: Likewise.
5176 * c-format.c: Likewise.
5177 * c-format.h : Likewise.
5178 * c-gimplify.c: Likewise.
5179 * c-lex.c: Likewise.
5180 * c-omp.c: Likewise.
5181 * c.opt: Likewise.
5182 * c-opts.c: Likewise.
5183 * c-pch.c: Likewise.
5184 * c-ppoutput.c: Likewise.
5185 * c-pragma.c: Likewise.
5186 * c-pragma.h: Likewise.
5187 * c-pretty-print.c: Likewise.
5188 * c-pretty-print.h: Likewise.
5189 * c-semantics.c: Likewise.
5190 * stub-objc.c: Likewise.
5191
5192 * c-common.c: Include gt-c-family-c-common.h.
5193 * c-pragma.c: Include gt-c-family-c-pragma.h.
5194\f
5624e564 5195Copyright (C) 2010-2015 Free Software Foundation, Inc.
39dabefd
SB
5196
5197Copying and distribution of this file, with or without modification,
5198are permitted in any medium without royalty provided the copyright
5199notice and this notice are preserved.
This page took 1.673735 seconds and 5 git commands to generate.