]> gcc.gnu.org Git - gcc.git/blame - gcc/c-family/ChangeLog
shrink-wrap: Handle multiple predecessors of prologue
[gcc.git] / gcc / c-family / ChangeLog
CommitLineData
6b333269
NS
12015-09-22 Nathan Sidwell <nathan@codesourcery.com>
2
3 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
4 Wnamespaces): New C++ warnings.
5
a75f1574
JM
62015-09-22 Jason Merrill <jason@redhat.com>
7
8 * c-common.h (abi_compat_version_crosses): New.
9 (warn_abi_version): Declare.
10 * c-common.c: Define it.
11 * c-opts.c (c_common_post_options): Handle it.
12 flag_abi_compat_version defaults to 8.
13
bdaaa8b7
VV
142015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
15
16 Complete the implementation of N4230, Nested namespace definition.
17 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
18 __cpp_nested_namespace_definitions.
19
eaa797e8
MLI
202015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
21
22 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
23
c4914de6
MLI
242015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
25
26 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
27 when warning.
28 * c-pragma.h (pragma_lex): Add optional loc argument.
29
fcb87c50
MM
302015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
31
32 * c-format.c (check_format_arg): Adjust to use common block size in all
33 object pools.
34
31bdd08a
DM
352015-09-15 David Malcolm <dmalcolm@redhat.com>
36
37 * c-format.c (location_from_offset): Update for change in
38 signature of location_get_source_line.
39 * c-indentation.c (get_visual_column): Likewise.
40 (line_contains_hash_if): Likewise.
41
aa9f4b4c
MP
422015-09-14 Marek Polacek <polacek@redhat.com>
43
44 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
45 setting various warnings.
46
aa256c4a
MP
472015-09-14 Marek Polacek <polacek@redhat.com>
48
49 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
50 a negative value.
51
0f876f22
MW
522015-09-11 Mark Wielaard <mjw@redhat.com>
53
54 PR c/28901
55 * c.opt (Wunused-variable): Option from common.opt.
56 (Wunused-const-variable): New option.
57
273aa49e
PC
582015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
59
60 PR c++/53184
61 * c.opt ([Wsubobject-linkage]): Add.
62
1807ffc1
MS
632015-09-03 Martin Sebor <msebor@redhat.com>
64
65 PR c/66516
66 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
67 functions.
68 * c-common.c (reject_gcc_builtin): Define.
69
38942840
BI
702015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
71
72 PR middle-end/60586
73 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
74 prototype.
75 * c-gimplify.c (c_gimplify_expr): Added a call to the function
76 cilk_gimplify_call_params_in_spawned_fn.
77 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
78 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
79 unwrapping.
80
c316b5e4
MP
812015-08-25 Marek Polacek <polacek@redhat.com>
82
83 PR middle-end/67330
84 * c-common.c (handle_weak_attribute): Don't check whether the
85 visibility can be changed here.
86
584a7c46
MLI
872015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
88
89 * c-lex.c (c_lex_with_flags): Use explicit locations.
90
a79683d5
TS
912015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
92
93 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
94 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
95
61717a45
FXC
962015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
97
98 PR middle-end/36757
99 * c-common.c (check_builtin_function_arguments): Add check
100 for BUILT_IN_SIGNBIT argument.
101
329524f5
PC
1022015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
103
104 PR c++/67160
105 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
106 in c++1z mode.
107
4ee55665
MP
1082015-08-17 Marek Polacek <polacek@redhat.com>
109
110 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
111 with whitespaces before qualifier names.
112
b893e375
MP
1132015-08-12 Marek Polacek <polacek@redhat.com>
114
115 PR c++/55095
116 * c-common.c (maybe_warn_shift_overflow): Properly handle
117 left-shifting 1 into the sign bit.
118
c2d89095
MLI
1192015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
120
121 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
122
971e17ff
AS
1232015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
124 Braden Obrzut <admin@maniacsvault.net>
125 Jason Merrill <jason@redhat.com>
126
127 Add C++ Concepts TS support.
128 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
129 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
130 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
131 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
132 * c-opts.c (set_std_cxx1z): Set flag_concepts.
133 * c.opt (fconcepts): New.
134
8ebca419
PP
1352015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
136
137 * c-indentation.c (should_warn_for_misleading_indentation):
138 Improve heuristics.
139
1a1e101f
PP
1402015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
141
142 * c-indentation.c (get_visual_column): Add parameter first_nws,
143 use it. Update comment documenting the function.
144 (is_first_nonwhitespace_on_line): Remove.
145 (should_warn_for_misleading_indentation): Replace usage of
146 of is_first_nonwhitespace_on_line with get_visual_column.
147
992118a1
PP
1482015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
149
150 * c-indentation.h (struct token_indent_info): Define.
151 (get_token_indent_info): Define.
152 (warn_for_misleading_information): Declare.
153 * c-common.h (warn_for_misleading_information): Remove.
154 * c-identation.c (warn_for_misleading_indentation):
155 Change declaration to take three token_indent_infos. Adjust
156 accordingly.
157 * c-identation.c (should_warn_for_misleading_indentation):
158 Likewise. Bail out early if the body is a compound statement.
159 (guard_tinfo_to_string): Define.
160
e8fa3817
JM
1612015-07-30 Jason Merrill <jason@redhat.com>
162
163 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
164 '*' for reference decay.
165
173864e8
MP
1662015-07-30 Marek Polacek <polacek@redhat.com>
167
168 * c-common.c (warn_tautological_cmp): Bail for float types.
169
f2afe6dd
MP
1702015-07-27 Marek Polacek <polacek@redhat.com>
171
172 PR bootstrap/67030
173 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
174
05b28fd6
MP
1752015-07-27 Marek Polacek <polacek@redhat.com>
176
177 PR c++/66555
178 PR c/54979
179 * c-common.c (find_array_ref_with_const_idx_r): New function.
180 (warn_tautological_cmp): New function.
181 * c-common.h (warn_tautological_cmp): Declare.
182 * c.opt (Wtautological-compare): New option.
183
5a5062b8
MP
1842015-07-23 Marek Polacek <polacek@redhat.com>
185
186 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
187 (ubsan_instrument_shift): Likewise.
188
dc891fe7
MP
1892015-07-23 Marek Polacek <polacek@redhat.com>
190
191 PR sanitizer/66908
192 * c-ubsan.c: Include gimplify.h.
193 (ubsan_instrument_division): Unshare OP0 and OP1.
194 (ubsan_instrument_shift): Likewise.
195
451b5e48
MP
1962015-07-20 Marek Polacek <polacek@redhat.com>
197 Richard Sandiford <richard.sandiford@arm.com>
198
199 PR c++/55095
200 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
201 Use EXPR_LOC_OR_LOC.
202 (maybe_warn_shift_overflow): New function.
203 * c-common.h (maybe_warn_shift_overflow): Declare.
204 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
205 * c.opt (Wshift-overflow): New option.
206
fb0b2914
ML
2072015-07-16 Martin Liska <mliska@suse.cz>
208
209 * c-format.c (static void check_format_info_main): Use
210 object_allocator instead of pool_allocator.
211 (check_format_arg): Likewise.
212 (check_format_info_main): Likewise.
213
903f5c23
AM
2142015-07-15 Andrew MacLeod <amacleod@redhat.com>
215
216 * c-opts.c: Remove multiline #include comment.
217
026c3cfd
AH
2182015-07-12 Aldy Hernandez <aldyh@redhat.com>
219
220 * c-common.c: Fix double word typos.
221
bb49ee66
EB
2222015-07-10 Eric Botcazou <ebotcazou@adacore.com>
223
224 * c-ada-spec.h (cpp_operation): Revert latest change.
225 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
226 constructors and destructors.
227
1916bcb5
AM
2282015-07-09 Andrew MacLeod <amacleod@redhat.com>
229
230 * c-common.h: Adjust includes for flags.h changes.
231 * stub-objc.c: Likewise.
026c3cfd 232
a9dcd529
EB
2332015-07-08 Eric Botcazou <ebotcazou@adacore.com>
234
235 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
236 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
237
b03b462f
JJ
2382015-07-08 Jakub Jelinek <jakub@redhat.com>
239
240 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
241 are to be removed, return NULL rather than original clauses list.
242
c7131fb2
AM
2432015-07-07 Andrew MacLeod <amacleod@redhat.com>
244
245 * array-notation-common.c: Adjust includes.
246 * c-ada-spec.c: Likewise.
247 * c-cilkplus.c: Likewise.
248 * c-common.h: Likewise.
249 * c-cppbuiltin.c: Likewise.
250 * c-dump.c: Likewise.
251 * c-format.c: Likewise.
252 * c-gimplify.c: Likewise.
253 * c-indentation.c: Likewise.
254 * c-lex.c: Likewise.
255 * c-omp.c: Likewise.
256 * c-opts.c: Likewise.
257 * c-pch.c: Likewise.
258 * c-ppoutput.c: Likewise.
259 * c-pragma.c: Likewise.
260 * c-pretty-print.c: Likewise.
261 * c-semantics.c: Likewise.
262 * c-ubsan.c: Likewise.
263 * cilk.c: Likewise.
264 * stub-objc.c: Likewise.
265
2a7fb83f
EB
2662015-07-07 Eric Botcazou <ebotcazou@adacore.com>
267
268 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
269 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
270
a03c9bf1
JM
2712015-07-01 Jason Merrill <jason@redhat.com>
272
36a85135
JM
273 * c-common.h (D_CXX11): Rename from D_CXX0X.
274 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
275 * c-common.c: Adjust.
276
e7fa68d5
JM
277 * c-opts.c (c_common_post_options): Default to C++14.
278
a03c9bf1
JM
279 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
280
fe95b036
ESR
2812015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
282
283 Implement N4197 - Adding u8 character literals
a64be36b
EB
284 * c-family/c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
285 CPP_CHAR.
286 * c-family/c-common.c (c_parse_error): Print CPP_UTF8CHAR and
287 CPP_UTF8CHAR_USERDEF tokens.
288 * c-family/c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
289 and CPP_UTF8CHAR tokens.
290 (lex_charconst): Treat CPP_UTF8CHAR token.
fe95b036 291
da2e71c9
MLI
2922015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
293
294 PR fortran/66605
295 * c-common.c (do_warn_unused_parameter): Move here.
296 * c-common.h (do_warn_unused_parameter): Declare.
297
b155cfd9
MP
2982015-06-29 Marek Polacek <polacek@redhat.com>
299
300 PR c/66322
301 * c-common.c (check_case_bounds): Add bool * parameter. Set
302 OUTSIDE_RANGE_P.
303 (c_add_case_label): Add bool * parameter. Pass it down to
304 check_case_bounds.
305 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
306 warning here.
307 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
308 declarations.
309
31521951
MP
3102015-06-27 Marek Polacek <polacek@redhat.com>
311
312 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
313 or VECTOR_INTEGER_TYPE_P throughout.
314 * c-gimplify.c: Likewise.
315
22d03525
MP
3162015-06-26 Marek Polacek <polacek@redhat.com>
317
318 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
319 * c-common.c (c_fully_fold_internal): Likewise.
320 (c_alignof_expr): Likewise.
321 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
322 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
323 * cilk.c (create_parm_list): Likewise.
324
af05e6e5
MP
3252015-06-26 Marek Polacek <polacek@redhat.com>
326
327 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
328
f0889939
AM
3292015-06-25 Andrew MacLeod <amacleod@redhat.com>
330
331 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
332 * c-gimplify.c: Likewise.
333 * c-pragma.c: Likewise.
334 * c-ubsan.c: Likewise.
335 * cilk.c: Likewise.
336
ca752f39
RS
3372015-06-25 Richard Sandiford <richard.sandiford@arm.com>
338
339 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
340 ggc_hasher.
341
16a16ec7
AM
3422015-06-25 Andrew MacLeod <amacleod@redhat.com>
343
344 * cilk.c: Move calls.h after tm.h in the include chain.
345
0ae9bd27
MP
3462015-06-25 Marek Polacek <polacek@redhat.com>
347
348 * array-notation-common.c: Use VAR_P throughout.
349 * c-ada-spec.c: Likewise.
350 * c-common.c: Likewise.
351 * c-format.c: Likewise.
352 * c-gimplify.c: Likewise.
353 * c-omp.c: Likewise.
354 * c-pragma.c: Likewise.
355 * c-pretty-print.c: Likewise.
356 * cilk.c: Likewise.
357
62f9079a
MP
3582015-06-25 Marek Polacek <polacek@redhat.com>
359
360 * cilk.c (extract_free_variables): Use is_global_var.
361
0fa16060
RS
3622015-06-23 Richard Sandiford <richard.sandiford@arm.com>
363
364 * c-common.c: Don't include target-def.h.
365
a68ae2e1
MP
3662015-06-23 Marek Polacek <polacek@redhat.com>
367
368 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
369 when comparing INTEGER_CSTs.
370
c6a2f2d9
PMR
3712015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
372
373 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
374 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
375 (dump_ada_template): Skip partially specialized types.
376
6b4db501
MM
3772015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
378
379 * c-common.c (scalar_to_vector): Use std::swap instead of manually
380 swapping.
381
abb226c9
AM
3822015-06-17 Andrew MacLeod <amacleod@redhat.com>
383
384 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
385 * c-ada-spec.c: Likewise.
386 * c-cilkplus.c: Likewise.
387 * c-common.c: Likewise.
388 * c-common.h: Likewise.
389 * c-cppbuiltin.c: Likewise.
390 * c-dump.c: Likewise.
391 * c-format.c: Likewise.
392 * c-gimplify.c: Likewise.
393 * c-indentation.c: Likewise.
394 * c-lex.c: Likewise.
395 * c-omp.c: Likewise.
396 * c-opts.c: Likewise.
397 * c-pch.c: Likewise.
398 * c-ppoutput.c: Likewise.
399 * c-pragma.c: Likewise.
400 * c-pretty-print.c: Likewise.
401 * c-semantics.c: Likewise.
402 * c-ubsan.c: Likewise.
403 * cilk.c: Likewise.
404 * stub-objc.c: Likewise.
405
076fecad
PP
4062015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
407
408 PR c++/65168
409 * c-common.c (c_common_truthvalue_conversion): Warn when
410 converting an address of a reference to a truth value.
411
13fdf2e2
AM
4122015-06-08 Andrew MacLeod <amacleod@redhat.com>
413
414 * array-notation-common.c : Adjust include files.
415 * c-ada-spec.c : Likewise.
416 * c-cilkplus.c : Likewise.
417 * c-common.c : Likewise.
418 * c-common.h : Likewise.
419 * c-cppbuiltin.c : Likewise.
420 * c-dump.c : Likewise.
421 * c-format.c : Likewise.
422 * c-gimplify.c : Likewise.
423 * c-indentation.c : Likewise.
424 * c-lex.c : Likewise.
425 * c-omp.c : Likewise.
426 * c-opts.c : Likewise.
427 * c-pch.c : Likewise.
428 * c-ppoutput.c : Likewise.
429 * c-pragma.c : Likewise.
430 * c-pretty-print.c : Likewise.
431 * c-semantics.c : Likewise.
432 * c-ubsan.c : Likewise.
433 * cilk.c : Likewise.
434 * stub-objc.c : Likewise.
435
a1661b90
MP
4362015-06-08 Marek Polacek <polacek@redhat.com>
437
438 PR c/66415
439 * c-format.c (location_from_offset): Return LOC if LINE is null.
440
d7438551
AH
4412015-06-05 Aldy Hernandez <aldyh@redhat.com>
442
443 * c-common.h (c_parse_final_cleanups): New prototype.
444 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
445
ecb9f223
AM
4462015-06-04 Andrew MacLeod <amacleod@redhat.com>
447
448 * array-notation-common.c: Adjust includes for restructured coretypes.h.
449 * c-ada-spec.c: Likewise.
450 * c-cilkplus.c: Likewise.
451 * c-common.c: Likewise.
452 * c-common.h: Likewise.
453 * c-cppbuiltin.c: Likewise.
454 * c-dump.c: Likewise.
455 * c-format.c: Likewise.
456 * c-gimplify.c: Likewise.
457 * c-indentation.c: Likewise.
458 * c-lex.c: Likewise.
459 * c-omp.c: Likewise.
460 * c-opts.c: Likewise.
461 * c-pch.c: Likewise.
462 * c-ppoutput.c: Likewise.
463 * c-pragma.c: Likewise.
464 * c-pretty-print.c: Likewise.
465 * c-semantics.c: Likewise.
466 * c-ubsan.c: Likewise.
467 * cilk.c: Likewise.
468 * stub-objc.c: Likewise.
469
6ac48155
DM
4702015-06-02 David Malcolm <dmalcolm@redhat.com>
471
472 PR c/66220:
473 * c-indentation.c (should_warn_for_misleading_indentation): Use
474 expand_location rather than expand_location_to_spelling_point.
475 Don't warn if the guarding statement is more indented than the
476 next/body stmts.
477
773ce42e
DM
4782015-06-02 David Malcolm <dmalcolm@redhat.com>
479
480 * c-indentation.c (warn_for_misleading_indentation): Bail out
481 immediately if -Wmisleading-indentation isn't enabled.
482
4fef8379
ML
4832015-06-01 Martin Liska <mliska@suse.cz>
484
485 * c-format.c (check_format_arg):Use new type-based pool allocator.
486 (check_format_info_main) Likewise.
487
1edfb384
EB
4882015-05-31 Eric Botcazou <ebotcazou@adacore.com>
489
490 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
491 (has_nontrivial_methods): Likewise.
492
9677ef52
MP
4932015-05-25 Marek Polacek <polacek@redhat.com>
494
495 * c-ubsan.c (ubsan_instrument_shift): Use type0.
496
fd5c817a
MP
4972015-05-22 Marek Polacek <polacek@redhat.com>
498
499 PR c/47043
500 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
501
a2f45fe6 5022015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
581edfa3
TS
503
504 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
505 STACK_GROWS_DOWNWARD.
506
a2f45fe6 5072015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
62f9f30b
TS
508
509 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
510 STACK_GROWS_DOWNWARD rather than if it is defined.
511
0fee2ac2
MLI
5122015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
513
514 PR c/52952
515 * c-format.c (location_column_from_byte_offset): New.
516 (location_from_offset): New.
517 (struct format_wanted_type): Add offset_loc field.
518 (check_format_info): Move handling of location for extra arguments
519 closer to the point of warning.
520 (check_format_info_main): Pass the result of location_from_offset
521 to warning_at.
522 (format_type_warning): Pass the result of location_from_offset
523 to warning_at.
524
cf4ef6f7
MP
5252015-05-20 Marek Polacek <polacek@redhat.com>
526
527 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
528
3a65ee74
MP
5292015-05-20 Marek Polacek <polacek@redhat.com>
530
531 * c-ada-spec.c (dump_sloc): Use DECL_P.
532
21b634ae
MP
5332015-05-20 Marek Polacek <polacek@redhat.com>
534
535 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
536 * c-common.c: Likewise.
537
0e50b624
DM
5382015-05-19 David Malcolm <dmalcolm@redhat.com>
539
540 * c-common.h (fe_file_change): Strengthen param from
541 const line_map * to const line_map_ordinary *.
542 (pp_file_change): Likewise.
543 * c-lex.c (fe_file_change): Likewise.
544 (cb_define): Use linemap_check_ordinary when invoking
545 SOURCE_LINE.
546 (cb_undef): Likewise.
547 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
548 invoking cb_file_change.
549 (c_finish_options): Likewise.
550 (push_command_line_include): Likewise.
551 (cb_file_change): Strengthen param "new_map" from
552 const line_map * to const line_map_ordinary *.
553 * c-ppoutput.c (cb_define): Likewise for local "map".
554 (pp_file_change): Likewise for param "map" and local "from".
555
fab27f52
MM
5562015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
557
558 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
559
2fe1d762
TV
5602015-05-18 Tom de Vries <tom@codesourcery.com>
561
562 * c-common.c (build_va_arg_1): New function.
563 (build_va_arg): Add address operator to va_list operand if necessary.
564
7a37fa90
MM
5652015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
566
567 PR c/48956
568 * c-common.c (int_safely_convertible_to_real_p): Define.
569 (unsafe_conversion_p): Check conversions involving complex types.
570 (conversion_warning): Add new warning message for conversions which
571 discard imaginary component.
572 * c-common.h: (enum conversion_safety): Add new enumerator for such
573 conversions.
574
3aa3c9fc
MP
5752015-05-14 Marek Polacek <polacek@redhat.com>
576
577 PR c/66066
578 PR c/66127
579 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
580 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
581 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
582 use it. If FOR_INT_CONST, require that all evaluated operands be
583 INTEGER_CSTs.
584
c3388e62
DM
5852015-05-12 David Malcolm <dmalcolm@redhat.com>
586
587 * c-common.h (warn_for_misleading_indentation): New prototype.
588 * c-indentation.c: New file.
589 * c.opt (Wmisleading-indentation): New option.
590
c7b38fd5
TV
5912015-05-12 Tom de Vries <tom@codesourcery.com>
592
593 PR tree-optimization/66010
594 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
595
381bf11e
JM
5962015-05-09 Jason Merrill <jason@redhat.com>
597
edff0c06
JM
598 * c-opts.c (c_common_post_options): Also clear
599 cpp_opts->cpp_warn_cxx11_compat.
600
129211bc
JM
601 * c-common.h (enum cxx_dialect): Add cxx_unset.
602 * c-common.c (cxx_dialect): Initialize to cxx_unset.
603 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
604
381bf11e
JM
605 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
606 (std=gnu++0x): Mark as Undocumented.
607 (std=gnu++1y): Add deprecated message.
608
fe191308
JM
6092015-05-08 Jason Merrill <jason@redhat.com>
610
765189ff
JM
611 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
612 * c-opts.c: Adjust.
613
fe191308
JM
614 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
615
755e528f
MP
6162015-05-08 Marek Polacek <polacek@redhat.com>
617
618 PR c/64918
619 * c.opt (Woverride-init-side-effects): New option.
620
0173bd2a
MP
6212015-05-07 Marek Polacek <polacek@redhat.com>
622
623 PR c/65179
624 * c-common.c (c_fully_fold_internal): Warn when left shifting a
625 negative value.
626 * c.opt (Wshift-negative-value): New option.
627 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
628 when -Wextra and C99/C++11 mode.
629
e0f0d3b9
MP
6302015-05-07 Marek Polacek <polacek@redhat.com>
631 Martin Uecker <uecker@eecs.berkeley.edu>
632
633 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
634 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
635
8243e2a9
JM
6362015-05-05 Jason Merrill <jason@redhat.com>
637
638 * c.opt (Wterminate): New.
639
577cd070
MP
6402015-04-30 Marek Polacek <polacek@redhat.com>
641
642 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
643 require that the non-constant be of a boolean type.
644
0373796b
JT
6452015-04-29 Josh Triplett <josh@joshtriplett.org>
646
e0f0d3b9
MP
647 * c-common.c (handle_section_attribute): Refactor to reduce
648 nesting and distinguish between error cases.
0373796b 649
716c0ba6
MP
6502015-04-29 Marek Polacek <polacek@redhat.com>
651
652 PR c/64610
653 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
654 with 0/1.
655
8848828b
JJ
6562015-04-29 Jakub Jelinek <jakub@redhat.com>
657
658 * c-common.h (omp_clause_mask): Unconditionally define as a class.
659 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
660 HOST_BITS_PER_WIDE_INT.
661
ecd0e562
TV
6622015-04-28 Tom de Vries <tom@codesourcery.com>
663
664 PR tree-optimization/65887
665 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
666
2a877204 6672015-04-28 Eric Botcazou <ebotcazou@adacore.com>
e0f0d3b9 668 Pierre-Marie de Rodat <derodat@adacore.com>
2a877204
EB
669
670 * c-ada-spec.c (in_function): Delete.
671 (dump_generic_ada_node): Do not change in_function and remove the
672 redundant code dealing with it.
673 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
674 (print_ada_methods): Output the static member functions in a nested
675 package after the regular methods as well as associated renamings.
676
4853031e
MP
6772015-04-24 Marek Polacek <polacek@redhat.com>
678
679 PR c/65830
680 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
681 and OPT_Wshift_count_overflow.
682
8c2b7f79
MP
683 PR c/63357
684 * c-common.c (warn_logical_operator): Warn if the operands have the
685 same expressions.
686
b8787813
MP
6872015-04-24 Marek Polacek <polacek@redhat.com>
688
689 PR c/61534
690 * c-common.c (warn_logical_operator): Bail if either operand comes
691 from a macro expansion.
692
8fba1830
BRF
6932015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
694
695 PR target/55143
696 * c-common.c (c_default_pointer_mode): Add definition.
697 * c-common.h (c_default_pointer_mode): Add declaration.
698
17958621
JJ
6992015-03-11 Jakub Jelinek <jakub@redhat.com>
700
701 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
702 on record_builtin_type argument.
703
7ccb1a11
JJ
7042015-03-10 Jakub Jelinek <jakub@redhat.com>
705
706 PR c/65120
707 * c-common.c (warn_logical_not_parentheses): Don't warn for
708 !x == 0 or !x != 0.
709
04fd785e
MP
7102015-03-07 Marek Polacek <polacek@redhat.com>
711
712 PR sanitizer/65280
713 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
714 before trying to figure out whether we have a flexible array member.
715
a4e26206
EB
7162015-03-06 Eric Botcazou <ebotcazou@adacore.com>
717 Jonathan Wakely <jwakely.gcc@gmail.com>
718
719 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
720
0d2489f4
EB
7212015-03-05 Eric Botcazou <ebotcazou@adacore.com>
722
723 PR ada/65319
724 * c-ada-spec.c (print_destructor): Remove obsolete code.
725
83ed54d7
EB
7262015-03-01 Eric Botcazou <ebotcazou@adacore.com>
727
728 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
729 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
730 DECL_TEMPLATE_RESULT emulations.
731 (dump_ada_template)): Add guard for TYPE_METHODS.
732
7631f0e2
MP
7332015-02-27 Marek Polacek <polacek@redhat.com>
734
735 PR c/65040
736 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
737
d1783ae5
KT
7382015-02-27 Kai Tietz <ktietz@redhat.com>
739
740 PR c/35330
741 * c-pragma.c (handle_pragma_weak): Do not try to create
742 weak/alias of declarations not being function, or variable
743 declarations.
744
56a9f6bc
TS
7452015-02-24 Thomas Schwinge <thomas@codesourcery.com>
746
747 PR libgomp/64625
748 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
749 Remove macros.
750 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
751
3d5cb23d
MP
7522015-02-16 Marek Polacek <polacek@redhat.com>
753
754 PR c/65066
755 * c-format.c (check_format_types): Handle null param.
756
fa008882
MP
7572015-02-13 Marek Polacek <polacek@redhat.com>
758
759 PR c/65040
760 * c-format.c (check_format_types): Don't warn about different
761 signedness if the original value is in the range of WANTED_TYPE.
762
785f21af
JM
7632015-02-12 Jason Merrill <jason@redhat.com>
764
765 PR c++/64956
766 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
767 to the current highest version.
768 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
769
4886ec8e
JJ
7702015-02-04 Jakub Jelinek <jakub@redhat.com>
771
772 PR c/64824
773 PR c/64868
774 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
775 instead of RDIV_EXPR. Use build_binary_op instead of
776 build2_loc.
777
40fecdd6
JM
7782015-01-30 Joseph Myers <joseph@codesourcery.com>
779
780 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
781 to pass input_location as first argument.
782
a0c88d06
TV
7832015-01-23 Tom de Vries <tom@codesourcery.com>
784
785 PR libgomp/64672
786 * c.opt (fopenacc): Mark as LTO option.
787
1506ae0e
TV
7882015-01-23 Tom de Vries <tom@codesourcery.com>
789
790 PR libgomp/64707
791 * c.opt (fopenmp): Mark as LTO option.
792
31be63ab
JJ
7932015-01-21 Jakub Jelinek <jakub@redhat.com>
794
795 PR c/63307
796 * cilk.c (fill_decls_vec): Only put decls into vector v.
797 (compare_decls): Fix up formatting.
798
7992015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
800
801 PR c/63307
802 * cilk.c: Include vec.h.
803 (struct cilk_decls): New structure.
804 (wrapper_parm_cb): Split this function to...
805 (fill_decls_vec): ...this...
806 (create_parm_list): ...and this.
807 (compare_decls): New function.
808 (for_local_cb): Remove.
809 (wrapper_local_cb): Ditto.
810 (build_wrapper_type): For now first traverse and fill vector of
811 declarations then sort it and then deal with sorted vector.
812 (cilk_outline): Ditto.
813 (declare_one_free_variable): Ditto.
814
6875457f
JM
8152015-01-21 Jason Merrill <jason@redhat.com>
816
817 PR c++/64629
818 * c-format.c (check_format_arg): Call decl_constant_value.
819
185c9e56
ML
8202015-01-19 Martin Liska <mliska@suse.cz>
821
822 * c-common.c (handle_noicf_attribute): New function.
823
41dbbb37
TS
8242015-01-15 Thomas Schwinge <thomas@codesourcery.com>
825 Bernd Schmidt <bernds@codesourcery.com>
826 James Norris <jnorris@codesourcery.com>
827 Cesar Philippidis <cesar@codesourcery.com>
828 Ilmir Usmanov <i.usmanov@samsung.com>
829 Jakub Jelinek <jakub@redhat.com>
830
831 * c.opt (fopenacc): New option.
832 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
833 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
834 New macros.
835 * c-common.h (c_finish_oacc_wait): New prototype.
836 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
837 (c_finish_oacc_wait): New function.
838 * c-pragma.c (oacc_pragmas): New variable.
839 (c_pp_lookup_pragma, init_pragma): Handle it.
840 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
841 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
842 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
843 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
844 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
845 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
846 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
847 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
848 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
849 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
850 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
851 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
852 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
853 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
854 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
855 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
856 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
857 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
858 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
859 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
860 PRAGMA_OACC_CLAUSE_WORKER.
861
5434dc07
MD
8622015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
863
864 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
865 for the new option fstack-protector_explicit.
866 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
867 (handle_stack_protect_attribute): New function.
868
de1b5c17
MU
8692015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
870
871 * c.opt: New option -Warray-bounds=.
872
adfac8df
JJ
8732015-01-09 Michael Collison <michael.collison@linaro.org>
874
875 * array-notation-common.c: Include hash-set.h, machmode.h,
876 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
877 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
878 * c-ada-spec.c: Ditto.
879 * c-cilkplus.c: Ditto.
880 * c-common.c: Include input.h due to flattening of tree.h.
881 Define macro GCC_C_COMMON_C.
882 * c-common.h: Flatten tree.h header files into c-common.h.
883 Remove include of tree-core.h.
884 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
885 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
886 fold-const.h, wide-int.h, and inchash.h due to
887 flattening of tree.h.
888 * c-dump.c: Ditto.
889 * c-format.c: Flatten tree.h header files into c-common.h.
890 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
891 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
892 fold-const.h, wide-int.h, and inchash.h due to
893 flattening of tree.h.
894 * c-dump.c: Include hash-set.h, machmode.h,
895 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
896 fold-const.h, wide-int.h, and inchash.h due to
897 flattening of tree.h.
898 * c-format.c: Include hash-set.h, machmode.h,
899 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
900 fold-const.h, wide-int.h, inchash.h and real.h due to
901 flattening of tree.h.
902 * c-gimplify.c: Include hash-set.h, machmode.h,
903 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
904 fold-const.h, wide-int.h, and inchash.h due to
905 flattening of tree.h.
906 * cilk.c: Ditto.
907 * c-lex.c: Ditto.
908 * c-omp.c: Ditto.
909 * c-opts.c: Ditto.
910 * c-pch.c: Ditto.
911 * c-ppoutput.c: Ditto.
912 * c-pragma.c: Ditto.
913 * c-pretty-print.c: Ditto.
914 * c-semantics.c: Ditto.
915 * c-ubsan.c: Ditto.
916 * stub-objc.c: Ditto.
917
f5481fc4
JM
9182015-01-08 Jason Merrill <jason@redhat.com>
919
920 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
921 do_ubsan_in_current_function.
922 (ubsan_maybe_instrument_reference_or_call): Likewise.
923 * c-ubsan.h: Declare it.
924
de35aa66
MS
9252015-01-08 Mike Stump <mikestump@comcast.net>
926
927 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
928
4a9a42ab
MP
9292015-01-07 Marek Polacek <polacek@redhat.com>
930
931 PR c/64440
932 * c-common.c (c_fully_fold_internal): Warn for division and modulo
933 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
934
2f42e5de
TS
9352015-01-05 Trevor Saunders <tsaunders@mozilla.com>
936
937 PR c++/31397
938 * c.opt (Wsuggest-override): New option.
939
5624e564
JJ
9402015-01-05 Jakub Jelinek <jakub@redhat.com>
941
942 Update copyright years.
943
5bd012f8
MP
9442015-01-05 Marek Polacek <polacek@redhat.com>
945
946 PR c/64423
947 * c-common.c (warn_array_subscript_with_type_char): Add location_t
948 parameter. Use it.
949 * c-common.h (warn_array_subscript_with_type_char): Update
950 declaration.
951
a7fa8d18
ESR
9522014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
953
954 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
955 Control macro with flag_sized_deallocation.
956
768952be
MU
9572014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
958
959 * c.opt (Wdiscarded-array-qualifiers): New option.
960
1f8d3e84
JJ
9612014-12-19 Jakub Jelinek <jakub@redhat.com>
962
963 PR preprocessor/63831
964 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
965 and __has_cpp_attribute here.
966 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
967 c_common_has_attribute.
968 * c-common.h (c_common_has_attribute): New prototype.
969 * c-lex.c (init_c_lex): Set cb->has_attribute to
970 c_common_has_attribute instead of cb_has_attribute.
971 (get_token_no_padding): New function.
972 (cb_has_attribute): Renamed to ...
973 (c_common_has_attribute): ... this. No longer static. Use
974 get_token_no_padding, require ()s, don't build TREE_LIST
975 unnecessarily, fix up formatting, adjust diagnostics, call
976 init_attributes.
977
20b06add
JM
9782014-12-15 Jason Merrill <jason@redhat.com>
979
980 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
981 (-Wsized-deallocation): New.
982 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
983 to on in C++14 and up.
984
94a073b2
JM
9852014-12-11 Jason Merrill <jason@redhat.com>
986
acaa5911
JM
987 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
988
94a073b2
JM
989 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
990 we aren't complaining about VLAs.
991
7fb66c15
MP
9922014-12-06 Marek Polacek <polacek@redhat.com>
993
994 PR tree-optimization/64183
995 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
996 shift-expression if it is integer_type_node. Use types_compatible_p.
997
b731b390
JJ
9982014-11-29 Jakub Jelinek <jakub@redhat.com>
999
1000 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
1001 last argument from create_tmp_var_raw and create_tmp_var calls.
1002 * cilk.c (gimplify_cilk_spawn): Likewise.
1003 * c-omp.c (c_finish_omp_atomic): Likewise.
1004
6a4da643
MP
10052014-11-28 Marek Polacek <polacek@redhat.com>
1006
1007 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
1008 instead of unsigned_type_node.
1009
541e35a6
MP
10102014-11-28 Marek Polacek <polacek@redhat.com>
1011
1012 PR c/63862
1013 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
1014 to op1_utype.
1015 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
1016 expression to unsigned_type_node.
1017
dcc97066
MW
10182014-11-20 Mark Wielaard <mjw@redhat.com>
1019
1020 PR debug/38757
1021 * c-opts.c (set_std_c89): Set lang_hooks.name.
1022 (set_std_c99): Likewise.
1023 (set_std_c11): Likewise.
1024 (set_std_cxx98): Likewise.
1025 (set_std_cxx11): Likewise.
1026 (set_std_cxx14): Likewise.
1027 (set_std_cxx1z): Likewise.
1028
aa7da51a
JJ
10292014-11-21 Jakub Jelinek <jakub@redhat.com>
1030
1031 PR target/63764
1032 * c-common.h (convert_vector_to_pointer_for_subscript): Change
1033 return type to bool.
009a3480 1034 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
1035 (convert_vector_to_pointer_for_subscript): Change return type to
1036 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
1037 and copy it into a TARGET_EXPR and use that instead of *vecp
1038 directly.
1039
538dd0b7
DM
10402014-11-19 David Malcolm <dmalcolm@redhat.com>
1041
1042 Merger of git branch "gimple-classes-v2-option-3".
1043 * ChangeLog.gimple-classes: New.
1044 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
1045 from being just a vec<gimple> to a vec<gbind *>.
1046
c39a5e99
JJ
10472014-11-18 Jakub Jelinek <jakub@redhat.com>
1048
1049 PR sanitizer/63813
1050 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
1051 argument to ptype, set type to TREE_TYPE (ptype). Don't call
1052 get_pointer_alignment for non-pointers. Use ptype, or if it is
1053 reference type, corresponding pointer type, as type of kind
1054 argument.
1055 (ubsan_maybe_instrument_reference,
1056 ubsan_maybe_instrument_member_call): Adjust callers.
1057
8537a4a9
MP
10582014-11-15 Marek Polacek <polacek@redhat.com>
1059
1060 PR middle-end/63884
1061 * array-notation-common.c (is_sec_implicit_index_fn): Return false
1062 for NULL fndecl.
1063 (extract_array_notation_exprs): Return for NULL node.
1064
2079956a
JM
10652014-11-12 Joseph Myers <joseph@codesourcery.com>
1066
1067 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
1068 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
1069
1304953e
JJ
10702014-11-12 Jakub Jelinek <jakub@redhat.com>
1071
1072 PR c/59708
1073 * c-common.c (check_builtin_function_arguments): Handle
1074 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
1075
e5e44252
AK
10762014-11-10 Andi Kleen <ak@linux.intel.com>
1077
1078 PR c/60804
1079 * c-common.h (check_no_cilk): Declare.
1080 * cilk.c (get_error_location): New function.
1081 (check_no_cilk): Dito.
1082
e64b984d
AK
10832014-11-10 Andi Kleen <ak@linux.intel.com>
1084
1085 * cilk.c (recognize_spawn): Use expression location
1086 for error message.
1087
13c21655
PC
10882014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
1089
1090 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
1091
42fd12b1
ESR
10922014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
1093
1094 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
1095 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
1096 (__cpp_range_based_for, __cpp_initializer_lists,
1097 __cpp_delegating_constructors, __cpp_nsdmi,
1098 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
1099 for C++11; (__cpp_attribute_deprecated): Remove in favor of
1100 __has_cpp_attribute.
1101 * c-lex.c (cb_has_attribute): New callback CPP function;
1102 (init_c_lex): Set has_attribute callback.
1103
6f450181
RB
11042014-11-04 Richard Biener <rguenther@suse.de>
1105
1106 * c-common.c (shorten_compare): Do not shorten mixed
1107 DFP and non-DFP compares.
1108
26f0e1d6
ESR
11092014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
1110
1111 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
1112 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
1113 Commentary and rearrangement of tests.
1114 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
1115 Commentary and rearrangement of tests.
1116 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
1117 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
1118
ef4bddc2
RS
11192014-10-29 Richard Sandiford <richard.sandiford@arm.com>
1120
1121 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
1122 enum from machine_mode.
1123
c582198b
AM
11242014-10-28 Andrew MacLeod <amacleod@redhat.com>
1125
adfac8df
JJ
1126 * c-common.c: Adjust include files.
1127 * c-gimplify.c: Ditto.
1128 * cilk.c: Ditto.
1129 * c-pragma.c: Ditto.
1130 * c-ubsan.c: Ditto.
c582198b 1131
60393bbc
AM
11322014-10-27 Andrew MacLeod <amacleod@redhat.com>
1133
1134 * c-gimplify.c: Adjust include files.
1135
d723bb7c
MLI
11362014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
1137
1138 PR c++/53061
1139 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
1140 c_common_initialize_diagnostics.
1141 * c-common.h: Likewise.
1142
90f3520e
MP
11432014-10-24 Marek Polacek <polacek@redhat.com>
1144
1145 PR c/56980
1146 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
1147 print "struct"/"union"/"enum" for typedefed names.
1148
59d7607a
MP
11492014-10-23 Marek Polacek <polacek@redhat.com>
1150
1151 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
1152 in unsigned type.
1153
d95a2703
JJ
11542014-10-22 Jakub Jelinek <jakub@redhat.com>
1155 Yury Gribov <y.gribov@samsung.com>
1156
1157 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1158 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
1159 instead of flag_sanitize_recover as bool flag.
1160
8e6ef852
KY
11612014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
1162
1163 * cilk.c: Revert previous change.
1164
948cf550
IZ
11652014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
1166
1167 PR c/63307
1168 * cilk.c: Include vec.h.
1169 (struct cilk_decls): New structure.
1170 (wrapper_parm_cb): Split this function to...
1171 (fill_decls_vec): ...this...
1172 (create_parm_list): ...and this.
1173 (compare_decls): New function.
1174 (for_local_cb): Remove.
1175 (wrapper_local_cb): Ditto.
1176 (build_wrapper_type): For now first traverse and fill vector of
1177 declarations then sort it and then deal with sorted vector.
1178 (cilk_outline): Ditto.
1179 (declare_one_free_variable): Ditto.
1180
92574c7c
MP
11812014-10-17 Marek Polacek <polacek@redhat.com>
1182
1183 * c-opts.c (c_common_post_options): Set warn_implicit_int.
1184 * c.opt (Wimplicit-int): Initialize to -1.
1185
83685514
AM
11862014-10-16 Andrew MacLeod <amacleod@redhat.com>
1187
1188 * c-pragma.c: Adjust include files.
1189 * c-semantics.c: Likewise.
1190
5b8300ea
DD
11912014-10-16 DJ Delorie <dj@redhat.com>
1192
1193 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
1194 multiples of bytes.
1195
5f83e90b
JM
11962014-10-14 Jason Merrill <jason@redhat.com>
1197
1198 PR c++/63455
1199 * c-common.h (CPP_PREPARSED_EXPR): New.
1200 (N_CP_TTYPES): Adjust.
1201
d73326ca
MP
12022014-10-15 Marek Polacek <polacek@redhat.com>
1203
1204 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
1205
78a7c317
DD
12062014-10-14 DJ Delorie <dj@redhat.com>
1207
1208 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
1209 types, not just __int128.
1210 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
1211 types, not just __int128.
1212 (cpp_atomic_builtins): Round pointer sizes up.
1213 (type_suffix): Use type precision, not specific types.
1214 * c-common.c (c_common_reswords): Remove __int128 special case.
1215 (c_common_type_for_size): Check for all __intN types, not just
1216 __int128.
1217 (c_common_type_for_mode): Likewise.
1218 (c_common_signed_or_unsigned_type): Likewise.
1219 (c_build_bitfield_integer_type): Likewise.
1220 (c_common_nodes_and_builtins): Likewise.
1221 (keyword_begins_type_specifier): Likewise.
1222 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
1223 __intN variants.
1224
2a22f99c
TS
12252014-10-12 Trevor Saunders <tsaunders@mozilla.com>
1226
1227 * c-common.c: Use hash_table instead of hashtab.
1228
2a8ef767
ESR
12292014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
1230
adfac8df 1231 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
1232 C++11 section.
1233
3c9aabbd
MG
12342014-10-03 Marc Glisse <marc.glisse@inria.fr>
1235
1236 PR c++/54427
1237 PR c++/57198
1238 PR c++/58845
1239 * c-common.c (warn_logical_operator): Punt for vectors.
1240
a15f7cb8
ESR
12412014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
1242
1243 Implement SD-6: SG10 Feature Test Recommendations
1244 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
1245 macros and the __has_header macro.
1246
8d0cf15e
JM
12472014-09-30 Jason Merrill <jason@redhat.com>
1248
dd5d5481
JM
1249 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
1250 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
1251 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
1252
b752325e
JM
1253 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
1254 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
1255
8d0cf15e
JM
1256 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
1257 * c-common.c (c_common_reswords): Remove __is_convertible_to.
1258
083e891e
MP
12592014-09-24 Marek Polacek <polacek@redhat.com>
1260
1261 PR c/61405
1262 PR c/53874
1263 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
1264
7861b648
AK
12652014-09-23 Andi Kleen <ak@linux.intel.com>
1266
1267 * c-common.c (handle_no_reorder_attribute): New function.
1268 (c_common_attribute_table): Add no_reorder attribute.
1269
9a79452d
JM
12702014-09-22 Joseph Myers <joseph@codesourcery.com>
1271
1272 * c-cppbuiltin.c (c_cpp_builtins): Define
1273 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
1274 modes.
1275
dd69f047
JM
12762014-09-18 Joseph Myers <joseph@codesourcery.com>
1277
1278 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
1279 for supported floating-point modes.
1280
737a4826
MLI
12812014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1282
1283 * c.opt (Wpsabi): Use LangEnabledBy.
1284 * c-opts.c (c_common_handle_option): Do not handle here.
1285
8cc4b7a2
JM
12862014-09-12 Joseph Myers <joseph@codesourcery.com>
1287
1288 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
1289 macros for floating-point modes.
1290
179b5a55
MG
12912014-09-11 Marc Glisse <marc.glisse@inria.fr>
1292
1293 PR target/58757
1294 * c-cppbuiltin.c (builtin_define_float_constants): Correct
1295 __*_DENORM_MIN__ without denormals.
1296
570a11fe
JJ
12972014-09-10 Jakub Jelinek <jakub@redhat.com>
1298
1299 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1300 ubsan_instrument_vla, ubsan_instrument_return): Adjust
1301 ubsan_create_data callers.
1302 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
1303 index is constant or BIT_AND_EXPR with constant mask and is
1304 small enough for the bound.
1305 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
1306 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
1307
b559c810
MLI
13082014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1309
1310 * c.opt: Add CppReason to various flags.
1311 (Wdate-time): Re-sort.
1312 * c-common.c: Include c-common.h earlier.
1313 (struct reason_option_codes_t): Delete.
1314 (c_option_controlling_cpp_error): Prefix global type and struct
1315 with cpp_.
1316
1ef33fd4
MLI
13172014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1318
1319 * c.opt (Wnormalized): New.
1320 (Wnormalized=): Use Enum and Reject Negative.
1321 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
1322
66bb34c0
JM
13232014-09-08 Joseph Myers <joseph@codesourcery.com>
1324
1325 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
1326 digits of floating-point modes if -fbuilding-libgcc.
1327
53d68b9f
JM
13282014-09-05 Joseph Myers <joseph@codesourcery.com>
1329
1330 * c-cppbuiltin.c (c_cpp_builtins): Also define
1331 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
1332 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
1333 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
1334 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
1335 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
1336 __LIBGCC_STACK_GROWS_DOWNWARD__,
1337 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
1338 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
1339 __LIBGCC_DWARF_FRAME_REGISTERS__,
1340 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
1341 __LIBGCC_STACK_POINTER_REGNUM__ and
1342 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
1343 (builtin_define_with_value): Handle backslash-escaping in string
1344 macro values.
1345
f65586dc
RB
13462014-09-05 Richard Biener <rguenther@suse.de>
1347
1348 PR middle-end/63148
1349 * c-format.c (check_format_arg): Properly handle
1350 effectively signed POINTER_PLUS_EXPR offset.
1351
2b71f4a4
MLI
13522014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1353
1354 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
1355 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
1356 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
1357 and Init.
1358 * c-opts.c (c_common_handle_option): Do not handle here.
1359 (sanitize_cpp_opts): Likewise.
1360 * c-common.c (struct reason_option_codes_t): Handle
1361 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
1362
d2e4feca
MP
13632014-09-03 Marek Polacek <polacek@redhat.com>
1364
1365 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
1366
9a771876
JJ
13672014-09-02 Jakub Jelinek <jakub@redhat.com>
1368 Balaji V. Iyer <balaji.v.iyer@intel.com>
1369 Igor Zamyatin <igor.zamyatin@intel.com>
1370
1371 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
1372 * c-common.c (c_common_reswords): Added _Cilk_for.
1373 * c-common.h (enum rid): Added RID_CILK_FOR.
1374 (cilk_for_number_of_iterations): Add declaration.
1375 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
1376 CILK_FOR.
1377 * c-pragma.c (init_pragma): Register "grainsize" pragma.
1378 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
1379
81b5d104
MLI
13802014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1381
1382 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
1383 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
1384 Wundef): Use CPP, Var and Init.
1385 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
1386
b753b37b
MLI
13872014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1388
1389 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
1390 * c-opts.c (c_common_handle_option): Do not handle here.
1391
028aee17
JM
13922014-08-25 Jason Merrill <jason@redhat.com>
1393
1394 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
1395 -std=c++14 and -std=gnu++14, rather than the reverse.
1396 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
1397 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
1398 * c-common.h (cxx_dialect): Remove cxx1y.
1399
e4276ba5
ESR
14002014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
1401
1402 * c-common.h (enum cxx_dialect): Add cxx14.
1403 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
1404 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
1405 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
1406
a545cacd
JM
14072014-08-22 Jason Merrill <jason@redhat.com>
1408
1409 * c.opt (std=gnu++17): Fix alias.
1410
59ea0364
MP
14112014-08-22 Marek Polacek <polacek@redhat.com>
1412
1413 PR c++/62199
1414 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
1415 check for vector types. Drop LHS argument.
1416 * c-common.h (warn_logical_not_parentheses): Adjust.
1417
596e808c
MLI
14182014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1419
1420 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
1421 (Wmultichar): Likewise.
1422 (Wdate-time): Use C-family languages instead of Common. Use CPP
1423 and Var.
1424 * c-opts.c (c_common_handle_option): Do not handle the above
1425 options here.
1426 (sanitize_cpp_opts): Likewise.
1427
18767f65
MLI
14282014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
1429
1430 PR fortran/44054
1431 * c-opts.c: Include tree-diagnostics.h.
1432 (c_diagnostic_finalizer): New.
1433 (c_common_initialize_diagnostics): Use it.
1434
b4413594
MLI
14352014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1436
1437 PR preprocessor/51303
1438 * c-common.c (struct reason_option_codes_t option_codes):
1439 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
1440
43f9a13c
MLI
14412014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1442
1443 PR c/60975
1444 PR c/53063
1445 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
1446 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
1447 (c_common_post_options): Call init_global_opts_from_cpp.
1448 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
1449
04159acf
MP
14502014-08-19 Marek Polacek <polacek@redhat.com>
1451
1452 PR c++/62153
1453 * c-common.c (maybe_warn_bool_compare): New function.
1454 * c-common.h (maybe_warn_bool_compare): Declare.
1455 * c.opt (Wbool-compare): New option.
1456
35aff4fb
MP
14572014-08-19 Marek Polacek <polacek@redhat.com>
1458
1459 * c.opt (Wc99-c11-compat): New option.
1460
177cce46
MP
14612014-08-19 Marek Polacek <polacek@redhat.com>
1462
1463 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
1464 to warn_c90_c99_compat.
1465 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
1466 to -1.
1467
6ae9194f
MLI
14682014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
1469 Steven Bosscher <steven@gcc.gnu.org>
1470
1471 PR c/52952
1472 * c-format.c: Add extra_arg_loc and format_string_loc to struct
1473 format_check_results.
1474 (check_function_format): Use true and add comment for boolean
1475 argument.
1476 (finish_dollar_format_checking): Use explicit location when warning.
1477 (check_format_info): Likewise.
1478 (check_format_arg): Set extra_arg_loc and format_string_loc.
1479 (check_format_info_main): Use explicit location when warning.
1480 (check_format_types): Pass explicit location.
1481 (format_type_warning): Likewise.
1482
8e54f6d3
MLI
14832014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1484
1485 PR fortran/44054
1486 * c-format.c: Handle Fortran flags.
1487
cd4e76fc
IZ
14882014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
1489
1490 PR other/61962
1491 * array-notation-common.c (find_rank): Added handling for other
1492 types of references.
1493
f3bede71
MP
14942014-08-10 Marek Polacek <polacek@redhat.com>
1495
1496 PR c/51849
1497 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
1498 * c.opt (Wc90-c99-compat): Add option.
1499
9f25a338
TS
15002014-08-07 Trevor Saunders <tsaunders@mozilla.com>
1501
1502 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
1503
62e4eb35
MP
15042014-08-03 Marek Polacek <polacek@redhat.com>
1505
1506 * c-common.c (check_case_value): Add location_t parameter. Use it.
1507 (c_add_case_label): Pass loc to check_case_value.
1508
b787e7a2
TS
15092014-08-02 Trevor Saunders <tsaunders@mozilla.com>
1510
1511 * cilk.c: Use hash_map instead of pointer_map.
1512
6e2830c3
TS
15132014-08-02 Trevor Saunders <tsaunders@mozilla.com>
1514
1515 * c-gimplify.c: Use hash_set instead of pointer_set.
1516
a7ee52fb
IZ
15172014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
1518
1519 PR middle-end/61455
1520 * array-notation-common.c (extract_array_notation_exprs): Handling
1521 of DECL_EXPR added.
1522
944fa280
JJ
15232014-08-01 Jakub Jelinek <jakub@redhat.com>
1524
1525 * c-common.h (min_align_of_type): Removed prototype.
1526 * c-common.c (min_align_of_type): Removed.
1527 * c-ubsan.h (ubsan_maybe_instrument_reference,
1528 ubsan_maybe_instrument_member_call): New prototypes.
1529 * c-ubsan.c: Include stor-layout.h and builtins.h.
1530 (ubsan_maybe_instrument_reference_or_call,
1531 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
1532 functions.
1533
b4dfdc11
MG
15342014-07-31 Marc Glisse <marc.glisse@inria.fr>
1535
1536 PR c++/60517
1537 * c.opt (-Wreturn-local-addr): Move to common.opt.
1538
a41844e5
JM
15392014-07-30 Jason Merrill <jason@redhat.com>
1540
1541 PR c++/61659
1542 PR c++/61687
1543 Revert:
1544 * c.opt (-fuse-all-virtuals): New.
1545
976d5a22
TT
15462014-07-30 Tom Tromey <tromey@redhat.com>
1547
1548 PR c/59855
1549 * c.opt (Wdesignated-init): New option.
1550 * c-common.c (c_common_attribute_table): Add "designated_init".
1551 (handle_designated_init): New function.
1552
cdc94aca
MP
15532014-07-24 Marek Polacek <polacek@redhat.com>
1554
1555 PR c/57653
1556 * c-opts.c (c_finish_options): If -imacros is in effect, return.
1557
f41373b6
DS
15582014-07-16 Dodji Seketeli <dodji@redhat.com>
1559
1560 PR preprocessor/60723 - missing system-ness marks for macro tokens
1561 * c-ppoutput.c (struct print::prev_was_system_token): New data
1562 member.
1563 (init_pp_output): Initialize it.
1564 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
1565 (do_line_change): Return a flag saying if a line marker was
1566 emitted or not.
1567 (scan_translation_unit): Detect if the system-ness of the token we
1568 are about to emit is different from the one of the previously
1569 emitted token. If so, emit a line marker. Avoid emitting useless
1570 adjacent line markers. Avoid emitting line markers for tokens
1571 originating from the expansion of built-in macros.
1572 (scan_translation_unit_directives_only): Adjust.
1573
4d661eaa
MP
15742014-07-15 Marek Polacek <polacek@redhat.com>
1575
1576 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
1577 TYPE_MAX_VALUE is NULL.
1578
b108f48f
JJ
15792014-07-14 Jakub Jelinek <jakub@redhat.com>
1580
1581 PR middle-end/61294
1582 * c.opt (Wmemset-transposed-args): New warning.
1583
c0221884
JM
15842014-07-10 Jason Merrill <jason@redhat.com>
1585
1586 PR c++/61659
1587 PR c++/61687
1588 * c.opt (-fuse-all-virtuals): New.
1589
63dfbb95
RB
15902014-07-09 Richard Biener <rguenther@suse.de>
1591
1592 PR c-family/61741
1593 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1594 using unsigned arithmetic if overflow does not wrap instead of
1595 if overflow is undefined.
1596
773ec47f
MP
15972014-07-06 Marek Polacek <polacek@redhat.com>
1598
1599 PR c/6940
1600 * c.opt (Wsizeof-array-argument): New option.
1601
00a7ba58
JJ
16022014-07-03 Jakub Jelinek <jakub@redhat.com>
1603
1604 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
1605 comments->count <= 1, as comments->entries might be NULL.
1606
52ec0ea3
MP
16072014-07-01 Marek Polacek <polacek@redhat.com>
1608
1609 * c.opt (Wint-conversion): New option.
1610
d5c3d343
MP
16112014-07-01 Marek Polacek <polacek@redhat.com>
1612
1613 PR c/58286
1614 * c.opt (Wincompatible-pointer-types): New option.
1615
6e7ceb17
PC
16162014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
1617
1618 PR c++/51400
1619 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
1620 Do not discard TYPE_QUALS of type.
1621
da73100b
JM
16222014-06-26 Jason Merrill <jason@redhat.com>
1623
1624 * c-common.h (enum cxx_dialect): Add cxx1z.
1625 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
1626 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
1627
08eedf75
TJ
16282014-06-26 Teresa Johnson <tejohnson@google.com>
1629
1630 * c-common.h (get_dump_info): Declare.
1631 * c-gimplify.c (c_genericize): Use saved dump files.
1632 * c-opts.c (c_common_parse_file): Begin and end dumps
1633 once around parsing invocation.
1634 (get_dump_info): New function.
1635
7b56b2f8
MP
16362014-06-23 Marek Polacek <polacek@redhat.com>
1637 Andrew MacLeod <amacleod@redhat.com>
1638
1639 PR c/61553
1640 * c-common.c (get_atomic_generic_size): Don't segfault if the
1641 type doesn't have a size.
1642
0e37a2f3
MP
16432014-06-20 Marek Polacek <polacek@redhat.com>
1644
1645 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
1646 (ubsan_walk_array_refs_r): New function.
1647 (c_genericize): Instrument array bounds.
1648 * c-ubsan.c: Include "internal-fn.h".
1649 (ubsan_instrument_division): Mark instrumented arrays as having
1650 side effects. Adjust ubsan_type_descriptor call.
1651 (ubsan_instrument_shift): Likewise.
1652 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
1653 (ubsan_instrument_bounds): New function.
1654 (ubsan_array_ref_instrumented_p): New function.
1655 (ubsan_maybe_instrument_array_ref): New function.
1656 * c-ubsan.h (ubsan_instrument_bounds): Declare.
1657 (ubsan_array_ref_instrumented_p): Declare.
1658 (ubsan_maybe_instrument_array_ref): Declare.
1659
16602014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
1661
1662 PR lto/61123
1663 * c.opt (fshort-enums): Add to LTO.
1664 * c.opt (fshort-wchar): Likewise.
1665
5c3d09f7
MP
16662014-06-16 Marek Polacek <polacek@redhat.com>
1667
1668 PR c/60439
1669 * c.opt (Wswitch-bool): Add Var.
1670
9cf32741
JJ
16712014-06-12 Jakub Jelinek <jakub@redhat.com>
1672
1673 PR middle-end/61486
1674 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
1675 #pragma omp target teams or
1676 #pragma omp {,target }teams distribute simd.
1677
62984918
JM
16782014-06-12 Jason Merrill <jason@redhat.com>
1679
1680 * c.opt (Wabi=, fabi-compat-version): New.
1681 * c-opts.c (c_common_handle_option): Handle -Wabi=.
1682 (c_common_post_options): Handle flag_abi_compat_version default.
1683 Disallow -fabi-compat-version=1.
1684 * c-common.h (abi_version_crosses): New.
1685
f961457f
JH
16862014-06-11 Jan Hubicka <hubicka@ucw.cz>
1687
adfac8df 1688 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
1689 section names that are no longer trees.
1690
92d28cbb
JJ
16912014-06-10 Jakub Jelinek <jakub@redhat.com>
1692
1693 PR fortran/60928
1694 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
1695 (omp_pragmas): ... back here.
1696
742938c9
MP
16972014-06-05 Marek Polacek <polacek@redhat.com>
1698
1699 PR c/49706
1700 * c-common.c (warn_logical_not_parentheses): New function.
1701 * c-common.h (warn_logical_not_parentheses): Declare.
1702 * c.opt (Wlogical-not-parentheses): New option.
1703
9d548dfb
MP
17042014-06-04 Marek Polacek <polacek@redhat.com>
1705
1706 PR c/30020
1707 * c-common.c (check_case_bounds): Add location parameter.
1708 Use it.
1709 (c_add_case_label): Pass loc to check_case_bounds.
1710
fedfecef
MP
17112014-06-03 Marek Polacek <polacek@redhat.com>
1712
1713 PR c/60439
1714 * c.opt (Wswitch-bool): New option.
1715
f6a7cffc
TS
17162014-05-22 Thomas Schwinge <thomas@codesourcery.com>
1717
040d18b6
TS
1718 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
1719 Remove prototypes.
1720 (record_types_used_by_current_var_decl): Move prototype to where
1721 it belongs.
1722
f6a7cffc
TS
1723 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
1724 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
1725 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
1726
632f2871
RS
17272014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1728
1729 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
1730 * c-common.c (c_common_nodes_and_builtins): Don't initialize
1731 void_zero_node.
1732 * c-pretty-print.c (pp_c_void_constant): New function.
1733 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
1734 (c_pretty_printer::expression): Handle VOID_CST.
1735 * cilk.c (extract_free_variables): Likewise.
1736 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
1737 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
1738
766090c2
TS
17392014-05-17 Trevor Saunders <tsaunders@mozilla.com>
1740
1741 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
1742 * c-pragma.c (push_alignment): Adjust.
1743 (handle_pragma_push_options): Likewise.
1744
661a0813
MP
17452014-05-09 Marek Polacek <polacek@redhat.com>
1746
1747 PR c/50459
1748 * c-common.c (check_user_alignment): Return -1 if alignment is error
1749 node.
1750 (handle_aligned_attribute): Don't call default_conversion on
1751 FUNCTION_DECLs.
1752 (handle_vector_size_attribute): Likewise.
1753 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
1754 (handle_sentinel_attribute): Call default_conversion and allow even
1755 integral types as an argument.
1756
2793eeab
MP
17572014-05-08 Marek Polacek <polacek@redhat.com>
1758
1759 PR c/61053
1760 * c-common.c (min_align_of_type): New function factored out from...
1761 (c_sizeof_or_alignof_type): ...here.
1762 * c-common.h (min_align_of_type): Declare.
1763
f827930a
MP
17642014-05-08 Marek Polacek <polacek@redhat.com>
1765
1766 PR c/61077
1767 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
1768 parameter type of main.
1769
ca49b74e
DD
17702014-05-07 DJ Delorie <dj@redhat.com>
1771
1772 * c-cppbuiltin.c (print_bits_of_hex): New.
1773 (builtin_define_type_minmax): Print values using hex so as not to
1774 require a pre-computed list of string values.
1775
1d60af08
KZ
17762014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
1777 Mike Stump <mikestump@comcast.net>
1778 Richard Sandiford <rdsandiford@googlemail.com>
1779
1780 * c-ada-spec.c: Include wide-int.h.
1781 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
1782 (dump_generic_ada_node): Use wide-int interfaces.
1783 * c-common.c: Include wide-int-print.h.
1784 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
1785 (pointer_int_sum): Use wide-int interfaces.
1786 (c_common_nodes_and_builtins): Use make_int_cst.
1787 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
1788 (handle_alloc_size_attribute): Use wide-int interfaces.
1789 (get_nonnull_operand): Likewise.
1790 * c-format.c (get_constant): Use tree_fits_uhwi_p.
1791 * c-lex.c: Include wide-int.h.
1792 (narrowest_unsigned_type): Take a widest_int rather than two
1793 HOST_WIDE_INTs.
1794 (narrowest_signed_type): Likewise.
1795 (interpret_integer): Update accordingly. Use wide-int interfaces.
1796 (lex_charconst): Use wide-int interfaces.
1797 * c-pretty-print.c: Include wide-int.h.
1798 (pp_c_integer_constant): Use wide-int interfaces.
1799 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
1800 INT_CST_LT_UNSIGNED.
1801
b15458be
RB
18022014-05-06 Richard Biener <rguenther@suse.de>
1803
1804 * c-opts.c (c_common_post_options): For -freestanding,
1805 -fno-hosted and -fno-builtin disable pattern recognition
1806 if not enabled explicitely.
1807
6577374e
MP
18082014-05-02 Marek Polacek <polacek@redhat.com>
1809
1810 * c.opt (Wsizeof-pointer-memaccess): Describe option.
1811
d00887e8
MP
18122014-05-01 Marek Polacek <polacek@redhat.com>
1813
1814 PR c/43245
1815 * c.opt (Wdiscarded-qualifiers): Add.
1816
f8ed5150
MP
18172014-04-30 Marek Polacek <polacek@redhat.com>
1818
1819 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
1820 INT_MIN / -1 sanitization only for integer types.
1821
45484dcf
MP
18222014-04-25 Marek Polacek <polacek@redhat.com>
1823
1824 PR c/18079
1825 * c-common.c (handle_noinline_attribute): Warn if the attribute
1826 conflicts with always_inline attribute.
1827 (handle_always_inline_attribute): Warn if the attribute conflicts
1828 with noinline attribute.
1829
38e514c0
MP
18302014-04-25 Marek Polacek <polacek@redhat.com>
1831
1832 PR c/60156
1833 * c-common.c (check_main_parameter_types): Warn about variadic main.
1834
44875f92
MS
18352014-04-24 Mike Stump <mikestump@comcast.net>
1836
1837 * c.opt (Wshadow-ivar): Default to on.
1838
dcaaa5a0
DP
18392014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
1840
1841 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
1842
c07d7c02
MP
18432014-04-23 Marek Polacek <polacek@redhat.com>
1844
1845 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
1846
1c33c9b7
JJ
18472014-04-22 Jakub Jelinek <jakub@redhat.com>
1848
1849 PR sanitizer/60275
1850 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
1851 if flag_sanitize_undefined_trap_on_error.
1852 (ubsan_instrument_division, ubsan_instrument_shift,
1853 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
1854 if !flag_sanitize_recover.
1855
793c625f
MG
18562014-04-22 Marc Glisse <marc.glisse@inria.fr>
1857
1858 PR libstdc++/43622
1859 * c-common.c (registered_builtin_types): Make non-static.
1860 * c-common.h (registered_builtin_types): Declare.
1861
b0f1bf36
RB
18622014-04-14 Richard Biener <rguenther@suse.de>
1863 Marc Glisse <marc.glisse@inria.fr>
1864
1865 PR c/60819
1866 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
1867 apply may-alias the scalar pointer type when applicable.
1868
3b07fa4a
IZ
18692014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
1870
1871 PR middle-end/60467
1872 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
1873 as possible argument for Cilk_spawn.
1874
cbbd2b1c
TB
18752014-04-11 Tobias Burnus <burnus@net-b.de>
1876
1877 PR c/60194
1878 * c.opt (Wformat-signedness): Add
1879 * c-format.c(check_format_types): Use it.
1880
6415bd5d
JM
18812014-04-11 Jason Merrill <jason@redhat.com>
1882
1883 PR c++/57926
1884 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
1885 default_conversion for an array argument.
1886
6525783a
MP
18872014-04-08 Marek Polacek <polacek@redhat.com>
1888
1889 PR sanitizer/60745
1890 * c-ubsan.c: Include asan.h.
1891 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
1892
880a467b
NS
18932014-04-03 Nathan Sidwell <nathan@codesourcery.com>
1894
1895 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
1896
7b59ff2d
MP
18972014-04-02 Marek Polacek <polacek@redhat.com>
1898
1899 * c-common.h (c_expand_expr): Remove declaration.
1900
8edbfaa6
JJ
19012014-03-28 Jakub Jelinek <jakub@redhat.com>
1902
1903 PR c++/60689
1904 * c-common.c (add_atomic_size_parameter): When creating new
1905 params vector, push the size argument first.
1906
07d72e1d
JJ
19072014-03-26 Jakub Jelinek <jakub@redhat.com>
1908
1909 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1910 ubsan_instrument_vla, ubsan_instrument_return): Adjust
1911 ubsan_create_data callers.
1912
b35e0fa0
JJ
19132014-03-22 Jakub Jelinek <jakub@redhat.com>
1914
1915 PR debug/60603
1916 * c-opts.c (c_finish_options): Restore cb_file_change call to
1917 <built-in>.
1918
39a1ebb3
JJ
19192014-03-13 Jakub Jelinek <jakub@redhat.com>
1920
1921 PR middle-end/36282
1922 * c-pragma.c (apply_pragma_weak): Only look at
1923 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
1924 DECL_ASSEMBLER_NAME_SET_P (decl).
1925 (maybe_apply_pending_pragma_weaks): Exit early if
1926 vec_safe_is_empty (pending_weaks) rather than only when
1927 !pending_weaks.
1928 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
1929 set assembler name back to NULL afterwards.
1930
a07f6ed2
JM
19312014-03-11 Jason Merrill <jason@redhat.com>
1932
1933 * c.opt: Add -std=gnu++14.
1934
75b107f5
IB
19352014-03-11 Ian Bolton <ian.bolton@arm.com>
1936
1937 * c-opts.c (c_common_post_options): Don't override
1938 -ffp-contract=fast if unsafe-math-optimizations is on.
1939
f42c637e
PM
19402014-03-08 Paulo Matos <paulo@matos-sorge.com>
1941
1942 * c.opt: Enable LTO FE for fshort-double.
1943
70e24808
JM
19442014-03-07 Jason Merrill <jason@redhat.com>
1945
1946 * c.opt: Add -std=c++14.
1947
3af9c5e9
MP
19482014-03-06 Marek Polacek <polacek@redhat.com>
1949
1950 PR c/60197
1951 * cilk.c (contains_cilk_spawn_stmt): New function.
1952 (contains_cilk_spawn_stmt_walker): Likewise.
1953 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
1954 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
1955
b3bdf019
JJ
19562014-03-03 Jakub Jelinek <jakub@redhat.com>
1957
1958 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
1959 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
1960 even when flag_preprocess_only.
1961
ca7e759d
JM
19622014-02-26 Jason Merrill <jason@redhat.com>
1963
1964 PR c++/59231
1965 PR c++/11586
1966 * c-common.c (shorten_compare): Don't check
1967 c_inhibit_evaluation_warnings.
1968
28e41874
JJ
19692014-02-19 Jakub Jelinek <jakub@redhat.com>
1970
cca615af
JJ
1971 PR c/37743
1972 * c-common.c (c_common_nodes_and_builtins): When initializing
1973 c_uint{16,32,64}_type_node, also set corresponding
1974 uint{16,32,64}_type_node to the same value.
1975
28e41874
JJ
1976 PR c++/60267
1977 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
1978 for PRAGMA_IVDEP if flag_preprocess_only.
1979
c2bf53a1
JJ
19802014-02-12 Jakub Jelinek <jakub@redhat.com>
1981
1982 PR c/60101
1983 * c-common.c (merge_tlist): If copy is true, call new_tlist,
1984 if false, add ADD itself, rather than vice versa.
1985 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
1986 copy. For SAVE_EXPR, only call merge_tlist once.
1987
8fcbce72
JJ
19882014-02-08 Jakub Jelinek <jakub@redhat.com>
1989
1990 PR middle-end/60092
1991 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
1992 and tree_to_uhwi.
1993 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
1994 functions.
1995 (c_common_attribute_table): Add alloc_align and assume_aligned
1996 attributes.
1997
0a756a3f
MP
19982014-02-06 Marek Polacek <polacek@redhat.com>
1999
2000 PR c/60087
2001 * c-common.c (warn_for_sign_compare): Call warning_at with location
2002 instead of warning.
2003
7ec4847a
MP
20042014-02-05 Marek Polacek <polacek@redhat.com>
2005
2006 PR c/53123
2007 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
2008 statement.
2009
66f20604
MP
20102014-02-04 Marek Polacek <polacek@redhat.com>
2011
2012 PR c/60036
2013 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
2014 SAVE_EXPR.
2015
5d77fb19
MG
20162014-02-03 Marc Glisse <marc.glisse@inria.fr>
2017
2018 PR c++/53017
2019 PR c++/59211
2020 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
2021 handle_vector_size_attribute, handle_nonnull_attribute): Call
2022 default_conversion on the attribute argument.
2023 (handle_nonnull_attribute): Increment the argument number.
2024
81e5eca8
MP
20252014-01-31 Marek Polacek <polacek@redhat.com>
2026
2027 PR c/59963
2028 * c-common.c (add_atomic_size_parameter): Pass vNULL to
2029 build_function_call_vec.
2030 (resolve_overloaded_builtin): Likewise.
2031 * c-common.h (build_function_call_vec): Adjust declaration.
2032
68fca595
MP
20332014-01-30 Marek Polacek <polacek@redhat.com>
2034
2035 PR c/59940
2036 * c-common.h (unsafe_conversion_p): Adjust declaration.
2037 (warnings_for_convert_and_check): Likewise.
2038 (convert_and_check): Likewise.
2039 * c-common.c (unsafe_conversion_p): Add location parameter. Call
2040 expansion_point_location_if_in_system_header on it.
2041 (warnings_for_convert_and_check): Add location parameter. Call
2042 expansion_point_location_if_in_system_header on it. Use it.
2043 (convert_and_check): Add location parameter. Use it.
2044 (conversion_warning): Likewise.
2045 (c_add_case_label): Adjust convert_and_check calls.
2046 (scalar_to_vector): Adjust unsafe_conversion_p calls.
2047
b72271b9
BI
20482014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
2049
2050 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
2051 flag_cilkplus.
2052 * c-pragma.c (init_pragma): Likewise.
2053 * c.opt: Likewise.
2054
393e8e8b
MP
20552014-01-23 Marek Polacek <polacek@redhat.com>
2056
2057 PR c/59846
2058 * c-common.c (shorten_compare): Add location_t parameter.
2059 * c-common.h (shorten_binary_op): Adjust declaration.
2060
f04dda30
MP
20612014-01-23 Marek Polacek <polacek@redhat.com>
2062
2063 PR c/58346
2064 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
2065 * c-common.h: Declare it.
2066
621955cb
EB
20672014-01-20 Eric Botcazou <ebotcazou@adacore.com>
2068
2069 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
2070 * c-ada-spec.c (dump_ads): Likewise.
2071 (cpp_check): Likewise.
2072 (dump_ada_specs): Likewise.
2073
20742014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
2075
2076 PR c++/49718
2077 * c-common.c (handle_no_instrument_function_attribute): Allow
2078 no_instrument_function attribute in class member
2079 definition/declaration.
2080
241f845a
JJ
20812014-01-15 Jakub Jelinek <jakub@redhat.com>
2082
2083 PR c/58943
2084 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
2085 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
2086 being COMPOUND_EXPR.
2087 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
2088 operand a SAVE_EXPR and second MODIFY_EXPR.
2089
e83b8e2e
JJ
20902014-01-09 Jakub Jelinek <jakub@redhat.com>
2091
2092 PR target/58115
2093 * c-pch.c (c_common_write_pch): Call
2094 prepare_target_option_nodes_for_pch.
2095
23a5b65a
RS
20962014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2097
2098 Update copyright years
2099
f9030485
RS
21002014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2101
2102 * array-notation-common.c, c-cilkplus.c: Use the standard form for
2103 the copyright notice.
2104
f2aa696b
EB
21052013-12-28 Eric Botcazou <ebotcazou@adacore.com>
2106
2107 * c-ada-spec.c (print_constructor): New function.
2108 (print_destructor): Retrieve the origin of the destructor.
2109 (print_ada_declaration): Revamp handling of constructors/destructors.
2110
1f26ac87
JM
21112013-12-23 Stuart Hastings <stuart@apple.com>
2112 Bill Maddox <maddox@google.com>
2113 Jason Merrill <jason@redhat.com>
2114
2115 * c.opt: Add -fdeclone-ctor-dtor.
2116 * c-opts.c (c_common_post_options): Default to on iff -Os.
2117
41958c28
BI
21182013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
2119
2120 * c-common.c (c_common_attribute_table): Added "cilk simd function"
2121 attribute.
2122 * c-pragma.h (enum pragma_cilk_clause): Remove.
2123 (enum pragma_omp_clause): Added the following fields:
2124 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
2125 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
2126 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
2127 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
2128 PRAGMA_CILK_CLAUSE_UNIFORM.
2129
2130
12893402
BI
21312013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
2132
2133 * cilk.c (cilk_outline): Made this function non-static.
2134 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
2135 (create_cilk_wrapper): Added a new parameter: a function pointer.
2136 (c_install_body_w_frame_cleanup): Remove
2137 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
2138 * c-common.h (cilk_outline): New prototype.
2139 (gimplify_cilk_spawn): Removed two parameters.
2140 (cilk_install_body_with_frame_cleanup): New prototype.
2141 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
2142 CILK_SPAWN_STMT case.
2143
085b42ed
BS
21442013-12-11 Bernd Schmidt <bernds@codesourcery.com>
2145
2ce064c3
BS
2146 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
2147
085b42ed
BS
2148 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
2149 (int_array_type_node): Remove.
2150 * c-common.c (c_common_nodes_and_builtins): Don't build it.
2151
9e36c9ed
MP
21522013-12-05 Marek Polacek <polacek@redhat.com>
2153
2154 PR c/52023
2155 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
2156 [ADJUST_FIELD_ALIGN].
2157
296674db
JM
21582013-12-04 Joseph Myers <joseph@codesourcery.com>
2159
2160 PR c/52023
2161 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
2162 and check field alignment if set.
2163 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
2164 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
2165
31e071ae
MP
21662013-12-04 Jakub Jelinek <jakub@redhat.com>
2167 Marek Polacek <polacek@redhat.com>
2168
2169 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
2170 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
2171
d7947e19
L
21722013-11-29 H.J. Lu <hongjiu.lu@intel.com>
2173
2174 PR c/59309
2175 * cilk.c (gimplify_cilk_spawn): Properly handle function without
2176 arguments.
2177
fad7652e
JJ
21782013-11-29 Jakub Jelinek <jakub@redhat.com>
2179
2180 PR c/59280
2181 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
2182 goto invalid. If it is error_mark_node, don't issue further
2183 diagnostics.
2184
8b5e1202
SO
21852013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
2186
2187 * c.opt (Wopenmp-simd): New.
2188
0a508bb6
JJ
21892013-11-22 Jakub Jelinek <jakub@redhat.com>
2190
2191 * c-ubsan.h (ubsan_instrument_return): New prototype.
2192 * c-ubsan.c (ubsan_instrument_return): New function.
2193
2fb9a547
AM
21942013-11-22 Andrew MacLeod <amacleod@redhat.com>
2195
2196 * c-common.c: Add required include files from gimple.h.
2197 * c-gimplify.c: Likewise
2198 * cilk.c: Likewise
2199
8400e75e
DM
22002013-11-22 David Malcolm <dmalcolm@redhat.com>
2201
2202 * c-common.c (unsafe_conversion_p): Remove use of
2203 EXPR_LOC_OR_HERE macro.
2204 (conversion_warning): Likewise.
2205 (warnings_for_convert_and_check): Likewise.
2206 (warn_for_collisions_1): Likewise.
2207 (shorten_compare): Likewise, and remove use of in_system_header
2208 macro, using the location from the former.
2209 * c-lex.c (dump_one_header): Remove use of input_filename macro.
2210 (cb_def_pragma): Remove use of in_system_header macro.
2211 (lex_string): Likewise.
2212 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
2213
eb1ce453
KZ
22142013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2215 Mike Stump <mikestump@comcast.net>
2216 Richard Sandiford <rdsandiford@googlemail.com>
2217
2218 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
2219 instead of TREE_INT_CST_LOW, in cases where there is a protecting
2220 tree_fits_shwi_p or tree_fits_uhwi_p.
2221 (dump_generic_ada_node): Likewise.
2222 * c-format.c (check_format_arg): Likewise.
2223 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2224
6b3b8c27
KZ
22252013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2226
2227 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
2228
49b0aa18
JC
22292013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
2230
2231 PR c/53001
2232 * c-common.c (unsafe_conversion_p): Make this function
2233 return an enumeration with more detail.
2234 (conversion_warning): Use the new return type of
2235 unsafe_conversion_p to separately warn either about conversions
2236 that lower floating point number precision or about the other
2237 kinds of conversions.
2238 * c-common.h (enum conversion_safety): New enumeration.
2239 (unsafe_conversion_p): switching return type to
2240 conversion_safety enumeration.
2241 * c.opt: Adding new warning -Wfloat-conversion and
2242 enabling it with -Wconversion.
2243
b826515a
BS
22442013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
2245
2246 * c-opts.c: Include plugin.h.
2247 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
2248
b9a55b13
MP
22492013-11-19 Marek Polacek <polacek@redhat.com>
2250
2251 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
2252 call.
2253 (ubsan_instrument_shift): Likewise.
2254 (ubsan_instrument_vla): Likewise.
2255
7d362f6c
RS
22562013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2257
2258 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
2259 cast to unsigned type.
2260
386b1f1f
RS
22612013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2262
2263 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
2264 tree_low_cst.
2265 (complete_array_type): Update comment to refer to tree_to_[su]hwi
2266 rather than tree_low_cst.
2267
ae7e9ddd
RS
22682013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2269
2270 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
2271 tree_to_uhwi throughout.
2272
9439e9a1
RS
22732013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2274
2275 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
2276 tree_low_cst (..., 0) with tree_to_shwi throughout.
2277
cc269bb6
RS
22782013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2279
2280 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
2281 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
2282
9541ffee
RS
22832013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2284
2285 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
2286 host_integerp (..., 0) with tree_fits_shwi_p throughout.
2287
c02065fc
AH
22882013-11-15 Aldy Hernandez <aldyh@redhat.com>
2289
2290 * c-cilkplus.c: New file.
2291 * c-common.c (readonly_error): Add location argument.
2292 * c-common.h (readonly_error): Same.
2293 (c_finish_cilk_clauses): Protoize.
2294 (c_check_cilk_loop): Same.
2295 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
2296 Do not fail on error_mark_node.
2297 Abstract increment canonicalization to here...
2298 (c_omp_for_incr_canonicalize_ptr): New.
2299 c-pragma.c (init_pragma): Register "simd" pragma.
2300 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
2301 (enum pragma_cilk_clause): New.
2302
9cc65f15
RS
23032013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
2304
2305 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
2306 wchar_type and host_integerp checks.
2307
18f429e2
AM
23082013-11-14 Andrew MacLeod <amacleod@redhat.com>
2309
2310 * c-common.c: Likewise.
2311 * c-gimplify.c: Likewise.
2312 * cilk.c: Likewise.
2313
d8a2d370
DN
23142013-11-14 Diego Novillo <dnovillo@google.com>
2315
2316 * c-common.c: Include fold-const.h.
2317 Include stor-layout.h.
2318 Include calls.h.
2319 Include stringpool.h.
2320 Include attribs.h.
2321 Include varasm.h.
2322 Include trans-mem.h.
2323 * c-cppbuiltin.c: Include stor-layout.h.
2324 Include stringpool.h.
2325 * c-format.c: Include stringpool.h.
2326 * c-lex.c: Include stringpool.h.
2327 Include stor-layout.h.
2328 * c-pragma.c: Include stringpool.h.
2329 Include attribs.h.
2330 Include varasm.h.
2331 Include gcc-symtab.h.
2332 * c-pretty-print.c: Include stor-layout.h.
2333 Include attribs.h.
2334 * cilk.c: Include stringpool.h.
2335 Include calls.h.
2336
38b7bc7f
JM
23372013-11-13 Joseph Myers <joseph@codesourcery.com>
2338
2339 * c-common.h (enum rid): Add RID_AUTO_TYPE.
2340 * c-common.c (c_common_reswords): Add __auto_type.
2341 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
2342
45b0be94
AM
23432013-11-12 Andrew MacLeod <amacleod@redhat.com>
2344
18f429e2
AM
2345 * c-common.c: Include gimplify.h.
2346 * c-gimplify.c: Likewise.
2347 * cilk.c: Likewise.
2348 * c-omp.c: Include gimple-expr.h instead of gimple.h.
2349 * c-ubsan.c: Don't include gimple.h.
45b0be94 2350
582d9b50
JM
23512013-11-12 Joseph Myers <joseph@codesourcery.com>
2352
2353 * c-common.c (c_common_reswords): Add _Thread_local.
2354
6b28e197
JM
23552013-11-09 Joseph Myers <joseph@codesourcery.com>
2356
2357 * c-common.c (atomic_size_supported_p): New function.
2358 (resolve_overloaded_atomic_exchange)
2359 (resolve_overloaded_atomic_compare_exchange)
2360 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
2361 Use it instead of comparing size with a local list of sizes.
2362
267bac10
JM
23632013-11-07 Andrew MacLeod <amacleod@redhat.com>
2364 Joseph Myers <joseph@codesourcery.com>
2365
2366 * c-common.h (enum rid): Add RID_ATOMIC.
2367 * c-common.c (c_common_reswords): Add _Atomic.
2368 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
2369 (keyword_is_type_qualifier): Accept RID_ATOMIC.
2370 * c-format.c (check_format_types): Check for extra _Atomic
2371 qualifiers in format argument.
2372 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
2373 (pp_c_type_qualifier_list): Mention _Atomic in comment.
2374
5157b91e
TB
23752013-11-06 Tobias Burnus <burnus@net-b.de>
2376
2377 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
2378
6dbe0958
JM
23792013-11-06 Joseph Myers <joseph@codesourcery.com>
2380
2381 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
2382 standards modes.
2383 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
2384 to mean lack of IEEE 754 support.
2385
e8ff5196
TB
23862013-11-05 Tobias Burnus <burnus@net-b.de>
2387
2388 * c.opt (-Wdate-time): New option
2389 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
2390
254a0760
JM
23912013-11-05 Joseph Myers <joseph@codesourcery.com>
2392
2393 * c-cppbuiltin.c (cpp_iec_559_value): Test
2394 flag_excess_precision_cmdline not flag_excess_precision.
2395
6d7f7e0a
TB
23962013-11-05 Tobias Burnus <burnus@net-b.de>
2397
2398 * c.opt (fopenmp-simd): New option.
2399 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
2400 (omp_pragmas): ... this new struct.
2401 (c_pp_lookup_pragma): Also walk omp_pragmas.
2402 (init_pragma): Init pragmas for -fopenmp-simd.
2403
55a7f02f
MP
24042013-11-04 Marek Polacek <polacek@redhat.com>
2405
2406 PR c++/58979
2407 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
2408
9193fb05
JM
24092013-11-04 Joseph Myers <joseph@codesourcery.com>
2410
2411 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
2412 New functions.
2413 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
2414
94159ecf
EB
24152013-11-04 Eric Botcazou <ebotcazou@adacore.com>
2416
2417 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
2418 (dump_ada_specs): Adjust prototype of second callback.
2419 * c-ada-spec.c (cpp_check): New global variable.
2420 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
2421 (print_generic_ada_decl): Likewise.
2422 (has_static_fields): Change return type to bool and add guard.
2423 (has_nontrivial_methods): New predicate.
2424 (is_tagged_type): Change return type to bool.
2425 (separate_class_package): Call has_nontrivial_methods.
2426 (pp_ada_tree_identifier): Minor tweaks.
2427 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
2428 (dump_ada_array_domains): Likewise.
2429 (dump_ada_array_type): Likewise.
2430 (dump_template_types): Remove cpp_check parameter and do not pass it to
2431 dump_generic_ada_node.
2432 (dump_ada_template): Likewise.
2433 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
2434 recursively.
2435 (print_ada_methods): Change return type to integer. Remove cpp_check
2436 parameter and do not pass it down.
2437 (dump_nested_types): Remove cpp_check parameter and do not pass it to
2438 dump_generic_ada_node.
2439 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
2440 accessing methods.
2441 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
2442 down. Use has_nontrivial_methods to recognize C++ classes. Use return
2443 value of print_ada_methods.
2444 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
2445 Set cpp_check to it before invoking dump_ada_nodes.
2446 (dump_ada_specs): Likewise.
2447
b906f4ca
MP
24482013-11-03 Marek Polacek <polacek@redhat.com>
2449
2450 * c-ubsan.c: Don't include hash-table.h.
2451 (ubsan_instrument_vla): New function.
2452 * c-ubsan.h: Declare it.
2453
5e20cdc9
DM
24542013-10-31 David Malcolm <dmalcolm@redhat.com>
2455
2456 Automated part of renaming of symtab_node_base to symtab_node.
2457
2458 Patch autogenerated by rename_symtab.py from
2459 https://github.com/davidmalcolm/gcc-refactoring-scripts
2460 revision 58bb219cc090b2f4516a9297d868c245495ee622
2461
2462 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
2463 symtab_node_base to symtab_node.
2464
7057e645
ESR
24652013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
2466
2467 Implement C++14 digit separators.
2468 * c-lex.c (interpret_float): Remove digit separators from scratch string
2469 before building real literal.
2470
193ea7bc
JJ
24712013-10-30 Jakub Jelinek <jakub@redhat.com>
2472
2473 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
2474
939b37da
BI
24752013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
2476
2477 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
2478 fields.
2479 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
2480 enabled.
2481 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
2482 (insert_cilk_frame): New prototype.
2483 (cilk_init_builtins): Likewise.
2484 (gimplify_cilk_spawn): Likewise.
2485 (c_cilk_install_body_w_frame_cleanup): Likewise.
2486 (cilk_detect_spawn_and_unwrap): Likewise.
2487 (cilk_set_spawn_marker): Likewise.
2488 (build_cilk_sync): Likewise.
2489 (build_cilk_spawn): Likewise.
2490 * cilk.c: New file.
2491
67348ccc
DM
24922013-10-29 David Malcolm <dmalcolm@redhat.com>
2493
2494 Patch autogenerated by refactor_symtab.py from
2495 https://github.com/davidmalcolm/gcc-refactoring-scripts
2496 revision 58bb219cc090b2f4516a9297d868c245495ee622
2497
2498 * c-gimplify.c (c_genericize): Update for conversion of symtab types
2499 to a true class hierarchy.
2500 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
2501
d570872d
RS
25022013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
2503
2504 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
2505
98906124
JL
25062013-10-26 Jeff Law <law@redhat.com>
2507
adfac8df
JJ
2508 * c-common.c (c_define_builtins): Remove mudflap support.
2509 * c.opt: Ignore and warn for mudflap options.
98906124 2510
d73749df 25112013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
2512
2513 PR other/33426
2514 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
2515 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
2516
3f04b1bb
JM
25172013-10-23 Jason Merrill <jason@redhat.com>
2518
2519 * c-format.c (gcc_cxxdiag_char_table): Add %X.
2520
acf0174b
JJ
25212013-10-11 Jakub Jelinek <jakub@redhat.com>
2522
acd15a28
JJ
2523 * c-common.h (omp_clause_mask::operator !=): New method.
2524 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
2525 instead of if (mask & something) tests everywhere.
2526
acf0174b
JJ
2527 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
2528 201307 instead of 201107.
2529 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
2530 (c_common_attribute_table): Add "omp declare target" and
2531 "omp declare simd" attributes.
2532 (handle_omp_declare_target_attribute,
2533 handle_omp_declare_simd_attribute): New functions.
2534 * c-omp.c: Include c-pragma.h.
2535 (c_finish_omp_taskgroup): New function.
2536 (c_finish_omp_atomic): Add swapped argument, if true,
2537 build the operation first with rhs, lhs arguments and use NOP_EXPR
2538 build_modify_expr.
2539 (c_finish_omp_for): Add code argument, pass it down to make_code.
2540 (c_omp_split_clauses): New function.
2541 (c_split_parallel_clauses): Removed.
2542 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
2543 c_omp_declare_simd_clauses_to_decls): New functions.
2544 * c-common.h (omp_clause_mask): New type.
2545 (OMP_CLAUSE_MASK_1): Define.
2546 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
2547 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
2548 omp_clause_mask::operator |, omp_clause_mask::operator &,
2549 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
2550 omp_clause_mask::operator ==): New methods.
2551 (enum c_omp_clause_split): New.
2552 (c_finish_omp_taskgroup): New prototype.
2553 (c_finish_omp_atomic): Add swapped argument.
2554 (c_finish_omp_for): Add code argument.
2555 (c_omp_split_clauses): New prototype.
2556 (c_split_parallel_clauses): Removed.
2557 (c_omp_declare_simd_clauses_to_numbers,
2558 c_omp_declare_simd_clauses_to_decls): New prototypes.
2559 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
2560 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
2561 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
2562 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
2563 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
2564 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
2565 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
2566 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
2567 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
2568 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
2569 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
2570 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
2571 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
2572 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
2573 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
2574 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
2575 PRAGMA_OMP_CLAUSE_UNIFORM.
2576
826cacfe
MG
25772013-10-09 Marc Glisse <marc.glisse@inria.fr>
2578
2579 PR tree-optimization/20318
2580 * c-common.c (handle_returns_nonnull_attribute): New function.
2581 (c_common_attribute_table): Add returns_nonnull.
2582
2284b034
MG
25832013-10-03 Marc Glisse <marc.glisse@inria.fr>
2584
2585 PR c++/19476
2586 * c.opt (fcheck-new): Move to common.opt.
2587
b56e9788
MP
25882013-09-25 Marek Polacek <polacek@redhat.com>
2589 Jakub Jelinek <jakub@redhat.com>
2590
2591 PR sanitizer/58413
2592 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
2593 an expression if we can prove it is correct.
2594 (ubsan_instrument_division): Likewise. Remove unnecessary
2595 check.
2596
ce6923c5
MP
25972013-09-18 Marek Polacek <polacek@redhat.com>
2598
2599 PR sanitizer/58411
2600 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
2601 Declare it.
2602 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
2603
fb5610fb
IS
26042013-09-14 Iain Sandoe <iain@codesourcery.com>
2605
2606 PR target/48094
2607 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
2608 fobjc-gc, freplace-objc-classes): Accept for LTO.
2609
88b0e79e
JC
26102013-09-13 Jacek Caban <jacek@codeweavers.com>
2611
2612 * c-target.def: New hook
2613
c9b0866a
PC
26142013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
2615
2616 PR c++/43452
2617 * c.opt (Wdelete-incomplete): Add.
2618
0af94e6f
JR
26192013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
2620
2621 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
2622 (vector_types_compatible_elements_p): New function.
2623 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
2624 declaration.
2625 (vector_types_compatible_elements_p): Declare.
2626
7c26172c
GDR
26272013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2628
2629 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
2630 a virtual member function.
2631 (pp_simple_type_specifier): Remove.
2632 (pp_c_type_specifier): Likewise.
2633 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
2634 Rename from pp_c_type_specifier. Adjust.
2635 (c_pretty_printer::c_pretty_printer): Do not assign to
2636 simple_type_specifier.
2637
20059c8b
GDR
26382013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2639
2640 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
2641 member function.
2642 (c_pretty_printer::storage_class_specifier): Likewise.
2643 (c_pretty_printer::initializer): Likewise.
2644 (pp_declaration): Remove.
2645 (pp_declaration_specifiers): Likewise.
2646 (pp_abstract_declarator): Likewise.
2647 (pp_declarator): Likewise.
2648 (pp_type_id): Likewise.
2649 (pp_statement): Likewise.
2650 (pp_constant): Likewise.
2651 (pp_id_expression): Likewise.
2652 (pp_primary_expression): Likewise.
2653 (pp_unary_expression): Likewise.
2654 (pp_multiplicative_expression): Likewise.
2655 (pp_conditional_expression): Likewise.
2656 (pp_assignment_expression): Likewise.
2657 (pp_expression): Likewise.
2658 (pp_c_type_id): Likewise.
2659 (pp_c_storage_class_specifier): Likewise.
2660 * c-pretty-print.c (pp_c_type_cast): Tidy.
2661 (pp_c_pointer): Likewise.
2662 (pp_c_type_specifier): Likewise.
2663 (pp_c_parameter_type_list): Likewise.
2664 (pp_c_function_definition): Likewise.
2665 (pp_c_init_declarator): Likewise.
2666 (pp_c_initializer_list): Likewise.
2667 (pp_c_constructor_elts): Likewise.
2668 (c_pretty_printer::direct_abstract_declarator): Likewise.
2669 (c_pretty_printer::declaration_specifiers): Likewise.
2670 (c_pretty_printer::primary_expression): Likewise.
2671 (c_pretty_printer::postfix_expression): Likewise.
2672 (c_pretty_printer::type_id): Rename from pp_c_type_id.
2673 (c_pretty_printer::storage_class_specifier): Rename from
2674 pp_c_storage_class_specifier.
2675 (c_pretty_printer::initializer): Rename from pp_c_initializer.
2676 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
2677 storage_class_specifier, initializer, offset_list, flags.
2678
de5a5fa1
MP
26792013-08-30 Marek Polacek <polacek@redhat.com>
2680
2681 * c-ubsan.c: New file.
2682 * c-ubsan.h: New file.
2683
8f0e4d72
GDR
26842013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2685
2686 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
2687 member function.
2688 (c_pretty_printer::declaration_specifiers): Likewise.
2689 (c_pretty_printer::declarator): Likewise.
2690 (c_pretty_printer::abstract_declarator): Likewise.
2691 (c_pretty_printer::direct_abstract_declarator): Likewise.
2692 (c_pretty_printer::direct_declarator): Likewise.
2693 (c_pretty_printer::function_specifier): Likewise.
2694 (pp_declaration): Adjust.
2695 (pp_declaration_specifiers): Likewise.
2696 (pp_abstract_declarator): Likewise.
2697 (pp_direct_declarator): Likewise.
2698 (pp_function_specifier): Likewise.
2699 (pp_direct_abstract_declarator): Remove as unused.
2700 (pp_c_declaration): Remove.
2701 (pp_c_declaration_specifiers): Likewise.
2702 (pp_c_declarator): Likewise.
2703 (pp_c_direct_declarator): Likewise.
2704 (pp_c_function_specifier): Likewise.
2705 (pp_c_direct_abstract_declarator): Likewise.
2706 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
2707 from pp_c_abstract_declarator. Adjust.
2708 (c_pretty_printer::direct_abstract_declarator): Rename from
2709 pp_c_direct_abstract_declarator. Adjust.
2710 (c_pretty_printer::function_specifier): Rename from
2711 pp_c_function_specifier. Adjust.
2712 (c_pretty_printer::declaration_specifiers): Rename from
2713 pp_c_declaration_specifiers. Adjust.
2714 (c_pretty_printer::direct_declarator): Rename from
2715 pp_c_direct_declarator. Adjust.
2716 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
2717 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
2718 (c_pretty_printer::c_pretty_printer): Do not assign to
2719 declaration, declaration_specifiers, declarator,
2720 direct_declarator, direct_abstract_declarator, function_specifier.
2721
00d34d3a
GDR
27222013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
2723
2724 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
2725 virtual member function.
2726 (c_pretty_printer::multiplicative_expression): Likewise.
2727 (c_pretty_printer::conditional_expression): Likewise.
2728 (c_pretty_printer::assignment_expression): Likewise.
2729 (c_pretty_printer::expression): Likewise.
2730 (pp_unary_expression): Adjust.
2731 (pp_multiplicative_expression): Likewise.
2732 (pp_assignment_expression): Likewise.
2733 (pp_conditional_expression): Likewise.
2734 (pp_expression): Likewise.
2735 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
2736 from pp_c_unary_expression. Adjust.
2737 (c_pretty_printer::multiplicative_expression): Rename from
2738 pp_c_multiplicative_expression. Adjust.
2739 (c_pretty_printer::conditional_expression): Rename from
2740 pp_c_conditional_expression. Adjust.
2741 (c_pretty_printer::assignment_expression): Rename from
2742 pp_c_assignment_expression. Adjust.
2743 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
2744 (c_pretty_printer::c_pretty_printer): Do not assign to
2745 unary_expression, multiplicative_expression,
2746 conditional_expression, expression.
2747
fb22178f
GDR
27482013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2749
2750 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
2751 virtual member function.
2752 (pp_postfix_expression): Adjust.
2753 (pp_c_postfix_expression): Remove.
2754 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
2755 from pp_c_postfix_expression. Adjust.
2756 (c_pretty_printer::c_pretty_printer): Do not assign to
2757 postfix_expression.
2758
7ecc2600
GDR
27592013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2760
2761 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
2762 virtua member function.
2763 (pp_primary_expression): Adjust.
2764 (pp_c_primary_expression): Remove.
2765 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
2766 from pp_c_primary_expression. Adjust.
2767 (pp_c_initializer_list): Use pp_primary_expression.
2768 (c_pretty_printer::c_pretty_printer): Do not assign to
2769 primary_expression.
2770
0691175f
GDR
27712013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2772
2773 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
2774 * c-pretty-print.c (M_): Remove.
2775 (c_pretty_printer::translate_string): Define.
2776 (pp_c_type_specifier): Use it.
2777 (pp_c_primary_expression): Likewise.
2778 (pp_c_expression): Likewise.
2779
66dfe4c4
GDR
27802013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
2781
2782 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
2783 virtual function.
2784 (pp_c_id_expression): Remove.
2785 (pp_id_expression): Adjust.
2786 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
2787 pp_c_id_expression. Adjust.
2788 (pp_c_postfix_expression): Use pp_id_expression.
2789 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
2790
ca43e9d5
GDR
27912013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
2792
2793 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
2794 member function.
2795 (pp_constant): Adjust.
2796 (pp_c_constant): Remove.
2797 * c-pretty-print.c (c_pretty_printer::constant): Rename from
2798 pp_c_constant. Adjust.
2799 (pp_c_constant)
2800 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
2801 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
2802
da6ca2b5
GDR
28032013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2804
2805 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
2806 (c_pretty_printer::c_pretty_printer): Declare.
2807 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
2808 c_pretty_printer_init. Adjust.
2809 (print_c_tree): Do not call c_pretty_printer_init.
2810 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
2811
65a372f4
AC
28122013-08-09 Arnaud Charlet <charlet@adacore.com>
2813
2814 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
2815
fd9b0f32
PC
28162013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
2817
2818 PR c++/58080
2819 * c-common.c (pointer_int_sum): Add bool parameter.
2820 * c-common.h (pointer_int_sum): Adjust declaration.
2821
e0aec1e9
GDR
28222013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
2823
2824 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
2825 c_pretty_printer variable.
2826
b066401f
GDR
28272013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2828
2829 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
2830 (pp_base): Remove.
2831 (pp_c_base): Likewise. Adjust users.
2832 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
2833 (pp_c_whitespace): Do not call pp_base.
2834 (pp_c_left_paren): Likewise.
2835 (pp_c_right_paren): Likewise.
2836 (pp_c_left_brace): Likewise.
2837 (pp_c_right_brace): Likewise.
2838 (pp_c_left_bracket): Likewise.
2839 (pp_c_right_bracket): Likewise.
2840 (pp_c_dot): Likewise.
2841 (pp_c_ampersand): Likewise.
2842 (pp_c_star): Likewise.
2843 (pp_c_arrow): Likewise.
2844 (pp_c_semicolon): Likewise.
2845 (pp_c_complement): Likewise.
2846 (pp_c_exclamation): Likewise.
2847 (pp_c_direct_declarator): Likewise.
2848 (pp_c_ws_string): Likewise.
2849 (pp_c_identifier): Likewise.
2850 (pp_c_statement): Likewise.
2851 (print_c_tree): Likewise.
2852
65e5a578
ESR
28532013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
2854
2855 PR c++/58072
2856 * c-common.c (c_parse_error): Catch user-defined literal tokens and
2857 provide useful error strings.
2858
137a1a27
GDR
28592013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2860
2861 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
2862 printer functions instead of pp_string or operators and punctuators.
2863 (dump_generic_ada_node): Likewise.
2864 * c-pretty-print.c (pp_c_type_specifier): Likewise.
2865 (pp_c_relational_expression): Likewise.
2866 (pp_c_logical_or_expression): Likewise.
2867
07838b13
GDR
28682013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2869
2870 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
2871 functions instead of pp_character.
2872 (pp_ada_tree_identifier): Likewise.
2873 (dump_ada_double_name): Likewise.
2874 (dump_ada_function_declaration): Likewise.
2875 (dump_ada_array_domains): Likewise.
2876 (dump_template_types): Likewise.
2877 (dump_generic_ada_node): Likewise.
2878 (print_ada_declaration): Likewise.
2879 (print_ada_struct_decl): Likewise.
2880 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2881
433cc7b0
TT
28822013-07-23 Tom Tromey <tromey@redhat.com>
2883
2884 * c-common.h (enum rid) <RID_GENERIC>: New constant.
2885 * c-common.c (c_common_reswords): Add _Generic.
2886
688010ba
OB
28872013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
2888
2889 * c-common.c: Fix typos.
2890 * c-common.h: Likewise.
2891
2a99e5e6
LL
28922013-07-13 Lubos Lunak <l.lunak@suse.cz>
2893
2894 PR c++/55203
2895 * c-common.c (c_common_attribute_table): Add warn_unused.
2896 (handle_warn_unused_attribute): New.
2897
c26302d5
JJ
28982013-07-10 Jakub Jelinek <jakub@redhat.com>
2899
2900 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
2901 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
2902
dfeadaa0
PC
29032013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
2904
2905 PR c++/57869
2906 * c.opt: Add Wconditionally-supported.
2907
6a2fa4b2
GS
29082013-07-08 Graham Stott <graham.stott@btinternet.com>
2909
adfac8df 2910 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
2911 unused variables l_length and l_node.
2912
ecdbd01a 29132013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
2914
2915 PR c/57821
2916 * c-common.c (complete_array_type): Delay folding first index
2917 like other indices. When folding, check for index overflow.
2918
bedc293e
MG
29192013-06-27 Marc Glisse <marc.glisse@inria.fr>
2920
2921 PR c++/57509
2922 * c-common.h (c_build_vec_perm_expr): New complain argument.
2923 * c-common.c (c_build_vec_perm_expr): Likewise.
2924 Use save_expr also in C++.
2925
604b2bfc
GDR
29262013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2927
2928 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
2929 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2930 * c-opts.c (c_common_post_options): Likewise.
2931
dfeadaa0 29322013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
2933
2934 * array-notation-common.c (length_mismatch_in_expr): Changed the
2935 parameter type's from a dynamic array to a vec_tree. Also removed
2936 the size parameters.
2937 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
2938 the change above.
2939
2ce86d2e
BI
29402013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
2941
2942 * c-common.h (struct cilkplus_an_parts): New structure.
2943 (struct cilkplus_an_loop_parts): Likewise.
2944 (cilkplus_extract_an_triplets): New prototype.
2945 (fix_sec_implicit_args): Likewise.
2946 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
2947 (fix_sec_implicit_args): Likewise.
604b2bfc 2948
07a6825b
BI
29492013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
2950
2951 * array-notation-common.c (find_inv_trees): Removed an unwanted
2952 typecasting.
2953 * c-common.h (struct inv_list::additional_tcodes): Changed type from
2954 enum rid to enum tree_code.
2955
08346abd
JH
29562013-06-11 Jan Hubicka <jh@suse.cz>
2957
2958 * c-common.c (handle_alias_ifunc_attribute): Do not set
2959 DECL_EXTERNAL for weakref variables.
2960 * c-pragma.c (handle_pragma_weak): Make sure aliases
2961 are not declared as external.
2962
d60f1706
BI
29632013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
2964
2965 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
2966 function from c/c-array-notation.c.
2967 (is_cilkplus_reduce_builtin): Likewise.
2968 (find_rank): Likewise.
2969 (extract_array_notation_exprs): Likewise.
2970 (replace_array_notations): Likewise.
2971 (find_inv_trees): Likewise.
2972 (replace_inv_trees): Likewise.
2973 (contains_array_notation_expr): Likewise.
2974 (find_correct_array_notation_type): Likewise.
2975 * c-common.h (struct inv_list): Moved this struct from the file
2976 c/c-array-notation.c and added a new field called additional tcodes.
2977 (length_mismatch_in_expr_p): New prototype.
2978 (is_cilkplus_reduce_builtin): Likewise.
2979 (find_rank): Likewise.
2980 (extract_array_notation_exprs): Likewise.
2981 (replace_array_notation): Likewise.
2982 (find_inv_trees): Likewise.
2983 (replace_inv_trees): Likewise.
2984 (find_correct_array_notation_type): Likewise.
dfeadaa0 2985
36536d79
BI
29862013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
2987
2988 * c-common.c (c_define_builtins): When cilkplus is enabled, the
2989 function array_notation_init_builtins is called.
2990 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
2991 * c-common.def (ARRAY_NOTATION_REF): New tree.
2992 * c-common.h (build_array_notation_expr): New function declaration.
2993 (build_array_notation_ref): Likewise.
2994 (extract_sec_implicit_index_arg): New extern declaration.
2995 (is_sec_implicit_index_fn): Likewise.
2996 (ARRAY_NOTATION_CHECK): New define.
2997 (ARRAY_NOTATION_ARRAY): Likewise.
2998 (ARRAY_NOTATION_START): Likewise.
2999 (ARRAY_NOTATION_LENGTH): Likewise.
3000 (ARRAY_NOTATION_STRIDE): Likewise.
3001 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
3002 ARRAY_NOTATION_REF.
3003 (pp_c_expression): Likewise.
3004 * c.opt (flag_enable_cilkplus): New flag.
3005 * array-notation-common.c: New file.
3006
f7716d57
JJ
30072013-05-14 Jakub Jelinek <jakub@redhat.com>
3008
3009 PR c++/57274
3010 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
3011
a5e0cd1d
MG
30122013-05-10 Marc Glisse <marc.glisse@inria.fr>
3013
3014 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
3015 vectors.
3016
f6bc1c4a
HS
30172013-05-07 Han Shen <shenhan@google.com>
3018
3019 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
3020
3f12f6e9
SKS
30212013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3022
3023 * c-common.c (check_user_alignment): Emit error for negative values.
3024
61949153
PC
30252013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3026
3027 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
3028
e93e18e9
PC
30292013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3030
3031 * c-cppbuiltin.c (c_cpp_builtins): Do not define
3032 __GXX_EXPERIMENTAL_CXX1Y__.
3033
44d90fe1
PC
30342013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3035 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3036
3037 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
3038 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
3039 to simply use OPT_Wpointer_arith.
3040 (c_sizeof_or_alignof_type): Likewise.
3041
13f39b2e
PC
30422013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3043
3044 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
3045
4b84d650
JJ
30462013-04-12 Jakub Jelinek <jakub@redhat.com>
3047
3048 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
3049 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
3050 specifiers.
3051
fb037b5d
SB
30522013-04-07 Steven Bosscher <steven@gcc.gnu.org>
3053
3054 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
3055
4e856798
PC
30562013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
3057
3058 * c-common.c (pointer_int_sum): Remove dead code.
3059
4b1baac8
RS
30602013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
3061
3062 PR middle-end/56524
3063 * c-common.c (handle_optimize_attribute): Don't call
3064 save_optabs_if_changed.
3065
0b50e654
JJ
30662013-03-05 Jakub Jelinek <jakub@redhat.com>
3067
3068 PR middle-end/56461
3069 * c-pch.c (pch_init): Free target_validity at the end.
3070
48c41403
JJ
30712013-03-04 Jakub Jelinek <jakub@redhat.com>
3072
3073 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
3074
e664c61c
KS
30752013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
3076 Jakub Jelinek <jakub@redhat.com>
3077
3078 PR sanitizer/56454
3079 * c-common.c (handle_no_sanitize_address_attribute): New function.
3080 (c_common_attribute_table): Add no_sanitize_address attribute.
3081 (handle_no_address_safety_analysis_attribute): Add
3082 no_sanitize_address attribute, not no_address_safety_analysis
3083 attribute.
3084
a475fd3d 30852013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
3086
3087 PR target/52555
3088 * c-common.c (handle_optimize_attribute): Call
3089 save_optabs_if_changed.
3090
f6007d99
JJ
30912013-02-18 Jakub Jelinek <jakub@redhat.com>
3092 Steven Bosscher <steven@gcc.gnu.org>
3093
3094 PR pch/54117
3095 * c-opts.c (c_common_post_options): If debug info is enabled
3096 and non-dwarf*, refuse to load PCH files and when writing PCH
3097 file warn.
3098
cf35e2b1
JJ
30992013-02-05 Jakub Jelinek <jakub@redhat.com>
3100
3101 PR middle-end/56167
3102 * c-common.c (handle_error_attribute): Fix condition.
3103
32887460
JJ
31042013-01-30 Jakub Jelinek <jakub@redhat.com>
3105
3106 PR c++/55742
3107 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
3108
5af057d8
JM
31092013-01-18 Jason Merrill <jason@redhat.com>
3110
3111 PR target/54908
3112 * c.opt (-fextern-tls-init): New.
3113 * c-opts.c (c_common_post_options): Handle it.
3114
cc83c823
JJ
31152013-01-09 Jakub Jelinek <jakub@redhat.com>
3116
3117 PR c/48418
3118 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
3119 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
3120 and is either negative or bigger or equal to type precision
3121 of the first operand.
3122
a859517f
MP
31232012-12-03 Marek Polacek <polacek@redhat.com>
3124
3125 PR c/55570
3126 * c-common.c (check_user_alignment): Swap order of tests,
3127 check TREE_CODE first.
3128
2d7aa578
ESR
31292012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
3130
3131 PR c++/52654
3132 * c-common.h (overflow_type): New enum.
3133 (build_userdef_literal): Add overflow_type argument.
3134 (tree_userdef_literal): Add overflow_type.
3135 (USERDEF_LITERAL_OVERFLOW): New access macro.
3136 * c-common.c (build_userdef_literal): Add overflow_type
3137 argument.
3138 * c-lex.c (c_lex_with_flags): Add overflow_type to
3139 build_userdef_literal calls.
3140 (interpret_integer, interpret_float): Add overflow_type argument.
3141
cc3c4f62
RB
31422012-11-28 Richard Biener <rguenther@suse.de>
3143
3144 PR c/35634
3145 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
3146 here and use a type with proper overflow behavior for types that would
3147 need to be promoted for the arithmetic.
3148
77bc5132
JJ
31492012-11-23 Jakub Jelinek <jakub@redhat.com>
3150
3151 PR sanitizer/55435
3152 * c-common.c (handle_no_address_safety_analysis_attribute): New
3153 function.
3154 (c_common_attribute_table): Add no_address_safety_analysis.
3155
5dc99c46
SB
31562012-11-16 Simon Baldwin <simonb@google.com>
3157
3158 * c.opt: Add f[no-]canonical-system-headers.
3159 * c-opts.c (c_common_handle_option): Handle
3160 OPT_fcanonical_system_headers.
3161
a4a0016d
ESR
31622012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
3163
3164 PR c++/54413
3165 * c-opts.c (c_common_handle_option): Set new flags.
3166 * c.opt: Describe new flags.
3167
7dbb85a7
JM
31682012-11-09 Jason Merrill <jason@redhat.com>
3169
3170 * c.opt (Wabi-tag): New.
3171
ad7bac31
AK
31722012-11-09 Andi Kleen <ak@linux.intel.com>
3173
3174 PR 55139
3175 * c-common.c (get_atomic_generic_size): Mask with
3176 MEMMODEL_MASK
3177
7332899a
MLI
31782012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3179
3180 PR c/53063
3181 * c.opt (Wformat): Make it Alias Wformat=1.
3182 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
3183 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
3184 LangEnabledBy.
3185 (Wformat=): RejectNegative. Use LangEnabledBy.
3186 (Wnonnull): Use LangEnabledBy.
3187 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
3188 * c-format.c (set_Wformat): Delete.
3189 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
3190 (maybe_read_dollar_number): Likewise.
3191 (avoid_dollar_number): Likewise.
3192 (finish_dollar_format_checking): Likewise.
3193 (check_format_info): Likewise.
3194 (check_format_info_main): Likewise.
3195 (check_format_types): Likewise.
3196 (format_type_warning): Likewise.
3197 * c-common.c (int): Likewise.
3198 (check_function_sentinel): Likewise.
3199 * c-common.h (warn_format,set_Wformat): Do not declare here.
3200
34a180a6
MLI
32012012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3202
3203 PR c/53063
3204 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
3205 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
3206 Use LangEnabledBy.
3207 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
3208 common.opt.
3209 (Wvariadic-macros): Init(1).
3210 * c-opts.c (c_common_handle_option): Do not handle them
3211 explicitly.
3212 (c_common_post_options): Likewise.
3213 (sanitize_cpp_opts): warn_unused_macros is now
3214 cpp_warn_unused_macros.
3215 (push_command_line_include): Likewise.
3216 * c-common.c (warn_unknown_pragmas): Do not define.
3217 * c-common.h (warn_unknown_pragmas): Do not declare.
3218
3f46d6a5
MLI
32192012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3220
3221 PR c/51294
3222 * c-common.c (conversion_warning): Handle conditional expressions.
3223
880661a4
JW
32242012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
3225
3226 PR c++/54930
3227 * c.opt (Wreturn_local_addr): Define new option.
3228
4514a96b
JM
32292012-10-25 Jason Merrill <jason@redhat.com>
3230
f14edc1a
JM
3231 * c.opt (Wvirtual-move-assign): New.
3232
4514a96b
JM
3233 * c.opt (Winherited-variadic-ctor): New.
3234
93100c6b
MG
32352012-10-25 Marc Glisse <marc.glisse@inria.fr>
3236
3237 PR c++/54427
3238 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
3239
1efcb8c6
JM
32402012-10-23 Joseph Myers <joseph@codesourcery.com>
3241
3242 * c-common.h (pch_cpp_save_state): Declare.
3243 * c-target.def (c_preinclude): New hook.
3244 * c-opts.c (done_preinclude): New.
3245 (push_command_line_include): Handle default preincluded header.
3246 (cb_file_change): Call pch_cpp_save_state when calling
3247 push_command_line_include.
3248 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
3249 (pch_cpp_save_state): New.
3250 (pch_init): Call pch_cpp_save_state conditionally, instead of
3251 calling cpp_save_state.
3252
4a0ae68e
MLI
32532012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3254
3255 PR c/53063
3256 PR c/40989
3257 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
3258 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
3259 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
3260 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
3261 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
3262 * c-opts.c (c_common_handle_option): Remove explicit handling from
3263 here.
3264 (c_common_post_options): Likewise.
3265
67e4210b
EB
32662012-10-18 Eric Botcazou <ebotcazou@adacore.com>
3267
3268 * c-ada-spec.c (LOCATION_COL): Delete.
3269 (compare_location): New function.
3270 (compare_node): Use it.
3271 (compare_comment): Likewise.
3272
65d4f2cd
MLI
32732012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
3274
3275 PR c/53063
3276 PR c/40989
3277 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
3278 * c-opts.c (c_common_handle_option): Do not set them here. Add
3279 comment.
3280 (c_common_post_options): Likewise.
3281
909881cb
EB
32822012-10-16 Eric Botcazou <ebotcazou@adacore.com>
3283
3284 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
3285 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
3286 Remove POINTER_TYPE handling, add large unsigned handling and use
3287 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
3288
3a785c97
JJ
32892012-10-12 Jakub Jelinek <jakub@redhat.com>
3290
3291 PR c/54381
3292 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
3293 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
3294 locs and array of 3 trees instead of just single loc and single
3295 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
3296 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
3297 For *cmp* builtins that take two sources strings report warnings
3298 about first and second source, not about destination and source.
3299
5e54f81d
MG
33002012-10-12 Marc Glisse <marc.glisse@inria.fr>
3301
3302 PR c++/53055
3303 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
3304
f5b02f1e
EB
33052012-10-11 Eric Botcazou <ebotcazou@adacore.com>
3306
3307 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
3308 declaring something coming from another file.
3309
b46dbc6c
AC
33102012-10-10 Arnaud Charlet <charlet@adacore.com>
3311
f5b02f1e 3312 PR ada/54845
b46dbc6c
AC
3313 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
3314
5d9de0d0
PC
33152012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
3316
3317 PR c++/54194
3318 * c-common.c (warn_about_parentheses): Add location_t parameter;
3319 use EXPR_LOC_OR_LOC.
3320 * c-common.h: Update declaration.
3321
a212e43f
MG
33222012-10-09 Marc Glisse <marc.glisse@inria.fr>
3323
3324 PR c++/54427
3325 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
3326 more operations. Make error messages optional.
3327 * c-common.h (enum stv_conv): Moved from c-typeck.c.
3328 (scalar_to_vector): Declare.
3329
b1db7f91
JM
33302012-10-08 Jason Merrill <jason@redhat.com>
3331
3332 * c-common.c (c_common_reswords): Add thread_local.
3333
e28d52cf
DS
33342012-10-08 Dodji Seketeli <dodji@redhat.com>
3335
3336 PR c++/53528 C++11 attribute support
3337 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
3338 new functions.
3339 * c-common.c (check_cxx_fundamental_alignment_constraints): New
3340 static function.
3341 (handle_aligned_attribute): In choose strictest alignment
3342 among many. Use new check_cxx_fundamental_alignment_constraints.
3343 (handle_transparent_union_attribute): In c++11 attribute syntax,
3344 don't look through typedefs.
3345
3b78de56
AC
33462012-10-04 Arnaud Charlet <charlet@adacore.com>
3347
3348 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
3349 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
3350 out of dumpfile.h.
3351
6040bb5f
DC
33522012-09-25 Dehao Chen <dehao@google.com>
3353
3354 PR middle-end/54645
3b78de56 3355 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
3356 map when read in the pch.
3357
0b07a57e
AC
33582012-09-18 Arnaud Charlet <charlet@adacore.com>
3359
3360 * c-ada-spec.c: Style fixes.
3361
da5182be
TQ
33622012-09-18 Thomas Quinot <quinot@adacore.com>
3363
3364 * c.opt (-fada-spec-parent): Define new command line switch.
3365 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
3366 is specified, generate binding spec as a child of the specified unit.
3367
0ccb505d
PC
33682012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
3369 Manuel López-Ibáñez <manu@gcc.gnu.org>
3370
3371 PR c++/53210
3372 * c.opt ([Winit-self]): Enabled by -Wall in C++.
3373
c583af79
AC
33742012-08-23 Arnaud Charlet <charlet@adacore.com>
3375
3376 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
3377 for pointers, and add missing Convention C pragma.
3378 (print_ada_struct_decl): Add missing aliased keyword.
3379 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
3380
1a4049e7
JJ
33812012-08-17 Jakub Jelinek <jakub@redhat.com>
3382
3383 * c-common.c (sizeof_pointer_memaccess_warning): New function.
3384 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
3385 * c-opts.c (c_common_handle_option): Enable it for -Wall.
3386 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
3387 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
3388
70b5e7dc
RG
33892012-08-10 Richard Guenther <rguenther@suse.de>
3390
3391 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
3392
f8923f7e
SB
33932012-08-07 Steven Bosscher <steven@gcc.gnu.org>
3394
3395 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
3396 instead of separate pp_newline and pp_flush.
3397 (print_c_tree): Likewise.
3398
e45abe1f
RH
33992012-07-26 Richard Henderson <rth@redhat.com>
3400
3401 * c-common.c (handle_hot_attribute): Allow labels.
3402 (handle_cold_attribute): Likewise.
3403
332f1d24
JJ
34042012-07-20 Jakub Jelinek <jakub@redhat.com>
3405
3406 PR c++/28656
3407 * c-common.c (check_function_nonnull): Handle multiple nonnull
3408 attributes properly.
3409
7ee2468b
SB
34102012-07-16 Steven Bosscher <steven@gcc.gnu.org>
3411
3412 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
3413 * c-ada-spec.c: Likewise.
3414 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
3415
ee7b28eb
SB
34162012-07-14 Steven Bosscher <steven@gcc.gnu.org>
3417
3418 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
3419 Remove code conditional on it.
3420
6bdf3519
SB
34212012-07-11 Steven Bosscher <steven@gcc.gnu.org>
3422
3423 * c-gimplify.c: Do not include basic-block.h.
3424 * c-common.c: Do not include linfuncs.h.
3425
532aafad
SB
34262012-07-08 Steven Bosscher <steven@gcc.gnu.org>
3427
3428 * c-common.h: Include tree.h.
3429
8d0d1915
JM
34302012-07-02 Jason Merrill <jason@redhat.com>
3431
3432 PR c++/53524
3433 * c-common.c (get_priority): Call default_conversion.
3434
fbc873ad
UB
34352012-07-01 Uros Bizjak <ubizjak@gmail.com>
3436
3437 * c-pch.c (c_common_write_pch): Remove unused variables.
3438
d4a10d0a
SB
34392012-06-29 Steven Bosscher <steven@gcc.gnu.org>
3440
3441 * cppspec.c: Moved from gcc/ to here.
3442
6f3a2e23
KT
34432012-06-27 Kai Tietz <ktietz@redhat.com>
3444
3445 PR preprocessor/37215
3446 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
3447
8ca92d04
SB
34482012-06-21 Steven Bosscher <steven@gcc.gnu.org>
3449
3450 * c-common.h (c_common_print_pch_checksum): Remove.
3451 * c-pch.c: Do not include output.h.
3452 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
3453 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
3454 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
3455 (struct c_pch_header): Remove.
3456 (get_ident): Update gpch version.
3457 (pch_init): Do not print executable_checksum to asm_out_file.
3458 Do not fail if there is no asm_out_file to read back from. Set
3459 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
3460 (c_common_write_pch): Verify that nothing was written to asm_out_file
3461 since pch_init was called. Do not write a c_pch_header, and do not
3462 copy from asm_out_file to the PCH.
3463 (c_common_read_pch): Do not read a c_pch_header, and do not restore
3464 the content of asm_out_file from the PCH.
3465 (c_common_print_pch_checksum): Remove.
3466 * c-opts.c (c_common_init): Print out executable_checksum directly.
3467
70f42967
SB
34682012-06-19 Steven Bosscher <steven@gcc.gnu.org>
3469
3470 * c-target.def (objc_declare_unresolved_class_reference,
3471 objc_declare_class_definition): Add new hooks.
3472
a8781821
SB
34732012-06-19 Steven Bosscher <steven@gcc.gnu.org>
3474
3475 * c-lex.c: Do not include output.h.
3476 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
3477 Remove uses of ASM_OUTPUT_IDENT.
3478
9e1a8dd1
RR
34792012-06-15 Marc Glisse <marc.glisse@inria.fr>
3480
3481 PR c++/51033
3482 * c-common.h (c_build_vec_perm_expr): Move decl here.
3483 * c-common.c (c_build_vec_perm_expr): Move definition
3484 here.
3485
6f07a821
SB
34862012-06-06 Steven Bosscher <steven@gcc.gnu.org>
3487
3488 * c.opt (fconserve-space): Turn into a no-op.
3489
9faeb493 34902012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
3491
3492 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
3493 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
3494 both the start and end of the function.
3495
a4b7d13c
SB
34962012-06-04 Steven Bosscher <steven@gcc.gnu.org>
3497
3498 * c-common.c: Do not include output.h.
3499 * c-pragma.c: Likewise.
3500
c265f413
SA
35012012-06-04 Steven Bosscher <steven@gcc.gnu.org>
3502
3503 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
3504 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
3505 (lang_decl_name): Handle namespace decls.
3506
be7a421e
SB
35072012-05-31 Steven Bosscher <steven@gcc.gnu.org>
3508
3509 * c-ada-spec.c: Do not include output.h.
3510 * c-semantics.c: Likewise.
3511
65de6659
JM
35122012-05-29 Joseph Myers <joseph@codesourcery.com>
3513
3514 * c-common.c: Fix typo.
3515
ca5f4331
MM
35162012-05-29 Michael Matz <matz@suse.de>
3517
3518 * c-common.h (c_expand_decl): Remove prototype.
3519
4f7f7aca
MLI
35202012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3521
3522 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
3523 * c-opts.c (c_common_handle_option): Remove code handling
3524 warn_missing_braces.
3525
4a792f9b
PC
35262012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
3527
3528 PR c++/25137
3529 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
3530 -Wmissing_braces.
3531
650dc14a
DS
35322012-05-22 Dodji Seketeli <dodji@redhat.com>
3533
3534 PR c++/53322
3535 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
3536
9b095bf1
MLI
35372012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
3538
3539 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
3540 * c-opts.c (c_common_handle_option): Do not handle explicitly
3541 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
3542
0b2c4be5
DS
35432012-05-16 Dodji Seketeli <dodji@redhat.com>
3544
3545 PR preprocessor/7263
3546 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
3547 to cpp_classify_number. For diagnostics, use the precise location
3548 instead of the global input_location.
3549
a1bde5af
PC
35502012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
3551
d02924ef 3552 PR c++/11856
a1bde5af
PC
3553 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
3554
d1ede5f4
BS
35552012-05-14 Bernd Schmidt <bernds@codesourcery.com>
3556
a1bde5af 3557 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 3558
f2bc201f
MLI
35592012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
3560
3561 PR 53063
3562 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
3563 Wreorder): Use LangEnabledBy.
3564 * c-opts.c (c_common_handle_option): Do not enable them
3565 explicitly. Call lang-specific generated functions.
3566 (c_common_post_options): Do not set them here.
3567
95744782
MLI
35682012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
3569
3570 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
3571 Wmissing-field-initializers,Wmissing-parameter-type,
3572 Wold-style-declaration,Woverride-init): Use EnabledBy.
3573 * c-opts.c (c_common_post_options): Do not set here explicitly.
3574
7d5a5747
MLI
35752012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3576
3577 PR 53063
3578 * c-opts.c (c_common_handle_option): Use handle_generated_option
3579 to enable sub-options.
3580
5a3c9cf2
PC
35812012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
3582
3583 PR c++/53158
3584 * c-common.c (warnings_for_convert_and_check): Use warning_at.
3585
3ac8781c
RG
35862012-05-10 Richard Guenther <rguenther@suse.de>
3587
3588 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
3589 adjust commentary about TYPE_IS_SIZETYPE types.
3590
1e537948
MLI
35912012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3592
3593 PR c++/53261
3594 * c-common.c (warn_logical_operator): Check that argument of
3595 integer_zerop is not NULL.
3596
f2c4a785
MLI
35972012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
3598
3599 PR c/43772
3600 * c-common.c (warn_logical_operator): Do not warn if either side
3601 is already true or false.
3602
50f305ca
MLI
36032012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
3604
3605 PR c/51712
3606 * c-common.c (expr_original_type): New.
3607 (shorten_compare): Do not warn for enumeration types.
3608
0c3641b0
MLI
36092012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3610
3611 * c.opt (fpermissive): Add Var(flag_permissive).
3612
7edaa4d2
MG
36132012-04-30 Marc Glisse <marc.glisse@inria.fr>
3614
3615 PR c++/51033
3616 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
3617 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
3618
b9c8da34
DS
36192012-04-30 Dodji Seketeli <dodji@redhat.com>
3620
3621 Add -Wvarargs option
3622 * c.opt (Wvarargs): Define new option.
3623
e6c69da0
MLI
36242012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3625
3626 * c-common.c (check_function_arguments): Replace
3627 Wmissing-format-attribute with Wsuggest-attribute=format.
3628
90137d8f
MLI
36292012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3630
3631 * c.opt (Wsuggest-attribute=format): New. Alias of
3632 Wmissing-format-attribute.
3633 * c-format.c (decode_format_type): Replace
3634 Wmissing-format-attribute with Wsuggest-attribute=format.
3635 (check_function_format): Likewise.
3636
9faeb493 36372012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
3638
3639 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
3640 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
3641 * c.opt: Add Wliteral-suffix.
3642
c1771a20
MLI
36432012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
3644
3645 PR c/44774
3646 * c.opt (Wpedantic): New.
3647 (pedantic): Alias Wpedantic.
3648 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
3649 (c_common_post_options): Likewise.
3650 (sanitize_cpp_opts): Likewise.
3651 * c-lex.c (interpret_float): Likewise.
3652 * c-format.c (check_format_types): Likewise.
3653 * c-common.c (pointer_int_sum): Likewise.
3654 (c_sizeof_or_alignof_type): Likewise.
3655 (c_add_case_label): Likewise.
3656 (c_do_switch_warnings): Likewise.
3657 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
3658
04b391c1
JM
36592012-04-15 Jason Merrill <jason@redhat.com>
3660
3661 PR c++/52818
3662 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
3663 (C_STD_NAME): Distinguish between C++98 and C++11.
3664
ac868f29
EB
36652012-04-11 Eric Botcazou <ebotcazou@adacore.com>
3666
3667 PR target/52624
3668 * c-common.h (uint16_type_node): Rename into...
3669 (c_uint16_type_node): ...this.
3670 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
3671 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
3672
fd4116f4
MLI
36732012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
3674
3675 * c-common.c (warn_if_unused_value): Move definition to here.
3676 * c-common.h (warn_if_unused_value): Move declaration to here.
3677
573ac65e
WB
36782012-03-23 William Bader <williambader@hotmail.com>
3679
3680 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
3681
552b8185
JM
36822012-03-20 Jason Merrill <jason@redhat.com>
3683
3684 * c-common.h (enum cxx_dialect): Add cxx1y.
3685 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
3686 test.
3687 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3688 * c-opts.c (c_common_post_options): Likewise.
3689 (set_std_cxx1y): New.
3690 (c_common_handle_option): Call it.
3691 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
3692
04398fa8
PC
36932012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
3694
3695 PR c++/14710
3696 * c.opt ([Wuseless-cast]): Add.
3697
d2a12ae7
RG
36982012-03-16 Richard Guenther <rguenther@suse.de>
3699
3700 * c-pretty-print.c (pp_c_initializer_list): Adjust.
3701
a12bf402
MLI
37022012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3703
3704 PR c++/44783
3705 * c.opt (ftemplate-backtrace-limit) Add.
3706
5c30094f
RO
37072012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3708
3709 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
3710 handling.
3711 * c-pragma.c (handle_pragma_extern_prefix): Remove.
3712 (init_pragma): Don't register extern_prefix.
3713
21fa2faf
RG
37142012-03-12 Richard Guenther <rguenther@suse.de>
3715
3716 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
3717 (builtin_type_for_size): Likewise.
3718
e3793c6f
JJ
37192012-02-13 Jakub Jelinek <jakub@redhat.com>
3720
3721 PR c++/52215
3722 * c-common.c (sync_resolve_params): Don't decide whether to convert
3723 or not based on TYPE_SIZE comparison, convert whenever arg_type
3724 is unsigned INTEGER_TYPE.
3725
93286335
PC
37262012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
3727
3728 PR c/52118
3729 * c.opt ([Wunused-local-typedefs]): Fix description.
3730
7a421706
MS
37312012-01-24 Mike Stump <mikestump@comcast.net>
3732
3733 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
3734 exactly.
3735
ba9b1f11
RG
37362012-01-18 Richard Guenther <rguenther@suse.de>
3737
3738 * c-opts.c (c_common_post_options): Reset LTO flags if
3739 we are about to generate a PCH.
3740
465406be
PC
37412012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
3742
3743 PR c++/51777
3744 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
3745 use pp_unsigned_wide_integer.
3746
aee15221
RG
37472012-01-10 Richard Guenther <rguenther@suse.de>
3748
3749 PR middle-end/51806
3750 * c-opts.c (c_common_handle_option): Move -Werror handling
3751 to language independent code.
3752
5720c0dc
RG
37532012-01-05 Richard Guenther <rguenther@suse.de>
3754
3755 PR middle-end/51764
3756 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
3757 from common.opt.
3758
73ac190a
PC
37592011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
3760
3761 PR c++/51316
3762 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
3763 of array types with an unknown bound.
3764
48b0b196
JM
37652011-12-20 Joseph Myers <joseph@codesourcery.com>
3766
3767 * c-common.c (flag_isoc99): Update comment to refer to C11.
3768 (flag_isoc1x): Change to flag_isoc11.
3769 * c-common.h (flag_isoc99): Update comment to refer to C11.
3770 (flag_isoc1x): Change to flag_isoc11.
3771 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
3772 C11.
3773 * c-opts.c (set_std_c1x): Change to set_std_c11.
3774 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
3775 Call set_std_c11.
3776 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
3777 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
3778 * c.opt (std=c1x): Change to std=c11. Document as non-draft
3779 standard.
3780 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
3781 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
3782 (std=gnu1x): Make alias of std=gnu11.
3783
d58d6eb5
JM
37842011-12-19 Jason Merrill <jason@redhat.com>
3785
3786 PR c++/51228
3787 * c-common.c (handle_transparent_union_attribute): Check the first
3788 field if the type is complete.
3789
b3908fcc
JW
37902011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
3791
3792 PR libstdc++/51365
3793 * c-common.c (RID_IS_FINAL): Add.
3794 * c-common.h (RID_IS_FINAL): Add.
3795
fea3ca91
IS
37962011-11-30 Iain Sandoe <iains@gcc.gnu.org>
3797
3798 * c.opt (fgnu-runtime): Provide full description.
3799 (fnext-runtime): Likewise.
3800 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
3801
62bad7cd
AM
38022011-11-28 Andrew MacLeod <amacleod@redhat.com>
3803
3804 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
3805 predefines in one place. Add LOCK_FREE predefines.
3806 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
3807 new func.
3808
c466c4ff
AM
38092011-11-24 Andrew MacLeod <amacleod@redhat.com>
3810
3811 PR c/51256
9faeb493 3812 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 3813 conditions
9faeb493
UB
3814 (resolve_overloaded_atomic_exchange,
3815 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
3816 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
3817 error_mark_node for error conditions.
9faeb493 3818
a5952633
RG
38192011-11-08 Richard Guenther <rguenther@suse.de>
3820
3821 PR middle-end/51010
3822 c-family/
3823
0a35513e
AH
38242011-11-07 Richard Henderson <rth@redhat.com>
3825 Aldy Hernandez <aldyh@redhat.com>
3826 Torvald Riegel <triegel@redhat.com>
3827
3828 Merged from transactional-memory.
3829
3830 * c-common.c (handle_tm_wrap_attribute,
3831 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
3832 (struct c_common_reswords): Added __transaction* keywords.
3833 (struct c_common_attribute_table): Added transaction* and tm_regparm
3834 attributes.
3835 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
3836 masks.
3837 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
3838 find_tm_attribute): Declare.
3839
6d87092d
JM
38402011-11-07 Jason Merrill <jason@redhat.com>
3841
3842 PR c++/35688
3843 * c-common.c, c-common.h: Revert yesterday's changes.
3844
8e7860a1
JM
38452011-11-06 Jason Merrill <jason@redhat.com>
3846
3847 PR c++/35688
3848 * c-common.c (decl_has_visibility_attr): Split out from...
3849 (c_determine_visibility): ...here.
3850 * c-common.h: Declare it.
3851
d19fa6b5
JM
38522011-11-06 Joseph Myers <joseph@codesourcery.com>
3853
3854 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
3855 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
3856 type.
3857 (check_user_alignment): New. Split out of
3858 handle_aligned_attribute. Disallow integer constants with
3859 noninteger types. Conditionally allow zero.
3860 (handle_aligned_attribute): Use check_user_alignment.
3861 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
3862
86951993
AM
38632011-11-06 Andrew MacLeod <amacleod@redhat.com>
3864 Richard Henderson <rth@redhat.com>
3865
3866 Merged from cxx-mem-model.
3867
3868 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 3869 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
3870 parameters that are the same type size.
3871 (get_atomic_generic_size): New. Find size of generic
3872 atomic function parameters and do typechecking.
3873 (add_atomic_size_parameter): New. Insert size into parameter list.
3874 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
3875 either __atomic_exchange_n or external library call.
9faeb493 3876 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 3877 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 3878 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
3879 __atomic_load_n or an external library call.
3880 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
3881 __atomic_store_n or an external library call.
3882 (resolve_overloaded_builtin): Handle new __atomic builtins.
3883
cf9e9959
EB
38842011-11-04 Eric Botcazou <ebotcazou@adacore.com>
3885
3886 PR c++/50608
3887 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
3888 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
3889 <INDIRECT_REF>: Return the argument.
3890 <ARRAY_REF>: Remove special code for negative offset.
3891 Call fold_build_pointer_plus instead of size_binop.
3892 (fold_offsetof): Remove STOP_REF argument and adjust.
3893 * c-common.h (fold_offsetof_1): Declare.
3894 (fold_offsetof): Remove STOP_REF argument.
3895
25339f10
JM
38962011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
3897
3898 PR c++/50810
3899 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3900 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3901 Wnarrowing for C++0x and C++98.
3902 * c.opt ([Wnarrowing]): Update.
3903
89401152
PC
39042011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
3905
3906 PR c++/44277
3907 * c.opt: Add Wzero-as-null-pointer-constant.
3908
97e3ad20
JM
39092011-10-31 Jason Merrill <jason@redhat.com>
3910
15694fdd
JM
3911 * c.opt (-fdeduce-init-list): Off by default.
3912
97e3ad20
JM
3913 PR c++/50920
3914 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
3915 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
3916 and -Wc++11-compat.
3917 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
3918
fb9120e3
RAV
39192011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
3920
3921 PR c++/30066
3922 * c.opt (fvisibility-inlines-hidden): Description change.
3923
3ce4f9e4
ESR
39242011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
3925
3926 Implement C++11 user-defined literals.
3927 * c-common.c (build_userdef_literal): New.
3928 * c-common.def: New tree code.
3929 * c-common.h (tree_userdef_literal): New tree struct and accessors.
3930 * c-lex.c (interpret_float): Add suffix parm.
3931 (c_lex_with_flags): Build literal tokens.
3932
5f53c243
PC
39332011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3934
3935 PR c++/50841
3936 Revert:
3937 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3938
3939 PR c++/50810
3940 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3941 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3942 Wnarrowing for C++0x and C++98.
3943 * c.opt ([Wnarrowing]): Update.
3944
263734e1
PC
39452011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3946
3947 PR c++/50810
3948 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3949 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3950 Wnarrowing for C++0x and C++98.
3951 * c.opt ([Wnarrowing]): Update.
3952
d2e312d7
PC
39532011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
3954
3955 PR c++/45385
3956 * c-common.c (conversion_warning): Remove code looking for
3957 artificial operands.
3958
d17687f6
DS
39592011-10-18 Dodji Seketeli <dodji@redhat.com>
3960
3961 PR bootstrap/50760
3962 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 3963 !NO_IMPLICIT_EXTERN_C.
d17687f6 3964
fc8396e9
PC
39652011-10-17 Michael Spertus <mike_spertus@symantec.com>
3966
3967 * c-common.c (c_common_reswords): Add __bases,
3968 __direct_bases.
3969 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
3970
39712011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
3972
3973 PR c++/50757
3974 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
3975
847e697a
TT
39762011-10-15 Tom Tromey <tromey@redhat.com>
3977 Dodji Seketeli <dodji@redhat.com>
3978
3979 * c.opt (fdebug-cpp): New option.
3980 * c-opts.c (c_common_handle_option): Handle the option.
3981 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
3982 output stream in parameter. Factorized from ...
3983 (maybe_print_line): ... this. Dump location debug information when
3984 -fdebug-cpp is in effect.
3985 (print_line_1): New static function. Takes an output stream in
3986 parameter. Factorized from ...
3987 (print_line): ... here. Dump location information when -fdebug-cpp
3988 is in effect.
3989 (scan_translation_unit): Dump location information when
3990 -fdebug-cpp is in effect.
3991
92582b75
TT
39922011-10-15 Tom Tromey <tromey@redhat.com>
3993 Dodji Seketeli <dodji@redhat.com>
3994
3995 * c.opt (ftrack-macro-expansion): New option. Handle it with and
3996 without argument.
3997 * c-opts.c (c_common_handle_option)<case
3998 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
3999 cases. Handle -ftrack-macro-expansion with and without argument.
4000
46427374
TT
40012011-10-15 Tom Tromey <tromey@redhat.com>
4002 Dodji Seketeli <dodji@redhat.com>
4003
4004 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
4005 (print_line, cb_define, do_line_change): Adjust to avoid touching
4006 the internals of struct line_map. Use the public API instead.
4007 * c-pch.c (c_common_read_pch): Likewise.
4008 * c-lex.c (fe_file_change): Likewise.
4009
fc8396e9
PC
40102011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
4011
4012 PR c++/17212
4013 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
4014
40152011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
4016
4017 PR c++/33067
4018 * c-pretty-print.c (pp_c_floating_constant): Output
4019 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
4020
e79983f4
MM
40212011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
4022
4023 * c-common.c (def_builtin_1): Delete old interface with two
4024 parallel arrays to hold standard builtin declarations, and replace
4025 it with a function based interface that can support creating
4026 builtins on the fly in the future. Change all uses, and poison
4027 the old names. Make sure 0 is not a legitimate builtin index.
4028 * c-omp.c (c_finish_omp_barrier): Ditto.
4029 (c_finish_omp_taskwait): Ditto.
4030 (c_finish_omp_flush): Ditto.
4031
6637388f
TG
40322011-10-11 Tristan Gingold <gingold@adacore.com>
4033
4034 * c.opt: (fallow-parameterless-variadic-functions): New.
4035
3797cb21
DS
40362011-09-08 Dodji Seketeli <dodji@redhat.com>
4037
4038 PR c++/33255 - Support -Wunused-local-typedefs warning
4039 * c-common.h (struct c_language_function::local_typedefs): New
4040 field.
9faeb493
UB
4041 (record_locally_defined_typedef, maybe_record_typedef_use)
4042 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 4043 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
4044 (maybe_record_typedef_use)
4045 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
4046 * c.opt: Declare new -Wunused-local-typedefs flag.
4047
693ddb1b
EB
40482011-09-06 Eric Botcazou <ebotcazou@adacore.com>
4049
4050 PR middle-end/50266
4051 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
4052 computations.
4053
830c740f
RG
40542011-09-05 Richard Guenther <rguenther@suse.de>
4055
4056 * c-common.c (complete_array_type): Use ssize_int (-1) instead
4057 of integer_minus_one_node for empty array upper bounds.
4058
892a371f
DS
40592011-08-28 Dodji Seketeli <dodji@redhat.com>
4060
4061 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
4062 it's the first time it's being called on this main TU.
4063
0e3fdb48
RB
40642011-08-24 Richard Guenther <rguenther@suse.de>
4065
4066 PR c/49396
4067 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
4068
40692011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
4070
4071 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
4072 defined in cpp_init_builtins and c_cpp_builtins.
4073
d4a83c10
JM
40742011-08-19 Joseph Myers <joseph@codesourcery.com>
4075
4076 * c-common.c (c_common_reswords): Add __builtin_complex.
4077 * c-common.h (RID_BUILTIN_COMPLEX): New.
4078
bbceee64
JM
40792011-08-18 Joseph Myers <joseph@codesourcery.com>
4080
4081 * c-common.c (c_common_reswords): Add _Noreturn.
4082 (keyword_is_function_specifier): Handle RID_NORETURN.
4083 * c-common.h (RID_NORETURN): New.
4084
0e3a99ae
AS
40852011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4086
4087 * c-common.c (unsafe_conversion_p): New function. Check if it is
4088 unsafe to convert an expression to the type.
4089 (conversion_warning): Adjust, use unsafe_conversion_p.
4090 * c-common.h (unsafe_conversion_p): New function declaration.
4091
20906c66
JJ
40922011-08-02 Jakub Jelinek <jakub@redhat.com>
4093
4094 * c-common.h (c_finish_omp_atomic): Adjust prototype.
4095 (c_finish_omp_taskyield): New prototype.
4096 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
4097 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
4098 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
4099 or RHS1 have side-effects, evaluate those too in the right spot,
4100 if it is a decl and LHS is also a decl, error out if they
4101 aren't the same.
4102 (c_finish_omp_taskyield): New function.
4103 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
4104 * c-pragma.c (omp_pragmas): Add taskyield.
4105 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
4106 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
4107 PRAGMA_OMP_CLAUSE_MERGEABLE.
4108
770e5a2e
DS
41092011-07-25 Dodji Seketeli <dodji@redhat.com>
4110
4111 * c-common.h (set_underlying_type): Remove parm name from
4112 declaration.
4113
1baae426
RG
41142011-07-25 Romain Geissler <romain.geissler@gmail.com>
4115
4116 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 4117
fcb21722
JM
41182011-07-22 Jason Merrill <jason@redhat.com>
4119
76f86d00
JM
4120 PR c++/49793
4121 * c.opt (Wnarrowing): New.
4122
3a636414
JM
4123 PR c++/30112
4124 * c-common.h: Declare c_linkage_bindings.
4125 * c-pragma.c (handle_pragma_redefine_extname): Use it.
4126
fcb21722
JM
4127 PR c++/49813
4128 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
4129 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
4130 as flag_isoc99 for 'restrict'.
4131 (pp_c_specifier_qualifier_list): Likewise for _Complex.
4132
02614448
ILT
41332011-07-21 Ian Lance Taylor <iant@google.com>
4134
4135 PR middle-end/49705
4136 * c-common.c (c_disable_warnings): New static function.
4137 (c_enable_warnings): New static function.
4138 (c_fully_fold_internal): Change local unused_p to bool. Call
4139 c_disable_warnings and c_enable_warnings rather than change
4140 c_inhibit_evaluation_warnings.
4141
34429675
JM
41422011-07-20 Jason Merrill <jason@redhat.com>
4143
4144 PR c++/6709 (DR 743)
4145 PR c++/42603 (DR 950)
4146 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
4147 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
4148 (CPP_DECLTYPE): New.
4149 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
4150
5d49b6a7
RG
41512011-07-19 Richard Guenther <rguenther@suse.de>
4152
4153 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
4154 * c-omp.c (c_finish_omp_for): Likewise.
4155
e84a58ff
EB
41562011-07-12 Eric Botcazou <ebotcazou@adacore.com>
4157
4158 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
4159 body on the next line.
4160
329af3c7
JM
41612011-07-08 Jason Merrill <jason@redhat.com>
4162
4063e61b
JM
4163 PR c++/45437
4164 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
4165
329af3c7
JM
4166 PR c++/49673
4167 * c-common.c (c_apply_type_quals_to_decl): Don't check
4168 TYPE_NEEDS_CONSTRUCTING.
4169
1a072294
RG
41702011-07-06 Richard Guenther <rguenther@suse.de>
4171
4172 * c-common.c (c_common_nodes_and_builtins):
4173 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
4174
fce5dddd
RG
41752011-07-05 Richard Guenther <rguenther@suse.de>
4176
4177 * c-common.c (c_common_nodes_and_builtins): Build all common
4178 tree nodes first.
4179
45d439ac
JJ
41802011-06-27 Jakub Jelinek <jakub@redhat.com>
4181
56300785
JJ
4182 * c-common.h (c_tree_chain_next): New static inline function.
4183
45d439ac
JJ
4184 * c-common.c (check_builtin_function_arguments): Handle
4185 BUILT_IN_ASSUME_ALIGNED.
4186
e0a8ecf2
AM
41872011-06-21 Andrew MacLeod <amacleod@redhat.com>
4188
4189 * c-common.c: Add sync_ or SYNC__ to builtin names.
4190 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
4191
41922011-06-20 Pierre Vittet <piervit@pvittet.com>
4193
4194 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
4195 handler.
4196 (gen_pragma_handler): New union.
4197 (internal_pragma_handler): New type.
4198 (c_register_pragma_with_data)
4199 (c_register_pragma_with_expansion_and_data): New functions.
4200
4201 * c-pragma.c (registered_pragmas, c_register_pragma_1)
4202 (c_register_pragma, c_register_pragma_with_expansion)
4203 (c_invoke_pragma_handler): Changed to work with
4204 internal_pragma_handler.
4205 (c_register_pragma_with_data)
4206 (c_register_pragma_with_expansion_and_data): New functions.
4207
677f3fa8
JM
42082011-06-14 Joseph Myers <joseph@codesourcery.com>
4209
4210 * c-common.c: Include common/common-target.h.
4211 (handle_section_attribute): Use
4212 targetm_common.have_named_sections.
4213 * c-cppbuiltin.c: Include common/common-target.h.
4214 (c_cpp_builtins): Use targetm_common.except_unwind_info.
4215
d7fc8c14
RG
42162011-06-10 Richard Guenther <rguenther@suse.de>
4217
4218 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
4219 to print a IDENTIFIER_NODE.
4220
10e48e39
RO
42212011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4222 Joseph Myers <joseph@codesourcery.com>
4223
4224 * c.opt (fbuilding-libgcc): New option.
4225 * c-cppbuiltin.c (c_cpp_builtins): Define
4226 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
4227
6976ae51
JM
42282011-06-07 Jason Merrill <jason@redhat.com>
4229
3ff60975
JM
4230 * c-common.c (max_tinst_depth): Lower default to 900.
4231
6976ae51
JM
4232 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
4233
009db074
RG
42342011-06-07 Richard Guenther <rguenther@suse.de>
4235
4236 * c-common.c (c_common_nodes_and_builtins): Do not set
4237 size_type_node or call set_sizetype.
4238
b4592b92
DS
42392011-06-07 Dodji Seketeli <dodji@redhat.com>
4240
4241 PR debug/49130
4242 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 4243 type when using pointer comparison to compare types.
b4592b92 4244
014ab419
JW
42452011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
4246
4247 * c.opt: Add -Wdelete-non-virtual-dtor.
4248 * c-opts.c (c_common_handle_option): Include it in -Wall.
4249
4f60111f
NF
42502011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
4251
4252 PR bootstrap/49190
4253
4254 Revert:
4255 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4256
4257 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
4258 not tree_common.
4259
4cc4f2f4
JJ
42602011-05-27 Jakub Jelinek <jakub@redhat.com>
4261
4262 PR c++/49165
4263 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
4264 C++ don't call c_common_truthvalue_conversion on void type arms.
4265
38e01f9e
NF
42662011-05-27 Nathan Froyd <froydnj@codesourcery.com>
4267
4268 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
4269 (stmt_list_stack): Define.
4270 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
4271 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
4272
92e948a8
NF
42732011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4274
4275 * c-common.c (warning_candidate_p): Check for BLOCKs.
4276
a2fc3e63
NF
42772011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4278
4279 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
4280 not tree_common.
4281
0957c029
JJ
42822011-05-25 Jakub Jelinek <jakub@redhat.com>
4283
4284 * c-common.c (def_fn_type): Remove extra va_end.
4285
828fb3ba
JM
42862011-05-23 Jason Merrill <jason@redhat.com>
4287
4288 PR c++/48106
4289 * c-common.c (c_common_get_narrower): New.
4290 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
4291
dde05067
NF
42922011-05-23 Nathan Froyd <froydnj@codesourcery.com>
4293
4294 * c-common.h (check_function_arguments): Tweak prototype of
4295 check_function_arguments.
4296 * c-common.c (check_function_arguments): Likewise. Adjust
4297 calls to check_function_nonnull, check_function_format, and
4298 check_function_sentinel.
4299 (check_function_sentinel): Take a FUNCTION_TYPE rather than
4300 separate attributes and typelist arguments. Use
4301 FOREACH_FUNCTION_ARGS to iterate over argument types.
4302
3c0d13bf
PC
43032011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
4304
4305 * c-common.c (c_common_reswords): Reorder.
4306 * c-common.h (rid): Likewise.
4307
8242dd04
NF
43082011-05-10 Nathan Froyd <froydnj@codesourcery.com>
4309
4310 * c-common.c (def_fn_type): Don't call build_function_type, call
4311 build_function_type_array or build_varargs_function_type_array
4312 instead.
4313 (c_common_nodes_and_builtins): Likewise.
4314
3d528853
NF
43152011-05-05 Nathan Froyd <froydnj@codesourcery.com>
4316
4317 * c-common.c (c_add_case_label): Omit the loc argument to
4318 build_case_label.
4319 * c-common.h (build_case_label): Remove.
4320 * c-semantics.c (build_case_label): Remove.
4321
a04a722b
JM
43222011-05-05 Joseph Myers <joseph@codesourcery.com>
4323
4324 * c-objc.h (objc_start_method_definition): Update prototype.
4325 * stub-objc.c (objc_start_method_definition): Add extra parameter.
4326
e19a18d4
NF
43272011-05-04 Nathan Froyd <froydnj@codesourcery.com>
4328
4329 * c-common.c (check_main_parameter_types): Reindent. Don't use
4330 TYPE_ARG_TYPES directly.
4331 (handle_nonnull_attribute): Likewise.
4332 (sync_resolve_params): Likewise.
4333 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
4334 to check_format_string.
4335 (handle_format_attribute): Likewise.
4336 (check_format_string): Take a function type to examine instead of
4337 a type list. Use a function_arg_iterator to step through argument
4338 types.
4339
c62c040f
RG
43402011-05-04 Richard Guenther <rguenther@suse.de>
4341
4342 * c-common.c (fix_string_type): Use size_int for index type bounds.
4343 (start_fname_decls): Do not pass NULL to build_int_cst.
4344 (c_init_attributes): Likewise.
4345 * c-lex.c (c_lex_with_flags): Likewise.
4346
c12ff9d8
JM
43472011-04-27 Jason Merrill <jason@redhat.com>
4348
4349 * c-common.c (make_tree_vector_from_list): New.
4350 * c-common.h: Declare it.
4351
304dfbe3
RG
43522011-04-26 Richard Guenther <rguenther@suse.de>
4353
4354 PR preprocessor/48248
4355 * c-ppoutput.c (maybe_print_line): Always optimize newlines
4356 for output size with -P.
4357
3c0d13bf
PC
43582011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
4359
4360 * c-common.c (struct c_common_resword): Add __underlying_type.
4361 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
4362
04695783
JM
43632011-04-20 Jim Meyering <meyering@redhat.com>
4364
4365 * c-format.c (init_dollar_format_checking): Remove useless
4366 if-before-free.
4367
0dc33c3c
NP
43682011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
4369
4370 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 4371 (objc_detect_field_duplicates): New.
0dc33c3c 4372 * stub-objc.c: Likewise.
3c0d13bf 4373
c59633d9
NP
43742011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4375
4376 * stub-objc.c (objc_declare_protocols): Renamed to
4377 objc_declare_protocol.
4378 * c-objc.h: Likewise.
3c0d13bf 4379
32dabdaf
NP
43802011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4381
4382 * stub-objc.c (objc_declare_class): Updated argument name.
4383
81f653d6
NF
43842011-04-12 Nathan Froyd <froydnj@codesourcery.com>
4385
4386 * c-common.h (c_common_init_ts): Declare.
4387 * c-common.c (c_common_init_ts): Define.
4388
eb345401
NP
43892011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4390
4391 * c-objc.h (objc_build_message_expr): Updated prototype.
4392 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 4393
a358e188
MJ
43942011-04-12 Martin Jambor <mjambor@suse.cz>
4395
4396 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
4397 of cgraph_node.
4398
e6313a78
RG
43992011-04-11 Richard Guenther <rguenther@suse.de>
4400
4401 * c-common.c (complete_array_type): Build a range type of
4402 proper type.
4403
dcf0c47e
NF
44042011-04-08 Nathan Froyd <froydnj@codesourcery.com>
4405
4406 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
4407 (handle_type_generic_attribute): Likewise.
4408
1ee44b26
JM
44092011-04-07 Jason Merrill <jason@redhat.com>
4410
4411 PR c++/48450
4412 * c-common.c (c_common_truthvalue_conversion): Don't ignore
4413 conversion from C++0x scoped enum.
4414
acce4e77
JM
44152011-04-06 Joseph Myers <joseph@codesourcery.com>
4416
4417 * c-target-def.h: New file.
4418 * c-target.def: New file.
4419 * c-target.h: New file.
4420 * c-common.c (targetcm): Don't define here.
4421 * c-common.h (default_handle_c_option): Declare.
4422 * c-format.c: Include c-target.h instead of target.h.
4423 * c-opts.c: Include c-target.h instead of target.h. Explicitly
4424 include tm.h.
4425 (default_handle_c_option): Move from targhooks.c.
4426
e2eefb55
JJ
44272011-03-29 Jakub Jelinek <jakub@redhat.com>
4428
4429 PR preprocessor/48248
4430 * c-ppoutput.c (print): Add src_file field.
4431 (init_pp_output): Initialize it.
4432 (maybe_print_line): Don't optimize by adding up to 8 newlines
4433 if map->to_file and print.src_file are different file.
4434 (print_line): Update print.src_file.
4435
ba78087b
KT
44362011-03-25 Kai Tietz <ktietz@redhat.com>
4437
4438 * c-ada-spec.c (compare_comment): Use filename_cmp
4439 instead of strcmp for filename.
4440
0edf1bb2
JL
44412011-03-25 Jeff Law <law@redhat.com>
4442
adfac8df 4443 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 4444
c7dc8804
JM
44452011-03-25 Jason Merrill <jason@redhat.com>
4446
4447 * c.opt: Add -std=c++03.
4448
d1d879b1
EB
44492011-03-22 Eric Botcazou <ebotcazou@adacore.com>
4450
4451 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
4452
62d784f7
KT
44532011-03-17 Kai Tietz
4454
4455 PR target/12171
5050afdf
KT
4456 * c-pretty-print.c (pp_c_specifier_qualifier_list):
4457 Display allowed attributes for function pointer types.
4458 (pp_c_attributes_display): New function to display
4459 attributes having affects_type_identity flag set to true.
4460 * c-pretty-print.h (pp_c_attributes_display): New prototype.
4461
62d784f7
KT
4462 * c-common.c (c_common_attribute_table):
4463 Add new element.
4464 (c_common_format_attribute_table): Likewise.
4465
82d37118
JM
44662011-03-18 Jason Merrill <jason@redhat.com>
4467
49a000c3
JM
4468 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
4469 * c-common.h: Don't declare it here.
4470 * c-common.c: Or define it here.
4471 * c-opts.c (c_common_handle_option): Or set it here.
4472
82d37118
JM
4473 PR c++/35315
4474 * c-common.c (handle_transparent_union_attribute): Don't
4475 make a duplicate type in C++.
4476
17bc631c
JM
44772011-03-15 Jason Merrill <jason@redhat.com>
4478
4479 * c-common.c (max_constexpr_depth): New.
4480 * c-common.h: Declare it.
4481 * c-opts.c (c_common_handle_option): Set it.
4482 * c.opt (fconstexpr-depth): New option.
4483
1b9b91a6
JM
44842011-03-11 Jason Merrill <jason@redhat.com>
4485
f231b5ff
JM
4486 * c-common.c (attribute_takes_identifier_p): Add missing const.
4487
1b9b91a6
JM
4488 PR c++/46803
4489 * c-common.c (attribute_takes_identifier_p): Assume that an
4490 unknown attribute takes an identifier.
4491
a19e4d44
NF
44922011-03-07 Nathan Froyd <froydnj@codesourcery.com>
4493
4494 PR c/47786
4495 * c-common.c (c_type_hash): Call list_length instead of iterating
4496 through DECL_CHAIN. Rename 'i' to 'n_elements'.
4497
982d62f6
JJ
44982011-02-19 Jakub Jelinek <jakub@redhat.com>
4499
4500 PR c/47809
4501 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
4502
0a256240
NP
45032011-02-17 Iain Sandoe <iains@gcc.gnu.org>
4504
4505 * c.opt (fobjc-abi-version=) New.
4506 (fobjc-nilcheck): New.
4507
ba9e6dd5
NF
45082011-02-03 Nathan Froyd <froydnj@codesourcery.com>
4509
4510 PR c++/46890
4511 * c-common.h (keyword_is_decl_specifier): Declare.
4512 * c-common.c (keyword_is_decl_specifier): Define.
4513 (keyword_is_function_specifier): New function.
4514
7273813a
JJ
45152011-01-26 Jakub Jelinek <jakub@redhat.com>
4516
4517 PR c/47473
4518 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
4519 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
4520 REAL_TYPE.
4521
908ef79b
AC
45222011-01-26 Arnaud Charlet <charlet@adacore.com>
4523
4524 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
4525
237e9384
JJ
45262011-01-26 Jakub Jelinek <jakub@redhat.com>
4527
4528 PR pch/47430
4529 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
4530 after init_c_lex if pch_file is set.
4531
47ea1edf
DK
45322011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
4533
d4dba752 4534 PR c++/43601
47ea1edf
DK
4535 * c.opt (-fkeep-inline-dllexport): New switch.
4536
2aa9c6ae
RG
45372011-01-12 Richard Guenther <rguenther@suse.de>
4538
4539 PR middle-end/32511
4540 * c-common.c (handle_weak_attribute): Warn instead of error
4541 on declaring an inline function weak.
4542
7bd11157
TT
45432011-01-05 Tom Tromey <tromey@redhat.com>
4544
4545 * c-common.h (lvalue_error): Update.
4546 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
4547 not error.
4548
0e66e494 45492010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 4550
b4f588c4
NP
4551 PR objc/47075
4552 * c-objc.h (objc_finish_message_expr): Added argument to
4553 prototype.
4554
f4da8dce
NF
45552010-12-22 Nathan Froyd <froydnj@codesourcery.com>
4556
4557 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
4558 Use prototype_p.
4559
46270f14
NP
45602010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
4561
4562 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 4563 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 4564
4816c593
NF
45652010-12-10 Nathan Froyd <froydnj@codesourcery.com>
4566
4567 * c-common.h (readonly_error): Declare.
4568 * c-common.c (readonly_error): Define.
4569
7a6daeb0
NF
45702010-12-09 Nathan Froyd <froydnj@codesourcery.com>
4571
4572 * c-common.h (invalid_indirection_error): Declare.
4573 * c-common.c (invalid_indirection_error): Define.
4574
892f6119
RG
45752010-12-03 Richard Guenther <rguenther@suse.de>
4576
4577 PR c/46745
4578 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
4579 (pp_c_unary_expression): Likewise.
4580 (pp_c_expression): Likewise.
4581
6c39e757
NP
45822010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
4583
4584 * c-common.h (objc_finish_function): New.
4585 (objc_non_volatilized_type): Removed.
4586 (objc_type_quals_match): Removed.
4587 * stub-objc.c (objc_finish_function): New.
4588 (objc_non_volatilized_type): Removed.
4589 (objc_type_quals_match): Removed.
9faeb493 4590
7c475d11
JM
45912010-11-30 Joseph Myers <joseph@codesourcery.com>
4592
4593 * c-common.h (parse_optimize_options): Declare.
4594 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
4595 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
4596
71f3e391
JM
45972010-11-29 Joseph Myers <joseph@codesourcery.com>
4598
4599 * c-opts.c (check_deps_environment_vars): Use getenv instead of
4600 GET_ENVIRONMENT.
4601 * c-pch.c (O_BINARY): Don't define here.
4602 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
4603
d5fabb58
JM
46042010-11-25 Joseph Myers <joseph@codesourcery.com>
4605
4606 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
4607 targetm.except_unwind_info.
4608
299404a1
JM
46092010-11-23 Joseph Myers <joseph@codesourcery.com>
4610
4611 * c-opts.c (c_common_handle_option): Pass location to
4612 set_struct_debug_option.
4613
c98cd5bf
JM
46142010-11-23 Joseph Myers <joseph@codesourcery.com>
4615
4616 * c-common.c (visibility_options): Move from ../opts.c.
4617 * c-common.h (struct visibility_flags, visibility_options):
4618 Declare here.
4619 * c-opts.c (finish_options): Rename to c_finish_options.
4620 (c_common_init): Update call to finish_options.
4621
a9546771
NP
46222010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
4623
4624 PR objc/34033
4625 * c-lex.c (lex_string): Check that each string in an Objective-C
4626 string concat sequence starts with either one or zero '@', and
4627 that there are no spurious '@' signs at the end.
4628
24a57808
JM
46292010-11-20 Joseph Myers <joseph@codesourcery.com>
4630
4631 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
4632 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
4633 HANDLE_PRAGMA_VISIBILITY.
4634 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
4635 HANDLE_PRAGMA_VISIBILITY): Don't define.
4636 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
4637
a9aa2c3a
NF
46382010-11-20 Nathan Froyd <froydnj@codesourcery.com>
4639
4640 PR c++/16189
4641 PR c++/36888
4642 PR c++/45331
4643 * c-common.h (keyword_begins_type_specifier): Declare.
4644 (keyword_is_storage_class_specifier): Declare.
4645 (keyword_is_type_qualifier): Declare.
4646 * c-common.c (keyword_begins_type_specifier): New function.
4647 (keyword_is_storage_class_specifier): New function.
4648 (keyword_is_type_qualifier): Declare.
4649
5386338c
JM
46502010-11-19 Joseph Myers <joseph@codesourcery.com>
4651
4652 PR c/46547
4653 * c-common.c (in_late_binary_op): Define.
4654 (c_common_truthvalue_conversion): Check in_late_binary_op before
4655 calling c_save_expr.
4656 * c-common.h (in_late_binary_op): Declare.
4657
69ccdddb
JM
46582010-11-19 Joseph Myers <joseph@codesourcery.com>
4659
4660 * c-opts.c (c_common_handle_option): Update calls to
4661 set_struct_debug_option.
4662
6b192a09
NP
46632010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
4664
4665 * c-common.h (objc_declare_protocols): Added additional argument.
4666 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 4667
fb52b50a
NF
46682010-11-18 Nathan Froyd <froydnj@codesourcery.com>
4669
4670 PR c/33193
4671 * c-common.h (build_real_imag_expr): Declare.
4672 * c-semantics.c (build_real_imag_expr): Define.
4673
b37421c6
JM
46742010-11-17 Joseph Myers <joseph@codesourcery.com>
4675
4676 * c-opts.c (c_common_parse_file): Take no arguments.
4677 * c-common.h (c_common_parse_file): Update prototype.
4678
07078664
JJ
46792010-11-16 Jakub Jelinek <jakub@redhat.com>
4680
4681 PR c++/46401
4682 * c-common.c (warning_candidate_p): Don't track non-const calls
4683 or STRING_CSTs.
4684
c6a13190
ILT
46852010-11-15 Ian Lance Taylor <iant@google.com>
4686
4687 * c-lex.c (init_c_lex): Set macro debug callbacks if
4688 flag_dump_go_spec is set.
4689
925e8657
NP
46902010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
4691
4692 * c-common.h (objc_build_incr_expr_for_property_ref): New.
4693 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
4694
bb0a9581
NF
46952010-11-15 Nathan Froyd <froydnj@codesourcery.com>
4696
4697 PR preprocessor/45038
4698 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
4699 dialects.
4700
c5fa0890
JM
47012010-11-12 Joseph Myers <joseph@codesourcery.com>
4702
4703 * c-common.h (c_family_lang_mask): Declare.
4704 * c-opts.c (c_family_lang_mask): Make extern.
4705 * c-pragma.c (handle_pragma_diagnostic): Use
4706 control_warning_option.
4707
a4d8c676
JM
47082010-11-12 Joseph Myers <joseph@codesourcery.com>
4709
4710 * c-common.c (parse_optimize_options): Update call to
4711 decode_options.
4712 * c-common.h (c_common_handle_option): Update prototype.
4713 * c-opts.c (c_common_handle_option): Take location_t parameter and
4714 pass it to other functions.
4715
f954bd2c
JM
47162010-11-11 Joseph Myers <joseph@codesourcery.com>
4717
4718 * c-opts.c (warning_as_error_callback): Remove.
4719 (c_common_initialize_diagnostics): Don't call
4720 register_warning_as_error_callback.
4721 (c_common_handle_option): Handle -Werror=normalized= here.
4722
d8a07487
JM
47232010-11-10 Joseph Myers <joseph@codesourcery.com>
4724
4725 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
4726 in diagnostic.
4727 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
4728 letter.
4729 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
4730 Remove trailing '.' from diagnostics.
4731 * c.opt (Wwrite-strings_: Avoid '`' in help text.
4732
d5478783
JM
47332010-11-10 Joseph Myers <joseph@codesourcery.com>
4734
4735 * c-common.c (parse_optimize_options): Pass global_dc to
4736 decode_options.
4737 * c-opts.c (c_common_handle_option): Pass &global_options to
4738 set_Wstrict_aliasing.
4739 * c.opt (v): Don't mark Common or document here.
4740
91ebb981
IS
47412010-11-06 Iain Sandoe <iains@gcc.gnu.org>
4742
4743 PR target/44981
4744 * c-format.c (format_type): New type gcc_objc_string_format_type.
4745 (valid_stringptr_type_p): New.
4746 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 4747 (check_format_string): Pass expected type, use
91ebb981
IS
4748 valid_stringptr_type_p (), check that the format string types are
4749 consistent with the format specification.
4750 (decode_format_attr): Warn if NSString is used outside objective-c.
4751 (format_types_orig): Add NSString.
4752 (format_name): New.
4753 (format_flags): New.
4754 (check_format_arg): Handle format strings requiring an external parser.
4755 first_target_format_type: New variable.
4756 (handle_format_attribute): Set up first_target_format_type, pass the
4757 expected format arg string type to check_format_string().
4758 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
4759 * stub-objc.c (objc_string_ref_type_p): New.
4760 (objc_check_format_arg): New.
4761
bede2adc
NP
47622010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
4763
9faeb493 4764 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
4765 * c-common.h (objc_build_class_component_ref): New.
4766 * stub-objc.c (objc_build_class_component_ref): New.
4767
9a179d01
NP
47682010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
4769
4770 * c.opt (Wproperty-assign-default): New option.
4771
22d8d616
NP
47722010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
4773
4774 Implemented -fobjc-std=objc1 flag.
4775 * c.opt (fobjc-std=objc1): New option.
4776
2debdb4f
NP
47772010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
4778
4779 Implemented format and noreturn attributes for Objective-C methods.
4780 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
4781 attribute for Objective-C methods.
4782
ec52b111
JM
47832010-10-31 Jason Merrill <jason@redhat.com>
4784
4785 * c-common.c (conversion_warning, warn_for_collisions_1): Use
4786 EXPR_LOC_OR_HERE.
4787
46a88c12
NP
47882010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
4789
4790 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
4791 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
4792 (objc_add_property_declaration): Removed arguments for copies and
4793 ivar.
4794 (objc_build_getter_call): Renamed to
4795 objc_maybe_build_component_ref.
4796 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4797 (objc_is_property_ref): New.
4798 * c-common.c (c_common_reswords): Removed copies and ivar.
4799 * stub-objc.c (objc_add_property_declaration): Removed arguments
4800 for copies and ivar.
4801 (objc_build_getter_call): Renamed to
4802 objc_maybe_build_component_ref.
4803 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4804 (objc_is_property_ref): New.
9faeb493 4805
1e4bf85b
AC
48062010-10-29 Arnaud Charlet <charlet@adacore.com>
4807 Matthew Gingell <gingell@adacore.com>
4808
4809 * c-ada-spec.c (separate_class_package): New function.
4810 (pp_ada_tree_identifier): Prefix references to C++ classes with the
4811 name of their enclosing package.
4812 (print_ada_declaration): Use separate_class_package.
4813
81f0bab2
JM
48142010-10-27 Jason Merrill <jason@redhat.com>
4815
2b08f2c5
JM
4816 * c-common.c (c_common_reswords): Add __is_literal_type.
4817 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
4818
81f0bab2
JM
4819 * c-common.c (check_case_value): Remove special C++ code.
4820
200290f2
NP
48212010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4822
4823 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
4824 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
4825 and RID_LAST_PATTR.
4826 (objc_add_property_declaration): Added additional arguments.
4827 (objc_property_attribute_kind): Removed.
4828 (objc_set_property_attr): Removed.
4829 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
4830 copy and nonatomic.
4831 * stub-objc.c (objc_add_property_declaration): Added additional
4832 arguments.
4833 (objc_set_property_attr): Removed.
9faeb493 4834
f614132b
NP
48352010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4836
4837 * c-common.h (objc_add_property_variable): Renamed to
4838 objc_add_property_declaration. Added location argument.
4839 * stub-objc.c (objc_add_property_variable): Same change.
4840
b8a18805
NP
48412010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
4842
4843 * c-common.h (objc_maybe_printable_name): New.
4844 * stub-objc.c (objc_maybe_printable_name): New.
4845
30cd1c5d
AS
48462010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4847 Andrew Pinski <pinskia@gmail.com>
4848
4849 * c-common.h (c_common_mark_addressable_vec): Declare.
4850 * c-common.c (c_common_mark_addressable_vec): New function.
4851
249a82c4
NP
48522010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
4853
4854 * c-common.h (objc_set_method_type): Removed.
4855 (objc_add_method_declaration): Added boolean argument.
4856 (objc_start_method_definition): Same change.
4857 (objc_build_method_signature): Same change.
4858 * stub-objc.c (objc_set_method_type): Removed.
4859 (objc_add_method_declaration): Added boolean argument.
4860 (objc_start_method_definition): Same change.
4861 (objc_build_method_signature): Same change.
4862
977e30bc
NP
48632010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
4864
4865 * c-common.h (finish_file): Removed.
4866 (objc_write_global_declarations): New.
4867 * c-opts.c (c_common_parse_file): Do not call finish_file.
4868 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 4869
da57d1b9
NP
48702010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4871
4872 Implemented parsing @synthesize and @dynamic for
4873 Objective-C/Objective-C++.
4874 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
4875 (objc_add_synthesize_declaration): New.
4876 (objc_add_dynamic_declaration): New.
4877 * c-common.c (c_common_reswords): Add synthesize and dynamic.
4878 * stub-objc.c (objc_add_synthesize_declaration): New.
4879 (objc_add_dynamic_declaration): New.
9faeb493 4880
0069111f
MM
48812010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
4882
4883 PR target/46041
4884 * c-cppbuiltin.c (mode_has_fma): Move function here from
4885 builtins.c. Don't use the fma optab, instead just use the
4886 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
4887 using -save-temps.
4888
e426b47b
NP
48892010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4890
4891 Merge from 'apple/trunk' branch on FSF servers.
0069111f 4892
e426b47b
NP
4893 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
4894
9faeb493 4895 Radar 4330422
e426b47b
NP
4896 * c-common.h (objc_non_volatilized_type): New declaration
4897 * stub-objc.c (objc_non_volatilized_type): New stub.
4898
90fbfdc3
NP
48992010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
4900
e426b47b 4901 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
4902
4903 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
4904
9faeb493 4905 Radar 4133425
90fbfdc3 4906 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 4907 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 4908
c37d8c30
IS
49092010-10-17 Iain Sandoe <iains@gcc.gnu.org>
4910
4911 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
4912 * c-common.h (enum rid): Add RID_AT_PACKAGE.
4913 (objc_ivar_visibility_kind): New enum.
4914 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 4915 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
4916 visibility enum.
4917
1b1562a5
MM
49182010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
4919
4920 * c-cppbuiltin.c (builtin_define_float_constants): Emit
4921 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
4922 has the appropriate fma builtins.
4923 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
4924
668ea4b1
IS
49252010-10-14 Iain Sandoe <iains@gcc.gnu.org>
4926
1b1562a5 4927 merge from FSF apple 'trunk' branch.
668ea4b1 4928 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 4929
668ea4b1
IS
4930 Radars 4436866, 4505126, 4506903, 4517826
4931 * c-common.c (c_common_resword): Define @property and its attributes.
4932 * c-common.h: Define property attribute enum entries.
4933 (OBJC_IS_PATTR_KEYWORD): New.
4934 (objc_property_attribute_kind): New enum.
4935 Declare objc_set_property_attr (), objc_add_property_variable (),
4936 objc_build_getter_call () and objc_build_setter_call ().
4937 * stub-objc.c (objc_set_property_attr): New stub.
4938 (objc_add_property_variable): Likewise.
4939 (objc_build_getter_call): Likewise.
4940 (objc_build_setter_call) Likewise.
1b1562a5 4941
a1178b30
IS
49422010-10-13 Iain Sandoe <iains@gcc.gnu.org>
4943
1b1562a5 4944 merge from FSF apple 'trunk' branch.
a1178b30
IS
4945 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
4946
4947 Radar 3803157 (method attributes)
4948 * c-common.c (handle_deprecated_attribute): Recognize
4949 objc methods as valid declarations.
4950 * c-common.h: Declare objc_method_decl ().
1b1562a5 4951 * stub-objc.c (objc_method_decl): New stub.
a1178b30 4952
a75bfaa6
JM
49532010-10-08 Joseph Myers <joseph@codesourcery.com>
4954
4955 * c-common.c (parse_optimize_options): Call
4956 decode_cmdline_options_to_array_default_mask before
4957 decode_options. Update arguments to decode_options.
4958 * c-common.h (c_common_init_options_struct): Declare.
4959 * c-opts.c (c_common_init_options_struct): New. Split out from
4960 c_common_init_options.
4961
f05b9d93
NP
49622010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
4963
4964 Implemented fast enumeration for Objective-C.
4965 * c-common.h (objc_finish_foreach_loop): New.
4966 * stub-objc.c (objc_finish_foreach_loop): New.
4967
1ebe4b4f
JM
49682010-10-05 Joseph Myers <joseph@codesourcery.com>
4969
4970 * c-common.h (struct diagnostic_context): Don't declare here.
4971 (c_common_initialize_diagnostics): Declare using
4972 diagnostic_context typedef.
4973 * c-opts.c (c_common_handle_option): Pass global_dc to
4974 handle_generated_option.
4975
d4d24ba4
JM
49762010-10-04 Joseph Myers <joseph@codesourcery.com>
4977
4978 * c-opts.c (c_common_handle_option): Pass &global_options_set to
4979 handle_generated_option.
4980
478a1c5b
ILT
49812010-10-03 Ian Lance Taylor <iant@google.com>
4982
4983 * c.opt (-fplan9-extensions): New option.
4984
82a1c2fe
FXC
49852010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4986
4987 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
4988 Remove.
4989 (c_cpp_builtins): Call functions from cppbuiltin.c instead
4990 of duplicating code.
4991
92902b1b
IS
49922010-09-30 Iain Sandoe <iains@gcc.gnu.org>
4993
4994 * c-common.c: Add two new entries for @optional
4995 and @required keywords.
4996
4997 merge from FSF 'apple/trunk' branch.
4998 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
4999
5000 Radar 4386773
5001 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
5002 objective-c keywords.
5003 (objc_set_method_opt): New declaration.
5004 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 5005
46625112
JM
50062010-09-30 Joseph Myers <joseph@codesourcery.com>
5007
5008 * c-common.c (handle_optimize_attribute): Pass &global_options to
5009 cl_optimization_save and cl_optimization_restore.
5010 * c-opts.c (c_common_handle_option): Pass &global_options to
5011 handle_generated_option.
5012 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
5013 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
5014 &global_options to cl_optimization_restore.
5015
49b91f05
NP
50162010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
5017
5018 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
5019 Objective-C/Objective-C++ keywords.
5020
13ed556f 50212010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 5022
9faeb493
UB
5023 Merge from 'apple/trunk' branch on FSF servers.
5024
a6341d57
NP
5025 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
5026
5027 Radar 4281748
5028 * c-common.h (objc_check_global_decl): New declaration.
5029 * stub-objc.c (objc_check_global_decl): New stub.
5030
f0036cca
JM
50312010-09-29 Joseph Myers <joseph@codesourcery.com>
5032
5033 * c.opt: Don't use VarExists.
5034
e3339d0f
JM
50352010-09-29 Joseph Myers <joseph@codesourcery.com>
5036
5037 * c-common.c (c_cpp_error): Update names of diagnostic_context
5038 members.
5039 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
5040 cl_optimization members.
5041 * c-opts.c (warning_as_error_callback, c_common_handle_option,
5042 sanitize_cpp_opts, finish_options): Update names of cpp_options
5043 members.
5044
1973201f
NP
50452010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
5046
5047 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
5048 (objc_is_reserved_word): Removed.
5049 * c-common.c: Updated comments.
5050 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
5051 objc_is_reserved_word.
5052 * stub-objc.c (objc_is_reserved_word): Removed.
5053
f7e71da5
IS
50542010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5055
9faeb493 5056 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
5057 include attributes.
5058 (objc_start_method_definition): Likewise.
5059 (objc_build_keyword_decl): Likewise.
5060 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
5061 (objc_start_method_definition): Likewise.
5062 (objc_build_keyword_decl): Likewise.
5063
c165dca7
IS
50642010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5065
5066 * c-common.h (objc_start_class_interface): Adjust prototype.
5067 (objc_start_category_interface): Likewise.
5068 (objc_start_protocol): Likewise.
5069 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
5070 (objc_start_class_interface): Likewise.
5071 (objc_start_category_interface): Likewise.
5072
7458026b
ILT
50732010-09-27 Ian Lance Taylor <iant@google.com>
5074
5075 * c-common.c (c_common_attribute_table): Add no_split_stack.
5076 (handle_no_split_stack_attribute): New static function.
5077
b581b85b
NP
50782010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
5079
9faeb493 5080 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
5081
5082 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
5083
9faeb493 5084 Radar 4229905
b581b85b
NP
5085 * c-common.h (objc_have_common_type): New declaration.
5086 * stub-objc.c (objc_have_common_type): New stub.
5087
5088 2005-06-22 Ziemowit Laski <zlaski@apple.com>
5089
5090 Radar 4154928
5091 * c-common.h (objc_common_type): New prototype.
9faeb493 5092 * stub-objc.c (objc_common_type): New stub.
b581b85b 5093
46a4da10
JH
50942010-09-24 Jan Hubicka <jh@suse.cz>
5095
5096 * c-common.c (handle_leaf_attribute): New function.
5097 (struct attribute_spec c_common_att): Add leaf.
5098
e200444e
JM
50992010-09-22 Joseph Myers <joseph@codesourcery.com>
5100
5101 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
5102 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
5103 -dump, -dump=, -imacros, -imacros=, -include, -include=,
5104 -include-barrier, -include-directory, -include-directory=,
5105 -include-directory-after, -include-directory-after=,
5106 -include-prefix, -include-prefix=, -include-with-prefix,
5107 -include-with-prefix=, -include-with-prefix-after,
5108 -include-with-prefix-after=, -include-with-prefix-before,
5109 -include-with-prefix-before=, -no-integrated-cpp,
5110 -no-line-commands, -no-standard-includes, -no-warnings, -output,
5111 -output=, -pedantic, -pedantic-errors, -preprocess,
5112 -print-missing-file-dependencies, -trace-includes, -traditional,
5113 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
5114 -user-dependencies, -verbose, -write-dependencies,
5115 -write-user-dependencies, no-integrated-cpp, traditional): New.
5116
29a80ea6
NP
51172010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5118
5119 PR objc/23710
ac1fc2fc
NP
5120 * c-common.h (objc_start_method_definition): Return bool instead
5121 of void.
5122 * stub-objc.c (objc_start_method_definition): Return bool instead
5123 of void.
5124
51252010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5126
5127 PR objc/25965
5128 * c-common.h (objc_get_interface_ivars): New declaration.
5129 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 5130
de621752
ILT
51312010-09-15 Ian Lance Taylor <iant@google.com>
5132
5133 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 5134 messages. Remove period at end of warning message.
de621752 5135
ba885ec5
NS
51362010-09-09 Nathan Sidwell <nathan@codesourcery.com>
5137
5138 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
5139 (handle_alias_attribute): ... here.
5140 (handle_ifunc_attribute): New.
5141
c5ee1358
MM
51422010-09-06 Mark Mitchell <mark@codesourcery.com>
5143
5144 * c-common.h (do_warn_double_promotion): Declare.
5145 * c-common.c (do_warn_double_promotion): Define.
5146
0a0b3574
MM
51472010-09-05 Mark Mitchell <mark@codesourcery.com>
5148
5149 * c.opt (Wdouble-promotion): New.
5150
d1779886
JM
51512010-09-02 Joseph Myers <joseph@codesourcery.com>
5152
5153 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
5154 fvtable-thunks, fxref): Mark no longer supported in help text.
5155
2d2bd949
JM
51562010-09-02 Joseph Myers <joseph@codesourcery.com>
5157
5158 * c.opt (Wimport, fall-virtual, falt-external-templates,
5159 fdefault-inline, fenum-int-equiv, fexternal-templates,
5160 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
5161 fname-mangling-version-, fnew-abi, fnonnull-objects,
5162 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
5163 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
5164 applicable.
5165 (fhandle-exceptions): Mark with Alias and Warn.
5166 * c-opts.c (c_common_handle_option): Don't handle options marked
5167 as ignored.
5168
5de8299c
JM
51692010-09-02 Joseph Myers <joseph@codesourcery.com>
5170
5171 * c.opt (Wcomments, Werror-implicit-function-declaration,
5172 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
5173 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
5174 aliases.
5175 * c-common.c (option_codes): Use OPT_Wcomment instead of
5176 OPT_Wcomments.
5177 * c-opts.c (warning_as_error_callback, c_common_handle_option):
5178 Don't handle options marked as aliases.
5179
0ceb0201
RG
51802010-08-25 Richard Guenther <rguenther@suse.de>
5181
5182 * c-common.c (c_common_get_alias_set): Remove special
5183 handling for pointers.
5184
ac47786e
NF
51852010-08-20 Nathan Froyd <froydnj@codesourcery.com>
5186
5187 * c-common.c: Use FOR_EACH_VEC_ELT.
5188 * c-gimplify.c: Likewise.
5189 * c-pragma.c: Likewise.
5190
c878765b
JM
51912010-08-16 Joseph Myers <joseph@codesourcery.com>
5192
5193 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
5194 RejectDriver.
5195 (MMDX): Change back to MMD. Mark NoDriverArg instead of
5196 RejectDriver.
5197 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
5198 instead of OPT_MDX and OPT_MMDX.
5199
603349bf
JM
52002010-08-16 Joseph Myers <joseph@codesourcery.com>
5201
5202 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
5203
644fa7ac
JM
52042010-08-12 Joseph Myers <joseph@codesourcery.com>
5205
5206 * c.opt (MD, MMD): Change to MDX and MMDX.
5207 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
5208
481e1176
JM
52092010-08-11 Joseph Myers <joseph@codesourcery.com>
5210
5211 * c-opts.c (c_common_handle_option): Call handle_generated_option
5212 instead of handle_option.
5213
ac8dc9f7
NF
52142010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5215
5216 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
5217 (maybe_apply_renaming_pragma): Delete unneeded declarations.
5218
4f8c876d
NF
52192010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5220
5221 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
5222 (pending_redefine_extname): Change type to a VEC.
5223 (add_to_renaming_pragma_list): Update for new type of
5224 pending_redefine_extname.
ac8dc9f7 5225 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 5226
3b0c690e
AC
52272010-08-04 Arnaud Charlet <charlet@adacore.com>
5228
5229 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
5230 visited.
5231 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
5232 decide whether a type has already been declared/seen.
5233 Do not go to the original type.
5234 (dump_nested_types): New parameter forward.
5235 Generate forward declaration if needed and mark type as visited.
5236 (print_ada_declaration): Call dump_nested_types if not already done.
5237 Mark types as visited.
5238
1890bccc
JM
52392010-08-03 Joseph Myers <joseph@codesourcery.com>
5240
5241 * c.opt (-print-pch-checksum): Remove option.
5242 * c-opts.c (c_common_handle_option): Don't handle
5243 OPT_print_pch_checksum.
5244
5f20c657
JM
52452010-07-27 Joseph Myers <joseph@codesourcery.com>
5246
5247 * c-common.h (c_common_handle_option): Update prototype and return
5248 value type.
5249 * c-opts.c (c_common_handle_option): Update prototype and return
5250 value type. Update calls to handle_option and
5251 enable_warning_as_error.
5252
f551f80c
JJ
52532010-07-27 Jakub Jelinek <jakub@redhat.com>
5254
5255 PR c/45079
5256 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
5257
61ff2bdc
JM
52582010-07-27 Joseph Myers <joseph@codesourcery.com>
5259
5260 * c-common.h (c_common_missing_argument): Remove.
5261 * c-opts.c (c_common_missing_argument): Remove.
5262 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
5263 idirafter, imacros, include, isysroot, isystem, iquote): Add
5264 MissingArgError.
5265 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
5266
7a9bf9a4
JM
52672010-07-27 Joseph Myers <joseph@codesourcery.com>
5268
5269 * c-common.h (c_common_option_lang_mask,
5270 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
5271 New.
5272 (c_common_init_options): Update prototype.
5273 * c-opts.c (c_common_option_lang_mask): New.
5274 (c_common_initialize_diagnostics): Split out of
5275 c_common_init_options.
5276 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
5277 New.
5278 (c_common_init_options): Update prototype. Use decoded options in
5279 search for -lang-asm.
5280
910ad8de
NF
52812010-07-15 Nathan Froyd <froydnj@codesourcery.com>
5282
5283 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
5284 * c-format.c: Likewise.
5285
718f9c0f
MLI
52862010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
5287
5288 * c-common.h: Include diagnostic-core.h. Error if already
5289 included.
5290 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
5291
4d451982
MLI
52922010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
5293
adfac8df 5294 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
5295 Do not include expr.h
5296 (vector_mode_valid_p): Move here.
5297
119fe915
SB
52982010-06-21 DJ Delorie <dj@redhat.com>
5299
5300 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
5301 allow these pragmas anywhere.
5302
53032010-06-14 Jakub Jelinek <jakub@redhat.com>
5304
5305 PR bootstrap/44509
5306 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
5307 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
5308 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
5309 ggc_strdup instead of xstrdup.
5310
53112010-06-10 Jakub Jelinek <jakub@redhat.com>
5312
5313 * c-cppbuiltin.c: Include cpp-id-data.h.
5314 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
5315 (lazy_hex_fp_value): New function.
5316 (builtin_define_with_hex_fp_value): Provide definitions lazily.
5317
6662d794
MLI
53182010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5319
5320 * c-gimplify.c: Do not include tree-flow.h
5321
38f8b050
JR
53222010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
5323
5324 PR other/44034
5325 * c-common.c: Rename targetm member:
5326 targetm.enum_va_list -> targetm.enum_va_list_p
5327
9589f23e
AS
53282010-06-28 Anatoly Sokolov <aesok@post.ru>
5329
5330 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
5331
3b06d379
SB
53322010-06-28 Steven Bosscher <steven@gcc.gnu.org>
5333
5334 * c-cppbuiltin.c: Do not include except.h.
5335
d166d4c3
AK
53362010-06-24 Andi Kleen <ak@linux.intel.com>
5337
9faeb493
UB
5338 * c-common.c (warn_for_omitted_condop): New.
5339 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 5340
70cb8be6
JM
53412010-06-21 Joseph Myers <joseph@codesourcery.com>
5342
5343 * c.opt (lang-objc): Remove.
5344 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
5345
a4c97feb
JR
53462010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
5347
5348 * c-opts.c: Include "tm_p.h".
5349
6e2f1956
JM
53502010-06-20 Joseph Myers <joseph@codesourcery.com>
5351
5352 * c-common.c (parse_optimize_options): Update call to
5353 decode_options.
5354
bc87224e
NF
53552010-06-18 Nathan Froyd <froydnj@codesourcery.com>
5356
5357 * c-common.c (record_types_used_by_current_var_decl): Adjust for
5358 new type of types_used_by_cur_var_decl.
5359
b49cf425
JR
53602010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
5361
5362 PR bootstrap/44512
5363 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
5364 for C++ standard compliance.
5365
59f9c2ed
JM
53662010-06-16 Jason Merrill <jason@redhat.com>
5367
5368 * c.opt: Add -Wnoexcept.
5369
33766b66
RG
53702010-06-16 Richard Guenther <rguenther@suse.de>
5371
5372 PR c/44555
5373 * c-common.c (c_common_truthvalue_conversion): Remove
5374 premature and wrong optimization concering ADDR_EXPRs.
5375
eff7e30c
AC
53762010-06-15 Arnaud Charlet <charlet@adacore.com>
5377
5378 * c-ada-spec.c (dump_sloc): Remove column info.
5379 (is_simple_enum): New function.
5380 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
5381 enum types when relevant.
5382
6312e84d
MLI
53832010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
5384
9faeb493 5385 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
5386 location.
5387
1cb42611
JM
53882010-06-10 Joseph Myers <joseph@codesourcery.com>
5389
5390 * c-opts.c (c_common_handle_option): Don't handle
5391 OPT_fshow_column.
5392
a9429e29
LB
53932010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5394
5395 * c-pragma.c (push_alignment): Use typed GC allocation.
5396 (handle_pragma_push_options): Likewise.
5397
5398 * c-common.c (parse_optimize_options): Likewise.
5399
5400 * c-common.h (struct sorted_fields_type): Add variable_size GTY
5401 option.
5402
5498f011
JM
54032010-06-07 Joseph Myers <joseph@codesourcery.com>
5404
5405 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
5406 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
5407 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
5408 flag_signed_bitfields, warn_strict_null_sentinel,
5409 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
5410 flag_gen_declaration, flag_no_gnu_keywords,
5411 flag_implement_inlines, flag_implicit_templates,
5412 flag_implicit_inline_templates, flag_optional_diags,
5413 flag_elide_constructors, flag_default_inline, flag_rtti,
5414 flag_conserve_space, flag_access_control, flag_check_new,
5415 flag_new_for_scope, flag_weak, flag_working_directory,
5416 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
5417 flag_enforce_eh_specs, flag_threadsafe_statics,
5418 flag_pretty_templates): Remove.
5419 * c-common.h (flag_preprocess_only, flag_nil_receivers,
5420 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
5421 flag_replace_objc_classes, flag_undef, flag_no_builtin,
5422 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
5423 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
5424 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
5425 flag_no_gnu_keywords, flag_implement_inlines,
5426 flag_implicit_templates, flag_implicit_inline_templates,
5427 flag_optional_diags, flag_elide_constructors, flag_default_inline,
5428 flag_rtti, flag_conserve_space, flag_access_control,
5429 flag_check_new, flag_new_for_scope, flag_weak,
5430 flag_working_directory, flag_use_cxa_atexit,
5431 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
5432 flag_threadsafe_statics, flag_pretty_templates,
5433 warn_strict_null_sentinel): Remove.
5434 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
5435 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
5436 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
5437 fimplicit-inline-templates, fimplicit-templates,
5438 flax-vector-conversions, fms-extensions, fnil-receivers,
5439 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
5440 frtti, fshort-double, fshort-enums, fshort-wchar,
5441 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
5442 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
5443 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
5444 gen-decls, undef): Use Var.
5445 (fdefault-inline, foptional-diags): Document as doing nothing.
5446 * c-opts.c (c_common_handle_option): Remove cases for options now
5447 using Var. Mark ignored options as such.
5448
39dabefd
SB
54492010-06-05 Steven Bosscher <steven@gcc.gnu.org>
5450
9faeb493 5451 * c-common.c: Moved to here from parent directory.
39dabefd
SB
5452 * c-common.def: Likewise.
5453 * c-common.h: Likewise.
5454 * c-cppbuiltin.c: Likewise.
5455 * c-dump.c: Likewise.
5456 * c-format.c: Likewise.
5457 * c-format.h : Likewise.
5458 * c-gimplify.c: Likewise.
5459 * c-lex.c: Likewise.
5460 * c-omp.c: Likewise.
5461 * c.opt: Likewise.
5462 * c-opts.c: Likewise.
5463 * c-pch.c: Likewise.
5464 * c-ppoutput.c: Likewise.
5465 * c-pragma.c: Likewise.
5466 * c-pragma.h: Likewise.
5467 * c-pretty-print.c: Likewise.
5468 * c-pretty-print.h: Likewise.
5469 * c-semantics.c: Likewise.
5470 * stub-objc.c: Likewise.
5471
5472 * c-common.c: Include gt-c-family-c-common.h.
5473 * c-pragma.c: Include gt-c-family-c-pragma.h.
5474\f
5624e564 5475Copyright (C) 2010-2015 Free Software Foundation, Inc.
39dabefd
SB
5476
5477Copying and distribution of this file, with or without modification,
5478are permitted in any medium without royalty provided the copyright
5479notice and this notice are preserved.
This page took 1.986929 seconds and 5 git commands to generate.