]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
* config/bfin/bfin.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
32074525 12011-12-20 Joseph Myers <joseph@codesourcery.com>
2
3 * c-common.c (flag_isoc99): Update comment to refer to C11.
4 (flag_isoc1x): Change to flag_isoc11.
5 * c-common.h (flag_isoc99): Update comment to refer to C11.
6 (flag_isoc1x): Change to flag_isoc11.
7 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
8 C11.
9 * c-opts.c (set_std_c1x): Change to set_std_c11.
10 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
11 Call set_std_c11.
12 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
13 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
14 * c.opt (std=c1x): Change to std=c11. Document as non-draft
15 standard.
16 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
17 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
18 (std=gnu1x): Make alias of std=gnu11.
19
fca86134 202011-12-19 Jason Merrill <jason@redhat.com>
21
22 PR c++/51228
23 * c-common.c (handle_transparent_union_attribute): Check the first
24 field if the type is complete.
25
aa4313eb 262011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
27
28 PR libstdc++/51365
29 * c-common.c (RID_IS_FINAL): Add.
30 * c-common.h (RID_IS_FINAL): Add.
31
3f3d5ad4 322011-11-30 Iain Sandoe <iains@gcc.gnu.org>
33
34 * c.opt (fgnu-runtime): Provide full description.
35 (fnext-runtime): Likewise.
36 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
37
c4606d19 382011-11-28 Andrew MacLeod <amacleod@redhat.com>
39
40 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
41 predefines in one place. Add LOCK_FREE predefines.
42 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
43 new func.
44
1d581089 452011-11-24 Andrew MacLeod <amacleod@redhat.com>
46
47 PR c/51256
48 * c-common.c (get_atomic_generic_size): Check for various error
49 conditions
50 (resolve_overloaded_atomic_exchange,
51 resolve_overloaded_atomic_compare_exchange,
52 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
53 error_mark_node for error conditions.
54
6aa221fa 552011-11-08 Richard Guenther <rguenther@suse.de>
56
57 PR middle-end/51010
58 c-family/
59
4c0315d0 602011-11-07 Richard Henderson <rth@redhat.com>
61 Aldy Hernandez <aldyh@redhat.com>
62 Torvald Riegel <triegel@redhat.com>
63
64 Merged from transactional-memory.
65
66 * c-common.c (handle_tm_wrap_attribute,
67 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
68 (struct c_common_reswords): Added __transaction* keywords.
69 (struct c_common_attribute_table): Added transaction* and tm_regparm
70 attributes.
71 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
72 masks.
73 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
74 find_tm_attribute): Declare.
75
920f5a70 762011-11-07 Jason Merrill <jason@redhat.com>
77
78 PR c++/35688
79 * c-common.c, c-common.h: Revert yesterday's changes.
80
b4f861b4 812011-11-06 Jason Merrill <jason@redhat.com>
82
83 PR c++/35688
84 * c-common.c (decl_has_visibility_attr): Split out from...
85 (c_determine_visibility): ...here.
86 * c-common.h: Declare it.
87
83e25171 882011-11-06 Joseph Myers <joseph@codesourcery.com>
89
90 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
91 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
92 type.
93 (check_user_alignment): New. Split out of
94 handle_aligned_attribute. Disallow integer constants with
95 noninteger types. Conditionally allow zero.
96 (handle_aligned_attribute): Use check_user_alignment.
97 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
98
1cd6e20d 992011-11-06 Andrew MacLeod <amacleod@redhat.com>
100 Richard Henderson <rth@redhat.com>
101
102 Merged from cxx-mem-model.
103
104 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
105 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
106 parameters that are the same type size.
107 (get_atomic_generic_size): New. Find size of generic
108 atomic function parameters and do typechecking.
109 (add_atomic_size_parameter): New. Insert size into parameter list.
110 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
111 either __atomic_exchange_n or external library call.
112 (resolve_overloaded_atomic_compare_exchange): Restructure
113 __atomic_compare_exchange to either _n variant or external library call.
114 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
115 __atomic_load_n or an external library call.
116 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
117 __atomic_store_n or an external library call.
118 (resolve_overloaded_builtin): Handle new __atomic builtins.
119
7549df0d 1202011-11-04 Eric Botcazou <ebotcazou@adacore.com>
121
122 PR c++/50608
123 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
124 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
125 <INDIRECT_REF>: Return the argument.
126 <ARRAY_REF>: Remove special code for negative offset.
127 Call fold_build_pointer_plus instead of size_binop.
128 (fold_offsetof): Remove STOP_REF argument and adjust.
129 * c-common.h (fold_offsetof_1): Declare.
130 (fold_offsetof): Remove STOP_REF argument.
131
7e783eb3 1322011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
133
134 PR c++/50810
135 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
136 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
137 Wnarrowing for C++0x and C++98.
138 * c.opt ([Wnarrowing]): Update.
139
8fe701f5 1402011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
141
142 PR c++/44277
143 * c.opt: Add Wzero-as-null-pointer-constant.
144
0d84dc2d 1452011-10-31 Jason Merrill <jason@redhat.com>
146
67031f52 147 * c.opt (-fdeduce-init-list): Off by default.
148
0d84dc2d 149 PR c++/50920
150 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
151 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
152 and -Wc++11-compat.
153 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
154
66f24c41 1552011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
156
157 PR c++/30066
158 * c.opt (fvisibility-inlines-hidden): Description change.
159
244db24d 1602011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
161
162 Implement C++11 user-defined literals.
163 * c-common.c (build_userdef_literal): New.
164 * c-common.def: New tree code.
165 * c-common.h (tree_userdef_literal): New tree struct and accessors.
166 * c-lex.c (interpret_float): Add suffix parm.
167 (c_lex_with_flags): Build literal tokens.
168
235be70f 1692011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
170
171 PR c++/50841
172 Revert:
173 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
174
175 PR c++/50810
176 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
177 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
178 Wnarrowing for C++0x and C++98.
179 * c.opt ([Wnarrowing]): Update.
180
4fe0fb1c 1812011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
182
183 PR c++/50810
184 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
185 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
186 Wnarrowing for C++0x and C++98.
187 * c.opt ([Wnarrowing]): Update.
188
5f7504f9 1892011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
190
191 PR c++/45385
192 * c-common.c (conversion_warning): Remove code looking for
193 artificial operands.
194
2a688977 1952011-10-18 Dodji Seketeli <dodji@redhat.com>
196
197 PR bootstrap/50760
198 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
199 !NO_IMPLICIT_EXTERN_C.
200
326e3391 2012011-10-17 Michael Spertus <mike_spertus@symantec.com>
202
203 * c-common.c (c_common_reswords): Add __bases,
204 __direct_bases.
205 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
206
2072011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
208
209 PR c++/50757
210 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
211
62db153a 2122011-10-15 Tom Tromey <tromey@redhat.com>
213 Dodji Seketeli <dodji@redhat.com>
214
215 * c.opt (fdebug-cpp): New option.
216 * c-opts.c (c_common_handle_option): Handle the option.
217 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
218 output stream in parameter. Factorized from ...
219 (maybe_print_line): ... this. Dump location debug information when
220 -fdebug-cpp is in effect.
221 (print_line_1): New static function. Takes an output stream in
222 parameter. Factorized from ...
223 (print_line): ... here. Dump location information when -fdebug-cpp
224 is in effect.
225 (scan_translation_unit): Dump location information when
226 -fdebug-cpp is in effect.
227
ce70f433 2282011-10-15 Tom Tromey <tromey@redhat.com>
229 Dodji Seketeli <dodji@redhat.com>
230
231 * c.opt (ftrack-macro-expansion): New option. Handle it with and
232 without argument.
233 * c-opts.c (c_common_handle_option)<case
234 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
235 cases. Handle -ftrack-macro-expansion with and without argument.
236
97bfb9ef 2372011-10-15 Tom Tromey <tromey@redhat.com>
238 Dodji Seketeli <dodji@redhat.com>
239
240 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
241 (print_line, cb_define, do_line_change): Adjust to avoid touching
242 the internals of struct line_map. Use the public API instead.
243 * c-pch.c (c_common_read_pch): Likewise.
244 * c-lex.c (fe_file_change): Likewise.
245
326e3391 2462011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
247
248 PR c++/17212
249 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
250
2512011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
252
253 PR c++/33067
254 * c-pretty-print.c (pp_c_floating_constant): Output
255 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
256
b9a16870 2572011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
258
259 * c-common.c (def_builtin_1): Delete old interface with two
260 parallel arrays to hold standard builtin declarations, and replace
261 it with a function based interface that can support creating
262 builtins on the fly in the future. Change all uses, and poison
263 the old names. Make sure 0 is not a legitimate builtin index.
264 * c-omp.c (c_finish_omp_barrier): Ditto.
265 (c_finish_omp_taskwait): Ditto.
266 (c_finish_omp_flush): Ditto.
267
c7964868 2682011-10-11 Tristan Gingold <gingold@adacore.com>
269
270 * c.opt: (fallow-parameterless-variadic-functions): New.
271
a4e3ffad 2722011-09-08 Dodji Seketeli <dodji@redhat.com>
273
274 PR c++/33255 - Support -Wunused-local-typedefs warning
275 * c-common.h (struct c_language_function::local_typedefs): New
276 field.
277 (record_locally_defined_typedef, maybe_record_typedef_use)
278 (maybe_warn_unused_local_typedefs): Declare new functions.
279 * c-common.c (record_locally_defined_typedef)
280 (maybe_record_typedef_use)
281 (maybe_warn_unused_local_typedefs): Define new functions.
282 * c.opt: Declare new -Wunused-local-typedefs flag.
283
737a23cc 2842011-09-06 Eric Botcazou <ebotcazou@adacore.com>
285
286 PR middle-end/50266
287 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
288 computations.
289
7542c3b4 2902011-09-05 Richard Guenther <rguenther@suse.de>
291
292 * c-common.c (complete_array_type): Use ssize_int (-1) instead
293 of integer_minus_one_node for empty array upper bounds.
294
1dc92c59 2952011-08-28 Dodji Seketeli <dodji@redhat.com>
296
297 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
298 it's the first time it's being called on this main TU.
299
2bdf2b6e 3002011-08-24 Richard Guenther <rguenther@suse.de>
301
302 PR c/49396
303 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
304
3052011-08-22 Gabriel Charette <gchare@google.com>
6ea2c7a3 306
307 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
308 defined in cpp_init_builtins and c_cpp_builtins.
309
bff4ad11 3102011-08-19 Joseph Myers <joseph@codesourcery.com>
311
312 * c-common.c (c_common_reswords): Add __builtin_complex.
313 * c-common.h (RID_BUILTIN_COMPLEX): New.
314
985c6e3a 3152011-08-18 Joseph Myers <joseph@codesourcery.com>
316
317 * c-common.c (c_common_reswords): Add _Noreturn.
318 (keyword_is_function_specifier): Handle RID_NORETURN.
319 * c-common.h (RID_NORETURN): New.
320
7dfa155b 3212011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
322
323 * c-common.c (unsafe_conversion_p): New function. Check if it is
324 unsafe to convert an expression to the type.
325 (conversion_warning): Adjust, use unsafe_conversion_p.
326 * c-common.h (unsafe_conversion_p): New function declaration.
327
2169f33b 3282011-08-02 Jakub Jelinek <jakub@redhat.com>
329
330 * c-common.h (c_finish_omp_atomic): Adjust prototype.
331 (c_finish_omp_taskyield): New prototype.
332 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
333 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
334 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
335 or RHS1 have side-effects, evaluate those too in the right spot,
336 if it is a decl and LHS is also a decl, error out if they
337 aren't the same.
338 (c_finish_omp_taskyield): New function.
339 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
340 * c-pragma.c (omp_pragmas): Add taskyield.
341 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
342 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
343 PRAGMA_OMP_CLAUSE_MERGEABLE.
344
ab77850e 3452011-07-25 Dodji Seketeli <dodji@redhat.com>
346
347 * c-common.h (set_underlying_type): Remove parm name from
348 declaration.
349
6ee97920 3502011-07-25 Romain Geissler <romain.geissler@gmail.com>
351
352 * c-pretty-print.h: Search c-common.h in c-family.
353
dc251364 3542011-07-22 Jason Merrill <jason@redhat.com>
355
1a2a35f0 356 PR c++/49793
357 * c.opt (Wnarrowing): New.
358
27282252 359 PR c++/30112
360 * c-common.h: Declare c_linkage_bindings.
361 * c-pragma.c (handle_pragma_redefine_extname): Use it.
362
dc251364 363 PR c++/49813
364 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
365 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
366 as flag_isoc99 for 'restrict'.
367 (pp_c_specifier_qualifier_list): Likewise for _Complex.
368
fc501191 3692011-07-21 Ian Lance Taylor <iant@google.com>
370
371 PR middle-end/49705
372 * c-common.c (c_disable_warnings): New static function.
373 (c_enable_warnings): New static function.
374 (c_fully_fold_internal): Change local unused_p to bool. Call
375 c_disable_warnings and c_enable_warnings rather than change
376 c_inhibit_evaluation_warnings.
377
07b8f133 3782011-07-20 Jason Merrill <jason@redhat.com>
379
380 PR c++/6709 (DR 743)
381 PR c++/42603 (DR 950)
382 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
383 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
384 (CPP_DECLTYPE): New.
385 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
386
2cc66f2a 3872011-07-19 Richard Guenther <rguenther@suse.de>
388
389 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
390 * c-omp.c (c_finish_omp_for): Likewise.
391
3c802a1e 3922011-07-12 Eric Botcazou <ebotcazou@adacore.com>
393
394 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
395 body on the next line.
396
98a33d9f 3972011-07-08 Jason Merrill <jason@redhat.com>
398
3115bda0 399 PR c++/45437
400 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
401
98a33d9f 402 PR c++/49673
403 * c-common.c (c_apply_type_quals_to_decl): Don't check
404 TYPE_NEEDS_CONSTRUCTING.
405
c38a75b7 4062011-07-06 Richard Guenther <rguenther@suse.de>
407
408 * c-common.c (c_common_nodes_and_builtins):
409 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
410
e593356b 4112011-07-05 Richard Guenther <rguenther@suse.de>
412
413 * c-common.c (c_common_nodes_and_builtins): Build all common
414 tree nodes first.
415
fca0886c 4162011-06-27 Jakub Jelinek <jakub@redhat.com>
417
a68f7a8d 418 * c-common.h (c_tree_chain_next): New static inline function.
419
fca0886c 420 * c-common.c (check_builtin_function_arguments): Handle
421 BUILT_IN_ASSUME_ALIGNED.
422
2797f13a 4232011-06-21 Andrew MacLeod <amacleod@redhat.com>
424
425 * c-common.c: Add sync_ or SYNC__ to builtin names.
426 * c-omp.c: Add sync_ or SYNC__ to builtin names.
9cad95b7 427
4282011-06-20 Pierre Vittet <piervit@pvittet.com>
429
430 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
431 handler.
432 (gen_pragma_handler): New union.
433 (internal_pragma_handler): New type.
434 (c_register_pragma_with_data)
435 (c_register_pragma_with_expansion_and_data): New functions.
436
437 * c-pragma.c (registered_pragmas, c_register_pragma_1)
438 (c_register_pragma, c_register_pragma_with_expansion)
439 (c_invoke_pragma_handler): Changed to work with
440 internal_pragma_handler.
441 (c_register_pragma_with_data)
442 (c_register_pragma_with_expansion_and_data): New functions.
443
218e3e4e 4442011-06-14 Joseph Myers <joseph@codesourcery.com>
445
446 * c-common.c: Include common/common-target.h.
447 (handle_section_attribute): Use
448 targetm_common.have_named_sections.
449 * c-cppbuiltin.c: Include common/common-target.h.
450 (c_cpp_builtins): Use targetm_common.except_unwind_info.
451
41e53ed2 4522011-06-10 Richard Guenther <rguenther@suse.de>
453
454 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
455 to print a IDENTIFIER_NODE.
456
a6f06169 4572011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
458 Joseph Myers <joseph@codesourcery.com>
459
460 * c.opt (fbuilding-libgcc): New option.
461 * c-cppbuiltin.c (c_cpp_builtins): Define
462 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
463
1ea9269b 4642011-06-07 Jason Merrill <jason@redhat.com>
465
8ce59854 466 * c-common.c (max_tinst_depth): Lower default to 900.
467
1ea9269b 468 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
469
1af0124d 4702011-06-07 Richard Guenther <rguenther@suse.de>
471
472 * c-common.c (c_common_nodes_and_builtins): Do not set
473 size_type_node or call set_sizetype.
474
0e9a4c01 4752011-06-07 Dodji Seketeli <dodji@redhat.com>
476
477 PR debug/49130
478 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
479 type when using pointer comparison to compare types.
480
90b40725 4812011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
482
483 * c.opt: Add -Wdelete-non-virtual-dtor.
484 * c-opts.c (c_common_handle_option): Include it in -Wall.
485
fc9c9e87 4862011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
487
488 PR bootstrap/49190
489
490 Revert:
491 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
492
493 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
494 not tree_common.
495
d0389adc 4962011-05-27 Jakub Jelinek <jakub@redhat.com>
497
498 PR c++/49165
499 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
500 C++ don't call c_common_truthvalue_conversion on void type arms.
501
cacfdc02 5022011-05-27 Nathan Froyd <froydnj@codesourcery.com>
503
504 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
505 (stmt_list_stack): Define.
506 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
507 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
508
027fc6ef 5092011-05-26 Nathan Froyd <froydnj@codesourcery.com>
510
511 * c-common.c (warning_candidate_p): Check for BLOCKs.
512
f21317a1 5132011-05-26 Nathan Froyd <froydnj@codesourcery.com>
514
515 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
516 not tree_common.
517
789e953d 5182011-05-25 Jakub Jelinek <jakub@redhat.com>
519
520 * c-common.c (def_fn_type): Remove extra va_end.
521
7f506bca 5222011-05-23 Jason Merrill <jason@redhat.com>
523
524 PR c++/48106
525 * c-common.c (c_common_get_narrower): New.
526 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
527
774e9d58 5282011-05-23 Nathan Froyd <froydnj@codesourcery.com>
529
530 * c-common.h (check_function_arguments): Tweak prototype of
531 check_function_arguments.
532 * c-common.c (check_function_arguments): Likewise. Adjust
533 calls to check_function_nonnull, check_function_format, and
534 check_function_sentinel.
535 (check_function_sentinel): Take a FUNCTION_TYPE rather than
536 separate attributes and typelist arguments. Use
537 FOREACH_FUNCTION_ARGS to iterate over argument types.
538
23407dc9 5392011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
540
541 * c-common.c (c_common_reswords): Reorder.
542 * c-common.h (rid): Likewise.
543
3a939d12 5442011-05-10 Nathan Froyd <froydnj@codesourcery.com>
545
546 * c-common.c (def_fn_type): Don't call build_function_type, call
547 build_function_type_array or build_varargs_function_type_array
548 instead.
549 (c_common_nodes_and_builtins): Likewise.
550
b6e3dd65 5512011-05-05 Nathan Froyd <froydnj@codesourcery.com>
552
553 * c-common.c (c_add_case_label): Omit the loc argument to
554 build_case_label.
555 * c-common.h (build_case_label): Remove.
556 * c-semantics.c (build_case_label): Remove.
557
4232a958 5582011-05-05 Joseph Myers <joseph@codesourcery.com>
559
560 * c-objc.h (objc_start_method_definition): Update prototype.
561 * stub-objc.c (objc_start_method_definition): Add extra parameter.
562
d0af78c5 5632011-05-04 Nathan Froyd <froydnj@codesourcery.com>
564
565 * c-common.c (check_main_parameter_types): Reindent. Don't use
566 TYPE_ARG_TYPES directly.
567 (handle_nonnull_attribute): Likewise.
568 (sync_resolve_params): Likewise.
569 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
570 to check_format_string.
571 (handle_format_attribute): Likewise.
572 (check_format_string): Take a function type to examine instead of
573 a type list. Use a function_arg_iterator to step through argument
574 types.
575
ceb7b692 5762011-05-04 Richard Guenther <rguenther@suse.de>
577
578 * c-common.c (fix_string_type): Use size_int for index type bounds.
579 (start_fname_decls): Do not pass NULL to build_int_cst.
580 (c_init_attributes): Likewise.
581 * c-lex.c (c_lex_with_flags): Likewise.
582
c66c81be 5832011-04-27 Jason Merrill <jason@redhat.com>
584
585 * c-common.c (make_tree_vector_from_list): New.
586 * c-common.h: Declare it.
587
16930c72 5882011-04-26 Richard Guenther <rguenther@suse.de>
589
590 PR preprocessor/48248
591 * c-ppoutput.c (maybe_print_line): Always optimize newlines
592 for output size with -P.
593
23407dc9 5942011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
595
596 * c-common.c (struct c_common_resword): Add __underlying_type.
597 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
598
dd045aee 5992011-04-20 Jim Meyering <meyering@redhat.com>
600
601 * c-format.c (init_dollar_format_checking): Remove useless
602 if-before-free.
603
394dd737 6042011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
605
606 * c-objc.h (objc_get_interface_ivars): Removed.
23407dc9 607 (objc_detect_field_duplicates): New.
394dd737 608 * stub-objc.c: Likewise.
23407dc9 609
a758bf7d 6102011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
611
612 * stub-objc.c (objc_declare_protocols): Renamed to
613 objc_declare_protocol.
614 * c-objc.h: Likewise.
23407dc9 615
29d7200d 6162011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
617
618 * stub-objc.c (objc_declare_class): Updated argument name.
619
9b88d08d 6202011-04-12 Nathan Froyd <froydnj@codesourcery.com>
621
622 * c-common.h (c_common_init_ts): Declare.
623 * c-common.c (c_common_init_ts): Define.
624
4185cf58 6252011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
626
627 * c-objc.h (objc_build_message_expr): Updated prototype.
628 * stub-objc.c (objc_build_message_expr): Likewise.
629
5a90471f 6302011-04-12 Martin Jambor <mjambor@suse.cz>
631
632 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
633 of cgraph_node.
634
783bb57e 6352011-04-11 Richard Guenther <rguenther@suse.de>
636
637 * c-common.c (complete_array_type): Build a range type of
638 proper type.
639
c33080b9 6402011-04-08 Nathan Froyd <froydnj@codesourcery.com>
641
642 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
643 (handle_type_generic_attribute): Likewise.
644
f8913d47 6452011-04-07 Jason Merrill <jason@redhat.com>
646
647 PR c++/48450
648 * c-common.c (c_common_truthvalue_conversion): Don't ignore
649 conversion from C++0x scoped enum.
650
c94b1d0e 6512011-04-06 Joseph Myers <joseph@codesourcery.com>
652
653 * c-target-def.h: New file.
654 * c-target.def: New file.
655 * c-target.h: New file.
656 * c-common.c (targetcm): Don't define here.
657 * c-common.h (default_handle_c_option): Declare.
658 * c-format.c: Include c-target.h instead of target.h.
659 * c-opts.c: Include c-target.h instead of target.h. Explicitly
660 include tm.h.
661 (default_handle_c_option): Move from targhooks.c.
662
acb10f41 6632011-03-29 Jakub Jelinek <jakub@redhat.com>
664
665 PR preprocessor/48248
666 * c-ppoutput.c (print): Add src_file field.
667 (init_pp_output): Initialize it.
668 (maybe_print_line): Don't optimize by adding up to 8 newlines
669 if map->to_file and print.src_file are different file.
670 (print_line): Update print.src_file.
671
82715bcd 6722011-03-25 Kai Tietz <ktietz@redhat.com>
673
674 * c-ada-spec.c (compare_comment): Use filename_cmp
675 instead of strcmp for filename.
676
451c8e2f 6772011-03-25 Jeff Law <law@redhat.com>
678
679 * c-family/c-common.c (def_fn_type): Add missing va_end.
680
3c47771c 6812011-03-25 Jason Merrill <jason@redhat.com>
682
683 * c.opt: Add -std=c++03.
684
97e6200f 6852011-03-22 Eric Botcazou <ebotcazou@adacore.com>
686
687 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
688
ac86af5d 6892011-03-17 Kai Tietz
690
691 PR target/12171
ee212425 692 * c-pretty-print.c (pp_c_specifier_qualifier_list):
693 Display allowed attributes for function pointer types.
694 (pp_c_attributes_display): New function to display
695 attributes having affects_type_identity flag set to true.
696 * c-pretty-print.h (pp_c_attributes_display): New prototype.
697
ac86af5d 698 * c-common.c (c_common_attribute_table):
699 Add new element.
700 (c_common_format_attribute_table): Likewise.
701
914d1151 7022011-03-18 Jason Merrill <jason@redhat.com>
703
69788bdf 704 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
705 * c-common.h: Don't declare it here.
706 * c-common.c: Or define it here.
707 * c-opts.c (c_common_handle_option): Or set it here.
708
914d1151 709 PR c++/35315
710 * c-common.c (handle_transparent_union_attribute): Don't
711 make a duplicate type in C++.
712
54cf6eed 7132011-03-15 Jason Merrill <jason@redhat.com>
714
715 * c-common.c (max_constexpr_depth): New.
716 * c-common.h: Declare it.
717 * c-opts.c (c_common_handle_option): Set it.
718 * c.opt (fconstexpr-depth): New option.
719
02cb1060 7202011-03-11 Jason Merrill <jason@redhat.com>
721
9bf1c74e 722 * c-common.c (attribute_takes_identifier_p): Add missing const.
723
02cb1060 724 PR c++/46803
725 * c-common.c (attribute_takes_identifier_p): Assume that an
726 unknown attribute takes an identifier.
727
ecf2703d 7282011-03-07 Nathan Froyd <froydnj@codesourcery.com>
729
730 PR c/47786
731 * c-common.c (c_type_hash): Call list_length instead of iterating
732 through DECL_CHAIN. Rename 'i' to 'n_elements'.
733
2b19dfe4 7342011-02-19 Jakub Jelinek <jakub@redhat.com>
735
736 PR c/47809
737 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
738
29cf2335 7392011-02-17 Iain Sandoe <iains@gcc.gnu.org>
740
741 * c.opt (fobjc-abi-version=) New.
742 (fobjc-nilcheck): New.
743
fad3f658 7442011-02-03 Nathan Froyd <froydnj@codesourcery.com>
745
746 PR c++/46890
747 * c-common.h (keyword_is_decl_specifier): Declare.
748 * c-common.c (keyword_is_decl_specifier): Define.
749 (keyword_is_function_specifier): New function.
750
a12319b3 7512011-01-26 Jakub Jelinek <jakub@redhat.com>
752
753 PR c/47473
754 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
755 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
756 REAL_TYPE.
757
5c128dc8 7582011-01-26 Arnaud Charlet <charlet@adacore.com>
759
760 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
761
8d67b0c7 7622011-01-26 Jakub Jelinek <jakub@redhat.com>
763
764 PR pch/47430
765 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
766 after init_c_lex if pch_file is set.
767
0675168d 7682011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
769
e8911163 770 PR c++/43601
0675168d 771 * c.opt (-fkeep-inline-dllexport): New switch.
772
0725e25c 7732011-01-12 Richard Guenther <rguenther@suse.de>
774
775 PR middle-end/32511
776 * c-common.c (handle_weak_attribute): Warn instead of error
777 on declaring an inline function weak.
778
fdd84b77 7792011-01-05 Tom Tromey <tromey@redhat.com>
780
781 * c-common.h (lvalue_error): Update.
782 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
783 not error.
784
e6e73d14 7852010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
786
d67e8485 787 PR objc/47075
788 * c-objc.h (objc_finish_message_expr): Added argument to
789 prototype.
790
a36cf284 7912010-12-22 Nathan Froyd <froydnj@codesourcery.com>
792
793 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
794 Use prototype_p.
795
33b3681f 7962010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
797
798 * c-objc.h (objc_maybe_warn_exceptions): New.
799 * stub-objc.c (objc_maybe_warn_exceptions): New.
800
a1f90215 8012010-12-10 Nathan Froyd <froydnj@codesourcery.com>
802
803 * c-common.h (readonly_error): Declare.
804 * c-common.c (readonly_error): Define.
805
b1bbc8e5 8062010-12-09 Nathan Froyd <froydnj@codesourcery.com>
807
808 * c-common.h (invalid_indirection_error): Declare.
809 * c-common.c (invalid_indirection_error): Define.
810
b0d55af9 8112010-12-03 Richard Guenther <rguenther@suse.de>
812
813 PR c/46745
814 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
815 (pp_c_unary_expression): Likewise.
816 (pp_c_expression): Likewise.
817
d7489d8d 8182010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
819
820 * c-common.h (objc_finish_function): New.
821 (objc_non_volatilized_type): Removed.
822 (objc_type_quals_match): Removed.
823 * stub-objc.c (objc_finish_function): New.
824 (objc_non_volatilized_type): Removed.
825 (objc_type_quals_match): Removed.
826
92468061 8272010-11-30 Joseph Myers <joseph@codesourcery.com>
828
829 * c-common.h (parse_optimize_options): Declare.
830 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
831 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
832
967958e4 8332010-11-29 Joseph Myers <joseph@codesourcery.com>
834
835 * c-opts.c (check_deps_environment_vars): Use getenv instead of
836 GET_ENVIRONMENT.
837 * c-pch.c (O_BINARY): Don't define here.
838 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
839
b213bf24 8402010-11-25 Joseph Myers <joseph@codesourcery.com>
841
842 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
843 targetm.except_unwind_info.
844
9faf44d6 8452010-11-23 Joseph Myers <joseph@codesourcery.com>
846
847 * c-opts.c (c_common_handle_option): Pass location to
848 set_struct_debug_option.
849
79396169 8502010-11-23 Joseph Myers <joseph@codesourcery.com>
851
852 * c-common.c (visibility_options): Move from ../opts.c.
853 * c-common.h (struct visibility_flags, visibility_options):
854 Declare here.
855 * c-opts.c (finish_options): Rename to c_finish_options.
856 (c_common_init): Update call to finish_options.
857
b4aa4123 8582010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
859
860 PR objc/34033
861 * c-lex.c (lex_string): Check that each string in an Objective-C
862 string concat sequence starts with either one or zero '@', and
863 that there are no spurious '@' signs at the end.
864
3e0e49f2 8652010-11-20 Joseph Myers <joseph@codesourcery.com>
866
867 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
868 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
869 HANDLE_PRAGMA_VISIBILITY.
870 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
871 HANDLE_PRAGMA_VISIBILITY): Don't define.
872 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
873
a9ffdd35 8742010-11-20 Nathan Froyd <froydnj@codesourcery.com>
875
876 PR c++/16189
877 PR c++/36888
878 PR c++/45331
879 * c-common.h (keyword_begins_type_specifier): Declare.
880 (keyword_is_storage_class_specifier): Declare.
881 (keyword_is_type_qualifier): Declare.
882 * c-common.c (keyword_begins_type_specifier): New function.
883 (keyword_is_storage_class_specifier): New function.
884 (keyword_is_type_qualifier): Declare.
885
93be21c0 8862010-11-19 Joseph Myers <joseph@codesourcery.com>
887
888 PR c/46547
889 * c-common.c (in_late_binary_op): Define.
890 (c_common_truthvalue_conversion): Check in_late_binary_op before
891 calling c_save_expr.
892 * c-common.h (in_late_binary_op): Declare.
893
d7175aef 8942010-11-19 Joseph Myers <joseph@codesourcery.com>
895
896 * c-opts.c (c_common_handle_option): Update calls to
897 set_struct_debug_option.
898
c213e196 8992010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
900
901 * c-common.h (objc_declare_protocols): Added additional argument.
902 * stub-objc.c (objc_declare_protocol): Same change.
903
0b5fc5d6 9042010-11-18 Nathan Froyd <froydnj@codesourcery.com>
905
906 PR c/33193
907 * c-common.h (build_real_imag_expr): Declare.
908 * c-semantics.c (build_real_imag_expr): Define.
909
b8ba44e7 9102010-11-17 Joseph Myers <joseph@codesourcery.com>
911
912 * c-opts.c (c_common_parse_file): Take no arguments.
913 * c-common.h (c_common_parse_file): Update prototype.
914
6ef8d12f 9152010-11-16 Jakub Jelinek <jakub@redhat.com>
916
917 PR c++/46401
918 * c-common.c (warning_candidate_p): Don't track non-const calls
919 or STRING_CSTs.
920
929d2a90 9212010-11-15 Ian Lance Taylor <iant@google.com>
922
923 * c-lex.c (init_c_lex): Set macro debug callbacks if
924 flag_dump_go_spec is set.
925
e4a7640a 9262010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
927
928 * c-common.h (objc_build_incr_expr_for_property_ref): New.
929 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
930
597d2d81 9312010-11-15 Nathan Froyd <froydnj@codesourcery.com>
932
933 PR preprocessor/45038
934 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
935 dialects.
936
c123f04d 9372010-11-12 Joseph Myers <joseph@codesourcery.com>
938
939 * c-common.h (c_family_lang_mask): Declare.
940 * c-opts.c (c_family_lang_mask): Make extern.
941 * c-pragma.c (handle_pragma_diagnostic): Use
942 control_warning_option.
943
3c6c0e40 9442010-11-12 Joseph Myers <joseph@codesourcery.com>
945
946 * c-common.c (parse_optimize_options): Update call to
947 decode_options.
948 * c-common.h (c_common_handle_option): Update prototype.
949 * c-opts.c (c_common_handle_option): Take location_t parameter and
950 pass it to other functions.
951
19ec5c9e 9522010-11-11 Joseph Myers <joseph@codesourcery.com>
953
954 * c-opts.c (warning_as_error_callback): Remove.
955 (c_common_initialize_diagnostics): Don't call
956 register_warning_as_error_callback.
957 (c_common_handle_option): Handle -Werror=normalized= here.
958
bf776685 9592010-11-10 Joseph Myers <joseph@codesourcery.com>
960
961 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
962 in diagnostic.
963 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
964 letter.
965 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
966 Remove trailing '.' from diagnostics.
967 * c.opt (Wwrite-strings_: Avoid '`' in help text.
968
6bd9d862 9692010-11-10 Joseph Myers <joseph@codesourcery.com>
970
971 * c-common.c (parse_optimize_options): Pass global_dc to
972 decode_options.
973 * c-opts.c (c_common_handle_option): Pass &global_options to
974 set_Wstrict_aliasing.
975 * c.opt (v): Don't mark Common or document here.
976
1f6616ee 9772010-11-06 Iain Sandoe <iains@gcc.gnu.org>
978
979 PR target/44981
980 * c-format.c (format_type): New type gcc_objc_string_format_type.
981 (valid_stringptr_type_p): New.
982 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
983 (check_format_string): Pass expected type, use
984 valid_stringptr_type_p (), check that the format string types are
985 consistent with the format specification.
986 (decode_format_attr): Warn if NSString is used outside objective-c.
987 (format_types_orig): Add NSString.
988 (format_name): New.
989 (format_flags): New.
990 (check_format_arg): Handle format strings requiring an external parser.
991 first_target_format_type: New variable.
992 (handle_format_attribute): Set up first_target_format_type, pass the
993 expected format arg string type to check_format_string().
994 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
995 * stub-objc.c (objc_string_ref_type_p): New.
996 (objc_check_format_arg): New.
997
b0d0931f 9982010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
999
1000 Fixed using the Objective-C 2.0 dot-syntax with class names.
1001 * c-common.h (objc_build_class_component_ref): New.
1002 * stub-objc.c (objc_build_class_component_ref): New.
1003
f26877d5 10042010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1005
1006 * c.opt (Wproperty-assign-default): New option.
1007
1ef143b6 10082010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1009
1010 Implemented -fobjc-std=objc1 flag.
1011 * c.opt (fobjc-std=objc1): New option.
1012
8c582e4f 10132010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
1014
1015 Implemented format and noreturn attributes for Objective-C methods.
1016 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
1017 attribute for Objective-C methods.
1018
8637f1db 10192010-10-31 Jason Merrill <jason@redhat.com>
1020
1021 * c-common.c (conversion_warning, warn_for_collisions_1): Use
1022 EXPR_LOC_OR_HERE.
1023
9d9f5bb3 10242010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
1025
1026 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
1027 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
1028 (objc_add_property_declaration): Removed arguments for copies and
1029 ivar.
1030 (objc_build_getter_call): Renamed to
1031 objc_maybe_build_component_ref.
1032 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1033 (objc_is_property_ref): New.
1034 * c-common.c (c_common_reswords): Removed copies and ivar.
1035 * stub-objc.c (objc_add_property_declaration): Removed arguments
1036 for copies and ivar.
1037 (objc_build_getter_call): Renamed to
1038 objc_maybe_build_component_ref.
1039 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1040 (objc_is_property_ref): New.
1041
56f907a0 10422010-10-29 Arnaud Charlet <charlet@adacore.com>
1043 Matthew Gingell <gingell@adacore.com>
1044
1045 * c-ada-spec.c (separate_class_package): New function.
1046 (pp_ada_tree_identifier): Prefix references to C++ classes with the
1047 name of their enclosing package.
1048 (print_ada_declaration): Use separate_class_package.
1049
b5fa273e 10502010-10-27 Jason Merrill <jason@redhat.com>
1051
5290e253 1052 * c-common.c (c_common_reswords): Add __is_literal_type.
1053 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
1054
b5fa273e 1055 * c-common.c (check_case_value): Remove special C++ code.
1056
7590f0e5 10572010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1058
1059 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
1060 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
1061 and RID_LAST_PATTR.
1062 (objc_add_property_declaration): Added additional arguments.
1063 (objc_property_attribute_kind): Removed.
1064 (objc_set_property_attr): Removed.
1065 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
1066 copy and nonatomic.
1067 * stub-objc.c (objc_add_property_declaration): Added additional
1068 arguments.
1069 (objc_set_property_attr): Removed.
1070
1d894bcf 10712010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1072
1073 * c-common.h (objc_add_property_variable): Renamed to
1074 objc_add_property_declaration. Added location argument.
1075 * stub-objc.c (objc_add_property_variable): Same change.
1076
e23bf1fb 10772010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
1078
1079 * c-common.h (objc_maybe_printable_name): New.
1080 * stub-objc.c (objc_maybe_printable_name): New.
1081
93426222 10822010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1083 Andrew Pinski <pinskia@gmail.com>
1084
1085 * c-common.h (c_common_mark_addressable_vec): Declare.
1086 * c-common.c (c_common_mark_addressable_vec): New function.
1087
45b2b110 10882010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1089
1090 * c-common.h (objc_set_method_type): Removed.
1091 (objc_add_method_declaration): Added boolean argument.
1092 (objc_start_method_definition): Same change.
1093 (objc_build_method_signature): Same change.
1094 * stub-objc.c (objc_set_method_type): Removed.
1095 (objc_add_method_declaration): Added boolean argument.
1096 (objc_start_method_definition): Same change.
1097 (objc_build_method_signature): Same change.
1098
64cd9619 10992010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1100
1101 * c-common.h (finish_file): Removed.
1102 (objc_write_global_declarations): New.
1103 * c-opts.c (c_common_parse_file): Do not call finish_file.
1104 * stub-objc.c (objc_write_global_declarations): New.
1105
e1f293c0 11062010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1107
1108 Implemented parsing @synthesize and @dynamic for
1109 Objective-C/Objective-C++.
1110 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
1111 (objc_add_synthesize_declaration): New.
1112 (objc_add_dynamic_declaration): New.
1113 * c-common.c (c_common_reswords): Add synthesize and dynamic.
1114 * stub-objc.c (objc_add_synthesize_declaration): New.
1115 (objc_add_dynamic_declaration): New.
1116
ef97a312 11172010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1118
1119 PR target/46041
1120 * c-cppbuiltin.c (mode_has_fma): Move function here from
1121 builtins.c. Don't use the fma optab, instead just use the
1122 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
1123 using -save-temps.
1124
69b07042 11252010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1126
1127 Merge from 'apple/trunk' branch on FSF servers.
ef97a312 1128
69b07042 1129 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
1130
1131 Radar 4330422
1132 * c-common.h (objc_non_volatilized_type): New declaration
1133 * stub-objc.c (objc_non_volatilized_type): New stub.
1134
f15f2e56 11352010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
1136
69b07042 1137 Merge from 'apple/trunk' branch on FSF servers.
f15f2e56 1138
1139 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
1140
1141 Radar 4133425
1142 * c-common.h (objc_diagnose_private_ivar): New decl.
ef97a312 1143 * stub-objc.c (objc_diagnose_private_ivar): New stub.
f15f2e56 1144
4a8875ed 11452010-10-17 Iain Sandoe <iains@gcc.gnu.org>
1146
1147 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
1148 * c-common.h (enum rid): Add RID_AT_PACKAGE.
1149 (objc_ivar_visibility_kind): New enum.
1150 (objc_set_visibility): Adjust prototype to use visibility enum.
ef97a312 1151 * stub-objc.c (objc_set_visibility): Adjust stub to use
4a8875ed 1152 visibility enum.
1153
7e0713b1 11542010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1155
1156 * c-cppbuiltin.c (builtin_define_float_constants): Emit
1157 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
1158 has the appropriate fma builtins.
1159 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
1160
86c110ac 11612010-10-14 Iain Sandoe <iains@gcc.gnu.org>
1162
7e0713b1 1163 merge from FSF apple 'trunk' branch.
86c110ac 1164 2006 Fariborz Jahanian <fjahanian@apple.com>
7e0713b1 1165
86c110ac 1166 Radars 4436866, 4505126, 4506903, 4517826
1167 * c-common.c (c_common_resword): Define @property and its attributes.
1168 * c-common.h: Define property attribute enum entries.
1169 (OBJC_IS_PATTR_KEYWORD): New.
1170 (objc_property_attribute_kind): New enum.
1171 Declare objc_set_property_attr (), objc_add_property_variable (),
1172 objc_build_getter_call () and objc_build_setter_call ().
1173 * stub-objc.c (objc_set_property_attr): New stub.
1174 (objc_add_property_variable): Likewise.
1175 (objc_build_getter_call): Likewise.
1176 (objc_build_setter_call) Likewise.
7e0713b1 1177
40c8d1dd 11782010-10-13 Iain Sandoe <iains@gcc.gnu.org>
1179
7e0713b1 1180 merge from FSF apple 'trunk' branch.
40c8d1dd 1181 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
1182
1183 Radar 3803157 (method attributes)
1184 * c-common.c (handle_deprecated_attribute): Recognize
1185 objc methods as valid declarations.
1186 * c-common.h: Declare objc_method_decl ().
7e0713b1 1187 * stub-objc.c (objc_method_decl): New stub.
40c8d1dd 1188
f3f006ad 11892010-10-08 Joseph Myers <joseph@codesourcery.com>
1190
1191 * c-common.c (parse_optimize_options): Call
1192 decode_cmdline_options_to_array_default_mask before
1193 decode_options. Update arguments to decode_options.
1194 * c-common.h (c_common_init_options_struct): Declare.
1195 * c-opts.c (c_common_init_options_struct): New. Split out from
1196 c_common_init_options.
1197
0a65c3bb 11982010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
1199
1200 Implemented fast enumeration for Objective-C.
1201 * c-common.h (objc_finish_foreach_loop): New.
1202 * stub-objc.c (objc_finish_foreach_loop): New.
1203
24ca3b4e 12042010-10-05 Joseph Myers <joseph@codesourcery.com>
1205
1206 * c-common.h (struct diagnostic_context): Don't declare here.
1207 (c_common_initialize_diagnostics): Declare using
1208 diagnostic_context typedef.
1209 * c-opts.c (c_common_handle_option): Pass global_dc to
1210 handle_generated_option.
1211
f83b64ca 12122010-10-04 Joseph Myers <joseph@codesourcery.com>
1213
1214 * c-opts.c (c_common_handle_option): Pass &global_options_set to
1215 handle_generated_option.
1216
2fdec027 12172010-10-03 Ian Lance Taylor <iant@google.com>
1218
1219 * c.opt (-fplan9-extensions): New option.
1220
41acdfa4 12212010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1222
1223 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
1224 Remove.
1225 (c_cpp_builtins): Call functions from cppbuiltin.c instead
1226 of duplicating code.
1227
069761fb 12282010-09-30 Iain Sandoe <iains@gcc.gnu.org>
1229
1230 * c-common.c: Add two new entries for @optional
1231 and @required keywords.
1232
1233 merge from FSF 'apple/trunk' branch.
1234 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
1235
1236 Radar 4386773
1237 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
1238 objective-c keywords.
1239 (objc_set_method_opt): New declaration.
1240 * stub-objc.c (objc_set_method_opt): New stub.
1241
2c5d2e39 12422010-09-30 Joseph Myers <joseph@codesourcery.com>
1243
1244 * c-common.c (handle_optimize_attribute): Pass &global_options to
1245 cl_optimization_save and cl_optimization_restore.
1246 * c-opts.c (c_common_handle_option): Pass &global_options to
1247 handle_generated_option.
1248 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
1249 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
1250 &global_options to cl_optimization_restore.
1251
e5c75ac3 12522010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
1253
1254 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
1255 Objective-C/Objective-C++ keywords.
1256
3511333e 12572010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
e147d6aa 1258
1259 Merge from 'apple/trunk' branch on FSF servers.
1260
1261 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
1262
1263 Radar 4281748
1264 * c-common.h (objc_check_global_decl): New declaration.
1265 * stub-objc.c (objc_check_global_decl): New stub.
1266
5461e683 12672010-09-29 Joseph Myers <joseph@codesourcery.com>
1268
1269 * c.opt: Don't use VarExists.
1270
5ae82d58 12712010-09-29 Joseph Myers <joseph@codesourcery.com>
1272
1273 * c-common.c (c_cpp_error): Update names of diagnostic_context
1274 members.
1275 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
1276 cl_optimization members.
1277 * c-opts.c (warning_as_error_callback, c_common_handle_option,
1278 sanitize_cpp_opts, finish_options): Update names of cpp_options
1279 members.
1280
b27e241e 12812010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1282
1283 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
1284 (objc_is_reserved_word): Removed.
1285 * c-common.c: Updated comments.
1286 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
1287 objc_is_reserved_word.
1288 * stub-objc.c (objc_is_reserved_word): Removed.
1289
03fc2271 12902010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1291
1292 * c-common.h (objc_add_method_declaration): Adjust prototype to
1293 include attributes.
1294 (objc_start_method_definition): Likewise.
1295 (objc_build_keyword_decl): Likewise.
1296 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
1297 (objc_start_method_definition): Likewise.
1298 (objc_build_keyword_decl): Likewise.
1299
a336eb4b 13002010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1301
1302 * c-common.h (objc_start_class_interface): Adjust prototype.
1303 (objc_start_category_interface): Likewise.
1304 (objc_start_protocol): Likewise.
1305 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
1306 (objc_start_class_interface): Likewise.
1307 (objc_start_category_interface): Likewise.
1308
48b14f50 13092010-09-27 Ian Lance Taylor <iant@google.com>
1310
1311 * c-common.c (c_common_attribute_table): Add no_split_stack.
1312 (handle_no_split_stack_attribute): New static function.
1313
4abfc532 13142010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
1315
1316 Merge from 'apple/trunk' branch on FSF servers.
1317
1318 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
1319
1320 Radar 4229905
1321 * c-common.h (objc_have_common_type): New declaration.
1322 * stub-objc.c (objc_have_common_type): New stub.
1323
1324 2005-06-22 Ziemowit Laski <zlaski@apple.com>
1325
1326 Radar 4154928
1327 * c-common.h (objc_common_type): New prototype.
1328 * stub-objc.c (objc_common_type): New stub.
1329
7bd95dfd 13302010-09-24 Jan Hubicka <jh@suse.cz>
1331
1332 * c-common.c (handle_leaf_attribute): New function.
1333 (struct attribute_spec c_common_att): Add leaf.
1334
5789e05b 13352010-09-22 Joseph Myers <joseph@codesourcery.com>
1336
1337 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
1338 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
1339 -dump, -dump=, -imacros, -imacros=, -include, -include=,
1340 -include-barrier, -include-directory, -include-directory=,
1341 -include-directory-after, -include-directory-after=,
1342 -include-prefix, -include-prefix=, -include-with-prefix,
1343 -include-with-prefix=, -include-with-prefix-after,
1344 -include-with-prefix-after=, -include-with-prefix-before,
1345 -include-with-prefix-before=, -no-integrated-cpp,
1346 -no-line-commands, -no-standard-includes, -no-warnings, -output,
1347 -output=, -pedantic, -pedantic-errors, -preprocess,
1348 -print-missing-file-dependencies, -trace-includes, -traditional,
1349 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
1350 -user-dependencies, -verbose, -write-dependencies,
1351 -write-user-dependencies, no-integrated-cpp, traditional): New.
1352
e6fb54ba 13532010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1354
1355 PR objc/23710
9b60f3b0 1356 * c-common.h (objc_start_method_definition): Return bool instead
1357 of void.
1358 * stub-objc.c (objc_start_method_definition): Return bool instead
1359 of void.
1360
13612010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1362
1363 PR objc/25965
1364 * c-common.h (objc_get_interface_ivars): New declaration.
1365 * stub-objc.c (objc_get_interface_ivars): New stub.
e6fb54ba 1366
e44b0a1f 13672010-09-15 Ian Lance Taylor <iant@google.com>
1368
1369 * c-common.c (parse_optimize_options): Do not capitalize warning
ebd7c4c1 1370 messages. Remove period at end of warning message.
e44b0a1f 1371
85c0a25c 13722010-09-09 Nathan Sidwell <nathan@codesourcery.com>
1373
1374 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
1375 (handle_alias_attribute): ... here.
1376 (handle_ifunc_attribute): New.
1377
5ba33bf4 13782010-09-06 Mark Mitchell <mark@codesourcery.com>
1379
1380 * c-common.h (do_warn_double_promotion): Declare.
1381 * c-common.c (do_warn_double_promotion): Define.
1382
c920faa3 13832010-09-05 Mark Mitchell <mark@codesourcery.com>
1384
1385 * c.opt (Wdouble-promotion): New.
1386
9604e070 13872010-09-02 Joseph Myers <joseph@codesourcery.com>
1388
1389 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
1390 fvtable-thunks, fxref): Mark no longer supported in help text.
1391
3b0273a1 13922010-09-02 Joseph Myers <joseph@codesourcery.com>
1393
1394 * c.opt (Wimport, fall-virtual, falt-external-templates,
1395 fdefault-inline, fenum-int-equiv, fexternal-templates,
1396 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
1397 fname-mangling-version-, fnew-abi, fnonnull-objects,
1398 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
1399 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
1400 applicable.
1401 (fhandle-exceptions): Mark with Alias and Warn.
1402 * c-opts.c (c_common_handle_option): Don't handle options marked
1403 as ignored.
1404
67089c6b 14052010-09-02 Joseph Myers <joseph@codesourcery.com>
1406
1407 * c.opt (Wcomments, Werror-implicit-function-declaration,
1408 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
1409 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
1410 aliases.
1411 * c-common.c (option_codes): Use OPT_Wcomment instead of
1412 OPT_Wcomments.
1413 * c-opts.c (warning_as_error_callback, c_common_handle_option):
1414 Don't handle options marked as aliases.
1415
2af087f2 14162010-08-25 Richard Guenther <rguenther@suse.de>
1417
1418 * c-common.c (c_common_get_alias_set): Remove special
1419 handling for pointers.
1420
48148244 14212010-08-20 Nathan Froyd <froydnj@codesourcery.com>
1422
1423 * c-common.c: Use FOR_EACH_VEC_ELT.
1424 * c-gimplify.c: Likewise.
1425 * c-pragma.c: Likewise.
1426
89c69892 14272010-08-16 Joseph Myers <joseph@codesourcery.com>
1428
1429 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
1430 RejectDriver.
1431 (MMDX): Change back to MMD. Mark NoDriverArg instead of
1432 RejectDriver.
1433 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
1434 instead of OPT_MDX and OPT_MMDX.
1435
e28aa114 14362010-08-16 Joseph Myers <joseph@codesourcery.com>
1437
1438 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
1439
99b66d21 14402010-08-12 Joseph Myers <joseph@codesourcery.com>
1441
1442 * c.opt (MD, MMD): Change to MDX and MMDX.
1443 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
1444
666f4bf0 14452010-08-11 Joseph Myers <joseph@codesourcery.com>
1446
1447 * c-opts.c (c_common_handle_option): Call handle_generated_option
1448 instead of handle_option.
1449
5ec815f6 14502010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1451
1452 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
1453 (maybe_apply_renaming_pragma): Delete unneeded declarations.
1454
d13143cf 14552010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1456
1457 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
1458 (pending_redefine_extname): Change type to a VEC.
1459 (add_to_renaming_pragma_list): Update for new type of
1460 pending_redefine_extname.
5ec815f6 1461 (maybe_apply_renaming_pragma): Likewise.
d13143cf 1462
2008c983 14632010-08-04 Arnaud Charlet <charlet@adacore.com>
1464
1465 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
1466 visited.
1467 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
1468 decide whether a type has already been declared/seen.
1469 Do not go to the original type.
1470 (dump_nested_types): New parameter forward.
1471 Generate forward declaration if needed and mark type as visited.
1472 (print_ada_declaration): Call dump_nested_types if not already done.
1473 Mark types as visited.
1474
9b091a73 14752010-08-03 Joseph Myers <joseph@codesourcery.com>
1476
1477 * c.opt (-print-pch-checksum): Remove option.
1478 * c-opts.c (c_common_handle_option): Don't handle
1479 OPT_print_pch_checksum.
1480
b78351e5 14812010-07-27 Joseph Myers <joseph@codesourcery.com>
1482
1483 * c-common.h (c_common_handle_option): Update prototype and return
1484 value type.
1485 * c-opts.c (c_common_handle_option): Update prototype and return
1486 value type. Update calls to handle_option and
1487 enable_warning_as_error.
1488
34416a90 14892010-07-27 Jakub Jelinek <jakub@redhat.com>
1490
1491 PR c/45079
1492 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
1493
fecf9011 14942010-07-27 Joseph Myers <joseph@codesourcery.com>
1495
1496 * c-common.h (c_common_missing_argument): Remove.
1497 * c-opts.c (c_common_missing_argument): Remove.
1498 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
1499 idirafter, imacros, include, isysroot, isystem, iquote): Add
1500 MissingArgError.
1501 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
1502
e88d34f6 15032010-07-27 Joseph Myers <joseph@codesourcery.com>
1504
1505 * c-common.h (c_common_option_lang_mask,
1506 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
1507 New.
1508 (c_common_init_options): Update prototype.
1509 * c-opts.c (c_common_option_lang_mask): New.
1510 (c_common_initialize_diagnostics): Split out of
1511 c_common_init_options.
1512 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
1513 New.
1514 (c_common_init_options): Update prototype. Use decoded options in
1515 search for -lang-asm.
1516
1767a056 15172010-07-15 Nathan Froyd <froydnj@codesourcery.com>
1518
1519 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
1520 * c-format.c: Likewise.
1521
0b205f4c 15222010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
1523
1524 * c-common.h: Include diagnostic-core.h. Error if already
1525 included.
1526 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
1527
1c58e3f1 15282010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1529
1530 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
1531 Do not include expr.h
1532 (vector_mode_valid_p): Move here.
1533
33cc157c 15342010-06-21 DJ Delorie <dj@redhat.com>
1535
1536 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
1537 allow these pragmas anywhere.
1538
15392010-06-14 Jakub Jelinek <jakub@redhat.com>
1540
1541 PR bootstrap/44509
1542 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
1543 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
1544 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
1545 ggc_strdup instead of xstrdup.
1546
15472010-06-10 Jakub Jelinek <jakub@redhat.com>
1548
1549 * c-cppbuiltin.c: Include cpp-id-data.h.
1550 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
1551 (lazy_hex_fp_value): New function.
1552 (builtin_define_with_hex_fp_value): Provide definitions lazily.
1553
9b40bfbf 15542010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1555
1556 * c-gimplify.c: Do not include tree-flow.h
1557
202d6e5f 15582010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
1559
1560 PR other/44034
1561 * c-common.c: Rename targetm member:
1562 targetm.enum_va_list -> targetm.enum_va_list_p
1563
d3237426 15642010-06-28 Anatoly Sokolov <aesok@post.ru>
1565
1566 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
1567
596981c8 15682010-06-28 Steven Bosscher <steven@gcc.gnu.org>
1569
1570 * c-cppbuiltin.c: Do not include except.h.
1571
b9bdfa0b 15722010-06-24 Andi Kleen <ak@linux.intel.com>
1573
1574 * c-common.c (warn_for_omitted_condop): New.
1575 * c-common.h (warn_for_omitted_condop): Add prototype.
1576
55ad092d 15772010-06-21 Joseph Myers <joseph@codesourcery.com>
1578
1579 * c.opt (lang-objc): Remove.
1580 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
1581
9e7c2572 15822010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
1583
1584 * c-opts.c: Include "tm_p.h".
1585
615ef0bb 15862010-06-20 Joseph Myers <joseph@codesourcery.com>
1587
1588 * c-common.c (parse_optimize_options): Update call to
1589 decode_options.
1590
aef48c9a 15912010-06-18 Nathan Froyd <froydnj@codesourcery.com>
1592
1593 * c-common.c (record_types_used_by_current_var_decl): Adjust for
1594 new type of types_used_by_cur_var_decl.
1595
d74003b4 15962010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
1597
1598 PR bootstrap/44512
1599 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
1600 for C++ standard compliance.
1601
1194d077 16022010-06-16 Jason Merrill <jason@redhat.com>
1603
1604 * c.opt: Add -Wnoexcept.
1605
d473d901 16062010-06-16 Richard Guenther <rguenther@suse.de>
1607
1608 PR c/44555
1609 * c-common.c (c_common_truthvalue_conversion): Remove
1610 premature and wrong optimization concering ADDR_EXPRs.
1611
b62dbfd3 16122010-06-15 Arnaud Charlet <charlet@adacore.com>
1613
1614 * c-ada-spec.c (dump_sloc): Remove column info.
1615 (is_simple_enum): New function.
1616 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
1617 enum types when relevant.
1618
200dd99c 16192010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1620
1621 * c-common.c (conversion_warning): Warn at expression
1622 location.
1623
abf6a617 16242010-06-10 Joseph Myers <joseph@codesourcery.com>
1625
1626 * c-opts.c (c_common_handle_option): Don't handle
1627 OPT_fshow_column.
1628
ba72912a 16292010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1630
1631 * c-pragma.c (push_alignment): Use typed GC allocation.
1632 (handle_pragma_push_options): Likewise.
1633
1634 * c-common.c (parse_optimize_options): Likewise.
1635
1636 * c-common.h (struct sorted_fields_type): Add variable_size GTY
1637 option.
1638
4aafe913 16392010-06-07 Joseph Myers <joseph@codesourcery.com>
1640
1641 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
1642 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1643 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1644 flag_signed_bitfields, warn_strict_null_sentinel,
1645 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
1646 flag_gen_declaration, flag_no_gnu_keywords,
1647 flag_implement_inlines, flag_implicit_templates,
1648 flag_implicit_inline_templates, flag_optional_diags,
1649 flag_elide_constructors, flag_default_inline, flag_rtti,
1650 flag_conserve_space, flag_access_control, flag_check_new,
1651 flag_new_for_scope, flag_weak, flag_working_directory,
1652 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
1653 flag_enforce_eh_specs, flag_threadsafe_statics,
1654 flag_pretty_templates): Remove.
1655 * c-common.h (flag_preprocess_only, flag_nil_receivers,
1656 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
1657 flag_replace_objc_classes, flag_undef, flag_no_builtin,
1658 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1659 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1660 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
1661 flag_no_gnu_keywords, flag_implement_inlines,
1662 flag_implicit_templates, flag_implicit_inline_templates,
1663 flag_optional_diags, flag_elide_constructors, flag_default_inline,
1664 flag_rtti, flag_conserve_space, flag_access_control,
1665 flag_check_new, flag_new_for_scope, flag_weak,
1666 flag_working_directory, flag_use_cxa_atexit,
1667 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
1668 flag_threadsafe_statics, flag_pretty_templates,
1669 warn_strict_null_sentinel): Remove.
1670 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
1671 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
1672 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
1673 fimplicit-inline-templates, fimplicit-templates,
1674 flax-vector-conversions, fms-extensions, fnil-receivers,
1675 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
1676 frtti, fshort-double, fshort-enums, fshort-wchar,
1677 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
1678 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
1679 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
1680 gen-decls, undef): Use Var.
1681 (fdefault-inline, foptional-diags): Document as doing nothing.
1682 * c-opts.c (c_common_handle_option): Remove cases for options now
1683 using Var. Mark ignored options as such.
1684
7bedc3a0 16852010-06-05 Steven Bosscher <steven@gcc.gnu.org>
1686
1687 * c-common.c: Moved to here from parent directory.
1688 * c-common.def: Likewise.
1689 * c-common.h: Likewise.
1690 * c-cppbuiltin.c: Likewise.
1691 * c-dump.c: Likewise.
1692 * c-format.c: Likewise.
1693 * c-format.h : Likewise.
1694 * c-gimplify.c: Likewise.
1695 * c-lex.c: Likewise.
1696 * c-omp.c: Likewise.
1697 * c.opt: Likewise.
1698 * c-opts.c: Likewise.
1699 * c-pch.c: Likewise.
1700 * c-ppoutput.c: Likewise.
1701 * c-pragma.c: Likewise.
1702 * c-pragma.h: Likewise.
1703 * c-pretty-print.c: Likewise.
1704 * c-pretty-print.h: Likewise.
1705 * c-semantics.c: Likewise.
1706 * stub-objc.c: Likewise.
1707
1708 * c-common.c: Include gt-c-family-c-common.h.
1709 * c-pragma.c: Include gt-c-family-c-pragma.h.
1710\f
dd045aee 1711Copyright (C) 2010, 2011 Free Software Foundation, Inc.
7bedc3a0 1712
1713Copying and distribution of this file, with or without modification,
1714are permitted in any medium without royalty provided the copyright
1715notice and this notice are preserved.