]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
Support -fdebug-cpp option
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
847e697a
TT
12011-10-15 Tom Tromey <tromey@redhat.com>
2 Dodji Seketeli <dodji@redhat.com>
3
4 * c.opt (fdebug-cpp): New option.
5 * c-opts.c (c_common_handle_option): Handle the option.
6 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
7 output stream in parameter. Factorized from ...
8 (maybe_print_line): ... this. Dump location debug information when
9 -fdebug-cpp is in effect.
10 (print_line_1): New static function. Takes an output stream in
11 parameter. Factorized from ...
12 (print_line): ... here. Dump location information when -fdebug-cpp
13 is in effect.
14 (scan_translation_unit): Dump location information when
15 -fdebug-cpp is in effect.
16
92582b75
TT
172011-10-15 Tom Tromey <tromey@redhat.com>
18 Dodji Seketeli <dodji@redhat.com>
19
20 * c.opt (ftrack-macro-expansion): New option. Handle it with and
21 without argument.
22 * c-opts.c (c_common_handle_option)<case
23 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
24 cases. Handle -ftrack-macro-expansion with and without argument.
25
46427374
TT
262011-10-15 Tom Tromey <tromey@redhat.com>
27 Dodji Seketeli <dodji@redhat.com>
28
29 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
30 (print_line, cb_define, do_line_change): Adjust to avoid touching
31 the internals of struct line_map. Use the public API instead.
32 * c-pch.c (c_common_read_pch): Likewise.
33 * c-lex.c (fe_file_change): Likewise.
34
e79983f4
MM
352011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
36
37 * c-common.c (def_builtin_1): Delete old interface with two
38 parallel arrays to hold standard builtin declarations, and replace
39 it with a function based interface that can support creating
40 builtins on the fly in the future. Change all uses, and poison
41 the old names. Make sure 0 is not a legitimate builtin index.
42 * c-omp.c (c_finish_omp_barrier): Ditto.
43 (c_finish_omp_taskwait): Ditto.
44 (c_finish_omp_flush): Ditto.
45
6637388f
TG
462011-10-11 Tristan Gingold <gingold@adacore.com>
47
48 * c.opt: (fallow-parameterless-variadic-functions): New.
49
3797cb21
DS
502011-09-08 Dodji Seketeli <dodji@redhat.com>
51
52 PR c++/33255 - Support -Wunused-local-typedefs warning
53 * c-common.h (struct c_language_function::local_typedefs): New
54 field.
55 (record_locally_defined_typedef, maybe_record_typedef_use)
56 (maybe_warn_unused_local_typedefs): Declare new functions.
57 * c-common.c (record_locally_defined_typedef)
58 (maybe_record_typedef_use)
59 (maybe_warn_unused_local_typedefs): Define new functions.
60 * c.opt: Declare new -Wunused-local-typedefs flag.
61
693ddb1b
EB
622011-09-06 Eric Botcazou <ebotcazou@adacore.com>
63
64 PR middle-end/50266
65 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
66 computations.
67
830c740f
RG
682011-09-05 Richard Guenther <rguenther@suse.de>
69
70 * c-common.c (complete_array_type): Use ssize_int (-1) instead
71 of integer_minus_one_node for empty array upper bounds.
72
892a371f
DS
732011-08-28 Dodji Seketeli <dodji@redhat.com>
74
75 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
76 it's the first time it's being called on this main TU.
77
0e3fdb48
RB
782011-08-24 Richard Guenther <rguenther@suse.de>
79
80 PR c/49396
81 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
82
832011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
84
85 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
86 defined in cpp_init_builtins and c_cpp_builtins.
87
d4a83c10
JM
882011-08-19 Joseph Myers <joseph@codesourcery.com>
89
90 * c-common.c (c_common_reswords): Add __builtin_complex.
91 * c-common.h (RID_BUILTIN_COMPLEX): New.
92
bbceee64
JM
932011-08-18 Joseph Myers <joseph@codesourcery.com>
94
95 * c-common.c (c_common_reswords): Add _Noreturn.
96 (keyword_is_function_specifier): Handle RID_NORETURN.
97 * c-common.h (RID_NORETURN): New.
98
0e3a99ae
AS
992011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
100
101 * c-common.c (unsafe_conversion_p): New function. Check if it is
102 unsafe to convert an expression to the type.
103 (conversion_warning): Adjust, use unsafe_conversion_p.
104 * c-common.h (unsafe_conversion_p): New function declaration.
105
20906c66
JJ
1062011-08-02 Jakub Jelinek <jakub@redhat.com>
107
108 * c-common.h (c_finish_omp_atomic): Adjust prototype.
109 (c_finish_omp_taskyield): New prototype.
110 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
111 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
112 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
113 or RHS1 have side-effects, evaluate those too in the right spot,
114 if it is a decl and LHS is also a decl, error out if they
115 aren't the same.
116 (c_finish_omp_taskyield): New function.
117 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
118 * c-pragma.c (omp_pragmas): Add taskyield.
119 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
120 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
121 PRAGMA_OMP_CLAUSE_MERGEABLE.
122
770e5a2e
DS
1232011-07-25 Dodji Seketeli <dodji@redhat.com>
124
125 * c-common.h (set_underlying_type): Remove parm name from
126 declaration.
127
1baae426
RG
1282011-07-25 Romain Geissler <romain.geissler@gmail.com>
129
130 * c-pretty-print.h: Search c-common.h in c-family.
131
fcb21722
JM
1322011-07-22 Jason Merrill <jason@redhat.com>
133
76f86d00
JM
134 PR c++/49793
135 * c.opt (Wnarrowing): New.
136
3a636414
JM
137 PR c++/30112
138 * c-common.h: Declare c_linkage_bindings.
139 * c-pragma.c (handle_pragma_redefine_extname): Use it.
140
fcb21722
JM
141 PR c++/49813
142 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
143 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
144 as flag_isoc99 for 'restrict'.
145 (pp_c_specifier_qualifier_list): Likewise for _Complex.
146
02614448
ILT
1472011-07-21 Ian Lance Taylor <iant@google.com>
148
149 PR middle-end/49705
150 * c-common.c (c_disable_warnings): New static function.
151 (c_enable_warnings): New static function.
152 (c_fully_fold_internal): Change local unused_p to bool. Call
153 c_disable_warnings and c_enable_warnings rather than change
154 c_inhibit_evaluation_warnings.
155
34429675
JM
1562011-07-20 Jason Merrill <jason@redhat.com>
157
158 PR c++/6709 (DR 743)
159 PR c++/42603 (DR 950)
160 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
161 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
162 (CPP_DECLTYPE): New.
163 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
164
5d49b6a7
RG
1652011-07-19 Richard Guenther <rguenther@suse.de>
166
167 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
168 * c-omp.c (c_finish_omp_for): Likewise.
169
e84a58ff
EB
1702011-07-12 Eric Botcazou <ebotcazou@adacore.com>
171
172 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
173 body on the next line.
174
329af3c7
JM
1752011-07-08 Jason Merrill <jason@redhat.com>
176
4063e61b
JM
177 PR c++/45437
178 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
179
329af3c7
JM
180 PR c++/49673
181 * c-common.c (c_apply_type_quals_to_decl): Don't check
182 TYPE_NEEDS_CONSTRUCTING.
183
1a072294
RG
1842011-07-06 Richard Guenther <rguenther@suse.de>
185
186 * c-common.c (c_common_nodes_and_builtins):
187 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
188
fce5dddd
RG
1892011-07-05 Richard Guenther <rguenther@suse.de>
190
191 * c-common.c (c_common_nodes_and_builtins): Build all common
192 tree nodes first.
193
45d439ac
JJ
1942011-06-27 Jakub Jelinek <jakub@redhat.com>
195
56300785
JJ
196 * c-common.h (c_tree_chain_next): New static inline function.
197
45d439ac
JJ
198 * c-common.c (check_builtin_function_arguments): Handle
199 BUILT_IN_ASSUME_ALIGNED.
200
e0a8ecf2
AM
2012011-06-21 Andrew MacLeod <amacleod@redhat.com>
202
203 * c-common.c: Add sync_ or SYNC__ to builtin names.
204 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
205
2062011-06-20 Pierre Vittet <piervit@pvittet.com>
207
208 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
209 handler.
210 (gen_pragma_handler): New union.
211 (internal_pragma_handler): New type.
212 (c_register_pragma_with_data)
213 (c_register_pragma_with_expansion_and_data): New functions.
214
215 * c-pragma.c (registered_pragmas, c_register_pragma_1)
216 (c_register_pragma, c_register_pragma_with_expansion)
217 (c_invoke_pragma_handler): Changed to work with
218 internal_pragma_handler.
219 (c_register_pragma_with_data)
220 (c_register_pragma_with_expansion_and_data): New functions.
221
677f3fa8
JM
2222011-06-14 Joseph Myers <joseph@codesourcery.com>
223
224 * c-common.c: Include common/common-target.h.
225 (handle_section_attribute): Use
226 targetm_common.have_named_sections.
227 * c-cppbuiltin.c: Include common/common-target.h.
228 (c_cpp_builtins): Use targetm_common.except_unwind_info.
229
d7fc8c14
RG
2302011-06-10 Richard Guenther <rguenther@suse.de>
231
232 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
233 to print a IDENTIFIER_NODE.
234
10e48e39
RO
2352011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
236 Joseph Myers <joseph@codesourcery.com>
237
238 * c.opt (fbuilding-libgcc): New option.
239 * c-cppbuiltin.c (c_cpp_builtins): Define
240 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
241
6976ae51
JM
2422011-06-07 Jason Merrill <jason@redhat.com>
243
3ff60975
JM
244 * c-common.c (max_tinst_depth): Lower default to 900.
245
6976ae51
JM
246 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
247
009db074
RG
2482011-06-07 Richard Guenther <rguenther@suse.de>
249
250 * c-common.c (c_common_nodes_and_builtins): Do not set
251 size_type_node or call set_sizetype.
252
b4592b92
DS
2532011-06-07 Dodji Seketeli <dodji@redhat.com>
254
255 PR debug/49130
256 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
257 type when using pointer comparison to compare types.
258
014ab419
JW
2592011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
260
261 * c.opt: Add -Wdelete-non-virtual-dtor.
262 * c-opts.c (c_common_handle_option): Include it in -Wall.
263
4f60111f
NF
2642011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
265
266 PR bootstrap/49190
267
268 Revert:
269 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
270
271 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
272 not tree_common.
273
4cc4f2f4
JJ
2742011-05-27 Jakub Jelinek <jakub@redhat.com>
275
276 PR c++/49165
277 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
278 C++ don't call c_common_truthvalue_conversion on void type arms.
279
38e01f9e
NF
2802011-05-27 Nathan Froyd <froydnj@codesourcery.com>
281
282 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
283 (stmt_list_stack): Define.
284 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
285 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
286
92e948a8
NF
2872011-05-26 Nathan Froyd <froydnj@codesourcery.com>
288
289 * c-common.c (warning_candidate_p): Check for BLOCKs.
290
a2fc3e63
NF
2912011-05-26 Nathan Froyd <froydnj@codesourcery.com>
292
293 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
294 not tree_common.
295
0957c029
JJ
2962011-05-25 Jakub Jelinek <jakub@redhat.com>
297
298 * c-common.c (def_fn_type): Remove extra va_end.
299
828fb3ba
JM
3002011-05-23 Jason Merrill <jason@redhat.com>
301
302 PR c++/48106
303 * c-common.c (c_common_get_narrower): New.
304 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
305
dde05067
NF
3062011-05-23 Nathan Froyd <froydnj@codesourcery.com>
307
308 * c-common.h (check_function_arguments): Tweak prototype of
309 check_function_arguments.
310 * c-common.c (check_function_arguments): Likewise. Adjust
311 calls to check_function_nonnull, check_function_format, and
312 check_function_sentinel.
313 (check_function_sentinel): Take a FUNCTION_TYPE rather than
314 separate attributes and typelist arguments. Use
315 FOREACH_FUNCTION_ARGS to iterate over argument types.
316
3c0d13bf
PC
3172011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
318
319 * c-common.c (c_common_reswords): Reorder.
320 * c-common.h (rid): Likewise.
321
8242dd04
NF
3222011-05-10 Nathan Froyd <froydnj@codesourcery.com>
323
324 * c-common.c (def_fn_type): Don't call build_function_type, call
325 build_function_type_array or build_varargs_function_type_array
326 instead.
327 (c_common_nodes_and_builtins): Likewise.
328
3d528853
NF
3292011-05-05 Nathan Froyd <froydnj@codesourcery.com>
330
331 * c-common.c (c_add_case_label): Omit the loc argument to
332 build_case_label.
333 * c-common.h (build_case_label): Remove.
334 * c-semantics.c (build_case_label): Remove.
335
a04a722b
JM
3362011-05-05 Joseph Myers <joseph@codesourcery.com>
337
338 * c-objc.h (objc_start_method_definition): Update prototype.
339 * stub-objc.c (objc_start_method_definition): Add extra parameter.
340
e19a18d4
NF
3412011-05-04 Nathan Froyd <froydnj@codesourcery.com>
342
343 * c-common.c (check_main_parameter_types): Reindent. Don't use
344 TYPE_ARG_TYPES directly.
345 (handle_nonnull_attribute): Likewise.
346 (sync_resolve_params): Likewise.
347 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
348 to check_format_string.
349 (handle_format_attribute): Likewise.
350 (check_format_string): Take a function type to examine instead of
351 a type list. Use a function_arg_iterator to step through argument
352 types.
353
c62c040f
RG
3542011-05-04 Richard Guenther <rguenther@suse.de>
355
356 * c-common.c (fix_string_type): Use size_int for index type bounds.
357 (start_fname_decls): Do not pass NULL to build_int_cst.
358 (c_init_attributes): Likewise.
359 * c-lex.c (c_lex_with_flags): Likewise.
360
c12ff9d8
JM
3612011-04-27 Jason Merrill <jason@redhat.com>
362
363 * c-common.c (make_tree_vector_from_list): New.
364 * c-common.h: Declare it.
365
304dfbe3
RG
3662011-04-26 Richard Guenther <rguenther@suse.de>
367
368 PR preprocessor/48248
369 * c-ppoutput.c (maybe_print_line): Always optimize newlines
370 for output size with -P.
371
3c0d13bf
PC
3722011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
373
374 * c-common.c (struct c_common_resword): Add __underlying_type.
375 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
376
04695783
JM
3772011-04-20 Jim Meyering <meyering@redhat.com>
378
379 * c-format.c (init_dollar_format_checking): Remove useless
380 if-before-free.
381
0dc33c3c
NP
3822011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
383
384 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 385 (objc_detect_field_duplicates): New.
0dc33c3c 386 * stub-objc.c: Likewise.
3c0d13bf 387
c59633d9
NP
3882011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
389
390 * stub-objc.c (objc_declare_protocols): Renamed to
391 objc_declare_protocol.
392 * c-objc.h: Likewise.
3c0d13bf 393
32dabdaf
NP
3942011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
395
396 * stub-objc.c (objc_declare_class): Updated argument name.
397
81f653d6
NF
3982011-04-12 Nathan Froyd <froydnj@codesourcery.com>
399
400 * c-common.h (c_common_init_ts): Declare.
401 * c-common.c (c_common_init_ts): Define.
402
eb345401
NP
4032011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
404
405 * c-objc.h (objc_build_message_expr): Updated prototype.
406 * stub-objc.c (objc_build_message_expr): Likewise.
407
a358e188
MJ
4082011-04-12 Martin Jambor <mjambor@suse.cz>
409
410 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
411 of cgraph_node.
412
e6313a78
RG
4132011-04-11 Richard Guenther <rguenther@suse.de>
414
415 * c-common.c (complete_array_type): Build a range type of
416 proper type.
417
dcf0c47e
NF
4182011-04-08 Nathan Froyd <froydnj@codesourcery.com>
419
420 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
421 (handle_type_generic_attribute): Likewise.
422
1ee44b26
JM
4232011-04-07 Jason Merrill <jason@redhat.com>
424
425 PR c++/48450
426 * c-common.c (c_common_truthvalue_conversion): Don't ignore
427 conversion from C++0x scoped enum.
428
acce4e77
JM
4292011-04-06 Joseph Myers <joseph@codesourcery.com>
430
431 * c-target-def.h: New file.
432 * c-target.def: New file.
433 * c-target.h: New file.
434 * c-common.c (targetcm): Don't define here.
435 * c-common.h (default_handle_c_option): Declare.
436 * c-format.c: Include c-target.h instead of target.h.
437 * c-opts.c: Include c-target.h instead of target.h. Explicitly
438 include tm.h.
439 (default_handle_c_option): Move from targhooks.c.
440
e2eefb55
JJ
4412011-03-29 Jakub Jelinek <jakub@redhat.com>
442
443 PR preprocessor/48248
444 * c-ppoutput.c (print): Add src_file field.
445 (init_pp_output): Initialize it.
446 (maybe_print_line): Don't optimize by adding up to 8 newlines
447 if map->to_file and print.src_file are different file.
448 (print_line): Update print.src_file.
449
ba78087b
KT
4502011-03-25 Kai Tietz <ktietz@redhat.com>
451
452 * c-ada-spec.c (compare_comment): Use filename_cmp
453 instead of strcmp for filename.
454
0edf1bb2
JL
4552011-03-25 Jeff Law <law@redhat.com>
456
457 * c-family/c-common.c (def_fn_type): Add missing va_end.
458
c7dc8804
JM
4592011-03-25 Jason Merrill <jason@redhat.com>
460
461 * c.opt: Add -std=c++03.
462
d1d879b1
EB
4632011-03-22 Eric Botcazou <ebotcazou@adacore.com>
464
465 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
466
62d784f7
KT
4672011-03-17 Kai Tietz
468
469 PR target/12171
5050afdf
KT
470 * c-pretty-print.c (pp_c_specifier_qualifier_list):
471 Display allowed attributes for function pointer types.
472 (pp_c_attributes_display): New function to display
473 attributes having affects_type_identity flag set to true.
474 * c-pretty-print.h (pp_c_attributes_display): New prototype.
475
62d784f7
KT
476 * c-common.c (c_common_attribute_table):
477 Add new element.
478 (c_common_format_attribute_table): Likewise.
479
82d37118
JM
4802011-03-18 Jason Merrill <jason@redhat.com>
481
49a000c3
JM
482 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
483 * c-common.h: Don't declare it here.
484 * c-common.c: Or define it here.
485 * c-opts.c (c_common_handle_option): Or set it here.
486
82d37118
JM
487 PR c++/35315
488 * c-common.c (handle_transparent_union_attribute): Don't
489 make a duplicate type in C++.
490
17bc631c
JM
4912011-03-15 Jason Merrill <jason@redhat.com>
492
493 * c-common.c (max_constexpr_depth): New.
494 * c-common.h: Declare it.
495 * c-opts.c (c_common_handle_option): Set it.
496 * c.opt (fconstexpr-depth): New option.
497
1b9b91a6
JM
4982011-03-11 Jason Merrill <jason@redhat.com>
499
f231b5ff
JM
500 * c-common.c (attribute_takes_identifier_p): Add missing const.
501
1b9b91a6
JM
502 PR c++/46803
503 * c-common.c (attribute_takes_identifier_p): Assume that an
504 unknown attribute takes an identifier.
505
a19e4d44
NF
5062011-03-07 Nathan Froyd <froydnj@codesourcery.com>
507
508 PR c/47786
509 * c-common.c (c_type_hash): Call list_length instead of iterating
510 through DECL_CHAIN. Rename 'i' to 'n_elements'.
511
982d62f6
JJ
5122011-02-19 Jakub Jelinek <jakub@redhat.com>
513
514 PR c/47809
515 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
516
0a256240
NP
5172011-02-17 Iain Sandoe <iains@gcc.gnu.org>
518
519 * c.opt (fobjc-abi-version=) New.
520 (fobjc-nilcheck): New.
521
ba9e6dd5
NF
5222011-02-03 Nathan Froyd <froydnj@codesourcery.com>
523
524 PR c++/46890
525 * c-common.h (keyword_is_decl_specifier): Declare.
526 * c-common.c (keyword_is_decl_specifier): Define.
527 (keyword_is_function_specifier): New function.
528
7273813a
JJ
5292011-01-26 Jakub Jelinek <jakub@redhat.com>
530
531 PR c/47473
532 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
533 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
534 REAL_TYPE.
535
908ef79b
AC
5362011-01-26 Arnaud Charlet <charlet@adacore.com>
537
538 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
539
237e9384
JJ
5402011-01-26 Jakub Jelinek <jakub@redhat.com>
541
542 PR pch/47430
543 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
544 after init_c_lex if pch_file is set.
545
47ea1edf
DK
5462011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
547
d4dba752 548 PR c++/43601
47ea1edf
DK
549 * c.opt (-fkeep-inline-dllexport): New switch.
550
2aa9c6ae
RG
5512011-01-12 Richard Guenther <rguenther@suse.de>
552
553 PR middle-end/32511
554 * c-common.c (handle_weak_attribute): Warn instead of error
555 on declaring an inline function weak.
556
7bd11157
TT
5572011-01-05 Tom Tromey <tromey@redhat.com>
558
559 * c-common.h (lvalue_error): Update.
560 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
561 not error.
562
0e66e494
NP
5632010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
564
b4f588c4
NP
565 PR objc/47075
566 * c-objc.h (objc_finish_message_expr): Added argument to
567 prototype.
568
f4da8dce
NF
5692010-12-22 Nathan Froyd <froydnj@codesourcery.com>
570
571 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
572 Use prototype_p.
573
46270f14
NP
5742010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
575
576 * c-objc.h (objc_maybe_warn_exceptions): New.
577 * stub-objc.c (objc_maybe_warn_exceptions): New.
578
4816c593
NF
5792010-12-10 Nathan Froyd <froydnj@codesourcery.com>
580
581 * c-common.h (readonly_error): Declare.
582 * c-common.c (readonly_error): Define.
583
7a6daeb0
NF
5842010-12-09 Nathan Froyd <froydnj@codesourcery.com>
585
586 * c-common.h (invalid_indirection_error): Declare.
587 * c-common.c (invalid_indirection_error): Define.
588
892f6119
RG
5892010-12-03 Richard Guenther <rguenther@suse.de>
590
591 PR c/46745
592 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
593 (pp_c_unary_expression): Likewise.
594 (pp_c_expression): Likewise.
595
6c39e757
NP
5962010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
597
598 * c-common.h (objc_finish_function): New.
599 (objc_non_volatilized_type): Removed.
600 (objc_type_quals_match): Removed.
601 * stub-objc.c (objc_finish_function): New.
602 (objc_non_volatilized_type): Removed.
603 (objc_type_quals_match): Removed.
604
7c475d11
JM
6052010-11-30 Joseph Myers <joseph@codesourcery.com>
606
607 * c-common.h (parse_optimize_options): Declare.
608 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
609 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
610
71f3e391
JM
6112010-11-29 Joseph Myers <joseph@codesourcery.com>
612
613 * c-opts.c (check_deps_environment_vars): Use getenv instead of
614 GET_ENVIRONMENT.
615 * c-pch.c (O_BINARY): Don't define here.
616 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
617
d5fabb58
JM
6182010-11-25 Joseph Myers <joseph@codesourcery.com>
619
620 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
621 targetm.except_unwind_info.
622
299404a1
JM
6232010-11-23 Joseph Myers <joseph@codesourcery.com>
624
625 * c-opts.c (c_common_handle_option): Pass location to
626 set_struct_debug_option.
627
c98cd5bf
JM
6282010-11-23 Joseph Myers <joseph@codesourcery.com>
629
630 * c-common.c (visibility_options): Move from ../opts.c.
631 * c-common.h (struct visibility_flags, visibility_options):
632 Declare here.
633 * c-opts.c (finish_options): Rename to c_finish_options.
634 (c_common_init): Update call to finish_options.
635
a9546771
NP
6362010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
637
638 PR objc/34033
639 * c-lex.c (lex_string): Check that each string in an Objective-C
640 string concat sequence starts with either one or zero '@', and
641 that there are no spurious '@' signs at the end.
642
24a57808
JM
6432010-11-20 Joseph Myers <joseph@codesourcery.com>
644
645 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
646 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
647 HANDLE_PRAGMA_VISIBILITY.
648 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
649 HANDLE_PRAGMA_VISIBILITY): Don't define.
650 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
651
a9aa2c3a
NF
6522010-11-20 Nathan Froyd <froydnj@codesourcery.com>
653
654 PR c++/16189
655 PR c++/36888
656 PR c++/45331
657 * c-common.h (keyword_begins_type_specifier): Declare.
658 (keyword_is_storage_class_specifier): Declare.
659 (keyword_is_type_qualifier): Declare.
660 * c-common.c (keyword_begins_type_specifier): New function.
661 (keyword_is_storage_class_specifier): New function.
662 (keyword_is_type_qualifier): Declare.
663
5386338c
JM
6642010-11-19 Joseph Myers <joseph@codesourcery.com>
665
666 PR c/46547
667 * c-common.c (in_late_binary_op): Define.
668 (c_common_truthvalue_conversion): Check in_late_binary_op before
669 calling c_save_expr.
670 * c-common.h (in_late_binary_op): Declare.
671
69ccdddb
JM
6722010-11-19 Joseph Myers <joseph@codesourcery.com>
673
674 * c-opts.c (c_common_handle_option): Update calls to
675 set_struct_debug_option.
676
6b192a09
NP
6772010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
678
679 * c-common.h (objc_declare_protocols): Added additional argument.
680 * stub-objc.c (objc_declare_protocol): Same change.
681
fb52b50a
NF
6822010-11-18 Nathan Froyd <froydnj@codesourcery.com>
683
684 PR c/33193
685 * c-common.h (build_real_imag_expr): Declare.
686 * c-semantics.c (build_real_imag_expr): Define.
687
b37421c6
JM
6882010-11-17 Joseph Myers <joseph@codesourcery.com>
689
690 * c-opts.c (c_common_parse_file): Take no arguments.
691 * c-common.h (c_common_parse_file): Update prototype.
692
07078664
JJ
6932010-11-16 Jakub Jelinek <jakub@redhat.com>
694
695 PR c++/46401
696 * c-common.c (warning_candidate_p): Don't track non-const calls
697 or STRING_CSTs.
698
c6a13190
ILT
6992010-11-15 Ian Lance Taylor <iant@google.com>
700
701 * c-lex.c (init_c_lex): Set macro debug callbacks if
702 flag_dump_go_spec is set.
703
925e8657
NP
7042010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
705
706 * c-common.h (objc_build_incr_expr_for_property_ref): New.
707 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
708
bb0a9581
NF
7092010-11-15 Nathan Froyd <froydnj@codesourcery.com>
710
711 PR preprocessor/45038
712 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
713 dialects.
714
c5fa0890
JM
7152010-11-12 Joseph Myers <joseph@codesourcery.com>
716
717 * c-common.h (c_family_lang_mask): Declare.
718 * c-opts.c (c_family_lang_mask): Make extern.
719 * c-pragma.c (handle_pragma_diagnostic): Use
720 control_warning_option.
721
a4d8c676
JM
7222010-11-12 Joseph Myers <joseph@codesourcery.com>
723
724 * c-common.c (parse_optimize_options): Update call to
725 decode_options.
726 * c-common.h (c_common_handle_option): Update prototype.
727 * c-opts.c (c_common_handle_option): Take location_t parameter and
728 pass it to other functions.
729
f954bd2c
JM
7302010-11-11 Joseph Myers <joseph@codesourcery.com>
731
732 * c-opts.c (warning_as_error_callback): Remove.
733 (c_common_initialize_diagnostics): Don't call
734 register_warning_as_error_callback.
735 (c_common_handle_option): Handle -Werror=normalized= here.
736
d8a07487
JM
7372010-11-10 Joseph Myers <joseph@codesourcery.com>
738
739 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
740 in diagnostic.
741 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
742 letter.
743 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
744 Remove trailing '.' from diagnostics.
745 * c.opt (Wwrite-strings_: Avoid '`' in help text.
746
d5478783
JM
7472010-11-10 Joseph Myers <joseph@codesourcery.com>
748
749 * c-common.c (parse_optimize_options): Pass global_dc to
750 decode_options.
751 * c-opts.c (c_common_handle_option): Pass &global_options to
752 set_Wstrict_aliasing.
753 * c.opt (v): Don't mark Common or document here.
754
91ebb981
IS
7552010-11-06 Iain Sandoe <iains@gcc.gnu.org>
756
757 PR target/44981
758 * c-format.c (format_type): New type gcc_objc_string_format_type.
759 (valid_stringptr_type_p): New.
760 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
761 (check_format_string): Pass expected type, use
762 valid_stringptr_type_p (), check that the format string types are
763 consistent with the format specification.
764 (decode_format_attr): Warn if NSString is used outside objective-c.
765 (format_types_orig): Add NSString.
766 (format_name): New.
767 (format_flags): New.
768 (check_format_arg): Handle format strings requiring an external parser.
769 first_target_format_type: New variable.
770 (handle_format_attribute): Set up first_target_format_type, pass the
771 expected format arg string type to check_format_string().
772 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
773 * stub-objc.c (objc_string_ref_type_p): New.
774 (objc_check_format_arg): New.
775
bede2adc
NP
7762010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
777
778 Fixed using the Objective-C 2.0 dot-syntax with class names.
779 * c-common.h (objc_build_class_component_ref): New.
780 * stub-objc.c (objc_build_class_component_ref): New.
781
9a179d01
NP
7822010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
783
784 * c.opt (Wproperty-assign-default): New option.
785
22d8d616
NP
7862010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
787
788 Implemented -fobjc-std=objc1 flag.
789 * c.opt (fobjc-std=objc1): New option.
790
2debdb4f
NP
7912010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
792
793 Implemented format and noreturn attributes for Objective-C methods.
794 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
795 attribute for Objective-C methods.
796
ec52b111
JM
7972010-10-31 Jason Merrill <jason@redhat.com>
798
799 * c-common.c (conversion_warning, warn_for_collisions_1): Use
800 EXPR_LOC_OR_HERE.
801
46a88c12
NP
8022010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
803
804 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
805 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
806 (objc_add_property_declaration): Removed arguments for copies and
807 ivar.
808 (objc_build_getter_call): Renamed to
809 objc_maybe_build_component_ref.
810 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
811 (objc_is_property_ref): New.
812 * c-common.c (c_common_reswords): Removed copies and ivar.
813 * stub-objc.c (objc_add_property_declaration): Removed arguments
814 for copies and ivar.
815 (objc_build_getter_call): Renamed to
816 objc_maybe_build_component_ref.
817 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
818 (objc_is_property_ref): New.
819
1e4bf85b
AC
8202010-10-29 Arnaud Charlet <charlet@adacore.com>
821 Matthew Gingell <gingell@adacore.com>
822
823 * c-ada-spec.c (separate_class_package): New function.
824 (pp_ada_tree_identifier): Prefix references to C++ classes with the
825 name of their enclosing package.
826 (print_ada_declaration): Use separate_class_package.
827
81f0bab2
JM
8282010-10-27 Jason Merrill <jason@redhat.com>
829
2b08f2c5
JM
830 * c-common.c (c_common_reswords): Add __is_literal_type.
831 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
832
81f0bab2
JM
833 * c-common.c (check_case_value): Remove special C++ code.
834
200290f2
NP
8352010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
836
837 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
838 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
839 and RID_LAST_PATTR.
840 (objc_add_property_declaration): Added additional arguments.
841 (objc_property_attribute_kind): Removed.
842 (objc_set_property_attr): Removed.
843 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
844 copy and nonatomic.
845 * stub-objc.c (objc_add_property_declaration): Added additional
846 arguments.
847 (objc_set_property_attr): Removed.
848
f614132b
NP
8492010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
850
851 * c-common.h (objc_add_property_variable): Renamed to
852 objc_add_property_declaration. Added location argument.
853 * stub-objc.c (objc_add_property_variable): Same change.
854
b8a18805
NP
8552010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
856
857 * c-common.h (objc_maybe_printable_name): New.
858 * stub-objc.c (objc_maybe_printable_name): New.
859
30cd1c5d
AS
8602010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
861 Andrew Pinski <pinskia@gmail.com>
862
863 * c-common.h (c_common_mark_addressable_vec): Declare.
864 * c-common.c (c_common_mark_addressable_vec): New function.
865
249a82c4
NP
8662010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
867
868 * c-common.h (objc_set_method_type): Removed.
869 (objc_add_method_declaration): Added boolean argument.
870 (objc_start_method_definition): Same change.
871 (objc_build_method_signature): Same change.
872 * stub-objc.c (objc_set_method_type): Removed.
873 (objc_add_method_declaration): Added boolean argument.
874 (objc_start_method_definition): Same change.
875 (objc_build_method_signature): Same change.
876
977e30bc
NP
8772010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
878
879 * c-common.h (finish_file): Removed.
880 (objc_write_global_declarations): New.
881 * c-opts.c (c_common_parse_file): Do not call finish_file.
882 * stub-objc.c (objc_write_global_declarations): New.
883
da57d1b9
NP
8842010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
885
886 Implemented parsing @synthesize and @dynamic for
887 Objective-C/Objective-C++.
888 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
889 (objc_add_synthesize_declaration): New.
890 (objc_add_dynamic_declaration): New.
891 * c-common.c (c_common_reswords): Add synthesize and dynamic.
892 * stub-objc.c (objc_add_synthesize_declaration): New.
893 (objc_add_dynamic_declaration): New.
894
0069111f
MM
8952010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
896
897 PR target/46041
898 * c-cppbuiltin.c (mode_has_fma): Move function here from
899 builtins.c. Don't use the fma optab, instead just use the
900 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
901 using -save-temps.
902
e426b47b
NP
9032010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
904
905 Merge from 'apple/trunk' branch on FSF servers.
0069111f 906
e426b47b
NP
907 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
908
909 Radar 4330422
910 * c-common.h (objc_non_volatilized_type): New declaration
911 * stub-objc.c (objc_non_volatilized_type): New stub.
912
90fbfdc3
NP
9132010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
914
e426b47b 915 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
916
917 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
918
919 Radar 4133425
920 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 921 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 922
c37d8c30
IS
9232010-10-17 Iain Sandoe <iains@gcc.gnu.org>
924
925 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
926 * c-common.h (enum rid): Add RID_AT_PACKAGE.
927 (objc_ivar_visibility_kind): New enum.
928 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 929 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
930 visibility enum.
931
1b1562a5
MM
9322010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
933
934 * c-cppbuiltin.c (builtin_define_float_constants): Emit
935 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
936 has the appropriate fma builtins.
937 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
938
668ea4b1
IS
9392010-10-14 Iain Sandoe <iains@gcc.gnu.org>
940
1b1562a5 941 merge from FSF apple 'trunk' branch.
668ea4b1 942 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 943
668ea4b1
IS
944 Radars 4436866, 4505126, 4506903, 4517826
945 * c-common.c (c_common_resword): Define @property and its attributes.
946 * c-common.h: Define property attribute enum entries.
947 (OBJC_IS_PATTR_KEYWORD): New.
948 (objc_property_attribute_kind): New enum.
949 Declare objc_set_property_attr (), objc_add_property_variable (),
950 objc_build_getter_call () and objc_build_setter_call ().
951 * stub-objc.c (objc_set_property_attr): New stub.
952 (objc_add_property_variable): Likewise.
953 (objc_build_getter_call): Likewise.
954 (objc_build_setter_call) Likewise.
1b1562a5 955
a1178b30
IS
9562010-10-13 Iain Sandoe <iains@gcc.gnu.org>
957
1b1562a5 958 merge from FSF apple 'trunk' branch.
a1178b30
IS
959 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
960
961 Radar 3803157 (method attributes)
962 * c-common.c (handle_deprecated_attribute): Recognize
963 objc methods as valid declarations.
964 * c-common.h: Declare objc_method_decl ().
1b1562a5 965 * stub-objc.c (objc_method_decl): New stub.
a1178b30 966
a75bfaa6
JM
9672010-10-08 Joseph Myers <joseph@codesourcery.com>
968
969 * c-common.c (parse_optimize_options): Call
970 decode_cmdline_options_to_array_default_mask before
971 decode_options. Update arguments to decode_options.
972 * c-common.h (c_common_init_options_struct): Declare.
973 * c-opts.c (c_common_init_options_struct): New. Split out from
974 c_common_init_options.
975
f05b9d93
NP
9762010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
977
978 Implemented fast enumeration for Objective-C.
979 * c-common.h (objc_finish_foreach_loop): New.
980 * stub-objc.c (objc_finish_foreach_loop): New.
981
1ebe4b4f
JM
9822010-10-05 Joseph Myers <joseph@codesourcery.com>
983
984 * c-common.h (struct diagnostic_context): Don't declare here.
985 (c_common_initialize_diagnostics): Declare using
986 diagnostic_context typedef.
987 * c-opts.c (c_common_handle_option): Pass global_dc to
988 handle_generated_option.
989
d4d24ba4
JM
9902010-10-04 Joseph Myers <joseph@codesourcery.com>
991
992 * c-opts.c (c_common_handle_option): Pass &global_options_set to
993 handle_generated_option.
994
478a1c5b
ILT
9952010-10-03 Ian Lance Taylor <iant@google.com>
996
997 * c.opt (-fplan9-extensions): New option.
998
82a1c2fe
FXC
9992010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1000
1001 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
1002 Remove.
1003 (c_cpp_builtins): Call functions from cppbuiltin.c instead
1004 of duplicating code.
1005
92902b1b
IS
10062010-09-30 Iain Sandoe <iains@gcc.gnu.org>
1007
1008 * c-common.c: Add two new entries for @optional
1009 and @required keywords.
1010
1011 merge from FSF 'apple/trunk' branch.
1012 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
1013
1014 Radar 4386773
1015 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
1016 objective-c keywords.
1017 (objc_set_method_opt): New declaration.
1018 * stub-objc.c (objc_set_method_opt): New stub.
1019
46625112
JM
10202010-09-30 Joseph Myers <joseph@codesourcery.com>
1021
1022 * c-common.c (handle_optimize_attribute): Pass &global_options to
1023 cl_optimization_save and cl_optimization_restore.
1024 * c-opts.c (c_common_handle_option): Pass &global_options to
1025 handle_generated_option.
1026 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
1027 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
1028 &global_options to cl_optimization_restore.
1029
49b91f05
NP
10302010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
1031
1032 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
1033 Objective-C/Objective-C++ keywords.
1034
13ed556f 10352010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57
NP
1036
1037 Merge from 'apple/trunk' branch on FSF servers.
1038
1039 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
1040
1041 Radar 4281748
1042 * c-common.h (objc_check_global_decl): New declaration.
1043 * stub-objc.c (objc_check_global_decl): New stub.
1044
f0036cca
JM
10452010-09-29 Joseph Myers <joseph@codesourcery.com>
1046
1047 * c.opt: Don't use VarExists.
1048
e3339d0f
JM
10492010-09-29 Joseph Myers <joseph@codesourcery.com>
1050
1051 * c-common.c (c_cpp_error): Update names of diagnostic_context
1052 members.
1053 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
1054 cl_optimization members.
1055 * c-opts.c (warning_as_error_callback, c_common_handle_option,
1056 sanitize_cpp_opts, finish_options): Update names of cpp_options
1057 members.
1058
1973201f
NP
10592010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1060
1061 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
1062 (objc_is_reserved_word): Removed.
1063 * c-common.c: Updated comments.
1064 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
1065 objc_is_reserved_word.
1066 * stub-objc.c (objc_is_reserved_word): Removed.
1067
f7e71da5
IS
10682010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1069
1070 * c-common.h (objc_add_method_declaration): Adjust prototype to
1071 include attributes.
1072 (objc_start_method_definition): Likewise.
1073 (objc_build_keyword_decl): Likewise.
1074 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
1075 (objc_start_method_definition): Likewise.
1076 (objc_build_keyword_decl): Likewise.
1077
c165dca7
IS
10782010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1079
1080 * c-common.h (objc_start_class_interface): Adjust prototype.
1081 (objc_start_category_interface): Likewise.
1082 (objc_start_protocol): Likewise.
1083 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
1084 (objc_start_class_interface): Likewise.
1085 (objc_start_category_interface): Likewise.
1086
7458026b
ILT
10872010-09-27 Ian Lance Taylor <iant@google.com>
1088
1089 * c-common.c (c_common_attribute_table): Add no_split_stack.
1090 (handle_no_split_stack_attribute): New static function.
1091
b581b85b
NP
10922010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
1093
1094 Merge from 'apple/trunk' branch on FSF servers.
1095
1096 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
1097
1098 Radar 4229905
1099 * c-common.h (objc_have_common_type): New declaration.
1100 * stub-objc.c (objc_have_common_type): New stub.
1101
1102 2005-06-22 Ziemowit Laski <zlaski@apple.com>
1103
1104 Radar 4154928
1105 * c-common.h (objc_common_type): New prototype.
1106 * stub-objc.c (objc_common_type): New stub.
1107
46a4da10
JH
11082010-09-24 Jan Hubicka <jh@suse.cz>
1109
1110 * c-common.c (handle_leaf_attribute): New function.
1111 (struct attribute_spec c_common_att): Add leaf.
1112
e200444e
JM
11132010-09-22 Joseph Myers <joseph@codesourcery.com>
1114
1115 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
1116 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
1117 -dump, -dump=, -imacros, -imacros=, -include, -include=,
1118 -include-barrier, -include-directory, -include-directory=,
1119 -include-directory-after, -include-directory-after=,
1120 -include-prefix, -include-prefix=, -include-with-prefix,
1121 -include-with-prefix=, -include-with-prefix-after,
1122 -include-with-prefix-after=, -include-with-prefix-before,
1123 -include-with-prefix-before=, -no-integrated-cpp,
1124 -no-line-commands, -no-standard-includes, -no-warnings, -output,
1125 -output=, -pedantic, -pedantic-errors, -preprocess,
1126 -print-missing-file-dependencies, -trace-includes, -traditional,
1127 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
1128 -user-dependencies, -verbose, -write-dependencies,
1129 -write-user-dependencies, no-integrated-cpp, traditional): New.
1130
29a80ea6
NP
11312010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1132
1133 PR objc/23710
ac1fc2fc
NP
1134 * c-common.h (objc_start_method_definition): Return bool instead
1135 of void.
1136 * stub-objc.c (objc_start_method_definition): Return bool instead
1137 of void.
1138
11392010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1140
1141 PR objc/25965
1142 * c-common.h (objc_get_interface_ivars): New declaration.
1143 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 1144
de621752
ILT
11452010-09-15 Ian Lance Taylor <iant@google.com>
1146
1147 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 1148 messages. Remove period at end of warning message.
de621752 1149
ba885ec5
NS
11502010-09-09 Nathan Sidwell <nathan@codesourcery.com>
1151
1152 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
1153 (handle_alias_attribute): ... here.
1154 (handle_ifunc_attribute): New.
1155
c5ee1358
MM
11562010-09-06 Mark Mitchell <mark@codesourcery.com>
1157
1158 * c-common.h (do_warn_double_promotion): Declare.
1159 * c-common.c (do_warn_double_promotion): Define.
1160
0a0b3574
MM
11612010-09-05 Mark Mitchell <mark@codesourcery.com>
1162
1163 * c.opt (Wdouble-promotion): New.
1164
d1779886
JM
11652010-09-02 Joseph Myers <joseph@codesourcery.com>
1166
1167 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
1168 fvtable-thunks, fxref): Mark no longer supported in help text.
1169
2d2bd949
JM
11702010-09-02 Joseph Myers <joseph@codesourcery.com>
1171
1172 * c.opt (Wimport, fall-virtual, falt-external-templates,
1173 fdefault-inline, fenum-int-equiv, fexternal-templates,
1174 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
1175 fname-mangling-version-, fnew-abi, fnonnull-objects,
1176 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
1177 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
1178 applicable.
1179 (fhandle-exceptions): Mark with Alias and Warn.
1180 * c-opts.c (c_common_handle_option): Don't handle options marked
1181 as ignored.
1182
5de8299c
JM
11832010-09-02 Joseph Myers <joseph@codesourcery.com>
1184
1185 * c.opt (Wcomments, Werror-implicit-function-declaration,
1186 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
1187 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
1188 aliases.
1189 * c-common.c (option_codes): Use OPT_Wcomment instead of
1190 OPT_Wcomments.
1191 * c-opts.c (warning_as_error_callback, c_common_handle_option):
1192 Don't handle options marked as aliases.
1193
0ceb0201
RG
11942010-08-25 Richard Guenther <rguenther@suse.de>
1195
1196 * c-common.c (c_common_get_alias_set): Remove special
1197 handling for pointers.
1198
ac47786e
NF
11992010-08-20 Nathan Froyd <froydnj@codesourcery.com>
1200
1201 * c-common.c: Use FOR_EACH_VEC_ELT.
1202 * c-gimplify.c: Likewise.
1203 * c-pragma.c: Likewise.
1204
c878765b
JM
12052010-08-16 Joseph Myers <joseph@codesourcery.com>
1206
1207 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
1208 RejectDriver.
1209 (MMDX): Change back to MMD. Mark NoDriverArg instead of
1210 RejectDriver.
1211 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
1212 instead of OPT_MDX and OPT_MMDX.
1213
603349bf
JM
12142010-08-16 Joseph Myers <joseph@codesourcery.com>
1215
1216 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
1217
644fa7ac
JM
12182010-08-12 Joseph Myers <joseph@codesourcery.com>
1219
1220 * c.opt (MD, MMD): Change to MDX and MMDX.
1221 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
1222
481e1176
JM
12232010-08-11 Joseph Myers <joseph@codesourcery.com>
1224
1225 * c-opts.c (c_common_handle_option): Call handle_generated_option
1226 instead of handle_option.
1227
ac8dc9f7
NF
12282010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1229
1230 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
1231 (maybe_apply_renaming_pragma): Delete unneeded declarations.
1232
4f8c876d
NF
12332010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1234
1235 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
1236 (pending_redefine_extname): Change type to a VEC.
1237 (add_to_renaming_pragma_list): Update for new type of
1238 pending_redefine_extname.
ac8dc9f7 1239 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 1240
3b0c690e
AC
12412010-08-04 Arnaud Charlet <charlet@adacore.com>
1242
1243 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
1244 visited.
1245 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
1246 decide whether a type has already been declared/seen.
1247 Do not go to the original type.
1248 (dump_nested_types): New parameter forward.
1249 Generate forward declaration if needed and mark type as visited.
1250 (print_ada_declaration): Call dump_nested_types if not already done.
1251 Mark types as visited.
1252
1890bccc
JM
12532010-08-03 Joseph Myers <joseph@codesourcery.com>
1254
1255 * c.opt (-print-pch-checksum): Remove option.
1256 * c-opts.c (c_common_handle_option): Don't handle
1257 OPT_print_pch_checksum.
1258
5f20c657
JM
12592010-07-27 Joseph Myers <joseph@codesourcery.com>
1260
1261 * c-common.h (c_common_handle_option): Update prototype and return
1262 value type.
1263 * c-opts.c (c_common_handle_option): Update prototype and return
1264 value type. Update calls to handle_option and
1265 enable_warning_as_error.
1266
f551f80c
JJ
12672010-07-27 Jakub Jelinek <jakub@redhat.com>
1268
1269 PR c/45079
1270 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
1271
61ff2bdc
JM
12722010-07-27 Joseph Myers <joseph@codesourcery.com>
1273
1274 * c-common.h (c_common_missing_argument): Remove.
1275 * c-opts.c (c_common_missing_argument): Remove.
1276 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
1277 idirafter, imacros, include, isysroot, isystem, iquote): Add
1278 MissingArgError.
1279 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
1280
7a9bf9a4
JM
12812010-07-27 Joseph Myers <joseph@codesourcery.com>
1282
1283 * c-common.h (c_common_option_lang_mask,
1284 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
1285 New.
1286 (c_common_init_options): Update prototype.
1287 * c-opts.c (c_common_option_lang_mask): New.
1288 (c_common_initialize_diagnostics): Split out of
1289 c_common_init_options.
1290 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
1291 New.
1292 (c_common_init_options): Update prototype. Use decoded options in
1293 search for -lang-asm.
1294
910ad8de
NF
12952010-07-15 Nathan Froyd <froydnj@codesourcery.com>
1296
1297 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
1298 * c-format.c: Likewise.
1299
718f9c0f
MLI
13002010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
1301
1302 * c-common.h: Include diagnostic-core.h. Error if already
1303 included.
1304 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
1305
4d451982
MLI
13062010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1307
1308 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
1309 Do not include expr.h
1310 (vector_mode_valid_p): Move here.
1311
119fe915
SB
13122010-06-21 DJ Delorie <dj@redhat.com>
1313
1314 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
1315 allow these pragmas anywhere.
1316
13172010-06-14 Jakub Jelinek <jakub@redhat.com>
1318
1319 PR bootstrap/44509
1320 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
1321 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
1322 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
1323 ggc_strdup instead of xstrdup.
1324
13252010-06-10 Jakub Jelinek <jakub@redhat.com>
1326
1327 * c-cppbuiltin.c: Include cpp-id-data.h.
1328 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
1329 (lazy_hex_fp_value): New function.
1330 (builtin_define_with_hex_fp_value): Provide definitions lazily.
1331
6662d794
MLI
13322010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1333
1334 * c-gimplify.c: Do not include tree-flow.h
1335
38f8b050
JR
13362010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
1337
1338 PR other/44034
1339 * c-common.c: Rename targetm member:
1340 targetm.enum_va_list -> targetm.enum_va_list_p
1341
9589f23e
AS
13422010-06-28 Anatoly Sokolov <aesok@post.ru>
1343
1344 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
1345
3b06d379
SB
13462010-06-28 Steven Bosscher <steven@gcc.gnu.org>
1347
1348 * c-cppbuiltin.c: Do not include except.h.
1349
d166d4c3
AK
13502010-06-24 Andi Kleen <ak@linux.intel.com>
1351
1352 * c-common.c (warn_for_omitted_condop): New.
1353 * c-common.h (warn_for_omitted_condop): Add prototype.
1354
70cb8be6
JM
13552010-06-21 Joseph Myers <joseph@codesourcery.com>
1356
1357 * c.opt (lang-objc): Remove.
1358 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
1359
a4c97feb
JR
13602010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
1361
1362 * c-opts.c: Include "tm_p.h".
1363
6e2f1956
JM
13642010-06-20 Joseph Myers <joseph@codesourcery.com>
1365
1366 * c-common.c (parse_optimize_options): Update call to
1367 decode_options.
1368
bc87224e
NF
13692010-06-18 Nathan Froyd <froydnj@codesourcery.com>
1370
1371 * c-common.c (record_types_used_by_current_var_decl): Adjust for
1372 new type of types_used_by_cur_var_decl.
1373
b49cf425
JR
13742010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
1375
1376 PR bootstrap/44512
1377 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
1378 for C++ standard compliance.
1379
59f9c2ed
JM
13802010-06-16 Jason Merrill <jason@redhat.com>
1381
1382 * c.opt: Add -Wnoexcept.
1383
33766b66
RG
13842010-06-16 Richard Guenther <rguenther@suse.de>
1385
1386 PR c/44555
1387 * c-common.c (c_common_truthvalue_conversion): Remove
1388 premature and wrong optimization concering ADDR_EXPRs.
1389
eff7e30c
AC
13902010-06-15 Arnaud Charlet <charlet@adacore.com>
1391
1392 * c-ada-spec.c (dump_sloc): Remove column info.
1393 (is_simple_enum): New function.
1394 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
1395 enum types when relevant.
1396
6312e84d
MLI
13972010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1398
1399 * c-common.c (conversion_warning): Warn at expression
1400 location.
1401
1cb42611
JM
14022010-06-10 Joseph Myers <joseph@codesourcery.com>
1403
1404 * c-opts.c (c_common_handle_option): Don't handle
1405 OPT_fshow_column.
1406
a9429e29
LB
14072010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1408
1409 * c-pragma.c (push_alignment): Use typed GC allocation.
1410 (handle_pragma_push_options): Likewise.
1411
1412 * c-common.c (parse_optimize_options): Likewise.
1413
1414 * c-common.h (struct sorted_fields_type): Add variable_size GTY
1415 option.
1416
5498f011
JM
14172010-06-07 Joseph Myers <joseph@codesourcery.com>
1418
1419 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
1420 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1421 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1422 flag_signed_bitfields, warn_strict_null_sentinel,
1423 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
1424 flag_gen_declaration, flag_no_gnu_keywords,
1425 flag_implement_inlines, flag_implicit_templates,
1426 flag_implicit_inline_templates, flag_optional_diags,
1427 flag_elide_constructors, flag_default_inline, flag_rtti,
1428 flag_conserve_space, flag_access_control, flag_check_new,
1429 flag_new_for_scope, flag_weak, flag_working_directory,
1430 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
1431 flag_enforce_eh_specs, flag_threadsafe_statics,
1432 flag_pretty_templates): Remove.
1433 * c-common.h (flag_preprocess_only, flag_nil_receivers,
1434 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
1435 flag_replace_objc_classes, flag_undef, flag_no_builtin,
1436 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1437 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1438 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
1439 flag_no_gnu_keywords, flag_implement_inlines,
1440 flag_implicit_templates, flag_implicit_inline_templates,
1441 flag_optional_diags, flag_elide_constructors, flag_default_inline,
1442 flag_rtti, flag_conserve_space, flag_access_control,
1443 flag_check_new, flag_new_for_scope, flag_weak,
1444 flag_working_directory, flag_use_cxa_atexit,
1445 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
1446 flag_threadsafe_statics, flag_pretty_templates,
1447 warn_strict_null_sentinel): Remove.
1448 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
1449 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
1450 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
1451 fimplicit-inline-templates, fimplicit-templates,
1452 flax-vector-conversions, fms-extensions, fnil-receivers,
1453 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
1454 frtti, fshort-double, fshort-enums, fshort-wchar,
1455 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
1456 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
1457 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
1458 gen-decls, undef): Use Var.
1459 (fdefault-inline, foptional-diags): Document as doing nothing.
1460 * c-opts.c (c_common_handle_option): Remove cases for options now
1461 using Var. Mark ignored options as such.
1462
39dabefd
SB
14632010-06-05 Steven Bosscher <steven@gcc.gnu.org>
1464
1465 * c-common.c: Moved to here from parent directory.
1466 * c-common.def: Likewise.
1467 * c-common.h: Likewise.
1468 * c-cppbuiltin.c: Likewise.
1469 * c-dump.c: Likewise.
1470 * c-format.c: Likewise.
1471 * c-format.h : Likewise.
1472 * c-gimplify.c: Likewise.
1473 * c-lex.c: Likewise.
1474 * c-omp.c: Likewise.
1475 * c.opt: Likewise.
1476 * c-opts.c: Likewise.
1477 * c-pch.c: Likewise.
1478 * c-ppoutput.c: Likewise.
1479 * c-pragma.c: Likewise.
1480 * c-pragma.h: Likewise.
1481 * c-pretty-print.c: Likewise.
1482 * c-pretty-print.h: Likewise.
1483 * c-semantics.c: Likewise.
1484 * stub-objc.c: Likewise.
1485
1486 * c-common.c: Include gt-c-family-c-common.h.
1487 * c-pragma.c: Include gt-c-family-c-pragma.h.
1488\f
04695783 1489Copyright (C) 2010, 2011 Free Software Foundation, Inc.
39dabefd
SB
1490
1491Copying and distribution of this file, with or without modification,
1492are permitted in any medium without royalty provided the copyright
1493notice and this notice are preserved.