]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
genrecog: Fix crash on invalid input
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
c06d25bb
RB
12016-03-09 Richard Biener <rguenther@suse.de>
2
3 PR c/70143
4 * c-common.c (strict_aliasing_warning): Add back
5 alias_sets_conflict_p check.
6
80aac5c8
JM
72016-03-08 Jason Merrill <jason@redhat.com>
8
9 * c-opts.c (set_std_cxx1z): Don't enable concepts.
10
64b23c13
DM
112016-03-04 David Malcolm <dmalcolm@redhat.com>
12
13 PR c/68187
14 * c-indentation.c (get_visual_column): Move code to determine next
15 tab stop to...
16 (next_tab_stop): ...this new function.
17 (line_contains_hash_if): Delete function.
18 (detect_preprocessor_logic): Delete function.
19 (get_first_nws_vis_column): New function.
20 (detect_intervening_unindent): New function.
21 (should_warn_for_misleading_indentation): Replace call to
22 detect_preprocessor_logic with a call to
23 detect_intervening_unindent.
24
729526f5
DM
252016-03-04 David Malcolm <dmalcolm@redhat.com>
26
27 PR c/68187
28 * c-indentation.c (should_warn_for_misleading_indentation): When
29 suppressing warnings about cases where the guard and body are on
30 the same column, only use the first non-whitespace column in place
31 of the guard token column when dealing with "else" clauses.
32 When rejecting aligned BODY and NEXT, loosen the requirement
33 from equality with the first non-whitespace of guard to simply
34 that they not be indented relative to it.
35
e9a35493
RB
362016-03-04 Richard Biener <rguenther@suse.de>
37
38 PR c++/70054
39 * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
40 instead of alias_sets_conflict_p.
41
1be56bc5
MP
422016-03-01 Marek Polacek <polacek@redhat.com>
43
44 PR c++/69795
45 * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
46 any DECL.
47
35886f0b
MS
482016-02-22 Martin Sebor <msebor@redhat.com>
49
50 PR middle-end/69780
51 * c-common.c (check_builtin_function_arguments): Validate and
52 reject invalid arguments to __builtin_alloca_with_align.
53
4246c8da
MW
542016-02-20 Mark Wielaard <mjw@redhat.com>
55
56 PR c/28901
57 * c.opt (Wunused-const-variable): Turn into Alias for...
58 (Wunused-const-variable=): New option.
59
268be88c
BE
602016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
61
62 PR c++/69865
63 * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
64 here...
65 (c_common_init_options): ...to here.
66 (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
67
871b3f47
JJ
682016-02-19 Jakub Jelinek <jakub@redhat.com>
69
70 PR c++/69826
71 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
72 (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
73 flag_preprocess_only.
74
bf14eba2
JJ
752016-02-16 Jakub Jelinek <jakub@redhat.com>
76
77 PR c/69835
78 * c.opt (Wnonnull-compare): Enable for -Wall.
79
ba6b3795
JJ
802016-02-15 Jakub Jelinek <jakub@redhat.com>
81
82 PR c++/69797
83 * c-common.c (sync_resolve_size): Diagnose too few arguments
84 even when params is non-NULL empty vector.
85
a011cd92
BS
862016-02-08 Bernd Schmidt <bschmidt@redhat.com>
87
88 PR target/60410
89 * c.opt (fshort-double): Remove.
90
46cb9332
MS
912016-02-05 Martin Sebor <msebor@redhat.com>
92
93 PR c++/69662
94 * c.opt (Warning options): Update -Wplacement-new to take
95 an optional argument.
96
e1b81f2b
JJ
972016-02-01 Jakub Jelinek <jakub@redhat.com>
98
99 PR preprocessor/69543
100 PR c/69558
101 * c-pragma.c (handle_pragma_diagnostic): Pass input_location
102 instead of loc to control_warning_option.
103
b6adbb9f
NS
1042016-02-01 Nathan Sidwell <nathan@codesourcery.com>
105
106 * c.opt (fopenacc-dim=): New option.
107
5d70666e
RB
1082016-01-27 Ryan Burn <contact@rnburn.com>
109
110 PR cilkplus/69267
111 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
112 gimplify_arg. Removed superfluous post_p argument.
113 * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
114 superfluous post_p argument.
115 * c-gimplify.c (c_gimplify_expr): Likewise.
116
01e1dea3
DM
1172016-01-26 David Malcolm <dmalcolm@redhat.com>
118
119 PR other/69006
120 * c-opts.c (c_diagnostic_finalizer): Replace invocation of
121 pp_newline_and_flush with pp_flush.
122
9f04a53e
MS
1232016-01-20 Martin Sebor <msebor@redhat.com>
124
125 PR c/69405
126 * c-common.c (sync_resolve_size): Avoid printing diagnostic about
127 an incompatible argument when the argument isn't a valid tree node.
128
7f26f7df
JM
1292016-01-18 Jason Merrill <jason@redhat.com>
130
131 PR c++/68767
132 * c-common.c (check_function_arguments_recurse): Fold the whole
133 COND_EXPR, not just the condition.
134
f62bf092
TV
1352016-01-18 Tom de Vries <tom@codesourcery.com>
136
137 * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
138 classify as loop clause.
139
e0a575ff
JJ
1402016-01-15 Jakub Jelinek <jakub@redhat.com>
141
142 PR bootstrap/68271
143 * c-pragma.c (c_register_pragma_1): Adjust comment to note that
144 C++ FE no longer has limit on number of pragmas.
145
1462015-01-14 Ryan Burn <contact@rnburn.com>
b6e3db06
RB
147
148 PR c++/69048
149 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
c47eaca6 150 to add missing cleanup point.
b6e3db06 151
c7df95d8
DM
1522016-01-14 David Malcolm <dmalcolm@redhat.com>
153
154 PR c++/68819
155 * c-indentation.c (get_visual_column): Add location_t param.
156 Handle the column number being zero by effectively disabling the
157 warning, with an "inform".
158 (should_warn_for_misleading_indentation): Add location_t argument
159 for all uses of get_visual_column.
160
21efdd80
PP
1612016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
162
163 PR c++/69029
164 * c-indentation.c (should_warn_for_misleading_indentation):
165 Don't warn about do-while statements.
166
7a127fa7
MS
1672016-01-07 Martin Sebor <msebor@redhat.com>
168
169 PR c/68966
170 * c-common.c (sync_resolve_size): Reject first argument when it's
171 a pointer to _Bool.
172
c589e975
DM
1732016-01-05 David Malcolm <dmalcolm@redhat.com>
174
175 PR c/69122
176 * c-indentation.c (get_visual_column): Remove default argument.
177 (should_warn_for_misleading_indentation): For the multiline case,
178 update call to get_visual_column for next_stmt_exploc so that it
179 captures the location of the first non-whitespace character in the
180 relevant line. Don't issue warnings if there is non-whitespace
181 before the next statement.
182
818ab71a
JJ
1832016-01-04 Jakub Jelinek <jakub@redhat.com>
184
185 Update copyright years.
186
745e411d
DM
1872015-12-21 David Malcolm <dmalcolm@redhat.com>
188
189 * c-common.c (binary_op_error): Convert first param from
190 location_t to rich_location * and use it when emitting an error.
191 * c-common.h (binary_op_error): Convert first param from
192 location_t to rich_location *.
193
de67c4c3
DM
1942015-12-16 David Malcolm <dmalcolm@redhat.com>
195
196 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
197 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
198
4a38b02b
IV
1992015-12-15 Ilya Verbin <ilya.verbin@intel.com>
200
201 * c-common.c (c_common_attribute_table): Handle "omp declare target
202 link" attribute.
203
54d62f51
JJ
2042015-12-14 Jakub Jelinek <jakub@redhat.com>
205
206 PR c/68833
207 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
208
8d4227c8
TB
2092014-12-12 Tobias Burnus <burnus@net-b.de>
210
211 PR fortran/68815
212 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
213 specifiers (%d, %i,%u and %c).
214
f6069ccc
DM
2152015-12-10 David Malcolm <dmalcolm@redhat.com>
216
217 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
218
63bbf46d
JJ
2192015-12-08 Jakub Jelinek <jakub@redhat.com>
220
221 PR c/48088
222 PR c/68657
223 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
224 * c-pragma.c (handle_pragma_diagnostic): Adjust
225 control_warning_option caller.
226
f79520bb
DM
2272015-12-07 David Malcolm <dmalcolm@redhat.com>
228
229 * c-common.c (c_cpp_error): Update for change to
230 rich_location::set_range.
231
b3d5bc62
JJ
2322015-12-04 Paolo Bonzini <bonzini@gnu.org>
233
234 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
235 shifting 1 out of the sign bit.
236
2372015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
238
239 * c-common.c (c_common_attribute_table[]): Update max arguments
240 count for "simd" attribute.
241 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
242
6eb4a537
JJ
2432015-12-03 Jakub Jelinek <jakub@redhat.com>
244
245 PR preprocessor/57580
246 * c-ppoutput.c (print): Change printed field to bool.
247 Move src_file last for smaller padding.
248 (init_pp_output): Set print.printed to false instead of 0.
249 (scan_translation_unit): Fix up formatting. Set print.printed
250 to true after printing something other than newline.
251 (scan_translation_unit_trad): Set print.printed to true instead of 1.
252 (maybe_print_line_1): Set print.printed to false instead of 0.
253 (print_line_1): Likewise.
254 (do_line_change): Set print.printed to true instead of 1.
255 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
256 dump_macro): Set print.printed to false after printing newline.
257
4250754e
JM
2582015-12-02 Jason Merrill <jason@redhat.com>
259
f479b43d
JM
260 * c-common.c (fold_for_warn): New.
261 (warn_logical_operator, warn_tautological_cmp)
262 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
263
4250754e
JM
264 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
265 (c_fully_fold_internal, decl_constant_value_for_optimization):
266 Move to c/c-fold.c.
267 * c-common.h: Don't declare decl_constant_value_for_optimization.
268
e9e32ee6
JM
2692015-12-02 Joseph Myers <joseph@codesourcery.com>
270
271 PR c/68162
272 * c-common.h (c_build_qualified_type): Add extra default
273 arguments.
274
37d5ad46
JB
2752015-12-01 Julian Brown <julian@codesourcery.com>
276 Cesar Philippidis <cesar@codesourcery.com>
277 James Norris <James_Norris@mentor.com>
278
279 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
280 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
281 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
282
f07862c7
EB
2832015-11-30 Eric Botcazou <ebotcazou@adacore.com>
284
285 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
286 (decl_sloc_common): Delete and move bulk of processing to...
287 (decl_sloc): ...here.
288 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
289 (dump_ada_double_name): Remove S parameter and compute the suffix.
290 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
291 element type and deal with an anonymous one.
292 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
293 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
294 and remove reference to QUAL_UNION_TYPE.
295 (dump_nested_types): Make 2 passes on the fields and move bulk to...
296 (dump_nested_type): ...here. New function extracted from above.
297 Generate a full declaration for anonymous element type of arrays.
298 (print_ada_declaration): Really skip anonymous declarations. Remove
299 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
300 Clean up processing of declarations of array types and objects.
301 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
302 Remove obsolete code and tidy up.
303
75c8aac3
JH
3042015-11-29 Jan Hubicka <hubicka@ucw.cz>
305
306 PR c/67581
307 * c-common.c (handle_transparent_union_attribute): Update
308 also type variants.
309
b58d3df2
ML
3102015-11-27 Martin Liska <mliska@suse.cz>
311
312 PR c++/68312
313 * array-notation-common.c (cilkplus_extract_an_triplets):
314 Release vector of vectors.
315 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
316
89a01fcf
EB
3172015-11-26 Eric Botcazou <ebotcazou@adacore.com>
318
319 PR c++/68527
320 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
321 (print_ada_struct_decl): Likewise.
322
cc5c5226
IZ
3232015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
324
325 PR c++/68001
326 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
327 * cilk.c (recognize_spawn): Determine location in a more precise
328 way.
329
269adb9d
JM
3302015-11-19 Jason Merrill <jason@redhat.com>
331
332 * c-common.c (shorten_compare): But look through macros from
333 system headers.
334
d0eccfcd
JM
3352015-11-18 Jason Merrill <jason@redhat.com>
336
337 * c-common.c (shorten_compare): Don't -Wtype-limits if the
338 non-constant operand comes from a macro.
339
3e44547c
JM
3402015-11-17 Jason Merrill <jason@redhat.com>
341
342 PR bootstrap/68346
343 * c-common.c (warn_tautological_cmp): Fold before checking for
344 constants.
345
0f62c7a0
MP
3462015-11-16 Marek Polacek <polacek@redhat.com>
347
348 PR c++/68362
349 * c-common.c (check_case_bounds): Fold low and high cases.
350
a868811e
MP
3512015-11-16 Marek Polacek <polacek@redhat.com>
352
353 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
354 * c-common.c (c_common_get_alias_set): Likewise.
355 (handle_visibility_attribute): Likewise.
356
fff77217
KY
3572015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
358
359 * c-common.c (handle_simd_attribute): New.
360 (struct attribute_spec): Add entry for "simd".
361 (handle_simd_attribute): New.
362
269e63b7
KT
3632015-11-13 Kai Tietz <ktietz70@googlemail.com>
364
365 * c-lex.c (interpret_float): Use fold_convert.
366
ebedc9a3
DM
3672015-11-13 David Malcolm <dmalcolm@redhat.com>
368
369 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
370 and store it on the result.
371 * c-opts.c (c_common_init_options): Set
372 global_dc->colorize_source_p.
373
6e232ba4
JN
3742015-11-12 James Norris <jnorris@codesourcery.com>
375 Joseph Myers <joseph@codesourcery.com>
376
377 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
378 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
379 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
380 PRAGMA_OACC_CLAUSE_LINK.
381
e78bede6
MP
3822015-11-11 Marek Polacek <polacek@redhat.com>
383
384 PR c/68107
385 PR c++/68266
386 * c-common.c (valid_array_size_p): New function.
387 * c-common.h (valid_array_size_p): Declare.
388
4ac93c7c
DH
3892015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
390
391 PR bootstrap/68271
392 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
393
69f293c9
AM
3942015-11-11 Andrew MacLeod <amacleod@redhat.com>
395
396 * array-notation-common.c: Remove unused header files.
397 * c-ada-spec.c: Likewise.
398 * c-cilkplus.c: Likewise.
399 * c-common.c: Likewise.
400 * c-cppbuiltin.c: Likewise.
401 * c-dump.c: Likewise.
402 * c-format.c: Likewise.
403 * c-gimplify.c: Likewise.
404 * c-indentation.c: Likewise.
405 * c-lex.c: Likewise.
406 * c-omp.c: Likewise.
407 * c-opts.c: Likewise.
408 * c-pch.c: Likewise.
409 * c-ppoutput.c: Likewise.
410 * c-pragma.c: Likewise.
411 * c-pretty-print.c: Likewise.
412 * c-semantics.c: Likewise.
413 * c-ubsan.c: Likewise.
414 * cilk.c: Likewise.
415 * stub-objc.c: Likewise.
416
3a40d81d
NS
4172015-11-09 Thomas Schwinge <thomas@codesourcery.com>
418 Cesar Philippidis <cesar@codesourcery.com>
419 James Norris <jnorris@codesourcery.com>
420 Julian Brown <julian@codesourcery.com>
421 Nathan Sidwell <nathan@codesourcery.com>
422
423 * c-pragma.c (oacc_pragmas): Add "routine".
424 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
425
ee45a32d
EB
4262015-11-08 Eric Botcazou <ebotcazou@adacore.com>
427
428 * c-common.c (c_common_attributes): Add scalar_storage_order.
429 (handle_scalar_storage_order_attribute): New function.
430 * c-pragma.c (global_sso): New variable.
431 (maybe_apply_pragma_scalar_storage_order): New function.
432 (handle_pragma_scalar_storage_order): Likewise.
433 (init_pragma): Register scalar_storage_order.
434 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
435 * c.opt (Wscalar-storage-order): New warning.
436 (fsso-struct=): New option.
437
eb11eb15
MS
4382015-11-08 Martin Sebor <msebor@redhat.com>
439
440 * c.opt (Wplacement-new): Add a period to the end of a sentence.
441
0aad0198
RS
4422015-11-07 Richard Sandiford <richard.sandiford@arm.com>
443
444 * c-common.c: Don't undef DEF_BUILTIN.
445
8a645150
DM
4462015-11-06 David Malcolm <dmalcolm@redhat.com>
447
448 * c-common.c (c_cpp_error): Convert parameter from location_t to
449 rich_location *. Eliminate the "column_override" parameter and
450 the call to diagnostic_override_column.
451 Update the "done_lexing" clause to set range 0
452 on the rich_location, rather than overwriting a location_t.
453 * c-common.h (c_cpp_error): Convert parameter from location_t to
454 rich_location *. Eliminate the "column_override" parameter.
455
7a5e4956
CP
4562015-11-05 Cesar Philippidis <cesar@codesourcery.com>
457 Thomas Schwinge <thomas@codesourcery.com>
458 James Norris <jnorris@codesourcery.com>
459
460 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
461 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
462 clauses with parallel and kernels and loops.
463 * c-pragma.h (enum pragma_omp_clause): Add entries for
464 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
465 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
466 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
467 INDEPENDENT,SEQ}.
468 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
469
e2f5cc96
MS
4702015-11-05 Martin Sebor <msebor@redhat.com>
471
472 PR c++/67942
473 * c.opt (-Wplacement-new): New option.
474
e01d41e5
JJ
4752015-11-05 Jakub Jelinek <jakub@redhat.com>
476
477 * c-common.h (c_finish_omp_atomic): Add TEST argument.
478 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
479 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
480 save_expr or create_tmp_var* if TEST is true.
481 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
482 Don't call add_stmt here.
483 (struct c_omp_check_loop_iv_data): New type.
484 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
485 c_omp_check_loop_iv_exprs): New functions.
486 (c_omp_split_clauses): Adjust for lastprivate being allowed on
487 distribute.
488 (c_omp_declare_simd_clauses_to_numbers): Change
489 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
490 (c_omp_declare_simd_clauses_to_decls): Similarly change those
491 from numbers to PARM_DECLs.
492
595278be
MM
4932015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
494
495 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
496 flag_checking.
497
c85158de
MS
4982015-11-03 Bernd Schmidt <bschmidt@redhat.com>
499
500 PR c++-common/67882
b3d5bc62
JJ
501 * c-common.h (fold_offsetof_1): Add argument.
502 * c-common.c (fold_offsetof_1): Diagnose more invalid
c85158de
MS
503 offsetof expressions that reference elements past the end of
504 an array.
505
4bf9e5a8
TS
5062015-11-03 Thomas Schwinge <thomas@codesourcery.com>
507 Chung-Lin Tang <cltang@codesourcery.com>
508
509 * c-pragma.c (oacc_pragmas): Add "atomic".
510 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
511
3b1661a9
ES
5122015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
513
514 * c-common.c (handle_target_clones_attribute): New.
515 (c_common_attribute_table): Add handle_target_clones_attribute.
516 (handle_always_inline_attribute): Add check on target_clones attribute.
517 (handle_target_attribute): Ditto.
518
2adfab87
AM
5192015-10-29 Andrew MacLeod <amacleod@redhat.com>
520
521 * array-notation-common.c: Reorder #include's and remove duplicates.
522 * c-ada-spec.c: Likewise.
523 * c-cilkplus.c: Likewise.
524 * c-common.c: Likewise.
525 * c-cppbuiltin.c: Likewise.
526 * c-dump.c: Likewise.
527 * c-format.c: Likewise.
528 * c-gimplify.c: Likewise.
529 * c-indentation.c: Likewise.
530 * c-lex.c: Likewise.
531 * c-omp.c: Likewise.
532 * c-opts.c: Likewise.
533 * c-pch.c: Likewise.
534 * c-ppoutput.c: Likewise.
535 * c-pragma.c: Likewise.
536 * c-pretty-print.c: Likewise.
537 * c-semantics.c: Likewise.
538 * c-ubsan.c: Likewise.
539 * cilk.c: Likewise.
540 * stub-objc.c: Likewise.
541
d90ec4f2
JM
5422015-10-28 Jason Merrill <jason@redhat.com>
543
544 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
545
88bae6f4
TS
5462015-10-27 Thomas Schwinge <thomas@codesourcery.com>
547 James Norris <jnorris@codesourcery.com>
548 Cesar Philippidis <cesar@codesourcery.com>
549
550 PR c/64765
551 PR c/64880
552 * c-common.h (c_oacc_split_loop_clauses): Declare function.
553 * c-omp.c (c_oacc_split_loop_clauses): New function.
554
b1726d6c
MS
5552015-10-21 Martin Sebor <msebor@redhat.com>
556
557 PR driver/68043
558 * c.opt: End each sentence that describes an option with a period.
559
fa60eeb9
MP
5602015-10-20 Marek Polacek <polacek@redhat.com>
561
562 * array-notation-common.c (is_cilkplus_vector_p): Define.
563 * c-common.h (is_cilkplus_vector_p): Declare.
564
95979049
MP
5652015-10-20 Marek Polacek <polacek@redhat.com>
566
567 * c.opt (std=gnu++11): Do not describe as experimental.
568 (std=gnu++14): Likewise.
569
2a9fb712
JM
5702015-10-19 Jason Merrill <jason@redhat.com>
571
572 * c-cppbuiltin.c (c_cpp_builtins): Define
573 __cpp_nontype_template_args.
574
13b380a3
JM
5752015-10-19 Jason Merrill <jason@redhat.com>
576
577 * c-cppbuiltin.c (c_cpp_builtins): Define
578 __cpp_enumerator_attributes, __cpp_fold_expressions,
579 __cpp_unicode_characters.
580
d9a6bd32
JJ
5812015-10-13 Jakub Jelinek <jakub@redhat.com>
582 Aldy Hernandez <aldyh@redhat.com>
583
584 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
585 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
586 (c_define_builtins): Likewise.
587 * c-common.h (enum c_omp_clause_split): Add
588 C_OMP_CLAUSE_SPLIT_TASKLOOP.
589 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
590 (c_finish_omp_for): Add ORIG_DECLV argument.
591 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
592 201511 instead of 201307.
593 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
594 OMP_CRITICAL_CLAUSES to it.
595 (c_finish_omp_ordered): Add CLAUSES argument, set
596 OMP_ORDERED_CLAUSES to it.
597 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
598 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
599 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
600 constructs and new OpenMP 4.5 clauses. Clear
601 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
602 verification code.
603 * c-pragma.c (omp_pragmas_simd): Add taskloop.
604 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
605 (enum pragma_omp_clause): Add
606 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
607 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
608
624d31fe
RS
6092015-10-05 Richard Sandiford <richard.sandiford@arm.com>
610
611 * c-lex.c (interpret_float): Use real_equal instead of
612 REAL_VALUES_EQUAL.
613
b8fd7909
JM
6142015-10-04 Jason Merrill <jason@redhat.com>
615
616 Implement N4514, C++ Extensions for Transactional Memory.
617 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
618 (c_common_attribute_table): Add transaction_safe_dynamic.
619 transaction_safe now affects type identity.
620 (handle_tm_attribute): Handle transaction_safe_dynamic.
621 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
622 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
623 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
624 (D_TRANSMEM): New.
625 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
626 * c-pretty-print.c (pp_c_attributes_display): Don't print
627 transaction_safe in C++.
628
12651878
MP
6292015-10-02 Marek Polacek <polacek@redhat.com>
630
631 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
632
3e3b8d63
MP
6332015-10-02 Marek Polacek <polacek@redhat.com>
634
635 PR c/64249
636 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
637 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
638 * c.opt (Wduplicated-cond): New option.
639
0d1a8f75
JM
6402015-10-01 Joseph Myers <joseph@codesourcery.com>
641
642 * c.opt (std=c11): Do not describe as experimental.
643 (std=gnu11): Likewise.
644 (std=iso9899:2011): Likewise.
645
3e32ee19
NS
6462015-09-28 Nathan Sidwell <nathan@codesourcery.com>
647
648 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
649 (DEF_FUNCTION_TYPE_VAR_11): Delete.
650
974348ee
MP
6512015-09-25 Marek Polacek <polacek@redhat.com>
652
653 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
654 (ubsan_instrument_shift): Likewise.
655
15dbc1a6
MP
6562015-09-25 Marek Polacek <polacek@redhat.com>
657
658 PR sanitizer/64906
659 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
660
6b95d7cc
PP
6612015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
662
663 * c-indentation.c (should_warn_for_misleading_indentation):
664 Compare next_stmt_vis_column with guard_line_first_nws instead
665 of with guard_line_vis_column.
666
c1822f9c
MLI
6672015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
668
669 PR c/49654
670 PR c/49655
671 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
672 options and options not valid for the current language.
673
d5398058
PP
6742015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
675
676 * c-indentation.c (should_warn_for_misleading_indentation):
677 Float out and consolidate the calls to get_visual_column that
678 are passed guard_exploc as an argument. Compare
679 next_stmt_vis_column with guard_line_first_nws instead of with
680 body_line_first_nws.
681
6b333269
NS
6822015-09-22 Nathan Sidwell <nathan@codesourcery.com>
683
684 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
685 Wnamespaces): New C++ warnings.
686
a75f1574
JM
6872015-09-22 Jason Merrill <jason@redhat.com>
688
689 * c-common.h (abi_compat_version_crosses): New.
690 (warn_abi_version): Declare.
691 * c-common.c: Define it.
692 * c-opts.c (c_common_post_options): Handle it.
693 flag_abi_compat_version defaults to 8.
694
bdaaa8b7
VV
6952015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
696
697 Complete the implementation of N4230, Nested namespace definition.
698 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
699 __cpp_nested_namespace_definitions.
700
eaa797e8
MLI
7012015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
702
703 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
704
c4914de6
MLI
7052015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
706
707 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
708 when warning.
709 * c-pragma.h (pragma_lex): Add optional loc argument.
710
fcb87c50
MM
7112015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
712
713 * c-format.c (check_format_arg): Adjust to use common block size in all
714 object pools.
715
31bdd08a
DM
7162015-09-15 David Malcolm <dmalcolm@redhat.com>
717
718 * c-format.c (location_from_offset): Update for change in
719 signature of location_get_source_line.
720 * c-indentation.c (get_visual_column): Likewise.
721 (line_contains_hash_if): Likewise.
722
aa9f4b4c
MP
7232015-09-14 Marek Polacek <polacek@redhat.com>
724
725 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
726 setting various warnings.
727
aa256c4a
MP
7282015-09-14 Marek Polacek <polacek@redhat.com>
729
730 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
731 a negative value.
732
0f876f22
MW
7332015-09-11 Mark Wielaard <mjw@redhat.com>
734
735 PR c/28901
736 * c.opt (Wunused-variable): Option from common.opt.
737 (Wunused-const-variable): New option.
738
273aa49e
PC
7392015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
740
741 PR c++/53184
742 * c.opt ([Wsubobject-linkage]): Add.
743
1807ffc1
MS
7442015-09-03 Martin Sebor <msebor@redhat.com>
745
746 PR c/66516
747 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
748 functions.
749 * c-common.c (reject_gcc_builtin): Define.
750
38942840
BI
7512015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
752
753 PR middle-end/60586
754 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
755 prototype.
756 * c-gimplify.c (c_gimplify_expr): Added a call to the function
757 cilk_gimplify_call_params_in_spawned_fn.
758 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
759 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
760 unwrapping.
761
c316b5e4
MP
7622015-08-25 Marek Polacek <polacek@redhat.com>
763
764 PR middle-end/67330
765 * c-common.c (handle_weak_attribute): Don't check whether the
766 visibility can be changed here.
767
584a7c46
MLI
7682015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
769
770 * c-lex.c (c_lex_with_flags): Use explicit locations.
771
a79683d5
TS
7722015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
773
774 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
775 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
776
61717a45
FXC
7772015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
778
779 PR middle-end/36757
780 * c-common.c (check_builtin_function_arguments): Add check
781 for BUILT_IN_SIGNBIT argument.
782
329524f5
PC
7832015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
784
785 PR c++/67160
786 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
787 in c++1z mode.
788
4ee55665
MP
7892015-08-17 Marek Polacek <polacek@redhat.com>
790
791 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
792 with whitespaces before qualifier names.
793
b893e375
MP
7942015-08-12 Marek Polacek <polacek@redhat.com>
795
796 PR c++/55095
797 * c-common.c (maybe_warn_shift_overflow): Properly handle
798 left-shifting 1 into the sign bit.
799
c2d89095
MLI
8002015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
801
802 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
803
971e17ff
AS
8042015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
805 Braden Obrzut <admin@maniacsvault.net>
806 Jason Merrill <jason@redhat.com>
807
808 Add C++ Concepts TS support.
809 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
810 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
811 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
812 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
813 * c-opts.c (set_std_cxx1z): Set flag_concepts.
814 * c.opt (fconcepts): New.
815
b3d5bc62
JJ
8162015-08-02 Martin Sebor <msebor@redhat.com>
817
818 * c.opt (-Wframe-address): New warning option.
819
8ebca419
PP
8202015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
821
822 * c-indentation.c (should_warn_for_misleading_indentation):
823 Improve heuristics.
824
1a1e101f
PP
8252015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
826
827 * c-indentation.c (get_visual_column): Add parameter first_nws,
828 use it. Update comment documenting the function.
829 (is_first_nonwhitespace_on_line): Remove.
830 (should_warn_for_misleading_indentation): Replace usage of
831 of is_first_nonwhitespace_on_line with get_visual_column.
832
992118a1
PP
8332015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
834
835 * c-indentation.h (struct token_indent_info): Define.
836 (get_token_indent_info): Define.
837 (warn_for_misleading_information): Declare.
838 * c-common.h (warn_for_misleading_information): Remove.
839 * c-identation.c (warn_for_misleading_indentation):
840 Change declaration to take three token_indent_infos. Adjust
841 accordingly.
842 * c-identation.c (should_warn_for_misleading_indentation):
843 Likewise. Bail out early if the body is a compound statement.
844 (guard_tinfo_to_string): Define.
845
e8fa3817
JM
8462015-07-30 Jason Merrill <jason@redhat.com>
847
848 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
849 '*' for reference decay.
850
173864e8
MP
8512015-07-30 Marek Polacek <polacek@redhat.com>
852
853 * c-common.c (warn_tautological_cmp): Bail for float types.
854
f2afe6dd
MP
8552015-07-27 Marek Polacek <polacek@redhat.com>
856
857 PR bootstrap/67030
858 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
859
05b28fd6
MP
8602015-07-27 Marek Polacek <polacek@redhat.com>
861
862 PR c++/66555
863 PR c/54979
864 * c-common.c (find_array_ref_with_const_idx_r): New function.
865 (warn_tautological_cmp): New function.
866 * c-common.h (warn_tautological_cmp): Declare.
867 * c.opt (Wtautological-compare): New option.
868
5a5062b8
MP
8692015-07-23 Marek Polacek <polacek@redhat.com>
870
871 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
872 (ubsan_instrument_shift): Likewise.
873
dc891fe7
MP
8742015-07-23 Marek Polacek <polacek@redhat.com>
875
876 PR sanitizer/66908
877 * c-ubsan.c: Include gimplify.h.
878 (ubsan_instrument_division): Unshare OP0 and OP1.
879 (ubsan_instrument_shift): Likewise.
880
451b5e48
MP
8812015-07-20 Marek Polacek <polacek@redhat.com>
882 Richard Sandiford <richard.sandiford@arm.com>
883
884 PR c++/55095
885 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
886 Use EXPR_LOC_OR_LOC.
887 (maybe_warn_shift_overflow): New function.
888 * c-common.h (maybe_warn_shift_overflow): Declare.
889 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
890 * c.opt (Wshift-overflow): New option.
891
fb0b2914
ML
8922015-07-16 Martin Liska <mliska@suse.cz>
893
894 * c-format.c (static void check_format_info_main): Use
895 object_allocator instead of pool_allocator.
896 (check_format_arg): Likewise.
897 (check_format_info_main): Likewise.
898
903f5c23
AM
8992015-07-15 Andrew MacLeod <amacleod@redhat.com>
900
901 * c-opts.c: Remove multiline #include comment.
902
026c3cfd
AH
9032015-07-12 Aldy Hernandez <aldyh@redhat.com>
904
905 * c-common.c: Fix double word typos.
906
bb49ee66
EB
9072015-07-10 Eric Botcazou <ebotcazou@adacore.com>
908
909 * c-ada-spec.h (cpp_operation): Revert latest change.
910 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
911 constructors and destructors.
912
1916bcb5
AM
9132015-07-09 Andrew MacLeod <amacleod@redhat.com>
914
915 * c-common.h: Adjust includes for flags.h changes.
916 * stub-objc.c: Likewise.
026c3cfd 917
a9dcd529
EB
9182015-07-08 Eric Botcazou <ebotcazou@adacore.com>
919
920 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
921 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
922
b03b462f
JJ
9232015-07-08 Jakub Jelinek <jakub@redhat.com>
924
925 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
926 are to be removed, return NULL rather than original clauses list.
927
c7131fb2
AM
9282015-07-07 Andrew MacLeod <amacleod@redhat.com>
929
930 * array-notation-common.c: Adjust includes.
931 * c-ada-spec.c: Likewise.
932 * c-cilkplus.c: Likewise.
933 * c-common.h: Likewise.
934 * c-cppbuiltin.c: Likewise.
935 * c-dump.c: Likewise.
936 * c-format.c: Likewise.
937 * c-gimplify.c: Likewise.
938 * c-indentation.c: Likewise.
939 * c-lex.c: Likewise.
940 * c-omp.c: Likewise.
941 * c-opts.c: Likewise.
942 * c-pch.c: Likewise.
943 * c-ppoutput.c: Likewise.
944 * c-pragma.c: Likewise.
945 * c-pretty-print.c: Likewise.
946 * c-semantics.c: Likewise.
947 * c-ubsan.c: Likewise.
948 * cilk.c: Likewise.
949 * stub-objc.c: Likewise.
950
2a7fb83f
EB
9512015-07-07 Eric Botcazou <ebotcazou@adacore.com>
952
953 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
954 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
955
a03c9bf1
JM
9562015-07-01 Jason Merrill <jason@redhat.com>
957
36a85135
JM
958 * c-common.h (D_CXX11): Rename from D_CXX0X.
959 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
960 * c-common.c: Adjust.
961
e7fa68d5
JM
962 * c-opts.c (c_common_post_options): Default to C++14.
963
a03c9bf1
JM
964 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
965
fe95b036
ESR
9662015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
967
968 Implement N4197 - Adding u8 character literals
b3d5bc62 969 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
a64be36b 970 CPP_CHAR.
b3d5bc62 971 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
a64be36b 972 CPP_UTF8CHAR_USERDEF tokens.
b3d5bc62 973 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
a64be36b
EB
974 and CPP_UTF8CHAR tokens.
975 (lex_charconst): Treat CPP_UTF8CHAR token.
fe95b036 976
da2e71c9
MLI
9772015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
978
979 PR fortran/66605
980 * c-common.c (do_warn_unused_parameter): Move here.
981 * c-common.h (do_warn_unused_parameter): Declare.
982
b155cfd9
MP
9832015-06-29 Marek Polacek <polacek@redhat.com>
984
985 PR c/66322
986 * c-common.c (check_case_bounds): Add bool * parameter. Set
987 OUTSIDE_RANGE_P.
988 (c_add_case_label): Add bool * parameter. Pass it down to
989 check_case_bounds.
990 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
991 warning here.
992 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
993 declarations.
994
31521951
MP
9952015-06-27 Marek Polacek <polacek@redhat.com>
996
997 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
998 or VECTOR_INTEGER_TYPE_P throughout.
999 * c-gimplify.c: Likewise.
1000
22d03525
MP
10012015-06-26 Marek Polacek <polacek@redhat.com>
1002
1003 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
1004 * c-common.c (c_fully_fold_internal): Likewise.
1005 (c_alignof_expr): Likewise.
1006 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
1007 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
b1726d6c 1008 * cilk.c (create_parm_list): Likewise.
22d03525 1009
af05e6e5
MP
10102015-06-26 Marek Polacek <polacek@redhat.com>
1011
1012 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
1013
f0889939
AM
10142015-06-25 Andrew MacLeod <amacleod@redhat.com>
1015
1016 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
1017 * c-gimplify.c: Likewise.
1018 * c-pragma.c: Likewise.
1019 * c-ubsan.c: Likewise.
1020 * cilk.c: Likewise.
1021
ca752f39
RS
10222015-06-25 Richard Sandiford <richard.sandiford@arm.com>
1023
1024 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
1025 ggc_hasher.
1026
16a16ec7
AM
10272015-06-25 Andrew MacLeod <amacleod@redhat.com>
1028
1029 * cilk.c: Move calls.h after tm.h in the include chain.
1030
0ae9bd27
MP
10312015-06-25 Marek Polacek <polacek@redhat.com>
1032
1033 * array-notation-common.c: Use VAR_P throughout.
1034 * c-ada-spec.c: Likewise.
1035 * c-common.c: Likewise.
1036 * c-format.c: Likewise.
1037 * c-gimplify.c: Likewise.
1038 * c-omp.c: Likewise.
1039 * c-pragma.c: Likewise.
1040 * c-pretty-print.c: Likewise.
1041 * cilk.c: Likewise.
1042
62f9079a
MP
10432015-06-25 Marek Polacek <polacek@redhat.com>
1044
1045 * cilk.c (extract_free_variables): Use is_global_var.
1046
0fa16060
RS
10472015-06-23 Richard Sandiford <richard.sandiford@arm.com>
1048
1049 * c-common.c: Don't include target-def.h.
1050
a68ae2e1
MP
10512015-06-23 Marek Polacek <polacek@redhat.com>
1052
1053 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
1054 when comparing INTEGER_CSTs.
1055
c6a2f2d9
PMR
10562015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
1057
1058 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
1059 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
1060 (dump_ada_template): Skip partially specialized types.
1061
6b4db501
MM
10622015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
1063
1064 * c-common.c (scalar_to_vector): Use std::swap instead of manually
1065 swapping.
1066
abb226c9
AM
10672015-06-17 Andrew MacLeod <amacleod@redhat.com>
1068
1069 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
1070 * c-ada-spec.c: Likewise.
1071 * c-cilkplus.c: Likewise.
1072 * c-common.c: Likewise.
1073 * c-common.h: Likewise.
1074 * c-cppbuiltin.c: Likewise.
1075 * c-dump.c: Likewise.
1076 * c-format.c: Likewise.
1077 * c-gimplify.c: Likewise.
1078 * c-indentation.c: Likewise.
1079 * c-lex.c: Likewise.
1080 * c-omp.c: Likewise.
1081 * c-opts.c: Likewise.
1082 * c-pch.c: Likewise.
1083 * c-ppoutput.c: Likewise.
1084 * c-pragma.c: Likewise.
1085 * c-pretty-print.c: Likewise.
1086 * c-semantics.c: Likewise.
1087 * c-ubsan.c: Likewise.
1088 * cilk.c: Likewise.
1089 * stub-objc.c: Likewise.
1090
076fecad
PP
10912015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
1092
1093 PR c++/65168
1094 * c-common.c (c_common_truthvalue_conversion): Warn when
1095 converting an address of a reference to a truth value.
1096
13fdf2e2
AM
10972015-06-08 Andrew MacLeod <amacleod@redhat.com>
1098
1099 * array-notation-common.c : Adjust include files.
1100 * c-ada-spec.c : Likewise.
1101 * c-cilkplus.c : Likewise.
1102 * c-common.c : Likewise.
1103 * c-common.h : Likewise.
1104 * c-cppbuiltin.c : Likewise.
1105 * c-dump.c : Likewise.
1106 * c-format.c : Likewise.
1107 * c-gimplify.c : Likewise.
1108 * c-indentation.c : Likewise.
1109 * c-lex.c : Likewise.
1110 * c-omp.c : Likewise.
1111 * c-opts.c : Likewise.
1112 * c-pch.c : Likewise.
1113 * c-ppoutput.c : Likewise.
1114 * c-pragma.c : Likewise.
1115 * c-pretty-print.c : Likewise.
1116 * c-semantics.c : Likewise.
1117 * c-ubsan.c : Likewise.
1118 * cilk.c : Likewise.
1119 * stub-objc.c : Likewise.
1120
a1661b90
MP
11212015-06-08 Marek Polacek <polacek@redhat.com>
1122
1123 PR c/66415
1124 * c-format.c (location_from_offset): Return LOC if LINE is null.
1125
d7438551
AH
11262015-06-05 Aldy Hernandez <aldyh@redhat.com>
1127
1128 * c-common.h (c_parse_final_cleanups): New prototype.
1129 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
1130
b3d5bc62
JJ
11312015-06-04 Sriraman Tallam <tmsriram@google.com>
1132
1133 * c-common.c (noplt): New attribute.
1134 (handle_noplt_attribute): New handler.
1135
ecb9f223
AM
11362015-06-04 Andrew MacLeod <amacleod@redhat.com>
1137
1138 * array-notation-common.c: Adjust includes for restructured coretypes.h.
1139 * c-ada-spec.c: Likewise.
1140 * c-cilkplus.c: Likewise.
1141 * c-common.c: Likewise.
1142 * c-common.h: Likewise.
1143 * c-cppbuiltin.c: Likewise.
1144 * c-dump.c: Likewise.
1145 * c-format.c: Likewise.
1146 * c-gimplify.c: Likewise.
1147 * c-indentation.c: Likewise.
1148 * c-lex.c: Likewise.
1149 * c-omp.c: Likewise.
1150 * c-opts.c: Likewise.
1151 * c-pch.c: Likewise.
1152 * c-ppoutput.c: Likewise.
1153 * c-pragma.c: Likewise.
1154 * c-pretty-print.c: Likewise.
1155 * c-semantics.c: Likewise.
1156 * c-ubsan.c: Likewise.
1157 * cilk.c: Likewise.
1158 * stub-objc.c: Likewise.
1159
6ac48155
DM
11602015-06-02 David Malcolm <dmalcolm@redhat.com>
1161
1162 PR c/66220:
1163 * c-indentation.c (should_warn_for_misleading_indentation): Use
1164 expand_location rather than expand_location_to_spelling_point.
1165 Don't warn if the guarding statement is more indented than the
1166 next/body stmts.
1167
773ce42e
DM
11682015-06-02 David Malcolm <dmalcolm@redhat.com>
1169
1170 * c-indentation.c (warn_for_misleading_indentation): Bail out
1171 immediately if -Wmisleading-indentation isn't enabled.
1172
4fef8379
ML
11732015-06-01 Martin Liska <mliska@suse.cz>
1174
1175 * c-format.c (check_format_arg):Use new type-based pool allocator.
1176 (check_format_info_main) Likewise.
1177
1edfb384
EB
11782015-05-31 Eric Botcazou <ebotcazou@adacore.com>
1179
1180 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
1181 (has_nontrivial_methods): Likewise.
1182
9677ef52
MP
11832015-05-25 Marek Polacek <polacek@redhat.com>
1184
1185 * c-ubsan.c (ubsan_instrument_shift): Use type0.
1186
fd5c817a
MP
11872015-05-22 Marek Polacek <polacek@redhat.com>
1188
1189 PR c/47043
1190 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
1191
a2f45fe6 11922015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
581edfa3
TS
1193
1194 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
1195 STACK_GROWS_DOWNWARD.
1196
a2f45fe6 11972015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
62f9f30b
TS
1198
1199 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
1200 STACK_GROWS_DOWNWARD rather than if it is defined.
1201
0fee2ac2 12022015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
b1726d6c 1203
0fee2ac2
MLI
1204 PR c/52952
1205 * c-format.c (location_column_from_byte_offset): New.
1206 (location_from_offset): New.
1207 (struct format_wanted_type): Add offset_loc field.
1208 (check_format_info): Move handling of location for extra arguments
1209 closer to the point of warning.
1210 (check_format_info_main): Pass the result of location_from_offset
1211 to warning_at.
1212 (format_type_warning): Pass the result of location_from_offset
1213 to warning_at.
1214
cf4ef6f7
MP
12152015-05-20 Marek Polacek <polacek@redhat.com>
1216
1217 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
1218
3a65ee74
MP
12192015-05-20 Marek Polacek <polacek@redhat.com>
1220
1221 * c-ada-spec.c (dump_sloc): Use DECL_P.
1222
21b634ae
MP
12232015-05-20 Marek Polacek <polacek@redhat.com>
1224
1225 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
1226 * c-common.c: Likewise.
1227
0e50b624
DM
12282015-05-19 David Malcolm <dmalcolm@redhat.com>
1229
1230 * c-common.h (fe_file_change): Strengthen param from
1231 const line_map * to const line_map_ordinary *.
1232 (pp_file_change): Likewise.
1233 * c-lex.c (fe_file_change): Likewise.
1234 (cb_define): Use linemap_check_ordinary when invoking
1235 SOURCE_LINE.
1236 (cb_undef): Likewise.
1237 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
1238 invoking cb_file_change.
1239 (c_finish_options): Likewise.
1240 (push_command_line_include): Likewise.
1241 (cb_file_change): Strengthen param "new_map" from
1242 const line_map * to const line_map_ordinary *.
1243 * c-ppoutput.c (cb_define): Likewise for local "map".
1244 (pp_file_change): Likewise for param "map" and local "from".
1245
fab27f52
MM
12462015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
1247
1248 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
1249
2fe1d762
TV
12502015-05-18 Tom de Vries <tom@codesourcery.com>
1251
1252 * c-common.c (build_va_arg_1): New function.
1253 (build_va_arg): Add address operator to va_list operand if necessary.
1254
7a37fa90
MM
12552015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
1256
1257 PR c/48956
1258 * c-common.c (int_safely_convertible_to_real_p): Define.
1259 (unsafe_conversion_p): Check conversions involving complex types.
1260 (conversion_warning): Add new warning message for conversions which
1261 discard imaginary component.
1262 * c-common.h: (enum conversion_safety): Add new enumerator for such
1263 conversions.
1264
3aa3c9fc
MP
12652015-05-14 Marek Polacek <polacek@redhat.com>
1266
1267 PR c/66066
1268 PR c/66127
1269 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
1270 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
1271 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
1272 use it. If FOR_INT_CONST, require that all evaluated operands be
1273 INTEGER_CSTs.
1274
c3388e62
DM
12752015-05-12 David Malcolm <dmalcolm@redhat.com>
1276
1277 * c-common.h (warn_for_misleading_indentation): New prototype.
1278 * c-indentation.c: New file.
1279 * c.opt (Wmisleading-indentation): New option.
1280
c7b38fd5
TV
12812015-05-12 Tom de Vries <tom@codesourcery.com>
1282
1283 PR tree-optimization/66010
1284 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
1285
381bf11e
JM
12862015-05-09 Jason Merrill <jason@redhat.com>
1287
edff0c06
JM
1288 * c-opts.c (c_common_post_options): Also clear
1289 cpp_opts->cpp_warn_cxx11_compat.
1290
129211bc
JM
1291 * c-common.h (enum cxx_dialect): Add cxx_unset.
1292 * c-common.c (cxx_dialect): Initialize to cxx_unset.
1293 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
1294
381bf11e
JM
1295 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
1296 (std=gnu++0x): Mark as Undocumented.
1297 (std=gnu++1y): Add deprecated message.
1298
fe191308
JM
12992015-05-08 Jason Merrill <jason@redhat.com>
1300
765189ff
JM
1301 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
1302 * c-opts.c: Adjust.
1303
fe191308
JM
1304 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
1305
755e528f
MP
13062015-05-08 Marek Polacek <polacek@redhat.com>
1307
1308 PR c/64918
1309 * c.opt (Woverride-init-side-effects): New option.
1310
0173bd2a
MP
13112015-05-07 Marek Polacek <polacek@redhat.com>
1312
1313 PR c/65179
1314 * c-common.c (c_fully_fold_internal): Warn when left shifting a
1315 negative value.
1316 * c.opt (Wshift-negative-value): New option.
1317 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
1318 when -Wextra and C99/C++11 mode.
1319
e0f0d3b9
MP
13202015-05-07 Marek Polacek <polacek@redhat.com>
1321 Martin Uecker <uecker@eecs.berkeley.edu>
1322
1323 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
1324 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
1325
8243e2a9
JM
13262015-05-05 Jason Merrill <jason@redhat.com>
1327
1328 * c.opt (Wterminate): New.
1329
577cd070
MP
13302015-04-30 Marek Polacek <polacek@redhat.com>
1331
1332 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
1333 require that the non-constant be of a boolean type.
1334
0373796b
JT
13352015-04-29 Josh Triplett <josh@joshtriplett.org>
1336
e0f0d3b9
MP
1337 * c-common.c (handle_section_attribute): Refactor to reduce
1338 nesting and distinguish between error cases.
0373796b 1339
716c0ba6
MP
13402015-04-29 Marek Polacek <polacek@redhat.com>
1341
1342 PR c/64610
1343 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
1344 with 0/1.
1345
8848828b
JJ
13462015-04-29 Jakub Jelinek <jakub@redhat.com>
1347
1348 * c-common.h (omp_clause_mask): Unconditionally define as a class.
1349 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
1350 HOST_BITS_PER_WIDE_INT.
1351
ecd0e562
TV
13522015-04-28 Tom de Vries <tom@codesourcery.com>
1353
1354 PR tree-optimization/65887
1355 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
1356
2a877204 13572015-04-28 Eric Botcazou <ebotcazou@adacore.com>
e0f0d3b9 1358 Pierre-Marie de Rodat <derodat@adacore.com>
2a877204
EB
1359
1360 * c-ada-spec.c (in_function): Delete.
1361 (dump_generic_ada_node): Do not change in_function and remove the
1362 redundant code dealing with it.
1363 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
1364 (print_ada_methods): Output the static member functions in a nested
1365 package after the regular methods as well as associated renamings.
1366
4853031e
MP
13672015-04-24 Marek Polacek <polacek@redhat.com>
1368
1369 PR c/65830
1370 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
1371 and OPT_Wshift_count_overflow.
1372
8c2b7f79
MP
1373 PR c/63357
1374 * c-common.c (warn_logical_operator): Warn if the operands have the
1375 same expressions.
1376
b8787813
MP
13772015-04-24 Marek Polacek <polacek@redhat.com>
1378
1379 PR c/61534
1380 * c-common.c (warn_logical_operator): Bail if either operand comes
1381 from a macro expansion.
1382
8fba1830
BRF
13832015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1384
1385 PR target/55143
1386 * c-common.c (c_default_pointer_mode): Add definition.
1387 * c-common.h (c_default_pointer_mode): Add declaration.
1388
17958621
JJ
13892015-03-11 Jakub Jelinek <jakub@redhat.com>
1390
1391 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
1392 on record_builtin_type argument.
1393
7ccb1a11
JJ
13942015-03-10 Jakub Jelinek <jakub@redhat.com>
1395
1396 PR c/65120
1397 * c-common.c (warn_logical_not_parentheses): Don't warn for
1398 !x == 0 or !x != 0.
1399
04fd785e
MP
14002015-03-07 Marek Polacek <polacek@redhat.com>
1401
1402 PR sanitizer/65280
1403 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
1404 before trying to figure out whether we have a flexible array member.
1405
a4e26206
EB
14062015-03-06 Eric Botcazou <ebotcazou@adacore.com>
1407 Jonathan Wakely <jwakely.gcc@gmail.com>
1408
1409 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
1410
0d2489f4
EB
14112015-03-05 Eric Botcazou <ebotcazou@adacore.com>
1412
1413 PR ada/65319
1414 * c-ada-spec.c (print_destructor): Remove obsolete code.
1415
83ed54d7
EB
14162015-03-01 Eric Botcazou <ebotcazou@adacore.com>
1417
1418 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
1419 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
1420 DECL_TEMPLATE_RESULT emulations.
1421 (dump_ada_template)): Add guard for TYPE_METHODS.
1422
7631f0e2
MP
14232015-02-27 Marek Polacek <polacek@redhat.com>
1424
1425 PR c/65040
1426 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
1427
d1783ae5
KT
14282015-02-27 Kai Tietz <ktietz@redhat.com>
1429
1430 PR c/35330
1431 * c-pragma.c (handle_pragma_weak): Do not try to create
1432 weak/alias of declarations not being function, or variable
1433 declarations.
1434
56a9f6bc
TS
14352015-02-24 Thomas Schwinge <thomas@codesourcery.com>
1436
1437 PR libgomp/64625
1438 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
1439 Remove macros.
1440 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
1441
3d5cb23d
MP
14422015-02-16 Marek Polacek <polacek@redhat.com>
1443
1444 PR c/65066
1445 * c-format.c (check_format_types): Handle null param.
1446
fa008882
MP
14472015-02-13 Marek Polacek <polacek@redhat.com>
1448
1449 PR c/65040
1450 * c-format.c (check_format_types): Don't warn about different
1451 signedness if the original value is in the range of WANTED_TYPE.
1452
785f21af
JM
14532015-02-12 Jason Merrill <jason@redhat.com>
1454
1455 PR c++/64956
1456 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
1457 to the current highest version.
1458 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
1459
4886ec8e
JJ
14602015-02-04 Jakub Jelinek <jakub@redhat.com>
1461
1462 PR c/64824
1463 PR c/64868
1464 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
1465 instead of RDIV_EXPR. Use build_binary_op instead of
1466 build2_loc.
1467
40fecdd6
JM
14682015-01-30 Joseph Myers <joseph@codesourcery.com>
1469
1470 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
1471 to pass input_location as first argument.
1472
a0c88d06
TV
14732015-01-23 Tom de Vries <tom@codesourcery.com>
1474
1475 PR libgomp/64672
1476 * c.opt (fopenacc): Mark as LTO option.
1477
1506ae0e
TV
14782015-01-23 Tom de Vries <tom@codesourcery.com>
1479
1480 PR libgomp/64707
1481 * c.opt (fopenmp): Mark as LTO option.
1482
31be63ab
JJ
14832015-01-21 Jakub Jelinek <jakub@redhat.com>
1484
1485 PR c/63307
b1726d6c 1486 * cilk.c (fill_decls_vec): Only put decls into vector v.
31be63ab
JJ
1487 (compare_decls): Fix up formatting.
1488
14892015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
1490
1491 PR c/63307
1492 * cilk.c: Include vec.h.
1493 (struct cilk_decls): New structure.
1494 (wrapper_parm_cb): Split this function to...
1495 (fill_decls_vec): ...this...
1496 (create_parm_list): ...and this.
1497 (compare_decls): New function.
1498 (for_local_cb): Remove.
1499 (wrapper_local_cb): Ditto.
1500 (build_wrapper_type): For now first traverse and fill vector of
1501 declarations then sort it and then deal with sorted vector.
1502 (cilk_outline): Ditto.
1503 (declare_one_free_variable): Ditto.
1504
6875457f
JM
15052015-01-21 Jason Merrill <jason@redhat.com>
1506
1507 PR c++/64629
1508 * c-format.c (check_format_arg): Call decl_constant_value.
1509
185c9e56
ML
15102015-01-19 Martin Liska <mliska@suse.cz>
1511
1512 * c-common.c (handle_noicf_attribute): New function.
1513
41dbbb37
TS
15142015-01-15 Thomas Schwinge <thomas@codesourcery.com>
1515 Bernd Schmidt <bernds@codesourcery.com>
1516 James Norris <jnorris@codesourcery.com>
1517 Cesar Philippidis <cesar@codesourcery.com>
1518 Ilmir Usmanov <i.usmanov@samsung.com>
1519 Jakub Jelinek <jakub@redhat.com>
1520
1521 * c.opt (fopenacc): New option.
1522 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
1523 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
1524 New macros.
1525 * c-common.h (c_finish_oacc_wait): New prototype.
1526 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
1527 (c_finish_oacc_wait): New function.
1528 * c-pragma.c (oacc_pragmas): New variable.
1529 (c_pp_lookup_pragma, init_pragma): Handle it.
1530 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
1531 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
1532 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
1533 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
1534 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
1535 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
1536 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
1537 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
1538 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
1539 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
1540 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
1541 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
1542 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
1543 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
1544 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
1545 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
1546 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
1547 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
1548 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
1549 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
1550 PRAGMA_OACC_CLAUSE_WORKER.
1551
5434dc07
MD
15522015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
1553
1554 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
1555 for the new option fstack-protector_explicit.
1556 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
1557 (handle_stack_protect_attribute): New function.
1558
de1b5c17
MU
15592015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
1560
1561 * c.opt: New option -Warray-bounds=.
1562
adfac8df
JJ
15632015-01-09 Michael Collison <michael.collison@linaro.org>
1564
1565 * array-notation-common.c: Include hash-set.h, machmode.h,
1566 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1567 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
1568 * c-ada-spec.c: Ditto.
1569 * c-cilkplus.c: Ditto.
1570 * c-common.c: Include input.h due to flattening of tree.h.
1571 Define macro GCC_C_COMMON_C.
1572 * c-common.h: Flatten tree.h header files into c-common.h.
1573 Remove include of tree-core.h.
1574 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
1575 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1576 fold-const.h, wide-int.h, and inchash.h due to
1577 flattening of tree.h.
1578 * c-dump.c: Ditto.
1579 * c-format.c: Flatten tree.h header files into c-common.h.
1580 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
1581 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1582 fold-const.h, wide-int.h, and inchash.h due to
1583 flattening of tree.h.
1584 * c-dump.c: Include hash-set.h, machmode.h,
1585 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1586 fold-const.h, wide-int.h, and inchash.h due to
1587 flattening of tree.h.
1588 * c-format.c: Include hash-set.h, machmode.h,
1589 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1590 fold-const.h, wide-int.h, inchash.h and real.h due to
1591 flattening of tree.h.
1592 * c-gimplify.c: Include hash-set.h, machmode.h,
1593 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1594 fold-const.h, wide-int.h, and inchash.h due to
1595 flattening of tree.h.
1596 * cilk.c: Ditto.
1597 * c-lex.c: Ditto.
1598 * c-omp.c: Ditto.
1599 * c-opts.c: Ditto.
1600 * c-pch.c: Ditto.
1601 * c-ppoutput.c: Ditto.
1602 * c-pragma.c: Ditto.
1603 * c-pretty-print.c: Ditto.
1604 * c-semantics.c: Ditto.
1605 * c-ubsan.c: Ditto.
1606 * stub-objc.c: Ditto.
1607
f5481fc4
JM
16082015-01-08 Jason Merrill <jason@redhat.com>
1609
1610 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
1611 do_ubsan_in_current_function.
1612 (ubsan_maybe_instrument_reference_or_call): Likewise.
1613 * c-ubsan.h: Declare it.
1614
de35aa66
MS
16152015-01-08 Mike Stump <mikestump@comcast.net>
1616
1617 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
1618
4a9a42ab
MP
16192015-01-07 Marek Polacek <polacek@redhat.com>
1620
1621 PR c/64440
1622 * c-common.c (c_fully_fold_internal): Warn for division and modulo
1623 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
1624
2f42e5de
TS
16252015-01-05 Trevor Saunders <tsaunders@mozilla.com>
1626
1627 PR c++/31397
1628 * c.opt (Wsuggest-override): New option.
1629
5624e564
JJ
16302015-01-05 Jakub Jelinek <jakub@redhat.com>
1631
1632 Update copyright years.
1633
5bd012f8
MP
16342015-01-05 Marek Polacek <polacek@redhat.com>
1635
1636 PR c/64423
1637 * c-common.c (warn_array_subscript_with_type_char): Add location_t
1638 parameter. Use it.
1639 * c-common.h (warn_array_subscript_with_type_char): Update
1640 declaration.
1641
a7fa8d18
ESR
16422014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
1643
1644 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
1645 Control macro with flag_sized_deallocation.
1646
768952be
MU
16472014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
1648
1649 * c.opt (Wdiscarded-array-qualifiers): New option.
1650
1f8d3e84
JJ
16512014-12-19 Jakub Jelinek <jakub@redhat.com>
1652
1653 PR preprocessor/63831
1654 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
1655 and __has_cpp_attribute here.
1656 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
1657 c_common_has_attribute.
1658 * c-common.h (c_common_has_attribute): New prototype.
1659 * c-lex.c (init_c_lex): Set cb->has_attribute to
1660 c_common_has_attribute instead of cb_has_attribute.
1661 (get_token_no_padding): New function.
1662 (cb_has_attribute): Renamed to ...
1663 (c_common_has_attribute): ... this. No longer static. Use
1664 get_token_no_padding, require ()s, don't build TREE_LIST
1665 unnecessarily, fix up formatting, adjust diagnostics, call
1666 init_attributes.
1667
20b06add
JM
16682014-12-15 Jason Merrill <jason@redhat.com>
1669
1670 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
1671 (-Wsized-deallocation): New.
1672 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
1673 to on in C++14 and up.
1674
94a073b2
JM
16752014-12-11 Jason Merrill <jason@redhat.com>
1676
acaa5911
JM
1677 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
1678
94a073b2
JM
1679 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
1680 we aren't complaining about VLAs.
1681
7fb66c15
MP
16822014-12-06 Marek Polacek <polacek@redhat.com>
1683
1684 PR tree-optimization/64183
1685 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
1686 shift-expression if it is integer_type_node. Use types_compatible_p.
1687
b731b390
JJ
16882014-11-29 Jakub Jelinek <jakub@redhat.com>
1689
1690 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
1691 last argument from create_tmp_var_raw and create_tmp_var calls.
1692 * cilk.c (gimplify_cilk_spawn): Likewise.
1693 * c-omp.c (c_finish_omp_atomic): Likewise.
1694
6a4da643
MP
16952014-11-28 Marek Polacek <polacek@redhat.com>
1696
1697 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
1698 instead of unsigned_type_node.
1699
541e35a6
MP
17002014-11-28 Marek Polacek <polacek@redhat.com>
1701
1702 PR c/63862
1703 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
1704 to op1_utype.
1705 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
1706 expression to unsigned_type_node.
1707
dcc97066
MW
17082014-11-20 Mark Wielaard <mjw@redhat.com>
1709
1710 PR debug/38757
1711 * c-opts.c (set_std_c89): Set lang_hooks.name.
1712 (set_std_c99): Likewise.
1713 (set_std_c11): Likewise.
1714 (set_std_cxx98): Likewise.
1715 (set_std_cxx11): Likewise.
1716 (set_std_cxx14): Likewise.
1717 (set_std_cxx1z): Likewise.
1718
aa7da51a
JJ
17192014-11-21 Jakub Jelinek <jakub@redhat.com>
1720
1721 PR target/63764
1722 * c-common.h (convert_vector_to_pointer_for_subscript): Change
1723 return type to bool.
009a3480 1724 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
1725 (convert_vector_to_pointer_for_subscript): Change return type to
1726 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
1727 and copy it into a TARGET_EXPR and use that instead of *vecp
1728 directly.
1729
538dd0b7
DM
17302014-11-19 David Malcolm <dmalcolm@redhat.com>
1731
1732 Merger of git branch "gimple-classes-v2-option-3".
1733 * ChangeLog.gimple-classes: New.
1734 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
1735 from being just a vec<gimple> to a vec<gbind *>.
1736
c39a5e99
JJ
17372014-11-18 Jakub Jelinek <jakub@redhat.com>
1738
1739 PR sanitizer/63813
1740 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
1741 argument to ptype, set type to TREE_TYPE (ptype). Don't call
1742 get_pointer_alignment for non-pointers. Use ptype, or if it is
1743 reference type, corresponding pointer type, as type of kind
1744 argument.
1745 (ubsan_maybe_instrument_reference,
1746 ubsan_maybe_instrument_member_call): Adjust callers.
1747
8537a4a9
MP
17482014-11-15 Marek Polacek <polacek@redhat.com>
1749
1750 PR middle-end/63884
1751 * array-notation-common.c (is_sec_implicit_index_fn): Return false
1752 for NULL fndecl.
1753 (extract_array_notation_exprs): Return for NULL node.
1754
2079956a
JM
17552014-11-12 Joseph Myers <joseph@codesourcery.com>
1756
1757 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
1758 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
1759
1304953e
JJ
17602014-11-12 Jakub Jelinek <jakub@redhat.com>
1761
1762 PR c/59708
1763 * c-common.c (check_builtin_function_arguments): Handle
1764 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
1765
e5e44252
AK
17662014-11-10 Andi Kleen <ak@linux.intel.com>
1767
1768 PR c/60804
1769 * c-common.h (check_no_cilk): Declare.
1770 * cilk.c (get_error_location): New function.
1771 (check_no_cilk): Dito.
1772
e64b984d
AK
17732014-11-10 Andi Kleen <ak@linux.intel.com>
1774
1775 * cilk.c (recognize_spawn): Use expression location
1776 for error message.
1777
13c21655
PC
17782014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
1779
1780 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
1781
42fd12b1
ESR
17822014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
1783
1784 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
1785 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
1786 (__cpp_range_based_for, __cpp_initializer_lists,
1787 __cpp_delegating_constructors, __cpp_nsdmi,
1788 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
1789 for C++11; (__cpp_attribute_deprecated): Remove in favor of
1790 __has_cpp_attribute.
1791 * c-lex.c (cb_has_attribute): New callback CPP function;
1792 (init_c_lex): Set has_attribute callback.
1793
6f450181
RB
17942014-11-04 Richard Biener <rguenther@suse.de>
1795
1796 * c-common.c (shorten_compare): Do not shorten mixed
1797 DFP and non-DFP compares.
1798
26f0e1d6
ESR
17992014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
1800
1801 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
1802 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
1803 Commentary and rearrangement of tests.
1804 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
1805 Commentary and rearrangement of tests.
1806 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
1807 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
1808
ef4bddc2
RS
18092014-10-29 Richard Sandiford <richard.sandiford@arm.com>
1810
1811 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
1812 enum from machine_mode.
1813
c582198b
AM
18142014-10-28 Andrew MacLeod <amacleod@redhat.com>
1815
adfac8df
JJ
1816 * c-common.c: Adjust include files.
1817 * c-gimplify.c: Ditto.
1818 * cilk.c: Ditto.
1819 * c-pragma.c: Ditto.
1820 * c-ubsan.c: Ditto.
c582198b 1821
60393bbc
AM
18222014-10-27 Andrew MacLeod <amacleod@redhat.com>
1823
1824 * c-gimplify.c: Adjust include files.
1825
d723bb7c
MLI
18262014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
1827
1828 PR c++/53061
1829 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
1830 c_common_initialize_diagnostics.
1831 * c-common.h: Likewise.
1832
90f3520e
MP
18332014-10-24 Marek Polacek <polacek@redhat.com>
1834
1835 PR c/56980
1836 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
1837 print "struct"/"union"/"enum" for typedefed names.
1838
59d7607a
MP
18392014-10-23 Marek Polacek <polacek@redhat.com>
1840
1841 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
1842 in unsigned type.
1843
d95a2703
JJ
18442014-10-22 Jakub Jelinek <jakub@redhat.com>
1845 Yury Gribov <y.gribov@samsung.com>
1846
1847 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1848 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
1849 instead of flag_sanitize_recover as bool flag.
1850
8e6ef852
KY
18512014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
1852
1853 * cilk.c: Revert previous change.
1854
948cf550
IZ
18552014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
1856
1857 PR c/63307
1858 * cilk.c: Include vec.h.
1859 (struct cilk_decls): New structure.
1860 (wrapper_parm_cb): Split this function to...
1861 (fill_decls_vec): ...this...
1862 (create_parm_list): ...and this.
1863 (compare_decls): New function.
1864 (for_local_cb): Remove.
1865 (wrapper_local_cb): Ditto.
1866 (build_wrapper_type): For now first traverse and fill vector of
1867 declarations then sort it and then deal with sorted vector.
1868 (cilk_outline): Ditto.
1869 (declare_one_free_variable): Ditto.
1870
92574c7c
MP
18712014-10-17 Marek Polacek <polacek@redhat.com>
1872
1873 * c-opts.c (c_common_post_options): Set warn_implicit_int.
1874 * c.opt (Wimplicit-int): Initialize to -1.
1875
83685514
AM
18762014-10-16 Andrew MacLeod <amacleod@redhat.com>
1877
1878 * c-pragma.c: Adjust include files.
1879 * c-semantics.c: Likewise.
1880
5b8300ea
DD
18812014-10-16 DJ Delorie <dj@redhat.com>
1882
1883 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
1884 multiples of bytes.
1885
5f83e90b
JM
18862014-10-14 Jason Merrill <jason@redhat.com>
1887
1888 PR c++/63455
1889 * c-common.h (CPP_PREPARSED_EXPR): New.
1890 (N_CP_TTYPES): Adjust.
1891
d73326ca
MP
18922014-10-15 Marek Polacek <polacek@redhat.com>
1893
1894 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
1895
78a7c317
DD
18962014-10-14 DJ Delorie <dj@redhat.com>
1897
1898 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
1899 types, not just __int128.
1900 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
1901 types, not just __int128.
1902 (cpp_atomic_builtins): Round pointer sizes up.
1903 (type_suffix): Use type precision, not specific types.
1904 * c-common.c (c_common_reswords): Remove __int128 special case.
1905 (c_common_type_for_size): Check for all __intN types, not just
1906 __int128.
1907 (c_common_type_for_mode): Likewise.
1908 (c_common_signed_or_unsigned_type): Likewise.
1909 (c_build_bitfield_integer_type): Likewise.
1910 (c_common_nodes_and_builtins): Likewise.
1911 (keyword_begins_type_specifier): Likewise.
1912 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
1913 __intN variants.
1914
2a22f99c
TS
19152014-10-12 Trevor Saunders <tsaunders@mozilla.com>
1916
1917 * c-common.c: Use hash_table instead of hashtab.
1918
2a8ef767
ESR
19192014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
1920
adfac8df 1921 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
1922 C++11 section.
1923
3c9aabbd
MG
19242014-10-03 Marc Glisse <marc.glisse@inria.fr>
1925
1926 PR c++/54427
1927 PR c++/57198
1928 PR c++/58845
1929 * c-common.c (warn_logical_operator): Punt for vectors.
1930
a15f7cb8
ESR
19312014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
1932
1933 Implement SD-6: SG10 Feature Test Recommendations
1934 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
1935 macros and the __has_header macro.
1936
8d0cf15e
JM
19372014-09-30 Jason Merrill <jason@redhat.com>
1938
dd5d5481
JM
1939 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
1940 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
1941 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
1942
b752325e
JM
1943 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
1944 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
1945
8d0cf15e
JM
1946 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
1947 * c-common.c (c_common_reswords): Remove __is_convertible_to.
1948
083e891e
MP
19492014-09-24 Marek Polacek <polacek@redhat.com>
1950
1951 PR c/61405
1952 PR c/53874
1953 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
1954
7861b648
AK
19552014-09-23 Andi Kleen <ak@linux.intel.com>
1956
1957 * c-common.c (handle_no_reorder_attribute): New function.
1958 (c_common_attribute_table): Add no_reorder attribute.
1959
9a79452d
JM
19602014-09-22 Joseph Myers <joseph@codesourcery.com>
1961
1962 * c-cppbuiltin.c (c_cpp_builtins): Define
1963 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
1964 modes.
1965
dd69f047
JM
19662014-09-18 Joseph Myers <joseph@codesourcery.com>
1967
1968 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
1969 for supported floating-point modes.
1970
737a4826
MLI
19712014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1972
1973 * c.opt (Wpsabi): Use LangEnabledBy.
1974 * c-opts.c (c_common_handle_option): Do not handle here.
1975
8cc4b7a2
JM
19762014-09-12 Joseph Myers <joseph@codesourcery.com>
1977
1978 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
1979 macros for floating-point modes.
1980
179b5a55
MG
19812014-09-11 Marc Glisse <marc.glisse@inria.fr>
1982
1983 PR target/58757
1984 * c-cppbuiltin.c (builtin_define_float_constants): Correct
1985 __*_DENORM_MIN__ without denormals.
1986
570a11fe
JJ
19872014-09-10 Jakub Jelinek <jakub@redhat.com>
1988
1989 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1990 ubsan_instrument_vla, ubsan_instrument_return): Adjust
1991 ubsan_create_data callers.
1992 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
1993 index is constant or BIT_AND_EXPR with constant mask and is
1994 small enough for the bound.
1995 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
1996 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
1997
b559c810
MLI
19982014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1999
2000 * c.opt: Add CppReason to various flags.
2001 (Wdate-time): Re-sort.
2002 * c-common.c: Include c-common.h earlier.
2003 (struct reason_option_codes_t): Delete.
2004 (c_option_controlling_cpp_error): Prefix global type and struct
2005 with cpp_.
2006
1ef33fd4
MLI
20072014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2008
2009 * c.opt (Wnormalized): New.
2010 (Wnormalized=): Use Enum and Reject Negative.
2011 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
2012
66bb34c0
JM
20132014-09-08 Joseph Myers <joseph@codesourcery.com>
2014
2015 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
2016 digits of floating-point modes if -fbuilding-libgcc.
2017
53d68b9f
JM
20182014-09-05 Joseph Myers <joseph@codesourcery.com>
2019
2020 * c-cppbuiltin.c (c_cpp_builtins): Also define
2021 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
2022 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
2023 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
2024 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
2025 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
2026 __LIBGCC_STACK_GROWS_DOWNWARD__,
2027 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
2028 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
2029 __LIBGCC_DWARF_FRAME_REGISTERS__,
2030 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
2031 __LIBGCC_STACK_POINTER_REGNUM__ and
2032 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
2033 (builtin_define_with_value): Handle backslash-escaping in string
2034 macro values.
2035
f65586dc
RB
20362014-09-05 Richard Biener <rguenther@suse.de>
2037
2038 PR middle-end/63148
2039 * c-format.c (check_format_arg): Properly handle
2040 effectively signed POINTER_PLUS_EXPR offset.
2041
2b71f4a4
MLI
20422014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
2043
2044 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
2045 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
2046 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
2047 and Init.
2048 * c-opts.c (c_common_handle_option): Do not handle here.
2049 (sanitize_cpp_opts): Likewise.
2050 * c-common.c (struct reason_option_codes_t): Handle
2051 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
2052
d2e4feca
MP
20532014-09-03 Marek Polacek <polacek@redhat.com>
2054
2055 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
2056
9a771876
JJ
20572014-09-02 Jakub Jelinek <jakub@redhat.com>
2058 Balaji V. Iyer <balaji.v.iyer@intel.com>
2059 Igor Zamyatin <igor.zamyatin@intel.com>
2060
2061 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
2062 * c-common.c (c_common_reswords): Added _Cilk_for.
2063 * c-common.h (enum rid): Added RID_CILK_FOR.
2064 (cilk_for_number_of_iterations): Add declaration.
2065 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
2066 CILK_FOR.
2067 * c-pragma.c (init_pragma): Register "grainsize" pragma.
2068 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
2069
81b5d104
MLI
20702014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2071
2072 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
2073 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
2074 Wundef): Use CPP, Var and Init.
2075 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
2076
b753b37b
MLI
20772014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2078
2079 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
2080 * c-opts.c (c_common_handle_option): Do not handle here.
2081
028aee17
JM
20822014-08-25 Jason Merrill <jason@redhat.com>
2083
2084 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
2085 -std=c++14 and -std=gnu++14, rather than the reverse.
2086 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
2087 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
2088 * c-common.h (cxx_dialect): Remove cxx1y.
2089
e4276ba5
ESR
20902014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
2091
2092 * c-common.h (enum cxx_dialect): Add cxx14.
2093 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
2094 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
2095 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
2096
a545cacd
JM
20972014-08-22 Jason Merrill <jason@redhat.com>
2098
2099 * c.opt (std=gnu++17): Fix alias.
2100
59ea0364
MP
21012014-08-22 Marek Polacek <polacek@redhat.com>
2102
2103 PR c++/62199
2104 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
2105 check for vector types. Drop LHS argument.
2106 * c-common.h (warn_logical_not_parentheses): Adjust.
2107
596e808c
MLI
21082014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2109
2110 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
2111 (Wmultichar): Likewise.
2112 (Wdate-time): Use C-family languages instead of Common. Use CPP
2113 and Var.
2114 * c-opts.c (c_common_handle_option): Do not handle the above
2115 options here.
2116 (sanitize_cpp_opts): Likewise.
2117
18767f65
MLI
21182014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
2119
2120 PR fortran/44054
2121 * c-opts.c: Include tree-diagnostics.h.
2122 (c_diagnostic_finalizer): New.
2123 (c_common_initialize_diagnostics): Use it.
2124
b4413594
MLI
21252014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2126
2127 PR preprocessor/51303
2128 * c-common.c (struct reason_option_codes_t option_codes):
2129 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
2130
43f9a13c
MLI
21312014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2132
2133 PR c/60975
2134 PR c/53063
2135 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
2136 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
2137 (c_common_post_options): Call init_global_opts_from_cpp.
2138 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
2139
04159acf
MP
21402014-08-19 Marek Polacek <polacek@redhat.com>
2141
2142 PR c++/62153
2143 * c-common.c (maybe_warn_bool_compare): New function.
2144 * c-common.h (maybe_warn_bool_compare): Declare.
2145 * c.opt (Wbool-compare): New option.
2146
35aff4fb
MP
21472014-08-19 Marek Polacek <polacek@redhat.com>
2148
2149 * c.opt (Wc99-c11-compat): New option.
2150
177cce46
MP
21512014-08-19 Marek Polacek <polacek@redhat.com>
2152
2153 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
2154 to warn_c90_c99_compat.
2155 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
2156 to -1.
2157
6ae9194f
MLI
21582014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
2159 Steven Bosscher <steven@gcc.gnu.org>
2160
2161 PR c/52952
2162 * c-format.c: Add extra_arg_loc and format_string_loc to struct
2163 format_check_results.
2164 (check_function_format): Use true and add comment for boolean
2165 argument.
2166 (finish_dollar_format_checking): Use explicit location when warning.
2167 (check_format_info): Likewise.
2168 (check_format_arg): Set extra_arg_loc and format_string_loc.
2169 (check_format_info_main): Use explicit location when warning.
2170 (check_format_types): Pass explicit location.
2171 (format_type_warning): Likewise.
2172
8e54f6d3
MLI
21732014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2174
2175 PR fortran/44054
2176 * c-format.c: Handle Fortran flags.
2177
cd4e76fc
IZ
21782014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
2179
2180 PR other/61962
2181 * array-notation-common.c (find_rank): Added handling for other
2182 types of references.
2183
f3bede71
MP
21842014-08-10 Marek Polacek <polacek@redhat.com>
2185
2186 PR c/51849
2187 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
2188 * c.opt (Wc90-c99-compat): Add option.
2189
9f25a338
TS
21902014-08-07 Trevor Saunders <tsaunders@mozilla.com>
2191
2192 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
2193
62e4eb35
MP
21942014-08-03 Marek Polacek <polacek@redhat.com>
2195
2196 * c-common.c (check_case_value): Add location_t parameter. Use it.
2197 (c_add_case_label): Pass loc to check_case_value.
2198
b787e7a2
TS
21992014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2200
2201 * cilk.c: Use hash_map instead of pointer_map.
2202
6e2830c3
TS
22032014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2204
2205 * c-gimplify.c: Use hash_set instead of pointer_set.
2206
a7ee52fb
IZ
22072014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
2208
2209 PR middle-end/61455
2210 * array-notation-common.c (extract_array_notation_exprs): Handling
2211 of DECL_EXPR added.
2212
944fa280
JJ
22132014-08-01 Jakub Jelinek <jakub@redhat.com>
2214
2215 * c-common.h (min_align_of_type): Removed prototype.
2216 * c-common.c (min_align_of_type): Removed.
2217 * c-ubsan.h (ubsan_maybe_instrument_reference,
2218 ubsan_maybe_instrument_member_call): New prototypes.
2219 * c-ubsan.c: Include stor-layout.h and builtins.h.
2220 (ubsan_maybe_instrument_reference_or_call,
2221 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
2222 functions.
2223
b4dfdc11
MG
22242014-07-31 Marc Glisse <marc.glisse@inria.fr>
2225
2226 PR c++/60517
2227 * c.opt (-Wreturn-local-addr): Move to common.opt.
2228
a41844e5
JM
22292014-07-30 Jason Merrill <jason@redhat.com>
2230
2231 PR c++/61659
2232 PR c++/61687
2233 Revert:
2234 * c.opt (-fuse-all-virtuals): New.
2235
976d5a22
TT
22362014-07-30 Tom Tromey <tromey@redhat.com>
2237
2238 PR c/59855
2239 * c.opt (Wdesignated-init): New option.
2240 * c-common.c (c_common_attribute_table): Add "designated_init".
2241 (handle_designated_init): New function.
2242
cdc94aca
MP
22432014-07-24 Marek Polacek <polacek@redhat.com>
2244
2245 PR c/57653
2246 * c-opts.c (c_finish_options): If -imacros is in effect, return.
2247
f41373b6
DS
22482014-07-16 Dodji Seketeli <dodji@redhat.com>
2249
2250 PR preprocessor/60723 - missing system-ness marks for macro tokens
2251 * c-ppoutput.c (struct print::prev_was_system_token): New data
2252 member.
2253 (init_pp_output): Initialize it.
2254 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
2255 (do_line_change): Return a flag saying if a line marker was
2256 emitted or not.
2257 (scan_translation_unit): Detect if the system-ness of the token we
2258 are about to emit is different from the one of the previously
2259 emitted token. If so, emit a line marker. Avoid emitting useless
2260 adjacent line markers. Avoid emitting line markers for tokens
2261 originating from the expansion of built-in macros.
2262 (scan_translation_unit_directives_only): Adjust.
2263
4d661eaa
MP
22642014-07-15 Marek Polacek <polacek@redhat.com>
2265
2266 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
2267 TYPE_MAX_VALUE is NULL.
2268
b108f48f
JJ
22692014-07-14 Jakub Jelinek <jakub@redhat.com>
2270
2271 PR middle-end/61294
2272 * c.opt (Wmemset-transposed-args): New warning.
2273
c0221884
JM
22742014-07-10 Jason Merrill <jason@redhat.com>
2275
2276 PR c++/61659
2277 PR c++/61687
2278 * c.opt (-fuse-all-virtuals): New.
2279
63dfbb95
RB
22802014-07-09 Richard Biener <rguenther@suse.de>
2281
2282 PR c-family/61741
2283 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2284 using unsigned arithmetic if overflow does not wrap instead of
2285 if overflow is undefined.
2286
773ec47f
MP
22872014-07-06 Marek Polacek <polacek@redhat.com>
2288
2289 PR c/6940
2290 * c.opt (Wsizeof-array-argument): New option.
2291
00a7ba58
JJ
22922014-07-03 Jakub Jelinek <jakub@redhat.com>
2293
b1726d6c 2294 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
00a7ba58
JJ
2295 comments->count <= 1, as comments->entries might be NULL.
2296
52ec0ea3
MP
22972014-07-01 Marek Polacek <polacek@redhat.com>
2298
2299 * c.opt (Wint-conversion): New option.
2300
d5c3d343
MP
23012014-07-01 Marek Polacek <polacek@redhat.com>
2302
2303 PR c/58286
2304 * c.opt (Wincompatible-pointer-types): New option.
2305
6e7ceb17
PC
23062014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
2307
2308 PR c++/51400
2309 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
2310 Do not discard TYPE_QUALS of type.
2311
da73100b
JM
23122014-06-26 Jason Merrill <jason@redhat.com>
2313
2314 * c-common.h (enum cxx_dialect): Add cxx1z.
2315 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
2316 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
2317
08eedf75
TJ
23182014-06-26 Teresa Johnson <tejohnson@google.com>
2319
2320 * c-common.h (get_dump_info): Declare.
2321 * c-gimplify.c (c_genericize): Use saved dump files.
2322 * c-opts.c (c_common_parse_file): Begin and end dumps
2323 once around parsing invocation.
2324 (get_dump_info): New function.
2325
7b56b2f8
MP
23262014-06-23 Marek Polacek <polacek@redhat.com>
2327 Andrew MacLeod <amacleod@redhat.com>
2328
2329 PR c/61553
2330 * c-common.c (get_atomic_generic_size): Don't segfault if the
2331 type doesn't have a size.
2332
0e37a2f3
MP
23332014-06-20 Marek Polacek <polacek@redhat.com>
2334
2335 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
2336 (ubsan_walk_array_refs_r): New function.
2337 (c_genericize): Instrument array bounds.
2338 * c-ubsan.c: Include "internal-fn.h".
2339 (ubsan_instrument_division): Mark instrumented arrays as having
2340 side effects. Adjust ubsan_type_descriptor call.
2341 (ubsan_instrument_shift): Likewise.
2342 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
2343 (ubsan_instrument_bounds): New function.
2344 (ubsan_array_ref_instrumented_p): New function.
2345 (ubsan_maybe_instrument_array_ref): New function.
2346 * c-ubsan.h (ubsan_instrument_bounds): Declare.
2347 (ubsan_array_ref_instrumented_p): Declare.
2348 (ubsan_maybe_instrument_array_ref): Declare.
2349
23502014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
2351
2352 PR lto/61123
2353 * c.opt (fshort-enums): Add to LTO.
2354 * c.opt (fshort-wchar): Likewise.
2355
5c3d09f7
MP
23562014-06-16 Marek Polacek <polacek@redhat.com>
2357
2358 PR c/60439
2359 * c.opt (Wswitch-bool): Add Var.
2360
9cf32741
JJ
23612014-06-12 Jakub Jelinek <jakub@redhat.com>
2362
2363 PR middle-end/61486
2364 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
2365 #pragma omp target teams or
2366 #pragma omp {,target }teams distribute simd.
2367
62984918
JM
23682014-06-12 Jason Merrill <jason@redhat.com>
2369
2370 * c.opt (Wabi=, fabi-compat-version): New.
2371 * c-opts.c (c_common_handle_option): Handle -Wabi=.
2372 (c_common_post_options): Handle flag_abi_compat_version default.
2373 Disallow -fabi-compat-version=1.
2374 * c-common.h (abi_version_crosses): New.
2375
f961457f
JH
23762014-06-11 Jan Hubicka <hubicka@ucw.cz>
2377
adfac8df 2378 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
2379 section names that are no longer trees.
2380
92d28cbb
JJ
23812014-06-10 Jakub Jelinek <jakub@redhat.com>
2382
2383 PR fortran/60928
2384 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
2385 (omp_pragmas): ... back here.
2386
742938c9
MP
23872014-06-05 Marek Polacek <polacek@redhat.com>
2388
2389 PR c/49706
2390 * c-common.c (warn_logical_not_parentheses): New function.
2391 * c-common.h (warn_logical_not_parentheses): Declare.
2392 * c.opt (Wlogical-not-parentheses): New option.
2393
9d548dfb
MP
23942014-06-04 Marek Polacek <polacek@redhat.com>
2395
2396 PR c/30020
2397 * c-common.c (check_case_bounds): Add location parameter.
2398 Use it.
2399 (c_add_case_label): Pass loc to check_case_bounds.
2400
fedfecef
MP
24012014-06-03 Marek Polacek <polacek@redhat.com>
2402
2403 PR c/60439
2404 * c.opt (Wswitch-bool): New option.
2405
f6a7cffc
TS
24062014-05-22 Thomas Schwinge <thomas@codesourcery.com>
2407
040d18b6
TS
2408 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
2409 Remove prototypes.
2410 (record_types_used_by_current_var_decl): Move prototype to where
2411 it belongs.
2412
f6a7cffc
TS
2413 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
2414 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
2415 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
2416
632f2871
RS
24172014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
2418
2419 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
2420 * c-common.c (c_common_nodes_and_builtins): Don't initialize
2421 void_zero_node.
2422 * c-pretty-print.c (pp_c_void_constant): New function.
2423 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
2424 (c_pretty_printer::expression): Handle VOID_CST.
2425 * cilk.c (extract_free_variables): Likewise.
2426 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
2427 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
2428
766090c2
TS
24292014-05-17 Trevor Saunders <tsaunders@mozilla.com>
2430
2431 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
2432 * c-pragma.c (push_alignment): Adjust.
2433 (handle_pragma_push_options): Likewise.
2434
661a0813
MP
24352014-05-09 Marek Polacek <polacek@redhat.com>
2436
2437 PR c/50459
2438 * c-common.c (check_user_alignment): Return -1 if alignment is error
2439 node.
2440 (handle_aligned_attribute): Don't call default_conversion on
2441 FUNCTION_DECLs.
2442 (handle_vector_size_attribute): Likewise.
2443 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
2444 (handle_sentinel_attribute): Call default_conversion and allow even
2445 integral types as an argument.
2446
2793eeab
MP
24472014-05-08 Marek Polacek <polacek@redhat.com>
2448
2449 PR c/61053
2450 * c-common.c (min_align_of_type): New function factored out from...
2451 (c_sizeof_or_alignof_type): ...here.
2452 * c-common.h (min_align_of_type): Declare.
2453
f827930a
MP
24542014-05-08 Marek Polacek <polacek@redhat.com>
2455
2456 PR c/61077
2457 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
2458 parameter type of main.
2459
ca49b74e
DD
24602014-05-07 DJ Delorie <dj@redhat.com>
2461
2462 * c-cppbuiltin.c (print_bits_of_hex): New.
2463 (builtin_define_type_minmax): Print values using hex so as not to
2464 require a pre-computed list of string values.
2465
1d60af08
KZ
24662014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
2467 Mike Stump <mikestump@comcast.net>
2468 Richard Sandiford <rdsandiford@googlemail.com>
2469
2470 * c-ada-spec.c: Include wide-int.h.
2471 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
2472 (dump_generic_ada_node): Use wide-int interfaces.
2473 * c-common.c: Include wide-int-print.h.
2474 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
2475 (pointer_int_sum): Use wide-int interfaces.
2476 (c_common_nodes_and_builtins): Use make_int_cst.
2477 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
2478 (handle_alloc_size_attribute): Use wide-int interfaces.
2479 (get_nonnull_operand): Likewise.
2480 * c-format.c (get_constant): Use tree_fits_uhwi_p.
2481 * c-lex.c: Include wide-int.h.
2482 (narrowest_unsigned_type): Take a widest_int rather than two
2483 HOST_WIDE_INTs.
2484 (narrowest_signed_type): Likewise.
2485 (interpret_integer): Update accordingly. Use wide-int interfaces.
2486 (lex_charconst): Use wide-int interfaces.
2487 * c-pretty-print.c: Include wide-int.h.
2488 (pp_c_integer_constant): Use wide-int interfaces.
2489 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
2490 INT_CST_LT_UNSIGNED.
2491
b15458be
RB
24922014-05-06 Richard Biener <rguenther@suse.de>
2493
2494 * c-opts.c (c_common_post_options): For -freestanding,
2495 -fno-hosted and -fno-builtin disable pattern recognition
2496 if not enabled explicitely.
2497
6577374e
MP
24982014-05-02 Marek Polacek <polacek@redhat.com>
2499
2500 * c.opt (Wsizeof-pointer-memaccess): Describe option.
2501
d00887e8
MP
25022014-05-01 Marek Polacek <polacek@redhat.com>
2503
2504 PR c/43245
2505 * c.opt (Wdiscarded-qualifiers): Add.
2506
f8ed5150
MP
25072014-04-30 Marek Polacek <polacek@redhat.com>
2508
2509 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
2510 INT_MIN / -1 sanitization only for integer types.
2511
45484dcf
MP
25122014-04-25 Marek Polacek <polacek@redhat.com>
2513
2514 PR c/18079
2515 * c-common.c (handle_noinline_attribute): Warn if the attribute
2516 conflicts with always_inline attribute.
2517 (handle_always_inline_attribute): Warn if the attribute conflicts
2518 with noinline attribute.
2519
38e514c0
MP
25202014-04-25 Marek Polacek <polacek@redhat.com>
2521
2522 PR c/60156
2523 * c-common.c (check_main_parameter_types): Warn about variadic main.
2524
44875f92
MS
25252014-04-24 Mike Stump <mikestump@comcast.net>
2526
2527 * c.opt (Wshadow-ivar): Default to on.
2528
dcaaa5a0
DP
25292014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
2530
2531 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
2532
c07d7c02
MP
25332014-04-23 Marek Polacek <polacek@redhat.com>
2534
2535 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
2536
1c33c9b7
JJ
25372014-04-22 Jakub Jelinek <jakub@redhat.com>
2538
2539 PR sanitizer/60275
2540 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
2541 if flag_sanitize_undefined_trap_on_error.
2542 (ubsan_instrument_division, ubsan_instrument_shift,
2543 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
2544 if !flag_sanitize_recover.
2545
793c625f
MG
25462014-04-22 Marc Glisse <marc.glisse@inria.fr>
2547
2548 PR libstdc++/43622
2549 * c-common.c (registered_builtin_types): Make non-static.
2550 * c-common.h (registered_builtin_types): Declare.
2551
b0f1bf36
RB
25522014-04-14 Richard Biener <rguenther@suse.de>
2553 Marc Glisse <marc.glisse@inria.fr>
2554
2555 PR c/60819
2556 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
2557 apply may-alias the scalar pointer type when applicable.
2558
3b07fa4a
IZ
25592014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
2560
2561 PR middle-end/60467
2562 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
2563 as possible argument for Cilk_spawn.
2564
cbbd2b1c
TB
25652014-04-11 Tobias Burnus <burnus@net-b.de>
2566
2567 PR c/60194
2568 * c.opt (Wformat-signedness): Add
2569 * c-format.c(check_format_types): Use it.
2570
6415bd5d
JM
25712014-04-11 Jason Merrill <jason@redhat.com>
2572
2573 PR c++/57926
2574 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
2575 default_conversion for an array argument.
2576
6525783a
MP
25772014-04-08 Marek Polacek <polacek@redhat.com>
2578
2579 PR sanitizer/60745
2580 * c-ubsan.c: Include asan.h.
2581 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
2582
880a467b
NS
25832014-04-03 Nathan Sidwell <nathan@codesourcery.com>
2584
2585 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
2586
7b59ff2d
MP
25872014-04-02 Marek Polacek <polacek@redhat.com>
2588
2589 * c-common.h (c_expand_expr): Remove declaration.
2590
8edbfaa6
JJ
25912014-03-28 Jakub Jelinek <jakub@redhat.com>
2592
2593 PR c++/60689
2594 * c-common.c (add_atomic_size_parameter): When creating new
2595 params vector, push the size argument first.
2596
07d72e1d
JJ
25972014-03-26 Jakub Jelinek <jakub@redhat.com>
2598
2599 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2600 ubsan_instrument_vla, ubsan_instrument_return): Adjust
2601 ubsan_create_data callers.
2602
b35e0fa0
JJ
26032014-03-22 Jakub Jelinek <jakub@redhat.com>
2604
2605 PR debug/60603
2606 * c-opts.c (c_finish_options): Restore cb_file_change call to
2607 <built-in>.
2608
39a1ebb3
JJ
26092014-03-13 Jakub Jelinek <jakub@redhat.com>
2610
2611 PR middle-end/36282
2612 * c-pragma.c (apply_pragma_weak): Only look at
2613 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
2614 DECL_ASSEMBLER_NAME_SET_P (decl).
2615 (maybe_apply_pending_pragma_weaks): Exit early if
2616 vec_safe_is_empty (pending_weaks) rather than only when
2617 !pending_weaks.
2618 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
2619 set assembler name back to NULL afterwards.
2620
a07f6ed2
JM
26212014-03-11 Jason Merrill <jason@redhat.com>
2622
2623 * c.opt: Add -std=gnu++14.
2624
75b107f5
IB
26252014-03-11 Ian Bolton <ian.bolton@arm.com>
2626
2627 * c-opts.c (c_common_post_options): Don't override
2628 -ffp-contract=fast if unsafe-math-optimizations is on.
2629
f42c637e
PM
26302014-03-08 Paulo Matos <paulo@matos-sorge.com>
2631
2632 * c.opt: Enable LTO FE for fshort-double.
2633
70e24808
JM
26342014-03-07 Jason Merrill <jason@redhat.com>
2635
2636 * c.opt: Add -std=c++14.
2637
3af9c5e9
MP
26382014-03-06 Marek Polacek <polacek@redhat.com>
2639
2640 PR c/60197
2641 * cilk.c (contains_cilk_spawn_stmt): New function.
2642 (contains_cilk_spawn_stmt_walker): Likewise.
2643 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
2644 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
2645
b3bdf019
JJ
26462014-03-03 Jakub Jelinek <jakub@redhat.com>
2647
2648 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
2649 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
2650 even when flag_preprocess_only.
2651
ca7e759d
JM
26522014-02-26 Jason Merrill <jason@redhat.com>
2653
2654 PR c++/59231
2655 PR c++/11586
2656 * c-common.c (shorten_compare): Don't check
2657 c_inhibit_evaluation_warnings.
2658
28e41874
JJ
26592014-02-19 Jakub Jelinek <jakub@redhat.com>
2660
cca615af
JJ
2661 PR c/37743
2662 * c-common.c (c_common_nodes_and_builtins): When initializing
2663 c_uint{16,32,64}_type_node, also set corresponding
2664 uint{16,32,64}_type_node to the same value.
2665
28e41874
JJ
2666 PR c++/60267
2667 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
2668 for PRAGMA_IVDEP if flag_preprocess_only.
2669
c2bf53a1
JJ
26702014-02-12 Jakub Jelinek <jakub@redhat.com>
2671
2672 PR c/60101
2673 * c-common.c (merge_tlist): If copy is true, call new_tlist,
2674 if false, add ADD itself, rather than vice versa.
2675 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
2676 copy. For SAVE_EXPR, only call merge_tlist once.
2677
8fcbce72
JJ
26782014-02-08 Jakub Jelinek <jakub@redhat.com>
2679
2680 PR middle-end/60092
2681 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
2682 and tree_to_uhwi.
2683 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
2684 functions.
2685 (c_common_attribute_table): Add alloc_align and assume_aligned
2686 attributes.
2687
0a756a3f
MP
26882014-02-06 Marek Polacek <polacek@redhat.com>
2689
2690 PR c/60087
2691 * c-common.c (warn_for_sign_compare): Call warning_at with location
2692 instead of warning.
2693
7ec4847a
MP
26942014-02-05 Marek Polacek <polacek@redhat.com>
2695
2696 PR c/53123
2697 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
2698 statement.
2699
66f20604
MP
27002014-02-04 Marek Polacek <polacek@redhat.com>
2701
2702 PR c/60036
2703 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
2704 SAVE_EXPR.
2705
5d77fb19
MG
27062014-02-03 Marc Glisse <marc.glisse@inria.fr>
2707
2708 PR c++/53017
2709 PR c++/59211
2710 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
2711 handle_vector_size_attribute, handle_nonnull_attribute): Call
2712 default_conversion on the attribute argument.
2713 (handle_nonnull_attribute): Increment the argument number.
2714
81e5eca8
MP
27152014-01-31 Marek Polacek <polacek@redhat.com>
2716
2717 PR c/59963
2718 * c-common.c (add_atomic_size_parameter): Pass vNULL to
2719 build_function_call_vec.
2720 (resolve_overloaded_builtin): Likewise.
2721 * c-common.h (build_function_call_vec): Adjust declaration.
2722
68fca595
MP
27232014-01-30 Marek Polacek <polacek@redhat.com>
2724
2725 PR c/59940
2726 * c-common.h (unsafe_conversion_p): Adjust declaration.
2727 (warnings_for_convert_and_check): Likewise.
2728 (convert_and_check): Likewise.
2729 * c-common.c (unsafe_conversion_p): Add location parameter. Call
2730 expansion_point_location_if_in_system_header on it.
2731 (warnings_for_convert_and_check): Add location parameter. Call
2732 expansion_point_location_if_in_system_header on it. Use it.
2733 (convert_and_check): Add location parameter. Use it.
2734 (conversion_warning): Likewise.
2735 (c_add_case_label): Adjust convert_and_check calls.
2736 (scalar_to_vector): Adjust unsafe_conversion_p calls.
2737
b72271b9
BI
27382014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
2739
2740 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
2741 flag_cilkplus.
2742 * c-pragma.c (init_pragma): Likewise.
2743 * c.opt: Likewise.
2744
393e8e8b
MP
27452014-01-23 Marek Polacek <polacek@redhat.com>
2746
2747 PR c/59846
2748 * c-common.c (shorten_compare): Add location_t parameter.
2749 * c-common.h (shorten_binary_op): Adjust declaration.
2750
f04dda30
MP
27512014-01-23 Marek Polacek <polacek@redhat.com>
2752
2753 PR c/58346
2754 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
2755 * c-common.h: Declare it.
2756
621955cb
EB
27572014-01-20 Eric Botcazou <ebotcazou@adacore.com>
2758
2759 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
2760 * c-ada-spec.c (dump_ads): Likewise.
2761 (cpp_check): Likewise.
2762 (dump_ada_specs): Likewise.
2763
27642014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
2765
2766 PR c++/49718
2767 * c-common.c (handle_no_instrument_function_attribute): Allow
2768 no_instrument_function attribute in class member
2769 definition/declaration.
2770
241f845a
JJ
27712014-01-15 Jakub Jelinek <jakub@redhat.com>
2772
2773 PR c/58943
2774 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
2775 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
2776 being COMPOUND_EXPR.
2777 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
2778 operand a SAVE_EXPR and second MODIFY_EXPR.
2779
e83b8e2e
JJ
27802014-01-09 Jakub Jelinek <jakub@redhat.com>
2781
2782 PR target/58115
2783 * c-pch.c (c_common_write_pch): Call
2784 prepare_target_option_nodes_for_pch.
2785
23a5b65a
RS
27862014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2787
2788 Update copyright years
2789
f9030485
RS
27902014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2791
2792 * array-notation-common.c, c-cilkplus.c: Use the standard form for
2793 the copyright notice.
2794
f2aa696b
EB
27952013-12-28 Eric Botcazou <ebotcazou@adacore.com>
2796
2797 * c-ada-spec.c (print_constructor): New function.
2798 (print_destructor): Retrieve the origin of the destructor.
2799 (print_ada_declaration): Revamp handling of constructors/destructors.
2800
1f26ac87
JM
28012013-12-23 Stuart Hastings <stuart@apple.com>
2802 Bill Maddox <maddox@google.com>
2803 Jason Merrill <jason@redhat.com>
2804
2805 * c.opt: Add -fdeclone-ctor-dtor.
2806 * c-opts.c (c_common_post_options): Default to on iff -Os.
2807
41958c28
BI
28082013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
2809
2810 * c-common.c (c_common_attribute_table): Added "cilk simd function"
2811 attribute.
2812 * c-pragma.h (enum pragma_cilk_clause): Remove.
2813 (enum pragma_omp_clause): Added the following fields:
2814 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
2815 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
2816 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
2817 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
2818 PRAGMA_CILK_CLAUSE_UNIFORM.
2819
b1726d6c 2820
12893402
BI
28212013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
2822
2823 * cilk.c (cilk_outline): Made this function non-static.
2824 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
2825 (create_cilk_wrapper): Added a new parameter: a function pointer.
2826 (c_install_body_w_frame_cleanup): Remove
2827 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
2828 * c-common.h (cilk_outline): New prototype.
2829 (gimplify_cilk_spawn): Removed two parameters.
2830 (cilk_install_body_with_frame_cleanup): New prototype.
2831 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
2832 CILK_SPAWN_STMT case.
2833
085b42ed
BS
28342013-12-11 Bernd Schmidt <bernds@codesourcery.com>
2835
2ce064c3
BS
2836 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
2837
085b42ed
BS
2838 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
2839 (int_array_type_node): Remove.
2840 * c-common.c (c_common_nodes_and_builtins): Don't build it.
2841
9e36c9ed
MP
28422013-12-05 Marek Polacek <polacek@redhat.com>
2843
2844 PR c/52023
2845 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
2846 [ADJUST_FIELD_ALIGN].
2847
296674db
JM
28482013-12-04 Joseph Myers <joseph@codesourcery.com>
2849
2850 PR c/52023
2851 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
2852 and check field alignment if set.
2853 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
2854 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
2855
b1726d6c 28562013-12-04 Jakub Jelinek <jakub@redhat.com>
31e071ae
MP
2857 Marek Polacek <polacek@redhat.com>
2858
2859 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
2860 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
2861
d7947e19
L
28622013-11-29 H.J. Lu <hongjiu.lu@intel.com>
2863
2864 PR c/59309
2865 * cilk.c (gimplify_cilk_spawn): Properly handle function without
2866 arguments.
2867
fad7652e
JJ
28682013-11-29 Jakub Jelinek <jakub@redhat.com>
2869
2870 PR c/59280
2871 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
2872 goto invalid. If it is error_mark_node, don't issue further
2873 diagnostics.
2874
8b5e1202
SO
28752013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
2876
2877 * c.opt (Wopenmp-simd): New.
2878
0a508bb6
JJ
28792013-11-22 Jakub Jelinek <jakub@redhat.com>
2880
2881 * c-ubsan.h (ubsan_instrument_return): New prototype.
2882 * c-ubsan.c (ubsan_instrument_return): New function.
2883
2fb9a547
AM
28842013-11-22 Andrew MacLeod <amacleod@redhat.com>
2885
2886 * c-common.c: Add required include files from gimple.h.
2887 * c-gimplify.c: Likewise
2888 * cilk.c: Likewise
2889
8400e75e
DM
28902013-11-22 David Malcolm <dmalcolm@redhat.com>
2891
2892 * c-common.c (unsafe_conversion_p): Remove use of
2893 EXPR_LOC_OR_HERE macro.
2894 (conversion_warning): Likewise.
2895 (warnings_for_convert_and_check): Likewise.
2896 (warn_for_collisions_1): Likewise.
2897 (shorten_compare): Likewise, and remove use of in_system_header
2898 macro, using the location from the former.
2899 * c-lex.c (dump_one_header): Remove use of input_filename macro.
2900 (cb_def_pragma): Remove use of in_system_header macro.
2901 (lex_string): Likewise.
2902 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
2903
eb1ce453
KZ
29042013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2905 Mike Stump <mikestump@comcast.net>
2906 Richard Sandiford <rdsandiford@googlemail.com>
2907
2908 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
2909 instead of TREE_INT_CST_LOW, in cases where there is a protecting
2910 tree_fits_shwi_p or tree_fits_uhwi_p.
2911 (dump_generic_ada_node): Likewise.
2912 * c-format.c (check_format_arg): Likewise.
2913 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2914
6b3b8c27
KZ
29152013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2916
2917 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
2918
49b0aa18
JC
29192013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
2920
2921 PR c/53001
2922 * c-common.c (unsafe_conversion_p): Make this function
2923 return an enumeration with more detail.
2924 (conversion_warning): Use the new return type of
2925 unsafe_conversion_p to separately warn either about conversions
2926 that lower floating point number precision or about the other
2927 kinds of conversions.
2928 * c-common.h (enum conversion_safety): New enumeration.
2929 (unsafe_conversion_p): switching return type to
2930 conversion_safety enumeration.
2931 * c.opt: Adding new warning -Wfloat-conversion and
2932 enabling it with -Wconversion.
2933
b826515a
BS
29342013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
2935
2936 * c-opts.c: Include plugin.h.
2937 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
2938
b9a55b13
MP
29392013-11-19 Marek Polacek <polacek@redhat.com>
2940
2941 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
2942 call.
2943 (ubsan_instrument_shift): Likewise.
2944 (ubsan_instrument_vla): Likewise.
2945
7d362f6c
RS
29462013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2947
2948 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
2949 cast to unsigned type.
2950
386b1f1f
RS
29512013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2952
2953 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
2954 tree_low_cst.
2955 (complete_array_type): Update comment to refer to tree_to_[su]hwi
2956 rather than tree_low_cst.
2957
ae7e9ddd
RS
29582013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2959
2960 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
2961 tree_to_uhwi throughout.
2962
9439e9a1
RS
29632013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2964
2965 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
2966 tree_low_cst (..., 0) with tree_to_shwi throughout.
2967
cc269bb6
RS
29682013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2969
2970 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
2971 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
2972
9541ffee
RS
29732013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2974
2975 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
2976 host_integerp (..., 0) with tree_fits_shwi_p throughout.
2977
c02065fc
AH
29782013-11-15 Aldy Hernandez <aldyh@redhat.com>
2979
2980 * c-cilkplus.c: New file.
2981 * c-common.c (readonly_error): Add location argument.
2982 * c-common.h (readonly_error): Same.
2983 (c_finish_cilk_clauses): Protoize.
2984 (c_check_cilk_loop): Same.
2985 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
2986 Do not fail on error_mark_node.
2987 Abstract increment canonicalization to here...
2988 (c_omp_for_incr_canonicalize_ptr): New.
2989 c-pragma.c (init_pragma): Register "simd" pragma.
2990 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
2991 (enum pragma_cilk_clause): New.
2992
9cc65f15
RS
29932013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
2994
2995 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
2996 wchar_type and host_integerp checks.
2997
18f429e2
AM
29982013-11-14 Andrew MacLeod <amacleod@redhat.com>
2999
3000 * c-common.c: Likewise.
3001 * c-gimplify.c: Likewise.
3002 * cilk.c: Likewise.
3003
d8a2d370
DN
30042013-11-14 Diego Novillo <dnovillo@google.com>
3005
3006 * c-common.c: Include fold-const.h.
3007 Include stor-layout.h.
3008 Include calls.h.
3009 Include stringpool.h.
3010 Include attribs.h.
3011 Include varasm.h.
3012 Include trans-mem.h.
3013 * c-cppbuiltin.c: Include stor-layout.h.
3014 Include stringpool.h.
3015 * c-format.c: Include stringpool.h.
3016 * c-lex.c: Include stringpool.h.
3017 Include stor-layout.h.
3018 * c-pragma.c: Include stringpool.h.
3019 Include attribs.h.
3020 Include varasm.h.
3021 Include gcc-symtab.h.
3022 * c-pretty-print.c: Include stor-layout.h.
3023 Include attribs.h.
3024 * cilk.c: Include stringpool.h.
3025 Include calls.h.
3026
38b7bc7f
JM
30272013-11-13 Joseph Myers <joseph@codesourcery.com>
3028
3029 * c-common.h (enum rid): Add RID_AUTO_TYPE.
3030 * c-common.c (c_common_reswords): Add __auto_type.
3031 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
3032
45b0be94
AM
30332013-11-12 Andrew MacLeod <amacleod@redhat.com>
3034
18f429e2
AM
3035 * c-common.c: Include gimplify.h.
3036 * c-gimplify.c: Likewise.
3037 * cilk.c: Likewise.
3038 * c-omp.c: Include gimple-expr.h instead of gimple.h.
3039 * c-ubsan.c: Don't include gimple.h.
45b0be94 3040
582d9b50
JM
30412013-11-12 Joseph Myers <joseph@codesourcery.com>
3042
3043 * c-common.c (c_common_reswords): Add _Thread_local.
3044
6b28e197
JM
30452013-11-09 Joseph Myers <joseph@codesourcery.com>
3046
3047 * c-common.c (atomic_size_supported_p): New function.
3048 (resolve_overloaded_atomic_exchange)
3049 (resolve_overloaded_atomic_compare_exchange)
3050 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
3051 Use it instead of comparing size with a local list of sizes.
3052
267bac10
JM
30532013-11-07 Andrew MacLeod <amacleod@redhat.com>
3054 Joseph Myers <joseph@codesourcery.com>
3055
3056 * c-common.h (enum rid): Add RID_ATOMIC.
3057 * c-common.c (c_common_reswords): Add _Atomic.
3058 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
3059 (keyword_is_type_qualifier): Accept RID_ATOMIC.
3060 * c-format.c (check_format_types): Check for extra _Atomic
3061 qualifiers in format argument.
3062 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
3063 (pp_c_type_qualifier_list): Mention _Atomic in comment.
3064
5157b91e
TB
30652013-11-06 Tobias Burnus <burnus@net-b.de>
3066
3067 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
3068
6dbe0958
JM
30692013-11-06 Joseph Myers <joseph@codesourcery.com>
3070
3071 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
3072 standards modes.
3073 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
3074 to mean lack of IEEE 754 support.
3075
e8ff5196
TB
30762013-11-05 Tobias Burnus <burnus@net-b.de>
3077
3078 * c.opt (-Wdate-time): New option
3079 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
3080
254a0760
JM
30812013-11-05 Joseph Myers <joseph@codesourcery.com>
3082
3083 * c-cppbuiltin.c (cpp_iec_559_value): Test
3084 flag_excess_precision_cmdline not flag_excess_precision.
3085
6d7f7e0a
TB
30862013-11-05 Tobias Burnus <burnus@net-b.de>
3087
3088 * c.opt (fopenmp-simd): New option.
3089 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
3090 (omp_pragmas): ... this new struct.
3091 (c_pp_lookup_pragma): Also walk omp_pragmas.
3092 (init_pragma): Init pragmas for -fopenmp-simd.
3093
55a7f02f
MP
30942013-11-04 Marek Polacek <polacek@redhat.com>
3095
3096 PR c++/58979
3097 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
3098
9193fb05
JM
30992013-11-04 Joseph Myers <joseph@codesourcery.com>
3100
3101 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
3102 New functions.
3103 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
3104
94159ecf
EB
31052013-11-04 Eric Botcazou <ebotcazou@adacore.com>
3106
3107 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
3108 (dump_ada_specs): Adjust prototype of second callback.
3109 * c-ada-spec.c (cpp_check): New global variable.
3110 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
3111 (print_generic_ada_decl): Likewise.
3112 (has_static_fields): Change return type to bool and add guard.
3113 (has_nontrivial_methods): New predicate.
3114 (is_tagged_type): Change return type to bool.
3115 (separate_class_package): Call has_nontrivial_methods.
3116 (pp_ada_tree_identifier): Minor tweaks.
3117 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
3118 (dump_ada_array_domains): Likewise.
3119 (dump_ada_array_type): Likewise.
3120 (dump_template_types): Remove cpp_check parameter and do not pass it to
3121 dump_generic_ada_node.
3122 (dump_ada_template): Likewise.
3123 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
3124 recursively.
3125 (print_ada_methods): Change return type to integer. Remove cpp_check
3126 parameter and do not pass it down.
3127 (dump_nested_types): Remove cpp_check parameter and do not pass it to
3128 dump_generic_ada_node.
3129 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
3130 accessing methods.
3131 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
3132 down. Use has_nontrivial_methods to recognize C++ classes. Use return
3133 value of print_ada_methods.
3134 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
3135 Set cpp_check to it before invoking dump_ada_nodes.
3136 (dump_ada_specs): Likewise.
3137
b906f4ca
MP
31382013-11-03 Marek Polacek <polacek@redhat.com>
3139
3140 * c-ubsan.c: Don't include hash-table.h.
3141 (ubsan_instrument_vla): New function.
3142 * c-ubsan.h: Declare it.
3143
5e20cdc9
DM
31442013-10-31 David Malcolm <dmalcolm@redhat.com>
3145
3146 Automated part of renaming of symtab_node_base to symtab_node.
3147
3148 Patch autogenerated by rename_symtab.py from
3149 https://github.com/davidmalcolm/gcc-refactoring-scripts
3150 revision 58bb219cc090b2f4516a9297d868c245495ee622
3151
3152 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
3153 symtab_node_base to symtab_node.
3154
7057e645
ESR
31552013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
3156
3157 Implement C++14 digit separators.
3158 * c-lex.c (interpret_float): Remove digit separators from scratch string
3159 before building real literal.
3160
193ea7bc
JJ
31612013-10-30 Jakub Jelinek <jakub@redhat.com>
3162
3163 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
3164
939b37da
BI
31652013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
3166
3167 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
3168 fields.
3169 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
3170 enabled.
3171 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
3172 (insert_cilk_frame): New prototype.
3173 (cilk_init_builtins): Likewise.
3174 (gimplify_cilk_spawn): Likewise.
3175 (c_cilk_install_body_w_frame_cleanup): Likewise.
3176 (cilk_detect_spawn_and_unwrap): Likewise.
3177 (cilk_set_spawn_marker): Likewise.
3178 (build_cilk_sync): Likewise.
3179 (build_cilk_spawn): Likewise.
3180 * cilk.c: New file.
3181
67348ccc
DM
31822013-10-29 David Malcolm <dmalcolm@redhat.com>
3183
3184 Patch autogenerated by refactor_symtab.py from
3185 https://github.com/davidmalcolm/gcc-refactoring-scripts
3186 revision 58bb219cc090b2f4516a9297d868c245495ee622
3187
3188 * c-gimplify.c (c_genericize): Update for conversion of symtab types
3189 to a true class hierarchy.
3190 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
3191
d570872d
RS
31922013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
3193
3194 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
3195
98906124
JL
31962013-10-26 Jeff Law <law@redhat.com>
3197
adfac8df
JJ
3198 * c-common.c (c_define_builtins): Remove mudflap support.
3199 * c.opt: Ignore and warn for mudflap options.
98906124 3200
d73749df 32012013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
3202
3203 PR other/33426
3204 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
3205 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
3206
3f04b1bb
JM
32072013-10-23 Jason Merrill <jason@redhat.com>
3208
3209 * c-format.c (gcc_cxxdiag_char_table): Add %X.
3210
acf0174b
JJ
32112013-10-11 Jakub Jelinek <jakub@redhat.com>
3212
acd15a28
JJ
3213 * c-common.h (omp_clause_mask::operator !=): New method.
3214 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
3215 instead of if (mask & something) tests everywhere.
3216
acf0174b
JJ
3217 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
3218 201307 instead of 201107.
3219 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
3220 (c_common_attribute_table): Add "omp declare target" and
3221 "omp declare simd" attributes.
3222 (handle_omp_declare_target_attribute,
3223 handle_omp_declare_simd_attribute): New functions.
3224 * c-omp.c: Include c-pragma.h.
3225 (c_finish_omp_taskgroup): New function.
3226 (c_finish_omp_atomic): Add swapped argument, if true,
3227 build the operation first with rhs, lhs arguments and use NOP_EXPR
3228 build_modify_expr.
3229 (c_finish_omp_for): Add code argument, pass it down to make_code.
3230 (c_omp_split_clauses): New function.
3231 (c_split_parallel_clauses): Removed.
3232 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
3233 c_omp_declare_simd_clauses_to_decls): New functions.
3234 * c-common.h (omp_clause_mask): New type.
3235 (OMP_CLAUSE_MASK_1): Define.
3236 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
3237 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
3238 omp_clause_mask::operator |, omp_clause_mask::operator &,
3239 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
3240 omp_clause_mask::operator ==): New methods.
3241 (enum c_omp_clause_split): New.
3242 (c_finish_omp_taskgroup): New prototype.
3243 (c_finish_omp_atomic): Add swapped argument.
3244 (c_finish_omp_for): Add code argument.
3245 (c_omp_split_clauses): New prototype.
3246 (c_split_parallel_clauses): Removed.
3247 (c_omp_declare_simd_clauses_to_numbers,
3248 c_omp_declare_simd_clauses_to_decls): New prototypes.
3249 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
3250 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
3251 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
3252 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
3253 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
3254 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
3255 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
3256 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
3257 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
3258 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
3259 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
3260 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
3261 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
3262 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
3263 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
3264 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
3265 PRAGMA_OMP_CLAUSE_UNIFORM.
3266
826cacfe
MG
32672013-10-09 Marc Glisse <marc.glisse@inria.fr>
3268
3269 PR tree-optimization/20318
3270 * c-common.c (handle_returns_nonnull_attribute): New function.
3271 (c_common_attribute_table): Add returns_nonnull.
3272
2284b034
MG
32732013-10-03 Marc Glisse <marc.glisse@inria.fr>
3274
3275 PR c++/19476
3276 * c.opt (fcheck-new): Move to common.opt.
3277
b56e9788
MP
32782013-09-25 Marek Polacek <polacek@redhat.com>
3279 Jakub Jelinek <jakub@redhat.com>
3280
3281 PR sanitizer/58413
3282 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
3283 an expression if we can prove it is correct.
3284 (ubsan_instrument_division): Likewise. Remove unnecessary
3285 check.
3286
ce6923c5
MP
32872013-09-18 Marek Polacek <polacek@redhat.com>
3288
3289 PR sanitizer/58411
3290 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
3291 Declare it.
3292 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
3293
fb5610fb
IS
32942013-09-14 Iain Sandoe <iain@codesourcery.com>
3295
3296 PR target/48094
3297 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
3298 fobjc-gc, freplace-objc-classes): Accept for LTO.
3299
88b0e79e
JC
33002013-09-13 Jacek Caban <jacek@codeweavers.com>
3301
3302 * c-target.def: New hook
3303
c9b0866a
PC
33042013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
3305
3306 PR c++/43452
3307 * c.opt (Wdelete-incomplete): Add.
3308
0af94e6f
JR
33092013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
3310
3311 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
3312 (vector_types_compatible_elements_p): New function.
3313 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
3314 declaration.
3315 (vector_types_compatible_elements_p): Declare.
3316
7c26172c
GDR
33172013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
3318
3319 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
3320 a virtual member function.
3321 (pp_simple_type_specifier): Remove.
3322 (pp_c_type_specifier): Likewise.
3323 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
3324 Rename from pp_c_type_specifier. Adjust.
3325 (c_pretty_printer::c_pretty_printer): Do not assign to
3326 simple_type_specifier.
3327
20059c8b
GDR
33282013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3329
3330 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
3331 member function.
3332 (c_pretty_printer::storage_class_specifier): Likewise.
3333 (c_pretty_printer::initializer): Likewise.
3334 (pp_declaration): Remove.
3335 (pp_declaration_specifiers): Likewise.
3336 (pp_abstract_declarator): Likewise.
3337 (pp_declarator): Likewise.
3338 (pp_type_id): Likewise.
3339 (pp_statement): Likewise.
3340 (pp_constant): Likewise.
3341 (pp_id_expression): Likewise.
3342 (pp_primary_expression): Likewise.
3343 (pp_unary_expression): Likewise.
3344 (pp_multiplicative_expression): Likewise.
3345 (pp_conditional_expression): Likewise.
3346 (pp_assignment_expression): Likewise.
3347 (pp_expression): Likewise.
3348 (pp_c_type_id): Likewise.
3349 (pp_c_storage_class_specifier): Likewise.
3350 * c-pretty-print.c (pp_c_type_cast): Tidy.
3351 (pp_c_pointer): Likewise.
3352 (pp_c_type_specifier): Likewise.
3353 (pp_c_parameter_type_list): Likewise.
3354 (pp_c_function_definition): Likewise.
3355 (pp_c_init_declarator): Likewise.
3356 (pp_c_initializer_list): Likewise.
3357 (pp_c_constructor_elts): Likewise.
3358 (c_pretty_printer::direct_abstract_declarator): Likewise.
3359 (c_pretty_printer::declaration_specifiers): Likewise.
3360 (c_pretty_printer::primary_expression): Likewise.
3361 (c_pretty_printer::postfix_expression): Likewise.
3362 (c_pretty_printer::type_id): Rename from pp_c_type_id.
3363 (c_pretty_printer::storage_class_specifier): Rename from
3364 pp_c_storage_class_specifier.
3365 (c_pretty_printer::initializer): Rename from pp_c_initializer.
3366 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
3367 storage_class_specifier, initializer, offset_list, flags.
3368
de5a5fa1
MP
33692013-08-30 Marek Polacek <polacek@redhat.com>
3370
3371 * c-ubsan.c: New file.
3372 * c-ubsan.h: New file.
3373
8f0e4d72
GDR
33742013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
3375
3376 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
3377 member function.
3378 (c_pretty_printer::declaration_specifiers): Likewise.
3379 (c_pretty_printer::declarator): Likewise.
3380 (c_pretty_printer::abstract_declarator): Likewise.
3381 (c_pretty_printer::direct_abstract_declarator): Likewise.
3382 (c_pretty_printer::direct_declarator): Likewise.
3383 (c_pretty_printer::function_specifier): Likewise.
3384 (pp_declaration): Adjust.
3385 (pp_declaration_specifiers): Likewise.
3386 (pp_abstract_declarator): Likewise.
3387 (pp_direct_declarator): Likewise.
3388 (pp_function_specifier): Likewise.
3389 (pp_direct_abstract_declarator): Remove as unused.
3390 (pp_c_declaration): Remove.
3391 (pp_c_declaration_specifiers): Likewise.
3392 (pp_c_declarator): Likewise.
3393 (pp_c_direct_declarator): Likewise.
3394 (pp_c_function_specifier): Likewise.
3395 (pp_c_direct_abstract_declarator): Likewise.
3396 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
3397 from pp_c_abstract_declarator. Adjust.
3398 (c_pretty_printer::direct_abstract_declarator): Rename from
3399 pp_c_direct_abstract_declarator. Adjust.
3400 (c_pretty_printer::function_specifier): Rename from
3401 pp_c_function_specifier. Adjust.
3402 (c_pretty_printer::declaration_specifiers): Rename from
3403 pp_c_declaration_specifiers. Adjust.
3404 (c_pretty_printer::direct_declarator): Rename from
3405 pp_c_direct_declarator. Adjust.
3406 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
3407 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
3408 (c_pretty_printer::c_pretty_printer): Do not assign to
3409 declaration, declaration_specifiers, declarator,
3410 direct_declarator, direct_abstract_declarator, function_specifier.
3411
00d34d3a
GDR
34122013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
3413
3414 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
3415 virtual member function.
3416 (c_pretty_printer::multiplicative_expression): Likewise.
3417 (c_pretty_printer::conditional_expression): Likewise.
3418 (c_pretty_printer::assignment_expression): Likewise.
3419 (c_pretty_printer::expression): Likewise.
3420 (pp_unary_expression): Adjust.
3421 (pp_multiplicative_expression): Likewise.
3422 (pp_assignment_expression): Likewise.
3423 (pp_conditional_expression): Likewise.
3424 (pp_expression): Likewise.
3425 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
3426 from pp_c_unary_expression. Adjust.
3427 (c_pretty_printer::multiplicative_expression): Rename from
3428 pp_c_multiplicative_expression. Adjust.
3429 (c_pretty_printer::conditional_expression): Rename from
3430 pp_c_conditional_expression. Adjust.
3431 (c_pretty_printer::assignment_expression): Rename from
3432 pp_c_assignment_expression. Adjust.
3433 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
3434 (c_pretty_printer::c_pretty_printer): Do not assign to
3435 unary_expression, multiplicative_expression,
3436 conditional_expression, expression.
3437
fb22178f
GDR
34382013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3439
3440 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
3441 virtual member function.
3442 (pp_postfix_expression): Adjust.
3443 (pp_c_postfix_expression): Remove.
3444 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
3445 from pp_c_postfix_expression. Adjust.
3446 (c_pretty_printer::c_pretty_printer): Do not assign to
3447 postfix_expression.
3448
7ecc2600
GDR
34492013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3450
3451 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
3452 virtua member function.
3453 (pp_primary_expression): Adjust.
3454 (pp_c_primary_expression): Remove.
3455 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
3456 from pp_c_primary_expression. Adjust.
3457 (pp_c_initializer_list): Use pp_primary_expression.
3458 (c_pretty_printer::c_pretty_printer): Do not assign to
3459 primary_expression.
3460
0691175f
GDR
34612013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3462
3463 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
3464 * c-pretty-print.c (M_): Remove.
3465 (c_pretty_printer::translate_string): Define.
3466 (pp_c_type_specifier): Use it.
3467 (pp_c_primary_expression): Likewise.
3468 (pp_c_expression): Likewise.
3469
66dfe4c4
GDR
34702013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
3471
3472 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
3473 virtual function.
3474 (pp_c_id_expression): Remove.
3475 (pp_id_expression): Adjust.
3476 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
3477 pp_c_id_expression. Adjust.
3478 (pp_c_postfix_expression): Use pp_id_expression.
3479 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
3480
ca43e9d5
GDR
34812013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
3482
3483 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
3484 member function.
3485 (pp_constant): Adjust.
3486 (pp_c_constant): Remove.
3487 * c-pretty-print.c (c_pretty_printer::constant): Rename from
3488 pp_c_constant. Adjust.
3489 (pp_c_constant)
3490 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
3491 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
3492
da6ca2b5
GDR
34932013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
3494
3495 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
3496 (c_pretty_printer::c_pretty_printer): Declare.
3497 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
3498 c_pretty_printer_init. Adjust.
3499 (print_c_tree): Do not call c_pretty_printer_init.
3500 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
3501
65a372f4
AC
35022013-08-09 Arnaud Charlet <charlet@adacore.com>
3503
3504 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
3505
fd9b0f32
PC
35062013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
3507
3508 PR c++/58080
3509 * c-common.c (pointer_int_sum): Add bool parameter.
3510 * c-common.h (pointer_int_sum): Adjust declaration.
3511
e0aec1e9
GDR
35122013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
3513
3514 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
3515 c_pretty_printer variable.
3516
b066401f
GDR
35172013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
3518
3519 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
3520 (pp_base): Remove.
3521 (pp_c_base): Likewise. Adjust users.
3522 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
3523 (pp_c_whitespace): Do not call pp_base.
3524 (pp_c_left_paren): Likewise.
3525 (pp_c_right_paren): Likewise.
3526 (pp_c_left_brace): Likewise.
3527 (pp_c_right_brace): Likewise.
3528 (pp_c_left_bracket): Likewise.
3529 (pp_c_right_bracket): Likewise.
3530 (pp_c_dot): Likewise.
3531 (pp_c_ampersand): Likewise.
3532 (pp_c_star): Likewise.
3533 (pp_c_arrow): Likewise.
3534 (pp_c_semicolon): Likewise.
3535 (pp_c_complement): Likewise.
3536 (pp_c_exclamation): Likewise.
3537 (pp_c_direct_declarator): Likewise.
3538 (pp_c_ws_string): Likewise.
3539 (pp_c_identifier): Likewise.
3540 (pp_c_statement): Likewise.
3541 (print_c_tree): Likewise.
3542
65e5a578
ESR
35432013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
3544
3545 PR c++/58072
3546 * c-common.c (c_parse_error): Catch user-defined literal tokens and
3547 provide useful error strings.
3548
137a1a27
GDR
35492013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3550
3551 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
3552 printer functions instead of pp_string or operators and punctuators.
3553 (dump_generic_ada_node): Likewise.
3554 * c-pretty-print.c (pp_c_type_specifier): Likewise.
3555 (pp_c_relational_expression): Likewise.
3556 (pp_c_logical_or_expression): Likewise.
3557
07838b13
GDR
35582013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3559
3560 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
3561 functions instead of pp_character.
3562 (pp_ada_tree_identifier): Likewise.
3563 (dump_ada_double_name): Likewise.
3564 (dump_ada_function_declaration): Likewise.
3565 (dump_ada_array_domains): Likewise.
3566 (dump_template_types): Likewise.
3567 (dump_generic_ada_node): Likewise.
3568 (print_ada_declaration): Likewise.
3569 (print_ada_struct_decl): Likewise.
3570 * c-pretty-print.c (pp_c_integer_constant): Likewise.
3571
433cc7b0
TT
35722013-07-23 Tom Tromey <tromey@redhat.com>
3573
3574 * c-common.h (enum rid) <RID_GENERIC>: New constant.
3575 * c-common.c (c_common_reswords): Add _Generic.
3576
688010ba
OB
35772013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
3578
3579 * c-common.c: Fix typos.
3580 * c-common.h: Likewise.
3581
2a99e5e6
LL
35822013-07-13 Lubos Lunak <l.lunak@suse.cz>
3583
3584 PR c++/55203
3585 * c-common.c (c_common_attribute_table): Add warn_unused.
3586 (handle_warn_unused_attribute): New.
3587
c26302d5
JJ
35882013-07-10 Jakub Jelinek <jakub@redhat.com>
3589
3590 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
3591 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
3592
dfeadaa0
PC
35932013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
3594
3595 PR c++/57869
3596 * c.opt: Add Wconditionally-supported.
3597
6a2fa4b2
GS
35982013-07-08 Graham Stott <graham.stott@btinternet.com>
3599
adfac8df 3600 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
3601 unused variables l_length and l_node.
3602
ecdbd01a 36032013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
3604
3605 PR c/57821
3606 * c-common.c (complete_array_type): Delay folding first index
3607 like other indices. When folding, check for index overflow.
3608
bedc293e
MG
36092013-06-27 Marc Glisse <marc.glisse@inria.fr>
3610
3611 PR c++/57509
3612 * c-common.h (c_build_vec_perm_expr): New complain argument.
3613 * c-common.c (c_build_vec_perm_expr): Likewise.
3614 Use save_expr also in C++.
3615
604b2bfc
GDR
36162013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
3617
3618 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
3619 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3620 * c-opts.c (c_common_post_options): Likewise.
3621
dfeadaa0 36222013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
3623
3624 * array-notation-common.c (length_mismatch_in_expr): Changed the
3625 parameter type's from a dynamic array to a vec_tree. Also removed
3626 the size parameters.
3627 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
3628 the change above.
3629
2ce86d2e
BI
36302013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
3631
3632 * c-common.h (struct cilkplus_an_parts): New structure.
3633 (struct cilkplus_an_loop_parts): Likewise.
3634 (cilkplus_extract_an_triplets): New prototype.
3635 (fix_sec_implicit_args): Likewise.
3636 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
3637 (fix_sec_implicit_args): Likewise.
604b2bfc 3638
07a6825b
BI
36392013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
3640
3641 * array-notation-common.c (find_inv_trees): Removed an unwanted
3642 typecasting.
3643 * c-common.h (struct inv_list::additional_tcodes): Changed type from
3644 enum rid to enum tree_code.
3645
08346abd
JH
36462013-06-11 Jan Hubicka <jh@suse.cz>
3647
3648 * c-common.c (handle_alias_ifunc_attribute): Do not set
3649 DECL_EXTERNAL for weakref variables.
3650 * c-pragma.c (handle_pragma_weak): Make sure aliases
3651 are not declared as external.
3652
d60f1706
BI
36532013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
3654
3655 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
3656 function from c/c-array-notation.c.
3657 (is_cilkplus_reduce_builtin): Likewise.
3658 (find_rank): Likewise.
3659 (extract_array_notation_exprs): Likewise.
3660 (replace_array_notations): Likewise.
3661 (find_inv_trees): Likewise.
3662 (replace_inv_trees): Likewise.
3663 (contains_array_notation_expr): Likewise.
3664 (find_correct_array_notation_type): Likewise.
3665 * c-common.h (struct inv_list): Moved this struct from the file
3666 c/c-array-notation.c and added a new field called additional tcodes.
3667 (length_mismatch_in_expr_p): New prototype.
3668 (is_cilkplus_reduce_builtin): Likewise.
3669 (find_rank): Likewise.
3670 (extract_array_notation_exprs): Likewise.
3671 (replace_array_notation): Likewise.
3672 (find_inv_trees): Likewise.
3673 (replace_inv_trees): Likewise.
3674 (find_correct_array_notation_type): Likewise.
dfeadaa0 3675
36536d79
BI
36762013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
3677
3678 * c-common.c (c_define_builtins): When cilkplus is enabled, the
3679 function array_notation_init_builtins is called.
3680 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
3681 * c-common.def (ARRAY_NOTATION_REF): New tree.
3682 * c-common.h (build_array_notation_expr): New function declaration.
3683 (build_array_notation_ref): Likewise.
3684 (extract_sec_implicit_index_arg): New extern declaration.
3685 (is_sec_implicit_index_fn): Likewise.
3686 (ARRAY_NOTATION_CHECK): New define.
3687 (ARRAY_NOTATION_ARRAY): Likewise.
3688 (ARRAY_NOTATION_START): Likewise.
3689 (ARRAY_NOTATION_LENGTH): Likewise.
3690 (ARRAY_NOTATION_STRIDE): Likewise.
3691 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
3692 ARRAY_NOTATION_REF.
3693 (pp_c_expression): Likewise.
3694 * c.opt (flag_enable_cilkplus): New flag.
3695 * array-notation-common.c: New file.
3696
f7716d57
JJ
36972013-05-14 Jakub Jelinek <jakub@redhat.com>
3698
3699 PR c++/57274
3700 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
3701
a5e0cd1d
MG
37022013-05-10 Marc Glisse <marc.glisse@inria.fr>
3703
3704 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
3705 vectors.
3706
f6bc1c4a
HS
37072013-05-07 Han Shen <shenhan@google.com>
3708
3709 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
3710
3f12f6e9
SKS
37112013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3712
3713 * c-common.c (check_user_alignment): Emit error for negative values.
3714
61949153
PC
37152013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3716
3717 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
3718
e93e18e9
PC
37192013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3720
3721 * c-cppbuiltin.c (c_cpp_builtins): Do not define
3722 __GXX_EXPERIMENTAL_CXX1Y__.
3723
44d90fe1
PC
37242013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3725 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3726
3727 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
3728 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
3729 to simply use OPT_Wpointer_arith.
3730 (c_sizeof_or_alignof_type): Likewise.
3731
13f39b2e
PC
37322013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3733
3734 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
3735
4b84d650
JJ
37362013-04-12 Jakub Jelinek <jakub@redhat.com>
3737
3738 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
3739 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
3740 specifiers.
3741
fb037b5d
SB
37422013-04-07 Steven Bosscher <steven@gcc.gnu.org>
3743
3744 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
3745
4e856798
PC
37462013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
3747
3748 * c-common.c (pointer_int_sum): Remove dead code.
3749
4b1baac8
RS
37502013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
3751
3752 PR middle-end/56524
3753 * c-common.c (handle_optimize_attribute): Don't call
3754 save_optabs_if_changed.
3755
0b50e654
JJ
37562013-03-05 Jakub Jelinek <jakub@redhat.com>
3757
3758 PR middle-end/56461
3759 * c-pch.c (pch_init): Free target_validity at the end.
3760
48c41403
JJ
37612013-03-04 Jakub Jelinek <jakub@redhat.com>
3762
3763 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
3764
e664c61c
KS
37652013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
3766 Jakub Jelinek <jakub@redhat.com>
3767
3768 PR sanitizer/56454
3769 * c-common.c (handle_no_sanitize_address_attribute): New function.
3770 (c_common_attribute_table): Add no_sanitize_address attribute.
3771 (handle_no_address_safety_analysis_attribute): Add
3772 no_sanitize_address attribute, not no_address_safety_analysis
3773 attribute.
3774
a475fd3d 37752013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
3776
3777 PR target/52555
3778 * c-common.c (handle_optimize_attribute): Call
3779 save_optabs_if_changed.
3780
f6007d99
JJ
37812013-02-18 Jakub Jelinek <jakub@redhat.com>
3782 Steven Bosscher <steven@gcc.gnu.org>
3783
3784 PR pch/54117
3785 * c-opts.c (c_common_post_options): If debug info is enabled
3786 and non-dwarf*, refuse to load PCH files and when writing PCH
3787 file warn.
3788
cf35e2b1
JJ
37892013-02-05 Jakub Jelinek <jakub@redhat.com>
3790
3791 PR middle-end/56167
3792 * c-common.c (handle_error_attribute): Fix condition.
3793
32887460
JJ
37942013-01-30 Jakub Jelinek <jakub@redhat.com>
3795
3796 PR c++/55742
3797 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
3798
5af057d8
JM
37992013-01-18 Jason Merrill <jason@redhat.com>
3800
3801 PR target/54908
3802 * c.opt (-fextern-tls-init): New.
3803 * c-opts.c (c_common_post_options): Handle it.
3804
cc83c823
JJ
38052013-01-09 Jakub Jelinek <jakub@redhat.com>
3806
3807 PR c/48418
3808 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
3809 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
3810 and is either negative or bigger or equal to type precision
3811 of the first operand.
3812
a859517f
MP
38132012-12-03 Marek Polacek <polacek@redhat.com>
3814
3815 PR c/55570
3816 * c-common.c (check_user_alignment): Swap order of tests,
3817 check TREE_CODE first.
3818
2d7aa578
ESR
38192012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
3820
3821 PR c++/52654
3822 * c-common.h (overflow_type): New enum.
3823 (build_userdef_literal): Add overflow_type argument.
3824 (tree_userdef_literal): Add overflow_type.
3825 (USERDEF_LITERAL_OVERFLOW): New access macro.
3826 * c-common.c (build_userdef_literal): Add overflow_type
3827 argument.
3828 * c-lex.c (c_lex_with_flags): Add overflow_type to
3829 build_userdef_literal calls.
3830 (interpret_integer, interpret_float): Add overflow_type argument.
3831
cc3c4f62
RB
38322012-11-28 Richard Biener <rguenther@suse.de>
3833
3834 PR c/35634
3835 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
3836 here and use a type with proper overflow behavior for types that would
3837 need to be promoted for the arithmetic.
3838
77bc5132
JJ
38392012-11-23 Jakub Jelinek <jakub@redhat.com>
3840
3841 PR sanitizer/55435
3842 * c-common.c (handle_no_address_safety_analysis_attribute): New
3843 function.
3844 (c_common_attribute_table): Add no_address_safety_analysis.
3845
5dc99c46
SB
38462012-11-16 Simon Baldwin <simonb@google.com>
3847
3848 * c.opt: Add f[no-]canonical-system-headers.
3849 * c-opts.c (c_common_handle_option): Handle
3850 OPT_fcanonical_system_headers.
3851
a4a0016d
ESR
38522012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
3853
3854 PR c++/54413
3855 * c-opts.c (c_common_handle_option): Set new flags.
3856 * c.opt: Describe new flags.
3857
7dbb85a7
JM
38582012-11-09 Jason Merrill <jason@redhat.com>
3859
3860 * c.opt (Wabi-tag): New.
3861
ad7bac31
AK
38622012-11-09 Andi Kleen <ak@linux.intel.com>
3863
3864 PR 55139
3865 * c-common.c (get_atomic_generic_size): Mask with
3866 MEMMODEL_MASK
3867
7332899a
MLI
38682012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3869
3870 PR c/53063
3871 * c.opt (Wformat): Make it Alias Wformat=1.
3872 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
3873 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
3874 LangEnabledBy.
3875 (Wformat=): RejectNegative. Use LangEnabledBy.
3876 (Wnonnull): Use LangEnabledBy.
3877 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
3878 * c-format.c (set_Wformat): Delete.
3879 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
3880 (maybe_read_dollar_number): Likewise.
3881 (avoid_dollar_number): Likewise.
3882 (finish_dollar_format_checking): Likewise.
3883 (check_format_info): Likewise.
3884 (check_format_info_main): Likewise.
3885 (check_format_types): Likewise.
3886 (format_type_warning): Likewise.
3887 * c-common.c (int): Likewise.
3888 (check_function_sentinel): Likewise.
3889 * c-common.h (warn_format,set_Wformat): Do not declare here.
3890
34a180a6
MLI
38912012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3892
3893 PR c/53063
3894 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
3895 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
3896 Use LangEnabledBy.
3897 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
3898 common.opt.
3899 (Wvariadic-macros): Init(1).
3900 * c-opts.c (c_common_handle_option): Do not handle them
3901 explicitly.
3902 (c_common_post_options): Likewise.
3903 (sanitize_cpp_opts): warn_unused_macros is now
3904 cpp_warn_unused_macros.
3905 (push_command_line_include): Likewise.
3906 * c-common.c (warn_unknown_pragmas): Do not define.
3907 * c-common.h (warn_unknown_pragmas): Do not declare.
3908
3f46d6a5
MLI
39092012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3910
3911 PR c/51294
3912 * c-common.c (conversion_warning): Handle conditional expressions.
3913
880661a4
JW
39142012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
3915
3916 PR c++/54930
3917 * c.opt (Wreturn_local_addr): Define new option.
3918
4514a96b
JM
39192012-10-25 Jason Merrill <jason@redhat.com>
3920
f14edc1a
JM
3921 * c.opt (Wvirtual-move-assign): New.
3922
4514a96b
JM
3923 * c.opt (Winherited-variadic-ctor): New.
3924
93100c6b
MG
39252012-10-25 Marc Glisse <marc.glisse@inria.fr>
3926
3927 PR c++/54427
3928 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
3929
1efcb8c6
JM
39302012-10-23 Joseph Myers <joseph@codesourcery.com>
3931
3932 * c-common.h (pch_cpp_save_state): Declare.
3933 * c-target.def (c_preinclude): New hook.
3934 * c-opts.c (done_preinclude): New.
3935 (push_command_line_include): Handle default preincluded header.
3936 (cb_file_change): Call pch_cpp_save_state when calling
3937 push_command_line_include.
3938 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
3939 (pch_cpp_save_state): New.
3940 (pch_init): Call pch_cpp_save_state conditionally, instead of
3941 calling cpp_save_state.
3942
4a0ae68e
MLI
39432012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3944
3945 PR c/53063
3946 PR c/40989
3947 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
3948 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
3949 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
3950 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
3951 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
3952 * c-opts.c (c_common_handle_option): Remove explicit handling from
3953 here.
3954 (c_common_post_options): Likewise.
3955
67e4210b
EB
39562012-10-18 Eric Botcazou <ebotcazou@adacore.com>
3957
3958 * c-ada-spec.c (LOCATION_COL): Delete.
3959 (compare_location): New function.
3960 (compare_node): Use it.
3961 (compare_comment): Likewise.
3962
65d4f2cd
MLI
39632012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
3964
3965 PR c/53063
3966 PR c/40989
3967 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
3968 * c-opts.c (c_common_handle_option): Do not set them here. Add
3969 comment.
3970 (c_common_post_options): Likewise.
3971
909881cb
EB
39722012-10-16 Eric Botcazou <ebotcazou@adacore.com>
3973
3974 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
3975 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
3976 Remove POINTER_TYPE handling, add large unsigned handling and use
3977 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
3978
3a785c97
JJ
39792012-10-12 Jakub Jelinek <jakub@redhat.com>
3980
3981 PR c/54381
3982 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
3983 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
3984 locs and array of 3 trees instead of just single loc and single
3985 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
3986 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
3987 For *cmp* builtins that take two sources strings report warnings
3988 about first and second source, not about destination and source.
3989
5e54f81d
MG
39902012-10-12 Marc Glisse <marc.glisse@inria.fr>
3991
3992 PR c++/53055
3993 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
3994
f5b02f1e
EB
39952012-10-11 Eric Botcazou <ebotcazou@adacore.com>
3996
3997 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
3998 declaring something coming from another file.
3999
b46dbc6c
AC
40002012-10-10 Arnaud Charlet <charlet@adacore.com>
4001
f5b02f1e 4002 PR ada/54845
b46dbc6c
AC
4003 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
4004
5d9de0d0
PC
40052012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
4006
4007 PR c++/54194
4008 * c-common.c (warn_about_parentheses): Add location_t parameter;
4009 use EXPR_LOC_OR_LOC.
4010 * c-common.h: Update declaration.
4011
a212e43f
MG
40122012-10-09 Marc Glisse <marc.glisse@inria.fr>
4013
4014 PR c++/54427
4015 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
4016 more operations. Make error messages optional.
4017 * c-common.h (enum stv_conv): Moved from c-typeck.c.
4018 (scalar_to_vector): Declare.
4019
b1db7f91
JM
40202012-10-08 Jason Merrill <jason@redhat.com>
4021
4022 * c-common.c (c_common_reswords): Add thread_local.
4023
e28d52cf
DS
40242012-10-08 Dodji Seketeli <dodji@redhat.com>
4025
4026 PR c++/53528 C++11 attribute support
4027 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
4028 new functions.
4029 * c-common.c (check_cxx_fundamental_alignment_constraints): New
4030 static function.
4031 (handle_aligned_attribute): In choose strictest alignment
4032 among many. Use new check_cxx_fundamental_alignment_constraints.
4033 (handle_transparent_union_attribute): In c++11 attribute syntax,
4034 don't look through typedefs.
4035
3b78de56
AC
40362012-10-04 Arnaud Charlet <charlet@adacore.com>
4037
4038 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
4039 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
4040 out of dumpfile.h.
4041
6040bb5f
DC
40422012-09-25 Dehao Chen <dehao@google.com>
4043
4044 PR middle-end/54645
3b78de56 4045 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
4046 map when read in the pch.
4047
0b07a57e
AC
40482012-09-18 Arnaud Charlet <charlet@adacore.com>
4049
4050 * c-ada-spec.c: Style fixes.
4051
da5182be
TQ
40522012-09-18 Thomas Quinot <quinot@adacore.com>
4053
4054 * c.opt (-fada-spec-parent): Define new command line switch.
4055 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
4056 is specified, generate binding spec as a child of the specified unit.
4057
0ccb505d
PC
40582012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
4059 Manuel López-Ibáñez <manu@gcc.gnu.org>
4060
4061 PR c++/53210
4062 * c.opt ([Winit-self]): Enabled by -Wall in C++.
4063
c583af79
AC
40642012-08-23 Arnaud Charlet <charlet@adacore.com>
4065
4066 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
4067 for pointers, and add missing Convention C pragma.
4068 (print_ada_struct_decl): Add missing aliased keyword.
4069 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
4070
1a4049e7
JJ
40712012-08-17 Jakub Jelinek <jakub@redhat.com>
4072
4073 * c-common.c (sizeof_pointer_memaccess_warning): New function.
4074 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
4075 * c-opts.c (c_common_handle_option): Enable it for -Wall.
4076 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
4077 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
4078
70b5e7dc
RG
40792012-08-10 Richard Guenther <rguenther@suse.de>
4080
4081 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
4082
f8923f7e
SB
40832012-08-07 Steven Bosscher <steven@gcc.gnu.org>
4084
4085 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
4086 instead of separate pp_newline and pp_flush.
4087 (print_c_tree): Likewise.
4088
e45abe1f
RH
40892012-07-26 Richard Henderson <rth@redhat.com>
4090
4091 * c-common.c (handle_hot_attribute): Allow labels.
4092 (handle_cold_attribute): Likewise.
4093
332f1d24
JJ
40942012-07-20 Jakub Jelinek <jakub@redhat.com>
4095
4096 PR c++/28656
4097 * c-common.c (check_function_nonnull): Handle multiple nonnull
4098 attributes properly.
4099
7ee2468b
SB
41002012-07-16 Steven Bosscher <steven@gcc.gnu.org>
4101
4102 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
4103 * c-ada-spec.c: Likewise.
4104 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
4105
ee7b28eb
SB
41062012-07-14 Steven Bosscher <steven@gcc.gnu.org>
4107
4108 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
4109 Remove code conditional on it.
4110
6bdf3519
SB
41112012-07-11 Steven Bosscher <steven@gcc.gnu.org>
4112
4113 * c-gimplify.c: Do not include basic-block.h.
4114 * c-common.c: Do not include linfuncs.h.
4115
532aafad
SB
41162012-07-08 Steven Bosscher <steven@gcc.gnu.org>
4117
4118 * c-common.h: Include tree.h.
4119
8d0d1915
JM
41202012-07-02 Jason Merrill <jason@redhat.com>
4121
4122 PR c++/53524
4123 * c-common.c (get_priority): Call default_conversion.
4124
fbc873ad
UB
41252012-07-01 Uros Bizjak <ubizjak@gmail.com>
4126
4127 * c-pch.c (c_common_write_pch): Remove unused variables.
4128
d4a10d0a
SB
41292012-06-29 Steven Bosscher <steven@gcc.gnu.org>
4130
4131 * cppspec.c: Moved from gcc/ to here.
4132
6f3a2e23
KT
41332012-06-27 Kai Tietz <ktietz@redhat.com>
4134
4135 PR preprocessor/37215
4136 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
4137
8ca92d04
SB
41382012-06-21 Steven Bosscher <steven@gcc.gnu.org>
4139
4140 * c-common.h (c_common_print_pch_checksum): Remove.
4141 * c-pch.c: Do not include output.h.
4142 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
4143 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
4144 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
4145 (struct c_pch_header): Remove.
4146 (get_ident): Update gpch version.
4147 (pch_init): Do not print executable_checksum to asm_out_file.
4148 Do not fail if there is no asm_out_file to read back from. Set
4149 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
4150 (c_common_write_pch): Verify that nothing was written to asm_out_file
4151 since pch_init was called. Do not write a c_pch_header, and do not
4152 copy from asm_out_file to the PCH.
4153 (c_common_read_pch): Do not read a c_pch_header, and do not restore
4154 the content of asm_out_file from the PCH.
4155 (c_common_print_pch_checksum): Remove.
4156 * c-opts.c (c_common_init): Print out executable_checksum directly.
4157
70f42967
SB
41582012-06-19 Steven Bosscher <steven@gcc.gnu.org>
4159
4160 * c-target.def (objc_declare_unresolved_class_reference,
4161 objc_declare_class_definition): Add new hooks.
4162
a8781821
SB
41632012-06-19 Steven Bosscher <steven@gcc.gnu.org>
4164
4165 * c-lex.c: Do not include output.h.
4166 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
4167 Remove uses of ASM_OUTPUT_IDENT.
4168
9e1a8dd1
RR
41692012-06-15 Marc Glisse <marc.glisse@inria.fr>
4170
4171 PR c++/51033
4172 * c-common.h (c_build_vec_perm_expr): Move decl here.
4173 * c-common.c (c_build_vec_perm_expr): Move definition
4174 here.
4175
6f07a821
SB
41762012-06-06 Steven Bosscher <steven@gcc.gnu.org>
4177
4178 * c.opt (fconserve-space): Turn into a no-op.
4179
9faeb493 41802012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
4181
4182 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
4183 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
4184 both the start and end of the function.
4185
a4b7d13c
SB
41862012-06-04 Steven Bosscher <steven@gcc.gnu.org>
4187
4188 * c-common.c: Do not include output.h.
4189 * c-pragma.c: Likewise.
4190
c265f413
SA
41912012-06-04 Steven Bosscher <steven@gcc.gnu.org>
4192
4193 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
4194 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
4195 (lang_decl_name): Handle namespace decls.
4196
be7a421e
SB
41972012-05-31 Steven Bosscher <steven@gcc.gnu.org>
4198
4199 * c-ada-spec.c: Do not include output.h.
4200 * c-semantics.c: Likewise.
4201
65de6659
JM
42022012-05-29 Joseph Myers <joseph@codesourcery.com>
4203
4204 * c-common.c: Fix typo.
4205
ca5f4331
MM
42062012-05-29 Michael Matz <matz@suse.de>
4207
4208 * c-common.h (c_expand_decl): Remove prototype.
4209
4f7f7aca
MLI
42102012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
4211
4212 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
4213 * c-opts.c (c_common_handle_option): Remove code handling
4214 warn_missing_braces.
4215
4a792f9b
PC
42162012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
4217
4218 PR c++/25137
4219 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
4220 -Wmissing_braces.
4221
650dc14a
DS
42222012-05-22 Dodji Seketeli <dodji@redhat.com>
4223
4224 PR c++/53322
4225 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
4226
9b095bf1
MLI
42272012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
4228
4229 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
4230 * c-opts.c (c_common_handle_option): Do not handle explicitly
4231 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
4232
0b2c4be5
DS
42332012-05-16 Dodji Seketeli <dodji@redhat.com>
4234
4235 PR preprocessor/7263
4236 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
4237 to cpp_classify_number. For diagnostics, use the precise location
4238 instead of the global input_location.
4239
a1bde5af
PC
42402012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
4241
d02924ef 4242 PR c++/11856
a1bde5af
PC
4243 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
4244
d1ede5f4
BS
42452012-05-14 Bernd Schmidt <bernds@codesourcery.com>
4246
a1bde5af 4247 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 4248
f2bc201f
MLI
42492012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
4250
4251 PR 53063
4252 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
4253 Wreorder): Use LangEnabledBy.
4254 * c-opts.c (c_common_handle_option): Do not enable them
4255 explicitly. Call lang-specific generated functions.
4256 (c_common_post_options): Do not set them here.
4257
95744782
MLI
42582012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
4259
4260 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
4261 Wmissing-field-initializers,Wmissing-parameter-type,
4262 Wold-style-declaration,Woverride-init): Use EnabledBy.
4263 * c-opts.c (c_common_post_options): Do not set here explicitly.
4264
7d5a5747
MLI
42652012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4266
4267 PR 53063
4268 * c-opts.c (c_common_handle_option): Use handle_generated_option
4269 to enable sub-options.
4270
5a3c9cf2
PC
42712012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
4272
4273 PR c++/53158
4274 * c-common.c (warnings_for_convert_and_check): Use warning_at.
4275
3ac8781c
RG
42762012-05-10 Richard Guenther <rguenther@suse.de>
4277
4278 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
4279 adjust commentary about TYPE_IS_SIZETYPE types.
4280
1e537948
MLI
42812012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4282
4283 PR c++/53261
4284 * c-common.c (warn_logical_operator): Check that argument of
4285 integer_zerop is not NULL.
4286
f2c4a785
MLI
42872012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
4288
4289 PR c/43772
4290 * c-common.c (warn_logical_operator): Do not warn if either side
4291 is already true or false.
4292
50f305ca
MLI
42932012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
4294
4295 PR c/51712
4296 * c-common.c (expr_original_type): New.
4297 (shorten_compare): Do not warn for enumeration types.
4298
0c3641b0
MLI
42992012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
4300
4301 * c.opt (fpermissive): Add Var(flag_permissive).
4302
7edaa4d2
MG
43032012-04-30 Marc Glisse <marc.glisse@inria.fr>
4304
4305 PR c++/51033
4306 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
4307 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
4308
b9c8da34
DS
43092012-04-30 Dodji Seketeli <dodji@redhat.com>
4310
4311 Add -Wvarargs option
4312 * c.opt (Wvarargs): Define new option.
4313
e6c69da0
MLI
43142012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4315
4316 * c-common.c (check_function_arguments): Replace
4317 Wmissing-format-attribute with Wsuggest-attribute=format.
4318
90137d8f
MLI
43192012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4320
4321 * c.opt (Wsuggest-attribute=format): New. Alias of
4322 Wmissing-format-attribute.
4323 * c-format.c (decode_format_type): Replace
4324 Wmissing-format-attribute with Wsuggest-attribute=format.
4325 (check_function_format): Likewise.
4326
9faeb493 43272012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
4328
4329 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
4330 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
4331 * c.opt: Add Wliteral-suffix.
4332
c1771a20
MLI
43332012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
4334
4335 PR c/44774
4336 * c.opt (Wpedantic): New.
4337 (pedantic): Alias Wpedantic.
4338 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
4339 (c_common_post_options): Likewise.
4340 (sanitize_cpp_opts): Likewise.
4341 * c-lex.c (interpret_float): Likewise.
4342 * c-format.c (check_format_types): Likewise.
4343 * c-common.c (pointer_int_sum): Likewise.
4344 (c_sizeof_or_alignof_type): Likewise.
4345 (c_add_case_label): Likewise.
4346 (c_do_switch_warnings): Likewise.
4347 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
4348
04b391c1
JM
43492012-04-15 Jason Merrill <jason@redhat.com>
4350
4351 PR c++/52818
4352 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
4353 (C_STD_NAME): Distinguish between C++98 and C++11.
4354
ac868f29
EB
43552012-04-11 Eric Botcazou <ebotcazou@adacore.com>
4356
4357 PR target/52624
4358 * c-common.h (uint16_type_node): Rename into...
4359 (c_uint16_type_node): ...this.
4360 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
4361 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
4362
fd4116f4
MLI
43632012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
4364
4365 * c-common.c (warn_if_unused_value): Move definition to here.
4366 * c-common.h (warn_if_unused_value): Move declaration to here.
4367
573ac65e
WB
43682012-03-23 William Bader <williambader@hotmail.com>
4369
4370 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
4371
552b8185
JM
43722012-03-20 Jason Merrill <jason@redhat.com>
4373
4374 * c-common.h (enum cxx_dialect): Add cxx1y.
4375 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
4376 test.
4377 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
4378 * c-opts.c (c_common_post_options): Likewise.
4379 (set_std_cxx1y): New.
4380 (c_common_handle_option): Call it.
4381 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
4382
04398fa8
PC
43832012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
4384
4385 PR c++/14710
4386 * c.opt ([Wuseless-cast]): Add.
4387
d2a12ae7
RG
43882012-03-16 Richard Guenther <rguenther@suse.de>
4389
4390 * c-pretty-print.c (pp_c_initializer_list): Adjust.
4391
a12bf402
MLI
43922012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
4393
4394 PR c++/44783
4395 * c.opt (ftemplate-backtrace-limit) Add.
4396
5c30094f
RO
43972012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4398
4399 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
4400 handling.
4401 * c-pragma.c (handle_pragma_extern_prefix): Remove.
4402 (init_pragma): Don't register extern_prefix.
4403
21fa2faf
RG
44042012-03-12 Richard Guenther <rguenther@suse.de>
4405
4406 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
4407 (builtin_type_for_size): Likewise.
4408
e3793c6f
JJ
44092012-02-13 Jakub Jelinek <jakub@redhat.com>
4410
4411 PR c++/52215
4412 * c-common.c (sync_resolve_params): Don't decide whether to convert
4413 or not based on TYPE_SIZE comparison, convert whenever arg_type
4414 is unsigned INTEGER_TYPE.
4415
93286335
PC
44162012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
4417
4418 PR c/52118
4419 * c.opt ([Wunused-local-typedefs]): Fix description.
4420
7a421706
MS
44212012-01-24 Mike Stump <mikestump@comcast.net>
4422
4423 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
4424 exactly.
4425
ba9b1f11
RG
44262012-01-18 Richard Guenther <rguenther@suse.de>
4427
4428 * c-opts.c (c_common_post_options): Reset LTO flags if
4429 we are about to generate a PCH.
4430
465406be
PC
44312012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
4432
4433 PR c++/51777
4434 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
4435 use pp_unsigned_wide_integer.
4436
aee15221
RG
44372012-01-10 Richard Guenther <rguenther@suse.de>
4438
4439 PR middle-end/51806
4440 * c-opts.c (c_common_handle_option): Move -Werror handling
4441 to language independent code.
4442
5720c0dc
RG
44432012-01-05 Richard Guenther <rguenther@suse.de>
4444
4445 PR middle-end/51764
4446 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
4447 from common.opt.
4448
73ac190a
PC
44492011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
4450
4451 PR c++/51316
4452 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
4453 of array types with an unknown bound.
4454
48b0b196
JM
44552011-12-20 Joseph Myers <joseph@codesourcery.com>
4456
4457 * c-common.c (flag_isoc99): Update comment to refer to C11.
4458 (flag_isoc1x): Change to flag_isoc11.
4459 * c-common.h (flag_isoc99): Update comment to refer to C11.
4460 (flag_isoc1x): Change to flag_isoc11.
4461 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
4462 C11.
4463 * c-opts.c (set_std_c1x): Change to set_std_c11.
4464 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
4465 Call set_std_c11.
4466 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
4467 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
4468 * c.opt (std=c1x): Change to std=c11. Document as non-draft
4469 standard.
4470 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
4471 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
4472 (std=gnu1x): Make alias of std=gnu11.
4473
d58d6eb5
JM
44742011-12-19 Jason Merrill <jason@redhat.com>
4475
4476 PR c++/51228
4477 * c-common.c (handle_transparent_union_attribute): Check the first
4478 field if the type is complete.
4479
b3908fcc
JW
44802011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
4481
4482 PR libstdc++/51365
4483 * c-common.c (RID_IS_FINAL): Add.
4484 * c-common.h (RID_IS_FINAL): Add.
4485
fea3ca91
IS
44862011-11-30 Iain Sandoe <iains@gcc.gnu.org>
4487
4488 * c.opt (fgnu-runtime): Provide full description.
4489 (fnext-runtime): Likewise.
4490 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
4491
62bad7cd
AM
44922011-11-28 Andrew MacLeod <amacleod@redhat.com>
4493
4494 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
4495 predefines in one place. Add LOCK_FREE predefines.
4496 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
4497 new func.
4498
c466c4ff
AM
44992011-11-24 Andrew MacLeod <amacleod@redhat.com>
4500
4501 PR c/51256
9faeb493 4502 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 4503 conditions
9faeb493
UB
4504 (resolve_overloaded_atomic_exchange,
4505 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
4506 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
4507 error_mark_node for error conditions.
9faeb493 4508
a5952633
RG
45092011-11-08 Richard Guenther <rguenther@suse.de>
4510
4511 PR middle-end/51010
4512 c-family/
4513
0a35513e
AH
45142011-11-07 Richard Henderson <rth@redhat.com>
4515 Aldy Hernandez <aldyh@redhat.com>
4516 Torvald Riegel <triegel@redhat.com>
4517
4518 Merged from transactional-memory.
4519
4520 * c-common.c (handle_tm_wrap_attribute,
4521 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
4522 (struct c_common_reswords): Added __transaction* keywords.
4523 (struct c_common_attribute_table): Added transaction* and tm_regparm
4524 attributes.
4525 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
4526 masks.
4527 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
4528 find_tm_attribute): Declare.
4529
6d87092d
JM
45302011-11-07 Jason Merrill <jason@redhat.com>
4531
4532 PR c++/35688
4533 * c-common.c, c-common.h: Revert yesterday's changes.
4534
8e7860a1
JM
45352011-11-06 Jason Merrill <jason@redhat.com>
4536
4537 PR c++/35688
4538 * c-common.c (decl_has_visibility_attr): Split out from...
4539 (c_determine_visibility): ...here.
4540 * c-common.h: Declare it.
4541
d19fa6b5
JM
45422011-11-06 Joseph Myers <joseph@codesourcery.com>
4543
4544 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
4545 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
4546 type.
4547 (check_user_alignment): New. Split out of
4548 handle_aligned_attribute. Disallow integer constants with
4549 noninteger types. Conditionally allow zero.
4550 (handle_aligned_attribute): Use check_user_alignment.
4551 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
4552
86951993
AM
45532011-11-06 Andrew MacLeod <amacleod@redhat.com>
4554 Richard Henderson <rth@redhat.com>
4555
4556 Merged from cxx-mem-model.
4557
4558 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 4559 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
4560 parameters that are the same type size.
4561 (get_atomic_generic_size): New. Find size of generic
4562 atomic function parameters and do typechecking.
4563 (add_atomic_size_parameter): New. Insert size into parameter list.
4564 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
4565 either __atomic_exchange_n or external library call.
9faeb493 4566 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 4567 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 4568 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
4569 __atomic_load_n or an external library call.
4570 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
4571 __atomic_store_n or an external library call.
4572 (resolve_overloaded_builtin): Handle new __atomic builtins.
4573
cf9e9959
EB
45742011-11-04 Eric Botcazou <ebotcazou@adacore.com>
4575
4576 PR c++/50608
4577 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
4578 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
4579 <INDIRECT_REF>: Return the argument.
4580 <ARRAY_REF>: Remove special code for negative offset.
4581 Call fold_build_pointer_plus instead of size_binop.
4582 (fold_offsetof): Remove STOP_REF argument and adjust.
4583 * c-common.h (fold_offsetof_1): Declare.
4584 (fold_offsetof): Remove STOP_REF argument.
4585
25339f10
JM
45862011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
4587
4588 PR c++/50810
4589 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4590 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4591 Wnarrowing for C++0x and C++98.
4592 * c.opt ([Wnarrowing]): Update.
4593
89401152
PC
45942011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
4595
4596 PR c++/44277
4597 * c.opt: Add Wzero-as-null-pointer-constant.
4598
97e3ad20
JM
45992011-10-31 Jason Merrill <jason@redhat.com>
4600
15694fdd
JM
4601 * c.opt (-fdeduce-init-list): Off by default.
4602
97e3ad20
JM
4603 PR c++/50920
4604 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
4605 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
4606 and -Wc++11-compat.
4607 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
4608
fb9120e3
RAV
46092011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
4610
4611 PR c++/30066
4612 * c.opt (fvisibility-inlines-hidden): Description change.
4613
3ce4f9e4
ESR
46142011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
4615
4616 Implement C++11 user-defined literals.
4617 * c-common.c (build_userdef_literal): New.
4618 * c-common.def: New tree code.
4619 * c-common.h (tree_userdef_literal): New tree struct and accessors.
4620 * c-lex.c (interpret_float): Add suffix parm.
4621 (c_lex_with_flags): Build literal tokens.
4622
5f53c243
PC
46232011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4624
4625 PR c++/50841
4626 Revert:
4627 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4628
4629 PR c++/50810
4630 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4631 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4632 Wnarrowing for C++0x and C++98.
4633 * c.opt ([Wnarrowing]): Update.
4634
263734e1
PC
46352011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4636
4637 PR c++/50810
4638 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4639 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4640 Wnarrowing for C++0x and C++98.
4641 * c.opt ([Wnarrowing]): Update.
4642
d2e312d7
PC
46432011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
4644
4645 PR c++/45385
4646 * c-common.c (conversion_warning): Remove code looking for
4647 artificial operands.
4648
d17687f6
DS
46492011-10-18 Dodji Seketeli <dodji@redhat.com>
4650
4651 PR bootstrap/50760
4652 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 4653 !NO_IMPLICIT_EXTERN_C.
d17687f6 4654
fc8396e9
PC
46552011-10-17 Michael Spertus <mike_spertus@symantec.com>
4656
4657 * c-common.c (c_common_reswords): Add __bases,
4658 __direct_bases.
4659 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
4660
46612011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
4662
4663 PR c++/50757
4664 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
4665
847e697a
TT
46662011-10-15 Tom Tromey <tromey@redhat.com>
4667 Dodji Seketeli <dodji@redhat.com>
4668
4669 * c.opt (fdebug-cpp): New option.
4670 * c-opts.c (c_common_handle_option): Handle the option.
4671 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
4672 output stream in parameter. Factorized from ...
4673 (maybe_print_line): ... this. Dump location debug information when
4674 -fdebug-cpp is in effect.
4675 (print_line_1): New static function. Takes an output stream in
4676 parameter. Factorized from ...
4677 (print_line): ... here. Dump location information when -fdebug-cpp
4678 is in effect.
4679 (scan_translation_unit): Dump location information when
4680 -fdebug-cpp is in effect.
4681
92582b75
TT
46822011-10-15 Tom Tromey <tromey@redhat.com>
4683 Dodji Seketeli <dodji@redhat.com>
4684
4685 * c.opt (ftrack-macro-expansion): New option. Handle it with and
4686 without argument.
4687 * c-opts.c (c_common_handle_option)<case
4688 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
4689 cases. Handle -ftrack-macro-expansion with and without argument.
4690
46427374
TT
46912011-10-15 Tom Tromey <tromey@redhat.com>
4692 Dodji Seketeli <dodji@redhat.com>
4693
4694 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
4695 (print_line, cb_define, do_line_change): Adjust to avoid touching
4696 the internals of struct line_map. Use the public API instead.
4697 * c-pch.c (c_common_read_pch): Likewise.
4698 * c-lex.c (fe_file_change): Likewise.
4699
fc8396e9
PC
47002011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
4701
4702 PR c++/17212
4703 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
4704
47052011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
4706
4707 PR c++/33067
4708 * c-pretty-print.c (pp_c_floating_constant): Output
4709 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
4710
e79983f4
MM
47112011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
4712
4713 * c-common.c (def_builtin_1): Delete old interface with two
4714 parallel arrays to hold standard builtin declarations, and replace
4715 it with a function based interface that can support creating
4716 builtins on the fly in the future. Change all uses, and poison
4717 the old names. Make sure 0 is not a legitimate builtin index.
4718 * c-omp.c (c_finish_omp_barrier): Ditto.
4719 (c_finish_omp_taskwait): Ditto.
4720 (c_finish_omp_flush): Ditto.
4721
6637388f
TG
47222011-10-11 Tristan Gingold <gingold@adacore.com>
4723
4724 * c.opt: (fallow-parameterless-variadic-functions): New.
4725
3797cb21
DS
47262011-09-08 Dodji Seketeli <dodji@redhat.com>
4727
4728 PR c++/33255 - Support -Wunused-local-typedefs warning
4729 * c-common.h (struct c_language_function::local_typedefs): New
4730 field.
9faeb493
UB
4731 (record_locally_defined_typedef, maybe_record_typedef_use)
4732 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 4733 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
4734 (maybe_record_typedef_use)
4735 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
4736 * c.opt: Declare new -Wunused-local-typedefs flag.
4737
693ddb1b
EB
47382011-09-06 Eric Botcazou <ebotcazou@adacore.com>
4739
4740 PR middle-end/50266
4741 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
4742 computations.
4743
830c740f
RG
47442011-09-05 Richard Guenther <rguenther@suse.de>
4745
4746 * c-common.c (complete_array_type): Use ssize_int (-1) instead
4747 of integer_minus_one_node for empty array upper bounds.
4748
892a371f
DS
47492011-08-28 Dodji Seketeli <dodji@redhat.com>
4750
4751 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
4752 it's the first time it's being called on this main TU.
4753
0e3fdb48
RB
47542011-08-24 Richard Guenther <rguenther@suse.de>
4755
4756 PR c/49396
4757 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
4758
47592011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
4760
4761 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
4762 defined in cpp_init_builtins and c_cpp_builtins.
4763
d4a83c10
JM
47642011-08-19 Joseph Myers <joseph@codesourcery.com>
4765
4766 * c-common.c (c_common_reswords): Add __builtin_complex.
4767 * c-common.h (RID_BUILTIN_COMPLEX): New.
4768
bbceee64
JM
47692011-08-18 Joseph Myers <joseph@codesourcery.com>
4770
4771 * c-common.c (c_common_reswords): Add _Noreturn.
4772 (keyword_is_function_specifier): Handle RID_NORETURN.
4773 * c-common.h (RID_NORETURN): New.
4774
0e3a99ae
AS
47752011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4776
4777 * c-common.c (unsafe_conversion_p): New function. Check if it is
4778 unsafe to convert an expression to the type.
4779 (conversion_warning): Adjust, use unsafe_conversion_p.
4780 * c-common.h (unsafe_conversion_p): New function declaration.
4781
20906c66
JJ
47822011-08-02 Jakub Jelinek <jakub@redhat.com>
4783
4784 * c-common.h (c_finish_omp_atomic): Adjust prototype.
4785 (c_finish_omp_taskyield): New prototype.
4786 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
4787 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
4788 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
4789 or RHS1 have side-effects, evaluate those too in the right spot,
4790 if it is a decl and LHS is also a decl, error out if they
4791 aren't the same.
4792 (c_finish_omp_taskyield): New function.
4793 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
4794 * c-pragma.c (omp_pragmas): Add taskyield.
4795 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
4796 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
4797 PRAGMA_OMP_CLAUSE_MERGEABLE.
4798
770e5a2e
DS
47992011-07-25 Dodji Seketeli <dodji@redhat.com>
4800
4801 * c-common.h (set_underlying_type): Remove parm name from
4802 declaration.
4803
1baae426
RG
48042011-07-25 Romain Geissler <romain.geissler@gmail.com>
4805
4806 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 4807
fcb21722
JM
48082011-07-22 Jason Merrill <jason@redhat.com>
4809
76f86d00
JM
4810 PR c++/49793
4811 * c.opt (Wnarrowing): New.
4812
3a636414
JM
4813 PR c++/30112
4814 * c-common.h: Declare c_linkage_bindings.
4815 * c-pragma.c (handle_pragma_redefine_extname): Use it.
4816
fcb21722
JM
4817 PR c++/49813
4818 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
4819 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
4820 as flag_isoc99 for 'restrict'.
4821 (pp_c_specifier_qualifier_list): Likewise for _Complex.
4822
02614448
ILT
48232011-07-21 Ian Lance Taylor <iant@google.com>
4824
4825 PR middle-end/49705
4826 * c-common.c (c_disable_warnings): New static function.
4827 (c_enable_warnings): New static function.
4828 (c_fully_fold_internal): Change local unused_p to bool. Call
4829 c_disable_warnings and c_enable_warnings rather than change
4830 c_inhibit_evaluation_warnings.
4831
34429675
JM
48322011-07-20 Jason Merrill <jason@redhat.com>
4833
4834 PR c++/6709 (DR 743)
4835 PR c++/42603 (DR 950)
4836 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
4837 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
4838 (CPP_DECLTYPE): New.
4839 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
4840
5d49b6a7
RG
48412011-07-19 Richard Guenther <rguenther@suse.de>
4842
4843 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
4844 * c-omp.c (c_finish_omp_for): Likewise.
4845
e84a58ff
EB
48462011-07-12 Eric Botcazou <ebotcazou@adacore.com>
4847
4848 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
4849 body on the next line.
4850
329af3c7
JM
48512011-07-08 Jason Merrill <jason@redhat.com>
4852
4063e61b
JM
4853 PR c++/45437
4854 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
4855
329af3c7
JM
4856 PR c++/49673
4857 * c-common.c (c_apply_type_quals_to_decl): Don't check
4858 TYPE_NEEDS_CONSTRUCTING.
4859
1a072294
RG
48602011-07-06 Richard Guenther <rguenther@suse.de>
4861
4862 * c-common.c (c_common_nodes_and_builtins):
4863 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
4864
fce5dddd
RG
48652011-07-05 Richard Guenther <rguenther@suse.de>
4866
4867 * c-common.c (c_common_nodes_and_builtins): Build all common
4868 tree nodes first.
4869
45d439ac
JJ
48702011-06-27 Jakub Jelinek <jakub@redhat.com>
4871
56300785
JJ
4872 * c-common.h (c_tree_chain_next): New static inline function.
4873
45d439ac
JJ
4874 * c-common.c (check_builtin_function_arguments): Handle
4875 BUILT_IN_ASSUME_ALIGNED.
4876
e0a8ecf2
AM
48772011-06-21 Andrew MacLeod <amacleod@redhat.com>
4878
4879 * c-common.c: Add sync_ or SYNC__ to builtin names.
4880 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
4881
48822011-06-20 Pierre Vittet <piervit@pvittet.com>
4883
4884 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
4885 handler.
4886 (gen_pragma_handler): New union.
4887 (internal_pragma_handler): New type.
4888 (c_register_pragma_with_data)
4889 (c_register_pragma_with_expansion_and_data): New functions.
4890
4891 * c-pragma.c (registered_pragmas, c_register_pragma_1)
4892 (c_register_pragma, c_register_pragma_with_expansion)
4893 (c_invoke_pragma_handler): Changed to work with
4894 internal_pragma_handler.
4895 (c_register_pragma_with_data)
4896 (c_register_pragma_with_expansion_and_data): New functions.
4897
677f3fa8
JM
48982011-06-14 Joseph Myers <joseph@codesourcery.com>
4899
4900 * c-common.c: Include common/common-target.h.
4901 (handle_section_attribute): Use
4902 targetm_common.have_named_sections.
4903 * c-cppbuiltin.c: Include common/common-target.h.
4904 (c_cpp_builtins): Use targetm_common.except_unwind_info.
4905
d7fc8c14
RG
49062011-06-10 Richard Guenther <rguenther@suse.de>
4907
4908 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
4909 to print a IDENTIFIER_NODE.
4910
10e48e39
RO
49112011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4912 Joseph Myers <joseph@codesourcery.com>
4913
4914 * c.opt (fbuilding-libgcc): New option.
4915 * c-cppbuiltin.c (c_cpp_builtins): Define
4916 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
4917
6976ae51
JM
49182011-06-07 Jason Merrill <jason@redhat.com>
4919
3ff60975
JM
4920 * c-common.c (max_tinst_depth): Lower default to 900.
4921
6976ae51
JM
4922 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
4923
009db074
RG
49242011-06-07 Richard Guenther <rguenther@suse.de>
4925
4926 * c-common.c (c_common_nodes_and_builtins): Do not set
4927 size_type_node or call set_sizetype.
4928
b4592b92
DS
49292011-06-07 Dodji Seketeli <dodji@redhat.com>
4930
4931 PR debug/49130
4932 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 4933 type when using pointer comparison to compare types.
b4592b92 4934
014ab419
JW
49352011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
4936
4937 * c.opt: Add -Wdelete-non-virtual-dtor.
4938 * c-opts.c (c_common_handle_option): Include it in -Wall.
4939
4f60111f
NF
49402011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
4941
4942 PR bootstrap/49190
4943
4944 Revert:
4945 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4946
4947 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
4948 not tree_common.
4949
4cc4f2f4
JJ
49502011-05-27 Jakub Jelinek <jakub@redhat.com>
4951
4952 PR c++/49165
4953 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
4954 C++ don't call c_common_truthvalue_conversion on void type arms.
4955
38e01f9e
NF
49562011-05-27 Nathan Froyd <froydnj@codesourcery.com>
4957
4958 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
4959 (stmt_list_stack): Define.
4960 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
4961 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
4962
92e948a8
NF
49632011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4964
4965 * c-common.c (warning_candidate_p): Check for BLOCKs.
4966
a2fc3e63
NF
49672011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4968
4969 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
4970 not tree_common.
4971
0957c029
JJ
49722011-05-25 Jakub Jelinek <jakub@redhat.com>
4973
4974 * c-common.c (def_fn_type): Remove extra va_end.
4975
828fb3ba
JM
49762011-05-23 Jason Merrill <jason@redhat.com>
4977
4978 PR c++/48106
4979 * c-common.c (c_common_get_narrower): New.
4980 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
4981
dde05067
NF
49822011-05-23 Nathan Froyd <froydnj@codesourcery.com>
4983
4984 * c-common.h (check_function_arguments): Tweak prototype of
4985 check_function_arguments.
4986 * c-common.c (check_function_arguments): Likewise. Adjust
4987 calls to check_function_nonnull, check_function_format, and
4988 check_function_sentinel.
4989 (check_function_sentinel): Take a FUNCTION_TYPE rather than
4990 separate attributes and typelist arguments. Use
4991 FOREACH_FUNCTION_ARGS to iterate over argument types.
4992
3c0d13bf
PC
49932011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
4994
4995 * c-common.c (c_common_reswords): Reorder.
4996 * c-common.h (rid): Likewise.
4997
8242dd04
NF
49982011-05-10 Nathan Froyd <froydnj@codesourcery.com>
4999
5000 * c-common.c (def_fn_type): Don't call build_function_type, call
5001 build_function_type_array or build_varargs_function_type_array
5002 instead.
5003 (c_common_nodes_and_builtins): Likewise.
5004
3d528853
NF
50052011-05-05 Nathan Froyd <froydnj@codesourcery.com>
5006
5007 * c-common.c (c_add_case_label): Omit the loc argument to
5008 build_case_label.
5009 * c-common.h (build_case_label): Remove.
5010 * c-semantics.c (build_case_label): Remove.
5011
a04a722b
JM
50122011-05-05 Joseph Myers <joseph@codesourcery.com>
5013
5014 * c-objc.h (objc_start_method_definition): Update prototype.
5015 * stub-objc.c (objc_start_method_definition): Add extra parameter.
5016
e19a18d4
NF
50172011-05-04 Nathan Froyd <froydnj@codesourcery.com>
5018
5019 * c-common.c (check_main_parameter_types): Reindent. Don't use
5020 TYPE_ARG_TYPES directly.
5021 (handle_nonnull_attribute): Likewise.
5022 (sync_resolve_params): Likewise.
5023 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
5024 to check_format_string.
5025 (handle_format_attribute): Likewise.
5026 (check_format_string): Take a function type to examine instead of
5027 a type list. Use a function_arg_iterator to step through argument
5028 types.
5029
c62c040f
RG
50302011-05-04 Richard Guenther <rguenther@suse.de>
5031
5032 * c-common.c (fix_string_type): Use size_int for index type bounds.
5033 (start_fname_decls): Do not pass NULL to build_int_cst.
5034 (c_init_attributes): Likewise.
5035 * c-lex.c (c_lex_with_flags): Likewise.
5036
c12ff9d8
JM
50372011-04-27 Jason Merrill <jason@redhat.com>
5038
5039 * c-common.c (make_tree_vector_from_list): New.
5040 * c-common.h: Declare it.
5041
304dfbe3
RG
50422011-04-26 Richard Guenther <rguenther@suse.de>
5043
5044 PR preprocessor/48248
5045 * c-ppoutput.c (maybe_print_line): Always optimize newlines
5046 for output size with -P.
5047
3c0d13bf
PC
50482011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
5049
5050 * c-common.c (struct c_common_resword): Add __underlying_type.
5051 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
5052
04695783
JM
50532011-04-20 Jim Meyering <meyering@redhat.com>
5054
5055 * c-format.c (init_dollar_format_checking): Remove useless
5056 if-before-free.
5057
0dc33c3c
NP
50582011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
5059
5060 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 5061 (objc_detect_field_duplicates): New.
0dc33c3c 5062 * stub-objc.c: Likewise.
3c0d13bf 5063
c59633d9
NP
50642011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5065
5066 * stub-objc.c (objc_declare_protocols): Renamed to
5067 objc_declare_protocol.
5068 * c-objc.h: Likewise.
3c0d13bf 5069
32dabdaf
NP
50702011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5071
5072 * stub-objc.c (objc_declare_class): Updated argument name.
5073
81f653d6
NF
50742011-04-12 Nathan Froyd <froydnj@codesourcery.com>
5075
5076 * c-common.h (c_common_init_ts): Declare.
5077 * c-common.c (c_common_init_ts): Define.
5078
eb345401
NP
50792011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5080
5081 * c-objc.h (objc_build_message_expr): Updated prototype.
5082 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 5083
a358e188
MJ
50842011-04-12 Martin Jambor <mjambor@suse.cz>
5085
5086 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
5087 of cgraph_node.
5088
e6313a78
RG
50892011-04-11 Richard Guenther <rguenther@suse.de>
5090
5091 * c-common.c (complete_array_type): Build a range type of
5092 proper type.
5093
dcf0c47e
NF
50942011-04-08 Nathan Froyd <froydnj@codesourcery.com>
5095
5096 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
5097 (handle_type_generic_attribute): Likewise.
5098
1ee44b26
JM
50992011-04-07 Jason Merrill <jason@redhat.com>
5100
5101 PR c++/48450
5102 * c-common.c (c_common_truthvalue_conversion): Don't ignore
5103 conversion from C++0x scoped enum.
5104
acce4e77
JM
51052011-04-06 Joseph Myers <joseph@codesourcery.com>
5106
5107 * c-target-def.h: New file.
5108 * c-target.def: New file.
5109 * c-target.h: New file.
5110 * c-common.c (targetcm): Don't define here.
5111 * c-common.h (default_handle_c_option): Declare.
5112 * c-format.c: Include c-target.h instead of target.h.
5113 * c-opts.c: Include c-target.h instead of target.h. Explicitly
5114 include tm.h.
5115 (default_handle_c_option): Move from targhooks.c.
5116
e2eefb55
JJ
51172011-03-29 Jakub Jelinek <jakub@redhat.com>
5118
5119 PR preprocessor/48248
5120 * c-ppoutput.c (print): Add src_file field.
5121 (init_pp_output): Initialize it.
5122 (maybe_print_line): Don't optimize by adding up to 8 newlines
5123 if map->to_file and print.src_file are different file.
5124 (print_line): Update print.src_file.
5125
ba78087b
KT
51262011-03-25 Kai Tietz <ktietz@redhat.com>
5127
5128 * c-ada-spec.c (compare_comment): Use filename_cmp
5129 instead of strcmp for filename.
5130
0edf1bb2
JL
51312011-03-25 Jeff Law <law@redhat.com>
5132
adfac8df 5133 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 5134
c7dc8804
JM
51352011-03-25 Jason Merrill <jason@redhat.com>
5136
5137 * c.opt: Add -std=c++03.
5138
d1d879b1
EB
51392011-03-22 Eric Botcazou <ebotcazou@adacore.com>
5140
5141 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
5142
62d784f7
KT
51432011-03-17 Kai Tietz
5144
5145 PR target/12171
5050afdf
KT
5146 * c-pretty-print.c (pp_c_specifier_qualifier_list):
5147 Display allowed attributes for function pointer types.
5148 (pp_c_attributes_display): New function to display
5149 attributes having affects_type_identity flag set to true.
5150 * c-pretty-print.h (pp_c_attributes_display): New prototype.
5151
62d784f7
KT
5152 * c-common.c (c_common_attribute_table):
5153 Add new element.
5154 (c_common_format_attribute_table): Likewise.
5155
82d37118
JM
51562011-03-18 Jason Merrill <jason@redhat.com>
5157
49a000c3
JM
5158 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
5159 * c-common.h: Don't declare it here.
5160 * c-common.c: Or define it here.
5161 * c-opts.c (c_common_handle_option): Or set it here.
5162
82d37118
JM
5163 PR c++/35315
5164 * c-common.c (handle_transparent_union_attribute): Don't
5165 make a duplicate type in C++.
5166
17bc631c
JM
51672011-03-15 Jason Merrill <jason@redhat.com>
5168
5169 * c-common.c (max_constexpr_depth): New.
5170 * c-common.h: Declare it.
5171 * c-opts.c (c_common_handle_option): Set it.
5172 * c.opt (fconstexpr-depth): New option.
5173
1b9b91a6
JM
51742011-03-11 Jason Merrill <jason@redhat.com>
5175
f231b5ff
JM
5176 * c-common.c (attribute_takes_identifier_p): Add missing const.
5177
1b9b91a6
JM
5178 PR c++/46803
5179 * c-common.c (attribute_takes_identifier_p): Assume that an
5180 unknown attribute takes an identifier.
5181
a19e4d44
NF
51822011-03-07 Nathan Froyd <froydnj@codesourcery.com>
5183
5184 PR c/47786
5185 * c-common.c (c_type_hash): Call list_length instead of iterating
5186 through DECL_CHAIN. Rename 'i' to 'n_elements'.
5187
982d62f6
JJ
51882011-02-19 Jakub Jelinek <jakub@redhat.com>
5189
5190 PR c/47809
5191 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
5192
0a256240
NP
51932011-02-17 Iain Sandoe <iains@gcc.gnu.org>
5194
5195 * c.opt (fobjc-abi-version=) New.
5196 (fobjc-nilcheck): New.
5197
ba9e6dd5
NF
51982011-02-03 Nathan Froyd <froydnj@codesourcery.com>
5199
5200 PR c++/46890
5201 * c-common.h (keyword_is_decl_specifier): Declare.
5202 * c-common.c (keyword_is_decl_specifier): Define.
5203 (keyword_is_function_specifier): New function.
5204
7273813a
JJ
52052011-01-26 Jakub Jelinek <jakub@redhat.com>
5206
5207 PR c/47473
5208 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
5209 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
5210 REAL_TYPE.
5211
908ef79b
AC
52122011-01-26 Arnaud Charlet <charlet@adacore.com>
5213
5214 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
5215
237e9384
JJ
52162011-01-26 Jakub Jelinek <jakub@redhat.com>
5217
5218 PR pch/47430
5219 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
5220 after init_c_lex if pch_file is set.
5221
47ea1edf
DK
52222011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
5223
d4dba752 5224 PR c++/43601
47ea1edf
DK
5225 * c.opt (-fkeep-inline-dllexport): New switch.
5226
2aa9c6ae
RG
52272011-01-12 Richard Guenther <rguenther@suse.de>
5228
5229 PR middle-end/32511
5230 * c-common.c (handle_weak_attribute): Warn instead of error
5231 on declaring an inline function weak.
5232
7bd11157
TT
52332011-01-05 Tom Tromey <tromey@redhat.com>
5234
5235 * c-common.h (lvalue_error): Update.
5236 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
5237 not error.
5238
0e66e494 52392010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 5240
b4f588c4
NP
5241 PR objc/47075
5242 * c-objc.h (objc_finish_message_expr): Added argument to
5243 prototype.
5244
f4da8dce
NF
52452010-12-22 Nathan Froyd <froydnj@codesourcery.com>
5246
5247 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
5248 Use prototype_p.
5249
46270f14
NP
52502010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
5251
5252 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 5253 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 5254
4816c593
NF
52552010-12-10 Nathan Froyd <froydnj@codesourcery.com>
5256
5257 * c-common.h (readonly_error): Declare.
5258 * c-common.c (readonly_error): Define.
5259
7a6daeb0
NF
52602010-12-09 Nathan Froyd <froydnj@codesourcery.com>
5261
5262 * c-common.h (invalid_indirection_error): Declare.
5263 * c-common.c (invalid_indirection_error): Define.
5264
892f6119
RG
52652010-12-03 Richard Guenther <rguenther@suse.de>
5266
5267 PR c/46745
5268 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
5269 (pp_c_unary_expression): Likewise.
5270 (pp_c_expression): Likewise.
5271
6c39e757
NP
52722010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
5273
5274 * c-common.h (objc_finish_function): New.
5275 (objc_non_volatilized_type): Removed.
5276 (objc_type_quals_match): Removed.
5277 * stub-objc.c (objc_finish_function): New.
5278 (objc_non_volatilized_type): Removed.
5279 (objc_type_quals_match): Removed.
9faeb493 5280
7c475d11
JM
52812010-11-30 Joseph Myers <joseph@codesourcery.com>
5282
5283 * c-common.h (parse_optimize_options): Declare.
5284 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
5285 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
5286
71f3e391
JM
52872010-11-29 Joseph Myers <joseph@codesourcery.com>
5288
5289 * c-opts.c (check_deps_environment_vars): Use getenv instead of
5290 GET_ENVIRONMENT.
5291 * c-pch.c (O_BINARY): Don't define here.
5292 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
5293
d5fabb58
JM
52942010-11-25 Joseph Myers <joseph@codesourcery.com>
5295
5296 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
5297 targetm.except_unwind_info.
5298
299404a1
JM
52992010-11-23 Joseph Myers <joseph@codesourcery.com>
5300
5301 * c-opts.c (c_common_handle_option): Pass location to
5302 set_struct_debug_option.
5303
c98cd5bf
JM
53042010-11-23 Joseph Myers <joseph@codesourcery.com>
5305
5306 * c-common.c (visibility_options): Move from ../opts.c.
5307 * c-common.h (struct visibility_flags, visibility_options):
5308 Declare here.
5309 * c-opts.c (finish_options): Rename to c_finish_options.
5310 (c_common_init): Update call to finish_options.
5311
a9546771
NP
53122010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
5313
5314 PR objc/34033
5315 * c-lex.c (lex_string): Check that each string in an Objective-C
5316 string concat sequence starts with either one or zero '@', and
5317 that there are no spurious '@' signs at the end.
5318
24a57808
JM
53192010-11-20 Joseph Myers <joseph@codesourcery.com>
5320
5321 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
5322 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
5323 HANDLE_PRAGMA_VISIBILITY.
5324 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
5325 HANDLE_PRAGMA_VISIBILITY): Don't define.
5326 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
5327
a9aa2c3a
NF
53282010-11-20 Nathan Froyd <froydnj@codesourcery.com>
5329
5330 PR c++/16189
5331 PR c++/36888
5332 PR c++/45331
5333 * c-common.h (keyword_begins_type_specifier): Declare.
5334 (keyword_is_storage_class_specifier): Declare.
5335 (keyword_is_type_qualifier): Declare.
5336 * c-common.c (keyword_begins_type_specifier): New function.
5337 (keyword_is_storage_class_specifier): New function.
5338 (keyword_is_type_qualifier): Declare.
5339
5386338c
JM
53402010-11-19 Joseph Myers <joseph@codesourcery.com>
5341
5342 PR c/46547
5343 * c-common.c (in_late_binary_op): Define.
5344 (c_common_truthvalue_conversion): Check in_late_binary_op before
5345 calling c_save_expr.
5346 * c-common.h (in_late_binary_op): Declare.
5347
69ccdddb
JM
53482010-11-19 Joseph Myers <joseph@codesourcery.com>
5349
5350 * c-opts.c (c_common_handle_option): Update calls to
5351 set_struct_debug_option.
5352
6b192a09
NP
53532010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
5354
5355 * c-common.h (objc_declare_protocols): Added additional argument.
5356 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 5357
fb52b50a
NF
53582010-11-18 Nathan Froyd <froydnj@codesourcery.com>
5359
5360 PR c/33193
5361 * c-common.h (build_real_imag_expr): Declare.
5362 * c-semantics.c (build_real_imag_expr): Define.
5363
b37421c6
JM
53642010-11-17 Joseph Myers <joseph@codesourcery.com>
5365
5366 * c-opts.c (c_common_parse_file): Take no arguments.
5367 * c-common.h (c_common_parse_file): Update prototype.
5368
07078664
JJ
53692010-11-16 Jakub Jelinek <jakub@redhat.com>
5370
5371 PR c++/46401
5372 * c-common.c (warning_candidate_p): Don't track non-const calls
5373 or STRING_CSTs.
5374
c6a13190
ILT
53752010-11-15 Ian Lance Taylor <iant@google.com>
5376
5377 * c-lex.c (init_c_lex): Set macro debug callbacks if
5378 flag_dump_go_spec is set.
5379
925e8657
NP
53802010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
5381
5382 * c-common.h (objc_build_incr_expr_for_property_ref): New.
5383 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
5384
bb0a9581
NF
53852010-11-15 Nathan Froyd <froydnj@codesourcery.com>
5386
5387 PR preprocessor/45038
5388 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
5389 dialects.
5390
c5fa0890
JM
53912010-11-12 Joseph Myers <joseph@codesourcery.com>
5392
5393 * c-common.h (c_family_lang_mask): Declare.
5394 * c-opts.c (c_family_lang_mask): Make extern.
5395 * c-pragma.c (handle_pragma_diagnostic): Use
5396 control_warning_option.
5397
a4d8c676
JM
53982010-11-12 Joseph Myers <joseph@codesourcery.com>
5399
5400 * c-common.c (parse_optimize_options): Update call to
5401 decode_options.
5402 * c-common.h (c_common_handle_option): Update prototype.
5403 * c-opts.c (c_common_handle_option): Take location_t parameter and
5404 pass it to other functions.
5405
f954bd2c
JM
54062010-11-11 Joseph Myers <joseph@codesourcery.com>
5407
5408 * c-opts.c (warning_as_error_callback): Remove.
5409 (c_common_initialize_diagnostics): Don't call
5410 register_warning_as_error_callback.
5411 (c_common_handle_option): Handle -Werror=normalized= here.
5412
d8a07487
JM
54132010-11-10 Joseph Myers <joseph@codesourcery.com>
5414
5415 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
5416 in diagnostic.
5417 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
5418 letter.
5419 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
5420 Remove trailing '.' from diagnostics.
5421 * c.opt (Wwrite-strings_: Avoid '`' in help text.
5422
d5478783
JM
54232010-11-10 Joseph Myers <joseph@codesourcery.com>
5424
5425 * c-common.c (parse_optimize_options): Pass global_dc to
5426 decode_options.
5427 * c-opts.c (c_common_handle_option): Pass &global_options to
5428 set_Wstrict_aliasing.
5429 * c.opt (v): Don't mark Common or document here.
5430
91ebb981
IS
54312010-11-06 Iain Sandoe <iains@gcc.gnu.org>
5432
5433 PR target/44981
5434 * c-format.c (format_type): New type gcc_objc_string_format_type.
5435 (valid_stringptr_type_p): New.
5436 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 5437 (check_format_string): Pass expected type, use
91ebb981
IS
5438 valid_stringptr_type_p (), check that the format string types are
5439 consistent with the format specification.
5440 (decode_format_attr): Warn if NSString is used outside objective-c.
5441 (format_types_orig): Add NSString.
5442 (format_name): New.
5443 (format_flags): New.
5444 (check_format_arg): Handle format strings requiring an external parser.
5445 first_target_format_type: New variable.
5446 (handle_format_attribute): Set up first_target_format_type, pass the
5447 expected format arg string type to check_format_string().
5448 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
5449 * stub-objc.c (objc_string_ref_type_p): New.
5450 (objc_check_format_arg): New.
5451
bede2adc
NP
54522010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
5453
9faeb493 5454 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
5455 * c-common.h (objc_build_class_component_ref): New.
5456 * stub-objc.c (objc_build_class_component_ref): New.
5457
9a179d01
NP
54582010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
5459
5460 * c.opt (Wproperty-assign-default): New option.
5461
22d8d616
NP
54622010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
5463
5464 Implemented -fobjc-std=objc1 flag.
5465 * c.opt (fobjc-std=objc1): New option.
5466
2debdb4f
NP
54672010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
5468
5469 Implemented format and noreturn attributes for Objective-C methods.
5470 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
5471 attribute for Objective-C methods.
5472
ec52b111
JM
54732010-10-31 Jason Merrill <jason@redhat.com>
5474
5475 * c-common.c (conversion_warning, warn_for_collisions_1): Use
5476 EXPR_LOC_OR_HERE.
5477
46a88c12
NP
54782010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
5479
5480 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
5481 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
5482 (objc_add_property_declaration): Removed arguments for copies and
5483 ivar.
5484 (objc_build_getter_call): Renamed to
5485 objc_maybe_build_component_ref.
5486 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
5487 (objc_is_property_ref): New.
5488 * c-common.c (c_common_reswords): Removed copies and ivar.
5489 * stub-objc.c (objc_add_property_declaration): Removed arguments
5490 for copies and ivar.
5491 (objc_build_getter_call): Renamed to
5492 objc_maybe_build_component_ref.
5493 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
5494 (objc_is_property_ref): New.
9faeb493 5495
1e4bf85b
AC
54962010-10-29 Arnaud Charlet <charlet@adacore.com>
5497 Matthew Gingell <gingell@adacore.com>
5498
5499 * c-ada-spec.c (separate_class_package): New function.
5500 (pp_ada_tree_identifier): Prefix references to C++ classes with the
5501 name of their enclosing package.
5502 (print_ada_declaration): Use separate_class_package.
5503
81f0bab2
JM
55042010-10-27 Jason Merrill <jason@redhat.com>
5505
2b08f2c5
JM
5506 * c-common.c (c_common_reswords): Add __is_literal_type.
5507 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
5508
81f0bab2
JM
5509 * c-common.c (check_case_value): Remove special C++ code.
5510
200290f2
NP
55112010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
5512
5513 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
5514 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
5515 and RID_LAST_PATTR.
5516 (objc_add_property_declaration): Added additional arguments.
5517 (objc_property_attribute_kind): Removed.
5518 (objc_set_property_attr): Removed.
5519 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
5520 copy and nonatomic.
5521 * stub-objc.c (objc_add_property_declaration): Added additional
5522 arguments.
5523 (objc_set_property_attr): Removed.
9faeb493 5524
f614132b
NP
55252010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
5526
5527 * c-common.h (objc_add_property_variable): Renamed to
5528 objc_add_property_declaration. Added location argument.
5529 * stub-objc.c (objc_add_property_variable): Same change.
b1726d6c 5530
b8a18805
NP
55312010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
5532
5533 * c-common.h (objc_maybe_printable_name): New.
5534 * stub-objc.c (objc_maybe_printable_name): New.
5535
30cd1c5d
AS
55362010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
5537 Andrew Pinski <pinskia@gmail.com>
5538
5539 * c-common.h (c_common_mark_addressable_vec): Declare.
5540 * c-common.c (c_common_mark_addressable_vec): New function.
5541
249a82c4
NP
55422010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
5543
5544 * c-common.h (objc_set_method_type): Removed.
5545 (objc_add_method_declaration): Added boolean argument.
5546 (objc_start_method_definition): Same change.
5547 (objc_build_method_signature): Same change.
5548 * stub-objc.c (objc_set_method_type): Removed.
5549 (objc_add_method_declaration): Added boolean argument.
5550 (objc_start_method_definition): Same change.
5551 (objc_build_method_signature): Same change.
5552
977e30bc
NP
55532010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
5554
5555 * c-common.h (finish_file): Removed.
5556 (objc_write_global_declarations): New.
5557 * c-opts.c (c_common_parse_file): Do not call finish_file.
5558 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 5559
da57d1b9
NP
55602010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
5561
5562 Implemented parsing @synthesize and @dynamic for
5563 Objective-C/Objective-C++.
5564 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
5565 (objc_add_synthesize_declaration): New.
5566 (objc_add_dynamic_declaration): New.
5567 * c-common.c (c_common_reswords): Add synthesize and dynamic.
5568 * stub-objc.c (objc_add_synthesize_declaration): New.
5569 (objc_add_dynamic_declaration): New.
9faeb493 5570
0069111f
MM
55712010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
5572
5573 PR target/46041
5574 * c-cppbuiltin.c (mode_has_fma): Move function here from
5575 builtins.c. Don't use the fma optab, instead just use the
5576 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
5577 using -save-temps.
5578
e426b47b
NP
55792010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
5580
5581 Merge from 'apple/trunk' branch on FSF servers.
0069111f 5582
e426b47b
NP
5583 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
5584
9faeb493 5585 Radar 4330422
e426b47b
NP
5586 * c-common.h (objc_non_volatilized_type): New declaration
5587 * stub-objc.c (objc_non_volatilized_type): New stub.
5588
90fbfdc3
NP
55892010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
5590
e426b47b 5591 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
5592
5593 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
5594
9faeb493 5595 Radar 4133425
90fbfdc3 5596 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 5597 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 5598
c37d8c30
IS
55992010-10-17 Iain Sandoe <iains@gcc.gnu.org>
5600
5601 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
5602 * c-common.h (enum rid): Add RID_AT_PACKAGE.
5603 (objc_ivar_visibility_kind): New enum.
5604 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 5605 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
5606 visibility enum.
5607
1b1562a5
MM
56082010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5609
5610 * c-cppbuiltin.c (builtin_define_float_constants): Emit
5611 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
5612 has the appropriate fma builtins.
5613 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
5614
668ea4b1
IS
56152010-10-14 Iain Sandoe <iains@gcc.gnu.org>
5616
1b1562a5 5617 merge from FSF apple 'trunk' branch.
668ea4b1 5618 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 5619
668ea4b1
IS
5620 Radars 4436866, 4505126, 4506903, 4517826
5621 * c-common.c (c_common_resword): Define @property and its attributes.
5622 * c-common.h: Define property attribute enum entries.
5623 (OBJC_IS_PATTR_KEYWORD): New.
5624 (objc_property_attribute_kind): New enum.
5625 Declare objc_set_property_attr (), objc_add_property_variable (),
5626 objc_build_getter_call () and objc_build_setter_call ().
5627 * stub-objc.c (objc_set_property_attr): New stub.
5628 (objc_add_property_variable): Likewise.
5629 (objc_build_getter_call): Likewise.
5630 (objc_build_setter_call) Likewise.
1b1562a5 5631
a1178b30
IS
56322010-10-13 Iain Sandoe <iains@gcc.gnu.org>
5633
1b1562a5 5634 merge from FSF apple 'trunk' branch.
a1178b30
IS
5635 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
5636
5637 Radar 3803157 (method attributes)
5638 * c-common.c (handle_deprecated_attribute): Recognize
5639 objc methods as valid declarations.
5640 * c-common.h: Declare objc_method_decl ().
1b1562a5 5641 * stub-objc.c (objc_method_decl): New stub.
a1178b30 5642
a75bfaa6
JM
56432010-10-08 Joseph Myers <joseph@codesourcery.com>
5644
5645 * c-common.c (parse_optimize_options): Call
5646 decode_cmdline_options_to_array_default_mask before
5647 decode_options. Update arguments to decode_options.
5648 * c-common.h (c_common_init_options_struct): Declare.
5649 * c-opts.c (c_common_init_options_struct): New. Split out from
5650 c_common_init_options.
5651
f05b9d93
NP
56522010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
5653
5654 Implemented fast enumeration for Objective-C.
5655 * c-common.h (objc_finish_foreach_loop): New.
5656 * stub-objc.c (objc_finish_foreach_loop): New.
5657
1ebe4b4f
JM
56582010-10-05 Joseph Myers <joseph@codesourcery.com>
5659
5660 * c-common.h (struct diagnostic_context): Don't declare here.
5661 (c_common_initialize_diagnostics): Declare using
5662 diagnostic_context typedef.
5663 * c-opts.c (c_common_handle_option): Pass global_dc to
5664 handle_generated_option.
5665
d4d24ba4
JM
56662010-10-04 Joseph Myers <joseph@codesourcery.com>
5667
5668 * c-opts.c (c_common_handle_option): Pass &global_options_set to
5669 handle_generated_option.
5670
478a1c5b
ILT
56712010-10-03 Ian Lance Taylor <iant@google.com>
5672
5673 * c.opt (-fplan9-extensions): New option.
5674
82a1c2fe
FXC
56752010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5676
5677 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
5678 Remove.
5679 (c_cpp_builtins): Call functions from cppbuiltin.c instead
5680 of duplicating code.
5681
92902b1b
IS
56822010-09-30 Iain Sandoe <iains@gcc.gnu.org>
5683
5684 * c-common.c: Add two new entries for @optional
5685 and @required keywords.
5686
5687 merge from FSF 'apple/trunk' branch.
5688 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
5689
5690 Radar 4386773
5691 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
5692 objective-c keywords.
5693 (objc_set_method_opt): New declaration.
5694 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 5695
46625112
JM
56962010-09-30 Joseph Myers <joseph@codesourcery.com>
5697
5698 * c-common.c (handle_optimize_attribute): Pass &global_options to
5699 cl_optimization_save and cl_optimization_restore.
5700 * c-opts.c (c_common_handle_option): Pass &global_options to
5701 handle_generated_option.
5702 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
5703 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
5704 &global_options to cl_optimization_restore.
5705
49b91f05
NP
57062010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
5707
5708 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
5709 Objective-C/Objective-C++ keywords.
5710
13ed556f 57112010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 5712
9faeb493
UB
5713 Merge from 'apple/trunk' branch on FSF servers.
5714
a6341d57
NP
5715 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
5716
5717 Radar 4281748
5718 * c-common.h (objc_check_global_decl): New declaration.
5719 * stub-objc.c (objc_check_global_decl): New stub.
5720
f0036cca
JM
57212010-09-29 Joseph Myers <joseph@codesourcery.com>
5722
5723 * c.opt: Don't use VarExists.
5724
e3339d0f
JM
57252010-09-29 Joseph Myers <joseph@codesourcery.com>
5726
5727 * c-common.c (c_cpp_error): Update names of diagnostic_context
5728 members.
5729 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
5730 cl_optimization members.
5731 * c-opts.c (warning_as_error_callback, c_common_handle_option,
5732 sanitize_cpp_opts, finish_options): Update names of cpp_options
5733 members.
5734
1973201f
NP
57352010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
5736
5737 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
5738 (objc_is_reserved_word): Removed.
5739 * c-common.c: Updated comments.
5740 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
5741 objc_is_reserved_word.
5742 * stub-objc.c (objc_is_reserved_word): Removed.
5743
f7e71da5
IS
57442010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5745
9faeb493 5746 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
5747 include attributes.
5748 (objc_start_method_definition): Likewise.
5749 (objc_build_keyword_decl): Likewise.
5750 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
5751 (objc_start_method_definition): Likewise.
5752 (objc_build_keyword_decl): Likewise.
5753
c165dca7
IS
57542010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5755
5756 * c-common.h (objc_start_class_interface): Adjust prototype.
5757 (objc_start_category_interface): Likewise.
5758 (objc_start_protocol): Likewise.
5759 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
5760 (objc_start_class_interface): Likewise.
5761 (objc_start_category_interface): Likewise.
5762
7458026b
ILT
57632010-09-27 Ian Lance Taylor <iant@google.com>
5764
5765 * c-common.c (c_common_attribute_table): Add no_split_stack.
5766 (handle_no_split_stack_attribute): New static function.
5767
b581b85b
NP
57682010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
5769
9faeb493 5770 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
5771
5772 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
5773
9faeb493 5774 Radar 4229905
b581b85b
NP
5775 * c-common.h (objc_have_common_type): New declaration.
5776 * stub-objc.c (objc_have_common_type): New stub.
5777
5778 2005-06-22 Ziemowit Laski <zlaski@apple.com>
5779
5780 Radar 4154928
5781 * c-common.h (objc_common_type): New prototype.
9faeb493 5782 * stub-objc.c (objc_common_type): New stub.
b581b85b 5783
46a4da10
JH
57842010-09-24 Jan Hubicka <jh@suse.cz>
5785
5786 * c-common.c (handle_leaf_attribute): New function.
5787 (struct attribute_spec c_common_att): Add leaf.
5788
e200444e
JM
57892010-09-22 Joseph Myers <joseph@codesourcery.com>
5790
5791 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
5792 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
5793 -dump, -dump=, -imacros, -imacros=, -include, -include=,
5794 -include-barrier, -include-directory, -include-directory=,
5795 -include-directory-after, -include-directory-after=,
5796 -include-prefix, -include-prefix=, -include-with-prefix,
5797 -include-with-prefix=, -include-with-prefix-after,
5798 -include-with-prefix-after=, -include-with-prefix-before,
5799 -include-with-prefix-before=, -no-integrated-cpp,
5800 -no-line-commands, -no-standard-includes, -no-warnings, -output,
5801 -output=, -pedantic, -pedantic-errors, -preprocess,
5802 -print-missing-file-dependencies, -trace-includes, -traditional,
5803 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
5804 -user-dependencies, -verbose, -write-dependencies,
5805 -write-user-dependencies, no-integrated-cpp, traditional): New.
5806
29a80ea6
NP
58072010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5808
5809 PR objc/23710
ac1fc2fc
NP
5810 * c-common.h (objc_start_method_definition): Return bool instead
5811 of void.
5812 * stub-objc.c (objc_start_method_definition): Return bool instead
5813 of void.
5814
58152010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5816
5817 PR objc/25965
5818 * c-common.h (objc_get_interface_ivars): New declaration.
5819 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 5820
de621752
ILT
58212010-09-15 Ian Lance Taylor <iant@google.com>
5822
5823 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 5824 messages. Remove period at end of warning message.
de621752 5825
ba885ec5
NS
58262010-09-09 Nathan Sidwell <nathan@codesourcery.com>
5827
5828 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
5829 (handle_alias_attribute): ... here.
5830 (handle_ifunc_attribute): New.
5831
c5ee1358
MM
58322010-09-06 Mark Mitchell <mark@codesourcery.com>
5833
5834 * c-common.h (do_warn_double_promotion): Declare.
5835 * c-common.c (do_warn_double_promotion): Define.
5836
0a0b3574
MM
58372010-09-05 Mark Mitchell <mark@codesourcery.com>
5838
5839 * c.opt (Wdouble-promotion): New.
5840
d1779886
JM
58412010-09-02 Joseph Myers <joseph@codesourcery.com>
5842
5843 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
5844 fvtable-thunks, fxref): Mark no longer supported in help text.
5845
2d2bd949
JM
58462010-09-02 Joseph Myers <joseph@codesourcery.com>
5847
5848 * c.opt (Wimport, fall-virtual, falt-external-templates,
5849 fdefault-inline, fenum-int-equiv, fexternal-templates,
5850 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
5851 fname-mangling-version-, fnew-abi, fnonnull-objects,
5852 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
5853 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
5854 applicable.
5855 (fhandle-exceptions): Mark with Alias and Warn.
5856 * c-opts.c (c_common_handle_option): Don't handle options marked
5857 as ignored.
5858
5de8299c
JM
58592010-09-02 Joseph Myers <joseph@codesourcery.com>
5860
5861 * c.opt (Wcomments, Werror-implicit-function-declaration,
5862 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
5863 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
5864 aliases.
5865 * c-common.c (option_codes): Use OPT_Wcomment instead of
5866 OPT_Wcomments.
5867 * c-opts.c (warning_as_error_callback, c_common_handle_option):
5868 Don't handle options marked as aliases.
5869
0ceb0201
RG
58702010-08-25 Richard Guenther <rguenther@suse.de>
5871
5872 * c-common.c (c_common_get_alias_set): Remove special
5873 handling for pointers.
5874
ac47786e
NF
58752010-08-20 Nathan Froyd <froydnj@codesourcery.com>
5876
5877 * c-common.c: Use FOR_EACH_VEC_ELT.
5878 * c-gimplify.c: Likewise.
5879 * c-pragma.c: Likewise.
5880
c878765b
JM
58812010-08-16 Joseph Myers <joseph@codesourcery.com>
5882
5883 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
5884 RejectDriver.
5885 (MMDX): Change back to MMD. Mark NoDriverArg instead of
5886 RejectDriver.
5887 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
5888 instead of OPT_MDX and OPT_MMDX.
5889
603349bf
JM
58902010-08-16 Joseph Myers <joseph@codesourcery.com>
5891
5892 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
5893
644fa7ac
JM
58942010-08-12 Joseph Myers <joseph@codesourcery.com>
5895
5896 * c.opt (MD, MMD): Change to MDX and MMDX.
5897 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
5898
481e1176
JM
58992010-08-11 Joseph Myers <joseph@codesourcery.com>
5900
5901 * c-opts.c (c_common_handle_option): Call handle_generated_option
5902 instead of handle_option.
5903
ac8dc9f7
NF
59042010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5905
5906 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
5907 (maybe_apply_renaming_pragma): Delete unneeded declarations.
5908
4f8c876d
NF
59092010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5910
5911 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
5912 (pending_redefine_extname): Change type to a VEC.
5913 (add_to_renaming_pragma_list): Update for new type of
5914 pending_redefine_extname.
ac8dc9f7 5915 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 5916
3b0c690e
AC
59172010-08-04 Arnaud Charlet <charlet@adacore.com>
5918
5919 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
5920 visited.
5921 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
5922 decide whether a type has already been declared/seen.
5923 Do not go to the original type.
5924 (dump_nested_types): New parameter forward.
5925 Generate forward declaration if needed and mark type as visited.
5926 (print_ada_declaration): Call dump_nested_types if not already done.
5927 Mark types as visited.
5928
1890bccc
JM
59292010-08-03 Joseph Myers <joseph@codesourcery.com>
5930
5931 * c.opt (-print-pch-checksum): Remove option.
5932 * c-opts.c (c_common_handle_option): Don't handle
5933 OPT_print_pch_checksum.
5934
5f20c657
JM
59352010-07-27 Joseph Myers <joseph@codesourcery.com>
5936
5937 * c-common.h (c_common_handle_option): Update prototype and return
5938 value type.
5939 * c-opts.c (c_common_handle_option): Update prototype and return
5940 value type. Update calls to handle_option and
5941 enable_warning_as_error.
5942
f551f80c
JJ
59432010-07-27 Jakub Jelinek <jakub@redhat.com>
5944
5945 PR c/45079
5946 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
5947
61ff2bdc
JM
59482010-07-27 Joseph Myers <joseph@codesourcery.com>
5949
5950 * c-common.h (c_common_missing_argument): Remove.
5951 * c-opts.c (c_common_missing_argument): Remove.
5952 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
5953 idirafter, imacros, include, isysroot, isystem, iquote): Add
5954 MissingArgError.
5955 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
5956
7a9bf9a4
JM
59572010-07-27 Joseph Myers <joseph@codesourcery.com>
5958
5959 * c-common.h (c_common_option_lang_mask,
5960 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
5961 New.
5962 (c_common_init_options): Update prototype.
5963 * c-opts.c (c_common_option_lang_mask): New.
5964 (c_common_initialize_diagnostics): Split out of
5965 c_common_init_options.
5966 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
5967 New.
5968 (c_common_init_options): Update prototype. Use decoded options in
5969 search for -lang-asm.
5970
910ad8de
NF
59712010-07-15 Nathan Froyd <froydnj@codesourcery.com>
5972
5973 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
5974 * c-format.c: Likewise.
5975
718f9c0f
MLI
59762010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
5977
5978 * c-common.h: Include diagnostic-core.h. Error if already
5979 included.
5980 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
5981
4d451982
MLI
59822010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
5983
adfac8df 5984 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
5985 Do not include expr.h
5986 (vector_mode_valid_p): Move here.
5987
119fe915
SB
59882010-06-21 DJ Delorie <dj@redhat.com>
5989
5990 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
5991 allow these pragmas anywhere.
5992
59932010-06-14 Jakub Jelinek <jakub@redhat.com>
5994
5995 PR bootstrap/44509
5996 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
5997 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
5998 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
5999 ggc_strdup instead of xstrdup.
6000
60012010-06-10 Jakub Jelinek <jakub@redhat.com>
6002
6003 * c-cppbuiltin.c: Include cpp-id-data.h.
6004 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
6005 (lazy_hex_fp_value): New function.
6006 (builtin_define_with_hex_fp_value): Provide definitions lazily.
6007
6662d794
MLI
60082010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
6009
6010 * c-gimplify.c: Do not include tree-flow.h
6011
38f8b050
JR
60122010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
6013
6014 PR other/44034
6015 * c-common.c: Rename targetm member:
6016 targetm.enum_va_list -> targetm.enum_va_list_p
6017
9589f23e
AS
60182010-06-28 Anatoly Sokolov <aesok@post.ru>
6019
6020 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
6021
3b06d379
SB
60222010-06-28 Steven Bosscher <steven@gcc.gnu.org>
6023
6024 * c-cppbuiltin.c: Do not include except.h.
6025
d166d4c3
AK
60262010-06-24 Andi Kleen <ak@linux.intel.com>
6027
9faeb493
UB
6028 * c-common.c (warn_for_omitted_condop): New.
6029 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 6030
70cb8be6
JM
60312010-06-21 Joseph Myers <joseph@codesourcery.com>
6032
6033 * c.opt (lang-objc): Remove.
6034 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
6035
a4c97feb
JR
60362010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
6037
6038 * c-opts.c: Include "tm_p.h".
6039
6e2f1956
JM
60402010-06-20 Joseph Myers <joseph@codesourcery.com>
6041
6042 * c-common.c (parse_optimize_options): Update call to
6043 decode_options.
6044
bc87224e
NF
60452010-06-18 Nathan Froyd <froydnj@codesourcery.com>
6046
6047 * c-common.c (record_types_used_by_current_var_decl): Adjust for
6048 new type of types_used_by_cur_var_decl.
6049
b49cf425
JR
60502010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
6051
6052 PR bootstrap/44512
6053 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
6054 for C++ standard compliance.
6055
59f9c2ed
JM
60562010-06-16 Jason Merrill <jason@redhat.com>
6057
6058 * c.opt: Add -Wnoexcept.
6059
33766b66
RG
60602010-06-16 Richard Guenther <rguenther@suse.de>
6061
6062 PR c/44555
6063 * c-common.c (c_common_truthvalue_conversion): Remove
6064 premature and wrong optimization concering ADDR_EXPRs.
6065
eff7e30c
AC
60662010-06-15 Arnaud Charlet <charlet@adacore.com>
6067
6068 * c-ada-spec.c (dump_sloc): Remove column info.
6069 (is_simple_enum): New function.
6070 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
6071 enum types when relevant.
6072
6312e84d
MLI
60732010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
6074
9faeb493 6075 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
6076 location.
6077
1cb42611
JM
60782010-06-10 Joseph Myers <joseph@codesourcery.com>
6079
6080 * c-opts.c (c_common_handle_option): Don't handle
6081 OPT_fshow_column.
6082
a9429e29
LB
60832010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
6084
6085 * c-pragma.c (push_alignment): Use typed GC allocation.
6086 (handle_pragma_push_options): Likewise.
6087
6088 * c-common.c (parse_optimize_options): Likewise.
6089
6090 * c-common.h (struct sorted_fields_type): Add variable_size GTY
6091 option.
6092
5498f011
JM
60932010-06-07 Joseph Myers <joseph@codesourcery.com>
6094
6095 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
6096 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
6097 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
6098 flag_signed_bitfields, warn_strict_null_sentinel,
6099 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
6100 flag_gen_declaration, flag_no_gnu_keywords,
6101 flag_implement_inlines, flag_implicit_templates,
6102 flag_implicit_inline_templates, flag_optional_diags,
6103 flag_elide_constructors, flag_default_inline, flag_rtti,
6104 flag_conserve_space, flag_access_control, flag_check_new,
6105 flag_new_for_scope, flag_weak, flag_working_directory,
6106 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
6107 flag_enforce_eh_specs, flag_threadsafe_statics,
6108 flag_pretty_templates): Remove.
6109 * c-common.h (flag_preprocess_only, flag_nil_receivers,
6110 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
6111 flag_replace_objc_classes, flag_undef, flag_no_builtin,
6112 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
6113 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
6114 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
6115 flag_no_gnu_keywords, flag_implement_inlines,
6116 flag_implicit_templates, flag_implicit_inline_templates,
6117 flag_optional_diags, flag_elide_constructors, flag_default_inline,
6118 flag_rtti, flag_conserve_space, flag_access_control,
6119 flag_check_new, flag_new_for_scope, flag_weak,
6120 flag_working_directory, flag_use_cxa_atexit,
6121 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
6122 flag_threadsafe_statics, flag_pretty_templates,
6123 warn_strict_null_sentinel): Remove.
6124 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
6125 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
6126 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
6127 fimplicit-inline-templates, fimplicit-templates,
6128 flax-vector-conversions, fms-extensions, fnil-receivers,
6129 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
6130 frtti, fshort-double, fshort-enums, fshort-wchar,
6131 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
6132 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
6133 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
6134 gen-decls, undef): Use Var.
6135 (fdefault-inline, foptional-diags): Document as doing nothing.
6136 * c-opts.c (c_common_handle_option): Remove cases for options now
6137 using Var. Mark ignored options as such.
6138
39dabefd
SB
61392010-06-05 Steven Bosscher <steven@gcc.gnu.org>
6140
9faeb493 6141 * c-common.c: Moved to here from parent directory.
39dabefd
SB
6142 * c-common.def: Likewise.
6143 * c-common.h: Likewise.
6144 * c-cppbuiltin.c: Likewise.
6145 * c-dump.c: Likewise.
6146 * c-format.c: Likewise.
6147 * c-format.h : Likewise.
6148 * c-gimplify.c: Likewise.
6149 * c-lex.c: Likewise.
6150 * c-omp.c: Likewise.
6151 * c.opt: Likewise.
6152 * c-opts.c: Likewise.
6153 * c-pch.c: Likewise.
6154 * c-ppoutput.c: Likewise.
6155 * c-pragma.c: Likewise.
6156 * c-pragma.h: Likewise.
6157 * c-pretty-print.c: Likewise.
6158 * c-pretty-print.h: Likewise.
6159 * c-semantics.c: Likewise.
6160 * stub-objc.c: Likewise.
6161
6162 * c-common.c: Include gt-c-family-c-common.h.
6163 * c-pragma.c: Include gt-c-family-c-pragma.h.
6164\f
818ab71a 6165Copyright (C) 2010-2016 Free Software Foundation, Inc.
39dabefd
SB
6166
6167Copying and distribution of this file, with or without modification,
6168are permitted in any medium without royalty provided the copyright
6169notice and this notice are preserved.