]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index folding.
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
1a072294
RG
12011-07-06 Richard Guenther <rguenther@suse.de>
2
3 * c-common.c (c_common_nodes_and_builtins):
4 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
5
fce5dddd
RG
62011-07-05 Richard Guenther <rguenther@suse.de>
7
8 * c-common.c (c_common_nodes_and_builtins): Build all common
9 tree nodes first.
10
45d439ac
JJ
112011-06-27 Jakub Jelinek <jakub@redhat.com>
12
56300785
JJ
13 * c-common.h (c_tree_chain_next): New static inline function.
14
45d439ac
JJ
15 * c-common.c (check_builtin_function_arguments): Handle
16 BUILT_IN_ASSUME_ALIGNED.
17
e0a8ecf2
AM
182011-06-21 Andrew MacLeod <amacleod@redhat.com>
19
20 * c-common.c: Add sync_ or SYNC__ to builtin names.
21 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
22
232011-06-20 Pierre Vittet <piervit@pvittet.com>
24
25 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
26 handler.
27 (gen_pragma_handler): New union.
28 (internal_pragma_handler): New type.
29 (c_register_pragma_with_data)
30 (c_register_pragma_with_expansion_and_data): New functions.
31
32 * c-pragma.c (registered_pragmas, c_register_pragma_1)
33 (c_register_pragma, c_register_pragma_with_expansion)
34 (c_invoke_pragma_handler): Changed to work with
35 internal_pragma_handler.
36 (c_register_pragma_with_data)
37 (c_register_pragma_with_expansion_and_data): New functions.
38
677f3fa8
JM
392011-06-14 Joseph Myers <joseph@codesourcery.com>
40
41 * c-common.c: Include common/common-target.h.
42 (handle_section_attribute): Use
43 targetm_common.have_named_sections.
44 * c-cppbuiltin.c: Include common/common-target.h.
45 (c_cpp_builtins): Use targetm_common.except_unwind_info.
46
d7fc8c14
RG
472011-06-10 Richard Guenther <rguenther@suse.de>
48
49 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
50 to print a IDENTIFIER_NODE.
51
10e48e39
RO
522011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
53 Joseph Myers <joseph@codesourcery.com>
54
55 * c.opt (fbuilding-libgcc): New option.
56 * c-cppbuiltin.c (c_cpp_builtins): Define
57 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
58
6976ae51
JM
592011-06-07 Jason Merrill <jason@redhat.com>
60
3ff60975
JM
61 * c-common.c (max_tinst_depth): Lower default to 900.
62
6976ae51
JM
63 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
64
009db074
RG
652011-06-07 Richard Guenther <rguenther@suse.de>
66
67 * c-common.c (c_common_nodes_and_builtins): Do not set
68 size_type_node or call set_sizetype.
69
b4592b92
DS
702011-06-07 Dodji Seketeli <dodji@redhat.com>
71
72 PR debug/49130
73 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
74 type when using pointer comparison to compare types.
75
014ab419
JW
762011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
77
78 * c.opt: Add -Wdelete-non-virtual-dtor.
79 * c-opts.c (c_common_handle_option): Include it in -Wall.
80
4f60111f
NF
812011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
82
83 PR bootstrap/49190
84
85 Revert:
86 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
87
88 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
89 not tree_common.
90
4cc4f2f4
JJ
912011-05-27 Jakub Jelinek <jakub@redhat.com>
92
93 PR c++/49165
94 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
95 C++ don't call c_common_truthvalue_conversion on void type arms.
96
38e01f9e
NF
972011-05-27 Nathan Froyd <froydnj@codesourcery.com>
98
99 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
100 (stmt_list_stack): Define.
101 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
102 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
103
92e948a8
NF
1042011-05-26 Nathan Froyd <froydnj@codesourcery.com>
105
106 * c-common.c (warning_candidate_p): Check for BLOCKs.
107
a2fc3e63
NF
1082011-05-26 Nathan Froyd <froydnj@codesourcery.com>
109
110 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
111 not tree_common.
112
0957c029
JJ
1132011-05-25 Jakub Jelinek <jakub@redhat.com>
114
115 * c-common.c (def_fn_type): Remove extra va_end.
116
828fb3ba
JM
1172011-05-23 Jason Merrill <jason@redhat.com>
118
119 PR c++/48106
120 * c-common.c (c_common_get_narrower): New.
121 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
122
dde05067
NF
1232011-05-23 Nathan Froyd <froydnj@codesourcery.com>
124
125 * c-common.h (check_function_arguments): Tweak prototype of
126 check_function_arguments.
127 * c-common.c (check_function_arguments): Likewise. Adjust
128 calls to check_function_nonnull, check_function_format, and
129 check_function_sentinel.
130 (check_function_sentinel): Take a FUNCTION_TYPE rather than
131 separate attributes and typelist arguments. Use
132 FOREACH_FUNCTION_ARGS to iterate over argument types.
133
3c0d13bf
PC
1342011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
135
136 * c-common.c (c_common_reswords): Reorder.
137 * c-common.h (rid): Likewise.
138
8242dd04
NF
1392011-05-10 Nathan Froyd <froydnj@codesourcery.com>
140
141 * c-common.c (def_fn_type): Don't call build_function_type, call
142 build_function_type_array or build_varargs_function_type_array
143 instead.
144 (c_common_nodes_and_builtins): Likewise.
145
3d528853
NF
1462011-05-05 Nathan Froyd <froydnj@codesourcery.com>
147
148 * c-common.c (c_add_case_label): Omit the loc argument to
149 build_case_label.
150 * c-common.h (build_case_label): Remove.
151 * c-semantics.c (build_case_label): Remove.
152
a04a722b
JM
1532011-05-05 Joseph Myers <joseph@codesourcery.com>
154
155 * c-objc.h (objc_start_method_definition): Update prototype.
156 * stub-objc.c (objc_start_method_definition): Add extra parameter.
157
e19a18d4
NF
1582011-05-04 Nathan Froyd <froydnj@codesourcery.com>
159
160 * c-common.c (check_main_parameter_types): Reindent. Don't use
161 TYPE_ARG_TYPES directly.
162 (handle_nonnull_attribute): Likewise.
163 (sync_resolve_params): Likewise.
164 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
165 to check_format_string.
166 (handle_format_attribute): Likewise.
167 (check_format_string): Take a function type to examine instead of
168 a type list. Use a function_arg_iterator to step through argument
169 types.
170
c62c040f
RG
1712011-05-04 Richard Guenther <rguenther@suse.de>
172
173 * c-common.c (fix_string_type): Use size_int for index type bounds.
174 (start_fname_decls): Do not pass NULL to build_int_cst.
175 (c_init_attributes): Likewise.
176 * c-lex.c (c_lex_with_flags): Likewise.
177
c12ff9d8
JM
1782011-04-27 Jason Merrill <jason@redhat.com>
179
180 * c-common.c (make_tree_vector_from_list): New.
181 * c-common.h: Declare it.
182
304dfbe3
RG
1832011-04-26 Richard Guenther <rguenther@suse.de>
184
185 PR preprocessor/48248
186 * c-ppoutput.c (maybe_print_line): Always optimize newlines
187 for output size with -P.
188
3c0d13bf
PC
1892011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
190
191 * c-common.c (struct c_common_resword): Add __underlying_type.
192 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
193
04695783
JM
1942011-04-20 Jim Meyering <meyering@redhat.com>
195
196 * c-format.c (init_dollar_format_checking): Remove useless
197 if-before-free.
198
0dc33c3c
NP
1992011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
200
201 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 202 (objc_detect_field_duplicates): New.
0dc33c3c 203 * stub-objc.c: Likewise.
3c0d13bf 204
c59633d9
NP
2052011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
206
207 * stub-objc.c (objc_declare_protocols): Renamed to
208 objc_declare_protocol.
209 * c-objc.h: Likewise.
3c0d13bf 210
32dabdaf
NP
2112011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
212
213 * stub-objc.c (objc_declare_class): Updated argument name.
214
81f653d6
NF
2152011-04-12 Nathan Froyd <froydnj@codesourcery.com>
216
217 * c-common.h (c_common_init_ts): Declare.
218 * c-common.c (c_common_init_ts): Define.
219
eb345401
NP
2202011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
221
222 * c-objc.h (objc_build_message_expr): Updated prototype.
223 * stub-objc.c (objc_build_message_expr): Likewise.
224
a358e188
MJ
2252011-04-12 Martin Jambor <mjambor@suse.cz>
226
227 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
228 of cgraph_node.
229
e6313a78
RG
2302011-04-11 Richard Guenther <rguenther@suse.de>
231
232 * c-common.c (complete_array_type): Build a range type of
233 proper type.
234
dcf0c47e
NF
2352011-04-08 Nathan Froyd <froydnj@codesourcery.com>
236
237 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
238 (handle_type_generic_attribute): Likewise.
239
1ee44b26
JM
2402011-04-07 Jason Merrill <jason@redhat.com>
241
242 PR c++/48450
243 * c-common.c (c_common_truthvalue_conversion): Don't ignore
244 conversion from C++0x scoped enum.
245
acce4e77
JM
2462011-04-06 Joseph Myers <joseph@codesourcery.com>
247
248 * c-target-def.h: New file.
249 * c-target.def: New file.
250 * c-target.h: New file.
251 * c-common.c (targetcm): Don't define here.
252 * c-common.h (default_handle_c_option): Declare.
253 * c-format.c: Include c-target.h instead of target.h.
254 * c-opts.c: Include c-target.h instead of target.h. Explicitly
255 include tm.h.
256 (default_handle_c_option): Move from targhooks.c.
257
e2eefb55
JJ
2582011-03-29 Jakub Jelinek <jakub@redhat.com>
259
260 PR preprocessor/48248
261 * c-ppoutput.c (print): Add src_file field.
262 (init_pp_output): Initialize it.
263 (maybe_print_line): Don't optimize by adding up to 8 newlines
264 if map->to_file and print.src_file are different file.
265 (print_line): Update print.src_file.
266
ba78087b
KT
2672011-03-25 Kai Tietz <ktietz@redhat.com>
268
269 * c-ada-spec.c (compare_comment): Use filename_cmp
270 instead of strcmp for filename.
271
0edf1bb2
JL
2722011-03-25 Jeff Law <law@redhat.com>
273
274 * c-family/c-common.c (def_fn_type): Add missing va_end.
275
c7dc8804
JM
2762011-03-25 Jason Merrill <jason@redhat.com>
277
278 * c.opt: Add -std=c++03.
279
d1d879b1
EB
2802011-03-22 Eric Botcazou <ebotcazou@adacore.com>
281
282 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
283
62d784f7
KT
2842011-03-17 Kai Tietz
285
286 PR target/12171
5050afdf
KT
287 * c-pretty-print.c (pp_c_specifier_qualifier_list):
288 Display allowed attributes for function pointer types.
289 (pp_c_attributes_display): New function to display
290 attributes having affects_type_identity flag set to true.
291 * c-pretty-print.h (pp_c_attributes_display): New prototype.
292
62d784f7
KT
293 * c-common.c (c_common_attribute_table):
294 Add new element.
295 (c_common_format_attribute_table): Likewise.
296
82d37118
JM
2972011-03-18 Jason Merrill <jason@redhat.com>
298
49a000c3
JM
299 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
300 * c-common.h: Don't declare it here.
301 * c-common.c: Or define it here.
302 * c-opts.c (c_common_handle_option): Or set it here.
303
82d37118
JM
304 PR c++/35315
305 * c-common.c (handle_transparent_union_attribute): Don't
306 make a duplicate type in C++.
307
17bc631c
JM
3082011-03-15 Jason Merrill <jason@redhat.com>
309
310 * c-common.c (max_constexpr_depth): New.
311 * c-common.h: Declare it.
312 * c-opts.c (c_common_handle_option): Set it.
313 * c.opt (fconstexpr-depth): New option.
314
1b9b91a6
JM
3152011-03-11 Jason Merrill <jason@redhat.com>
316
f231b5ff
JM
317 * c-common.c (attribute_takes_identifier_p): Add missing const.
318
1b9b91a6
JM
319 PR c++/46803
320 * c-common.c (attribute_takes_identifier_p): Assume that an
321 unknown attribute takes an identifier.
322
a19e4d44
NF
3232011-03-07 Nathan Froyd <froydnj@codesourcery.com>
324
325 PR c/47786
326 * c-common.c (c_type_hash): Call list_length instead of iterating
327 through DECL_CHAIN. Rename 'i' to 'n_elements'.
328
982d62f6
JJ
3292011-02-19 Jakub Jelinek <jakub@redhat.com>
330
331 PR c/47809
332 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
333
0a256240
NP
3342011-02-17 Iain Sandoe <iains@gcc.gnu.org>
335
336 * c.opt (fobjc-abi-version=) New.
337 (fobjc-nilcheck): New.
338
ba9e6dd5
NF
3392011-02-03 Nathan Froyd <froydnj@codesourcery.com>
340
341 PR c++/46890
342 * c-common.h (keyword_is_decl_specifier): Declare.
343 * c-common.c (keyword_is_decl_specifier): Define.
344 (keyword_is_function_specifier): New function.
345
7273813a
JJ
3462011-01-26 Jakub Jelinek <jakub@redhat.com>
347
348 PR c/47473
349 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
350 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
351 REAL_TYPE.
352
908ef79b
AC
3532011-01-26 Arnaud Charlet <charlet@adacore.com>
354
355 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
356
237e9384
JJ
3572011-01-26 Jakub Jelinek <jakub@redhat.com>
358
359 PR pch/47430
360 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
361 after init_c_lex if pch_file is set.
362
47ea1edf
DK
3632011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
364
d4dba752 365 PR c++/43601
47ea1edf
DK
366 * c.opt (-fkeep-inline-dllexport): New switch.
367
2aa9c6ae
RG
3682011-01-12 Richard Guenther <rguenther@suse.de>
369
370 PR middle-end/32511
371 * c-common.c (handle_weak_attribute): Warn instead of error
372 on declaring an inline function weak.
373
7bd11157
TT
3742011-01-05 Tom Tromey <tromey@redhat.com>
375
376 * c-common.h (lvalue_error): Update.
377 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
378 not error.
379
0e66e494
NP
3802010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
381
b4f588c4
NP
382 PR objc/47075
383 * c-objc.h (objc_finish_message_expr): Added argument to
384 prototype.
385
f4da8dce
NF
3862010-12-22 Nathan Froyd <froydnj@codesourcery.com>
387
388 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
389 Use prototype_p.
390
46270f14
NP
3912010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
392
393 * c-objc.h (objc_maybe_warn_exceptions): New.
394 * stub-objc.c (objc_maybe_warn_exceptions): New.
395
4816c593
NF
3962010-12-10 Nathan Froyd <froydnj@codesourcery.com>
397
398 * c-common.h (readonly_error): Declare.
399 * c-common.c (readonly_error): Define.
400
7a6daeb0
NF
4012010-12-09 Nathan Froyd <froydnj@codesourcery.com>
402
403 * c-common.h (invalid_indirection_error): Declare.
404 * c-common.c (invalid_indirection_error): Define.
405
892f6119
RG
4062010-12-03 Richard Guenther <rguenther@suse.de>
407
408 PR c/46745
409 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
410 (pp_c_unary_expression): Likewise.
411 (pp_c_expression): Likewise.
412
6c39e757
NP
4132010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
414
415 * c-common.h (objc_finish_function): New.
416 (objc_non_volatilized_type): Removed.
417 (objc_type_quals_match): Removed.
418 * stub-objc.c (objc_finish_function): New.
419 (objc_non_volatilized_type): Removed.
420 (objc_type_quals_match): Removed.
421
7c475d11
JM
4222010-11-30 Joseph Myers <joseph@codesourcery.com>
423
424 * c-common.h (parse_optimize_options): Declare.
425 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
426 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
427
71f3e391
JM
4282010-11-29 Joseph Myers <joseph@codesourcery.com>
429
430 * c-opts.c (check_deps_environment_vars): Use getenv instead of
431 GET_ENVIRONMENT.
432 * c-pch.c (O_BINARY): Don't define here.
433 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
434
d5fabb58
JM
4352010-11-25 Joseph Myers <joseph@codesourcery.com>
436
437 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
438 targetm.except_unwind_info.
439
299404a1
JM
4402010-11-23 Joseph Myers <joseph@codesourcery.com>
441
442 * c-opts.c (c_common_handle_option): Pass location to
443 set_struct_debug_option.
444
c98cd5bf
JM
4452010-11-23 Joseph Myers <joseph@codesourcery.com>
446
447 * c-common.c (visibility_options): Move from ../opts.c.
448 * c-common.h (struct visibility_flags, visibility_options):
449 Declare here.
450 * c-opts.c (finish_options): Rename to c_finish_options.
451 (c_common_init): Update call to finish_options.
452
a9546771
NP
4532010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
454
455 PR objc/34033
456 * c-lex.c (lex_string): Check that each string in an Objective-C
457 string concat sequence starts with either one or zero '@', and
458 that there are no spurious '@' signs at the end.
459
24a57808
JM
4602010-11-20 Joseph Myers <joseph@codesourcery.com>
461
462 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
463 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
464 HANDLE_PRAGMA_VISIBILITY.
465 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
466 HANDLE_PRAGMA_VISIBILITY): Don't define.
467 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
468
a9aa2c3a
NF
4692010-11-20 Nathan Froyd <froydnj@codesourcery.com>
470
471 PR c++/16189
472 PR c++/36888
473 PR c++/45331
474 * c-common.h (keyword_begins_type_specifier): Declare.
475 (keyword_is_storage_class_specifier): Declare.
476 (keyword_is_type_qualifier): Declare.
477 * c-common.c (keyword_begins_type_specifier): New function.
478 (keyword_is_storage_class_specifier): New function.
479 (keyword_is_type_qualifier): Declare.
480
5386338c
JM
4812010-11-19 Joseph Myers <joseph@codesourcery.com>
482
483 PR c/46547
484 * c-common.c (in_late_binary_op): Define.
485 (c_common_truthvalue_conversion): Check in_late_binary_op before
486 calling c_save_expr.
487 * c-common.h (in_late_binary_op): Declare.
488
69ccdddb
JM
4892010-11-19 Joseph Myers <joseph@codesourcery.com>
490
491 * c-opts.c (c_common_handle_option): Update calls to
492 set_struct_debug_option.
493
6b192a09
NP
4942010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
495
496 * c-common.h (objc_declare_protocols): Added additional argument.
497 * stub-objc.c (objc_declare_protocol): Same change.
498
fb52b50a
NF
4992010-11-18 Nathan Froyd <froydnj@codesourcery.com>
500
501 PR c/33193
502 * c-common.h (build_real_imag_expr): Declare.
503 * c-semantics.c (build_real_imag_expr): Define.
504
b37421c6
JM
5052010-11-17 Joseph Myers <joseph@codesourcery.com>
506
507 * c-opts.c (c_common_parse_file): Take no arguments.
508 * c-common.h (c_common_parse_file): Update prototype.
509
07078664
JJ
5102010-11-16 Jakub Jelinek <jakub@redhat.com>
511
512 PR c++/46401
513 * c-common.c (warning_candidate_p): Don't track non-const calls
514 or STRING_CSTs.
515
c6a13190
ILT
5162010-11-15 Ian Lance Taylor <iant@google.com>
517
518 * c-lex.c (init_c_lex): Set macro debug callbacks if
519 flag_dump_go_spec is set.
520
925e8657
NP
5212010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
522
523 * c-common.h (objc_build_incr_expr_for_property_ref): New.
524 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
525
bb0a9581
NF
5262010-11-15 Nathan Froyd <froydnj@codesourcery.com>
527
528 PR preprocessor/45038
529 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
530 dialects.
531
c5fa0890
JM
5322010-11-12 Joseph Myers <joseph@codesourcery.com>
533
534 * c-common.h (c_family_lang_mask): Declare.
535 * c-opts.c (c_family_lang_mask): Make extern.
536 * c-pragma.c (handle_pragma_diagnostic): Use
537 control_warning_option.
538
a4d8c676
JM
5392010-11-12 Joseph Myers <joseph@codesourcery.com>
540
541 * c-common.c (parse_optimize_options): Update call to
542 decode_options.
543 * c-common.h (c_common_handle_option): Update prototype.
544 * c-opts.c (c_common_handle_option): Take location_t parameter and
545 pass it to other functions.
546
f954bd2c
JM
5472010-11-11 Joseph Myers <joseph@codesourcery.com>
548
549 * c-opts.c (warning_as_error_callback): Remove.
550 (c_common_initialize_diagnostics): Don't call
551 register_warning_as_error_callback.
552 (c_common_handle_option): Handle -Werror=normalized= here.
553
d8a07487
JM
5542010-11-10 Joseph Myers <joseph@codesourcery.com>
555
556 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
557 in diagnostic.
558 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
559 letter.
560 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
561 Remove trailing '.' from diagnostics.
562 * c.opt (Wwrite-strings_: Avoid '`' in help text.
563
d5478783
JM
5642010-11-10 Joseph Myers <joseph@codesourcery.com>
565
566 * c-common.c (parse_optimize_options): Pass global_dc to
567 decode_options.
568 * c-opts.c (c_common_handle_option): Pass &global_options to
569 set_Wstrict_aliasing.
570 * c.opt (v): Don't mark Common or document here.
571
91ebb981
IS
5722010-11-06 Iain Sandoe <iains@gcc.gnu.org>
573
574 PR target/44981
575 * c-format.c (format_type): New type gcc_objc_string_format_type.
576 (valid_stringptr_type_p): New.
577 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
578 (check_format_string): Pass expected type, use
579 valid_stringptr_type_p (), check that the format string types are
580 consistent with the format specification.
581 (decode_format_attr): Warn if NSString is used outside objective-c.
582 (format_types_orig): Add NSString.
583 (format_name): New.
584 (format_flags): New.
585 (check_format_arg): Handle format strings requiring an external parser.
586 first_target_format_type: New variable.
587 (handle_format_attribute): Set up first_target_format_type, pass the
588 expected format arg string type to check_format_string().
589 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
590 * stub-objc.c (objc_string_ref_type_p): New.
591 (objc_check_format_arg): New.
592
bede2adc
NP
5932010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
594
595 Fixed using the Objective-C 2.0 dot-syntax with class names.
596 * c-common.h (objc_build_class_component_ref): New.
597 * stub-objc.c (objc_build_class_component_ref): New.
598
9a179d01
NP
5992010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
600
601 * c.opt (Wproperty-assign-default): New option.
602
22d8d616
NP
6032010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
604
605 Implemented -fobjc-std=objc1 flag.
606 * c.opt (fobjc-std=objc1): New option.
607
2debdb4f
NP
6082010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
609
610 Implemented format and noreturn attributes for Objective-C methods.
611 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
612 attribute for Objective-C methods.
613
ec52b111
JM
6142010-10-31 Jason Merrill <jason@redhat.com>
615
616 * c-common.c (conversion_warning, warn_for_collisions_1): Use
617 EXPR_LOC_OR_HERE.
618
46a88c12
NP
6192010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
620
621 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
622 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
623 (objc_add_property_declaration): Removed arguments for copies and
624 ivar.
625 (objc_build_getter_call): Renamed to
626 objc_maybe_build_component_ref.
627 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
628 (objc_is_property_ref): New.
629 * c-common.c (c_common_reswords): Removed copies and ivar.
630 * stub-objc.c (objc_add_property_declaration): Removed arguments
631 for copies and ivar.
632 (objc_build_getter_call): Renamed to
633 objc_maybe_build_component_ref.
634 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
635 (objc_is_property_ref): New.
636
1e4bf85b
AC
6372010-10-29 Arnaud Charlet <charlet@adacore.com>
638 Matthew Gingell <gingell@adacore.com>
639
640 * c-ada-spec.c (separate_class_package): New function.
641 (pp_ada_tree_identifier): Prefix references to C++ classes with the
642 name of their enclosing package.
643 (print_ada_declaration): Use separate_class_package.
644
81f0bab2
JM
6452010-10-27 Jason Merrill <jason@redhat.com>
646
2b08f2c5
JM
647 * c-common.c (c_common_reswords): Add __is_literal_type.
648 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
649
81f0bab2
JM
650 * c-common.c (check_case_value): Remove special C++ code.
651
200290f2
NP
6522010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
653
654 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
655 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
656 and RID_LAST_PATTR.
657 (objc_add_property_declaration): Added additional arguments.
658 (objc_property_attribute_kind): Removed.
659 (objc_set_property_attr): Removed.
660 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
661 copy and nonatomic.
662 * stub-objc.c (objc_add_property_declaration): Added additional
663 arguments.
664 (objc_set_property_attr): Removed.
665
f614132b
NP
6662010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
667
668 * c-common.h (objc_add_property_variable): Renamed to
669 objc_add_property_declaration. Added location argument.
670 * stub-objc.c (objc_add_property_variable): Same change.
671
b8a18805
NP
6722010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
673
674 * c-common.h (objc_maybe_printable_name): New.
675 * stub-objc.c (objc_maybe_printable_name): New.
676
30cd1c5d
AS
6772010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
678 Andrew Pinski <pinskia@gmail.com>
679
680 * c-common.h (c_common_mark_addressable_vec): Declare.
681 * c-common.c (c_common_mark_addressable_vec): New function.
682
249a82c4
NP
6832010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
684
685 * c-common.h (objc_set_method_type): Removed.
686 (objc_add_method_declaration): Added boolean argument.
687 (objc_start_method_definition): Same change.
688 (objc_build_method_signature): Same change.
689 * stub-objc.c (objc_set_method_type): Removed.
690 (objc_add_method_declaration): Added boolean argument.
691 (objc_start_method_definition): Same change.
692 (objc_build_method_signature): Same change.
693
977e30bc
NP
6942010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
695
696 * c-common.h (finish_file): Removed.
697 (objc_write_global_declarations): New.
698 * c-opts.c (c_common_parse_file): Do not call finish_file.
699 * stub-objc.c (objc_write_global_declarations): New.
700
da57d1b9
NP
7012010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
702
703 Implemented parsing @synthesize and @dynamic for
704 Objective-C/Objective-C++.
705 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
706 (objc_add_synthesize_declaration): New.
707 (objc_add_dynamic_declaration): New.
708 * c-common.c (c_common_reswords): Add synthesize and dynamic.
709 * stub-objc.c (objc_add_synthesize_declaration): New.
710 (objc_add_dynamic_declaration): New.
711
0069111f
MM
7122010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
713
714 PR target/46041
715 * c-cppbuiltin.c (mode_has_fma): Move function here from
716 builtins.c. Don't use the fma optab, instead just use the
717 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
718 using -save-temps.
719
e426b47b
NP
7202010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
721
722 Merge from 'apple/trunk' branch on FSF servers.
0069111f 723
e426b47b
NP
724 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
725
726 Radar 4330422
727 * c-common.h (objc_non_volatilized_type): New declaration
728 * stub-objc.c (objc_non_volatilized_type): New stub.
729
90fbfdc3
NP
7302010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
731
e426b47b 732 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
733
734 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
735
736 Radar 4133425
737 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 738 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 739
c37d8c30
IS
7402010-10-17 Iain Sandoe <iains@gcc.gnu.org>
741
742 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
743 * c-common.h (enum rid): Add RID_AT_PACKAGE.
744 (objc_ivar_visibility_kind): New enum.
745 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 746 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
747 visibility enum.
748
1b1562a5
MM
7492010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
750
751 * c-cppbuiltin.c (builtin_define_float_constants): Emit
752 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
753 has the appropriate fma builtins.
754 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
755
668ea4b1
IS
7562010-10-14 Iain Sandoe <iains@gcc.gnu.org>
757
1b1562a5 758 merge from FSF apple 'trunk' branch.
668ea4b1 759 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 760
668ea4b1
IS
761 Radars 4436866, 4505126, 4506903, 4517826
762 * c-common.c (c_common_resword): Define @property and its attributes.
763 * c-common.h: Define property attribute enum entries.
764 (OBJC_IS_PATTR_KEYWORD): New.
765 (objc_property_attribute_kind): New enum.
766 Declare objc_set_property_attr (), objc_add_property_variable (),
767 objc_build_getter_call () and objc_build_setter_call ().
768 * stub-objc.c (objc_set_property_attr): New stub.
769 (objc_add_property_variable): Likewise.
770 (objc_build_getter_call): Likewise.
771 (objc_build_setter_call) Likewise.
1b1562a5 772
a1178b30
IS
7732010-10-13 Iain Sandoe <iains@gcc.gnu.org>
774
1b1562a5 775 merge from FSF apple 'trunk' branch.
a1178b30
IS
776 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
777
778 Radar 3803157 (method attributes)
779 * c-common.c (handle_deprecated_attribute): Recognize
780 objc methods as valid declarations.
781 * c-common.h: Declare objc_method_decl ().
1b1562a5 782 * stub-objc.c (objc_method_decl): New stub.
a1178b30 783
a75bfaa6
JM
7842010-10-08 Joseph Myers <joseph@codesourcery.com>
785
786 * c-common.c (parse_optimize_options): Call
787 decode_cmdline_options_to_array_default_mask before
788 decode_options. Update arguments to decode_options.
789 * c-common.h (c_common_init_options_struct): Declare.
790 * c-opts.c (c_common_init_options_struct): New. Split out from
791 c_common_init_options.
792
f05b9d93
NP
7932010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
794
795 Implemented fast enumeration for Objective-C.
796 * c-common.h (objc_finish_foreach_loop): New.
797 * stub-objc.c (objc_finish_foreach_loop): New.
798
1ebe4b4f
JM
7992010-10-05 Joseph Myers <joseph@codesourcery.com>
800
801 * c-common.h (struct diagnostic_context): Don't declare here.
802 (c_common_initialize_diagnostics): Declare using
803 diagnostic_context typedef.
804 * c-opts.c (c_common_handle_option): Pass global_dc to
805 handle_generated_option.
806
d4d24ba4
JM
8072010-10-04 Joseph Myers <joseph@codesourcery.com>
808
809 * c-opts.c (c_common_handle_option): Pass &global_options_set to
810 handle_generated_option.
811
478a1c5b
ILT
8122010-10-03 Ian Lance Taylor <iant@google.com>
813
814 * c.opt (-fplan9-extensions): New option.
815
82a1c2fe
FXC
8162010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
817
818 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
819 Remove.
820 (c_cpp_builtins): Call functions from cppbuiltin.c instead
821 of duplicating code.
822
92902b1b
IS
8232010-09-30 Iain Sandoe <iains@gcc.gnu.org>
824
825 * c-common.c: Add two new entries for @optional
826 and @required keywords.
827
828 merge from FSF 'apple/trunk' branch.
829 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
830
831 Radar 4386773
832 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
833 objective-c keywords.
834 (objc_set_method_opt): New declaration.
835 * stub-objc.c (objc_set_method_opt): New stub.
836
46625112
JM
8372010-09-30 Joseph Myers <joseph@codesourcery.com>
838
839 * c-common.c (handle_optimize_attribute): Pass &global_options to
840 cl_optimization_save and cl_optimization_restore.
841 * c-opts.c (c_common_handle_option): Pass &global_options to
842 handle_generated_option.
843 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
844 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
845 &global_options to cl_optimization_restore.
846
49b91f05
NP
8472010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
848
849 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
850 Objective-C/Objective-C++ keywords.
851
13ed556f 8522010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57
NP
853
854 Merge from 'apple/trunk' branch on FSF servers.
855
856 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
857
858 Radar 4281748
859 * c-common.h (objc_check_global_decl): New declaration.
860 * stub-objc.c (objc_check_global_decl): New stub.
861
f0036cca
JM
8622010-09-29 Joseph Myers <joseph@codesourcery.com>
863
864 * c.opt: Don't use VarExists.
865
e3339d0f
JM
8662010-09-29 Joseph Myers <joseph@codesourcery.com>
867
868 * c-common.c (c_cpp_error): Update names of diagnostic_context
869 members.
870 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
871 cl_optimization members.
872 * c-opts.c (warning_as_error_callback, c_common_handle_option,
873 sanitize_cpp_opts, finish_options): Update names of cpp_options
874 members.
875
1973201f
NP
8762010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
877
878 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
879 (objc_is_reserved_word): Removed.
880 * c-common.c: Updated comments.
881 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
882 objc_is_reserved_word.
883 * stub-objc.c (objc_is_reserved_word): Removed.
884
f7e71da5
IS
8852010-09-28 Iain Sandoe <iains@gcc.gnu.org>
886
887 * c-common.h (objc_add_method_declaration): Adjust prototype to
888 include attributes.
889 (objc_start_method_definition): Likewise.
890 (objc_build_keyword_decl): Likewise.
891 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
892 (objc_start_method_definition): Likewise.
893 (objc_build_keyword_decl): Likewise.
894
c165dca7
IS
8952010-09-28 Iain Sandoe <iains@gcc.gnu.org>
896
897 * c-common.h (objc_start_class_interface): Adjust prototype.
898 (objc_start_category_interface): Likewise.
899 (objc_start_protocol): Likewise.
900 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
901 (objc_start_class_interface): Likewise.
902 (objc_start_category_interface): Likewise.
903
7458026b
ILT
9042010-09-27 Ian Lance Taylor <iant@google.com>
905
906 * c-common.c (c_common_attribute_table): Add no_split_stack.
907 (handle_no_split_stack_attribute): New static function.
908
b581b85b
NP
9092010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
910
911 Merge from 'apple/trunk' branch on FSF servers.
912
913 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
914
915 Radar 4229905
916 * c-common.h (objc_have_common_type): New declaration.
917 * stub-objc.c (objc_have_common_type): New stub.
918
919 2005-06-22 Ziemowit Laski <zlaski@apple.com>
920
921 Radar 4154928
922 * c-common.h (objc_common_type): New prototype.
923 * stub-objc.c (objc_common_type): New stub.
924
46a4da10
JH
9252010-09-24 Jan Hubicka <jh@suse.cz>
926
927 * c-common.c (handle_leaf_attribute): New function.
928 (struct attribute_spec c_common_att): Add leaf.
929
e200444e
JM
9302010-09-22 Joseph Myers <joseph@codesourcery.com>
931
932 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
933 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
934 -dump, -dump=, -imacros, -imacros=, -include, -include=,
935 -include-barrier, -include-directory, -include-directory=,
936 -include-directory-after, -include-directory-after=,
937 -include-prefix, -include-prefix=, -include-with-prefix,
938 -include-with-prefix=, -include-with-prefix-after,
939 -include-with-prefix-after=, -include-with-prefix-before,
940 -include-with-prefix-before=, -no-integrated-cpp,
941 -no-line-commands, -no-standard-includes, -no-warnings, -output,
942 -output=, -pedantic, -pedantic-errors, -preprocess,
943 -print-missing-file-dependencies, -trace-includes, -traditional,
944 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
945 -user-dependencies, -verbose, -write-dependencies,
946 -write-user-dependencies, no-integrated-cpp, traditional): New.
947
29a80ea6
NP
9482010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
949
950 PR objc/23710
ac1fc2fc
NP
951 * c-common.h (objc_start_method_definition): Return bool instead
952 of void.
953 * stub-objc.c (objc_start_method_definition): Return bool instead
954 of void.
955
9562010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
957
958 PR objc/25965
959 * c-common.h (objc_get_interface_ivars): New declaration.
960 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 961
de621752
ILT
9622010-09-15 Ian Lance Taylor <iant@google.com>
963
964 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 965 messages. Remove period at end of warning message.
de621752 966
ba885ec5
NS
9672010-09-09 Nathan Sidwell <nathan@codesourcery.com>
968
969 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
970 (handle_alias_attribute): ... here.
971 (handle_ifunc_attribute): New.
972
c5ee1358
MM
9732010-09-06 Mark Mitchell <mark@codesourcery.com>
974
975 * c-common.h (do_warn_double_promotion): Declare.
976 * c-common.c (do_warn_double_promotion): Define.
977
0a0b3574
MM
9782010-09-05 Mark Mitchell <mark@codesourcery.com>
979
980 * c.opt (Wdouble-promotion): New.
981
d1779886
JM
9822010-09-02 Joseph Myers <joseph@codesourcery.com>
983
984 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
985 fvtable-thunks, fxref): Mark no longer supported in help text.
986
2d2bd949
JM
9872010-09-02 Joseph Myers <joseph@codesourcery.com>
988
989 * c.opt (Wimport, fall-virtual, falt-external-templates,
990 fdefault-inline, fenum-int-equiv, fexternal-templates,
991 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
992 fname-mangling-version-, fnew-abi, fnonnull-objects,
993 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
994 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
995 applicable.
996 (fhandle-exceptions): Mark with Alias and Warn.
997 * c-opts.c (c_common_handle_option): Don't handle options marked
998 as ignored.
999
5de8299c
JM
10002010-09-02 Joseph Myers <joseph@codesourcery.com>
1001
1002 * c.opt (Wcomments, Werror-implicit-function-declaration,
1003 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
1004 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
1005 aliases.
1006 * c-common.c (option_codes): Use OPT_Wcomment instead of
1007 OPT_Wcomments.
1008 * c-opts.c (warning_as_error_callback, c_common_handle_option):
1009 Don't handle options marked as aliases.
1010
0ceb0201
RG
10112010-08-25 Richard Guenther <rguenther@suse.de>
1012
1013 * c-common.c (c_common_get_alias_set): Remove special
1014 handling for pointers.
1015
ac47786e
NF
10162010-08-20 Nathan Froyd <froydnj@codesourcery.com>
1017
1018 * c-common.c: Use FOR_EACH_VEC_ELT.
1019 * c-gimplify.c: Likewise.
1020 * c-pragma.c: Likewise.
1021
c878765b
JM
10222010-08-16 Joseph Myers <joseph@codesourcery.com>
1023
1024 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
1025 RejectDriver.
1026 (MMDX): Change back to MMD. Mark NoDriverArg instead of
1027 RejectDriver.
1028 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
1029 instead of OPT_MDX and OPT_MMDX.
1030
603349bf
JM
10312010-08-16 Joseph Myers <joseph@codesourcery.com>
1032
1033 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
1034
644fa7ac
JM
10352010-08-12 Joseph Myers <joseph@codesourcery.com>
1036
1037 * c.opt (MD, MMD): Change to MDX and MMDX.
1038 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
1039
481e1176
JM
10402010-08-11 Joseph Myers <joseph@codesourcery.com>
1041
1042 * c-opts.c (c_common_handle_option): Call handle_generated_option
1043 instead of handle_option.
1044
ac8dc9f7
NF
10452010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1046
1047 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
1048 (maybe_apply_renaming_pragma): Delete unneeded declarations.
1049
4f8c876d
NF
10502010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1051
1052 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
1053 (pending_redefine_extname): Change type to a VEC.
1054 (add_to_renaming_pragma_list): Update for new type of
1055 pending_redefine_extname.
ac8dc9f7 1056 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 1057
3b0c690e
AC
10582010-08-04 Arnaud Charlet <charlet@adacore.com>
1059
1060 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
1061 visited.
1062 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
1063 decide whether a type has already been declared/seen.
1064 Do not go to the original type.
1065 (dump_nested_types): New parameter forward.
1066 Generate forward declaration if needed and mark type as visited.
1067 (print_ada_declaration): Call dump_nested_types if not already done.
1068 Mark types as visited.
1069
1890bccc
JM
10702010-08-03 Joseph Myers <joseph@codesourcery.com>
1071
1072 * c.opt (-print-pch-checksum): Remove option.
1073 * c-opts.c (c_common_handle_option): Don't handle
1074 OPT_print_pch_checksum.
1075
5f20c657
JM
10762010-07-27 Joseph Myers <joseph@codesourcery.com>
1077
1078 * c-common.h (c_common_handle_option): Update prototype and return
1079 value type.
1080 * c-opts.c (c_common_handle_option): Update prototype and return
1081 value type. Update calls to handle_option and
1082 enable_warning_as_error.
1083
f551f80c
JJ
10842010-07-27 Jakub Jelinek <jakub@redhat.com>
1085
1086 PR c/45079
1087 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
1088
61ff2bdc
JM
10892010-07-27 Joseph Myers <joseph@codesourcery.com>
1090
1091 * c-common.h (c_common_missing_argument): Remove.
1092 * c-opts.c (c_common_missing_argument): Remove.
1093 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
1094 idirafter, imacros, include, isysroot, isystem, iquote): Add
1095 MissingArgError.
1096 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
1097
7a9bf9a4
JM
10982010-07-27 Joseph Myers <joseph@codesourcery.com>
1099
1100 * c-common.h (c_common_option_lang_mask,
1101 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
1102 New.
1103 (c_common_init_options): Update prototype.
1104 * c-opts.c (c_common_option_lang_mask): New.
1105 (c_common_initialize_diagnostics): Split out of
1106 c_common_init_options.
1107 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
1108 New.
1109 (c_common_init_options): Update prototype. Use decoded options in
1110 search for -lang-asm.
1111
910ad8de
NF
11122010-07-15 Nathan Froyd <froydnj@codesourcery.com>
1113
1114 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
1115 * c-format.c: Likewise.
1116
718f9c0f
MLI
11172010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
1118
1119 * c-common.h: Include diagnostic-core.h. Error if already
1120 included.
1121 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
1122
4d451982
MLI
11232010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1124
1125 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
1126 Do not include expr.h
1127 (vector_mode_valid_p): Move here.
1128
119fe915
SB
11292010-06-21 DJ Delorie <dj@redhat.com>
1130
1131 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
1132 allow these pragmas anywhere.
1133
11342010-06-14 Jakub Jelinek <jakub@redhat.com>
1135
1136 PR bootstrap/44509
1137 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
1138 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
1139 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
1140 ggc_strdup instead of xstrdup.
1141
11422010-06-10 Jakub Jelinek <jakub@redhat.com>
1143
1144 * c-cppbuiltin.c: Include cpp-id-data.h.
1145 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
1146 (lazy_hex_fp_value): New function.
1147 (builtin_define_with_hex_fp_value): Provide definitions lazily.
1148
6662d794
MLI
11492010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1150
1151 * c-gimplify.c: Do not include tree-flow.h
1152
38f8b050
JR
11532010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
1154
1155 PR other/44034
1156 * c-common.c: Rename targetm member:
1157 targetm.enum_va_list -> targetm.enum_va_list_p
1158
9589f23e
AS
11592010-06-28 Anatoly Sokolov <aesok@post.ru>
1160
1161 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
1162
3b06d379
SB
11632010-06-28 Steven Bosscher <steven@gcc.gnu.org>
1164
1165 * c-cppbuiltin.c: Do not include except.h.
1166
d166d4c3
AK
11672010-06-24 Andi Kleen <ak@linux.intel.com>
1168
1169 * c-common.c (warn_for_omitted_condop): New.
1170 * c-common.h (warn_for_omitted_condop): Add prototype.
1171
70cb8be6
JM
11722010-06-21 Joseph Myers <joseph@codesourcery.com>
1173
1174 * c.opt (lang-objc): Remove.
1175 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
1176
a4c97feb
JR
11772010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
1178
1179 * c-opts.c: Include "tm_p.h".
1180
6e2f1956
JM
11812010-06-20 Joseph Myers <joseph@codesourcery.com>
1182
1183 * c-common.c (parse_optimize_options): Update call to
1184 decode_options.
1185
bc87224e
NF
11862010-06-18 Nathan Froyd <froydnj@codesourcery.com>
1187
1188 * c-common.c (record_types_used_by_current_var_decl): Adjust for
1189 new type of types_used_by_cur_var_decl.
1190
b49cf425
JR
11912010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
1192
1193 PR bootstrap/44512
1194 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
1195 for C++ standard compliance.
1196
59f9c2ed
JM
11972010-06-16 Jason Merrill <jason@redhat.com>
1198
1199 * c.opt: Add -Wnoexcept.
1200
33766b66
RG
12012010-06-16 Richard Guenther <rguenther@suse.de>
1202
1203 PR c/44555
1204 * c-common.c (c_common_truthvalue_conversion): Remove
1205 premature and wrong optimization concering ADDR_EXPRs.
1206
eff7e30c
AC
12072010-06-15 Arnaud Charlet <charlet@adacore.com>
1208
1209 * c-ada-spec.c (dump_sloc): Remove column info.
1210 (is_simple_enum): New function.
1211 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
1212 enum types when relevant.
1213
6312e84d
MLI
12142010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1215
1216 * c-common.c (conversion_warning): Warn at expression
1217 location.
1218
1cb42611
JM
12192010-06-10 Joseph Myers <joseph@codesourcery.com>
1220
1221 * c-opts.c (c_common_handle_option): Don't handle
1222 OPT_fshow_column.
1223
a9429e29
LB
12242010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1225
1226 * c-pragma.c (push_alignment): Use typed GC allocation.
1227 (handle_pragma_push_options): Likewise.
1228
1229 * c-common.c (parse_optimize_options): Likewise.
1230
1231 * c-common.h (struct sorted_fields_type): Add variable_size GTY
1232 option.
1233
5498f011
JM
12342010-06-07 Joseph Myers <joseph@codesourcery.com>
1235
1236 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
1237 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1238 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1239 flag_signed_bitfields, warn_strict_null_sentinel,
1240 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
1241 flag_gen_declaration, flag_no_gnu_keywords,
1242 flag_implement_inlines, flag_implicit_templates,
1243 flag_implicit_inline_templates, flag_optional_diags,
1244 flag_elide_constructors, flag_default_inline, flag_rtti,
1245 flag_conserve_space, flag_access_control, flag_check_new,
1246 flag_new_for_scope, flag_weak, flag_working_directory,
1247 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
1248 flag_enforce_eh_specs, flag_threadsafe_statics,
1249 flag_pretty_templates): Remove.
1250 * c-common.h (flag_preprocess_only, flag_nil_receivers,
1251 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
1252 flag_replace_objc_classes, flag_undef, flag_no_builtin,
1253 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1254 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1255 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
1256 flag_no_gnu_keywords, flag_implement_inlines,
1257 flag_implicit_templates, flag_implicit_inline_templates,
1258 flag_optional_diags, flag_elide_constructors, flag_default_inline,
1259 flag_rtti, flag_conserve_space, flag_access_control,
1260 flag_check_new, flag_new_for_scope, flag_weak,
1261 flag_working_directory, flag_use_cxa_atexit,
1262 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
1263 flag_threadsafe_statics, flag_pretty_templates,
1264 warn_strict_null_sentinel): Remove.
1265 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
1266 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
1267 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
1268 fimplicit-inline-templates, fimplicit-templates,
1269 flax-vector-conversions, fms-extensions, fnil-receivers,
1270 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
1271 frtti, fshort-double, fshort-enums, fshort-wchar,
1272 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
1273 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
1274 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
1275 gen-decls, undef): Use Var.
1276 (fdefault-inline, foptional-diags): Document as doing nothing.
1277 * c-opts.c (c_common_handle_option): Remove cases for options now
1278 using Var. Mark ignored options as such.
1279
39dabefd
SB
12802010-06-05 Steven Bosscher <steven@gcc.gnu.org>
1281
1282 * c-common.c: Moved to here from parent directory.
1283 * c-common.def: Likewise.
1284 * c-common.h: Likewise.
1285 * c-cppbuiltin.c: Likewise.
1286 * c-dump.c: Likewise.
1287 * c-format.c: Likewise.
1288 * c-format.h : Likewise.
1289 * c-gimplify.c: Likewise.
1290 * c-lex.c: Likewise.
1291 * c-omp.c: Likewise.
1292 * c.opt: Likewise.
1293 * c-opts.c: Likewise.
1294 * c-pch.c: Likewise.
1295 * c-ppoutput.c: Likewise.
1296 * c-pragma.c: Likewise.
1297 * c-pragma.h: Likewise.
1298 * c-pretty-print.c: Likewise.
1299 * c-pretty-print.h: Likewise.
1300 * c-semantics.c: Likewise.
1301 * stub-objc.c: Likewise.
1302
1303 * c-common.c: Include gt-c-family-c-common.h.
1304 * c-pragma.c: Include gt-c-family-c-pragma.h.
1305\f
04695783 1306Copyright (C) 2010, 2011 Free Software Foundation, Inc.
39dabefd
SB
1307
1308Copying and distribution of this file, with or without modification,
1309are permitted in any medium without royalty provided the copyright
1310notice and this notice are preserved.