]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
re PR c++/58871 ([c++11] ICE with defaulted copy constructor in broken template class...
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
81e5eca8
MP
12014-01-31 Marek Polacek <polacek@redhat.com>
2
3 PR c/59963
4 * c-common.c (add_atomic_size_parameter): Pass vNULL to
5 build_function_call_vec.
6 (resolve_overloaded_builtin): Likewise.
7 * c-common.h (build_function_call_vec): Adjust declaration.
8
68fca595
MP
92014-01-30 Marek Polacek <polacek@redhat.com>
10
11 PR c/59940
12 * c-common.h (unsafe_conversion_p): Adjust declaration.
13 (warnings_for_convert_and_check): Likewise.
14 (convert_and_check): Likewise.
15 * c-common.c (unsafe_conversion_p): Add location parameter. Call
16 expansion_point_location_if_in_system_header on it.
17 (warnings_for_convert_and_check): Add location parameter. Call
18 expansion_point_location_if_in_system_header on it. Use it.
19 (convert_and_check): Add location parameter. Use it.
20 (conversion_warning): Likewise.
21 (c_add_case_label): Adjust convert_and_check calls.
22 (scalar_to_vector): Adjust unsafe_conversion_p calls.
23
b72271b9
BI
242014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
25
26 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
27 flag_cilkplus.
28 * c-pragma.c (init_pragma): Likewise.
29 * c.opt: Likewise.
30
393e8e8b
MP
312014-01-23 Marek Polacek <polacek@redhat.com>
32
33 PR c/59846
34 * c-common.c (shorten_compare): Add location_t parameter.
35 * c-common.h (shorten_binary_op): Adjust declaration.
36
f04dda30
MP
372014-01-23 Marek Polacek <polacek@redhat.com>
38
39 PR c/58346
40 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
41 * c-common.h: Declare it.
42
621955cb
EB
432014-01-20 Eric Botcazou <ebotcazou@adacore.com>
44
45 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
46 * c-ada-spec.c (dump_ads): Likewise.
47 (cpp_check): Likewise.
48 (dump_ada_specs): Likewise.
49
502014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
51
52 PR c++/49718
53 * c-common.c (handle_no_instrument_function_attribute): Allow
54 no_instrument_function attribute in class member
55 definition/declaration.
56
241f845a
JJ
572014-01-15 Jakub Jelinek <jakub@redhat.com>
58
59 PR c/58943
60 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
61 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
62 being COMPOUND_EXPR.
63 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
64 operand a SAVE_EXPR and second MODIFY_EXPR.
65
e83b8e2e
JJ
662014-01-09 Jakub Jelinek <jakub@redhat.com>
67
68 PR target/58115
69 * c-pch.c (c_common_write_pch): Call
70 prepare_target_option_nodes_for_pch.
71
23a5b65a
RS
722014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
73
74 Update copyright years
75
f9030485
RS
762014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
77
78 * array-notation-common.c, c-cilkplus.c: Use the standard form for
79 the copyright notice.
80
f2aa696b
EB
812013-12-28 Eric Botcazou <ebotcazou@adacore.com>
82
83 * c-ada-spec.c (print_constructor): New function.
84 (print_destructor): Retrieve the origin of the destructor.
85 (print_ada_declaration): Revamp handling of constructors/destructors.
86
1f26ac87
JM
872013-12-23 Stuart Hastings <stuart@apple.com>
88 Bill Maddox <maddox@google.com>
89 Jason Merrill <jason@redhat.com>
90
91 * c.opt: Add -fdeclone-ctor-dtor.
92 * c-opts.c (c_common_post_options): Default to on iff -Os.
93
41958c28
BI
942013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
95
96 * c-common.c (c_common_attribute_table): Added "cilk simd function"
97 attribute.
98 * c-pragma.h (enum pragma_cilk_clause): Remove.
99 (enum pragma_omp_clause): Added the following fields:
100 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
101 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
102 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
103 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
104 PRAGMA_CILK_CLAUSE_UNIFORM.
105
106
12893402
BI
1072013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
108
109 * cilk.c (cilk_outline): Made this function non-static.
110 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
111 (create_cilk_wrapper): Added a new parameter: a function pointer.
112 (c_install_body_w_frame_cleanup): Remove
113 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
114 * c-common.h (cilk_outline): New prototype.
115 (gimplify_cilk_spawn): Removed two parameters.
116 (cilk_install_body_with_frame_cleanup): New prototype.
117 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
118 CILK_SPAWN_STMT case.
119
085b42ed
BS
1202013-12-11 Bernd Schmidt <bernds@codesourcery.com>
121
2ce064c3
BS
122 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
123
085b42ed
BS
124 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
125 (int_array_type_node): Remove.
126 * c-common.c (c_common_nodes_and_builtins): Don't build it.
127
9e36c9ed
MP
1282013-12-05 Marek Polacek <polacek@redhat.com>
129
130 PR c/52023
131 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
132 [ADJUST_FIELD_ALIGN].
133
296674db
JM
1342013-12-04 Joseph Myers <joseph@codesourcery.com>
135
136 PR c/52023
137 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
138 and check field alignment if set.
139 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
140 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
141
31e071ae
MP
1422013-12-04 Jakub Jelinek <jakub@redhat.com>
143 Marek Polacek <polacek@redhat.com>
144
145 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
146 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
147
d7947e19
L
1482013-11-29 H.J. Lu <hongjiu.lu@intel.com>
149
150 PR c/59309
151 * cilk.c (gimplify_cilk_spawn): Properly handle function without
152 arguments.
153
fad7652e
JJ
1542013-11-29 Jakub Jelinek <jakub@redhat.com>
155
156 PR c/59280
157 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
158 goto invalid. If it is error_mark_node, don't issue further
159 diagnostics.
160
8b5e1202
SO
1612013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
162
163 * c.opt (Wopenmp-simd): New.
164
0a508bb6
JJ
1652013-11-22 Jakub Jelinek <jakub@redhat.com>
166
167 * c-ubsan.h (ubsan_instrument_return): New prototype.
168 * c-ubsan.c (ubsan_instrument_return): New function.
169
2fb9a547
AM
1702013-11-22 Andrew MacLeod <amacleod@redhat.com>
171
172 * c-common.c: Add required include files from gimple.h.
173 * c-gimplify.c: Likewise
174 * cilk.c: Likewise
175
8400e75e
DM
1762013-11-22 David Malcolm <dmalcolm@redhat.com>
177
178 * c-common.c (unsafe_conversion_p): Remove use of
179 EXPR_LOC_OR_HERE macro.
180 (conversion_warning): Likewise.
181 (warnings_for_convert_and_check): Likewise.
182 (warn_for_collisions_1): Likewise.
183 (shorten_compare): Likewise, and remove use of in_system_header
184 macro, using the location from the former.
185 * c-lex.c (dump_one_header): Remove use of input_filename macro.
186 (cb_def_pragma): Remove use of in_system_header macro.
187 (lex_string): Likewise.
188 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
189
eb1ce453
KZ
1902013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
191 Mike Stump <mikestump@comcast.net>
192 Richard Sandiford <rdsandiford@googlemail.com>
193
194 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
195 instead of TREE_INT_CST_LOW, in cases where there is a protecting
196 tree_fits_shwi_p or tree_fits_uhwi_p.
197 (dump_generic_ada_node): Likewise.
198 * c-format.c (check_format_arg): Likewise.
199 * c-pretty-print.c (pp_c_integer_constant): Likewise.
200
6b3b8c27
KZ
2012013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
202
203 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
204
49b0aa18
JC
2052013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
206
207 PR c/53001
208 * c-common.c (unsafe_conversion_p): Make this function
209 return an enumeration with more detail.
210 (conversion_warning): Use the new return type of
211 unsafe_conversion_p to separately warn either about conversions
212 that lower floating point number precision or about the other
213 kinds of conversions.
214 * c-common.h (enum conversion_safety): New enumeration.
215 (unsafe_conversion_p): switching return type to
216 conversion_safety enumeration.
217 * c.opt: Adding new warning -Wfloat-conversion and
218 enabling it with -Wconversion.
219
b826515a
BS
2202013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
221
222 * c-opts.c: Include plugin.h.
223 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
224
b9a55b13
MP
2252013-11-19 Marek Polacek <polacek@redhat.com>
226
227 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
228 call.
229 (ubsan_instrument_shift): Likewise.
230 (ubsan_instrument_vla): Likewise.
231
7d362f6c
RS
2322013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
233
234 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
235 cast to unsigned type.
236
386b1f1f
RS
2372013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
238
239 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
240 tree_low_cst.
241 (complete_array_type): Update comment to refer to tree_to_[su]hwi
242 rather than tree_low_cst.
243
ae7e9ddd
RS
2442013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
245
246 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
247 tree_to_uhwi throughout.
248
9439e9a1
RS
2492013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
250
251 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
252 tree_low_cst (..., 0) with tree_to_shwi throughout.
253
cc269bb6
RS
2542013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
255
256 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
257 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
258
9541ffee
RS
2592013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
260
261 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
262 host_integerp (..., 0) with tree_fits_shwi_p throughout.
263
c02065fc
AH
2642013-11-15 Aldy Hernandez <aldyh@redhat.com>
265
266 * c-cilkplus.c: New file.
267 * c-common.c (readonly_error): Add location argument.
268 * c-common.h (readonly_error): Same.
269 (c_finish_cilk_clauses): Protoize.
270 (c_check_cilk_loop): Same.
271 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
272 Do not fail on error_mark_node.
273 Abstract increment canonicalization to here...
274 (c_omp_for_incr_canonicalize_ptr): New.
275 c-pragma.c (init_pragma): Register "simd" pragma.
276 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
277 (enum pragma_cilk_clause): New.
278
9cc65f15
RS
2792013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
280
281 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
282 wchar_type and host_integerp checks.
283
18f429e2
AM
2842013-11-14 Andrew MacLeod <amacleod@redhat.com>
285
286 * c-common.c: Likewise.
287 * c-gimplify.c: Likewise.
288 * cilk.c: Likewise.
289
d8a2d370
DN
2902013-11-14 Diego Novillo <dnovillo@google.com>
291
292 * c-common.c: Include fold-const.h.
293 Include stor-layout.h.
294 Include calls.h.
295 Include stringpool.h.
296 Include attribs.h.
297 Include varasm.h.
298 Include trans-mem.h.
299 * c-cppbuiltin.c: Include stor-layout.h.
300 Include stringpool.h.
301 * c-format.c: Include stringpool.h.
302 * c-lex.c: Include stringpool.h.
303 Include stor-layout.h.
304 * c-pragma.c: Include stringpool.h.
305 Include attribs.h.
306 Include varasm.h.
307 Include gcc-symtab.h.
308 * c-pretty-print.c: Include stor-layout.h.
309 Include attribs.h.
310 * cilk.c: Include stringpool.h.
311 Include calls.h.
312
38b7bc7f
JM
3132013-11-13 Joseph Myers <joseph@codesourcery.com>
314
315 * c-common.h (enum rid): Add RID_AUTO_TYPE.
316 * c-common.c (c_common_reswords): Add __auto_type.
317 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
318
45b0be94
AM
3192013-11-12 Andrew MacLeod <amacleod@redhat.com>
320
18f429e2
AM
321 * c-common.c: Include gimplify.h.
322 * c-gimplify.c: Likewise.
323 * cilk.c: Likewise.
324 * c-omp.c: Include gimple-expr.h instead of gimple.h.
325 * c-ubsan.c: Don't include gimple.h.
45b0be94 326
582d9b50
JM
3272013-11-12 Joseph Myers <joseph@codesourcery.com>
328
329 * c-common.c (c_common_reswords): Add _Thread_local.
330
6b28e197
JM
3312013-11-09 Joseph Myers <joseph@codesourcery.com>
332
333 * c-common.c (atomic_size_supported_p): New function.
334 (resolve_overloaded_atomic_exchange)
335 (resolve_overloaded_atomic_compare_exchange)
336 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
337 Use it instead of comparing size with a local list of sizes.
338
267bac10
JM
3392013-11-07 Andrew MacLeod <amacleod@redhat.com>
340 Joseph Myers <joseph@codesourcery.com>
341
342 * c-common.h (enum rid): Add RID_ATOMIC.
343 * c-common.c (c_common_reswords): Add _Atomic.
344 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
345 (keyword_is_type_qualifier): Accept RID_ATOMIC.
346 * c-format.c (check_format_types): Check for extra _Atomic
347 qualifiers in format argument.
348 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
349 (pp_c_type_qualifier_list): Mention _Atomic in comment.
350
5157b91e
TB
3512013-11-06 Tobias Burnus <burnus@net-b.de>
352
353 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
354
6dbe0958
JM
3552013-11-06 Joseph Myers <joseph@codesourcery.com>
356
357 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
358 standards modes.
359 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
360 to mean lack of IEEE 754 support.
361
e8ff5196
TB
3622013-11-05 Tobias Burnus <burnus@net-b.de>
363
364 * c.opt (-Wdate-time): New option
365 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
366
254a0760
JM
3672013-11-05 Joseph Myers <joseph@codesourcery.com>
368
369 * c-cppbuiltin.c (cpp_iec_559_value): Test
370 flag_excess_precision_cmdline not flag_excess_precision.
371
6d7f7e0a
TB
3722013-11-05 Tobias Burnus <burnus@net-b.de>
373
374 * c.opt (fopenmp-simd): New option.
375 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
376 (omp_pragmas): ... this new struct.
377 (c_pp_lookup_pragma): Also walk omp_pragmas.
378 (init_pragma): Init pragmas for -fopenmp-simd.
379
55a7f02f
MP
3802013-11-04 Marek Polacek <polacek@redhat.com>
381
382 PR c++/58979
383 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
384
9193fb05
JM
3852013-11-04 Joseph Myers <joseph@codesourcery.com>
386
387 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
388 New functions.
389 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
390
94159ecf
EB
3912013-11-04 Eric Botcazou <ebotcazou@adacore.com>
392
393 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
394 (dump_ada_specs): Adjust prototype of second callback.
395 * c-ada-spec.c (cpp_check): New global variable.
396 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
397 (print_generic_ada_decl): Likewise.
398 (has_static_fields): Change return type to bool and add guard.
399 (has_nontrivial_methods): New predicate.
400 (is_tagged_type): Change return type to bool.
401 (separate_class_package): Call has_nontrivial_methods.
402 (pp_ada_tree_identifier): Minor tweaks.
403 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
404 (dump_ada_array_domains): Likewise.
405 (dump_ada_array_type): Likewise.
406 (dump_template_types): Remove cpp_check parameter and do not pass it to
407 dump_generic_ada_node.
408 (dump_ada_template): Likewise.
409 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
410 recursively.
411 (print_ada_methods): Change return type to integer. Remove cpp_check
412 parameter and do not pass it down.
413 (dump_nested_types): Remove cpp_check parameter and do not pass it to
414 dump_generic_ada_node.
415 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
416 accessing methods.
417 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
418 down. Use has_nontrivial_methods to recognize C++ classes. Use return
419 value of print_ada_methods.
420 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
421 Set cpp_check to it before invoking dump_ada_nodes.
422 (dump_ada_specs): Likewise.
423
b906f4ca
MP
4242013-11-03 Marek Polacek <polacek@redhat.com>
425
426 * c-ubsan.c: Don't include hash-table.h.
427 (ubsan_instrument_vla): New function.
428 * c-ubsan.h: Declare it.
429
5e20cdc9
DM
4302013-10-31 David Malcolm <dmalcolm@redhat.com>
431
432 Automated part of renaming of symtab_node_base to symtab_node.
433
434 Patch autogenerated by rename_symtab.py from
435 https://github.com/davidmalcolm/gcc-refactoring-scripts
436 revision 58bb219cc090b2f4516a9297d868c245495ee622
437
438 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
439 symtab_node_base to symtab_node.
440
7057e645
ESR
4412013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
442
443 Implement C++14 digit separators.
444 * c-lex.c (interpret_float): Remove digit separators from scratch string
445 before building real literal.
446
193ea7bc
JJ
4472013-10-30 Jakub Jelinek <jakub@redhat.com>
448
449 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
450
939b37da
BI
4512013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
452
453 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
454 fields.
455 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
456 enabled.
457 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
458 (insert_cilk_frame): New prototype.
459 (cilk_init_builtins): Likewise.
460 (gimplify_cilk_spawn): Likewise.
461 (c_cilk_install_body_w_frame_cleanup): Likewise.
462 (cilk_detect_spawn_and_unwrap): Likewise.
463 (cilk_set_spawn_marker): Likewise.
464 (build_cilk_sync): Likewise.
465 (build_cilk_spawn): Likewise.
466 * cilk.c: New file.
467
67348ccc
DM
4682013-10-29 David Malcolm <dmalcolm@redhat.com>
469
470 Patch autogenerated by refactor_symtab.py from
471 https://github.com/davidmalcolm/gcc-refactoring-scripts
472 revision 58bb219cc090b2f4516a9297d868c245495ee622
473
474 * c-gimplify.c (c_genericize): Update for conversion of symtab types
475 to a true class hierarchy.
476 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
477
d570872d
RS
4782013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
479
480 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
481
98906124
JL
4822013-10-26 Jeff Law <law@redhat.com>
483
484 * c-family/c-common.c (c_define_builtins): Remove mudflap support.
485 * c-family/c.opt: Ignore and warn for mudflap options.
486
d73749df 4872013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
488
489 PR other/33426
490 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
491 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
492
3f04b1bb
JM
4932013-10-23 Jason Merrill <jason@redhat.com>
494
495 * c-format.c (gcc_cxxdiag_char_table): Add %X.
496
acf0174b
JJ
4972013-10-11 Jakub Jelinek <jakub@redhat.com>
498
acd15a28
JJ
499 * c-common.h (omp_clause_mask::operator !=): New method.
500 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
501 instead of if (mask & something) tests everywhere.
502
acf0174b
JJ
503 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
504 201307 instead of 201107.
505 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
506 (c_common_attribute_table): Add "omp declare target" and
507 "omp declare simd" attributes.
508 (handle_omp_declare_target_attribute,
509 handle_omp_declare_simd_attribute): New functions.
510 * c-omp.c: Include c-pragma.h.
511 (c_finish_omp_taskgroup): New function.
512 (c_finish_omp_atomic): Add swapped argument, if true,
513 build the operation first with rhs, lhs arguments and use NOP_EXPR
514 build_modify_expr.
515 (c_finish_omp_for): Add code argument, pass it down to make_code.
516 (c_omp_split_clauses): New function.
517 (c_split_parallel_clauses): Removed.
518 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
519 c_omp_declare_simd_clauses_to_decls): New functions.
520 * c-common.h (omp_clause_mask): New type.
521 (OMP_CLAUSE_MASK_1): Define.
522 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
523 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
524 omp_clause_mask::operator |, omp_clause_mask::operator &,
525 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
526 omp_clause_mask::operator ==): New methods.
527 (enum c_omp_clause_split): New.
528 (c_finish_omp_taskgroup): New prototype.
529 (c_finish_omp_atomic): Add swapped argument.
530 (c_finish_omp_for): Add code argument.
531 (c_omp_split_clauses): New prototype.
532 (c_split_parallel_clauses): Removed.
533 (c_omp_declare_simd_clauses_to_numbers,
534 c_omp_declare_simd_clauses_to_decls): New prototypes.
535 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
536 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
537 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
538 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
539 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
540 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
541 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
542 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
543 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
544 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
545 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
546 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
547 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
548 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
549 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
550 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
551 PRAGMA_OMP_CLAUSE_UNIFORM.
552
826cacfe
MG
5532013-10-09 Marc Glisse <marc.glisse@inria.fr>
554
555 PR tree-optimization/20318
556 * c-common.c (handle_returns_nonnull_attribute): New function.
557 (c_common_attribute_table): Add returns_nonnull.
558
2284b034
MG
5592013-10-03 Marc Glisse <marc.glisse@inria.fr>
560
561 PR c++/19476
562 * c.opt (fcheck-new): Move to common.opt.
563
b56e9788
MP
5642013-09-25 Marek Polacek <polacek@redhat.com>
565 Jakub Jelinek <jakub@redhat.com>
566
567 PR sanitizer/58413
568 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
569 an expression if we can prove it is correct.
570 (ubsan_instrument_division): Likewise. Remove unnecessary
571 check.
572
ce6923c5
MP
5732013-09-18 Marek Polacek <polacek@redhat.com>
574
575 PR sanitizer/58411
576 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
577 Declare it.
578 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
579
fb5610fb
IS
5802013-09-14 Iain Sandoe <iain@codesourcery.com>
581
582 PR target/48094
583 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
584 fobjc-gc, freplace-objc-classes): Accept for LTO.
585
88b0e79e
JC
5862013-09-13 Jacek Caban <jacek@codeweavers.com>
587
588 * c-target.def: New hook
589
c9b0866a
PC
5902013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
591
592 PR c++/43452
593 * c.opt (Wdelete-incomplete): Add.
594
0af94e6f
JR
5952013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
596
597 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
598 (vector_types_compatible_elements_p): New function.
599 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
600 declaration.
601 (vector_types_compatible_elements_p): Declare.
602
7c26172c
GDR
6032013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
604
605 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
606 a virtual member function.
607 (pp_simple_type_specifier): Remove.
608 (pp_c_type_specifier): Likewise.
609 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
610 Rename from pp_c_type_specifier. Adjust.
611 (c_pretty_printer::c_pretty_printer): Do not assign to
612 simple_type_specifier.
613
20059c8b
GDR
6142013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
615
616 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
617 member function.
618 (c_pretty_printer::storage_class_specifier): Likewise.
619 (c_pretty_printer::initializer): Likewise.
620 (pp_declaration): Remove.
621 (pp_declaration_specifiers): Likewise.
622 (pp_abstract_declarator): Likewise.
623 (pp_declarator): Likewise.
624 (pp_type_id): Likewise.
625 (pp_statement): Likewise.
626 (pp_constant): Likewise.
627 (pp_id_expression): Likewise.
628 (pp_primary_expression): Likewise.
629 (pp_unary_expression): Likewise.
630 (pp_multiplicative_expression): Likewise.
631 (pp_conditional_expression): Likewise.
632 (pp_assignment_expression): Likewise.
633 (pp_expression): Likewise.
634 (pp_c_type_id): Likewise.
635 (pp_c_storage_class_specifier): Likewise.
636 * c-pretty-print.c (pp_c_type_cast): Tidy.
637 (pp_c_pointer): Likewise.
638 (pp_c_type_specifier): Likewise.
639 (pp_c_parameter_type_list): Likewise.
640 (pp_c_function_definition): Likewise.
641 (pp_c_init_declarator): Likewise.
642 (pp_c_initializer_list): Likewise.
643 (pp_c_constructor_elts): Likewise.
644 (c_pretty_printer::direct_abstract_declarator): Likewise.
645 (c_pretty_printer::declaration_specifiers): Likewise.
646 (c_pretty_printer::primary_expression): Likewise.
647 (c_pretty_printer::postfix_expression): Likewise.
648 (c_pretty_printer::type_id): Rename from pp_c_type_id.
649 (c_pretty_printer::storage_class_specifier): Rename from
650 pp_c_storage_class_specifier.
651 (c_pretty_printer::initializer): Rename from pp_c_initializer.
652 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
653 storage_class_specifier, initializer, offset_list, flags.
654
de5a5fa1
MP
6552013-08-30 Marek Polacek <polacek@redhat.com>
656
657 * c-ubsan.c: New file.
658 * c-ubsan.h: New file.
659
8f0e4d72
GDR
6602013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
661
662 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
663 member function.
664 (c_pretty_printer::declaration_specifiers): Likewise.
665 (c_pretty_printer::declarator): Likewise.
666 (c_pretty_printer::abstract_declarator): Likewise.
667 (c_pretty_printer::direct_abstract_declarator): Likewise.
668 (c_pretty_printer::direct_declarator): Likewise.
669 (c_pretty_printer::function_specifier): Likewise.
670 (pp_declaration): Adjust.
671 (pp_declaration_specifiers): Likewise.
672 (pp_abstract_declarator): Likewise.
673 (pp_direct_declarator): Likewise.
674 (pp_function_specifier): Likewise.
675 (pp_direct_abstract_declarator): Remove as unused.
676 (pp_c_declaration): Remove.
677 (pp_c_declaration_specifiers): Likewise.
678 (pp_c_declarator): Likewise.
679 (pp_c_direct_declarator): Likewise.
680 (pp_c_function_specifier): Likewise.
681 (pp_c_direct_abstract_declarator): Likewise.
682 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
683 from pp_c_abstract_declarator. Adjust.
684 (c_pretty_printer::direct_abstract_declarator): Rename from
685 pp_c_direct_abstract_declarator. Adjust.
686 (c_pretty_printer::function_specifier): Rename from
687 pp_c_function_specifier. Adjust.
688 (c_pretty_printer::declaration_specifiers): Rename from
689 pp_c_declaration_specifiers. Adjust.
690 (c_pretty_printer::direct_declarator): Rename from
691 pp_c_direct_declarator. Adjust.
692 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
693 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
694 (c_pretty_printer::c_pretty_printer): Do not assign to
695 declaration, declaration_specifiers, declarator,
696 direct_declarator, direct_abstract_declarator, function_specifier.
697
00d34d3a
GDR
6982013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
699
700 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
701 virtual member function.
702 (c_pretty_printer::multiplicative_expression): Likewise.
703 (c_pretty_printer::conditional_expression): Likewise.
704 (c_pretty_printer::assignment_expression): Likewise.
705 (c_pretty_printer::expression): Likewise.
706 (pp_unary_expression): Adjust.
707 (pp_multiplicative_expression): Likewise.
708 (pp_assignment_expression): Likewise.
709 (pp_conditional_expression): Likewise.
710 (pp_expression): Likewise.
711 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
712 from pp_c_unary_expression. Adjust.
713 (c_pretty_printer::multiplicative_expression): Rename from
714 pp_c_multiplicative_expression. Adjust.
715 (c_pretty_printer::conditional_expression): Rename from
716 pp_c_conditional_expression. Adjust.
717 (c_pretty_printer::assignment_expression): Rename from
718 pp_c_assignment_expression. Adjust.
719 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
720 (c_pretty_printer::c_pretty_printer): Do not assign to
721 unary_expression, multiplicative_expression,
722 conditional_expression, expression.
723
fb22178f
GDR
7242013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
725
726 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
727 virtual member function.
728 (pp_postfix_expression): Adjust.
729 (pp_c_postfix_expression): Remove.
730 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
731 from pp_c_postfix_expression. Adjust.
732 (c_pretty_printer::c_pretty_printer): Do not assign to
733 postfix_expression.
734
7ecc2600
GDR
7352013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
736
737 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
738 virtua member function.
739 (pp_primary_expression): Adjust.
740 (pp_c_primary_expression): Remove.
741 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
742 from pp_c_primary_expression. Adjust.
743 (pp_c_initializer_list): Use pp_primary_expression.
744 (c_pretty_printer::c_pretty_printer): Do not assign to
745 primary_expression.
746
0691175f
GDR
7472013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
748
749 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
750 * c-pretty-print.c (M_): Remove.
751 (c_pretty_printer::translate_string): Define.
752 (pp_c_type_specifier): Use it.
753 (pp_c_primary_expression): Likewise.
754 (pp_c_expression): Likewise.
755
66dfe4c4
GDR
7562013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
757
758 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
759 virtual function.
760 (pp_c_id_expression): Remove.
761 (pp_id_expression): Adjust.
762 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
763 pp_c_id_expression. Adjust.
764 (pp_c_postfix_expression): Use pp_id_expression.
765 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
766
ca43e9d5
GDR
7672013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
768
769 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
770 member function.
771 (pp_constant): Adjust.
772 (pp_c_constant): Remove.
773 * c-pretty-print.c (c_pretty_printer::constant): Rename from
774 pp_c_constant. Adjust.
775 (pp_c_constant)
776 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
777 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
778
da6ca2b5
GDR
7792013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
780
781 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
782 (c_pretty_printer::c_pretty_printer): Declare.
783 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
784 c_pretty_printer_init. Adjust.
785 (print_c_tree): Do not call c_pretty_printer_init.
786 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
787
65a372f4
AC
7882013-08-09 Arnaud Charlet <charlet@adacore.com>
789
790 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
791
fd9b0f32
PC
7922013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
793
794 PR c++/58080
795 * c-common.c (pointer_int_sum): Add bool parameter.
796 * c-common.h (pointer_int_sum): Adjust declaration.
797
e0aec1e9
GDR
7982013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
799
800 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
801 c_pretty_printer variable.
802
b066401f
GDR
8032013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
804
805 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
806 (pp_base): Remove.
807 (pp_c_base): Likewise. Adjust users.
808 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
809 (pp_c_whitespace): Do not call pp_base.
810 (pp_c_left_paren): Likewise.
811 (pp_c_right_paren): Likewise.
812 (pp_c_left_brace): Likewise.
813 (pp_c_right_brace): Likewise.
814 (pp_c_left_bracket): Likewise.
815 (pp_c_right_bracket): Likewise.
816 (pp_c_dot): Likewise.
817 (pp_c_ampersand): Likewise.
818 (pp_c_star): Likewise.
819 (pp_c_arrow): Likewise.
820 (pp_c_semicolon): Likewise.
821 (pp_c_complement): Likewise.
822 (pp_c_exclamation): Likewise.
823 (pp_c_direct_declarator): Likewise.
824 (pp_c_ws_string): Likewise.
825 (pp_c_identifier): Likewise.
826 (pp_c_statement): Likewise.
827 (print_c_tree): Likewise.
828
65e5a578
ESR
8292013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
830
831 PR c++/58072
832 * c-common.c (c_parse_error): Catch user-defined literal tokens and
833 provide useful error strings.
834
137a1a27
GDR
8352013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
836
837 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
838 printer functions instead of pp_string or operators and punctuators.
839 (dump_generic_ada_node): Likewise.
840 * c-pretty-print.c (pp_c_type_specifier): Likewise.
841 (pp_c_relational_expression): Likewise.
842 (pp_c_logical_or_expression): Likewise.
843
07838b13
GDR
8442013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
845
846 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
847 functions instead of pp_character.
848 (pp_ada_tree_identifier): Likewise.
849 (dump_ada_double_name): Likewise.
850 (dump_ada_function_declaration): Likewise.
851 (dump_ada_array_domains): Likewise.
852 (dump_template_types): Likewise.
853 (dump_generic_ada_node): Likewise.
854 (print_ada_declaration): Likewise.
855 (print_ada_struct_decl): Likewise.
856 * c-pretty-print.c (pp_c_integer_constant): Likewise.
857
433cc7b0
TT
8582013-07-23 Tom Tromey <tromey@redhat.com>
859
860 * c-common.h (enum rid) <RID_GENERIC>: New constant.
861 * c-common.c (c_common_reswords): Add _Generic.
862
688010ba
OB
8632013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
864
865 * c-common.c: Fix typos.
866 * c-common.h: Likewise.
867
2a99e5e6
LL
8682013-07-13 Lubos Lunak <l.lunak@suse.cz>
869
870 PR c++/55203
871 * c-common.c (c_common_attribute_table): Add warn_unused.
872 (handle_warn_unused_attribute): New.
873
c26302d5
JJ
8742013-07-10 Jakub Jelinek <jakub@redhat.com>
875
876 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
877 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
878
dfeadaa0
PC
8792013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
880
881 PR c++/57869
882 * c.opt: Add Wconditionally-supported.
883
6a2fa4b2
GS
8842013-07-08 Graham Stott <graham.stott@btinternet.com>
885
886 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
887 unused variables l_length and l_node.
888
ecdbd01a 8892013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
890
891 PR c/57821
892 * c-common.c (complete_array_type): Delay folding first index
893 like other indices. When folding, check for index overflow.
894
bedc293e
MG
8952013-06-27 Marc Glisse <marc.glisse@inria.fr>
896
897 PR c++/57509
898 * c-common.h (c_build_vec_perm_expr): New complain argument.
899 * c-common.c (c_build_vec_perm_expr): Likewise.
900 Use save_expr also in C++.
901
604b2bfc
GDR
9022013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
903
904 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
905 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
906 * c-opts.c (c_common_post_options): Likewise.
907
dfeadaa0 9082013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
909
910 * array-notation-common.c (length_mismatch_in_expr): Changed the
911 parameter type's from a dynamic array to a vec_tree. Also removed
912 the size parameters.
913 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
914 the change above.
915
2ce86d2e
BI
9162013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
917
918 * c-common.h (struct cilkplus_an_parts): New structure.
919 (struct cilkplus_an_loop_parts): Likewise.
920 (cilkplus_extract_an_triplets): New prototype.
921 (fix_sec_implicit_args): Likewise.
922 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
923 (fix_sec_implicit_args): Likewise.
604b2bfc 924
07a6825b
BI
9252013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
926
927 * array-notation-common.c (find_inv_trees): Removed an unwanted
928 typecasting.
929 * c-common.h (struct inv_list::additional_tcodes): Changed type from
930 enum rid to enum tree_code.
931
08346abd
JH
9322013-06-11 Jan Hubicka <jh@suse.cz>
933
934 * c-common.c (handle_alias_ifunc_attribute): Do not set
935 DECL_EXTERNAL for weakref variables.
936 * c-pragma.c (handle_pragma_weak): Make sure aliases
937 are not declared as external.
938
d60f1706
BI
9392013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
940
941 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
942 function from c/c-array-notation.c.
943 (is_cilkplus_reduce_builtin): Likewise.
944 (find_rank): Likewise.
945 (extract_array_notation_exprs): Likewise.
946 (replace_array_notations): Likewise.
947 (find_inv_trees): Likewise.
948 (replace_inv_trees): Likewise.
949 (contains_array_notation_expr): Likewise.
950 (find_correct_array_notation_type): Likewise.
951 * c-common.h (struct inv_list): Moved this struct from the file
952 c/c-array-notation.c and added a new field called additional tcodes.
953 (length_mismatch_in_expr_p): New prototype.
954 (is_cilkplus_reduce_builtin): Likewise.
955 (find_rank): Likewise.
956 (extract_array_notation_exprs): Likewise.
957 (replace_array_notation): Likewise.
958 (find_inv_trees): Likewise.
959 (replace_inv_trees): Likewise.
960 (find_correct_array_notation_type): Likewise.
dfeadaa0 961
36536d79
BI
9622013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
963
964 * c-common.c (c_define_builtins): When cilkplus is enabled, the
965 function array_notation_init_builtins is called.
966 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
967 * c-common.def (ARRAY_NOTATION_REF): New tree.
968 * c-common.h (build_array_notation_expr): New function declaration.
969 (build_array_notation_ref): Likewise.
970 (extract_sec_implicit_index_arg): New extern declaration.
971 (is_sec_implicit_index_fn): Likewise.
972 (ARRAY_NOTATION_CHECK): New define.
973 (ARRAY_NOTATION_ARRAY): Likewise.
974 (ARRAY_NOTATION_START): Likewise.
975 (ARRAY_NOTATION_LENGTH): Likewise.
976 (ARRAY_NOTATION_STRIDE): Likewise.
977 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
978 ARRAY_NOTATION_REF.
979 (pp_c_expression): Likewise.
980 * c.opt (flag_enable_cilkplus): New flag.
981 * array-notation-common.c: New file.
982
f7716d57
JJ
9832013-05-14 Jakub Jelinek <jakub@redhat.com>
984
985 PR c++/57274
986 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
987
a5e0cd1d
MG
9882013-05-10 Marc Glisse <marc.glisse@inria.fr>
989
990 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
991 vectors.
992
f6bc1c4a
HS
9932013-05-07 Han Shen <shenhan@google.com>
994
995 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
996
3f12f6e9
SKS
9972013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
998
999 * c-common.c (check_user_alignment): Emit error for negative values.
1000
61949153
PC
10012013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1002
1003 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
1004
e93e18e9
PC
10052013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1006
1007 * c-cppbuiltin.c (c_cpp_builtins): Do not define
1008 __GXX_EXPERIMENTAL_CXX1Y__.
1009
44d90fe1
PC
10102013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1011 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1012
1013 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
1014 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
1015 to simply use OPT_Wpointer_arith.
1016 (c_sizeof_or_alignof_type): Likewise.
1017
13f39b2e
PC
10182013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1019
1020 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
1021
4b84d650
JJ
10222013-04-12 Jakub Jelinek <jakub@redhat.com>
1023
1024 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
1025 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
1026 specifiers.
1027
fb037b5d
SB
10282013-04-07 Steven Bosscher <steven@gcc.gnu.org>
1029
1030 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
1031
4e856798
PC
10322013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
1033
1034 * c-common.c (pointer_int_sum): Remove dead code.
1035
4b1baac8
RS
10362013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
1037
1038 PR middle-end/56524
1039 * c-common.c (handle_optimize_attribute): Don't call
1040 save_optabs_if_changed.
1041
0b50e654
JJ
10422013-03-05 Jakub Jelinek <jakub@redhat.com>
1043
1044 PR middle-end/56461
1045 * c-pch.c (pch_init): Free target_validity at the end.
1046
48c41403
JJ
10472013-03-04 Jakub Jelinek <jakub@redhat.com>
1048
1049 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
1050
e664c61c
KS
10512013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
1052 Jakub Jelinek <jakub@redhat.com>
1053
1054 PR sanitizer/56454
1055 * c-common.c (handle_no_sanitize_address_attribute): New function.
1056 (c_common_attribute_table): Add no_sanitize_address attribute.
1057 (handle_no_address_safety_analysis_attribute): Add
1058 no_sanitize_address attribute, not no_address_safety_analysis
1059 attribute.
1060
a475fd3d 10612013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
1062
1063 PR target/52555
1064 * c-common.c (handle_optimize_attribute): Call
1065 save_optabs_if_changed.
1066
f6007d99
JJ
10672013-02-18 Jakub Jelinek <jakub@redhat.com>
1068 Steven Bosscher <steven@gcc.gnu.org>
1069
1070 PR pch/54117
1071 * c-opts.c (c_common_post_options): If debug info is enabled
1072 and non-dwarf*, refuse to load PCH files and when writing PCH
1073 file warn.
1074
cf35e2b1
JJ
10752013-02-05 Jakub Jelinek <jakub@redhat.com>
1076
1077 PR middle-end/56167
1078 * c-common.c (handle_error_attribute): Fix condition.
1079
32887460
JJ
10802013-01-30 Jakub Jelinek <jakub@redhat.com>
1081
1082 PR c++/55742
1083 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
1084
5af057d8
JM
10852013-01-18 Jason Merrill <jason@redhat.com>
1086
1087 PR target/54908
1088 * c.opt (-fextern-tls-init): New.
1089 * c-opts.c (c_common_post_options): Handle it.
1090
cc83c823
JJ
10912013-01-09 Jakub Jelinek <jakub@redhat.com>
1092
1093 PR c/48418
1094 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
1095 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
1096 and is either negative or bigger or equal to type precision
1097 of the first operand.
1098
a859517f
MP
10992012-12-03 Marek Polacek <polacek@redhat.com>
1100
1101 PR c/55570
1102 * c-common.c (check_user_alignment): Swap order of tests,
1103 check TREE_CODE first.
1104
2d7aa578
ESR
11052012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
1106
1107 PR c++/52654
1108 * c-common.h (overflow_type): New enum.
1109 (build_userdef_literal): Add overflow_type argument.
1110 (tree_userdef_literal): Add overflow_type.
1111 (USERDEF_LITERAL_OVERFLOW): New access macro.
1112 * c-common.c (build_userdef_literal): Add overflow_type
1113 argument.
1114 * c-lex.c (c_lex_with_flags): Add overflow_type to
1115 build_userdef_literal calls.
1116 (interpret_integer, interpret_float): Add overflow_type argument.
1117
cc3c4f62
RB
11182012-11-28 Richard Biener <rguenther@suse.de>
1119
1120 PR c/35634
1121 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1122 here and use a type with proper overflow behavior for types that would
1123 need to be promoted for the arithmetic.
1124
77bc5132
JJ
11252012-11-23 Jakub Jelinek <jakub@redhat.com>
1126
1127 PR sanitizer/55435
1128 * c-common.c (handle_no_address_safety_analysis_attribute): New
1129 function.
1130 (c_common_attribute_table): Add no_address_safety_analysis.
1131
5dc99c46
SB
11322012-11-16 Simon Baldwin <simonb@google.com>
1133
1134 * c.opt: Add f[no-]canonical-system-headers.
1135 * c-opts.c (c_common_handle_option): Handle
1136 OPT_fcanonical_system_headers.
1137
a4a0016d
ESR
11382012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
1139
1140 PR c++/54413
1141 * c-opts.c (c_common_handle_option): Set new flags.
1142 * c.opt: Describe new flags.
1143
7dbb85a7
JM
11442012-11-09 Jason Merrill <jason@redhat.com>
1145
1146 * c.opt (Wabi-tag): New.
1147
ad7bac31
AK
11482012-11-09 Andi Kleen <ak@linux.intel.com>
1149
1150 PR 55139
1151 * c-common.c (get_atomic_generic_size): Mask with
1152 MEMMODEL_MASK
1153
7332899a
MLI
11542012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1155
1156 PR c/53063
1157 * c.opt (Wformat): Make it Alias Wformat=1.
1158 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
1159 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
1160 LangEnabledBy.
1161 (Wformat=): RejectNegative. Use LangEnabledBy.
1162 (Wnonnull): Use LangEnabledBy.
1163 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
1164 * c-format.c (set_Wformat): Delete.
1165 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
1166 (maybe_read_dollar_number): Likewise.
1167 (avoid_dollar_number): Likewise.
1168 (finish_dollar_format_checking): Likewise.
1169 (check_format_info): Likewise.
1170 (check_format_info_main): Likewise.
1171 (check_format_types): Likewise.
1172 (format_type_warning): Likewise.
1173 * c-common.c (int): Likewise.
1174 (check_function_sentinel): Likewise.
1175 * c-common.h (warn_format,set_Wformat): Do not declare here.
1176
34a180a6
MLI
11772012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1178
1179 PR c/53063
1180 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
1181 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
1182 Use LangEnabledBy.
1183 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
1184 common.opt.
1185 (Wvariadic-macros): Init(1).
1186 * c-opts.c (c_common_handle_option): Do not handle them
1187 explicitly.
1188 (c_common_post_options): Likewise.
1189 (sanitize_cpp_opts): warn_unused_macros is now
1190 cpp_warn_unused_macros.
1191 (push_command_line_include): Likewise.
1192 * c-common.c (warn_unknown_pragmas): Do not define.
1193 * c-common.h (warn_unknown_pragmas): Do not declare.
1194
3f46d6a5
MLI
11952012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1196
1197 PR c/51294
1198 * c-common.c (conversion_warning): Handle conditional expressions.
1199
880661a4
JW
12002012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
1201
1202 PR c++/54930
1203 * c.opt (Wreturn_local_addr): Define new option.
1204
4514a96b
JM
12052012-10-25 Jason Merrill <jason@redhat.com>
1206
f14edc1a
JM
1207 * c.opt (Wvirtual-move-assign): New.
1208
4514a96b
JM
1209 * c.opt (Winherited-variadic-ctor): New.
1210
93100c6b
MG
12112012-10-25 Marc Glisse <marc.glisse@inria.fr>
1212
1213 PR c++/54427
1214 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
1215
1efcb8c6
JM
12162012-10-23 Joseph Myers <joseph@codesourcery.com>
1217
1218 * c-common.h (pch_cpp_save_state): Declare.
1219 * c-target.def (c_preinclude): New hook.
1220 * c-opts.c (done_preinclude): New.
1221 (push_command_line_include): Handle default preincluded header.
1222 (cb_file_change): Call pch_cpp_save_state when calling
1223 push_command_line_include.
1224 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
1225 (pch_cpp_save_state): New.
1226 (pch_init): Call pch_cpp_save_state conditionally, instead of
1227 calling cpp_save_state.
1228
4a0ae68e
MLI
12292012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1230
1231 PR c/53063
1232 PR c/40989
1233 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
1234 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
1235 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
1236 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
1237 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
1238 * c-opts.c (c_common_handle_option): Remove explicit handling from
1239 here.
1240 (c_common_post_options): Likewise.
1241
67e4210b
EB
12422012-10-18 Eric Botcazou <ebotcazou@adacore.com>
1243
1244 * c-ada-spec.c (LOCATION_COL): Delete.
1245 (compare_location): New function.
1246 (compare_node): Use it.
1247 (compare_comment): Likewise.
1248
65d4f2cd
MLI
12492012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1250
1251 PR c/53063
1252 PR c/40989
1253 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
1254 * c-opts.c (c_common_handle_option): Do not set them here. Add
1255 comment.
1256 (c_common_post_options): Likewise.
1257
909881cb
EB
12582012-10-16 Eric Botcazou <ebotcazou@adacore.com>
1259
1260 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
1261 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
1262 Remove POINTER_TYPE handling, add large unsigned handling and use
1263 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
1264
3a785c97
JJ
12652012-10-12 Jakub Jelinek <jakub@redhat.com>
1266
1267 PR c/54381
1268 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
1269 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
1270 locs and array of 3 trees instead of just single loc and single
1271 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
1272 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
1273 For *cmp* builtins that take two sources strings report warnings
1274 about first and second source, not about destination and source.
1275
5e54f81d
MG
12762012-10-12 Marc Glisse <marc.glisse@inria.fr>
1277
1278 PR c++/53055
1279 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
1280
f5b02f1e
EB
12812012-10-11 Eric Botcazou <ebotcazou@adacore.com>
1282
1283 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
1284 declaring something coming from another file.
1285
b46dbc6c
AC
12862012-10-10 Arnaud Charlet <charlet@adacore.com>
1287
f5b02f1e 1288 PR ada/54845
b46dbc6c
AC
1289 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
1290
5d9de0d0
PC
12912012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
1292
1293 PR c++/54194
1294 * c-common.c (warn_about_parentheses): Add location_t parameter;
1295 use EXPR_LOC_OR_LOC.
1296 * c-common.h: Update declaration.
1297
a212e43f
MG
12982012-10-09 Marc Glisse <marc.glisse@inria.fr>
1299
1300 PR c++/54427
1301 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
1302 more operations. Make error messages optional.
1303 * c-common.h (enum stv_conv): Moved from c-typeck.c.
1304 (scalar_to_vector): Declare.
1305
b1db7f91
JM
13062012-10-08 Jason Merrill <jason@redhat.com>
1307
1308 * c-common.c (c_common_reswords): Add thread_local.
1309
e28d52cf
DS
13102012-10-08 Dodji Seketeli <dodji@redhat.com>
1311
1312 PR c++/53528 C++11 attribute support
1313 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
1314 new functions.
1315 * c-common.c (check_cxx_fundamental_alignment_constraints): New
1316 static function.
1317 (handle_aligned_attribute): In choose strictest alignment
1318 among many. Use new check_cxx_fundamental_alignment_constraints.
1319 (handle_transparent_union_attribute): In c++11 attribute syntax,
1320 don't look through typedefs.
1321
3b78de56
AC
13222012-10-04 Arnaud Charlet <charlet@adacore.com>
1323
1324 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
1325 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
1326 out of dumpfile.h.
1327
6040bb5f
DC
13282012-09-25 Dehao Chen <dehao@google.com>
1329
1330 PR middle-end/54645
3b78de56 1331 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
1332 map when read in the pch.
1333
0b07a57e
AC
13342012-09-18 Arnaud Charlet <charlet@adacore.com>
1335
1336 * c-ada-spec.c: Style fixes.
1337
da5182be
TQ
13382012-09-18 Thomas Quinot <quinot@adacore.com>
1339
1340 * c.opt (-fada-spec-parent): Define new command line switch.
1341 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
1342 is specified, generate binding spec as a child of the specified unit.
1343
0ccb505d
PC
13442012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
1345 Manuel López-Ibáñez <manu@gcc.gnu.org>
1346
1347 PR c++/53210
1348 * c.opt ([Winit-self]): Enabled by -Wall in C++.
1349
c583af79
AC
13502012-08-23 Arnaud Charlet <charlet@adacore.com>
1351
1352 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
1353 for pointers, and add missing Convention C pragma.
1354 (print_ada_struct_decl): Add missing aliased keyword.
1355 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
1356
1a4049e7
JJ
13572012-08-17 Jakub Jelinek <jakub@redhat.com>
1358
1359 * c-common.c (sizeof_pointer_memaccess_warning): New function.
1360 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
1361 * c-opts.c (c_common_handle_option): Enable it for -Wall.
1362 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
1363 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
1364
70b5e7dc
RG
13652012-08-10 Richard Guenther <rguenther@suse.de>
1366
1367 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
1368
f8923f7e
SB
13692012-08-07 Steven Bosscher <steven@gcc.gnu.org>
1370
1371 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
1372 instead of separate pp_newline and pp_flush.
1373 (print_c_tree): Likewise.
1374
e45abe1f
RH
13752012-07-26 Richard Henderson <rth@redhat.com>
1376
1377 * c-common.c (handle_hot_attribute): Allow labels.
1378 (handle_cold_attribute): Likewise.
1379
332f1d24
JJ
13802012-07-20 Jakub Jelinek <jakub@redhat.com>
1381
1382 PR c++/28656
1383 * c-common.c (check_function_nonnull): Handle multiple nonnull
1384 attributes properly.
1385
7ee2468b
SB
13862012-07-16 Steven Bosscher <steven@gcc.gnu.org>
1387
1388 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
1389 * c-ada-spec.c: Likewise.
1390 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
1391
ee7b28eb
SB
13922012-07-14 Steven Bosscher <steven@gcc.gnu.org>
1393
1394 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
1395 Remove code conditional on it.
1396
6bdf3519
SB
13972012-07-11 Steven Bosscher <steven@gcc.gnu.org>
1398
1399 * c-gimplify.c: Do not include basic-block.h.
1400 * c-common.c: Do not include linfuncs.h.
1401
532aafad
SB
14022012-07-08 Steven Bosscher <steven@gcc.gnu.org>
1403
1404 * c-common.h: Include tree.h.
1405
8d0d1915
JM
14062012-07-02 Jason Merrill <jason@redhat.com>
1407
1408 PR c++/53524
1409 * c-common.c (get_priority): Call default_conversion.
1410
fbc873ad
UB
14112012-07-01 Uros Bizjak <ubizjak@gmail.com>
1412
1413 * c-pch.c (c_common_write_pch): Remove unused variables.
1414
d4a10d0a
SB
14152012-06-29 Steven Bosscher <steven@gcc.gnu.org>
1416
1417 * cppspec.c: Moved from gcc/ to here.
1418
6f3a2e23
KT
14192012-06-27 Kai Tietz <ktietz@redhat.com>
1420
1421 PR preprocessor/37215
1422 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
1423
8ca92d04
SB
14242012-06-21 Steven Bosscher <steven@gcc.gnu.org>
1425
1426 * c-common.h (c_common_print_pch_checksum): Remove.
1427 * c-pch.c: Do not include output.h.
1428 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
1429 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
1430 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
1431 (struct c_pch_header): Remove.
1432 (get_ident): Update gpch version.
1433 (pch_init): Do not print executable_checksum to asm_out_file.
1434 Do not fail if there is no asm_out_file to read back from. Set
1435 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
1436 (c_common_write_pch): Verify that nothing was written to asm_out_file
1437 since pch_init was called. Do not write a c_pch_header, and do not
1438 copy from asm_out_file to the PCH.
1439 (c_common_read_pch): Do not read a c_pch_header, and do not restore
1440 the content of asm_out_file from the PCH.
1441 (c_common_print_pch_checksum): Remove.
1442 * c-opts.c (c_common_init): Print out executable_checksum directly.
1443
70f42967
SB
14442012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1445
1446 * c-target.def (objc_declare_unresolved_class_reference,
1447 objc_declare_class_definition): Add new hooks.
1448
a8781821
SB
14492012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1450
1451 * c-lex.c: Do not include output.h.
1452 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
1453 Remove uses of ASM_OUTPUT_IDENT.
1454
9e1a8dd1
RR
14552012-06-15 Marc Glisse <marc.glisse@inria.fr>
1456
1457 PR c++/51033
1458 * c-common.h (c_build_vec_perm_expr): Move decl here.
1459 * c-common.c (c_build_vec_perm_expr): Move definition
1460 here.
1461
6f07a821
SB
14622012-06-06 Steven Bosscher <steven@gcc.gnu.org>
1463
1464 * c.opt (fconserve-space): Turn into a no-op.
1465
9faeb493 14662012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
1467
1468 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
1469 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
1470 both the start and end of the function.
1471
a4b7d13c
SB
14722012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1473
1474 * c-common.c: Do not include output.h.
1475 * c-pragma.c: Likewise.
1476
c265f413
SA
14772012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1478
1479 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
1480 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
1481 (lang_decl_name): Handle namespace decls.
1482
be7a421e
SB
14832012-05-31 Steven Bosscher <steven@gcc.gnu.org>
1484
1485 * c-ada-spec.c: Do not include output.h.
1486 * c-semantics.c: Likewise.
1487
65de6659
JM
14882012-05-29 Joseph Myers <joseph@codesourcery.com>
1489
1490 * c-common.c: Fix typo.
1491
ca5f4331
MM
14922012-05-29 Michael Matz <matz@suse.de>
1493
1494 * c-common.h (c_expand_decl): Remove prototype.
1495
4f7f7aca
MLI
14962012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1497
1498 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
1499 * c-opts.c (c_common_handle_option): Remove code handling
1500 warn_missing_braces.
1501
4a792f9b
PC
15022012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
1503
1504 PR c++/25137
1505 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
1506 -Wmissing_braces.
1507
650dc14a
DS
15082012-05-22 Dodji Seketeli <dodji@redhat.com>
1509
1510 PR c++/53322
1511 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
1512
9b095bf1
MLI
15132012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
1514
1515 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
1516 * c-opts.c (c_common_handle_option): Do not handle explicitly
1517 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
1518
0b2c4be5
DS
15192012-05-16 Dodji Seketeli <dodji@redhat.com>
1520
1521 PR preprocessor/7263
1522 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
1523 to cpp_classify_number. For diagnostics, use the precise location
1524 instead of the global input_location.
1525
a1bde5af
PC
15262012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1527
d02924ef 1528 PR c++/11856
a1bde5af
PC
1529 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
1530
d1ede5f4
BS
15312012-05-14 Bernd Schmidt <bernds@codesourcery.com>
1532
a1bde5af 1533 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 1534
f2bc201f
MLI
15352012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
1536
1537 PR 53063
1538 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
1539 Wreorder): Use LangEnabledBy.
1540 * c-opts.c (c_common_handle_option): Do not enable them
1541 explicitly. Call lang-specific generated functions.
1542 (c_common_post_options): Do not set them here.
1543
95744782
MLI
15442012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
1545
1546 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
1547 Wmissing-field-initializers,Wmissing-parameter-type,
1548 Wold-style-declaration,Woverride-init): Use EnabledBy.
1549 * c-opts.c (c_common_post_options): Do not set here explicitly.
1550
7d5a5747
MLI
15512012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1552
1553 PR 53063
1554 * c-opts.c (c_common_handle_option): Use handle_generated_option
1555 to enable sub-options.
1556
5a3c9cf2
PC
15572012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
1558
1559 PR c++/53158
1560 * c-common.c (warnings_for_convert_and_check): Use warning_at.
1561
3ac8781c
RG
15622012-05-10 Richard Guenther <rguenther@suse.de>
1563
1564 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
1565 adjust commentary about TYPE_IS_SIZETYPE types.
1566
1e537948
MLI
15672012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1568
1569 PR c++/53261
1570 * c-common.c (warn_logical_operator): Check that argument of
1571 integer_zerop is not NULL.
1572
f2c4a785
MLI
15732012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
1574
1575 PR c/43772
1576 * c-common.c (warn_logical_operator): Do not warn if either side
1577 is already true or false.
1578
50f305ca
MLI
15792012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1580
1581 PR c/51712
1582 * c-common.c (expr_original_type): New.
1583 (shorten_compare): Do not warn for enumeration types.
1584
0c3641b0
MLI
15852012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1586
1587 * c.opt (fpermissive): Add Var(flag_permissive).
1588
7edaa4d2
MG
15892012-04-30 Marc Glisse <marc.glisse@inria.fr>
1590
1591 PR c++/51033
1592 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
1593 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
1594
b9c8da34
DS
15952012-04-30 Dodji Seketeli <dodji@redhat.com>
1596
1597 Add -Wvarargs option
1598 * c.opt (Wvarargs): Define new option.
1599
e6c69da0
MLI
16002012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1601
1602 * c-common.c (check_function_arguments): Replace
1603 Wmissing-format-attribute with Wsuggest-attribute=format.
1604
90137d8f
MLI
16052012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1606
1607 * c.opt (Wsuggest-attribute=format): New. Alias of
1608 Wmissing-format-attribute.
1609 * c-format.c (decode_format_type): Replace
1610 Wmissing-format-attribute with Wsuggest-attribute=format.
1611 (check_function_format): Likewise.
1612
9faeb493 16132012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
1614
1615 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
1616 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
1617 * c.opt: Add Wliteral-suffix.
1618
c1771a20
MLI
16192012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1620
1621 PR c/44774
1622 * c.opt (Wpedantic): New.
1623 (pedantic): Alias Wpedantic.
1624 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
1625 (c_common_post_options): Likewise.
1626 (sanitize_cpp_opts): Likewise.
1627 * c-lex.c (interpret_float): Likewise.
1628 * c-format.c (check_format_types): Likewise.
1629 * c-common.c (pointer_int_sum): Likewise.
1630 (c_sizeof_or_alignof_type): Likewise.
1631 (c_add_case_label): Likewise.
1632 (c_do_switch_warnings): Likewise.
1633 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1634
04b391c1
JM
16352012-04-15 Jason Merrill <jason@redhat.com>
1636
1637 PR c++/52818
1638 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
1639 (C_STD_NAME): Distinguish between C++98 and C++11.
1640
ac868f29
EB
16412012-04-11 Eric Botcazou <ebotcazou@adacore.com>
1642
1643 PR target/52624
1644 * c-common.h (uint16_type_node): Rename into...
1645 (c_uint16_type_node): ...this.
1646 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
1647 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
1648
fd4116f4
MLI
16492012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
1650
1651 * c-common.c (warn_if_unused_value): Move definition to here.
1652 * c-common.h (warn_if_unused_value): Move declaration to here.
1653
573ac65e
WB
16542012-03-23 William Bader <williambader@hotmail.com>
1655
1656 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
1657
552b8185
JM
16582012-03-20 Jason Merrill <jason@redhat.com>
1659
1660 * c-common.h (enum cxx_dialect): Add cxx1y.
1661 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
1662 test.
1663 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1664 * c-opts.c (c_common_post_options): Likewise.
1665 (set_std_cxx1y): New.
1666 (c_common_handle_option): Call it.
1667 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
1668
04398fa8
PC
16692012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
1670
1671 PR c++/14710
1672 * c.opt ([Wuseless-cast]): Add.
1673
d2a12ae7
RG
16742012-03-16 Richard Guenther <rguenther@suse.de>
1675
1676 * c-pretty-print.c (pp_c_initializer_list): Adjust.
1677
a12bf402
MLI
16782012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1679
1680 PR c++/44783
1681 * c.opt (ftemplate-backtrace-limit) Add.
1682
5c30094f
RO
16832012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1684
1685 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
1686 handling.
1687 * c-pragma.c (handle_pragma_extern_prefix): Remove.
1688 (init_pragma): Don't register extern_prefix.
1689
21fa2faf
RG
16902012-03-12 Richard Guenther <rguenther@suse.de>
1691
1692 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
1693 (builtin_type_for_size): Likewise.
1694
e3793c6f
JJ
16952012-02-13 Jakub Jelinek <jakub@redhat.com>
1696
1697 PR c++/52215
1698 * c-common.c (sync_resolve_params): Don't decide whether to convert
1699 or not based on TYPE_SIZE comparison, convert whenever arg_type
1700 is unsigned INTEGER_TYPE.
1701
93286335
PC
17022012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
1703
1704 PR c/52118
1705 * c.opt ([Wunused-local-typedefs]): Fix description.
1706
7a421706
MS
17072012-01-24 Mike Stump <mikestump@comcast.net>
1708
1709 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
1710 exactly.
1711
ba9b1f11
RG
17122012-01-18 Richard Guenther <rguenther@suse.de>
1713
1714 * c-opts.c (c_common_post_options): Reset LTO flags if
1715 we are about to generate a PCH.
1716
465406be
PC
17172012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
1718
1719 PR c++/51777
1720 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
1721 use pp_unsigned_wide_integer.
1722
aee15221
RG
17232012-01-10 Richard Guenther <rguenther@suse.de>
1724
1725 PR middle-end/51806
1726 * c-opts.c (c_common_handle_option): Move -Werror handling
1727 to language independent code.
1728
5720c0dc
RG
17292012-01-05 Richard Guenther <rguenther@suse.de>
1730
1731 PR middle-end/51764
1732 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
1733 from common.opt.
1734
73ac190a
PC
17352011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
1736
1737 PR c++/51316
1738 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
1739 of array types with an unknown bound.
1740
48b0b196
JM
17412011-12-20 Joseph Myers <joseph@codesourcery.com>
1742
1743 * c-common.c (flag_isoc99): Update comment to refer to C11.
1744 (flag_isoc1x): Change to flag_isoc11.
1745 * c-common.h (flag_isoc99): Update comment to refer to C11.
1746 (flag_isoc1x): Change to flag_isoc11.
1747 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
1748 C11.
1749 * c-opts.c (set_std_c1x): Change to set_std_c11.
1750 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
1751 Call set_std_c11.
1752 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
1753 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
1754 * c.opt (std=c1x): Change to std=c11. Document as non-draft
1755 standard.
1756 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
1757 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
1758 (std=gnu1x): Make alias of std=gnu11.
1759
d58d6eb5
JM
17602011-12-19 Jason Merrill <jason@redhat.com>
1761
1762 PR c++/51228
1763 * c-common.c (handle_transparent_union_attribute): Check the first
1764 field if the type is complete.
1765
b3908fcc
JW
17662011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
1767
1768 PR libstdc++/51365
1769 * c-common.c (RID_IS_FINAL): Add.
1770 * c-common.h (RID_IS_FINAL): Add.
1771
fea3ca91
IS
17722011-11-30 Iain Sandoe <iains@gcc.gnu.org>
1773
1774 * c.opt (fgnu-runtime): Provide full description.
1775 (fnext-runtime): Likewise.
1776 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
1777
62bad7cd
AM
17782011-11-28 Andrew MacLeod <amacleod@redhat.com>
1779
1780 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
1781 predefines in one place. Add LOCK_FREE predefines.
1782 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
1783 new func.
1784
c466c4ff
AM
17852011-11-24 Andrew MacLeod <amacleod@redhat.com>
1786
1787 PR c/51256
9faeb493 1788 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 1789 conditions
9faeb493
UB
1790 (resolve_overloaded_atomic_exchange,
1791 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
1792 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
1793 error_mark_node for error conditions.
9faeb493 1794
a5952633
RG
17952011-11-08 Richard Guenther <rguenther@suse.de>
1796
1797 PR middle-end/51010
1798 c-family/
1799
0a35513e
AH
18002011-11-07 Richard Henderson <rth@redhat.com>
1801 Aldy Hernandez <aldyh@redhat.com>
1802 Torvald Riegel <triegel@redhat.com>
1803
1804 Merged from transactional-memory.
1805
1806 * c-common.c (handle_tm_wrap_attribute,
1807 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
1808 (struct c_common_reswords): Added __transaction* keywords.
1809 (struct c_common_attribute_table): Added transaction* and tm_regparm
1810 attributes.
1811 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
1812 masks.
1813 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
1814 find_tm_attribute): Declare.
1815
6d87092d
JM
18162011-11-07 Jason Merrill <jason@redhat.com>
1817
1818 PR c++/35688
1819 * c-common.c, c-common.h: Revert yesterday's changes.
1820
8e7860a1
JM
18212011-11-06 Jason Merrill <jason@redhat.com>
1822
1823 PR c++/35688
1824 * c-common.c (decl_has_visibility_attr): Split out from...
1825 (c_determine_visibility): ...here.
1826 * c-common.h: Declare it.
1827
d19fa6b5
JM
18282011-11-06 Joseph Myers <joseph@codesourcery.com>
1829
1830 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
1831 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
1832 type.
1833 (check_user_alignment): New. Split out of
1834 handle_aligned_attribute. Disallow integer constants with
1835 noninteger types. Conditionally allow zero.
1836 (handle_aligned_attribute): Use check_user_alignment.
1837 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
1838
86951993
AM
18392011-11-06 Andrew MacLeod <amacleod@redhat.com>
1840 Richard Henderson <rth@redhat.com>
1841
1842 Merged from cxx-mem-model.
1843
1844 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 1845 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
1846 parameters that are the same type size.
1847 (get_atomic_generic_size): New. Find size of generic
1848 atomic function parameters and do typechecking.
1849 (add_atomic_size_parameter): New. Insert size into parameter list.
1850 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
1851 either __atomic_exchange_n or external library call.
9faeb493 1852 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 1853 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 1854 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
1855 __atomic_load_n or an external library call.
1856 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
1857 __atomic_store_n or an external library call.
1858 (resolve_overloaded_builtin): Handle new __atomic builtins.
1859
cf9e9959
EB
18602011-11-04 Eric Botcazou <ebotcazou@adacore.com>
1861
1862 PR c++/50608
1863 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
1864 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
1865 <INDIRECT_REF>: Return the argument.
1866 <ARRAY_REF>: Remove special code for negative offset.
1867 Call fold_build_pointer_plus instead of size_binop.
1868 (fold_offsetof): Remove STOP_REF argument and adjust.
1869 * c-common.h (fold_offsetof_1): Declare.
1870 (fold_offsetof): Remove STOP_REF argument.
1871
25339f10
JM
18722011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
1873
1874 PR c++/50810
1875 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1876 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1877 Wnarrowing for C++0x and C++98.
1878 * c.opt ([Wnarrowing]): Update.
1879
89401152
PC
18802011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
1881
1882 PR c++/44277
1883 * c.opt: Add Wzero-as-null-pointer-constant.
1884
97e3ad20
JM
18852011-10-31 Jason Merrill <jason@redhat.com>
1886
15694fdd
JM
1887 * c.opt (-fdeduce-init-list): Off by default.
1888
97e3ad20
JM
1889 PR c++/50920
1890 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
1891 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
1892 and -Wc++11-compat.
1893 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
1894
fb9120e3
RAV
18952011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
1896
1897 PR c++/30066
1898 * c.opt (fvisibility-inlines-hidden): Description change.
1899
3ce4f9e4
ESR
19002011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
1901
1902 Implement C++11 user-defined literals.
1903 * c-common.c (build_userdef_literal): New.
1904 * c-common.def: New tree code.
1905 * c-common.h (tree_userdef_literal): New tree struct and accessors.
1906 * c-lex.c (interpret_float): Add suffix parm.
1907 (c_lex_with_flags): Build literal tokens.
1908
5f53c243
PC
19092011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1910
1911 PR c++/50841
1912 Revert:
1913 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1914
1915 PR c++/50810
1916 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1917 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1918 Wnarrowing for C++0x and C++98.
1919 * c.opt ([Wnarrowing]): Update.
1920
263734e1
PC
19212011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1922
1923 PR c++/50810
1924 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1925 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1926 Wnarrowing for C++0x and C++98.
1927 * c.opt ([Wnarrowing]): Update.
1928
d2e312d7
PC
19292011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
1930
1931 PR c++/45385
1932 * c-common.c (conversion_warning): Remove code looking for
1933 artificial operands.
1934
d17687f6
DS
19352011-10-18 Dodji Seketeli <dodji@redhat.com>
1936
1937 PR bootstrap/50760
1938 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 1939 !NO_IMPLICIT_EXTERN_C.
d17687f6 1940
fc8396e9
PC
19412011-10-17 Michael Spertus <mike_spertus@symantec.com>
1942
1943 * c-common.c (c_common_reswords): Add __bases,
1944 __direct_bases.
1945 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
1946
19472011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
1948
1949 PR c++/50757
1950 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
1951
847e697a
TT
19522011-10-15 Tom Tromey <tromey@redhat.com>
1953 Dodji Seketeli <dodji@redhat.com>
1954
1955 * c.opt (fdebug-cpp): New option.
1956 * c-opts.c (c_common_handle_option): Handle the option.
1957 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
1958 output stream in parameter. Factorized from ...
1959 (maybe_print_line): ... this. Dump location debug information when
1960 -fdebug-cpp is in effect.
1961 (print_line_1): New static function. Takes an output stream in
1962 parameter. Factorized from ...
1963 (print_line): ... here. Dump location information when -fdebug-cpp
1964 is in effect.
1965 (scan_translation_unit): Dump location information when
1966 -fdebug-cpp is in effect.
1967
92582b75
TT
19682011-10-15 Tom Tromey <tromey@redhat.com>
1969 Dodji Seketeli <dodji@redhat.com>
1970
1971 * c.opt (ftrack-macro-expansion): New option. Handle it with and
1972 without argument.
1973 * c-opts.c (c_common_handle_option)<case
1974 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
1975 cases. Handle -ftrack-macro-expansion with and without argument.
1976
46427374
TT
19772011-10-15 Tom Tromey <tromey@redhat.com>
1978 Dodji Seketeli <dodji@redhat.com>
1979
1980 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
1981 (print_line, cb_define, do_line_change): Adjust to avoid touching
1982 the internals of struct line_map. Use the public API instead.
1983 * c-pch.c (c_common_read_pch): Likewise.
1984 * c-lex.c (fe_file_change): Likewise.
1985
fc8396e9
PC
19862011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
1987
1988 PR c++/17212
1989 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
1990
19912011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
1992
1993 PR c++/33067
1994 * c-pretty-print.c (pp_c_floating_constant): Output
1995 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
1996
e79983f4
MM
19972011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1998
1999 * c-common.c (def_builtin_1): Delete old interface with two
2000 parallel arrays to hold standard builtin declarations, and replace
2001 it with a function based interface that can support creating
2002 builtins on the fly in the future. Change all uses, and poison
2003 the old names. Make sure 0 is not a legitimate builtin index.
2004 * c-omp.c (c_finish_omp_barrier): Ditto.
2005 (c_finish_omp_taskwait): Ditto.
2006 (c_finish_omp_flush): Ditto.
2007
6637388f
TG
20082011-10-11 Tristan Gingold <gingold@adacore.com>
2009
2010 * c.opt: (fallow-parameterless-variadic-functions): New.
2011
3797cb21
DS
20122011-09-08 Dodji Seketeli <dodji@redhat.com>
2013
2014 PR c++/33255 - Support -Wunused-local-typedefs warning
2015 * c-common.h (struct c_language_function::local_typedefs): New
2016 field.
9faeb493
UB
2017 (record_locally_defined_typedef, maybe_record_typedef_use)
2018 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 2019 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
2020 (maybe_record_typedef_use)
2021 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
2022 * c.opt: Declare new -Wunused-local-typedefs flag.
2023
693ddb1b
EB
20242011-09-06 Eric Botcazou <ebotcazou@adacore.com>
2025
2026 PR middle-end/50266
2027 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
2028 computations.
2029
830c740f
RG
20302011-09-05 Richard Guenther <rguenther@suse.de>
2031
2032 * c-common.c (complete_array_type): Use ssize_int (-1) instead
2033 of integer_minus_one_node for empty array upper bounds.
2034
892a371f
DS
20352011-08-28 Dodji Seketeli <dodji@redhat.com>
2036
2037 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
2038 it's the first time it's being called on this main TU.
2039
0e3fdb48
RB
20402011-08-24 Richard Guenther <rguenther@suse.de>
2041
2042 PR c/49396
2043 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
2044
20452011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
2046
2047 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
2048 defined in cpp_init_builtins and c_cpp_builtins.
2049
d4a83c10
JM
20502011-08-19 Joseph Myers <joseph@codesourcery.com>
2051
2052 * c-common.c (c_common_reswords): Add __builtin_complex.
2053 * c-common.h (RID_BUILTIN_COMPLEX): New.
2054
bbceee64
JM
20552011-08-18 Joseph Myers <joseph@codesourcery.com>
2056
2057 * c-common.c (c_common_reswords): Add _Noreturn.
2058 (keyword_is_function_specifier): Handle RID_NORETURN.
2059 * c-common.h (RID_NORETURN): New.
2060
0e3a99ae
AS
20612011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2062
2063 * c-common.c (unsafe_conversion_p): New function. Check if it is
2064 unsafe to convert an expression to the type.
2065 (conversion_warning): Adjust, use unsafe_conversion_p.
2066 * c-common.h (unsafe_conversion_p): New function declaration.
2067
20906c66
JJ
20682011-08-02 Jakub Jelinek <jakub@redhat.com>
2069
2070 * c-common.h (c_finish_omp_atomic): Adjust prototype.
2071 (c_finish_omp_taskyield): New prototype.
2072 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
2073 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
2074 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
2075 or RHS1 have side-effects, evaluate those too in the right spot,
2076 if it is a decl and LHS is also a decl, error out if they
2077 aren't the same.
2078 (c_finish_omp_taskyield): New function.
2079 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
2080 * c-pragma.c (omp_pragmas): Add taskyield.
2081 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
2082 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
2083 PRAGMA_OMP_CLAUSE_MERGEABLE.
2084
770e5a2e
DS
20852011-07-25 Dodji Seketeli <dodji@redhat.com>
2086
2087 * c-common.h (set_underlying_type): Remove parm name from
2088 declaration.
2089
1baae426
RG
20902011-07-25 Romain Geissler <romain.geissler@gmail.com>
2091
2092 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 2093
fcb21722
JM
20942011-07-22 Jason Merrill <jason@redhat.com>
2095
76f86d00
JM
2096 PR c++/49793
2097 * c.opt (Wnarrowing): New.
2098
3a636414
JM
2099 PR c++/30112
2100 * c-common.h: Declare c_linkage_bindings.
2101 * c-pragma.c (handle_pragma_redefine_extname): Use it.
2102
fcb21722
JM
2103 PR c++/49813
2104 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
2105 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
2106 as flag_isoc99 for 'restrict'.
2107 (pp_c_specifier_qualifier_list): Likewise for _Complex.
2108
02614448
ILT
21092011-07-21 Ian Lance Taylor <iant@google.com>
2110
2111 PR middle-end/49705
2112 * c-common.c (c_disable_warnings): New static function.
2113 (c_enable_warnings): New static function.
2114 (c_fully_fold_internal): Change local unused_p to bool. Call
2115 c_disable_warnings and c_enable_warnings rather than change
2116 c_inhibit_evaluation_warnings.
2117
34429675
JM
21182011-07-20 Jason Merrill <jason@redhat.com>
2119
2120 PR c++/6709 (DR 743)
2121 PR c++/42603 (DR 950)
2122 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
2123 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
2124 (CPP_DECLTYPE): New.
2125 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
2126
5d49b6a7
RG
21272011-07-19 Richard Guenther <rguenther@suse.de>
2128
2129 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
2130 * c-omp.c (c_finish_omp_for): Likewise.
2131
e84a58ff
EB
21322011-07-12 Eric Botcazou <ebotcazou@adacore.com>
2133
2134 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
2135 body on the next line.
2136
329af3c7
JM
21372011-07-08 Jason Merrill <jason@redhat.com>
2138
4063e61b
JM
2139 PR c++/45437
2140 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
2141
329af3c7
JM
2142 PR c++/49673
2143 * c-common.c (c_apply_type_quals_to_decl): Don't check
2144 TYPE_NEEDS_CONSTRUCTING.
2145
1a072294
RG
21462011-07-06 Richard Guenther <rguenther@suse.de>
2147
2148 * c-common.c (c_common_nodes_and_builtins):
2149 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
2150
fce5dddd
RG
21512011-07-05 Richard Guenther <rguenther@suse.de>
2152
2153 * c-common.c (c_common_nodes_and_builtins): Build all common
2154 tree nodes first.
2155
45d439ac
JJ
21562011-06-27 Jakub Jelinek <jakub@redhat.com>
2157
56300785
JJ
2158 * c-common.h (c_tree_chain_next): New static inline function.
2159
45d439ac
JJ
2160 * c-common.c (check_builtin_function_arguments): Handle
2161 BUILT_IN_ASSUME_ALIGNED.
2162
e0a8ecf2
AM
21632011-06-21 Andrew MacLeod <amacleod@redhat.com>
2164
2165 * c-common.c: Add sync_ or SYNC__ to builtin names.
2166 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
2167
21682011-06-20 Pierre Vittet <piervit@pvittet.com>
2169
2170 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
2171 handler.
2172 (gen_pragma_handler): New union.
2173 (internal_pragma_handler): New type.
2174 (c_register_pragma_with_data)
2175 (c_register_pragma_with_expansion_and_data): New functions.
2176
2177 * c-pragma.c (registered_pragmas, c_register_pragma_1)
2178 (c_register_pragma, c_register_pragma_with_expansion)
2179 (c_invoke_pragma_handler): Changed to work with
2180 internal_pragma_handler.
2181 (c_register_pragma_with_data)
2182 (c_register_pragma_with_expansion_and_data): New functions.
2183
677f3fa8
JM
21842011-06-14 Joseph Myers <joseph@codesourcery.com>
2185
2186 * c-common.c: Include common/common-target.h.
2187 (handle_section_attribute): Use
2188 targetm_common.have_named_sections.
2189 * c-cppbuiltin.c: Include common/common-target.h.
2190 (c_cpp_builtins): Use targetm_common.except_unwind_info.
2191
d7fc8c14
RG
21922011-06-10 Richard Guenther <rguenther@suse.de>
2193
2194 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
2195 to print a IDENTIFIER_NODE.
2196
10e48e39
RO
21972011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2198 Joseph Myers <joseph@codesourcery.com>
2199
2200 * c.opt (fbuilding-libgcc): New option.
2201 * c-cppbuiltin.c (c_cpp_builtins): Define
2202 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
2203
6976ae51
JM
22042011-06-07 Jason Merrill <jason@redhat.com>
2205
3ff60975
JM
2206 * c-common.c (max_tinst_depth): Lower default to 900.
2207
6976ae51
JM
2208 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
2209
009db074
RG
22102011-06-07 Richard Guenther <rguenther@suse.de>
2211
2212 * c-common.c (c_common_nodes_and_builtins): Do not set
2213 size_type_node or call set_sizetype.
2214
b4592b92
DS
22152011-06-07 Dodji Seketeli <dodji@redhat.com>
2216
2217 PR debug/49130
2218 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 2219 type when using pointer comparison to compare types.
b4592b92 2220
014ab419
JW
22212011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
2222
2223 * c.opt: Add -Wdelete-non-virtual-dtor.
2224 * c-opts.c (c_common_handle_option): Include it in -Wall.
2225
4f60111f
NF
22262011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
2227
2228 PR bootstrap/49190
2229
2230 Revert:
2231 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2232
2233 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2234 not tree_common.
2235
4cc4f2f4
JJ
22362011-05-27 Jakub Jelinek <jakub@redhat.com>
2237
2238 PR c++/49165
2239 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
2240 C++ don't call c_common_truthvalue_conversion on void type arms.
2241
38e01f9e
NF
22422011-05-27 Nathan Froyd <froydnj@codesourcery.com>
2243
2244 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
2245 (stmt_list_stack): Define.
2246 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
2247 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
2248
92e948a8
NF
22492011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2250
2251 * c-common.c (warning_candidate_p): Check for BLOCKs.
2252
a2fc3e63
NF
22532011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2254
2255 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2256 not tree_common.
2257
0957c029
JJ
22582011-05-25 Jakub Jelinek <jakub@redhat.com>
2259
2260 * c-common.c (def_fn_type): Remove extra va_end.
2261
828fb3ba
JM
22622011-05-23 Jason Merrill <jason@redhat.com>
2263
2264 PR c++/48106
2265 * c-common.c (c_common_get_narrower): New.
2266 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
2267
dde05067
NF
22682011-05-23 Nathan Froyd <froydnj@codesourcery.com>
2269
2270 * c-common.h (check_function_arguments): Tweak prototype of
2271 check_function_arguments.
2272 * c-common.c (check_function_arguments): Likewise. Adjust
2273 calls to check_function_nonnull, check_function_format, and
2274 check_function_sentinel.
2275 (check_function_sentinel): Take a FUNCTION_TYPE rather than
2276 separate attributes and typelist arguments. Use
2277 FOREACH_FUNCTION_ARGS to iterate over argument types.
2278
3c0d13bf
PC
22792011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
2280
2281 * c-common.c (c_common_reswords): Reorder.
2282 * c-common.h (rid): Likewise.
2283
8242dd04
NF
22842011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2285
2286 * c-common.c (def_fn_type): Don't call build_function_type, call
2287 build_function_type_array or build_varargs_function_type_array
2288 instead.
2289 (c_common_nodes_and_builtins): Likewise.
2290
3d528853
NF
22912011-05-05 Nathan Froyd <froydnj@codesourcery.com>
2292
2293 * c-common.c (c_add_case_label): Omit the loc argument to
2294 build_case_label.
2295 * c-common.h (build_case_label): Remove.
2296 * c-semantics.c (build_case_label): Remove.
2297
a04a722b
JM
22982011-05-05 Joseph Myers <joseph@codesourcery.com>
2299
2300 * c-objc.h (objc_start_method_definition): Update prototype.
2301 * stub-objc.c (objc_start_method_definition): Add extra parameter.
2302
e19a18d4
NF
23032011-05-04 Nathan Froyd <froydnj@codesourcery.com>
2304
2305 * c-common.c (check_main_parameter_types): Reindent. Don't use
2306 TYPE_ARG_TYPES directly.
2307 (handle_nonnull_attribute): Likewise.
2308 (sync_resolve_params): Likewise.
2309 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
2310 to check_format_string.
2311 (handle_format_attribute): Likewise.
2312 (check_format_string): Take a function type to examine instead of
2313 a type list. Use a function_arg_iterator to step through argument
2314 types.
2315
c62c040f
RG
23162011-05-04 Richard Guenther <rguenther@suse.de>
2317
2318 * c-common.c (fix_string_type): Use size_int for index type bounds.
2319 (start_fname_decls): Do not pass NULL to build_int_cst.
2320 (c_init_attributes): Likewise.
2321 * c-lex.c (c_lex_with_flags): Likewise.
2322
c12ff9d8
JM
23232011-04-27 Jason Merrill <jason@redhat.com>
2324
2325 * c-common.c (make_tree_vector_from_list): New.
2326 * c-common.h: Declare it.
2327
304dfbe3
RG
23282011-04-26 Richard Guenther <rguenther@suse.de>
2329
2330 PR preprocessor/48248
2331 * c-ppoutput.c (maybe_print_line): Always optimize newlines
2332 for output size with -P.
2333
3c0d13bf
PC
23342011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
2335
2336 * c-common.c (struct c_common_resword): Add __underlying_type.
2337 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2338
04695783
JM
23392011-04-20 Jim Meyering <meyering@redhat.com>
2340
2341 * c-format.c (init_dollar_format_checking): Remove useless
2342 if-before-free.
2343
0dc33c3c
NP
23442011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
2345
2346 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 2347 (objc_detect_field_duplicates): New.
0dc33c3c 2348 * stub-objc.c: Likewise.
3c0d13bf 2349
c59633d9
NP
23502011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2351
2352 * stub-objc.c (objc_declare_protocols): Renamed to
2353 objc_declare_protocol.
2354 * c-objc.h: Likewise.
3c0d13bf 2355
32dabdaf
NP
23562011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2357
2358 * stub-objc.c (objc_declare_class): Updated argument name.
2359
81f653d6
NF
23602011-04-12 Nathan Froyd <froydnj@codesourcery.com>
2361
2362 * c-common.h (c_common_init_ts): Declare.
2363 * c-common.c (c_common_init_ts): Define.
2364
eb345401
NP
23652011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
2366
2367 * c-objc.h (objc_build_message_expr): Updated prototype.
2368 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 2369
a358e188
MJ
23702011-04-12 Martin Jambor <mjambor@suse.cz>
2371
2372 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
2373 of cgraph_node.
2374
e6313a78
RG
23752011-04-11 Richard Guenther <rguenther@suse.de>
2376
2377 * c-common.c (complete_array_type): Build a range type of
2378 proper type.
2379
dcf0c47e
NF
23802011-04-08 Nathan Froyd <froydnj@codesourcery.com>
2381
2382 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
2383 (handle_type_generic_attribute): Likewise.
2384
1ee44b26
JM
23852011-04-07 Jason Merrill <jason@redhat.com>
2386
2387 PR c++/48450
2388 * c-common.c (c_common_truthvalue_conversion): Don't ignore
2389 conversion from C++0x scoped enum.
2390
acce4e77
JM
23912011-04-06 Joseph Myers <joseph@codesourcery.com>
2392
2393 * c-target-def.h: New file.
2394 * c-target.def: New file.
2395 * c-target.h: New file.
2396 * c-common.c (targetcm): Don't define here.
2397 * c-common.h (default_handle_c_option): Declare.
2398 * c-format.c: Include c-target.h instead of target.h.
2399 * c-opts.c: Include c-target.h instead of target.h. Explicitly
2400 include tm.h.
2401 (default_handle_c_option): Move from targhooks.c.
2402
e2eefb55
JJ
24032011-03-29 Jakub Jelinek <jakub@redhat.com>
2404
2405 PR preprocessor/48248
2406 * c-ppoutput.c (print): Add src_file field.
2407 (init_pp_output): Initialize it.
2408 (maybe_print_line): Don't optimize by adding up to 8 newlines
2409 if map->to_file and print.src_file are different file.
2410 (print_line): Update print.src_file.
2411
ba78087b
KT
24122011-03-25 Kai Tietz <ktietz@redhat.com>
2413
2414 * c-ada-spec.c (compare_comment): Use filename_cmp
2415 instead of strcmp for filename.
2416
0edf1bb2
JL
24172011-03-25 Jeff Law <law@redhat.com>
2418
2419 * c-family/c-common.c (def_fn_type): Add missing va_end.
2420
c7dc8804
JM
24212011-03-25 Jason Merrill <jason@redhat.com>
2422
2423 * c.opt: Add -std=c++03.
2424
d1d879b1
EB
24252011-03-22 Eric Botcazou <ebotcazou@adacore.com>
2426
2427 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
2428
62d784f7
KT
24292011-03-17 Kai Tietz
2430
2431 PR target/12171
5050afdf
KT
2432 * c-pretty-print.c (pp_c_specifier_qualifier_list):
2433 Display allowed attributes for function pointer types.
2434 (pp_c_attributes_display): New function to display
2435 attributes having affects_type_identity flag set to true.
2436 * c-pretty-print.h (pp_c_attributes_display): New prototype.
2437
62d784f7
KT
2438 * c-common.c (c_common_attribute_table):
2439 Add new element.
2440 (c_common_format_attribute_table): Likewise.
2441
82d37118
JM
24422011-03-18 Jason Merrill <jason@redhat.com>
2443
49a000c3
JM
2444 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
2445 * c-common.h: Don't declare it here.
2446 * c-common.c: Or define it here.
2447 * c-opts.c (c_common_handle_option): Or set it here.
2448
82d37118
JM
2449 PR c++/35315
2450 * c-common.c (handle_transparent_union_attribute): Don't
2451 make a duplicate type in C++.
2452
17bc631c
JM
24532011-03-15 Jason Merrill <jason@redhat.com>
2454
2455 * c-common.c (max_constexpr_depth): New.
2456 * c-common.h: Declare it.
2457 * c-opts.c (c_common_handle_option): Set it.
2458 * c.opt (fconstexpr-depth): New option.
2459
1b9b91a6
JM
24602011-03-11 Jason Merrill <jason@redhat.com>
2461
f231b5ff
JM
2462 * c-common.c (attribute_takes_identifier_p): Add missing const.
2463
1b9b91a6
JM
2464 PR c++/46803
2465 * c-common.c (attribute_takes_identifier_p): Assume that an
2466 unknown attribute takes an identifier.
2467
a19e4d44
NF
24682011-03-07 Nathan Froyd <froydnj@codesourcery.com>
2469
2470 PR c/47786
2471 * c-common.c (c_type_hash): Call list_length instead of iterating
2472 through DECL_CHAIN. Rename 'i' to 'n_elements'.
2473
982d62f6
JJ
24742011-02-19 Jakub Jelinek <jakub@redhat.com>
2475
2476 PR c/47809
2477 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
2478
0a256240
NP
24792011-02-17 Iain Sandoe <iains@gcc.gnu.org>
2480
2481 * c.opt (fobjc-abi-version=) New.
2482 (fobjc-nilcheck): New.
2483
ba9e6dd5
NF
24842011-02-03 Nathan Froyd <froydnj@codesourcery.com>
2485
2486 PR c++/46890
2487 * c-common.h (keyword_is_decl_specifier): Declare.
2488 * c-common.c (keyword_is_decl_specifier): Define.
2489 (keyword_is_function_specifier): New function.
2490
7273813a
JJ
24912011-01-26 Jakub Jelinek <jakub@redhat.com>
2492
2493 PR c/47473
2494 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
2495 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
2496 REAL_TYPE.
2497
908ef79b
AC
24982011-01-26 Arnaud Charlet <charlet@adacore.com>
2499
2500 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
2501
237e9384
JJ
25022011-01-26 Jakub Jelinek <jakub@redhat.com>
2503
2504 PR pch/47430
2505 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
2506 after init_c_lex if pch_file is set.
2507
47ea1edf
DK
25082011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
2509
d4dba752 2510 PR c++/43601
47ea1edf
DK
2511 * c.opt (-fkeep-inline-dllexport): New switch.
2512
2aa9c6ae
RG
25132011-01-12 Richard Guenther <rguenther@suse.de>
2514
2515 PR middle-end/32511
2516 * c-common.c (handle_weak_attribute): Warn instead of error
2517 on declaring an inline function weak.
2518
7bd11157
TT
25192011-01-05 Tom Tromey <tromey@redhat.com>
2520
2521 * c-common.h (lvalue_error): Update.
2522 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
2523 not error.
2524
0e66e494 25252010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 2526
b4f588c4
NP
2527 PR objc/47075
2528 * c-objc.h (objc_finish_message_expr): Added argument to
2529 prototype.
2530
f4da8dce
NF
25312010-12-22 Nathan Froyd <froydnj@codesourcery.com>
2532
2533 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
2534 Use prototype_p.
2535
46270f14
NP
25362010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
2537
2538 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 2539 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 2540
4816c593
NF
25412010-12-10 Nathan Froyd <froydnj@codesourcery.com>
2542
2543 * c-common.h (readonly_error): Declare.
2544 * c-common.c (readonly_error): Define.
2545
7a6daeb0
NF
25462010-12-09 Nathan Froyd <froydnj@codesourcery.com>
2547
2548 * c-common.h (invalid_indirection_error): Declare.
2549 * c-common.c (invalid_indirection_error): Define.
2550
892f6119
RG
25512010-12-03 Richard Guenther <rguenther@suse.de>
2552
2553 PR c/46745
2554 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
2555 (pp_c_unary_expression): Likewise.
2556 (pp_c_expression): Likewise.
2557
6c39e757
NP
25582010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
2559
2560 * c-common.h (objc_finish_function): New.
2561 (objc_non_volatilized_type): Removed.
2562 (objc_type_quals_match): Removed.
2563 * stub-objc.c (objc_finish_function): New.
2564 (objc_non_volatilized_type): Removed.
2565 (objc_type_quals_match): Removed.
9faeb493 2566
7c475d11
JM
25672010-11-30 Joseph Myers <joseph@codesourcery.com>
2568
2569 * c-common.h (parse_optimize_options): Declare.
2570 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
2571 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
2572
71f3e391
JM
25732010-11-29 Joseph Myers <joseph@codesourcery.com>
2574
2575 * c-opts.c (check_deps_environment_vars): Use getenv instead of
2576 GET_ENVIRONMENT.
2577 * c-pch.c (O_BINARY): Don't define here.
2578 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
2579
d5fabb58
JM
25802010-11-25 Joseph Myers <joseph@codesourcery.com>
2581
2582 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
2583 targetm.except_unwind_info.
2584
299404a1
JM
25852010-11-23 Joseph Myers <joseph@codesourcery.com>
2586
2587 * c-opts.c (c_common_handle_option): Pass location to
2588 set_struct_debug_option.
2589
c98cd5bf
JM
25902010-11-23 Joseph Myers <joseph@codesourcery.com>
2591
2592 * c-common.c (visibility_options): Move from ../opts.c.
2593 * c-common.h (struct visibility_flags, visibility_options):
2594 Declare here.
2595 * c-opts.c (finish_options): Rename to c_finish_options.
2596 (c_common_init): Update call to finish_options.
2597
a9546771
NP
25982010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
2599
2600 PR objc/34033
2601 * c-lex.c (lex_string): Check that each string in an Objective-C
2602 string concat sequence starts with either one or zero '@', and
2603 that there are no spurious '@' signs at the end.
2604
24a57808
JM
26052010-11-20 Joseph Myers <joseph@codesourcery.com>
2606
2607 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
2608 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
2609 HANDLE_PRAGMA_VISIBILITY.
2610 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
2611 HANDLE_PRAGMA_VISIBILITY): Don't define.
2612 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
2613
a9aa2c3a
NF
26142010-11-20 Nathan Froyd <froydnj@codesourcery.com>
2615
2616 PR c++/16189
2617 PR c++/36888
2618 PR c++/45331
2619 * c-common.h (keyword_begins_type_specifier): Declare.
2620 (keyword_is_storage_class_specifier): Declare.
2621 (keyword_is_type_qualifier): Declare.
2622 * c-common.c (keyword_begins_type_specifier): New function.
2623 (keyword_is_storage_class_specifier): New function.
2624 (keyword_is_type_qualifier): Declare.
2625
5386338c
JM
26262010-11-19 Joseph Myers <joseph@codesourcery.com>
2627
2628 PR c/46547
2629 * c-common.c (in_late_binary_op): Define.
2630 (c_common_truthvalue_conversion): Check in_late_binary_op before
2631 calling c_save_expr.
2632 * c-common.h (in_late_binary_op): Declare.
2633
69ccdddb
JM
26342010-11-19 Joseph Myers <joseph@codesourcery.com>
2635
2636 * c-opts.c (c_common_handle_option): Update calls to
2637 set_struct_debug_option.
2638
6b192a09
NP
26392010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
2640
2641 * c-common.h (objc_declare_protocols): Added additional argument.
2642 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 2643
fb52b50a
NF
26442010-11-18 Nathan Froyd <froydnj@codesourcery.com>
2645
2646 PR c/33193
2647 * c-common.h (build_real_imag_expr): Declare.
2648 * c-semantics.c (build_real_imag_expr): Define.
2649
b37421c6
JM
26502010-11-17 Joseph Myers <joseph@codesourcery.com>
2651
2652 * c-opts.c (c_common_parse_file): Take no arguments.
2653 * c-common.h (c_common_parse_file): Update prototype.
2654
07078664
JJ
26552010-11-16 Jakub Jelinek <jakub@redhat.com>
2656
2657 PR c++/46401
2658 * c-common.c (warning_candidate_p): Don't track non-const calls
2659 or STRING_CSTs.
2660
c6a13190
ILT
26612010-11-15 Ian Lance Taylor <iant@google.com>
2662
2663 * c-lex.c (init_c_lex): Set macro debug callbacks if
2664 flag_dump_go_spec is set.
2665
925e8657
NP
26662010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
2667
2668 * c-common.h (objc_build_incr_expr_for_property_ref): New.
2669 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
2670
bb0a9581
NF
26712010-11-15 Nathan Froyd <froydnj@codesourcery.com>
2672
2673 PR preprocessor/45038
2674 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
2675 dialects.
2676
c5fa0890
JM
26772010-11-12 Joseph Myers <joseph@codesourcery.com>
2678
2679 * c-common.h (c_family_lang_mask): Declare.
2680 * c-opts.c (c_family_lang_mask): Make extern.
2681 * c-pragma.c (handle_pragma_diagnostic): Use
2682 control_warning_option.
2683
a4d8c676
JM
26842010-11-12 Joseph Myers <joseph@codesourcery.com>
2685
2686 * c-common.c (parse_optimize_options): Update call to
2687 decode_options.
2688 * c-common.h (c_common_handle_option): Update prototype.
2689 * c-opts.c (c_common_handle_option): Take location_t parameter and
2690 pass it to other functions.
2691
f954bd2c
JM
26922010-11-11 Joseph Myers <joseph@codesourcery.com>
2693
2694 * c-opts.c (warning_as_error_callback): Remove.
2695 (c_common_initialize_diagnostics): Don't call
2696 register_warning_as_error_callback.
2697 (c_common_handle_option): Handle -Werror=normalized= here.
2698
d8a07487
JM
26992010-11-10 Joseph Myers <joseph@codesourcery.com>
2700
2701 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
2702 in diagnostic.
2703 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
2704 letter.
2705 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
2706 Remove trailing '.' from diagnostics.
2707 * c.opt (Wwrite-strings_: Avoid '`' in help text.
2708
d5478783
JM
27092010-11-10 Joseph Myers <joseph@codesourcery.com>
2710
2711 * c-common.c (parse_optimize_options): Pass global_dc to
2712 decode_options.
2713 * c-opts.c (c_common_handle_option): Pass &global_options to
2714 set_Wstrict_aliasing.
2715 * c.opt (v): Don't mark Common or document here.
2716
91ebb981
IS
27172010-11-06 Iain Sandoe <iains@gcc.gnu.org>
2718
2719 PR target/44981
2720 * c-format.c (format_type): New type gcc_objc_string_format_type.
2721 (valid_stringptr_type_p): New.
2722 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 2723 (check_format_string): Pass expected type, use
91ebb981
IS
2724 valid_stringptr_type_p (), check that the format string types are
2725 consistent with the format specification.
2726 (decode_format_attr): Warn if NSString is used outside objective-c.
2727 (format_types_orig): Add NSString.
2728 (format_name): New.
2729 (format_flags): New.
2730 (check_format_arg): Handle format strings requiring an external parser.
2731 first_target_format_type: New variable.
2732 (handle_format_attribute): Set up first_target_format_type, pass the
2733 expected format arg string type to check_format_string().
2734 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
2735 * stub-objc.c (objc_string_ref_type_p): New.
2736 (objc_check_format_arg): New.
2737
bede2adc
NP
27382010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
2739
9faeb493 2740 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
2741 * c-common.h (objc_build_class_component_ref): New.
2742 * stub-objc.c (objc_build_class_component_ref): New.
2743
9a179d01
NP
27442010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2745
2746 * c.opt (Wproperty-assign-default): New option.
2747
22d8d616
NP
27482010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2749
2750 Implemented -fobjc-std=objc1 flag.
2751 * c.opt (fobjc-std=objc1): New option.
2752
2debdb4f
NP
27532010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
2754
2755 Implemented format and noreturn attributes for Objective-C methods.
2756 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
2757 attribute for Objective-C methods.
2758
ec52b111
JM
27592010-10-31 Jason Merrill <jason@redhat.com>
2760
2761 * c-common.c (conversion_warning, warn_for_collisions_1): Use
2762 EXPR_LOC_OR_HERE.
2763
46a88c12
NP
27642010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
2765
2766 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
2767 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
2768 (objc_add_property_declaration): Removed arguments for copies and
2769 ivar.
2770 (objc_build_getter_call): Renamed to
2771 objc_maybe_build_component_ref.
2772 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2773 (objc_is_property_ref): New.
2774 * c-common.c (c_common_reswords): Removed copies and ivar.
2775 * stub-objc.c (objc_add_property_declaration): Removed arguments
2776 for copies and ivar.
2777 (objc_build_getter_call): Renamed to
2778 objc_maybe_build_component_ref.
2779 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2780 (objc_is_property_ref): New.
9faeb493 2781
1e4bf85b
AC
27822010-10-29 Arnaud Charlet <charlet@adacore.com>
2783 Matthew Gingell <gingell@adacore.com>
2784
2785 * c-ada-spec.c (separate_class_package): New function.
2786 (pp_ada_tree_identifier): Prefix references to C++ classes with the
2787 name of their enclosing package.
2788 (print_ada_declaration): Use separate_class_package.
2789
81f0bab2
JM
27902010-10-27 Jason Merrill <jason@redhat.com>
2791
2b08f2c5
JM
2792 * c-common.c (c_common_reswords): Add __is_literal_type.
2793 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
2794
81f0bab2
JM
2795 * c-common.c (check_case_value): Remove special C++ code.
2796
200290f2
NP
27972010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2798
2799 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
2800 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
2801 and RID_LAST_PATTR.
2802 (objc_add_property_declaration): Added additional arguments.
2803 (objc_property_attribute_kind): Removed.
2804 (objc_set_property_attr): Removed.
2805 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
2806 copy and nonatomic.
2807 * stub-objc.c (objc_add_property_declaration): Added additional
2808 arguments.
2809 (objc_set_property_attr): Removed.
9faeb493 2810
f614132b
NP
28112010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2812
2813 * c-common.h (objc_add_property_variable): Renamed to
2814 objc_add_property_declaration. Added location argument.
2815 * stub-objc.c (objc_add_property_variable): Same change.
2816
b8a18805
NP
28172010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
2818
2819 * c-common.h (objc_maybe_printable_name): New.
2820 * stub-objc.c (objc_maybe_printable_name): New.
2821
30cd1c5d
AS
28222010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2823 Andrew Pinski <pinskia@gmail.com>
2824
2825 * c-common.h (c_common_mark_addressable_vec): Declare.
2826 * c-common.c (c_common_mark_addressable_vec): New function.
2827
249a82c4
NP
28282010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2829
2830 * c-common.h (objc_set_method_type): Removed.
2831 (objc_add_method_declaration): Added boolean argument.
2832 (objc_start_method_definition): Same change.
2833 (objc_build_method_signature): Same change.
2834 * stub-objc.c (objc_set_method_type): Removed.
2835 (objc_add_method_declaration): Added boolean argument.
2836 (objc_start_method_definition): Same change.
2837 (objc_build_method_signature): Same change.
2838
977e30bc
NP
28392010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2840
2841 * c-common.h (finish_file): Removed.
2842 (objc_write_global_declarations): New.
2843 * c-opts.c (c_common_parse_file): Do not call finish_file.
2844 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 2845
da57d1b9
NP
28462010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2847
2848 Implemented parsing @synthesize and @dynamic for
2849 Objective-C/Objective-C++.
2850 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
2851 (objc_add_synthesize_declaration): New.
2852 (objc_add_dynamic_declaration): New.
2853 * c-common.c (c_common_reswords): Add synthesize and dynamic.
2854 * stub-objc.c (objc_add_synthesize_declaration): New.
2855 (objc_add_dynamic_declaration): New.
9faeb493 2856
0069111f
MM
28572010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
2858
2859 PR target/46041
2860 * c-cppbuiltin.c (mode_has_fma): Move function here from
2861 builtins.c. Don't use the fma optab, instead just use the
2862 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
2863 using -save-temps.
2864
e426b47b
NP
28652010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2866
2867 Merge from 'apple/trunk' branch on FSF servers.
0069111f 2868
e426b47b
NP
2869 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
2870
9faeb493 2871 Radar 4330422
e426b47b
NP
2872 * c-common.h (objc_non_volatilized_type): New declaration
2873 * stub-objc.c (objc_non_volatilized_type): New stub.
2874
90fbfdc3
NP
28752010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
2876
e426b47b 2877 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
2878
2879 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
2880
9faeb493 2881 Radar 4133425
90fbfdc3 2882 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 2883 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 2884
c37d8c30
IS
28852010-10-17 Iain Sandoe <iains@gcc.gnu.org>
2886
2887 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
2888 * c-common.h (enum rid): Add RID_AT_PACKAGE.
2889 (objc_ivar_visibility_kind): New enum.
2890 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 2891 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
2892 visibility enum.
2893
1b1562a5
MM
28942010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2895
2896 * c-cppbuiltin.c (builtin_define_float_constants): Emit
2897 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
2898 has the appropriate fma builtins.
2899 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
2900
668ea4b1
IS
29012010-10-14 Iain Sandoe <iains@gcc.gnu.org>
2902
1b1562a5 2903 merge from FSF apple 'trunk' branch.
668ea4b1 2904 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 2905
668ea4b1
IS
2906 Radars 4436866, 4505126, 4506903, 4517826
2907 * c-common.c (c_common_resword): Define @property and its attributes.
2908 * c-common.h: Define property attribute enum entries.
2909 (OBJC_IS_PATTR_KEYWORD): New.
2910 (objc_property_attribute_kind): New enum.
2911 Declare objc_set_property_attr (), objc_add_property_variable (),
2912 objc_build_getter_call () and objc_build_setter_call ().
2913 * stub-objc.c (objc_set_property_attr): New stub.
2914 (objc_add_property_variable): Likewise.
2915 (objc_build_getter_call): Likewise.
2916 (objc_build_setter_call) Likewise.
1b1562a5 2917
a1178b30
IS
29182010-10-13 Iain Sandoe <iains@gcc.gnu.org>
2919
1b1562a5 2920 merge from FSF apple 'trunk' branch.
a1178b30
IS
2921 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
2922
2923 Radar 3803157 (method attributes)
2924 * c-common.c (handle_deprecated_attribute): Recognize
2925 objc methods as valid declarations.
2926 * c-common.h: Declare objc_method_decl ().
1b1562a5 2927 * stub-objc.c (objc_method_decl): New stub.
a1178b30 2928
a75bfaa6
JM
29292010-10-08 Joseph Myers <joseph@codesourcery.com>
2930
2931 * c-common.c (parse_optimize_options): Call
2932 decode_cmdline_options_to_array_default_mask before
2933 decode_options. Update arguments to decode_options.
2934 * c-common.h (c_common_init_options_struct): Declare.
2935 * c-opts.c (c_common_init_options_struct): New. Split out from
2936 c_common_init_options.
2937
f05b9d93
NP
29382010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
2939
2940 Implemented fast enumeration for Objective-C.
2941 * c-common.h (objc_finish_foreach_loop): New.
2942 * stub-objc.c (objc_finish_foreach_loop): New.
2943
1ebe4b4f
JM
29442010-10-05 Joseph Myers <joseph@codesourcery.com>
2945
2946 * c-common.h (struct diagnostic_context): Don't declare here.
2947 (c_common_initialize_diagnostics): Declare using
2948 diagnostic_context typedef.
2949 * c-opts.c (c_common_handle_option): Pass global_dc to
2950 handle_generated_option.
2951
d4d24ba4
JM
29522010-10-04 Joseph Myers <joseph@codesourcery.com>
2953
2954 * c-opts.c (c_common_handle_option): Pass &global_options_set to
2955 handle_generated_option.
2956
478a1c5b
ILT
29572010-10-03 Ian Lance Taylor <iant@google.com>
2958
2959 * c.opt (-fplan9-extensions): New option.
2960
82a1c2fe
FXC
29612010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2962
2963 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
2964 Remove.
2965 (c_cpp_builtins): Call functions from cppbuiltin.c instead
2966 of duplicating code.
2967
92902b1b
IS
29682010-09-30 Iain Sandoe <iains@gcc.gnu.org>
2969
2970 * c-common.c: Add two new entries for @optional
2971 and @required keywords.
2972
2973 merge from FSF 'apple/trunk' branch.
2974 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
2975
2976 Radar 4386773
2977 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
2978 objective-c keywords.
2979 (objc_set_method_opt): New declaration.
2980 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 2981
46625112
JM
29822010-09-30 Joseph Myers <joseph@codesourcery.com>
2983
2984 * c-common.c (handle_optimize_attribute): Pass &global_options to
2985 cl_optimization_save and cl_optimization_restore.
2986 * c-opts.c (c_common_handle_option): Pass &global_options to
2987 handle_generated_option.
2988 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
2989 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
2990 &global_options to cl_optimization_restore.
2991
49b91f05
NP
29922010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
2993
2994 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
2995 Objective-C/Objective-C++ keywords.
2996
13ed556f 29972010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 2998
9faeb493
UB
2999 Merge from 'apple/trunk' branch on FSF servers.
3000
a6341d57
NP
3001 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
3002
3003 Radar 4281748
3004 * c-common.h (objc_check_global_decl): New declaration.
3005 * stub-objc.c (objc_check_global_decl): New stub.
3006
f0036cca
JM
30072010-09-29 Joseph Myers <joseph@codesourcery.com>
3008
3009 * c.opt: Don't use VarExists.
3010
e3339d0f
JM
30112010-09-29 Joseph Myers <joseph@codesourcery.com>
3012
3013 * c-common.c (c_cpp_error): Update names of diagnostic_context
3014 members.
3015 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
3016 cl_optimization members.
3017 * c-opts.c (warning_as_error_callback, c_common_handle_option,
3018 sanitize_cpp_opts, finish_options): Update names of cpp_options
3019 members.
3020
1973201f
NP
30212010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
3022
3023 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
3024 (objc_is_reserved_word): Removed.
3025 * c-common.c: Updated comments.
3026 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
3027 objc_is_reserved_word.
3028 * stub-objc.c (objc_is_reserved_word): Removed.
3029
f7e71da5
IS
30302010-09-28 Iain Sandoe <iains@gcc.gnu.org>
3031
9faeb493 3032 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
3033 include attributes.
3034 (objc_start_method_definition): Likewise.
3035 (objc_build_keyword_decl): Likewise.
3036 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
3037 (objc_start_method_definition): Likewise.
3038 (objc_build_keyword_decl): Likewise.
3039
c165dca7
IS
30402010-09-28 Iain Sandoe <iains@gcc.gnu.org>
3041
3042 * c-common.h (objc_start_class_interface): Adjust prototype.
3043 (objc_start_category_interface): Likewise.
3044 (objc_start_protocol): Likewise.
3045 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
3046 (objc_start_class_interface): Likewise.
3047 (objc_start_category_interface): Likewise.
3048
7458026b
ILT
30492010-09-27 Ian Lance Taylor <iant@google.com>
3050
3051 * c-common.c (c_common_attribute_table): Add no_split_stack.
3052 (handle_no_split_stack_attribute): New static function.
3053
b581b85b
NP
30542010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
3055
9faeb493 3056 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
3057
3058 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
3059
9faeb493 3060 Radar 4229905
b581b85b
NP
3061 * c-common.h (objc_have_common_type): New declaration.
3062 * stub-objc.c (objc_have_common_type): New stub.
3063
3064 2005-06-22 Ziemowit Laski <zlaski@apple.com>
3065
3066 Radar 4154928
3067 * c-common.h (objc_common_type): New prototype.
9faeb493 3068 * stub-objc.c (objc_common_type): New stub.
b581b85b 3069
46a4da10
JH
30702010-09-24 Jan Hubicka <jh@suse.cz>
3071
3072 * c-common.c (handle_leaf_attribute): New function.
3073 (struct attribute_spec c_common_att): Add leaf.
3074
e200444e
JM
30752010-09-22 Joseph Myers <joseph@codesourcery.com>
3076
3077 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
3078 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
3079 -dump, -dump=, -imacros, -imacros=, -include, -include=,
3080 -include-barrier, -include-directory, -include-directory=,
3081 -include-directory-after, -include-directory-after=,
3082 -include-prefix, -include-prefix=, -include-with-prefix,
3083 -include-with-prefix=, -include-with-prefix-after,
3084 -include-with-prefix-after=, -include-with-prefix-before,
3085 -include-with-prefix-before=, -no-integrated-cpp,
3086 -no-line-commands, -no-standard-includes, -no-warnings, -output,
3087 -output=, -pedantic, -pedantic-errors, -preprocess,
3088 -print-missing-file-dependencies, -trace-includes, -traditional,
3089 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
3090 -user-dependencies, -verbose, -write-dependencies,
3091 -write-user-dependencies, no-integrated-cpp, traditional): New.
3092
29a80ea6
NP
30932010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
3094
3095 PR objc/23710
ac1fc2fc
NP
3096 * c-common.h (objc_start_method_definition): Return bool instead
3097 of void.
3098 * stub-objc.c (objc_start_method_definition): Return bool instead
3099 of void.
3100
31012010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
3102
3103 PR objc/25965
3104 * c-common.h (objc_get_interface_ivars): New declaration.
3105 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 3106
de621752
ILT
31072010-09-15 Ian Lance Taylor <iant@google.com>
3108
3109 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 3110 messages. Remove period at end of warning message.
de621752 3111
ba885ec5
NS
31122010-09-09 Nathan Sidwell <nathan@codesourcery.com>
3113
3114 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
3115 (handle_alias_attribute): ... here.
3116 (handle_ifunc_attribute): New.
3117
c5ee1358
MM
31182010-09-06 Mark Mitchell <mark@codesourcery.com>
3119
3120 * c-common.h (do_warn_double_promotion): Declare.
3121 * c-common.c (do_warn_double_promotion): Define.
3122
0a0b3574
MM
31232010-09-05 Mark Mitchell <mark@codesourcery.com>
3124
3125 * c.opt (Wdouble-promotion): New.
3126
d1779886
JM
31272010-09-02 Joseph Myers <joseph@codesourcery.com>
3128
3129 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
3130 fvtable-thunks, fxref): Mark no longer supported in help text.
3131
2d2bd949
JM
31322010-09-02 Joseph Myers <joseph@codesourcery.com>
3133
3134 * c.opt (Wimport, fall-virtual, falt-external-templates,
3135 fdefault-inline, fenum-int-equiv, fexternal-templates,
3136 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
3137 fname-mangling-version-, fnew-abi, fnonnull-objects,
3138 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
3139 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
3140 applicable.
3141 (fhandle-exceptions): Mark with Alias and Warn.
3142 * c-opts.c (c_common_handle_option): Don't handle options marked
3143 as ignored.
3144
5de8299c
JM
31452010-09-02 Joseph Myers <joseph@codesourcery.com>
3146
3147 * c.opt (Wcomments, Werror-implicit-function-declaration,
3148 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
3149 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
3150 aliases.
3151 * c-common.c (option_codes): Use OPT_Wcomment instead of
3152 OPT_Wcomments.
3153 * c-opts.c (warning_as_error_callback, c_common_handle_option):
3154 Don't handle options marked as aliases.
3155
0ceb0201
RG
31562010-08-25 Richard Guenther <rguenther@suse.de>
3157
3158 * c-common.c (c_common_get_alias_set): Remove special
3159 handling for pointers.
3160
ac47786e
NF
31612010-08-20 Nathan Froyd <froydnj@codesourcery.com>
3162
3163 * c-common.c: Use FOR_EACH_VEC_ELT.
3164 * c-gimplify.c: Likewise.
3165 * c-pragma.c: Likewise.
3166
c878765b
JM
31672010-08-16 Joseph Myers <joseph@codesourcery.com>
3168
3169 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
3170 RejectDriver.
3171 (MMDX): Change back to MMD. Mark NoDriverArg instead of
3172 RejectDriver.
3173 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
3174 instead of OPT_MDX and OPT_MMDX.
3175
603349bf
JM
31762010-08-16 Joseph Myers <joseph@codesourcery.com>
3177
3178 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
3179
644fa7ac
JM
31802010-08-12 Joseph Myers <joseph@codesourcery.com>
3181
3182 * c.opt (MD, MMD): Change to MDX and MMDX.
3183 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
3184
481e1176
JM
31852010-08-11 Joseph Myers <joseph@codesourcery.com>
3186
3187 * c-opts.c (c_common_handle_option): Call handle_generated_option
3188 instead of handle_option.
3189
ac8dc9f7
NF
31902010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3191
3192 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
3193 (maybe_apply_renaming_pragma): Delete unneeded declarations.
3194
4f8c876d
NF
31952010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3196
3197 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
3198 (pending_redefine_extname): Change type to a VEC.
3199 (add_to_renaming_pragma_list): Update for new type of
3200 pending_redefine_extname.
ac8dc9f7 3201 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 3202
3b0c690e
AC
32032010-08-04 Arnaud Charlet <charlet@adacore.com>
3204
3205 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
3206 visited.
3207 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
3208 decide whether a type has already been declared/seen.
3209 Do not go to the original type.
3210 (dump_nested_types): New parameter forward.
3211 Generate forward declaration if needed and mark type as visited.
3212 (print_ada_declaration): Call dump_nested_types if not already done.
3213 Mark types as visited.
3214
1890bccc
JM
32152010-08-03 Joseph Myers <joseph@codesourcery.com>
3216
3217 * c.opt (-print-pch-checksum): Remove option.
3218 * c-opts.c (c_common_handle_option): Don't handle
3219 OPT_print_pch_checksum.
3220
5f20c657
JM
32212010-07-27 Joseph Myers <joseph@codesourcery.com>
3222
3223 * c-common.h (c_common_handle_option): Update prototype and return
3224 value type.
3225 * c-opts.c (c_common_handle_option): Update prototype and return
3226 value type. Update calls to handle_option and
3227 enable_warning_as_error.
3228
f551f80c
JJ
32292010-07-27 Jakub Jelinek <jakub@redhat.com>
3230
3231 PR c/45079
3232 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
3233
61ff2bdc
JM
32342010-07-27 Joseph Myers <joseph@codesourcery.com>
3235
3236 * c-common.h (c_common_missing_argument): Remove.
3237 * c-opts.c (c_common_missing_argument): Remove.
3238 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
3239 idirafter, imacros, include, isysroot, isystem, iquote): Add
3240 MissingArgError.
3241 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
3242
7a9bf9a4
JM
32432010-07-27 Joseph Myers <joseph@codesourcery.com>
3244
3245 * c-common.h (c_common_option_lang_mask,
3246 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
3247 New.
3248 (c_common_init_options): Update prototype.
3249 * c-opts.c (c_common_option_lang_mask): New.
3250 (c_common_initialize_diagnostics): Split out of
3251 c_common_init_options.
3252 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
3253 New.
3254 (c_common_init_options): Update prototype. Use decoded options in
3255 search for -lang-asm.
3256
910ad8de
NF
32572010-07-15 Nathan Froyd <froydnj@codesourcery.com>
3258
3259 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
3260 * c-format.c: Likewise.
3261
718f9c0f
MLI
32622010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
3263
3264 * c-common.h: Include diagnostic-core.h. Error if already
3265 included.
3266 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
3267
4d451982
MLI
32682010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3269
3270 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
3271 Do not include expr.h
3272 (vector_mode_valid_p): Move here.
3273
119fe915
SB
32742010-06-21 DJ Delorie <dj@redhat.com>
3275
3276 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
3277 allow these pragmas anywhere.
3278
32792010-06-14 Jakub Jelinek <jakub@redhat.com>
3280
3281 PR bootstrap/44509
3282 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
3283 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
3284 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
3285 ggc_strdup instead of xstrdup.
3286
32872010-06-10 Jakub Jelinek <jakub@redhat.com>
3288
3289 * c-cppbuiltin.c: Include cpp-id-data.h.
3290 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
3291 (lazy_hex_fp_value): New function.
3292 (builtin_define_with_hex_fp_value): Provide definitions lazily.
3293
6662d794
MLI
32942010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3295
3296 * c-gimplify.c: Do not include tree-flow.h
3297
38f8b050
JR
32982010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
3299
3300 PR other/44034
3301 * c-common.c: Rename targetm member:
3302 targetm.enum_va_list -> targetm.enum_va_list_p
3303
9589f23e
AS
33042010-06-28 Anatoly Sokolov <aesok@post.ru>
3305
3306 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
3307
3b06d379
SB
33082010-06-28 Steven Bosscher <steven@gcc.gnu.org>
3309
3310 * c-cppbuiltin.c: Do not include except.h.
3311
d166d4c3
AK
33122010-06-24 Andi Kleen <ak@linux.intel.com>
3313
9faeb493
UB
3314 * c-common.c (warn_for_omitted_condop): New.
3315 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 3316
70cb8be6
JM
33172010-06-21 Joseph Myers <joseph@codesourcery.com>
3318
3319 * c.opt (lang-objc): Remove.
3320 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
3321
a4c97feb
JR
33222010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
3323
3324 * c-opts.c: Include "tm_p.h".
3325
6e2f1956
JM
33262010-06-20 Joseph Myers <joseph@codesourcery.com>
3327
3328 * c-common.c (parse_optimize_options): Update call to
3329 decode_options.
3330
bc87224e
NF
33312010-06-18 Nathan Froyd <froydnj@codesourcery.com>
3332
3333 * c-common.c (record_types_used_by_current_var_decl): Adjust for
3334 new type of types_used_by_cur_var_decl.
3335
b49cf425
JR
33362010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
3337
3338 PR bootstrap/44512
3339 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
3340 for C++ standard compliance.
3341
59f9c2ed
JM
33422010-06-16 Jason Merrill <jason@redhat.com>
3343
3344 * c.opt: Add -Wnoexcept.
3345
33766b66
RG
33462010-06-16 Richard Guenther <rguenther@suse.de>
3347
3348 PR c/44555
3349 * c-common.c (c_common_truthvalue_conversion): Remove
3350 premature and wrong optimization concering ADDR_EXPRs.
3351
eff7e30c
AC
33522010-06-15 Arnaud Charlet <charlet@adacore.com>
3353
3354 * c-ada-spec.c (dump_sloc): Remove column info.
3355 (is_simple_enum): New function.
3356 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
3357 enum types when relevant.
3358
6312e84d
MLI
33592010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3360
9faeb493 3361 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
3362 location.
3363
1cb42611
JM
33642010-06-10 Joseph Myers <joseph@codesourcery.com>
3365
3366 * c-opts.c (c_common_handle_option): Don't handle
3367 OPT_fshow_column.
3368
a9429e29
LB
33692010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3370
3371 * c-pragma.c (push_alignment): Use typed GC allocation.
3372 (handle_pragma_push_options): Likewise.
3373
3374 * c-common.c (parse_optimize_options): Likewise.
3375
3376 * c-common.h (struct sorted_fields_type): Add variable_size GTY
3377 option.
3378
5498f011
JM
33792010-06-07 Joseph Myers <joseph@codesourcery.com>
3380
3381 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
3382 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3383 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3384 flag_signed_bitfields, warn_strict_null_sentinel,
3385 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
3386 flag_gen_declaration, flag_no_gnu_keywords,
3387 flag_implement_inlines, flag_implicit_templates,
3388 flag_implicit_inline_templates, flag_optional_diags,
3389 flag_elide_constructors, flag_default_inline, flag_rtti,
3390 flag_conserve_space, flag_access_control, flag_check_new,
3391 flag_new_for_scope, flag_weak, flag_working_directory,
3392 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
3393 flag_enforce_eh_specs, flag_threadsafe_statics,
3394 flag_pretty_templates): Remove.
3395 * c-common.h (flag_preprocess_only, flag_nil_receivers,
3396 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
3397 flag_replace_objc_classes, flag_undef, flag_no_builtin,
3398 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3399 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3400 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
3401 flag_no_gnu_keywords, flag_implement_inlines,
3402 flag_implicit_templates, flag_implicit_inline_templates,
3403 flag_optional_diags, flag_elide_constructors, flag_default_inline,
3404 flag_rtti, flag_conserve_space, flag_access_control,
3405 flag_check_new, flag_new_for_scope, flag_weak,
3406 flag_working_directory, flag_use_cxa_atexit,
3407 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
3408 flag_threadsafe_statics, flag_pretty_templates,
3409 warn_strict_null_sentinel): Remove.
3410 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
3411 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
3412 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
3413 fimplicit-inline-templates, fimplicit-templates,
3414 flax-vector-conversions, fms-extensions, fnil-receivers,
3415 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
3416 frtti, fshort-double, fshort-enums, fshort-wchar,
3417 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
3418 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
3419 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
3420 gen-decls, undef): Use Var.
3421 (fdefault-inline, foptional-diags): Document as doing nothing.
3422 * c-opts.c (c_common_handle_option): Remove cases for options now
3423 using Var. Mark ignored options as such.
3424
39dabefd
SB
34252010-06-05 Steven Bosscher <steven@gcc.gnu.org>
3426
9faeb493 3427 * c-common.c: Moved to here from parent directory.
39dabefd
SB
3428 * c-common.def: Likewise.
3429 * c-common.h: Likewise.
3430 * c-cppbuiltin.c: Likewise.
3431 * c-dump.c: Likewise.
3432 * c-format.c: Likewise.
3433 * c-format.h : Likewise.
3434 * c-gimplify.c: Likewise.
3435 * c-lex.c: Likewise.
3436 * c-omp.c: Likewise.
3437 * c.opt: Likewise.
3438 * c-opts.c: Likewise.
3439 * c-pch.c: Likewise.
3440 * c-ppoutput.c: Likewise.
3441 * c-pragma.c: Likewise.
3442 * c-pragma.h: Likewise.
3443 * c-pretty-print.c: Likewise.
3444 * c-pretty-print.h: Likewise.
3445 * c-semantics.c: Likewise.
3446 * stub-objc.c: Likewise.
3447
3448 * c-common.c: Include gt-c-family-c-common.h.
3449 * c-pragma.c: Include gt-c-family-c-pragma.h.
3450\f
23a5b65a 3451Copyright (C) 2010-2014 Free Software Foundation, Inc.
39dabefd
SB
3452
3453Copying and distribution of this file, with or without modification,
3454are permitted in any medium without royalty provided the copyright
3455notice and this notice are preserved.