]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
2011-08-24 Simon Baldwin <simonb@google.com>
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
6ea2c7a3 1011-08-22 Gabriel Charette <gchare@google.com>
2
3 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
4 defined in cpp_init_builtins and c_cpp_builtins.
5
bff4ad11 62011-08-19 Joseph Myers <joseph@codesourcery.com>
7
8 * c-common.c (c_common_reswords): Add __builtin_complex.
9 * c-common.h (RID_BUILTIN_COMPLEX): New.
10
985c6e3a 112011-08-18 Joseph Myers <joseph@codesourcery.com>
12
13 * c-common.c (c_common_reswords): Add _Noreturn.
14 (keyword_is_function_specifier): Handle RID_NORETURN.
15 * c-common.h (RID_NORETURN): New.
16
7dfa155b 172011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
18
19 * c-common.c (unsafe_conversion_p): New function. Check if it is
20 unsafe to convert an expression to the type.
21 (conversion_warning): Adjust, use unsafe_conversion_p.
22 * c-common.h (unsafe_conversion_p): New function declaration.
23
2169f33b 242011-08-02 Jakub Jelinek <jakub@redhat.com>
25
26 * c-common.h (c_finish_omp_atomic): Adjust prototype.
27 (c_finish_omp_taskyield): New prototype.
28 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
29 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
30 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
31 or RHS1 have side-effects, evaluate those too in the right spot,
32 if it is a decl and LHS is also a decl, error out if they
33 aren't the same.
34 (c_finish_omp_taskyield): New function.
35 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
36 * c-pragma.c (omp_pragmas): Add taskyield.
37 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
38 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
39 PRAGMA_OMP_CLAUSE_MERGEABLE.
40
ab77850e 412011-07-25 Dodji Seketeli <dodji@redhat.com>
42
43 * c-common.h (set_underlying_type): Remove parm name from
44 declaration.
45
6ee97920 462011-07-25 Romain Geissler <romain.geissler@gmail.com>
47
48 * c-pretty-print.h: Search c-common.h in c-family.
49
dc251364 502011-07-22 Jason Merrill <jason@redhat.com>
51
1a2a35f0 52 PR c++/49793
53 * c.opt (Wnarrowing): New.
54
27282252 55 PR c++/30112
56 * c-common.h: Declare c_linkage_bindings.
57 * c-pragma.c (handle_pragma_redefine_extname): Use it.
58
dc251364 59 PR c++/49813
60 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
61 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
62 as flag_isoc99 for 'restrict'.
63 (pp_c_specifier_qualifier_list): Likewise for _Complex.
64
fc501191 652011-07-21 Ian Lance Taylor <iant@google.com>
66
67 PR middle-end/49705
68 * c-common.c (c_disable_warnings): New static function.
69 (c_enable_warnings): New static function.
70 (c_fully_fold_internal): Change local unused_p to bool. Call
71 c_disable_warnings and c_enable_warnings rather than change
72 c_inhibit_evaluation_warnings.
73
07b8f133 742011-07-20 Jason Merrill <jason@redhat.com>
75
76 PR c++/6709 (DR 743)
77 PR c++/42603 (DR 950)
78 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
79 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
80 (CPP_DECLTYPE): New.
81 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
82
2cc66f2a 832011-07-19 Richard Guenther <rguenther@suse.de>
84
85 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
86 * c-omp.c (c_finish_omp_for): Likewise.
87
3c802a1e 882011-07-12 Eric Botcazou <ebotcazou@adacore.com>
89
90 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
91 body on the next line.
92
98a33d9f 932011-07-08 Jason Merrill <jason@redhat.com>
94
3115bda0 95 PR c++/45437
96 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
97
98a33d9f 98 PR c++/49673
99 * c-common.c (c_apply_type_quals_to_decl): Don't check
100 TYPE_NEEDS_CONSTRUCTING.
101
c38a75b7 1022011-07-06 Richard Guenther <rguenther@suse.de>
103
104 * c-common.c (c_common_nodes_and_builtins):
105 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
106
e593356b 1072011-07-05 Richard Guenther <rguenther@suse.de>
108
109 * c-common.c (c_common_nodes_and_builtins): Build all common
110 tree nodes first.
111
fca0886c 1122011-06-27 Jakub Jelinek <jakub@redhat.com>
113
a68f7a8d 114 * c-common.h (c_tree_chain_next): New static inline function.
115
fca0886c 116 * c-common.c (check_builtin_function_arguments): Handle
117 BUILT_IN_ASSUME_ALIGNED.
118
2797f13a 1192011-06-21 Andrew MacLeod <amacleod@redhat.com>
120
121 * c-common.c: Add sync_ or SYNC__ to builtin names.
122 * c-omp.c: Add sync_ or SYNC__ to builtin names.
9cad95b7 123
1242011-06-20 Pierre Vittet <piervit@pvittet.com>
125
126 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
127 handler.
128 (gen_pragma_handler): New union.
129 (internal_pragma_handler): New type.
130 (c_register_pragma_with_data)
131 (c_register_pragma_with_expansion_and_data): New functions.
132
133 * c-pragma.c (registered_pragmas, c_register_pragma_1)
134 (c_register_pragma, c_register_pragma_with_expansion)
135 (c_invoke_pragma_handler): Changed to work with
136 internal_pragma_handler.
137 (c_register_pragma_with_data)
138 (c_register_pragma_with_expansion_and_data): New functions.
139
218e3e4e 1402011-06-14 Joseph Myers <joseph@codesourcery.com>
141
142 * c-common.c: Include common/common-target.h.
143 (handle_section_attribute): Use
144 targetm_common.have_named_sections.
145 * c-cppbuiltin.c: Include common/common-target.h.
146 (c_cpp_builtins): Use targetm_common.except_unwind_info.
147
41e53ed2 1482011-06-10 Richard Guenther <rguenther@suse.de>
149
150 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
151 to print a IDENTIFIER_NODE.
152
a6f06169 1532011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
154 Joseph Myers <joseph@codesourcery.com>
155
156 * c.opt (fbuilding-libgcc): New option.
157 * c-cppbuiltin.c (c_cpp_builtins): Define
158 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
159
1ea9269b 1602011-06-07 Jason Merrill <jason@redhat.com>
161
8ce59854 162 * c-common.c (max_tinst_depth): Lower default to 900.
163
1ea9269b 164 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
165
1af0124d 1662011-06-07 Richard Guenther <rguenther@suse.de>
167
168 * c-common.c (c_common_nodes_and_builtins): Do not set
169 size_type_node or call set_sizetype.
170
0e9a4c01 1712011-06-07 Dodji Seketeli <dodji@redhat.com>
172
173 PR debug/49130
174 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
175 type when using pointer comparison to compare types.
176
90b40725 1772011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
178
179 * c.opt: Add -Wdelete-non-virtual-dtor.
180 * c-opts.c (c_common_handle_option): Include it in -Wall.
181
fc9c9e87 1822011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
183
184 PR bootstrap/49190
185
186 Revert:
187 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
188
189 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
190 not tree_common.
191
d0389adc 1922011-05-27 Jakub Jelinek <jakub@redhat.com>
193
194 PR c++/49165
195 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
196 C++ don't call c_common_truthvalue_conversion on void type arms.
197
cacfdc02 1982011-05-27 Nathan Froyd <froydnj@codesourcery.com>
199
200 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
201 (stmt_list_stack): Define.
202 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
203 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
204
027fc6ef 2052011-05-26 Nathan Froyd <froydnj@codesourcery.com>
206
207 * c-common.c (warning_candidate_p): Check for BLOCKs.
208
f21317a1 2092011-05-26 Nathan Froyd <froydnj@codesourcery.com>
210
211 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
212 not tree_common.
213
789e953d 2142011-05-25 Jakub Jelinek <jakub@redhat.com>
215
216 * c-common.c (def_fn_type): Remove extra va_end.
217
7f506bca 2182011-05-23 Jason Merrill <jason@redhat.com>
219
220 PR c++/48106
221 * c-common.c (c_common_get_narrower): New.
222 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
223
774e9d58 2242011-05-23 Nathan Froyd <froydnj@codesourcery.com>
225
226 * c-common.h (check_function_arguments): Tweak prototype of
227 check_function_arguments.
228 * c-common.c (check_function_arguments): Likewise. Adjust
229 calls to check_function_nonnull, check_function_format, and
230 check_function_sentinel.
231 (check_function_sentinel): Take a FUNCTION_TYPE rather than
232 separate attributes and typelist arguments. Use
233 FOREACH_FUNCTION_ARGS to iterate over argument types.
234
23407dc9 2352011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
236
237 * c-common.c (c_common_reswords): Reorder.
238 * c-common.h (rid): Likewise.
239
3a939d12 2402011-05-10 Nathan Froyd <froydnj@codesourcery.com>
241
242 * c-common.c (def_fn_type): Don't call build_function_type, call
243 build_function_type_array or build_varargs_function_type_array
244 instead.
245 (c_common_nodes_and_builtins): Likewise.
246
b6e3dd65 2472011-05-05 Nathan Froyd <froydnj@codesourcery.com>
248
249 * c-common.c (c_add_case_label): Omit the loc argument to
250 build_case_label.
251 * c-common.h (build_case_label): Remove.
252 * c-semantics.c (build_case_label): Remove.
253
4232a958 2542011-05-05 Joseph Myers <joseph@codesourcery.com>
255
256 * c-objc.h (objc_start_method_definition): Update prototype.
257 * stub-objc.c (objc_start_method_definition): Add extra parameter.
258
d0af78c5 2592011-05-04 Nathan Froyd <froydnj@codesourcery.com>
260
261 * c-common.c (check_main_parameter_types): Reindent. Don't use
262 TYPE_ARG_TYPES directly.
263 (handle_nonnull_attribute): Likewise.
264 (sync_resolve_params): Likewise.
265 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
266 to check_format_string.
267 (handle_format_attribute): Likewise.
268 (check_format_string): Take a function type to examine instead of
269 a type list. Use a function_arg_iterator to step through argument
270 types.
271
ceb7b692 2722011-05-04 Richard Guenther <rguenther@suse.de>
273
274 * c-common.c (fix_string_type): Use size_int for index type bounds.
275 (start_fname_decls): Do not pass NULL to build_int_cst.
276 (c_init_attributes): Likewise.
277 * c-lex.c (c_lex_with_flags): Likewise.
278
c66c81be 2792011-04-27 Jason Merrill <jason@redhat.com>
280
281 * c-common.c (make_tree_vector_from_list): New.
282 * c-common.h: Declare it.
283
16930c72 2842011-04-26 Richard Guenther <rguenther@suse.de>
285
286 PR preprocessor/48248
287 * c-ppoutput.c (maybe_print_line): Always optimize newlines
288 for output size with -P.
289
23407dc9 2902011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
291
292 * c-common.c (struct c_common_resword): Add __underlying_type.
293 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
294
dd045aee 2952011-04-20 Jim Meyering <meyering@redhat.com>
296
297 * c-format.c (init_dollar_format_checking): Remove useless
298 if-before-free.
299
394dd737 3002011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
301
302 * c-objc.h (objc_get_interface_ivars): Removed.
23407dc9 303 (objc_detect_field_duplicates): New.
394dd737 304 * stub-objc.c: Likewise.
23407dc9 305
a758bf7d 3062011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
307
308 * stub-objc.c (objc_declare_protocols): Renamed to
309 objc_declare_protocol.
310 * c-objc.h: Likewise.
23407dc9 311
29d7200d 3122011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
313
314 * stub-objc.c (objc_declare_class): Updated argument name.
315
9b88d08d 3162011-04-12 Nathan Froyd <froydnj@codesourcery.com>
317
318 * c-common.h (c_common_init_ts): Declare.
319 * c-common.c (c_common_init_ts): Define.
320
4185cf58 3212011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
322
323 * c-objc.h (objc_build_message_expr): Updated prototype.
324 * stub-objc.c (objc_build_message_expr): Likewise.
325
5a90471f 3262011-04-12 Martin Jambor <mjambor@suse.cz>
327
328 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
329 of cgraph_node.
330
783bb57e 3312011-04-11 Richard Guenther <rguenther@suse.de>
332
333 * c-common.c (complete_array_type): Build a range type of
334 proper type.
335
c33080b9 3362011-04-08 Nathan Froyd <froydnj@codesourcery.com>
337
338 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
339 (handle_type_generic_attribute): Likewise.
340
f8913d47 3412011-04-07 Jason Merrill <jason@redhat.com>
342
343 PR c++/48450
344 * c-common.c (c_common_truthvalue_conversion): Don't ignore
345 conversion from C++0x scoped enum.
346
c94b1d0e 3472011-04-06 Joseph Myers <joseph@codesourcery.com>
348
349 * c-target-def.h: New file.
350 * c-target.def: New file.
351 * c-target.h: New file.
352 * c-common.c (targetcm): Don't define here.
353 * c-common.h (default_handle_c_option): Declare.
354 * c-format.c: Include c-target.h instead of target.h.
355 * c-opts.c: Include c-target.h instead of target.h. Explicitly
356 include tm.h.
357 (default_handle_c_option): Move from targhooks.c.
358
acb10f41 3592011-03-29 Jakub Jelinek <jakub@redhat.com>
360
361 PR preprocessor/48248
362 * c-ppoutput.c (print): Add src_file field.
363 (init_pp_output): Initialize it.
364 (maybe_print_line): Don't optimize by adding up to 8 newlines
365 if map->to_file and print.src_file are different file.
366 (print_line): Update print.src_file.
367
82715bcd 3682011-03-25 Kai Tietz <ktietz@redhat.com>
369
370 * c-ada-spec.c (compare_comment): Use filename_cmp
371 instead of strcmp for filename.
372
451c8e2f 3732011-03-25 Jeff Law <law@redhat.com>
374
375 * c-family/c-common.c (def_fn_type): Add missing va_end.
376
3c47771c 3772011-03-25 Jason Merrill <jason@redhat.com>
378
379 * c.opt: Add -std=c++03.
380
97e6200f 3812011-03-22 Eric Botcazou <ebotcazou@adacore.com>
382
383 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
384
ac86af5d 3852011-03-17 Kai Tietz
386
387 PR target/12171
ee212425 388 * c-pretty-print.c (pp_c_specifier_qualifier_list):
389 Display allowed attributes for function pointer types.
390 (pp_c_attributes_display): New function to display
391 attributes having affects_type_identity flag set to true.
392 * c-pretty-print.h (pp_c_attributes_display): New prototype.
393
ac86af5d 394 * c-common.c (c_common_attribute_table):
395 Add new element.
396 (c_common_format_attribute_table): Likewise.
397
914d1151 3982011-03-18 Jason Merrill <jason@redhat.com>
399
69788bdf 400 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
401 * c-common.h: Don't declare it here.
402 * c-common.c: Or define it here.
403 * c-opts.c (c_common_handle_option): Or set it here.
404
914d1151 405 PR c++/35315
406 * c-common.c (handle_transparent_union_attribute): Don't
407 make a duplicate type in C++.
408
54cf6eed 4092011-03-15 Jason Merrill <jason@redhat.com>
410
411 * c-common.c (max_constexpr_depth): New.
412 * c-common.h: Declare it.
413 * c-opts.c (c_common_handle_option): Set it.
414 * c.opt (fconstexpr-depth): New option.
415
02cb1060 4162011-03-11 Jason Merrill <jason@redhat.com>
417
9bf1c74e 418 * c-common.c (attribute_takes_identifier_p): Add missing const.
419
02cb1060 420 PR c++/46803
421 * c-common.c (attribute_takes_identifier_p): Assume that an
422 unknown attribute takes an identifier.
423
ecf2703d 4242011-03-07 Nathan Froyd <froydnj@codesourcery.com>
425
426 PR c/47786
427 * c-common.c (c_type_hash): Call list_length instead of iterating
428 through DECL_CHAIN. Rename 'i' to 'n_elements'.
429
2b19dfe4 4302011-02-19 Jakub Jelinek <jakub@redhat.com>
431
432 PR c/47809
433 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
434
29cf2335 4352011-02-17 Iain Sandoe <iains@gcc.gnu.org>
436
437 * c.opt (fobjc-abi-version=) New.
438 (fobjc-nilcheck): New.
439
fad3f658 4402011-02-03 Nathan Froyd <froydnj@codesourcery.com>
441
442 PR c++/46890
443 * c-common.h (keyword_is_decl_specifier): Declare.
444 * c-common.c (keyword_is_decl_specifier): Define.
445 (keyword_is_function_specifier): New function.
446
a12319b3 4472011-01-26 Jakub Jelinek <jakub@redhat.com>
448
449 PR c/47473
450 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
451 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
452 REAL_TYPE.
453
5c128dc8 4542011-01-26 Arnaud Charlet <charlet@adacore.com>
455
456 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
457
8d67b0c7 4582011-01-26 Jakub Jelinek <jakub@redhat.com>
459
460 PR pch/47430
461 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
462 after init_c_lex if pch_file is set.
463
0675168d 4642011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
465
e8911163 466 PR c++/43601
0675168d 467 * c.opt (-fkeep-inline-dllexport): New switch.
468
0725e25c 4692011-01-12 Richard Guenther <rguenther@suse.de>
470
471 PR middle-end/32511
472 * c-common.c (handle_weak_attribute): Warn instead of error
473 on declaring an inline function weak.
474
fdd84b77 4752011-01-05 Tom Tromey <tromey@redhat.com>
476
477 * c-common.h (lvalue_error): Update.
478 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
479 not error.
480
e6e73d14 4812010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
482
d67e8485 483 PR objc/47075
484 * c-objc.h (objc_finish_message_expr): Added argument to
485 prototype.
486
a36cf284 4872010-12-22 Nathan Froyd <froydnj@codesourcery.com>
488
489 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
490 Use prototype_p.
491
33b3681f 4922010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
493
494 * c-objc.h (objc_maybe_warn_exceptions): New.
495 * stub-objc.c (objc_maybe_warn_exceptions): New.
496
a1f90215 4972010-12-10 Nathan Froyd <froydnj@codesourcery.com>
498
499 * c-common.h (readonly_error): Declare.
500 * c-common.c (readonly_error): Define.
501
b1bbc8e5 5022010-12-09 Nathan Froyd <froydnj@codesourcery.com>
503
504 * c-common.h (invalid_indirection_error): Declare.
505 * c-common.c (invalid_indirection_error): Define.
506
b0d55af9 5072010-12-03 Richard Guenther <rguenther@suse.de>
508
509 PR c/46745
510 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
511 (pp_c_unary_expression): Likewise.
512 (pp_c_expression): Likewise.
513
d7489d8d 5142010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
515
516 * c-common.h (objc_finish_function): New.
517 (objc_non_volatilized_type): Removed.
518 (objc_type_quals_match): Removed.
519 * stub-objc.c (objc_finish_function): New.
520 (objc_non_volatilized_type): Removed.
521 (objc_type_quals_match): Removed.
522
92468061 5232010-11-30 Joseph Myers <joseph@codesourcery.com>
524
525 * c-common.h (parse_optimize_options): Declare.
526 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
527 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
528
967958e4 5292010-11-29 Joseph Myers <joseph@codesourcery.com>
530
531 * c-opts.c (check_deps_environment_vars): Use getenv instead of
532 GET_ENVIRONMENT.
533 * c-pch.c (O_BINARY): Don't define here.
534 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
535
b213bf24 5362010-11-25 Joseph Myers <joseph@codesourcery.com>
537
538 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
539 targetm.except_unwind_info.
540
9faf44d6 5412010-11-23 Joseph Myers <joseph@codesourcery.com>
542
543 * c-opts.c (c_common_handle_option): Pass location to
544 set_struct_debug_option.
545
79396169 5462010-11-23 Joseph Myers <joseph@codesourcery.com>
547
548 * c-common.c (visibility_options): Move from ../opts.c.
549 * c-common.h (struct visibility_flags, visibility_options):
550 Declare here.
551 * c-opts.c (finish_options): Rename to c_finish_options.
552 (c_common_init): Update call to finish_options.
553
b4aa4123 5542010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
555
556 PR objc/34033
557 * c-lex.c (lex_string): Check that each string in an Objective-C
558 string concat sequence starts with either one or zero '@', and
559 that there are no spurious '@' signs at the end.
560
3e0e49f2 5612010-11-20 Joseph Myers <joseph@codesourcery.com>
562
563 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
564 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
565 HANDLE_PRAGMA_VISIBILITY.
566 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
567 HANDLE_PRAGMA_VISIBILITY): Don't define.
568 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
569
a9ffdd35 5702010-11-20 Nathan Froyd <froydnj@codesourcery.com>
571
572 PR c++/16189
573 PR c++/36888
574 PR c++/45331
575 * c-common.h (keyword_begins_type_specifier): Declare.
576 (keyword_is_storage_class_specifier): Declare.
577 (keyword_is_type_qualifier): Declare.
578 * c-common.c (keyword_begins_type_specifier): New function.
579 (keyword_is_storage_class_specifier): New function.
580 (keyword_is_type_qualifier): Declare.
581
93be21c0 5822010-11-19 Joseph Myers <joseph@codesourcery.com>
583
584 PR c/46547
585 * c-common.c (in_late_binary_op): Define.
586 (c_common_truthvalue_conversion): Check in_late_binary_op before
587 calling c_save_expr.
588 * c-common.h (in_late_binary_op): Declare.
589
d7175aef 5902010-11-19 Joseph Myers <joseph@codesourcery.com>
591
592 * c-opts.c (c_common_handle_option): Update calls to
593 set_struct_debug_option.
594
c213e196 5952010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
596
597 * c-common.h (objc_declare_protocols): Added additional argument.
598 * stub-objc.c (objc_declare_protocol): Same change.
599
0b5fc5d6 6002010-11-18 Nathan Froyd <froydnj@codesourcery.com>
601
602 PR c/33193
603 * c-common.h (build_real_imag_expr): Declare.
604 * c-semantics.c (build_real_imag_expr): Define.
605
b8ba44e7 6062010-11-17 Joseph Myers <joseph@codesourcery.com>
607
608 * c-opts.c (c_common_parse_file): Take no arguments.
609 * c-common.h (c_common_parse_file): Update prototype.
610
6ef8d12f 6112010-11-16 Jakub Jelinek <jakub@redhat.com>
612
613 PR c++/46401
614 * c-common.c (warning_candidate_p): Don't track non-const calls
615 or STRING_CSTs.
616
929d2a90 6172010-11-15 Ian Lance Taylor <iant@google.com>
618
619 * c-lex.c (init_c_lex): Set macro debug callbacks if
620 flag_dump_go_spec is set.
621
e4a7640a 6222010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
623
624 * c-common.h (objc_build_incr_expr_for_property_ref): New.
625 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
626
597d2d81 6272010-11-15 Nathan Froyd <froydnj@codesourcery.com>
628
629 PR preprocessor/45038
630 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
631 dialects.
632
c123f04d 6332010-11-12 Joseph Myers <joseph@codesourcery.com>
634
635 * c-common.h (c_family_lang_mask): Declare.
636 * c-opts.c (c_family_lang_mask): Make extern.
637 * c-pragma.c (handle_pragma_diagnostic): Use
638 control_warning_option.
639
3c6c0e40 6402010-11-12 Joseph Myers <joseph@codesourcery.com>
641
642 * c-common.c (parse_optimize_options): Update call to
643 decode_options.
644 * c-common.h (c_common_handle_option): Update prototype.
645 * c-opts.c (c_common_handle_option): Take location_t parameter and
646 pass it to other functions.
647
19ec5c9e 6482010-11-11 Joseph Myers <joseph@codesourcery.com>
649
650 * c-opts.c (warning_as_error_callback): Remove.
651 (c_common_initialize_diagnostics): Don't call
652 register_warning_as_error_callback.
653 (c_common_handle_option): Handle -Werror=normalized= here.
654
bf776685 6552010-11-10 Joseph Myers <joseph@codesourcery.com>
656
657 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
658 in diagnostic.
659 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
660 letter.
661 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
662 Remove trailing '.' from diagnostics.
663 * c.opt (Wwrite-strings_: Avoid '`' in help text.
664
6bd9d862 6652010-11-10 Joseph Myers <joseph@codesourcery.com>
666
667 * c-common.c (parse_optimize_options): Pass global_dc to
668 decode_options.
669 * c-opts.c (c_common_handle_option): Pass &global_options to
670 set_Wstrict_aliasing.
671 * c.opt (v): Don't mark Common or document here.
672
1f6616ee 6732010-11-06 Iain Sandoe <iains@gcc.gnu.org>
674
675 PR target/44981
676 * c-format.c (format_type): New type gcc_objc_string_format_type.
677 (valid_stringptr_type_p): New.
678 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
679 (check_format_string): Pass expected type, use
680 valid_stringptr_type_p (), check that the format string types are
681 consistent with the format specification.
682 (decode_format_attr): Warn if NSString is used outside objective-c.
683 (format_types_orig): Add NSString.
684 (format_name): New.
685 (format_flags): New.
686 (check_format_arg): Handle format strings requiring an external parser.
687 first_target_format_type: New variable.
688 (handle_format_attribute): Set up first_target_format_type, pass the
689 expected format arg string type to check_format_string().
690 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
691 * stub-objc.c (objc_string_ref_type_p): New.
692 (objc_check_format_arg): New.
693
b0d0931f 6942010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
695
696 Fixed using the Objective-C 2.0 dot-syntax with class names.
697 * c-common.h (objc_build_class_component_ref): New.
698 * stub-objc.c (objc_build_class_component_ref): New.
699
f26877d5 7002010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
701
702 * c.opt (Wproperty-assign-default): New option.
703
1ef143b6 7042010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
705
706 Implemented -fobjc-std=objc1 flag.
707 * c.opt (fobjc-std=objc1): New option.
708
8c582e4f 7092010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
710
711 Implemented format and noreturn attributes for Objective-C methods.
712 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
713 attribute for Objective-C methods.
714
8637f1db 7152010-10-31 Jason Merrill <jason@redhat.com>
716
717 * c-common.c (conversion_warning, warn_for_collisions_1): Use
718 EXPR_LOC_OR_HERE.
719
9d9f5bb3 7202010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
721
722 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
723 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
724 (objc_add_property_declaration): Removed arguments for copies and
725 ivar.
726 (objc_build_getter_call): Renamed to
727 objc_maybe_build_component_ref.
728 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
729 (objc_is_property_ref): New.
730 * c-common.c (c_common_reswords): Removed copies and ivar.
731 * stub-objc.c (objc_add_property_declaration): Removed arguments
732 for copies and ivar.
733 (objc_build_getter_call): Renamed to
734 objc_maybe_build_component_ref.
735 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
736 (objc_is_property_ref): New.
737
56f907a0 7382010-10-29 Arnaud Charlet <charlet@adacore.com>
739 Matthew Gingell <gingell@adacore.com>
740
741 * c-ada-spec.c (separate_class_package): New function.
742 (pp_ada_tree_identifier): Prefix references to C++ classes with the
743 name of their enclosing package.
744 (print_ada_declaration): Use separate_class_package.
745
b5fa273e 7462010-10-27 Jason Merrill <jason@redhat.com>
747
5290e253 748 * c-common.c (c_common_reswords): Add __is_literal_type.
749 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
750
b5fa273e 751 * c-common.c (check_case_value): Remove special C++ code.
752
7590f0e5 7532010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
754
755 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
756 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
757 and RID_LAST_PATTR.
758 (objc_add_property_declaration): Added additional arguments.
759 (objc_property_attribute_kind): Removed.
760 (objc_set_property_attr): Removed.
761 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
762 copy and nonatomic.
763 * stub-objc.c (objc_add_property_declaration): Added additional
764 arguments.
765 (objc_set_property_attr): Removed.
766
1d894bcf 7672010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
768
769 * c-common.h (objc_add_property_variable): Renamed to
770 objc_add_property_declaration. Added location argument.
771 * stub-objc.c (objc_add_property_variable): Same change.
772
e23bf1fb 7732010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
774
775 * c-common.h (objc_maybe_printable_name): New.
776 * stub-objc.c (objc_maybe_printable_name): New.
777
93426222 7782010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
779 Andrew Pinski <pinskia@gmail.com>
780
781 * c-common.h (c_common_mark_addressable_vec): Declare.
782 * c-common.c (c_common_mark_addressable_vec): New function.
783
45b2b110 7842010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
785
786 * c-common.h (objc_set_method_type): Removed.
787 (objc_add_method_declaration): Added boolean argument.
788 (objc_start_method_definition): Same change.
789 (objc_build_method_signature): Same change.
790 * stub-objc.c (objc_set_method_type): Removed.
791 (objc_add_method_declaration): Added boolean argument.
792 (objc_start_method_definition): Same change.
793 (objc_build_method_signature): Same change.
794
64cd9619 7952010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
796
797 * c-common.h (finish_file): Removed.
798 (objc_write_global_declarations): New.
799 * c-opts.c (c_common_parse_file): Do not call finish_file.
800 * stub-objc.c (objc_write_global_declarations): New.
801
e1f293c0 8022010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
803
804 Implemented parsing @synthesize and @dynamic for
805 Objective-C/Objective-C++.
806 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
807 (objc_add_synthesize_declaration): New.
808 (objc_add_dynamic_declaration): New.
809 * c-common.c (c_common_reswords): Add synthesize and dynamic.
810 * stub-objc.c (objc_add_synthesize_declaration): New.
811 (objc_add_dynamic_declaration): New.
812
ef97a312 8132010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
814
815 PR target/46041
816 * c-cppbuiltin.c (mode_has_fma): Move function here from
817 builtins.c. Don't use the fma optab, instead just use the
818 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
819 using -save-temps.
820
69b07042 8212010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
822
823 Merge from 'apple/trunk' branch on FSF servers.
ef97a312 824
69b07042 825 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
826
827 Radar 4330422
828 * c-common.h (objc_non_volatilized_type): New declaration
829 * stub-objc.c (objc_non_volatilized_type): New stub.
830
f15f2e56 8312010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
832
69b07042 833 Merge from 'apple/trunk' branch on FSF servers.
f15f2e56 834
835 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
836
837 Radar 4133425
838 * c-common.h (objc_diagnose_private_ivar): New decl.
ef97a312 839 * stub-objc.c (objc_diagnose_private_ivar): New stub.
f15f2e56 840
4a8875ed 8412010-10-17 Iain Sandoe <iains@gcc.gnu.org>
842
843 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
844 * c-common.h (enum rid): Add RID_AT_PACKAGE.
845 (objc_ivar_visibility_kind): New enum.
846 (objc_set_visibility): Adjust prototype to use visibility enum.
ef97a312 847 * stub-objc.c (objc_set_visibility): Adjust stub to use
4a8875ed 848 visibility enum.
849
7e0713b1 8502010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
851
852 * c-cppbuiltin.c (builtin_define_float_constants): Emit
853 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
854 has the appropriate fma builtins.
855 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
856
86c110ac 8572010-10-14 Iain Sandoe <iains@gcc.gnu.org>
858
7e0713b1 859 merge from FSF apple 'trunk' branch.
86c110ac 860 2006 Fariborz Jahanian <fjahanian@apple.com>
7e0713b1 861
86c110ac 862 Radars 4436866, 4505126, 4506903, 4517826
863 * c-common.c (c_common_resword): Define @property and its attributes.
864 * c-common.h: Define property attribute enum entries.
865 (OBJC_IS_PATTR_KEYWORD): New.
866 (objc_property_attribute_kind): New enum.
867 Declare objc_set_property_attr (), objc_add_property_variable (),
868 objc_build_getter_call () and objc_build_setter_call ().
869 * stub-objc.c (objc_set_property_attr): New stub.
870 (objc_add_property_variable): Likewise.
871 (objc_build_getter_call): Likewise.
872 (objc_build_setter_call) Likewise.
7e0713b1 873
40c8d1dd 8742010-10-13 Iain Sandoe <iains@gcc.gnu.org>
875
7e0713b1 876 merge from FSF apple 'trunk' branch.
40c8d1dd 877 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
878
879 Radar 3803157 (method attributes)
880 * c-common.c (handle_deprecated_attribute): Recognize
881 objc methods as valid declarations.
882 * c-common.h: Declare objc_method_decl ().
7e0713b1 883 * stub-objc.c (objc_method_decl): New stub.
40c8d1dd 884
f3f006ad 8852010-10-08 Joseph Myers <joseph@codesourcery.com>
886
887 * c-common.c (parse_optimize_options): Call
888 decode_cmdline_options_to_array_default_mask before
889 decode_options. Update arguments to decode_options.
890 * c-common.h (c_common_init_options_struct): Declare.
891 * c-opts.c (c_common_init_options_struct): New. Split out from
892 c_common_init_options.
893
0a65c3bb 8942010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
895
896 Implemented fast enumeration for Objective-C.
897 * c-common.h (objc_finish_foreach_loop): New.
898 * stub-objc.c (objc_finish_foreach_loop): New.
899
24ca3b4e 9002010-10-05 Joseph Myers <joseph@codesourcery.com>
901
902 * c-common.h (struct diagnostic_context): Don't declare here.
903 (c_common_initialize_diagnostics): Declare using
904 diagnostic_context typedef.
905 * c-opts.c (c_common_handle_option): Pass global_dc to
906 handle_generated_option.
907
f83b64ca 9082010-10-04 Joseph Myers <joseph@codesourcery.com>
909
910 * c-opts.c (c_common_handle_option): Pass &global_options_set to
911 handle_generated_option.
912
2fdec027 9132010-10-03 Ian Lance Taylor <iant@google.com>
914
915 * c.opt (-fplan9-extensions): New option.
916
41acdfa4 9172010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
918
919 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
920 Remove.
921 (c_cpp_builtins): Call functions from cppbuiltin.c instead
922 of duplicating code.
923
069761fb 9242010-09-30 Iain Sandoe <iains@gcc.gnu.org>
925
926 * c-common.c: Add two new entries for @optional
927 and @required keywords.
928
929 merge from FSF 'apple/trunk' branch.
930 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
931
932 Radar 4386773
933 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
934 objective-c keywords.
935 (objc_set_method_opt): New declaration.
936 * stub-objc.c (objc_set_method_opt): New stub.
937
2c5d2e39 9382010-09-30 Joseph Myers <joseph@codesourcery.com>
939
940 * c-common.c (handle_optimize_attribute): Pass &global_options to
941 cl_optimization_save and cl_optimization_restore.
942 * c-opts.c (c_common_handle_option): Pass &global_options to
943 handle_generated_option.
944 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
945 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
946 &global_options to cl_optimization_restore.
947
e5c75ac3 9482010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
949
950 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
951 Objective-C/Objective-C++ keywords.
952
3511333e 9532010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
e147d6aa 954
955 Merge from 'apple/trunk' branch on FSF servers.
956
957 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
958
959 Radar 4281748
960 * c-common.h (objc_check_global_decl): New declaration.
961 * stub-objc.c (objc_check_global_decl): New stub.
962
5461e683 9632010-09-29 Joseph Myers <joseph@codesourcery.com>
964
965 * c.opt: Don't use VarExists.
966
5ae82d58 9672010-09-29 Joseph Myers <joseph@codesourcery.com>
968
969 * c-common.c (c_cpp_error): Update names of diagnostic_context
970 members.
971 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
972 cl_optimization members.
973 * c-opts.c (warning_as_error_callback, c_common_handle_option,
974 sanitize_cpp_opts, finish_options): Update names of cpp_options
975 members.
976
b27e241e 9772010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
978
979 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
980 (objc_is_reserved_word): Removed.
981 * c-common.c: Updated comments.
982 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
983 objc_is_reserved_word.
984 * stub-objc.c (objc_is_reserved_word): Removed.
985
03fc2271 9862010-09-28 Iain Sandoe <iains@gcc.gnu.org>
987
988 * c-common.h (objc_add_method_declaration): Adjust prototype to
989 include attributes.
990 (objc_start_method_definition): Likewise.
991 (objc_build_keyword_decl): Likewise.
992 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
993 (objc_start_method_definition): Likewise.
994 (objc_build_keyword_decl): Likewise.
995
a336eb4b 9962010-09-28 Iain Sandoe <iains@gcc.gnu.org>
997
998 * c-common.h (objc_start_class_interface): Adjust prototype.
999 (objc_start_category_interface): Likewise.
1000 (objc_start_protocol): Likewise.
1001 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
1002 (objc_start_class_interface): Likewise.
1003 (objc_start_category_interface): Likewise.
1004
48b14f50 10052010-09-27 Ian Lance Taylor <iant@google.com>
1006
1007 * c-common.c (c_common_attribute_table): Add no_split_stack.
1008 (handle_no_split_stack_attribute): New static function.
1009
4abfc532 10102010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
1011
1012 Merge from 'apple/trunk' branch on FSF servers.
1013
1014 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
1015
1016 Radar 4229905
1017 * c-common.h (objc_have_common_type): New declaration.
1018 * stub-objc.c (objc_have_common_type): New stub.
1019
1020 2005-06-22 Ziemowit Laski <zlaski@apple.com>
1021
1022 Radar 4154928
1023 * c-common.h (objc_common_type): New prototype.
1024 * stub-objc.c (objc_common_type): New stub.
1025
7bd95dfd 10262010-09-24 Jan Hubicka <jh@suse.cz>
1027
1028 * c-common.c (handle_leaf_attribute): New function.
1029 (struct attribute_spec c_common_att): Add leaf.
1030
5789e05b 10312010-09-22 Joseph Myers <joseph@codesourcery.com>
1032
1033 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
1034 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
1035 -dump, -dump=, -imacros, -imacros=, -include, -include=,
1036 -include-barrier, -include-directory, -include-directory=,
1037 -include-directory-after, -include-directory-after=,
1038 -include-prefix, -include-prefix=, -include-with-prefix,
1039 -include-with-prefix=, -include-with-prefix-after,
1040 -include-with-prefix-after=, -include-with-prefix-before,
1041 -include-with-prefix-before=, -no-integrated-cpp,
1042 -no-line-commands, -no-standard-includes, -no-warnings, -output,
1043 -output=, -pedantic, -pedantic-errors, -preprocess,
1044 -print-missing-file-dependencies, -trace-includes, -traditional,
1045 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
1046 -user-dependencies, -verbose, -write-dependencies,
1047 -write-user-dependencies, no-integrated-cpp, traditional): New.
1048
e6fb54ba 10492010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1050
1051 PR objc/23710
9b60f3b0 1052 * c-common.h (objc_start_method_definition): Return bool instead
1053 of void.
1054 * stub-objc.c (objc_start_method_definition): Return bool instead
1055 of void.
1056
10572010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1058
1059 PR objc/25965
1060 * c-common.h (objc_get_interface_ivars): New declaration.
1061 * stub-objc.c (objc_get_interface_ivars): New stub.
e6fb54ba 1062
e44b0a1f 10632010-09-15 Ian Lance Taylor <iant@google.com>
1064
1065 * c-common.c (parse_optimize_options): Do not capitalize warning
ebd7c4c1 1066 messages. Remove period at end of warning message.
e44b0a1f 1067
85c0a25c 10682010-09-09 Nathan Sidwell <nathan@codesourcery.com>
1069
1070 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
1071 (handle_alias_attribute): ... here.
1072 (handle_ifunc_attribute): New.
1073
5ba33bf4 10742010-09-06 Mark Mitchell <mark@codesourcery.com>
1075
1076 * c-common.h (do_warn_double_promotion): Declare.
1077 * c-common.c (do_warn_double_promotion): Define.
1078
c920faa3 10792010-09-05 Mark Mitchell <mark@codesourcery.com>
1080
1081 * c.opt (Wdouble-promotion): New.
1082
9604e070 10832010-09-02 Joseph Myers <joseph@codesourcery.com>
1084
1085 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
1086 fvtable-thunks, fxref): Mark no longer supported in help text.
1087
3b0273a1 10882010-09-02 Joseph Myers <joseph@codesourcery.com>
1089
1090 * c.opt (Wimport, fall-virtual, falt-external-templates,
1091 fdefault-inline, fenum-int-equiv, fexternal-templates,
1092 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
1093 fname-mangling-version-, fnew-abi, fnonnull-objects,
1094 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
1095 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
1096 applicable.
1097 (fhandle-exceptions): Mark with Alias and Warn.
1098 * c-opts.c (c_common_handle_option): Don't handle options marked
1099 as ignored.
1100
67089c6b 11012010-09-02 Joseph Myers <joseph@codesourcery.com>
1102
1103 * c.opt (Wcomments, Werror-implicit-function-declaration,
1104 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
1105 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
1106 aliases.
1107 * c-common.c (option_codes): Use OPT_Wcomment instead of
1108 OPT_Wcomments.
1109 * c-opts.c (warning_as_error_callback, c_common_handle_option):
1110 Don't handle options marked as aliases.
1111
2af087f2 11122010-08-25 Richard Guenther <rguenther@suse.de>
1113
1114 * c-common.c (c_common_get_alias_set): Remove special
1115 handling for pointers.
1116
48148244 11172010-08-20 Nathan Froyd <froydnj@codesourcery.com>
1118
1119 * c-common.c: Use FOR_EACH_VEC_ELT.
1120 * c-gimplify.c: Likewise.
1121 * c-pragma.c: Likewise.
1122
89c69892 11232010-08-16 Joseph Myers <joseph@codesourcery.com>
1124
1125 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
1126 RejectDriver.
1127 (MMDX): Change back to MMD. Mark NoDriverArg instead of
1128 RejectDriver.
1129 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
1130 instead of OPT_MDX and OPT_MMDX.
1131
e28aa114 11322010-08-16 Joseph Myers <joseph@codesourcery.com>
1133
1134 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
1135
99b66d21 11362010-08-12 Joseph Myers <joseph@codesourcery.com>
1137
1138 * c.opt (MD, MMD): Change to MDX and MMDX.
1139 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
1140
666f4bf0 11412010-08-11 Joseph Myers <joseph@codesourcery.com>
1142
1143 * c-opts.c (c_common_handle_option): Call handle_generated_option
1144 instead of handle_option.
1145
5ec815f6 11462010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1147
1148 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
1149 (maybe_apply_renaming_pragma): Delete unneeded declarations.
1150
d13143cf 11512010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1152
1153 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
1154 (pending_redefine_extname): Change type to a VEC.
1155 (add_to_renaming_pragma_list): Update for new type of
1156 pending_redefine_extname.
5ec815f6 1157 (maybe_apply_renaming_pragma): Likewise.
d13143cf 1158
2008c983 11592010-08-04 Arnaud Charlet <charlet@adacore.com>
1160
1161 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
1162 visited.
1163 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
1164 decide whether a type has already been declared/seen.
1165 Do not go to the original type.
1166 (dump_nested_types): New parameter forward.
1167 Generate forward declaration if needed and mark type as visited.
1168 (print_ada_declaration): Call dump_nested_types if not already done.
1169 Mark types as visited.
1170
9b091a73 11712010-08-03 Joseph Myers <joseph@codesourcery.com>
1172
1173 * c.opt (-print-pch-checksum): Remove option.
1174 * c-opts.c (c_common_handle_option): Don't handle
1175 OPT_print_pch_checksum.
1176
b78351e5 11772010-07-27 Joseph Myers <joseph@codesourcery.com>
1178
1179 * c-common.h (c_common_handle_option): Update prototype and return
1180 value type.
1181 * c-opts.c (c_common_handle_option): Update prototype and return
1182 value type. Update calls to handle_option and
1183 enable_warning_as_error.
1184
34416a90 11852010-07-27 Jakub Jelinek <jakub@redhat.com>
1186
1187 PR c/45079
1188 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
1189
fecf9011 11902010-07-27 Joseph Myers <joseph@codesourcery.com>
1191
1192 * c-common.h (c_common_missing_argument): Remove.
1193 * c-opts.c (c_common_missing_argument): Remove.
1194 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
1195 idirafter, imacros, include, isysroot, isystem, iquote): Add
1196 MissingArgError.
1197 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
1198
e88d34f6 11992010-07-27 Joseph Myers <joseph@codesourcery.com>
1200
1201 * c-common.h (c_common_option_lang_mask,
1202 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
1203 New.
1204 (c_common_init_options): Update prototype.
1205 * c-opts.c (c_common_option_lang_mask): New.
1206 (c_common_initialize_diagnostics): Split out of
1207 c_common_init_options.
1208 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
1209 New.
1210 (c_common_init_options): Update prototype. Use decoded options in
1211 search for -lang-asm.
1212
1767a056 12132010-07-15 Nathan Froyd <froydnj@codesourcery.com>
1214
1215 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
1216 * c-format.c: Likewise.
1217
0b205f4c 12182010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
1219
1220 * c-common.h: Include diagnostic-core.h. Error if already
1221 included.
1222 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
1223
1c58e3f1 12242010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1225
1226 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
1227 Do not include expr.h
1228 (vector_mode_valid_p): Move here.
1229
33cc157c 12302010-06-21 DJ Delorie <dj@redhat.com>
1231
1232 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
1233 allow these pragmas anywhere.
1234
12352010-06-14 Jakub Jelinek <jakub@redhat.com>
1236
1237 PR bootstrap/44509
1238 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
1239 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
1240 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
1241 ggc_strdup instead of xstrdup.
1242
12432010-06-10 Jakub Jelinek <jakub@redhat.com>
1244
1245 * c-cppbuiltin.c: Include cpp-id-data.h.
1246 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
1247 (lazy_hex_fp_value): New function.
1248 (builtin_define_with_hex_fp_value): Provide definitions lazily.
1249
9b40bfbf 12502010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1251
1252 * c-gimplify.c: Do not include tree-flow.h
1253
202d6e5f 12542010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
1255
1256 PR other/44034
1257 * c-common.c: Rename targetm member:
1258 targetm.enum_va_list -> targetm.enum_va_list_p
1259
d3237426 12602010-06-28 Anatoly Sokolov <aesok@post.ru>
1261
1262 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
1263
596981c8 12642010-06-28 Steven Bosscher <steven@gcc.gnu.org>
1265
1266 * c-cppbuiltin.c: Do not include except.h.
1267
b9bdfa0b 12682010-06-24 Andi Kleen <ak@linux.intel.com>
1269
1270 * c-common.c (warn_for_omitted_condop): New.
1271 * c-common.h (warn_for_omitted_condop): Add prototype.
1272
55ad092d 12732010-06-21 Joseph Myers <joseph@codesourcery.com>
1274
1275 * c.opt (lang-objc): Remove.
1276 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
1277
9e7c2572 12782010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
1279
1280 * c-opts.c: Include "tm_p.h".
1281
615ef0bb 12822010-06-20 Joseph Myers <joseph@codesourcery.com>
1283
1284 * c-common.c (parse_optimize_options): Update call to
1285 decode_options.
1286
aef48c9a 12872010-06-18 Nathan Froyd <froydnj@codesourcery.com>
1288
1289 * c-common.c (record_types_used_by_current_var_decl): Adjust for
1290 new type of types_used_by_cur_var_decl.
1291
d74003b4 12922010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
1293
1294 PR bootstrap/44512
1295 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
1296 for C++ standard compliance.
1297
1194d077 12982010-06-16 Jason Merrill <jason@redhat.com>
1299
1300 * c.opt: Add -Wnoexcept.
1301
d473d901 13022010-06-16 Richard Guenther <rguenther@suse.de>
1303
1304 PR c/44555
1305 * c-common.c (c_common_truthvalue_conversion): Remove
1306 premature and wrong optimization concering ADDR_EXPRs.
1307
b62dbfd3 13082010-06-15 Arnaud Charlet <charlet@adacore.com>
1309
1310 * c-ada-spec.c (dump_sloc): Remove column info.
1311 (is_simple_enum): New function.
1312 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
1313 enum types when relevant.
1314
200dd99c 13152010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1316
1317 * c-common.c (conversion_warning): Warn at expression
1318 location.
1319
abf6a617 13202010-06-10 Joseph Myers <joseph@codesourcery.com>
1321
1322 * c-opts.c (c_common_handle_option): Don't handle
1323 OPT_fshow_column.
1324
ba72912a 13252010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1326
1327 * c-pragma.c (push_alignment): Use typed GC allocation.
1328 (handle_pragma_push_options): Likewise.
1329
1330 * c-common.c (parse_optimize_options): Likewise.
1331
1332 * c-common.h (struct sorted_fields_type): Add variable_size GTY
1333 option.
1334
4aafe913 13352010-06-07 Joseph Myers <joseph@codesourcery.com>
1336
1337 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
1338 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1339 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1340 flag_signed_bitfields, warn_strict_null_sentinel,
1341 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
1342 flag_gen_declaration, flag_no_gnu_keywords,
1343 flag_implement_inlines, flag_implicit_templates,
1344 flag_implicit_inline_templates, flag_optional_diags,
1345 flag_elide_constructors, flag_default_inline, flag_rtti,
1346 flag_conserve_space, flag_access_control, flag_check_new,
1347 flag_new_for_scope, flag_weak, flag_working_directory,
1348 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
1349 flag_enforce_eh_specs, flag_threadsafe_statics,
1350 flag_pretty_templates): Remove.
1351 * c-common.h (flag_preprocess_only, flag_nil_receivers,
1352 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
1353 flag_replace_objc_classes, flag_undef, flag_no_builtin,
1354 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1355 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1356 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
1357 flag_no_gnu_keywords, flag_implement_inlines,
1358 flag_implicit_templates, flag_implicit_inline_templates,
1359 flag_optional_diags, flag_elide_constructors, flag_default_inline,
1360 flag_rtti, flag_conserve_space, flag_access_control,
1361 flag_check_new, flag_new_for_scope, flag_weak,
1362 flag_working_directory, flag_use_cxa_atexit,
1363 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
1364 flag_threadsafe_statics, flag_pretty_templates,
1365 warn_strict_null_sentinel): Remove.
1366 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
1367 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
1368 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
1369 fimplicit-inline-templates, fimplicit-templates,
1370 flax-vector-conversions, fms-extensions, fnil-receivers,
1371 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
1372 frtti, fshort-double, fshort-enums, fshort-wchar,
1373 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
1374 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
1375 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
1376 gen-decls, undef): Use Var.
1377 (fdefault-inline, foptional-diags): Document as doing nothing.
1378 * c-opts.c (c_common_handle_option): Remove cases for options now
1379 using Var. Mark ignored options as such.
1380
7bedc3a0 13812010-06-05 Steven Bosscher <steven@gcc.gnu.org>
1382
1383 * c-common.c: Moved to here from parent directory.
1384 * c-common.def: Likewise.
1385 * c-common.h: Likewise.
1386 * c-cppbuiltin.c: Likewise.
1387 * c-dump.c: Likewise.
1388 * c-format.c: Likewise.
1389 * c-format.h : Likewise.
1390 * c-gimplify.c: Likewise.
1391 * c-lex.c: Likewise.
1392 * c-omp.c: Likewise.
1393 * c.opt: Likewise.
1394 * c-opts.c: Likewise.
1395 * c-pch.c: Likewise.
1396 * c-ppoutput.c: Likewise.
1397 * c-pragma.c: Likewise.
1398 * c-pragma.h: Likewise.
1399 * c-pretty-print.c: Likewise.
1400 * c-pretty-print.h: Likewise.
1401 * c-semantics.c: Likewise.
1402 * stub-objc.c: Likewise.
1403
1404 * c-common.c: Include gt-c-family-c-common.h.
1405 * c-pragma.c: Include gt-c-family-c-pragma.h.
1406\f
dd045aee 1407Copyright (C) 2010, 2011 Free Software Foundation, Inc.
7bedc3a0 1408
1409Copying and distribution of this file, with or without modification,
1410are permitted in any medium without royalty provided the copyright
1411notice and this notice are preserved.