]> gcc.gnu.org Git - gcc.git/blame - gcc/c-family/ChangeLog
re PR c++/48489 (Invalid error message 'has no member named' when referring directly...
[gcc.git] / gcc / c-family / ChangeLog
CommitLineData
e79983f4
MM
12011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2
3 * c-common.c (def_builtin_1): Delete old interface with two
4 parallel arrays to hold standard builtin declarations, and replace
5 it with a function based interface that can support creating
6 builtins on the fly in the future. Change all uses, and poison
7 the old names. Make sure 0 is not a legitimate builtin index.
8 * c-omp.c (c_finish_omp_barrier): Ditto.
9 (c_finish_omp_taskwait): Ditto.
10 (c_finish_omp_flush): Ditto.
11
6637388f
TG
122011-10-11 Tristan Gingold <gingold@adacore.com>
13
14 * c.opt: (fallow-parameterless-variadic-functions): New.
15
3797cb21
DS
162011-09-08 Dodji Seketeli <dodji@redhat.com>
17
18 PR c++/33255 - Support -Wunused-local-typedefs warning
19 * c-common.h (struct c_language_function::local_typedefs): New
20 field.
21 (record_locally_defined_typedef, maybe_record_typedef_use)
22 (maybe_warn_unused_local_typedefs): Declare new functions.
23 * c-common.c (record_locally_defined_typedef)
24 (maybe_record_typedef_use)
25 (maybe_warn_unused_local_typedefs): Define new functions.
26 * c.opt: Declare new -Wunused-local-typedefs flag.
27
693ddb1b
EB
282011-09-06 Eric Botcazou <ebotcazou@adacore.com>
29
30 PR middle-end/50266
31 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
32 computations.
33
830c740f
RG
342011-09-05 Richard Guenther <rguenther@suse.de>
35
36 * c-common.c (complete_array_type): Use ssize_int (-1) instead
37 of integer_minus_one_node for empty array upper bounds.
38
892a371f
DS
392011-08-28 Dodji Seketeli <dodji@redhat.com>
40
41 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
42 it's the first time it's being called on this main TU.
43
0e3fdb48
RB
442011-08-24 Richard Guenther <rguenther@suse.de>
45
46 PR c/49396
47 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
48
492011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
50
51 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
52 defined in cpp_init_builtins and c_cpp_builtins.
53
d4a83c10
JM
542011-08-19 Joseph Myers <joseph@codesourcery.com>
55
56 * c-common.c (c_common_reswords): Add __builtin_complex.
57 * c-common.h (RID_BUILTIN_COMPLEX): New.
58
bbceee64
JM
592011-08-18 Joseph Myers <joseph@codesourcery.com>
60
61 * c-common.c (c_common_reswords): Add _Noreturn.
62 (keyword_is_function_specifier): Handle RID_NORETURN.
63 * c-common.h (RID_NORETURN): New.
64
0e3a99ae
AS
652011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
66
67 * c-common.c (unsafe_conversion_p): New function. Check if it is
68 unsafe to convert an expression to the type.
69 (conversion_warning): Adjust, use unsafe_conversion_p.
70 * c-common.h (unsafe_conversion_p): New function declaration.
71
20906c66
JJ
722011-08-02 Jakub Jelinek <jakub@redhat.com>
73
74 * c-common.h (c_finish_omp_atomic): Adjust prototype.
75 (c_finish_omp_taskyield): New prototype.
76 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
77 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
78 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
79 or RHS1 have side-effects, evaluate those too in the right spot,
80 if it is a decl and LHS is also a decl, error out if they
81 aren't the same.
82 (c_finish_omp_taskyield): New function.
83 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
84 * c-pragma.c (omp_pragmas): Add taskyield.
85 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
86 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
87 PRAGMA_OMP_CLAUSE_MERGEABLE.
88
770e5a2e
DS
892011-07-25 Dodji Seketeli <dodji@redhat.com>
90
91 * c-common.h (set_underlying_type): Remove parm name from
92 declaration.
93
1baae426
RG
942011-07-25 Romain Geissler <romain.geissler@gmail.com>
95
96 * c-pretty-print.h: Search c-common.h in c-family.
97
fcb21722
JM
982011-07-22 Jason Merrill <jason@redhat.com>
99
76f86d00
JM
100 PR c++/49793
101 * c.opt (Wnarrowing): New.
102
3a636414
JM
103 PR c++/30112
104 * c-common.h: Declare c_linkage_bindings.
105 * c-pragma.c (handle_pragma_redefine_extname): Use it.
106
fcb21722
JM
107 PR c++/49813
108 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
109 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
110 as flag_isoc99 for 'restrict'.
111 (pp_c_specifier_qualifier_list): Likewise for _Complex.
112
02614448
ILT
1132011-07-21 Ian Lance Taylor <iant@google.com>
114
115 PR middle-end/49705
116 * c-common.c (c_disable_warnings): New static function.
117 (c_enable_warnings): New static function.
118 (c_fully_fold_internal): Change local unused_p to bool. Call
119 c_disable_warnings and c_enable_warnings rather than change
120 c_inhibit_evaluation_warnings.
121
34429675
JM
1222011-07-20 Jason Merrill <jason@redhat.com>
123
124 PR c++/6709 (DR 743)
125 PR c++/42603 (DR 950)
126 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
127 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
128 (CPP_DECLTYPE): New.
129 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
130
5d49b6a7
RG
1312011-07-19 Richard Guenther <rguenther@suse.de>
132
133 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
134 * c-omp.c (c_finish_omp_for): Likewise.
135
e84a58ff
EB
1362011-07-12 Eric Botcazou <ebotcazou@adacore.com>
137
138 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
139 body on the next line.
140
329af3c7
JM
1412011-07-08 Jason Merrill <jason@redhat.com>
142
4063e61b
JM
143 PR c++/45437
144 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
145
329af3c7
JM
146 PR c++/49673
147 * c-common.c (c_apply_type_quals_to_decl): Don't check
148 TYPE_NEEDS_CONSTRUCTING.
149
1a072294
RG
1502011-07-06 Richard Guenther <rguenther@suse.de>
151
152 * c-common.c (c_common_nodes_and_builtins):
153 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
154
fce5dddd
RG
1552011-07-05 Richard Guenther <rguenther@suse.de>
156
157 * c-common.c (c_common_nodes_and_builtins): Build all common
158 tree nodes first.
159
45d439ac
JJ
1602011-06-27 Jakub Jelinek <jakub@redhat.com>
161
56300785
JJ
162 * c-common.h (c_tree_chain_next): New static inline function.
163
45d439ac
JJ
164 * c-common.c (check_builtin_function_arguments): Handle
165 BUILT_IN_ASSUME_ALIGNED.
166
e0a8ecf2
AM
1672011-06-21 Andrew MacLeod <amacleod@redhat.com>
168
169 * c-common.c: Add sync_ or SYNC__ to builtin names.
170 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
171
1722011-06-20 Pierre Vittet <piervit@pvittet.com>
173
174 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
175 handler.
176 (gen_pragma_handler): New union.
177 (internal_pragma_handler): New type.
178 (c_register_pragma_with_data)
179 (c_register_pragma_with_expansion_and_data): New functions.
180
181 * c-pragma.c (registered_pragmas, c_register_pragma_1)
182 (c_register_pragma, c_register_pragma_with_expansion)
183 (c_invoke_pragma_handler): Changed to work with
184 internal_pragma_handler.
185 (c_register_pragma_with_data)
186 (c_register_pragma_with_expansion_and_data): New functions.
187
677f3fa8
JM
1882011-06-14 Joseph Myers <joseph@codesourcery.com>
189
190 * c-common.c: Include common/common-target.h.
191 (handle_section_attribute): Use
192 targetm_common.have_named_sections.
193 * c-cppbuiltin.c: Include common/common-target.h.
194 (c_cpp_builtins): Use targetm_common.except_unwind_info.
195
d7fc8c14
RG
1962011-06-10 Richard Guenther <rguenther@suse.de>
197
198 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
199 to print a IDENTIFIER_NODE.
200
10e48e39
RO
2012011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
202 Joseph Myers <joseph@codesourcery.com>
203
204 * c.opt (fbuilding-libgcc): New option.
205 * c-cppbuiltin.c (c_cpp_builtins): Define
206 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
207
6976ae51
JM
2082011-06-07 Jason Merrill <jason@redhat.com>
209
3ff60975
JM
210 * c-common.c (max_tinst_depth): Lower default to 900.
211
6976ae51
JM
212 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
213
009db074
RG
2142011-06-07 Richard Guenther <rguenther@suse.de>
215
216 * c-common.c (c_common_nodes_and_builtins): Do not set
217 size_type_node or call set_sizetype.
218
b4592b92
DS
2192011-06-07 Dodji Seketeli <dodji@redhat.com>
220
221 PR debug/49130
222 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
223 type when using pointer comparison to compare types.
224
014ab419
JW
2252011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
226
227 * c.opt: Add -Wdelete-non-virtual-dtor.
228 * c-opts.c (c_common_handle_option): Include it in -Wall.
229
4f60111f
NF
2302011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
231
232 PR bootstrap/49190
233
234 Revert:
235 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
236
237 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
238 not tree_common.
239
4cc4f2f4
JJ
2402011-05-27 Jakub Jelinek <jakub@redhat.com>
241
242 PR c++/49165
243 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
244 C++ don't call c_common_truthvalue_conversion on void type arms.
245
38e01f9e
NF
2462011-05-27 Nathan Froyd <froydnj@codesourcery.com>
247
248 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
249 (stmt_list_stack): Define.
250 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
251 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
252
92e948a8
NF
2532011-05-26 Nathan Froyd <froydnj@codesourcery.com>
254
255 * c-common.c (warning_candidate_p): Check for BLOCKs.
256
a2fc3e63
NF
2572011-05-26 Nathan Froyd <froydnj@codesourcery.com>
258
259 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
260 not tree_common.
261
0957c029
JJ
2622011-05-25 Jakub Jelinek <jakub@redhat.com>
263
264 * c-common.c (def_fn_type): Remove extra va_end.
265
828fb3ba
JM
2662011-05-23 Jason Merrill <jason@redhat.com>
267
268 PR c++/48106
269 * c-common.c (c_common_get_narrower): New.
270 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
271
dde05067
NF
2722011-05-23 Nathan Froyd <froydnj@codesourcery.com>
273
274 * c-common.h (check_function_arguments): Tweak prototype of
275 check_function_arguments.
276 * c-common.c (check_function_arguments): Likewise. Adjust
277 calls to check_function_nonnull, check_function_format, and
278 check_function_sentinel.
279 (check_function_sentinel): Take a FUNCTION_TYPE rather than
280 separate attributes and typelist arguments. Use
281 FOREACH_FUNCTION_ARGS to iterate over argument types.
282
3c0d13bf
PC
2832011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
284
285 * c-common.c (c_common_reswords): Reorder.
286 * c-common.h (rid): Likewise.
287
8242dd04
NF
2882011-05-10 Nathan Froyd <froydnj@codesourcery.com>
289
290 * c-common.c (def_fn_type): Don't call build_function_type, call
291 build_function_type_array or build_varargs_function_type_array
292 instead.
293 (c_common_nodes_and_builtins): Likewise.
294
3d528853
NF
2952011-05-05 Nathan Froyd <froydnj@codesourcery.com>
296
297 * c-common.c (c_add_case_label): Omit the loc argument to
298 build_case_label.
299 * c-common.h (build_case_label): Remove.
300 * c-semantics.c (build_case_label): Remove.
301
a04a722b
JM
3022011-05-05 Joseph Myers <joseph@codesourcery.com>
303
304 * c-objc.h (objc_start_method_definition): Update prototype.
305 * stub-objc.c (objc_start_method_definition): Add extra parameter.
306
e19a18d4
NF
3072011-05-04 Nathan Froyd <froydnj@codesourcery.com>
308
309 * c-common.c (check_main_parameter_types): Reindent. Don't use
310 TYPE_ARG_TYPES directly.
311 (handle_nonnull_attribute): Likewise.
312 (sync_resolve_params): Likewise.
313 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
314 to check_format_string.
315 (handle_format_attribute): Likewise.
316 (check_format_string): Take a function type to examine instead of
317 a type list. Use a function_arg_iterator to step through argument
318 types.
319
c62c040f
RG
3202011-05-04 Richard Guenther <rguenther@suse.de>
321
322 * c-common.c (fix_string_type): Use size_int for index type bounds.
323 (start_fname_decls): Do not pass NULL to build_int_cst.
324 (c_init_attributes): Likewise.
325 * c-lex.c (c_lex_with_flags): Likewise.
326
c12ff9d8
JM
3272011-04-27 Jason Merrill <jason@redhat.com>
328
329 * c-common.c (make_tree_vector_from_list): New.
330 * c-common.h: Declare it.
331
304dfbe3
RG
3322011-04-26 Richard Guenther <rguenther@suse.de>
333
334 PR preprocessor/48248
335 * c-ppoutput.c (maybe_print_line): Always optimize newlines
336 for output size with -P.
337
3c0d13bf
PC
3382011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
339
340 * c-common.c (struct c_common_resword): Add __underlying_type.
341 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
342
04695783
JM
3432011-04-20 Jim Meyering <meyering@redhat.com>
344
345 * c-format.c (init_dollar_format_checking): Remove useless
346 if-before-free.
347
0dc33c3c
NP
3482011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
349
350 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 351 (objc_detect_field_duplicates): New.
0dc33c3c 352 * stub-objc.c: Likewise.
3c0d13bf 353
c59633d9
NP
3542011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
355
356 * stub-objc.c (objc_declare_protocols): Renamed to
357 objc_declare_protocol.
358 * c-objc.h: Likewise.
3c0d13bf 359
32dabdaf
NP
3602011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
361
362 * stub-objc.c (objc_declare_class): Updated argument name.
363
81f653d6
NF
3642011-04-12 Nathan Froyd <froydnj@codesourcery.com>
365
366 * c-common.h (c_common_init_ts): Declare.
367 * c-common.c (c_common_init_ts): Define.
368
eb345401
NP
3692011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
370
371 * c-objc.h (objc_build_message_expr): Updated prototype.
372 * stub-objc.c (objc_build_message_expr): Likewise.
373
a358e188
MJ
3742011-04-12 Martin Jambor <mjambor@suse.cz>
375
376 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
377 of cgraph_node.
378
e6313a78
RG
3792011-04-11 Richard Guenther <rguenther@suse.de>
380
381 * c-common.c (complete_array_type): Build a range type of
382 proper type.
383
dcf0c47e
NF
3842011-04-08 Nathan Froyd <froydnj@codesourcery.com>
385
386 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
387 (handle_type_generic_attribute): Likewise.
388
1ee44b26
JM
3892011-04-07 Jason Merrill <jason@redhat.com>
390
391 PR c++/48450
392 * c-common.c (c_common_truthvalue_conversion): Don't ignore
393 conversion from C++0x scoped enum.
394
acce4e77
JM
3952011-04-06 Joseph Myers <joseph@codesourcery.com>
396
397 * c-target-def.h: New file.
398 * c-target.def: New file.
399 * c-target.h: New file.
400 * c-common.c (targetcm): Don't define here.
401 * c-common.h (default_handle_c_option): Declare.
402 * c-format.c: Include c-target.h instead of target.h.
403 * c-opts.c: Include c-target.h instead of target.h. Explicitly
404 include tm.h.
405 (default_handle_c_option): Move from targhooks.c.
406
e2eefb55
JJ
4072011-03-29 Jakub Jelinek <jakub@redhat.com>
408
409 PR preprocessor/48248
410 * c-ppoutput.c (print): Add src_file field.
411 (init_pp_output): Initialize it.
412 (maybe_print_line): Don't optimize by adding up to 8 newlines
413 if map->to_file and print.src_file are different file.
414 (print_line): Update print.src_file.
415
ba78087b
KT
4162011-03-25 Kai Tietz <ktietz@redhat.com>
417
418 * c-ada-spec.c (compare_comment): Use filename_cmp
419 instead of strcmp for filename.
420
0edf1bb2
JL
4212011-03-25 Jeff Law <law@redhat.com>
422
423 * c-family/c-common.c (def_fn_type): Add missing va_end.
424
c7dc8804
JM
4252011-03-25 Jason Merrill <jason@redhat.com>
426
427 * c.opt: Add -std=c++03.
428
d1d879b1
EB
4292011-03-22 Eric Botcazou <ebotcazou@adacore.com>
430
431 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
432
62d784f7
KT
4332011-03-17 Kai Tietz
434
435 PR target/12171
5050afdf
KT
436 * c-pretty-print.c (pp_c_specifier_qualifier_list):
437 Display allowed attributes for function pointer types.
438 (pp_c_attributes_display): New function to display
439 attributes having affects_type_identity flag set to true.
440 * c-pretty-print.h (pp_c_attributes_display): New prototype.
441
62d784f7
KT
442 * c-common.c (c_common_attribute_table):
443 Add new element.
444 (c_common_format_attribute_table): Likewise.
445
82d37118
JM
4462011-03-18 Jason Merrill <jason@redhat.com>
447
49a000c3
JM
448 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
449 * c-common.h: Don't declare it here.
450 * c-common.c: Or define it here.
451 * c-opts.c (c_common_handle_option): Or set it here.
452
82d37118
JM
453 PR c++/35315
454 * c-common.c (handle_transparent_union_attribute): Don't
455 make a duplicate type in C++.
456
17bc631c
JM
4572011-03-15 Jason Merrill <jason@redhat.com>
458
459 * c-common.c (max_constexpr_depth): New.
460 * c-common.h: Declare it.
461 * c-opts.c (c_common_handle_option): Set it.
462 * c.opt (fconstexpr-depth): New option.
463
1b9b91a6
JM
4642011-03-11 Jason Merrill <jason@redhat.com>
465
f231b5ff
JM
466 * c-common.c (attribute_takes_identifier_p): Add missing const.
467
1b9b91a6
JM
468 PR c++/46803
469 * c-common.c (attribute_takes_identifier_p): Assume that an
470 unknown attribute takes an identifier.
471
a19e4d44
NF
4722011-03-07 Nathan Froyd <froydnj@codesourcery.com>
473
474 PR c/47786
475 * c-common.c (c_type_hash): Call list_length instead of iterating
476 through DECL_CHAIN. Rename 'i' to 'n_elements'.
477
982d62f6
JJ
4782011-02-19 Jakub Jelinek <jakub@redhat.com>
479
480 PR c/47809
481 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
482
0a256240
NP
4832011-02-17 Iain Sandoe <iains@gcc.gnu.org>
484
485 * c.opt (fobjc-abi-version=) New.
486 (fobjc-nilcheck): New.
487
ba9e6dd5
NF
4882011-02-03 Nathan Froyd <froydnj@codesourcery.com>
489
490 PR c++/46890
491 * c-common.h (keyword_is_decl_specifier): Declare.
492 * c-common.c (keyword_is_decl_specifier): Define.
493 (keyword_is_function_specifier): New function.
494
7273813a
JJ
4952011-01-26 Jakub Jelinek <jakub@redhat.com>
496
497 PR c/47473
498 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
499 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
500 REAL_TYPE.
501
908ef79b
AC
5022011-01-26 Arnaud Charlet <charlet@adacore.com>
503
504 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
505
237e9384
JJ
5062011-01-26 Jakub Jelinek <jakub@redhat.com>
507
508 PR pch/47430
509 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
510 after init_c_lex if pch_file is set.
511
47ea1edf
DK
5122011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
513
d4dba752 514 PR c++/43601
47ea1edf
DK
515 * c.opt (-fkeep-inline-dllexport): New switch.
516
2aa9c6ae
RG
5172011-01-12 Richard Guenther <rguenther@suse.de>
518
519 PR middle-end/32511
520 * c-common.c (handle_weak_attribute): Warn instead of error
521 on declaring an inline function weak.
522
7bd11157
TT
5232011-01-05 Tom Tromey <tromey@redhat.com>
524
525 * c-common.h (lvalue_error): Update.
526 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
527 not error.
528
0e66e494
NP
5292010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
530
b4f588c4
NP
531 PR objc/47075
532 * c-objc.h (objc_finish_message_expr): Added argument to
533 prototype.
534
f4da8dce
NF
5352010-12-22 Nathan Froyd <froydnj@codesourcery.com>
536
537 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
538 Use prototype_p.
539
46270f14
NP
5402010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
541
542 * c-objc.h (objc_maybe_warn_exceptions): New.
543 * stub-objc.c (objc_maybe_warn_exceptions): New.
544
4816c593
NF
5452010-12-10 Nathan Froyd <froydnj@codesourcery.com>
546
547 * c-common.h (readonly_error): Declare.
548 * c-common.c (readonly_error): Define.
549
7a6daeb0
NF
5502010-12-09 Nathan Froyd <froydnj@codesourcery.com>
551
552 * c-common.h (invalid_indirection_error): Declare.
553 * c-common.c (invalid_indirection_error): Define.
554
892f6119
RG
5552010-12-03 Richard Guenther <rguenther@suse.de>
556
557 PR c/46745
558 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
559 (pp_c_unary_expression): Likewise.
560 (pp_c_expression): Likewise.
561
6c39e757
NP
5622010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
563
564 * c-common.h (objc_finish_function): New.
565 (objc_non_volatilized_type): Removed.
566 (objc_type_quals_match): Removed.
567 * stub-objc.c (objc_finish_function): New.
568 (objc_non_volatilized_type): Removed.
569 (objc_type_quals_match): Removed.
570
7c475d11
JM
5712010-11-30 Joseph Myers <joseph@codesourcery.com>
572
573 * c-common.h (parse_optimize_options): Declare.
574 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
575 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
576
71f3e391
JM
5772010-11-29 Joseph Myers <joseph@codesourcery.com>
578
579 * c-opts.c (check_deps_environment_vars): Use getenv instead of
580 GET_ENVIRONMENT.
581 * c-pch.c (O_BINARY): Don't define here.
582 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
583
d5fabb58
JM
5842010-11-25 Joseph Myers <joseph@codesourcery.com>
585
586 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
587 targetm.except_unwind_info.
588
299404a1
JM
5892010-11-23 Joseph Myers <joseph@codesourcery.com>
590
591 * c-opts.c (c_common_handle_option): Pass location to
592 set_struct_debug_option.
593
c98cd5bf
JM
5942010-11-23 Joseph Myers <joseph@codesourcery.com>
595
596 * c-common.c (visibility_options): Move from ../opts.c.
597 * c-common.h (struct visibility_flags, visibility_options):
598 Declare here.
599 * c-opts.c (finish_options): Rename to c_finish_options.
600 (c_common_init): Update call to finish_options.
601
a9546771
NP
6022010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
603
604 PR objc/34033
605 * c-lex.c (lex_string): Check that each string in an Objective-C
606 string concat sequence starts with either one or zero '@', and
607 that there are no spurious '@' signs at the end.
608
24a57808
JM
6092010-11-20 Joseph Myers <joseph@codesourcery.com>
610
611 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
612 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
613 HANDLE_PRAGMA_VISIBILITY.
614 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
615 HANDLE_PRAGMA_VISIBILITY): Don't define.
616 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
617
a9aa2c3a
NF
6182010-11-20 Nathan Froyd <froydnj@codesourcery.com>
619
620 PR c++/16189
621 PR c++/36888
622 PR c++/45331
623 * c-common.h (keyword_begins_type_specifier): Declare.
624 (keyword_is_storage_class_specifier): Declare.
625 (keyword_is_type_qualifier): Declare.
626 * c-common.c (keyword_begins_type_specifier): New function.
627 (keyword_is_storage_class_specifier): New function.
628 (keyword_is_type_qualifier): Declare.
629
5386338c
JM
6302010-11-19 Joseph Myers <joseph@codesourcery.com>
631
632 PR c/46547
633 * c-common.c (in_late_binary_op): Define.
634 (c_common_truthvalue_conversion): Check in_late_binary_op before
635 calling c_save_expr.
636 * c-common.h (in_late_binary_op): Declare.
637
69ccdddb
JM
6382010-11-19 Joseph Myers <joseph@codesourcery.com>
639
640 * c-opts.c (c_common_handle_option): Update calls to
641 set_struct_debug_option.
642
6b192a09
NP
6432010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
644
645 * c-common.h (objc_declare_protocols): Added additional argument.
646 * stub-objc.c (objc_declare_protocol): Same change.
647
fb52b50a
NF
6482010-11-18 Nathan Froyd <froydnj@codesourcery.com>
649
650 PR c/33193
651 * c-common.h (build_real_imag_expr): Declare.
652 * c-semantics.c (build_real_imag_expr): Define.
653
b37421c6
JM
6542010-11-17 Joseph Myers <joseph@codesourcery.com>
655
656 * c-opts.c (c_common_parse_file): Take no arguments.
657 * c-common.h (c_common_parse_file): Update prototype.
658
07078664
JJ
6592010-11-16 Jakub Jelinek <jakub@redhat.com>
660
661 PR c++/46401
662 * c-common.c (warning_candidate_p): Don't track non-const calls
663 or STRING_CSTs.
664
c6a13190
ILT
6652010-11-15 Ian Lance Taylor <iant@google.com>
666
667 * c-lex.c (init_c_lex): Set macro debug callbacks if
668 flag_dump_go_spec is set.
669
925e8657
NP
6702010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
671
672 * c-common.h (objc_build_incr_expr_for_property_ref): New.
673 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
674
bb0a9581
NF
6752010-11-15 Nathan Froyd <froydnj@codesourcery.com>
676
677 PR preprocessor/45038
678 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
679 dialects.
680
c5fa0890
JM
6812010-11-12 Joseph Myers <joseph@codesourcery.com>
682
683 * c-common.h (c_family_lang_mask): Declare.
684 * c-opts.c (c_family_lang_mask): Make extern.
685 * c-pragma.c (handle_pragma_diagnostic): Use
686 control_warning_option.
687
a4d8c676
JM
6882010-11-12 Joseph Myers <joseph@codesourcery.com>
689
690 * c-common.c (parse_optimize_options): Update call to
691 decode_options.
692 * c-common.h (c_common_handle_option): Update prototype.
693 * c-opts.c (c_common_handle_option): Take location_t parameter and
694 pass it to other functions.
695
f954bd2c
JM
6962010-11-11 Joseph Myers <joseph@codesourcery.com>
697
698 * c-opts.c (warning_as_error_callback): Remove.
699 (c_common_initialize_diagnostics): Don't call
700 register_warning_as_error_callback.
701 (c_common_handle_option): Handle -Werror=normalized= here.
702
d8a07487
JM
7032010-11-10 Joseph Myers <joseph@codesourcery.com>
704
705 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
706 in diagnostic.
707 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
708 letter.
709 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
710 Remove trailing '.' from diagnostics.
711 * c.opt (Wwrite-strings_: Avoid '`' in help text.
712
d5478783
JM
7132010-11-10 Joseph Myers <joseph@codesourcery.com>
714
715 * c-common.c (parse_optimize_options): Pass global_dc to
716 decode_options.
717 * c-opts.c (c_common_handle_option): Pass &global_options to
718 set_Wstrict_aliasing.
719 * c.opt (v): Don't mark Common or document here.
720
91ebb981
IS
7212010-11-06 Iain Sandoe <iains@gcc.gnu.org>
722
723 PR target/44981
724 * c-format.c (format_type): New type gcc_objc_string_format_type.
725 (valid_stringptr_type_p): New.
726 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
727 (check_format_string): Pass expected type, use
728 valid_stringptr_type_p (), check that the format string types are
729 consistent with the format specification.
730 (decode_format_attr): Warn if NSString is used outside objective-c.
731 (format_types_orig): Add NSString.
732 (format_name): New.
733 (format_flags): New.
734 (check_format_arg): Handle format strings requiring an external parser.
735 first_target_format_type: New variable.
736 (handle_format_attribute): Set up first_target_format_type, pass the
737 expected format arg string type to check_format_string().
738 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
739 * stub-objc.c (objc_string_ref_type_p): New.
740 (objc_check_format_arg): New.
741
bede2adc
NP
7422010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
743
744 Fixed using the Objective-C 2.0 dot-syntax with class names.
745 * c-common.h (objc_build_class_component_ref): New.
746 * stub-objc.c (objc_build_class_component_ref): New.
747
9a179d01
NP
7482010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
749
750 * c.opt (Wproperty-assign-default): New option.
751
22d8d616
NP
7522010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
753
754 Implemented -fobjc-std=objc1 flag.
755 * c.opt (fobjc-std=objc1): New option.
756
2debdb4f
NP
7572010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
758
759 Implemented format and noreturn attributes for Objective-C methods.
760 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
761 attribute for Objective-C methods.
762
ec52b111
JM
7632010-10-31 Jason Merrill <jason@redhat.com>
764
765 * c-common.c (conversion_warning, warn_for_collisions_1): Use
766 EXPR_LOC_OR_HERE.
767
46a88c12
NP
7682010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
769
770 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
771 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
772 (objc_add_property_declaration): Removed arguments for copies and
773 ivar.
774 (objc_build_getter_call): Renamed to
775 objc_maybe_build_component_ref.
776 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
777 (objc_is_property_ref): New.
778 * c-common.c (c_common_reswords): Removed copies and ivar.
779 * stub-objc.c (objc_add_property_declaration): Removed arguments
780 for copies and ivar.
781 (objc_build_getter_call): Renamed to
782 objc_maybe_build_component_ref.
783 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
784 (objc_is_property_ref): New.
785
1e4bf85b
AC
7862010-10-29 Arnaud Charlet <charlet@adacore.com>
787 Matthew Gingell <gingell@adacore.com>
788
789 * c-ada-spec.c (separate_class_package): New function.
790 (pp_ada_tree_identifier): Prefix references to C++ classes with the
791 name of their enclosing package.
792 (print_ada_declaration): Use separate_class_package.
793
81f0bab2
JM
7942010-10-27 Jason Merrill <jason@redhat.com>
795
2b08f2c5
JM
796 * c-common.c (c_common_reswords): Add __is_literal_type.
797 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
798
81f0bab2
JM
799 * c-common.c (check_case_value): Remove special C++ code.
800
200290f2
NP
8012010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
802
803 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
804 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
805 and RID_LAST_PATTR.
806 (objc_add_property_declaration): Added additional arguments.
807 (objc_property_attribute_kind): Removed.
808 (objc_set_property_attr): Removed.
809 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
810 copy and nonatomic.
811 * stub-objc.c (objc_add_property_declaration): Added additional
812 arguments.
813 (objc_set_property_attr): Removed.
814
f614132b
NP
8152010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
816
817 * c-common.h (objc_add_property_variable): Renamed to
818 objc_add_property_declaration. Added location argument.
819 * stub-objc.c (objc_add_property_variable): Same change.
820
b8a18805
NP
8212010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
822
823 * c-common.h (objc_maybe_printable_name): New.
824 * stub-objc.c (objc_maybe_printable_name): New.
825
30cd1c5d
AS
8262010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
827 Andrew Pinski <pinskia@gmail.com>
828
829 * c-common.h (c_common_mark_addressable_vec): Declare.
830 * c-common.c (c_common_mark_addressable_vec): New function.
831
249a82c4
NP
8322010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
833
834 * c-common.h (objc_set_method_type): Removed.
835 (objc_add_method_declaration): Added boolean argument.
836 (objc_start_method_definition): Same change.
837 (objc_build_method_signature): Same change.
838 * stub-objc.c (objc_set_method_type): Removed.
839 (objc_add_method_declaration): Added boolean argument.
840 (objc_start_method_definition): Same change.
841 (objc_build_method_signature): Same change.
842
977e30bc
NP
8432010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
844
845 * c-common.h (finish_file): Removed.
846 (objc_write_global_declarations): New.
847 * c-opts.c (c_common_parse_file): Do not call finish_file.
848 * stub-objc.c (objc_write_global_declarations): New.
849
da57d1b9
NP
8502010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
851
852 Implemented parsing @synthesize and @dynamic for
853 Objective-C/Objective-C++.
854 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
855 (objc_add_synthesize_declaration): New.
856 (objc_add_dynamic_declaration): New.
857 * c-common.c (c_common_reswords): Add synthesize and dynamic.
858 * stub-objc.c (objc_add_synthesize_declaration): New.
859 (objc_add_dynamic_declaration): New.
860
0069111f
MM
8612010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
862
863 PR target/46041
864 * c-cppbuiltin.c (mode_has_fma): Move function here from
865 builtins.c. Don't use the fma optab, instead just use the
866 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
867 using -save-temps.
868
e426b47b
NP
8692010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
870
871 Merge from 'apple/trunk' branch on FSF servers.
0069111f 872
e426b47b
NP
873 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
874
875 Radar 4330422
876 * c-common.h (objc_non_volatilized_type): New declaration
877 * stub-objc.c (objc_non_volatilized_type): New stub.
878
90fbfdc3
NP
8792010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
880
e426b47b 881 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
882
883 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
884
885 Radar 4133425
886 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 887 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 888
c37d8c30
IS
8892010-10-17 Iain Sandoe <iains@gcc.gnu.org>
890
891 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
892 * c-common.h (enum rid): Add RID_AT_PACKAGE.
893 (objc_ivar_visibility_kind): New enum.
894 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 895 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
896 visibility enum.
897
1b1562a5
MM
8982010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
899
900 * c-cppbuiltin.c (builtin_define_float_constants): Emit
901 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
902 has the appropriate fma builtins.
903 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
904
668ea4b1
IS
9052010-10-14 Iain Sandoe <iains@gcc.gnu.org>
906
1b1562a5 907 merge from FSF apple 'trunk' branch.
668ea4b1 908 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 909
668ea4b1
IS
910 Radars 4436866, 4505126, 4506903, 4517826
911 * c-common.c (c_common_resword): Define @property and its attributes.
912 * c-common.h: Define property attribute enum entries.
913 (OBJC_IS_PATTR_KEYWORD): New.
914 (objc_property_attribute_kind): New enum.
915 Declare objc_set_property_attr (), objc_add_property_variable (),
916 objc_build_getter_call () and objc_build_setter_call ().
917 * stub-objc.c (objc_set_property_attr): New stub.
918 (objc_add_property_variable): Likewise.
919 (objc_build_getter_call): Likewise.
920 (objc_build_setter_call) Likewise.
1b1562a5 921
a1178b30
IS
9222010-10-13 Iain Sandoe <iains@gcc.gnu.org>
923
1b1562a5 924 merge from FSF apple 'trunk' branch.
a1178b30
IS
925 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
926
927 Radar 3803157 (method attributes)
928 * c-common.c (handle_deprecated_attribute): Recognize
929 objc methods as valid declarations.
930 * c-common.h: Declare objc_method_decl ().
1b1562a5 931 * stub-objc.c (objc_method_decl): New stub.
a1178b30 932
a75bfaa6
JM
9332010-10-08 Joseph Myers <joseph@codesourcery.com>
934
935 * c-common.c (parse_optimize_options): Call
936 decode_cmdline_options_to_array_default_mask before
937 decode_options. Update arguments to decode_options.
938 * c-common.h (c_common_init_options_struct): Declare.
939 * c-opts.c (c_common_init_options_struct): New. Split out from
940 c_common_init_options.
941
f05b9d93
NP
9422010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
943
944 Implemented fast enumeration for Objective-C.
945 * c-common.h (objc_finish_foreach_loop): New.
946 * stub-objc.c (objc_finish_foreach_loop): New.
947
1ebe4b4f
JM
9482010-10-05 Joseph Myers <joseph@codesourcery.com>
949
950 * c-common.h (struct diagnostic_context): Don't declare here.
951 (c_common_initialize_diagnostics): Declare using
952 diagnostic_context typedef.
953 * c-opts.c (c_common_handle_option): Pass global_dc to
954 handle_generated_option.
955
d4d24ba4
JM
9562010-10-04 Joseph Myers <joseph@codesourcery.com>
957
958 * c-opts.c (c_common_handle_option): Pass &global_options_set to
959 handle_generated_option.
960
478a1c5b
ILT
9612010-10-03 Ian Lance Taylor <iant@google.com>
962
963 * c.opt (-fplan9-extensions): New option.
964
82a1c2fe
FXC
9652010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
966
967 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
968 Remove.
969 (c_cpp_builtins): Call functions from cppbuiltin.c instead
970 of duplicating code.
971
92902b1b
IS
9722010-09-30 Iain Sandoe <iains@gcc.gnu.org>
973
974 * c-common.c: Add two new entries for @optional
975 and @required keywords.
976
977 merge from FSF 'apple/trunk' branch.
978 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
979
980 Radar 4386773
981 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
982 objective-c keywords.
983 (objc_set_method_opt): New declaration.
984 * stub-objc.c (objc_set_method_opt): New stub.
985
46625112
JM
9862010-09-30 Joseph Myers <joseph@codesourcery.com>
987
988 * c-common.c (handle_optimize_attribute): Pass &global_options to
989 cl_optimization_save and cl_optimization_restore.
990 * c-opts.c (c_common_handle_option): Pass &global_options to
991 handle_generated_option.
992 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
993 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
994 &global_options to cl_optimization_restore.
995
49b91f05
NP
9962010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
997
998 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
999 Objective-C/Objective-C++ keywords.
1000
13ed556f 10012010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57
NP
1002
1003 Merge from 'apple/trunk' branch on FSF servers.
1004
1005 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
1006
1007 Radar 4281748
1008 * c-common.h (objc_check_global_decl): New declaration.
1009 * stub-objc.c (objc_check_global_decl): New stub.
1010
f0036cca
JM
10112010-09-29 Joseph Myers <joseph@codesourcery.com>
1012
1013 * c.opt: Don't use VarExists.
1014
e3339d0f
JM
10152010-09-29 Joseph Myers <joseph@codesourcery.com>
1016
1017 * c-common.c (c_cpp_error): Update names of diagnostic_context
1018 members.
1019 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
1020 cl_optimization members.
1021 * c-opts.c (warning_as_error_callback, c_common_handle_option,
1022 sanitize_cpp_opts, finish_options): Update names of cpp_options
1023 members.
1024
1973201f
NP
10252010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1026
1027 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
1028 (objc_is_reserved_word): Removed.
1029 * c-common.c: Updated comments.
1030 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
1031 objc_is_reserved_word.
1032 * stub-objc.c (objc_is_reserved_word): Removed.
1033
f7e71da5
IS
10342010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1035
1036 * c-common.h (objc_add_method_declaration): Adjust prototype to
1037 include attributes.
1038 (objc_start_method_definition): Likewise.
1039 (objc_build_keyword_decl): Likewise.
1040 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
1041 (objc_start_method_definition): Likewise.
1042 (objc_build_keyword_decl): Likewise.
1043
c165dca7
IS
10442010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1045
1046 * c-common.h (objc_start_class_interface): Adjust prototype.
1047 (objc_start_category_interface): Likewise.
1048 (objc_start_protocol): Likewise.
1049 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
1050 (objc_start_class_interface): Likewise.
1051 (objc_start_category_interface): Likewise.
1052
7458026b
ILT
10532010-09-27 Ian Lance Taylor <iant@google.com>
1054
1055 * c-common.c (c_common_attribute_table): Add no_split_stack.
1056 (handle_no_split_stack_attribute): New static function.
1057
b581b85b
NP
10582010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
1059
1060 Merge from 'apple/trunk' branch on FSF servers.
1061
1062 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
1063
1064 Radar 4229905
1065 * c-common.h (objc_have_common_type): New declaration.
1066 * stub-objc.c (objc_have_common_type): New stub.
1067
1068 2005-06-22 Ziemowit Laski <zlaski@apple.com>
1069
1070 Radar 4154928
1071 * c-common.h (objc_common_type): New prototype.
1072 * stub-objc.c (objc_common_type): New stub.
1073
46a4da10
JH
10742010-09-24 Jan Hubicka <jh@suse.cz>
1075
1076 * c-common.c (handle_leaf_attribute): New function.
1077 (struct attribute_spec c_common_att): Add leaf.
1078
e200444e
JM
10792010-09-22 Joseph Myers <joseph@codesourcery.com>
1080
1081 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
1082 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
1083 -dump, -dump=, -imacros, -imacros=, -include, -include=,
1084 -include-barrier, -include-directory, -include-directory=,
1085 -include-directory-after, -include-directory-after=,
1086 -include-prefix, -include-prefix=, -include-with-prefix,
1087 -include-with-prefix=, -include-with-prefix-after,
1088 -include-with-prefix-after=, -include-with-prefix-before,
1089 -include-with-prefix-before=, -no-integrated-cpp,
1090 -no-line-commands, -no-standard-includes, -no-warnings, -output,
1091 -output=, -pedantic, -pedantic-errors, -preprocess,
1092 -print-missing-file-dependencies, -trace-includes, -traditional,
1093 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
1094 -user-dependencies, -verbose, -write-dependencies,
1095 -write-user-dependencies, no-integrated-cpp, traditional): New.
1096
29a80ea6
NP
10972010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1098
1099 PR objc/23710
ac1fc2fc
NP
1100 * c-common.h (objc_start_method_definition): Return bool instead
1101 of void.
1102 * stub-objc.c (objc_start_method_definition): Return bool instead
1103 of void.
1104
11052010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1106
1107 PR objc/25965
1108 * c-common.h (objc_get_interface_ivars): New declaration.
1109 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 1110
de621752
ILT
11112010-09-15 Ian Lance Taylor <iant@google.com>
1112
1113 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 1114 messages. Remove period at end of warning message.
de621752 1115
ba885ec5
NS
11162010-09-09 Nathan Sidwell <nathan@codesourcery.com>
1117
1118 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
1119 (handle_alias_attribute): ... here.
1120 (handle_ifunc_attribute): New.
1121
c5ee1358
MM
11222010-09-06 Mark Mitchell <mark@codesourcery.com>
1123
1124 * c-common.h (do_warn_double_promotion): Declare.
1125 * c-common.c (do_warn_double_promotion): Define.
1126
0a0b3574
MM
11272010-09-05 Mark Mitchell <mark@codesourcery.com>
1128
1129 * c.opt (Wdouble-promotion): New.
1130
d1779886
JM
11312010-09-02 Joseph Myers <joseph@codesourcery.com>
1132
1133 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
1134 fvtable-thunks, fxref): Mark no longer supported in help text.
1135
2d2bd949
JM
11362010-09-02 Joseph Myers <joseph@codesourcery.com>
1137
1138 * c.opt (Wimport, fall-virtual, falt-external-templates,
1139 fdefault-inline, fenum-int-equiv, fexternal-templates,
1140 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
1141 fname-mangling-version-, fnew-abi, fnonnull-objects,
1142 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
1143 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
1144 applicable.
1145 (fhandle-exceptions): Mark with Alias and Warn.
1146 * c-opts.c (c_common_handle_option): Don't handle options marked
1147 as ignored.
1148
5de8299c
JM
11492010-09-02 Joseph Myers <joseph@codesourcery.com>
1150
1151 * c.opt (Wcomments, Werror-implicit-function-declaration,
1152 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
1153 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
1154 aliases.
1155 * c-common.c (option_codes): Use OPT_Wcomment instead of
1156 OPT_Wcomments.
1157 * c-opts.c (warning_as_error_callback, c_common_handle_option):
1158 Don't handle options marked as aliases.
1159
0ceb0201
RG
11602010-08-25 Richard Guenther <rguenther@suse.de>
1161
1162 * c-common.c (c_common_get_alias_set): Remove special
1163 handling for pointers.
1164
ac47786e
NF
11652010-08-20 Nathan Froyd <froydnj@codesourcery.com>
1166
1167 * c-common.c: Use FOR_EACH_VEC_ELT.
1168 * c-gimplify.c: Likewise.
1169 * c-pragma.c: Likewise.
1170
c878765b
JM
11712010-08-16 Joseph Myers <joseph@codesourcery.com>
1172
1173 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
1174 RejectDriver.
1175 (MMDX): Change back to MMD. Mark NoDriverArg instead of
1176 RejectDriver.
1177 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
1178 instead of OPT_MDX and OPT_MMDX.
1179
603349bf
JM
11802010-08-16 Joseph Myers <joseph@codesourcery.com>
1181
1182 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
1183
644fa7ac
JM
11842010-08-12 Joseph Myers <joseph@codesourcery.com>
1185
1186 * c.opt (MD, MMD): Change to MDX and MMDX.
1187 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
1188
481e1176
JM
11892010-08-11 Joseph Myers <joseph@codesourcery.com>
1190
1191 * c-opts.c (c_common_handle_option): Call handle_generated_option
1192 instead of handle_option.
1193
ac8dc9f7
NF
11942010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1195
1196 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
1197 (maybe_apply_renaming_pragma): Delete unneeded declarations.
1198
4f8c876d
NF
11992010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1200
1201 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
1202 (pending_redefine_extname): Change type to a VEC.
1203 (add_to_renaming_pragma_list): Update for new type of
1204 pending_redefine_extname.
ac8dc9f7 1205 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 1206
3b0c690e
AC
12072010-08-04 Arnaud Charlet <charlet@adacore.com>
1208
1209 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
1210 visited.
1211 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
1212 decide whether a type has already been declared/seen.
1213 Do not go to the original type.
1214 (dump_nested_types): New parameter forward.
1215 Generate forward declaration if needed and mark type as visited.
1216 (print_ada_declaration): Call dump_nested_types if not already done.
1217 Mark types as visited.
1218
1890bccc
JM
12192010-08-03 Joseph Myers <joseph@codesourcery.com>
1220
1221 * c.opt (-print-pch-checksum): Remove option.
1222 * c-opts.c (c_common_handle_option): Don't handle
1223 OPT_print_pch_checksum.
1224
5f20c657
JM
12252010-07-27 Joseph Myers <joseph@codesourcery.com>
1226
1227 * c-common.h (c_common_handle_option): Update prototype and return
1228 value type.
1229 * c-opts.c (c_common_handle_option): Update prototype and return
1230 value type. Update calls to handle_option and
1231 enable_warning_as_error.
1232
f551f80c
JJ
12332010-07-27 Jakub Jelinek <jakub@redhat.com>
1234
1235 PR c/45079
1236 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
1237
61ff2bdc
JM
12382010-07-27 Joseph Myers <joseph@codesourcery.com>
1239
1240 * c-common.h (c_common_missing_argument): Remove.
1241 * c-opts.c (c_common_missing_argument): Remove.
1242 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
1243 idirafter, imacros, include, isysroot, isystem, iquote): Add
1244 MissingArgError.
1245 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
1246
7a9bf9a4
JM
12472010-07-27 Joseph Myers <joseph@codesourcery.com>
1248
1249 * c-common.h (c_common_option_lang_mask,
1250 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
1251 New.
1252 (c_common_init_options): Update prototype.
1253 * c-opts.c (c_common_option_lang_mask): New.
1254 (c_common_initialize_diagnostics): Split out of
1255 c_common_init_options.
1256 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
1257 New.
1258 (c_common_init_options): Update prototype. Use decoded options in
1259 search for -lang-asm.
1260
910ad8de
NF
12612010-07-15 Nathan Froyd <froydnj@codesourcery.com>
1262
1263 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
1264 * c-format.c: Likewise.
1265
718f9c0f
MLI
12662010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
1267
1268 * c-common.h: Include diagnostic-core.h. Error if already
1269 included.
1270 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
1271
4d451982
MLI
12722010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1273
1274 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
1275 Do not include expr.h
1276 (vector_mode_valid_p): Move here.
1277
119fe915
SB
12782010-06-21 DJ Delorie <dj@redhat.com>
1279
1280 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
1281 allow these pragmas anywhere.
1282
12832010-06-14 Jakub Jelinek <jakub@redhat.com>
1284
1285 PR bootstrap/44509
1286 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
1287 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
1288 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
1289 ggc_strdup instead of xstrdup.
1290
12912010-06-10 Jakub Jelinek <jakub@redhat.com>
1292
1293 * c-cppbuiltin.c: Include cpp-id-data.h.
1294 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
1295 (lazy_hex_fp_value): New function.
1296 (builtin_define_with_hex_fp_value): Provide definitions lazily.
1297
6662d794
MLI
12982010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1299
1300 * c-gimplify.c: Do not include tree-flow.h
1301
38f8b050
JR
13022010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
1303
1304 PR other/44034
1305 * c-common.c: Rename targetm member:
1306 targetm.enum_va_list -> targetm.enum_va_list_p
1307
9589f23e
AS
13082010-06-28 Anatoly Sokolov <aesok@post.ru>
1309
1310 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
1311
3b06d379
SB
13122010-06-28 Steven Bosscher <steven@gcc.gnu.org>
1313
1314 * c-cppbuiltin.c: Do not include except.h.
1315
d166d4c3
AK
13162010-06-24 Andi Kleen <ak@linux.intel.com>
1317
1318 * c-common.c (warn_for_omitted_condop): New.
1319 * c-common.h (warn_for_omitted_condop): Add prototype.
1320
70cb8be6
JM
13212010-06-21 Joseph Myers <joseph@codesourcery.com>
1322
1323 * c.opt (lang-objc): Remove.
1324 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
1325
a4c97feb
JR
13262010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
1327
1328 * c-opts.c: Include "tm_p.h".
1329
6e2f1956
JM
13302010-06-20 Joseph Myers <joseph@codesourcery.com>
1331
1332 * c-common.c (parse_optimize_options): Update call to
1333 decode_options.
1334
bc87224e
NF
13352010-06-18 Nathan Froyd <froydnj@codesourcery.com>
1336
1337 * c-common.c (record_types_used_by_current_var_decl): Adjust for
1338 new type of types_used_by_cur_var_decl.
1339
b49cf425
JR
13402010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
1341
1342 PR bootstrap/44512
1343 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
1344 for C++ standard compliance.
1345
59f9c2ed
JM
13462010-06-16 Jason Merrill <jason@redhat.com>
1347
1348 * c.opt: Add -Wnoexcept.
1349
33766b66
RG
13502010-06-16 Richard Guenther <rguenther@suse.de>
1351
1352 PR c/44555
1353 * c-common.c (c_common_truthvalue_conversion): Remove
1354 premature and wrong optimization concering ADDR_EXPRs.
1355
eff7e30c
AC
13562010-06-15 Arnaud Charlet <charlet@adacore.com>
1357
1358 * c-ada-spec.c (dump_sloc): Remove column info.
1359 (is_simple_enum): New function.
1360 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
1361 enum types when relevant.
1362
6312e84d
MLI
13632010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1364
1365 * c-common.c (conversion_warning): Warn at expression
1366 location.
1367
1cb42611
JM
13682010-06-10 Joseph Myers <joseph@codesourcery.com>
1369
1370 * c-opts.c (c_common_handle_option): Don't handle
1371 OPT_fshow_column.
1372
a9429e29
LB
13732010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1374
1375 * c-pragma.c (push_alignment): Use typed GC allocation.
1376 (handle_pragma_push_options): Likewise.
1377
1378 * c-common.c (parse_optimize_options): Likewise.
1379
1380 * c-common.h (struct sorted_fields_type): Add variable_size GTY
1381 option.
1382
5498f011
JM
13832010-06-07 Joseph Myers <joseph@codesourcery.com>
1384
1385 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
1386 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1387 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1388 flag_signed_bitfields, warn_strict_null_sentinel,
1389 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
1390 flag_gen_declaration, flag_no_gnu_keywords,
1391 flag_implement_inlines, flag_implicit_templates,
1392 flag_implicit_inline_templates, flag_optional_diags,
1393 flag_elide_constructors, flag_default_inline, flag_rtti,
1394 flag_conserve_space, flag_access_control, flag_check_new,
1395 flag_new_for_scope, flag_weak, flag_working_directory,
1396 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
1397 flag_enforce_eh_specs, flag_threadsafe_statics,
1398 flag_pretty_templates): Remove.
1399 * c-common.h (flag_preprocess_only, flag_nil_receivers,
1400 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
1401 flag_replace_objc_classes, flag_undef, flag_no_builtin,
1402 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1403 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1404 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
1405 flag_no_gnu_keywords, flag_implement_inlines,
1406 flag_implicit_templates, flag_implicit_inline_templates,
1407 flag_optional_diags, flag_elide_constructors, flag_default_inline,
1408 flag_rtti, flag_conserve_space, flag_access_control,
1409 flag_check_new, flag_new_for_scope, flag_weak,
1410 flag_working_directory, flag_use_cxa_atexit,
1411 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
1412 flag_threadsafe_statics, flag_pretty_templates,
1413 warn_strict_null_sentinel): Remove.
1414 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
1415 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
1416 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
1417 fimplicit-inline-templates, fimplicit-templates,
1418 flax-vector-conversions, fms-extensions, fnil-receivers,
1419 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
1420 frtti, fshort-double, fshort-enums, fshort-wchar,
1421 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
1422 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
1423 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
1424 gen-decls, undef): Use Var.
1425 (fdefault-inline, foptional-diags): Document as doing nothing.
1426 * c-opts.c (c_common_handle_option): Remove cases for options now
1427 using Var. Mark ignored options as such.
1428
39dabefd
SB
14292010-06-05 Steven Bosscher <steven@gcc.gnu.org>
1430
1431 * c-common.c: Moved to here from parent directory.
1432 * c-common.def: Likewise.
1433 * c-common.h: Likewise.
1434 * c-cppbuiltin.c: Likewise.
1435 * c-dump.c: Likewise.
1436 * c-format.c: Likewise.
1437 * c-format.h : Likewise.
1438 * c-gimplify.c: Likewise.
1439 * c-lex.c: Likewise.
1440 * c-omp.c: Likewise.
1441 * c.opt: Likewise.
1442 * c-opts.c: Likewise.
1443 * c-pch.c: Likewise.
1444 * c-ppoutput.c: Likewise.
1445 * c-pragma.c: Likewise.
1446 * c-pragma.h: Likewise.
1447 * c-pretty-print.c: Likewise.
1448 * c-pretty-print.h: Likewise.
1449 * c-semantics.c: Likewise.
1450 * stub-objc.c: Likewise.
1451
1452 * c-common.c: Include gt-c-family-c-common.h.
1453 * c-pragma.c: Include gt-c-family-c-pragma.h.
1454\f
04695783 1455Copyright (C) 2010, 2011 Free Software Foundation, Inc.
39dabefd
SB
1456
1457Copying and distribution of this file, with or without modification,
1458are permitted in any medium without royalty provided the copyright
1459notice and this notice are preserved.
This page took 0.641758 seconds and 5 git commands to generate.