]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
fe37c7af
MM
12016-04-18 Michael Matz <matz@suse.de>
2
3 * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
4 and SET_DECL_ALIGN.
5
23f2660f
EB
62016-04-17 Eric Botcazou <ebotcazou@adacore.com>
7
8 * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
9 (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
10 to incomplete types.
11 (dump_nested_type): Remove redundant tests and tidy up.
12 (print_ada_declaration): Also set TREE_VISITED on the declaration of
13 a type which is the typedef of an original type.
14
1e77281b
MP
152016-04-15 Marek Polacek <polacek@redhat.com>
16
17 PR c/70651
18 * c-common.c (build_va_arg): Change two asserts into errors and return
19 error_mark_node.
20
b3a77f21
MP
212016-04-13 Marek Polacek <polacek@redhat.com>
22
23 PR c++/70639
24 * c-indentation.c (should_warn_for_misleading_indentation): Bail out
25 for switch statements, too.
26
322b8466
JM
272016-03-28 Jason Merrill <jason@redhat.com>
28
29 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
30
fbdb6baf
MP
312016-03-23 Marek Polacek <polacek@redhat.com>
32
33 PR c++/69884
34 * c.opt (Wignored-attributes): New option.
35
5c240f4d
DM
362016-03-22 David Malcolm <dmalcolm@redhat.com>
37
38 PR c/69993
39 * c-indentation.c (warn_for_misleading_indentation): Rewrite the
40 diagnostic text, reversing the order of the warning and note so
41 that they appear in source order.
42
14ba7b28
MP
432016-03-17 Marek Polacek <polacek@redhat.com>
44
45 PR c/69407
46 * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
47 operations.
48
08a1cadc
JM
492016-03-14 Jason Merrill <jason@redhat.com>
50
2aaeea19
JM
51 * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
52
08a1cadc
JM
53 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
54
c06d25bb
RB
552016-03-09 Richard Biener <rguenther@suse.de>
56
57 PR c/70143
58 * c-common.c (strict_aliasing_warning): Add back
59 alias_sets_conflict_p check.
60
80aac5c8
JM
612016-03-08 Jason Merrill <jason@redhat.com>
62
63 * c-opts.c (set_std_cxx1z): Don't enable concepts.
64
64b23c13
DM
652016-03-04 David Malcolm <dmalcolm@redhat.com>
66
67 PR c/68187
68 * c-indentation.c (get_visual_column): Move code to determine next
69 tab stop to...
70 (next_tab_stop): ...this new function.
71 (line_contains_hash_if): Delete function.
72 (detect_preprocessor_logic): Delete function.
73 (get_first_nws_vis_column): New function.
74 (detect_intervening_unindent): New function.
75 (should_warn_for_misleading_indentation): Replace call to
76 detect_preprocessor_logic with a call to
77 detect_intervening_unindent.
78
729526f5
DM
792016-03-04 David Malcolm <dmalcolm@redhat.com>
80
81 PR c/68187
82 * c-indentation.c (should_warn_for_misleading_indentation): When
83 suppressing warnings about cases where the guard and body are on
84 the same column, only use the first non-whitespace column in place
85 of the guard token column when dealing with "else" clauses.
86 When rejecting aligned BODY and NEXT, loosen the requirement
87 from equality with the first non-whitespace of guard to simply
88 that they not be indented relative to it.
89
e9a35493
RB
902016-03-04 Richard Biener <rguenther@suse.de>
91
92 PR c++/70054
93 * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
94 instead of alias_sets_conflict_p.
95
1be56bc5
MP
962016-03-01 Marek Polacek <polacek@redhat.com>
97
98 PR c++/69795
99 * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
100 any DECL.
101
35886f0b
MS
1022016-02-22 Martin Sebor <msebor@redhat.com>
103
104 PR middle-end/69780
105 * c-common.c (check_builtin_function_arguments): Validate and
106 reject invalid arguments to __builtin_alloca_with_align.
107
4246c8da
MW
1082016-02-20 Mark Wielaard <mjw@redhat.com>
109
110 PR c/28901
111 * c.opt (Wunused-const-variable): Turn into Alias for...
112 (Wunused-const-variable=): New option.
113
268be88c
BE
1142016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
115
116 PR c++/69865
117 * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
118 here...
119 (c_common_init_options): ...to here.
120 (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
121
871b3f47
JJ
1222016-02-19 Jakub Jelinek <jakub@redhat.com>
123
124 PR c++/69826
125 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
126 (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
127 flag_preprocess_only.
128
bf14eba2
JJ
1292016-02-16 Jakub Jelinek <jakub@redhat.com>
130
131 PR c/69835
132 * c.opt (Wnonnull-compare): Enable for -Wall.
133
ba6b3795
JJ
1342016-02-15 Jakub Jelinek <jakub@redhat.com>
135
136 PR c++/69797
137 * c-common.c (sync_resolve_size): Diagnose too few arguments
138 even when params is non-NULL empty vector.
139
a011cd92
BS
1402016-02-08 Bernd Schmidt <bschmidt@redhat.com>
141
142 PR target/60410
143 * c.opt (fshort-double): Remove.
144
46cb9332
MS
1452016-02-05 Martin Sebor <msebor@redhat.com>
146
147 PR c++/69662
148 * c.opt (Warning options): Update -Wplacement-new to take
149 an optional argument.
150
e1b81f2b
JJ
1512016-02-01 Jakub Jelinek <jakub@redhat.com>
152
153 PR preprocessor/69543
154 PR c/69558
155 * c-pragma.c (handle_pragma_diagnostic): Pass input_location
156 instead of loc to control_warning_option.
157
b6adbb9f
NS
1582016-02-01 Nathan Sidwell <nathan@codesourcery.com>
159
160 * c.opt (fopenacc-dim=): New option.
161
5d70666e
RB
1622016-01-27 Ryan Burn <contact@rnburn.com>
163
164 PR cilkplus/69267
165 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
166 gimplify_arg. Removed superfluous post_p argument.
167 * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
168 superfluous post_p argument.
169 * c-gimplify.c (c_gimplify_expr): Likewise.
170
01e1dea3
DM
1712016-01-26 David Malcolm <dmalcolm@redhat.com>
172
173 PR other/69006
174 * c-opts.c (c_diagnostic_finalizer): Replace invocation of
175 pp_newline_and_flush with pp_flush.
176
9f04a53e
MS
1772016-01-20 Martin Sebor <msebor@redhat.com>
178
179 PR c/69405
180 * c-common.c (sync_resolve_size): Avoid printing diagnostic about
181 an incompatible argument when the argument isn't a valid tree node.
182
7f26f7df
JM
1832016-01-18 Jason Merrill <jason@redhat.com>
184
185 PR c++/68767
186 * c-common.c (check_function_arguments_recurse): Fold the whole
187 COND_EXPR, not just the condition.
188
f62bf092
TV
1892016-01-18 Tom de Vries <tom@codesourcery.com>
190
191 * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
192 classify as loop clause.
193
e0a575ff
JJ
1942016-01-15 Jakub Jelinek <jakub@redhat.com>
195
196 PR bootstrap/68271
197 * c-pragma.c (c_register_pragma_1): Adjust comment to note that
198 C++ FE no longer has limit on number of pragmas.
199
2002015-01-14 Ryan Burn <contact@rnburn.com>
b6e3db06
RB
201
202 PR c++/69048
203 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
c47eaca6 204 to add missing cleanup point.
b6e3db06 205
c7df95d8
DM
2062016-01-14 David Malcolm <dmalcolm@redhat.com>
207
208 PR c++/68819
209 * c-indentation.c (get_visual_column): Add location_t param.
210 Handle the column number being zero by effectively disabling the
211 warning, with an "inform".
212 (should_warn_for_misleading_indentation): Add location_t argument
213 for all uses of get_visual_column.
214
21efdd80
PP
2152016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
216
217 PR c++/69029
218 * c-indentation.c (should_warn_for_misleading_indentation):
219 Don't warn about do-while statements.
220
7a127fa7
MS
2212016-01-07 Martin Sebor <msebor@redhat.com>
222
223 PR c/68966
224 * c-common.c (sync_resolve_size): Reject first argument when it's
225 a pointer to _Bool.
226
c589e975
DM
2272016-01-05 David Malcolm <dmalcolm@redhat.com>
228
229 PR c/69122
230 * c-indentation.c (get_visual_column): Remove default argument.
231 (should_warn_for_misleading_indentation): For the multiline case,
232 update call to get_visual_column for next_stmt_exploc so that it
233 captures the location of the first non-whitespace character in the
234 relevant line. Don't issue warnings if there is non-whitespace
235 before the next statement.
236
818ab71a
JJ
2372016-01-04 Jakub Jelinek <jakub@redhat.com>
238
239 Update copyright years.
240
745e411d
DM
2412015-12-21 David Malcolm <dmalcolm@redhat.com>
242
243 * c-common.c (binary_op_error): Convert first param from
244 location_t to rich_location * and use it when emitting an error.
245 * c-common.h (binary_op_error): Convert first param from
246 location_t to rich_location *.
247
de67c4c3
DM
2482015-12-16 David Malcolm <dmalcolm@redhat.com>
249
250 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
251 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
252
4a38b02b
IV
2532015-12-15 Ilya Verbin <ilya.verbin@intel.com>
254
255 * c-common.c (c_common_attribute_table): Handle "omp declare target
256 link" attribute.
257
54d62f51
JJ
2582015-12-14 Jakub Jelinek <jakub@redhat.com>
259
260 PR c/68833
261 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
262
8d4227c8
TB
2632014-12-12 Tobias Burnus <burnus@net-b.de>
264
265 PR fortran/68815
266 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
267 specifiers (%d, %i,%u and %c).
268
f6069ccc
DM
2692015-12-10 David Malcolm <dmalcolm@redhat.com>
270
271 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
272
63bbf46d
JJ
2732015-12-08 Jakub Jelinek <jakub@redhat.com>
274
275 PR c/48088
276 PR c/68657
277 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
278 * c-pragma.c (handle_pragma_diagnostic): Adjust
279 control_warning_option caller.
280
f79520bb
DM
2812015-12-07 David Malcolm <dmalcolm@redhat.com>
282
283 * c-common.c (c_cpp_error): Update for change to
284 rich_location::set_range.
285
b3d5bc62
JJ
2862015-12-04 Paolo Bonzini <bonzini@gnu.org>
287
288 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
289 shifting 1 out of the sign bit.
290
2912015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
292
293 * c-common.c (c_common_attribute_table[]): Update max arguments
294 count for "simd" attribute.
295 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
296
6eb4a537
JJ
2972015-12-03 Jakub Jelinek <jakub@redhat.com>
298
299 PR preprocessor/57580
300 * c-ppoutput.c (print): Change printed field to bool.
301 Move src_file last for smaller padding.
302 (init_pp_output): Set print.printed to false instead of 0.
303 (scan_translation_unit): Fix up formatting. Set print.printed
304 to true after printing something other than newline.
305 (scan_translation_unit_trad): Set print.printed to true instead of 1.
306 (maybe_print_line_1): Set print.printed to false instead of 0.
307 (print_line_1): Likewise.
308 (do_line_change): Set print.printed to true instead of 1.
309 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
310 dump_macro): Set print.printed to false after printing newline.
311
4250754e
JM
3122015-12-02 Jason Merrill <jason@redhat.com>
313
f479b43d
JM
314 * c-common.c (fold_for_warn): New.
315 (warn_logical_operator, warn_tautological_cmp)
316 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
317
4250754e
JM
318 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
319 (c_fully_fold_internal, decl_constant_value_for_optimization):
320 Move to c/c-fold.c.
321 * c-common.h: Don't declare decl_constant_value_for_optimization.
322
e9e32ee6
JM
3232015-12-02 Joseph Myers <joseph@codesourcery.com>
324
325 PR c/68162
326 * c-common.h (c_build_qualified_type): Add extra default
327 arguments.
328
37d5ad46
JB
3292015-12-01 Julian Brown <julian@codesourcery.com>
330 Cesar Philippidis <cesar@codesourcery.com>
331 James Norris <James_Norris@mentor.com>
332
333 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
334 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
335 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
336
f07862c7
EB
3372015-11-30 Eric Botcazou <ebotcazou@adacore.com>
338
339 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
340 (decl_sloc_common): Delete and move bulk of processing to...
341 (decl_sloc): ...here.
342 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
343 (dump_ada_double_name): Remove S parameter and compute the suffix.
344 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
345 element type and deal with an anonymous one.
346 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
347 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
348 and remove reference to QUAL_UNION_TYPE.
349 (dump_nested_types): Make 2 passes on the fields and move bulk to...
350 (dump_nested_type): ...here. New function extracted from above.
351 Generate a full declaration for anonymous element type of arrays.
352 (print_ada_declaration): Really skip anonymous declarations. Remove
353 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
354 Clean up processing of declarations of array types and objects.
355 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
356 Remove obsolete code and tidy up.
357
75c8aac3
JH
3582015-11-29 Jan Hubicka <hubicka@ucw.cz>
359
360 PR c/67581
361 * c-common.c (handle_transparent_union_attribute): Update
362 also type variants.
363
b58d3df2
ML
3642015-11-27 Martin Liska <mliska@suse.cz>
365
366 PR c++/68312
367 * array-notation-common.c (cilkplus_extract_an_triplets):
368 Release vector of vectors.
369 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
370
89a01fcf
EB
3712015-11-26 Eric Botcazou <ebotcazou@adacore.com>
372
373 PR c++/68527
374 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
375 (print_ada_struct_decl): Likewise.
376
cc5c5226
IZ
3772015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
378
379 PR c++/68001
380 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
381 * cilk.c (recognize_spawn): Determine location in a more precise
382 way.
383
269adb9d
JM
3842015-11-19 Jason Merrill <jason@redhat.com>
385
386 * c-common.c (shorten_compare): But look through macros from
387 system headers.
388
d0eccfcd
JM
3892015-11-18 Jason Merrill <jason@redhat.com>
390
391 * c-common.c (shorten_compare): Don't -Wtype-limits if the
392 non-constant operand comes from a macro.
393
3e44547c
JM
3942015-11-17 Jason Merrill <jason@redhat.com>
395
396 PR bootstrap/68346
397 * c-common.c (warn_tautological_cmp): Fold before checking for
398 constants.
399
0f62c7a0
MP
4002015-11-16 Marek Polacek <polacek@redhat.com>
401
402 PR c++/68362
403 * c-common.c (check_case_bounds): Fold low and high cases.
404
a868811e
MP
4052015-11-16 Marek Polacek <polacek@redhat.com>
406
407 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
408 * c-common.c (c_common_get_alias_set): Likewise.
409 (handle_visibility_attribute): Likewise.
410
fff77217
KY
4112015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
412
413 * c-common.c (handle_simd_attribute): New.
414 (struct attribute_spec): Add entry for "simd".
415 (handle_simd_attribute): New.
416
269e63b7
KT
4172015-11-13 Kai Tietz <ktietz70@googlemail.com>
418
419 * c-lex.c (interpret_float): Use fold_convert.
420
ebedc9a3
DM
4212015-11-13 David Malcolm <dmalcolm@redhat.com>
422
423 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
424 and store it on the result.
425 * c-opts.c (c_common_init_options): Set
426 global_dc->colorize_source_p.
427
6e232ba4
JN
4282015-11-12 James Norris <jnorris@codesourcery.com>
429 Joseph Myers <joseph@codesourcery.com>
430
431 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
432 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
433 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
434 PRAGMA_OACC_CLAUSE_LINK.
435
e78bede6
MP
4362015-11-11 Marek Polacek <polacek@redhat.com>
437
438 PR c/68107
439 PR c++/68266
440 * c-common.c (valid_array_size_p): New function.
441 * c-common.h (valid_array_size_p): Declare.
442
4ac93c7c
DH
4432015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
444
445 PR bootstrap/68271
446 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
447
69f293c9
AM
4482015-11-11 Andrew MacLeod <amacleod@redhat.com>
449
450 * array-notation-common.c: Remove unused header files.
451 * c-ada-spec.c: Likewise.
452 * c-cilkplus.c: Likewise.
453 * c-common.c: Likewise.
454 * c-cppbuiltin.c: Likewise.
455 * c-dump.c: Likewise.
456 * c-format.c: Likewise.
457 * c-gimplify.c: Likewise.
458 * c-indentation.c: Likewise.
459 * c-lex.c: Likewise.
460 * c-omp.c: Likewise.
461 * c-opts.c: Likewise.
462 * c-pch.c: Likewise.
463 * c-ppoutput.c: Likewise.
464 * c-pragma.c: Likewise.
465 * c-pretty-print.c: Likewise.
466 * c-semantics.c: Likewise.
467 * c-ubsan.c: Likewise.
468 * cilk.c: Likewise.
469 * stub-objc.c: Likewise.
470
3a40d81d
NS
4712015-11-09 Thomas Schwinge <thomas@codesourcery.com>
472 Cesar Philippidis <cesar@codesourcery.com>
473 James Norris <jnorris@codesourcery.com>
474 Julian Brown <julian@codesourcery.com>
475 Nathan Sidwell <nathan@codesourcery.com>
476
477 * c-pragma.c (oacc_pragmas): Add "routine".
478 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
479
ee45a32d
EB
4802015-11-08 Eric Botcazou <ebotcazou@adacore.com>
481
482 * c-common.c (c_common_attributes): Add scalar_storage_order.
483 (handle_scalar_storage_order_attribute): New function.
484 * c-pragma.c (global_sso): New variable.
485 (maybe_apply_pragma_scalar_storage_order): New function.
486 (handle_pragma_scalar_storage_order): Likewise.
487 (init_pragma): Register scalar_storage_order.
488 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
489 * c.opt (Wscalar-storage-order): New warning.
490 (fsso-struct=): New option.
491
eb11eb15
MS
4922015-11-08 Martin Sebor <msebor@redhat.com>
493
494 * c.opt (Wplacement-new): Add a period to the end of a sentence.
495
0aad0198
RS
4962015-11-07 Richard Sandiford <richard.sandiford@arm.com>
497
498 * c-common.c: Don't undef DEF_BUILTIN.
499
8a645150
DM
5002015-11-06 David Malcolm <dmalcolm@redhat.com>
501
502 * c-common.c (c_cpp_error): Convert parameter from location_t to
503 rich_location *. Eliminate the "column_override" parameter and
504 the call to diagnostic_override_column.
505 Update the "done_lexing" clause to set range 0
506 on the rich_location, rather than overwriting a location_t.
507 * c-common.h (c_cpp_error): Convert parameter from location_t to
508 rich_location *. Eliminate the "column_override" parameter.
509
7a5e4956
CP
5102015-11-05 Cesar Philippidis <cesar@codesourcery.com>
511 Thomas Schwinge <thomas@codesourcery.com>
512 James Norris <jnorris@codesourcery.com>
513
514 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
515 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
516 clauses with parallel and kernels and loops.
517 * c-pragma.h (enum pragma_omp_clause): Add entries for
518 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
519 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
520 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
521 INDEPENDENT,SEQ}.
522 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
523
e2f5cc96
MS
5242015-11-05 Martin Sebor <msebor@redhat.com>
525
526 PR c++/67942
527 * c.opt (-Wplacement-new): New option.
528
e01d41e5
JJ
5292015-11-05 Jakub Jelinek <jakub@redhat.com>
530
531 * c-common.h (c_finish_omp_atomic): Add TEST argument.
532 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
533 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
534 save_expr or create_tmp_var* if TEST is true.
535 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
536 Don't call add_stmt here.
537 (struct c_omp_check_loop_iv_data): New type.
538 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
539 c_omp_check_loop_iv_exprs): New functions.
540 (c_omp_split_clauses): Adjust for lastprivate being allowed on
541 distribute.
542 (c_omp_declare_simd_clauses_to_numbers): Change
543 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
544 (c_omp_declare_simd_clauses_to_decls): Similarly change those
545 from numbers to PARM_DECLs.
546
595278be
MM
5472015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
548
549 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
550 flag_checking.
551
c85158de
MS
5522015-11-03 Bernd Schmidt <bschmidt@redhat.com>
553
554 PR c++-common/67882
b3d5bc62
JJ
555 * c-common.h (fold_offsetof_1): Add argument.
556 * c-common.c (fold_offsetof_1): Diagnose more invalid
c85158de
MS
557 offsetof expressions that reference elements past the end of
558 an array.
559
4bf9e5a8
TS
5602015-11-03 Thomas Schwinge <thomas@codesourcery.com>
561 Chung-Lin Tang <cltang@codesourcery.com>
562
563 * c-pragma.c (oacc_pragmas): Add "atomic".
564 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
565
3b1661a9
ES
5662015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
567
568 * c-common.c (handle_target_clones_attribute): New.
569 (c_common_attribute_table): Add handle_target_clones_attribute.
570 (handle_always_inline_attribute): Add check on target_clones attribute.
571 (handle_target_attribute): Ditto.
572
2adfab87
AM
5732015-10-29 Andrew MacLeod <amacleod@redhat.com>
574
575 * array-notation-common.c: Reorder #include's and remove duplicates.
576 * c-ada-spec.c: Likewise.
577 * c-cilkplus.c: Likewise.
578 * c-common.c: Likewise.
579 * c-cppbuiltin.c: Likewise.
580 * c-dump.c: Likewise.
581 * c-format.c: Likewise.
582 * c-gimplify.c: Likewise.
583 * c-indentation.c: Likewise.
584 * c-lex.c: Likewise.
585 * c-omp.c: Likewise.
586 * c-opts.c: Likewise.
587 * c-pch.c: Likewise.
588 * c-ppoutput.c: Likewise.
589 * c-pragma.c: Likewise.
590 * c-pretty-print.c: Likewise.
591 * c-semantics.c: Likewise.
592 * c-ubsan.c: Likewise.
593 * cilk.c: Likewise.
594 * stub-objc.c: Likewise.
595
d90ec4f2
JM
5962015-10-28 Jason Merrill <jason@redhat.com>
597
598 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
599
88bae6f4
TS
6002015-10-27 Thomas Schwinge <thomas@codesourcery.com>
601 James Norris <jnorris@codesourcery.com>
602 Cesar Philippidis <cesar@codesourcery.com>
603
604 PR c/64765
605 PR c/64880
606 * c-common.h (c_oacc_split_loop_clauses): Declare function.
607 * c-omp.c (c_oacc_split_loop_clauses): New function.
608
b1726d6c
MS
6092015-10-21 Martin Sebor <msebor@redhat.com>
610
611 PR driver/68043
612 * c.opt: End each sentence that describes an option with a period.
613
fa60eeb9
MP
6142015-10-20 Marek Polacek <polacek@redhat.com>
615
616 * array-notation-common.c (is_cilkplus_vector_p): Define.
617 * c-common.h (is_cilkplus_vector_p): Declare.
618
95979049
MP
6192015-10-20 Marek Polacek <polacek@redhat.com>
620
621 * c.opt (std=gnu++11): Do not describe as experimental.
622 (std=gnu++14): Likewise.
623
2a9fb712
JM
6242015-10-19 Jason Merrill <jason@redhat.com>
625
626 * c-cppbuiltin.c (c_cpp_builtins): Define
627 __cpp_nontype_template_args.
628
13b380a3
JM
6292015-10-19 Jason Merrill <jason@redhat.com>
630
631 * c-cppbuiltin.c (c_cpp_builtins): Define
632 __cpp_enumerator_attributes, __cpp_fold_expressions,
633 __cpp_unicode_characters.
634
d9a6bd32
JJ
6352015-10-13 Jakub Jelinek <jakub@redhat.com>
636 Aldy Hernandez <aldyh@redhat.com>
637
638 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
639 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
640 (c_define_builtins): Likewise.
641 * c-common.h (enum c_omp_clause_split): Add
642 C_OMP_CLAUSE_SPLIT_TASKLOOP.
643 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
644 (c_finish_omp_for): Add ORIG_DECLV argument.
645 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
646 201511 instead of 201307.
647 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
648 OMP_CRITICAL_CLAUSES to it.
649 (c_finish_omp_ordered): Add CLAUSES argument, set
650 OMP_ORDERED_CLAUSES to it.
651 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
652 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
653 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
654 constructs and new OpenMP 4.5 clauses. Clear
655 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
656 verification code.
657 * c-pragma.c (omp_pragmas_simd): Add taskloop.
658 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
659 (enum pragma_omp_clause): Add
660 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
661 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
662
624d31fe
RS
6632015-10-05 Richard Sandiford <richard.sandiford@arm.com>
664
665 * c-lex.c (interpret_float): Use real_equal instead of
666 REAL_VALUES_EQUAL.
667
b8fd7909
JM
6682015-10-04 Jason Merrill <jason@redhat.com>
669
670 Implement N4514, C++ Extensions for Transactional Memory.
671 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
672 (c_common_attribute_table): Add transaction_safe_dynamic.
673 transaction_safe now affects type identity.
674 (handle_tm_attribute): Handle transaction_safe_dynamic.
675 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
676 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
677 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
678 (D_TRANSMEM): New.
679 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
680 * c-pretty-print.c (pp_c_attributes_display): Don't print
681 transaction_safe in C++.
682
12651878
MP
6832015-10-02 Marek Polacek <polacek@redhat.com>
684
685 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
686
3e3b8d63
MP
6872015-10-02 Marek Polacek <polacek@redhat.com>
688
689 PR c/64249
690 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
691 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
692 * c.opt (Wduplicated-cond): New option.
693
0d1a8f75
JM
6942015-10-01 Joseph Myers <joseph@codesourcery.com>
695
696 * c.opt (std=c11): Do not describe as experimental.
697 (std=gnu11): Likewise.
698 (std=iso9899:2011): Likewise.
699
3e32ee19
NS
7002015-09-28 Nathan Sidwell <nathan@codesourcery.com>
701
702 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
703 (DEF_FUNCTION_TYPE_VAR_11): Delete.
704
974348ee
MP
7052015-09-25 Marek Polacek <polacek@redhat.com>
706
707 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
708 (ubsan_instrument_shift): Likewise.
709
15dbc1a6
MP
7102015-09-25 Marek Polacek <polacek@redhat.com>
711
712 PR sanitizer/64906
713 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
714
6b95d7cc
PP
7152015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
716
717 * c-indentation.c (should_warn_for_misleading_indentation):
718 Compare next_stmt_vis_column with guard_line_first_nws instead
719 of with guard_line_vis_column.
720
c1822f9c
MLI
7212015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
722
723 PR c/49654
724 PR c/49655
725 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
726 options and options not valid for the current language.
727
d5398058
PP
7282015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
729
730 * c-indentation.c (should_warn_for_misleading_indentation):
731 Float out and consolidate the calls to get_visual_column that
732 are passed guard_exploc as an argument. Compare
733 next_stmt_vis_column with guard_line_first_nws instead of with
734 body_line_first_nws.
735
6b333269
NS
7362015-09-22 Nathan Sidwell <nathan@codesourcery.com>
737
738 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
739 Wnamespaces): New C++ warnings.
740
a75f1574
JM
7412015-09-22 Jason Merrill <jason@redhat.com>
742
743 * c-common.h (abi_compat_version_crosses): New.
744 (warn_abi_version): Declare.
745 * c-common.c: Define it.
746 * c-opts.c (c_common_post_options): Handle it.
747 flag_abi_compat_version defaults to 8.
748
bdaaa8b7
VV
7492015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
750
751 Complete the implementation of N4230, Nested namespace definition.
752 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
753 __cpp_nested_namespace_definitions.
754
eaa797e8
MLI
7552015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
756
757 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
758
c4914de6
MLI
7592015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
760
761 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
762 when warning.
763 * c-pragma.h (pragma_lex): Add optional loc argument.
764
fcb87c50
MM
7652015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
766
767 * c-format.c (check_format_arg): Adjust to use common block size in all
768 object pools.
769
31bdd08a
DM
7702015-09-15 David Malcolm <dmalcolm@redhat.com>
771
772 * c-format.c (location_from_offset): Update for change in
773 signature of location_get_source_line.
774 * c-indentation.c (get_visual_column): Likewise.
775 (line_contains_hash_if): Likewise.
776
aa9f4b4c
MP
7772015-09-14 Marek Polacek <polacek@redhat.com>
778
779 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
780 setting various warnings.
781
aa256c4a
MP
7822015-09-14 Marek Polacek <polacek@redhat.com>
783
784 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
785 a negative value.
786
0f876f22
MW
7872015-09-11 Mark Wielaard <mjw@redhat.com>
788
789 PR c/28901
790 * c.opt (Wunused-variable): Option from common.opt.
791 (Wunused-const-variable): New option.
792
273aa49e
PC
7932015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
794
795 PR c++/53184
796 * c.opt ([Wsubobject-linkage]): Add.
797
1807ffc1
MS
7982015-09-03 Martin Sebor <msebor@redhat.com>
799
800 PR c/66516
801 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
802 functions.
803 * c-common.c (reject_gcc_builtin): Define.
804
38942840
BI
8052015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
806
807 PR middle-end/60586
808 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
809 prototype.
810 * c-gimplify.c (c_gimplify_expr): Added a call to the function
811 cilk_gimplify_call_params_in_spawned_fn.
812 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
813 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
814 unwrapping.
815
c316b5e4
MP
8162015-08-25 Marek Polacek <polacek@redhat.com>
817
818 PR middle-end/67330
819 * c-common.c (handle_weak_attribute): Don't check whether the
820 visibility can be changed here.
821
584a7c46
MLI
8222015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
823
824 * c-lex.c (c_lex_with_flags): Use explicit locations.
825
a79683d5
TS
8262015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
827
828 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
829 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
830
61717a45
FXC
8312015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
832
833 PR middle-end/36757
834 * c-common.c (check_builtin_function_arguments): Add check
835 for BUILT_IN_SIGNBIT argument.
836
329524f5
PC
8372015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
838
839 PR c++/67160
840 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
841 in c++1z mode.
842
4ee55665
MP
8432015-08-17 Marek Polacek <polacek@redhat.com>
844
845 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
846 with whitespaces before qualifier names.
847
b893e375
MP
8482015-08-12 Marek Polacek <polacek@redhat.com>
849
850 PR c++/55095
851 * c-common.c (maybe_warn_shift_overflow): Properly handle
852 left-shifting 1 into the sign bit.
853
c2d89095
MLI
8542015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
855
856 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
857
971e17ff
AS
8582015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
859 Braden Obrzut <admin@maniacsvault.net>
860 Jason Merrill <jason@redhat.com>
861
862 Add C++ Concepts TS support.
863 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
864 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
865 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
866 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
867 * c-opts.c (set_std_cxx1z): Set flag_concepts.
868 * c.opt (fconcepts): New.
869
b3d5bc62
JJ
8702015-08-02 Martin Sebor <msebor@redhat.com>
871
872 * c.opt (-Wframe-address): New warning option.
873
8ebca419
PP
8742015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
875
876 * c-indentation.c (should_warn_for_misleading_indentation):
877 Improve heuristics.
878
1a1e101f
PP
8792015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
880
881 * c-indentation.c (get_visual_column): Add parameter first_nws,
882 use it. Update comment documenting the function.
883 (is_first_nonwhitespace_on_line): Remove.
884 (should_warn_for_misleading_indentation): Replace usage of
885 of is_first_nonwhitespace_on_line with get_visual_column.
886
992118a1
PP
8872015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
888
889 * c-indentation.h (struct token_indent_info): Define.
890 (get_token_indent_info): Define.
891 (warn_for_misleading_information): Declare.
892 * c-common.h (warn_for_misleading_information): Remove.
893 * c-identation.c (warn_for_misleading_indentation):
894 Change declaration to take three token_indent_infos. Adjust
895 accordingly.
896 * c-identation.c (should_warn_for_misleading_indentation):
897 Likewise. Bail out early if the body is a compound statement.
898 (guard_tinfo_to_string): Define.
899
e8fa3817
JM
9002015-07-30 Jason Merrill <jason@redhat.com>
901
902 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
903 '*' for reference decay.
904
173864e8
MP
9052015-07-30 Marek Polacek <polacek@redhat.com>
906
907 * c-common.c (warn_tautological_cmp): Bail for float types.
908
f2afe6dd
MP
9092015-07-27 Marek Polacek <polacek@redhat.com>
910
911 PR bootstrap/67030
912 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
913
05b28fd6
MP
9142015-07-27 Marek Polacek <polacek@redhat.com>
915
916 PR c++/66555
917 PR c/54979
918 * c-common.c (find_array_ref_with_const_idx_r): New function.
919 (warn_tautological_cmp): New function.
920 * c-common.h (warn_tautological_cmp): Declare.
921 * c.opt (Wtautological-compare): New option.
922
5a5062b8
MP
9232015-07-23 Marek Polacek <polacek@redhat.com>
924
925 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
926 (ubsan_instrument_shift): Likewise.
927
dc891fe7
MP
9282015-07-23 Marek Polacek <polacek@redhat.com>
929
930 PR sanitizer/66908
931 * c-ubsan.c: Include gimplify.h.
932 (ubsan_instrument_division): Unshare OP0 and OP1.
933 (ubsan_instrument_shift): Likewise.
934
451b5e48
MP
9352015-07-20 Marek Polacek <polacek@redhat.com>
936 Richard Sandiford <richard.sandiford@arm.com>
937
938 PR c++/55095
939 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
940 Use EXPR_LOC_OR_LOC.
941 (maybe_warn_shift_overflow): New function.
942 * c-common.h (maybe_warn_shift_overflow): Declare.
943 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
944 * c.opt (Wshift-overflow): New option.
945
fb0b2914
ML
9462015-07-16 Martin Liska <mliska@suse.cz>
947
948 * c-format.c (static void check_format_info_main): Use
949 object_allocator instead of pool_allocator.
950 (check_format_arg): Likewise.
951 (check_format_info_main): Likewise.
952
903f5c23
AM
9532015-07-15 Andrew MacLeod <amacleod@redhat.com>
954
955 * c-opts.c: Remove multiline #include comment.
956
026c3cfd
AH
9572015-07-12 Aldy Hernandez <aldyh@redhat.com>
958
959 * c-common.c: Fix double word typos.
960
bb49ee66
EB
9612015-07-10 Eric Botcazou <ebotcazou@adacore.com>
962
963 * c-ada-spec.h (cpp_operation): Revert latest change.
964 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
965 constructors and destructors.
966
1916bcb5
AM
9672015-07-09 Andrew MacLeod <amacleod@redhat.com>
968
969 * c-common.h: Adjust includes for flags.h changes.
970 * stub-objc.c: Likewise.
026c3cfd 971
a9dcd529
EB
9722015-07-08 Eric Botcazou <ebotcazou@adacore.com>
973
974 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
975 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
976
b03b462f
JJ
9772015-07-08 Jakub Jelinek <jakub@redhat.com>
978
979 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
980 are to be removed, return NULL rather than original clauses list.
981
c7131fb2
AM
9822015-07-07 Andrew MacLeod <amacleod@redhat.com>
983
984 * array-notation-common.c: Adjust includes.
985 * c-ada-spec.c: Likewise.
986 * c-cilkplus.c: Likewise.
987 * c-common.h: Likewise.
988 * c-cppbuiltin.c: Likewise.
989 * c-dump.c: Likewise.
990 * c-format.c: Likewise.
991 * c-gimplify.c: Likewise.
992 * c-indentation.c: Likewise.
993 * c-lex.c: Likewise.
994 * c-omp.c: Likewise.
995 * c-opts.c: Likewise.
996 * c-pch.c: Likewise.
997 * c-ppoutput.c: Likewise.
998 * c-pragma.c: Likewise.
999 * c-pretty-print.c: Likewise.
1000 * c-semantics.c: Likewise.
1001 * c-ubsan.c: Likewise.
1002 * cilk.c: Likewise.
1003 * stub-objc.c: Likewise.
1004
2a7fb83f
EB
10052015-07-07 Eric Botcazou <ebotcazou@adacore.com>
1006
1007 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
1008 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
1009
a03c9bf1
JM
10102015-07-01 Jason Merrill <jason@redhat.com>
1011
36a85135
JM
1012 * c-common.h (D_CXX11): Rename from D_CXX0X.
1013 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
1014 * c-common.c: Adjust.
1015
e7fa68d5
JM
1016 * c-opts.c (c_common_post_options): Default to C++14.
1017
a03c9bf1
JM
1018 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
1019
fe95b036
ESR
10202015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
1021
1022 Implement N4197 - Adding u8 character literals
b3d5bc62 1023 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
a64be36b 1024 CPP_CHAR.
b3d5bc62 1025 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
a64be36b 1026 CPP_UTF8CHAR_USERDEF tokens.
b3d5bc62 1027 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
a64be36b
EB
1028 and CPP_UTF8CHAR tokens.
1029 (lex_charconst): Treat CPP_UTF8CHAR token.
fe95b036 1030
da2e71c9
MLI
10312015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1032
1033 PR fortran/66605
1034 * c-common.c (do_warn_unused_parameter): Move here.
1035 * c-common.h (do_warn_unused_parameter): Declare.
1036
b155cfd9
MP
10372015-06-29 Marek Polacek <polacek@redhat.com>
1038
1039 PR c/66322
1040 * c-common.c (check_case_bounds): Add bool * parameter. Set
1041 OUTSIDE_RANGE_P.
1042 (c_add_case_label): Add bool * parameter. Pass it down to
1043 check_case_bounds.
1044 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
1045 warning here.
1046 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
1047 declarations.
1048
31521951
MP
10492015-06-27 Marek Polacek <polacek@redhat.com>
1050
1051 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
1052 or VECTOR_INTEGER_TYPE_P throughout.
1053 * c-gimplify.c: Likewise.
1054
22d03525
MP
10552015-06-26 Marek Polacek <polacek@redhat.com>
1056
1057 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
1058 * c-common.c (c_fully_fold_internal): Likewise.
1059 (c_alignof_expr): Likewise.
1060 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
1061 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
b1726d6c 1062 * cilk.c (create_parm_list): Likewise.
22d03525 1063
af05e6e5
MP
10642015-06-26 Marek Polacek <polacek@redhat.com>
1065
1066 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
1067
f0889939
AM
10682015-06-25 Andrew MacLeod <amacleod@redhat.com>
1069
1070 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
1071 * c-gimplify.c: Likewise.
1072 * c-pragma.c: Likewise.
1073 * c-ubsan.c: Likewise.
1074 * cilk.c: Likewise.
1075
ca752f39
RS
10762015-06-25 Richard Sandiford <richard.sandiford@arm.com>
1077
1078 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
1079 ggc_hasher.
1080
16a16ec7
AM
10812015-06-25 Andrew MacLeod <amacleod@redhat.com>
1082
1083 * cilk.c: Move calls.h after tm.h in the include chain.
1084
0ae9bd27
MP
10852015-06-25 Marek Polacek <polacek@redhat.com>
1086
1087 * array-notation-common.c: Use VAR_P throughout.
1088 * c-ada-spec.c: Likewise.
1089 * c-common.c: Likewise.
1090 * c-format.c: Likewise.
1091 * c-gimplify.c: Likewise.
1092 * c-omp.c: Likewise.
1093 * c-pragma.c: Likewise.
1094 * c-pretty-print.c: Likewise.
1095 * cilk.c: Likewise.
1096
62f9079a
MP
10972015-06-25 Marek Polacek <polacek@redhat.com>
1098
1099 * cilk.c (extract_free_variables): Use is_global_var.
1100
0fa16060
RS
11012015-06-23 Richard Sandiford <richard.sandiford@arm.com>
1102
1103 * c-common.c: Don't include target-def.h.
1104
a68ae2e1
MP
11052015-06-23 Marek Polacek <polacek@redhat.com>
1106
1107 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
1108 when comparing INTEGER_CSTs.
1109
c6a2f2d9
PMR
11102015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
1111
1112 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
1113 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
1114 (dump_ada_template): Skip partially specialized types.
1115
6b4db501
MM
11162015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
1117
1118 * c-common.c (scalar_to_vector): Use std::swap instead of manually
1119 swapping.
1120
abb226c9
AM
11212015-06-17 Andrew MacLeod <amacleod@redhat.com>
1122
1123 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
1124 * c-ada-spec.c: Likewise.
1125 * c-cilkplus.c: Likewise.
1126 * c-common.c: Likewise.
1127 * c-common.h: Likewise.
1128 * c-cppbuiltin.c: Likewise.
1129 * c-dump.c: Likewise.
1130 * c-format.c: Likewise.
1131 * c-gimplify.c: Likewise.
1132 * c-indentation.c: Likewise.
1133 * c-lex.c: Likewise.
1134 * c-omp.c: Likewise.
1135 * c-opts.c: Likewise.
1136 * c-pch.c: Likewise.
1137 * c-ppoutput.c: Likewise.
1138 * c-pragma.c: Likewise.
1139 * c-pretty-print.c: Likewise.
1140 * c-semantics.c: Likewise.
1141 * c-ubsan.c: Likewise.
1142 * cilk.c: Likewise.
1143 * stub-objc.c: Likewise.
1144
076fecad
PP
11452015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
1146
1147 PR c++/65168
1148 * c-common.c (c_common_truthvalue_conversion): Warn when
1149 converting an address of a reference to a truth value.
1150
13fdf2e2
AM
11512015-06-08 Andrew MacLeod <amacleod@redhat.com>
1152
1153 * array-notation-common.c : Adjust include files.
1154 * c-ada-spec.c : Likewise.
1155 * c-cilkplus.c : Likewise.
1156 * c-common.c : Likewise.
1157 * c-common.h : Likewise.
1158 * c-cppbuiltin.c : Likewise.
1159 * c-dump.c : Likewise.
1160 * c-format.c : Likewise.
1161 * c-gimplify.c : Likewise.
1162 * c-indentation.c : Likewise.
1163 * c-lex.c : Likewise.
1164 * c-omp.c : Likewise.
1165 * c-opts.c : Likewise.
1166 * c-pch.c : Likewise.
1167 * c-ppoutput.c : Likewise.
1168 * c-pragma.c : Likewise.
1169 * c-pretty-print.c : Likewise.
1170 * c-semantics.c : Likewise.
1171 * c-ubsan.c : Likewise.
1172 * cilk.c : Likewise.
1173 * stub-objc.c : Likewise.
1174
a1661b90
MP
11752015-06-08 Marek Polacek <polacek@redhat.com>
1176
1177 PR c/66415
1178 * c-format.c (location_from_offset): Return LOC if LINE is null.
1179
d7438551
AH
11802015-06-05 Aldy Hernandez <aldyh@redhat.com>
1181
1182 * c-common.h (c_parse_final_cleanups): New prototype.
1183 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
1184
b3d5bc62
JJ
11852015-06-04 Sriraman Tallam <tmsriram@google.com>
1186
1187 * c-common.c (noplt): New attribute.
1188 (handle_noplt_attribute): New handler.
1189
ecb9f223
AM
11902015-06-04 Andrew MacLeod <amacleod@redhat.com>
1191
1192 * array-notation-common.c: Adjust includes for restructured coretypes.h.
1193 * c-ada-spec.c: Likewise.
1194 * c-cilkplus.c: Likewise.
1195 * c-common.c: Likewise.
1196 * c-common.h: Likewise.
1197 * c-cppbuiltin.c: Likewise.
1198 * c-dump.c: Likewise.
1199 * c-format.c: Likewise.
1200 * c-gimplify.c: Likewise.
1201 * c-indentation.c: Likewise.
1202 * c-lex.c: Likewise.
1203 * c-omp.c: Likewise.
1204 * c-opts.c: Likewise.
1205 * c-pch.c: Likewise.
1206 * c-ppoutput.c: Likewise.
1207 * c-pragma.c: Likewise.
1208 * c-pretty-print.c: Likewise.
1209 * c-semantics.c: Likewise.
1210 * c-ubsan.c: Likewise.
1211 * cilk.c: Likewise.
1212 * stub-objc.c: Likewise.
1213
6ac48155
DM
12142015-06-02 David Malcolm <dmalcolm@redhat.com>
1215
1216 PR c/66220:
1217 * c-indentation.c (should_warn_for_misleading_indentation): Use
1218 expand_location rather than expand_location_to_spelling_point.
1219 Don't warn if the guarding statement is more indented than the
1220 next/body stmts.
1221
773ce42e
DM
12222015-06-02 David Malcolm <dmalcolm@redhat.com>
1223
1224 * c-indentation.c (warn_for_misleading_indentation): Bail out
1225 immediately if -Wmisleading-indentation isn't enabled.
1226
4fef8379
ML
12272015-06-01 Martin Liska <mliska@suse.cz>
1228
1229 * c-format.c (check_format_arg):Use new type-based pool allocator.
1230 (check_format_info_main) Likewise.
1231
1edfb384
EB
12322015-05-31 Eric Botcazou <ebotcazou@adacore.com>
1233
1234 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
1235 (has_nontrivial_methods): Likewise.
1236
9677ef52
MP
12372015-05-25 Marek Polacek <polacek@redhat.com>
1238
1239 * c-ubsan.c (ubsan_instrument_shift): Use type0.
1240
fd5c817a
MP
12412015-05-22 Marek Polacek <polacek@redhat.com>
1242
1243 PR c/47043
1244 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
1245
a2f45fe6 12462015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
581edfa3
TS
1247
1248 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
1249 STACK_GROWS_DOWNWARD.
1250
a2f45fe6 12512015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
62f9f30b
TS
1252
1253 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
1254 STACK_GROWS_DOWNWARD rather than if it is defined.
1255
0fee2ac2 12562015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
b1726d6c 1257
0fee2ac2
MLI
1258 PR c/52952
1259 * c-format.c (location_column_from_byte_offset): New.
1260 (location_from_offset): New.
1261 (struct format_wanted_type): Add offset_loc field.
1262 (check_format_info): Move handling of location for extra arguments
1263 closer to the point of warning.
1264 (check_format_info_main): Pass the result of location_from_offset
1265 to warning_at.
1266 (format_type_warning): Pass the result of location_from_offset
1267 to warning_at.
1268
cf4ef6f7
MP
12692015-05-20 Marek Polacek <polacek@redhat.com>
1270
1271 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
1272
3a65ee74
MP
12732015-05-20 Marek Polacek <polacek@redhat.com>
1274
1275 * c-ada-spec.c (dump_sloc): Use DECL_P.
1276
21b634ae
MP
12772015-05-20 Marek Polacek <polacek@redhat.com>
1278
1279 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
1280 * c-common.c: Likewise.
1281
0e50b624
DM
12822015-05-19 David Malcolm <dmalcolm@redhat.com>
1283
1284 * c-common.h (fe_file_change): Strengthen param from
1285 const line_map * to const line_map_ordinary *.
1286 (pp_file_change): Likewise.
1287 * c-lex.c (fe_file_change): Likewise.
1288 (cb_define): Use linemap_check_ordinary when invoking
1289 SOURCE_LINE.
1290 (cb_undef): Likewise.
1291 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
1292 invoking cb_file_change.
1293 (c_finish_options): Likewise.
1294 (push_command_line_include): Likewise.
1295 (cb_file_change): Strengthen param "new_map" from
1296 const line_map * to const line_map_ordinary *.
1297 * c-ppoutput.c (cb_define): Likewise for local "map".
1298 (pp_file_change): Likewise for param "map" and local "from".
1299
fab27f52
MM
13002015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
1301
1302 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
1303
2fe1d762
TV
13042015-05-18 Tom de Vries <tom@codesourcery.com>
1305
1306 * c-common.c (build_va_arg_1): New function.
1307 (build_va_arg): Add address operator to va_list operand if necessary.
1308
7a37fa90
MM
13092015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
1310
1311 PR c/48956
1312 * c-common.c (int_safely_convertible_to_real_p): Define.
1313 (unsafe_conversion_p): Check conversions involving complex types.
1314 (conversion_warning): Add new warning message for conversions which
1315 discard imaginary component.
1316 * c-common.h: (enum conversion_safety): Add new enumerator for such
1317 conversions.
1318
3aa3c9fc
MP
13192015-05-14 Marek Polacek <polacek@redhat.com>
1320
1321 PR c/66066
1322 PR c/66127
1323 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
1324 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
1325 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
1326 use it. If FOR_INT_CONST, require that all evaluated operands be
1327 INTEGER_CSTs.
1328
c3388e62
DM
13292015-05-12 David Malcolm <dmalcolm@redhat.com>
1330
1331 * c-common.h (warn_for_misleading_indentation): New prototype.
1332 * c-indentation.c: New file.
1333 * c.opt (Wmisleading-indentation): New option.
1334
c7b38fd5
TV
13352015-05-12 Tom de Vries <tom@codesourcery.com>
1336
1337 PR tree-optimization/66010
1338 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
1339
381bf11e
JM
13402015-05-09 Jason Merrill <jason@redhat.com>
1341
edff0c06
JM
1342 * c-opts.c (c_common_post_options): Also clear
1343 cpp_opts->cpp_warn_cxx11_compat.
1344
129211bc
JM
1345 * c-common.h (enum cxx_dialect): Add cxx_unset.
1346 * c-common.c (cxx_dialect): Initialize to cxx_unset.
1347 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
1348
381bf11e
JM
1349 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
1350 (std=gnu++0x): Mark as Undocumented.
1351 (std=gnu++1y): Add deprecated message.
1352
fe191308
JM
13532015-05-08 Jason Merrill <jason@redhat.com>
1354
765189ff
JM
1355 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
1356 * c-opts.c: Adjust.
1357
fe191308
JM
1358 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
1359
755e528f
MP
13602015-05-08 Marek Polacek <polacek@redhat.com>
1361
1362 PR c/64918
1363 * c.opt (Woverride-init-side-effects): New option.
1364
0173bd2a
MP
13652015-05-07 Marek Polacek <polacek@redhat.com>
1366
1367 PR c/65179
1368 * c-common.c (c_fully_fold_internal): Warn when left shifting a
1369 negative value.
1370 * c.opt (Wshift-negative-value): New option.
1371 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
1372 when -Wextra and C99/C++11 mode.
1373
e0f0d3b9
MP
13742015-05-07 Marek Polacek <polacek@redhat.com>
1375 Martin Uecker <uecker@eecs.berkeley.edu>
1376
1377 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
1378 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
1379
8243e2a9
JM
13802015-05-05 Jason Merrill <jason@redhat.com>
1381
1382 * c.opt (Wterminate): New.
1383
577cd070
MP
13842015-04-30 Marek Polacek <polacek@redhat.com>
1385
1386 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
1387 require that the non-constant be of a boolean type.
1388
0373796b
JT
13892015-04-29 Josh Triplett <josh@joshtriplett.org>
1390
e0f0d3b9
MP
1391 * c-common.c (handle_section_attribute): Refactor to reduce
1392 nesting and distinguish between error cases.
0373796b 1393
716c0ba6
MP
13942015-04-29 Marek Polacek <polacek@redhat.com>
1395
1396 PR c/64610
1397 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
1398 with 0/1.
1399
8848828b
JJ
14002015-04-29 Jakub Jelinek <jakub@redhat.com>
1401
1402 * c-common.h (omp_clause_mask): Unconditionally define as a class.
1403 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
1404 HOST_BITS_PER_WIDE_INT.
1405
ecd0e562
TV
14062015-04-28 Tom de Vries <tom@codesourcery.com>
1407
1408 PR tree-optimization/65887
1409 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
1410
2a877204 14112015-04-28 Eric Botcazou <ebotcazou@adacore.com>
e0f0d3b9 1412 Pierre-Marie de Rodat <derodat@adacore.com>
2a877204
EB
1413
1414 * c-ada-spec.c (in_function): Delete.
1415 (dump_generic_ada_node): Do not change in_function and remove the
1416 redundant code dealing with it.
1417 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
1418 (print_ada_methods): Output the static member functions in a nested
1419 package after the regular methods as well as associated renamings.
1420
4853031e
MP
14212015-04-24 Marek Polacek <polacek@redhat.com>
1422
1423 PR c/65830
1424 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
1425 and OPT_Wshift_count_overflow.
1426
8c2b7f79
MP
1427 PR c/63357
1428 * c-common.c (warn_logical_operator): Warn if the operands have the
1429 same expressions.
1430
b8787813
MP
14312015-04-24 Marek Polacek <polacek@redhat.com>
1432
1433 PR c/61534
1434 * c-common.c (warn_logical_operator): Bail if either operand comes
1435 from a macro expansion.
1436
8fba1830
BRF
14372015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1438
1439 PR target/55143
1440 * c-common.c (c_default_pointer_mode): Add definition.
1441 * c-common.h (c_default_pointer_mode): Add declaration.
1442
17958621
JJ
14432015-03-11 Jakub Jelinek <jakub@redhat.com>
1444
1445 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
1446 on record_builtin_type argument.
1447
7ccb1a11
JJ
14482015-03-10 Jakub Jelinek <jakub@redhat.com>
1449
1450 PR c/65120
1451 * c-common.c (warn_logical_not_parentheses): Don't warn for
1452 !x == 0 or !x != 0.
1453
04fd785e
MP
14542015-03-07 Marek Polacek <polacek@redhat.com>
1455
1456 PR sanitizer/65280
1457 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
1458 before trying to figure out whether we have a flexible array member.
1459
a4e26206
EB
14602015-03-06 Eric Botcazou <ebotcazou@adacore.com>
1461 Jonathan Wakely <jwakely.gcc@gmail.com>
1462
1463 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
1464
0d2489f4
EB
14652015-03-05 Eric Botcazou <ebotcazou@adacore.com>
1466
1467 PR ada/65319
1468 * c-ada-spec.c (print_destructor): Remove obsolete code.
1469
83ed54d7
EB
14702015-03-01 Eric Botcazou <ebotcazou@adacore.com>
1471
1472 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
1473 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
1474 DECL_TEMPLATE_RESULT emulations.
1475 (dump_ada_template)): Add guard for TYPE_METHODS.
1476
7631f0e2
MP
14772015-02-27 Marek Polacek <polacek@redhat.com>
1478
1479 PR c/65040
1480 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
1481
d1783ae5
KT
14822015-02-27 Kai Tietz <ktietz@redhat.com>
1483
1484 PR c/35330
1485 * c-pragma.c (handle_pragma_weak): Do not try to create
1486 weak/alias of declarations not being function, or variable
1487 declarations.
1488
56a9f6bc
TS
14892015-02-24 Thomas Schwinge <thomas@codesourcery.com>
1490
1491 PR libgomp/64625
1492 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
1493 Remove macros.
1494 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
1495
3d5cb23d
MP
14962015-02-16 Marek Polacek <polacek@redhat.com>
1497
1498 PR c/65066
1499 * c-format.c (check_format_types): Handle null param.
1500
fa008882
MP
15012015-02-13 Marek Polacek <polacek@redhat.com>
1502
1503 PR c/65040
1504 * c-format.c (check_format_types): Don't warn about different
1505 signedness if the original value is in the range of WANTED_TYPE.
1506
785f21af
JM
15072015-02-12 Jason Merrill <jason@redhat.com>
1508
1509 PR c++/64956
1510 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
1511 to the current highest version.
1512 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
1513
4886ec8e
JJ
15142015-02-04 Jakub Jelinek <jakub@redhat.com>
1515
1516 PR c/64824
1517 PR c/64868
1518 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
1519 instead of RDIV_EXPR. Use build_binary_op instead of
1520 build2_loc.
1521
40fecdd6
JM
15222015-01-30 Joseph Myers <joseph@codesourcery.com>
1523
1524 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
1525 to pass input_location as first argument.
1526
a0c88d06
TV
15272015-01-23 Tom de Vries <tom@codesourcery.com>
1528
1529 PR libgomp/64672
1530 * c.opt (fopenacc): Mark as LTO option.
1531
1506ae0e
TV
15322015-01-23 Tom de Vries <tom@codesourcery.com>
1533
1534 PR libgomp/64707
1535 * c.opt (fopenmp): Mark as LTO option.
1536
31be63ab
JJ
15372015-01-21 Jakub Jelinek <jakub@redhat.com>
1538
1539 PR c/63307
b1726d6c 1540 * cilk.c (fill_decls_vec): Only put decls into vector v.
31be63ab
JJ
1541 (compare_decls): Fix up formatting.
1542
15432015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
1544
1545 PR c/63307
1546 * cilk.c: Include vec.h.
1547 (struct cilk_decls): New structure.
1548 (wrapper_parm_cb): Split this function to...
1549 (fill_decls_vec): ...this...
1550 (create_parm_list): ...and this.
1551 (compare_decls): New function.
1552 (for_local_cb): Remove.
1553 (wrapper_local_cb): Ditto.
1554 (build_wrapper_type): For now first traverse and fill vector of
1555 declarations then sort it and then deal with sorted vector.
1556 (cilk_outline): Ditto.
1557 (declare_one_free_variable): Ditto.
1558
6875457f
JM
15592015-01-21 Jason Merrill <jason@redhat.com>
1560
1561 PR c++/64629
1562 * c-format.c (check_format_arg): Call decl_constant_value.
1563
185c9e56
ML
15642015-01-19 Martin Liska <mliska@suse.cz>
1565
1566 * c-common.c (handle_noicf_attribute): New function.
1567
41dbbb37
TS
15682015-01-15 Thomas Schwinge <thomas@codesourcery.com>
1569 Bernd Schmidt <bernds@codesourcery.com>
1570 James Norris <jnorris@codesourcery.com>
1571 Cesar Philippidis <cesar@codesourcery.com>
1572 Ilmir Usmanov <i.usmanov@samsung.com>
1573 Jakub Jelinek <jakub@redhat.com>
1574
1575 * c.opt (fopenacc): New option.
1576 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
1577 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
1578 New macros.
1579 * c-common.h (c_finish_oacc_wait): New prototype.
1580 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
1581 (c_finish_oacc_wait): New function.
1582 * c-pragma.c (oacc_pragmas): New variable.
1583 (c_pp_lookup_pragma, init_pragma): Handle it.
1584 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
1585 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
1586 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
1587 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
1588 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
1589 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
1590 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
1591 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
1592 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
1593 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
1594 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
1595 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
1596 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
1597 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
1598 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
1599 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
1600 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
1601 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
1602 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
1603 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
1604 PRAGMA_OACC_CLAUSE_WORKER.
1605
5434dc07
MD
16062015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
1607
1608 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
1609 for the new option fstack-protector_explicit.
1610 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
1611 (handle_stack_protect_attribute): New function.
1612
de1b5c17
MU
16132015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
1614
1615 * c.opt: New option -Warray-bounds=.
1616
adfac8df
JJ
16172015-01-09 Michael Collison <michael.collison@linaro.org>
1618
1619 * array-notation-common.c: Include hash-set.h, machmode.h,
1620 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1621 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
1622 * c-ada-spec.c: Ditto.
1623 * c-cilkplus.c: Ditto.
1624 * c-common.c: Include input.h due to flattening of tree.h.
1625 Define macro GCC_C_COMMON_C.
1626 * c-common.h: Flatten tree.h header files into c-common.h.
1627 Remove include of tree-core.h.
1628 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
1629 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1630 fold-const.h, wide-int.h, and inchash.h due to
1631 flattening of tree.h.
1632 * c-dump.c: Ditto.
1633 * c-format.c: Flatten tree.h header files into c-common.h.
1634 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
1635 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1636 fold-const.h, wide-int.h, and inchash.h due to
1637 flattening of tree.h.
1638 * c-dump.c: Include hash-set.h, machmode.h,
1639 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1640 fold-const.h, wide-int.h, and inchash.h due to
1641 flattening of tree.h.
1642 * c-format.c: Include hash-set.h, machmode.h,
1643 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1644 fold-const.h, wide-int.h, inchash.h and real.h due to
1645 flattening of tree.h.
1646 * c-gimplify.c: Include hash-set.h, machmode.h,
1647 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1648 fold-const.h, wide-int.h, and inchash.h due to
1649 flattening of tree.h.
1650 * cilk.c: Ditto.
1651 * c-lex.c: Ditto.
1652 * c-omp.c: Ditto.
1653 * c-opts.c: Ditto.
1654 * c-pch.c: Ditto.
1655 * c-ppoutput.c: Ditto.
1656 * c-pragma.c: Ditto.
1657 * c-pretty-print.c: Ditto.
1658 * c-semantics.c: Ditto.
1659 * c-ubsan.c: Ditto.
1660 * stub-objc.c: Ditto.
1661
f5481fc4
JM
16622015-01-08 Jason Merrill <jason@redhat.com>
1663
1664 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
1665 do_ubsan_in_current_function.
1666 (ubsan_maybe_instrument_reference_or_call): Likewise.
1667 * c-ubsan.h: Declare it.
1668
de35aa66
MS
16692015-01-08 Mike Stump <mikestump@comcast.net>
1670
1671 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
1672
4a9a42ab
MP
16732015-01-07 Marek Polacek <polacek@redhat.com>
1674
1675 PR c/64440
1676 * c-common.c (c_fully_fold_internal): Warn for division and modulo
1677 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
1678
2f42e5de
TS
16792015-01-05 Trevor Saunders <tsaunders@mozilla.com>
1680
1681 PR c++/31397
1682 * c.opt (Wsuggest-override): New option.
1683
5624e564
JJ
16842015-01-05 Jakub Jelinek <jakub@redhat.com>
1685
1686 Update copyright years.
1687
5bd012f8
MP
16882015-01-05 Marek Polacek <polacek@redhat.com>
1689
1690 PR c/64423
1691 * c-common.c (warn_array_subscript_with_type_char): Add location_t
1692 parameter. Use it.
1693 * c-common.h (warn_array_subscript_with_type_char): Update
1694 declaration.
1695
a7fa8d18
ESR
16962014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
1697
1698 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
1699 Control macro with flag_sized_deallocation.
1700
768952be
MU
17012014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
1702
1703 * c.opt (Wdiscarded-array-qualifiers): New option.
1704
1f8d3e84
JJ
17052014-12-19 Jakub Jelinek <jakub@redhat.com>
1706
1707 PR preprocessor/63831
1708 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
1709 and __has_cpp_attribute here.
1710 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
1711 c_common_has_attribute.
1712 * c-common.h (c_common_has_attribute): New prototype.
1713 * c-lex.c (init_c_lex): Set cb->has_attribute to
1714 c_common_has_attribute instead of cb_has_attribute.
1715 (get_token_no_padding): New function.
1716 (cb_has_attribute): Renamed to ...
1717 (c_common_has_attribute): ... this. No longer static. Use
1718 get_token_no_padding, require ()s, don't build TREE_LIST
1719 unnecessarily, fix up formatting, adjust diagnostics, call
1720 init_attributes.
1721
20b06add
JM
17222014-12-15 Jason Merrill <jason@redhat.com>
1723
1724 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
1725 (-Wsized-deallocation): New.
1726 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
1727 to on in C++14 and up.
1728
94a073b2
JM
17292014-12-11 Jason Merrill <jason@redhat.com>
1730
acaa5911
JM
1731 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
1732
94a073b2
JM
1733 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
1734 we aren't complaining about VLAs.
1735
7fb66c15
MP
17362014-12-06 Marek Polacek <polacek@redhat.com>
1737
1738 PR tree-optimization/64183
1739 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
1740 shift-expression if it is integer_type_node. Use types_compatible_p.
1741
b731b390
JJ
17422014-11-29 Jakub Jelinek <jakub@redhat.com>
1743
1744 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
1745 last argument from create_tmp_var_raw and create_tmp_var calls.
1746 * cilk.c (gimplify_cilk_spawn): Likewise.
1747 * c-omp.c (c_finish_omp_atomic): Likewise.
1748
6a4da643
MP
17492014-11-28 Marek Polacek <polacek@redhat.com>
1750
1751 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
1752 instead of unsigned_type_node.
1753
541e35a6
MP
17542014-11-28 Marek Polacek <polacek@redhat.com>
1755
1756 PR c/63862
1757 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
1758 to op1_utype.
1759 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
1760 expression to unsigned_type_node.
1761
dcc97066
MW
17622014-11-20 Mark Wielaard <mjw@redhat.com>
1763
1764 PR debug/38757
1765 * c-opts.c (set_std_c89): Set lang_hooks.name.
1766 (set_std_c99): Likewise.
1767 (set_std_c11): Likewise.
1768 (set_std_cxx98): Likewise.
1769 (set_std_cxx11): Likewise.
1770 (set_std_cxx14): Likewise.
1771 (set_std_cxx1z): Likewise.
1772
aa7da51a
JJ
17732014-11-21 Jakub Jelinek <jakub@redhat.com>
1774
1775 PR target/63764
1776 * c-common.h (convert_vector_to_pointer_for_subscript): Change
1777 return type to bool.
009a3480 1778 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
1779 (convert_vector_to_pointer_for_subscript): Change return type to
1780 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
1781 and copy it into a TARGET_EXPR and use that instead of *vecp
1782 directly.
1783
538dd0b7
DM
17842014-11-19 David Malcolm <dmalcolm@redhat.com>
1785
1786 Merger of git branch "gimple-classes-v2-option-3".
1787 * ChangeLog.gimple-classes: New.
1788 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
1789 from being just a vec<gimple> to a vec<gbind *>.
1790
c39a5e99
JJ
17912014-11-18 Jakub Jelinek <jakub@redhat.com>
1792
1793 PR sanitizer/63813
1794 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
1795 argument to ptype, set type to TREE_TYPE (ptype). Don't call
1796 get_pointer_alignment for non-pointers. Use ptype, or if it is
1797 reference type, corresponding pointer type, as type of kind
1798 argument.
1799 (ubsan_maybe_instrument_reference,
1800 ubsan_maybe_instrument_member_call): Adjust callers.
1801
8537a4a9
MP
18022014-11-15 Marek Polacek <polacek@redhat.com>
1803
1804 PR middle-end/63884
1805 * array-notation-common.c (is_sec_implicit_index_fn): Return false
1806 for NULL fndecl.
1807 (extract_array_notation_exprs): Return for NULL node.
1808
2079956a
JM
18092014-11-12 Joseph Myers <joseph@codesourcery.com>
1810
1811 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
1812 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
1813
1304953e
JJ
18142014-11-12 Jakub Jelinek <jakub@redhat.com>
1815
1816 PR c/59708
1817 * c-common.c (check_builtin_function_arguments): Handle
1818 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
1819
e5e44252
AK
18202014-11-10 Andi Kleen <ak@linux.intel.com>
1821
1822 PR c/60804
1823 * c-common.h (check_no_cilk): Declare.
1824 * cilk.c (get_error_location): New function.
1825 (check_no_cilk): Dito.
1826
e64b984d
AK
18272014-11-10 Andi Kleen <ak@linux.intel.com>
1828
1829 * cilk.c (recognize_spawn): Use expression location
1830 for error message.
1831
13c21655
PC
18322014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
1833
1834 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
1835
42fd12b1
ESR
18362014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
1837
1838 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
1839 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
1840 (__cpp_range_based_for, __cpp_initializer_lists,
1841 __cpp_delegating_constructors, __cpp_nsdmi,
1842 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
1843 for C++11; (__cpp_attribute_deprecated): Remove in favor of
1844 __has_cpp_attribute.
1845 * c-lex.c (cb_has_attribute): New callback CPP function;
1846 (init_c_lex): Set has_attribute callback.
1847
6f450181
RB
18482014-11-04 Richard Biener <rguenther@suse.de>
1849
1850 * c-common.c (shorten_compare): Do not shorten mixed
1851 DFP and non-DFP compares.
1852
26f0e1d6
ESR
18532014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
1854
1855 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
1856 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
1857 Commentary and rearrangement of tests.
1858 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
1859 Commentary and rearrangement of tests.
1860 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
1861 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
1862
ef4bddc2
RS
18632014-10-29 Richard Sandiford <richard.sandiford@arm.com>
1864
1865 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
1866 enum from machine_mode.
1867
c582198b
AM
18682014-10-28 Andrew MacLeod <amacleod@redhat.com>
1869
adfac8df
JJ
1870 * c-common.c: Adjust include files.
1871 * c-gimplify.c: Ditto.
1872 * cilk.c: Ditto.
1873 * c-pragma.c: Ditto.
1874 * c-ubsan.c: Ditto.
c582198b 1875
60393bbc
AM
18762014-10-27 Andrew MacLeod <amacleod@redhat.com>
1877
1878 * c-gimplify.c: Adjust include files.
1879
d723bb7c
MLI
18802014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
1881
1882 PR c++/53061
1883 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
1884 c_common_initialize_diagnostics.
1885 * c-common.h: Likewise.
1886
90f3520e
MP
18872014-10-24 Marek Polacek <polacek@redhat.com>
1888
1889 PR c/56980
1890 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
1891 print "struct"/"union"/"enum" for typedefed names.
1892
59d7607a
MP
18932014-10-23 Marek Polacek <polacek@redhat.com>
1894
1895 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
1896 in unsigned type.
1897
d95a2703
JJ
18982014-10-22 Jakub Jelinek <jakub@redhat.com>
1899 Yury Gribov <y.gribov@samsung.com>
1900
1901 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1902 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
1903 instead of flag_sanitize_recover as bool flag.
1904
8e6ef852
KY
19052014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
1906
1907 * cilk.c: Revert previous change.
1908
948cf550
IZ
19092014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
1910
1911 PR c/63307
1912 * cilk.c: Include vec.h.
1913 (struct cilk_decls): New structure.
1914 (wrapper_parm_cb): Split this function to...
1915 (fill_decls_vec): ...this...
1916 (create_parm_list): ...and this.
1917 (compare_decls): New function.
1918 (for_local_cb): Remove.
1919 (wrapper_local_cb): Ditto.
1920 (build_wrapper_type): For now first traverse and fill vector of
1921 declarations then sort it and then deal with sorted vector.
1922 (cilk_outline): Ditto.
1923 (declare_one_free_variable): Ditto.
1924
92574c7c
MP
19252014-10-17 Marek Polacek <polacek@redhat.com>
1926
1927 * c-opts.c (c_common_post_options): Set warn_implicit_int.
1928 * c.opt (Wimplicit-int): Initialize to -1.
1929
83685514
AM
19302014-10-16 Andrew MacLeod <amacleod@redhat.com>
1931
1932 * c-pragma.c: Adjust include files.
1933 * c-semantics.c: Likewise.
1934
5b8300ea
DD
19352014-10-16 DJ Delorie <dj@redhat.com>
1936
1937 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
1938 multiples of bytes.
1939
5f83e90b
JM
19402014-10-14 Jason Merrill <jason@redhat.com>
1941
1942 PR c++/63455
1943 * c-common.h (CPP_PREPARSED_EXPR): New.
1944 (N_CP_TTYPES): Adjust.
1945
d73326ca
MP
19462014-10-15 Marek Polacek <polacek@redhat.com>
1947
1948 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
1949
78a7c317
DD
19502014-10-14 DJ Delorie <dj@redhat.com>
1951
1952 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
1953 types, not just __int128.
1954 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
1955 types, not just __int128.
1956 (cpp_atomic_builtins): Round pointer sizes up.
1957 (type_suffix): Use type precision, not specific types.
1958 * c-common.c (c_common_reswords): Remove __int128 special case.
1959 (c_common_type_for_size): Check for all __intN types, not just
1960 __int128.
1961 (c_common_type_for_mode): Likewise.
1962 (c_common_signed_or_unsigned_type): Likewise.
1963 (c_build_bitfield_integer_type): Likewise.
1964 (c_common_nodes_and_builtins): Likewise.
1965 (keyword_begins_type_specifier): Likewise.
1966 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
1967 __intN variants.
1968
2a22f99c
TS
19692014-10-12 Trevor Saunders <tsaunders@mozilla.com>
1970
1971 * c-common.c: Use hash_table instead of hashtab.
1972
2a8ef767
ESR
19732014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
1974
adfac8df 1975 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
1976 C++11 section.
1977
3c9aabbd
MG
19782014-10-03 Marc Glisse <marc.glisse@inria.fr>
1979
1980 PR c++/54427
1981 PR c++/57198
1982 PR c++/58845
1983 * c-common.c (warn_logical_operator): Punt for vectors.
1984
a15f7cb8
ESR
19852014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
1986
1987 Implement SD-6: SG10 Feature Test Recommendations
1988 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
1989 macros and the __has_header macro.
1990
8d0cf15e
JM
19912014-09-30 Jason Merrill <jason@redhat.com>
1992
dd5d5481
JM
1993 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
1994 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
1995 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
1996
b752325e
JM
1997 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
1998 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
1999
8d0cf15e
JM
2000 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
2001 * c-common.c (c_common_reswords): Remove __is_convertible_to.
2002
083e891e
MP
20032014-09-24 Marek Polacek <polacek@redhat.com>
2004
2005 PR c/61405
2006 PR c/53874
2007 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
2008
7861b648
AK
20092014-09-23 Andi Kleen <ak@linux.intel.com>
2010
2011 * c-common.c (handle_no_reorder_attribute): New function.
2012 (c_common_attribute_table): Add no_reorder attribute.
2013
9a79452d
JM
20142014-09-22 Joseph Myers <joseph@codesourcery.com>
2015
2016 * c-cppbuiltin.c (c_cpp_builtins): Define
2017 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
2018 modes.
2019
dd69f047
JM
20202014-09-18 Joseph Myers <joseph@codesourcery.com>
2021
2022 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
2023 for supported floating-point modes.
2024
737a4826
MLI
20252014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2026
2027 * c.opt (Wpsabi): Use LangEnabledBy.
2028 * c-opts.c (c_common_handle_option): Do not handle here.
2029
8cc4b7a2
JM
20302014-09-12 Joseph Myers <joseph@codesourcery.com>
2031
2032 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
2033 macros for floating-point modes.
2034
179b5a55
MG
20352014-09-11 Marc Glisse <marc.glisse@inria.fr>
2036
2037 PR target/58757
2038 * c-cppbuiltin.c (builtin_define_float_constants): Correct
2039 __*_DENORM_MIN__ without denormals.
2040
570a11fe
JJ
20412014-09-10 Jakub Jelinek <jakub@redhat.com>
2042
2043 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2044 ubsan_instrument_vla, ubsan_instrument_return): Adjust
2045 ubsan_create_data callers.
2046 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
2047 index is constant or BIT_AND_EXPR with constant mask and is
2048 small enough for the bound.
2049 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
2050 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
2051
b559c810
MLI
20522014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2053
2054 * c.opt: Add CppReason to various flags.
2055 (Wdate-time): Re-sort.
2056 * c-common.c: Include c-common.h earlier.
2057 (struct reason_option_codes_t): Delete.
2058 (c_option_controlling_cpp_error): Prefix global type and struct
2059 with cpp_.
2060
1ef33fd4
MLI
20612014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2062
2063 * c.opt (Wnormalized): New.
2064 (Wnormalized=): Use Enum and Reject Negative.
2065 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
2066
66bb34c0
JM
20672014-09-08 Joseph Myers <joseph@codesourcery.com>
2068
2069 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
2070 digits of floating-point modes if -fbuilding-libgcc.
2071
53d68b9f
JM
20722014-09-05 Joseph Myers <joseph@codesourcery.com>
2073
2074 * c-cppbuiltin.c (c_cpp_builtins): Also define
2075 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
2076 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
2077 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
2078 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
2079 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
2080 __LIBGCC_STACK_GROWS_DOWNWARD__,
2081 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
2082 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
2083 __LIBGCC_DWARF_FRAME_REGISTERS__,
2084 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
2085 __LIBGCC_STACK_POINTER_REGNUM__ and
2086 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
2087 (builtin_define_with_value): Handle backslash-escaping in string
2088 macro values.
2089
f65586dc
RB
20902014-09-05 Richard Biener <rguenther@suse.de>
2091
2092 PR middle-end/63148
2093 * c-format.c (check_format_arg): Properly handle
2094 effectively signed POINTER_PLUS_EXPR offset.
2095
2b71f4a4
MLI
20962014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
2097
2098 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
2099 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
2100 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
2101 and Init.
2102 * c-opts.c (c_common_handle_option): Do not handle here.
2103 (sanitize_cpp_opts): Likewise.
2104 * c-common.c (struct reason_option_codes_t): Handle
2105 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
2106
d2e4feca
MP
21072014-09-03 Marek Polacek <polacek@redhat.com>
2108
2109 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
2110
9a771876
JJ
21112014-09-02 Jakub Jelinek <jakub@redhat.com>
2112 Balaji V. Iyer <balaji.v.iyer@intel.com>
2113 Igor Zamyatin <igor.zamyatin@intel.com>
2114
2115 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
2116 * c-common.c (c_common_reswords): Added _Cilk_for.
2117 * c-common.h (enum rid): Added RID_CILK_FOR.
2118 (cilk_for_number_of_iterations): Add declaration.
2119 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
2120 CILK_FOR.
2121 * c-pragma.c (init_pragma): Register "grainsize" pragma.
2122 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
2123
81b5d104
MLI
21242014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2125
2126 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
2127 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
2128 Wundef): Use CPP, Var and Init.
2129 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
2130
b753b37b
MLI
21312014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2132
2133 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
2134 * c-opts.c (c_common_handle_option): Do not handle here.
2135
028aee17
JM
21362014-08-25 Jason Merrill <jason@redhat.com>
2137
2138 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
2139 -std=c++14 and -std=gnu++14, rather than the reverse.
2140 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
2141 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
2142 * c-common.h (cxx_dialect): Remove cxx1y.
2143
e4276ba5
ESR
21442014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
2145
2146 * c-common.h (enum cxx_dialect): Add cxx14.
2147 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
2148 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
2149 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
2150
a545cacd
JM
21512014-08-22 Jason Merrill <jason@redhat.com>
2152
2153 * c.opt (std=gnu++17): Fix alias.
2154
59ea0364
MP
21552014-08-22 Marek Polacek <polacek@redhat.com>
2156
2157 PR c++/62199
2158 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
2159 check for vector types. Drop LHS argument.
2160 * c-common.h (warn_logical_not_parentheses): Adjust.
2161
596e808c
MLI
21622014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2163
2164 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
2165 (Wmultichar): Likewise.
2166 (Wdate-time): Use C-family languages instead of Common. Use CPP
2167 and Var.
2168 * c-opts.c (c_common_handle_option): Do not handle the above
2169 options here.
2170 (sanitize_cpp_opts): Likewise.
2171
18767f65
MLI
21722014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
2173
2174 PR fortran/44054
2175 * c-opts.c: Include tree-diagnostics.h.
2176 (c_diagnostic_finalizer): New.
2177 (c_common_initialize_diagnostics): Use it.
2178
b4413594
MLI
21792014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2180
2181 PR preprocessor/51303
2182 * c-common.c (struct reason_option_codes_t option_codes):
2183 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
2184
43f9a13c
MLI
21852014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2186
2187 PR c/60975
2188 PR c/53063
2189 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
2190 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
2191 (c_common_post_options): Call init_global_opts_from_cpp.
2192 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
2193
04159acf
MP
21942014-08-19 Marek Polacek <polacek@redhat.com>
2195
2196 PR c++/62153
2197 * c-common.c (maybe_warn_bool_compare): New function.
2198 * c-common.h (maybe_warn_bool_compare): Declare.
2199 * c.opt (Wbool-compare): New option.
2200
35aff4fb
MP
22012014-08-19 Marek Polacek <polacek@redhat.com>
2202
2203 * c.opt (Wc99-c11-compat): New option.
2204
177cce46
MP
22052014-08-19 Marek Polacek <polacek@redhat.com>
2206
2207 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
2208 to warn_c90_c99_compat.
2209 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
2210 to -1.
2211
6ae9194f
MLI
22122014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
2213 Steven Bosscher <steven@gcc.gnu.org>
2214
2215 PR c/52952
2216 * c-format.c: Add extra_arg_loc and format_string_loc to struct
2217 format_check_results.
2218 (check_function_format): Use true and add comment for boolean
2219 argument.
2220 (finish_dollar_format_checking): Use explicit location when warning.
2221 (check_format_info): Likewise.
2222 (check_format_arg): Set extra_arg_loc and format_string_loc.
2223 (check_format_info_main): Use explicit location when warning.
2224 (check_format_types): Pass explicit location.
2225 (format_type_warning): Likewise.
2226
8e54f6d3
MLI
22272014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2228
2229 PR fortran/44054
2230 * c-format.c: Handle Fortran flags.
2231
cd4e76fc
IZ
22322014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
2233
2234 PR other/61962
2235 * array-notation-common.c (find_rank): Added handling for other
2236 types of references.
2237
f3bede71
MP
22382014-08-10 Marek Polacek <polacek@redhat.com>
2239
2240 PR c/51849
2241 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
2242 * c.opt (Wc90-c99-compat): Add option.
2243
9f25a338
TS
22442014-08-07 Trevor Saunders <tsaunders@mozilla.com>
2245
2246 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
2247
62e4eb35
MP
22482014-08-03 Marek Polacek <polacek@redhat.com>
2249
2250 * c-common.c (check_case_value): Add location_t parameter. Use it.
2251 (c_add_case_label): Pass loc to check_case_value.
2252
b787e7a2
TS
22532014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2254
2255 * cilk.c: Use hash_map instead of pointer_map.
2256
6e2830c3
TS
22572014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2258
2259 * c-gimplify.c: Use hash_set instead of pointer_set.
2260
a7ee52fb
IZ
22612014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
2262
2263 PR middle-end/61455
2264 * array-notation-common.c (extract_array_notation_exprs): Handling
2265 of DECL_EXPR added.
2266
944fa280
JJ
22672014-08-01 Jakub Jelinek <jakub@redhat.com>
2268
2269 * c-common.h (min_align_of_type): Removed prototype.
2270 * c-common.c (min_align_of_type): Removed.
2271 * c-ubsan.h (ubsan_maybe_instrument_reference,
2272 ubsan_maybe_instrument_member_call): New prototypes.
2273 * c-ubsan.c: Include stor-layout.h and builtins.h.
2274 (ubsan_maybe_instrument_reference_or_call,
2275 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
2276 functions.
2277
b4dfdc11
MG
22782014-07-31 Marc Glisse <marc.glisse@inria.fr>
2279
2280 PR c++/60517
2281 * c.opt (-Wreturn-local-addr): Move to common.opt.
2282
a41844e5
JM
22832014-07-30 Jason Merrill <jason@redhat.com>
2284
2285 PR c++/61659
2286 PR c++/61687
2287 Revert:
2288 * c.opt (-fuse-all-virtuals): New.
2289
976d5a22
TT
22902014-07-30 Tom Tromey <tromey@redhat.com>
2291
2292 PR c/59855
2293 * c.opt (Wdesignated-init): New option.
2294 * c-common.c (c_common_attribute_table): Add "designated_init".
2295 (handle_designated_init): New function.
2296
cdc94aca
MP
22972014-07-24 Marek Polacek <polacek@redhat.com>
2298
2299 PR c/57653
2300 * c-opts.c (c_finish_options): If -imacros is in effect, return.
2301
f41373b6
DS
23022014-07-16 Dodji Seketeli <dodji@redhat.com>
2303
2304 PR preprocessor/60723 - missing system-ness marks for macro tokens
2305 * c-ppoutput.c (struct print::prev_was_system_token): New data
2306 member.
2307 (init_pp_output): Initialize it.
2308 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
2309 (do_line_change): Return a flag saying if a line marker was
2310 emitted or not.
2311 (scan_translation_unit): Detect if the system-ness of the token we
2312 are about to emit is different from the one of the previously
2313 emitted token. If so, emit a line marker. Avoid emitting useless
2314 adjacent line markers. Avoid emitting line markers for tokens
2315 originating from the expansion of built-in macros.
2316 (scan_translation_unit_directives_only): Adjust.
2317
4d661eaa
MP
23182014-07-15 Marek Polacek <polacek@redhat.com>
2319
2320 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
2321 TYPE_MAX_VALUE is NULL.
2322
b108f48f
JJ
23232014-07-14 Jakub Jelinek <jakub@redhat.com>
2324
2325 PR middle-end/61294
2326 * c.opt (Wmemset-transposed-args): New warning.
2327
c0221884
JM
23282014-07-10 Jason Merrill <jason@redhat.com>
2329
2330 PR c++/61659
2331 PR c++/61687
2332 * c.opt (-fuse-all-virtuals): New.
2333
63dfbb95
RB
23342014-07-09 Richard Biener <rguenther@suse.de>
2335
2336 PR c-family/61741
2337 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2338 using unsigned arithmetic if overflow does not wrap instead of
2339 if overflow is undefined.
2340
773ec47f
MP
23412014-07-06 Marek Polacek <polacek@redhat.com>
2342
2343 PR c/6940
2344 * c.opt (Wsizeof-array-argument): New option.
2345
00a7ba58
JJ
23462014-07-03 Jakub Jelinek <jakub@redhat.com>
2347
b1726d6c 2348 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
00a7ba58
JJ
2349 comments->count <= 1, as comments->entries might be NULL.
2350
52ec0ea3
MP
23512014-07-01 Marek Polacek <polacek@redhat.com>
2352
2353 * c.opt (Wint-conversion): New option.
2354
d5c3d343
MP
23552014-07-01 Marek Polacek <polacek@redhat.com>
2356
2357 PR c/58286
2358 * c.opt (Wincompatible-pointer-types): New option.
2359
6e7ceb17
PC
23602014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
2361
2362 PR c++/51400
2363 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
2364 Do not discard TYPE_QUALS of type.
2365
da73100b
JM
23662014-06-26 Jason Merrill <jason@redhat.com>
2367
2368 * c-common.h (enum cxx_dialect): Add cxx1z.
2369 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
2370 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
2371
08eedf75
TJ
23722014-06-26 Teresa Johnson <tejohnson@google.com>
2373
2374 * c-common.h (get_dump_info): Declare.
2375 * c-gimplify.c (c_genericize): Use saved dump files.
2376 * c-opts.c (c_common_parse_file): Begin and end dumps
2377 once around parsing invocation.
2378 (get_dump_info): New function.
2379
7b56b2f8
MP
23802014-06-23 Marek Polacek <polacek@redhat.com>
2381 Andrew MacLeod <amacleod@redhat.com>
2382
2383 PR c/61553
2384 * c-common.c (get_atomic_generic_size): Don't segfault if the
2385 type doesn't have a size.
2386
0e37a2f3
MP
23872014-06-20 Marek Polacek <polacek@redhat.com>
2388
2389 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
2390 (ubsan_walk_array_refs_r): New function.
2391 (c_genericize): Instrument array bounds.
2392 * c-ubsan.c: Include "internal-fn.h".
2393 (ubsan_instrument_division): Mark instrumented arrays as having
2394 side effects. Adjust ubsan_type_descriptor call.
2395 (ubsan_instrument_shift): Likewise.
2396 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
2397 (ubsan_instrument_bounds): New function.
2398 (ubsan_array_ref_instrumented_p): New function.
2399 (ubsan_maybe_instrument_array_ref): New function.
2400 * c-ubsan.h (ubsan_instrument_bounds): Declare.
2401 (ubsan_array_ref_instrumented_p): Declare.
2402 (ubsan_maybe_instrument_array_ref): Declare.
2403
24042014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
2405
2406 PR lto/61123
2407 * c.opt (fshort-enums): Add to LTO.
2408 * c.opt (fshort-wchar): Likewise.
2409
5c3d09f7
MP
24102014-06-16 Marek Polacek <polacek@redhat.com>
2411
2412 PR c/60439
2413 * c.opt (Wswitch-bool): Add Var.
2414
9cf32741
JJ
24152014-06-12 Jakub Jelinek <jakub@redhat.com>
2416
2417 PR middle-end/61486
2418 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
2419 #pragma omp target teams or
2420 #pragma omp {,target }teams distribute simd.
2421
62984918
JM
24222014-06-12 Jason Merrill <jason@redhat.com>
2423
2424 * c.opt (Wabi=, fabi-compat-version): New.
2425 * c-opts.c (c_common_handle_option): Handle -Wabi=.
2426 (c_common_post_options): Handle flag_abi_compat_version default.
2427 Disallow -fabi-compat-version=1.
2428 * c-common.h (abi_version_crosses): New.
2429
f961457f
JH
24302014-06-11 Jan Hubicka <hubicka@ucw.cz>
2431
adfac8df 2432 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
2433 section names that are no longer trees.
2434
92d28cbb
JJ
24352014-06-10 Jakub Jelinek <jakub@redhat.com>
2436
2437 PR fortran/60928
2438 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
2439 (omp_pragmas): ... back here.
2440
742938c9
MP
24412014-06-05 Marek Polacek <polacek@redhat.com>
2442
2443 PR c/49706
2444 * c-common.c (warn_logical_not_parentheses): New function.
2445 * c-common.h (warn_logical_not_parentheses): Declare.
2446 * c.opt (Wlogical-not-parentheses): New option.
2447
9d548dfb
MP
24482014-06-04 Marek Polacek <polacek@redhat.com>
2449
2450 PR c/30020
2451 * c-common.c (check_case_bounds): Add location parameter.
2452 Use it.
2453 (c_add_case_label): Pass loc to check_case_bounds.
2454
fedfecef
MP
24552014-06-03 Marek Polacek <polacek@redhat.com>
2456
2457 PR c/60439
2458 * c.opt (Wswitch-bool): New option.
2459
f6a7cffc
TS
24602014-05-22 Thomas Schwinge <thomas@codesourcery.com>
2461
040d18b6
TS
2462 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
2463 Remove prototypes.
2464 (record_types_used_by_current_var_decl): Move prototype to where
2465 it belongs.
2466
f6a7cffc
TS
2467 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
2468 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
2469 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
2470
632f2871
RS
24712014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
2472
2473 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
2474 * c-common.c (c_common_nodes_and_builtins): Don't initialize
2475 void_zero_node.
2476 * c-pretty-print.c (pp_c_void_constant): New function.
2477 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
2478 (c_pretty_printer::expression): Handle VOID_CST.
2479 * cilk.c (extract_free_variables): Likewise.
2480 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
2481 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
2482
766090c2
TS
24832014-05-17 Trevor Saunders <tsaunders@mozilla.com>
2484
2485 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
2486 * c-pragma.c (push_alignment): Adjust.
2487 (handle_pragma_push_options): Likewise.
2488
661a0813
MP
24892014-05-09 Marek Polacek <polacek@redhat.com>
2490
2491 PR c/50459
2492 * c-common.c (check_user_alignment): Return -1 if alignment is error
2493 node.
2494 (handle_aligned_attribute): Don't call default_conversion on
2495 FUNCTION_DECLs.
2496 (handle_vector_size_attribute): Likewise.
2497 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
2498 (handle_sentinel_attribute): Call default_conversion and allow even
2499 integral types as an argument.
2500
2793eeab
MP
25012014-05-08 Marek Polacek <polacek@redhat.com>
2502
2503 PR c/61053
2504 * c-common.c (min_align_of_type): New function factored out from...
2505 (c_sizeof_or_alignof_type): ...here.
2506 * c-common.h (min_align_of_type): Declare.
2507
f827930a
MP
25082014-05-08 Marek Polacek <polacek@redhat.com>
2509
2510 PR c/61077
2511 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
2512 parameter type of main.
2513
ca49b74e
DD
25142014-05-07 DJ Delorie <dj@redhat.com>
2515
2516 * c-cppbuiltin.c (print_bits_of_hex): New.
2517 (builtin_define_type_minmax): Print values using hex so as not to
2518 require a pre-computed list of string values.
2519
1d60af08
KZ
25202014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
2521 Mike Stump <mikestump@comcast.net>
2522 Richard Sandiford <rdsandiford@googlemail.com>
2523
2524 * c-ada-spec.c: Include wide-int.h.
2525 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
2526 (dump_generic_ada_node): Use wide-int interfaces.
2527 * c-common.c: Include wide-int-print.h.
2528 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
2529 (pointer_int_sum): Use wide-int interfaces.
2530 (c_common_nodes_and_builtins): Use make_int_cst.
2531 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
2532 (handle_alloc_size_attribute): Use wide-int interfaces.
2533 (get_nonnull_operand): Likewise.
2534 * c-format.c (get_constant): Use tree_fits_uhwi_p.
2535 * c-lex.c: Include wide-int.h.
2536 (narrowest_unsigned_type): Take a widest_int rather than two
2537 HOST_WIDE_INTs.
2538 (narrowest_signed_type): Likewise.
2539 (interpret_integer): Update accordingly. Use wide-int interfaces.
2540 (lex_charconst): Use wide-int interfaces.
2541 * c-pretty-print.c: Include wide-int.h.
2542 (pp_c_integer_constant): Use wide-int interfaces.
2543 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
2544 INT_CST_LT_UNSIGNED.
2545
b15458be
RB
25462014-05-06 Richard Biener <rguenther@suse.de>
2547
2548 * c-opts.c (c_common_post_options): For -freestanding,
2549 -fno-hosted and -fno-builtin disable pattern recognition
2550 if not enabled explicitely.
2551
6577374e
MP
25522014-05-02 Marek Polacek <polacek@redhat.com>
2553
2554 * c.opt (Wsizeof-pointer-memaccess): Describe option.
2555
d00887e8
MP
25562014-05-01 Marek Polacek <polacek@redhat.com>
2557
2558 PR c/43245
2559 * c.opt (Wdiscarded-qualifiers): Add.
2560
f8ed5150
MP
25612014-04-30 Marek Polacek <polacek@redhat.com>
2562
2563 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
2564 INT_MIN / -1 sanitization only for integer types.
2565
45484dcf
MP
25662014-04-25 Marek Polacek <polacek@redhat.com>
2567
2568 PR c/18079
2569 * c-common.c (handle_noinline_attribute): Warn if the attribute
2570 conflicts with always_inline attribute.
2571 (handle_always_inline_attribute): Warn if the attribute conflicts
2572 with noinline attribute.
2573
38e514c0
MP
25742014-04-25 Marek Polacek <polacek@redhat.com>
2575
2576 PR c/60156
2577 * c-common.c (check_main_parameter_types): Warn about variadic main.
2578
44875f92
MS
25792014-04-24 Mike Stump <mikestump@comcast.net>
2580
2581 * c.opt (Wshadow-ivar): Default to on.
2582
dcaaa5a0
DP
25832014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
2584
2585 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
2586
c07d7c02
MP
25872014-04-23 Marek Polacek <polacek@redhat.com>
2588
2589 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
2590
1c33c9b7
JJ
25912014-04-22 Jakub Jelinek <jakub@redhat.com>
2592
2593 PR sanitizer/60275
2594 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
2595 if flag_sanitize_undefined_trap_on_error.
2596 (ubsan_instrument_division, ubsan_instrument_shift,
2597 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
2598 if !flag_sanitize_recover.
2599
793c625f
MG
26002014-04-22 Marc Glisse <marc.glisse@inria.fr>
2601
2602 PR libstdc++/43622
2603 * c-common.c (registered_builtin_types): Make non-static.
2604 * c-common.h (registered_builtin_types): Declare.
2605
b0f1bf36
RB
26062014-04-14 Richard Biener <rguenther@suse.de>
2607 Marc Glisse <marc.glisse@inria.fr>
2608
2609 PR c/60819
2610 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
2611 apply may-alias the scalar pointer type when applicable.
2612
3b07fa4a
IZ
26132014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
2614
2615 PR middle-end/60467
2616 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
2617 as possible argument for Cilk_spawn.
2618
cbbd2b1c
TB
26192014-04-11 Tobias Burnus <burnus@net-b.de>
2620
2621 PR c/60194
2622 * c.opt (Wformat-signedness): Add
2623 * c-format.c(check_format_types): Use it.
2624
6415bd5d
JM
26252014-04-11 Jason Merrill <jason@redhat.com>
2626
2627 PR c++/57926
2628 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
2629 default_conversion for an array argument.
2630
6525783a
MP
26312014-04-08 Marek Polacek <polacek@redhat.com>
2632
2633 PR sanitizer/60745
2634 * c-ubsan.c: Include asan.h.
2635 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
2636
880a467b
NS
26372014-04-03 Nathan Sidwell <nathan@codesourcery.com>
2638
2639 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
2640
7b59ff2d
MP
26412014-04-02 Marek Polacek <polacek@redhat.com>
2642
2643 * c-common.h (c_expand_expr): Remove declaration.
2644
8edbfaa6
JJ
26452014-03-28 Jakub Jelinek <jakub@redhat.com>
2646
2647 PR c++/60689
2648 * c-common.c (add_atomic_size_parameter): When creating new
2649 params vector, push the size argument first.
2650
07d72e1d
JJ
26512014-03-26 Jakub Jelinek <jakub@redhat.com>
2652
2653 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2654 ubsan_instrument_vla, ubsan_instrument_return): Adjust
2655 ubsan_create_data callers.
2656
b35e0fa0
JJ
26572014-03-22 Jakub Jelinek <jakub@redhat.com>
2658
2659 PR debug/60603
2660 * c-opts.c (c_finish_options): Restore cb_file_change call to
2661 <built-in>.
2662
39a1ebb3
JJ
26632014-03-13 Jakub Jelinek <jakub@redhat.com>
2664
2665 PR middle-end/36282
2666 * c-pragma.c (apply_pragma_weak): Only look at
2667 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
2668 DECL_ASSEMBLER_NAME_SET_P (decl).
2669 (maybe_apply_pending_pragma_weaks): Exit early if
2670 vec_safe_is_empty (pending_weaks) rather than only when
2671 !pending_weaks.
2672 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
2673 set assembler name back to NULL afterwards.
2674
a07f6ed2
JM
26752014-03-11 Jason Merrill <jason@redhat.com>
2676
2677 * c.opt: Add -std=gnu++14.
2678
75b107f5
IB
26792014-03-11 Ian Bolton <ian.bolton@arm.com>
2680
2681 * c-opts.c (c_common_post_options): Don't override
2682 -ffp-contract=fast if unsafe-math-optimizations is on.
2683
f42c637e
PM
26842014-03-08 Paulo Matos <paulo@matos-sorge.com>
2685
2686 * c.opt: Enable LTO FE for fshort-double.
2687
70e24808
JM
26882014-03-07 Jason Merrill <jason@redhat.com>
2689
2690 * c.opt: Add -std=c++14.
2691
3af9c5e9
MP
26922014-03-06 Marek Polacek <polacek@redhat.com>
2693
2694 PR c/60197
2695 * cilk.c (contains_cilk_spawn_stmt): New function.
2696 (contains_cilk_spawn_stmt_walker): Likewise.
2697 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
2698 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
2699
b3bdf019
JJ
27002014-03-03 Jakub Jelinek <jakub@redhat.com>
2701
2702 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
2703 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
2704 even when flag_preprocess_only.
2705
ca7e759d
JM
27062014-02-26 Jason Merrill <jason@redhat.com>
2707
2708 PR c++/59231
2709 PR c++/11586
2710 * c-common.c (shorten_compare): Don't check
2711 c_inhibit_evaluation_warnings.
2712
28e41874
JJ
27132014-02-19 Jakub Jelinek <jakub@redhat.com>
2714
cca615af
JJ
2715 PR c/37743
2716 * c-common.c (c_common_nodes_and_builtins): When initializing
2717 c_uint{16,32,64}_type_node, also set corresponding
2718 uint{16,32,64}_type_node to the same value.
2719
28e41874
JJ
2720 PR c++/60267
2721 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
2722 for PRAGMA_IVDEP if flag_preprocess_only.
2723
c2bf53a1
JJ
27242014-02-12 Jakub Jelinek <jakub@redhat.com>
2725
2726 PR c/60101
2727 * c-common.c (merge_tlist): If copy is true, call new_tlist,
2728 if false, add ADD itself, rather than vice versa.
2729 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
2730 copy. For SAVE_EXPR, only call merge_tlist once.
2731
8fcbce72
JJ
27322014-02-08 Jakub Jelinek <jakub@redhat.com>
2733
2734 PR middle-end/60092
2735 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
2736 and tree_to_uhwi.
2737 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
2738 functions.
2739 (c_common_attribute_table): Add alloc_align and assume_aligned
2740 attributes.
2741
0a756a3f
MP
27422014-02-06 Marek Polacek <polacek@redhat.com>
2743
2744 PR c/60087
2745 * c-common.c (warn_for_sign_compare): Call warning_at with location
2746 instead of warning.
2747
7ec4847a
MP
27482014-02-05 Marek Polacek <polacek@redhat.com>
2749
2750 PR c/53123
2751 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
2752 statement.
2753
66f20604
MP
27542014-02-04 Marek Polacek <polacek@redhat.com>
2755
2756 PR c/60036
2757 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
2758 SAVE_EXPR.
2759
5d77fb19
MG
27602014-02-03 Marc Glisse <marc.glisse@inria.fr>
2761
2762 PR c++/53017
2763 PR c++/59211
2764 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
2765 handle_vector_size_attribute, handle_nonnull_attribute): Call
2766 default_conversion on the attribute argument.
2767 (handle_nonnull_attribute): Increment the argument number.
2768
81e5eca8
MP
27692014-01-31 Marek Polacek <polacek@redhat.com>
2770
2771 PR c/59963
2772 * c-common.c (add_atomic_size_parameter): Pass vNULL to
2773 build_function_call_vec.
2774 (resolve_overloaded_builtin): Likewise.
2775 * c-common.h (build_function_call_vec): Adjust declaration.
2776
68fca595
MP
27772014-01-30 Marek Polacek <polacek@redhat.com>
2778
2779 PR c/59940
2780 * c-common.h (unsafe_conversion_p): Adjust declaration.
2781 (warnings_for_convert_and_check): Likewise.
2782 (convert_and_check): Likewise.
2783 * c-common.c (unsafe_conversion_p): Add location parameter. Call
2784 expansion_point_location_if_in_system_header on it.
2785 (warnings_for_convert_and_check): Add location parameter. Call
2786 expansion_point_location_if_in_system_header on it. Use it.
2787 (convert_and_check): Add location parameter. Use it.
2788 (conversion_warning): Likewise.
2789 (c_add_case_label): Adjust convert_and_check calls.
2790 (scalar_to_vector): Adjust unsafe_conversion_p calls.
2791
b72271b9
BI
27922014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
2793
2794 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
2795 flag_cilkplus.
2796 * c-pragma.c (init_pragma): Likewise.
2797 * c.opt: Likewise.
2798
393e8e8b
MP
27992014-01-23 Marek Polacek <polacek@redhat.com>
2800
2801 PR c/59846
2802 * c-common.c (shorten_compare): Add location_t parameter.
2803 * c-common.h (shorten_binary_op): Adjust declaration.
2804
f04dda30
MP
28052014-01-23 Marek Polacek <polacek@redhat.com>
2806
2807 PR c/58346
2808 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
2809 * c-common.h: Declare it.
2810
621955cb
EB
28112014-01-20 Eric Botcazou <ebotcazou@adacore.com>
2812
2813 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
2814 * c-ada-spec.c (dump_ads): Likewise.
2815 (cpp_check): Likewise.
2816 (dump_ada_specs): Likewise.
2817
28182014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
2819
2820 PR c++/49718
2821 * c-common.c (handle_no_instrument_function_attribute): Allow
2822 no_instrument_function attribute in class member
2823 definition/declaration.
2824
241f845a
JJ
28252014-01-15 Jakub Jelinek <jakub@redhat.com>
2826
2827 PR c/58943
2828 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
2829 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
2830 being COMPOUND_EXPR.
2831 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
2832 operand a SAVE_EXPR and second MODIFY_EXPR.
2833
e83b8e2e
JJ
28342014-01-09 Jakub Jelinek <jakub@redhat.com>
2835
2836 PR target/58115
2837 * c-pch.c (c_common_write_pch): Call
2838 prepare_target_option_nodes_for_pch.
2839
23a5b65a
RS
28402014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2841
2842 Update copyright years
2843
f9030485
RS
28442014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2845
2846 * array-notation-common.c, c-cilkplus.c: Use the standard form for
2847 the copyright notice.
2848
f2aa696b
EB
28492013-12-28 Eric Botcazou <ebotcazou@adacore.com>
2850
2851 * c-ada-spec.c (print_constructor): New function.
2852 (print_destructor): Retrieve the origin of the destructor.
2853 (print_ada_declaration): Revamp handling of constructors/destructors.
2854
1f26ac87
JM
28552013-12-23 Stuart Hastings <stuart@apple.com>
2856 Bill Maddox <maddox@google.com>
2857 Jason Merrill <jason@redhat.com>
2858
2859 * c.opt: Add -fdeclone-ctor-dtor.
2860 * c-opts.c (c_common_post_options): Default to on iff -Os.
2861
41958c28
BI
28622013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
2863
2864 * c-common.c (c_common_attribute_table): Added "cilk simd function"
2865 attribute.
2866 * c-pragma.h (enum pragma_cilk_clause): Remove.
2867 (enum pragma_omp_clause): Added the following fields:
2868 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
2869 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
2870 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
2871 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
2872 PRAGMA_CILK_CLAUSE_UNIFORM.
2873
b1726d6c 2874
12893402
BI
28752013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
2876
2877 * cilk.c (cilk_outline): Made this function non-static.
2878 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
2879 (create_cilk_wrapper): Added a new parameter: a function pointer.
2880 (c_install_body_w_frame_cleanup): Remove
2881 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
2882 * c-common.h (cilk_outline): New prototype.
2883 (gimplify_cilk_spawn): Removed two parameters.
2884 (cilk_install_body_with_frame_cleanup): New prototype.
2885 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
2886 CILK_SPAWN_STMT case.
2887
085b42ed
BS
28882013-12-11 Bernd Schmidt <bernds@codesourcery.com>
2889
2ce064c3
BS
2890 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
2891
085b42ed
BS
2892 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
2893 (int_array_type_node): Remove.
2894 * c-common.c (c_common_nodes_and_builtins): Don't build it.
2895
9e36c9ed
MP
28962013-12-05 Marek Polacek <polacek@redhat.com>
2897
2898 PR c/52023
2899 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
2900 [ADJUST_FIELD_ALIGN].
2901
296674db
JM
29022013-12-04 Joseph Myers <joseph@codesourcery.com>
2903
2904 PR c/52023
2905 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
2906 and check field alignment if set.
2907 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
2908 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
2909
b1726d6c 29102013-12-04 Jakub Jelinek <jakub@redhat.com>
31e071ae
MP
2911 Marek Polacek <polacek@redhat.com>
2912
2913 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
2914 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
2915
d7947e19
L
29162013-11-29 H.J. Lu <hongjiu.lu@intel.com>
2917
2918 PR c/59309
2919 * cilk.c (gimplify_cilk_spawn): Properly handle function without
2920 arguments.
2921
fad7652e
JJ
29222013-11-29 Jakub Jelinek <jakub@redhat.com>
2923
2924 PR c/59280
2925 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
2926 goto invalid. If it is error_mark_node, don't issue further
2927 diagnostics.
2928
8b5e1202
SO
29292013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
2930
2931 * c.opt (Wopenmp-simd): New.
2932
0a508bb6
JJ
29332013-11-22 Jakub Jelinek <jakub@redhat.com>
2934
2935 * c-ubsan.h (ubsan_instrument_return): New prototype.
2936 * c-ubsan.c (ubsan_instrument_return): New function.
2937
2fb9a547
AM
29382013-11-22 Andrew MacLeod <amacleod@redhat.com>
2939
2940 * c-common.c: Add required include files from gimple.h.
2941 * c-gimplify.c: Likewise
2942 * cilk.c: Likewise
2943
8400e75e
DM
29442013-11-22 David Malcolm <dmalcolm@redhat.com>
2945
2946 * c-common.c (unsafe_conversion_p): Remove use of
2947 EXPR_LOC_OR_HERE macro.
2948 (conversion_warning): Likewise.
2949 (warnings_for_convert_and_check): Likewise.
2950 (warn_for_collisions_1): Likewise.
2951 (shorten_compare): Likewise, and remove use of in_system_header
2952 macro, using the location from the former.
2953 * c-lex.c (dump_one_header): Remove use of input_filename macro.
2954 (cb_def_pragma): Remove use of in_system_header macro.
2955 (lex_string): Likewise.
2956 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
2957
eb1ce453
KZ
29582013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2959 Mike Stump <mikestump@comcast.net>
2960 Richard Sandiford <rdsandiford@googlemail.com>
2961
2962 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
2963 instead of TREE_INT_CST_LOW, in cases where there is a protecting
2964 tree_fits_shwi_p or tree_fits_uhwi_p.
2965 (dump_generic_ada_node): Likewise.
2966 * c-format.c (check_format_arg): Likewise.
2967 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2968
6b3b8c27
KZ
29692013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2970
2971 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
2972
49b0aa18
JC
29732013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
2974
2975 PR c/53001
2976 * c-common.c (unsafe_conversion_p): Make this function
2977 return an enumeration with more detail.
2978 (conversion_warning): Use the new return type of
2979 unsafe_conversion_p to separately warn either about conversions
2980 that lower floating point number precision or about the other
2981 kinds of conversions.
2982 * c-common.h (enum conversion_safety): New enumeration.
2983 (unsafe_conversion_p): switching return type to
2984 conversion_safety enumeration.
2985 * c.opt: Adding new warning -Wfloat-conversion and
2986 enabling it with -Wconversion.
2987
b826515a
BS
29882013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
2989
2990 * c-opts.c: Include plugin.h.
2991 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
2992
b9a55b13
MP
29932013-11-19 Marek Polacek <polacek@redhat.com>
2994
2995 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
2996 call.
2997 (ubsan_instrument_shift): Likewise.
2998 (ubsan_instrument_vla): Likewise.
2999
7d362f6c
RS
30002013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3001
3002 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
3003 cast to unsigned type.
3004
386b1f1f
RS
30052013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3006
3007 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
3008 tree_low_cst.
3009 (complete_array_type): Update comment to refer to tree_to_[su]hwi
3010 rather than tree_low_cst.
3011
ae7e9ddd
RS
30122013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3013
3014 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
3015 tree_to_uhwi throughout.
3016
9439e9a1
RS
30172013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3018
3019 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
3020 tree_low_cst (..., 0) with tree_to_shwi throughout.
3021
cc269bb6
RS
30222013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3023
3024 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
3025 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
3026
9541ffee
RS
30272013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3028
3029 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
3030 host_integerp (..., 0) with tree_fits_shwi_p throughout.
3031
c02065fc
AH
30322013-11-15 Aldy Hernandez <aldyh@redhat.com>
3033
3034 * c-cilkplus.c: New file.
3035 * c-common.c (readonly_error): Add location argument.
3036 * c-common.h (readonly_error): Same.
3037 (c_finish_cilk_clauses): Protoize.
3038 (c_check_cilk_loop): Same.
3039 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
3040 Do not fail on error_mark_node.
3041 Abstract increment canonicalization to here...
3042 (c_omp_for_incr_canonicalize_ptr): New.
3043 c-pragma.c (init_pragma): Register "simd" pragma.
3044 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
3045 (enum pragma_cilk_clause): New.
3046
9cc65f15
RS
30472013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
3048
3049 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
3050 wchar_type and host_integerp checks.
3051
18f429e2
AM
30522013-11-14 Andrew MacLeod <amacleod@redhat.com>
3053
3054 * c-common.c: Likewise.
3055 * c-gimplify.c: Likewise.
3056 * cilk.c: Likewise.
3057
d8a2d370
DN
30582013-11-14 Diego Novillo <dnovillo@google.com>
3059
3060 * c-common.c: Include fold-const.h.
3061 Include stor-layout.h.
3062 Include calls.h.
3063 Include stringpool.h.
3064 Include attribs.h.
3065 Include varasm.h.
3066 Include trans-mem.h.
3067 * c-cppbuiltin.c: Include stor-layout.h.
3068 Include stringpool.h.
3069 * c-format.c: Include stringpool.h.
3070 * c-lex.c: Include stringpool.h.
3071 Include stor-layout.h.
3072 * c-pragma.c: Include stringpool.h.
3073 Include attribs.h.
3074 Include varasm.h.
3075 Include gcc-symtab.h.
3076 * c-pretty-print.c: Include stor-layout.h.
3077 Include attribs.h.
3078 * cilk.c: Include stringpool.h.
3079 Include calls.h.
3080
38b7bc7f
JM
30812013-11-13 Joseph Myers <joseph@codesourcery.com>
3082
3083 * c-common.h (enum rid): Add RID_AUTO_TYPE.
3084 * c-common.c (c_common_reswords): Add __auto_type.
3085 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
3086
45b0be94
AM
30872013-11-12 Andrew MacLeod <amacleod@redhat.com>
3088
18f429e2
AM
3089 * c-common.c: Include gimplify.h.
3090 * c-gimplify.c: Likewise.
3091 * cilk.c: Likewise.
3092 * c-omp.c: Include gimple-expr.h instead of gimple.h.
3093 * c-ubsan.c: Don't include gimple.h.
45b0be94 3094
582d9b50
JM
30952013-11-12 Joseph Myers <joseph@codesourcery.com>
3096
3097 * c-common.c (c_common_reswords): Add _Thread_local.
3098
6b28e197
JM
30992013-11-09 Joseph Myers <joseph@codesourcery.com>
3100
3101 * c-common.c (atomic_size_supported_p): New function.
3102 (resolve_overloaded_atomic_exchange)
3103 (resolve_overloaded_atomic_compare_exchange)
3104 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
3105 Use it instead of comparing size with a local list of sizes.
3106
267bac10
JM
31072013-11-07 Andrew MacLeod <amacleod@redhat.com>
3108 Joseph Myers <joseph@codesourcery.com>
3109
3110 * c-common.h (enum rid): Add RID_ATOMIC.
3111 * c-common.c (c_common_reswords): Add _Atomic.
3112 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
3113 (keyword_is_type_qualifier): Accept RID_ATOMIC.
3114 * c-format.c (check_format_types): Check for extra _Atomic
3115 qualifiers in format argument.
3116 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
3117 (pp_c_type_qualifier_list): Mention _Atomic in comment.
3118
5157b91e
TB
31192013-11-06 Tobias Burnus <burnus@net-b.de>
3120
3121 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
3122
6dbe0958
JM
31232013-11-06 Joseph Myers <joseph@codesourcery.com>
3124
3125 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
3126 standards modes.
3127 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
3128 to mean lack of IEEE 754 support.
3129
e8ff5196
TB
31302013-11-05 Tobias Burnus <burnus@net-b.de>
3131
3132 * c.opt (-Wdate-time): New option
3133 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
3134
254a0760
JM
31352013-11-05 Joseph Myers <joseph@codesourcery.com>
3136
3137 * c-cppbuiltin.c (cpp_iec_559_value): Test
3138 flag_excess_precision_cmdline not flag_excess_precision.
3139
6d7f7e0a
TB
31402013-11-05 Tobias Burnus <burnus@net-b.de>
3141
3142 * c.opt (fopenmp-simd): New option.
3143 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
3144 (omp_pragmas): ... this new struct.
3145 (c_pp_lookup_pragma): Also walk omp_pragmas.
3146 (init_pragma): Init pragmas for -fopenmp-simd.
3147
55a7f02f
MP
31482013-11-04 Marek Polacek <polacek@redhat.com>
3149
3150 PR c++/58979
3151 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
3152
9193fb05
JM
31532013-11-04 Joseph Myers <joseph@codesourcery.com>
3154
3155 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
3156 New functions.
3157 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
3158
94159ecf
EB
31592013-11-04 Eric Botcazou <ebotcazou@adacore.com>
3160
3161 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
3162 (dump_ada_specs): Adjust prototype of second callback.
3163 * c-ada-spec.c (cpp_check): New global variable.
3164 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
3165 (print_generic_ada_decl): Likewise.
3166 (has_static_fields): Change return type to bool and add guard.
3167 (has_nontrivial_methods): New predicate.
3168 (is_tagged_type): Change return type to bool.
3169 (separate_class_package): Call has_nontrivial_methods.
3170 (pp_ada_tree_identifier): Minor tweaks.
3171 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
3172 (dump_ada_array_domains): Likewise.
3173 (dump_ada_array_type): Likewise.
3174 (dump_template_types): Remove cpp_check parameter and do not pass it to
3175 dump_generic_ada_node.
3176 (dump_ada_template): Likewise.
3177 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
3178 recursively.
3179 (print_ada_methods): Change return type to integer. Remove cpp_check
3180 parameter and do not pass it down.
3181 (dump_nested_types): Remove cpp_check parameter and do not pass it to
3182 dump_generic_ada_node.
3183 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
3184 accessing methods.
3185 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
3186 down. Use has_nontrivial_methods to recognize C++ classes. Use return
3187 value of print_ada_methods.
3188 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
3189 Set cpp_check to it before invoking dump_ada_nodes.
3190 (dump_ada_specs): Likewise.
3191
b906f4ca
MP
31922013-11-03 Marek Polacek <polacek@redhat.com>
3193
3194 * c-ubsan.c: Don't include hash-table.h.
3195 (ubsan_instrument_vla): New function.
3196 * c-ubsan.h: Declare it.
3197
5e20cdc9
DM
31982013-10-31 David Malcolm <dmalcolm@redhat.com>
3199
3200 Automated part of renaming of symtab_node_base to symtab_node.
3201
3202 Patch autogenerated by rename_symtab.py from
3203 https://github.com/davidmalcolm/gcc-refactoring-scripts
3204 revision 58bb219cc090b2f4516a9297d868c245495ee622
3205
3206 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
3207 symtab_node_base to symtab_node.
3208
7057e645
ESR
32092013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
3210
3211 Implement C++14 digit separators.
3212 * c-lex.c (interpret_float): Remove digit separators from scratch string
3213 before building real literal.
3214
193ea7bc
JJ
32152013-10-30 Jakub Jelinek <jakub@redhat.com>
3216
3217 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
3218
939b37da
BI
32192013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
3220
3221 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
3222 fields.
3223 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
3224 enabled.
3225 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
3226 (insert_cilk_frame): New prototype.
3227 (cilk_init_builtins): Likewise.
3228 (gimplify_cilk_spawn): Likewise.
3229 (c_cilk_install_body_w_frame_cleanup): Likewise.
3230 (cilk_detect_spawn_and_unwrap): Likewise.
3231 (cilk_set_spawn_marker): Likewise.
3232 (build_cilk_sync): Likewise.
3233 (build_cilk_spawn): Likewise.
3234 * cilk.c: New file.
3235
67348ccc
DM
32362013-10-29 David Malcolm <dmalcolm@redhat.com>
3237
3238 Patch autogenerated by refactor_symtab.py from
3239 https://github.com/davidmalcolm/gcc-refactoring-scripts
3240 revision 58bb219cc090b2f4516a9297d868c245495ee622
3241
3242 * c-gimplify.c (c_genericize): Update for conversion of symtab types
3243 to a true class hierarchy.
3244 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
3245
d570872d
RS
32462013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
3247
3248 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
3249
98906124
JL
32502013-10-26 Jeff Law <law@redhat.com>
3251
adfac8df
JJ
3252 * c-common.c (c_define_builtins): Remove mudflap support.
3253 * c.opt: Ignore and warn for mudflap options.
98906124 3254
d73749df 32552013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
3256
3257 PR other/33426
3258 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
3259 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
3260
3f04b1bb
JM
32612013-10-23 Jason Merrill <jason@redhat.com>
3262
3263 * c-format.c (gcc_cxxdiag_char_table): Add %X.
3264
acf0174b
JJ
32652013-10-11 Jakub Jelinek <jakub@redhat.com>
3266
acd15a28
JJ
3267 * c-common.h (omp_clause_mask::operator !=): New method.
3268 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
3269 instead of if (mask & something) tests everywhere.
3270
acf0174b
JJ
3271 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
3272 201307 instead of 201107.
3273 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
3274 (c_common_attribute_table): Add "omp declare target" and
3275 "omp declare simd" attributes.
3276 (handle_omp_declare_target_attribute,
3277 handle_omp_declare_simd_attribute): New functions.
3278 * c-omp.c: Include c-pragma.h.
3279 (c_finish_omp_taskgroup): New function.
3280 (c_finish_omp_atomic): Add swapped argument, if true,
3281 build the operation first with rhs, lhs arguments and use NOP_EXPR
3282 build_modify_expr.
3283 (c_finish_omp_for): Add code argument, pass it down to make_code.
3284 (c_omp_split_clauses): New function.
3285 (c_split_parallel_clauses): Removed.
3286 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
3287 c_omp_declare_simd_clauses_to_decls): New functions.
3288 * c-common.h (omp_clause_mask): New type.
3289 (OMP_CLAUSE_MASK_1): Define.
3290 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
3291 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
3292 omp_clause_mask::operator |, omp_clause_mask::operator &,
3293 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
3294 omp_clause_mask::operator ==): New methods.
3295 (enum c_omp_clause_split): New.
3296 (c_finish_omp_taskgroup): New prototype.
3297 (c_finish_omp_atomic): Add swapped argument.
3298 (c_finish_omp_for): Add code argument.
3299 (c_omp_split_clauses): New prototype.
3300 (c_split_parallel_clauses): Removed.
3301 (c_omp_declare_simd_clauses_to_numbers,
3302 c_omp_declare_simd_clauses_to_decls): New prototypes.
3303 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
3304 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
3305 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
3306 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
3307 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
3308 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
3309 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
3310 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
3311 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
3312 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
3313 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
3314 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
3315 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
3316 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
3317 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
3318 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
3319 PRAGMA_OMP_CLAUSE_UNIFORM.
3320
826cacfe
MG
33212013-10-09 Marc Glisse <marc.glisse@inria.fr>
3322
3323 PR tree-optimization/20318
3324 * c-common.c (handle_returns_nonnull_attribute): New function.
3325 (c_common_attribute_table): Add returns_nonnull.
3326
2284b034
MG
33272013-10-03 Marc Glisse <marc.glisse@inria.fr>
3328
3329 PR c++/19476
3330 * c.opt (fcheck-new): Move to common.opt.
3331
b56e9788
MP
33322013-09-25 Marek Polacek <polacek@redhat.com>
3333 Jakub Jelinek <jakub@redhat.com>
3334
3335 PR sanitizer/58413
3336 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
3337 an expression if we can prove it is correct.
3338 (ubsan_instrument_division): Likewise. Remove unnecessary
3339 check.
3340
ce6923c5
MP
33412013-09-18 Marek Polacek <polacek@redhat.com>
3342
3343 PR sanitizer/58411
3344 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
3345 Declare it.
3346 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
3347
fb5610fb
IS
33482013-09-14 Iain Sandoe <iain@codesourcery.com>
3349
3350 PR target/48094
3351 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
3352 fobjc-gc, freplace-objc-classes): Accept for LTO.
3353
88b0e79e
JC
33542013-09-13 Jacek Caban <jacek@codeweavers.com>
3355
3356 * c-target.def: New hook
3357
c9b0866a
PC
33582013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
3359
3360 PR c++/43452
3361 * c.opt (Wdelete-incomplete): Add.
3362
0af94e6f
JR
33632013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
3364
3365 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
3366 (vector_types_compatible_elements_p): New function.
3367 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
3368 declaration.
3369 (vector_types_compatible_elements_p): Declare.
3370
7c26172c
GDR
33712013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
3372
3373 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
3374 a virtual member function.
3375 (pp_simple_type_specifier): Remove.
3376 (pp_c_type_specifier): Likewise.
3377 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
3378 Rename from pp_c_type_specifier. Adjust.
3379 (c_pretty_printer::c_pretty_printer): Do not assign to
3380 simple_type_specifier.
3381
20059c8b
GDR
33822013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3383
3384 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
3385 member function.
3386 (c_pretty_printer::storage_class_specifier): Likewise.
3387 (c_pretty_printer::initializer): Likewise.
3388 (pp_declaration): Remove.
3389 (pp_declaration_specifiers): Likewise.
3390 (pp_abstract_declarator): Likewise.
3391 (pp_declarator): Likewise.
3392 (pp_type_id): Likewise.
3393 (pp_statement): Likewise.
3394 (pp_constant): Likewise.
3395 (pp_id_expression): Likewise.
3396 (pp_primary_expression): Likewise.
3397 (pp_unary_expression): Likewise.
3398 (pp_multiplicative_expression): Likewise.
3399 (pp_conditional_expression): Likewise.
3400 (pp_assignment_expression): Likewise.
3401 (pp_expression): Likewise.
3402 (pp_c_type_id): Likewise.
3403 (pp_c_storage_class_specifier): Likewise.
3404 * c-pretty-print.c (pp_c_type_cast): Tidy.
3405 (pp_c_pointer): Likewise.
3406 (pp_c_type_specifier): Likewise.
3407 (pp_c_parameter_type_list): Likewise.
3408 (pp_c_function_definition): Likewise.
3409 (pp_c_init_declarator): Likewise.
3410 (pp_c_initializer_list): Likewise.
3411 (pp_c_constructor_elts): Likewise.
3412 (c_pretty_printer::direct_abstract_declarator): Likewise.
3413 (c_pretty_printer::declaration_specifiers): Likewise.
3414 (c_pretty_printer::primary_expression): Likewise.
3415 (c_pretty_printer::postfix_expression): Likewise.
3416 (c_pretty_printer::type_id): Rename from pp_c_type_id.
3417 (c_pretty_printer::storage_class_specifier): Rename from
3418 pp_c_storage_class_specifier.
3419 (c_pretty_printer::initializer): Rename from pp_c_initializer.
3420 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
3421 storage_class_specifier, initializer, offset_list, flags.
3422
de5a5fa1
MP
34232013-08-30 Marek Polacek <polacek@redhat.com>
3424
3425 * c-ubsan.c: New file.
3426 * c-ubsan.h: New file.
3427
8f0e4d72
GDR
34282013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
3429
3430 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
3431 member function.
3432 (c_pretty_printer::declaration_specifiers): Likewise.
3433 (c_pretty_printer::declarator): Likewise.
3434 (c_pretty_printer::abstract_declarator): Likewise.
3435 (c_pretty_printer::direct_abstract_declarator): Likewise.
3436 (c_pretty_printer::direct_declarator): Likewise.
3437 (c_pretty_printer::function_specifier): Likewise.
3438 (pp_declaration): Adjust.
3439 (pp_declaration_specifiers): Likewise.
3440 (pp_abstract_declarator): Likewise.
3441 (pp_direct_declarator): Likewise.
3442 (pp_function_specifier): Likewise.
3443 (pp_direct_abstract_declarator): Remove as unused.
3444 (pp_c_declaration): Remove.
3445 (pp_c_declaration_specifiers): Likewise.
3446 (pp_c_declarator): Likewise.
3447 (pp_c_direct_declarator): Likewise.
3448 (pp_c_function_specifier): Likewise.
3449 (pp_c_direct_abstract_declarator): Likewise.
3450 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
3451 from pp_c_abstract_declarator. Adjust.
3452 (c_pretty_printer::direct_abstract_declarator): Rename from
3453 pp_c_direct_abstract_declarator. Adjust.
3454 (c_pretty_printer::function_specifier): Rename from
3455 pp_c_function_specifier. Adjust.
3456 (c_pretty_printer::declaration_specifiers): Rename from
3457 pp_c_declaration_specifiers. Adjust.
3458 (c_pretty_printer::direct_declarator): Rename from
3459 pp_c_direct_declarator. Adjust.
3460 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
3461 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
3462 (c_pretty_printer::c_pretty_printer): Do not assign to
3463 declaration, declaration_specifiers, declarator,
3464 direct_declarator, direct_abstract_declarator, function_specifier.
3465
00d34d3a
GDR
34662013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
3467
3468 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
3469 virtual member function.
3470 (c_pretty_printer::multiplicative_expression): Likewise.
3471 (c_pretty_printer::conditional_expression): Likewise.
3472 (c_pretty_printer::assignment_expression): Likewise.
3473 (c_pretty_printer::expression): Likewise.
3474 (pp_unary_expression): Adjust.
3475 (pp_multiplicative_expression): Likewise.
3476 (pp_assignment_expression): Likewise.
3477 (pp_conditional_expression): Likewise.
3478 (pp_expression): Likewise.
3479 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
3480 from pp_c_unary_expression. Adjust.
3481 (c_pretty_printer::multiplicative_expression): Rename from
3482 pp_c_multiplicative_expression. Adjust.
3483 (c_pretty_printer::conditional_expression): Rename from
3484 pp_c_conditional_expression. Adjust.
3485 (c_pretty_printer::assignment_expression): Rename from
3486 pp_c_assignment_expression. Adjust.
3487 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
3488 (c_pretty_printer::c_pretty_printer): Do not assign to
3489 unary_expression, multiplicative_expression,
3490 conditional_expression, expression.
3491
fb22178f
GDR
34922013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3493
3494 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
3495 virtual member function.
3496 (pp_postfix_expression): Adjust.
3497 (pp_c_postfix_expression): Remove.
3498 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
3499 from pp_c_postfix_expression. Adjust.
3500 (c_pretty_printer::c_pretty_printer): Do not assign to
3501 postfix_expression.
3502
7ecc2600
GDR
35032013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3504
3505 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
3506 virtua member function.
3507 (pp_primary_expression): Adjust.
3508 (pp_c_primary_expression): Remove.
3509 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
3510 from pp_c_primary_expression. Adjust.
3511 (pp_c_initializer_list): Use pp_primary_expression.
3512 (c_pretty_printer::c_pretty_printer): Do not assign to
3513 primary_expression.
3514
0691175f
GDR
35152013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3516
3517 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
3518 * c-pretty-print.c (M_): Remove.
3519 (c_pretty_printer::translate_string): Define.
3520 (pp_c_type_specifier): Use it.
3521 (pp_c_primary_expression): Likewise.
3522 (pp_c_expression): Likewise.
3523
66dfe4c4
GDR
35242013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
3525
3526 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
3527 virtual function.
3528 (pp_c_id_expression): Remove.
3529 (pp_id_expression): Adjust.
3530 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
3531 pp_c_id_expression. Adjust.
3532 (pp_c_postfix_expression): Use pp_id_expression.
3533 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
3534
ca43e9d5
GDR
35352013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
3536
3537 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
3538 member function.
3539 (pp_constant): Adjust.
3540 (pp_c_constant): Remove.
3541 * c-pretty-print.c (c_pretty_printer::constant): Rename from
3542 pp_c_constant. Adjust.
3543 (pp_c_constant)
3544 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
3545 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
3546
da6ca2b5
GDR
35472013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
3548
3549 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
3550 (c_pretty_printer::c_pretty_printer): Declare.
3551 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
3552 c_pretty_printer_init. Adjust.
3553 (print_c_tree): Do not call c_pretty_printer_init.
3554 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
3555
65a372f4
AC
35562013-08-09 Arnaud Charlet <charlet@adacore.com>
3557
3558 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
3559
fd9b0f32
PC
35602013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
3561
3562 PR c++/58080
3563 * c-common.c (pointer_int_sum): Add bool parameter.
3564 * c-common.h (pointer_int_sum): Adjust declaration.
3565
e0aec1e9
GDR
35662013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
3567
3568 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
3569 c_pretty_printer variable.
3570
b066401f
GDR
35712013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
3572
3573 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
3574 (pp_base): Remove.
3575 (pp_c_base): Likewise. Adjust users.
3576 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
3577 (pp_c_whitespace): Do not call pp_base.
3578 (pp_c_left_paren): Likewise.
3579 (pp_c_right_paren): Likewise.
3580 (pp_c_left_brace): Likewise.
3581 (pp_c_right_brace): Likewise.
3582 (pp_c_left_bracket): Likewise.
3583 (pp_c_right_bracket): Likewise.
3584 (pp_c_dot): Likewise.
3585 (pp_c_ampersand): Likewise.
3586 (pp_c_star): Likewise.
3587 (pp_c_arrow): Likewise.
3588 (pp_c_semicolon): Likewise.
3589 (pp_c_complement): Likewise.
3590 (pp_c_exclamation): Likewise.
3591 (pp_c_direct_declarator): Likewise.
3592 (pp_c_ws_string): Likewise.
3593 (pp_c_identifier): Likewise.
3594 (pp_c_statement): Likewise.
3595 (print_c_tree): Likewise.
3596
65e5a578
ESR
35972013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
3598
3599 PR c++/58072
3600 * c-common.c (c_parse_error): Catch user-defined literal tokens and
3601 provide useful error strings.
3602
137a1a27
GDR
36032013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3604
3605 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
3606 printer functions instead of pp_string or operators and punctuators.
3607 (dump_generic_ada_node): Likewise.
3608 * c-pretty-print.c (pp_c_type_specifier): Likewise.
3609 (pp_c_relational_expression): Likewise.
3610 (pp_c_logical_or_expression): Likewise.
3611
07838b13
GDR
36122013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3613
3614 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
3615 functions instead of pp_character.
3616 (pp_ada_tree_identifier): Likewise.
3617 (dump_ada_double_name): Likewise.
3618 (dump_ada_function_declaration): Likewise.
3619 (dump_ada_array_domains): Likewise.
3620 (dump_template_types): Likewise.
3621 (dump_generic_ada_node): Likewise.
3622 (print_ada_declaration): Likewise.
3623 (print_ada_struct_decl): Likewise.
3624 * c-pretty-print.c (pp_c_integer_constant): Likewise.
3625
433cc7b0
TT
36262013-07-23 Tom Tromey <tromey@redhat.com>
3627
3628 * c-common.h (enum rid) <RID_GENERIC>: New constant.
3629 * c-common.c (c_common_reswords): Add _Generic.
3630
688010ba
OB
36312013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
3632
3633 * c-common.c: Fix typos.
3634 * c-common.h: Likewise.
3635
2a99e5e6
LL
36362013-07-13 Lubos Lunak <l.lunak@suse.cz>
3637
3638 PR c++/55203
3639 * c-common.c (c_common_attribute_table): Add warn_unused.
3640 (handle_warn_unused_attribute): New.
3641
c26302d5
JJ
36422013-07-10 Jakub Jelinek <jakub@redhat.com>
3643
3644 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
3645 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
3646
dfeadaa0
PC
36472013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
3648
3649 PR c++/57869
3650 * c.opt: Add Wconditionally-supported.
3651
6a2fa4b2
GS
36522013-07-08 Graham Stott <graham.stott@btinternet.com>
3653
adfac8df 3654 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
3655 unused variables l_length and l_node.
3656
ecdbd01a 36572013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
3658
3659 PR c/57821
3660 * c-common.c (complete_array_type): Delay folding first index
3661 like other indices. When folding, check for index overflow.
3662
bedc293e
MG
36632013-06-27 Marc Glisse <marc.glisse@inria.fr>
3664
3665 PR c++/57509
3666 * c-common.h (c_build_vec_perm_expr): New complain argument.
3667 * c-common.c (c_build_vec_perm_expr): Likewise.
3668 Use save_expr also in C++.
3669
604b2bfc
GDR
36702013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
3671
3672 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
3673 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3674 * c-opts.c (c_common_post_options): Likewise.
3675
dfeadaa0 36762013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
3677
3678 * array-notation-common.c (length_mismatch_in_expr): Changed the
3679 parameter type's from a dynamic array to a vec_tree. Also removed
3680 the size parameters.
3681 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
3682 the change above.
3683
2ce86d2e
BI
36842013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
3685
3686 * c-common.h (struct cilkplus_an_parts): New structure.
3687 (struct cilkplus_an_loop_parts): Likewise.
3688 (cilkplus_extract_an_triplets): New prototype.
3689 (fix_sec_implicit_args): Likewise.
3690 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
3691 (fix_sec_implicit_args): Likewise.
604b2bfc 3692
07a6825b
BI
36932013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
3694
3695 * array-notation-common.c (find_inv_trees): Removed an unwanted
3696 typecasting.
3697 * c-common.h (struct inv_list::additional_tcodes): Changed type from
3698 enum rid to enum tree_code.
3699
08346abd
JH
37002013-06-11 Jan Hubicka <jh@suse.cz>
3701
3702 * c-common.c (handle_alias_ifunc_attribute): Do not set
3703 DECL_EXTERNAL for weakref variables.
3704 * c-pragma.c (handle_pragma_weak): Make sure aliases
3705 are not declared as external.
3706
d60f1706
BI
37072013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
3708
3709 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
3710 function from c/c-array-notation.c.
3711 (is_cilkplus_reduce_builtin): Likewise.
3712 (find_rank): Likewise.
3713 (extract_array_notation_exprs): Likewise.
3714 (replace_array_notations): Likewise.
3715 (find_inv_trees): Likewise.
3716 (replace_inv_trees): Likewise.
3717 (contains_array_notation_expr): Likewise.
3718 (find_correct_array_notation_type): Likewise.
3719 * c-common.h (struct inv_list): Moved this struct from the file
3720 c/c-array-notation.c and added a new field called additional tcodes.
3721 (length_mismatch_in_expr_p): New prototype.
3722 (is_cilkplus_reduce_builtin): Likewise.
3723 (find_rank): Likewise.
3724 (extract_array_notation_exprs): Likewise.
3725 (replace_array_notation): Likewise.
3726 (find_inv_trees): Likewise.
3727 (replace_inv_trees): Likewise.
3728 (find_correct_array_notation_type): Likewise.
dfeadaa0 3729
36536d79
BI
37302013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
3731
3732 * c-common.c (c_define_builtins): When cilkplus is enabled, the
3733 function array_notation_init_builtins is called.
3734 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
3735 * c-common.def (ARRAY_NOTATION_REF): New tree.
3736 * c-common.h (build_array_notation_expr): New function declaration.
3737 (build_array_notation_ref): Likewise.
3738 (extract_sec_implicit_index_arg): New extern declaration.
3739 (is_sec_implicit_index_fn): Likewise.
3740 (ARRAY_NOTATION_CHECK): New define.
3741 (ARRAY_NOTATION_ARRAY): Likewise.
3742 (ARRAY_NOTATION_START): Likewise.
3743 (ARRAY_NOTATION_LENGTH): Likewise.
3744 (ARRAY_NOTATION_STRIDE): Likewise.
3745 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
3746 ARRAY_NOTATION_REF.
3747 (pp_c_expression): Likewise.
3748 * c.opt (flag_enable_cilkplus): New flag.
3749 * array-notation-common.c: New file.
3750
f7716d57
JJ
37512013-05-14 Jakub Jelinek <jakub@redhat.com>
3752
3753 PR c++/57274
3754 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
3755
a5e0cd1d
MG
37562013-05-10 Marc Glisse <marc.glisse@inria.fr>
3757
3758 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
3759 vectors.
3760
f6bc1c4a
HS
37612013-05-07 Han Shen <shenhan@google.com>
3762
3763 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
3764
3f12f6e9
SKS
37652013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3766
3767 * c-common.c (check_user_alignment): Emit error for negative values.
3768
61949153
PC
37692013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3770
3771 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
3772
e93e18e9
PC
37732013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3774
3775 * c-cppbuiltin.c (c_cpp_builtins): Do not define
3776 __GXX_EXPERIMENTAL_CXX1Y__.
3777
44d90fe1
PC
37782013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3779 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3780
3781 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
3782 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
3783 to simply use OPT_Wpointer_arith.
3784 (c_sizeof_or_alignof_type): Likewise.
3785
13f39b2e
PC
37862013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3787
3788 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
3789
4b84d650
JJ
37902013-04-12 Jakub Jelinek <jakub@redhat.com>
3791
3792 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
3793 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
3794 specifiers.
3795
fb037b5d
SB
37962013-04-07 Steven Bosscher <steven@gcc.gnu.org>
3797
3798 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
3799
4e856798
PC
38002013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
3801
3802 * c-common.c (pointer_int_sum): Remove dead code.
3803
4b1baac8
RS
38042013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
3805
3806 PR middle-end/56524
3807 * c-common.c (handle_optimize_attribute): Don't call
3808 save_optabs_if_changed.
3809
0b50e654
JJ
38102013-03-05 Jakub Jelinek <jakub@redhat.com>
3811
3812 PR middle-end/56461
3813 * c-pch.c (pch_init): Free target_validity at the end.
3814
48c41403
JJ
38152013-03-04 Jakub Jelinek <jakub@redhat.com>
3816
3817 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
3818
e664c61c
KS
38192013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
3820 Jakub Jelinek <jakub@redhat.com>
3821
3822 PR sanitizer/56454
3823 * c-common.c (handle_no_sanitize_address_attribute): New function.
3824 (c_common_attribute_table): Add no_sanitize_address attribute.
3825 (handle_no_address_safety_analysis_attribute): Add
3826 no_sanitize_address attribute, not no_address_safety_analysis
3827 attribute.
3828
a475fd3d 38292013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
3830
3831 PR target/52555
3832 * c-common.c (handle_optimize_attribute): Call
3833 save_optabs_if_changed.
3834
f6007d99
JJ
38352013-02-18 Jakub Jelinek <jakub@redhat.com>
3836 Steven Bosscher <steven@gcc.gnu.org>
3837
3838 PR pch/54117
3839 * c-opts.c (c_common_post_options): If debug info is enabled
3840 and non-dwarf*, refuse to load PCH files and when writing PCH
3841 file warn.
3842
cf35e2b1
JJ
38432013-02-05 Jakub Jelinek <jakub@redhat.com>
3844
3845 PR middle-end/56167
3846 * c-common.c (handle_error_attribute): Fix condition.
3847
32887460
JJ
38482013-01-30 Jakub Jelinek <jakub@redhat.com>
3849
3850 PR c++/55742
3851 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
3852
5af057d8
JM
38532013-01-18 Jason Merrill <jason@redhat.com>
3854
3855 PR target/54908
3856 * c.opt (-fextern-tls-init): New.
3857 * c-opts.c (c_common_post_options): Handle it.
3858
cc83c823
JJ
38592013-01-09 Jakub Jelinek <jakub@redhat.com>
3860
3861 PR c/48418
3862 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
3863 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
3864 and is either negative or bigger or equal to type precision
3865 of the first operand.
3866
a859517f
MP
38672012-12-03 Marek Polacek <polacek@redhat.com>
3868
3869 PR c/55570
3870 * c-common.c (check_user_alignment): Swap order of tests,
3871 check TREE_CODE first.
3872
2d7aa578
ESR
38732012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
3874
3875 PR c++/52654
3876 * c-common.h (overflow_type): New enum.
3877 (build_userdef_literal): Add overflow_type argument.
3878 (tree_userdef_literal): Add overflow_type.
3879 (USERDEF_LITERAL_OVERFLOW): New access macro.
3880 * c-common.c (build_userdef_literal): Add overflow_type
3881 argument.
3882 * c-lex.c (c_lex_with_flags): Add overflow_type to
3883 build_userdef_literal calls.
3884 (interpret_integer, interpret_float): Add overflow_type argument.
3885
cc3c4f62
RB
38862012-11-28 Richard Biener <rguenther@suse.de>
3887
3888 PR c/35634
3889 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
3890 here and use a type with proper overflow behavior for types that would
3891 need to be promoted for the arithmetic.
3892
77bc5132
JJ
38932012-11-23 Jakub Jelinek <jakub@redhat.com>
3894
3895 PR sanitizer/55435
3896 * c-common.c (handle_no_address_safety_analysis_attribute): New
3897 function.
3898 (c_common_attribute_table): Add no_address_safety_analysis.
3899
5dc99c46
SB
39002012-11-16 Simon Baldwin <simonb@google.com>
3901
3902 * c.opt: Add f[no-]canonical-system-headers.
3903 * c-opts.c (c_common_handle_option): Handle
3904 OPT_fcanonical_system_headers.
3905
a4a0016d
ESR
39062012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
3907
3908 PR c++/54413
3909 * c-opts.c (c_common_handle_option): Set new flags.
3910 * c.opt: Describe new flags.
3911
7dbb85a7
JM
39122012-11-09 Jason Merrill <jason@redhat.com>
3913
3914 * c.opt (Wabi-tag): New.
3915
ad7bac31
AK
39162012-11-09 Andi Kleen <ak@linux.intel.com>
3917
3918 PR 55139
3919 * c-common.c (get_atomic_generic_size): Mask with
3920 MEMMODEL_MASK
3921
7332899a
MLI
39222012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3923
3924 PR c/53063
3925 * c.opt (Wformat): Make it Alias Wformat=1.
3926 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
3927 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
3928 LangEnabledBy.
3929 (Wformat=): RejectNegative. Use LangEnabledBy.
3930 (Wnonnull): Use LangEnabledBy.
3931 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
3932 * c-format.c (set_Wformat): Delete.
3933 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
3934 (maybe_read_dollar_number): Likewise.
3935 (avoid_dollar_number): Likewise.
3936 (finish_dollar_format_checking): Likewise.
3937 (check_format_info): Likewise.
3938 (check_format_info_main): Likewise.
3939 (check_format_types): Likewise.
3940 (format_type_warning): Likewise.
3941 * c-common.c (int): Likewise.
3942 (check_function_sentinel): Likewise.
3943 * c-common.h (warn_format,set_Wformat): Do not declare here.
3944
34a180a6
MLI
39452012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3946
3947 PR c/53063
3948 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
3949 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
3950 Use LangEnabledBy.
3951 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
3952 common.opt.
3953 (Wvariadic-macros): Init(1).
3954 * c-opts.c (c_common_handle_option): Do not handle them
3955 explicitly.
3956 (c_common_post_options): Likewise.
3957 (sanitize_cpp_opts): warn_unused_macros is now
3958 cpp_warn_unused_macros.
3959 (push_command_line_include): Likewise.
3960 * c-common.c (warn_unknown_pragmas): Do not define.
3961 * c-common.h (warn_unknown_pragmas): Do not declare.
3962
3f46d6a5
MLI
39632012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3964
3965 PR c/51294
3966 * c-common.c (conversion_warning): Handle conditional expressions.
3967
880661a4
JW
39682012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
3969
3970 PR c++/54930
3971 * c.opt (Wreturn_local_addr): Define new option.
3972
4514a96b
JM
39732012-10-25 Jason Merrill <jason@redhat.com>
3974
f14edc1a
JM
3975 * c.opt (Wvirtual-move-assign): New.
3976
4514a96b
JM
3977 * c.opt (Winherited-variadic-ctor): New.
3978
93100c6b
MG
39792012-10-25 Marc Glisse <marc.glisse@inria.fr>
3980
3981 PR c++/54427
3982 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
3983
1efcb8c6
JM
39842012-10-23 Joseph Myers <joseph@codesourcery.com>
3985
3986 * c-common.h (pch_cpp_save_state): Declare.
3987 * c-target.def (c_preinclude): New hook.
3988 * c-opts.c (done_preinclude): New.
3989 (push_command_line_include): Handle default preincluded header.
3990 (cb_file_change): Call pch_cpp_save_state when calling
3991 push_command_line_include.
3992 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
3993 (pch_cpp_save_state): New.
3994 (pch_init): Call pch_cpp_save_state conditionally, instead of
3995 calling cpp_save_state.
3996
4a0ae68e
MLI
39972012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3998
3999 PR c/53063
4000 PR c/40989
4001 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
4002 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
4003 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
4004 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
4005 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
4006 * c-opts.c (c_common_handle_option): Remove explicit handling from
4007 here.
4008 (c_common_post_options): Likewise.
4009
67e4210b
EB
40102012-10-18 Eric Botcazou <ebotcazou@adacore.com>
4011
4012 * c-ada-spec.c (LOCATION_COL): Delete.
4013 (compare_location): New function.
4014 (compare_node): Use it.
4015 (compare_comment): Likewise.
4016
65d4f2cd
MLI
40172012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
4018
4019 PR c/53063
4020 PR c/40989
4021 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
4022 * c-opts.c (c_common_handle_option): Do not set them here. Add
4023 comment.
4024 (c_common_post_options): Likewise.
4025
909881cb
EB
40262012-10-16 Eric Botcazou <ebotcazou@adacore.com>
4027
4028 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
4029 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
4030 Remove POINTER_TYPE handling, add large unsigned handling and use
4031 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
4032
3a785c97
JJ
40332012-10-12 Jakub Jelinek <jakub@redhat.com>
4034
4035 PR c/54381
4036 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
4037 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
4038 locs and array of 3 trees instead of just single loc and single
4039 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
4040 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
4041 For *cmp* builtins that take two sources strings report warnings
4042 about first and second source, not about destination and source.
4043
5e54f81d
MG
40442012-10-12 Marc Glisse <marc.glisse@inria.fr>
4045
4046 PR c++/53055
4047 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
4048
f5b02f1e
EB
40492012-10-11 Eric Botcazou <ebotcazou@adacore.com>
4050
4051 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
4052 declaring something coming from another file.
4053
b46dbc6c
AC
40542012-10-10 Arnaud Charlet <charlet@adacore.com>
4055
f5b02f1e 4056 PR ada/54845
b46dbc6c
AC
4057 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
4058
5d9de0d0
PC
40592012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
4060
4061 PR c++/54194
4062 * c-common.c (warn_about_parentheses): Add location_t parameter;
4063 use EXPR_LOC_OR_LOC.
4064 * c-common.h: Update declaration.
4065
a212e43f
MG
40662012-10-09 Marc Glisse <marc.glisse@inria.fr>
4067
4068 PR c++/54427
4069 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
4070 more operations. Make error messages optional.
4071 * c-common.h (enum stv_conv): Moved from c-typeck.c.
4072 (scalar_to_vector): Declare.
4073
b1db7f91
JM
40742012-10-08 Jason Merrill <jason@redhat.com>
4075
4076 * c-common.c (c_common_reswords): Add thread_local.
4077
e28d52cf
DS
40782012-10-08 Dodji Seketeli <dodji@redhat.com>
4079
4080 PR c++/53528 C++11 attribute support
4081 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
4082 new functions.
4083 * c-common.c (check_cxx_fundamental_alignment_constraints): New
4084 static function.
4085 (handle_aligned_attribute): In choose strictest alignment
4086 among many. Use new check_cxx_fundamental_alignment_constraints.
4087 (handle_transparent_union_attribute): In c++11 attribute syntax,
4088 don't look through typedefs.
4089
3b78de56
AC
40902012-10-04 Arnaud Charlet <charlet@adacore.com>
4091
4092 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
4093 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
4094 out of dumpfile.h.
4095
6040bb5f
DC
40962012-09-25 Dehao Chen <dehao@google.com>
4097
4098 PR middle-end/54645
3b78de56 4099 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
4100 map when read in the pch.
4101
0b07a57e
AC
41022012-09-18 Arnaud Charlet <charlet@adacore.com>
4103
4104 * c-ada-spec.c: Style fixes.
4105
da5182be
TQ
41062012-09-18 Thomas Quinot <quinot@adacore.com>
4107
4108 * c.opt (-fada-spec-parent): Define new command line switch.
4109 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
4110 is specified, generate binding spec as a child of the specified unit.
4111
0ccb505d
PC
41122012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
4113 Manuel López-Ibáñez <manu@gcc.gnu.org>
4114
4115 PR c++/53210
4116 * c.opt ([Winit-self]): Enabled by -Wall in C++.
4117
c583af79
AC
41182012-08-23 Arnaud Charlet <charlet@adacore.com>
4119
4120 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
4121 for pointers, and add missing Convention C pragma.
4122 (print_ada_struct_decl): Add missing aliased keyword.
4123 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
4124
1a4049e7
JJ
41252012-08-17 Jakub Jelinek <jakub@redhat.com>
4126
4127 * c-common.c (sizeof_pointer_memaccess_warning): New function.
4128 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
4129 * c-opts.c (c_common_handle_option): Enable it for -Wall.
4130 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
4131 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
4132
70b5e7dc
RG
41332012-08-10 Richard Guenther <rguenther@suse.de>
4134
4135 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
4136
f8923f7e
SB
41372012-08-07 Steven Bosscher <steven@gcc.gnu.org>
4138
4139 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
4140 instead of separate pp_newline and pp_flush.
4141 (print_c_tree): Likewise.
4142
e45abe1f
RH
41432012-07-26 Richard Henderson <rth@redhat.com>
4144
4145 * c-common.c (handle_hot_attribute): Allow labels.
4146 (handle_cold_attribute): Likewise.
4147
332f1d24
JJ
41482012-07-20 Jakub Jelinek <jakub@redhat.com>
4149
4150 PR c++/28656
4151 * c-common.c (check_function_nonnull): Handle multiple nonnull
4152 attributes properly.
4153
7ee2468b
SB
41542012-07-16 Steven Bosscher <steven@gcc.gnu.org>
4155
4156 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
4157 * c-ada-spec.c: Likewise.
4158 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
4159
ee7b28eb
SB
41602012-07-14 Steven Bosscher <steven@gcc.gnu.org>
4161
4162 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
4163 Remove code conditional on it.
4164
6bdf3519
SB
41652012-07-11 Steven Bosscher <steven@gcc.gnu.org>
4166
4167 * c-gimplify.c: Do not include basic-block.h.
4168 * c-common.c: Do not include linfuncs.h.
4169
532aafad
SB
41702012-07-08 Steven Bosscher <steven@gcc.gnu.org>
4171
4172 * c-common.h: Include tree.h.
4173
8d0d1915
JM
41742012-07-02 Jason Merrill <jason@redhat.com>
4175
4176 PR c++/53524
4177 * c-common.c (get_priority): Call default_conversion.
4178
fbc873ad
UB
41792012-07-01 Uros Bizjak <ubizjak@gmail.com>
4180
4181 * c-pch.c (c_common_write_pch): Remove unused variables.
4182
d4a10d0a
SB
41832012-06-29 Steven Bosscher <steven@gcc.gnu.org>
4184
4185 * cppspec.c: Moved from gcc/ to here.
4186
6f3a2e23
KT
41872012-06-27 Kai Tietz <ktietz@redhat.com>
4188
4189 PR preprocessor/37215
4190 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
4191
8ca92d04
SB
41922012-06-21 Steven Bosscher <steven@gcc.gnu.org>
4193
4194 * c-common.h (c_common_print_pch_checksum): Remove.
4195 * c-pch.c: Do not include output.h.
4196 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
4197 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
4198 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
4199 (struct c_pch_header): Remove.
4200 (get_ident): Update gpch version.
4201 (pch_init): Do not print executable_checksum to asm_out_file.
4202 Do not fail if there is no asm_out_file to read back from. Set
4203 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
4204 (c_common_write_pch): Verify that nothing was written to asm_out_file
4205 since pch_init was called. Do not write a c_pch_header, and do not
4206 copy from asm_out_file to the PCH.
4207 (c_common_read_pch): Do not read a c_pch_header, and do not restore
4208 the content of asm_out_file from the PCH.
4209 (c_common_print_pch_checksum): Remove.
4210 * c-opts.c (c_common_init): Print out executable_checksum directly.
4211
70f42967
SB
42122012-06-19 Steven Bosscher <steven@gcc.gnu.org>
4213
4214 * c-target.def (objc_declare_unresolved_class_reference,
4215 objc_declare_class_definition): Add new hooks.
4216
a8781821
SB
42172012-06-19 Steven Bosscher <steven@gcc.gnu.org>
4218
4219 * c-lex.c: Do not include output.h.
4220 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
4221 Remove uses of ASM_OUTPUT_IDENT.
4222
9e1a8dd1
RR
42232012-06-15 Marc Glisse <marc.glisse@inria.fr>
4224
4225 PR c++/51033
4226 * c-common.h (c_build_vec_perm_expr): Move decl here.
4227 * c-common.c (c_build_vec_perm_expr): Move definition
4228 here.
4229
6f07a821
SB
42302012-06-06 Steven Bosscher <steven@gcc.gnu.org>
4231
4232 * c.opt (fconserve-space): Turn into a no-op.
4233
9faeb493 42342012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
4235
4236 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
4237 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
4238 both the start and end of the function.
4239
a4b7d13c
SB
42402012-06-04 Steven Bosscher <steven@gcc.gnu.org>
4241
4242 * c-common.c: Do not include output.h.
4243 * c-pragma.c: Likewise.
4244
c265f413
SA
42452012-06-04 Steven Bosscher <steven@gcc.gnu.org>
4246
4247 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
4248 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
4249 (lang_decl_name): Handle namespace decls.
4250
be7a421e
SB
42512012-05-31 Steven Bosscher <steven@gcc.gnu.org>
4252
4253 * c-ada-spec.c: Do not include output.h.
4254 * c-semantics.c: Likewise.
4255
65de6659
JM
42562012-05-29 Joseph Myers <joseph@codesourcery.com>
4257
4258 * c-common.c: Fix typo.
4259
ca5f4331
MM
42602012-05-29 Michael Matz <matz@suse.de>
4261
4262 * c-common.h (c_expand_decl): Remove prototype.
4263
4f7f7aca
MLI
42642012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
4265
4266 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
4267 * c-opts.c (c_common_handle_option): Remove code handling
4268 warn_missing_braces.
4269
4a792f9b
PC
42702012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
4271
4272 PR c++/25137
4273 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
4274 -Wmissing_braces.
4275
650dc14a
DS
42762012-05-22 Dodji Seketeli <dodji@redhat.com>
4277
4278 PR c++/53322
4279 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
4280
9b095bf1
MLI
42812012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
4282
4283 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
4284 * c-opts.c (c_common_handle_option): Do not handle explicitly
4285 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
4286
0b2c4be5
DS
42872012-05-16 Dodji Seketeli <dodji@redhat.com>
4288
4289 PR preprocessor/7263
4290 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
4291 to cpp_classify_number. For diagnostics, use the precise location
4292 instead of the global input_location.
4293
a1bde5af
PC
42942012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
4295
d02924ef 4296 PR c++/11856
a1bde5af
PC
4297 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
4298
d1ede5f4
BS
42992012-05-14 Bernd Schmidt <bernds@codesourcery.com>
4300
a1bde5af 4301 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 4302
f2bc201f
MLI
43032012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
4304
4305 PR 53063
4306 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
4307 Wreorder): Use LangEnabledBy.
4308 * c-opts.c (c_common_handle_option): Do not enable them
4309 explicitly. Call lang-specific generated functions.
4310 (c_common_post_options): Do not set them here.
4311
95744782
MLI
43122012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
4313
4314 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
4315 Wmissing-field-initializers,Wmissing-parameter-type,
4316 Wold-style-declaration,Woverride-init): Use EnabledBy.
4317 * c-opts.c (c_common_post_options): Do not set here explicitly.
4318
7d5a5747
MLI
43192012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4320
4321 PR 53063
4322 * c-opts.c (c_common_handle_option): Use handle_generated_option
4323 to enable sub-options.
4324
5a3c9cf2
PC
43252012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
4326
4327 PR c++/53158
4328 * c-common.c (warnings_for_convert_and_check): Use warning_at.
4329
3ac8781c
RG
43302012-05-10 Richard Guenther <rguenther@suse.de>
4331
4332 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
4333 adjust commentary about TYPE_IS_SIZETYPE types.
4334
1e537948
MLI
43352012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4336
4337 PR c++/53261
4338 * c-common.c (warn_logical_operator): Check that argument of
4339 integer_zerop is not NULL.
4340
f2c4a785
MLI
43412012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
4342
4343 PR c/43772
4344 * c-common.c (warn_logical_operator): Do not warn if either side
4345 is already true or false.
4346
50f305ca
MLI
43472012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
4348
4349 PR c/51712
4350 * c-common.c (expr_original_type): New.
4351 (shorten_compare): Do not warn for enumeration types.
4352
0c3641b0
MLI
43532012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
4354
4355 * c.opt (fpermissive): Add Var(flag_permissive).
4356
7edaa4d2
MG
43572012-04-30 Marc Glisse <marc.glisse@inria.fr>
4358
4359 PR c++/51033
4360 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
4361 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
4362
b9c8da34
DS
43632012-04-30 Dodji Seketeli <dodji@redhat.com>
4364
4365 Add -Wvarargs option
4366 * c.opt (Wvarargs): Define new option.
4367
e6c69da0
MLI
43682012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4369
4370 * c-common.c (check_function_arguments): Replace
4371 Wmissing-format-attribute with Wsuggest-attribute=format.
4372
90137d8f
MLI
43732012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4374
4375 * c.opt (Wsuggest-attribute=format): New. Alias of
4376 Wmissing-format-attribute.
4377 * c-format.c (decode_format_type): Replace
4378 Wmissing-format-attribute with Wsuggest-attribute=format.
4379 (check_function_format): Likewise.
4380
9faeb493 43812012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
4382
4383 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
4384 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
4385 * c.opt: Add Wliteral-suffix.
4386
c1771a20
MLI
43872012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
4388
4389 PR c/44774
4390 * c.opt (Wpedantic): New.
4391 (pedantic): Alias Wpedantic.
4392 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
4393 (c_common_post_options): Likewise.
4394 (sanitize_cpp_opts): Likewise.
4395 * c-lex.c (interpret_float): Likewise.
4396 * c-format.c (check_format_types): Likewise.
4397 * c-common.c (pointer_int_sum): Likewise.
4398 (c_sizeof_or_alignof_type): Likewise.
4399 (c_add_case_label): Likewise.
4400 (c_do_switch_warnings): Likewise.
4401 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
4402
04b391c1
JM
44032012-04-15 Jason Merrill <jason@redhat.com>
4404
4405 PR c++/52818
4406 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
4407 (C_STD_NAME): Distinguish between C++98 and C++11.
4408
ac868f29
EB
44092012-04-11 Eric Botcazou <ebotcazou@adacore.com>
4410
4411 PR target/52624
4412 * c-common.h (uint16_type_node): Rename into...
4413 (c_uint16_type_node): ...this.
4414 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
4415 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
4416
fd4116f4
MLI
44172012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
4418
4419 * c-common.c (warn_if_unused_value): Move definition to here.
4420 * c-common.h (warn_if_unused_value): Move declaration to here.
4421
573ac65e
WB
44222012-03-23 William Bader <williambader@hotmail.com>
4423
4424 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
4425
552b8185
JM
44262012-03-20 Jason Merrill <jason@redhat.com>
4427
4428 * c-common.h (enum cxx_dialect): Add cxx1y.
4429 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
4430 test.
4431 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
4432 * c-opts.c (c_common_post_options): Likewise.
4433 (set_std_cxx1y): New.
4434 (c_common_handle_option): Call it.
4435 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
4436
04398fa8
PC
44372012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
4438
4439 PR c++/14710
4440 * c.opt ([Wuseless-cast]): Add.
4441
d2a12ae7
RG
44422012-03-16 Richard Guenther <rguenther@suse.de>
4443
4444 * c-pretty-print.c (pp_c_initializer_list): Adjust.
4445
a12bf402
MLI
44462012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
4447
4448 PR c++/44783
4449 * c.opt (ftemplate-backtrace-limit) Add.
4450
5c30094f
RO
44512012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4452
4453 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
4454 handling.
4455 * c-pragma.c (handle_pragma_extern_prefix): Remove.
4456 (init_pragma): Don't register extern_prefix.
4457
21fa2faf
RG
44582012-03-12 Richard Guenther <rguenther@suse.de>
4459
4460 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
4461 (builtin_type_for_size): Likewise.
4462
e3793c6f
JJ
44632012-02-13 Jakub Jelinek <jakub@redhat.com>
4464
4465 PR c++/52215
4466 * c-common.c (sync_resolve_params): Don't decide whether to convert
4467 or not based on TYPE_SIZE comparison, convert whenever arg_type
4468 is unsigned INTEGER_TYPE.
4469
93286335
PC
44702012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
4471
4472 PR c/52118
4473 * c.opt ([Wunused-local-typedefs]): Fix description.
4474
7a421706
MS
44752012-01-24 Mike Stump <mikestump@comcast.net>
4476
4477 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
4478 exactly.
4479
ba9b1f11
RG
44802012-01-18 Richard Guenther <rguenther@suse.de>
4481
4482 * c-opts.c (c_common_post_options): Reset LTO flags if
4483 we are about to generate a PCH.
4484
465406be
PC
44852012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
4486
4487 PR c++/51777
4488 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
4489 use pp_unsigned_wide_integer.
4490
aee15221
RG
44912012-01-10 Richard Guenther <rguenther@suse.de>
4492
4493 PR middle-end/51806
4494 * c-opts.c (c_common_handle_option): Move -Werror handling
4495 to language independent code.
4496
5720c0dc
RG
44972012-01-05 Richard Guenther <rguenther@suse.de>
4498
4499 PR middle-end/51764
4500 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
4501 from common.opt.
4502
73ac190a
PC
45032011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
4504
4505 PR c++/51316
4506 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
4507 of array types with an unknown bound.
4508
48b0b196
JM
45092011-12-20 Joseph Myers <joseph@codesourcery.com>
4510
4511 * c-common.c (flag_isoc99): Update comment to refer to C11.
4512 (flag_isoc1x): Change to flag_isoc11.
4513 * c-common.h (flag_isoc99): Update comment to refer to C11.
4514 (flag_isoc1x): Change to flag_isoc11.
4515 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
4516 C11.
4517 * c-opts.c (set_std_c1x): Change to set_std_c11.
4518 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
4519 Call set_std_c11.
4520 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
4521 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
4522 * c.opt (std=c1x): Change to std=c11. Document as non-draft
4523 standard.
4524 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
4525 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
4526 (std=gnu1x): Make alias of std=gnu11.
4527
d58d6eb5
JM
45282011-12-19 Jason Merrill <jason@redhat.com>
4529
4530 PR c++/51228
4531 * c-common.c (handle_transparent_union_attribute): Check the first
4532 field if the type is complete.
4533
b3908fcc
JW
45342011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
4535
4536 PR libstdc++/51365
4537 * c-common.c (RID_IS_FINAL): Add.
4538 * c-common.h (RID_IS_FINAL): Add.
4539
fea3ca91
IS
45402011-11-30 Iain Sandoe <iains@gcc.gnu.org>
4541
4542 * c.opt (fgnu-runtime): Provide full description.
4543 (fnext-runtime): Likewise.
4544 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
4545
62bad7cd
AM
45462011-11-28 Andrew MacLeod <amacleod@redhat.com>
4547
4548 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
4549 predefines in one place. Add LOCK_FREE predefines.
4550 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
4551 new func.
4552
c466c4ff
AM
45532011-11-24 Andrew MacLeod <amacleod@redhat.com>
4554
4555 PR c/51256
9faeb493 4556 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 4557 conditions
9faeb493
UB
4558 (resolve_overloaded_atomic_exchange,
4559 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
4560 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
4561 error_mark_node for error conditions.
9faeb493 4562
a5952633
RG
45632011-11-08 Richard Guenther <rguenther@suse.de>
4564
4565 PR middle-end/51010
4566 c-family/
4567
0a35513e
AH
45682011-11-07 Richard Henderson <rth@redhat.com>
4569 Aldy Hernandez <aldyh@redhat.com>
4570 Torvald Riegel <triegel@redhat.com>
4571
4572 Merged from transactional-memory.
4573
4574 * c-common.c (handle_tm_wrap_attribute,
4575 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
4576 (struct c_common_reswords): Added __transaction* keywords.
4577 (struct c_common_attribute_table): Added transaction* and tm_regparm
4578 attributes.
4579 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
4580 masks.
4581 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
4582 find_tm_attribute): Declare.
4583
6d87092d
JM
45842011-11-07 Jason Merrill <jason@redhat.com>
4585
4586 PR c++/35688
4587 * c-common.c, c-common.h: Revert yesterday's changes.
4588
8e7860a1
JM
45892011-11-06 Jason Merrill <jason@redhat.com>
4590
4591 PR c++/35688
4592 * c-common.c (decl_has_visibility_attr): Split out from...
4593 (c_determine_visibility): ...here.
4594 * c-common.h: Declare it.
4595
d19fa6b5
JM
45962011-11-06 Joseph Myers <joseph@codesourcery.com>
4597
4598 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
4599 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
4600 type.
4601 (check_user_alignment): New. Split out of
4602 handle_aligned_attribute. Disallow integer constants with
4603 noninteger types. Conditionally allow zero.
4604 (handle_aligned_attribute): Use check_user_alignment.
4605 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
4606
86951993
AM
46072011-11-06 Andrew MacLeod <amacleod@redhat.com>
4608 Richard Henderson <rth@redhat.com>
4609
4610 Merged from cxx-mem-model.
4611
4612 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 4613 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
4614 parameters that are the same type size.
4615 (get_atomic_generic_size): New. Find size of generic
4616 atomic function parameters and do typechecking.
4617 (add_atomic_size_parameter): New. Insert size into parameter list.
4618 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
4619 either __atomic_exchange_n or external library call.
9faeb493 4620 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 4621 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 4622 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
4623 __atomic_load_n or an external library call.
4624 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
4625 __atomic_store_n or an external library call.
4626 (resolve_overloaded_builtin): Handle new __atomic builtins.
4627
cf9e9959
EB
46282011-11-04 Eric Botcazou <ebotcazou@adacore.com>
4629
4630 PR c++/50608
4631 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
4632 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
4633 <INDIRECT_REF>: Return the argument.
4634 <ARRAY_REF>: Remove special code for negative offset.
4635 Call fold_build_pointer_plus instead of size_binop.
4636 (fold_offsetof): Remove STOP_REF argument and adjust.
4637 * c-common.h (fold_offsetof_1): Declare.
4638 (fold_offsetof): Remove STOP_REF argument.
4639
25339f10
JM
46402011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
4641
4642 PR c++/50810
4643 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4644 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4645 Wnarrowing for C++0x and C++98.
4646 * c.opt ([Wnarrowing]): Update.
4647
89401152
PC
46482011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
4649
4650 PR c++/44277
4651 * c.opt: Add Wzero-as-null-pointer-constant.
4652
97e3ad20
JM
46532011-10-31 Jason Merrill <jason@redhat.com>
4654
15694fdd
JM
4655 * c.opt (-fdeduce-init-list): Off by default.
4656
97e3ad20
JM
4657 PR c++/50920
4658 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
4659 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
4660 and -Wc++11-compat.
4661 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
4662
fb9120e3
RAV
46632011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
4664
4665 PR c++/30066
4666 * c.opt (fvisibility-inlines-hidden): Description change.
4667
3ce4f9e4
ESR
46682011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
4669
4670 Implement C++11 user-defined literals.
4671 * c-common.c (build_userdef_literal): New.
4672 * c-common.def: New tree code.
4673 * c-common.h (tree_userdef_literal): New tree struct and accessors.
4674 * c-lex.c (interpret_float): Add suffix parm.
4675 (c_lex_with_flags): Build literal tokens.
4676
5f53c243
PC
46772011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4678
4679 PR c++/50841
4680 Revert:
4681 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4682
4683 PR c++/50810
4684 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4685 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4686 Wnarrowing for C++0x and C++98.
4687 * c.opt ([Wnarrowing]): Update.
4688
263734e1
PC
46892011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4690
4691 PR c++/50810
4692 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4693 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4694 Wnarrowing for C++0x and C++98.
4695 * c.opt ([Wnarrowing]): Update.
4696
d2e312d7
PC
46972011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
4698
4699 PR c++/45385
4700 * c-common.c (conversion_warning): Remove code looking for
4701 artificial operands.
4702
d17687f6
DS
47032011-10-18 Dodji Seketeli <dodji@redhat.com>
4704
4705 PR bootstrap/50760
4706 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 4707 !NO_IMPLICIT_EXTERN_C.
d17687f6 4708
fc8396e9
PC
47092011-10-17 Michael Spertus <mike_spertus@symantec.com>
4710
4711 * c-common.c (c_common_reswords): Add __bases,
4712 __direct_bases.
4713 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
4714
47152011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
4716
4717 PR c++/50757
4718 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
4719
847e697a
TT
47202011-10-15 Tom Tromey <tromey@redhat.com>
4721 Dodji Seketeli <dodji@redhat.com>
4722
4723 * c.opt (fdebug-cpp): New option.
4724 * c-opts.c (c_common_handle_option): Handle the option.
4725 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
4726 output stream in parameter. Factorized from ...
4727 (maybe_print_line): ... this. Dump location debug information when
4728 -fdebug-cpp is in effect.
4729 (print_line_1): New static function. Takes an output stream in
4730 parameter. Factorized from ...
4731 (print_line): ... here. Dump location information when -fdebug-cpp
4732 is in effect.
4733 (scan_translation_unit): Dump location information when
4734 -fdebug-cpp is in effect.
4735
92582b75
TT
47362011-10-15 Tom Tromey <tromey@redhat.com>
4737 Dodji Seketeli <dodji@redhat.com>
4738
4739 * c.opt (ftrack-macro-expansion): New option. Handle it with and
4740 without argument.
4741 * c-opts.c (c_common_handle_option)<case
4742 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
4743 cases. Handle -ftrack-macro-expansion with and without argument.
4744
46427374
TT
47452011-10-15 Tom Tromey <tromey@redhat.com>
4746 Dodji Seketeli <dodji@redhat.com>
4747
4748 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
4749 (print_line, cb_define, do_line_change): Adjust to avoid touching
4750 the internals of struct line_map. Use the public API instead.
4751 * c-pch.c (c_common_read_pch): Likewise.
4752 * c-lex.c (fe_file_change): Likewise.
4753
fc8396e9
PC
47542011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
4755
4756 PR c++/17212
4757 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
4758
47592011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
4760
4761 PR c++/33067
4762 * c-pretty-print.c (pp_c_floating_constant): Output
4763 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
4764
e79983f4
MM
47652011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
4766
4767 * c-common.c (def_builtin_1): Delete old interface with two
4768 parallel arrays to hold standard builtin declarations, and replace
4769 it with a function based interface that can support creating
4770 builtins on the fly in the future. Change all uses, and poison
4771 the old names. Make sure 0 is not a legitimate builtin index.
4772 * c-omp.c (c_finish_omp_barrier): Ditto.
4773 (c_finish_omp_taskwait): Ditto.
4774 (c_finish_omp_flush): Ditto.
4775
6637388f
TG
47762011-10-11 Tristan Gingold <gingold@adacore.com>
4777
4778 * c.opt: (fallow-parameterless-variadic-functions): New.
4779
3797cb21
DS
47802011-09-08 Dodji Seketeli <dodji@redhat.com>
4781
4782 PR c++/33255 - Support -Wunused-local-typedefs warning
4783 * c-common.h (struct c_language_function::local_typedefs): New
4784 field.
9faeb493
UB
4785 (record_locally_defined_typedef, maybe_record_typedef_use)
4786 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 4787 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
4788 (maybe_record_typedef_use)
4789 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
4790 * c.opt: Declare new -Wunused-local-typedefs flag.
4791
693ddb1b
EB
47922011-09-06 Eric Botcazou <ebotcazou@adacore.com>
4793
4794 PR middle-end/50266
4795 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
4796 computations.
4797
830c740f
RG
47982011-09-05 Richard Guenther <rguenther@suse.de>
4799
4800 * c-common.c (complete_array_type): Use ssize_int (-1) instead
4801 of integer_minus_one_node for empty array upper bounds.
4802
892a371f
DS
48032011-08-28 Dodji Seketeli <dodji@redhat.com>
4804
4805 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
4806 it's the first time it's being called on this main TU.
4807
0e3fdb48
RB
48082011-08-24 Richard Guenther <rguenther@suse.de>
4809
4810 PR c/49396
4811 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
4812
48132011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
4814
4815 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
4816 defined in cpp_init_builtins and c_cpp_builtins.
4817
d4a83c10
JM
48182011-08-19 Joseph Myers <joseph@codesourcery.com>
4819
4820 * c-common.c (c_common_reswords): Add __builtin_complex.
4821 * c-common.h (RID_BUILTIN_COMPLEX): New.
4822
bbceee64
JM
48232011-08-18 Joseph Myers <joseph@codesourcery.com>
4824
4825 * c-common.c (c_common_reswords): Add _Noreturn.
4826 (keyword_is_function_specifier): Handle RID_NORETURN.
4827 * c-common.h (RID_NORETURN): New.
4828
0e3a99ae
AS
48292011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4830
4831 * c-common.c (unsafe_conversion_p): New function. Check if it is
4832 unsafe to convert an expression to the type.
4833 (conversion_warning): Adjust, use unsafe_conversion_p.
4834 * c-common.h (unsafe_conversion_p): New function declaration.
4835
20906c66
JJ
48362011-08-02 Jakub Jelinek <jakub@redhat.com>
4837
4838 * c-common.h (c_finish_omp_atomic): Adjust prototype.
4839 (c_finish_omp_taskyield): New prototype.
4840 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
4841 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
4842 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
4843 or RHS1 have side-effects, evaluate those too in the right spot,
4844 if it is a decl and LHS is also a decl, error out if they
4845 aren't the same.
4846 (c_finish_omp_taskyield): New function.
4847 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
4848 * c-pragma.c (omp_pragmas): Add taskyield.
4849 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
4850 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
4851 PRAGMA_OMP_CLAUSE_MERGEABLE.
4852
770e5a2e
DS
48532011-07-25 Dodji Seketeli <dodji@redhat.com>
4854
4855 * c-common.h (set_underlying_type): Remove parm name from
4856 declaration.
4857
1baae426
RG
48582011-07-25 Romain Geissler <romain.geissler@gmail.com>
4859
4860 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 4861
fcb21722
JM
48622011-07-22 Jason Merrill <jason@redhat.com>
4863
76f86d00
JM
4864 PR c++/49793
4865 * c.opt (Wnarrowing): New.
4866
3a636414
JM
4867 PR c++/30112
4868 * c-common.h: Declare c_linkage_bindings.
4869 * c-pragma.c (handle_pragma_redefine_extname): Use it.
4870
fcb21722
JM
4871 PR c++/49813
4872 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
4873 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
4874 as flag_isoc99 for 'restrict'.
4875 (pp_c_specifier_qualifier_list): Likewise for _Complex.
4876
02614448
ILT
48772011-07-21 Ian Lance Taylor <iant@google.com>
4878
4879 PR middle-end/49705
4880 * c-common.c (c_disable_warnings): New static function.
4881 (c_enable_warnings): New static function.
4882 (c_fully_fold_internal): Change local unused_p to bool. Call
4883 c_disable_warnings and c_enable_warnings rather than change
4884 c_inhibit_evaluation_warnings.
4885
34429675
JM
48862011-07-20 Jason Merrill <jason@redhat.com>
4887
4888 PR c++/6709 (DR 743)
4889 PR c++/42603 (DR 950)
4890 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
4891 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
4892 (CPP_DECLTYPE): New.
4893 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
4894
5d49b6a7
RG
48952011-07-19 Richard Guenther <rguenther@suse.de>
4896
4897 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
4898 * c-omp.c (c_finish_omp_for): Likewise.
4899
e84a58ff
EB
49002011-07-12 Eric Botcazou <ebotcazou@adacore.com>
4901
4902 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
4903 body on the next line.
4904
329af3c7
JM
49052011-07-08 Jason Merrill <jason@redhat.com>
4906
4063e61b
JM
4907 PR c++/45437
4908 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
4909
329af3c7
JM
4910 PR c++/49673
4911 * c-common.c (c_apply_type_quals_to_decl): Don't check
4912 TYPE_NEEDS_CONSTRUCTING.
4913
1a072294
RG
49142011-07-06 Richard Guenther <rguenther@suse.de>
4915
4916 * c-common.c (c_common_nodes_and_builtins):
4917 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
4918
fce5dddd
RG
49192011-07-05 Richard Guenther <rguenther@suse.de>
4920
4921 * c-common.c (c_common_nodes_and_builtins): Build all common
4922 tree nodes first.
4923
45d439ac
JJ
49242011-06-27 Jakub Jelinek <jakub@redhat.com>
4925
56300785
JJ
4926 * c-common.h (c_tree_chain_next): New static inline function.
4927
45d439ac
JJ
4928 * c-common.c (check_builtin_function_arguments): Handle
4929 BUILT_IN_ASSUME_ALIGNED.
4930
e0a8ecf2
AM
49312011-06-21 Andrew MacLeod <amacleod@redhat.com>
4932
4933 * c-common.c: Add sync_ or SYNC__ to builtin names.
4934 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
4935
49362011-06-20 Pierre Vittet <piervit@pvittet.com>
4937
4938 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
4939 handler.
4940 (gen_pragma_handler): New union.
4941 (internal_pragma_handler): New type.
4942 (c_register_pragma_with_data)
4943 (c_register_pragma_with_expansion_and_data): New functions.
4944
4945 * c-pragma.c (registered_pragmas, c_register_pragma_1)
4946 (c_register_pragma, c_register_pragma_with_expansion)
4947 (c_invoke_pragma_handler): Changed to work with
4948 internal_pragma_handler.
4949 (c_register_pragma_with_data)
4950 (c_register_pragma_with_expansion_and_data): New functions.
4951
677f3fa8
JM
49522011-06-14 Joseph Myers <joseph@codesourcery.com>
4953
4954 * c-common.c: Include common/common-target.h.
4955 (handle_section_attribute): Use
4956 targetm_common.have_named_sections.
4957 * c-cppbuiltin.c: Include common/common-target.h.
4958 (c_cpp_builtins): Use targetm_common.except_unwind_info.
4959
d7fc8c14
RG
49602011-06-10 Richard Guenther <rguenther@suse.de>
4961
4962 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
4963 to print a IDENTIFIER_NODE.
4964
10e48e39
RO
49652011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4966 Joseph Myers <joseph@codesourcery.com>
4967
4968 * c.opt (fbuilding-libgcc): New option.
4969 * c-cppbuiltin.c (c_cpp_builtins): Define
4970 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
4971
6976ae51
JM
49722011-06-07 Jason Merrill <jason@redhat.com>
4973
3ff60975
JM
4974 * c-common.c (max_tinst_depth): Lower default to 900.
4975
6976ae51
JM
4976 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
4977
009db074
RG
49782011-06-07 Richard Guenther <rguenther@suse.de>
4979
4980 * c-common.c (c_common_nodes_and_builtins): Do not set
4981 size_type_node or call set_sizetype.
4982
b4592b92
DS
49832011-06-07 Dodji Seketeli <dodji@redhat.com>
4984
4985 PR debug/49130
4986 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 4987 type when using pointer comparison to compare types.
b4592b92 4988
014ab419
JW
49892011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
4990
4991 * c.opt: Add -Wdelete-non-virtual-dtor.
4992 * c-opts.c (c_common_handle_option): Include it in -Wall.
4993
4f60111f
NF
49942011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
4995
4996 PR bootstrap/49190
4997
4998 Revert:
4999 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5000
5001 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
5002 not tree_common.
5003
4cc4f2f4
JJ
50042011-05-27 Jakub Jelinek <jakub@redhat.com>
5005
5006 PR c++/49165
5007 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
5008 C++ don't call c_common_truthvalue_conversion on void type arms.
5009
38e01f9e
NF
50102011-05-27 Nathan Froyd <froydnj@codesourcery.com>
5011
5012 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
5013 (stmt_list_stack): Define.
5014 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
5015 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
5016
92e948a8
NF
50172011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5018
5019 * c-common.c (warning_candidate_p): Check for BLOCKs.
5020
a2fc3e63
NF
50212011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5022
5023 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
5024 not tree_common.
5025
0957c029
JJ
50262011-05-25 Jakub Jelinek <jakub@redhat.com>
5027
5028 * c-common.c (def_fn_type): Remove extra va_end.
5029
828fb3ba
JM
50302011-05-23 Jason Merrill <jason@redhat.com>
5031
5032 PR c++/48106
5033 * c-common.c (c_common_get_narrower): New.
5034 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
5035
dde05067
NF
50362011-05-23 Nathan Froyd <froydnj@codesourcery.com>
5037
5038 * c-common.h (check_function_arguments): Tweak prototype of
5039 check_function_arguments.
5040 * c-common.c (check_function_arguments): Likewise. Adjust
5041 calls to check_function_nonnull, check_function_format, and
5042 check_function_sentinel.
5043 (check_function_sentinel): Take a FUNCTION_TYPE rather than
5044 separate attributes and typelist arguments. Use
5045 FOREACH_FUNCTION_ARGS to iterate over argument types.
5046
3c0d13bf
PC
50472011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
5048
5049 * c-common.c (c_common_reswords): Reorder.
5050 * c-common.h (rid): Likewise.
5051
8242dd04
NF
50522011-05-10 Nathan Froyd <froydnj@codesourcery.com>
5053
5054 * c-common.c (def_fn_type): Don't call build_function_type, call
5055 build_function_type_array or build_varargs_function_type_array
5056 instead.
5057 (c_common_nodes_and_builtins): Likewise.
5058
3d528853
NF
50592011-05-05 Nathan Froyd <froydnj@codesourcery.com>
5060
5061 * c-common.c (c_add_case_label): Omit the loc argument to
5062 build_case_label.
5063 * c-common.h (build_case_label): Remove.
5064 * c-semantics.c (build_case_label): Remove.
5065
a04a722b
JM
50662011-05-05 Joseph Myers <joseph@codesourcery.com>
5067
5068 * c-objc.h (objc_start_method_definition): Update prototype.
5069 * stub-objc.c (objc_start_method_definition): Add extra parameter.
5070
e19a18d4
NF
50712011-05-04 Nathan Froyd <froydnj@codesourcery.com>
5072
5073 * c-common.c (check_main_parameter_types): Reindent. Don't use
5074 TYPE_ARG_TYPES directly.
5075 (handle_nonnull_attribute): Likewise.
5076 (sync_resolve_params): Likewise.
5077 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
5078 to check_format_string.
5079 (handle_format_attribute): Likewise.
5080 (check_format_string): Take a function type to examine instead of
5081 a type list. Use a function_arg_iterator to step through argument
5082 types.
5083
c62c040f
RG
50842011-05-04 Richard Guenther <rguenther@suse.de>
5085
5086 * c-common.c (fix_string_type): Use size_int for index type bounds.
5087 (start_fname_decls): Do not pass NULL to build_int_cst.
5088 (c_init_attributes): Likewise.
5089 * c-lex.c (c_lex_with_flags): Likewise.
5090
c12ff9d8
JM
50912011-04-27 Jason Merrill <jason@redhat.com>
5092
5093 * c-common.c (make_tree_vector_from_list): New.
5094 * c-common.h: Declare it.
5095
304dfbe3
RG
50962011-04-26 Richard Guenther <rguenther@suse.de>
5097
5098 PR preprocessor/48248
5099 * c-ppoutput.c (maybe_print_line): Always optimize newlines
5100 for output size with -P.
5101
3c0d13bf
PC
51022011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
5103
5104 * c-common.c (struct c_common_resword): Add __underlying_type.
5105 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
5106
04695783
JM
51072011-04-20 Jim Meyering <meyering@redhat.com>
5108
5109 * c-format.c (init_dollar_format_checking): Remove useless
5110 if-before-free.
5111
0dc33c3c
NP
51122011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
5113
5114 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 5115 (objc_detect_field_duplicates): New.
0dc33c3c 5116 * stub-objc.c: Likewise.
3c0d13bf 5117
c59633d9
NP
51182011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5119
5120 * stub-objc.c (objc_declare_protocols): Renamed to
5121 objc_declare_protocol.
5122 * c-objc.h: Likewise.
3c0d13bf 5123
32dabdaf
NP
51242011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5125
5126 * stub-objc.c (objc_declare_class): Updated argument name.
5127
81f653d6
NF
51282011-04-12 Nathan Froyd <froydnj@codesourcery.com>
5129
5130 * c-common.h (c_common_init_ts): Declare.
5131 * c-common.c (c_common_init_ts): Define.
5132
eb345401
NP
51332011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5134
5135 * c-objc.h (objc_build_message_expr): Updated prototype.
5136 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 5137
a358e188
MJ
51382011-04-12 Martin Jambor <mjambor@suse.cz>
5139
5140 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
5141 of cgraph_node.
5142
e6313a78
RG
51432011-04-11 Richard Guenther <rguenther@suse.de>
5144
5145 * c-common.c (complete_array_type): Build a range type of
5146 proper type.
5147
dcf0c47e
NF
51482011-04-08 Nathan Froyd <froydnj@codesourcery.com>
5149
5150 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
5151 (handle_type_generic_attribute): Likewise.
5152
1ee44b26
JM
51532011-04-07 Jason Merrill <jason@redhat.com>
5154
5155 PR c++/48450
5156 * c-common.c (c_common_truthvalue_conversion): Don't ignore
5157 conversion from C++0x scoped enum.
5158
acce4e77
JM
51592011-04-06 Joseph Myers <joseph@codesourcery.com>
5160
5161 * c-target-def.h: New file.
5162 * c-target.def: New file.
5163 * c-target.h: New file.
5164 * c-common.c (targetcm): Don't define here.
5165 * c-common.h (default_handle_c_option): Declare.
5166 * c-format.c: Include c-target.h instead of target.h.
5167 * c-opts.c: Include c-target.h instead of target.h. Explicitly
5168 include tm.h.
5169 (default_handle_c_option): Move from targhooks.c.
5170
e2eefb55
JJ
51712011-03-29 Jakub Jelinek <jakub@redhat.com>
5172
5173 PR preprocessor/48248
5174 * c-ppoutput.c (print): Add src_file field.
5175 (init_pp_output): Initialize it.
5176 (maybe_print_line): Don't optimize by adding up to 8 newlines
5177 if map->to_file and print.src_file are different file.
5178 (print_line): Update print.src_file.
5179
ba78087b
KT
51802011-03-25 Kai Tietz <ktietz@redhat.com>
5181
5182 * c-ada-spec.c (compare_comment): Use filename_cmp
5183 instead of strcmp for filename.
5184
0edf1bb2
JL
51852011-03-25 Jeff Law <law@redhat.com>
5186
adfac8df 5187 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 5188
c7dc8804
JM
51892011-03-25 Jason Merrill <jason@redhat.com>
5190
5191 * c.opt: Add -std=c++03.
5192
d1d879b1
EB
51932011-03-22 Eric Botcazou <ebotcazou@adacore.com>
5194
5195 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
5196
62d784f7
KT
51972011-03-17 Kai Tietz
5198
5199 PR target/12171
5050afdf
KT
5200 * c-pretty-print.c (pp_c_specifier_qualifier_list):
5201 Display allowed attributes for function pointer types.
5202 (pp_c_attributes_display): New function to display
5203 attributes having affects_type_identity flag set to true.
5204 * c-pretty-print.h (pp_c_attributes_display): New prototype.
5205
62d784f7
KT
5206 * c-common.c (c_common_attribute_table):
5207 Add new element.
5208 (c_common_format_attribute_table): Likewise.
5209
82d37118
JM
52102011-03-18 Jason Merrill <jason@redhat.com>
5211
49a000c3
JM
5212 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
5213 * c-common.h: Don't declare it here.
5214 * c-common.c: Or define it here.
5215 * c-opts.c (c_common_handle_option): Or set it here.
5216
82d37118
JM
5217 PR c++/35315
5218 * c-common.c (handle_transparent_union_attribute): Don't
5219 make a duplicate type in C++.
5220
17bc631c
JM
52212011-03-15 Jason Merrill <jason@redhat.com>
5222
5223 * c-common.c (max_constexpr_depth): New.
5224 * c-common.h: Declare it.
5225 * c-opts.c (c_common_handle_option): Set it.
5226 * c.opt (fconstexpr-depth): New option.
5227
1b9b91a6
JM
52282011-03-11 Jason Merrill <jason@redhat.com>
5229
f231b5ff
JM
5230 * c-common.c (attribute_takes_identifier_p): Add missing const.
5231
1b9b91a6
JM
5232 PR c++/46803
5233 * c-common.c (attribute_takes_identifier_p): Assume that an
5234 unknown attribute takes an identifier.
5235
a19e4d44
NF
52362011-03-07 Nathan Froyd <froydnj@codesourcery.com>
5237
5238 PR c/47786
5239 * c-common.c (c_type_hash): Call list_length instead of iterating
5240 through DECL_CHAIN. Rename 'i' to 'n_elements'.
5241
982d62f6
JJ
52422011-02-19 Jakub Jelinek <jakub@redhat.com>
5243
5244 PR c/47809
5245 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
5246
0a256240
NP
52472011-02-17 Iain Sandoe <iains@gcc.gnu.org>
5248
5249 * c.opt (fobjc-abi-version=) New.
5250 (fobjc-nilcheck): New.
5251
ba9e6dd5
NF
52522011-02-03 Nathan Froyd <froydnj@codesourcery.com>
5253
5254 PR c++/46890
5255 * c-common.h (keyword_is_decl_specifier): Declare.
5256 * c-common.c (keyword_is_decl_specifier): Define.
5257 (keyword_is_function_specifier): New function.
5258
7273813a
JJ
52592011-01-26 Jakub Jelinek <jakub@redhat.com>
5260
5261 PR c/47473
5262 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
5263 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
5264 REAL_TYPE.
5265
908ef79b
AC
52662011-01-26 Arnaud Charlet <charlet@adacore.com>
5267
5268 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
5269
237e9384
JJ
52702011-01-26 Jakub Jelinek <jakub@redhat.com>
5271
5272 PR pch/47430
5273 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
5274 after init_c_lex if pch_file is set.
5275
47ea1edf
DK
52762011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
5277
d4dba752 5278 PR c++/43601
47ea1edf
DK
5279 * c.opt (-fkeep-inline-dllexport): New switch.
5280
2aa9c6ae
RG
52812011-01-12 Richard Guenther <rguenther@suse.de>
5282
5283 PR middle-end/32511
5284 * c-common.c (handle_weak_attribute): Warn instead of error
5285 on declaring an inline function weak.
5286
7bd11157
TT
52872011-01-05 Tom Tromey <tromey@redhat.com>
5288
5289 * c-common.h (lvalue_error): Update.
5290 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
5291 not error.
5292
0e66e494 52932010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 5294
b4f588c4
NP
5295 PR objc/47075
5296 * c-objc.h (objc_finish_message_expr): Added argument to
5297 prototype.
5298
f4da8dce
NF
52992010-12-22 Nathan Froyd <froydnj@codesourcery.com>
5300
5301 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
5302 Use prototype_p.
5303
46270f14
NP
53042010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
5305
5306 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 5307 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 5308
4816c593
NF
53092010-12-10 Nathan Froyd <froydnj@codesourcery.com>
5310
5311 * c-common.h (readonly_error): Declare.
5312 * c-common.c (readonly_error): Define.
5313
7a6daeb0
NF
53142010-12-09 Nathan Froyd <froydnj@codesourcery.com>
5315
5316 * c-common.h (invalid_indirection_error): Declare.
5317 * c-common.c (invalid_indirection_error): Define.
5318
892f6119
RG
53192010-12-03 Richard Guenther <rguenther@suse.de>
5320
5321 PR c/46745
5322 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
5323 (pp_c_unary_expression): Likewise.
5324 (pp_c_expression): Likewise.
5325
6c39e757
NP
53262010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
5327
5328 * c-common.h (objc_finish_function): New.
5329 (objc_non_volatilized_type): Removed.
5330 (objc_type_quals_match): Removed.
5331 * stub-objc.c (objc_finish_function): New.
5332 (objc_non_volatilized_type): Removed.
5333 (objc_type_quals_match): Removed.
9faeb493 5334
7c475d11
JM
53352010-11-30 Joseph Myers <joseph@codesourcery.com>
5336
5337 * c-common.h (parse_optimize_options): Declare.
5338 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
5339 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
5340
71f3e391
JM
53412010-11-29 Joseph Myers <joseph@codesourcery.com>
5342
5343 * c-opts.c (check_deps_environment_vars): Use getenv instead of
5344 GET_ENVIRONMENT.
5345 * c-pch.c (O_BINARY): Don't define here.
5346 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
5347
d5fabb58
JM
53482010-11-25 Joseph Myers <joseph@codesourcery.com>
5349
5350 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
5351 targetm.except_unwind_info.
5352
299404a1
JM
53532010-11-23 Joseph Myers <joseph@codesourcery.com>
5354
5355 * c-opts.c (c_common_handle_option): Pass location to
5356 set_struct_debug_option.
5357
c98cd5bf
JM
53582010-11-23 Joseph Myers <joseph@codesourcery.com>
5359
5360 * c-common.c (visibility_options): Move from ../opts.c.
5361 * c-common.h (struct visibility_flags, visibility_options):
5362 Declare here.
5363 * c-opts.c (finish_options): Rename to c_finish_options.
5364 (c_common_init): Update call to finish_options.
5365
a9546771
NP
53662010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
5367
5368 PR objc/34033
5369 * c-lex.c (lex_string): Check that each string in an Objective-C
5370 string concat sequence starts with either one or zero '@', and
5371 that there are no spurious '@' signs at the end.
5372
24a57808
JM
53732010-11-20 Joseph Myers <joseph@codesourcery.com>
5374
5375 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
5376 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
5377 HANDLE_PRAGMA_VISIBILITY.
5378 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
5379 HANDLE_PRAGMA_VISIBILITY): Don't define.
5380 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
5381
a9aa2c3a
NF
53822010-11-20 Nathan Froyd <froydnj@codesourcery.com>
5383
5384 PR c++/16189
5385 PR c++/36888
5386 PR c++/45331
5387 * c-common.h (keyword_begins_type_specifier): Declare.
5388 (keyword_is_storage_class_specifier): Declare.
5389 (keyword_is_type_qualifier): Declare.
5390 * c-common.c (keyword_begins_type_specifier): New function.
5391 (keyword_is_storage_class_specifier): New function.
5392 (keyword_is_type_qualifier): Declare.
5393
5386338c
JM
53942010-11-19 Joseph Myers <joseph@codesourcery.com>
5395
5396 PR c/46547
5397 * c-common.c (in_late_binary_op): Define.
5398 (c_common_truthvalue_conversion): Check in_late_binary_op before
5399 calling c_save_expr.
5400 * c-common.h (in_late_binary_op): Declare.
5401
69ccdddb
JM
54022010-11-19 Joseph Myers <joseph@codesourcery.com>
5403
5404 * c-opts.c (c_common_handle_option): Update calls to
5405 set_struct_debug_option.
5406
6b192a09
NP
54072010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
5408
5409 * c-common.h (objc_declare_protocols): Added additional argument.
5410 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 5411
fb52b50a
NF
54122010-11-18 Nathan Froyd <froydnj@codesourcery.com>
5413
5414 PR c/33193
5415 * c-common.h (build_real_imag_expr): Declare.
5416 * c-semantics.c (build_real_imag_expr): Define.
5417
b37421c6
JM
54182010-11-17 Joseph Myers <joseph@codesourcery.com>
5419
5420 * c-opts.c (c_common_parse_file): Take no arguments.
5421 * c-common.h (c_common_parse_file): Update prototype.
5422
07078664
JJ
54232010-11-16 Jakub Jelinek <jakub@redhat.com>
5424
5425 PR c++/46401
5426 * c-common.c (warning_candidate_p): Don't track non-const calls
5427 or STRING_CSTs.
5428
c6a13190
ILT
54292010-11-15 Ian Lance Taylor <iant@google.com>
5430
5431 * c-lex.c (init_c_lex): Set macro debug callbacks if
5432 flag_dump_go_spec is set.
5433
925e8657
NP
54342010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
5435
5436 * c-common.h (objc_build_incr_expr_for_property_ref): New.
5437 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
5438
bb0a9581
NF
54392010-11-15 Nathan Froyd <froydnj@codesourcery.com>
5440
5441 PR preprocessor/45038
5442 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
5443 dialects.
5444
c5fa0890
JM
54452010-11-12 Joseph Myers <joseph@codesourcery.com>
5446
5447 * c-common.h (c_family_lang_mask): Declare.
5448 * c-opts.c (c_family_lang_mask): Make extern.
5449 * c-pragma.c (handle_pragma_diagnostic): Use
5450 control_warning_option.
5451
a4d8c676
JM
54522010-11-12 Joseph Myers <joseph@codesourcery.com>
5453
5454 * c-common.c (parse_optimize_options): Update call to
5455 decode_options.
5456 * c-common.h (c_common_handle_option): Update prototype.
5457 * c-opts.c (c_common_handle_option): Take location_t parameter and
5458 pass it to other functions.
5459
f954bd2c
JM
54602010-11-11 Joseph Myers <joseph@codesourcery.com>
5461
5462 * c-opts.c (warning_as_error_callback): Remove.
5463 (c_common_initialize_diagnostics): Don't call
5464 register_warning_as_error_callback.
5465 (c_common_handle_option): Handle -Werror=normalized= here.
5466
d8a07487
JM
54672010-11-10 Joseph Myers <joseph@codesourcery.com>
5468
5469 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
5470 in diagnostic.
5471 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
5472 letter.
5473 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
5474 Remove trailing '.' from diagnostics.
5475 * c.opt (Wwrite-strings_: Avoid '`' in help text.
5476
d5478783
JM
54772010-11-10 Joseph Myers <joseph@codesourcery.com>
5478
5479 * c-common.c (parse_optimize_options): Pass global_dc to
5480 decode_options.
5481 * c-opts.c (c_common_handle_option): Pass &global_options to
5482 set_Wstrict_aliasing.
5483 * c.opt (v): Don't mark Common or document here.
5484
91ebb981
IS
54852010-11-06 Iain Sandoe <iains@gcc.gnu.org>
5486
5487 PR target/44981
5488 * c-format.c (format_type): New type gcc_objc_string_format_type.
5489 (valid_stringptr_type_p): New.
5490 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 5491 (check_format_string): Pass expected type, use
91ebb981
IS
5492 valid_stringptr_type_p (), check that the format string types are
5493 consistent with the format specification.
5494 (decode_format_attr): Warn if NSString is used outside objective-c.
5495 (format_types_orig): Add NSString.
5496 (format_name): New.
5497 (format_flags): New.
5498 (check_format_arg): Handle format strings requiring an external parser.
5499 first_target_format_type: New variable.
5500 (handle_format_attribute): Set up first_target_format_type, pass the
5501 expected format arg string type to check_format_string().
5502 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
5503 * stub-objc.c (objc_string_ref_type_p): New.
5504 (objc_check_format_arg): New.
5505
bede2adc
NP
55062010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
5507
9faeb493 5508 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
5509 * c-common.h (objc_build_class_component_ref): New.
5510 * stub-objc.c (objc_build_class_component_ref): New.
5511
9a179d01
NP
55122010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
5513
5514 * c.opt (Wproperty-assign-default): New option.
5515
22d8d616
NP
55162010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
5517
5518 Implemented -fobjc-std=objc1 flag.
5519 * c.opt (fobjc-std=objc1): New option.
5520
2debdb4f
NP
55212010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
5522
5523 Implemented format and noreturn attributes for Objective-C methods.
5524 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
5525 attribute for Objective-C methods.
5526
ec52b111
JM
55272010-10-31 Jason Merrill <jason@redhat.com>
5528
5529 * c-common.c (conversion_warning, warn_for_collisions_1): Use
5530 EXPR_LOC_OR_HERE.
5531
46a88c12
NP
55322010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
5533
5534 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
5535 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
5536 (objc_add_property_declaration): Removed arguments for copies and
5537 ivar.
5538 (objc_build_getter_call): Renamed to
5539 objc_maybe_build_component_ref.
5540 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
5541 (objc_is_property_ref): New.
5542 * c-common.c (c_common_reswords): Removed copies and ivar.
5543 * stub-objc.c (objc_add_property_declaration): Removed arguments
5544 for copies and ivar.
5545 (objc_build_getter_call): Renamed to
5546 objc_maybe_build_component_ref.
5547 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
5548 (objc_is_property_ref): New.
9faeb493 5549
1e4bf85b
AC
55502010-10-29 Arnaud Charlet <charlet@adacore.com>
5551 Matthew Gingell <gingell@adacore.com>
5552
5553 * c-ada-spec.c (separate_class_package): New function.
5554 (pp_ada_tree_identifier): Prefix references to C++ classes with the
5555 name of their enclosing package.
5556 (print_ada_declaration): Use separate_class_package.
5557
81f0bab2
JM
55582010-10-27 Jason Merrill <jason@redhat.com>
5559
2b08f2c5
JM
5560 * c-common.c (c_common_reswords): Add __is_literal_type.
5561 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
5562
81f0bab2
JM
5563 * c-common.c (check_case_value): Remove special C++ code.
5564
200290f2
NP
55652010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
5566
5567 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
5568 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
5569 and RID_LAST_PATTR.
5570 (objc_add_property_declaration): Added additional arguments.
5571 (objc_property_attribute_kind): Removed.
5572 (objc_set_property_attr): Removed.
5573 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
5574 copy and nonatomic.
5575 * stub-objc.c (objc_add_property_declaration): Added additional
5576 arguments.
5577 (objc_set_property_attr): Removed.
9faeb493 5578
f614132b
NP
55792010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
5580
5581 * c-common.h (objc_add_property_variable): Renamed to
5582 objc_add_property_declaration. Added location argument.
5583 * stub-objc.c (objc_add_property_variable): Same change.
b1726d6c 5584
b8a18805
NP
55852010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
5586
5587 * c-common.h (objc_maybe_printable_name): New.
5588 * stub-objc.c (objc_maybe_printable_name): New.
5589
30cd1c5d
AS
55902010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
5591 Andrew Pinski <pinskia@gmail.com>
5592
5593 * c-common.h (c_common_mark_addressable_vec): Declare.
5594 * c-common.c (c_common_mark_addressable_vec): New function.
5595
249a82c4
NP
55962010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
5597
5598 * c-common.h (objc_set_method_type): Removed.
5599 (objc_add_method_declaration): Added boolean argument.
5600 (objc_start_method_definition): Same change.
5601 (objc_build_method_signature): Same change.
5602 * stub-objc.c (objc_set_method_type): Removed.
5603 (objc_add_method_declaration): Added boolean argument.
5604 (objc_start_method_definition): Same change.
5605 (objc_build_method_signature): Same change.
5606
977e30bc
NP
56072010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
5608
5609 * c-common.h (finish_file): Removed.
5610 (objc_write_global_declarations): New.
5611 * c-opts.c (c_common_parse_file): Do not call finish_file.
5612 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 5613
da57d1b9
NP
56142010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
5615
5616 Implemented parsing @synthesize and @dynamic for
5617 Objective-C/Objective-C++.
5618 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
5619 (objc_add_synthesize_declaration): New.
5620 (objc_add_dynamic_declaration): New.
5621 * c-common.c (c_common_reswords): Add synthesize and dynamic.
5622 * stub-objc.c (objc_add_synthesize_declaration): New.
5623 (objc_add_dynamic_declaration): New.
9faeb493 5624
0069111f
MM
56252010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
5626
5627 PR target/46041
5628 * c-cppbuiltin.c (mode_has_fma): Move function here from
5629 builtins.c. Don't use the fma optab, instead just use the
5630 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
5631 using -save-temps.
5632
e426b47b
NP
56332010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
5634
5635 Merge from 'apple/trunk' branch on FSF servers.
0069111f 5636
e426b47b
NP
5637 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
5638
9faeb493 5639 Radar 4330422
e426b47b
NP
5640 * c-common.h (objc_non_volatilized_type): New declaration
5641 * stub-objc.c (objc_non_volatilized_type): New stub.
5642
90fbfdc3
NP
56432010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
5644
e426b47b 5645 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
5646
5647 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
5648
9faeb493 5649 Radar 4133425
90fbfdc3 5650 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 5651 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 5652
c37d8c30
IS
56532010-10-17 Iain Sandoe <iains@gcc.gnu.org>
5654
5655 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
5656 * c-common.h (enum rid): Add RID_AT_PACKAGE.
5657 (objc_ivar_visibility_kind): New enum.
5658 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 5659 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
5660 visibility enum.
5661
1b1562a5
MM
56622010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5663
5664 * c-cppbuiltin.c (builtin_define_float_constants): Emit
5665 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
5666 has the appropriate fma builtins.
5667 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
5668
668ea4b1
IS
56692010-10-14 Iain Sandoe <iains@gcc.gnu.org>
5670
1b1562a5 5671 merge from FSF apple 'trunk' branch.
668ea4b1 5672 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 5673
668ea4b1
IS
5674 Radars 4436866, 4505126, 4506903, 4517826
5675 * c-common.c (c_common_resword): Define @property and its attributes.
5676 * c-common.h: Define property attribute enum entries.
5677 (OBJC_IS_PATTR_KEYWORD): New.
5678 (objc_property_attribute_kind): New enum.
5679 Declare objc_set_property_attr (), objc_add_property_variable (),
5680 objc_build_getter_call () and objc_build_setter_call ().
5681 * stub-objc.c (objc_set_property_attr): New stub.
5682 (objc_add_property_variable): Likewise.
5683 (objc_build_getter_call): Likewise.
5684 (objc_build_setter_call) Likewise.
1b1562a5 5685
a1178b30
IS
56862010-10-13 Iain Sandoe <iains@gcc.gnu.org>
5687
1b1562a5 5688 merge from FSF apple 'trunk' branch.
a1178b30
IS
5689 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
5690
5691 Radar 3803157 (method attributes)
5692 * c-common.c (handle_deprecated_attribute): Recognize
5693 objc methods as valid declarations.
5694 * c-common.h: Declare objc_method_decl ().
1b1562a5 5695 * stub-objc.c (objc_method_decl): New stub.
a1178b30 5696
a75bfaa6
JM
56972010-10-08 Joseph Myers <joseph@codesourcery.com>
5698
5699 * c-common.c (parse_optimize_options): Call
5700 decode_cmdline_options_to_array_default_mask before
5701 decode_options. Update arguments to decode_options.
5702 * c-common.h (c_common_init_options_struct): Declare.
5703 * c-opts.c (c_common_init_options_struct): New. Split out from
5704 c_common_init_options.
5705
f05b9d93
NP
57062010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
5707
5708 Implemented fast enumeration for Objective-C.
5709 * c-common.h (objc_finish_foreach_loop): New.
5710 * stub-objc.c (objc_finish_foreach_loop): New.
5711
1ebe4b4f
JM
57122010-10-05 Joseph Myers <joseph@codesourcery.com>
5713
5714 * c-common.h (struct diagnostic_context): Don't declare here.
5715 (c_common_initialize_diagnostics): Declare using
5716 diagnostic_context typedef.
5717 * c-opts.c (c_common_handle_option): Pass global_dc to
5718 handle_generated_option.
5719
d4d24ba4
JM
57202010-10-04 Joseph Myers <joseph@codesourcery.com>
5721
5722 * c-opts.c (c_common_handle_option): Pass &global_options_set to
5723 handle_generated_option.
5724
478a1c5b
ILT
57252010-10-03 Ian Lance Taylor <iant@google.com>
5726
5727 * c.opt (-fplan9-extensions): New option.
5728
82a1c2fe
FXC
57292010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5730
5731 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
5732 Remove.
5733 (c_cpp_builtins): Call functions from cppbuiltin.c instead
5734 of duplicating code.
5735
92902b1b
IS
57362010-09-30 Iain Sandoe <iains@gcc.gnu.org>
5737
5738 * c-common.c: Add two new entries for @optional
5739 and @required keywords.
5740
5741 merge from FSF 'apple/trunk' branch.
5742 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
5743
5744 Radar 4386773
5745 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
5746 objective-c keywords.
5747 (objc_set_method_opt): New declaration.
5748 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 5749
46625112
JM
57502010-09-30 Joseph Myers <joseph@codesourcery.com>
5751
5752 * c-common.c (handle_optimize_attribute): Pass &global_options to
5753 cl_optimization_save and cl_optimization_restore.
5754 * c-opts.c (c_common_handle_option): Pass &global_options to
5755 handle_generated_option.
5756 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
5757 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
5758 &global_options to cl_optimization_restore.
5759
49b91f05
NP
57602010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
5761
5762 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
5763 Objective-C/Objective-C++ keywords.
5764
13ed556f 57652010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 5766
9faeb493
UB
5767 Merge from 'apple/trunk' branch on FSF servers.
5768
a6341d57
NP
5769 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
5770
5771 Radar 4281748
5772 * c-common.h (objc_check_global_decl): New declaration.
5773 * stub-objc.c (objc_check_global_decl): New stub.
5774
f0036cca
JM
57752010-09-29 Joseph Myers <joseph@codesourcery.com>
5776
5777 * c.opt: Don't use VarExists.
5778
e3339d0f
JM
57792010-09-29 Joseph Myers <joseph@codesourcery.com>
5780
5781 * c-common.c (c_cpp_error): Update names of diagnostic_context
5782 members.
5783 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
5784 cl_optimization members.
5785 * c-opts.c (warning_as_error_callback, c_common_handle_option,
5786 sanitize_cpp_opts, finish_options): Update names of cpp_options
5787 members.
5788
1973201f
NP
57892010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
5790
5791 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
5792 (objc_is_reserved_word): Removed.
5793 * c-common.c: Updated comments.
5794 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
5795 objc_is_reserved_word.
5796 * stub-objc.c (objc_is_reserved_word): Removed.
5797
f7e71da5
IS
57982010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5799
9faeb493 5800 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
5801 include attributes.
5802 (objc_start_method_definition): Likewise.
5803 (objc_build_keyword_decl): Likewise.
5804 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
5805 (objc_start_method_definition): Likewise.
5806 (objc_build_keyword_decl): Likewise.
5807
c165dca7
IS
58082010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5809
5810 * c-common.h (objc_start_class_interface): Adjust prototype.
5811 (objc_start_category_interface): Likewise.
5812 (objc_start_protocol): Likewise.
5813 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
5814 (objc_start_class_interface): Likewise.
5815 (objc_start_category_interface): Likewise.
5816
7458026b
ILT
58172010-09-27 Ian Lance Taylor <iant@google.com>
5818
5819 * c-common.c (c_common_attribute_table): Add no_split_stack.
5820 (handle_no_split_stack_attribute): New static function.
5821
b581b85b
NP
58222010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
5823
9faeb493 5824 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
5825
5826 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
5827
9faeb493 5828 Radar 4229905
b581b85b
NP
5829 * c-common.h (objc_have_common_type): New declaration.
5830 * stub-objc.c (objc_have_common_type): New stub.
5831
5832 2005-06-22 Ziemowit Laski <zlaski@apple.com>
5833
5834 Radar 4154928
5835 * c-common.h (objc_common_type): New prototype.
9faeb493 5836 * stub-objc.c (objc_common_type): New stub.
b581b85b 5837
46a4da10
JH
58382010-09-24 Jan Hubicka <jh@suse.cz>
5839
5840 * c-common.c (handle_leaf_attribute): New function.
5841 (struct attribute_spec c_common_att): Add leaf.
5842
e200444e
JM
58432010-09-22 Joseph Myers <joseph@codesourcery.com>
5844
5845 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
5846 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
5847 -dump, -dump=, -imacros, -imacros=, -include, -include=,
5848 -include-barrier, -include-directory, -include-directory=,
5849 -include-directory-after, -include-directory-after=,
5850 -include-prefix, -include-prefix=, -include-with-prefix,
5851 -include-with-prefix=, -include-with-prefix-after,
5852 -include-with-prefix-after=, -include-with-prefix-before,
5853 -include-with-prefix-before=, -no-integrated-cpp,
5854 -no-line-commands, -no-standard-includes, -no-warnings, -output,
5855 -output=, -pedantic, -pedantic-errors, -preprocess,
5856 -print-missing-file-dependencies, -trace-includes, -traditional,
5857 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
5858 -user-dependencies, -verbose, -write-dependencies,
5859 -write-user-dependencies, no-integrated-cpp, traditional): New.
5860
29a80ea6
NP
58612010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5862
5863 PR objc/23710
ac1fc2fc
NP
5864 * c-common.h (objc_start_method_definition): Return bool instead
5865 of void.
5866 * stub-objc.c (objc_start_method_definition): Return bool instead
5867 of void.
5868
58692010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5870
5871 PR objc/25965
5872 * c-common.h (objc_get_interface_ivars): New declaration.
5873 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 5874
de621752
ILT
58752010-09-15 Ian Lance Taylor <iant@google.com>
5876
5877 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 5878 messages. Remove period at end of warning message.
de621752 5879
ba885ec5
NS
58802010-09-09 Nathan Sidwell <nathan@codesourcery.com>
5881
5882 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
5883 (handle_alias_attribute): ... here.
5884 (handle_ifunc_attribute): New.
5885
c5ee1358
MM
58862010-09-06 Mark Mitchell <mark@codesourcery.com>
5887
5888 * c-common.h (do_warn_double_promotion): Declare.
5889 * c-common.c (do_warn_double_promotion): Define.
5890
0a0b3574
MM
58912010-09-05 Mark Mitchell <mark@codesourcery.com>
5892
5893 * c.opt (Wdouble-promotion): New.
5894
d1779886
JM
58952010-09-02 Joseph Myers <joseph@codesourcery.com>
5896
5897 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
5898 fvtable-thunks, fxref): Mark no longer supported in help text.
5899
2d2bd949
JM
59002010-09-02 Joseph Myers <joseph@codesourcery.com>
5901
5902 * c.opt (Wimport, fall-virtual, falt-external-templates,
5903 fdefault-inline, fenum-int-equiv, fexternal-templates,
5904 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
5905 fname-mangling-version-, fnew-abi, fnonnull-objects,
5906 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
5907 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
5908 applicable.
5909 (fhandle-exceptions): Mark with Alias and Warn.
5910 * c-opts.c (c_common_handle_option): Don't handle options marked
5911 as ignored.
5912
5de8299c
JM
59132010-09-02 Joseph Myers <joseph@codesourcery.com>
5914
5915 * c.opt (Wcomments, Werror-implicit-function-declaration,
5916 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
5917 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
5918 aliases.
5919 * c-common.c (option_codes): Use OPT_Wcomment instead of
5920 OPT_Wcomments.
5921 * c-opts.c (warning_as_error_callback, c_common_handle_option):
5922 Don't handle options marked as aliases.
5923
0ceb0201
RG
59242010-08-25 Richard Guenther <rguenther@suse.de>
5925
5926 * c-common.c (c_common_get_alias_set): Remove special
5927 handling for pointers.
5928
ac47786e
NF
59292010-08-20 Nathan Froyd <froydnj@codesourcery.com>
5930
5931 * c-common.c: Use FOR_EACH_VEC_ELT.
5932 * c-gimplify.c: Likewise.
5933 * c-pragma.c: Likewise.
5934
c878765b
JM
59352010-08-16 Joseph Myers <joseph@codesourcery.com>
5936
5937 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
5938 RejectDriver.
5939 (MMDX): Change back to MMD. Mark NoDriverArg instead of
5940 RejectDriver.
5941 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
5942 instead of OPT_MDX and OPT_MMDX.
5943
603349bf
JM
59442010-08-16 Joseph Myers <joseph@codesourcery.com>
5945
5946 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
5947
644fa7ac
JM
59482010-08-12 Joseph Myers <joseph@codesourcery.com>
5949
5950 * c.opt (MD, MMD): Change to MDX and MMDX.
5951 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
5952
481e1176
JM
59532010-08-11 Joseph Myers <joseph@codesourcery.com>
5954
5955 * c-opts.c (c_common_handle_option): Call handle_generated_option
5956 instead of handle_option.
5957
ac8dc9f7
NF
59582010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5959
5960 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
5961 (maybe_apply_renaming_pragma): Delete unneeded declarations.
5962
4f8c876d
NF
59632010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5964
5965 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
5966 (pending_redefine_extname): Change type to a VEC.
5967 (add_to_renaming_pragma_list): Update for new type of
5968 pending_redefine_extname.
ac8dc9f7 5969 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 5970
3b0c690e
AC
59712010-08-04 Arnaud Charlet <charlet@adacore.com>
5972
5973 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
5974 visited.
5975 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
5976 decide whether a type has already been declared/seen.
5977 Do not go to the original type.
5978 (dump_nested_types): New parameter forward.
5979 Generate forward declaration if needed and mark type as visited.
5980 (print_ada_declaration): Call dump_nested_types if not already done.
5981 Mark types as visited.
5982
1890bccc
JM
59832010-08-03 Joseph Myers <joseph@codesourcery.com>
5984
5985 * c.opt (-print-pch-checksum): Remove option.
5986 * c-opts.c (c_common_handle_option): Don't handle
5987 OPT_print_pch_checksum.
5988
5f20c657
JM
59892010-07-27 Joseph Myers <joseph@codesourcery.com>
5990
5991 * c-common.h (c_common_handle_option): Update prototype and return
5992 value type.
5993 * c-opts.c (c_common_handle_option): Update prototype and return
5994 value type. Update calls to handle_option and
5995 enable_warning_as_error.
5996
f551f80c
JJ
59972010-07-27 Jakub Jelinek <jakub@redhat.com>
5998
5999 PR c/45079
6000 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
6001
61ff2bdc
JM
60022010-07-27 Joseph Myers <joseph@codesourcery.com>
6003
6004 * c-common.h (c_common_missing_argument): Remove.
6005 * c-opts.c (c_common_missing_argument): Remove.
6006 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
6007 idirafter, imacros, include, isysroot, isystem, iquote): Add
6008 MissingArgError.
6009 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
6010
7a9bf9a4
JM
60112010-07-27 Joseph Myers <joseph@codesourcery.com>
6012
6013 * c-common.h (c_common_option_lang_mask,
6014 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
6015 New.
6016 (c_common_init_options): Update prototype.
6017 * c-opts.c (c_common_option_lang_mask): New.
6018 (c_common_initialize_diagnostics): Split out of
6019 c_common_init_options.
6020 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
6021 New.
6022 (c_common_init_options): Update prototype. Use decoded options in
6023 search for -lang-asm.
6024
910ad8de
NF
60252010-07-15 Nathan Froyd <froydnj@codesourcery.com>
6026
6027 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
6028 * c-format.c: Likewise.
6029
718f9c0f
MLI
60302010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
6031
6032 * c-common.h: Include diagnostic-core.h. Error if already
6033 included.
6034 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
6035
4d451982
MLI
60362010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
6037
adfac8df 6038 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
6039 Do not include expr.h
6040 (vector_mode_valid_p): Move here.
6041
119fe915
SB
60422010-06-21 DJ Delorie <dj@redhat.com>
6043
6044 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
6045 allow these pragmas anywhere.
6046
60472010-06-14 Jakub Jelinek <jakub@redhat.com>
6048
6049 PR bootstrap/44509
6050 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
6051 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
6052 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
6053 ggc_strdup instead of xstrdup.
6054
60552010-06-10 Jakub Jelinek <jakub@redhat.com>
6056
6057 * c-cppbuiltin.c: Include cpp-id-data.h.
6058 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
6059 (lazy_hex_fp_value): New function.
6060 (builtin_define_with_hex_fp_value): Provide definitions lazily.
6061
6662d794
MLI
60622010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
6063
6064 * c-gimplify.c: Do not include tree-flow.h
6065
38f8b050
JR
60662010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
6067
6068 PR other/44034
6069 * c-common.c: Rename targetm member:
6070 targetm.enum_va_list -> targetm.enum_va_list_p
6071
9589f23e
AS
60722010-06-28 Anatoly Sokolov <aesok@post.ru>
6073
6074 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
6075
3b06d379
SB
60762010-06-28 Steven Bosscher <steven@gcc.gnu.org>
6077
6078 * c-cppbuiltin.c: Do not include except.h.
6079
d166d4c3
AK
60802010-06-24 Andi Kleen <ak@linux.intel.com>
6081
9faeb493
UB
6082 * c-common.c (warn_for_omitted_condop): New.
6083 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 6084
70cb8be6
JM
60852010-06-21 Joseph Myers <joseph@codesourcery.com>
6086
6087 * c.opt (lang-objc): Remove.
6088 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
6089
a4c97feb
JR
60902010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
6091
6092 * c-opts.c: Include "tm_p.h".
6093
6e2f1956
JM
60942010-06-20 Joseph Myers <joseph@codesourcery.com>
6095
6096 * c-common.c (parse_optimize_options): Update call to
6097 decode_options.
6098
bc87224e
NF
60992010-06-18 Nathan Froyd <froydnj@codesourcery.com>
6100
6101 * c-common.c (record_types_used_by_current_var_decl): Adjust for
6102 new type of types_used_by_cur_var_decl.
6103
b49cf425
JR
61042010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
6105
6106 PR bootstrap/44512
6107 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
6108 for C++ standard compliance.
6109
59f9c2ed
JM
61102010-06-16 Jason Merrill <jason@redhat.com>
6111
6112 * c.opt: Add -Wnoexcept.
6113
33766b66
RG
61142010-06-16 Richard Guenther <rguenther@suse.de>
6115
6116 PR c/44555
6117 * c-common.c (c_common_truthvalue_conversion): Remove
6118 premature and wrong optimization concering ADDR_EXPRs.
6119
eff7e30c
AC
61202010-06-15 Arnaud Charlet <charlet@adacore.com>
6121
6122 * c-ada-spec.c (dump_sloc): Remove column info.
6123 (is_simple_enum): New function.
6124 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
6125 enum types when relevant.
6126
6312e84d
MLI
61272010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
6128
9faeb493 6129 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
6130 location.
6131
1cb42611
JM
61322010-06-10 Joseph Myers <joseph@codesourcery.com>
6133
6134 * c-opts.c (c_common_handle_option): Don't handle
6135 OPT_fshow_column.
6136
a9429e29
LB
61372010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
6138
6139 * c-pragma.c (push_alignment): Use typed GC allocation.
6140 (handle_pragma_push_options): Likewise.
6141
6142 * c-common.c (parse_optimize_options): Likewise.
6143
6144 * c-common.h (struct sorted_fields_type): Add variable_size GTY
6145 option.
6146
5498f011
JM
61472010-06-07 Joseph Myers <joseph@codesourcery.com>
6148
6149 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
6150 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
6151 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
6152 flag_signed_bitfields, warn_strict_null_sentinel,
6153 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
6154 flag_gen_declaration, flag_no_gnu_keywords,
6155 flag_implement_inlines, flag_implicit_templates,
6156 flag_implicit_inline_templates, flag_optional_diags,
6157 flag_elide_constructors, flag_default_inline, flag_rtti,
6158 flag_conserve_space, flag_access_control, flag_check_new,
6159 flag_new_for_scope, flag_weak, flag_working_directory,
6160 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
6161 flag_enforce_eh_specs, flag_threadsafe_statics,
6162 flag_pretty_templates): Remove.
6163 * c-common.h (flag_preprocess_only, flag_nil_receivers,
6164 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
6165 flag_replace_objc_classes, flag_undef, flag_no_builtin,
6166 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
6167 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
6168 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
6169 flag_no_gnu_keywords, flag_implement_inlines,
6170 flag_implicit_templates, flag_implicit_inline_templates,
6171 flag_optional_diags, flag_elide_constructors, flag_default_inline,
6172 flag_rtti, flag_conserve_space, flag_access_control,
6173 flag_check_new, flag_new_for_scope, flag_weak,
6174 flag_working_directory, flag_use_cxa_atexit,
6175 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
6176 flag_threadsafe_statics, flag_pretty_templates,
6177 warn_strict_null_sentinel): Remove.
6178 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
6179 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
6180 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
6181 fimplicit-inline-templates, fimplicit-templates,
6182 flax-vector-conversions, fms-extensions, fnil-receivers,
6183 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
6184 frtti, fshort-double, fshort-enums, fshort-wchar,
6185 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
6186 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
6187 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
6188 gen-decls, undef): Use Var.
6189 (fdefault-inline, foptional-diags): Document as doing nothing.
6190 * c-opts.c (c_common_handle_option): Remove cases for options now
6191 using Var. Mark ignored options as such.
6192
39dabefd
SB
61932010-06-05 Steven Bosscher <steven@gcc.gnu.org>
6194
9faeb493 6195 * c-common.c: Moved to here from parent directory.
39dabefd
SB
6196 * c-common.def: Likewise.
6197 * c-common.h: Likewise.
6198 * c-cppbuiltin.c: Likewise.
6199 * c-dump.c: Likewise.
6200 * c-format.c: Likewise.
6201 * c-format.h : Likewise.
6202 * c-gimplify.c: Likewise.
6203 * c-lex.c: Likewise.
6204 * c-omp.c: Likewise.
6205 * c.opt: Likewise.
6206 * c-opts.c: Likewise.
6207 * c-pch.c: Likewise.
6208 * c-ppoutput.c: Likewise.
6209 * c-pragma.c: Likewise.
6210 * c-pragma.h: Likewise.
6211 * c-pretty-print.c: Likewise.
6212 * c-pretty-print.h: Likewise.
6213 * c-semantics.c: Likewise.
6214 * stub-objc.c: Likewise.
6215
6216 * c-common.c: Include gt-c-family-c-common.h.
6217 * c-pragma.c: Include gt-c-family-c-pragma.h.
6218\f
818ab71a 6219Copyright (C) 2010-2016 Free Software Foundation, Inc.
39dabefd
SB
6220
6221Copying and distribution of this file, with or without modification,
6222are permitted in any medium without royalty provided the copyright
6223notice and this notice are preserved.