]> gcc.gnu.org Git - gcc.git/blame - gcc/c-family/ChangeLog
re PR fortran/64324 (Deferred character specific functions not permitted in generic...
[gcc.git] / gcc / c-family / ChangeLog
CommitLineData
b6e3db06
RB
12015-01-14 Ryan Burn <contact@rnburn.com>
2
3 PR c++/69048
4 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
c47eaca6 5 to add missing cleanup point.
b6e3db06 6
c7df95d8
DM
72016-01-14 David Malcolm <dmalcolm@redhat.com>
8
9 PR c++/68819
10 * c-indentation.c (get_visual_column): Add location_t param.
11 Handle the column number being zero by effectively disabling the
12 warning, with an "inform".
13 (should_warn_for_misleading_indentation): Add location_t argument
14 for all uses of get_visual_column.
15
21efdd80
PP
162016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
17
18 PR c++/69029
19 * c-indentation.c (should_warn_for_misleading_indentation):
20 Don't warn about do-while statements.
21
7a127fa7
MS
222016-01-07 Martin Sebor <msebor@redhat.com>
23
24 PR c/68966
25 * c-common.c (sync_resolve_size): Reject first argument when it's
26 a pointer to _Bool.
27
c589e975
DM
282016-01-05 David Malcolm <dmalcolm@redhat.com>
29
30 PR c/69122
31 * c-indentation.c (get_visual_column): Remove default argument.
32 (should_warn_for_misleading_indentation): For the multiline case,
33 update call to get_visual_column for next_stmt_exploc so that it
34 captures the location of the first non-whitespace character in the
35 relevant line. Don't issue warnings if there is non-whitespace
36 before the next statement.
37
818ab71a
JJ
382016-01-04 Jakub Jelinek <jakub@redhat.com>
39
40 Update copyright years.
41
745e411d
DM
422015-12-21 David Malcolm <dmalcolm@redhat.com>
43
44 * c-common.c (binary_op_error): Convert first param from
45 location_t to rich_location * and use it when emitting an error.
46 * c-common.h (binary_op_error): Convert first param from
47 location_t to rich_location *.
48
de67c4c3
DM
492015-12-16 David Malcolm <dmalcolm@redhat.com>
50
51 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
52 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
53
4a38b02b
IV
542015-12-15 Ilya Verbin <ilya.verbin@intel.com>
55
56 * c-common.c (c_common_attribute_table): Handle "omp declare target
57 link" attribute.
58
54d62f51
JJ
592015-12-14 Jakub Jelinek <jakub@redhat.com>
60
61 PR c/68833
62 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
63
8d4227c8
TB
642014-12-12 Tobias Burnus <burnus@net-b.de>
65
66 PR fortran/68815
67 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
68 specifiers (%d, %i,%u and %c).
69
f6069ccc
DM
702015-12-10 David Malcolm <dmalcolm@redhat.com>
71
72 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
73
63bbf46d
JJ
742015-12-08 Jakub Jelinek <jakub@redhat.com>
75
76 PR c/48088
77 PR c/68657
78 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
79 * c-pragma.c (handle_pragma_diagnostic): Adjust
80 control_warning_option caller.
81
f79520bb
DM
822015-12-07 David Malcolm <dmalcolm@redhat.com>
83
84 * c-common.c (c_cpp_error): Update for change to
85 rich_location::set_range.
86
b3d5bc62
JJ
872015-12-04 Paolo Bonzini <bonzini@gnu.org>
88
89 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
90 shifting 1 out of the sign bit.
91
922015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
93
94 * c-common.c (c_common_attribute_table[]): Update max arguments
95 count for "simd" attribute.
96 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
97
6eb4a537
JJ
982015-12-03 Jakub Jelinek <jakub@redhat.com>
99
100 PR preprocessor/57580
101 * c-ppoutput.c (print): Change printed field to bool.
102 Move src_file last for smaller padding.
103 (init_pp_output): Set print.printed to false instead of 0.
104 (scan_translation_unit): Fix up formatting. Set print.printed
105 to true after printing something other than newline.
106 (scan_translation_unit_trad): Set print.printed to true instead of 1.
107 (maybe_print_line_1): Set print.printed to false instead of 0.
108 (print_line_1): Likewise.
109 (do_line_change): Set print.printed to true instead of 1.
110 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
111 dump_macro): Set print.printed to false after printing newline.
112
4250754e
JM
1132015-12-02 Jason Merrill <jason@redhat.com>
114
f479b43d
JM
115 * c-common.c (fold_for_warn): New.
116 (warn_logical_operator, warn_tautological_cmp)
117 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
118
4250754e
JM
119 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
120 (c_fully_fold_internal, decl_constant_value_for_optimization):
121 Move to c/c-fold.c.
122 * c-common.h: Don't declare decl_constant_value_for_optimization.
123
e9e32ee6
JM
1242015-12-02 Joseph Myers <joseph@codesourcery.com>
125
126 PR c/68162
127 * c-common.h (c_build_qualified_type): Add extra default
128 arguments.
129
37d5ad46
JB
1302015-12-01 Julian Brown <julian@codesourcery.com>
131 Cesar Philippidis <cesar@codesourcery.com>
132 James Norris <James_Norris@mentor.com>
133
134 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
135 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
136 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
137
f07862c7
EB
1382015-11-30 Eric Botcazou <ebotcazou@adacore.com>
139
140 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
141 (decl_sloc_common): Delete and move bulk of processing to...
142 (decl_sloc): ...here.
143 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
144 (dump_ada_double_name): Remove S parameter and compute the suffix.
145 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
146 element type and deal with an anonymous one.
147 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
148 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
149 and remove reference to QUAL_UNION_TYPE.
150 (dump_nested_types): Make 2 passes on the fields and move bulk to...
151 (dump_nested_type): ...here. New function extracted from above.
152 Generate a full declaration for anonymous element type of arrays.
153 (print_ada_declaration): Really skip anonymous declarations. Remove
154 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
155 Clean up processing of declarations of array types and objects.
156 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
157 Remove obsolete code and tidy up.
158
75c8aac3
JH
1592015-11-29 Jan Hubicka <hubicka@ucw.cz>
160
161 PR c/67581
162 * c-common.c (handle_transparent_union_attribute): Update
163 also type variants.
164
b58d3df2
ML
1652015-11-27 Martin Liska <mliska@suse.cz>
166
167 PR c++/68312
168 * array-notation-common.c (cilkplus_extract_an_triplets):
169 Release vector of vectors.
170 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
171
89a01fcf
EB
1722015-11-26 Eric Botcazou <ebotcazou@adacore.com>
173
174 PR c++/68527
175 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
176 (print_ada_struct_decl): Likewise.
177
cc5c5226
IZ
1782015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
179
180 PR c++/68001
181 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
182 * cilk.c (recognize_spawn): Determine location in a more precise
183 way.
184
269adb9d
JM
1852015-11-19 Jason Merrill <jason@redhat.com>
186
187 * c-common.c (shorten_compare): But look through macros from
188 system headers.
189
d0eccfcd
JM
1902015-11-18 Jason Merrill <jason@redhat.com>
191
192 * c-common.c (shorten_compare): Don't -Wtype-limits if the
193 non-constant operand comes from a macro.
194
3e44547c
JM
1952015-11-17 Jason Merrill <jason@redhat.com>
196
197 PR bootstrap/68346
198 * c-common.c (warn_tautological_cmp): Fold before checking for
199 constants.
200
0f62c7a0
MP
2012015-11-16 Marek Polacek <polacek@redhat.com>
202
203 PR c++/68362
204 * c-common.c (check_case_bounds): Fold low and high cases.
205
a868811e
MP
2062015-11-16 Marek Polacek <polacek@redhat.com>
207
208 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
209 * c-common.c (c_common_get_alias_set): Likewise.
210 (handle_visibility_attribute): Likewise.
211
fff77217
KY
2122015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
213
214 * c-common.c (handle_simd_attribute): New.
215 (struct attribute_spec): Add entry for "simd".
216 (handle_simd_attribute): New.
217
269e63b7
KT
2182015-11-13 Kai Tietz <ktietz70@googlemail.com>
219
220 * c-lex.c (interpret_float): Use fold_convert.
221
ebedc9a3
DM
2222015-11-13 David Malcolm <dmalcolm@redhat.com>
223
224 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
225 and store it on the result.
226 * c-opts.c (c_common_init_options): Set
227 global_dc->colorize_source_p.
228
6e232ba4
JN
2292015-11-12 James Norris <jnorris@codesourcery.com>
230 Joseph Myers <joseph@codesourcery.com>
231
232 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
233 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
234 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
235 PRAGMA_OACC_CLAUSE_LINK.
236
e78bede6
MP
2372015-11-11 Marek Polacek <polacek@redhat.com>
238
239 PR c/68107
240 PR c++/68266
241 * c-common.c (valid_array_size_p): New function.
242 * c-common.h (valid_array_size_p): Declare.
243
4ac93c7c
DH
2442015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
245
246 PR bootstrap/68271
247 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
248
69f293c9
AM
2492015-11-11 Andrew MacLeod <amacleod@redhat.com>
250
251 * array-notation-common.c: Remove unused header files.
252 * c-ada-spec.c: Likewise.
253 * c-cilkplus.c: Likewise.
254 * c-common.c: Likewise.
255 * c-cppbuiltin.c: Likewise.
256 * c-dump.c: Likewise.
257 * c-format.c: Likewise.
258 * c-gimplify.c: Likewise.
259 * c-indentation.c: Likewise.
260 * c-lex.c: Likewise.
261 * c-omp.c: Likewise.
262 * c-opts.c: Likewise.
263 * c-pch.c: Likewise.
264 * c-ppoutput.c: Likewise.
265 * c-pragma.c: Likewise.
266 * c-pretty-print.c: Likewise.
267 * c-semantics.c: Likewise.
268 * c-ubsan.c: Likewise.
269 * cilk.c: Likewise.
270 * stub-objc.c: Likewise.
271
3a40d81d
NS
2722015-11-09 Thomas Schwinge <thomas@codesourcery.com>
273 Cesar Philippidis <cesar@codesourcery.com>
274 James Norris <jnorris@codesourcery.com>
275 Julian Brown <julian@codesourcery.com>
276 Nathan Sidwell <nathan@codesourcery.com>
277
278 * c-pragma.c (oacc_pragmas): Add "routine".
279 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
280
ee45a32d
EB
2812015-11-08 Eric Botcazou <ebotcazou@adacore.com>
282
283 * c-common.c (c_common_attributes): Add scalar_storage_order.
284 (handle_scalar_storage_order_attribute): New function.
285 * c-pragma.c (global_sso): New variable.
286 (maybe_apply_pragma_scalar_storage_order): New function.
287 (handle_pragma_scalar_storage_order): Likewise.
288 (init_pragma): Register scalar_storage_order.
289 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
290 * c.opt (Wscalar-storage-order): New warning.
291 (fsso-struct=): New option.
292
eb11eb15
MS
2932015-11-08 Martin Sebor <msebor@redhat.com>
294
295 * c.opt (Wplacement-new): Add a period to the end of a sentence.
296
0aad0198
RS
2972015-11-07 Richard Sandiford <richard.sandiford@arm.com>
298
299 * c-common.c: Don't undef DEF_BUILTIN.
300
8a645150
DM
3012015-11-06 David Malcolm <dmalcolm@redhat.com>
302
303 * c-common.c (c_cpp_error): Convert parameter from location_t to
304 rich_location *. Eliminate the "column_override" parameter and
305 the call to diagnostic_override_column.
306 Update the "done_lexing" clause to set range 0
307 on the rich_location, rather than overwriting a location_t.
308 * c-common.h (c_cpp_error): Convert parameter from location_t to
309 rich_location *. Eliminate the "column_override" parameter.
310
7a5e4956
CP
3112015-11-05 Cesar Philippidis <cesar@codesourcery.com>
312 Thomas Schwinge <thomas@codesourcery.com>
313 James Norris <jnorris@codesourcery.com>
314
315 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
316 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
317 clauses with parallel and kernels and loops.
318 * c-pragma.h (enum pragma_omp_clause): Add entries for
319 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
320 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
321 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
322 INDEPENDENT,SEQ}.
323 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
324
e2f5cc96
MS
3252015-11-05 Martin Sebor <msebor@redhat.com>
326
327 PR c++/67942
328 * c.opt (-Wplacement-new): New option.
329
e01d41e5
JJ
3302015-11-05 Jakub Jelinek <jakub@redhat.com>
331
332 * c-common.h (c_finish_omp_atomic): Add TEST argument.
333 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
334 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
335 save_expr or create_tmp_var* if TEST is true.
336 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
337 Don't call add_stmt here.
338 (struct c_omp_check_loop_iv_data): New type.
339 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
340 c_omp_check_loop_iv_exprs): New functions.
341 (c_omp_split_clauses): Adjust for lastprivate being allowed on
342 distribute.
343 (c_omp_declare_simd_clauses_to_numbers): Change
344 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
345 (c_omp_declare_simd_clauses_to_decls): Similarly change those
346 from numbers to PARM_DECLs.
347
595278be
MM
3482015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
349
350 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
351 flag_checking.
352
c85158de
MS
3532015-11-03 Bernd Schmidt <bschmidt@redhat.com>
354
355 PR c++-common/67882
b3d5bc62
JJ
356 * c-common.h (fold_offsetof_1): Add argument.
357 * c-common.c (fold_offsetof_1): Diagnose more invalid
c85158de
MS
358 offsetof expressions that reference elements past the end of
359 an array.
360
4bf9e5a8
TS
3612015-11-03 Thomas Schwinge <thomas@codesourcery.com>
362 Chung-Lin Tang <cltang@codesourcery.com>
363
364 * c-pragma.c (oacc_pragmas): Add "atomic".
365 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
366
3b1661a9
ES
3672015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
368
369 * c-common.c (handle_target_clones_attribute): New.
370 (c_common_attribute_table): Add handle_target_clones_attribute.
371 (handle_always_inline_attribute): Add check on target_clones attribute.
372 (handle_target_attribute): Ditto.
373
2adfab87
AM
3742015-10-29 Andrew MacLeod <amacleod@redhat.com>
375
376 * array-notation-common.c: Reorder #include's and remove duplicates.
377 * c-ada-spec.c: Likewise.
378 * c-cilkplus.c: Likewise.
379 * c-common.c: Likewise.
380 * c-cppbuiltin.c: Likewise.
381 * c-dump.c: Likewise.
382 * c-format.c: Likewise.
383 * c-gimplify.c: Likewise.
384 * c-indentation.c: Likewise.
385 * c-lex.c: Likewise.
386 * c-omp.c: Likewise.
387 * c-opts.c: Likewise.
388 * c-pch.c: Likewise.
389 * c-ppoutput.c: Likewise.
390 * c-pragma.c: Likewise.
391 * c-pretty-print.c: Likewise.
392 * c-semantics.c: Likewise.
393 * c-ubsan.c: Likewise.
394 * cilk.c: Likewise.
395 * stub-objc.c: Likewise.
396
d90ec4f2
JM
3972015-10-28 Jason Merrill <jason@redhat.com>
398
399 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
400
88bae6f4
TS
4012015-10-27 Thomas Schwinge <thomas@codesourcery.com>
402 James Norris <jnorris@codesourcery.com>
403 Cesar Philippidis <cesar@codesourcery.com>
404
405 PR c/64765
406 PR c/64880
407 * c-common.h (c_oacc_split_loop_clauses): Declare function.
408 * c-omp.c (c_oacc_split_loop_clauses): New function.
409
b1726d6c
MS
4102015-10-21 Martin Sebor <msebor@redhat.com>
411
412 PR driver/68043
413 * c.opt: End each sentence that describes an option with a period.
414
fa60eeb9
MP
4152015-10-20 Marek Polacek <polacek@redhat.com>
416
417 * array-notation-common.c (is_cilkplus_vector_p): Define.
418 * c-common.h (is_cilkplus_vector_p): Declare.
419
95979049
MP
4202015-10-20 Marek Polacek <polacek@redhat.com>
421
422 * c.opt (std=gnu++11): Do not describe as experimental.
423 (std=gnu++14): Likewise.
424
2a9fb712
JM
4252015-10-19 Jason Merrill <jason@redhat.com>
426
427 * c-cppbuiltin.c (c_cpp_builtins): Define
428 __cpp_nontype_template_args.
429
13b380a3
JM
4302015-10-19 Jason Merrill <jason@redhat.com>
431
432 * c-cppbuiltin.c (c_cpp_builtins): Define
433 __cpp_enumerator_attributes, __cpp_fold_expressions,
434 __cpp_unicode_characters.
435
d9a6bd32
JJ
4362015-10-13 Jakub Jelinek <jakub@redhat.com>
437 Aldy Hernandez <aldyh@redhat.com>
438
439 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
440 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
441 (c_define_builtins): Likewise.
442 * c-common.h (enum c_omp_clause_split): Add
443 C_OMP_CLAUSE_SPLIT_TASKLOOP.
444 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
445 (c_finish_omp_for): Add ORIG_DECLV argument.
446 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
447 201511 instead of 201307.
448 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
449 OMP_CRITICAL_CLAUSES to it.
450 (c_finish_omp_ordered): Add CLAUSES argument, set
451 OMP_ORDERED_CLAUSES to it.
452 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
453 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
454 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
455 constructs and new OpenMP 4.5 clauses. Clear
456 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
457 verification code.
458 * c-pragma.c (omp_pragmas_simd): Add taskloop.
459 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
460 (enum pragma_omp_clause): Add
461 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
462 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
463
624d31fe
RS
4642015-10-05 Richard Sandiford <richard.sandiford@arm.com>
465
466 * c-lex.c (interpret_float): Use real_equal instead of
467 REAL_VALUES_EQUAL.
468
b8fd7909
JM
4692015-10-04 Jason Merrill <jason@redhat.com>
470
471 Implement N4514, C++ Extensions for Transactional Memory.
472 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
473 (c_common_attribute_table): Add transaction_safe_dynamic.
474 transaction_safe now affects type identity.
475 (handle_tm_attribute): Handle transaction_safe_dynamic.
476 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
477 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
478 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
479 (D_TRANSMEM): New.
480 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
481 * c-pretty-print.c (pp_c_attributes_display): Don't print
482 transaction_safe in C++.
483
12651878
MP
4842015-10-02 Marek Polacek <polacek@redhat.com>
485
486 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
487
3e3b8d63
MP
4882015-10-02 Marek Polacek <polacek@redhat.com>
489
490 PR c/64249
491 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
492 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
493 * c.opt (Wduplicated-cond): New option.
494
0d1a8f75
JM
4952015-10-01 Joseph Myers <joseph@codesourcery.com>
496
497 * c.opt (std=c11): Do not describe as experimental.
498 (std=gnu11): Likewise.
499 (std=iso9899:2011): Likewise.
500
3e32ee19
NS
5012015-09-28 Nathan Sidwell <nathan@codesourcery.com>
502
503 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
504 (DEF_FUNCTION_TYPE_VAR_11): Delete.
505
974348ee
MP
5062015-09-25 Marek Polacek <polacek@redhat.com>
507
508 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
509 (ubsan_instrument_shift): Likewise.
510
15dbc1a6
MP
5112015-09-25 Marek Polacek <polacek@redhat.com>
512
513 PR sanitizer/64906
514 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
515
6b95d7cc
PP
5162015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
517
518 * c-indentation.c (should_warn_for_misleading_indentation):
519 Compare next_stmt_vis_column with guard_line_first_nws instead
520 of with guard_line_vis_column.
521
c1822f9c
MLI
5222015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
523
524 PR c/49654
525 PR c/49655
526 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
527 options and options not valid for the current language.
528
d5398058
PP
5292015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
530
531 * c-indentation.c (should_warn_for_misleading_indentation):
532 Float out and consolidate the calls to get_visual_column that
533 are passed guard_exploc as an argument. Compare
534 next_stmt_vis_column with guard_line_first_nws instead of with
535 body_line_first_nws.
536
6b333269
NS
5372015-09-22 Nathan Sidwell <nathan@codesourcery.com>
538
539 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
540 Wnamespaces): New C++ warnings.
541
a75f1574
JM
5422015-09-22 Jason Merrill <jason@redhat.com>
543
544 * c-common.h (abi_compat_version_crosses): New.
545 (warn_abi_version): Declare.
546 * c-common.c: Define it.
547 * c-opts.c (c_common_post_options): Handle it.
548 flag_abi_compat_version defaults to 8.
549
bdaaa8b7
VV
5502015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
551
552 Complete the implementation of N4230, Nested namespace definition.
553 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
554 __cpp_nested_namespace_definitions.
555
eaa797e8
MLI
5562015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
557
558 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
559
c4914de6
MLI
5602015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
561
562 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
563 when warning.
564 * c-pragma.h (pragma_lex): Add optional loc argument.
565
fcb87c50
MM
5662015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
567
568 * c-format.c (check_format_arg): Adjust to use common block size in all
569 object pools.
570
31bdd08a
DM
5712015-09-15 David Malcolm <dmalcolm@redhat.com>
572
573 * c-format.c (location_from_offset): Update for change in
574 signature of location_get_source_line.
575 * c-indentation.c (get_visual_column): Likewise.
576 (line_contains_hash_if): Likewise.
577
aa9f4b4c
MP
5782015-09-14 Marek Polacek <polacek@redhat.com>
579
580 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
581 setting various warnings.
582
aa256c4a
MP
5832015-09-14 Marek Polacek <polacek@redhat.com>
584
585 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
586 a negative value.
587
0f876f22
MW
5882015-09-11 Mark Wielaard <mjw@redhat.com>
589
590 PR c/28901
591 * c.opt (Wunused-variable): Option from common.opt.
592 (Wunused-const-variable): New option.
593
273aa49e
PC
5942015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
595
596 PR c++/53184
597 * c.opt ([Wsubobject-linkage]): Add.
598
1807ffc1
MS
5992015-09-03 Martin Sebor <msebor@redhat.com>
600
601 PR c/66516
602 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
603 functions.
604 * c-common.c (reject_gcc_builtin): Define.
605
38942840
BI
6062015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
607
608 PR middle-end/60586
609 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
610 prototype.
611 * c-gimplify.c (c_gimplify_expr): Added a call to the function
612 cilk_gimplify_call_params_in_spawned_fn.
613 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
614 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
615 unwrapping.
616
c316b5e4
MP
6172015-08-25 Marek Polacek <polacek@redhat.com>
618
619 PR middle-end/67330
620 * c-common.c (handle_weak_attribute): Don't check whether the
621 visibility can be changed here.
622
584a7c46
MLI
6232015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
624
625 * c-lex.c (c_lex_with_flags): Use explicit locations.
626
a79683d5
TS
6272015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
628
629 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
630 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
631
61717a45
FXC
6322015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
633
634 PR middle-end/36757
635 * c-common.c (check_builtin_function_arguments): Add check
636 for BUILT_IN_SIGNBIT argument.
637
329524f5
PC
6382015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
639
640 PR c++/67160
641 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
642 in c++1z mode.
643
4ee55665
MP
6442015-08-17 Marek Polacek <polacek@redhat.com>
645
646 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
647 with whitespaces before qualifier names.
648
b893e375
MP
6492015-08-12 Marek Polacek <polacek@redhat.com>
650
651 PR c++/55095
652 * c-common.c (maybe_warn_shift_overflow): Properly handle
653 left-shifting 1 into the sign bit.
654
c2d89095
MLI
6552015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
656
657 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
658
971e17ff
AS
6592015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
660 Braden Obrzut <admin@maniacsvault.net>
661 Jason Merrill <jason@redhat.com>
662
663 Add C++ Concepts TS support.
664 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
665 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
666 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
667 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
668 * c-opts.c (set_std_cxx1z): Set flag_concepts.
669 * c.opt (fconcepts): New.
670
b3d5bc62
JJ
6712015-08-02 Martin Sebor <msebor@redhat.com>
672
673 * c.opt (-Wframe-address): New warning option.
674
8ebca419
PP
6752015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
676
677 * c-indentation.c (should_warn_for_misleading_indentation):
678 Improve heuristics.
679
1a1e101f
PP
6802015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
681
682 * c-indentation.c (get_visual_column): Add parameter first_nws,
683 use it. Update comment documenting the function.
684 (is_first_nonwhitespace_on_line): Remove.
685 (should_warn_for_misleading_indentation): Replace usage of
686 of is_first_nonwhitespace_on_line with get_visual_column.
687
992118a1
PP
6882015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
689
690 * c-indentation.h (struct token_indent_info): Define.
691 (get_token_indent_info): Define.
692 (warn_for_misleading_information): Declare.
693 * c-common.h (warn_for_misleading_information): Remove.
694 * c-identation.c (warn_for_misleading_indentation):
695 Change declaration to take three token_indent_infos. Adjust
696 accordingly.
697 * c-identation.c (should_warn_for_misleading_indentation):
698 Likewise. Bail out early if the body is a compound statement.
699 (guard_tinfo_to_string): Define.
700
e8fa3817
JM
7012015-07-30 Jason Merrill <jason@redhat.com>
702
703 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
704 '*' for reference decay.
705
173864e8
MP
7062015-07-30 Marek Polacek <polacek@redhat.com>
707
708 * c-common.c (warn_tautological_cmp): Bail for float types.
709
f2afe6dd
MP
7102015-07-27 Marek Polacek <polacek@redhat.com>
711
712 PR bootstrap/67030
713 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
714
05b28fd6
MP
7152015-07-27 Marek Polacek <polacek@redhat.com>
716
717 PR c++/66555
718 PR c/54979
719 * c-common.c (find_array_ref_with_const_idx_r): New function.
720 (warn_tautological_cmp): New function.
721 * c-common.h (warn_tautological_cmp): Declare.
722 * c.opt (Wtautological-compare): New option.
723
5a5062b8
MP
7242015-07-23 Marek Polacek <polacek@redhat.com>
725
726 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
727 (ubsan_instrument_shift): Likewise.
728
dc891fe7
MP
7292015-07-23 Marek Polacek <polacek@redhat.com>
730
731 PR sanitizer/66908
732 * c-ubsan.c: Include gimplify.h.
733 (ubsan_instrument_division): Unshare OP0 and OP1.
734 (ubsan_instrument_shift): Likewise.
735
451b5e48
MP
7362015-07-20 Marek Polacek <polacek@redhat.com>
737 Richard Sandiford <richard.sandiford@arm.com>
738
739 PR c++/55095
740 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
741 Use EXPR_LOC_OR_LOC.
742 (maybe_warn_shift_overflow): New function.
743 * c-common.h (maybe_warn_shift_overflow): Declare.
744 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
745 * c.opt (Wshift-overflow): New option.
746
fb0b2914
ML
7472015-07-16 Martin Liska <mliska@suse.cz>
748
749 * c-format.c (static void check_format_info_main): Use
750 object_allocator instead of pool_allocator.
751 (check_format_arg): Likewise.
752 (check_format_info_main): Likewise.
753
903f5c23
AM
7542015-07-15 Andrew MacLeod <amacleod@redhat.com>
755
756 * c-opts.c: Remove multiline #include comment.
757
026c3cfd
AH
7582015-07-12 Aldy Hernandez <aldyh@redhat.com>
759
760 * c-common.c: Fix double word typos.
761
bb49ee66
EB
7622015-07-10 Eric Botcazou <ebotcazou@adacore.com>
763
764 * c-ada-spec.h (cpp_operation): Revert latest change.
765 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
766 constructors and destructors.
767
1916bcb5
AM
7682015-07-09 Andrew MacLeod <amacleod@redhat.com>
769
770 * c-common.h: Adjust includes for flags.h changes.
771 * stub-objc.c: Likewise.
026c3cfd 772
a9dcd529
EB
7732015-07-08 Eric Botcazou <ebotcazou@adacore.com>
774
775 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
776 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
777
b03b462f
JJ
7782015-07-08 Jakub Jelinek <jakub@redhat.com>
779
780 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
781 are to be removed, return NULL rather than original clauses list.
782
c7131fb2
AM
7832015-07-07 Andrew MacLeod <amacleod@redhat.com>
784
785 * array-notation-common.c: Adjust includes.
786 * c-ada-spec.c: Likewise.
787 * c-cilkplus.c: Likewise.
788 * c-common.h: Likewise.
789 * c-cppbuiltin.c: Likewise.
790 * c-dump.c: Likewise.
791 * c-format.c: Likewise.
792 * c-gimplify.c: Likewise.
793 * c-indentation.c: Likewise.
794 * c-lex.c: Likewise.
795 * c-omp.c: Likewise.
796 * c-opts.c: Likewise.
797 * c-pch.c: Likewise.
798 * c-ppoutput.c: Likewise.
799 * c-pragma.c: Likewise.
800 * c-pretty-print.c: Likewise.
801 * c-semantics.c: Likewise.
802 * c-ubsan.c: Likewise.
803 * cilk.c: Likewise.
804 * stub-objc.c: Likewise.
805
2a7fb83f
EB
8062015-07-07 Eric Botcazou <ebotcazou@adacore.com>
807
808 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
809 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
810
a03c9bf1
JM
8112015-07-01 Jason Merrill <jason@redhat.com>
812
36a85135
JM
813 * c-common.h (D_CXX11): Rename from D_CXX0X.
814 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
815 * c-common.c: Adjust.
816
e7fa68d5
JM
817 * c-opts.c (c_common_post_options): Default to C++14.
818
a03c9bf1
JM
819 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
820
fe95b036
ESR
8212015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
822
823 Implement N4197 - Adding u8 character literals
b3d5bc62 824 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
a64be36b 825 CPP_CHAR.
b3d5bc62 826 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
a64be36b 827 CPP_UTF8CHAR_USERDEF tokens.
b3d5bc62 828 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
a64be36b
EB
829 and CPP_UTF8CHAR tokens.
830 (lex_charconst): Treat CPP_UTF8CHAR token.
fe95b036 831
da2e71c9
MLI
8322015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
833
834 PR fortran/66605
835 * c-common.c (do_warn_unused_parameter): Move here.
836 * c-common.h (do_warn_unused_parameter): Declare.
837
b155cfd9
MP
8382015-06-29 Marek Polacek <polacek@redhat.com>
839
840 PR c/66322
841 * c-common.c (check_case_bounds): Add bool * parameter. Set
842 OUTSIDE_RANGE_P.
843 (c_add_case_label): Add bool * parameter. Pass it down to
844 check_case_bounds.
845 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
846 warning here.
847 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
848 declarations.
849
31521951
MP
8502015-06-27 Marek Polacek <polacek@redhat.com>
851
852 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
853 or VECTOR_INTEGER_TYPE_P throughout.
854 * c-gimplify.c: Likewise.
855
22d03525
MP
8562015-06-26 Marek Polacek <polacek@redhat.com>
857
858 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
859 * c-common.c (c_fully_fold_internal): Likewise.
860 (c_alignof_expr): Likewise.
861 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
862 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
b1726d6c 863 * cilk.c (create_parm_list): Likewise.
22d03525 864
af05e6e5
MP
8652015-06-26 Marek Polacek <polacek@redhat.com>
866
867 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
868
f0889939
AM
8692015-06-25 Andrew MacLeod <amacleod@redhat.com>
870
871 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
872 * c-gimplify.c: Likewise.
873 * c-pragma.c: Likewise.
874 * c-ubsan.c: Likewise.
875 * cilk.c: Likewise.
876
ca752f39
RS
8772015-06-25 Richard Sandiford <richard.sandiford@arm.com>
878
879 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
880 ggc_hasher.
881
16a16ec7
AM
8822015-06-25 Andrew MacLeod <amacleod@redhat.com>
883
884 * cilk.c: Move calls.h after tm.h in the include chain.
885
0ae9bd27
MP
8862015-06-25 Marek Polacek <polacek@redhat.com>
887
888 * array-notation-common.c: Use VAR_P throughout.
889 * c-ada-spec.c: Likewise.
890 * c-common.c: Likewise.
891 * c-format.c: Likewise.
892 * c-gimplify.c: Likewise.
893 * c-omp.c: Likewise.
894 * c-pragma.c: Likewise.
895 * c-pretty-print.c: Likewise.
896 * cilk.c: Likewise.
897
62f9079a
MP
8982015-06-25 Marek Polacek <polacek@redhat.com>
899
900 * cilk.c (extract_free_variables): Use is_global_var.
901
0fa16060
RS
9022015-06-23 Richard Sandiford <richard.sandiford@arm.com>
903
904 * c-common.c: Don't include target-def.h.
905
a68ae2e1
MP
9062015-06-23 Marek Polacek <polacek@redhat.com>
907
908 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
909 when comparing INTEGER_CSTs.
910
c6a2f2d9
PMR
9112015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
912
913 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
914 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
915 (dump_ada_template): Skip partially specialized types.
916
6b4db501
MM
9172015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
918
919 * c-common.c (scalar_to_vector): Use std::swap instead of manually
920 swapping.
921
abb226c9
AM
9222015-06-17 Andrew MacLeod <amacleod@redhat.com>
923
924 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
925 * c-ada-spec.c: Likewise.
926 * c-cilkplus.c: Likewise.
927 * c-common.c: Likewise.
928 * c-common.h: Likewise.
929 * c-cppbuiltin.c: Likewise.
930 * c-dump.c: Likewise.
931 * c-format.c: Likewise.
932 * c-gimplify.c: Likewise.
933 * c-indentation.c: Likewise.
934 * c-lex.c: Likewise.
935 * c-omp.c: Likewise.
936 * c-opts.c: Likewise.
937 * c-pch.c: Likewise.
938 * c-ppoutput.c: Likewise.
939 * c-pragma.c: Likewise.
940 * c-pretty-print.c: Likewise.
941 * c-semantics.c: Likewise.
942 * c-ubsan.c: Likewise.
943 * cilk.c: Likewise.
944 * stub-objc.c: Likewise.
945
076fecad
PP
9462015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
947
948 PR c++/65168
949 * c-common.c (c_common_truthvalue_conversion): Warn when
950 converting an address of a reference to a truth value.
951
13fdf2e2
AM
9522015-06-08 Andrew MacLeod <amacleod@redhat.com>
953
954 * array-notation-common.c : Adjust include files.
955 * c-ada-spec.c : Likewise.
956 * c-cilkplus.c : Likewise.
957 * c-common.c : Likewise.
958 * c-common.h : Likewise.
959 * c-cppbuiltin.c : Likewise.
960 * c-dump.c : Likewise.
961 * c-format.c : Likewise.
962 * c-gimplify.c : Likewise.
963 * c-indentation.c : Likewise.
964 * c-lex.c : Likewise.
965 * c-omp.c : Likewise.
966 * c-opts.c : Likewise.
967 * c-pch.c : Likewise.
968 * c-ppoutput.c : Likewise.
969 * c-pragma.c : Likewise.
970 * c-pretty-print.c : Likewise.
971 * c-semantics.c : Likewise.
972 * c-ubsan.c : Likewise.
973 * cilk.c : Likewise.
974 * stub-objc.c : Likewise.
975
a1661b90
MP
9762015-06-08 Marek Polacek <polacek@redhat.com>
977
978 PR c/66415
979 * c-format.c (location_from_offset): Return LOC if LINE is null.
980
d7438551
AH
9812015-06-05 Aldy Hernandez <aldyh@redhat.com>
982
983 * c-common.h (c_parse_final_cleanups): New prototype.
984 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
985
b3d5bc62
JJ
9862015-06-04 Sriraman Tallam <tmsriram@google.com>
987
988 * c-common.c (noplt): New attribute.
989 (handle_noplt_attribute): New handler.
990
ecb9f223
AM
9912015-06-04 Andrew MacLeod <amacleod@redhat.com>
992
993 * array-notation-common.c: Adjust includes for restructured coretypes.h.
994 * c-ada-spec.c: Likewise.
995 * c-cilkplus.c: Likewise.
996 * c-common.c: Likewise.
997 * c-common.h: Likewise.
998 * c-cppbuiltin.c: Likewise.
999 * c-dump.c: Likewise.
1000 * c-format.c: Likewise.
1001 * c-gimplify.c: Likewise.
1002 * c-indentation.c: Likewise.
1003 * c-lex.c: Likewise.
1004 * c-omp.c: Likewise.
1005 * c-opts.c: Likewise.
1006 * c-pch.c: Likewise.
1007 * c-ppoutput.c: Likewise.
1008 * c-pragma.c: Likewise.
1009 * c-pretty-print.c: Likewise.
1010 * c-semantics.c: Likewise.
1011 * c-ubsan.c: Likewise.
1012 * cilk.c: Likewise.
1013 * stub-objc.c: Likewise.
1014
6ac48155
DM
10152015-06-02 David Malcolm <dmalcolm@redhat.com>
1016
1017 PR c/66220:
1018 * c-indentation.c (should_warn_for_misleading_indentation): Use
1019 expand_location rather than expand_location_to_spelling_point.
1020 Don't warn if the guarding statement is more indented than the
1021 next/body stmts.
1022
773ce42e
DM
10232015-06-02 David Malcolm <dmalcolm@redhat.com>
1024
1025 * c-indentation.c (warn_for_misleading_indentation): Bail out
1026 immediately if -Wmisleading-indentation isn't enabled.
1027
4fef8379
ML
10282015-06-01 Martin Liska <mliska@suse.cz>
1029
1030 * c-format.c (check_format_arg):Use new type-based pool allocator.
1031 (check_format_info_main) Likewise.
1032
1edfb384
EB
10332015-05-31 Eric Botcazou <ebotcazou@adacore.com>
1034
1035 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
1036 (has_nontrivial_methods): Likewise.
1037
9677ef52
MP
10382015-05-25 Marek Polacek <polacek@redhat.com>
1039
1040 * c-ubsan.c (ubsan_instrument_shift): Use type0.
1041
fd5c817a
MP
10422015-05-22 Marek Polacek <polacek@redhat.com>
1043
1044 PR c/47043
1045 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
1046
a2f45fe6 10472015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
581edfa3
TS
1048
1049 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
1050 STACK_GROWS_DOWNWARD.
1051
a2f45fe6 10522015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
62f9f30b
TS
1053
1054 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
1055 STACK_GROWS_DOWNWARD rather than if it is defined.
1056
0fee2ac2 10572015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
b1726d6c 1058
0fee2ac2
MLI
1059 PR c/52952
1060 * c-format.c (location_column_from_byte_offset): New.
1061 (location_from_offset): New.
1062 (struct format_wanted_type): Add offset_loc field.
1063 (check_format_info): Move handling of location for extra arguments
1064 closer to the point of warning.
1065 (check_format_info_main): Pass the result of location_from_offset
1066 to warning_at.
1067 (format_type_warning): Pass the result of location_from_offset
1068 to warning_at.
1069
cf4ef6f7
MP
10702015-05-20 Marek Polacek <polacek@redhat.com>
1071
1072 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
1073
3a65ee74
MP
10742015-05-20 Marek Polacek <polacek@redhat.com>
1075
1076 * c-ada-spec.c (dump_sloc): Use DECL_P.
1077
21b634ae
MP
10782015-05-20 Marek Polacek <polacek@redhat.com>
1079
1080 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
1081 * c-common.c: Likewise.
1082
0e50b624
DM
10832015-05-19 David Malcolm <dmalcolm@redhat.com>
1084
1085 * c-common.h (fe_file_change): Strengthen param from
1086 const line_map * to const line_map_ordinary *.
1087 (pp_file_change): Likewise.
1088 * c-lex.c (fe_file_change): Likewise.
1089 (cb_define): Use linemap_check_ordinary when invoking
1090 SOURCE_LINE.
1091 (cb_undef): Likewise.
1092 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
1093 invoking cb_file_change.
1094 (c_finish_options): Likewise.
1095 (push_command_line_include): Likewise.
1096 (cb_file_change): Strengthen param "new_map" from
1097 const line_map * to const line_map_ordinary *.
1098 * c-ppoutput.c (cb_define): Likewise for local "map".
1099 (pp_file_change): Likewise for param "map" and local "from".
1100
fab27f52
MM
11012015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
1102
1103 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
1104
2fe1d762
TV
11052015-05-18 Tom de Vries <tom@codesourcery.com>
1106
1107 * c-common.c (build_va_arg_1): New function.
1108 (build_va_arg): Add address operator to va_list operand if necessary.
1109
7a37fa90
MM
11102015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
1111
1112 PR c/48956
1113 * c-common.c (int_safely_convertible_to_real_p): Define.
1114 (unsafe_conversion_p): Check conversions involving complex types.
1115 (conversion_warning): Add new warning message for conversions which
1116 discard imaginary component.
1117 * c-common.h: (enum conversion_safety): Add new enumerator for such
1118 conversions.
1119
3aa3c9fc
MP
11202015-05-14 Marek Polacek <polacek@redhat.com>
1121
1122 PR c/66066
1123 PR c/66127
1124 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
1125 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
1126 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
1127 use it. If FOR_INT_CONST, require that all evaluated operands be
1128 INTEGER_CSTs.
1129
c3388e62
DM
11302015-05-12 David Malcolm <dmalcolm@redhat.com>
1131
1132 * c-common.h (warn_for_misleading_indentation): New prototype.
1133 * c-indentation.c: New file.
1134 * c.opt (Wmisleading-indentation): New option.
1135
c7b38fd5
TV
11362015-05-12 Tom de Vries <tom@codesourcery.com>
1137
1138 PR tree-optimization/66010
1139 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
1140
381bf11e
JM
11412015-05-09 Jason Merrill <jason@redhat.com>
1142
edff0c06
JM
1143 * c-opts.c (c_common_post_options): Also clear
1144 cpp_opts->cpp_warn_cxx11_compat.
1145
129211bc
JM
1146 * c-common.h (enum cxx_dialect): Add cxx_unset.
1147 * c-common.c (cxx_dialect): Initialize to cxx_unset.
1148 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
1149
381bf11e
JM
1150 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
1151 (std=gnu++0x): Mark as Undocumented.
1152 (std=gnu++1y): Add deprecated message.
1153
fe191308
JM
11542015-05-08 Jason Merrill <jason@redhat.com>
1155
765189ff
JM
1156 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
1157 * c-opts.c: Adjust.
1158
fe191308
JM
1159 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
1160
755e528f
MP
11612015-05-08 Marek Polacek <polacek@redhat.com>
1162
1163 PR c/64918
1164 * c.opt (Woverride-init-side-effects): New option.
1165
0173bd2a
MP
11662015-05-07 Marek Polacek <polacek@redhat.com>
1167
1168 PR c/65179
1169 * c-common.c (c_fully_fold_internal): Warn when left shifting a
1170 negative value.
1171 * c.opt (Wshift-negative-value): New option.
1172 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
1173 when -Wextra and C99/C++11 mode.
1174
e0f0d3b9
MP
11752015-05-07 Marek Polacek <polacek@redhat.com>
1176 Martin Uecker <uecker@eecs.berkeley.edu>
1177
1178 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
1179 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
1180
8243e2a9
JM
11812015-05-05 Jason Merrill <jason@redhat.com>
1182
1183 * c.opt (Wterminate): New.
1184
577cd070
MP
11852015-04-30 Marek Polacek <polacek@redhat.com>
1186
1187 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
1188 require that the non-constant be of a boolean type.
1189
0373796b
JT
11902015-04-29 Josh Triplett <josh@joshtriplett.org>
1191
e0f0d3b9
MP
1192 * c-common.c (handle_section_attribute): Refactor to reduce
1193 nesting and distinguish between error cases.
0373796b 1194
716c0ba6
MP
11952015-04-29 Marek Polacek <polacek@redhat.com>
1196
1197 PR c/64610
1198 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
1199 with 0/1.
1200
8848828b
JJ
12012015-04-29 Jakub Jelinek <jakub@redhat.com>
1202
1203 * c-common.h (omp_clause_mask): Unconditionally define as a class.
1204 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
1205 HOST_BITS_PER_WIDE_INT.
1206
ecd0e562
TV
12072015-04-28 Tom de Vries <tom@codesourcery.com>
1208
1209 PR tree-optimization/65887
1210 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
1211
2a877204 12122015-04-28 Eric Botcazou <ebotcazou@adacore.com>
e0f0d3b9 1213 Pierre-Marie de Rodat <derodat@adacore.com>
2a877204
EB
1214
1215 * c-ada-spec.c (in_function): Delete.
1216 (dump_generic_ada_node): Do not change in_function and remove the
1217 redundant code dealing with it.
1218 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
1219 (print_ada_methods): Output the static member functions in a nested
1220 package after the regular methods as well as associated renamings.
1221
4853031e
MP
12222015-04-24 Marek Polacek <polacek@redhat.com>
1223
1224 PR c/65830
1225 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
1226 and OPT_Wshift_count_overflow.
1227
8c2b7f79
MP
1228 PR c/63357
1229 * c-common.c (warn_logical_operator): Warn if the operands have the
1230 same expressions.
1231
b8787813
MP
12322015-04-24 Marek Polacek <polacek@redhat.com>
1233
1234 PR c/61534
1235 * c-common.c (warn_logical_operator): Bail if either operand comes
1236 from a macro expansion.
1237
8fba1830
BRF
12382015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1239
1240 PR target/55143
1241 * c-common.c (c_default_pointer_mode): Add definition.
1242 * c-common.h (c_default_pointer_mode): Add declaration.
1243
17958621
JJ
12442015-03-11 Jakub Jelinek <jakub@redhat.com>
1245
1246 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
1247 on record_builtin_type argument.
1248
7ccb1a11
JJ
12492015-03-10 Jakub Jelinek <jakub@redhat.com>
1250
1251 PR c/65120
1252 * c-common.c (warn_logical_not_parentheses): Don't warn for
1253 !x == 0 or !x != 0.
1254
04fd785e
MP
12552015-03-07 Marek Polacek <polacek@redhat.com>
1256
1257 PR sanitizer/65280
1258 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
1259 before trying to figure out whether we have a flexible array member.
1260
a4e26206
EB
12612015-03-06 Eric Botcazou <ebotcazou@adacore.com>
1262 Jonathan Wakely <jwakely.gcc@gmail.com>
1263
1264 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
1265
0d2489f4
EB
12662015-03-05 Eric Botcazou <ebotcazou@adacore.com>
1267
1268 PR ada/65319
1269 * c-ada-spec.c (print_destructor): Remove obsolete code.
1270
83ed54d7
EB
12712015-03-01 Eric Botcazou <ebotcazou@adacore.com>
1272
1273 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
1274 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
1275 DECL_TEMPLATE_RESULT emulations.
1276 (dump_ada_template)): Add guard for TYPE_METHODS.
1277
7631f0e2
MP
12782015-02-27 Marek Polacek <polacek@redhat.com>
1279
1280 PR c/65040
1281 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
1282
d1783ae5
KT
12832015-02-27 Kai Tietz <ktietz@redhat.com>
1284
1285 PR c/35330
1286 * c-pragma.c (handle_pragma_weak): Do not try to create
1287 weak/alias of declarations not being function, or variable
1288 declarations.
1289
56a9f6bc
TS
12902015-02-24 Thomas Schwinge <thomas@codesourcery.com>
1291
1292 PR libgomp/64625
1293 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
1294 Remove macros.
1295 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
1296
3d5cb23d
MP
12972015-02-16 Marek Polacek <polacek@redhat.com>
1298
1299 PR c/65066
1300 * c-format.c (check_format_types): Handle null param.
1301
fa008882
MP
13022015-02-13 Marek Polacek <polacek@redhat.com>
1303
1304 PR c/65040
1305 * c-format.c (check_format_types): Don't warn about different
1306 signedness if the original value is in the range of WANTED_TYPE.
1307
785f21af
JM
13082015-02-12 Jason Merrill <jason@redhat.com>
1309
1310 PR c++/64956
1311 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
1312 to the current highest version.
1313 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
1314
4886ec8e
JJ
13152015-02-04 Jakub Jelinek <jakub@redhat.com>
1316
1317 PR c/64824
1318 PR c/64868
1319 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
1320 instead of RDIV_EXPR. Use build_binary_op instead of
1321 build2_loc.
1322
40fecdd6
JM
13232015-01-30 Joseph Myers <joseph@codesourcery.com>
1324
1325 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
1326 to pass input_location as first argument.
1327
a0c88d06
TV
13282015-01-23 Tom de Vries <tom@codesourcery.com>
1329
1330 PR libgomp/64672
1331 * c.opt (fopenacc): Mark as LTO option.
1332
1506ae0e
TV
13332015-01-23 Tom de Vries <tom@codesourcery.com>
1334
1335 PR libgomp/64707
1336 * c.opt (fopenmp): Mark as LTO option.
1337
31be63ab
JJ
13382015-01-21 Jakub Jelinek <jakub@redhat.com>
1339
1340 PR c/63307
b1726d6c 1341 * cilk.c (fill_decls_vec): Only put decls into vector v.
31be63ab
JJ
1342 (compare_decls): Fix up formatting.
1343
13442015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
1345
1346 PR c/63307
1347 * cilk.c: Include vec.h.
1348 (struct cilk_decls): New structure.
1349 (wrapper_parm_cb): Split this function to...
1350 (fill_decls_vec): ...this...
1351 (create_parm_list): ...and this.
1352 (compare_decls): New function.
1353 (for_local_cb): Remove.
1354 (wrapper_local_cb): Ditto.
1355 (build_wrapper_type): For now first traverse and fill vector of
1356 declarations then sort it and then deal with sorted vector.
1357 (cilk_outline): Ditto.
1358 (declare_one_free_variable): Ditto.
1359
6875457f
JM
13602015-01-21 Jason Merrill <jason@redhat.com>
1361
1362 PR c++/64629
1363 * c-format.c (check_format_arg): Call decl_constant_value.
1364
185c9e56
ML
13652015-01-19 Martin Liska <mliska@suse.cz>
1366
1367 * c-common.c (handle_noicf_attribute): New function.
1368
41dbbb37
TS
13692015-01-15 Thomas Schwinge <thomas@codesourcery.com>
1370 Bernd Schmidt <bernds@codesourcery.com>
1371 James Norris <jnorris@codesourcery.com>
1372 Cesar Philippidis <cesar@codesourcery.com>
1373 Ilmir Usmanov <i.usmanov@samsung.com>
1374 Jakub Jelinek <jakub@redhat.com>
1375
1376 * c.opt (fopenacc): New option.
1377 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
1378 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
1379 New macros.
1380 * c-common.h (c_finish_oacc_wait): New prototype.
1381 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
1382 (c_finish_oacc_wait): New function.
1383 * c-pragma.c (oacc_pragmas): New variable.
1384 (c_pp_lookup_pragma, init_pragma): Handle it.
1385 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
1386 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
1387 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
1388 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
1389 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
1390 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
1391 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
1392 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
1393 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
1394 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
1395 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
1396 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
1397 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
1398 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
1399 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
1400 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
1401 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
1402 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
1403 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
1404 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
1405 PRAGMA_OACC_CLAUSE_WORKER.
1406
5434dc07
MD
14072015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
1408
1409 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
1410 for the new option fstack-protector_explicit.
1411 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
1412 (handle_stack_protect_attribute): New function.
1413
de1b5c17
MU
14142015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
1415
1416 * c.opt: New option -Warray-bounds=.
1417
adfac8df
JJ
14182015-01-09 Michael Collison <michael.collison@linaro.org>
1419
1420 * array-notation-common.c: Include hash-set.h, machmode.h,
1421 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1422 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
1423 * c-ada-spec.c: Ditto.
1424 * c-cilkplus.c: Ditto.
1425 * c-common.c: Include input.h due to flattening of tree.h.
1426 Define macro GCC_C_COMMON_C.
1427 * c-common.h: Flatten tree.h header files into c-common.h.
1428 Remove include of tree-core.h.
1429 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
1430 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1431 fold-const.h, wide-int.h, and inchash.h due to
1432 flattening of tree.h.
1433 * c-dump.c: Ditto.
1434 * c-format.c: Flatten tree.h header files into c-common.h.
1435 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
1436 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1437 fold-const.h, wide-int.h, and inchash.h due to
1438 flattening of tree.h.
1439 * c-dump.c: Include hash-set.h, machmode.h,
1440 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1441 fold-const.h, wide-int.h, and inchash.h due to
1442 flattening of tree.h.
1443 * c-format.c: Include hash-set.h, machmode.h,
1444 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1445 fold-const.h, wide-int.h, inchash.h and real.h due to
1446 flattening of tree.h.
1447 * c-gimplify.c: Include hash-set.h, machmode.h,
1448 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1449 fold-const.h, wide-int.h, and inchash.h due to
1450 flattening of tree.h.
1451 * cilk.c: Ditto.
1452 * c-lex.c: Ditto.
1453 * c-omp.c: Ditto.
1454 * c-opts.c: Ditto.
1455 * c-pch.c: Ditto.
1456 * c-ppoutput.c: Ditto.
1457 * c-pragma.c: Ditto.
1458 * c-pretty-print.c: Ditto.
1459 * c-semantics.c: Ditto.
1460 * c-ubsan.c: Ditto.
1461 * stub-objc.c: Ditto.
1462
f5481fc4
JM
14632015-01-08 Jason Merrill <jason@redhat.com>
1464
1465 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
1466 do_ubsan_in_current_function.
1467 (ubsan_maybe_instrument_reference_or_call): Likewise.
1468 * c-ubsan.h: Declare it.
1469
de35aa66
MS
14702015-01-08 Mike Stump <mikestump@comcast.net>
1471
1472 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
1473
4a9a42ab
MP
14742015-01-07 Marek Polacek <polacek@redhat.com>
1475
1476 PR c/64440
1477 * c-common.c (c_fully_fold_internal): Warn for division and modulo
1478 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
1479
2f42e5de
TS
14802015-01-05 Trevor Saunders <tsaunders@mozilla.com>
1481
1482 PR c++/31397
1483 * c.opt (Wsuggest-override): New option.
1484
5624e564
JJ
14852015-01-05 Jakub Jelinek <jakub@redhat.com>
1486
1487 Update copyright years.
1488
5bd012f8
MP
14892015-01-05 Marek Polacek <polacek@redhat.com>
1490
1491 PR c/64423
1492 * c-common.c (warn_array_subscript_with_type_char): Add location_t
1493 parameter. Use it.
1494 * c-common.h (warn_array_subscript_with_type_char): Update
1495 declaration.
1496
a7fa8d18
ESR
14972014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
1498
1499 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
1500 Control macro with flag_sized_deallocation.
1501
768952be
MU
15022014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
1503
1504 * c.opt (Wdiscarded-array-qualifiers): New option.
1505
1f8d3e84
JJ
15062014-12-19 Jakub Jelinek <jakub@redhat.com>
1507
1508 PR preprocessor/63831
1509 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
1510 and __has_cpp_attribute here.
1511 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
1512 c_common_has_attribute.
1513 * c-common.h (c_common_has_attribute): New prototype.
1514 * c-lex.c (init_c_lex): Set cb->has_attribute to
1515 c_common_has_attribute instead of cb_has_attribute.
1516 (get_token_no_padding): New function.
1517 (cb_has_attribute): Renamed to ...
1518 (c_common_has_attribute): ... this. No longer static. Use
1519 get_token_no_padding, require ()s, don't build TREE_LIST
1520 unnecessarily, fix up formatting, adjust diagnostics, call
1521 init_attributes.
1522
20b06add
JM
15232014-12-15 Jason Merrill <jason@redhat.com>
1524
1525 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
1526 (-Wsized-deallocation): New.
1527 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
1528 to on in C++14 and up.
1529
94a073b2
JM
15302014-12-11 Jason Merrill <jason@redhat.com>
1531
acaa5911
JM
1532 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
1533
94a073b2
JM
1534 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
1535 we aren't complaining about VLAs.
1536
7fb66c15
MP
15372014-12-06 Marek Polacek <polacek@redhat.com>
1538
1539 PR tree-optimization/64183
1540 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
1541 shift-expression if it is integer_type_node. Use types_compatible_p.
1542
b731b390
JJ
15432014-11-29 Jakub Jelinek <jakub@redhat.com>
1544
1545 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
1546 last argument from create_tmp_var_raw and create_tmp_var calls.
1547 * cilk.c (gimplify_cilk_spawn): Likewise.
1548 * c-omp.c (c_finish_omp_atomic): Likewise.
1549
6a4da643
MP
15502014-11-28 Marek Polacek <polacek@redhat.com>
1551
1552 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
1553 instead of unsigned_type_node.
1554
541e35a6
MP
15552014-11-28 Marek Polacek <polacek@redhat.com>
1556
1557 PR c/63862
1558 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
1559 to op1_utype.
1560 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
1561 expression to unsigned_type_node.
1562
dcc97066
MW
15632014-11-20 Mark Wielaard <mjw@redhat.com>
1564
1565 PR debug/38757
1566 * c-opts.c (set_std_c89): Set lang_hooks.name.
1567 (set_std_c99): Likewise.
1568 (set_std_c11): Likewise.
1569 (set_std_cxx98): Likewise.
1570 (set_std_cxx11): Likewise.
1571 (set_std_cxx14): Likewise.
1572 (set_std_cxx1z): Likewise.
1573
aa7da51a
JJ
15742014-11-21 Jakub Jelinek <jakub@redhat.com>
1575
1576 PR target/63764
1577 * c-common.h (convert_vector_to_pointer_for_subscript): Change
1578 return type to bool.
009a3480 1579 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
1580 (convert_vector_to_pointer_for_subscript): Change return type to
1581 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
1582 and copy it into a TARGET_EXPR and use that instead of *vecp
1583 directly.
1584
538dd0b7
DM
15852014-11-19 David Malcolm <dmalcolm@redhat.com>
1586
1587 Merger of git branch "gimple-classes-v2-option-3".
1588 * ChangeLog.gimple-classes: New.
1589 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
1590 from being just a vec<gimple> to a vec<gbind *>.
1591
c39a5e99
JJ
15922014-11-18 Jakub Jelinek <jakub@redhat.com>
1593
1594 PR sanitizer/63813
1595 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
1596 argument to ptype, set type to TREE_TYPE (ptype). Don't call
1597 get_pointer_alignment for non-pointers. Use ptype, or if it is
1598 reference type, corresponding pointer type, as type of kind
1599 argument.
1600 (ubsan_maybe_instrument_reference,
1601 ubsan_maybe_instrument_member_call): Adjust callers.
1602
8537a4a9
MP
16032014-11-15 Marek Polacek <polacek@redhat.com>
1604
1605 PR middle-end/63884
1606 * array-notation-common.c (is_sec_implicit_index_fn): Return false
1607 for NULL fndecl.
1608 (extract_array_notation_exprs): Return for NULL node.
1609
2079956a
JM
16102014-11-12 Joseph Myers <joseph@codesourcery.com>
1611
1612 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
1613 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
1614
1304953e
JJ
16152014-11-12 Jakub Jelinek <jakub@redhat.com>
1616
1617 PR c/59708
1618 * c-common.c (check_builtin_function_arguments): Handle
1619 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
1620
e5e44252
AK
16212014-11-10 Andi Kleen <ak@linux.intel.com>
1622
1623 PR c/60804
1624 * c-common.h (check_no_cilk): Declare.
1625 * cilk.c (get_error_location): New function.
1626 (check_no_cilk): Dito.
1627
e64b984d
AK
16282014-11-10 Andi Kleen <ak@linux.intel.com>
1629
1630 * cilk.c (recognize_spawn): Use expression location
1631 for error message.
1632
13c21655
PC
16332014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
1634
1635 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
1636
42fd12b1
ESR
16372014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
1638
1639 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
1640 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
1641 (__cpp_range_based_for, __cpp_initializer_lists,
1642 __cpp_delegating_constructors, __cpp_nsdmi,
1643 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
1644 for C++11; (__cpp_attribute_deprecated): Remove in favor of
1645 __has_cpp_attribute.
1646 * c-lex.c (cb_has_attribute): New callback CPP function;
1647 (init_c_lex): Set has_attribute callback.
1648
6f450181
RB
16492014-11-04 Richard Biener <rguenther@suse.de>
1650
1651 * c-common.c (shorten_compare): Do not shorten mixed
1652 DFP and non-DFP compares.
1653
26f0e1d6
ESR
16542014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
1655
1656 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
1657 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
1658 Commentary and rearrangement of tests.
1659 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
1660 Commentary and rearrangement of tests.
1661 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
1662 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
1663
ef4bddc2
RS
16642014-10-29 Richard Sandiford <richard.sandiford@arm.com>
1665
1666 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
1667 enum from machine_mode.
1668
c582198b
AM
16692014-10-28 Andrew MacLeod <amacleod@redhat.com>
1670
adfac8df
JJ
1671 * c-common.c: Adjust include files.
1672 * c-gimplify.c: Ditto.
1673 * cilk.c: Ditto.
1674 * c-pragma.c: Ditto.
1675 * c-ubsan.c: Ditto.
c582198b 1676
60393bbc
AM
16772014-10-27 Andrew MacLeod <amacleod@redhat.com>
1678
1679 * c-gimplify.c: Adjust include files.
1680
d723bb7c
MLI
16812014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
1682
1683 PR c++/53061
1684 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
1685 c_common_initialize_diagnostics.
1686 * c-common.h: Likewise.
1687
90f3520e
MP
16882014-10-24 Marek Polacek <polacek@redhat.com>
1689
1690 PR c/56980
1691 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
1692 print "struct"/"union"/"enum" for typedefed names.
1693
59d7607a
MP
16942014-10-23 Marek Polacek <polacek@redhat.com>
1695
1696 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
1697 in unsigned type.
1698
d95a2703
JJ
16992014-10-22 Jakub Jelinek <jakub@redhat.com>
1700 Yury Gribov <y.gribov@samsung.com>
1701
1702 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1703 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
1704 instead of flag_sanitize_recover as bool flag.
1705
8e6ef852
KY
17062014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
1707
1708 * cilk.c: Revert previous change.
1709
948cf550
IZ
17102014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
1711
1712 PR c/63307
1713 * cilk.c: Include vec.h.
1714 (struct cilk_decls): New structure.
1715 (wrapper_parm_cb): Split this function to...
1716 (fill_decls_vec): ...this...
1717 (create_parm_list): ...and this.
1718 (compare_decls): New function.
1719 (for_local_cb): Remove.
1720 (wrapper_local_cb): Ditto.
1721 (build_wrapper_type): For now first traverse and fill vector of
1722 declarations then sort it and then deal with sorted vector.
1723 (cilk_outline): Ditto.
1724 (declare_one_free_variable): Ditto.
1725
92574c7c
MP
17262014-10-17 Marek Polacek <polacek@redhat.com>
1727
1728 * c-opts.c (c_common_post_options): Set warn_implicit_int.
1729 * c.opt (Wimplicit-int): Initialize to -1.
1730
83685514
AM
17312014-10-16 Andrew MacLeod <amacleod@redhat.com>
1732
1733 * c-pragma.c: Adjust include files.
1734 * c-semantics.c: Likewise.
1735
5b8300ea
DD
17362014-10-16 DJ Delorie <dj@redhat.com>
1737
1738 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
1739 multiples of bytes.
1740
5f83e90b
JM
17412014-10-14 Jason Merrill <jason@redhat.com>
1742
1743 PR c++/63455
1744 * c-common.h (CPP_PREPARSED_EXPR): New.
1745 (N_CP_TTYPES): Adjust.
1746
d73326ca
MP
17472014-10-15 Marek Polacek <polacek@redhat.com>
1748
1749 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
1750
78a7c317
DD
17512014-10-14 DJ Delorie <dj@redhat.com>
1752
1753 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
1754 types, not just __int128.
1755 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
1756 types, not just __int128.
1757 (cpp_atomic_builtins): Round pointer sizes up.
1758 (type_suffix): Use type precision, not specific types.
1759 * c-common.c (c_common_reswords): Remove __int128 special case.
1760 (c_common_type_for_size): Check for all __intN types, not just
1761 __int128.
1762 (c_common_type_for_mode): Likewise.
1763 (c_common_signed_or_unsigned_type): Likewise.
1764 (c_build_bitfield_integer_type): Likewise.
1765 (c_common_nodes_and_builtins): Likewise.
1766 (keyword_begins_type_specifier): Likewise.
1767 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
1768 __intN variants.
1769
2a22f99c
TS
17702014-10-12 Trevor Saunders <tsaunders@mozilla.com>
1771
1772 * c-common.c: Use hash_table instead of hashtab.
1773
2a8ef767
ESR
17742014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
1775
adfac8df 1776 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
1777 C++11 section.
1778
3c9aabbd
MG
17792014-10-03 Marc Glisse <marc.glisse@inria.fr>
1780
1781 PR c++/54427
1782 PR c++/57198
1783 PR c++/58845
1784 * c-common.c (warn_logical_operator): Punt for vectors.
1785
a15f7cb8
ESR
17862014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
1787
1788 Implement SD-6: SG10 Feature Test Recommendations
1789 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
1790 macros and the __has_header macro.
1791
8d0cf15e
JM
17922014-09-30 Jason Merrill <jason@redhat.com>
1793
dd5d5481
JM
1794 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
1795 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
1796 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
1797
b752325e
JM
1798 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
1799 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
1800
8d0cf15e
JM
1801 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
1802 * c-common.c (c_common_reswords): Remove __is_convertible_to.
1803
083e891e
MP
18042014-09-24 Marek Polacek <polacek@redhat.com>
1805
1806 PR c/61405
1807 PR c/53874
1808 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
1809
7861b648
AK
18102014-09-23 Andi Kleen <ak@linux.intel.com>
1811
1812 * c-common.c (handle_no_reorder_attribute): New function.
1813 (c_common_attribute_table): Add no_reorder attribute.
1814
9a79452d
JM
18152014-09-22 Joseph Myers <joseph@codesourcery.com>
1816
1817 * c-cppbuiltin.c (c_cpp_builtins): Define
1818 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
1819 modes.
1820
dd69f047
JM
18212014-09-18 Joseph Myers <joseph@codesourcery.com>
1822
1823 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
1824 for supported floating-point modes.
1825
737a4826
MLI
18262014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1827
1828 * c.opt (Wpsabi): Use LangEnabledBy.
1829 * c-opts.c (c_common_handle_option): Do not handle here.
1830
8cc4b7a2
JM
18312014-09-12 Joseph Myers <joseph@codesourcery.com>
1832
1833 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
1834 macros for floating-point modes.
1835
179b5a55
MG
18362014-09-11 Marc Glisse <marc.glisse@inria.fr>
1837
1838 PR target/58757
1839 * c-cppbuiltin.c (builtin_define_float_constants): Correct
1840 __*_DENORM_MIN__ without denormals.
1841
570a11fe
JJ
18422014-09-10 Jakub Jelinek <jakub@redhat.com>
1843
1844 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1845 ubsan_instrument_vla, ubsan_instrument_return): Adjust
1846 ubsan_create_data callers.
1847 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
1848 index is constant or BIT_AND_EXPR with constant mask and is
1849 small enough for the bound.
1850 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
1851 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
1852
b559c810
MLI
18532014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1854
1855 * c.opt: Add CppReason to various flags.
1856 (Wdate-time): Re-sort.
1857 * c-common.c: Include c-common.h earlier.
1858 (struct reason_option_codes_t): Delete.
1859 (c_option_controlling_cpp_error): Prefix global type and struct
1860 with cpp_.
1861
1ef33fd4
MLI
18622014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1863
1864 * c.opt (Wnormalized): New.
1865 (Wnormalized=): Use Enum and Reject Negative.
1866 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
1867
66bb34c0
JM
18682014-09-08 Joseph Myers <joseph@codesourcery.com>
1869
1870 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
1871 digits of floating-point modes if -fbuilding-libgcc.
1872
53d68b9f
JM
18732014-09-05 Joseph Myers <joseph@codesourcery.com>
1874
1875 * c-cppbuiltin.c (c_cpp_builtins): Also define
1876 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
1877 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
1878 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
1879 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
1880 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
1881 __LIBGCC_STACK_GROWS_DOWNWARD__,
1882 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
1883 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
1884 __LIBGCC_DWARF_FRAME_REGISTERS__,
1885 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
1886 __LIBGCC_STACK_POINTER_REGNUM__ and
1887 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
1888 (builtin_define_with_value): Handle backslash-escaping in string
1889 macro values.
1890
f65586dc
RB
18912014-09-05 Richard Biener <rguenther@suse.de>
1892
1893 PR middle-end/63148
1894 * c-format.c (check_format_arg): Properly handle
1895 effectively signed POINTER_PLUS_EXPR offset.
1896
2b71f4a4
MLI
18972014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1898
1899 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
1900 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
1901 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
1902 and Init.
1903 * c-opts.c (c_common_handle_option): Do not handle here.
1904 (sanitize_cpp_opts): Likewise.
1905 * c-common.c (struct reason_option_codes_t): Handle
1906 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
1907
d2e4feca
MP
19082014-09-03 Marek Polacek <polacek@redhat.com>
1909
1910 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
1911
9a771876
JJ
19122014-09-02 Jakub Jelinek <jakub@redhat.com>
1913 Balaji V. Iyer <balaji.v.iyer@intel.com>
1914 Igor Zamyatin <igor.zamyatin@intel.com>
1915
1916 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
1917 * c-common.c (c_common_reswords): Added _Cilk_for.
1918 * c-common.h (enum rid): Added RID_CILK_FOR.
1919 (cilk_for_number_of_iterations): Add declaration.
1920 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
1921 CILK_FOR.
1922 * c-pragma.c (init_pragma): Register "grainsize" pragma.
1923 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
1924
81b5d104
MLI
19252014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1926
1927 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
1928 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
1929 Wundef): Use CPP, Var and Init.
1930 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
1931
b753b37b
MLI
19322014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1933
1934 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
1935 * c-opts.c (c_common_handle_option): Do not handle here.
1936
028aee17
JM
19372014-08-25 Jason Merrill <jason@redhat.com>
1938
1939 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
1940 -std=c++14 and -std=gnu++14, rather than the reverse.
1941 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
1942 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
1943 * c-common.h (cxx_dialect): Remove cxx1y.
1944
e4276ba5
ESR
19452014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
1946
1947 * c-common.h (enum cxx_dialect): Add cxx14.
1948 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
1949 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
1950 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
1951
a545cacd
JM
19522014-08-22 Jason Merrill <jason@redhat.com>
1953
1954 * c.opt (std=gnu++17): Fix alias.
1955
59ea0364
MP
19562014-08-22 Marek Polacek <polacek@redhat.com>
1957
1958 PR c++/62199
1959 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
1960 check for vector types. Drop LHS argument.
1961 * c-common.h (warn_logical_not_parentheses): Adjust.
1962
596e808c
MLI
19632014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1964
1965 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
1966 (Wmultichar): Likewise.
1967 (Wdate-time): Use C-family languages instead of Common. Use CPP
1968 and Var.
1969 * c-opts.c (c_common_handle_option): Do not handle the above
1970 options here.
1971 (sanitize_cpp_opts): Likewise.
1972
18767f65
MLI
19732014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
1974
1975 PR fortran/44054
1976 * c-opts.c: Include tree-diagnostics.h.
1977 (c_diagnostic_finalizer): New.
1978 (c_common_initialize_diagnostics): Use it.
1979
b4413594
MLI
19802014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1981
1982 PR preprocessor/51303
1983 * c-common.c (struct reason_option_codes_t option_codes):
1984 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
1985
43f9a13c
MLI
19862014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1987
1988 PR c/60975
1989 PR c/53063
1990 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
1991 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
1992 (c_common_post_options): Call init_global_opts_from_cpp.
1993 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
1994
04159acf
MP
19952014-08-19 Marek Polacek <polacek@redhat.com>
1996
1997 PR c++/62153
1998 * c-common.c (maybe_warn_bool_compare): New function.
1999 * c-common.h (maybe_warn_bool_compare): Declare.
2000 * c.opt (Wbool-compare): New option.
2001
35aff4fb
MP
20022014-08-19 Marek Polacek <polacek@redhat.com>
2003
2004 * c.opt (Wc99-c11-compat): New option.
2005
177cce46
MP
20062014-08-19 Marek Polacek <polacek@redhat.com>
2007
2008 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
2009 to warn_c90_c99_compat.
2010 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
2011 to -1.
2012
6ae9194f
MLI
20132014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
2014 Steven Bosscher <steven@gcc.gnu.org>
2015
2016 PR c/52952
2017 * c-format.c: Add extra_arg_loc and format_string_loc to struct
2018 format_check_results.
2019 (check_function_format): Use true and add comment for boolean
2020 argument.
2021 (finish_dollar_format_checking): Use explicit location when warning.
2022 (check_format_info): Likewise.
2023 (check_format_arg): Set extra_arg_loc and format_string_loc.
2024 (check_format_info_main): Use explicit location when warning.
2025 (check_format_types): Pass explicit location.
2026 (format_type_warning): Likewise.
2027
8e54f6d3
MLI
20282014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2029
2030 PR fortran/44054
2031 * c-format.c: Handle Fortran flags.
2032
cd4e76fc
IZ
20332014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
2034
2035 PR other/61962
2036 * array-notation-common.c (find_rank): Added handling for other
2037 types of references.
2038
f3bede71
MP
20392014-08-10 Marek Polacek <polacek@redhat.com>
2040
2041 PR c/51849
2042 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
2043 * c.opt (Wc90-c99-compat): Add option.
2044
9f25a338
TS
20452014-08-07 Trevor Saunders <tsaunders@mozilla.com>
2046
2047 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
2048
62e4eb35
MP
20492014-08-03 Marek Polacek <polacek@redhat.com>
2050
2051 * c-common.c (check_case_value): Add location_t parameter. Use it.
2052 (c_add_case_label): Pass loc to check_case_value.
2053
b787e7a2
TS
20542014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2055
2056 * cilk.c: Use hash_map instead of pointer_map.
2057
6e2830c3
TS
20582014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2059
2060 * c-gimplify.c: Use hash_set instead of pointer_set.
2061
a7ee52fb
IZ
20622014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
2063
2064 PR middle-end/61455
2065 * array-notation-common.c (extract_array_notation_exprs): Handling
2066 of DECL_EXPR added.
2067
944fa280
JJ
20682014-08-01 Jakub Jelinek <jakub@redhat.com>
2069
2070 * c-common.h (min_align_of_type): Removed prototype.
2071 * c-common.c (min_align_of_type): Removed.
2072 * c-ubsan.h (ubsan_maybe_instrument_reference,
2073 ubsan_maybe_instrument_member_call): New prototypes.
2074 * c-ubsan.c: Include stor-layout.h and builtins.h.
2075 (ubsan_maybe_instrument_reference_or_call,
2076 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
2077 functions.
2078
b4dfdc11
MG
20792014-07-31 Marc Glisse <marc.glisse@inria.fr>
2080
2081 PR c++/60517
2082 * c.opt (-Wreturn-local-addr): Move to common.opt.
2083
a41844e5
JM
20842014-07-30 Jason Merrill <jason@redhat.com>
2085
2086 PR c++/61659
2087 PR c++/61687
2088 Revert:
2089 * c.opt (-fuse-all-virtuals): New.
2090
976d5a22
TT
20912014-07-30 Tom Tromey <tromey@redhat.com>
2092
2093 PR c/59855
2094 * c.opt (Wdesignated-init): New option.
2095 * c-common.c (c_common_attribute_table): Add "designated_init".
2096 (handle_designated_init): New function.
2097
cdc94aca
MP
20982014-07-24 Marek Polacek <polacek@redhat.com>
2099
2100 PR c/57653
2101 * c-opts.c (c_finish_options): If -imacros is in effect, return.
2102
f41373b6
DS
21032014-07-16 Dodji Seketeli <dodji@redhat.com>
2104
2105 PR preprocessor/60723 - missing system-ness marks for macro tokens
2106 * c-ppoutput.c (struct print::prev_was_system_token): New data
2107 member.
2108 (init_pp_output): Initialize it.
2109 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
2110 (do_line_change): Return a flag saying if a line marker was
2111 emitted or not.
2112 (scan_translation_unit): Detect if the system-ness of the token we
2113 are about to emit is different from the one of the previously
2114 emitted token. If so, emit a line marker. Avoid emitting useless
2115 adjacent line markers. Avoid emitting line markers for tokens
2116 originating from the expansion of built-in macros.
2117 (scan_translation_unit_directives_only): Adjust.
2118
4d661eaa
MP
21192014-07-15 Marek Polacek <polacek@redhat.com>
2120
2121 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
2122 TYPE_MAX_VALUE is NULL.
2123
b108f48f
JJ
21242014-07-14 Jakub Jelinek <jakub@redhat.com>
2125
2126 PR middle-end/61294
2127 * c.opt (Wmemset-transposed-args): New warning.
2128
c0221884
JM
21292014-07-10 Jason Merrill <jason@redhat.com>
2130
2131 PR c++/61659
2132 PR c++/61687
2133 * c.opt (-fuse-all-virtuals): New.
2134
63dfbb95
RB
21352014-07-09 Richard Biener <rguenther@suse.de>
2136
2137 PR c-family/61741
2138 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2139 using unsigned arithmetic if overflow does not wrap instead of
2140 if overflow is undefined.
2141
773ec47f
MP
21422014-07-06 Marek Polacek <polacek@redhat.com>
2143
2144 PR c/6940
2145 * c.opt (Wsizeof-array-argument): New option.
2146
00a7ba58
JJ
21472014-07-03 Jakub Jelinek <jakub@redhat.com>
2148
b1726d6c 2149 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
00a7ba58
JJ
2150 comments->count <= 1, as comments->entries might be NULL.
2151
52ec0ea3
MP
21522014-07-01 Marek Polacek <polacek@redhat.com>
2153
2154 * c.opt (Wint-conversion): New option.
2155
d5c3d343
MP
21562014-07-01 Marek Polacek <polacek@redhat.com>
2157
2158 PR c/58286
2159 * c.opt (Wincompatible-pointer-types): New option.
2160
6e7ceb17
PC
21612014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
2162
2163 PR c++/51400
2164 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
2165 Do not discard TYPE_QUALS of type.
2166
da73100b
JM
21672014-06-26 Jason Merrill <jason@redhat.com>
2168
2169 * c-common.h (enum cxx_dialect): Add cxx1z.
2170 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
2171 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
2172
08eedf75
TJ
21732014-06-26 Teresa Johnson <tejohnson@google.com>
2174
2175 * c-common.h (get_dump_info): Declare.
2176 * c-gimplify.c (c_genericize): Use saved dump files.
2177 * c-opts.c (c_common_parse_file): Begin and end dumps
2178 once around parsing invocation.
2179 (get_dump_info): New function.
2180
7b56b2f8
MP
21812014-06-23 Marek Polacek <polacek@redhat.com>
2182 Andrew MacLeod <amacleod@redhat.com>
2183
2184 PR c/61553
2185 * c-common.c (get_atomic_generic_size): Don't segfault if the
2186 type doesn't have a size.
2187
0e37a2f3
MP
21882014-06-20 Marek Polacek <polacek@redhat.com>
2189
2190 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
2191 (ubsan_walk_array_refs_r): New function.
2192 (c_genericize): Instrument array bounds.
2193 * c-ubsan.c: Include "internal-fn.h".
2194 (ubsan_instrument_division): Mark instrumented arrays as having
2195 side effects. Adjust ubsan_type_descriptor call.
2196 (ubsan_instrument_shift): Likewise.
2197 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
2198 (ubsan_instrument_bounds): New function.
2199 (ubsan_array_ref_instrumented_p): New function.
2200 (ubsan_maybe_instrument_array_ref): New function.
2201 * c-ubsan.h (ubsan_instrument_bounds): Declare.
2202 (ubsan_array_ref_instrumented_p): Declare.
2203 (ubsan_maybe_instrument_array_ref): Declare.
2204
22052014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
2206
2207 PR lto/61123
2208 * c.opt (fshort-enums): Add to LTO.
2209 * c.opt (fshort-wchar): Likewise.
2210
5c3d09f7
MP
22112014-06-16 Marek Polacek <polacek@redhat.com>
2212
2213 PR c/60439
2214 * c.opt (Wswitch-bool): Add Var.
2215
9cf32741
JJ
22162014-06-12 Jakub Jelinek <jakub@redhat.com>
2217
2218 PR middle-end/61486
2219 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
2220 #pragma omp target teams or
2221 #pragma omp {,target }teams distribute simd.
2222
62984918
JM
22232014-06-12 Jason Merrill <jason@redhat.com>
2224
2225 * c.opt (Wabi=, fabi-compat-version): New.
2226 * c-opts.c (c_common_handle_option): Handle -Wabi=.
2227 (c_common_post_options): Handle flag_abi_compat_version default.
2228 Disallow -fabi-compat-version=1.
2229 * c-common.h (abi_version_crosses): New.
2230
f961457f
JH
22312014-06-11 Jan Hubicka <hubicka@ucw.cz>
2232
adfac8df 2233 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
2234 section names that are no longer trees.
2235
92d28cbb
JJ
22362014-06-10 Jakub Jelinek <jakub@redhat.com>
2237
2238 PR fortran/60928
2239 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
2240 (omp_pragmas): ... back here.
2241
742938c9
MP
22422014-06-05 Marek Polacek <polacek@redhat.com>
2243
2244 PR c/49706
2245 * c-common.c (warn_logical_not_parentheses): New function.
2246 * c-common.h (warn_logical_not_parentheses): Declare.
2247 * c.opt (Wlogical-not-parentheses): New option.
2248
9d548dfb
MP
22492014-06-04 Marek Polacek <polacek@redhat.com>
2250
2251 PR c/30020
2252 * c-common.c (check_case_bounds): Add location parameter.
2253 Use it.
2254 (c_add_case_label): Pass loc to check_case_bounds.
2255
fedfecef
MP
22562014-06-03 Marek Polacek <polacek@redhat.com>
2257
2258 PR c/60439
2259 * c.opt (Wswitch-bool): New option.
2260
f6a7cffc
TS
22612014-05-22 Thomas Schwinge <thomas@codesourcery.com>
2262
040d18b6
TS
2263 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
2264 Remove prototypes.
2265 (record_types_used_by_current_var_decl): Move prototype to where
2266 it belongs.
2267
f6a7cffc
TS
2268 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
2269 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
2270 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
2271
632f2871
RS
22722014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
2273
2274 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
2275 * c-common.c (c_common_nodes_and_builtins): Don't initialize
2276 void_zero_node.
2277 * c-pretty-print.c (pp_c_void_constant): New function.
2278 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
2279 (c_pretty_printer::expression): Handle VOID_CST.
2280 * cilk.c (extract_free_variables): Likewise.
2281 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
2282 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
2283
766090c2
TS
22842014-05-17 Trevor Saunders <tsaunders@mozilla.com>
2285
2286 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
2287 * c-pragma.c (push_alignment): Adjust.
2288 (handle_pragma_push_options): Likewise.
2289
661a0813
MP
22902014-05-09 Marek Polacek <polacek@redhat.com>
2291
2292 PR c/50459
2293 * c-common.c (check_user_alignment): Return -1 if alignment is error
2294 node.
2295 (handle_aligned_attribute): Don't call default_conversion on
2296 FUNCTION_DECLs.
2297 (handle_vector_size_attribute): Likewise.
2298 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
2299 (handle_sentinel_attribute): Call default_conversion and allow even
2300 integral types as an argument.
2301
2793eeab
MP
23022014-05-08 Marek Polacek <polacek@redhat.com>
2303
2304 PR c/61053
2305 * c-common.c (min_align_of_type): New function factored out from...
2306 (c_sizeof_or_alignof_type): ...here.
2307 * c-common.h (min_align_of_type): Declare.
2308
f827930a
MP
23092014-05-08 Marek Polacek <polacek@redhat.com>
2310
2311 PR c/61077
2312 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
2313 parameter type of main.
2314
ca49b74e
DD
23152014-05-07 DJ Delorie <dj@redhat.com>
2316
2317 * c-cppbuiltin.c (print_bits_of_hex): New.
2318 (builtin_define_type_minmax): Print values using hex so as not to
2319 require a pre-computed list of string values.
2320
1d60af08
KZ
23212014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
2322 Mike Stump <mikestump@comcast.net>
2323 Richard Sandiford <rdsandiford@googlemail.com>
2324
2325 * c-ada-spec.c: Include wide-int.h.
2326 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
2327 (dump_generic_ada_node): Use wide-int interfaces.
2328 * c-common.c: Include wide-int-print.h.
2329 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
2330 (pointer_int_sum): Use wide-int interfaces.
2331 (c_common_nodes_and_builtins): Use make_int_cst.
2332 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
2333 (handle_alloc_size_attribute): Use wide-int interfaces.
2334 (get_nonnull_operand): Likewise.
2335 * c-format.c (get_constant): Use tree_fits_uhwi_p.
2336 * c-lex.c: Include wide-int.h.
2337 (narrowest_unsigned_type): Take a widest_int rather than two
2338 HOST_WIDE_INTs.
2339 (narrowest_signed_type): Likewise.
2340 (interpret_integer): Update accordingly. Use wide-int interfaces.
2341 (lex_charconst): Use wide-int interfaces.
2342 * c-pretty-print.c: Include wide-int.h.
2343 (pp_c_integer_constant): Use wide-int interfaces.
2344 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
2345 INT_CST_LT_UNSIGNED.
2346
b15458be
RB
23472014-05-06 Richard Biener <rguenther@suse.de>
2348
2349 * c-opts.c (c_common_post_options): For -freestanding,
2350 -fno-hosted and -fno-builtin disable pattern recognition
2351 if not enabled explicitely.
2352
6577374e
MP
23532014-05-02 Marek Polacek <polacek@redhat.com>
2354
2355 * c.opt (Wsizeof-pointer-memaccess): Describe option.
2356
d00887e8
MP
23572014-05-01 Marek Polacek <polacek@redhat.com>
2358
2359 PR c/43245
2360 * c.opt (Wdiscarded-qualifiers): Add.
2361
f8ed5150
MP
23622014-04-30 Marek Polacek <polacek@redhat.com>
2363
2364 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
2365 INT_MIN / -1 sanitization only for integer types.
2366
45484dcf
MP
23672014-04-25 Marek Polacek <polacek@redhat.com>
2368
2369 PR c/18079
2370 * c-common.c (handle_noinline_attribute): Warn if the attribute
2371 conflicts with always_inline attribute.
2372 (handle_always_inline_attribute): Warn if the attribute conflicts
2373 with noinline attribute.
2374
38e514c0
MP
23752014-04-25 Marek Polacek <polacek@redhat.com>
2376
2377 PR c/60156
2378 * c-common.c (check_main_parameter_types): Warn about variadic main.
2379
44875f92
MS
23802014-04-24 Mike Stump <mikestump@comcast.net>
2381
2382 * c.opt (Wshadow-ivar): Default to on.
2383
dcaaa5a0
DP
23842014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
2385
2386 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
2387
c07d7c02
MP
23882014-04-23 Marek Polacek <polacek@redhat.com>
2389
2390 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
2391
1c33c9b7
JJ
23922014-04-22 Jakub Jelinek <jakub@redhat.com>
2393
2394 PR sanitizer/60275
2395 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
2396 if flag_sanitize_undefined_trap_on_error.
2397 (ubsan_instrument_division, ubsan_instrument_shift,
2398 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
2399 if !flag_sanitize_recover.
2400
793c625f
MG
24012014-04-22 Marc Glisse <marc.glisse@inria.fr>
2402
2403 PR libstdc++/43622
2404 * c-common.c (registered_builtin_types): Make non-static.
2405 * c-common.h (registered_builtin_types): Declare.
2406
b0f1bf36
RB
24072014-04-14 Richard Biener <rguenther@suse.de>
2408 Marc Glisse <marc.glisse@inria.fr>
2409
2410 PR c/60819
2411 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
2412 apply may-alias the scalar pointer type when applicable.
2413
3b07fa4a
IZ
24142014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
2415
2416 PR middle-end/60467
2417 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
2418 as possible argument for Cilk_spawn.
2419
cbbd2b1c
TB
24202014-04-11 Tobias Burnus <burnus@net-b.de>
2421
2422 PR c/60194
2423 * c.opt (Wformat-signedness): Add
2424 * c-format.c(check_format_types): Use it.
2425
6415bd5d
JM
24262014-04-11 Jason Merrill <jason@redhat.com>
2427
2428 PR c++/57926
2429 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
2430 default_conversion for an array argument.
2431
6525783a
MP
24322014-04-08 Marek Polacek <polacek@redhat.com>
2433
2434 PR sanitizer/60745
2435 * c-ubsan.c: Include asan.h.
2436 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
2437
880a467b
NS
24382014-04-03 Nathan Sidwell <nathan@codesourcery.com>
2439
2440 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
2441
7b59ff2d
MP
24422014-04-02 Marek Polacek <polacek@redhat.com>
2443
2444 * c-common.h (c_expand_expr): Remove declaration.
2445
8edbfaa6
JJ
24462014-03-28 Jakub Jelinek <jakub@redhat.com>
2447
2448 PR c++/60689
2449 * c-common.c (add_atomic_size_parameter): When creating new
2450 params vector, push the size argument first.
2451
07d72e1d
JJ
24522014-03-26 Jakub Jelinek <jakub@redhat.com>
2453
2454 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2455 ubsan_instrument_vla, ubsan_instrument_return): Adjust
2456 ubsan_create_data callers.
2457
b35e0fa0
JJ
24582014-03-22 Jakub Jelinek <jakub@redhat.com>
2459
2460 PR debug/60603
2461 * c-opts.c (c_finish_options): Restore cb_file_change call to
2462 <built-in>.
2463
39a1ebb3
JJ
24642014-03-13 Jakub Jelinek <jakub@redhat.com>
2465
2466 PR middle-end/36282
2467 * c-pragma.c (apply_pragma_weak): Only look at
2468 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
2469 DECL_ASSEMBLER_NAME_SET_P (decl).
2470 (maybe_apply_pending_pragma_weaks): Exit early if
2471 vec_safe_is_empty (pending_weaks) rather than only when
2472 !pending_weaks.
2473 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
2474 set assembler name back to NULL afterwards.
2475
a07f6ed2
JM
24762014-03-11 Jason Merrill <jason@redhat.com>
2477
2478 * c.opt: Add -std=gnu++14.
2479
75b107f5
IB
24802014-03-11 Ian Bolton <ian.bolton@arm.com>
2481
2482 * c-opts.c (c_common_post_options): Don't override
2483 -ffp-contract=fast if unsafe-math-optimizations is on.
2484
f42c637e
PM
24852014-03-08 Paulo Matos <paulo@matos-sorge.com>
2486
2487 * c.opt: Enable LTO FE for fshort-double.
2488
70e24808
JM
24892014-03-07 Jason Merrill <jason@redhat.com>
2490
2491 * c.opt: Add -std=c++14.
2492
3af9c5e9
MP
24932014-03-06 Marek Polacek <polacek@redhat.com>
2494
2495 PR c/60197
2496 * cilk.c (contains_cilk_spawn_stmt): New function.
2497 (contains_cilk_spawn_stmt_walker): Likewise.
2498 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
2499 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
2500
b3bdf019
JJ
25012014-03-03 Jakub Jelinek <jakub@redhat.com>
2502
2503 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
2504 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
2505 even when flag_preprocess_only.
2506
ca7e759d
JM
25072014-02-26 Jason Merrill <jason@redhat.com>
2508
2509 PR c++/59231
2510 PR c++/11586
2511 * c-common.c (shorten_compare): Don't check
2512 c_inhibit_evaluation_warnings.
2513
28e41874
JJ
25142014-02-19 Jakub Jelinek <jakub@redhat.com>
2515
cca615af
JJ
2516 PR c/37743
2517 * c-common.c (c_common_nodes_and_builtins): When initializing
2518 c_uint{16,32,64}_type_node, also set corresponding
2519 uint{16,32,64}_type_node to the same value.
2520
28e41874
JJ
2521 PR c++/60267
2522 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
2523 for PRAGMA_IVDEP if flag_preprocess_only.
2524
c2bf53a1
JJ
25252014-02-12 Jakub Jelinek <jakub@redhat.com>
2526
2527 PR c/60101
2528 * c-common.c (merge_tlist): If copy is true, call new_tlist,
2529 if false, add ADD itself, rather than vice versa.
2530 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
2531 copy. For SAVE_EXPR, only call merge_tlist once.
2532
8fcbce72
JJ
25332014-02-08 Jakub Jelinek <jakub@redhat.com>
2534
2535 PR middle-end/60092
2536 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
2537 and tree_to_uhwi.
2538 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
2539 functions.
2540 (c_common_attribute_table): Add alloc_align and assume_aligned
2541 attributes.
2542
0a756a3f
MP
25432014-02-06 Marek Polacek <polacek@redhat.com>
2544
2545 PR c/60087
2546 * c-common.c (warn_for_sign_compare): Call warning_at with location
2547 instead of warning.
2548
7ec4847a
MP
25492014-02-05 Marek Polacek <polacek@redhat.com>
2550
2551 PR c/53123
2552 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
2553 statement.
2554
66f20604
MP
25552014-02-04 Marek Polacek <polacek@redhat.com>
2556
2557 PR c/60036
2558 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
2559 SAVE_EXPR.
2560
5d77fb19
MG
25612014-02-03 Marc Glisse <marc.glisse@inria.fr>
2562
2563 PR c++/53017
2564 PR c++/59211
2565 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
2566 handle_vector_size_attribute, handle_nonnull_attribute): Call
2567 default_conversion on the attribute argument.
2568 (handle_nonnull_attribute): Increment the argument number.
2569
81e5eca8
MP
25702014-01-31 Marek Polacek <polacek@redhat.com>
2571
2572 PR c/59963
2573 * c-common.c (add_atomic_size_parameter): Pass vNULL to
2574 build_function_call_vec.
2575 (resolve_overloaded_builtin): Likewise.
2576 * c-common.h (build_function_call_vec): Adjust declaration.
2577
68fca595
MP
25782014-01-30 Marek Polacek <polacek@redhat.com>
2579
2580 PR c/59940
2581 * c-common.h (unsafe_conversion_p): Adjust declaration.
2582 (warnings_for_convert_and_check): Likewise.
2583 (convert_and_check): Likewise.
2584 * c-common.c (unsafe_conversion_p): Add location parameter. Call
2585 expansion_point_location_if_in_system_header on it.
2586 (warnings_for_convert_and_check): Add location parameter. Call
2587 expansion_point_location_if_in_system_header on it. Use it.
2588 (convert_and_check): Add location parameter. Use it.
2589 (conversion_warning): Likewise.
2590 (c_add_case_label): Adjust convert_and_check calls.
2591 (scalar_to_vector): Adjust unsafe_conversion_p calls.
2592
b72271b9
BI
25932014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
2594
2595 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
2596 flag_cilkplus.
2597 * c-pragma.c (init_pragma): Likewise.
2598 * c.opt: Likewise.
2599
393e8e8b
MP
26002014-01-23 Marek Polacek <polacek@redhat.com>
2601
2602 PR c/59846
2603 * c-common.c (shorten_compare): Add location_t parameter.
2604 * c-common.h (shorten_binary_op): Adjust declaration.
2605
f04dda30
MP
26062014-01-23 Marek Polacek <polacek@redhat.com>
2607
2608 PR c/58346
2609 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
2610 * c-common.h: Declare it.
2611
621955cb
EB
26122014-01-20 Eric Botcazou <ebotcazou@adacore.com>
2613
2614 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
2615 * c-ada-spec.c (dump_ads): Likewise.
2616 (cpp_check): Likewise.
2617 (dump_ada_specs): Likewise.
2618
26192014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
2620
2621 PR c++/49718
2622 * c-common.c (handle_no_instrument_function_attribute): Allow
2623 no_instrument_function attribute in class member
2624 definition/declaration.
2625
241f845a
JJ
26262014-01-15 Jakub Jelinek <jakub@redhat.com>
2627
2628 PR c/58943
2629 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
2630 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
2631 being COMPOUND_EXPR.
2632 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
2633 operand a SAVE_EXPR and second MODIFY_EXPR.
2634
e83b8e2e
JJ
26352014-01-09 Jakub Jelinek <jakub@redhat.com>
2636
2637 PR target/58115
2638 * c-pch.c (c_common_write_pch): Call
2639 prepare_target_option_nodes_for_pch.
2640
23a5b65a
RS
26412014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2642
2643 Update copyright years
2644
f9030485
RS
26452014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2646
2647 * array-notation-common.c, c-cilkplus.c: Use the standard form for
2648 the copyright notice.
2649
f2aa696b
EB
26502013-12-28 Eric Botcazou <ebotcazou@adacore.com>
2651
2652 * c-ada-spec.c (print_constructor): New function.
2653 (print_destructor): Retrieve the origin of the destructor.
2654 (print_ada_declaration): Revamp handling of constructors/destructors.
2655
1f26ac87
JM
26562013-12-23 Stuart Hastings <stuart@apple.com>
2657 Bill Maddox <maddox@google.com>
2658 Jason Merrill <jason@redhat.com>
2659
2660 * c.opt: Add -fdeclone-ctor-dtor.
2661 * c-opts.c (c_common_post_options): Default to on iff -Os.
2662
41958c28
BI
26632013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
2664
2665 * c-common.c (c_common_attribute_table): Added "cilk simd function"
2666 attribute.
2667 * c-pragma.h (enum pragma_cilk_clause): Remove.
2668 (enum pragma_omp_clause): Added the following fields:
2669 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
2670 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
2671 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
2672 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
2673 PRAGMA_CILK_CLAUSE_UNIFORM.
2674
b1726d6c 2675
12893402
BI
26762013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
2677
2678 * cilk.c (cilk_outline): Made this function non-static.
2679 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
2680 (create_cilk_wrapper): Added a new parameter: a function pointer.
2681 (c_install_body_w_frame_cleanup): Remove
2682 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
2683 * c-common.h (cilk_outline): New prototype.
2684 (gimplify_cilk_spawn): Removed two parameters.
2685 (cilk_install_body_with_frame_cleanup): New prototype.
2686 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
2687 CILK_SPAWN_STMT case.
2688
085b42ed
BS
26892013-12-11 Bernd Schmidt <bernds@codesourcery.com>
2690
2ce064c3
BS
2691 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
2692
085b42ed
BS
2693 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
2694 (int_array_type_node): Remove.
2695 * c-common.c (c_common_nodes_and_builtins): Don't build it.
2696
9e36c9ed
MP
26972013-12-05 Marek Polacek <polacek@redhat.com>
2698
2699 PR c/52023
2700 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
2701 [ADJUST_FIELD_ALIGN].
2702
296674db
JM
27032013-12-04 Joseph Myers <joseph@codesourcery.com>
2704
2705 PR c/52023
2706 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
2707 and check field alignment if set.
2708 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
2709 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
2710
b1726d6c 27112013-12-04 Jakub Jelinek <jakub@redhat.com>
31e071ae
MP
2712 Marek Polacek <polacek@redhat.com>
2713
2714 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
2715 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
2716
d7947e19
L
27172013-11-29 H.J. Lu <hongjiu.lu@intel.com>
2718
2719 PR c/59309
2720 * cilk.c (gimplify_cilk_spawn): Properly handle function without
2721 arguments.
2722
fad7652e
JJ
27232013-11-29 Jakub Jelinek <jakub@redhat.com>
2724
2725 PR c/59280
2726 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
2727 goto invalid. If it is error_mark_node, don't issue further
2728 diagnostics.
2729
8b5e1202
SO
27302013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
2731
2732 * c.opt (Wopenmp-simd): New.
2733
0a508bb6
JJ
27342013-11-22 Jakub Jelinek <jakub@redhat.com>
2735
2736 * c-ubsan.h (ubsan_instrument_return): New prototype.
2737 * c-ubsan.c (ubsan_instrument_return): New function.
2738
2fb9a547
AM
27392013-11-22 Andrew MacLeod <amacleod@redhat.com>
2740
2741 * c-common.c: Add required include files from gimple.h.
2742 * c-gimplify.c: Likewise
2743 * cilk.c: Likewise
2744
8400e75e
DM
27452013-11-22 David Malcolm <dmalcolm@redhat.com>
2746
2747 * c-common.c (unsafe_conversion_p): Remove use of
2748 EXPR_LOC_OR_HERE macro.
2749 (conversion_warning): Likewise.
2750 (warnings_for_convert_and_check): Likewise.
2751 (warn_for_collisions_1): Likewise.
2752 (shorten_compare): Likewise, and remove use of in_system_header
2753 macro, using the location from the former.
2754 * c-lex.c (dump_one_header): Remove use of input_filename macro.
2755 (cb_def_pragma): Remove use of in_system_header macro.
2756 (lex_string): Likewise.
2757 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
2758
eb1ce453
KZ
27592013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2760 Mike Stump <mikestump@comcast.net>
2761 Richard Sandiford <rdsandiford@googlemail.com>
2762
2763 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
2764 instead of TREE_INT_CST_LOW, in cases where there is a protecting
2765 tree_fits_shwi_p or tree_fits_uhwi_p.
2766 (dump_generic_ada_node): Likewise.
2767 * c-format.c (check_format_arg): Likewise.
2768 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2769
6b3b8c27
KZ
27702013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2771
2772 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
2773
49b0aa18
JC
27742013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
2775
2776 PR c/53001
2777 * c-common.c (unsafe_conversion_p): Make this function
2778 return an enumeration with more detail.
2779 (conversion_warning): Use the new return type of
2780 unsafe_conversion_p to separately warn either about conversions
2781 that lower floating point number precision or about the other
2782 kinds of conversions.
2783 * c-common.h (enum conversion_safety): New enumeration.
2784 (unsafe_conversion_p): switching return type to
2785 conversion_safety enumeration.
2786 * c.opt: Adding new warning -Wfloat-conversion and
2787 enabling it with -Wconversion.
2788
b826515a
BS
27892013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
2790
2791 * c-opts.c: Include plugin.h.
2792 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
2793
b9a55b13
MP
27942013-11-19 Marek Polacek <polacek@redhat.com>
2795
2796 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
2797 call.
2798 (ubsan_instrument_shift): Likewise.
2799 (ubsan_instrument_vla): Likewise.
2800
7d362f6c
RS
28012013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2802
2803 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
2804 cast to unsigned type.
2805
386b1f1f
RS
28062013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2807
2808 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
2809 tree_low_cst.
2810 (complete_array_type): Update comment to refer to tree_to_[su]hwi
2811 rather than tree_low_cst.
2812
ae7e9ddd
RS
28132013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2814
2815 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
2816 tree_to_uhwi throughout.
2817
9439e9a1
RS
28182013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2819
2820 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
2821 tree_low_cst (..., 0) with tree_to_shwi throughout.
2822
cc269bb6
RS
28232013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2824
2825 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
2826 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
2827
9541ffee
RS
28282013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2829
2830 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
2831 host_integerp (..., 0) with tree_fits_shwi_p throughout.
2832
c02065fc
AH
28332013-11-15 Aldy Hernandez <aldyh@redhat.com>
2834
2835 * c-cilkplus.c: New file.
2836 * c-common.c (readonly_error): Add location argument.
2837 * c-common.h (readonly_error): Same.
2838 (c_finish_cilk_clauses): Protoize.
2839 (c_check_cilk_loop): Same.
2840 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
2841 Do not fail on error_mark_node.
2842 Abstract increment canonicalization to here...
2843 (c_omp_for_incr_canonicalize_ptr): New.
2844 c-pragma.c (init_pragma): Register "simd" pragma.
2845 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
2846 (enum pragma_cilk_clause): New.
2847
9cc65f15
RS
28482013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
2849
2850 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
2851 wchar_type and host_integerp checks.
2852
18f429e2
AM
28532013-11-14 Andrew MacLeod <amacleod@redhat.com>
2854
2855 * c-common.c: Likewise.
2856 * c-gimplify.c: Likewise.
2857 * cilk.c: Likewise.
2858
d8a2d370
DN
28592013-11-14 Diego Novillo <dnovillo@google.com>
2860
2861 * c-common.c: Include fold-const.h.
2862 Include stor-layout.h.
2863 Include calls.h.
2864 Include stringpool.h.
2865 Include attribs.h.
2866 Include varasm.h.
2867 Include trans-mem.h.
2868 * c-cppbuiltin.c: Include stor-layout.h.
2869 Include stringpool.h.
2870 * c-format.c: Include stringpool.h.
2871 * c-lex.c: Include stringpool.h.
2872 Include stor-layout.h.
2873 * c-pragma.c: Include stringpool.h.
2874 Include attribs.h.
2875 Include varasm.h.
2876 Include gcc-symtab.h.
2877 * c-pretty-print.c: Include stor-layout.h.
2878 Include attribs.h.
2879 * cilk.c: Include stringpool.h.
2880 Include calls.h.
2881
38b7bc7f
JM
28822013-11-13 Joseph Myers <joseph@codesourcery.com>
2883
2884 * c-common.h (enum rid): Add RID_AUTO_TYPE.
2885 * c-common.c (c_common_reswords): Add __auto_type.
2886 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
2887
45b0be94
AM
28882013-11-12 Andrew MacLeod <amacleod@redhat.com>
2889
18f429e2
AM
2890 * c-common.c: Include gimplify.h.
2891 * c-gimplify.c: Likewise.
2892 * cilk.c: Likewise.
2893 * c-omp.c: Include gimple-expr.h instead of gimple.h.
2894 * c-ubsan.c: Don't include gimple.h.
45b0be94 2895
582d9b50
JM
28962013-11-12 Joseph Myers <joseph@codesourcery.com>
2897
2898 * c-common.c (c_common_reswords): Add _Thread_local.
2899
6b28e197
JM
29002013-11-09 Joseph Myers <joseph@codesourcery.com>
2901
2902 * c-common.c (atomic_size_supported_p): New function.
2903 (resolve_overloaded_atomic_exchange)
2904 (resolve_overloaded_atomic_compare_exchange)
2905 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
2906 Use it instead of comparing size with a local list of sizes.
2907
267bac10
JM
29082013-11-07 Andrew MacLeod <amacleod@redhat.com>
2909 Joseph Myers <joseph@codesourcery.com>
2910
2911 * c-common.h (enum rid): Add RID_ATOMIC.
2912 * c-common.c (c_common_reswords): Add _Atomic.
2913 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
2914 (keyword_is_type_qualifier): Accept RID_ATOMIC.
2915 * c-format.c (check_format_types): Check for extra _Atomic
2916 qualifiers in format argument.
2917 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
2918 (pp_c_type_qualifier_list): Mention _Atomic in comment.
2919
5157b91e
TB
29202013-11-06 Tobias Burnus <burnus@net-b.de>
2921
2922 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
2923
6dbe0958
JM
29242013-11-06 Joseph Myers <joseph@codesourcery.com>
2925
2926 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
2927 standards modes.
2928 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
2929 to mean lack of IEEE 754 support.
2930
e8ff5196
TB
29312013-11-05 Tobias Burnus <burnus@net-b.de>
2932
2933 * c.opt (-Wdate-time): New option
2934 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
2935
254a0760
JM
29362013-11-05 Joseph Myers <joseph@codesourcery.com>
2937
2938 * c-cppbuiltin.c (cpp_iec_559_value): Test
2939 flag_excess_precision_cmdline not flag_excess_precision.
2940
6d7f7e0a
TB
29412013-11-05 Tobias Burnus <burnus@net-b.de>
2942
2943 * c.opt (fopenmp-simd): New option.
2944 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
2945 (omp_pragmas): ... this new struct.
2946 (c_pp_lookup_pragma): Also walk omp_pragmas.
2947 (init_pragma): Init pragmas for -fopenmp-simd.
2948
55a7f02f
MP
29492013-11-04 Marek Polacek <polacek@redhat.com>
2950
2951 PR c++/58979
2952 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
2953
9193fb05
JM
29542013-11-04 Joseph Myers <joseph@codesourcery.com>
2955
2956 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
2957 New functions.
2958 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
2959
94159ecf
EB
29602013-11-04 Eric Botcazou <ebotcazou@adacore.com>
2961
2962 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
2963 (dump_ada_specs): Adjust prototype of second callback.
2964 * c-ada-spec.c (cpp_check): New global variable.
2965 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
2966 (print_generic_ada_decl): Likewise.
2967 (has_static_fields): Change return type to bool and add guard.
2968 (has_nontrivial_methods): New predicate.
2969 (is_tagged_type): Change return type to bool.
2970 (separate_class_package): Call has_nontrivial_methods.
2971 (pp_ada_tree_identifier): Minor tweaks.
2972 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
2973 (dump_ada_array_domains): Likewise.
2974 (dump_ada_array_type): Likewise.
2975 (dump_template_types): Remove cpp_check parameter and do not pass it to
2976 dump_generic_ada_node.
2977 (dump_ada_template): Likewise.
2978 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
2979 recursively.
2980 (print_ada_methods): Change return type to integer. Remove cpp_check
2981 parameter and do not pass it down.
2982 (dump_nested_types): Remove cpp_check parameter and do not pass it to
2983 dump_generic_ada_node.
2984 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
2985 accessing methods.
2986 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
2987 down. Use has_nontrivial_methods to recognize C++ classes. Use return
2988 value of print_ada_methods.
2989 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
2990 Set cpp_check to it before invoking dump_ada_nodes.
2991 (dump_ada_specs): Likewise.
2992
b906f4ca
MP
29932013-11-03 Marek Polacek <polacek@redhat.com>
2994
2995 * c-ubsan.c: Don't include hash-table.h.
2996 (ubsan_instrument_vla): New function.
2997 * c-ubsan.h: Declare it.
2998
5e20cdc9
DM
29992013-10-31 David Malcolm <dmalcolm@redhat.com>
3000
3001 Automated part of renaming of symtab_node_base to symtab_node.
3002
3003 Patch autogenerated by rename_symtab.py from
3004 https://github.com/davidmalcolm/gcc-refactoring-scripts
3005 revision 58bb219cc090b2f4516a9297d868c245495ee622
3006
3007 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
3008 symtab_node_base to symtab_node.
3009
7057e645
ESR
30102013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
3011
3012 Implement C++14 digit separators.
3013 * c-lex.c (interpret_float): Remove digit separators from scratch string
3014 before building real literal.
3015
193ea7bc
JJ
30162013-10-30 Jakub Jelinek <jakub@redhat.com>
3017
3018 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
3019
939b37da
BI
30202013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
3021
3022 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
3023 fields.
3024 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
3025 enabled.
3026 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
3027 (insert_cilk_frame): New prototype.
3028 (cilk_init_builtins): Likewise.
3029 (gimplify_cilk_spawn): Likewise.
3030 (c_cilk_install_body_w_frame_cleanup): Likewise.
3031 (cilk_detect_spawn_and_unwrap): Likewise.
3032 (cilk_set_spawn_marker): Likewise.
3033 (build_cilk_sync): Likewise.
3034 (build_cilk_spawn): Likewise.
3035 * cilk.c: New file.
3036
67348ccc
DM
30372013-10-29 David Malcolm <dmalcolm@redhat.com>
3038
3039 Patch autogenerated by refactor_symtab.py from
3040 https://github.com/davidmalcolm/gcc-refactoring-scripts
3041 revision 58bb219cc090b2f4516a9297d868c245495ee622
3042
3043 * c-gimplify.c (c_genericize): Update for conversion of symtab types
3044 to a true class hierarchy.
3045 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
3046
d570872d
RS
30472013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
3048
3049 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
3050
98906124
JL
30512013-10-26 Jeff Law <law@redhat.com>
3052
adfac8df
JJ
3053 * c-common.c (c_define_builtins): Remove mudflap support.
3054 * c.opt: Ignore and warn for mudflap options.
98906124 3055
d73749df 30562013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
3057
3058 PR other/33426
3059 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
3060 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
3061
3f04b1bb
JM
30622013-10-23 Jason Merrill <jason@redhat.com>
3063
3064 * c-format.c (gcc_cxxdiag_char_table): Add %X.
3065
acf0174b
JJ
30662013-10-11 Jakub Jelinek <jakub@redhat.com>
3067
acd15a28
JJ
3068 * c-common.h (omp_clause_mask::operator !=): New method.
3069 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
3070 instead of if (mask & something) tests everywhere.
3071
acf0174b
JJ
3072 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
3073 201307 instead of 201107.
3074 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
3075 (c_common_attribute_table): Add "omp declare target" and
3076 "omp declare simd" attributes.
3077 (handle_omp_declare_target_attribute,
3078 handle_omp_declare_simd_attribute): New functions.
3079 * c-omp.c: Include c-pragma.h.
3080 (c_finish_omp_taskgroup): New function.
3081 (c_finish_omp_atomic): Add swapped argument, if true,
3082 build the operation first with rhs, lhs arguments and use NOP_EXPR
3083 build_modify_expr.
3084 (c_finish_omp_for): Add code argument, pass it down to make_code.
3085 (c_omp_split_clauses): New function.
3086 (c_split_parallel_clauses): Removed.
3087 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
3088 c_omp_declare_simd_clauses_to_decls): New functions.
3089 * c-common.h (omp_clause_mask): New type.
3090 (OMP_CLAUSE_MASK_1): Define.
3091 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
3092 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
3093 omp_clause_mask::operator |, omp_clause_mask::operator &,
3094 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
3095 omp_clause_mask::operator ==): New methods.
3096 (enum c_omp_clause_split): New.
3097 (c_finish_omp_taskgroup): New prototype.
3098 (c_finish_omp_atomic): Add swapped argument.
3099 (c_finish_omp_for): Add code argument.
3100 (c_omp_split_clauses): New prototype.
3101 (c_split_parallel_clauses): Removed.
3102 (c_omp_declare_simd_clauses_to_numbers,
3103 c_omp_declare_simd_clauses_to_decls): New prototypes.
3104 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
3105 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
3106 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
3107 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
3108 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
3109 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
3110 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
3111 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
3112 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
3113 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
3114 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
3115 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
3116 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
3117 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
3118 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
3119 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
3120 PRAGMA_OMP_CLAUSE_UNIFORM.
3121
826cacfe
MG
31222013-10-09 Marc Glisse <marc.glisse@inria.fr>
3123
3124 PR tree-optimization/20318
3125 * c-common.c (handle_returns_nonnull_attribute): New function.
3126 (c_common_attribute_table): Add returns_nonnull.
3127
2284b034
MG
31282013-10-03 Marc Glisse <marc.glisse@inria.fr>
3129
3130 PR c++/19476
3131 * c.opt (fcheck-new): Move to common.opt.
3132
b56e9788
MP
31332013-09-25 Marek Polacek <polacek@redhat.com>
3134 Jakub Jelinek <jakub@redhat.com>
3135
3136 PR sanitizer/58413
3137 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
3138 an expression if we can prove it is correct.
3139 (ubsan_instrument_division): Likewise. Remove unnecessary
3140 check.
3141
ce6923c5
MP
31422013-09-18 Marek Polacek <polacek@redhat.com>
3143
3144 PR sanitizer/58411
3145 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
3146 Declare it.
3147 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
3148
fb5610fb
IS
31492013-09-14 Iain Sandoe <iain@codesourcery.com>
3150
3151 PR target/48094
3152 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
3153 fobjc-gc, freplace-objc-classes): Accept for LTO.
3154
88b0e79e
JC
31552013-09-13 Jacek Caban <jacek@codeweavers.com>
3156
3157 * c-target.def: New hook
3158
c9b0866a
PC
31592013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
3160
3161 PR c++/43452
3162 * c.opt (Wdelete-incomplete): Add.
3163
0af94e6f
JR
31642013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
3165
3166 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
3167 (vector_types_compatible_elements_p): New function.
3168 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
3169 declaration.
3170 (vector_types_compatible_elements_p): Declare.
3171
7c26172c
GDR
31722013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
3173
3174 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
3175 a virtual member function.
3176 (pp_simple_type_specifier): Remove.
3177 (pp_c_type_specifier): Likewise.
3178 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
3179 Rename from pp_c_type_specifier. Adjust.
3180 (c_pretty_printer::c_pretty_printer): Do not assign to
3181 simple_type_specifier.
3182
20059c8b
GDR
31832013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3184
3185 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
3186 member function.
3187 (c_pretty_printer::storage_class_specifier): Likewise.
3188 (c_pretty_printer::initializer): Likewise.
3189 (pp_declaration): Remove.
3190 (pp_declaration_specifiers): Likewise.
3191 (pp_abstract_declarator): Likewise.
3192 (pp_declarator): Likewise.
3193 (pp_type_id): Likewise.
3194 (pp_statement): Likewise.
3195 (pp_constant): Likewise.
3196 (pp_id_expression): Likewise.
3197 (pp_primary_expression): Likewise.
3198 (pp_unary_expression): Likewise.
3199 (pp_multiplicative_expression): Likewise.
3200 (pp_conditional_expression): Likewise.
3201 (pp_assignment_expression): Likewise.
3202 (pp_expression): Likewise.
3203 (pp_c_type_id): Likewise.
3204 (pp_c_storage_class_specifier): Likewise.
3205 * c-pretty-print.c (pp_c_type_cast): Tidy.
3206 (pp_c_pointer): Likewise.
3207 (pp_c_type_specifier): Likewise.
3208 (pp_c_parameter_type_list): Likewise.
3209 (pp_c_function_definition): Likewise.
3210 (pp_c_init_declarator): Likewise.
3211 (pp_c_initializer_list): Likewise.
3212 (pp_c_constructor_elts): Likewise.
3213 (c_pretty_printer::direct_abstract_declarator): Likewise.
3214 (c_pretty_printer::declaration_specifiers): Likewise.
3215 (c_pretty_printer::primary_expression): Likewise.
3216 (c_pretty_printer::postfix_expression): Likewise.
3217 (c_pretty_printer::type_id): Rename from pp_c_type_id.
3218 (c_pretty_printer::storage_class_specifier): Rename from
3219 pp_c_storage_class_specifier.
3220 (c_pretty_printer::initializer): Rename from pp_c_initializer.
3221 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
3222 storage_class_specifier, initializer, offset_list, flags.
3223
de5a5fa1
MP
32242013-08-30 Marek Polacek <polacek@redhat.com>
3225
3226 * c-ubsan.c: New file.
3227 * c-ubsan.h: New file.
3228
8f0e4d72
GDR
32292013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
3230
3231 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
3232 member function.
3233 (c_pretty_printer::declaration_specifiers): Likewise.
3234 (c_pretty_printer::declarator): Likewise.
3235 (c_pretty_printer::abstract_declarator): Likewise.
3236 (c_pretty_printer::direct_abstract_declarator): Likewise.
3237 (c_pretty_printer::direct_declarator): Likewise.
3238 (c_pretty_printer::function_specifier): Likewise.
3239 (pp_declaration): Adjust.
3240 (pp_declaration_specifiers): Likewise.
3241 (pp_abstract_declarator): Likewise.
3242 (pp_direct_declarator): Likewise.
3243 (pp_function_specifier): Likewise.
3244 (pp_direct_abstract_declarator): Remove as unused.
3245 (pp_c_declaration): Remove.
3246 (pp_c_declaration_specifiers): Likewise.
3247 (pp_c_declarator): Likewise.
3248 (pp_c_direct_declarator): Likewise.
3249 (pp_c_function_specifier): Likewise.
3250 (pp_c_direct_abstract_declarator): Likewise.
3251 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
3252 from pp_c_abstract_declarator. Adjust.
3253 (c_pretty_printer::direct_abstract_declarator): Rename from
3254 pp_c_direct_abstract_declarator. Adjust.
3255 (c_pretty_printer::function_specifier): Rename from
3256 pp_c_function_specifier. Adjust.
3257 (c_pretty_printer::declaration_specifiers): Rename from
3258 pp_c_declaration_specifiers. Adjust.
3259 (c_pretty_printer::direct_declarator): Rename from
3260 pp_c_direct_declarator. Adjust.
3261 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
3262 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
3263 (c_pretty_printer::c_pretty_printer): Do not assign to
3264 declaration, declaration_specifiers, declarator,
3265 direct_declarator, direct_abstract_declarator, function_specifier.
3266
00d34d3a
GDR
32672013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
3268
3269 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
3270 virtual member function.
3271 (c_pretty_printer::multiplicative_expression): Likewise.
3272 (c_pretty_printer::conditional_expression): Likewise.
3273 (c_pretty_printer::assignment_expression): Likewise.
3274 (c_pretty_printer::expression): Likewise.
3275 (pp_unary_expression): Adjust.
3276 (pp_multiplicative_expression): Likewise.
3277 (pp_assignment_expression): Likewise.
3278 (pp_conditional_expression): Likewise.
3279 (pp_expression): Likewise.
3280 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
3281 from pp_c_unary_expression. Adjust.
3282 (c_pretty_printer::multiplicative_expression): Rename from
3283 pp_c_multiplicative_expression. Adjust.
3284 (c_pretty_printer::conditional_expression): Rename from
3285 pp_c_conditional_expression. Adjust.
3286 (c_pretty_printer::assignment_expression): Rename from
3287 pp_c_assignment_expression. Adjust.
3288 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
3289 (c_pretty_printer::c_pretty_printer): Do not assign to
3290 unary_expression, multiplicative_expression,
3291 conditional_expression, expression.
3292
fb22178f
GDR
32932013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3294
3295 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
3296 virtual member function.
3297 (pp_postfix_expression): Adjust.
3298 (pp_c_postfix_expression): Remove.
3299 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
3300 from pp_c_postfix_expression. Adjust.
3301 (c_pretty_printer::c_pretty_printer): Do not assign to
3302 postfix_expression.
3303
7ecc2600
GDR
33042013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3305
3306 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
3307 virtua member function.
3308 (pp_primary_expression): Adjust.
3309 (pp_c_primary_expression): Remove.
3310 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
3311 from pp_c_primary_expression. Adjust.
3312 (pp_c_initializer_list): Use pp_primary_expression.
3313 (c_pretty_printer::c_pretty_printer): Do not assign to
3314 primary_expression.
3315
0691175f
GDR
33162013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3317
3318 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
3319 * c-pretty-print.c (M_): Remove.
3320 (c_pretty_printer::translate_string): Define.
3321 (pp_c_type_specifier): Use it.
3322 (pp_c_primary_expression): Likewise.
3323 (pp_c_expression): Likewise.
3324
66dfe4c4
GDR
33252013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
3326
3327 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
3328 virtual function.
3329 (pp_c_id_expression): Remove.
3330 (pp_id_expression): Adjust.
3331 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
3332 pp_c_id_expression. Adjust.
3333 (pp_c_postfix_expression): Use pp_id_expression.
3334 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
3335
ca43e9d5
GDR
33362013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
3337
3338 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
3339 member function.
3340 (pp_constant): Adjust.
3341 (pp_c_constant): Remove.
3342 * c-pretty-print.c (c_pretty_printer::constant): Rename from
3343 pp_c_constant. Adjust.
3344 (pp_c_constant)
3345 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
3346 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
3347
da6ca2b5
GDR
33482013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
3349
3350 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
3351 (c_pretty_printer::c_pretty_printer): Declare.
3352 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
3353 c_pretty_printer_init. Adjust.
3354 (print_c_tree): Do not call c_pretty_printer_init.
3355 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
3356
65a372f4
AC
33572013-08-09 Arnaud Charlet <charlet@adacore.com>
3358
3359 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
3360
fd9b0f32
PC
33612013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
3362
3363 PR c++/58080
3364 * c-common.c (pointer_int_sum): Add bool parameter.
3365 * c-common.h (pointer_int_sum): Adjust declaration.
3366
e0aec1e9
GDR
33672013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
3368
3369 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
3370 c_pretty_printer variable.
3371
b066401f
GDR
33722013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
3373
3374 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
3375 (pp_base): Remove.
3376 (pp_c_base): Likewise. Adjust users.
3377 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
3378 (pp_c_whitespace): Do not call pp_base.
3379 (pp_c_left_paren): Likewise.
3380 (pp_c_right_paren): Likewise.
3381 (pp_c_left_brace): Likewise.
3382 (pp_c_right_brace): Likewise.
3383 (pp_c_left_bracket): Likewise.
3384 (pp_c_right_bracket): Likewise.
3385 (pp_c_dot): Likewise.
3386 (pp_c_ampersand): Likewise.
3387 (pp_c_star): Likewise.
3388 (pp_c_arrow): Likewise.
3389 (pp_c_semicolon): Likewise.
3390 (pp_c_complement): Likewise.
3391 (pp_c_exclamation): Likewise.
3392 (pp_c_direct_declarator): Likewise.
3393 (pp_c_ws_string): Likewise.
3394 (pp_c_identifier): Likewise.
3395 (pp_c_statement): Likewise.
3396 (print_c_tree): Likewise.
3397
65e5a578
ESR
33982013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
3399
3400 PR c++/58072
3401 * c-common.c (c_parse_error): Catch user-defined literal tokens and
3402 provide useful error strings.
3403
137a1a27
GDR
34042013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3405
3406 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
3407 printer functions instead of pp_string or operators and punctuators.
3408 (dump_generic_ada_node): Likewise.
3409 * c-pretty-print.c (pp_c_type_specifier): Likewise.
3410 (pp_c_relational_expression): Likewise.
3411 (pp_c_logical_or_expression): Likewise.
3412
07838b13
GDR
34132013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3414
3415 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
3416 functions instead of pp_character.
3417 (pp_ada_tree_identifier): Likewise.
3418 (dump_ada_double_name): Likewise.
3419 (dump_ada_function_declaration): Likewise.
3420 (dump_ada_array_domains): Likewise.
3421 (dump_template_types): Likewise.
3422 (dump_generic_ada_node): Likewise.
3423 (print_ada_declaration): Likewise.
3424 (print_ada_struct_decl): Likewise.
3425 * c-pretty-print.c (pp_c_integer_constant): Likewise.
3426
433cc7b0
TT
34272013-07-23 Tom Tromey <tromey@redhat.com>
3428
3429 * c-common.h (enum rid) <RID_GENERIC>: New constant.
3430 * c-common.c (c_common_reswords): Add _Generic.
3431
688010ba
OB
34322013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
3433
3434 * c-common.c: Fix typos.
3435 * c-common.h: Likewise.
3436
2a99e5e6
LL
34372013-07-13 Lubos Lunak <l.lunak@suse.cz>
3438
3439 PR c++/55203
3440 * c-common.c (c_common_attribute_table): Add warn_unused.
3441 (handle_warn_unused_attribute): New.
3442
c26302d5
JJ
34432013-07-10 Jakub Jelinek <jakub@redhat.com>
3444
3445 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
3446 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
3447
dfeadaa0
PC
34482013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
3449
3450 PR c++/57869
3451 * c.opt: Add Wconditionally-supported.
3452
6a2fa4b2
GS
34532013-07-08 Graham Stott <graham.stott@btinternet.com>
3454
adfac8df 3455 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
3456 unused variables l_length and l_node.
3457
ecdbd01a 34582013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
3459
3460 PR c/57821
3461 * c-common.c (complete_array_type): Delay folding first index
3462 like other indices. When folding, check for index overflow.
3463
bedc293e
MG
34642013-06-27 Marc Glisse <marc.glisse@inria.fr>
3465
3466 PR c++/57509
3467 * c-common.h (c_build_vec_perm_expr): New complain argument.
3468 * c-common.c (c_build_vec_perm_expr): Likewise.
3469 Use save_expr also in C++.
3470
604b2bfc
GDR
34712013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
3472
3473 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
3474 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3475 * c-opts.c (c_common_post_options): Likewise.
3476
dfeadaa0 34772013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
3478
3479 * array-notation-common.c (length_mismatch_in_expr): Changed the
3480 parameter type's from a dynamic array to a vec_tree. Also removed
3481 the size parameters.
3482 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
3483 the change above.
3484
2ce86d2e
BI
34852013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
3486
3487 * c-common.h (struct cilkplus_an_parts): New structure.
3488 (struct cilkplus_an_loop_parts): Likewise.
3489 (cilkplus_extract_an_triplets): New prototype.
3490 (fix_sec_implicit_args): Likewise.
3491 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
3492 (fix_sec_implicit_args): Likewise.
604b2bfc 3493
07a6825b
BI
34942013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
3495
3496 * array-notation-common.c (find_inv_trees): Removed an unwanted
3497 typecasting.
3498 * c-common.h (struct inv_list::additional_tcodes): Changed type from
3499 enum rid to enum tree_code.
3500
08346abd
JH
35012013-06-11 Jan Hubicka <jh@suse.cz>
3502
3503 * c-common.c (handle_alias_ifunc_attribute): Do not set
3504 DECL_EXTERNAL for weakref variables.
3505 * c-pragma.c (handle_pragma_weak): Make sure aliases
3506 are not declared as external.
3507
d60f1706
BI
35082013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
3509
3510 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
3511 function from c/c-array-notation.c.
3512 (is_cilkplus_reduce_builtin): Likewise.
3513 (find_rank): Likewise.
3514 (extract_array_notation_exprs): Likewise.
3515 (replace_array_notations): Likewise.
3516 (find_inv_trees): Likewise.
3517 (replace_inv_trees): Likewise.
3518 (contains_array_notation_expr): Likewise.
3519 (find_correct_array_notation_type): Likewise.
3520 * c-common.h (struct inv_list): Moved this struct from the file
3521 c/c-array-notation.c and added a new field called additional tcodes.
3522 (length_mismatch_in_expr_p): New prototype.
3523 (is_cilkplus_reduce_builtin): Likewise.
3524 (find_rank): Likewise.
3525 (extract_array_notation_exprs): Likewise.
3526 (replace_array_notation): Likewise.
3527 (find_inv_trees): Likewise.
3528 (replace_inv_trees): Likewise.
3529 (find_correct_array_notation_type): Likewise.
dfeadaa0 3530
36536d79
BI
35312013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
3532
3533 * c-common.c (c_define_builtins): When cilkplus is enabled, the
3534 function array_notation_init_builtins is called.
3535 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
3536 * c-common.def (ARRAY_NOTATION_REF): New tree.
3537 * c-common.h (build_array_notation_expr): New function declaration.
3538 (build_array_notation_ref): Likewise.
3539 (extract_sec_implicit_index_arg): New extern declaration.
3540 (is_sec_implicit_index_fn): Likewise.
3541 (ARRAY_NOTATION_CHECK): New define.
3542 (ARRAY_NOTATION_ARRAY): Likewise.
3543 (ARRAY_NOTATION_START): Likewise.
3544 (ARRAY_NOTATION_LENGTH): Likewise.
3545 (ARRAY_NOTATION_STRIDE): Likewise.
3546 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
3547 ARRAY_NOTATION_REF.
3548 (pp_c_expression): Likewise.
3549 * c.opt (flag_enable_cilkplus): New flag.
3550 * array-notation-common.c: New file.
3551
f7716d57
JJ
35522013-05-14 Jakub Jelinek <jakub@redhat.com>
3553
3554 PR c++/57274
3555 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
3556
a5e0cd1d
MG
35572013-05-10 Marc Glisse <marc.glisse@inria.fr>
3558
3559 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
3560 vectors.
3561
f6bc1c4a
HS
35622013-05-07 Han Shen <shenhan@google.com>
3563
3564 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
3565
3f12f6e9
SKS
35662013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3567
3568 * c-common.c (check_user_alignment): Emit error for negative values.
3569
61949153
PC
35702013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3571
3572 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
3573
e93e18e9
PC
35742013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3575
3576 * c-cppbuiltin.c (c_cpp_builtins): Do not define
3577 __GXX_EXPERIMENTAL_CXX1Y__.
3578
44d90fe1
PC
35792013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3580 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3581
3582 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
3583 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
3584 to simply use OPT_Wpointer_arith.
3585 (c_sizeof_or_alignof_type): Likewise.
3586
13f39b2e
PC
35872013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3588
3589 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
3590
4b84d650
JJ
35912013-04-12 Jakub Jelinek <jakub@redhat.com>
3592
3593 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
3594 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
3595 specifiers.
3596
fb037b5d
SB
35972013-04-07 Steven Bosscher <steven@gcc.gnu.org>
3598
3599 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
3600
4e856798
PC
36012013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
3602
3603 * c-common.c (pointer_int_sum): Remove dead code.
3604
4b1baac8
RS
36052013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
3606
3607 PR middle-end/56524
3608 * c-common.c (handle_optimize_attribute): Don't call
3609 save_optabs_if_changed.
3610
0b50e654
JJ
36112013-03-05 Jakub Jelinek <jakub@redhat.com>
3612
3613 PR middle-end/56461
3614 * c-pch.c (pch_init): Free target_validity at the end.
3615
48c41403
JJ
36162013-03-04 Jakub Jelinek <jakub@redhat.com>
3617
3618 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
3619
e664c61c
KS
36202013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
3621 Jakub Jelinek <jakub@redhat.com>
3622
3623 PR sanitizer/56454
3624 * c-common.c (handle_no_sanitize_address_attribute): New function.
3625 (c_common_attribute_table): Add no_sanitize_address attribute.
3626 (handle_no_address_safety_analysis_attribute): Add
3627 no_sanitize_address attribute, not no_address_safety_analysis
3628 attribute.
3629
a475fd3d 36302013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
3631
3632 PR target/52555
3633 * c-common.c (handle_optimize_attribute): Call
3634 save_optabs_if_changed.
3635
f6007d99
JJ
36362013-02-18 Jakub Jelinek <jakub@redhat.com>
3637 Steven Bosscher <steven@gcc.gnu.org>
3638
3639 PR pch/54117
3640 * c-opts.c (c_common_post_options): If debug info is enabled
3641 and non-dwarf*, refuse to load PCH files and when writing PCH
3642 file warn.
3643
cf35e2b1
JJ
36442013-02-05 Jakub Jelinek <jakub@redhat.com>
3645
3646 PR middle-end/56167
3647 * c-common.c (handle_error_attribute): Fix condition.
3648
32887460
JJ
36492013-01-30 Jakub Jelinek <jakub@redhat.com>
3650
3651 PR c++/55742
3652 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
3653
5af057d8
JM
36542013-01-18 Jason Merrill <jason@redhat.com>
3655
3656 PR target/54908
3657 * c.opt (-fextern-tls-init): New.
3658 * c-opts.c (c_common_post_options): Handle it.
3659
cc83c823
JJ
36602013-01-09 Jakub Jelinek <jakub@redhat.com>
3661
3662 PR c/48418
3663 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
3664 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
3665 and is either negative or bigger or equal to type precision
3666 of the first operand.
3667
a859517f
MP
36682012-12-03 Marek Polacek <polacek@redhat.com>
3669
3670 PR c/55570
3671 * c-common.c (check_user_alignment): Swap order of tests,
3672 check TREE_CODE first.
3673
2d7aa578
ESR
36742012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
3675
3676 PR c++/52654
3677 * c-common.h (overflow_type): New enum.
3678 (build_userdef_literal): Add overflow_type argument.
3679 (tree_userdef_literal): Add overflow_type.
3680 (USERDEF_LITERAL_OVERFLOW): New access macro.
3681 * c-common.c (build_userdef_literal): Add overflow_type
3682 argument.
3683 * c-lex.c (c_lex_with_flags): Add overflow_type to
3684 build_userdef_literal calls.
3685 (interpret_integer, interpret_float): Add overflow_type argument.
3686
cc3c4f62
RB
36872012-11-28 Richard Biener <rguenther@suse.de>
3688
3689 PR c/35634
3690 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
3691 here and use a type with proper overflow behavior for types that would
3692 need to be promoted for the arithmetic.
3693
77bc5132
JJ
36942012-11-23 Jakub Jelinek <jakub@redhat.com>
3695
3696 PR sanitizer/55435
3697 * c-common.c (handle_no_address_safety_analysis_attribute): New
3698 function.
3699 (c_common_attribute_table): Add no_address_safety_analysis.
3700
5dc99c46
SB
37012012-11-16 Simon Baldwin <simonb@google.com>
3702
3703 * c.opt: Add f[no-]canonical-system-headers.
3704 * c-opts.c (c_common_handle_option): Handle
3705 OPT_fcanonical_system_headers.
3706
a4a0016d
ESR
37072012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
3708
3709 PR c++/54413
3710 * c-opts.c (c_common_handle_option): Set new flags.
3711 * c.opt: Describe new flags.
3712
7dbb85a7
JM
37132012-11-09 Jason Merrill <jason@redhat.com>
3714
3715 * c.opt (Wabi-tag): New.
3716
ad7bac31
AK
37172012-11-09 Andi Kleen <ak@linux.intel.com>
3718
3719 PR 55139
3720 * c-common.c (get_atomic_generic_size): Mask with
3721 MEMMODEL_MASK
3722
7332899a
MLI
37232012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3724
3725 PR c/53063
3726 * c.opt (Wformat): Make it Alias Wformat=1.
3727 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
3728 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
3729 LangEnabledBy.
3730 (Wformat=): RejectNegative. Use LangEnabledBy.
3731 (Wnonnull): Use LangEnabledBy.
3732 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
3733 * c-format.c (set_Wformat): Delete.
3734 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
3735 (maybe_read_dollar_number): Likewise.
3736 (avoid_dollar_number): Likewise.
3737 (finish_dollar_format_checking): Likewise.
3738 (check_format_info): Likewise.
3739 (check_format_info_main): Likewise.
3740 (check_format_types): Likewise.
3741 (format_type_warning): Likewise.
3742 * c-common.c (int): Likewise.
3743 (check_function_sentinel): Likewise.
3744 * c-common.h (warn_format,set_Wformat): Do not declare here.
3745
34a180a6
MLI
37462012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3747
3748 PR c/53063
3749 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
3750 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
3751 Use LangEnabledBy.
3752 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
3753 common.opt.
3754 (Wvariadic-macros): Init(1).
3755 * c-opts.c (c_common_handle_option): Do not handle them
3756 explicitly.
3757 (c_common_post_options): Likewise.
3758 (sanitize_cpp_opts): warn_unused_macros is now
3759 cpp_warn_unused_macros.
3760 (push_command_line_include): Likewise.
3761 * c-common.c (warn_unknown_pragmas): Do not define.
3762 * c-common.h (warn_unknown_pragmas): Do not declare.
3763
3f46d6a5
MLI
37642012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3765
3766 PR c/51294
3767 * c-common.c (conversion_warning): Handle conditional expressions.
3768
880661a4
JW
37692012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
3770
3771 PR c++/54930
3772 * c.opt (Wreturn_local_addr): Define new option.
3773
4514a96b
JM
37742012-10-25 Jason Merrill <jason@redhat.com>
3775
f14edc1a
JM
3776 * c.opt (Wvirtual-move-assign): New.
3777
4514a96b
JM
3778 * c.opt (Winherited-variadic-ctor): New.
3779
93100c6b
MG
37802012-10-25 Marc Glisse <marc.glisse@inria.fr>
3781
3782 PR c++/54427
3783 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
3784
1efcb8c6
JM
37852012-10-23 Joseph Myers <joseph@codesourcery.com>
3786
3787 * c-common.h (pch_cpp_save_state): Declare.
3788 * c-target.def (c_preinclude): New hook.
3789 * c-opts.c (done_preinclude): New.
3790 (push_command_line_include): Handle default preincluded header.
3791 (cb_file_change): Call pch_cpp_save_state when calling
3792 push_command_line_include.
3793 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
3794 (pch_cpp_save_state): New.
3795 (pch_init): Call pch_cpp_save_state conditionally, instead of
3796 calling cpp_save_state.
3797
4a0ae68e
MLI
37982012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3799
3800 PR c/53063
3801 PR c/40989
3802 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
3803 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
3804 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
3805 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
3806 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
3807 * c-opts.c (c_common_handle_option): Remove explicit handling from
3808 here.
3809 (c_common_post_options): Likewise.
3810
67e4210b
EB
38112012-10-18 Eric Botcazou <ebotcazou@adacore.com>
3812
3813 * c-ada-spec.c (LOCATION_COL): Delete.
3814 (compare_location): New function.
3815 (compare_node): Use it.
3816 (compare_comment): Likewise.
3817
65d4f2cd
MLI
38182012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
3819
3820 PR c/53063
3821 PR c/40989
3822 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
3823 * c-opts.c (c_common_handle_option): Do not set them here. Add
3824 comment.
3825 (c_common_post_options): Likewise.
3826
909881cb
EB
38272012-10-16 Eric Botcazou <ebotcazou@adacore.com>
3828
3829 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
3830 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
3831 Remove POINTER_TYPE handling, add large unsigned handling and use
3832 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
3833
3a785c97
JJ
38342012-10-12 Jakub Jelinek <jakub@redhat.com>
3835
3836 PR c/54381
3837 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
3838 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
3839 locs and array of 3 trees instead of just single loc and single
3840 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
3841 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
3842 For *cmp* builtins that take two sources strings report warnings
3843 about first and second source, not about destination and source.
3844
5e54f81d
MG
38452012-10-12 Marc Glisse <marc.glisse@inria.fr>
3846
3847 PR c++/53055
3848 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
3849
f5b02f1e
EB
38502012-10-11 Eric Botcazou <ebotcazou@adacore.com>
3851
3852 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
3853 declaring something coming from another file.
3854
b46dbc6c
AC
38552012-10-10 Arnaud Charlet <charlet@adacore.com>
3856
f5b02f1e 3857 PR ada/54845
b46dbc6c
AC
3858 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
3859
5d9de0d0
PC
38602012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
3861
3862 PR c++/54194
3863 * c-common.c (warn_about_parentheses): Add location_t parameter;
3864 use EXPR_LOC_OR_LOC.
3865 * c-common.h: Update declaration.
3866
a212e43f
MG
38672012-10-09 Marc Glisse <marc.glisse@inria.fr>
3868
3869 PR c++/54427
3870 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
3871 more operations. Make error messages optional.
3872 * c-common.h (enum stv_conv): Moved from c-typeck.c.
3873 (scalar_to_vector): Declare.
3874
b1db7f91
JM
38752012-10-08 Jason Merrill <jason@redhat.com>
3876
3877 * c-common.c (c_common_reswords): Add thread_local.
3878
e28d52cf
DS
38792012-10-08 Dodji Seketeli <dodji@redhat.com>
3880
3881 PR c++/53528 C++11 attribute support
3882 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
3883 new functions.
3884 * c-common.c (check_cxx_fundamental_alignment_constraints): New
3885 static function.
3886 (handle_aligned_attribute): In choose strictest alignment
3887 among many. Use new check_cxx_fundamental_alignment_constraints.
3888 (handle_transparent_union_attribute): In c++11 attribute syntax,
3889 don't look through typedefs.
3890
3b78de56
AC
38912012-10-04 Arnaud Charlet <charlet@adacore.com>
3892
3893 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
3894 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
3895 out of dumpfile.h.
3896
6040bb5f
DC
38972012-09-25 Dehao Chen <dehao@google.com>
3898
3899 PR middle-end/54645
3b78de56 3900 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
3901 map when read in the pch.
3902
0b07a57e
AC
39032012-09-18 Arnaud Charlet <charlet@adacore.com>
3904
3905 * c-ada-spec.c: Style fixes.
3906
da5182be
TQ
39072012-09-18 Thomas Quinot <quinot@adacore.com>
3908
3909 * c.opt (-fada-spec-parent): Define new command line switch.
3910 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
3911 is specified, generate binding spec as a child of the specified unit.
3912
0ccb505d
PC
39132012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
3914 Manuel López-Ibáñez <manu@gcc.gnu.org>
3915
3916 PR c++/53210
3917 * c.opt ([Winit-self]): Enabled by -Wall in C++.
3918
c583af79
AC
39192012-08-23 Arnaud Charlet <charlet@adacore.com>
3920
3921 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
3922 for pointers, and add missing Convention C pragma.
3923 (print_ada_struct_decl): Add missing aliased keyword.
3924 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
3925
1a4049e7
JJ
39262012-08-17 Jakub Jelinek <jakub@redhat.com>
3927
3928 * c-common.c (sizeof_pointer_memaccess_warning): New function.
3929 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
3930 * c-opts.c (c_common_handle_option): Enable it for -Wall.
3931 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
3932 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
3933
70b5e7dc
RG
39342012-08-10 Richard Guenther <rguenther@suse.de>
3935
3936 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
3937
f8923f7e
SB
39382012-08-07 Steven Bosscher <steven@gcc.gnu.org>
3939
3940 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
3941 instead of separate pp_newline and pp_flush.
3942 (print_c_tree): Likewise.
3943
e45abe1f
RH
39442012-07-26 Richard Henderson <rth@redhat.com>
3945
3946 * c-common.c (handle_hot_attribute): Allow labels.
3947 (handle_cold_attribute): Likewise.
3948
332f1d24
JJ
39492012-07-20 Jakub Jelinek <jakub@redhat.com>
3950
3951 PR c++/28656
3952 * c-common.c (check_function_nonnull): Handle multiple nonnull
3953 attributes properly.
3954
7ee2468b
SB
39552012-07-16 Steven Bosscher <steven@gcc.gnu.org>
3956
3957 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
3958 * c-ada-spec.c: Likewise.
3959 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
3960
ee7b28eb
SB
39612012-07-14 Steven Bosscher <steven@gcc.gnu.org>
3962
3963 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
3964 Remove code conditional on it.
3965
6bdf3519
SB
39662012-07-11 Steven Bosscher <steven@gcc.gnu.org>
3967
3968 * c-gimplify.c: Do not include basic-block.h.
3969 * c-common.c: Do not include linfuncs.h.
3970
532aafad
SB
39712012-07-08 Steven Bosscher <steven@gcc.gnu.org>
3972
3973 * c-common.h: Include tree.h.
3974
8d0d1915
JM
39752012-07-02 Jason Merrill <jason@redhat.com>
3976
3977 PR c++/53524
3978 * c-common.c (get_priority): Call default_conversion.
3979
fbc873ad
UB
39802012-07-01 Uros Bizjak <ubizjak@gmail.com>
3981
3982 * c-pch.c (c_common_write_pch): Remove unused variables.
3983
d4a10d0a
SB
39842012-06-29 Steven Bosscher <steven@gcc.gnu.org>
3985
3986 * cppspec.c: Moved from gcc/ to here.
3987
6f3a2e23
KT
39882012-06-27 Kai Tietz <ktietz@redhat.com>
3989
3990 PR preprocessor/37215
3991 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
3992
8ca92d04
SB
39932012-06-21 Steven Bosscher <steven@gcc.gnu.org>
3994
3995 * c-common.h (c_common_print_pch_checksum): Remove.
3996 * c-pch.c: Do not include output.h.
3997 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
3998 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
3999 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
4000 (struct c_pch_header): Remove.
4001 (get_ident): Update gpch version.
4002 (pch_init): Do not print executable_checksum to asm_out_file.
4003 Do not fail if there is no asm_out_file to read back from. Set
4004 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
4005 (c_common_write_pch): Verify that nothing was written to asm_out_file
4006 since pch_init was called. Do not write a c_pch_header, and do not
4007 copy from asm_out_file to the PCH.
4008 (c_common_read_pch): Do not read a c_pch_header, and do not restore
4009 the content of asm_out_file from the PCH.
4010 (c_common_print_pch_checksum): Remove.
4011 * c-opts.c (c_common_init): Print out executable_checksum directly.
4012
70f42967
SB
40132012-06-19 Steven Bosscher <steven@gcc.gnu.org>
4014
4015 * c-target.def (objc_declare_unresolved_class_reference,
4016 objc_declare_class_definition): Add new hooks.
4017
a8781821
SB
40182012-06-19 Steven Bosscher <steven@gcc.gnu.org>
4019
4020 * c-lex.c: Do not include output.h.
4021 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
4022 Remove uses of ASM_OUTPUT_IDENT.
4023
9e1a8dd1
RR
40242012-06-15 Marc Glisse <marc.glisse@inria.fr>
4025
4026 PR c++/51033
4027 * c-common.h (c_build_vec_perm_expr): Move decl here.
4028 * c-common.c (c_build_vec_perm_expr): Move definition
4029 here.
4030
6f07a821
SB
40312012-06-06 Steven Bosscher <steven@gcc.gnu.org>
4032
4033 * c.opt (fconserve-space): Turn into a no-op.
4034
9faeb493 40352012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
4036
4037 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
4038 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
4039 both the start and end of the function.
4040
a4b7d13c
SB
40412012-06-04 Steven Bosscher <steven@gcc.gnu.org>
4042
4043 * c-common.c: Do not include output.h.
4044 * c-pragma.c: Likewise.
4045
c265f413
SA
40462012-06-04 Steven Bosscher <steven@gcc.gnu.org>
4047
4048 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
4049 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
4050 (lang_decl_name): Handle namespace decls.
4051
be7a421e
SB
40522012-05-31 Steven Bosscher <steven@gcc.gnu.org>
4053
4054 * c-ada-spec.c: Do not include output.h.
4055 * c-semantics.c: Likewise.
4056
65de6659
JM
40572012-05-29 Joseph Myers <joseph@codesourcery.com>
4058
4059 * c-common.c: Fix typo.
4060
ca5f4331
MM
40612012-05-29 Michael Matz <matz@suse.de>
4062
4063 * c-common.h (c_expand_decl): Remove prototype.
4064
4f7f7aca
MLI
40652012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
4066
4067 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
4068 * c-opts.c (c_common_handle_option): Remove code handling
4069 warn_missing_braces.
4070
4a792f9b
PC
40712012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
4072
4073 PR c++/25137
4074 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
4075 -Wmissing_braces.
4076
650dc14a
DS
40772012-05-22 Dodji Seketeli <dodji@redhat.com>
4078
4079 PR c++/53322
4080 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
4081
9b095bf1
MLI
40822012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
4083
4084 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
4085 * c-opts.c (c_common_handle_option): Do not handle explicitly
4086 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
4087
0b2c4be5
DS
40882012-05-16 Dodji Seketeli <dodji@redhat.com>
4089
4090 PR preprocessor/7263
4091 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
4092 to cpp_classify_number. For diagnostics, use the precise location
4093 instead of the global input_location.
4094
a1bde5af
PC
40952012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
4096
d02924ef 4097 PR c++/11856
a1bde5af
PC
4098 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
4099
d1ede5f4
BS
41002012-05-14 Bernd Schmidt <bernds@codesourcery.com>
4101
a1bde5af 4102 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 4103
f2bc201f
MLI
41042012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
4105
4106 PR 53063
4107 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
4108 Wreorder): Use LangEnabledBy.
4109 * c-opts.c (c_common_handle_option): Do not enable them
4110 explicitly. Call lang-specific generated functions.
4111 (c_common_post_options): Do not set them here.
4112
95744782
MLI
41132012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
4114
4115 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
4116 Wmissing-field-initializers,Wmissing-parameter-type,
4117 Wold-style-declaration,Woverride-init): Use EnabledBy.
4118 * c-opts.c (c_common_post_options): Do not set here explicitly.
4119
7d5a5747
MLI
41202012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4121
4122 PR 53063
4123 * c-opts.c (c_common_handle_option): Use handle_generated_option
4124 to enable sub-options.
4125
5a3c9cf2
PC
41262012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
4127
4128 PR c++/53158
4129 * c-common.c (warnings_for_convert_and_check): Use warning_at.
4130
3ac8781c
RG
41312012-05-10 Richard Guenther <rguenther@suse.de>
4132
4133 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
4134 adjust commentary about TYPE_IS_SIZETYPE types.
4135
1e537948
MLI
41362012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4137
4138 PR c++/53261
4139 * c-common.c (warn_logical_operator): Check that argument of
4140 integer_zerop is not NULL.
4141
f2c4a785
MLI
41422012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
4143
4144 PR c/43772
4145 * c-common.c (warn_logical_operator): Do not warn if either side
4146 is already true or false.
4147
50f305ca
MLI
41482012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
4149
4150 PR c/51712
4151 * c-common.c (expr_original_type): New.
4152 (shorten_compare): Do not warn for enumeration types.
4153
0c3641b0
MLI
41542012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
4155
4156 * c.opt (fpermissive): Add Var(flag_permissive).
4157
7edaa4d2
MG
41582012-04-30 Marc Glisse <marc.glisse@inria.fr>
4159
4160 PR c++/51033
4161 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
4162 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
4163
b9c8da34
DS
41642012-04-30 Dodji Seketeli <dodji@redhat.com>
4165
4166 Add -Wvarargs option
4167 * c.opt (Wvarargs): Define new option.
4168
e6c69da0
MLI
41692012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4170
4171 * c-common.c (check_function_arguments): Replace
4172 Wmissing-format-attribute with Wsuggest-attribute=format.
4173
90137d8f
MLI
41742012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4175
4176 * c.opt (Wsuggest-attribute=format): New. Alias of
4177 Wmissing-format-attribute.
4178 * c-format.c (decode_format_type): Replace
4179 Wmissing-format-attribute with Wsuggest-attribute=format.
4180 (check_function_format): Likewise.
4181
9faeb493 41822012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
4183
4184 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
4185 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
4186 * c.opt: Add Wliteral-suffix.
4187
c1771a20
MLI
41882012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
4189
4190 PR c/44774
4191 * c.opt (Wpedantic): New.
4192 (pedantic): Alias Wpedantic.
4193 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
4194 (c_common_post_options): Likewise.
4195 (sanitize_cpp_opts): Likewise.
4196 * c-lex.c (interpret_float): Likewise.
4197 * c-format.c (check_format_types): Likewise.
4198 * c-common.c (pointer_int_sum): Likewise.
4199 (c_sizeof_or_alignof_type): Likewise.
4200 (c_add_case_label): Likewise.
4201 (c_do_switch_warnings): Likewise.
4202 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
4203
04b391c1
JM
42042012-04-15 Jason Merrill <jason@redhat.com>
4205
4206 PR c++/52818
4207 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
4208 (C_STD_NAME): Distinguish between C++98 and C++11.
4209
ac868f29
EB
42102012-04-11 Eric Botcazou <ebotcazou@adacore.com>
4211
4212 PR target/52624
4213 * c-common.h (uint16_type_node): Rename into...
4214 (c_uint16_type_node): ...this.
4215 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
4216 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
4217
fd4116f4
MLI
42182012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
4219
4220 * c-common.c (warn_if_unused_value): Move definition to here.
4221 * c-common.h (warn_if_unused_value): Move declaration to here.
4222
573ac65e
WB
42232012-03-23 William Bader <williambader@hotmail.com>
4224
4225 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
4226
552b8185
JM
42272012-03-20 Jason Merrill <jason@redhat.com>
4228
4229 * c-common.h (enum cxx_dialect): Add cxx1y.
4230 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
4231 test.
4232 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
4233 * c-opts.c (c_common_post_options): Likewise.
4234 (set_std_cxx1y): New.
4235 (c_common_handle_option): Call it.
4236 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
4237
04398fa8
PC
42382012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
4239
4240 PR c++/14710
4241 * c.opt ([Wuseless-cast]): Add.
4242
d2a12ae7
RG
42432012-03-16 Richard Guenther <rguenther@suse.de>
4244
4245 * c-pretty-print.c (pp_c_initializer_list): Adjust.
4246
a12bf402
MLI
42472012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
4248
4249 PR c++/44783
4250 * c.opt (ftemplate-backtrace-limit) Add.
4251
5c30094f
RO
42522012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4253
4254 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
4255 handling.
4256 * c-pragma.c (handle_pragma_extern_prefix): Remove.
4257 (init_pragma): Don't register extern_prefix.
4258
21fa2faf
RG
42592012-03-12 Richard Guenther <rguenther@suse.de>
4260
4261 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
4262 (builtin_type_for_size): Likewise.
4263
e3793c6f
JJ
42642012-02-13 Jakub Jelinek <jakub@redhat.com>
4265
4266 PR c++/52215
4267 * c-common.c (sync_resolve_params): Don't decide whether to convert
4268 or not based on TYPE_SIZE comparison, convert whenever arg_type
4269 is unsigned INTEGER_TYPE.
4270
93286335
PC
42712012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
4272
4273 PR c/52118
4274 * c.opt ([Wunused-local-typedefs]): Fix description.
4275
7a421706
MS
42762012-01-24 Mike Stump <mikestump@comcast.net>
4277
4278 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
4279 exactly.
4280
ba9b1f11
RG
42812012-01-18 Richard Guenther <rguenther@suse.de>
4282
4283 * c-opts.c (c_common_post_options): Reset LTO flags if
4284 we are about to generate a PCH.
4285
465406be
PC
42862012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
4287
4288 PR c++/51777
4289 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
4290 use pp_unsigned_wide_integer.
4291
aee15221
RG
42922012-01-10 Richard Guenther <rguenther@suse.de>
4293
4294 PR middle-end/51806
4295 * c-opts.c (c_common_handle_option): Move -Werror handling
4296 to language independent code.
4297
5720c0dc
RG
42982012-01-05 Richard Guenther <rguenther@suse.de>
4299
4300 PR middle-end/51764
4301 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
4302 from common.opt.
4303
73ac190a
PC
43042011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
4305
4306 PR c++/51316
4307 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
4308 of array types with an unknown bound.
4309
48b0b196
JM
43102011-12-20 Joseph Myers <joseph@codesourcery.com>
4311
4312 * c-common.c (flag_isoc99): Update comment to refer to C11.
4313 (flag_isoc1x): Change to flag_isoc11.
4314 * c-common.h (flag_isoc99): Update comment to refer to C11.
4315 (flag_isoc1x): Change to flag_isoc11.
4316 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
4317 C11.
4318 * c-opts.c (set_std_c1x): Change to set_std_c11.
4319 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
4320 Call set_std_c11.
4321 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
4322 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
4323 * c.opt (std=c1x): Change to std=c11. Document as non-draft
4324 standard.
4325 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
4326 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
4327 (std=gnu1x): Make alias of std=gnu11.
4328
d58d6eb5
JM
43292011-12-19 Jason Merrill <jason@redhat.com>
4330
4331 PR c++/51228
4332 * c-common.c (handle_transparent_union_attribute): Check the first
4333 field if the type is complete.
4334
b3908fcc
JW
43352011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
4336
4337 PR libstdc++/51365
4338 * c-common.c (RID_IS_FINAL): Add.
4339 * c-common.h (RID_IS_FINAL): Add.
4340
fea3ca91
IS
43412011-11-30 Iain Sandoe <iains@gcc.gnu.org>
4342
4343 * c.opt (fgnu-runtime): Provide full description.
4344 (fnext-runtime): Likewise.
4345 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
4346
62bad7cd
AM
43472011-11-28 Andrew MacLeod <amacleod@redhat.com>
4348
4349 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
4350 predefines in one place. Add LOCK_FREE predefines.
4351 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
4352 new func.
4353
c466c4ff
AM
43542011-11-24 Andrew MacLeod <amacleod@redhat.com>
4355
4356 PR c/51256
9faeb493 4357 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 4358 conditions
9faeb493
UB
4359 (resolve_overloaded_atomic_exchange,
4360 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
4361 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
4362 error_mark_node for error conditions.
9faeb493 4363
a5952633
RG
43642011-11-08 Richard Guenther <rguenther@suse.de>
4365
4366 PR middle-end/51010
4367 c-family/
4368
0a35513e
AH
43692011-11-07 Richard Henderson <rth@redhat.com>
4370 Aldy Hernandez <aldyh@redhat.com>
4371 Torvald Riegel <triegel@redhat.com>
4372
4373 Merged from transactional-memory.
4374
4375 * c-common.c (handle_tm_wrap_attribute,
4376 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
4377 (struct c_common_reswords): Added __transaction* keywords.
4378 (struct c_common_attribute_table): Added transaction* and tm_regparm
4379 attributes.
4380 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
4381 masks.
4382 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
4383 find_tm_attribute): Declare.
4384
6d87092d
JM
43852011-11-07 Jason Merrill <jason@redhat.com>
4386
4387 PR c++/35688
4388 * c-common.c, c-common.h: Revert yesterday's changes.
4389
8e7860a1
JM
43902011-11-06 Jason Merrill <jason@redhat.com>
4391
4392 PR c++/35688
4393 * c-common.c (decl_has_visibility_attr): Split out from...
4394 (c_determine_visibility): ...here.
4395 * c-common.h: Declare it.
4396
d19fa6b5
JM
43972011-11-06 Joseph Myers <joseph@codesourcery.com>
4398
4399 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
4400 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
4401 type.
4402 (check_user_alignment): New. Split out of
4403 handle_aligned_attribute. Disallow integer constants with
4404 noninteger types. Conditionally allow zero.
4405 (handle_aligned_attribute): Use check_user_alignment.
4406 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
4407
86951993
AM
44082011-11-06 Andrew MacLeod <amacleod@redhat.com>
4409 Richard Henderson <rth@redhat.com>
4410
4411 Merged from cxx-mem-model.
4412
4413 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 4414 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
4415 parameters that are the same type size.
4416 (get_atomic_generic_size): New. Find size of generic
4417 atomic function parameters and do typechecking.
4418 (add_atomic_size_parameter): New. Insert size into parameter list.
4419 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
4420 either __atomic_exchange_n or external library call.
9faeb493 4421 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 4422 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 4423 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
4424 __atomic_load_n or an external library call.
4425 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
4426 __atomic_store_n or an external library call.
4427 (resolve_overloaded_builtin): Handle new __atomic builtins.
4428
cf9e9959
EB
44292011-11-04 Eric Botcazou <ebotcazou@adacore.com>
4430
4431 PR c++/50608
4432 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
4433 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
4434 <INDIRECT_REF>: Return the argument.
4435 <ARRAY_REF>: Remove special code for negative offset.
4436 Call fold_build_pointer_plus instead of size_binop.
4437 (fold_offsetof): Remove STOP_REF argument and adjust.
4438 * c-common.h (fold_offsetof_1): Declare.
4439 (fold_offsetof): Remove STOP_REF argument.
4440
25339f10
JM
44412011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
4442
4443 PR c++/50810
4444 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4445 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4446 Wnarrowing for C++0x and C++98.
4447 * c.opt ([Wnarrowing]): Update.
4448
89401152
PC
44492011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
4450
4451 PR c++/44277
4452 * c.opt: Add Wzero-as-null-pointer-constant.
4453
97e3ad20
JM
44542011-10-31 Jason Merrill <jason@redhat.com>
4455
15694fdd
JM
4456 * c.opt (-fdeduce-init-list): Off by default.
4457
97e3ad20
JM
4458 PR c++/50920
4459 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
4460 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
4461 and -Wc++11-compat.
4462 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
4463
fb9120e3
RAV
44642011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
4465
4466 PR c++/30066
4467 * c.opt (fvisibility-inlines-hidden): Description change.
4468
3ce4f9e4
ESR
44692011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
4470
4471 Implement C++11 user-defined literals.
4472 * c-common.c (build_userdef_literal): New.
4473 * c-common.def: New tree code.
4474 * c-common.h (tree_userdef_literal): New tree struct and accessors.
4475 * c-lex.c (interpret_float): Add suffix parm.
4476 (c_lex_with_flags): Build literal tokens.
4477
5f53c243
PC
44782011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4479
4480 PR c++/50841
4481 Revert:
4482 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4483
4484 PR c++/50810
4485 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4486 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4487 Wnarrowing for C++0x and C++98.
4488 * c.opt ([Wnarrowing]): Update.
4489
263734e1
PC
44902011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4491
4492 PR c++/50810
4493 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4494 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4495 Wnarrowing for C++0x and C++98.
4496 * c.opt ([Wnarrowing]): Update.
4497
d2e312d7
PC
44982011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
4499
4500 PR c++/45385
4501 * c-common.c (conversion_warning): Remove code looking for
4502 artificial operands.
4503
d17687f6
DS
45042011-10-18 Dodji Seketeli <dodji@redhat.com>
4505
4506 PR bootstrap/50760
4507 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 4508 !NO_IMPLICIT_EXTERN_C.
d17687f6 4509
fc8396e9
PC
45102011-10-17 Michael Spertus <mike_spertus@symantec.com>
4511
4512 * c-common.c (c_common_reswords): Add __bases,
4513 __direct_bases.
4514 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
4515
45162011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
4517
4518 PR c++/50757
4519 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
4520
847e697a
TT
45212011-10-15 Tom Tromey <tromey@redhat.com>
4522 Dodji Seketeli <dodji@redhat.com>
4523
4524 * c.opt (fdebug-cpp): New option.
4525 * c-opts.c (c_common_handle_option): Handle the option.
4526 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
4527 output stream in parameter. Factorized from ...
4528 (maybe_print_line): ... this. Dump location debug information when
4529 -fdebug-cpp is in effect.
4530 (print_line_1): New static function. Takes an output stream in
4531 parameter. Factorized from ...
4532 (print_line): ... here. Dump location information when -fdebug-cpp
4533 is in effect.
4534 (scan_translation_unit): Dump location information when
4535 -fdebug-cpp is in effect.
4536
92582b75
TT
45372011-10-15 Tom Tromey <tromey@redhat.com>
4538 Dodji Seketeli <dodji@redhat.com>
4539
4540 * c.opt (ftrack-macro-expansion): New option. Handle it with and
4541 without argument.
4542 * c-opts.c (c_common_handle_option)<case
4543 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
4544 cases. Handle -ftrack-macro-expansion with and without argument.
4545
46427374
TT
45462011-10-15 Tom Tromey <tromey@redhat.com>
4547 Dodji Seketeli <dodji@redhat.com>
4548
4549 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
4550 (print_line, cb_define, do_line_change): Adjust to avoid touching
4551 the internals of struct line_map. Use the public API instead.
4552 * c-pch.c (c_common_read_pch): Likewise.
4553 * c-lex.c (fe_file_change): Likewise.
4554
fc8396e9
PC
45552011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
4556
4557 PR c++/17212
4558 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
4559
45602011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
4561
4562 PR c++/33067
4563 * c-pretty-print.c (pp_c_floating_constant): Output
4564 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
4565
e79983f4
MM
45662011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
4567
4568 * c-common.c (def_builtin_1): Delete old interface with two
4569 parallel arrays to hold standard builtin declarations, and replace
4570 it with a function based interface that can support creating
4571 builtins on the fly in the future. Change all uses, and poison
4572 the old names. Make sure 0 is not a legitimate builtin index.
4573 * c-omp.c (c_finish_omp_barrier): Ditto.
4574 (c_finish_omp_taskwait): Ditto.
4575 (c_finish_omp_flush): Ditto.
4576
6637388f
TG
45772011-10-11 Tristan Gingold <gingold@adacore.com>
4578
4579 * c.opt: (fallow-parameterless-variadic-functions): New.
4580
3797cb21
DS
45812011-09-08 Dodji Seketeli <dodji@redhat.com>
4582
4583 PR c++/33255 - Support -Wunused-local-typedefs warning
4584 * c-common.h (struct c_language_function::local_typedefs): New
4585 field.
9faeb493
UB
4586 (record_locally_defined_typedef, maybe_record_typedef_use)
4587 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 4588 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
4589 (maybe_record_typedef_use)
4590 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
4591 * c.opt: Declare new -Wunused-local-typedefs flag.
4592
693ddb1b
EB
45932011-09-06 Eric Botcazou <ebotcazou@adacore.com>
4594
4595 PR middle-end/50266
4596 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
4597 computations.
4598
830c740f
RG
45992011-09-05 Richard Guenther <rguenther@suse.de>
4600
4601 * c-common.c (complete_array_type): Use ssize_int (-1) instead
4602 of integer_minus_one_node for empty array upper bounds.
4603
892a371f
DS
46042011-08-28 Dodji Seketeli <dodji@redhat.com>
4605
4606 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
4607 it's the first time it's being called on this main TU.
4608
0e3fdb48
RB
46092011-08-24 Richard Guenther <rguenther@suse.de>
4610
4611 PR c/49396
4612 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
4613
46142011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
4615
4616 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
4617 defined in cpp_init_builtins and c_cpp_builtins.
4618
d4a83c10
JM
46192011-08-19 Joseph Myers <joseph@codesourcery.com>
4620
4621 * c-common.c (c_common_reswords): Add __builtin_complex.
4622 * c-common.h (RID_BUILTIN_COMPLEX): New.
4623
bbceee64
JM
46242011-08-18 Joseph Myers <joseph@codesourcery.com>
4625
4626 * c-common.c (c_common_reswords): Add _Noreturn.
4627 (keyword_is_function_specifier): Handle RID_NORETURN.
4628 * c-common.h (RID_NORETURN): New.
4629
0e3a99ae
AS
46302011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4631
4632 * c-common.c (unsafe_conversion_p): New function. Check if it is
4633 unsafe to convert an expression to the type.
4634 (conversion_warning): Adjust, use unsafe_conversion_p.
4635 * c-common.h (unsafe_conversion_p): New function declaration.
4636
20906c66
JJ
46372011-08-02 Jakub Jelinek <jakub@redhat.com>
4638
4639 * c-common.h (c_finish_omp_atomic): Adjust prototype.
4640 (c_finish_omp_taskyield): New prototype.
4641 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
4642 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
4643 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
4644 or RHS1 have side-effects, evaluate those too in the right spot,
4645 if it is a decl and LHS is also a decl, error out if they
4646 aren't the same.
4647 (c_finish_omp_taskyield): New function.
4648 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
4649 * c-pragma.c (omp_pragmas): Add taskyield.
4650 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
4651 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
4652 PRAGMA_OMP_CLAUSE_MERGEABLE.
4653
770e5a2e
DS
46542011-07-25 Dodji Seketeli <dodji@redhat.com>
4655
4656 * c-common.h (set_underlying_type): Remove parm name from
4657 declaration.
4658
1baae426
RG
46592011-07-25 Romain Geissler <romain.geissler@gmail.com>
4660
4661 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 4662
fcb21722
JM
46632011-07-22 Jason Merrill <jason@redhat.com>
4664
76f86d00
JM
4665 PR c++/49793
4666 * c.opt (Wnarrowing): New.
4667
3a636414
JM
4668 PR c++/30112
4669 * c-common.h: Declare c_linkage_bindings.
4670 * c-pragma.c (handle_pragma_redefine_extname): Use it.
4671
fcb21722
JM
4672 PR c++/49813
4673 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
4674 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
4675 as flag_isoc99 for 'restrict'.
4676 (pp_c_specifier_qualifier_list): Likewise for _Complex.
4677
02614448
ILT
46782011-07-21 Ian Lance Taylor <iant@google.com>
4679
4680 PR middle-end/49705
4681 * c-common.c (c_disable_warnings): New static function.
4682 (c_enable_warnings): New static function.
4683 (c_fully_fold_internal): Change local unused_p to bool. Call
4684 c_disable_warnings and c_enable_warnings rather than change
4685 c_inhibit_evaluation_warnings.
4686
34429675
JM
46872011-07-20 Jason Merrill <jason@redhat.com>
4688
4689 PR c++/6709 (DR 743)
4690 PR c++/42603 (DR 950)
4691 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
4692 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
4693 (CPP_DECLTYPE): New.
4694 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
4695
5d49b6a7
RG
46962011-07-19 Richard Guenther <rguenther@suse.de>
4697
4698 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
4699 * c-omp.c (c_finish_omp_for): Likewise.
4700
e84a58ff
EB
47012011-07-12 Eric Botcazou <ebotcazou@adacore.com>
4702
4703 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
4704 body on the next line.
4705
329af3c7
JM
47062011-07-08 Jason Merrill <jason@redhat.com>
4707
4063e61b
JM
4708 PR c++/45437
4709 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
4710
329af3c7
JM
4711 PR c++/49673
4712 * c-common.c (c_apply_type_quals_to_decl): Don't check
4713 TYPE_NEEDS_CONSTRUCTING.
4714
1a072294
RG
47152011-07-06 Richard Guenther <rguenther@suse.de>
4716
4717 * c-common.c (c_common_nodes_and_builtins):
4718 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
4719
fce5dddd
RG
47202011-07-05 Richard Guenther <rguenther@suse.de>
4721
4722 * c-common.c (c_common_nodes_and_builtins): Build all common
4723 tree nodes first.
4724
45d439ac
JJ
47252011-06-27 Jakub Jelinek <jakub@redhat.com>
4726
56300785
JJ
4727 * c-common.h (c_tree_chain_next): New static inline function.
4728
45d439ac
JJ
4729 * c-common.c (check_builtin_function_arguments): Handle
4730 BUILT_IN_ASSUME_ALIGNED.
4731
e0a8ecf2
AM
47322011-06-21 Andrew MacLeod <amacleod@redhat.com>
4733
4734 * c-common.c: Add sync_ or SYNC__ to builtin names.
4735 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
4736
47372011-06-20 Pierre Vittet <piervit@pvittet.com>
4738
4739 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
4740 handler.
4741 (gen_pragma_handler): New union.
4742 (internal_pragma_handler): New type.
4743 (c_register_pragma_with_data)
4744 (c_register_pragma_with_expansion_and_data): New functions.
4745
4746 * c-pragma.c (registered_pragmas, c_register_pragma_1)
4747 (c_register_pragma, c_register_pragma_with_expansion)
4748 (c_invoke_pragma_handler): Changed to work with
4749 internal_pragma_handler.
4750 (c_register_pragma_with_data)
4751 (c_register_pragma_with_expansion_and_data): New functions.
4752
677f3fa8
JM
47532011-06-14 Joseph Myers <joseph@codesourcery.com>
4754
4755 * c-common.c: Include common/common-target.h.
4756 (handle_section_attribute): Use
4757 targetm_common.have_named_sections.
4758 * c-cppbuiltin.c: Include common/common-target.h.
4759 (c_cpp_builtins): Use targetm_common.except_unwind_info.
4760
d7fc8c14
RG
47612011-06-10 Richard Guenther <rguenther@suse.de>
4762
4763 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
4764 to print a IDENTIFIER_NODE.
4765
10e48e39
RO
47662011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4767 Joseph Myers <joseph@codesourcery.com>
4768
4769 * c.opt (fbuilding-libgcc): New option.
4770 * c-cppbuiltin.c (c_cpp_builtins): Define
4771 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
4772
6976ae51
JM
47732011-06-07 Jason Merrill <jason@redhat.com>
4774
3ff60975
JM
4775 * c-common.c (max_tinst_depth): Lower default to 900.
4776
6976ae51
JM
4777 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
4778
009db074
RG
47792011-06-07 Richard Guenther <rguenther@suse.de>
4780
4781 * c-common.c (c_common_nodes_and_builtins): Do not set
4782 size_type_node or call set_sizetype.
4783
b4592b92
DS
47842011-06-07 Dodji Seketeli <dodji@redhat.com>
4785
4786 PR debug/49130
4787 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 4788 type when using pointer comparison to compare types.
b4592b92 4789
014ab419
JW
47902011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
4791
4792 * c.opt: Add -Wdelete-non-virtual-dtor.
4793 * c-opts.c (c_common_handle_option): Include it in -Wall.
4794
4f60111f
NF
47952011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
4796
4797 PR bootstrap/49190
4798
4799 Revert:
4800 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4801
4802 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
4803 not tree_common.
4804
4cc4f2f4
JJ
48052011-05-27 Jakub Jelinek <jakub@redhat.com>
4806
4807 PR c++/49165
4808 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
4809 C++ don't call c_common_truthvalue_conversion on void type arms.
4810
38e01f9e
NF
48112011-05-27 Nathan Froyd <froydnj@codesourcery.com>
4812
4813 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
4814 (stmt_list_stack): Define.
4815 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
4816 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
4817
92e948a8
NF
48182011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4819
4820 * c-common.c (warning_candidate_p): Check for BLOCKs.
4821
a2fc3e63
NF
48222011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4823
4824 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
4825 not tree_common.
4826
0957c029
JJ
48272011-05-25 Jakub Jelinek <jakub@redhat.com>
4828
4829 * c-common.c (def_fn_type): Remove extra va_end.
4830
828fb3ba
JM
48312011-05-23 Jason Merrill <jason@redhat.com>
4832
4833 PR c++/48106
4834 * c-common.c (c_common_get_narrower): New.
4835 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
4836
dde05067
NF
48372011-05-23 Nathan Froyd <froydnj@codesourcery.com>
4838
4839 * c-common.h (check_function_arguments): Tweak prototype of
4840 check_function_arguments.
4841 * c-common.c (check_function_arguments): Likewise. Adjust
4842 calls to check_function_nonnull, check_function_format, and
4843 check_function_sentinel.
4844 (check_function_sentinel): Take a FUNCTION_TYPE rather than
4845 separate attributes and typelist arguments. Use
4846 FOREACH_FUNCTION_ARGS to iterate over argument types.
4847
3c0d13bf
PC
48482011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
4849
4850 * c-common.c (c_common_reswords): Reorder.
4851 * c-common.h (rid): Likewise.
4852
8242dd04
NF
48532011-05-10 Nathan Froyd <froydnj@codesourcery.com>
4854
4855 * c-common.c (def_fn_type): Don't call build_function_type, call
4856 build_function_type_array or build_varargs_function_type_array
4857 instead.
4858 (c_common_nodes_and_builtins): Likewise.
4859
3d528853
NF
48602011-05-05 Nathan Froyd <froydnj@codesourcery.com>
4861
4862 * c-common.c (c_add_case_label): Omit the loc argument to
4863 build_case_label.
4864 * c-common.h (build_case_label): Remove.
4865 * c-semantics.c (build_case_label): Remove.
4866
a04a722b
JM
48672011-05-05 Joseph Myers <joseph@codesourcery.com>
4868
4869 * c-objc.h (objc_start_method_definition): Update prototype.
4870 * stub-objc.c (objc_start_method_definition): Add extra parameter.
4871
e19a18d4
NF
48722011-05-04 Nathan Froyd <froydnj@codesourcery.com>
4873
4874 * c-common.c (check_main_parameter_types): Reindent. Don't use
4875 TYPE_ARG_TYPES directly.
4876 (handle_nonnull_attribute): Likewise.
4877 (sync_resolve_params): Likewise.
4878 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
4879 to check_format_string.
4880 (handle_format_attribute): Likewise.
4881 (check_format_string): Take a function type to examine instead of
4882 a type list. Use a function_arg_iterator to step through argument
4883 types.
4884
c62c040f
RG
48852011-05-04 Richard Guenther <rguenther@suse.de>
4886
4887 * c-common.c (fix_string_type): Use size_int for index type bounds.
4888 (start_fname_decls): Do not pass NULL to build_int_cst.
4889 (c_init_attributes): Likewise.
4890 * c-lex.c (c_lex_with_flags): Likewise.
4891
c12ff9d8
JM
48922011-04-27 Jason Merrill <jason@redhat.com>
4893
4894 * c-common.c (make_tree_vector_from_list): New.
4895 * c-common.h: Declare it.
4896
304dfbe3
RG
48972011-04-26 Richard Guenther <rguenther@suse.de>
4898
4899 PR preprocessor/48248
4900 * c-ppoutput.c (maybe_print_line): Always optimize newlines
4901 for output size with -P.
4902
3c0d13bf
PC
49032011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
4904
4905 * c-common.c (struct c_common_resword): Add __underlying_type.
4906 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
4907
04695783
JM
49082011-04-20 Jim Meyering <meyering@redhat.com>
4909
4910 * c-format.c (init_dollar_format_checking): Remove useless
4911 if-before-free.
4912
0dc33c3c
NP
49132011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
4914
4915 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 4916 (objc_detect_field_duplicates): New.
0dc33c3c 4917 * stub-objc.c: Likewise.
3c0d13bf 4918
c59633d9
NP
49192011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4920
4921 * stub-objc.c (objc_declare_protocols): Renamed to
4922 objc_declare_protocol.
4923 * c-objc.h: Likewise.
3c0d13bf 4924
32dabdaf
NP
49252011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4926
4927 * stub-objc.c (objc_declare_class): Updated argument name.
4928
81f653d6
NF
49292011-04-12 Nathan Froyd <froydnj@codesourcery.com>
4930
4931 * c-common.h (c_common_init_ts): Declare.
4932 * c-common.c (c_common_init_ts): Define.
4933
eb345401
NP
49342011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4935
4936 * c-objc.h (objc_build_message_expr): Updated prototype.
4937 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 4938
a358e188
MJ
49392011-04-12 Martin Jambor <mjambor@suse.cz>
4940
4941 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
4942 of cgraph_node.
4943
e6313a78
RG
49442011-04-11 Richard Guenther <rguenther@suse.de>
4945
4946 * c-common.c (complete_array_type): Build a range type of
4947 proper type.
4948
dcf0c47e
NF
49492011-04-08 Nathan Froyd <froydnj@codesourcery.com>
4950
4951 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
4952 (handle_type_generic_attribute): Likewise.
4953
1ee44b26
JM
49542011-04-07 Jason Merrill <jason@redhat.com>
4955
4956 PR c++/48450
4957 * c-common.c (c_common_truthvalue_conversion): Don't ignore
4958 conversion from C++0x scoped enum.
4959
acce4e77
JM
49602011-04-06 Joseph Myers <joseph@codesourcery.com>
4961
4962 * c-target-def.h: New file.
4963 * c-target.def: New file.
4964 * c-target.h: New file.
4965 * c-common.c (targetcm): Don't define here.
4966 * c-common.h (default_handle_c_option): Declare.
4967 * c-format.c: Include c-target.h instead of target.h.
4968 * c-opts.c: Include c-target.h instead of target.h. Explicitly
4969 include tm.h.
4970 (default_handle_c_option): Move from targhooks.c.
4971
e2eefb55
JJ
49722011-03-29 Jakub Jelinek <jakub@redhat.com>
4973
4974 PR preprocessor/48248
4975 * c-ppoutput.c (print): Add src_file field.
4976 (init_pp_output): Initialize it.
4977 (maybe_print_line): Don't optimize by adding up to 8 newlines
4978 if map->to_file and print.src_file are different file.
4979 (print_line): Update print.src_file.
4980
ba78087b
KT
49812011-03-25 Kai Tietz <ktietz@redhat.com>
4982
4983 * c-ada-spec.c (compare_comment): Use filename_cmp
4984 instead of strcmp for filename.
4985
0edf1bb2
JL
49862011-03-25 Jeff Law <law@redhat.com>
4987
adfac8df 4988 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 4989
c7dc8804
JM
49902011-03-25 Jason Merrill <jason@redhat.com>
4991
4992 * c.opt: Add -std=c++03.
4993
d1d879b1
EB
49942011-03-22 Eric Botcazou <ebotcazou@adacore.com>
4995
4996 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
4997
62d784f7
KT
49982011-03-17 Kai Tietz
4999
5000 PR target/12171
5050afdf
KT
5001 * c-pretty-print.c (pp_c_specifier_qualifier_list):
5002 Display allowed attributes for function pointer types.
5003 (pp_c_attributes_display): New function to display
5004 attributes having affects_type_identity flag set to true.
5005 * c-pretty-print.h (pp_c_attributes_display): New prototype.
5006
62d784f7
KT
5007 * c-common.c (c_common_attribute_table):
5008 Add new element.
5009 (c_common_format_attribute_table): Likewise.
5010
82d37118
JM
50112011-03-18 Jason Merrill <jason@redhat.com>
5012
49a000c3
JM
5013 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
5014 * c-common.h: Don't declare it here.
5015 * c-common.c: Or define it here.
5016 * c-opts.c (c_common_handle_option): Or set it here.
5017
82d37118
JM
5018 PR c++/35315
5019 * c-common.c (handle_transparent_union_attribute): Don't
5020 make a duplicate type in C++.
5021
17bc631c
JM
50222011-03-15 Jason Merrill <jason@redhat.com>
5023
5024 * c-common.c (max_constexpr_depth): New.
5025 * c-common.h: Declare it.
5026 * c-opts.c (c_common_handle_option): Set it.
5027 * c.opt (fconstexpr-depth): New option.
5028
1b9b91a6
JM
50292011-03-11 Jason Merrill <jason@redhat.com>
5030
f231b5ff
JM
5031 * c-common.c (attribute_takes_identifier_p): Add missing const.
5032
1b9b91a6
JM
5033 PR c++/46803
5034 * c-common.c (attribute_takes_identifier_p): Assume that an
5035 unknown attribute takes an identifier.
5036
a19e4d44
NF
50372011-03-07 Nathan Froyd <froydnj@codesourcery.com>
5038
5039 PR c/47786
5040 * c-common.c (c_type_hash): Call list_length instead of iterating
5041 through DECL_CHAIN. Rename 'i' to 'n_elements'.
5042
982d62f6
JJ
50432011-02-19 Jakub Jelinek <jakub@redhat.com>
5044
5045 PR c/47809
5046 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
5047
0a256240
NP
50482011-02-17 Iain Sandoe <iains@gcc.gnu.org>
5049
5050 * c.opt (fobjc-abi-version=) New.
5051 (fobjc-nilcheck): New.
5052
ba9e6dd5
NF
50532011-02-03 Nathan Froyd <froydnj@codesourcery.com>
5054
5055 PR c++/46890
5056 * c-common.h (keyword_is_decl_specifier): Declare.
5057 * c-common.c (keyword_is_decl_specifier): Define.
5058 (keyword_is_function_specifier): New function.
5059
7273813a
JJ
50602011-01-26 Jakub Jelinek <jakub@redhat.com>
5061
5062 PR c/47473
5063 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
5064 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
5065 REAL_TYPE.
5066
908ef79b
AC
50672011-01-26 Arnaud Charlet <charlet@adacore.com>
5068
5069 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
5070
237e9384
JJ
50712011-01-26 Jakub Jelinek <jakub@redhat.com>
5072
5073 PR pch/47430
5074 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
5075 after init_c_lex if pch_file is set.
5076
47ea1edf
DK
50772011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
5078
d4dba752 5079 PR c++/43601
47ea1edf
DK
5080 * c.opt (-fkeep-inline-dllexport): New switch.
5081
2aa9c6ae
RG
50822011-01-12 Richard Guenther <rguenther@suse.de>
5083
5084 PR middle-end/32511
5085 * c-common.c (handle_weak_attribute): Warn instead of error
5086 on declaring an inline function weak.
5087
7bd11157
TT
50882011-01-05 Tom Tromey <tromey@redhat.com>
5089
5090 * c-common.h (lvalue_error): Update.
5091 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
5092 not error.
5093
0e66e494 50942010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 5095
b4f588c4
NP
5096 PR objc/47075
5097 * c-objc.h (objc_finish_message_expr): Added argument to
5098 prototype.
5099
f4da8dce
NF
51002010-12-22 Nathan Froyd <froydnj@codesourcery.com>
5101
5102 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
5103 Use prototype_p.
5104
46270f14
NP
51052010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
5106
5107 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 5108 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 5109
4816c593
NF
51102010-12-10 Nathan Froyd <froydnj@codesourcery.com>
5111
5112 * c-common.h (readonly_error): Declare.
5113 * c-common.c (readonly_error): Define.
5114
7a6daeb0
NF
51152010-12-09 Nathan Froyd <froydnj@codesourcery.com>
5116
5117 * c-common.h (invalid_indirection_error): Declare.
5118 * c-common.c (invalid_indirection_error): Define.
5119
892f6119
RG
51202010-12-03 Richard Guenther <rguenther@suse.de>
5121
5122 PR c/46745
5123 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
5124 (pp_c_unary_expression): Likewise.
5125 (pp_c_expression): Likewise.
5126
6c39e757
NP
51272010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
5128
5129 * c-common.h (objc_finish_function): New.
5130 (objc_non_volatilized_type): Removed.
5131 (objc_type_quals_match): Removed.
5132 * stub-objc.c (objc_finish_function): New.
5133 (objc_non_volatilized_type): Removed.
5134 (objc_type_quals_match): Removed.
9faeb493 5135
7c475d11
JM
51362010-11-30 Joseph Myers <joseph@codesourcery.com>
5137
5138 * c-common.h (parse_optimize_options): Declare.
5139 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
5140 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
5141
71f3e391
JM
51422010-11-29 Joseph Myers <joseph@codesourcery.com>
5143
5144 * c-opts.c (check_deps_environment_vars): Use getenv instead of
5145 GET_ENVIRONMENT.
5146 * c-pch.c (O_BINARY): Don't define here.
5147 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
5148
d5fabb58
JM
51492010-11-25 Joseph Myers <joseph@codesourcery.com>
5150
5151 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
5152 targetm.except_unwind_info.
5153
299404a1
JM
51542010-11-23 Joseph Myers <joseph@codesourcery.com>
5155
5156 * c-opts.c (c_common_handle_option): Pass location to
5157 set_struct_debug_option.
5158
c98cd5bf
JM
51592010-11-23 Joseph Myers <joseph@codesourcery.com>
5160
5161 * c-common.c (visibility_options): Move from ../opts.c.
5162 * c-common.h (struct visibility_flags, visibility_options):
5163 Declare here.
5164 * c-opts.c (finish_options): Rename to c_finish_options.
5165 (c_common_init): Update call to finish_options.
5166
a9546771
NP
51672010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
5168
5169 PR objc/34033
5170 * c-lex.c (lex_string): Check that each string in an Objective-C
5171 string concat sequence starts with either one or zero '@', and
5172 that there are no spurious '@' signs at the end.
5173
24a57808
JM
51742010-11-20 Joseph Myers <joseph@codesourcery.com>
5175
5176 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
5177 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
5178 HANDLE_PRAGMA_VISIBILITY.
5179 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
5180 HANDLE_PRAGMA_VISIBILITY): Don't define.
5181 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
5182
a9aa2c3a
NF
51832010-11-20 Nathan Froyd <froydnj@codesourcery.com>
5184
5185 PR c++/16189
5186 PR c++/36888
5187 PR c++/45331
5188 * c-common.h (keyword_begins_type_specifier): Declare.
5189 (keyword_is_storage_class_specifier): Declare.
5190 (keyword_is_type_qualifier): Declare.
5191 * c-common.c (keyword_begins_type_specifier): New function.
5192 (keyword_is_storage_class_specifier): New function.
5193 (keyword_is_type_qualifier): Declare.
5194
5386338c
JM
51952010-11-19 Joseph Myers <joseph@codesourcery.com>
5196
5197 PR c/46547
5198 * c-common.c (in_late_binary_op): Define.
5199 (c_common_truthvalue_conversion): Check in_late_binary_op before
5200 calling c_save_expr.
5201 * c-common.h (in_late_binary_op): Declare.
5202
69ccdddb
JM
52032010-11-19 Joseph Myers <joseph@codesourcery.com>
5204
5205 * c-opts.c (c_common_handle_option): Update calls to
5206 set_struct_debug_option.
5207
6b192a09
NP
52082010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
5209
5210 * c-common.h (objc_declare_protocols): Added additional argument.
5211 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 5212
fb52b50a
NF
52132010-11-18 Nathan Froyd <froydnj@codesourcery.com>
5214
5215 PR c/33193
5216 * c-common.h (build_real_imag_expr): Declare.
5217 * c-semantics.c (build_real_imag_expr): Define.
5218
b37421c6
JM
52192010-11-17 Joseph Myers <joseph@codesourcery.com>
5220
5221 * c-opts.c (c_common_parse_file): Take no arguments.
5222 * c-common.h (c_common_parse_file): Update prototype.
5223
07078664
JJ
52242010-11-16 Jakub Jelinek <jakub@redhat.com>
5225
5226 PR c++/46401
5227 * c-common.c (warning_candidate_p): Don't track non-const calls
5228 or STRING_CSTs.
5229
c6a13190
ILT
52302010-11-15 Ian Lance Taylor <iant@google.com>
5231
5232 * c-lex.c (init_c_lex): Set macro debug callbacks if
5233 flag_dump_go_spec is set.
5234
925e8657
NP
52352010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
5236
5237 * c-common.h (objc_build_incr_expr_for_property_ref): New.
5238 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
5239
bb0a9581
NF
52402010-11-15 Nathan Froyd <froydnj@codesourcery.com>
5241
5242 PR preprocessor/45038
5243 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
5244 dialects.
5245
c5fa0890
JM
52462010-11-12 Joseph Myers <joseph@codesourcery.com>
5247
5248 * c-common.h (c_family_lang_mask): Declare.
5249 * c-opts.c (c_family_lang_mask): Make extern.
5250 * c-pragma.c (handle_pragma_diagnostic): Use
5251 control_warning_option.
5252
a4d8c676
JM
52532010-11-12 Joseph Myers <joseph@codesourcery.com>
5254
5255 * c-common.c (parse_optimize_options): Update call to
5256 decode_options.
5257 * c-common.h (c_common_handle_option): Update prototype.
5258 * c-opts.c (c_common_handle_option): Take location_t parameter and
5259 pass it to other functions.
5260
f954bd2c
JM
52612010-11-11 Joseph Myers <joseph@codesourcery.com>
5262
5263 * c-opts.c (warning_as_error_callback): Remove.
5264 (c_common_initialize_diagnostics): Don't call
5265 register_warning_as_error_callback.
5266 (c_common_handle_option): Handle -Werror=normalized= here.
5267
d8a07487
JM
52682010-11-10 Joseph Myers <joseph@codesourcery.com>
5269
5270 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
5271 in diagnostic.
5272 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
5273 letter.
5274 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
5275 Remove trailing '.' from diagnostics.
5276 * c.opt (Wwrite-strings_: Avoid '`' in help text.
5277
d5478783
JM
52782010-11-10 Joseph Myers <joseph@codesourcery.com>
5279
5280 * c-common.c (parse_optimize_options): Pass global_dc to
5281 decode_options.
5282 * c-opts.c (c_common_handle_option): Pass &global_options to
5283 set_Wstrict_aliasing.
5284 * c.opt (v): Don't mark Common or document here.
5285
91ebb981
IS
52862010-11-06 Iain Sandoe <iains@gcc.gnu.org>
5287
5288 PR target/44981
5289 * c-format.c (format_type): New type gcc_objc_string_format_type.
5290 (valid_stringptr_type_p): New.
5291 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 5292 (check_format_string): Pass expected type, use
91ebb981
IS
5293 valid_stringptr_type_p (), check that the format string types are
5294 consistent with the format specification.
5295 (decode_format_attr): Warn if NSString is used outside objective-c.
5296 (format_types_orig): Add NSString.
5297 (format_name): New.
5298 (format_flags): New.
5299 (check_format_arg): Handle format strings requiring an external parser.
5300 first_target_format_type: New variable.
5301 (handle_format_attribute): Set up first_target_format_type, pass the
5302 expected format arg string type to check_format_string().
5303 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
5304 * stub-objc.c (objc_string_ref_type_p): New.
5305 (objc_check_format_arg): New.
5306
bede2adc
NP
53072010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
5308
9faeb493 5309 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
5310 * c-common.h (objc_build_class_component_ref): New.
5311 * stub-objc.c (objc_build_class_component_ref): New.
5312
9a179d01
NP
53132010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
5314
5315 * c.opt (Wproperty-assign-default): New option.
5316
22d8d616
NP
53172010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
5318
5319 Implemented -fobjc-std=objc1 flag.
5320 * c.opt (fobjc-std=objc1): New option.
5321
2debdb4f
NP
53222010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
5323
5324 Implemented format and noreturn attributes for Objective-C methods.
5325 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
5326 attribute for Objective-C methods.
5327
ec52b111
JM
53282010-10-31 Jason Merrill <jason@redhat.com>
5329
5330 * c-common.c (conversion_warning, warn_for_collisions_1): Use
5331 EXPR_LOC_OR_HERE.
5332
46a88c12
NP
53332010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
5334
5335 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
5336 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
5337 (objc_add_property_declaration): Removed arguments for copies and
5338 ivar.
5339 (objc_build_getter_call): Renamed to
5340 objc_maybe_build_component_ref.
5341 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
5342 (objc_is_property_ref): New.
5343 * c-common.c (c_common_reswords): Removed copies and ivar.
5344 * stub-objc.c (objc_add_property_declaration): Removed arguments
5345 for copies and ivar.
5346 (objc_build_getter_call): Renamed to
5347 objc_maybe_build_component_ref.
5348 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
5349 (objc_is_property_ref): New.
9faeb493 5350
1e4bf85b
AC
53512010-10-29 Arnaud Charlet <charlet@adacore.com>
5352 Matthew Gingell <gingell@adacore.com>
5353
5354 * c-ada-spec.c (separate_class_package): New function.
5355 (pp_ada_tree_identifier): Prefix references to C++ classes with the
5356 name of their enclosing package.
5357 (print_ada_declaration): Use separate_class_package.
5358
81f0bab2
JM
53592010-10-27 Jason Merrill <jason@redhat.com>
5360
2b08f2c5
JM
5361 * c-common.c (c_common_reswords): Add __is_literal_type.
5362 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
5363
81f0bab2
JM
5364 * c-common.c (check_case_value): Remove special C++ code.
5365
200290f2
NP
53662010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
5367
5368 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
5369 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
5370 and RID_LAST_PATTR.
5371 (objc_add_property_declaration): Added additional arguments.
5372 (objc_property_attribute_kind): Removed.
5373 (objc_set_property_attr): Removed.
5374 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
5375 copy and nonatomic.
5376 * stub-objc.c (objc_add_property_declaration): Added additional
5377 arguments.
5378 (objc_set_property_attr): Removed.
9faeb493 5379
f614132b
NP
53802010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
5381
5382 * c-common.h (objc_add_property_variable): Renamed to
5383 objc_add_property_declaration. Added location argument.
5384 * stub-objc.c (objc_add_property_variable): Same change.
b1726d6c 5385
b8a18805
NP
53862010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
5387
5388 * c-common.h (objc_maybe_printable_name): New.
5389 * stub-objc.c (objc_maybe_printable_name): New.
5390
30cd1c5d
AS
53912010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
5392 Andrew Pinski <pinskia@gmail.com>
5393
5394 * c-common.h (c_common_mark_addressable_vec): Declare.
5395 * c-common.c (c_common_mark_addressable_vec): New function.
5396
249a82c4
NP
53972010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
5398
5399 * c-common.h (objc_set_method_type): Removed.
5400 (objc_add_method_declaration): Added boolean argument.
5401 (objc_start_method_definition): Same change.
5402 (objc_build_method_signature): Same change.
5403 * stub-objc.c (objc_set_method_type): Removed.
5404 (objc_add_method_declaration): Added boolean argument.
5405 (objc_start_method_definition): Same change.
5406 (objc_build_method_signature): Same change.
5407
977e30bc
NP
54082010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
5409
5410 * c-common.h (finish_file): Removed.
5411 (objc_write_global_declarations): New.
5412 * c-opts.c (c_common_parse_file): Do not call finish_file.
5413 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 5414
da57d1b9
NP
54152010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
5416
5417 Implemented parsing @synthesize and @dynamic for
5418 Objective-C/Objective-C++.
5419 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
5420 (objc_add_synthesize_declaration): New.
5421 (objc_add_dynamic_declaration): New.
5422 * c-common.c (c_common_reswords): Add synthesize and dynamic.
5423 * stub-objc.c (objc_add_synthesize_declaration): New.
5424 (objc_add_dynamic_declaration): New.
9faeb493 5425
0069111f
MM
54262010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
5427
5428 PR target/46041
5429 * c-cppbuiltin.c (mode_has_fma): Move function here from
5430 builtins.c. Don't use the fma optab, instead just use the
5431 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
5432 using -save-temps.
5433
e426b47b
NP
54342010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
5435
5436 Merge from 'apple/trunk' branch on FSF servers.
0069111f 5437
e426b47b
NP
5438 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
5439
9faeb493 5440 Radar 4330422
e426b47b
NP
5441 * c-common.h (objc_non_volatilized_type): New declaration
5442 * stub-objc.c (objc_non_volatilized_type): New stub.
5443
90fbfdc3
NP
54442010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
5445
e426b47b 5446 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
5447
5448 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
5449
9faeb493 5450 Radar 4133425
90fbfdc3 5451 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 5452 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 5453
c37d8c30
IS
54542010-10-17 Iain Sandoe <iains@gcc.gnu.org>
5455
5456 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
5457 * c-common.h (enum rid): Add RID_AT_PACKAGE.
5458 (objc_ivar_visibility_kind): New enum.
5459 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 5460 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
5461 visibility enum.
5462
1b1562a5
MM
54632010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5464
5465 * c-cppbuiltin.c (builtin_define_float_constants): Emit
5466 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
5467 has the appropriate fma builtins.
5468 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
5469
668ea4b1
IS
54702010-10-14 Iain Sandoe <iains@gcc.gnu.org>
5471
1b1562a5 5472 merge from FSF apple 'trunk' branch.
668ea4b1 5473 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 5474
668ea4b1
IS
5475 Radars 4436866, 4505126, 4506903, 4517826
5476 * c-common.c (c_common_resword): Define @property and its attributes.
5477 * c-common.h: Define property attribute enum entries.
5478 (OBJC_IS_PATTR_KEYWORD): New.
5479 (objc_property_attribute_kind): New enum.
5480 Declare objc_set_property_attr (), objc_add_property_variable (),
5481 objc_build_getter_call () and objc_build_setter_call ().
5482 * stub-objc.c (objc_set_property_attr): New stub.
5483 (objc_add_property_variable): Likewise.
5484 (objc_build_getter_call): Likewise.
5485 (objc_build_setter_call) Likewise.
1b1562a5 5486
a1178b30
IS
54872010-10-13 Iain Sandoe <iains@gcc.gnu.org>
5488
1b1562a5 5489 merge from FSF apple 'trunk' branch.
a1178b30
IS
5490 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
5491
5492 Radar 3803157 (method attributes)
5493 * c-common.c (handle_deprecated_attribute): Recognize
5494 objc methods as valid declarations.
5495 * c-common.h: Declare objc_method_decl ().
1b1562a5 5496 * stub-objc.c (objc_method_decl): New stub.
a1178b30 5497
a75bfaa6
JM
54982010-10-08 Joseph Myers <joseph@codesourcery.com>
5499
5500 * c-common.c (parse_optimize_options): Call
5501 decode_cmdline_options_to_array_default_mask before
5502 decode_options. Update arguments to decode_options.
5503 * c-common.h (c_common_init_options_struct): Declare.
5504 * c-opts.c (c_common_init_options_struct): New. Split out from
5505 c_common_init_options.
5506
f05b9d93
NP
55072010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
5508
5509 Implemented fast enumeration for Objective-C.
5510 * c-common.h (objc_finish_foreach_loop): New.
5511 * stub-objc.c (objc_finish_foreach_loop): New.
5512
1ebe4b4f
JM
55132010-10-05 Joseph Myers <joseph@codesourcery.com>
5514
5515 * c-common.h (struct diagnostic_context): Don't declare here.
5516 (c_common_initialize_diagnostics): Declare using
5517 diagnostic_context typedef.
5518 * c-opts.c (c_common_handle_option): Pass global_dc to
5519 handle_generated_option.
5520
d4d24ba4
JM
55212010-10-04 Joseph Myers <joseph@codesourcery.com>
5522
5523 * c-opts.c (c_common_handle_option): Pass &global_options_set to
5524 handle_generated_option.
5525
478a1c5b
ILT
55262010-10-03 Ian Lance Taylor <iant@google.com>
5527
5528 * c.opt (-fplan9-extensions): New option.
5529
82a1c2fe
FXC
55302010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5531
5532 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
5533 Remove.
5534 (c_cpp_builtins): Call functions from cppbuiltin.c instead
5535 of duplicating code.
5536
92902b1b
IS
55372010-09-30 Iain Sandoe <iains@gcc.gnu.org>
5538
5539 * c-common.c: Add two new entries for @optional
5540 and @required keywords.
5541
5542 merge from FSF 'apple/trunk' branch.
5543 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
5544
5545 Radar 4386773
5546 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
5547 objective-c keywords.
5548 (objc_set_method_opt): New declaration.
5549 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 5550
46625112
JM
55512010-09-30 Joseph Myers <joseph@codesourcery.com>
5552
5553 * c-common.c (handle_optimize_attribute): Pass &global_options to
5554 cl_optimization_save and cl_optimization_restore.
5555 * c-opts.c (c_common_handle_option): Pass &global_options to
5556 handle_generated_option.
5557 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
5558 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
5559 &global_options to cl_optimization_restore.
5560
49b91f05
NP
55612010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
5562
5563 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
5564 Objective-C/Objective-C++ keywords.
5565
13ed556f 55662010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 5567
9faeb493
UB
5568 Merge from 'apple/trunk' branch on FSF servers.
5569
a6341d57
NP
5570 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
5571
5572 Radar 4281748
5573 * c-common.h (objc_check_global_decl): New declaration.
5574 * stub-objc.c (objc_check_global_decl): New stub.
5575
f0036cca
JM
55762010-09-29 Joseph Myers <joseph@codesourcery.com>
5577
5578 * c.opt: Don't use VarExists.
5579
e3339d0f
JM
55802010-09-29 Joseph Myers <joseph@codesourcery.com>
5581
5582 * c-common.c (c_cpp_error): Update names of diagnostic_context
5583 members.
5584 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
5585 cl_optimization members.
5586 * c-opts.c (warning_as_error_callback, c_common_handle_option,
5587 sanitize_cpp_opts, finish_options): Update names of cpp_options
5588 members.
5589
1973201f
NP
55902010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
5591
5592 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
5593 (objc_is_reserved_word): Removed.
5594 * c-common.c: Updated comments.
5595 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
5596 objc_is_reserved_word.
5597 * stub-objc.c (objc_is_reserved_word): Removed.
5598
f7e71da5
IS
55992010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5600
9faeb493 5601 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
5602 include attributes.
5603 (objc_start_method_definition): Likewise.
5604 (objc_build_keyword_decl): Likewise.
5605 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
5606 (objc_start_method_definition): Likewise.
5607 (objc_build_keyword_decl): Likewise.
5608
c165dca7
IS
56092010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5610
5611 * c-common.h (objc_start_class_interface): Adjust prototype.
5612 (objc_start_category_interface): Likewise.
5613 (objc_start_protocol): Likewise.
5614 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
5615 (objc_start_class_interface): Likewise.
5616 (objc_start_category_interface): Likewise.
5617
7458026b
ILT
56182010-09-27 Ian Lance Taylor <iant@google.com>
5619
5620 * c-common.c (c_common_attribute_table): Add no_split_stack.
5621 (handle_no_split_stack_attribute): New static function.
5622
b581b85b
NP
56232010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
5624
9faeb493 5625 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
5626
5627 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
5628
9faeb493 5629 Radar 4229905
b581b85b
NP
5630 * c-common.h (objc_have_common_type): New declaration.
5631 * stub-objc.c (objc_have_common_type): New stub.
5632
5633 2005-06-22 Ziemowit Laski <zlaski@apple.com>
5634
5635 Radar 4154928
5636 * c-common.h (objc_common_type): New prototype.
9faeb493 5637 * stub-objc.c (objc_common_type): New stub.
b581b85b 5638
46a4da10
JH
56392010-09-24 Jan Hubicka <jh@suse.cz>
5640
5641 * c-common.c (handle_leaf_attribute): New function.
5642 (struct attribute_spec c_common_att): Add leaf.
5643
e200444e
JM
56442010-09-22 Joseph Myers <joseph@codesourcery.com>
5645
5646 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
5647 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
5648 -dump, -dump=, -imacros, -imacros=, -include, -include=,
5649 -include-barrier, -include-directory, -include-directory=,
5650 -include-directory-after, -include-directory-after=,
5651 -include-prefix, -include-prefix=, -include-with-prefix,
5652 -include-with-prefix=, -include-with-prefix-after,
5653 -include-with-prefix-after=, -include-with-prefix-before,
5654 -include-with-prefix-before=, -no-integrated-cpp,
5655 -no-line-commands, -no-standard-includes, -no-warnings, -output,
5656 -output=, -pedantic, -pedantic-errors, -preprocess,
5657 -print-missing-file-dependencies, -trace-includes, -traditional,
5658 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
5659 -user-dependencies, -verbose, -write-dependencies,
5660 -write-user-dependencies, no-integrated-cpp, traditional): New.
5661
29a80ea6
NP
56622010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5663
5664 PR objc/23710
ac1fc2fc
NP
5665 * c-common.h (objc_start_method_definition): Return bool instead
5666 of void.
5667 * stub-objc.c (objc_start_method_definition): Return bool instead
5668 of void.
5669
56702010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5671
5672 PR objc/25965
5673 * c-common.h (objc_get_interface_ivars): New declaration.
5674 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 5675
de621752
ILT
56762010-09-15 Ian Lance Taylor <iant@google.com>
5677
5678 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 5679 messages. Remove period at end of warning message.
de621752 5680
ba885ec5
NS
56812010-09-09 Nathan Sidwell <nathan@codesourcery.com>
5682
5683 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
5684 (handle_alias_attribute): ... here.
5685 (handle_ifunc_attribute): New.
5686
c5ee1358
MM
56872010-09-06 Mark Mitchell <mark@codesourcery.com>
5688
5689 * c-common.h (do_warn_double_promotion): Declare.
5690 * c-common.c (do_warn_double_promotion): Define.
5691
0a0b3574
MM
56922010-09-05 Mark Mitchell <mark@codesourcery.com>
5693
5694 * c.opt (Wdouble-promotion): New.
5695
d1779886
JM
56962010-09-02 Joseph Myers <joseph@codesourcery.com>
5697
5698 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
5699 fvtable-thunks, fxref): Mark no longer supported in help text.
5700
2d2bd949
JM
57012010-09-02 Joseph Myers <joseph@codesourcery.com>
5702
5703 * c.opt (Wimport, fall-virtual, falt-external-templates,
5704 fdefault-inline, fenum-int-equiv, fexternal-templates,
5705 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
5706 fname-mangling-version-, fnew-abi, fnonnull-objects,
5707 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
5708 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
5709 applicable.
5710 (fhandle-exceptions): Mark with Alias and Warn.
5711 * c-opts.c (c_common_handle_option): Don't handle options marked
5712 as ignored.
5713
5de8299c
JM
57142010-09-02 Joseph Myers <joseph@codesourcery.com>
5715
5716 * c.opt (Wcomments, Werror-implicit-function-declaration,
5717 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
5718 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
5719 aliases.
5720 * c-common.c (option_codes): Use OPT_Wcomment instead of
5721 OPT_Wcomments.
5722 * c-opts.c (warning_as_error_callback, c_common_handle_option):
5723 Don't handle options marked as aliases.
5724
0ceb0201
RG
57252010-08-25 Richard Guenther <rguenther@suse.de>
5726
5727 * c-common.c (c_common_get_alias_set): Remove special
5728 handling for pointers.
5729
ac47786e
NF
57302010-08-20 Nathan Froyd <froydnj@codesourcery.com>
5731
5732 * c-common.c: Use FOR_EACH_VEC_ELT.
5733 * c-gimplify.c: Likewise.
5734 * c-pragma.c: Likewise.
5735
c878765b
JM
57362010-08-16 Joseph Myers <joseph@codesourcery.com>
5737
5738 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
5739 RejectDriver.
5740 (MMDX): Change back to MMD. Mark NoDriverArg instead of
5741 RejectDriver.
5742 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
5743 instead of OPT_MDX and OPT_MMDX.
5744
603349bf
JM
57452010-08-16 Joseph Myers <joseph@codesourcery.com>
5746
5747 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
5748
644fa7ac
JM
57492010-08-12 Joseph Myers <joseph@codesourcery.com>
5750
5751 * c.opt (MD, MMD): Change to MDX and MMDX.
5752 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
5753
481e1176
JM
57542010-08-11 Joseph Myers <joseph@codesourcery.com>
5755
5756 * c-opts.c (c_common_handle_option): Call handle_generated_option
5757 instead of handle_option.
5758
ac8dc9f7
NF
57592010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5760
5761 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
5762 (maybe_apply_renaming_pragma): Delete unneeded declarations.
5763
4f8c876d
NF
57642010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5765
5766 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
5767 (pending_redefine_extname): Change type to a VEC.
5768 (add_to_renaming_pragma_list): Update for new type of
5769 pending_redefine_extname.
ac8dc9f7 5770 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 5771
3b0c690e
AC
57722010-08-04 Arnaud Charlet <charlet@adacore.com>
5773
5774 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
5775 visited.
5776 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
5777 decide whether a type has already been declared/seen.
5778 Do not go to the original type.
5779 (dump_nested_types): New parameter forward.
5780 Generate forward declaration if needed and mark type as visited.
5781 (print_ada_declaration): Call dump_nested_types if not already done.
5782 Mark types as visited.
5783
1890bccc
JM
57842010-08-03 Joseph Myers <joseph@codesourcery.com>
5785
5786 * c.opt (-print-pch-checksum): Remove option.
5787 * c-opts.c (c_common_handle_option): Don't handle
5788 OPT_print_pch_checksum.
5789
5f20c657
JM
57902010-07-27 Joseph Myers <joseph@codesourcery.com>
5791
5792 * c-common.h (c_common_handle_option): Update prototype and return
5793 value type.
5794 * c-opts.c (c_common_handle_option): Update prototype and return
5795 value type. Update calls to handle_option and
5796 enable_warning_as_error.
5797
f551f80c
JJ
57982010-07-27 Jakub Jelinek <jakub@redhat.com>
5799
5800 PR c/45079
5801 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
5802
61ff2bdc
JM
58032010-07-27 Joseph Myers <joseph@codesourcery.com>
5804
5805 * c-common.h (c_common_missing_argument): Remove.
5806 * c-opts.c (c_common_missing_argument): Remove.
5807 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
5808 idirafter, imacros, include, isysroot, isystem, iquote): Add
5809 MissingArgError.
5810 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
5811
7a9bf9a4
JM
58122010-07-27 Joseph Myers <joseph@codesourcery.com>
5813
5814 * c-common.h (c_common_option_lang_mask,
5815 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
5816 New.
5817 (c_common_init_options): Update prototype.
5818 * c-opts.c (c_common_option_lang_mask): New.
5819 (c_common_initialize_diagnostics): Split out of
5820 c_common_init_options.
5821 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
5822 New.
5823 (c_common_init_options): Update prototype. Use decoded options in
5824 search for -lang-asm.
5825
910ad8de
NF
58262010-07-15 Nathan Froyd <froydnj@codesourcery.com>
5827
5828 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
5829 * c-format.c: Likewise.
5830
718f9c0f
MLI
58312010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
5832
5833 * c-common.h: Include diagnostic-core.h. Error if already
5834 included.
5835 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
5836
4d451982
MLI
58372010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
5838
adfac8df 5839 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
5840 Do not include expr.h
5841 (vector_mode_valid_p): Move here.
5842
119fe915
SB
58432010-06-21 DJ Delorie <dj@redhat.com>
5844
5845 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
5846 allow these pragmas anywhere.
5847
58482010-06-14 Jakub Jelinek <jakub@redhat.com>
5849
5850 PR bootstrap/44509
5851 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
5852 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
5853 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
5854 ggc_strdup instead of xstrdup.
5855
58562010-06-10 Jakub Jelinek <jakub@redhat.com>
5857
5858 * c-cppbuiltin.c: Include cpp-id-data.h.
5859 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
5860 (lazy_hex_fp_value): New function.
5861 (builtin_define_with_hex_fp_value): Provide definitions lazily.
5862
6662d794
MLI
58632010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5864
5865 * c-gimplify.c: Do not include tree-flow.h
5866
38f8b050
JR
58672010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
5868
5869 PR other/44034
5870 * c-common.c: Rename targetm member:
5871 targetm.enum_va_list -> targetm.enum_va_list_p
5872
9589f23e
AS
58732010-06-28 Anatoly Sokolov <aesok@post.ru>
5874
5875 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
5876
3b06d379
SB
58772010-06-28 Steven Bosscher <steven@gcc.gnu.org>
5878
5879 * c-cppbuiltin.c: Do not include except.h.
5880
d166d4c3
AK
58812010-06-24 Andi Kleen <ak@linux.intel.com>
5882
9faeb493
UB
5883 * c-common.c (warn_for_omitted_condop): New.
5884 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 5885
70cb8be6
JM
58862010-06-21 Joseph Myers <joseph@codesourcery.com>
5887
5888 * c.opt (lang-objc): Remove.
5889 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
5890
a4c97feb
JR
58912010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
5892
5893 * c-opts.c: Include "tm_p.h".
5894
6e2f1956
JM
58952010-06-20 Joseph Myers <joseph@codesourcery.com>
5896
5897 * c-common.c (parse_optimize_options): Update call to
5898 decode_options.
5899
bc87224e
NF
59002010-06-18 Nathan Froyd <froydnj@codesourcery.com>
5901
5902 * c-common.c (record_types_used_by_current_var_decl): Adjust for
5903 new type of types_used_by_cur_var_decl.
5904
b49cf425
JR
59052010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
5906
5907 PR bootstrap/44512
5908 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
5909 for C++ standard compliance.
5910
59f9c2ed
JM
59112010-06-16 Jason Merrill <jason@redhat.com>
5912
5913 * c.opt: Add -Wnoexcept.
5914
33766b66
RG
59152010-06-16 Richard Guenther <rguenther@suse.de>
5916
5917 PR c/44555
5918 * c-common.c (c_common_truthvalue_conversion): Remove
5919 premature and wrong optimization concering ADDR_EXPRs.
5920
eff7e30c
AC
59212010-06-15 Arnaud Charlet <charlet@adacore.com>
5922
5923 * c-ada-spec.c (dump_sloc): Remove column info.
5924 (is_simple_enum): New function.
5925 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
5926 enum types when relevant.
5927
6312e84d
MLI
59282010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
5929
9faeb493 5930 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
5931 location.
5932
1cb42611
JM
59332010-06-10 Joseph Myers <joseph@codesourcery.com>
5934
5935 * c-opts.c (c_common_handle_option): Don't handle
5936 OPT_fshow_column.
5937
a9429e29
LB
59382010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5939
5940 * c-pragma.c (push_alignment): Use typed GC allocation.
5941 (handle_pragma_push_options): Likewise.
5942
5943 * c-common.c (parse_optimize_options): Likewise.
5944
5945 * c-common.h (struct sorted_fields_type): Add variable_size GTY
5946 option.
5947
5498f011
JM
59482010-06-07 Joseph Myers <joseph@codesourcery.com>
5949
5950 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
5951 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
5952 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
5953 flag_signed_bitfields, warn_strict_null_sentinel,
5954 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
5955 flag_gen_declaration, flag_no_gnu_keywords,
5956 flag_implement_inlines, flag_implicit_templates,
5957 flag_implicit_inline_templates, flag_optional_diags,
5958 flag_elide_constructors, flag_default_inline, flag_rtti,
5959 flag_conserve_space, flag_access_control, flag_check_new,
5960 flag_new_for_scope, flag_weak, flag_working_directory,
5961 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
5962 flag_enforce_eh_specs, flag_threadsafe_statics,
5963 flag_pretty_templates): Remove.
5964 * c-common.h (flag_preprocess_only, flag_nil_receivers,
5965 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
5966 flag_replace_objc_classes, flag_undef, flag_no_builtin,
5967 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
5968 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
5969 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
5970 flag_no_gnu_keywords, flag_implement_inlines,
5971 flag_implicit_templates, flag_implicit_inline_templates,
5972 flag_optional_diags, flag_elide_constructors, flag_default_inline,
5973 flag_rtti, flag_conserve_space, flag_access_control,
5974 flag_check_new, flag_new_for_scope, flag_weak,
5975 flag_working_directory, flag_use_cxa_atexit,
5976 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
5977 flag_threadsafe_statics, flag_pretty_templates,
5978 warn_strict_null_sentinel): Remove.
5979 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
5980 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
5981 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
5982 fimplicit-inline-templates, fimplicit-templates,
5983 flax-vector-conversions, fms-extensions, fnil-receivers,
5984 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
5985 frtti, fshort-double, fshort-enums, fshort-wchar,
5986 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
5987 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
5988 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
5989 gen-decls, undef): Use Var.
5990 (fdefault-inline, foptional-diags): Document as doing nothing.
5991 * c-opts.c (c_common_handle_option): Remove cases for options now
5992 using Var. Mark ignored options as such.
5993
39dabefd
SB
59942010-06-05 Steven Bosscher <steven@gcc.gnu.org>
5995
9faeb493 5996 * c-common.c: Moved to here from parent directory.
39dabefd
SB
5997 * c-common.def: Likewise.
5998 * c-common.h: Likewise.
5999 * c-cppbuiltin.c: Likewise.
6000 * c-dump.c: Likewise.
6001 * c-format.c: Likewise.
6002 * c-format.h : Likewise.
6003 * c-gimplify.c: Likewise.
6004 * c-lex.c: Likewise.
6005 * c-omp.c: Likewise.
6006 * c.opt: Likewise.
6007 * c-opts.c: Likewise.
6008 * c-pch.c: Likewise.
6009 * c-ppoutput.c: Likewise.
6010 * c-pragma.c: Likewise.
6011 * c-pragma.h: Likewise.
6012 * c-pretty-print.c: Likewise.
6013 * c-pretty-print.h: Likewise.
6014 * c-semantics.c: Likewise.
6015 * stub-objc.c: Likewise.
6016
6017 * c-common.c: Include gt-c-family-c-common.h.
6018 * c-pragma.c: Include gt-c-family-c-pragma.h.
6019\f
818ab71a 6020Copyright (C) 2010-2016 Free Software Foundation, Inc.
39dabefd
SB
6021
6022Copying and distribution of this file, with or without modification,
6023are permitted in any medium without royalty provided the copyright
6024notice and this notice are preserved.
This page took 1.922093 seconds and 5 git commands to generate.