]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
sse-13.c: Add dg-add-options bind_pic_locally directive.
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
5c3a10fb
MP
12016-05-11 Marek Polacek <polacek@redhat.com>
2
3 PR c++/71024
4 * c-common.c (diagnose_mismatched_attributes): New function.
5 * c-common.h (diagnose_mismatched_attributes): Declare.
6
deef7113
MP
72016-05-04 Marek Polacek <polacek@redhat.com>
8
9 * c.opt (Wdangling-else): New option.
10
79ce98bc
MP
112016-05-03 Marek Polacek <polacek@redhat.com>
12
13 PR c/70859
14 * c-common.c (builtin_function_validate_nargs): Add location
15 parameter. Use it.
16 (check_builtin_function_arguments): Add location and arguments
17 parameters. Use them.
18 * c-common.h (check_builtin_function_arguments): Update declaration.
19
381cdae4
RB
202016-05-03 Richard Biener <rguenther@suse.de>
21
22 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
23 allow call args to gimplify to SSA names.
24
1d793c34
MP
252016-05-03 Marek Polacek <polacek@redhat.com>
26
27 * c-common.h (enum c_omp_region_type): Remove stray comma.
28
77886428
CP
292016-05-02 Cesar Philippidis <cesar@codesourcery.com>
30
31 * c-common.h (enum c_omp_region_type): Define.
32
697e0b28
RS
332016-05-02 Richard Sandiford <richard.sandiford@arm.com>
34
35 * c-common.c (shorten_compare): Use wi::to_wide.
36
e7ff0319
CP
372016-04-29 Cesar Philippidis <cesar@codesourcery.com>
38
39 PR middle-end/70626
40 * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
41 * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
42 reduction clauses in acc parallel loops.
43
2fff3db8
MP
442016-04-29 Marek Polacek <polacek@redhat.com>
45
46 PR c/70852
47 * c-common.c (warn_for_memset): Check domain before accessing it.
48
509063eb
DV
492016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
50
51 PR/69089
52 * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
53 "aligned" attribute.
54
b632761d
JM
552016-04-28 Jason Merrill <jason@redhat.com>
56
57 * c-lex.c (c_common_has_attribute): Handle nodiscard.
58
174f6622
ES
592016-04-28 Eduard Sanou <dhole@openmailbox.org>
60 Matthias Klose <doko@debian.org>
61
62 * c-common.c (get_source_date_epoch): New function, gets the environment
63 variable SOURCE_DATE_EPOCH and parses it as long long with error
64 handling.
65 * c-common.h (get_source_date_epoch): Prototype.
66 * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
67
6bc2bb18
RB
682015-04-27 Ryan Burn <contact@rnburn.com>
69
70 PR c++/69024
71 PR c++/68997
72 * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
73 (cilk_recognize_spawn): Renamed from recognize_spawn and change to
74 external linkage.
75 (cilk_detect_and_unwrap): Corresponding changes.
76 (extract_free_variables): Don't extract free variables from
77 AGGR_INIT_EXPR slot.
78 * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
79 (cilk_recognize_spawn): Likewise.
80
c1e1f433
BS
812016-04-27 Bernd Schmidt <bschmidt@redhat.com>
82
83 * c.opt (Wmemset-elt-size): New option.
84 * c-common.c (warn_for_memset): New function.
85 * c-common.h (warn_for_memset): Declare.
86
d067e05f
JM
872016-04-25 Jason Merrill <jason@redhat.com>
88
89 * c-common.c (handle_unused_attribute): Accept CONST_DECL.
90 No longer static.
91 * c-common.h: Declare it.
92 * c-lex.c (c_common_has_attribute): Add maybe_unused.
93
9aa36ae5
JM
942016-04-22 Jason Merrill <jason@redhat.com>
95
96 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
97
477d4906
IV
982016-04-20 Ilya Verbin <ilya.verbin@intel.com>
99
100 PR c++/69363
101 * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
102 * c-common.h (c_finish_cilk_clauses): Remove declaration.
103
fe37c7af
MM
1042016-04-18 Michael Matz <matz@suse.de>
105
106 * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
107 and SET_DECL_ALIGN.
108
23f2660f
EB
1092016-04-17 Eric Botcazou <ebotcazou@adacore.com>
110
111 * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
112 (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
113 to incomplete types.
114 (dump_nested_type): Remove redundant tests and tidy up.
115 (print_ada_declaration): Also set TREE_VISITED on the declaration of
116 a type which is the typedef of an original type.
117
1e77281b
MP
1182016-04-15 Marek Polacek <polacek@redhat.com>
119
120 PR c/70651
121 * c-common.c (build_va_arg): Change two asserts into errors and return
122 error_mark_node.
123
b3a77f21
MP
1242016-04-13 Marek Polacek <polacek@redhat.com>
125
126 PR c++/70639
127 * c-indentation.c (should_warn_for_misleading_indentation): Bail out
128 for switch statements, too.
129
322b8466
JM
1302016-03-28 Jason Merrill <jason@redhat.com>
131
132 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
133
fbdb6baf
MP
1342016-03-23 Marek Polacek <polacek@redhat.com>
135
136 PR c++/69884
137 * c.opt (Wignored-attributes): New option.
138
5c240f4d
DM
1392016-03-22 David Malcolm <dmalcolm@redhat.com>
140
141 PR c/69993
142 * c-indentation.c (warn_for_misleading_indentation): Rewrite the
143 diagnostic text, reversing the order of the warning and note so
144 that they appear in source order.
145
14ba7b28
MP
1462016-03-17 Marek Polacek <polacek@redhat.com>
147
148 PR c/69407
149 * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
150 operations.
151
08a1cadc
JM
1522016-03-14 Jason Merrill <jason@redhat.com>
153
2aaeea19
JM
154 * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
155
08a1cadc
JM
156 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
157
c06d25bb
RB
1582016-03-09 Richard Biener <rguenther@suse.de>
159
160 PR c/70143
161 * c-common.c (strict_aliasing_warning): Add back
162 alias_sets_conflict_p check.
163
80aac5c8
JM
1642016-03-08 Jason Merrill <jason@redhat.com>
165
166 * c-opts.c (set_std_cxx1z): Don't enable concepts.
167
64b23c13
DM
1682016-03-04 David Malcolm <dmalcolm@redhat.com>
169
170 PR c/68187
171 * c-indentation.c (get_visual_column): Move code to determine next
172 tab stop to...
173 (next_tab_stop): ...this new function.
174 (line_contains_hash_if): Delete function.
175 (detect_preprocessor_logic): Delete function.
176 (get_first_nws_vis_column): New function.
177 (detect_intervening_unindent): New function.
178 (should_warn_for_misleading_indentation): Replace call to
179 detect_preprocessor_logic with a call to
180 detect_intervening_unindent.
181
729526f5
DM
1822016-03-04 David Malcolm <dmalcolm@redhat.com>
183
184 PR c/68187
185 * c-indentation.c (should_warn_for_misleading_indentation): When
186 suppressing warnings about cases where the guard and body are on
187 the same column, only use the first non-whitespace column in place
188 of the guard token column when dealing with "else" clauses.
189 When rejecting aligned BODY and NEXT, loosen the requirement
190 from equality with the first non-whitespace of guard to simply
191 that they not be indented relative to it.
192
e9a35493
RB
1932016-03-04 Richard Biener <rguenther@suse.de>
194
195 PR c++/70054
196 * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
197 instead of alias_sets_conflict_p.
198
1be56bc5
MP
1992016-03-01 Marek Polacek <polacek@redhat.com>
200
201 PR c++/69795
202 * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
203 any DECL.
204
35886f0b
MS
2052016-02-22 Martin Sebor <msebor@redhat.com>
206
207 PR middle-end/69780
208 * c-common.c (check_builtin_function_arguments): Validate and
209 reject invalid arguments to __builtin_alloca_with_align.
210
4246c8da
MW
2112016-02-20 Mark Wielaard <mjw@redhat.com>
212
213 PR c/28901
214 * c.opt (Wunused-const-variable): Turn into Alias for...
215 (Wunused-const-variable=): New option.
216
268be88c
BE
2172016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
218
219 PR c++/69865
220 * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
221 here...
222 (c_common_init_options): ...to here.
223 (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
224
871b3f47
JJ
2252016-02-19 Jakub Jelinek <jakub@redhat.com>
226
227 PR c++/69826
228 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
229 (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
230 flag_preprocess_only.
231
bf14eba2
JJ
2322016-02-16 Jakub Jelinek <jakub@redhat.com>
233
234 PR c/69835
235 * c.opt (Wnonnull-compare): Enable for -Wall.
236
ba6b3795
JJ
2372016-02-15 Jakub Jelinek <jakub@redhat.com>
238
239 PR c++/69797
240 * c-common.c (sync_resolve_size): Diagnose too few arguments
241 even when params is non-NULL empty vector.
242
a011cd92
BS
2432016-02-08 Bernd Schmidt <bschmidt@redhat.com>
244
245 PR target/60410
246 * c.opt (fshort-double): Remove.
247
46cb9332
MS
2482016-02-05 Martin Sebor <msebor@redhat.com>
249
250 PR c++/69662
251 * c.opt (Warning options): Update -Wplacement-new to take
252 an optional argument.
253
e1b81f2b
JJ
2542016-02-01 Jakub Jelinek <jakub@redhat.com>
255
256 PR preprocessor/69543
257 PR c/69558
258 * c-pragma.c (handle_pragma_diagnostic): Pass input_location
259 instead of loc to control_warning_option.
260
b6adbb9f
NS
2612016-02-01 Nathan Sidwell <nathan@codesourcery.com>
262
263 * c.opt (fopenacc-dim=): New option.
264
5d70666e
RB
2652016-01-27 Ryan Burn <contact@rnburn.com>
266
267 PR cilkplus/69267
268 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
269 gimplify_arg. Removed superfluous post_p argument.
270 * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
271 superfluous post_p argument.
272 * c-gimplify.c (c_gimplify_expr): Likewise.
273
01e1dea3
DM
2742016-01-26 David Malcolm <dmalcolm@redhat.com>
275
276 PR other/69006
277 * c-opts.c (c_diagnostic_finalizer): Replace invocation of
278 pp_newline_and_flush with pp_flush.
279
9f04a53e
MS
2802016-01-20 Martin Sebor <msebor@redhat.com>
281
282 PR c/69405
283 * c-common.c (sync_resolve_size): Avoid printing diagnostic about
284 an incompatible argument when the argument isn't a valid tree node.
285
7f26f7df
JM
2862016-01-18 Jason Merrill <jason@redhat.com>
287
288 PR c++/68767
289 * c-common.c (check_function_arguments_recurse): Fold the whole
290 COND_EXPR, not just the condition.
291
f62bf092
TV
2922016-01-18 Tom de Vries <tom@codesourcery.com>
293
294 * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
295 classify as loop clause.
296
e0a575ff
JJ
2972016-01-15 Jakub Jelinek <jakub@redhat.com>
298
299 PR bootstrap/68271
300 * c-pragma.c (c_register_pragma_1): Adjust comment to note that
301 C++ FE no longer has limit on number of pragmas.
302
3032015-01-14 Ryan Burn <contact@rnburn.com>
b6e3db06
RB
304
305 PR c++/69048
306 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
c47eaca6 307 to add missing cleanup point.
b6e3db06 308
c7df95d8
DM
3092016-01-14 David Malcolm <dmalcolm@redhat.com>
310
311 PR c++/68819
312 * c-indentation.c (get_visual_column): Add location_t param.
313 Handle the column number being zero by effectively disabling the
314 warning, with an "inform".
315 (should_warn_for_misleading_indentation): Add location_t argument
316 for all uses of get_visual_column.
317
21efdd80
PP
3182016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
319
320 PR c++/69029
321 * c-indentation.c (should_warn_for_misleading_indentation):
322 Don't warn about do-while statements.
323
7a127fa7
MS
3242016-01-07 Martin Sebor <msebor@redhat.com>
325
326 PR c/68966
327 * c-common.c (sync_resolve_size): Reject first argument when it's
328 a pointer to _Bool.
329
c589e975
DM
3302016-01-05 David Malcolm <dmalcolm@redhat.com>
331
332 PR c/69122
333 * c-indentation.c (get_visual_column): Remove default argument.
334 (should_warn_for_misleading_indentation): For the multiline case,
335 update call to get_visual_column for next_stmt_exploc so that it
336 captures the location of the first non-whitespace character in the
337 relevant line. Don't issue warnings if there is non-whitespace
338 before the next statement.
339
818ab71a
JJ
3402016-01-04 Jakub Jelinek <jakub@redhat.com>
341
342 Update copyright years.
343
745e411d
DM
3442015-12-21 David Malcolm <dmalcolm@redhat.com>
345
346 * c-common.c (binary_op_error): Convert first param from
347 location_t to rich_location * and use it when emitting an error.
348 * c-common.h (binary_op_error): Convert first param from
349 location_t to rich_location *.
350
de67c4c3
DM
3512015-12-16 David Malcolm <dmalcolm@redhat.com>
352
353 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
354 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
355
4a38b02b
IV
3562015-12-15 Ilya Verbin <ilya.verbin@intel.com>
357
358 * c-common.c (c_common_attribute_table): Handle "omp declare target
359 link" attribute.
360
54d62f51
JJ
3612015-12-14 Jakub Jelinek <jakub@redhat.com>
362
363 PR c/68833
364 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
365
8d4227c8
TB
3662014-12-12 Tobias Burnus <burnus@net-b.de>
367
368 PR fortran/68815
369 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
370 specifiers (%d, %i,%u and %c).
371
f6069ccc
DM
3722015-12-10 David Malcolm <dmalcolm@redhat.com>
373
374 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
375
63bbf46d
JJ
3762015-12-08 Jakub Jelinek <jakub@redhat.com>
377
378 PR c/48088
379 PR c/68657
380 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
381 * c-pragma.c (handle_pragma_diagnostic): Adjust
382 control_warning_option caller.
383
f79520bb
DM
3842015-12-07 David Malcolm <dmalcolm@redhat.com>
385
386 * c-common.c (c_cpp_error): Update for change to
387 rich_location::set_range.
388
b3d5bc62
JJ
3892015-12-04 Paolo Bonzini <bonzini@gnu.org>
390
391 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
392 shifting 1 out of the sign bit.
393
3942015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
395
396 * c-common.c (c_common_attribute_table[]): Update max arguments
397 count for "simd" attribute.
398 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
399
6eb4a537
JJ
4002015-12-03 Jakub Jelinek <jakub@redhat.com>
401
402 PR preprocessor/57580
403 * c-ppoutput.c (print): Change printed field to bool.
404 Move src_file last for smaller padding.
405 (init_pp_output): Set print.printed to false instead of 0.
406 (scan_translation_unit): Fix up formatting. Set print.printed
407 to true after printing something other than newline.
408 (scan_translation_unit_trad): Set print.printed to true instead of 1.
409 (maybe_print_line_1): Set print.printed to false instead of 0.
410 (print_line_1): Likewise.
411 (do_line_change): Set print.printed to true instead of 1.
412 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
413 dump_macro): Set print.printed to false after printing newline.
414
4250754e
JM
4152015-12-02 Jason Merrill <jason@redhat.com>
416
f479b43d
JM
417 * c-common.c (fold_for_warn): New.
418 (warn_logical_operator, warn_tautological_cmp)
419 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
420
4250754e
JM
421 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
422 (c_fully_fold_internal, decl_constant_value_for_optimization):
423 Move to c/c-fold.c.
424 * c-common.h: Don't declare decl_constant_value_for_optimization.
425
e9e32ee6
JM
4262015-12-02 Joseph Myers <joseph@codesourcery.com>
427
428 PR c/68162
429 * c-common.h (c_build_qualified_type): Add extra default
430 arguments.
431
37d5ad46
JB
4322015-12-01 Julian Brown <julian@codesourcery.com>
433 Cesar Philippidis <cesar@codesourcery.com>
434 James Norris <James_Norris@mentor.com>
435
436 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
437 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
438 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
439
f07862c7
EB
4402015-11-30 Eric Botcazou <ebotcazou@adacore.com>
441
442 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
443 (decl_sloc_common): Delete and move bulk of processing to...
444 (decl_sloc): ...here.
445 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
446 (dump_ada_double_name): Remove S parameter and compute the suffix.
447 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
448 element type and deal with an anonymous one.
449 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
450 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
451 and remove reference to QUAL_UNION_TYPE.
452 (dump_nested_types): Make 2 passes on the fields and move bulk to...
453 (dump_nested_type): ...here. New function extracted from above.
454 Generate a full declaration for anonymous element type of arrays.
455 (print_ada_declaration): Really skip anonymous declarations. Remove
456 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
457 Clean up processing of declarations of array types and objects.
458 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
459 Remove obsolete code and tidy up.
460
75c8aac3
JH
4612015-11-29 Jan Hubicka <hubicka@ucw.cz>
462
463 PR c/67581
464 * c-common.c (handle_transparent_union_attribute): Update
465 also type variants.
466
b58d3df2
ML
4672015-11-27 Martin Liska <mliska@suse.cz>
468
469 PR c++/68312
470 * array-notation-common.c (cilkplus_extract_an_triplets):
471 Release vector of vectors.
472 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
473
89a01fcf
EB
4742015-11-26 Eric Botcazou <ebotcazou@adacore.com>
475
476 PR c++/68527
477 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
478 (print_ada_struct_decl): Likewise.
479
cc5c5226
IZ
4802015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
481
482 PR c++/68001
483 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
484 * cilk.c (recognize_spawn): Determine location in a more precise
485 way.
486
269adb9d
JM
4872015-11-19 Jason Merrill <jason@redhat.com>
488
489 * c-common.c (shorten_compare): But look through macros from
490 system headers.
491
d0eccfcd
JM
4922015-11-18 Jason Merrill <jason@redhat.com>
493
494 * c-common.c (shorten_compare): Don't -Wtype-limits if the
495 non-constant operand comes from a macro.
496
3e44547c
JM
4972015-11-17 Jason Merrill <jason@redhat.com>
498
499 PR bootstrap/68346
500 * c-common.c (warn_tautological_cmp): Fold before checking for
501 constants.
502
0f62c7a0
MP
5032015-11-16 Marek Polacek <polacek@redhat.com>
504
505 PR c++/68362
506 * c-common.c (check_case_bounds): Fold low and high cases.
507
a868811e
MP
5082015-11-16 Marek Polacek <polacek@redhat.com>
509
510 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
511 * c-common.c (c_common_get_alias_set): Likewise.
512 (handle_visibility_attribute): Likewise.
513
fff77217
KY
5142015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
515
516 * c-common.c (handle_simd_attribute): New.
517 (struct attribute_spec): Add entry for "simd".
518 (handle_simd_attribute): New.
519
269e63b7
KT
5202015-11-13 Kai Tietz <ktietz70@googlemail.com>
521
522 * c-lex.c (interpret_float): Use fold_convert.
523
ebedc9a3
DM
5242015-11-13 David Malcolm <dmalcolm@redhat.com>
525
526 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
527 and store it on the result.
528 * c-opts.c (c_common_init_options): Set
529 global_dc->colorize_source_p.
530
6e232ba4
JN
5312015-11-12 James Norris <jnorris@codesourcery.com>
532 Joseph Myers <joseph@codesourcery.com>
533
534 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
535 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
536 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
537 PRAGMA_OACC_CLAUSE_LINK.
538
e78bede6
MP
5392015-11-11 Marek Polacek <polacek@redhat.com>
540
541 PR c/68107
542 PR c++/68266
543 * c-common.c (valid_array_size_p): New function.
544 * c-common.h (valid_array_size_p): Declare.
545
4ac93c7c
DH
5462015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
547
548 PR bootstrap/68271
549 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
550
69f293c9
AM
5512015-11-11 Andrew MacLeod <amacleod@redhat.com>
552
553 * array-notation-common.c: Remove unused header files.
554 * c-ada-spec.c: Likewise.
555 * c-cilkplus.c: Likewise.
556 * c-common.c: Likewise.
557 * c-cppbuiltin.c: Likewise.
558 * c-dump.c: Likewise.
559 * c-format.c: Likewise.
560 * c-gimplify.c: Likewise.
561 * c-indentation.c: Likewise.
562 * c-lex.c: Likewise.
563 * c-omp.c: Likewise.
564 * c-opts.c: Likewise.
565 * c-pch.c: Likewise.
566 * c-ppoutput.c: Likewise.
567 * c-pragma.c: Likewise.
568 * c-pretty-print.c: Likewise.
569 * c-semantics.c: Likewise.
570 * c-ubsan.c: Likewise.
571 * cilk.c: Likewise.
572 * stub-objc.c: Likewise.
573
3a40d81d
NS
5742015-11-09 Thomas Schwinge <thomas@codesourcery.com>
575 Cesar Philippidis <cesar@codesourcery.com>
576 James Norris <jnorris@codesourcery.com>
577 Julian Brown <julian@codesourcery.com>
578 Nathan Sidwell <nathan@codesourcery.com>
579
580 * c-pragma.c (oacc_pragmas): Add "routine".
581 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
582
ee45a32d
EB
5832015-11-08 Eric Botcazou <ebotcazou@adacore.com>
584
585 * c-common.c (c_common_attributes): Add scalar_storage_order.
586 (handle_scalar_storage_order_attribute): New function.
587 * c-pragma.c (global_sso): New variable.
588 (maybe_apply_pragma_scalar_storage_order): New function.
589 (handle_pragma_scalar_storage_order): Likewise.
590 (init_pragma): Register scalar_storage_order.
591 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
592 * c.opt (Wscalar-storage-order): New warning.
593 (fsso-struct=): New option.
594
eb11eb15
MS
5952015-11-08 Martin Sebor <msebor@redhat.com>
596
597 * c.opt (Wplacement-new): Add a period to the end of a sentence.
598
0aad0198
RS
5992015-11-07 Richard Sandiford <richard.sandiford@arm.com>
600
601 * c-common.c: Don't undef DEF_BUILTIN.
602
8a645150
DM
6032015-11-06 David Malcolm <dmalcolm@redhat.com>
604
605 * c-common.c (c_cpp_error): Convert parameter from location_t to
606 rich_location *. Eliminate the "column_override" parameter and
607 the call to diagnostic_override_column.
608 Update the "done_lexing" clause to set range 0
609 on the rich_location, rather than overwriting a location_t.
610 * c-common.h (c_cpp_error): Convert parameter from location_t to
611 rich_location *. Eliminate the "column_override" parameter.
612
7a5e4956
CP
6132015-11-05 Cesar Philippidis <cesar@codesourcery.com>
614 Thomas Schwinge <thomas@codesourcery.com>
615 James Norris <jnorris@codesourcery.com>
616
617 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
618 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
619 clauses with parallel and kernels and loops.
620 * c-pragma.h (enum pragma_omp_clause): Add entries for
621 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
622 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
623 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
624 INDEPENDENT,SEQ}.
625 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
626
e2f5cc96
MS
6272015-11-05 Martin Sebor <msebor@redhat.com>
628
629 PR c++/67942
630 * c.opt (-Wplacement-new): New option.
631
e01d41e5
JJ
6322015-11-05 Jakub Jelinek <jakub@redhat.com>
633
634 * c-common.h (c_finish_omp_atomic): Add TEST argument.
635 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
636 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
637 save_expr or create_tmp_var* if TEST is true.
638 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
639 Don't call add_stmt here.
640 (struct c_omp_check_loop_iv_data): New type.
641 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
642 c_omp_check_loop_iv_exprs): New functions.
643 (c_omp_split_clauses): Adjust for lastprivate being allowed on
644 distribute.
645 (c_omp_declare_simd_clauses_to_numbers): Change
646 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
647 (c_omp_declare_simd_clauses_to_decls): Similarly change those
648 from numbers to PARM_DECLs.
649
595278be
MM
6502015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
651
652 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
653 flag_checking.
654
c85158de
MS
6552015-11-03 Bernd Schmidt <bschmidt@redhat.com>
656
657 PR c++-common/67882
b3d5bc62
JJ
658 * c-common.h (fold_offsetof_1): Add argument.
659 * c-common.c (fold_offsetof_1): Diagnose more invalid
c85158de
MS
660 offsetof expressions that reference elements past the end of
661 an array.
662
4bf9e5a8
TS
6632015-11-03 Thomas Schwinge <thomas@codesourcery.com>
664 Chung-Lin Tang <cltang@codesourcery.com>
665
666 * c-pragma.c (oacc_pragmas): Add "atomic".
667 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
668
3b1661a9
ES
6692015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
670
671 * c-common.c (handle_target_clones_attribute): New.
672 (c_common_attribute_table): Add handle_target_clones_attribute.
673 (handle_always_inline_attribute): Add check on target_clones attribute.
674 (handle_target_attribute): Ditto.
675
2adfab87
AM
6762015-10-29 Andrew MacLeod <amacleod@redhat.com>
677
678 * array-notation-common.c: Reorder #include's and remove duplicates.
679 * c-ada-spec.c: Likewise.
680 * c-cilkplus.c: Likewise.
681 * c-common.c: Likewise.
682 * c-cppbuiltin.c: Likewise.
683 * c-dump.c: Likewise.
684 * c-format.c: Likewise.
685 * c-gimplify.c: Likewise.
686 * c-indentation.c: Likewise.
687 * c-lex.c: Likewise.
688 * c-omp.c: Likewise.
689 * c-opts.c: Likewise.
690 * c-pch.c: Likewise.
691 * c-ppoutput.c: Likewise.
692 * c-pragma.c: Likewise.
693 * c-pretty-print.c: Likewise.
694 * c-semantics.c: Likewise.
695 * c-ubsan.c: Likewise.
696 * cilk.c: Likewise.
697 * stub-objc.c: Likewise.
698
d90ec4f2
JM
6992015-10-28 Jason Merrill <jason@redhat.com>
700
701 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
702
88bae6f4
TS
7032015-10-27 Thomas Schwinge <thomas@codesourcery.com>
704 James Norris <jnorris@codesourcery.com>
705 Cesar Philippidis <cesar@codesourcery.com>
706
707 PR c/64765
708 PR c/64880
709 * c-common.h (c_oacc_split_loop_clauses): Declare function.
710 * c-omp.c (c_oacc_split_loop_clauses): New function.
711
b1726d6c
MS
7122015-10-21 Martin Sebor <msebor@redhat.com>
713
714 PR driver/68043
715 * c.opt: End each sentence that describes an option with a period.
716
fa60eeb9
MP
7172015-10-20 Marek Polacek <polacek@redhat.com>
718
719 * array-notation-common.c (is_cilkplus_vector_p): Define.
720 * c-common.h (is_cilkplus_vector_p): Declare.
721
95979049
MP
7222015-10-20 Marek Polacek <polacek@redhat.com>
723
724 * c.opt (std=gnu++11): Do not describe as experimental.
725 (std=gnu++14): Likewise.
726
2a9fb712
JM
7272015-10-19 Jason Merrill <jason@redhat.com>
728
729 * c-cppbuiltin.c (c_cpp_builtins): Define
730 __cpp_nontype_template_args.
731
13b380a3
JM
7322015-10-19 Jason Merrill <jason@redhat.com>
733
734 * c-cppbuiltin.c (c_cpp_builtins): Define
735 __cpp_enumerator_attributes, __cpp_fold_expressions,
736 __cpp_unicode_characters.
737
d9a6bd32
JJ
7382015-10-13 Jakub Jelinek <jakub@redhat.com>
739 Aldy Hernandez <aldyh@redhat.com>
740
741 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
742 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
743 (c_define_builtins): Likewise.
744 * c-common.h (enum c_omp_clause_split): Add
745 C_OMP_CLAUSE_SPLIT_TASKLOOP.
746 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
747 (c_finish_omp_for): Add ORIG_DECLV argument.
748 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
749 201511 instead of 201307.
750 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
751 OMP_CRITICAL_CLAUSES to it.
752 (c_finish_omp_ordered): Add CLAUSES argument, set
753 OMP_ORDERED_CLAUSES to it.
754 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
755 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
756 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
757 constructs and new OpenMP 4.5 clauses. Clear
758 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
759 verification code.
760 * c-pragma.c (omp_pragmas_simd): Add taskloop.
761 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
762 (enum pragma_omp_clause): Add
763 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
764 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
765
624d31fe
RS
7662015-10-05 Richard Sandiford <richard.sandiford@arm.com>
767
768 * c-lex.c (interpret_float): Use real_equal instead of
769 REAL_VALUES_EQUAL.
770
b8fd7909
JM
7712015-10-04 Jason Merrill <jason@redhat.com>
772
773 Implement N4514, C++ Extensions for Transactional Memory.
774 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
775 (c_common_attribute_table): Add transaction_safe_dynamic.
776 transaction_safe now affects type identity.
777 (handle_tm_attribute): Handle transaction_safe_dynamic.
778 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
779 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
780 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
781 (D_TRANSMEM): New.
782 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
783 * c-pretty-print.c (pp_c_attributes_display): Don't print
784 transaction_safe in C++.
785
12651878
MP
7862015-10-02 Marek Polacek <polacek@redhat.com>
787
788 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
789
3e3b8d63
MP
7902015-10-02 Marek Polacek <polacek@redhat.com>
791
792 PR c/64249
793 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
794 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
795 * c.opt (Wduplicated-cond): New option.
796
0d1a8f75
JM
7972015-10-01 Joseph Myers <joseph@codesourcery.com>
798
799 * c.opt (std=c11): Do not describe as experimental.
800 (std=gnu11): Likewise.
801 (std=iso9899:2011): Likewise.
802
3e32ee19
NS
8032015-09-28 Nathan Sidwell <nathan@codesourcery.com>
804
805 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
806 (DEF_FUNCTION_TYPE_VAR_11): Delete.
807
974348ee
MP
8082015-09-25 Marek Polacek <polacek@redhat.com>
809
810 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
811 (ubsan_instrument_shift): Likewise.
812
15dbc1a6
MP
8132015-09-25 Marek Polacek <polacek@redhat.com>
814
815 PR sanitizer/64906
816 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
817
6b95d7cc
PP
8182015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
819
820 * c-indentation.c (should_warn_for_misleading_indentation):
821 Compare next_stmt_vis_column with guard_line_first_nws instead
822 of with guard_line_vis_column.
823
c1822f9c
MLI
8242015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
825
826 PR c/49654
827 PR c/49655
828 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
829 options and options not valid for the current language.
830
d5398058
PP
8312015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
832
833 * c-indentation.c (should_warn_for_misleading_indentation):
834 Float out and consolidate the calls to get_visual_column that
835 are passed guard_exploc as an argument. Compare
836 next_stmt_vis_column with guard_line_first_nws instead of with
837 body_line_first_nws.
838
6b333269
NS
8392015-09-22 Nathan Sidwell <nathan@codesourcery.com>
840
841 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
842 Wnamespaces): New C++ warnings.
843
a75f1574
JM
8442015-09-22 Jason Merrill <jason@redhat.com>
845
846 * c-common.h (abi_compat_version_crosses): New.
847 (warn_abi_version): Declare.
848 * c-common.c: Define it.
849 * c-opts.c (c_common_post_options): Handle it.
850 flag_abi_compat_version defaults to 8.
851
bdaaa8b7
VV
8522015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
853
854 Complete the implementation of N4230, Nested namespace definition.
855 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
856 __cpp_nested_namespace_definitions.
857
eaa797e8
MLI
8582015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
859
860 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
861
c4914de6
MLI
8622015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
863
864 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
865 when warning.
866 * c-pragma.h (pragma_lex): Add optional loc argument.
867
fcb87c50
MM
8682015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
869
870 * c-format.c (check_format_arg): Adjust to use common block size in all
871 object pools.
872
31bdd08a
DM
8732015-09-15 David Malcolm <dmalcolm@redhat.com>
874
875 * c-format.c (location_from_offset): Update for change in
876 signature of location_get_source_line.
877 * c-indentation.c (get_visual_column): Likewise.
878 (line_contains_hash_if): Likewise.
879
aa9f4b4c
MP
8802015-09-14 Marek Polacek <polacek@redhat.com>
881
882 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
883 setting various warnings.
884
aa256c4a
MP
8852015-09-14 Marek Polacek <polacek@redhat.com>
886
887 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
888 a negative value.
889
0f876f22
MW
8902015-09-11 Mark Wielaard <mjw@redhat.com>
891
892 PR c/28901
893 * c.opt (Wunused-variable): Option from common.opt.
894 (Wunused-const-variable): New option.
895
273aa49e
PC
8962015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
897
898 PR c++/53184
899 * c.opt ([Wsubobject-linkage]): Add.
900
1807ffc1
MS
9012015-09-03 Martin Sebor <msebor@redhat.com>
902
903 PR c/66516
904 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
905 functions.
906 * c-common.c (reject_gcc_builtin): Define.
907
38942840
BI
9082015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
909
910 PR middle-end/60586
911 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
912 prototype.
913 * c-gimplify.c (c_gimplify_expr): Added a call to the function
914 cilk_gimplify_call_params_in_spawned_fn.
915 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
916 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
917 unwrapping.
918
c316b5e4
MP
9192015-08-25 Marek Polacek <polacek@redhat.com>
920
921 PR middle-end/67330
922 * c-common.c (handle_weak_attribute): Don't check whether the
923 visibility can be changed here.
924
584a7c46
MLI
9252015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
926
927 * c-lex.c (c_lex_with_flags): Use explicit locations.
928
a79683d5
TS
9292015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
930
931 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
932 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
933
61717a45
FXC
9342015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
935
936 PR middle-end/36757
937 * c-common.c (check_builtin_function_arguments): Add check
938 for BUILT_IN_SIGNBIT argument.
939
329524f5
PC
9402015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
941
942 PR c++/67160
943 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
944 in c++1z mode.
945
4ee55665
MP
9462015-08-17 Marek Polacek <polacek@redhat.com>
947
948 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
949 with whitespaces before qualifier names.
950
b893e375
MP
9512015-08-12 Marek Polacek <polacek@redhat.com>
952
953 PR c++/55095
954 * c-common.c (maybe_warn_shift_overflow): Properly handle
955 left-shifting 1 into the sign bit.
956
c2d89095
MLI
9572015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
958
959 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
960
971e17ff
AS
9612015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
962 Braden Obrzut <admin@maniacsvault.net>
963 Jason Merrill <jason@redhat.com>
964
965 Add C++ Concepts TS support.
966 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
967 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
968 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
969 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
970 * c-opts.c (set_std_cxx1z): Set flag_concepts.
971 * c.opt (fconcepts): New.
972
b3d5bc62
JJ
9732015-08-02 Martin Sebor <msebor@redhat.com>
974
975 * c.opt (-Wframe-address): New warning option.
976
8ebca419
PP
9772015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
978
979 * c-indentation.c (should_warn_for_misleading_indentation):
980 Improve heuristics.
981
1a1e101f
PP
9822015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
983
984 * c-indentation.c (get_visual_column): Add parameter first_nws,
985 use it. Update comment documenting the function.
986 (is_first_nonwhitespace_on_line): Remove.
987 (should_warn_for_misleading_indentation): Replace usage of
988 of is_first_nonwhitespace_on_line with get_visual_column.
989
992118a1
PP
9902015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
991
992 * c-indentation.h (struct token_indent_info): Define.
993 (get_token_indent_info): Define.
994 (warn_for_misleading_information): Declare.
995 * c-common.h (warn_for_misleading_information): Remove.
996 * c-identation.c (warn_for_misleading_indentation):
997 Change declaration to take three token_indent_infos. Adjust
998 accordingly.
999 * c-identation.c (should_warn_for_misleading_indentation):
1000 Likewise. Bail out early if the body is a compound statement.
1001 (guard_tinfo_to_string): Define.
1002
e8fa3817
JM
10032015-07-30 Jason Merrill <jason@redhat.com>
1004
1005 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
1006 '*' for reference decay.
1007
173864e8
MP
10082015-07-30 Marek Polacek <polacek@redhat.com>
1009
1010 * c-common.c (warn_tautological_cmp): Bail for float types.
1011
f2afe6dd
MP
10122015-07-27 Marek Polacek <polacek@redhat.com>
1013
1014 PR bootstrap/67030
1015 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
1016
05b28fd6
MP
10172015-07-27 Marek Polacek <polacek@redhat.com>
1018
1019 PR c++/66555
1020 PR c/54979
1021 * c-common.c (find_array_ref_with_const_idx_r): New function.
1022 (warn_tautological_cmp): New function.
1023 * c-common.h (warn_tautological_cmp): Declare.
1024 * c.opt (Wtautological-compare): New option.
1025
5a5062b8
MP
10262015-07-23 Marek Polacek <polacek@redhat.com>
1027
1028 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
1029 (ubsan_instrument_shift): Likewise.
1030
dc891fe7
MP
10312015-07-23 Marek Polacek <polacek@redhat.com>
1032
1033 PR sanitizer/66908
1034 * c-ubsan.c: Include gimplify.h.
1035 (ubsan_instrument_division): Unshare OP0 and OP1.
1036 (ubsan_instrument_shift): Likewise.
1037
451b5e48
MP
10382015-07-20 Marek Polacek <polacek@redhat.com>
1039 Richard Sandiford <richard.sandiford@arm.com>
1040
1041 PR c++/55095
1042 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
1043 Use EXPR_LOC_OR_LOC.
1044 (maybe_warn_shift_overflow): New function.
1045 * c-common.h (maybe_warn_shift_overflow): Declare.
1046 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
1047 * c.opt (Wshift-overflow): New option.
1048
fb0b2914
ML
10492015-07-16 Martin Liska <mliska@suse.cz>
1050
1051 * c-format.c (static void check_format_info_main): Use
1052 object_allocator instead of pool_allocator.
1053 (check_format_arg): Likewise.
1054 (check_format_info_main): Likewise.
1055
903f5c23
AM
10562015-07-15 Andrew MacLeod <amacleod@redhat.com>
1057
1058 * c-opts.c: Remove multiline #include comment.
1059
026c3cfd
AH
10602015-07-12 Aldy Hernandez <aldyh@redhat.com>
1061
1062 * c-common.c: Fix double word typos.
1063
bb49ee66
EB
10642015-07-10 Eric Botcazou <ebotcazou@adacore.com>
1065
1066 * c-ada-spec.h (cpp_operation): Revert latest change.
1067 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
1068 constructors and destructors.
1069
1916bcb5
AM
10702015-07-09 Andrew MacLeod <amacleod@redhat.com>
1071
1072 * c-common.h: Adjust includes for flags.h changes.
1073 * stub-objc.c: Likewise.
026c3cfd 1074
a9dcd529
EB
10752015-07-08 Eric Botcazou <ebotcazou@adacore.com>
1076
1077 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
1078 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
1079
b03b462f
JJ
10802015-07-08 Jakub Jelinek <jakub@redhat.com>
1081
1082 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
1083 are to be removed, return NULL rather than original clauses list.
1084
c7131fb2
AM
10852015-07-07 Andrew MacLeod <amacleod@redhat.com>
1086
1087 * array-notation-common.c: Adjust includes.
1088 * c-ada-spec.c: Likewise.
1089 * c-cilkplus.c: Likewise.
1090 * c-common.h: Likewise.
1091 * c-cppbuiltin.c: Likewise.
1092 * c-dump.c: Likewise.
1093 * c-format.c: Likewise.
1094 * c-gimplify.c: Likewise.
1095 * c-indentation.c: Likewise.
1096 * c-lex.c: Likewise.
1097 * c-omp.c: Likewise.
1098 * c-opts.c: Likewise.
1099 * c-pch.c: Likewise.
1100 * c-ppoutput.c: Likewise.
1101 * c-pragma.c: Likewise.
1102 * c-pretty-print.c: Likewise.
1103 * c-semantics.c: Likewise.
1104 * c-ubsan.c: Likewise.
1105 * cilk.c: Likewise.
1106 * stub-objc.c: Likewise.
1107
2a7fb83f
EB
11082015-07-07 Eric Botcazou <ebotcazou@adacore.com>
1109
1110 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
1111 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
1112
a03c9bf1
JM
11132015-07-01 Jason Merrill <jason@redhat.com>
1114
36a85135
JM
1115 * c-common.h (D_CXX11): Rename from D_CXX0X.
1116 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
1117 * c-common.c: Adjust.
1118
e7fa68d5
JM
1119 * c-opts.c (c_common_post_options): Default to C++14.
1120
a03c9bf1
JM
1121 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
1122
fe95b036
ESR
11232015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
1124
1125 Implement N4197 - Adding u8 character literals
b3d5bc62 1126 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
a64be36b 1127 CPP_CHAR.
b3d5bc62 1128 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
a64be36b 1129 CPP_UTF8CHAR_USERDEF tokens.
b3d5bc62 1130 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
a64be36b
EB
1131 and CPP_UTF8CHAR tokens.
1132 (lex_charconst): Treat CPP_UTF8CHAR token.
fe95b036 1133
da2e71c9
MLI
11342015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1135
1136 PR fortran/66605
1137 * c-common.c (do_warn_unused_parameter): Move here.
1138 * c-common.h (do_warn_unused_parameter): Declare.
1139
b155cfd9
MP
11402015-06-29 Marek Polacek <polacek@redhat.com>
1141
1142 PR c/66322
1143 * c-common.c (check_case_bounds): Add bool * parameter. Set
1144 OUTSIDE_RANGE_P.
1145 (c_add_case_label): Add bool * parameter. Pass it down to
1146 check_case_bounds.
1147 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
1148 warning here.
1149 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
1150 declarations.
1151
31521951
MP
11522015-06-27 Marek Polacek <polacek@redhat.com>
1153
1154 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
1155 or VECTOR_INTEGER_TYPE_P throughout.
1156 * c-gimplify.c: Likewise.
1157
22d03525
MP
11582015-06-26 Marek Polacek <polacek@redhat.com>
1159
1160 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
1161 * c-common.c (c_fully_fold_internal): Likewise.
1162 (c_alignof_expr): Likewise.
1163 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
1164 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
b1726d6c 1165 * cilk.c (create_parm_list): Likewise.
22d03525 1166
af05e6e5
MP
11672015-06-26 Marek Polacek <polacek@redhat.com>
1168
1169 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
1170
f0889939
AM
11712015-06-25 Andrew MacLeod <amacleod@redhat.com>
1172
1173 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
1174 * c-gimplify.c: Likewise.
1175 * c-pragma.c: Likewise.
1176 * c-ubsan.c: Likewise.
1177 * cilk.c: Likewise.
1178
ca752f39
RS
11792015-06-25 Richard Sandiford <richard.sandiford@arm.com>
1180
1181 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
1182 ggc_hasher.
1183
16a16ec7
AM
11842015-06-25 Andrew MacLeod <amacleod@redhat.com>
1185
1186 * cilk.c: Move calls.h after tm.h in the include chain.
1187
0ae9bd27
MP
11882015-06-25 Marek Polacek <polacek@redhat.com>
1189
1190 * array-notation-common.c: Use VAR_P throughout.
1191 * c-ada-spec.c: Likewise.
1192 * c-common.c: Likewise.
1193 * c-format.c: Likewise.
1194 * c-gimplify.c: Likewise.
1195 * c-omp.c: Likewise.
1196 * c-pragma.c: Likewise.
1197 * c-pretty-print.c: Likewise.
1198 * cilk.c: Likewise.
1199
62f9079a
MP
12002015-06-25 Marek Polacek <polacek@redhat.com>
1201
1202 * cilk.c (extract_free_variables): Use is_global_var.
1203
0fa16060
RS
12042015-06-23 Richard Sandiford <richard.sandiford@arm.com>
1205
1206 * c-common.c: Don't include target-def.h.
1207
a68ae2e1
MP
12082015-06-23 Marek Polacek <polacek@redhat.com>
1209
1210 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
1211 when comparing INTEGER_CSTs.
1212
c6a2f2d9
PMR
12132015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
1214
1215 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
1216 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
1217 (dump_ada_template): Skip partially specialized types.
1218
6b4db501
MM
12192015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
1220
1221 * c-common.c (scalar_to_vector): Use std::swap instead of manually
1222 swapping.
1223
abb226c9
AM
12242015-06-17 Andrew MacLeod <amacleod@redhat.com>
1225
1226 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
1227 * c-ada-spec.c: Likewise.
1228 * c-cilkplus.c: Likewise.
1229 * c-common.c: Likewise.
1230 * c-common.h: Likewise.
1231 * c-cppbuiltin.c: Likewise.
1232 * c-dump.c: Likewise.
1233 * c-format.c: Likewise.
1234 * c-gimplify.c: Likewise.
1235 * c-indentation.c: Likewise.
1236 * c-lex.c: Likewise.
1237 * c-omp.c: Likewise.
1238 * c-opts.c: Likewise.
1239 * c-pch.c: Likewise.
1240 * c-ppoutput.c: Likewise.
1241 * c-pragma.c: Likewise.
1242 * c-pretty-print.c: Likewise.
1243 * c-semantics.c: Likewise.
1244 * c-ubsan.c: Likewise.
1245 * cilk.c: Likewise.
1246 * stub-objc.c: Likewise.
1247
076fecad
PP
12482015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
1249
1250 PR c++/65168
1251 * c-common.c (c_common_truthvalue_conversion): Warn when
1252 converting an address of a reference to a truth value.
1253
13fdf2e2
AM
12542015-06-08 Andrew MacLeod <amacleod@redhat.com>
1255
1256 * array-notation-common.c : Adjust include files.
1257 * c-ada-spec.c : Likewise.
1258 * c-cilkplus.c : Likewise.
1259 * c-common.c : Likewise.
1260 * c-common.h : Likewise.
1261 * c-cppbuiltin.c : Likewise.
1262 * c-dump.c : Likewise.
1263 * c-format.c : Likewise.
1264 * c-gimplify.c : Likewise.
1265 * c-indentation.c : Likewise.
1266 * c-lex.c : Likewise.
1267 * c-omp.c : Likewise.
1268 * c-opts.c : Likewise.
1269 * c-pch.c : Likewise.
1270 * c-ppoutput.c : Likewise.
1271 * c-pragma.c : Likewise.
1272 * c-pretty-print.c : Likewise.
1273 * c-semantics.c : Likewise.
1274 * c-ubsan.c : Likewise.
1275 * cilk.c : Likewise.
1276 * stub-objc.c : Likewise.
1277
a1661b90
MP
12782015-06-08 Marek Polacek <polacek@redhat.com>
1279
1280 PR c/66415
1281 * c-format.c (location_from_offset): Return LOC if LINE is null.
1282
d7438551
AH
12832015-06-05 Aldy Hernandez <aldyh@redhat.com>
1284
1285 * c-common.h (c_parse_final_cleanups): New prototype.
1286 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
1287
b3d5bc62
JJ
12882015-06-04 Sriraman Tallam <tmsriram@google.com>
1289
1290 * c-common.c (noplt): New attribute.
1291 (handle_noplt_attribute): New handler.
1292
ecb9f223
AM
12932015-06-04 Andrew MacLeod <amacleod@redhat.com>
1294
1295 * array-notation-common.c: Adjust includes for restructured coretypes.h.
1296 * c-ada-spec.c: Likewise.
1297 * c-cilkplus.c: Likewise.
1298 * c-common.c: Likewise.
1299 * c-common.h: Likewise.
1300 * c-cppbuiltin.c: Likewise.
1301 * c-dump.c: Likewise.
1302 * c-format.c: Likewise.
1303 * c-gimplify.c: Likewise.
1304 * c-indentation.c: Likewise.
1305 * c-lex.c: Likewise.
1306 * c-omp.c: Likewise.
1307 * c-opts.c: Likewise.
1308 * c-pch.c: Likewise.
1309 * c-ppoutput.c: Likewise.
1310 * c-pragma.c: Likewise.
1311 * c-pretty-print.c: Likewise.
1312 * c-semantics.c: Likewise.
1313 * c-ubsan.c: Likewise.
1314 * cilk.c: Likewise.
1315 * stub-objc.c: Likewise.
1316
6ac48155
DM
13172015-06-02 David Malcolm <dmalcolm@redhat.com>
1318
1319 PR c/66220:
1320 * c-indentation.c (should_warn_for_misleading_indentation): Use
1321 expand_location rather than expand_location_to_spelling_point.
1322 Don't warn if the guarding statement is more indented than the
1323 next/body stmts.
1324
773ce42e
DM
13252015-06-02 David Malcolm <dmalcolm@redhat.com>
1326
1327 * c-indentation.c (warn_for_misleading_indentation): Bail out
1328 immediately if -Wmisleading-indentation isn't enabled.
1329
4fef8379
ML
13302015-06-01 Martin Liska <mliska@suse.cz>
1331
1332 * c-format.c (check_format_arg):Use new type-based pool allocator.
1333 (check_format_info_main) Likewise.
1334
1edfb384
EB
13352015-05-31 Eric Botcazou <ebotcazou@adacore.com>
1336
1337 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
1338 (has_nontrivial_methods): Likewise.
1339
9677ef52
MP
13402015-05-25 Marek Polacek <polacek@redhat.com>
1341
1342 * c-ubsan.c (ubsan_instrument_shift): Use type0.
1343
fd5c817a
MP
13442015-05-22 Marek Polacek <polacek@redhat.com>
1345
1346 PR c/47043
1347 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
1348
a2f45fe6 13492015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
581edfa3
TS
1350
1351 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
1352 STACK_GROWS_DOWNWARD.
1353
a2f45fe6 13542015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
62f9f30b
TS
1355
1356 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
1357 STACK_GROWS_DOWNWARD rather than if it is defined.
1358
0fee2ac2 13592015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
b1726d6c 1360
0fee2ac2
MLI
1361 PR c/52952
1362 * c-format.c (location_column_from_byte_offset): New.
1363 (location_from_offset): New.
1364 (struct format_wanted_type): Add offset_loc field.
1365 (check_format_info): Move handling of location for extra arguments
1366 closer to the point of warning.
1367 (check_format_info_main): Pass the result of location_from_offset
1368 to warning_at.
1369 (format_type_warning): Pass the result of location_from_offset
1370 to warning_at.
1371
cf4ef6f7
MP
13722015-05-20 Marek Polacek <polacek@redhat.com>
1373
1374 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
1375
3a65ee74
MP
13762015-05-20 Marek Polacek <polacek@redhat.com>
1377
1378 * c-ada-spec.c (dump_sloc): Use DECL_P.
1379
21b634ae
MP
13802015-05-20 Marek Polacek <polacek@redhat.com>
1381
1382 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
1383 * c-common.c: Likewise.
1384
0e50b624
DM
13852015-05-19 David Malcolm <dmalcolm@redhat.com>
1386
1387 * c-common.h (fe_file_change): Strengthen param from
1388 const line_map * to const line_map_ordinary *.
1389 (pp_file_change): Likewise.
1390 * c-lex.c (fe_file_change): Likewise.
1391 (cb_define): Use linemap_check_ordinary when invoking
1392 SOURCE_LINE.
1393 (cb_undef): Likewise.
1394 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
1395 invoking cb_file_change.
1396 (c_finish_options): Likewise.
1397 (push_command_line_include): Likewise.
1398 (cb_file_change): Strengthen param "new_map" from
1399 const line_map * to const line_map_ordinary *.
1400 * c-ppoutput.c (cb_define): Likewise for local "map".
1401 (pp_file_change): Likewise for param "map" and local "from".
1402
fab27f52
MM
14032015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
1404
1405 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
1406
2fe1d762
TV
14072015-05-18 Tom de Vries <tom@codesourcery.com>
1408
1409 * c-common.c (build_va_arg_1): New function.
1410 (build_va_arg): Add address operator to va_list operand if necessary.
1411
7a37fa90
MM
14122015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
1413
1414 PR c/48956
1415 * c-common.c (int_safely_convertible_to_real_p): Define.
1416 (unsafe_conversion_p): Check conversions involving complex types.
1417 (conversion_warning): Add new warning message for conversions which
1418 discard imaginary component.
1419 * c-common.h: (enum conversion_safety): Add new enumerator for such
1420 conversions.
1421
3aa3c9fc
MP
14222015-05-14 Marek Polacek <polacek@redhat.com>
1423
1424 PR c/66066
1425 PR c/66127
1426 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
1427 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
1428 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
1429 use it. If FOR_INT_CONST, require that all evaluated operands be
1430 INTEGER_CSTs.
1431
c3388e62
DM
14322015-05-12 David Malcolm <dmalcolm@redhat.com>
1433
1434 * c-common.h (warn_for_misleading_indentation): New prototype.
1435 * c-indentation.c: New file.
1436 * c.opt (Wmisleading-indentation): New option.
1437
c7b38fd5
TV
14382015-05-12 Tom de Vries <tom@codesourcery.com>
1439
1440 PR tree-optimization/66010
1441 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
1442
381bf11e
JM
14432015-05-09 Jason Merrill <jason@redhat.com>
1444
edff0c06
JM
1445 * c-opts.c (c_common_post_options): Also clear
1446 cpp_opts->cpp_warn_cxx11_compat.
1447
129211bc
JM
1448 * c-common.h (enum cxx_dialect): Add cxx_unset.
1449 * c-common.c (cxx_dialect): Initialize to cxx_unset.
1450 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
1451
381bf11e
JM
1452 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
1453 (std=gnu++0x): Mark as Undocumented.
1454 (std=gnu++1y): Add deprecated message.
1455
fe191308
JM
14562015-05-08 Jason Merrill <jason@redhat.com>
1457
765189ff
JM
1458 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
1459 * c-opts.c: Adjust.
1460
fe191308
JM
1461 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
1462
755e528f
MP
14632015-05-08 Marek Polacek <polacek@redhat.com>
1464
1465 PR c/64918
1466 * c.opt (Woverride-init-side-effects): New option.
1467
0173bd2a
MP
14682015-05-07 Marek Polacek <polacek@redhat.com>
1469
1470 PR c/65179
1471 * c-common.c (c_fully_fold_internal): Warn when left shifting a
1472 negative value.
1473 * c.opt (Wshift-negative-value): New option.
1474 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
1475 when -Wextra and C99/C++11 mode.
1476
e0f0d3b9
MP
14772015-05-07 Marek Polacek <polacek@redhat.com>
1478 Martin Uecker <uecker@eecs.berkeley.edu>
1479
1480 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
1481 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
1482
8243e2a9
JM
14832015-05-05 Jason Merrill <jason@redhat.com>
1484
1485 * c.opt (Wterminate): New.
1486
577cd070
MP
14872015-04-30 Marek Polacek <polacek@redhat.com>
1488
1489 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
1490 require that the non-constant be of a boolean type.
1491
0373796b
JT
14922015-04-29 Josh Triplett <josh@joshtriplett.org>
1493
e0f0d3b9
MP
1494 * c-common.c (handle_section_attribute): Refactor to reduce
1495 nesting and distinguish between error cases.
0373796b 1496
716c0ba6
MP
14972015-04-29 Marek Polacek <polacek@redhat.com>
1498
1499 PR c/64610
1500 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
1501 with 0/1.
1502
8848828b
JJ
15032015-04-29 Jakub Jelinek <jakub@redhat.com>
1504
1505 * c-common.h (omp_clause_mask): Unconditionally define as a class.
1506 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
1507 HOST_BITS_PER_WIDE_INT.
1508
ecd0e562
TV
15092015-04-28 Tom de Vries <tom@codesourcery.com>
1510
1511 PR tree-optimization/65887
1512 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
1513
2a877204 15142015-04-28 Eric Botcazou <ebotcazou@adacore.com>
e0f0d3b9 1515 Pierre-Marie de Rodat <derodat@adacore.com>
2a877204
EB
1516
1517 * c-ada-spec.c (in_function): Delete.
1518 (dump_generic_ada_node): Do not change in_function and remove the
1519 redundant code dealing with it.
1520 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
1521 (print_ada_methods): Output the static member functions in a nested
1522 package after the regular methods as well as associated renamings.
1523
4853031e
MP
15242015-04-24 Marek Polacek <polacek@redhat.com>
1525
1526 PR c/65830
1527 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
1528 and OPT_Wshift_count_overflow.
1529
8c2b7f79
MP
1530 PR c/63357
1531 * c-common.c (warn_logical_operator): Warn if the operands have the
1532 same expressions.
1533
b8787813
MP
15342015-04-24 Marek Polacek <polacek@redhat.com>
1535
1536 PR c/61534
1537 * c-common.c (warn_logical_operator): Bail if either operand comes
1538 from a macro expansion.
1539
8fba1830
BRF
15402015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1541
1542 PR target/55143
1543 * c-common.c (c_default_pointer_mode): Add definition.
1544 * c-common.h (c_default_pointer_mode): Add declaration.
1545
17958621
JJ
15462015-03-11 Jakub Jelinek <jakub@redhat.com>
1547
1548 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
1549 on record_builtin_type argument.
1550
7ccb1a11
JJ
15512015-03-10 Jakub Jelinek <jakub@redhat.com>
1552
1553 PR c/65120
1554 * c-common.c (warn_logical_not_parentheses): Don't warn for
1555 !x == 0 or !x != 0.
1556
04fd785e
MP
15572015-03-07 Marek Polacek <polacek@redhat.com>
1558
1559 PR sanitizer/65280
1560 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
1561 before trying to figure out whether we have a flexible array member.
1562
a4e26206
EB
15632015-03-06 Eric Botcazou <ebotcazou@adacore.com>
1564 Jonathan Wakely <jwakely.gcc@gmail.com>
1565
1566 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
1567
0d2489f4
EB
15682015-03-05 Eric Botcazou <ebotcazou@adacore.com>
1569
1570 PR ada/65319
1571 * c-ada-spec.c (print_destructor): Remove obsolete code.
1572
83ed54d7
EB
15732015-03-01 Eric Botcazou <ebotcazou@adacore.com>
1574
1575 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
1576 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
1577 DECL_TEMPLATE_RESULT emulations.
1578 (dump_ada_template)): Add guard for TYPE_METHODS.
1579
7631f0e2
MP
15802015-02-27 Marek Polacek <polacek@redhat.com>
1581
1582 PR c/65040
1583 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
1584
d1783ae5
KT
15852015-02-27 Kai Tietz <ktietz@redhat.com>
1586
1587 PR c/35330
1588 * c-pragma.c (handle_pragma_weak): Do not try to create
1589 weak/alias of declarations not being function, or variable
1590 declarations.
1591
56a9f6bc
TS
15922015-02-24 Thomas Schwinge <thomas@codesourcery.com>
1593
1594 PR libgomp/64625
1595 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
1596 Remove macros.
1597 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
1598
3d5cb23d
MP
15992015-02-16 Marek Polacek <polacek@redhat.com>
1600
1601 PR c/65066
1602 * c-format.c (check_format_types): Handle null param.
1603
fa008882
MP
16042015-02-13 Marek Polacek <polacek@redhat.com>
1605
1606 PR c/65040
1607 * c-format.c (check_format_types): Don't warn about different
1608 signedness if the original value is in the range of WANTED_TYPE.
1609
785f21af
JM
16102015-02-12 Jason Merrill <jason@redhat.com>
1611
1612 PR c++/64956
1613 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
1614 to the current highest version.
1615 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
1616
4886ec8e
JJ
16172015-02-04 Jakub Jelinek <jakub@redhat.com>
1618
1619 PR c/64824
1620 PR c/64868
1621 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
1622 instead of RDIV_EXPR. Use build_binary_op instead of
1623 build2_loc.
1624
40fecdd6
JM
16252015-01-30 Joseph Myers <joseph@codesourcery.com>
1626
1627 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
1628 to pass input_location as first argument.
1629
a0c88d06
TV
16302015-01-23 Tom de Vries <tom@codesourcery.com>
1631
1632 PR libgomp/64672
1633 * c.opt (fopenacc): Mark as LTO option.
1634
1506ae0e
TV
16352015-01-23 Tom de Vries <tom@codesourcery.com>
1636
1637 PR libgomp/64707
1638 * c.opt (fopenmp): Mark as LTO option.
1639
31be63ab
JJ
16402015-01-21 Jakub Jelinek <jakub@redhat.com>
1641
1642 PR c/63307
b1726d6c 1643 * cilk.c (fill_decls_vec): Only put decls into vector v.
31be63ab
JJ
1644 (compare_decls): Fix up formatting.
1645
16462015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
1647
1648 PR c/63307
1649 * cilk.c: Include vec.h.
1650 (struct cilk_decls): New structure.
1651 (wrapper_parm_cb): Split this function to...
1652 (fill_decls_vec): ...this...
1653 (create_parm_list): ...and this.
1654 (compare_decls): New function.
1655 (for_local_cb): Remove.
1656 (wrapper_local_cb): Ditto.
1657 (build_wrapper_type): For now first traverse and fill vector of
1658 declarations then sort it and then deal with sorted vector.
1659 (cilk_outline): Ditto.
1660 (declare_one_free_variable): Ditto.
1661
6875457f
JM
16622015-01-21 Jason Merrill <jason@redhat.com>
1663
1664 PR c++/64629
1665 * c-format.c (check_format_arg): Call decl_constant_value.
1666
185c9e56
ML
16672015-01-19 Martin Liska <mliska@suse.cz>
1668
1669 * c-common.c (handle_noicf_attribute): New function.
1670
41dbbb37
TS
16712015-01-15 Thomas Schwinge <thomas@codesourcery.com>
1672 Bernd Schmidt <bernds@codesourcery.com>
1673 James Norris <jnorris@codesourcery.com>
1674 Cesar Philippidis <cesar@codesourcery.com>
1675 Ilmir Usmanov <i.usmanov@samsung.com>
1676 Jakub Jelinek <jakub@redhat.com>
1677
1678 * c.opt (fopenacc): New option.
1679 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
1680 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
1681 New macros.
1682 * c-common.h (c_finish_oacc_wait): New prototype.
1683 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
1684 (c_finish_oacc_wait): New function.
1685 * c-pragma.c (oacc_pragmas): New variable.
1686 (c_pp_lookup_pragma, init_pragma): Handle it.
1687 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
1688 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
1689 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
1690 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
1691 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
1692 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
1693 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
1694 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
1695 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
1696 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
1697 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
1698 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
1699 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
1700 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
1701 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
1702 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
1703 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
1704 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
1705 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
1706 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
1707 PRAGMA_OACC_CLAUSE_WORKER.
1708
5434dc07
MD
17092015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
1710
1711 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
1712 for the new option fstack-protector_explicit.
1713 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
1714 (handle_stack_protect_attribute): New function.
1715
de1b5c17
MU
17162015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
1717
1718 * c.opt: New option -Warray-bounds=.
1719
adfac8df
JJ
17202015-01-09 Michael Collison <michael.collison@linaro.org>
1721
1722 * array-notation-common.c: Include hash-set.h, machmode.h,
1723 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1724 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
1725 * c-ada-spec.c: Ditto.
1726 * c-cilkplus.c: Ditto.
1727 * c-common.c: Include input.h due to flattening of tree.h.
1728 Define macro GCC_C_COMMON_C.
1729 * c-common.h: Flatten tree.h header files into c-common.h.
1730 Remove include of tree-core.h.
1731 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
1732 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1733 fold-const.h, wide-int.h, and inchash.h due to
1734 flattening of tree.h.
1735 * c-dump.c: Ditto.
1736 * c-format.c: Flatten tree.h header files into c-common.h.
1737 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
1738 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1739 fold-const.h, wide-int.h, and inchash.h due to
1740 flattening of tree.h.
1741 * c-dump.c: Include hash-set.h, machmode.h,
1742 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1743 fold-const.h, wide-int.h, and inchash.h due to
1744 flattening of tree.h.
1745 * c-format.c: Include hash-set.h, machmode.h,
1746 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1747 fold-const.h, wide-int.h, inchash.h and real.h due to
1748 flattening of tree.h.
1749 * c-gimplify.c: Include hash-set.h, machmode.h,
1750 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1751 fold-const.h, wide-int.h, and inchash.h due to
1752 flattening of tree.h.
1753 * cilk.c: Ditto.
1754 * c-lex.c: Ditto.
1755 * c-omp.c: Ditto.
1756 * c-opts.c: Ditto.
1757 * c-pch.c: Ditto.
1758 * c-ppoutput.c: Ditto.
1759 * c-pragma.c: Ditto.
1760 * c-pretty-print.c: Ditto.
1761 * c-semantics.c: Ditto.
1762 * c-ubsan.c: Ditto.
1763 * stub-objc.c: Ditto.
1764
f5481fc4
JM
17652015-01-08 Jason Merrill <jason@redhat.com>
1766
1767 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
1768 do_ubsan_in_current_function.
1769 (ubsan_maybe_instrument_reference_or_call): Likewise.
1770 * c-ubsan.h: Declare it.
1771
de35aa66
MS
17722015-01-08 Mike Stump <mikestump@comcast.net>
1773
1774 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
1775
4a9a42ab
MP
17762015-01-07 Marek Polacek <polacek@redhat.com>
1777
1778 PR c/64440
1779 * c-common.c (c_fully_fold_internal): Warn for division and modulo
1780 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
1781
2f42e5de
TS
17822015-01-05 Trevor Saunders <tsaunders@mozilla.com>
1783
1784 PR c++/31397
1785 * c.opt (Wsuggest-override): New option.
1786
5624e564
JJ
17872015-01-05 Jakub Jelinek <jakub@redhat.com>
1788
1789 Update copyright years.
1790
5bd012f8
MP
17912015-01-05 Marek Polacek <polacek@redhat.com>
1792
1793 PR c/64423
1794 * c-common.c (warn_array_subscript_with_type_char): Add location_t
1795 parameter. Use it.
1796 * c-common.h (warn_array_subscript_with_type_char): Update
1797 declaration.
1798
a7fa8d18
ESR
17992014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
1800
1801 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
1802 Control macro with flag_sized_deallocation.
1803
768952be
MU
18042014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
1805
1806 * c.opt (Wdiscarded-array-qualifiers): New option.
1807
1f8d3e84
JJ
18082014-12-19 Jakub Jelinek <jakub@redhat.com>
1809
1810 PR preprocessor/63831
1811 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
1812 and __has_cpp_attribute here.
1813 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
1814 c_common_has_attribute.
1815 * c-common.h (c_common_has_attribute): New prototype.
1816 * c-lex.c (init_c_lex): Set cb->has_attribute to
1817 c_common_has_attribute instead of cb_has_attribute.
1818 (get_token_no_padding): New function.
1819 (cb_has_attribute): Renamed to ...
1820 (c_common_has_attribute): ... this. No longer static. Use
1821 get_token_no_padding, require ()s, don't build TREE_LIST
1822 unnecessarily, fix up formatting, adjust diagnostics, call
1823 init_attributes.
1824
20b06add
JM
18252014-12-15 Jason Merrill <jason@redhat.com>
1826
1827 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
1828 (-Wsized-deallocation): New.
1829 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
1830 to on in C++14 and up.
1831
94a073b2
JM
18322014-12-11 Jason Merrill <jason@redhat.com>
1833
acaa5911
JM
1834 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
1835
94a073b2
JM
1836 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
1837 we aren't complaining about VLAs.
1838
7fb66c15
MP
18392014-12-06 Marek Polacek <polacek@redhat.com>
1840
1841 PR tree-optimization/64183
1842 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
1843 shift-expression if it is integer_type_node. Use types_compatible_p.
1844
b731b390
JJ
18452014-11-29 Jakub Jelinek <jakub@redhat.com>
1846
1847 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
1848 last argument from create_tmp_var_raw and create_tmp_var calls.
1849 * cilk.c (gimplify_cilk_spawn): Likewise.
1850 * c-omp.c (c_finish_omp_atomic): Likewise.
1851
6a4da643
MP
18522014-11-28 Marek Polacek <polacek@redhat.com>
1853
1854 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
1855 instead of unsigned_type_node.
1856
541e35a6
MP
18572014-11-28 Marek Polacek <polacek@redhat.com>
1858
1859 PR c/63862
1860 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
1861 to op1_utype.
1862 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
1863 expression to unsigned_type_node.
1864
dcc97066
MW
18652014-11-20 Mark Wielaard <mjw@redhat.com>
1866
1867 PR debug/38757
1868 * c-opts.c (set_std_c89): Set lang_hooks.name.
1869 (set_std_c99): Likewise.
1870 (set_std_c11): Likewise.
1871 (set_std_cxx98): Likewise.
1872 (set_std_cxx11): Likewise.
1873 (set_std_cxx14): Likewise.
1874 (set_std_cxx1z): Likewise.
1875
aa7da51a
JJ
18762014-11-21 Jakub Jelinek <jakub@redhat.com>
1877
1878 PR target/63764
1879 * c-common.h (convert_vector_to_pointer_for_subscript): Change
1880 return type to bool.
009a3480 1881 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
1882 (convert_vector_to_pointer_for_subscript): Change return type to
1883 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
1884 and copy it into a TARGET_EXPR and use that instead of *vecp
1885 directly.
1886
538dd0b7
DM
18872014-11-19 David Malcolm <dmalcolm@redhat.com>
1888
1889 Merger of git branch "gimple-classes-v2-option-3".
1890 * ChangeLog.gimple-classes: New.
1891 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
1892 from being just a vec<gimple> to a vec<gbind *>.
1893
c39a5e99
JJ
18942014-11-18 Jakub Jelinek <jakub@redhat.com>
1895
1896 PR sanitizer/63813
1897 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
1898 argument to ptype, set type to TREE_TYPE (ptype). Don't call
1899 get_pointer_alignment for non-pointers. Use ptype, or if it is
1900 reference type, corresponding pointer type, as type of kind
1901 argument.
1902 (ubsan_maybe_instrument_reference,
1903 ubsan_maybe_instrument_member_call): Adjust callers.
1904
8537a4a9
MP
19052014-11-15 Marek Polacek <polacek@redhat.com>
1906
1907 PR middle-end/63884
1908 * array-notation-common.c (is_sec_implicit_index_fn): Return false
1909 for NULL fndecl.
1910 (extract_array_notation_exprs): Return for NULL node.
1911
2079956a
JM
19122014-11-12 Joseph Myers <joseph@codesourcery.com>
1913
1914 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
1915 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
1916
1304953e
JJ
19172014-11-12 Jakub Jelinek <jakub@redhat.com>
1918
1919 PR c/59708
1920 * c-common.c (check_builtin_function_arguments): Handle
1921 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
1922
e5e44252
AK
19232014-11-10 Andi Kleen <ak@linux.intel.com>
1924
1925 PR c/60804
1926 * c-common.h (check_no_cilk): Declare.
1927 * cilk.c (get_error_location): New function.
1928 (check_no_cilk): Dito.
1929
e64b984d
AK
19302014-11-10 Andi Kleen <ak@linux.intel.com>
1931
1932 * cilk.c (recognize_spawn): Use expression location
1933 for error message.
1934
13c21655
PC
19352014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
1936
1937 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
1938
42fd12b1
ESR
19392014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
1940
1941 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
1942 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
1943 (__cpp_range_based_for, __cpp_initializer_lists,
1944 __cpp_delegating_constructors, __cpp_nsdmi,
1945 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
1946 for C++11; (__cpp_attribute_deprecated): Remove in favor of
1947 __has_cpp_attribute.
1948 * c-lex.c (cb_has_attribute): New callback CPP function;
1949 (init_c_lex): Set has_attribute callback.
1950
6f450181
RB
19512014-11-04 Richard Biener <rguenther@suse.de>
1952
1953 * c-common.c (shorten_compare): Do not shorten mixed
1954 DFP and non-DFP compares.
1955
26f0e1d6
ESR
19562014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
1957
1958 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
1959 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
1960 Commentary and rearrangement of tests.
1961 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
1962 Commentary and rearrangement of tests.
1963 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
1964 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
1965
ef4bddc2
RS
19662014-10-29 Richard Sandiford <richard.sandiford@arm.com>
1967
1968 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
1969 enum from machine_mode.
1970
c582198b
AM
19712014-10-28 Andrew MacLeod <amacleod@redhat.com>
1972
adfac8df
JJ
1973 * c-common.c: Adjust include files.
1974 * c-gimplify.c: Ditto.
1975 * cilk.c: Ditto.
1976 * c-pragma.c: Ditto.
1977 * c-ubsan.c: Ditto.
c582198b 1978
60393bbc
AM
19792014-10-27 Andrew MacLeod <amacleod@redhat.com>
1980
1981 * c-gimplify.c: Adjust include files.
1982
d723bb7c
MLI
19832014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
1984
1985 PR c++/53061
1986 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
1987 c_common_initialize_diagnostics.
1988 * c-common.h: Likewise.
1989
90f3520e
MP
19902014-10-24 Marek Polacek <polacek@redhat.com>
1991
1992 PR c/56980
1993 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
1994 print "struct"/"union"/"enum" for typedefed names.
1995
59d7607a
MP
19962014-10-23 Marek Polacek <polacek@redhat.com>
1997
1998 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
1999 in unsigned type.
2000
d95a2703
JJ
20012014-10-22 Jakub Jelinek <jakub@redhat.com>
2002 Yury Gribov <y.gribov@samsung.com>
2003
2004 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2005 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
2006 instead of flag_sanitize_recover as bool flag.
2007
8e6ef852
KY
20082014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
2009
2010 * cilk.c: Revert previous change.
2011
948cf550
IZ
20122014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
2013
2014 PR c/63307
2015 * cilk.c: Include vec.h.
2016 (struct cilk_decls): New structure.
2017 (wrapper_parm_cb): Split this function to...
2018 (fill_decls_vec): ...this...
2019 (create_parm_list): ...and this.
2020 (compare_decls): New function.
2021 (for_local_cb): Remove.
2022 (wrapper_local_cb): Ditto.
2023 (build_wrapper_type): For now first traverse and fill vector of
2024 declarations then sort it and then deal with sorted vector.
2025 (cilk_outline): Ditto.
2026 (declare_one_free_variable): Ditto.
2027
92574c7c
MP
20282014-10-17 Marek Polacek <polacek@redhat.com>
2029
2030 * c-opts.c (c_common_post_options): Set warn_implicit_int.
2031 * c.opt (Wimplicit-int): Initialize to -1.
2032
83685514
AM
20332014-10-16 Andrew MacLeod <amacleod@redhat.com>
2034
2035 * c-pragma.c: Adjust include files.
2036 * c-semantics.c: Likewise.
2037
5b8300ea
DD
20382014-10-16 DJ Delorie <dj@redhat.com>
2039
2040 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
2041 multiples of bytes.
2042
5f83e90b
JM
20432014-10-14 Jason Merrill <jason@redhat.com>
2044
2045 PR c++/63455
2046 * c-common.h (CPP_PREPARSED_EXPR): New.
2047 (N_CP_TTYPES): Adjust.
2048
d73326ca
MP
20492014-10-15 Marek Polacek <polacek@redhat.com>
2050
2051 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
2052
78a7c317
DD
20532014-10-14 DJ Delorie <dj@redhat.com>
2054
2055 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
2056 types, not just __int128.
2057 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
2058 types, not just __int128.
2059 (cpp_atomic_builtins): Round pointer sizes up.
2060 (type_suffix): Use type precision, not specific types.
2061 * c-common.c (c_common_reswords): Remove __int128 special case.
2062 (c_common_type_for_size): Check for all __intN types, not just
2063 __int128.
2064 (c_common_type_for_mode): Likewise.
2065 (c_common_signed_or_unsigned_type): Likewise.
2066 (c_build_bitfield_integer_type): Likewise.
2067 (c_common_nodes_and_builtins): Likewise.
2068 (keyword_begins_type_specifier): Likewise.
2069 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
2070 __intN variants.
2071
2a22f99c
TS
20722014-10-12 Trevor Saunders <tsaunders@mozilla.com>
2073
2074 * c-common.c: Use hash_table instead of hashtab.
2075
2a8ef767
ESR
20762014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
2077
adfac8df 2078 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
2079 C++11 section.
2080
3c9aabbd
MG
20812014-10-03 Marc Glisse <marc.glisse@inria.fr>
2082
2083 PR c++/54427
2084 PR c++/57198
2085 PR c++/58845
2086 * c-common.c (warn_logical_operator): Punt for vectors.
2087
a15f7cb8
ESR
20882014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
2089
2090 Implement SD-6: SG10 Feature Test Recommendations
2091 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
2092 macros and the __has_header macro.
2093
8d0cf15e
JM
20942014-09-30 Jason Merrill <jason@redhat.com>
2095
dd5d5481
JM
2096 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
2097 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
2098 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
2099
b752325e
JM
2100 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
2101 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
2102
8d0cf15e
JM
2103 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
2104 * c-common.c (c_common_reswords): Remove __is_convertible_to.
2105
083e891e
MP
21062014-09-24 Marek Polacek <polacek@redhat.com>
2107
2108 PR c/61405
2109 PR c/53874
2110 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
2111
7861b648
AK
21122014-09-23 Andi Kleen <ak@linux.intel.com>
2113
2114 * c-common.c (handle_no_reorder_attribute): New function.
2115 (c_common_attribute_table): Add no_reorder attribute.
2116
9a79452d
JM
21172014-09-22 Joseph Myers <joseph@codesourcery.com>
2118
2119 * c-cppbuiltin.c (c_cpp_builtins): Define
2120 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
2121 modes.
2122
dd69f047
JM
21232014-09-18 Joseph Myers <joseph@codesourcery.com>
2124
2125 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
2126 for supported floating-point modes.
2127
737a4826
MLI
21282014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2129
2130 * c.opt (Wpsabi): Use LangEnabledBy.
2131 * c-opts.c (c_common_handle_option): Do not handle here.
2132
8cc4b7a2
JM
21332014-09-12 Joseph Myers <joseph@codesourcery.com>
2134
2135 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
2136 macros for floating-point modes.
2137
179b5a55
MG
21382014-09-11 Marc Glisse <marc.glisse@inria.fr>
2139
2140 PR target/58757
2141 * c-cppbuiltin.c (builtin_define_float_constants): Correct
2142 __*_DENORM_MIN__ without denormals.
2143
570a11fe
JJ
21442014-09-10 Jakub Jelinek <jakub@redhat.com>
2145
2146 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2147 ubsan_instrument_vla, ubsan_instrument_return): Adjust
2148 ubsan_create_data callers.
2149 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
2150 index is constant or BIT_AND_EXPR with constant mask and is
2151 small enough for the bound.
2152 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
2153 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
2154
b559c810
MLI
21552014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2156
2157 * c.opt: Add CppReason to various flags.
2158 (Wdate-time): Re-sort.
2159 * c-common.c: Include c-common.h earlier.
2160 (struct reason_option_codes_t): Delete.
2161 (c_option_controlling_cpp_error): Prefix global type and struct
2162 with cpp_.
2163
1ef33fd4
MLI
21642014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2165
2166 * c.opt (Wnormalized): New.
2167 (Wnormalized=): Use Enum and Reject Negative.
2168 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
2169
66bb34c0
JM
21702014-09-08 Joseph Myers <joseph@codesourcery.com>
2171
2172 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
2173 digits of floating-point modes if -fbuilding-libgcc.
2174
53d68b9f
JM
21752014-09-05 Joseph Myers <joseph@codesourcery.com>
2176
2177 * c-cppbuiltin.c (c_cpp_builtins): Also define
2178 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
2179 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
2180 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
2181 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
2182 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
2183 __LIBGCC_STACK_GROWS_DOWNWARD__,
2184 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
2185 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
2186 __LIBGCC_DWARF_FRAME_REGISTERS__,
2187 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
2188 __LIBGCC_STACK_POINTER_REGNUM__ and
2189 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
2190 (builtin_define_with_value): Handle backslash-escaping in string
2191 macro values.
2192
f65586dc
RB
21932014-09-05 Richard Biener <rguenther@suse.de>
2194
2195 PR middle-end/63148
2196 * c-format.c (check_format_arg): Properly handle
2197 effectively signed POINTER_PLUS_EXPR offset.
2198
2b71f4a4
MLI
21992014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
2200
2201 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
2202 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
2203 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
2204 and Init.
2205 * c-opts.c (c_common_handle_option): Do not handle here.
2206 (sanitize_cpp_opts): Likewise.
2207 * c-common.c (struct reason_option_codes_t): Handle
2208 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
2209
d2e4feca
MP
22102014-09-03 Marek Polacek <polacek@redhat.com>
2211
2212 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
2213
9a771876
JJ
22142014-09-02 Jakub Jelinek <jakub@redhat.com>
2215 Balaji V. Iyer <balaji.v.iyer@intel.com>
2216 Igor Zamyatin <igor.zamyatin@intel.com>
2217
2218 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
2219 * c-common.c (c_common_reswords): Added _Cilk_for.
2220 * c-common.h (enum rid): Added RID_CILK_FOR.
2221 (cilk_for_number_of_iterations): Add declaration.
2222 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
2223 CILK_FOR.
2224 * c-pragma.c (init_pragma): Register "grainsize" pragma.
2225 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
2226
81b5d104
MLI
22272014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2228
2229 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
2230 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
2231 Wundef): Use CPP, Var and Init.
2232 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
2233
b753b37b
MLI
22342014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2235
2236 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
2237 * c-opts.c (c_common_handle_option): Do not handle here.
2238
028aee17
JM
22392014-08-25 Jason Merrill <jason@redhat.com>
2240
2241 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
2242 -std=c++14 and -std=gnu++14, rather than the reverse.
2243 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
2244 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
2245 * c-common.h (cxx_dialect): Remove cxx1y.
2246
e4276ba5
ESR
22472014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
2248
2249 * c-common.h (enum cxx_dialect): Add cxx14.
2250 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
2251 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
2252 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
2253
a545cacd
JM
22542014-08-22 Jason Merrill <jason@redhat.com>
2255
2256 * c.opt (std=gnu++17): Fix alias.
2257
59ea0364
MP
22582014-08-22 Marek Polacek <polacek@redhat.com>
2259
2260 PR c++/62199
2261 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
2262 check for vector types. Drop LHS argument.
2263 * c-common.h (warn_logical_not_parentheses): Adjust.
2264
596e808c
MLI
22652014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2266
2267 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
2268 (Wmultichar): Likewise.
2269 (Wdate-time): Use C-family languages instead of Common. Use CPP
2270 and Var.
2271 * c-opts.c (c_common_handle_option): Do not handle the above
2272 options here.
2273 (sanitize_cpp_opts): Likewise.
2274
18767f65
MLI
22752014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
2276
2277 PR fortran/44054
2278 * c-opts.c: Include tree-diagnostics.h.
2279 (c_diagnostic_finalizer): New.
2280 (c_common_initialize_diagnostics): Use it.
2281
b4413594
MLI
22822014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2283
2284 PR preprocessor/51303
2285 * c-common.c (struct reason_option_codes_t option_codes):
2286 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
2287
43f9a13c
MLI
22882014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2289
2290 PR c/60975
2291 PR c/53063
2292 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
2293 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
2294 (c_common_post_options): Call init_global_opts_from_cpp.
2295 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
2296
04159acf
MP
22972014-08-19 Marek Polacek <polacek@redhat.com>
2298
2299 PR c++/62153
2300 * c-common.c (maybe_warn_bool_compare): New function.
2301 * c-common.h (maybe_warn_bool_compare): Declare.
2302 * c.opt (Wbool-compare): New option.
2303
35aff4fb
MP
23042014-08-19 Marek Polacek <polacek@redhat.com>
2305
2306 * c.opt (Wc99-c11-compat): New option.
2307
177cce46
MP
23082014-08-19 Marek Polacek <polacek@redhat.com>
2309
2310 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
2311 to warn_c90_c99_compat.
2312 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
2313 to -1.
2314
6ae9194f
MLI
23152014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
2316 Steven Bosscher <steven@gcc.gnu.org>
2317
2318 PR c/52952
2319 * c-format.c: Add extra_arg_loc and format_string_loc to struct
2320 format_check_results.
2321 (check_function_format): Use true and add comment for boolean
2322 argument.
2323 (finish_dollar_format_checking): Use explicit location when warning.
2324 (check_format_info): Likewise.
2325 (check_format_arg): Set extra_arg_loc and format_string_loc.
2326 (check_format_info_main): Use explicit location when warning.
2327 (check_format_types): Pass explicit location.
2328 (format_type_warning): Likewise.
2329
8e54f6d3
MLI
23302014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2331
2332 PR fortran/44054
2333 * c-format.c: Handle Fortran flags.
2334
cd4e76fc
IZ
23352014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
2336
2337 PR other/61962
2338 * array-notation-common.c (find_rank): Added handling for other
2339 types of references.
2340
f3bede71
MP
23412014-08-10 Marek Polacek <polacek@redhat.com>
2342
2343 PR c/51849
2344 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
2345 * c.opt (Wc90-c99-compat): Add option.
2346
9f25a338
TS
23472014-08-07 Trevor Saunders <tsaunders@mozilla.com>
2348
2349 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
2350
62e4eb35
MP
23512014-08-03 Marek Polacek <polacek@redhat.com>
2352
2353 * c-common.c (check_case_value): Add location_t parameter. Use it.
2354 (c_add_case_label): Pass loc to check_case_value.
2355
b787e7a2
TS
23562014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2357
2358 * cilk.c: Use hash_map instead of pointer_map.
2359
6e2830c3
TS
23602014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2361
2362 * c-gimplify.c: Use hash_set instead of pointer_set.
2363
a7ee52fb
IZ
23642014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
2365
2366 PR middle-end/61455
2367 * array-notation-common.c (extract_array_notation_exprs): Handling
2368 of DECL_EXPR added.
2369
944fa280
JJ
23702014-08-01 Jakub Jelinek <jakub@redhat.com>
2371
2372 * c-common.h (min_align_of_type): Removed prototype.
2373 * c-common.c (min_align_of_type): Removed.
2374 * c-ubsan.h (ubsan_maybe_instrument_reference,
2375 ubsan_maybe_instrument_member_call): New prototypes.
2376 * c-ubsan.c: Include stor-layout.h and builtins.h.
2377 (ubsan_maybe_instrument_reference_or_call,
2378 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
2379 functions.
2380
b4dfdc11
MG
23812014-07-31 Marc Glisse <marc.glisse@inria.fr>
2382
2383 PR c++/60517
2384 * c.opt (-Wreturn-local-addr): Move to common.opt.
2385
a41844e5
JM
23862014-07-30 Jason Merrill <jason@redhat.com>
2387
2388 PR c++/61659
2389 PR c++/61687
2390 Revert:
2391 * c.opt (-fuse-all-virtuals): New.
2392
976d5a22
TT
23932014-07-30 Tom Tromey <tromey@redhat.com>
2394
2395 PR c/59855
2396 * c.opt (Wdesignated-init): New option.
2397 * c-common.c (c_common_attribute_table): Add "designated_init".
2398 (handle_designated_init): New function.
2399
cdc94aca
MP
24002014-07-24 Marek Polacek <polacek@redhat.com>
2401
2402 PR c/57653
2403 * c-opts.c (c_finish_options): If -imacros is in effect, return.
2404
f41373b6
DS
24052014-07-16 Dodji Seketeli <dodji@redhat.com>
2406
2407 PR preprocessor/60723 - missing system-ness marks for macro tokens
2408 * c-ppoutput.c (struct print::prev_was_system_token): New data
2409 member.
2410 (init_pp_output): Initialize it.
2411 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
2412 (do_line_change): Return a flag saying if a line marker was
2413 emitted or not.
2414 (scan_translation_unit): Detect if the system-ness of the token we
2415 are about to emit is different from the one of the previously
2416 emitted token. If so, emit a line marker. Avoid emitting useless
2417 adjacent line markers. Avoid emitting line markers for tokens
2418 originating from the expansion of built-in macros.
2419 (scan_translation_unit_directives_only): Adjust.
2420
4d661eaa
MP
24212014-07-15 Marek Polacek <polacek@redhat.com>
2422
2423 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
2424 TYPE_MAX_VALUE is NULL.
2425
b108f48f
JJ
24262014-07-14 Jakub Jelinek <jakub@redhat.com>
2427
2428 PR middle-end/61294
2429 * c.opt (Wmemset-transposed-args): New warning.
2430
c0221884
JM
24312014-07-10 Jason Merrill <jason@redhat.com>
2432
2433 PR c++/61659
2434 PR c++/61687
2435 * c.opt (-fuse-all-virtuals): New.
2436
63dfbb95
RB
24372014-07-09 Richard Biener <rguenther@suse.de>
2438
2439 PR c-family/61741
2440 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2441 using unsigned arithmetic if overflow does not wrap instead of
2442 if overflow is undefined.
2443
773ec47f
MP
24442014-07-06 Marek Polacek <polacek@redhat.com>
2445
2446 PR c/6940
2447 * c.opt (Wsizeof-array-argument): New option.
2448
00a7ba58
JJ
24492014-07-03 Jakub Jelinek <jakub@redhat.com>
2450
b1726d6c 2451 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
00a7ba58
JJ
2452 comments->count <= 1, as comments->entries might be NULL.
2453
52ec0ea3
MP
24542014-07-01 Marek Polacek <polacek@redhat.com>
2455
2456 * c.opt (Wint-conversion): New option.
2457
d5c3d343
MP
24582014-07-01 Marek Polacek <polacek@redhat.com>
2459
2460 PR c/58286
2461 * c.opt (Wincompatible-pointer-types): New option.
2462
6e7ceb17
PC
24632014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
2464
2465 PR c++/51400
2466 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
2467 Do not discard TYPE_QUALS of type.
2468
da73100b
JM
24692014-06-26 Jason Merrill <jason@redhat.com>
2470
2471 * c-common.h (enum cxx_dialect): Add cxx1z.
2472 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
2473 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
2474
08eedf75
TJ
24752014-06-26 Teresa Johnson <tejohnson@google.com>
2476
2477 * c-common.h (get_dump_info): Declare.
2478 * c-gimplify.c (c_genericize): Use saved dump files.
2479 * c-opts.c (c_common_parse_file): Begin and end dumps
2480 once around parsing invocation.
2481 (get_dump_info): New function.
2482
7b56b2f8
MP
24832014-06-23 Marek Polacek <polacek@redhat.com>
2484 Andrew MacLeod <amacleod@redhat.com>
2485
2486 PR c/61553
2487 * c-common.c (get_atomic_generic_size): Don't segfault if the
2488 type doesn't have a size.
2489
0e37a2f3
MP
24902014-06-20 Marek Polacek <polacek@redhat.com>
2491
2492 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
2493 (ubsan_walk_array_refs_r): New function.
2494 (c_genericize): Instrument array bounds.
2495 * c-ubsan.c: Include "internal-fn.h".
2496 (ubsan_instrument_division): Mark instrumented arrays as having
2497 side effects. Adjust ubsan_type_descriptor call.
2498 (ubsan_instrument_shift): Likewise.
2499 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
2500 (ubsan_instrument_bounds): New function.
2501 (ubsan_array_ref_instrumented_p): New function.
2502 (ubsan_maybe_instrument_array_ref): New function.
2503 * c-ubsan.h (ubsan_instrument_bounds): Declare.
2504 (ubsan_array_ref_instrumented_p): Declare.
2505 (ubsan_maybe_instrument_array_ref): Declare.
2506
25072014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
2508
2509 PR lto/61123
2510 * c.opt (fshort-enums): Add to LTO.
2511 * c.opt (fshort-wchar): Likewise.
2512
5c3d09f7
MP
25132014-06-16 Marek Polacek <polacek@redhat.com>
2514
2515 PR c/60439
2516 * c.opt (Wswitch-bool): Add Var.
2517
9cf32741
JJ
25182014-06-12 Jakub Jelinek <jakub@redhat.com>
2519
2520 PR middle-end/61486
2521 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
2522 #pragma omp target teams or
2523 #pragma omp {,target }teams distribute simd.
2524
62984918
JM
25252014-06-12 Jason Merrill <jason@redhat.com>
2526
2527 * c.opt (Wabi=, fabi-compat-version): New.
2528 * c-opts.c (c_common_handle_option): Handle -Wabi=.
2529 (c_common_post_options): Handle flag_abi_compat_version default.
2530 Disallow -fabi-compat-version=1.
2531 * c-common.h (abi_version_crosses): New.
2532
f961457f
JH
25332014-06-11 Jan Hubicka <hubicka@ucw.cz>
2534
adfac8df 2535 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
2536 section names that are no longer trees.
2537
92d28cbb
JJ
25382014-06-10 Jakub Jelinek <jakub@redhat.com>
2539
2540 PR fortran/60928
2541 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
2542 (omp_pragmas): ... back here.
2543
742938c9
MP
25442014-06-05 Marek Polacek <polacek@redhat.com>
2545
2546 PR c/49706
2547 * c-common.c (warn_logical_not_parentheses): New function.
2548 * c-common.h (warn_logical_not_parentheses): Declare.
2549 * c.opt (Wlogical-not-parentheses): New option.
2550
9d548dfb
MP
25512014-06-04 Marek Polacek <polacek@redhat.com>
2552
2553 PR c/30020
2554 * c-common.c (check_case_bounds): Add location parameter.
2555 Use it.
2556 (c_add_case_label): Pass loc to check_case_bounds.
2557
fedfecef
MP
25582014-06-03 Marek Polacek <polacek@redhat.com>
2559
2560 PR c/60439
2561 * c.opt (Wswitch-bool): New option.
2562
f6a7cffc
TS
25632014-05-22 Thomas Schwinge <thomas@codesourcery.com>
2564
040d18b6
TS
2565 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
2566 Remove prototypes.
2567 (record_types_used_by_current_var_decl): Move prototype to where
2568 it belongs.
2569
f6a7cffc
TS
2570 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
2571 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
2572 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
2573
632f2871
RS
25742014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
2575
2576 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
2577 * c-common.c (c_common_nodes_and_builtins): Don't initialize
2578 void_zero_node.
2579 * c-pretty-print.c (pp_c_void_constant): New function.
2580 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
2581 (c_pretty_printer::expression): Handle VOID_CST.
2582 * cilk.c (extract_free_variables): Likewise.
2583 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
2584 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
2585
766090c2
TS
25862014-05-17 Trevor Saunders <tsaunders@mozilla.com>
2587
2588 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
2589 * c-pragma.c (push_alignment): Adjust.
2590 (handle_pragma_push_options): Likewise.
2591
661a0813
MP
25922014-05-09 Marek Polacek <polacek@redhat.com>
2593
2594 PR c/50459
2595 * c-common.c (check_user_alignment): Return -1 if alignment is error
2596 node.
2597 (handle_aligned_attribute): Don't call default_conversion on
2598 FUNCTION_DECLs.
2599 (handle_vector_size_attribute): Likewise.
2600 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
2601 (handle_sentinel_attribute): Call default_conversion and allow even
2602 integral types as an argument.
2603
2793eeab
MP
26042014-05-08 Marek Polacek <polacek@redhat.com>
2605
2606 PR c/61053
2607 * c-common.c (min_align_of_type): New function factored out from...
2608 (c_sizeof_or_alignof_type): ...here.
2609 * c-common.h (min_align_of_type): Declare.
2610
f827930a
MP
26112014-05-08 Marek Polacek <polacek@redhat.com>
2612
2613 PR c/61077
2614 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
2615 parameter type of main.
2616
ca49b74e
DD
26172014-05-07 DJ Delorie <dj@redhat.com>
2618
2619 * c-cppbuiltin.c (print_bits_of_hex): New.
2620 (builtin_define_type_minmax): Print values using hex so as not to
2621 require a pre-computed list of string values.
2622
1d60af08
KZ
26232014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
2624 Mike Stump <mikestump@comcast.net>
2625 Richard Sandiford <rdsandiford@googlemail.com>
2626
2627 * c-ada-spec.c: Include wide-int.h.
2628 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
2629 (dump_generic_ada_node): Use wide-int interfaces.
2630 * c-common.c: Include wide-int-print.h.
2631 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
2632 (pointer_int_sum): Use wide-int interfaces.
2633 (c_common_nodes_and_builtins): Use make_int_cst.
2634 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
2635 (handle_alloc_size_attribute): Use wide-int interfaces.
2636 (get_nonnull_operand): Likewise.
2637 * c-format.c (get_constant): Use tree_fits_uhwi_p.
2638 * c-lex.c: Include wide-int.h.
2639 (narrowest_unsigned_type): Take a widest_int rather than two
2640 HOST_WIDE_INTs.
2641 (narrowest_signed_type): Likewise.
2642 (interpret_integer): Update accordingly. Use wide-int interfaces.
2643 (lex_charconst): Use wide-int interfaces.
2644 * c-pretty-print.c: Include wide-int.h.
2645 (pp_c_integer_constant): Use wide-int interfaces.
2646 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
2647 INT_CST_LT_UNSIGNED.
2648
b15458be
RB
26492014-05-06 Richard Biener <rguenther@suse.de>
2650
2651 * c-opts.c (c_common_post_options): For -freestanding,
2652 -fno-hosted and -fno-builtin disable pattern recognition
2653 if not enabled explicitely.
2654
6577374e
MP
26552014-05-02 Marek Polacek <polacek@redhat.com>
2656
2657 * c.opt (Wsizeof-pointer-memaccess): Describe option.
2658
d00887e8
MP
26592014-05-01 Marek Polacek <polacek@redhat.com>
2660
2661 PR c/43245
2662 * c.opt (Wdiscarded-qualifiers): Add.
2663
f8ed5150
MP
26642014-04-30 Marek Polacek <polacek@redhat.com>
2665
2666 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
2667 INT_MIN / -1 sanitization only for integer types.
2668
45484dcf
MP
26692014-04-25 Marek Polacek <polacek@redhat.com>
2670
2671 PR c/18079
2672 * c-common.c (handle_noinline_attribute): Warn if the attribute
2673 conflicts with always_inline attribute.
2674 (handle_always_inline_attribute): Warn if the attribute conflicts
2675 with noinline attribute.
2676
38e514c0
MP
26772014-04-25 Marek Polacek <polacek@redhat.com>
2678
2679 PR c/60156
2680 * c-common.c (check_main_parameter_types): Warn about variadic main.
2681
44875f92
MS
26822014-04-24 Mike Stump <mikestump@comcast.net>
2683
2684 * c.opt (Wshadow-ivar): Default to on.
2685
dcaaa5a0
DP
26862014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
2687
2688 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
2689
c07d7c02
MP
26902014-04-23 Marek Polacek <polacek@redhat.com>
2691
2692 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
2693
1c33c9b7
JJ
26942014-04-22 Jakub Jelinek <jakub@redhat.com>
2695
2696 PR sanitizer/60275
2697 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
2698 if flag_sanitize_undefined_trap_on_error.
2699 (ubsan_instrument_division, ubsan_instrument_shift,
2700 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
2701 if !flag_sanitize_recover.
2702
793c625f
MG
27032014-04-22 Marc Glisse <marc.glisse@inria.fr>
2704
2705 PR libstdc++/43622
2706 * c-common.c (registered_builtin_types): Make non-static.
2707 * c-common.h (registered_builtin_types): Declare.
2708
b0f1bf36
RB
27092014-04-14 Richard Biener <rguenther@suse.de>
2710 Marc Glisse <marc.glisse@inria.fr>
2711
2712 PR c/60819
2713 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
2714 apply may-alias the scalar pointer type when applicable.
2715
3b07fa4a
IZ
27162014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
2717
2718 PR middle-end/60467
2719 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
2720 as possible argument for Cilk_spawn.
2721
cbbd2b1c
TB
27222014-04-11 Tobias Burnus <burnus@net-b.de>
2723
2724 PR c/60194
2725 * c.opt (Wformat-signedness): Add
2726 * c-format.c(check_format_types): Use it.
2727
6415bd5d
JM
27282014-04-11 Jason Merrill <jason@redhat.com>
2729
2730 PR c++/57926
2731 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
2732 default_conversion for an array argument.
2733
6525783a
MP
27342014-04-08 Marek Polacek <polacek@redhat.com>
2735
2736 PR sanitizer/60745
2737 * c-ubsan.c: Include asan.h.
2738 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
2739
880a467b
NS
27402014-04-03 Nathan Sidwell <nathan@codesourcery.com>
2741
2742 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
2743
7b59ff2d
MP
27442014-04-02 Marek Polacek <polacek@redhat.com>
2745
2746 * c-common.h (c_expand_expr): Remove declaration.
2747
8edbfaa6
JJ
27482014-03-28 Jakub Jelinek <jakub@redhat.com>
2749
2750 PR c++/60689
2751 * c-common.c (add_atomic_size_parameter): When creating new
2752 params vector, push the size argument first.
2753
07d72e1d
JJ
27542014-03-26 Jakub Jelinek <jakub@redhat.com>
2755
2756 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2757 ubsan_instrument_vla, ubsan_instrument_return): Adjust
2758 ubsan_create_data callers.
2759
b35e0fa0
JJ
27602014-03-22 Jakub Jelinek <jakub@redhat.com>
2761
2762 PR debug/60603
2763 * c-opts.c (c_finish_options): Restore cb_file_change call to
2764 <built-in>.
2765
39a1ebb3
JJ
27662014-03-13 Jakub Jelinek <jakub@redhat.com>
2767
2768 PR middle-end/36282
2769 * c-pragma.c (apply_pragma_weak): Only look at
2770 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
2771 DECL_ASSEMBLER_NAME_SET_P (decl).
2772 (maybe_apply_pending_pragma_weaks): Exit early if
2773 vec_safe_is_empty (pending_weaks) rather than only when
2774 !pending_weaks.
2775 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
2776 set assembler name back to NULL afterwards.
2777
a07f6ed2
JM
27782014-03-11 Jason Merrill <jason@redhat.com>
2779
2780 * c.opt: Add -std=gnu++14.
2781
75b107f5
IB
27822014-03-11 Ian Bolton <ian.bolton@arm.com>
2783
2784 * c-opts.c (c_common_post_options): Don't override
2785 -ffp-contract=fast if unsafe-math-optimizations is on.
2786
f42c637e
PM
27872014-03-08 Paulo Matos <paulo@matos-sorge.com>
2788
2789 * c.opt: Enable LTO FE for fshort-double.
2790
70e24808
JM
27912014-03-07 Jason Merrill <jason@redhat.com>
2792
2793 * c.opt: Add -std=c++14.
2794
3af9c5e9
MP
27952014-03-06 Marek Polacek <polacek@redhat.com>
2796
2797 PR c/60197
2798 * cilk.c (contains_cilk_spawn_stmt): New function.
2799 (contains_cilk_spawn_stmt_walker): Likewise.
2800 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
2801 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
2802
b3bdf019
JJ
28032014-03-03 Jakub Jelinek <jakub@redhat.com>
2804
2805 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
2806 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
2807 even when flag_preprocess_only.
2808
ca7e759d
JM
28092014-02-26 Jason Merrill <jason@redhat.com>
2810
2811 PR c++/59231
2812 PR c++/11586
2813 * c-common.c (shorten_compare): Don't check
2814 c_inhibit_evaluation_warnings.
2815
28e41874
JJ
28162014-02-19 Jakub Jelinek <jakub@redhat.com>
2817
cca615af
JJ
2818 PR c/37743
2819 * c-common.c (c_common_nodes_and_builtins): When initializing
2820 c_uint{16,32,64}_type_node, also set corresponding
2821 uint{16,32,64}_type_node to the same value.
2822
28e41874
JJ
2823 PR c++/60267
2824 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
2825 for PRAGMA_IVDEP if flag_preprocess_only.
2826
c2bf53a1
JJ
28272014-02-12 Jakub Jelinek <jakub@redhat.com>
2828
2829 PR c/60101
2830 * c-common.c (merge_tlist): If copy is true, call new_tlist,
2831 if false, add ADD itself, rather than vice versa.
2832 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
2833 copy. For SAVE_EXPR, only call merge_tlist once.
2834
8fcbce72
JJ
28352014-02-08 Jakub Jelinek <jakub@redhat.com>
2836
2837 PR middle-end/60092
2838 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
2839 and tree_to_uhwi.
2840 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
2841 functions.
2842 (c_common_attribute_table): Add alloc_align and assume_aligned
2843 attributes.
2844
0a756a3f
MP
28452014-02-06 Marek Polacek <polacek@redhat.com>
2846
2847 PR c/60087
2848 * c-common.c (warn_for_sign_compare): Call warning_at with location
2849 instead of warning.
2850
7ec4847a
MP
28512014-02-05 Marek Polacek <polacek@redhat.com>
2852
2853 PR c/53123
2854 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
2855 statement.
2856
66f20604
MP
28572014-02-04 Marek Polacek <polacek@redhat.com>
2858
2859 PR c/60036
2860 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
2861 SAVE_EXPR.
2862
5d77fb19
MG
28632014-02-03 Marc Glisse <marc.glisse@inria.fr>
2864
2865 PR c++/53017
2866 PR c++/59211
2867 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
2868 handle_vector_size_attribute, handle_nonnull_attribute): Call
2869 default_conversion on the attribute argument.
2870 (handle_nonnull_attribute): Increment the argument number.
2871
81e5eca8
MP
28722014-01-31 Marek Polacek <polacek@redhat.com>
2873
2874 PR c/59963
2875 * c-common.c (add_atomic_size_parameter): Pass vNULL to
2876 build_function_call_vec.
2877 (resolve_overloaded_builtin): Likewise.
2878 * c-common.h (build_function_call_vec): Adjust declaration.
2879
68fca595
MP
28802014-01-30 Marek Polacek <polacek@redhat.com>
2881
2882 PR c/59940
2883 * c-common.h (unsafe_conversion_p): Adjust declaration.
2884 (warnings_for_convert_and_check): Likewise.
2885 (convert_and_check): Likewise.
2886 * c-common.c (unsafe_conversion_p): Add location parameter. Call
2887 expansion_point_location_if_in_system_header on it.
2888 (warnings_for_convert_and_check): Add location parameter. Call
2889 expansion_point_location_if_in_system_header on it. Use it.
2890 (convert_and_check): Add location parameter. Use it.
2891 (conversion_warning): Likewise.
2892 (c_add_case_label): Adjust convert_and_check calls.
2893 (scalar_to_vector): Adjust unsafe_conversion_p calls.
2894
b72271b9
BI
28952014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
2896
2897 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
2898 flag_cilkplus.
2899 * c-pragma.c (init_pragma): Likewise.
2900 * c.opt: Likewise.
2901
393e8e8b
MP
29022014-01-23 Marek Polacek <polacek@redhat.com>
2903
2904 PR c/59846
2905 * c-common.c (shorten_compare): Add location_t parameter.
2906 * c-common.h (shorten_binary_op): Adjust declaration.
2907
f04dda30
MP
29082014-01-23 Marek Polacek <polacek@redhat.com>
2909
2910 PR c/58346
2911 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
2912 * c-common.h: Declare it.
2913
621955cb
EB
29142014-01-20 Eric Botcazou <ebotcazou@adacore.com>
2915
2916 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
2917 * c-ada-spec.c (dump_ads): Likewise.
2918 (cpp_check): Likewise.
2919 (dump_ada_specs): Likewise.
2920
29212014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
2922
2923 PR c++/49718
2924 * c-common.c (handle_no_instrument_function_attribute): Allow
2925 no_instrument_function attribute in class member
2926 definition/declaration.
2927
241f845a
JJ
29282014-01-15 Jakub Jelinek <jakub@redhat.com>
2929
2930 PR c/58943
2931 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
2932 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
2933 being COMPOUND_EXPR.
2934 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
2935 operand a SAVE_EXPR and second MODIFY_EXPR.
2936
e83b8e2e
JJ
29372014-01-09 Jakub Jelinek <jakub@redhat.com>
2938
2939 PR target/58115
2940 * c-pch.c (c_common_write_pch): Call
2941 prepare_target_option_nodes_for_pch.
2942
23a5b65a
RS
29432014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2944
2945 Update copyright years
2946
f9030485
RS
29472014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2948
2949 * array-notation-common.c, c-cilkplus.c: Use the standard form for
2950 the copyright notice.
2951
f2aa696b
EB
29522013-12-28 Eric Botcazou <ebotcazou@adacore.com>
2953
2954 * c-ada-spec.c (print_constructor): New function.
2955 (print_destructor): Retrieve the origin of the destructor.
2956 (print_ada_declaration): Revamp handling of constructors/destructors.
2957
1f26ac87
JM
29582013-12-23 Stuart Hastings <stuart@apple.com>
2959 Bill Maddox <maddox@google.com>
2960 Jason Merrill <jason@redhat.com>
2961
2962 * c.opt: Add -fdeclone-ctor-dtor.
2963 * c-opts.c (c_common_post_options): Default to on iff -Os.
2964
41958c28
BI
29652013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
2966
2967 * c-common.c (c_common_attribute_table): Added "cilk simd function"
2968 attribute.
2969 * c-pragma.h (enum pragma_cilk_clause): Remove.
2970 (enum pragma_omp_clause): Added the following fields:
2971 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
2972 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
2973 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
2974 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
2975 PRAGMA_CILK_CLAUSE_UNIFORM.
2976
b1726d6c 2977
12893402
BI
29782013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
2979
2980 * cilk.c (cilk_outline): Made this function non-static.
2981 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
2982 (create_cilk_wrapper): Added a new parameter: a function pointer.
2983 (c_install_body_w_frame_cleanup): Remove
2984 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
2985 * c-common.h (cilk_outline): New prototype.
2986 (gimplify_cilk_spawn): Removed two parameters.
2987 (cilk_install_body_with_frame_cleanup): New prototype.
2988 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
2989 CILK_SPAWN_STMT case.
2990
085b42ed
BS
29912013-12-11 Bernd Schmidt <bernds@codesourcery.com>
2992
2ce064c3
BS
2993 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
2994
085b42ed
BS
2995 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
2996 (int_array_type_node): Remove.
2997 * c-common.c (c_common_nodes_and_builtins): Don't build it.
2998
9e36c9ed
MP
29992013-12-05 Marek Polacek <polacek@redhat.com>
3000
3001 PR c/52023
3002 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
3003 [ADJUST_FIELD_ALIGN].
3004
296674db
JM
30052013-12-04 Joseph Myers <joseph@codesourcery.com>
3006
3007 PR c/52023
3008 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
3009 and check field alignment if set.
3010 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
3011 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
3012
b1726d6c 30132013-12-04 Jakub Jelinek <jakub@redhat.com>
31e071ae
MP
3014 Marek Polacek <polacek@redhat.com>
3015
3016 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
3017 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
3018
d7947e19
L
30192013-11-29 H.J. Lu <hongjiu.lu@intel.com>
3020
3021 PR c/59309
3022 * cilk.c (gimplify_cilk_spawn): Properly handle function without
3023 arguments.
3024
fad7652e
JJ
30252013-11-29 Jakub Jelinek <jakub@redhat.com>
3026
3027 PR c/59280
3028 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
3029 goto invalid. If it is error_mark_node, don't issue further
3030 diagnostics.
3031
8b5e1202
SO
30322013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
3033
3034 * c.opt (Wopenmp-simd): New.
3035
0a508bb6
JJ
30362013-11-22 Jakub Jelinek <jakub@redhat.com>
3037
3038 * c-ubsan.h (ubsan_instrument_return): New prototype.
3039 * c-ubsan.c (ubsan_instrument_return): New function.
3040
2fb9a547
AM
30412013-11-22 Andrew MacLeod <amacleod@redhat.com>
3042
3043 * c-common.c: Add required include files from gimple.h.
3044 * c-gimplify.c: Likewise
3045 * cilk.c: Likewise
3046
8400e75e
DM
30472013-11-22 David Malcolm <dmalcolm@redhat.com>
3048
3049 * c-common.c (unsafe_conversion_p): Remove use of
3050 EXPR_LOC_OR_HERE macro.
3051 (conversion_warning): Likewise.
3052 (warnings_for_convert_and_check): Likewise.
3053 (warn_for_collisions_1): Likewise.
3054 (shorten_compare): Likewise, and remove use of in_system_header
3055 macro, using the location from the former.
3056 * c-lex.c (dump_one_header): Remove use of input_filename macro.
3057 (cb_def_pragma): Remove use of in_system_header macro.
3058 (lex_string): Likewise.
3059 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
3060
eb1ce453
KZ
30612013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
3062 Mike Stump <mikestump@comcast.net>
3063 Richard Sandiford <rdsandiford@googlemail.com>
3064
3065 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
3066 instead of TREE_INT_CST_LOW, in cases where there is a protecting
3067 tree_fits_shwi_p or tree_fits_uhwi_p.
3068 (dump_generic_ada_node): Likewise.
3069 * c-format.c (check_format_arg): Likewise.
3070 * c-pretty-print.c (pp_c_integer_constant): Likewise.
3071
6b3b8c27
KZ
30722013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
3073
3074 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
3075
49b0aa18
JC
30762013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
3077
3078 PR c/53001
3079 * c-common.c (unsafe_conversion_p): Make this function
3080 return an enumeration with more detail.
3081 (conversion_warning): Use the new return type of
3082 unsafe_conversion_p to separately warn either about conversions
3083 that lower floating point number precision or about the other
3084 kinds of conversions.
3085 * c-common.h (enum conversion_safety): New enumeration.
3086 (unsafe_conversion_p): switching return type to
3087 conversion_safety enumeration.
3088 * c.opt: Adding new warning -Wfloat-conversion and
3089 enabling it with -Wconversion.
3090
b826515a
BS
30912013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
3092
3093 * c-opts.c: Include plugin.h.
3094 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
3095
b9a55b13
MP
30962013-11-19 Marek Polacek <polacek@redhat.com>
3097
3098 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
3099 call.
3100 (ubsan_instrument_shift): Likewise.
3101 (ubsan_instrument_vla): Likewise.
3102
7d362f6c
RS
31032013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3104
3105 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
3106 cast to unsigned type.
3107
386b1f1f
RS
31082013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3109
3110 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
3111 tree_low_cst.
3112 (complete_array_type): Update comment to refer to tree_to_[su]hwi
3113 rather than tree_low_cst.
3114
ae7e9ddd
RS
31152013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3116
3117 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
3118 tree_to_uhwi throughout.
3119
9439e9a1
RS
31202013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3121
3122 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
3123 tree_low_cst (..., 0) with tree_to_shwi throughout.
3124
cc269bb6
RS
31252013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3126
3127 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
3128 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
3129
9541ffee
RS
31302013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3131
3132 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
3133 host_integerp (..., 0) with tree_fits_shwi_p throughout.
3134
c02065fc
AH
31352013-11-15 Aldy Hernandez <aldyh@redhat.com>
3136
3137 * c-cilkplus.c: New file.
3138 * c-common.c (readonly_error): Add location argument.
3139 * c-common.h (readonly_error): Same.
3140 (c_finish_cilk_clauses): Protoize.
3141 (c_check_cilk_loop): Same.
3142 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
3143 Do not fail on error_mark_node.
3144 Abstract increment canonicalization to here...
3145 (c_omp_for_incr_canonicalize_ptr): New.
3146 c-pragma.c (init_pragma): Register "simd" pragma.
3147 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
3148 (enum pragma_cilk_clause): New.
3149
9cc65f15
RS
31502013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
3151
3152 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
3153 wchar_type and host_integerp checks.
3154
18f429e2
AM
31552013-11-14 Andrew MacLeod <amacleod@redhat.com>
3156
3157 * c-common.c: Likewise.
3158 * c-gimplify.c: Likewise.
3159 * cilk.c: Likewise.
3160
d8a2d370
DN
31612013-11-14 Diego Novillo <dnovillo@google.com>
3162
3163 * c-common.c: Include fold-const.h.
3164 Include stor-layout.h.
3165 Include calls.h.
3166 Include stringpool.h.
3167 Include attribs.h.
3168 Include varasm.h.
3169 Include trans-mem.h.
3170 * c-cppbuiltin.c: Include stor-layout.h.
3171 Include stringpool.h.
3172 * c-format.c: Include stringpool.h.
3173 * c-lex.c: Include stringpool.h.
3174 Include stor-layout.h.
3175 * c-pragma.c: Include stringpool.h.
3176 Include attribs.h.
3177 Include varasm.h.
3178 Include gcc-symtab.h.
3179 * c-pretty-print.c: Include stor-layout.h.
3180 Include attribs.h.
3181 * cilk.c: Include stringpool.h.
3182 Include calls.h.
3183
38b7bc7f
JM
31842013-11-13 Joseph Myers <joseph@codesourcery.com>
3185
3186 * c-common.h (enum rid): Add RID_AUTO_TYPE.
3187 * c-common.c (c_common_reswords): Add __auto_type.
3188 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
3189
45b0be94
AM
31902013-11-12 Andrew MacLeod <amacleod@redhat.com>
3191
18f429e2
AM
3192 * c-common.c: Include gimplify.h.
3193 * c-gimplify.c: Likewise.
3194 * cilk.c: Likewise.
3195 * c-omp.c: Include gimple-expr.h instead of gimple.h.
3196 * c-ubsan.c: Don't include gimple.h.
45b0be94 3197
582d9b50
JM
31982013-11-12 Joseph Myers <joseph@codesourcery.com>
3199
3200 * c-common.c (c_common_reswords): Add _Thread_local.
3201
6b28e197
JM
32022013-11-09 Joseph Myers <joseph@codesourcery.com>
3203
3204 * c-common.c (atomic_size_supported_p): New function.
3205 (resolve_overloaded_atomic_exchange)
3206 (resolve_overloaded_atomic_compare_exchange)
3207 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
3208 Use it instead of comparing size with a local list of sizes.
3209
267bac10
JM
32102013-11-07 Andrew MacLeod <amacleod@redhat.com>
3211 Joseph Myers <joseph@codesourcery.com>
3212
3213 * c-common.h (enum rid): Add RID_ATOMIC.
3214 * c-common.c (c_common_reswords): Add _Atomic.
3215 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
3216 (keyword_is_type_qualifier): Accept RID_ATOMIC.
3217 * c-format.c (check_format_types): Check for extra _Atomic
3218 qualifiers in format argument.
3219 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
3220 (pp_c_type_qualifier_list): Mention _Atomic in comment.
3221
5157b91e
TB
32222013-11-06 Tobias Burnus <burnus@net-b.de>
3223
3224 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
3225
6dbe0958
JM
32262013-11-06 Joseph Myers <joseph@codesourcery.com>
3227
3228 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
3229 standards modes.
3230 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
3231 to mean lack of IEEE 754 support.
3232
e8ff5196
TB
32332013-11-05 Tobias Burnus <burnus@net-b.de>
3234
3235 * c.opt (-Wdate-time): New option
3236 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
3237
254a0760
JM
32382013-11-05 Joseph Myers <joseph@codesourcery.com>
3239
3240 * c-cppbuiltin.c (cpp_iec_559_value): Test
3241 flag_excess_precision_cmdline not flag_excess_precision.
3242
6d7f7e0a
TB
32432013-11-05 Tobias Burnus <burnus@net-b.de>
3244
3245 * c.opt (fopenmp-simd): New option.
3246 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
3247 (omp_pragmas): ... this new struct.
3248 (c_pp_lookup_pragma): Also walk omp_pragmas.
3249 (init_pragma): Init pragmas for -fopenmp-simd.
3250
55a7f02f
MP
32512013-11-04 Marek Polacek <polacek@redhat.com>
3252
3253 PR c++/58979
3254 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
3255
9193fb05
JM
32562013-11-04 Joseph Myers <joseph@codesourcery.com>
3257
3258 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
3259 New functions.
3260 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
3261
94159ecf
EB
32622013-11-04 Eric Botcazou <ebotcazou@adacore.com>
3263
3264 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
3265 (dump_ada_specs): Adjust prototype of second callback.
3266 * c-ada-spec.c (cpp_check): New global variable.
3267 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
3268 (print_generic_ada_decl): Likewise.
3269 (has_static_fields): Change return type to bool and add guard.
3270 (has_nontrivial_methods): New predicate.
3271 (is_tagged_type): Change return type to bool.
3272 (separate_class_package): Call has_nontrivial_methods.
3273 (pp_ada_tree_identifier): Minor tweaks.
3274 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
3275 (dump_ada_array_domains): Likewise.
3276 (dump_ada_array_type): Likewise.
3277 (dump_template_types): Remove cpp_check parameter and do not pass it to
3278 dump_generic_ada_node.
3279 (dump_ada_template): Likewise.
3280 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
3281 recursively.
3282 (print_ada_methods): Change return type to integer. Remove cpp_check
3283 parameter and do not pass it down.
3284 (dump_nested_types): Remove cpp_check parameter and do not pass it to
3285 dump_generic_ada_node.
3286 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
3287 accessing methods.
3288 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
3289 down. Use has_nontrivial_methods to recognize C++ classes. Use return
3290 value of print_ada_methods.
3291 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
3292 Set cpp_check to it before invoking dump_ada_nodes.
3293 (dump_ada_specs): Likewise.
3294
b906f4ca
MP
32952013-11-03 Marek Polacek <polacek@redhat.com>
3296
3297 * c-ubsan.c: Don't include hash-table.h.
3298 (ubsan_instrument_vla): New function.
3299 * c-ubsan.h: Declare it.
3300
5e20cdc9
DM
33012013-10-31 David Malcolm <dmalcolm@redhat.com>
3302
3303 Automated part of renaming of symtab_node_base to symtab_node.
3304
3305 Patch autogenerated by rename_symtab.py from
3306 https://github.com/davidmalcolm/gcc-refactoring-scripts
3307 revision 58bb219cc090b2f4516a9297d868c245495ee622
3308
3309 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
3310 symtab_node_base to symtab_node.
3311
7057e645
ESR
33122013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
3313
3314 Implement C++14 digit separators.
3315 * c-lex.c (interpret_float): Remove digit separators from scratch string
3316 before building real literal.
3317
193ea7bc
JJ
33182013-10-30 Jakub Jelinek <jakub@redhat.com>
3319
3320 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
3321
939b37da
BI
33222013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
3323
3324 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
3325 fields.
3326 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
3327 enabled.
3328 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
3329 (insert_cilk_frame): New prototype.
3330 (cilk_init_builtins): Likewise.
3331 (gimplify_cilk_spawn): Likewise.
3332 (c_cilk_install_body_w_frame_cleanup): Likewise.
3333 (cilk_detect_spawn_and_unwrap): Likewise.
3334 (cilk_set_spawn_marker): Likewise.
3335 (build_cilk_sync): Likewise.
3336 (build_cilk_spawn): Likewise.
3337 * cilk.c: New file.
3338
67348ccc
DM
33392013-10-29 David Malcolm <dmalcolm@redhat.com>
3340
3341 Patch autogenerated by refactor_symtab.py from
3342 https://github.com/davidmalcolm/gcc-refactoring-scripts
3343 revision 58bb219cc090b2f4516a9297d868c245495ee622
3344
3345 * c-gimplify.c (c_genericize): Update for conversion of symtab types
3346 to a true class hierarchy.
3347 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
3348
d570872d
RS
33492013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
3350
3351 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
3352
98906124
JL
33532013-10-26 Jeff Law <law@redhat.com>
3354
adfac8df
JJ
3355 * c-common.c (c_define_builtins): Remove mudflap support.
3356 * c.opt: Ignore and warn for mudflap options.
98906124 3357
d73749df 33582013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
3359
3360 PR other/33426
3361 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
3362 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
3363
3f04b1bb
JM
33642013-10-23 Jason Merrill <jason@redhat.com>
3365
3366 * c-format.c (gcc_cxxdiag_char_table): Add %X.
3367
acf0174b
JJ
33682013-10-11 Jakub Jelinek <jakub@redhat.com>
3369
acd15a28
JJ
3370 * c-common.h (omp_clause_mask::operator !=): New method.
3371 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
3372 instead of if (mask & something) tests everywhere.
3373
acf0174b
JJ
3374 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
3375 201307 instead of 201107.
3376 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
3377 (c_common_attribute_table): Add "omp declare target" and
3378 "omp declare simd" attributes.
3379 (handle_omp_declare_target_attribute,
3380 handle_omp_declare_simd_attribute): New functions.
3381 * c-omp.c: Include c-pragma.h.
3382 (c_finish_omp_taskgroup): New function.
3383 (c_finish_omp_atomic): Add swapped argument, if true,
3384 build the operation first with rhs, lhs arguments and use NOP_EXPR
3385 build_modify_expr.
3386 (c_finish_omp_for): Add code argument, pass it down to make_code.
3387 (c_omp_split_clauses): New function.
3388 (c_split_parallel_clauses): Removed.
3389 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
3390 c_omp_declare_simd_clauses_to_decls): New functions.
3391 * c-common.h (omp_clause_mask): New type.
3392 (OMP_CLAUSE_MASK_1): Define.
3393 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
3394 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
3395 omp_clause_mask::operator |, omp_clause_mask::operator &,
3396 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
3397 omp_clause_mask::operator ==): New methods.
3398 (enum c_omp_clause_split): New.
3399 (c_finish_omp_taskgroup): New prototype.
3400 (c_finish_omp_atomic): Add swapped argument.
3401 (c_finish_omp_for): Add code argument.
3402 (c_omp_split_clauses): New prototype.
3403 (c_split_parallel_clauses): Removed.
3404 (c_omp_declare_simd_clauses_to_numbers,
3405 c_omp_declare_simd_clauses_to_decls): New prototypes.
3406 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
3407 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
3408 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
3409 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
3410 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
3411 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
3412 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
3413 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
3414 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
3415 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
3416 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
3417 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
3418 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
3419 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
3420 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
3421 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
3422 PRAGMA_OMP_CLAUSE_UNIFORM.
3423
826cacfe
MG
34242013-10-09 Marc Glisse <marc.glisse@inria.fr>
3425
3426 PR tree-optimization/20318
3427 * c-common.c (handle_returns_nonnull_attribute): New function.
3428 (c_common_attribute_table): Add returns_nonnull.
3429
2284b034
MG
34302013-10-03 Marc Glisse <marc.glisse@inria.fr>
3431
3432 PR c++/19476
3433 * c.opt (fcheck-new): Move to common.opt.
3434
b56e9788
MP
34352013-09-25 Marek Polacek <polacek@redhat.com>
3436 Jakub Jelinek <jakub@redhat.com>
3437
3438 PR sanitizer/58413
3439 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
3440 an expression if we can prove it is correct.
3441 (ubsan_instrument_division): Likewise. Remove unnecessary
3442 check.
3443
ce6923c5
MP
34442013-09-18 Marek Polacek <polacek@redhat.com>
3445
3446 PR sanitizer/58411
3447 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
3448 Declare it.
3449 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
3450
fb5610fb
IS
34512013-09-14 Iain Sandoe <iain@codesourcery.com>
3452
3453 PR target/48094
3454 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
3455 fobjc-gc, freplace-objc-classes): Accept for LTO.
3456
88b0e79e
JC
34572013-09-13 Jacek Caban <jacek@codeweavers.com>
3458
3459 * c-target.def: New hook
3460
c9b0866a
PC
34612013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
3462
3463 PR c++/43452
3464 * c.opt (Wdelete-incomplete): Add.
3465
0af94e6f
JR
34662013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
3467
3468 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
3469 (vector_types_compatible_elements_p): New function.
3470 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
3471 declaration.
3472 (vector_types_compatible_elements_p): Declare.
3473
7c26172c
GDR
34742013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
3475
3476 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
3477 a virtual member function.
3478 (pp_simple_type_specifier): Remove.
3479 (pp_c_type_specifier): Likewise.
3480 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
3481 Rename from pp_c_type_specifier. Adjust.
3482 (c_pretty_printer::c_pretty_printer): Do not assign to
3483 simple_type_specifier.
3484
20059c8b
GDR
34852013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3486
3487 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
3488 member function.
3489 (c_pretty_printer::storage_class_specifier): Likewise.
3490 (c_pretty_printer::initializer): Likewise.
3491 (pp_declaration): Remove.
3492 (pp_declaration_specifiers): Likewise.
3493 (pp_abstract_declarator): Likewise.
3494 (pp_declarator): Likewise.
3495 (pp_type_id): Likewise.
3496 (pp_statement): Likewise.
3497 (pp_constant): Likewise.
3498 (pp_id_expression): Likewise.
3499 (pp_primary_expression): Likewise.
3500 (pp_unary_expression): Likewise.
3501 (pp_multiplicative_expression): Likewise.
3502 (pp_conditional_expression): Likewise.
3503 (pp_assignment_expression): Likewise.
3504 (pp_expression): Likewise.
3505 (pp_c_type_id): Likewise.
3506 (pp_c_storage_class_specifier): Likewise.
3507 * c-pretty-print.c (pp_c_type_cast): Tidy.
3508 (pp_c_pointer): Likewise.
3509 (pp_c_type_specifier): Likewise.
3510 (pp_c_parameter_type_list): Likewise.
3511 (pp_c_function_definition): Likewise.
3512 (pp_c_init_declarator): Likewise.
3513 (pp_c_initializer_list): Likewise.
3514 (pp_c_constructor_elts): Likewise.
3515 (c_pretty_printer::direct_abstract_declarator): Likewise.
3516 (c_pretty_printer::declaration_specifiers): Likewise.
3517 (c_pretty_printer::primary_expression): Likewise.
3518 (c_pretty_printer::postfix_expression): Likewise.
3519 (c_pretty_printer::type_id): Rename from pp_c_type_id.
3520 (c_pretty_printer::storage_class_specifier): Rename from
3521 pp_c_storage_class_specifier.
3522 (c_pretty_printer::initializer): Rename from pp_c_initializer.
3523 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
3524 storage_class_specifier, initializer, offset_list, flags.
3525
de5a5fa1
MP
35262013-08-30 Marek Polacek <polacek@redhat.com>
3527
3528 * c-ubsan.c: New file.
3529 * c-ubsan.h: New file.
3530
8f0e4d72
GDR
35312013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
3532
3533 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
3534 member function.
3535 (c_pretty_printer::declaration_specifiers): Likewise.
3536 (c_pretty_printer::declarator): Likewise.
3537 (c_pretty_printer::abstract_declarator): Likewise.
3538 (c_pretty_printer::direct_abstract_declarator): Likewise.
3539 (c_pretty_printer::direct_declarator): Likewise.
3540 (c_pretty_printer::function_specifier): Likewise.
3541 (pp_declaration): Adjust.
3542 (pp_declaration_specifiers): Likewise.
3543 (pp_abstract_declarator): Likewise.
3544 (pp_direct_declarator): Likewise.
3545 (pp_function_specifier): Likewise.
3546 (pp_direct_abstract_declarator): Remove as unused.
3547 (pp_c_declaration): Remove.
3548 (pp_c_declaration_specifiers): Likewise.
3549 (pp_c_declarator): Likewise.
3550 (pp_c_direct_declarator): Likewise.
3551 (pp_c_function_specifier): Likewise.
3552 (pp_c_direct_abstract_declarator): Likewise.
3553 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
3554 from pp_c_abstract_declarator. Adjust.
3555 (c_pretty_printer::direct_abstract_declarator): Rename from
3556 pp_c_direct_abstract_declarator. Adjust.
3557 (c_pretty_printer::function_specifier): Rename from
3558 pp_c_function_specifier. Adjust.
3559 (c_pretty_printer::declaration_specifiers): Rename from
3560 pp_c_declaration_specifiers. Adjust.
3561 (c_pretty_printer::direct_declarator): Rename from
3562 pp_c_direct_declarator. Adjust.
3563 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
3564 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
3565 (c_pretty_printer::c_pretty_printer): Do not assign to
3566 declaration, declaration_specifiers, declarator,
3567 direct_declarator, direct_abstract_declarator, function_specifier.
3568
00d34d3a
GDR
35692013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
3570
3571 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
3572 virtual member function.
3573 (c_pretty_printer::multiplicative_expression): Likewise.
3574 (c_pretty_printer::conditional_expression): Likewise.
3575 (c_pretty_printer::assignment_expression): Likewise.
3576 (c_pretty_printer::expression): Likewise.
3577 (pp_unary_expression): Adjust.
3578 (pp_multiplicative_expression): Likewise.
3579 (pp_assignment_expression): Likewise.
3580 (pp_conditional_expression): Likewise.
3581 (pp_expression): Likewise.
3582 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
3583 from pp_c_unary_expression. Adjust.
3584 (c_pretty_printer::multiplicative_expression): Rename from
3585 pp_c_multiplicative_expression. Adjust.
3586 (c_pretty_printer::conditional_expression): Rename from
3587 pp_c_conditional_expression. Adjust.
3588 (c_pretty_printer::assignment_expression): Rename from
3589 pp_c_assignment_expression. Adjust.
3590 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
3591 (c_pretty_printer::c_pretty_printer): Do not assign to
3592 unary_expression, multiplicative_expression,
3593 conditional_expression, expression.
3594
fb22178f
GDR
35952013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3596
3597 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
3598 virtual member function.
3599 (pp_postfix_expression): Adjust.
3600 (pp_c_postfix_expression): Remove.
3601 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
3602 from pp_c_postfix_expression. Adjust.
3603 (c_pretty_printer::c_pretty_printer): Do not assign to
3604 postfix_expression.
3605
7ecc2600
GDR
36062013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3607
3608 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
3609 virtua member function.
3610 (pp_primary_expression): Adjust.
3611 (pp_c_primary_expression): Remove.
3612 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
3613 from pp_c_primary_expression. Adjust.
3614 (pp_c_initializer_list): Use pp_primary_expression.
3615 (c_pretty_printer::c_pretty_printer): Do not assign to
3616 primary_expression.
3617
0691175f
GDR
36182013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3619
3620 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
3621 * c-pretty-print.c (M_): Remove.
3622 (c_pretty_printer::translate_string): Define.
3623 (pp_c_type_specifier): Use it.
3624 (pp_c_primary_expression): Likewise.
3625 (pp_c_expression): Likewise.
3626
66dfe4c4
GDR
36272013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
3628
3629 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
3630 virtual function.
3631 (pp_c_id_expression): Remove.
3632 (pp_id_expression): Adjust.
3633 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
3634 pp_c_id_expression. Adjust.
3635 (pp_c_postfix_expression): Use pp_id_expression.
3636 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
3637
ca43e9d5
GDR
36382013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
3639
3640 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
3641 member function.
3642 (pp_constant): Adjust.
3643 (pp_c_constant): Remove.
3644 * c-pretty-print.c (c_pretty_printer::constant): Rename from
3645 pp_c_constant. Adjust.
3646 (pp_c_constant)
3647 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
3648 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
3649
da6ca2b5
GDR
36502013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
3651
3652 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
3653 (c_pretty_printer::c_pretty_printer): Declare.
3654 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
3655 c_pretty_printer_init. Adjust.
3656 (print_c_tree): Do not call c_pretty_printer_init.
3657 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
3658
65a372f4
AC
36592013-08-09 Arnaud Charlet <charlet@adacore.com>
3660
3661 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
3662
fd9b0f32
PC
36632013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
3664
3665 PR c++/58080
3666 * c-common.c (pointer_int_sum): Add bool parameter.
3667 * c-common.h (pointer_int_sum): Adjust declaration.
3668
e0aec1e9
GDR
36692013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
3670
3671 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
3672 c_pretty_printer variable.
3673
b066401f
GDR
36742013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
3675
3676 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
3677 (pp_base): Remove.
3678 (pp_c_base): Likewise. Adjust users.
3679 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
3680 (pp_c_whitespace): Do not call pp_base.
3681 (pp_c_left_paren): Likewise.
3682 (pp_c_right_paren): Likewise.
3683 (pp_c_left_brace): Likewise.
3684 (pp_c_right_brace): Likewise.
3685 (pp_c_left_bracket): Likewise.
3686 (pp_c_right_bracket): Likewise.
3687 (pp_c_dot): Likewise.
3688 (pp_c_ampersand): Likewise.
3689 (pp_c_star): Likewise.
3690 (pp_c_arrow): Likewise.
3691 (pp_c_semicolon): Likewise.
3692 (pp_c_complement): Likewise.
3693 (pp_c_exclamation): Likewise.
3694 (pp_c_direct_declarator): Likewise.
3695 (pp_c_ws_string): Likewise.
3696 (pp_c_identifier): Likewise.
3697 (pp_c_statement): Likewise.
3698 (print_c_tree): Likewise.
3699
65e5a578
ESR
37002013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
3701
3702 PR c++/58072
3703 * c-common.c (c_parse_error): Catch user-defined literal tokens and
3704 provide useful error strings.
3705
137a1a27
GDR
37062013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3707
3708 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
3709 printer functions instead of pp_string or operators and punctuators.
3710 (dump_generic_ada_node): Likewise.
3711 * c-pretty-print.c (pp_c_type_specifier): Likewise.
3712 (pp_c_relational_expression): Likewise.
3713 (pp_c_logical_or_expression): Likewise.
3714
07838b13
GDR
37152013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3716
3717 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
3718 functions instead of pp_character.
3719 (pp_ada_tree_identifier): Likewise.
3720 (dump_ada_double_name): Likewise.
3721 (dump_ada_function_declaration): Likewise.
3722 (dump_ada_array_domains): Likewise.
3723 (dump_template_types): Likewise.
3724 (dump_generic_ada_node): Likewise.
3725 (print_ada_declaration): Likewise.
3726 (print_ada_struct_decl): Likewise.
3727 * c-pretty-print.c (pp_c_integer_constant): Likewise.
3728
433cc7b0
TT
37292013-07-23 Tom Tromey <tromey@redhat.com>
3730
3731 * c-common.h (enum rid) <RID_GENERIC>: New constant.
3732 * c-common.c (c_common_reswords): Add _Generic.
3733
688010ba
OB
37342013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
3735
3736 * c-common.c: Fix typos.
3737 * c-common.h: Likewise.
3738
2a99e5e6
LL
37392013-07-13 Lubos Lunak <l.lunak@suse.cz>
3740
3741 PR c++/55203
3742 * c-common.c (c_common_attribute_table): Add warn_unused.
3743 (handle_warn_unused_attribute): New.
3744
c26302d5
JJ
37452013-07-10 Jakub Jelinek <jakub@redhat.com>
3746
3747 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
3748 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
3749
dfeadaa0
PC
37502013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
3751
3752 PR c++/57869
3753 * c.opt: Add Wconditionally-supported.
3754
6a2fa4b2
GS
37552013-07-08 Graham Stott <graham.stott@btinternet.com>
3756
adfac8df 3757 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
3758 unused variables l_length and l_node.
3759
ecdbd01a 37602013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
3761
3762 PR c/57821
3763 * c-common.c (complete_array_type): Delay folding first index
3764 like other indices. When folding, check for index overflow.
3765
bedc293e
MG
37662013-06-27 Marc Glisse <marc.glisse@inria.fr>
3767
3768 PR c++/57509
3769 * c-common.h (c_build_vec_perm_expr): New complain argument.
3770 * c-common.c (c_build_vec_perm_expr): Likewise.
3771 Use save_expr also in C++.
3772
604b2bfc
GDR
37732013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
3774
3775 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
3776 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3777 * c-opts.c (c_common_post_options): Likewise.
3778
dfeadaa0 37792013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
3780
3781 * array-notation-common.c (length_mismatch_in_expr): Changed the
3782 parameter type's from a dynamic array to a vec_tree. Also removed
3783 the size parameters.
3784 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
3785 the change above.
3786
2ce86d2e
BI
37872013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
3788
3789 * c-common.h (struct cilkplus_an_parts): New structure.
3790 (struct cilkplus_an_loop_parts): Likewise.
3791 (cilkplus_extract_an_triplets): New prototype.
3792 (fix_sec_implicit_args): Likewise.
3793 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
3794 (fix_sec_implicit_args): Likewise.
604b2bfc 3795
07a6825b
BI
37962013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
3797
3798 * array-notation-common.c (find_inv_trees): Removed an unwanted
3799 typecasting.
3800 * c-common.h (struct inv_list::additional_tcodes): Changed type from
3801 enum rid to enum tree_code.
3802
08346abd
JH
38032013-06-11 Jan Hubicka <jh@suse.cz>
3804
3805 * c-common.c (handle_alias_ifunc_attribute): Do not set
3806 DECL_EXTERNAL for weakref variables.
3807 * c-pragma.c (handle_pragma_weak): Make sure aliases
3808 are not declared as external.
3809
d60f1706
BI
38102013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
3811
3812 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
3813 function from c/c-array-notation.c.
3814 (is_cilkplus_reduce_builtin): Likewise.
3815 (find_rank): Likewise.
3816 (extract_array_notation_exprs): Likewise.
3817 (replace_array_notations): Likewise.
3818 (find_inv_trees): Likewise.
3819 (replace_inv_trees): Likewise.
3820 (contains_array_notation_expr): Likewise.
3821 (find_correct_array_notation_type): Likewise.
3822 * c-common.h (struct inv_list): Moved this struct from the file
3823 c/c-array-notation.c and added a new field called additional tcodes.
3824 (length_mismatch_in_expr_p): New prototype.
3825 (is_cilkplus_reduce_builtin): Likewise.
3826 (find_rank): Likewise.
3827 (extract_array_notation_exprs): Likewise.
3828 (replace_array_notation): Likewise.
3829 (find_inv_trees): Likewise.
3830 (replace_inv_trees): Likewise.
3831 (find_correct_array_notation_type): Likewise.
dfeadaa0 3832
36536d79
BI
38332013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
3834
3835 * c-common.c (c_define_builtins): When cilkplus is enabled, the
3836 function array_notation_init_builtins is called.
3837 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
3838 * c-common.def (ARRAY_NOTATION_REF): New tree.
3839 * c-common.h (build_array_notation_expr): New function declaration.
3840 (build_array_notation_ref): Likewise.
3841 (extract_sec_implicit_index_arg): New extern declaration.
3842 (is_sec_implicit_index_fn): Likewise.
3843 (ARRAY_NOTATION_CHECK): New define.
3844 (ARRAY_NOTATION_ARRAY): Likewise.
3845 (ARRAY_NOTATION_START): Likewise.
3846 (ARRAY_NOTATION_LENGTH): Likewise.
3847 (ARRAY_NOTATION_STRIDE): Likewise.
3848 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
3849 ARRAY_NOTATION_REF.
3850 (pp_c_expression): Likewise.
3851 * c.opt (flag_enable_cilkplus): New flag.
3852 * array-notation-common.c: New file.
3853
f7716d57
JJ
38542013-05-14 Jakub Jelinek <jakub@redhat.com>
3855
3856 PR c++/57274
3857 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
3858
a5e0cd1d
MG
38592013-05-10 Marc Glisse <marc.glisse@inria.fr>
3860
3861 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
3862 vectors.
3863
f6bc1c4a
HS
38642013-05-07 Han Shen <shenhan@google.com>
3865
3866 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
3867
3f12f6e9
SKS
38682013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3869
3870 * c-common.c (check_user_alignment): Emit error for negative values.
3871
61949153
PC
38722013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3873
3874 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
3875
e93e18e9
PC
38762013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3877
3878 * c-cppbuiltin.c (c_cpp_builtins): Do not define
3879 __GXX_EXPERIMENTAL_CXX1Y__.
3880
44d90fe1
PC
38812013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3882 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3883
3884 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
3885 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
3886 to simply use OPT_Wpointer_arith.
3887 (c_sizeof_or_alignof_type): Likewise.
3888
13f39b2e
PC
38892013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3890
3891 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
3892
4b84d650
JJ
38932013-04-12 Jakub Jelinek <jakub@redhat.com>
3894
3895 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
3896 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
3897 specifiers.
3898
fb037b5d
SB
38992013-04-07 Steven Bosscher <steven@gcc.gnu.org>
3900
3901 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
3902
4e856798
PC
39032013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
3904
3905 * c-common.c (pointer_int_sum): Remove dead code.
3906
4b1baac8
RS
39072013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
3908
3909 PR middle-end/56524
3910 * c-common.c (handle_optimize_attribute): Don't call
3911 save_optabs_if_changed.
3912
0b50e654
JJ
39132013-03-05 Jakub Jelinek <jakub@redhat.com>
3914
3915 PR middle-end/56461
3916 * c-pch.c (pch_init): Free target_validity at the end.
3917
48c41403
JJ
39182013-03-04 Jakub Jelinek <jakub@redhat.com>
3919
3920 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
3921
e664c61c
KS
39222013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
3923 Jakub Jelinek <jakub@redhat.com>
3924
3925 PR sanitizer/56454
3926 * c-common.c (handle_no_sanitize_address_attribute): New function.
3927 (c_common_attribute_table): Add no_sanitize_address attribute.
3928 (handle_no_address_safety_analysis_attribute): Add
3929 no_sanitize_address attribute, not no_address_safety_analysis
3930 attribute.
3931
a475fd3d 39322013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
3933
3934 PR target/52555
3935 * c-common.c (handle_optimize_attribute): Call
3936 save_optabs_if_changed.
3937
f6007d99
JJ
39382013-02-18 Jakub Jelinek <jakub@redhat.com>
3939 Steven Bosscher <steven@gcc.gnu.org>
3940
3941 PR pch/54117
3942 * c-opts.c (c_common_post_options): If debug info is enabled
3943 and non-dwarf*, refuse to load PCH files and when writing PCH
3944 file warn.
3945
cf35e2b1
JJ
39462013-02-05 Jakub Jelinek <jakub@redhat.com>
3947
3948 PR middle-end/56167
3949 * c-common.c (handle_error_attribute): Fix condition.
3950
32887460
JJ
39512013-01-30 Jakub Jelinek <jakub@redhat.com>
3952
3953 PR c++/55742
3954 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
3955
5af057d8
JM
39562013-01-18 Jason Merrill <jason@redhat.com>
3957
3958 PR target/54908
3959 * c.opt (-fextern-tls-init): New.
3960 * c-opts.c (c_common_post_options): Handle it.
3961
cc83c823
JJ
39622013-01-09 Jakub Jelinek <jakub@redhat.com>
3963
3964 PR c/48418
3965 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
3966 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
3967 and is either negative or bigger or equal to type precision
3968 of the first operand.
3969
a859517f
MP
39702012-12-03 Marek Polacek <polacek@redhat.com>
3971
3972 PR c/55570
3973 * c-common.c (check_user_alignment): Swap order of tests,
3974 check TREE_CODE first.
3975
2d7aa578
ESR
39762012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
3977
3978 PR c++/52654
3979 * c-common.h (overflow_type): New enum.
3980 (build_userdef_literal): Add overflow_type argument.
3981 (tree_userdef_literal): Add overflow_type.
3982 (USERDEF_LITERAL_OVERFLOW): New access macro.
3983 * c-common.c (build_userdef_literal): Add overflow_type
3984 argument.
3985 * c-lex.c (c_lex_with_flags): Add overflow_type to
3986 build_userdef_literal calls.
3987 (interpret_integer, interpret_float): Add overflow_type argument.
3988
cc3c4f62
RB
39892012-11-28 Richard Biener <rguenther@suse.de>
3990
3991 PR c/35634
3992 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
3993 here and use a type with proper overflow behavior for types that would
3994 need to be promoted for the arithmetic.
3995
77bc5132
JJ
39962012-11-23 Jakub Jelinek <jakub@redhat.com>
3997
3998 PR sanitizer/55435
3999 * c-common.c (handle_no_address_safety_analysis_attribute): New
4000 function.
4001 (c_common_attribute_table): Add no_address_safety_analysis.
4002
5dc99c46
SB
40032012-11-16 Simon Baldwin <simonb@google.com>
4004
4005 * c.opt: Add f[no-]canonical-system-headers.
4006 * c-opts.c (c_common_handle_option): Handle
4007 OPT_fcanonical_system_headers.
4008
a4a0016d
ESR
40092012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
4010
4011 PR c++/54413
4012 * c-opts.c (c_common_handle_option): Set new flags.
4013 * c.opt: Describe new flags.
4014
7dbb85a7
JM
40152012-11-09 Jason Merrill <jason@redhat.com>
4016
4017 * c.opt (Wabi-tag): New.
4018
ad7bac31
AK
40192012-11-09 Andi Kleen <ak@linux.intel.com>
4020
4021 PR 55139
4022 * c-common.c (get_atomic_generic_size): Mask with
4023 MEMMODEL_MASK
4024
7332899a
MLI
40252012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4026
4027 PR c/53063
4028 * c.opt (Wformat): Make it Alias Wformat=1.
4029 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
4030 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
4031 LangEnabledBy.
4032 (Wformat=): RejectNegative. Use LangEnabledBy.
4033 (Wnonnull): Use LangEnabledBy.
4034 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
4035 * c-format.c (set_Wformat): Delete.
4036 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
4037 (maybe_read_dollar_number): Likewise.
4038 (avoid_dollar_number): Likewise.
4039 (finish_dollar_format_checking): Likewise.
4040 (check_format_info): Likewise.
4041 (check_format_info_main): Likewise.
4042 (check_format_types): Likewise.
4043 (format_type_warning): Likewise.
4044 * c-common.c (int): Likewise.
4045 (check_function_sentinel): Likewise.
4046 * c-common.h (warn_format,set_Wformat): Do not declare here.
4047
34a180a6
MLI
40482012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4049
4050 PR c/53063
4051 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
4052 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
4053 Use LangEnabledBy.
4054 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
4055 common.opt.
4056 (Wvariadic-macros): Init(1).
4057 * c-opts.c (c_common_handle_option): Do not handle them
4058 explicitly.
4059 (c_common_post_options): Likewise.
4060 (sanitize_cpp_opts): warn_unused_macros is now
4061 cpp_warn_unused_macros.
4062 (push_command_line_include): Likewise.
4063 * c-common.c (warn_unknown_pragmas): Do not define.
4064 * c-common.h (warn_unknown_pragmas): Do not declare.
4065
3f46d6a5
MLI
40662012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4067
4068 PR c/51294
4069 * c-common.c (conversion_warning): Handle conditional expressions.
4070
880661a4
JW
40712012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
4072
4073 PR c++/54930
4074 * c.opt (Wreturn_local_addr): Define new option.
4075
4514a96b
JM
40762012-10-25 Jason Merrill <jason@redhat.com>
4077
f14edc1a
JM
4078 * c.opt (Wvirtual-move-assign): New.
4079
4514a96b
JM
4080 * c.opt (Winherited-variadic-ctor): New.
4081
93100c6b
MG
40822012-10-25 Marc Glisse <marc.glisse@inria.fr>
4083
4084 PR c++/54427
4085 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
4086
1efcb8c6
JM
40872012-10-23 Joseph Myers <joseph@codesourcery.com>
4088
4089 * c-common.h (pch_cpp_save_state): Declare.
4090 * c-target.def (c_preinclude): New hook.
4091 * c-opts.c (done_preinclude): New.
4092 (push_command_line_include): Handle default preincluded header.
4093 (cb_file_change): Call pch_cpp_save_state when calling
4094 push_command_line_include.
4095 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
4096 (pch_cpp_save_state): New.
4097 (pch_init): Call pch_cpp_save_state conditionally, instead of
4098 calling cpp_save_state.
4099
4a0ae68e
MLI
41002012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4101
4102 PR c/53063
4103 PR c/40989
4104 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
4105 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
4106 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
4107 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
4108 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
4109 * c-opts.c (c_common_handle_option): Remove explicit handling from
4110 here.
4111 (c_common_post_options): Likewise.
4112
67e4210b
EB
41132012-10-18 Eric Botcazou <ebotcazou@adacore.com>
4114
4115 * c-ada-spec.c (LOCATION_COL): Delete.
4116 (compare_location): New function.
4117 (compare_node): Use it.
4118 (compare_comment): Likewise.
4119
65d4f2cd
MLI
41202012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
4121
4122 PR c/53063
4123 PR c/40989
4124 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
4125 * c-opts.c (c_common_handle_option): Do not set them here. Add
4126 comment.
4127 (c_common_post_options): Likewise.
4128
909881cb
EB
41292012-10-16 Eric Botcazou <ebotcazou@adacore.com>
4130
4131 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
4132 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
4133 Remove POINTER_TYPE handling, add large unsigned handling and use
4134 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
4135
3a785c97
JJ
41362012-10-12 Jakub Jelinek <jakub@redhat.com>
4137
4138 PR c/54381
4139 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
4140 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
4141 locs and array of 3 trees instead of just single loc and single
4142 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
4143 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
4144 For *cmp* builtins that take two sources strings report warnings
4145 about first and second source, not about destination and source.
4146
5e54f81d
MG
41472012-10-12 Marc Glisse <marc.glisse@inria.fr>
4148
4149 PR c++/53055
4150 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
4151
f5b02f1e
EB
41522012-10-11 Eric Botcazou <ebotcazou@adacore.com>
4153
4154 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
4155 declaring something coming from another file.
4156
b46dbc6c
AC
41572012-10-10 Arnaud Charlet <charlet@adacore.com>
4158
f5b02f1e 4159 PR ada/54845
b46dbc6c
AC
4160 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
4161
5d9de0d0
PC
41622012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
4163
4164 PR c++/54194
4165 * c-common.c (warn_about_parentheses): Add location_t parameter;
4166 use EXPR_LOC_OR_LOC.
4167 * c-common.h: Update declaration.
4168
a212e43f
MG
41692012-10-09 Marc Glisse <marc.glisse@inria.fr>
4170
4171 PR c++/54427
4172 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
4173 more operations. Make error messages optional.
4174 * c-common.h (enum stv_conv): Moved from c-typeck.c.
4175 (scalar_to_vector): Declare.
4176
b1db7f91
JM
41772012-10-08 Jason Merrill <jason@redhat.com>
4178
4179 * c-common.c (c_common_reswords): Add thread_local.
4180
e28d52cf
DS
41812012-10-08 Dodji Seketeli <dodji@redhat.com>
4182
4183 PR c++/53528 C++11 attribute support
4184 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
4185 new functions.
4186 * c-common.c (check_cxx_fundamental_alignment_constraints): New
4187 static function.
4188 (handle_aligned_attribute): In choose strictest alignment
4189 among many. Use new check_cxx_fundamental_alignment_constraints.
4190 (handle_transparent_union_attribute): In c++11 attribute syntax,
4191 don't look through typedefs.
4192
3b78de56
AC
41932012-10-04 Arnaud Charlet <charlet@adacore.com>
4194
4195 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
4196 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
4197 out of dumpfile.h.
4198
6040bb5f
DC
41992012-09-25 Dehao Chen <dehao@google.com>
4200
4201 PR middle-end/54645
3b78de56 4202 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
4203 map when read in the pch.
4204
0b07a57e
AC
42052012-09-18 Arnaud Charlet <charlet@adacore.com>
4206
4207 * c-ada-spec.c: Style fixes.
4208
da5182be
TQ
42092012-09-18 Thomas Quinot <quinot@adacore.com>
4210
4211 * c.opt (-fada-spec-parent): Define new command line switch.
4212 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
4213 is specified, generate binding spec as a child of the specified unit.
4214
0ccb505d
PC
42152012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
4216 Manuel López-Ibáñez <manu@gcc.gnu.org>
4217
4218 PR c++/53210
4219 * c.opt ([Winit-self]): Enabled by -Wall in C++.
4220
c583af79
AC
42212012-08-23 Arnaud Charlet <charlet@adacore.com>
4222
4223 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
4224 for pointers, and add missing Convention C pragma.
4225 (print_ada_struct_decl): Add missing aliased keyword.
4226 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
4227
1a4049e7
JJ
42282012-08-17 Jakub Jelinek <jakub@redhat.com>
4229
4230 * c-common.c (sizeof_pointer_memaccess_warning): New function.
4231 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
4232 * c-opts.c (c_common_handle_option): Enable it for -Wall.
4233 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
4234 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
4235
70b5e7dc
RG
42362012-08-10 Richard Guenther <rguenther@suse.de>
4237
4238 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
4239
f8923f7e
SB
42402012-08-07 Steven Bosscher <steven@gcc.gnu.org>
4241
4242 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
4243 instead of separate pp_newline and pp_flush.
4244 (print_c_tree): Likewise.
4245
e45abe1f
RH
42462012-07-26 Richard Henderson <rth@redhat.com>
4247
4248 * c-common.c (handle_hot_attribute): Allow labels.
4249 (handle_cold_attribute): Likewise.
4250
332f1d24
JJ
42512012-07-20 Jakub Jelinek <jakub@redhat.com>
4252
4253 PR c++/28656
4254 * c-common.c (check_function_nonnull): Handle multiple nonnull
4255 attributes properly.
4256
7ee2468b
SB
42572012-07-16 Steven Bosscher <steven@gcc.gnu.org>
4258
4259 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
4260 * c-ada-spec.c: Likewise.
4261 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
4262
ee7b28eb
SB
42632012-07-14 Steven Bosscher <steven@gcc.gnu.org>
4264
4265 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
4266 Remove code conditional on it.
4267
6bdf3519
SB
42682012-07-11 Steven Bosscher <steven@gcc.gnu.org>
4269
4270 * c-gimplify.c: Do not include basic-block.h.
4271 * c-common.c: Do not include linfuncs.h.
4272
532aafad
SB
42732012-07-08 Steven Bosscher <steven@gcc.gnu.org>
4274
4275 * c-common.h: Include tree.h.
4276
8d0d1915
JM
42772012-07-02 Jason Merrill <jason@redhat.com>
4278
4279 PR c++/53524
4280 * c-common.c (get_priority): Call default_conversion.
4281
fbc873ad
UB
42822012-07-01 Uros Bizjak <ubizjak@gmail.com>
4283
4284 * c-pch.c (c_common_write_pch): Remove unused variables.
4285
d4a10d0a
SB
42862012-06-29 Steven Bosscher <steven@gcc.gnu.org>
4287
4288 * cppspec.c: Moved from gcc/ to here.
4289
6f3a2e23
KT
42902012-06-27 Kai Tietz <ktietz@redhat.com>
4291
4292 PR preprocessor/37215
4293 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
4294
8ca92d04
SB
42952012-06-21 Steven Bosscher <steven@gcc.gnu.org>
4296
4297 * c-common.h (c_common_print_pch_checksum): Remove.
4298 * c-pch.c: Do not include output.h.
4299 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
4300 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
4301 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
4302 (struct c_pch_header): Remove.
4303 (get_ident): Update gpch version.
4304 (pch_init): Do not print executable_checksum to asm_out_file.
4305 Do not fail if there is no asm_out_file to read back from. Set
4306 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
4307 (c_common_write_pch): Verify that nothing was written to asm_out_file
4308 since pch_init was called. Do not write a c_pch_header, and do not
4309 copy from asm_out_file to the PCH.
4310 (c_common_read_pch): Do not read a c_pch_header, and do not restore
4311 the content of asm_out_file from the PCH.
4312 (c_common_print_pch_checksum): Remove.
4313 * c-opts.c (c_common_init): Print out executable_checksum directly.
4314
70f42967
SB
43152012-06-19 Steven Bosscher <steven@gcc.gnu.org>
4316
4317 * c-target.def (objc_declare_unresolved_class_reference,
4318 objc_declare_class_definition): Add new hooks.
4319
a8781821
SB
43202012-06-19 Steven Bosscher <steven@gcc.gnu.org>
4321
4322 * c-lex.c: Do not include output.h.
4323 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
4324 Remove uses of ASM_OUTPUT_IDENT.
4325
9e1a8dd1
RR
43262012-06-15 Marc Glisse <marc.glisse@inria.fr>
4327
4328 PR c++/51033
4329 * c-common.h (c_build_vec_perm_expr): Move decl here.
4330 * c-common.c (c_build_vec_perm_expr): Move definition
4331 here.
4332
6f07a821
SB
43332012-06-06 Steven Bosscher <steven@gcc.gnu.org>
4334
4335 * c.opt (fconserve-space): Turn into a no-op.
4336
9faeb493 43372012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
4338
4339 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
4340 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
4341 both the start and end of the function.
4342
a4b7d13c
SB
43432012-06-04 Steven Bosscher <steven@gcc.gnu.org>
4344
4345 * c-common.c: Do not include output.h.
4346 * c-pragma.c: Likewise.
4347
c265f413
SA
43482012-06-04 Steven Bosscher <steven@gcc.gnu.org>
4349
4350 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
4351 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
4352 (lang_decl_name): Handle namespace decls.
4353
be7a421e
SB
43542012-05-31 Steven Bosscher <steven@gcc.gnu.org>
4355
4356 * c-ada-spec.c: Do not include output.h.
4357 * c-semantics.c: Likewise.
4358
65de6659
JM
43592012-05-29 Joseph Myers <joseph@codesourcery.com>
4360
4361 * c-common.c: Fix typo.
4362
ca5f4331
MM
43632012-05-29 Michael Matz <matz@suse.de>
4364
4365 * c-common.h (c_expand_decl): Remove prototype.
4366
4f7f7aca
MLI
43672012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
4368
4369 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
4370 * c-opts.c (c_common_handle_option): Remove code handling
4371 warn_missing_braces.
4372
4a792f9b
PC
43732012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
4374
4375 PR c++/25137
4376 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
4377 -Wmissing_braces.
4378
650dc14a
DS
43792012-05-22 Dodji Seketeli <dodji@redhat.com>
4380
4381 PR c++/53322
4382 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
4383
9b095bf1
MLI
43842012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
4385
4386 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
4387 * c-opts.c (c_common_handle_option): Do not handle explicitly
4388 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
4389
0b2c4be5
DS
43902012-05-16 Dodji Seketeli <dodji@redhat.com>
4391
4392 PR preprocessor/7263
4393 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
4394 to cpp_classify_number. For diagnostics, use the precise location
4395 instead of the global input_location.
4396
a1bde5af
PC
43972012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
4398
d02924ef 4399 PR c++/11856
a1bde5af
PC
4400 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
4401
d1ede5f4
BS
44022012-05-14 Bernd Schmidt <bernds@codesourcery.com>
4403
a1bde5af 4404 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 4405
f2bc201f
MLI
44062012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
4407
4408 PR 53063
4409 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
4410 Wreorder): Use LangEnabledBy.
4411 * c-opts.c (c_common_handle_option): Do not enable them
4412 explicitly. Call lang-specific generated functions.
4413 (c_common_post_options): Do not set them here.
4414
95744782
MLI
44152012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
4416
4417 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
4418 Wmissing-field-initializers,Wmissing-parameter-type,
4419 Wold-style-declaration,Woverride-init): Use EnabledBy.
4420 * c-opts.c (c_common_post_options): Do not set here explicitly.
4421
7d5a5747
MLI
44222012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4423
4424 PR 53063
4425 * c-opts.c (c_common_handle_option): Use handle_generated_option
4426 to enable sub-options.
4427
5a3c9cf2
PC
44282012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
4429
4430 PR c++/53158
4431 * c-common.c (warnings_for_convert_and_check): Use warning_at.
4432
3ac8781c
RG
44332012-05-10 Richard Guenther <rguenther@suse.de>
4434
4435 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
4436 adjust commentary about TYPE_IS_SIZETYPE types.
4437
1e537948
MLI
44382012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4439
4440 PR c++/53261
4441 * c-common.c (warn_logical_operator): Check that argument of
4442 integer_zerop is not NULL.
4443
f2c4a785
MLI
44442012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
4445
4446 PR c/43772
4447 * c-common.c (warn_logical_operator): Do not warn if either side
4448 is already true or false.
4449
50f305ca
MLI
44502012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
4451
4452 PR c/51712
4453 * c-common.c (expr_original_type): New.
4454 (shorten_compare): Do not warn for enumeration types.
4455
0c3641b0
MLI
44562012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
4457
4458 * c.opt (fpermissive): Add Var(flag_permissive).
4459
7edaa4d2
MG
44602012-04-30 Marc Glisse <marc.glisse@inria.fr>
4461
4462 PR c++/51033
4463 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
4464 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
4465
b9c8da34
DS
44662012-04-30 Dodji Seketeli <dodji@redhat.com>
4467
4468 Add -Wvarargs option
4469 * c.opt (Wvarargs): Define new option.
4470
e6c69da0
MLI
44712012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4472
4473 * c-common.c (check_function_arguments): Replace
4474 Wmissing-format-attribute with Wsuggest-attribute=format.
4475
90137d8f
MLI
44762012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4477
4478 * c.opt (Wsuggest-attribute=format): New. Alias of
4479 Wmissing-format-attribute.
4480 * c-format.c (decode_format_type): Replace
4481 Wmissing-format-attribute with Wsuggest-attribute=format.
4482 (check_function_format): Likewise.
4483
9faeb493 44842012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
4485
4486 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
4487 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
4488 * c.opt: Add Wliteral-suffix.
4489
c1771a20
MLI
44902012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
4491
4492 PR c/44774
4493 * c.opt (Wpedantic): New.
4494 (pedantic): Alias Wpedantic.
4495 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
4496 (c_common_post_options): Likewise.
4497 (sanitize_cpp_opts): Likewise.
4498 * c-lex.c (interpret_float): Likewise.
4499 * c-format.c (check_format_types): Likewise.
4500 * c-common.c (pointer_int_sum): Likewise.
4501 (c_sizeof_or_alignof_type): Likewise.
4502 (c_add_case_label): Likewise.
4503 (c_do_switch_warnings): Likewise.
4504 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
4505
04b391c1
JM
45062012-04-15 Jason Merrill <jason@redhat.com>
4507
4508 PR c++/52818
4509 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
4510 (C_STD_NAME): Distinguish between C++98 and C++11.
4511
ac868f29
EB
45122012-04-11 Eric Botcazou <ebotcazou@adacore.com>
4513
4514 PR target/52624
4515 * c-common.h (uint16_type_node): Rename into...
4516 (c_uint16_type_node): ...this.
4517 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
4518 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
4519
fd4116f4
MLI
45202012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
4521
4522 * c-common.c (warn_if_unused_value): Move definition to here.
4523 * c-common.h (warn_if_unused_value): Move declaration to here.
4524
573ac65e
WB
45252012-03-23 William Bader <williambader@hotmail.com>
4526
4527 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
4528
552b8185
JM
45292012-03-20 Jason Merrill <jason@redhat.com>
4530
4531 * c-common.h (enum cxx_dialect): Add cxx1y.
4532 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
4533 test.
4534 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
4535 * c-opts.c (c_common_post_options): Likewise.
4536 (set_std_cxx1y): New.
4537 (c_common_handle_option): Call it.
4538 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
4539
04398fa8
PC
45402012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
4541
4542 PR c++/14710
4543 * c.opt ([Wuseless-cast]): Add.
4544
d2a12ae7
RG
45452012-03-16 Richard Guenther <rguenther@suse.de>
4546
4547 * c-pretty-print.c (pp_c_initializer_list): Adjust.
4548
a12bf402
MLI
45492012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
4550
4551 PR c++/44783
4552 * c.opt (ftemplate-backtrace-limit) Add.
4553
5c30094f
RO
45542012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4555
4556 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
4557 handling.
4558 * c-pragma.c (handle_pragma_extern_prefix): Remove.
4559 (init_pragma): Don't register extern_prefix.
4560
21fa2faf
RG
45612012-03-12 Richard Guenther <rguenther@suse.de>
4562
4563 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
4564 (builtin_type_for_size): Likewise.
4565
e3793c6f
JJ
45662012-02-13 Jakub Jelinek <jakub@redhat.com>
4567
4568 PR c++/52215
4569 * c-common.c (sync_resolve_params): Don't decide whether to convert
4570 or not based on TYPE_SIZE comparison, convert whenever arg_type
4571 is unsigned INTEGER_TYPE.
4572
93286335
PC
45732012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
4574
4575 PR c/52118
4576 * c.opt ([Wunused-local-typedefs]): Fix description.
4577
7a421706
MS
45782012-01-24 Mike Stump <mikestump@comcast.net>
4579
4580 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
4581 exactly.
4582
ba9b1f11
RG
45832012-01-18 Richard Guenther <rguenther@suse.de>
4584
4585 * c-opts.c (c_common_post_options): Reset LTO flags if
4586 we are about to generate a PCH.
4587
465406be
PC
45882012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
4589
4590 PR c++/51777
4591 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
4592 use pp_unsigned_wide_integer.
4593
aee15221
RG
45942012-01-10 Richard Guenther <rguenther@suse.de>
4595
4596 PR middle-end/51806
4597 * c-opts.c (c_common_handle_option): Move -Werror handling
4598 to language independent code.
4599
5720c0dc
RG
46002012-01-05 Richard Guenther <rguenther@suse.de>
4601
4602 PR middle-end/51764
4603 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
4604 from common.opt.
4605
73ac190a
PC
46062011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
4607
4608 PR c++/51316
4609 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
4610 of array types with an unknown bound.
4611
48b0b196
JM
46122011-12-20 Joseph Myers <joseph@codesourcery.com>
4613
4614 * c-common.c (flag_isoc99): Update comment to refer to C11.
4615 (flag_isoc1x): Change to flag_isoc11.
4616 * c-common.h (flag_isoc99): Update comment to refer to C11.
4617 (flag_isoc1x): Change to flag_isoc11.
4618 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
4619 C11.
4620 * c-opts.c (set_std_c1x): Change to set_std_c11.
4621 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
4622 Call set_std_c11.
4623 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
4624 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
4625 * c.opt (std=c1x): Change to std=c11. Document as non-draft
4626 standard.
4627 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
4628 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
4629 (std=gnu1x): Make alias of std=gnu11.
4630
d58d6eb5
JM
46312011-12-19 Jason Merrill <jason@redhat.com>
4632
4633 PR c++/51228
4634 * c-common.c (handle_transparent_union_attribute): Check the first
4635 field if the type is complete.
4636
b3908fcc
JW
46372011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
4638
4639 PR libstdc++/51365
4640 * c-common.c (RID_IS_FINAL): Add.
4641 * c-common.h (RID_IS_FINAL): Add.
4642
fea3ca91
IS
46432011-11-30 Iain Sandoe <iains@gcc.gnu.org>
4644
4645 * c.opt (fgnu-runtime): Provide full description.
4646 (fnext-runtime): Likewise.
4647 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
4648
62bad7cd
AM
46492011-11-28 Andrew MacLeod <amacleod@redhat.com>
4650
4651 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
4652 predefines in one place. Add LOCK_FREE predefines.
4653 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
4654 new func.
4655
c466c4ff
AM
46562011-11-24 Andrew MacLeod <amacleod@redhat.com>
4657
4658 PR c/51256
9faeb493 4659 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 4660 conditions
9faeb493
UB
4661 (resolve_overloaded_atomic_exchange,
4662 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
4663 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
4664 error_mark_node for error conditions.
9faeb493 4665
a5952633
RG
46662011-11-08 Richard Guenther <rguenther@suse.de>
4667
4668 PR middle-end/51010
4669 c-family/
4670
0a35513e
AH
46712011-11-07 Richard Henderson <rth@redhat.com>
4672 Aldy Hernandez <aldyh@redhat.com>
4673 Torvald Riegel <triegel@redhat.com>
4674
4675 Merged from transactional-memory.
4676
4677 * c-common.c (handle_tm_wrap_attribute,
4678 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
4679 (struct c_common_reswords): Added __transaction* keywords.
4680 (struct c_common_attribute_table): Added transaction* and tm_regparm
4681 attributes.
4682 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
4683 masks.
4684 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
4685 find_tm_attribute): Declare.
4686
6d87092d
JM
46872011-11-07 Jason Merrill <jason@redhat.com>
4688
4689 PR c++/35688
4690 * c-common.c, c-common.h: Revert yesterday's changes.
4691
8e7860a1
JM
46922011-11-06 Jason Merrill <jason@redhat.com>
4693
4694 PR c++/35688
4695 * c-common.c (decl_has_visibility_attr): Split out from...
4696 (c_determine_visibility): ...here.
4697 * c-common.h: Declare it.
4698
d19fa6b5
JM
46992011-11-06 Joseph Myers <joseph@codesourcery.com>
4700
4701 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
4702 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
4703 type.
4704 (check_user_alignment): New. Split out of
4705 handle_aligned_attribute. Disallow integer constants with
4706 noninteger types. Conditionally allow zero.
4707 (handle_aligned_attribute): Use check_user_alignment.
4708 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
4709
86951993
AM
47102011-11-06 Andrew MacLeod <amacleod@redhat.com>
4711 Richard Henderson <rth@redhat.com>
4712
4713 Merged from cxx-mem-model.
4714
4715 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 4716 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
4717 parameters that are the same type size.
4718 (get_atomic_generic_size): New. Find size of generic
4719 atomic function parameters and do typechecking.
4720 (add_atomic_size_parameter): New. Insert size into parameter list.
4721 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
4722 either __atomic_exchange_n or external library call.
9faeb493 4723 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 4724 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 4725 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
4726 __atomic_load_n or an external library call.
4727 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
4728 __atomic_store_n or an external library call.
4729 (resolve_overloaded_builtin): Handle new __atomic builtins.
4730
cf9e9959
EB
47312011-11-04 Eric Botcazou <ebotcazou@adacore.com>
4732
4733 PR c++/50608
4734 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
4735 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
4736 <INDIRECT_REF>: Return the argument.
4737 <ARRAY_REF>: Remove special code for negative offset.
4738 Call fold_build_pointer_plus instead of size_binop.
4739 (fold_offsetof): Remove STOP_REF argument and adjust.
4740 * c-common.h (fold_offsetof_1): Declare.
4741 (fold_offsetof): Remove STOP_REF argument.
4742
25339f10
JM
47432011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
4744
4745 PR c++/50810
4746 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4747 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4748 Wnarrowing for C++0x and C++98.
4749 * c.opt ([Wnarrowing]): Update.
4750
89401152
PC
47512011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
4752
4753 PR c++/44277
4754 * c.opt: Add Wzero-as-null-pointer-constant.
4755
97e3ad20
JM
47562011-10-31 Jason Merrill <jason@redhat.com>
4757
15694fdd
JM
4758 * c.opt (-fdeduce-init-list): Off by default.
4759
97e3ad20
JM
4760 PR c++/50920
4761 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
4762 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
4763 and -Wc++11-compat.
4764 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
4765
fb9120e3
RAV
47662011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
4767
4768 PR c++/30066
4769 * c.opt (fvisibility-inlines-hidden): Description change.
4770
3ce4f9e4
ESR
47712011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
4772
4773 Implement C++11 user-defined literals.
4774 * c-common.c (build_userdef_literal): New.
4775 * c-common.def: New tree code.
4776 * c-common.h (tree_userdef_literal): New tree struct and accessors.
4777 * c-lex.c (interpret_float): Add suffix parm.
4778 (c_lex_with_flags): Build literal tokens.
4779
5f53c243
PC
47802011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4781
4782 PR c++/50841
4783 Revert:
4784 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4785
4786 PR c++/50810
4787 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4788 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4789 Wnarrowing for C++0x and C++98.
4790 * c.opt ([Wnarrowing]): Update.
4791
263734e1
PC
47922011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4793
4794 PR c++/50810
4795 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4796 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4797 Wnarrowing for C++0x and C++98.
4798 * c.opt ([Wnarrowing]): Update.
4799
d2e312d7
PC
48002011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
4801
4802 PR c++/45385
4803 * c-common.c (conversion_warning): Remove code looking for
4804 artificial operands.
4805
d17687f6
DS
48062011-10-18 Dodji Seketeli <dodji@redhat.com>
4807
4808 PR bootstrap/50760
4809 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 4810 !NO_IMPLICIT_EXTERN_C.
d17687f6 4811
fc8396e9
PC
48122011-10-17 Michael Spertus <mike_spertus@symantec.com>
4813
4814 * c-common.c (c_common_reswords): Add __bases,
4815 __direct_bases.
4816 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
4817
48182011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
4819
4820 PR c++/50757
4821 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
4822
847e697a
TT
48232011-10-15 Tom Tromey <tromey@redhat.com>
4824 Dodji Seketeli <dodji@redhat.com>
4825
4826 * c.opt (fdebug-cpp): New option.
4827 * c-opts.c (c_common_handle_option): Handle the option.
4828 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
4829 output stream in parameter. Factorized from ...
4830 (maybe_print_line): ... this. Dump location debug information when
4831 -fdebug-cpp is in effect.
4832 (print_line_1): New static function. Takes an output stream in
4833 parameter. Factorized from ...
4834 (print_line): ... here. Dump location information when -fdebug-cpp
4835 is in effect.
4836 (scan_translation_unit): Dump location information when
4837 -fdebug-cpp is in effect.
4838
92582b75
TT
48392011-10-15 Tom Tromey <tromey@redhat.com>
4840 Dodji Seketeli <dodji@redhat.com>
4841
4842 * c.opt (ftrack-macro-expansion): New option. Handle it with and
4843 without argument.
4844 * c-opts.c (c_common_handle_option)<case
4845 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
4846 cases. Handle -ftrack-macro-expansion with and without argument.
4847
46427374
TT
48482011-10-15 Tom Tromey <tromey@redhat.com>
4849 Dodji Seketeli <dodji@redhat.com>
4850
4851 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
4852 (print_line, cb_define, do_line_change): Adjust to avoid touching
4853 the internals of struct line_map. Use the public API instead.
4854 * c-pch.c (c_common_read_pch): Likewise.
4855 * c-lex.c (fe_file_change): Likewise.
4856
fc8396e9
PC
48572011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
4858
4859 PR c++/17212
4860 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
4861
48622011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
4863
4864 PR c++/33067
4865 * c-pretty-print.c (pp_c_floating_constant): Output
4866 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
4867
e79983f4
MM
48682011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
4869
4870 * c-common.c (def_builtin_1): Delete old interface with two
4871 parallel arrays to hold standard builtin declarations, and replace
4872 it with a function based interface that can support creating
4873 builtins on the fly in the future. Change all uses, and poison
4874 the old names. Make sure 0 is not a legitimate builtin index.
4875 * c-omp.c (c_finish_omp_barrier): Ditto.
4876 (c_finish_omp_taskwait): Ditto.
4877 (c_finish_omp_flush): Ditto.
4878
6637388f
TG
48792011-10-11 Tristan Gingold <gingold@adacore.com>
4880
4881 * c.opt: (fallow-parameterless-variadic-functions): New.
4882
3797cb21
DS
48832011-09-08 Dodji Seketeli <dodji@redhat.com>
4884
4885 PR c++/33255 - Support -Wunused-local-typedefs warning
4886 * c-common.h (struct c_language_function::local_typedefs): New
4887 field.
9faeb493
UB
4888 (record_locally_defined_typedef, maybe_record_typedef_use)
4889 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 4890 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
4891 (maybe_record_typedef_use)
4892 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
4893 * c.opt: Declare new -Wunused-local-typedefs flag.
4894
693ddb1b
EB
48952011-09-06 Eric Botcazou <ebotcazou@adacore.com>
4896
4897 PR middle-end/50266
4898 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
4899 computations.
4900
830c740f
RG
49012011-09-05 Richard Guenther <rguenther@suse.de>
4902
4903 * c-common.c (complete_array_type): Use ssize_int (-1) instead
4904 of integer_minus_one_node for empty array upper bounds.
4905
892a371f
DS
49062011-08-28 Dodji Seketeli <dodji@redhat.com>
4907
4908 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
4909 it's the first time it's being called on this main TU.
4910
0e3fdb48
RB
49112011-08-24 Richard Guenther <rguenther@suse.de>
4912
4913 PR c/49396
4914 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
4915
49162011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
4917
4918 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
4919 defined in cpp_init_builtins and c_cpp_builtins.
4920
d4a83c10
JM
49212011-08-19 Joseph Myers <joseph@codesourcery.com>
4922
4923 * c-common.c (c_common_reswords): Add __builtin_complex.
4924 * c-common.h (RID_BUILTIN_COMPLEX): New.
4925
bbceee64
JM
49262011-08-18 Joseph Myers <joseph@codesourcery.com>
4927
4928 * c-common.c (c_common_reswords): Add _Noreturn.
4929 (keyword_is_function_specifier): Handle RID_NORETURN.
4930 * c-common.h (RID_NORETURN): New.
4931
0e3a99ae
AS
49322011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4933
4934 * c-common.c (unsafe_conversion_p): New function. Check if it is
4935 unsafe to convert an expression to the type.
4936 (conversion_warning): Adjust, use unsafe_conversion_p.
4937 * c-common.h (unsafe_conversion_p): New function declaration.
4938
20906c66
JJ
49392011-08-02 Jakub Jelinek <jakub@redhat.com>
4940
4941 * c-common.h (c_finish_omp_atomic): Adjust prototype.
4942 (c_finish_omp_taskyield): New prototype.
4943 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
4944 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
4945 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
4946 or RHS1 have side-effects, evaluate those too in the right spot,
4947 if it is a decl and LHS is also a decl, error out if they
4948 aren't the same.
4949 (c_finish_omp_taskyield): New function.
4950 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
4951 * c-pragma.c (omp_pragmas): Add taskyield.
4952 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
4953 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
4954 PRAGMA_OMP_CLAUSE_MERGEABLE.
4955
770e5a2e
DS
49562011-07-25 Dodji Seketeli <dodji@redhat.com>
4957
4958 * c-common.h (set_underlying_type): Remove parm name from
4959 declaration.
4960
1baae426
RG
49612011-07-25 Romain Geissler <romain.geissler@gmail.com>
4962
4963 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 4964
fcb21722
JM
49652011-07-22 Jason Merrill <jason@redhat.com>
4966
76f86d00
JM
4967 PR c++/49793
4968 * c.opt (Wnarrowing): New.
4969
3a636414
JM
4970 PR c++/30112
4971 * c-common.h: Declare c_linkage_bindings.
4972 * c-pragma.c (handle_pragma_redefine_extname): Use it.
4973
fcb21722
JM
4974 PR c++/49813
4975 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
4976 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
4977 as flag_isoc99 for 'restrict'.
4978 (pp_c_specifier_qualifier_list): Likewise for _Complex.
4979
02614448
ILT
49802011-07-21 Ian Lance Taylor <iant@google.com>
4981
4982 PR middle-end/49705
4983 * c-common.c (c_disable_warnings): New static function.
4984 (c_enable_warnings): New static function.
4985 (c_fully_fold_internal): Change local unused_p to bool. Call
4986 c_disable_warnings and c_enable_warnings rather than change
4987 c_inhibit_evaluation_warnings.
4988
34429675
JM
49892011-07-20 Jason Merrill <jason@redhat.com>
4990
4991 PR c++/6709 (DR 743)
4992 PR c++/42603 (DR 950)
4993 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
4994 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
4995 (CPP_DECLTYPE): New.
4996 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
4997
5d49b6a7
RG
49982011-07-19 Richard Guenther <rguenther@suse.de>
4999
5000 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
5001 * c-omp.c (c_finish_omp_for): Likewise.
5002
e84a58ff
EB
50032011-07-12 Eric Botcazou <ebotcazou@adacore.com>
5004
5005 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
5006 body on the next line.
5007
329af3c7
JM
50082011-07-08 Jason Merrill <jason@redhat.com>
5009
4063e61b
JM
5010 PR c++/45437
5011 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
5012
329af3c7
JM
5013 PR c++/49673
5014 * c-common.c (c_apply_type_quals_to_decl): Don't check
5015 TYPE_NEEDS_CONSTRUCTING.
5016
1a072294
RG
50172011-07-06 Richard Guenther <rguenther@suse.de>
5018
5019 * c-common.c (c_common_nodes_and_builtins):
5020 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
5021
fce5dddd
RG
50222011-07-05 Richard Guenther <rguenther@suse.de>
5023
5024 * c-common.c (c_common_nodes_and_builtins): Build all common
5025 tree nodes first.
5026
45d439ac
JJ
50272011-06-27 Jakub Jelinek <jakub@redhat.com>
5028
56300785
JJ
5029 * c-common.h (c_tree_chain_next): New static inline function.
5030
45d439ac
JJ
5031 * c-common.c (check_builtin_function_arguments): Handle
5032 BUILT_IN_ASSUME_ALIGNED.
5033
e0a8ecf2
AM
50342011-06-21 Andrew MacLeod <amacleod@redhat.com>
5035
5036 * c-common.c: Add sync_ or SYNC__ to builtin names.
5037 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
5038
50392011-06-20 Pierre Vittet <piervit@pvittet.com>
5040
5041 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
5042 handler.
5043 (gen_pragma_handler): New union.
5044 (internal_pragma_handler): New type.
5045 (c_register_pragma_with_data)
5046 (c_register_pragma_with_expansion_and_data): New functions.
5047
5048 * c-pragma.c (registered_pragmas, c_register_pragma_1)
5049 (c_register_pragma, c_register_pragma_with_expansion)
5050 (c_invoke_pragma_handler): Changed to work with
5051 internal_pragma_handler.
5052 (c_register_pragma_with_data)
5053 (c_register_pragma_with_expansion_and_data): New functions.
5054
677f3fa8
JM
50552011-06-14 Joseph Myers <joseph@codesourcery.com>
5056
5057 * c-common.c: Include common/common-target.h.
5058 (handle_section_attribute): Use
5059 targetm_common.have_named_sections.
5060 * c-cppbuiltin.c: Include common/common-target.h.
5061 (c_cpp_builtins): Use targetm_common.except_unwind_info.
5062
d7fc8c14
RG
50632011-06-10 Richard Guenther <rguenther@suse.de>
5064
5065 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
5066 to print a IDENTIFIER_NODE.
5067
10e48e39
RO
50682011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5069 Joseph Myers <joseph@codesourcery.com>
5070
5071 * c.opt (fbuilding-libgcc): New option.
5072 * c-cppbuiltin.c (c_cpp_builtins): Define
5073 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
5074
6976ae51
JM
50752011-06-07 Jason Merrill <jason@redhat.com>
5076
3ff60975
JM
5077 * c-common.c (max_tinst_depth): Lower default to 900.
5078
6976ae51
JM
5079 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
5080
009db074
RG
50812011-06-07 Richard Guenther <rguenther@suse.de>
5082
5083 * c-common.c (c_common_nodes_and_builtins): Do not set
5084 size_type_node or call set_sizetype.
5085
b4592b92
DS
50862011-06-07 Dodji Seketeli <dodji@redhat.com>
5087
5088 PR debug/49130
5089 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 5090 type when using pointer comparison to compare types.
b4592b92 5091
014ab419
JW
50922011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
5093
5094 * c.opt: Add -Wdelete-non-virtual-dtor.
5095 * c-opts.c (c_common_handle_option): Include it in -Wall.
5096
4f60111f
NF
50972011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
5098
5099 PR bootstrap/49190
5100
5101 Revert:
5102 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5103
5104 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
5105 not tree_common.
5106
4cc4f2f4
JJ
51072011-05-27 Jakub Jelinek <jakub@redhat.com>
5108
5109 PR c++/49165
5110 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
5111 C++ don't call c_common_truthvalue_conversion on void type arms.
5112
38e01f9e
NF
51132011-05-27 Nathan Froyd <froydnj@codesourcery.com>
5114
5115 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
5116 (stmt_list_stack): Define.
5117 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
5118 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
5119
92e948a8
NF
51202011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5121
5122 * c-common.c (warning_candidate_p): Check for BLOCKs.
5123
a2fc3e63
NF
51242011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5125
5126 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
5127 not tree_common.
5128
0957c029
JJ
51292011-05-25 Jakub Jelinek <jakub@redhat.com>
5130
5131 * c-common.c (def_fn_type): Remove extra va_end.
5132
828fb3ba
JM
51332011-05-23 Jason Merrill <jason@redhat.com>
5134
5135 PR c++/48106
5136 * c-common.c (c_common_get_narrower): New.
5137 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
5138
dde05067
NF
51392011-05-23 Nathan Froyd <froydnj@codesourcery.com>
5140
5141 * c-common.h (check_function_arguments): Tweak prototype of
5142 check_function_arguments.
5143 * c-common.c (check_function_arguments): Likewise. Adjust
5144 calls to check_function_nonnull, check_function_format, and
5145 check_function_sentinel.
5146 (check_function_sentinel): Take a FUNCTION_TYPE rather than
5147 separate attributes and typelist arguments. Use
5148 FOREACH_FUNCTION_ARGS to iterate over argument types.
5149
3c0d13bf
PC
51502011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
5151
5152 * c-common.c (c_common_reswords): Reorder.
5153 * c-common.h (rid): Likewise.
5154
8242dd04
NF
51552011-05-10 Nathan Froyd <froydnj@codesourcery.com>
5156
5157 * c-common.c (def_fn_type): Don't call build_function_type, call
5158 build_function_type_array or build_varargs_function_type_array
5159 instead.
5160 (c_common_nodes_and_builtins): Likewise.
5161
3d528853
NF
51622011-05-05 Nathan Froyd <froydnj@codesourcery.com>
5163
5164 * c-common.c (c_add_case_label): Omit the loc argument to
5165 build_case_label.
5166 * c-common.h (build_case_label): Remove.
5167 * c-semantics.c (build_case_label): Remove.
5168
a04a722b
JM
51692011-05-05 Joseph Myers <joseph@codesourcery.com>
5170
5171 * c-objc.h (objc_start_method_definition): Update prototype.
5172 * stub-objc.c (objc_start_method_definition): Add extra parameter.
5173
e19a18d4
NF
51742011-05-04 Nathan Froyd <froydnj@codesourcery.com>
5175
5176 * c-common.c (check_main_parameter_types): Reindent. Don't use
5177 TYPE_ARG_TYPES directly.
5178 (handle_nonnull_attribute): Likewise.
5179 (sync_resolve_params): Likewise.
5180 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
5181 to check_format_string.
5182 (handle_format_attribute): Likewise.
5183 (check_format_string): Take a function type to examine instead of
5184 a type list. Use a function_arg_iterator to step through argument
5185 types.
5186
c62c040f
RG
51872011-05-04 Richard Guenther <rguenther@suse.de>
5188
5189 * c-common.c (fix_string_type): Use size_int for index type bounds.
5190 (start_fname_decls): Do not pass NULL to build_int_cst.
5191 (c_init_attributes): Likewise.
5192 * c-lex.c (c_lex_with_flags): Likewise.
5193
c12ff9d8
JM
51942011-04-27 Jason Merrill <jason@redhat.com>
5195
5196 * c-common.c (make_tree_vector_from_list): New.
5197 * c-common.h: Declare it.
5198
304dfbe3
RG
51992011-04-26 Richard Guenther <rguenther@suse.de>
5200
5201 PR preprocessor/48248
5202 * c-ppoutput.c (maybe_print_line): Always optimize newlines
5203 for output size with -P.
5204
3c0d13bf
PC
52052011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
5206
5207 * c-common.c (struct c_common_resword): Add __underlying_type.
5208 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
5209
04695783
JM
52102011-04-20 Jim Meyering <meyering@redhat.com>
5211
5212 * c-format.c (init_dollar_format_checking): Remove useless
5213 if-before-free.
5214
0dc33c3c
NP
52152011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
5216
5217 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 5218 (objc_detect_field_duplicates): New.
0dc33c3c 5219 * stub-objc.c: Likewise.
3c0d13bf 5220
c59633d9
NP
52212011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5222
5223 * stub-objc.c (objc_declare_protocols): Renamed to
5224 objc_declare_protocol.
5225 * c-objc.h: Likewise.
3c0d13bf 5226
32dabdaf
NP
52272011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5228
5229 * stub-objc.c (objc_declare_class): Updated argument name.
5230
81f653d6
NF
52312011-04-12 Nathan Froyd <froydnj@codesourcery.com>
5232
5233 * c-common.h (c_common_init_ts): Declare.
5234 * c-common.c (c_common_init_ts): Define.
5235
eb345401
NP
52362011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5237
5238 * c-objc.h (objc_build_message_expr): Updated prototype.
5239 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 5240
a358e188
MJ
52412011-04-12 Martin Jambor <mjambor@suse.cz>
5242
5243 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
5244 of cgraph_node.
5245
e6313a78
RG
52462011-04-11 Richard Guenther <rguenther@suse.de>
5247
5248 * c-common.c (complete_array_type): Build a range type of
5249 proper type.
5250
dcf0c47e
NF
52512011-04-08 Nathan Froyd <froydnj@codesourcery.com>
5252
5253 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
5254 (handle_type_generic_attribute): Likewise.
5255
1ee44b26
JM
52562011-04-07 Jason Merrill <jason@redhat.com>
5257
5258 PR c++/48450
5259 * c-common.c (c_common_truthvalue_conversion): Don't ignore
5260 conversion from C++0x scoped enum.
5261
acce4e77
JM
52622011-04-06 Joseph Myers <joseph@codesourcery.com>
5263
5264 * c-target-def.h: New file.
5265 * c-target.def: New file.
5266 * c-target.h: New file.
5267 * c-common.c (targetcm): Don't define here.
5268 * c-common.h (default_handle_c_option): Declare.
5269 * c-format.c: Include c-target.h instead of target.h.
5270 * c-opts.c: Include c-target.h instead of target.h. Explicitly
5271 include tm.h.
5272 (default_handle_c_option): Move from targhooks.c.
5273
e2eefb55
JJ
52742011-03-29 Jakub Jelinek <jakub@redhat.com>
5275
5276 PR preprocessor/48248
5277 * c-ppoutput.c (print): Add src_file field.
5278 (init_pp_output): Initialize it.
5279 (maybe_print_line): Don't optimize by adding up to 8 newlines
5280 if map->to_file and print.src_file are different file.
5281 (print_line): Update print.src_file.
5282
ba78087b
KT
52832011-03-25 Kai Tietz <ktietz@redhat.com>
5284
5285 * c-ada-spec.c (compare_comment): Use filename_cmp
5286 instead of strcmp for filename.
5287
0edf1bb2
JL
52882011-03-25 Jeff Law <law@redhat.com>
5289
adfac8df 5290 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 5291
c7dc8804
JM
52922011-03-25 Jason Merrill <jason@redhat.com>
5293
5294 * c.opt: Add -std=c++03.
5295
d1d879b1
EB
52962011-03-22 Eric Botcazou <ebotcazou@adacore.com>
5297
5298 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
5299
62d784f7
KT
53002011-03-17 Kai Tietz
5301
5302 PR target/12171
5050afdf
KT
5303 * c-pretty-print.c (pp_c_specifier_qualifier_list):
5304 Display allowed attributes for function pointer types.
5305 (pp_c_attributes_display): New function to display
5306 attributes having affects_type_identity flag set to true.
5307 * c-pretty-print.h (pp_c_attributes_display): New prototype.
5308
62d784f7
KT
5309 * c-common.c (c_common_attribute_table):
5310 Add new element.
5311 (c_common_format_attribute_table): Likewise.
5312
82d37118
JM
53132011-03-18 Jason Merrill <jason@redhat.com>
5314
49a000c3
JM
5315 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
5316 * c-common.h: Don't declare it here.
5317 * c-common.c: Or define it here.
5318 * c-opts.c (c_common_handle_option): Or set it here.
5319
82d37118
JM
5320 PR c++/35315
5321 * c-common.c (handle_transparent_union_attribute): Don't
5322 make a duplicate type in C++.
5323
17bc631c
JM
53242011-03-15 Jason Merrill <jason@redhat.com>
5325
5326 * c-common.c (max_constexpr_depth): New.
5327 * c-common.h: Declare it.
5328 * c-opts.c (c_common_handle_option): Set it.
5329 * c.opt (fconstexpr-depth): New option.
5330
1b9b91a6
JM
53312011-03-11 Jason Merrill <jason@redhat.com>
5332
f231b5ff
JM
5333 * c-common.c (attribute_takes_identifier_p): Add missing const.
5334
1b9b91a6
JM
5335 PR c++/46803
5336 * c-common.c (attribute_takes_identifier_p): Assume that an
5337 unknown attribute takes an identifier.
5338
a19e4d44
NF
53392011-03-07 Nathan Froyd <froydnj@codesourcery.com>
5340
5341 PR c/47786
5342 * c-common.c (c_type_hash): Call list_length instead of iterating
5343 through DECL_CHAIN. Rename 'i' to 'n_elements'.
5344
982d62f6
JJ
53452011-02-19 Jakub Jelinek <jakub@redhat.com>
5346
5347 PR c/47809
5348 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
5349
0a256240
NP
53502011-02-17 Iain Sandoe <iains@gcc.gnu.org>
5351
5352 * c.opt (fobjc-abi-version=) New.
5353 (fobjc-nilcheck): New.
5354
ba9e6dd5
NF
53552011-02-03 Nathan Froyd <froydnj@codesourcery.com>
5356
5357 PR c++/46890
5358 * c-common.h (keyword_is_decl_specifier): Declare.
5359 * c-common.c (keyword_is_decl_specifier): Define.
5360 (keyword_is_function_specifier): New function.
5361
7273813a
JJ
53622011-01-26 Jakub Jelinek <jakub@redhat.com>
5363
5364 PR c/47473
5365 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
5366 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
5367 REAL_TYPE.
5368
908ef79b
AC
53692011-01-26 Arnaud Charlet <charlet@adacore.com>
5370
5371 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
5372
237e9384
JJ
53732011-01-26 Jakub Jelinek <jakub@redhat.com>
5374
5375 PR pch/47430
5376 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
5377 after init_c_lex if pch_file is set.
5378
47ea1edf
DK
53792011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
5380
d4dba752 5381 PR c++/43601
47ea1edf
DK
5382 * c.opt (-fkeep-inline-dllexport): New switch.
5383
2aa9c6ae
RG
53842011-01-12 Richard Guenther <rguenther@suse.de>
5385
5386 PR middle-end/32511
5387 * c-common.c (handle_weak_attribute): Warn instead of error
5388 on declaring an inline function weak.
5389
7bd11157
TT
53902011-01-05 Tom Tromey <tromey@redhat.com>
5391
5392 * c-common.h (lvalue_error): Update.
5393 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
5394 not error.
5395
0e66e494 53962010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 5397
b4f588c4
NP
5398 PR objc/47075
5399 * c-objc.h (objc_finish_message_expr): Added argument to
5400 prototype.
5401
f4da8dce
NF
54022010-12-22 Nathan Froyd <froydnj@codesourcery.com>
5403
5404 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
5405 Use prototype_p.
5406
46270f14
NP
54072010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
5408
5409 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 5410 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 5411
4816c593
NF
54122010-12-10 Nathan Froyd <froydnj@codesourcery.com>
5413
5414 * c-common.h (readonly_error): Declare.
5415 * c-common.c (readonly_error): Define.
5416
7a6daeb0
NF
54172010-12-09 Nathan Froyd <froydnj@codesourcery.com>
5418
5419 * c-common.h (invalid_indirection_error): Declare.
5420 * c-common.c (invalid_indirection_error): Define.
5421
892f6119
RG
54222010-12-03 Richard Guenther <rguenther@suse.de>
5423
5424 PR c/46745
5425 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
5426 (pp_c_unary_expression): Likewise.
5427 (pp_c_expression): Likewise.
5428
6c39e757
NP
54292010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
5430
5431 * c-common.h (objc_finish_function): New.
5432 (objc_non_volatilized_type): Removed.
5433 (objc_type_quals_match): Removed.
5434 * stub-objc.c (objc_finish_function): New.
5435 (objc_non_volatilized_type): Removed.
5436 (objc_type_quals_match): Removed.
9faeb493 5437
7c475d11
JM
54382010-11-30 Joseph Myers <joseph@codesourcery.com>
5439
5440 * c-common.h (parse_optimize_options): Declare.
5441 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
5442 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
5443
71f3e391
JM
54442010-11-29 Joseph Myers <joseph@codesourcery.com>
5445
5446 * c-opts.c (check_deps_environment_vars): Use getenv instead of
5447 GET_ENVIRONMENT.
5448 * c-pch.c (O_BINARY): Don't define here.
5449 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
5450
d5fabb58
JM
54512010-11-25 Joseph Myers <joseph@codesourcery.com>
5452
5453 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
5454 targetm.except_unwind_info.
5455
299404a1
JM
54562010-11-23 Joseph Myers <joseph@codesourcery.com>
5457
5458 * c-opts.c (c_common_handle_option): Pass location to
5459 set_struct_debug_option.
5460
c98cd5bf
JM
54612010-11-23 Joseph Myers <joseph@codesourcery.com>
5462
5463 * c-common.c (visibility_options): Move from ../opts.c.
5464 * c-common.h (struct visibility_flags, visibility_options):
5465 Declare here.
5466 * c-opts.c (finish_options): Rename to c_finish_options.
5467 (c_common_init): Update call to finish_options.
5468
a9546771
NP
54692010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
5470
5471 PR objc/34033
5472 * c-lex.c (lex_string): Check that each string in an Objective-C
5473 string concat sequence starts with either one or zero '@', and
5474 that there are no spurious '@' signs at the end.
5475
24a57808
JM
54762010-11-20 Joseph Myers <joseph@codesourcery.com>
5477
5478 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
5479 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
5480 HANDLE_PRAGMA_VISIBILITY.
5481 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
5482 HANDLE_PRAGMA_VISIBILITY): Don't define.
5483 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
5484
a9aa2c3a
NF
54852010-11-20 Nathan Froyd <froydnj@codesourcery.com>
5486
5487 PR c++/16189
5488 PR c++/36888
5489 PR c++/45331
5490 * c-common.h (keyword_begins_type_specifier): Declare.
5491 (keyword_is_storage_class_specifier): Declare.
5492 (keyword_is_type_qualifier): Declare.
5493 * c-common.c (keyword_begins_type_specifier): New function.
5494 (keyword_is_storage_class_specifier): New function.
5495 (keyword_is_type_qualifier): Declare.
5496
5386338c
JM
54972010-11-19 Joseph Myers <joseph@codesourcery.com>
5498
5499 PR c/46547
5500 * c-common.c (in_late_binary_op): Define.
5501 (c_common_truthvalue_conversion): Check in_late_binary_op before
5502 calling c_save_expr.
5503 * c-common.h (in_late_binary_op): Declare.
5504
69ccdddb
JM
55052010-11-19 Joseph Myers <joseph@codesourcery.com>
5506
5507 * c-opts.c (c_common_handle_option): Update calls to
5508 set_struct_debug_option.
5509
6b192a09
NP
55102010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
5511
5512 * c-common.h (objc_declare_protocols): Added additional argument.
5513 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 5514
fb52b50a
NF
55152010-11-18 Nathan Froyd <froydnj@codesourcery.com>
5516
5517 PR c/33193
5518 * c-common.h (build_real_imag_expr): Declare.
5519 * c-semantics.c (build_real_imag_expr): Define.
5520
b37421c6
JM
55212010-11-17 Joseph Myers <joseph@codesourcery.com>
5522
5523 * c-opts.c (c_common_parse_file): Take no arguments.
5524 * c-common.h (c_common_parse_file): Update prototype.
5525
07078664
JJ
55262010-11-16 Jakub Jelinek <jakub@redhat.com>
5527
5528 PR c++/46401
5529 * c-common.c (warning_candidate_p): Don't track non-const calls
5530 or STRING_CSTs.
5531
c6a13190
ILT
55322010-11-15 Ian Lance Taylor <iant@google.com>
5533
5534 * c-lex.c (init_c_lex): Set macro debug callbacks if
5535 flag_dump_go_spec is set.
5536
925e8657
NP
55372010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
5538
5539 * c-common.h (objc_build_incr_expr_for_property_ref): New.
5540 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
5541
bb0a9581
NF
55422010-11-15 Nathan Froyd <froydnj@codesourcery.com>
5543
5544 PR preprocessor/45038
5545 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
5546 dialects.
5547
c5fa0890
JM
55482010-11-12 Joseph Myers <joseph@codesourcery.com>
5549
5550 * c-common.h (c_family_lang_mask): Declare.
5551 * c-opts.c (c_family_lang_mask): Make extern.
5552 * c-pragma.c (handle_pragma_diagnostic): Use
5553 control_warning_option.
5554
a4d8c676
JM
55552010-11-12 Joseph Myers <joseph@codesourcery.com>
5556
5557 * c-common.c (parse_optimize_options): Update call to
5558 decode_options.
5559 * c-common.h (c_common_handle_option): Update prototype.
5560 * c-opts.c (c_common_handle_option): Take location_t parameter and
5561 pass it to other functions.
5562
f954bd2c
JM
55632010-11-11 Joseph Myers <joseph@codesourcery.com>
5564
5565 * c-opts.c (warning_as_error_callback): Remove.
5566 (c_common_initialize_diagnostics): Don't call
5567 register_warning_as_error_callback.
5568 (c_common_handle_option): Handle -Werror=normalized= here.
5569
d8a07487
JM
55702010-11-10 Joseph Myers <joseph@codesourcery.com>
5571
5572 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
5573 in diagnostic.
5574 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
5575 letter.
5576 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
5577 Remove trailing '.' from diagnostics.
5578 * c.opt (Wwrite-strings_: Avoid '`' in help text.
5579
d5478783
JM
55802010-11-10 Joseph Myers <joseph@codesourcery.com>
5581
5582 * c-common.c (parse_optimize_options): Pass global_dc to
5583 decode_options.
5584 * c-opts.c (c_common_handle_option): Pass &global_options to
5585 set_Wstrict_aliasing.
5586 * c.opt (v): Don't mark Common or document here.
5587
91ebb981
IS
55882010-11-06 Iain Sandoe <iains@gcc.gnu.org>
5589
5590 PR target/44981
5591 * c-format.c (format_type): New type gcc_objc_string_format_type.
5592 (valid_stringptr_type_p): New.
5593 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 5594 (check_format_string): Pass expected type, use
91ebb981
IS
5595 valid_stringptr_type_p (), check that the format string types are
5596 consistent with the format specification.
5597 (decode_format_attr): Warn if NSString is used outside objective-c.
5598 (format_types_orig): Add NSString.
5599 (format_name): New.
5600 (format_flags): New.
5601 (check_format_arg): Handle format strings requiring an external parser.
5602 first_target_format_type: New variable.
5603 (handle_format_attribute): Set up first_target_format_type, pass the
5604 expected format arg string type to check_format_string().
5605 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
5606 * stub-objc.c (objc_string_ref_type_p): New.
5607 (objc_check_format_arg): New.
5608
bede2adc
NP
56092010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
5610
9faeb493 5611 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
5612 * c-common.h (objc_build_class_component_ref): New.
5613 * stub-objc.c (objc_build_class_component_ref): New.
5614
9a179d01
NP
56152010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
5616
5617 * c.opt (Wproperty-assign-default): New option.
5618
22d8d616
NP
56192010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
5620
5621 Implemented -fobjc-std=objc1 flag.
5622 * c.opt (fobjc-std=objc1): New option.
5623
2debdb4f
NP
56242010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
5625
5626 Implemented format and noreturn attributes for Objective-C methods.
5627 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
5628 attribute for Objective-C methods.
5629
ec52b111
JM
56302010-10-31 Jason Merrill <jason@redhat.com>
5631
5632 * c-common.c (conversion_warning, warn_for_collisions_1): Use
5633 EXPR_LOC_OR_HERE.
5634
46a88c12
NP
56352010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
5636
5637 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
5638 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
5639 (objc_add_property_declaration): Removed arguments for copies and
5640 ivar.
5641 (objc_build_getter_call): Renamed to
5642 objc_maybe_build_component_ref.
5643 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
5644 (objc_is_property_ref): New.
5645 * c-common.c (c_common_reswords): Removed copies and ivar.
5646 * stub-objc.c (objc_add_property_declaration): Removed arguments
5647 for copies and ivar.
5648 (objc_build_getter_call): Renamed to
5649 objc_maybe_build_component_ref.
5650 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
5651 (objc_is_property_ref): New.
9faeb493 5652
1e4bf85b
AC
56532010-10-29 Arnaud Charlet <charlet@adacore.com>
5654 Matthew Gingell <gingell@adacore.com>
5655
5656 * c-ada-spec.c (separate_class_package): New function.
5657 (pp_ada_tree_identifier): Prefix references to C++ classes with the
5658 name of their enclosing package.
5659 (print_ada_declaration): Use separate_class_package.
5660
81f0bab2
JM
56612010-10-27 Jason Merrill <jason@redhat.com>
5662
2b08f2c5
JM
5663 * c-common.c (c_common_reswords): Add __is_literal_type.
5664 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
5665
81f0bab2
JM
5666 * c-common.c (check_case_value): Remove special C++ code.
5667
200290f2
NP
56682010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
5669
5670 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
5671 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
5672 and RID_LAST_PATTR.
5673 (objc_add_property_declaration): Added additional arguments.
5674 (objc_property_attribute_kind): Removed.
5675 (objc_set_property_attr): Removed.
5676 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
5677 copy and nonatomic.
5678 * stub-objc.c (objc_add_property_declaration): Added additional
5679 arguments.
5680 (objc_set_property_attr): Removed.
9faeb493 5681
f614132b
NP
56822010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
5683
5684 * c-common.h (objc_add_property_variable): Renamed to
5685 objc_add_property_declaration. Added location argument.
5686 * stub-objc.c (objc_add_property_variable): Same change.
b1726d6c 5687
b8a18805
NP
56882010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
5689
5690 * c-common.h (objc_maybe_printable_name): New.
5691 * stub-objc.c (objc_maybe_printable_name): New.
5692
30cd1c5d
AS
56932010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
5694 Andrew Pinski <pinskia@gmail.com>
5695
5696 * c-common.h (c_common_mark_addressable_vec): Declare.
5697 * c-common.c (c_common_mark_addressable_vec): New function.
5698
249a82c4
NP
56992010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
5700
5701 * c-common.h (objc_set_method_type): Removed.
5702 (objc_add_method_declaration): Added boolean argument.
5703 (objc_start_method_definition): Same change.
5704 (objc_build_method_signature): Same change.
5705 * stub-objc.c (objc_set_method_type): Removed.
5706 (objc_add_method_declaration): Added boolean argument.
5707 (objc_start_method_definition): Same change.
5708 (objc_build_method_signature): Same change.
5709
977e30bc
NP
57102010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
5711
5712 * c-common.h (finish_file): Removed.
5713 (objc_write_global_declarations): New.
5714 * c-opts.c (c_common_parse_file): Do not call finish_file.
5715 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 5716
da57d1b9
NP
57172010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
5718
5719 Implemented parsing @synthesize and @dynamic for
5720 Objective-C/Objective-C++.
5721 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
5722 (objc_add_synthesize_declaration): New.
5723 (objc_add_dynamic_declaration): New.
5724 * c-common.c (c_common_reswords): Add synthesize and dynamic.
5725 * stub-objc.c (objc_add_synthesize_declaration): New.
5726 (objc_add_dynamic_declaration): New.
9faeb493 5727
0069111f
MM
57282010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
5729
5730 PR target/46041
5731 * c-cppbuiltin.c (mode_has_fma): Move function here from
5732 builtins.c. Don't use the fma optab, instead just use the
5733 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
5734 using -save-temps.
5735
e426b47b
NP
57362010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
5737
5738 Merge from 'apple/trunk' branch on FSF servers.
0069111f 5739
e426b47b
NP
5740 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
5741
9faeb493 5742 Radar 4330422
e426b47b
NP
5743 * c-common.h (objc_non_volatilized_type): New declaration
5744 * stub-objc.c (objc_non_volatilized_type): New stub.
5745
90fbfdc3
NP
57462010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
5747
e426b47b 5748 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
5749
5750 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
5751
9faeb493 5752 Radar 4133425
90fbfdc3 5753 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 5754 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 5755
c37d8c30
IS
57562010-10-17 Iain Sandoe <iains@gcc.gnu.org>
5757
5758 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
5759 * c-common.h (enum rid): Add RID_AT_PACKAGE.
5760 (objc_ivar_visibility_kind): New enum.
5761 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 5762 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
5763 visibility enum.
5764
1b1562a5
MM
57652010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5766
5767 * c-cppbuiltin.c (builtin_define_float_constants): Emit
5768 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
5769 has the appropriate fma builtins.
5770 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
5771
668ea4b1
IS
57722010-10-14 Iain Sandoe <iains@gcc.gnu.org>
5773
1b1562a5 5774 merge from FSF apple 'trunk' branch.
668ea4b1 5775 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 5776
668ea4b1
IS
5777 Radars 4436866, 4505126, 4506903, 4517826
5778 * c-common.c (c_common_resword): Define @property and its attributes.
5779 * c-common.h: Define property attribute enum entries.
5780 (OBJC_IS_PATTR_KEYWORD): New.
5781 (objc_property_attribute_kind): New enum.
5782 Declare objc_set_property_attr (), objc_add_property_variable (),
5783 objc_build_getter_call () and objc_build_setter_call ().
5784 * stub-objc.c (objc_set_property_attr): New stub.
5785 (objc_add_property_variable): Likewise.
5786 (objc_build_getter_call): Likewise.
5787 (objc_build_setter_call) Likewise.
1b1562a5 5788
a1178b30
IS
57892010-10-13 Iain Sandoe <iains@gcc.gnu.org>
5790
1b1562a5 5791 merge from FSF apple 'trunk' branch.
a1178b30
IS
5792 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
5793
5794 Radar 3803157 (method attributes)
5795 * c-common.c (handle_deprecated_attribute): Recognize
5796 objc methods as valid declarations.
5797 * c-common.h: Declare objc_method_decl ().
1b1562a5 5798 * stub-objc.c (objc_method_decl): New stub.
a1178b30 5799
a75bfaa6
JM
58002010-10-08 Joseph Myers <joseph@codesourcery.com>
5801
5802 * c-common.c (parse_optimize_options): Call
5803 decode_cmdline_options_to_array_default_mask before
5804 decode_options. Update arguments to decode_options.
5805 * c-common.h (c_common_init_options_struct): Declare.
5806 * c-opts.c (c_common_init_options_struct): New. Split out from
5807 c_common_init_options.
5808
f05b9d93
NP
58092010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
5810
5811 Implemented fast enumeration for Objective-C.
5812 * c-common.h (objc_finish_foreach_loop): New.
5813 * stub-objc.c (objc_finish_foreach_loop): New.
5814
1ebe4b4f
JM
58152010-10-05 Joseph Myers <joseph@codesourcery.com>
5816
5817 * c-common.h (struct diagnostic_context): Don't declare here.
5818 (c_common_initialize_diagnostics): Declare using
5819 diagnostic_context typedef.
5820 * c-opts.c (c_common_handle_option): Pass global_dc to
5821 handle_generated_option.
5822
d4d24ba4
JM
58232010-10-04 Joseph Myers <joseph@codesourcery.com>
5824
5825 * c-opts.c (c_common_handle_option): Pass &global_options_set to
5826 handle_generated_option.
5827
478a1c5b
ILT
58282010-10-03 Ian Lance Taylor <iant@google.com>
5829
5830 * c.opt (-fplan9-extensions): New option.
5831
82a1c2fe
FXC
58322010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5833
5834 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
5835 Remove.
5836 (c_cpp_builtins): Call functions from cppbuiltin.c instead
5837 of duplicating code.
5838
92902b1b
IS
58392010-09-30 Iain Sandoe <iains@gcc.gnu.org>
5840
5841 * c-common.c: Add two new entries for @optional
5842 and @required keywords.
5843
5844 merge from FSF 'apple/trunk' branch.
5845 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
5846
5847 Radar 4386773
5848 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
5849 objective-c keywords.
5850 (objc_set_method_opt): New declaration.
5851 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 5852
46625112
JM
58532010-09-30 Joseph Myers <joseph@codesourcery.com>
5854
5855 * c-common.c (handle_optimize_attribute): Pass &global_options to
5856 cl_optimization_save and cl_optimization_restore.
5857 * c-opts.c (c_common_handle_option): Pass &global_options to
5858 handle_generated_option.
5859 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
5860 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
5861 &global_options to cl_optimization_restore.
5862
49b91f05
NP
58632010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
5864
5865 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
5866 Objective-C/Objective-C++ keywords.
5867
13ed556f 58682010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 5869
9faeb493
UB
5870 Merge from 'apple/trunk' branch on FSF servers.
5871
a6341d57
NP
5872 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
5873
5874 Radar 4281748
5875 * c-common.h (objc_check_global_decl): New declaration.
5876 * stub-objc.c (objc_check_global_decl): New stub.
5877
f0036cca
JM
58782010-09-29 Joseph Myers <joseph@codesourcery.com>
5879
5880 * c.opt: Don't use VarExists.
5881
e3339d0f
JM
58822010-09-29 Joseph Myers <joseph@codesourcery.com>
5883
5884 * c-common.c (c_cpp_error): Update names of diagnostic_context
5885 members.
5886 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
5887 cl_optimization members.
5888 * c-opts.c (warning_as_error_callback, c_common_handle_option,
5889 sanitize_cpp_opts, finish_options): Update names of cpp_options
5890 members.
5891
1973201f
NP
58922010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
5893
5894 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
5895 (objc_is_reserved_word): Removed.
5896 * c-common.c: Updated comments.
5897 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
5898 objc_is_reserved_word.
5899 * stub-objc.c (objc_is_reserved_word): Removed.
5900
f7e71da5
IS
59012010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5902
9faeb493 5903 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
5904 include attributes.
5905 (objc_start_method_definition): Likewise.
5906 (objc_build_keyword_decl): Likewise.
5907 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
5908 (objc_start_method_definition): Likewise.
5909 (objc_build_keyword_decl): Likewise.
5910
c165dca7
IS
59112010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5912
5913 * c-common.h (objc_start_class_interface): Adjust prototype.
5914 (objc_start_category_interface): Likewise.
5915 (objc_start_protocol): Likewise.
5916 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
5917 (objc_start_class_interface): Likewise.
5918 (objc_start_category_interface): Likewise.
5919
7458026b
ILT
59202010-09-27 Ian Lance Taylor <iant@google.com>
5921
5922 * c-common.c (c_common_attribute_table): Add no_split_stack.
5923 (handle_no_split_stack_attribute): New static function.
5924
b581b85b
NP
59252010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
5926
9faeb493 5927 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
5928
5929 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
5930
9faeb493 5931 Radar 4229905
b581b85b
NP
5932 * c-common.h (objc_have_common_type): New declaration.
5933 * stub-objc.c (objc_have_common_type): New stub.
5934
5935 2005-06-22 Ziemowit Laski <zlaski@apple.com>
5936
5937 Radar 4154928
5938 * c-common.h (objc_common_type): New prototype.
9faeb493 5939 * stub-objc.c (objc_common_type): New stub.
b581b85b 5940
46a4da10
JH
59412010-09-24 Jan Hubicka <jh@suse.cz>
5942
5943 * c-common.c (handle_leaf_attribute): New function.
5944 (struct attribute_spec c_common_att): Add leaf.
5945
e200444e
JM
59462010-09-22 Joseph Myers <joseph@codesourcery.com>
5947
5948 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
5949 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
5950 -dump, -dump=, -imacros, -imacros=, -include, -include=,
5951 -include-barrier, -include-directory, -include-directory=,
5952 -include-directory-after, -include-directory-after=,
5953 -include-prefix, -include-prefix=, -include-with-prefix,
5954 -include-with-prefix=, -include-with-prefix-after,
5955 -include-with-prefix-after=, -include-with-prefix-before,
5956 -include-with-prefix-before=, -no-integrated-cpp,
5957 -no-line-commands, -no-standard-includes, -no-warnings, -output,
5958 -output=, -pedantic, -pedantic-errors, -preprocess,
5959 -print-missing-file-dependencies, -trace-includes, -traditional,
5960 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
5961 -user-dependencies, -verbose, -write-dependencies,
5962 -write-user-dependencies, no-integrated-cpp, traditional): New.
5963
29a80ea6
NP
59642010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5965
5966 PR objc/23710
ac1fc2fc
NP
5967 * c-common.h (objc_start_method_definition): Return bool instead
5968 of void.
5969 * stub-objc.c (objc_start_method_definition): Return bool instead
5970 of void.
5971
59722010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5973
5974 PR objc/25965
5975 * c-common.h (objc_get_interface_ivars): New declaration.
5976 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 5977
de621752
ILT
59782010-09-15 Ian Lance Taylor <iant@google.com>
5979
5980 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 5981 messages. Remove period at end of warning message.
de621752 5982
ba885ec5
NS
59832010-09-09 Nathan Sidwell <nathan@codesourcery.com>
5984
5985 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
5986 (handle_alias_attribute): ... here.
5987 (handle_ifunc_attribute): New.
5988
c5ee1358
MM
59892010-09-06 Mark Mitchell <mark@codesourcery.com>
5990
5991 * c-common.h (do_warn_double_promotion): Declare.
5992 * c-common.c (do_warn_double_promotion): Define.
5993
0a0b3574
MM
59942010-09-05 Mark Mitchell <mark@codesourcery.com>
5995
5996 * c.opt (Wdouble-promotion): New.
5997
d1779886
JM
59982010-09-02 Joseph Myers <joseph@codesourcery.com>
5999
6000 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
6001 fvtable-thunks, fxref): Mark no longer supported in help text.
6002
2d2bd949
JM
60032010-09-02 Joseph Myers <joseph@codesourcery.com>
6004
6005 * c.opt (Wimport, fall-virtual, falt-external-templates,
6006 fdefault-inline, fenum-int-equiv, fexternal-templates,
6007 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
6008 fname-mangling-version-, fnew-abi, fnonnull-objects,
6009 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
6010 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
6011 applicable.
6012 (fhandle-exceptions): Mark with Alias and Warn.
6013 * c-opts.c (c_common_handle_option): Don't handle options marked
6014 as ignored.
6015
5de8299c
JM
60162010-09-02 Joseph Myers <joseph@codesourcery.com>
6017
6018 * c.opt (Wcomments, Werror-implicit-function-declaration,
6019 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
6020 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
6021 aliases.
6022 * c-common.c (option_codes): Use OPT_Wcomment instead of
6023 OPT_Wcomments.
6024 * c-opts.c (warning_as_error_callback, c_common_handle_option):
6025 Don't handle options marked as aliases.
6026
0ceb0201
RG
60272010-08-25 Richard Guenther <rguenther@suse.de>
6028
6029 * c-common.c (c_common_get_alias_set): Remove special
6030 handling for pointers.
6031
ac47786e
NF
60322010-08-20 Nathan Froyd <froydnj@codesourcery.com>
6033
6034 * c-common.c: Use FOR_EACH_VEC_ELT.
6035 * c-gimplify.c: Likewise.
6036 * c-pragma.c: Likewise.
6037
c878765b
JM
60382010-08-16 Joseph Myers <joseph@codesourcery.com>
6039
6040 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
6041 RejectDriver.
6042 (MMDX): Change back to MMD. Mark NoDriverArg instead of
6043 RejectDriver.
6044 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
6045 instead of OPT_MDX and OPT_MMDX.
6046
603349bf
JM
60472010-08-16 Joseph Myers <joseph@codesourcery.com>
6048
6049 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
6050
644fa7ac
JM
60512010-08-12 Joseph Myers <joseph@codesourcery.com>
6052
6053 * c.opt (MD, MMD): Change to MDX and MMDX.
6054 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
6055
481e1176
JM
60562010-08-11 Joseph Myers <joseph@codesourcery.com>
6057
6058 * c-opts.c (c_common_handle_option): Call handle_generated_option
6059 instead of handle_option.
6060
ac8dc9f7
NF
60612010-08-08 Nathan Froyd <froydnj@codesourcery.com>
6062
6063 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
6064 (maybe_apply_renaming_pragma): Delete unneeded declarations.
6065
4f8c876d
NF
60662010-08-08 Nathan Froyd <froydnj@codesourcery.com>
6067
6068 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
6069 (pending_redefine_extname): Change type to a VEC.
6070 (add_to_renaming_pragma_list): Update for new type of
6071 pending_redefine_extname.
ac8dc9f7 6072 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 6073
3b0c690e
AC
60742010-08-04 Arnaud Charlet <charlet@adacore.com>
6075
6076 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
6077 visited.
6078 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
6079 decide whether a type has already been declared/seen.
6080 Do not go to the original type.
6081 (dump_nested_types): New parameter forward.
6082 Generate forward declaration if needed and mark type as visited.
6083 (print_ada_declaration): Call dump_nested_types if not already done.
6084 Mark types as visited.
6085
1890bccc
JM
60862010-08-03 Joseph Myers <joseph@codesourcery.com>
6087
6088 * c.opt (-print-pch-checksum): Remove option.
6089 * c-opts.c (c_common_handle_option): Don't handle
6090 OPT_print_pch_checksum.
6091
5f20c657
JM
60922010-07-27 Joseph Myers <joseph@codesourcery.com>
6093
6094 * c-common.h (c_common_handle_option): Update prototype and return
6095 value type.
6096 * c-opts.c (c_common_handle_option): Update prototype and return
6097 value type. Update calls to handle_option and
6098 enable_warning_as_error.
6099
f551f80c
JJ
61002010-07-27 Jakub Jelinek <jakub@redhat.com>
6101
6102 PR c/45079
6103 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
6104
61ff2bdc
JM
61052010-07-27 Joseph Myers <joseph@codesourcery.com>
6106
6107 * c-common.h (c_common_missing_argument): Remove.
6108 * c-opts.c (c_common_missing_argument): Remove.
6109 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
6110 idirafter, imacros, include, isysroot, isystem, iquote): Add
6111 MissingArgError.
6112 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
6113
7a9bf9a4
JM
61142010-07-27 Joseph Myers <joseph@codesourcery.com>
6115
6116 * c-common.h (c_common_option_lang_mask,
6117 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
6118 New.
6119 (c_common_init_options): Update prototype.
6120 * c-opts.c (c_common_option_lang_mask): New.
6121 (c_common_initialize_diagnostics): Split out of
6122 c_common_init_options.
6123 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
6124 New.
6125 (c_common_init_options): Update prototype. Use decoded options in
6126 search for -lang-asm.
6127
910ad8de
NF
61282010-07-15 Nathan Froyd <froydnj@codesourcery.com>
6129
6130 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
6131 * c-format.c: Likewise.
6132
718f9c0f
MLI
61332010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
6134
6135 * c-common.h: Include diagnostic-core.h. Error if already
6136 included.
6137 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
6138
4d451982
MLI
61392010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
6140
adfac8df 6141 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
6142 Do not include expr.h
6143 (vector_mode_valid_p): Move here.
6144
119fe915
SB
61452010-06-21 DJ Delorie <dj@redhat.com>
6146
6147 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
6148 allow these pragmas anywhere.
6149
61502010-06-14 Jakub Jelinek <jakub@redhat.com>
6151
6152 PR bootstrap/44509
6153 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
6154 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
6155 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
6156 ggc_strdup instead of xstrdup.
6157
61582010-06-10 Jakub Jelinek <jakub@redhat.com>
6159
6160 * c-cppbuiltin.c: Include cpp-id-data.h.
6161 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
6162 (lazy_hex_fp_value): New function.
6163 (builtin_define_with_hex_fp_value): Provide definitions lazily.
6164
6662d794
MLI
61652010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
6166
6167 * c-gimplify.c: Do not include tree-flow.h
6168
38f8b050
JR
61692010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
6170
6171 PR other/44034
6172 * c-common.c: Rename targetm member:
6173 targetm.enum_va_list -> targetm.enum_va_list_p
6174
9589f23e
AS
61752010-06-28 Anatoly Sokolov <aesok@post.ru>
6176
6177 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
6178
3b06d379
SB
61792010-06-28 Steven Bosscher <steven@gcc.gnu.org>
6180
6181 * c-cppbuiltin.c: Do not include except.h.
6182
d166d4c3
AK
61832010-06-24 Andi Kleen <ak@linux.intel.com>
6184
9faeb493
UB
6185 * c-common.c (warn_for_omitted_condop): New.
6186 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 6187
70cb8be6
JM
61882010-06-21 Joseph Myers <joseph@codesourcery.com>
6189
6190 * c.opt (lang-objc): Remove.
6191 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
6192
a4c97feb
JR
61932010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
6194
6195 * c-opts.c: Include "tm_p.h".
6196
6e2f1956
JM
61972010-06-20 Joseph Myers <joseph@codesourcery.com>
6198
6199 * c-common.c (parse_optimize_options): Update call to
6200 decode_options.
6201
bc87224e
NF
62022010-06-18 Nathan Froyd <froydnj@codesourcery.com>
6203
6204 * c-common.c (record_types_used_by_current_var_decl): Adjust for
6205 new type of types_used_by_cur_var_decl.
6206
b49cf425
JR
62072010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
6208
6209 PR bootstrap/44512
6210 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
6211 for C++ standard compliance.
6212
59f9c2ed
JM
62132010-06-16 Jason Merrill <jason@redhat.com>
6214
6215 * c.opt: Add -Wnoexcept.
6216
33766b66
RG
62172010-06-16 Richard Guenther <rguenther@suse.de>
6218
6219 PR c/44555
6220 * c-common.c (c_common_truthvalue_conversion): Remove
6221 premature and wrong optimization concering ADDR_EXPRs.
6222
eff7e30c
AC
62232010-06-15 Arnaud Charlet <charlet@adacore.com>
6224
6225 * c-ada-spec.c (dump_sloc): Remove column info.
6226 (is_simple_enum): New function.
6227 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
6228 enum types when relevant.
6229
6312e84d
MLI
62302010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
6231
9faeb493 6232 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
6233 location.
6234
1cb42611
JM
62352010-06-10 Joseph Myers <joseph@codesourcery.com>
6236
6237 * c-opts.c (c_common_handle_option): Don't handle
6238 OPT_fshow_column.
6239
a9429e29
LB
62402010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
6241
6242 * c-pragma.c (push_alignment): Use typed GC allocation.
6243 (handle_pragma_push_options): Likewise.
6244
6245 * c-common.c (parse_optimize_options): Likewise.
6246
6247 * c-common.h (struct sorted_fields_type): Add variable_size GTY
6248 option.
6249
5498f011
JM
62502010-06-07 Joseph Myers <joseph@codesourcery.com>
6251
6252 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
6253 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
6254 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
6255 flag_signed_bitfields, warn_strict_null_sentinel,
6256 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
6257 flag_gen_declaration, flag_no_gnu_keywords,
6258 flag_implement_inlines, flag_implicit_templates,
6259 flag_implicit_inline_templates, flag_optional_diags,
6260 flag_elide_constructors, flag_default_inline, flag_rtti,
6261 flag_conserve_space, flag_access_control, flag_check_new,
6262 flag_new_for_scope, flag_weak, flag_working_directory,
6263 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
6264 flag_enforce_eh_specs, flag_threadsafe_statics,
6265 flag_pretty_templates): Remove.
6266 * c-common.h (flag_preprocess_only, flag_nil_receivers,
6267 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
6268 flag_replace_objc_classes, flag_undef, flag_no_builtin,
6269 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
6270 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
6271 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
6272 flag_no_gnu_keywords, flag_implement_inlines,
6273 flag_implicit_templates, flag_implicit_inline_templates,
6274 flag_optional_diags, flag_elide_constructors, flag_default_inline,
6275 flag_rtti, flag_conserve_space, flag_access_control,
6276 flag_check_new, flag_new_for_scope, flag_weak,
6277 flag_working_directory, flag_use_cxa_atexit,
6278 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
6279 flag_threadsafe_statics, flag_pretty_templates,
6280 warn_strict_null_sentinel): Remove.
6281 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
6282 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
6283 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
6284 fimplicit-inline-templates, fimplicit-templates,
6285 flax-vector-conversions, fms-extensions, fnil-receivers,
6286 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
6287 frtti, fshort-double, fshort-enums, fshort-wchar,
6288 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
6289 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
6290 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
6291 gen-decls, undef): Use Var.
6292 (fdefault-inline, foptional-diags): Document as doing nothing.
6293 * c-opts.c (c_common_handle_option): Remove cases for options now
6294 using Var. Mark ignored options as such.
6295
39dabefd
SB
62962010-06-05 Steven Bosscher <steven@gcc.gnu.org>
6297
9faeb493 6298 * c-common.c: Moved to here from parent directory.
39dabefd
SB
6299 * c-common.def: Likewise.
6300 * c-common.h: Likewise.
6301 * c-cppbuiltin.c: Likewise.
6302 * c-dump.c: Likewise.
6303 * c-format.c: Likewise.
6304 * c-format.h : Likewise.
6305 * c-gimplify.c: Likewise.
6306 * c-lex.c: Likewise.
6307 * c-omp.c: Likewise.
6308 * c.opt: Likewise.
6309 * c-opts.c: Likewise.
6310 * c-pch.c: Likewise.
6311 * c-ppoutput.c: Likewise.
6312 * c-pragma.c: Likewise.
6313 * c-pragma.h: Likewise.
6314 * c-pretty-print.c: Likewise.
6315 * c-pretty-print.h: Likewise.
6316 * c-semantics.c: Likewise.
6317 * stub-objc.c: Likewise.
6318
6319 * c-common.c: Include gt-c-family-c-common.h.
6320 * c-pragma.c: Include gt-c-family-c-pragma.h.
6321\f
818ab71a 6322Copyright (C) 2010-2016 Free Software Foundation, Inc.
39dabefd
SB
6323
6324Copying and distribution of this file, with or without modification,
6325are permitted in any medium without royalty provided the copyright
6326notice and this notice are preserved.