]> gcc.gnu.org Git - gcc.git/blame - gcc/c-family/ChangeLog
tree-ssa-structalias.c (get_constraint_for_ptr_offset): Add asserts to guard possible...
[gcc.git] / gcc / c-family / ChangeLog
CommitLineData
75b107f5
IB
12014-03-11 Ian Bolton <ian.bolton@arm.com>
2
3 * c-opts.c (c_common_post_options): Don't override
4 -ffp-contract=fast if unsafe-math-optimizations is on.
5
f42c637e
PM
62014-03-08 Paulo Matos <paulo@matos-sorge.com>
7
8 * c.opt: Enable LTO FE for fshort-double.
9
70e24808
JM
102014-03-07 Jason Merrill <jason@redhat.com>
11
12 * c.opt: Add -std=c++14.
13
3af9c5e9
MP
142014-03-06 Marek Polacek <polacek@redhat.com>
15
16 PR c/60197
17 * cilk.c (contains_cilk_spawn_stmt): New function.
18 (contains_cilk_spawn_stmt_walker): Likewise.
19 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
20 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
21
b3bdf019
JJ
222014-03-03 Jakub Jelinek <jakub@redhat.com>
23
24 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
25 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
26 even when flag_preprocess_only.
27
ca7e759d
JM
282014-02-26 Jason Merrill <jason@redhat.com>
29
30 PR c++/59231
31 PR c++/11586
32 * c-common.c (shorten_compare): Don't check
33 c_inhibit_evaluation_warnings.
34
28e41874
JJ
352014-02-19 Jakub Jelinek <jakub@redhat.com>
36
cca615af
JJ
37 PR c/37743
38 * c-common.c (c_common_nodes_and_builtins): When initializing
39 c_uint{16,32,64}_type_node, also set corresponding
40 uint{16,32,64}_type_node to the same value.
41
28e41874
JJ
42 PR c++/60267
43 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
44 for PRAGMA_IVDEP if flag_preprocess_only.
45
c2bf53a1
JJ
462014-02-12 Jakub Jelinek <jakub@redhat.com>
47
48 PR c/60101
49 * c-common.c (merge_tlist): If copy is true, call new_tlist,
50 if false, add ADD itself, rather than vice versa.
51 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
52 copy. For SAVE_EXPR, only call merge_tlist once.
53
8fcbce72
JJ
542014-02-08 Jakub Jelinek <jakub@redhat.com>
55
56 PR middle-end/60092
57 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
58 and tree_to_uhwi.
59 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
60 functions.
61 (c_common_attribute_table): Add alloc_align and assume_aligned
62 attributes.
63
0a756a3f
MP
642014-02-06 Marek Polacek <polacek@redhat.com>
65
66 PR c/60087
67 * c-common.c (warn_for_sign_compare): Call warning_at with location
68 instead of warning.
69
7ec4847a
MP
702014-02-05 Marek Polacek <polacek@redhat.com>
71
72 PR c/53123
73 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
74 statement.
75
66f20604
MP
762014-02-04 Marek Polacek <polacek@redhat.com>
77
78 PR c/60036
79 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
80 SAVE_EXPR.
81
5d77fb19
MG
822014-02-03 Marc Glisse <marc.glisse@inria.fr>
83
84 PR c++/53017
85 PR c++/59211
86 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
87 handle_vector_size_attribute, handle_nonnull_attribute): Call
88 default_conversion on the attribute argument.
89 (handle_nonnull_attribute): Increment the argument number.
90
81e5eca8
MP
912014-01-31 Marek Polacek <polacek@redhat.com>
92
93 PR c/59963
94 * c-common.c (add_atomic_size_parameter): Pass vNULL to
95 build_function_call_vec.
96 (resolve_overloaded_builtin): Likewise.
97 * c-common.h (build_function_call_vec): Adjust declaration.
98
68fca595
MP
992014-01-30 Marek Polacek <polacek@redhat.com>
100
101 PR c/59940
102 * c-common.h (unsafe_conversion_p): Adjust declaration.
103 (warnings_for_convert_and_check): Likewise.
104 (convert_and_check): Likewise.
105 * c-common.c (unsafe_conversion_p): Add location parameter. Call
106 expansion_point_location_if_in_system_header on it.
107 (warnings_for_convert_and_check): Add location parameter. Call
108 expansion_point_location_if_in_system_header on it. Use it.
109 (convert_and_check): Add location parameter. Use it.
110 (conversion_warning): Likewise.
111 (c_add_case_label): Adjust convert_and_check calls.
112 (scalar_to_vector): Adjust unsafe_conversion_p calls.
113
b72271b9
BI
1142014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
115
116 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
117 flag_cilkplus.
118 * c-pragma.c (init_pragma): Likewise.
119 * c.opt: Likewise.
120
393e8e8b
MP
1212014-01-23 Marek Polacek <polacek@redhat.com>
122
123 PR c/59846
124 * c-common.c (shorten_compare): Add location_t parameter.
125 * c-common.h (shorten_binary_op): Adjust declaration.
126
f04dda30
MP
1272014-01-23 Marek Polacek <polacek@redhat.com>
128
129 PR c/58346
130 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
131 * c-common.h: Declare it.
132
621955cb
EB
1332014-01-20 Eric Botcazou <ebotcazou@adacore.com>
134
135 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
136 * c-ada-spec.c (dump_ads): Likewise.
137 (cpp_check): Likewise.
138 (dump_ada_specs): Likewise.
139
1402014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
141
142 PR c++/49718
143 * c-common.c (handle_no_instrument_function_attribute): Allow
144 no_instrument_function attribute in class member
145 definition/declaration.
146
241f845a
JJ
1472014-01-15 Jakub Jelinek <jakub@redhat.com>
148
149 PR c/58943
150 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
151 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
152 being COMPOUND_EXPR.
153 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
154 operand a SAVE_EXPR and second MODIFY_EXPR.
155
e83b8e2e
JJ
1562014-01-09 Jakub Jelinek <jakub@redhat.com>
157
158 PR target/58115
159 * c-pch.c (c_common_write_pch): Call
160 prepare_target_option_nodes_for_pch.
161
23a5b65a
RS
1622014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
163
164 Update copyright years
165
f9030485
RS
1662014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
167
168 * array-notation-common.c, c-cilkplus.c: Use the standard form for
169 the copyright notice.
170
f2aa696b
EB
1712013-12-28 Eric Botcazou <ebotcazou@adacore.com>
172
173 * c-ada-spec.c (print_constructor): New function.
174 (print_destructor): Retrieve the origin of the destructor.
175 (print_ada_declaration): Revamp handling of constructors/destructors.
176
1f26ac87
JM
1772013-12-23 Stuart Hastings <stuart@apple.com>
178 Bill Maddox <maddox@google.com>
179 Jason Merrill <jason@redhat.com>
180
181 * c.opt: Add -fdeclone-ctor-dtor.
182 * c-opts.c (c_common_post_options): Default to on iff -Os.
183
41958c28
BI
1842013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
185
186 * c-common.c (c_common_attribute_table): Added "cilk simd function"
187 attribute.
188 * c-pragma.h (enum pragma_cilk_clause): Remove.
189 (enum pragma_omp_clause): Added the following fields:
190 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
191 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
192 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
193 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
194 PRAGMA_CILK_CLAUSE_UNIFORM.
195
196
12893402
BI
1972013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
198
199 * cilk.c (cilk_outline): Made this function non-static.
200 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
201 (create_cilk_wrapper): Added a new parameter: a function pointer.
202 (c_install_body_w_frame_cleanup): Remove
203 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
204 * c-common.h (cilk_outline): New prototype.
205 (gimplify_cilk_spawn): Removed two parameters.
206 (cilk_install_body_with_frame_cleanup): New prototype.
207 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
208 CILK_SPAWN_STMT case.
209
085b42ed
BS
2102013-12-11 Bernd Schmidt <bernds@codesourcery.com>
211
2ce064c3
BS
212 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
213
085b42ed
BS
214 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
215 (int_array_type_node): Remove.
216 * c-common.c (c_common_nodes_and_builtins): Don't build it.
217
9e36c9ed
MP
2182013-12-05 Marek Polacek <polacek@redhat.com>
219
220 PR c/52023
221 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
222 [ADJUST_FIELD_ALIGN].
223
296674db
JM
2242013-12-04 Joseph Myers <joseph@codesourcery.com>
225
226 PR c/52023
227 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
228 and check field alignment if set.
229 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
230 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
231
31e071ae
MP
2322013-12-04 Jakub Jelinek <jakub@redhat.com>
233 Marek Polacek <polacek@redhat.com>
234
235 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
236 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
237
d7947e19
L
2382013-11-29 H.J. Lu <hongjiu.lu@intel.com>
239
240 PR c/59309
241 * cilk.c (gimplify_cilk_spawn): Properly handle function without
242 arguments.
243
fad7652e
JJ
2442013-11-29 Jakub Jelinek <jakub@redhat.com>
245
246 PR c/59280
247 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
248 goto invalid. If it is error_mark_node, don't issue further
249 diagnostics.
250
8b5e1202
SO
2512013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
252
253 * c.opt (Wopenmp-simd): New.
254
0a508bb6
JJ
2552013-11-22 Jakub Jelinek <jakub@redhat.com>
256
257 * c-ubsan.h (ubsan_instrument_return): New prototype.
258 * c-ubsan.c (ubsan_instrument_return): New function.
259
2fb9a547
AM
2602013-11-22 Andrew MacLeod <amacleod@redhat.com>
261
262 * c-common.c: Add required include files from gimple.h.
263 * c-gimplify.c: Likewise
264 * cilk.c: Likewise
265
8400e75e
DM
2662013-11-22 David Malcolm <dmalcolm@redhat.com>
267
268 * c-common.c (unsafe_conversion_p): Remove use of
269 EXPR_LOC_OR_HERE macro.
270 (conversion_warning): Likewise.
271 (warnings_for_convert_and_check): Likewise.
272 (warn_for_collisions_1): Likewise.
273 (shorten_compare): Likewise, and remove use of in_system_header
274 macro, using the location from the former.
275 * c-lex.c (dump_one_header): Remove use of input_filename macro.
276 (cb_def_pragma): Remove use of in_system_header macro.
277 (lex_string): Likewise.
278 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
279
eb1ce453
KZ
2802013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
281 Mike Stump <mikestump@comcast.net>
282 Richard Sandiford <rdsandiford@googlemail.com>
283
284 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
285 instead of TREE_INT_CST_LOW, in cases where there is a protecting
286 tree_fits_shwi_p or tree_fits_uhwi_p.
287 (dump_generic_ada_node): Likewise.
288 * c-format.c (check_format_arg): Likewise.
289 * c-pretty-print.c (pp_c_integer_constant): Likewise.
290
6b3b8c27
KZ
2912013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
292
293 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
294
49b0aa18
JC
2952013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
296
297 PR c/53001
298 * c-common.c (unsafe_conversion_p): Make this function
299 return an enumeration with more detail.
300 (conversion_warning): Use the new return type of
301 unsafe_conversion_p to separately warn either about conversions
302 that lower floating point number precision or about the other
303 kinds of conversions.
304 * c-common.h (enum conversion_safety): New enumeration.
305 (unsafe_conversion_p): switching return type to
306 conversion_safety enumeration.
307 * c.opt: Adding new warning -Wfloat-conversion and
308 enabling it with -Wconversion.
309
b826515a
BS
3102013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
311
312 * c-opts.c: Include plugin.h.
313 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
314
b9a55b13
MP
3152013-11-19 Marek Polacek <polacek@redhat.com>
316
317 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
318 call.
319 (ubsan_instrument_shift): Likewise.
320 (ubsan_instrument_vla): Likewise.
321
7d362f6c
RS
3222013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
323
324 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
325 cast to unsigned type.
326
386b1f1f
RS
3272013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
328
329 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
330 tree_low_cst.
331 (complete_array_type): Update comment to refer to tree_to_[su]hwi
332 rather than tree_low_cst.
333
ae7e9ddd
RS
3342013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
335
336 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
337 tree_to_uhwi throughout.
338
9439e9a1
RS
3392013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
340
341 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
342 tree_low_cst (..., 0) with tree_to_shwi throughout.
343
cc269bb6
RS
3442013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
345
346 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
347 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
348
9541ffee
RS
3492013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
350
351 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
352 host_integerp (..., 0) with tree_fits_shwi_p throughout.
353
c02065fc
AH
3542013-11-15 Aldy Hernandez <aldyh@redhat.com>
355
356 * c-cilkplus.c: New file.
357 * c-common.c (readonly_error): Add location argument.
358 * c-common.h (readonly_error): Same.
359 (c_finish_cilk_clauses): Protoize.
360 (c_check_cilk_loop): Same.
361 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
362 Do not fail on error_mark_node.
363 Abstract increment canonicalization to here...
364 (c_omp_for_incr_canonicalize_ptr): New.
365 c-pragma.c (init_pragma): Register "simd" pragma.
366 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
367 (enum pragma_cilk_clause): New.
368
9cc65f15
RS
3692013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
370
371 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
372 wchar_type and host_integerp checks.
373
18f429e2
AM
3742013-11-14 Andrew MacLeod <amacleod@redhat.com>
375
376 * c-common.c: Likewise.
377 * c-gimplify.c: Likewise.
378 * cilk.c: Likewise.
379
d8a2d370
DN
3802013-11-14 Diego Novillo <dnovillo@google.com>
381
382 * c-common.c: Include fold-const.h.
383 Include stor-layout.h.
384 Include calls.h.
385 Include stringpool.h.
386 Include attribs.h.
387 Include varasm.h.
388 Include trans-mem.h.
389 * c-cppbuiltin.c: Include stor-layout.h.
390 Include stringpool.h.
391 * c-format.c: Include stringpool.h.
392 * c-lex.c: Include stringpool.h.
393 Include stor-layout.h.
394 * c-pragma.c: Include stringpool.h.
395 Include attribs.h.
396 Include varasm.h.
397 Include gcc-symtab.h.
398 * c-pretty-print.c: Include stor-layout.h.
399 Include attribs.h.
400 * cilk.c: Include stringpool.h.
401 Include calls.h.
402
38b7bc7f
JM
4032013-11-13 Joseph Myers <joseph@codesourcery.com>
404
405 * c-common.h (enum rid): Add RID_AUTO_TYPE.
406 * c-common.c (c_common_reswords): Add __auto_type.
407 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
408
45b0be94
AM
4092013-11-12 Andrew MacLeod <amacleod@redhat.com>
410
18f429e2
AM
411 * c-common.c: Include gimplify.h.
412 * c-gimplify.c: Likewise.
413 * cilk.c: Likewise.
414 * c-omp.c: Include gimple-expr.h instead of gimple.h.
415 * c-ubsan.c: Don't include gimple.h.
45b0be94 416
582d9b50
JM
4172013-11-12 Joseph Myers <joseph@codesourcery.com>
418
419 * c-common.c (c_common_reswords): Add _Thread_local.
420
6b28e197
JM
4212013-11-09 Joseph Myers <joseph@codesourcery.com>
422
423 * c-common.c (atomic_size_supported_p): New function.
424 (resolve_overloaded_atomic_exchange)
425 (resolve_overloaded_atomic_compare_exchange)
426 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
427 Use it instead of comparing size with a local list of sizes.
428
267bac10
JM
4292013-11-07 Andrew MacLeod <amacleod@redhat.com>
430 Joseph Myers <joseph@codesourcery.com>
431
432 * c-common.h (enum rid): Add RID_ATOMIC.
433 * c-common.c (c_common_reswords): Add _Atomic.
434 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
435 (keyword_is_type_qualifier): Accept RID_ATOMIC.
436 * c-format.c (check_format_types): Check for extra _Atomic
437 qualifiers in format argument.
438 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
439 (pp_c_type_qualifier_list): Mention _Atomic in comment.
440
5157b91e
TB
4412013-11-06 Tobias Burnus <burnus@net-b.de>
442
443 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
444
6dbe0958
JM
4452013-11-06 Joseph Myers <joseph@codesourcery.com>
446
447 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
448 standards modes.
449 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
450 to mean lack of IEEE 754 support.
451
e8ff5196
TB
4522013-11-05 Tobias Burnus <burnus@net-b.de>
453
454 * c.opt (-Wdate-time): New option
455 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
456
254a0760
JM
4572013-11-05 Joseph Myers <joseph@codesourcery.com>
458
459 * c-cppbuiltin.c (cpp_iec_559_value): Test
460 flag_excess_precision_cmdline not flag_excess_precision.
461
6d7f7e0a
TB
4622013-11-05 Tobias Burnus <burnus@net-b.de>
463
464 * c.opt (fopenmp-simd): New option.
465 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
466 (omp_pragmas): ... this new struct.
467 (c_pp_lookup_pragma): Also walk omp_pragmas.
468 (init_pragma): Init pragmas for -fopenmp-simd.
469
55a7f02f
MP
4702013-11-04 Marek Polacek <polacek@redhat.com>
471
472 PR c++/58979
473 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
474
9193fb05
JM
4752013-11-04 Joseph Myers <joseph@codesourcery.com>
476
477 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
478 New functions.
479 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
480
94159ecf
EB
4812013-11-04 Eric Botcazou <ebotcazou@adacore.com>
482
483 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
484 (dump_ada_specs): Adjust prototype of second callback.
485 * c-ada-spec.c (cpp_check): New global variable.
486 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
487 (print_generic_ada_decl): Likewise.
488 (has_static_fields): Change return type to bool and add guard.
489 (has_nontrivial_methods): New predicate.
490 (is_tagged_type): Change return type to bool.
491 (separate_class_package): Call has_nontrivial_methods.
492 (pp_ada_tree_identifier): Minor tweaks.
493 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
494 (dump_ada_array_domains): Likewise.
495 (dump_ada_array_type): Likewise.
496 (dump_template_types): Remove cpp_check parameter and do not pass it to
497 dump_generic_ada_node.
498 (dump_ada_template): Likewise.
499 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
500 recursively.
501 (print_ada_methods): Change return type to integer. Remove cpp_check
502 parameter and do not pass it down.
503 (dump_nested_types): Remove cpp_check parameter and do not pass it to
504 dump_generic_ada_node.
505 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
506 accessing methods.
507 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
508 down. Use has_nontrivial_methods to recognize C++ classes. Use return
509 value of print_ada_methods.
510 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
511 Set cpp_check to it before invoking dump_ada_nodes.
512 (dump_ada_specs): Likewise.
513
b906f4ca
MP
5142013-11-03 Marek Polacek <polacek@redhat.com>
515
516 * c-ubsan.c: Don't include hash-table.h.
517 (ubsan_instrument_vla): New function.
518 * c-ubsan.h: Declare it.
519
5e20cdc9
DM
5202013-10-31 David Malcolm <dmalcolm@redhat.com>
521
522 Automated part of renaming of symtab_node_base to symtab_node.
523
524 Patch autogenerated by rename_symtab.py from
525 https://github.com/davidmalcolm/gcc-refactoring-scripts
526 revision 58bb219cc090b2f4516a9297d868c245495ee622
527
528 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
529 symtab_node_base to symtab_node.
530
7057e645
ESR
5312013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
532
533 Implement C++14 digit separators.
534 * c-lex.c (interpret_float): Remove digit separators from scratch string
535 before building real literal.
536
193ea7bc
JJ
5372013-10-30 Jakub Jelinek <jakub@redhat.com>
538
539 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
540
939b37da
BI
5412013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
542
543 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
544 fields.
545 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
546 enabled.
547 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
548 (insert_cilk_frame): New prototype.
549 (cilk_init_builtins): Likewise.
550 (gimplify_cilk_spawn): Likewise.
551 (c_cilk_install_body_w_frame_cleanup): Likewise.
552 (cilk_detect_spawn_and_unwrap): Likewise.
553 (cilk_set_spawn_marker): Likewise.
554 (build_cilk_sync): Likewise.
555 (build_cilk_spawn): Likewise.
556 * cilk.c: New file.
557
67348ccc
DM
5582013-10-29 David Malcolm <dmalcolm@redhat.com>
559
560 Patch autogenerated by refactor_symtab.py from
561 https://github.com/davidmalcolm/gcc-refactoring-scripts
562 revision 58bb219cc090b2f4516a9297d868c245495ee622
563
564 * c-gimplify.c (c_genericize): Update for conversion of symtab types
565 to a true class hierarchy.
566 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
567
d570872d
RS
5682013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
569
570 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
571
98906124
JL
5722013-10-26 Jeff Law <law@redhat.com>
573
574 * c-family/c-common.c (c_define_builtins): Remove mudflap support.
575 * c-family/c.opt: Ignore and warn for mudflap options.
576
d73749df 5772013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
578
579 PR other/33426
580 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
581 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
582
3f04b1bb
JM
5832013-10-23 Jason Merrill <jason@redhat.com>
584
585 * c-format.c (gcc_cxxdiag_char_table): Add %X.
586
acf0174b
JJ
5872013-10-11 Jakub Jelinek <jakub@redhat.com>
588
acd15a28
JJ
589 * c-common.h (omp_clause_mask::operator !=): New method.
590 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
591 instead of if (mask & something) tests everywhere.
592
acf0174b
JJ
593 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
594 201307 instead of 201107.
595 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
596 (c_common_attribute_table): Add "omp declare target" and
597 "omp declare simd" attributes.
598 (handle_omp_declare_target_attribute,
599 handle_omp_declare_simd_attribute): New functions.
600 * c-omp.c: Include c-pragma.h.
601 (c_finish_omp_taskgroup): New function.
602 (c_finish_omp_atomic): Add swapped argument, if true,
603 build the operation first with rhs, lhs arguments and use NOP_EXPR
604 build_modify_expr.
605 (c_finish_omp_for): Add code argument, pass it down to make_code.
606 (c_omp_split_clauses): New function.
607 (c_split_parallel_clauses): Removed.
608 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
609 c_omp_declare_simd_clauses_to_decls): New functions.
610 * c-common.h (omp_clause_mask): New type.
611 (OMP_CLAUSE_MASK_1): Define.
612 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
613 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
614 omp_clause_mask::operator |, omp_clause_mask::operator &,
615 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
616 omp_clause_mask::operator ==): New methods.
617 (enum c_omp_clause_split): New.
618 (c_finish_omp_taskgroup): New prototype.
619 (c_finish_omp_atomic): Add swapped argument.
620 (c_finish_omp_for): Add code argument.
621 (c_omp_split_clauses): New prototype.
622 (c_split_parallel_clauses): Removed.
623 (c_omp_declare_simd_clauses_to_numbers,
624 c_omp_declare_simd_clauses_to_decls): New prototypes.
625 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
626 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
627 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
628 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
629 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
630 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
631 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
632 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
633 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
634 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
635 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
636 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
637 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
638 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
639 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
640 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
641 PRAGMA_OMP_CLAUSE_UNIFORM.
642
826cacfe
MG
6432013-10-09 Marc Glisse <marc.glisse@inria.fr>
644
645 PR tree-optimization/20318
646 * c-common.c (handle_returns_nonnull_attribute): New function.
647 (c_common_attribute_table): Add returns_nonnull.
648
2284b034
MG
6492013-10-03 Marc Glisse <marc.glisse@inria.fr>
650
651 PR c++/19476
652 * c.opt (fcheck-new): Move to common.opt.
653
b56e9788
MP
6542013-09-25 Marek Polacek <polacek@redhat.com>
655 Jakub Jelinek <jakub@redhat.com>
656
657 PR sanitizer/58413
658 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
659 an expression if we can prove it is correct.
660 (ubsan_instrument_division): Likewise. Remove unnecessary
661 check.
662
ce6923c5
MP
6632013-09-18 Marek Polacek <polacek@redhat.com>
664
665 PR sanitizer/58411
666 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
667 Declare it.
668 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
669
fb5610fb
IS
6702013-09-14 Iain Sandoe <iain@codesourcery.com>
671
672 PR target/48094
673 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
674 fobjc-gc, freplace-objc-classes): Accept for LTO.
675
88b0e79e
JC
6762013-09-13 Jacek Caban <jacek@codeweavers.com>
677
678 * c-target.def: New hook
679
c9b0866a
PC
6802013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
681
682 PR c++/43452
683 * c.opt (Wdelete-incomplete): Add.
684
0af94e6f
JR
6852013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
686
687 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
688 (vector_types_compatible_elements_p): New function.
689 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
690 declaration.
691 (vector_types_compatible_elements_p): Declare.
692
7c26172c
GDR
6932013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
694
695 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
696 a virtual member function.
697 (pp_simple_type_specifier): Remove.
698 (pp_c_type_specifier): Likewise.
699 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
700 Rename from pp_c_type_specifier. Adjust.
701 (c_pretty_printer::c_pretty_printer): Do not assign to
702 simple_type_specifier.
703
20059c8b
GDR
7042013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
705
706 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
707 member function.
708 (c_pretty_printer::storage_class_specifier): Likewise.
709 (c_pretty_printer::initializer): Likewise.
710 (pp_declaration): Remove.
711 (pp_declaration_specifiers): Likewise.
712 (pp_abstract_declarator): Likewise.
713 (pp_declarator): Likewise.
714 (pp_type_id): Likewise.
715 (pp_statement): Likewise.
716 (pp_constant): Likewise.
717 (pp_id_expression): Likewise.
718 (pp_primary_expression): Likewise.
719 (pp_unary_expression): Likewise.
720 (pp_multiplicative_expression): Likewise.
721 (pp_conditional_expression): Likewise.
722 (pp_assignment_expression): Likewise.
723 (pp_expression): Likewise.
724 (pp_c_type_id): Likewise.
725 (pp_c_storage_class_specifier): Likewise.
726 * c-pretty-print.c (pp_c_type_cast): Tidy.
727 (pp_c_pointer): Likewise.
728 (pp_c_type_specifier): Likewise.
729 (pp_c_parameter_type_list): Likewise.
730 (pp_c_function_definition): Likewise.
731 (pp_c_init_declarator): Likewise.
732 (pp_c_initializer_list): Likewise.
733 (pp_c_constructor_elts): Likewise.
734 (c_pretty_printer::direct_abstract_declarator): Likewise.
735 (c_pretty_printer::declaration_specifiers): Likewise.
736 (c_pretty_printer::primary_expression): Likewise.
737 (c_pretty_printer::postfix_expression): Likewise.
738 (c_pretty_printer::type_id): Rename from pp_c_type_id.
739 (c_pretty_printer::storage_class_specifier): Rename from
740 pp_c_storage_class_specifier.
741 (c_pretty_printer::initializer): Rename from pp_c_initializer.
742 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
743 storage_class_specifier, initializer, offset_list, flags.
744
de5a5fa1
MP
7452013-08-30 Marek Polacek <polacek@redhat.com>
746
747 * c-ubsan.c: New file.
748 * c-ubsan.h: New file.
749
8f0e4d72
GDR
7502013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
751
752 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
753 member function.
754 (c_pretty_printer::declaration_specifiers): Likewise.
755 (c_pretty_printer::declarator): Likewise.
756 (c_pretty_printer::abstract_declarator): Likewise.
757 (c_pretty_printer::direct_abstract_declarator): Likewise.
758 (c_pretty_printer::direct_declarator): Likewise.
759 (c_pretty_printer::function_specifier): Likewise.
760 (pp_declaration): Adjust.
761 (pp_declaration_specifiers): Likewise.
762 (pp_abstract_declarator): Likewise.
763 (pp_direct_declarator): Likewise.
764 (pp_function_specifier): Likewise.
765 (pp_direct_abstract_declarator): Remove as unused.
766 (pp_c_declaration): Remove.
767 (pp_c_declaration_specifiers): Likewise.
768 (pp_c_declarator): Likewise.
769 (pp_c_direct_declarator): Likewise.
770 (pp_c_function_specifier): Likewise.
771 (pp_c_direct_abstract_declarator): Likewise.
772 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
773 from pp_c_abstract_declarator. Adjust.
774 (c_pretty_printer::direct_abstract_declarator): Rename from
775 pp_c_direct_abstract_declarator. Adjust.
776 (c_pretty_printer::function_specifier): Rename from
777 pp_c_function_specifier. Adjust.
778 (c_pretty_printer::declaration_specifiers): Rename from
779 pp_c_declaration_specifiers. Adjust.
780 (c_pretty_printer::direct_declarator): Rename from
781 pp_c_direct_declarator. Adjust.
782 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
783 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
784 (c_pretty_printer::c_pretty_printer): Do not assign to
785 declaration, declaration_specifiers, declarator,
786 direct_declarator, direct_abstract_declarator, function_specifier.
787
00d34d3a
GDR
7882013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
789
790 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
791 virtual member function.
792 (c_pretty_printer::multiplicative_expression): Likewise.
793 (c_pretty_printer::conditional_expression): Likewise.
794 (c_pretty_printer::assignment_expression): Likewise.
795 (c_pretty_printer::expression): Likewise.
796 (pp_unary_expression): Adjust.
797 (pp_multiplicative_expression): Likewise.
798 (pp_assignment_expression): Likewise.
799 (pp_conditional_expression): Likewise.
800 (pp_expression): Likewise.
801 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
802 from pp_c_unary_expression. Adjust.
803 (c_pretty_printer::multiplicative_expression): Rename from
804 pp_c_multiplicative_expression. Adjust.
805 (c_pretty_printer::conditional_expression): Rename from
806 pp_c_conditional_expression. Adjust.
807 (c_pretty_printer::assignment_expression): Rename from
808 pp_c_assignment_expression. Adjust.
809 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
810 (c_pretty_printer::c_pretty_printer): Do not assign to
811 unary_expression, multiplicative_expression,
812 conditional_expression, expression.
813
fb22178f
GDR
8142013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
815
816 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
817 virtual member function.
818 (pp_postfix_expression): Adjust.
819 (pp_c_postfix_expression): Remove.
820 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
821 from pp_c_postfix_expression. Adjust.
822 (c_pretty_printer::c_pretty_printer): Do not assign to
823 postfix_expression.
824
7ecc2600
GDR
8252013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
826
827 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
828 virtua member function.
829 (pp_primary_expression): Adjust.
830 (pp_c_primary_expression): Remove.
831 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
832 from pp_c_primary_expression. Adjust.
833 (pp_c_initializer_list): Use pp_primary_expression.
834 (c_pretty_printer::c_pretty_printer): Do not assign to
835 primary_expression.
836
0691175f
GDR
8372013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
838
839 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
840 * c-pretty-print.c (M_): Remove.
841 (c_pretty_printer::translate_string): Define.
842 (pp_c_type_specifier): Use it.
843 (pp_c_primary_expression): Likewise.
844 (pp_c_expression): Likewise.
845
66dfe4c4
GDR
8462013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
847
848 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
849 virtual function.
850 (pp_c_id_expression): Remove.
851 (pp_id_expression): Adjust.
852 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
853 pp_c_id_expression. Adjust.
854 (pp_c_postfix_expression): Use pp_id_expression.
855 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
856
ca43e9d5
GDR
8572013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
858
859 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
860 member function.
861 (pp_constant): Adjust.
862 (pp_c_constant): Remove.
863 * c-pretty-print.c (c_pretty_printer::constant): Rename from
864 pp_c_constant. Adjust.
865 (pp_c_constant)
866 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
867 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
868
da6ca2b5
GDR
8692013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
870
871 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
872 (c_pretty_printer::c_pretty_printer): Declare.
873 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
874 c_pretty_printer_init. Adjust.
875 (print_c_tree): Do not call c_pretty_printer_init.
876 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
877
65a372f4
AC
8782013-08-09 Arnaud Charlet <charlet@adacore.com>
879
880 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
881
fd9b0f32
PC
8822013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
883
884 PR c++/58080
885 * c-common.c (pointer_int_sum): Add bool parameter.
886 * c-common.h (pointer_int_sum): Adjust declaration.
887
e0aec1e9
GDR
8882013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
889
890 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
891 c_pretty_printer variable.
892
b066401f
GDR
8932013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
894
895 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
896 (pp_base): Remove.
897 (pp_c_base): Likewise. Adjust users.
898 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
899 (pp_c_whitespace): Do not call pp_base.
900 (pp_c_left_paren): Likewise.
901 (pp_c_right_paren): Likewise.
902 (pp_c_left_brace): Likewise.
903 (pp_c_right_brace): Likewise.
904 (pp_c_left_bracket): Likewise.
905 (pp_c_right_bracket): Likewise.
906 (pp_c_dot): Likewise.
907 (pp_c_ampersand): Likewise.
908 (pp_c_star): Likewise.
909 (pp_c_arrow): Likewise.
910 (pp_c_semicolon): Likewise.
911 (pp_c_complement): Likewise.
912 (pp_c_exclamation): Likewise.
913 (pp_c_direct_declarator): Likewise.
914 (pp_c_ws_string): Likewise.
915 (pp_c_identifier): Likewise.
916 (pp_c_statement): Likewise.
917 (print_c_tree): Likewise.
918
65e5a578
ESR
9192013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
920
921 PR c++/58072
922 * c-common.c (c_parse_error): Catch user-defined literal tokens and
923 provide useful error strings.
924
137a1a27
GDR
9252013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
926
927 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
928 printer functions instead of pp_string or operators and punctuators.
929 (dump_generic_ada_node): Likewise.
930 * c-pretty-print.c (pp_c_type_specifier): Likewise.
931 (pp_c_relational_expression): Likewise.
932 (pp_c_logical_or_expression): Likewise.
933
07838b13
GDR
9342013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
935
936 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
937 functions instead of pp_character.
938 (pp_ada_tree_identifier): Likewise.
939 (dump_ada_double_name): Likewise.
940 (dump_ada_function_declaration): Likewise.
941 (dump_ada_array_domains): Likewise.
942 (dump_template_types): Likewise.
943 (dump_generic_ada_node): Likewise.
944 (print_ada_declaration): Likewise.
945 (print_ada_struct_decl): Likewise.
946 * c-pretty-print.c (pp_c_integer_constant): Likewise.
947
433cc7b0
TT
9482013-07-23 Tom Tromey <tromey@redhat.com>
949
950 * c-common.h (enum rid) <RID_GENERIC>: New constant.
951 * c-common.c (c_common_reswords): Add _Generic.
952
688010ba
OB
9532013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
954
955 * c-common.c: Fix typos.
956 * c-common.h: Likewise.
957
2a99e5e6
LL
9582013-07-13 Lubos Lunak <l.lunak@suse.cz>
959
960 PR c++/55203
961 * c-common.c (c_common_attribute_table): Add warn_unused.
962 (handle_warn_unused_attribute): New.
963
c26302d5
JJ
9642013-07-10 Jakub Jelinek <jakub@redhat.com>
965
966 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
967 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
968
dfeadaa0
PC
9692013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
970
971 PR c++/57869
972 * c.opt: Add Wconditionally-supported.
973
6a2fa4b2
GS
9742013-07-08 Graham Stott <graham.stott@btinternet.com>
975
976 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
977 unused variables l_length and l_node.
978
ecdbd01a 9792013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
980
981 PR c/57821
982 * c-common.c (complete_array_type): Delay folding first index
983 like other indices. When folding, check for index overflow.
984
bedc293e
MG
9852013-06-27 Marc Glisse <marc.glisse@inria.fr>
986
987 PR c++/57509
988 * c-common.h (c_build_vec_perm_expr): New complain argument.
989 * c-common.c (c_build_vec_perm_expr): Likewise.
990 Use save_expr also in C++.
991
604b2bfc
GDR
9922013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
993
994 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
995 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
996 * c-opts.c (c_common_post_options): Likewise.
997
dfeadaa0 9982013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
999
1000 * array-notation-common.c (length_mismatch_in_expr): Changed the
1001 parameter type's from a dynamic array to a vec_tree. Also removed
1002 the size parameters.
1003 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
1004 the change above.
1005
2ce86d2e
BI
10062013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
1007
1008 * c-common.h (struct cilkplus_an_parts): New structure.
1009 (struct cilkplus_an_loop_parts): Likewise.
1010 (cilkplus_extract_an_triplets): New prototype.
1011 (fix_sec_implicit_args): Likewise.
1012 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
1013 (fix_sec_implicit_args): Likewise.
604b2bfc 1014
07a6825b
BI
10152013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
1016
1017 * array-notation-common.c (find_inv_trees): Removed an unwanted
1018 typecasting.
1019 * c-common.h (struct inv_list::additional_tcodes): Changed type from
1020 enum rid to enum tree_code.
1021
08346abd
JH
10222013-06-11 Jan Hubicka <jh@suse.cz>
1023
1024 * c-common.c (handle_alias_ifunc_attribute): Do not set
1025 DECL_EXTERNAL for weakref variables.
1026 * c-pragma.c (handle_pragma_weak): Make sure aliases
1027 are not declared as external.
1028
d60f1706
BI
10292013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
1030
1031 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
1032 function from c/c-array-notation.c.
1033 (is_cilkplus_reduce_builtin): Likewise.
1034 (find_rank): Likewise.
1035 (extract_array_notation_exprs): Likewise.
1036 (replace_array_notations): Likewise.
1037 (find_inv_trees): Likewise.
1038 (replace_inv_trees): Likewise.
1039 (contains_array_notation_expr): Likewise.
1040 (find_correct_array_notation_type): Likewise.
1041 * c-common.h (struct inv_list): Moved this struct from the file
1042 c/c-array-notation.c and added a new field called additional tcodes.
1043 (length_mismatch_in_expr_p): New prototype.
1044 (is_cilkplus_reduce_builtin): Likewise.
1045 (find_rank): Likewise.
1046 (extract_array_notation_exprs): Likewise.
1047 (replace_array_notation): Likewise.
1048 (find_inv_trees): Likewise.
1049 (replace_inv_trees): Likewise.
1050 (find_correct_array_notation_type): Likewise.
dfeadaa0 1051
36536d79
BI
10522013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
1053
1054 * c-common.c (c_define_builtins): When cilkplus is enabled, the
1055 function array_notation_init_builtins is called.
1056 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
1057 * c-common.def (ARRAY_NOTATION_REF): New tree.
1058 * c-common.h (build_array_notation_expr): New function declaration.
1059 (build_array_notation_ref): Likewise.
1060 (extract_sec_implicit_index_arg): New extern declaration.
1061 (is_sec_implicit_index_fn): Likewise.
1062 (ARRAY_NOTATION_CHECK): New define.
1063 (ARRAY_NOTATION_ARRAY): Likewise.
1064 (ARRAY_NOTATION_START): Likewise.
1065 (ARRAY_NOTATION_LENGTH): Likewise.
1066 (ARRAY_NOTATION_STRIDE): Likewise.
1067 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
1068 ARRAY_NOTATION_REF.
1069 (pp_c_expression): Likewise.
1070 * c.opt (flag_enable_cilkplus): New flag.
1071 * array-notation-common.c: New file.
1072
f7716d57
JJ
10732013-05-14 Jakub Jelinek <jakub@redhat.com>
1074
1075 PR c++/57274
1076 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
1077
a5e0cd1d
MG
10782013-05-10 Marc Glisse <marc.glisse@inria.fr>
1079
1080 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
1081 vectors.
1082
f6bc1c4a
HS
10832013-05-07 Han Shen <shenhan@google.com>
1084
1085 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
1086
3f12f6e9
SKS
10872013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1088
1089 * c-common.c (check_user_alignment): Emit error for negative values.
1090
61949153
PC
10912013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1092
1093 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
1094
e93e18e9
PC
10952013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1096
1097 * c-cppbuiltin.c (c_cpp_builtins): Do not define
1098 __GXX_EXPERIMENTAL_CXX1Y__.
1099
44d90fe1
PC
11002013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1101 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1102
1103 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
1104 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
1105 to simply use OPT_Wpointer_arith.
1106 (c_sizeof_or_alignof_type): Likewise.
1107
13f39b2e
PC
11082013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1109
1110 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
1111
4b84d650
JJ
11122013-04-12 Jakub Jelinek <jakub@redhat.com>
1113
1114 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
1115 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
1116 specifiers.
1117
fb037b5d
SB
11182013-04-07 Steven Bosscher <steven@gcc.gnu.org>
1119
1120 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
1121
4e856798
PC
11222013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
1123
1124 * c-common.c (pointer_int_sum): Remove dead code.
1125
4b1baac8
RS
11262013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
1127
1128 PR middle-end/56524
1129 * c-common.c (handle_optimize_attribute): Don't call
1130 save_optabs_if_changed.
1131
0b50e654
JJ
11322013-03-05 Jakub Jelinek <jakub@redhat.com>
1133
1134 PR middle-end/56461
1135 * c-pch.c (pch_init): Free target_validity at the end.
1136
48c41403
JJ
11372013-03-04 Jakub Jelinek <jakub@redhat.com>
1138
1139 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
1140
e664c61c
KS
11412013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
1142 Jakub Jelinek <jakub@redhat.com>
1143
1144 PR sanitizer/56454
1145 * c-common.c (handle_no_sanitize_address_attribute): New function.
1146 (c_common_attribute_table): Add no_sanitize_address attribute.
1147 (handle_no_address_safety_analysis_attribute): Add
1148 no_sanitize_address attribute, not no_address_safety_analysis
1149 attribute.
1150
a475fd3d 11512013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
1152
1153 PR target/52555
1154 * c-common.c (handle_optimize_attribute): Call
1155 save_optabs_if_changed.
1156
f6007d99
JJ
11572013-02-18 Jakub Jelinek <jakub@redhat.com>
1158 Steven Bosscher <steven@gcc.gnu.org>
1159
1160 PR pch/54117
1161 * c-opts.c (c_common_post_options): If debug info is enabled
1162 and non-dwarf*, refuse to load PCH files and when writing PCH
1163 file warn.
1164
cf35e2b1
JJ
11652013-02-05 Jakub Jelinek <jakub@redhat.com>
1166
1167 PR middle-end/56167
1168 * c-common.c (handle_error_attribute): Fix condition.
1169
32887460
JJ
11702013-01-30 Jakub Jelinek <jakub@redhat.com>
1171
1172 PR c++/55742
1173 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
1174
5af057d8
JM
11752013-01-18 Jason Merrill <jason@redhat.com>
1176
1177 PR target/54908
1178 * c.opt (-fextern-tls-init): New.
1179 * c-opts.c (c_common_post_options): Handle it.
1180
cc83c823
JJ
11812013-01-09 Jakub Jelinek <jakub@redhat.com>
1182
1183 PR c/48418
1184 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
1185 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
1186 and is either negative or bigger or equal to type precision
1187 of the first operand.
1188
a859517f
MP
11892012-12-03 Marek Polacek <polacek@redhat.com>
1190
1191 PR c/55570
1192 * c-common.c (check_user_alignment): Swap order of tests,
1193 check TREE_CODE first.
1194
2d7aa578
ESR
11952012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
1196
1197 PR c++/52654
1198 * c-common.h (overflow_type): New enum.
1199 (build_userdef_literal): Add overflow_type argument.
1200 (tree_userdef_literal): Add overflow_type.
1201 (USERDEF_LITERAL_OVERFLOW): New access macro.
1202 * c-common.c (build_userdef_literal): Add overflow_type
1203 argument.
1204 * c-lex.c (c_lex_with_flags): Add overflow_type to
1205 build_userdef_literal calls.
1206 (interpret_integer, interpret_float): Add overflow_type argument.
1207
cc3c4f62
RB
12082012-11-28 Richard Biener <rguenther@suse.de>
1209
1210 PR c/35634
1211 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1212 here and use a type with proper overflow behavior for types that would
1213 need to be promoted for the arithmetic.
1214
77bc5132
JJ
12152012-11-23 Jakub Jelinek <jakub@redhat.com>
1216
1217 PR sanitizer/55435
1218 * c-common.c (handle_no_address_safety_analysis_attribute): New
1219 function.
1220 (c_common_attribute_table): Add no_address_safety_analysis.
1221
5dc99c46
SB
12222012-11-16 Simon Baldwin <simonb@google.com>
1223
1224 * c.opt: Add f[no-]canonical-system-headers.
1225 * c-opts.c (c_common_handle_option): Handle
1226 OPT_fcanonical_system_headers.
1227
a4a0016d
ESR
12282012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
1229
1230 PR c++/54413
1231 * c-opts.c (c_common_handle_option): Set new flags.
1232 * c.opt: Describe new flags.
1233
7dbb85a7
JM
12342012-11-09 Jason Merrill <jason@redhat.com>
1235
1236 * c.opt (Wabi-tag): New.
1237
ad7bac31
AK
12382012-11-09 Andi Kleen <ak@linux.intel.com>
1239
1240 PR 55139
1241 * c-common.c (get_atomic_generic_size): Mask with
1242 MEMMODEL_MASK
1243
7332899a
MLI
12442012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1245
1246 PR c/53063
1247 * c.opt (Wformat): Make it Alias Wformat=1.
1248 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
1249 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
1250 LangEnabledBy.
1251 (Wformat=): RejectNegative. Use LangEnabledBy.
1252 (Wnonnull): Use LangEnabledBy.
1253 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
1254 * c-format.c (set_Wformat): Delete.
1255 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
1256 (maybe_read_dollar_number): Likewise.
1257 (avoid_dollar_number): Likewise.
1258 (finish_dollar_format_checking): Likewise.
1259 (check_format_info): Likewise.
1260 (check_format_info_main): Likewise.
1261 (check_format_types): Likewise.
1262 (format_type_warning): Likewise.
1263 * c-common.c (int): Likewise.
1264 (check_function_sentinel): Likewise.
1265 * c-common.h (warn_format,set_Wformat): Do not declare here.
1266
34a180a6
MLI
12672012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1268
1269 PR c/53063
1270 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
1271 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
1272 Use LangEnabledBy.
1273 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
1274 common.opt.
1275 (Wvariadic-macros): Init(1).
1276 * c-opts.c (c_common_handle_option): Do not handle them
1277 explicitly.
1278 (c_common_post_options): Likewise.
1279 (sanitize_cpp_opts): warn_unused_macros is now
1280 cpp_warn_unused_macros.
1281 (push_command_line_include): Likewise.
1282 * c-common.c (warn_unknown_pragmas): Do not define.
1283 * c-common.h (warn_unknown_pragmas): Do not declare.
1284
3f46d6a5
MLI
12852012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1286
1287 PR c/51294
1288 * c-common.c (conversion_warning): Handle conditional expressions.
1289
880661a4
JW
12902012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
1291
1292 PR c++/54930
1293 * c.opt (Wreturn_local_addr): Define new option.
1294
4514a96b
JM
12952012-10-25 Jason Merrill <jason@redhat.com>
1296
f14edc1a
JM
1297 * c.opt (Wvirtual-move-assign): New.
1298
4514a96b
JM
1299 * c.opt (Winherited-variadic-ctor): New.
1300
93100c6b
MG
13012012-10-25 Marc Glisse <marc.glisse@inria.fr>
1302
1303 PR c++/54427
1304 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
1305
1efcb8c6
JM
13062012-10-23 Joseph Myers <joseph@codesourcery.com>
1307
1308 * c-common.h (pch_cpp_save_state): Declare.
1309 * c-target.def (c_preinclude): New hook.
1310 * c-opts.c (done_preinclude): New.
1311 (push_command_line_include): Handle default preincluded header.
1312 (cb_file_change): Call pch_cpp_save_state when calling
1313 push_command_line_include.
1314 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
1315 (pch_cpp_save_state): New.
1316 (pch_init): Call pch_cpp_save_state conditionally, instead of
1317 calling cpp_save_state.
1318
4a0ae68e
MLI
13192012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1320
1321 PR c/53063
1322 PR c/40989
1323 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
1324 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
1325 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
1326 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
1327 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
1328 * c-opts.c (c_common_handle_option): Remove explicit handling from
1329 here.
1330 (c_common_post_options): Likewise.
1331
67e4210b
EB
13322012-10-18 Eric Botcazou <ebotcazou@adacore.com>
1333
1334 * c-ada-spec.c (LOCATION_COL): Delete.
1335 (compare_location): New function.
1336 (compare_node): Use it.
1337 (compare_comment): Likewise.
1338
65d4f2cd
MLI
13392012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1340
1341 PR c/53063
1342 PR c/40989
1343 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
1344 * c-opts.c (c_common_handle_option): Do not set them here. Add
1345 comment.
1346 (c_common_post_options): Likewise.
1347
909881cb
EB
13482012-10-16 Eric Botcazou <ebotcazou@adacore.com>
1349
1350 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
1351 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
1352 Remove POINTER_TYPE handling, add large unsigned handling and use
1353 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
1354
3a785c97
JJ
13552012-10-12 Jakub Jelinek <jakub@redhat.com>
1356
1357 PR c/54381
1358 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
1359 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
1360 locs and array of 3 trees instead of just single loc and single
1361 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
1362 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
1363 For *cmp* builtins that take two sources strings report warnings
1364 about first and second source, not about destination and source.
1365
5e54f81d
MG
13662012-10-12 Marc Glisse <marc.glisse@inria.fr>
1367
1368 PR c++/53055
1369 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
1370
f5b02f1e
EB
13712012-10-11 Eric Botcazou <ebotcazou@adacore.com>
1372
1373 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
1374 declaring something coming from another file.
1375
b46dbc6c
AC
13762012-10-10 Arnaud Charlet <charlet@adacore.com>
1377
f5b02f1e 1378 PR ada/54845
b46dbc6c
AC
1379 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
1380
5d9de0d0
PC
13812012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
1382
1383 PR c++/54194
1384 * c-common.c (warn_about_parentheses): Add location_t parameter;
1385 use EXPR_LOC_OR_LOC.
1386 * c-common.h: Update declaration.
1387
a212e43f
MG
13882012-10-09 Marc Glisse <marc.glisse@inria.fr>
1389
1390 PR c++/54427
1391 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
1392 more operations. Make error messages optional.
1393 * c-common.h (enum stv_conv): Moved from c-typeck.c.
1394 (scalar_to_vector): Declare.
1395
b1db7f91
JM
13962012-10-08 Jason Merrill <jason@redhat.com>
1397
1398 * c-common.c (c_common_reswords): Add thread_local.
1399
e28d52cf
DS
14002012-10-08 Dodji Seketeli <dodji@redhat.com>
1401
1402 PR c++/53528 C++11 attribute support
1403 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
1404 new functions.
1405 * c-common.c (check_cxx_fundamental_alignment_constraints): New
1406 static function.
1407 (handle_aligned_attribute): In choose strictest alignment
1408 among many. Use new check_cxx_fundamental_alignment_constraints.
1409 (handle_transparent_union_attribute): In c++11 attribute syntax,
1410 don't look through typedefs.
1411
3b78de56
AC
14122012-10-04 Arnaud Charlet <charlet@adacore.com>
1413
1414 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
1415 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
1416 out of dumpfile.h.
1417
6040bb5f
DC
14182012-09-25 Dehao Chen <dehao@google.com>
1419
1420 PR middle-end/54645
3b78de56 1421 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
1422 map when read in the pch.
1423
0b07a57e
AC
14242012-09-18 Arnaud Charlet <charlet@adacore.com>
1425
1426 * c-ada-spec.c: Style fixes.
1427
da5182be
TQ
14282012-09-18 Thomas Quinot <quinot@adacore.com>
1429
1430 * c.opt (-fada-spec-parent): Define new command line switch.
1431 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
1432 is specified, generate binding spec as a child of the specified unit.
1433
0ccb505d
PC
14342012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
1435 Manuel López-Ibáñez <manu@gcc.gnu.org>
1436
1437 PR c++/53210
1438 * c.opt ([Winit-self]): Enabled by -Wall in C++.
1439
c583af79
AC
14402012-08-23 Arnaud Charlet <charlet@adacore.com>
1441
1442 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
1443 for pointers, and add missing Convention C pragma.
1444 (print_ada_struct_decl): Add missing aliased keyword.
1445 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
1446
1a4049e7
JJ
14472012-08-17 Jakub Jelinek <jakub@redhat.com>
1448
1449 * c-common.c (sizeof_pointer_memaccess_warning): New function.
1450 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
1451 * c-opts.c (c_common_handle_option): Enable it for -Wall.
1452 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
1453 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
1454
70b5e7dc
RG
14552012-08-10 Richard Guenther <rguenther@suse.de>
1456
1457 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
1458
f8923f7e
SB
14592012-08-07 Steven Bosscher <steven@gcc.gnu.org>
1460
1461 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
1462 instead of separate pp_newline and pp_flush.
1463 (print_c_tree): Likewise.
1464
e45abe1f
RH
14652012-07-26 Richard Henderson <rth@redhat.com>
1466
1467 * c-common.c (handle_hot_attribute): Allow labels.
1468 (handle_cold_attribute): Likewise.
1469
332f1d24
JJ
14702012-07-20 Jakub Jelinek <jakub@redhat.com>
1471
1472 PR c++/28656
1473 * c-common.c (check_function_nonnull): Handle multiple nonnull
1474 attributes properly.
1475
7ee2468b
SB
14762012-07-16 Steven Bosscher <steven@gcc.gnu.org>
1477
1478 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
1479 * c-ada-spec.c: Likewise.
1480 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
1481
ee7b28eb
SB
14822012-07-14 Steven Bosscher <steven@gcc.gnu.org>
1483
1484 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
1485 Remove code conditional on it.
1486
6bdf3519
SB
14872012-07-11 Steven Bosscher <steven@gcc.gnu.org>
1488
1489 * c-gimplify.c: Do not include basic-block.h.
1490 * c-common.c: Do not include linfuncs.h.
1491
532aafad
SB
14922012-07-08 Steven Bosscher <steven@gcc.gnu.org>
1493
1494 * c-common.h: Include tree.h.
1495
8d0d1915
JM
14962012-07-02 Jason Merrill <jason@redhat.com>
1497
1498 PR c++/53524
1499 * c-common.c (get_priority): Call default_conversion.
1500
fbc873ad
UB
15012012-07-01 Uros Bizjak <ubizjak@gmail.com>
1502
1503 * c-pch.c (c_common_write_pch): Remove unused variables.
1504
d4a10d0a
SB
15052012-06-29 Steven Bosscher <steven@gcc.gnu.org>
1506
1507 * cppspec.c: Moved from gcc/ to here.
1508
6f3a2e23
KT
15092012-06-27 Kai Tietz <ktietz@redhat.com>
1510
1511 PR preprocessor/37215
1512 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
1513
8ca92d04
SB
15142012-06-21 Steven Bosscher <steven@gcc.gnu.org>
1515
1516 * c-common.h (c_common_print_pch_checksum): Remove.
1517 * c-pch.c: Do not include output.h.
1518 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
1519 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
1520 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
1521 (struct c_pch_header): Remove.
1522 (get_ident): Update gpch version.
1523 (pch_init): Do not print executable_checksum to asm_out_file.
1524 Do not fail if there is no asm_out_file to read back from. Set
1525 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
1526 (c_common_write_pch): Verify that nothing was written to asm_out_file
1527 since pch_init was called. Do not write a c_pch_header, and do not
1528 copy from asm_out_file to the PCH.
1529 (c_common_read_pch): Do not read a c_pch_header, and do not restore
1530 the content of asm_out_file from the PCH.
1531 (c_common_print_pch_checksum): Remove.
1532 * c-opts.c (c_common_init): Print out executable_checksum directly.
1533
70f42967
SB
15342012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1535
1536 * c-target.def (objc_declare_unresolved_class_reference,
1537 objc_declare_class_definition): Add new hooks.
1538
a8781821
SB
15392012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1540
1541 * c-lex.c: Do not include output.h.
1542 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
1543 Remove uses of ASM_OUTPUT_IDENT.
1544
9e1a8dd1
RR
15452012-06-15 Marc Glisse <marc.glisse@inria.fr>
1546
1547 PR c++/51033
1548 * c-common.h (c_build_vec_perm_expr): Move decl here.
1549 * c-common.c (c_build_vec_perm_expr): Move definition
1550 here.
1551
6f07a821
SB
15522012-06-06 Steven Bosscher <steven@gcc.gnu.org>
1553
1554 * c.opt (fconserve-space): Turn into a no-op.
1555
9faeb493 15562012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
1557
1558 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
1559 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
1560 both the start and end of the function.
1561
a4b7d13c
SB
15622012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1563
1564 * c-common.c: Do not include output.h.
1565 * c-pragma.c: Likewise.
1566
c265f413
SA
15672012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1568
1569 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
1570 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
1571 (lang_decl_name): Handle namespace decls.
1572
be7a421e
SB
15732012-05-31 Steven Bosscher <steven@gcc.gnu.org>
1574
1575 * c-ada-spec.c: Do not include output.h.
1576 * c-semantics.c: Likewise.
1577
65de6659
JM
15782012-05-29 Joseph Myers <joseph@codesourcery.com>
1579
1580 * c-common.c: Fix typo.
1581
ca5f4331
MM
15822012-05-29 Michael Matz <matz@suse.de>
1583
1584 * c-common.h (c_expand_decl): Remove prototype.
1585
4f7f7aca
MLI
15862012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1587
1588 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
1589 * c-opts.c (c_common_handle_option): Remove code handling
1590 warn_missing_braces.
1591
4a792f9b
PC
15922012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
1593
1594 PR c++/25137
1595 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
1596 -Wmissing_braces.
1597
650dc14a
DS
15982012-05-22 Dodji Seketeli <dodji@redhat.com>
1599
1600 PR c++/53322
1601 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
1602
9b095bf1
MLI
16032012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
1604
1605 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
1606 * c-opts.c (c_common_handle_option): Do not handle explicitly
1607 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
1608
0b2c4be5
DS
16092012-05-16 Dodji Seketeli <dodji@redhat.com>
1610
1611 PR preprocessor/7263
1612 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
1613 to cpp_classify_number. For diagnostics, use the precise location
1614 instead of the global input_location.
1615
a1bde5af
PC
16162012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1617
d02924ef 1618 PR c++/11856
a1bde5af
PC
1619 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
1620
d1ede5f4
BS
16212012-05-14 Bernd Schmidt <bernds@codesourcery.com>
1622
a1bde5af 1623 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 1624
f2bc201f
MLI
16252012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
1626
1627 PR 53063
1628 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
1629 Wreorder): Use LangEnabledBy.
1630 * c-opts.c (c_common_handle_option): Do not enable them
1631 explicitly. Call lang-specific generated functions.
1632 (c_common_post_options): Do not set them here.
1633
95744782
MLI
16342012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
1635
1636 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
1637 Wmissing-field-initializers,Wmissing-parameter-type,
1638 Wold-style-declaration,Woverride-init): Use EnabledBy.
1639 * c-opts.c (c_common_post_options): Do not set here explicitly.
1640
7d5a5747
MLI
16412012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1642
1643 PR 53063
1644 * c-opts.c (c_common_handle_option): Use handle_generated_option
1645 to enable sub-options.
1646
5a3c9cf2
PC
16472012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
1648
1649 PR c++/53158
1650 * c-common.c (warnings_for_convert_and_check): Use warning_at.
1651
3ac8781c
RG
16522012-05-10 Richard Guenther <rguenther@suse.de>
1653
1654 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
1655 adjust commentary about TYPE_IS_SIZETYPE types.
1656
1e537948
MLI
16572012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1658
1659 PR c++/53261
1660 * c-common.c (warn_logical_operator): Check that argument of
1661 integer_zerop is not NULL.
1662
f2c4a785
MLI
16632012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
1664
1665 PR c/43772
1666 * c-common.c (warn_logical_operator): Do not warn if either side
1667 is already true or false.
1668
50f305ca
MLI
16692012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1670
1671 PR c/51712
1672 * c-common.c (expr_original_type): New.
1673 (shorten_compare): Do not warn for enumeration types.
1674
0c3641b0
MLI
16752012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1676
1677 * c.opt (fpermissive): Add Var(flag_permissive).
1678
7edaa4d2
MG
16792012-04-30 Marc Glisse <marc.glisse@inria.fr>
1680
1681 PR c++/51033
1682 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
1683 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
1684
b9c8da34
DS
16852012-04-30 Dodji Seketeli <dodji@redhat.com>
1686
1687 Add -Wvarargs option
1688 * c.opt (Wvarargs): Define new option.
1689
e6c69da0
MLI
16902012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1691
1692 * c-common.c (check_function_arguments): Replace
1693 Wmissing-format-attribute with Wsuggest-attribute=format.
1694
90137d8f
MLI
16952012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1696
1697 * c.opt (Wsuggest-attribute=format): New. Alias of
1698 Wmissing-format-attribute.
1699 * c-format.c (decode_format_type): Replace
1700 Wmissing-format-attribute with Wsuggest-attribute=format.
1701 (check_function_format): Likewise.
1702
9faeb493 17032012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
1704
1705 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
1706 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
1707 * c.opt: Add Wliteral-suffix.
1708
c1771a20
MLI
17092012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1710
1711 PR c/44774
1712 * c.opt (Wpedantic): New.
1713 (pedantic): Alias Wpedantic.
1714 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
1715 (c_common_post_options): Likewise.
1716 (sanitize_cpp_opts): Likewise.
1717 * c-lex.c (interpret_float): Likewise.
1718 * c-format.c (check_format_types): Likewise.
1719 * c-common.c (pointer_int_sum): Likewise.
1720 (c_sizeof_or_alignof_type): Likewise.
1721 (c_add_case_label): Likewise.
1722 (c_do_switch_warnings): Likewise.
1723 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1724
04b391c1
JM
17252012-04-15 Jason Merrill <jason@redhat.com>
1726
1727 PR c++/52818
1728 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
1729 (C_STD_NAME): Distinguish between C++98 and C++11.
1730
ac868f29
EB
17312012-04-11 Eric Botcazou <ebotcazou@adacore.com>
1732
1733 PR target/52624
1734 * c-common.h (uint16_type_node): Rename into...
1735 (c_uint16_type_node): ...this.
1736 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
1737 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
1738
fd4116f4
MLI
17392012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
1740
1741 * c-common.c (warn_if_unused_value): Move definition to here.
1742 * c-common.h (warn_if_unused_value): Move declaration to here.
1743
573ac65e
WB
17442012-03-23 William Bader <williambader@hotmail.com>
1745
1746 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
1747
552b8185
JM
17482012-03-20 Jason Merrill <jason@redhat.com>
1749
1750 * c-common.h (enum cxx_dialect): Add cxx1y.
1751 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
1752 test.
1753 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1754 * c-opts.c (c_common_post_options): Likewise.
1755 (set_std_cxx1y): New.
1756 (c_common_handle_option): Call it.
1757 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
1758
04398fa8
PC
17592012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
1760
1761 PR c++/14710
1762 * c.opt ([Wuseless-cast]): Add.
1763
d2a12ae7
RG
17642012-03-16 Richard Guenther <rguenther@suse.de>
1765
1766 * c-pretty-print.c (pp_c_initializer_list): Adjust.
1767
a12bf402
MLI
17682012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1769
1770 PR c++/44783
1771 * c.opt (ftemplate-backtrace-limit) Add.
1772
5c30094f
RO
17732012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1774
1775 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
1776 handling.
1777 * c-pragma.c (handle_pragma_extern_prefix): Remove.
1778 (init_pragma): Don't register extern_prefix.
1779
21fa2faf
RG
17802012-03-12 Richard Guenther <rguenther@suse.de>
1781
1782 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
1783 (builtin_type_for_size): Likewise.
1784
e3793c6f
JJ
17852012-02-13 Jakub Jelinek <jakub@redhat.com>
1786
1787 PR c++/52215
1788 * c-common.c (sync_resolve_params): Don't decide whether to convert
1789 or not based on TYPE_SIZE comparison, convert whenever arg_type
1790 is unsigned INTEGER_TYPE.
1791
93286335
PC
17922012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
1793
1794 PR c/52118
1795 * c.opt ([Wunused-local-typedefs]): Fix description.
1796
7a421706
MS
17972012-01-24 Mike Stump <mikestump@comcast.net>
1798
1799 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
1800 exactly.
1801
ba9b1f11
RG
18022012-01-18 Richard Guenther <rguenther@suse.de>
1803
1804 * c-opts.c (c_common_post_options): Reset LTO flags if
1805 we are about to generate a PCH.
1806
465406be
PC
18072012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
1808
1809 PR c++/51777
1810 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
1811 use pp_unsigned_wide_integer.
1812
aee15221
RG
18132012-01-10 Richard Guenther <rguenther@suse.de>
1814
1815 PR middle-end/51806
1816 * c-opts.c (c_common_handle_option): Move -Werror handling
1817 to language independent code.
1818
5720c0dc
RG
18192012-01-05 Richard Guenther <rguenther@suse.de>
1820
1821 PR middle-end/51764
1822 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
1823 from common.opt.
1824
73ac190a
PC
18252011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
1826
1827 PR c++/51316
1828 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
1829 of array types with an unknown bound.
1830
48b0b196
JM
18312011-12-20 Joseph Myers <joseph@codesourcery.com>
1832
1833 * c-common.c (flag_isoc99): Update comment to refer to C11.
1834 (flag_isoc1x): Change to flag_isoc11.
1835 * c-common.h (flag_isoc99): Update comment to refer to C11.
1836 (flag_isoc1x): Change to flag_isoc11.
1837 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
1838 C11.
1839 * c-opts.c (set_std_c1x): Change to set_std_c11.
1840 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
1841 Call set_std_c11.
1842 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
1843 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
1844 * c.opt (std=c1x): Change to std=c11. Document as non-draft
1845 standard.
1846 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
1847 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
1848 (std=gnu1x): Make alias of std=gnu11.
1849
d58d6eb5
JM
18502011-12-19 Jason Merrill <jason@redhat.com>
1851
1852 PR c++/51228
1853 * c-common.c (handle_transparent_union_attribute): Check the first
1854 field if the type is complete.
1855
b3908fcc
JW
18562011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
1857
1858 PR libstdc++/51365
1859 * c-common.c (RID_IS_FINAL): Add.
1860 * c-common.h (RID_IS_FINAL): Add.
1861
fea3ca91
IS
18622011-11-30 Iain Sandoe <iains@gcc.gnu.org>
1863
1864 * c.opt (fgnu-runtime): Provide full description.
1865 (fnext-runtime): Likewise.
1866 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
1867
62bad7cd
AM
18682011-11-28 Andrew MacLeod <amacleod@redhat.com>
1869
1870 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
1871 predefines in one place. Add LOCK_FREE predefines.
1872 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
1873 new func.
1874
c466c4ff
AM
18752011-11-24 Andrew MacLeod <amacleod@redhat.com>
1876
1877 PR c/51256
9faeb493 1878 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 1879 conditions
9faeb493
UB
1880 (resolve_overloaded_atomic_exchange,
1881 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
1882 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
1883 error_mark_node for error conditions.
9faeb493 1884
a5952633
RG
18852011-11-08 Richard Guenther <rguenther@suse.de>
1886
1887 PR middle-end/51010
1888 c-family/
1889
0a35513e
AH
18902011-11-07 Richard Henderson <rth@redhat.com>
1891 Aldy Hernandez <aldyh@redhat.com>
1892 Torvald Riegel <triegel@redhat.com>
1893
1894 Merged from transactional-memory.
1895
1896 * c-common.c (handle_tm_wrap_attribute,
1897 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
1898 (struct c_common_reswords): Added __transaction* keywords.
1899 (struct c_common_attribute_table): Added transaction* and tm_regparm
1900 attributes.
1901 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
1902 masks.
1903 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
1904 find_tm_attribute): Declare.
1905
6d87092d
JM
19062011-11-07 Jason Merrill <jason@redhat.com>
1907
1908 PR c++/35688
1909 * c-common.c, c-common.h: Revert yesterday's changes.
1910
8e7860a1
JM
19112011-11-06 Jason Merrill <jason@redhat.com>
1912
1913 PR c++/35688
1914 * c-common.c (decl_has_visibility_attr): Split out from...
1915 (c_determine_visibility): ...here.
1916 * c-common.h: Declare it.
1917
d19fa6b5
JM
19182011-11-06 Joseph Myers <joseph@codesourcery.com>
1919
1920 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
1921 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
1922 type.
1923 (check_user_alignment): New. Split out of
1924 handle_aligned_attribute. Disallow integer constants with
1925 noninteger types. Conditionally allow zero.
1926 (handle_aligned_attribute): Use check_user_alignment.
1927 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
1928
86951993
AM
19292011-11-06 Andrew MacLeod <amacleod@redhat.com>
1930 Richard Henderson <rth@redhat.com>
1931
1932 Merged from cxx-mem-model.
1933
1934 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 1935 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
1936 parameters that are the same type size.
1937 (get_atomic_generic_size): New. Find size of generic
1938 atomic function parameters and do typechecking.
1939 (add_atomic_size_parameter): New. Insert size into parameter list.
1940 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
1941 either __atomic_exchange_n or external library call.
9faeb493 1942 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 1943 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 1944 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
1945 __atomic_load_n or an external library call.
1946 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
1947 __atomic_store_n or an external library call.
1948 (resolve_overloaded_builtin): Handle new __atomic builtins.
1949
cf9e9959
EB
19502011-11-04 Eric Botcazou <ebotcazou@adacore.com>
1951
1952 PR c++/50608
1953 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
1954 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
1955 <INDIRECT_REF>: Return the argument.
1956 <ARRAY_REF>: Remove special code for negative offset.
1957 Call fold_build_pointer_plus instead of size_binop.
1958 (fold_offsetof): Remove STOP_REF argument and adjust.
1959 * c-common.h (fold_offsetof_1): Declare.
1960 (fold_offsetof): Remove STOP_REF argument.
1961
25339f10
JM
19622011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
1963
1964 PR c++/50810
1965 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1966 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1967 Wnarrowing for C++0x and C++98.
1968 * c.opt ([Wnarrowing]): Update.
1969
89401152
PC
19702011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
1971
1972 PR c++/44277
1973 * c.opt: Add Wzero-as-null-pointer-constant.
1974
97e3ad20
JM
19752011-10-31 Jason Merrill <jason@redhat.com>
1976
15694fdd
JM
1977 * c.opt (-fdeduce-init-list): Off by default.
1978
97e3ad20
JM
1979 PR c++/50920
1980 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
1981 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
1982 and -Wc++11-compat.
1983 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
1984
fb9120e3
RAV
19852011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
1986
1987 PR c++/30066
1988 * c.opt (fvisibility-inlines-hidden): Description change.
1989
3ce4f9e4
ESR
19902011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
1991
1992 Implement C++11 user-defined literals.
1993 * c-common.c (build_userdef_literal): New.
1994 * c-common.def: New tree code.
1995 * c-common.h (tree_userdef_literal): New tree struct and accessors.
1996 * c-lex.c (interpret_float): Add suffix parm.
1997 (c_lex_with_flags): Build literal tokens.
1998
5f53c243
PC
19992011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2000
2001 PR c++/50841
2002 Revert:
2003 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2004
2005 PR c++/50810
2006 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2007 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2008 Wnarrowing for C++0x and C++98.
2009 * c.opt ([Wnarrowing]): Update.
2010
263734e1
PC
20112011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2012
2013 PR c++/50810
2014 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2015 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2016 Wnarrowing for C++0x and C++98.
2017 * c.opt ([Wnarrowing]): Update.
2018
d2e312d7
PC
20192011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
2020
2021 PR c++/45385
2022 * c-common.c (conversion_warning): Remove code looking for
2023 artificial operands.
2024
d17687f6
DS
20252011-10-18 Dodji Seketeli <dodji@redhat.com>
2026
2027 PR bootstrap/50760
2028 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 2029 !NO_IMPLICIT_EXTERN_C.
d17687f6 2030
fc8396e9
PC
20312011-10-17 Michael Spertus <mike_spertus@symantec.com>
2032
2033 * c-common.c (c_common_reswords): Add __bases,
2034 __direct_bases.
2035 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
2036
20372011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
2038
2039 PR c++/50757
2040 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
2041
847e697a
TT
20422011-10-15 Tom Tromey <tromey@redhat.com>
2043 Dodji Seketeli <dodji@redhat.com>
2044
2045 * c.opt (fdebug-cpp): New option.
2046 * c-opts.c (c_common_handle_option): Handle the option.
2047 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
2048 output stream in parameter. Factorized from ...
2049 (maybe_print_line): ... this. Dump location debug information when
2050 -fdebug-cpp is in effect.
2051 (print_line_1): New static function. Takes an output stream in
2052 parameter. Factorized from ...
2053 (print_line): ... here. Dump location information when -fdebug-cpp
2054 is in effect.
2055 (scan_translation_unit): Dump location information when
2056 -fdebug-cpp is in effect.
2057
92582b75
TT
20582011-10-15 Tom Tromey <tromey@redhat.com>
2059 Dodji Seketeli <dodji@redhat.com>
2060
2061 * c.opt (ftrack-macro-expansion): New option. Handle it with and
2062 without argument.
2063 * c-opts.c (c_common_handle_option)<case
2064 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
2065 cases. Handle -ftrack-macro-expansion with and without argument.
2066
46427374
TT
20672011-10-15 Tom Tromey <tromey@redhat.com>
2068 Dodji Seketeli <dodji@redhat.com>
2069
2070 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
2071 (print_line, cb_define, do_line_change): Adjust to avoid touching
2072 the internals of struct line_map. Use the public API instead.
2073 * c-pch.c (c_common_read_pch): Likewise.
2074 * c-lex.c (fe_file_change): Likewise.
2075
fc8396e9
PC
20762011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
2077
2078 PR c++/17212
2079 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
2080
20812011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
2082
2083 PR c++/33067
2084 * c-pretty-print.c (pp_c_floating_constant): Output
2085 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
2086
e79983f4
MM
20872011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2088
2089 * c-common.c (def_builtin_1): Delete old interface with two
2090 parallel arrays to hold standard builtin declarations, and replace
2091 it with a function based interface that can support creating
2092 builtins on the fly in the future. Change all uses, and poison
2093 the old names. Make sure 0 is not a legitimate builtin index.
2094 * c-omp.c (c_finish_omp_barrier): Ditto.
2095 (c_finish_omp_taskwait): Ditto.
2096 (c_finish_omp_flush): Ditto.
2097
6637388f
TG
20982011-10-11 Tristan Gingold <gingold@adacore.com>
2099
2100 * c.opt: (fallow-parameterless-variadic-functions): New.
2101
3797cb21
DS
21022011-09-08 Dodji Seketeli <dodji@redhat.com>
2103
2104 PR c++/33255 - Support -Wunused-local-typedefs warning
2105 * c-common.h (struct c_language_function::local_typedefs): New
2106 field.
9faeb493
UB
2107 (record_locally_defined_typedef, maybe_record_typedef_use)
2108 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 2109 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
2110 (maybe_record_typedef_use)
2111 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
2112 * c.opt: Declare new -Wunused-local-typedefs flag.
2113
693ddb1b
EB
21142011-09-06 Eric Botcazou <ebotcazou@adacore.com>
2115
2116 PR middle-end/50266
2117 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
2118 computations.
2119
830c740f
RG
21202011-09-05 Richard Guenther <rguenther@suse.de>
2121
2122 * c-common.c (complete_array_type): Use ssize_int (-1) instead
2123 of integer_minus_one_node for empty array upper bounds.
2124
892a371f
DS
21252011-08-28 Dodji Seketeli <dodji@redhat.com>
2126
2127 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
2128 it's the first time it's being called on this main TU.
2129
0e3fdb48
RB
21302011-08-24 Richard Guenther <rguenther@suse.de>
2131
2132 PR c/49396
2133 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
2134
21352011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
2136
2137 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
2138 defined in cpp_init_builtins and c_cpp_builtins.
2139
d4a83c10
JM
21402011-08-19 Joseph Myers <joseph@codesourcery.com>
2141
2142 * c-common.c (c_common_reswords): Add __builtin_complex.
2143 * c-common.h (RID_BUILTIN_COMPLEX): New.
2144
bbceee64
JM
21452011-08-18 Joseph Myers <joseph@codesourcery.com>
2146
2147 * c-common.c (c_common_reswords): Add _Noreturn.
2148 (keyword_is_function_specifier): Handle RID_NORETURN.
2149 * c-common.h (RID_NORETURN): New.
2150
0e3a99ae
AS
21512011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2152
2153 * c-common.c (unsafe_conversion_p): New function. Check if it is
2154 unsafe to convert an expression to the type.
2155 (conversion_warning): Adjust, use unsafe_conversion_p.
2156 * c-common.h (unsafe_conversion_p): New function declaration.
2157
20906c66
JJ
21582011-08-02 Jakub Jelinek <jakub@redhat.com>
2159
2160 * c-common.h (c_finish_omp_atomic): Adjust prototype.
2161 (c_finish_omp_taskyield): New prototype.
2162 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
2163 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
2164 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
2165 or RHS1 have side-effects, evaluate those too in the right spot,
2166 if it is a decl and LHS is also a decl, error out if they
2167 aren't the same.
2168 (c_finish_omp_taskyield): New function.
2169 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
2170 * c-pragma.c (omp_pragmas): Add taskyield.
2171 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
2172 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
2173 PRAGMA_OMP_CLAUSE_MERGEABLE.
2174
770e5a2e
DS
21752011-07-25 Dodji Seketeli <dodji@redhat.com>
2176
2177 * c-common.h (set_underlying_type): Remove parm name from
2178 declaration.
2179
1baae426
RG
21802011-07-25 Romain Geissler <romain.geissler@gmail.com>
2181
2182 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 2183
fcb21722
JM
21842011-07-22 Jason Merrill <jason@redhat.com>
2185
76f86d00
JM
2186 PR c++/49793
2187 * c.opt (Wnarrowing): New.
2188
3a636414
JM
2189 PR c++/30112
2190 * c-common.h: Declare c_linkage_bindings.
2191 * c-pragma.c (handle_pragma_redefine_extname): Use it.
2192
fcb21722
JM
2193 PR c++/49813
2194 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
2195 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
2196 as flag_isoc99 for 'restrict'.
2197 (pp_c_specifier_qualifier_list): Likewise for _Complex.
2198
02614448
ILT
21992011-07-21 Ian Lance Taylor <iant@google.com>
2200
2201 PR middle-end/49705
2202 * c-common.c (c_disable_warnings): New static function.
2203 (c_enable_warnings): New static function.
2204 (c_fully_fold_internal): Change local unused_p to bool. Call
2205 c_disable_warnings and c_enable_warnings rather than change
2206 c_inhibit_evaluation_warnings.
2207
34429675
JM
22082011-07-20 Jason Merrill <jason@redhat.com>
2209
2210 PR c++/6709 (DR 743)
2211 PR c++/42603 (DR 950)
2212 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
2213 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
2214 (CPP_DECLTYPE): New.
2215 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
2216
5d49b6a7
RG
22172011-07-19 Richard Guenther <rguenther@suse.de>
2218
2219 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
2220 * c-omp.c (c_finish_omp_for): Likewise.
2221
e84a58ff
EB
22222011-07-12 Eric Botcazou <ebotcazou@adacore.com>
2223
2224 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
2225 body on the next line.
2226
329af3c7
JM
22272011-07-08 Jason Merrill <jason@redhat.com>
2228
4063e61b
JM
2229 PR c++/45437
2230 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
2231
329af3c7
JM
2232 PR c++/49673
2233 * c-common.c (c_apply_type_quals_to_decl): Don't check
2234 TYPE_NEEDS_CONSTRUCTING.
2235
1a072294
RG
22362011-07-06 Richard Guenther <rguenther@suse.de>
2237
2238 * c-common.c (c_common_nodes_and_builtins):
2239 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
2240
fce5dddd
RG
22412011-07-05 Richard Guenther <rguenther@suse.de>
2242
2243 * c-common.c (c_common_nodes_and_builtins): Build all common
2244 tree nodes first.
2245
45d439ac
JJ
22462011-06-27 Jakub Jelinek <jakub@redhat.com>
2247
56300785
JJ
2248 * c-common.h (c_tree_chain_next): New static inline function.
2249
45d439ac
JJ
2250 * c-common.c (check_builtin_function_arguments): Handle
2251 BUILT_IN_ASSUME_ALIGNED.
2252
e0a8ecf2
AM
22532011-06-21 Andrew MacLeod <amacleod@redhat.com>
2254
2255 * c-common.c: Add sync_ or SYNC__ to builtin names.
2256 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
2257
22582011-06-20 Pierre Vittet <piervit@pvittet.com>
2259
2260 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
2261 handler.
2262 (gen_pragma_handler): New union.
2263 (internal_pragma_handler): New type.
2264 (c_register_pragma_with_data)
2265 (c_register_pragma_with_expansion_and_data): New functions.
2266
2267 * c-pragma.c (registered_pragmas, c_register_pragma_1)
2268 (c_register_pragma, c_register_pragma_with_expansion)
2269 (c_invoke_pragma_handler): Changed to work with
2270 internal_pragma_handler.
2271 (c_register_pragma_with_data)
2272 (c_register_pragma_with_expansion_and_data): New functions.
2273
677f3fa8
JM
22742011-06-14 Joseph Myers <joseph@codesourcery.com>
2275
2276 * c-common.c: Include common/common-target.h.
2277 (handle_section_attribute): Use
2278 targetm_common.have_named_sections.
2279 * c-cppbuiltin.c: Include common/common-target.h.
2280 (c_cpp_builtins): Use targetm_common.except_unwind_info.
2281
d7fc8c14
RG
22822011-06-10 Richard Guenther <rguenther@suse.de>
2283
2284 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
2285 to print a IDENTIFIER_NODE.
2286
10e48e39
RO
22872011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2288 Joseph Myers <joseph@codesourcery.com>
2289
2290 * c.opt (fbuilding-libgcc): New option.
2291 * c-cppbuiltin.c (c_cpp_builtins): Define
2292 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
2293
6976ae51
JM
22942011-06-07 Jason Merrill <jason@redhat.com>
2295
3ff60975
JM
2296 * c-common.c (max_tinst_depth): Lower default to 900.
2297
6976ae51
JM
2298 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
2299
009db074
RG
23002011-06-07 Richard Guenther <rguenther@suse.de>
2301
2302 * c-common.c (c_common_nodes_and_builtins): Do not set
2303 size_type_node or call set_sizetype.
2304
b4592b92
DS
23052011-06-07 Dodji Seketeli <dodji@redhat.com>
2306
2307 PR debug/49130
2308 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 2309 type when using pointer comparison to compare types.
b4592b92 2310
014ab419
JW
23112011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
2312
2313 * c.opt: Add -Wdelete-non-virtual-dtor.
2314 * c-opts.c (c_common_handle_option): Include it in -Wall.
2315
4f60111f
NF
23162011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
2317
2318 PR bootstrap/49190
2319
2320 Revert:
2321 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2322
2323 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2324 not tree_common.
2325
4cc4f2f4
JJ
23262011-05-27 Jakub Jelinek <jakub@redhat.com>
2327
2328 PR c++/49165
2329 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
2330 C++ don't call c_common_truthvalue_conversion on void type arms.
2331
38e01f9e
NF
23322011-05-27 Nathan Froyd <froydnj@codesourcery.com>
2333
2334 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
2335 (stmt_list_stack): Define.
2336 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
2337 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
2338
92e948a8
NF
23392011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2340
2341 * c-common.c (warning_candidate_p): Check for BLOCKs.
2342
a2fc3e63
NF
23432011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2344
2345 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2346 not tree_common.
2347
0957c029
JJ
23482011-05-25 Jakub Jelinek <jakub@redhat.com>
2349
2350 * c-common.c (def_fn_type): Remove extra va_end.
2351
828fb3ba
JM
23522011-05-23 Jason Merrill <jason@redhat.com>
2353
2354 PR c++/48106
2355 * c-common.c (c_common_get_narrower): New.
2356 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
2357
dde05067
NF
23582011-05-23 Nathan Froyd <froydnj@codesourcery.com>
2359
2360 * c-common.h (check_function_arguments): Tweak prototype of
2361 check_function_arguments.
2362 * c-common.c (check_function_arguments): Likewise. Adjust
2363 calls to check_function_nonnull, check_function_format, and
2364 check_function_sentinel.
2365 (check_function_sentinel): Take a FUNCTION_TYPE rather than
2366 separate attributes and typelist arguments. Use
2367 FOREACH_FUNCTION_ARGS to iterate over argument types.
2368
3c0d13bf
PC
23692011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
2370
2371 * c-common.c (c_common_reswords): Reorder.
2372 * c-common.h (rid): Likewise.
2373
8242dd04
NF
23742011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2375
2376 * c-common.c (def_fn_type): Don't call build_function_type, call
2377 build_function_type_array or build_varargs_function_type_array
2378 instead.
2379 (c_common_nodes_and_builtins): Likewise.
2380
3d528853
NF
23812011-05-05 Nathan Froyd <froydnj@codesourcery.com>
2382
2383 * c-common.c (c_add_case_label): Omit the loc argument to
2384 build_case_label.
2385 * c-common.h (build_case_label): Remove.
2386 * c-semantics.c (build_case_label): Remove.
2387
a04a722b
JM
23882011-05-05 Joseph Myers <joseph@codesourcery.com>
2389
2390 * c-objc.h (objc_start_method_definition): Update prototype.
2391 * stub-objc.c (objc_start_method_definition): Add extra parameter.
2392
e19a18d4
NF
23932011-05-04 Nathan Froyd <froydnj@codesourcery.com>
2394
2395 * c-common.c (check_main_parameter_types): Reindent. Don't use
2396 TYPE_ARG_TYPES directly.
2397 (handle_nonnull_attribute): Likewise.
2398 (sync_resolve_params): Likewise.
2399 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
2400 to check_format_string.
2401 (handle_format_attribute): Likewise.
2402 (check_format_string): Take a function type to examine instead of
2403 a type list. Use a function_arg_iterator to step through argument
2404 types.
2405
c62c040f
RG
24062011-05-04 Richard Guenther <rguenther@suse.de>
2407
2408 * c-common.c (fix_string_type): Use size_int for index type bounds.
2409 (start_fname_decls): Do not pass NULL to build_int_cst.
2410 (c_init_attributes): Likewise.
2411 * c-lex.c (c_lex_with_flags): Likewise.
2412
c12ff9d8
JM
24132011-04-27 Jason Merrill <jason@redhat.com>
2414
2415 * c-common.c (make_tree_vector_from_list): New.
2416 * c-common.h: Declare it.
2417
304dfbe3
RG
24182011-04-26 Richard Guenther <rguenther@suse.de>
2419
2420 PR preprocessor/48248
2421 * c-ppoutput.c (maybe_print_line): Always optimize newlines
2422 for output size with -P.
2423
3c0d13bf
PC
24242011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
2425
2426 * c-common.c (struct c_common_resword): Add __underlying_type.
2427 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2428
04695783
JM
24292011-04-20 Jim Meyering <meyering@redhat.com>
2430
2431 * c-format.c (init_dollar_format_checking): Remove useless
2432 if-before-free.
2433
0dc33c3c
NP
24342011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
2435
2436 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 2437 (objc_detect_field_duplicates): New.
0dc33c3c 2438 * stub-objc.c: Likewise.
3c0d13bf 2439
c59633d9
NP
24402011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2441
2442 * stub-objc.c (objc_declare_protocols): Renamed to
2443 objc_declare_protocol.
2444 * c-objc.h: Likewise.
3c0d13bf 2445
32dabdaf
NP
24462011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2447
2448 * stub-objc.c (objc_declare_class): Updated argument name.
2449
81f653d6
NF
24502011-04-12 Nathan Froyd <froydnj@codesourcery.com>
2451
2452 * c-common.h (c_common_init_ts): Declare.
2453 * c-common.c (c_common_init_ts): Define.
2454
eb345401
NP
24552011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
2456
2457 * c-objc.h (objc_build_message_expr): Updated prototype.
2458 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 2459
a358e188
MJ
24602011-04-12 Martin Jambor <mjambor@suse.cz>
2461
2462 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
2463 of cgraph_node.
2464
e6313a78
RG
24652011-04-11 Richard Guenther <rguenther@suse.de>
2466
2467 * c-common.c (complete_array_type): Build a range type of
2468 proper type.
2469
dcf0c47e
NF
24702011-04-08 Nathan Froyd <froydnj@codesourcery.com>
2471
2472 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
2473 (handle_type_generic_attribute): Likewise.
2474
1ee44b26
JM
24752011-04-07 Jason Merrill <jason@redhat.com>
2476
2477 PR c++/48450
2478 * c-common.c (c_common_truthvalue_conversion): Don't ignore
2479 conversion from C++0x scoped enum.
2480
acce4e77
JM
24812011-04-06 Joseph Myers <joseph@codesourcery.com>
2482
2483 * c-target-def.h: New file.
2484 * c-target.def: New file.
2485 * c-target.h: New file.
2486 * c-common.c (targetcm): Don't define here.
2487 * c-common.h (default_handle_c_option): Declare.
2488 * c-format.c: Include c-target.h instead of target.h.
2489 * c-opts.c: Include c-target.h instead of target.h. Explicitly
2490 include tm.h.
2491 (default_handle_c_option): Move from targhooks.c.
2492
e2eefb55
JJ
24932011-03-29 Jakub Jelinek <jakub@redhat.com>
2494
2495 PR preprocessor/48248
2496 * c-ppoutput.c (print): Add src_file field.
2497 (init_pp_output): Initialize it.
2498 (maybe_print_line): Don't optimize by adding up to 8 newlines
2499 if map->to_file and print.src_file are different file.
2500 (print_line): Update print.src_file.
2501
ba78087b
KT
25022011-03-25 Kai Tietz <ktietz@redhat.com>
2503
2504 * c-ada-spec.c (compare_comment): Use filename_cmp
2505 instead of strcmp for filename.
2506
0edf1bb2
JL
25072011-03-25 Jeff Law <law@redhat.com>
2508
2509 * c-family/c-common.c (def_fn_type): Add missing va_end.
2510
c7dc8804
JM
25112011-03-25 Jason Merrill <jason@redhat.com>
2512
2513 * c.opt: Add -std=c++03.
2514
d1d879b1
EB
25152011-03-22 Eric Botcazou <ebotcazou@adacore.com>
2516
2517 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
2518
62d784f7
KT
25192011-03-17 Kai Tietz
2520
2521 PR target/12171
5050afdf
KT
2522 * c-pretty-print.c (pp_c_specifier_qualifier_list):
2523 Display allowed attributes for function pointer types.
2524 (pp_c_attributes_display): New function to display
2525 attributes having affects_type_identity flag set to true.
2526 * c-pretty-print.h (pp_c_attributes_display): New prototype.
2527
62d784f7
KT
2528 * c-common.c (c_common_attribute_table):
2529 Add new element.
2530 (c_common_format_attribute_table): Likewise.
2531
82d37118
JM
25322011-03-18 Jason Merrill <jason@redhat.com>
2533
49a000c3
JM
2534 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
2535 * c-common.h: Don't declare it here.
2536 * c-common.c: Or define it here.
2537 * c-opts.c (c_common_handle_option): Or set it here.
2538
82d37118
JM
2539 PR c++/35315
2540 * c-common.c (handle_transparent_union_attribute): Don't
2541 make a duplicate type in C++.
2542
17bc631c
JM
25432011-03-15 Jason Merrill <jason@redhat.com>
2544
2545 * c-common.c (max_constexpr_depth): New.
2546 * c-common.h: Declare it.
2547 * c-opts.c (c_common_handle_option): Set it.
2548 * c.opt (fconstexpr-depth): New option.
2549
1b9b91a6
JM
25502011-03-11 Jason Merrill <jason@redhat.com>
2551
f231b5ff
JM
2552 * c-common.c (attribute_takes_identifier_p): Add missing const.
2553
1b9b91a6
JM
2554 PR c++/46803
2555 * c-common.c (attribute_takes_identifier_p): Assume that an
2556 unknown attribute takes an identifier.
2557
a19e4d44
NF
25582011-03-07 Nathan Froyd <froydnj@codesourcery.com>
2559
2560 PR c/47786
2561 * c-common.c (c_type_hash): Call list_length instead of iterating
2562 through DECL_CHAIN. Rename 'i' to 'n_elements'.
2563
982d62f6
JJ
25642011-02-19 Jakub Jelinek <jakub@redhat.com>
2565
2566 PR c/47809
2567 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
2568
0a256240
NP
25692011-02-17 Iain Sandoe <iains@gcc.gnu.org>
2570
2571 * c.opt (fobjc-abi-version=) New.
2572 (fobjc-nilcheck): New.
2573
ba9e6dd5
NF
25742011-02-03 Nathan Froyd <froydnj@codesourcery.com>
2575
2576 PR c++/46890
2577 * c-common.h (keyword_is_decl_specifier): Declare.
2578 * c-common.c (keyword_is_decl_specifier): Define.
2579 (keyword_is_function_specifier): New function.
2580
7273813a
JJ
25812011-01-26 Jakub Jelinek <jakub@redhat.com>
2582
2583 PR c/47473
2584 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
2585 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
2586 REAL_TYPE.
2587
908ef79b
AC
25882011-01-26 Arnaud Charlet <charlet@adacore.com>
2589
2590 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
2591
237e9384
JJ
25922011-01-26 Jakub Jelinek <jakub@redhat.com>
2593
2594 PR pch/47430
2595 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
2596 after init_c_lex if pch_file is set.
2597
47ea1edf
DK
25982011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
2599
d4dba752 2600 PR c++/43601
47ea1edf
DK
2601 * c.opt (-fkeep-inline-dllexport): New switch.
2602
2aa9c6ae
RG
26032011-01-12 Richard Guenther <rguenther@suse.de>
2604
2605 PR middle-end/32511
2606 * c-common.c (handle_weak_attribute): Warn instead of error
2607 on declaring an inline function weak.
2608
7bd11157
TT
26092011-01-05 Tom Tromey <tromey@redhat.com>
2610
2611 * c-common.h (lvalue_error): Update.
2612 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
2613 not error.
2614
0e66e494 26152010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 2616
b4f588c4
NP
2617 PR objc/47075
2618 * c-objc.h (objc_finish_message_expr): Added argument to
2619 prototype.
2620
f4da8dce
NF
26212010-12-22 Nathan Froyd <froydnj@codesourcery.com>
2622
2623 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
2624 Use prototype_p.
2625
46270f14
NP
26262010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
2627
2628 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 2629 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 2630
4816c593
NF
26312010-12-10 Nathan Froyd <froydnj@codesourcery.com>
2632
2633 * c-common.h (readonly_error): Declare.
2634 * c-common.c (readonly_error): Define.
2635
7a6daeb0
NF
26362010-12-09 Nathan Froyd <froydnj@codesourcery.com>
2637
2638 * c-common.h (invalid_indirection_error): Declare.
2639 * c-common.c (invalid_indirection_error): Define.
2640
892f6119
RG
26412010-12-03 Richard Guenther <rguenther@suse.de>
2642
2643 PR c/46745
2644 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
2645 (pp_c_unary_expression): Likewise.
2646 (pp_c_expression): Likewise.
2647
6c39e757
NP
26482010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
2649
2650 * c-common.h (objc_finish_function): New.
2651 (objc_non_volatilized_type): Removed.
2652 (objc_type_quals_match): Removed.
2653 * stub-objc.c (objc_finish_function): New.
2654 (objc_non_volatilized_type): Removed.
2655 (objc_type_quals_match): Removed.
9faeb493 2656
7c475d11
JM
26572010-11-30 Joseph Myers <joseph@codesourcery.com>
2658
2659 * c-common.h (parse_optimize_options): Declare.
2660 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
2661 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
2662
71f3e391
JM
26632010-11-29 Joseph Myers <joseph@codesourcery.com>
2664
2665 * c-opts.c (check_deps_environment_vars): Use getenv instead of
2666 GET_ENVIRONMENT.
2667 * c-pch.c (O_BINARY): Don't define here.
2668 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
2669
d5fabb58
JM
26702010-11-25 Joseph Myers <joseph@codesourcery.com>
2671
2672 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
2673 targetm.except_unwind_info.
2674
299404a1
JM
26752010-11-23 Joseph Myers <joseph@codesourcery.com>
2676
2677 * c-opts.c (c_common_handle_option): Pass location to
2678 set_struct_debug_option.
2679
c98cd5bf
JM
26802010-11-23 Joseph Myers <joseph@codesourcery.com>
2681
2682 * c-common.c (visibility_options): Move from ../opts.c.
2683 * c-common.h (struct visibility_flags, visibility_options):
2684 Declare here.
2685 * c-opts.c (finish_options): Rename to c_finish_options.
2686 (c_common_init): Update call to finish_options.
2687
a9546771
NP
26882010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
2689
2690 PR objc/34033
2691 * c-lex.c (lex_string): Check that each string in an Objective-C
2692 string concat sequence starts with either one or zero '@', and
2693 that there are no spurious '@' signs at the end.
2694
24a57808
JM
26952010-11-20 Joseph Myers <joseph@codesourcery.com>
2696
2697 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
2698 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
2699 HANDLE_PRAGMA_VISIBILITY.
2700 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
2701 HANDLE_PRAGMA_VISIBILITY): Don't define.
2702 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
2703
a9aa2c3a
NF
27042010-11-20 Nathan Froyd <froydnj@codesourcery.com>
2705
2706 PR c++/16189
2707 PR c++/36888
2708 PR c++/45331
2709 * c-common.h (keyword_begins_type_specifier): Declare.
2710 (keyword_is_storage_class_specifier): Declare.
2711 (keyword_is_type_qualifier): Declare.
2712 * c-common.c (keyword_begins_type_specifier): New function.
2713 (keyword_is_storage_class_specifier): New function.
2714 (keyword_is_type_qualifier): Declare.
2715
5386338c
JM
27162010-11-19 Joseph Myers <joseph@codesourcery.com>
2717
2718 PR c/46547
2719 * c-common.c (in_late_binary_op): Define.
2720 (c_common_truthvalue_conversion): Check in_late_binary_op before
2721 calling c_save_expr.
2722 * c-common.h (in_late_binary_op): Declare.
2723
69ccdddb
JM
27242010-11-19 Joseph Myers <joseph@codesourcery.com>
2725
2726 * c-opts.c (c_common_handle_option): Update calls to
2727 set_struct_debug_option.
2728
6b192a09
NP
27292010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
2730
2731 * c-common.h (objc_declare_protocols): Added additional argument.
2732 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 2733
fb52b50a
NF
27342010-11-18 Nathan Froyd <froydnj@codesourcery.com>
2735
2736 PR c/33193
2737 * c-common.h (build_real_imag_expr): Declare.
2738 * c-semantics.c (build_real_imag_expr): Define.
2739
b37421c6
JM
27402010-11-17 Joseph Myers <joseph@codesourcery.com>
2741
2742 * c-opts.c (c_common_parse_file): Take no arguments.
2743 * c-common.h (c_common_parse_file): Update prototype.
2744
07078664
JJ
27452010-11-16 Jakub Jelinek <jakub@redhat.com>
2746
2747 PR c++/46401
2748 * c-common.c (warning_candidate_p): Don't track non-const calls
2749 or STRING_CSTs.
2750
c6a13190
ILT
27512010-11-15 Ian Lance Taylor <iant@google.com>
2752
2753 * c-lex.c (init_c_lex): Set macro debug callbacks if
2754 flag_dump_go_spec is set.
2755
925e8657
NP
27562010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
2757
2758 * c-common.h (objc_build_incr_expr_for_property_ref): New.
2759 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
2760
bb0a9581
NF
27612010-11-15 Nathan Froyd <froydnj@codesourcery.com>
2762
2763 PR preprocessor/45038
2764 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
2765 dialects.
2766
c5fa0890
JM
27672010-11-12 Joseph Myers <joseph@codesourcery.com>
2768
2769 * c-common.h (c_family_lang_mask): Declare.
2770 * c-opts.c (c_family_lang_mask): Make extern.
2771 * c-pragma.c (handle_pragma_diagnostic): Use
2772 control_warning_option.
2773
a4d8c676
JM
27742010-11-12 Joseph Myers <joseph@codesourcery.com>
2775
2776 * c-common.c (parse_optimize_options): Update call to
2777 decode_options.
2778 * c-common.h (c_common_handle_option): Update prototype.
2779 * c-opts.c (c_common_handle_option): Take location_t parameter and
2780 pass it to other functions.
2781
f954bd2c
JM
27822010-11-11 Joseph Myers <joseph@codesourcery.com>
2783
2784 * c-opts.c (warning_as_error_callback): Remove.
2785 (c_common_initialize_diagnostics): Don't call
2786 register_warning_as_error_callback.
2787 (c_common_handle_option): Handle -Werror=normalized= here.
2788
d8a07487
JM
27892010-11-10 Joseph Myers <joseph@codesourcery.com>
2790
2791 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
2792 in diagnostic.
2793 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
2794 letter.
2795 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
2796 Remove trailing '.' from diagnostics.
2797 * c.opt (Wwrite-strings_: Avoid '`' in help text.
2798
d5478783
JM
27992010-11-10 Joseph Myers <joseph@codesourcery.com>
2800
2801 * c-common.c (parse_optimize_options): Pass global_dc to
2802 decode_options.
2803 * c-opts.c (c_common_handle_option): Pass &global_options to
2804 set_Wstrict_aliasing.
2805 * c.opt (v): Don't mark Common or document here.
2806
91ebb981
IS
28072010-11-06 Iain Sandoe <iains@gcc.gnu.org>
2808
2809 PR target/44981
2810 * c-format.c (format_type): New type gcc_objc_string_format_type.
2811 (valid_stringptr_type_p): New.
2812 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 2813 (check_format_string): Pass expected type, use
91ebb981
IS
2814 valid_stringptr_type_p (), check that the format string types are
2815 consistent with the format specification.
2816 (decode_format_attr): Warn if NSString is used outside objective-c.
2817 (format_types_orig): Add NSString.
2818 (format_name): New.
2819 (format_flags): New.
2820 (check_format_arg): Handle format strings requiring an external parser.
2821 first_target_format_type: New variable.
2822 (handle_format_attribute): Set up first_target_format_type, pass the
2823 expected format arg string type to check_format_string().
2824 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
2825 * stub-objc.c (objc_string_ref_type_p): New.
2826 (objc_check_format_arg): New.
2827
bede2adc
NP
28282010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
2829
9faeb493 2830 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
2831 * c-common.h (objc_build_class_component_ref): New.
2832 * stub-objc.c (objc_build_class_component_ref): New.
2833
9a179d01
NP
28342010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2835
2836 * c.opt (Wproperty-assign-default): New option.
2837
22d8d616
NP
28382010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2839
2840 Implemented -fobjc-std=objc1 flag.
2841 * c.opt (fobjc-std=objc1): New option.
2842
2debdb4f
NP
28432010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
2844
2845 Implemented format and noreturn attributes for Objective-C methods.
2846 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
2847 attribute for Objective-C methods.
2848
ec52b111
JM
28492010-10-31 Jason Merrill <jason@redhat.com>
2850
2851 * c-common.c (conversion_warning, warn_for_collisions_1): Use
2852 EXPR_LOC_OR_HERE.
2853
46a88c12
NP
28542010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
2855
2856 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
2857 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
2858 (objc_add_property_declaration): Removed arguments for copies and
2859 ivar.
2860 (objc_build_getter_call): Renamed to
2861 objc_maybe_build_component_ref.
2862 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2863 (objc_is_property_ref): New.
2864 * c-common.c (c_common_reswords): Removed copies and ivar.
2865 * stub-objc.c (objc_add_property_declaration): Removed arguments
2866 for copies and ivar.
2867 (objc_build_getter_call): Renamed to
2868 objc_maybe_build_component_ref.
2869 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2870 (objc_is_property_ref): New.
9faeb493 2871
1e4bf85b
AC
28722010-10-29 Arnaud Charlet <charlet@adacore.com>
2873 Matthew Gingell <gingell@adacore.com>
2874
2875 * c-ada-spec.c (separate_class_package): New function.
2876 (pp_ada_tree_identifier): Prefix references to C++ classes with the
2877 name of their enclosing package.
2878 (print_ada_declaration): Use separate_class_package.
2879
81f0bab2
JM
28802010-10-27 Jason Merrill <jason@redhat.com>
2881
2b08f2c5
JM
2882 * c-common.c (c_common_reswords): Add __is_literal_type.
2883 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
2884
81f0bab2
JM
2885 * c-common.c (check_case_value): Remove special C++ code.
2886
200290f2
NP
28872010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2888
2889 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
2890 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
2891 and RID_LAST_PATTR.
2892 (objc_add_property_declaration): Added additional arguments.
2893 (objc_property_attribute_kind): Removed.
2894 (objc_set_property_attr): Removed.
2895 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
2896 copy and nonatomic.
2897 * stub-objc.c (objc_add_property_declaration): Added additional
2898 arguments.
2899 (objc_set_property_attr): Removed.
9faeb493 2900
f614132b
NP
29012010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2902
2903 * c-common.h (objc_add_property_variable): Renamed to
2904 objc_add_property_declaration. Added location argument.
2905 * stub-objc.c (objc_add_property_variable): Same change.
2906
b8a18805
NP
29072010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
2908
2909 * c-common.h (objc_maybe_printable_name): New.
2910 * stub-objc.c (objc_maybe_printable_name): New.
2911
30cd1c5d
AS
29122010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2913 Andrew Pinski <pinskia@gmail.com>
2914
2915 * c-common.h (c_common_mark_addressable_vec): Declare.
2916 * c-common.c (c_common_mark_addressable_vec): New function.
2917
249a82c4
NP
29182010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2919
2920 * c-common.h (objc_set_method_type): Removed.
2921 (objc_add_method_declaration): Added boolean argument.
2922 (objc_start_method_definition): Same change.
2923 (objc_build_method_signature): Same change.
2924 * stub-objc.c (objc_set_method_type): Removed.
2925 (objc_add_method_declaration): Added boolean argument.
2926 (objc_start_method_definition): Same change.
2927 (objc_build_method_signature): Same change.
2928
977e30bc
NP
29292010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2930
2931 * c-common.h (finish_file): Removed.
2932 (objc_write_global_declarations): New.
2933 * c-opts.c (c_common_parse_file): Do not call finish_file.
2934 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 2935
da57d1b9
NP
29362010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2937
2938 Implemented parsing @synthesize and @dynamic for
2939 Objective-C/Objective-C++.
2940 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
2941 (objc_add_synthesize_declaration): New.
2942 (objc_add_dynamic_declaration): New.
2943 * c-common.c (c_common_reswords): Add synthesize and dynamic.
2944 * stub-objc.c (objc_add_synthesize_declaration): New.
2945 (objc_add_dynamic_declaration): New.
9faeb493 2946
0069111f
MM
29472010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
2948
2949 PR target/46041
2950 * c-cppbuiltin.c (mode_has_fma): Move function here from
2951 builtins.c. Don't use the fma optab, instead just use the
2952 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
2953 using -save-temps.
2954
e426b47b
NP
29552010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2956
2957 Merge from 'apple/trunk' branch on FSF servers.
0069111f 2958
e426b47b
NP
2959 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
2960
9faeb493 2961 Radar 4330422
e426b47b
NP
2962 * c-common.h (objc_non_volatilized_type): New declaration
2963 * stub-objc.c (objc_non_volatilized_type): New stub.
2964
90fbfdc3
NP
29652010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
2966
e426b47b 2967 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
2968
2969 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
2970
9faeb493 2971 Radar 4133425
90fbfdc3 2972 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 2973 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 2974
c37d8c30
IS
29752010-10-17 Iain Sandoe <iains@gcc.gnu.org>
2976
2977 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
2978 * c-common.h (enum rid): Add RID_AT_PACKAGE.
2979 (objc_ivar_visibility_kind): New enum.
2980 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 2981 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
2982 visibility enum.
2983
1b1562a5
MM
29842010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2985
2986 * c-cppbuiltin.c (builtin_define_float_constants): Emit
2987 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
2988 has the appropriate fma builtins.
2989 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
2990
668ea4b1
IS
29912010-10-14 Iain Sandoe <iains@gcc.gnu.org>
2992
1b1562a5 2993 merge from FSF apple 'trunk' branch.
668ea4b1 2994 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 2995
668ea4b1
IS
2996 Radars 4436866, 4505126, 4506903, 4517826
2997 * c-common.c (c_common_resword): Define @property and its attributes.
2998 * c-common.h: Define property attribute enum entries.
2999 (OBJC_IS_PATTR_KEYWORD): New.
3000 (objc_property_attribute_kind): New enum.
3001 Declare objc_set_property_attr (), objc_add_property_variable (),
3002 objc_build_getter_call () and objc_build_setter_call ().
3003 * stub-objc.c (objc_set_property_attr): New stub.
3004 (objc_add_property_variable): Likewise.
3005 (objc_build_getter_call): Likewise.
3006 (objc_build_setter_call) Likewise.
1b1562a5 3007
a1178b30
IS
30082010-10-13 Iain Sandoe <iains@gcc.gnu.org>
3009
1b1562a5 3010 merge from FSF apple 'trunk' branch.
a1178b30
IS
3011 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
3012
3013 Radar 3803157 (method attributes)
3014 * c-common.c (handle_deprecated_attribute): Recognize
3015 objc methods as valid declarations.
3016 * c-common.h: Declare objc_method_decl ().
1b1562a5 3017 * stub-objc.c (objc_method_decl): New stub.
a1178b30 3018
a75bfaa6
JM
30192010-10-08 Joseph Myers <joseph@codesourcery.com>
3020
3021 * c-common.c (parse_optimize_options): Call
3022 decode_cmdline_options_to_array_default_mask before
3023 decode_options. Update arguments to decode_options.
3024 * c-common.h (c_common_init_options_struct): Declare.
3025 * c-opts.c (c_common_init_options_struct): New. Split out from
3026 c_common_init_options.
3027
f05b9d93
NP
30282010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
3029
3030 Implemented fast enumeration for Objective-C.
3031 * c-common.h (objc_finish_foreach_loop): New.
3032 * stub-objc.c (objc_finish_foreach_loop): New.
3033
1ebe4b4f
JM
30342010-10-05 Joseph Myers <joseph@codesourcery.com>
3035
3036 * c-common.h (struct diagnostic_context): Don't declare here.
3037 (c_common_initialize_diagnostics): Declare using
3038 diagnostic_context typedef.
3039 * c-opts.c (c_common_handle_option): Pass global_dc to
3040 handle_generated_option.
3041
d4d24ba4
JM
30422010-10-04 Joseph Myers <joseph@codesourcery.com>
3043
3044 * c-opts.c (c_common_handle_option): Pass &global_options_set to
3045 handle_generated_option.
3046
478a1c5b
ILT
30472010-10-03 Ian Lance Taylor <iant@google.com>
3048
3049 * c.opt (-fplan9-extensions): New option.
3050
82a1c2fe
FXC
30512010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3052
3053 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
3054 Remove.
3055 (c_cpp_builtins): Call functions from cppbuiltin.c instead
3056 of duplicating code.
3057
92902b1b
IS
30582010-09-30 Iain Sandoe <iains@gcc.gnu.org>
3059
3060 * c-common.c: Add two new entries for @optional
3061 and @required keywords.
3062
3063 merge from FSF 'apple/trunk' branch.
3064 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
3065
3066 Radar 4386773
3067 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
3068 objective-c keywords.
3069 (objc_set_method_opt): New declaration.
3070 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 3071
46625112
JM
30722010-09-30 Joseph Myers <joseph@codesourcery.com>
3073
3074 * c-common.c (handle_optimize_attribute): Pass &global_options to
3075 cl_optimization_save and cl_optimization_restore.
3076 * c-opts.c (c_common_handle_option): Pass &global_options to
3077 handle_generated_option.
3078 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
3079 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
3080 &global_options to cl_optimization_restore.
3081
49b91f05
NP
30822010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
3083
3084 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
3085 Objective-C/Objective-C++ keywords.
3086
13ed556f 30872010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 3088
9faeb493
UB
3089 Merge from 'apple/trunk' branch on FSF servers.
3090
a6341d57
NP
3091 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
3092
3093 Radar 4281748
3094 * c-common.h (objc_check_global_decl): New declaration.
3095 * stub-objc.c (objc_check_global_decl): New stub.
3096
f0036cca
JM
30972010-09-29 Joseph Myers <joseph@codesourcery.com>
3098
3099 * c.opt: Don't use VarExists.
3100
e3339d0f
JM
31012010-09-29 Joseph Myers <joseph@codesourcery.com>
3102
3103 * c-common.c (c_cpp_error): Update names of diagnostic_context
3104 members.
3105 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
3106 cl_optimization members.
3107 * c-opts.c (warning_as_error_callback, c_common_handle_option,
3108 sanitize_cpp_opts, finish_options): Update names of cpp_options
3109 members.
3110
1973201f
NP
31112010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
3112
3113 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
3114 (objc_is_reserved_word): Removed.
3115 * c-common.c: Updated comments.
3116 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
3117 objc_is_reserved_word.
3118 * stub-objc.c (objc_is_reserved_word): Removed.
3119
f7e71da5
IS
31202010-09-28 Iain Sandoe <iains@gcc.gnu.org>
3121
9faeb493 3122 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
3123 include attributes.
3124 (objc_start_method_definition): Likewise.
3125 (objc_build_keyword_decl): Likewise.
3126 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
3127 (objc_start_method_definition): Likewise.
3128 (objc_build_keyword_decl): Likewise.
3129
c165dca7
IS
31302010-09-28 Iain Sandoe <iains@gcc.gnu.org>
3131
3132 * c-common.h (objc_start_class_interface): Adjust prototype.
3133 (objc_start_category_interface): Likewise.
3134 (objc_start_protocol): Likewise.
3135 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
3136 (objc_start_class_interface): Likewise.
3137 (objc_start_category_interface): Likewise.
3138
7458026b
ILT
31392010-09-27 Ian Lance Taylor <iant@google.com>
3140
3141 * c-common.c (c_common_attribute_table): Add no_split_stack.
3142 (handle_no_split_stack_attribute): New static function.
3143
b581b85b
NP
31442010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
3145
9faeb493 3146 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
3147
3148 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
3149
9faeb493 3150 Radar 4229905
b581b85b
NP
3151 * c-common.h (objc_have_common_type): New declaration.
3152 * stub-objc.c (objc_have_common_type): New stub.
3153
3154 2005-06-22 Ziemowit Laski <zlaski@apple.com>
3155
3156 Radar 4154928
3157 * c-common.h (objc_common_type): New prototype.
9faeb493 3158 * stub-objc.c (objc_common_type): New stub.
b581b85b 3159
46a4da10
JH
31602010-09-24 Jan Hubicka <jh@suse.cz>
3161
3162 * c-common.c (handle_leaf_attribute): New function.
3163 (struct attribute_spec c_common_att): Add leaf.
3164
e200444e
JM
31652010-09-22 Joseph Myers <joseph@codesourcery.com>
3166
3167 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
3168 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
3169 -dump, -dump=, -imacros, -imacros=, -include, -include=,
3170 -include-barrier, -include-directory, -include-directory=,
3171 -include-directory-after, -include-directory-after=,
3172 -include-prefix, -include-prefix=, -include-with-prefix,
3173 -include-with-prefix=, -include-with-prefix-after,
3174 -include-with-prefix-after=, -include-with-prefix-before,
3175 -include-with-prefix-before=, -no-integrated-cpp,
3176 -no-line-commands, -no-standard-includes, -no-warnings, -output,
3177 -output=, -pedantic, -pedantic-errors, -preprocess,
3178 -print-missing-file-dependencies, -trace-includes, -traditional,
3179 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
3180 -user-dependencies, -verbose, -write-dependencies,
3181 -write-user-dependencies, no-integrated-cpp, traditional): New.
3182
29a80ea6
NP
31832010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
3184
3185 PR objc/23710
ac1fc2fc
NP
3186 * c-common.h (objc_start_method_definition): Return bool instead
3187 of void.
3188 * stub-objc.c (objc_start_method_definition): Return bool instead
3189 of void.
3190
31912010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
3192
3193 PR objc/25965
3194 * c-common.h (objc_get_interface_ivars): New declaration.
3195 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 3196
de621752
ILT
31972010-09-15 Ian Lance Taylor <iant@google.com>
3198
3199 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 3200 messages. Remove period at end of warning message.
de621752 3201
ba885ec5
NS
32022010-09-09 Nathan Sidwell <nathan@codesourcery.com>
3203
3204 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
3205 (handle_alias_attribute): ... here.
3206 (handle_ifunc_attribute): New.
3207
c5ee1358
MM
32082010-09-06 Mark Mitchell <mark@codesourcery.com>
3209
3210 * c-common.h (do_warn_double_promotion): Declare.
3211 * c-common.c (do_warn_double_promotion): Define.
3212
0a0b3574
MM
32132010-09-05 Mark Mitchell <mark@codesourcery.com>
3214
3215 * c.opt (Wdouble-promotion): New.
3216
d1779886
JM
32172010-09-02 Joseph Myers <joseph@codesourcery.com>
3218
3219 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
3220 fvtable-thunks, fxref): Mark no longer supported in help text.
3221
2d2bd949
JM
32222010-09-02 Joseph Myers <joseph@codesourcery.com>
3223
3224 * c.opt (Wimport, fall-virtual, falt-external-templates,
3225 fdefault-inline, fenum-int-equiv, fexternal-templates,
3226 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
3227 fname-mangling-version-, fnew-abi, fnonnull-objects,
3228 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
3229 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
3230 applicable.
3231 (fhandle-exceptions): Mark with Alias and Warn.
3232 * c-opts.c (c_common_handle_option): Don't handle options marked
3233 as ignored.
3234
5de8299c
JM
32352010-09-02 Joseph Myers <joseph@codesourcery.com>
3236
3237 * c.opt (Wcomments, Werror-implicit-function-declaration,
3238 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
3239 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
3240 aliases.
3241 * c-common.c (option_codes): Use OPT_Wcomment instead of
3242 OPT_Wcomments.
3243 * c-opts.c (warning_as_error_callback, c_common_handle_option):
3244 Don't handle options marked as aliases.
3245
0ceb0201
RG
32462010-08-25 Richard Guenther <rguenther@suse.de>
3247
3248 * c-common.c (c_common_get_alias_set): Remove special
3249 handling for pointers.
3250
ac47786e
NF
32512010-08-20 Nathan Froyd <froydnj@codesourcery.com>
3252
3253 * c-common.c: Use FOR_EACH_VEC_ELT.
3254 * c-gimplify.c: Likewise.
3255 * c-pragma.c: Likewise.
3256
c878765b
JM
32572010-08-16 Joseph Myers <joseph@codesourcery.com>
3258
3259 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
3260 RejectDriver.
3261 (MMDX): Change back to MMD. Mark NoDriverArg instead of
3262 RejectDriver.
3263 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
3264 instead of OPT_MDX and OPT_MMDX.
3265
603349bf
JM
32662010-08-16 Joseph Myers <joseph@codesourcery.com>
3267
3268 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
3269
644fa7ac
JM
32702010-08-12 Joseph Myers <joseph@codesourcery.com>
3271
3272 * c.opt (MD, MMD): Change to MDX and MMDX.
3273 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
3274
481e1176
JM
32752010-08-11 Joseph Myers <joseph@codesourcery.com>
3276
3277 * c-opts.c (c_common_handle_option): Call handle_generated_option
3278 instead of handle_option.
3279
ac8dc9f7
NF
32802010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3281
3282 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
3283 (maybe_apply_renaming_pragma): Delete unneeded declarations.
3284
4f8c876d
NF
32852010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3286
3287 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
3288 (pending_redefine_extname): Change type to a VEC.
3289 (add_to_renaming_pragma_list): Update for new type of
3290 pending_redefine_extname.
ac8dc9f7 3291 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 3292
3b0c690e
AC
32932010-08-04 Arnaud Charlet <charlet@adacore.com>
3294
3295 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
3296 visited.
3297 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
3298 decide whether a type has already been declared/seen.
3299 Do not go to the original type.
3300 (dump_nested_types): New parameter forward.
3301 Generate forward declaration if needed and mark type as visited.
3302 (print_ada_declaration): Call dump_nested_types if not already done.
3303 Mark types as visited.
3304
1890bccc
JM
33052010-08-03 Joseph Myers <joseph@codesourcery.com>
3306
3307 * c.opt (-print-pch-checksum): Remove option.
3308 * c-opts.c (c_common_handle_option): Don't handle
3309 OPT_print_pch_checksum.
3310
5f20c657
JM
33112010-07-27 Joseph Myers <joseph@codesourcery.com>
3312
3313 * c-common.h (c_common_handle_option): Update prototype and return
3314 value type.
3315 * c-opts.c (c_common_handle_option): Update prototype and return
3316 value type. Update calls to handle_option and
3317 enable_warning_as_error.
3318
f551f80c
JJ
33192010-07-27 Jakub Jelinek <jakub@redhat.com>
3320
3321 PR c/45079
3322 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
3323
61ff2bdc
JM
33242010-07-27 Joseph Myers <joseph@codesourcery.com>
3325
3326 * c-common.h (c_common_missing_argument): Remove.
3327 * c-opts.c (c_common_missing_argument): Remove.
3328 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
3329 idirafter, imacros, include, isysroot, isystem, iquote): Add
3330 MissingArgError.
3331 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
3332
7a9bf9a4
JM
33332010-07-27 Joseph Myers <joseph@codesourcery.com>
3334
3335 * c-common.h (c_common_option_lang_mask,
3336 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
3337 New.
3338 (c_common_init_options): Update prototype.
3339 * c-opts.c (c_common_option_lang_mask): New.
3340 (c_common_initialize_diagnostics): Split out of
3341 c_common_init_options.
3342 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
3343 New.
3344 (c_common_init_options): Update prototype. Use decoded options in
3345 search for -lang-asm.
3346
910ad8de
NF
33472010-07-15 Nathan Froyd <froydnj@codesourcery.com>
3348
3349 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
3350 * c-format.c: Likewise.
3351
718f9c0f
MLI
33522010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
3353
3354 * c-common.h: Include diagnostic-core.h. Error if already
3355 included.
3356 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
3357
4d451982
MLI
33582010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3359
3360 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
3361 Do not include expr.h
3362 (vector_mode_valid_p): Move here.
3363
119fe915
SB
33642010-06-21 DJ Delorie <dj@redhat.com>
3365
3366 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
3367 allow these pragmas anywhere.
3368
33692010-06-14 Jakub Jelinek <jakub@redhat.com>
3370
3371 PR bootstrap/44509
3372 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
3373 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
3374 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
3375 ggc_strdup instead of xstrdup.
3376
33772010-06-10 Jakub Jelinek <jakub@redhat.com>
3378
3379 * c-cppbuiltin.c: Include cpp-id-data.h.
3380 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
3381 (lazy_hex_fp_value): New function.
3382 (builtin_define_with_hex_fp_value): Provide definitions lazily.
3383
6662d794
MLI
33842010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3385
3386 * c-gimplify.c: Do not include tree-flow.h
3387
38f8b050
JR
33882010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
3389
3390 PR other/44034
3391 * c-common.c: Rename targetm member:
3392 targetm.enum_va_list -> targetm.enum_va_list_p
3393
9589f23e
AS
33942010-06-28 Anatoly Sokolov <aesok@post.ru>
3395
3396 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
3397
3b06d379
SB
33982010-06-28 Steven Bosscher <steven@gcc.gnu.org>
3399
3400 * c-cppbuiltin.c: Do not include except.h.
3401
d166d4c3
AK
34022010-06-24 Andi Kleen <ak@linux.intel.com>
3403
9faeb493
UB
3404 * c-common.c (warn_for_omitted_condop): New.
3405 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 3406
70cb8be6
JM
34072010-06-21 Joseph Myers <joseph@codesourcery.com>
3408
3409 * c.opt (lang-objc): Remove.
3410 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
3411
a4c97feb
JR
34122010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
3413
3414 * c-opts.c: Include "tm_p.h".
3415
6e2f1956
JM
34162010-06-20 Joseph Myers <joseph@codesourcery.com>
3417
3418 * c-common.c (parse_optimize_options): Update call to
3419 decode_options.
3420
bc87224e
NF
34212010-06-18 Nathan Froyd <froydnj@codesourcery.com>
3422
3423 * c-common.c (record_types_used_by_current_var_decl): Adjust for
3424 new type of types_used_by_cur_var_decl.
3425
b49cf425
JR
34262010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
3427
3428 PR bootstrap/44512
3429 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
3430 for C++ standard compliance.
3431
59f9c2ed
JM
34322010-06-16 Jason Merrill <jason@redhat.com>
3433
3434 * c.opt: Add -Wnoexcept.
3435
33766b66
RG
34362010-06-16 Richard Guenther <rguenther@suse.de>
3437
3438 PR c/44555
3439 * c-common.c (c_common_truthvalue_conversion): Remove
3440 premature and wrong optimization concering ADDR_EXPRs.
3441
eff7e30c
AC
34422010-06-15 Arnaud Charlet <charlet@adacore.com>
3443
3444 * c-ada-spec.c (dump_sloc): Remove column info.
3445 (is_simple_enum): New function.
3446 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
3447 enum types when relevant.
3448
6312e84d
MLI
34492010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3450
9faeb493 3451 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
3452 location.
3453
1cb42611
JM
34542010-06-10 Joseph Myers <joseph@codesourcery.com>
3455
3456 * c-opts.c (c_common_handle_option): Don't handle
3457 OPT_fshow_column.
3458
a9429e29
LB
34592010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3460
3461 * c-pragma.c (push_alignment): Use typed GC allocation.
3462 (handle_pragma_push_options): Likewise.
3463
3464 * c-common.c (parse_optimize_options): Likewise.
3465
3466 * c-common.h (struct sorted_fields_type): Add variable_size GTY
3467 option.
3468
5498f011
JM
34692010-06-07 Joseph Myers <joseph@codesourcery.com>
3470
3471 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
3472 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3473 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3474 flag_signed_bitfields, warn_strict_null_sentinel,
3475 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
3476 flag_gen_declaration, flag_no_gnu_keywords,
3477 flag_implement_inlines, flag_implicit_templates,
3478 flag_implicit_inline_templates, flag_optional_diags,
3479 flag_elide_constructors, flag_default_inline, flag_rtti,
3480 flag_conserve_space, flag_access_control, flag_check_new,
3481 flag_new_for_scope, flag_weak, flag_working_directory,
3482 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
3483 flag_enforce_eh_specs, flag_threadsafe_statics,
3484 flag_pretty_templates): Remove.
3485 * c-common.h (flag_preprocess_only, flag_nil_receivers,
3486 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
3487 flag_replace_objc_classes, flag_undef, flag_no_builtin,
3488 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3489 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3490 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
3491 flag_no_gnu_keywords, flag_implement_inlines,
3492 flag_implicit_templates, flag_implicit_inline_templates,
3493 flag_optional_diags, flag_elide_constructors, flag_default_inline,
3494 flag_rtti, flag_conserve_space, flag_access_control,
3495 flag_check_new, flag_new_for_scope, flag_weak,
3496 flag_working_directory, flag_use_cxa_atexit,
3497 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
3498 flag_threadsafe_statics, flag_pretty_templates,
3499 warn_strict_null_sentinel): Remove.
3500 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
3501 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
3502 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
3503 fimplicit-inline-templates, fimplicit-templates,
3504 flax-vector-conversions, fms-extensions, fnil-receivers,
3505 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
3506 frtti, fshort-double, fshort-enums, fshort-wchar,
3507 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
3508 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
3509 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
3510 gen-decls, undef): Use Var.
3511 (fdefault-inline, foptional-diags): Document as doing nothing.
3512 * c-opts.c (c_common_handle_option): Remove cases for options now
3513 using Var. Mark ignored options as such.
3514
39dabefd
SB
35152010-06-05 Steven Bosscher <steven@gcc.gnu.org>
3516
9faeb493 3517 * c-common.c: Moved to here from parent directory.
39dabefd
SB
3518 * c-common.def: Likewise.
3519 * c-common.h: Likewise.
3520 * c-cppbuiltin.c: Likewise.
3521 * c-dump.c: Likewise.
3522 * c-format.c: Likewise.
3523 * c-format.h : Likewise.
3524 * c-gimplify.c: Likewise.
3525 * c-lex.c: Likewise.
3526 * c-omp.c: Likewise.
3527 * c.opt: Likewise.
3528 * c-opts.c: Likewise.
3529 * c-pch.c: Likewise.
3530 * c-ppoutput.c: Likewise.
3531 * c-pragma.c: Likewise.
3532 * c-pragma.h: Likewise.
3533 * c-pretty-print.c: Likewise.
3534 * c-pretty-print.h: Likewise.
3535 * c-semantics.c: Likewise.
3536 * stub-objc.c: Likewise.
3537
3538 * c-common.c: Include gt-c-family-c-common.h.
3539 * c-pragma.c: Include gt-c-family-c-pragma.h.
3540\f
23a5b65a 3541Copyright (C) 2010-2014 Free Software Foundation, Inc.
39dabefd
SB
3542
3543Copying and distribution of this file, with or without modification,
3544are permitted in any medium without royalty provided the copyright
3545notice and this notice are preserved.
This page took 1.259367 seconds and 5 git commands to generate.