]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
Implement -fsanitize=signed-integer-overflow.
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
31e071ae
MP
12013-12-04 Jakub Jelinek <jakub@redhat.com>
2 Marek Polacek <polacek@redhat.com>
3
4 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
5 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
6
d7947e19
L
72013-11-29 H.J. Lu <hongjiu.lu@intel.com>
8
9 PR c/59309
10 * cilk.c (gimplify_cilk_spawn): Properly handle function without
11 arguments.
12
fad7652e
JJ
132013-11-29 Jakub Jelinek <jakub@redhat.com>
14
15 PR c/59280
16 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
17 goto invalid. If it is error_mark_node, don't issue further
18 diagnostics.
19
8b5e1202
SO
202013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
21
22 * c.opt (Wopenmp-simd): New.
23
0a508bb6
JJ
242013-11-22 Jakub Jelinek <jakub@redhat.com>
25
26 * c-ubsan.h (ubsan_instrument_return): New prototype.
27 * c-ubsan.c (ubsan_instrument_return): New function.
28
2fb9a547
AM
292013-11-22 Andrew MacLeod <amacleod@redhat.com>
30
31 * c-common.c: Add required include files from gimple.h.
32 * c-gimplify.c: Likewise
33 * cilk.c: Likewise
34
8400e75e
DM
352013-11-22 David Malcolm <dmalcolm@redhat.com>
36
37 * c-common.c (unsafe_conversion_p): Remove use of
38 EXPR_LOC_OR_HERE macro.
39 (conversion_warning): Likewise.
40 (warnings_for_convert_and_check): Likewise.
41 (warn_for_collisions_1): Likewise.
42 (shorten_compare): Likewise, and remove use of in_system_header
43 macro, using the location from the former.
44 * c-lex.c (dump_one_header): Remove use of input_filename macro.
45 (cb_def_pragma): Remove use of in_system_header macro.
46 (lex_string): Likewise.
47 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
48
eb1ce453
KZ
492013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
50 Mike Stump <mikestump@comcast.net>
51 Richard Sandiford <rdsandiford@googlemail.com>
52
53 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
54 instead of TREE_INT_CST_LOW, in cases where there is a protecting
55 tree_fits_shwi_p or tree_fits_uhwi_p.
56 (dump_generic_ada_node): Likewise.
57 * c-format.c (check_format_arg): Likewise.
58 * c-pretty-print.c (pp_c_integer_constant): Likewise.
59
6b3b8c27
KZ
602013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
61
62 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
63
49b0aa18
JC
642013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
65
66 PR c/53001
67 * c-common.c (unsafe_conversion_p): Make this function
68 return an enumeration with more detail.
69 (conversion_warning): Use the new return type of
70 unsafe_conversion_p to separately warn either about conversions
71 that lower floating point number precision or about the other
72 kinds of conversions.
73 * c-common.h (enum conversion_safety): New enumeration.
74 (unsafe_conversion_p): switching return type to
75 conversion_safety enumeration.
76 * c.opt: Adding new warning -Wfloat-conversion and
77 enabling it with -Wconversion.
78
b826515a
BS
792013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
80
81 * c-opts.c: Include plugin.h.
82 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
83
b9a55b13
MP
842013-11-19 Marek Polacek <polacek@redhat.com>
85
86 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
87 call.
88 (ubsan_instrument_shift): Likewise.
89 (ubsan_instrument_vla): Likewise.
90
7d362f6c
RS
912013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
92
93 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
94 cast to unsigned type.
95
386b1f1f
RS
962013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
97
98 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
99 tree_low_cst.
100 (complete_array_type): Update comment to refer to tree_to_[su]hwi
101 rather than tree_low_cst.
102
ae7e9ddd
RS
1032013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
104
105 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
106 tree_to_uhwi throughout.
107
9439e9a1
RS
1082013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
109
110 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
111 tree_low_cst (..., 0) with tree_to_shwi throughout.
112
cc269bb6
RS
1132013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
114
115 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
116 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
117
9541ffee
RS
1182013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
119
120 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
121 host_integerp (..., 0) with tree_fits_shwi_p throughout.
122
c02065fc
AH
1232013-11-15 Aldy Hernandez <aldyh@redhat.com>
124
125 * c-cilkplus.c: New file.
126 * c-common.c (readonly_error): Add location argument.
127 * c-common.h (readonly_error): Same.
128 (c_finish_cilk_clauses): Protoize.
129 (c_check_cilk_loop): Same.
130 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
131 Do not fail on error_mark_node.
132 Abstract increment canonicalization to here...
133 (c_omp_for_incr_canonicalize_ptr): New.
134 c-pragma.c (init_pragma): Register "simd" pragma.
135 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
136 (enum pragma_cilk_clause): New.
137
9cc65f15
RS
1382013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
139
140 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
141 wchar_type and host_integerp checks.
142
18f429e2
AM
1432013-11-14 Andrew MacLeod <amacleod@redhat.com>
144
145 * c-common.c: Likewise.
146 * c-gimplify.c: Likewise.
147 * cilk.c: Likewise.
148
d8a2d370
DN
1492013-11-14 Diego Novillo <dnovillo@google.com>
150
151 * c-common.c: Include fold-const.h.
152 Include stor-layout.h.
153 Include calls.h.
154 Include stringpool.h.
155 Include attribs.h.
156 Include varasm.h.
157 Include trans-mem.h.
158 * c-cppbuiltin.c: Include stor-layout.h.
159 Include stringpool.h.
160 * c-format.c: Include stringpool.h.
161 * c-lex.c: Include stringpool.h.
162 Include stor-layout.h.
163 * c-pragma.c: Include stringpool.h.
164 Include attribs.h.
165 Include varasm.h.
166 Include gcc-symtab.h.
167 * c-pretty-print.c: Include stor-layout.h.
168 Include attribs.h.
169 * cilk.c: Include stringpool.h.
170 Include calls.h.
171
38b7bc7f
JM
1722013-11-13 Joseph Myers <joseph@codesourcery.com>
173
174 * c-common.h (enum rid): Add RID_AUTO_TYPE.
175 * c-common.c (c_common_reswords): Add __auto_type.
176 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
177
45b0be94
AM
1782013-11-12 Andrew MacLeod <amacleod@redhat.com>
179
18f429e2
AM
180 * c-common.c: Include gimplify.h.
181 * c-gimplify.c: Likewise.
182 * cilk.c: Likewise.
183 * c-omp.c: Include gimple-expr.h instead of gimple.h.
184 * c-ubsan.c: Don't include gimple.h.
45b0be94 185
582d9b50
JM
1862013-11-12 Joseph Myers <joseph@codesourcery.com>
187
188 * c-common.c (c_common_reswords): Add _Thread_local.
189
6b28e197
JM
1902013-11-09 Joseph Myers <joseph@codesourcery.com>
191
192 * c-common.c (atomic_size_supported_p): New function.
193 (resolve_overloaded_atomic_exchange)
194 (resolve_overloaded_atomic_compare_exchange)
195 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
196 Use it instead of comparing size with a local list of sizes.
197
267bac10
JM
1982013-11-07 Andrew MacLeod <amacleod@redhat.com>
199 Joseph Myers <joseph@codesourcery.com>
200
201 * c-common.h (enum rid): Add RID_ATOMIC.
202 * c-common.c (c_common_reswords): Add _Atomic.
203 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
204 (keyword_is_type_qualifier): Accept RID_ATOMIC.
205 * c-format.c (check_format_types): Check for extra _Atomic
206 qualifiers in format argument.
207 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
208 (pp_c_type_qualifier_list): Mention _Atomic in comment.
209
5157b91e
TB
2102013-11-06 Tobias Burnus <burnus@net-b.de>
211
212 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
213
6dbe0958
JM
2142013-11-06 Joseph Myers <joseph@codesourcery.com>
215
216 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
217 standards modes.
218 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
219 to mean lack of IEEE 754 support.
220
e8ff5196
TB
2212013-11-05 Tobias Burnus <burnus@net-b.de>
222
223 * c.opt (-Wdate-time): New option
224 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
225
254a0760
JM
2262013-11-05 Joseph Myers <joseph@codesourcery.com>
227
228 * c-cppbuiltin.c (cpp_iec_559_value): Test
229 flag_excess_precision_cmdline not flag_excess_precision.
230
6d7f7e0a
TB
2312013-11-05 Tobias Burnus <burnus@net-b.de>
232
233 * c.opt (fopenmp-simd): New option.
234 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
235 (omp_pragmas): ... this new struct.
236 (c_pp_lookup_pragma): Also walk omp_pragmas.
237 (init_pragma): Init pragmas for -fopenmp-simd.
238
55a7f02f
MP
2392013-11-04 Marek Polacek <polacek@redhat.com>
240
241 PR c++/58979
242 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
243
9193fb05
JM
2442013-11-04 Joseph Myers <joseph@codesourcery.com>
245
246 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
247 New functions.
248 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
249
94159ecf
EB
2502013-11-04 Eric Botcazou <ebotcazou@adacore.com>
251
252 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
253 (dump_ada_specs): Adjust prototype of second callback.
254 * c-ada-spec.c (cpp_check): New global variable.
255 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
256 (print_generic_ada_decl): Likewise.
257 (has_static_fields): Change return type to bool and add guard.
258 (has_nontrivial_methods): New predicate.
259 (is_tagged_type): Change return type to bool.
260 (separate_class_package): Call has_nontrivial_methods.
261 (pp_ada_tree_identifier): Minor tweaks.
262 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
263 (dump_ada_array_domains): Likewise.
264 (dump_ada_array_type): Likewise.
265 (dump_template_types): Remove cpp_check parameter and do not pass it to
266 dump_generic_ada_node.
267 (dump_ada_template): Likewise.
268 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
269 recursively.
270 (print_ada_methods): Change return type to integer. Remove cpp_check
271 parameter and do not pass it down.
272 (dump_nested_types): Remove cpp_check parameter and do not pass it to
273 dump_generic_ada_node.
274 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
275 accessing methods.
276 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
277 down. Use has_nontrivial_methods to recognize C++ classes. Use return
278 value of print_ada_methods.
279 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
280 Set cpp_check to it before invoking dump_ada_nodes.
281 (dump_ada_specs): Likewise.
282
b906f4ca
MP
2832013-11-03 Marek Polacek <polacek@redhat.com>
284
285 * c-ubsan.c: Don't include hash-table.h.
286 (ubsan_instrument_vla): New function.
287 * c-ubsan.h: Declare it.
288
5e20cdc9
DM
2892013-10-31 David Malcolm <dmalcolm@redhat.com>
290
291 Automated part of renaming of symtab_node_base to symtab_node.
292
293 Patch autogenerated by rename_symtab.py from
294 https://github.com/davidmalcolm/gcc-refactoring-scripts
295 revision 58bb219cc090b2f4516a9297d868c245495ee622
296
297 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
298 symtab_node_base to symtab_node.
299
7057e645
ESR
3002013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
301
302 Implement C++14 digit separators.
303 * c-lex.c (interpret_float): Remove digit separators from scratch string
304 before building real literal.
305
193ea7bc
JJ
3062013-10-30 Jakub Jelinek <jakub@redhat.com>
307
308 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
309
939b37da
BI
3102013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
311
312 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
313 fields.
314 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
315 enabled.
316 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
317 (insert_cilk_frame): New prototype.
318 (cilk_init_builtins): Likewise.
319 (gimplify_cilk_spawn): Likewise.
320 (c_cilk_install_body_w_frame_cleanup): Likewise.
321 (cilk_detect_spawn_and_unwrap): Likewise.
322 (cilk_set_spawn_marker): Likewise.
323 (build_cilk_sync): Likewise.
324 (build_cilk_spawn): Likewise.
325 * cilk.c: New file.
326
67348ccc
DM
3272013-10-29 David Malcolm <dmalcolm@redhat.com>
328
329 Patch autogenerated by refactor_symtab.py from
330 https://github.com/davidmalcolm/gcc-refactoring-scripts
331 revision 58bb219cc090b2f4516a9297d868c245495ee622
332
333 * c-gimplify.c (c_genericize): Update for conversion of symtab types
334 to a true class hierarchy.
335 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
336
d570872d
RS
3372013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
338
339 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
340
98906124
JL
3412013-10-26 Jeff Law <law@redhat.com>
342
343 * c-family/c-common.c (c_define_builtins): Remove mudflap support.
344 * c-family/c.opt: Ignore and warn for mudflap options.
345
d73749df 3462013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
347
348 PR other/33426
349 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
350 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
351
3f04b1bb
JM
3522013-10-23 Jason Merrill <jason@redhat.com>
353
354 * c-format.c (gcc_cxxdiag_char_table): Add %X.
355
acf0174b
JJ
3562013-10-11 Jakub Jelinek <jakub@redhat.com>
357
acd15a28
JJ
358 * c-common.h (omp_clause_mask::operator !=): New method.
359 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
360 instead of if (mask & something) tests everywhere.
361
acf0174b
JJ
362 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
363 201307 instead of 201107.
364 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
365 (c_common_attribute_table): Add "omp declare target" and
366 "omp declare simd" attributes.
367 (handle_omp_declare_target_attribute,
368 handle_omp_declare_simd_attribute): New functions.
369 * c-omp.c: Include c-pragma.h.
370 (c_finish_omp_taskgroup): New function.
371 (c_finish_omp_atomic): Add swapped argument, if true,
372 build the operation first with rhs, lhs arguments and use NOP_EXPR
373 build_modify_expr.
374 (c_finish_omp_for): Add code argument, pass it down to make_code.
375 (c_omp_split_clauses): New function.
376 (c_split_parallel_clauses): Removed.
377 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
378 c_omp_declare_simd_clauses_to_decls): New functions.
379 * c-common.h (omp_clause_mask): New type.
380 (OMP_CLAUSE_MASK_1): Define.
381 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
382 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
383 omp_clause_mask::operator |, omp_clause_mask::operator &,
384 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
385 omp_clause_mask::operator ==): New methods.
386 (enum c_omp_clause_split): New.
387 (c_finish_omp_taskgroup): New prototype.
388 (c_finish_omp_atomic): Add swapped argument.
389 (c_finish_omp_for): Add code argument.
390 (c_omp_split_clauses): New prototype.
391 (c_split_parallel_clauses): Removed.
392 (c_omp_declare_simd_clauses_to_numbers,
393 c_omp_declare_simd_clauses_to_decls): New prototypes.
394 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
395 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
396 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
397 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
398 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
399 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
400 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
401 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
402 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
403 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
404 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
405 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
406 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
407 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
408 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
409 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
410 PRAGMA_OMP_CLAUSE_UNIFORM.
411
826cacfe
MG
4122013-10-09 Marc Glisse <marc.glisse@inria.fr>
413
414 PR tree-optimization/20318
415 * c-common.c (handle_returns_nonnull_attribute): New function.
416 (c_common_attribute_table): Add returns_nonnull.
417
2284b034
MG
4182013-10-03 Marc Glisse <marc.glisse@inria.fr>
419
420 PR c++/19476
421 * c.opt (fcheck-new): Move to common.opt.
422
b56e9788
MP
4232013-09-25 Marek Polacek <polacek@redhat.com>
424 Jakub Jelinek <jakub@redhat.com>
425
426 PR sanitizer/58413
427 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
428 an expression if we can prove it is correct.
429 (ubsan_instrument_division): Likewise. Remove unnecessary
430 check.
431
ce6923c5
MP
4322013-09-18 Marek Polacek <polacek@redhat.com>
433
434 PR sanitizer/58411
435 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
436 Declare it.
437 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
438
fb5610fb
IS
4392013-09-14 Iain Sandoe <iain@codesourcery.com>
440
441 PR target/48094
442 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
443 fobjc-gc, freplace-objc-classes): Accept for LTO.
444
88b0e79e
JC
4452013-09-13 Jacek Caban <jacek@codeweavers.com>
446
447 * c-target.def: New hook
448
c9b0866a
PC
4492013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
450
451 PR c++/43452
452 * c.opt (Wdelete-incomplete): Add.
453
0af94e6f
JR
4542013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
455
456 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
457 (vector_types_compatible_elements_p): New function.
458 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
459 declaration.
460 (vector_types_compatible_elements_p): Declare.
461
7c26172c
GDR
4622013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
463
464 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
465 a virtual member function.
466 (pp_simple_type_specifier): Remove.
467 (pp_c_type_specifier): Likewise.
468 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
469 Rename from pp_c_type_specifier. Adjust.
470 (c_pretty_printer::c_pretty_printer): Do not assign to
471 simple_type_specifier.
472
20059c8b
GDR
4732013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
474
475 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
476 member function.
477 (c_pretty_printer::storage_class_specifier): Likewise.
478 (c_pretty_printer::initializer): Likewise.
479 (pp_declaration): Remove.
480 (pp_declaration_specifiers): Likewise.
481 (pp_abstract_declarator): Likewise.
482 (pp_declarator): Likewise.
483 (pp_type_id): Likewise.
484 (pp_statement): Likewise.
485 (pp_constant): Likewise.
486 (pp_id_expression): Likewise.
487 (pp_primary_expression): Likewise.
488 (pp_unary_expression): Likewise.
489 (pp_multiplicative_expression): Likewise.
490 (pp_conditional_expression): Likewise.
491 (pp_assignment_expression): Likewise.
492 (pp_expression): Likewise.
493 (pp_c_type_id): Likewise.
494 (pp_c_storage_class_specifier): Likewise.
495 * c-pretty-print.c (pp_c_type_cast): Tidy.
496 (pp_c_pointer): Likewise.
497 (pp_c_type_specifier): Likewise.
498 (pp_c_parameter_type_list): Likewise.
499 (pp_c_function_definition): Likewise.
500 (pp_c_init_declarator): Likewise.
501 (pp_c_initializer_list): Likewise.
502 (pp_c_constructor_elts): Likewise.
503 (c_pretty_printer::direct_abstract_declarator): Likewise.
504 (c_pretty_printer::declaration_specifiers): Likewise.
505 (c_pretty_printer::primary_expression): Likewise.
506 (c_pretty_printer::postfix_expression): Likewise.
507 (c_pretty_printer::type_id): Rename from pp_c_type_id.
508 (c_pretty_printer::storage_class_specifier): Rename from
509 pp_c_storage_class_specifier.
510 (c_pretty_printer::initializer): Rename from pp_c_initializer.
511 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
512 storage_class_specifier, initializer, offset_list, flags.
513
de5a5fa1
MP
5142013-08-30 Marek Polacek <polacek@redhat.com>
515
516 * c-ubsan.c: New file.
517 * c-ubsan.h: New file.
518
8f0e4d72
GDR
5192013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
520
521 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
522 member function.
523 (c_pretty_printer::declaration_specifiers): Likewise.
524 (c_pretty_printer::declarator): Likewise.
525 (c_pretty_printer::abstract_declarator): Likewise.
526 (c_pretty_printer::direct_abstract_declarator): Likewise.
527 (c_pretty_printer::direct_declarator): Likewise.
528 (c_pretty_printer::function_specifier): Likewise.
529 (pp_declaration): Adjust.
530 (pp_declaration_specifiers): Likewise.
531 (pp_abstract_declarator): Likewise.
532 (pp_direct_declarator): Likewise.
533 (pp_function_specifier): Likewise.
534 (pp_direct_abstract_declarator): Remove as unused.
535 (pp_c_declaration): Remove.
536 (pp_c_declaration_specifiers): Likewise.
537 (pp_c_declarator): Likewise.
538 (pp_c_direct_declarator): Likewise.
539 (pp_c_function_specifier): Likewise.
540 (pp_c_direct_abstract_declarator): Likewise.
541 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
542 from pp_c_abstract_declarator. Adjust.
543 (c_pretty_printer::direct_abstract_declarator): Rename from
544 pp_c_direct_abstract_declarator. Adjust.
545 (c_pretty_printer::function_specifier): Rename from
546 pp_c_function_specifier. Adjust.
547 (c_pretty_printer::declaration_specifiers): Rename from
548 pp_c_declaration_specifiers. Adjust.
549 (c_pretty_printer::direct_declarator): Rename from
550 pp_c_direct_declarator. Adjust.
551 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
552 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
553 (c_pretty_printer::c_pretty_printer): Do not assign to
554 declaration, declaration_specifiers, declarator,
555 direct_declarator, direct_abstract_declarator, function_specifier.
556
00d34d3a
GDR
5572013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
558
559 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
560 virtual member function.
561 (c_pretty_printer::multiplicative_expression): Likewise.
562 (c_pretty_printer::conditional_expression): Likewise.
563 (c_pretty_printer::assignment_expression): Likewise.
564 (c_pretty_printer::expression): Likewise.
565 (pp_unary_expression): Adjust.
566 (pp_multiplicative_expression): Likewise.
567 (pp_assignment_expression): Likewise.
568 (pp_conditional_expression): Likewise.
569 (pp_expression): Likewise.
570 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
571 from pp_c_unary_expression. Adjust.
572 (c_pretty_printer::multiplicative_expression): Rename from
573 pp_c_multiplicative_expression. Adjust.
574 (c_pretty_printer::conditional_expression): Rename from
575 pp_c_conditional_expression. Adjust.
576 (c_pretty_printer::assignment_expression): Rename from
577 pp_c_assignment_expression. Adjust.
578 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
579 (c_pretty_printer::c_pretty_printer): Do not assign to
580 unary_expression, multiplicative_expression,
581 conditional_expression, expression.
582
fb22178f
GDR
5832013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
584
585 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
586 virtual member function.
587 (pp_postfix_expression): Adjust.
588 (pp_c_postfix_expression): Remove.
589 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
590 from pp_c_postfix_expression. Adjust.
591 (c_pretty_printer::c_pretty_printer): Do not assign to
592 postfix_expression.
593
7ecc2600
GDR
5942013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
595
596 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
597 virtua member function.
598 (pp_primary_expression): Adjust.
599 (pp_c_primary_expression): Remove.
600 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
601 from pp_c_primary_expression. Adjust.
602 (pp_c_initializer_list): Use pp_primary_expression.
603 (c_pretty_printer::c_pretty_printer): Do not assign to
604 primary_expression.
605
0691175f
GDR
6062013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
607
608 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
609 * c-pretty-print.c (M_): Remove.
610 (c_pretty_printer::translate_string): Define.
611 (pp_c_type_specifier): Use it.
612 (pp_c_primary_expression): Likewise.
613 (pp_c_expression): Likewise.
614
66dfe4c4
GDR
6152013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
616
617 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
618 virtual function.
619 (pp_c_id_expression): Remove.
620 (pp_id_expression): Adjust.
621 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
622 pp_c_id_expression. Adjust.
623 (pp_c_postfix_expression): Use pp_id_expression.
624 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
625
ca43e9d5
GDR
6262013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
627
628 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
629 member function.
630 (pp_constant): Adjust.
631 (pp_c_constant): Remove.
632 * c-pretty-print.c (c_pretty_printer::constant): Rename from
633 pp_c_constant. Adjust.
634 (pp_c_constant)
635 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
636 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
637
da6ca2b5
GDR
6382013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
639
640 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
641 (c_pretty_printer::c_pretty_printer): Declare.
642 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
643 c_pretty_printer_init. Adjust.
644 (print_c_tree): Do not call c_pretty_printer_init.
645 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
646
65a372f4
AC
6472013-08-09 Arnaud Charlet <charlet@adacore.com>
648
649 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
650
fd9b0f32
PC
6512013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
652
653 PR c++/58080
654 * c-common.c (pointer_int_sum): Add bool parameter.
655 * c-common.h (pointer_int_sum): Adjust declaration.
656
e0aec1e9
GDR
6572013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
658
659 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
660 c_pretty_printer variable.
661
b066401f
GDR
6622013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
663
664 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
665 (pp_base): Remove.
666 (pp_c_base): Likewise. Adjust users.
667 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
668 (pp_c_whitespace): Do not call pp_base.
669 (pp_c_left_paren): Likewise.
670 (pp_c_right_paren): Likewise.
671 (pp_c_left_brace): Likewise.
672 (pp_c_right_brace): Likewise.
673 (pp_c_left_bracket): Likewise.
674 (pp_c_right_bracket): Likewise.
675 (pp_c_dot): Likewise.
676 (pp_c_ampersand): Likewise.
677 (pp_c_star): Likewise.
678 (pp_c_arrow): Likewise.
679 (pp_c_semicolon): Likewise.
680 (pp_c_complement): Likewise.
681 (pp_c_exclamation): Likewise.
682 (pp_c_direct_declarator): Likewise.
683 (pp_c_ws_string): Likewise.
684 (pp_c_identifier): Likewise.
685 (pp_c_statement): Likewise.
686 (print_c_tree): Likewise.
687
65e5a578
ESR
6882013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
689
690 PR c++/58072
691 * c-common.c (c_parse_error): Catch user-defined literal tokens and
692 provide useful error strings.
693
137a1a27
GDR
6942013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
695
696 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
697 printer functions instead of pp_string or operators and punctuators.
698 (dump_generic_ada_node): Likewise.
699 * c-pretty-print.c (pp_c_type_specifier): Likewise.
700 (pp_c_relational_expression): Likewise.
701 (pp_c_logical_or_expression): Likewise.
702
07838b13
GDR
7032013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
704
705 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
706 functions instead of pp_character.
707 (pp_ada_tree_identifier): Likewise.
708 (dump_ada_double_name): Likewise.
709 (dump_ada_function_declaration): Likewise.
710 (dump_ada_array_domains): Likewise.
711 (dump_template_types): Likewise.
712 (dump_generic_ada_node): Likewise.
713 (print_ada_declaration): Likewise.
714 (print_ada_struct_decl): Likewise.
715 * c-pretty-print.c (pp_c_integer_constant): Likewise.
716
433cc7b0
TT
7172013-07-23 Tom Tromey <tromey@redhat.com>
718
719 * c-common.h (enum rid) <RID_GENERIC>: New constant.
720 * c-common.c (c_common_reswords): Add _Generic.
721
688010ba
OB
7222013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
723
724 * c-common.c: Fix typos.
725 * c-common.h: Likewise.
726
2a99e5e6
LL
7272013-07-13 Lubos Lunak <l.lunak@suse.cz>
728
729 PR c++/55203
730 * c-common.c (c_common_attribute_table): Add warn_unused.
731 (handle_warn_unused_attribute): New.
732
c26302d5
JJ
7332013-07-10 Jakub Jelinek <jakub@redhat.com>
734
735 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
736 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
737
dfeadaa0
PC
7382013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
739
740 PR c++/57869
741 * c.opt: Add Wconditionally-supported.
742
6a2fa4b2
GS
7432013-07-08 Graham Stott <graham.stott@btinternet.com>
744
745 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
746 unused variables l_length and l_node.
747
ecdbd01a 7482013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
749
750 PR c/57821
751 * c-common.c (complete_array_type): Delay folding first index
752 like other indices. When folding, check for index overflow.
753
bedc293e
MG
7542013-06-27 Marc Glisse <marc.glisse@inria.fr>
755
756 PR c++/57509
757 * c-common.h (c_build_vec_perm_expr): New complain argument.
758 * c-common.c (c_build_vec_perm_expr): Likewise.
759 Use save_expr also in C++.
760
604b2bfc
GDR
7612013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
762
763 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
764 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
765 * c-opts.c (c_common_post_options): Likewise.
766
dfeadaa0 7672013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
768
769 * array-notation-common.c (length_mismatch_in_expr): Changed the
770 parameter type's from a dynamic array to a vec_tree. Also removed
771 the size parameters.
772 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
773 the change above.
774
2ce86d2e
BI
7752013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
776
777 * c-common.h (struct cilkplus_an_parts): New structure.
778 (struct cilkplus_an_loop_parts): Likewise.
779 (cilkplus_extract_an_triplets): New prototype.
780 (fix_sec_implicit_args): Likewise.
781 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
782 (fix_sec_implicit_args): Likewise.
604b2bfc 783
07a6825b
BI
7842013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
785
786 * array-notation-common.c (find_inv_trees): Removed an unwanted
787 typecasting.
788 * c-common.h (struct inv_list::additional_tcodes): Changed type from
789 enum rid to enum tree_code.
790
08346abd
JH
7912013-06-11 Jan Hubicka <jh@suse.cz>
792
793 * c-common.c (handle_alias_ifunc_attribute): Do not set
794 DECL_EXTERNAL for weakref variables.
795 * c-pragma.c (handle_pragma_weak): Make sure aliases
796 are not declared as external.
797
d60f1706
BI
7982013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
799
800 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
801 function from c/c-array-notation.c.
802 (is_cilkplus_reduce_builtin): Likewise.
803 (find_rank): Likewise.
804 (extract_array_notation_exprs): Likewise.
805 (replace_array_notations): Likewise.
806 (find_inv_trees): Likewise.
807 (replace_inv_trees): Likewise.
808 (contains_array_notation_expr): Likewise.
809 (find_correct_array_notation_type): Likewise.
810 * c-common.h (struct inv_list): Moved this struct from the file
811 c/c-array-notation.c and added a new field called additional tcodes.
812 (length_mismatch_in_expr_p): New prototype.
813 (is_cilkplus_reduce_builtin): Likewise.
814 (find_rank): Likewise.
815 (extract_array_notation_exprs): Likewise.
816 (replace_array_notation): Likewise.
817 (find_inv_trees): Likewise.
818 (replace_inv_trees): Likewise.
819 (find_correct_array_notation_type): Likewise.
dfeadaa0 820
36536d79
BI
8212013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
822
823 * c-common.c (c_define_builtins): When cilkplus is enabled, the
824 function array_notation_init_builtins is called.
825 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
826 * c-common.def (ARRAY_NOTATION_REF): New tree.
827 * c-common.h (build_array_notation_expr): New function declaration.
828 (build_array_notation_ref): Likewise.
829 (extract_sec_implicit_index_arg): New extern declaration.
830 (is_sec_implicit_index_fn): Likewise.
831 (ARRAY_NOTATION_CHECK): New define.
832 (ARRAY_NOTATION_ARRAY): Likewise.
833 (ARRAY_NOTATION_START): Likewise.
834 (ARRAY_NOTATION_LENGTH): Likewise.
835 (ARRAY_NOTATION_STRIDE): Likewise.
836 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
837 ARRAY_NOTATION_REF.
838 (pp_c_expression): Likewise.
839 * c.opt (flag_enable_cilkplus): New flag.
840 * array-notation-common.c: New file.
841
f7716d57
JJ
8422013-05-14 Jakub Jelinek <jakub@redhat.com>
843
844 PR c++/57274
845 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
846
a5e0cd1d
MG
8472013-05-10 Marc Glisse <marc.glisse@inria.fr>
848
849 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
850 vectors.
851
f6bc1c4a
HS
8522013-05-07 Han Shen <shenhan@google.com>
853
854 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
855
3f12f6e9
SKS
8562013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
857
858 * c-common.c (check_user_alignment): Emit error for negative values.
859
61949153
PC
8602013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
861
862 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
863
e93e18e9
PC
8642013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
865
866 * c-cppbuiltin.c (c_cpp_builtins): Do not define
867 __GXX_EXPERIMENTAL_CXX1Y__.
868
44d90fe1
PC
8692013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
870 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
871
872 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
873 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
874 to simply use OPT_Wpointer_arith.
875 (c_sizeof_or_alignof_type): Likewise.
876
13f39b2e
PC
8772013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
878
879 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
880
4b84d650
JJ
8812013-04-12 Jakub Jelinek <jakub@redhat.com>
882
883 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
884 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
885 specifiers.
886
fb037b5d
SB
8872013-04-07 Steven Bosscher <steven@gcc.gnu.org>
888
889 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
890
4e856798
PC
8912013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
892
893 * c-common.c (pointer_int_sum): Remove dead code.
894
4b1baac8
RS
8952013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
896
897 PR middle-end/56524
898 * c-common.c (handle_optimize_attribute): Don't call
899 save_optabs_if_changed.
900
0b50e654
JJ
9012013-03-05 Jakub Jelinek <jakub@redhat.com>
902
903 PR middle-end/56461
904 * c-pch.c (pch_init): Free target_validity at the end.
905
48c41403
JJ
9062013-03-04 Jakub Jelinek <jakub@redhat.com>
907
908 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
909
e664c61c
KS
9102013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
911 Jakub Jelinek <jakub@redhat.com>
912
913 PR sanitizer/56454
914 * c-common.c (handle_no_sanitize_address_attribute): New function.
915 (c_common_attribute_table): Add no_sanitize_address attribute.
916 (handle_no_address_safety_analysis_attribute): Add
917 no_sanitize_address attribute, not no_address_safety_analysis
918 attribute.
919
a475fd3d 9202013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
921
922 PR target/52555
923 * c-common.c (handle_optimize_attribute): Call
924 save_optabs_if_changed.
925
f6007d99
JJ
9262013-02-18 Jakub Jelinek <jakub@redhat.com>
927 Steven Bosscher <steven@gcc.gnu.org>
928
929 PR pch/54117
930 * c-opts.c (c_common_post_options): If debug info is enabled
931 and non-dwarf*, refuse to load PCH files and when writing PCH
932 file warn.
933
cf35e2b1
JJ
9342013-02-05 Jakub Jelinek <jakub@redhat.com>
935
936 PR middle-end/56167
937 * c-common.c (handle_error_attribute): Fix condition.
938
32887460
JJ
9392013-01-30 Jakub Jelinek <jakub@redhat.com>
940
941 PR c++/55742
942 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
943
5af057d8
JM
9442013-01-18 Jason Merrill <jason@redhat.com>
945
946 PR target/54908
947 * c.opt (-fextern-tls-init): New.
948 * c-opts.c (c_common_post_options): Handle it.
949
cc83c823
JJ
9502013-01-09 Jakub Jelinek <jakub@redhat.com>
951
952 PR c/48418
953 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
954 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
955 and is either negative or bigger or equal to type precision
956 of the first operand.
957
a859517f
MP
9582012-12-03 Marek Polacek <polacek@redhat.com>
959
960 PR c/55570
961 * c-common.c (check_user_alignment): Swap order of tests,
962 check TREE_CODE first.
963
2d7aa578
ESR
9642012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
965
966 PR c++/52654
967 * c-common.h (overflow_type): New enum.
968 (build_userdef_literal): Add overflow_type argument.
969 (tree_userdef_literal): Add overflow_type.
970 (USERDEF_LITERAL_OVERFLOW): New access macro.
971 * c-common.c (build_userdef_literal): Add overflow_type
972 argument.
973 * c-lex.c (c_lex_with_flags): Add overflow_type to
974 build_userdef_literal calls.
975 (interpret_integer, interpret_float): Add overflow_type argument.
976
cc3c4f62
RB
9772012-11-28 Richard Biener <rguenther@suse.de>
978
979 PR c/35634
980 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
981 here and use a type with proper overflow behavior for types that would
982 need to be promoted for the arithmetic.
983
77bc5132
JJ
9842012-11-23 Jakub Jelinek <jakub@redhat.com>
985
986 PR sanitizer/55435
987 * c-common.c (handle_no_address_safety_analysis_attribute): New
988 function.
989 (c_common_attribute_table): Add no_address_safety_analysis.
990
5dc99c46
SB
9912012-11-16 Simon Baldwin <simonb@google.com>
992
993 * c.opt: Add f[no-]canonical-system-headers.
994 * c-opts.c (c_common_handle_option): Handle
995 OPT_fcanonical_system_headers.
996
a4a0016d
ESR
9972012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
998
999 PR c++/54413
1000 * c-opts.c (c_common_handle_option): Set new flags.
1001 * c.opt: Describe new flags.
1002
7dbb85a7
JM
10032012-11-09 Jason Merrill <jason@redhat.com>
1004
1005 * c.opt (Wabi-tag): New.
1006
ad7bac31
AK
10072012-11-09 Andi Kleen <ak@linux.intel.com>
1008
1009 PR 55139
1010 * c-common.c (get_atomic_generic_size): Mask with
1011 MEMMODEL_MASK
1012
7332899a
MLI
10132012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1014
1015 PR c/53063
1016 * c.opt (Wformat): Make it Alias Wformat=1.
1017 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
1018 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
1019 LangEnabledBy.
1020 (Wformat=): RejectNegative. Use LangEnabledBy.
1021 (Wnonnull): Use LangEnabledBy.
1022 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
1023 * c-format.c (set_Wformat): Delete.
1024 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
1025 (maybe_read_dollar_number): Likewise.
1026 (avoid_dollar_number): Likewise.
1027 (finish_dollar_format_checking): Likewise.
1028 (check_format_info): Likewise.
1029 (check_format_info_main): Likewise.
1030 (check_format_types): Likewise.
1031 (format_type_warning): Likewise.
1032 * c-common.c (int): Likewise.
1033 (check_function_sentinel): Likewise.
1034 * c-common.h (warn_format,set_Wformat): Do not declare here.
1035
34a180a6
MLI
10362012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1037
1038 PR c/53063
1039 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
1040 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
1041 Use LangEnabledBy.
1042 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
1043 common.opt.
1044 (Wvariadic-macros): Init(1).
1045 * c-opts.c (c_common_handle_option): Do not handle them
1046 explicitly.
1047 (c_common_post_options): Likewise.
1048 (sanitize_cpp_opts): warn_unused_macros is now
1049 cpp_warn_unused_macros.
1050 (push_command_line_include): Likewise.
1051 * c-common.c (warn_unknown_pragmas): Do not define.
1052 * c-common.h (warn_unknown_pragmas): Do not declare.
1053
3f46d6a5
MLI
10542012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1055
1056 PR c/51294
1057 * c-common.c (conversion_warning): Handle conditional expressions.
1058
880661a4
JW
10592012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
1060
1061 PR c++/54930
1062 * c.opt (Wreturn_local_addr): Define new option.
1063
4514a96b
JM
10642012-10-25 Jason Merrill <jason@redhat.com>
1065
f14edc1a
JM
1066 * c.opt (Wvirtual-move-assign): New.
1067
4514a96b
JM
1068 * c.opt (Winherited-variadic-ctor): New.
1069
93100c6b
MG
10702012-10-25 Marc Glisse <marc.glisse@inria.fr>
1071
1072 PR c++/54427
1073 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
1074
1efcb8c6
JM
10752012-10-23 Joseph Myers <joseph@codesourcery.com>
1076
1077 * c-common.h (pch_cpp_save_state): Declare.
1078 * c-target.def (c_preinclude): New hook.
1079 * c-opts.c (done_preinclude): New.
1080 (push_command_line_include): Handle default preincluded header.
1081 (cb_file_change): Call pch_cpp_save_state when calling
1082 push_command_line_include.
1083 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
1084 (pch_cpp_save_state): New.
1085 (pch_init): Call pch_cpp_save_state conditionally, instead of
1086 calling cpp_save_state.
1087
4a0ae68e
MLI
10882012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1089
1090 PR c/53063
1091 PR c/40989
1092 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
1093 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
1094 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
1095 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
1096 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
1097 * c-opts.c (c_common_handle_option): Remove explicit handling from
1098 here.
1099 (c_common_post_options): Likewise.
1100
67e4210b
EB
11012012-10-18 Eric Botcazou <ebotcazou@adacore.com>
1102
1103 * c-ada-spec.c (LOCATION_COL): Delete.
1104 (compare_location): New function.
1105 (compare_node): Use it.
1106 (compare_comment): Likewise.
1107
65d4f2cd
MLI
11082012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1109
1110 PR c/53063
1111 PR c/40989
1112 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
1113 * c-opts.c (c_common_handle_option): Do not set them here. Add
1114 comment.
1115 (c_common_post_options): Likewise.
1116
909881cb
EB
11172012-10-16 Eric Botcazou <ebotcazou@adacore.com>
1118
1119 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
1120 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
1121 Remove POINTER_TYPE handling, add large unsigned handling and use
1122 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
1123
3a785c97
JJ
11242012-10-12 Jakub Jelinek <jakub@redhat.com>
1125
1126 PR c/54381
1127 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
1128 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
1129 locs and array of 3 trees instead of just single loc and single
1130 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
1131 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
1132 For *cmp* builtins that take two sources strings report warnings
1133 about first and second source, not about destination and source.
1134
5e54f81d
MG
11352012-10-12 Marc Glisse <marc.glisse@inria.fr>
1136
1137 PR c++/53055
1138 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
1139
f5b02f1e
EB
11402012-10-11 Eric Botcazou <ebotcazou@adacore.com>
1141
1142 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
1143 declaring something coming from another file.
1144
b46dbc6c
AC
11452012-10-10 Arnaud Charlet <charlet@adacore.com>
1146
f5b02f1e 1147 PR ada/54845
b46dbc6c
AC
1148 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
1149
5d9de0d0
PC
11502012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
1151
1152 PR c++/54194
1153 * c-common.c (warn_about_parentheses): Add location_t parameter;
1154 use EXPR_LOC_OR_LOC.
1155 * c-common.h: Update declaration.
1156
a212e43f
MG
11572012-10-09 Marc Glisse <marc.glisse@inria.fr>
1158
1159 PR c++/54427
1160 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
1161 more operations. Make error messages optional.
1162 * c-common.h (enum stv_conv): Moved from c-typeck.c.
1163 (scalar_to_vector): Declare.
1164
b1db7f91
JM
11652012-10-08 Jason Merrill <jason@redhat.com>
1166
1167 * c-common.c (c_common_reswords): Add thread_local.
1168
e28d52cf
DS
11692012-10-08 Dodji Seketeli <dodji@redhat.com>
1170
1171 PR c++/53528 C++11 attribute support
1172 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
1173 new functions.
1174 * c-common.c (check_cxx_fundamental_alignment_constraints): New
1175 static function.
1176 (handle_aligned_attribute): In choose strictest alignment
1177 among many. Use new check_cxx_fundamental_alignment_constraints.
1178 (handle_transparent_union_attribute): In c++11 attribute syntax,
1179 don't look through typedefs.
1180
3b78de56
AC
11812012-10-04 Arnaud Charlet <charlet@adacore.com>
1182
1183 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
1184 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
1185 out of dumpfile.h.
1186
6040bb5f
DC
11872012-09-25 Dehao Chen <dehao@google.com>
1188
1189 PR middle-end/54645
3b78de56 1190 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
1191 map when read in the pch.
1192
0b07a57e
AC
11932012-09-18 Arnaud Charlet <charlet@adacore.com>
1194
1195 * c-ada-spec.c: Style fixes.
1196
da5182be
TQ
11972012-09-18 Thomas Quinot <quinot@adacore.com>
1198
1199 * c.opt (-fada-spec-parent): Define new command line switch.
1200 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
1201 is specified, generate binding spec as a child of the specified unit.
1202
0ccb505d
PC
12032012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
1204 Manuel López-Ibáñez <manu@gcc.gnu.org>
1205
1206 PR c++/53210
1207 * c.opt ([Winit-self]): Enabled by -Wall in C++.
1208
c583af79
AC
12092012-08-23 Arnaud Charlet <charlet@adacore.com>
1210
1211 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
1212 for pointers, and add missing Convention C pragma.
1213 (print_ada_struct_decl): Add missing aliased keyword.
1214 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
1215
1a4049e7
JJ
12162012-08-17 Jakub Jelinek <jakub@redhat.com>
1217
1218 * c-common.c (sizeof_pointer_memaccess_warning): New function.
1219 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
1220 * c-opts.c (c_common_handle_option): Enable it for -Wall.
1221 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
1222 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
1223
70b5e7dc
RG
12242012-08-10 Richard Guenther <rguenther@suse.de>
1225
1226 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
1227
f8923f7e
SB
12282012-08-07 Steven Bosscher <steven@gcc.gnu.org>
1229
1230 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
1231 instead of separate pp_newline and pp_flush.
1232 (print_c_tree): Likewise.
1233
e45abe1f
RH
12342012-07-26 Richard Henderson <rth@redhat.com>
1235
1236 * c-common.c (handle_hot_attribute): Allow labels.
1237 (handle_cold_attribute): Likewise.
1238
332f1d24
JJ
12392012-07-20 Jakub Jelinek <jakub@redhat.com>
1240
1241 PR c++/28656
1242 * c-common.c (check_function_nonnull): Handle multiple nonnull
1243 attributes properly.
1244
7ee2468b
SB
12452012-07-16 Steven Bosscher <steven@gcc.gnu.org>
1246
1247 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
1248 * c-ada-spec.c: Likewise.
1249 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
1250
ee7b28eb
SB
12512012-07-14 Steven Bosscher <steven@gcc.gnu.org>
1252
1253 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
1254 Remove code conditional on it.
1255
6bdf3519
SB
12562012-07-11 Steven Bosscher <steven@gcc.gnu.org>
1257
1258 * c-gimplify.c: Do not include basic-block.h.
1259 * c-common.c: Do not include linfuncs.h.
1260
532aafad
SB
12612012-07-08 Steven Bosscher <steven@gcc.gnu.org>
1262
1263 * c-common.h: Include tree.h.
1264
8d0d1915
JM
12652012-07-02 Jason Merrill <jason@redhat.com>
1266
1267 PR c++/53524
1268 * c-common.c (get_priority): Call default_conversion.
1269
fbc873ad
UB
12702012-07-01 Uros Bizjak <ubizjak@gmail.com>
1271
1272 * c-pch.c (c_common_write_pch): Remove unused variables.
1273
d4a10d0a
SB
12742012-06-29 Steven Bosscher <steven@gcc.gnu.org>
1275
1276 * cppspec.c: Moved from gcc/ to here.
1277
6f3a2e23
KT
12782012-06-27 Kai Tietz <ktietz@redhat.com>
1279
1280 PR preprocessor/37215
1281 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
1282
8ca92d04
SB
12832012-06-21 Steven Bosscher <steven@gcc.gnu.org>
1284
1285 * c-common.h (c_common_print_pch_checksum): Remove.
1286 * c-pch.c: Do not include output.h.
1287 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
1288 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
1289 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
1290 (struct c_pch_header): Remove.
1291 (get_ident): Update gpch version.
1292 (pch_init): Do not print executable_checksum to asm_out_file.
1293 Do not fail if there is no asm_out_file to read back from. Set
1294 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
1295 (c_common_write_pch): Verify that nothing was written to asm_out_file
1296 since pch_init was called. Do not write a c_pch_header, and do not
1297 copy from asm_out_file to the PCH.
1298 (c_common_read_pch): Do not read a c_pch_header, and do not restore
1299 the content of asm_out_file from the PCH.
1300 (c_common_print_pch_checksum): Remove.
1301 * c-opts.c (c_common_init): Print out executable_checksum directly.
1302
70f42967
SB
13032012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1304
1305 * c-target.def (objc_declare_unresolved_class_reference,
1306 objc_declare_class_definition): Add new hooks.
1307
a8781821
SB
13082012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1309
1310 * c-lex.c: Do not include output.h.
1311 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
1312 Remove uses of ASM_OUTPUT_IDENT.
1313
9e1a8dd1
RR
13142012-06-15 Marc Glisse <marc.glisse@inria.fr>
1315
1316 PR c++/51033
1317 * c-common.h (c_build_vec_perm_expr): Move decl here.
1318 * c-common.c (c_build_vec_perm_expr): Move definition
1319 here.
1320
6f07a821
SB
13212012-06-06 Steven Bosscher <steven@gcc.gnu.org>
1322
1323 * c.opt (fconserve-space): Turn into a no-op.
1324
9faeb493 13252012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
1326
1327 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
1328 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
1329 both the start and end of the function.
1330
a4b7d13c
SB
13312012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1332
1333 * c-common.c: Do not include output.h.
1334 * c-pragma.c: Likewise.
1335
c265f413
SA
13362012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1337
1338 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
1339 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
1340 (lang_decl_name): Handle namespace decls.
1341
be7a421e
SB
13422012-05-31 Steven Bosscher <steven@gcc.gnu.org>
1343
1344 * c-ada-spec.c: Do not include output.h.
1345 * c-semantics.c: Likewise.
1346
65de6659
JM
13472012-05-29 Joseph Myers <joseph@codesourcery.com>
1348
1349 * c-common.c: Fix typo.
1350
ca5f4331
MM
13512012-05-29 Michael Matz <matz@suse.de>
1352
1353 * c-common.h (c_expand_decl): Remove prototype.
1354
4f7f7aca
MLI
13552012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1356
1357 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
1358 * c-opts.c (c_common_handle_option): Remove code handling
1359 warn_missing_braces.
1360
4a792f9b
PC
13612012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
1362
1363 PR c++/25137
1364 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
1365 -Wmissing_braces.
1366
650dc14a
DS
13672012-05-22 Dodji Seketeli <dodji@redhat.com>
1368
1369 PR c++/53322
1370 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
1371
9b095bf1
MLI
13722012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
1373
1374 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
1375 * c-opts.c (c_common_handle_option): Do not handle explicitly
1376 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
1377
0b2c4be5
DS
13782012-05-16 Dodji Seketeli <dodji@redhat.com>
1379
1380 PR preprocessor/7263
1381 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
1382 to cpp_classify_number. For diagnostics, use the precise location
1383 instead of the global input_location.
1384
a1bde5af
PC
13852012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1386
d02924ef 1387 PR c++/11856
a1bde5af
PC
1388 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
1389
d1ede5f4
BS
13902012-05-14 Bernd Schmidt <bernds@codesourcery.com>
1391
a1bde5af 1392 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 1393
f2bc201f
MLI
13942012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
1395
1396 PR 53063
1397 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
1398 Wreorder): Use LangEnabledBy.
1399 * c-opts.c (c_common_handle_option): Do not enable them
1400 explicitly. Call lang-specific generated functions.
1401 (c_common_post_options): Do not set them here.
1402
95744782
MLI
14032012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
1404
1405 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
1406 Wmissing-field-initializers,Wmissing-parameter-type,
1407 Wold-style-declaration,Woverride-init): Use EnabledBy.
1408 * c-opts.c (c_common_post_options): Do not set here explicitly.
1409
7d5a5747
MLI
14102012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1411
1412 PR 53063
1413 * c-opts.c (c_common_handle_option): Use handle_generated_option
1414 to enable sub-options.
1415
5a3c9cf2
PC
14162012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
1417
1418 PR c++/53158
1419 * c-common.c (warnings_for_convert_and_check): Use warning_at.
1420
3ac8781c
RG
14212012-05-10 Richard Guenther <rguenther@suse.de>
1422
1423 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
1424 adjust commentary about TYPE_IS_SIZETYPE types.
1425
1e537948
MLI
14262012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1427
1428 PR c++/53261
1429 * c-common.c (warn_logical_operator): Check that argument of
1430 integer_zerop is not NULL.
1431
f2c4a785
MLI
14322012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
1433
1434 PR c/43772
1435 * c-common.c (warn_logical_operator): Do not warn if either side
1436 is already true or false.
1437
50f305ca
MLI
14382012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1439
1440 PR c/51712
1441 * c-common.c (expr_original_type): New.
1442 (shorten_compare): Do not warn for enumeration types.
1443
0c3641b0
MLI
14442012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1445
1446 * c.opt (fpermissive): Add Var(flag_permissive).
1447
7edaa4d2
MG
14482012-04-30 Marc Glisse <marc.glisse@inria.fr>
1449
1450 PR c++/51033
1451 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
1452 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
1453
b9c8da34
DS
14542012-04-30 Dodji Seketeli <dodji@redhat.com>
1455
1456 Add -Wvarargs option
1457 * c.opt (Wvarargs): Define new option.
1458
e6c69da0
MLI
14592012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1460
1461 * c-common.c (check_function_arguments): Replace
1462 Wmissing-format-attribute with Wsuggest-attribute=format.
1463
90137d8f
MLI
14642012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1465
1466 * c.opt (Wsuggest-attribute=format): New. Alias of
1467 Wmissing-format-attribute.
1468 * c-format.c (decode_format_type): Replace
1469 Wmissing-format-attribute with Wsuggest-attribute=format.
1470 (check_function_format): Likewise.
1471
9faeb493 14722012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
1473
1474 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
1475 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
1476 * c.opt: Add Wliteral-suffix.
1477
c1771a20
MLI
14782012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1479
1480 PR c/44774
1481 * c.opt (Wpedantic): New.
1482 (pedantic): Alias Wpedantic.
1483 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
1484 (c_common_post_options): Likewise.
1485 (sanitize_cpp_opts): Likewise.
1486 * c-lex.c (interpret_float): Likewise.
1487 * c-format.c (check_format_types): Likewise.
1488 * c-common.c (pointer_int_sum): Likewise.
1489 (c_sizeof_or_alignof_type): Likewise.
1490 (c_add_case_label): Likewise.
1491 (c_do_switch_warnings): Likewise.
1492 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1493
04b391c1
JM
14942012-04-15 Jason Merrill <jason@redhat.com>
1495
1496 PR c++/52818
1497 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
1498 (C_STD_NAME): Distinguish between C++98 and C++11.
1499
ac868f29
EB
15002012-04-11 Eric Botcazou <ebotcazou@adacore.com>
1501
1502 PR target/52624
1503 * c-common.h (uint16_type_node): Rename into...
1504 (c_uint16_type_node): ...this.
1505 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
1506 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
1507
fd4116f4
MLI
15082012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
1509
1510 * c-common.c (warn_if_unused_value): Move definition to here.
1511 * c-common.h (warn_if_unused_value): Move declaration to here.
1512
573ac65e
WB
15132012-03-23 William Bader <williambader@hotmail.com>
1514
1515 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
1516
552b8185
JM
15172012-03-20 Jason Merrill <jason@redhat.com>
1518
1519 * c-common.h (enum cxx_dialect): Add cxx1y.
1520 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
1521 test.
1522 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1523 * c-opts.c (c_common_post_options): Likewise.
1524 (set_std_cxx1y): New.
1525 (c_common_handle_option): Call it.
1526 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
1527
04398fa8
PC
15282012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
1529
1530 PR c++/14710
1531 * c.opt ([Wuseless-cast]): Add.
1532
d2a12ae7
RG
15332012-03-16 Richard Guenther <rguenther@suse.de>
1534
1535 * c-pretty-print.c (pp_c_initializer_list): Adjust.
1536
a12bf402
MLI
15372012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1538
1539 PR c++/44783
1540 * c.opt (ftemplate-backtrace-limit) Add.
1541
5c30094f
RO
15422012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1543
1544 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
1545 handling.
1546 * c-pragma.c (handle_pragma_extern_prefix): Remove.
1547 (init_pragma): Don't register extern_prefix.
1548
21fa2faf
RG
15492012-03-12 Richard Guenther <rguenther@suse.de>
1550
1551 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
1552 (builtin_type_for_size): Likewise.
1553
e3793c6f
JJ
15542012-02-13 Jakub Jelinek <jakub@redhat.com>
1555
1556 PR c++/52215
1557 * c-common.c (sync_resolve_params): Don't decide whether to convert
1558 or not based on TYPE_SIZE comparison, convert whenever arg_type
1559 is unsigned INTEGER_TYPE.
1560
93286335
PC
15612012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
1562
1563 PR c/52118
1564 * c.opt ([Wunused-local-typedefs]): Fix description.
1565
7a421706
MS
15662012-01-24 Mike Stump <mikestump@comcast.net>
1567
1568 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
1569 exactly.
1570
ba9b1f11
RG
15712012-01-18 Richard Guenther <rguenther@suse.de>
1572
1573 * c-opts.c (c_common_post_options): Reset LTO flags if
1574 we are about to generate a PCH.
1575
465406be
PC
15762012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
1577
1578 PR c++/51777
1579 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
1580 use pp_unsigned_wide_integer.
1581
aee15221
RG
15822012-01-10 Richard Guenther <rguenther@suse.de>
1583
1584 PR middle-end/51806
1585 * c-opts.c (c_common_handle_option): Move -Werror handling
1586 to language independent code.
1587
5720c0dc
RG
15882012-01-05 Richard Guenther <rguenther@suse.de>
1589
1590 PR middle-end/51764
1591 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
1592 from common.opt.
1593
73ac190a
PC
15942011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
1595
1596 PR c++/51316
1597 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
1598 of array types with an unknown bound.
1599
48b0b196
JM
16002011-12-20 Joseph Myers <joseph@codesourcery.com>
1601
1602 * c-common.c (flag_isoc99): Update comment to refer to C11.
1603 (flag_isoc1x): Change to flag_isoc11.
1604 * c-common.h (flag_isoc99): Update comment to refer to C11.
1605 (flag_isoc1x): Change to flag_isoc11.
1606 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
1607 C11.
1608 * c-opts.c (set_std_c1x): Change to set_std_c11.
1609 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
1610 Call set_std_c11.
1611 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
1612 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
1613 * c.opt (std=c1x): Change to std=c11. Document as non-draft
1614 standard.
1615 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
1616 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
1617 (std=gnu1x): Make alias of std=gnu11.
1618
d58d6eb5
JM
16192011-12-19 Jason Merrill <jason@redhat.com>
1620
1621 PR c++/51228
1622 * c-common.c (handle_transparent_union_attribute): Check the first
1623 field if the type is complete.
1624
b3908fcc
JW
16252011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
1626
1627 PR libstdc++/51365
1628 * c-common.c (RID_IS_FINAL): Add.
1629 * c-common.h (RID_IS_FINAL): Add.
1630
fea3ca91
IS
16312011-11-30 Iain Sandoe <iains@gcc.gnu.org>
1632
1633 * c.opt (fgnu-runtime): Provide full description.
1634 (fnext-runtime): Likewise.
1635 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
1636
62bad7cd
AM
16372011-11-28 Andrew MacLeod <amacleod@redhat.com>
1638
1639 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
1640 predefines in one place. Add LOCK_FREE predefines.
1641 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
1642 new func.
1643
c466c4ff
AM
16442011-11-24 Andrew MacLeod <amacleod@redhat.com>
1645
1646 PR c/51256
9faeb493 1647 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 1648 conditions
9faeb493
UB
1649 (resolve_overloaded_atomic_exchange,
1650 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
1651 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
1652 error_mark_node for error conditions.
9faeb493 1653
a5952633
RG
16542011-11-08 Richard Guenther <rguenther@suse.de>
1655
1656 PR middle-end/51010
1657 c-family/
1658
0a35513e
AH
16592011-11-07 Richard Henderson <rth@redhat.com>
1660 Aldy Hernandez <aldyh@redhat.com>
1661 Torvald Riegel <triegel@redhat.com>
1662
1663 Merged from transactional-memory.
1664
1665 * c-common.c (handle_tm_wrap_attribute,
1666 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
1667 (struct c_common_reswords): Added __transaction* keywords.
1668 (struct c_common_attribute_table): Added transaction* and tm_regparm
1669 attributes.
1670 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
1671 masks.
1672 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
1673 find_tm_attribute): Declare.
1674
6d87092d
JM
16752011-11-07 Jason Merrill <jason@redhat.com>
1676
1677 PR c++/35688
1678 * c-common.c, c-common.h: Revert yesterday's changes.
1679
8e7860a1
JM
16802011-11-06 Jason Merrill <jason@redhat.com>
1681
1682 PR c++/35688
1683 * c-common.c (decl_has_visibility_attr): Split out from...
1684 (c_determine_visibility): ...here.
1685 * c-common.h: Declare it.
1686
d19fa6b5
JM
16872011-11-06 Joseph Myers <joseph@codesourcery.com>
1688
1689 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
1690 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
1691 type.
1692 (check_user_alignment): New. Split out of
1693 handle_aligned_attribute. Disallow integer constants with
1694 noninteger types. Conditionally allow zero.
1695 (handle_aligned_attribute): Use check_user_alignment.
1696 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
1697
86951993
AM
16982011-11-06 Andrew MacLeod <amacleod@redhat.com>
1699 Richard Henderson <rth@redhat.com>
1700
1701 Merged from cxx-mem-model.
1702
1703 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 1704 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
1705 parameters that are the same type size.
1706 (get_atomic_generic_size): New. Find size of generic
1707 atomic function parameters and do typechecking.
1708 (add_atomic_size_parameter): New. Insert size into parameter list.
1709 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
1710 either __atomic_exchange_n or external library call.
9faeb493 1711 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 1712 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 1713 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
1714 __atomic_load_n or an external library call.
1715 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
1716 __atomic_store_n or an external library call.
1717 (resolve_overloaded_builtin): Handle new __atomic builtins.
1718
cf9e9959
EB
17192011-11-04 Eric Botcazou <ebotcazou@adacore.com>
1720
1721 PR c++/50608
1722 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
1723 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
1724 <INDIRECT_REF>: Return the argument.
1725 <ARRAY_REF>: Remove special code for negative offset.
1726 Call fold_build_pointer_plus instead of size_binop.
1727 (fold_offsetof): Remove STOP_REF argument and adjust.
1728 * c-common.h (fold_offsetof_1): Declare.
1729 (fold_offsetof): Remove STOP_REF argument.
1730
25339f10
JM
17312011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
1732
1733 PR c++/50810
1734 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1735 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1736 Wnarrowing for C++0x and C++98.
1737 * c.opt ([Wnarrowing]): Update.
1738
89401152
PC
17392011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
1740
1741 PR c++/44277
1742 * c.opt: Add Wzero-as-null-pointer-constant.
1743
97e3ad20
JM
17442011-10-31 Jason Merrill <jason@redhat.com>
1745
15694fdd
JM
1746 * c.opt (-fdeduce-init-list): Off by default.
1747
97e3ad20
JM
1748 PR c++/50920
1749 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
1750 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
1751 and -Wc++11-compat.
1752 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
1753
fb9120e3
RAV
17542011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
1755
1756 PR c++/30066
1757 * c.opt (fvisibility-inlines-hidden): Description change.
1758
3ce4f9e4
ESR
17592011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
1760
1761 Implement C++11 user-defined literals.
1762 * c-common.c (build_userdef_literal): New.
1763 * c-common.def: New tree code.
1764 * c-common.h (tree_userdef_literal): New tree struct and accessors.
1765 * c-lex.c (interpret_float): Add suffix parm.
1766 (c_lex_with_flags): Build literal tokens.
1767
5f53c243
PC
17682011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1769
1770 PR c++/50841
1771 Revert:
1772 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1773
1774 PR c++/50810
1775 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1776 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1777 Wnarrowing for C++0x and C++98.
1778 * c.opt ([Wnarrowing]): Update.
1779
263734e1
PC
17802011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1781
1782 PR c++/50810
1783 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1784 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1785 Wnarrowing for C++0x and C++98.
1786 * c.opt ([Wnarrowing]): Update.
1787
d2e312d7
PC
17882011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
1789
1790 PR c++/45385
1791 * c-common.c (conversion_warning): Remove code looking for
1792 artificial operands.
1793
d17687f6
DS
17942011-10-18 Dodji Seketeli <dodji@redhat.com>
1795
1796 PR bootstrap/50760
1797 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 1798 !NO_IMPLICIT_EXTERN_C.
d17687f6 1799
fc8396e9
PC
18002011-10-17 Michael Spertus <mike_spertus@symantec.com>
1801
1802 * c-common.c (c_common_reswords): Add __bases,
1803 __direct_bases.
1804 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
1805
18062011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
1807
1808 PR c++/50757
1809 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
1810
847e697a
TT
18112011-10-15 Tom Tromey <tromey@redhat.com>
1812 Dodji Seketeli <dodji@redhat.com>
1813
1814 * c.opt (fdebug-cpp): New option.
1815 * c-opts.c (c_common_handle_option): Handle the option.
1816 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
1817 output stream in parameter. Factorized from ...
1818 (maybe_print_line): ... this. Dump location debug information when
1819 -fdebug-cpp is in effect.
1820 (print_line_1): New static function. Takes an output stream in
1821 parameter. Factorized from ...
1822 (print_line): ... here. Dump location information when -fdebug-cpp
1823 is in effect.
1824 (scan_translation_unit): Dump location information when
1825 -fdebug-cpp is in effect.
1826
92582b75
TT
18272011-10-15 Tom Tromey <tromey@redhat.com>
1828 Dodji Seketeli <dodji@redhat.com>
1829
1830 * c.opt (ftrack-macro-expansion): New option. Handle it with and
1831 without argument.
1832 * c-opts.c (c_common_handle_option)<case
1833 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
1834 cases. Handle -ftrack-macro-expansion with and without argument.
1835
46427374
TT
18362011-10-15 Tom Tromey <tromey@redhat.com>
1837 Dodji Seketeli <dodji@redhat.com>
1838
1839 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
1840 (print_line, cb_define, do_line_change): Adjust to avoid touching
1841 the internals of struct line_map. Use the public API instead.
1842 * c-pch.c (c_common_read_pch): Likewise.
1843 * c-lex.c (fe_file_change): Likewise.
1844
fc8396e9
PC
18452011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
1846
1847 PR c++/17212
1848 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
1849
18502011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
1851
1852 PR c++/33067
1853 * c-pretty-print.c (pp_c_floating_constant): Output
1854 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
1855
e79983f4
MM
18562011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1857
1858 * c-common.c (def_builtin_1): Delete old interface with two
1859 parallel arrays to hold standard builtin declarations, and replace
1860 it with a function based interface that can support creating
1861 builtins on the fly in the future. Change all uses, and poison
1862 the old names. Make sure 0 is not a legitimate builtin index.
1863 * c-omp.c (c_finish_omp_barrier): Ditto.
1864 (c_finish_omp_taskwait): Ditto.
1865 (c_finish_omp_flush): Ditto.
1866
6637388f
TG
18672011-10-11 Tristan Gingold <gingold@adacore.com>
1868
1869 * c.opt: (fallow-parameterless-variadic-functions): New.
1870
3797cb21
DS
18712011-09-08 Dodji Seketeli <dodji@redhat.com>
1872
1873 PR c++/33255 - Support -Wunused-local-typedefs warning
1874 * c-common.h (struct c_language_function::local_typedefs): New
1875 field.
9faeb493
UB
1876 (record_locally_defined_typedef, maybe_record_typedef_use)
1877 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 1878 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
1879 (maybe_record_typedef_use)
1880 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
1881 * c.opt: Declare new -Wunused-local-typedefs flag.
1882
693ddb1b
EB
18832011-09-06 Eric Botcazou <ebotcazou@adacore.com>
1884
1885 PR middle-end/50266
1886 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
1887 computations.
1888
830c740f
RG
18892011-09-05 Richard Guenther <rguenther@suse.de>
1890
1891 * c-common.c (complete_array_type): Use ssize_int (-1) instead
1892 of integer_minus_one_node for empty array upper bounds.
1893
892a371f
DS
18942011-08-28 Dodji Seketeli <dodji@redhat.com>
1895
1896 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
1897 it's the first time it's being called on this main TU.
1898
0e3fdb48
RB
18992011-08-24 Richard Guenther <rguenther@suse.de>
1900
1901 PR c/49396
1902 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
1903
19042011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
1905
1906 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
1907 defined in cpp_init_builtins and c_cpp_builtins.
1908
d4a83c10
JM
19092011-08-19 Joseph Myers <joseph@codesourcery.com>
1910
1911 * c-common.c (c_common_reswords): Add __builtin_complex.
1912 * c-common.h (RID_BUILTIN_COMPLEX): New.
1913
bbceee64
JM
19142011-08-18 Joseph Myers <joseph@codesourcery.com>
1915
1916 * c-common.c (c_common_reswords): Add _Noreturn.
1917 (keyword_is_function_specifier): Handle RID_NORETURN.
1918 * c-common.h (RID_NORETURN): New.
1919
0e3a99ae
AS
19202011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1921
1922 * c-common.c (unsafe_conversion_p): New function. Check if it is
1923 unsafe to convert an expression to the type.
1924 (conversion_warning): Adjust, use unsafe_conversion_p.
1925 * c-common.h (unsafe_conversion_p): New function declaration.
1926
20906c66
JJ
19272011-08-02 Jakub Jelinek <jakub@redhat.com>
1928
1929 * c-common.h (c_finish_omp_atomic): Adjust prototype.
1930 (c_finish_omp_taskyield): New prototype.
1931 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
1932 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
1933 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
1934 or RHS1 have side-effects, evaluate those too in the right spot,
1935 if it is a decl and LHS is also a decl, error out if they
1936 aren't the same.
1937 (c_finish_omp_taskyield): New function.
1938 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
1939 * c-pragma.c (omp_pragmas): Add taskyield.
1940 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
1941 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
1942 PRAGMA_OMP_CLAUSE_MERGEABLE.
1943
770e5a2e
DS
19442011-07-25 Dodji Seketeli <dodji@redhat.com>
1945
1946 * c-common.h (set_underlying_type): Remove parm name from
1947 declaration.
1948
1baae426
RG
19492011-07-25 Romain Geissler <romain.geissler@gmail.com>
1950
1951 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 1952
fcb21722
JM
19532011-07-22 Jason Merrill <jason@redhat.com>
1954
76f86d00
JM
1955 PR c++/49793
1956 * c.opt (Wnarrowing): New.
1957
3a636414
JM
1958 PR c++/30112
1959 * c-common.h: Declare c_linkage_bindings.
1960 * c-pragma.c (handle_pragma_redefine_extname): Use it.
1961
fcb21722
JM
1962 PR c++/49813
1963 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
1964 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
1965 as flag_isoc99 for 'restrict'.
1966 (pp_c_specifier_qualifier_list): Likewise for _Complex.
1967
02614448
ILT
19682011-07-21 Ian Lance Taylor <iant@google.com>
1969
1970 PR middle-end/49705
1971 * c-common.c (c_disable_warnings): New static function.
1972 (c_enable_warnings): New static function.
1973 (c_fully_fold_internal): Change local unused_p to bool. Call
1974 c_disable_warnings and c_enable_warnings rather than change
1975 c_inhibit_evaluation_warnings.
1976
34429675
JM
19772011-07-20 Jason Merrill <jason@redhat.com>
1978
1979 PR c++/6709 (DR 743)
1980 PR c++/42603 (DR 950)
1981 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
1982 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
1983 (CPP_DECLTYPE): New.
1984 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
1985
5d49b6a7
RG
19862011-07-19 Richard Guenther <rguenther@suse.de>
1987
1988 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
1989 * c-omp.c (c_finish_omp_for): Likewise.
1990
e84a58ff
EB
19912011-07-12 Eric Botcazou <ebotcazou@adacore.com>
1992
1993 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
1994 body on the next line.
1995
329af3c7
JM
19962011-07-08 Jason Merrill <jason@redhat.com>
1997
4063e61b
JM
1998 PR c++/45437
1999 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
2000
329af3c7
JM
2001 PR c++/49673
2002 * c-common.c (c_apply_type_quals_to_decl): Don't check
2003 TYPE_NEEDS_CONSTRUCTING.
2004
1a072294
RG
20052011-07-06 Richard Guenther <rguenther@suse.de>
2006
2007 * c-common.c (c_common_nodes_and_builtins):
2008 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
2009
fce5dddd
RG
20102011-07-05 Richard Guenther <rguenther@suse.de>
2011
2012 * c-common.c (c_common_nodes_and_builtins): Build all common
2013 tree nodes first.
2014
45d439ac
JJ
20152011-06-27 Jakub Jelinek <jakub@redhat.com>
2016
56300785
JJ
2017 * c-common.h (c_tree_chain_next): New static inline function.
2018
45d439ac
JJ
2019 * c-common.c (check_builtin_function_arguments): Handle
2020 BUILT_IN_ASSUME_ALIGNED.
2021
e0a8ecf2
AM
20222011-06-21 Andrew MacLeod <amacleod@redhat.com>
2023
2024 * c-common.c: Add sync_ or SYNC__ to builtin names.
2025 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
2026
20272011-06-20 Pierre Vittet <piervit@pvittet.com>
2028
2029 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
2030 handler.
2031 (gen_pragma_handler): New union.
2032 (internal_pragma_handler): New type.
2033 (c_register_pragma_with_data)
2034 (c_register_pragma_with_expansion_and_data): New functions.
2035
2036 * c-pragma.c (registered_pragmas, c_register_pragma_1)
2037 (c_register_pragma, c_register_pragma_with_expansion)
2038 (c_invoke_pragma_handler): Changed to work with
2039 internal_pragma_handler.
2040 (c_register_pragma_with_data)
2041 (c_register_pragma_with_expansion_and_data): New functions.
2042
677f3fa8
JM
20432011-06-14 Joseph Myers <joseph@codesourcery.com>
2044
2045 * c-common.c: Include common/common-target.h.
2046 (handle_section_attribute): Use
2047 targetm_common.have_named_sections.
2048 * c-cppbuiltin.c: Include common/common-target.h.
2049 (c_cpp_builtins): Use targetm_common.except_unwind_info.
2050
d7fc8c14
RG
20512011-06-10 Richard Guenther <rguenther@suse.de>
2052
2053 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
2054 to print a IDENTIFIER_NODE.
2055
10e48e39
RO
20562011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2057 Joseph Myers <joseph@codesourcery.com>
2058
2059 * c.opt (fbuilding-libgcc): New option.
2060 * c-cppbuiltin.c (c_cpp_builtins): Define
2061 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
2062
6976ae51
JM
20632011-06-07 Jason Merrill <jason@redhat.com>
2064
3ff60975
JM
2065 * c-common.c (max_tinst_depth): Lower default to 900.
2066
6976ae51
JM
2067 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
2068
009db074
RG
20692011-06-07 Richard Guenther <rguenther@suse.de>
2070
2071 * c-common.c (c_common_nodes_and_builtins): Do not set
2072 size_type_node or call set_sizetype.
2073
b4592b92
DS
20742011-06-07 Dodji Seketeli <dodji@redhat.com>
2075
2076 PR debug/49130
2077 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 2078 type when using pointer comparison to compare types.
b4592b92 2079
014ab419
JW
20802011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
2081
2082 * c.opt: Add -Wdelete-non-virtual-dtor.
2083 * c-opts.c (c_common_handle_option): Include it in -Wall.
2084
4f60111f
NF
20852011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
2086
2087 PR bootstrap/49190
2088
2089 Revert:
2090 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2091
2092 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2093 not tree_common.
2094
4cc4f2f4
JJ
20952011-05-27 Jakub Jelinek <jakub@redhat.com>
2096
2097 PR c++/49165
2098 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
2099 C++ don't call c_common_truthvalue_conversion on void type arms.
2100
38e01f9e
NF
21012011-05-27 Nathan Froyd <froydnj@codesourcery.com>
2102
2103 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
2104 (stmt_list_stack): Define.
2105 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
2106 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
2107
92e948a8
NF
21082011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2109
2110 * c-common.c (warning_candidate_p): Check for BLOCKs.
2111
a2fc3e63
NF
21122011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2113
2114 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2115 not tree_common.
2116
0957c029
JJ
21172011-05-25 Jakub Jelinek <jakub@redhat.com>
2118
2119 * c-common.c (def_fn_type): Remove extra va_end.
2120
828fb3ba
JM
21212011-05-23 Jason Merrill <jason@redhat.com>
2122
2123 PR c++/48106
2124 * c-common.c (c_common_get_narrower): New.
2125 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
2126
dde05067
NF
21272011-05-23 Nathan Froyd <froydnj@codesourcery.com>
2128
2129 * c-common.h (check_function_arguments): Tweak prototype of
2130 check_function_arguments.
2131 * c-common.c (check_function_arguments): Likewise. Adjust
2132 calls to check_function_nonnull, check_function_format, and
2133 check_function_sentinel.
2134 (check_function_sentinel): Take a FUNCTION_TYPE rather than
2135 separate attributes and typelist arguments. Use
2136 FOREACH_FUNCTION_ARGS to iterate over argument types.
2137
3c0d13bf
PC
21382011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
2139
2140 * c-common.c (c_common_reswords): Reorder.
2141 * c-common.h (rid): Likewise.
2142
8242dd04
NF
21432011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2144
2145 * c-common.c (def_fn_type): Don't call build_function_type, call
2146 build_function_type_array or build_varargs_function_type_array
2147 instead.
2148 (c_common_nodes_and_builtins): Likewise.
2149
3d528853
NF
21502011-05-05 Nathan Froyd <froydnj@codesourcery.com>
2151
2152 * c-common.c (c_add_case_label): Omit the loc argument to
2153 build_case_label.
2154 * c-common.h (build_case_label): Remove.
2155 * c-semantics.c (build_case_label): Remove.
2156
a04a722b
JM
21572011-05-05 Joseph Myers <joseph@codesourcery.com>
2158
2159 * c-objc.h (objc_start_method_definition): Update prototype.
2160 * stub-objc.c (objc_start_method_definition): Add extra parameter.
2161
e19a18d4
NF
21622011-05-04 Nathan Froyd <froydnj@codesourcery.com>
2163
2164 * c-common.c (check_main_parameter_types): Reindent. Don't use
2165 TYPE_ARG_TYPES directly.
2166 (handle_nonnull_attribute): Likewise.
2167 (sync_resolve_params): Likewise.
2168 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
2169 to check_format_string.
2170 (handle_format_attribute): Likewise.
2171 (check_format_string): Take a function type to examine instead of
2172 a type list. Use a function_arg_iterator to step through argument
2173 types.
2174
c62c040f
RG
21752011-05-04 Richard Guenther <rguenther@suse.de>
2176
2177 * c-common.c (fix_string_type): Use size_int for index type bounds.
2178 (start_fname_decls): Do not pass NULL to build_int_cst.
2179 (c_init_attributes): Likewise.
2180 * c-lex.c (c_lex_with_flags): Likewise.
2181
c12ff9d8
JM
21822011-04-27 Jason Merrill <jason@redhat.com>
2183
2184 * c-common.c (make_tree_vector_from_list): New.
2185 * c-common.h: Declare it.
2186
304dfbe3
RG
21872011-04-26 Richard Guenther <rguenther@suse.de>
2188
2189 PR preprocessor/48248
2190 * c-ppoutput.c (maybe_print_line): Always optimize newlines
2191 for output size with -P.
2192
3c0d13bf
PC
21932011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
2194
2195 * c-common.c (struct c_common_resword): Add __underlying_type.
2196 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2197
04695783
JM
21982011-04-20 Jim Meyering <meyering@redhat.com>
2199
2200 * c-format.c (init_dollar_format_checking): Remove useless
2201 if-before-free.
2202
0dc33c3c
NP
22032011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
2204
2205 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 2206 (objc_detect_field_duplicates): New.
0dc33c3c 2207 * stub-objc.c: Likewise.
3c0d13bf 2208
c59633d9
NP
22092011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2210
2211 * stub-objc.c (objc_declare_protocols): Renamed to
2212 objc_declare_protocol.
2213 * c-objc.h: Likewise.
3c0d13bf 2214
32dabdaf
NP
22152011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2216
2217 * stub-objc.c (objc_declare_class): Updated argument name.
2218
81f653d6
NF
22192011-04-12 Nathan Froyd <froydnj@codesourcery.com>
2220
2221 * c-common.h (c_common_init_ts): Declare.
2222 * c-common.c (c_common_init_ts): Define.
2223
eb345401
NP
22242011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
2225
2226 * c-objc.h (objc_build_message_expr): Updated prototype.
2227 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 2228
a358e188
MJ
22292011-04-12 Martin Jambor <mjambor@suse.cz>
2230
2231 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
2232 of cgraph_node.
2233
e6313a78
RG
22342011-04-11 Richard Guenther <rguenther@suse.de>
2235
2236 * c-common.c (complete_array_type): Build a range type of
2237 proper type.
2238
dcf0c47e
NF
22392011-04-08 Nathan Froyd <froydnj@codesourcery.com>
2240
2241 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
2242 (handle_type_generic_attribute): Likewise.
2243
1ee44b26
JM
22442011-04-07 Jason Merrill <jason@redhat.com>
2245
2246 PR c++/48450
2247 * c-common.c (c_common_truthvalue_conversion): Don't ignore
2248 conversion from C++0x scoped enum.
2249
acce4e77
JM
22502011-04-06 Joseph Myers <joseph@codesourcery.com>
2251
2252 * c-target-def.h: New file.
2253 * c-target.def: New file.
2254 * c-target.h: New file.
2255 * c-common.c (targetcm): Don't define here.
2256 * c-common.h (default_handle_c_option): Declare.
2257 * c-format.c: Include c-target.h instead of target.h.
2258 * c-opts.c: Include c-target.h instead of target.h. Explicitly
2259 include tm.h.
2260 (default_handle_c_option): Move from targhooks.c.
2261
e2eefb55
JJ
22622011-03-29 Jakub Jelinek <jakub@redhat.com>
2263
2264 PR preprocessor/48248
2265 * c-ppoutput.c (print): Add src_file field.
2266 (init_pp_output): Initialize it.
2267 (maybe_print_line): Don't optimize by adding up to 8 newlines
2268 if map->to_file and print.src_file are different file.
2269 (print_line): Update print.src_file.
2270
ba78087b
KT
22712011-03-25 Kai Tietz <ktietz@redhat.com>
2272
2273 * c-ada-spec.c (compare_comment): Use filename_cmp
2274 instead of strcmp for filename.
2275
0edf1bb2
JL
22762011-03-25 Jeff Law <law@redhat.com>
2277
2278 * c-family/c-common.c (def_fn_type): Add missing va_end.
2279
c7dc8804
JM
22802011-03-25 Jason Merrill <jason@redhat.com>
2281
2282 * c.opt: Add -std=c++03.
2283
d1d879b1
EB
22842011-03-22 Eric Botcazou <ebotcazou@adacore.com>
2285
2286 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
2287
62d784f7
KT
22882011-03-17 Kai Tietz
2289
2290 PR target/12171
5050afdf
KT
2291 * c-pretty-print.c (pp_c_specifier_qualifier_list):
2292 Display allowed attributes for function pointer types.
2293 (pp_c_attributes_display): New function to display
2294 attributes having affects_type_identity flag set to true.
2295 * c-pretty-print.h (pp_c_attributes_display): New prototype.
2296
62d784f7
KT
2297 * c-common.c (c_common_attribute_table):
2298 Add new element.
2299 (c_common_format_attribute_table): Likewise.
2300
82d37118
JM
23012011-03-18 Jason Merrill <jason@redhat.com>
2302
49a000c3
JM
2303 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
2304 * c-common.h: Don't declare it here.
2305 * c-common.c: Or define it here.
2306 * c-opts.c (c_common_handle_option): Or set it here.
2307
82d37118
JM
2308 PR c++/35315
2309 * c-common.c (handle_transparent_union_attribute): Don't
2310 make a duplicate type in C++.
2311
17bc631c
JM
23122011-03-15 Jason Merrill <jason@redhat.com>
2313
2314 * c-common.c (max_constexpr_depth): New.
2315 * c-common.h: Declare it.
2316 * c-opts.c (c_common_handle_option): Set it.
2317 * c.opt (fconstexpr-depth): New option.
2318
1b9b91a6
JM
23192011-03-11 Jason Merrill <jason@redhat.com>
2320
f231b5ff
JM
2321 * c-common.c (attribute_takes_identifier_p): Add missing const.
2322
1b9b91a6
JM
2323 PR c++/46803
2324 * c-common.c (attribute_takes_identifier_p): Assume that an
2325 unknown attribute takes an identifier.
2326
a19e4d44
NF
23272011-03-07 Nathan Froyd <froydnj@codesourcery.com>
2328
2329 PR c/47786
2330 * c-common.c (c_type_hash): Call list_length instead of iterating
2331 through DECL_CHAIN. Rename 'i' to 'n_elements'.
2332
982d62f6
JJ
23332011-02-19 Jakub Jelinek <jakub@redhat.com>
2334
2335 PR c/47809
2336 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
2337
0a256240
NP
23382011-02-17 Iain Sandoe <iains@gcc.gnu.org>
2339
2340 * c.opt (fobjc-abi-version=) New.
2341 (fobjc-nilcheck): New.
2342
ba9e6dd5
NF
23432011-02-03 Nathan Froyd <froydnj@codesourcery.com>
2344
2345 PR c++/46890
2346 * c-common.h (keyword_is_decl_specifier): Declare.
2347 * c-common.c (keyword_is_decl_specifier): Define.
2348 (keyword_is_function_specifier): New function.
2349
7273813a
JJ
23502011-01-26 Jakub Jelinek <jakub@redhat.com>
2351
2352 PR c/47473
2353 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
2354 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
2355 REAL_TYPE.
2356
908ef79b
AC
23572011-01-26 Arnaud Charlet <charlet@adacore.com>
2358
2359 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
2360
237e9384
JJ
23612011-01-26 Jakub Jelinek <jakub@redhat.com>
2362
2363 PR pch/47430
2364 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
2365 after init_c_lex if pch_file is set.
2366
47ea1edf
DK
23672011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
2368
d4dba752 2369 PR c++/43601
47ea1edf
DK
2370 * c.opt (-fkeep-inline-dllexport): New switch.
2371
2aa9c6ae
RG
23722011-01-12 Richard Guenther <rguenther@suse.de>
2373
2374 PR middle-end/32511
2375 * c-common.c (handle_weak_attribute): Warn instead of error
2376 on declaring an inline function weak.
2377
7bd11157
TT
23782011-01-05 Tom Tromey <tromey@redhat.com>
2379
2380 * c-common.h (lvalue_error): Update.
2381 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
2382 not error.
2383
0e66e494 23842010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 2385
b4f588c4
NP
2386 PR objc/47075
2387 * c-objc.h (objc_finish_message_expr): Added argument to
2388 prototype.
2389
f4da8dce
NF
23902010-12-22 Nathan Froyd <froydnj@codesourcery.com>
2391
2392 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
2393 Use prototype_p.
2394
46270f14
NP
23952010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
2396
2397 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 2398 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 2399
4816c593
NF
24002010-12-10 Nathan Froyd <froydnj@codesourcery.com>
2401
2402 * c-common.h (readonly_error): Declare.
2403 * c-common.c (readonly_error): Define.
2404
7a6daeb0
NF
24052010-12-09 Nathan Froyd <froydnj@codesourcery.com>
2406
2407 * c-common.h (invalid_indirection_error): Declare.
2408 * c-common.c (invalid_indirection_error): Define.
2409
892f6119
RG
24102010-12-03 Richard Guenther <rguenther@suse.de>
2411
2412 PR c/46745
2413 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
2414 (pp_c_unary_expression): Likewise.
2415 (pp_c_expression): Likewise.
2416
6c39e757
NP
24172010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
2418
2419 * c-common.h (objc_finish_function): New.
2420 (objc_non_volatilized_type): Removed.
2421 (objc_type_quals_match): Removed.
2422 * stub-objc.c (objc_finish_function): New.
2423 (objc_non_volatilized_type): Removed.
2424 (objc_type_quals_match): Removed.
9faeb493 2425
7c475d11
JM
24262010-11-30 Joseph Myers <joseph@codesourcery.com>
2427
2428 * c-common.h (parse_optimize_options): Declare.
2429 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
2430 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
2431
71f3e391
JM
24322010-11-29 Joseph Myers <joseph@codesourcery.com>
2433
2434 * c-opts.c (check_deps_environment_vars): Use getenv instead of
2435 GET_ENVIRONMENT.
2436 * c-pch.c (O_BINARY): Don't define here.
2437 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
2438
d5fabb58
JM
24392010-11-25 Joseph Myers <joseph@codesourcery.com>
2440
2441 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
2442 targetm.except_unwind_info.
2443
299404a1
JM
24442010-11-23 Joseph Myers <joseph@codesourcery.com>
2445
2446 * c-opts.c (c_common_handle_option): Pass location to
2447 set_struct_debug_option.
2448
c98cd5bf
JM
24492010-11-23 Joseph Myers <joseph@codesourcery.com>
2450
2451 * c-common.c (visibility_options): Move from ../opts.c.
2452 * c-common.h (struct visibility_flags, visibility_options):
2453 Declare here.
2454 * c-opts.c (finish_options): Rename to c_finish_options.
2455 (c_common_init): Update call to finish_options.
2456
a9546771
NP
24572010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
2458
2459 PR objc/34033
2460 * c-lex.c (lex_string): Check that each string in an Objective-C
2461 string concat sequence starts with either one or zero '@', and
2462 that there are no spurious '@' signs at the end.
2463
24a57808
JM
24642010-11-20 Joseph Myers <joseph@codesourcery.com>
2465
2466 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
2467 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
2468 HANDLE_PRAGMA_VISIBILITY.
2469 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
2470 HANDLE_PRAGMA_VISIBILITY): Don't define.
2471 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
2472
a9aa2c3a
NF
24732010-11-20 Nathan Froyd <froydnj@codesourcery.com>
2474
2475 PR c++/16189
2476 PR c++/36888
2477 PR c++/45331
2478 * c-common.h (keyword_begins_type_specifier): Declare.
2479 (keyword_is_storage_class_specifier): Declare.
2480 (keyword_is_type_qualifier): Declare.
2481 * c-common.c (keyword_begins_type_specifier): New function.
2482 (keyword_is_storage_class_specifier): New function.
2483 (keyword_is_type_qualifier): Declare.
2484
5386338c
JM
24852010-11-19 Joseph Myers <joseph@codesourcery.com>
2486
2487 PR c/46547
2488 * c-common.c (in_late_binary_op): Define.
2489 (c_common_truthvalue_conversion): Check in_late_binary_op before
2490 calling c_save_expr.
2491 * c-common.h (in_late_binary_op): Declare.
2492
69ccdddb
JM
24932010-11-19 Joseph Myers <joseph@codesourcery.com>
2494
2495 * c-opts.c (c_common_handle_option): Update calls to
2496 set_struct_debug_option.
2497
6b192a09
NP
24982010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
2499
2500 * c-common.h (objc_declare_protocols): Added additional argument.
2501 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 2502
fb52b50a
NF
25032010-11-18 Nathan Froyd <froydnj@codesourcery.com>
2504
2505 PR c/33193
2506 * c-common.h (build_real_imag_expr): Declare.
2507 * c-semantics.c (build_real_imag_expr): Define.
2508
b37421c6
JM
25092010-11-17 Joseph Myers <joseph@codesourcery.com>
2510
2511 * c-opts.c (c_common_parse_file): Take no arguments.
2512 * c-common.h (c_common_parse_file): Update prototype.
2513
07078664
JJ
25142010-11-16 Jakub Jelinek <jakub@redhat.com>
2515
2516 PR c++/46401
2517 * c-common.c (warning_candidate_p): Don't track non-const calls
2518 or STRING_CSTs.
2519
c6a13190
ILT
25202010-11-15 Ian Lance Taylor <iant@google.com>
2521
2522 * c-lex.c (init_c_lex): Set macro debug callbacks if
2523 flag_dump_go_spec is set.
2524
925e8657
NP
25252010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
2526
2527 * c-common.h (objc_build_incr_expr_for_property_ref): New.
2528 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
2529
bb0a9581
NF
25302010-11-15 Nathan Froyd <froydnj@codesourcery.com>
2531
2532 PR preprocessor/45038
2533 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
2534 dialects.
2535
c5fa0890
JM
25362010-11-12 Joseph Myers <joseph@codesourcery.com>
2537
2538 * c-common.h (c_family_lang_mask): Declare.
2539 * c-opts.c (c_family_lang_mask): Make extern.
2540 * c-pragma.c (handle_pragma_diagnostic): Use
2541 control_warning_option.
2542
a4d8c676
JM
25432010-11-12 Joseph Myers <joseph@codesourcery.com>
2544
2545 * c-common.c (parse_optimize_options): Update call to
2546 decode_options.
2547 * c-common.h (c_common_handle_option): Update prototype.
2548 * c-opts.c (c_common_handle_option): Take location_t parameter and
2549 pass it to other functions.
2550
f954bd2c
JM
25512010-11-11 Joseph Myers <joseph@codesourcery.com>
2552
2553 * c-opts.c (warning_as_error_callback): Remove.
2554 (c_common_initialize_diagnostics): Don't call
2555 register_warning_as_error_callback.
2556 (c_common_handle_option): Handle -Werror=normalized= here.
2557
d8a07487
JM
25582010-11-10 Joseph Myers <joseph@codesourcery.com>
2559
2560 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
2561 in diagnostic.
2562 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
2563 letter.
2564 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
2565 Remove trailing '.' from diagnostics.
2566 * c.opt (Wwrite-strings_: Avoid '`' in help text.
2567
d5478783
JM
25682010-11-10 Joseph Myers <joseph@codesourcery.com>
2569
2570 * c-common.c (parse_optimize_options): Pass global_dc to
2571 decode_options.
2572 * c-opts.c (c_common_handle_option): Pass &global_options to
2573 set_Wstrict_aliasing.
2574 * c.opt (v): Don't mark Common or document here.
2575
91ebb981
IS
25762010-11-06 Iain Sandoe <iains@gcc.gnu.org>
2577
2578 PR target/44981
2579 * c-format.c (format_type): New type gcc_objc_string_format_type.
2580 (valid_stringptr_type_p): New.
2581 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 2582 (check_format_string): Pass expected type, use
91ebb981
IS
2583 valid_stringptr_type_p (), check that the format string types are
2584 consistent with the format specification.
2585 (decode_format_attr): Warn if NSString is used outside objective-c.
2586 (format_types_orig): Add NSString.
2587 (format_name): New.
2588 (format_flags): New.
2589 (check_format_arg): Handle format strings requiring an external parser.
2590 first_target_format_type: New variable.
2591 (handle_format_attribute): Set up first_target_format_type, pass the
2592 expected format arg string type to check_format_string().
2593 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
2594 * stub-objc.c (objc_string_ref_type_p): New.
2595 (objc_check_format_arg): New.
2596
bede2adc
NP
25972010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
2598
9faeb493 2599 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
2600 * c-common.h (objc_build_class_component_ref): New.
2601 * stub-objc.c (objc_build_class_component_ref): New.
2602
9a179d01
NP
26032010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2604
2605 * c.opt (Wproperty-assign-default): New option.
2606
22d8d616
NP
26072010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2608
2609 Implemented -fobjc-std=objc1 flag.
2610 * c.opt (fobjc-std=objc1): New option.
2611
2debdb4f
NP
26122010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
2613
2614 Implemented format and noreturn attributes for Objective-C methods.
2615 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
2616 attribute for Objective-C methods.
2617
ec52b111
JM
26182010-10-31 Jason Merrill <jason@redhat.com>
2619
2620 * c-common.c (conversion_warning, warn_for_collisions_1): Use
2621 EXPR_LOC_OR_HERE.
2622
46a88c12
NP
26232010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
2624
2625 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
2626 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
2627 (objc_add_property_declaration): Removed arguments for copies and
2628 ivar.
2629 (objc_build_getter_call): Renamed to
2630 objc_maybe_build_component_ref.
2631 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2632 (objc_is_property_ref): New.
2633 * c-common.c (c_common_reswords): Removed copies and ivar.
2634 * stub-objc.c (objc_add_property_declaration): Removed arguments
2635 for copies and ivar.
2636 (objc_build_getter_call): Renamed to
2637 objc_maybe_build_component_ref.
2638 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2639 (objc_is_property_ref): New.
9faeb493 2640
1e4bf85b
AC
26412010-10-29 Arnaud Charlet <charlet@adacore.com>
2642 Matthew Gingell <gingell@adacore.com>
2643
2644 * c-ada-spec.c (separate_class_package): New function.
2645 (pp_ada_tree_identifier): Prefix references to C++ classes with the
2646 name of their enclosing package.
2647 (print_ada_declaration): Use separate_class_package.
2648
81f0bab2
JM
26492010-10-27 Jason Merrill <jason@redhat.com>
2650
2b08f2c5
JM
2651 * c-common.c (c_common_reswords): Add __is_literal_type.
2652 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
2653
81f0bab2
JM
2654 * c-common.c (check_case_value): Remove special C++ code.
2655
200290f2
NP
26562010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2657
2658 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
2659 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
2660 and RID_LAST_PATTR.
2661 (objc_add_property_declaration): Added additional arguments.
2662 (objc_property_attribute_kind): Removed.
2663 (objc_set_property_attr): Removed.
2664 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
2665 copy and nonatomic.
2666 * stub-objc.c (objc_add_property_declaration): Added additional
2667 arguments.
2668 (objc_set_property_attr): Removed.
9faeb493 2669
f614132b
NP
26702010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2671
2672 * c-common.h (objc_add_property_variable): Renamed to
2673 objc_add_property_declaration. Added location argument.
2674 * stub-objc.c (objc_add_property_variable): Same change.
2675
b8a18805
NP
26762010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
2677
2678 * c-common.h (objc_maybe_printable_name): New.
2679 * stub-objc.c (objc_maybe_printable_name): New.
2680
30cd1c5d
AS
26812010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2682 Andrew Pinski <pinskia@gmail.com>
2683
2684 * c-common.h (c_common_mark_addressable_vec): Declare.
2685 * c-common.c (c_common_mark_addressable_vec): New function.
2686
249a82c4
NP
26872010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2688
2689 * c-common.h (objc_set_method_type): Removed.
2690 (objc_add_method_declaration): Added boolean argument.
2691 (objc_start_method_definition): Same change.
2692 (objc_build_method_signature): Same change.
2693 * stub-objc.c (objc_set_method_type): Removed.
2694 (objc_add_method_declaration): Added boolean argument.
2695 (objc_start_method_definition): Same change.
2696 (objc_build_method_signature): Same change.
2697
977e30bc
NP
26982010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2699
2700 * c-common.h (finish_file): Removed.
2701 (objc_write_global_declarations): New.
2702 * c-opts.c (c_common_parse_file): Do not call finish_file.
2703 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 2704
da57d1b9
NP
27052010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2706
2707 Implemented parsing @synthesize and @dynamic for
2708 Objective-C/Objective-C++.
2709 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
2710 (objc_add_synthesize_declaration): New.
2711 (objc_add_dynamic_declaration): New.
2712 * c-common.c (c_common_reswords): Add synthesize and dynamic.
2713 * stub-objc.c (objc_add_synthesize_declaration): New.
2714 (objc_add_dynamic_declaration): New.
9faeb493 2715
0069111f
MM
27162010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
2717
2718 PR target/46041
2719 * c-cppbuiltin.c (mode_has_fma): Move function here from
2720 builtins.c. Don't use the fma optab, instead just use the
2721 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
2722 using -save-temps.
2723
e426b47b
NP
27242010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2725
2726 Merge from 'apple/trunk' branch on FSF servers.
0069111f 2727
e426b47b
NP
2728 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
2729
9faeb493 2730 Radar 4330422
e426b47b
NP
2731 * c-common.h (objc_non_volatilized_type): New declaration
2732 * stub-objc.c (objc_non_volatilized_type): New stub.
2733
90fbfdc3
NP
27342010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
2735
e426b47b 2736 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
2737
2738 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
2739
9faeb493 2740 Radar 4133425
90fbfdc3 2741 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 2742 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 2743
c37d8c30
IS
27442010-10-17 Iain Sandoe <iains@gcc.gnu.org>
2745
2746 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
2747 * c-common.h (enum rid): Add RID_AT_PACKAGE.
2748 (objc_ivar_visibility_kind): New enum.
2749 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 2750 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
2751 visibility enum.
2752
1b1562a5
MM
27532010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2754
2755 * c-cppbuiltin.c (builtin_define_float_constants): Emit
2756 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
2757 has the appropriate fma builtins.
2758 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
2759
668ea4b1
IS
27602010-10-14 Iain Sandoe <iains@gcc.gnu.org>
2761
1b1562a5 2762 merge from FSF apple 'trunk' branch.
668ea4b1 2763 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 2764
668ea4b1
IS
2765 Radars 4436866, 4505126, 4506903, 4517826
2766 * c-common.c (c_common_resword): Define @property and its attributes.
2767 * c-common.h: Define property attribute enum entries.
2768 (OBJC_IS_PATTR_KEYWORD): New.
2769 (objc_property_attribute_kind): New enum.
2770 Declare objc_set_property_attr (), objc_add_property_variable (),
2771 objc_build_getter_call () and objc_build_setter_call ().
2772 * stub-objc.c (objc_set_property_attr): New stub.
2773 (objc_add_property_variable): Likewise.
2774 (objc_build_getter_call): Likewise.
2775 (objc_build_setter_call) Likewise.
1b1562a5 2776
a1178b30
IS
27772010-10-13 Iain Sandoe <iains@gcc.gnu.org>
2778
1b1562a5 2779 merge from FSF apple 'trunk' branch.
a1178b30
IS
2780 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
2781
2782 Radar 3803157 (method attributes)
2783 * c-common.c (handle_deprecated_attribute): Recognize
2784 objc methods as valid declarations.
2785 * c-common.h: Declare objc_method_decl ().
1b1562a5 2786 * stub-objc.c (objc_method_decl): New stub.
a1178b30 2787
a75bfaa6
JM
27882010-10-08 Joseph Myers <joseph@codesourcery.com>
2789
2790 * c-common.c (parse_optimize_options): Call
2791 decode_cmdline_options_to_array_default_mask before
2792 decode_options. Update arguments to decode_options.
2793 * c-common.h (c_common_init_options_struct): Declare.
2794 * c-opts.c (c_common_init_options_struct): New. Split out from
2795 c_common_init_options.
2796
f05b9d93
NP
27972010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
2798
2799 Implemented fast enumeration for Objective-C.
2800 * c-common.h (objc_finish_foreach_loop): New.
2801 * stub-objc.c (objc_finish_foreach_loop): New.
2802
1ebe4b4f
JM
28032010-10-05 Joseph Myers <joseph@codesourcery.com>
2804
2805 * c-common.h (struct diagnostic_context): Don't declare here.
2806 (c_common_initialize_diagnostics): Declare using
2807 diagnostic_context typedef.
2808 * c-opts.c (c_common_handle_option): Pass global_dc to
2809 handle_generated_option.
2810
d4d24ba4
JM
28112010-10-04 Joseph Myers <joseph@codesourcery.com>
2812
2813 * c-opts.c (c_common_handle_option): Pass &global_options_set to
2814 handle_generated_option.
2815
478a1c5b
ILT
28162010-10-03 Ian Lance Taylor <iant@google.com>
2817
2818 * c.opt (-fplan9-extensions): New option.
2819
82a1c2fe
FXC
28202010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2821
2822 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
2823 Remove.
2824 (c_cpp_builtins): Call functions from cppbuiltin.c instead
2825 of duplicating code.
2826
92902b1b
IS
28272010-09-30 Iain Sandoe <iains@gcc.gnu.org>
2828
2829 * c-common.c: Add two new entries for @optional
2830 and @required keywords.
2831
2832 merge from FSF 'apple/trunk' branch.
2833 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
2834
2835 Radar 4386773
2836 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
2837 objective-c keywords.
2838 (objc_set_method_opt): New declaration.
2839 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 2840
46625112
JM
28412010-09-30 Joseph Myers <joseph@codesourcery.com>
2842
2843 * c-common.c (handle_optimize_attribute): Pass &global_options to
2844 cl_optimization_save and cl_optimization_restore.
2845 * c-opts.c (c_common_handle_option): Pass &global_options to
2846 handle_generated_option.
2847 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
2848 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
2849 &global_options to cl_optimization_restore.
2850
49b91f05
NP
28512010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
2852
2853 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
2854 Objective-C/Objective-C++ keywords.
2855
13ed556f 28562010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 2857
9faeb493
UB
2858 Merge from 'apple/trunk' branch on FSF servers.
2859
a6341d57
NP
2860 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
2861
2862 Radar 4281748
2863 * c-common.h (objc_check_global_decl): New declaration.
2864 * stub-objc.c (objc_check_global_decl): New stub.
2865
f0036cca
JM
28662010-09-29 Joseph Myers <joseph@codesourcery.com>
2867
2868 * c.opt: Don't use VarExists.
2869
e3339d0f
JM
28702010-09-29 Joseph Myers <joseph@codesourcery.com>
2871
2872 * c-common.c (c_cpp_error): Update names of diagnostic_context
2873 members.
2874 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
2875 cl_optimization members.
2876 * c-opts.c (warning_as_error_callback, c_common_handle_option,
2877 sanitize_cpp_opts, finish_options): Update names of cpp_options
2878 members.
2879
1973201f
NP
28802010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
2881
2882 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
2883 (objc_is_reserved_word): Removed.
2884 * c-common.c: Updated comments.
2885 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
2886 objc_is_reserved_word.
2887 * stub-objc.c (objc_is_reserved_word): Removed.
2888
f7e71da5
IS
28892010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2890
9faeb493 2891 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
2892 include attributes.
2893 (objc_start_method_definition): Likewise.
2894 (objc_build_keyword_decl): Likewise.
2895 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
2896 (objc_start_method_definition): Likewise.
2897 (objc_build_keyword_decl): Likewise.
2898
c165dca7
IS
28992010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2900
2901 * c-common.h (objc_start_class_interface): Adjust prototype.
2902 (objc_start_category_interface): Likewise.
2903 (objc_start_protocol): Likewise.
2904 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
2905 (objc_start_class_interface): Likewise.
2906 (objc_start_category_interface): Likewise.
2907
7458026b
ILT
29082010-09-27 Ian Lance Taylor <iant@google.com>
2909
2910 * c-common.c (c_common_attribute_table): Add no_split_stack.
2911 (handle_no_split_stack_attribute): New static function.
2912
b581b85b
NP
29132010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
2914
9faeb493 2915 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
2916
2917 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
2918
9faeb493 2919 Radar 4229905
b581b85b
NP
2920 * c-common.h (objc_have_common_type): New declaration.
2921 * stub-objc.c (objc_have_common_type): New stub.
2922
2923 2005-06-22 Ziemowit Laski <zlaski@apple.com>
2924
2925 Radar 4154928
2926 * c-common.h (objc_common_type): New prototype.
9faeb493 2927 * stub-objc.c (objc_common_type): New stub.
b581b85b 2928
46a4da10
JH
29292010-09-24 Jan Hubicka <jh@suse.cz>
2930
2931 * c-common.c (handle_leaf_attribute): New function.
2932 (struct attribute_spec c_common_att): Add leaf.
2933
e200444e
JM
29342010-09-22 Joseph Myers <joseph@codesourcery.com>
2935
2936 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
2937 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
2938 -dump, -dump=, -imacros, -imacros=, -include, -include=,
2939 -include-barrier, -include-directory, -include-directory=,
2940 -include-directory-after, -include-directory-after=,
2941 -include-prefix, -include-prefix=, -include-with-prefix,
2942 -include-with-prefix=, -include-with-prefix-after,
2943 -include-with-prefix-after=, -include-with-prefix-before,
2944 -include-with-prefix-before=, -no-integrated-cpp,
2945 -no-line-commands, -no-standard-includes, -no-warnings, -output,
2946 -output=, -pedantic, -pedantic-errors, -preprocess,
2947 -print-missing-file-dependencies, -trace-includes, -traditional,
2948 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
2949 -user-dependencies, -verbose, -write-dependencies,
2950 -write-user-dependencies, no-integrated-cpp, traditional): New.
2951
29a80ea6
NP
29522010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2953
2954 PR objc/23710
ac1fc2fc
NP
2955 * c-common.h (objc_start_method_definition): Return bool instead
2956 of void.
2957 * stub-objc.c (objc_start_method_definition): Return bool instead
2958 of void.
2959
29602010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2961
2962 PR objc/25965
2963 * c-common.h (objc_get_interface_ivars): New declaration.
2964 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 2965
de621752
ILT
29662010-09-15 Ian Lance Taylor <iant@google.com>
2967
2968 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 2969 messages. Remove period at end of warning message.
de621752 2970
ba885ec5
NS
29712010-09-09 Nathan Sidwell <nathan@codesourcery.com>
2972
2973 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
2974 (handle_alias_attribute): ... here.
2975 (handle_ifunc_attribute): New.
2976
c5ee1358
MM
29772010-09-06 Mark Mitchell <mark@codesourcery.com>
2978
2979 * c-common.h (do_warn_double_promotion): Declare.
2980 * c-common.c (do_warn_double_promotion): Define.
2981
0a0b3574
MM
29822010-09-05 Mark Mitchell <mark@codesourcery.com>
2983
2984 * c.opt (Wdouble-promotion): New.
2985
d1779886
JM
29862010-09-02 Joseph Myers <joseph@codesourcery.com>
2987
2988 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
2989 fvtable-thunks, fxref): Mark no longer supported in help text.
2990
2d2bd949
JM
29912010-09-02 Joseph Myers <joseph@codesourcery.com>
2992
2993 * c.opt (Wimport, fall-virtual, falt-external-templates,
2994 fdefault-inline, fenum-int-equiv, fexternal-templates,
2995 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
2996 fname-mangling-version-, fnew-abi, fnonnull-objects,
2997 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
2998 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
2999 applicable.
3000 (fhandle-exceptions): Mark with Alias and Warn.
3001 * c-opts.c (c_common_handle_option): Don't handle options marked
3002 as ignored.
3003
5de8299c
JM
30042010-09-02 Joseph Myers <joseph@codesourcery.com>
3005
3006 * c.opt (Wcomments, Werror-implicit-function-declaration,
3007 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
3008 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
3009 aliases.
3010 * c-common.c (option_codes): Use OPT_Wcomment instead of
3011 OPT_Wcomments.
3012 * c-opts.c (warning_as_error_callback, c_common_handle_option):
3013 Don't handle options marked as aliases.
3014
0ceb0201
RG
30152010-08-25 Richard Guenther <rguenther@suse.de>
3016
3017 * c-common.c (c_common_get_alias_set): Remove special
3018 handling for pointers.
3019
ac47786e
NF
30202010-08-20 Nathan Froyd <froydnj@codesourcery.com>
3021
3022 * c-common.c: Use FOR_EACH_VEC_ELT.
3023 * c-gimplify.c: Likewise.
3024 * c-pragma.c: Likewise.
3025
c878765b
JM
30262010-08-16 Joseph Myers <joseph@codesourcery.com>
3027
3028 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
3029 RejectDriver.
3030 (MMDX): Change back to MMD. Mark NoDriverArg instead of
3031 RejectDriver.
3032 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
3033 instead of OPT_MDX and OPT_MMDX.
3034
603349bf
JM
30352010-08-16 Joseph Myers <joseph@codesourcery.com>
3036
3037 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
3038
644fa7ac
JM
30392010-08-12 Joseph Myers <joseph@codesourcery.com>
3040
3041 * c.opt (MD, MMD): Change to MDX and MMDX.
3042 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
3043
481e1176
JM
30442010-08-11 Joseph Myers <joseph@codesourcery.com>
3045
3046 * c-opts.c (c_common_handle_option): Call handle_generated_option
3047 instead of handle_option.
3048
ac8dc9f7
NF
30492010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3050
3051 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
3052 (maybe_apply_renaming_pragma): Delete unneeded declarations.
3053
4f8c876d
NF
30542010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3055
3056 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
3057 (pending_redefine_extname): Change type to a VEC.
3058 (add_to_renaming_pragma_list): Update for new type of
3059 pending_redefine_extname.
ac8dc9f7 3060 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 3061
3b0c690e
AC
30622010-08-04 Arnaud Charlet <charlet@adacore.com>
3063
3064 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
3065 visited.
3066 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
3067 decide whether a type has already been declared/seen.
3068 Do not go to the original type.
3069 (dump_nested_types): New parameter forward.
3070 Generate forward declaration if needed and mark type as visited.
3071 (print_ada_declaration): Call dump_nested_types if not already done.
3072 Mark types as visited.
3073
1890bccc
JM
30742010-08-03 Joseph Myers <joseph@codesourcery.com>
3075
3076 * c.opt (-print-pch-checksum): Remove option.
3077 * c-opts.c (c_common_handle_option): Don't handle
3078 OPT_print_pch_checksum.
3079
5f20c657
JM
30802010-07-27 Joseph Myers <joseph@codesourcery.com>
3081
3082 * c-common.h (c_common_handle_option): Update prototype and return
3083 value type.
3084 * c-opts.c (c_common_handle_option): Update prototype and return
3085 value type. Update calls to handle_option and
3086 enable_warning_as_error.
3087
f551f80c
JJ
30882010-07-27 Jakub Jelinek <jakub@redhat.com>
3089
3090 PR c/45079
3091 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
3092
61ff2bdc
JM
30932010-07-27 Joseph Myers <joseph@codesourcery.com>
3094
3095 * c-common.h (c_common_missing_argument): Remove.
3096 * c-opts.c (c_common_missing_argument): Remove.
3097 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
3098 idirafter, imacros, include, isysroot, isystem, iquote): Add
3099 MissingArgError.
3100 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
3101
7a9bf9a4
JM
31022010-07-27 Joseph Myers <joseph@codesourcery.com>
3103
3104 * c-common.h (c_common_option_lang_mask,
3105 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
3106 New.
3107 (c_common_init_options): Update prototype.
3108 * c-opts.c (c_common_option_lang_mask): New.
3109 (c_common_initialize_diagnostics): Split out of
3110 c_common_init_options.
3111 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
3112 New.
3113 (c_common_init_options): Update prototype. Use decoded options in
3114 search for -lang-asm.
3115
910ad8de
NF
31162010-07-15 Nathan Froyd <froydnj@codesourcery.com>
3117
3118 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
3119 * c-format.c: Likewise.
3120
718f9c0f
MLI
31212010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
3122
3123 * c-common.h: Include diagnostic-core.h. Error if already
3124 included.
3125 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
3126
4d451982
MLI
31272010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3128
3129 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
3130 Do not include expr.h
3131 (vector_mode_valid_p): Move here.
3132
119fe915
SB
31332010-06-21 DJ Delorie <dj@redhat.com>
3134
3135 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
3136 allow these pragmas anywhere.
3137
31382010-06-14 Jakub Jelinek <jakub@redhat.com>
3139
3140 PR bootstrap/44509
3141 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
3142 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
3143 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
3144 ggc_strdup instead of xstrdup.
3145
31462010-06-10 Jakub Jelinek <jakub@redhat.com>
3147
3148 * c-cppbuiltin.c: Include cpp-id-data.h.
3149 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
3150 (lazy_hex_fp_value): New function.
3151 (builtin_define_with_hex_fp_value): Provide definitions lazily.
3152
6662d794
MLI
31532010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3154
3155 * c-gimplify.c: Do not include tree-flow.h
3156
38f8b050
JR
31572010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
3158
3159 PR other/44034
3160 * c-common.c: Rename targetm member:
3161 targetm.enum_va_list -> targetm.enum_va_list_p
3162
9589f23e
AS
31632010-06-28 Anatoly Sokolov <aesok@post.ru>
3164
3165 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
3166
3b06d379
SB
31672010-06-28 Steven Bosscher <steven@gcc.gnu.org>
3168
3169 * c-cppbuiltin.c: Do not include except.h.
3170
d166d4c3
AK
31712010-06-24 Andi Kleen <ak@linux.intel.com>
3172
9faeb493
UB
3173 * c-common.c (warn_for_omitted_condop): New.
3174 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 3175
70cb8be6
JM
31762010-06-21 Joseph Myers <joseph@codesourcery.com>
3177
3178 * c.opt (lang-objc): Remove.
3179 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
3180
a4c97feb
JR
31812010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
3182
3183 * c-opts.c: Include "tm_p.h".
3184
6e2f1956
JM
31852010-06-20 Joseph Myers <joseph@codesourcery.com>
3186
3187 * c-common.c (parse_optimize_options): Update call to
3188 decode_options.
3189
bc87224e
NF
31902010-06-18 Nathan Froyd <froydnj@codesourcery.com>
3191
3192 * c-common.c (record_types_used_by_current_var_decl): Adjust for
3193 new type of types_used_by_cur_var_decl.
3194
b49cf425
JR
31952010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
3196
3197 PR bootstrap/44512
3198 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
3199 for C++ standard compliance.
3200
59f9c2ed
JM
32012010-06-16 Jason Merrill <jason@redhat.com>
3202
3203 * c.opt: Add -Wnoexcept.
3204
33766b66
RG
32052010-06-16 Richard Guenther <rguenther@suse.de>
3206
3207 PR c/44555
3208 * c-common.c (c_common_truthvalue_conversion): Remove
3209 premature and wrong optimization concering ADDR_EXPRs.
3210
eff7e30c
AC
32112010-06-15 Arnaud Charlet <charlet@adacore.com>
3212
3213 * c-ada-spec.c (dump_sloc): Remove column info.
3214 (is_simple_enum): New function.
3215 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
3216 enum types when relevant.
3217
6312e84d
MLI
32182010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3219
9faeb493 3220 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
3221 location.
3222
1cb42611
JM
32232010-06-10 Joseph Myers <joseph@codesourcery.com>
3224
3225 * c-opts.c (c_common_handle_option): Don't handle
3226 OPT_fshow_column.
3227
a9429e29
LB
32282010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3229
3230 * c-pragma.c (push_alignment): Use typed GC allocation.
3231 (handle_pragma_push_options): Likewise.
3232
3233 * c-common.c (parse_optimize_options): Likewise.
3234
3235 * c-common.h (struct sorted_fields_type): Add variable_size GTY
3236 option.
3237
5498f011
JM
32382010-06-07 Joseph Myers <joseph@codesourcery.com>
3239
3240 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
3241 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3242 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3243 flag_signed_bitfields, warn_strict_null_sentinel,
3244 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
3245 flag_gen_declaration, flag_no_gnu_keywords,
3246 flag_implement_inlines, flag_implicit_templates,
3247 flag_implicit_inline_templates, flag_optional_diags,
3248 flag_elide_constructors, flag_default_inline, flag_rtti,
3249 flag_conserve_space, flag_access_control, flag_check_new,
3250 flag_new_for_scope, flag_weak, flag_working_directory,
3251 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
3252 flag_enforce_eh_specs, flag_threadsafe_statics,
3253 flag_pretty_templates): Remove.
3254 * c-common.h (flag_preprocess_only, flag_nil_receivers,
3255 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
3256 flag_replace_objc_classes, flag_undef, flag_no_builtin,
3257 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3258 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3259 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
3260 flag_no_gnu_keywords, flag_implement_inlines,
3261 flag_implicit_templates, flag_implicit_inline_templates,
3262 flag_optional_diags, flag_elide_constructors, flag_default_inline,
3263 flag_rtti, flag_conserve_space, flag_access_control,
3264 flag_check_new, flag_new_for_scope, flag_weak,
3265 flag_working_directory, flag_use_cxa_atexit,
3266 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
3267 flag_threadsafe_statics, flag_pretty_templates,
3268 warn_strict_null_sentinel): Remove.
3269 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
3270 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
3271 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
3272 fimplicit-inline-templates, fimplicit-templates,
3273 flax-vector-conversions, fms-extensions, fnil-receivers,
3274 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
3275 frtti, fshort-double, fshort-enums, fshort-wchar,
3276 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
3277 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
3278 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
3279 gen-decls, undef): Use Var.
3280 (fdefault-inline, foptional-diags): Document as doing nothing.
3281 * c-opts.c (c_common_handle_option): Remove cases for options now
3282 using Var. Mark ignored options as such.
3283
39dabefd
SB
32842010-06-05 Steven Bosscher <steven@gcc.gnu.org>
3285
9faeb493 3286 * c-common.c: Moved to here from parent directory.
39dabefd
SB
3287 * c-common.def: Likewise.
3288 * c-common.h: Likewise.
3289 * c-cppbuiltin.c: Likewise.
3290 * c-dump.c: Likewise.
3291 * c-format.c: Likewise.
3292 * c-format.h : Likewise.
3293 * c-gimplify.c: Likewise.
3294 * c-lex.c: Likewise.
3295 * c-omp.c: Likewise.
3296 * c.opt: Likewise.
3297 * c-opts.c: Likewise.
3298 * c-pch.c: Likewise.
3299 * c-ppoutput.c: Likewise.
3300 * c-pragma.c: Likewise.
3301 * c-pragma.h: Likewise.
3302 * c-pretty-print.c: Likewise.
3303 * c-pretty-print.h: Likewise.
3304 * c-semantics.c: Likewise.
3305 * stub-objc.c: Likewise.
3306
3307 * c-common.c: Include gt-c-family-c-common.h.
3308 * c-pragma.c: Include gt-c-family-c-pragma.h.
3309\f
d1e082c2 3310Copyright (C) 2010-2013 Free Software Foundation, Inc.
39dabefd
SB
3311
3312Copying and distribution of this file, with or without modification,
3313are permitted in any medium without royalty provided the copyright
3314notice and this notice are preserved.