]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
[PATCH][AARCH64]Add csneg3_uxtw_insn pattern
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
0d1a8f75
JM
12015-10-01 Joseph Myers <joseph@codesourcery.com>
2
3 * c.opt (std=c11): Do not describe as experimental.
4 (std=gnu11): Likewise.
5 (std=iso9899:2011): Likewise.
6
3e32ee19
NS
72015-09-28 Nathan Sidwell <nathan@codesourcery.com>
8
9 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
10 (DEF_FUNCTION_TYPE_VAR_11): Delete.
11
974348ee
MP
122015-09-25 Marek Polacek <polacek@redhat.com>
13
14 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
15 (ubsan_instrument_shift): Likewise.
16
15dbc1a6
MP
172015-09-25 Marek Polacek <polacek@redhat.com>
18
19 PR sanitizer/64906
20 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
21
6b95d7cc
PP
222015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
23
24 * c-indentation.c (should_warn_for_misleading_indentation):
25 Compare next_stmt_vis_column with guard_line_first_nws instead
26 of with guard_line_vis_column.
27
c1822f9c
MLI
282015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
29
30 PR c/49654
31 PR c/49655
32 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
33 options and options not valid for the current language.
34
d5398058
PP
352015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
36
37 * c-indentation.c (should_warn_for_misleading_indentation):
38 Float out and consolidate the calls to get_visual_column that
39 are passed guard_exploc as an argument. Compare
40 next_stmt_vis_column with guard_line_first_nws instead of with
41 body_line_first_nws.
42
6b333269
NS
432015-09-22 Nathan Sidwell <nathan@codesourcery.com>
44
45 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
46 Wnamespaces): New C++ warnings.
47
a75f1574
JM
482015-09-22 Jason Merrill <jason@redhat.com>
49
50 * c-common.h (abi_compat_version_crosses): New.
51 (warn_abi_version): Declare.
52 * c-common.c: Define it.
53 * c-opts.c (c_common_post_options): Handle it.
54 flag_abi_compat_version defaults to 8.
55
bdaaa8b7
VV
562015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
57
58 Complete the implementation of N4230, Nested namespace definition.
59 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
60 __cpp_nested_namespace_definitions.
61
eaa797e8
MLI
622015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
63
64 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
65
c4914de6
MLI
662015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
67
68 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
69 when warning.
70 * c-pragma.h (pragma_lex): Add optional loc argument.
71
fcb87c50
MM
722015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
73
74 * c-format.c (check_format_arg): Adjust to use common block size in all
75 object pools.
76
31bdd08a
DM
772015-09-15 David Malcolm <dmalcolm@redhat.com>
78
79 * c-format.c (location_from_offset): Update for change in
80 signature of location_get_source_line.
81 * c-indentation.c (get_visual_column): Likewise.
82 (line_contains_hash_if): Likewise.
83
aa9f4b4c
MP
842015-09-14 Marek Polacek <polacek@redhat.com>
85
86 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
87 setting various warnings.
88
aa256c4a
MP
892015-09-14 Marek Polacek <polacek@redhat.com>
90
91 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
92 a negative value.
93
0f876f22
MW
942015-09-11 Mark Wielaard <mjw@redhat.com>
95
96 PR c/28901
97 * c.opt (Wunused-variable): Option from common.opt.
98 (Wunused-const-variable): New option.
99
273aa49e
PC
1002015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
101
102 PR c++/53184
103 * c.opt ([Wsubobject-linkage]): Add.
104
1807ffc1
MS
1052015-09-03 Martin Sebor <msebor@redhat.com>
106
107 PR c/66516
108 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
109 functions.
110 * c-common.c (reject_gcc_builtin): Define.
111
38942840
BI
1122015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
113
114 PR middle-end/60586
115 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
116 prototype.
117 * c-gimplify.c (c_gimplify_expr): Added a call to the function
118 cilk_gimplify_call_params_in_spawned_fn.
119 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
120 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
121 unwrapping.
122
c316b5e4
MP
1232015-08-25 Marek Polacek <polacek@redhat.com>
124
125 PR middle-end/67330
126 * c-common.c (handle_weak_attribute): Don't check whether the
127 visibility can be changed here.
128
584a7c46
MLI
1292015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
130
131 * c-lex.c (c_lex_with_flags): Use explicit locations.
132
a79683d5
TS
1332015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
134
135 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
136 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
137
61717a45
FXC
1382015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
139
140 PR middle-end/36757
141 * c-common.c (check_builtin_function_arguments): Add check
142 for BUILT_IN_SIGNBIT argument.
143
329524f5
PC
1442015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
145
146 PR c++/67160
147 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
148 in c++1z mode.
149
4ee55665
MP
1502015-08-17 Marek Polacek <polacek@redhat.com>
151
152 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
153 with whitespaces before qualifier names.
154
b893e375
MP
1552015-08-12 Marek Polacek <polacek@redhat.com>
156
157 PR c++/55095
158 * c-common.c (maybe_warn_shift_overflow): Properly handle
159 left-shifting 1 into the sign bit.
160
c2d89095
MLI
1612015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
162
163 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
164
971e17ff
AS
1652015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
166 Braden Obrzut <admin@maniacsvault.net>
167 Jason Merrill <jason@redhat.com>
168
169 Add C++ Concepts TS support.
170 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
171 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
172 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
173 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
174 * c-opts.c (set_std_cxx1z): Set flag_concepts.
175 * c.opt (fconcepts): New.
176
8ebca419
PP
1772015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
178
179 * c-indentation.c (should_warn_for_misleading_indentation):
180 Improve heuristics.
181
1a1e101f
PP
1822015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
183
184 * c-indentation.c (get_visual_column): Add parameter first_nws,
185 use it. Update comment documenting the function.
186 (is_first_nonwhitespace_on_line): Remove.
187 (should_warn_for_misleading_indentation): Replace usage of
188 of is_first_nonwhitespace_on_line with get_visual_column.
189
992118a1
PP
1902015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
191
192 * c-indentation.h (struct token_indent_info): Define.
193 (get_token_indent_info): Define.
194 (warn_for_misleading_information): Declare.
195 * c-common.h (warn_for_misleading_information): Remove.
196 * c-identation.c (warn_for_misleading_indentation):
197 Change declaration to take three token_indent_infos. Adjust
198 accordingly.
199 * c-identation.c (should_warn_for_misleading_indentation):
200 Likewise. Bail out early if the body is a compound statement.
201 (guard_tinfo_to_string): Define.
202
e8fa3817
JM
2032015-07-30 Jason Merrill <jason@redhat.com>
204
205 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
206 '*' for reference decay.
207
173864e8
MP
2082015-07-30 Marek Polacek <polacek@redhat.com>
209
210 * c-common.c (warn_tautological_cmp): Bail for float types.
211
f2afe6dd
MP
2122015-07-27 Marek Polacek <polacek@redhat.com>
213
214 PR bootstrap/67030
215 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
216
05b28fd6
MP
2172015-07-27 Marek Polacek <polacek@redhat.com>
218
219 PR c++/66555
220 PR c/54979
221 * c-common.c (find_array_ref_with_const_idx_r): New function.
222 (warn_tautological_cmp): New function.
223 * c-common.h (warn_tautological_cmp): Declare.
224 * c.opt (Wtautological-compare): New option.
225
5a5062b8
MP
2262015-07-23 Marek Polacek <polacek@redhat.com>
227
228 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
229 (ubsan_instrument_shift): Likewise.
230
dc891fe7
MP
2312015-07-23 Marek Polacek <polacek@redhat.com>
232
233 PR sanitizer/66908
234 * c-ubsan.c: Include gimplify.h.
235 (ubsan_instrument_division): Unshare OP0 and OP1.
236 (ubsan_instrument_shift): Likewise.
237
451b5e48
MP
2382015-07-20 Marek Polacek <polacek@redhat.com>
239 Richard Sandiford <richard.sandiford@arm.com>
240
241 PR c++/55095
242 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
243 Use EXPR_LOC_OR_LOC.
244 (maybe_warn_shift_overflow): New function.
245 * c-common.h (maybe_warn_shift_overflow): Declare.
246 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
247 * c.opt (Wshift-overflow): New option.
248
fb0b2914
ML
2492015-07-16 Martin Liska <mliska@suse.cz>
250
251 * c-format.c (static void check_format_info_main): Use
252 object_allocator instead of pool_allocator.
253 (check_format_arg): Likewise.
254 (check_format_info_main): Likewise.
255
903f5c23
AM
2562015-07-15 Andrew MacLeod <amacleod@redhat.com>
257
258 * c-opts.c: Remove multiline #include comment.
259
026c3cfd
AH
2602015-07-12 Aldy Hernandez <aldyh@redhat.com>
261
262 * c-common.c: Fix double word typos.
263
bb49ee66
EB
2642015-07-10 Eric Botcazou <ebotcazou@adacore.com>
265
266 * c-ada-spec.h (cpp_operation): Revert latest change.
267 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
268 constructors and destructors.
269
1916bcb5
AM
2702015-07-09 Andrew MacLeod <amacleod@redhat.com>
271
272 * c-common.h: Adjust includes for flags.h changes.
273 * stub-objc.c: Likewise.
026c3cfd 274
a9dcd529
EB
2752015-07-08 Eric Botcazou <ebotcazou@adacore.com>
276
277 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
278 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
279
b03b462f
JJ
2802015-07-08 Jakub Jelinek <jakub@redhat.com>
281
282 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
283 are to be removed, return NULL rather than original clauses list.
284
c7131fb2
AM
2852015-07-07 Andrew MacLeod <amacleod@redhat.com>
286
287 * array-notation-common.c: Adjust includes.
288 * c-ada-spec.c: Likewise.
289 * c-cilkplus.c: Likewise.
290 * c-common.h: Likewise.
291 * c-cppbuiltin.c: Likewise.
292 * c-dump.c: Likewise.
293 * c-format.c: Likewise.
294 * c-gimplify.c: Likewise.
295 * c-indentation.c: Likewise.
296 * c-lex.c: Likewise.
297 * c-omp.c: Likewise.
298 * c-opts.c: Likewise.
299 * c-pch.c: Likewise.
300 * c-ppoutput.c: Likewise.
301 * c-pragma.c: Likewise.
302 * c-pretty-print.c: Likewise.
303 * c-semantics.c: Likewise.
304 * c-ubsan.c: Likewise.
305 * cilk.c: Likewise.
306 * stub-objc.c: Likewise.
307
2a7fb83f
EB
3082015-07-07 Eric Botcazou <ebotcazou@adacore.com>
309
310 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
311 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
312
a03c9bf1
JM
3132015-07-01 Jason Merrill <jason@redhat.com>
314
36a85135
JM
315 * c-common.h (D_CXX11): Rename from D_CXX0X.
316 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
317 * c-common.c: Adjust.
318
e7fa68d5
JM
319 * c-opts.c (c_common_post_options): Default to C++14.
320
a03c9bf1
JM
321 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
322
fe95b036
ESR
3232015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
324
325 Implement N4197 - Adding u8 character literals
a64be36b
EB
326 * c-family/c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
327 CPP_CHAR.
328 * c-family/c-common.c (c_parse_error): Print CPP_UTF8CHAR and
329 CPP_UTF8CHAR_USERDEF tokens.
330 * c-family/c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
331 and CPP_UTF8CHAR tokens.
332 (lex_charconst): Treat CPP_UTF8CHAR token.
fe95b036 333
da2e71c9
MLI
3342015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
335
336 PR fortran/66605
337 * c-common.c (do_warn_unused_parameter): Move here.
338 * c-common.h (do_warn_unused_parameter): Declare.
339
b155cfd9
MP
3402015-06-29 Marek Polacek <polacek@redhat.com>
341
342 PR c/66322
343 * c-common.c (check_case_bounds): Add bool * parameter. Set
344 OUTSIDE_RANGE_P.
345 (c_add_case_label): Add bool * parameter. Pass it down to
346 check_case_bounds.
347 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
348 warning here.
349 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
350 declarations.
351
31521951
MP
3522015-06-27 Marek Polacek <polacek@redhat.com>
353
354 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
355 or VECTOR_INTEGER_TYPE_P throughout.
356 * c-gimplify.c: Likewise.
357
22d03525
MP
3582015-06-26 Marek Polacek <polacek@redhat.com>
359
360 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
361 * c-common.c (c_fully_fold_internal): Likewise.
362 (c_alignof_expr): Likewise.
363 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
364 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
365 * cilk.c (create_parm_list): Likewise.
366
af05e6e5
MP
3672015-06-26 Marek Polacek <polacek@redhat.com>
368
369 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
370
f0889939
AM
3712015-06-25 Andrew MacLeod <amacleod@redhat.com>
372
373 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
374 * c-gimplify.c: Likewise.
375 * c-pragma.c: Likewise.
376 * c-ubsan.c: Likewise.
377 * cilk.c: Likewise.
378
ca752f39
RS
3792015-06-25 Richard Sandiford <richard.sandiford@arm.com>
380
381 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
382 ggc_hasher.
383
16a16ec7
AM
3842015-06-25 Andrew MacLeod <amacleod@redhat.com>
385
386 * cilk.c: Move calls.h after tm.h in the include chain.
387
0ae9bd27
MP
3882015-06-25 Marek Polacek <polacek@redhat.com>
389
390 * array-notation-common.c: Use VAR_P throughout.
391 * c-ada-spec.c: Likewise.
392 * c-common.c: Likewise.
393 * c-format.c: Likewise.
394 * c-gimplify.c: Likewise.
395 * c-omp.c: Likewise.
396 * c-pragma.c: Likewise.
397 * c-pretty-print.c: Likewise.
398 * cilk.c: Likewise.
399
62f9079a
MP
4002015-06-25 Marek Polacek <polacek@redhat.com>
401
402 * cilk.c (extract_free_variables): Use is_global_var.
403
0fa16060
RS
4042015-06-23 Richard Sandiford <richard.sandiford@arm.com>
405
406 * c-common.c: Don't include target-def.h.
407
a68ae2e1
MP
4082015-06-23 Marek Polacek <polacek@redhat.com>
409
410 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
411 when comparing INTEGER_CSTs.
412
c6a2f2d9
PMR
4132015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
414
415 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
416 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
417 (dump_ada_template): Skip partially specialized types.
418
6b4db501
MM
4192015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
420
421 * c-common.c (scalar_to_vector): Use std::swap instead of manually
422 swapping.
423
abb226c9
AM
4242015-06-17 Andrew MacLeod <amacleod@redhat.com>
425
426 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
427 * c-ada-spec.c: Likewise.
428 * c-cilkplus.c: Likewise.
429 * c-common.c: Likewise.
430 * c-common.h: Likewise.
431 * c-cppbuiltin.c: Likewise.
432 * c-dump.c: Likewise.
433 * c-format.c: Likewise.
434 * c-gimplify.c: Likewise.
435 * c-indentation.c: Likewise.
436 * c-lex.c: Likewise.
437 * c-omp.c: Likewise.
438 * c-opts.c: Likewise.
439 * c-pch.c: Likewise.
440 * c-ppoutput.c: Likewise.
441 * c-pragma.c: Likewise.
442 * c-pretty-print.c: Likewise.
443 * c-semantics.c: Likewise.
444 * c-ubsan.c: Likewise.
445 * cilk.c: Likewise.
446 * stub-objc.c: Likewise.
447
076fecad
PP
4482015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
449
450 PR c++/65168
451 * c-common.c (c_common_truthvalue_conversion): Warn when
452 converting an address of a reference to a truth value.
453
13fdf2e2
AM
4542015-06-08 Andrew MacLeod <amacleod@redhat.com>
455
456 * array-notation-common.c : Adjust include files.
457 * c-ada-spec.c : Likewise.
458 * c-cilkplus.c : Likewise.
459 * c-common.c : Likewise.
460 * c-common.h : Likewise.
461 * c-cppbuiltin.c : Likewise.
462 * c-dump.c : Likewise.
463 * c-format.c : Likewise.
464 * c-gimplify.c : Likewise.
465 * c-indentation.c : Likewise.
466 * c-lex.c : Likewise.
467 * c-omp.c : Likewise.
468 * c-opts.c : Likewise.
469 * c-pch.c : Likewise.
470 * c-ppoutput.c : Likewise.
471 * c-pragma.c : Likewise.
472 * c-pretty-print.c : Likewise.
473 * c-semantics.c : Likewise.
474 * c-ubsan.c : Likewise.
475 * cilk.c : Likewise.
476 * stub-objc.c : Likewise.
477
a1661b90
MP
4782015-06-08 Marek Polacek <polacek@redhat.com>
479
480 PR c/66415
481 * c-format.c (location_from_offset): Return LOC if LINE is null.
482
d7438551
AH
4832015-06-05 Aldy Hernandez <aldyh@redhat.com>
484
485 * c-common.h (c_parse_final_cleanups): New prototype.
486 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
487
ecb9f223
AM
4882015-06-04 Andrew MacLeod <amacleod@redhat.com>
489
490 * array-notation-common.c: Adjust includes for restructured coretypes.h.
491 * c-ada-spec.c: Likewise.
492 * c-cilkplus.c: Likewise.
493 * c-common.c: Likewise.
494 * c-common.h: Likewise.
495 * c-cppbuiltin.c: Likewise.
496 * c-dump.c: Likewise.
497 * c-format.c: Likewise.
498 * c-gimplify.c: Likewise.
499 * c-indentation.c: Likewise.
500 * c-lex.c: Likewise.
501 * c-omp.c: Likewise.
502 * c-opts.c: Likewise.
503 * c-pch.c: Likewise.
504 * c-ppoutput.c: Likewise.
505 * c-pragma.c: Likewise.
506 * c-pretty-print.c: Likewise.
507 * c-semantics.c: Likewise.
508 * c-ubsan.c: Likewise.
509 * cilk.c: Likewise.
510 * stub-objc.c: Likewise.
511
6ac48155
DM
5122015-06-02 David Malcolm <dmalcolm@redhat.com>
513
514 PR c/66220:
515 * c-indentation.c (should_warn_for_misleading_indentation): Use
516 expand_location rather than expand_location_to_spelling_point.
517 Don't warn if the guarding statement is more indented than the
518 next/body stmts.
519
773ce42e
DM
5202015-06-02 David Malcolm <dmalcolm@redhat.com>
521
522 * c-indentation.c (warn_for_misleading_indentation): Bail out
523 immediately if -Wmisleading-indentation isn't enabled.
524
4fef8379
ML
5252015-06-01 Martin Liska <mliska@suse.cz>
526
527 * c-format.c (check_format_arg):Use new type-based pool allocator.
528 (check_format_info_main) Likewise.
529
1edfb384
EB
5302015-05-31 Eric Botcazou <ebotcazou@adacore.com>
531
532 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
533 (has_nontrivial_methods): Likewise.
534
9677ef52
MP
5352015-05-25 Marek Polacek <polacek@redhat.com>
536
537 * c-ubsan.c (ubsan_instrument_shift): Use type0.
538
fd5c817a
MP
5392015-05-22 Marek Polacek <polacek@redhat.com>
540
541 PR c/47043
542 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
543
a2f45fe6 5442015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
581edfa3
TS
545
546 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
547 STACK_GROWS_DOWNWARD.
548
a2f45fe6 5492015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
62f9f30b
TS
550
551 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
552 STACK_GROWS_DOWNWARD rather than if it is defined.
553
0fee2ac2
MLI
5542015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
555
556 PR c/52952
557 * c-format.c (location_column_from_byte_offset): New.
558 (location_from_offset): New.
559 (struct format_wanted_type): Add offset_loc field.
560 (check_format_info): Move handling of location for extra arguments
561 closer to the point of warning.
562 (check_format_info_main): Pass the result of location_from_offset
563 to warning_at.
564 (format_type_warning): Pass the result of location_from_offset
565 to warning_at.
566
cf4ef6f7
MP
5672015-05-20 Marek Polacek <polacek@redhat.com>
568
569 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
570
3a65ee74
MP
5712015-05-20 Marek Polacek <polacek@redhat.com>
572
573 * c-ada-spec.c (dump_sloc): Use DECL_P.
574
21b634ae
MP
5752015-05-20 Marek Polacek <polacek@redhat.com>
576
577 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
578 * c-common.c: Likewise.
579
0e50b624
DM
5802015-05-19 David Malcolm <dmalcolm@redhat.com>
581
582 * c-common.h (fe_file_change): Strengthen param from
583 const line_map * to const line_map_ordinary *.
584 (pp_file_change): Likewise.
585 * c-lex.c (fe_file_change): Likewise.
586 (cb_define): Use linemap_check_ordinary when invoking
587 SOURCE_LINE.
588 (cb_undef): Likewise.
589 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
590 invoking cb_file_change.
591 (c_finish_options): Likewise.
592 (push_command_line_include): Likewise.
593 (cb_file_change): Strengthen param "new_map" from
594 const line_map * to const line_map_ordinary *.
595 * c-ppoutput.c (cb_define): Likewise for local "map".
596 (pp_file_change): Likewise for param "map" and local "from".
597
fab27f52
MM
5982015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
599
600 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
601
2fe1d762
TV
6022015-05-18 Tom de Vries <tom@codesourcery.com>
603
604 * c-common.c (build_va_arg_1): New function.
605 (build_va_arg): Add address operator to va_list operand if necessary.
606
7a37fa90
MM
6072015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
608
609 PR c/48956
610 * c-common.c (int_safely_convertible_to_real_p): Define.
611 (unsafe_conversion_p): Check conversions involving complex types.
612 (conversion_warning): Add new warning message for conversions which
613 discard imaginary component.
614 * c-common.h: (enum conversion_safety): Add new enumerator for such
615 conversions.
616
3aa3c9fc
MP
6172015-05-14 Marek Polacek <polacek@redhat.com>
618
619 PR c/66066
620 PR c/66127
621 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
622 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
623 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
624 use it. If FOR_INT_CONST, require that all evaluated operands be
625 INTEGER_CSTs.
626
c3388e62
DM
6272015-05-12 David Malcolm <dmalcolm@redhat.com>
628
629 * c-common.h (warn_for_misleading_indentation): New prototype.
630 * c-indentation.c: New file.
631 * c.opt (Wmisleading-indentation): New option.
632
c7b38fd5
TV
6332015-05-12 Tom de Vries <tom@codesourcery.com>
634
635 PR tree-optimization/66010
636 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
637
381bf11e
JM
6382015-05-09 Jason Merrill <jason@redhat.com>
639
edff0c06
JM
640 * c-opts.c (c_common_post_options): Also clear
641 cpp_opts->cpp_warn_cxx11_compat.
642
129211bc
JM
643 * c-common.h (enum cxx_dialect): Add cxx_unset.
644 * c-common.c (cxx_dialect): Initialize to cxx_unset.
645 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
646
381bf11e
JM
647 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
648 (std=gnu++0x): Mark as Undocumented.
649 (std=gnu++1y): Add deprecated message.
650
fe191308
JM
6512015-05-08 Jason Merrill <jason@redhat.com>
652
765189ff
JM
653 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
654 * c-opts.c: Adjust.
655
fe191308
JM
656 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
657
755e528f
MP
6582015-05-08 Marek Polacek <polacek@redhat.com>
659
660 PR c/64918
661 * c.opt (Woverride-init-side-effects): New option.
662
0173bd2a
MP
6632015-05-07 Marek Polacek <polacek@redhat.com>
664
665 PR c/65179
666 * c-common.c (c_fully_fold_internal): Warn when left shifting a
667 negative value.
668 * c.opt (Wshift-negative-value): New option.
669 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
670 when -Wextra and C99/C++11 mode.
671
e0f0d3b9
MP
6722015-05-07 Marek Polacek <polacek@redhat.com>
673 Martin Uecker <uecker@eecs.berkeley.edu>
674
675 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
676 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
677
8243e2a9
JM
6782015-05-05 Jason Merrill <jason@redhat.com>
679
680 * c.opt (Wterminate): New.
681
577cd070
MP
6822015-04-30 Marek Polacek <polacek@redhat.com>
683
684 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
685 require that the non-constant be of a boolean type.
686
0373796b
JT
6872015-04-29 Josh Triplett <josh@joshtriplett.org>
688
e0f0d3b9
MP
689 * c-common.c (handle_section_attribute): Refactor to reduce
690 nesting and distinguish between error cases.
0373796b 691
716c0ba6
MP
6922015-04-29 Marek Polacek <polacek@redhat.com>
693
694 PR c/64610
695 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
696 with 0/1.
697
8848828b
JJ
6982015-04-29 Jakub Jelinek <jakub@redhat.com>
699
700 * c-common.h (omp_clause_mask): Unconditionally define as a class.
701 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
702 HOST_BITS_PER_WIDE_INT.
703
ecd0e562
TV
7042015-04-28 Tom de Vries <tom@codesourcery.com>
705
706 PR tree-optimization/65887
707 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
708
2a877204 7092015-04-28 Eric Botcazou <ebotcazou@adacore.com>
e0f0d3b9 710 Pierre-Marie de Rodat <derodat@adacore.com>
2a877204
EB
711
712 * c-ada-spec.c (in_function): Delete.
713 (dump_generic_ada_node): Do not change in_function and remove the
714 redundant code dealing with it.
715 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
716 (print_ada_methods): Output the static member functions in a nested
717 package after the regular methods as well as associated renamings.
718
4853031e
MP
7192015-04-24 Marek Polacek <polacek@redhat.com>
720
721 PR c/65830
722 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
723 and OPT_Wshift_count_overflow.
724
8c2b7f79
MP
725 PR c/63357
726 * c-common.c (warn_logical_operator): Warn if the operands have the
727 same expressions.
728
b8787813
MP
7292015-04-24 Marek Polacek <polacek@redhat.com>
730
731 PR c/61534
732 * c-common.c (warn_logical_operator): Bail if either operand comes
733 from a macro expansion.
734
8fba1830
BRF
7352015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
736
737 PR target/55143
738 * c-common.c (c_default_pointer_mode): Add definition.
739 * c-common.h (c_default_pointer_mode): Add declaration.
740
17958621
JJ
7412015-03-11 Jakub Jelinek <jakub@redhat.com>
742
743 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
744 on record_builtin_type argument.
745
7ccb1a11
JJ
7462015-03-10 Jakub Jelinek <jakub@redhat.com>
747
748 PR c/65120
749 * c-common.c (warn_logical_not_parentheses): Don't warn for
750 !x == 0 or !x != 0.
751
04fd785e
MP
7522015-03-07 Marek Polacek <polacek@redhat.com>
753
754 PR sanitizer/65280
755 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
756 before trying to figure out whether we have a flexible array member.
757
a4e26206
EB
7582015-03-06 Eric Botcazou <ebotcazou@adacore.com>
759 Jonathan Wakely <jwakely.gcc@gmail.com>
760
761 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
762
0d2489f4
EB
7632015-03-05 Eric Botcazou <ebotcazou@adacore.com>
764
765 PR ada/65319
766 * c-ada-spec.c (print_destructor): Remove obsolete code.
767
83ed54d7
EB
7682015-03-01 Eric Botcazou <ebotcazou@adacore.com>
769
770 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
771 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
772 DECL_TEMPLATE_RESULT emulations.
773 (dump_ada_template)): Add guard for TYPE_METHODS.
774
7631f0e2
MP
7752015-02-27 Marek Polacek <polacek@redhat.com>
776
777 PR c/65040
778 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
779
d1783ae5
KT
7802015-02-27 Kai Tietz <ktietz@redhat.com>
781
782 PR c/35330
783 * c-pragma.c (handle_pragma_weak): Do not try to create
784 weak/alias of declarations not being function, or variable
785 declarations.
786
56a9f6bc
TS
7872015-02-24 Thomas Schwinge <thomas@codesourcery.com>
788
789 PR libgomp/64625
790 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
791 Remove macros.
792 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
793
3d5cb23d
MP
7942015-02-16 Marek Polacek <polacek@redhat.com>
795
796 PR c/65066
797 * c-format.c (check_format_types): Handle null param.
798
fa008882
MP
7992015-02-13 Marek Polacek <polacek@redhat.com>
800
801 PR c/65040
802 * c-format.c (check_format_types): Don't warn about different
803 signedness if the original value is in the range of WANTED_TYPE.
804
785f21af
JM
8052015-02-12 Jason Merrill <jason@redhat.com>
806
807 PR c++/64956
808 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
809 to the current highest version.
810 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
811
4886ec8e
JJ
8122015-02-04 Jakub Jelinek <jakub@redhat.com>
813
814 PR c/64824
815 PR c/64868
816 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
817 instead of RDIV_EXPR. Use build_binary_op instead of
818 build2_loc.
819
40fecdd6
JM
8202015-01-30 Joseph Myers <joseph@codesourcery.com>
821
822 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
823 to pass input_location as first argument.
824
a0c88d06
TV
8252015-01-23 Tom de Vries <tom@codesourcery.com>
826
827 PR libgomp/64672
828 * c.opt (fopenacc): Mark as LTO option.
829
1506ae0e
TV
8302015-01-23 Tom de Vries <tom@codesourcery.com>
831
832 PR libgomp/64707
833 * c.opt (fopenmp): Mark as LTO option.
834
31be63ab
JJ
8352015-01-21 Jakub Jelinek <jakub@redhat.com>
836
837 PR c/63307
838 * cilk.c (fill_decls_vec): Only put decls into vector v.
839 (compare_decls): Fix up formatting.
840
8412015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
842
843 PR c/63307
844 * cilk.c: Include vec.h.
845 (struct cilk_decls): New structure.
846 (wrapper_parm_cb): Split this function to...
847 (fill_decls_vec): ...this...
848 (create_parm_list): ...and this.
849 (compare_decls): New function.
850 (for_local_cb): Remove.
851 (wrapper_local_cb): Ditto.
852 (build_wrapper_type): For now first traverse and fill vector of
853 declarations then sort it and then deal with sorted vector.
854 (cilk_outline): Ditto.
855 (declare_one_free_variable): Ditto.
856
6875457f
JM
8572015-01-21 Jason Merrill <jason@redhat.com>
858
859 PR c++/64629
860 * c-format.c (check_format_arg): Call decl_constant_value.
861
185c9e56
ML
8622015-01-19 Martin Liska <mliska@suse.cz>
863
864 * c-common.c (handle_noicf_attribute): New function.
865
41dbbb37
TS
8662015-01-15 Thomas Schwinge <thomas@codesourcery.com>
867 Bernd Schmidt <bernds@codesourcery.com>
868 James Norris <jnorris@codesourcery.com>
869 Cesar Philippidis <cesar@codesourcery.com>
870 Ilmir Usmanov <i.usmanov@samsung.com>
871 Jakub Jelinek <jakub@redhat.com>
872
873 * c.opt (fopenacc): New option.
874 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
875 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
876 New macros.
877 * c-common.h (c_finish_oacc_wait): New prototype.
878 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
879 (c_finish_oacc_wait): New function.
880 * c-pragma.c (oacc_pragmas): New variable.
881 (c_pp_lookup_pragma, init_pragma): Handle it.
882 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
883 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
884 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
885 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
886 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
887 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
888 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
889 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
890 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
891 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
892 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
893 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
894 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
895 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
896 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
897 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
898 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
899 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
900 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
901 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
902 PRAGMA_OACC_CLAUSE_WORKER.
903
5434dc07
MD
9042015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
905
906 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
907 for the new option fstack-protector_explicit.
908 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
909 (handle_stack_protect_attribute): New function.
910
de1b5c17
MU
9112015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
912
913 * c.opt: New option -Warray-bounds=.
914
adfac8df
JJ
9152015-01-09 Michael Collison <michael.collison@linaro.org>
916
917 * array-notation-common.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 flattening of tree.h.
920 * c-ada-spec.c: Ditto.
921 * c-cilkplus.c: Ditto.
922 * c-common.c: Include input.h due to flattening of tree.h.
923 Define macro GCC_C_COMMON_C.
924 * c-common.h: Flatten tree.h header files into c-common.h.
925 Remove include of tree-core.h.
926 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
927 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
928 fold-const.h, wide-int.h, and inchash.h due to
929 flattening of tree.h.
930 * c-dump.c: Ditto.
931 * c-format.c: Flatten tree.h header files into c-common.h.
932 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
933 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
934 fold-const.h, wide-int.h, and inchash.h due to
935 flattening of tree.h.
936 * c-dump.c: Include hash-set.h, machmode.h,
937 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
938 fold-const.h, wide-int.h, and inchash.h due to
939 flattening of tree.h.
940 * c-format.c: Include hash-set.h, machmode.h,
941 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
942 fold-const.h, wide-int.h, inchash.h and real.h due to
943 flattening of tree.h.
944 * c-gimplify.c: Include hash-set.h, machmode.h,
945 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
946 fold-const.h, wide-int.h, and inchash.h due to
947 flattening of tree.h.
948 * cilk.c: Ditto.
949 * c-lex.c: Ditto.
950 * c-omp.c: Ditto.
951 * c-opts.c: Ditto.
952 * c-pch.c: Ditto.
953 * c-ppoutput.c: Ditto.
954 * c-pragma.c: Ditto.
955 * c-pretty-print.c: Ditto.
956 * c-semantics.c: Ditto.
957 * c-ubsan.c: Ditto.
958 * stub-objc.c: Ditto.
959
f5481fc4
JM
9602015-01-08 Jason Merrill <jason@redhat.com>
961
962 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
963 do_ubsan_in_current_function.
964 (ubsan_maybe_instrument_reference_or_call): Likewise.
965 * c-ubsan.h: Declare it.
966
de35aa66
MS
9672015-01-08 Mike Stump <mikestump@comcast.net>
968
969 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
970
4a9a42ab
MP
9712015-01-07 Marek Polacek <polacek@redhat.com>
972
973 PR c/64440
974 * c-common.c (c_fully_fold_internal): Warn for division and modulo
975 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
976
2f42e5de
TS
9772015-01-05 Trevor Saunders <tsaunders@mozilla.com>
978
979 PR c++/31397
980 * c.opt (Wsuggest-override): New option.
981
5624e564
JJ
9822015-01-05 Jakub Jelinek <jakub@redhat.com>
983
984 Update copyright years.
985
5bd012f8
MP
9862015-01-05 Marek Polacek <polacek@redhat.com>
987
988 PR c/64423
989 * c-common.c (warn_array_subscript_with_type_char): Add location_t
990 parameter. Use it.
991 * c-common.h (warn_array_subscript_with_type_char): Update
992 declaration.
993
a7fa8d18
ESR
9942014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
995
996 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
997 Control macro with flag_sized_deallocation.
998
768952be
MU
9992014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
1000
1001 * c.opt (Wdiscarded-array-qualifiers): New option.
1002
1f8d3e84
JJ
10032014-12-19 Jakub Jelinek <jakub@redhat.com>
1004
1005 PR preprocessor/63831
1006 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
1007 and __has_cpp_attribute here.
1008 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
1009 c_common_has_attribute.
1010 * c-common.h (c_common_has_attribute): New prototype.
1011 * c-lex.c (init_c_lex): Set cb->has_attribute to
1012 c_common_has_attribute instead of cb_has_attribute.
1013 (get_token_no_padding): New function.
1014 (cb_has_attribute): Renamed to ...
1015 (c_common_has_attribute): ... this. No longer static. Use
1016 get_token_no_padding, require ()s, don't build TREE_LIST
1017 unnecessarily, fix up formatting, adjust diagnostics, call
1018 init_attributes.
1019
20b06add
JM
10202014-12-15 Jason Merrill <jason@redhat.com>
1021
1022 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
1023 (-Wsized-deallocation): New.
1024 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
1025 to on in C++14 and up.
1026
94a073b2
JM
10272014-12-11 Jason Merrill <jason@redhat.com>
1028
acaa5911
JM
1029 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
1030
94a073b2
JM
1031 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
1032 we aren't complaining about VLAs.
1033
7fb66c15
MP
10342014-12-06 Marek Polacek <polacek@redhat.com>
1035
1036 PR tree-optimization/64183
1037 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
1038 shift-expression if it is integer_type_node. Use types_compatible_p.
1039
b731b390
JJ
10402014-11-29 Jakub Jelinek <jakub@redhat.com>
1041
1042 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
1043 last argument from create_tmp_var_raw and create_tmp_var calls.
1044 * cilk.c (gimplify_cilk_spawn): Likewise.
1045 * c-omp.c (c_finish_omp_atomic): Likewise.
1046
6a4da643
MP
10472014-11-28 Marek Polacek <polacek@redhat.com>
1048
1049 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
1050 instead of unsigned_type_node.
1051
541e35a6
MP
10522014-11-28 Marek Polacek <polacek@redhat.com>
1053
1054 PR c/63862
1055 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
1056 to op1_utype.
1057 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
1058 expression to unsigned_type_node.
1059
dcc97066
MW
10602014-11-20 Mark Wielaard <mjw@redhat.com>
1061
1062 PR debug/38757
1063 * c-opts.c (set_std_c89): Set lang_hooks.name.
1064 (set_std_c99): Likewise.
1065 (set_std_c11): Likewise.
1066 (set_std_cxx98): Likewise.
1067 (set_std_cxx11): Likewise.
1068 (set_std_cxx14): Likewise.
1069 (set_std_cxx1z): Likewise.
1070
aa7da51a
JJ
10712014-11-21 Jakub Jelinek <jakub@redhat.com>
1072
1073 PR target/63764
1074 * c-common.h (convert_vector_to_pointer_for_subscript): Change
1075 return type to bool.
009a3480 1076 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
1077 (convert_vector_to_pointer_for_subscript): Change return type to
1078 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
1079 and copy it into a TARGET_EXPR and use that instead of *vecp
1080 directly.
1081
538dd0b7
DM
10822014-11-19 David Malcolm <dmalcolm@redhat.com>
1083
1084 Merger of git branch "gimple-classes-v2-option-3".
1085 * ChangeLog.gimple-classes: New.
1086 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
1087 from being just a vec<gimple> to a vec<gbind *>.
1088
c39a5e99
JJ
10892014-11-18 Jakub Jelinek <jakub@redhat.com>
1090
1091 PR sanitizer/63813
1092 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
1093 argument to ptype, set type to TREE_TYPE (ptype). Don't call
1094 get_pointer_alignment for non-pointers. Use ptype, or if it is
1095 reference type, corresponding pointer type, as type of kind
1096 argument.
1097 (ubsan_maybe_instrument_reference,
1098 ubsan_maybe_instrument_member_call): Adjust callers.
1099
8537a4a9
MP
11002014-11-15 Marek Polacek <polacek@redhat.com>
1101
1102 PR middle-end/63884
1103 * array-notation-common.c (is_sec_implicit_index_fn): Return false
1104 for NULL fndecl.
1105 (extract_array_notation_exprs): Return for NULL node.
1106
2079956a
JM
11072014-11-12 Joseph Myers <joseph@codesourcery.com>
1108
1109 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
1110 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
1111
1304953e
JJ
11122014-11-12 Jakub Jelinek <jakub@redhat.com>
1113
1114 PR c/59708
1115 * c-common.c (check_builtin_function_arguments): Handle
1116 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
1117
e5e44252
AK
11182014-11-10 Andi Kleen <ak@linux.intel.com>
1119
1120 PR c/60804
1121 * c-common.h (check_no_cilk): Declare.
1122 * cilk.c (get_error_location): New function.
1123 (check_no_cilk): Dito.
1124
e64b984d
AK
11252014-11-10 Andi Kleen <ak@linux.intel.com>
1126
1127 * cilk.c (recognize_spawn): Use expression location
1128 for error message.
1129
13c21655
PC
11302014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
1131
1132 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
1133
42fd12b1
ESR
11342014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
1135
1136 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
1137 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
1138 (__cpp_range_based_for, __cpp_initializer_lists,
1139 __cpp_delegating_constructors, __cpp_nsdmi,
1140 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
1141 for C++11; (__cpp_attribute_deprecated): Remove in favor of
1142 __has_cpp_attribute.
1143 * c-lex.c (cb_has_attribute): New callback CPP function;
1144 (init_c_lex): Set has_attribute callback.
1145
6f450181
RB
11462014-11-04 Richard Biener <rguenther@suse.de>
1147
1148 * c-common.c (shorten_compare): Do not shorten mixed
1149 DFP and non-DFP compares.
1150
26f0e1d6
ESR
11512014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
1152
1153 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
1154 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
1155 Commentary and rearrangement of tests.
1156 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
1157 Commentary and rearrangement of tests.
1158 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
1159 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
1160
ef4bddc2
RS
11612014-10-29 Richard Sandiford <richard.sandiford@arm.com>
1162
1163 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
1164 enum from machine_mode.
1165
c582198b
AM
11662014-10-28 Andrew MacLeod <amacleod@redhat.com>
1167
adfac8df
JJ
1168 * c-common.c: Adjust include files.
1169 * c-gimplify.c: Ditto.
1170 * cilk.c: Ditto.
1171 * c-pragma.c: Ditto.
1172 * c-ubsan.c: Ditto.
c582198b 1173
60393bbc
AM
11742014-10-27 Andrew MacLeod <amacleod@redhat.com>
1175
1176 * c-gimplify.c: Adjust include files.
1177
d723bb7c
MLI
11782014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
1179
1180 PR c++/53061
1181 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
1182 c_common_initialize_diagnostics.
1183 * c-common.h: Likewise.
1184
90f3520e
MP
11852014-10-24 Marek Polacek <polacek@redhat.com>
1186
1187 PR c/56980
1188 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
1189 print "struct"/"union"/"enum" for typedefed names.
1190
59d7607a
MP
11912014-10-23 Marek Polacek <polacek@redhat.com>
1192
1193 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
1194 in unsigned type.
1195
d95a2703
JJ
11962014-10-22 Jakub Jelinek <jakub@redhat.com>
1197 Yury Gribov <y.gribov@samsung.com>
1198
1199 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1200 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
1201 instead of flag_sanitize_recover as bool flag.
1202
8e6ef852
KY
12032014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
1204
1205 * cilk.c: Revert previous change.
1206
948cf550
IZ
12072014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
1208
1209 PR c/63307
1210 * cilk.c: Include vec.h.
1211 (struct cilk_decls): New structure.
1212 (wrapper_parm_cb): Split this function to...
1213 (fill_decls_vec): ...this...
1214 (create_parm_list): ...and this.
1215 (compare_decls): New function.
1216 (for_local_cb): Remove.
1217 (wrapper_local_cb): Ditto.
1218 (build_wrapper_type): For now first traverse and fill vector of
1219 declarations then sort it and then deal with sorted vector.
1220 (cilk_outline): Ditto.
1221 (declare_one_free_variable): Ditto.
1222
92574c7c
MP
12232014-10-17 Marek Polacek <polacek@redhat.com>
1224
1225 * c-opts.c (c_common_post_options): Set warn_implicit_int.
1226 * c.opt (Wimplicit-int): Initialize to -1.
1227
83685514
AM
12282014-10-16 Andrew MacLeod <amacleod@redhat.com>
1229
1230 * c-pragma.c: Adjust include files.
1231 * c-semantics.c: Likewise.
1232
5b8300ea
DD
12332014-10-16 DJ Delorie <dj@redhat.com>
1234
1235 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
1236 multiples of bytes.
1237
5f83e90b
JM
12382014-10-14 Jason Merrill <jason@redhat.com>
1239
1240 PR c++/63455
1241 * c-common.h (CPP_PREPARSED_EXPR): New.
1242 (N_CP_TTYPES): Adjust.
1243
d73326ca
MP
12442014-10-15 Marek Polacek <polacek@redhat.com>
1245
1246 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
1247
78a7c317
DD
12482014-10-14 DJ Delorie <dj@redhat.com>
1249
1250 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
1251 types, not just __int128.
1252 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
1253 types, not just __int128.
1254 (cpp_atomic_builtins): Round pointer sizes up.
1255 (type_suffix): Use type precision, not specific types.
1256 * c-common.c (c_common_reswords): Remove __int128 special case.
1257 (c_common_type_for_size): Check for all __intN types, not just
1258 __int128.
1259 (c_common_type_for_mode): Likewise.
1260 (c_common_signed_or_unsigned_type): Likewise.
1261 (c_build_bitfield_integer_type): Likewise.
1262 (c_common_nodes_and_builtins): Likewise.
1263 (keyword_begins_type_specifier): Likewise.
1264 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
1265 __intN variants.
1266
2a22f99c
TS
12672014-10-12 Trevor Saunders <tsaunders@mozilla.com>
1268
1269 * c-common.c: Use hash_table instead of hashtab.
1270
2a8ef767
ESR
12712014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
1272
adfac8df 1273 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
1274 C++11 section.
1275
3c9aabbd
MG
12762014-10-03 Marc Glisse <marc.glisse@inria.fr>
1277
1278 PR c++/54427
1279 PR c++/57198
1280 PR c++/58845
1281 * c-common.c (warn_logical_operator): Punt for vectors.
1282
a15f7cb8
ESR
12832014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
1284
1285 Implement SD-6: SG10 Feature Test Recommendations
1286 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
1287 macros and the __has_header macro.
1288
8d0cf15e
JM
12892014-09-30 Jason Merrill <jason@redhat.com>
1290
dd5d5481
JM
1291 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
1292 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
1293 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
1294
b752325e
JM
1295 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
1296 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
1297
8d0cf15e
JM
1298 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
1299 * c-common.c (c_common_reswords): Remove __is_convertible_to.
1300
083e891e
MP
13012014-09-24 Marek Polacek <polacek@redhat.com>
1302
1303 PR c/61405
1304 PR c/53874
1305 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
1306
7861b648
AK
13072014-09-23 Andi Kleen <ak@linux.intel.com>
1308
1309 * c-common.c (handle_no_reorder_attribute): New function.
1310 (c_common_attribute_table): Add no_reorder attribute.
1311
9a79452d
JM
13122014-09-22 Joseph Myers <joseph@codesourcery.com>
1313
1314 * c-cppbuiltin.c (c_cpp_builtins): Define
1315 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
1316 modes.
1317
dd69f047
JM
13182014-09-18 Joseph Myers <joseph@codesourcery.com>
1319
1320 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
1321 for supported floating-point modes.
1322
737a4826
MLI
13232014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1324
1325 * c.opt (Wpsabi): Use LangEnabledBy.
1326 * c-opts.c (c_common_handle_option): Do not handle here.
1327
8cc4b7a2
JM
13282014-09-12 Joseph Myers <joseph@codesourcery.com>
1329
1330 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
1331 macros for floating-point modes.
1332
179b5a55
MG
13332014-09-11 Marc Glisse <marc.glisse@inria.fr>
1334
1335 PR target/58757
1336 * c-cppbuiltin.c (builtin_define_float_constants): Correct
1337 __*_DENORM_MIN__ without denormals.
1338
570a11fe
JJ
13392014-09-10 Jakub Jelinek <jakub@redhat.com>
1340
1341 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1342 ubsan_instrument_vla, ubsan_instrument_return): Adjust
1343 ubsan_create_data callers.
1344 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
1345 index is constant or BIT_AND_EXPR with constant mask and is
1346 small enough for the bound.
1347 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
1348 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
1349
b559c810
MLI
13502014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1351
1352 * c.opt: Add CppReason to various flags.
1353 (Wdate-time): Re-sort.
1354 * c-common.c: Include c-common.h earlier.
1355 (struct reason_option_codes_t): Delete.
1356 (c_option_controlling_cpp_error): Prefix global type and struct
1357 with cpp_.
1358
1ef33fd4
MLI
13592014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1360
1361 * c.opt (Wnormalized): New.
1362 (Wnormalized=): Use Enum and Reject Negative.
1363 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
1364
66bb34c0
JM
13652014-09-08 Joseph Myers <joseph@codesourcery.com>
1366
1367 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
1368 digits of floating-point modes if -fbuilding-libgcc.
1369
53d68b9f
JM
13702014-09-05 Joseph Myers <joseph@codesourcery.com>
1371
1372 * c-cppbuiltin.c (c_cpp_builtins): Also define
1373 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
1374 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
1375 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
1376 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
1377 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
1378 __LIBGCC_STACK_GROWS_DOWNWARD__,
1379 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
1380 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
1381 __LIBGCC_DWARF_FRAME_REGISTERS__,
1382 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
1383 __LIBGCC_STACK_POINTER_REGNUM__ and
1384 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
1385 (builtin_define_with_value): Handle backslash-escaping in string
1386 macro values.
1387
f65586dc
RB
13882014-09-05 Richard Biener <rguenther@suse.de>
1389
1390 PR middle-end/63148
1391 * c-format.c (check_format_arg): Properly handle
1392 effectively signed POINTER_PLUS_EXPR offset.
1393
2b71f4a4
MLI
13942014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1395
1396 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
1397 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
1398 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
1399 and Init.
1400 * c-opts.c (c_common_handle_option): Do not handle here.
1401 (sanitize_cpp_opts): Likewise.
1402 * c-common.c (struct reason_option_codes_t): Handle
1403 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
1404
d2e4feca
MP
14052014-09-03 Marek Polacek <polacek@redhat.com>
1406
1407 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
1408
9a771876
JJ
14092014-09-02 Jakub Jelinek <jakub@redhat.com>
1410 Balaji V. Iyer <balaji.v.iyer@intel.com>
1411 Igor Zamyatin <igor.zamyatin@intel.com>
1412
1413 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
1414 * c-common.c (c_common_reswords): Added _Cilk_for.
1415 * c-common.h (enum rid): Added RID_CILK_FOR.
1416 (cilk_for_number_of_iterations): Add declaration.
1417 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
1418 CILK_FOR.
1419 * c-pragma.c (init_pragma): Register "grainsize" pragma.
1420 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
1421
81b5d104
MLI
14222014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1423
1424 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
1425 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
1426 Wundef): Use CPP, Var and Init.
1427 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
1428
b753b37b
MLI
14292014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1430
1431 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
1432 * c-opts.c (c_common_handle_option): Do not handle here.
1433
028aee17
JM
14342014-08-25 Jason Merrill <jason@redhat.com>
1435
1436 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
1437 -std=c++14 and -std=gnu++14, rather than the reverse.
1438 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
1439 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
1440 * c-common.h (cxx_dialect): Remove cxx1y.
1441
e4276ba5
ESR
14422014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
1443
1444 * c-common.h (enum cxx_dialect): Add cxx14.
1445 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
1446 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
1447 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
1448
a545cacd
JM
14492014-08-22 Jason Merrill <jason@redhat.com>
1450
1451 * c.opt (std=gnu++17): Fix alias.
1452
59ea0364
MP
14532014-08-22 Marek Polacek <polacek@redhat.com>
1454
1455 PR c++/62199
1456 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
1457 check for vector types. Drop LHS argument.
1458 * c-common.h (warn_logical_not_parentheses): Adjust.
1459
596e808c
MLI
14602014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1461
1462 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
1463 (Wmultichar): Likewise.
1464 (Wdate-time): Use C-family languages instead of Common. Use CPP
1465 and Var.
1466 * c-opts.c (c_common_handle_option): Do not handle the above
1467 options here.
1468 (sanitize_cpp_opts): Likewise.
1469
18767f65
MLI
14702014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
1471
1472 PR fortran/44054
1473 * c-opts.c: Include tree-diagnostics.h.
1474 (c_diagnostic_finalizer): New.
1475 (c_common_initialize_diagnostics): Use it.
1476
b4413594
MLI
14772014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1478
1479 PR preprocessor/51303
1480 * c-common.c (struct reason_option_codes_t option_codes):
1481 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
1482
43f9a13c
MLI
14832014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1484
1485 PR c/60975
1486 PR c/53063
1487 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
1488 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
1489 (c_common_post_options): Call init_global_opts_from_cpp.
1490 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
1491
04159acf
MP
14922014-08-19 Marek Polacek <polacek@redhat.com>
1493
1494 PR c++/62153
1495 * c-common.c (maybe_warn_bool_compare): New function.
1496 * c-common.h (maybe_warn_bool_compare): Declare.
1497 * c.opt (Wbool-compare): New option.
1498
35aff4fb
MP
14992014-08-19 Marek Polacek <polacek@redhat.com>
1500
1501 * c.opt (Wc99-c11-compat): New option.
1502
177cce46
MP
15032014-08-19 Marek Polacek <polacek@redhat.com>
1504
1505 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
1506 to warn_c90_c99_compat.
1507 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
1508 to -1.
1509
6ae9194f
MLI
15102014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
1511 Steven Bosscher <steven@gcc.gnu.org>
1512
1513 PR c/52952
1514 * c-format.c: Add extra_arg_loc and format_string_loc to struct
1515 format_check_results.
1516 (check_function_format): Use true and add comment for boolean
1517 argument.
1518 (finish_dollar_format_checking): Use explicit location when warning.
1519 (check_format_info): Likewise.
1520 (check_format_arg): Set extra_arg_loc and format_string_loc.
1521 (check_format_info_main): Use explicit location when warning.
1522 (check_format_types): Pass explicit location.
1523 (format_type_warning): Likewise.
1524
8e54f6d3
MLI
15252014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1526
1527 PR fortran/44054
1528 * c-format.c: Handle Fortran flags.
1529
cd4e76fc
IZ
15302014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
1531
1532 PR other/61962
1533 * array-notation-common.c (find_rank): Added handling for other
1534 types of references.
1535
f3bede71
MP
15362014-08-10 Marek Polacek <polacek@redhat.com>
1537
1538 PR c/51849
1539 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
1540 * c.opt (Wc90-c99-compat): Add option.
1541
9f25a338
TS
15422014-08-07 Trevor Saunders <tsaunders@mozilla.com>
1543
1544 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
1545
62e4eb35
MP
15462014-08-03 Marek Polacek <polacek@redhat.com>
1547
1548 * c-common.c (check_case_value): Add location_t parameter. Use it.
1549 (c_add_case_label): Pass loc to check_case_value.
1550
b787e7a2
TS
15512014-08-02 Trevor Saunders <tsaunders@mozilla.com>
1552
1553 * cilk.c: Use hash_map instead of pointer_map.
1554
6e2830c3
TS
15552014-08-02 Trevor Saunders <tsaunders@mozilla.com>
1556
1557 * c-gimplify.c: Use hash_set instead of pointer_set.
1558
a7ee52fb
IZ
15592014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
1560
1561 PR middle-end/61455
1562 * array-notation-common.c (extract_array_notation_exprs): Handling
1563 of DECL_EXPR added.
1564
944fa280
JJ
15652014-08-01 Jakub Jelinek <jakub@redhat.com>
1566
1567 * c-common.h (min_align_of_type): Removed prototype.
1568 * c-common.c (min_align_of_type): Removed.
1569 * c-ubsan.h (ubsan_maybe_instrument_reference,
1570 ubsan_maybe_instrument_member_call): New prototypes.
1571 * c-ubsan.c: Include stor-layout.h and builtins.h.
1572 (ubsan_maybe_instrument_reference_or_call,
1573 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
1574 functions.
1575
b4dfdc11
MG
15762014-07-31 Marc Glisse <marc.glisse@inria.fr>
1577
1578 PR c++/60517
1579 * c.opt (-Wreturn-local-addr): Move to common.opt.
1580
a41844e5
JM
15812014-07-30 Jason Merrill <jason@redhat.com>
1582
1583 PR c++/61659
1584 PR c++/61687
1585 Revert:
1586 * c.opt (-fuse-all-virtuals): New.
1587
976d5a22
TT
15882014-07-30 Tom Tromey <tromey@redhat.com>
1589
1590 PR c/59855
1591 * c.opt (Wdesignated-init): New option.
1592 * c-common.c (c_common_attribute_table): Add "designated_init".
1593 (handle_designated_init): New function.
1594
cdc94aca
MP
15952014-07-24 Marek Polacek <polacek@redhat.com>
1596
1597 PR c/57653
1598 * c-opts.c (c_finish_options): If -imacros is in effect, return.
1599
f41373b6
DS
16002014-07-16 Dodji Seketeli <dodji@redhat.com>
1601
1602 PR preprocessor/60723 - missing system-ness marks for macro tokens
1603 * c-ppoutput.c (struct print::prev_was_system_token): New data
1604 member.
1605 (init_pp_output): Initialize it.
1606 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
1607 (do_line_change): Return a flag saying if a line marker was
1608 emitted or not.
1609 (scan_translation_unit): Detect if the system-ness of the token we
1610 are about to emit is different from the one of the previously
1611 emitted token. If so, emit a line marker. Avoid emitting useless
1612 adjacent line markers. Avoid emitting line markers for tokens
1613 originating from the expansion of built-in macros.
1614 (scan_translation_unit_directives_only): Adjust.
1615
4d661eaa
MP
16162014-07-15 Marek Polacek <polacek@redhat.com>
1617
1618 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
1619 TYPE_MAX_VALUE is NULL.
1620
b108f48f
JJ
16212014-07-14 Jakub Jelinek <jakub@redhat.com>
1622
1623 PR middle-end/61294
1624 * c.opt (Wmemset-transposed-args): New warning.
1625
c0221884
JM
16262014-07-10 Jason Merrill <jason@redhat.com>
1627
1628 PR c++/61659
1629 PR c++/61687
1630 * c.opt (-fuse-all-virtuals): New.
1631
63dfbb95
RB
16322014-07-09 Richard Biener <rguenther@suse.de>
1633
1634 PR c-family/61741
1635 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1636 using unsigned arithmetic if overflow does not wrap instead of
1637 if overflow is undefined.
1638
773ec47f
MP
16392014-07-06 Marek Polacek <polacek@redhat.com>
1640
1641 PR c/6940
1642 * c.opt (Wsizeof-array-argument): New option.
1643
00a7ba58
JJ
16442014-07-03 Jakub Jelinek <jakub@redhat.com>
1645
1646 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
1647 comments->count <= 1, as comments->entries might be NULL.
1648
52ec0ea3
MP
16492014-07-01 Marek Polacek <polacek@redhat.com>
1650
1651 * c.opt (Wint-conversion): New option.
1652
d5c3d343
MP
16532014-07-01 Marek Polacek <polacek@redhat.com>
1654
1655 PR c/58286
1656 * c.opt (Wincompatible-pointer-types): New option.
1657
6e7ceb17
PC
16582014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
1659
1660 PR c++/51400
1661 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
1662 Do not discard TYPE_QUALS of type.
1663
da73100b
JM
16642014-06-26 Jason Merrill <jason@redhat.com>
1665
1666 * c-common.h (enum cxx_dialect): Add cxx1z.
1667 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
1668 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
1669
08eedf75
TJ
16702014-06-26 Teresa Johnson <tejohnson@google.com>
1671
1672 * c-common.h (get_dump_info): Declare.
1673 * c-gimplify.c (c_genericize): Use saved dump files.
1674 * c-opts.c (c_common_parse_file): Begin and end dumps
1675 once around parsing invocation.
1676 (get_dump_info): New function.
1677
7b56b2f8
MP
16782014-06-23 Marek Polacek <polacek@redhat.com>
1679 Andrew MacLeod <amacleod@redhat.com>
1680
1681 PR c/61553
1682 * c-common.c (get_atomic_generic_size): Don't segfault if the
1683 type doesn't have a size.
1684
0e37a2f3
MP
16852014-06-20 Marek Polacek <polacek@redhat.com>
1686
1687 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
1688 (ubsan_walk_array_refs_r): New function.
1689 (c_genericize): Instrument array bounds.
1690 * c-ubsan.c: Include "internal-fn.h".
1691 (ubsan_instrument_division): Mark instrumented arrays as having
1692 side effects. Adjust ubsan_type_descriptor call.
1693 (ubsan_instrument_shift): Likewise.
1694 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
1695 (ubsan_instrument_bounds): New function.
1696 (ubsan_array_ref_instrumented_p): New function.
1697 (ubsan_maybe_instrument_array_ref): New function.
1698 * c-ubsan.h (ubsan_instrument_bounds): Declare.
1699 (ubsan_array_ref_instrumented_p): Declare.
1700 (ubsan_maybe_instrument_array_ref): Declare.
1701
17022014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
1703
1704 PR lto/61123
1705 * c.opt (fshort-enums): Add to LTO.
1706 * c.opt (fshort-wchar): Likewise.
1707
5c3d09f7
MP
17082014-06-16 Marek Polacek <polacek@redhat.com>
1709
1710 PR c/60439
1711 * c.opt (Wswitch-bool): Add Var.
1712
9cf32741
JJ
17132014-06-12 Jakub Jelinek <jakub@redhat.com>
1714
1715 PR middle-end/61486
1716 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
1717 #pragma omp target teams or
1718 #pragma omp {,target }teams distribute simd.
1719
62984918
JM
17202014-06-12 Jason Merrill <jason@redhat.com>
1721
1722 * c.opt (Wabi=, fabi-compat-version): New.
1723 * c-opts.c (c_common_handle_option): Handle -Wabi=.
1724 (c_common_post_options): Handle flag_abi_compat_version default.
1725 Disallow -fabi-compat-version=1.
1726 * c-common.h (abi_version_crosses): New.
1727
f961457f
JH
17282014-06-11 Jan Hubicka <hubicka@ucw.cz>
1729
adfac8df 1730 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
1731 section names that are no longer trees.
1732
92d28cbb
JJ
17332014-06-10 Jakub Jelinek <jakub@redhat.com>
1734
1735 PR fortran/60928
1736 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
1737 (omp_pragmas): ... back here.
1738
742938c9
MP
17392014-06-05 Marek Polacek <polacek@redhat.com>
1740
1741 PR c/49706
1742 * c-common.c (warn_logical_not_parentheses): New function.
1743 * c-common.h (warn_logical_not_parentheses): Declare.
1744 * c.opt (Wlogical-not-parentheses): New option.
1745
9d548dfb
MP
17462014-06-04 Marek Polacek <polacek@redhat.com>
1747
1748 PR c/30020
1749 * c-common.c (check_case_bounds): Add location parameter.
1750 Use it.
1751 (c_add_case_label): Pass loc to check_case_bounds.
1752
fedfecef
MP
17532014-06-03 Marek Polacek <polacek@redhat.com>
1754
1755 PR c/60439
1756 * c.opt (Wswitch-bool): New option.
1757
f6a7cffc
TS
17582014-05-22 Thomas Schwinge <thomas@codesourcery.com>
1759
040d18b6
TS
1760 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
1761 Remove prototypes.
1762 (record_types_used_by_current_var_decl): Move prototype to where
1763 it belongs.
1764
f6a7cffc
TS
1765 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
1766 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
1767 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
1768
632f2871
RS
17692014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1770
1771 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
1772 * c-common.c (c_common_nodes_and_builtins): Don't initialize
1773 void_zero_node.
1774 * c-pretty-print.c (pp_c_void_constant): New function.
1775 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
1776 (c_pretty_printer::expression): Handle VOID_CST.
1777 * cilk.c (extract_free_variables): Likewise.
1778 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
1779 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
1780
766090c2
TS
17812014-05-17 Trevor Saunders <tsaunders@mozilla.com>
1782
1783 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
1784 * c-pragma.c (push_alignment): Adjust.
1785 (handle_pragma_push_options): Likewise.
1786
661a0813
MP
17872014-05-09 Marek Polacek <polacek@redhat.com>
1788
1789 PR c/50459
1790 * c-common.c (check_user_alignment): Return -1 if alignment is error
1791 node.
1792 (handle_aligned_attribute): Don't call default_conversion on
1793 FUNCTION_DECLs.
1794 (handle_vector_size_attribute): Likewise.
1795 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
1796 (handle_sentinel_attribute): Call default_conversion and allow even
1797 integral types as an argument.
1798
2793eeab
MP
17992014-05-08 Marek Polacek <polacek@redhat.com>
1800
1801 PR c/61053
1802 * c-common.c (min_align_of_type): New function factored out from...
1803 (c_sizeof_or_alignof_type): ...here.
1804 * c-common.h (min_align_of_type): Declare.
1805
f827930a
MP
18062014-05-08 Marek Polacek <polacek@redhat.com>
1807
1808 PR c/61077
1809 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
1810 parameter type of main.
1811
ca49b74e
DD
18122014-05-07 DJ Delorie <dj@redhat.com>
1813
1814 * c-cppbuiltin.c (print_bits_of_hex): New.
1815 (builtin_define_type_minmax): Print values using hex so as not to
1816 require a pre-computed list of string values.
1817
1d60af08
KZ
18182014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
1819 Mike Stump <mikestump@comcast.net>
1820 Richard Sandiford <rdsandiford@googlemail.com>
1821
1822 * c-ada-spec.c: Include wide-int.h.
1823 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
1824 (dump_generic_ada_node): Use wide-int interfaces.
1825 * c-common.c: Include wide-int-print.h.
1826 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
1827 (pointer_int_sum): Use wide-int interfaces.
1828 (c_common_nodes_and_builtins): Use make_int_cst.
1829 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
1830 (handle_alloc_size_attribute): Use wide-int interfaces.
1831 (get_nonnull_operand): Likewise.
1832 * c-format.c (get_constant): Use tree_fits_uhwi_p.
1833 * c-lex.c: Include wide-int.h.
1834 (narrowest_unsigned_type): Take a widest_int rather than two
1835 HOST_WIDE_INTs.
1836 (narrowest_signed_type): Likewise.
1837 (interpret_integer): Update accordingly. Use wide-int interfaces.
1838 (lex_charconst): Use wide-int interfaces.
1839 * c-pretty-print.c: Include wide-int.h.
1840 (pp_c_integer_constant): Use wide-int interfaces.
1841 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
1842 INT_CST_LT_UNSIGNED.
1843
b15458be
RB
18442014-05-06 Richard Biener <rguenther@suse.de>
1845
1846 * c-opts.c (c_common_post_options): For -freestanding,
1847 -fno-hosted and -fno-builtin disable pattern recognition
1848 if not enabled explicitely.
1849
6577374e
MP
18502014-05-02 Marek Polacek <polacek@redhat.com>
1851
1852 * c.opt (Wsizeof-pointer-memaccess): Describe option.
1853
d00887e8
MP
18542014-05-01 Marek Polacek <polacek@redhat.com>
1855
1856 PR c/43245
1857 * c.opt (Wdiscarded-qualifiers): Add.
1858
f8ed5150
MP
18592014-04-30 Marek Polacek <polacek@redhat.com>
1860
1861 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
1862 INT_MIN / -1 sanitization only for integer types.
1863
45484dcf
MP
18642014-04-25 Marek Polacek <polacek@redhat.com>
1865
1866 PR c/18079
1867 * c-common.c (handle_noinline_attribute): Warn if the attribute
1868 conflicts with always_inline attribute.
1869 (handle_always_inline_attribute): Warn if the attribute conflicts
1870 with noinline attribute.
1871
38e514c0
MP
18722014-04-25 Marek Polacek <polacek@redhat.com>
1873
1874 PR c/60156
1875 * c-common.c (check_main_parameter_types): Warn about variadic main.
1876
44875f92
MS
18772014-04-24 Mike Stump <mikestump@comcast.net>
1878
1879 * c.opt (Wshadow-ivar): Default to on.
1880
dcaaa5a0
DP
18812014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
1882
1883 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
1884
c07d7c02
MP
18852014-04-23 Marek Polacek <polacek@redhat.com>
1886
1887 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
1888
1c33c9b7
JJ
18892014-04-22 Jakub Jelinek <jakub@redhat.com>
1890
1891 PR sanitizer/60275
1892 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
1893 if flag_sanitize_undefined_trap_on_error.
1894 (ubsan_instrument_division, ubsan_instrument_shift,
1895 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
1896 if !flag_sanitize_recover.
1897
793c625f
MG
18982014-04-22 Marc Glisse <marc.glisse@inria.fr>
1899
1900 PR libstdc++/43622
1901 * c-common.c (registered_builtin_types): Make non-static.
1902 * c-common.h (registered_builtin_types): Declare.
1903
b0f1bf36
RB
19042014-04-14 Richard Biener <rguenther@suse.de>
1905 Marc Glisse <marc.glisse@inria.fr>
1906
1907 PR c/60819
1908 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
1909 apply may-alias the scalar pointer type when applicable.
1910
3b07fa4a
IZ
19112014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
1912
1913 PR middle-end/60467
1914 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
1915 as possible argument for Cilk_spawn.
1916
cbbd2b1c
TB
19172014-04-11 Tobias Burnus <burnus@net-b.de>
1918
1919 PR c/60194
1920 * c.opt (Wformat-signedness): Add
1921 * c-format.c(check_format_types): Use it.
1922
6415bd5d
JM
19232014-04-11 Jason Merrill <jason@redhat.com>
1924
1925 PR c++/57926
1926 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
1927 default_conversion for an array argument.
1928
6525783a
MP
19292014-04-08 Marek Polacek <polacek@redhat.com>
1930
1931 PR sanitizer/60745
1932 * c-ubsan.c: Include asan.h.
1933 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
1934
880a467b
NS
19352014-04-03 Nathan Sidwell <nathan@codesourcery.com>
1936
1937 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
1938
7b59ff2d
MP
19392014-04-02 Marek Polacek <polacek@redhat.com>
1940
1941 * c-common.h (c_expand_expr): Remove declaration.
1942
8edbfaa6
JJ
19432014-03-28 Jakub Jelinek <jakub@redhat.com>
1944
1945 PR c++/60689
1946 * c-common.c (add_atomic_size_parameter): When creating new
1947 params vector, push the size argument first.
1948
07d72e1d
JJ
19492014-03-26 Jakub Jelinek <jakub@redhat.com>
1950
1951 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1952 ubsan_instrument_vla, ubsan_instrument_return): Adjust
1953 ubsan_create_data callers.
1954
b35e0fa0
JJ
19552014-03-22 Jakub Jelinek <jakub@redhat.com>
1956
1957 PR debug/60603
1958 * c-opts.c (c_finish_options): Restore cb_file_change call to
1959 <built-in>.
1960
39a1ebb3
JJ
19612014-03-13 Jakub Jelinek <jakub@redhat.com>
1962
1963 PR middle-end/36282
1964 * c-pragma.c (apply_pragma_weak): Only look at
1965 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
1966 DECL_ASSEMBLER_NAME_SET_P (decl).
1967 (maybe_apply_pending_pragma_weaks): Exit early if
1968 vec_safe_is_empty (pending_weaks) rather than only when
1969 !pending_weaks.
1970 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
1971 set assembler name back to NULL afterwards.
1972
a07f6ed2
JM
19732014-03-11 Jason Merrill <jason@redhat.com>
1974
1975 * c.opt: Add -std=gnu++14.
1976
75b107f5
IB
19772014-03-11 Ian Bolton <ian.bolton@arm.com>
1978
1979 * c-opts.c (c_common_post_options): Don't override
1980 -ffp-contract=fast if unsafe-math-optimizations is on.
1981
f42c637e
PM
19822014-03-08 Paulo Matos <paulo@matos-sorge.com>
1983
1984 * c.opt: Enable LTO FE for fshort-double.
1985
70e24808
JM
19862014-03-07 Jason Merrill <jason@redhat.com>
1987
1988 * c.opt: Add -std=c++14.
1989
3af9c5e9
MP
19902014-03-06 Marek Polacek <polacek@redhat.com>
1991
1992 PR c/60197
1993 * cilk.c (contains_cilk_spawn_stmt): New function.
1994 (contains_cilk_spawn_stmt_walker): Likewise.
1995 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
1996 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
1997
b3bdf019
JJ
19982014-03-03 Jakub Jelinek <jakub@redhat.com>
1999
2000 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
2001 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
2002 even when flag_preprocess_only.
2003
ca7e759d
JM
20042014-02-26 Jason Merrill <jason@redhat.com>
2005
2006 PR c++/59231
2007 PR c++/11586
2008 * c-common.c (shorten_compare): Don't check
2009 c_inhibit_evaluation_warnings.
2010
28e41874
JJ
20112014-02-19 Jakub Jelinek <jakub@redhat.com>
2012
cca615af
JJ
2013 PR c/37743
2014 * c-common.c (c_common_nodes_and_builtins): When initializing
2015 c_uint{16,32,64}_type_node, also set corresponding
2016 uint{16,32,64}_type_node to the same value.
2017
28e41874
JJ
2018 PR c++/60267
2019 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
2020 for PRAGMA_IVDEP if flag_preprocess_only.
2021
c2bf53a1
JJ
20222014-02-12 Jakub Jelinek <jakub@redhat.com>
2023
2024 PR c/60101
2025 * c-common.c (merge_tlist): If copy is true, call new_tlist,
2026 if false, add ADD itself, rather than vice versa.
2027 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
2028 copy. For SAVE_EXPR, only call merge_tlist once.
2029
8fcbce72
JJ
20302014-02-08 Jakub Jelinek <jakub@redhat.com>
2031
2032 PR middle-end/60092
2033 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
2034 and tree_to_uhwi.
2035 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
2036 functions.
2037 (c_common_attribute_table): Add alloc_align and assume_aligned
2038 attributes.
2039
0a756a3f
MP
20402014-02-06 Marek Polacek <polacek@redhat.com>
2041
2042 PR c/60087
2043 * c-common.c (warn_for_sign_compare): Call warning_at with location
2044 instead of warning.
2045
7ec4847a
MP
20462014-02-05 Marek Polacek <polacek@redhat.com>
2047
2048 PR c/53123
2049 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
2050 statement.
2051
66f20604
MP
20522014-02-04 Marek Polacek <polacek@redhat.com>
2053
2054 PR c/60036
2055 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
2056 SAVE_EXPR.
2057
5d77fb19
MG
20582014-02-03 Marc Glisse <marc.glisse@inria.fr>
2059
2060 PR c++/53017
2061 PR c++/59211
2062 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
2063 handle_vector_size_attribute, handle_nonnull_attribute): Call
2064 default_conversion on the attribute argument.
2065 (handle_nonnull_attribute): Increment the argument number.
2066
81e5eca8
MP
20672014-01-31 Marek Polacek <polacek@redhat.com>
2068
2069 PR c/59963
2070 * c-common.c (add_atomic_size_parameter): Pass vNULL to
2071 build_function_call_vec.
2072 (resolve_overloaded_builtin): Likewise.
2073 * c-common.h (build_function_call_vec): Adjust declaration.
2074
68fca595
MP
20752014-01-30 Marek Polacek <polacek@redhat.com>
2076
2077 PR c/59940
2078 * c-common.h (unsafe_conversion_p): Adjust declaration.
2079 (warnings_for_convert_and_check): Likewise.
2080 (convert_and_check): Likewise.
2081 * c-common.c (unsafe_conversion_p): Add location parameter. Call
2082 expansion_point_location_if_in_system_header on it.
2083 (warnings_for_convert_and_check): Add location parameter. Call
2084 expansion_point_location_if_in_system_header on it. Use it.
2085 (convert_and_check): Add location parameter. Use it.
2086 (conversion_warning): Likewise.
2087 (c_add_case_label): Adjust convert_and_check calls.
2088 (scalar_to_vector): Adjust unsafe_conversion_p calls.
2089
b72271b9
BI
20902014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
2091
2092 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
2093 flag_cilkplus.
2094 * c-pragma.c (init_pragma): Likewise.
2095 * c.opt: Likewise.
2096
393e8e8b
MP
20972014-01-23 Marek Polacek <polacek@redhat.com>
2098
2099 PR c/59846
2100 * c-common.c (shorten_compare): Add location_t parameter.
2101 * c-common.h (shorten_binary_op): Adjust declaration.
2102
f04dda30
MP
21032014-01-23 Marek Polacek <polacek@redhat.com>
2104
2105 PR c/58346
2106 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
2107 * c-common.h: Declare it.
2108
621955cb
EB
21092014-01-20 Eric Botcazou <ebotcazou@adacore.com>
2110
2111 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
2112 * c-ada-spec.c (dump_ads): Likewise.
2113 (cpp_check): Likewise.
2114 (dump_ada_specs): Likewise.
2115
21162014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
2117
2118 PR c++/49718
2119 * c-common.c (handle_no_instrument_function_attribute): Allow
2120 no_instrument_function attribute in class member
2121 definition/declaration.
2122
241f845a
JJ
21232014-01-15 Jakub Jelinek <jakub@redhat.com>
2124
2125 PR c/58943
2126 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
2127 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
2128 being COMPOUND_EXPR.
2129 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
2130 operand a SAVE_EXPR and second MODIFY_EXPR.
2131
e83b8e2e
JJ
21322014-01-09 Jakub Jelinek <jakub@redhat.com>
2133
2134 PR target/58115
2135 * c-pch.c (c_common_write_pch): Call
2136 prepare_target_option_nodes_for_pch.
2137
23a5b65a
RS
21382014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2139
2140 Update copyright years
2141
f9030485
RS
21422014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2143
2144 * array-notation-common.c, c-cilkplus.c: Use the standard form for
2145 the copyright notice.
2146
f2aa696b
EB
21472013-12-28 Eric Botcazou <ebotcazou@adacore.com>
2148
2149 * c-ada-spec.c (print_constructor): New function.
2150 (print_destructor): Retrieve the origin of the destructor.
2151 (print_ada_declaration): Revamp handling of constructors/destructors.
2152
1f26ac87
JM
21532013-12-23 Stuart Hastings <stuart@apple.com>
2154 Bill Maddox <maddox@google.com>
2155 Jason Merrill <jason@redhat.com>
2156
2157 * c.opt: Add -fdeclone-ctor-dtor.
2158 * c-opts.c (c_common_post_options): Default to on iff -Os.
2159
41958c28
BI
21602013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
2161
2162 * c-common.c (c_common_attribute_table): Added "cilk simd function"
2163 attribute.
2164 * c-pragma.h (enum pragma_cilk_clause): Remove.
2165 (enum pragma_omp_clause): Added the following fields:
2166 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
2167 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
2168 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
2169 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
2170 PRAGMA_CILK_CLAUSE_UNIFORM.
2171
2172
12893402
BI
21732013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
2174
2175 * cilk.c (cilk_outline): Made this function non-static.
2176 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
2177 (create_cilk_wrapper): Added a new parameter: a function pointer.
2178 (c_install_body_w_frame_cleanup): Remove
2179 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
2180 * c-common.h (cilk_outline): New prototype.
2181 (gimplify_cilk_spawn): Removed two parameters.
2182 (cilk_install_body_with_frame_cleanup): New prototype.
2183 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
2184 CILK_SPAWN_STMT case.
2185
085b42ed
BS
21862013-12-11 Bernd Schmidt <bernds@codesourcery.com>
2187
2ce064c3
BS
2188 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
2189
085b42ed
BS
2190 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
2191 (int_array_type_node): Remove.
2192 * c-common.c (c_common_nodes_and_builtins): Don't build it.
2193
9e36c9ed
MP
21942013-12-05 Marek Polacek <polacek@redhat.com>
2195
2196 PR c/52023
2197 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
2198 [ADJUST_FIELD_ALIGN].
2199
296674db
JM
22002013-12-04 Joseph Myers <joseph@codesourcery.com>
2201
2202 PR c/52023
2203 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
2204 and check field alignment if set.
2205 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
2206 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
2207
31e071ae
MP
22082013-12-04 Jakub Jelinek <jakub@redhat.com>
2209 Marek Polacek <polacek@redhat.com>
2210
2211 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
2212 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
2213
d7947e19
L
22142013-11-29 H.J. Lu <hongjiu.lu@intel.com>
2215
2216 PR c/59309
2217 * cilk.c (gimplify_cilk_spawn): Properly handle function without
2218 arguments.
2219
fad7652e
JJ
22202013-11-29 Jakub Jelinek <jakub@redhat.com>
2221
2222 PR c/59280
2223 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
2224 goto invalid. If it is error_mark_node, don't issue further
2225 diagnostics.
2226
8b5e1202
SO
22272013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
2228
2229 * c.opt (Wopenmp-simd): New.
2230
0a508bb6
JJ
22312013-11-22 Jakub Jelinek <jakub@redhat.com>
2232
2233 * c-ubsan.h (ubsan_instrument_return): New prototype.
2234 * c-ubsan.c (ubsan_instrument_return): New function.
2235
2fb9a547
AM
22362013-11-22 Andrew MacLeod <amacleod@redhat.com>
2237
2238 * c-common.c: Add required include files from gimple.h.
2239 * c-gimplify.c: Likewise
2240 * cilk.c: Likewise
2241
8400e75e
DM
22422013-11-22 David Malcolm <dmalcolm@redhat.com>
2243
2244 * c-common.c (unsafe_conversion_p): Remove use of
2245 EXPR_LOC_OR_HERE macro.
2246 (conversion_warning): Likewise.
2247 (warnings_for_convert_and_check): Likewise.
2248 (warn_for_collisions_1): Likewise.
2249 (shorten_compare): Likewise, and remove use of in_system_header
2250 macro, using the location from the former.
2251 * c-lex.c (dump_one_header): Remove use of input_filename macro.
2252 (cb_def_pragma): Remove use of in_system_header macro.
2253 (lex_string): Likewise.
2254 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
2255
eb1ce453
KZ
22562013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2257 Mike Stump <mikestump@comcast.net>
2258 Richard Sandiford <rdsandiford@googlemail.com>
2259
2260 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
2261 instead of TREE_INT_CST_LOW, in cases where there is a protecting
2262 tree_fits_shwi_p or tree_fits_uhwi_p.
2263 (dump_generic_ada_node): Likewise.
2264 * c-format.c (check_format_arg): Likewise.
2265 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2266
6b3b8c27
KZ
22672013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2268
2269 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
2270
49b0aa18
JC
22712013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
2272
2273 PR c/53001
2274 * c-common.c (unsafe_conversion_p): Make this function
2275 return an enumeration with more detail.
2276 (conversion_warning): Use the new return type of
2277 unsafe_conversion_p to separately warn either about conversions
2278 that lower floating point number precision or about the other
2279 kinds of conversions.
2280 * c-common.h (enum conversion_safety): New enumeration.
2281 (unsafe_conversion_p): switching return type to
2282 conversion_safety enumeration.
2283 * c.opt: Adding new warning -Wfloat-conversion and
2284 enabling it with -Wconversion.
2285
b826515a
BS
22862013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
2287
2288 * c-opts.c: Include plugin.h.
2289 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
2290
b9a55b13
MP
22912013-11-19 Marek Polacek <polacek@redhat.com>
2292
2293 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
2294 call.
2295 (ubsan_instrument_shift): Likewise.
2296 (ubsan_instrument_vla): Likewise.
2297
7d362f6c
RS
22982013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2299
2300 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
2301 cast to unsigned type.
2302
386b1f1f
RS
23032013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2304
2305 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
2306 tree_low_cst.
2307 (complete_array_type): Update comment to refer to tree_to_[su]hwi
2308 rather than tree_low_cst.
2309
ae7e9ddd
RS
23102013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2311
2312 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
2313 tree_to_uhwi throughout.
2314
9439e9a1
RS
23152013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2316
2317 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
2318 tree_low_cst (..., 0) with tree_to_shwi throughout.
2319
cc269bb6
RS
23202013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2321
2322 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
2323 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
2324
9541ffee
RS
23252013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2326
2327 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
2328 host_integerp (..., 0) with tree_fits_shwi_p throughout.
2329
c02065fc
AH
23302013-11-15 Aldy Hernandez <aldyh@redhat.com>
2331
2332 * c-cilkplus.c: New file.
2333 * c-common.c (readonly_error): Add location argument.
2334 * c-common.h (readonly_error): Same.
2335 (c_finish_cilk_clauses): Protoize.
2336 (c_check_cilk_loop): Same.
2337 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
2338 Do not fail on error_mark_node.
2339 Abstract increment canonicalization to here...
2340 (c_omp_for_incr_canonicalize_ptr): New.
2341 c-pragma.c (init_pragma): Register "simd" pragma.
2342 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
2343 (enum pragma_cilk_clause): New.
2344
9cc65f15
RS
23452013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
2346
2347 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
2348 wchar_type and host_integerp checks.
2349
18f429e2
AM
23502013-11-14 Andrew MacLeod <amacleod@redhat.com>
2351
2352 * c-common.c: Likewise.
2353 * c-gimplify.c: Likewise.
2354 * cilk.c: Likewise.
2355
d8a2d370
DN
23562013-11-14 Diego Novillo <dnovillo@google.com>
2357
2358 * c-common.c: Include fold-const.h.
2359 Include stor-layout.h.
2360 Include calls.h.
2361 Include stringpool.h.
2362 Include attribs.h.
2363 Include varasm.h.
2364 Include trans-mem.h.
2365 * c-cppbuiltin.c: Include stor-layout.h.
2366 Include stringpool.h.
2367 * c-format.c: Include stringpool.h.
2368 * c-lex.c: Include stringpool.h.
2369 Include stor-layout.h.
2370 * c-pragma.c: Include stringpool.h.
2371 Include attribs.h.
2372 Include varasm.h.
2373 Include gcc-symtab.h.
2374 * c-pretty-print.c: Include stor-layout.h.
2375 Include attribs.h.
2376 * cilk.c: Include stringpool.h.
2377 Include calls.h.
2378
38b7bc7f
JM
23792013-11-13 Joseph Myers <joseph@codesourcery.com>
2380
2381 * c-common.h (enum rid): Add RID_AUTO_TYPE.
2382 * c-common.c (c_common_reswords): Add __auto_type.
2383 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
2384
45b0be94
AM
23852013-11-12 Andrew MacLeod <amacleod@redhat.com>
2386
18f429e2
AM
2387 * c-common.c: Include gimplify.h.
2388 * c-gimplify.c: Likewise.
2389 * cilk.c: Likewise.
2390 * c-omp.c: Include gimple-expr.h instead of gimple.h.
2391 * c-ubsan.c: Don't include gimple.h.
45b0be94 2392
582d9b50
JM
23932013-11-12 Joseph Myers <joseph@codesourcery.com>
2394
2395 * c-common.c (c_common_reswords): Add _Thread_local.
2396
6b28e197
JM
23972013-11-09 Joseph Myers <joseph@codesourcery.com>
2398
2399 * c-common.c (atomic_size_supported_p): New function.
2400 (resolve_overloaded_atomic_exchange)
2401 (resolve_overloaded_atomic_compare_exchange)
2402 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
2403 Use it instead of comparing size with a local list of sizes.
2404
267bac10
JM
24052013-11-07 Andrew MacLeod <amacleod@redhat.com>
2406 Joseph Myers <joseph@codesourcery.com>
2407
2408 * c-common.h (enum rid): Add RID_ATOMIC.
2409 * c-common.c (c_common_reswords): Add _Atomic.
2410 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
2411 (keyword_is_type_qualifier): Accept RID_ATOMIC.
2412 * c-format.c (check_format_types): Check for extra _Atomic
2413 qualifiers in format argument.
2414 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
2415 (pp_c_type_qualifier_list): Mention _Atomic in comment.
2416
5157b91e
TB
24172013-11-06 Tobias Burnus <burnus@net-b.de>
2418
2419 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
2420
6dbe0958
JM
24212013-11-06 Joseph Myers <joseph@codesourcery.com>
2422
2423 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
2424 standards modes.
2425 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
2426 to mean lack of IEEE 754 support.
2427
e8ff5196
TB
24282013-11-05 Tobias Burnus <burnus@net-b.de>
2429
2430 * c.opt (-Wdate-time): New option
2431 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
2432
254a0760
JM
24332013-11-05 Joseph Myers <joseph@codesourcery.com>
2434
2435 * c-cppbuiltin.c (cpp_iec_559_value): Test
2436 flag_excess_precision_cmdline not flag_excess_precision.
2437
6d7f7e0a
TB
24382013-11-05 Tobias Burnus <burnus@net-b.de>
2439
2440 * c.opt (fopenmp-simd): New option.
2441 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
2442 (omp_pragmas): ... this new struct.
2443 (c_pp_lookup_pragma): Also walk omp_pragmas.
2444 (init_pragma): Init pragmas for -fopenmp-simd.
2445
55a7f02f
MP
24462013-11-04 Marek Polacek <polacek@redhat.com>
2447
2448 PR c++/58979
2449 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
2450
9193fb05
JM
24512013-11-04 Joseph Myers <joseph@codesourcery.com>
2452
2453 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
2454 New functions.
2455 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
2456
94159ecf
EB
24572013-11-04 Eric Botcazou <ebotcazou@adacore.com>
2458
2459 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
2460 (dump_ada_specs): Adjust prototype of second callback.
2461 * c-ada-spec.c (cpp_check): New global variable.
2462 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
2463 (print_generic_ada_decl): Likewise.
2464 (has_static_fields): Change return type to bool and add guard.
2465 (has_nontrivial_methods): New predicate.
2466 (is_tagged_type): Change return type to bool.
2467 (separate_class_package): Call has_nontrivial_methods.
2468 (pp_ada_tree_identifier): Minor tweaks.
2469 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
2470 (dump_ada_array_domains): Likewise.
2471 (dump_ada_array_type): Likewise.
2472 (dump_template_types): Remove cpp_check parameter and do not pass it to
2473 dump_generic_ada_node.
2474 (dump_ada_template): Likewise.
2475 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
2476 recursively.
2477 (print_ada_methods): Change return type to integer. Remove cpp_check
2478 parameter and do not pass it down.
2479 (dump_nested_types): Remove cpp_check parameter and do not pass it to
2480 dump_generic_ada_node.
2481 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
2482 accessing methods.
2483 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
2484 down. Use has_nontrivial_methods to recognize C++ classes. Use return
2485 value of print_ada_methods.
2486 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
2487 Set cpp_check to it before invoking dump_ada_nodes.
2488 (dump_ada_specs): Likewise.
2489
b906f4ca
MP
24902013-11-03 Marek Polacek <polacek@redhat.com>
2491
2492 * c-ubsan.c: Don't include hash-table.h.
2493 (ubsan_instrument_vla): New function.
2494 * c-ubsan.h: Declare it.
2495
5e20cdc9
DM
24962013-10-31 David Malcolm <dmalcolm@redhat.com>
2497
2498 Automated part of renaming of symtab_node_base to symtab_node.
2499
2500 Patch autogenerated by rename_symtab.py from
2501 https://github.com/davidmalcolm/gcc-refactoring-scripts
2502 revision 58bb219cc090b2f4516a9297d868c245495ee622
2503
2504 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
2505 symtab_node_base to symtab_node.
2506
7057e645
ESR
25072013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
2508
2509 Implement C++14 digit separators.
2510 * c-lex.c (interpret_float): Remove digit separators from scratch string
2511 before building real literal.
2512
193ea7bc
JJ
25132013-10-30 Jakub Jelinek <jakub@redhat.com>
2514
2515 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
2516
939b37da
BI
25172013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
2518
2519 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
2520 fields.
2521 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
2522 enabled.
2523 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
2524 (insert_cilk_frame): New prototype.
2525 (cilk_init_builtins): Likewise.
2526 (gimplify_cilk_spawn): Likewise.
2527 (c_cilk_install_body_w_frame_cleanup): Likewise.
2528 (cilk_detect_spawn_and_unwrap): Likewise.
2529 (cilk_set_spawn_marker): Likewise.
2530 (build_cilk_sync): Likewise.
2531 (build_cilk_spawn): Likewise.
2532 * cilk.c: New file.
2533
67348ccc
DM
25342013-10-29 David Malcolm <dmalcolm@redhat.com>
2535
2536 Patch autogenerated by refactor_symtab.py from
2537 https://github.com/davidmalcolm/gcc-refactoring-scripts
2538 revision 58bb219cc090b2f4516a9297d868c245495ee622
2539
2540 * c-gimplify.c (c_genericize): Update for conversion of symtab types
2541 to a true class hierarchy.
2542 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
2543
d570872d
RS
25442013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
2545
2546 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
2547
98906124
JL
25482013-10-26 Jeff Law <law@redhat.com>
2549
adfac8df
JJ
2550 * c-common.c (c_define_builtins): Remove mudflap support.
2551 * c.opt: Ignore and warn for mudflap options.
98906124 2552
d73749df 25532013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
2554
2555 PR other/33426
2556 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
2557 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
2558
3f04b1bb
JM
25592013-10-23 Jason Merrill <jason@redhat.com>
2560
2561 * c-format.c (gcc_cxxdiag_char_table): Add %X.
2562
acf0174b
JJ
25632013-10-11 Jakub Jelinek <jakub@redhat.com>
2564
acd15a28
JJ
2565 * c-common.h (omp_clause_mask::operator !=): New method.
2566 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
2567 instead of if (mask & something) tests everywhere.
2568
acf0174b
JJ
2569 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
2570 201307 instead of 201107.
2571 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
2572 (c_common_attribute_table): Add "omp declare target" and
2573 "omp declare simd" attributes.
2574 (handle_omp_declare_target_attribute,
2575 handle_omp_declare_simd_attribute): New functions.
2576 * c-omp.c: Include c-pragma.h.
2577 (c_finish_omp_taskgroup): New function.
2578 (c_finish_omp_atomic): Add swapped argument, if true,
2579 build the operation first with rhs, lhs arguments and use NOP_EXPR
2580 build_modify_expr.
2581 (c_finish_omp_for): Add code argument, pass it down to make_code.
2582 (c_omp_split_clauses): New function.
2583 (c_split_parallel_clauses): Removed.
2584 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
2585 c_omp_declare_simd_clauses_to_decls): New functions.
2586 * c-common.h (omp_clause_mask): New type.
2587 (OMP_CLAUSE_MASK_1): Define.
2588 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
2589 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
2590 omp_clause_mask::operator |, omp_clause_mask::operator &,
2591 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
2592 omp_clause_mask::operator ==): New methods.
2593 (enum c_omp_clause_split): New.
2594 (c_finish_omp_taskgroup): New prototype.
2595 (c_finish_omp_atomic): Add swapped argument.
2596 (c_finish_omp_for): Add code argument.
2597 (c_omp_split_clauses): New prototype.
2598 (c_split_parallel_clauses): Removed.
2599 (c_omp_declare_simd_clauses_to_numbers,
2600 c_omp_declare_simd_clauses_to_decls): New prototypes.
2601 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
2602 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
2603 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
2604 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
2605 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
2606 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
2607 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
2608 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
2609 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
2610 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
2611 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
2612 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
2613 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
2614 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
2615 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
2616 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
2617 PRAGMA_OMP_CLAUSE_UNIFORM.
2618
826cacfe
MG
26192013-10-09 Marc Glisse <marc.glisse@inria.fr>
2620
2621 PR tree-optimization/20318
2622 * c-common.c (handle_returns_nonnull_attribute): New function.
2623 (c_common_attribute_table): Add returns_nonnull.
2624
2284b034
MG
26252013-10-03 Marc Glisse <marc.glisse@inria.fr>
2626
2627 PR c++/19476
2628 * c.opt (fcheck-new): Move to common.opt.
2629
b56e9788
MP
26302013-09-25 Marek Polacek <polacek@redhat.com>
2631 Jakub Jelinek <jakub@redhat.com>
2632
2633 PR sanitizer/58413
2634 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
2635 an expression if we can prove it is correct.
2636 (ubsan_instrument_division): Likewise. Remove unnecessary
2637 check.
2638
ce6923c5
MP
26392013-09-18 Marek Polacek <polacek@redhat.com>
2640
2641 PR sanitizer/58411
2642 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
2643 Declare it.
2644 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
2645
fb5610fb
IS
26462013-09-14 Iain Sandoe <iain@codesourcery.com>
2647
2648 PR target/48094
2649 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
2650 fobjc-gc, freplace-objc-classes): Accept for LTO.
2651
88b0e79e
JC
26522013-09-13 Jacek Caban <jacek@codeweavers.com>
2653
2654 * c-target.def: New hook
2655
c9b0866a
PC
26562013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
2657
2658 PR c++/43452
2659 * c.opt (Wdelete-incomplete): Add.
2660
0af94e6f
JR
26612013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
2662
2663 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
2664 (vector_types_compatible_elements_p): New function.
2665 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
2666 declaration.
2667 (vector_types_compatible_elements_p): Declare.
2668
7c26172c
GDR
26692013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2670
2671 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
2672 a virtual member function.
2673 (pp_simple_type_specifier): Remove.
2674 (pp_c_type_specifier): Likewise.
2675 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
2676 Rename from pp_c_type_specifier. Adjust.
2677 (c_pretty_printer::c_pretty_printer): Do not assign to
2678 simple_type_specifier.
2679
20059c8b
GDR
26802013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2681
2682 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
2683 member function.
2684 (c_pretty_printer::storage_class_specifier): Likewise.
2685 (c_pretty_printer::initializer): Likewise.
2686 (pp_declaration): Remove.
2687 (pp_declaration_specifiers): Likewise.
2688 (pp_abstract_declarator): Likewise.
2689 (pp_declarator): Likewise.
2690 (pp_type_id): Likewise.
2691 (pp_statement): Likewise.
2692 (pp_constant): Likewise.
2693 (pp_id_expression): Likewise.
2694 (pp_primary_expression): Likewise.
2695 (pp_unary_expression): Likewise.
2696 (pp_multiplicative_expression): Likewise.
2697 (pp_conditional_expression): Likewise.
2698 (pp_assignment_expression): Likewise.
2699 (pp_expression): Likewise.
2700 (pp_c_type_id): Likewise.
2701 (pp_c_storage_class_specifier): Likewise.
2702 * c-pretty-print.c (pp_c_type_cast): Tidy.
2703 (pp_c_pointer): Likewise.
2704 (pp_c_type_specifier): Likewise.
2705 (pp_c_parameter_type_list): Likewise.
2706 (pp_c_function_definition): Likewise.
2707 (pp_c_init_declarator): Likewise.
2708 (pp_c_initializer_list): Likewise.
2709 (pp_c_constructor_elts): Likewise.
2710 (c_pretty_printer::direct_abstract_declarator): Likewise.
2711 (c_pretty_printer::declaration_specifiers): Likewise.
2712 (c_pretty_printer::primary_expression): Likewise.
2713 (c_pretty_printer::postfix_expression): Likewise.
2714 (c_pretty_printer::type_id): Rename from pp_c_type_id.
2715 (c_pretty_printer::storage_class_specifier): Rename from
2716 pp_c_storage_class_specifier.
2717 (c_pretty_printer::initializer): Rename from pp_c_initializer.
2718 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
2719 storage_class_specifier, initializer, offset_list, flags.
2720
de5a5fa1
MP
27212013-08-30 Marek Polacek <polacek@redhat.com>
2722
2723 * c-ubsan.c: New file.
2724 * c-ubsan.h: New file.
2725
8f0e4d72
GDR
27262013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2727
2728 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
2729 member function.
2730 (c_pretty_printer::declaration_specifiers): Likewise.
2731 (c_pretty_printer::declarator): Likewise.
2732 (c_pretty_printer::abstract_declarator): Likewise.
2733 (c_pretty_printer::direct_abstract_declarator): Likewise.
2734 (c_pretty_printer::direct_declarator): Likewise.
2735 (c_pretty_printer::function_specifier): Likewise.
2736 (pp_declaration): Adjust.
2737 (pp_declaration_specifiers): Likewise.
2738 (pp_abstract_declarator): Likewise.
2739 (pp_direct_declarator): Likewise.
2740 (pp_function_specifier): Likewise.
2741 (pp_direct_abstract_declarator): Remove as unused.
2742 (pp_c_declaration): Remove.
2743 (pp_c_declaration_specifiers): Likewise.
2744 (pp_c_declarator): Likewise.
2745 (pp_c_direct_declarator): Likewise.
2746 (pp_c_function_specifier): Likewise.
2747 (pp_c_direct_abstract_declarator): Likewise.
2748 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
2749 from pp_c_abstract_declarator. Adjust.
2750 (c_pretty_printer::direct_abstract_declarator): Rename from
2751 pp_c_direct_abstract_declarator. Adjust.
2752 (c_pretty_printer::function_specifier): Rename from
2753 pp_c_function_specifier. Adjust.
2754 (c_pretty_printer::declaration_specifiers): Rename from
2755 pp_c_declaration_specifiers. Adjust.
2756 (c_pretty_printer::direct_declarator): Rename from
2757 pp_c_direct_declarator. Adjust.
2758 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
2759 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
2760 (c_pretty_printer::c_pretty_printer): Do not assign to
2761 declaration, declaration_specifiers, declarator,
2762 direct_declarator, direct_abstract_declarator, function_specifier.
2763
00d34d3a
GDR
27642013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
2765
2766 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
2767 virtual member function.
2768 (c_pretty_printer::multiplicative_expression): Likewise.
2769 (c_pretty_printer::conditional_expression): Likewise.
2770 (c_pretty_printer::assignment_expression): Likewise.
2771 (c_pretty_printer::expression): Likewise.
2772 (pp_unary_expression): Adjust.
2773 (pp_multiplicative_expression): Likewise.
2774 (pp_assignment_expression): Likewise.
2775 (pp_conditional_expression): Likewise.
2776 (pp_expression): Likewise.
2777 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
2778 from pp_c_unary_expression. Adjust.
2779 (c_pretty_printer::multiplicative_expression): Rename from
2780 pp_c_multiplicative_expression. Adjust.
2781 (c_pretty_printer::conditional_expression): Rename from
2782 pp_c_conditional_expression. Adjust.
2783 (c_pretty_printer::assignment_expression): Rename from
2784 pp_c_assignment_expression. Adjust.
2785 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
2786 (c_pretty_printer::c_pretty_printer): Do not assign to
2787 unary_expression, multiplicative_expression,
2788 conditional_expression, expression.
2789
fb22178f
GDR
27902013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2791
2792 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
2793 virtual member function.
2794 (pp_postfix_expression): Adjust.
2795 (pp_c_postfix_expression): Remove.
2796 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
2797 from pp_c_postfix_expression. Adjust.
2798 (c_pretty_printer::c_pretty_printer): Do not assign to
2799 postfix_expression.
2800
7ecc2600
GDR
28012013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2802
2803 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
2804 virtua member function.
2805 (pp_primary_expression): Adjust.
2806 (pp_c_primary_expression): Remove.
2807 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
2808 from pp_c_primary_expression. Adjust.
2809 (pp_c_initializer_list): Use pp_primary_expression.
2810 (c_pretty_printer::c_pretty_printer): Do not assign to
2811 primary_expression.
2812
0691175f
GDR
28132013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2814
2815 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
2816 * c-pretty-print.c (M_): Remove.
2817 (c_pretty_printer::translate_string): Define.
2818 (pp_c_type_specifier): Use it.
2819 (pp_c_primary_expression): Likewise.
2820 (pp_c_expression): Likewise.
2821
66dfe4c4
GDR
28222013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
2823
2824 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
2825 virtual function.
2826 (pp_c_id_expression): Remove.
2827 (pp_id_expression): Adjust.
2828 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
2829 pp_c_id_expression. Adjust.
2830 (pp_c_postfix_expression): Use pp_id_expression.
2831 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
2832
ca43e9d5
GDR
28332013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
2834
2835 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
2836 member function.
2837 (pp_constant): Adjust.
2838 (pp_c_constant): Remove.
2839 * c-pretty-print.c (c_pretty_printer::constant): Rename from
2840 pp_c_constant. Adjust.
2841 (pp_c_constant)
2842 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
2843 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
2844
da6ca2b5
GDR
28452013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2846
2847 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
2848 (c_pretty_printer::c_pretty_printer): Declare.
2849 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
2850 c_pretty_printer_init. Adjust.
2851 (print_c_tree): Do not call c_pretty_printer_init.
2852 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
2853
65a372f4
AC
28542013-08-09 Arnaud Charlet <charlet@adacore.com>
2855
2856 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
2857
fd9b0f32
PC
28582013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
2859
2860 PR c++/58080
2861 * c-common.c (pointer_int_sum): Add bool parameter.
2862 * c-common.h (pointer_int_sum): Adjust declaration.
2863
e0aec1e9
GDR
28642013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
2865
2866 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
2867 c_pretty_printer variable.
2868
b066401f
GDR
28692013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2870
2871 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
2872 (pp_base): Remove.
2873 (pp_c_base): Likewise. Adjust users.
2874 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
2875 (pp_c_whitespace): Do not call pp_base.
2876 (pp_c_left_paren): Likewise.
2877 (pp_c_right_paren): Likewise.
2878 (pp_c_left_brace): Likewise.
2879 (pp_c_right_brace): Likewise.
2880 (pp_c_left_bracket): Likewise.
2881 (pp_c_right_bracket): Likewise.
2882 (pp_c_dot): Likewise.
2883 (pp_c_ampersand): Likewise.
2884 (pp_c_star): Likewise.
2885 (pp_c_arrow): Likewise.
2886 (pp_c_semicolon): Likewise.
2887 (pp_c_complement): Likewise.
2888 (pp_c_exclamation): Likewise.
2889 (pp_c_direct_declarator): Likewise.
2890 (pp_c_ws_string): Likewise.
2891 (pp_c_identifier): Likewise.
2892 (pp_c_statement): Likewise.
2893 (print_c_tree): Likewise.
2894
65e5a578
ESR
28952013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
2896
2897 PR c++/58072
2898 * c-common.c (c_parse_error): Catch user-defined literal tokens and
2899 provide useful error strings.
2900
137a1a27
GDR
29012013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2902
2903 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
2904 printer functions instead of pp_string or operators and punctuators.
2905 (dump_generic_ada_node): Likewise.
2906 * c-pretty-print.c (pp_c_type_specifier): Likewise.
2907 (pp_c_relational_expression): Likewise.
2908 (pp_c_logical_or_expression): Likewise.
2909
07838b13
GDR
29102013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2911
2912 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
2913 functions instead of pp_character.
2914 (pp_ada_tree_identifier): Likewise.
2915 (dump_ada_double_name): Likewise.
2916 (dump_ada_function_declaration): Likewise.
2917 (dump_ada_array_domains): Likewise.
2918 (dump_template_types): Likewise.
2919 (dump_generic_ada_node): Likewise.
2920 (print_ada_declaration): Likewise.
2921 (print_ada_struct_decl): Likewise.
2922 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2923
433cc7b0
TT
29242013-07-23 Tom Tromey <tromey@redhat.com>
2925
2926 * c-common.h (enum rid) <RID_GENERIC>: New constant.
2927 * c-common.c (c_common_reswords): Add _Generic.
2928
688010ba
OB
29292013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
2930
2931 * c-common.c: Fix typos.
2932 * c-common.h: Likewise.
2933
2a99e5e6
LL
29342013-07-13 Lubos Lunak <l.lunak@suse.cz>
2935
2936 PR c++/55203
2937 * c-common.c (c_common_attribute_table): Add warn_unused.
2938 (handle_warn_unused_attribute): New.
2939
c26302d5
JJ
29402013-07-10 Jakub Jelinek <jakub@redhat.com>
2941
2942 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
2943 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
2944
dfeadaa0
PC
29452013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
2946
2947 PR c++/57869
2948 * c.opt: Add Wconditionally-supported.
2949
6a2fa4b2
GS
29502013-07-08 Graham Stott <graham.stott@btinternet.com>
2951
adfac8df 2952 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
2953 unused variables l_length and l_node.
2954
ecdbd01a 29552013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
2956
2957 PR c/57821
2958 * c-common.c (complete_array_type): Delay folding first index
2959 like other indices. When folding, check for index overflow.
2960
bedc293e
MG
29612013-06-27 Marc Glisse <marc.glisse@inria.fr>
2962
2963 PR c++/57509
2964 * c-common.h (c_build_vec_perm_expr): New complain argument.
2965 * c-common.c (c_build_vec_perm_expr): Likewise.
2966 Use save_expr also in C++.
2967
604b2bfc
GDR
29682013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2969
2970 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
2971 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2972 * c-opts.c (c_common_post_options): Likewise.
2973
dfeadaa0 29742013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
2975
2976 * array-notation-common.c (length_mismatch_in_expr): Changed the
2977 parameter type's from a dynamic array to a vec_tree. Also removed
2978 the size parameters.
2979 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
2980 the change above.
2981
2ce86d2e
BI
29822013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
2983
2984 * c-common.h (struct cilkplus_an_parts): New structure.
2985 (struct cilkplus_an_loop_parts): Likewise.
2986 (cilkplus_extract_an_triplets): New prototype.
2987 (fix_sec_implicit_args): Likewise.
2988 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
2989 (fix_sec_implicit_args): Likewise.
604b2bfc 2990
07a6825b
BI
29912013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
2992
2993 * array-notation-common.c (find_inv_trees): Removed an unwanted
2994 typecasting.
2995 * c-common.h (struct inv_list::additional_tcodes): Changed type from
2996 enum rid to enum tree_code.
2997
08346abd
JH
29982013-06-11 Jan Hubicka <jh@suse.cz>
2999
3000 * c-common.c (handle_alias_ifunc_attribute): Do not set
3001 DECL_EXTERNAL for weakref variables.
3002 * c-pragma.c (handle_pragma_weak): Make sure aliases
3003 are not declared as external.
3004
d60f1706
BI
30052013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
3006
3007 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
3008 function from c/c-array-notation.c.
3009 (is_cilkplus_reduce_builtin): Likewise.
3010 (find_rank): Likewise.
3011 (extract_array_notation_exprs): Likewise.
3012 (replace_array_notations): Likewise.
3013 (find_inv_trees): Likewise.
3014 (replace_inv_trees): Likewise.
3015 (contains_array_notation_expr): Likewise.
3016 (find_correct_array_notation_type): Likewise.
3017 * c-common.h (struct inv_list): Moved this struct from the file
3018 c/c-array-notation.c and added a new field called additional tcodes.
3019 (length_mismatch_in_expr_p): New prototype.
3020 (is_cilkplus_reduce_builtin): Likewise.
3021 (find_rank): Likewise.
3022 (extract_array_notation_exprs): Likewise.
3023 (replace_array_notation): Likewise.
3024 (find_inv_trees): Likewise.
3025 (replace_inv_trees): Likewise.
3026 (find_correct_array_notation_type): Likewise.
dfeadaa0 3027
36536d79
BI
30282013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
3029
3030 * c-common.c (c_define_builtins): When cilkplus is enabled, the
3031 function array_notation_init_builtins is called.
3032 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
3033 * c-common.def (ARRAY_NOTATION_REF): New tree.
3034 * c-common.h (build_array_notation_expr): New function declaration.
3035 (build_array_notation_ref): Likewise.
3036 (extract_sec_implicit_index_arg): New extern declaration.
3037 (is_sec_implicit_index_fn): Likewise.
3038 (ARRAY_NOTATION_CHECK): New define.
3039 (ARRAY_NOTATION_ARRAY): Likewise.
3040 (ARRAY_NOTATION_START): Likewise.
3041 (ARRAY_NOTATION_LENGTH): Likewise.
3042 (ARRAY_NOTATION_STRIDE): Likewise.
3043 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
3044 ARRAY_NOTATION_REF.
3045 (pp_c_expression): Likewise.
3046 * c.opt (flag_enable_cilkplus): New flag.
3047 * array-notation-common.c: New file.
3048
f7716d57
JJ
30492013-05-14 Jakub Jelinek <jakub@redhat.com>
3050
3051 PR c++/57274
3052 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
3053
a5e0cd1d
MG
30542013-05-10 Marc Glisse <marc.glisse@inria.fr>
3055
3056 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
3057 vectors.
3058
f6bc1c4a
HS
30592013-05-07 Han Shen <shenhan@google.com>
3060
3061 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
3062
3f12f6e9
SKS
30632013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3064
3065 * c-common.c (check_user_alignment): Emit error for negative values.
3066
61949153
PC
30672013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3068
3069 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
3070
e93e18e9
PC
30712013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3072
3073 * c-cppbuiltin.c (c_cpp_builtins): Do not define
3074 __GXX_EXPERIMENTAL_CXX1Y__.
3075
44d90fe1
PC
30762013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3077 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3078
3079 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
3080 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
3081 to simply use OPT_Wpointer_arith.
3082 (c_sizeof_or_alignof_type): Likewise.
3083
13f39b2e
PC
30842013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3085
3086 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
3087
4b84d650
JJ
30882013-04-12 Jakub Jelinek <jakub@redhat.com>
3089
3090 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
3091 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
3092 specifiers.
3093
fb037b5d
SB
30942013-04-07 Steven Bosscher <steven@gcc.gnu.org>
3095
3096 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
3097
4e856798
PC
30982013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
3099
3100 * c-common.c (pointer_int_sum): Remove dead code.
3101
4b1baac8
RS
31022013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
3103
3104 PR middle-end/56524
3105 * c-common.c (handle_optimize_attribute): Don't call
3106 save_optabs_if_changed.
3107
0b50e654
JJ
31082013-03-05 Jakub Jelinek <jakub@redhat.com>
3109
3110 PR middle-end/56461
3111 * c-pch.c (pch_init): Free target_validity at the end.
3112
48c41403
JJ
31132013-03-04 Jakub Jelinek <jakub@redhat.com>
3114
3115 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
3116
e664c61c
KS
31172013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
3118 Jakub Jelinek <jakub@redhat.com>
3119
3120 PR sanitizer/56454
3121 * c-common.c (handle_no_sanitize_address_attribute): New function.
3122 (c_common_attribute_table): Add no_sanitize_address attribute.
3123 (handle_no_address_safety_analysis_attribute): Add
3124 no_sanitize_address attribute, not no_address_safety_analysis
3125 attribute.
3126
a475fd3d 31272013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
3128
3129 PR target/52555
3130 * c-common.c (handle_optimize_attribute): Call
3131 save_optabs_if_changed.
3132
f6007d99
JJ
31332013-02-18 Jakub Jelinek <jakub@redhat.com>
3134 Steven Bosscher <steven@gcc.gnu.org>
3135
3136 PR pch/54117
3137 * c-opts.c (c_common_post_options): If debug info is enabled
3138 and non-dwarf*, refuse to load PCH files and when writing PCH
3139 file warn.
3140
cf35e2b1
JJ
31412013-02-05 Jakub Jelinek <jakub@redhat.com>
3142
3143 PR middle-end/56167
3144 * c-common.c (handle_error_attribute): Fix condition.
3145
32887460
JJ
31462013-01-30 Jakub Jelinek <jakub@redhat.com>
3147
3148 PR c++/55742
3149 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
3150
5af057d8
JM
31512013-01-18 Jason Merrill <jason@redhat.com>
3152
3153 PR target/54908
3154 * c.opt (-fextern-tls-init): New.
3155 * c-opts.c (c_common_post_options): Handle it.
3156
cc83c823
JJ
31572013-01-09 Jakub Jelinek <jakub@redhat.com>
3158
3159 PR c/48418
3160 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
3161 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
3162 and is either negative or bigger or equal to type precision
3163 of the first operand.
3164
a859517f
MP
31652012-12-03 Marek Polacek <polacek@redhat.com>
3166
3167 PR c/55570
3168 * c-common.c (check_user_alignment): Swap order of tests,
3169 check TREE_CODE first.
3170
2d7aa578
ESR
31712012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
3172
3173 PR c++/52654
3174 * c-common.h (overflow_type): New enum.
3175 (build_userdef_literal): Add overflow_type argument.
3176 (tree_userdef_literal): Add overflow_type.
3177 (USERDEF_LITERAL_OVERFLOW): New access macro.
3178 * c-common.c (build_userdef_literal): Add overflow_type
3179 argument.
3180 * c-lex.c (c_lex_with_flags): Add overflow_type to
3181 build_userdef_literal calls.
3182 (interpret_integer, interpret_float): Add overflow_type argument.
3183
cc3c4f62
RB
31842012-11-28 Richard Biener <rguenther@suse.de>
3185
3186 PR c/35634
3187 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
3188 here and use a type with proper overflow behavior for types that would
3189 need to be promoted for the arithmetic.
3190
77bc5132
JJ
31912012-11-23 Jakub Jelinek <jakub@redhat.com>
3192
3193 PR sanitizer/55435
3194 * c-common.c (handle_no_address_safety_analysis_attribute): New
3195 function.
3196 (c_common_attribute_table): Add no_address_safety_analysis.
3197
5dc99c46
SB
31982012-11-16 Simon Baldwin <simonb@google.com>
3199
3200 * c.opt: Add f[no-]canonical-system-headers.
3201 * c-opts.c (c_common_handle_option): Handle
3202 OPT_fcanonical_system_headers.
3203
a4a0016d
ESR
32042012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
3205
3206 PR c++/54413
3207 * c-opts.c (c_common_handle_option): Set new flags.
3208 * c.opt: Describe new flags.
3209
7dbb85a7
JM
32102012-11-09 Jason Merrill <jason@redhat.com>
3211
3212 * c.opt (Wabi-tag): New.
3213
ad7bac31
AK
32142012-11-09 Andi Kleen <ak@linux.intel.com>
3215
3216 PR 55139
3217 * c-common.c (get_atomic_generic_size): Mask with
3218 MEMMODEL_MASK
3219
7332899a
MLI
32202012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3221
3222 PR c/53063
3223 * c.opt (Wformat): Make it Alias Wformat=1.
3224 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
3225 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
3226 LangEnabledBy.
3227 (Wformat=): RejectNegative. Use LangEnabledBy.
3228 (Wnonnull): Use LangEnabledBy.
3229 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
3230 * c-format.c (set_Wformat): Delete.
3231 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
3232 (maybe_read_dollar_number): Likewise.
3233 (avoid_dollar_number): Likewise.
3234 (finish_dollar_format_checking): Likewise.
3235 (check_format_info): Likewise.
3236 (check_format_info_main): Likewise.
3237 (check_format_types): Likewise.
3238 (format_type_warning): Likewise.
3239 * c-common.c (int): Likewise.
3240 (check_function_sentinel): Likewise.
3241 * c-common.h (warn_format,set_Wformat): Do not declare here.
3242
34a180a6
MLI
32432012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3244
3245 PR c/53063
3246 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
3247 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
3248 Use LangEnabledBy.
3249 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
3250 common.opt.
3251 (Wvariadic-macros): Init(1).
3252 * c-opts.c (c_common_handle_option): Do not handle them
3253 explicitly.
3254 (c_common_post_options): Likewise.
3255 (sanitize_cpp_opts): warn_unused_macros is now
3256 cpp_warn_unused_macros.
3257 (push_command_line_include): Likewise.
3258 * c-common.c (warn_unknown_pragmas): Do not define.
3259 * c-common.h (warn_unknown_pragmas): Do not declare.
3260
3f46d6a5
MLI
32612012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3262
3263 PR c/51294
3264 * c-common.c (conversion_warning): Handle conditional expressions.
3265
880661a4
JW
32662012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
3267
3268 PR c++/54930
3269 * c.opt (Wreturn_local_addr): Define new option.
3270
4514a96b
JM
32712012-10-25 Jason Merrill <jason@redhat.com>
3272
f14edc1a
JM
3273 * c.opt (Wvirtual-move-assign): New.
3274
4514a96b
JM
3275 * c.opt (Winherited-variadic-ctor): New.
3276
93100c6b
MG
32772012-10-25 Marc Glisse <marc.glisse@inria.fr>
3278
3279 PR c++/54427
3280 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
3281
1efcb8c6
JM
32822012-10-23 Joseph Myers <joseph@codesourcery.com>
3283
3284 * c-common.h (pch_cpp_save_state): Declare.
3285 * c-target.def (c_preinclude): New hook.
3286 * c-opts.c (done_preinclude): New.
3287 (push_command_line_include): Handle default preincluded header.
3288 (cb_file_change): Call pch_cpp_save_state when calling
3289 push_command_line_include.
3290 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
3291 (pch_cpp_save_state): New.
3292 (pch_init): Call pch_cpp_save_state conditionally, instead of
3293 calling cpp_save_state.
3294
4a0ae68e
MLI
32952012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3296
3297 PR c/53063
3298 PR c/40989
3299 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
3300 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
3301 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
3302 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
3303 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
3304 * c-opts.c (c_common_handle_option): Remove explicit handling from
3305 here.
3306 (c_common_post_options): Likewise.
3307
67e4210b
EB
33082012-10-18 Eric Botcazou <ebotcazou@adacore.com>
3309
3310 * c-ada-spec.c (LOCATION_COL): Delete.
3311 (compare_location): New function.
3312 (compare_node): Use it.
3313 (compare_comment): Likewise.
3314
65d4f2cd
MLI
33152012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
3316
3317 PR c/53063
3318 PR c/40989
3319 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
3320 * c-opts.c (c_common_handle_option): Do not set them here. Add
3321 comment.
3322 (c_common_post_options): Likewise.
3323
909881cb
EB
33242012-10-16 Eric Botcazou <ebotcazou@adacore.com>
3325
3326 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
3327 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
3328 Remove POINTER_TYPE handling, add large unsigned handling and use
3329 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
3330
3a785c97
JJ
33312012-10-12 Jakub Jelinek <jakub@redhat.com>
3332
3333 PR c/54381
3334 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
3335 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
3336 locs and array of 3 trees instead of just single loc and single
3337 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
3338 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
3339 For *cmp* builtins that take two sources strings report warnings
3340 about first and second source, not about destination and source.
3341
5e54f81d
MG
33422012-10-12 Marc Glisse <marc.glisse@inria.fr>
3343
3344 PR c++/53055
3345 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
3346
f5b02f1e
EB
33472012-10-11 Eric Botcazou <ebotcazou@adacore.com>
3348
3349 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
3350 declaring something coming from another file.
3351
b46dbc6c
AC
33522012-10-10 Arnaud Charlet <charlet@adacore.com>
3353
f5b02f1e 3354 PR ada/54845
b46dbc6c
AC
3355 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
3356
5d9de0d0
PC
33572012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
3358
3359 PR c++/54194
3360 * c-common.c (warn_about_parentheses): Add location_t parameter;
3361 use EXPR_LOC_OR_LOC.
3362 * c-common.h: Update declaration.
3363
a212e43f
MG
33642012-10-09 Marc Glisse <marc.glisse@inria.fr>
3365
3366 PR c++/54427
3367 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
3368 more operations. Make error messages optional.
3369 * c-common.h (enum stv_conv): Moved from c-typeck.c.
3370 (scalar_to_vector): Declare.
3371
b1db7f91
JM
33722012-10-08 Jason Merrill <jason@redhat.com>
3373
3374 * c-common.c (c_common_reswords): Add thread_local.
3375
e28d52cf
DS
33762012-10-08 Dodji Seketeli <dodji@redhat.com>
3377
3378 PR c++/53528 C++11 attribute support
3379 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
3380 new functions.
3381 * c-common.c (check_cxx_fundamental_alignment_constraints): New
3382 static function.
3383 (handle_aligned_attribute): In choose strictest alignment
3384 among many. Use new check_cxx_fundamental_alignment_constraints.
3385 (handle_transparent_union_attribute): In c++11 attribute syntax,
3386 don't look through typedefs.
3387
3b78de56
AC
33882012-10-04 Arnaud Charlet <charlet@adacore.com>
3389
3390 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
3391 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
3392 out of dumpfile.h.
3393
6040bb5f
DC
33942012-09-25 Dehao Chen <dehao@google.com>
3395
3396 PR middle-end/54645
3b78de56 3397 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
3398 map when read in the pch.
3399
0b07a57e
AC
34002012-09-18 Arnaud Charlet <charlet@adacore.com>
3401
3402 * c-ada-spec.c: Style fixes.
3403
da5182be
TQ
34042012-09-18 Thomas Quinot <quinot@adacore.com>
3405
3406 * c.opt (-fada-spec-parent): Define new command line switch.
3407 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
3408 is specified, generate binding spec as a child of the specified unit.
3409
0ccb505d
PC
34102012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
3411 Manuel López-Ibáñez <manu@gcc.gnu.org>
3412
3413 PR c++/53210
3414 * c.opt ([Winit-self]): Enabled by -Wall in C++.
3415
c583af79
AC
34162012-08-23 Arnaud Charlet <charlet@adacore.com>
3417
3418 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
3419 for pointers, and add missing Convention C pragma.
3420 (print_ada_struct_decl): Add missing aliased keyword.
3421 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
3422
1a4049e7
JJ
34232012-08-17 Jakub Jelinek <jakub@redhat.com>
3424
3425 * c-common.c (sizeof_pointer_memaccess_warning): New function.
3426 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
3427 * c-opts.c (c_common_handle_option): Enable it for -Wall.
3428 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
3429 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
3430
70b5e7dc
RG
34312012-08-10 Richard Guenther <rguenther@suse.de>
3432
3433 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
3434
f8923f7e
SB
34352012-08-07 Steven Bosscher <steven@gcc.gnu.org>
3436
3437 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
3438 instead of separate pp_newline and pp_flush.
3439 (print_c_tree): Likewise.
3440
e45abe1f
RH
34412012-07-26 Richard Henderson <rth@redhat.com>
3442
3443 * c-common.c (handle_hot_attribute): Allow labels.
3444 (handle_cold_attribute): Likewise.
3445
332f1d24
JJ
34462012-07-20 Jakub Jelinek <jakub@redhat.com>
3447
3448 PR c++/28656
3449 * c-common.c (check_function_nonnull): Handle multiple nonnull
3450 attributes properly.
3451
7ee2468b
SB
34522012-07-16 Steven Bosscher <steven@gcc.gnu.org>
3453
3454 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
3455 * c-ada-spec.c: Likewise.
3456 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
3457
ee7b28eb
SB
34582012-07-14 Steven Bosscher <steven@gcc.gnu.org>
3459
3460 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
3461 Remove code conditional on it.
3462
6bdf3519
SB
34632012-07-11 Steven Bosscher <steven@gcc.gnu.org>
3464
3465 * c-gimplify.c: Do not include basic-block.h.
3466 * c-common.c: Do not include linfuncs.h.
3467
532aafad
SB
34682012-07-08 Steven Bosscher <steven@gcc.gnu.org>
3469
3470 * c-common.h: Include tree.h.
3471
8d0d1915
JM
34722012-07-02 Jason Merrill <jason@redhat.com>
3473
3474 PR c++/53524
3475 * c-common.c (get_priority): Call default_conversion.
3476
fbc873ad
UB
34772012-07-01 Uros Bizjak <ubizjak@gmail.com>
3478
3479 * c-pch.c (c_common_write_pch): Remove unused variables.
3480
d4a10d0a
SB
34812012-06-29 Steven Bosscher <steven@gcc.gnu.org>
3482
3483 * cppspec.c: Moved from gcc/ to here.
3484
6f3a2e23
KT
34852012-06-27 Kai Tietz <ktietz@redhat.com>
3486
3487 PR preprocessor/37215
3488 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
3489
8ca92d04
SB
34902012-06-21 Steven Bosscher <steven@gcc.gnu.org>
3491
3492 * c-common.h (c_common_print_pch_checksum): Remove.
3493 * c-pch.c: Do not include output.h.
3494 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
3495 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
3496 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
3497 (struct c_pch_header): Remove.
3498 (get_ident): Update gpch version.
3499 (pch_init): Do not print executable_checksum to asm_out_file.
3500 Do not fail if there is no asm_out_file to read back from. Set
3501 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
3502 (c_common_write_pch): Verify that nothing was written to asm_out_file
3503 since pch_init was called. Do not write a c_pch_header, and do not
3504 copy from asm_out_file to the PCH.
3505 (c_common_read_pch): Do not read a c_pch_header, and do not restore
3506 the content of asm_out_file from the PCH.
3507 (c_common_print_pch_checksum): Remove.
3508 * c-opts.c (c_common_init): Print out executable_checksum directly.
3509
70f42967
SB
35102012-06-19 Steven Bosscher <steven@gcc.gnu.org>
3511
3512 * c-target.def (objc_declare_unresolved_class_reference,
3513 objc_declare_class_definition): Add new hooks.
3514
a8781821
SB
35152012-06-19 Steven Bosscher <steven@gcc.gnu.org>
3516
3517 * c-lex.c: Do not include output.h.
3518 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
3519 Remove uses of ASM_OUTPUT_IDENT.
3520
9e1a8dd1
RR
35212012-06-15 Marc Glisse <marc.glisse@inria.fr>
3522
3523 PR c++/51033
3524 * c-common.h (c_build_vec_perm_expr): Move decl here.
3525 * c-common.c (c_build_vec_perm_expr): Move definition
3526 here.
3527
6f07a821
SB
35282012-06-06 Steven Bosscher <steven@gcc.gnu.org>
3529
3530 * c.opt (fconserve-space): Turn into a no-op.
3531
9faeb493 35322012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
3533
3534 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
3535 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
3536 both the start and end of the function.
3537
a4b7d13c
SB
35382012-06-04 Steven Bosscher <steven@gcc.gnu.org>
3539
3540 * c-common.c: Do not include output.h.
3541 * c-pragma.c: Likewise.
3542
c265f413
SA
35432012-06-04 Steven Bosscher <steven@gcc.gnu.org>
3544
3545 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
3546 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
3547 (lang_decl_name): Handle namespace decls.
3548
be7a421e
SB
35492012-05-31 Steven Bosscher <steven@gcc.gnu.org>
3550
3551 * c-ada-spec.c: Do not include output.h.
3552 * c-semantics.c: Likewise.
3553
65de6659
JM
35542012-05-29 Joseph Myers <joseph@codesourcery.com>
3555
3556 * c-common.c: Fix typo.
3557
ca5f4331
MM
35582012-05-29 Michael Matz <matz@suse.de>
3559
3560 * c-common.h (c_expand_decl): Remove prototype.
3561
4f7f7aca
MLI
35622012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3563
3564 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
3565 * c-opts.c (c_common_handle_option): Remove code handling
3566 warn_missing_braces.
3567
4a792f9b
PC
35682012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
3569
3570 PR c++/25137
3571 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
3572 -Wmissing_braces.
3573
650dc14a
DS
35742012-05-22 Dodji Seketeli <dodji@redhat.com>
3575
3576 PR c++/53322
3577 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
3578
9b095bf1
MLI
35792012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
3580
3581 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
3582 * c-opts.c (c_common_handle_option): Do not handle explicitly
3583 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
3584
0b2c4be5
DS
35852012-05-16 Dodji Seketeli <dodji@redhat.com>
3586
3587 PR preprocessor/7263
3588 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
3589 to cpp_classify_number. For diagnostics, use the precise location
3590 instead of the global input_location.
3591
a1bde5af
PC
35922012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
3593
d02924ef 3594 PR c++/11856
a1bde5af
PC
3595 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
3596
d1ede5f4
BS
35972012-05-14 Bernd Schmidt <bernds@codesourcery.com>
3598
a1bde5af 3599 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 3600
f2bc201f
MLI
36012012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
3602
3603 PR 53063
3604 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
3605 Wreorder): Use LangEnabledBy.
3606 * c-opts.c (c_common_handle_option): Do not enable them
3607 explicitly. Call lang-specific generated functions.
3608 (c_common_post_options): Do not set them here.
3609
95744782
MLI
36102012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
3611
3612 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
3613 Wmissing-field-initializers,Wmissing-parameter-type,
3614 Wold-style-declaration,Woverride-init): Use EnabledBy.
3615 * c-opts.c (c_common_post_options): Do not set here explicitly.
3616
7d5a5747
MLI
36172012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3618
3619 PR 53063
3620 * c-opts.c (c_common_handle_option): Use handle_generated_option
3621 to enable sub-options.
3622
5a3c9cf2
PC
36232012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
3624
3625 PR c++/53158
3626 * c-common.c (warnings_for_convert_and_check): Use warning_at.
3627
3ac8781c
RG
36282012-05-10 Richard Guenther <rguenther@suse.de>
3629
3630 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
3631 adjust commentary about TYPE_IS_SIZETYPE types.
3632
1e537948
MLI
36332012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3634
3635 PR c++/53261
3636 * c-common.c (warn_logical_operator): Check that argument of
3637 integer_zerop is not NULL.
3638
f2c4a785
MLI
36392012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
3640
3641 PR c/43772
3642 * c-common.c (warn_logical_operator): Do not warn if either side
3643 is already true or false.
3644
50f305ca
MLI
36452012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
3646
3647 PR c/51712
3648 * c-common.c (expr_original_type): New.
3649 (shorten_compare): Do not warn for enumeration types.
3650
0c3641b0
MLI
36512012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3652
3653 * c.opt (fpermissive): Add Var(flag_permissive).
3654
7edaa4d2
MG
36552012-04-30 Marc Glisse <marc.glisse@inria.fr>
3656
3657 PR c++/51033
3658 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
3659 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
3660
b9c8da34
DS
36612012-04-30 Dodji Seketeli <dodji@redhat.com>
3662
3663 Add -Wvarargs option
3664 * c.opt (Wvarargs): Define new option.
3665
e6c69da0
MLI
36662012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3667
3668 * c-common.c (check_function_arguments): Replace
3669 Wmissing-format-attribute with Wsuggest-attribute=format.
3670
90137d8f
MLI
36712012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3672
3673 * c.opt (Wsuggest-attribute=format): New. Alias of
3674 Wmissing-format-attribute.
3675 * c-format.c (decode_format_type): Replace
3676 Wmissing-format-attribute with Wsuggest-attribute=format.
3677 (check_function_format): Likewise.
3678
9faeb493 36792012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
3680
3681 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
3682 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
3683 * c.opt: Add Wliteral-suffix.
3684
c1771a20
MLI
36852012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
3686
3687 PR c/44774
3688 * c.opt (Wpedantic): New.
3689 (pedantic): Alias Wpedantic.
3690 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
3691 (c_common_post_options): Likewise.
3692 (sanitize_cpp_opts): Likewise.
3693 * c-lex.c (interpret_float): Likewise.
3694 * c-format.c (check_format_types): Likewise.
3695 * c-common.c (pointer_int_sum): Likewise.
3696 (c_sizeof_or_alignof_type): Likewise.
3697 (c_add_case_label): Likewise.
3698 (c_do_switch_warnings): Likewise.
3699 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
3700
04b391c1
JM
37012012-04-15 Jason Merrill <jason@redhat.com>
3702
3703 PR c++/52818
3704 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
3705 (C_STD_NAME): Distinguish between C++98 and C++11.
3706
ac868f29
EB
37072012-04-11 Eric Botcazou <ebotcazou@adacore.com>
3708
3709 PR target/52624
3710 * c-common.h (uint16_type_node): Rename into...
3711 (c_uint16_type_node): ...this.
3712 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
3713 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
3714
fd4116f4
MLI
37152012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
3716
3717 * c-common.c (warn_if_unused_value): Move definition to here.
3718 * c-common.h (warn_if_unused_value): Move declaration to here.
3719
573ac65e
WB
37202012-03-23 William Bader <williambader@hotmail.com>
3721
3722 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
3723
552b8185
JM
37242012-03-20 Jason Merrill <jason@redhat.com>
3725
3726 * c-common.h (enum cxx_dialect): Add cxx1y.
3727 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
3728 test.
3729 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3730 * c-opts.c (c_common_post_options): Likewise.
3731 (set_std_cxx1y): New.
3732 (c_common_handle_option): Call it.
3733 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
3734
04398fa8
PC
37352012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
3736
3737 PR c++/14710
3738 * c.opt ([Wuseless-cast]): Add.
3739
d2a12ae7
RG
37402012-03-16 Richard Guenther <rguenther@suse.de>
3741
3742 * c-pretty-print.c (pp_c_initializer_list): Adjust.
3743
a12bf402
MLI
37442012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3745
3746 PR c++/44783
3747 * c.opt (ftemplate-backtrace-limit) Add.
3748
5c30094f
RO
37492012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3750
3751 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
3752 handling.
3753 * c-pragma.c (handle_pragma_extern_prefix): Remove.
3754 (init_pragma): Don't register extern_prefix.
3755
21fa2faf
RG
37562012-03-12 Richard Guenther <rguenther@suse.de>
3757
3758 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
3759 (builtin_type_for_size): Likewise.
3760
e3793c6f
JJ
37612012-02-13 Jakub Jelinek <jakub@redhat.com>
3762
3763 PR c++/52215
3764 * c-common.c (sync_resolve_params): Don't decide whether to convert
3765 or not based on TYPE_SIZE comparison, convert whenever arg_type
3766 is unsigned INTEGER_TYPE.
3767
93286335
PC
37682012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
3769
3770 PR c/52118
3771 * c.opt ([Wunused-local-typedefs]): Fix description.
3772
7a421706
MS
37732012-01-24 Mike Stump <mikestump@comcast.net>
3774
3775 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
3776 exactly.
3777
ba9b1f11
RG
37782012-01-18 Richard Guenther <rguenther@suse.de>
3779
3780 * c-opts.c (c_common_post_options): Reset LTO flags if
3781 we are about to generate a PCH.
3782
465406be
PC
37832012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
3784
3785 PR c++/51777
3786 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
3787 use pp_unsigned_wide_integer.
3788
aee15221
RG
37892012-01-10 Richard Guenther <rguenther@suse.de>
3790
3791 PR middle-end/51806
3792 * c-opts.c (c_common_handle_option): Move -Werror handling
3793 to language independent code.
3794
5720c0dc
RG
37952012-01-05 Richard Guenther <rguenther@suse.de>
3796
3797 PR middle-end/51764
3798 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
3799 from common.opt.
3800
73ac190a
PC
38012011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
3802
3803 PR c++/51316
3804 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
3805 of array types with an unknown bound.
3806
48b0b196
JM
38072011-12-20 Joseph Myers <joseph@codesourcery.com>
3808
3809 * c-common.c (flag_isoc99): Update comment to refer to C11.
3810 (flag_isoc1x): Change to flag_isoc11.
3811 * c-common.h (flag_isoc99): Update comment to refer to C11.
3812 (flag_isoc1x): Change to flag_isoc11.
3813 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
3814 C11.
3815 * c-opts.c (set_std_c1x): Change to set_std_c11.
3816 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
3817 Call set_std_c11.
3818 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
3819 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
3820 * c.opt (std=c1x): Change to std=c11. Document as non-draft
3821 standard.
3822 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
3823 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
3824 (std=gnu1x): Make alias of std=gnu11.
3825
d58d6eb5
JM
38262011-12-19 Jason Merrill <jason@redhat.com>
3827
3828 PR c++/51228
3829 * c-common.c (handle_transparent_union_attribute): Check the first
3830 field if the type is complete.
3831
b3908fcc
JW
38322011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
3833
3834 PR libstdc++/51365
3835 * c-common.c (RID_IS_FINAL): Add.
3836 * c-common.h (RID_IS_FINAL): Add.
3837
fea3ca91
IS
38382011-11-30 Iain Sandoe <iains@gcc.gnu.org>
3839
3840 * c.opt (fgnu-runtime): Provide full description.
3841 (fnext-runtime): Likewise.
3842 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
3843
62bad7cd
AM
38442011-11-28 Andrew MacLeod <amacleod@redhat.com>
3845
3846 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
3847 predefines in one place. Add LOCK_FREE predefines.
3848 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
3849 new func.
3850
c466c4ff
AM
38512011-11-24 Andrew MacLeod <amacleod@redhat.com>
3852
3853 PR c/51256
9faeb493 3854 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 3855 conditions
9faeb493
UB
3856 (resolve_overloaded_atomic_exchange,
3857 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
3858 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
3859 error_mark_node for error conditions.
9faeb493 3860
a5952633
RG
38612011-11-08 Richard Guenther <rguenther@suse.de>
3862
3863 PR middle-end/51010
3864 c-family/
3865
0a35513e
AH
38662011-11-07 Richard Henderson <rth@redhat.com>
3867 Aldy Hernandez <aldyh@redhat.com>
3868 Torvald Riegel <triegel@redhat.com>
3869
3870 Merged from transactional-memory.
3871
3872 * c-common.c (handle_tm_wrap_attribute,
3873 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
3874 (struct c_common_reswords): Added __transaction* keywords.
3875 (struct c_common_attribute_table): Added transaction* and tm_regparm
3876 attributes.
3877 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
3878 masks.
3879 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
3880 find_tm_attribute): Declare.
3881
6d87092d
JM
38822011-11-07 Jason Merrill <jason@redhat.com>
3883
3884 PR c++/35688
3885 * c-common.c, c-common.h: Revert yesterday's changes.
3886
8e7860a1
JM
38872011-11-06 Jason Merrill <jason@redhat.com>
3888
3889 PR c++/35688
3890 * c-common.c (decl_has_visibility_attr): Split out from...
3891 (c_determine_visibility): ...here.
3892 * c-common.h: Declare it.
3893
d19fa6b5
JM
38942011-11-06 Joseph Myers <joseph@codesourcery.com>
3895
3896 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
3897 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
3898 type.
3899 (check_user_alignment): New. Split out of
3900 handle_aligned_attribute. Disallow integer constants with
3901 noninteger types. Conditionally allow zero.
3902 (handle_aligned_attribute): Use check_user_alignment.
3903 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
3904
86951993
AM
39052011-11-06 Andrew MacLeod <amacleod@redhat.com>
3906 Richard Henderson <rth@redhat.com>
3907
3908 Merged from cxx-mem-model.
3909
3910 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 3911 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
3912 parameters that are the same type size.
3913 (get_atomic_generic_size): New. Find size of generic
3914 atomic function parameters and do typechecking.
3915 (add_atomic_size_parameter): New. Insert size into parameter list.
3916 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
3917 either __atomic_exchange_n or external library call.
9faeb493 3918 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 3919 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 3920 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
3921 __atomic_load_n or an external library call.
3922 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
3923 __atomic_store_n or an external library call.
3924 (resolve_overloaded_builtin): Handle new __atomic builtins.
3925
cf9e9959
EB
39262011-11-04 Eric Botcazou <ebotcazou@adacore.com>
3927
3928 PR c++/50608
3929 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
3930 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
3931 <INDIRECT_REF>: Return the argument.
3932 <ARRAY_REF>: Remove special code for negative offset.
3933 Call fold_build_pointer_plus instead of size_binop.
3934 (fold_offsetof): Remove STOP_REF argument and adjust.
3935 * c-common.h (fold_offsetof_1): Declare.
3936 (fold_offsetof): Remove STOP_REF argument.
3937
25339f10
JM
39382011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
3939
3940 PR c++/50810
3941 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3942 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3943 Wnarrowing for C++0x and C++98.
3944 * c.opt ([Wnarrowing]): Update.
3945
89401152
PC
39462011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
3947
3948 PR c++/44277
3949 * c.opt: Add Wzero-as-null-pointer-constant.
3950
97e3ad20
JM
39512011-10-31 Jason Merrill <jason@redhat.com>
3952
15694fdd
JM
3953 * c.opt (-fdeduce-init-list): Off by default.
3954
97e3ad20
JM
3955 PR c++/50920
3956 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
3957 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
3958 and -Wc++11-compat.
3959 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
3960
fb9120e3
RAV
39612011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
3962
3963 PR c++/30066
3964 * c.opt (fvisibility-inlines-hidden): Description change.
3965
3ce4f9e4
ESR
39662011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
3967
3968 Implement C++11 user-defined literals.
3969 * c-common.c (build_userdef_literal): New.
3970 * c-common.def: New tree code.
3971 * c-common.h (tree_userdef_literal): New tree struct and accessors.
3972 * c-lex.c (interpret_float): Add suffix parm.
3973 (c_lex_with_flags): Build literal tokens.
3974
5f53c243
PC
39752011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3976
3977 PR c++/50841
3978 Revert:
3979 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3980
3981 PR c++/50810
3982 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3983 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3984 Wnarrowing for C++0x and C++98.
3985 * c.opt ([Wnarrowing]): Update.
3986
263734e1
PC
39872011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3988
3989 PR c++/50810
3990 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3991 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3992 Wnarrowing for C++0x and C++98.
3993 * c.opt ([Wnarrowing]): Update.
3994
d2e312d7
PC
39952011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
3996
3997 PR c++/45385
3998 * c-common.c (conversion_warning): Remove code looking for
3999 artificial operands.
4000
d17687f6
DS
40012011-10-18 Dodji Seketeli <dodji@redhat.com>
4002
4003 PR bootstrap/50760
4004 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 4005 !NO_IMPLICIT_EXTERN_C.
d17687f6 4006
fc8396e9
PC
40072011-10-17 Michael Spertus <mike_spertus@symantec.com>
4008
4009 * c-common.c (c_common_reswords): Add __bases,
4010 __direct_bases.
4011 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
4012
40132011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
4014
4015 PR c++/50757
4016 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
4017
847e697a
TT
40182011-10-15 Tom Tromey <tromey@redhat.com>
4019 Dodji Seketeli <dodji@redhat.com>
4020
4021 * c.opt (fdebug-cpp): New option.
4022 * c-opts.c (c_common_handle_option): Handle the option.
4023 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
4024 output stream in parameter. Factorized from ...
4025 (maybe_print_line): ... this. Dump location debug information when
4026 -fdebug-cpp is in effect.
4027 (print_line_1): New static function. Takes an output stream in
4028 parameter. Factorized from ...
4029 (print_line): ... here. Dump location information when -fdebug-cpp
4030 is in effect.
4031 (scan_translation_unit): Dump location information when
4032 -fdebug-cpp is in effect.
4033
92582b75
TT
40342011-10-15 Tom Tromey <tromey@redhat.com>
4035 Dodji Seketeli <dodji@redhat.com>
4036
4037 * c.opt (ftrack-macro-expansion): New option. Handle it with and
4038 without argument.
4039 * c-opts.c (c_common_handle_option)<case
4040 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
4041 cases. Handle -ftrack-macro-expansion with and without argument.
4042
46427374
TT
40432011-10-15 Tom Tromey <tromey@redhat.com>
4044 Dodji Seketeli <dodji@redhat.com>
4045
4046 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
4047 (print_line, cb_define, do_line_change): Adjust to avoid touching
4048 the internals of struct line_map. Use the public API instead.
4049 * c-pch.c (c_common_read_pch): Likewise.
4050 * c-lex.c (fe_file_change): Likewise.
4051
fc8396e9
PC
40522011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
4053
4054 PR c++/17212
4055 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
4056
40572011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
4058
4059 PR c++/33067
4060 * c-pretty-print.c (pp_c_floating_constant): Output
4061 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
4062
e79983f4
MM
40632011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
4064
4065 * c-common.c (def_builtin_1): Delete old interface with two
4066 parallel arrays to hold standard builtin declarations, and replace
4067 it with a function based interface that can support creating
4068 builtins on the fly in the future. Change all uses, and poison
4069 the old names. Make sure 0 is not a legitimate builtin index.
4070 * c-omp.c (c_finish_omp_barrier): Ditto.
4071 (c_finish_omp_taskwait): Ditto.
4072 (c_finish_omp_flush): Ditto.
4073
6637388f
TG
40742011-10-11 Tristan Gingold <gingold@adacore.com>
4075
4076 * c.opt: (fallow-parameterless-variadic-functions): New.
4077
3797cb21
DS
40782011-09-08 Dodji Seketeli <dodji@redhat.com>
4079
4080 PR c++/33255 - Support -Wunused-local-typedefs warning
4081 * c-common.h (struct c_language_function::local_typedefs): New
4082 field.
9faeb493
UB
4083 (record_locally_defined_typedef, maybe_record_typedef_use)
4084 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 4085 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
4086 (maybe_record_typedef_use)
4087 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
4088 * c.opt: Declare new -Wunused-local-typedefs flag.
4089
693ddb1b
EB
40902011-09-06 Eric Botcazou <ebotcazou@adacore.com>
4091
4092 PR middle-end/50266
4093 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
4094 computations.
4095
830c740f
RG
40962011-09-05 Richard Guenther <rguenther@suse.de>
4097
4098 * c-common.c (complete_array_type): Use ssize_int (-1) instead
4099 of integer_minus_one_node for empty array upper bounds.
4100
892a371f
DS
41012011-08-28 Dodji Seketeli <dodji@redhat.com>
4102
4103 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
4104 it's the first time it's being called on this main TU.
4105
0e3fdb48
RB
41062011-08-24 Richard Guenther <rguenther@suse.de>
4107
4108 PR c/49396
4109 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
4110
41112011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
4112
4113 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
4114 defined in cpp_init_builtins and c_cpp_builtins.
4115
d4a83c10
JM
41162011-08-19 Joseph Myers <joseph@codesourcery.com>
4117
4118 * c-common.c (c_common_reswords): Add __builtin_complex.
4119 * c-common.h (RID_BUILTIN_COMPLEX): New.
4120
bbceee64
JM
41212011-08-18 Joseph Myers <joseph@codesourcery.com>
4122
4123 * c-common.c (c_common_reswords): Add _Noreturn.
4124 (keyword_is_function_specifier): Handle RID_NORETURN.
4125 * c-common.h (RID_NORETURN): New.
4126
0e3a99ae
AS
41272011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4128
4129 * c-common.c (unsafe_conversion_p): New function. Check if it is
4130 unsafe to convert an expression to the type.
4131 (conversion_warning): Adjust, use unsafe_conversion_p.
4132 * c-common.h (unsafe_conversion_p): New function declaration.
4133
20906c66
JJ
41342011-08-02 Jakub Jelinek <jakub@redhat.com>
4135
4136 * c-common.h (c_finish_omp_atomic): Adjust prototype.
4137 (c_finish_omp_taskyield): New prototype.
4138 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
4139 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
4140 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
4141 or RHS1 have side-effects, evaluate those too in the right spot,
4142 if it is a decl and LHS is also a decl, error out if they
4143 aren't the same.
4144 (c_finish_omp_taskyield): New function.
4145 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
4146 * c-pragma.c (omp_pragmas): Add taskyield.
4147 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
4148 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
4149 PRAGMA_OMP_CLAUSE_MERGEABLE.
4150
770e5a2e
DS
41512011-07-25 Dodji Seketeli <dodji@redhat.com>
4152
4153 * c-common.h (set_underlying_type): Remove parm name from
4154 declaration.
4155
1baae426
RG
41562011-07-25 Romain Geissler <romain.geissler@gmail.com>
4157
4158 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 4159
fcb21722
JM
41602011-07-22 Jason Merrill <jason@redhat.com>
4161
76f86d00
JM
4162 PR c++/49793
4163 * c.opt (Wnarrowing): New.
4164
3a636414
JM
4165 PR c++/30112
4166 * c-common.h: Declare c_linkage_bindings.
4167 * c-pragma.c (handle_pragma_redefine_extname): Use it.
4168
fcb21722
JM
4169 PR c++/49813
4170 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
4171 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
4172 as flag_isoc99 for 'restrict'.
4173 (pp_c_specifier_qualifier_list): Likewise for _Complex.
4174
02614448
ILT
41752011-07-21 Ian Lance Taylor <iant@google.com>
4176
4177 PR middle-end/49705
4178 * c-common.c (c_disable_warnings): New static function.
4179 (c_enable_warnings): New static function.
4180 (c_fully_fold_internal): Change local unused_p to bool. Call
4181 c_disable_warnings and c_enable_warnings rather than change
4182 c_inhibit_evaluation_warnings.
4183
34429675
JM
41842011-07-20 Jason Merrill <jason@redhat.com>
4185
4186 PR c++/6709 (DR 743)
4187 PR c++/42603 (DR 950)
4188 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
4189 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
4190 (CPP_DECLTYPE): New.
4191 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
4192
5d49b6a7
RG
41932011-07-19 Richard Guenther <rguenther@suse.de>
4194
4195 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
4196 * c-omp.c (c_finish_omp_for): Likewise.
4197
e84a58ff
EB
41982011-07-12 Eric Botcazou <ebotcazou@adacore.com>
4199
4200 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
4201 body on the next line.
4202
329af3c7
JM
42032011-07-08 Jason Merrill <jason@redhat.com>
4204
4063e61b
JM
4205 PR c++/45437
4206 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
4207
329af3c7
JM
4208 PR c++/49673
4209 * c-common.c (c_apply_type_quals_to_decl): Don't check
4210 TYPE_NEEDS_CONSTRUCTING.
4211
1a072294
RG
42122011-07-06 Richard Guenther <rguenther@suse.de>
4213
4214 * c-common.c (c_common_nodes_and_builtins):
4215 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
4216
fce5dddd
RG
42172011-07-05 Richard Guenther <rguenther@suse.de>
4218
4219 * c-common.c (c_common_nodes_and_builtins): Build all common
4220 tree nodes first.
4221
45d439ac
JJ
42222011-06-27 Jakub Jelinek <jakub@redhat.com>
4223
56300785
JJ
4224 * c-common.h (c_tree_chain_next): New static inline function.
4225
45d439ac
JJ
4226 * c-common.c (check_builtin_function_arguments): Handle
4227 BUILT_IN_ASSUME_ALIGNED.
4228
e0a8ecf2
AM
42292011-06-21 Andrew MacLeod <amacleod@redhat.com>
4230
4231 * c-common.c: Add sync_ or SYNC__ to builtin names.
4232 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
4233
42342011-06-20 Pierre Vittet <piervit@pvittet.com>
4235
4236 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
4237 handler.
4238 (gen_pragma_handler): New union.
4239 (internal_pragma_handler): New type.
4240 (c_register_pragma_with_data)
4241 (c_register_pragma_with_expansion_and_data): New functions.
4242
4243 * c-pragma.c (registered_pragmas, c_register_pragma_1)
4244 (c_register_pragma, c_register_pragma_with_expansion)
4245 (c_invoke_pragma_handler): Changed to work with
4246 internal_pragma_handler.
4247 (c_register_pragma_with_data)
4248 (c_register_pragma_with_expansion_and_data): New functions.
4249
677f3fa8
JM
42502011-06-14 Joseph Myers <joseph@codesourcery.com>
4251
4252 * c-common.c: Include common/common-target.h.
4253 (handle_section_attribute): Use
4254 targetm_common.have_named_sections.
4255 * c-cppbuiltin.c: Include common/common-target.h.
4256 (c_cpp_builtins): Use targetm_common.except_unwind_info.
4257
d7fc8c14
RG
42582011-06-10 Richard Guenther <rguenther@suse.de>
4259
4260 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
4261 to print a IDENTIFIER_NODE.
4262
10e48e39
RO
42632011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4264 Joseph Myers <joseph@codesourcery.com>
4265
4266 * c.opt (fbuilding-libgcc): New option.
4267 * c-cppbuiltin.c (c_cpp_builtins): Define
4268 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
4269
6976ae51
JM
42702011-06-07 Jason Merrill <jason@redhat.com>
4271
3ff60975
JM
4272 * c-common.c (max_tinst_depth): Lower default to 900.
4273
6976ae51
JM
4274 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
4275
009db074
RG
42762011-06-07 Richard Guenther <rguenther@suse.de>
4277
4278 * c-common.c (c_common_nodes_and_builtins): Do not set
4279 size_type_node or call set_sizetype.
4280
b4592b92
DS
42812011-06-07 Dodji Seketeli <dodji@redhat.com>
4282
4283 PR debug/49130
4284 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 4285 type when using pointer comparison to compare types.
b4592b92 4286
014ab419
JW
42872011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
4288
4289 * c.opt: Add -Wdelete-non-virtual-dtor.
4290 * c-opts.c (c_common_handle_option): Include it in -Wall.
4291
4f60111f
NF
42922011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
4293
4294 PR bootstrap/49190
4295
4296 Revert:
4297 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4298
4299 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
4300 not tree_common.
4301
4cc4f2f4
JJ
43022011-05-27 Jakub Jelinek <jakub@redhat.com>
4303
4304 PR c++/49165
4305 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
4306 C++ don't call c_common_truthvalue_conversion on void type arms.
4307
38e01f9e
NF
43082011-05-27 Nathan Froyd <froydnj@codesourcery.com>
4309
4310 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
4311 (stmt_list_stack): Define.
4312 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
4313 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
4314
92e948a8
NF
43152011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4316
4317 * c-common.c (warning_candidate_p): Check for BLOCKs.
4318
a2fc3e63
NF
43192011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4320
4321 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
4322 not tree_common.
4323
0957c029
JJ
43242011-05-25 Jakub Jelinek <jakub@redhat.com>
4325
4326 * c-common.c (def_fn_type): Remove extra va_end.
4327
828fb3ba
JM
43282011-05-23 Jason Merrill <jason@redhat.com>
4329
4330 PR c++/48106
4331 * c-common.c (c_common_get_narrower): New.
4332 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
4333
dde05067
NF
43342011-05-23 Nathan Froyd <froydnj@codesourcery.com>
4335
4336 * c-common.h (check_function_arguments): Tweak prototype of
4337 check_function_arguments.
4338 * c-common.c (check_function_arguments): Likewise. Adjust
4339 calls to check_function_nonnull, check_function_format, and
4340 check_function_sentinel.
4341 (check_function_sentinel): Take a FUNCTION_TYPE rather than
4342 separate attributes and typelist arguments. Use
4343 FOREACH_FUNCTION_ARGS to iterate over argument types.
4344
3c0d13bf
PC
43452011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
4346
4347 * c-common.c (c_common_reswords): Reorder.
4348 * c-common.h (rid): Likewise.
4349
8242dd04
NF
43502011-05-10 Nathan Froyd <froydnj@codesourcery.com>
4351
4352 * c-common.c (def_fn_type): Don't call build_function_type, call
4353 build_function_type_array or build_varargs_function_type_array
4354 instead.
4355 (c_common_nodes_and_builtins): Likewise.
4356
3d528853
NF
43572011-05-05 Nathan Froyd <froydnj@codesourcery.com>
4358
4359 * c-common.c (c_add_case_label): Omit the loc argument to
4360 build_case_label.
4361 * c-common.h (build_case_label): Remove.
4362 * c-semantics.c (build_case_label): Remove.
4363
a04a722b
JM
43642011-05-05 Joseph Myers <joseph@codesourcery.com>
4365
4366 * c-objc.h (objc_start_method_definition): Update prototype.
4367 * stub-objc.c (objc_start_method_definition): Add extra parameter.
4368
e19a18d4
NF
43692011-05-04 Nathan Froyd <froydnj@codesourcery.com>
4370
4371 * c-common.c (check_main_parameter_types): Reindent. Don't use
4372 TYPE_ARG_TYPES directly.
4373 (handle_nonnull_attribute): Likewise.
4374 (sync_resolve_params): Likewise.
4375 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
4376 to check_format_string.
4377 (handle_format_attribute): Likewise.
4378 (check_format_string): Take a function type to examine instead of
4379 a type list. Use a function_arg_iterator to step through argument
4380 types.
4381
c62c040f
RG
43822011-05-04 Richard Guenther <rguenther@suse.de>
4383
4384 * c-common.c (fix_string_type): Use size_int for index type bounds.
4385 (start_fname_decls): Do not pass NULL to build_int_cst.
4386 (c_init_attributes): Likewise.
4387 * c-lex.c (c_lex_with_flags): Likewise.
4388
c12ff9d8
JM
43892011-04-27 Jason Merrill <jason@redhat.com>
4390
4391 * c-common.c (make_tree_vector_from_list): New.
4392 * c-common.h: Declare it.
4393
304dfbe3
RG
43942011-04-26 Richard Guenther <rguenther@suse.de>
4395
4396 PR preprocessor/48248
4397 * c-ppoutput.c (maybe_print_line): Always optimize newlines
4398 for output size with -P.
4399
3c0d13bf
PC
44002011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
4401
4402 * c-common.c (struct c_common_resword): Add __underlying_type.
4403 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
4404
04695783
JM
44052011-04-20 Jim Meyering <meyering@redhat.com>
4406
4407 * c-format.c (init_dollar_format_checking): Remove useless
4408 if-before-free.
4409
0dc33c3c
NP
44102011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
4411
4412 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 4413 (objc_detect_field_duplicates): New.
0dc33c3c 4414 * stub-objc.c: Likewise.
3c0d13bf 4415
c59633d9
NP
44162011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4417
4418 * stub-objc.c (objc_declare_protocols): Renamed to
4419 objc_declare_protocol.
4420 * c-objc.h: Likewise.
3c0d13bf 4421
32dabdaf
NP
44222011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4423
4424 * stub-objc.c (objc_declare_class): Updated argument name.
4425
81f653d6
NF
44262011-04-12 Nathan Froyd <froydnj@codesourcery.com>
4427
4428 * c-common.h (c_common_init_ts): Declare.
4429 * c-common.c (c_common_init_ts): Define.
4430
eb345401
NP
44312011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4432
4433 * c-objc.h (objc_build_message_expr): Updated prototype.
4434 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 4435
a358e188
MJ
44362011-04-12 Martin Jambor <mjambor@suse.cz>
4437
4438 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
4439 of cgraph_node.
4440
e6313a78
RG
44412011-04-11 Richard Guenther <rguenther@suse.de>
4442
4443 * c-common.c (complete_array_type): Build a range type of
4444 proper type.
4445
dcf0c47e
NF
44462011-04-08 Nathan Froyd <froydnj@codesourcery.com>
4447
4448 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
4449 (handle_type_generic_attribute): Likewise.
4450
1ee44b26
JM
44512011-04-07 Jason Merrill <jason@redhat.com>
4452
4453 PR c++/48450
4454 * c-common.c (c_common_truthvalue_conversion): Don't ignore
4455 conversion from C++0x scoped enum.
4456
acce4e77
JM
44572011-04-06 Joseph Myers <joseph@codesourcery.com>
4458
4459 * c-target-def.h: New file.
4460 * c-target.def: New file.
4461 * c-target.h: New file.
4462 * c-common.c (targetcm): Don't define here.
4463 * c-common.h (default_handle_c_option): Declare.
4464 * c-format.c: Include c-target.h instead of target.h.
4465 * c-opts.c: Include c-target.h instead of target.h. Explicitly
4466 include tm.h.
4467 (default_handle_c_option): Move from targhooks.c.
4468
e2eefb55
JJ
44692011-03-29 Jakub Jelinek <jakub@redhat.com>
4470
4471 PR preprocessor/48248
4472 * c-ppoutput.c (print): Add src_file field.
4473 (init_pp_output): Initialize it.
4474 (maybe_print_line): Don't optimize by adding up to 8 newlines
4475 if map->to_file and print.src_file are different file.
4476 (print_line): Update print.src_file.
4477
ba78087b
KT
44782011-03-25 Kai Tietz <ktietz@redhat.com>
4479
4480 * c-ada-spec.c (compare_comment): Use filename_cmp
4481 instead of strcmp for filename.
4482
0edf1bb2
JL
44832011-03-25 Jeff Law <law@redhat.com>
4484
adfac8df 4485 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 4486
c7dc8804
JM
44872011-03-25 Jason Merrill <jason@redhat.com>
4488
4489 * c.opt: Add -std=c++03.
4490
d1d879b1
EB
44912011-03-22 Eric Botcazou <ebotcazou@adacore.com>
4492
4493 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
4494
62d784f7
KT
44952011-03-17 Kai Tietz
4496
4497 PR target/12171
5050afdf
KT
4498 * c-pretty-print.c (pp_c_specifier_qualifier_list):
4499 Display allowed attributes for function pointer types.
4500 (pp_c_attributes_display): New function to display
4501 attributes having affects_type_identity flag set to true.
4502 * c-pretty-print.h (pp_c_attributes_display): New prototype.
4503
62d784f7
KT
4504 * c-common.c (c_common_attribute_table):
4505 Add new element.
4506 (c_common_format_attribute_table): Likewise.
4507
82d37118
JM
45082011-03-18 Jason Merrill <jason@redhat.com>
4509
49a000c3
JM
4510 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
4511 * c-common.h: Don't declare it here.
4512 * c-common.c: Or define it here.
4513 * c-opts.c (c_common_handle_option): Or set it here.
4514
82d37118
JM
4515 PR c++/35315
4516 * c-common.c (handle_transparent_union_attribute): Don't
4517 make a duplicate type in C++.
4518
17bc631c
JM
45192011-03-15 Jason Merrill <jason@redhat.com>
4520
4521 * c-common.c (max_constexpr_depth): New.
4522 * c-common.h: Declare it.
4523 * c-opts.c (c_common_handle_option): Set it.
4524 * c.opt (fconstexpr-depth): New option.
4525
1b9b91a6
JM
45262011-03-11 Jason Merrill <jason@redhat.com>
4527
f231b5ff
JM
4528 * c-common.c (attribute_takes_identifier_p): Add missing const.
4529
1b9b91a6
JM
4530 PR c++/46803
4531 * c-common.c (attribute_takes_identifier_p): Assume that an
4532 unknown attribute takes an identifier.
4533
a19e4d44
NF
45342011-03-07 Nathan Froyd <froydnj@codesourcery.com>
4535
4536 PR c/47786
4537 * c-common.c (c_type_hash): Call list_length instead of iterating
4538 through DECL_CHAIN. Rename 'i' to 'n_elements'.
4539
982d62f6
JJ
45402011-02-19 Jakub Jelinek <jakub@redhat.com>
4541
4542 PR c/47809
4543 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
4544
0a256240
NP
45452011-02-17 Iain Sandoe <iains@gcc.gnu.org>
4546
4547 * c.opt (fobjc-abi-version=) New.
4548 (fobjc-nilcheck): New.
4549
ba9e6dd5
NF
45502011-02-03 Nathan Froyd <froydnj@codesourcery.com>
4551
4552 PR c++/46890
4553 * c-common.h (keyword_is_decl_specifier): Declare.
4554 * c-common.c (keyword_is_decl_specifier): Define.
4555 (keyword_is_function_specifier): New function.
4556
7273813a
JJ
45572011-01-26 Jakub Jelinek <jakub@redhat.com>
4558
4559 PR c/47473
4560 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
4561 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
4562 REAL_TYPE.
4563
908ef79b
AC
45642011-01-26 Arnaud Charlet <charlet@adacore.com>
4565
4566 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
4567
237e9384
JJ
45682011-01-26 Jakub Jelinek <jakub@redhat.com>
4569
4570 PR pch/47430
4571 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
4572 after init_c_lex if pch_file is set.
4573
47ea1edf
DK
45742011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
4575
d4dba752 4576 PR c++/43601
47ea1edf
DK
4577 * c.opt (-fkeep-inline-dllexport): New switch.
4578
2aa9c6ae
RG
45792011-01-12 Richard Guenther <rguenther@suse.de>
4580
4581 PR middle-end/32511
4582 * c-common.c (handle_weak_attribute): Warn instead of error
4583 on declaring an inline function weak.
4584
7bd11157
TT
45852011-01-05 Tom Tromey <tromey@redhat.com>
4586
4587 * c-common.h (lvalue_error): Update.
4588 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
4589 not error.
4590
0e66e494 45912010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 4592
b4f588c4
NP
4593 PR objc/47075
4594 * c-objc.h (objc_finish_message_expr): Added argument to
4595 prototype.
4596
f4da8dce
NF
45972010-12-22 Nathan Froyd <froydnj@codesourcery.com>
4598
4599 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
4600 Use prototype_p.
4601
46270f14
NP
46022010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
4603
4604 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 4605 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 4606
4816c593
NF
46072010-12-10 Nathan Froyd <froydnj@codesourcery.com>
4608
4609 * c-common.h (readonly_error): Declare.
4610 * c-common.c (readonly_error): Define.
4611
7a6daeb0
NF
46122010-12-09 Nathan Froyd <froydnj@codesourcery.com>
4613
4614 * c-common.h (invalid_indirection_error): Declare.
4615 * c-common.c (invalid_indirection_error): Define.
4616
892f6119
RG
46172010-12-03 Richard Guenther <rguenther@suse.de>
4618
4619 PR c/46745
4620 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
4621 (pp_c_unary_expression): Likewise.
4622 (pp_c_expression): Likewise.
4623
6c39e757
NP
46242010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
4625
4626 * c-common.h (objc_finish_function): New.
4627 (objc_non_volatilized_type): Removed.
4628 (objc_type_quals_match): Removed.
4629 * stub-objc.c (objc_finish_function): New.
4630 (objc_non_volatilized_type): Removed.
4631 (objc_type_quals_match): Removed.
9faeb493 4632
7c475d11
JM
46332010-11-30 Joseph Myers <joseph@codesourcery.com>
4634
4635 * c-common.h (parse_optimize_options): Declare.
4636 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
4637 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
4638
71f3e391
JM
46392010-11-29 Joseph Myers <joseph@codesourcery.com>
4640
4641 * c-opts.c (check_deps_environment_vars): Use getenv instead of
4642 GET_ENVIRONMENT.
4643 * c-pch.c (O_BINARY): Don't define here.
4644 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
4645
d5fabb58
JM
46462010-11-25 Joseph Myers <joseph@codesourcery.com>
4647
4648 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
4649 targetm.except_unwind_info.
4650
299404a1
JM
46512010-11-23 Joseph Myers <joseph@codesourcery.com>
4652
4653 * c-opts.c (c_common_handle_option): Pass location to
4654 set_struct_debug_option.
4655
c98cd5bf
JM
46562010-11-23 Joseph Myers <joseph@codesourcery.com>
4657
4658 * c-common.c (visibility_options): Move from ../opts.c.
4659 * c-common.h (struct visibility_flags, visibility_options):
4660 Declare here.
4661 * c-opts.c (finish_options): Rename to c_finish_options.
4662 (c_common_init): Update call to finish_options.
4663
a9546771
NP
46642010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
4665
4666 PR objc/34033
4667 * c-lex.c (lex_string): Check that each string in an Objective-C
4668 string concat sequence starts with either one or zero '@', and
4669 that there are no spurious '@' signs at the end.
4670
24a57808
JM
46712010-11-20 Joseph Myers <joseph@codesourcery.com>
4672
4673 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
4674 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
4675 HANDLE_PRAGMA_VISIBILITY.
4676 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
4677 HANDLE_PRAGMA_VISIBILITY): Don't define.
4678 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
4679
a9aa2c3a
NF
46802010-11-20 Nathan Froyd <froydnj@codesourcery.com>
4681
4682 PR c++/16189
4683 PR c++/36888
4684 PR c++/45331
4685 * c-common.h (keyword_begins_type_specifier): Declare.
4686 (keyword_is_storage_class_specifier): Declare.
4687 (keyword_is_type_qualifier): Declare.
4688 * c-common.c (keyword_begins_type_specifier): New function.
4689 (keyword_is_storage_class_specifier): New function.
4690 (keyword_is_type_qualifier): Declare.
4691
5386338c
JM
46922010-11-19 Joseph Myers <joseph@codesourcery.com>
4693
4694 PR c/46547
4695 * c-common.c (in_late_binary_op): Define.
4696 (c_common_truthvalue_conversion): Check in_late_binary_op before
4697 calling c_save_expr.
4698 * c-common.h (in_late_binary_op): Declare.
4699
69ccdddb
JM
47002010-11-19 Joseph Myers <joseph@codesourcery.com>
4701
4702 * c-opts.c (c_common_handle_option): Update calls to
4703 set_struct_debug_option.
4704
6b192a09
NP
47052010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
4706
4707 * c-common.h (objc_declare_protocols): Added additional argument.
4708 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 4709
fb52b50a
NF
47102010-11-18 Nathan Froyd <froydnj@codesourcery.com>
4711
4712 PR c/33193
4713 * c-common.h (build_real_imag_expr): Declare.
4714 * c-semantics.c (build_real_imag_expr): Define.
4715
b37421c6
JM
47162010-11-17 Joseph Myers <joseph@codesourcery.com>
4717
4718 * c-opts.c (c_common_parse_file): Take no arguments.
4719 * c-common.h (c_common_parse_file): Update prototype.
4720
07078664
JJ
47212010-11-16 Jakub Jelinek <jakub@redhat.com>
4722
4723 PR c++/46401
4724 * c-common.c (warning_candidate_p): Don't track non-const calls
4725 or STRING_CSTs.
4726
c6a13190
ILT
47272010-11-15 Ian Lance Taylor <iant@google.com>
4728
4729 * c-lex.c (init_c_lex): Set macro debug callbacks if
4730 flag_dump_go_spec is set.
4731
925e8657
NP
47322010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
4733
4734 * c-common.h (objc_build_incr_expr_for_property_ref): New.
4735 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
4736
bb0a9581
NF
47372010-11-15 Nathan Froyd <froydnj@codesourcery.com>
4738
4739 PR preprocessor/45038
4740 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
4741 dialects.
4742
c5fa0890
JM
47432010-11-12 Joseph Myers <joseph@codesourcery.com>
4744
4745 * c-common.h (c_family_lang_mask): Declare.
4746 * c-opts.c (c_family_lang_mask): Make extern.
4747 * c-pragma.c (handle_pragma_diagnostic): Use
4748 control_warning_option.
4749
a4d8c676
JM
47502010-11-12 Joseph Myers <joseph@codesourcery.com>
4751
4752 * c-common.c (parse_optimize_options): Update call to
4753 decode_options.
4754 * c-common.h (c_common_handle_option): Update prototype.
4755 * c-opts.c (c_common_handle_option): Take location_t parameter and
4756 pass it to other functions.
4757
f954bd2c
JM
47582010-11-11 Joseph Myers <joseph@codesourcery.com>
4759
4760 * c-opts.c (warning_as_error_callback): Remove.
4761 (c_common_initialize_diagnostics): Don't call
4762 register_warning_as_error_callback.
4763 (c_common_handle_option): Handle -Werror=normalized= here.
4764
d8a07487
JM
47652010-11-10 Joseph Myers <joseph@codesourcery.com>
4766
4767 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
4768 in diagnostic.
4769 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
4770 letter.
4771 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
4772 Remove trailing '.' from diagnostics.
4773 * c.opt (Wwrite-strings_: Avoid '`' in help text.
4774
d5478783
JM
47752010-11-10 Joseph Myers <joseph@codesourcery.com>
4776
4777 * c-common.c (parse_optimize_options): Pass global_dc to
4778 decode_options.
4779 * c-opts.c (c_common_handle_option): Pass &global_options to
4780 set_Wstrict_aliasing.
4781 * c.opt (v): Don't mark Common or document here.
4782
91ebb981
IS
47832010-11-06 Iain Sandoe <iains@gcc.gnu.org>
4784
4785 PR target/44981
4786 * c-format.c (format_type): New type gcc_objc_string_format_type.
4787 (valid_stringptr_type_p): New.
4788 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 4789 (check_format_string): Pass expected type, use
91ebb981
IS
4790 valid_stringptr_type_p (), check that the format string types are
4791 consistent with the format specification.
4792 (decode_format_attr): Warn if NSString is used outside objective-c.
4793 (format_types_orig): Add NSString.
4794 (format_name): New.
4795 (format_flags): New.
4796 (check_format_arg): Handle format strings requiring an external parser.
4797 first_target_format_type: New variable.
4798 (handle_format_attribute): Set up first_target_format_type, pass the
4799 expected format arg string type to check_format_string().
4800 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
4801 * stub-objc.c (objc_string_ref_type_p): New.
4802 (objc_check_format_arg): New.
4803
bede2adc
NP
48042010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
4805
9faeb493 4806 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
4807 * c-common.h (objc_build_class_component_ref): New.
4808 * stub-objc.c (objc_build_class_component_ref): New.
4809
9a179d01
NP
48102010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
4811
4812 * c.opt (Wproperty-assign-default): New option.
4813
22d8d616
NP
48142010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
4815
4816 Implemented -fobjc-std=objc1 flag.
4817 * c.opt (fobjc-std=objc1): New option.
4818
2debdb4f
NP
48192010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
4820
4821 Implemented format and noreturn attributes for Objective-C methods.
4822 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
4823 attribute for Objective-C methods.
4824
ec52b111
JM
48252010-10-31 Jason Merrill <jason@redhat.com>
4826
4827 * c-common.c (conversion_warning, warn_for_collisions_1): Use
4828 EXPR_LOC_OR_HERE.
4829
46a88c12
NP
48302010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
4831
4832 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
4833 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
4834 (objc_add_property_declaration): Removed arguments for copies and
4835 ivar.
4836 (objc_build_getter_call): Renamed to
4837 objc_maybe_build_component_ref.
4838 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4839 (objc_is_property_ref): New.
4840 * c-common.c (c_common_reswords): Removed copies and ivar.
4841 * stub-objc.c (objc_add_property_declaration): Removed arguments
4842 for copies and ivar.
4843 (objc_build_getter_call): Renamed to
4844 objc_maybe_build_component_ref.
4845 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4846 (objc_is_property_ref): New.
9faeb493 4847
1e4bf85b
AC
48482010-10-29 Arnaud Charlet <charlet@adacore.com>
4849 Matthew Gingell <gingell@adacore.com>
4850
4851 * c-ada-spec.c (separate_class_package): New function.
4852 (pp_ada_tree_identifier): Prefix references to C++ classes with the
4853 name of their enclosing package.
4854 (print_ada_declaration): Use separate_class_package.
4855
81f0bab2
JM
48562010-10-27 Jason Merrill <jason@redhat.com>
4857
2b08f2c5
JM
4858 * c-common.c (c_common_reswords): Add __is_literal_type.
4859 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
4860
81f0bab2
JM
4861 * c-common.c (check_case_value): Remove special C++ code.
4862
200290f2
NP
48632010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4864
4865 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
4866 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
4867 and RID_LAST_PATTR.
4868 (objc_add_property_declaration): Added additional arguments.
4869 (objc_property_attribute_kind): Removed.
4870 (objc_set_property_attr): Removed.
4871 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
4872 copy and nonatomic.
4873 * stub-objc.c (objc_add_property_declaration): Added additional
4874 arguments.
4875 (objc_set_property_attr): Removed.
9faeb493 4876
f614132b
NP
48772010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4878
4879 * c-common.h (objc_add_property_variable): Renamed to
4880 objc_add_property_declaration. Added location argument.
4881 * stub-objc.c (objc_add_property_variable): Same change.
4882
b8a18805
NP
48832010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
4884
4885 * c-common.h (objc_maybe_printable_name): New.
4886 * stub-objc.c (objc_maybe_printable_name): New.
4887
30cd1c5d
AS
48882010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4889 Andrew Pinski <pinskia@gmail.com>
4890
4891 * c-common.h (c_common_mark_addressable_vec): Declare.
4892 * c-common.c (c_common_mark_addressable_vec): New function.
4893
249a82c4
NP
48942010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
4895
4896 * c-common.h (objc_set_method_type): Removed.
4897 (objc_add_method_declaration): Added boolean argument.
4898 (objc_start_method_definition): Same change.
4899 (objc_build_method_signature): Same change.
4900 * stub-objc.c (objc_set_method_type): Removed.
4901 (objc_add_method_declaration): Added boolean argument.
4902 (objc_start_method_definition): Same change.
4903 (objc_build_method_signature): Same change.
4904
977e30bc
NP
49052010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
4906
4907 * c-common.h (finish_file): Removed.
4908 (objc_write_global_declarations): New.
4909 * c-opts.c (c_common_parse_file): Do not call finish_file.
4910 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 4911
da57d1b9
NP
49122010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4913
4914 Implemented parsing @synthesize and @dynamic for
4915 Objective-C/Objective-C++.
4916 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
4917 (objc_add_synthesize_declaration): New.
4918 (objc_add_dynamic_declaration): New.
4919 * c-common.c (c_common_reswords): Add synthesize and dynamic.
4920 * stub-objc.c (objc_add_synthesize_declaration): New.
4921 (objc_add_dynamic_declaration): New.
9faeb493 4922
0069111f
MM
49232010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
4924
4925 PR target/46041
4926 * c-cppbuiltin.c (mode_has_fma): Move function here from
4927 builtins.c. Don't use the fma optab, instead just use the
4928 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
4929 using -save-temps.
4930
e426b47b
NP
49312010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4932
4933 Merge from 'apple/trunk' branch on FSF servers.
0069111f 4934
e426b47b
NP
4935 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
4936
9faeb493 4937 Radar 4330422
e426b47b
NP
4938 * c-common.h (objc_non_volatilized_type): New declaration
4939 * stub-objc.c (objc_non_volatilized_type): New stub.
4940
90fbfdc3
NP
49412010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
4942
e426b47b 4943 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
4944
4945 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
4946
9faeb493 4947 Radar 4133425
90fbfdc3 4948 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 4949 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 4950
c37d8c30
IS
49512010-10-17 Iain Sandoe <iains@gcc.gnu.org>
4952
4953 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
4954 * c-common.h (enum rid): Add RID_AT_PACKAGE.
4955 (objc_ivar_visibility_kind): New enum.
4956 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 4957 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
4958 visibility enum.
4959
1b1562a5
MM
49602010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
4961
4962 * c-cppbuiltin.c (builtin_define_float_constants): Emit
4963 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
4964 has the appropriate fma builtins.
4965 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
4966
668ea4b1
IS
49672010-10-14 Iain Sandoe <iains@gcc.gnu.org>
4968
1b1562a5 4969 merge from FSF apple 'trunk' branch.
668ea4b1 4970 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 4971
668ea4b1
IS
4972 Radars 4436866, 4505126, 4506903, 4517826
4973 * c-common.c (c_common_resword): Define @property and its attributes.
4974 * c-common.h: Define property attribute enum entries.
4975 (OBJC_IS_PATTR_KEYWORD): New.
4976 (objc_property_attribute_kind): New enum.
4977 Declare objc_set_property_attr (), objc_add_property_variable (),
4978 objc_build_getter_call () and objc_build_setter_call ().
4979 * stub-objc.c (objc_set_property_attr): New stub.
4980 (objc_add_property_variable): Likewise.
4981 (objc_build_getter_call): Likewise.
4982 (objc_build_setter_call) Likewise.
1b1562a5 4983
a1178b30
IS
49842010-10-13 Iain Sandoe <iains@gcc.gnu.org>
4985
1b1562a5 4986 merge from FSF apple 'trunk' branch.
a1178b30
IS
4987 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
4988
4989 Radar 3803157 (method attributes)
4990 * c-common.c (handle_deprecated_attribute): Recognize
4991 objc methods as valid declarations.
4992 * c-common.h: Declare objc_method_decl ().
1b1562a5 4993 * stub-objc.c (objc_method_decl): New stub.
a1178b30 4994
a75bfaa6
JM
49952010-10-08 Joseph Myers <joseph@codesourcery.com>
4996
4997 * c-common.c (parse_optimize_options): Call
4998 decode_cmdline_options_to_array_default_mask before
4999 decode_options. Update arguments to decode_options.
5000 * c-common.h (c_common_init_options_struct): Declare.
5001 * c-opts.c (c_common_init_options_struct): New. Split out from
5002 c_common_init_options.
5003
f05b9d93
NP
50042010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
5005
5006 Implemented fast enumeration for Objective-C.
5007 * c-common.h (objc_finish_foreach_loop): New.
5008 * stub-objc.c (objc_finish_foreach_loop): New.
5009
1ebe4b4f
JM
50102010-10-05 Joseph Myers <joseph@codesourcery.com>
5011
5012 * c-common.h (struct diagnostic_context): Don't declare here.
5013 (c_common_initialize_diagnostics): Declare using
5014 diagnostic_context typedef.
5015 * c-opts.c (c_common_handle_option): Pass global_dc to
5016 handle_generated_option.
5017
d4d24ba4
JM
50182010-10-04 Joseph Myers <joseph@codesourcery.com>
5019
5020 * c-opts.c (c_common_handle_option): Pass &global_options_set to
5021 handle_generated_option.
5022
478a1c5b
ILT
50232010-10-03 Ian Lance Taylor <iant@google.com>
5024
5025 * c.opt (-fplan9-extensions): New option.
5026
82a1c2fe
FXC
50272010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5028
5029 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
5030 Remove.
5031 (c_cpp_builtins): Call functions from cppbuiltin.c instead
5032 of duplicating code.
5033
92902b1b
IS
50342010-09-30 Iain Sandoe <iains@gcc.gnu.org>
5035
5036 * c-common.c: Add two new entries for @optional
5037 and @required keywords.
5038
5039 merge from FSF 'apple/trunk' branch.
5040 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
5041
5042 Radar 4386773
5043 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
5044 objective-c keywords.
5045 (objc_set_method_opt): New declaration.
5046 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 5047
46625112
JM
50482010-09-30 Joseph Myers <joseph@codesourcery.com>
5049
5050 * c-common.c (handle_optimize_attribute): Pass &global_options to
5051 cl_optimization_save and cl_optimization_restore.
5052 * c-opts.c (c_common_handle_option): Pass &global_options to
5053 handle_generated_option.
5054 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
5055 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
5056 &global_options to cl_optimization_restore.
5057
49b91f05
NP
50582010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
5059
5060 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
5061 Objective-C/Objective-C++ keywords.
5062
13ed556f 50632010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 5064
9faeb493
UB
5065 Merge from 'apple/trunk' branch on FSF servers.
5066
a6341d57
NP
5067 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
5068
5069 Radar 4281748
5070 * c-common.h (objc_check_global_decl): New declaration.
5071 * stub-objc.c (objc_check_global_decl): New stub.
5072
f0036cca
JM
50732010-09-29 Joseph Myers <joseph@codesourcery.com>
5074
5075 * c.opt: Don't use VarExists.
5076
e3339d0f
JM
50772010-09-29 Joseph Myers <joseph@codesourcery.com>
5078
5079 * c-common.c (c_cpp_error): Update names of diagnostic_context
5080 members.
5081 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
5082 cl_optimization members.
5083 * c-opts.c (warning_as_error_callback, c_common_handle_option,
5084 sanitize_cpp_opts, finish_options): Update names of cpp_options
5085 members.
5086
1973201f
NP
50872010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
5088
5089 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
5090 (objc_is_reserved_word): Removed.
5091 * c-common.c: Updated comments.
5092 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
5093 objc_is_reserved_word.
5094 * stub-objc.c (objc_is_reserved_word): Removed.
5095
f7e71da5
IS
50962010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5097
9faeb493 5098 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
5099 include attributes.
5100 (objc_start_method_definition): Likewise.
5101 (objc_build_keyword_decl): Likewise.
5102 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
5103 (objc_start_method_definition): Likewise.
5104 (objc_build_keyword_decl): Likewise.
5105
c165dca7
IS
51062010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5107
5108 * c-common.h (objc_start_class_interface): Adjust prototype.
5109 (objc_start_category_interface): Likewise.
5110 (objc_start_protocol): Likewise.
5111 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
5112 (objc_start_class_interface): Likewise.
5113 (objc_start_category_interface): Likewise.
5114
7458026b
ILT
51152010-09-27 Ian Lance Taylor <iant@google.com>
5116
5117 * c-common.c (c_common_attribute_table): Add no_split_stack.
5118 (handle_no_split_stack_attribute): New static function.
5119
b581b85b
NP
51202010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
5121
9faeb493 5122 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
5123
5124 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
5125
9faeb493 5126 Radar 4229905
b581b85b
NP
5127 * c-common.h (objc_have_common_type): New declaration.
5128 * stub-objc.c (objc_have_common_type): New stub.
5129
5130 2005-06-22 Ziemowit Laski <zlaski@apple.com>
5131
5132 Radar 4154928
5133 * c-common.h (objc_common_type): New prototype.
9faeb493 5134 * stub-objc.c (objc_common_type): New stub.
b581b85b 5135
46a4da10
JH
51362010-09-24 Jan Hubicka <jh@suse.cz>
5137
5138 * c-common.c (handle_leaf_attribute): New function.
5139 (struct attribute_spec c_common_att): Add leaf.
5140
e200444e
JM
51412010-09-22 Joseph Myers <joseph@codesourcery.com>
5142
5143 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
5144 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
5145 -dump, -dump=, -imacros, -imacros=, -include, -include=,
5146 -include-barrier, -include-directory, -include-directory=,
5147 -include-directory-after, -include-directory-after=,
5148 -include-prefix, -include-prefix=, -include-with-prefix,
5149 -include-with-prefix=, -include-with-prefix-after,
5150 -include-with-prefix-after=, -include-with-prefix-before,
5151 -include-with-prefix-before=, -no-integrated-cpp,
5152 -no-line-commands, -no-standard-includes, -no-warnings, -output,
5153 -output=, -pedantic, -pedantic-errors, -preprocess,
5154 -print-missing-file-dependencies, -trace-includes, -traditional,
5155 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
5156 -user-dependencies, -verbose, -write-dependencies,
5157 -write-user-dependencies, no-integrated-cpp, traditional): New.
5158
29a80ea6
NP
51592010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5160
5161 PR objc/23710
ac1fc2fc
NP
5162 * c-common.h (objc_start_method_definition): Return bool instead
5163 of void.
5164 * stub-objc.c (objc_start_method_definition): Return bool instead
5165 of void.
5166
51672010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5168
5169 PR objc/25965
5170 * c-common.h (objc_get_interface_ivars): New declaration.
5171 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 5172
de621752
ILT
51732010-09-15 Ian Lance Taylor <iant@google.com>
5174
5175 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 5176 messages. Remove period at end of warning message.
de621752 5177
ba885ec5
NS
51782010-09-09 Nathan Sidwell <nathan@codesourcery.com>
5179
5180 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
5181 (handle_alias_attribute): ... here.
5182 (handle_ifunc_attribute): New.
5183
c5ee1358
MM
51842010-09-06 Mark Mitchell <mark@codesourcery.com>
5185
5186 * c-common.h (do_warn_double_promotion): Declare.
5187 * c-common.c (do_warn_double_promotion): Define.
5188
0a0b3574
MM
51892010-09-05 Mark Mitchell <mark@codesourcery.com>
5190
5191 * c.opt (Wdouble-promotion): New.
5192
d1779886
JM
51932010-09-02 Joseph Myers <joseph@codesourcery.com>
5194
5195 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
5196 fvtable-thunks, fxref): Mark no longer supported in help text.
5197
2d2bd949
JM
51982010-09-02 Joseph Myers <joseph@codesourcery.com>
5199
5200 * c.opt (Wimport, fall-virtual, falt-external-templates,
5201 fdefault-inline, fenum-int-equiv, fexternal-templates,
5202 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
5203 fname-mangling-version-, fnew-abi, fnonnull-objects,
5204 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
5205 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
5206 applicable.
5207 (fhandle-exceptions): Mark with Alias and Warn.
5208 * c-opts.c (c_common_handle_option): Don't handle options marked
5209 as ignored.
5210
5de8299c
JM
52112010-09-02 Joseph Myers <joseph@codesourcery.com>
5212
5213 * c.opt (Wcomments, Werror-implicit-function-declaration,
5214 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
5215 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
5216 aliases.
5217 * c-common.c (option_codes): Use OPT_Wcomment instead of
5218 OPT_Wcomments.
5219 * c-opts.c (warning_as_error_callback, c_common_handle_option):
5220 Don't handle options marked as aliases.
5221
0ceb0201
RG
52222010-08-25 Richard Guenther <rguenther@suse.de>
5223
5224 * c-common.c (c_common_get_alias_set): Remove special
5225 handling for pointers.
5226
ac47786e
NF
52272010-08-20 Nathan Froyd <froydnj@codesourcery.com>
5228
5229 * c-common.c: Use FOR_EACH_VEC_ELT.
5230 * c-gimplify.c: Likewise.
5231 * c-pragma.c: Likewise.
5232
c878765b
JM
52332010-08-16 Joseph Myers <joseph@codesourcery.com>
5234
5235 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
5236 RejectDriver.
5237 (MMDX): Change back to MMD. Mark NoDriverArg instead of
5238 RejectDriver.
5239 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
5240 instead of OPT_MDX and OPT_MMDX.
5241
603349bf
JM
52422010-08-16 Joseph Myers <joseph@codesourcery.com>
5243
5244 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
5245
644fa7ac
JM
52462010-08-12 Joseph Myers <joseph@codesourcery.com>
5247
5248 * c.opt (MD, MMD): Change to MDX and MMDX.
5249 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
5250
481e1176
JM
52512010-08-11 Joseph Myers <joseph@codesourcery.com>
5252
5253 * c-opts.c (c_common_handle_option): Call handle_generated_option
5254 instead of handle_option.
5255
ac8dc9f7
NF
52562010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5257
5258 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
5259 (maybe_apply_renaming_pragma): Delete unneeded declarations.
5260
4f8c876d
NF
52612010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5262
5263 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
5264 (pending_redefine_extname): Change type to a VEC.
5265 (add_to_renaming_pragma_list): Update for new type of
5266 pending_redefine_extname.
ac8dc9f7 5267 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 5268
3b0c690e
AC
52692010-08-04 Arnaud Charlet <charlet@adacore.com>
5270
5271 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
5272 visited.
5273 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
5274 decide whether a type has already been declared/seen.
5275 Do not go to the original type.
5276 (dump_nested_types): New parameter forward.
5277 Generate forward declaration if needed and mark type as visited.
5278 (print_ada_declaration): Call dump_nested_types if not already done.
5279 Mark types as visited.
5280
1890bccc
JM
52812010-08-03 Joseph Myers <joseph@codesourcery.com>
5282
5283 * c.opt (-print-pch-checksum): Remove option.
5284 * c-opts.c (c_common_handle_option): Don't handle
5285 OPT_print_pch_checksum.
5286
5f20c657
JM
52872010-07-27 Joseph Myers <joseph@codesourcery.com>
5288
5289 * c-common.h (c_common_handle_option): Update prototype and return
5290 value type.
5291 * c-opts.c (c_common_handle_option): Update prototype and return
5292 value type. Update calls to handle_option and
5293 enable_warning_as_error.
5294
f551f80c
JJ
52952010-07-27 Jakub Jelinek <jakub@redhat.com>
5296
5297 PR c/45079
5298 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
5299
61ff2bdc
JM
53002010-07-27 Joseph Myers <joseph@codesourcery.com>
5301
5302 * c-common.h (c_common_missing_argument): Remove.
5303 * c-opts.c (c_common_missing_argument): Remove.
5304 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
5305 idirafter, imacros, include, isysroot, isystem, iquote): Add
5306 MissingArgError.
5307 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
5308
7a9bf9a4
JM
53092010-07-27 Joseph Myers <joseph@codesourcery.com>
5310
5311 * c-common.h (c_common_option_lang_mask,
5312 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
5313 New.
5314 (c_common_init_options): Update prototype.
5315 * c-opts.c (c_common_option_lang_mask): New.
5316 (c_common_initialize_diagnostics): Split out of
5317 c_common_init_options.
5318 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
5319 New.
5320 (c_common_init_options): Update prototype. Use decoded options in
5321 search for -lang-asm.
5322
910ad8de
NF
53232010-07-15 Nathan Froyd <froydnj@codesourcery.com>
5324
5325 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
5326 * c-format.c: Likewise.
5327
718f9c0f
MLI
53282010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
5329
5330 * c-common.h: Include diagnostic-core.h. Error if already
5331 included.
5332 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
5333
4d451982
MLI
53342010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
5335
adfac8df 5336 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
5337 Do not include expr.h
5338 (vector_mode_valid_p): Move here.
5339
119fe915
SB
53402010-06-21 DJ Delorie <dj@redhat.com>
5341
5342 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
5343 allow these pragmas anywhere.
5344
53452010-06-14 Jakub Jelinek <jakub@redhat.com>
5346
5347 PR bootstrap/44509
5348 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
5349 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
5350 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
5351 ggc_strdup instead of xstrdup.
5352
53532010-06-10 Jakub Jelinek <jakub@redhat.com>
5354
5355 * c-cppbuiltin.c: Include cpp-id-data.h.
5356 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
5357 (lazy_hex_fp_value): New function.
5358 (builtin_define_with_hex_fp_value): Provide definitions lazily.
5359
6662d794
MLI
53602010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5361
5362 * c-gimplify.c: Do not include tree-flow.h
5363
38f8b050
JR
53642010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
5365
5366 PR other/44034
5367 * c-common.c: Rename targetm member:
5368 targetm.enum_va_list -> targetm.enum_va_list_p
5369
9589f23e
AS
53702010-06-28 Anatoly Sokolov <aesok@post.ru>
5371
5372 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
5373
3b06d379
SB
53742010-06-28 Steven Bosscher <steven@gcc.gnu.org>
5375
5376 * c-cppbuiltin.c: Do not include except.h.
5377
d166d4c3
AK
53782010-06-24 Andi Kleen <ak@linux.intel.com>
5379
9faeb493
UB
5380 * c-common.c (warn_for_omitted_condop): New.
5381 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 5382
70cb8be6
JM
53832010-06-21 Joseph Myers <joseph@codesourcery.com>
5384
5385 * c.opt (lang-objc): Remove.
5386 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
5387
a4c97feb
JR
53882010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
5389
5390 * c-opts.c: Include "tm_p.h".
5391
6e2f1956
JM
53922010-06-20 Joseph Myers <joseph@codesourcery.com>
5393
5394 * c-common.c (parse_optimize_options): Update call to
5395 decode_options.
5396
bc87224e
NF
53972010-06-18 Nathan Froyd <froydnj@codesourcery.com>
5398
5399 * c-common.c (record_types_used_by_current_var_decl): Adjust for
5400 new type of types_used_by_cur_var_decl.
5401
b49cf425
JR
54022010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
5403
5404 PR bootstrap/44512
5405 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
5406 for C++ standard compliance.
5407
59f9c2ed
JM
54082010-06-16 Jason Merrill <jason@redhat.com>
5409
5410 * c.opt: Add -Wnoexcept.
5411
33766b66
RG
54122010-06-16 Richard Guenther <rguenther@suse.de>
5413
5414 PR c/44555
5415 * c-common.c (c_common_truthvalue_conversion): Remove
5416 premature and wrong optimization concering ADDR_EXPRs.
5417
eff7e30c
AC
54182010-06-15 Arnaud Charlet <charlet@adacore.com>
5419
5420 * c-ada-spec.c (dump_sloc): Remove column info.
5421 (is_simple_enum): New function.
5422 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
5423 enum types when relevant.
5424
6312e84d
MLI
54252010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
5426
9faeb493 5427 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
5428 location.
5429
1cb42611
JM
54302010-06-10 Joseph Myers <joseph@codesourcery.com>
5431
5432 * c-opts.c (c_common_handle_option): Don't handle
5433 OPT_fshow_column.
5434
a9429e29
LB
54352010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5436
5437 * c-pragma.c (push_alignment): Use typed GC allocation.
5438 (handle_pragma_push_options): Likewise.
5439
5440 * c-common.c (parse_optimize_options): Likewise.
5441
5442 * c-common.h (struct sorted_fields_type): Add variable_size GTY
5443 option.
5444
5498f011
JM
54452010-06-07 Joseph Myers <joseph@codesourcery.com>
5446
5447 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
5448 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
5449 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
5450 flag_signed_bitfields, warn_strict_null_sentinel,
5451 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
5452 flag_gen_declaration, flag_no_gnu_keywords,
5453 flag_implement_inlines, flag_implicit_templates,
5454 flag_implicit_inline_templates, flag_optional_diags,
5455 flag_elide_constructors, flag_default_inline, flag_rtti,
5456 flag_conserve_space, flag_access_control, flag_check_new,
5457 flag_new_for_scope, flag_weak, flag_working_directory,
5458 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
5459 flag_enforce_eh_specs, flag_threadsafe_statics,
5460 flag_pretty_templates): Remove.
5461 * c-common.h (flag_preprocess_only, flag_nil_receivers,
5462 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
5463 flag_replace_objc_classes, flag_undef, flag_no_builtin,
5464 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
5465 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
5466 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
5467 flag_no_gnu_keywords, flag_implement_inlines,
5468 flag_implicit_templates, flag_implicit_inline_templates,
5469 flag_optional_diags, flag_elide_constructors, flag_default_inline,
5470 flag_rtti, flag_conserve_space, flag_access_control,
5471 flag_check_new, flag_new_for_scope, flag_weak,
5472 flag_working_directory, flag_use_cxa_atexit,
5473 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
5474 flag_threadsafe_statics, flag_pretty_templates,
5475 warn_strict_null_sentinel): Remove.
5476 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
5477 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
5478 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
5479 fimplicit-inline-templates, fimplicit-templates,
5480 flax-vector-conversions, fms-extensions, fnil-receivers,
5481 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
5482 frtti, fshort-double, fshort-enums, fshort-wchar,
5483 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
5484 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
5485 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
5486 gen-decls, undef): Use Var.
5487 (fdefault-inline, foptional-diags): Document as doing nothing.
5488 * c-opts.c (c_common_handle_option): Remove cases for options now
5489 using Var. Mark ignored options as such.
5490
39dabefd
SB
54912010-06-05 Steven Bosscher <steven@gcc.gnu.org>
5492
9faeb493 5493 * c-common.c: Moved to here from parent directory.
39dabefd
SB
5494 * c-common.def: Likewise.
5495 * c-common.h: Likewise.
5496 * c-cppbuiltin.c: Likewise.
5497 * c-dump.c: Likewise.
5498 * c-format.c: Likewise.
5499 * c-format.h : Likewise.
5500 * c-gimplify.c: Likewise.
5501 * c-lex.c: Likewise.
5502 * c-omp.c: Likewise.
5503 * c.opt: Likewise.
5504 * c-opts.c: Likewise.
5505 * c-pch.c: Likewise.
5506 * c-ppoutput.c: Likewise.
5507 * c-pragma.c: Likewise.
5508 * c-pragma.h: Likewise.
5509 * c-pretty-print.c: Likewise.
5510 * c-pretty-print.h: Likewise.
5511 * c-semantics.c: Likewise.
5512 * stub-objc.c: Likewise.
5513
5514 * c-common.c: Include gt-c-family-c-common.h.
5515 * c-pragma.c: Include gt-c-family-c-pragma.h.
5516\f
5624e564 5517Copyright (C) 2010-2015 Free Software Foundation, Inc.
39dabefd
SB
5518
5519Copying and distribution of this file, with or without modification,
5520are permitted in any medium without royalty provided the copyright
5521notice and this notice are preserved.