]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
* gcc.target/i386/pr66648.c: Move to correct place.
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
173864e8
MP
12015-07-30 Marek Polacek <polacek@redhat.com>
2
3 * c-common.c (warn_tautological_cmp): Bail for float types.
4
f2afe6dd
MP
52015-07-27 Marek Polacek <polacek@redhat.com>
6
7 PR bootstrap/67030
8 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
9
05b28fd6
MP
102015-07-27 Marek Polacek <polacek@redhat.com>
11
12 PR c++/66555
13 PR c/54979
14 * c-common.c (find_array_ref_with_const_idx_r): New function.
15 (warn_tautological_cmp): New function.
16 * c-common.h (warn_tautological_cmp): Declare.
17 * c.opt (Wtautological-compare): New option.
18
5a5062b8
MP
192015-07-23 Marek Polacek <polacek@redhat.com>
20
21 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
22 (ubsan_instrument_shift): Likewise.
23
dc891fe7
MP
242015-07-23 Marek Polacek <polacek@redhat.com>
25
26 PR sanitizer/66908
27 * c-ubsan.c: Include gimplify.h.
28 (ubsan_instrument_division): Unshare OP0 and OP1.
29 (ubsan_instrument_shift): Likewise.
30
451b5e48
MP
312015-07-20 Marek Polacek <polacek@redhat.com>
32 Richard Sandiford <richard.sandiford@arm.com>
33
34 PR c++/55095
35 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
36 Use EXPR_LOC_OR_LOC.
37 (maybe_warn_shift_overflow): New function.
38 * c-common.h (maybe_warn_shift_overflow): Declare.
39 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
40 * c.opt (Wshift-overflow): New option.
41
fb0b2914
ML
422015-07-16 Martin Liska <mliska@suse.cz>
43
44 * c-format.c (static void check_format_info_main): Use
45 object_allocator instead of pool_allocator.
46 (check_format_arg): Likewise.
47 (check_format_info_main): Likewise.
48
903f5c23
AM
492015-07-15 Andrew MacLeod <amacleod@redhat.com>
50
51 * c-opts.c: Remove multiline #include comment.
52
026c3cfd
AH
532015-07-12 Aldy Hernandez <aldyh@redhat.com>
54
55 * c-common.c: Fix double word typos.
56
bb49ee66
EB
572015-07-10 Eric Botcazou <ebotcazou@adacore.com>
58
59 * c-ada-spec.h (cpp_operation): Revert latest change.
60 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
61 constructors and destructors.
62
1916bcb5
AM
632015-07-09 Andrew MacLeod <amacleod@redhat.com>
64
65 * c-common.h: Adjust includes for flags.h changes.
66 * stub-objc.c: Likewise.
026c3cfd 67
a9dcd529
EB
682015-07-08 Eric Botcazou <ebotcazou@adacore.com>
69
70 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
71 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
72
b03b462f
JJ
732015-07-08 Jakub Jelinek <jakub@redhat.com>
74
75 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
76 are to be removed, return NULL rather than original clauses list.
77
c7131fb2
AM
782015-07-07 Andrew MacLeod <amacleod@redhat.com>
79
80 * array-notation-common.c: Adjust includes.
81 * c-ada-spec.c: Likewise.
82 * c-cilkplus.c: Likewise.
83 * c-common.h: Likewise.
84 * c-cppbuiltin.c: Likewise.
85 * c-dump.c: Likewise.
86 * c-format.c: Likewise.
87 * c-gimplify.c: Likewise.
88 * c-indentation.c: Likewise.
89 * c-lex.c: Likewise.
90 * c-omp.c: Likewise.
91 * c-opts.c: Likewise.
92 * c-pch.c: Likewise.
93 * c-ppoutput.c: Likewise.
94 * c-pragma.c: Likewise.
95 * c-pretty-print.c: Likewise.
96 * c-semantics.c: Likewise.
97 * c-ubsan.c: Likewise.
98 * cilk.c: Likewise.
99 * stub-objc.c: Likewise.
100
2a7fb83f
EB
1012015-07-07 Eric Botcazou <ebotcazou@adacore.com>
102
103 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
104 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
105
a03c9bf1
JM
1062015-07-01 Jason Merrill <jason@redhat.com>
107
36a85135
JM
108 * c-common.h (D_CXX11): Rename from D_CXX0X.
109 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
110 * c-common.c: Adjust.
111
e7fa68d5
JM
112 * c-opts.c (c_common_post_options): Default to C++14.
113
a03c9bf1
JM
114 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
115
fe95b036
ESR
1162015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
117
118 Implement N4197 - Adding u8 character literals
a64be36b
EB
119 * c-family/c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
120 CPP_CHAR.
121 * c-family/c-common.c (c_parse_error): Print CPP_UTF8CHAR and
122 CPP_UTF8CHAR_USERDEF tokens.
123 * c-family/c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
124 and CPP_UTF8CHAR tokens.
125 (lex_charconst): Treat CPP_UTF8CHAR token.
fe95b036 126
da2e71c9
MLI
1272015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
128
129 PR fortran/66605
130 * c-common.c (do_warn_unused_parameter): Move here.
131 * c-common.h (do_warn_unused_parameter): Declare.
132
b155cfd9
MP
1332015-06-29 Marek Polacek <polacek@redhat.com>
134
135 PR c/66322
136 * c-common.c (check_case_bounds): Add bool * parameter. Set
137 OUTSIDE_RANGE_P.
138 (c_add_case_label): Add bool * parameter. Pass it down to
139 check_case_bounds.
140 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
141 warning here.
142 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
143 declarations.
144
31521951
MP
1452015-06-27 Marek Polacek <polacek@redhat.com>
146
147 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
148 or VECTOR_INTEGER_TYPE_P throughout.
149 * c-gimplify.c: Likewise.
150
22d03525
MP
1512015-06-26 Marek Polacek <polacek@redhat.com>
152
153 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
154 * c-common.c (c_fully_fold_internal): Likewise.
155 (c_alignof_expr): Likewise.
156 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
157 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
158 * cilk.c (create_parm_list): Likewise.
159
af05e6e5
MP
1602015-06-26 Marek Polacek <polacek@redhat.com>
161
162 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
163
f0889939
AM
1642015-06-25 Andrew MacLeod <amacleod@redhat.com>
165
166 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
167 * c-gimplify.c: Likewise.
168 * c-pragma.c: Likewise.
169 * c-ubsan.c: Likewise.
170 * cilk.c: Likewise.
171
ca752f39
RS
1722015-06-25 Richard Sandiford <richard.sandiford@arm.com>
173
174 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
175 ggc_hasher.
176
16a16ec7
AM
1772015-06-25 Andrew MacLeod <amacleod@redhat.com>
178
179 * cilk.c: Move calls.h after tm.h in the include chain.
180
0ae9bd27
MP
1812015-06-25 Marek Polacek <polacek@redhat.com>
182
183 * array-notation-common.c: Use VAR_P throughout.
184 * c-ada-spec.c: Likewise.
185 * c-common.c: Likewise.
186 * c-format.c: Likewise.
187 * c-gimplify.c: Likewise.
188 * c-omp.c: Likewise.
189 * c-pragma.c: Likewise.
190 * c-pretty-print.c: Likewise.
191 * cilk.c: Likewise.
192
62f9079a
MP
1932015-06-25 Marek Polacek <polacek@redhat.com>
194
195 * cilk.c (extract_free_variables): Use is_global_var.
196
0fa16060
RS
1972015-06-23 Richard Sandiford <richard.sandiford@arm.com>
198
199 * c-common.c: Don't include target-def.h.
200
a68ae2e1
MP
2012015-06-23 Marek Polacek <polacek@redhat.com>
202
203 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
204 when comparing INTEGER_CSTs.
205
c6a2f2d9
PMR
2062015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
207
208 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
209 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
210 (dump_ada_template): Skip partially specialized types.
211
6b4db501
MM
2122015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
213
214 * c-common.c (scalar_to_vector): Use std::swap instead of manually
215 swapping.
216
abb226c9
AM
2172015-06-17 Andrew MacLeod <amacleod@redhat.com>
218
219 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
220 * c-ada-spec.c: Likewise.
221 * c-cilkplus.c: Likewise.
222 * c-common.c: Likewise.
223 * c-common.h: Likewise.
224 * c-cppbuiltin.c: Likewise.
225 * c-dump.c: Likewise.
226 * c-format.c: Likewise.
227 * c-gimplify.c: Likewise.
228 * c-indentation.c: Likewise.
229 * c-lex.c: Likewise.
230 * c-omp.c: Likewise.
231 * c-opts.c: Likewise.
232 * c-pch.c: Likewise.
233 * c-ppoutput.c: Likewise.
234 * c-pragma.c: Likewise.
235 * c-pretty-print.c: Likewise.
236 * c-semantics.c: Likewise.
237 * c-ubsan.c: Likewise.
238 * cilk.c: Likewise.
239 * stub-objc.c: Likewise.
240
076fecad
PP
2412015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
242
243 PR c++/65168
244 * c-common.c (c_common_truthvalue_conversion): Warn when
245 converting an address of a reference to a truth value.
246
13fdf2e2
AM
2472015-06-08 Andrew MacLeod <amacleod@redhat.com>
248
249 * array-notation-common.c : Adjust include files.
250 * c-ada-spec.c : Likewise.
251 * c-cilkplus.c : Likewise.
252 * c-common.c : Likewise.
253 * c-common.h : Likewise.
254 * c-cppbuiltin.c : Likewise.
255 * c-dump.c : Likewise.
256 * c-format.c : Likewise.
257 * c-gimplify.c : Likewise.
258 * c-indentation.c : Likewise.
259 * c-lex.c : Likewise.
260 * c-omp.c : Likewise.
261 * c-opts.c : Likewise.
262 * c-pch.c : Likewise.
263 * c-ppoutput.c : Likewise.
264 * c-pragma.c : Likewise.
265 * c-pretty-print.c : Likewise.
266 * c-semantics.c : Likewise.
267 * c-ubsan.c : Likewise.
268 * cilk.c : Likewise.
269 * stub-objc.c : Likewise.
270
a1661b90
MP
2712015-06-08 Marek Polacek <polacek@redhat.com>
272
273 PR c/66415
274 * c-format.c (location_from_offset): Return LOC if LINE is null.
275
d7438551
AH
2762015-06-05 Aldy Hernandez <aldyh@redhat.com>
277
278 * c-common.h (c_parse_final_cleanups): New prototype.
279 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
280
ecb9f223
AM
2812015-06-04 Andrew MacLeod <amacleod@redhat.com>
282
283 * array-notation-common.c: Adjust includes for restructured coretypes.h.
284 * c-ada-spec.c: Likewise.
285 * c-cilkplus.c: Likewise.
286 * c-common.c: Likewise.
287 * c-common.h: Likewise.
288 * c-cppbuiltin.c: Likewise.
289 * c-dump.c: Likewise.
290 * c-format.c: Likewise.
291 * c-gimplify.c: Likewise.
292 * c-indentation.c: Likewise.
293 * c-lex.c: Likewise.
294 * c-omp.c: Likewise.
295 * c-opts.c: Likewise.
296 * c-pch.c: Likewise.
297 * c-ppoutput.c: Likewise.
298 * c-pragma.c: Likewise.
299 * c-pretty-print.c: Likewise.
300 * c-semantics.c: Likewise.
301 * c-ubsan.c: Likewise.
302 * cilk.c: Likewise.
303 * stub-objc.c: Likewise.
304
6ac48155
DM
3052015-06-02 David Malcolm <dmalcolm@redhat.com>
306
307 PR c/66220:
308 * c-indentation.c (should_warn_for_misleading_indentation): Use
309 expand_location rather than expand_location_to_spelling_point.
310 Don't warn if the guarding statement is more indented than the
311 next/body stmts.
312
773ce42e
DM
3132015-06-02 David Malcolm <dmalcolm@redhat.com>
314
315 * c-indentation.c (warn_for_misleading_indentation): Bail out
316 immediately if -Wmisleading-indentation isn't enabled.
317
4fef8379
ML
3182015-06-01 Martin Liska <mliska@suse.cz>
319
320 * c-format.c (check_format_arg):Use new type-based pool allocator.
321 (check_format_info_main) Likewise.
322
1edfb384
EB
3232015-05-31 Eric Botcazou <ebotcazou@adacore.com>
324
325 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
326 (has_nontrivial_methods): Likewise.
327
9677ef52
MP
3282015-05-25 Marek Polacek <polacek@redhat.com>
329
330 * c-ubsan.c (ubsan_instrument_shift): Use type0.
331
fd5c817a
MP
3322015-05-22 Marek Polacek <polacek@redhat.com>
333
334 PR c/47043
335 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
336
a2f45fe6 3372015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
581edfa3
TS
338
339 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
340 STACK_GROWS_DOWNWARD.
341
a2f45fe6 3422015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
62f9f30b
TS
343
344 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
345 STACK_GROWS_DOWNWARD rather than if it is defined.
346
0fee2ac2
MLI
3472015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
348
349 PR c/52952
350 * c-format.c (location_column_from_byte_offset): New.
351 (location_from_offset): New.
352 (struct format_wanted_type): Add offset_loc field.
353 (check_format_info): Move handling of location for extra arguments
354 closer to the point of warning.
355 (check_format_info_main): Pass the result of location_from_offset
356 to warning_at.
357 (format_type_warning): Pass the result of location_from_offset
358 to warning_at.
359
cf4ef6f7
MP
3602015-05-20 Marek Polacek <polacek@redhat.com>
361
362 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
363
3a65ee74
MP
3642015-05-20 Marek Polacek <polacek@redhat.com>
365
366 * c-ada-spec.c (dump_sloc): Use DECL_P.
367
21b634ae
MP
3682015-05-20 Marek Polacek <polacek@redhat.com>
369
370 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
371 * c-common.c: Likewise.
372
0e50b624
DM
3732015-05-19 David Malcolm <dmalcolm@redhat.com>
374
375 * c-common.h (fe_file_change): Strengthen param from
376 const line_map * to const line_map_ordinary *.
377 (pp_file_change): Likewise.
378 * c-lex.c (fe_file_change): Likewise.
379 (cb_define): Use linemap_check_ordinary when invoking
380 SOURCE_LINE.
381 (cb_undef): Likewise.
382 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
383 invoking cb_file_change.
384 (c_finish_options): Likewise.
385 (push_command_line_include): Likewise.
386 (cb_file_change): Strengthen param "new_map" from
387 const line_map * to const line_map_ordinary *.
388 * c-ppoutput.c (cb_define): Likewise for local "map".
389 (pp_file_change): Likewise for param "map" and local "from".
390
fab27f52
MM
3912015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
392
393 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
394
2fe1d762
TV
3952015-05-18 Tom de Vries <tom@codesourcery.com>
396
397 * c-common.c (build_va_arg_1): New function.
398 (build_va_arg): Add address operator to va_list operand if necessary.
399
7a37fa90
MM
4002015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
401
402 PR c/48956
403 * c-common.c (int_safely_convertible_to_real_p): Define.
404 (unsafe_conversion_p): Check conversions involving complex types.
405 (conversion_warning): Add new warning message for conversions which
406 discard imaginary component.
407 * c-common.h: (enum conversion_safety): Add new enumerator for such
408 conversions.
409
3aa3c9fc
MP
4102015-05-14 Marek Polacek <polacek@redhat.com>
411
412 PR c/66066
413 PR c/66127
414 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
415 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
416 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
417 use it. If FOR_INT_CONST, require that all evaluated operands be
418 INTEGER_CSTs.
419
c3388e62
DM
4202015-05-12 David Malcolm <dmalcolm@redhat.com>
421
422 * c-common.h (warn_for_misleading_indentation): New prototype.
423 * c-indentation.c: New file.
424 * c.opt (Wmisleading-indentation): New option.
425
c7b38fd5
TV
4262015-05-12 Tom de Vries <tom@codesourcery.com>
427
428 PR tree-optimization/66010
429 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
430
381bf11e
JM
4312015-05-09 Jason Merrill <jason@redhat.com>
432
edff0c06
JM
433 * c-opts.c (c_common_post_options): Also clear
434 cpp_opts->cpp_warn_cxx11_compat.
435
129211bc
JM
436 * c-common.h (enum cxx_dialect): Add cxx_unset.
437 * c-common.c (cxx_dialect): Initialize to cxx_unset.
438 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
439
381bf11e
JM
440 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
441 (std=gnu++0x): Mark as Undocumented.
442 (std=gnu++1y): Add deprecated message.
443
fe191308
JM
4442015-05-08 Jason Merrill <jason@redhat.com>
445
765189ff
JM
446 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
447 * c-opts.c: Adjust.
448
fe191308
JM
449 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
450
755e528f
MP
4512015-05-08 Marek Polacek <polacek@redhat.com>
452
453 PR c/64918
454 * c.opt (Woverride-init-side-effects): New option.
455
0173bd2a
MP
4562015-05-07 Marek Polacek <polacek@redhat.com>
457
458 PR c/65179
459 * c-common.c (c_fully_fold_internal): Warn when left shifting a
460 negative value.
461 * c.opt (Wshift-negative-value): New option.
462 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
463 when -Wextra and C99/C++11 mode.
464
e0f0d3b9
MP
4652015-05-07 Marek Polacek <polacek@redhat.com>
466 Martin Uecker <uecker@eecs.berkeley.edu>
467
468 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
469 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
470
8243e2a9
JM
4712015-05-05 Jason Merrill <jason@redhat.com>
472
473 * c.opt (Wterminate): New.
474
577cd070
MP
4752015-04-30 Marek Polacek <polacek@redhat.com>
476
477 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
478 require that the non-constant be of a boolean type.
479
0373796b
JT
4802015-04-29 Josh Triplett <josh@joshtriplett.org>
481
e0f0d3b9
MP
482 * c-common.c (handle_section_attribute): Refactor to reduce
483 nesting and distinguish between error cases.
0373796b 484
716c0ba6
MP
4852015-04-29 Marek Polacek <polacek@redhat.com>
486
487 PR c/64610
488 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
489 with 0/1.
490
8848828b
JJ
4912015-04-29 Jakub Jelinek <jakub@redhat.com>
492
493 * c-common.h (omp_clause_mask): Unconditionally define as a class.
494 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
495 HOST_BITS_PER_WIDE_INT.
496
ecd0e562
TV
4972015-04-28 Tom de Vries <tom@codesourcery.com>
498
499 PR tree-optimization/65887
500 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
501
2a877204 5022015-04-28 Eric Botcazou <ebotcazou@adacore.com>
e0f0d3b9 503 Pierre-Marie de Rodat <derodat@adacore.com>
2a877204
EB
504
505 * c-ada-spec.c (in_function): Delete.
506 (dump_generic_ada_node): Do not change in_function and remove the
507 redundant code dealing with it.
508 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
509 (print_ada_methods): Output the static member functions in a nested
510 package after the regular methods as well as associated renamings.
511
4853031e
MP
5122015-04-24 Marek Polacek <polacek@redhat.com>
513
514 PR c/65830
515 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
516 and OPT_Wshift_count_overflow.
517
8c2b7f79
MP
518 PR c/63357
519 * c-common.c (warn_logical_operator): Warn if the operands have the
520 same expressions.
521
b8787813
MP
5222015-04-24 Marek Polacek <polacek@redhat.com>
523
524 PR c/61534
525 * c-common.c (warn_logical_operator): Bail if either operand comes
526 from a macro expansion.
527
8fba1830
BRF
5282015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
529
530 PR target/55143
531 * c-common.c (c_default_pointer_mode): Add definition.
532 * c-common.h (c_default_pointer_mode): Add declaration.
533
17958621
JJ
5342015-03-11 Jakub Jelinek <jakub@redhat.com>
535
536 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
537 on record_builtin_type argument.
538
7ccb1a11
JJ
5392015-03-10 Jakub Jelinek <jakub@redhat.com>
540
541 PR c/65120
542 * c-common.c (warn_logical_not_parentheses): Don't warn for
543 !x == 0 or !x != 0.
544
04fd785e
MP
5452015-03-07 Marek Polacek <polacek@redhat.com>
546
547 PR sanitizer/65280
548 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
549 before trying to figure out whether we have a flexible array member.
550
a4e26206
EB
5512015-03-06 Eric Botcazou <ebotcazou@adacore.com>
552 Jonathan Wakely <jwakely.gcc@gmail.com>
553
554 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
555
0d2489f4
EB
5562015-03-05 Eric Botcazou <ebotcazou@adacore.com>
557
558 PR ada/65319
559 * c-ada-spec.c (print_destructor): Remove obsolete code.
560
83ed54d7
EB
5612015-03-01 Eric Botcazou <ebotcazou@adacore.com>
562
563 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
564 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
565 DECL_TEMPLATE_RESULT emulations.
566 (dump_ada_template)): Add guard for TYPE_METHODS.
567
7631f0e2
MP
5682015-02-27 Marek Polacek <polacek@redhat.com>
569
570 PR c/65040
571 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
572
d1783ae5
KT
5732015-02-27 Kai Tietz <ktietz@redhat.com>
574
575 PR c/35330
576 * c-pragma.c (handle_pragma_weak): Do not try to create
577 weak/alias of declarations not being function, or variable
578 declarations.
579
56a9f6bc
TS
5802015-02-24 Thomas Schwinge <thomas@codesourcery.com>
581
582 PR libgomp/64625
583 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
584 Remove macros.
585 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
586
3d5cb23d
MP
5872015-02-16 Marek Polacek <polacek@redhat.com>
588
589 PR c/65066
590 * c-format.c (check_format_types): Handle null param.
591
fa008882
MP
5922015-02-13 Marek Polacek <polacek@redhat.com>
593
594 PR c/65040
595 * c-format.c (check_format_types): Don't warn about different
596 signedness if the original value is in the range of WANTED_TYPE.
597
785f21af
JM
5982015-02-12 Jason Merrill <jason@redhat.com>
599
600 PR c++/64956
601 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
602 to the current highest version.
603 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
604
4886ec8e
JJ
6052015-02-04 Jakub Jelinek <jakub@redhat.com>
606
607 PR c/64824
608 PR c/64868
609 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
610 instead of RDIV_EXPR. Use build_binary_op instead of
611 build2_loc.
612
40fecdd6
JM
6132015-01-30 Joseph Myers <joseph@codesourcery.com>
614
615 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
616 to pass input_location as first argument.
617
a0c88d06
TV
6182015-01-23 Tom de Vries <tom@codesourcery.com>
619
620 PR libgomp/64672
621 * c.opt (fopenacc): Mark as LTO option.
622
1506ae0e
TV
6232015-01-23 Tom de Vries <tom@codesourcery.com>
624
625 PR libgomp/64707
626 * c.opt (fopenmp): Mark as LTO option.
627
31be63ab
JJ
6282015-01-21 Jakub Jelinek <jakub@redhat.com>
629
630 PR c/63307
631 * cilk.c (fill_decls_vec): Only put decls into vector v.
632 (compare_decls): Fix up formatting.
633
6342015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
635
636 PR c/63307
637 * cilk.c: Include vec.h.
638 (struct cilk_decls): New structure.
639 (wrapper_parm_cb): Split this function to...
640 (fill_decls_vec): ...this...
641 (create_parm_list): ...and this.
642 (compare_decls): New function.
643 (for_local_cb): Remove.
644 (wrapper_local_cb): Ditto.
645 (build_wrapper_type): For now first traverse and fill vector of
646 declarations then sort it and then deal with sorted vector.
647 (cilk_outline): Ditto.
648 (declare_one_free_variable): Ditto.
649
6875457f
JM
6502015-01-21 Jason Merrill <jason@redhat.com>
651
652 PR c++/64629
653 * c-format.c (check_format_arg): Call decl_constant_value.
654
185c9e56
ML
6552015-01-19 Martin Liska <mliska@suse.cz>
656
657 * c-common.c (handle_noicf_attribute): New function.
658
41dbbb37
TS
6592015-01-15 Thomas Schwinge <thomas@codesourcery.com>
660 Bernd Schmidt <bernds@codesourcery.com>
661 James Norris <jnorris@codesourcery.com>
662 Cesar Philippidis <cesar@codesourcery.com>
663 Ilmir Usmanov <i.usmanov@samsung.com>
664 Jakub Jelinek <jakub@redhat.com>
665
666 * c.opt (fopenacc): New option.
667 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
668 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
669 New macros.
670 * c-common.h (c_finish_oacc_wait): New prototype.
671 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
672 (c_finish_oacc_wait): New function.
673 * c-pragma.c (oacc_pragmas): New variable.
674 (c_pp_lookup_pragma, init_pragma): Handle it.
675 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
676 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
677 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
678 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
679 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
680 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
681 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
682 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
683 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
684 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
685 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
686 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
687 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
688 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
689 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
690 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
691 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
692 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
693 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
694 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
695 PRAGMA_OACC_CLAUSE_WORKER.
696
5434dc07
MD
6972015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
698
699 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
700 for the new option fstack-protector_explicit.
701 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
702 (handle_stack_protect_attribute): New function.
703
de1b5c17
MU
7042015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
705
706 * c.opt: New option -Warray-bounds=.
707
adfac8df
JJ
7082015-01-09 Michael Collison <michael.collison@linaro.org>
709
710 * array-notation-common.c: Include hash-set.h, machmode.h,
711 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
712 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
713 * c-ada-spec.c: Ditto.
714 * c-cilkplus.c: Ditto.
715 * c-common.c: Include input.h due to flattening of tree.h.
716 Define macro GCC_C_COMMON_C.
717 * c-common.h: Flatten tree.h header files into c-common.h.
718 Remove include of tree-core.h.
719 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
720 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
721 fold-const.h, wide-int.h, and inchash.h due to
722 flattening of tree.h.
723 * c-dump.c: Ditto.
724 * c-format.c: Flatten tree.h header files into c-common.h.
725 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
726 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
727 fold-const.h, wide-int.h, and inchash.h due to
728 flattening of tree.h.
729 * c-dump.c: Include hash-set.h, machmode.h,
730 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
731 fold-const.h, wide-int.h, and inchash.h due to
732 flattening of tree.h.
733 * c-format.c: Include hash-set.h, machmode.h,
734 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
735 fold-const.h, wide-int.h, inchash.h and real.h due to
736 flattening of tree.h.
737 * c-gimplify.c: Include hash-set.h, machmode.h,
738 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
739 fold-const.h, wide-int.h, and inchash.h due to
740 flattening of tree.h.
741 * cilk.c: Ditto.
742 * c-lex.c: Ditto.
743 * c-omp.c: Ditto.
744 * c-opts.c: Ditto.
745 * c-pch.c: Ditto.
746 * c-ppoutput.c: Ditto.
747 * c-pragma.c: Ditto.
748 * c-pretty-print.c: Ditto.
749 * c-semantics.c: Ditto.
750 * c-ubsan.c: Ditto.
751 * stub-objc.c: Ditto.
752
f5481fc4
JM
7532015-01-08 Jason Merrill <jason@redhat.com>
754
755 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
756 do_ubsan_in_current_function.
757 (ubsan_maybe_instrument_reference_or_call): Likewise.
758 * c-ubsan.h: Declare it.
759
de35aa66
MS
7602015-01-08 Mike Stump <mikestump@comcast.net>
761
762 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
763
4a9a42ab
MP
7642015-01-07 Marek Polacek <polacek@redhat.com>
765
766 PR c/64440
767 * c-common.c (c_fully_fold_internal): Warn for division and modulo
768 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
769
2f42e5de
TS
7702015-01-05 Trevor Saunders <tsaunders@mozilla.com>
771
772 PR c++/31397
773 * c.opt (Wsuggest-override): New option.
774
5624e564
JJ
7752015-01-05 Jakub Jelinek <jakub@redhat.com>
776
777 Update copyright years.
778
5bd012f8
MP
7792015-01-05 Marek Polacek <polacek@redhat.com>
780
781 PR c/64423
782 * c-common.c (warn_array_subscript_with_type_char): Add location_t
783 parameter. Use it.
784 * c-common.h (warn_array_subscript_with_type_char): Update
785 declaration.
786
a7fa8d18
ESR
7872014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
788
789 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
790 Control macro with flag_sized_deallocation.
791
768952be
MU
7922014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
793
794 * c.opt (Wdiscarded-array-qualifiers): New option.
795
1f8d3e84
JJ
7962014-12-19 Jakub Jelinek <jakub@redhat.com>
797
798 PR preprocessor/63831
799 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
800 and __has_cpp_attribute here.
801 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
802 c_common_has_attribute.
803 * c-common.h (c_common_has_attribute): New prototype.
804 * c-lex.c (init_c_lex): Set cb->has_attribute to
805 c_common_has_attribute instead of cb_has_attribute.
806 (get_token_no_padding): New function.
807 (cb_has_attribute): Renamed to ...
808 (c_common_has_attribute): ... this. No longer static. Use
809 get_token_no_padding, require ()s, don't build TREE_LIST
810 unnecessarily, fix up formatting, adjust diagnostics, call
811 init_attributes.
812
20b06add
JM
8132014-12-15 Jason Merrill <jason@redhat.com>
814
815 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
816 (-Wsized-deallocation): New.
817 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
818 to on in C++14 and up.
819
94a073b2
JM
8202014-12-11 Jason Merrill <jason@redhat.com>
821
acaa5911
JM
822 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
823
94a073b2
JM
824 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
825 we aren't complaining about VLAs.
826
7fb66c15
MP
8272014-12-06 Marek Polacek <polacek@redhat.com>
828
829 PR tree-optimization/64183
830 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
831 shift-expression if it is integer_type_node. Use types_compatible_p.
832
b731b390
JJ
8332014-11-29 Jakub Jelinek <jakub@redhat.com>
834
835 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
836 last argument from create_tmp_var_raw and create_tmp_var calls.
837 * cilk.c (gimplify_cilk_spawn): Likewise.
838 * c-omp.c (c_finish_omp_atomic): Likewise.
839
6a4da643
MP
8402014-11-28 Marek Polacek <polacek@redhat.com>
841
842 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
843 instead of unsigned_type_node.
844
541e35a6
MP
8452014-11-28 Marek Polacek <polacek@redhat.com>
846
847 PR c/63862
848 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
849 to op1_utype.
850 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
851 expression to unsigned_type_node.
852
dcc97066
MW
8532014-11-20 Mark Wielaard <mjw@redhat.com>
854
855 PR debug/38757
856 * c-opts.c (set_std_c89): Set lang_hooks.name.
857 (set_std_c99): Likewise.
858 (set_std_c11): Likewise.
859 (set_std_cxx98): Likewise.
860 (set_std_cxx11): Likewise.
861 (set_std_cxx14): Likewise.
862 (set_std_cxx1z): Likewise.
863
aa7da51a
JJ
8642014-11-21 Jakub Jelinek <jakub@redhat.com>
865
866 PR target/63764
867 * c-common.h (convert_vector_to_pointer_for_subscript): Change
868 return type to bool.
009a3480 869 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
870 (convert_vector_to_pointer_for_subscript): Change return type to
871 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
872 and copy it into a TARGET_EXPR and use that instead of *vecp
873 directly.
874
538dd0b7
DM
8752014-11-19 David Malcolm <dmalcolm@redhat.com>
876
877 Merger of git branch "gimple-classes-v2-option-3".
878 * ChangeLog.gimple-classes: New.
879 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
880 from being just a vec<gimple> to a vec<gbind *>.
881
c39a5e99
JJ
8822014-11-18 Jakub Jelinek <jakub@redhat.com>
883
884 PR sanitizer/63813
885 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
886 argument to ptype, set type to TREE_TYPE (ptype). Don't call
887 get_pointer_alignment for non-pointers. Use ptype, or if it is
888 reference type, corresponding pointer type, as type of kind
889 argument.
890 (ubsan_maybe_instrument_reference,
891 ubsan_maybe_instrument_member_call): Adjust callers.
892
8537a4a9
MP
8932014-11-15 Marek Polacek <polacek@redhat.com>
894
895 PR middle-end/63884
896 * array-notation-common.c (is_sec_implicit_index_fn): Return false
897 for NULL fndecl.
898 (extract_array_notation_exprs): Return for NULL node.
899
2079956a
JM
9002014-11-12 Joseph Myers <joseph@codesourcery.com>
901
902 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
903 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
904
1304953e
JJ
9052014-11-12 Jakub Jelinek <jakub@redhat.com>
906
907 PR c/59708
908 * c-common.c (check_builtin_function_arguments): Handle
909 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
910
e5e44252
AK
9112014-11-10 Andi Kleen <ak@linux.intel.com>
912
913 PR c/60804
914 * c-common.h (check_no_cilk): Declare.
915 * cilk.c (get_error_location): New function.
916 (check_no_cilk): Dito.
917
e64b984d
AK
9182014-11-10 Andi Kleen <ak@linux.intel.com>
919
920 * cilk.c (recognize_spawn): Use expression location
921 for error message.
922
13c21655
PC
9232014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
924
925 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
926
42fd12b1
ESR
9272014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
928
929 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
930 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
931 (__cpp_range_based_for, __cpp_initializer_lists,
932 __cpp_delegating_constructors, __cpp_nsdmi,
933 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
934 for C++11; (__cpp_attribute_deprecated): Remove in favor of
935 __has_cpp_attribute.
936 * c-lex.c (cb_has_attribute): New callback CPP function;
937 (init_c_lex): Set has_attribute callback.
938
6f450181
RB
9392014-11-04 Richard Biener <rguenther@suse.de>
940
941 * c-common.c (shorten_compare): Do not shorten mixed
942 DFP and non-DFP compares.
943
26f0e1d6
ESR
9442014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
945
946 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
947 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
948 Commentary and rearrangement of tests.
949 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
950 Commentary and rearrangement of tests.
951 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
952 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
953
ef4bddc2
RS
9542014-10-29 Richard Sandiford <richard.sandiford@arm.com>
955
956 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
957 enum from machine_mode.
958
c582198b
AM
9592014-10-28 Andrew MacLeod <amacleod@redhat.com>
960
adfac8df
JJ
961 * c-common.c: Adjust include files.
962 * c-gimplify.c: Ditto.
963 * cilk.c: Ditto.
964 * c-pragma.c: Ditto.
965 * c-ubsan.c: Ditto.
c582198b 966
60393bbc
AM
9672014-10-27 Andrew MacLeod <amacleod@redhat.com>
968
969 * c-gimplify.c: Adjust include files.
970
d723bb7c
MLI
9712014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
972
973 PR c++/53061
974 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
975 c_common_initialize_diagnostics.
976 * c-common.h: Likewise.
977
90f3520e
MP
9782014-10-24 Marek Polacek <polacek@redhat.com>
979
980 PR c/56980
981 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
982 print "struct"/"union"/"enum" for typedefed names.
983
59d7607a
MP
9842014-10-23 Marek Polacek <polacek@redhat.com>
985
986 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
987 in unsigned type.
988
d95a2703
JJ
9892014-10-22 Jakub Jelinek <jakub@redhat.com>
990 Yury Gribov <y.gribov@samsung.com>
991
992 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
993 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
994 instead of flag_sanitize_recover as bool flag.
995
8e6ef852
KY
9962014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
997
998 * cilk.c: Revert previous change.
999
948cf550
IZ
10002014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
1001
1002 PR c/63307
1003 * cilk.c: Include vec.h.
1004 (struct cilk_decls): New structure.
1005 (wrapper_parm_cb): Split this function to...
1006 (fill_decls_vec): ...this...
1007 (create_parm_list): ...and this.
1008 (compare_decls): New function.
1009 (for_local_cb): Remove.
1010 (wrapper_local_cb): Ditto.
1011 (build_wrapper_type): For now first traverse and fill vector of
1012 declarations then sort it and then deal with sorted vector.
1013 (cilk_outline): Ditto.
1014 (declare_one_free_variable): Ditto.
1015
92574c7c
MP
10162014-10-17 Marek Polacek <polacek@redhat.com>
1017
1018 * c-opts.c (c_common_post_options): Set warn_implicit_int.
1019 * c.opt (Wimplicit-int): Initialize to -1.
1020
83685514
AM
10212014-10-16 Andrew MacLeod <amacleod@redhat.com>
1022
1023 * c-pragma.c: Adjust include files.
1024 * c-semantics.c: Likewise.
1025
5b8300ea
DD
10262014-10-16 DJ Delorie <dj@redhat.com>
1027
1028 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
1029 multiples of bytes.
1030
5f83e90b
JM
10312014-10-14 Jason Merrill <jason@redhat.com>
1032
1033 PR c++/63455
1034 * c-common.h (CPP_PREPARSED_EXPR): New.
1035 (N_CP_TTYPES): Adjust.
1036
d73326ca
MP
10372014-10-15 Marek Polacek <polacek@redhat.com>
1038
1039 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
1040
78a7c317
DD
10412014-10-14 DJ Delorie <dj@redhat.com>
1042
1043 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
1044 types, not just __int128.
1045 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
1046 types, not just __int128.
1047 (cpp_atomic_builtins): Round pointer sizes up.
1048 (type_suffix): Use type precision, not specific types.
1049 * c-common.c (c_common_reswords): Remove __int128 special case.
1050 (c_common_type_for_size): Check for all __intN types, not just
1051 __int128.
1052 (c_common_type_for_mode): Likewise.
1053 (c_common_signed_or_unsigned_type): Likewise.
1054 (c_build_bitfield_integer_type): Likewise.
1055 (c_common_nodes_and_builtins): Likewise.
1056 (keyword_begins_type_specifier): Likewise.
1057 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
1058 __intN variants.
1059
2a22f99c
TS
10602014-10-12 Trevor Saunders <tsaunders@mozilla.com>
1061
1062 * c-common.c: Use hash_table instead of hashtab.
1063
2a8ef767
ESR
10642014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
1065
adfac8df 1066 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
1067 C++11 section.
1068
3c9aabbd
MG
10692014-10-03 Marc Glisse <marc.glisse@inria.fr>
1070
1071 PR c++/54427
1072 PR c++/57198
1073 PR c++/58845
1074 * c-common.c (warn_logical_operator): Punt for vectors.
1075
a15f7cb8
ESR
10762014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
1077
1078 Implement SD-6: SG10 Feature Test Recommendations
1079 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
1080 macros and the __has_header macro.
1081
8d0cf15e
JM
10822014-09-30 Jason Merrill <jason@redhat.com>
1083
dd5d5481
JM
1084 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
1085 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
1086 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
1087
b752325e
JM
1088 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
1089 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
1090
8d0cf15e
JM
1091 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
1092 * c-common.c (c_common_reswords): Remove __is_convertible_to.
1093
083e891e
MP
10942014-09-24 Marek Polacek <polacek@redhat.com>
1095
1096 PR c/61405
1097 PR c/53874
1098 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
1099
7861b648
AK
11002014-09-23 Andi Kleen <ak@linux.intel.com>
1101
1102 * c-common.c (handle_no_reorder_attribute): New function.
1103 (c_common_attribute_table): Add no_reorder attribute.
1104
9a79452d
JM
11052014-09-22 Joseph Myers <joseph@codesourcery.com>
1106
1107 * c-cppbuiltin.c (c_cpp_builtins): Define
1108 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
1109 modes.
1110
dd69f047
JM
11112014-09-18 Joseph Myers <joseph@codesourcery.com>
1112
1113 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
1114 for supported floating-point modes.
1115
737a4826
MLI
11162014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1117
1118 * c.opt (Wpsabi): Use LangEnabledBy.
1119 * c-opts.c (c_common_handle_option): Do not handle here.
1120
8cc4b7a2
JM
11212014-09-12 Joseph Myers <joseph@codesourcery.com>
1122
1123 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
1124 macros for floating-point modes.
1125
179b5a55
MG
11262014-09-11 Marc Glisse <marc.glisse@inria.fr>
1127
1128 PR target/58757
1129 * c-cppbuiltin.c (builtin_define_float_constants): Correct
1130 __*_DENORM_MIN__ without denormals.
1131
570a11fe
JJ
11322014-09-10 Jakub Jelinek <jakub@redhat.com>
1133
1134 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1135 ubsan_instrument_vla, ubsan_instrument_return): Adjust
1136 ubsan_create_data callers.
1137 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
1138 index is constant or BIT_AND_EXPR with constant mask and is
1139 small enough for the bound.
1140 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
1141 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
1142
b559c810
MLI
11432014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1144
1145 * c.opt: Add CppReason to various flags.
1146 (Wdate-time): Re-sort.
1147 * c-common.c: Include c-common.h earlier.
1148 (struct reason_option_codes_t): Delete.
1149 (c_option_controlling_cpp_error): Prefix global type and struct
1150 with cpp_.
1151
1ef33fd4
MLI
11522014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1153
1154 * c.opt (Wnormalized): New.
1155 (Wnormalized=): Use Enum and Reject Negative.
1156 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
1157
66bb34c0
JM
11582014-09-08 Joseph Myers <joseph@codesourcery.com>
1159
1160 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
1161 digits of floating-point modes if -fbuilding-libgcc.
1162
53d68b9f
JM
11632014-09-05 Joseph Myers <joseph@codesourcery.com>
1164
1165 * c-cppbuiltin.c (c_cpp_builtins): Also define
1166 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
1167 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
1168 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
1169 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
1170 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
1171 __LIBGCC_STACK_GROWS_DOWNWARD__,
1172 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
1173 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
1174 __LIBGCC_DWARF_FRAME_REGISTERS__,
1175 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
1176 __LIBGCC_STACK_POINTER_REGNUM__ and
1177 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
1178 (builtin_define_with_value): Handle backslash-escaping in string
1179 macro values.
1180
f65586dc
RB
11812014-09-05 Richard Biener <rguenther@suse.de>
1182
1183 PR middle-end/63148
1184 * c-format.c (check_format_arg): Properly handle
1185 effectively signed POINTER_PLUS_EXPR offset.
1186
2b71f4a4
MLI
11872014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1188
1189 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
1190 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
1191 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
1192 and Init.
1193 * c-opts.c (c_common_handle_option): Do not handle here.
1194 (sanitize_cpp_opts): Likewise.
1195 * c-common.c (struct reason_option_codes_t): Handle
1196 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
1197
d2e4feca
MP
11982014-09-03 Marek Polacek <polacek@redhat.com>
1199
1200 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
1201
9a771876
JJ
12022014-09-02 Jakub Jelinek <jakub@redhat.com>
1203 Balaji V. Iyer <balaji.v.iyer@intel.com>
1204 Igor Zamyatin <igor.zamyatin@intel.com>
1205
1206 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
1207 * c-common.c (c_common_reswords): Added _Cilk_for.
1208 * c-common.h (enum rid): Added RID_CILK_FOR.
1209 (cilk_for_number_of_iterations): Add declaration.
1210 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
1211 CILK_FOR.
1212 * c-pragma.c (init_pragma): Register "grainsize" pragma.
1213 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
1214
81b5d104
MLI
12152014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1216
1217 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
1218 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
1219 Wundef): Use CPP, Var and Init.
1220 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
1221
b753b37b
MLI
12222014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1223
1224 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
1225 * c-opts.c (c_common_handle_option): Do not handle here.
1226
028aee17
JM
12272014-08-25 Jason Merrill <jason@redhat.com>
1228
1229 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
1230 -std=c++14 and -std=gnu++14, rather than the reverse.
1231 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
1232 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
1233 * c-common.h (cxx_dialect): Remove cxx1y.
1234
e4276ba5
ESR
12352014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
1236
1237 * c-common.h (enum cxx_dialect): Add cxx14.
1238 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
1239 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
1240 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
1241
a545cacd
JM
12422014-08-22 Jason Merrill <jason@redhat.com>
1243
1244 * c.opt (std=gnu++17): Fix alias.
1245
59ea0364
MP
12462014-08-22 Marek Polacek <polacek@redhat.com>
1247
1248 PR c++/62199
1249 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
1250 check for vector types. Drop LHS argument.
1251 * c-common.h (warn_logical_not_parentheses): Adjust.
1252
596e808c
MLI
12532014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1254
1255 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
1256 (Wmultichar): Likewise.
1257 (Wdate-time): Use C-family languages instead of Common. Use CPP
1258 and Var.
1259 * c-opts.c (c_common_handle_option): Do not handle the above
1260 options here.
1261 (sanitize_cpp_opts): Likewise.
1262
18767f65
MLI
12632014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
1264
1265 PR fortran/44054
1266 * c-opts.c: Include tree-diagnostics.h.
1267 (c_diagnostic_finalizer): New.
1268 (c_common_initialize_diagnostics): Use it.
1269
b4413594
MLI
12702014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1271
1272 PR preprocessor/51303
1273 * c-common.c (struct reason_option_codes_t option_codes):
1274 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
1275
43f9a13c
MLI
12762014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1277
1278 PR c/60975
1279 PR c/53063
1280 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
1281 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
1282 (c_common_post_options): Call init_global_opts_from_cpp.
1283 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
1284
04159acf
MP
12852014-08-19 Marek Polacek <polacek@redhat.com>
1286
1287 PR c++/62153
1288 * c-common.c (maybe_warn_bool_compare): New function.
1289 * c-common.h (maybe_warn_bool_compare): Declare.
1290 * c.opt (Wbool-compare): New option.
1291
35aff4fb
MP
12922014-08-19 Marek Polacek <polacek@redhat.com>
1293
1294 * c.opt (Wc99-c11-compat): New option.
1295
177cce46
MP
12962014-08-19 Marek Polacek <polacek@redhat.com>
1297
1298 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
1299 to warn_c90_c99_compat.
1300 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
1301 to -1.
1302
6ae9194f
MLI
13032014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
1304 Steven Bosscher <steven@gcc.gnu.org>
1305
1306 PR c/52952
1307 * c-format.c: Add extra_arg_loc and format_string_loc to struct
1308 format_check_results.
1309 (check_function_format): Use true and add comment for boolean
1310 argument.
1311 (finish_dollar_format_checking): Use explicit location when warning.
1312 (check_format_info): Likewise.
1313 (check_format_arg): Set extra_arg_loc and format_string_loc.
1314 (check_format_info_main): Use explicit location when warning.
1315 (check_format_types): Pass explicit location.
1316 (format_type_warning): Likewise.
1317
8e54f6d3
MLI
13182014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1319
1320 PR fortran/44054
1321 * c-format.c: Handle Fortran flags.
1322
cd4e76fc
IZ
13232014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
1324
1325 PR other/61962
1326 * array-notation-common.c (find_rank): Added handling for other
1327 types of references.
1328
f3bede71
MP
13292014-08-10 Marek Polacek <polacek@redhat.com>
1330
1331 PR c/51849
1332 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
1333 * c.opt (Wc90-c99-compat): Add option.
1334
9f25a338
TS
13352014-08-07 Trevor Saunders <tsaunders@mozilla.com>
1336
1337 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
1338
62e4eb35
MP
13392014-08-03 Marek Polacek <polacek@redhat.com>
1340
1341 * c-common.c (check_case_value): Add location_t parameter. Use it.
1342 (c_add_case_label): Pass loc to check_case_value.
1343
b787e7a2
TS
13442014-08-02 Trevor Saunders <tsaunders@mozilla.com>
1345
1346 * cilk.c: Use hash_map instead of pointer_map.
1347
6e2830c3
TS
13482014-08-02 Trevor Saunders <tsaunders@mozilla.com>
1349
1350 * c-gimplify.c: Use hash_set instead of pointer_set.
1351
a7ee52fb
IZ
13522014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
1353
1354 PR middle-end/61455
1355 * array-notation-common.c (extract_array_notation_exprs): Handling
1356 of DECL_EXPR added.
1357
944fa280
JJ
13582014-08-01 Jakub Jelinek <jakub@redhat.com>
1359
1360 * c-common.h (min_align_of_type): Removed prototype.
1361 * c-common.c (min_align_of_type): Removed.
1362 * c-ubsan.h (ubsan_maybe_instrument_reference,
1363 ubsan_maybe_instrument_member_call): New prototypes.
1364 * c-ubsan.c: Include stor-layout.h and builtins.h.
1365 (ubsan_maybe_instrument_reference_or_call,
1366 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
1367 functions.
1368
b4dfdc11
MG
13692014-07-31 Marc Glisse <marc.glisse@inria.fr>
1370
1371 PR c++/60517
1372 * c.opt (-Wreturn-local-addr): Move to common.opt.
1373
a41844e5
JM
13742014-07-30 Jason Merrill <jason@redhat.com>
1375
1376 PR c++/61659
1377 PR c++/61687
1378 Revert:
1379 * c.opt (-fuse-all-virtuals): New.
1380
976d5a22
TT
13812014-07-30 Tom Tromey <tromey@redhat.com>
1382
1383 PR c/59855
1384 * c.opt (Wdesignated-init): New option.
1385 * c-common.c (c_common_attribute_table): Add "designated_init".
1386 (handle_designated_init): New function.
1387
cdc94aca
MP
13882014-07-24 Marek Polacek <polacek@redhat.com>
1389
1390 PR c/57653
1391 * c-opts.c (c_finish_options): If -imacros is in effect, return.
1392
f41373b6
DS
13932014-07-16 Dodji Seketeli <dodji@redhat.com>
1394
1395 PR preprocessor/60723 - missing system-ness marks for macro tokens
1396 * c-ppoutput.c (struct print::prev_was_system_token): New data
1397 member.
1398 (init_pp_output): Initialize it.
1399 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
1400 (do_line_change): Return a flag saying if a line marker was
1401 emitted or not.
1402 (scan_translation_unit): Detect if the system-ness of the token we
1403 are about to emit is different from the one of the previously
1404 emitted token. If so, emit a line marker. Avoid emitting useless
1405 adjacent line markers. Avoid emitting line markers for tokens
1406 originating from the expansion of built-in macros.
1407 (scan_translation_unit_directives_only): Adjust.
1408
4d661eaa
MP
14092014-07-15 Marek Polacek <polacek@redhat.com>
1410
1411 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
1412 TYPE_MAX_VALUE is NULL.
1413
b108f48f
JJ
14142014-07-14 Jakub Jelinek <jakub@redhat.com>
1415
1416 PR middle-end/61294
1417 * c.opt (Wmemset-transposed-args): New warning.
1418
c0221884
JM
14192014-07-10 Jason Merrill <jason@redhat.com>
1420
1421 PR c++/61659
1422 PR c++/61687
1423 * c.opt (-fuse-all-virtuals): New.
1424
63dfbb95
RB
14252014-07-09 Richard Biener <rguenther@suse.de>
1426
1427 PR c-family/61741
1428 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1429 using unsigned arithmetic if overflow does not wrap instead of
1430 if overflow is undefined.
1431
773ec47f
MP
14322014-07-06 Marek Polacek <polacek@redhat.com>
1433
1434 PR c/6940
1435 * c.opt (Wsizeof-array-argument): New option.
1436
00a7ba58
JJ
14372014-07-03 Jakub Jelinek <jakub@redhat.com>
1438
1439 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
1440 comments->count <= 1, as comments->entries might be NULL.
1441
52ec0ea3
MP
14422014-07-01 Marek Polacek <polacek@redhat.com>
1443
1444 * c.opt (Wint-conversion): New option.
1445
d5c3d343
MP
14462014-07-01 Marek Polacek <polacek@redhat.com>
1447
1448 PR c/58286
1449 * c.opt (Wincompatible-pointer-types): New option.
1450
6e7ceb17
PC
14512014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
1452
1453 PR c++/51400
1454 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
1455 Do not discard TYPE_QUALS of type.
1456
da73100b
JM
14572014-06-26 Jason Merrill <jason@redhat.com>
1458
1459 * c-common.h (enum cxx_dialect): Add cxx1z.
1460 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
1461 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
1462
08eedf75
TJ
14632014-06-26 Teresa Johnson <tejohnson@google.com>
1464
1465 * c-common.h (get_dump_info): Declare.
1466 * c-gimplify.c (c_genericize): Use saved dump files.
1467 * c-opts.c (c_common_parse_file): Begin and end dumps
1468 once around parsing invocation.
1469 (get_dump_info): New function.
1470
7b56b2f8
MP
14712014-06-23 Marek Polacek <polacek@redhat.com>
1472 Andrew MacLeod <amacleod@redhat.com>
1473
1474 PR c/61553
1475 * c-common.c (get_atomic_generic_size): Don't segfault if the
1476 type doesn't have a size.
1477
0e37a2f3
MP
14782014-06-20 Marek Polacek <polacek@redhat.com>
1479
1480 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
1481 (ubsan_walk_array_refs_r): New function.
1482 (c_genericize): Instrument array bounds.
1483 * c-ubsan.c: Include "internal-fn.h".
1484 (ubsan_instrument_division): Mark instrumented arrays as having
1485 side effects. Adjust ubsan_type_descriptor call.
1486 (ubsan_instrument_shift): Likewise.
1487 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
1488 (ubsan_instrument_bounds): New function.
1489 (ubsan_array_ref_instrumented_p): New function.
1490 (ubsan_maybe_instrument_array_ref): New function.
1491 * c-ubsan.h (ubsan_instrument_bounds): Declare.
1492 (ubsan_array_ref_instrumented_p): Declare.
1493 (ubsan_maybe_instrument_array_ref): Declare.
1494
14952014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
1496
1497 PR lto/61123
1498 * c.opt (fshort-enums): Add to LTO.
1499 * c.opt (fshort-wchar): Likewise.
1500
5c3d09f7
MP
15012014-06-16 Marek Polacek <polacek@redhat.com>
1502
1503 PR c/60439
1504 * c.opt (Wswitch-bool): Add Var.
1505
9cf32741
JJ
15062014-06-12 Jakub Jelinek <jakub@redhat.com>
1507
1508 PR middle-end/61486
1509 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
1510 #pragma omp target teams or
1511 #pragma omp {,target }teams distribute simd.
1512
62984918
JM
15132014-06-12 Jason Merrill <jason@redhat.com>
1514
1515 * c.opt (Wabi=, fabi-compat-version): New.
1516 * c-opts.c (c_common_handle_option): Handle -Wabi=.
1517 (c_common_post_options): Handle flag_abi_compat_version default.
1518 Disallow -fabi-compat-version=1.
1519 * c-common.h (abi_version_crosses): New.
1520
f961457f
JH
15212014-06-11 Jan Hubicka <hubicka@ucw.cz>
1522
adfac8df 1523 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
1524 section names that are no longer trees.
1525
92d28cbb
JJ
15262014-06-10 Jakub Jelinek <jakub@redhat.com>
1527
1528 PR fortran/60928
1529 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
1530 (omp_pragmas): ... back here.
1531
742938c9
MP
15322014-06-05 Marek Polacek <polacek@redhat.com>
1533
1534 PR c/49706
1535 * c-common.c (warn_logical_not_parentheses): New function.
1536 * c-common.h (warn_logical_not_parentheses): Declare.
1537 * c.opt (Wlogical-not-parentheses): New option.
1538
9d548dfb
MP
15392014-06-04 Marek Polacek <polacek@redhat.com>
1540
1541 PR c/30020
1542 * c-common.c (check_case_bounds): Add location parameter.
1543 Use it.
1544 (c_add_case_label): Pass loc to check_case_bounds.
1545
fedfecef
MP
15462014-06-03 Marek Polacek <polacek@redhat.com>
1547
1548 PR c/60439
1549 * c.opt (Wswitch-bool): New option.
1550
f6a7cffc
TS
15512014-05-22 Thomas Schwinge <thomas@codesourcery.com>
1552
040d18b6
TS
1553 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
1554 Remove prototypes.
1555 (record_types_used_by_current_var_decl): Move prototype to where
1556 it belongs.
1557
f6a7cffc
TS
1558 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
1559 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
1560 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
1561
632f2871
RS
15622014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1563
1564 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
1565 * c-common.c (c_common_nodes_and_builtins): Don't initialize
1566 void_zero_node.
1567 * c-pretty-print.c (pp_c_void_constant): New function.
1568 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
1569 (c_pretty_printer::expression): Handle VOID_CST.
1570 * cilk.c (extract_free_variables): Likewise.
1571 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
1572 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
1573
766090c2
TS
15742014-05-17 Trevor Saunders <tsaunders@mozilla.com>
1575
1576 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
1577 * c-pragma.c (push_alignment): Adjust.
1578 (handle_pragma_push_options): Likewise.
1579
661a0813
MP
15802014-05-09 Marek Polacek <polacek@redhat.com>
1581
1582 PR c/50459
1583 * c-common.c (check_user_alignment): Return -1 if alignment is error
1584 node.
1585 (handle_aligned_attribute): Don't call default_conversion on
1586 FUNCTION_DECLs.
1587 (handle_vector_size_attribute): Likewise.
1588 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
1589 (handle_sentinel_attribute): Call default_conversion and allow even
1590 integral types as an argument.
1591
2793eeab
MP
15922014-05-08 Marek Polacek <polacek@redhat.com>
1593
1594 PR c/61053
1595 * c-common.c (min_align_of_type): New function factored out from...
1596 (c_sizeof_or_alignof_type): ...here.
1597 * c-common.h (min_align_of_type): Declare.
1598
f827930a
MP
15992014-05-08 Marek Polacek <polacek@redhat.com>
1600
1601 PR c/61077
1602 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
1603 parameter type of main.
1604
ca49b74e
DD
16052014-05-07 DJ Delorie <dj@redhat.com>
1606
1607 * c-cppbuiltin.c (print_bits_of_hex): New.
1608 (builtin_define_type_minmax): Print values using hex so as not to
1609 require a pre-computed list of string values.
1610
1d60af08
KZ
16112014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
1612 Mike Stump <mikestump@comcast.net>
1613 Richard Sandiford <rdsandiford@googlemail.com>
1614
1615 * c-ada-spec.c: Include wide-int.h.
1616 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
1617 (dump_generic_ada_node): Use wide-int interfaces.
1618 * c-common.c: Include wide-int-print.h.
1619 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
1620 (pointer_int_sum): Use wide-int interfaces.
1621 (c_common_nodes_and_builtins): Use make_int_cst.
1622 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
1623 (handle_alloc_size_attribute): Use wide-int interfaces.
1624 (get_nonnull_operand): Likewise.
1625 * c-format.c (get_constant): Use tree_fits_uhwi_p.
1626 * c-lex.c: Include wide-int.h.
1627 (narrowest_unsigned_type): Take a widest_int rather than two
1628 HOST_WIDE_INTs.
1629 (narrowest_signed_type): Likewise.
1630 (interpret_integer): Update accordingly. Use wide-int interfaces.
1631 (lex_charconst): Use wide-int interfaces.
1632 * c-pretty-print.c: Include wide-int.h.
1633 (pp_c_integer_constant): Use wide-int interfaces.
1634 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
1635 INT_CST_LT_UNSIGNED.
1636
b15458be
RB
16372014-05-06 Richard Biener <rguenther@suse.de>
1638
1639 * c-opts.c (c_common_post_options): For -freestanding,
1640 -fno-hosted and -fno-builtin disable pattern recognition
1641 if not enabled explicitely.
1642
6577374e
MP
16432014-05-02 Marek Polacek <polacek@redhat.com>
1644
1645 * c.opt (Wsizeof-pointer-memaccess): Describe option.
1646
d00887e8
MP
16472014-05-01 Marek Polacek <polacek@redhat.com>
1648
1649 PR c/43245
1650 * c.opt (Wdiscarded-qualifiers): Add.
1651
f8ed5150
MP
16522014-04-30 Marek Polacek <polacek@redhat.com>
1653
1654 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
1655 INT_MIN / -1 sanitization only for integer types.
1656
45484dcf
MP
16572014-04-25 Marek Polacek <polacek@redhat.com>
1658
1659 PR c/18079
1660 * c-common.c (handle_noinline_attribute): Warn if the attribute
1661 conflicts with always_inline attribute.
1662 (handle_always_inline_attribute): Warn if the attribute conflicts
1663 with noinline attribute.
1664
38e514c0
MP
16652014-04-25 Marek Polacek <polacek@redhat.com>
1666
1667 PR c/60156
1668 * c-common.c (check_main_parameter_types): Warn about variadic main.
1669
44875f92
MS
16702014-04-24 Mike Stump <mikestump@comcast.net>
1671
1672 * c.opt (Wshadow-ivar): Default to on.
1673
dcaaa5a0
DP
16742014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
1675
1676 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
1677
c07d7c02
MP
16782014-04-23 Marek Polacek <polacek@redhat.com>
1679
1680 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
1681
1c33c9b7
JJ
16822014-04-22 Jakub Jelinek <jakub@redhat.com>
1683
1684 PR sanitizer/60275
1685 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
1686 if flag_sanitize_undefined_trap_on_error.
1687 (ubsan_instrument_division, ubsan_instrument_shift,
1688 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
1689 if !flag_sanitize_recover.
1690
793c625f
MG
16912014-04-22 Marc Glisse <marc.glisse@inria.fr>
1692
1693 PR libstdc++/43622
1694 * c-common.c (registered_builtin_types): Make non-static.
1695 * c-common.h (registered_builtin_types): Declare.
1696
b0f1bf36
RB
16972014-04-14 Richard Biener <rguenther@suse.de>
1698 Marc Glisse <marc.glisse@inria.fr>
1699
1700 PR c/60819
1701 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
1702 apply may-alias the scalar pointer type when applicable.
1703
3b07fa4a
IZ
17042014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
1705
1706 PR middle-end/60467
1707 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
1708 as possible argument for Cilk_spawn.
1709
cbbd2b1c
TB
17102014-04-11 Tobias Burnus <burnus@net-b.de>
1711
1712 PR c/60194
1713 * c.opt (Wformat-signedness): Add
1714 * c-format.c(check_format_types): Use it.
1715
6415bd5d
JM
17162014-04-11 Jason Merrill <jason@redhat.com>
1717
1718 PR c++/57926
1719 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
1720 default_conversion for an array argument.
1721
6525783a
MP
17222014-04-08 Marek Polacek <polacek@redhat.com>
1723
1724 PR sanitizer/60745
1725 * c-ubsan.c: Include asan.h.
1726 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
1727
880a467b
NS
17282014-04-03 Nathan Sidwell <nathan@codesourcery.com>
1729
1730 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
1731
7b59ff2d
MP
17322014-04-02 Marek Polacek <polacek@redhat.com>
1733
1734 * c-common.h (c_expand_expr): Remove declaration.
1735
8edbfaa6
JJ
17362014-03-28 Jakub Jelinek <jakub@redhat.com>
1737
1738 PR c++/60689
1739 * c-common.c (add_atomic_size_parameter): When creating new
1740 params vector, push the size argument first.
1741
07d72e1d
JJ
17422014-03-26 Jakub Jelinek <jakub@redhat.com>
1743
1744 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1745 ubsan_instrument_vla, ubsan_instrument_return): Adjust
1746 ubsan_create_data callers.
1747
b35e0fa0
JJ
17482014-03-22 Jakub Jelinek <jakub@redhat.com>
1749
1750 PR debug/60603
1751 * c-opts.c (c_finish_options): Restore cb_file_change call to
1752 <built-in>.
1753
39a1ebb3
JJ
17542014-03-13 Jakub Jelinek <jakub@redhat.com>
1755
1756 PR middle-end/36282
1757 * c-pragma.c (apply_pragma_weak): Only look at
1758 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
1759 DECL_ASSEMBLER_NAME_SET_P (decl).
1760 (maybe_apply_pending_pragma_weaks): Exit early if
1761 vec_safe_is_empty (pending_weaks) rather than only when
1762 !pending_weaks.
1763 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
1764 set assembler name back to NULL afterwards.
1765
a07f6ed2
JM
17662014-03-11 Jason Merrill <jason@redhat.com>
1767
1768 * c.opt: Add -std=gnu++14.
1769
75b107f5
IB
17702014-03-11 Ian Bolton <ian.bolton@arm.com>
1771
1772 * c-opts.c (c_common_post_options): Don't override
1773 -ffp-contract=fast if unsafe-math-optimizations is on.
1774
f42c637e
PM
17752014-03-08 Paulo Matos <paulo@matos-sorge.com>
1776
1777 * c.opt: Enable LTO FE for fshort-double.
1778
70e24808
JM
17792014-03-07 Jason Merrill <jason@redhat.com>
1780
1781 * c.opt: Add -std=c++14.
1782
3af9c5e9
MP
17832014-03-06 Marek Polacek <polacek@redhat.com>
1784
1785 PR c/60197
1786 * cilk.c (contains_cilk_spawn_stmt): New function.
1787 (contains_cilk_spawn_stmt_walker): Likewise.
1788 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
1789 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
1790
b3bdf019
JJ
17912014-03-03 Jakub Jelinek <jakub@redhat.com>
1792
1793 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
1794 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
1795 even when flag_preprocess_only.
1796
ca7e759d
JM
17972014-02-26 Jason Merrill <jason@redhat.com>
1798
1799 PR c++/59231
1800 PR c++/11586
1801 * c-common.c (shorten_compare): Don't check
1802 c_inhibit_evaluation_warnings.
1803
28e41874
JJ
18042014-02-19 Jakub Jelinek <jakub@redhat.com>
1805
cca615af
JJ
1806 PR c/37743
1807 * c-common.c (c_common_nodes_and_builtins): When initializing
1808 c_uint{16,32,64}_type_node, also set corresponding
1809 uint{16,32,64}_type_node to the same value.
1810
28e41874
JJ
1811 PR c++/60267
1812 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
1813 for PRAGMA_IVDEP if flag_preprocess_only.
1814
c2bf53a1
JJ
18152014-02-12 Jakub Jelinek <jakub@redhat.com>
1816
1817 PR c/60101
1818 * c-common.c (merge_tlist): If copy is true, call new_tlist,
1819 if false, add ADD itself, rather than vice versa.
1820 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
1821 copy. For SAVE_EXPR, only call merge_tlist once.
1822
8fcbce72
JJ
18232014-02-08 Jakub Jelinek <jakub@redhat.com>
1824
1825 PR middle-end/60092
1826 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
1827 and tree_to_uhwi.
1828 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
1829 functions.
1830 (c_common_attribute_table): Add alloc_align and assume_aligned
1831 attributes.
1832
0a756a3f
MP
18332014-02-06 Marek Polacek <polacek@redhat.com>
1834
1835 PR c/60087
1836 * c-common.c (warn_for_sign_compare): Call warning_at with location
1837 instead of warning.
1838
7ec4847a
MP
18392014-02-05 Marek Polacek <polacek@redhat.com>
1840
1841 PR c/53123
1842 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
1843 statement.
1844
66f20604
MP
18452014-02-04 Marek Polacek <polacek@redhat.com>
1846
1847 PR c/60036
1848 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
1849 SAVE_EXPR.
1850
5d77fb19
MG
18512014-02-03 Marc Glisse <marc.glisse@inria.fr>
1852
1853 PR c++/53017
1854 PR c++/59211
1855 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
1856 handle_vector_size_attribute, handle_nonnull_attribute): Call
1857 default_conversion on the attribute argument.
1858 (handle_nonnull_attribute): Increment the argument number.
1859
81e5eca8
MP
18602014-01-31 Marek Polacek <polacek@redhat.com>
1861
1862 PR c/59963
1863 * c-common.c (add_atomic_size_parameter): Pass vNULL to
1864 build_function_call_vec.
1865 (resolve_overloaded_builtin): Likewise.
1866 * c-common.h (build_function_call_vec): Adjust declaration.
1867
68fca595
MP
18682014-01-30 Marek Polacek <polacek@redhat.com>
1869
1870 PR c/59940
1871 * c-common.h (unsafe_conversion_p): Adjust declaration.
1872 (warnings_for_convert_and_check): Likewise.
1873 (convert_and_check): Likewise.
1874 * c-common.c (unsafe_conversion_p): Add location parameter. Call
1875 expansion_point_location_if_in_system_header on it.
1876 (warnings_for_convert_and_check): Add location parameter. Call
1877 expansion_point_location_if_in_system_header on it. Use it.
1878 (convert_and_check): Add location parameter. Use it.
1879 (conversion_warning): Likewise.
1880 (c_add_case_label): Adjust convert_and_check calls.
1881 (scalar_to_vector): Adjust unsafe_conversion_p calls.
1882
b72271b9
BI
18832014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
1884
1885 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
1886 flag_cilkplus.
1887 * c-pragma.c (init_pragma): Likewise.
1888 * c.opt: Likewise.
1889
393e8e8b
MP
18902014-01-23 Marek Polacek <polacek@redhat.com>
1891
1892 PR c/59846
1893 * c-common.c (shorten_compare): Add location_t parameter.
1894 * c-common.h (shorten_binary_op): Adjust declaration.
1895
f04dda30
MP
18962014-01-23 Marek Polacek <polacek@redhat.com>
1897
1898 PR c/58346
1899 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
1900 * c-common.h: Declare it.
1901
621955cb
EB
19022014-01-20 Eric Botcazou <ebotcazou@adacore.com>
1903
1904 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
1905 * c-ada-spec.c (dump_ads): Likewise.
1906 (cpp_check): Likewise.
1907 (dump_ada_specs): Likewise.
1908
19092014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
1910
1911 PR c++/49718
1912 * c-common.c (handle_no_instrument_function_attribute): Allow
1913 no_instrument_function attribute in class member
1914 definition/declaration.
1915
241f845a
JJ
19162014-01-15 Jakub Jelinek <jakub@redhat.com>
1917
1918 PR c/58943
1919 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
1920 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
1921 being COMPOUND_EXPR.
1922 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
1923 operand a SAVE_EXPR and second MODIFY_EXPR.
1924
e83b8e2e
JJ
19252014-01-09 Jakub Jelinek <jakub@redhat.com>
1926
1927 PR target/58115
1928 * c-pch.c (c_common_write_pch): Call
1929 prepare_target_option_nodes_for_pch.
1930
23a5b65a
RS
19312014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1932
1933 Update copyright years
1934
f9030485
RS
19352014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1936
1937 * array-notation-common.c, c-cilkplus.c: Use the standard form for
1938 the copyright notice.
1939
f2aa696b
EB
19402013-12-28 Eric Botcazou <ebotcazou@adacore.com>
1941
1942 * c-ada-spec.c (print_constructor): New function.
1943 (print_destructor): Retrieve the origin of the destructor.
1944 (print_ada_declaration): Revamp handling of constructors/destructors.
1945
1f26ac87
JM
19462013-12-23 Stuart Hastings <stuart@apple.com>
1947 Bill Maddox <maddox@google.com>
1948 Jason Merrill <jason@redhat.com>
1949
1950 * c.opt: Add -fdeclone-ctor-dtor.
1951 * c-opts.c (c_common_post_options): Default to on iff -Os.
1952
41958c28
BI
19532013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
1954
1955 * c-common.c (c_common_attribute_table): Added "cilk simd function"
1956 attribute.
1957 * c-pragma.h (enum pragma_cilk_clause): Remove.
1958 (enum pragma_omp_clause): Added the following fields:
1959 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
1960 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
1961 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
1962 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
1963 PRAGMA_CILK_CLAUSE_UNIFORM.
1964
1965
12893402
BI
19662013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
1967
1968 * cilk.c (cilk_outline): Made this function non-static.
1969 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
1970 (create_cilk_wrapper): Added a new parameter: a function pointer.
1971 (c_install_body_w_frame_cleanup): Remove
1972 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
1973 * c-common.h (cilk_outline): New prototype.
1974 (gimplify_cilk_spawn): Removed two parameters.
1975 (cilk_install_body_with_frame_cleanup): New prototype.
1976 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
1977 CILK_SPAWN_STMT case.
1978
085b42ed
BS
19792013-12-11 Bernd Schmidt <bernds@codesourcery.com>
1980
2ce064c3
BS
1981 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
1982
085b42ed
BS
1983 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
1984 (int_array_type_node): Remove.
1985 * c-common.c (c_common_nodes_and_builtins): Don't build it.
1986
9e36c9ed
MP
19872013-12-05 Marek Polacek <polacek@redhat.com>
1988
1989 PR c/52023
1990 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
1991 [ADJUST_FIELD_ALIGN].
1992
296674db
JM
19932013-12-04 Joseph Myers <joseph@codesourcery.com>
1994
1995 PR c/52023
1996 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
1997 and check field alignment if set.
1998 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
1999 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
2000
31e071ae
MP
20012013-12-04 Jakub Jelinek <jakub@redhat.com>
2002 Marek Polacek <polacek@redhat.com>
2003
2004 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
2005 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
2006
d7947e19
L
20072013-11-29 H.J. Lu <hongjiu.lu@intel.com>
2008
2009 PR c/59309
2010 * cilk.c (gimplify_cilk_spawn): Properly handle function without
2011 arguments.
2012
fad7652e
JJ
20132013-11-29 Jakub Jelinek <jakub@redhat.com>
2014
2015 PR c/59280
2016 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
2017 goto invalid. If it is error_mark_node, don't issue further
2018 diagnostics.
2019
8b5e1202
SO
20202013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
2021
2022 * c.opt (Wopenmp-simd): New.
2023
0a508bb6
JJ
20242013-11-22 Jakub Jelinek <jakub@redhat.com>
2025
2026 * c-ubsan.h (ubsan_instrument_return): New prototype.
2027 * c-ubsan.c (ubsan_instrument_return): New function.
2028
2fb9a547
AM
20292013-11-22 Andrew MacLeod <amacleod@redhat.com>
2030
2031 * c-common.c: Add required include files from gimple.h.
2032 * c-gimplify.c: Likewise
2033 * cilk.c: Likewise
2034
8400e75e
DM
20352013-11-22 David Malcolm <dmalcolm@redhat.com>
2036
2037 * c-common.c (unsafe_conversion_p): Remove use of
2038 EXPR_LOC_OR_HERE macro.
2039 (conversion_warning): Likewise.
2040 (warnings_for_convert_and_check): Likewise.
2041 (warn_for_collisions_1): Likewise.
2042 (shorten_compare): Likewise, and remove use of in_system_header
2043 macro, using the location from the former.
2044 * c-lex.c (dump_one_header): Remove use of input_filename macro.
2045 (cb_def_pragma): Remove use of in_system_header macro.
2046 (lex_string): Likewise.
2047 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
2048
eb1ce453
KZ
20492013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2050 Mike Stump <mikestump@comcast.net>
2051 Richard Sandiford <rdsandiford@googlemail.com>
2052
2053 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
2054 instead of TREE_INT_CST_LOW, in cases where there is a protecting
2055 tree_fits_shwi_p or tree_fits_uhwi_p.
2056 (dump_generic_ada_node): Likewise.
2057 * c-format.c (check_format_arg): Likewise.
2058 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2059
6b3b8c27
KZ
20602013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2061
2062 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
2063
49b0aa18
JC
20642013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
2065
2066 PR c/53001
2067 * c-common.c (unsafe_conversion_p): Make this function
2068 return an enumeration with more detail.
2069 (conversion_warning): Use the new return type of
2070 unsafe_conversion_p to separately warn either about conversions
2071 that lower floating point number precision or about the other
2072 kinds of conversions.
2073 * c-common.h (enum conversion_safety): New enumeration.
2074 (unsafe_conversion_p): switching return type to
2075 conversion_safety enumeration.
2076 * c.opt: Adding new warning -Wfloat-conversion and
2077 enabling it with -Wconversion.
2078
b826515a
BS
20792013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
2080
2081 * c-opts.c: Include plugin.h.
2082 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
2083
b9a55b13
MP
20842013-11-19 Marek Polacek <polacek@redhat.com>
2085
2086 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
2087 call.
2088 (ubsan_instrument_shift): Likewise.
2089 (ubsan_instrument_vla): Likewise.
2090
7d362f6c
RS
20912013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2092
2093 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
2094 cast to unsigned type.
2095
386b1f1f
RS
20962013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2097
2098 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
2099 tree_low_cst.
2100 (complete_array_type): Update comment to refer to tree_to_[su]hwi
2101 rather than tree_low_cst.
2102
ae7e9ddd
RS
21032013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2104
2105 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
2106 tree_to_uhwi throughout.
2107
9439e9a1
RS
21082013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2109
2110 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
2111 tree_low_cst (..., 0) with tree_to_shwi throughout.
2112
cc269bb6
RS
21132013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2114
2115 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
2116 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
2117
9541ffee
RS
21182013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2119
2120 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
2121 host_integerp (..., 0) with tree_fits_shwi_p throughout.
2122
c02065fc
AH
21232013-11-15 Aldy Hernandez <aldyh@redhat.com>
2124
2125 * c-cilkplus.c: New file.
2126 * c-common.c (readonly_error): Add location argument.
2127 * c-common.h (readonly_error): Same.
2128 (c_finish_cilk_clauses): Protoize.
2129 (c_check_cilk_loop): Same.
2130 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
2131 Do not fail on error_mark_node.
2132 Abstract increment canonicalization to here...
2133 (c_omp_for_incr_canonicalize_ptr): New.
2134 c-pragma.c (init_pragma): Register "simd" pragma.
2135 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
2136 (enum pragma_cilk_clause): New.
2137
9cc65f15
RS
21382013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
2139
2140 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
2141 wchar_type and host_integerp checks.
2142
18f429e2
AM
21432013-11-14 Andrew MacLeod <amacleod@redhat.com>
2144
2145 * c-common.c: Likewise.
2146 * c-gimplify.c: Likewise.
2147 * cilk.c: Likewise.
2148
d8a2d370
DN
21492013-11-14 Diego Novillo <dnovillo@google.com>
2150
2151 * c-common.c: Include fold-const.h.
2152 Include stor-layout.h.
2153 Include calls.h.
2154 Include stringpool.h.
2155 Include attribs.h.
2156 Include varasm.h.
2157 Include trans-mem.h.
2158 * c-cppbuiltin.c: Include stor-layout.h.
2159 Include stringpool.h.
2160 * c-format.c: Include stringpool.h.
2161 * c-lex.c: Include stringpool.h.
2162 Include stor-layout.h.
2163 * c-pragma.c: Include stringpool.h.
2164 Include attribs.h.
2165 Include varasm.h.
2166 Include gcc-symtab.h.
2167 * c-pretty-print.c: Include stor-layout.h.
2168 Include attribs.h.
2169 * cilk.c: Include stringpool.h.
2170 Include calls.h.
2171
38b7bc7f
JM
21722013-11-13 Joseph Myers <joseph@codesourcery.com>
2173
2174 * c-common.h (enum rid): Add RID_AUTO_TYPE.
2175 * c-common.c (c_common_reswords): Add __auto_type.
2176 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
2177
45b0be94
AM
21782013-11-12 Andrew MacLeod <amacleod@redhat.com>
2179
18f429e2
AM
2180 * c-common.c: Include gimplify.h.
2181 * c-gimplify.c: Likewise.
2182 * cilk.c: Likewise.
2183 * c-omp.c: Include gimple-expr.h instead of gimple.h.
2184 * c-ubsan.c: Don't include gimple.h.
45b0be94 2185
582d9b50
JM
21862013-11-12 Joseph Myers <joseph@codesourcery.com>
2187
2188 * c-common.c (c_common_reswords): Add _Thread_local.
2189
6b28e197
JM
21902013-11-09 Joseph Myers <joseph@codesourcery.com>
2191
2192 * c-common.c (atomic_size_supported_p): New function.
2193 (resolve_overloaded_atomic_exchange)
2194 (resolve_overloaded_atomic_compare_exchange)
2195 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
2196 Use it instead of comparing size with a local list of sizes.
2197
267bac10
JM
21982013-11-07 Andrew MacLeod <amacleod@redhat.com>
2199 Joseph Myers <joseph@codesourcery.com>
2200
2201 * c-common.h (enum rid): Add RID_ATOMIC.
2202 * c-common.c (c_common_reswords): Add _Atomic.
2203 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
2204 (keyword_is_type_qualifier): Accept RID_ATOMIC.
2205 * c-format.c (check_format_types): Check for extra _Atomic
2206 qualifiers in format argument.
2207 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
2208 (pp_c_type_qualifier_list): Mention _Atomic in comment.
2209
5157b91e
TB
22102013-11-06 Tobias Burnus <burnus@net-b.de>
2211
2212 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
2213
6dbe0958
JM
22142013-11-06 Joseph Myers <joseph@codesourcery.com>
2215
2216 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
2217 standards modes.
2218 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
2219 to mean lack of IEEE 754 support.
2220
e8ff5196
TB
22212013-11-05 Tobias Burnus <burnus@net-b.de>
2222
2223 * c.opt (-Wdate-time): New option
2224 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
2225
254a0760
JM
22262013-11-05 Joseph Myers <joseph@codesourcery.com>
2227
2228 * c-cppbuiltin.c (cpp_iec_559_value): Test
2229 flag_excess_precision_cmdline not flag_excess_precision.
2230
6d7f7e0a
TB
22312013-11-05 Tobias Burnus <burnus@net-b.de>
2232
2233 * c.opt (fopenmp-simd): New option.
2234 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
2235 (omp_pragmas): ... this new struct.
2236 (c_pp_lookup_pragma): Also walk omp_pragmas.
2237 (init_pragma): Init pragmas for -fopenmp-simd.
2238
55a7f02f
MP
22392013-11-04 Marek Polacek <polacek@redhat.com>
2240
2241 PR c++/58979
2242 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
2243
9193fb05
JM
22442013-11-04 Joseph Myers <joseph@codesourcery.com>
2245
2246 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
2247 New functions.
2248 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
2249
94159ecf
EB
22502013-11-04 Eric Botcazou <ebotcazou@adacore.com>
2251
2252 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
2253 (dump_ada_specs): Adjust prototype of second callback.
2254 * c-ada-spec.c (cpp_check): New global variable.
2255 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
2256 (print_generic_ada_decl): Likewise.
2257 (has_static_fields): Change return type to bool and add guard.
2258 (has_nontrivial_methods): New predicate.
2259 (is_tagged_type): Change return type to bool.
2260 (separate_class_package): Call has_nontrivial_methods.
2261 (pp_ada_tree_identifier): Minor tweaks.
2262 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
2263 (dump_ada_array_domains): Likewise.
2264 (dump_ada_array_type): Likewise.
2265 (dump_template_types): Remove cpp_check parameter and do not pass it to
2266 dump_generic_ada_node.
2267 (dump_ada_template): Likewise.
2268 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
2269 recursively.
2270 (print_ada_methods): Change return type to integer. Remove cpp_check
2271 parameter and do not pass it down.
2272 (dump_nested_types): Remove cpp_check parameter and do not pass it to
2273 dump_generic_ada_node.
2274 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
2275 accessing methods.
2276 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
2277 down. Use has_nontrivial_methods to recognize C++ classes. Use return
2278 value of print_ada_methods.
2279 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
2280 Set cpp_check to it before invoking dump_ada_nodes.
2281 (dump_ada_specs): Likewise.
2282
b906f4ca
MP
22832013-11-03 Marek Polacek <polacek@redhat.com>
2284
2285 * c-ubsan.c: Don't include hash-table.h.
2286 (ubsan_instrument_vla): New function.
2287 * c-ubsan.h: Declare it.
2288
5e20cdc9
DM
22892013-10-31 David Malcolm <dmalcolm@redhat.com>
2290
2291 Automated part of renaming of symtab_node_base to symtab_node.
2292
2293 Patch autogenerated by rename_symtab.py from
2294 https://github.com/davidmalcolm/gcc-refactoring-scripts
2295 revision 58bb219cc090b2f4516a9297d868c245495ee622
2296
2297 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
2298 symtab_node_base to symtab_node.
2299
7057e645
ESR
23002013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
2301
2302 Implement C++14 digit separators.
2303 * c-lex.c (interpret_float): Remove digit separators from scratch string
2304 before building real literal.
2305
193ea7bc
JJ
23062013-10-30 Jakub Jelinek <jakub@redhat.com>
2307
2308 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
2309
939b37da
BI
23102013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
2311
2312 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
2313 fields.
2314 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
2315 enabled.
2316 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
2317 (insert_cilk_frame): New prototype.
2318 (cilk_init_builtins): Likewise.
2319 (gimplify_cilk_spawn): Likewise.
2320 (c_cilk_install_body_w_frame_cleanup): Likewise.
2321 (cilk_detect_spawn_and_unwrap): Likewise.
2322 (cilk_set_spawn_marker): Likewise.
2323 (build_cilk_sync): Likewise.
2324 (build_cilk_spawn): Likewise.
2325 * cilk.c: New file.
2326
67348ccc
DM
23272013-10-29 David Malcolm <dmalcolm@redhat.com>
2328
2329 Patch autogenerated by refactor_symtab.py from
2330 https://github.com/davidmalcolm/gcc-refactoring-scripts
2331 revision 58bb219cc090b2f4516a9297d868c245495ee622
2332
2333 * c-gimplify.c (c_genericize): Update for conversion of symtab types
2334 to a true class hierarchy.
2335 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
2336
d570872d
RS
23372013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
2338
2339 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
2340
98906124
JL
23412013-10-26 Jeff Law <law@redhat.com>
2342
adfac8df
JJ
2343 * c-common.c (c_define_builtins): Remove mudflap support.
2344 * c.opt: Ignore and warn for mudflap options.
98906124 2345
d73749df 23462013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
2347
2348 PR other/33426
2349 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
2350 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
2351
3f04b1bb
JM
23522013-10-23 Jason Merrill <jason@redhat.com>
2353
2354 * c-format.c (gcc_cxxdiag_char_table): Add %X.
2355
acf0174b
JJ
23562013-10-11 Jakub Jelinek <jakub@redhat.com>
2357
acd15a28
JJ
2358 * c-common.h (omp_clause_mask::operator !=): New method.
2359 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
2360 instead of if (mask & something) tests everywhere.
2361
acf0174b
JJ
2362 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
2363 201307 instead of 201107.
2364 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
2365 (c_common_attribute_table): Add "omp declare target" and
2366 "omp declare simd" attributes.
2367 (handle_omp_declare_target_attribute,
2368 handle_omp_declare_simd_attribute): New functions.
2369 * c-omp.c: Include c-pragma.h.
2370 (c_finish_omp_taskgroup): New function.
2371 (c_finish_omp_atomic): Add swapped argument, if true,
2372 build the operation first with rhs, lhs arguments and use NOP_EXPR
2373 build_modify_expr.
2374 (c_finish_omp_for): Add code argument, pass it down to make_code.
2375 (c_omp_split_clauses): New function.
2376 (c_split_parallel_clauses): Removed.
2377 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
2378 c_omp_declare_simd_clauses_to_decls): New functions.
2379 * c-common.h (omp_clause_mask): New type.
2380 (OMP_CLAUSE_MASK_1): Define.
2381 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
2382 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
2383 omp_clause_mask::operator |, omp_clause_mask::operator &,
2384 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
2385 omp_clause_mask::operator ==): New methods.
2386 (enum c_omp_clause_split): New.
2387 (c_finish_omp_taskgroup): New prototype.
2388 (c_finish_omp_atomic): Add swapped argument.
2389 (c_finish_omp_for): Add code argument.
2390 (c_omp_split_clauses): New prototype.
2391 (c_split_parallel_clauses): Removed.
2392 (c_omp_declare_simd_clauses_to_numbers,
2393 c_omp_declare_simd_clauses_to_decls): New prototypes.
2394 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
2395 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
2396 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
2397 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
2398 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
2399 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
2400 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
2401 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
2402 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
2403 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
2404 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
2405 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
2406 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
2407 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
2408 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
2409 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
2410 PRAGMA_OMP_CLAUSE_UNIFORM.
2411
826cacfe
MG
24122013-10-09 Marc Glisse <marc.glisse@inria.fr>
2413
2414 PR tree-optimization/20318
2415 * c-common.c (handle_returns_nonnull_attribute): New function.
2416 (c_common_attribute_table): Add returns_nonnull.
2417
2284b034
MG
24182013-10-03 Marc Glisse <marc.glisse@inria.fr>
2419
2420 PR c++/19476
2421 * c.opt (fcheck-new): Move to common.opt.
2422
b56e9788
MP
24232013-09-25 Marek Polacek <polacek@redhat.com>
2424 Jakub Jelinek <jakub@redhat.com>
2425
2426 PR sanitizer/58413
2427 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
2428 an expression if we can prove it is correct.
2429 (ubsan_instrument_division): Likewise. Remove unnecessary
2430 check.
2431
ce6923c5
MP
24322013-09-18 Marek Polacek <polacek@redhat.com>
2433
2434 PR sanitizer/58411
2435 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
2436 Declare it.
2437 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
2438
fb5610fb
IS
24392013-09-14 Iain Sandoe <iain@codesourcery.com>
2440
2441 PR target/48094
2442 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
2443 fobjc-gc, freplace-objc-classes): Accept for LTO.
2444
88b0e79e
JC
24452013-09-13 Jacek Caban <jacek@codeweavers.com>
2446
2447 * c-target.def: New hook
2448
c9b0866a
PC
24492013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
2450
2451 PR c++/43452
2452 * c.opt (Wdelete-incomplete): Add.
2453
0af94e6f
JR
24542013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
2455
2456 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
2457 (vector_types_compatible_elements_p): New function.
2458 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
2459 declaration.
2460 (vector_types_compatible_elements_p): Declare.
2461
7c26172c
GDR
24622013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2463
2464 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
2465 a virtual member function.
2466 (pp_simple_type_specifier): Remove.
2467 (pp_c_type_specifier): Likewise.
2468 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
2469 Rename from pp_c_type_specifier. Adjust.
2470 (c_pretty_printer::c_pretty_printer): Do not assign to
2471 simple_type_specifier.
2472
20059c8b
GDR
24732013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2474
2475 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
2476 member function.
2477 (c_pretty_printer::storage_class_specifier): Likewise.
2478 (c_pretty_printer::initializer): Likewise.
2479 (pp_declaration): Remove.
2480 (pp_declaration_specifiers): Likewise.
2481 (pp_abstract_declarator): Likewise.
2482 (pp_declarator): Likewise.
2483 (pp_type_id): Likewise.
2484 (pp_statement): Likewise.
2485 (pp_constant): Likewise.
2486 (pp_id_expression): Likewise.
2487 (pp_primary_expression): Likewise.
2488 (pp_unary_expression): Likewise.
2489 (pp_multiplicative_expression): Likewise.
2490 (pp_conditional_expression): Likewise.
2491 (pp_assignment_expression): Likewise.
2492 (pp_expression): Likewise.
2493 (pp_c_type_id): Likewise.
2494 (pp_c_storage_class_specifier): Likewise.
2495 * c-pretty-print.c (pp_c_type_cast): Tidy.
2496 (pp_c_pointer): Likewise.
2497 (pp_c_type_specifier): Likewise.
2498 (pp_c_parameter_type_list): Likewise.
2499 (pp_c_function_definition): Likewise.
2500 (pp_c_init_declarator): Likewise.
2501 (pp_c_initializer_list): Likewise.
2502 (pp_c_constructor_elts): Likewise.
2503 (c_pretty_printer::direct_abstract_declarator): Likewise.
2504 (c_pretty_printer::declaration_specifiers): Likewise.
2505 (c_pretty_printer::primary_expression): Likewise.
2506 (c_pretty_printer::postfix_expression): Likewise.
2507 (c_pretty_printer::type_id): Rename from pp_c_type_id.
2508 (c_pretty_printer::storage_class_specifier): Rename from
2509 pp_c_storage_class_specifier.
2510 (c_pretty_printer::initializer): Rename from pp_c_initializer.
2511 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
2512 storage_class_specifier, initializer, offset_list, flags.
2513
de5a5fa1
MP
25142013-08-30 Marek Polacek <polacek@redhat.com>
2515
2516 * c-ubsan.c: New file.
2517 * c-ubsan.h: New file.
2518
8f0e4d72
GDR
25192013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2520
2521 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
2522 member function.
2523 (c_pretty_printer::declaration_specifiers): Likewise.
2524 (c_pretty_printer::declarator): Likewise.
2525 (c_pretty_printer::abstract_declarator): Likewise.
2526 (c_pretty_printer::direct_abstract_declarator): Likewise.
2527 (c_pretty_printer::direct_declarator): Likewise.
2528 (c_pretty_printer::function_specifier): Likewise.
2529 (pp_declaration): Adjust.
2530 (pp_declaration_specifiers): Likewise.
2531 (pp_abstract_declarator): Likewise.
2532 (pp_direct_declarator): Likewise.
2533 (pp_function_specifier): Likewise.
2534 (pp_direct_abstract_declarator): Remove as unused.
2535 (pp_c_declaration): Remove.
2536 (pp_c_declaration_specifiers): Likewise.
2537 (pp_c_declarator): Likewise.
2538 (pp_c_direct_declarator): Likewise.
2539 (pp_c_function_specifier): Likewise.
2540 (pp_c_direct_abstract_declarator): Likewise.
2541 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
2542 from pp_c_abstract_declarator. Adjust.
2543 (c_pretty_printer::direct_abstract_declarator): Rename from
2544 pp_c_direct_abstract_declarator. Adjust.
2545 (c_pretty_printer::function_specifier): Rename from
2546 pp_c_function_specifier. Adjust.
2547 (c_pretty_printer::declaration_specifiers): Rename from
2548 pp_c_declaration_specifiers. Adjust.
2549 (c_pretty_printer::direct_declarator): Rename from
2550 pp_c_direct_declarator. Adjust.
2551 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
2552 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
2553 (c_pretty_printer::c_pretty_printer): Do not assign to
2554 declaration, declaration_specifiers, declarator,
2555 direct_declarator, direct_abstract_declarator, function_specifier.
2556
00d34d3a
GDR
25572013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
2558
2559 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
2560 virtual member function.
2561 (c_pretty_printer::multiplicative_expression): Likewise.
2562 (c_pretty_printer::conditional_expression): Likewise.
2563 (c_pretty_printer::assignment_expression): Likewise.
2564 (c_pretty_printer::expression): Likewise.
2565 (pp_unary_expression): Adjust.
2566 (pp_multiplicative_expression): Likewise.
2567 (pp_assignment_expression): Likewise.
2568 (pp_conditional_expression): Likewise.
2569 (pp_expression): Likewise.
2570 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
2571 from pp_c_unary_expression. Adjust.
2572 (c_pretty_printer::multiplicative_expression): Rename from
2573 pp_c_multiplicative_expression. Adjust.
2574 (c_pretty_printer::conditional_expression): Rename from
2575 pp_c_conditional_expression. Adjust.
2576 (c_pretty_printer::assignment_expression): Rename from
2577 pp_c_assignment_expression. Adjust.
2578 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
2579 (c_pretty_printer::c_pretty_printer): Do not assign to
2580 unary_expression, multiplicative_expression,
2581 conditional_expression, expression.
2582
fb22178f
GDR
25832013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2584
2585 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
2586 virtual member function.
2587 (pp_postfix_expression): Adjust.
2588 (pp_c_postfix_expression): Remove.
2589 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
2590 from pp_c_postfix_expression. Adjust.
2591 (c_pretty_printer::c_pretty_printer): Do not assign to
2592 postfix_expression.
2593
7ecc2600
GDR
25942013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2595
2596 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
2597 virtua member function.
2598 (pp_primary_expression): Adjust.
2599 (pp_c_primary_expression): Remove.
2600 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
2601 from pp_c_primary_expression. Adjust.
2602 (pp_c_initializer_list): Use pp_primary_expression.
2603 (c_pretty_printer::c_pretty_printer): Do not assign to
2604 primary_expression.
2605
0691175f
GDR
26062013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2607
2608 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
2609 * c-pretty-print.c (M_): Remove.
2610 (c_pretty_printer::translate_string): Define.
2611 (pp_c_type_specifier): Use it.
2612 (pp_c_primary_expression): Likewise.
2613 (pp_c_expression): Likewise.
2614
66dfe4c4
GDR
26152013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
2616
2617 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
2618 virtual function.
2619 (pp_c_id_expression): Remove.
2620 (pp_id_expression): Adjust.
2621 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
2622 pp_c_id_expression. Adjust.
2623 (pp_c_postfix_expression): Use pp_id_expression.
2624 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
2625
ca43e9d5
GDR
26262013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
2627
2628 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
2629 member function.
2630 (pp_constant): Adjust.
2631 (pp_c_constant): Remove.
2632 * c-pretty-print.c (c_pretty_printer::constant): Rename from
2633 pp_c_constant. Adjust.
2634 (pp_c_constant)
2635 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
2636 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
2637
da6ca2b5
GDR
26382013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2639
2640 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
2641 (c_pretty_printer::c_pretty_printer): Declare.
2642 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
2643 c_pretty_printer_init. Adjust.
2644 (print_c_tree): Do not call c_pretty_printer_init.
2645 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
2646
65a372f4
AC
26472013-08-09 Arnaud Charlet <charlet@adacore.com>
2648
2649 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
2650
fd9b0f32
PC
26512013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
2652
2653 PR c++/58080
2654 * c-common.c (pointer_int_sum): Add bool parameter.
2655 * c-common.h (pointer_int_sum): Adjust declaration.
2656
e0aec1e9
GDR
26572013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
2658
2659 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
2660 c_pretty_printer variable.
2661
b066401f
GDR
26622013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2663
2664 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
2665 (pp_base): Remove.
2666 (pp_c_base): Likewise. Adjust users.
2667 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
2668 (pp_c_whitespace): Do not call pp_base.
2669 (pp_c_left_paren): Likewise.
2670 (pp_c_right_paren): Likewise.
2671 (pp_c_left_brace): Likewise.
2672 (pp_c_right_brace): Likewise.
2673 (pp_c_left_bracket): Likewise.
2674 (pp_c_right_bracket): Likewise.
2675 (pp_c_dot): Likewise.
2676 (pp_c_ampersand): Likewise.
2677 (pp_c_star): Likewise.
2678 (pp_c_arrow): Likewise.
2679 (pp_c_semicolon): Likewise.
2680 (pp_c_complement): Likewise.
2681 (pp_c_exclamation): Likewise.
2682 (pp_c_direct_declarator): Likewise.
2683 (pp_c_ws_string): Likewise.
2684 (pp_c_identifier): Likewise.
2685 (pp_c_statement): Likewise.
2686 (print_c_tree): Likewise.
2687
65e5a578
ESR
26882013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
2689
2690 PR c++/58072
2691 * c-common.c (c_parse_error): Catch user-defined literal tokens and
2692 provide useful error strings.
2693
137a1a27
GDR
26942013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2695
2696 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
2697 printer functions instead of pp_string or operators and punctuators.
2698 (dump_generic_ada_node): Likewise.
2699 * c-pretty-print.c (pp_c_type_specifier): Likewise.
2700 (pp_c_relational_expression): Likewise.
2701 (pp_c_logical_or_expression): Likewise.
2702
07838b13
GDR
27032013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2704
2705 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
2706 functions instead of pp_character.
2707 (pp_ada_tree_identifier): Likewise.
2708 (dump_ada_double_name): Likewise.
2709 (dump_ada_function_declaration): Likewise.
2710 (dump_ada_array_domains): Likewise.
2711 (dump_template_types): Likewise.
2712 (dump_generic_ada_node): Likewise.
2713 (print_ada_declaration): Likewise.
2714 (print_ada_struct_decl): Likewise.
2715 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2716
433cc7b0
TT
27172013-07-23 Tom Tromey <tromey@redhat.com>
2718
2719 * c-common.h (enum rid) <RID_GENERIC>: New constant.
2720 * c-common.c (c_common_reswords): Add _Generic.
2721
688010ba
OB
27222013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
2723
2724 * c-common.c: Fix typos.
2725 * c-common.h: Likewise.
2726
2a99e5e6
LL
27272013-07-13 Lubos Lunak <l.lunak@suse.cz>
2728
2729 PR c++/55203
2730 * c-common.c (c_common_attribute_table): Add warn_unused.
2731 (handle_warn_unused_attribute): New.
2732
c26302d5
JJ
27332013-07-10 Jakub Jelinek <jakub@redhat.com>
2734
2735 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
2736 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
2737
dfeadaa0
PC
27382013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
2739
2740 PR c++/57869
2741 * c.opt: Add Wconditionally-supported.
2742
6a2fa4b2
GS
27432013-07-08 Graham Stott <graham.stott@btinternet.com>
2744
adfac8df 2745 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
2746 unused variables l_length and l_node.
2747
ecdbd01a 27482013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
2749
2750 PR c/57821
2751 * c-common.c (complete_array_type): Delay folding first index
2752 like other indices. When folding, check for index overflow.
2753
bedc293e
MG
27542013-06-27 Marc Glisse <marc.glisse@inria.fr>
2755
2756 PR c++/57509
2757 * c-common.h (c_build_vec_perm_expr): New complain argument.
2758 * c-common.c (c_build_vec_perm_expr): Likewise.
2759 Use save_expr also in C++.
2760
604b2bfc
GDR
27612013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2762
2763 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
2764 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2765 * c-opts.c (c_common_post_options): Likewise.
2766
dfeadaa0 27672013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
2768
2769 * array-notation-common.c (length_mismatch_in_expr): Changed the
2770 parameter type's from a dynamic array to a vec_tree. Also removed
2771 the size parameters.
2772 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
2773 the change above.
2774
2ce86d2e
BI
27752013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
2776
2777 * c-common.h (struct cilkplus_an_parts): New structure.
2778 (struct cilkplus_an_loop_parts): Likewise.
2779 (cilkplus_extract_an_triplets): New prototype.
2780 (fix_sec_implicit_args): Likewise.
2781 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
2782 (fix_sec_implicit_args): Likewise.
604b2bfc 2783
07a6825b
BI
27842013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
2785
2786 * array-notation-common.c (find_inv_trees): Removed an unwanted
2787 typecasting.
2788 * c-common.h (struct inv_list::additional_tcodes): Changed type from
2789 enum rid to enum tree_code.
2790
08346abd
JH
27912013-06-11 Jan Hubicka <jh@suse.cz>
2792
2793 * c-common.c (handle_alias_ifunc_attribute): Do not set
2794 DECL_EXTERNAL for weakref variables.
2795 * c-pragma.c (handle_pragma_weak): Make sure aliases
2796 are not declared as external.
2797
d60f1706
BI
27982013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
2799
2800 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
2801 function from c/c-array-notation.c.
2802 (is_cilkplus_reduce_builtin): Likewise.
2803 (find_rank): Likewise.
2804 (extract_array_notation_exprs): Likewise.
2805 (replace_array_notations): Likewise.
2806 (find_inv_trees): Likewise.
2807 (replace_inv_trees): Likewise.
2808 (contains_array_notation_expr): Likewise.
2809 (find_correct_array_notation_type): Likewise.
2810 * c-common.h (struct inv_list): Moved this struct from the file
2811 c/c-array-notation.c and added a new field called additional tcodes.
2812 (length_mismatch_in_expr_p): New prototype.
2813 (is_cilkplus_reduce_builtin): Likewise.
2814 (find_rank): Likewise.
2815 (extract_array_notation_exprs): Likewise.
2816 (replace_array_notation): Likewise.
2817 (find_inv_trees): Likewise.
2818 (replace_inv_trees): Likewise.
2819 (find_correct_array_notation_type): Likewise.
dfeadaa0 2820
36536d79
BI
28212013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
2822
2823 * c-common.c (c_define_builtins): When cilkplus is enabled, the
2824 function array_notation_init_builtins is called.
2825 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
2826 * c-common.def (ARRAY_NOTATION_REF): New tree.
2827 * c-common.h (build_array_notation_expr): New function declaration.
2828 (build_array_notation_ref): Likewise.
2829 (extract_sec_implicit_index_arg): New extern declaration.
2830 (is_sec_implicit_index_fn): Likewise.
2831 (ARRAY_NOTATION_CHECK): New define.
2832 (ARRAY_NOTATION_ARRAY): Likewise.
2833 (ARRAY_NOTATION_START): Likewise.
2834 (ARRAY_NOTATION_LENGTH): Likewise.
2835 (ARRAY_NOTATION_STRIDE): Likewise.
2836 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
2837 ARRAY_NOTATION_REF.
2838 (pp_c_expression): Likewise.
2839 * c.opt (flag_enable_cilkplus): New flag.
2840 * array-notation-common.c: New file.
2841
f7716d57
JJ
28422013-05-14 Jakub Jelinek <jakub@redhat.com>
2843
2844 PR c++/57274
2845 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
2846
a5e0cd1d
MG
28472013-05-10 Marc Glisse <marc.glisse@inria.fr>
2848
2849 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
2850 vectors.
2851
f6bc1c4a
HS
28522013-05-07 Han Shen <shenhan@google.com>
2853
2854 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
2855
3f12f6e9
SKS
28562013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2857
2858 * c-common.c (check_user_alignment): Emit error for negative values.
2859
61949153
PC
28602013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2861
2862 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
2863
e93e18e9
PC
28642013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2865
2866 * c-cppbuiltin.c (c_cpp_builtins): Do not define
2867 __GXX_EXPERIMENTAL_CXX1Y__.
2868
44d90fe1
PC
28692013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2870 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2871
2872 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
2873 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
2874 to simply use OPT_Wpointer_arith.
2875 (c_sizeof_or_alignof_type): Likewise.
2876
13f39b2e
PC
28772013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2878
2879 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
2880
4b84d650
JJ
28812013-04-12 Jakub Jelinek <jakub@redhat.com>
2882
2883 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
2884 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
2885 specifiers.
2886
fb037b5d
SB
28872013-04-07 Steven Bosscher <steven@gcc.gnu.org>
2888
2889 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
2890
4e856798
PC
28912013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
2892
2893 * c-common.c (pointer_int_sum): Remove dead code.
2894
4b1baac8
RS
28952013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
2896
2897 PR middle-end/56524
2898 * c-common.c (handle_optimize_attribute): Don't call
2899 save_optabs_if_changed.
2900
0b50e654
JJ
29012013-03-05 Jakub Jelinek <jakub@redhat.com>
2902
2903 PR middle-end/56461
2904 * c-pch.c (pch_init): Free target_validity at the end.
2905
48c41403
JJ
29062013-03-04 Jakub Jelinek <jakub@redhat.com>
2907
2908 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
2909
e664c61c
KS
29102013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
2911 Jakub Jelinek <jakub@redhat.com>
2912
2913 PR sanitizer/56454
2914 * c-common.c (handle_no_sanitize_address_attribute): New function.
2915 (c_common_attribute_table): Add no_sanitize_address attribute.
2916 (handle_no_address_safety_analysis_attribute): Add
2917 no_sanitize_address attribute, not no_address_safety_analysis
2918 attribute.
2919
a475fd3d 29202013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
2921
2922 PR target/52555
2923 * c-common.c (handle_optimize_attribute): Call
2924 save_optabs_if_changed.
2925
f6007d99
JJ
29262013-02-18 Jakub Jelinek <jakub@redhat.com>
2927 Steven Bosscher <steven@gcc.gnu.org>
2928
2929 PR pch/54117
2930 * c-opts.c (c_common_post_options): If debug info is enabled
2931 and non-dwarf*, refuse to load PCH files and when writing PCH
2932 file warn.
2933
cf35e2b1
JJ
29342013-02-05 Jakub Jelinek <jakub@redhat.com>
2935
2936 PR middle-end/56167
2937 * c-common.c (handle_error_attribute): Fix condition.
2938
32887460
JJ
29392013-01-30 Jakub Jelinek <jakub@redhat.com>
2940
2941 PR c++/55742
2942 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
2943
5af057d8
JM
29442013-01-18 Jason Merrill <jason@redhat.com>
2945
2946 PR target/54908
2947 * c.opt (-fextern-tls-init): New.
2948 * c-opts.c (c_common_post_options): Handle it.
2949
cc83c823
JJ
29502013-01-09 Jakub Jelinek <jakub@redhat.com>
2951
2952 PR c/48418
2953 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
2954 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
2955 and is either negative or bigger or equal to type precision
2956 of the first operand.
2957
a859517f
MP
29582012-12-03 Marek Polacek <polacek@redhat.com>
2959
2960 PR c/55570
2961 * c-common.c (check_user_alignment): Swap order of tests,
2962 check TREE_CODE first.
2963
2d7aa578
ESR
29642012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
2965
2966 PR c++/52654
2967 * c-common.h (overflow_type): New enum.
2968 (build_userdef_literal): Add overflow_type argument.
2969 (tree_userdef_literal): Add overflow_type.
2970 (USERDEF_LITERAL_OVERFLOW): New access macro.
2971 * c-common.c (build_userdef_literal): Add overflow_type
2972 argument.
2973 * c-lex.c (c_lex_with_flags): Add overflow_type to
2974 build_userdef_literal calls.
2975 (interpret_integer, interpret_float): Add overflow_type argument.
2976
cc3c4f62
RB
29772012-11-28 Richard Biener <rguenther@suse.de>
2978
2979 PR c/35634
2980 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2981 here and use a type with proper overflow behavior for types that would
2982 need to be promoted for the arithmetic.
2983
77bc5132
JJ
29842012-11-23 Jakub Jelinek <jakub@redhat.com>
2985
2986 PR sanitizer/55435
2987 * c-common.c (handle_no_address_safety_analysis_attribute): New
2988 function.
2989 (c_common_attribute_table): Add no_address_safety_analysis.
2990
5dc99c46
SB
29912012-11-16 Simon Baldwin <simonb@google.com>
2992
2993 * c.opt: Add f[no-]canonical-system-headers.
2994 * c-opts.c (c_common_handle_option): Handle
2995 OPT_fcanonical_system_headers.
2996
a4a0016d
ESR
29972012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
2998
2999 PR c++/54413
3000 * c-opts.c (c_common_handle_option): Set new flags.
3001 * c.opt: Describe new flags.
3002
7dbb85a7
JM
30032012-11-09 Jason Merrill <jason@redhat.com>
3004
3005 * c.opt (Wabi-tag): New.
3006
ad7bac31
AK
30072012-11-09 Andi Kleen <ak@linux.intel.com>
3008
3009 PR 55139
3010 * c-common.c (get_atomic_generic_size): Mask with
3011 MEMMODEL_MASK
3012
7332899a
MLI
30132012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3014
3015 PR c/53063
3016 * c.opt (Wformat): Make it Alias Wformat=1.
3017 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
3018 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
3019 LangEnabledBy.
3020 (Wformat=): RejectNegative. Use LangEnabledBy.
3021 (Wnonnull): Use LangEnabledBy.
3022 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
3023 * c-format.c (set_Wformat): Delete.
3024 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
3025 (maybe_read_dollar_number): Likewise.
3026 (avoid_dollar_number): Likewise.
3027 (finish_dollar_format_checking): Likewise.
3028 (check_format_info): Likewise.
3029 (check_format_info_main): Likewise.
3030 (check_format_types): Likewise.
3031 (format_type_warning): Likewise.
3032 * c-common.c (int): Likewise.
3033 (check_function_sentinel): Likewise.
3034 * c-common.h (warn_format,set_Wformat): Do not declare here.
3035
34a180a6
MLI
30362012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3037
3038 PR c/53063
3039 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
3040 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
3041 Use LangEnabledBy.
3042 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
3043 common.opt.
3044 (Wvariadic-macros): Init(1).
3045 * c-opts.c (c_common_handle_option): Do not handle them
3046 explicitly.
3047 (c_common_post_options): Likewise.
3048 (sanitize_cpp_opts): warn_unused_macros is now
3049 cpp_warn_unused_macros.
3050 (push_command_line_include): Likewise.
3051 * c-common.c (warn_unknown_pragmas): Do not define.
3052 * c-common.h (warn_unknown_pragmas): Do not declare.
3053
3f46d6a5
MLI
30542012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3055
3056 PR c/51294
3057 * c-common.c (conversion_warning): Handle conditional expressions.
3058
880661a4
JW
30592012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
3060
3061 PR c++/54930
3062 * c.opt (Wreturn_local_addr): Define new option.
3063
4514a96b
JM
30642012-10-25 Jason Merrill <jason@redhat.com>
3065
f14edc1a
JM
3066 * c.opt (Wvirtual-move-assign): New.
3067
4514a96b
JM
3068 * c.opt (Winherited-variadic-ctor): New.
3069
93100c6b
MG
30702012-10-25 Marc Glisse <marc.glisse@inria.fr>
3071
3072 PR c++/54427
3073 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
3074
1efcb8c6
JM
30752012-10-23 Joseph Myers <joseph@codesourcery.com>
3076
3077 * c-common.h (pch_cpp_save_state): Declare.
3078 * c-target.def (c_preinclude): New hook.
3079 * c-opts.c (done_preinclude): New.
3080 (push_command_line_include): Handle default preincluded header.
3081 (cb_file_change): Call pch_cpp_save_state when calling
3082 push_command_line_include.
3083 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
3084 (pch_cpp_save_state): New.
3085 (pch_init): Call pch_cpp_save_state conditionally, instead of
3086 calling cpp_save_state.
3087
4a0ae68e
MLI
30882012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3089
3090 PR c/53063
3091 PR c/40989
3092 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
3093 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
3094 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
3095 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
3096 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
3097 * c-opts.c (c_common_handle_option): Remove explicit handling from
3098 here.
3099 (c_common_post_options): Likewise.
3100
67e4210b
EB
31012012-10-18 Eric Botcazou <ebotcazou@adacore.com>
3102
3103 * c-ada-spec.c (LOCATION_COL): Delete.
3104 (compare_location): New function.
3105 (compare_node): Use it.
3106 (compare_comment): Likewise.
3107
65d4f2cd
MLI
31082012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
3109
3110 PR c/53063
3111 PR c/40989
3112 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
3113 * c-opts.c (c_common_handle_option): Do not set them here. Add
3114 comment.
3115 (c_common_post_options): Likewise.
3116
909881cb
EB
31172012-10-16 Eric Botcazou <ebotcazou@adacore.com>
3118
3119 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
3120 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
3121 Remove POINTER_TYPE handling, add large unsigned handling and use
3122 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
3123
3a785c97
JJ
31242012-10-12 Jakub Jelinek <jakub@redhat.com>
3125
3126 PR c/54381
3127 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
3128 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
3129 locs and array of 3 trees instead of just single loc and single
3130 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
3131 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
3132 For *cmp* builtins that take two sources strings report warnings
3133 about first and second source, not about destination and source.
3134
5e54f81d
MG
31352012-10-12 Marc Glisse <marc.glisse@inria.fr>
3136
3137 PR c++/53055
3138 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
3139
f5b02f1e
EB
31402012-10-11 Eric Botcazou <ebotcazou@adacore.com>
3141
3142 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
3143 declaring something coming from another file.
3144
b46dbc6c
AC
31452012-10-10 Arnaud Charlet <charlet@adacore.com>
3146
f5b02f1e 3147 PR ada/54845
b46dbc6c
AC
3148 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
3149
5d9de0d0
PC
31502012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
3151
3152 PR c++/54194
3153 * c-common.c (warn_about_parentheses): Add location_t parameter;
3154 use EXPR_LOC_OR_LOC.
3155 * c-common.h: Update declaration.
3156
a212e43f
MG
31572012-10-09 Marc Glisse <marc.glisse@inria.fr>
3158
3159 PR c++/54427
3160 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
3161 more operations. Make error messages optional.
3162 * c-common.h (enum stv_conv): Moved from c-typeck.c.
3163 (scalar_to_vector): Declare.
3164
b1db7f91
JM
31652012-10-08 Jason Merrill <jason@redhat.com>
3166
3167 * c-common.c (c_common_reswords): Add thread_local.
3168
e28d52cf
DS
31692012-10-08 Dodji Seketeli <dodji@redhat.com>
3170
3171 PR c++/53528 C++11 attribute support
3172 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
3173 new functions.
3174 * c-common.c (check_cxx_fundamental_alignment_constraints): New
3175 static function.
3176 (handle_aligned_attribute): In choose strictest alignment
3177 among many. Use new check_cxx_fundamental_alignment_constraints.
3178 (handle_transparent_union_attribute): In c++11 attribute syntax,
3179 don't look through typedefs.
3180
3b78de56
AC
31812012-10-04 Arnaud Charlet <charlet@adacore.com>
3182
3183 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
3184 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
3185 out of dumpfile.h.
3186
6040bb5f
DC
31872012-09-25 Dehao Chen <dehao@google.com>
3188
3189 PR middle-end/54645
3b78de56 3190 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
3191 map when read in the pch.
3192
0b07a57e
AC
31932012-09-18 Arnaud Charlet <charlet@adacore.com>
3194
3195 * c-ada-spec.c: Style fixes.
3196
da5182be
TQ
31972012-09-18 Thomas Quinot <quinot@adacore.com>
3198
3199 * c.opt (-fada-spec-parent): Define new command line switch.
3200 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
3201 is specified, generate binding spec as a child of the specified unit.
3202
0ccb505d
PC
32032012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
3204 Manuel López-Ibáñez <manu@gcc.gnu.org>
3205
3206 PR c++/53210
3207 * c.opt ([Winit-self]): Enabled by -Wall in C++.
3208
c583af79
AC
32092012-08-23 Arnaud Charlet <charlet@adacore.com>
3210
3211 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
3212 for pointers, and add missing Convention C pragma.
3213 (print_ada_struct_decl): Add missing aliased keyword.
3214 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
3215
1a4049e7
JJ
32162012-08-17 Jakub Jelinek <jakub@redhat.com>
3217
3218 * c-common.c (sizeof_pointer_memaccess_warning): New function.
3219 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
3220 * c-opts.c (c_common_handle_option): Enable it for -Wall.
3221 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
3222 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
3223
70b5e7dc
RG
32242012-08-10 Richard Guenther <rguenther@suse.de>
3225
3226 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
3227
f8923f7e
SB
32282012-08-07 Steven Bosscher <steven@gcc.gnu.org>
3229
3230 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
3231 instead of separate pp_newline and pp_flush.
3232 (print_c_tree): Likewise.
3233
e45abe1f
RH
32342012-07-26 Richard Henderson <rth@redhat.com>
3235
3236 * c-common.c (handle_hot_attribute): Allow labels.
3237 (handle_cold_attribute): Likewise.
3238
332f1d24
JJ
32392012-07-20 Jakub Jelinek <jakub@redhat.com>
3240
3241 PR c++/28656
3242 * c-common.c (check_function_nonnull): Handle multiple nonnull
3243 attributes properly.
3244
7ee2468b
SB
32452012-07-16 Steven Bosscher <steven@gcc.gnu.org>
3246
3247 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
3248 * c-ada-spec.c: Likewise.
3249 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
3250
ee7b28eb
SB
32512012-07-14 Steven Bosscher <steven@gcc.gnu.org>
3252
3253 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
3254 Remove code conditional on it.
3255
6bdf3519
SB
32562012-07-11 Steven Bosscher <steven@gcc.gnu.org>
3257
3258 * c-gimplify.c: Do not include basic-block.h.
3259 * c-common.c: Do not include linfuncs.h.
3260
532aafad
SB
32612012-07-08 Steven Bosscher <steven@gcc.gnu.org>
3262
3263 * c-common.h: Include tree.h.
3264
8d0d1915
JM
32652012-07-02 Jason Merrill <jason@redhat.com>
3266
3267 PR c++/53524
3268 * c-common.c (get_priority): Call default_conversion.
3269
fbc873ad
UB
32702012-07-01 Uros Bizjak <ubizjak@gmail.com>
3271
3272 * c-pch.c (c_common_write_pch): Remove unused variables.
3273
d4a10d0a
SB
32742012-06-29 Steven Bosscher <steven@gcc.gnu.org>
3275
3276 * cppspec.c: Moved from gcc/ to here.
3277
6f3a2e23
KT
32782012-06-27 Kai Tietz <ktietz@redhat.com>
3279
3280 PR preprocessor/37215
3281 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
3282
8ca92d04
SB
32832012-06-21 Steven Bosscher <steven@gcc.gnu.org>
3284
3285 * c-common.h (c_common_print_pch_checksum): Remove.
3286 * c-pch.c: Do not include output.h.
3287 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
3288 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
3289 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
3290 (struct c_pch_header): Remove.
3291 (get_ident): Update gpch version.
3292 (pch_init): Do not print executable_checksum to asm_out_file.
3293 Do not fail if there is no asm_out_file to read back from. Set
3294 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
3295 (c_common_write_pch): Verify that nothing was written to asm_out_file
3296 since pch_init was called. Do not write a c_pch_header, and do not
3297 copy from asm_out_file to the PCH.
3298 (c_common_read_pch): Do not read a c_pch_header, and do not restore
3299 the content of asm_out_file from the PCH.
3300 (c_common_print_pch_checksum): Remove.
3301 * c-opts.c (c_common_init): Print out executable_checksum directly.
3302
70f42967
SB
33032012-06-19 Steven Bosscher <steven@gcc.gnu.org>
3304
3305 * c-target.def (objc_declare_unresolved_class_reference,
3306 objc_declare_class_definition): Add new hooks.
3307
a8781821
SB
33082012-06-19 Steven Bosscher <steven@gcc.gnu.org>
3309
3310 * c-lex.c: Do not include output.h.
3311 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
3312 Remove uses of ASM_OUTPUT_IDENT.
3313
9e1a8dd1
RR
33142012-06-15 Marc Glisse <marc.glisse@inria.fr>
3315
3316 PR c++/51033
3317 * c-common.h (c_build_vec_perm_expr): Move decl here.
3318 * c-common.c (c_build_vec_perm_expr): Move definition
3319 here.
3320
6f07a821
SB
33212012-06-06 Steven Bosscher <steven@gcc.gnu.org>
3322
3323 * c.opt (fconserve-space): Turn into a no-op.
3324
9faeb493 33252012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
3326
3327 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
3328 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
3329 both the start and end of the function.
3330
a4b7d13c
SB
33312012-06-04 Steven Bosscher <steven@gcc.gnu.org>
3332
3333 * c-common.c: Do not include output.h.
3334 * c-pragma.c: Likewise.
3335
c265f413
SA
33362012-06-04 Steven Bosscher <steven@gcc.gnu.org>
3337
3338 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
3339 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
3340 (lang_decl_name): Handle namespace decls.
3341
be7a421e
SB
33422012-05-31 Steven Bosscher <steven@gcc.gnu.org>
3343
3344 * c-ada-spec.c: Do not include output.h.
3345 * c-semantics.c: Likewise.
3346
65de6659
JM
33472012-05-29 Joseph Myers <joseph@codesourcery.com>
3348
3349 * c-common.c: Fix typo.
3350
ca5f4331
MM
33512012-05-29 Michael Matz <matz@suse.de>
3352
3353 * c-common.h (c_expand_decl): Remove prototype.
3354
4f7f7aca
MLI
33552012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3356
3357 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
3358 * c-opts.c (c_common_handle_option): Remove code handling
3359 warn_missing_braces.
3360
4a792f9b
PC
33612012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
3362
3363 PR c++/25137
3364 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
3365 -Wmissing_braces.
3366
650dc14a
DS
33672012-05-22 Dodji Seketeli <dodji@redhat.com>
3368
3369 PR c++/53322
3370 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
3371
9b095bf1
MLI
33722012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
3373
3374 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
3375 * c-opts.c (c_common_handle_option): Do not handle explicitly
3376 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
3377
0b2c4be5
DS
33782012-05-16 Dodji Seketeli <dodji@redhat.com>
3379
3380 PR preprocessor/7263
3381 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
3382 to cpp_classify_number. For diagnostics, use the precise location
3383 instead of the global input_location.
3384
a1bde5af
PC
33852012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
3386
d02924ef 3387 PR c++/11856
a1bde5af
PC
3388 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
3389
d1ede5f4
BS
33902012-05-14 Bernd Schmidt <bernds@codesourcery.com>
3391
a1bde5af 3392 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 3393
f2bc201f
MLI
33942012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
3395
3396 PR 53063
3397 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
3398 Wreorder): Use LangEnabledBy.
3399 * c-opts.c (c_common_handle_option): Do not enable them
3400 explicitly. Call lang-specific generated functions.
3401 (c_common_post_options): Do not set them here.
3402
95744782
MLI
34032012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
3404
3405 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
3406 Wmissing-field-initializers,Wmissing-parameter-type,
3407 Wold-style-declaration,Woverride-init): Use EnabledBy.
3408 * c-opts.c (c_common_post_options): Do not set here explicitly.
3409
7d5a5747
MLI
34102012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3411
3412 PR 53063
3413 * c-opts.c (c_common_handle_option): Use handle_generated_option
3414 to enable sub-options.
3415
5a3c9cf2
PC
34162012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
3417
3418 PR c++/53158
3419 * c-common.c (warnings_for_convert_and_check): Use warning_at.
3420
3ac8781c
RG
34212012-05-10 Richard Guenther <rguenther@suse.de>
3422
3423 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
3424 adjust commentary about TYPE_IS_SIZETYPE types.
3425
1e537948
MLI
34262012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3427
3428 PR c++/53261
3429 * c-common.c (warn_logical_operator): Check that argument of
3430 integer_zerop is not NULL.
3431
f2c4a785
MLI
34322012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
3433
3434 PR c/43772
3435 * c-common.c (warn_logical_operator): Do not warn if either side
3436 is already true or false.
3437
50f305ca
MLI
34382012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
3439
3440 PR c/51712
3441 * c-common.c (expr_original_type): New.
3442 (shorten_compare): Do not warn for enumeration types.
3443
0c3641b0
MLI
34442012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3445
3446 * c.opt (fpermissive): Add Var(flag_permissive).
3447
7edaa4d2
MG
34482012-04-30 Marc Glisse <marc.glisse@inria.fr>
3449
3450 PR c++/51033
3451 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
3452 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
3453
b9c8da34
DS
34542012-04-30 Dodji Seketeli <dodji@redhat.com>
3455
3456 Add -Wvarargs option
3457 * c.opt (Wvarargs): Define new option.
3458
e6c69da0
MLI
34592012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3460
3461 * c-common.c (check_function_arguments): Replace
3462 Wmissing-format-attribute with Wsuggest-attribute=format.
3463
90137d8f
MLI
34642012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3465
3466 * c.opt (Wsuggest-attribute=format): New. Alias of
3467 Wmissing-format-attribute.
3468 * c-format.c (decode_format_type): Replace
3469 Wmissing-format-attribute with Wsuggest-attribute=format.
3470 (check_function_format): Likewise.
3471
9faeb493 34722012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
3473
3474 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
3475 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
3476 * c.opt: Add Wliteral-suffix.
3477
c1771a20
MLI
34782012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
3479
3480 PR c/44774
3481 * c.opt (Wpedantic): New.
3482 (pedantic): Alias Wpedantic.
3483 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
3484 (c_common_post_options): Likewise.
3485 (sanitize_cpp_opts): Likewise.
3486 * c-lex.c (interpret_float): Likewise.
3487 * c-format.c (check_format_types): Likewise.
3488 * c-common.c (pointer_int_sum): Likewise.
3489 (c_sizeof_or_alignof_type): Likewise.
3490 (c_add_case_label): Likewise.
3491 (c_do_switch_warnings): Likewise.
3492 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
3493
04b391c1
JM
34942012-04-15 Jason Merrill <jason@redhat.com>
3495
3496 PR c++/52818
3497 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
3498 (C_STD_NAME): Distinguish between C++98 and C++11.
3499
ac868f29
EB
35002012-04-11 Eric Botcazou <ebotcazou@adacore.com>
3501
3502 PR target/52624
3503 * c-common.h (uint16_type_node): Rename into...
3504 (c_uint16_type_node): ...this.
3505 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
3506 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
3507
fd4116f4
MLI
35082012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
3509
3510 * c-common.c (warn_if_unused_value): Move definition to here.
3511 * c-common.h (warn_if_unused_value): Move declaration to here.
3512
573ac65e
WB
35132012-03-23 William Bader <williambader@hotmail.com>
3514
3515 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
3516
552b8185
JM
35172012-03-20 Jason Merrill <jason@redhat.com>
3518
3519 * c-common.h (enum cxx_dialect): Add cxx1y.
3520 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
3521 test.
3522 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3523 * c-opts.c (c_common_post_options): Likewise.
3524 (set_std_cxx1y): New.
3525 (c_common_handle_option): Call it.
3526 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
3527
04398fa8
PC
35282012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
3529
3530 PR c++/14710
3531 * c.opt ([Wuseless-cast]): Add.
3532
d2a12ae7
RG
35332012-03-16 Richard Guenther <rguenther@suse.de>
3534
3535 * c-pretty-print.c (pp_c_initializer_list): Adjust.
3536
a12bf402
MLI
35372012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3538
3539 PR c++/44783
3540 * c.opt (ftemplate-backtrace-limit) Add.
3541
5c30094f
RO
35422012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3543
3544 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
3545 handling.
3546 * c-pragma.c (handle_pragma_extern_prefix): Remove.
3547 (init_pragma): Don't register extern_prefix.
3548
21fa2faf
RG
35492012-03-12 Richard Guenther <rguenther@suse.de>
3550
3551 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
3552 (builtin_type_for_size): Likewise.
3553
e3793c6f
JJ
35542012-02-13 Jakub Jelinek <jakub@redhat.com>
3555
3556 PR c++/52215
3557 * c-common.c (sync_resolve_params): Don't decide whether to convert
3558 or not based on TYPE_SIZE comparison, convert whenever arg_type
3559 is unsigned INTEGER_TYPE.
3560
93286335
PC
35612012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
3562
3563 PR c/52118
3564 * c.opt ([Wunused-local-typedefs]): Fix description.
3565
7a421706
MS
35662012-01-24 Mike Stump <mikestump@comcast.net>
3567
3568 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
3569 exactly.
3570
ba9b1f11
RG
35712012-01-18 Richard Guenther <rguenther@suse.de>
3572
3573 * c-opts.c (c_common_post_options): Reset LTO flags if
3574 we are about to generate a PCH.
3575
465406be
PC
35762012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
3577
3578 PR c++/51777
3579 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
3580 use pp_unsigned_wide_integer.
3581
aee15221
RG
35822012-01-10 Richard Guenther <rguenther@suse.de>
3583
3584 PR middle-end/51806
3585 * c-opts.c (c_common_handle_option): Move -Werror handling
3586 to language independent code.
3587
5720c0dc
RG
35882012-01-05 Richard Guenther <rguenther@suse.de>
3589
3590 PR middle-end/51764
3591 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
3592 from common.opt.
3593
73ac190a
PC
35942011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
3595
3596 PR c++/51316
3597 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
3598 of array types with an unknown bound.
3599
48b0b196
JM
36002011-12-20 Joseph Myers <joseph@codesourcery.com>
3601
3602 * c-common.c (flag_isoc99): Update comment to refer to C11.
3603 (flag_isoc1x): Change to flag_isoc11.
3604 * c-common.h (flag_isoc99): Update comment to refer to C11.
3605 (flag_isoc1x): Change to flag_isoc11.
3606 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
3607 C11.
3608 * c-opts.c (set_std_c1x): Change to set_std_c11.
3609 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
3610 Call set_std_c11.
3611 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
3612 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
3613 * c.opt (std=c1x): Change to std=c11. Document as non-draft
3614 standard.
3615 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
3616 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
3617 (std=gnu1x): Make alias of std=gnu11.
3618
d58d6eb5
JM
36192011-12-19 Jason Merrill <jason@redhat.com>
3620
3621 PR c++/51228
3622 * c-common.c (handle_transparent_union_attribute): Check the first
3623 field if the type is complete.
3624
b3908fcc
JW
36252011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
3626
3627 PR libstdc++/51365
3628 * c-common.c (RID_IS_FINAL): Add.
3629 * c-common.h (RID_IS_FINAL): Add.
3630
fea3ca91
IS
36312011-11-30 Iain Sandoe <iains@gcc.gnu.org>
3632
3633 * c.opt (fgnu-runtime): Provide full description.
3634 (fnext-runtime): Likewise.
3635 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
3636
62bad7cd
AM
36372011-11-28 Andrew MacLeod <amacleod@redhat.com>
3638
3639 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
3640 predefines in one place. Add LOCK_FREE predefines.
3641 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
3642 new func.
3643
c466c4ff
AM
36442011-11-24 Andrew MacLeod <amacleod@redhat.com>
3645
3646 PR c/51256
9faeb493 3647 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 3648 conditions
9faeb493
UB
3649 (resolve_overloaded_atomic_exchange,
3650 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
3651 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
3652 error_mark_node for error conditions.
9faeb493 3653
a5952633
RG
36542011-11-08 Richard Guenther <rguenther@suse.de>
3655
3656 PR middle-end/51010
3657 c-family/
3658
0a35513e
AH
36592011-11-07 Richard Henderson <rth@redhat.com>
3660 Aldy Hernandez <aldyh@redhat.com>
3661 Torvald Riegel <triegel@redhat.com>
3662
3663 Merged from transactional-memory.
3664
3665 * c-common.c (handle_tm_wrap_attribute,
3666 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
3667 (struct c_common_reswords): Added __transaction* keywords.
3668 (struct c_common_attribute_table): Added transaction* and tm_regparm
3669 attributes.
3670 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
3671 masks.
3672 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
3673 find_tm_attribute): Declare.
3674
6d87092d
JM
36752011-11-07 Jason Merrill <jason@redhat.com>
3676
3677 PR c++/35688
3678 * c-common.c, c-common.h: Revert yesterday's changes.
3679
8e7860a1
JM
36802011-11-06 Jason Merrill <jason@redhat.com>
3681
3682 PR c++/35688
3683 * c-common.c (decl_has_visibility_attr): Split out from...
3684 (c_determine_visibility): ...here.
3685 * c-common.h: Declare it.
3686
d19fa6b5
JM
36872011-11-06 Joseph Myers <joseph@codesourcery.com>
3688
3689 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
3690 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
3691 type.
3692 (check_user_alignment): New. Split out of
3693 handle_aligned_attribute. Disallow integer constants with
3694 noninteger types. Conditionally allow zero.
3695 (handle_aligned_attribute): Use check_user_alignment.
3696 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
3697
86951993
AM
36982011-11-06 Andrew MacLeod <amacleod@redhat.com>
3699 Richard Henderson <rth@redhat.com>
3700
3701 Merged from cxx-mem-model.
3702
3703 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 3704 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
3705 parameters that are the same type size.
3706 (get_atomic_generic_size): New. Find size of generic
3707 atomic function parameters and do typechecking.
3708 (add_atomic_size_parameter): New. Insert size into parameter list.
3709 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
3710 either __atomic_exchange_n or external library call.
9faeb493 3711 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 3712 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 3713 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
3714 __atomic_load_n or an external library call.
3715 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
3716 __atomic_store_n or an external library call.
3717 (resolve_overloaded_builtin): Handle new __atomic builtins.
3718
cf9e9959
EB
37192011-11-04 Eric Botcazou <ebotcazou@adacore.com>
3720
3721 PR c++/50608
3722 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
3723 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
3724 <INDIRECT_REF>: Return the argument.
3725 <ARRAY_REF>: Remove special code for negative offset.
3726 Call fold_build_pointer_plus instead of size_binop.
3727 (fold_offsetof): Remove STOP_REF argument and adjust.
3728 * c-common.h (fold_offsetof_1): Declare.
3729 (fold_offsetof): Remove STOP_REF argument.
3730
25339f10
JM
37312011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
3732
3733 PR c++/50810
3734 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3735 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3736 Wnarrowing for C++0x and C++98.
3737 * c.opt ([Wnarrowing]): Update.
3738
89401152
PC
37392011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
3740
3741 PR c++/44277
3742 * c.opt: Add Wzero-as-null-pointer-constant.
3743
97e3ad20
JM
37442011-10-31 Jason Merrill <jason@redhat.com>
3745
15694fdd
JM
3746 * c.opt (-fdeduce-init-list): Off by default.
3747
97e3ad20
JM
3748 PR c++/50920
3749 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
3750 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
3751 and -Wc++11-compat.
3752 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
3753
fb9120e3
RAV
37542011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
3755
3756 PR c++/30066
3757 * c.opt (fvisibility-inlines-hidden): Description change.
3758
3ce4f9e4
ESR
37592011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
3760
3761 Implement C++11 user-defined literals.
3762 * c-common.c (build_userdef_literal): New.
3763 * c-common.def: New tree code.
3764 * c-common.h (tree_userdef_literal): New tree struct and accessors.
3765 * c-lex.c (interpret_float): Add suffix parm.
3766 (c_lex_with_flags): Build literal tokens.
3767
5f53c243
PC
37682011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3769
3770 PR c++/50841
3771 Revert:
3772 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3773
3774 PR c++/50810
3775 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3776 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3777 Wnarrowing for C++0x and C++98.
3778 * c.opt ([Wnarrowing]): Update.
3779
263734e1
PC
37802011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3781
3782 PR c++/50810
3783 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3784 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3785 Wnarrowing for C++0x and C++98.
3786 * c.opt ([Wnarrowing]): Update.
3787
d2e312d7
PC
37882011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
3789
3790 PR c++/45385
3791 * c-common.c (conversion_warning): Remove code looking for
3792 artificial operands.
3793
d17687f6
DS
37942011-10-18 Dodji Seketeli <dodji@redhat.com>
3795
3796 PR bootstrap/50760
3797 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 3798 !NO_IMPLICIT_EXTERN_C.
d17687f6 3799
fc8396e9
PC
38002011-10-17 Michael Spertus <mike_spertus@symantec.com>
3801
3802 * c-common.c (c_common_reswords): Add __bases,
3803 __direct_bases.
3804 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
3805
38062011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
3807
3808 PR c++/50757
3809 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
3810
847e697a
TT
38112011-10-15 Tom Tromey <tromey@redhat.com>
3812 Dodji Seketeli <dodji@redhat.com>
3813
3814 * c.opt (fdebug-cpp): New option.
3815 * c-opts.c (c_common_handle_option): Handle the option.
3816 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
3817 output stream in parameter. Factorized from ...
3818 (maybe_print_line): ... this. Dump location debug information when
3819 -fdebug-cpp is in effect.
3820 (print_line_1): New static function. Takes an output stream in
3821 parameter. Factorized from ...
3822 (print_line): ... here. Dump location information when -fdebug-cpp
3823 is in effect.
3824 (scan_translation_unit): Dump location information when
3825 -fdebug-cpp is in effect.
3826
92582b75
TT
38272011-10-15 Tom Tromey <tromey@redhat.com>
3828 Dodji Seketeli <dodji@redhat.com>
3829
3830 * c.opt (ftrack-macro-expansion): New option. Handle it with and
3831 without argument.
3832 * c-opts.c (c_common_handle_option)<case
3833 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
3834 cases. Handle -ftrack-macro-expansion with and without argument.
3835
46427374
TT
38362011-10-15 Tom Tromey <tromey@redhat.com>
3837 Dodji Seketeli <dodji@redhat.com>
3838
3839 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
3840 (print_line, cb_define, do_line_change): Adjust to avoid touching
3841 the internals of struct line_map. Use the public API instead.
3842 * c-pch.c (c_common_read_pch): Likewise.
3843 * c-lex.c (fe_file_change): Likewise.
3844
fc8396e9
PC
38452011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
3846
3847 PR c++/17212
3848 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
3849
38502011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
3851
3852 PR c++/33067
3853 * c-pretty-print.c (pp_c_floating_constant): Output
3854 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
3855
e79983f4
MM
38562011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
3857
3858 * c-common.c (def_builtin_1): Delete old interface with two
3859 parallel arrays to hold standard builtin declarations, and replace
3860 it with a function based interface that can support creating
3861 builtins on the fly in the future. Change all uses, and poison
3862 the old names. Make sure 0 is not a legitimate builtin index.
3863 * c-omp.c (c_finish_omp_barrier): Ditto.
3864 (c_finish_omp_taskwait): Ditto.
3865 (c_finish_omp_flush): Ditto.
3866
6637388f
TG
38672011-10-11 Tristan Gingold <gingold@adacore.com>
3868
3869 * c.opt: (fallow-parameterless-variadic-functions): New.
3870
3797cb21
DS
38712011-09-08 Dodji Seketeli <dodji@redhat.com>
3872
3873 PR c++/33255 - Support -Wunused-local-typedefs warning
3874 * c-common.h (struct c_language_function::local_typedefs): New
3875 field.
9faeb493
UB
3876 (record_locally_defined_typedef, maybe_record_typedef_use)
3877 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 3878 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
3879 (maybe_record_typedef_use)
3880 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
3881 * c.opt: Declare new -Wunused-local-typedefs flag.
3882
693ddb1b
EB
38832011-09-06 Eric Botcazou <ebotcazou@adacore.com>
3884
3885 PR middle-end/50266
3886 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
3887 computations.
3888
830c740f
RG
38892011-09-05 Richard Guenther <rguenther@suse.de>
3890
3891 * c-common.c (complete_array_type): Use ssize_int (-1) instead
3892 of integer_minus_one_node for empty array upper bounds.
3893
892a371f
DS
38942011-08-28 Dodji Seketeli <dodji@redhat.com>
3895
3896 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
3897 it's the first time it's being called on this main TU.
3898
0e3fdb48
RB
38992011-08-24 Richard Guenther <rguenther@suse.de>
3900
3901 PR c/49396
3902 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
3903
39042011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
3905
3906 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
3907 defined in cpp_init_builtins and c_cpp_builtins.
3908
d4a83c10
JM
39092011-08-19 Joseph Myers <joseph@codesourcery.com>
3910
3911 * c-common.c (c_common_reswords): Add __builtin_complex.
3912 * c-common.h (RID_BUILTIN_COMPLEX): New.
3913
bbceee64
JM
39142011-08-18 Joseph Myers <joseph@codesourcery.com>
3915
3916 * c-common.c (c_common_reswords): Add _Noreturn.
3917 (keyword_is_function_specifier): Handle RID_NORETURN.
3918 * c-common.h (RID_NORETURN): New.
3919
0e3a99ae
AS
39202011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3921
3922 * c-common.c (unsafe_conversion_p): New function. Check if it is
3923 unsafe to convert an expression to the type.
3924 (conversion_warning): Adjust, use unsafe_conversion_p.
3925 * c-common.h (unsafe_conversion_p): New function declaration.
3926
20906c66
JJ
39272011-08-02 Jakub Jelinek <jakub@redhat.com>
3928
3929 * c-common.h (c_finish_omp_atomic): Adjust prototype.
3930 (c_finish_omp_taskyield): New prototype.
3931 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
3932 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
3933 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
3934 or RHS1 have side-effects, evaluate those too in the right spot,
3935 if it is a decl and LHS is also a decl, error out if they
3936 aren't the same.
3937 (c_finish_omp_taskyield): New function.
3938 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
3939 * c-pragma.c (omp_pragmas): Add taskyield.
3940 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
3941 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
3942 PRAGMA_OMP_CLAUSE_MERGEABLE.
3943
770e5a2e
DS
39442011-07-25 Dodji Seketeli <dodji@redhat.com>
3945
3946 * c-common.h (set_underlying_type): Remove parm name from
3947 declaration.
3948
1baae426
RG
39492011-07-25 Romain Geissler <romain.geissler@gmail.com>
3950
3951 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 3952
fcb21722
JM
39532011-07-22 Jason Merrill <jason@redhat.com>
3954
76f86d00
JM
3955 PR c++/49793
3956 * c.opt (Wnarrowing): New.
3957
3a636414
JM
3958 PR c++/30112
3959 * c-common.h: Declare c_linkage_bindings.
3960 * c-pragma.c (handle_pragma_redefine_extname): Use it.
3961
fcb21722
JM
3962 PR c++/49813
3963 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
3964 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
3965 as flag_isoc99 for 'restrict'.
3966 (pp_c_specifier_qualifier_list): Likewise for _Complex.
3967
02614448
ILT
39682011-07-21 Ian Lance Taylor <iant@google.com>
3969
3970 PR middle-end/49705
3971 * c-common.c (c_disable_warnings): New static function.
3972 (c_enable_warnings): New static function.
3973 (c_fully_fold_internal): Change local unused_p to bool. Call
3974 c_disable_warnings and c_enable_warnings rather than change
3975 c_inhibit_evaluation_warnings.
3976
34429675
JM
39772011-07-20 Jason Merrill <jason@redhat.com>
3978
3979 PR c++/6709 (DR 743)
3980 PR c++/42603 (DR 950)
3981 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
3982 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
3983 (CPP_DECLTYPE): New.
3984 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
3985
5d49b6a7
RG
39862011-07-19 Richard Guenther <rguenther@suse.de>
3987
3988 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
3989 * c-omp.c (c_finish_omp_for): Likewise.
3990
e84a58ff
EB
39912011-07-12 Eric Botcazou <ebotcazou@adacore.com>
3992
3993 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
3994 body on the next line.
3995
329af3c7
JM
39962011-07-08 Jason Merrill <jason@redhat.com>
3997
4063e61b
JM
3998 PR c++/45437
3999 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
4000
329af3c7
JM
4001 PR c++/49673
4002 * c-common.c (c_apply_type_quals_to_decl): Don't check
4003 TYPE_NEEDS_CONSTRUCTING.
4004
1a072294
RG
40052011-07-06 Richard Guenther <rguenther@suse.de>
4006
4007 * c-common.c (c_common_nodes_and_builtins):
4008 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
4009
fce5dddd
RG
40102011-07-05 Richard Guenther <rguenther@suse.de>
4011
4012 * c-common.c (c_common_nodes_and_builtins): Build all common
4013 tree nodes first.
4014
45d439ac
JJ
40152011-06-27 Jakub Jelinek <jakub@redhat.com>
4016
56300785
JJ
4017 * c-common.h (c_tree_chain_next): New static inline function.
4018
45d439ac
JJ
4019 * c-common.c (check_builtin_function_arguments): Handle
4020 BUILT_IN_ASSUME_ALIGNED.
4021
e0a8ecf2
AM
40222011-06-21 Andrew MacLeod <amacleod@redhat.com>
4023
4024 * c-common.c: Add sync_ or SYNC__ to builtin names.
4025 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
4026
40272011-06-20 Pierre Vittet <piervit@pvittet.com>
4028
4029 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
4030 handler.
4031 (gen_pragma_handler): New union.
4032 (internal_pragma_handler): New type.
4033 (c_register_pragma_with_data)
4034 (c_register_pragma_with_expansion_and_data): New functions.
4035
4036 * c-pragma.c (registered_pragmas, c_register_pragma_1)
4037 (c_register_pragma, c_register_pragma_with_expansion)
4038 (c_invoke_pragma_handler): Changed to work with
4039 internal_pragma_handler.
4040 (c_register_pragma_with_data)
4041 (c_register_pragma_with_expansion_and_data): New functions.
4042
677f3fa8
JM
40432011-06-14 Joseph Myers <joseph@codesourcery.com>
4044
4045 * c-common.c: Include common/common-target.h.
4046 (handle_section_attribute): Use
4047 targetm_common.have_named_sections.
4048 * c-cppbuiltin.c: Include common/common-target.h.
4049 (c_cpp_builtins): Use targetm_common.except_unwind_info.
4050
d7fc8c14
RG
40512011-06-10 Richard Guenther <rguenther@suse.de>
4052
4053 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
4054 to print a IDENTIFIER_NODE.
4055
10e48e39
RO
40562011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4057 Joseph Myers <joseph@codesourcery.com>
4058
4059 * c.opt (fbuilding-libgcc): New option.
4060 * c-cppbuiltin.c (c_cpp_builtins): Define
4061 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
4062
6976ae51
JM
40632011-06-07 Jason Merrill <jason@redhat.com>
4064
3ff60975
JM
4065 * c-common.c (max_tinst_depth): Lower default to 900.
4066
6976ae51
JM
4067 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
4068
009db074
RG
40692011-06-07 Richard Guenther <rguenther@suse.de>
4070
4071 * c-common.c (c_common_nodes_and_builtins): Do not set
4072 size_type_node or call set_sizetype.
4073
b4592b92
DS
40742011-06-07 Dodji Seketeli <dodji@redhat.com>
4075
4076 PR debug/49130
4077 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 4078 type when using pointer comparison to compare types.
b4592b92 4079
014ab419
JW
40802011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
4081
4082 * c.opt: Add -Wdelete-non-virtual-dtor.
4083 * c-opts.c (c_common_handle_option): Include it in -Wall.
4084
4f60111f
NF
40852011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
4086
4087 PR bootstrap/49190
4088
4089 Revert:
4090 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4091
4092 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
4093 not tree_common.
4094
4cc4f2f4
JJ
40952011-05-27 Jakub Jelinek <jakub@redhat.com>
4096
4097 PR c++/49165
4098 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
4099 C++ don't call c_common_truthvalue_conversion on void type arms.
4100
38e01f9e
NF
41012011-05-27 Nathan Froyd <froydnj@codesourcery.com>
4102
4103 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
4104 (stmt_list_stack): Define.
4105 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
4106 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
4107
92e948a8
NF
41082011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4109
4110 * c-common.c (warning_candidate_p): Check for BLOCKs.
4111
a2fc3e63
NF
41122011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4113
4114 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
4115 not tree_common.
4116
0957c029
JJ
41172011-05-25 Jakub Jelinek <jakub@redhat.com>
4118
4119 * c-common.c (def_fn_type): Remove extra va_end.
4120
828fb3ba
JM
41212011-05-23 Jason Merrill <jason@redhat.com>
4122
4123 PR c++/48106
4124 * c-common.c (c_common_get_narrower): New.
4125 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
4126
dde05067
NF
41272011-05-23 Nathan Froyd <froydnj@codesourcery.com>
4128
4129 * c-common.h (check_function_arguments): Tweak prototype of
4130 check_function_arguments.
4131 * c-common.c (check_function_arguments): Likewise. Adjust
4132 calls to check_function_nonnull, check_function_format, and
4133 check_function_sentinel.
4134 (check_function_sentinel): Take a FUNCTION_TYPE rather than
4135 separate attributes and typelist arguments. Use
4136 FOREACH_FUNCTION_ARGS to iterate over argument types.
4137
3c0d13bf
PC
41382011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
4139
4140 * c-common.c (c_common_reswords): Reorder.
4141 * c-common.h (rid): Likewise.
4142
8242dd04
NF
41432011-05-10 Nathan Froyd <froydnj@codesourcery.com>
4144
4145 * c-common.c (def_fn_type): Don't call build_function_type, call
4146 build_function_type_array or build_varargs_function_type_array
4147 instead.
4148 (c_common_nodes_and_builtins): Likewise.
4149
3d528853
NF
41502011-05-05 Nathan Froyd <froydnj@codesourcery.com>
4151
4152 * c-common.c (c_add_case_label): Omit the loc argument to
4153 build_case_label.
4154 * c-common.h (build_case_label): Remove.
4155 * c-semantics.c (build_case_label): Remove.
4156
a04a722b
JM
41572011-05-05 Joseph Myers <joseph@codesourcery.com>
4158
4159 * c-objc.h (objc_start_method_definition): Update prototype.
4160 * stub-objc.c (objc_start_method_definition): Add extra parameter.
4161
e19a18d4
NF
41622011-05-04 Nathan Froyd <froydnj@codesourcery.com>
4163
4164 * c-common.c (check_main_parameter_types): Reindent. Don't use
4165 TYPE_ARG_TYPES directly.
4166 (handle_nonnull_attribute): Likewise.
4167 (sync_resolve_params): Likewise.
4168 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
4169 to check_format_string.
4170 (handle_format_attribute): Likewise.
4171 (check_format_string): Take a function type to examine instead of
4172 a type list. Use a function_arg_iterator to step through argument
4173 types.
4174
c62c040f
RG
41752011-05-04 Richard Guenther <rguenther@suse.de>
4176
4177 * c-common.c (fix_string_type): Use size_int for index type bounds.
4178 (start_fname_decls): Do not pass NULL to build_int_cst.
4179 (c_init_attributes): Likewise.
4180 * c-lex.c (c_lex_with_flags): Likewise.
4181
c12ff9d8
JM
41822011-04-27 Jason Merrill <jason@redhat.com>
4183
4184 * c-common.c (make_tree_vector_from_list): New.
4185 * c-common.h: Declare it.
4186
304dfbe3
RG
41872011-04-26 Richard Guenther <rguenther@suse.de>
4188
4189 PR preprocessor/48248
4190 * c-ppoutput.c (maybe_print_line): Always optimize newlines
4191 for output size with -P.
4192
3c0d13bf
PC
41932011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
4194
4195 * c-common.c (struct c_common_resword): Add __underlying_type.
4196 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
4197
04695783
JM
41982011-04-20 Jim Meyering <meyering@redhat.com>
4199
4200 * c-format.c (init_dollar_format_checking): Remove useless
4201 if-before-free.
4202
0dc33c3c
NP
42032011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
4204
4205 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 4206 (objc_detect_field_duplicates): New.
0dc33c3c 4207 * stub-objc.c: Likewise.
3c0d13bf 4208
c59633d9
NP
42092011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4210
4211 * stub-objc.c (objc_declare_protocols): Renamed to
4212 objc_declare_protocol.
4213 * c-objc.h: Likewise.
3c0d13bf 4214
32dabdaf
NP
42152011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4216
4217 * stub-objc.c (objc_declare_class): Updated argument name.
4218
81f653d6
NF
42192011-04-12 Nathan Froyd <froydnj@codesourcery.com>
4220
4221 * c-common.h (c_common_init_ts): Declare.
4222 * c-common.c (c_common_init_ts): Define.
4223
eb345401
NP
42242011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4225
4226 * c-objc.h (objc_build_message_expr): Updated prototype.
4227 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 4228
a358e188
MJ
42292011-04-12 Martin Jambor <mjambor@suse.cz>
4230
4231 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
4232 of cgraph_node.
4233
e6313a78
RG
42342011-04-11 Richard Guenther <rguenther@suse.de>
4235
4236 * c-common.c (complete_array_type): Build a range type of
4237 proper type.
4238
dcf0c47e
NF
42392011-04-08 Nathan Froyd <froydnj@codesourcery.com>
4240
4241 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
4242 (handle_type_generic_attribute): Likewise.
4243
1ee44b26
JM
42442011-04-07 Jason Merrill <jason@redhat.com>
4245
4246 PR c++/48450
4247 * c-common.c (c_common_truthvalue_conversion): Don't ignore
4248 conversion from C++0x scoped enum.
4249
acce4e77
JM
42502011-04-06 Joseph Myers <joseph@codesourcery.com>
4251
4252 * c-target-def.h: New file.
4253 * c-target.def: New file.
4254 * c-target.h: New file.
4255 * c-common.c (targetcm): Don't define here.
4256 * c-common.h (default_handle_c_option): Declare.
4257 * c-format.c: Include c-target.h instead of target.h.
4258 * c-opts.c: Include c-target.h instead of target.h. Explicitly
4259 include tm.h.
4260 (default_handle_c_option): Move from targhooks.c.
4261
e2eefb55
JJ
42622011-03-29 Jakub Jelinek <jakub@redhat.com>
4263
4264 PR preprocessor/48248
4265 * c-ppoutput.c (print): Add src_file field.
4266 (init_pp_output): Initialize it.
4267 (maybe_print_line): Don't optimize by adding up to 8 newlines
4268 if map->to_file and print.src_file are different file.
4269 (print_line): Update print.src_file.
4270
ba78087b
KT
42712011-03-25 Kai Tietz <ktietz@redhat.com>
4272
4273 * c-ada-spec.c (compare_comment): Use filename_cmp
4274 instead of strcmp for filename.
4275
0edf1bb2
JL
42762011-03-25 Jeff Law <law@redhat.com>
4277
adfac8df 4278 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 4279
c7dc8804
JM
42802011-03-25 Jason Merrill <jason@redhat.com>
4281
4282 * c.opt: Add -std=c++03.
4283
d1d879b1
EB
42842011-03-22 Eric Botcazou <ebotcazou@adacore.com>
4285
4286 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
4287
62d784f7
KT
42882011-03-17 Kai Tietz
4289
4290 PR target/12171
5050afdf
KT
4291 * c-pretty-print.c (pp_c_specifier_qualifier_list):
4292 Display allowed attributes for function pointer types.
4293 (pp_c_attributes_display): New function to display
4294 attributes having affects_type_identity flag set to true.
4295 * c-pretty-print.h (pp_c_attributes_display): New prototype.
4296
62d784f7
KT
4297 * c-common.c (c_common_attribute_table):
4298 Add new element.
4299 (c_common_format_attribute_table): Likewise.
4300
82d37118
JM
43012011-03-18 Jason Merrill <jason@redhat.com>
4302
49a000c3
JM
4303 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
4304 * c-common.h: Don't declare it here.
4305 * c-common.c: Or define it here.
4306 * c-opts.c (c_common_handle_option): Or set it here.
4307
82d37118
JM
4308 PR c++/35315
4309 * c-common.c (handle_transparent_union_attribute): Don't
4310 make a duplicate type in C++.
4311
17bc631c
JM
43122011-03-15 Jason Merrill <jason@redhat.com>
4313
4314 * c-common.c (max_constexpr_depth): New.
4315 * c-common.h: Declare it.
4316 * c-opts.c (c_common_handle_option): Set it.
4317 * c.opt (fconstexpr-depth): New option.
4318
1b9b91a6
JM
43192011-03-11 Jason Merrill <jason@redhat.com>
4320
f231b5ff
JM
4321 * c-common.c (attribute_takes_identifier_p): Add missing const.
4322
1b9b91a6
JM
4323 PR c++/46803
4324 * c-common.c (attribute_takes_identifier_p): Assume that an
4325 unknown attribute takes an identifier.
4326
a19e4d44
NF
43272011-03-07 Nathan Froyd <froydnj@codesourcery.com>
4328
4329 PR c/47786
4330 * c-common.c (c_type_hash): Call list_length instead of iterating
4331 through DECL_CHAIN. Rename 'i' to 'n_elements'.
4332
982d62f6
JJ
43332011-02-19 Jakub Jelinek <jakub@redhat.com>
4334
4335 PR c/47809
4336 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
4337
0a256240
NP
43382011-02-17 Iain Sandoe <iains@gcc.gnu.org>
4339
4340 * c.opt (fobjc-abi-version=) New.
4341 (fobjc-nilcheck): New.
4342
ba9e6dd5
NF
43432011-02-03 Nathan Froyd <froydnj@codesourcery.com>
4344
4345 PR c++/46890
4346 * c-common.h (keyword_is_decl_specifier): Declare.
4347 * c-common.c (keyword_is_decl_specifier): Define.
4348 (keyword_is_function_specifier): New function.
4349
7273813a
JJ
43502011-01-26 Jakub Jelinek <jakub@redhat.com>
4351
4352 PR c/47473
4353 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
4354 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
4355 REAL_TYPE.
4356
908ef79b
AC
43572011-01-26 Arnaud Charlet <charlet@adacore.com>
4358
4359 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
4360
237e9384
JJ
43612011-01-26 Jakub Jelinek <jakub@redhat.com>
4362
4363 PR pch/47430
4364 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
4365 after init_c_lex if pch_file is set.
4366
47ea1edf
DK
43672011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
4368
d4dba752 4369 PR c++/43601
47ea1edf
DK
4370 * c.opt (-fkeep-inline-dllexport): New switch.
4371
2aa9c6ae
RG
43722011-01-12 Richard Guenther <rguenther@suse.de>
4373
4374 PR middle-end/32511
4375 * c-common.c (handle_weak_attribute): Warn instead of error
4376 on declaring an inline function weak.
4377
7bd11157
TT
43782011-01-05 Tom Tromey <tromey@redhat.com>
4379
4380 * c-common.h (lvalue_error): Update.
4381 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
4382 not error.
4383
0e66e494 43842010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 4385
b4f588c4
NP
4386 PR objc/47075
4387 * c-objc.h (objc_finish_message_expr): Added argument to
4388 prototype.
4389
f4da8dce
NF
43902010-12-22 Nathan Froyd <froydnj@codesourcery.com>
4391
4392 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
4393 Use prototype_p.
4394
46270f14
NP
43952010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
4396
4397 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 4398 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 4399
4816c593
NF
44002010-12-10 Nathan Froyd <froydnj@codesourcery.com>
4401
4402 * c-common.h (readonly_error): Declare.
4403 * c-common.c (readonly_error): Define.
4404
7a6daeb0
NF
44052010-12-09 Nathan Froyd <froydnj@codesourcery.com>
4406
4407 * c-common.h (invalid_indirection_error): Declare.
4408 * c-common.c (invalid_indirection_error): Define.
4409
892f6119
RG
44102010-12-03 Richard Guenther <rguenther@suse.de>
4411
4412 PR c/46745
4413 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
4414 (pp_c_unary_expression): Likewise.
4415 (pp_c_expression): Likewise.
4416
6c39e757
NP
44172010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
4418
4419 * c-common.h (objc_finish_function): New.
4420 (objc_non_volatilized_type): Removed.
4421 (objc_type_quals_match): Removed.
4422 * stub-objc.c (objc_finish_function): New.
4423 (objc_non_volatilized_type): Removed.
4424 (objc_type_quals_match): Removed.
9faeb493 4425
7c475d11
JM
44262010-11-30 Joseph Myers <joseph@codesourcery.com>
4427
4428 * c-common.h (parse_optimize_options): Declare.
4429 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
4430 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
4431
71f3e391
JM
44322010-11-29 Joseph Myers <joseph@codesourcery.com>
4433
4434 * c-opts.c (check_deps_environment_vars): Use getenv instead of
4435 GET_ENVIRONMENT.
4436 * c-pch.c (O_BINARY): Don't define here.
4437 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
4438
d5fabb58
JM
44392010-11-25 Joseph Myers <joseph@codesourcery.com>
4440
4441 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
4442 targetm.except_unwind_info.
4443
299404a1
JM
44442010-11-23 Joseph Myers <joseph@codesourcery.com>
4445
4446 * c-opts.c (c_common_handle_option): Pass location to
4447 set_struct_debug_option.
4448
c98cd5bf
JM
44492010-11-23 Joseph Myers <joseph@codesourcery.com>
4450
4451 * c-common.c (visibility_options): Move from ../opts.c.
4452 * c-common.h (struct visibility_flags, visibility_options):
4453 Declare here.
4454 * c-opts.c (finish_options): Rename to c_finish_options.
4455 (c_common_init): Update call to finish_options.
4456
a9546771
NP
44572010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
4458
4459 PR objc/34033
4460 * c-lex.c (lex_string): Check that each string in an Objective-C
4461 string concat sequence starts with either one or zero '@', and
4462 that there are no spurious '@' signs at the end.
4463
24a57808
JM
44642010-11-20 Joseph Myers <joseph@codesourcery.com>
4465
4466 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
4467 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
4468 HANDLE_PRAGMA_VISIBILITY.
4469 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
4470 HANDLE_PRAGMA_VISIBILITY): Don't define.
4471 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
4472
a9aa2c3a
NF
44732010-11-20 Nathan Froyd <froydnj@codesourcery.com>
4474
4475 PR c++/16189
4476 PR c++/36888
4477 PR c++/45331
4478 * c-common.h (keyword_begins_type_specifier): Declare.
4479 (keyword_is_storage_class_specifier): Declare.
4480 (keyword_is_type_qualifier): Declare.
4481 * c-common.c (keyword_begins_type_specifier): New function.
4482 (keyword_is_storage_class_specifier): New function.
4483 (keyword_is_type_qualifier): Declare.
4484
5386338c
JM
44852010-11-19 Joseph Myers <joseph@codesourcery.com>
4486
4487 PR c/46547
4488 * c-common.c (in_late_binary_op): Define.
4489 (c_common_truthvalue_conversion): Check in_late_binary_op before
4490 calling c_save_expr.
4491 * c-common.h (in_late_binary_op): Declare.
4492
69ccdddb
JM
44932010-11-19 Joseph Myers <joseph@codesourcery.com>
4494
4495 * c-opts.c (c_common_handle_option): Update calls to
4496 set_struct_debug_option.
4497
6b192a09
NP
44982010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
4499
4500 * c-common.h (objc_declare_protocols): Added additional argument.
4501 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 4502
fb52b50a
NF
45032010-11-18 Nathan Froyd <froydnj@codesourcery.com>
4504
4505 PR c/33193
4506 * c-common.h (build_real_imag_expr): Declare.
4507 * c-semantics.c (build_real_imag_expr): Define.
4508
b37421c6
JM
45092010-11-17 Joseph Myers <joseph@codesourcery.com>
4510
4511 * c-opts.c (c_common_parse_file): Take no arguments.
4512 * c-common.h (c_common_parse_file): Update prototype.
4513
07078664
JJ
45142010-11-16 Jakub Jelinek <jakub@redhat.com>
4515
4516 PR c++/46401
4517 * c-common.c (warning_candidate_p): Don't track non-const calls
4518 or STRING_CSTs.
4519
c6a13190
ILT
45202010-11-15 Ian Lance Taylor <iant@google.com>
4521
4522 * c-lex.c (init_c_lex): Set macro debug callbacks if
4523 flag_dump_go_spec is set.
4524
925e8657
NP
45252010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
4526
4527 * c-common.h (objc_build_incr_expr_for_property_ref): New.
4528 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
4529
bb0a9581
NF
45302010-11-15 Nathan Froyd <froydnj@codesourcery.com>
4531
4532 PR preprocessor/45038
4533 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
4534 dialects.
4535
c5fa0890
JM
45362010-11-12 Joseph Myers <joseph@codesourcery.com>
4537
4538 * c-common.h (c_family_lang_mask): Declare.
4539 * c-opts.c (c_family_lang_mask): Make extern.
4540 * c-pragma.c (handle_pragma_diagnostic): Use
4541 control_warning_option.
4542
a4d8c676
JM
45432010-11-12 Joseph Myers <joseph@codesourcery.com>
4544
4545 * c-common.c (parse_optimize_options): Update call to
4546 decode_options.
4547 * c-common.h (c_common_handle_option): Update prototype.
4548 * c-opts.c (c_common_handle_option): Take location_t parameter and
4549 pass it to other functions.
4550
f954bd2c
JM
45512010-11-11 Joseph Myers <joseph@codesourcery.com>
4552
4553 * c-opts.c (warning_as_error_callback): Remove.
4554 (c_common_initialize_diagnostics): Don't call
4555 register_warning_as_error_callback.
4556 (c_common_handle_option): Handle -Werror=normalized= here.
4557
d8a07487
JM
45582010-11-10 Joseph Myers <joseph@codesourcery.com>
4559
4560 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
4561 in diagnostic.
4562 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
4563 letter.
4564 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
4565 Remove trailing '.' from diagnostics.
4566 * c.opt (Wwrite-strings_: Avoid '`' in help text.
4567
d5478783
JM
45682010-11-10 Joseph Myers <joseph@codesourcery.com>
4569
4570 * c-common.c (parse_optimize_options): Pass global_dc to
4571 decode_options.
4572 * c-opts.c (c_common_handle_option): Pass &global_options to
4573 set_Wstrict_aliasing.
4574 * c.opt (v): Don't mark Common or document here.
4575
91ebb981
IS
45762010-11-06 Iain Sandoe <iains@gcc.gnu.org>
4577
4578 PR target/44981
4579 * c-format.c (format_type): New type gcc_objc_string_format_type.
4580 (valid_stringptr_type_p): New.
4581 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 4582 (check_format_string): Pass expected type, use
91ebb981
IS
4583 valid_stringptr_type_p (), check that the format string types are
4584 consistent with the format specification.
4585 (decode_format_attr): Warn if NSString is used outside objective-c.
4586 (format_types_orig): Add NSString.
4587 (format_name): New.
4588 (format_flags): New.
4589 (check_format_arg): Handle format strings requiring an external parser.
4590 first_target_format_type: New variable.
4591 (handle_format_attribute): Set up first_target_format_type, pass the
4592 expected format arg string type to check_format_string().
4593 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
4594 * stub-objc.c (objc_string_ref_type_p): New.
4595 (objc_check_format_arg): New.
4596
bede2adc
NP
45972010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
4598
9faeb493 4599 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
4600 * c-common.h (objc_build_class_component_ref): New.
4601 * stub-objc.c (objc_build_class_component_ref): New.
4602
9a179d01
NP
46032010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
4604
4605 * c.opt (Wproperty-assign-default): New option.
4606
22d8d616
NP
46072010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
4608
4609 Implemented -fobjc-std=objc1 flag.
4610 * c.opt (fobjc-std=objc1): New option.
4611
2debdb4f
NP
46122010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
4613
4614 Implemented format and noreturn attributes for Objective-C methods.
4615 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
4616 attribute for Objective-C methods.
4617
ec52b111
JM
46182010-10-31 Jason Merrill <jason@redhat.com>
4619
4620 * c-common.c (conversion_warning, warn_for_collisions_1): Use
4621 EXPR_LOC_OR_HERE.
4622
46a88c12
NP
46232010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
4624
4625 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
4626 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
4627 (objc_add_property_declaration): Removed arguments for copies and
4628 ivar.
4629 (objc_build_getter_call): Renamed to
4630 objc_maybe_build_component_ref.
4631 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4632 (objc_is_property_ref): New.
4633 * c-common.c (c_common_reswords): Removed copies and ivar.
4634 * stub-objc.c (objc_add_property_declaration): Removed arguments
4635 for copies and ivar.
4636 (objc_build_getter_call): Renamed to
4637 objc_maybe_build_component_ref.
4638 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4639 (objc_is_property_ref): New.
9faeb493 4640
1e4bf85b
AC
46412010-10-29 Arnaud Charlet <charlet@adacore.com>
4642 Matthew Gingell <gingell@adacore.com>
4643
4644 * c-ada-spec.c (separate_class_package): New function.
4645 (pp_ada_tree_identifier): Prefix references to C++ classes with the
4646 name of their enclosing package.
4647 (print_ada_declaration): Use separate_class_package.
4648
81f0bab2
JM
46492010-10-27 Jason Merrill <jason@redhat.com>
4650
2b08f2c5
JM
4651 * c-common.c (c_common_reswords): Add __is_literal_type.
4652 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
4653
81f0bab2
JM
4654 * c-common.c (check_case_value): Remove special C++ code.
4655
200290f2
NP
46562010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4657
4658 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
4659 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
4660 and RID_LAST_PATTR.
4661 (objc_add_property_declaration): Added additional arguments.
4662 (objc_property_attribute_kind): Removed.
4663 (objc_set_property_attr): Removed.
4664 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
4665 copy and nonatomic.
4666 * stub-objc.c (objc_add_property_declaration): Added additional
4667 arguments.
4668 (objc_set_property_attr): Removed.
9faeb493 4669
f614132b
NP
46702010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4671
4672 * c-common.h (objc_add_property_variable): Renamed to
4673 objc_add_property_declaration. Added location argument.
4674 * stub-objc.c (objc_add_property_variable): Same change.
4675
b8a18805
NP
46762010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
4677
4678 * c-common.h (objc_maybe_printable_name): New.
4679 * stub-objc.c (objc_maybe_printable_name): New.
4680
30cd1c5d
AS
46812010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4682 Andrew Pinski <pinskia@gmail.com>
4683
4684 * c-common.h (c_common_mark_addressable_vec): Declare.
4685 * c-common.c (c_common_mark_addressable_vec): New function.
4686
249a82c4
NP
46872010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
4688
4689 * c-common.h (objc_set_method_type): Removed.
4690 (objc_add_method_declaration): Added boolean argument.
4691 (objc_start_method_definition): Same change.
4692 (objc_build_method_signature): Same change.
4693 * stub-objc.c (objc_set_method_type): Removed.
4694 (objc_add_method_declaration): Added boolean argument.
4695 (objc_start_method_definition): Same change.
4696 (objc_build_method_signature): Same change.
4697
977e30bc
NP
46982010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
4699
4700 * c-common.h (finish_file): Removed.
4701 (objc_write_global_declarations): New.
4702 * c-opts.c (c_common_parse_file): Do not call finish_file.
4703 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 4704
da57d1b9
NP
47052010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4706
4707 Implemented parsing @synthesize and @dynamic for
4708 Objective-C/Objective-C++.
4709 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
4710 (objc_add_synthesize_declaration): New.
4711 (objc_add_dynamic_declaration): New.
4712 * c-common.c (c_common_reswords): Add synthesize and dynamic.
4713 * stub-objc.c (objc_add_synthesize_declaration): New.
4714 (objc_add_dynamic_declaration): New.
9faeb493 4715
0069111f
MM
47162010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
4717
4718 PR target/46041
4719 * c-cppbuiltin.c (mode_has_fma): Move function here from
4720 builtins.c. Don't use the fma optab, instead just use the
4721 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
4722 using -save-temps.
4723
e426b47b
NP
47242010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4725
4726 Merge from 'apple/trunk' branch on FSF servers.
0069111f 4727
e426b47b
NP
4728 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
4729
9faeb493 4730 Radar 4330422
e426b47b
NP
4731 * c-common.h (objc_non_volatilized_type): New declaration
4732 * stub-objc.c (objc_non_volatilized_type): New stub.
4733
90fbfdc3
NP
47342010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
4735
e426b47b 4736 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
4737
4738 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
4739
9faeb493 4740 Radar 4133425
90fbfdc3 4741 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 4742 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 4743
c37d8c30
IS
47442010-10-17 Iain Sandoe <iains@gcc.gnu.org>
4745
4746 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
4747 * c-common.h (enum rid): Add RID_AT_PACKAGE.
4748 (objc_ivar_visibility_kind): New enum.
4749 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 4750 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
4751 visibility enum.
4752
1b1562a5
MM
47532010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
4754
4755 * c-cppbuiltin.c (builtin_define_float_constants): Emit
4756 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
4757 has the appropriate fma builtins.
4758 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
4759
668ea4b1
IS
47602010-10-14 Iain Sandoe <iains@gcc.gnu.org>
4761
1b1562a5 4762 merge from FSF apple 'trunk' branch.
668ea4b1 4763 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 4764
668ea4b1
IS
4765 Radars 4436866, 4505126, 4506903, 4517826
4766 * c-common.c (c_common_resword): Define @property and its attributes.
4767 * c-common.h: Define property attribute enum entries.
4768 (OBJC_IS_PATTR_KEYWORD): New.
4769 (objc_property_attribute_kind): New enum.
4770 Declare objc_set_property_attr (), objc_add_property_variable (),
4771 objc_build_getter_call () and objc_build_setter_call ().
4772 * stub-objc.c (objc_set_property_attr): New stub.
4773 (objc_add_property_variable): Likewise.
4774 (objc_build_getter_call): Likewise.
4775 (objc_build_setter_call) Likewise.
1b1562a5 4776
a1178b30
IS
47772010-10-13 Iain Sandoe <iains@gcc.gnu.org>
4778
1b1562a5 4779 merge from FSF apple 'trunk' branch.
a1178b30
IS
4780 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
4781
4782 Radar 3803157 (method attributes)
4783 * c-common.c (handle_deprecated_attribute): Recognize
4784 objc methods as valid declarations.
4785 * c-common.h: Declare objc_method_decl ().
1b1562a5 4786 * stub-objc.c (objc_method_decl): New stub.
a1178b30 4787
a75bfaa6
JM
47882010-10-08 Joseph Myers <joseph@codesourcery.com>
4789
4790 * c-common.c (parse_optimize_options): Call
4791 decode_cmdline_options_to_array_default_mask before
4792 decode_options. Update arguments to decode_options.
4793 * c-common.h (c_common_init_options_struct): Declare.
4794 * c-opts.c (c_common_init_options_struct): New. Split out from
4795 c_common_init_options.
4796
f05b9d93
NP
47972010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
4798
4799 Implemented fast enumeration for Objective-C.
4800 * c-common.h (objc_finish_foreach_loop): New.
4801 * stub-objc.c (objc_finish_foreach_loop): New.
4802
1ebe4b4f
JM
48032010-10-05 Joseph Myers <joseph@codesourcery.com>
4804
4805 * c-common.h (struct diagnostic_context): Don't declare here.
4806 (c_common_initialize_diagnostics): Declare using
4807 diagnostic_context typedef.
4808 * c-opts.c (c_common_handle_option): Pass global_dc to
4809 handle_generated_option.
4810
d4d24ba4
JM
48112010-10-04 Joseph Myers <joseph@codesourcery.com>
4812
4813 * c-opts.c (c_common_handle_option): Pass &global_options_set to
4814 handle_generated_option.
4815
478a1c5b
ILT
48162010-10-03 Ian Lance Taylor <iant@google.com>
4817
4818 * c.opt (-fplan9-extensions): New option.
4819
82a1c2fe
FXC
48202010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4821
4822 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
4823 Remove.
4824 (c_cpp_builtins): Call functions from cppbuiltin.c instead
4825 of duplicating code.
4826
92902b1b
IS
48272010-09-30 Iain Sandoe <iains@gcc.gnu.org>
4828
4829 * c-common.c: Add two new entries for @optional
4830 and @required keywords.
4831
4832 merge from FSF 'apple/trunk' branch.
4833 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
4834
4835 Radar 4386773
4836 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
4837 objective-c keywords.
4838 (objc_set_method_opt): New declaration.
4839 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 4840
46625112
JM
48412010-09-30 Joseph Myers <joseph@codesourcery.com>
4842
4843 * c-common.c (handle_optimize_attribute): Pass &global_options to
4844 cl_optimization_save and cl_optimization_restore.
4845 * c-opts.c (c_common_handle_option): Pass &global_options to
4846 handle_generated_option.
4847 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
4848 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
4849 &global_options to cl_optimization_restore.
4850
49b91f05
NP
48512010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
4852
4853 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
4854 Objective-C/Objective-C++ keywords.
4855
13ed556f 48562010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 4857
9faeb493
UB
4858 Merge from 'apple/trunk' branch on FSF servers.
4859
a6341d57
NP
4860 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
4861
4862 Radar 4281748
4863 * c-common.h (objc_check_global_decl): New declaration.
4864 * stub-objc.c (objc_check_global_decl): New stub.
4865
f0036cca
JM
48662010-09-29 Joseph Myers <joseph@codesourcery.com>
4867
4868 * c.opt: Don't use VarExists.
4869
e3339d0f
JM
48702010-09-29 Joseph Myers <joseph@codesourcery.com>
4871
4872 * c-common.c (c_cpp_error): Update names of diagnostic_context
4873 members.
4874 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
4875 cl_optimization members.
4876 * c-opts.c (warning_as_error_callback, c_common_handle_option,
4877 sanitize_cpp_opts, finish_options): Update names of cpp_options
4878 members.
4879
1973201f
NP
48802010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
4881
4882 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
4883 (objc_is_reserved_word): Removed.
4884 * c-common.c: Updated comments.
4885 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
4886 objc_is_reserved_word.
4887 * stub-objc.c (objc_is_reserved_word): Removed.
4888
f7e71da5
IS
48892010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4890
9faeb493 4891 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
4892 include attributes.
4893 (objc_start_method_definition): Likewise.
4894 (objc_build_keyword_decl): Likewise.
4895 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
4896 (objc_start_method_definition): Likewise.
4897 (objc_build_keyword_decl): Likewise.
4898
c165dca7
IS
48992010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4900
4901 * c-common.h (objc_start_class_interface): Adjust prototype.
4902 (objc_start_category_interface): Likewise.
4903 (objc_start_protocol): Likewise.
4904 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
4905 (objc_start_class_interface): Likewise.
4906 (objc_start_category_interface): Likewise.
4907
7458026b
ILT
49082010-09-27 Ian Lance Taylor <iant@google.com>
4909
4910 * c-common.c (c_common_attribute_table): Add no_split_stack.
4911 (handle_no_split_stack_attribute): New static function.
4912
b581b85b
NP
49132010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
4914
9faeb493 4915 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
4916
4917 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
4918
9faeb493 4919 Radar 4229905
b581b85b
NP
4920 * c-common.h (objc_have_common_type): New declaration.
4921 * stub-objc.c (objc_have_common_type): New stub.
4922
4923 2005-06-22 Ziemowit Laski <zlaski@apple.com>
4924
4925 Radar 4154928
4926 * c-common.h (objc_common_type): New prototype.
9faeb493 4927 * stub-objc.c (objc_common_type): New stub.
b581b85b 4928
46a4da10
JH
49292010-09-24 Jan Hubicka <jh@suse.cz>
4930
4931 * c-common.c (handle_leaf_attribute): New function.
4932 (struct attribute_spec c_common_att): Add leaf.
4933
e200444e
JM
49342010-09-22 Joseph Myers <joseph@codesourcery.com>
4935
4936 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
4937 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
4938 -dump, -dump=, -imacros, -imacros=, -include, -include=,
4939 -include-barrier, -include-directory, -include-directory=,
4940 -include-directory-after, -include-directory-after=,
4941 -include-prefix, -include-prefix=, -include-with-prefix,
4942 -include-with-prefix=, -include-with-prefix-after,
4943 -include-with-prefix-after=, -include-with-prefix-before,
4944 -include-with-prefix-before=, -no-integrated-cpp,
4945 -no-line-commands, -no-standard-includes, -no-warnings, -output,
4946 -output=, -pedantic, -pedantic-errors, -preprocess,
4947 -print-missing-file-dependencies, -trace-includes, -traditional,
4948 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
4949 -user-dependencies, -verbose, -write-dependencies,
4950 -write-user-dependencies, no-integrated-cpp, traditional): New.
4951
29a80ea6
NP
49522010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
4953
4954 PR objc/23710
ac1fc2fc
NP
4955 * c-common.h (objc_start_method_definition): Return bool instead
4956 of void.
4957 * stub-objc.c (objc_start_method_definition): Return bool instead
4958 of void.
4959
49602010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
4961
4962 PR objc/25965
4963 * c-common.h (objc_get_interface_ivars): New declaration.
4964 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 4965
de621752
ILT
49662010-09-15 Ian Lance Taylor <iant@google.com>
4967
4968 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 4969 messages. Remove period at end of warning message.
de621752 4970
ba885ec5
NS
49712010-09-09 Nathan Sidwell <nathan@codesourcery.com>
4972
4973 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
4974 (handle_alias_attribute): ... here.
4975 (handle_ifunc_attribute): New.
4976
c5ee1358
MM
49772010-09-06 Mark Mitchell <mark@codesourcery.com>
4978
4979 * c-common.h (do_warn_double_promotion): Declare.
4980 * c-common.c (do_warn_double_promotion): Define.
4981
0a0b3574
MM
49822010-09-05 Mark Mitchell <mark@codesourcery.com>
4983
4984 * c.opt (Wdouble-promotion): New.
4985
d1779886
JM
49862010-09-02 Joseph Myers <joseph@codesourcery.com>
4987
4988 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
4989 fvtable-thunks, fxref): Mark no longer supported in help text.
4990
2d2bd949
JM
49912010-09-02 Joseph Myers <joseph@codesourcery.com>
4992
4993 * c.opt (Wimport, fall-virtual, falt-external-templates,
4994 fdefault-inline, fenum-int-equiv, fexternal-templates,
4995 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
4996 fname-mangling-version-, fnew-abi, fnonnull-objects,
4997 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
4998 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
4999 applicable.
5000 (fhandle-exceptions): Mark with Alias and Warn.
5001 * c-opts.c (c_common_handle_option): Don't handle options marked
5002 as ignored.
5003
5de8299c
JM
50042010-09-02 Joseph Myers <joseph@codesourcery.com>
5005
5006 * c.opt (Wcomments, Werror-implicit-function-declaration,
5007 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
5008 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
5009 aliases.
5010 * c-common.c (option_codes): Use OPT_Wcomment instead of
5011 OPT_Wcomments.
5012 * c-opts.c (warning_as_error_callback, c_common_handle_option):
5013 Don't handle options marked as aliases.
5014
0ceb0201
RG
50152010-08-25 Richard Guenther <rguenther@suse.de>
5016
5017 * c-common.c (c_common_get_alias_set): Remove special
5018 handling for pointers.
5019
ac47786e
NF
50202010-08-20 Nathan Froyd <froydnj@codesourcery.com>
5021
5022 * c-common.c: Use FOR_EACH_VEC_ELT.
5023 * c-gimplify.c: Likewise.
5024 * c-pragma.c: Likewise.
5025
c878765b
JM
50262010-08-16 Joseph Myers <joseph@codesourcery.com>
5027
5028 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
5029 RejectDriver.
5030 (MMDX): Change back to MMD. Mark NoDriverArg instead of
5031 RejectDriver.
5032 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
5033 instead of OPT_MDX and OPT_MMDX.
5034
603349bf
JM
50352010-08-16 Joseph Myers <joseph@codesourcery.com>
5036
5037 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
5038
644fa7ac
JM
50392010-08-12 Joseph Myers <joseph@codesourcery.com>
5040
5041 * c.opt (MD, MMD): Change to MDX and MMDX.
5042 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
5043
481e1176
JM
50442010-08-11 Joseph Myers <joseph@codesourcery.com>
5045
5046 * c-opts.c (c_common_handle_option): Call handle_generated_option
5047 instead of handle_option.
5048
ac8dc9f7
NF
50492010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5050
5051 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
5052 (maybe_apply_renaming_pragma): Delete unneeded declarations.
5053
4f8c876d
NF
50542010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5055
5056 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
5057 (pending_redefine_extname): Change type to a VEC.
5058 (add_to_renaming_pragma_list): Update for new type of
5059 pending_redefine_extname.
ac8dc9f7 5060 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 5061
3b0c690e
AC
50622010-08-04 Arnaud Charlet <charlet@adacore.com>
5063
5064 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
5065 visited.
5066 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
5067 decide whether a type has already been declared/seen.
5068 Do not go to the original type.
5069 (dump_nested_types): New parameter forward.
5070 Generate forward declaration if needed and mark type as visited.
5071 (print_ada_declaration): Call dump_nested_types if not already done.
5072 Mark types as visited.
5073
1890bccc
JM
50742010-08-03 Joseph Myers <joseph@codesourcery.com>
5075
5076 * c.opt (-print-pch-checksum): Remove option.
5077 * c-opts.c (c_common_handle_option): Don't handle
5078 OPT_print_pch_checksum.
5079
5f20c657
JM
50802010-07-27 Joseph Myers <joseph@codesourcery.com>
5081
5082 * c-common.h (c_common_handle_option): Update prototype and return
5083 value type.
5084 * c-opts.c (c_common_handle_option): Update prototype and return
5085 value type. Update calls to handle_option and
5086 enable_warning_as_error.
5087
f551f80c
JJ
50882010-07-27 Jakub Jelinek <jakub@redhat.com>
5089
5090 PR c/45079
5091 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
5092
61ff2bdc
JM
50932010-07-27 Joseph Myers <joseph@codesourcery.com>
5094
5095 * c-common.h (c_common_missing_argument): Remove.
5096 * c-opts.c (c_common_missing_argument): Remove.
5097 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
5098 idirafter, imacros, include, isysroot, isystem, iquote): Add
5099 MissingArgError.
5100 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
5101
7a9bf9a4
JM
51022010-07-27 Joseph Myers <joseph@codesourcery.com>
5103
5104 * c-common.h (c_common_option_lang_mask,
5105 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
5106 New.
5107 (c_common_init_options): Update prototype.
5108 * c-opts.c (c_common_option_lang_mask): New.
5109 (c_common_initialize_diagnostics): Split out of
5110 c_common_init_options.
5111 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
5112 New.
5113 (c_common_init_options): Update prototype. Use decoded options in
5114 search for -lang-asm.
5115
910ad8de
NF
51162010-07-15 Nathan Froyd <froydnj@codesourcery.com>
5117
5118 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
5119 * c-format.c: Likewise.
5120
718f9c0f
MLI
51212010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
5122
5123 * c-common.h: Include diagnostic-core.h. Error if already
5124 included.
5125 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
5126
4d451982
MLI
51272010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
5128
adfac8df 5129 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
5130 Do not include expr.h
5131 (vector_mode_valid_p): Move here.
5132
119fe915
SB
51332010-06-21 DJ Delorie <dj@redhat.com>
5134
5135 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
5136 allow these pragmas anywhere.
5137
51382010-06-14 Jakub Jelinek <jakub@redhat.com>
5139
5140 PR bootstrap/44509
5141 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
5142 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
5143 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
5144 ggc_strdup instead of xstrdup.
5145
51462010-06-10 Jakub Jelinek <jakub@redhat.com>
5147
5148 * c-cppbuiltin.c: Include cpp-id-data.h.
5149 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
5150 (lazy_hex_fp_value): New function.
5151 (builtin_define_with_hex_fp_value): Provide definitions lazily.
5152
6662d794
MLI
51532010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5154
5155 * c-gimplify.c: Do not include tree-flow.h
5156
38f8b050
JR
51572010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
5158
5159 PR other/44034
5160 * c-common.c: Rename targetm member:
5161 targetm.enum_va_list -> targetm.enum_va_list_p
5162
9589f23e
AS
51632010-06-28 Anatoly Sokolov <aesok@post.ru>
5164
5165 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
5166
3b06d379
SB
51672010-06-28 Steven Bosscher <steven@gcc.gnu.org>
5168
5169 * c-cppbuiltin.c: Do not include except.h.
5170
d166d4c3
AK
51712010-06-24 Andi Kleen <ak@linux.intel.com>
5172
9faeb493
UB
5173 * c-common.c (warn_for_omitted_condop): New.
5174 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 5175
70cb8be6
JM
51762010-06-21 Joseph Myers <joseph@codesourcery.com>
5177
5178 * c.opt (lang-objc): Remove.
5179 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
5180
a4c97feb
JR
51812010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
5182
5183 * c-opts.c: Include "tm_p.h".
5184
6e2f1956
JM
51852010-06-20 Joseph Myers <joseph@codesourcery.com>
5186
5187 * c-common.c (parse_optimize_options): Update call to
5188 decode_options.
5189
bc87224e
NF
51902010-06-18 Nathan Froyd <froydnj@codesourcery.com>
5191
5192 * c-common.c (record_types_used_by_current_var_decl): Adjust for
5193 new type of types_used_by_cur_var_decl.
5194
b49cf425
JR
51952010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
5196
5197 PR bootstrap/44512
5198 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
5199 for C++ standard compliance.
5200
59f9c2ed
JM
52012010-06-16 Jason Merrill <jason@redhat.com>
5202
5203 * c.opt: Add -Wnoexcept.
5204
33766b66
RG
52052010-06-16 Richard Guenther <rguenther@suse.de>
5206
5207 PR c/44555
5208 * c-common.c (c_common_truthvalue_conversion): Remove
5209 premature and wrong optimization concering ADDR_EXPRs.
5210
eff7e30c
AC
52112010-06-15 Arnaud Charlet <charlet@adacore.com>
5212
5213 * c-ada-spec.c (dump_sloc): Remove column info.
5214 (is_simple_enum): New function.
5215 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
5216 enum types when relevant.
5217
6312e84d
MLI
52182010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
5219
9faeb493 5220 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
5221 location.
5222
1cb42611
JM
52232010-06-10 Joseph Myers <joseph@codesourcery.com>
5224
5225 * c-opts.c (c_common_handle_option): Don't handle
5226 OPT_fshow_column.
5227
a9429e29
LB
52282010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5229
5230 * c-pragma.c (push_alignment): Use typed GC allocation.
5231 (handle_pragma_push_options): Likewise.
5232
5233 * c-common.c (parse_optimize_options): Likewise.
5234
5235 * c-common.h (struct sorted_fields_type): Add variable_size GTY
5236 option.
5237
5498f011
JM
52382010-06-07 Joseph Myers <joseph@codesourcery.com>
5239
5240 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
5241 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
5242 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
5243 flag_signed_bitfields, warn_strict_null_sentinel,
5244 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
5245 flag_gen_declaration, flag_no_gnu_keywords,
5246 flag_implement_inlines, flag_implicit_templates,
5247 flag_implicit_inline_templates, flag_optional_diags,
5248 flag_elide_constructors, flag_default_inline, flag_rtti,
5249 flag_conserve_space, flag_access_control, flag_check_new,
5250 flag_new_for_scope, flag_weak, flag_working_directory,
5251 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
5252 flag_enforce_eh_specs, flag_threadsafe_statics,
5253 flag_pretty_templates): Remove.
5254 * c-common.h (flag_preprocess_only, flag_nil_receivers,
5255 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
5256 flag_replace_objc_classes, flag_undef, flag_no_builtin,
5257 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
5258 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
5259 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
5260 flag_no_gnu_keywords, flag_implement_inlines,
5261 flag_implicit_templates, flag_implicit_inline_templates,
5262 flag_optional_diags, flag_elide_constructors, flag_default_inline,
5263 flag_rtti, flag_conserve_space, flag_access_control,
5264 flag_check_new, flag_new_for_scope, flag_weak,
5265 flag_working_directory, flag_use_cxa_atexit,
5266 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
5267 flag_threadsafe_statics, flag_pretty_templates,
5268 warn_strict_null_sentinel): Remove.
5269 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
5270 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
5271 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
5272 fimplicit-inline-templates, fimplicit-templates,
5273 flax-vector-conversions, fms-extensions, fnil-receivers,
5274 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
5275 frtti, fshort-double, fshort-enums, fshort-wchar,
5276 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
5277 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
5278 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
5279 gen-decls, undef): Use Var.
5280 (fdefault-inline, foptional-diags): Document as doing nothing.
5281 * c-opts.c (c_common_handle_option): Remove cases for options now
5282 using Var. Mark ignored options as such.
5283
39dabefd
SB
52842010-06-05 Steven Bosscher <steven@gcc.gnu.org>
5285
9faeb493 5286 * c-common.c: Moved to here from parent directory.
39dabefd
SB
5287 * c-common.def: Likewise.
5288 * c-common.h: Likewise.
5289 * c-cppbuiltin.c: Likewise.
5290 * c-dump.c: Likewise.
5291 * c-format.c: Likewise.
5292 * c-format.h : Likewise.
5293 * c-gimplify.c: Likewise.
5294 * c-lex.c: Likewise.
5295 * c-omp.c: Likewise.
5296 * c.opt: Likewise.
5297 * c-opts.c: Likewise.
5298 * c-pch.c: Likewise.
5299 * c-ppoutput.c: Likewise.
5300 * c-pragma.c: Likewise.
5301 * c-pragma.h: Likewise.
5302 * c-pretty-print.c: Likewise.
5303 * c-pretty-print.h: Likewise.
5304 * c-semantics.c: Likewise.
5305 * stub-objc.c: Likewise.
5306
5307 * c-common.c: Include gt-c-family-c-common.h.
5308 * c-pragma.c: Include gt-c-family-c-pragma.h.
5309\f
5624e564 5310Copyright (C) 2010-2015 Free Software Foundation, Inc.
39dabefd
SB
5311
5312Copying and distribution of this file, with or without modification,
5313are permitted in any medium without royalty provided the copyright
5314notice and this notice are preserved.