]> gcc.gnu.org Git - gcc.git/blame - gcc/c-family/ChangeLog
Daily bump.
[gcc.git] / gcc / c-family / ChangeLog
CommitLineData
c1822f9c
MLI
12015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
2
3 PR c/49654
4 PR c/49655
5 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
6 options and options not valid for the current language.
7
d5398058
PP
82015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
9
10 * c-indentation.c (should_warn_for_misleading_indentation):
11 Float out and consolidate the calls to get_visual_column that
12 are passed guard_exploc as an argument. Compare
13 next_stmt_vis_column with guard_line_first_nws instead of with
14 body_line_first_nws.
15
6b333269
NS
162015-09-22 Nathan Sidwell <nathan@codesourcery.com>
17
18 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
19 Wnamespaces): New C++ warnings.
20
a75f1574
JM
212015-09-22 Jason Merrill <jason@redhat.com>
22
23 * c-common.h (abi_compat_version_crosses): New.
24 (warn_abi_version): Declare.
25 * c-common.c: Define it.
26 * c-opts.c (c_common_post_options): Handle it.
27 flag_abi_compat_version defaults to 8.
28
bdaaa8b7
VV
292015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
30
31 Complete the implementation of N4230, Nested namespace definition.
32 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
33 __cpp_nested_namespace_definitions.
34
eaa797e8
MLI
352015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
36
37 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
38
c4914de6
MLI
392015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
40
41 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
42 when warning.
43 * c-pragma.h (pragma_lex): Add optional loc argument.
44
fcb87c50
MM
452015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
46
47 * c-format.c (check_format_arg): Adjust to use common block size in all
48 object pools.
49
31bdd08a
DM
502015-09-15 David Malcolm <dmalcolm@redhat.com>
51
52 * c-format.c (location_from_offset): Update for change in
53 signature of location_get_source_line.
54 * c-indentation.c (get_visual_column): Likewise.
55 (line_contains_hash_if): Likewise.
56
aa9f4b4c
MP
572015-09-14 Marek Polacek <polacek@redhat.com>
58
59 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
60 setting various warnings.
61
aa256c4a
MP
622015-09-14 Marek Polacek <polacek@redhat.com>
63
64 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
65 a negative value.
66
0f876f22
MW
672015-09-11 Mark Wielaard <mjw@redhat.com>
68
69 PR c/28901
70 * c.opt (Wunused-variable): Option from common.opt.
71 (Wunused-const-variable): New option.
72
273aa49e
PC
732015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
74
75 PR c++/53184
76 * c.opt ([Wsubobject-linkage]): Add.
77
1807ffc1
MS
782015-09-03 Martin Sebor <msebor@redhat.com>
79
80 PR c/66516
81 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
82 functions.
83 * c-common.c (reject_gcc_builtin): Define.
84
38942840
BI
852015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
86
87 PR middle-end/60586
88 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
89 prototype.
90 * c-gimplify.c (c_gimplify_expr): Added a call to the function
91 cilk_gimplify_call_params_in_spawned_fn.
92 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
93 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
94 unwrapping.
95
c316b5e4
MP
962015-08-25 Marek Polacek <polacek@redhat.com>
97
98 PR middle-end/67330
99 * c-common.c (handle_weak_attribute): Don't check whether the
100 visibility can be changed here.
101
584a7c46
MLI
1022015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
103
104 * c-lex.c (c_lex_with_flags): Use explicit locations.
105
a79683d5
TS
1062015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
107
108 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
109 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
110
61717a45
FXC
1112015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
112
113 PR middle-end/36757
114 * c-common.c (check_builtin_function_arguments): Add check
115 for BUILT_IN_SIGNBIT argument.
116
329524f5
PC
1172015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
118
119 PR c++/67160
120 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
121 in c++1z mode.
122
4ee55665
MP
1232015-08-17 Marek Polacek <polacek@redhat.com>
124
125 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
126 with whitespaces before qualifier names.
127
b893e375
MP
1282015-08-12 Marek Polacek <polacek@redhat.com>
129
130 PR c++/55095
131 * c-common.c (maybe_warn_shift_overflow): Properly handle
132 left-shifting 1 into the sign bit.
133
c2d89095
MLI
1342015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
135
136 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
137
971e17ff
AS
1382015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
139 Braden Obrzut <admin@maniacsvault.net>
140 Jason Merrill <jason@redhat.com>
141
142 Add C++ Concepts TS support.
143 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
144 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
145 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
146 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
147 * c-opts.c (set_std_cxx1z): Set flag_concepts.
148 * c.opt (fconcepts): New.
149
8ebca419
PP
1502015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
151
152 * c-indentation.c (should_warn_for_misleading_indentation):
153 Improve heuristics.
154
1a1e101f
PP
1552015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
156
157 * c-indentation.c (get_visual_column): Add parameter first_nws,
158 use it. Update comment documenting the function.
159 (is_first_nonwhitespace_on_line): Remove.
160 (should_warn_for_misleading_indentation): Replace usage of
161 of is_first_nonwhitespace_on_line with get_visual_column.
162
992118a1
PP
1632015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
164
165 * c-indentation.h (struct token_indent_info): Define.
166 (get_token_indent_info): Define.
167 (warn_for_misleading_information): Declare.
168 * c-common.h (warn_for_misleading_information): Remove.
169 * c-identation.c (warn_for_misleading_indentation):
170 Change declaration to take three token_indent_infos. Adjust
171 accordingly.
172 * c-identation.c (should_warn_for_misleading_indentation):
173 Likewise. Bail out early if the body is a compound statement.
174 (guard_tinfo_to_string): Define.
175
e8fa3817
JM
1762015-07-30 Jason Merrill <jason@redhat.com>
177
178 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
179 '*' for reference decay.
180
173864e8
MP
1812015-07-30 Marek Polacek <polacek@redhat.com>
182
183 * c-common.c (warn_tautological_cmp): Bail for float types.
184
f2afe6dd
MP
1852015-07-27 Marek Polacek <polacek@redhat.com>
186
187 PR bootstrap/67030
188 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
189
05b28fd6
MP
1902015-07-27 Marek Polacek <polacek@redhat.com>
191
192 PR c++/66555
193 PR c/54979
194 * c-common.c (find_array_ref_with_const_idx_r): New function.
195 (warn_tautological_cmp): New function.
196 * c-common.h (warn_tautological_cmp): Declare.
197 * c.opt (Wtautological-compare): New option.
198
5a5062b8
MP
1992015-07-23 Marek Polacek <polacek@redhat.com>
200
201 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
202 (ubsan_instrument_shift): Likewise.
203
dc891fe7
MP
2042015-07-23 Marek Polacek <polacek@redhat.com>
205
206 PR sanitizer/66908
207 * c-ubsan.c: Include gimplify.h.
208 (ubsan_instrument_division): Unshare OP0 and OP1.
209 (ubsan_instrument_shift): Likewise.
210
451b5e48
MP
2112015-07-20 Marek Polacek <polacek@redhat.com>
212 Richard Sandiford <richard.sandiford@arm.com>
213
214 PR c++/55095
215 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
216 Use EXPR_LOC_OR_LOC.
217 (maybe_warn_shift_overflow): New function.
218 * c-common.h (maybe_warn_shift_overflow): Declare.
219 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
220 * c.opt (Wshift-overflow): New option.
221
fb0b2914
ML
2222015-07-16 Martin Liska <mliska@suse.cz>
223
224 * c-format.c (static void check_format_info_main): Use
225 object_allocator instead of pool_allocator.
226 (check_format_arg): Likewise.
227 (check_format_info_main): Likewise.
228
903f5c23
AM
2292015-07-15 Andrew MacLeod <amacleod@redhat.com>
230
231 * c-opts.c: Remove multiline #include comment.
232
026c3cfd
AH
2332015-07-12 Aldy Hernandez <aldyh@redhat.com>
234
235 * c-common.c: Fix double word typos.
236
bb49ee66
EB
2372015-07-10 Eric Botcazou <ebotcazou@adacore.com>
238
239 * c-ada-spec.h (cpp_operation): Revert latest change.
240 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
241 constructors and destructors.
242
1916bcb5
AM
2432015-07-09 Andrew MacLeod <amacleod@redhat.com>
244
245 * c-common.h: Adjust includes for flags.h changes.
246 * stub-objc.c: Likewise.
026c3cfd 247
a9dcd529
EB
2482015-07-08 Eric Botcazou <ebotcazou@adacore.com>
249
250 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
251 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
252
b03b462f
JJ
2532015-07-08 Jakub Jelinek <jakub@redhat.com>
254
255 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
256 are to be removed, return NULL rather than original clauses list.
257
c7131fb2
AM
2582015-07-07 Andrew MacLeod <amacleod@redhat.com>
259
260 * array-notation-common.c: Adjust includes.
261 * c-ada-spec.c: Likewise.
262 * c-cilkplus.c: Likewise.
263 * c-common.h: Likewise.
264 * c-cppbuiltin.c: Likewise.
265 * c-dump.c: Likewise.
266 * c-format.c: Likewise.
267 * c-gimplify.c: Likewise.
268 * c-indentation.c: Likewise.
269 * c-lex.c: Likewise.
270 * c-omp.c: Likewise.
271 * c-opts.c: Likewise.
272 * c-pch.c: Likewise.
273 * c-ppoutput.c: Likewise.
274 * c-pragma.c: Likewise.
275 * c-pretty-print.c: Likewise.
276 * c-semantics.c: Likewise.
277 * c-ubsan.c: Likewise.
278 * cilk.c: Likewise.
279 * stub-objc.c: Likewise.
280
2a7fb83f
EB
2812015-07-07 Eric Botcazou <ebotcazou@adacore.com>
282
283 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
284 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
285
a03c9bf1
JM
2862015-07-01 Jason Merrill <jason@redhat.com>
287
36a85135
JM
288 * c-common.h (D_CXX11): Rename from D_CXX0X.
289 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
290 * c-common.c: Adjust.
291
e7fa68d5
JM
292 * c-opts.c (c_common_post_options): Default to C++14.
293
a03c9bf1
JM
294 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
295
fe95b036
ESR
2962015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
297
298 Implement N4197 - Adding u8 character literals
a64be36b
EB
299 * c-family/c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
300 CPP_CHAR.
301 * c-family/c-common.c (c_parse_error): Print CPP_UTF8CHAR and
302 CPP_UTF8CHAR_USERDEF tokens.
303 * c-family/c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
304 and CPP_UTF8CHAR tokens.
305 (lex_charconst): Treat CPP_UTF8CHAR token.
fe95b036 306
da2e71c9
MLI
3072015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
308
309 PR fortran/66605
310 * c-common.c (do_warn_unused_parameter): Move here.
311 * c-common.h (do_warn_unused_parameter): Declare.
312
b155cfd9
MP
3132015-06-29 Marek Polacek <polacek@redhat.com>
314
315 PR c/66322
316 * c-common.c (check_case_bounds): Add bool * parameter. Set
317 OUTSIDE_RANGE_P.
318 (c_add_case_label): Add bool * parameter. Pass it down to
319 check_case_bounds.
320 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
321 warning here.
322 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
323 declarations.
324
31521951
MP
3252015-06-27 Marek Polacek <polacek@redhat.com>
326
327 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
328 or VECTOR_INTEGER_TYPE_P throughout.
329 * c-gimplify.c: Likewise.
330
22d03525
MP
3312015-06-26 Marek Polacek <polacek@redhat.com>
332
333 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
334 * c-common.c (c_fully_fold_internal): Likewise.
335 (c_alignof_expr): Likewise.
336 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
337 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
338 * cilk.c (create_parm_list): Likewise.
339
af05e6e5
MP
3402015-06-26 Marek Polacek <polacek@redhat.com>
341
342 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
343
f0889939
AM
3442015-06-25 Andrew MacLeod <amacleod@redhat.com>
345
346 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
347 * c-gimplify.c: Likewise.
348 * c-pragma.c: Likewise.
349 * c-ubsan.c: Likewise.
350 * cilk.c: Likewise.
351
ca752f39
RS
3522015-06-25 Richard Sandiford <richard.sandiford@arm.com>
353
354 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
355 ggc_hasher.
356
16a16ec7
AM
3572015-06-25 Andrew MacLeod <amacleod@redhat.com>
358
359 * cilk.c: Move calls.h after tm.h in the include chain.
360
0ae9bd27
MP
3612015-06-25 Marek Polacek <polacek@redhat.com>
362
363 * array-notation-common.c: Use VAR_P throughout.
364 * c-ada-spec.c: Likewise.
365 * c-common.c: Likewise.
366 * c-format.c: Likewise.
367 * c-gimplify.c: Likewise.
368 * c-omp.c: Likewise.
369 * c-pragma.c: Likewise.
370 * c-pretty-print.c: Likewise.
371 * cilk.c: Likewise.
372
62f9079a
MP
3732015-06-25 Marek Polacek <polacek@redhat.com>
374
375 * cilk.c (extract_free_variables): Use is_global_var.
376
0fa16060
RS
3772015-06-23 Richard Sandiford <richard.sandiford@arm.com>
378
379 * c-common.c: Don't include target-def.h.
380
a68ae2e1
MP
3812015-06-23 Marek Polacek <polacek@redhat.com>
382
383 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
384 when comparing INTEGER_CSTs.
385
c6a2f2d9
PMR
3862015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
387
388 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
389 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
390 (dump_ada_template): Skip partially specialized types.
391
6b4db501
MM
3922015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
393
394 * c-common.c (scalar_to_vector): Use std::swap instead of manually
395 swapping.
396
abb226c9
AM
3972015-06-17 Andrew MacLeod <amacleod@redhat.com>
398
399 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
400 * c-ada-spec.c: Likewise.
401 * c-cilkplus.c: Likewise.
402 * c-common.c: Likewise.
403 * c-common.h: Likewise.
404 * c-cppbuiltin.c: Likewise.
405 * c-dump.c: Likewise.
406 * c-format.c: Likewise.
407 * c-gimplify.c: Likewise.
408 * c-indentation.c: Likewise.
409 * c-lex.c: Likewise.
410 * c-omp.c: Likewise.
411 * c-opts.c: Likewise.
412 * c-pch.c: Likewise.
413 * c-ppoutput.c: Likewise.
414 * c-pragma.c: Likewise.
415 * c-pretty-print.c: Likewise.
416 * c-semantics.c: Likewise.
417 * c-ubsan.c: Likewise.
418 * cilk.c: Likewise.
419 * stub-objc.c: Likewise.
420
076fecad
PP
4212015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
422
423 PR c++/65168
424 * c-common.c (c_common_truthvalue_conversion): Warn when
425 converting an address of a reference to a truth value.
426
13fdf2e2
AM
4272015-06-08 Andrew MacLeod <amacleod@redhat.com>
428
429 * array-notation-common.c : Adjust include files.
430 * c-ada-spec.c : Likewise.
431 * c-cilkplus.c : Likewise.
432 * c-common.c : Likewise.
433 * c-common.h : Likewise.
434 * c-cppbuiltin.c : Likewise.
435 * c-dump.c : Likewise.
436 * c-format.c : Likewise.
437 * c-gimplify.c : Likewise.
438 * c-indentation.c : Likewise.
439 * c-lex.c : Likewise.
440 * c-omp.c : Likewise.
441 * c-opts.c : Likewise.
442 * c-pch.c : Likewise.
443 * c-ppoutput.c : Likewise.
444 * c-pragma.c : Likewise.
445 * c-pretty-print.c : Likewise.
446 * c-semantics.c : Likewise.
447 * c-ubsan.c : Likewise.
448 * cilk.c : Likewise.
449 * stub-objc.c : Likewise.
450
a1661b90
MP
4512015-06-08 Marek Polacek <polacek@redhat.com>
452
453 PR c/66415
454 * c-format.c (location_from_offset): Return LOC if LINE is null.
455
d7438551
AH
4562015-06-05 Aldy Hernandez <aldyh@redhat.com>
457
458 * c-common.h (c_parse_final_cleanups): New prototype.
459 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
460
ecb9f223
AM
4612015-06-04 Andrew MacLeod <amacleod@redhat.com>
462
463 * array-notation-common.c: Adjust includes for restructured coretypes.h.
464 * c-ada-spec.c: Likewise.
465 * c-cilkplus.c: Likewise.
466 * c-common.c: Likewise.
467 * c-common.h: Likewise.
468 * c-cppbuiltin.c: Likewise.
469 * c-dump.c: Likewise.
470 * c-format.c: Likewise.
471 * c-gimplify.c: Likewise.
472 * c-indentation.c: Likewise.
473 * c-lex.c: Likewise.
474 * c-omp.c: Likewise.
475 * c-opts.c: Likewise.
476 * c-pch.c: Likewise.
477 * c-ppoutput.c: Likewise.
478 * c-pragma.c: Likewise.
479 * c-pretty-print.c: Likewise.
480 * c-semantics.c: Likewise.
481 * c-ubsan.c: Likewise.
482 * cilk.c: Likewise.
483 * stub-objc.c: Likewise.
484
6ac48155
DM
4852015-06-02 David Malcolm <dmalcolm@redhat.com>
486
487 PR c/66220:
488 * c-indentation.c (should_warn_for_misleading_indentation): Use
489 expand_location rather than expand_location_to_spelling_point.
490 Don't warn if the guarding statement is more indented than the
491 next/body stmts.
492
773ce42e
DM
4932015-06-02 David Malcolm <dmalcolm@redhat.com>
494
495 * c-indentation.c (warn_for_misleading_indentation): Bail out
496 immediately if -Wmisleading-indentation isn't enabled.
497
4fef8379
ML
4982015-06-01 Martin Liska <mliska@suse.cz>
499
500 * c-format.c (check_format_arg):Use new type-based pool allocator.
501 (check_format_info_main) Likewise.
502
1edfb384
EB
5032015-05-31 Eric Botcazou <ebotcazou@adacore.com>
504
505 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
506 (has_nontrivial_methods): Likewise.
507
9677ef52
MP
5082015-05-25 Marek Polacek <polacek@redhat.com>
509
510 * c-ubsan.c (ubsan_instrument_shift): Use type0.
511
fd5c817a
MP
5122015-05-22 Marek Polacek <polacek@redhat.com>
513
514 PR c/47043
515 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
516
a2f45fe6 5172015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
581edfa3
TS
518
519 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
520 STACK_GROWS_DOWNWARD.
521
a2f45fe6 5222015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
62f9f30b
TS
523
524 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
525 STACK_GROWS_DOWNWARD rather than if it is defined.
526
0fee2ac2
MLI
5272015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
528
529 PR c/52952
530 * c-format.c (location_column_from_byte_offset): New.
531 (location_from_offset): New.
532 (struct format_wanted_type): Add offset_loc field.
533 (check_format_info): Move handling of location for extra arguments
534 closer to the point of warning.
535 (check_format_info_main): Pass the result of location_from_offset
536 to warning_at.
537 (format_type_warning): Pass the result of location_from_offset
538 to warning_at.
539
cf4ef6f7
MP
5402015-05-20 Marek Polacek <polacek@redhat.com>
541
542 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
543
3a65ee74
MP
5442015-05-20 Marek Polacek <polacek@redhat.com>
545
546 * c-ada-spec.c (dump_sloc): Use DECL_P.
547
21b634ae
MP
5482015-05-20 Marek Polacek <polacek@redhat.com>
549
550 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
551 * c-common.c: Likewise.
552
0e50b624
DM
5532015-05-19 David Malcolm <dmalcolm@redhat.com>
554
555 * c-common.h (fe_file_change): Strengthen param from
556 const line_map * to const line_map_ordinary *.
557 (pp_file_change): Likewise.
558 * c-lex.c (fe_file_change): Likewise.
559 (cb_define): Use linemap_check_ordinary when invoking
560 SOURCE_LINE.
561 (cb_undef): Likewise.
562 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
563 invoking cb_file_change.
564 (c_finish_options): Likewise.
565 (push_command_line_include): Likewise.
566 (cb_file_change): Strengthen param "new_map" from
567 const line_map * to const line_map_ordinary *.
568 * c-ppoutput.c (cb_define): Likewise for local "map".
569 (pp_file_change): Likewise for param "map" and local "from".
570
fab27f52
MM
5712015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
572
573 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
574
2fe1d762
TV
5752015-05-18 Tom de Vries <tom@codesourcery.com>
576
577 * c-common.c (build_va_arg_1): New function.
578 (build_va_arg): Add address operator to va_list operand if necessary.
579
7a37fa90
MM
5802015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
581
582 PR c/48956
583 * c-common.c (int_safely_convertible_to_real_p): Define.
584 (unsafe_conversion_p): Check conversions involving complex types.
585 (conversion_warning): Add new warning message for conversions which
586 discard imaginary component.
587 * c-common.h: (enum conversion_safety): Add new enumerator for such
588 conversions.
589
3aa3c9fc
MP
5902015-05-14 Marek Polacek <polacek@redhat.com>
591
592 PR c/66066
593 PR c/66127
594 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
595 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
596 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
597 use it. If FOR_INT_CONST, require that all evaluated operands be
598 INTEGER_CSTs.
599
c3388e62
DM
6002015-05-12 David Malcolm <dmalcolm@redhat.com>
601
602 * c-common.h (warn_for_misleading_indentation): New prototype.
603 * c-indentation.c: New file.
604 * c.opt (Wmisleading-indentation): New option.
605
c7b38fd5
TV
6062015-05-12 Tom de Vries <tom@codesourcery.com>
607
608 PR tree-optimization/66010
609 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
610
381bf11e
JM
6112015-05-09 Jason Merrill <jason@redhat.com>
612
edff0c06
JM
613 * c-opts.c (c_common_post_options): Also clear
614 cpp_opts->cpp_warn_cxx11_compat.
615
129211bc
JM
616 * c-common.h (enum cxx_dialect): Add cxx_unset.
617 * c-common.c (cxx_dialect): Initialize to cxx_unset.
618 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
619
381bf11e
JM
620 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
621 (std=gnu++0x): Mark as Undocumented.
622 (std=gnu++1y): Add deprecated message.
623
fe191308
JM
6242015-05-08 Jason Merrill <jason@redhat.com>
625
765189ff
JM
626 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
627 * c-opts.c: Adjust.
628
fe191308
JM
629 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
630
755e528f
MP
6312015-05-08 Marek Polacek <polacek@redhat.com>
632
633 PR c/64918
634 * c.opt (Woverride-init-side-effects): New option.
635
0173bd2a
MP
6362015-05-07 Marek Polacek <polacek@redhat.com>
637
638 PR c/65179
639 * c-common.c (c_fully_fold_internal): Warn when left shifting a
640 negative value.
641 * c.opt (Wshift-negative-value): New option.
642 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
643 when -Wextra and C99/C++11 mode.
644
e0f0d3b9
MP
6452015-05-07 Marek Polacek <polacek@redhat.com>
646 Martin Uecker <uecker@eecs.berkeley.edu>
647
648 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
649 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
650
8243e2a9
JM
6512015-05-05 Jason Merrill <jason@redhat.com>
652
653 * c.opt (Wterminate): New.
654
577cd070
MP
6552015-04-30 Marek Polacek <polacek@redhat.com>
656
657 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
658 require that the non-constant be of a boolean type.
659
0373796b
JT
6602015-04-29 Josh Triplett <josh@joshtriplett.org>
661
e0f0d3b9
MP
662 * c-common.c (handle_section_attribute): Refactor to reduce
663 nesting and distinguish between error cases.
0373796b 664
716c0ba6
MP
6652015-04-29 Marek Polacek <polacek@redhat.com>
666
667 PR c/64610
668 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
669 with 0/1.
670
8848828b
JJ
6712015-04-29 Jakub Jelinek <jakub@redhat.com>
672
673 * c-common.h (omp_clause_mask): Unconditionally define as a class.
674 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
675 HOST_BITS_PER_WIDE_INT.
676
ecd0e562
TV
6772015-04-28 Tom de Vries <tom@codesourcery.com>
678
679 PR tree-optimization/65887
680 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
681
2a877204 6822015-04-28 Eric Botcazou <ebotcazou@adacore.com>
e0f0d3b9 683 Pierre-Marie de Rodat <derodat@adacore.com>
2a877204
EB
684
685 * c-ada-spec.c (in_function): Delete.
686 (dump_generic_ada_node): Do not change in_function and remove the
687 redundant code dealing with it.
688 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
689 (print_ada_methods): Output the static member functions in a nested
690 package after the regular methods as well as associated renamings.
691
4853031e
MP
6922015-04-24 Marek Polacek <polacek@redhat.com>
693
694 PR c/65830
695 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
696 and OPT_Wshift_count_overflow.
697
8c2b7f79
MP
698 PR c/63357
699 * c-common.c (warn_logical_operator): Warn if the operands have the
700 same expressions.
701
b8787813
MP
7022015-04-24 Marek Polacek <polacek@redhat.com>
703
704 PR c/61534
705 * c-common.c (warn_logical_operator): Bail if either operand comes
706 from a macro expansion.
707
8fba1830
BRF
7082015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
709
710 PR target/55143
711 * c-common.c (c_default_pointer_mode): Add definition.
712 * c-common.h (c_default_pointer_mode): Add declaration.
713
17958621
JJ
7142015-03-11 Jakub Jelinek <jakub@redhat.com>
715
716 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
717 on record_builtin_type argument.
718
7ccb1a11
JJ
7192015-03-10 Jakub Jelinek <jakub@redhat.com>
720
721 PR c/65120
722 * c-common.c (warn_logical_not_parentheses): Don't warn for
723 !x == 0 or !x != 0.
724
04fd785e
MP
7252015-03-07 Marek Polacek <polacek@redhat.com>
726
727 PR sanitizer/65280
728 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
729 before trying to figure out whether we have a flexible array member.
730
a4e26206
EB
7312015-03-06 Eric Botcazou <ebotcazou@adacore.com>
732 Jonathan Wakely <jwakely.gcc@gmail.com>
733
734 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
735
0d2489f4
EB
7362015-03-05 Eric Botcazou <ebotcazou@adacore.com>
737
738 PR ada/65319
739 * c-ada-spec.c (print_destructor): Remove obsolete code.
740
83ed54d7
EB
7412015-03-01 Eric Botcazou <ebotcazou@adacore.com>
742
743 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
744 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
745 DECL_TEMPLATE_RESULT emulations.
746 (dump_ada_template)): Add guard for TYPE_METHODS.
747
7631f0e2
MP
7482015-02-27 Marek Polacek <polacek@redhat.com>
749
750 PR c/65040
751 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
752
d1783ae5
KT
7532015-02-27 Kai Tietz <ktietz@redhat.com>
754
755 PR c/35330
756 * c-pragma.c (handle_pragma_weak): Do not try to create
757 weak/alias of declarations not being function, or variable
758 declarations.
759
56a9f6bc
TS
7602015-02-24 Thomas Schwinge <thomas@codesourcery.com>
761
762 PR libgomp/64625
763 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
764 Remove macros.
765 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
766
3d5cb23d
MP
7672015-02-16 Marek Polacek <polacek@redhat.com>
768
769 PR c/65066
770 * c-format.c (check_format_types): Handle null param.
771
fa008882
MP
7722015-02-13 Marek Polacek <polacek@redhat.com>
773
774 PR c/65040
775 * c-format.c (check_format_types): Don't warn about different
776 signedness if the original value is in the range of WANTED_TYPE.
777
785f21af
JM
7782015-02-12 Jason Merrill <jason@redhat.com>
779
780 PR c++/64956
781 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
782 to the current highest version.
783 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
784
4886ec8e
JJ
7852015-02-04 Jakub Jelinek <jakub@redhat.com>
786
787 PR c/64824
788 PR c/64868
789 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
790 instead of RDIV_EXPR. Use build_binary_op instead of
791 build2_loc.
792
40fecdd6
JM
7932015-01-30 Joseph Myers <joseph@codesourcery.com>
794
795 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
796 to pass input_location as first argument.
797
a0c88d06
TV
7982015-01-23 Tom de Vries <tom@codesourcery.com>
799
800 PR libgomp/64672
801 * c.opt (fopenacc): Mark as LTO option.
802
1506ae0e
TV
8032015-01-23 Tom de Vries <tom@codesourcery.com>
804
805 PR libgomp/64707
806 * c.opt (fopenmp): Mark as LTO option.
807
31be63ab
JJ
8082015-01-21 Jakub Jelinek <jakub@redhat.com>
809
810 PR c/63307
811 * cilk.c (fill_decls_vec): Only put decls into vector v.
812 (compare_decls): Fix up formatting.
813
8142015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
815
816 PR c/63307
817 * cilk.c: Include vec.h.
818 (struct cilk_decls): New structure.
819 (wrapper_parm_cb): Split this function to...
820 (fill_decls_vec): ...this...
821 (create_parm_list): ...and this.
822 (compare_decls): New function.
823 (for_local_cb): Remove.
824 (wrapper_local_cb): Ditto.
825 (build_wrapper_type): For now first traverse and fill vector of
826 declarations then sort it and then deal with sorted vector.
827 (cilk_outline): Ditto.
828 (declare_one_free_variable): Ditto.
829
6875457f
JM
8302015-01-21 Jason Merrill <jason@redhat.com>
831
832 PR c++/64629
833 * c-format.c (check_format_arg): Call decl_constant_value.
834
185c9e56
ML
8352015-01-19 Martin Liska <mliska@suse.cz>
836
837 * c-common.c (handle_noicf_attribute): New function.
838
41dbbb37
TS
8392015-01-15 Thomas Schwinge <thomas@codesourcery.com>
840 Bernd Schmidt <bernds@codesourcery.com>
841 James Norris <jnorris@codesourcery.com>
842 Cesar Philippidis <cesar@codesourcery.com>
843 Ilmir Usmanov <i.usmanov@samsung.com>
844 Jakub Jelinek <jakub@redhat.com>
845
846 * c.opt (fopenacc): New option.
847 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
848 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
849 New macros.
850 * c-common.h (c_finish_oacc_wait): New prototype.
851 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
852 (c_finish_oacc_wait): New function.
853 * c-pragma.c (oacc_pragmas): New variable.
854 (c_pp_lookup_pragma, init_pragma): Handle it.
855 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
856 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
857 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
858 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
859 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
860 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
861 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
862 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
863 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
864 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
865 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
866 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
867 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
868 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
869 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
870 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
871 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
872 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
873 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
874 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
875 PRAGMA_OACC_CLAUSE_WORKER.
876
5434dc07
MD
8772015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
878
879 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
880 for the new option fstack-protector_explicit.
881 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
882 (handle_stack_protect_attribute): New function.
883
de1b5c17
MU
8842015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
885
886 * c.opt: New option -Warray-bounds=.
887
adfac8df
JJ
8882015-01-09 Michael Collison <michael.collison@linaro.org>
889
890 * array-notation-common.c: Include hash-set.h, machmode.h,
891 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
892 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
893 * c-ada-spec.c: Ditto.
894 * c-cilkplus.c: Ditto.
895 * c-common.c: Include input.h due to flattening of tree.h.
896 Define macro GCC_C_COMMON_C.
897 * c-common.h: Flatten tree.h header files into c-common.h.
898 Remove include of tree-core.h.
899 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
900 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
901 fold-const.h, wide-int.h, and inchash.h due to
902 flattening of tree.h.
903 * c-dump.c: Ditto.
904 * c-format.c: Flatten tree.h header files into c-common.h.
905 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
906 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
907 fold-const.h, wide-int.h, and inchash.h due to
908 flattening of tree.h.
909 * c-dump.c: Include hash-set.h, machmode.h,
910 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
911 fold-const.h, wide-int.h, and inchash.h due to
912 flattening of tree.h.
913 * c-format.c: Include hash-set.h, machmode.h,
914 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
915 fold-const.h, wide-int.h, inchash.h and real.h due to
916 flattening of tree.h.
917 * c-gimplify.c: Include hash-set.h, machmode.h,
918 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
919 fold-const.h, wide-int.h, and inchash.h due to
920 flattening of tree.h.
921 * cilk.c: Ditto.
922 * c-lex.c: Ditto.
923 * c-omp.c: Ditto.
924 * c-opts.c: Ditto.
925 * c-pch.c: Ditto.
926 * c-ppoutput.c: Ditto.
927 * c-pragma.c: Ditto.
928 * c-pretty-print.c: Ditto.
929 * c-semantics.c: Ditto.
930 * c-ubsan.c: Ditto.
931 * stub-objc.c: Ditto.
932
f5481fc4
JM
9332015-01-08 Jason Merrill <jason@redhat.com>
934
935 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
936 do_ubsan_in_current_function.
937 (ubsan_maybe_instrument_reference_or_call): Likewise.
938 * c-ubsan.h: Declare it.
939
de35aa66
MS
9402015-01-08 Mike Stump <mikestump@comcast.net>
941
942 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
943
4a9a42ab
MP
9442015-01-07 Marek Polacek <polacek@redhat.com>
945
946 PR c/64440
947 * c-common.c (c_fully_fold_internal): Warn for division and modulo
948 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
949
2f42e5de
TS
9502015-01-05 Trevor Saunders <tsaunders@mozilla.com>
951
952 PR c++/31397
953 * c.opt (Wsuggest-override): New option.
954
5624e564
JJ
9552015-01-05 Jakub Jelinek <jakub@redhat.com>
956
957 Update copyright years.
958
5bd012f8
MP
9592015-01-05 Marek Polacek <polacek@redhat.com>
960
961 PR c/64423
962 * c-common.c (warn_array_subscript_with_type_char): Add location_t
963 parameter. Use it.
964 * c-common.h (warn_array_subscript_with_type_char): Update
965 declaration.
966
a7fa8d18
ESR
9672014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
968
969 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
970 Control macro with flag_sized_deallocation.
971
768952be
MU
9722014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
973
974 * c.opt (Wdiscarded-array-qualifiers): New option.
975
1f8d3e84
JJ
9762014-12-19 Jakub Jelinek <jakub@redhat.com>
977
978 PR preprocessor/63831
979 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
980 and __has_cpp_attribute here.
981 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
982 c_common_has_attribute.
983 * c-common.h (c_common_has_attribute): New prototype.
984 * c-lex.c (init_c_lex): Set cb->has_attribute to
985 c_common_has_attribute instead of cb_has_attribute.
986 (get_token_no_padding): New function.
987 (cb_has_attribute): Renamed to ...
988 (c_common_has_attribute): ... this. No longer static. Use
989 get_token_no_padding, require ()s, don't build TREE_LIST
990 unnecessarily, fix up formatting, adjust diagnostics, call
991 init_attributes.
992
20b06add
JM
9932014-12-15 Jason Merrill <jason@redhat.com>
994
995 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
996 (-Wsized-deallocation): New.
997 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
998 to on in C++14 and up.
999
94a073b2
JM
10002014-12-11 Jason Merrill <jason@redhat.com>
1001
acaa5911
JM
1002 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
1003
94a073b2
JM
1004 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
1005 we aren't complaining about VLAs.
1006
7fb66c15
MP
10072014-12-06 Marek Polacek <polacek@redhat.com>
1008
1009 PR tree-optimization/64183
1010 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
1011 shift-expression if it is integer_type_node. Use types_compatible_p.
1012
b731b390
JJ
10132014-11-29 Jakub Jelinek <jakub@redhat.com>
1014
1015 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
1016 last argument from create_tmp_var_raw and create_tmp_var calls.
1017 * cilk.c (gimplify_cilk_spawn): Likewise.
1018 * c-omp.c (c_finish_omp_atomic): Likewise.
1019
6a4da643
MP
10202014-11-28 Marek Polacek <polacek@redhat.com>
1021
1022 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
1023 instead of unsigned_type_node.
1024
541e35a6
MP
10252014-11-28 Marek Polacek <polacek@redhat.com>
1026
1027 PR c/63862
1028 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
1029 to op1_utype.
1030 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
1031 expression to unsigned_type_node.
1032
dcc97066
MW
10332014-11-20 Mark Wielaard <mjw@redhat.com>
1034
1035 PR debug/38757
1036 * c-opts.c (set_std_c89): Set lang_hooks.name.
1037 (set_std_c99): Likewise.
1038 (set_std_c11): Likewise.
1039 (set_std_cxx98): Likewise.
1040 (set_std_cxx11): Likewise.
1041 (set_std_cxx14): Likewise.
1042 (set_std_cxx1z): Likewise.
1043
aa7da51a
JJ
10442014-11-21 Jakub Jelinek <jakub@redhat.com>
1045
1046 PR target/63764
1047 * c-common.h (convert_vector_to_pointer_for_subscript): Change
1048 return type to bool.
009a3480 1049 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
1050 (convert_vector_to_pointer_for_subscript): Change return type to
1051 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
1052 and copy it into a TARGET_EXPR and use that instead of *vecp
1053 directly.
1054
538dd0b7
DM
10552014-11-19 David Malcolm <dmalcolm@redhat.com>
1056
1057 Merger of git branch "gimple-classes-v2-option-3".
1058 * ChangeLog.gimple-classes: New.
1059 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
1060 from being just a vec<gimple> to a vec<gbind *>.
1061
c39a5e99
JJ
10622014-11-18 Jakub Jelinek <jakub@redhat.com>
1063
1064 PR sanitizer/63813
1065 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
1066 argument to ptype, set type to TREE_TYPE (ptype). Don't call
1067 get_pointer_alignment for non-pointers. Use ptype, or if it is
1068 reference type, corresponding pointer type, as type of kind
1069 argument.
1070 (ubsan_maybe_instrument_reference,
1071 ubsan_maybe_instrument_member_call): Adjust callers.
1072
8537a4a9
MP
10732014-11-15 Marek Polacek <polacek@redhat.com>
1074
1075 PR middle-end/63884
1076 * array-notation-common.c (is_sec_implicit_index_fn): Return false
1077 for NULL fndecl.
1078 (extract_array_notation_exprs): Return for NULL node.
1079
2079956a
JM
10802014-11-12 Joseph Myers <joseph@codesourcery.com>
1081
1082 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
1083 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
1084
1304953e
JJ
10852014-11-12 Jakub Jelinek <jakub@redhat.com>
1086
1087 PR c/59708
1088 * c-common.c (check_builtin_function_arguments): Handle
1089 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
1090
e5e44252
AK
10912014-11-10 Andi Kleen <ak@linux.intel.com>
1092
1093 PR c/60804
1094 * c-common.h (check_no_cilk): Declare.
1095 * cilk.c (get_error_location): New function.
1096 (check_no_cilk): Dito.
1097
e64b984d
AK
10982014-11-10 Andi Kleen <ak@linux.intel.com>
1099
1100 * cilk.c (recognize_spawn): Use expression location
1101 for error message.
1102
13c21655
PC
11032014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
1104
1105 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
1106
42fd12b1
ESR
11072014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
1108
1109 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
1110 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
1111 (__cpp_range_based_for, __cpp_initializer_lists,
1112 __cpp_delegating_constructors, __cpp_nsdmi,
1113 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
1114 for C++11; (__cpp_attribute_deprecated): Remove in favor of
1115 __has_cpp_attribute.
1116 * c-lex.c (cb_has_attribute): New callback CPP function;
1117 (init_c_lex): Set has_attribute callback.
1118
6f450181
RB
11192014-11-04 Richard Biener <rguenther@suse.de>
1120
1121 * c-common.c (shorten_compare): Do not shorten mixed
1122 DFP and non-DFP compares.
1123
26f0e1d6
ESR
11242014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
1125
1126 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
1127 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
1128 Commentary and rearrangement of tests.
1129 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
1130 Commentary and rearrangement of tests.
1131 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
1132 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
1133
ef4bddc2
RS
11342014-10-29 Richard Sandiford <richard.sandiford@arm.com>
1135
1136 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
1137 enum from machine_mode.
1138
c582198b
AM
11392014-10-28 Andrew MacLeod <amacleod@redhat.com>
1140
adfac8df
JJ
1141 * c-common.c: Adjust include files.
1142 * c-gimplify.c: Ditto.
1143 * cilk.c: Ditto.
1144 * c-pragma.c: Ditto.
1145 * c-ubsan.c: Ditto.
c582198b 1146
60393bbc
AM
11472014-10-27 Andrew MacLeod <amacleod@redhat.com>
1148
1149 * c-gimplify.c: Adjust include files.
1150
d723bb7c
MLI
11512014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
1152
1153 PR c++/53061
1154 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
1155 c_common_initialize_diagnostics.
1156 * c-common.h: Likewise.
1157
90f3520e
MP
11582014-10-24 Marek Polacek <polacek@redhat.com>
1159
1160 PR c/56980
1161 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
1162 print "struct"/"union"/"enum" for typedefed names.
1163
59d7607a
MP
11642014-10-23 Marek Polacek <polacek@redhat.com>
1165
1166 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
1167 in unsigned type.
1168
d95a2703
JJ
11692014-10-22 Jakub Jelinek <jakub@redhat.com>
1170 Yury Gribov <y.gribov@samsung.com>
1171
1172 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1173 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
1174 instead of flag_sanitize_recover as bool flag.
1175
8e6ef852
KY
11762014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
1177
1178 * cilk.c: Revert previous change.
1179
948cf550
IZ
11802014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
1181
1182 PR c/63307
1183 * cilk.c: Include vec.h.
1184 (struct cilk_decls): New structure.
1185 (wrapper_parm_cb): Split this function to...
1186 (fill_decls_vec): ...this...
1187 (create_parm_list): ...and this.
1188 (compare_decls): New function.
1189 (for_local_cb): Remove.
1190 (wrapper_local_cb): Ditto.
1191 (build_wrapper_type): For now first traverse and fill vector of
1192 declarations then sort it and then deal with sorted vector.
1193 (cilk_outline): Ditto.
1194 (declare_one_free_variable): Ditto.
1195
92574c7c
MP
11962014-10-17 Marek Polacek <polacek@redhat.com>
1197
1198 * c-opts.c (c_common_post_options): Set warn_implicit_int.
1199 * c.opt (Wimplicit-int): Initialize to -1.
1200
83685514
AM
12012014-10-16 Andrew MacLeod <amacleod@redhat.com>
1202
1203 * c-pragma.c: Adjust include files.
1204 * c-semantics.c: Likewise.
1205
5b8300ea
DD
12062014-10-16 DJ Delorie <dj@redhat.com>
1207
1208 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
1209 multiples of bytes.
1210
5f83e90b
JM
12112014-10-14 Jason Merrill <jason@redhat.com>
1212
1213 PR c++/63455
1214 * c-common.h (CPP_PREPARSED_EXPR): New.
1215 (N_CP_TTYPES): Adjust.
1216
d73326ca
MP
12172014-10-15 Marek Polacek <polacek@redhat.com>
1218
1219 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
1220
78a7c317
DD
12212014-10-14 DJ Delorie <dj@redhat.com>
1222
1223 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
1224 types, not just __int128.
1225 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
1226 types, not just __int128.
1227 (cpp_atomic_builtins): Round pointer sizes up.
1228 (type_suffix): Use type precision, not specific types.
1229 * c-common.c (c_common_reswords): Remove __int128 special case.
1230 (c_common_type_for_size): Check for all __intN types, not just
1231 __int128.
1232 (c_common_type_for_mode): Likewise.
1233 (c_common_signed_or_unsigned_type): Likewise.
1234 (c_build_bitfield_integer_type): Likewise.
1235 (c_common_nodes_and_builtins): Likewise.
1236 (keyword_begins_type_specifier): Likewise.
1237 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
1238 __intN variants.
1239
2a22f99c
TS
12402014-10-12 Trevor Saunders <tsaunders@mozilla.com>
1241
1242 * c-common.c: Use hash_table instead of hashtab.
1243
2a8ef767
ESR
12442014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
1245
adfac8df 1246 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
1247 C++11 section.
1248
3c9aabbd
MG
12492014-10-03 Marc Glisse <marc.glisse@inria.fr>
1250
1251 PR c++/54427
1252 PR c++/57198
1253 PR c++/58845
1254 * c-common.c (warn_logical_operator): Punt for vectors.
1255
a15f7cb8
ESR
12562014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
1257
1258 Implement SD-6: SG10 Feature Test Recommendations
1259 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
1260 macros and the __has_header macro.
1261
8d0cf15e
JM
12622014-09-30 Jason Merrill <jason@redhat.com>
1263
dd5d5481
JM
1264 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
1265 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
1266 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
1267
b752325e
JM
1268 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
1269 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
1270
8d0cf15e
JM
1271 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
1272 * c-common.c (c_common_reswords): Remove __is_convertible_to.
1273
083e891e
MP
12742014-09-24 Marek Polacek <polacek@redhat.com>
1275
1276 PR c/61405
1277 PR c/53874
1278 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
1279
7861b648
AK
12802014-09-23 Andi Kleen <ak@linux.intel.com>
1281
1282 * c-common.c (handle_no_reorder_attribute): New function.
1283 (c_common_attribute_table): Add no_reorder attribute.
1284
9a79452d
JM
12852014-09-22 Joseph Myers <joseph@codesourcery.com>
1286
1287 * c-cppbuiltin.c (c_cpp_builtins): Define
1288 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
1289 modes.
1290
dd69f047
JM
12912014-09-18 Joseph Myers <joseph@codesourcery.com>
1292
1293 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
1294 for supported floating-point modes.
1295
737a4826
MLI
12962014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1297
1298 * c.opt (Wpsabi): Use LangEnabledBy.
1299 * c-opts.c (c_common_handle_option): Do not handle here.
1300
8cc4b7a2
JM
13012014-09-12 Joseph Myers <joseph@codesourcery.com>
1302
1303 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
1304 macros for floating-point modes.
1305
179b5a55
MG
13062014-09-11 Marc Glisse <marc.glisse@inria.fr>
1307
1308 PR target/58757
1309 * c-cppbuiltin.c (builtin_define_float_constants): Correct
1310 __*_DENORM_MIN__ without denormals.
1311
570a11fe
JJ
13122014-09-10 Jakub Jelinek <jakub@redhat.com>
1313
1314 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1315 ubsan_instrument_vla, ubsan_instrument_return): Adjust
1316 ubsan_create_data callers.
1317 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
1318 index is constant or BIT_AND_EXPR with constant mask and is
1319 small enough for the bound.
1320 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
1321 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
1322
b559c810
MLI
13232014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1324
1325 * c.opt: Add CppReason to various flags.
1326 (Wdate-time): Re-sort.
1327 * c-common.c: Include c-common.h earlier.
1328 (struct reason_option_codes_t): Delete.
1329 (c_option_controlling_cpp_error): Prefix global type and struct
1330 with cpp_.
1331
1ef33fd4
MLI
13322014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1333
1334 * c.opt (Wnormalized): New.
1335 (Wnormalized=): Use Enum and Reject Negative.
1336 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
1337
66bb34c0
JM
13382014-09-08 Joseph Myers <joseph@codesourcery.com>
1339
1340 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
1341 digits of floating-point modes if -fbuilding-libgcc.
1342
53d68b9f
JM
13432014-09-05 Joseph Myers <joseph@codesourcery.com>
1344
1345 * c-cppbuiltin.c (c_cpp_builtins): Also define
1346 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
1347 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
1348 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
1349 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
1350 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
1351 __LIBGCC_STACK_GROWS_DOWNWARD__,
1352 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
1353 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
1354 __LIBGCC_DWARF_FRAME_REGISTERS__,
1355 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
1356 __LIBGCC_STACK_POINTER_REGNUM__ and
1357 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
1358 (builtin_define_with_value): Handle backslash-escaping in string
1359 macro values.
1360
f65586dc
RB
13612014-09-05 Richard Biener <rguenther@suse.de>
1362
1363 PR middle-end/63148
1364 * c-format.c (check_format_arg): Properly handle
1365 effectively signed POINTER_PLUS_EXPR offset.
1366
2b71f4a4
MLI
13672014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1368
1369 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
1370 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
1371 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
1372 and Init.
1373 * c-opts.c (c_common_handle_option): Do not handle here.
1374 (sanitize_cpp_opts): Likewise.
1375 * c-common.c (struct reason_option_codes_t): Handle
1376 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
1377
d2e4feca
MP
13782014-09-03 Marek Polacek <polacek@redhat.com>
1379
1380 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
1381
9a771876
JJ
13822014-09-02 Jakub Jelinek <jakub@redhat.com>
1383 Balaji V. Iyer <balaji.v.iyer@intel.com>
1384 Igor Zamyatin <igor.zamyatin@intel.com>
1385
1386 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
1387 * c-common.c (c_common_reswords): Added _Cilk_for.
1388 * c-common.h (enum rid): Added RID_CILK_FOR.
1389 (cilk_for_number_of_iterations): Add declaration.
1390 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
1391 CILK_FOR.
1392 * c-pragma.c (init_pragma): Register "grainsize" pragma.
1393 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
1394
81b5d104
MLI
13952014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1396
1397 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
1398 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
1399 Wundef): Use CPP, Var and Init.
1400 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
1401
b753b37b
MLI
14022014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1403
1404 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
1405 * c-opts.c (c_common_handle_option): Do not handle here.
1406
028aee17
JM
14072014-08-25 Jason Merrill <jason@redhat.com>
1408
1409 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
1410 -std=c++14 and -std=gnu++14, rather than the reverse.
1411 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
1412 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
1413 * c-common.h (cxx_dialect): Remove cxx1y.
1414
e4276ba5
ESR
14152014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
1416
1417 * c-common.h (enum cxx_dialect): Add cxx14.
1418 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
1419 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
1420 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
1421
a545cacd
JM
14222014-08-22 Jason Merrill <jason@redhat.com>
1423
1424 * c.opt (std=gnu++17): Fix alias.
1425
59ea0364
MP
14262014-08-22 Marek Polacek <polacek@redhat.com>
1427
1428 PR c++/62199
1429 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
1430 check for vector types. Drop LHS argument.
1431 * c-common.h (warn_logical_not_parentheses): Adjust.
1432
596e808c
MLI
14332014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1434
1435 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
1436 (Wmultichar): Likewise.
1437 (Wdate-time): Use C-family languages instead of Common. Use CPP
1438 and Var.
1439 * c-opts.c (c_common_handle_option): Do not handle the above
1440 options here.
1441 (sanitize_cpp_opts): Likewise.
1442
18767f65
MLI
14432014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
1444
1445 PR fortran/44054
1446 * c-opts.c: Include tree-diagnostics.h.
1447 (c_diagnostic_finalizer): New.
1448 (c_common_initialize_diagnostics): Use it.
1449
b4413594
MLI
14502014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1451
1452 PR preprocessor/51303
1453 * c-common.c (struct reason_option_codes_t option_codes):
1454 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
1455
43f9a13c
MLI
14562014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1457
1458 PR c/60975
1459 PR c/53063
1460 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
1461 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
1462 (c_common_post_options): Call init_global_opts_from_cpp.
1463 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
1464
04159acf
MP
14652014-08-19 Marek Polacek <polacek@redhat.com>
1466
1467 PR c++/62153
1468 * c-common.c (maybe_warn_bool_compare): New function.
1469 * c-common.h (maybe_warn_bool_compare): Declare.
1470 * c.opt (Wbool-compare): New option.
1471
35aff4fb
MP
14722014-08-19 Marek Polacek <polacek@redhat.com>
1473
1474 * c.opt (Wc99-c11-compat): New option.
1475
177cce46
MP
14762014-08-19 Marek Polacek <polacek@redhat.com>
1477
1478 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
1479 to warn_c90_c99_compat.
1480 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
1481 to -1.
1482
6ae9194f
MLI
14832014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
1484 Steven Bosscher <steven@gcc.gnu.org>
1485
1486 PR c/52952
1487 * c-format.c: Add extra_arg_loc and format_string_loc to struct
1488 format_check_results.
1489 (check_function_format): Use true and add comment for boolean
1490 argument.
1491 (finish_dollar_format_checking): Use explicit location when warning.
1492 (check_format_info): Likewise.
1493 (check_format_arg): Set extra_arg_loc and format_string_loc.
1494 (check_format_info_main): Use explicit location when warning.
1495 (check_format_types): Pass explicit location.
1496 (format_type_warning): Likewise.
1497
8e54f6d3
MLI
14982014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1499
1500 PR fortran/44054
1501 * c-format.c: Handle Fortran flags.
1502
cd4e76fc
IZ
15032014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
1504
1505 PR other/61962
1506 * array-notation-common.c (find_rank): Added handling for other
1507 types of references.
1508
f3bede71
MP
15092014-08-10 Marek Polacek <polacek@redhat.com>
1510
1511 PR c/51849
1512 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
1513 * c.opt (Wc90-c99-compat): Add option.
1514
9f25a338
TS
15152014-08-07 Trevor Saunders <tsaunders@mozilla.com>
1516
1517 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
1518
62e4eb35
MP
15192014-08-03 Marek Polacek <polacek@redhat.com>
1520
1521 * c-common.c (check_case_value): Add location_t parameter. Use it.
1522 (c_add_case_label): Pass loc to check_case_value.
1523
b787e7a2
TS
15242014-08-02 Trevor Saunders <tsaunders@mozilla.com>
1525
1526 * cilk.c: Use hash_map instead of pointer_map.
1527
6e2830c3
TS
15282014-08-02 Trevor Saunders <tsaunders@mozilla.com>
1529
1530 * c-gimplify.c: Use hash_set instead of pointer_set.
1531
a7ee52fb
IZ
15322014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
1533
1534 PR middle-end/61455
1535 * array-notation-common.c (extract_array_notation_exprs): Handling
1536 of DECL_EXPR added.
1537
944fa280
JJ
15382014-08-01 Jakub Jelinek <jakub@redhat.com>
1539
1540 * c-common.h (min_align_of_type): Removed prototype.
1541 * c-common.c (min_align_of_type): Removed.
1542 * c-ubsan.h (ubsan_maybe_instrument_reference,
1543 ubsan_maybe_instrument_member_call): New prototypes.
1544 * c-ubsan.c: Include stor-layout.h and builtins.h.
1545 (ubsan_maybe_instrument_reference_or_call,
1546 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
1547 functions.
1548
b4dfdc11
MG
15492014-07-31 Marc Glisse <marc.glisse@inria.fr>
1550
1551 PR c++/60517
1552 * c.opt (-Wreturn-local-addr): Move to common.opt.
1553
a41844e5
JM
15542014-07-30 Jason Merrill <jason@redhat.com>
1555
1556 PR c++/61659
1557 PR c++/61687
1558 Revert:
1559 * c.opt (-fuse-all-virtuals): New.
1560
976d5a22
TT
15612014-07-30 Tom Tromey <tromey@redhat.com>
1562
1563 PR c/59855
1564 * c.opt (Wdesignated-init): New option.
1565 * c-common.c (c_common_attribute_table): Add "designated_init".
1566 (handle_designated_init): New function.
1567
cdc94aca
MP
15682014-07-24 Marek Polacek <polacek@redhat.com>
1569
1570 PR c/57653
1571 * c-opts.c (c_finish_options): If -imacros is in effect, return.
1572
f41373b6
DS
15732014-07-16 Dodji Seketeli <dodji@redhat.com>
1574
1575 PR preprocessor/60723 - missing system-ness marks for macro tokens
1576 * c-ppoutput.c (struct print::prev_was_system_token): New data
1577 member.
1578 (init_pp_output): Initialize it.
1579 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
1580 (do_line_change): Return a flag saying if a line marker was
1581 emitted or not.
1582 (scan_translation_unit): Detect if the system-ness of the token we
1583 are about to emit is different from the one of the previously
1584 emitted token. If so, emit a line marker. Avoid emitting useless
1585 adjacent line markers. Avoid emitting line markers for tokens
1586 originating from the expansion of built-in macros.
1587 (scan_translation_unit_directives_only): Adjust.
1588
4d661eaa
MP
15892014-07-15 Marek Polacek <polacek@redhat.com>
1590
1591 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
1592 TYPE_MAX_VALUE is NULL.
1593
b108f48f
JJ
15942014-07-14 Jakub Jelinek <jakub@redhat.com>
1595
1596 PR middle-end/61294
1597 * c.opt (Wmemset-transposed-args): New warning.
1598
c0221884
JM
15992014-07-10 Jason Merrill <jason@redhat.com>
1600
1601 PR c++/61659
1602 PR c++/61687
1603 * c.opt (-fuse-all-virtuals): New.
1604
63dfbb95
RB
16052014-07-09 Richard Biener <rguenther@suse.de>
1606
1607 PR c-family/61741
1608 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1609 using unsigned arithmetic if overflow does not wrap instead of
1610 if overflow is undefined.
1611
773ec47f
MP
16122014-07-06 Marek Polacek <polacek@redhat.com>
1613
1614 PR c/6940
1615 * c.opt (Wsizeof-array-argument): New option.
1616
00a7ba58
JJ
16172014-07-03 Jakub Jelinek <jakub@redhat.com>
1618
1619 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
1620 comments->count <= 1, as comments->entries might be NULL.
1621
52ec0ea3
MP
16222014-07-01 Marek Polacek <polacek@redhat.com>
1623
1624 * c.opt (Wint-conversion): New option.
1625
d5c3d343
MP
16262014-07-01 Marek Polacek <polacek@redhat.com>
1627
1628 PR c/58286
1629 * c.opt (Wincompatible-pointer-types): New option.
1630
6e7ceb17
PC
16312014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
1632
1633 PR c++/51400
1634 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
1635 Do not discard TYPE_QUALS of type.
1636
da73100b
JM
16372014-06-26 Jason Merrill <jason@redhat.com>
1638
1639 * c-common.h (enum cxx_dialect): Add cxx1z.
1640 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
1641 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
1642
08eedf75
TJ
16432014-06-26 Teresa Johnson <tejohnson@google.com>
1644
1645 * c-common.h (get_dump_info): Declare.
1646 * c-gimplify.c (c_genericize): Use saved dump files.
1647 * c-opts.c (c_common_parse_file): Begin and end dumps
1648 once around parsing invocation.
1649 (get_dump_info): New function.
1650
7b56b2f8
MP
16512014-06-23 Marek Polacek <polacek@redhat.com>
1652 Andrew MacLeod <amacleod@redhat.com>
1653
1654 PR c/61553
1655 * c-common.c (get_atomic_generic_size): Don't segfault if the
1656 type doesn't have a size.
1657
0e37a2f3
MP
16582014-06-20 Marek Polacek <polacek@redhat.com>
1659
1660 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
1661 (ubsan_walk_array_refs_r): New function.
1662 (c_genericize): Instrument array bounds.
1663 * c-ubsan.c: Include "internal-fn.h".
1664 (ubsan_instrument_division): Mark instrumented arrays as having
1665 side effects. Adjust ubsan_type_descriptor call.
1666 (ubsan_instrument_shift): Likewise.
1667 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
1668 (ubsan_instrument_bounds): New function.
1669 (ubsan_array_ref_instrumented_p): New function.
1670 (ubsan_maybe_instrument_array_ref): New function.
1671 * c-ubsan.h (ubsan_instrument_bounds): Declare.
1672 (ubsan_array_ref_instrumented_p): Declare.
1673 (ubsan_maybe_instrument_array_ref): Declare.
1674
16752014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
1676
1677 PR lto/61123
1678 * c.opt (fshort-enums): Add to LTO.
1679 * c.opt (fshort-wchar): Likewise.
1680
5c3d09f7
MP
16812014-06-16 Marek Polacek <polacek@redhat.com>
1682
1683 PR c/60439
1684 * c.opt (Wswitch-bool): Add Var.
1685
9cf32741
JJ
16862014-06-12 Jakub Jelinek <jakub@redhat.com>
1687
1688 PR middle-end/61486
1689 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
1690 #pragma omp target teams or
1691 #pragma omp {,target }teams distribute simd.
1692
62984918
JM
16932014-06-12 Jason Merrill <jason@redhat.com>
1694
1695 * c.opt (Wabi=, fabi-compat-version): New.
1696 * c-opts.c (c_common_handle_option): Handle -Wabi=.
1697 (c_common_post_options): Handle flag_abi_compat_version default.
1698 Disallow -fabi-compat-version=1.
1699 * c-common.h (abi_version_crosses): New.
1700
f961457f
JH
17012014-06-11 Jan Hubicka <hubicka@ucw.cz>
1702
adfac8df 1703 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
1704 section names that are no longer trees.
1705
92d28cbb
JJ
17062014-06-10 Jakub Jelinek <jakub@redhat.com>
1707
1708 PR fortran/60928
1709 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
1710 (omp_pragmas): ... back here.
1711
742938c9
MP
17122014-06-05 Marek Polacek <polacek@redhat.com>
1713
1714 PR c/49706
1715 * c-common.c (warn_logical_not_parentheses): New function.
1716 * c-common.h (warn_logical_not_parentheses): Declare.
1717 * c.opt (Wlogical-not-parentheses): New option.
1718
9d548dfb
MP
17192014-06-04 Marek Polacek <polacek@redhat.com>
1720
1721 PR c/30020
1722 * c-common.c (check_case_bounds): Add location parameter.
1723 Use it.
1724 (c_add_case_label): Pass loc to check_case_bounds.
1725
fedfecef
MP
17262014-06-03 Marek Polacek <polacek@redhat.com>
1727
1728 PR c/60439
1729 * c.opt (Wswitch-bool): New option.
1730
f6a7cffc
TS
17312014-05-22 Thomas Schwinge <thomas@codesourcery.com>
1732
040d18b6
TS
1733 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
1734 Remove prototypes.
1735 (record_types_used_by_current_var_decl): Move prototype to where
1736 it belongs.
1737
f6a7cffc
TS
1738 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
1739 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
1740 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
1741
632f2871
RS
17422014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1743
1744 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
1745 * c-common.c (c_common_nodes_and_builtins): Don't initialize
1746 void_zero_node.
1747 * c-pretty-print.c (pp_c_void_constant): New function.
1748 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
1749 (c_pretty_printer::expression): Handle VOID_CST.
1750 * cilk.c (extract_free_variables): Likewise.
1751 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
1752 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
1753
766090c2
TS
17542014-05-17 Trevor Saunders <tsaunders@mozilla.com>
1755
1756 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
1757 * c-pragma.c (push_alignment): Adjust.
1758 (handle_pragma_push_options): Likewise.
1759
661a0813
MP
17602014-05-09 Marek Polacek <polacek@redhat.com>
1761
1762 PR c/50459
1763 * c-common.c (check_user_alignment): Return -1 if alignment is error
1764 node.
1765 (handle_aligned_attribute): Don't call default_conversion on
1766 FUNCTION_DECLs.
1767 (handle_vector_size_attribute): Likewise.
1768 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
1769 (handle_sentinel_attribute): Call default_conversion and allow even
1770 integral types as an argument.
1771
2793eeab
MP
17722014-05-08 Marek Polacek <polacek@redhat.com>
1773
1774 PR c/61053
1775 * c-common.c (min_align_of_type): New function factored out from...
1776 (c_sizeof_or_alignof_type): ...here.
1777 * c-common.h (min_align_of_type): Declare.
1778
f827930a
MP
17792014-05-08 Marek Polacek <polacek@redhat.com>
1780
1781 PR c/61077
1782 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
1783 parameter type of main.
1784
ca49b74e
DD
17852014-05-07 DJ Delorie <dj@redhat.com>
1786
1787 * c-cppbuiltin.c (print_bits_of_hex): New.
1788 (builtin_define_type_minmax): Print values using hex so as not to
1789 require a pre-computed list of string values.
1790
1d60af08
KZ
17912014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
1792 Mike Stump <mikestump@comcast.net>
1793 Richard Sandiford <rdsandiford@googlemail.com>
1794
1795 * c-ada-spec.c: Include wide-int.h.
1796 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
1797 (dump_generic_ada_node): Use wide-int interfaces.
1798 * c-common.c: Include wide-int-print.h.
1799 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
1800 (pointer_int_sum): Use wide-int interfaces.
1801 (c_common_nodes_and_builtins): Use make_int_cst.
1802 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
1803 (handle_alloc_size_attribute): Use wide-int interfaces.
1804 (get_nonnull_operand): Likewise.
1805 * c-format.c (get_constant): Use tree_fits_uhwi_p.
1806 * c-lex.c: Include wide-int.h.
1807 (narrowest_unsigned_type): Take a widest_int rather than two
1808 HOST_WIDE_INTs.
1809 (narrowest_signed_type): Likewise.
1810 (interpret_integer): Update accordingly. Use wide-int interfaces.
1811 (lex_charconst): Use wide-int interfaces.
1812 * c-pretty-print.c: Include wide-int.h.
1813 (pp_c_integer_constant): Use wide-int interfaces.
1814 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
1815 INT_CST_LT_UNSIGNED.
1816
b15458be
RB
18172014-05-06 Richard Biener <rguenther@suse.de>
1818
1819 * c-opts.c (c_common_post_options): For -freestanding,
1820 -fno-hosted and -fno-builtin disable pattern recognition
1821 if not enabled explicitely.
1822
6577374e
MP
18232014-05-02 Marek Polacek <polacek@redhat.com>
1824
1825 * c.opt (Wsizeof-pointer-memaccess): Describe option.
1826
d00887e8
MP
18272014-05-01 Marek Polacek <polacek@redhat.com>
1828
1829 PR c/43245
1830 * c.opt (Wdiscarded-qualifiers): Add.
1831
f8ed5150
MP
18322014-04-30 Marek Polacek <polacek@redhat.com>
1833
1834 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
1835 INT_MIN / -1 sanitization only for integer types.
1836
45484dcf
MP
18372014-04-25 Marek Polacek <polacek@redhat.com>
1838
1839 PR c/18079
1840 * c-common.c (handle_noinline_attribute): Warn if the attribute
1841 conflicts with always_inline attribute.
1842 (handle_always_inline_attribute): Warn if the attribute conflicts
1843 with noinline attribute.
1844
38e514c0
MP
18452014-04-25 Marek Polacek <polacek@redhat.com>
1846
1847 PR c/60156
1848 * c-common.c (check_main_parameter_types): Warn about variadic main.
1849
44875f92
MS
18502014-04-24 Mike Stump <mikestump@comcast.net>
1851
1852 * c.opt (Wshadow-ivar): Default to on.
1853
dcaaa5a0
DP
18542014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
1855
1856 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
1857
c07d7c02
MP
18582014-04-23 Marek Polacek <polacek@redhat.com>
1859
1860 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
1861
1c33c9b7
JJ
18622014-04-22 Jakub Jelinek <jakub@redhat.com>
1863
1864 PR sanitizer/60275
1865 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
1866 if flag_sanitize_undefined_trap_on_error.
1867 (ubsan_instrument_division, ubsan_instrument_shift,
1868 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
1869 if !flag_sanitize_recover.
1870
793c625f
MG
18712014-04-22 Marc Glisse <marc.glisse@inria.fr>
1872
1873 PR libstdc++/43622
1874 * c-common.c (registered_builtin_types): Make non-static.
1875 * c-common.h (registered_builtin_types): Declare.
1876
b0f1bf36
RB
18772014-04-14 Richard Biener <rguenther@suse.de>
1878 Marc Glisse <marc.glisse@inria.fr>
1879
1880 PR c/60819
1881 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
1882 apply may-alias the scalar pointer type when applicable.
1883
3b07fa4a
IZ
18842014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
1885
1886 PR middle-end/60467
1887 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
1888 as possible argument for Cilk_spawn.
1889
cbbd2b1c
TB
18902014-04-11 Tobias Burnus <burnus@net-b.de>
1891
1892 PR c/60194
1893 * c.opt (Wformat-signedness): Add
1894 * c-format.c(check_format_types): Use it.
1895
6415bd5d
JM
18962014-04-11 Jason Merrill <jason@redhat.com>
1897
1898 PR c++/57926
1899 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
1900 default_conversion for an array argument.
1901
6525783a
MP
19022014-04-08 Marek Polacek <polacek@redhat.com>
1903
1904 PR sanitizer/60745
1905 * c-ubsan.c: Include asan.h.
1906 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
1907
880a467b
NS
19082014-04-03 Nathan Sidwell <nathan@codesourcery.com>
1909
1910 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
1911
7b59ff2d
MP
19122014-04-02 Marek Polacek <polacek@redhat.com>
1913
1914 * c-common.h (c_expand_expr): Remove declaration.
1915
8edbfaa6
JJ
19162014-03-28 Jakub Jelinek <jakub@redhat.com>
1917
1918 PR c++/60689
1919 * c-common.c (add_atomic_size_parameter): When creating new
1920 params vector, push the size argument first.
1921
07d72e1d
JJ
19222014-03-26 Jakub Jelinek <jakub@redhat.com>
1923
1924 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1925 ubsan_instrument_vla, ubsan_instrument_return): Adjust
1926 ubsan_create_data callers.
1927
b35e0fa0
JJ
19282014-03-22 Jakub Jelinek <jakub@redhat.com>
1929
1930 PR debug/60603
1931 * c-opts.c (c_finish_options): Restore cb_file_change call to
1932 <built-in>.
1933
39a1ebb3
JJ
19342014-03-13 Jakub Jelinek <jakub@redhat.com>
1935
1936 PR middle-end/36282
1937 * c-pragma.c (apply_pragma_weak): Only look at
1938 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
1939 DECL_ASSEMBLER_NAME_SET_P (decl).
1940 (maybe_apply_pending_pragma_weaks): Exit early if
1941 vec_safe_is_empty (pending_weaks) rather than only when
1942 !pending_weaks.
1943 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
1944 set assembler name back to NULL afterwards.
1945
a07f6ed2
JM
19462014-03-11 Jason Merrill <jason@redhat.com>
1947
1948 * c.opt: Add -std=gnu++14.
1949
75b107f5
IB
19502014-03-11 Ian Bolton <ian.bolton@arm.com>
1951
1952 * c-opts.c (c_common_post_options): Don't override
1953 -ffp-contract=fast if unsafe-math-optimizations is on.
1954
f42c637e
PM
19552014-03-08 Paulo Matos <paulo@matos-sorge.com>
1956
1957 * c.opt: Enable LTO FE for fshort-double.
1958
70e24808
JM
19592014-03-07 Jason Merrill <jason@redhat.com>
1960
1961 * c.opt: Add -std=c++14.
1962
3af9c5e9
MP
19632014-03-06 Marek Polacek <polacek@redhat.com>
1964
1965 PR c/60197
1966 * cilk.c (contains_cilk_spawn_stmt): New function.
1967 (contains_cilk_spawn_stmt_walker): Likewise.
1968 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
1969 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
1970
b3bdf019
JJ
19712014-03-03 Jakub Jelinek <jakub@redhat.com>
1972
1973 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
1974 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
1975 even when flag_preprocess_only.
1976
ca7e759d
JM
19772014-02-26 Jason Merrill <jason@redhat.com>
1978
1979 PR c++/59231
1980 PR c++/11586
1981 * c-common.c (shorten_compare): Don't check
1982 c_inhibit_evaluation_warnings.
1983
28e41874
JJ
19842014-02-19 Jakub Jelinek <jakub@redhat.com>
1985
cca615af
JJ
1986 PR c/37743
1987 * c-common.c (c_common_nodes_and_builtins): When initializing
1988 c_uint{16,32,64}_type_node, also set corresponding
1989 uint{16,32,64}_type_node to the same value.
1990
28e41874
JJ
1991 PR c++/60267
1992 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
1993 for PRAGMA_IVDEP if flag_preprocess_only.
1994
c2bf53a1
JJ
19952014-02-12 Jakub Jelinek <jakub@redhat.com>
1996
1997 PR c/60101
1998 * c-common.c (merge_tlist): If copy is true, call new_tlist,
1999 if false, add ADD itself, rather than vice versa.
2000 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
2001 copy. For SAVE_EXPR, only call merge_tlist once.
2002
8fcbce72
JJ
20032014-02-08 Jakub Jelinek <jakub@redhat.com>
2004
2005 PR middle-end/60092
2006 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
2007 and tree_to_uhwi.
2008 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
2009 functions.
2010 (c_common_attribute_table): Add alloc_align and assume_aligned
2011 attributes.
2012
0a756a3f
MP
20132014-02-06 Marek Polacek <polacek@redhat.com>
2014
2015 PR c/60087
2016 * c-common.c (warn_for_sign_compare): Call warning_at with location
2017 instead of warning.
2018
7ec4847a
MP
20192014-02-05 Marek Polacek <polacek@redhat.com>
2020
2021 PR c/53123
2022 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
2023 statement.
2024
66f20604
MP
20252014-02-04 Marek Polacek <polacek@redhat.com>
2026
2027 PR c/60036
2028 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
2029 SAVE_EXPR.
2030
5d77fb19
MG
20312014-02-03 Marc Glisse <marc.glisse@inria.fr>
2032
2033 PR c++/53017
2034 PR c++/59211
2035 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
2036 handle_vector_size_attribute, handle_nonnull_attribute): Call
2037 default_conversion on the attribute argument.
2038 (handle_nonnull_attribute): Increment the argument number.
2039
81e5eca8
MP
20402014-01-31 Marek Polacek <polacek@redhat.com>
2041
2042 PR c/59963
2043 * c-common.c (add_atomic_size_parameter): Pass vNULL to
2044 build_function_call_vec.
2045 (resolve_overloaded_builtin): Likewise.
2046 * c-common.h (build_function_call_vec): Adjust declaration.
2047
68fca595
MP
20482014-01-30 Marek Polacek <polacek@redhat.com>
2049
2050 PR c/59940
2051 * c-common.h (unsafe_conversion_p): Adjust declaration.
2052 (warnings_for_convert_and_check): Likewise.
2053 (convert_and_check): Likewise.
2054 * c-common.c (unsafe_conversion_p): Add location parameter. Call
2055 expansion_point_location_if_in_system_header on it.
2056 (warnings_for_convert_and_check): Add location parameter. Call
2057 expansion_point_location_if_in_system_header on it. Use it.
2058 (convert_and_check): Add location parameter. Use it.
2059 (conversion_warning): Likewise.
2060 (c_add_case_label): Adjust convert_and_check calls.
2061 (scalar_to_vector): Adjust unsafe_conversion_p calls.
2062
b72271b9
BI
20632014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
2064
2065 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
2066 flag_cilkplus.
2067 * c-pragma.c (init_pragma): Likewise.
2068 * c.opt: Likewise.
2069
393e8e8b
MP
20702014-01-23 Marek Polacek <polacek@redhat.com>
2071
2072 PR c/59846
2073 * c-common.c (shorten_compare): Add location_t parameter.
2074 * c-common.h (shorten_binary_op): Adjust declaration.
2075
f04dda30
MP
20762014-01-23 Marek Polacek <polacek@redhat.com>
2077
2078 PR c/58346
2079 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
2080 * c-common.h: Declare it.
2081
621955cb
EB
20822014-01-20 Eric Botcazou <ebotcazou@adacore.com>
2083
2084 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
2085 * c-ada-spec.c (dump_ads): Likewise.
2086 (cpp_check): Likewise.
2087 (dump_ada_specs): Likewise.
2088
20892014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
2090
2091 PR c++/49718
2092 * c-common.c (handle_no_instrument_function_attribute): Allow
2093 no_instrument_function attribute in class member
2094 definition/declaration.
2095
241f845a
JJ
20962014-01-15 Jakub Jelinek <jakub@redhat.com>
2097
2098 PR c/58943
2099 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
2100 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
2101 being COMPOUND_EXPR.
2102 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
2103 operand a SAVE_EXPR and second MODIFY_EXPR.
2104
e83b8e2e
JJ
21052014-01-09 Jakub Jelinek <jakub@redhat.com>
2106
2107 PR target/58115
2108 * c-pch.c (c_common_write_pch): Call
2109 prepare_target_option_nodes_for_pch.
2110
23a5b65a
RS
21112014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2112
2113 Update copyright years
2114
f9030485
RS
21152014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2116
2117 * array-notation-common.c, c-cilkplus.c: Use the standard form for
2118 the copyright notice.
2119
f2aa696b
EB
21202013-12-28 Eric Botcazou <ebotcazou@adacore.com>
2121
2122 * c-ada-spec.c (print_constructor): New function.
2123 (print_destructor): Retrieve the origin of the destructor.
2124 (print_ada_declaration): Revamp handling of constructors/destructors.
2125
1f26ac87
JM
21262013-12-23 Stuart Hastings <stuart@apple.com>
2127 Bill Maddox <maddox@google.com>
2128 Jason Merrill <jason@redhat.com>
2129
2130 * c.opt: Add -fdeclone-ctor-dtor.
2131 * c-opts.c (c_common_post_options): Default to on iff -Os.
2132
41958c28
BI
21332013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
2134
2135 * c-common.c (c_common_attribute_table): Added "cilk simd function"
2136 attribute.
2137 * c-pragma.h (enum pragma_cilk_clause): Remove.
2138 (enum pragma_omp_clause): Added the following fields:
2139 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
2140 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
2141 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
2142 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
2143 PRAGMA_CILK_CLAUSE_UNIFORM.
2144
2145
12893402
BI
21462013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
2147
2148 * cilk.c (cilk_outline): Made this function non-static.
2149 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
2150 (create_cilk_wrapper): Added a new parameter: a function pointer.
2151 (c_install_body_w_frame_cleanup): Remove
2152 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
2153 * c-common.h (cilk_outline): New prototype.
2154 (gimplify_cilk_spawn): Removed two parameters.
2155 (cilk_install_body_with_frame_cleanup): New prototype.
2156 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
2157 CILK_SPAWN_STMT case.
2158
085b42ed
BS
21592013-12-11 Bernd Schmidt <bernds@codesourcery.com>
2160
2ce064c3
BS
2161 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
2162
085b42ed
BS
2163 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
2164 (int_array_type_node): Remove.
2165 * c-common.c (c_common_nodes_and_builtins): Don't build it.
2166
9e36c9ed
MP
21672013-12-05 Marek Polacek <polacek@redhat.com>
2168
2169 PR c/52023
2170 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
2171 [ADJUST_FIELD_ALIGN].
2172
296674db
JM
21732013-12-04 Joseph Myers <joseph@codesourcery.com>
2174
2175 PR c/52023
2176 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
2177 and check field alignment if set.
2178 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
2179 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
2180
31e071ae
MP
21812013-12-04 Jakub Jelinek <jakub@redhat.com>
2182 Marek Polacek <polacek@redhat.com>
2183
2184 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
2185 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
2186
d7947e19
L
21872013-11-29 H.J. Lu <hongjiu.lu@intel.com>
2188
2189 PR c/59309
2190 * cilk.c (gimplify_cilk_spawn): Properly handle function without
2191 arguments.
2192
fad7652e
JJ
21932013-11-29 Jakub Jelinek <jakub@redhat.com>
2194
2195 PR c/59280
2196 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
2197 goto invalid. If it is error_mark_node, don't issue further
2198 diagnostics.
2199
8b5e1202
SO
22002013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
2201
2202 * c.opt (Wopenmp-simd): New.
2203
0a508bb6
JJ
22042013-11-22 Jakub Jelinek <jakub@redhat.com>
2205
2206 * c-ubsan.h (ubsan_instrument_return): New prototype.
2207 * c-ubsan.c (ubsan_instrument_return): New function.
2208
2fb9a547
AM
22092013-11-22 Andrew MacLeod <amacleod@redhat.com>
2210
2211 * c-common.c: Add required include files from gimple.h.
2212 * c-gimplify.c: Likewise
2213 * cilk.c: Likewise
2214
8400e75e
DM
22152013-11-22 David Malcolm <dmalcolm@redhat.com>
2216
2217 * c-common.c (unsafe_conversion_p): Remove use of
2218 EXPR_LOC_OR_HERE macro.
2219 (conversion_warning): Likewise.
2220 (warnings_for_convert_and_check): Likewise.
2221 (warn_for_collisions_1): Likewise.
2222 (shorten_compare): Likewise, and remove use of in_system_header
2223 macro, using the location from the former.
2224 * c-lex.c (dump_one_header): Remove use of input_filename macro.
2225 (cb_def_pragma): Remove use of in_system_header macro.
2226 (lex_string): Likewise.
2227 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
2228
eb1ce453
KZ
22292013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2230 Mike Stump <mikestump@comcast.net>
2231 Richard Sandiford <rdsandiford@googlemail.com>
2232
2233 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
2234 instead of TREE_INT_CST_LOW, in cases where there is a protecting
2235 tree_fits_shwi_p or tree_fits_uhwi_p.
2236 (dump_generic_ada_node): Likewise.
2237 * c-format.c (check_format_arg): Likewise.
2238 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2239
6b3b8c27
KZ
22402013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2241
2242 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
2243
49b0aa18
JC
22442013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
2245
2246 PR c/53001
2247 * c-common.c (unsafe_conversion_p): Make this function
2248 return an enumeration with more detail.
2249 (conversion_warning): Use the new return type of
2250 unsafe_conversion_p to separately warn either about conversions
2251 that lower floating point number precision or about the other
2252 kinds of conversions.
2253 * c-common.h (enum conversion_safety): New enumeration.
2254 (unsafe_conversion_p): switching return type to
2255 conversion_safety enumeration.
2256 * c.opt: Adding new warning -Wfloat-conversion and
2257 enabling it with -Wconversion.
2258
b826515a
BS
22592013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
2260
2261 * c-opts.c: Include plugin.h.
2262 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
2263
b9a55b13
MP
22642013-11-19 Marek Polacek <polacek@redhat.com>
2265
2266 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
2267 call.
2268 (ubsan_instrument_shift): Likewise.
2269 (ubsan_instrument_vla): Likewise.
2270
7d362f6c
RS
22712013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2272
2273 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
2274 cast to unsigned type.
2275
386b1f1f
RS
22762013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2277
2278 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
2279 tree_low_cst.
2280 (complete_array_type): Update comment to refer to tree_to_[su]hwi
2281 rather than tree_low_cst.
2282
ae7e9ddd
RS
22832013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2284
2285 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
2286 tree_to_uhwi throughout.
2287
9439e9a1
RS
22882013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2289
2290 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
2291 tree_low_cst (..., 0) with tree_to_shwi throughout.
2292
cc269bb6
RS
22932013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2294
2295 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
2296 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
2297
9541ffee
RS
22982013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2299
2300 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
2301 host_integerp (..., 0) with tree_fits_shwi_p throughout.
2302
c02065fc
AH
23032013-11-15 Aldy Hernandez <aldyh@redhat.com>
2304
2305 * c-cilkplus.c: New file.
2306 * c-common.c (readonly_error): Add location argument.
2307 * c-common.h (readonly_error): Same.
2308 (c_finish_cilk_clauses): Protoize.
2309 (c_check_cilk_loop): Same.
2310 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
2311 Do not fail on error_mark_node.
2312 Abstract increment canonicalization to here...
2313 (c_omp_for_incr_canonicalize_ptr): New.
2314 c-pragma.c (init_pragma): Register "simd" pragma.
2315 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
2316 (enum pragma_cilk_clause): New.
2317
9cc65f15
RS
23182013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
2319
2320 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
2321 wchar_type and host_integerp checks.
2322
18f429e2
AM
23232013-11-14 Andrew MacLeod <amacleod@redhat.com>
2324
2325 * c-common.c: Likewise.
2326 * c-gimplify.c: Likewise.
2327 * cilk.c: Likewise.
2328
d8a2d370
DN
23292013-11-14 Diego Novillo <dnovillo@google.com>
2330
2331 * c-common.c: Include fold-const.h.
2332 Include stor-layout.h.
2333 Include calls.h.
2334 Include stringpool.h.
2335 Include attribs.h.
2336 Include varasm.h.
2337 Include trans-mem.h.
2338 * c-cppbuiltin.c: Include stor-layout.h.
2339 Include stringpool.h.
2340 * c-format.c: Include stringpool.h.
2341 * c-lex.c: Include stringpool.h.
2342 Include stor-layout.h.
2343 * c-pragma.c: Include stringpool.h.
2344 Include attribs.h.
2345 Include varasm.h.
2346 Include gcc-symtab.h.
2347 * c-pretty-print.c: Include stor-layout.h.
2348 Include attribs.h.
2349 * cilk.c: Include stringpool.h.
2350 Include calls.h.
2351
38b7bc7f
JM
23522013-11-13 Joseph Myers <joseph@codesourcery.com>
2353
2354 * c-common.h (enum rid): Add RID_AUTO_TYPE.
2355 * c-common.c (c_common_reswords): Add __auto_type.
2356 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
2357
45b0be94
AM
23582013-11-12 Andrew MacLeod <amacleod@redhat.com>
2359
18f429e2
AM
2360 * c-common.c: Include gimplify.h.
2361 * c-gimplify.c: Likewise.
2362 * cilk.c: Likewise.
2363 * c-omp.c: Include gimple-expr.h instead of gimple.h.
2364 * c-ubsan.c: Don't include gimple.h.
45b0be94 2365
582d9b50
JM
23662013-11-12 Joseph Myers <joseph@codesourcery.com>
2367
2368 * c-common.c (c_common_reswords): Add _Thread_local.
2369
6b28e197
JM
23702013-11-09 Joseph Myers <joseph@codesourcery.com>
2371
2372 * c-common.c (atomic_size_supported_p): New function.
2373 (resolve_overloaded_atomic_exchange)
2374 (resolve_overloaded_atomic_compare_exchange)
2375 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
2376 Use it instead of comparing size with a local list of sizes.
2377
267bac10
JM
23782013-11-07 Andrew MacLeod <amacleod@redhat.com>
2379 Joseph Myers <joseph@codesourcery.com>
2380
2381 * c-common.h (enum rid): Add RID_ATOMIC.
2382 * c-common.c (c_common_reswords): Add _Atomic.
2383 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
2384 (keyword_is_type_qualifier): Accept RID_ATOMIC.
2385 * c-format.c (check_format_types): Check for extra _Atomic
2386 qualifiers in format argument.
2387 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
2388 (pp_c_type_qualifier_list): Mention _Atomic in comment.
2389
5157b91e
TB
23902013-11-06 Tobias Burnus <burnus@net-b.de>
2391
2392 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
2393
6dbe0958
JM
23942013-11-06 Joseph Myers <joseph@codesourcery.com>
2395
2396 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
2397 standards modes.
2398 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
2399 to mean lack of IEEE 754 support.
2400
e8ff5196
TB
24012013-11-05 Tobias Burnus <burnus@net-b.de>
2402
2403 * c.opt (-Wdate-time): New option
2404 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
2405
254a0760
JM
24062013-11-05 Joseph Myers <joseph@codesourcery.com>
2407
2408 * c-cppbuiltin.c (cpp_iec_559_value): Test
2409 flag_excess_precision_cmdline not flag_excess_precision.
2410
6d7f7e0a
TB
24112013-11-05 Tobias Burnus <burnus@net-b.de>
2412
2413 * c.opt (fopenmp-simd): New option.
2414 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
2415 (omp_pragmas): ... this new struct.
2416 (c_pp_lookup_pragma): Also walk omp_pragmas.
2417 (init_pragma): Init pragmas for -fopenmp-simd.
2418
55a7f02f
MP
24192013-11-04 Marek Polacek <polacek@redhat.com>
2420
2421 PR c++/58979
2422 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
2423
9193fb05
JM
24242013-11-04 Joseph Myers <joseph@codesourcery.com>
2425
2426 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
2427 New functions.
2428 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
2429
94159ecf
EB
24302013-11-04 Eric Botcazou <ebotcazou@adacore.com>
2431
2432 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
2433 (dump_ada_specs): Adjust prototype of second callback.
2434 * c-ada-spec.c (cpp_check): New global variable.
2435 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
2436 (print_generic_ada_decl): Likewise.
2437 (has_static_fields): Change return type to bool and add guard.
2438 (has_nontrivial_methods): New predicate.
2439 (is_tagged_type): Change return type to bool.
2440 (separate_class_package): Call has_nontrivial_methods.
2441 (pp_ada_tree_identifier): Minor tweaks.
2442 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
2443 (dump_ada_array_domains): Likewise.
2444 (dump_ada_array_type): Likewise.
2445 (dump_template_types): Remove cpp_check parameter and do not pass it to
2446 dump_generic_ada_node.
2447 (dump_ada_template): Likewise.
2448 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
2449 recursively.
2450 (print_ada_methods): Change return type to integer. Remove cpp_check
2451 parameter and do not pass it down.
2452 (dump_nested_types): Remove cpp_check parameter and do not pass it to
2453 dump_generic_ada_node.
2454 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
2455 accessing methods.
2456 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
2457 down. Use has_nontrivial_methods to recognize C++ classes. Use return
2458 value of print_ada_methods.
2459 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
2460 Set cpp_check to it before invoking dump_ada_nodes.
2461 (dump_ada_specs): Likewise.
2462
b906f4ca
MP
24632013-11-03 Marek Polacek <polacek@redhat.com>
2464
2465 * c-ubsan.c: Don't include hash-table.h.
2466 (ubsan_instrument_vla): New function.
2467 * c-ubsan.h: Declare it.
2468
5e20cdc9
DM
24692013-10-31 David Malcolm <dmalcolm@redhat.com>
2470
2471 Automated part of renaming of symtab_node_base to symtab_node.
2472
2473 Patch autogenerated by rename_symtab.py from
2474 https://github.com/davidmalcolm/gcc-refactoring-scripts
2475 revision 58bb219cc090b2f4516a9297d868c245495ee622
2476
2477 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
2478 symtab_node_base to symtab_node.
2479
7057e645
ESR
24802013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
2481
2482 Implement C++14 digit separators.
2483 * c-lex.c (interpret_float): Remove digit separators from scratch string
2484 before building real literal.
2485
193ea7bc
JJ
24862013-10-30 Jakub Jelinek <jakub@redhat.com>
2487
2488 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
2489
939b37da
BI
24902013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
2491
2492 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
2493 fields.
2494 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
2495 enabled.
2496 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
2497 (insert_cilk_frame): New prototype.
2498 (cilk_init_builtins): Likewise.
2499 (gimplify_cilk_spawn): Likewise.
2500 (c_cilk_install_body_w_frame_cleanup): Likewise.
2501 (cilk_detect_spawn_and_unwrap): Likewise.
2502 (cilk_set_spawn_marker): Likewise.
2503 (build_cilk_sync): Likewise.
2504 (build_cilk_spawn): Likewise.
2505 * cilk.c: New file.
2506
67348ccc
DM
25072013-10-29 David Malcolm <dmalcolm@redhat.com>
2508
2509 Patch autogenerated by refactor_symtab.py from
2510 https://github.com/davidmalcolm/gcc-refactoring-scripts
2511 revision 58bb219cc090b2f4516a9297d868c245495ee622
2512
2513 * c-gimplify.c (c_genericize): Update for conversion of symtab types
2514 to a true class hierarchy.
2515 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
2516
d570872d
RS
25172013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
2518
2519 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
2520
98906124
JL
25212013-10-26 Jeff Law <law@redhat.com>
2522
adfac8df
JJ
2523 * c-common.c (c_define_builtins): Remove mudflap support.
2524 * c.opt: Ignore and warn for mudflap options.
98906124 2525
d73749df 25262013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
2527
2528 PR other/33426
2529 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
2530 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
2531
3f04b1bb
JM
25322013-10-23 Jason Merrill <jason@redhat.com>
2533
2534 * c-format.c (gcc_cxxdiag_char_table): Add %X.
2535
acf0174b
JJ
25362013-10-11 Jakub Jelinek <jakub@redhat.com>
2537
acd15a28
JJ
2538 * c-common.h (omp_clause_mask::operator !=): New method.
2539 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
2540 instead of if (mask & something) tests everywhere.
2541
acf0174b
JJ
2542 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
2543 201307 instead of 201107.
2544 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
2545 (c_common_attribute_table): Add "omp declare target" and
2546 "omp declare simd" attributes.
2547 (handle_omp_declare_target_attribute,
2548 handle_omp_declare_simd_attribute): New functions.
2549 * c-omp.c: Include c-pragma.h.
2550 (c_finish_omp_taskgroup): New function.
2551 (c_finish_omp_atomic): Add swapped argument, if true,
2552 build the operation first with rhs, lhs arguments and use NOP_EXPR
2553 build_modify_expr.
2554 (c_finish_omp_for): Add code argument, pass it down to make_code.
2555 (c_omp_split_clauses): New function.
2556 (c_split_parallel_clauses): Removed.
2557 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
2558 c_omp_declare_simd_clauses_to_decls): New functions.
2559 * c-common.h (omp_clause_mask): New type.
2560 (OMP_CLAUSE_MASK_1): Define.
2561 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
2562 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
2563 omp_clause_mask::operator |, omp_clause_mask::operator &,
2564 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
2565 omp_clause_mask::operator ==): New methods.
2566 (enum c_omp_clause_split): New.
2567 (c_finish_omp_taskgroup): New prototype.
2568 (c_finish_omp_atomic): Add swapped argument.
2569 (c_finish_omp_for): Add code argument.
2570 (c_omp_split_clauses): New prototype.
2571 (c_split_parallel_clauses): Removed.
2572 (c_omp_declare_simd_clauses_to_numbers,
2573 c_omp_declare_simd_clauses_to_decls): New prototypes.
2574 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
2575 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
2576 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
2577 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
2578 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
2579 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
2580 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
2581 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
2582 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
2583 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
2584 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
2585 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
2586 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
2587 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
2588 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
2589 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
2590 PRAGMA_OMP_CLAUSE_UNIFORM.
2591
826cacfe
MG
25922013-10-09 Marc Glisse <marc.glisse@inria.fr>
2593
2594 PR tree-optimization/20318
2595 * c-common.c (handle_returns_nonnull_attribute): New function.
2596 (c_common_attribute_table): Add returns_nonnull.
2597
2284b034
MG
25982013-10-03 Marc Glisse <marc.glisse@inria.fr>
2599
2600 PR c++/19476
2601 * c.opt (fcheck-new): Move to common.opt.
2602
b56e9788
MP
26032013-09-25 Marek Polacek <polacek@redhat.com>
2604 Jakub Jelinek <jakub@redhat.com>
2605
2606 PR sanitizer/58413
2607 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
2608 an expression if we can prove it is correct.
2609 (ubsan_instrument_division): Likewise. Remove unnecessary
2610 check.
2611
ce6923c5
MP
26122013-09-18 Marek Polacek <polacek@redhat.com>
2613
2614 PR sanitizer/58411
2615 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
2616 Declare it.
2617 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
2618
fb5610fb
IS
26192013-09-14 Iain Sandoe <iain@codesourcery.com>
2620
2621 PR target/48094
2622 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
2623 fobjc-gc, freplace-objc-classes): Accept for LTO.
2624
88b0e79e
JC
26252013-09-13 Jacek Caban <jacek@codeweavers.com>
2626
2627 * c-target.def: New hook
2628
c9b0866a
PC
26292013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
2630
2631 PR c++/43452
2632 * c.opt (Wdelete-incomplete): Add.
2633
0af94e6f
JR
26342013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
2635
2636 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
2637 (vector_types_compatible_elements_p): New function.
2638 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
2639 declaration.
2640 (vector_types_compatible_elements_p): Declare.
2641
7c26172c
GDR
26422013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2643
2644 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
2645 a virtual member function.
2646 (pp_simple_type_specifier): Remove.
2647 (pp_c_type_specifier): Likewise.
2648 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
2649 Rename from pp_c_type_specifier. Adjust.
2650 (c_pretty_printer::c_pretty_printer): Do not assign to
2651 simple_type_specifier.
2652
20059c8b
GDR
26532013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2654
2655 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
2656 member function.
2657 (c_pretty_printer::storage_class_specifier): Likewise.
2658 (c_pretty_printer::initializer): Likewise.
2659 (pp_declaration): Remove.
2660 (pp_declaration_specifiers): Likewise.
2661 (pp_abstract_declarator): Likewise.
2662 (pp_declarator): Likewise.
2663 (pp_type_id): Likewise.
2664 (pp_statement): Likewise.
2665 (pp_constant): Likewise.
2666 (pp_id_expression): Likewise.
2667 (pp_primary_expression): Likewise.
2668 (pp_unary_expression): Likewise.
2669 (pp_multiplicative_expression): Likewise.
2670 (pp_conditional_expression): Likewise.
2671 (pp_assignment_expression): Likewise.
2672 (pp_expression): Likewise.
2673 (pp_c_type_id): Likewise.
2674 (pp_c_storage_class_specifier): Likewise.
2675 * c-pretty-print.c (pp_c_type_cast): Tidy.
2676 (pp_c_pointer): Likewise.
2677 (pp_c_type_specifier): Likewise.
2678 (pp_c_parameter_type_list): Likewise.
2679 (pp_c_function_definition): Likewise.
2680 (pp_c_init_declarator): Likewise.
2681 (pp_c_initializer_list): Likewise.
2682 (pp_c_constructor_elts): Likewise.
2683 (c_pretty_printer::direct_abstract_declarator): Likewise.
2684 (c_pretty_printer::declaration_specifiers): Likewise.
2685 (c_pretty_printer::primary_expression): Likewise.
2686 (c_pretty_printer::postfix_expression): Likewise.
2687 (c_pretty_printer::type_id): Rename from pp_c_type_id.
2688 (c_pretty_printer::storage_class_specifier): Rename from
2689 pp_c_storage_class_specifier.
2690 (c_pretty_printer::initializer): Rename from pp_c_initializer.
2691 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
2692 storage_class_specifier, initializer, offset_list, flags.
2693
de5a5fa1
MP
26942013-08-30 Marek Polacek <polacek@redhat.com>
2695
2696 * c-ubsan.c: New file.
2697 * c-ubsan.h: New file.
2698
8f0e4d72
GDR
26992013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2700
2701 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
2702 member function.
2703 (c_pretty_printer::declaration_specifiers): Likewise.
2704 (c_pretty_printer::declarator): Likewise.
2705 (c_pretty_printer::abstract_declarator): Likewise.
2706 (c_pretty_printer::direct_abstract_declarator): Likewise.
2707 (c_pretty_printer::direct_declarator): Likewise.
2708 (c_pretty_printer::function_specifier): Likewise.
2709 (pp_declaration): Adjust.
2710 (pp_declaration_specifiers): Likewise.
2711 (pp_abstract_declarator): Likewise.
2712 (pp_direct_declarator): Likewise.
2713 (pp_function_specifier): Likewise.
2714 (pp_direct_abstract_declarator): Remove as unused.
2715 (pp_c_declaration): Remove.
2716 (pp_c_declaration_specifiers): Likewise.
2717 (pp_c_declarator): Likewise.
2718 (pp_c_direct_declarator): Likewise.
2719 (pp_c_function_specifier): Likewise.
2720 (pp_c_direct_abstract_declarator): Likewise.
2721 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
2722 from pp_c_abstract_declarator. Adjust.
2723 (c_pretty_printer::direct_abstract_declarator): Rename from
2724 pp_c_direct_abstract_declarator. Adjust.
2725 (c_pretty_printer::function_specifier): Rename from
2726 pp_c_function_specifier. Adjust.
2727 (c_pretty_printer::declaration_specifiers): Rename from
2728 pp_c_declaration_specifiers. Adjust.
2729 (c_pretty_printer::direct_declarator): Rename from
2730 pp_c_direct_declarator. Adjust.
2731 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
2732 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
2733 (c_pretty_printer::c_pretty_printer): Do not assign to
2734 declaration, declaration_specifiers, declarator,
2735 direct_declarator, direct_abstract_declarator, function_specifier.
2736
00d34d3a
GDR
27372013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
2738
2739 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
2740 virtual member function.
2741 (c_pretty_printer::multiplicative_expression): Likewise.
2742 (c_pretty_printer::conditional_expression): Likewise.
2743 (c_pretty_printer::assignment_expression): Likewise.
2744 (c_pretty_printer::expression): Likewise.
2745 (pp_unary_expression): Adjust.
2746 (pp_multiplicative_expression): Likewise.
2747 (pp_assignment_expression): Likewise.
2748 (pp_conditional_expression): Likewise.
2749 (pp_expression): Likewise.
2750 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
2751 from pp_c_unary_expression. Adjust.
2752 (c_pretty_printer::multiplicative_expression): Rename from
2753 pp_c_multiplicative_expression. Adjust.
2754 (c_pretty_printer::conditional_expression): Rename from
2755 pp_c_conditional_expression. Adjust.
2756 (c_pretty_printer::assignment_expression): Rename from
2757 pp_c_assignment_expression. Adjust.
2758 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
2759 (c_pretty_printer::c_pretty_printer): Do not assign to
2760 unary_expression, multiplicative_expression,
2761 conditional_expression, expression.
2762
fb22178f
GDR
27632013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2764
2765 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
2766 virtual member function.
2767 (pp_postfix_expression): Adjust.
2768 (pp_c_postfix_expression): Remove.
2769 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
2770 from pp_c_postfix_expression. Adjust.
2771 (c_pretty_printer::c_pretty_printer): Do not assign to
2772 postfix_expression.
2773
7ecc2600
GDR
27742013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2775
2776 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
2777 virtua member function.
2778 (pp_primary_expression): Adjust.
2779 (pp_c_primary_expression): Remove.
2780 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
2781 from pp_c_primary_expression. Adjust.
2782 (pp_c_initializer_list): Use pp_primary_expression.
2783 (c_pretty_printer::c_pretty_printer): Do not assign to
2784 primary_expression.
2785
0691175f
GDR
27862013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2787
2788 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
2789 * c-pretty-print.c (M_): Remove.
2790 (c_pretty_printer::translate_string): Define.
2791 (pp_c_type_specifier): Use it.
2792 (pp_c_primary_expression): Likewise.
2793 (pp_c_expression): Likewise.
2794
66dfe4c4
GDR
27952013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
2796
2797 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
2798 virtual function.
2799 (pp_c_id_expression): Remove.
2800 (pp_id_expression): Adjust.
2801 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
2802 pp_c_id_expression. Adjust.
2803 (pp_c_postfix_expression): Use pp_id_expression.
2804 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
2805
ca43e9d5
GDR
28062013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
2807
2808 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
2809 member function.
2810 (pp_constant): Adjust.
2811 (pp_c_constant): Remove.
2812 * c-pretty-print.c (c_pretty_printer::constant): Rename from
2813 pp_c_constant. Adjust.
2814 (pp_c_constant)
2815 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
2816 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
2817
da6ca2b5
GDR
28182013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2819
2820 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
2821 (c_pretty_printer::c_pretty_printer): Declare.
2822 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
2823 c_pretty_printer_init. Adjust.
2824 (print_c_tree): Do not call c_pretty_printer_init.
2825 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
2826
65a372f4
AC
28272013-08-09 Arnaud Charlet <charlet@adacore.com>
2828
2829 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
2830
fd9b0f32
PC
28312013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
2832
2833 PR c++/58080
2834 * c-common.c (pointer_int_sum): Add bool parameter.
2835 * c-common.h (pointer_int_sum): Adjust declaration.
2836
e0aec1e9
GDR
28372013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
2838
2839 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
2840 c_pretty_printer variable.
2841
b066401f
GDR
28422013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2843
2844 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
2845 (pp_base): Remove.
2846 (pp_c_base): Likewise. Adjust users.
2847 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
2848 (pp_c_whitespace): Do not call pp_base.
2849 (pp_c_left_paren): Likewise.
2850 (pp_c_right_paren): Likewise.
2851 (pp_c_left_brace): Likewise.
2852 (pp_c_right_brace): Likewise.
2853 (pp_c_left_bracket): Likewise.
2854 (pp_c_right_bracket): Likewise.
2855 (pp_c_dot): Likewise.
2856 (pp_c_ampersand): Likewise.
2857 (pp_c_star): Likewise.
2858 (pp_c_arrow): Likewise.
2859 (pp_c_semicolon): Likewise.
2860 (pp_c_complement): Likewise.
2861 (pp_c_exclamation): Likewise.
2862 (pp_c_direct_declarator): Likewise.
2863 (pp_c_ws_string): Likewise.
2864 (pp_c_identifier): Likewise.
2865 (pp_c_statement): Likewise.
2866 (print_c_tree): Likewise.
2867
65e5a578
ESR
28682013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
2869
2870 PR c++/58072
2871 * c-common.c (c_parse_error): Catch user-defined literal tokens and
2872 provide useful error strings.
2873
137a1a27
GDR
28742013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2875
2876 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
2877 printer functions instead of pp_string or operators and punctuators.
2878 (dump_generic_ada_node): Likewise.
2879 * c-pretty-print.c (pp_c_type_specifier): Likewise.
2880 (pp_c_relational_expression): Likewise.
2881 (pp_c_logical_or_expression): Likewise.
2882
07838b13
GDR
28832013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2884
2885 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
2886 functions instead of pp_character.
2887 (pp_ada_tree_identifier): Likewise.
2888 (dump_ada_double_name): Likewise.
2889 (dump_ada_function_declaration): Likewise.
2890 (dump_ada_array_domains): Likewise.
2891 (dump_template_types): Likewise.
2892 (dump_generic_ada_node): Likewise.
2893 (print_ada_declaration): Likewise.
2894 (print_ada_struct_decl): Likewise.
2895 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2896
433cc7b0
TT
28972013-07-23 Tom Tromey <tromey@redhat.com>
2898
2899 * c-common.h (enum rid) <RID_GENERIC>: New constant.
2900 * c-common.c (c_common_reswords): Add _Generic.
2901
688010ba
OB
29022013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
2903
2904 * c-common.c: Fix typos.
2905 * c-common.h: Likewise.
2906
2a99e5e6
LL
29072013-07-13 Lubos Lunak <l.lunak@suse.cz>
2908
2909 PR c++/55203
2910 * c-common.c (c_common_attribute_table): Add warn_unused.
2911 (handle_warn_unused_attribute): New.
2912
c26302d5
JJ
29132013-07-10 Jakub Jelinek <jakub@redhat.com>
2914
2915 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
2916 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
2917
dfeadaa0
PC
29182013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
2919
2920 PR c++/57869
2921 * c.opt: Add Wconditionally-supported.
2922
6a2fa4b2
GS
29232013-07-08 Graham Stott <graham.stott@btinternet.com>
2924
adfac8df 2925 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
2926 unused variables l_length and l_node.
2927
ecdbd01a 29282013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
2929
2930 PR c/57821
2931 * c-common.c (complete_array_type): Delay folding first index
2932 like other indices. When folding, check for index overflow.
2933
bedc293e
MG
29342013-06-27 Marc Glisse <marc.glisse@inria.fr>
2935
2936 PR c++/57509
2937 * c-common.h (c_build_vec_perm_expr): New complain argument.
2938 * c-common.c (c_build_vec_perm_expr): Likewise.
2939 Use save_expr also in C++.
2940
604b2bfc
GDR
29412013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2942
2943 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
2944 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2945 * c-opts.c (c_common_post_options): Likewise.
2946
dfeadaa0 29472013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
2948
2949 * array-notation-common.c (length_mismatch_in_expr): Changed the
2950 parameter type's from a dynamic array to a vec_tree. Also removed
2951 the size parameters.
2952 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
2953 the change above.
2954
2ce86d2e
BI
29552013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
2956
2957 * c-common.h (struct cilkplus_an_parts): New structure.
2958 (struct cilkplus_an_loop_parts): Likewise.
2959 (cilkplus_extract_an_triplets): New prototype.
2960 (fix_sec_implicit_args): Likewise.
2961 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
2962 (fix_sec_implicit_args): Likewise.
604b2bfc 2963
07a6825b
BI
29642013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
2965
2966 * array-notation-common.c (find_inv_trees): Removed an unwanted
2967 typecasting.
2968 * c-common.h (struct inv_list::additional_tcodes): Changed type from
2969 enum rid to enum tree_code.
2970
08346abd
JH
29712013-06-11 Jan Hubicka <jh@suse.cz>
2972
2973 * c-common.c (handle_alias_ifunc_attribute): Do not set
2974 DECL_EXTERNAL for weakref variables.
2975 * c-pragma.c (handle_pragma_weak): Make sure aliases
2976 are not declared as external.
2977
d60f1706
BI
29782013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
2979
2980 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
2981 function from c/c-array-notation.c.
2982 (is_cilkplus_reduce_builtin): Likewise.
2983 (find_rank): Likewise.
2984 (extract_array_notation_exprs): Likewise.
2985 (replace_array_notations): Likewise.
2986 (find_inv_trees): Likewise.
2987 (replace_inv_trees): Likewise.
2988 (contains_array_notation_expr): Likewise.
2989 (find_correct_array_notation_type): Likewise.
2990 * c-common.h (struct inv_list): Moved this struct from the file
2991 c/c-array-notation.c and added a new field called additional tcodes.
2992 (length_mismatch_in_expr_p): New prototype.
2993 (is_cilkplus_reduce_builtin): Likewise.
2994 (find_rank): Likewise.
2995 (extract_array_notation_exprs): Likewise.
2996 (replace_array_notation): Likewise.
2997 (find_inv_trees): Likewise.
2998 (replace_inv_trees): Likewise.
2999 (find_correct_array_notation_type): Likewise.
dfeadaa0 3000
36536d79
BI
30012013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
3002
3003 * c-common.c (c_define_builtins): When cilkplus is enabled, the
3004 function array_notation_init_builtins is called.
3005 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
3006 * c-common.def (ARRAY_NOTATION_REF): New tree.
3007 * c-common.h (build_array_notation_expr): New function declaration.
3008 (build_array_notation_ref): Likewise.
3009 (extract_sec_implicit_index_arg): New extern declaration.
3010 (is_sec_implicit_index_fn): Likewise.
3011 (ARRAY_NOTATION_CHECK): New define.
3012 (ARRAY_NOTATION_ARRAY): Likewise.
3013 (ARRAY_NOTATION_START): Likewise.
3014 (ARRAY_NOTATION_LENGTH): Likewise.
3015 (ARRAY_NOTATION_STRIDE): Likewise.
3016 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
3017 ARRAY_NOTATION_REF.
3018 (pp_c_expression): Likewise.
3019 * c.opt (flag_enable_cilkplus): New flag.
3020 * array-notation-common.c: New file.
3021
f7716d57
JJ
30222013-05-14 Jakub Jelinek <jakub@redhat.com>
3023
3024 PR c++/57274
3025 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
3026
a5e0cd1d
MG
30272013-05-10 Marc Glisse <marc.glisse@inria.fr>
3028
3029 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
3030 vectors.
3031
f6bc1c4a
HS
30322013-05-07 Han Shen <shenhan@google.com>
3033
3034 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
3035
3f12f6e9
SKS
30362013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3037
3038 * c-common.c (check_user_alignment): Emit error for negative values.
3039
61949153
PC
30402013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3041
3042 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
3043
e93e18e9
PC
30442013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3045
3046 * c-cppbuiltin.c (c_cpp_builtins): Do not define
3047 __GXX_EXPERIMENTAL_CXX1Y__.
3048
44d90fe1
PC
30492013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3050 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3051
3052 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
3053 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
3054 to simply use OPT_Wpointer_arith.
3055 (c_sizeof_or_alignof_type): Likewise.
3056
13f39b2e
PC
30572013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3058
3059 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
3060
4b84d650
JJ
30612013-04-12 Jakub Jelinek <jakub@redhat.com>
3062
3063 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
3064 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
3065 specifiers.
3066
fb037b5d
SB
30672013-04-07 Steven Bosscher <steven@gcc.gnu.org>
3068
3069 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
3070
4e856798
PC
30712013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
3072
3073 * c-common.c (pointer_int_sum): Remove dead code.
3074
4b1baac8
RS
30752013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
3076
3077 PR middle-end/56524
3078 * c-common.c (handle_optimize_attribute): Don't call
3079 save_optabs_if_changed.
3080
0b50e654
JJ
30812013-03-05 Jakub Jelinek <jakub@redhat.com>
3082
3083 PR middle-end/56461
3084 * c-pch.c (pch_init): Free target_validity at the end.
3085
48c41403
JJ
30862013-03-04 Jakub Jelinek <jakub@redhat.com>
3087
3088 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
3089
e664c61c
KS
30902013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
3091 Jakub Jelinek <jakub@redhat.com>
3092
3093 PR sanitizer/56454
3094 * c-common.c (handle_no_sanitize_address_attribute): New function.
3095 (c_common_attribute_table): Add no_sanitize_address attribute.
3096 (handle_no_address_safety_analysis_attribute): Add
3097 no_sanitize_address attribute, not no_address_safety_analysis
3098 attribute.
3099
a475fd3d 31002013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
3101
3102 PR target/52555
3103 * c-common.c (handle_optimize_attribute): Call
3104 save_optabs_if_changed.
3105
f6007d99
JJ
31062013-02-18 Jakub Jelinek <jakub@redhat.com>
3107 Steven Bosscher <steven@gcc.gnu.org>
3108
3109 PR pch/54117
3110 * c-opts.c (c_common_post_options): If debug info is enabled
3111 and non-dwarf*, refuse to load PCH files and when writing PCH
3112 file warn.
3113
cf35e2b1
JJ
31142013-02-05 Jakub Jelinek <jakub@redhat.com>
3115
3116 PR middle-end/56167
3117 * c-common.c (handle_error_attribute): Fix condition.
3118
32887460
JJ
31192013-01-30 Jakub Jelinek <jakub@redhat.com>
3120
3121 PR c++/55742
3122 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
3123
5af057d8
JM
31242013-01-18 Jason Merrill <jason@redhat.com>
3125
3126 PR target/54908
3127 * c.opt (-fextern-tls-init): New.
3128 * c-opts.c (c_common_post_options): Handle it.
3129
cc83c823
JJ
31302013-01-09 Jakub Jelinek <jakub@redhat.com>
3131
3132 PR c/48418
3133 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
3134 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
3135 and is either negative or bigger or equal to type precision
3136 of the first operand.
3137
a859517f
MP
31382012-12-03 Marek Polacek <polacek@redhat.com>
3139
3140 PR c/55570
3141 * c-common.c (check_user_alignment): Swap order of tests,
3142 check TREE_CODE first.
3143
2d7aa578
ESR
31442012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
3145
3146 PR c++/52654
3147 * c-common.h (overflow_type): New enum.
3148 (build_userdef_literal): Add overflow_type argument.
3149 (tree_userdef_literal): Add overflow_type.
3150 (USERDEF_LITERAL_OVERFLOW): New access macro.
3151 * c-common.c (build_userdef_literal): Add overflow_type
3152 argument.
3153 * c-lex.c (c_lex_with_flags): Add overflow_type to
3154 build_userdef_literal calls.
3155 (interpret_integer, interpret_float): Add overflow_type argument.
3156
cc3c4f62
RB
31572012-11-28 Richard Biener <rguenther@suse.de>
3158
3159 PR c/35634
3160 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
3161 here and use a type with proper overflow behavior for types that would
3162 need to be promoted for the arithmetic.
3163
77bc5132
JJ
31642012-11-23 Jakub Jelinek <jakub@redhat.com>
3165
3166 PR sanitizer/55435
3167 * c-common.c (handle_no_address_safety_analysis_attribute): New
3168 function.
3169 (c_common_attribute_table): Add no_address_safety_analysis.
3170
5dc99c46
SB
31712012-11-16 Simon Baldwin <simonb@google.com>
3172
3173 * c.opt: Add f[no-]canonical-system-headers.
3174 * c-opts.c (c_common_handle_option): Handle
3175 OPT_fcanonical_system_headers.
3176
a4a0016d
ESR
31772012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
3178
3179 PR c++/54413
3180 * c-opts.c (c_common_handle_option): Set new flags.
3181 * c.opt: Describe new flags.
3182
7dbb85a7
JM
31832012-11-09 Jason Merrill <jason@redhat.com>
3184
3185 * c.opt (Wabi-tag): New.
3186
ad7bac31
AK
31872012-11-09 Andi Kleen <ak@linux.intel.com>
3188
3189 PR 55139
3190 * c-common.c (get_atomic_generic_size): Mask with
3191 MEMMODEL_MASK
3192
7332899a
MLI
31932012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3194
3195 PR c/53063
3196 * c.opt (Wformat): Make it Alias Wformat=1.
3197 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
3198 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
3199 LangEnabledBy.
3200 (Wformat=): RejectNegative. Use LangEnabledBy.
3201 (Wnonnull): Use LangEnabledBy.
3202 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
3203 * c-format.c (set_Wformat): Delete.
3204 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
3205 (maybe_read_dollar_number): Likewise.
3206 (avoid_dollar_number): Likewise.
3207 (finish_dollar_format_checking): Likewise.
3208 (check_format_info): Likewise.
3209 (check_format_info_main): Likewise.
3210 (check_format_types): Likewise.
3211 (format_type_warning): Likewise.
3212 * c-common.c (int): Likewise.
3213 (check_function_sentinel): Likewise.
3214 * c-common.h (warn_format,set_Wformat): Do not declare here.
3215
34a180a6
MLI
32162012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3217
3218 PR c/53063
3219 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
3220 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
3221 Use LangEnabledBy.
3222 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
3223 common.opt.
3224 (Wvariadic-macros): Init(1).
3225 * c-opts.c (c_common_handle_option): Do not handle them
3226 explicitly.
3227 (c_common_post_options): Likewise.
3228 (sanitize_cpp_opts): warn_unused_macros is now
3229 cpp_warn_unused_macros.
3230 (push_command_line_include): Likewise.
3231 * c-common.c (warn_unknown_pragmas): Do not define.
3232 * c-common.h (warn_unknown_pragmas): Do not declare.
3233
3f46d6a5
MLI
32342012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3235
3236 PR c/51294
3237 * c-common.c (conversion_warning): Handle conditional expressions.
3238
880661a4
JW
32392012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
3240
3241 PR c++/54930
3242 * c.opt (Wreturn_local_addr): Define new option.
3243
4514a96b
JM
32442012-10-25 Jason Merrill <jason@redhat.com>
3245
f14edc1a
JM
3246 * c.opt (Wvirtual-move-assign): New.
3247
4514a96b
JM
3248 * c.opt (Winherited-variadic-ctor): New.
3249
93100c6b
MG
32502012-10-25 Marc Glisse <marc.glisse@inria.fr>
3251
3252 PR c++/54427
3253 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
3254
1efcb8c6
JM
32552012-10-23 Joseph Myers <joseph@codesourcery.com>
3256
3257 * c-common.h (pch_cpp_save_state): Declare.
3258 * c-target.def (c_preinclude): New hook.
3259 * c-opts.c (done_preinclude): New.
3260 (push_command_line_include): Handle default preincluded header.
3261 (cb_file_change): Call pch_cpp_save_state when calling
3262 push_command_line_include.
3263 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
3264 (pch_cpp_save_state): New.
3265 (pch_init): Call pch_cpp_save_state conditionally, instead of
3266 calling cpp_save_state.
3267
4a0ae68e
MLI
32682012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3269
3270 PR c/53063
3271 PR c/40989
3272 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
3273 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
3274 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
3275 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
3276 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
3277 * c-opts.c (c_common_handle_option): Remove explicit handling from
3278 here.
3279 (c_common_post_options): Likewise.
3280
67e4210b
EB
32812012-10-18 Eric Botcazou <ebotcazou@adacore.com>
3282
3283 * c-ada-spec.c (LOCATION_COL): Delete.
3284 (compare_location): New function.
3285 (compare_node): Use it.
3286 (compare_comment): Likewise.
3287
65d4f2cd
MLI
32882012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
3289
3290 PR c/53063
3291 PR c/40989
3292 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
3293 * c-opts.c (c_common_handle_option): Do not set them here. Add
3294 comment.
3295 (c_common_post_options): Likewise.
3296
909881cb
EB
32972012-10-16 Eric Botcazou <ebotcazou@adacore.com>
3298
3299 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
3300 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
3301 Remove POINTER_TYPE handling, add large unsigned handling and use
3302 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
3303
3a785c97
JJ
33042012-10-12 Jakub Jelinek <jakub@redhat.com>
3305
3306 PR c/54381
3307 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
3308 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
3309 locs and array of 3 trees instead of just single loc and single
3310 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
3311 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
3312 For *cmp* builtins that take two sources strings report warnings
3313 about first and second source, not about destination and source.
3314
5e54f81d
MG
33152012-10-12 Marc Glisse <marc.glisse@inria.fr>
3316
3317 PR c++/53055
3318 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
3319
f5b02f1e
EB
33202012-10-11 Eric Botcazou <ebotcazou@adacore.com>
3321
3322 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
3323 declaring something coming from another file.
3324
b46dbc6c
AC
33252012-10-10 Arnaud Charlet <charlet@adacore.com>
3326
f5b02f1e 3327 PR ada/54845
b46dbc6c
AC
3328 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
3329
5d9de0d0
PC
33302012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
3331
3332 PR c++/54194
3333 * c-common.c (warn_about_parentheses): Add location_t parameter;
3334 use EXPR_LOC_OR_LOC.
3335 * c-common.h: Update declaration.
3336
a212e43f
MG
33372012-10-09 Marc Glisse <marc.glisse@inria.fr>
3338
3339 PR c++/54427
3340 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
3341 more operations. Make error messages optional.
3342 * c-common.h (enum stv_conv): Moved from c-typeck.c.
3343 (scalar_to_vector): Declare.
3344
b1db7f91
JM
33452012-10-08 Jason Merrill <jason@redhat.com>
3346
3347 * c-common.c (c_common_reswords): Add thread_local.
3348
e28d52cf
DS
33492012-10-08 Dodji Seketeli <dodji@redhat.com>
3350
3351 PR c++/53528 C++11 attribute support
3352 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
3353 new functions.
3354 * c-common.c (check_cxx_fundamental_alignment_constraints): New
3355 static function.
3356 (handle_aligned_attribute): In choose strictest alignment
3357 among many. Use new check_cxx_fundamental_alignment_constraints.
3358 (handle_transparent_union_attribute): In c++11 attribute syntax,
3359 don't look through typedefs.
3360
3b78de56
AC
33612012-10-04 Arnaud Charlet <charlet@adacore.com>
3362
3363 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
3364 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
3365 out of dumpfile.h.
3366
6040bb5f
DC
33672012-09-25 Dehao Chen <dehao@google.com>
3368
3369 PR middle-end/54645
3b78de56 3370 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
3371 map when read in the pch.
3372
0b07a57e
AC
33732012-09-18 Arnaud Charlet <charlet@adacore.com>
3374
3375 * c-ada-spec.c: Style fixes.
3376
da5182be
TQ
33772012-09-18 Thomas Quinot <quinot@adacore.com>
3378
3379 * c.opt (-fada-spec-parent): Define new command line switch.
3380 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
3381 is specified, generate binding spec as a child of the specified unit.
3382
0ccb505d
PC
33832012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
3384 Manuel López-Ibáñez <manu@gcc.gnu.org>
3385
3386 PR c++/53210
3387 * c.opt ([Winit-self]): Enabled by -Wall in C++.
3388
c583af79
AC
33892012-08-23 Arnaud Charlet <charlet@adacore.com>
3390
3391 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
3392 for pointers, and add missing Convention C pragma.
3393 (print_ada_struct_decl): Add missing aliased keyword.
3394 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
3395
1a4049e7
JJ
33962012-08-17 Jakub Jelinek <jakub@redhat.com>
3397
3398 * c-common.c (sizeof_pointer_memaccess_warning): New function.
3399 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
3400 * c-opts.c (c_common_handle_option): Enable it for -Wall.
3401 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
3402 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
3403
70b5e7dc
RG
34042012-08-10 Richard Guenther <rguenther@suse.de>
3405
3406 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
3407
f8923f7e
SB
34082012-08-07 Steven Bosscher <steven@gcc.gnu.org>
3409
3410 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
3411 instead of separate pp_newline and pp_flush.
3412 (print_c_tree): Likewise.
3413
e45abe1f
RH
34142012-07-26 Richard Henderson <rth@redhat.com>
3415
3416 * c-common.c (handle_hot_attribute): Allow labels.
3417 (handle_cold_attribute): Likewise.
3418
332f1d24
JJ
34192012-07-20 Jakub Jelinek <jakub@redhat.com>
3420
3421 PR c++/28656
3422 * c-common.c (check_function_nonnull): Handle multiple nonnull
3423 attributes properly.
3424
7ee2468b
SB
34252012-07-16 Steven Bosscher <steven@gcc.gnu.org>
3426
3427 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
3428 * c-ada-spec.c: Likewise.
3429 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
3430
ee7b28eb
SB
34312012-07-14 Steven Bosscher <steven@gcc.gnu.org>
3432
3433 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
3434 Remove code conditional on it.
3435
6bdf3519
SB
34362012-07-11 Steven Bosscher <steven@gcc.gnu.org>
3437
3438 * c-gimplify.c: Do not include basic-block.h.
3439 * c-common.c: Do not include linfuncs.h.
3440
532aafad
SB
34412012-07-08 Steven Bosscher <steven@gcc.gnu.org>
3442
3443 * c-common.h: Include tree.h.
3444
8d0d1915
JM
34452012-07-02 Jason Merrill <jason@redhat.com>
3446
3447 PR c++/53524
3448 * c-common.c (get_priority): Call default_conversion.
3449
fbc873ad
UB
34502012-07-01 Uros Bizjak <ubizjak@gmail.com>
3451
3452 * c-pch.c (c_common_write_pch): Remove unused variables.
3453
d4a10d0a
SB
34542012-06-29 Steven Bosscher <steven@gcc.gnu.org>
3455
3456 * cppspec.c: Moved from gcc/ to here.
3457
6f3a2e23
KT
34582012-06-27 Kai Tietz <ktietz@redhat.com>
3459
3460 PR preprocessor/37215
3461 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
3462
8ca92d04
SB
34632012-06-21 Steven Bosscher <steven@gcc.gnu.org>
3464
3465 * c-common.h (c_common_print_pch_checksum): Remove.
3466 * c-pch.c: Do not include output.h.
3467 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
3468 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
3469 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
3470 (struct c_pch_header): Remove.
3471 (get_ident): Update gpch version.
3472 (pch_init): Do not print executable_checksum to asm_out_file.
3473 Do not fail if there is no asm_out_file to read back from. Set
3474 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
3475 (c_common_write_pch): Verify that nothing was written to asm_out_file
3476 since pch_init was called. Do not write a c_pch_header, and do not
3477 copy from asm_out_file to the PCH.
3478 (c_common_read_pch): Do not read a c_pch_header, and do not restore
3479 the content of asm_out_file from the PCH.
3480 (c_common_print_pch_checksum): Remove.
3481 * c-opts.c (c_common_init): Print out executable_checksum directly.
3482
70f42967
SB
34832012-06-19 Steven Bosscher <steven@gcc.gnu.org>
3484
3485 * c-target.def (objc_declare_unresolved_class_reference,
3486 objc_declare_class_definition): Add new hooks.
3487
a8781821
SB
34882012-06-19 Steven Bosscher <steven@gcc.gnu.org>
3489
3490 * c-lex.c: Do not include output.h.
3491 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
3492 Remove uses of ASM_OUTPUT_IDENT.
3493
9e1a8dd1
RR
34942012-06-15 Marc Glisse <marc.glisse@inria.fr>
3495
3496 PR c++/51033
3497 * c-common.h (c_build_vec_perm_expr): Move decl here.
3498 * c-common.c (c_build_vec_perm_expr): Move definition
3499 here.
3500
6f07a821
SB
35012012-06-06 Steven Bosscher <steven@gcc.gnu.org>
3502
3503 * c.opt (fconserve-space): Turn into a no-op.
3504
9faeb493 35052012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
3506
3507 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
3508 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
3509 both the start and end of the function.
3510
a4b7d13c
SB
35112012-06-04 Steven Bosscher <steven@gcc.gnu.org>
3512
3513 * c-common.c: Do not include output.h.
3514 * c-pragma.c: Likewise.
3515
c265f413
SA
35162012-06-04 Steven Bosscher <steven@gcc.gnu.org>
3517
3518 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
3519 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
3520 (lang_decl_name): Handle namespace decls.
3521
be7a421e
SB
35222012-05-31 Steven Bosscher <steven@gcc.gnu.org>
3523
3524 * c-ada-spec.c: Do not include output.h.
3525 * c-semantics.c: Likewise.
3526
65de6659
JM
35272012-05-29 Joseph Myers <joseph@codesourcery.com>
3528
3529 * c-common.c: Fix typo.
3530
ca5f4331
MM
35312012-05-29 Michael Matz <matz@suse.de>
3532
3533 * c-common.h (c_expand_decl): Remove prototype.
3534
4f7f7aca
MLI
35352012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3536
3537 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
3538 * c-opts.c (c_common_handle_option): Remove code handling
3539 warn_missing_braces.
3540
4a792f9b
PC
35412012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
3542
3543 PR c++/25137
3544 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
3545 -Wmissing_braces.
3546
650dc14a
DS
35472012-05-22 Dodji Seketeli <dodji@redhat.com>
3548
3549 PR c++/53322
3550 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
3551
9b095bf1
MLI
35522012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
3553
3554 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
3555 * c-opts.c (c_common_handle_option): Do not handle explicitly
3556 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
3557
0b2c4be5
DS
35582012-05-16 Dodji Seketeli <dodji@redhat.com>
3559
3560 PR preprocessor/7263
3561 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
3562 to cpp_classify_number. For diagnostics, use the precise location
3563 instead of the global input_location.
3564
a1bde5af
PC
35652012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
3566
d02924ef 3567 PR c++/11856
a1bde5af
PC
3568 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
3569
d1ede5f4
BS
35702012-05-14 Bernd Schmidt <bernds@codesourcery.com>
3571
a1bde5af 3572 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 3573
f2bc201f
MLI
35742012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
3575
3576 PR 53063
3577 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
3578 Wreorder): Use LangEnabledBy.
3579 * c-opts.c (c_common_handle_option): Do not enable them
3580 explicitly. Call lang-specific generated functions.
3581 (c_common_post_options): Do not set them here.
3582
95744782
MLI
35832012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
3584
3585 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
3586 Wmissing-field-initializers,Wmissing-parameter-type,
3587 Wold-style-declaration,Woverride-init): Use EnabledBy.
3588 * c-opts.c (c_common_post_options): Do not set here explicitly.
3589
7d5a5747
MLI
35902012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3591
3592 PR 53063
3593 * c-opts.c (c_common_handle_option): Use handle_generated_option
3594 to enable sub-options.
3595
5a3c9cf2
PC
35962012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
3597
3598 PR c++/53158
3599 * c-common.c (warnings_for_convert_and_check): Use warning_at.
3600
3ac8781c
RG
36012012-05-10 Richard Guenther <rguenther@suse.de>
3602
3603 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
3604 adjust commentary about TYPE_IS_SIZETYPE types.
3605
1e537948
MLI
36062012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3607
3608 PR c++/53261
3609 * c-common.c (warn_logical_operator): Check that argument of
3610 integer_zerop is not NULL.
3611
f2c4a785
MLI
36122012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
3613
3614 PR c/43772
3615 * c-common.c (warn_logical_operator): Do not warn if either side
3616 is already true or false.
3617
50f305ca
MLI
36182012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
3619
3620 PR c/51712
3621 * c-common.c (expr_original_type): New.
3622 (shorten_compare): Do not warn for enumeration types.
3623
0c3641b0
MLI
36242012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3625
3626 * c.opt (fpermissive): Add Var(flag_permissive).
3627
7edaa4d2
MG
36282012-04-30 Marc Glisse <marc.glisse@inria.fr>
3629
3630 PR c++/51033
3631 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
3632 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
3633
b9c8da34
DS
36342012-04-30 Dodji Seketeli <dodji@redhat.com>
3635
3636 Add -Wvarargs option
3637 * c.opt (Wvarargs): Define new option.
3638
e6c69da0
MLI
36392012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3640
3641 * c-common.c (check_function_arguments): Replace
3642 Wmissing-format-attribute with Wsuggest-attribute=format.
3643
90137d8f
MLI
36442012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3645
3646 * c.opt (Wsuggest-attribute=format): New. Alias of
3647 Wmissing-format-attribute.
3648 * c-format.c (decode_format_type): Replace
3649 Wmissing-format-attribute with Wsuggest-attribute=format.
3650 (check_function_format): Likewise.
3651
9faeb493 36522012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
3653
3654 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
3655 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
3656 * c.opt: Add Wliteral-suffix.
3657
c1771a20
MLI
36582012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
3659
3660 PR c/44774
3661 * c.opt (Wpedantic): New.
3662 (pedantic): Alias Wpedantic.
3663 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
3664 (c_common_post_options): Likewise.
3665 (sanitize_cpp_opts): Likewise.
3666 * c-lex.c (interpret_float): Likewise.
3667 * c-format.c (check_format_types): Likewise.
3668 * c-common.c (pointer_int_sum): Likewise.
3669 (c_sizeof_or_alignof_type): Likewise.
3670 (c_add_case_label): Likewise.
3671 (c_do_switch_warnings): Likewise.
3672 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
3673
04b391c1
JM
36742012-04-15 Jason Merrill <jason@redhat.com>
3675
3676 PR c++/52818
3677 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
3678 (C_STD_NAME): Distinguish between C++98 and C++11.
3679
ac868f29
EB
36802012-04-11 Eric Botcazou <ebotcazou@adacore.com>
3681
3682 PR target/52624
3683 * c-common.h (uint16_type_node): Rename into...
3684 (c_uint16_type_node): ...this.
3685 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
3686 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
3687
fd4116f4
MLI
36882012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
3689
3690 * c-common.c (warn_if_unused_value): Move definition to here.
3691 * c-common.h (warn_if_unused_value): Move declaration to here.
3692
573ac65e
WB
36932012-03-23 William Bader <williambader@hotmail.com>
3694
3695 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
3696
552b8185
JM
36972012-03-20 Jason Merrill <jason@redhat.com>
3698
3699 * c-common.h (enum cxx_dialect): Add cxx1y.
3700 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
3701 test.
3702 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3703 * c-opts.c (c_common_post_options): Likewise.
3704 (set_std_cxx1y): New.
3705 (c_common_handle_option): Call it.
3706 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
3707
04398fa8
PC
37082012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
3709
3710 PR c++/14710
3711 * c.opt ([Wuseless-cast]): Add.
3712
d2a12ae7
RG
37132012-03-16 Richard Guenther <rguenther@suse.de>
3714
3715 * c-pretty-print.c (pp_c_initializer_list): Adjust.
3716
a12bf402
MLI
37172012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3718
3719 PR c++/44783
3720 * c.opt (ftemplate-backtrace-limit) Add.
3721
5c30094f
RO
37222012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3723
3724 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
3725 handling.
3726 * c-pragma.c (handle_pragma_extern_prefix): Remove.
3727 (init_pragma): Don't register extern_prefix.
3728
21fa2faf
RG
37292012-03-12 Richard Guenther <rguenther@suse.de>
3730
3731 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
3732 (builtin_type_for_size): Likewise.
3733
e3793c6f
JJ
37342012-02-13 Jakub Jelinek <jakub@redhat.com>
3735
3736 PR c++/52215
3737 * c-common.c (sync_resolve_params): Don't decide whether to convert
3738 or not based on TYPE_SIZE comparison, convert whenever arg_type
3739 is unsigned INTEGER_TYPE.
3740
93286335
PC
37412012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
3742
3743 PR c/52118
3744 * c.opt ([Wunused-local-typedefs]): Fix description.
3745
7a421706
MS
37462012-01-24 Mike Stump <mikestump@comcast.net>
3747
3748 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
3749 exactly.
3750
ba9b1f11
RG
37512012-01-18 Richard Guenther <rguenther@suse.de>
3752
3753 * c-opts.c (c_common_post_options): Reset LTO flags if
3754 we are about to generate a PCH.
3755
465406be
PC
37562012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
3757
3758 PR c++/51777
3759 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
3760 use pp_unsigned_wide_integer.
3761
aee15221
RG
37622012-01-10 Richard Guenther <rguenther@suse.de>
3763
3764 PR middle-end/51806
3765 * c-opts.c (c_common_handle_option): Move -Werror handling
3766 to language independent code.
3767
5720c0dc
RG
37682012-01-05 Richard Guenther <rguenther@suse.de>
3769
3770 PR middle-end/51764
3771 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
3772 from common.opt.
3773
73ac190a
PC
37742011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
3775
3776 PR c++/51316
3777 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
3778 of array types with an unknown bound.
3779
48b0b196
JM
37802011-12-20 Joseph Myers <joseph@codesourcery.com>
3781
3782 * c-common.c (flag_isoc99): Update comment to refer to C11.
3783 (flag_isoc1x): Change to flag_isoc11.
3784 * c-common.h (flag_isoc99): Update comment to refer to C11.
3785 (flag_isoc1x): Change to flag_isoc11.
3786 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
3787 C11.
3788 * c-opts.c (set_std_c1x): Change to set_std_c11.
3789 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
3790 Call set_std_c11.
3791 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
3792 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
3793 * c.opt (std=c1x): Change to std=c11. Document as non-draft
3794 standard.
3795 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
3796 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
3797 (std=gnu1x): Make alias of std=gnu11.
3798
d58d6eb5
JM
37992011-12-19 Jason Merrill <jason@redhat.com>
3800
3801 PR c++/51228
3802 * c-common.c (handle_transparent_union_attribute): Check the first
3803 field if the type is complete.
3804
b3908fcc
JW
38052011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
3806
3807 PR libstdc++/51365
3808 * c-common.c (RID_IS_FINAL): Add.
3809 * c-common.h (RID_IS_FINAL): Add.
3810
fea3ca91
IS
38112011-11-30 Iain Sandoe <iains@gcc.gnu.org>
3812
3813 * c.opt (fgnu-runtime): Provide full description.
3814 (fnext-runtime): Likewise.
3815 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
3816
62bad7cd
AM
38172011-11-28 Andrew MacLeod <amacleod@redhat.com>
3818
3819 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
3820 predefines in one place. Add LOCK_FREE predefines.
3821 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
3822 new func.
3823
c466c4ff
AM
38242011-11-24 Andrew MacLeod <amacleod@redhat.com>
3825
3826 PR c/51256
9faeb493 3827 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 3828 conditions
9faeb493
UB
3829 (resolve_overloaded_atomic_exchange,
3830 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
3831 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
3832 error_mark_node for error conditions.
9faeb493 3833
a5952633
RG
38342011-11-08 Richard Guenther <rguenther@suse.de>
3835
3836 PR middle-end/51010
3837 c-family/
3838
0a35513e
AH
38392011-11-07 Richard Henderson <rth@redhat.com>
3840 Aldy Hernandez <aldyh@redhat.com>
3841 Torvald Riegel <triegel@redhat.com>
3842
3843 Merged from transactional-memory.
3844
3845 * c-common.c (handle_tm_wrap_attribute,
3846 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
3847 (struct c_common_reswords): Added __transaction* keywords.
3848 (struct c_common_attribute_table): Added transaction* and tm_regparm
3849 attributes.
3850 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
3851 masks.
3852 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
3853 find_tm_attribute): Declare.
3854
6d87092d
JM
38552011-11-07 Jason Merrill <jason@redhat.com>
3856
3857 PR c++/35688
3858 * c-common.c, c-common.h: Revert yesterday's changes.
3859
8e7860a1
JM
38602011-11-06 Jason Merrill <jason@redhat.com>
3861
3862 PR c++/35688
3863 * c-common.c (decl_has_visibility_attr): Split out from...
3864 (c_determine_visibility): ...here.
3865 * c-common.h: Declare it.
3866
d19fa6b5
JM
38672011-11-06 Joseph Myers <joseph@codesourcery.com>
3868
3869 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
3870 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
3871 type.
3872 (check_user_alignment): New. Split out of
3873 handle_aligned_attribute. Disallow integer constants with
3874 noninteger types. Conditionally allow zero.
3875 (handle_aligned_attribute): Use check_user_alignment.
3876 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
3877
86951993
AM
38782011-11-06 Andrew MacLeod <amacleod@redhat.com>
3879 Richard Henderson <rth@redhat.com>
3880
3881 Merged from cxx-mem-model.
3882
3883 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 3884 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
3885 parameters that are the same type size.
3886 (get_atomic_generic_size): New. Find size of generic
3887 atomic function parameters and do typechecking.
3888 (add_atomic_size_parameter): New. Insert size into parameter list.
3889 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
3890 either __atomic_exchange_n or external library call.
9faeb493 3891 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 3892 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 3893 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
3894 __atomic_load_n or an external library call.
3895 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
3896 __atomic_store_n or an external library call.
3897 (resolve_overloaded_builtin): Handle new __atomic builtins.
3898
cf9e9959
EB
38992011-11-04 Eric Botcazou <ebotcazou@adacore.com>
3900
3901 PR c++/50608
3902 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
3903 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
3904 <INDIRECT_REF>: Return the argument.
3905 <ARRAY_REF>: Remove special code for negative offset.
3906 Call fold_build_pointer_plus instead of size_binop.
3907 (fold_offsetof): Remove STOP_REF argument and adjust.
3908 * c-common.h (fold_offsetof_1): Declare.
3909 (fold_offsetof): Remove STOP_REF argument.
3910
25339f10
JM
39112011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
3912
3913 PR c++/50810
3914 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3915 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3916 Wnarrowing for C++0x and C++98.
3917 * c.opt ([Wnarrowing]): Update.
3918
89401152
PC
39192011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
3920
3921 PR c++/44277
3922 * c.opt: Add Wzero-as-null-pointer-constant.
3923
97e3ad20
JM
39242011-10-31 Jason Merrill <jason@redhat.com>
3925
15694fdd
JM
3926 * c.opt (-fdeduce-init-list): Off by default.
3927
97e3ad20
JM
3928 PR c++/50920
3929 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
3930 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
3931 and -Wc++11-compat.
3932 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
3933
fb9120e3
RAV
39342011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
3935
3936 PR c++/30066
3937 * c.opt (fvisibility-inlines-hidden): Description change.
3938
3ce4f9e4
ESR
39392011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
3940
3941 Implement C++11 user-defined literals.
3942 * c-common.c (build_userdef_literal): New.
3943 * c-common.def: New tree code.
3944 * c-common.h (tree_userdef_literal): New tree struct and accessors.
3945 * c-lex.c (interpret_float): Add suffix parm.
3946 (c_lex_with_flags): Build literal tokens.
3947
5f53c243
PC
39482011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3949
3950 PR c++/50841
3951 Revert:
3952 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3953
3954 PR c++/50810
3955 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3956 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3957 Wnarrowing for C++0x and C++98.
3958 * c.opt ([Wnarrowing]): Update.
3959
263734e1
PC
39602011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3961
3962 PR c++/50810
3963 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3964 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3965 Wnarrowing for C++0x and C++98.
3966 * c.opt ([Wnarrowing]): Update.
3967
d2e312d7
PC
39682011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
3969
3970 PR c++/45385
3971 * c-common.c (conversion_warning): Remove code looking for
3972 artificial operands.
3973
d17687f6
DS
39742011-10-18 Dodji Seketeli <dodji@redhat.com>
3975
3976 PR bootstrap/50760
3977 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 3978 !NO_IMPLICIT_EXTERN_C.
d17687f6 3979
fc8396e9
PC
39802011-10-17 Michael Spertus <mike_spertus@symantec.com>
3981
3982 * c-common.c (c_common_reswords): Add __bases,
3983 __direct_bases.
3984 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
3985
39862011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
3987
3988 PR c++/50757
3989 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
3990
847e697a
TT
39912011-10-15 Tom Tromey <tromey@redhat.com>
3992 Dodji Seketeli <dodji@redhat.com>
3993
3994 * c.opt (fdebug-cpp): New option.
3995 * c-opts.c (c_common_handle_option): Handle the option.
3996 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
3997 output stream in parameter. Factorized from ...
3998 (maybe_print_line): ... this. Dump location debug information when
3999 -fdebug-cpp is in effect.
4000 (print_line_1): New static function. Takes an output stream in
4001 parameter. Factorized from ...
4002 (print_line): ... here. Dump location information when -fdebug-cpp
4003 is in effect.
4004 (scan_translation_unit): Dump location information when
4005 -fdebug-cpp is in effect.
4006
92582b75
TT
40072011-10-15 Tom Tromey <tromey@redhat.com>
4008 Dodji Seketeli <dodji@redhat.com>
4009
4010 * c.opt (ftrack-macro-expansion): New option. Handle it with and
4011 without argument.
4012 * c-opts.c (c_common_handle_option)<case
4013 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
4014 cases. Handle -ftrack-macro-expansion with and without argument.
4015
46427374
TT
40162011-10-15 Tom Tromey <tromey@redhat.com>
4017 Dodji Seketeli <dodji@redhat.com>
4018
4019 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
4020 (print_line, cb_define, do_line_change): Adjust to avoid touching
4021 the internals of struct line_map. Use the public API instead.
4022 * c-pch.c (c_common_read_pch): Likewise.
4023 * c-lex.c (fe_file_change): Likewise.
4024
fc8396e9
PC
40252011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
4026
4027 PR c++/17212
4028 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
4029
40302011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
4031
4032 PR c++/33067
4033 * c-pretty-print.c (pp_c_floating_constant): Output
4034 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
4035
e79983f4
MM
40362011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
4037
4038 * c-common.c (def_builtin_1): Delete old interface with two
4039 parallel arrays to hold standard builtin declarations, and replace
4040 it with a function based interface that can support creating
4041 builtins on the fly in the future. Change all uses, and poison
4042 the old names. Make sure 0 is not a legitimate builtin index.
4043 * c-omp.c (c_finish_omp_barrier): Ditto.
4044 (c_finish_omp_taskwait): Ditto.
4045 (c_finish_omp_flush): Ditto.
4046
6637388f
TG
40472011-10-11 Tristan Gingold <gingold@adacore.com>
4048
4049 * c.opt: (fallow-parameterless-variadic-functions): New.
4050
3797cb21
DS
40512011-09-08 Dodji Seketeli <dodji@redhat.com>
4052
4053 PR c++/33255 - Support -Wunused-local-typedefs warning
4054 * c-common.h (struct c_language_function::local_typedefs): New
4055 field.
9faeb493
UB
4056 (record_locally_defined_typedef, maybe_record_typedef_use)
4057 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 4058 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
4059 (maybe_record_typedef_use)
4060 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
4061 * c.opt: Declare new -Wunused-local-typedefs flag.
4062
693ddb1b
EB
40632011-09-06 Eric Botcazou <ebotcazou@adacore.com>
4064
4065 PR middle-end/50266
4066 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
4067 computations.
4068
830c740f
RG
40692011-09-05 Richard Guenther <rguenther@suse.de>
4070
4071 * c-common.c (complete_array_type): Use ssize_int (-1) instead
4072 of integer_minus_one_node for empty array upper bounds.
4073
892a371f
DS
40742011-08-28 Dodji Seketeli <dodji@redhat.com>
4075
4076 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
4077 it's the first time it's being called on this main TU.
4078
0e3fdb48
RB
40792011-08-24 Richard Guenther <rguenther@suse.de>
4080
4081 PR c/49396
4082 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
4083
40842011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
4085
4086 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
4087 defined in cpp_init_builtins and c_cpp_builtins.
4088
d4a83c10
JM
40892011-08-19 Joseph Myers <joseph@codesourcery.com>
4090
4091 * c-common.c (c_common_reswords): Add __builtin_complex.
4092 * c-common.h (RID_BUILTIN_COMPLEX): New.
4093
bbceee64
JM
40942011-08-18 Joseph Myers <joseph@codesourcery.com>
4095
4096 * c-common.c (c_common_reswords): Add _Noreturn.
4097 (keyword_is_function_specifier): Handle RID_NORETURN.
4098 * c-common.h (RID_NORETURN): New.
4099
0e3a99ae
AS
41002011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4101
4102 * c-common.c (unsafe_conversion_p): New function. Check if it is
4103 unsafe to convert an expression to the type.
4104 (conversion_warning): Adjust, use unsafe_conversion_p.
4105 * c-common.h (unsafe_conversion_p): New function declaration.
4106
20906c66
JJ
41072011-08-02 Jakub Jelinek <jakub@redhat.com>
4108
4109 * c-common.h (c_finish_omp_atomic): Adjust prototype.
4110 (c_finish_omp_taskyield): New prototype.
4111 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
4112 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
4113 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
4114 or RHS1 have side-effects, evaluate those too in the right spot,
4115 if it is a decl and LHS is also a decl, error out if they
4116 aren't the same.
4117 (c_finish_omp_taskyield): New function.
4118 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
4119 * c-pragma.c (omp_pragmas): Add taskyield.
4120 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
4121 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
4122 PRAGMA_OMP_CLAUSE_MERGEABLE.
4123
770e5a2e
DS
41242011-07-25 Dodji Seketeli <dodji@redhat.com>
4125
4126 * c-common.h (set_underlying_type): Remove parm name from
4127 declaration.
4128
1baae426
RG
41292011-07-25 Romain Geissler <romain.geissler@gmail.com>
4130
4131 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 4132
fcb21722
JM
41332011-07-22 Jason Merrill <jason@redhat.com>
4134
76f86d00
JM
4135 PR c++/49793
4136 * c.opt (Wnarrowing): New.
4137
3a636414
JM
4138 PR c++/30112
4139 * c-common.h: Declare c_linkage_bindings.
4140 * c-pragma.c (handle_pragma_redefine_extname): Use it.
4141
fcb21722
JM
4142 PR c++/49813
4143 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
4144 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
4145 as flag_isoc99 for 'restrict'.
4146 (pp_c_specifier_qualifier_list): Likewise for _Complex.
4147
02614448
ILT
41482011-07-21 Ian Lance Taylor <iant@google.com>
4149
4150 PR middle-end/49705
4151 * c-common.c (c_disable_warnings): New static function.
4152 (c_enable_warnings): New static function.
4153 (c_fully_fold_internal): Change local unused_p to bool. Call
4154 c_disable_warnings and c_enable_warnings rather than change
4155 c_inhibit_evaluation_warnings.
4156
34429675
JM
41572011-07-20 Jason Merrill <jason@redhat.com>
4158
4159 PR c++/6709 (DR 743)
4160 PR c++/42603 (DR 950)
4161 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
4162 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
4163 (CPP_DECLTYPE): New.
4164 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
4165
5d49b6a7
RG
41662011-07-19 Richard Guenther <rguenther@suse.de>
4167
4168 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
4169 * c-omp.c (c_finish_omp_for): Likewise.
4170
e84a58ff
EB
41712011-07-12 Eric Botcazou <ebotcazou@adacore.com>
4172
4173 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
4174 body on the next line.
4175
329af3c7
JM
41762011-07-08 Jason Merrill <jason@redhat.com>
4177
4063e61b
JM
4178 PR c++/45437
4179 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
4180
329af3c7
JM
4181 PR c++/49673
4182 * c-common.c (c_apply_type_quals_to_decl): Don't check
4183 TYPE_NEEDS_CONSTRUCTING.
4184
1a072294
RG
41852011-07-06 Richard Guenther <rguenther@suse.de>
4186
4187 * c-common.c (c_common_nodes_and_builtins):
4188 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
4189
fce5dddd
RG
41902011-07-05 Richard Guenther <rguenther@suse.de>
4191
4192 * c-common.c (c_common_nodes_and_builtins): Build all common
4193 tree nodes first.
4194
45d439ac
JJ
41952011-06-27 Jakub Jelinek <jakub@redhat.com>
4196
56300785
JJ
4197 * c-common.h (c_tree_chain_next): New static inline function.
4198
45d439ac
JJ
4199 * c-common.c (check_builtin_function_arguments): Handle
4200 BUILT_IN_ASSUME_ALIGNED.
4201
e0a8ecf2
AM
42022011-06-21 Andrew MacLeod <amacleod@redhat.com>
4203
4204 * c-common.c: Add sync_ or SYNC__ to builtin names.
4205 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
4206
42072011-06-20 Pierre Vittet <piervit@pvittet.com>
4208
4209 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
4210 handler.
4211 (gen_pragma_handler): New union.
4212 (internal_pragma_handler): New type.
4213 (c_register_pragma_with_data)
4214 (c_register_pragma_with_expansion_and_data): New functions.
4215
4216 * c-pragma.c (registered_pragmas, c_register_pragma_1)
4217 (c_register_pragma, c_register_pragma_with_expansion)
4218 (c_invoke_pragma_handler): Changed to work with
4219 internal_pragma_handler.
4220 (c_register_pragma_with_data)
4221 (c_register_pragma_with_expansion_and_data): New functions.
4222
677f3fa8
JM
42232011-06-14 Joseph Myers <joseph@codesourcery.com>
4224
4225 * c-common.c: Include common/common-target.h.
4226 (handle_section_attribute): Use
4227 targetm_common.have_named_sections.
4228 * c-cppbuiltin.c: Include common/common-target.h.
4229 (c_cpp_builtins): Use targetm_common.except_unwind_info.
4230
d7fc8c14
RG
42312011-06-10 Richard Guenther <rguenther@suse.de>
4232
4233 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
4234 to print a IDENTIFIER_NODE.
4235
10e48e39
RO
42362011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4237 Joseph Myers <joseph@codesourcery.com>
4238
4239 * c.opt (fbuilding-libgcc): New option.
4240 * c-cppbuiltin.c (c_cpp_builtins): Define
4241 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
4242
6976ae51
JM
42432011-06-07 Jason Merrill <jason@redhat.com>
4244
3ff60975
JM
4245 * c-common.c (max_tinst_depth): Lower default to 900.
4246
6976ae51
JM
4247 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
4248
009db074
RG
42492011-06-07 Richard Guenther <rguenther@suse.de>
4250
4251 * c-common.c (c_common_nodes_and_builtins): Do not set
4252 size_type_node or call set_sizetype.
4253
b4592b92
DS
42542011-06-07 Dodji Seketeli <dodji@redhat.com>
4255
4256 PR debug/49130
4257 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 4258 type when using pointer comparison to compare types.
b4592b92 4259
014ab419
JW
42602011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
4261
4262 * c.opt: Add -Wdelete-non-virtual-dtor.
4263 * c-opts.c (c_common_handle_option): Include it in -Wall.
4264
4f60111f
NF
42652011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
4266
4267 PR bootstrap/49190
4268
4269 Revert:
4270 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4271
4272 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
4273 not tree_common.
4274
4cc4f2f4
JJ
42752011-05-27 Jakub Jelinek <jakub@redhat.com>
4276
4277 PR c++/49165
4278 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
4279 C++ don't call c_common_truthvalue_conversion on void type arms.
4280
38e01f9e
NF
42812011-05-27 Nathan Froyd <froydnj@codesourcery.com>
4282
4283 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
4284 (stmt_list_stack): Define.
4285 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
4286 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
4287
92e948a8
NF
42882011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4289
4290 * c-common.c (warning_candidate_p): Check for BLOCKs.
4291
a2fc3e63
NF
42922011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4293
4294 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
4295 not tree_common.
4296
0957c029
JJ
42972011-05-25 Jakub Jelinek <jakub@redhat.com>
4298
4299 * c-common.c (def_fn_type): Remove extra va_end.
4300
828fb3ba
JM
43012011-05-23 Jason Merrill <jason@redhat.com>
4302
4303 PR c++/48106
4304 * c-common.c (c_common_get_narrower): New.
4305 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
4306
dde05067
NF
43072011-05-23 Nathan Froyd <froydnj@codesourcery.com>
4308
4309 * c-common.h (check_function_arguments): Tweak prototype of
4310 check_function_arguments.
4311 * c-common.c (check_function_arguments): Likewise. Adjust
4312 calls to check_function_nonnull, check_function_format, and
4313 check_function_sentinel.
4314 (check_function_sentinel): Take a FUNCTION_TYPE rather than
4315 separate attributes and typelist arguments. Use
4316 FOREACH_FUNCTION_ARGS to iterate over argument types.
4317
3c0d13bf
PC
43182011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
4319
4320 * c-common.c (c_common_reswords): Reorder.
4321 * c-common.h (rid): Likewise.
4322
8242dd04
NF
43232011-05-10 Nathan Froyd <froydnj@codesourcery.com>
4324
4325 * c-common.c (def_fn_type): Don't call build_function_type, call
4326 build_function_type_array or build_varargs_function_type_array
4327 instead.
4328 (c_common_nodes_and_builtins): Likewise.
4329
3d528853
NF
43302011-05-05 Nathan Froyd <froydnj@codesourcery.com>
4331
4332 * c-common.c (c_add_case_label): Omit the loc argument to
4333 build_case_label.
4334 * c-common.h (build_case_label): Remove.
4335 * c-semantics.c (build_case_label): Remove.
4336
a04a722b
JM
43372011-05-05 Joseph Myers <joseph@codesourcery.com>
4338
4339 * c-objc.h (objc_start_method_definition): Update prototype.
4340 * stub-objc.c (objc_start_method_definition): Add extra parameter.
4341
e19a18d4
NF
43422011-05-04 Nathan Froyd <froydnj@codesourcery.com>
4343
4344 * c-common.c (check_main_parameter_types): Reindent. Don't use
4345 TYPE_ARG_TYPES directly.
4346 (handle_nonnull_attribute): Likewise.
4347 (sync_resolve_params): Likewise.
4348 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
4349 to check_format_string.
4350 (handle_format_attribute): Likewise.
4351 (check_format_string): Take a function type to examine instead of
4352 a type list. Use a function_arg_iterator to step through argument
4353 types.
4354
c62c040f
RG
43552011-05-04 Richard Guenther <rguenther@suse.de>
4356
4357 * c-common.c (fix_string_type): Use size_int for index type bounds.
4358 (start_fname_decls): Do not pass NULL to build_int_cst.
4359 (c_init_attributes): Likewise.
4360 * c-lex.c (c_lex_with_flags): Likewise.
4361
c12ff9d8
JM
43622011-04-27 Jason Merrill <jason@redhat.com>
4363
4364 * c-common.c (make_tree_vector_from_list): New.
4365 * c-common.h: Declare it.
4366
304dfbe3
RG
43672011-04-26 Richard Guenther <rguenther@suse.de>
4368
4369 PR preprocessor/48248
4370 * c-ppoutput.c (maybe_print_line): Always optimize newlines
4371 for output size with -P.
4372
3c0d13bf
PC
43732011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
4374
4375 * c-common.c (struct c_common_resword): Add __underlying_type.
4376 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
4377
04695783
JM
43782011-04-20 Jim Meyering <meyering@redhat.com>
4379
4380 * c-format.c (init_dollar_format_checking): Remove useless
4381 if-before-free.
4382
0dc33c3c
NP
43832011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
4384
4385 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 4386 (objc_detect_field_duplicates): New.
0dc33c3c 4387 * stub-objc.c: Likewise.
3c0d13bf 4388
c59633d9
NP
43892011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4390
4391 * stub-objc.c (objc_declare_protocols): Renamed to
4392 objc_declare_protocol.
4393 * c-objc.h: Likewise.
3c0d13bf 4394
32dabdaf
NP
43952011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4396
4397 * stub-objc.c (objc_declare_class): Updated argument name.
4398
81f653d6
NF
43992011-04-12 Nathan Froyd <froydnj@codesourcery.com>
4400
4401 * c-common.h (c_common_init_ts): Declare.
4402 * c-common.c (c_common_init_ts): Define.
4403
eb345401
NP
44042011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4405
4406 * c-objc.h (objc_build_message_expr): Updated prototype.
4407 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 4408
a358e188
MJ
44092011-04-12 Martin Jambor <mjambor@suse.cz>
4410
4411 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
4412 of cgraph_node.
4413
e6313a78
RG
44142011-04-11 Richard Guenther <rguenther@suse.de>
4415
4416 * c-common.c (complete_array_type): Build a range type of
4417 proper type.
4418
dcf0c47e
NF
44192011-04-08 Nathan Froyd <froydnj@codesourcery.com>
4420
4421 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
4422 (handle_type_generic_attribute): Likewise.
4423
1ee44b26
JM
44242011-04-07 Jason Merrill <jason@redhat.com>
4425
4426 PR c++/48450
4427 * c-common.c (c_common_truthvalue_conversion): Don't ignore
4428 conversion from C++0x scoped enum.
4429
acce4e77
JM
44302011-04-06 Joseph Myers <joseph@codesourcery.com>
4431
4432 * c-target-def.h: New file.
4433 * c-target.def: New file.
4434 * c-target.h: New file.
4435 * c-common.c (targetcm): Don't define here.
4436 * c-common.h (default_handle_c_option): Declare.
4437 * c-format.c: Include c-target.h instead of target.h.
4438 * c-opts.c: Include c-target.h instead of target.h. Explicitly
4439 include tm.h.
4440 (default_handle_c_option): Move from targhooks.c.
4441
e2eefb55
JJ
44422011-03-29 Jakub Jelinek <jakub@redhat.com>
4443
4444 PR preprocessor/48248
4445 * c-ppoutput.c (print): Add src_file field.
4446 (init_pp_output): Initialize it.
4447 (maybe_print_line): Don't optimize by adding up to 8 newlines
4448 if map->to_file and print.src_file are different file.
4449 (print_line): Update print.src_file.
4450
ba78087b
KT
44512011-03-25 Kai Tietz <ktietz@redhat.com>
4452
4453 * c-ada-spec.c (compare_comment): Use filename_cmp
4454 instead of strcmp for filename.
4455
0edf1bb2
JL
44562011-03-25 Jeff Law <law@redhat.com>
4457
adfac8df 4458 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 4459
c7dc8804
JM
44602011-03-25 Jason Merrill <jason@redhat.com>
4461
4462 * c.opt: Add -std=c++03.
4463
d1d879b1
EB
44642011-03-22 Eric Botcazou <ebotcazou@adacore.com>
4465
4466 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
4467
62d784f7
KT
44682011-03-17 Kai Tietz
4469
4470 PR target/12171
5050afdf
KT
4471 * c-pretty-print.c (pp_c_specifier_qualifier_list):
4472 Display allowed attributes for function pointer types.
4473 (pp_c_attributes_display): New function to display
4474 attributes having affects_type_identity flag set to true.
4475 * c-pretty-print.h (pp_c_attributes_display): New prototype.
4476
62d784f7
KT
4477 * c-common.c (c_common_attribute_table):
4478 Add new element.
4479 (c_common_format_attribute_table): Likewise.
4480
82d37118
JM
44812011-03-18 Jason Merrill <jason@redhat.com>
4482
49a000c3
JM
4483 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
4484 * c-common.h: Don't declare it here.
4485 * c-common.c: Or define it here.
4486 * c-opts.c (c_common_handle_option): Or set it here.
4487
82d37118
JM
4488 PR c++/35315
4489 * c-common.c (handle_transparent_union_attribute): Don't
4490 make a duplicate type in C++.
4491
17bc631c
JM
44922011-03-15 Jason Merrill <jason@redhat.com>
4493
4494 * c-common.c (max_constexpr_depth): New.
4495 * c-common.h: Declare it.
4496 * c-opts.c (c_common_handle_option): Set it.
4497 * c.opt (fconstexpr-depth): New option.
4498
1b9b91a6
JM
44992011-03-11 Jason Merrill <jason@redhat.com>
4500
f231b5ff
JM
4501 * c-common.c (attribute_takes_identifier_p): Add missing const.
4502
1b9b91a6
JM
4503 PR c++/46803
4504 * c-common.c (attribute_takes_identifier_p): Assume that an
4505 unknown attribute takes an identifier.
4506
a19e4d44
NF
45072011-03-07 Nathan Froyd <froydnj@codesourcery.com>
4508
4509 PR c/47786
4510 * c-common.c (c_type_hash): Call list_length instead of iterating
4511 through DECL_CHAIN. Rename 'i' to 'n_elements'.
4512
982d62f6
JJ
45132011-02-19 Jakub Jelinek <jakub@redhat.com>
4514
4515 PR c/47809
4516 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
4517
0a256240
NP
45182011-02-17 Iain Sandoe <iains@gcc.gnu.org>
4519
4520 * c.opt (fobjc-abi-version=) New.
4521 (fobjc-nilcheck): New.
4522
ba9e6dd5
NF
45232011-02-03 Nathan Froyd <froydnj@codesourcery.com>
4524
4525 PR c++/46890
4526 * c-common.h (keyword_is_decl_specifier): Declare.
4527 * c-common.c (keyword_is_decl_specifier): Define.
4528 (keyword_is_function_specifier): New function.
4529
7273813a
JJ
45302011-01-26 Jakub Jelinek <jakub@redhat.com>
4531
4532 PR c/47473
4533 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
4534 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
4535 REAL_TYPE.
4536
908ef79b
AC
45372011-01-26 Arnaud Charlet <charlet@adacore.com>
4538
4539 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
4540
237e9384
JJ
45412011-01-26 Jakub Jelinek <jakub@redhat.com>
4542
4543 PR pch/47430
4544 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
4545 after init_c_lex if pch_file is set.
4546
47ea1edf
DK
45472011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
4548
d4dba752 4549 PR c++/43601
47ea1edf
DK
4550 * c.opt (-fkeep-inline-dllexport): New switch.
4551
2aa9c6ae
RG
45522011-01-12 Richard Guenther <rguenther@suse.de>
4553
4554 PR middle-end/32511
4555 * c-common.c (handle_weak_attribute): Warn instead of error
4556 on declaring an inline function weak.
4557
7bd11157
TT
45582011-01-05 Tom Tromey <tromey@redhat.com>
4559
4560 * c-common.h (lvalue_error): Update.
4561 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
4562 not error.
4563
0e66e494 45642010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 4565
b4f588c4
NP
4566 PR objc/47075
4567 * c-objc.h (objc_finish_message_expr): Added argument to
4568 prototype.
4569
f4da8dce
NF
45702010-12-22 Nathan Froyd <froydnj@codesourcery.com>
4571
4572 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
4573 Use prototype_p.
4574
46270f14
NP
45752010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
4576
4577 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 4578 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 4579
4816c593
NF
45802010-12-10 Nathan Froyd <froydnj@codesourcery.com>
4581
4582 * c-common.h (readonly_error): Declare.
4583 * c-common.c (readonly_error): Define.
4584
7a6daeb0
NF
45852010-12-09 Nathan Froyd <froydnj@codesourcery.com>
4586
4587 * c-common.h (invalid_indirection_error): Declare.
4588 * c-common.c (invalid_indirection_error): Define.
4589
892f6119
RG
45902010-12-03 Richard Guenther <rguenther@suse.de>
4591
4592 PR c/46745
4593 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
4594 (pp_c_unary_expression): Likewise.
4595 (pp_c_expression): Likewise.
4596
6c39e757
NP
45972010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
4598
4599 * c-common.h (objc_finish_function): New.
4600 (objc_non_volatilized_type): Removed.
4601 (objc_type_quals_match): Removed.
4602 * stub-objc.c (objc_finish_function): New.
4603 (objc_non_volatilized_type): Removed.
4604 (objc_type_quals_match): Removed.
9faeb493 4605
7c475d11
JM
46062010-11-30 Joseph Myers <joseph@codesourcery.com>
4607
4608 * c-common.h (parse_optimize_options): Declare.
4609 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
4610 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
4611
71f3e391
JM
46122010-11-29 Joseph Myers <joseph@codesourcery.com>
4613
4614 * c-opts.c (check_deps_environment_vars): Use getenv instead of
4615 GET_ENVIRONMENT.
4616 * c-pch.c (O_BINARY): Don't define here.
4617 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
4618
d5fabb58
JM
46192010-11-25 Joseph Myers <joseph@codesourcery.com>
4620
4621 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
4622 targetm.except_unwind_info.
4623
299404a1
JM
46242010-11-23 Joseph Myers <joseph@codesourcery.com>
4625
4626 * c-opts.c (c_common_handle_option): Pass location to
4627 set_struct_debug_option.
4628
c98cd5bf
JM
46292010-11-23 Joseph Myers <joseph@codesourcery.com>
4630
4631 * c-common.c (visibility_options): Move from ../opts.c.
4632 * c-common.h (struct visibility_flags, visibility_options):
4633 Declare here.
4634 * c-opts.c (finish_options): Rename to c_finish_options.
4635 (c_common_init): Update call to finish_options.
4636
a9546771
NP
46372010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
4638
4639 PR objc/34033
4640 * c-lex.c (lex_string): Check that each string in an Objective-C
4641 string concat sequence starts with either one or zero '@', and
4642 that there are no spurious '@' signs at the end.
4643
24a57808
JM
46442010-11-20 Joseph Myers <joseph@codesourcery.com>
4645
4646 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
4647 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
4648 HANDLE_PRAGMA_VISIBILITY.
4649 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
4650 HANDLE_PRAGMA_VISIBILITY): Don't define.
4651 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
4652
a9aa2c3a
NF
46532010-11-20 Nathan Froyd <froydnj@codesourcery.com>
4654
4655 PR c++/16189
4656 PR c++/36888
4657 PR c++/45331
4658 * c-common.h (keyword_begins_type_specifier): Declare.
4659 (keyword_is_storage_class_specifier): Declare.
4660 (keyword_is_type_qualifier): Declare.
4661 * c-common.c (keyword_begins_type_specifier): New function.
4662 (keyword_is_storage_class_specifier): New function.
4663 (keyword_is_type_qualifier): Declare.
4664
5386338c
JM
46652010-11-19 Joseph Myers <joseph@codesourcery.com>
4666
4667 PR c/46547
4668 * c-common.c (in_late_binary_op): Define.
4669 (c_common_truthvalue_conversion): Check in_late_binary_op before
4670 calling c_save_expr.
4671 * c-common.h (in_late_binary_op): Declare.
4672
69ccdddb
JM
46732010-11-19 Joseph Myers <joseph@codesourcery.com>
4674
4675 * c-opts.c (c_common_handle_option): Update calls to
4676 set_struct_debug_option.
4677
6b192a09
NP
46782010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
4679
4680 * c-common.h (objc_declare_protocols): Added additional argument.
4681 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 4682
fb52b50a
NF
46832010-11-18 Nathan Froyd <froydnj@codesourcery.com>
4684
4685 PR c/33193
4686 * c-common.h (build_real_imag_expr): Declare.
4687 * c-semantics.c (build_real_imag_expr): Define.
4688
b37421c6
JM
46892010-11-17 Joseph Myers <joseph@codesourcery.com>
4690
4691 * c-opts.c (c_common_parse_file): Take no arguments.
4692 * c-common.h (c_common_parse_file): Update prototype.
4693
07078664
JJ
46942010-11-16 Jakub Jelinek <jakub@redhat.com>
4695
4696 PR c++/46401
4697 * c-common.c (warning_candidate_p): Don't track non-const calls
4698 or STRING_CSTs.
4699
c6a13190
ILT
47002010-11-15 Ian Lance Taylor <iant@google.com>
4701
4702 * c-lex.c (init_c_lex): Set macro debug callbacks if
4703 flag_dump_go_spec is set.
4704
925e8657
NP
47052010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
4706
4707 * c-common.h (objc_build_incr_expr_for_property_ref): New.
4708 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
4709
bb0a9581
NF
47102010-11-15 Nathan Froyd <froydnj@codesourcery.com>
4711
4712 PR preprocessor/45038
4713 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
4714 dialects.
4715
c5fa0890
JM
47162010-11-12 Joseph Myers <joseph@codesourcery.com>
4717
4718 * c-common.h (c_family_lang_mask): Declare.
4719 * c-opts.c (c_family_lang_mask): Make extern.
4720 * c-pragma.c (handle_pragma_diagnostic): Use
4721 control_warning_option.
4722
a4d8c676
JM
47232010-11-12 Joseph Myers <joseph@codesourcery.com>
4724
4725 * c-common.c (parse_optimize_options): Update call to
4726 decode_options.
4727 * c-common.h (c_common_handle_option): Update prototype.
4728 * c-opts.c (c_common_handle_option): Take location_t parameter and
4729 pass it to other functions.
4730
f954bd2c
JM
47312010-11-11 Joseph Myers <joseph@codesourcery.com>
4732
4733 * c-opts.c (warning_as_error_callback): Remove.
4734 (c_common_initialize_diagnostics): Don't call
4735 register_warning_as_error_callback.
4736 (c_common_handle_option): Handle -Werror=normalized= here.
4737
d8a07487
JM
47382010-11-10 Joseph Myers <joseph@codesourcery.com>
4739
4740 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
4741 in diagnostic.
4742 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
4743 letter.
4744 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
4745 Remove trailing '.' from diagnostics.
4746 * c.opt (Wwrite-strings_: Avoid '`' in help text.
4747
d5478783
JM
47482010-11-10 Joseph Myers <joseph@codesourcery.com>
4749
4750 * c-common.c (parse_optimize_options): Pass global_dc to
4751 decode_options.
4752 * c-opts.c (c_common_handle_option): Pass &global_options to
4753 set_Wstrict_aliasing.
4754 * c.opt (v): Don't mark Common or document here.
4755
91ebb981
IS
47562010-11-06 Iain Sandoe <iains@gcc.gnu.org>
4757
4758 PR target/44981
4759 * c-format.c (format_type): New type gcc_objc_string_format_type.
4760 (valid_stringptr_type_p): New.
4761 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 4762 (check_format_string): Pass expected type, use
91ebb981
IS
4763 valid_stringptr_type_p (), check that the format string types are
4764 consistent with the format specification.
4765 (decode_format_attr): Warn if NSString is used outside objective-c.
4766 (format_types_orig): Add NSString.
4767 (format_name): New.
4768 (format_flags): New.
4769 (check_format_arg): Handle format strings requiring an external parser.
4770 first_target_format_type: New variable.
4771 (handle_format_attribute): Set up first_target_format_type, pass the
4772 expected format arg string type to check_format_string().
4773 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
4774 * stub-objc.c (objc_string_ref_type_p): New.
4775 (objc_check_format_arg): New.
4776
bede2adc
NP
47772010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
4778
9faeb493 4779 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
4780 * c-common.h (objc_build_class_component_ref): New.
4781 * stub-objc.c (objc_build_class_component_ref): New.
4782
9a179d01
NP
47832010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
4784
4785 * c.opt (Wproperty-assign-default): New option.
4786
22d8d616
NP
47872010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
4788
4789 Implemented -fobjc-std=objc1 flag.
4790 * c.opt (fobjc-std=objc1): New option.
4791
2debdb4f
NP
47922010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
4793
4794 Implemented format and noreturn attributes for Objective-C methods.
4795 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
4796 attribute for Objective-C methods.
4797
ec52b111
JM
47982010-10-31 Jason Merrill <jason@redhat.com>
4799
4800 * c-common.c (conversion_warning, warn_for_collisions_1): Use
4801 EXPR_LOC_OR_HERE.
4802
46a88c12
NP
48032010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
4804
4805 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
4806 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
4807 (objc_add_property_declaration): Removed arguments for copies and
4808 ivar.
4809 (objc_build_getter_call): Renamed to
4810 objc_maybe_build_component_ref.
4811 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4812 (objc_is_property_ref): New.
4813 * c-common.c (c_common_reswords): Removed copies and ivar.
4814 * stub-objc.c (objc_add_property_declaration): Removed arguments
4815 for copies and ivar.
4816 (objc_build_getter_call): Renamed to
4817 objc_maybe_build_component_ref.
4818 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4819 (objc_is_property_ref): New.
9faeb493 4820
1e4bf85b
AC
48212010-10-29 Arnaud Charlet <charlet@adacore.com>
4822 Matthew Gingell <gingell@adacore.com>
4823
4824 * c-ada-spec.c (separate_class_package): New function.
4825 (pp_ada_tree_identifier): Prefix references to C++ classes with the
4826 name of their enclosing package.
4827 (print_ada_declaration): Use separate_class_package.
4828
81f0bab2
JM
48292010-10-27 Jason Merrill <jason@redhat.com>
4830
2b08f2c5
JM
4831 * c-common.c (c_common_reswords): Add __is_literal_type.
4832 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
4833
81f0bab2
JM
4834 * c-common.c (check_case_value): Remove special C++ code.
4835
200290f2
NP
48362010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4837
4838 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
4839 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
4840 and RID_LAST_PATTR.
4841 (objc_add_property_declaration): Added additional arguments.
4842 (objc_property_attribute_kind): Removed.
4843 (objc_set_property_attr): Removed.
4844 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
4845 copy and nonatomic.
4846 * stub-objc.c (objc_add_property_declaration): Added additional
4847 arguments.
4848 (objc_set_property_attr): Removed.
9faeb493 4849
f614132b
NP
48502010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4851
4852 * c-common.h (objc_add_property_variable): Renamed to
4853 objc_add_property_declaration. Added location argument.
4854 * stub-objc.c (objc_add_property_variable): Same change.
4855
b8a18805
NP
48562010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
4857
4858 * c-common.h (objc_maybe_printable_name): New.
4859 * stub-objc.c (objc_maybe_printable_name): New.
4860
30cd1c5d
AS
48612010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4862 Andrew Pinski <pinskia@gmail.com>
4863
4864 * c-common.h (c_common_mark_addressable_vec): Declare.
4865 * c-common.c (c_common_mark_addressable_vec): New function.
4866
249a82c4
NP
48672010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
4868
4869 * c-common.h (objc_set_method_type): Removed.
4870 (objc_add_method_declaration): Added boolean argument.
4871 (objc_start_method_definition): Same change.
4872 (objc_build_method_signature): Same change.
4873 * stub-objc.c (objc_set_method_type): Removed.
4874 (objc_add_method_declaration): Added boolean argument.
4875 (objc_start_method_definition): Same change.
4876 (objc_build_method_signature): Same change.
4877
977e30bc
NP
48782010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
4879
4880 * c-common.h (finish_file): Removed.
4881 (objc_write_global_declarations): New.
4882 * c-opts.c (c_common_parse_file): Do not call finish_file.
4883 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 4884
da57d1b9
NP
48852010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4886
4887 Implemented parsing @synthesize and @dynamic for
4888 Objective-C/Objective-C++.
4889 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
4890 (objc_add_synthesize_declaration): New.
4891 (objc_add_dynamic_declaration): New.
4892 * c-common.c (c_common_reswords): Add synthesize and dynamic.
4893 * stub-objc.c (objc_add_synthesize_declaration): New.
4894 (objc_add_dynamic_declaration): New.
9faeb493 4895
0069111f
MM
48962010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
4897
4898 PR target/46041
4899 * c-cppbuiltin.c (mode_has_fma): Move function here from
4900 builtins.c. Don't use the fma optab, instead just use the
4901 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
4902 using -save-temps.
4903
e426b47b
NP
49042010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4905
4906 Merge from 'apple/trunk' branch on FSF servers.
0069111f 4907
e426b47b
NP
4908 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
4909
9faeb493 4910 Radar 4330422
e426b47b
NP
4911 * c-common.h (objc_non_volatilized_type): New declaration
4912 * stub-objc.c (objc_non_volatilized_type): New stub.
4913
90fbfdc3
NP
49142010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
4915
e426b47b 4916 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
4917
4918 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
4919
9faeb493 4920 Radar 4133425
90fbfdc3 4921 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 4922 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 4923
c37d8c30
IS
49242010-10-17 Iain Sandoe <iains@gcc.gnu.org>
4925
4926 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
4927 * c-common.h (enum rid): Add RID_AT_PACKAGE.
4928 (objc_ivar_visibility_kind): New enum.
4929 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 4930 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
4931 visibility enum.
4932
1b1562a5
MM
49332010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
4934
4935 * c-cppbuiltin.c (builtin_define_float_constants): Emit
4936 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
4937 has the appropriate fma builtins.
4938 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
4939
668ea4b1
IS
49402010-10-14 Iain Sandoe <iains@gcc.gnu.org>
4941
1b1562a5 4942 merge from FSF apple 'trunk' branch.
668ea4b1 4943 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 4944
668ea4b1
IS
4945 Radars 4436866, 4505126, 4506903, 4517826
4946 * c-common.c (c_common_resword): Define @property and its attributes.
4947 * c-common.h: Define property attribute enum entries.
4948 (OBJC_IS_PATTR_KEYWORD): New.
4949 (objc_property_attribute_kind): New enum.
4950 Declare objc_set_property_attr (), objc_add_property_variable (),
4951 objc_build_getter_call () and objc_build_setter_call ().
4952 * stub-objc.c (objc_set_property_attr): New stub.
4953 (objc_add_property_variable): Likewise.
4954 (objc_build_getter_call): Likewise.
4955 (objc_build_setter_call) Likewise.
1b1562a5 4956
a1178b30
IS
49572010-10-13 Iain Sandoe <iains@gcc.gnu.org>
4958
1b1562a5 4959 merge from FSF apple 'trunk' branch.
a1178b30
IS
4960 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
4961
4962 Radar 3803157 (method attributes)
4963 * c-common.c (handle_deprecated_attribute): Recognize
4964 objc methods as valid declarations.
4965 * c-common.h: Declare objc_method_decl ().
1b1562a5 4966 * stub-objc.c (objc_method_decl): New stub.
a1178b30 4967
a75bfaa6
JM
49682010-10-08 Joseph Myers <joseph@codesourcery.com>
4969
4970 * c-common.c (parse_optimize_options): Call
4971 decode_cmdline_options_to_array_default_mask before
4972 decode_options. Update arguments to decode_options.
4973 * c-common.h (c_common_init_options_struct): Declare.
4974 * c-opts.c (c_common_init_options_struct): New. Split out from
4975 c_common_init_options.
4976
f05b9d93
NP
49772010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
4978
4979 Implemented fast enumeration for Objective-C.
4980 * c-common.h (objc_finish_foreach_loop): New.
4981 * stub-objc.c (objc_finish_foreach_loop): New.
4982
1ebe4b4f
JM
49832010-10-05 Joseph Myers <joseph@codesourcery.com>
4984
4985 * c-common.h (struct diagnostic_context): Don't declare here.
4986 (c_common_initialize_diagnostics): Declare using
4987 diagnostic_context typedef.
4988 * c-opts.c (c_common_handle_option): Pass global_dc to
4989 handle_generated_option.
4990
d4d24ba4
JM
49912010-10-04 Joseph Myers <joseph@codesourcery.com>
4992
4993 * c-opts.c (c_common_handle_option): Pass &global_options_set to
4994 handle_generated_option.
4995
478a1c5b
ILT
49962010-10-03 Ian Lance Taylor <iant@google.com>
4997
4998 * c.opt (-fplan9-extensions): New option.
4999
82a1c2fe
FXC
50002010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5001
5002 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
5003 Remove.
5004 (c_cpp_builtins): Call functions from cppbuiltin.c instead
5005 of duplicating code.
5006
92902b1b
IS
50072010-09-30 Iain Sandoe <iains@gcc.gnu.org>
5008
5009 * c-common.c: Add two new entries for @optional
5010 and @required keywords.
5011
5012 merge from FSF 'apple/trunk' branch.
5013 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
5014
5015 Radar 4386773
5016 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
5017 objective-c keywords.
5018 (objc_set_method_opt): New declaration.
5019 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 5020
46625112
JM
50212010-09-30 Joseph Myers <joseph@codesourcery.com>
5022
5023 * c-common.c (handle_optimize_attribute): Pass &global_options to
5024 cl_optimization_save and cl_optimization_restore.
5025 * c-opts.c (c_common_handle_option): Pass &global_options to
5026 handle_generated_option.
5027 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
5028 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
5029 &global_options to cl_optimization_restore.
5030
49b91f05
NP
50312010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
5032
5033 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
5034 Objective-C/Objective-C++ keywords.
5035
13ed556f 50362010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 5037
9faeb493
UB
5038 Merge from 'apple/trunk' branch on FSF servers.
5039
a6341d57
NP
5040 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
5041
5042 Radar 4281748
5043 * c-common.h (objc_check_global_decl): New declaration.
5044 * stub-objc.c (objc_check_global_decl): New stub.
5045
f0036cca
JM
50462010-09-29 Joseph Myers <joseph@codesourcery.com>
5047
5048 * c.opt: Don't use VarExists.
5049
e3339d0f
JM
50502010-09-29 Joseph Myers <joseph@codesourcery.com>
5051
5052 * c-common.c (c_cpp_error): Update names of diagnostic_context
5053 members.
5054 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
5055 cl_optimization members.
5056 * c-opts.c (warning_as_error_callback, c_common_handle_option,
5057 sanitize_cpp_opts, finish_options): Update names of cpp_options
5058 members.
5059
1973201f
NP
50602010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
5061
5062 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
5063 (objc_is_reserved_word): Removed.
5064 * c-common.c: Updated comments.
5065 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
5066 objc_is_reserved_word.
5067 * stub-objc.c (objc_is_reserved_word): Removed.
5068
f7e71da5
IS
50692010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5070
9faeb493 5071 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
5072 include attributes.
5073 (objc_start_method_definition): Likewise.
5074 (objc_build_keyword_decl): Likewise.
5075 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
5076 (objc_start_method_definition): Likewise.
5077 (objc_build_keyword_decl): Likewise.
5078
c165dca7
IS
50792010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5080
5081 * c-common.h (objc_start_class_interface): Adjust prototype.
5082 (objc_start_category_interface): Likewise.
5083 (objc_start_protocol): Likewise.
5084 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
5085 (objc_start_class_interface): Likewise.
5086 (objc_start_category_interface): Likewise.
5087
7458026b
ILT
50882010-09-27 Ian Lance Taylor <iant@google.com>
5089
5090 * c-common.c (c_common_attribute_table): Add no_split_stack.
5091 (handle_no_split_stack_attribute): New static function.
5092
b581b85b
NP
50932010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
5094
9faeb493 5095 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
5096
5097 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
5098
9faeb493 5099 Radar 4229905
b581b85b
NP
5100 * c-common.h (objc_have_common_type): New declaration.
5101 * stub-objc.c (objc_have_common_type): New stub.
5102
5103 2005-06-22 Ziemowit Laski <zlaski@apple.com>
5104
5105 Radar 4154928
5106 * c-common.h (objc_common_type): New prototype.
9faeb493 5107 * stub-objc.c (objc_common_type): New stub.
b581b85b 5108
46a4da10
JH
51092010-09-24 Jan Hubicka <jh@suse.cz>
5110
5111 * c-common.c (handle_leaf_attribute): New function.
5112 (struct attribute_spec c_common_att): Add leaf.
5113
e200444e
JM
51142010-09-22 Joseph Myers <joseph@codesourcery.com>
5115
5116 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
5117 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
5118 -dump, -dump=, -imacros, -imacros=, -include, -include=,
5119 -include-barrier, -include-directory, -include-directory=,
5120 -include-directory-after, -include-directory-after=,
5121 -include-prefix, -include-prefix=, -include-with-prefix,
5122 -include-with-prefix=, -include-with-prefix-after,
5123 -include-with-prefix-after=, -include-with-prefix-before,
5124 -include-with-prefix-before=, -no-integrated-cpp,
5125 -no-line-commands, -no-standard-includes, -no-warnings, -output,
5126 -output=, -pedantic, -pedantic-errors, -preprocess,
5127 -print-missing-file-dependencies, -trace-includes, -traditional,
5128 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
5129 -user-dependencies, -verbose, -write-dependencies,
5130 -write-user-dependencies, no-integrated-cpp, traditional): New.
5131
29a80ea6
NP
51322010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5133
5134 PR objc/23710
ac1fc2fc
NP
5135 * c-common.h (objc_start_method_definition): Return bool instead
5136 of void.
5137 * stub-objc.c (objc_start_method_definition): Return bool instead
5138 of void.
5139
51402010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5141
5142 PR objc/25965
5143 * c-common.h (objc_get_interface_ivars): New declaration.
5144 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 5145
de621752
ILT
51462010-09-15 Ian Lance Taylor <iant@google.com>
5147
5148 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 5149 messages. Remove period at end of warning message.
de621752 5150
ba885ec5
NS
51512010-09-09 Nathan Sidwell <nathan@codesourcery.com>
5152
5153 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
5154 (handle_alias_attribute): ... here.
5155 (handle_ifunc_attribute): New.
5156
c5ee1358
MM
51572010-09-06 Mark Mitchell <mark@codesourcery.com>
5158
5159 * c-common.h (do_warn_double_promotion): Declare.
5160 * c-common.c (do_warn_double_promotion): Define.
5161
0a0b3574
MM
51622010-09-05 Mark Mitchell <mark@codesourcery.com>
5163
5164 * c.opt (Wdouble-promotion): New.
5165
d1779886
JM
51662010-09-02 Joseph Myers <joseph@codesourcery.com>
5167
5168 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
5169 fvtable-thunks, fxref): Mark no longer supported in help text.
5170
2d2bd949
JM
51712010-09-02 Joseph Myers <joseph@codesourcery.com>
5172
5173 * c.opt (Wimport, fall-virtual, falt-external-templates,
5174 fdefault-inline, fenum-int-equiv, fexternal-templates,
5175 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
5176 fname-mangling-version-, fnew-abi, fnonnull-objects,
5177 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
5178 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
5179 applicable.
5180 (fhandle-exceptions): Mark with Alias and Warn.
5181 * c-opts.c (c_common_handle_option): Don't handle options marked
5182 as ignored.
5183
5de8299c
JM
51842010-09-02 Joseph Myers <joseph@codesourcery.com>
5185
5186 * c.opt (Wcomments, Werror-implicit-function-declaration,
5187 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
5188 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
5189 aliases.
5190 * c-common.c (option_codes): Use OPT_Wcomment instead of
5191 OPT_Wcomments.
5192 * c-opts.c (warning_as_error_callback, c_common_handle_option):
5193 Don't handle options marked as aliases.
5194
0ceb0201
RG
51952010-08-25 Richard Guenther <rguenther@suse.de>
5196
5197 * c-common.c (c_common_get_alias_set): Remove special
5198 handling for pointers.
5199
ac47786e
NF
52002010-08-20 Nathan Froyd <froydnj@codesourcery.com>
5201
5202 * c-common.c: Use FOR_EACH_VEC_ELT.
5203 * c-gimplify.c: Likewise.
5204 * c-pragma.c: Likewise.
5205
c878765b
JM
52062010-08-16 Joseph Myers <joseph@codesourcery.com>
5207
5208 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
5209 RejectDriver.
5210 (MMDX): Change back to MMD. Mark NoDriverArg instead of
5211 RejectDriver.
5212 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
5213 instead of OPT_MDX and OPT_MMDX.
5214
603349bf
JM
52152010-08-16 Joseph Myers <joseph@codesourcery.com>
5216
5217 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
5218
644fa7ac
JM
52192010-08-12 Joseph Myers <joseph@codesourcery.com>
5220
5221 * c.opt (MD, MMD): Change to MDX and MMDX.
5222 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
5223
481e1176
JM
52242010-08-11 Joseph Myers <joseph@codesourcery.com>
5225
5226 * c-opts.c (c_common_handle_option): Call handle_generated_option
5227 instead of handle_option.
5228
ac8dc9f7
NF
52292010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5230
5231 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
5232 (maybe_apply_renaming_pragma): Delete unneeded declarations.
5233
4f8c876d
NF
52342010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5235
5236 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
5237 (pending_redefine_extname): Change type to a VEC.
5238 (add_to_renaming_pragma_list): Update for new type of
5239 pending_redefine_extname.
ac8dc9f7 5240 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 5241
3b0c690e
AC
52422010-08-04 Arnaud Charlet <charlet@adacore.com>
5243
5244 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
5245 visited.
5246 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
5247 decide whether a type has already been declared/seen.
5248 Do not go to the original type.
5249 (dump_nested_types): New parameter forward.
5250 Generate forward declaration if needed and mark type as visited.
5251 (print_ada_declaration): Call dump_nested_types if not already done.
5252 Mark types as visited.
5253
1890bccc
JM
52542010-08-03 Joseph Myers <joseph@codesourcery.com>
5255
5256 * c.opt (-print-pch-checksum): Remove option.
5257 * c-opts.c (c_common_handle_option): Don't handle
5258 OPT_print_pch_checksum.
5259
5f20c657
JM
52602010-07-27 Joseph Myers <joseph@codesourcery.com>
5261
5262 * c-common.h (c_common_handle_option): Update prototype and return
5263 value type.
5264 * c-opts.c (c_common_handle_option): Update prototype and return
5265 value type. Update calls to handle_option and
5266 enable_warning_as_error.
5267
f551f80c
JJ
52682010-07-27 Jakub Jelinek <jakub@redhat.com>
5269
5270 PR c/45079
5271 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
5272
61ff2bdc
JM
52732010-07-27 Joseph Myers <joseph@codesourcery.com>
5274
5275 * c-common.h (c_common_missing_argument): Remove.
5276 * c-opts.c (c_common_missing_argument): Remove.
5277 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
5278 idirafter, imacros, include, isysroot, isystem, iquote): Add
5279 MissingArgError.
5280 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
5281
7a9bf9a4
JM
52822010-07-27 Joseph Myers <joseph@codesourcery.com>
5283
5284 * c-common.h (c_common_option_lang_mask,
5285 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
5286 New.
5287 (c_common_init_options): Update prototype.
5288 * c-opts.c (c_common_option_lang_mask): New.
5289 (c_common_initialize_diagnostics): Split out of
5290 c_common_init_options.
5291 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
5292 New.
5293 (c_common_init_options): Update prototype. Use decoded options in
5294 search for -lang-asm.
5295
910ad8de
NF
52962010-07-15 Nathan Froyd <froydnj@codesourcery.com>
5297
5298 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
5299 * c-format.c: Likewise.
5300
718f9c0f
MLI
53012010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
5302
5303 * c-common.h: Include diagnostic-core.h. Error if already
5304 included.
5305 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
5306
4d451982
MLI
53072010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
5308
adfac8df 5309 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
5310 Do not include expr.h
5311 (vector_mode_valid_p): Move here.
5312
119fe915
SB
53132010-06-21 DJ Delorie <dj@redhat.com>
5314
5315 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
5316 allow these pragmas anywhere.
5317
53182010-06-14 Jakub Jelinek <jakub@redhat.com>
5319
5320 PR bootstrap/44509
5321 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
5322 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
5323 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
5324 ggc_strdup instead of xstrdup.
5325
53262010-06-10 Jakub Jelinek <jakub@redhat.com>
5327
5328 * c-cppbuiltin.c: Include cpp-id-data.h.
5329 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
5330 (lazy_hex_fp_value): New function.
5331 (builtin_define_with_hex_fp_value): Provide definitions lazily.
5332
6662d794
MLI
53332010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5334
5335 * c-gimplify.c: Do not include tree-flow.h
5336
38f8b050
JR
53372010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
5338
5339 PR other/44034
5340 * c-common.c: Rename targetm member:
5341 targetm.enum_va_list -> targetm.enum_va_list_p
5342
9589f23e
AS
53432010-06-28 Anatoly Sokolov <aesok@post.ru>
5344
5345 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
5346
3b06d379
SB
53472010-06-28 Steven Bosscher <steven@gcc.gnu.org>
5348
5349 * c-cppbuiltin.c: Do not include except.h.
5350
d166d4c3
AK
53512010-06-24 Andi Kleen <ak@linux.intel.com>
5352
9faeb493
UB
5353 * c-common.c (warn_for_omitted_condop): New.
5354 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 5355
70cb8be6
JM
53562010-06-21 Joseph Myers <joseph@codesourcery.com>
5357
5358 * c.opt (lang-objc): Remove.
5359 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
5360
a4c97feb
JR
53612010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
5362
5363 * c-opts.c: Include "tm_p.h".
5364
6e2f1956
JM
53652010-06-20 Joseph Myers <joseph@codesourcery.com>
5366
5367 * c-common.c (parse_optimize_options): Update call to
5368 decode_options.
5369
bc87224e
NF
53702010-06-18 Nathan Froyd <froydnj@codesourcery.com>
5371
5372 * c-common.c (record_types_used_by_current_var_decl): Adjust for
5373 new type of types_used_by_cur_var_decl.
5374
b49cf425
JR
53752010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
5376
5377 PR bootstrap/44512
5378 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
5379 for C++ standard compliance.
5380
59f9c2ed
JM
53812010-06-16 Jason Merrill <jason@redhat.com>
5382
5383 * c.opt: Add -Wnoexcept.
5384
33766b66
RG
53852010-06-16 Richard Guenther <rguenther@suse.de>
5386
5387 PR c/44555
5388 * c-common.c (c_common_truthvalue_conversion): Remove
5389 premature and wrong optimization concering ADDR_EXPRs.
5390
eff7e30c
AC
53912010-06-15 Arnaud Charlet <charlet@adacore.com>
5392
5393 * c-ada-spec.c (dump_sloc): Remove column info.
5394 (is_simple_enum): New function.
5395 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
5396 enum types when relevant.
5397
6312e84d
MLI
53982010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
5399
9faeb493 5400 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
5401 location.
5402
1cb42611
JM
54032010-06-10 Joseph Myers <joseph@codesourcery.com>
5404
5405 * c-opts.c (c_common_handle_option): Don't handle
5406 OPT_fshow_column.
5407
a9429e29
LB
54082010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5409
5410 * c-pragma.c (push_alignment): Use typed GC allocation.
5411 (handle_pragma_push_options): Likewise.
5412
5413 * c-common.c (parse_optimize_options): Likewise.
5414
5415 * c-common.h (struct sorted_fields_type): Add variable_size GTY
5416 option.
5417
5498f011
JM
54182010-06-07 Joseph Myers <joseph@codesourcery.com>
5419
5420 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
5421 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
5422 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
5423 flag_signed_bitfields, warn_strict_null_sentinel,
5424 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
5425 flag_gen_declaration, flag_no_gnu_keywords,
5426 flag_implement_inlines, flag_implicit_templates,
5427 flag_implicit_inline_templates, flag_optional_diags,
5428 flag_elide_constructors, flag_default_inline, flag_rtti,
5429 flag_conserve_space, flag_access_control, flag_check_new,
5430 flag_new_for_scope, flag_weak, flag_working_directory,
5431 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
5432 flag_enforce_eh_specs, flag_threadsafe_statics,
5433 flag_pretty_templates): Remove.
5434 * c-common.h (flag_preprocess_only, flag_nil_receivers,
5435 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
5436 flag_replace_objc_classes, flag_undef, flag_no_builtin,
5437 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
5438 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
5439 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
5440 flag_no_gnu_keywords, flag_implement_inlines,
5441 flag_implicit_templates, flag_implicit_inline_templates,
5442 flag_optional_diags, flag_elide_constructors, flag_default_inline,
5443 flag_rtti, flag_conserve_space, flag_access_control,
5444 flag_check_new, flag_new_for_scope, flag_weak,
5445 flag_working_directory, flag_use_cxa_atexit,
5446 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
5447 flag_threadsafe_statics, flag_pretty_templates,
5448 warn_strict_null_sentinel): Remove.
5449 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
5450 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
5451 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
5452 fimplicit-inline-templates, fimplicit-templates,
5453 flax-vector-conversions, fms-extensions, fnil-receivers,
5454 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
5455 frtti, fshort-double, fshort-enums, fshort-wchar,
5456 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
5457 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
5458 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
5459 gen-decls, undef): Use Var.
5460 (fdefault-inline, foptional-diags): Document as doing nothing.
5461 * c-opts.c (c_common_handle_option): Remove cases for options now
5462 using Var. Mark ignored options as such.
5463
39dabefd
SB
54642010-06-05 Steven Bosscher <steven@gcc.gnu.org>
5465
9faeb493 5466 * c-common.c: Moved to here from parent directory.
39dabefd
SB
5467 * c-common.def: Likewise.
5468 * c-common.h: Likewise.
5469 * c-cppbuiltin.c: Likewise.
5470 * c-dump.c: Likewise.
5471 * c-format.c: Likewise.
5472 * c-format.h : Likewise.
5473 * c-gimplify.c: Likewise.
5474 * c-lex.c: Likewise.
5475 * c-omp.c: Likewise.
5476 * c.opt: Likewise.
5477 * c-opts.c: Likewise.
5478 * c-pch.c: Likewise.
5479 * c-ppoutput.c: Likewise.
5480 * c-pragma.c: Likewise.
5481 * c-pragma.h: Likewise.
5482 * c-pretty-print.c: Likewise.
5483 * c-pretty-print.h: Likewise.
5484 * c-semantics.c: Likewise.
5485 * stub-objc.c: Likewise.
5486
5487 * c-common.c: Include gt-c-family-c-common.h.
5488 * c-pragma.c: Include gt-c-family-c-pragma.h.
5489\f
5624e564 5490Copyright (C) 2010-2015 Free Software Foundation, Inc.
39dabefd
SB
5491
5492Copying and distribution of this file, with or without modification,
5493are permitted in any medium without royalty provided the copyright
5494notice and this notice are preserved.
This page took 1.935302 seconds and 5 git commands to generate.