]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
re PR target/50813 (gcc.dg/torture/vshuf-{v4di,v8si}.c fail on AVX target)
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
d17687f6
DS
12011-10-18 Dodji Seketeli <dodji@redhat.com>
2
3 PR bootstrap/50760
4 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
5 !NO_IMPLICIT_EXTERN_C.
6
fc8396e9
PC
72011-10-17 Michael Spertus <mike_spertus@symantec.com>
8
9 * c-common.c (c_common_reswords): Add __bases,
10 __direct_bases.
11 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
12
132011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
14
15 PR c++/50757
16 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
17
847e697a
TT
182011-10-15 Tom Tromey <tromey@redhat.com>
19 Dodji Seketeli <dodji@redhat.com>
20
21 * c.opt (fdebug-cpp): New option.
22 * c-opts.c (c_common_handle_option): Handle the option.
23 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
24 output stream in parameter. Factorized from ...
25 (maybe_print_line): ... this. Dump location debug information when
26 -fdebug-cpp is in effect.
27 (print_line_1): New static function. Takes an output stream in
28 parameter. Factorized from ...
29 (print_line): ... here. Dump location information when -fdebug-cpp
30 is in effect.
31 (scan_translation_unit): Dump location information when
32 -fdebug-cpp is in effect.
33
92582b75
TT
342011-10-15 Tom Tromey <tromey@redhat.com>
35 Dodji Seketeli <dodji@redhat.com>
36
37 * c.opt (ftrack-macro-expansion): New option. Handle it with and
38 without argument.
39 * c-opts.c (c_common_handle_option)<case
40 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
41 cases. Handle -ftrack-macro-expansion with and without argument.
42
46427374
TT
432011-10-15 Tom Tromey <tromey@redhat.com>
44 Dodji Seketeli <dodji@redhat.com>
45
46 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
47 (print_line, cb_define, do_line_change): Adjust to avoid touching
48 the internals of struct line_map. Use the public API instead.
49 * c-pch.c (c_common_read_pch): Likewise.
50 * c-lex.c (fe_file_change): Likewise.
51
fc8396e9
PC
522011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
53
54 PR c++/17212
55 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
56
572011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
58
59 PR c++/33067
60 * c-pretty-print.c (pp_c_floating_constant): Output
61 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
62
e79983f4
MM
632011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
64
65 * c-common.c (def_builtin_1): Delete old interface with two
66 parallel arrays to hold standard builtin declarations, and replace
67 it with a function based interface that can support creating
68 builtins on the fly in the future. Change all uses, and poison
69 the old names. Make sure 0 is not a legitimate builtin index.
70 * c-omp.c (c_finish_omp_barrier): Ditto.
71 (c_finish_omp_taskwait): Ditto.
72 (c_finish_omp_flush): Ditto.
73
6637388f
TG
742011-10-11 Tristan Gingold <gingold@adacore.com>
75
76 * c.opt: (fallow-parameterless-variadic-functions): New.
77
3797cb21
DS
782011-09-08 Dodji Seketeli <dodji@redhat.com>
79
80 PR c++/33255 - Support -Wunused-local-typedefs warning
81 * c-common.h (struct c_language_function::local_typedefs): New
82 field.
83 (record_locally_defined_typedef, maybe_record_typedef_use)
84 (maybe_warn_unused_local_typedefs): Declare new functions.
85 * c-common.c (record_locally_defined_typedef)
86 (maybe_record_typedef_use)
87 (maybe_warn_unused_local_typedefs): Define new functions.
88 * c.opt: Declare new -Wunused-local-typedefs flag.
89
693ddb1b
EB
902011-09-06 Eric Botcazou <ebotcazou@adacore.com>
91
92 PR middle-end/50266
93 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
94 computations.
95
830c740f
RG
962011-09-05 Richard Guenther <rguenther@suse.de>
97
98 * c-common.c (complete_array_type): Use ssize_int (-1) instead
99 of integer_minus_one_node for empty array upper bounds.
100
892a371f
DS
1012011-08-28 Dodji Seketeli <dodji@redhat.com>
102
103 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
104 it's the first time it's being called on this main TU.
105
0e3fdb48
RB
1062011-08-24 Richard Guenther <rguenther@suse.de>
107
108 PR c/49396
109 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
110
1112011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
112
113 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
114 defined in cpp_init_builtins and c_cpp_builtins.
115
d4a83c10
JM
1162011-08-19 Joseph Myers <joseph@codesourcery.com>
117
118 * c-common.c (c_common_reswords): Add __builtin_complex.
119 * c-common.h (RID_BUILTIN_COMPLEX): New.
120
bbceee64
JM
1212011-08-18 Joseph Myers <joseph@codesourcery.com>
122
123 * c-common.c (c_common_reswords): Add _Noreturn.
124 (keyword_is_function_specifier): Handle RID_NORETURN.
125 * c-common.h (RID_NORETURN): New.
126
0e3a99ae
AS
1272011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
128
129 * c-common.c (unsafe_conversion_p): New function. Check if it is
130 unsafe to convert an expression to the type.
131 (conversion_warning): Adjust, use unsafe_conversion_p.
132 * c-common.h (unsafe_conversion_p): New function declaration.
133
20906c66
JJ
1342011-08-02 Jakub Jelinek <jakub@redhat.com>
135
136 * c-common.h (c_finish_omp_atomic): Adjust prototype.
137 (c_finish_omp_taskyield): New prototype.
138 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
139 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
140 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
141 or RHS1 have side-effects, evaluate those too in the right spot,
142 if it is a decl and LHS is also a decl, error out if they
143 aren't the same.
144 (c_finish_omp_taskyield): New function.
145 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
146 * c-pragma.c (omp_pragmas): Add taskyield.
147 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
148 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
149 PRAGMA_OMP_CLAUSE_MERGEABLE.
150
770e5a2e
DS
1512011-07-25 Dodji Seketeli <dodji@redhat.com>
152
153 * c-common.h (set_underlying_type): Remove parm name from
154 declaration.
155
1baae426
RG
1562011-07-25 Romain Geissler <romain.geissler@gmail.com>
157
158 * c-pretty-print.h: Search c-common.h in c-family.
159
fcb21722
JM
1602011-07-22 Jason Merrill <jason@redhat.com>
161
76f86d00
JM
162 PR c++/49793
163 * c.opt (Wnarrowing): New.
164
3a636414
JM
165 PR c++/30112
166 * c-common.h: Declare c_linkage_bindings.
167 * c-pragma.c (handle_pragma_redefine_extname): Use it.
168
fcb21722
JM
169 PR c++/49813
170 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
171 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
172 as flag_isoc99 for 'restrict'.
173 (pp_c_specifier_qualifier_list): Likewise for _Complex.
174
02614448
ILT
1752011-07-21 Ian Lance Taylor <iant@google.com>
176
177 PR middle-end/49705
178 * c-common.c (c_disable_warnings): New static function.
179 (c_enable_warnings): New static function.
180 (c_fully_fold_internal): Change local unused_p to bool. Call
181 c_disable_warnings and c_enable_warnings rather than change
182 c_inhibit_evaluation_warnings.
183
34429675
JM
1842011-07-20 Jason Merrill <jason@redhat.com>
185
186 PR c++/6709 (DR 743)
187 PR c++/42603 (DR 950)
188 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
189 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
190 (CPP_DECLTYPE): New.
191 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
192
5d49b6a7
RG
1932011-07-19 Richard Guenther <rguenther@suse.de>
194
195 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
196 * c-omp.c (c_finish_omp_for): Likewise.
197
e84a58ff
EB
1982011-07-12 Eric Botcazou <ebotcazou@adacore.com>
199
200 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
201 body on the next line.
202
329af3c7
JM
2032011-07-08 Jason Merrill <jason@redhat.com>
204
4063e61b
JM
205 PR c++/45437
206 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
207
329af3c7
JM
208 PR c++/49673
209 * c-common.c (c_apply_type_quals_to_decl): Don't check
210 TYPE_NEEDS_CONSTRUCTING.
211
1a072294
RG
2122011-07-06 Richard Guenther <rguenther@suse.de>
213
214 * c-common.c (c_common_nodes_and_builtins):
215 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
216
fce5dddd
RG
2172011-07-05 Richard Guenther <rguenther@suse.de>
218
219 * c-common.c (c_common_nodes_and_builtins): Build all common
220 tree nodes first.
221
45d439ac
JJ
2222011-06-27 Jakub Jelinek <jakub@redhat.com>
223
56300785
JJ
224 * c-common.h (c_tree_chain_next): New static inline function.
225
45d439ac
JJ
226 * c-common.c (check_builtin_function_arguments): Handle
227 BUILT_IN_ASSUME_ALIGNED.
228
e0a8ecf2
AM
2292011-06-21 Andrew MacLeod <amacleod@redhat.com>
230
231 * c-common.c: Add sync_ or SYNC__ to builtin names.
232 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
233
2342011-06-20 Pierre Vittet <piervit@pvittet.com>
235
236 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
237 handler.
238 (gen_pragma_handler): New union.
239 (internal_pragma_handler): New type.
240 (c_register_pragma_with_data)
241 (c_register_pragma_with_expansion_and_data): New functions.
242
243 * c-pragma.c (registered_pragmas, c_register_pragma_1)
244 (c_register_pragma, c_register_pragma_with_expansion)
245 (c_invoke_pragma_handler): Changed to work with
246 internal_pragma_handler.
247 (c_register_pragma_with_data)
248 (c_register_pragma_with_expansion_and_data): New functions.
249
677f3fa8
JM
2502011-06-14 Joseph Myers <joseph@codesourcery.com>
251
252 * c-common.c: Include common/common-target.h.
253 (handle_section_attribute): Use
254 targetm_common.have_named_sections.
255 * c-cppbuiltin.c: Include common/common-target.h.
256 (c_cpp_builtins): Use targetm_common.except_unwind_info.
257
d7fc8c14
RG
2582011-06-10 Richard Guenther <rguenther@suse.de>
259
260 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
261 to print a IDENTIFIER_NODE.
262
10e48e39
RO
2632011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
264 Joseph Myers <joseph@codesourcery.com>
265
266 * c.opt (fbuilding-libgcc): New option.
267 * c-cppbuiltin.c (c_cpp_builtins): Define
268 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
269
6976ae51
JM
2702011-06-07 Jason Merrill <jason@redhat.com>
271
3ff60975
JM
272 * c-common.c (max_tinst_depth): Lower default to 900.
273
6976ae51
JM
274 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
275
009db074
RG
2762011-06-07 Richard Guenther <rguenther@suse.de>
277
278 * c-common.c (c_common_nodes_and_builtins): Do not set
279 size_type_node or call set_sizetype.
280
b4592b92
DS
2812011-06-07 Dodji Seketeli <dodji@redhat.com>
282
283 PR debug/49130
284 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
285 type when using pointer comparison to compare types.
286
014ab419
JW
2872011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
288
289 * c.opt: Add -Wdelete-non-virtual-dtor.
290 * c-opts.c (c_common_handle_option): Include it in -Wall.
291
4f60111f
NF
2922011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
293
294 PR bootstrap/49190
295
296 Revert:
297 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
298
299 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
300 not tree_common.
301
4cc4f2f4
JJ
3022011-05-27 Jakub Jelinek <jakub@redhat.com>
303
304 PR c++/49165
305 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
306 C++ don't call c_common_truthvalue_conversion on void type arms.
307
38e01f9e
NF
3082011-05-27 Nathan Froyd <froydnj@codesourcery.com>
309
310 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
311 (stmt_list_stack): Define.
312 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
313 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
314
92e948a8
NF
3152011-05-26 Nathan Froyd <froydnj@codesourcery.com>
316
317 * c-common.c (warning_candidate_p): Check for BLOCKs.
318
a2fc3e63
NF
3192011-05-26 Nathan Froyd <froydnj@codesourcery.com>
320
321 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
322 not tree_common.
323
0957c029
JJ
3242011-05-25 Jakub Jelinek <jakub@redhat.com>
325
326 * c-common.c (def_fn_type): Remove extra va_end.
327
828fb3ba
JM
3282011-05-23 Jason Merrill <jason@redhat.com>
329
330 PR c++/48106
331 * c-common.c (c_common_get_narrower): New.
332 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
333
dde05067
NF
3342011-05-23 Nathan Froyd <froydnj@codesourcery.com>
335
336 * c-common.h (check_function_arguments): Tweak prototype of
337 check_function_arguments.
338 * c-common.c (check_function_arguments): Likewise. Adjust
339 calls to check_function_nonnull, check_function_format, and
340 check_function_sentinel.
341 (check_function_sentinel): Take a FUNCTION_TYPE rather than
342 separate attributes and typelist arguments. Use
343 FOREACH_FUNCTION_ARGS to iterate over argument types.
344
3c0d13bf
PC
3452011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
346
347 * c-common.c (c_common_reswords): Reorder.
348 * c-common.h (rid): Likewise.
349
8242dd04
NF
3502011-05-10 Nathan Froyd <froydnj@codesourcery.com>
351
352 * c-common.c (def_fn_type): Don't call build_function_type, call
353 build_function_type_array or build_varargs_function_type_array
354 instead.
355 (c_common_nodes_and_builtins): Likewise.
356
3d528853
NF
3572011-05-05 Nathan Froyd <froydnj@codesourcery.com>
358
359 * c-common.c (c_add_case_label): Omit the loc argument to
360 build_case_label.
361 * c-common.h (build_case_label): Remove.
362 * c-semantics.c (build_case_label): Remove.
363
a04a722b
JM
3642011-05-05 Joseph Myers <joseph@codesourcery.com>
365
366 * c-objc.h (objc_start_method_definition): Update prototype.
367 * stub-objc.c (objc_start_method_definition): Add extra parameter.
368
e19a18d4
NF
3692011-05-04 Nathan Froyd <froydnj@codesourcery.com>
370
371 * c-common.c (check_main_parameter_types): Reindent. Don't use
372 TYPE_ARG_TYPES directly.
373 (handle_nonnull_attribute): Likewise.
374 (sync_resolve_params): Likewise.
375 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
376 to check_format_string.
377 (handle_format_attribute): Likewise.
378 (check_format_string): Take a function type to examine instead of
379 a type list. Use a function_arg_iterator to step through argument
380 types.
381
c62c040f
RG
3822011-05-04 Richard Guenther <rguenther@suse.de>
383
384 * c-common.c (fix_string_type): Use size_int for index type bounds.
385 (start_fname_decls): Do not pass NULL to build_int_cst.
386 (c_init_attributes): Likewise.
387 * c-lex.c (c_lex_with_flags): Likewise.
388
c12ff9d8
JM
3892011-04-27 Jason Merrill <jason@redhat.com>
390
391 * c-common.c (make_tree_vector_from_list): New.
392 * c-common.h: Declare it.
393
304dfbe3
RG
3942011-04-26 Richard Guenther <rguenther@suse.de>
395
396 PR preprocessor/48248
397 * c-ppoutput.c (maybe_print_line): Always optimize newlines
398 for output size with -P.
399
3c0d13bf
PC
4002011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
401
402 * c-common.c (struct c_common_resword): Add __underlying_type.
403 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
404
04695783
JM
4052011-04-20 Jim Meyering <meyering@redhat.com>
406
407 * c-format.c (init_dollar_format_checking): Remove useless
408 if-before-free.
409
0dc33c3c
NP
4102011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
411
412 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 413 (objc_detect_field_duplicates): New.
0dc33c3c 414 * stub-objc.c: Likewise.
3c0d13bf 415
c59633d9
NP
4162011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
417
418 * stub-objc.c (objc_declare_protocols): Renamed to
419 objc_declare_protocol.
420 * c-objc.h: Likewise.
3c0d13bf 421
32dabdaf
NP
4222011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
423
424 * stub-objc.c (objc_declare_class): Updated argument name.
425
81f653d6
NF
4262011-04-12 Nathan Froyd <froydnj@codesourcery.com>
427
428 * c-common.h (c_common_init_ts): Declare.
429 * c-common.c (c_common_init_ts): Define.
430
eb345401
NP
4312011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
432
433 * c-objc.h (objc_build_message_expr): Updated prototype.
434 * stub-objc.c (objc_build_message_expr): Likewise.
435
a358e188
MJ
4362011-04-12 Martin Jambor <mjambor@suse.cz>
437
438 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
439 of cgraph_node.
440
e6313a78
RG
4412011-04-11 Richard Guenther <rguenther@suse.de>
442
443 * c-common.c (complete_array_type): Build a range type of
444 proper type.
445
dcf0c47e
NF
4462011-04-08 Nathan Froyd <froydnj@codesourcery.com>
447
448 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
449 (handle_type_generic_attribute): Likewise.
450
1ee44b26
JM
4512011-04-07 Jason Merrill <jason@redhat.com>
452
453 PR c++/48450
454 * c-common.c (c_common_truthvalue_conversion): Don't ignore
455 conversion from C++0x scoped enum.
456
acce4e77
JM
4572011-04-06 Joseph Myers <joseph@codesourcery.com>
458
459 * c-target-def.h: New file.
460 * c-target.def: New file.
461 * c-target.h: New file.
462 * c-common.c (targetcm): Don't define here.
463 * c-common.h (default_handle_c_option): Declare.
464 * c-format.c: Include c-target.h instead of target.h.
465 * c-opts.c: Include c-target.h instead of target.h. Explicitly
466 include tm.h.
467 (default_handle_c_option): Move from targhooks.c.
468
e2eefb55
JJ
4692011-03-29 Jakub Jelinek <jakub@redhat.com>
470
471 PR preprocessor/48248
472 * c-ppoutput.c (print): Add src_file field.
473 (init_pp_output): Initialize it.
474 (maybe_print_line): Don't optimize by adding up to 8 newlines
475 if map->to_file and print.src_file are different file.
476 (print_line): Update print.src_file.
477
ba78087b
KT
4782011-03-25 Kai Tietz <ktietz@redhat.com>
479
480 * c-ada-spec.c (compare_comment): Use filename_cmp
481 instead of strcmp for filename.
482
0edf1bb2
JL
4832011-03-25 Jeff Law <law@redhat.com>
484
485 * c-family/c-common.c (def_fn_type): Add missing va_end.
486
c7dc8804
JM
4872011-03-25 Jason Merrill <jason@redhat.com>
488
489 * c.opt: Add -std=c++03.
490
d1d879b1
EB
4912011-03-22 Eric Botcazou <ebotcazou@adacore.com>
492
493 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
494
62d784f7
KT
4952011-03-17 Kai Tietz
496
497 PR target/12171
5050afdf
KT
498 * c-pretty-print.c (pp_c_specifier_qualifier_list):
499 Display allowed attributes for function pointer types.
500 (pp_c_attributes_display): New function to display
501 attributes having affects_type_identity flag set to true.
502 * c-pretty-print.h (pp_c_attributes_display): New prototype.
503
62d784f7
KT
504 * c-common.c (c_common_attribute_table):
505 Add new element.
506 (c_common_format_attribute_table): Likewise.
507
82d37118
JM
5082011-03-18 Jason Merrill <jason@redhat.com>
509
49a000c3
JM
510 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
511 * c-common.h: Don't declare it here.
512 * c-common.c: Or define it here.
513 * c-opts.c (c_common_handle_option): Or set it here.
514
82d37118
JM
515 PR c++/35315
516 * c-common.c (handle_transparent_union_attribute): Don't
517 make a duplicate type in C++.
518
17bc631c
JM
5192011-03-15 Jason Merrill <jason@redhat.com>
520
521 * c-common.c (max_constexpr_depth): New.
522 * c-common.h: Declare it.
523 * c-opts.c (c_common_handle_option): Set it.
524 * c.opt (fconstexpr-depth): New option.
525
1b9b91a6
JM
5262011-03-11 Jason Merrill <jason@redhat.com>
527
f231b5ff
JM
528 * c-common.c (attribute_takes_identifier_p): Add missing const.
529
1b9b91a6
JM
530 PR c++/46803
531 * c-common.c (attribute_takes_identifier_p): Assume that an
532 unknown attribute takes an identifier.
533
a19e4d44
NF
5342011-03-07 Nathan Froyd <froydnj@codesourcery.com>
535
536 PR c/47786
537 * c-common.c (c_type_hash): Call list_length instead of iterating
538 through DECL_CHAIN. Rename 'i' to 'n_elements'.
539
982d62f6
JJ
5402011-02-19 Jakub Jelinek <jakub@redhat.com>
541
542 PR c/47809
543 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
544
0a256240
NP
5452011-02-17 Iain Sandoe <iains@gcc.gnu.org>
546
547 * c.opt (fobjc-abi-version=) New.
548 (fobjc-nilcheck): New.
549
ba9e6dd5
NF
5502011-02-03 Nathan Froyd <froydnj@codesourcery.com>
551
552 PR c++/46890
553 * c-common.h (keyword_is_decl_specifier): Declare.
554 * c-common.c (keyword_is_decl_specifier): Define.
555 (keyword_is_function_specifier): New function.
556
7273813a
JJ
5572011-01-26 Jakub Jelinek <jakub@redhat.com>
558
559 PR c/47473
560 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
561 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
562 REAL_TYPE.
563
908ef79b
AC
5642011-01-26 Arnaud Charlet <charlet@adacore.com>
565
566 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
567
237e9384
JJ
5682011-01-26 Jakub Jelinek <jakub@redhat.com>
569
570 PR pch/47430
571 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
572 after init_c_lex if pch_file is set.
573
47ea1edf
DK
5742011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
575
d4dba752 576 PR c++/43601
47ea1edf
DK
577 * c.opt (-fkeep-inline-dllexport): New switch.
578
2aa9c6ae
RG
5792011-01-12 Richard Guenther <rguenther@suse.de>
580
581 PR middle-end/32511
582 * c-common.c (handle_weak_attribute): Warn instead of error
583 on declaring an inline function weak.
584
7bd11157
TT
5852011-01-05 Tom Tromey <tromey@redhat.com>
586
587 * c-common.h (lvalue_error): Update.
588 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
589 not error.
590
0e66e494
NP
5912010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
592
b4f588c4
NP
593 PR objc/47075
594 * c-objc.h (objc_finish_message_expr): Added argument to
595 prototype.
596
f4da8dce
NF
5972010-12-22 Nathan Froyd <froydnj@codesourcery.com>
598
599 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
600 Use prototype_p.
601
46270f14
NP
6022010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
603
604 * c-objc.h (objc_maybe_warn_exceptions): New.
605 * stub-objc.c (objc_maybe_warn_exceptions): New.
606
4816c593
NF
6072010-12-10 Nathan Froyd <froydnj@codesourcery.com>
608
609 * c-common.h (readonly_error): Declare.
610 * c-common.c (readonly_error): Define.
611
7a6daeb0
NF
6122010-12-09 Nathan Froyd <froydnj@codesourcery.com>
613
614 * c-common.h (invalid_indirection_error): Declare.
615 * c-common.c (invalid_indirection_error): Define.
616
892f6119
RG
6172010-12-03 Richard Guenther <rguenther@suse.de>
618
619 PR c/46745
620 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
621 (pp_c_unary_expression): Likewise.
622 (pp_c_expression): Likewise.
623
6c39e757
NP
6242010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
625
626 * c-common.h (objc_finish_function): New.
627 (objc_non_volatilized_type): Removed.
628 (objc_type_quals_match): Removed.
629 * stub-objc.c (objc_finish_function): New.
630 (objc_non_volatilized_type): Removed.
631 (objc_type_quals_match): Removed.
632
7c475d11
JM
6332010-11-30 Joseph Myers <joseph@codesourcery.com>
634
635 * c-common.h (parse_optimize_options): Declare.
636 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
637 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
638
71f3e391
JM
6392010-11-29 Joseph Myers <joseph@codesourcery.com>
640
641 * c-opts.c (check_deps_environment_vars): Use getenv instead of
642 GET_ENVIRONMENT.
643 * c-pch.c (O_BINARY): Don't define here.
644 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
645
d5fabb58
JM
6462010-11-25 Joseph Myers <joseph@codesourcery.com>
647
648 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
649 targetm.except_unwind_info.
650
299404a1
JM
6512010-11-23 Joseph Myers <joseph@codesourcery.com>
652
653 * c-opts.c (c_common_handle_option): Pass location to
654 set_struct_debug_option.
655
c98cd5bf
JM
6562010-11-23 Joseph Myers <joseph@codesourcery.com>
657
658 * c-common.c (visibility_options): Move from ../opts.c.
659 * c-common.h (struct visibility_flags, visibility_options):
660 Declare here.
661 * c-opts.c (finish_options): Rename to c_finish_options.
662 (c_common_init): Update call to finish_options.
663
a9546771
NP
6642010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
665
666 PR objc/34033
667 * c-lex.c (lex_string): Check that each string in an Objective-C
668 string concat sequence starts with either one or zero '@', and
669 that there are no spurious '@' signs at the end.
670
24a57808
JM
6712010-11-20 Joseph Myers <joseph@codesourcery.com>
672
673 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
674 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
675 HANDLE_PRAGMA_VISIBILITY.
676 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
677 HANDLE_PRAGMA_VISIBILITY): Don't define.
678 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
679
a9aa2c3a
NF
6802010-11-20 Nathan Froyd <froydnj@codesourcery.com>
681
682 PR c++/16189
683 PR c++/36888
684 PR c++/45331
685 * c-common.h (keyword_begins_type_specifier): Declare.
686 (keyword_is_storage_class_specifier): Declare.
687 (keyword_is_type_qualifier): Declare.
688 * c-common.c (keyword_begins_type_specifier): New function.
689 (keyword_is_storage_class_specifier): New function.
690 (keyword_is_type_qualifier): Declare.
691
5386338c
JM
6922010-11-19 Joseph Myers <joseph@codesourcery.com>
693
694 PR c/46547
695 * c-common.c (in_late_binary_op): Define.
696 (c_common_truthvalue_conversion): Check in_late_binary_op before
697 calling c_save_expr.
698 * c-common.h (in_late_binary_op): Declare.
699
69ccdddb
JM
7002010-11-19 Joseph Myers <joseph@codesourcery.com>
701
702 * c-opts.c (c_common_handle_option): Update calls to
703 set_struct_debug_option.
704
6b192a09
NP
7052010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
706
707 * c-common.h (objc_declare_protocols): Added additional argument.
708 * stub-objc.c (objc_declare_protocol): Same change.
709
fb52b50a
NF
7102010-11-18 Nathan Froyd <froydnj@codesourcery.com>
711
712 PR c/33193
713 * c-common.h (build_real_imag_expr): Declare.
714 * c-semantics.c (build_real_imag_expr): Define.
715
b37421c6
JM
7162010-11-17 Joseph Myers <joseph@codesourcery.com>
717
718 * c-opts.c (c_common_parse_file): Take no arguments.
719 * c-common.h (c_common_parse_file): Update prototype.
720
07078664
JJ
7212010-11-16 Jakub Jelinek <jakub@redhat.com>
722
723 PR c++/46401
724 * c-common.c (warning_candidate_p): Don't track non-const calls
725 or STRING_CSTs.
726
c6a13190
ILT
7272010-11-15 Ian Lance Taylor <iant@google.com>
728
729 * c-lex.c (init_c_lex): Set macro debug callbacks if
730 flag_dump_go_spec is set.
731
925e8657
NP
7322010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
733
734 * c-common.h (objc_build_incr_expr_for_property_ref): New.
735 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
736
bb0a9581
NF
7372010-11-15 Nathan Froyd <froydnj@codesourcery.com>
738
739 PR preprocessor/45038
740 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
741 dialects.
742
c5fa0890
JM
7432010-11-12 Joseph Myers <joseph@codesourcery.com>
744
745 * c-common.h (c_family_lang_mask): Declare.
746 * c-opts.c (c_family_lang_mask): Make extern.
747 * c-pragma.c (handle_pragma_diagnostic): Use
748 control_warning_option.
749
a4d8c676
JM
7502010-11-12 Joseph Myers <joseph@codesourcery.com>
751
752 * c-common.c (parse_optimize_options): Update call to
753 decode_options.
754 * c-common.h (c_common_handle_option): Update prototype.
755 * c-opts.c (c_common_handle_option): Take location_t parameter and
756 pass it to other functions.
757
f954bd2c
JM
7582010-11-11 Joseph Myers <joseph@codesourcery.com>
759
760 * c-opts.c (warning_as_error_callback): Remove.
761 (c_common_initialize_diagnostics): Don't call
762 register_warning_as_error_callback.
763 (c_common_handle_option): Handle -Werror=normalized= here.
764
d8a07487
JM
7652010-11-10 Joseph Myers <joseph@codesourcery.com>
766
767 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
768 in diagnostic.
769 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
770 letter.
771 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
772 Remove trailing '.' from diagnostics.
773 * c.opt (Wwrite-strings_: Avoid '`' in help text.
774
d5478783
JM
7752010-11-10 Joseph Myers <joseph@codesourcery.com>
776
777 * c-common.c (parse_optimize_options): Pass global_dc to
778 decode_options.
779 * c-opts.c (c_common_handle_option): Pass &global_options to
780 set_Wstrict_aliasing.
781 * c.opt (v): Don't mark Common or document here.
782
91ebb981
IS
7832010-11-06 Iain Sandoe <iains@gcc.gnu.org>
784
785 PR target/44981
786 * c-format.c (format_type): New type gcc_objc_string_format_type.
787 (valid_stringptr_type_p): New.
788 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
789 (check_format_string): Pass expected type, use
790 valid_stringptr_type_p (), check that the format string types are
791 consistent with the format specification.
792 (decode_format_attr): Warn if NSString is used outside objective-c.
793 (format_types_orig): Add NSString.
794 (format_name): New.
795 (format_flags): New.
796 (check_format_arg): Handle format strings requiring an external parser.
797 first_target_format_type: New variable.
798 (handle_format_attribute): Set up first_target_format_type, pass the
799 expected format arg string type to check_format_string().
800 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
801 * stub-objc.c (objc_string_ref_type_p): New.
802 (objc_check_format_arg): New.
803
bede2adc
NP
8042010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
805
806 Fixed using the Objective-C 2.0 dot-syntax with class names.
807 * c-common.h (objc_build_class_component_ref): New.
808 * stub-objc.c (objc_build_class_component_ref): New.
809
9a179d01
NP
8102010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
811
812 * c.opt (Wproperty-assign-default): New option.
813
22d8d616
NP
8142010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
815
816 Implemented -fobjc-std=objc1 flag.
817 * c.opt (fobjc-std=objc1): New option.
818
2debdb4f
NP
8192010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
820
821 Implemented format and noreturn attributes for Objective-C methods.
822 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
823 attribute for Objective-C methods.
824
ec52b111
JM
8252010-10-31 Jason Merrill <jason@redhat.com>
826
827 * c-common.c (conversion_warning, warn_for_collisions_1): Use
828 EXPR_LOC_OR_HERE.
829
46a88c12
NP
8302010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
831
832 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
833 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
834 (objc_add_property_declaration): Removed arguments for copies and
835 ivar.
836 (objc_build_getter_call): Renamed to
837 objc_maybe_build_component_ref.
838 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
839 (objc_is_property_ref): New.
840 * c-common.c (c_common_reswords): Removed copies and ivar.
841 * stub-objc.c (objc_add_property_declaration): Removed arguments
842 for copies and ivar.
843 (objc_build_getter_call): Renamed to
844 objc_maybe_build_component_ref.
845 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
846 (objc_is_property_ref): New.
847
1e4bf85b
AC
8482010-10-29 Arnaud Charlet <charlet@adacore.com>
849 Matthew Gingell <gingell@adacore.com>
850
851 * c-ada-spec.c (separate_class_package): New function.
852 (pp_ada_tree_identifier): Prefix references to C++ classes with the
853 name of their enclosing package.
854 (print_ada_declaration): Use separate_class_package.
855
81f0bab2
JM
8562010-10-27 Jason Merrill <jason@redhat.com>
857
2b08f2c5
JM
858 * c-common.c (c_common_reswords): Add __is_literal_type.
859 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
860
81f0bab2
JM
861 * c-common.c (check_case_value): Remove special C++ code.
862
200290f2
NP
8632010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
864
865 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
866 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
867 and RID_LAST_PATTR.
868 (objc_add_property_declaration): Added additional arguments.
869 (objc_property_attribute_kind): Removed.
870 (objc_set_property_attr): Removed.
871 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
872 copy and nonatomic.
873 * stub-objc.c (objc_add_property_declaration): Added additional
874 arguments.
875 (objc_set_property_attr): Removed.
876
f614132b
NP
8772010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
878
879 * c-common.h (objc_add_property_variable): Renamed to
880 objc_add_property_declaration. Added location argument.
881 * stub-objc.c (objc_add_property_variable): Same change.
882
b8a18805
NP
8832010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
884
885 * c-common.h (objc_maybe_printable_name): New.
886 * stub-objc.c (objc_maybe_printable_name): New.
887
30cd1c5d
AS
8882010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
889 Andrew Pinski <pinskia@gmail.com>
890
891 * c-common.h (c_common_mark_addressable_vec): Declare.
892 * c-common.c (c_common_mark_addressable_vec): New function.
893
249a82c4
NP
8942010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
895
896 * c-common.h (objc_set_method_type): Removed.
897 (objc_add_method_declaration): Added boolean argument.
898 (objc_start_method_definition): Same change.
899 (objc_build_method_signature): Same change.
900 * stub-objc.c (objc_set_method_type): Removed.
901 (objc_add_method_declaration): Added boolean argument.
902 (objc_start_method_definition): Same change.
903 (objc_build_method_signature): Same change.
904
977e30bc
NP
9052010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
906
907 * c-common.h (finish_file): Removed.
908 (objc_write_global_declarations): New.
909 * c-opts.c (c_common_parse_file): Do not call finish_file.
910 * stub-objc.c (objc_write_global_declarations): New.
911
da57d1b9
NP
9122010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
913
914 Implemented parsing @synthesize and @dynamic for
915 Objective-C/Objective-C++.
916 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
917 (objc_add_synthesize_declaration): New.
918 (objc_add_dynamic_declaration): New.
919 * c-common.c (c_common_reswords): Add synthesize and dynamic.
920 * stub-objc.c (objc_add_synthesize_declaration): New.
921 (objc_add_dynamic_declaration): New.
922
0069111f
MM
9232010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
924
925 PR target/46041
926 * c-cppbuiltin.c (mode_has_fma): Move function here from
927 builtins.c. Don't use the fma optab, instead just use the
928 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
929 using -save-temps.
930
e426b47b
NP
9312010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
932
933 Merge from 'apple/trunk' branch on FSF servers.
0069111f 934
e426b47b
NP
935 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
936
937 Radar 4330422
938 * c-common.h (objc_non_volatilized_type): New declaration
939 * stub-objc.c (objc_non_volatilized_type): New stub.
940
90fbfdc3
NP
9412010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
942
e426b47b 943 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
944
945 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
946
947 Radar 4133425
948 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 949 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 950
c37d8c30
IS
9512010-10-17 Iain Sandoe <iains@gcc.gnu.org>
952
953 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
954 * c-common.h (enum rid): Add RID_AT_PACKAGE.
955 (objc_ivar_visibility_kind): New enum.
956 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 957 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
958 visibility enum.
959
1b1562a5
MM
9602010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
961
962 * c-cppbuiltin.c (builtin_define_float_constants): Emit
963 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
964 has the appropriate fma builtins.
965 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
966
668ea4b1
IS
9672010-10-14 Iain Sandoe <iains@gcc.gnu.org>
968
1b1562a5 969 merge from FSF apple 'trunk' branch.
668ea4b1 970 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 971
668ea4b1
IS
972 Radars 4436866, 4505126, 4506903, 4517826
973 * c-common.c (c_common_resword): Define @property and its attributes.
974 * c-common.h: Define property attribute enum entries.
975 (OBJC_IS_PATTR_KEYWORD): New.
976 (objc_property_attribute_kind): New enum.
977 Declare objc_set_property_attr (), objc_add_property_variable (),
978 objc_build_getter_call () and objc_build_setter_call ().
979 * stub-objc.c (objc_set_property_attr): New stub.
980 (objc_add_property_variable): Likewise.
981 (objc_build_getter_call): Likewise.
982 (objc_build_setter_call) Likewise.
1b1562a5 983
a1178b30
IS
9842010-10-13 Iain Sandoe <iains@gcc.gnu.org>
985
1b1562a5 986 merge from FSF apple 'trunk' branch.
a1178b30
IS
987 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
988
989 Radar 3803157 (method attributes)
990 * c-common.c (handle_deprecated_attribute): Recognize
991 objc methods as valid declarations.
992 * c-common.h: Declare objc_method_decl ().
1b1562a5 993 * stub-objc.c (objc_method_decl): New stub.
a1178b30 994
a75bfaa6
JM
9952010-10-08 Joseph Myers <joseph@codesourcery.com>
996
997 * c-common.c (parse_optimize_options): Call
998 decode_cmdline_options_to_array_default_mask before
999 decode_options. Update arguments to decode_options.
1000 * c-common.h (c_common_init_options_struct): Declare.
1001 * c-opts.c (c_common_init_options_struct): New. Split out from
1002 c_common_init_options.
1003
f05b9d93
NP
10042010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
1005
1006 Implemented fast enumeration for Objective-C.
1007 * c-common.h (objc_finish_foreach_loop): New.
1008 * stub-objc.c (objc_finish_foreach_loop): New.
1009
1ebe4b4f
JM
10102010-10-05 Joseph Myers <joseph@codesourcery.com>
1011
1012 * c-common.h (struct diagnostic_context): Don't declare here.
1013 (c_common_initialize_diagnostics): Declare using
1014 diagnostic_context typedef.
1015 * c-opts.c (c_common_handle_option): Pass global_dc to
1016 handle_generated_option.
1017
d4d24ba4
JM
10182010-10-04 Joseph Myers <joseph@codesourcery.com>
1019
1020 * c-opts.c (c_common_handle_option): Pass &global_options_set to
1021 handle_generated_option.
1022
478a1c5b
ILT
10232010-10-03 Ian Lance Taylor <iant@google.com>
1024
1025 * c.opt (-fplan9-extensions): New option.
1026
82a1c2fe
FXC
10272010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1028
1029 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
1030 Remove.
1031 (c_cpp_builtins): Call functions from cppbuiltin.c instead
1032 of duplicating code.
1033
92902b1b
IS
10342010-09-30 Iain Sandoe <iains@gcc.gnu.org>
1035
1036 * c-common.c: Add two new entries for @optional
1037 and @required keywords.
1038
1039 merge from FSF 'apple/trunk' branch.
1040 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
1041
1042 Radar 4386773
1043 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
1044 objective-c keywords.
1045 (objc_set_method_opt): New declaration.
1046 * stub-objc.c (objc_set_method_opt): New stub.
1047
46625112
JM
10482010-09-30 Joseph Myers <joseph@codesourcery.com>
1049
1050 * c-common.c (handle_optimize_attribute): Pass &global_options to
1051 cl_optimization_save and cl_optimization_restore.
1052 * c-opts.c (c_common_handle_option): Pass &global_options to
1053 handle_generated_option.
1054 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
1055 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
1056 &global_options to cl_optimization_restore.
1057
49b91f05
NP
10582010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
1059
1060 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
1061 Objective-C/Objective-C++ keywords.
1062
13ed556f 10632010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57
NP
1064
1065 Merge from 'apple/trunk' branch on FSF servers.
1066
1067 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
1068
1069 Radar 4281748
1070 * c-common.h (objc_check_global_decl): New declaration.
1071 * stub-objc.c (objc_check_global_decl): New stub.
1072
f0036cca
JM
10732010-09-29 Joseph Myers <joseph@codesourcery.com>
1074
1075 * c.opt: Don't use VarExists.
1076
e3339d0f
JM
10772010-09-29 Joseph Myers <joseph@codesourcery.com>
1078
1079 * c-common.c (c_cpp_error): Update names of diagnostic_context
1080 members.
1081 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
1082 cl_optimization members.
1083 * c-opts.c (warning_as_error_callback, c_common_handle_option,
1084 sanitize_cpp_opts, finish_options): Update names of cpp_options
1085 members.
1086
1973201f
NP
10872010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1088
1089 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
1090 (objc_is_reserved_word): Removed.
1091 * c-common.c: Updated comments.
1092 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
1093 objc_is_reserved_word.
1094 * stub-objc.c (objc_is_reserved_word): Removed.
1095
f7e71da5
IS
10962010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1097
1098 * c-common.h (objc_add_method_declaration): Adjust prototype to
1099 include attributes.
1100 (objc_start_method_definition): Likewise.
1101 (objc_build_keyword_decl): Likewise.
1102 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
1103 (objc_start_method_definition): Likewise.
1104 (objc_build_keyword_decl): Likewise.
1105
c165dca7
IS
11062010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1107
1108 * c-common.h (objc_start_class_interface): Adjust prototype.
1109 (objc_start_category_interface): Likewise.
1110 (objc_start_protocol): Likewise.
1111 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
1112 (objc_start_class_interface): Likewise.
1113 (objc_start_category_interface): Likewise.
1114
7458026b
ILT
11152010-09-27 Ian Lance Taylor <iant@google.com>
1116
1117 * c-common.c (c_common_attribute_table): Add no_split_stack.
1118 (handle_no_split_stack_attribute): New static function.
1119
b581b85b
NP
11202010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
1121
1122 Merge from 'apple/trunk' branch on FSF servers.
1123
1124 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
1125
1126 Radar 4229905
1127 * c-common.h (objc_have_common_type): New declaration.
1128 * stub-objc.c (objc_have_common_type): New stub.
1129
1130 2005-06-22 Ziemowit Laski <zlaski@apple.com>
1131
1132 Radar 4154928
1133 * c-common.h (objc_common_type): New prototype.
1134 * stub-objc.c (objc_common_type): New stub.
1135
46a4da10
JH
11362010-09-24 Jan Hubicka <jh@suse.cz>
1137
1138 * c-common.c (handle_leaf_attribute): New function.
1139 (struct attribute_spec c_common_att): Add leaf.
1140
e200444e
JM
11412010-09-22 Joseph Myers <joseph@codesourcery.com>
1142
1143 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
1144 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
1145 -dump, -dump=, -imacros, -imacros=, -include, -include=,
1146 -include-barrier, -include-directory, -include-directory=,
1147 -include-directory-after, -include-directory-after=,
1148 -include-prefix, -include-prefix=, -include-with-prefix,
1149 -include-with-prefix=, -include-with-prefix-after,
1150 -include-with-prefix-after=, -include-with-prefix-before,
1151 -include-with-prefix-before=, -no-integrated-cpp,
1152 -no-line-commands, -no-standard-includes, -no-warnings, -output,
1153 -output=, -pedantic, -pedantic-errors, -preprocess,
1154 -print-missing-file-dependencies, -trace-includes, -traditional,
1155 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
1156 -user-dependencies, -verbose, -write-dependencies,
1157 -write-user-dependencies, no-integrated-cpp, traditional): New.
1158
29a80ea6
NP
11592010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1160
1161 PR objc/23710
ac1fc2fc
NP
1162 * c-common.h (objc_start_method_definition): Return bool instead
1163 of void.
1164 * stub-objc.c (objc_start_method_definition): Return bool instead
1165 of void.
1166
11672010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1168
1169 PR objc/25965
1170 * c-common.h (objc_get_interface_ivars): New declaration.
1171 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 1172
de621752
ILT
11732010-09-15 Ian Lance Taylor <iant@google.com>
1174
1175 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 1176 messages. Remove period at end of warning message.
de621752 1177
ba885ec5
NS
11782010-09-09 Nathan Sidwell <nathan@codesourcery.com>
1179
1180 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
1181 (handle_alias_attribute): ... here.
1182 (handle_ifunc_attribute): New.
1183
c5ee1358
MM
11842010-09-06 Mark Mitchell <mark@codesourcery.com>
1185
1186 * c-common.h (do_warn_double_promotion): Declare.
1187 * c-common.c (do_warn_double_promotion): Define.
1188
0a0b3574
MM
11892010-09-05 Mark Mitchell <mark@codesourcery.com>
1190
1191 * c.opt (Wdouble-promotion): New.
1192
d1779886
JM
11932010-09-02 Joseph Myers <joseph@codesourcery.com>
1194
1195 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
1196 fvtable-thunks, fxref): Mark no longer supported in help text.
1197
2d2bd949
JM
11982010-09-02 Joseph Myers <joseph@codesourcery.com>
1199
1200 * c.opt (Wimport, fall-virtual, falt-external-templates,
1201 fdefault-inline, fenum-int-equiv, fexternal-templates,
1202 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
1203 fname-mangling-version-, fnew-abi, fnonnull-objects,
1204 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
1205 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
1206 applicable.
1207 (fhandle-exceptions): Mark with Alias and Warn.
1208 * c-opts.c (c_common_handle_option): Don't handle options marked
1209 as ignored.
1210
5de8299c
JM
12112010-09-02 Joseph Myers <joseph@codesourcery.com>
1212
1213 * c.opt (Wcomments, Werror-implicit-function-declaration,
1214 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
1215 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
1216 aliases.
1217 * c-common.c (option_codes): Use OPT_Wcomment instead of
1218 OPT_Wcomments.
1219 * c-opts.c (warning_as_error_callback, c_common_handle_option):
1220 Don't handle options marked as aliases.
1221
0ceb0201
RG
12222010-08-25 Richard Guenther <rguenther@suse.de>
1223
1224 * c-common.c (c_common_get_alias_set): Remove special
1225 handling for pointers.
1226
ac47786e
NF
12272010-08-20 Nathan Froyd <froydnj@codesourcery.com>
1228
1229 * c-common.c: Use FOR_EACH_VEC_ELT.
1230 * c-gimplify.c: Likewise.
1231 * c-pragma.c: Likewise.
1232
c878765b
JM
12332010-08-16 Joseph Myers <joseph@codesourcery.com>
1234
1235 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
1236 RejectDriver.
1237 (MMDX): Change back to MMD. Mark NoDriverArg instead of
1238 RejectDriver.
1239 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
1240 instead of OPT_MDX and OPT_MMDX.
1241
603349bf
JM
12422010-08-16 Joseph Myers <joseph@codesourcery.com>
1243
1244 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
1245
644fa7ac
JM
12462010-08-12 Joseph Myers <joseph@codesourcery.com>
1247
1248 * c.opt (MD, MMD): Change to MDX and MMDX.
1249 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
1250
481e1176
JM
12512010-08-11 Joseph Myers <joseph@codesourcery.com>
1252
1253 * c-opts.c (c_common_handle_option): Call handle_generated_option
1254 instead of handle_option.
1255
ac8dc9f7
NF
12562010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1257
1258 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
1259 (maybe_apply_renaming_pragma): Delete unneeded declarations.
1260
4f8c876d
NF
12612010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1262
1263 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
1264 (pending_redefine_extname): Change type to a VEC.
1265 (add_to_renaming_pragma_list): Update for new type of
1266 pending_redefine_extname.
ac8dc9f7 1267 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 1268
3b0c690e
AC
12692010-08-04 Arnaud Charlet <charlet@adacore.com>
1270
1271 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
1272 visited.
1273 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
1274 decide whether a type has already been declared/seen.
1275 Do not go to the original type.
1276 (dump_nested_types): New parameter forward.
1277 Generate forward declaration if needed and mark type as visited.
1278 (print_ada_declaration): Call dump_nested_types if not already done.
1279 Mark types as visited.
1280
1890bccc
JM
12812010-08-03 Joseph Myers <joseph@codesourcery.com>
1282
1283 * c.opt (-print-pch-checksum): Remove option.
1284 * c-opts.c (c_common_handle_option): Don't handle
1285 OPT_print_pch_checksum.
1286
5f20c657
JM
12872010-07-27 Joseph Myers <joseph@codesourcery.com>
1288
1289 * c-common.h (c_common_handle_option): Update prototype and return
1290 value type.
1291 * c-opts.c (c_common_handle_option): Update prototype and return
1292 value type. Update calls to handle_option and
1293 enable_warning_as_error.
1294
f551f80c
JJ
12952010-07-27 Jakub Jelinek <jakub@redhat.com>
1296
1297 PR c/45079
1298 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
1299
61ff2bdc
JM
13002010-07-27 Joseph Myers <joseph@codesourcery.com>
1301
1302 * c-common.h (c_common_missing_argument): Remove.
1303 * c-opts.c (c_common_missing_argument): Remove.
1304 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
1305 idirafter, imacros, include, isysroot, isystem, iquote): Add
1306 MissingArgError.
1307 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
1308
7a9bf9a4
JM
13092010-07-27 Joseph Myers <joseph@codesourcery.com>
1310
1311 * c-common.h (c_common_option_lang_mask,
1312 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
1313 New.
1314 (c_common_init_options): Update prototype.
1315 * c-opts.c (c_common_option_lang_mask): New.
1316 (c_common_initialize_diagnostics): Split out of
1317 c_common_init_options.
1318 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
1319 New.
1320 (c_common_init_options): Update prototype. Use decoded options in
1321 search for -lang-asm.
1322
910ad8de
NF
13232010-07-15 Nathan Froyd <froydnj@codesourcery.com>
1324
1325 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
1326 * c-format.c: Likewise.
1327
718f9c0f
MLI
13282010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
1329
1330 * c-common.h: Include diagnostic-core.h. Error if already
1331 included.
1332 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
1333
4d451982
MLI
13342010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1335
1336 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
1337 Do not include expr.h
1338 (vector_mode_valid_p): Move here.
1339
119fe915
SB
13402010-06-21 DJ Delorie <dj@redhat.com>
1341
1342 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
1343 allow these pragmas anywhere.
1344
13452010-06-14 Jakub Jelinek <jakub@redhat.com>
1346
1347 PR bootstrap/44509
1348 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
1349 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
1350 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
1351 ggc_strdup instead of xstrdup.
1352
13532010-06-10 Jakub Jelinek <jakub@redhat.com>
1354
1355 * c-cppbuiltin.c: Include cpp-id-data.h.
1356 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
1357 (lazy_hex_fp_value): New function.
1358 (builtin_define_with_hex_fp_value): Provide definitions lazily.
1359
6662d794
MLI
13602010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1361
1362 * c-gimplify.c: Do not include tree-flow.h
1363
38f8b050
JR
13642010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
1365
1366 PR other/44034
1367 * c-common.c: Rename targetm member:
1368 targetm.enum_va_list -> targetm.enum_va_list_p
1369
9589f23e
AS
13702010-06-28 Anatoly Sokolov <aesok@post.ru>
1371
1372 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
1373
3b06d379
SB
13742010-06-28 Steven Bosscher <steven@gcc.gnu.org>
1375
1376 * c-cppbuiltin.c: Do not include except.h.
1377
d166d4c3
AK
13782010-06-24 Andi Kleen <ak@linux.intel.com>
1379
1380 * c-common.c (warn_for_omitted_condop): New.
1381 * c-common.h (warn_for_omitted_condop): Add prototype.
1382
70cb8be6
JM
13832010-06-21 Joseph Myers <joseph@codesourcery.com>
1384
1385 * c.opt (lang-objc): Remove.
1386 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
1387
a4c97feb
JR
13882010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
1389
1390 * c-opts.c: Include "tm_p.h".
1391
6e2f1956
JM
13922010-06-20 Joseph Myers <joseph@codesourcery.com>
1393
1394 * c-common.c (parse_optimize_options): Update call to
1395 decode_options.
1396
bc87224e
NF
13972010-06-18 Nathan Froyd <froydnj@codesourcery.com>
1398
1399 * c-common.c (record_types_used_by_current_var_decl): Adjust for
1400 new type of types_used_by_cur_var_decl.
1401
b49cf425
JR
14022010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
1403
1404 PR bootstrap/44512
1405 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
1406 for C++ standard compliance.
1407
59f9c2ed
JM
14082010-06-16 Jason Merrill <jason@redhat.com>
1409
1410 * c.opt: Add -Wnoexcept.
1411
33766b66
RG
14122010-06-16 Richard Guenther <rguenther@suse.de>
1413
1414 PR c/44555
1415 * c-common.c (c_common_truthvalue_conversion): Remove
1416 premature and wrong optimization concering ADDR_EXPRs.
1417
eff7e30c
AC
14182010-06-15 Arnaud Charlet <charlet@adacore.com>
1419
1420 * c-ada-spec.c (dump_sloc): Remove column info.
1421 (is_simple_enum): New function.
1422 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
1423 enum types when relevant.
1424
6312e84d
MLI
14252010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1426
1427 * c-common.c (conversion_warning): Warn at expression
1428 location.
1429
1cb42611
JM
14302010-06-10 Joseph Myers <joseph@codesourcery.com>
1431
1432 * c-opts.c (c_common_handle_option): Don't handle
1433 OPT_fshow_column.
1434
a9429e29
LB
14352010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1436
1437 * c-pragma.c (push_alignment): Use typed GC allocation.
1438 (handle_pragma_push_options): Likewise.
1439
1440 * c-common.c (parse_optimize_options): Likewise.
1441
1442 * c-common.h (struct sorted_fields_type): Add variable_size GTY
1443 option.
1444
5498f011
JM
14452010-06-07 Joseph Myers <joseph@codesourcery.com>
1446
1447 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
1448 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1449 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1450 flag_signed_bitfields, warn_strict_null_sentinel,
1451 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
1452 flag_gen_declaration, flag_no_gnu_keywords,
1453 flag_implement_inlines, flag_implicit_templates,
1454 flag_implicit_inline_templates, flag_optional_diags,
1455 flag_elide_constructors, flag_default_inline, flag_rtti,
1456 flag_conserve_space, flag_access_control, flag_check_new,
1457 flag_new_for_scope, flag_weak, flag_working_directory,
1458 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
1459 flag_enforce_eh_specs, flag_threadsafe_statics,
1460 flag_pretty_templates): Remove.
1461 * c-common.h (flag_preprocess_only, flag_nil_receivers,
1462 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
1463 flag_replace_objc_classes, flag_undef, flag_no_builtin,
1464 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1465 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1466 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
1467 flag_no_gnu_keywords, flag_implement_inlines,
1468 flag_implicit_templates, flag_implicit_inline_templates,
1469 flag_optional_diags, flag_elide_constructors, flag_default_inline,
1470 flag_rtti, flag_conserve_space, flag_access_control,
1471 flag_check_new, flag_new_for_scope, flag_weak,
1472 flag_working_directory, flag_use_cxa_atexit,
1473 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
1474 flag_threadsafe_statics, flag_pretty_templates,
1475 warn_strict_null_sentinel): Remove.
1476 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
1477 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
1478 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
1479 fimplicit-inline-templates, fimplicit-templates,
1480 flax-vector-conversions, fms-extensions, fnil-receivers,
1481 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
1482 frtti, fshort-double, fshort-enums, fshort-wchar,
1483 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
1484 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
1485 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
1486 gen-decls, undef): Use Var.
1487 (fdefault-inline, foptional-diags): Document as doing nothing.
1488 * c-opts.c (c_common_handle_option): Remove cases for options now
1489 using Var. Mark ignored options as such.
1490
39dabefd
SB
14912010-06-05 Steven Bosscher <steven@gcc.gnu.org>
1492
1493 * c-common.c: Moved to here from parent directory.
1494 * c-common.def: Likewise.
1495 * c-common.h: Likewise.
1496 * c-cppbuiltin.c: Likewise.
1497 * c-dump.c: Likewise.
1498 * c-format.c: Likewise.
1499 * c-format.h : Likewise.
1500 * c-gimplify.c: Likewise.
1501 * c-lex.c: Likewise.
1502 * c-omp.c: Likewise.
1503 * c.opt: Likewise.
1504 * c-opts.c: Likewise.
1505 * c-pch.c: Likewise.
1506 * c-ppoutput.c: Likewise.
1507 * c-pragma.c: Likewise.
1508 * c-pragma.h: Likewise.
1509 * c-pretty-print.c: Likewise.
1510 * c-pretty-print.h: Likewise.
1511 * c-semantics.c: Likewise.
1512 * stub-objc.c: Likewise.
1513
1514 * c-common.c: Include gt-c-family-c-common.h.
1515 * c-pragma.c: Include gt-c-family-c-pragma.h.
1516\f
04695783 1517Copyright (C) 2010, 2011 Free Software Foundation, Inc.
39dabefd
SB
1518
1519Copying and distribution of this file, with or without modification,
1520are permitted in any medium without royalty provided the copyright
1521notice and this notice are preserved.