]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
re PR libfortran/47970 (c99_functions.c:611:5: warning: implicit declaration of funct...
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
6d87092d
JM
12011-11-07 Jason Merrill <jason@redhat.com>
2
3 PR c++/35688
4 * c-common.c, c-common.h: Revert yesterday's changes.
5
8e7860a1
JM
62011-11-06 Jason Merrill <jason@redhat.com>
7
8 PR c++/35688
9 * c-common.c (decl_has_visibility_attr): Split out from...
10 (c_determine_visibility): ...here.
11 * c-common.h: Declare it.
12
d19fa6b5
JM
132011-11-06 Joseph Myers <joseph@codesourcery.com>
14
15 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
16 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
17 type.
18 (check_user_alignment): New. Split out of
19 handle_aligned_attribute. Disallow integer constants with
20 noninteger types. Conditionally allow zero.
21 (handle_aligned_attribute): Use check_user_alignment.
22 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
23
86951993
AM
242011-11-06 Andrew MacLeod <amacleod@redhat.com>
25 Richard Henderson <rth@redhat.com>
26
27 Merged from cxx-mem-model.
28
29 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
30 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
31 parameters that are the same type size.
32 (get_atomic_generic_size): New. Find size of generic
33 atomic function parameters and do typechecking.
34 (add_atomic_size_parameter): New. Insert size into parameter list.
35 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
36 either __atomic_exchange_n or external library call.
37 (resolve_overloaded_atomic_compare_exchange): Restructure
38 __atomic_compare_exchange to either _n variant or external library call.
39 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
40 __atomic_load_n or an external library call.
41 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
42 __atomic_store_n or an external library call.
43 (resolve_overloaded_builtin): Handle new __atomic builtins.
44
cf9e9959
EB
452011-11-04 Eric Botcazou <ebotcazou@adacore.com>
46
47 PR c++/50608
48 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
49 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
50 <INDIRECT_REF>: Return the argument.
51 <ARRAY_REF>: Remove special code for negative offset.
52 Call fold_build_pointer_plus instead of size_binop.
53 (fold_offsetof): Remove STOP_REF argument and adjust.
54 * c-common.h (fold_offsetof_1): Declare.
55 (fold_offsetof): Remove STOP_REF argument.
56
25339f10
JM
572011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
58
59 PR c++/50810
60 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
61 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
62 Wnarrowing for C++0x and C++98.
63 * c.opt ([Wnarrowing]): Update.
64
89401152
PC
652011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
66
67 PR c++/44277
68 * c.opt: Add Wzero-as-null-pointer-constant.
69
97e3ad20
JM
702011-10-31 Jason Merrill <jason@redhat.com>
71
15694fdd
JM
72 * c.opt (-fdeduce-init-list): Off by default.
73
97e3ad20
JM
74 PR c++/50920
75 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
76 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
77 and -Wc++11-compat.
78 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
79
fb9120e3
RAV
802011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
81
82 PR c++/30066
83 * c.opt (fvisibility-inlines-hidden): Description change.
84
3ce4f9e4
ESR
852011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
86
87 Implement C++11 user-defined literals.
88 * c-common.c (build_userdef_literal): New.
89 * c-common.def: New tree code.
90 * c-common.h (tree_userdef_literal): New tree struct and accessors.
91 * c-lex.c (interpret_float): Add suffix parm.
92 (c_lex_with_flags): Build literal tokens.
93
5f53c243
PC
942011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
95
96 PR c++/50841
97 Revert:
98 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
99
100 PR c++/50810
101 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
102 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
103 Wnarrowing for C++0x and C++98.
104 * c.opt ([Wnarrowing]): Update.
105
263734e1
PC
1062011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
107
108 PR c++/50810
109 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
110 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
111 Wnarrowing for C++0x and C++98.
112 * c.opt ([Wnarrowing]): Update.
113
d2e312d7
PC
1142011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
115
116 PR c++/45385
117 * c-common.c (conversion_warning): Remove code looking for
118 artificial operands.
119
d17687f6
DS
1202011-10-18 Dodji Seketeli <dodji@redhat.com>
121
122 PR bootstrap/50760
123 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
124 !NO_IMPLICIT_EXTERN_C.
125
fc8396e9
PC
1262011-10-17 Michael Spertus <mike_spertus@symantec.com>
127
128 * c-common.c (c_common_reswords): Add __bases,
129 __direct_bases.
130 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
131
1322011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
133
134 PR c++/50757
135 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
136
847e697a
TT
1372011-10-15 Tom Tromey <tromey@redhat.com>
138 Dodji Seketeli <dodji@redhat.com>
139
140 * c.opt (fdebug-cpp): New option.
141 * c-opts.c (c_common_handle_option): Handle the option.
142 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
143 output stream in parameter. Factorized from ...
144 (maybe_print_line): ... this. Dump location debug information when
145 -fdebug-cpp is in effect.
146 (print_line_1): New static function. Takes an output stream in
147 parameter. Factorized from ...
148 (print_line): ... here. Dump location information when -fdebug-cpp
149 is in effect.
150 (scan_translation_unit): Dump location information when
151 -fdebug-cpp is in effect.
152
92582b75
TT
1532011-10-15 Tom Tromey <tromey@redhat.com>
154 Dodji Seketeli <dodji@redhat.com>
155
156 * c.opt (ftrack-macro-expansion): New option. Handle it with and
157 without argument.
158 * c-opts.c (c_common_handle_option)<case
159 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
160 cases. Handle -ftrack-macro-expansion with and without argument.
161
46427374
TT
1622011-10-15 Tom Tromey <tromey@redhat.com>
163 Dodji Seketeli <dodji@redhat.com>
164
165 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
166 (print_line, cb_define, do_line_change): Adjust to avoid touching
167 the internals of struct line_map. Use the public API instead.
168 * c-pch.c (c_common_read_pch): Likewise.
169 * c-lex.c (fe_file_change): Likewise.
170
fc8396e9
PC
1712011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
172
173 PR c++/17212
174 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
175
1762011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
177
178 PR c++/33067
179 * c-pretty-print.c (pp_c_floating_constant): Output
180 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
181
e79983f4
MM
1822011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
183
184 * c-common.c (def_builtin_1): Delete old interface with two
185 parallel arrays to hold standard builtin declarations, and replace
186 it with a function based interface that can support creating
187 builtins on the fly in the future. Change all uses, and poison
188 the old names. Make sure 0 is not a legitimate builtin index.
189 * c-omp.c (c_finish_omp_barrier): Ditto.
190 (c_finish_omp_taskwait): Ditto.
191 (c_finish_omp_flush): Ditto.
192
6637388f
TG
1932011-10-11 Tristan Gingold <gingold@adacore.com>
194
195 * c.opt: (fallow-parameterless-variadic-functions): New.
196
3797cb21
DS
1972011-09-08 Dodji Seketeli <dodji@redhat.com>
198
199 PR c++/33255 - Support -Wunused-local-typedefs warning
200 * c-common.h (struct c_language_function::local_typedefs): New
201 field.
202 (record_locally_defined_typedef, maybe_record_typedef_use)
203 (maybe_warn_unused_local_typedefs): Declare new functions.
204 * c-common.c (record_locally_defined_typedef)
205 (maybe_record_typedef_use)
206 (maybe_warn_unused_local_typedefs): Define new functions.
207 * c.opt: Declare new -Wunused-local-typedefs flag.
208
693ddb1b
EB
2092011-09-06 Eric Botcazou <ebotcazou@adacore.com>
210
211 PR middle-end/50266
212 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
213 computations.
214
830c740f
RG
2152011-09-05 Richard Guenther <rguenther@suse.de>
216
217 * c-common.c (complete_array_type): Use ssize_int (-1) instead
218 of integer_minus_one_node for empty array upper bounds.
219
892a371f
DS
2202011-08-28 Dodji Seketeli <dodji@redhat.com>
221
222 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
223 it's the first time it's being called on this main TU.
224
0e3fdb48
RB
2252011-08-24 Richard Guenther <rguenther@suse.de>
226
227 PR c/49396
228 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
229
2302011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
231
232 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
233 defined in cpp_init_builtins and c_cpp_builtins.
234
d4a83c10
JM
2352011-08-19 Joseph Myers <joseph@codesourcery.com>
236
237 * c-common.c (c_common_reswords): Add __builtin_complex.
238 * c-common.h (RID_BUILTIN_COMPLEX): New.
239
bbceee64
JM
2402011-08-18 Joseph Myers <joseph@codesourcery.com>
241
242 * c-common.c (c_common_reswords): Add _Noreturn.
243 (keyword_is_function_specifier): Handle RID_NORETURN.
244 * c-common.h (RID_NORETURN): New.
245
0e3a99ae
AS
2462011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
247
248 * c-common.c (unsafe_conversion_p): New function. Check if it is
249 unsafe to convert an expression to the type.
250 (conversion_warning): Adjust, use unsafe_conversion_p.
251 * c-common.h (unsafe_conversion_p): New function declaration.
252
20906c66
JJ
2532011-08-02 Jakub Jelinek <jakub@redhat.com>
254
255 * c-common.h (c_finish_omp_atomic): Adjust prototype.
256 (c_finish_omp_taskyield): New prototype.
257 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
258 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
259 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
260 or RHS1 have side-effects, evaluate those too in the right spot,
261 if it is a decl and LHS is also a decl, error out if they
262 aren't the same.
263 (c_finish_omp_taskyield): New function.
264 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
265 * c-pragma.c (omp_pragmas): Add taskyield.
266 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
267 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
268 PRAGMA_OMP_CLAUSE_MERGEABLE.
269
770e5a2e
DS
2702011-07-25 Dodji Seketeli <dodji@redhat.com>
271
272 * c-common.h (set_underlying_type): Remove parm name from
273 declaration.
274
1baae426
RG
2752011-07-25 Romain Geissler <romain.geissler@gmail.com>
276
277 * c-pretty-print.h: Search c-common.h in c-family.
278
fcb21722
JM
2792011-07-22 Jason Merrill <jason@redhat.com>
280
76f86d00
JM
281 PR c++/49793
282 * c.opt (Wnarrowing): New.
283
3a636414
JM
284 PR c++/30112
285 * c-common.h: Declare c_linkage_bindings.
286 * c-pragma.c (handle_pragma_redefine_extname): Use it.
287
fcb21722
JM
288 PR c++/49813
289 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
290 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
291 as flag_isoc99 for 'restrict'.
292 (pp_c_specifier_qualifier_list): Likewise for _Complex.
293
02614448
ILT
2942011-07-21 Ian Lance Taylor <iant@google.com>
295
296 PR middle-end/49705
297 * c-common.c (c_disable_warnings): New static function.
298 (c_enable_warnings): New static function.
299 (c_fully_fold_internal): Change local unused_p to bool. Call
300 c_disable_warnings and c_enable_warnings rather than change
301 c_inhibit_evaluation_warnings.
302
34429675
JM
3032011-07-20 Jason Merrill <jason@redhat.com>
304
305 PR c++/6709 (DR 743)
306 PR c++/42603 (DR 950)
307 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
308 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
309 (CPP_DECLTYPE): New.
310 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
311
5d49b6a7
RG
3122011-07-19 Richard Guenther <rguenther@suse.de>
313
314 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
315 * c-omp.c (c_finish_omp_for): Likewise.
316
e84a58ff
EB
3172011-07-12 Eric Botcazou <ebotcazou@adacore.com>
318
319 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
320 body on the next line.
321
329af3c7
JM
3222011-07-08 Jason Merrill <jason@redhat.com>
323
4063e61b
JM
324 PR c++/45437
325 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
326
329af3c7
JM
327 PR c++/49673
328 * c-common.c (c_apply_type_quals_to_decl): Don't check
329 TYPE_NEEDS_CONSTRUCTING.
330
1a072294
RG
3312011-07-06 Richard Guenther <rguenther@suse.de>
332
333 * c-common.c (c_common_nodes_and_builtins):
334 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
335
fce5dddd
RG
3362011-07-05 Richard Guenther <rguenther@suse.de>
337
338 * c-common.c (c_common_nodes_and_builtins): Build all common
339 tree nodes first.
340
45d439ac
JJ
3412011-06-27 Jakub Jelinek <jakub@redhat.com>
342
56300785
JJ
343 * c-common.h (c_tree_chain_next): New static inline function.
344
45d439ac
JJ
345 * c-common.c (check_builtin_function_arguments): Handle
346 BUILT_IN_ASSUME_ALIGNED.
347
e0a8ecf2
AM
3482011-06-21 Andrew MacLeod <amacleod@redhat.com>
349
350 * c-common.c: Add sync_ or SYNC__ to builtin names.
351 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
352
3532011-06-20 Pierre Vittet <piervit@pvittet.com>
354
355 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
356 handler.
357 (gen_pragma_handler): New union.
358 (internal_pragma_handler): New type.
359 (c_register_pragma_with_data)
360 (c_register_pragma_with_expansion_and_data): New functions.
361
362 * c-pragma.c (registered_pragmas, c_register_pragma_1)
363 (c_register_pragma, c_register_pragma_with_expansion)
364 (c_invoke_pragma_handler): Changed to work with
365 internal_pragma_handler.
366 (c_register_pragma_with_data)
367 (c_register_pragma_with_expansion_and_data): New functions.
368
677f3fa8
JM
3692011-06-14 Joseph Myers <joseph@codesourcery.com>
370
371 * c-common.c: Include common/common-target.h.
372 (handle_section_attribute): Use
373 targetm_common.have_named_sections.
374 * c-cppbuiltin.c: Include common/common-target.h.
375 (c_cpp_builtins): Use targetm_common.except_unwind_info.
376
d7fc8c14
RG
3772011-06-10 Richard Guenther <rguenther@suse.de>
378
379 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
380 to print a IDENTIFIER_NODE.
381
10e48e39
RO
3822011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
383 Joseph Myers <joseph@codesourcery.com>
384
385 * c.opt (fbuilding-libgcc): New option.
386 * c-cppbuiltin.c (c_cpp_builtins): Define
387 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
388
6976ae51
JM
3892011-06-07 Jason Merrill <jason@redhat.com>
390
3ff60975
JM
391 * c-common.c (max_tinst_depth): Lower default to 900.
392
6976ae51
JM
393 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
394
009db074
RG
3952011-06-07 Richard Guenther <rguenther@suse.de>
396
397 * c-common.c (c_common_nodes_and_builtins): Do not set
398 size_type_node or call set_sizetype.
399
b4592b92
DS
4002011-06-07 Dodji Seketeli <dodji@redhat.com>
401
402 PR debug/49130
403 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
404 type when using pointer comparison to compare types.
405
014ab419
JW
4062011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
407
408 * c.opt: Add -Wdelete-non-virtual-dtor.
409 * c-opts.c (c_common_handle_option): Include it in -Wall.
410
4f60111f
NF
4112011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
412
413 PR bootstrap/49190
414
415 Revert:
416 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
417
418 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
419 not tree_common.
420
4cc4f2f4
JJ
4212011-05-27 Jakub Jelinek <jakub@redhat.com>
422
423 PR c++/49165
424 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
425 C++ don't call c_common_truthvalue_conversion on void type arms.
426
38e01f9e
NF
4272011-05-27 Nathan Froyd <froydnj@codesourcery.com>
428
429 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
430 (stmt_list_stack): Define.
431 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
432 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
433
92e948a8
NF
4342011-05-26 Nathan Froyd <froydnj@codesourcery.com>
435
436 * c-common.c (warning_candidate_p): Check for BLOCKs.
437
a2fc3e63
NF
4382011-05-26 Nathan Froyd <froydnj@codesourcery.com>
439
440 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
441 not tree_common.
442
0957c029
JJ
4432011-05-25 Jakub Jelinek <jakub@redhat.com>
444
445 * c-common.c (def_fn_type): Remove extra va_end.
446
828fb3ba
JM
4472011-05-23 Jason Merrill <jason@redhat.com>
448
449 PR c++/48106
450 * c-common.c (c_common_get_narrower): New.
451 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
452
dde05067
NF
4532011-05-23 Nathan Froyd <froydnj@codesourcery.com>
454
455 * c-common.h (check_function_arguments): Tweak prototype of
456 check_function_arguments.
457 * c-common.c (check_function_arguments): Likewise. Adjust
458 calls to check_function_nonnull, check_function_format, and
459 check_function_sentinel.
460 (check_function_sentinel): Take a FUNCTION_TYPE rather than
461 separate attributes and typelist arguments. Use
462 FOREACH_FUNCTION_ARGS to iterate over argument types.
463
3c0d13bf
PC
4642011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
465
466 * c-common.c (c_common_reswords): Reorder.
467 * c-common.h (rid): Likewise.
468
8242dd04
NF
4692011-05-10 Nathan Froyd <froydnj@codesourcery.com>
470
471 * c-common.c (def_fn_type): Don't call build_function_type, call
472 build_function_type_array or build_varargs_function_type_array
473 instead.
474 (c_common_nodes_and_builtins): Likewise.
475
3d528853
NF
4762011-05-05 Nathan Froyd <froydnj@codesourcery.com>
477
478 * c-common.c (c_add_case_label): Omit the loc argument to
479 build_case_label.
480 * c-common.h (build_case_label): Remove.
481 * c-semantics.c (build_case_label): Remove.
482
a04a722b
JM
4832011-05-05 Joseph Myers <joseph@codesourcery.com>
484
485 * c-objc.h (objc_start_method_definition): Update prototype.
486 * stub-objc.c (objc_start_method_definition): Add extra parameter.
487
e19a18d4
NF
4882011-05-04 Nathan Froyd <froydnj@codesourcery.com>
489
490 * c-common.c (check_main_parameter_types): Reindent. Don't use
491 TYPE_ARG_TYPES directly.
492 (handle_nonnull_attribute): Likewise.
493 (sync_resolve_params): Likewise.
494 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
495 to check_format_string.
496 (handle_format_attribute): Likewise.
497 (check_format_string): Take a function type to examine instead of
498 a type list. Use a function_arg_iterator to step through argument
499 types.
500
c62c040f
RG
5012011-05-04 Richard Guenther <rguenther@suse.de>
502
503 * c-common.c (fix_string_type): Use size_int for index type bounds.
504 (start_fname_decls): Do not pass NULL to build_int_cst.
505 (c_init_attributes): Likewise.
506 * c-lex.c (c_lex_with_flags): Likewise.
507
c12ff9d8
JM
5082011-04-27 Jason Merrill <jason@redhat.com>
509
510 * c-common.c (make_tree_vector_from_list): New.
511 * c-common.h: Declare it.
512
304dfbe3
RG
5132011-04-26 Richard Guenther <rguenther@suse.de>
514
515 PR preprocessor/48248
516 * c-ppoutput.c (maybe_print_line): Always optimize newlines
517 for output size with -P.
518
3c0d13bf
PC
5192011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
520
521 * c-common.c (struct c_common_resword): Add __underlying_type.
522 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
523
04695783
JM
5242011-04-20 Jim Meyering <meyering@redhat.com>
525
526 * c-format.c (init_dollar_format_checking): Remove useless
527 if-before-free.
528
0dc33c3c
NP
5292011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
530
531 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 532 (objc_detect_field_duplicates): New.
0dc33c3c 533 * stub-objc.c: Likewise.
3c0d13bf 534
c59633d9
NP
5352011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
536
537 * stub-objc.c (objc_declare_protocols): Renamed to
538 objc_declare_protocol.
539 * c-objc.h: Likewise.
3c0d13bf 540
32dabdaf
NP
5412011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
542
543 * stub-objc.c (objc_declare_class): Updated argument name.
544
81f653d6
NF
5452011-04-12 Nathan Froyd <froydnj@codesourcery.com>
546
547 * c-common.h (c_common_init_ts): Declare.
548 * c-common.c (c_common_init_ts): Define.
549
eb345401
NP
5502011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
551
552 * c-objc.h (objc_build_message_expr): Updated prototype.
553 * stub-objc.c (objc_build_message_expr): Likewise.
554
a358e188
MJ
5552011-04-12 Martin Jambor <mjambor@suse.cz>
556
557 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
558 of cgraph_node.
559
e6313a78
RG
5602011-04-11 Richard Guenther <rguenther@suse.de>
561
562 * c-common.c (complete_array_type): Build a range type of
563 proper type.
564
dcf0c47e
NF
5652011-04-08 Nathan Froyd <froydnj@codesourcery.com>
566
567 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
568 (handle_type_generic_attribute): Likewise.
569
1ee44b26
JM
5702011-04-07 Jason Merrill <jason@redhat.com>
571
572 PR c++/48450
573 * c-common.c (c_common_truthvalue_conversion): Don't ignore
574 conversion from C++0x scoped enum.
575
acce4e77
JM
5762011-04-06 Joseph Myers <joseph@codesourcery.com>
577
578 * c-target-def.h: New file.
579 * c-target.def: New file.
580 * c-target.h: New file.
581 * c-common.c (targetcm): Don't define here.
582 * c-common.h (default_handle_c_option): Declare.
583 * c-format.c: Include c-target.h instead of target.h.
584 * c-opts.c: Include c-target.h instead of target.h. Explicitly
585 include tm.h.
586 (default_handle_c_option): Move from targhooks.c.
587
e2eefb55
JJ
5882011-03-29 Jakub Jelinek <jakub@redhat.com>
589
590 PR preprocessor/48248
591 * c-ppoutput.c (print): Add src_file field.
592 (init_pp_output): Initialize it.
593 (maybe_print_line): Don't optimize by adding up to 8 newlines
594 if map->to_file and print.src_file are different file.
595 (print_line): Update print.src_file.
596
ba78087b
KT
5972011-03-25 Kai Tietz <ktietz@redhat.com>
598
599 * c-ada-spec.c (compare_comment): Use filename_cmp
600 instead of strcmp for filename.
601
0edf1bb2
JL
6022011-03-25 Jeff Law <law@redhat.com>
603
604 * c-family/c-common.c (def_fn_type): Add missing va_end.
605
c7dc8804
JM
6062011-03-25 Jason Merrill <jason@redhat.com>
607
608 * c.opt: Add -std=c++03.
609
d1d879b1
EB
6102011-03-22 Eric Botcazou <ebotcazou@adacore.com>
611
612 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
613
62d784f7
KT
6142011-03-17 Kai Tietz
615
616 PR target/12171
5050afdf
KT
617 * c-pretty-print.c (pp_c_specifier_qualifier_list):
618 Display allowed attributes for function pointer types.
619 (pp_c_attributes_display): New function to display
620 attributes having affects_type_identity flag set to true.
621 * c-pretty-print.h (pp_c_attributes_display): New prototype.
622
62d784f7
KT
623 * c-common.c (c_common_attribute_table):
624 Add new element.
625 (c_common_format_attribute_table): Likewise.
626
82d37118
JM
6272011-03-18 Jason Merrill <jason@redhat.com>
628
49a000c3
JM
629 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
630 * c-common.h: Don't declare it here.
631 * c-common.c: Or define it here.
632 * c-opts.c (c_common_handle_option): Or set it here.
633
82d37118
JM
634 PR c++/35315
635 * c-common.c (handle_transparent_union_attribute): Don't
636 make a duplicate type in C++.
637
17bc631c
JM
6382011-03-15 Jason Merrill <jason@redhat.com>
639
640 * c-common.c (max_constexpr_depth): New.
641 * c-common.h: Declare it.
642 * c-opts.c (c_common_handle_option): Set it.
643 * c.opt (fconstexpr-depth): New option.
644
1b9b91a6
JM
6452011-03-11 Jason Merrill <jason@redhat.com>
646
f231b5ff
JM
647 * c-common.c (attribute_takes_identifier_p): Add missing const.
648
1b9b91a6
JM
649 PR c++/46803
650 * c-common.c (attribute_takes_identifier_p): Assume that an
651 unknown attribute takes an identifier.
652
a19e4d44
NF
6532011-03-07 Nathan Froyd <froydnj@codesourcery.com>
654
655 PR c/47786
656 * c-common.c (c_type_hash): Call list_length instead of iterating
657 through DECL_CHAIN. Rename 'i' to 'n_elements'.
658
982d62f6
JJ
6592011-02-19 Jakub Jelinek <jakub@redhat.com>
660
661 PR c/47809
662 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
663
0a256240
NP
6642011-02-17 Iain Sandoe <iains@gcc.gnu.org>
665
666 * c.opt (fobjc-abi-version=) New.
667 (fobjc-nilcheck): New.
668
ba9e6dd5
NF
6692011-02-03 Nathan Froyd <froydnj@codesourcery.com>
670
671 PR c++/46890
672 * c-common.h (keyword_is_decl_specifier): Declare.
673 * c-common.c (keyword_is_decl_specifier): Define.
674 (keyword_is_function_specifier): New function.
675
7273813a
JJ
6762011-01-26 Jakub Jelinek <jakub@redhat.com>
677
678 PR c/47473
679 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
680 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
681 REAL_TYPE.
682
908ef79b
AC
6832011-01-26 Arnaud Charlet <charlet@adacore.com>
684
685 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
686
237e9384
JJ
6872011-01-26 Jakub Jelinek <jakub@redhat.com>
688
689 PR pch/47430
690 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
691 after init_c_lex if pch_file is set.
692
47ea1edf
DK
6932011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
694
d4dba752 695 PR c++/43601
47ea1edf
DK
696 * c.opt (-fkeep-inline-dllexport): New switch.
697
2aa9c6ae
RG
6982011-01-12 Richard Guenther <rguenther@suse.de>
699
700 PR middle-end/32511
701 * c-common.c (handle_weak_attribute): Warn instead of error
702 on declaring an inline function weak.
703
7bd11157
TT
7042011-01-05 Tom Tromey <tromey@redhat.com>
705
706 * c-common.h (lvalue_error): Update.
707 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
708 not error.
709
0e66e494
NP
7102010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
711
b4f588c4
NP
712 PR objc/47075
713 * c-objc.h (objc_finish_message_expr): Added argument to
714 prototype.
715
f4da8dce
NF
7162010-12-22 Nathan Froyd <froydnj@codesourcery.com>
717
718 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
719 Use prototype_p.
720
46270f14
NP
7212010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
722
723 * c-objc.h (objc_maybe_warn_exceptions): New.
724 * stub-objc.c (objc_maybe_warn_exceptions): New.
725
4816c593
NF
7262010-12-10 Nathan Froyd <froydnj@codesourcery.com>
727
728 * c-common.h (readonly_error): Declare.
729 * c-common.c (readonly_error): Define.
730
7a6daeb0
NF
7312010-12-09 Nathan Froyd <froydnj@codesourcery.com>
732
733 * c-common.h (invalid_indirection_error): Declare.
734 * c-common.c (invalid_indirection_error): Define.
735
892f6119
RG
7362010-12-03 Richard Guenther <rguenther@suse.de>
737
738 PR c/46745
739 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
740 (pp_c_unary_expression): Likewise.
741 (pp_c_expression): Likewise.
742
6c39e757
NP
7432010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
744
745 * c-common.h (objc_finish_function): New.
746 (objc_non_volatilized_type): Removed.
747 (objc_type_quals_match): Removed.
748 * stub-objc.c (objc_finish_function): New.
749 (objc_non_volatilized_type): Removed.
750 (objc_type_quals_match): Removed.
751
7c475d11
JM
7522010-11-30 Joseph Myers <joseph@codesourcery.com>
753
754 * c-common.h (parse_optimize_options): Declare.
755 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
756 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
757
71f3e391
JM
7582010-11-29 Joseph Myers <joseph@codesourcery.com>
759
760 * c-opts.c (check_deps_environment_vars): Use getenv instead of
761 GET_ENVIRONMENT.
762 * c-pch.c (O_BINARY): Don't define here.
763 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
764
d5fabb58
JM
7652010-11-25 Joseph Myers <joseph@codesourcery.com>
766
767 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
768 targetm.except_unwind_info.
769
299404a1
JM
7702010-11-23 Joseph Myers <joseph@codesourcery.com>
771
772 * c-opts.c (c_common_handle_option): Pass location to
773 set_struct_debug_option.
774
c98cd5bf
JM
7752010-11-23 Joseph Myers <joseph@codesourcery.com>
776
777 * c-common.c (visibility_options): Move from ../opts.c.
778 * c-common.h (struct visibility_flags, visibility_options):
779 Declare here.
780 * c-opts.c (finish_options): Rename to c_finish_options.
781 (c_common_init): Update call to finish_options.
782
a9546771
NP
7832010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
784
785 PR objc/34033
786 * c-lex.c (lex_string): Check that each string in an Objective-C
787 string concat sequence starts with either one or zero '@', and
788 that there are no spurious '@' signs at the end.
789
24a57808
JM
7902010-11-20 Joseph Myers <joseph@codesourcery.com>
791
792 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
793 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
794 HANDLE_PRAGMA_VISIBILITY.
795 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
796 HANDLE_PRAGMA_VISIBILITY): Don't define.
797 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
798
a9aa2c3a
NF
7992010-11-20 Nathan Froyd <froydnj@codesourcery.com>
800
801 PR c++/16189
802 PR c++/36888
803 PR c++/45331
804 * c-common.h (keyword_begins_type_specifier): Declare.
805 (keyword_is_storage_class_specifier): Declare.
806 (keyword_is_type_qualifier): Declare.
807 * c-common.c (keyword_begins_type_specifier): New function.
808 (keyword_is_storage_class_specifier): New function.
809 (keyword_is_type_qualifier): Declare.
810
5386338c
JM
8112010-11-19 Joseph Myers <joseph@codesourcery.com>
812
813 PR c/46547
814 * c-common.c (in_late_binary_op): Define.
815 (c_common_truthvalue_conversion): Check in_late_binary_op before
816 calling c_save_expr.
817 * c-common.h (in_late_binary_op): Declare.
818
69ccdddb
JM
8192010-11-19 Joseph Myers <joseph@codesourcery.com>
820
821 * c-opts.c (c_common_handle_option): Update calls to
822 set_struct_debug_option.
823
6b192a09
NP
8242010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
825
826 * c-common.h (objc_declare_protocols): Added additional argument.
827 * stub-objc.c (objc_declare_protocol): Same change.
828
fb52b50a
NF
8292010-11-18 Nathan Froyd <froydnj@codesourcery.com>
830
831 PR c/33193
832 * c-common.h (build_real_imag_expr): Declare.
833 * c-semantics.c (build_real_imag_expr): Define.
834
b37421c6
JM
8352010-11-17 Joseph Myers <joseph@codesourcery.com>
836
837 * c-opts.c (c_common_parse_file): Take no arguments.
838 * c-common.h (c_common_parse_file): Update prototype.
839
07078664
JJ
8402010-11-16 Jakub Jelinek <jakub@redhat.com>
841
842 PR c++/46401
843 * c-common.c (warning_candidate_p): Don't track non-const calls
844 or STRING_CSTs.
845
c6a13190
ILT
8462010-11-15 Ian Lance Taylor <iant@google.com>
847
848 * c-lex.c (init_c_lex): Set macro debug callbacks if
849 flag_dump_go_spec is set.
850
925e8657
NP
8512010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
852
853 * c-common.h (objc_build_incr_expr_for_property_ref): New.
854 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
855
bb0a9581
NF
8562010-11-15 Nathan Froyd <froydnj@codesourcery.com>
857
858 PR preprocessor/45038
859 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
860 dialects.
861
c5fa0890
JM
8622010-11-12 Joseph Myers <joseph@codesourcery.com>
863
864 * c-common.h (c_family_lang_mask): Declare.
865 * c-opts.c (c_family_lang_mask): Make extern.
866 * c-pragma.c (handle_pragma_diagnostic): Use
867 control_warning_option.
868
a4d8c676
JM
8692010-11-12 Joseph Myers <joseph@codesourcery.com>
870
871 * c-common.c (parse_optimize_options): Update call to
872 decode_options.
873 * c-common.h (c_common_handle_option): Update prototype.
874 * c-opts.c (c_common_handle_option): Take location_t parameter and
875 pass it to other functions.
876
f954bd2c
JM
8772010-11-11 Joseph Myers <joseph@codesourcery.com>
878
879 * c-opts.c (warning_as_error_callback): Remove.
880 (c_common_initialize_diagnostics): Don't call
881 register_warning_as_error_callback.
882 (c_common_handle_option): Handle -Werror=normalized= here.
883
d8a07487
JM
8842010-11-10 Joseph Myers <joseph@codesourcery.com>
885
886 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
887 in diagnostic.
888 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
889 letter.
890 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
891 Remove trailing '.' from diagnostics.
892 * c.opt (Wwrite-strings_: Avoid '`' in help text.
893
d5478783
JM
8942010-11-10 Joseph Myers <joseph@codesourcery.com>
895
896 * c-common.c (parse_optimize_options): Pass global_dc to
897 decode_options.
898 * c-opts.c (c_common_handle_option): Pass &global_options to
899 set_Wstrict_aliasing.
900 * c.opt (v): Don't mark Common or document here.
901
91ebb981
IS
9022010-11-06 Iain Sandoe <iains@gcc.gnu.org>
903
904 PR target/44981
905 * c-format.c (format_type): New type gcc_objc_string_format_type.
906 (valid_stringptr_type_p): New.
907 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
908 (check_format_string): Pass expected type, use
909 valid_stringptr_type_p (), check that the format string types are
910 consistent with the format specification.
911 (decode_format_attr): Warn if NSString is used outside objective-c.
912 (format_types_orig): Add NSString.
913 (format_name): New.
914 (format_flags): New.
915 (check_format_arg): Handle format strings requiring an external parser.
916 first_target_format_type: New variable.
917 (handle_format_attribute): Set up first_target_format_type, pass the
918 expected format arg string type to check_format_string().
919 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
920 * stub-objc.c (objc_string_ref_type_p): New.
921 (objc_check_format_arg): New.
922
bede2adc
NP
9232010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
924
925 Fixed using the Objective-C 2.0 dot-syntax with class names.
926 * c-common.h (objc_build_class_component_ref): New.
927 * stub-objc.c (objc_build_class_component_ref): New.
928
9a179d01
NP
9292010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
930
931 * c.opt (Wproperty-assign-default): New option.
932
22d8d616
NP
9332010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
934
935 Implemented -fobjc-std=objc1 flag.
936 * c.opt (fobjc-std=objc1): New option.
937
2debdb4f
NP
9382010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
939
940 Implemented format and noreturn attributes for Objective-C methods.
941 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
942 attribute for Objective-C methods.
943
ec52b111
JM
9442010-10-31 Jason Merrill <jason@redhat.com>
945
946 * c-common.c (conversion_warning, warn_for_collisions_1): Use
947 EXPR_LOC_OR_HERE.
948
46a88c12
NP
9492010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
950
951 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
952 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
953 (objc_add_property_declaration): Removed arguments for copies and
954 ivar.
955 (objc_build_getter_call): Renamed to
956 objc_maybe_build_component_ref.
957 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
958 (objc_is_property_ref): New.
959 * c-common.c (c_common_reswords): Removed copies and ivar.
960 * stub-objc.c (objc_add_property_declaration): Removed arguments
961 for copies and ivar.
962 (objc_build_getter_call): Renamed to
963 objc_maybe_build_component_ref.
964 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
965 (objc_is_property_ref): New.
966
1e4bf85b
AC
9672010-10-29 Arnaud Charlet <charlet@adacore.com>
968 Matthew Gingell <gingell@adacore.com>
969
970 * c-ada-spec.c (separate_class_package): New function.
971 (pp_ada_tree_identifier): Prefix references to C++ classes with the
972 name of their enclosing package.
973 (print_ada_declaration): Use separate_class_package.
974
81f0bab2
JM
9752010-10-27 Jason Merrill <jason@redhat.com>
976
2b08f2c5
JM
977 * c-common.c (c_common_reswords): Add __is_literal_type.
978 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
979
81f0bab2
JM
980 * c-common.c (check_case_value): Remove special C++ code.
981
200290f2
NP
9822010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
983
984 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
985 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
986 and RID_LAST_PATTR.
987 (objc_add_property_declaration): Added additional arguments.
988 (objc_property_attribute_kind): Removed.
989 (objc_set_property_attr): Removed.
990 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
991 copy and nonatomic.
992 * stub-objc.c (objc_add_property_declaration): Added additional
993 arguments.
994 (objc_set_property_attr): Removed.
995
f614132b
NP
9962010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
997
998 * c-common.h (objc_add_property_variable): Renamed to
999 objc_add_property_declaration. Added location argument.
1000 * stub-objc.c (objc_add_property_variable): Same change.
1001
b8a18805
NP
10022010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
1003
1004 * c-common.h (objc_maybe_printable_name): New.
1005 * stub-objc.c (objc_maybe_printable_name): New.
1006
30cd1c5d
AS
10072010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1008 Andrew Pinski <pinskia@gmail.com>
1009
1010 * c-common.h (c_common_mark_addressable_vec): Declare.
1011 * c-common.c (c_common_mark_addressable_vec): New function.
1012
249a82c4
NP
10132010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1014
1015 * c-common.h (objc_set_method_type): Removed.
1016 (objc_add_method_declaration): Added boolean argument.
1017 (objc_start_method_definition): Same change.
1018 (objc_build_method_signature): Same change.
1019 * stub-objc.c (objc_set_method_type): Removed.
1020 (objc_add_method_declaration): Added boolean argument.
1021 (objc_start_method_definition): Same change.
1022 (objc_build_method_signature): Same change.
1023
977e30bc
NP
10242010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1025
1026 * c-common.h (finish_file): Removed.
1027 (objc_write_global_declarations): New.
1028 * c-opts.c (c_common_parse_file): Do not call finish_file.
1029 * stub-objc.c (objc_write_global_declarations): New.
1030
da57d1b9
NP
10312010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1032
1033 Implemented parsing @synthesize and @dynamic for
1034 Objective-C/Objective-C++.
1035 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
1036 (objc_add_synthesize_declaration): New.
1037 (objc_add_dynamic_declaration): New.
1038 * c-common.c (c_common_reswords): Add synthesize and dynamic.
1039 * stub-objc.c (objc_add_synthesize_declaration): New.
1040 (objc_add_dynamic_declaration): New.
1041
0069111f
MM
10422010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1043
1044 PR target/46041
1045 * c-cppbuiltin.c (mode_has_fma): Move function here from
1046 builtins.c. Don't use the fma optab, instead just use the
1047 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
1048 using -save-temps.
1049
e426b47b
NP
10502010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1051
1052 Merge from 'apple/trunk' branch on FSF servers.
0069111f 1053
e426b47b
NP
1054 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
1055
1056 Radar 4330422
1057 * c-common.h (objc_non_volatilized_type): New declaration
1058 * stub-objc.c (objc_non_volatilized_type): New stub.
1059
90fbfdc3
NP
10602010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
1061
e426b47b 1062 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
1063
1064 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
1065
1066 Radar 4133425
1067 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 1068 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 1069
c37d8c30
IS
10702010-10-17 Iain Sandoe <iains@gcc.gnu.org>
1071
1072 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
1073 * c-common.h (enum rid): Add RID_AT_PACKAGE.
1074 (objc_ivar_visibility_kind): New enum.
1075 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 1076 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
1077 visibility enum.
1078
1b1562a5
MM
10792010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1080
1081 * c-cppbuiltin.c (builtin_define_float_constants): Emit
1082 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
1083 has the appropriate fma builtins.
1084 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
1085
668ea4b1
IS
10862010-10-14 Iain Sandoe <iains@gcc.gnu.org>
1087
1b1562a5 1088 merge from FSF apple 'trunk' branch.
668ea4b1 1089 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 1090
668ea4b1
IS
1091 Radars 4436866, 4505126, 4506903, 4517826
1092 * c-common.c (c_common_resword): Define @property and its attributes.
1093 * c-common.h: Define property attribute enum entries.
1094 (OBJC_IS_PATTR_KEYWORD): New.
1095 (objc_property_attribute_kind): New enum.
1096 Declare objc_set_property_attr (), objc_add_property_variable (),
1097 objc_build_getter_call () and objc_build_setter_call ().
1098 * stub-objc.c (objc_set_property_attr): New stub.
1099 (objc_add_property_variable): Likewise.
1100 (objc_build_getter_call): Likewise.
1101 (objc_build_setter_call) Likewise.
1b1562a5 1102
a1178b30
IS
11032010-10-13 Iain Sandoe <iains@gcc.gnu.org>
1104
1b1562a5 1105 merge from FSF apple 'trunk' branch.
a1178b30
IS
1106 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
1107
1108 Radar 3803157 (method attributes)
1109 * c-common.c (handle_deprecated_attribute): Recognize
1110 objc methods as valid declarations.
1111 * c-common.h: Declare objc_method_decl ().
1b1562a5 1112 * stub-objc.c (objc_method_decl): New stub.
a1178b30 1113
a75bfaa6
JM
11142010-10-08 Joseph Myers <joseph@codesourcery.com>
1115
1116 * c-common.c (parse_optimize_options): Call
1117 decode_cmdline_options_to_array_default_mask before
1118 decode_options. Update arguments to decode_options.
1119 * c-common.h (c_common_init_options_struct): Declare.
1120 * c-opts.c (c_common_init_options_struct): New. Split out from
1121 c_common_init_options.
1122
f05b9d93
NP
11232010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
1124
1125 Implemented fast enumeration for Objective-C.
1126 * c-common.h (objc_finish_foreach_loop): New.
1127 * stub-objc.c (objc_finish_foreach_loop): New.
1128
1ebe4b4f
JM
11292010-10-05 Joseph Myers <joseph@codesourcery.com>
1130
1131 * c-common.h (struct diagnostic_context): Don't declare here.
1132 (c_common_initialize_diagnostics): Declare using
1133 diagnostic_context typedef.
1134 * c-opts.c (c_common_handle_option): Pass global_dc to
1135 handle_generated_option.
1136
d4d24ba4
JM
11372010-10-04 Joseph Myers <joseph@codesourcery.com>
1138
1139 * c-opts.c (c_common_handle_option): Pass &global_options_set to
1140 handle_generated_option.
1141
478a1c5b
ILT
11422010-10-03 Ian Lance Taylor <iant@google.com>
1143
1144 * c.opt (-fplan9-extensions): New option.
1145
82a1c2fe
FXC
11462010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1147
1148 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
1149 Remove.
1150 (c_cpp_builtins): Call functions from cppbuiltin.c instead
1151 of duplicating code.
1152
92902b1b
IS
11532010-09-30 Iain Sandoe <iains@gcc.gnu.org>
1154
1155 * c-common.c: Add two new entries for @optional
1156 and @required keywords.
1157
1158 merge from FSF 'apple/trunk' branch.
1159 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
1160
1161 Radar 4386773
1162 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
1163 objective-c keywords.
1164 (objc_set_method_opt): New declaration.
1165 * stub-objc.c (objc_set_method_opt): New stub.
1166
46625112
JM
11672010-09-30 Joseph Myers <joseph@codesourcery.com>
1168
1169 * c-common.c (handle_optimize_attribute): Pass &global_options to
1170 cl_optimization_save and cl_optimization_restore.
1171 * c-opts.c (c_common_handle_option): Pass &global_options to
1172 handle_generated_option.
1173 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
1174 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
1175 &global_options to cl_optimization_restore.
1176
49b91f05
NP
11772010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
1178
1179 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
1180 Objective-C/Objective-C++ keywords.
1181
13ed556f 11822010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57
NP
1183
1184 Merge from 'apple/trunk' branch on FSF servers.
1185
1186 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
1187
1188 Radar 4281748
1189 * c-common.h (objc_check_global_decl): New declaration.
1190 * stub-objc.c (objc_check_global_decl): New stub.
1191
f0036cca
JM
11922010-09-29 Joseph Myers <joseph@codesourcery.com>
1193
1194 * c.opt: Don't use VarExists.
1195
e3339d0f
JM
11962010-09-29 Joseph Myers <joseph@codesourcery.com>
1197
1198 * c-common.c (c_cpp_error): Update names of diagnostic_context
1199 members.
1200 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
1201 cl_optimization members.
1202 * c-opts.c (warning_as_error_callback, c_common_handle_option,
1203 sanitize_cpp_opts, finish_options): Update names of cpp_options
1204 members.
1205
1973201f
NP
12062010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1207
1208 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
1209 (objc_is_reserved_word): Removed.
1210 * c-common.c: Updated comments.
1211 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
1212 objc_is_reserved_word.
1213 * stub-objc.c (objc_is_reserved_word): Removed.
1214
f7e71da5
IS
12152010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1216
1217 * c-common.h (objc_add_method_declaration): Adjust prototype to
1218 include attributes.
1219 (objc_start_method_definition): Likewise.
1220 (objc_build_keyword_decl): Likewise.
1221 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
1222 (objc_start_method_definition): Likewise.
1223 (objc_build_keyword_decl): Likewise.
1224
c165dca7
IS
12252010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1226
1227 * c-common.h (objc_start_class_interface): Adjust prototype.
1228 (objc_start_category_interface): Likewise.
1229 (objc_start_protocol): Likewise.
1230 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
1231 (objc_start_class_interface): Likewise.
1232 (objc_start_category_interface): Likewise.
1233
7458026b
ILT
12342010-09-27 Ian Lance Taylor <iant@google.com>
1235
1236 * c-common.c (c_common_attribute_table): Add no_split_stack.
1237 (handle_no_split_stack_attribute): New static function.
1238
b581b85b
NP
12392010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
1240
1241 Merge from 'apple/trunk' branch on FSF servers.
1242
1243 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
1244
1245 Radar 4229905
1246 * c-common.h (objc_have_common_type): New declaration.
1247 * stub-objc.c (objc_have_common_type): New stub.
1248
1249 2005-06-22 Ziemowit Laski <zlaski@apple.com>
1250
1251 Radar 4154928
1252 * c-common.h (objc_common_type): New prototype.
1253 * stub-objc.c (objc_common_type): New stub.
1254
46a4da10
JH
12552010-09-24 Jan Hubicka <jh@suse.cz>
1256
1257 * c-common.c (handle_leaf_attribute): New function.
1258 (struct attribute_spec c_common_att): Add leaf.
1259
e200444e
JM
12602010-09-22 Joseph Myers <joseph@codesourcery.com>
1261
1262 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
1263 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
1264 -dump, -dump=, -imacros, -imacros=, -include, -include=,
1265 -include-barrier, -include-directory, -include-directory=,
1266 -include-directory-after, -include-directory-after=,
1267 -include-prefix, -include-prefix=, -include-with-prefix,
1268 -include-with-prefix=, -include-with-prefix-after,
1269 -include-with-prefix-after=, -include-with-prefix-before,
1270 -include-with-prefix-before=, -no-integrated-cpp,
1271 -no-line-commands, -no-standard-includes, -no-warnings, -output,
1272 -output=, -pedantic, -pedantic-errors, -preprocess,
1273 -print-missing-file-dependencies, -trace-includes, -traditional,
1274 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
1275 -user-dependencies, -verbose, -write-dependencies,
1276 -write-user-dependencies, no-integrated-cpp, traditional): New.
1277
29a80ea6
NP
12782010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1279
1280 PR objc/23710
ac1fc2fc
NP
1281 * c-common.h (objc_start_method_definition): Return bool instead
1282 of void.
1283 * stub-objc.c (objc_start_method_definition): Return bool instead
1284 of void.
1285
12862010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1287
1288 PR objc/25965
1289 * c-common.h (objc_get_interface_ivars): New declaration.
1290 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 1291
de621752
ILT
12922010-09-15 Ian Lance Taylor <iant@google.com>
1293
1294 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 1295 messages. Remove period at end of warning message.
de621752 1296
ba885ec5
NS
12972010-09-09 Nathan Sidwell <nathan@codesourcery.com>
1298
1299 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
1300 (handle_alias_attribute): ... here.
1301 (handle_ifunc_attribute): New.
1302
c5ee1358
MM
13032010-09-06 Mark Mitchell <mark@codesourcery.com>
1304
1305 * c-common.h (do_warn_double_promotion): Declare.
1306 * c-common.c (do_warn_double_promotion): Define.
1307
0a0b3574
MM
13082010-09-05 Mark Mitchell <mark@codesourcery.com>
1309
1310 * c.opt (Wdouble-promotion): New.
1311
d1779886
JM
13122010-09-02 Joseph Myers <joseph@codesourcery.com>
1313
1314 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
1315 fvtable-thunks, fxref): Mark no longer supported in help text.
1316
2d2bd949
JM
13172010-09-02 Joseph Myers <joseph@codesourcery.com>
1318
1319 * c.opt (Wimport, fall-virtual, falt-external-templates,
1320 fdefault-inline, fenum-int-equiv, fexternal-templates,
1321 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
1322 fname-mangling-version-, fnew-abi, fnonnull-objects,
1323 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
1324 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
1325 applicable.
1326 (fhandle-exceptions): Mark with Alias and Warn.
1327 * c-opts.c (c_common_handle_option): Don't handle options marked
1328 as ignored.
1329
5de8299c
JM
13302010-09-02 Joseph Myers <joseph@codesourcery.com>
1331
1332 * c.opt (Wcomments, Werror-implicit-function-declaration,
1333 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
1334 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
1335 aliases.
1336 * c-common.c (option_codes): Use OPT_Wcomment instead of
1337 OPT_Wcomments.
1338 * c-opts.c (warning_as_error_callback, c_common_handle_option):
1339 Don't handle options marked as aliases.
1340
0ceb0201
RG
13412010-08-25 Richard Guenther <rguenther@suse.de>
1342
1343 * c-common.c (c_common_get_alias_set): Remove special
1344 handling for pointers.
1345
ac47786e
NF
13462010-08-20 Nathan Froyd <froydnj@codesourcery.com>
1347
1348 * c-common.c: Use FOR_EACH_VEC_ELT.
1349 * c-gimplify.c: Likewise.
1350 * c-pragma.c: Likewise.
1351
c878765b
JM
13522010-08-16 Joseph Myers <joseph@codesourcery.com>
1353
1354 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
1355 RejectDriver.
1356 (MMDX): Change back to MMD. Mark NoDriverArg instead of
1357 RejectDriver.
1358 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
1359 instead of OPT_MDX and OPT_MMDX.
1360
603349bf
JM
13612010-08-16 Joseph Myers <joseph@codesourcery.com>
1362
1363 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
1364
644fa7ac
JM
13652010-08-12 Joseph Myers <joseph@codesourcery.com>
1366
1367 * c.opt (MD, MMD): Change to MDX and MMDX.
1368 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
1369
481e1176
JM
13702010-08-11 Joseph Myers <joseph@codesourcery.com>
1371
1372 * c-opts.c (c_common_handle_option): Call handle_generated_option
1373 instead of handle_option.
1374
ac8dc9f7
NF
13752010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1376
1377 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
1378 (maybe_apply_renaming_pragma): Delete unneeded declarations.
1379
4f8c876d
NF
13802010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1381
1382 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
1383 (pending_redefine_extname): Change type to a VEC.
1384 (add_to_renaming_pragma_list): Update for new type of
1385 pending_redefine_extname.
ac8dc9f7 1386 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 1387
3b0c690e
AC
13882010-08-04 Arnaud Charlet <charlet@adacore.com>
1389
1390 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
1391 visited.
1392 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
1393 decide whether a type has already been declared/seen.
1394 Do not go to the original type.
1395 (dump_nested_types): New parameter forward.
1396 Generate forward declaration if needed and mark type as visited.
1397 (print_ada_declaration): Call dump_nested_types if not already done.
1398 Mark types as visited.
1399
1890bccc
JM
14002010-08-03 Joseph Myers <joseph@codesourcery.com>
1401
1402 * c.opt (-print-pch-checksum): Remove option.
1403 * c-opts.c (c_common_handle_option): Don't handle
1404 OPT_print_pch_checksum.
1405
5f20c657
JM
14062010-07-27 Joseph Myers <joseph@codesourcery.com>
1407
1408 * c-common.h (c_common_handle_option): Update prototype and return
1409 value type.
1410 * c-opts.c (c_common_handle_option): Update prototype and return
1411 value type. Update calls to handle_option and
1412 enable_warning_as_error.
1413
f551f80c
JJ
14142010-07-27 Jakub Jelinek <jakub@redhat.com>
1415
1416 PR c/45079
1417 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
1418
61ff2bdc
JM
14192010-07-27 Joseph Myers <joseph@codesourcery.com>
1420
1421 * c-common.h (c_common_missing_argument): Remove.
1422 * c-opts.c (c_common_missing_argument): Remove.
1423 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
1424 idirafter, imacros, include, isysroot, isystem, iquote): Add
1425 MissingArgError.
1426 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
1427
7a9bf9a4
JM
14282010-07-27 Joseph Myers <joseph@codesourcery.com>
1429
1430 * c-common.h (c_common_option_lang_mask,
1431 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
1432 New.
1433 (c_common_init_options): Update prototype.
1434 * c-opts.c (c_common_option_lang_mask): New.
1435 (c_common_initialize_diagnostics): Split out of
1436 c_common_init_options.
1437 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
1438 New.
1439 (c_common_init_options): Update prototype. Use decoded options in
1440 search for -lang-asm.
1441
910ad8de
NF
14422010-07-15 Nathan Froyd <froydnj@codesourcery.com>
1443
1444 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
1445 * c-format.c: Likewise.
1446
718f9c0f
MLI
14472010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
1448
1449 * c-common.h: Include diagnostic-core.h. Error if already
1450 included.
1451 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
1452
4d451982
MLI
14532010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1454
1455 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
1456 Do not include expr.h
1457 (vector_mode_valid_p): Move here.
1458
119fe915
SB
14592010-06-21 DJ Delorie <dj@redhat.com>
1460
1461 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
1462 allow these pragmas anywhere.
1463
14642010-06-14 Jakub Jelinek <jakub@redhat.com>
1465
1466 PR bootstrap/44509
1467 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
1468 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
1469 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
1470 ggc_strdup instead of xstrdup.
1471
14722010-06-10 Jakub Jelinek <jakub@redhat.com>
1473
1474 * c-cppbuiltin.c: Include cpp-id-data.h.
1475 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
1476 (lazy_hex_fp_value): New function.
1477 (builtin_define_with_hex_fp_value): Provide definitions lazily.
1478
6662d794
MLI
14792010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1480
1481 * c-gimplify.c: Do not include tree-flow.h
1482
38f8b050
JR
14832010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
1484
1485 PR other/44034
1486 * c-common.c: Rename targetm member:
1487 targetm.enum_va_list -> targetm.enum_va_list_p
1488
9589f23e
AS
14892010-06-28 Anatoly Sokolov <aesok@post.ru>
1490
1491 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
1492
3b06d379
SB
14932010-06-28 Steven Bosscher <steven@gcc.gnu.org>
1494
1495 * c-cppbuiltin.c: Do not include except.h.
1496
d166d4c3
AK
14972010-06-24 Andi Kleen <ak@linux.intel.com>
1498
1499 * c-common.c (warn_for_omitted_condop): New.
1500 * c-common.h (warn_for_omitted_condop): Add prototype.
1501
70cb8be6
JM
15022010-06-21 Joseph Myers <joseph@codesourcery.com>
1503
1504 * c.opt (lang-objc): Remove.
1505 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
1506
a4c97feb
JR
15072010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
1508
1509 * c-opts.c: Include "tm_p.h".
1510
6e2f1956
JM
15112010-06-20 Joseph Myers <joseph@codesourcery.com>
1512
1513 * c-common.c (parse_optimize_options): Update call to
1514 decode_options.
1515
bc87224e
NF
15162010-06-18 Nathan Froyd <froydnj@codesourcery.com>
1517
1518 * c-common.c (record_types_used_by_current_var_decl): Adjust for
1519 new type of types_used_by_cur_var_decl.
1520
b49cf425
JR
15212010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
1522
1523 PR bootstrap/44512
1524 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
1525 for C++ standard compliance.
1526
59f9c2ed
JM
15272010-06-16 Jason Merrill <jason@redhat.com>
1528
1529 * c.opt: Add -Wnoexcept.
1530
33766b66
RG
15312010-06-16 Richard Guenther <rguenther@suse.de>
1532
1533 PR c/44555
1534 * c-common.c (c_common_truthvalue_conversion): Remove
1535 premature and wrong optimization concering ADDR_EXPRs.
1536
eff7e30c
AC
15372010-06-15 Arnaud Charlet <charlet@adacore.com>
1538
1539 * c-ada-spec.c (dump_sloc): Remove column info.
1540 (is_simple_enum): New function.
1541 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
1542 enum types when relevant.
1543
6312e84d
MLI
15442010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1545
1546 * c-common.c (conversion_warning): Warn at expression
1547 location.
1548
1cb42611
JM
15492010-06-10 Joseph Myers <joseph@codesourcery.com>
1550
1551 * c-opts.c (c_common_handle_option): Don't handle
1552 OPT_fshow_column.
1553
a9429e29
LB
15542010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1555
1556 * c-pragma.c (push_alignment): Use typed GC allocation.
1557 (handle_pragma_push_options): Likewise.
1558
1559 * c-common.c (parse_optimize_options): Likewise.
1560
1561 * c-common.h (struct sorted_fields_type): Add variable_size GTY
1562 option.
1563
5498f011
JM
15642010-06-07 Joseph Myers <joseph@codesourcery.com>
1565
1566 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
1567 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1568 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1569 flag_signed_bitfields, warn_strict_null_sentinel,
1570 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
1571 flag_gen_declaration, flag_no_gnu_keywords,
1572 flag_implement_inlines, flag_implicit_templates,
1573 flag_implicit_inline_templates, flag_optional_diags,
1574 flag_elide_constructors, flag_default_inline, flag_rtti,
1575 flag_conserve_space, flag_access_control, flag_check_new,
1576 flag_new_for_scope, flag_weak, flag_working_directory,
1577 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
1578 flag_enforce_eh_specs, flag_threadsafe_statics,
1579 flag_pretty_templates): Remove.
1580 * c-common.h (flag_preprocess_only, flag_nil_receivers,
1581 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
1582 flag_replace_objc_classes, flag_undef, flag_no_builtin,
1583 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1584 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1585 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
1586 flag_no_gnu_keywords, flag_implement_inlines,
1587 flag_implicit_templates, flag_implicit_inline_templates,
1588 flag_optional_diags, flag_elide_constructors, flag_default_inline,
1589 flag_rtti, flag_conserve_space, flag_access_control,
1590 flag_check_new, flag_new_for_scope, flag_weak,
1591 flag_working_directory, flag_use_cxa_atexit,
1592 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
1593 flag_threadsafe_statics, flag_pretty_templates,
1594 warn_strict_null_sentinel): Remove.
1595 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
1596 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
1597 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
1598 fimplicit-inline-templates, fimplicit-templates,
1599 flax-vector-conversions, fms-extensions, fnil-receivers,
1600 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
1601 frtti, fshort-double, fshort-enums, fshort-wchar,
1602 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
1603 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
1604 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
1605 gen-decls, undef): Use Var.
1606 (fdefault-inline, foptional-diags): Document as doing nothing.
1607 * c-opts.c (c_common_handle_option): Remove cases for options now
1608 using Var. Mark ignored options as such.
1609
39dabefd
SB
16102010-06-05 Steven Bosscher <steven@gcc.gnu.org>
1611
1612 * c-common.c: Moved to here from parent directory.
1613 * c-common.def: Likewise.
1614 * c-common.h: Likewise.
1615 * c-cppbuiltin.c: Likewise.
1616 * c-dump.c: Likewise.
1617 * c-format.c: Likewise.
1618 * c-format.h : Likewise.
1619 * c-gimplify.c: Likewise.
1620 * c-lex.c: Likewise.
1621 * c-omp.c: Likewise.
1622 * c.opt: Likewise.
1623 * c-opts.c: Likewise.
1624 * c-pch.c: Likewise.
1625 * c-ppoutput.c: Likewise.
1626 * c-pragma.c: Likewise.
1627 * c-pragma.h: Likewise.
1628 * c-pretty-print.c: Likewise.
1629 * c-pretty-print.h: Likewise.
1630 * c-semantics.c: Likewise.
1631 * stub-objc.c: Likewise.
1632
1633 * c-common.c: Include gt-c-family-c-common.h.
1634 * c-pragma.c: Include gt-c-family-c-pragma.h.
1635\f
04695783 1636Copyright (C) 2010, 2011 Free Software Foundation, Inc.
39dabefd
SB
1637
1638Copying and distribution of this file, with or without modification,
1639are permitted in any medium without royalty provided the copyright
1640notice and this notice are preserved.