]> gcc.gnu.org Git - gcc.git/blame - gcc/c-family/ChangeLog
* pt_BR.po: New.
[gcc.git] / gcc / c-family / ChangeLog
CommitLineData
12893402
BI
12013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
2
3 * cilk.c (cilk_outline): Made this function non-static.
4 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
5 (create_cilk_wrapper): Added a new parameter: a function pointer.
6 (c_install_body_w_frame_cleanup): Remove
7 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
8 * c-common.h (cilk_outline): New prototype.
9 (gimplify_cilk_spawn): Removed two parameters.
10 (cilk_install_body_with_frame_cleanup): New prototype.
11 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
12 CILK_SPAWN_STMT case.
13
085b42ed
BS
142013-12-11 Bernd Schmidt <bernds@codesourcery.com>
15
2ce064c3
BS
16 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
17
085b42ed
BS
18 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
19 (int_array_type_node): Remove.
20 * c-common.c (c_common_nodes_and_builtins): Don't build it.
21
9e36c9ed
MP
222013-12-05 Marek Polacek <polacek@redhat.com>
23
24 PR c/52023
25 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
26 [ADJUST_FIELD_ALIGN].
27
296674db
JM
282013-12-04 Joseph Myers <joseph@codesourcery.com>
29
30 PR c/52023
31 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
32 and check field alignment if set.
33 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
34 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
35
31e071ae
MP
362013-12-04 Jakub Jelinek <jakub@redhat.com>
37 Marek Polacek <polacek@redhat.com>
38
39 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
40 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
41
d7947e19
L
422013-11-29 H.J. Lu <hongjiu.lu@intel.com>
43
44 PR c/59309
45 * cilk.c (gimplify_cilk_spawn): Properly handle function without
46 arguments.
47
fad7652e
JJ
482013-11-29 Jakub Jelinek <jakub@redhat.com>
49
50 PR c/59280
51 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
52 goto invalid. If it is error_mark_node, don't issue further
53 diagnostics.
54
8b5e1202
SO
552013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
56
57 * c.opt (Wopenmp-simd): New.
58
0a508bb6
JJ
592013-11-22 Jakub Jelinek <jakub@redhat.com>
60
61 * c-ubsan.h (ubsan_instrument_return): New prototype.
62 * c-ubsan.c (ubsan_instrument_return): New function.
63
2fb9a547
AM
642013-11-22 Andrew MacLeod <amacleod@redhat.com>
65
66 * c-common.c: Add required include files from gimple.h.
67 * c-gimplify.c: Likewise
68 * cilk.c: Likewise
69
8400e75e
DM
702013-11-22 David Malcolm <dmalcolm@redhat.com>
71
72 * c-common.c (unsafe_conversion_p): Remove use of
73 EXPR_LOC_OR_HERE macro.
74 (conversion_warning): Likewise.
75 (warnings_for_convert_and_check): Likewise.
76 (warn_for_collisions_1): Likewise.
77 (shorten_compare): Likewise, and remove use of in_system_header
78 macro, using the location from the former.
79 * c-lex.c (dump_one_header): Remove use of input_filename macro.
80 (cb_def_pragma): Remove use of in_system_header macro.
81 (lex_string): Likewise.
82 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
83
eb1ce453
KZ
842013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
85 Mike Stump <mikestump@comcast.net>
86 Richard Sandiford <rdsandiford@googlemail.com>
87
88 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
89 instead of TREE_INT_CST_LOW, in cases where there is a protecting
90 tree_fits_shwi_p or tree_fits_uhwi_p.
91 (dump_generic_ada_node): Likewise.
92 * c-format.c (check_format_arg): Likewise.
93 * c-pretty-print.c (pp_c_integer_constant): Likewise.
94
6b3b8c27
KZ
952013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
96
97 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
98
49b0aa18
JC
992013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
100
101 PR c/53001
102 * c-common.c (unsafe_conversion_p): Make this function
103 return an enumeration with more detail.
104 (conversion_warning): Use the new return type of
105 unsafe_conversion_p to separately warn either about conversions
106 that lower floating point number precision or about the other
107 kinds of conversions.
108 * c-common.h (enum conversion_safety): New enumeration.
109 (unsafe_conversion_p): switching return type to
110 conversion_safety enumeration.
111 * c.opt: Adding new warning -Wfloat-conversion and
112 enabling it with -Wconversion.
113
b826515a
BS
1142013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
115
116 * c-opts.c: Include plugin.h.
117 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
118
b9a55b13
MP
1192013-11-19 Marek Polacek <polacek@redhat.com>
120
121 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
122 call.
123 (ubsan_instrument_shift): Likewise.
124 (ubsan_instrument_vla): Likewise.
125
7d362f6c
RS
1262013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
127
128 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
129 cast to unsigned type.
130
386b1f1f
RS
1312013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
132
133 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
134 tree_low_cst.
135 (complete_array_type): Update comment to refer to tree_to_[su]hwi
136 rather than tree_low_cst.
137
ae7e9ddd
RS
1382013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
139
140 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
141 tree_to_uhwi throughout.
142
9439e9a1
RS
1432013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
144
145 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
146 tree_low_cst (..., 0) with tree_to_shwi throughout.
147
cc269bb6
RS
1482013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
149
150 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
151 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
152
9541ffee
RS
1532013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
154
155 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
156 host_integerp (..., 0) with tree_fits_shwi_p throughout.
157
c02065fc
AH
1582013-11-15 Aldy Hernandez <aldyh@redhat.com>
159
160 * c-cilkplus.c: New file.
161 * c-common.c (readonly_error): Add location argument.
162 * c-common.h (readonly_error): Same.
163 (c_finish_cilk_clauses): Protoize.
164 (c_check_cilk_loop): Same.
165 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
166 Do not fail on error_mark_node.
167 Abstract increment canonicalization to here...
168 (c_omp_for_incr_canonicalize_ptr): New.
169 c-pragma.c (init_pragma): Register "simd" pragma.
170 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
171 (enum pragma_cilk_clause): New.
172
9cc65f15
RS
1732013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
174
175 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
176 wchar_type and host_integerp checks.
177
18f429e2
AM
1782013-11-14 Andrew MacLeod <amacleod@redhat.com>
179
180 * c-common.c: Likewise.
181 * c-gimplify.c: Likewise.
182 * cilk.c: Likewise.
183
d8a2d370
DN
1842013-11-14 Diego Novillo <dnovillo@google.com>
185
186 * c-common.c: Include fold-const.h.
187 Include stor-layout.h.
188 Include calls.h.
189 Include stringpool.h.
190 Include attribs.h.
191 Include varasm.h.
192 Include trans-mem.h.
193 * c-cppbuiltin.c: Include stor-layout.h.
194 Include stringpool.h.
195 * c-format.c: Include stringpool.h.
196 * c-lex.c: Include stringpool.h.
197 Include stor-layout.h.
198 * c-pragma.c: Include stringpool.h.
199 Include attribs.h.
200 Include varasm.h.
201 Include gcc-symtab.h.
202 * c-pretty-print.c: Include stor-layout.h.
203 Include attribs.h.
204 * cilk.c: Include stringpool.h.
205 Include calls.h.
206
38b7bc7f
JM
2072013-11-13 Joseph Myers <joseph@codesourcery.com>
208
209 * c-common.h (enum rid): Add RID_AUTO_TYPE.
210 * c-common.c (c_common_reswords): Add __auto_type.
211 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
212
45b0be94
AM
2132013-11-12 Andrew MacLeod <amacleod@redhat.com>
214
18f429e2
AM
215 * c-common.c: Include gimplify.h.
216 * c-gimplify.c: Likewise.
217 * cilk.c: Likewise.
218 * c-omp.c: Include gimple-expr.h instead of gimple.h.
219 * c-ubsan.c: Don't include gimple.h.
45b0be94 220
582d9b50
JM
2212013-11-12 Joseph Myers <joseph@codesourcery.com>
222
223 * c-common.c (c_common_reswords): Add _Thread_local.
224
6b28e197
JM
2252013-11-09 Joseph Myers <joseph@codesourcery.com>
226
227 * c-common.c (atomic_size_supported_p): New function.
228 (resolve_overloaded_atomic_exchange)
229 (resolve_overloaded_atomic_compare_exchange)
230 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
231 Use it instead of comparing size with a local list of sizes.
232
267bac10
JM
2332013-11-07 Andrew MacLeod <amacleod@redhat.com>
234 Joseph Myers <joseph@codesourcery.com>
235
236 * c-common.h (enum rid): Add RID_ATOMIC.
237 * c-common.c (c_common_reswords): Add _Atomic.
238 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
239 (keyword_is_type_qualifier): Accept RID_ATOMIC.
240 * c-format.c (check_format_types): Check for extra _Atomic
241 qualifiers in format argument.
242 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
243 (pp_c_type_qualifier_list): Mention _Atomic in comment.
244
5157b91e
TB
2452013-11-06 Tobias Burnus <burnus@net-b.de>
246
247 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
248
6dbe0958
JM
2492013-11-06 Joseph Myers <joseph@codesourcery.com>
250
251 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
252 standards modes.
253 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
254 to mean lack of IEEE 754 support.
255
e8ff5196
TB
2562013-11-05 Tobias Burnus <burnus@net-b.de>
257
258 * c.opt (-Wdate-time): New option
259 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
260
254a0760
JM
2612013-11-05 Joseph Myers <joseph@codesourcery.com>
262
263 * c-cppbuiltin.c (cpp_iec_559_value): Test
264 flag_excess_precision_cmdline not flag_excess_precision.
265
6d7f7e0a
TB
2662013-11-05 Tobias Burnus <burnus@net-b.de>
267
268 * c.opt (fopenmp-simd): New option.
269 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
270 (omp_pragmas): ... this new struct.
271 (c_pp_lookup_pragma): Also walk omp_pragmas.
272 (init_pragma): Init pragmas for -fopenmp-simd.
273
55a7f02f
MP
2742013-11-04 Marek Polacek <polacek@redhat.com>
275
276 PR c++/58979
277 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
278
9193fb05
JM
2792013-11-04 Joseph Myers <joseph@codesourcery.com>
280
281 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
282 New functions.
283 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
284
94159ecf
EB
2852013-11-04 Eric Botcazou <ebotcazou@adacore.com>
286
287 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
288 (dump_ada_specs): Adjust prototype of second callback.
289 * c-ada-spec.c (cpp_check): New global variable.
290 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
291 (print_generic_ada_decl): Likewise.
292 (has_static_fields): Change return type to bool and add guard.
293 (has_nontrivial_methods): New predicate.
294 (is_tagged_type): Change return type to bool.
295 (separate_class_package): Call has_nontrivial_methods.
296 (pp_ada_tree_identifier): Minor tweaks.
297 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
298 (dump_ada_array_domains): Likewise.
299 (dump_ada_array_type): Likewise.
300 (dump_template_types): Remove cpp_check parameter and do not pass it to
301 dump_generic_ada_node.
302 (dump_ada_template): Likewise.
303 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
304 recursively.
305 (print_ada_methods): Change return type to integer. Remove cpp_check
306 parameter and do not pass it down.
307 (dump_nested_types): Remove cpp_check parameter and do not pass it to
308 dump_generic_ada_node.
309 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
310 accessing methods.
311 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
312 down. Use has_nontrivial_methods to recognize C++ classes. Use return
313 value of print_ada_methods.
314 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
315 Set cpp_check to it before invoking dump_ada_nodes.
316 (dump_ada_specs): Likewise.
317
b906f4ca
MP
3182013-11-03 Marek Polacek <polacek@redhat.com>
319
320 * c-ubsan.c: Don't include hash-table.h.
321 (ubsan_instrument_vla): New function.
322 * c-ubsan.h: Declare it.
323
5e20cdc9
DM
3242013-10-31 David Malcolm <dmalcolm@redhat.com>
325
326 Automated part of renaming of symtab_node_base to symtab_node.
327
328 Patch autogenerated by rename_symtab.py from
329 https://github.com/davidmalcolm/gcc-refactoring-scripts
330 revision 58bb219cc090b2f4516a9297d868c245495ee622
331
332 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
333 symtab_node_base to symtab_node.
334
7057e645
ESR
3352013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
336
337 Implement C++14 digit separators.
338 * c-lex.c (interpret_float): Remove digit separators from scratch string
339 before building real literal.
340
193ea7bc
JJ
3412013-10-30 Jakub Jelinek <jakub@redhat.com>
342
343 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
344
939b37da
BI
3452013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
346
347 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
348 fields.
349 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
350 enabled.
351 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
352 (insert_cilk_frame): New prototype.
353 (cilk_init_builtins): Likewise.
354 (gimplify_cilk_spawn): Likewise.
355 (c_cilk_install_body_w_frame_cleanup): Likewise.
356 (cilk_detect_spawn_and_unwrap): Likewise.
357 (cilk_set_spawn_marker): Likewise.
358 (build_cilk_sync): Likewise.
359 (build_cilk_spawn): Likewise.
360 * cilk.c: New file.
361
67348ccc
DM
3622013-10-29 David Malcolm <dmalcolm@redhat.com>
363
364 Patch autogenerated by refactor_symtab.py from
365 https://github.com/davidmalcolm/gcc-refactoring-scripts
366 revision 58bb219cc090b2f4516a9297d868c245495ee622
367
368 * c-gimplify.c (c_genericize): Update for conversion of symtab types
369 to a true class hierarchy.
370 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
371
d570872d
RS
3722013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
373
374 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
375
98906124
JL
3762013-10-26 Jeff Law <law@redhat.com>
377
378 * c-family/c-common.c (c_define_builtins): Remove mudflap support.
379 * c-family/c.opt: Ignore and warn for mudflap options.
380
d73749df 3812013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
382
383 PR other/33426
384 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
385 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
386
3f04b1bb
JM
3872013-10-23 Jason Merrill <jason@redhat.com>
388
389 * c-format.c (gcc_cxxdiag_char_table): Add %X.
390
acf0174b
JJ
3912013-10-11 Jakub Jelinek <jakub@redhat.com>
392
acd15a28
JJ
393 * c-common.h (omp_clause_mask::operator !=): New method.
394 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
395 instead of if (mask & something) tests everywhere.
396
acf0174b
JJ
397 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
398 201307 instead of 201107.
399 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
400 (c_common_attribute_table): Add "omp declare target" and
401 "omp declare simd" attributes.
402 (handle_omp_declare_target_attribute,
403 handle_omp_declare_simd_attribute): New functions.
404 * c-omp.c: Include c-pragma.h.
405 (c_finish_omp_taskgroup): New function.
406 (c_finish_omp_atomic): Add swapped argument, if true,
407 build the operation first with rhs, lhs arguments and use NOP_EXPR
408 build_modify_expr.
409 (c_finish_omp_for): Add code argument, pass it down to make_code.
410 (c_omp_split_clauses): New function.
411 (c_split_parallel_clauses): Removed.
412 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
413 c_omp_declare_simd_clauses_to_decls): New functions.
414 * c-common.h (omp_clause_mask): New type.
415 (OMP_CLAUSE_MASK_1): Define.
416 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
417 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
418 omp_clause_mask::operator |, omp_clause_mask::operator &,
419 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
420 omp_clause_mask::operator ==): New methods.
421 (enum c_omp_clause_split): New.
422 (c_finish_omp_taskgroup): New prototype.
423 (c_finish_omp_atomic): Add swapped argument.
424 (c_finish_omp_for): Add code argument.
425 (c_omp_split_clauses): New prototype.
426 (c_split_parallel_clauses): Removed.
427 (c_omp_declare_simd_clauses_to_numbers,
428 c_omp_declare_simd_clauses_to_decls): New prototypes.
429 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
430 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
431 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
432 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
433 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
434 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
435 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
436 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
437 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
438 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
439 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
440 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
441 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
442 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
443 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
444 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
445 PRAGMA_OMP_CLAUSE_UNIFORM.
446
826cacfe
MG
4472013-10-09 Marc Glisse <marc.glisse@inria.fr>
448
449 PR tree-optimization/20318
450 * c-common.c (handle_returns_nonnull_attribute): New function.
451 (c_common_attribute_table): Add returns_nonnull.
452
2284b034
MG
4532013-10-03 Marc Glisse <marc.glisse@inria.fr>
454
455 PR c++/19476
456 * c.opt (fcheck-new): Move to common.opt.
457
b56e9788
MP
4582013-09-25 Marek Polacek <polacek@redhat.com>
459 Jakub Jelinek <jakub@redhat.com>
460
461 PR sanitizer/58413
462 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
463 an expression if we can prove it is correct.
464 (ubsan_instrument_division): Likewise. Remove unnecessary
465 check.
466
ce6923c5
MP
4672013-09-18 Marek Polacek <polacek@redhat.com>
468
469 PR sanitizer/58411
470 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
471 Declare it.
472 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
473
fb5610fb
IS
4742013-09-14 Iain Sandoe <iain@codesourcery.com>
475
476 PR target/48094
477 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
478 fobjc-gc, freplace-objc-classes): Accept for LTO.
479
88b0e79e
JC
4802013-09-13 Jacek Caban <jacek@codeweavers.com>
481
482 * c-target.def: New hook
483
c9b0866a
PC
4842013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
485
486 PR c++/43452
487 * c.opt (Wdelete-incomplete): Add.
488
0af94e6f
JR
4892013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
490
491 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
492 (vector_types_compatible_elements_p): New function.
493 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
494 declaration.
495 (vector_types_compatible_elements_p): Declare.
496
7c26172c
GDR
4972013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
498
499 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
500 a virtual member function.
501 (pp_simple_type_specifier): Remove.
502 (pp_c_type_specifier): Likewise.
503 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
504 Rename from pp_c_type_specifier. Adjust.
505 (c_pretty_printer::c_pretty_printer): Do not assign to
506 simple_type_specifier.
507
20059c8b
GDR
5082013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
509
510 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
511 member function.
512 (c_pretty_printer::storage_class_specifier): Likewise.
513 (c_pretty_printer::initializer): Likewise.
514 (pp_declaration): Remove.
515 (pp_declaration_specifiers): Likewise.
516 (pp_abstract_declarator): Likewise.
517 (pp_declarator): Likewise.
518 (pp_type_id): Likewise.
519 (pp_statement): Likewise.
520 (pp_constant): Likewise.
521 (pp_id_expression): Likewise.
522 (pp_primary_expression): Likewise.
523 (pp_unary_expression): Likewise.
524 (pp_multiplicative_expression): Likewise.
525 (pp_conditional_expression): Likewise.
526 (pp_assignment_expression): Likewise.
527 (pp_expression): Likewise.
528 (pp_c_type_id): Likewise.
529 (pp_c_storage_class_specifier): Likewise.
530 * c-pretty-print.c (pp_c_type_cast): Tidy.
531 (pp_c_pointer): Likewise.
532 (pp_c_type_specifier): Likewise.
533 (pp_c_parameter_type_list): Likewise.
534 (pp_c_function_definition): Likewise.
535 (pp_c_init_declarator): Likewise.
536 (pp_c_initializer_list): Likewise.
537 (pp_c_constructor_elts): Likewise.
538 (c_pretty_printer::direct_abstract_declarator): Likewise.
539 (c_pretty_printer::declaration_specifiers): Likewise.
540 (c_pretty_printer::primary_expression): Likewise.
541 (c_pretty_printer::postfix_expression): Likewise.
542 (c_pretty_printer::type_id): Rename from pp_c_type_id.
543 (c_pretty_printer::storage_class_specifier): Rename from
544 pp_c_storage_class_specifier.
545 (c_pretty_printer::initializer): Rename from pp_c_initializer.
546 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
547 storage_class_specifier, initializer, offset_list, flags.
548
de5a5fa1
MP
5492013-08-30 Marek Polacek <polacek@redhat.com>
550
551 * c-ubsan.c: New file.
552 * c-ubsan.h: New file.
553
8f0e4d72
GDR
5542013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
555
556 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
557 member function.
558 (c_pretty_printer::declaration_specifiers): Likewise.
559 (c_pretty_printer::declarator): Likewise.
560 (c_pretty_printer::abstract_declarator): Likewise.
561 (c_pretty_printer::direct_abstract_declarator): Likewise.
562 (c_pretty_printer::direct_declarator): Likewise.
563 (c_pretty_printer::function_specifier): Likewise.
564 (pp_declaration): Adjust.
565 (pp_declaration_specifiers): Likewise.
566 (pp_abstract_declarator): Likewise.
567 (pp_direct_declarator): Likewise.
568 (pp_function_specifier): Likewise.
569 (pp_direct_abstract_declarator): Remove as unused.
570 (pp_c_declaration): Remove.
571 (pp_c_declaration_specifiers): Likewise.
572 (pp_c_declarator): Likewise.
573 (pp_c_direct_declarator): Likewise.
574 (pp_c_function_specifier): Likewise.
575 (pp_c_direct_abstract_declarator): Likewise.
576 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
577 from pp_c_abstract_declarator. Adjust.
578 (c_pretty_printer::direct_abstract_declarator): Rename from
579 pp_c_direct_abstract_declarator. Adjust.
580 (c_pretty_printer::function_specifier): Rename from
581 pp_c_function_specifier. Adjust.
582 (c_pretty_printer::declaration_specifiers): Rename from
583 pp_c_declaration_specifiers. Adjust.
584 (c_pretty_printer::direct_declarator): Rename from
585 pp_c_direct_declarator. Adjust.
586 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
587 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
588 (c_pretty_printer::c_pretty_printer): Do not assign to
589 declaration, declaration_specifiers, declarator,
590 direct_declarator, direct_abstract_declarator, function_specifier.
591
00d34d3a
GDR
5922013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
593
594 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
595 virtual member function.
596 (c_pretty_printer::multiplicative_expression): Likewise.
597 (c_pretty_printer::conditional_expression): Likewise.
598 (c_pretty_printer::assignment_expression): Likewise.
599 (c_pretty_printer::expression): Likewise.
600 (pp_unary_expression): Adjust.
601 (pp_multiplicative_expression): Likewise.
602 (pp_assignment_expression): Likewise.
603 (pp_conditional_expression): Likewise.
604 (pp_expression): Likewise.
605 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
606 from pp_c_unary_expression. Adjust.
607 (c_pretty_printer::multiplicative_expression): Rename from
608 pp_c_multiplicative_expression. Adjust.
609 (c_pretty_printer::conditional_expression): Rename from
610 pp_c_conditional_expression. Adjust.
611 (c_pretty_printer::assignment_expression): Rename from
612 pp_c_assignment_expression. Adjust.
613 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
614 (c_pretty_printer::c_pretty_printer): Do not assign to
615 unary_expression, multiplicative_expression,
616 conditional_expression, expression.
617
fb22178f
GDR
6182013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
619
620 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
621 virtual member function.
622 (pp_postfix_expression): Adjust.
623 (pp_c_postfix_expression): Remove.
624 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
625 from pp_c_postfix_expression. Adjust.
626 (c_pretty_printer::c_pretty_printer): Do not assign to
627 postfix_expression.
628
7ecc2600
GDR
6292013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
630
631 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
632 virtua member function.
633 (pp_primary_expression): Adjust.
634 (pp_c_primary_expression): Remove.
635 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
636 from pp_c_primary_expression. Adjust.
637 (pp_c_initializer_list): Use pp_primary_expression.
638 (c_pretty_printer::c_pretty_printer): Do not assign to
639 primary_expression.
640
0691175f
GDR
6412013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
642
643 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
644 * c-pretty-print.c (M_): Remove.
645 (c_pretty_printer::translate_string): Define.
646 (pp_c_type_specifier): Use it.
647 (pp_c_primary_expression): Likewise.
648 (pp_c_expression): Likewise.
649
66dfe4c4
GDR
6502013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
651
652 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
653 virtual function.
654 (pp_c_id_expression): Remove.
655 (pp_id_expression): Adjust.
656 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
657 pp_c_id_expression. Adjust.
658 (pp_c_postfix_expression): Use pp_id_expression.
659 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
660
ca43e9d5
GDR
6612013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
662
663 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
664 member function.
665 (pp_constant): Adjust.
666 (pp_c_constant): Remove.
667 * c-pretty-print.c (c_pretty_printer::constant): Rename from
668 pp_c_constant. Adjust.
669 (pp_c_constant)
670 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
671 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
672
da6ca2b5
GDR
6732013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
674
675 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
676 (c_pretty_printer::c_pretty_printer): Declare.
677 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
678 c_pretty_printer_init. Adjust.
679 (print_c_tree): Do not call c_pretty_printer_init.
680 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
681
65a372f4
AC
6822013-08-09 Arnaud Charlet <charlet@adacore.com>
683
684 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
685
fd9b0f32
PC
6862013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
687
688 PR c++/58080
689 * c-common.c (pointer_int_sum): Add bool parameter.
690 * c-common.h (pointer_int_sum): Adjust declaration.
691
e0aec1e9
GDR
6922013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
693
694 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
695 c_pretty_printer variable.
696
b066401f
GDR
6972013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
698
699 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
700 (pp_base): Remove.
701 (pp_c_base): Likewise. Adjust users.
702 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
703 (pp_c_whitespace): Do not call pp_base.
704 (pp_c_left_paren): Likewise.
705 (pp_c_right_paren): Likewise.
706 (pp_c_left_brace): Likewise.
707 (pp_c_right_brace): Likewise.
708 (pp_c_left_bracket): Likewise.
709 (pp_c_right_bracket): Likewise.
710 (pp_c_dot): Likewise.
711 (pp_c_ampersand): Likewise.
712 (pp_c_star): Likewise.
713 (pp_c_arrow): Likewise.
714 (pp_c_semicolon): Likewise.
715 (pp_c_complement): Likewise.
716 (pp_c_exclamation): Likewise.
717 (pp_c_direct_declarator): Likewise.
718 (pp_c_ws_string): Likewise.
719 (pp_c_identifier): Likewise.
720 (pp_c_statement): Likewise.
721 (print_c_tree): Likewise.
722
65e5a578
ESR
7232013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
724
725 PR c++/58072
726 * c-common.c (c_parse_error): Catch user-defined literal tokens and
727 provide useful error strings.
728
137a1a27
GDR
7292013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
730
731 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
732 printer functions instead of pp_string or operators and punctuators.
733 (dump_generic_ada_node): Likewise.
734 * c-pretty-print.c (pp_c_type_specifier): Likewise.
735 (pp_c_relational_expression): Likewise.
736 (pp_c_logical_or_expression): Likewise.
737
07838b13
GDR
7382013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
739
740 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
741 functions instead of pp_character.
742 (pp_ada_tree_identifier): Likewise.
743 (dump_ada_double_name): Likewise.
744 (dump_ada_function_declaration): Likewise.
745 (dump_ada_array_domains): Likewise.
746 (dump_template_types): Likewise.
747 (dump_generic_ada_node): Likewise.
748 (print_ada_declaration): Likewise.
749 (print_ada_struct_decl): Likewise.
750 * c-pretty-print.c (pp_c_integer_constant): Likewise.
751
433cc7b0
TT
7522013-07-23 Tom Tromey <tromey@redhat.com>
753
754 * c-common.h (enum rid) <RID_GENERIC>: New constant.
755 * c-common.c (c_common_reswords): Add _Generic.
756
688010ba
OB
7572013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
758
759 * c-common.c: Fix typos.
760 * c-common.h: Likewise.
761
2a99e5e6
LL
7622013-07-13 Lubos Lunak <l.lunak@suse.cz>
763
764 PR c++/55203
765 * c-common.c (c_common_attribute_table): Add warn_unused.
766 (handle_warn_unused_attribute): New.
767
c26302d5
JJ
7682013-07-10 Jakub Jelinek <jakub@redhat.com>
769
770 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
771 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
772
dfeadaa0
PC
7732013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
774
775 PR c++/57869
776 * c.opt: Add Wconditionally-supported.
777
6a2fa4b2
GS
7782013-07-08 Graham Stott <graham.stott@btinternet.com>
779
780 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
781 unused variables l_length and l_node.
782
ecdbd01a 7832013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
784
785 PR c/57821
786 * c-common.c (complete_array_type): Delay folding first index
787 like other indices. When folding, check for index overflow.
788
bedc293e
MG
7892013-06-27 Marc Glisse <marc.glisse@inria.fr>
790
791 PR c++/57509
792 * c-common.h (c_build_vec_perm_expr): New complain argument.
793 * c-common.c (c_build_vec_perm_expr): Likewise.
794 Use save_expr also in C++.
795
604b2bfc
GDR
7962013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
797
798 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
799 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
800 * c-opts.c (c_common_post_options): Likewise.
801
dfeadaa0 8022013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
803
804 * array-notation-common.c (length_mismatch_in_expr): Changed the
805 parameter type's from a dynamic array to a vec_tree. Also removed
806 the size parameters.
807 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
808 the change above.
809
2ce86d2e
BI
8102013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
811
812 * c-common.h (struct cilkplus_an_parts): New structure.
813 (struct cilkplus_an_loop_parts): Likewise.
814 (cilkplus_extract_an_triplets): New prototype.
815 (fix_sec_implicit_args): Likewise.
816 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
817 (fix_sec_implicit_args): Likewise.
604b2bfc 818
07a6825b
BI
8192013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
820
821 * array-notation-common.c (find_inv_trees): Removed an unwanted
822 typecasting.
823 * c-common.h (struct inv_list::additional_tcodes): Changed type from
824 enum rid to enum tree_code.
825
08346abd
JH
8262013-06-11 Jan Hubicka <jh@suse.cz>
827
828 * c-common.c (handle_alias_ifunc_attribute): Do not set
829 DECL_EXTERNAL for weakref variables.
830 * c-pragma.c (handle_pragma_weak): Make sure aliases
831 are not declared as external.
832
d60f1706
BI
8332013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
834
835 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
836 function from c/c-array-notation.c.
837 (is_cilkplus_reduce_builtin): Likewise.
838 (find_rank): Likewise.
839 (extract_array_notation_exprs): Likewise.
840 (replace_array_notations): Likewise.
841 (find_inv_trees): Likewise.
842 (replace_inv_trees): Likewise.
843 (contains_array_notation_expr): Likewise.
844 (find_correct_array_notation_type): Likewise.
845 * c-common.h (struct inv_list): Moved this struct from the file
846 c/c-array-notation.c and added a new field called additional tcodes.
847 (length_mismatch_in_expr_p): New prototype.
848 (is_cilkplus_reduce_builtin): Likewise.
849 (find_rank): Likewise.
850 (extract_array_notation_exprs): Likewise.
851 (replace_array_notation): Likewise.
852 (find_inv_trees): Likewise.
853 (replace_inv_trees): Likewise.
854 (find_correct_array_notation_type): Likewise.
dfeadaa0 855
36536d79
BI
8562013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
857
858 * c-common.c (c_define_builtins): When cilkplus is enabled, the
859 function array_notation_init_builtins is called.
860 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
861 * c-common.def (ARRAY_NOTATION_REF): New tree.
862 * c-common.h (build_array_notation_expr): New function declaration.
863 (build_array_notation_ref): Likewise.
864 (extract_sec_implicit_index_arg): New extern declaration.
865 (is_sec_implicit_index_fn): Likewise.
866 (ARRAY_NOTATION_CHECK): New define.
867 (ARRAY_NOTATION_ARRAY): Likewise.
868 (ARRAY_NOTATION_START): Likewise.
869 (ARRAY_NOTATION_LENGTH): Likewise.
870 (ARRAY_NOTATION_STRIDE): Likewise.
871 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
872 ARRAY_NOTATION_REF.
873 (pp_c_expression): Likewise.
874 * c.opt (flag_enable_cilkplus): New flag.
875 * array-notation-common.c: New file.
876
f7716d57
JJ
8772013-05-14 Jakub Jelinek <jakub@redhat.com>
878
879 PR c++/57274
880 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
881
a5e0cd1d
MG
8822013-05-10 Marc Glisse <marc.glisse@inria.fr>
883
884 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
885 vectors.
886
f6bc1c4a
HS
8872013-05-07 Han Shen <shenhan@google.com>
888
889 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
890
3f12f6e9
SKS
8912013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
892
893 * c-common.c (check_user_alignment): Emit error for negative values.
894
61949153
PC
8952013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
896
897 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
898
e93e18e9
PC
8992013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
900
901 * c-cppbuiltin.c (c_cpp_builtins): Do not define
902 __GXX_EXPERIMENTAL_CXX1Y__.
903
44d90fe1
PC
9042013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
905 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
906
907 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
908 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
909 to simply use OPT_Wpointer_arith.
910 (c_sizeof_or_alignof_type): Likewise.
911
13f39b2e
PC
9122013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
913
914 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
915
4b84d650
JJ
9162013-04-12 Jakub Jelinek <jakub@redhat.com>
917
918 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
919 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
920 specifiers.
921
fb037b5d
SB
9222013-04-07 Steven Bosscher <steven@gcc.gnu.org>
923
924 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
925
4e856798
PC
9262013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
927
928 * c-common.c (pointer_int_sum): Remove dead code.
929
4b1baac8
RS
9302013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
931
932 PR middle-end/56524
933 * c-common.c (handle_optimize_attribute): Don't call
934 save_optabs_if_changed.
935
0b50e654
JJ
9362013-03-05 Jakub Jelinek <jakub@redhat.com>
937
938 PR middle-end/56461
939 * c-pch.c (pch_init): Free target_validity at the end.
940
48c41403
JJ
9412013-03-04 Jakub Jelinek <jakub@redhat.com>
942
943 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
944
e664c61c
KS
9452013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
946 Jakub Jelinek <jakub@redhat.com>
947
948 PR sanitizer/56454
949 * c-common.c (handle_no_sanitize_address_attribute): New function.
950 (c_common_attribute_table): Add no_sanitize_address attribute.
951 (handle_no_address_safety_analysis_attribute): Add
952 no_sanitize_address attribute, not no_address_safety_analysis
953 attribute.
954
a475fd3d 9552013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
956
957 PR target/52555
958 * c-common.c (handle_optimize_attribute): Call
959 save_optabs_if_changed.
960
f6007d99
JJ
9612013-02-18 Jakub Jelinek <jakub@redhat.com>
962 Steven Bosscher <steven@gcc.gnu.org>
963
964 PR pch/54117
965 * c-opts.c (c_common_post_options): If debug info is enabled
966 and non-dwarf*, refuse to load PCH files and when writing PCH
967 file warn.
968
cf35e2b1
JJ
9692013-02-05 Jakub Jelinek <jakub@redhat.com>
970
971 PR middle-end/56167
972 * c-common.c (handle_error_attribute): Fix condition.
973
32887460
JJ
9742013-01-30 Jakub Jelinek <jakub@redhat.com>
975
976 PR c++/55742
977 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
978
5af057d8
JM
9792013-01-18 Jason Merrill <jason@redhat.com>
980
981 PR target/54908
982 * c.opt (-fextern-tls-init): New.
983 * c-opts.c (c_common_post_options): Handle it.
984
cc83c823
JJ
9852013-01-09 Jakub Jelinek <jakub@redhat.com>
986
987 PR c/48418
988 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
989 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
990 and is either negative or bigger or equal to type precision
991 of the first operand.
992
a859517f
MP
9932012-12-03 Marek Polacek <polacek@redhat.com>
994
995 PR c/55570
996 * c-common.c (check_user_alignment): Swap order of tests,
997 check TREE_CODE first.
998
2d7aa578
ESR
9992012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
1000
1001 PR c++/52654
1002 * c-common.h (overflow_type): New enum.
1003 (build_userdef_literal): Add overflow_type argument.
1004 (tree_userdef_literal): Add overflow_type.
1005 (USERDEF_LITERAL_OVERFLOW): New access macro.
1006 * c-common.c (build_userdef_literal): Add overflow_type
1007 argument.
1008 * c-lex.c (c_lex_with_flags): Add overflow_type to
1009 build_userdef_literal calls.
1010 (interpret_integer, interpret_float): Add overflow_type argument.
1011
cc3c4f62
RB
10122012-11-28 Richard Biener <rguenther@suse.de>
1013
1014 PR c/35634
1015 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1016 here and use a type with proper overflow behavior for types that would
1017 need to be promoted for the arithmetic.
1018
77bc5132
JJ
10192012-11-23 Jakub Jelinek <jakub@redhat.com>
1020
1021 PR sanitizer/55435
1022 * c-common.c (handle_no_address_safety_analysis_attribute): New
1023 function.
1024 (c_common_attribute_table): Add no_address_safety_analysis.
1025
5dc99c46
SB
10262012-11-16 Simon Baldwin <simonb@google.com>
1027
1028 * c.opt: Add f[no-]canonical-system-headers.
1029 * c-opts.c (c_common_handle_option): Handle
1030 OPT_fcanonical_system_headers.
1031
a4a0016d
ESR
10322012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
1033
1034 PR c++/54413
1035 * c-opts.c (c_common_handle_option): Set new flags.
1036 * c.opt: Describe new flags.
1037
7dbb85a7
JM
10382012-11-09 Jason Merrill <jason@redhat.com>
1039
1040 * c.opt (Wabi-tag): New.
1041
ad7bac31
AK
10422012-11-09 Andi Kleen <ak@linux.intel.com>
1043
1044 PR 55139
1045 * c-common.c (get_atomic_generic_size): Mask with
1046 MEMMODEL_MASK
1047
7332899a
MLI
10482012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1049
1050 PR c/53063
1051 * c.opt (Wformat): Make it Alias Wformat=1.
1052 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
1053 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
1054 LangEnabledBy.
1055 (Wformat=): RejectNegative. Use LangEnabledBy.
1056 (Wnonnull): Use LangEnabledBy.
1057 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
1058 * c-format.c (set_Wformat): Delete.
1059 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
1060 (maybe_read_dollar_number): Likewise.
1061 (avoid_dollar_number): Likewise.
1062 (finish_dollar_format_checking): Likewise.
1063 (check_format_info): Likewise.
1064 (check_format_info_main): Likewise.
1065 (check_format_types): Likewise.
1066 (format_type_warning): Likewise.
1067 * c-common.c (int): Likewise.
1068 (check_function_sentinel): Likewise.
1069 * c-common.h (warn_format,set_Wformat): Do not declare here.
1070
34a180a6
MLI
10712012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1072
1073 PR c/53063
1074 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
1075 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
1076 Use LangEnabledBy.
1077 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
1078 common.opt.
1079 (Wvariadic-macros): Init(1).
1080 * c-opts.c (c_common_handle_option): Do not handle them
1081 explicitly.
1082 (c_common_post_options): Likewise.
1083 (sanitize_cpp_opts): warn_unused_macros is now
1084 cpp_warn_unused_macros.
1085 (push_command_line_include): Likewise.
1086 * c-common.c (warn_unknown_pragmas): Do not define.
1087 * c-common.h (warn_unknown_pragmas): Do not declare.
1088
3f46d6a5
MLI
10892012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1090
1091 PR c/51294
1092 * c-common.c (conversion_warning): Handle conditional expressions.
1093
880661a4
JW
10942012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
1095
1096 PR c++/54930
1097 * c.opt (Wreturn_local_addr): Define new option.
1098
4514a96b
JM
10992012-10-25 Jason Merrill <jason@redhat.com>
1100
f14edc1a
JM
1101 * c.opt (Wvirtual-move-assign): New.
1102
4514a96b
JM
1103 * c.opt (Winherited-variadic-ctor): New.
1104
93100c6b
MG
11052012-10-25 Marc Glisse <marc.glisse@inria.fr>
1106
1107 PR c++/54427
1108 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
1109
1efcb8c6
JM
11102012-10-23 Joseph Myers <joseph@codesourcery.com>
1111
1112 * c-common.h (pch_cpp_save_state): Declare.
1113 * c-target.def (c_preinclude): New hook.
1114 * c-opts.c (done_preinclude): New.
1115 (push_command_line_include): Handle default preincluded header.
1116 (cb_file_change): Call pch_cpp_save_state when calling
1117 push_command_line_include.
1118 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
1119 (pch_cpp_save_state): New.
1120 (pch_init): Call pch_cpp_save_state conditionally, instead of
1121 calling cpp_save_state.
1122
4a0ae68e
MLI
11232012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1124
1125 PR c/53063
1126 PR c/40989
1127 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
1128 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
1129 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
1130 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
1131 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
1132 * c-opts.c (c_common_handle_option): Remove explicit handling from
1133 here.
1134 (c_common_post_options): Likewise.
1135
67e4210b
EB
11362012-10-18 Eric Botcazou <ebotcazou@adacore.com>
1137
1138 * c-ada-spec.c (LOCATION_COL): Delete.
1139 (compare_location): New function.
1140 (compare_node): Use it.
1141 (compare_comment): Likewise.
1142
65d4f2cd
MLI
11432012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1144
1145 PR c/53063
1146 PR c/40989
1147 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
1148 * c-opts.c (c_common_handle_option): Do not set them here. Add
1149 comment.
1150 (c_common_post_options): Likewise.
1151
909881cb
EB
11522012-10-16 Eric Botcazou <ebotcazou@adacore.com>
1153
1154 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
1155 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
1156 Remove POINTER_TYPE handling, add large unsigned handling and use
1157 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
1158
3a785c97
JJ
11592012-10-12 Jakub Jelinek <jakub@redhat.com>
1160
1161 PR c/54381
1162 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
1163 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
1164 locs and array of 3 trees instead of just single loc and single
1165 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
1166 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
1167 For *cmp* builtins that take two sources strings report warnings
1168 about first and second source, not about destination and source.
1169
5e54f81d
MG
11702012-10-12 Marc Glisse <marc.glisse@inria.fr>
1171
1172 PR c++/53055
1173 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
1174
f5b02f1e
EB
11752012-10-11 Eric Botcazou <ebotcazou@adacore.com>
1176
1177 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
1178 declaring something coming from another file.
1179
b46dbc6c
AC
11802012-10-10 Arnaud Charlet <charlet@adacore.com>
1181
f5b02f1e 1182 PR ada/54845
b46dbc6c
AC
1183 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
1184
5d9de0d0
PC
11852012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
1186
1187 PR c++/54194
1188 * c-common.c (warn_about_parentheses): Add location_t parameter;
1189 use EXPR_LOC_OR_LOC.
1190 * c-common.h: Update declaration.
1191
a212e43f
MG
11922012-10-09 Marc Glisse <marc.glisse@inria.fr>
1193
1194 PR c++/54427
1195 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
1196 more operations. Make error messages optional.
1197 * c-common.h (enum stv_conv): Moved from c-typeck.c.
1198 (scalar_to_vector): Declare.
1199
b1db7f91
JM
12002012-10-08 Jason Merrill <jason@redhat.com>
1201
1202 * c-common.c (c_common_reswords): Add thread_local.
1203
e28d52cf
DS
12042012-10-08 Dodji Seketeli <dodji@redhat.com>
1205
1206 PR c++/53528 C++11 attribute support
1207 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
1208 new functions.
1209 * c-common.c (check_cxx_fundamental_alignment_constraints): New
1210 static function.
1211 (handle_aligned_attribute): In choose strictest alignment
1212 among many. Use new check_cxx_fundamental_alignment_constraints.
1213 (handle_transparent_union_attribute): In c++11 attribute syntax,
1214 don't look through typedefs.
1215
3b78de56
AC
12162012-10-04 Arnaud Charlet <charlet@adacore.com>
1217
1218 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
1219 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
1220 out of dumpfile.h.
1221
6040bb5f
DC
12222012-09-25 Dehao Chen <dehao@google.com>
1223
1224 PR middle-end/54645
3b78de56 1225 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
1226 map when read in the pch.
1227
0b07a57e
AC
12282012-09-18 Arnaud Charlet <charlet@adacore.com>
1229
1230 * c-ada-spec.c: Style fixes.
1231
da5182be
TQ
12322012-09-18 Thomas Quinot <quinot@adacore.com>
1233
1234 * c.opt (-fada-spec-parent): Define new command line switch.
1235 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
1236 is specified, generate binding spec as a child of the specified unit.
1237
0ccb505d
PC
12382012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
1239 Manuel López-Ibáñez <manu@gcc.gnu.org>
1240
1241 PR c++/53210
1242 * c.opt ([Winit-self]): Enabled by -Wall in C++.
1243
c583af79
AC
12442012-08-23 Arnaud Charlet <charlet@adacore.com>
1245
1246 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
1247 for pointers, and add missing Convention C pragma.
1248 (print_ada_struct_decl): Add missing aliased keyword.
1249 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
1250
1a4049e7
JJ
12512012-08-17 Jakub Jelinek <jakub@redhat.com>
1252
1253 * c-common.c (sizeof_pointer_memaccess_warning): New function.
1254 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
1255 * c-opts.c (c_common_handle_option): Enable it for -Wall.
1256 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
1257 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
1258
70b5e7dc
RG
12592012-08-10 Richard Guenther <rguenther@suse.de>
1260
1261 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
1262
f8923f7e
SB
12632012-08-07 Steven Bosscher <steven@gcc.gnu.org>
1264
1265 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
1266 instead of separate pp_newline and pp_flush.
1267 (print_c_tree): Likewise.
1268
e45abe1f
RH
12692012-07-26 Richard Henderson <rth@redhat.com>
1270
1271 * c-common.c (handle_hot_attribute): Allow labels.
1272 (handle_cold_attribute): Likewise.
1273
332f1d24
JJ
12742012-07-20 Jakub Jelinek <jakub@redhat.com>
1275
1276 PR c++/28656
1277 * c-common.c (check_function_nonnull): Handle multiple nonnull
1278 attributes properly.
1279
7ee2468b
SB
12802012-07-16 Steven Bosscher <steven@gcc.gnu.org>
1281
1282 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
1283 * c-ada-spec.c: Likewise.
1284 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
1285
ee7b28eb
SB
12862012-07-14 Steven Bosscher <steven@gcc.gnu.org>
1287
1288 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
1289 Remove code conditional on it.
1290
6bdf3519
SB
12912012-07-11 Steven Bosscher <steven@gcc.gnu.org>
1292
1293 * c-gimplify.c: Do not include basic-block.h.
1294 * c-common.c: Do not include linfuncs.h.
1295
532aafad
SB
12962012-07-08 Steven Bosscher <steven@gcc.gnu.org>
1297
1298 * c-common.h: Include tree.h.
1299
8d0d1915
JM
13002012-07-02 Jason Merrill <jason@redhat.com>
1301
1302 PR c++/53524
1303 * c-common.c (get_priority): Call default_conversion.
1304
fbc873ad
UB
13052012-07-01 Uros Bizjak <ubizjak@gmail.com>
1306
1307 * c-pch.c (c_common_write_pch): Remove unused variables.
1308
d4a10d0a
SB
13092012-06-29 Steven Bosscher <steven@gcc.gnu.org>
1310
1311 * cppspec.c: Moved from gcc/ to here.
1312
6f3a2e23
KT
13132012-06-27 Kai Tietz <ktietz@redhat.com>
1314
1315 PR preprocessor/37215
1316 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
1317
8ca92d04
SB
13182012-06-21 Steven Bosscher <steven@gcc.gnu.org>
1319
1320 * c-common.h (c_common_print_pch_checksum): Remove.
1321 * c-pch.c: Do not include output.h.
1322 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
1323 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
1324 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
1325 (struct c_pch_header): Remove.
1326 (get_ident): Update gpch version.
1327 (pch_init): Do not print executable_checksum to asm_out_file.
1328 Do not fail if there is no asm_out_file to read back from. Set
1329 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
1330 (c_common_write_pch): Verify that nothing was written to asm_out_file
1331 since pch_init was called. Do not write a c_pch_header, and do not
1332 copy from asm_out_file to the PCH.
1333 (c_common_read_pch): Do not read a c_pch_header, and do not restore
1334 the content of asm_out_file from the PCH.
1335 (c_common_print_pch_checksum): Remove.
1336 * c-opts.c (c_common_init): Print out executable_checksum directly.
1337
70f42967
SB
13382012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1339
1340 * c-target.def (objc_declare_unresolved_class_reference,
1341 objc_declare_class_definition): Add new hooks.
1342
a8781821
SB
13432012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1344
1345 * c-lex.c: Do not include output.h.
1346 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
1347 Remove uses of ASM_OUTPUT_IDENT.
1348
9e1a8dd1
RR
13492012-06-15 Marc Glisse <marc.glisse@inria.fr>
1350
1351 PR c++/51033
1352 * c-common.h (c_build_vec_perm_expr): Move decl here.
1353 * c-common.c (c_build_vec_perm_expr): Move definition
1354 here.
1355
6f07a821
SB
13562012-06-06 Steven Bosscher <steven@gcc.gnu.org>
1357
1358 * c.opt (fconserve-space): Turn into a no-op.
1359
9faeb493 13602012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
1361
1362 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
1363 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
1364 both the start and end of the function.
1365
a4b7d13c
SB
13662012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1367
1368 * c-common.c: Do not include output.h.
1369 * c-pragma.c: Likewise.
1370
c265f413
SA
13712012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1372
1373 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
1374 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
1375 (lang_decl_name): Handle namespace decls.
1376
be7a421e
SB
13772012-05-31 Steven Bosscher <steven@gcc.gnu.org>
1378
1379 * c-ada-spec.c: Do not include output.h.
1380 * c-semantics.c: Likewise.
1381
65de6659
JM
13822012-05-29 Joseph Myers <joseph@codesourcery.com>
1383
1384 * c-common.c: Fix typo.
1385
ca5f4331
MM
13862012-05-29 Michael Matz <matz@suse.de>
1387
1388 * c-common.h (c_expand_decl): Remove prototype.
1389
4f7f7aca
MLI
13902012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1391
1392 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
1393 * c-opts.c (c_common_handle_option): Remove code handling
1394 warn_missing_braces.
1395
4a792f9b
PC
13962012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
1397
1398 PR c++/25137
1399 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
1400 -Wmissing_braces.
1401
650dc14a
DS
14022012-05-22 Dodji Seketeli <dodji@redhat.com>
1403
1404 PR c++/53322
1405 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
1406
9b095bf1
MLI
14072012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
1408
1409 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
1410 * c-opts.c (c_common_handle_option): Do not handle explicitly
1411 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
1412
0b2c4be5
DS
14132012-05-16 Dodji Seketeli <dodji@redhat.com>
1414
1415 PR preprocessor/7263
1416 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
1417 to cpp_classify_number. For diagnostics, use the precise location
1418 instead of the global input_location.
1419
a1bde5af
PC
14202012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1421
d02924ef 1422 PR c++/11856
a1bde5af
PC
1423 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
1424
d1ede5f4
BS
14252012-05-14 Bernd Schmidt <bernds@codesourcery.com>
1426
a1bde5af 1427 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 1428
f2bc201f
MLI
14292012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
1430
1431 PR 53063
1432 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
1433 Wreorder): Use LangEnabledBy.
1434 * c-opts.c (c_common_handle_option): Do not enable them
1435 explicitly. Call lang-specific generated functions.
1436 (c_common_post_options): Do not set them here.
1437
95744782
MLI
14382012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
1439
1440 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
1441 Wmissing-field-initializers,Wmissing-parameter-type,
1442 Wold-style-declaration,Woverride-init): Use EnabledBy.
1443 * c-opts.c (c_common_post_options): Do not set here explicitly.
1444
7d5a5747
MLI
14452012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1446
1447 PR 53063
1448 * c-opts.c (c_common_handle_option): Use handle_generated_option
1449 to enable sub-options.
1450
5a3c9cf2
PC
14512012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
1452
1453 PR c++/53158
1454 * c-common.c (warnings_for_convert_and_check): Use warning_at.
1455
3ac8781c
RG
14562012-05-10 Richard Guenther <rguenther@suse.de>
1457
1458 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
1459 adjust commentary about TYPE_IS_SIZETYPE types.
1460
1e537948
MLI
14612012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1462
1463 PR c++/53261
1464 * c-common.c (warn_logical_operator): Check that argument of
1465 integer_zerop is not NULL.
1466
f2c4a785
MLI
14672012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
1468
1469 PR c/43772
1470 * c-common.c (warn_logical_operator): Do not warn if either side
1471 is already true or false.
1472
50f305ca
MLI
14732012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1474
1475 PR c/51712
1476 * c-common.c (expr_original_type): New.
1477 (shorten_compare): Do not warn for enumeration types.
1478
0c3641b0
MLI
14792012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1480
1481 * c.opt (fpermissive): Add Var(flag_permissive).
1482
7edaa4d2
MG
14832012-04-30 Marc Glisse <marc.glisse@inria.fr>
1484
1485 PR c++/51033
1486 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
1487 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
1488
b9c8da34
DS
14892012-04-30 Dodji Seketeli <dodji@redhat.com>
1490
1491 Add -Wvarargs option
1492 * c.opt (Wvarargs): Define new option.
1493
e6c69da0
MLI
14942012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1495
1496 * c-common.c (check_function_arguments): Replace
1497 Wmissing-format-attribute with Wsuggest-attribute=format.
1498
90137d8f
MLI
14992012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1500
1501 * c.opt (Wsuggest-attribute=format): New. Alias of
1502 Wmissing-format-attribute.
1503 * c-format.c (decode_format_type): Replace
1504 Wmissing-format-attribute with Wsuggest-attribute=format.
1505 (check_function_format): Likewise.
1506
9faeb493 15072012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
1508
1509 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
1510 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
1511 * c.opt: Add Wliteral-suffix.
1512
c1771a20
MLI
15132012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1514
1515 PR c/44774
1516 * c.opt (Wpedantic): New.
1517 (pedantic): Alias Wpedantic.
1518 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
1519 (c_common_post_options): Likewise.
1520 (sanitize_cpp_opts): Likewise.
1521 * c-lex.c (interpret_float): Likewise.
1522 * c-format.c (check_format_types): Likewise.
1523 * c-common.c (pointer_int_sum): Likewise.
1524 (c_sizeof_or_alignof_type): Likewise.
1525 (c_add_case_label): Likewise.
1526 (c_do_switch_warnings): Likewise.
1527 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1528
04b391c1
JM
15292012-04-15 Jason Merrill <jason@redhat.com>
1530
1531 PR c++/52818
1532 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
1533 (C_STD_NAME): Distinguish between C++98 and C++11.
1534
ac868f29
EB
15352012-04-11 Eric Botcazou <ebotcazou@adacore.com>
1536
1537 PR target/52624
1538 * c-common.h (uint16_type_node): Rename into...
1539 (c_uint16_type_node): ...this.
1540 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
1541 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
1542
fd4116f4
MLI
15432012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
1544
1545 * c-common.c (warn_if_unused_value): Move definition to here.
1546 * c-common.h (warn_if_unused_value): Move declaration to here.
1547
573ac65e
WB
15482012-03-23 William Bader <williambader@hotmail.com>
1549
1550 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
1551
552b8185
JM
15522012-03-20 Jason Merrill <jason@redhat.com>
1553
1554 * c-common.h (enum cxx_dialect): Add cxx1y.
1555 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
1556 test.
1557 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1558 * c-opts.c (c_common_post_options): Likewise.
1559 (set_std_cxx1y): New.
1560 (c_common_handle_option): Call it.
1561 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
1562
04398fa8
PC
15632012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
1564
1565 PR c++/14710
1566 * c.opt ([Wuseless-cast]): Add.
1567
d2a12ae7
RG
15682012-03-16 Richard Guenther <rguenther@suse.de>
1569
1570 * c-pretty-print.c (pp_c_initializer_list): Adjust.
1571
a12bf402
MLI
15722012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1573
1574 PR c++/44783
1575 * c.opt (ftemplate-backtrace-limit) Add.
1576
5c30094f
RO
15772012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1578
1579 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
1580 handling.
1581 * c-pragma.c (handle_pragma_extern_prefix): Remove.
1582 (init_pragma): Don't register extern_prefix.
1583
21fa2faf
RG
15842012-03-12 Richard Guenther <rguenther@suse.de>
1585
1586 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
1587 (builtin_type_for_size): Likewise.
1588
e3793c6f
JJ
15892012-02-13 Jakub Jelinek <jakub@redhat.com>
1590
1591 PR c++/52215
1592 * c-common.c (sync_resolve_params): Don't decide whether to convert
1593 or not based on TYPE_SIZE comparison, convert whenever arg_type
1594 is unsigned INTEGER_TYPE.
1595
93286335
PC
15962012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
1597
1598 PR c/52118
1599 * c.opt ([Wunused-local-typedefs]): Fix description.
1600
7a421706
MS
16012012-01-24 Mike Stump <mikestump@comcast.net>
1602
1603 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
1604 exactly.
1605
ba9b1f11
RG
16062012-01-18 Richard Guenther <rguenther@suse.de>
1607
1608 * c-opts.c (c_common_post_options): Reset LTO flags if
1609 we are about to generate a PCH.
1610
465406be
PC
16112012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
1612
1613 PR c++/51777
1614 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
1615 use pp_unsigned_wide_integer.
1616
aee15221
RG
16172012-01-10 Richard Guenther <rguenther@suse.de>
1618
1619 PR middle-end/51806
1620 * c-opts.c (c_common_handle_option): Move -Werror handling
1621 to language independent code.
1622
5720c0dc
RG
16232012-01-05 Richard Guenther <rguenther@suse.de>
1624
1625 PR middle-end/51764
1626 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
1627 from common.opt.
1628
73ac190a
PC
16292011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
1630
1631 PR c++/51316
1632 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
1633 of array types with an unknown bound.
1634
48b0b196
JM
16352011-12-20 Joseph Myers <joseph@codesourcery.com>
1636
1637 * c-common.c (flag_isoc99): Update comment to refer to C11.
1638 (flag_isoc1x): Change to flag_isoc11.
1639 * c-common.h (flag_isoc99): Update comment to refer to C11.
1640 (flag_isoc1x): Change to flag_isoc11.
1641 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
1642 C11.
1643 * c-opts.c (set_std_c1x): Change to set_std_c11.
1644 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
1645 Call set_std_c11.
1646 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
1647 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
1648 * c.opt (std=c1x): Change to std=c11. Document as non-draft
1649 standard.
1650 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
1651 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
1652 (std=gnu1x): Make alias of std=gnu11.
1653
d58d6eb5
JM
16542011-12-19 Jason Merrill <jason@redhat.com>
1655
1656 PR c++/51228
1657 * c-common.c (handle_transparent_union_attribute): Check the first
1658 field if the type is complete.
1659
b3908fcc
JW
16602011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
1661
1662 PR libstdc++/51365
1663 * c-common.c (RID_IS_FINAL): Add.
1664 * c-common.h (RID_IS_FINAL): Add.
1665
fea3ca91
IS
16662011-11-30 Iain Sandoe <iains@gcc.gnu.org>
1667
1668 * c.opt (fgnu-runtime): Provide full description.
1669 (fnext-runtime): Likewise.
1670 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
1671
62bad7cd
AM
16722011-11-28 Andrew MacLeod <amacleod@redhat.com>
1673
1674 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
1675 predefines in one place. Add LOCK_FREE predefines.
1676 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
1677 new func.
1678
c466c4ff
AM
16792011-11-24 Andrew MacLeod <amacleod@redhat.com>
1680
1681 PR c/51256
9faeb493 1682 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 1683 conditions
9faeb493
UB
1684 (resolve_overloaded_atomic_exchange,
1685 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
1686 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
1687 error_mark_node for error conditions.
9faeb493 1688
a5952633
RG
16892011-11-08 Richard Guenther <rguenther@suse.de>
1690
1691 PR middle-end/51010
1692 c-family/
1693
0a35513e
AH
16942011-11-07 Richard Henderson <rth@redhat.com>
1695 Aldy Hernandez <aldyh@redhat.com>
1696 Torvald Riegel <triegel@redhat.com>
1697
1698 Merged from transactional-memory.
1699
1700 * c-common.c (handle_tm_wrap_attribute,
1701 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
1702 (struct c_common_reswords): Added __transaction* keywords.
1703 (struct c_common_attribute_table): Added transaction* and tm_regparm
1704 attributes.
1705 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
1706 masks.
1707 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
1708 find_tm_attribute): Declare.
1709
6d87092d
JM
17102011-11-07 Jason Merrill <jason@redhat.com>
1711
1712 PR c++/35688
1713 * c-common.c, c-common.h: Revert yesterday's changes.
1714
8e7860a1
JM
17152011-11-06 Jason Merrill <jason@redhat.com>
1716
1717 PR c++/35688
1718 * c-common.c (decl_has_visibility_attr): Split out from...
1719 (c_determine_visibility): ...here.
1720 * c-common.h: Declare it.
1721
d19fa6b5
JM
17222011-11-06 Joseph Myers <joseph@codesourcery.com>
1723
1724 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
1725 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
1726 type.
1727 (check_user_alignment): New. Split out of
1728 handle_aligned_attribute. Disallow integer constants with
1729 noninteger types. Conditionally allow zero.
1730 (handle_aligned_attribute): Use check_user_alignment.
1731 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
1732
86951993
AM
17332011-11-06 Andrew MacLeod <amacleod@redhat.com>
1734 Richard Henderson <rth@redhat.com>
1735
1736 Merged from cxx-mem-model.
1737
1738 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 1739 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
1740 parameters that are the same type size.
1741 (get_atomic_generic_size): New. Find size of generic
1742 atomic function parameters and do typechecking.
1743 (add_atomic_size_parameter): New. Insert size into parameter list.
1744 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
1745 either __atomic_exchange_n or external library call.
9faeb493 1746 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 1747 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 1748 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
1749 __atomic_load_n or an external library call.
1750 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
1751 __atomic_store_n or an external library call.
1752 (resolve_overloaded_builtin): Handle new __atomic builtins.
1753
cf9e9959
EB
17542011-11-04 Eric Botcazou <ebotcazou@adacore.com>
1755
1756 PR c++/50608
1757 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
1758 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
1759 <INDIRECT_REF>: Return the argument.
1760 <ARRAY_REF>: Remove special code for negative offset.
1761 Call fold_build_pointer_plus instead of size_binop.
1762 (fold_offsetof): Remove STOP_REF argument and adjust.
1763 * c-common.h (fold_offsetof_1): Declare.
1764 (fold_offsetof): Remove STOP_REF argument.
1765
25339f10
JM
17662011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
1767
1768 PR c++/50810
1769 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1770 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1771 Wnarrowing for C++0x and C++98.
1772 * c.opt ([Wnarrowing]): Update.
1773
89401152
PC
17742011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
1775
1776 PR c++/44277
1777 * c.opt: Add Wzero-as-null-pointer-constant.
1778
97e3ad20
JM
17792011-10-31 Jason Merrill <jason@redhat.com>
1780
15694fdd
JM
1781 * c.opt (-fdeduce-init-list): Off by default.
1782
97e3ad20
JM
1783 PR c++/50920
1784 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
1785 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
1786 and -Wc++11-compat.
1787 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
1788
fb9120e3
RAV
17892011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
1790
1791 PR c++/30066
1792 * c.opt (fvisibility-inlines-hidden): Description change.
1793
3ce4f9e4
ESR
17942011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
1795
1796 Implement C++11 user-defined literals.
1797 * c-common.c (build_userdef_literal): New.
1798 * c-common.def: New tree code.
1799 * c-common.h (tree_userdef_literal): New tree struct and accessors.
1800 * c-lex.c (interpret_float): Add suffix parm.
1801 (c_lex_with_flags): Build literal tokens.
1802
5f53c243
PC
18032011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1804
1805 PR c++/50841
1806 Revert:
1807 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1808
1809 PR c++/50810
1810 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1811 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1812 Wnarrowing for C++0x and C++98.
1813 * c.opt ([Wnarrowing]): Update.
1814
263734e1
PC
18152011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1816
1817 PR c++/50810
1818 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1819 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1820 Wnarrowing for C++0x and C++98.
1821 * c.opt ([Wnarrowing]): Update.
1822
d2e312d7
PC
18232011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
1824
1825 PR c++/45385
1826 * c-common.c (conversion_warning): Remove code looking for
1827 artificial operands.
1828
d17687f6
DS
18292011-10-18 Dodji Seketeli <dodji@redhat.com>
1830
1831 PR bootstrap/50760
1832 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 1833 !NO_IMPLICIT_EXTERN_C.
d17687f6 1834
fc8396e9
PC
18352011-10-17 Michael Spertus <mike_spertus@symantec.com>
1836
1837 * c-common.c (c_common_reswords): Add __bases,
1838 __direct_bases.
1839 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
1840
18412011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
1842
1843 PR c++/50757
1844 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
1845
847e697a
TT
18462011-10-15 Tom Tromey <tromey@redhat.com>
1847 Dodji Seketeli <dodji@redhat.com>
1848
1849 * c.opt (fdebug-cpp): New option.
1850 * c-opts.c (c_common_handle_option): Handle the option.
1851 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
1852 output stream in parameter. Factorized from ...
1853 (maybe_print_line): ... this. Dump location debug information when
1854 -fdebug-cpp is in effect.
1855 (print_line_1): New static function. Takes an output stream in
1856 parameter. Factorized from ...
1857 (print_line): ... here. Dump location information when -fdebug-cpp
1858 is in effect.
1859 (scan_translation_unit): Dump location information when
1860 -fdebug-cpp is in effect.
1861
92582b75
TT
18622011-10-15 Tom Tromey <tromey@redhat.com>
1863 Dodji Seketeli <dodji@redhat.com>
1864
1865 * c.opt (ftrack-macro-expansion): New option. Handle it with and
1866 without argument.
1867 * c-opts.c (c_common_handle_option)<case
1868 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
1869 cases. Handle -ftrack-macro-expansion with and without argument.
1870
46427374
TT
18712011-10-15 Tom Tromey <tromey@redhat.com>
1872 Dodji Seketeli <dodji@redhat.com>
1873
1874 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
1875 (print_line, cb_define, do_line_change): Adjust to avoid touching
1876 the internals of struct line_map. Use the public API instead.
1877 * c-pch.c (c_common_read_pch): Likewise.
1878 * c-lex.c (fe_file_change): Likewise.
1879
fc8396e9
PC
18802011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
1881
1882 PR c++/17212
1883 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
1884
18852011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
1886
1887 PR c++/33067
1888 * c-pretty-print.c (pp_c_floating_constant): Output
1889 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
1890
e79983f4
MM
18912011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1892
1893 * c-common.c (def_builtin_1): Delete old interface with two
1894 parallel arrays to hold standard builtin declarations, and replace
1895 it with a function based interface that can support creating
1896 builtins on the fly in the future. Change all uses, and poison
1897 the old names. Make sure 0 is not a legitimate builtin index.
1898 * c-omp.c (c_finish_omp_barrier): Ditto.
1899 (c_finish_omp_taskwait): Ditto.
1900 (c_finish_omp_flush): Ditto.
1901
6637388f
TG
19022011-10-11 Tristan Gingold <gingold@adacore.com>
1903
1904 * c.opt: (fallow-parameterless-variadic-functions): New.
1905
3797cb21
DS
19062011-09-08 Dodji Seketeli <dodji@redhat.com>
1907
1908 PR c++/33255 - Support -Wunused-local-typedefs warning
1909 * c-common.h (struct c_language_function::local_typedefs): New
1910 field.
9faeb493
UB
1911 (record_locally_defined_typedef, maybe_record_typedef_use)
1912 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 1913 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
1914 (maybe_record_typedef_use)
1915 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
1916 * c.opt: Declare new -Wunused-local-typedefs flag.
1917
693ddb1b
EB
19182011-09-06 Eric Botcazou <ebotcazou@adacore.com>
1919
1920 PR middle-end/50266
1921 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
1922 computations.
1923
830c740f
RG
19242011-09-05 Richard Guenther <rguenther@suse.de>
1925
1926 * c-common.c (complete_array_type): Use ssize_int (-1) instead
1927 of integer_minus_one_node for empty array upper bounds.
1928
892a371f
DS
19292011-08-28 Dodji Seketeli <dodji@redhat.com>
1930
1931 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
1932 it's the first time it's being called on this main TU.
1933
0e3fdb48
RB
19342011-08-24 Richard Guenther <rguenther@suse.de>
1935
1936 PR c/49396
1937 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
1938
19392011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
1940
1941 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
1942 defined in cpp_init_builtins and c_cpp_builtins.
1943
d4a83c10
JM
19442011-08-19 Joseph Myers <joseph@codesourcery.com>
1945
1946 * c-common.c (c_common_reswords): Add __builtin_complex.
1947 * c-common.h (RID_BUILTIN_COMPLEX): New.
1948
bbceee64
JM
19492011-08-18 Joseph Myers <joseph@codesourcery.com>
1950
1951 * c-common.c (c_common_reswords): Add _Noreturn.
1952 (keyword_is_function_specifier): Handle RID_NORETURN.
1953 * c-common.h (RID_NORETURN): New.
1954
0e3a99ae
AS
19552011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1956
1957 * c-common.c (unsafe_conversion_p): New function. Check if it is
1958 unsafe to convert an expression to the type.
1959 (conversion_warning): Adjust, use unsafe_conversion_p.
1960 * c-common.h (unsafe_conversion_p): New function declaration.
1961
20906c66
JJ
19622011-08-02 Jakub Jelinek <jakub@redhat.com>
1963
1964 * c-common.h (c_finish_omp_atomic): Adjust prototype.
1965 (c_finish_omp_taskyield): New prototype.
1966 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
1967 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
1968 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
1969 or RHS1 have side-effects, evaluate those too in the right spot,
1970 if it is a decl and LHS is also a decl, error out if they
1971 aren't the same.
1972 (c_finish_omp_taskyield): New function.
1973 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
1974 * c-pragma.c (omp_pragmas): Add taskyield.
1975 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
1976 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
1977 PRAGMA_OMP_CLAUSE_MERGEABLE.
1978
770e5a2e
DS
19792011-07-25 Dodji Seketeli <dodji@redhat.com>
1980
1981 * c-common.h (set_underlying_type): Remove parm name from
1982 declaration.
1983
1baae426
RG
19842011-07-25 Romain Geissler <romain.geissler@gmail.com>
1985
1986 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 1987
fcb21722
JM
19882011-07-22 Jason Merrill <jason@redhat.com>
1989
76f86d00
JM
1990 PR c++/49793
1991 * c.opt (Wnarrowing): New.
1992
3a636414
JM
1993 PR c++/30112
1994 * c-common.h: Declare c_linkage_bindings.
1995 * c-pragma.c (handle_pragma_redefine_extname): Use it.
1996
fcb21722
JM
1997 PR c++/49813
1998 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
1999 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
2000 as flag_isoc99 for 'restrict'.
2001 (pp_c_specifier_qualifier_list): Likewise for _Complex.
2002
02614448
ILT
20032011-07-21 Ian Lance Taylor <iant@google.com>
2004
2005 PR middle-end/49705
2006 * c-common.c (c_disable_warnings): New static function.
2007 (c_enable_warnings): New static function.
2008 (c_fully_fold_internal): Change local unused_p to bool. Call
2009 c_disable_warnings and c_enable_warnings rather than change
2010 c_inhibit_evaluation_warnings.
2011
34429675
JM
20122011-07-20 Jason Merrill <jason@redhat.com>
2013
2014 PR c++/6709 (DR 743)
2015 PR c++/42603 (DR 950)
2016 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
2017 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
2018 (CPP_DECLTYPE): New.
2019 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
2020
5d49b6a7
RG
20212011-07-19 Richard Guenther <rguenther@suse.de>
2022
2023 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
2024 * c-omp.c (c_finish_omp_for): Likewise.
2025
e84a58ff
EB
20262011-07-12 Eric Botcazou <ebotcazou@adacore.com>
2027
2028 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
2029 body on the next line.
2030
329af3c7
JM
20312011-07-08 Jason Merrill <jason@redhat.com>
2032
4063e61b
JM
2033 PR c++/45437
2034 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
2035
329af3c7
JM
2036 PR c++/49673
2037 * c-common.c (c_apply_type_quals_to_decl): Don't check
2038 TYPE_NEEDS_CONSTRUCTING.
2039
1a072294
RG
20402011-07-06 Richard Guenther <rguenther@suse.de>
2041
2042 * c-common.c (c_common_nodes_and_builtins):
2043 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
2044
fce5dddd
RG
20452011-07-05 Richard Guenther <rguenther@suse.de>
2046
2047 * c-common.c (c_common_nodes_and_builtins): Build all common
2048 tree nodes first.
2049
45d439ac
JJ
20502011-06-27 Jakub Jelinek <jakub@redhat.com>
2051
56300785
JJ
2052 * c-common.h (c_tree_chain_next): New static inline function.
2053
45d439ac
JJ
2054 * c-common.c (check_builtin_function_arguments): Handle
2055 BUILT_IN_ASSUME_ALIGNED.
2056
e0a8ecf2
AM
20572011-06-21 Andrew MacLeod <amacleod@redhat.com>
2058
2059 * c-common.c: Add sync_ or SYNC__ to builtin names.
2060 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
2061
20622011-06-20 Pierre Vittet <piervit@pvittet.com>
2063
2064 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
2065 handler.
2066 (gen_pragma_handler): New union.
2067 (internal_pragma_handler): New type.
2068 (c_register_pragma_with_data)
2069 (c_register_pragma_with_expansion_and_data): New functions.
2070
2071 * c-pragma.c (registered_pragmas, c_register_pragma_1)
2072 (c_register_pragma, c_register_pragma_with_expansion)
2073 (c_invoke_pragma_handler): Changed to work with
2074 internal_pragma_handler.
2075 (c_register_pragma_with_data)
2076 (c_register_pragma_with_expansion_and_data): New functions.
2077
677f3fa8
JM
20782011-06-14 Joseph Myers <joseph@codesourcery.com>
2079
2080 * c-common.c: Include common/common-target.h.
2081 (handle_section_attribute): Use
2082 targetm_common.have_named_sections.
2083 * c-cppbuiltin.c: Include common/common-target.h.
2084 (c_cpp_builtins): Use targetm_common.except_unwind_info.
2085
d7fc8c14
RG
20862011-06-10 Richard Guenther <rguenther@suse.de>
2087
2088 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
2089 to print a IDENTIFIER_NODE.
2090
10e48e39
RO
20912011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2092 Joseph Myers <joseph@codesourcery.com>
2093
2094 * c.opt (fbuilding-libgcc): New option.
2095 * c-cppbuiltin.c (c_cpp_builtins): Define
2096 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
2097
6976ae51
JM
20982011-06-07 Jason Merrill <jason@redhat.com>
2099
3ff60975
JM
2100 * c-common.c (max_tinst_depth): Lower default to 900.
2101
6976ae51
JM
2102 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
2103
009db074
RG
21042011-06-07 Richard Guenther <rguenther@suse.de>
2105
2106 * c-common.c (c_common_nodes_and_builtins): Do not set
2107 size_type_node or call set_sizetype.
2108
b4592b92
DS
21092011-06-07 Dodji Seketeli <dodji@redhat.com>
2110
2111 PR debug/49130
2112 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 2113 type when using pointer comparison to compare types.
b4592b92 2114
014ab419
JW
21152011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
2116
2117 * c.opt: Add -Wdelete-non-virtual-dtor.
2118 * c-opts.c (c_common_handle_option): Include it in -Wall.
2119
4f60111f
NF
21202011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
2121
2122 PR bootstrap/49190
2123
2124 Revert:
2125 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2126
2127 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2128 not tree_common.
2129
4cc4f2f4
JJ
21302011-05-27 Jakub Jelinek <jakub@redhat.com>
2131
2132 PR c++/49165
2133 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
2134 C++ don't call c_common_truthvalue_conversion on void type arms.
2135
38e01f9e
NF
21362011-05-27 Nathan Froyd <froydnj@codesourcery.com>
2137
2138 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
2139 (stmt_list_stack): Define.
2140 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
2141 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
2142
92e948a8
NF
21432011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2144
2145 * c-common.c (warning_candidate_p): Check for BLOCKs.
2146
a2fc3e63
NF
21472011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2148
2149 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2150 not tree_common.
2151
0957c029
JJ
21522011-05-25 Jakub Jelinek <jakub@redhat.com>
2153
2154 * c-common.c (def_fn_type): Remove extra va_end.
2155
828fb3ba
JM
21562011-05-23 Jason Merrill <jason@redhat.com>
2157
2158 PR c++/48106
2159 * c-common.c (c_common_get_narrower): New.
2160 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
2161
dde05067
NF
21622011-05-23 Nathan Froyd <froydnj@codesourcery.com>
2163
2164 * c-common.h (check_function_arguments): Tweak prototype of
2165 check_function_arguments.
2166 * c-common.c (check_function_arguments): Likewise. Adjust
2167 calls to check_function_nonnull, check_function_format, and
2168 check_function_sentinel.
2169 (check_function_sentinel): Take a FUNCTION_TYPE rather than
2170 separate attributes and typelist arguments. Use
2171 FOREACH_FUNCTION_ARGS to iterate over argument types.
2172
3c0d13bf
PC
21732011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
2174
2175 * c-common.c (c_common_reswords): Reorder.
2176 * c-common.h (rid): Likewise.
2177
8242dd04
NF
21782011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2179
2180 * c-common.c (def_fn_type): Don't call build_function_type, call
2181 build_function_type_array or build_varargs_function_type_array
2182 instead.
2183 (c_common_nodes_and_builtins): Likewise.
2184
3d528853
NF
21852011-05-05 Nathan Froyd <froydnj@codesourcery.com>
2186
2187 * c-common.c (c_add_case_label): Omit the loc argument to
2188 build_case_label.
2189 * c-common.h (build_case_label): Remove.
2190 * c-semantics.c (build_case_label): Remove.
2191
a04a722b
JM
21922011-05-05 Joseph Myers <joseph@codesourcery.com>
2193
2194 * c-objc.h (objc_start_method_definition): Update prototype.
2195 * stub-objc.c (objc_start_method_definition): Add extra parameter.
2196
e19a18d4
NF
21972011-05-04 Nathan Froyd <froydnj@codesourcery.com>
2198
2199 * c-common.c (check_main_parameter_types): Reindent. Don't use
2200 TYPE_ARG_TYPES directly.
2201 (handle_nonnull_attribute): Likewise.
2202 (sync_resolve_params): Likewise.
2203 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
2204 to check_format_string.
2205 (handle_format_attribute): Likewise.
2206 (check_format_string): Take a function type to examine instead of
2207 a type list. Use a function_arg_iterator to step through argument
2208 types.
2209
c62c040f
RG
22102011-05-04 Richard Guenther <rguenther@suse.de>
2211
2212 * c-common.c (fix_string_type): Use size_int for index type bounds.
2213 (start_fname_decls): Do not pass NULL to build_int_cst.
2214 (c_init_attributes): Likewise.
2215 * c-lex.c (c_lex_with_flags): Likewise.
2216
c12ff9d8
JM
22172011-04-27 Jason Merrill <jason@redhat.com>
2218
2219 * c-common.c (make_tree_vector_from_list): New.
2220 * c-common.h: Declare it.
2221
304dfbe3
RG
22222011-04-26 Richard Guenther <rguenther@suse.de>
2223
2224 PR preprocessor/48248
2225 * c-ppoutput.c (maybe_print_line): Always optimize newlines
2226 for output size with -P.
2227
3c0d13bf
PC
22282011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
2229
2230 * c-common.c (struct c_common_resword): Add __underlying_type.
2231 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2232
04695783
JM
22332011-04-20 Jim Meyering <meyering@redhat.com>
2234
2235 * c-format.c (init_dollar_format_checking): Remove useless
2236 if-before-free.
2237
0dc33c3c
NP
22382011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
2239
2240 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 2241 (objc_detect_field_duplicates): New.
0dc33c3c 2242 * stub-objc.c: Likewise.
3c0d13bf 2243
c59633d9
NP
22442011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2245
2246 * stub-objc.c (objc_declare_protocols): Renamed to
2247 objc_declare_protocol.
2248 * c-objc.h: Likewise.
3c0d13bf 2249
32dabdaf
NP
22502011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2251
2252 * stub-objc.c (objc_declare_class): Updated argument name.
2253
81f653d6
NF
22542011-04-12 Nathan Froyd <froydnj@codesourcery.com>
2255
2256 * c-common.h (c_common_init_ts): Declare.
2257 * c-common.c (c_common_init_ts): Define.
2258
eb345401
NP
22592011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
2260
2261 * c-objc.h (objc_build_message_expr): Updated prototype.
2262 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 2263
a358e188
MJ
22642011-04-12 Martin Jambor <mjambor@suse.cz>
2265
2266 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
2267 of cgraph_node.
2268
e6313a78
RG
22692011-04-11 Richard Guenther <rguenther@suse.de>
2270
2271 * c-common.c (complete_array_type): Build a range type of
2272 proper type.
2273
dcf0c47e
NF
22742011-04-08 Nathan Froyd <froydnj@codesourcery.com>
2275
2276 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
2277 (handle_type_generic_attribute): Likewise.
2278
1ee44b26
JM
22792011-04-07 Jason Merrill <jason@redhat.com>
2280
2281 PR c++/48450
2282 * c-common.c (c_common_truthvalue_conversion): Don't ignore
2283 conversion from C++0x scoped enum.
2284
acce4e77
JM
22852011-04-06 Joseph Myers <joseph@codesourcery.com>
2286
2287 * c-target-def.h: New file.
2288 * c-target.def: New file.
2289 * c-target.h: New file.
2290 * c-common.c (targetcm): Don't define here.
2291 * c-common.h (default_handle_c_option): Declare.
2292 * c-format.c: Include c-target.h instead of target.h.
2293 * c-opts.c: Include c-target.h instead of target.h. Explicitly
2294 include tm.h.
2295 (default_handle_c_option): Move from targhooks.c.
2296
e2eefb55
JJ
22972011-03-29 Jakub Jelinek <jakub@redhat.com>
2298
2299 PR preprocessor/48248
2300 * c-ppoutput.c (print): Add src_file field.
2301 (init_pp_output): Initialize it.
2302 (maybe_print_line): Don't optimize by adding up to 8 newlines
2303 if map->to_file and print.src_file are different file.
2304 (print_line): Update print.src_file.
2305
ba78087b
KT
23062011-03-25 Kai Tietz <ktietz@redhat.com>
2307
2308 * c-ada-spec.c (compare_comment): Use filename_cmp
2309 instead of strcmp for filename.
2310
0edf1bb2
JL
23112011-03-25 Jeff Law <law@redhat.com>
2312
2313 * c-family/c-common.c (def_fn_type): Add missing va_end.
2314
c7dc8804
JM
23152011-03-25 Jason Merrill <jason@redhat.com>
2316
2317 * c.opt: Add -std=c++03.
2318
d1d879b1
EB
23192011-03-22 Eric Botcazou <ebotcazou@adacore.com>
2320
2321 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
2322
62d784f7
KT
23232011-03-17 Kai Tietz
2324
2325 PR target/12171
5050afdf
KT
2326 * c-pretty-print.c (pp_c_specifier_qualifier_list):
2327 Display allowed attributes for function pointer types.
2328 (pp_c_attributes_display): New function to display
2329 attributes having affects_type_identity flag set to true.
2330 * c-pretty-print.h (pp_c_attributes_display): New prototype.
2331
62d784f7
KT
2332 * c-common.c (c_common_attribute_table):
2333 Add new element.
2334 (c_common_format_attribute_table): Likewise.
2335
82d37118
JM
23362011-03-18 Jason Merrill <jason@redhat.com>
2337
49a000c3
JM
2338 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
2339 * c-common.h: Don't declare it here.
2340 * c-common.c: Or define it here.
2341 * c-opts.c (c_common_handle_option): Or set it here.
2342
82d37118
JM
2343 PR c++/35315
2344 * c-common.c (handle_transparent_union_attribute): Don't
2345 make a duplicate type in C++.
2346
17bc631c
JM
23472011-03-15 Jason Merrill <jason@redhat.com>
2348
2349 * c-common.c (max_constexpr_depth): New.
2350 * c-common.h: Declare it.
2351 * c-opts.c (c_common_handle_option): Set it.
2352 * c.opt (fconstexpr-depth): New option.
2353
1b9b91a6
JM
23542011-03-11 Jason Merrill <jason@redhat.com>
2355
f231b5ff
JM
2356 * c-common.c (attribute_takes_identifier_p): Add missing const.
2357
1b9b91a6
JM
2358 PR c++/46803
2359 * c-common.c (attribute_takes_identifier_p): Assume that an
2360 unknown attribute takes an identifier.
2361
a19e4d44
NF
23622011-03-07 Nathan Froyd <froydnj@codesourcery.com>
2363
2364 PR c/47786
2365 * c-common.c (c_type_hash): Call list_length instead of iterating
2366 through DECL_CHAIN. Rename 'i' to 'n_elements'.
2367
982d62f6
JJ
23682011-02-19 Jakub Jelinek <jakub@redhat.com>
2369
2370 PR c/47809
2371 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
2372
0a256240
NP
23732011-02-17 Iain Sandoe <iains@gcc.gnu.org>
2374
2375 * c.opt (fobjc-abi-version=) New.
2376 (fobjc-nilcheck): New.
2377
ba9e6dd5
NF
23782011-02-03 Nathan Froyd <froydnj@codesourcery.com>
2379
2380 PR c++/46890
2381 * c-common.h (keyword_is_decl_specifier): Declare.
2382 * c-common.c (keyword_is_decl_specifier): Define.
2383 (keyword_is_function_specifier): New function.
2384
7273813a
JJ
23852011-01-26 Jakub Jelinek <jakub@redhat.com>
2386
2387 PR c/47473
2388 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
2389 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
2390 REAL_TYPE.
2391
908ef79b
AC
23922011-01-26 Arnaud Charlet <charlet@adacore.com>
2393
2394 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
2395
237e9384
JJ
23962011-01-26 Jakub Jelinek <jakub@redhat.com>
2397
2398 PR pch/47430
2399 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
2400 after init_c_lex if pch_file is set.
2401
47ea1edf
DK
24022011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
2403
d4dba752 2404 PR c++/43601
47ea1edf
DK
2405 * c.opt (-fkeep-inline-dllexport): New switch.
2406
2aa9c6ae
RG
24072011-01-12 Richard Guenther <rguenther@suse.de>
2408
2409 PR middle-end/32511
2410 * c-common.c (handle_weak_attribute): Warn instead of error
2411 on declaring an inline function weak.
2412
7bd11157
TT
24132011-01-05 Tom Tromey <tromey@redhat.com>
2414
2415 * c-common.h (lvalue_error): Update.
2416 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
2417 not error.
2418
0e66e494 24192010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 2420
b4f588c4
NP
2421 PR objc/47075
2422 * c-objc.h (objc_finish_message_expr): Added argument to
2423 prototype.
2424
f4da8dce
NF
24252010-12-22 Nathan Froyd <froydnj@codesourcery.com>
2426
2427 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
2428 Use prototype_p.
2429
46270f14
NP
24302010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
2431
2432 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 2433 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 2434
4816c593
NF
24352010-12-10 Nathan Froyd <froydnj@codesourcery.com>
2436
2437 * c-common.h (readonly_error): Declare.
2438 * c-common.c (readonly_error): Define.
2439
7a6daeb0
NF
24402010-12-09 Nathan Froyd <froydnj@codesourcery.com>
2441
2442 * c-common.h (invalid_indirection_error): Declare.
2443 * c-common.c (invalid_indirection_error): Define.
2444
892f6119
RG
24452010-12-03 Richard Guenther <rguenther@suse.de>
2446
2447 PR c/46745
2448 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
2449 (pp_c_unary_expression): Likewise.
2450 (pp_c_expression): Likewise.
2451
6c39e757
NP
24522010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
2453
2454 * c-common.h (objc_finish_function): New.
2455 (objc_non_volatilized_type): Removed.
2456 (objc_type_quals_match): Removed.
2457 * stub-objc.c (objc_finish_function): New.
2458 (objc_non_volatilized_type): Removed.
2459 (objc_type_quals_match): Removed.
9faeb493 2460
7c475d11
JM
24612010-11-30 Joseph Myers <joseph@codesourcery.com>
2462
2463 * c-common.h (parse_optimize_options): Declare.
2464 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
2465 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
2466
71f3e391
JM
24672010-11-29 Joseph Myers <joseph@codesourcery.com>
2468
2469 * c-opts.c (check_deps_environment_vars): Use getenv instead of
2470 GET_ENVIRONMENT.
2471 * c-pch.c (O_BINARY): Don't define here.
2472 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
2473
d5fabb58
JM
24742010-11-25 Joseph Myers <joseph@codesourcery.com>
2475
2476 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
2477 targetm.except_unwind_info.
2478
299404a1
JM
24792010-11-23 Joseph Myers <joseph@codesourcery.com>
2480
2481 * c-opts.c (c_common_handle_option): Pass location to
2482 set_struct_debug_option.
2483
c98cd5bf
JM
24842010-11-23 Joseph Myers <joseph@codesourcery.com>
2485
2486 * c-common.c (visibility_options): Move from ../opts.c.
2487 * c-common.h (struct visibility_flags, visibility_options):
2488 Declare here.
2489 * c-opts.c (finish_options): Rename to c_finish_options.
2490 (c_common_init): Update call to finish_options.
2491
a9546771
NP
24922010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
2493
2494 PR objc/34033
2495 * c-lex.c (lex_string): Check that each string in an Objective-C
2496 string concat sequence starts with either one or zero '@', and
2497 that there are no spurious '@' signs at the end.
2498
24a57808
JM
24992010-11-20 Joseph Myers <joseph@codesourcery.com>
2500
2501 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
2502 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
2503 HANDLE_PRAGMA_VISIBILITY.
2504 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
2505 HANDLE_PRAGMA_VISIBILITY): Don't define.
2506 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
2507
a9aa2c3a
NF
25082010-11-20 Nathan Froyd <froydnj@codesourcery.com>
2509
2510 PR c++/16189
2511 PR c++/36888
2512 PR c++/45331
2513 * c-common.h (keyword_begins_type_specifier): Declare.
2514 (keyword_is_storage_class_specifier): Declare.
2515 (keyword_is_type_qualifier): Declare.
2516 * c-common.c (keyword_begins_type_specifier): New function.
2517 (keyword_is_storage_class_specifier): New function.
2518 (keyword_is_type_qualifier): Declare.
2519
5386338c
JM
25202010-11-19 Joseph Myers <joseph@codesourcery.com>
2521
2522 PR c/46547
2523 * c-common.c (in_late_binary_op): Define.
2524 (c_common_truthvalue_conversion): Check in_late_binary_op before
2525 calling c_save_expr.
2526 * c-common.h (in_late_binary_op): Declare.
2527
69ccdddb
JM
25282010-11-19 Joseph Myers <joseph@codesourcery.com>
2529
2530 * c-opts.c (c_common_handle_option): Update calls to
2531 set_struct_debug_option.
2532
6b192a09
NP
25332010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
2534
2535 * c-common.h (objc_declare_protocols): Added additional argument.
2536 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 2537
fb52b50a
NF
25382010-11-18 Nathan Froyd <froydnj@codesourcery.com>
2539
2540 PR c/33193
2541 * c-common.h (build_real_imag_expr): Declare.
2542 * c-semantics.c (build_real_imag_expr): Define.
2543
b37421c6
JM
25442010-11-17 Joseph Myers <joseph@codesourcery.com>
2545
2546 * c-opts.c (c_common_parse_file): Take no arguments.
2547 * c-common.h (c_common_parse_file): Update prototype.
2548
07078664
JJ
25492010-11-16 Jakub Jelinek <jakub@redhat.com>
2550
2551 PR c++/46401
2552 * c-common.c (warning_candidate_p): Don't track non-const calls
2553 or STRING_CSTs.
2554
c6a13190
ILT
25552010-11-15 Ian Lance Taylor <iant@google.com>
2556
2557 * c-lex.c (init_c_lex): Set macro debug callbacks if
2558 flag_dump_go_spec is set.
2559
925e8657
NP
25602010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
2561
2562 * c-common.h (objc_build_incr_expr_for_property_ref): New.
2563 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
2564
bb0a9581
NF
25652010-11-15 Nathan Froyd <froydnj@codesourcery.com>
2566
2567 PR preprocessor/45038
2568 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
2569 dialects.
2570
c5fa0890
JM
25712010-11-12 Joseph Myers <joseph@codesourcery.com>
2572
2573 * c-common.h (c_family_lang_mask): Declare.
2574 * c-opts.c (c_family_lang_mask): Make extern.
2575 * c-pragma.c (handle_pragma_diagnostic): Use
2576 control_warning_option.
2577
a4d8c676
JM
25782010-11-12 Joseph Myers <joseph@codesourcery.com>
2579
2580 * c-common.c (parse_optimize_options): Update call to
2581 decode_options.
2582 * c-common.h (c_common_handle_option): Update prototype.
2583 * c-opts.c (c_common_handle_option): Take location_t parameter and
2584 pass it to other functions.
2585
f954bd2c
JM
25862010-11-11 Joseph Myers <joseph@codesourcery.com>
2587
2588 * c-opts.c (warning_as_error_callback): Remove.
2589 (c_common_initialize_diagnostics): Don't call
2590 register_warning_as_error_callback.
2591 (c_common_handle_option): Handle -Werror=normalized= here.
2592
d8a07487
JM
25932010-11-10 Joseph Myers <joseph@codesourcery.com>
2594
2595 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
2596 in diagnostic.
2597 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
2598 letter.
2599 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
2600 Remove trailing '.' from diagnostics.
2601 * c.opt (Wwrite-strings_: Avoid '`' in help text.
2602
d5478783
JM
26032010-11-10 Joseph Myers <joseph@codesourcery.com>
2604
2605 * c-common.c (parse_optimize_options): Pass global_dc to
2606 decode_options.
2607 * c-opts.c (c_common_handle_option): Pass &global_options to
2608 set_Wstrict_aliasing.
2609 * c.opt (v): Don't mark Common or document here.
2610
91ebb981
IS
26112010-11-06 Iain Sandoe <iains@gcc.gnu.org>
2612
2613 PR target/44981
2614 * c-format.c (format_type): New type gcc_objc_string_format_type.
2615 (valid_stringptr_type_p): New.
2616 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 2617 (check_format_string): Pass expected type, use
91ebb981
IS
2618 valid_stringptr_type_p (), check that the format string types are
2619 consistent with the format specification.
2620 (decode_format_attr): Warn if NSString is used outside objective-c.
2621 (format_types_orig): Add NSString.
2622 (format_name): New.
2623 (format_flags): New.
2624 (check_format_arg): Handle format strings requiring an external parser.
2625 first_target_format_type: New variable.
2626 (handle_format_attribute): Set up first_target_format_type, pass the
2627 expected format arg string type to check_format_string().
2628 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
2629 * stub-objc.c (objc_string_ref_type_p): New.
2630 (objc_check_format_arg): New.
2631
bede2adc
NP
26322010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
2633
9faeb493 2634 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
2635 * c-common.h (objc_build_class_component_ref): New.
2636 * stub-objc.c (objc_build_class_component_ref): New.
2637
9a179d01
NP
26382010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2639
2640 * c.opt (Wproperty-assign-default): New option.
2641
22d8d616
NP
26422010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2643
2644 Implemented -fobjc-std=objc1 flag.
2645 * c.opt (fobjc-std=objc1): New option.
2646
2debdb4f
NP
26472010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
2648
2649 Implemented format and noreturn attributes for Objective-C methods.
2650 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
2651 attribute for Objective-C methods.
2652
ec52b111
JM
26532010-10-31 Jason Merrill <jason@redhat.com>
2654
2655 * c-common.c (conversion_warning, warn_for_collisions_1): Use
2656 EXPR_LOC_OR_HERE.
2657
46a88c12
NP
26582010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
2659
2660 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
2661 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
2662 (objc_add_property_declaration): Removed arguments for copies and
2663 ivar.
2664 (objc_build_getter_call): Renamed to
2665 objc_maybe_build_component_ref.
2666 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2667 (objc_is_property_ref): New.
2668 * c-common.c (c_common_reswords): Removed copies and ivar.
2669 * stub-objc.c (objc_add_property_declaration): Removed arguments
2670 for copies and ivar.
2671 (objc_build_getter_call): Renamed to
2672 objc_maybe_build_component_ref.
2673 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2674 (objc_is_property_ref): New.
9faeb493 2675
1e4bf85b
AC
26762010-10-29 Arnaud Charlet <charlet@adacore.com>
2677 Matthew Gingell <gingell@adacore.com>
2678
2679 * c-ada-spec.c (separate_class_package): New function.
2680 (pp_ada_tree_identifier): Prefix references to C++ classes with the
2681 name of their enclosing package.
2682 (print_ada_declaration): Use separate_class_package.
2683
81f0bab2
JM
26842010-10-27 Jason Merrill <jason@redhat.com>
2685
2b08f2c5
JM
2686 * c-common.c (c_common_reswords): Add __is_literal_type.
2687 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
2688
81f0bab2
JM
2689 * c-common.c (check_case_value): Remove special C++ code.
2690
200290f2
NP
26912010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2692
2693 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
2694 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
2695 and RID_LAST_PATTR.
2696 (objc_add_property_declaration): Added additional arguments.
2697 (objc_property_attribute_kind): Removed.
2698 (objc_set_property_attr): Removed.
2699 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
2700 copy and nonatomic.
2701 * stub-objc.c (objc_add_property_declaration): Added additional
2702 arguments.
2703 (objc_set_property_attr): Removed.
9faeb493 2704
f614132b
NP
27052010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2706
2707 * c-common.h (objc_add_property_variable): Renamed to
2708 objc_add_property_declaration. Added location argument.
2709 * stub-objc.c (objc_add_property_variable): Same change.
2710
b8a18805
NP
27112010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
2712
2713 * c-common.h (objc_maybe_printable_name): New.
2714 * stub-objc.c (objc_maybe_printable_name): New.
2715
30cd1c5d
AS
27162010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2717 Andrew Pinski <pinskia@gmail.com>
2718
2719 * c-common.h (c_common_mark_addressable_vec): Declare.
2720 * c-common.c (c_common_mark_addressable_vec): New function.
2721
249a82c4
NP
27222010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2723
2724 * c-common.h (objc_set_method_type): Removed.
2725 (objc_add_method_declaration): Added boolean argument.
2726 (objc_start_method_definition): Same change.
2727 (objc_build_method_signature): Same change.
2728 * stub-objc.c (objc_set_method_type): Removed.
2729 (objc_add_method_declaration): Added boolean argument.
2730 (objc_start_method_definition): Same change.
2731 (objc_build_method_signature): Same change.
2732
977e30bc
NP
27332010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2734
2735 * c-common.h (finish_file): Removed.
2736 (objc_write_global_declarations): New.
2737 * c-opts.c (c_common_parse_file): Do not call finish_file.
2738 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 2739
da57d1b9
NP
27402010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2741
2742 Implemented parsing @synthesize and @dynamic for
2743 Objective-C/Objective-C++.
2744 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
2745 (objc_add_synthesize_declaration): New.
2746 (objc_add_dynamic_declaration): New.
2747 * c-common.c (c_common_reswords): Add synthesize and dynamic.
2748 * stub-objc.c (objc_add_synthesize_declaration): New.
2749 (objc_add_dynamic_declaration): New.
9faeb493 2750
0069111f
MM
27512010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
2752
2753 PR target/46041
2754 * c-cppbuiltin.c (mode_has_fma): Move function here from
2755 builtins.c. Don't use the fma optab, instead just use the
2756 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
2757 using -save-temps.
2758
e426b47b
NP
27592010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2760
2761 Merge from 'apple/trunk' branch on FSF servers.
0069111f 2762
e426b47b
NP
2763 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
2764
9faeb493 2765 Radar 4330422
e426b47b
NP
2766 * c-common.h (objc_non_volatilized_type): New declaration
2767 * stub-objc.c (objc_non_volatilized_type): New stub.
2768
90fbfdc3
NP
27692010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
2770
e426b47b 2771 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
2772
2773 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
2774
9faeb493 2775 Radar 4133425
90fbfdc3 2776 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 2777 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 2778
c37d8c30
IS
27792010-10-17 Iain Sandoe <iains@gcc.gnu.org>
2780
2781 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
2782 * c-common.h (enum rid): Add RID_AT_PACKAGE.
2783 (objc_ivar_visibility_kind): New enum.
2784 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 2785 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
2786 visibility enum.
2787
1b1562a5
MM
27882010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2789
2790 * c-cppbuiltin.c (builtin_define_float_constants): Emit
2791 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
2792 has the appropriate fma builtins.
2793 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
2794
668ea4b1
IS
27952010-10-14 Iain Sandoe <iains@gcc.gnu.org>
2796
1b1562a5 2797 merge from FSF apple 'trunk' branch.
668ea4b1 2798 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 2799
668ea4b1
IS
2800 Radars 4436866, 4505126, 4506903, 4517826
2801 * c-common.c (c_common_resword): Define @property and its attributes.
2802 * c-common.h: Define property attribute enum entries.
2803 (OBJC_IS_PATTR_KEYWORD): New.
2804 (objc_property_attribute_kind): New enum.
2805 Declare objc_set_property_attr (), objc_add_property_variable (),
2806 objc_build_getter_call () and objc_build_setter_call ().
2807 * stub-objc.c (objc_set_property_attr): New stub.
2808 (objc_add_property_variable): Likewise.
2809 (objc_build_getter_call): Likewise.
2810 (objc_build_setter_call) Likewise.
1b1562a5 2811
a1178b30
IS
28122010-10-13 Iain Sandoe <iains@gcc.gnu.org>
2813
1b1562a5 2814 merge from FSF apple 'trunk' branch.
a1178b30
IS
2815 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
2816
2817 Radar 3803157 (method attributes)
2818 * c-common.c (handle_deprecated_attribute): Recognize
2819 objc methods as valid declarations.
2820 * c-common.h: Declare objc_method_decl ().
1b1562a5 2821 * stub-objc.c (objc_method_decl): New stub.
a1178b30 2822
a75bfaa6
JM
28232010-10-08 Joseph Myers <joseph@codesourcery.com>
2824
2825 * c-common.c (parse_optimize_options): Call
2826 decode_cmdline_options_to_array_default_mask before
2827 decode_options. Update arguments to decode_options.
2828 * c-common.h (c_common_init_options_struct): Declare.
2829 * c-opts.c (c_common_init_options_struct): New. Split out from
2830 c_common_init_options.
2831
f05b9d93
NP
28322010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
2833
2834 Implemented fast enumeration for Objective-C.
2835 * c-common.h (objc_finish_foreach_loop): New.
2836 * stub-objc.c (objc_finish_foreach_loop): New.
2837
1ebe4b4f
JM
28382010-10-05 Joseph Myers <joseph@codesourcery.com>
2839
2840 * c-common.h (struct diagnostic_context): Don't declare here.
2841 (c_common_initialize_diagnostics): Declare using
2842 diagnostic_context typedef.
2843 * c-opts.c (c_common_handle_option): Pass global_dc to
2844 handle_generated_option.
2845
d4d24ba4
JM
28462010-10-04 Joseph Myers <joseph@codesourcery.com>
2847
2848 * c-opts.c (c_common_handle_option): Pass &global_options_set to
2849 handle_generated_option.
2850
478a1c5b
ILT
28512010-10-03 Ian Lance Taylor <iant@google.com>
2852
2853 * c.opt (-fplan9-extensions): New option.
2854
82a1c2fe
FXC
28552010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2856
2857 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
2858 Remove.
2859 (c_cpp_builtins): Call functions from cppbuiltin.c instead
2860 of duplicating code.
2861
92902b1b
IS
28622010-09-30 Iain Sandoe <iains@gcc.gnu.org>
2863
2864 * c-common.c: Add two new entries for @optional
2865 and @required keywords.
2866
2867 merge from FSF 'apple/trunk' branch.
2868 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
2869
2870 Radar 4386773
2871 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
2872 objective-c keywords.
2873 (objc_set_method_opt): New declaration.
2874 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 2875
46625112
JM
28762010-09-30 Joseph Myers <joseph@codesourcery.com>
2877
2878 * c-common.c (handle_optimize_attribute): Pass &global_options to
2879 cl_optimization_save and cl_optimization_restore.
2880 * c-opts.c (c_common_handle_option): Pass &global_options to
2881 handle_generated_option.
2882 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
2883 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
2884 &global_options to cl_optimization_restore.
2885
49b91f05
NP
28862010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
2887
2888 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
2889 Objective-C/Objective-C++ keywords.
2890
13ed556f 28912010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 2892
9faeb493
UB
2893 Merge from 'apple/trunk' branch on FSF servers.
2894
a6341d57
NP
2895 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
2896
2897 Radar 4281748
2898 * c-common.h (objc_check_global_decl): New declaration.
2899 * stub-objc.c (objc_check_global_decl): New stub.
2900
f0036cca
JM
29012010-09-29 Joseph Myers <joseph@codesourcery.com>
2902
2903 * c.opt: Don't use VarExists.
2904
e3339d0f
JM
29052010-09-29 Joseph Myers <joseph@codesourcery.com>
2906
2907 * c-common.c (c_cpp_error): Update names of diagnostic_context
2908 members.
2909 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
2910 cl_optimization members.
2911 * c-opts.c (warning_as_error_callback, c_common_handle_option,
2912 sanitize_cpp_opts, finish_options): Update names of cpp_options
2913 members.
2914
1973201f
NP
29152010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
2916
2917 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
2918 (objc_is_reserved_word): Removed.
2919 * c-common.c: Updated comments.
2920 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
2921 objc_is_reserved_word.
2922 * stub-objc.c (objc_is_reserved_word): Removed.
2923
f7e71da5
IS
29242010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2925
9faeb493 2926 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
2927 include attributes.
2928 (objc_start_method_definition): Likewise.
2929 (objc_build_keyword_decl): Likewise.
2930 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
2931 (objc_start_method_definition): Likewise.
2932 (objc_build_keyword_decl): Likewise.
2933
c165dca7
IS
29342010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2935
2936 * c-common.h (objc_start_class_interface): Adjust prototype.
2937 (objc_start_category_interface): Likewise.
2938 (objc_start_protocol): Likewise.
2939 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
2940 (objc_start_class_interface): Likewise.
2941 (objc_start_category_interface): Likewise.
2942
7458026b
ILT
29432010-09-27 Ian Lance Taylor <iant@google.com>
2944
2945 * c-common.c (c_common_attribute_table): Add no_split_stack.
2946 (handle_no_split_stack_attribute): New static function.
2947
b581b85b
NP
29482010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
2949
9faeb493 2950 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
2951
2952 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
2953
9faeb493 2954 Radar 4229905
b581b85b
NP
2955 * c-common.h (objc_have_common_type): New declaration.
2956 * stub-objc.c (objc_have_common_type): New stub.
2957
2958 2005-06-22 Ziemowit Laski <zlaski@apple.com>
2959
2960 Radar 4154928
2961 * c-common.h (objc_common_type): New prototype.
9faeb493 2962 * stub-objc.c (objc_common_type): New stub.
b581b85b 2963
46a4da10
JH
29642010-09-24 Jan Hubicka <jh@suse.cz>
2965
2966 * c-common.c (handle_leaf_attribute): New function.
2967 (struct attribute_spec c_common_att): Add leaf.
2968
e200444e
JM
29692010-09-22 Joseph Myers <joseph@codesourcery.com>
2970
2971 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
2972 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
2973 -dump, -dump=, -imacros, -imacros=, -include, -include=,
2974 -include-barrier, -include-directory, -include-directory=,
2975 -include-directory-after, -include-directory-after=,
2976 -include-prefix, -include-prefix=, -include-with-prefix,
2977 -include-with-prefix=, -include-with-prefix-after,
2978 -include-with-prefix-after=, -include-with-prefix-before,
2979 -include-with-prefix-before=, -no-integrated-cpp,
2980 -no-line-commands, -no-standard-includes, -no-warnings, -output,
2981 -output=, -pedantic, -pedantic-errors, -preprocess,
2982 -print-missing-file-dependencies, -trace-includes, -traditional,
2983 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
2984 -user-dependencies, -verbose, -write-dependencies,
2985 -write-user-dependencies, no-integrated-cpp, traditional): New.
2986
29a80ea6
NP
29872010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2988
2989 PR objc/23710
ac1fc2fc
NP
2990 * c-common.h (objc_start_method_definition): Return bool instead
2991 of void.
2992 * stub-objc.c (objc_start_method_definition): Return bool instead
2993 of void.
2994
29952010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2996
2997 PR objc/25965
2998 * c-common.h (objc_get_interface_ivars): New declaration.
2999 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 3000
de621752
ILT
30012010-09-15 Ian Lance Taylor <iant@google.com>
3002
3003 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 3004 messages. Remove period at end of warning message.
de621752 3005
ba885ec5
NS
30062010-09-09 Nathan Sidwell <nathan@codesourcery.com>
3007
3008 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
3009 (handle_alias_attribute): ... here.
3010 (handle_ifunc_attribute): New.
3011
c5ee1358
MM
30122010-09-06 Mark Mitchell <mark@codesourcery.com>
3013
3014 * c-common.h (do_warn_double_promotion): Declare.
3015 * c-common.c (do_warn_double_promotion): Define.
3016
0a0b3574
MM
30172010-09-05 Mark Mitchell <mark@codesourcery.com>
3018
3019 * c.opt (Wdouble-promotion): New.
3020
d1779886
JM
30212010-09-02 Joseph Myers <joseph@codesourcery.com>
3022
3023 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
3024 fvtable-thunks, fxref): Mark no longer supported in help text.
3025
2d2bd949
JM
30262010-09-02 Joseph Myers <joseph@codesourcery.com>
3027
3028 * c.opt (Wimport, fall-virtual, falt-external-templates,
3029 fdefault-inline, fenum-int-equiv, fexternal-templates,
3030 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
3031 fname-mangling-version-, fnew-abi, fnonnull-objects,
3032 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
3033 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
3034 applicable.
3035 (fhandle-exceptions): Mark with Alias and Warn.
3036 * c-opts.c (c_common_handle_option): Don't handle options marked
3037 as ignored.
3038
5de8299c
JM
30392010-09-02 Joseph Myers <joseph@codesourcery.com>
3040
3041 * c.opt (Wcomments, Werror-implicit-function-declaration,
3042 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
3043 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
3044 aliases.
3045 * c-common.c (option_codes): Use OPT_Wcomment instead of
3046 OPT_Wcomments.
3047 * c-opts.c (warning_as_error_callback, c_common_handle_option):
3048 Don't handle options marked as aliases.
3049
0ceb0201
RG
30502010-08-25 Richard Guenther <rguenther@suse.de>
3051
3052 * c-common.c (c_common_get_alias_set): Remove special
3053 handling for pointers.
3054
ac47786e
NF
30552010-08-20 Nathan Froyd <froydnj@codesourcery.com>
3056
3057 * c-common.c: Use FOR_EACH_VEC_ELT.
3058 * c-gimplify.c: Likewise.
3059 * c-pragma.c: Likewise.
3060
c878765b
JM
30612010-08-16 Joseph Myers <joseph@codesourcery.com>
3062
3063 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
3064 RejectDriver.
3065 (MMDX): Change back to MMD. Mark NoDriverArg instead of
3066 RejectDriver.
3067 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
3068 instead of OPT_MDX and OPT_MMDX.
3069
603349bf
JM
30702010-08-16 Joseph Myers <joseph@codesourcery.com>
3071
3072 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
3073
644fa7ac
JM
30742010-08-12 Joseph Myers <joseph@codesourcery.com>
3075
3076 * c.opt (MD, MMD): Change to MDX and MMDX.
3077 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
3078
481e1176
JM
30792010-08-11 Joseph Myers <joseph@codesourcery.com>
3080
3081 * c-opts.c (c_common_handle_option): Call handle_generated_option
3082 instead of handle_option.
3083
ac8dc9f7
NF
30842010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3085
3086 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
3087 (maybe_apply_renaming_pragma): Delete unneeded declarations.
3088
4f8c876d
NF
30892010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3090
3091 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
3092 (pending_redefine_extname): Change type to a VEC.
3093 (add_to_renaming_pragma_list): Update for new type of
3094 pending_redefine_extname.
ac8dc9f7 3095 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 3096
3b0c690e
AC
30972010-08-04 Arnaud Charlet <charlet@adacore.com>
3098
3099 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
3100 visited.
3101 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
3102 decide whether a type has already been declared/seen.
3103 Do not go to the original type.
3104 (dump_nested_types): New parameter forward.
3105 Generate forward declaration if needed and mark type as visited.
3106 (print_ada_declaration): Call dump_nested_types if not already done.
3107 Mark types as visited.
3108
1890bccc
JM
31092010-08-03 Joseph Myers <joseph@codesourcery.com>
3110
3111 * c.opt (-print-pch-checksum): Remove option.
3112 * c-opts.c (c_common_handle_option): Don't handle
3113 OPT_print_pch_checksum.
3114
5f20c657
JM
31152010-07-27 Joseph Myers <joseph@codesourcery.com>
3116
3117 * c-common.h (c_common_handle_option): Update prototype and return
3118 value type.
3119 * c-opts.c (c_common_handle_option): Update prototype and return
3120 value type. Update calls to handle_option and
3121 enable_warning_as_error.
3122
f551f80c
JJ
31232010-07-27 Jakub Jelinek <jakub@redhat.com>
3124
3125 PR c/45079
3126 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
3127
61ff2bdc
JM
31282010-07-27 Joseph Myers <joseph@codesourcery.com>
3129
3130 * c-common.h (c_common_missing_argument): Remove.
3131 * c-opts.c (c_common_missing_argument): Remove.
3132 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
3133 idirafter, imacros, include, isysroot, isystem, iquote): Add
3134 MissingArgError.
3135 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
3136
7a9bf9a4
JM
31372010-07-27 Joseph Myers <joseph@codesourcery.com>
3138
3139 * c-common.h (c_common_option_lang_mask,
3140 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
3141 New.
3142 (c_common_init_options): Update prototype.
3143 * c-opts.c (c_common_option_lang_mask): New.
3144 (c_common_initialize_diagnostics): Split out of
3145 c_common_init_options.
3146 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
3147 New.
3148 (c_common_init_options): Update prototype. Use decoded options in
3149 search for -lang-asm.
3150
910ad8de
NF
31512010-07-15 Nathan Froyd <froydnj@codesourcery.com>
3152
3153 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
3154 * c-format.c: Likewise.
3155
718f9c0f
MLI
31562010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
3157
3158 * c-common.h: Include diagnostic-core.h. Error if already
3159 included.
3160 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
3161
4d451982
MLI
31622010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3163
3164 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
3165 Do not include expr.h
3166 (vector_mode_valid_p): Move here.
3167
119fe915
SB
31682010-06-21 DJ Delorie <dj@redhat.com>
3169
3170 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
3171 allow these pragmas anywhere.
3172
31732010-06-14 Jakub Jelinek <jakub@redhat.com>
3174
3175 PR bootstrap/44509
3176 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
3177 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
3178 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
3179 ggc_strdup instead of xstrdup.
3180
31812010-06-10 Jakub Jelinek <jakub@redhat.com>
3182
3183 * c-cppbuiltin.c: Include cpp-id-data.h.
3184 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
3185 (lazy_hex_fp_value): New function.
3186 (builtin_define_with_hex_fp_value): Provide definitions lazily.
3187
6662d794
MLI
31882010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3189
3190 * c-gimplify.c: Do not include tree-flow.h
3191
38f8b050
JR
31922010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
3193
3194 PR other/44034
3195 * c-common.c: Rename targetm member:
3196 targetm.enum_va_list -> targetm.enum_va_list_p
3197
9589f23e
AS
31982010-06-28 Anatoly Sokolov <aesok@post.ru>
3199
3200 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
3201
3b06d379
SB
32022010-06-28 Steven Bosscher <steven@gcc.gnu.org>
3203
3204 * c-cppbuiltin.c: Do not include except.h.
3205
d166d4c3
AK
32062010-06-24 Andi Kleen <ak@linux.intel.com>
3207
9faeb493
UB
3208 * c-common.c (warn_for_omitted_condop): New.
3209 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 3210
70cb8be6
JM
32112010-06-21 Joseph Myers <joseph@codesourcery.com>
3212
3213 * c.opt (lang-objc): Remove.
3214 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
3215
a4c97feb
JR
32162010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
3217
3218 * c-opts.c: Include "tm_p.h".
3219
6e2f1956
JM
32202010-06-20 Joseph Myers <joseph@codesourcery.com>
3221
3222 * c-common.c (parse_optimize_options): Update call to
3223 decode_options.
3224
bc87224e
NF
32252010-06-18 Nathan Froyd <froydnj@codesourcery.com>
3226
3227 * c-common.c (record_types_used_by_current_var_decl): Adjust for
3228 new type of types_used_by_cur_var_decl.
3229
b49cf425
JR
32302010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
3231
3232 PR bootstrap/44512
3233 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
3234 for C++ standard compliance.
3235
59f9c2ed
JM
32362010-06-16 Jason Merrill <jason@redhat.com>
3237
3238 * c.opt: Add -Wnoexcept.
3239
33766b66
RG
32402010-06-16 Richard Guenther <rguenther@suse.de>
3241
3242 PR c/44555
3243 * c-common.c (c_common_truthvalue_conversion): Remove
3244 premature and wrong optimization concering ADDR_EXPRs.
3245
eff7e30c
AC
32462010-06-15 Arnaud Charlet <charlet@adacore.com>
3247
3248 * c-ada-spec.c (dump_sloc): Remove column info.
3249 (is_simple_enum): New function.
3250 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
3251 enum types when relevant.
3252
6312e84d
MLI
32532010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3254
9faeb493 3255 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
3256 location.
3257
1cb42611
JM
32582010-06-10 Joseph Myers <joseph@codesourcery.com>
3259
3260 * c-opts.c (c_common_handle_option): Don't handle
3261 OPT_fshow_column.
3262
a9429e29
LB
32632010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3264
3265 * c-pragma.c (push_alignment): Use typed GC allocation.
3266 (handle_pragma_push_options): Likewise.
3267
3268 * c-common.c (parse_optimize_options): Likewise.
3269
3270 * c-common.h (struct sorted_fields_type): Add variable_size GTY
3271 option.
3272
5498f011
JM
32732010-06-07 Joseph Myers <joseph@codesourcery.com>
3274
3275 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
3276 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3277 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3278 flag_signed_bitfields, warn_strict_null_sentinel,
3279 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
3280 flag_gen_declaration, flag_no_gnu_keywords,
3281 flag_implement_inlines, flag_implicit_templates,
3282 flag_implicit_inline_templates, flag_optional_diags,
3283 flag_elide_constructors, flag_default_inline, flag_rtti,
3284 flag_conserve_space, flag_access_control, flag_check_new,
3285 flag_new_for_scope, flag_weak, flag_working_directory,
3286 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
3287 flag_enforce_eh_specs, flag_threadsafe_statics,
3288 flag_pretty_templates): Remove.
3289 * c-common.h (flag_preprocess_only, flag_nil_receivers,
3290 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
3291 flag_replace_objc_classes, flag_undef, flag_no_builtin,
3292 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3293 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3294 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
3295 flag_no_gnu_keywords, flag_implement_inlines,
3296 flag_implicit_templates, flag_implicit_inline_templates,
3297 flag_optional_diags, flag_elide_constructors, flag_default_inline,
3298 flag_rtti, flag_conserve_space, flag_access_control,
3299 flag_check_new, flag_new_for_scope, flag_weak,
3300 flag_working_directory, flag_use_cxa_atexit,
3301 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
3302 flag_threadsafe_statics, flag_pretty_templates,
3303 warn_strict_null_sentinel): Remove.
3304 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
3305 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
3306 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
3307 fimplicit-inline-templates, fimplicit-templates,
3308 flax-vector-conversions, fms-extensions, fnil-receivers,
3309 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
3310 frtti, fshort-double, fshort-enums, fshort-wchar,
3311 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
3312 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
3313 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
3314 gen-decls, undef): Use Var.
3315 (fdefault-inline, foptional-diags): Document as doing nothing.
3316 * c-opts.c (c_common_handle_option): Remove cases for options now
3317 using Var. Mark ignored options as such.
3318
39dabefd
SB
33192010-06-05 Steven Bosscher <steven@gcc.gnu.org>
3320
9faeb493 3321 * c-common.c: Moved to here from parent directory.
39dabefd
SB
3322 * c-common.def: Likewise.
3323 * c-common.h: Likewise.
3324 * c-cppbuiltin.c: Likewise.
3325 * c-dump.c: Likewise.
3326 * c-format.c: Likewise.
3327 * c-format.h : Likewise.
3328 * c-gimplify.c: Likewise.
3329 * c-lex.c: Likewise.
3330 * c-omp.c: Likewise.
3331 * c.opt: Likewise.
3332 * c-opts.c: Likewise.
3333 * c-pch.c: Likewise.
3334 * c-ppoutput.c: Likewise.
3335 * c-pragma.c: Likewise.
3336 * c-pragma.h: Likewise.
3337 * c-pretty-print.c: Likewise.
3338 * c-pretty-print.h: Likewise.
3339 * c-semantics.c: Likewise.
3340 * stub-objc.c: Likewise.
3341
3342 * c-common.c: Include gt-c-family-c-common.h.
3343 * c-pragma.c: Include gt-c-family-c-pragma.h.
3344\f
d1e082c2 3345Copyright (C) 2010-2013 Free Software Foundation, Inc.
39dabefd
SB
3346
3347Copying and distribution of this file, with or without modification,
3348are permitted in any medium without royalty provided the copyright
3349notice and this notice are preserved.
This page took 1.289558 seconds and 5 git commands to generate.