]> gcc.gnu.org Git - gcc.git/blame - gcc/c-family/ChangeLog
2016-03-28 Dominique d'Humieres <dominiq@lps.ens.fr>
[gcc.git] / gcc / c-family / ChangeLog
CommitLineData
fbdb6baf
MP
12016-03-23 Marek Polacek <polacek@redhat.com>
2
3 PR c++/69884
4 * c.opt (Wignored-attributes): New option.
5
5c240f4d
DM
62016-03-22 David Malcolm <dmalcolm@redhat.com>
7
8 PR c/69993
9 * c-indentation.c (warn_for_misleading_indentation): Rewrite the
10 diagnostic text, reversing the order of the warning and note so
11 that they appear in source order.
12
14ba7b28
MP
132016-03-17 Marek Polacek <polacek@redhat.com>
14
15 PR c/69407
16 * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
17 operations.
18
08a1cadc
JM
192016-03-14 Jason Merrill <jason@redhat.com>
20
2aaeea19
JM
21 * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
22
08a1cadc
JM
23 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
24
c06d25bb
RB
252016-03-09 Richard Biener <rguenther@suse.de>
26
27 PR c/70143
28 * c-common.c (strict_aliasing_warning): Add back
29 alias_sets_conflict_p check.
30
80aac5c8
JM
312016-03-08 Jason Merrill <jason@redhat.com>
32
33 * c-opts.c (set_std_cxx1z): Don't enable concepts.
34
64b23c13
DM
352016-03-04 David Malcolm <dmalcolm@redhat.com>
36
37 PR c/68187
38 * c-indentation.c (get_visual_column): Move code to determine next
39 tab stop to...
40 (next_tab_stop): ...this new function.
41 (line_contains_hash_if): Delete function.
42 (detect_preprocessor_logic): Delete function.
43 (get_first_nws_vis_column): New function.
44 (detect_intervening_unindent): New function.
45 (should_warn_for_misleading_indentation): Replace call to
46 detect_preprocessor_logic with a call to
47 detect_intervening_unindent.
48
729526f5
DM
492016-03-04 David Malcolm <dmalcolm@redhat.com>
50
51 PR c/68187
52 * c-indentation.c (should_warn_for_misleading_indentation): When
53 suppressing warnings about cases where the guard and body are on
54 the same column, only use the first non-whitespace column in place
55 of the guard token column when dealing with "else" clauses.
56 When rejecting aligned BODY and NEXT, loosen the requirement
57 from equality with the first non-whitespace of guard to simply
58 that they not be indented relative to it.
59
e9a35493
RB
602016-03-04 Richard Biener <rguenther@suse.de>
61
62 PR c++/70054
63 * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
64 instead of alias_sets_conflict_p.
65
1be56bc5
MP
662016-03-01 Marek Polacek <polacek@redhat.com>
67
68 PR c++/69795
69 * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
70 any DECL.
71
35886f0b
MS
722016-02-22 Martin Sebor <msebor@redhat.com>
73
74 PR middle-end/69780
75 * c-common.c (check_builtin_function_arguments): Validate and
76 reject invalid arguments to __builtin_alloca_with_align.
77
4246c8da
MW
782016-02-20 Mark Wielaard <mjw@redhat.com>
79
80 PR c/28901
81 * c.opt (Wunused-const-variable): Turn into Alias for...
82 (Wunused-const-variable=): New option.
83
268be88c
BE
842016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
85
86 PR c++/69865
87 * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
88 here...
89 (c_common_init_options): ...to here.
90 (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
91
871b3f47
JJ
922016-02-19 Jakub Jelinek <jakub@redhat.com>
93
94 PR c++/69826
95 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
96 (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
97 flag_preprocess_only.
98
bf14eba2
JJ
992016-02-16 Jakub Jelinek <jakub@redhat.com>
100
101 PR c/69835
102 * c.opt (Wnonnull-compare): Enable for -Wall.
103
ba6b3795
JJ
1042016-02-15 Jakub Jelinek <jakub@redhat.com>
105
106 PR c++/69797
107 * c-common.c (sync_resolve_size): Diagnose too few arguments
108 even when params is non-NULL empty vector.
109
a011cd92
BS
1102016-02-08 Bernd Schmidt <bschmidt@redhat.com>
111
112 PR target/60410
113 * c.opt (fshort-double): Remove.
114
46cb9332
MS
1152016-02-05 Martin Sebor <msebor@redhat.com>
116
117 PR c++/69662
118 * c.opt (Warning options): Update -Wplacement-new to take
119 an optional argument.
120
e1b81f2b
JJ
1212016-02-01 Jakub Jelinek <jakub@redhat.com>
122
123 PR preprocessor/69543
124 PR c/69558
125 * c-pragma.c (handle_pragma_diagnostic): Pass input_location
126 instead of loc to control_warning_option.
127
b6adbb9f
NS
1282016-02-01 Nathan Sidwell <nathan@codesourcery.com>
129
130 * c.opt (fopenacc-dim=): New option.
131
5d70666e
RB
1322016-01-27 Ryan Burn <contact@rnburn.com>
133
134 PR cilkplus/69267
135 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
136 gimplify_arg. Removed superfluous post_p argument.
137 * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
138 superfluous post_p argument.
139 * c-gimplify.c (c_gimplify_expr): Likewise.
140
01e1dea3
DM
1412016-01-26 David Malcolm <dmalcolm@redhat.com>
142
143 PR other/69006
144 * c-opts.c (c_diagnostic_finalizer): Replace invocation of
145 pp_newline_and_flush with pp_flush.
146
9f04a53e
MS
1472016-01-20 Martin Sebor <msebor@redhat.com>
148
149 PR c/69405
150 * c-common.c (sync_resolve_size): Avoid printing diagnostic about
151 an incompatible argument when the argument isn't a valid tree node.
152
7f26f7df
JM
1532016-01-18 Jason Merrill <jason@redhat.com>
154
155 PR c++/68767
156 * c-common.c (check_function_arguments_recurse): Fold the whole
157 COND_EXPR, not just the condition.
158
f62bf092
TV
1592016-01-18 Tom de Vries <tom@codesourcery.com>
160
161 * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
162 classify as loop clause.
163
e0a575ff
JJ
1642016-01-15 Jakub Jelinek <jakub@redhat.com>
165
166 PR bootstrap/68271
167 * c-pragma.c (c_register_pragma_1): Adjust comment to note that
168 C++ FE no longer has limit on number of pragmas.
169
1702015-01-14 Ryan Burn <contact@rnburn.com>
b6e3db06
RB
171
172 PR c++/69048
173 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
c47eaca6 174 to add missing cleanup point.
b6e3db06 175
c7df95d8
DM
1762016-01-14 David Malcolm <dmalcolm@redhat.com>
177
178 PR c++/68819
179 * c-indentation.c (get_visual_column): Add location_t param.
180 Handle the column number being zero by effectively disabling the
181 warning, with an "inform".
182 (should_warn_for_misleading_indentation): Add location_t argument
183 for all uses of get_visual_column.
184
21efdd80
PP
1852016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
186
187 PR c++/69029
188 * c-indentation.c (should_warn_for_misleading_indentation):
189 Don't warn about do-while statements.
190
7a127fa7
MS
1912016-01-07 Martin Sebor <msebor@redhat.com>
192
193 PR c/68966
194 * c-common.c (sync_resolve_size): Reject first argument when it's
195 a pointer to _Bool.
196
c589e975
DM
1972016-01-05 David Malcolm <dmalcolm@redhat.com>
198
199 PR c/69122
200 * c-indentation.c (get_visual_column): Remove default argument.
201 (should_warn_for_misleading_indentation): For the multiline case,
202 update call to get_visual_column for next_stmt_exploc so that it
203 captures the location of the first non-whitespace character in the
204 relevant line. Don't issue warnings if there is non-whitespace
205 before the next statement.
206
818ab71a
JJ
2072016-01-04 Jakub Jelinek <jakub@redhat.com>
208
209 Update copyright years.
210
745e411d
DM
2112015-12-21 David Malcolm <dmalcolm@redhat.com>
212
213 * c-common.c (binary_op_error): Convert first param from
214 location_t to rich_location * and use it when emitting an error.
215 * c-common.h (binary_op_error): Convert first param from
216 location_t to rich_location *.
217
de67c4c3
DM
2182015-12-16 David Malcolm <dmalcolm@redhat.com>
219
220 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
221 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
222
4a38b02b
IV
2232015-12-15 Ilya Verbin <ilya.verbin@intel.com>
224
225 * c-common.c (c_common_attribute_table): Handle "omp declare target
226 link" attribute.
227
54d62f51
JJ
2282015-12-14 Jakub Jelinek <jakub@redhat.com>
229
230 PR c/68833
231 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
232
8d4227c8
TB
2332014-12-12 Tobias Burnus <burnus@net-b.de>
234
235 PR fortran/68815
236 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
237 specifiers (%d, %i,%u and %c).
238
f6069ccc
DM
2392015-12-10 David Malcolm <dmalcolm@redhat.com>
240
241 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
242
63bbf46d
JJ
2432015-12-08 Jakub Jelinek <jakub@redhat.com>
244
245 PR c/48088
246 PR c/68657
247 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
248 * c-pragma.c (handle_pragma_diagnostic): Adjust
249 control_warning_option caller.
250
f79520bb
DM
2512015-12-07 David Malcolm <dmalcolm@redhat.com>
252
253 * c-common.c (c_cpp_error): Update for change to
254 rich_location::set_range.
255
b3d5bc62
JJ
2562015-12-04 Paolo Bonzini <bonzini@gnu.org>
257
258 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
259 shifting 1 out of the sign bit.
260
2612015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
262
263 * c-common.c (c_common_attribute_table[]): Update max arguments
264 count for "simd" attribute.
265 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
266
6eb4a537
JJ
2672015-12-03 Jakub Jelinek <jakub@redhat.com>
268
269 PR preprocessor/57580
270 * c-ppoutput.c (print): Change printed field to bool.
271 Move src_file last for smaller padding.
272 (init_pp_output): Set print.printed to false instead of 0.
273 (scan_translation_unit): Fix up formatting. Set print.printed
274 to true after printing something other than newline.
275 (scan_translation_unit_trad): Set print.printed to true instead of 1.
276 (maybe_print_line_1): Set print.printed to false instead of 0.
277 (print_line_1): Likewise.
278 (do_line_change): Set print.printed to true instead of 1.
279 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
280 dump_macro): Set print.printed to false after printing newline.
281
4250754e
JM
2822015-12-02 Jason Merrill <jason@redhat.com>
283
f479b43d
JM
284 * c-common.c (fold_for_warn): New.
285 (warn_logical_operator, warn_tautological_cmp)
286 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
287
4250754e
JM
288 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
289 (c_fully_fold_internal, decl_constant_value_for_optimization):
290 Move to c/c-fold.c.
291 * c-common.h: Don't declare decl_constant_value_for_optimization.
292
e9e32ee6
JM
2932015-12-02 Joseph Myers <joseph@codesourcery.com>
294
295 PR c/68162
296 * c-common.h (c_build_qualified_type): Add extra default
297 arguments.
298
37d5ad46
JB
2992015-12-01 Julian Brown <julian@codesourcery.com>
300 Cesar Philippidis <cesar@codesourcery.com>
301 James Norris <James_Norris@mentor.com>
302
303 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
304 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
305 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
306
f07862c7
EB
3072015-11-30 Eric Botcazou <ebotcazou@adacore.com>
308
309 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
310 (decl_sloc_common): Delete and move bulk of processing to...
311 (decl_sloc): ...here.
312 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
313 (dump_ada_double_name): Remove S parameter and compute the suffix.
314 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
315 element type and deal with an anonymous one.
316 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
317 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
318 and remove reference to QUAL_UNION_TYPE.
319 (dump_nested_types): Make 2 passes on the fields and move bulk to...
320 (dump_nested_type): ...here. New function extracted from above.
321 Generate a full declaration for anonymous element type of arrays.
322 (print_ada_declaration): Really skip anonymous declarations. Remove
323 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
324 Clean up processing of declarations of array types and objects.
325 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
326 Remove obsolete code and tidy up.
327
75c8aac3
JH
3282015-11-29 Jan Hubicka <hubicka@ucw.cz>
329
330 PR c/67581
331 * c-common.c (handle_transparent_union_attribute): Update
332 also type variants.
333
b58d3df2
ML
3342015-11-27 Martin Liska <mliska@suse.cz>
335
336 PR c++/68312
337 * array-notation-common.c (cilkplus_extract_an_triplets):
338 Release vector of vectors.
339 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
340
89a01fcf
EB
3412015-11-26 Eric Botcazou <ebotcazou@adacore.com>
342
343 PR c++/68527
344 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
345 (print_ada_struct_decl): Likewise.
346
cc5c5226
IZ
3472015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
348
349 PR c++/68001
350 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
351 * cilk.c (recognize_spawn): Determine location in a more precise
352 way.
353
269adb9d
JM
3542015-11-19 Jason Merrill <jason@redhat.com>
355
356 * c-common.c (shorten_compare): But look through macros from
357 system headers.
358
d0eccfcd
JM
3592015-11-18 Jason Merrill <jason@redhat.com>
360
361 * c-common.c (shorten_compare): Don't -Wtype-limits if the
362 non-constant operand comes from a macro.
363
3e44547c
JM
3642015-11-17 Jason Merrill <jason@redhat.com>
365
366 PR bootstrap/68346
367 * c-common.c (warn_tautological_cmp): Fold before checking for
368 constants.
369
0f62c7a0
MP
3702015-11-16 Marek Polacek <polacek@redhat.com>
371
372 PR c++/68362
373 * c-common.c (check_case_bounds): Fold low and high cases.
374
a868811e
MP
3752015-11-16 Marek Polacek <polacek@redhat.com>
376
377 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
378 * c-common.c (c_common_get_alias_set): Likewise.
379 (handle_visibility_attribute): Likewise.
380
fff77217
KY
3812015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
382
383 * c-common.c (handle_simd_attribute): New.
384 (struct attribute_spec): Add entry for "simd".
385 (handle_simd_attribute): New.
386
269e63b7
KT
3872015-11-13 Kai Tietz <ktietz70@googlemail.com>
388
389 * c-lex.c (interpret_float): Use fold_convert.
390
ebedc9a3
DM
3912015-11-13 David Malcolm <dmalcolm@redhat.com>
392
393 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
394 and store it on the result.
395 * c-opts.c (c_common_init_options): Set
396 global_dc->colorize_source_p.
397
6e232ba4
JN
3982015-11-12 James Norris <jnorris@codesourcery.com>
399 Joseph Myers <joseph@codesourcery.com>
400
401 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
402 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
403 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
404 PRAGMA_OACC_CLAUSE_LINK.
405
e78bede6
MP
4062015-11-11 Marek Polacek <polacek@redhat.com>
407
408 PR c/68107
409 PR c++/68266
410 * c-common.c (valid_array_size_p): New function.
411 * c-common.h (valid_array_size_p): Declare.
412
4ac93c7c
DH
4132015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
414
415 PR bootstrap/68271
416 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
417
69f293c9
AM
4182015-11-11 Andrew MacLeod <amacleod@redhat.com>
419
420 * array-notation-common.c: Remove unused header files.
421 * c-ada-spec.c: Likewise.
422 * c-cilkplus.c: Likewise.
423 * c-common.c: Likewise.
424 * c-cppbuiltin.c: Likewise.
425 * c-dump.c: Likewise.
426 * c-format.c: Likewise.
427 * c-gimplify.c: Likewise.
428 * c-indentation.c: Likewise.
429 * c-lex.c: Likewise.
430 * c-omp.c: Likewise.
431 * c-opts.c: Likewise.
432 * c-pch.c: Likewise.
433 * c-ppoutput.c: Likewise.
434 * c-pragma.c: Likewise.
435 * c-pretty-print.c: Likewise.
436 * c-semantics.c: Likewise.
437 * c-ubsan.c: Likewise.
438 * cilk.c: Likewise.
439 * stub-objc.c: Likewise.
440
3a40d81d
NS
4412015-11-09 Thomas Schwinge <thomas@codesourcery.com>
442 Cesar Philippidis <cesar@codesourcery.com>
443 James Norris <jnorris@codesourcery.com>
444 Julian Brown <julian@codesourcery.com>
445 Nathan Sidwell <nathan@codesourcery.com>
446
447 * c-pragma.c (oacc_pragmas): Add "routine".
448 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
449
ee45a32d
EB
4502015-11-08 Eric Botcazou <ebotcazou@adacore.com>
451
452 * c-common.c (c_common_attributes): Add scalar_storage_order.
453 (handle_scalar_storage_order_attribute): New function.
454 * c-pragma.c (global_sso): New variable.
455 (maybe_apply_pragma_scalar_storage_order): New function.
456 (handle_pragma_scalar_storage_order): Likewise.
457 (init_pragma): Register scalar_storage_order.
458 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
459 * c.opt (Wscalar-storage-order): New warning.
460 (fsso-struct=): New option.
461
eb11eb15
MS
4622015-11-08 Martin Sebor <msebor@redhat.com>
463
464 * c.opt (Wplacement-new): Add a period to the end of a sentence.
465
0aad0198
RS
4662015-11-07 Richard Sandiford <richard.sandiford@arm.com>
467
468 * c-common.c: Don't undef DEF_BUILTIN.
469
8a645150
DM
4702015-11-06 David Malcolm <dmalcolm@redhat.com>
471
472 * c-common.c (c_cpp_error): Convert parameter from location_t to
473 rich_location *. Eliminate the "column_override" parameter and
474 the call to diagnostic_override_column.
475 Update the "done_lexing" clause to set range 0
476 on the rich_location, rather than overwriting a location_t.
477 * c-common.h (c_cpp_error): Convert parameter from location_t to
478 rich_location *. Eliminate the "column_override" parameter.
479
7a5e4956
CP
4802015-11-05 Cesar Philippidis <cesar@codesourcery.com>
481 Thomas Schwinge <thomas@codesourcery.com>
482 James Norris <jnorris@codesourcery.com>
483
484 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
485 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
486 clauses with parallel and kernels and loops.
487 * c-pragma.h (enum pragma_omp_clause): Add entries for
488 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
489 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
490 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
491 INDEPENDENT,SEQ}.
492 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
493
e2f5cc96
MS
4942015-11-05 Martin Sebor <msebor@redhat.com>
495
496 PR c++/67942
497 * c.opt (-Wplacement-new): New option.
498
e01d41e5
JJ
4992015-11-05 Jakub Jelinek <jakub@redhat.com>
500
501 * c-common.h (c_finish_omp_atomic): Add TEST argument.
502 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
503 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
504 save_expr or create_tmp_var* if TEST is true.
505 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
506 Don't call add_stmt here.
507 (struct c_omp_check_loop_iv_data): New type.
508 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
509 c_omp_check_loop_iv_exprs): New functions.
510 (c_omp_split_clauses): Adjust for lastprivate being allowed on
511 distribute.
512 (c_omp_declare_simd_clauses_to_numbers): Change
513 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
514 (c_omp_declare_simd_clauses_to_decls): Similarly change those
515 from numbers to PARM_DECLs.
516
595278be
MM
5172015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
518
519 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
520 flag_checking.
521
c85158de
MS
5222015-11-03 Bernd Schmidt <bschmidt@redhat.com>
523
524 PR c++-common/67882
b3d5bc62
JJ
525 * c-common.h (fold_offsetof_1): Add argument.
526 * c-common.c (fold_offsetof_1): Diagnose more invalid
c85158de
MS
527 offsetof expressions that reference elements past the end of
528 an array.
529
4bf9e5a8
TS
5302015-11-03 Thomas Schwinge <thomas@codesourcery.com>
531 Chung-Lin Tang <cltang@codesourcery.com>
532
533 * c-pragma.c (oacc_pragmas): Add "atomic".
534 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
535
3b1661a9
ES
5362015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
537
538 * c-common.c (handle_target_clones_attribute): New.
539 (c_common_attribute_table): Add handle_target_clones_attribute.
540 (handle_always_inline_attribute): Add check on target_clones attribute.
541 (handle_target_attribute): Ditto.
542
2adfab87
AM
5432015-10-29 Andrew MacLeod <amacleod@redhat.com>
544
545 * array-notation-common.c: Reorder #include's and remove duplicates.
546 * c-ada-spec.c: Likewise.
547 * c-cilkplus.c: Likewise.
548 * c-common.c: Likewise.
549 * c-cppbuiltin.c: Likewise.
550 * c-dump.c: Likewise.
551 * c-format.c: Likewise.
552 * c-gimplify.c: Likewise.
553 * c-indentation.c: Likewise.
554 * c-lex.c: Likewise.
555 * c-omp.c: Likewise.
556 * c-opts.c: Likewise.
557 * c-pch.c: Likewise.
558 * c-ppoutput.c: Likewise.
559 * c-pragma.c: Likewise.
560 * c-pretty-print.c: Likewise.
561 * c-semantics.c: Likewise.
562 * c-ubsan.c: Likewise.
563 * cilk.c: Likewise.
564 * stub-objc.c: Likewise.
565
d90ec4f2
JM
5662015-10-28 Jason Merrill <jason@redhat.com>
567
568 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
569
88bae6f4
TS
5702015-10-27 Thomas Schwinge <thomas@codesourcery.com>
571 James Norris <jnorris@codesourcery.com>
572 Cesar Philippidis <cesar@codesourcery.com>
573
574 PR c/64765
575 PR c/64880
576 * c-common.h (c_oacc_split_loop_clauses): Declare function.
577 * c-omp.c (c_oacc_split_loop_clauses): New function.
578
b1726d6c
MS
5792015-10-21 Martin Sebor <msebor@redhat.com>
580
581 PR driver/68043
582 * c.opt: End each sentence that describes an option with a period.
583
fa60eeb9
MP
5842015-10-20 Marek Polacek <polacek@redhat.com>
585
586 * array-notation-common.c (is_cilkplus_vector_p): Define.
587 * c-common.h (is_cilkplus_vector_p): Declare.
588
95979049
MP
5892015-10-20 Marek Polacek <polacek@redhat.com>
590
591 * c.opt (std=gnu++11): Do not describe as experimental.
592 (std=gnu++14): Likewise.
593
2a9fb712
JM
5942015-10-19 Jason Merrill <jason@redhat.com>
595
596 * c-cppbuiltin.c (c_cpp_builtins): Define
597 __cpp_nontype_template_args.
598
13b380a3
JM
5992015-10-19 Jason Merrill <jason@redhat.com>
600
601 * c-cppbuiltin.c (c_cpp_builtins): Define
602 __cpp_enumerator_attributes, __cpp_fold_expressions,
603 __cpp_unicode_characters.
604
d9a6bd32
JJ
6052015-10-13 Jakub Jelinek <jakub@redhat.com>
606 Aldy Hernandez <aldyh@redhat.com>
607
608 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
609 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
610 (c_define_builtins): Likewise.
611 * c-common.h (enum c_omp_clause_split): Add
612 C_OMP_CLAUSE_SPLIT_TASKLOOP.
613 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
614 (c_finish_omp_for): Add ORIG_DECLV argument.
615 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
616 201511 instead of 201307.
617 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
618 OMP_CRITICAL_CLAUSES to it.
619 (c_finish_omp_ordered): Add CLAUSES argument, set
620 OMP_ORDERED_CLAUSES to it.
621 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
622 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
623 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
624 constructs and new OpenMP 4.5 clauses. Clear
625 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
626 verification code.
627 * c-pragma.c (omp_pragmas_simd): Add taskloop.
628 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
629 (enum pragma_omp_clause): Add
630 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
631 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
632
624d31fe
RS
6332015-10-05 Richard Sandiford <richard.sandiford@arm.com>
634
635 * c-lex.c (interpret_float): Use real_equal instead of
636 REAL_VALUES_EQUAL.
637
b8fd7909
JM
6382015-10-04 Jason Merrill <jason@redhat.com>
639
640 Implement N4514, C++ Extensions for Transactional Memory.
641 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
642 (c_common_attribute_table): Add transaction_safe_dynamic.
643 transaction_safe now affects type identity.
644 (handle_tm_attribute): Handle transaction_safe_dynamic.
645 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
646 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
647 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
648 (D_TRANSMEM): New.
649 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
650 * c-pretty-print.c (pp_c_attributes_display): Don't print
651 transaction_safe in C++.
652
12651878
MP
6532015-10-02 Marek Polacek <polacek@redhat.com>
654
655 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
656
3e3b8d63
MP
6572015-10-02 Marek Polacek <polacek@redhat.com>
658
659 PR c/64249
660 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
661 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
662 * c.opt (Wduplicated-cond): New option.
663
0d1a8f75
JM
6642015-10-01 Joseph Myers <joseph@codesourcery.com>
665
666 * c.opt (std=c11): Do not describe as experimental.
667 (std=gnu11): Likewise.
668 (std=iso9899:2011): Likewise.
669
3e32ee19
NS
6702015-09-28 Nathan Sidwell <nathan@codesourcery.com>
671
672 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
673 (DEF_FUNCTION_TYPE_VAR_11): Delete.
674
974348ee
MP
6752015-09-25 Marek Polacek <polacek@redhat.com>
676
677 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
678 (ubsan_instrument_shift): Likewise.
679
15dbc1a6
MP
6802015-09-25 Marek Polacek <polacek@redhat.com>
681
682 PR sanitizer/64906
683 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
684
6b95d7cc
PP
6852015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
686
687 * c-indentation.c (should_warn_for_misleading_indentation):
688 Compare next_stmt_vis_column with guard_line_first_nws instead
689 of with guard_line_vis_column.
690
c1822f9c
MLI
6912015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
692
693 PR c/49654
694 PR c/49655
695 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
696 options and options not valid for the current language.
697
d5398058
PP
6982015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
699
700 * c-indentation.c (should_warn_for_misleading_indentation):
701 Float out and consolidate the calls to get_visual_column that
702 are passed guard_exploc as an argument. Compare
703 next_stmt_vis_column with guard_line_first_nws instead of with
704 body_line_first_nws.
705
6b333269
NS
7062015-09-22 Nathan Sidwell <nathan@codesourcery.com>
707
708 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
709 Wnamespaces): New C++ warnings.
710
a75f1574
JM
7112015-09-22 Jason Merrill <jason@redhat.com>
712
713 * c-common.h (abi_compat_version_crosses): New.
714 (warn_abi_version): Declare.
715 * c-common.c: Define it.
716 * c-opts.c (c_common_post_options): Handle it.
717 flag_abi_compat_version defaults to 8.
718
bdaaa8b7
VV
7192015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
720
721 Complete the implementation of N4230, Nested namespace definition.
722 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
723 __cpp_nested_namespace_definitions.
724
eaa797e8
MLI
7252015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
726
727 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
728
c4914de6
MLI
7292015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
730
731 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
732 when warning.
733 * c-pragma.h (pragma_lex): Add optional loc argument.
734
fcb87c50
MM
7352015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
736
737 * c-format.c (check_format_arg): Adjust to use common block size in all
738 object pools.
739
31bdd08a
DM
7402015-09-15 David Malcolm <dmalcolm@redhat.com>
741
742 * c-format.c (location_from_offset): Update for change in
743 signature of location_get_source_line.
744 * c-indentation.c (get_visual_column): Likewise.
745 (line_contains_hash_if): Likewise.
746
aa9f4b4c
MP
7472015-09-14 Marek Polacek <polacek@redhat.com>
748
749 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
750 setting various warnings.
751
aa256c4a
MP
7522015-09-14 Marek Polacek <polacek@redhat.com>
753
754 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
755 a negative value.
756
0f876f22
MW
7572015-09-11 Mark Wielaard <mjw@redhat.com>
758
759 PR c/28901
760 * c.opt (Wunused-variable): Option from common.opt.
761 (Wunused-const-variable): New option.
762
273aa49e
PC
7632015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
764
765 PR c++/53184
766 * c.opt ([Wsubobject-linkage]): Add.
767
1807ffc1
MS
7682015-09-03 Martin Sebor <msebor@redhat.com>
769
770 PR c/66516
771 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
772 functions.
773 * c-common.c (reject_gcc_builtin): Define.
774
38942840
BI
7752015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
776
777 PR middle-end/60586
778 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
779 prototype.
780 * c-gimplify.c (c_gimplify_expr): Added a call to the function
781 cilk_gimplify_call_params_in_spawned_fn.
782 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
783 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
784 unwrapping.
785
c316b5e4
MP
7862015-08-25 Marek Polacek <polacek@redhat.com>
787
788 PR middle-end/67330
789 * c-common.c (handle_weak_attribute): Don't check whether the
790 visibility can be changed here.
791
584a7c46
MLI
7922015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
793
794 * c-lex.c (c_lex_with_flags): Use explicit locations.
795
a79683d5
TS
7962015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
797
798 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
799 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
800
61717a45
FXC
8012015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
802
803 PR middle-end/36757
804 * c-common.c (check_builtin_function_arguments): Add check
805 for BUILT_IN_SIGNBIT argument.
806
329524f5
PC
8072015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
808
809 PR c++/67160
810 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
811 in c++1z mode.
812
4ee55665
MP
8132015-08-17 Marek Polacek <polacek@redhat.com>
814
815 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
816 with whitespaces before qualifier names.
817
b893e375
MP
8182015-08-12 Marek Polacek <polacek@redhat.com>
819
820 PR c++/55095
821 * c-common.c (maybe_warn_shift_overflow): Properly handle
822 left-shifting 1 into the sign bit.
823
c2d89095
MLI
8242015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
825
826 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
827
971e17ff
AS
8282015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
829 Braden Obrzut <admin@maniacsvault.net>
830 Jason Merrill <jason@redhat.com>
831
832 Add C++ Concepts TS support.
833 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
834 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
835 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
836 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
837 * c-opts.c (set_std_cxx1z): Set flag_concepts.
838 * c.opt (fconcepts): New.
839
b3d5bc62
JJ
8402015-08-02 Martin Sebor <msebor@redhat.com>
841
842 * c.opt (-Wframe-address): New warning option.
843
8ebca419
PP
8442015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
845
846 * c-indentation.c (should_warn_for_misleading_indentation):
847 Improve heuristics.
848
1a1e101f
PP
8492015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
850
851 * c-indentation.c (get_visual_column): Add parameter first_nws,
852 use it. Update comment documenting the function.
853 (is_first_nonwhitespace_on_line): Remove.
854 (should_warn_for_misleading_indentation): Replace usage of
855 of is_first_nonwhitespace_on_line with get_visual_column.
856
992118a1
PP
8572015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
858
859 * c-indentation.h (struct token_indent_info): Define.
860 (get_token_indent_info): Define.
861 (warn_for_misleading_information): Declare.
862 * c-common.h (warn_for_misleading_information): Remove.
863 * c-identation.c (warn_for_misleading_indentation):
864 Change declaration to take three token_indent_infos. Adjust
865 accordingly.
866 * c-identation.c (should_warn_for_misleading_indentation):
867 Likewise. Bail out early if the body is a compound statement.
868 (guard_tinfo_to_string): Define.
869
e8fa3817
JM
8702015-07-30 Jason Merrill <jason@redhat.com>
871
872 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
873 '*' for reference decay.
874
173864e8
MP
8752015-07-30 Marek Polacek <polacek@redhat.com>
876
877 * c-common.c (warn_tautological_cmp): Bail for float types.
878
f2afe6dd
MP
8792015-07-27 Marek Polacek <polacek@redhat.com>
880
881 PR bootstrap/67030
882 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
883
05b28fd6
MP
8842015-07-27 Marek Polacek <polacek@redhat.com>
885
886 PR c++/66555
887 PR c/54979
888 * c-common.c (find_array_ref_with_const_idx_r): New function.
889 (warn_tautological_cmp): New function.
890 * c-common.h (warn_tautological_cmp): Declare.
891 * c.opt (Wtautological-compare): New option.
892
5a5062b8
MP
8932015-07-23 Marek Polacek <polacek@redhat.com>
894
895 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
896 (ubsan_instrument_shift): Likewise.
897
dc891fe7
MP
8982015-07-23 Marek Polacek <polacek@redhat.com>
899
900 PR sanitizer/66908
901 * c-ubsan.c: Include gimplify.h.
902 (ubsan_instrument_division): Unshare OP0 and OP1.
903 (ubsan_instrument_shift): Likewise.
904
451b5e48
MP
9052015-07-20 Marek Polacek <polacek@redhat.com>
906 Richard Sandiford <richard.sandiford@arm.com>
907
908 PR c++/55095
909 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
910 Use EXPR_LOC_OR_LOC.
911 (maybe_warn_shift_overflow): New function.
912 * c-common.h (maybe_warn_shift_overflow): Declare.
913 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
914 * c.opt (Wshift-overflow): New option.
915
fb0b2914
ML
9162015-07-16 Martin Liska <mliska@suse.cz>
917
918 * c-format.c (static void check_format_info_main): Use
919 object_allocator instead of pool_allocator.
920 (check_format_arg): Likewise.
921 (check_format_info_main): Likewise.
922
903f5c23
AM
9232015-07-15 Andrew MacLeod <amacleod@redhat.com>
924
925 * c-opts.c: Remove multiline #include comment.
926
026c3cfd
AH
9272015-07-12 Aldy Hernandez <aldyh@redhat.com>
928
929 * c-common.c: Fix double word typos.
930
bb49ee66
EB
9312015-07-10 Eric Botcazou <ebotcazou@adacore.com>
932
933 * c-ada-spec.h (cpp_operation): Revert latest change.
934 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
935 constructors and destructors.
936
1916bcb5
AM
9372015-07-09 Andrew MacLeod <amacleod@redhat.com>
938
939 * c-common.h: Adjust includes for flags.h changes.
940 * stub-objc.c: Likewise.
026c3cfd 941
a9dcd529
EB
9422015-07-08 Eric Botcazou <ebotcazou@adacore.com>
943
944 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
945 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
946
b03b462f
JJ
9472015-07-08 Jakub Jelinek <jakub@redhat.com>
948
949 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
950 are to be removed, return NULL rather than original clauses list.
951
c7131fb2
AM
9522015-07-07 Andrew MacLeod <amacleod@redhat.com>
953
954 * array-notation-common.c: Adjust includes.
955 * c-ada-spec.c: Likewise.
956 * c-cilkplus.c: Likewise.
957 * c-common.h: Likewise.
958 * c-cppbuiltin.c: Likewise.
959 * c-dump.c: Likewise.
960 * c-format.c: Likewise.
961 * c-gimplify.c: Likewise.
962 * c-indentation.c: Likewise.
963 * c-lex.c: Likewise.
964 * c-omp.c: Likewise.
965 * c-opts.c: Likewise.
966 * c-pch.c: Likewise.
967 * c-ppoutput.c: Likewise.
968 * c-pragma.c: Likewise.
969 * c-pretty-print.c: Likewise.
970 * c-semantics.c: Likewise.
971 * c-ubsan.c: Likewise.
972 * cilk.c: Likewise.
973 * stub-objc.c: Likewise.
974
2a7fb83f
EB
9752015-07-07 Eric Botcazou <ebotcazou@adacore.com>
976
977 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
978 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
979
a03c9bf1
JM
9802015-07-01 Jason Merrill <jason@redhat.com>
981
36a85135
JM
982 * c-common.h (D_CXX11): Rename from D_CXX0X.
983 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
984 * c-common.c: Adjust.
985
e7fa68d5
JM
986 * c-opts.c (c_common_post_options): Default to C++14.
987
a03c9bf1
JM
988 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
989
fe95b036
ESR
9902015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
991
992 Implement N4197 - Adding u8 character literals
b3d5bc62 993 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
a64be36b 994 CPP_CHAR.
b3d5bc62 995 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
a64be36b 996 CPP_UTF8CHAR_USERDEF tokens.
b3d5bc62 997 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
a64be36b
EB
998 and CPP_UTF8CHAR tokens.
999 (lex_charconst): Treat CPP_UTF8CHAR token.
fe95b036 1000
da2e71c9
MLI
10012015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1002
1003 PR fortran/66605
1004 * c-common.c (do_warn_unused_parameter): Move here.
1005 * c-common.h (do_warn_unused_parameter): Declare.
1006
b155cfd9
MP
10072015-06-29 Marek Polacek <polacek@redhat.com>
1008
1009 PR c/66322
1010 * c-common.c (check_case_bounds): Add bool * parameter. Set
1011 OUTSIDE_RANGE_P.
1012 (c_add_case_label): Add bool * parameter. Pass it down to
1013 check_case_bounds.
1014 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
1015 warning here.
1016 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
1017 declarations.
1018
31521951
MP
10192015-06-27 Marek Polacek <polacek@redhat.com>
1020
1021 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
1022 or VECTOR_INTEGER_TYPE_P throughout.
1023 * c-gimplify.c: Likewise.
1024
22d03525
MP
10252015-06-26 Marek Polacek <polacek@redhat.com>
1026
1027 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
1028 * c-common.c (c_fully_fold_internal): Likewise.
1029 (c_alignof_expr): Likewise.
1030 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
1031 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
b1726d6c 1032 * cilk.c (create_parm_list): Likewise.
22d03525 1033
af05e6e5
MP
10342015-06-26 Marek Polacek <polacek@redhat.com>
1035
1036 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
1037
f0889939
AM
10382015-06-25 Andrew MacLeod <amacleod@redhat.com>
1039
1040 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
1041 * c-gimplify.c: Likewise.
1042 * c-pragma.c: Likewise.
1043 * c-ubsan.c: Likewise.
1044 * cilk.c: Likewise.
1045
ca752f39
RS
10462015-06-25 Richard Sandiford <richard.sandiford@arm.com>
1047
1048 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
1049 ggc_hasher.
1050
16a16ec7
AM
10512015-06-25 Andrew MacLeod <amacleod@redhat.com>
1052
1053 * cilk.c: Move calls.h after tm.h in the include chain.
1054
0ae9bd27
MP
10552015-06-25 Marek Polacek <polacek@redhat.com>
1056
1057 * array-notation-common.c: Use VAR_P throughout.
1058 * c-ada-spec.c: Likewise.
1059 * c-common.c: Likewise.
1060 * c-format.c: Likewise.
1061 * c-gimplify.c: Likewise.
1062 * c-omp.c: Likewise.
1063 * c-pragma.c: Likewise.
1064 * c-pretty-print.c: Likewise.
1065 * cilk.c: Likewise.
1066
62f9079a
MP
10672015-06-25 Marek Polacek <polacek@redhat.com>
1068
1069 * cilk.c (extract_free_variables): Use is_global_var.
1070
0fa16060
RS
10712015-06-23 Richard Sandiford <richard.sandiford@arm.com>
1072
1073 * c-common.c: Don't include target-def.h.
1074
a68ae2e1
MP
10752015-06-23 Marek Polacek <polacek@redhat.com>
1076
1077 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
1078 when comparing INTEGER_CSTs.
1079
c6a2f2d9
PMR
10802015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
1081
1082 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
1083 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
1084 (dump_ada_template): Skip partially specialized types.
1085
6b4db501
MM
10862015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
1087
1088 * c-common.c (scalar_to_vector): Use std::swap instead of manually
1089 swapping.
1090
abb226c9
AM
10912015-06-17 Andrew MacLeod <amacleod@redhat.com>
1092
1093 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
1094 * c-ada-spec.c: Likewise.
1095 * c-cilkplus.c: Likewise.
1096 * c-common.c: Likewise.
1097 * c-common.h: Likewise.
1098 * c-cppbuiltin.c: Likewise.
1099 * c-dump.c: Likewise.
1100 * c-format.c: Likewise.
1101 * c-gimplify.c: Likewise.
1102 * c-indentation.c: Likewise.
1103 * c-lex.c: Likewise.
1104 * c-omp.c: Likewise.
1105 * c-opts.c: Likewise.
1106 * c-pch.c: Likewise.
1107 * c-ppoutput.c: Likewise.
1108 * c-pragma.c: Likewise.
1109 * c-pretty-print.c: Likewise.
1110 * c-semantics.c: Likewise.
1111 * c-ubsan.c: Likewise.
1112 * cilk.c: Likewise.
1113 * stub-objc.c: Likewise.
1114
076fecad
PP
11152015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
1116
1117 PR c++/65168
1118 * c-common.c (c_common_truthvalue_conversion): Warn when
1119 converting an address of a reference to a truth value.
1120
13fdf2e2
AM
11212015-06-08 Andrew MacLeod <amacleod@redhat.com>
1122
1123 * array-notation-common.c : Adjust include files.
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
a1661b90
MP
11452015-06-08 Marek Polacek <polacek@redhat.com>
1146
1147 PR c/66415
1148 * c-format.c (location_from_offset): Return LOC if LINE is null.
1149
d7438551
AH
11502015-06-05 Aldy Hernandez <aldyh@redhat.com>
1151
1152 * c-common.h (c_parse_final_cleanups): New prototype.
1153 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
1154
b3d5bc62
JJ
11552015-06-04 Sriraman Tallam <tmsriram@google.com>
1156
1157 * c-common.c (noplt): New attribute.
1158 (handle_noplt_attribute): New handler.
1159
ecb9f223
AM
11602015-06-04 Andrew MacLeod <amacleod@redhat.com>
1161
1162 * array-notation-common.c: Adjust includes for restructured coretypes.h.
1163 * c-ada-spec.c: Likewise.
1164 * c-cilkplus.c: Likewise.
1165 * c-common.c: Likewise.
1166 * c-common.h: Likewise.
1167 * c-cppbuiltin.c: Likewise.
1168 * c-dump.c: Likewise.
1169 * c-format.c: Likewise.
1170 * c-gimplify.c: Likewise.
1171 * c-indentation.c: Likewise.
1172 * c-lex.c: Likewise.
1173 * c-omp.c: Likewise.
1174 * c-opts.c: Likewise.
1175 * c-pch.c: Likewise.
1176 * c-ppoutput.c: Likewise.
1177 * c-pragma.c: Likewise.
1178 * c-pretty-print.c: Likewise.
1179 * c-semantics.c: Likewise.
1180 * c-ubsan.c: Likewise.
1181 * cilk.c: Likewise.
1182 * stub-objc.c: Likewise.
1183
6ac48155
DM
11842015-06-02 David Malcolm <dmalcolm@redhat.com>
1185
1186 PR c/66220:
1187 * c-indentation.c (should_warn_for_misleading_indentation): Use
1188 expand_location rather than expand_location_to_spelling_point.
1189 Don't warn if the guarding statement is more indented than the
1190 next/body stmts.
1191
773ce42e
DM
11922015-06-02 David Malcolm <dmalcolm@redhat.com>
1193
1194 * c-indentation.c (warn_for_misleading_indentation): Bail out
1195 immediately if -Wmisleading-indentation isn't enabled.
1196
4fef8379
ML
11972015-06-01 Martin Liska <mliska@suse.cz>
1198
1199 * c-format.c (check_format_arg):Use new type-based pool allocator.
1200 (check_format_info_main) Likewise.
1201
1edfb384
EB
12022015-05-31 Eric Botcazou <ebotcazou@adacore.com>
1203
1204 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
1205 (has_nontrivial_methods): Likewise.
1206
9677ef52
MP
12072015-05-25 Marek Polacek <polacek@redhat.com>
1208
1209 * c-ubsan.c (ubsan_instrument_shift): Use type0.
1210
fd5c817a
MP
12112015-05-22 Marek Polacek <polacek@redhat.com>
1212
1213 PR c/47043
1214 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
1215
a2f45fe6 12162015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
581edfa3
TS
1217
1218 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
1219 STACK_GROWS_DOWNWARD.
1220
a2f45fe6 12212015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
62f9f30b
TS
1222
1223 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
1224 STACK_GROWS_DOWNWARD rather than if it is defined.
1225
0fee2ac2 12262015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
b1726d6c 1227
0fee2ac2
MLI
1228 PR c/52952
1229 * c-format.c (location_column_from_byte_offset): New.
1230 (location_from_offset): New.
1231 (struct format_wanted_type): Add offset_loc field.
1232 (check_format_info): Move handling of location for extra arguments
1233 closer to the point of warning.
1234 (check_format_info_main): Pass the result of location_from_offset
1235 to warning_at.
1236 (format_type_warning): Pass the result of location_from_offset
1237 to warning_at.
1238
cf4ef6f7
MP
12392015-05-20 Marek Polacek <polacek@redhat.com>
1240
1241 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
1242
3a65ee74
MP
12432015-05-20 Marek Polacek <polacek@redhat.com>
1244
1245 * c-ada-spec.c (dump_sloc): Use DECL_P.
1246
21b634ae
MP
12472015-05-20 Marek Polacek <polacek@redhat.com>
1248
1249 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
1250 * c-common.c: Likewise.
1251
0e50b624
DM
12522015-05-19 David Malcolm <dmalcolm@redhat.com>
1253
1254 * c-common.h (fe_file_change): Strengthen param from
1255 const line_map * to const line_map_ordinary *.
1256 (pp_file_change): Likewise.
1257 * c-lex.c (fe_file_change): Likewise.
1258 (cb_define): Use linemap_check_ordinary when invoking
1259 SOURCE_LINE.
1260 (cb_undef): Likewise.
1261 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
1262 invoking cb_file_change.
1263 (c_finish_options): Likewise.
1264 (push_command_line_include): Likewise.
1265 (cb_file_change): Strengthen param "new_map" from
1266 const line_map * to const line_map_ordinary *.
1267 * c-ppoutput.c (cb_define): Likewise for local "map".
1268 (pp_file_change): Likewise for param "map" and local "from".
1269
fab27f52
MM
12702015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
1271
1272 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
1273
2fe1d762
TV
12742015-05-18 Tom de Vries <tom@codesourcery.com>
1275
1276 * c-common.c (build_va_arg_1): New function.
1277 (build_va_arg): Add address operator to va_list operand if necessary.
1278
7a37fa90
MM
12792015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
1280
1281 PR c/48956
1282 * c-common.c (int_safely_convertible_to_real_p): Define.
1283 (unsafe_conversion_p): Check conversions involving complex types.
1284 (conversion_warning): Add new warning message for conversions which
1285 discard imaginary component.
1286 * c-common.h: (enum conversion_safety): Add new enumerator for such
1287 conversions.
1288
3aa3c9fc
MP
12892015-05-14 Marek Polacek <polacek@redhat.com>
1290
1291 PR c/66066
1292 PR c/66127
1293 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
1294 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
1295 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
1296 use it. If FOR_INT_CONST, require that all evaluated operands be
1297 INTEGER_CSTs.
1298
c3388e62
DM
12992015-05-12 David Malcolm <dmalcolm@redhat.com>
1300
1301 * c-common.h (warn_for_misleading_indentation): New prototype.
1302 * c-indentation.c: New file.
1303 * c.opt (Wmisleading-indentation): New option.
1304
c7b38fd5
TV
13052015-05-12 Tom de Vries <tom@codesourcery.com>
1306
1307 PR tree-optimization/66010
1308 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
1309
381bf11e
JM
13102015-05-09 Jason Merrill <jason@redhat.com>
1311
edff0c06
JM
1312 * c-opts.c (c_common_post_options): Also clear
1313 cpp_opts->cpp_warn_cxx11_compat.
1314
129211bc
JM
1315 * c-common.h (enum cxx_dialect): Add cxx_unset.
1316 * c-common.c (cxx_dialect): Initialize to cxx_unset.
1317 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
1318
381bf11e
JM
1319 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
1320 (std=gnu++0x): Mark as Undocumented.
1321 (std=gnu++1y): Add deprecated message.
1322
fe191308
JM
13232015-05-08 Jason Merrill <jason@redhat.com>
1324
765189ff
JM
1325 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
1326 * c-opts.c: Adjust.
1327
fe191308
JM
1328 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
1329
755e528f
MP
13302015-05-08 Marek Polacek <polacek@redhat.com>
1331
1332 PR c/64918
1333 * c.opt (Woverride-init-side-effects): New option.
1334
0173bd2a
MP
13352015-05-07 Marek Polacek <polacek@redhat.com>
1336
1337 PR c/65179
1338 * c-common.c (c_fully_fold_internal): Warn when left shifting a
1339 negative value.
1340 * c.opt (Wshift-negative-value): New option.
1341 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
1342 when -Wextra and C99/C++11 mode.
1343
e0f0d3b9
MP
13442015-05-07 Marek Polacek <polacek@redhat.com>
1345 Martin Uecker <uecker@eecs.berkeley.edu>
1346
1347 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
1348 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
1349
8243e2a9
JM
13502015-05-05 Jason Merrill <jason@redhat.com>
1351
1352 * c.opt (Wterminate): New.
1353
577cd070
MP
13542015-04-30 Marek Polacek <polacek@redhat.com>
1355
1356 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
1357 require that the non-constant be of a boolean type.
1358
0373796b
JT
13592015-04-29 Josh Triplett <josh@joshtriplett.org>
1360
e0f0d3b9
MP
1361 * c-common.c (handle_section_attribute): Refactor to reduce
1362 nesting and distinguish between error cases.
0373796b 1363
716c0ba6
MP
13642015-04-29 Marek Polacek <polacek@redhat.com>
1365
1366 PR c/64610
1367 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
1368 with 0/1.
1369
8848828b
JJ
13702015-04-29 Jakub Jelinek <jakub@redhat.com>
1371
1372 * c-common.h (omp_clause_mask): Unconditionally define as a class.
1373 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
1374 HOST_BITS_PER_WIDE_INT.
1375
ecd0e562
TV
13762015-04-28 Tom de Vries <tom@codesourcery.com>
1377
1378 PR tree-optimization/65887
1379 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
1380
2a877204 13812015-04-28 Eric Botcazou <ebotcazou@adacore.com>
e0f0d3b9 1382 Pierre-Marie de Rodat <derodat@adacore.com>
2a877204
EB
1383
1384 * c-ada-spec.c (in_function): Delete.
1385 (dump_generic_ada_node): Do not change in_function and remove the
1386 redundant code dealing with it.
1387 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
1388 (print_ada_methods): Output the static member functions in a nested
1389 package after the regular methods as well as associated renamings.
1390
4853031e
MP
13912015-04-24 Marek Polacek <polacek@redhat.com>
1392
1393 PR c/65830
1394 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
1395 and OPT_Wshift_count_overflow.
1396
8c2b7f79
MP
1397 PR c/63357
1398 * c-common.c (warn_logical_operator): Warn if the operands have the
1399 same expressions.
1400
b8787813
MP
14012015-04-24 Marek Polacek <polacek@redhat.com>
1402
1403 PR c/61534
1404 * c-common.c (warn_logical_operator): Bail if either operand comes
1405 from a macro expansion.
1406
8fba1830
BRF
14072015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1408
1409 PR target/55143
1410 * c-common.c (c_default_pointer_mode): Add definition.
1411 * c-common.h (c_default_pointer_mode): Add declaration.
1412
17958621
JJ
14132015-03-11 Jakub Jelinek <jakub@redhat.com>
1414
1415 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
1416 on record_builtin_type argument.
1417
7ccb1a11
JJ
14182015-03-10 Jakub Jelinek <jakub@redhat.com>
1419
1420 PR c/65120
1421 * c-common.c (warn_logical_not_parentheses): Don't warn for
1422 !x == 0 or !x != 0.
1423
04fd785e
MP
14242015-03-07 Marek Polacek <polacek@redhat.com>
1425
1426 PR sanitizer/65280
1427 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
1428 before trying to figure out whether we have a flexible array member.
1429
a4e26206
EB
14302015-03-06 Eric Botcazou <ebotcazou@adacore.com>
1431 Jonathan Wakely <jwakely.gcc@gmail.com>
1432
1433 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
1434
0d2489f4
EB
14352015-03-05 Eric Botcazou <ebotcazou@adacore.com>
1436
1437 PR ada/65319
1438 * c-ada-spec.c (print_destructor): Remove obsolete code.
1439
83ed54d7
EB
14402015-03-01 Eric Botcazou <ebotcazou@adacore.com>
1441
1442 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
1443 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
1444 DECL_TEMPLATE_RESULT emulations.
1445 (dump_ada_template)): Add guard for TYPE_METHODS.
1446
7631f0e2
MP
14472015-02-27 Marek Polacek <polacek@redhat.com>
1448
1449 PR c/65040
1450 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
1451
d1783ae5
KT
14522015-02-27 Kai Tietz <ktietz@redhat.com>
1453
1454 PR c/35330
1455 * c-pragma.c (handle_pragma_weak): Do not try to create
1456 weak/alias of declarations not being function, or variable
1457 declarations.
1458
56a9f6bc
TS
14592015-02-24 Thomas Schwinge <thomas@codesourcery.com>
1460
1461 PR libgomp/64625
1462 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
1463 Remove macros.
1464 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
1465
3d5cb23d
MP
14662015-02-16 Marek Polacek <polacek@redhat.com>
1467
1468 PR c/65066
1469 * c-format.c (check_format_types): Handle null param.
1470
fa008882
MP
14712015-02-13 Marek Polacek <polacek@redhat.com>
1472
1473 PR c/65040
1474 * c-format.c (check_format_types): Don't warn about different
1475 signedness if the original value is in the range of WANTED_TYPE.
1476
785f21af
JM
14772015-02-12 Jason Merrill <jason@redhat.com>
1478
1479 PR c++/64956
1480 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
1481 to the current highest version.
1482 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
1483
4886ec8e
JJ
14842015-02-04 Jakub Jelinek <jakub@redhat.com>
1485
1486 PR c/64824
1487 PR c/64868
1488 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
1489 instead of RDIV_EXPR. Use build_binary_op instead of
1490 build2_loc.
1491
40fecdd6
JM
14922015-01-30 Joseph Myers <joseph@codesourcery.com>
1493
1494 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
1495 to pass input_location as first argument.
1496
a0c88d06
TV
14972015-01-23 Tom de Vries <tom@codesourcery.com>
1498
1499 PR libgomp/64672
1500 * c.opt (fopenacc): Mark as LTO option.
1501
1506ae0e
TV
15022015-01-23 Tom de Vries <tom@codesourcery.com>
1503
1504 PR libgomp/64707
1505 * c.opt (fopenmp): Mark as LTO option.
1506
31be63ab
JJ
15072015-01-21 Jakub Jelinek <jakub@redhat.com>
1508
1509 PR c/63307
b1726d6c 1510 * cilk.c (fill_decls_vec): Only put decls into vector v.
31be63ab
JJ
1511 (compare_decls): Fix up formatting.
1512
15132015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
1514
1515 PR c/63307
1516 * cilk.c: Include vec.h.
1517 (struct cilk_decls): New structure.
1518 (wrapper_parm_cb): Split this function to...
1519 (fill_decls_vec): ...this...
1520 (create_parm_list): ...and this.
1521 (compare_decls): New function.
1522 (for_local_cb): Remove.
1523 (wrapper_local_cb): Ditto.
1524 (build_wrapper_type): For now first traverse and fill vector of
1525 declarations then sort it and then deal with sorted vector.
1526 (cilk_outline): Ditto.
1527 (declare_one_free_variable): Ditto.
1528
6875457f
JM
15292015-01-21 Jason Merrill <jason@redhat.com>
1530
1531 PR c++/64629
1532 * c-format.c (check_format_arg): Call decl_constant_value.
1533
185c9e56
ML
15342015-01-19 Martin Liska <mliska@suse.cz>
1535
1536 * c-common.c (handle_noicf_attribute): New function.
1537
41dbbb37
TS
15382015-01-15 Thomas Schwinge <thomas@codesourcery.com>
1539 Bernd Schmidt <bernds@codesourcery.com>
1540 James Norris <jnorris@codesourcery.com>
1541 Cesar Philippidis <cesar@codesourcery.com>
1542 Ilmir Usmanov <i.usmanov@samsung.com>
1543 Jakub Jelinek <jakub@redhat.com>
1544
1545 * c.opt (fopenacc): New option.
1546 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
1547 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
1548 New macros.
1549 * c-common.h (c_finish_oacc_wait): New prototype.
1550 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
1551 (c_finish_oacc_wait): New function.
1552 * c-pragma.c (oacc_pragmas): New variable.
1553 (c_pp_lookup_pragma, init_pragma): Handle it.
1554 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
1555 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
1556 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
1557 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
1558 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
1559 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
1560 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
1561 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
1562 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
1563 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
1564 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
1565 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
1566 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
1567 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
1568 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
1569 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
1570 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
1571 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
1572 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
1573 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
1574 PRAGMA_OACC_CLAUSE_WORKER.
1575
5434dc07
MD
15762015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
1577
1578 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
1579 for the new option fstack-protector_explicit.
1580 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
1581 (handle_stack_protect_attribute): New function.
1582
de1b5c17
MU
15832015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
1584
1585 * c.opt: New option -Warray-bounds=.
1586
adfac8df
JJ
15872015-01-09 Michael Collison <michael.collison@linaro.org>
1588
1589 * array-notation-common.c: Include hash-set.h, machmode.h,
1590 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1591 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
1592 * c-ada-spec.c: Ditto.
1593 * c-cilkplus.c: Ditto.
1594 * c-common.c: Include input.h due to flattening of tree.h.
1595 Define macro GCC_C_COMMON_C.
1596 * c-common.h: Flatten tree.h header files into c-common.h.
1597 Remove include of tree-core.h.
1598 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
1599 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1600 fold-const.h, wide-int.h, and inchash.h due to
1601 flattening of tree.h.
1602 * c-dump.c: Ditto.
1603 * c-format.c: Flatten tree.h header files into c-common.h.
1604 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
1605 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1606 fold-const.h, wide-int.h, and inchash.h due to
1607 flattening of tree.h.
1608 * c-dump.c: Include hash-set.h, machmode.h,
1609 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1610 fold-const.h, wide-int.h, and inchash.h due to
1611 flattening of tree.h.
1612 * c-format.c: Include hash-set.h, machmode.h,
1613 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1614 fold-const.h, wide-int.h, inchash.h and real.h due to
1615 flattening of tree.h.
1616 * c-gimplify.c: Include hash-set.h, machmode.h,
1617 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1618 fold-const.h, wide-int.h, and inchash.h due to
1619 flattening of tree.h.
1620 * cilk.c: Ditto.
1621 * c-lex.c: Ditto.
1622 * c-omp.c: Ditto.
1623 * c-opts.c: Ditto.
1624 * c-pch.c: Ditto.
1625 * c-ppoutput.c: Ditto.
1626 * c-pragma.c: Ditto.
1627 * c-pretty-print.c: Ditto.
1628 * c-semantics.c: Ditto.
1629 * c-ubsan.c: Ditto.
1630 * stub-objc.c: Ditto.
1631
f5481fc4
JM
16322015-01-08 Jason Merrill <jason@redhat.com>
1633
1634 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
1635 do_ubsan_in_current_function.
1636 (ubsan_maybe_instrument_reference_or_call): Likewise.
1637 * c-ubsan.h: Declare it.
1638
de35aa66
MS
16392015-01-08 Mike Stump <mikestump@comcast.net>
1640
1641 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
1642
4a9a42ab
MP
16432015-01-07 Marek Polacek <polacek@redhat.com>
1644
1645 PR c/64440
1646 * c-common.c (c_fully_fold_internal): Warn for division and modulo
1647 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
1648
2f42e5de
TS
16492015-01-05 Trevor Saunders <tsaunders@mozilla.com>
1650
1651 PR c++/31397
1652 * c.opt (Wsuggest-override): New option.
1653
5624e564
JJ
16542015-01-05 Jakub Jelinek <jakub@redhat.com>
1655
1656 Update copyright years.
1657
5bd012f8
MP
16582015-01-05 Marek Polacek <polacek@redhat.com>
1659
1660 PR c/64423
1661 * c-common.c (warn_array_subscript_with_type_char): Add location_t
1662 parameter. Use it.
1663 * c-common.h (warn_array_subscript_with_type_char): Update
1664 declaration.
1665
a7fa8d18
ESR
16662014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
1667
1668 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
1669 Control macro with flag_sized_deallocation.
1670
768952be
MU
16712014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
1672
1673 * c.opt (Wdiscarded-array-qualifiers): New option.
1674
1f8d3e84
JJ
16752014-12-19 Jakub Jelinek <jakub@redhat.com>
1676
1677 PR preprocessor/63831
1678 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
1679 and __has_cpp_attribute here.
1680 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
1681 c_common_has_attribute.
1682 * c-common.h (c_common_has_attribute): New prototype.
1683 * c-lex.c (init_c_lex): Set cb->has_attribute to
1684 c_common_has_attribute instead of cb_has_attribute.
1685 (get_token_no_padding): New function.
1686 (cb_has_attribute): Renamed to ...
1687 (c_common_has_attribute): ... this. No longer static. Use
1688 get_token_no_padding, require ()s, don't build TREE_LIST
1689 unnecessarily, fix up formatting, adjust diagnostics, call
1690 init_attributes.
1691
20b06add
JM
16922014-12-15 Jason Merrill <jason@redhat.com>
1693
1694 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
1695 (-Wsized-deallocation): New.
1696 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
1697 to on in C++14 and up.
1698
94a073b2
JM
16992014-12-11 Jason Merrill <jason@redhat.com>
1700
acaa5911
JM
1701 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
1702
94a073b2
JM
1703 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
1704 we aren't complaining about VLAs.
1705
7fb66c15
MP
17062014-12-06 Marek Polacek <polacek@redhat.com>
1707
1708 PR tree-optimization/64183
1709 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
1710 shift-expression if it is integer_type_node. Use types_compatible_p.
1711
b731b390
JJ
17122014-11-29 Jakub Jelinek <jakub@redhat.com>
1713
1714 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
1715 last argument from create_tmp_var_raw and create_tmp_var calls.
1716 * cilk.c (gimplify_cilk_spawn): Likewise.
1717 * c-omp.c (c_finish_omp_atomic): Likewise.
1718
6a4da643
MP
17192014-11-28 Marek Polacek <polacek@redhat.com>
1720
1721 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
1722 instead of unsigned_type_node.
1723
541e35a6
MP
17242014-11-28 Marek Polacek <polacek@redhat.com>
1725
1726 PR c/63862
1727 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
1728 to op1_utype.
1729 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
1730 expression to unsigned_type_node.
1731
dcc97066
MW
17322014-11-20 Mark Wielaard <mjw@redhat.com>
1733
1734 PR debug/38757
1735 * c-opts.c (set_std_c89): Set lang_hooks.name.
1736 (set_std_c99): Likewise.
1737 (set_std_c11): Likewise.
1738 (set_std_cxx98): Likewise.
1739 (set_std_cxx11): Likewise.
1740 (set_std_cxx14): Likewise.
1741 (set_std_cxx1z): Likewise.
1742
aa7da51a
JJ
17432014-11-21 Jakub Jelinek <jakub@redhat.com>
1744
1745 PR target/63764
1746 * c-common.h (convert_vector_to_pointer_for_subscript): Change
1747 return type to bool.
009a3480 1748 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
1749 (convert_vector_to_pointer_for_subscript): Change return type to
1750 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
1751 and copy it into a TARGET_EXPR and use that instead of *vecp
1752 directly.
1753
538dd0b7
DM
17542014-11-19 David Malcolm <dmalcolm@redhat.com>
1755
1756 Merger of git branch "gimple-classes-v2-option-3".
1757 * ChangeLog.gimple-classes: New.
1758 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
1759 from being just a vec<gimple> to a vec<gbind *>.
1760
c39a5e99
JJ
17612014-11-18 Jakub Jelinek <jakub@redhat.com>
1762
1763 PR sanitizer/63813
1764 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
1765 argument to ptype, set type to TREE_TYPE (ptype). Don't call
1766 get_pointer_alignment for non-pointers. Use ptype, or if it is
1767 reference type, corresponding pointer type, as type of kind
1768 argument.
1769 (ubsan_maybe_instrument_reference,
1770 ubsan_maybe_instrument_member_call): Adjust callers.
1771
8537a4a9
MP
17722014-11-15 Marek Polacek <polacek@redhat.com>
1773
1774 PR middle-end/63884
1775 * array-notation-common.c (is_sec_implicit_index_fn): Return false
1776 for NULL fndecl.
1777 (extract_array_notation_exprs): Return for NULL node.
1778
2079956a
JM
17792014-11-12 Joseph Myers <joseph@codesourcery.com>
1780
1781 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
1782 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
1783
1304953e
JJ
17842014-11-12 Jakub Jelinek <jakub@redhat.com>
1785
1786 PR c/59708
1787 * c-common.c (check_builtin_function_arguments): Handle
1788 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
1789
e5e44252
AK
17902014-11-10 Andi Kleen <ak@linux.intel.com>
1791
1792 PR c/60804
1793 * c-common.h (check_no_cilk): Declare.
1794 * cilk.c (get_error_location): New function.
1795 (check_no_cilk): Dito.
1796
e64b984d
AK
17972014-11-10 Andi Kleen <ak@linux.intel.com>
1798
1799 * cilk.c (recognize_spawn): Use expression location
1800 for error message.
1801
13c21655
PC
18022014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
1803
1804 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
1805
42fd12b1
ESR
18062014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
1807
1808 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
1809 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
1810 (__cpp_range_based_for, __cpp_initializer_lists,
1811 __cpp_delegating_constructors, __cpp_nsdmi,
1812 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
1813 for C++11; (__cpp_attribute_deprecated): Remove in favor of
1814 __has_cpp_attribute.
1815 * c-lex.c (cb_has_attribute): New callback CPP function;
1816 (init_c_lex): Set has_attribute callback.
1817
6f450181
RB
18182014-11-04 Richard Biener <rguenther@suse.de>
1819
1820 * c-common.c (shorten_compare): Do not shorten mixed
1821 DFP and non-DFP compares.
1822
26f0e1d6
ESR
18232014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
1824
1825 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
1826 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
1827 Commentary and rearrangement of tests.
1828 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
1829 Commentary and rearrangement of tests.
1830 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
1831 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
1832
ef4bddc2
RS
18332014-10-29 Richard Sandiford <richard.sandiford@arm.com>
1834
1835 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
1836 enum from machine_mode.
1837
c582198b
AM
18382014-10-28 Andrew MacLeod <amacleod@redhat.com>
1839
adfac8df
JJ
1840 * c-common.c: Adjust include files.
1841 * c-gimplify.c: Ditto.
1842 * cilk.c: Ditto.
1843 * c-pragma.c: Ditto.
1844 * c-ubsan.c: Ditto.
c582198b 1845
60393bbc
AM
18462014-10-27 Andrew MacLeod <amacleod@redhat.com>
1847
1848 * c-gimplify.c: Adjust include files.
1849
d723bb7c
MLI
18502014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
1851
1852 PR c++/53061
1853 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
1854 c_common_initialize_diagnostics.
1855 * c-common.h: Likewise.
1856
90f3520e
MP
18572014-10-24 Marek Polacek <polacek@redhat.com>
1858
1859 PR c/56980
1860 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
1861 print "struct"/"union"/"enum" for typedefed names.
1862
59d7607a
MP
18632014-10-23 Marek Polacek <polacek@redhat.com>
1864
1865 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
1866 in unsigned type.
1867
d95a2703
JJ
18682014-10-22 Jakub Jelinek <jakub@redhat.com>
1869 Yury Gribov <y.gribov@samsung.com>
1870
1871 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1872 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
1873 instead of flag_sanitize_recover as bool flag.
1874
8e6ef852
KY
18752014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
1876
1877 * cilk.c: Revert previous change.
1878
948cf550
IZ
18792014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
1880
1881 PR c/63307
1882 * cilk.c: Include vec.h.
1883 (struct cilk_decls): New structure.
1884 (wrapper_parm_cb): Split this function to...
1885 (fill_decls_vec): ...this...
1886 (create_parm_list): ...and this.
1887 (compare_decls): New function.
1888 (for_local_cb): Remove.
1889 (wrapper_local_cb): Ditto.
1890 (build_wrapper_type): For now first traverse and fill vector of
1891 declarations then sort it and then deal with sorted vector.
1892 (cilk_outline): Ditto.
1893 (declare_one_free_variable): Ditto.
1894
92574c7c
MP
18952014-10-17 Marek Polacek <polacek@redhat.com>
1896
1897 * c-opts.c (c_common_post_options): Set warn_implicit_int.
1898 * c.opt (Wimplicit-int): Initialize to -1.
1899
83685514
AM
19002014-10-16 Andrew MacLeod <amacleod@redhat.com>
1901
1902 * c-pragma.c: Adjust include files.
1903 * c-semantics.c: Likewise.
1904
5b8300ea
DD
19052014-10-16 DJ Delorie <dj@redhat.com>
1906
1907 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
1908 multiples of bytes.
1909
5f83e90b
JM
19102014-10-14 Jason Merrill <jason@redhat.com>
1911
1912 PR c++/63455
1913 * c-common.h (CPP_PREPARSED_EXPR): New.
1914 (N_CP_TTYPES): Adjust.
1915
d73326ca
MP
19162014-10-15 Marek Polacek <polacek@redhat.com>
1917
1918 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
1919
78a7c317
DD
19202014-10-14 DJ Delorie <dj@redhat.com>
1921
1922 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
1923 types, not just __int128.
1924 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
1925 types, not just __int128.
1926 (cpp_atomic_builtins): Round pointer sizes up.
1927 (type_suffix): Use type precision, not specific types.
1928 * c-common.c (c_common_reswords): Remove __int128 special case.
1929 (c_common_type_for_size): Check for all __intN types, not just
1930 __int128.
1931 (c_common_type_for_mode): Likewise.
1932 (c_common_signed_or_unsigned_type): Likewise.
1933 (c_build_bitfield_integer_type): Likewise.
1934 (c_common_nodes_and_builtins): Likewise.
1935 (keyword_begins_type_specifier): Likewise.
1936 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
1937 __intN variants.
1938
2a22f99c
TS
19392014-10-12 Trevor Saunders <tsaunders@mozilla.com>
1940
1941 * c-common.c: Use hash_table instead of hashtab.
1942
2a8ef767
ESR
19432014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
1944
adfac8df 1945 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
1946 C++11 section.
1947
3c9aabbd
MG
19482014-10-03 Marc Glisse <marc.glisse@inria.fr>
1949
1950 PR c++/54427
1951 PR c++/57198
1952 PR c++/58845
1953 * c-common.c (warn_logical_operator): Punt for vectors.
1954
a15f7cb8
ESR
19552014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
1956
1957 Implement SD-6: SG10 Feature Test Recommendations
1958 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
1959 macros and the __has_header macro.
1960
8d0cf15e
JM
19612014-09-30 Jason Merrill <jason@redhat.com>
1962
dd5d5481
JM
1963 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
1964 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
1965 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
1966
b752325e
JM
1967 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
1968 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
1969
8d0cf15e
JM
1970 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
1971 * c-common.c (c_common_reswords): Remove __is_convertible_to.
1972
083e891e
MP
19732014-09-24 Marek Polacek <polacek@redhat.com>
1974
1975 PR c/61405
1976 PR c/53874
1977 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
1978
7861b648
AK
19792014-09-23 Andi Kleen <ak@linux.intel.com>
1980
1981 * c-common.c (handle_no_reorder_attribute): New function.
1982 (c_common_attribute_table): Add no_reorder attribute.
1983
9a79452d
JM
19842014-09-22 Joseph Myers <joseph@codesourcery.com>
1985
1986 * c-cppbuiltin.c (c_cpp_builtins): Define
1987 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
1988 modes.
1989
dd69f047
JM
19902014-09-18 Joseph Myers <joseph@codesourcery.com>
1991
1992 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
1993 for supported floating-point modes.
1994
737a4826
MLI
19952014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1996
1997 * c.opt (Wpsabi): Use LangEnabledBy.
1998 * c-opts.c (c_common_handle_option): Do not handle here.
1999
8cc4b7a2
JM
20002014-09-12 Joseph Myers <joseph@codesourcery.com>
2001
2002 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
2003 macros for floating-point modes.
2004
179b5a55
MG
20052014-09-11 Marc Glisse <marc.glisse@inria.fr>
2006
2007 PR target/58757
2008 * c-cppbuiltin.c (builtin_define_float_constants): Correct
2009 __*_DENORM_MIN__ without denormals.
2010
570a11fe
JJ
20112014-09-10 Jakub Jelinek <jakub@redhat.com>
2012
2013 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2014 ubsan_instrument_vla, ubsan_instrument_return): Adjust
2015 ubsan_create_data callers.
2016 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
2017 index is constant or BIT_AND_EXPR with constant mask and is
2018 small enough for the bound.
2019 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
2020 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
2021
b559c810
MLI
20222014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2023
2024 * c.opt: Add CppReason to various flags.
2025 (Wdate-time): Re-sort.
2026 * c-common.c: Include c-common.h earlier.
2027 (struct reason_option_codes_t): Delete.
2028 (c_option_controlling_cpp_error): Prefix global type and struct
2029 with cpp_.
2030
1ef33fd4
MLI
20312014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2032
2033 * c.opt (Wnormalized): New.
2034 (Wnormalized=): Use Enum and Reject Negative.
2035 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
2036
66bb34c0
JM
20372014-09-08 Joseph Myers <joseph@codesourcery.com>
2038
2039 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
2040 digits of floating-point modes if -fbuilding-libgcc.
2041
53d68b9f
JM
20422014-09-05 Joseph Myers <joseph@codesourcery.com>
2043
2044 * c-cppbuiltin.c (c_cpp_builtins): Also define
2045 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
2046 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
2047 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
2048 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
2049 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
2050 __LIBGCC_STACK_GROWS_DOWNWARD__,
2051 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
2052 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
2053 __LIBGCC_DWARF_FRAME_REGISTERS__,
2054 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
2055 __LIBGCC_STACK_POINTER_REGNUM__ and
2056 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
2057 (builtin_define_with_value): Handle backslash-escaping in string
2058 macro values.
2059
f65586dc
RB
20602014-09-05 Richard Biener <rguenther@suse.de>
2061
2062 PR middle-end/63148
2063 * c-format.c (check_format_arg): Properly handle
2064 effectively signed POINTER_PLUS_EXPR offset.
2065
2b71f4a4
MLI
20662014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
2067
2068 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
2069 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
2070 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
2071 and Init.
2072 * c-opts.c (c_common_handle_option): Do not handle here.
2073 (sanitize_cpp_opts): Likewise.
2074 * c-common.c (struct reason_option_codes_t): Handle
2075 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
2076
d2e4feca
MP
20772014-09-03 Marek Polacek <polacek@redhat.com>
2078
2079 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
2080
9a771876
JJ
20812014-09-02 Jakub Jelinek <jakub@redhat.com>
2082 Balaji V. Iyer <balaji.v.iyer@intel.com>
2083 Igor Zamyatin <igor.zamyatin@intel.com>
2084
2085 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
2086 * c-common.c (c_common_reswords): Added _Cilk_for.
2087 * c-common.h (enum rid): Added RID_CILK_FOR.
2088 (cilk_for_number_of_iterations): Add declaration.
2089 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
2090 CILK_FOR.
2091 * c-pragma.c (init_pragma): Register "grainsize" pragma.
2092 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
2093
81b5d104
MLI
20942014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2095
2096 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
2097 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
2098 Wundef): Use CPP, Var and Init.
2099 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
2100
b753b37b
MLI
21012014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2102
2103 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
2104 * c-opts.c (c_common_handle_option): Do not handle here.
2105
028aee17
JM
21062014-08-25 Jason Merrill <jason@redhat.com>
2107
2108 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
2109 -std=c++14 and -std=gnu++14, rather than the reverse.
2110 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
2111 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
2112 * c-common.h (cxx_dialect): Remove cxx1y.
2113
e4276ba5
ESR
21142014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
2115
2116 * c-common.h (enum cxx_dialect): Add cxx14.
2117 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
2118 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
2119 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
2120
a545cacd
JM
21212014-08-22 Jason Merrill <jason@redhat.com>
2122
2123 * c.opt (std=gnu++17): Fix alias.
2124
59ea0364
MP
21252014-08-22 Marek Polacek <polacek@redhat.com>
2126
2127 PR c++/62199
2128 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
2129 check for vector types. Drop LHS argument.
2130 * c-common.h (warn_logical_not_parentheses): Adjust.
2131
596e808c
MLI
21322014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2133
2134 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
2135 (Wmultichar): Likewise.
2136 (Wdate-time): Use C-family languages instead of Common. Use CPP
2137 and Var.
2138 * c-opts.c (c_common_handle_option): Do not handle the above
2139 options here.
2140 (sanitize_cpp_opts): Likewise.
2141
18767f65
MLI
21422014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
2143
2144 PR fortran/44054
2145 * c-opts.c: Include tree-diagnostics.h.
2146 (c_diagnostic_finalizer): New.
2147 (c_common_initialize_diagnostics): Use it.
2148
b4413594
MLI
21492014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2150
2151 PR preprocessor/51303
2152 * c-common.c (struct reason_option_codes_t option_codes):
2153 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
2154
43f9a13c
MLI
21552014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2156
2157 PR c/60975
2158 PR c/53063
2159 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
2160 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
2161 (c_common_post_options): Call init_global_opts_from_cpp.
2162 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
2163
04159acf
MP
21642014-08-19 Marek Polacek <polacek@redhat.com>
2165
2166 PR c++/62153
2167 * c-common.c (maybe_warn_bool_compare): New function.
2168 * c-common.h (maybe_warn_bool_compare): Declare.
2169 * c.opt (Wbool-compare): New option.
2170
35aff4fb
MP
21712014-08-19 Marek Polacek <polacek@redhat.com>
2172
2173 * c.opt (Wc99-c11-compat): New option.
2174
177cce46
MP
21752014-08-19 Marek Polacek <polacek@redhat.com>
2176
2177 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
2178 to warn_c90_c99_compat.
2179 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
2180 to -1.
2181
6ae9194f
MLI
21822014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
2183 Steven Bosscher <steven@gcc.gnu.org>
2184
2185 PR c/52952
2186 * c-format.c: Add extra_arg_loc and format_string_loc to struct
2187 format_check_results.
2188 (check_function_format): Use true and add comment for boolean
2189 argument.
2190 (finish_dollar_format_checking): Use explicit location when warning.
2191 (check_format_info): Likewise.
2192 (check_format_arg): Set extra_arg_loc and format_string_loc.
2193 (check_format_info_main): Use explicit location when warning.
2194 (check_format_types): Pass explicit location.
2195 (format_type_warning): Likewise.
2196
8e54f6d3
MLI
21972014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2198
2199 PR fortran/44054
2200 * c-format.c: Handle Fortran flags.
2201
cd4e76fc
IZ
22022014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
2203
2204 PR other/61962
2205 * array-notation-common.c (find_rank): Added handling for other
2206 types of references.
2207
f3bede71
MP
22082014-08-10 Marek Polacek <polacek@redhat.com>
2209
2210 PR c/51849
2211 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
2212 * c.opt (Wc90-c99-compat): Add option.
2213
9f25a338
TS
22142014-08-07 Trevor Saunders <tsaunders@mozilla.com>
2215
2216 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
2217
62e4eb35
MP
22182014-08-03 Marek Polacek <polacek@redhat.com>
2219
2220 * c-common.c (check_case_value): Add location_t parameter. Use it.
2221 (c_add_case_label): Pass loc to check_case_value.
2222
b787e7a2
TS
22232014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2224
2225 * cilk.c: Use hash_map instead of pointer_map.
2226
6e2830c3
TS
22272014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2228
2229 * c-gimplify.c: Use hash_set instead of pointer_set.
2230
a7ee52fb
IZ
22312014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
2232
2233 PR middle-end/61455
2234 * array-notation-common.c (extract_array_notation_exprs): Handling
2235 of DECL_EXPR added.
2236
944fa280
JJ
22372014-08-01 Jakub Jelinek <jakub@redhat.com>
2238
2239 * c-common.h (min_align_of_type): Removed prototype.
2240 * c-common.c (min_align_of_type): Removed.
2241 * c-ubsan.h (ubsan_maybe_instrument_reference,
2242 ubsan_maybe_instrument_member_call): New prototypes.
2243 * c-ubsan.c: Include stor-layout.h and builtins.h.
2244 (ubsan_maybe_instrument_reference_or_call,
2245 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
2246 functions.
2247
b4dfdc11
MG
22482014-07-31 Marc Glisse <marc.glisse@inria.fr>
2249
2250 PR c++/60517
2251 * c.opt (-Wreturn-local-addr): Move to common.opt.
2252
a41844e5
JM
22532014-07-30 Jason Merrill <jason@redhat.com>
2254
2255 PR c++/61659
2256 PR c++/61687
2257 Revert:
2258 * c.opt (-fuse-all-virtuals): New.
2259
976d5a22
TT
22602014-07-30 Tom Tromey <tromey@redhat.com>
2261
2262 PR c/59855
2263 * c.opt (Wdesignated-init): New option.
2264 * c-common.c (c_common_attribute_table): Add "designated_init".
2265 (handle_designated_init): New function.
2266
cdc94aca
MP
22672014-07-24 Marek Polacek <polacek@redhat.com>
2268
2269 PR c/57653
2270 * c-opts.c (c_finish_options): If -imacros is in effect, return.
2271
f41373b6
DS
22722014-07-16 Dodji Seketeli <dodji@redhat.com>
2273
2274 PR preprocessor/60723 - missing system-ness marks for macro tokens
2275 * c-ppoutput.c (struct print::prev_was_system_token): New data
2276 member.
2277 (init_pp_output): Initialize it.
2278 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
2279 (do_line_change): Return a flag saying if a line marker was
2280 emitted or not.
2281 (scan_translation_unit): Detect if the system-ness of the token we
2282 are about to emit is different from the one of the previously
2283 emitted token. If so, emit a line marker. Avoid emitting useless
2284 adjacent line markers. Avoid emitting line markers for tokens
2285 originating from the expansion of built-in macros.
2286 (scan_translation_unit_directives_only): Adjust.
2287
4d661eaa
MP
22882014-07-15 Marek Polacek <polacek@redhat.com>
2289
2290 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
2291 TYPE_MAX_VALUE is NULL.
2292
b108f48f
JJ
22932014-07-14 Jakub Jelinek <jakub@redhat.com>
2294
2295 PR middle-end/61294
2296 * c.opt (Wmemset-transposed-args): New warning.
2297
c0221884
JM
22982014-07-10 Jason Merrill <jason@redhat.com>
2299
2300 PR c++/61659
2301 PR c++/61687
2302 * c.opt (-fuse-all-virtuals): New.
2303
63dfbb95
RB
23042014-07-09 Richard Biener <rguenther@suse.de>
2305
2306 PR c-family/61741
2307 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2308 using unsigned arithmetic if overflow does not wrap instead of
2309 if overflow is undefined.
2310
773ec47f
MP
23112014-07-06 Marek Polacek <polacek@redhat.com>
2312
2313 PR c/6940
2314 * c.opt (Wsizeof-array-argument): New option.
2315
00a7ba58
JJ
23162014-07-03 Jakub Jelinek <jakub@redhat.com>
2317
b1726d6c 2318 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
00a7ba58
JJ
2319 comments->count <= 1, as comments->entries might be NULL.
2320
52ec0ea3
MP
23212014-07-01 Marek Polacek <polacek@redhat.com>
2322
2323 * c.opt (Wint-conversion): New option.
2324
d5c3d343
MP
23252014-07-01 Marek Polacek <polacek@redhat.com>
2326
2327 PR c/58286
2328 * c.opt (Wincompatible-pointer-types): New option.
2329
6e7ceb17
PC
23302014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
2331
2332 PR c++/51400
2333 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
2334 Do not discard TYPE_QUALS of type.
2335
da73100b
JM
23362014-06-26 Jason Merrill <jason@redhat.com>
2337
2338 * c-common.h (enum cxx_dialect): Add cxx1z.
2339 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
2340 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
2341
08eedf75
TJ
23422014-06-26 Teresa Johnson <tejohnson@google.com>
2343
2344 * c-common.h (get_dump_info): Declare.
2345 * c-gimplify.c (c_genericize): Use saved dump files.
2346 * c-opts.c (c_common_parse_file): Begin and end dumps
2347 once around parsing invocation.
2348 (get_dump_info): New function.
2349
7b56b2f8
MP
23502014-06-23 Marek Polacek <polacek@redhat.com>
2351 Andrew MacLeod <amacleod@redhat.com>
2352
2353 PR c/61553
2354 * c-common.c (get_atomic_generic_size): Don't segfault if the
2355 type doesn't have a size.
2356
0e37a2f3
MP
23572014-06-20 Marek Polacek <polacek@redhat.com>
2358
2359 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
2360 (ubsan_walk_array_refs_r): New function.
2361 (c_genericize): Instrument array bounds.
2362 * c-ubsan.c: Include "internal-fn.h".
2363 (ubsan_instrument_division): Mark instrumented arrays as having
2364 side effects. Adjust ubsan_type_descriptor call.
2365 (ubsan_instrument_shift): Likewise.
2366 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
2367 (ubsan_instrument_bounds): New function.
2368 (ubsan_array_ref_instrumented_p): New function.
2369 (ubsan_maybe_instrument_array_ref): New function.
2370 * c-ubsan.h (ubsan_instrument_bounds): Declare.
2371 (ubsan_array_ref_instrumented_p): Declare.
2372 (ubsan_maybe_instrument_array_ref): Declare.
2373
23742014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
2375
2376 PR lto/61123
2377 * c.opt (fshort-enums): Add to LTO.
2378 * c.opt (fshort-wchar): Likewise.
2379
5c3d09f7
MP
23802014-06-16 Marek Polacek <polacek@redhat.com>
2381
2382 PR c/60439
2383 * c.opt (Wswitch-bool): Add Var.
2384
9cf32741
JJ
23852014-06-12 Jakub Jelinek <jakub@redhat.com>
2386
2387 PR middle-end/61486
2388 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
2389 #pragma omp target teams or
2390 #pragma omp {,target }teams distribute simd.
2391
62984918
JM
23922014-06-12 Jason Merrill <jason@redhat.com>
2393
2394 * c.opt (Wabi=, fabi-compat-version): New.
2395 * c-opts.c (c_common_handle_option): Handle -Wabi=.
2396 (c_common_post_options): Handle flag_abi_compat_version default.
2397 Disallow -fabi-compat-version=1.
2398 * c-common.h (abi_version_crosses): New.
2399
f961457f
JH
24002014-06-11 Jan Hubicka <hubicka@ucw.cz>
2401
adfac8df 2402 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
2403 section names that are no longer trees.
2404
92d28cbb
JJ
24052014-06-10 Jakub Jelinek <jakub@redhat.com>
2406
2407 PR fortran/60928
2408 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
2409 (omp_pragmas): ... back here.
2410
742938c9
MP
24112014-06-05 Marek Polacek <polacek@redhat.com>
2412
2413 PR c/49706
2414 * c-common.c (warn_logical_not_parentheses): New function.
2415 * c-common.h (warn_logical_not_parentheses): Declare.
2416 * c.opt (Wlogical-not-parentheses): New option.
2417
9d548dfb
MP
24182014-06-04 Marek Polacek <polacek@redhat.com>
2419
2420 PR c/30020
2421 * c-common.c (check_case_bounds): Add location parameter.
2422 Use it.
2423 (c_add_case_label): Pass loc to check_case_bounds.
2424
fedfecef
MP
24252014-06-03 Marek Polacek <polacek@redhat.com>
2426
2427 PR c/60439
2428 * c.opt (Wswitch-bool): New option.
2429
f6a7cffc
TS
24302014-05-22 Thomas Schwinge <thomas@codesourcery.com>
2431
040d18b6
TS
2432 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
2433 Remove prototypes.
2434 (record_types_used_by_current_var_decl): Move prototype to where
2435 it belongs.
2436
f6a7cffc
TS
2437 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
2438 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
2439 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
2440
632f2871
RS
24412014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
2442
2443 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
2444 * c-common.c (c_common_nodes_and_builtins): Don't initialize
2445 void_zero_node.
2446 * c-pretty-print.c (pp_c_void_constant): New function.
2447 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
2448 (c_pretty_printer::expression): Handle VOID_CST.
2449 * cilk.c (extract_free_variables): Likewise.
2450 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
2451 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
2452
766090c2
TS
24532014-05-17 Trevor Saunders <tsaunders@mozilla.com>
2454
2455 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
2456 * c-pragma.c (push_alignment): Adjust.
2457 (handle_pragma_push_options): Likewise.
2458
661a0813
MP
24592014-05-09 Marek Polacek <polacek@redhat.com>
2460
2461 PR c/50459
2462 * c-common.c (check_user_alignment): Return -1 if alignment is error
2463 node.
2464 (handle_aligned_attribute): Don't call default_conversion on
2465 FUNCTION_DECLs.
2466 (handle_vector_size_attribute): Likewise.
2467 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
2468 (handle_sentinel_attribute): Call default_conversion and allow even
2469 integral types as an argument.
2470
2793eeab
MP
24712014-05-08 Marek Polacek <polacek@redhat.com>
2472
2473 PR c/61053
2474 * c-common.c (min_align_of_type): New function factored out from...
2475 (c_sizeof_or_alignof_type): ...here.
2476 * c-common.h (min_align_of_type): Declare.
2477
f827930a
MP
24782014-05-08 Marek Polacek <polacek@redhat.com>
2479
2480 PR c/61077
2481 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
2482 parameter type of main.
2483
ca49b74e
DD
24842014-05-07 DJ Delorie <dj@redhat.com>
2485
2486 * c-cppbuiltin.c (print_bits_of_hex): New.
2487 (builtin_define_type_minmax): Print values using hex so as not to
2488 require a pre-computed list of string values.
2489
1d60af08
KZ
24902014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
2491 Mike Stump <mikestump@comcast.net>
2492 Richard Sandiford <rdsandiford@googlemail.com>
2493
2494 * c-ada-spec.c: Include wide-int.h.
2495 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
2496 (dump_generic_ada_node): Use wide-int interfaces.
2497 * c-common.c: Include wide-int-print.h.
2498 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
2499 (pointer_int_sum): Use wide-int interfaces.
2500 (c_common_nodes_and_builtins): Use make_int_cst.
2501 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
2502 (handle_alloc_size_attribute): Use wide-int interfaces.
2503 (get_nonnull_operand): Likewise.
2504 * c-format.c (get_constant): Use tree_fits_uhwi_p.
2505 * c-lex.c: Include wide-int.h.
2506 (narrowest_unsigned_type): Take a widest_int rather than two
2507 HOST_WIDE_INTs.
2508 (narrowest_signed_type): Likewise.
2509 (interpret_integer): Update accordingly. Use wide-int interfaces.
2510 (lex_charconst): Use wide-int interfaces.
2511 * c-pretty-print.c: Include wide-int.h.
2512 (pp_c_integer_constant): Use wide-int interfaces.
2513 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
2514 INT_CST_LT_UNSIGNED.
2515
b15458be
RB
25162014-05-06 Richard Biener <rguenther@suse.de>
2517
2518 * c-opts.c (c_common_post_options): For -freestanding,
2519 -fno-hosted and -fno-builtin disable pattern recognition
2520 if not enabled explicitely.
2521
6577374e
MP
25222014-05-02 Marek Polacek <polacek@redhat.com>
2523
2524 * c.opt (Wsizeof-pointer-memaccess): Describe option.
2525
d00887e8
MP
25262014-05-01 Marek Polacek <polacek@redhat.com>
2527
2528 PR c/43245
2529 * c.opt (Wdiscarded-qualifiers): Add.
2530
f8ed5150
MP
25312014-04-30 Marek Polacek <polacek@redhat.com>
2532
2533 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
2534 INT_MIN / -1 sanitization only for integer types.
2535
45484dcf
MP
25362014-04-25 Marek Polacek <polacek@redhat.com>
2537
2538 PR c/18079
2539 * c-common.c (handle_noinline_attribute): Warn if the attribute
2540 conflicts with always_inline attribute.
2541 (handle_always_inline_attribute): Warn if the attribute conflicts
2542 with noinline attribute.
2543
38e514c0
MP
25442014-04-25 Marek Polacek <polacek@redhat.com>
2545
2546 PR c/60156
2547 * c-common.c (check_main_parameter_types): Warn about variadic main.
2548
44875f92
MS
25492014-04-24 Mike Stump <mikestump@comcast.net>
2550
2551 * c.opt (Wshadow-ivar): Default to on.
2552
dcaaa5a0
DP
25532014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
2554
2555 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
2556
c07d7c02
MP
25572014-04-23 Marek Polacek <polacek@redhat.com>
2558
2559 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
2560
1c33c9b7
JJ
25612014-04-22 Jakub Jelinek <jakub@redhat.com>
2562
2563 PR sanitizer/60275
2564 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
2565 if flag_sanitize_undefined_trap_on_error.
2566 (ubsan_instrument_division, ubsan_instrument_shift,
2567 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
2568 if !flag_sanitize_recover.
2569
793c625f
MG
25702014-04-22 Marc Glisse <marc.glisse@inria.fr>
2571
2572 PR libstdc++/43622
2573 * c-common.c (registered_builtin_types): Make non-static.
2574 * c-common.h (registered_builtin_types): Declare.
2575
b0f1bf36
RB
25762014-04-14 Richard Biener <rguenther@suse.de>
2577 Marc Glisse <marc.glisse@inria.fr>
2578
2579 PR c/60819
2580 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
2581 apply may-alias the scalar pointer type when applicable.
2582
3b07fa4a
IZ
25832014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
2584
2585 PR middle-end/60467
2586 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
2587 as possible argument for Cilk_spawn.
2588
cbbd2b1c
TB
25892014-04-11 Tobias Burnus <burnus@net-b.de>
2590
2591 PR c/60194
2592 * c.opt (Wformat-signedness): Add
2593 * c-format.c(check_format_types): Use it.
2594
6415bd5d
JM
25952014-04-11 Jason Merrill <jason@redhat.com>
2596
2597 PR c++/57926
2598 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
2599 default_conversion for an array argument.
2600
6525783a
MP
26012014-04-08 Marek Polacek <polacek@redhat.com>
2602
2603 PR sanitizer/60745
2604 * c-ubsan.c: Include asan.h.
2605 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
2606
880a467b
NS
26072014-04-03 Nathan Sidwell <nathan@codesourcery.com>
2608
2609 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
2610
7b59ff2d
MP
26112014-04-02 Marek Polacek <polacek@redhat.com>
2612
2613 * c-common.h (c_expand_expr): Remove declaration.
2614
8edbfaa6
JJ
26152014-03-28 Jakub Jelinek <jakub@redhat.com>
2616
2617 PR c++/60689
2618 * c-common.c (add_atomic_size_parameter): When creating new
2619 params vector, push the size argument first.
2620
07d72e1d
JJ
26212014-03-26 Jakub Jelinek <jakub@redhat.com>
2622
2623 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2624 ubsan_instrument_vla, ubsan_instrument_return): Adjust
2625 ubsan_create_data callers.
2626
b35e0fa0
JJ
26272014-03-22 Jakub Jelinek <jakub@redhat.com>
2628
2629 PR debug/60603
2630 * c-opts.c (c_finish_options): Restore cb_file_change call to
2631 <built-in>.
2632
39a1ebb3
JJ
26332014-03-13 Jakub Jelinek <jakub@redhat.com>
2634
2635 PR middle-end/36282
2636 * c-pragma.c (apply_pragma_weak): Only look at
2637 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
2638 DECL_ASSEMBLER_NAME_SET_P (decl).
2639 (maybe_apply_pending_pragma_weaks): Exit early if
2640 vec_safe_is_empty (pending_weaks) rather than only when
2641 !pending_weaks.
2642 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
2643 set assembler name back to NULL afterwards.
2644
a07f6ed2
JM
26452014-03-11 Jason Merrill <jason@redhat.com>
2646
2647 * c.opt: Add -std=gnu++14.
2648
75b107f5
IB
26492014-03-11 Ian Bolton <ian.bolton@arm.com>
2650
2651 * c-opts.c (c_common_post_options): Don't override
2652 -ffp-contract=fast if unsafe-math-optimizations is on.
2653
f42c637e
PM
26542014-03-08 Paulo Matos <paulo@matos-sorge.com>
2655
2656 * c.opt: Enable LTO FE for fshort-double.
2657
70e24808
JM
26582014-03-07 Jason Merrill <jason@redhat.com>
2659
2660 * c.opt: Add -std=c++14.
2661
3af9c5e9
MP
26622014-03-06 Marek Polacek <polacek@redhat.com>
2663
2664 PR c/60197
2665 * cilk.c (contains_cilk_spawn_stmt): New function.
2666 (contains_cilk_spawn_stmt_walker): Likewise.
2667 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
2668 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
2669
b3bdf019
JJ
26702014-03-03 Jakub Jelinek <jakub@redhat.com>
2671
2672 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
2673 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
2674 even when flag_preprocess_only.
2675
ca7e759d
JM
26762014-02-26 Jason Merrill <jason@redhat.com>
2677
2678 PR c++/59231
2679 PR c++/11586
2680 * c-common.c (shorten_compare): Don't check
2681 c_inhibit_evaluation_warnings.
2682
28e41874
JJ
26832014-02-19 Jakub Jelinek <jakub@redhat.com>
2684
cca615af
JJ
2685 PR c/37743
2686 * c-common.c (c_common_nodes_and_builtins): When initializing
2687 c_uint{16,32,64}_type_node, also set corresponding
2688 uint{16,32,64}_type_node to the same value.
2689
28e41874
JJ
2690 PR c++/60267
2691 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
2692 for PRAGMA_IVDEP if flag_preprocess_only.
2693
c2bf53a1
JJ
26942014-02-12 Jakub Jelinek <jakub@redhat.com>
2695
2696 PR c/60101
2697 * c-common.c (merge_tlist): If copy is true, call new_tlist,
2698 if false, add ADD itself, rather than vice versa.
2699 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
2700 copy. For SAVE_EXPR, only call merge_tlist once.
2701
8fcbce72
JJ
27022014-02-08 Jakub Jelinek <jakub@redhat.com>
2703
2704 PR middle-end/60092
2705 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
2706 and tree_to_uhwi.
2707 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
2708 functions.
2709 (c_common_attribute_table): Add alloc_align and assume_aligned
2710 attributes.
2711
0a756a3f
MP
27122014-02-06 Marek Polacek <polacek@redhat.com>
2713
2714 PR c/60087
2715 * c-common.c (warn_for_sign_compare): Call warning_at with location
2716 instead of warning.
2717
7ec4847a
MP
27182014-02-05 Marek Polacek <polacek@redhat.com>
2719
2720 PR c/53123
2721 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
2722 statement.
2723
66f20604
MP
27242014-02-04 Marek Polacek <polacek@redhat.com>
2725
2726 PR c/60036
2727 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
2728 SAVE_EXPR.
2729
5d77fb19
MG
27302014-02-03 Marc Glisse <marc.glisse@inria.fr>
2731
2732 PR c++/53017
2733 PR c++/59211
2734 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
2735 handle_vector_size_attribute, handle_nonnull_attribute): Call
2736 default_conversion on the attribute argument.
2737 (handle_nonnull_attribute): Increment the argument number.
2738
81e5eca8
MP
27392014-01-31 Marek Polacek <polacek@redhat.com>
2740
2741 PR c/59963
2742 * c-common.c (add_atomic_size_parameter): Pass vNULL to
2743 build_function_call_vec.
2744 (resolve_overloaded_builtin): Likewise.
2745 * c-common.h (build_function_call_vec): Adjust declaration.
2746
68fca595
MP
27472014-01-30 Marek Polacek <polacek@redhat.com>
2748
2749 PR c/59940
2750 * c-common.h (unsafe_conversion_p): Adjust declaration.
2751 (warnings_for_convert_and_check): Likewise.
2752 (convert_and_check): Likewise.
2753 * c-common.c (unsafe_conversion_p): Add location parameter. Call
2754 expansion_point_location_if_in_system_header on it.
2755 (warnings_for_convert_and_check): Add location parameter. Call
2756 expansion_point_location_if_in_system_header on it. Use it.
2757 (convert_and_check): Add location parameter. Use it.
2758 (conversion_warning): Likewise.
2759 (c_add_case_label): Adjust convert_and_check calls.
2760 (scalar_to_vector): Adjust unsafe_conversion_p calls.
2761
b72271b9
BI
27622014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
2763
2764 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
2765 flag_cilkplus.
2766 * c-pragma.c (init_pragma): Likewise.
2767 * c.opt: Likewise.
2768
393e8e8b
MP
27692014-01-23 Marek Polacek <polacek@redhat.com>
2770
2771 PR c/59846
2772 * c-common.c (shorten_compare): Add location_t parameter.
2773 * c-common.h (shorten_binary_op): Adjust declaration.
2774
f04dda30
MP
27752014-01-23 Marek Polacek <polacek@redhat.com>
2776
2777 PR c/58346
2778 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
2779 * c-common.h: Declare it.
2780
621955cb
EB
27812014-01-20 Eric Botcazou <ebotcazou@adacore.com>
2782
2783 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
2784 * c-ada-spec.c (dump_ads): Likewise.
2785 (cpp_check): Likewise.
2786 (dump_ada_specs): Likewise.
2787
27882014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
2789
2790 PR c++/49718
2791 * c-common.c (handle_no_instrument_function_attribute): Allow
2792 no_instrument_function attribute in class member
2793 definition/declaration.
2794
241f845a
JJ
27952014-01-15 Jakub Jelinek <jakub@redhat.com>
2796
2797 PR c/58943
2798 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
2799 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
2800 being COMPOUND_EXPR.
2801 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
2802 operand a SAVE_EXPR and second MODIFY_EXPR.
2803
e83b8e2e
JJ
28042014-01-09 Jakub Jelinek <jakub@redhat.com>
2805
2806 PR target/58115
2807 * c-pch.c (c_common_write_pch): Call
2808 prepare_target_option_nodes_for_pch.
2809
23a5b65a
RS
28102014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2811
2812 Update copyright years
2813
f9030485
RS
28142014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2815
2816 * array-notation-common.c, c-cilkplus.c: Use the standard form for
2817 the copyright notice.
2818
f2aa696b
EB
28192013-12-28 Eric Botcazou <ebotcazou@adacore.com>
2820
2821 * c-ada-spec.c (print_constructor): New function.
2822 (print_destructor): Retrieve the origin of the destructor.
2823 (print_ada_declaration): Revamp handling of constructors/destructors.
2824
1f26ac87
JM
28252013-12-23 Stuart Hastings <stuart@apple.com>
2826 Bill Maddox <maddox@google.com>
2827 Jason Merrill <jason@redhat.com>
2828
2829 * c.opt: Add -fdeclone-ctor-dtor.
2830 * c-opts.c (c_common_post_options): Default to on iff -Os.
2831
41958c28
BI
28322013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
2833
2834 * c-common.c (c_common_attribute_table): Added "cilk simd function"
2835 attribute.
2836 * c-pragma.h (enum pragma_cilk_clause): Remove.
2837 (enum pragma_omp_clause): Added the following fields:
2838 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
2839 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
2840 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
2841 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
2842 PRAGMA_CILK_CLAUSE_UNIFORM.
2843
b1726d6c 2844
12893402
BI
28452013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
2846
2847 * cilk.c (cilk_outline): Made this function non-static.
2848 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
2849 (create_cilk_wrapper): Added a new parameter: a function pointer.
2850 (c_install_body_w_frame_cleanup): Remove
2851 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
2852 * c-common.h (cilk_outline): New prototype.
2853 (gimplify_cilk_spawn): Removed two parameters.
2854 (cilk_install_body_with_frame_cleanup): New prototype.
2855 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
2856 CILK_SPAWN_STMT case.
2857
085b42ed
BS
28582013-12-11 Bernd Schmidt <bernds@codesourcery.com>
2859
2ce064c3
BS
2860 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
2861
085b42ed
BS
2862 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
2863 (int_array_type_node): Remove.
2864 * c-common.c (c_common_nodes_and_builtins): Don't build it.
2865
9e36c9ed
MP
28662013-12-05 Marek Polacek <polacek@redhat.com>
2867
2868 PR c/52023
2869 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
2870 [ADJUST_FIELD_ALIGN].
2871
296674db
JM
28722013-12-04 Joseph Myers <joseph@codesourcery.com>
2873
2874 PR c/52023
2875 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
2876 and check field alignment if set.
2877 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
2878 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
2879
b1726d6c 28802013-12-04 Jakub Jelinek <jakub@redhat.com>
31e071ae
MP
2881 Marek Polacek <polacek@redhat.com>
2882
2883 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
2884 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
2885
d7947e19
L
28862013-11-29 H.J. Lu <hongjiu.lu@intel.com>
2887
2888 PR c/59309
2889 * cilk.c (gimplify_cilk_spawn): Properly handle function without
2890 arguments.
2891
fad7652e
JJ
28922013-11-29 Jakub Jelinek <jakub@redhat.com>
2893
2894 PR c/59280
2895 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
2896 goto invalid. If it is error_mark_node, don't issue further
2897 diagnostics.
2898
8b5e1202
SO
28992013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
2900
2901 * c.opt (Wopenmp-simd): New.
2902
0a508bb6
JJ
29032013-11-22 Jakub Jelinek <jakub@redhat.com>
2904
2905 * c-ubsan.h (ubsan_instrument_return): New prototype.
2906 * c-ubsan.c (ubsan_instrument_return): New function.
2907
2fb9a547
AM
29082013-11-22 Andrew MacLeod <amacleod@redhat.com>
2909
2910 * c-common.c: Add required include files from gimple.h.
2911 * c-gimplify.c: Likewise
2912 * cilk.c: Likewise
2913
8400e75e
DM
29142013-11-22 David Malcolm <dmalcolm@redhat.com>
2915
2916 * c-common.c (unsafe_conversion_p): Remove use of
2917 EXPR_LOC_OR_HERE macro.
2918 (conversion_warning): Likewise.
2919 (warnings_for_convert_and_check): Likewise.
2920 (warn_for_collisions_1): Likewise.
2921 (shorten_compare): Likewise, and remove use of in_system_header
2922 macro, using the location from the former.
2923 * c-lex.c (dump_one_header): Remove use of input_filename macro.
2924 (cb_def_pragma): Remove use of in_system_header macro.
2925 (lex_string): Likewise.
2926 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
2927
eb1ce453
KZ
29282013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2929 Mike Stump <mikestump@comcast.net>
2930 Richard Sandiford <rdsandiford@googlemail.com>
2931
2932 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
2933 instead of TREE_INT_CST_LOW, in cases where there is a protecting
2934 tree_fits_shwi_p or tree_fits_uhwi_p.
2935 (dump_generic_ada_node): Likewise.
2936 * c-format.c (check_format_arg): Likewise.
2937 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2938
6b3b8c27
KZ
29392013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2940
2941 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
2942
49b0aa18
JC
29432013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
2944
2945 PR c/53001
2946 * c-common.c (unsafe_conversion_p): Make this function
2947 return an enumeration with more detail.
2948 (conversion_warning): Use the new return type of
2949 unsafe_conversion_p to separately warn either about conversions
2950 that lower floating point number precision or about the other
2951 kinds of conversions.
2952 * c-common.h (enum conversion_safety): New enumeration.
2953 (unsafe_conversion_p): switching return type to
2954 conversion_safety enumeration.
2955 * c.opt: Adding new warning -Wfloat-conversion and
2956 enabling it with -Wconversion.
2957
b826515a
BS
29582013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
2959
2960 * c-opts.c: Include plugin.h.
2961 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
2962
b9a55b13
MP
29632013-11-19 Marek Polacek <polacek@redhat.com>
2964
2965 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
2966 call.
2967 (ubsan_instrument_shift): Likewise.
2968 (ubsan_instrument_vla): Likewise.
2969
7d362f6c
RS
29702013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2971
2972 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
2973 cast to unsigned type.
2974
386b1f1f
RS
29752013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2976
2977 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
2978 tree_low_cst.
2979 (complete_array_type): Update comment to refer to tree_to_[su]hwi
2980 rather than tree_low_cst.
2981
ae7e9ddd
RS
29822013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2983
2984 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
2985 tree_to_uhwi throughout.
2986
9439e9a1
RS
29872013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2988
2989 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
2990 tree_low_cst (..., 0) with tree_to_shwi throughout.
2991
cc269bb6
RS
29922013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2993
2994 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
2995 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
2996
9541ffee
RS
29972013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2998
2999 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
3000 host_integerp (..., 0) with tree_fits_shwi_p throughout.
3001
c02065fc
AH
30022013-11-15 Aldy Hernandez <aldyh@redhat.com>
3003
3004 * c-cilkplus.c: New file.
3005 * c-common.c (readonly_error): Add location argument.
3006 * c-common.h (readonly_error): Same.
3007 (c_finish_cilk_clauses): Protoize.
3008 (c_check_cilk_loop): Same.
3009 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
3010 Do not fail on error_mark_node.
3011 Abstract increment canonicalization to here...
3012 (c_omp_for_incr_canonicalize_ptr): New.
3013 c-pragma.c (init_pragma): Register "simd" pragma.
3014 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
3015 (enum pragma_cilk_clause): New.
3016
9cc65f15
RS
30172013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
3018
3019 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
3020 wchar_type and host_integerp checks.
3021
18f429e2
AM
30222013-11-14 Andrew MacLeod <amacleod@redhat.com>
3023
3024 * c-common.c: Likewise.
3025 * c-gimplify.c: Likewise.
3026 * cilk.c: Likewise.
3027
d8a2d370
DN
30282013-11-14 Diego Novillo <dnovillo@google.com>
3029
3030 * c-common.c: Include fold-const.h.
3031 Include stor-layout.h.
3032 Include calls.h.
3033 Include stringpool.h.
3034 Include attribs.h.
3035 Include varasm.h.
3036 Include trans-mem.h.
3037 * c-cppbuiltin.c: Include stor-layout.h.
3038 Include stringpool.h.
3039 * c-format.c: Include stringpool.h.
3040 * c-lex.c: Include stringpool.h.
3041 Include stor-layout.h.
3042 * c-pragma.c: Include stringpool.h.
3043 Include attribs.h.
3044 Include varasm.h.
3045 Include gcc-symtab.h.
3046 * c-pretty-print.c: Include stor-layout.h.
3047 Include attribs.h.
3048 * cilk.c: Include stringpool.h.
3049 Include calls.h.
3050
38b7bc7f
JM
30512013-11-13 Joseph Myers <joseph@codesourcery.com>
3052
3053 * c-common.h (enum rid): Add RID_AUTO_TYPE.
3054 * c-common.c (c_common_reswords): Add __auto_type.
3055 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
3056
45b0be94
AM
30572013-11-12 Andrew MacLeod <amacleod@redhat.com>
3058
18f429e2
AM
3059 * c-common.c: Include gimplify.h.
3060 * c-gimplify.c: Likewise.
3061 * cilk.c: Likewise.
3062 * c-omp.c: Include gimple-expr.h instead of gimple.h.
3063 * c-ubsan.c: Don't include gimple.h.
45b0be94 3064
582d9b50
JM
30652013-11-12 Joseph Myers <joseph@codesourcery.com>
3066
3067 * c-common.c (c_common_reswords): Add _Thread_local.
3068
6b28e197
JM
30692013-11-09 Joseph Myers <joseph@codesourcery.com>
3070
3071 * c-common.c (atomic_size_supported_p): New function.
3072 (resolve_overloaded_atomic_exchange)
3073 (resolve_overloaded_atomic_compare_exchange)
3074 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
3075 Use it instead of comparing size with a local list of sizes.
3076
267bac10
JM
30772013-11-07 Andrew MacLeod <amacleod@redhat.com>
3078 Joseph Myers <joseph@codesourcery.com>
3079
3080 * c-common.h (enum rid): Add RID_ATOMIC.
3081 * c-common.c (c_common_reswords): Add _Atomic.
3082 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
3083 (keyword_is_type_qualifier): Accept RID_ATOMIC.
3084 * c-format.c (check_format_types): Check for extra _Atomic
3085 qualifiers in format argument.
3086 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
3087 (pp_c_type_qualifier_list): Mention _Atomic in comment.
3088
5157b91e
TB
30892013-11-06 Tobias Burnus <burnus@net-b.de>
3090
3091 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
3092
6dbe0958
JM
30932013-11-06 Joseph Myers <joseph@codesourcery.com>
3094
3095 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
3096 standards modes.
3097 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
3098 to mean lack of IEEE 754 support.
3099
e8ff5196
TB
31002013-11-05 Tobias Burnus <burnus@net-b.de>
3101
3102 * c.opt (-Wdate-time): New option
3103 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
3104
254a0760
JM
31052013-11-05 Joseph Myers <joseph@codesourcery.com>
3106
3107 * c-cppbuiltin.c (cpp_iec_559_value): Test
3108 flag_excess_precision_cmdline not flag_excess_precision.
3109
6d7f7e0a
TB
31102013-11-05 Tobias Burnus <burnus@net-b.de>
3111
3112 * c.opt (fopenmp-simd): New option.
3113 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
3114 (omp_pragmas): ... this new struct.
3115 (c_pp_lookup_pragma): Also walk omp_pragmas.
3116 (init_pragma): Init pragmas for -fopenmp-simd.
3117
55a7f02f
MP
31182013-11-04 Marek Polacek <polacek@redhat.com>
3119
3120 PR c++/58979
3121 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
3122
9193fb05
JM
31232013-11-04 Joseph Myers <joseph@codesourcery.com>
3124
3125 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
3126 New functions.
3127 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
3128
94159ecf
EB
31292013-11-04 Eric Botcazou <ebotcazou@adacore.com>
3130
3131 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
3132 (dump_ada_specs): Adjust prototype of second callback.
3133 * c-ada-spec.c (cpp_check): New global variable.
3134 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
3135 (print_generic_ada_decl): Likewise.
3136 (has_static_fields): Change return type to bool and add guard.
3137 (has_nontrivial_methods): New predicate.
3138 (is_tagged_type): Change return type to bool.
3139 (separate_class_package): Call has_nontrivial_methods.
3140 (pp_ada_tree_identifier): Minor tweaks.
3141 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
3142 (dump_ada_array_domains): Likewise.
3143 (dump_ada_array_type): Likewise.
3144 (dump_template_types): Remove cpp_check parameter and do not pass it to
3145 dump_generic_ada_node.
3146 (dump_ada_template): Likewise.
3147 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
3148 recursively.
3149 (print_ada_methods): Change return type to integer. Remove cpp_check
3150 parameter and do not pass it down.
3151 (dump_nested_types): Remove cpp_check parameter and do not pass it to
3152 dump_generic_ada_node.
3153 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
3154 accessing methods.
3155 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
3156 down. Use has_nontrivial_methods to recognize C++ classes. Use return
3157 value of print_ada_methods.
3158 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
3159 Set cpp_check to it before invoking dump_ada_nodes.
3160 (dump_ada_specs): Likewise.
3161
b906f4ca
MP
31622013-11-03 Marek Polacek <polacek@redhat.com>
3163
3164 * c-ubsan.c: Don't include hash-table.h.
3165 (ubsan_instrument_vla): New function.
3166 * c-ubsan.h: Declare it.
3167
5e20cdc9
DM
31682013-10-31 David Malcolm <dmalcolm@redhat.com>
3169
3170 Automated part of renaming of symtab_node_base to symtab_node.
3171
3172 Patch autogenerated by rename_symtab.py from
3173 https://github.com/davidmalcolm/gcc-refactoring-scripts
3174 revision 58bb219cc090b2f4516a9297d868c245495ee622
3175
3176 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
3177 symtab_node_base to symtab_node.
3178
7057e645
ESR
31792013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
3180
3181 Implement C++14 digit separators.
3182 * c-lex.c (interpret_float): Remove digit separators from scratch string
3183 before building real literal.
3184
193ea7bc
JJ
31852013-10-30 Jakub Jelinek <jakub@redhat.com>
3186
3187 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
3188
939b37da
BI
31892013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
3190
3191 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
3192 fields.
3193 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
3194 enabled.
3195 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
3196 (insert_cilk_frame): New prototype.
3197 (cilk_init_builtins): Likewise.
3198 (gimplify_cilk_spawn): Likewise.
3199 (c_cilk_install_body_w_frame_cleanup): Likewise.
3200 (cilk_detect_spawn_and_unwrap): Likewise.
3201 (cilk_set_spawn_marker): Likewise.
3202 (build_cilk_sync): Likewise.
3203 (build_cilk_spawn): Likewise.
3204 * cilk.c: New file.
3205
67348ccc
DM
32062013-10-29 David Malcolm <dmalcolm@redhat.com>
3207
3208 Patch autogenerated by refactor_symtab.py from
3209 https://github.com/davidmalcolm/gcc-refactoring-scripts
3210 revision 58bb219cc090b2f4516a9297d868c245495ee622
3211
3212 * c-gimplify.c (c_genericize): Update for conversion of symtab types
3213 to a true class hierarchy.
3214 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
3215
d570872d
RS
32162013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
3217
3218 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
3219
98906124
JL
32202013-10-26 Jeff Law <law@redhat.com>
3221
adfac8df
JJ
3222 * c-common.c (c_define_builtins): Remove mudflap support.
3223 * c.opt: Ignore and warn for mudflap options.
98906124 3224
d73749df 32252013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
3226
3227 PR other/33426
3228 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
3229 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
3230
3f04b1bb
JM
32312013-10-23 Jason Merrill <jason@redhat.com>
3232
3233 * c-format.c (gcc_cxxdiag_char_table): Add %X.
3234
acf0174b
JJ
32352013-10-11 Jakub Jelinek <jakub@redhat.com>
3236
acd15a28
JJ
3237 * c-common.h (omp_clause_mask::operator !=): New method.
3238 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
3239 instead of if (mask & something) tests everywhere.
3240
acf0174b
JJ
3241 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
3242 201307 instead of 201107.
3243 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
3244 (c_common_attribute_table): Add "omp declare target" and
3245 "omp declare simd" attributes.
3246 (handle_omp_declare_target_attribute,
3247 handle_omp_declare_simd_attribute): New functions.
3248 * c-omp.c: Include c-pragma.h.
3249 (c_finish_omp_taskgroup): New function.
3250 (c_finish_omp_atomic): Add swapped argument, if true,
3251 build the operation first with rhs, lhs arguments and use NOP_EXPR
3252 build_modify_expr.
3253 (c_finish_omp_for): Add code argument, pass it down to make_code.
3254 (c_omp_split_clauses): New function.
3255 (c_split_parallel_clauses): Removed.
3256 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
3257 c_omp_declare_simd_clauses_to_decls): New functions.
3258 * c-common.h (omp_clause_mask): New type.
3259 (OMP_CLAUSE_MASK_1): Define.
3260 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
3261 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
3262 omp_clause_mask::operator |, omp_clause_mask::operator &,
3263 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
3264 omp_clause_mask::operator ==): New methods.
3265 (enum c_omp_clause_split): New.
3266 (c_finish_omp_taskgroup): New prototype.
3267 (c_finish_omp_atomic): Add swapped argument.
3268 (c_finish_omp_for): Add code argument.
3269 (c_omp_split_clauses): New prototype.
3270 (c_split_parallel_clauses): Removed.
3271 (c_omp_declare_simd_clauses_to_numbers,
3272 c_omp_declare_simd_clauses_to_decls): New prototypes.
3273 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
3274 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
3275 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
3276 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
3277 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
3278 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
3279 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
3280 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
3281 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
3282 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
3283 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
3284 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
3285 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
3286 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
3287 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
3288 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
3289 PRAGMA_OMP_CLAUSE_UNIFORM.
3290
826cacfe
MG
32912013-10-09 Marc Glisse <marc.glisse@inria.fr>
3292
3293 PR tree-optimization/20318
3294 * c-common.c (handle_returns_nonnull_attribute): New function.
3295 (c_common_attribute_table): Add returns_nonnull.
3296
2284b034
MG
32972013-10-03 Marc Glisse <marc.glisse@inria.fr>
3298
3299 PR c++/19476
3300 * c.opt (fcheck-new): Move to common.opt.
3301
b56e9788
MP
33022013-09-25 Marek Polacek <polacek@redhat.com>
3303 Jakub Jelinek <jakub@redhat.com>
3304
3305 PR sanitizer/58413
3306 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
3307 an expression if we can prove it is correct.
3308 (ubsan_instrument_division): Likewise. Remove unnecessary
3309 check.
3310
ce6923c5
MP
33112013-09-18 Marek Polacek <polacek@redhat.com>
3312
3313 PR sanitizer/58411
3314 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
3315 Declare it.
3316 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
3317
fb5610fb
IS
33182013-09-14 Iain Sandoe <iain@codesourcery.com>
3319
3320 PR target/48094
3321 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
3322 fobjc-gc, freplace-objc-classes): Accept for LTO.
3323
88b0e79e
JC
33242013-09-13 Jacek Caban <jacek@codeweavers.com>
3325
3326 * c-target.def: New hook
3327
c9b0866a
PC
33282013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
3329
3330 PR c++/43452
3331 * c.opt (Wdelete-incomplete): Add.
3332
0af94e6f
JR
33332013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
3334
3335 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
3336 (vector_types_compatible_elements_p): New function.
3337 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
3338 declaration.
3339 (vector_types_compatible_elements_p): Declare.
3340
7c26172c
GDR
33412013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
3342
3343 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
3344 a virtual member function.
3345 (pp_simple_type_specifier): Remove.
3346 (pp_c_type_specifier): Likewise.
3347 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
3348 Rename from pp_c_type_specifier. Adjust.
3349 (c_pretty_printer::c_pretty_printer): Do not assign to
3350 simple_type_specifier.
3351
20059c8b
GDR
33522013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3353
3354 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
3355 member function.
3356 (c_pretty_printer::storage_class_specifier): Likewise.
3357 (c_pretty_printer::initializer): Likewise.
3358 (pp_declaration): Remove.
3359 (pp_declaration_specifiers): Likewise.
3360 (pp_abstract_declarator): Likewise.
3361 (pp_declarator): Likewise.
3362 (pp_type_id): Likewise.
3363 (pp_statement): Likewise.
3364 (pp_constant): Likewise.
3365 (pp_id_expression): Likewise.
3366 (pp_primary_expression): Likewise.
3367 (pp_unary_expression): Likewise.
3368 (pp_multiplicative_expression): Likewise.
3369 (pp_conditional_expression): Likewise.
3370 (pp_assignment_expression): Likewise.
3371 (pp_expression): Likewise.
3372 (pp_c_type_id): Likewise.
3373 (pp_c_storage_class_specifier): Likewise.
3374 * c-pretty-print.c (pp_c_type_cast): Tidy.
3375 (pp_c_pointer): Likewise.
3376 (pp_c_type_specifier): Likewise.
3377 (pp_c_parameter_type_list): Likewise.
3378 (pp_c_function_definition): Likewise.
3379 (pp_c_init_declarator): Likewise.
3380 (pp_c_initializer_list): Likewise.
3381 (pp_c_constructor_elts): Likewise.
3382 (c_pretty_printer::direct_abstract_declarator): Likewise.
3383 (c_pretty_printer::declaration_specifiers): Likewise.
3384 (c_pretty_printer::primary_expression): Likewise.
3385 (c_pretty_printer::postfix_expression): Likewise.
3386 (c_pretty_printer::type_id): Rename from pp_c_type_id.
3387 (c_pretty_printer::storage_class_specifier): Rename from
3388 pp_c_storage_class_specifier.
3389 (c_pretty_printer::initializer): Rename from pp_c_initializer.
3390 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
3391 storage_class_specifier, initializer, offset_list, flags.
3392
de5a5fa1
MP
33932013-08-30 Marek Polacek <polacek@redhat.com>
3394
3395 * c-ubsan.c: New file.
3396 * c-ubsan.h: New file.
3397
8f0e4d72
GDR
33982013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
3399
3400 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
3401 member function.
3402 (c_pretty_printer::declaration_specifiers): Likewise.
3403 (c_pretty_printer::declarator): Likewise.
3404 (c_pretty_printer::abstract_declarator): Likewise.
3405 (c_pretty_printer::direct_abstract_declarator): Likewise.
3406 (c_pretty_printer::direct_declarator): Likewise.
3407 (c_pretty_printer::function_specifier): Likewise.
3408 (pp_declaration): Adjust.
3409 (pp_declaration_specifiers): Likewise.
3410 (pp_abstract_declarator): Likewise.
3411 (pp_direct_declarator): Likewise.
3412 (pp_function_specifier): Likewise.
3413 (pp_direct_abstract_declarator): Remove as unused.
3414 (pp_c_declaration): Remove.
3415 (pp_c_declaration_specifiers): Likewise.
3416 (pp_c_declarator): Likewise.
3417 (pp_c_direct_declarator): Likewise.
3418 (pp_c_function_specifier): Likewise.
3419 (pp_c_direct_abstract_declarator): Likewise.
3420 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
3421 from pp_c_abstract_declarator. Adjust.
3422 (c_pretty_printer::direct_abstract_declarator): Rename from
3423 pp_c_direct_abstract_declarator. Adjust.
3424 (c_pretty_printer::function_specifier): Rename from
3425 pp_c_function_specifier. Adjust.
3426 (c_pretty_printer::declaration_specifiers): Rename from
3427 pp_c_declaration_specifiers. Adjust.
3428 (c_pretty_printer::direct_declarator): Rename from
3429 pp_c_direct_declarator. Adjust.
3430 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
3431 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
3432 (c_pretty_printer::c_pretty_printer): Do not assign to
3433 declaration, declaration_specifiers, declarator,
3434 direct_declarator, direct_abstract_declarator, function_specifier.
3435
00d34d3a
GDR
34362013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
3437
3438 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
3439 virtual member function.
3440 (c_pretty_printer::multiplicative_expression): Likewise.
3441 (c_pretty_printer::conditional_expression): Likewise.
3442 (c_pretty_printer::assignment_expression): Likewise.
3443 (c_pretty_printer::expression): Likewise.
3444 (pp_unary_expression): Adjust.
3445 (pp_multiplicative_expression): Likewise.
3446 (pp_assignment_expression): Likewise.
3447 (pp_conditional_expression): Likewise.
3448 (pp_expression): Likewise.
3449 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
3450 from pp_c_unary_expression. Adjust.
3451 (c_pretty_printer::multiplicative_expression): Rename from
3452 pp_c_multiplicative_expression. Adjust.
3453 (c_pretty_printer::conditional_expression): Rename from
3454 pp_c_conditional_expression. Adjust.
3455 (c_pretty_printer::assignment_expression): Rename from
3456 pp_c_assignment_expression. Adjust.
3457 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
3458 (c_pretty_printer::c_pretty_printer): Do not assign to
3459 unary_expression, multiplicative_expression,
3460 conditional_expression, expression.
3461
fb22178f
GDR
34622013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3463
3464 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
3465 virtual member function.
3466 (pp_postfix_expression): Adjust.
3467 (pp_c_postfix_expression): Remove.
3468 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
3469 from pp_c_postfix_expression. Adjust.
3470 (c_pretty_printer::c_pretty_printer): Do not assign to
3471 postfix_expression.
3472
7ecc2600
GDR
34732013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3474
3475 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
3476 virtua member function.
3477 (pp_primary_expression): Adjust.
3478 (pp_c_primary_expression): Remove.
3479 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
3480 from pp_c_primary_expression. Adjust.
3481 (pp_c_initializer_list): Use pp_primary_expression.
3482 (c_pretty_printer::c_pretty_printer): Do not assign to
3483 primary_expression.
3484
0691175f
GDR
34852013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3486
3487 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
3488 * c-pretty-print.c (M_): Remove.
3489 (c_pretty_printer::translate_string): Define.
3490 (pp_c_type_specifier): Use it.
3491 (pp_c_primary_expression): Likewise.
3492 (pp_c_expression): Likewise.
3493
66dfe4c4
GDR
34942013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
3495
3496 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
3497 virtual function.
3498 (pp_c_id_expression): Remove.
3499 (pp_id_expression): Adjust.
3500 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
3501 pp_c_id_expression. Adjust.
3502 (pp_c_postfix_expression): Use pp_id_expression.
3503 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
3504
ca43e9d5
GDR
35052013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
3506
3507 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
3508 member function.
3509 (pp_constant): Adjust.
3510 (pp_c_constant): Remove.
3511 * c-pretty-print.c (c_pretty_printer::constant): Rename from
3512 pp_c_constant. Adjust.
3513 (pp_c_constant)
3514 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
3515 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
3516
da6ca2b5
GDR
35172013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
3518
3519 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
3520 (c_pretty_printer::c_pretty_printer): Declare.
3521 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
3522 c_pretty_printer_init. Adjust.
3523 (print_c_tree): Do not call c_pretty_printer_init.
3524 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
3525
65a372f4
AC
35262013-08-09 Arnaud Charlet <charlet@adacore.com>
3527
3528 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
3529
fd9b0f32
PC
35302013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
3531
3532 PR c++/58080
3533 * c-common.c (pointer_int_sum): Add bool parameter.
3534 * c-common.h (pointer_int_sum): Adjust declaration.
3535
e0aec1e9
GDR
35362013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
3537
3538 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
3539 c_pretty_printer variable.
3540
b066401f
GDR
35412013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
3542
3543 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
3544 (pp_base): Remove.
3545 (pp_c_base): Likewise. Adjust users.
3546 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
3547 (pp_c_whitespace): Do not call pp_base.
3548 (pp_c_left_paren): Likewise.
3549 (pp_c_right_paren): Likewise.
3550 (pp_c_left_brace): Likewise.
3551 (pp_c_right_brace): Likewise.
3552 (pp_c_left_bracket): Likewise.
3553 (pp_c_right_bracket): Likewise.
3554 (pp_c_dot): Likewise.
3555 (pp_c_ampersand): Likewise.
3556 (pp_c_star): Likewise.
3557 (pp_c_arrow): Likewise.
3558 (pp_c_semicolon): Likewise.
3559 (pp_c_complement): Likewise.
3560 (pp_c_exclamation): Likewise.
3561 (pp_c_direct_declarator): Likewise.
3562 (pp_c_ws_string): Likewise.
3563 (pp_c_identifier): Likewise.
3564 (pp_c_statement): Likewise.
3565 (print_c_tree): Likewise.
3566
65e5a578
ESR
35672013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
3568
3569 PR c++/58072
3570 * c-common.c (c_parse_error): Catch user-defined literal tokens and
3571 provide useful error strings.
3572
137a1a27
GDR
35732013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3574
3575 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
3576 printer functions instead of pp_string or operators and punctuators.
3577 (dump_generic_ada_node): Likewise.
3578 * c-pretty-print.c (pp_c_type_specifier): Likewise.
3579 (pp_c_relational_expression): Likewise.
3580 (pp_c_logical_or_expression): Likewise.
3581
07838b13
GDR
35822013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3583
3584 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
3585 functions instead of pp_character.
3586 (pp_ada_tree_identifier): Likewise.
3587 (dump_ada_double_name): Likewise.
3588 (dump_ada_function_declaration): Likewise.
3589 (dump_ada_array_domains): Likewise.
3590 (dump_template_types): Likewise.
3591 (dump_generic_ada_node): Likewise.
3592 (print_ada_declaration): Likewise.
3593 (print_ada_struct_decl): Likewise.
3594 * c-pretty-print.c (pp_c_integer_constant): Likewise.
3595
433cc7b0
TT
35962013-07-23 Tom Tromey <tromey@redhat.com>
3597
3598 * c-common.h (enum rid) <RID_GENERIC>: New constant.
3599 * c-common.c (c_common_reswords): Add _Generic.
3600
688010ba
OB
36012013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
3602
3603 * c-common.c: Fix typos.
3604 * c-common.h: Likewise.
3605
2a99e5e6
LL
36062013-07-13 Lubos Lunak <l.lunak@suse.cz>
3607
3608 PR c++/55203
3609 * c-common.c (c_common_attribute_table): Add warn_unused.
3610 (handle_warn_unused_attribute): New.
3611
c26302d5
JJ
36122013-07-10 Jakub Jelinek <jakub@redhat.com>
3613
3614 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
3615 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
3616
dfeadaa0
PC
36172013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
3618
3619 PR c++/57869
3620 * c.opt: Add Wconditionally-supported.
3621
6a2fa4b2
GS
36222013-07-08 Graham Stott <graham.stott@btinternet.com>
3623
adfac8df 3624 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
3625 unused variables l_length and l_node.
3626
ecdbd01a 36272013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
3628
3629 PR c/57821
3630 * c-common.c (complete_array_type): Delay folding first index
3631 like other indices. When folding, check for index overflow.
3632
bedc293e
MG
36332013-06-27 Marc Glisse <marc.glisse@inria.fr>
3634
3635 PR c++/57509
3636 * c-common.h (c_build_vec_perm_expr): New complain argument.
3637 * c-common.c (c_build_vec_perm_expr): Likewise.
3638 Use save_expr also in C++.
3639
604b2bfc
GDR
36402013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
3641
3642 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
3643 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3644 * c-opts.c (c_common_post_options): Likewise.
3645
dfeadaa0 36462013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
3647
3648 * array-notation-common.c (length_mismatch_in_expr): Changed the
3649 parameter type's from a dynamic array to a vec_tree. Also removed
3650 the size parameters.
3651 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
3652 the change above.
3653
2ce86d2e
BI
36542013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
3655
3656 * c-common.h (struct cilkplus_an_parts): New structure.
3657 (struct cilkplus_an_loop_parts): Likewise.
3658 (cilkplus_extract_an_triplets): New prototype.
3659 (fix_sec_implicit_args): Likewise.
3660 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
3661 (fix_sec_implicit_args): Likewise.
604b2bfc 3662
07a6825b
BI
36632013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
3664
3665 * array-notation-common.c (find_inv_trees): Removed an unwanted
3666 typecasting.
3667 * c-common.h (struct inv_list::additional_tcodes): Changed type from
3668 enum rid to enum tree_code.
3669
08346abd
JH
36702013-06-11 Jan Hubicka <jh@suse.cz>
3671
3672 * c-common.c (handle_alias_ifunc_attribute): Do not set
3673 DECL_EXTERNAL for weakref variables.
3674 * c-pragma.c (handle_pragma_weak): Make sure aliases
3675 are not declared as external.
3676
d60f1706
BI
36772013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
3678
3679 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
3680 function from c/c-array-notation.c.
3681 (is_cilkplus_reduce_builtin): Likewise.
3682 (find_rank): Likewise.
3683 (extract_array_notation_exprs): Likewise.
3684 (replace_array_notations): Likewise.
3685 (find_inv_trees): Likewise.
3686 (replace_inv_trees): Likewise.
3687 (contains_array_notation_expr): Likewise.
3688 (find_correct_array_notation_type): Likewise.
3689 * c-common.h (struct inv_list): Moved this struct from the file
3690 c/c-array-notation.c and added a new field called additional tcodes.
3691 (length_mismatch_in_expr_p): New prototype.
3692 (is_cilkplus_reduce_builtin): Likewise.
3693 (find_rank): Likewise.
3694 (extract_array_notation_exprs): Likewise.
3695 (replace_array_notation): Likewise.
3696 (find_inv_trees): Likewise.
3697 (replace_inv_trees): Likewise.
3698 (find_correct_array_notation_type): Likewise.
dfeadaa0 3699
36536d79
BI
37002013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
3701
3702 * c-common.c (c_define_builtins): When cilkplus is enabled, the
3703 function array_notation_init_builtins is called.
3704 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
3705 * c-common.def (ARRAY_NOTATION_REF): New tree.
3706 * c-common.h (build_array_notation_expr): New function declaration.
3707 (build_array_notation_ref): Likewise.
3708 (extract_sec_implicit_index_arg): New extern declaration.
3709 (is_sec_implicit_index_fn): Likewise.
3710 (ARRAY_NOTATION_CHECK): New define.
3711 (ARRAY_NOTATION_ARRAY): Likewise.
3712 (ARRAY_NOTATION_START): Likewise.
3713 (ARRAY_NOTATION_LENGTH): Likewise.
3714 (ARRAY_NOTATION_STRIDE): Likewise.
3715 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
3716 ARRAY_NOTATION_REF.
3717 (pp_c_expression): Likewise.
3718 * c.opt (flag_enable_cilkplus): New flag.
3719 * array-notation-common.c: New file.
3720
f7716d57
JJ
37212013-05-14 Jakub Jelinek <jakub@redhat.com>
3722
3723 PR c++/57274
3724 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
3725
a5e0cd1d
MG
37262013-05-10 Marc Glisse <marc.glisse@inria.fr>
3727
3728 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
3729 vectors.
3730
f6bc1c4a
HS
37312013-05-07 Han Shen <shenhan@google.com>
3732
3733 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
3734
3f12f6e9
SKS
37352013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3736
3737 * c-common.c (check_user_alignment): Emit error for negative values.
3738
61949153
PC
37392013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3740
3741 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
3742
e93e18e9
PC
37432013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3744
3745 * c-cppbuiltin.c (c_cpp_builtins): Do not define
3746 __GXX_EXPERIMENTAL_CXX1Y__.
3747
44d90fe1
PC
37482013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3749 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3750
3751 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
3752 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
3753 to simply use OPT_Wpointer_arith.
3754 (c_sizeof_or_alignof_type): Likewise.
3755
13f39b2e
PC
37562013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3757
3758 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
3759
4b84d650
JJ
37602013-04-12 Jakub Jelinek <jakub@redhat.com>
3761
3762 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
3763 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
3764 specifiers.
3765
fb037b5d
SB
37662013-04-07 Steven Bosscher <steven@gcc.gnu.org>
3767
3768 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
3769
4e856798
PC
37702013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
3771
3772 * c-common.c (pointer_int_sum): Remove dead code.
3773
4b1baac8
RS
37742013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
3775
3776 PR middle-end/56524
3777 * c-common.c (handle_optimize_attribute): Don't call
3778 save_optabs_if_changed.
3779
0b50e654
JJ
37802013-03-05 Jakub Jelinek <jakub@redhat.com>
3781
3782 PR middle-end/56461
3783 * c-pch.c (pch_init): Free target_validity at the end.
3784
48c41403
JJ
37852013-03-04 Jakub Jelinek <jakub@redhat.com>
3786
3787 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
3788
e664c61c
KS
37892013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
3790 Jakub Jelinek <jakub@redhat.com>
3791
3792 PR sanitizer/56454
3793 * c-common.c (handle_no_sanitize_address_attribute): New function.
3794 (c_common_attribute_table): Add no_sanitize_address attribute.
3795 (handle_no_address_safety_analysis_attribute): Add
3796 no_sanitize_address attribute, not no_address_safety_analysis
3797 attribute.
3798
a475fd3d 37992013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
3800
3801 PR target/52555
3802 * c-common.c (handle_optimize_attribute): Call
3803 save_optabs_if_changed.
3804
f6007d99
JJ
38052013-02-18 Jakub Jelinek <jakub@redhat.com>
3806 Steven Bosscher <steven@gcc.gnu.org>
3807
3808 PR pch/54117
3809 * c-opts.c (c_common_post_options): If debug info is enabled
3810 and non-dwarf*, refuse to load PCH files and when writing PCH
3811 file warn.
3812
cf35e2b1
JJ
38132013-02-05 Jakub Jelinek <jakub@redhat.com>
3814
3815 PR middle-end/56167
3816 * c-common.c (handle_error_attribute): Fix condition.
3817
32887460
JJ
38182013-01-30 Jakub Jelinek <jakub@redhat.com>
3819
3820 PR c++/55742
3821 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
3822
5af057d8
JM
38232013-01-18 Jason Merrill <jason@redhat.com>
3824
3825 PR target/54908
3826 * c.opt (-fextern-tls-init): New.
3827 * c-opts.c (c_common_post_options): Handle it.
3828
cc83c823
JJ
38292013-01-09 Jakub Jelinek <jakub@redhat.com>
3830
3831 PR c/48418
3832 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
3833 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
3834 and is either negative or bigger or equal to type precision
3835 of the first operand.
3836
a859517f
MP
38372012-12-03 Marek Polacek <polacek@redhat.com>
3838
3839 PR c/55570
3840 * c-common.c (check_user_alignment): Swap order of tests,
3841 check TREE_CODE first.
3842
2d7aa578
ESR
38432012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
3844
3845 PR c++/52654
3846 * c-common.h (overflow_type): New enum.
3847 (build_userdef_literal): Add overflow_type argument.
3848 (tree_userdef_literal): Add overflow_type.
3849 (USERDEF_LITERAL_OVERFLOW): New access macro.
3850 * c-common.c (build_userdef_literal): Add overflow_type
3851 argument.
3852 * c-lex.c (c_lex_with_flags): Add overflow_type to
3853 build_userdef_literal calls.
3854 (interpret_integer, interpret_float): Add overflow_type argument.
3855
cc3c4f62
RB
38562012-11-28 Richard Biener <rguenther@suse.de>
3857
3858 PR c/35634
3859 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
3860 here and use a type with proper overflow behavior for types that would
3861 need to be promoted for the arithmetic.
3862
77bc5132
JJ
38632012-11-23 Jakub Jelinek <jakub@redhat.com>
3864
3865 PR sanitizer/55435
3866 * c-common.c (handle_no_address_safety_analysis_attribute): New
3867 function.
3868 (c_common_attribute_table): Add no_address_safety_analysis.
3869
5dc99c46
SB
38702012-11-16 Simon Baldwin <simonb@google.com>
3871
3872 * c.opt: Add f[no-]canonical-system-headers.
3873 * c-opts.c (c_common_handle_option): Handle
3874 OPT_fcanonical_system_headers.
3875
a4a0016d
ESR
38762012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
3877
3878 PR c++/54413
3879 * c-opts.c (c_common_handle_option): Set new flags.
3880 * c.opt: Describe new flags.
3881
7dbb85a7
JM
38822012-11-09 Jason Merrill <jason@redhat.com>
3883
3884 * c.opt (Wabi-tag): New.
3885
ad7bac31
AK
38862012-11-09 Andi Kleen <ak@linux.intel.com>
3887
3888 PR 55139
3889 * c-common.c (get_atomic_generic_size): Mask with
3890 MEMMODEL_MASK
3891
7332899a
MLI
38922012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3893
3894 PR c/53063
3895 * c.opt (Wformat): Make it Alias Wformat=1.
3896 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
3897 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
3898 LangEnabledBy.
3899 (Wformat=): RejectNegative. Use LangEnabledBy.
3900 (Wnonnull): Use LangEnabledBy.
3901 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
3902 * c-format.c (set_Wformat): Delete.
3903 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
3904 (maybe_read_dollar_number): Likewise.
3905 (avoid_dollar_number): Likewise.
3906 (finish_dollar_format_checking): Likewise.
3907 (check_format_info): Likewise.
3908 (check_format_info_main): Likewise.
3909 (check_format_types): Likewise.
3910 (format_type_warning): Likewise.
3911 * c-common.c (int): Likewise.
3912 (check_function_sentinel): Likewise.
3913 * c-common.h (warn_format,set_Wformat): Do not declare here.
3914
34a180a6
MLI
39152012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3916
3917 PR c/53063
3918 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
3919 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
3920 Use LangEnabledBy.
3921 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
3922 common.opt.
3923 (Wvariadic-macros): Init(1).
3924 * c-opts.c (c_common_handle_option): Do not handle them
3925 explicitly.
3926 (c_common_post_options): Likewise.
3927 (sanitize_cpp_opts): warn_unused_macros is now
3928 cpp_warn_unused_macros.
3929 (push_command_line_include): Likewise.
3930 * c-common.c (warn_unknown_pragmas): Do not define.
3931 * c-common.h (warn_unknown_pragmas): Do not declare.
3932
3f46d6a5
MLI
39332012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3934
3935 PR c/51294
3936 * c-common.c (conversion_warning): Handle conditional expressions.
3937
880661a4
JW
39382012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
3939
3940 PR c++/54930
3941 * c.opt (Wreturn_local_addr): Define new option.
3942
4514a96b
JM
39432012-10-25 Jason Merrill <jason@redhat.com>
3944
f14edc1a
JM
3945 * c.opt (Wvirtual-move-assign): New.
3946
4514a96b
JM
3947 * c.opt (Winherited-variadic-ctor): New.
3948
93100c6b
MG
39492012-10-25 Marc Glisse <marc.glisse@inria.fr>
3950
3951 PR c++/54427
3952 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
3953
1efcb8c6
JM
39542012-10-23 Joseph Myers <joseph@codesourcery.com>
3955
3956 * c-common.h (pch_cpp_save_state): Declare.
3957 * c-target.def (c_preinclude): New hook.
3958 * c-opts.c (done_preinclude): New.
3959 (push_command_line_include): Handle default preincluded header.
3960 (cb_file_change): Call pch_cpp_save_state when calling
3961 push_command_line_include.
3962 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
3963 (pch_cpp_save_state): New.
3964 (pch_init): Call pch_cpp_save_state conditionally, instead of
3965 calling cpp_save_state.
3966
4a0ae68e
MLI
39672012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3968
3969 PR c/53063
3970 PR c/40989
3971 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
3972 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
3973 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
3974 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
3975 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
3976 * c-opts.c (c_common_handle_option): Remove explicit handling from
3977 here.
3978 (c_common_post_options): Likewise.
3979
67e4210b
EB
39802012-10-18 Eric Botcazou <ebotcazou@adacore.com>
3981
3982 * c-ada-spec.c (LOCATION_COL): Delete.
3983 (compare_location): New function.
3984 (compare_node): Use it.
3985 (compare_comment): Likewise.
3986
65d4f2cd
MLI
39872012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
3988
3989 PR c/53063
3990 PR c/40989
3991 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
3992 * c-opts.c (c_common_handle_option): Do not set them here. Add
3993 comment.
3994 (c_common_post_options): Likewise.
3995
909881cb
EB
39962012-10-16 Eric Botcazou <ebotcazou@adacore.com>
3997
3998 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
3999 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
4000 Remove POINTER_TYPE handling, add large unsigned handling and use
4001 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
4002
3a785c97
JJ
40032012-10-12 Jakub Jelinek <jakub@redhat.com>
4004
4005 PR c/54381
4006 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
4007 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
4008 locs and array of 3 trees instead of just single loc and single
4009 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
4010 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
4011 For *cmp* builtins that take two sources strings report warnings
4012 about first and second source, not about destination and source.
4013
5e54f81d
MG
40142012-10-12 Marc Glisse <marc.glisse@inria.fr>
4015
4016 PR c++/53055
4017 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
4018
f5b02f1e
EB
40192012-10-11 Eric Botcazou <ebotcazou@adacore.com>
4020
4021 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
4022 declaring something coming from another file.
4023
b46dbc6c
AC
40242012-10-10 Arnaud Charlet <charlet@adacore.com>
4025
f5b02f1e 4026 PR ada/54845
b46dbc6c
AC
4027 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
4028
5d9de0d0
PC
40292012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
4030
4031 PR c++/54194
4032 * c-common.c (warn_about_parentheses): Add location_t parameter;
4033 use EXPR_LOC_OR_LOC.
4034 * c-common.h: Update declaration.
4035
a212e43f
MG
40362012-10-09 Marc Glisse <marc.glisse@inria.fr>
4037
4038 PR c++/54427
4039 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
4040 more operations. Make error messages optional.
4041 * c-common.h (enum stv_conv): Moved from c-typeck.c.
4042 (scalar_to_vector): Declare.
4043
b1db7f91
JM
40442012-10-08 Jason Merrill <jason@redhat.com>
4045
4046 * c-common.c (c_common_reswords): Add thread_local.
4047
e28d52cf
DS
40482012-10-08 Dodji Seketeli <dodji@redhat.com>
4049
4050 PR c++/53528 C++11 attribute support
4051 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
4052 new functions.
4053 * c-common.c (check_cxx_fundamental_alignment_constraints): New
4054 static function.
4055 (handle_aligned_attribute): In choose strictest alignment
4056 among many. Use new check_cxx_fundamental_alignment_constraints.
4057 (handle_transparent_union_attribute): In c++11 attribute syntax,
4058 don't look through typedefs.
4059
3b78de56
AC
40602012-10-04 Arnaud Charlet <charlet@adacore.com>
4061
4062 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
4063 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
4064 out of dumpfile.h.
4065
6040bb5f
DC
40662012-09-25 Dehao Chen <dehao@google.com>
4067
4068 PR middle-end/54645
3b78de56 4069 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
4070 map when read in the pch.
4071
0b07a57e
AC
40722012-09-18 Arnaud Charlet <charlet@adacore.com>
4073
4074 * c-ada-spec.c: Style fixes.
4075
da5182be
TQ
40762012-09-18 Thomas Quinot <quinot@adacore.com>
4077
4078 * c.opt (-fada-spec-parent): Define new command line switch.
4079 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
4080 is specified, generate binding spec as a child of the specified unit.
4081
0ccb505d
PC
40822012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
4083 Manuel López-Ibáñez <manu@gcc.gnu.org>
4084
4085 PR c++/53210
4086 * c.opt ([Winit-self]): Enabled by -Wall in C++.
4087
c583af79
AC
40882012-08-23 Arnaud Charlet <charlet@adacore.com>
4089
4090 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
4091 for pointers, and add missing Convention C pragma.
4092 (print_ada_struct_decl): Add missing aliased keyword.
4093 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
4094
1a4049e7
JJ
40952012-08-17 Jakub Jelinek <jakub@redhat.com>
4096
4097 * c-common.c (sizeof_pointer_memaccess_warning): New function.
4098 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
4099 * c-opts.c (c_common_handle_option): Enable it for -Wall.
4100 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
4101 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
4102
70b5e7dc
RG
41032012-08-10 Richard Guenther <rguenther@suse.de>
4104
4105 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
4106
f8923f7e
SB
41072012-08-07 Steven Bosscher <steven@gcc.gnu.org>
4108
4109 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
4110 instead of separate pp_newline and pp_flush.
4111 (print_c_tree): Likewise.
4112
e45abe1f
RH
41132012-07-26 Richard Henderson <rth@redhat.com>
4114
4115 * c-common.c (handle_hot_attribute): Allow labels.
4116 (handle_cold_attribute): Likewise.
4117
332f1d24
JJ
41182012-07-20 Jakub Jelinek <jakub@redhat.com>
4119
4120 PR c++/28656
4121 * c-common.c (check_function_nonnull): Handle multiple nonnull
4122 attributes properly.
4123
7ee2468b
SB
41242012-07-16 Steven Bosscher <steven@gcc.gnu.org>
4125
4126 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
4127 * c-ada-spec.c: Likewise.
4128 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
4129
ee7b28eb
SB
41302012-07-14 Steven Bosscher <steven@gcc.gnu.org>
4131
4132 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
4133 Remove code conditional on it.
4134
6bdf3519
SB
41352012-07-11 Steven Bosscher <steven@gcc.gnu.org>
4136
4137 * c-gimplify.c: Do not include basic-block.h.
4138 * c-common.c: Do not include linfuncs.h.
4139
532aafad
SB
41402012-07-08 Steven Bosscher <steven@gcc.gnu.org>
4141
4142 * c-common.h: Include tree.h.
4143
8d0d1915
JM
41442012-07-02 Jason Merrill <jason@redhat.com>
4145
4146 PR c++/53524
4147 * c-common.c (get_priority): Call default_conversion.
4148
fbc873ad
UB
41492012-07-01 Uros Bizjak <ubizjak@gmail.com>
4150
4151 * c-pch.c (c_common_write_pch): Remove unused variables.
4152
d4a10d0a
SB
41532012-06-29 Steven Bosscher <steven@gcc.gnu.org>
4154
4155 * cppspec.c: Moved from gcc/ to here.
4156
6f3a2e23
KT
41572012-06-27 Kai Tietz <ktietz@redhat.com>
4158
4159 PR preprocessor/37215
4160 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
4161
8ca92d04
SB
41622012-06-21 Steven Bosscher <steven@gcc.gnu.org>
4163
4164 * c-common.h (c_common_print_pch_checksum): Remove.
4165 * c-pch.c: Do not include output.h.
4166 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
4167 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
4168 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
4169 (struct c_pch_header): Remove.
4170 (get_ident): Update gpch version.
4171 (pch_init): Do not print executable_checksum to asm_out_file.
4172 Do not fail if there is no asm_out_file to read back from. Set
4173 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
4174 (c_common_write_pch): Verify that nothing was written to asm_out_file
4175 since pch_init was called. Do not write a c_pch_header, and do not
4176 copy from asm_out_file to the PCH.
4177 (c_common_read_pch): Do not read a c_pch_header, and do not restore
4178 the content of asm_out_file from the PCH.
4179 (c_common_print_pch_checksum): Remove.
4180 * c-opts.c (c_common_init): Print out executable_checksum directly.
4181
70f42967
SB
41822012-06-19 Steven Bosscher <steven@gcc.gnu.org>
4183
4184 * c-target.def (objc_declare_unresolved_class_reference,
4185 objc_declare_class_definition): Add new hooks.
4186
a8781821
SB
41872012-06-19 Steven Bosscher <steven@gcc.gnu.org>
4188
4189 * c-lex.c: Do not include output.h.
4190 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
4191 Remove uses of ASM_OUTPUT_IDENT.
4192
9e1a8dd1
RR
41932012-06-15 Marc Glisse <marc.glisse@inria.fr>
4194
4195 PR c++/51033
4196 * c-common.h (c_build_vec_perm_expr): Move decl here.
4197 * c-common.c (c_build_vec_perm_expr): Move definition
4198 here.
4199
6f07a821
SB
42002012-06-06 Steven Bosscher <steven@gcc.gnu.org>
4201
4202 * c.opt (fconserve-space): Turn into a no-op.
4203
9faeb493 42042012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
4205
4206 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
4207 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
4208 both the start and end of the function.
4209
a4b7d13c
SB
42102012-06-04 Steven Bosscher <steven@gcc.gnu.org>
4211
4212 * c-common.c: Do not include output.h.
4213 * c-pragma.c: Likewise.
4214
c265f413
SA
42152012-06-04 Steven Bosscher <steven@gcc.gnu.org>
4216
4217 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
4218 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
4219 (lang_decl_name): Handle namespace decls.
4220
be7a421e
SB
42212012-05-31 Steven Bosscher <steven@gcc.gnu.org>
4222
4223 * c-ada-spec.c: Do not include output.h.
4224 * c-semantics.c: Likewise.
4225
65de6659
JM
42262012-05-29 Joseph Myers <joseph@codesourcery.com>
4227
4228 * c-common.c: Fix typo.
4229
ca5f4331
MM
42302012-05-29 Michael Matz <matz@suse.de>
4231
4232 * c-common.h (c_expand_decl): Remove prototype.
4233
4f7f7aca
MLI
42342012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
4235
4236 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
4237 * c-opts.c (c_common_handle_option): Remove code handling
4238 warn_missing_braces.
4239
4a792f9b
PC
42402012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
4241
4242 PR c++/25137
4243 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
4244 -Wmissing_braces.
4245
650dc14a
DS
42462012-05-22 Dodji Seketeli <dodji@redhat.com>
4247
4248 PR c++/53322
4249 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
4250
9b095bf1
MLI
42512012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
4252
4253 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
4254 * c-opts.c (c_common_handle_option): Do not handle explicitly
4255 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
4256
0b2c4be5
DS
42572012-05-16 Dodji Seketeli <dodji@redhat.com>
4258
4259 PR preprocessor/7263
4260 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
4261 to cpp_classify_number. For diagnostics, use the precise location
4262 instead of the global input_location.
4263
a1bde5af
PC
42642012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
4265
d02924ef 4266 PR c++/11856
a1bde5af
PC
4267 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
4268
d1ede5f4
BS
42692012-05-14 Bernd Schmidt <bernds@codesourcery.com>
4270
a1bde5af 4271 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 4272
f2bc201f
MLI
42732012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
4274
4275 PR 53063
4276 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
4277 Wreorder): Use LangEnabledBy.
4278 * c-opts.c (c_common_handle_option): Do not enable them
4279 explicitly. Call lang-specific generated functions.
4280 (c_common_post_options): Do not set them here.
4281
95744782
MLI
42822012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
4283
4284 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
4285 Wmissing-field-initializers,Wmissing-parameter-type,
4286 Wold-style-declaration,Woverride-init): Use EnabledBy.
4287 * c-opts.c (c_common_post_options): Do not set here explicitly.
4288
7d5a5747
MLI
42892012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4290
4291 PR 53063
4292 * c-opts.c (c_common_handle_option): Use handle_generated_option
4293 to enable sub-options.
4294
5a3c9cf2
PC
42952012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
4296
4297 PR c++/53158
4298 * c-common.c (warnings_for_convert_and_check): Use warning_at.
4299
3ac8781c
RG
43002012-05-10 Richard Guenther <rguenther@suse.de>
4301
4302 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
4303 adjust commentary about TYPE_IS_SIZETYPE types.
4304
1e537948
MLI
43052012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4306
4307 PR c++/53261
4308 * c-common.c (warn_logical_operator): Check that argument of
4309 integer_zerop is not NULL.
4310
f2c4a785
MLI
43112012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
4312
4313 PR c/43772
4314 * c-common.c (warn_logical_operator): Do not warn if either side
4315 is already true or false.
4316
50f305ca
MLI
43172012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
4318
4319 PR c/51712
4320 * c-common.c (expr_original_type): New.
4321 (shorten_compare): Do not warn for enumeration types.
4322
0c3641b0
MLI
43232012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
4324
4325 * c.opt (fpermissive): Add Var(flag_permissive).
4326
7edaa4d2
MG
43272012-04-30 Marc Glisse <marc.glisse@inria.fr>
4328
4329 PR c++/51033
4330 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
4331 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
4332
b9c8da34
DS
43332012-04-30 Dodji Seketeli <dodji@redhat.com>
4334
4335 Add -Wvarargs option
4336 * c.opt (Wvarargs): Define new option.
4337
e6c69da0
MLI
43382012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4339
4340 * c-common.c (check_function_arguments): Replace
4341 Wmissing-format-attribute with Wsuggest-attribute=format.
4342
90137d8f
MLI
43432012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4344
4345 * c.opt (Wsuggest-attribute=format): New. Alias of
4346 Wmissing-format-attribute.
4347 * c-format.c (decode_format_type): Replace
4348 Wmissing-format-attribute with Wsuggest-attribute=format.
4349 (check_function_format): Likewise.
4350
9faeb493 43512012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
4352
4353 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
4354 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
4355 * c.opt: Add Wliteral-suffix.
4356
c1771a20
MLI
43572012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
4358
4359 PR c/44774
4360 * c.opt (Wpedantic): New.
4361 (pedantic): Alias Wpedantic.
4362 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
4363 (c_common_post_options): Likewise.
4364 (sanitize_cpp_opts): Likewise.
4365 * c-lex.c (interpret_float): Likewise.
4366 * c-format.c (check_format_types): Likewise.
4367 * c-common.c (pointer_int_sum): Likewise.
4368 (c_sizeof_or_alignof_type): Likewise.
4369 (c_add_case_label): Likewise.
4370 (c_do_switch_warnings): Likewise.
4371 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
4372
04b391c1
JM
43732012-04-15 Jason Merrill <jason@redhat.com>
4374
4375 PR c++/52818
4376 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
4377 (C_STD_NAME): Distinguish between C++98 and C++11.
4378
ac868f29
EB
43792012-04-11 Eric Botcazou <ebotcazou@adacore.com>
4380
4381 PR target/52624
4382 * c-common.h (uint16_type_node): Rename into...
4383 (c_uint16_type_node): ...this.
4384 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
4385 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
4386
fd4116f4
MLI
43872012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
4388
4389 * c-common.c (warn_if_unused_value): Move definition to here.
4390 * c-common.h (warn_if_unused_value): Move declaration to here.
4391
573ac65e
WB
43922012-03-23 William Bader <williambader@hotmail.com>
4393
4394 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
4395
552b8185
JM
43962012-03-20 Jason Merrill <jason@redhat.com>
4397
4398 * c-common.h (enum cxx_dialect): Add cxx1y.
4399 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
4400 test.
4401 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
4402 * c-opts.c (c_common_post_options): Likewise.
4403 (set_std_cxx1y): New.
4404 (c_common_handle_option): Call it.
4405 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
4406
04398fa8
PC
44072012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
4408
4409 PR c++/14710
4410 * c.opt ([Wuseless-cast]): Add.
4411
d2a12ae7
RG
44122012-03-16 Richard Guenther <rguenther@suse.de>
4413
4414 * c-pretty-print.c (pp_c_initializer_list): Adjust.
4415
a12bf402
MLI
44162012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
4417
4418 PR c++/44783
4419 * c.opt (ftemplate-backtrace-limit) Add.
4420
5c30094f
RO
44212012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4422
4423 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
4424 handling.
4425 * c-pragma.c (handle_pragma_extern_prefix): Remove.
4426 (init_pragma): Don't register extern_prefix.
4427
21fa2faf
RG
44282012-03-12 Richard Guenther <rguenther@suse.de>
4429
4430 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
4431 (builtin_type_for_size): Likewise.
4432
e3793c6f
JJ
44332012-02-13 Jakub Jelinek <jakub@redhat.com>
4434
4435 PR c++/52215
4436 * c-common.c (sync_resolve_params): Don't decide whether to convert
4437 or not based on TYPE_SIZE comparison, convert whenever arg_type
4438 is unsigned INTEGER_TYPE.
4439
93286335
PC
44402012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
4441
4442 PR c/52118
4443 * c.opt ([Wunused-local-typedefs]): Fix description.
4444
7a421706
MS
44452012-01-24 Mike Stump <mikestump@comcast.net>
4446
4447 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
4448 exactly.
4449
ba9b1f11
RG
44502012-01-18 Richard Guenther <rguenther@suse.de>
4451
4452 * c-opts.c (c_common_post_options): Reset LTO flags if
4453 we are about to generate a PCH.
4454
465406be
PC
44552012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
4456
4457 PR c++/51777
4458 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
4459 use pp_unsigned_wide_integer.
4460
aee15221
RG
44612012-01-10 Richard Guenther <rguenther@suse.de>
4462
4463 PR middle-end/51806
4464 * c-opts.c (c_common_handle_option): Move -Werror handling
4465 to language independent code.
4466
5720c0dc
RG
44672012-01-05 Richard Guenther <rguenther@suse.de>
4468
4469 PR middle-end/51764
4470 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
4471 from common.opt.
4472
73ac190a
PC
44732011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
4474
4475 PR c++/51316
4476 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
4477 of array types with an unknown bound.
4478
48b0b196
JM
44792011-12-20 Joseph Myers <joseph@codesourcery.com>
4480
4481 * c-common.c (flag_isoc99): Update comment to refer to C11.
4482 (flag_isoc1x): Change to flag_isoc11.
4483 * c-common.h (flag_isoc99): Update comment to refer to C11.
4484 (flag_isoc1x): Change to flag_isoc11.
4485 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
4486 C11.
4487 * c-opts.c (set_std_c1x): Change to set_std_c11.
4488 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
4489 Call set_std_c11.
4490 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
4491 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
4492 * c.opt (std=c1x): Change to std=c11. Document as non-draft
4493 standard.
4494 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
4495 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
4496 (std=gnu1x): Make alias of std=gnu11.
4497
d58d6eb5
JM
44982011-12-19 Jason Merrill <jason@redhat.com>
4499
4500 PR c++/51228
4501 * c-common.c (handle_transparent_union_attribute): Check the first
4502 field if the type is complete.
4503
b3908fcc
JW
45042011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
4505
4506 PR libstdc++/51365
4507 * c-common.c (RID_IS_FINAL): Add.
4508 * c-common.h (RID_IS_FINAL): Add.
4509
fea3ca91
IS
45102011-11-30 Iain Sandoe <iains@gcc.gnu.org>
4511
4512 * c.opt (fgnu-runtime): Provide full description.
4513 (fnext-runtime): Likewise.
4514 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
4515
62bad7cd
AM
45162011-11-28 Andrew MacLeod <amacleod@redhat.com>
4517
4518 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
4519 predefines in one place. Add LOCK_FREE predefines.
4520 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
4521 new func.
4522
c466c4ff
AM
45232011-11-24 Andrew MacLeod <amacleod@redhat.com>
4524
4525 PR c/51256
9faeb493 4526 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 4527 conditions
9faeb493
UB
4528 (resolve_overloaded_atomic_exchange,
4529 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
4530 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
4531 error_mark_node for error conditions.
9faeb493 4532
a5952633
RG
45332011-11-08 Richard Guenther <rguenther@suse.de>
4534
4535 PR middle-end/51010
4536 c-family/
4537
0a35513e
AH
45382011-11-07 Richard Henderson <rth@redhat.com>
4539 Aldy Hernandez <aldyh@redhat.com>
4540 Torvald Riegel <triegel@redhat.com>
4541
4542 Merged from transactional-memory.
4543
4544 * c-common.c (handle_tm_wrap_attribute,
4545 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
4546 (struct c_common_reswords): Added __transaction* keywords.
4547 (struct c_common_attribute_table): Added transaction* and tm_regparm
4548 attributes.
4549 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
4550 masks.
4551 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
4552 find_tm_attribute): Declare.
4553
6d87092d
JM
45542011-11-07 Jason Merrill <jason@redhat.com>
4555
4556 PR c++/35688
4557 * c-common.c, c-common.h: Revert yesterday's changes.
4558
8e7860a1
JM
45592011-11-06 Jason Merrill <jason@redhat.com>
4560
4561 PR c++/35688
4562 * c-common.c (decl_has_visibility_attr): Split out from...
4563 (c_determine_visibility): ...here.
4564 * c-common.h: Declare it.
4565
d19fa6b5
JM
45662011-11-06 Joseph Myers <joseph@codesourcery.com>
4567
4568 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
4569 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
4570 type.
4571 (check_user_alignment): New. Split out of
4572 handle_aligned_attribute. Disallow integer constants with
4573 noninteger types. Conditionally allow zero.
4574 (handle_aligned_attribute): Use check_user_alignment.
4575 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
4576
86951993
AM
45772011-11-06 Andrew MacLeod <amacleod@redhat.com>
4578 Richard Henderson <rth@redhat.com>
4579
4580 Merged from cxx-mem-model.
4581
4582 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 4583 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
4584 parameters that are the same type size.
4585 (get_atomic_generic_size): New. Find size of generic
4586 atomic function parameters and do typechecking.
4587 (add_atomic_size_parameter): New. Insert size into parameter list.
4588 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
4589 either __atomic_exchange_n or external library call.
9faeb493 4590 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 4591 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 4592 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
4593 __atomic_load_n or an external library call.
4594 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
4595 __atomic_store_n or an external library call.
4596 (resolve_overloaded_builtin): Handle new __atomic builtins.
4597
cf9e9959
EB
45982011-11-04 Eric Botcazou <ebotcazou@adacore.com>
4599
4600 PR c++/50608
4601 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
4602 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
4603 <INDIRECT_REF>: Return the argument.
4604 <ARRAY_REF>: Remove special code for negative offset.
4605 Call fold_build_pointer_plus instead of size_binop.
4606 (fold_offsetof): Remove STOP_REF argument and adjust.
4607 * c-common.h (fold_offsetof_1): Declare.
4608 (fold_offsetof): Remove STOP_REF argument.
4609
25339f10
JM
46102011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
4611
4612 PR c++/50810
4613 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4614 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4615 Wnarrowing for C++0x and C++98.
4616 * c.opt ([Wnarrowing]): Update.
4617
89401152
PC
46182011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
4619
4620 PR c++/44277
4621 * c.opt: Add Wzero-as-null-pointer-constant.
4622
97e3ad20
JM
46232011-10-31 Jason Merrill <jason@redhat.com>
4624
15694fdd
JM
4625 * c.opt (-fdeduce-init-list): Off by default.
4626
97e3ad20
JM
4627 PR c++/50920
4628 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
4629 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
4630 and -Wc++11-compat.
4631 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
4632
fb9120e3
RAV
46332011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
4634
4635 PR c++/30066
4636 * c.opt (fvisibility-inlines-hidden): Description change.
4637
3ce4f9e4
ESR
46382011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
4639
4640 Implement C++11 user-defined literals.
4641 * c-common.c (build_userdef_literal): New.
4642 * c-common.def: New tree code.
4643 * c-common.h (tree_userdef_literal): New tree struct and accessors.
4644 * c-lex.c (interpret_float): Add suffix parm.
4645 (c_lex_with_flags): Build literal tokens.
4646
5f53c243
PC
46472011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4648
4649 PR c++/50841
4650 Revert:
4651 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4652
4653 PR c++/50810
4654 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4655 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4656 Wnarrowing for C++0x and C++98.
4657 * c.opt ([Wnarrowing]): Update.
4658
263734e1
PC
46592011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4660
4661 PR c++/50810
4662 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4663 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4664 Wnarrowing for C++0x and C++98.
4665 * c.opt ([Wnarrowing]): Update.
4666
d2e312d7
PC
46672011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
4668
4669 PR c++/45385
4670 * c-common.c (conversion_warning): Remove code looking for
4671 artificial operands.
4672
d17687f6
DS
46732011-10-18 Dodji Seketeli <dodji@redhat.com>
4674
4675 PR bootstrap/50760
4676 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 4677 !NO_IMPLICIT_EXTERN_C.
d17687f6 4678
fc8396e9
PC
46792011-10-17 Michael Spertus <mike_spertus@symantec.com>
4680
4681 * c-common.c (c_common_reswords): Add __bases,
4682 __direct_bases.
4683 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
4684
46852011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
4686
4687 PR c++/50757
4688 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
4689
847e697a
TT
46902011-10-15 Tom Tromey <tromey@redhat.com>
4691 Dodji Seketeli <dodji@redhat.com>
4692
4693 * c.opt (fdebug-cpp): New option.
4694 * c-opts.c (c_common_handle_option): Handle the option.
4695 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
4696 output stream in parameter. Factorized from ...
4697 (maybe_print_line): ... this. Dump location debug information when
4698 -fdebug-cpp is in effect.
4699 (print_line_1): New static function. Takes an output stream in
4700 parameter. Factorized from ...
4701 (print_line): ... here. Dump location information when -fdebug-cpp
4702 is in effect.
4703 (scan_translation_unit): Dump location information when
4704 -fdebug-cpp is in effect.
4705
92582b75
TT
47062011-10-15 Tom Tromey <tromey@redhat.com>
4707 Dodji Seketeli <dodji@redhat.com>
4708
4709 * c.opt (ftrack-macro-expansion): New option. Handle it with and
4710 without argument.
4711 * c-opts.c (c_common_handle_option)<case
4712 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
4713 cases. Handle -ftrack-macro-expansion with and without argument.
4714
46427374
TT
47152011-10-15 Tom Tromey <tromey@redhat.com>
4716 Dodji Seketeli <dodji@redhat.com>
4717
4718 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
4719 (print_line, cb_define, do_line_change): Adjust to avoid touching
4720 the internals of struct line_map. Use the public API instead.
4721 * c-pch.c (c_common_read_pch): Likewise.
4722 * c-lex.c (fe_file_change): Likewise.
4723
fc8396e9
PC
47242011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
4725
4726 PR c++/17212
4727 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
4728
47292011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
4730
4731 PR c++/33067
4732 * c-pretty-print.c (pp_c_floating_constant): Output
4733 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
4734
e79983f4
MM
47352011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
4736
4737 * c-common.c (def_builtin_1): Delete old interface with two
4738 parallel arrays to hold standard builtin declarations, and replace
4739 it with a function based interface that can support creating
4740 builtins on the fly in the future. Change all uses, and poison
4741 the old names. Make sure 0 is not a legitimate builtin index.
4742 * c-omp.c (c_finish_omp_barrier): Ditto.
4743 (c_finish_omp_taskwait): Ditto.
4744 (c_finish_omp_flush): Ditto.
4745
6637388f
TG
47462011-10-11 Tristan Gingold <gingold@adacore.com>
4747
4748 * c.opt: (fallow-parameterless-variadic-functions): New.
4749
3797cb21
DS
47502011-09-08 Dodji Seketeli <dodji@redhat.com>
4751
4752 PR c++/33255 - Support -Wunused-local-typedefs warning
4753 * c-common.h (struct c_language_function::local_typedefs): New
4754 field.
9faeb493
UB
4755 (record_locally_defined_typedef, maybe_record_typedef_use)
4756 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 4757 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
4758 (maybe_record_typedef_use)
4759 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
4760 * c.opt: Declare new -Wunused-local-typedefs flag.
4761
693ddb1b
EB
47622011-09-06 Eric Botcazou <ebotcazou@adacore.com>
4763
4764 PR middle-end/50266
4765 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
4766 computations.
4767
830c740f
RG
47682011-09-05 Richard Guenther <rguenther@suse.de>
4769
4770 * c-common.c (complete_array_type): Use ssize_int (-1) instead
4771 of integer_minus_one_node for empty array upper bounds.
4772
892a371f
DS
47732011-08-28 Dodji Seketeli <dodji@redhat.com>
4774
4775 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
4776 it's the first time it's being called on this main TU.
4777
0e3fdb48
RB
47782011-08-24 Richard Guenther <rguenther@suse.de>
4779
4780 PR c/49396
4781 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
4782
47832011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
4784
4785 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
4786 defined in cpp_init_builtins and c_cpp_builtins.
4787
d4a83c10
JM
47882011-08-19 Joseph Myers <joseph@codesourcery.com>
4789
4790 * c-common.c (c_common_reswords): Add __builtin_complex.
4791 * c-common.h (RID_BUILTIN_COMPLEX): New.
4792
bbceee64
JM
47932011-08-18 Joseph Myers <joseph@codesourcery.com>
4794
4795 * c-common.c (c_common_reswords): Add _Noreturn.
4796 (keyword_is_function_specifier): Handle RID_NORETURN.
4797 * c-common.h (RID_NORETURN): New.
4798
0e3a99ae
AS
47992011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4800
4801 * c-common.c (unsafe_conversion_p): New function. Check if it is
4802 unsafe to convert an expression to the type.
4803 (conversion_warning): Adjust, use unsafe_conversion_p.
4804 * c-common.h (unsafe_conversion_p): New function declaration.
4805
20906c66
JJ
48062011-08-02 Jakub Jelinek <jakub@redhat.com>
4807
4808 * c-common.h (c_finish_omp_atomic): Adjust prototype.
4809 (c_finish_omp_taskyield): New prototype.
4810 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
4811 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
4812 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
4813 or RHS1 have side-effects, evaluate those too in the right spot,
4814 if it is a decl and LHS is also a decl, error out if they
4815 aren't the same.
4816 (c_finish_omp_taskyield): New function.
4817 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
4818 * c-pragma.c (omp_pragmas): Add taskyield.
4819 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
4820 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
4821 PRAGMA_OMP_CLAUSE_MERGEABLE.
4822
770e5a2e
DS
48232011-07-25 Dodji Seketeli <dodji@redhat.com>
4824
4825 * c-common.h (set_underlying_type): Remove parm name from
4826 declaration.
4827
1baae426
RG
48282011-07-25 Romain Geissler <romain.geissler@gmail.com>
4829
4830 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 4831
fcb21722
JM
48322011-07-22 Jason Merrill <jason@redhat.com>
4833
76f86d00
JM
4834 PR c++/49793
4835 * c.opt (Wnarrowing): New.
4836
3a636414
JM
4837 PR c++/30112
4838 * c-common.h: Declare c_linkage_bindings.
4839 * c-pragma.c (handle_pragma_redefine_extname): Use it.
4840
fcb21722
JM
4841 PR c++/49813
4842 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
4843 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
4844 as flag_isoc99 for 'restrict'.
4845 (pp_c_specifier_qualifier_list): Likewise for _Complex.
4846
02614448
ILT
48472011-07-21 Ian Lance Taylor <iant@google.com>
4848
4849 PR middle-end/49705
4850 * c-common.c (c_disable_warnings): New static function.
4851 (c_enable_warnings): New static function.
4852 (c_fully_fold_internal): Change local unused_p to bool. Call
4853 c_disable_warnings and c_enable_warnings rather than change
4854 c_inhibit_evaluation_warnings.
4855
34429675
JM
48562011-07-20 Jason Merrill <jason@redhat.com>
4857
4858 PR c++/6709 (DR 743)
4859 PR c++/42603 (DR 950)
4860 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
4861 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
4862 (CPP_DECLTYPE): New.
4863 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
4864
5d49b6a7
RG
48652011-07-19 Richard Guenther <rguenther@suse.de>
4866
4867 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
4868 * c-omp.c (c_finish_omp_for): Likewise.
4869
e84a58ff
EB
48702011-07-12 Eric Botcazou <ebotcazou@adacore.com>
4871
4872 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
4873 body on the next line.
4874
329af3c7
JM
48752011-07-08 Jason Merrill <jason@redhat.com>
4876
4063e61b
JM
4877 PR c++/45437
4878 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
4879
329af3c7
JM
4880 PR c++/49673
4881 * c-common.c (c_apply_type_quals_to_decl): Don't check
4882 TYPE_NEEDS_CONSTRUCTING.
4883
1a072294
RG
48842011-07-06 Richard Guenther <rguenther@suse.de>
4885
4886 * c-common.c (c_common_nodes_and_builtins):
4887 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
4888
fce5dddd
RG
48892011-07-05 Richard Guenther <rguenther@suse.de>
4890
4891 * c-common.c (c_common_nodes_and_builtins): Build all common
4892 tree nodes first.
4893
45d439ac
JJ
48942011-06-27 Jakub Jelinek <jakub@redhat.com>
4895
56300785
JJ
4896 * c-common.h (c_tree_chain_next): New static inline function.
4897
45d439ac
JJ
4898 * c-common.c (check_builtin_function_arguments): Handle
4899 BUILT_IN_ASSUME_ALIGNED.
4900
e0a8ecf2
AM
49012011-06-21 Andrew MacLeod <amacleod@redhat.com>
4902
4903 * c-common.c: Add sync_ or SYNC__ to builtin names.
4904 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
4905
49062011-06-20 Pierre Vittet <piervit@pvittet.com>
4907
4908 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
4909 handler.
4910 (gen_pragma_handler): New union.
4911 (internal_pragma_handler): New type.
4912 (c_register_pragma_with_data)
4913 (c_register_pragma_with_expansion_and_data): New functions.
4914
4915 * c-pragma.c (registered_pragmas, c_register_pragma_1)
4916 (c_register_pragma, c_register_pragma_with_expansion)
4917 (c_invoke_pragma_handler): Changed to work with
4918 internal_pragma_handler.
4919 (c_register_pragma_with_data)
4920 (c_register_pragma_with_expansion_and_data): New functions.
4921
677f3fa8
JM
49222011-06-14 Joseph Myers <joseph@codesourcery.com>
4923
4924 * c-common.c: Include common/common-target.h.
4925 (handle_section_attribute): Use
4926 targetm_common.have_named_sections.
4927 * c-cppbuiltin.c: Include common/common-target.h.
4928 (c_cpp_builtins): Use targetm_common.except_unwind_info.
4929
d7fc8c14
RG
49302011-06-10 Richard Guenther <rguenther@suse.de>
4931
4932 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
4933 to print a IDENTIFIER_NODE.
4934
10e48e39
RO
49352011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4936 Joseph Myers <joseph@codesourcery.com>
4937
4938 * c.opt (fbuilding-libgcc): New option.
4939 * c-cppbuiltin.c (c_cpp_builtins): Define
4940 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
4941
6976ae51
JM
49422011-06-07 Jason Merrill <jason@redhat.com>
4943
3ff60975
JM
4944 * c-common.c (max_tinst_depth): Lower default to 900.
4945
6976ae51
JM
4946 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
4947
009db074
RG
49482011-06-07 Richard Guenther <rguenther@suse.de>
4949
4950 * c-common.c (c_common_nodes_and_builtins): Do not set
4951 size_type_node or call set_sizetype.
4952
b4592b92
DS
49532011-06-07 Dodji Seketeli <dodji@redhat.com>
4954
4955 PR debug/49130
4956 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 4957 type when using pointer comparison to compare types.
b4592b92 4958
014ab419
JW
49592011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
4960
4961 * c.opt: Add -Wdelete-non-virtual-dtor.
4962 * c-opts.c (c_common_handle_option): Include it in -Wall.
4963
4f60111f
NF
49642011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
4965
4966 PR bootstrap/49190
4967
4968 Revert:
4969 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4970
4971 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
4972 not tree_common.
4973
4cc4f2f4
JJ
49742011-05-27 Jakub Jelinek <jakub@redhat.com>
4975
4976 PR c++/49165
4977 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
4978 C++ don't call c_common_truthvalue_conversion on void type arms.
4979
38e01f9e
NF
49802011-05-27 Nathan Froyd <froydnj@codesourcery.com>
4981
4982 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
4983 (stmt_list_stack): Define.
4984 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
4985 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
4986
92e948a8
NF
49872011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4988
4989 * c-common.c (warning_candidate_p): Check for BLOCKs.
4990
a2fc3e63
NF
49912011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4992
4993 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
4994 not tree_common.
4995
0957c029
JJ
49962011-05-25 Jakub Jelinek <jakub@redhat.com>
4997
4998 * c-common.c (def_fn_type): Remove extra va_end.
4999
828fb3ba
JM
50002011-05-23 Jason Merrill <jason@redhat.com>
5001
5002 PR c++/48106
5003 * c-common.c (c_common_get_narrower): New.
5004 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
5005
dde05067
NF
50062011-05-23 Nathan Froyd <froydnj@codesourcery.com>
5007
5008 * c-common.h (check_function_arguments): Tweak prototype of
5009 check_function_arguments.
5010 * c-common.c (check_function_arguments): Likewise. Adjust
5011 calls to check_function_nonnull, check_function_format, and
5012 check_function_sentinel.
5013 (check_function_sentinel): Take a FUNCTION_TYPE rather than
5014 separate attributes and typelist arguments. Use
5015 FOREACH_FUNCTION_ARGS to iterate over argument types.
5016
3c0d13bf
PC
50172011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
5018
5019 * c-common.c (c_common_reswords): Reorder.
5020 * c-common.h (rid): Likewise.
5021
8242dd04
NF
50222011-05-10 Nathan Froyd <froydnj@codesourcery.com>
5023
5024 * c-common.c (def_fn_type): Don't call build_function_type, call
5025 build_function_type_array or build_varargs_function_type_array
5026 instead.
5027 (c_common_nodes_and_builtins): Likewise.
5028
3d528853
NF
50292011-05-05 Nathan Froyd <froydnj@codesourcery.com>
5030
5031 * c-common.c (c_add_case_label): Omit the loc argument to
5032 build_case_label.
5033 * c-common.h (build_case_label): Remove.
5034 * c-semantics.c (build_case_label): Remove.
5035
a04a722b
JM
50362011-05-05 Joseph Myers <joseph@codesourcery.com>
5037
5038 * c-objc.h (objc_start_method_definition): Update prototype.
5039 * stub-objc.c (objc_start_method_definition): Add extra parameter.
5040
e19a18d4
NF
50412011-05-04 Nathan Froyd <froydnj@codesourcery.com>
5042
5043 * c-common.c (check_main_parameter_types): Reindent. Don't use
5044 TYPE_ARG_TYPES directly.
5045 (handle_nonnull_attribute): Likewise.
5046 (sync_resolve_params): Likewise.
5047 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
5048 to check_format_string.
5049 (handle_format_attribute): Likewise.
5050 (check_format_string): Take a function type to examine instead of
5051 a type list. Use a function_arg_iterator to step through argument
5052 types.
5053
c62c040f
RG
50542011-05-04 Richard Guenther <rguenther@suse.de>
5055
5056 * c-common.c (fix_string_type): Use size_int for index type bounds.
5057 (start_fname_decls): Do not pass NULL to build_int_cst.
5058 (c_init_attributes): Likewise.
5059 * c-lex.c (c_lex_with_flags): Likewise.
5060
c12ff9d8
JM
50612011-04-27 Jason Merrill <jason@redhat.com>
5062
5063 * c-common.c (make_tree_vector_from_list): New.
5064 * c-common.h: Declare it.
5065
304dfbe3
RG
50662011-04-26 Richard Guenther <rguenther@suse.de>
5067
5068 PR preprocessor/48248
5069 * c-ppoutput.c (maybe_print_line): Always optimize newlines
5070 for output size with -P.
5071
3c0d13bf
PC
50722011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
5073
5074 * c-common.c (struct c_common_resword): Add __underlying_type.
5075 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
5076
04695783
JM
50772011-04-20 Jim Meyering <meyering@redhat.com>
5078
5079 * c-format.c (init_dollar_format_checking): Remove useless
5080 if-before-free.
5081
0dc33c3c
NP
50822011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
5083
5084 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 5085 (objc_detect_field_duplicates): New.
0dc33c3c 5086 * stub-objc.c: Likewise.
3c0d13bf 5087
c59633d9
NP
50882011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5089
5090 * stub-objc.c (objc_declare_protocols): Renamed to
5091 objc_declare_protocol.
5092 * c-objc.h: Likewise.
3c0d13bf 5093
32dabdaf
NP
50942011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5095
5096 * stub-objc.c (objc_declare_class): Updated argument name.
5097
81f653d6
NF
50982011-04-12 Nathan Froyd <froydnj@codesourcery.com>
5099
5100 * c-common.h (c_common_init_ts): Declare.
5101 * c-common.c (c_common_init_ts): Define.
5102
eb345401
NP
51032011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5104
5105 * c-objc.h (objc_build_message_expr): Updated prototype.
5106 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 5107
a358e188
MJ
51082011-04-12 Martin Jambor <mjambor@suse.cz>
5109
5110 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
5111 of cgraph_node.
5112
e6313a78
RG
51132011-04-11 Richard Guenther <rguenther@suse.de>
5114
5115 * c-common.c (complete_array_type): Build a range type of
5116 proper type.
5117
dcf0c47e
NF
51182011-04-08 Nathan Froyd <froydnj@codesourcery.com>
5119
5120 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
5121 (handle_type_generic_attribute): Likewise.
5122
1ee44b26
JM
51232011-04-07 Jason Merrill <jason@redhat.com>
5124
5125 PR c++/48450
5126 * c-common.c (c_common_truthvalue_conversion): Don't ignore
5127 conversion from C++0x scoped enum.
5128
acce4e77
JM
51292011-04-06 Joseph Myers <joseph@codesourcery.com>
5130
5131 * c-target-def.h: New file.
5132 * c-target.def: New file.
5133 * c-target.h: New file.
5134 * c-common.c (targetcm): Don't define here.
5135 * c-common.h (default_handle_c_option): Declare.
5136 * c-format.c: Include c-target.h instead of target.h.
5137 * c-opts.c: Include c-target.h instead of target.h. Explicitly
5138 include tm.h.
5139 (default_handle_c_option): Move from targhooks.c.
5140
e2eefb55
JJ
51412011-03-29 Jakub Jelinek <jakub@redhat.com>
5142
5143 PR preprocessor/48248
5144 * c-ppoutput.c (print): Add src_file field.
5145 (init_pp_output): Initialize it.
5146 (maybe_print_line): Don't optimize by adding up to 8 newlines
5147 if map->to_file and print.src_file are different file.
5148 (print_line): Update print.src_file.
5149
ba78087b
KT
51502011-03-25 Kai Tietz <ktietz@redhat.com>
5151
5152 * c-ada-spec.c (compare_comment): Use filename_cmp
5153 instead of strcmp for filename.
5154
0edf1bb2
JL
51552011-03-25 Jeff Law <law@redhat.com>
5156
adfac8df 5157 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 5158
c7dc8804
JM
51592011-03-25 Jason Merrill <jason@redhat.com>
5160
5161 * c.opt: Add -std=c++03.
5162
d1d879b1
EB
51632011-03-22 Eric Botcazou <ebotcazou@adacore.com>
5164
5165 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
5166
62d784f7
KT
51672011-03-17 Kai Tietz
5168
5169 PR target/12171
5050afdf
KT
5170 * c-pretty-print.c (pp_c_specifier_qualifier_list):
5171 Display allowed attributes for function pointer types.
5172 (pp_c_attributes_display): New function to display
5173 attributes having affects_type_identity flag set to true.
5174 * c-pretty-print.h (pp_c_attributes_display): New prototype.
5175
62d784f7
KT
5176 * c-common.c (c_common_attribute_table):
5177 Add new element.
5178 (c_common_format_attribute_table): Likewise.
5179
82d37118
JM
51802011-03-18 Jason Merrill <jason@redhat.com>
5181
49a000c3
JM
5182 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
5183 * c-common.h: Don't declare it here.
5184 * c-common.c: Or define it here.
5185 * c-opts.c (c_common_handle_option): Or set it here.
5186
82d37118
JM
5187 PR c++/35315
5188 * c-common.c (handle_transparent_union_attribute): Don't
5189 make a duplicate type in C++.
5190
17bc631c
JM
51912011-03-15 Jason Merrill <jason@redhat.com>
5192
5193 * c-common.c (max_constexpr_depth): New.
5194 * c-common.h: Declare it.
5195 * c-opts.c (c_common_handle_option): Set it.
5196 * c.opt (fconstexpr-depth): New option.
5197
1b9b91a6
JM
51982011-03-11 Jason Merrill <jason@redhat.com>
5199
f231b5ff
JM
5200 * c-common.c (attribute_takes_identifier_p): Add missing const.
5201
1b9b91a6
JM
5202 PR c++/46803
5203 * c-common.c (attribute_takes_identifier_p): Assume that an
5204 unknown attribute takes an identifier.
5205
a19e4d44
NF
52062011-03-07 Nathan Froyd <froydnj@codesourcery.com>
5207
5208 PR c/47786
5209 * c-common.c (c_type_hash): Call list_length instead of iterating
5210 through DECL_CHAIN. Rename 'i' to 'n_elements'.
5211
982d62f6
JJ
52122011-02-19 Jakub Jelinek <jakub@redhat.com>
5213
5214 PR c/47809
5215 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
5216
0a256240
NP
52172011-02-17 Iain Sandoe <iains@gcc.gnu.org>
5218
5219 * c.opt (fobjc-abi-version=) New.
5220 (fobjc-nilcheck): New.
5221
ba9e6dd5
NF
52222011-02-03 Nathan Froyd <froydnj@codesourcery.com>
5223
5224 PR c++/46890
5225 * c-common.h (keyword_is_decl_specifier): Declare.
5226 * c-common.c (keyword_is_decl_specifier): Define.
5227 (keyword_is_function_specifier): New function.
5228
7273813a
JJ
52292011-01-26 Jakub Jelinek <jakub@redhat.com>
5230
5231 PR c/47473
5232 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
5233 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
5234 REAL_TYPE.
5235
908ef79b
AC
52362011-01-26 Arnaud Charlet <charlet@adacore.com>
5237
5238 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
5239
237e9384
JJ
52402011-01-26 Jakub Jelinek <jakub@redhat.com>
5241
5242 PR pch/47430
5243 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
5244 after init_c_lex if pch_file is set.
5245
47ea1edf
DK
52462011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
5247
d4dba752 5248 PR c++/43601
47ea1edf
DK
5249 * c.opt (-fkeep-inline-dllexport): New switch.
5250
2aa9c6ae
RG
52512011-01-12 Richard Guenther <rguenther@suse.de>
5252
5253 PR middle-end/32511
5254 * c-common.c (handle_weak_attribute): Warn instead of error
5255 on declaring an inline function weak.
5256
7bd11157
TT
52572011-01-05 Tom Tromey <tromey@redhat.com>
5258
5259 * c-common.h (lvalue_error): Update.
5260 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
5261 not error.
5262
0e66e494 52632010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 5264
b4f588c4
NP
5265 PR objc/47075
5266 * c-objc.h (objc_finish_message_expr): Added argument to
5267 prototype.
5268
f4da8dce
NF
52692010-12-22 Nathan Froyd <froydnj@codesourcery.com>
5270
5271 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
5272 Use prototype_p.
5273
46270f14
NP
52742010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
5275
5276 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 5277 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 5278
4816c593
NF
52792010-12-10 Nathan Froyd <froydnj@codesourcery.com>
5280
5281 * c-common.h (readonly_error): Declare.
5282 * c-common.c (readonly_error): Define.
5283
7a6daeb0
NF
52842010-12-09 Nathan Froyd <froydnj@codesourcery.com>
5285
5286 * c-common.h (invalid_indirection_error): Declare.
5287 * c-common.c (invalid_indirection_error): Define.
5288
892f6119
RG
52892010-12-03 Richard Guenther <rguenther@suse.de>
5290
5291 PR c/46745
5292 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
5293 (pp_c_unary_expression): Likewise.
5294 (pp_c_expression): Likewise.
5295
6c39e757
NP
52962010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
5297
5298 * c-common.h (objc_finish_function): New.
5299 (objc_non_volatilized_type): Removed.
5300 (objc_type_quals_match): Removed.
5301 * stub-objc.c (objc_finish_function): New.
5302 (objc_non_volatilized_type): Removed.
5303 (objc_type_quals_match): Removed.
9faeb493 5304
7c475d11
JM
53052010-11-30 Joseph Myers <joseph@codesourcery.com>
5306
5307 * c-common.h (parse_optimize_options): Declare.
5308 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
5309 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
5310
71f3e391
JM
53112010-11-29 Joseph Myers <joseph@codesourcery.com>
5312
5313 * c-opts.c (check_deps_environment_vars): Use getenv instead of
5314 GET_ENVIRONMENT.
5315 * c-pch.c (O_BINARY): Don't define here.
5316 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
5317
d5fabb58
JM
53182010-11-25 Joseph Myers <joseph@codesourcery.com>
5319
5320 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
5321 targetm.except_unwind_info.
5322
299404a1
JM
53232010-11-23 Joseph Myers <joseph@codesourcery.com>
5324
5325 * c-opts.c (c_common_handle_option): Pass location to
5326 set_struct_debug_option.
5327
c98cd5bf
JM
53282010-11-23 Joseph Myers <joseph@codesourcery.com>
5329
5330 * c-common.c (visibility_options): Move from ../opts.c.
5331 * c-common.h (struct visibility_flags, visibility_options):
5332 Declare here.
5333 * c-opts.c (finish_options): Rename to c_finish_options.
5334 (c_common_init): Update call to finish_options.
5335
a9546771
NP
53362010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
5337
5338 PR objc/34033
5339 * c-lex.c (lex_string): Check that each string in an Objective-C
5340 string concat sequence starts with either one or zero '@', and
5341 that there are no spurious '@' signs at the end.
5342
24a57808
JM
53432010-11-20 Joseph Myers <joseph@codesourcery.com>
5344
5345 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
5346 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
5347 HANDLE_PRAGMA_VISIBILITY.
5348 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
5349 HANDLE_PRAGMA_VISIBILITY): Don't define.
5350 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
5351
a9aa2c3a
NF
53522010-11-20 Nathan Froyd <froydnj@codesourcery.com>
5353
5354 PR c++/16189
5355 PR c++/36888
5356 PR c++/45331
5357 * c-common.h (keyword_begins_type_specifier): Declare.
5358 (keyword_is_storage_class_specifier): Declare.
5359 (keyword_is_type_qualifier): Declare.
5360 * c-common.c (keyword_begins_type_specifier): New function.
5361 (keyword_is_storage_class_specifier): New function.
5362 (keyword_is_type_qualifier): Declare.
5363
5386338c
JM
53642010-11-19 Joseph Myers <joseph@codesourcery.com>
5365
5366 PR c/46547
5367 * c-common.c (in_late_binary_op): Define.
5368 (c_common_truthvalue_conversion): Check in_late_binary_op before
5369 calling c_save_expr.
5370 * c-common.h (in_late_binary_op): Declare.
5371
69ccdddb
JM
53722010-11-19 Joseph Myers <joseph@codesourcery.com>
5373
5374 * c-opts.c (c_common_handle_option): Update calls to
5375 set_struct_debug_option.
5376
6b192a09
NP
53772010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
5378
5379 * c-common.h (objc_declare_protocols): Added additional argument.
5380 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 5381
fb52b50a
NF
53822010-11-18 Nathan Froyd <froydnj@codesourcery.com>
5383
5384 PR c/33193
5385 * c-common.h (build_real_imag_expr): Declare.
5386 * c-semantics.c (build_real_imag_expr): Define.
5387
b37421c6
JM
53882010-11-17 Joseph Myers <joseph@codesourcery.com>
5389
5390 * c-opts.c (c_common_parse_file): Take no arguments.
5391 * c-common.h (c_common_parse_file): Update prototype.
5392
07078664
JJ
53932010-11-16 Jakub Jelinek <jakub@redhat.com>
5394
5395 PR c++/46401
5396 * c-common.c (warning_candidate_p): Don't track non-const calls
5397 or STRING_CSTs.
5398
c6a13190
ILT
53992010-11-15 Ian Lance Taylor <iant@google.com>
5400
5401 * c-lex.c (init_c_lex): Set macro debug callbacks if
5402 flag_dump_go_spec is set.
5403
925e8657
NP
54042010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
5405
5406 * c-common.h (objc_build_incr_expr_for_property_ref): New.
5407 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
5408
bb0a9581
NF
54092010-11-15 Nathan Froyd <froydnj@codesourcery.com>
5410
5411 PR preprocessor/45038
5412 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
5413 dialects.
5414
c5fa0890
JM
54152010-11-12 Joseph Myers <joseph@codesourcery.com>
5416
5417 * c-common.h (c_family_lang_mask): Declare.
5418 * c-opts.c (c_family_lang_mask): Make extern.
5419 * c-pragma.c (handle_pragma_diagnostic): Use
5420 control_warning_option.
5421
a4d8c676
JM
54222010-11-12 Joseph Myers <joseph@codesourcery.com>
5423
5424 * c-common.c (parse_optimize_options): Update call to
5425 decode_options.
5426 * c-common.h (c_common_handle_option): Update prototype.
5427 * c-opts.c (c_common_handle_option): Take location_t parameter and
5428 pass it to other functions.
5429
f954bd2c
JM
54302010-11-11 Joseph Myers <joseph@codesourcery.com>
5431
5432 * c-opts.c (warning_as_error_callback): Remove.
5433 (c_common_initialize_diagnostics): Don't call
5434 register_warning_as_error_callback.
5435 (c_common_handle_option): Handle -Werror=normalized= here.
5436
d8a07487
JM
54372010-11-10 Joseph Myers <joseph@codesourcery.com>
5438
5439 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
5440 in diagnostic.
5441 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
5442 letter.
5443 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
5444 Remove trailing '.' from diagnostics.
5445 * c.opt (Wwrite-strings_: Avoid '`' in help text.
5446
d5478783
JM
54472010-11-10 Joseph Myers <joseph@codesourcery.com>
5448
5449 * c-common.c (parse_optimize_options): Pass global_dc to
5450 decode_options.
5451 * c-opts.c (c_common_handle_option): Pass &global_options to
5452 set_Wstrict_aliasing.
5453 * c.opt (v): Don't mark Common or document here.
5454
91ebb981
IS
54552010-11-06 Iain Sandoe <iains@gcc.gnu.org>
5456
5457 PR target/44981
5458 * c-format.c (format_type): New type gcc_objc_string_format_type.
5459 (valid_stringptr_type_p): New.
5460 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 5461 (check_format_string): Pass expected type, use
91ebb981
IS
5462 valid_stringptr_type_p (), check that the format string types are
5463 consistent with the format specification.
5464 (decode_format_attr): Warn if NSString is used outside objective-c.
5465 (format_types_orig): Add NSString.
5466 (format_name): New.
5467 (format_flags): New.
5468 (check_format_arg): Handle format strings requiring an external parser.
5469 first_target_format_type: New variable.
5470 (handle_format_attribute): Set up first_target_format_type, pass the
5471 expected format arg string type to check_format_string().
5472 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
5473 * stub-objc.c (objc_string_ref_type_p): New.
5474 (objc_check_format_arg): New.
5475
bede2adc
NP
54762010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
5477
9faeb493 5478 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
5479 * c-common.h (objc_build_class_component_ref): New.
5480 * stub-objc.c (objc_build_class_component_ref): New.
5481
9a179d01
NP
54822010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
5483
5484 * c.opt (Wproperty-assign-default): New option.
5485
22d8d616
NP
54862010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
5487
5488 Implemented -fobjc-std=objc1 flag.
5489 * c.opt (fobjc-std=objc1): New option.
5490
2debdb4f
NP
54912010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
5492
5493 Implemented format and noreturn attributes for Objective-C methods.
5494 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
5495 attribute for Objective-C methods.
5496
ec52b111
JM
54972010-10-31 Jason Merrill <jason@redhat.com>
5498
5499 * c-common.c (conversion_warning, warn_for_collisions_1): Use
5500 EXPR_LOC_OR_HERE.
5501
46a88c12
NP
55022010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
5503
5504 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
5505 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
5506 (objc_add_property_declaration): Removed arguments for copies and
5507 ivar.
5508 (objc_build_getter_call): Renamed to
5509 objc_maybe_build_component_ref.
5510 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
5511 (objc_is_property_ref): New.
5512 * c-common.c (c_common_reswords): Removed copies and ivar.
5513 * stub-objc.c (objc_add_property_declaration): Removed arguments
5514 for copies and ivar.
5515 (objc_build_getter_call): Renamed to
5516 objc_maybe_build_component_ref.
5517 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
5518 (objc_is_property_ref): New.
9faeb493 5519
1e4bf85b
AC
55202010-10-29 Arnaud Charlet <charlet@adacore.com>
5521 Matthew Gingell <gingell@adacore.com>
5522
5523 * c-ada-spec.c (separate_class_package): New function.
5524 (pp_ada_tree_identifier): Prefix references to C++ classes with the
5525 name of their enclosing package.
5526 (print_ada_declaration): Use separate_class_package.
5527
81f0bab2
JM
55282010-10-27 Jason Merrill <jason@redhat.com>
5529
2b08f2c5
JM
5530 * c-common.c (c_common_reswords): Add __is_literal_type.
5531 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
5532
81f0bab2
JM
5533 * c-common.c (check_case_value): Remove special C++ code.
5534
200290f2
NP
55352010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
5536
5537 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
5538 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
5539 and RID_LAST_PATTR.
5540 (objc_add_property_declaration): Added additional arguments.
5541 (objc_property_attribute_kind): Removed.
5542 (objc_set_property_attr): Removed.
5543 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
5544 copy and nonatomic.
5545 * stub-objc.c (objc_add_property_declaration): Added additional
5546 arguments.
5547 (objc_set_property_attr): Removed.
9faeb493 5548
f614132b
NP
55492010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
5550
5551 * c-common.h (objc_add_property_variable): Renamed to
5552 objc_add_property_declaration. Added location argument.
5553 * stub-objc.c (objc_add_property_variable): Same change.
b1726d6c 5554
b8a18805
NP
55552010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
5556
5557 * c-common.h (objc_maybe_printable_name): New.
5558 * stub-objc.c (objc_maybe_printable_name): New.
5559
30cd1c5d
AS
55602010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
5561 Andrew Pinski <pinskia@gmail.com>
5562
5563 * c-common.h (c_common_mark_addressable_vec): Declare.
5564 * c-common.c (c_common_mark_addressable_vec): New function.
5565
249a82c4
NP
55662010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
5567
5568 * c-common.h (objc_set_method_type): Removed.
5569 (objc_add_method_declaration): Added boolean argument.
5570 (objc_start_method_definition): Same change.
5571 (objc_build_method_signature): Same change.
5572 * stub-objc.c (objc_set_method_type): Removed.
5573 (objc_add_method_declaration): Added boolean argument.
5574 (objc_start_method_definition): Same change.
5575 (objc_build_method_signature): Same change.
5576
977e30bc
NP
55772010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
5578
5579 * c-common.h (finish_file): Removed.
5580 (objc_write_global_declarations): New.
5581 * c-opts.c (c_common_parse_file): Do not call finish_file.
5582 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 5583
da57d1b9
NP
55842010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
5585
5586 Implemented parsing @synthesize and @dynamic for
5587 Objective-C/Objective-C++.
5588 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
5589 (objc_add_synthesize_declaration): New.
5590 (objc_add_dynamic_declaration): New.
5591 * c-common.c (c_common_reswords): Add synthesize and dynamic.
5592 * stub-objc.c (objc_add_synthesize_declaration): New.
5593 (objc_add_dynamic_declaration): New.
9faeb493 5594
0069111f
MM
55952010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
5596
5597 PR target/46041
5598 * c-cppbuiltin.c (mode_has_fma): Move function here from
5599 builtins.c. Don't use the fma optab, instead just use the
5600 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
5601 using -save-temps.
5602
e426b47b
NP
56032010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
5604
5605 Merge from 'apple/trunk' branch on FSF servers.
0069111f 5606
e426b47b
NP
5607 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
5608
9faeb493 5609 Radar 4330422
e426b47b
NP
5610 * c-common.h (objc_non_volatilized_type): New declaration
5611 * stub-objc.c (objc_non_volatilized_type): New stub.
5612
90fbfdc3
NP
56132010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
5614
e426b47b 5615 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
5616
5617 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
5618
9faeb493 5619 Radar 4133425
90fbfdc3 5620 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 5621 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 5622
c37d8c30
IS
56232010-10-17 Iain Sandoe <iains@gcc.gnu.org>
5624
5625 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
5626 * c-common.h (enum rid): Add RID_AT_PACKAGE.
5627 (objc_ivar_visibility_kind): New enum.
5628 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 5629 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
5630 visibility enum.
5631
1b1562a5
MM
56322010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5633
5634 * c-cppbuiltin.c (builtin_define_float_constants): Emit
5635 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
5636 has the appropriate fma builtins.
5637 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
5638
668ea4b1
IS
56392010-10-14 Iain Sandoe <iains@gcc.gnu.org>
5640
1b1562a5 5641 merge from FSF apple 'trunk' branch.
668ea4b1 5642 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 5643
668ea4b1
IS
5644 Radars 4436866, 4505126, 4506903, 4517826
5645 * c-common.c (c_common_resword): Define @property and its attributes.
5646 * c-common.h: Define property attribute enum entries.
5647 (OBJC_IS_PATTR_KEYWORD): New.
5648 (objc_property_attribute_kind): New enum.
5649 Declare objc_set_property_attr (), objc_add_property_variable (),
5650 objc_build_getter_call () and objc_build_setter_call ().
5651 * stub-objc.c (objc_set_property_attr): New stub.
5652 (objc_add_property_variable): Likewise.
5653 (objc_build_getter_call): Likewise.
5654 (objc_build_setter_call) Likewise.
1b1562a5 5655
a1178b30
IS
56562010-10-13 Iain Sandoe <iains@gcc.gnu.org>
5657
1b1562a5 5658 merge from FSF apple 'trunk' branch.
a1178b30
IS
5659 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
5660
5661 Radar 3803157 (method attributes)
5662 * c-common.c (handle_deprecated_attribute): Recognize
5663 objc methods as valid declarations.
5664 * c-common.h: Declare objc_method_decl ().
1b1562a5 5665 * stub-objc.c (objc_method_decl): New stub.
a1178b30 5666
a75bfaa6
JM
56672010-10-08 Joseph Myers <joseph@codesourcery.com>
5668
5669 * c-common.c (parse_optimize_options): Call
5670 decode_cmdline_options_to_array_default_mask before
5671 decode_options. Update arguments to decode_options.
5672 * c-common.h (c_common_init_options_struct): Declare.
5673 * c-opts.c (c_common_init_options_struct): New. Split out from
5674 c_common_init_options.
5675
f05b9d93
NP
56762010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
5677
5678 Implemented fast enumeration for Objective-C.
5679 * c-common.h (objc_finish_foreach_loop): New.
5680 * stub-objc.c (objc_finish_foreach_loop): New.
5681
1ebe4b4f
JM
56822010-10-05 Joseph Myers <joseph@codesourcery.com>
5683
5684 * c-common.h (struct diagnostic_context): Don't declare here.
5685 (c_common_initialize_diagnostics): Declare using
5686 diagnostic_context typedef.
5687 * c-opts.c (c_common_handle_option): Pass global_dc to
5688 handle_generated_option.
5689
d4d24ba4
JM
56902010-10-04 Joseph Myers <joseph@codesourcery.com>
5691
5692 * c-opts.c (c_common_handle_option): Pass &global_options_set to
5693 handle_generated_option.
5694
478a1c5b
ILT
56952010-10-03 Ian Lance Taylor <iant@google.com>
5696
5697 * c.opt (-fplan9-extensions): New option.
5698
82a1c2fe
FXC
56992010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5700
5701 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
5702 Remove.
5703 (c_cpp_builtins): Call functions from cppbuiltin.c instead
5704 of duplicating code.
5705
92902b1b
IS
57062010-09-30 Iain Sandoe <iains@gcc.gnu.org>
5707
5708 * c-common.c: Add two new entries for @optional
5709 and @required keywords.
5710
5711 merge from FSF 'apple/trunk' branch.
5712 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
5713
5714 Radar 4386773
5715 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
5716 objective-c keywords.
5717 (objc_set_method_opt): New declaration.
5718 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 5719
46625112
JM
57202010-09-30 Joseph Myers <joseph@codesourcery.com>
5721
5722 * c-common.c (handle_optimize_attribute): Pass &global_options to
5723 cl_optimization_save and cl_optimization_restore.
5724 * c-opts.c (c_common_handle_option): Pass &global_options to
5725 handle_generated_option.
5726 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
5727 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
5728 &global_options to cl_optimization_restore.
5729
49b91f05
NP
57302010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
5731
5732 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
5733 Objective-C/Objective-C++ keywords.
5734
13ed556f 57352010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 5736
9faeb493
UB
5737 Merge from 'apple/trunk' branch on FSF servers.
5738
a6341d57
NP
5739 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
5740
5741 Radar 4281748
5742 * c-common.h (objc_check_global_decl): New declaration.
5743 * stub-objc.c (objc_check_global_decl): New stub.
5744
f0036cca
JM
57452010-09-29 Joseph Myers <joseph@codesourcery.com>
5746
5747 * c.opt: Don't use VarExists.
5748
e3339d0f
JM
57492010-09-29 Joseph Myers <joseph@codesourcery.com>
5750
5751 * c-common.c (c_cpp_error): Update names of diagnostic_context
5752 members.
5753 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
5754 cl_optimization members.
5755 * c-opts.c (warning_as_error_callback, c_common_handle_option,
5756 sanitize_cpp_opts, finish_options): Update names of cpp_options
5757 members.
5758
1973201f
NP
57592010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
5760
5761 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
5762 (objc_is_reserved_word): Removed.
5763 * c-common.c: Updated comments.
5764 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
5765 objc_is_reserved_word.
5766 * stub-objc.c (objc_is_reserved_word): Removed.
5767
f7e71da5
IS
57682010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5769
9faeb493 5770 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
5771 include attributes.
5772 (objc_start_method_definition): Likewise.
5773 (objc_build_keyword_decl): Likewise.
5774 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
5775 (objc_start_method_definition): Likewise.
5776 (objc_build_keyword_decl): Likewise.
5777
c165dca7
IS
57782010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5779
5780 * c-common.h (objc_start_class_interface): Adjust prototype.
5781 (objc_start_category_interface): Likewise.
5782 (objc_start_protocol): Likewise.
5783 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
5784 (objc_start_class_interface): Likewise.
5785 (objc_start_category_interface): Likewise.
5786
7458026b
ILT
57872010-09-27 Ian Lance Taylor <iant@google.com>
5788
5789 * c-common.c (c_common_attribute_table): Add no_split_stack.
5790 (handle_no_split_stack_attribute): New static function.
5791
b581b85b
NP
57922010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
5793
9faeb493 5794 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
5795
5796 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
5797
9faeb493 5798 Radar 4229905
b581b85b
NP
5799 * c-common.h (objc_have_common_type): New declaration.
5800 * stub-objc.c (objc_have_common_type): New stub.
5801
5802 2005-06-22 Ziemowit Laski <zlaski@apple.com>
5803
5804 Radar 4154928
5805 * c-common.h (objc_common_type): New prototype.
9faeb493 5806 * stub-objc.c (objc_common_type): New stub.
b581b85b 5807
46a4da10
JH
58082010-09-24 Jan Hubicka <jh@suse.cz>
5809
5810 * c-common.c (handle_leaf_attribute): New function.
5811 (struct attribute_spec c_common_att): Add leaf.
5812
e200444e
JM
58132010-09-22 Joseph Myers <joseph@codesourcery.com>
5814
5815 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
5816 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
5817 -dump, -dump=, -imacros, -imacros=, -include, -include=,
5818 -include-barrier, -include-directory, -include-directory=,
5819 -include-directory-after, -include-directory-after=,
5820 -include-prefix, -include-prefix=, -include-with-prefix,
5821 -include-with-prefix=, -include-with-prefix-after,
5822 -include-with-prefix-after=, -include-with-prefix-before,
5823 -include-with-prefix-before=, -no-integrated-cpp,
5824 -no-line-commands, -no-standard-includes, -no-warnings, -output,
5825 -output=, -pedantic, -pedantic-errors, -preprocess,
5826 -print-missing-file-dependencies, -trace-includes, -traditional,
5827 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
5828 -user-dependencies, -verbose, -write-dependencies,
5829 -write-user-dependencies, no-integrated-cpp, traditional): New.
5830
29a80ea6
NP
58312010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5832
5833 PR objc/23710
ac1fc2fc
NP
5834 * c-common.h (objc_start_method_definition): Return bool instead
5835 of void.
5836 * stub-objc.c (objc_start_method_definition): Return bool instead
5837 of void.
5838
58392010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5840
5841 PR objc/25965
5842 * c-common.h (objc_get_interface_ivars): New declaration.
5843 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 5844
de621752
ILT
58452010-09-15 Ian Lance Taylor <iant@google.com>
5846
5847 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 5848 messages. Remove period at end of warning message.
de621752 5849
ba885ec5
NS
58502010-09-09 Nathan Sidwell <nathan@codesourcery.com>
5851
5852 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
5853 (handle_alias_attribute): ... here.
5854 (handle_ifunc_attribute): New.
5855
c5ee1358
MM
58562010-09-06 Mark Mitchell <mark@codesourcery.com>
5857
5858 * c-common.h (do_warn_double_promotion): Declare.
5859 * c-common.c (do_warn_double_promotion): Define.
5860
0a0b3574
MM
58612010-09-05 Mark Mitchell <mark@codesourcery.com>
5862
5863 * c.opt (Wdouble-promotion): New.
5864
d1779886
JM
58652010-09-02 Joseph Myers <joseph@codesourcery.com>
5866
5867 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
5868 fvtable-thunks, fxref): Mark no longer supported in help text.
5869
2d2bd949
JM
58702010-09-02 Joseph Myers <joseph@codesourcery.com>
5871
5872 * c.opt (Wimport, fall-virtual, falt-external-templates,
5873 fdefault-inline, fenum-int-equiv, fexternal-templates,
5874 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
5875 fname-mangling-version-, fnew-abi, fnonnull-objects,
5876 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
5877 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
5878 applicable.
5879 (fhandle-exceptions): Mark with Alias and Warn.
5880 * c-opts.c (c_common_handle_option): Don't handle options marked
5881 as ignored.
5882
5de8299c
JM
58832010-09-02 Joseph Myers <joseph@codesourcery.com>
5884
5885 * c.opt (Wcomments, Werror-implicit-function-declaration,
5886 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
5887 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
5888 aliases.
5889 * c-common.c (option_codes): Use OPT_Wcomment instead of
5890 OPT_Wcomments.
5891 * c-opts.c (warning_as_error_callback, c_common_handle_option):
5892 Don't handle options marked as aliases.
5893
0ceb0201
RG
58942010-08-25 Richard Guenther <rguenther@suse.de>
5895
5896 * c-common.c (c_common_get_alias_set): Remove special
5897 handling for pointers.
5898
ac47786e
NF
58992010-08-20 Nathan Froyd <froydnj@codesourcery.com>
5900
5901 * c-common.c: Use FOR_EACH_VEC_ELT.
5902 * c-gimplify.c: Likewise.
5903 * c-pragma.c: Likewise.
5904
c878765b
JM
59052010-08-16 Joseph Myers <joseph@codesourcery.com>
5906
5907 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
5908 RejectDriver.
5909 (MMDX): Change back to MMD. Mark NoDriverArg instead of
5910 RejectDriver.
5911 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
5912 instead of OPT_MDX and OPT_MMDX.
5913
603349bf
JM
59142010-08-16 Joseph Myers <joseph@codesourcery.com>
5915
5916 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
5917
644fa7ac
JM
59182010-08-12 Joseph Myers <joseph@codesourcery.com>
5919
5920 * c.opt (MD, MMD): Change to MDX and MMDX.
5921 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
5922
481e1176
JM
59232010-08-11 Joseph Myers <joseph@codesourcery.com>
5924
5925 * c-opts.c (c_common_handle_option): Call handle_generated_option
5926 instead of handle_option.
5927
ac8dc9f7
NF
59282010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5929
5930 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
5931 (maybe_apply_renaming_pragma): Delete unneeded declarations.
5932
4f8c876d
NF
59332010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5934
5935 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
5936 (pending_redefine_extname): Change type to a VEC.
5937 (add_to_renaming_pragma_list): Update for new type of
5938 pending_redefine_extname.
ac8dc9f7 5939 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 5940
3b0c690e
AC
59412010-08-04 Arnaud Charlet <charlet@adacore.com>
5942
5943 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
5944 visited.
5945 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
5946 decide whether a type has already been declared/seen.
5947 Do not go to the original type.
5948 (dump_nested_types): New parameter forward.
5949 Generate forward declaration if needed and mark type as visited.
5950 (print_ada_declaration): Call dump_nested_types if not already done.
5951 Mark types as visited.
5952
1890bccc
JM
59532010-08-03 Joseph Myers <joseph@codesourcery.com>
5954
5955 * c.opt (-print-pch-checksum): Remove option.
5956 * c-opts.c (c_common_handle_option): Don't handle
5957 OPT_print_pch_checksum.
5958
5f20c657
JM
59592010-07-27 Joseph Myers <joseph@codesourcery.com>
5960
5961 * c-common.h (c_common_handle_option): Update prototype and return
5962 value type.
5963 * c-opts.c (c_common_handle_option): Update prototype and return
5964 value type. Update calls to handle_option and
5965 enable_warning_as_error.
5966
f551f80c
JJ
59672010-07-27 Jakub Jelinek <jakub@redhat.com>
5968
5969 PR c/45079
5970 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
5971
61ff2bdc
JM
59722010-07-27 Joseph Myers <joseph@codesourcery.com>
5973
5974 * c-common.h (c_common_missing_argument): Remove.
5975 * c-opts.c (c_common_missing_argument): Remove.
5976 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
5977 idirafter, imacros, include, isysroot, isystem, iquote): Add
5978 MissingArgError.
5979 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
5980
7a9bf9a4
JM
59812010-07-27 Joseph Myers <joseph@codesourcery.com>
5982
5983 * c-common.h (c_common_option_lang_mask,
5984 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
5985 New.
5986 (c_common_init_options): Update prototype.
5987 * c-opts.c (c_common_option_lang_mask): New.
5988 (c_common_initialize_diagnostics): Split out of
5989 c_common_init_options.
5990 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
5991 New.
5992 (c_common_init_options): Update prototype. Use decoded options in
5993 search for -lang-asm.
5994
910ad8de
NF
59952010-07-15 Nathan Froyd <froydnj@codesourcery.com>
5996
5997 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
5998 * c-format.c: Likewise.
5999
718f9c0f
MLI
60002010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
6001
6002 * c-common.h: Include diagnostic-core.h. Error if already
6003 included.
6004 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
6005
4d451982
MLI
60062010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
6007
adfac8df 6008 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
6009 Do not include expr.h
6010 (vector_mode_valid_p): Move here.
6011
119fe915
SB
60122010-06-21 DJ Delorie <dj@redhat.com>
6013
6014 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
6015 allow these pragmas anywhere.
6016
60172010-06-14 Jakub Jelinek <jakub@redhat.com>
6018
6019 PR bootstrap/44509
6020 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
6021 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
6022 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
6023 ggc_strdup instead of xstrdup.
6024
60252010-06-10 Jakub Jelinek <jakub@redhat.com>
6026
6027 * c-cppbuiltin.c: Include cpp-id-data.h.
6028 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
6029 (lazy_hex_fp_value): New function.
6030 (builtin_define_with_hex_fp_value): Provide definitions lazily.
6031
6662d794
MLI
60322010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
6033
6034 * c-gimplify.c: Do not include tree-flow.h
6035
38f8b050
JR
60362010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
6037
6038 PR other/44034
6039 * c-common.c: Rename targetm member:
6040 targetm.enum_va_list -> targetm.enum_va_list_p
6041
9589f23e
AS
60422010-06-28 Anatoly Sokolov <aesok@post.ru>
6043
6044 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
6045
3b06d379
SB
60462010-06-28 Steven Bosscher <steven@gcc.gnu.org>
6047
6048 * c-cppbuiltin.c: Do not include except.h.
6049
d166d4c3
AK
60502010-06-24 Andi Kleen <ak@linux.intel.com>
6051
9faeb493
UB
6052 * c-common.c (warn_for_omitted_condop): New.
6053 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 6054
70cb8be6
JM
60552010-06-21 Joseph Myers <joseph@codesourcery.com>
6056
6057 * c.opt (lang-objc): Remove.
6058 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
6059
a4c97feb
JR
60602010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
6061
6062 * c-opts.c: Include "tm_p.h".
6063
6e2f1956
JM
60642010-06-20 Joseph Myers <joseph@codesourcery.com>
6065
6066 * c-common.c (parse_optimize_options): Update call to
6067 decode_options.
6068
bc87224e
NF
60692010-06-18 Nathan Froyd <froydnj@codesourcery.com>
6070
6071 * c-common.c (record_types_used_by_current_var_decl): Adjust for
6072 new type of types_used_by_cur_var_decl.
6073
b49cf425
JR
60742010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
6075
6076 PR bootstrap/44512
6077 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
6078 for C++ standard compliance.
6079
59f9c2ed
JM
60802010-06-16 Jason Merrill <jason@redhat.com>
6081
6082 * c.opt: Add -Wnoexcept.
6083
33766b66
RG
60842010-06-16 Richard Guenther <rguenther@suse.de>
6085
6086 PR c/44555
6087 * c-common.c (c_common_truthvalue_conversion): Remove
6088 premature and wrong optimization concering ADDR_EXPRs.
6089
eff7e30c
AC
60902010-06-15 Arnaud Charlet <charlet@adacore.com>
6091
6092 * c-ada-spec.c (dump_sloc): Remove column info.
6093 (is_simple_enum): New function.
6094 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
6095 enum types when relevant.
6096
6312e84d
MLI
60972010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
6098
9faeb493 6099 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
6100 location.
6101
1cb42611
JM
61022010-06-10 Joseph Myers <joseph@codesourcery.com>
6103
6104 * c-opts.c (c_common_handle_option): Don't handle
6105 OPT_fshow_column.
6106
a9429e29
LB
61072010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
6108
6109 * c-pragma.c (push_alignment): Use typed GC allocation.
6110 (handle_pragma_push_options): Likewise.
6111
6112 * c-common.c (parse_optimize_options): Likewise.
6113
6114 * c-common.h (struct sorted_fields_type): Add variable_size GTY
6115 option.
6116
5498f011
JM
61172010-06-07 Joseph Myers <joseph@codesourcery.com>
6118
6119 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
6120 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
6121 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
6122 flag_signed_bitfields, warn_strict_null_sentinel,
6123 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
6124 flag_gen_declaration, flag_no_gnu_keywords,
6125 flag_implement_inlines, flag_implicit_templates,
6126 flag_implicit_inline_templates, flag_optional_diags,
6127 flag_elide_constructors, flag_default_inline, flag_rtti,
6128 flag_conserve_space, flag_access_control, flag_check_new,
6129 flag_new_for_scope, flag_weak, flag_working_directory,
6130 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
6131 flag_enforce_eh_specs, flag_threadsafe_statics,
6132 flag_pretty_templates): Remove.
6133 * c-common.h (flag_preprocess_only, flag_nil_receivers,
6134 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
6135 flag_replace_objc_classes, flag_undef, flag_no_builtin,
6136 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
6137 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
6138 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
6139 flag_no_gnu_keywords, flag_implement_inlines,
6140 flag_implicit_templates, flag_implicit_inline_templates,
6141 flag_optional_diags, flag_elide_constructors, flag_default_inline,
6142 flag_rtti, flag_conserve_space, flag_access_control,
6143 flag_check_new, flag_new_for_scope, flag_weak,
6144 flag_working_directory, flag_use_cxa_atexit,
6145 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
6146 flag_threadsafe_statics, flag_pretty_templates,
6147 warn_strict_null_sentinel): Remove.
6148 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
6149 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
6150 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
6151 fimplicit-inline-templates, fimplicit-templates,
6152 flax-vector-conversions, fms-extensions, fnil-receivers,
6153 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
6154 frtti, fshort-double, fshort-enums, fshort-wchar,
6155 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
6156 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
6157 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
6158 gen-decls, undef): Use Var.
6159 (fdefault-inline, foptional-diags): Document as doing nothing.
6160 * c-opts.c (c_common_handle_option): Remove cases for options now
6161 using Var. Mark ignored options as such.
6162
39dabefd
SB
61632010-06-05 Steven Bosscher <steven@gcc.gnu.org>
6164
9faeb493 6165 * c-common.c: Moved to here from parent directory.
39dabefd
SB
6166 * c-common.def: Likewise.
6167 * c-common.h: Likewise.
6168 * c-cppbuiltin.c: Likewise.
6169 * c-dump.c: Likewise.
6170 * c-format.c: Likewise.
6171 * c-format.h : Likewise.
6172 * c-gimplify.c: Likewise.
6173 * c-lex.c: Likewise.
6174 * c-omp.c: Likewise.
6175 * c.opt: Likewise.
6176 * c-opts.c: Likewise.
6177 * c-pch.c: Likewise.
6178 * c-ppoutput.c: Likewise.
6179 * c-pragma.c: Likewise.
6180 * c-pragma.h: Likewise.
6181 * c-pretty-print.c: Likewise.
6182 * c-pretty-print.h: Likewise.
6183 * c-semantics.c: Likewise.
6184 * stub-objc.c: Likewise.
6185
6186 * c-common.c: Include gt-c-family-c-common.h.
6187 * c-pragma.c: Include gt-c-family-c-pragma.h.
6188\f
818ab71a 6189Copyright (C) 2010-2016 Free Software Foundation, Inc.
39dabefd
SB
6190
6191Copying and distribution of this file, with or without modification,
6192are permitted in any medium without royalty provided the copyright
6193notice and this notice are preserved.
This page took 2.185372 seconds and 5 git commands to generate.