]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
* config/i386/i386.md (splitters for int-float conversion): Use
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
0d84dc2d 12011-10-31 Jason Merrill <jason@redhat.com>
2
67031f52 3 * c.opt (-fdeduce-init-list): Off by default.
4
0d84dc2d 5 PR c++/50920
6 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
7 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
8 and -Wc++11-compat.
9 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
10
66f24c41 112011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
12
13 PR c++/30066
14 * c.opt (fvisibility-inlines-hidden): Description change.
15
244db24d 162011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
17
18 Implement C++11 user-defined literals.
19 * c-common.c (build_userdef_literal): New.
20 * c-common.def: New tree code.
21 * c-common.h (tree_userdef_literal): New tree struct and accessors.
22 * c-lex.c (interpret_float): Add suffix parm.
23 (c_lex_with_flags): Build literal tokens.
24
235be70f 252011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
26
27 PR c++/50841
28 Revert:
29 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
30
31 PR c++/50810
32 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
33 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
34 Wnarrowing for C++0x and C++98.
35 * c.opt ([Wnarrowing]): Update.
36
4fe0fb1c 372011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
38
39 PR c++/50810
40 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
41 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
42 Wnarrowing for C++0x and C++98.
43 * c.opt ([Wnarrowing]): Update.
44
5f7504f9 452011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
46
47 PR c++/45385
48 * c-common.c (conversion_warning): Remove code looking for
49 artificial operands.
50
2a688977 512011-10-18 Dodji Seketeli <dodji@redhat.com>
52
53 PR bootstrap/50760
54 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
55 !NO_IMPLICIT_EXTERN_C.
56
326e3391 572011-10-17 Michael Spertus <mike_spertus@symantec.com>
58
59 * c-common.c (c_common_reswords): Add __bases,
60 __direct_bases.
61 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
62
632011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
64
65 PR c++/50757
66 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
67
62db153a 682011-10-15 Tom Tromey <tromey@redhat.com>
69 Dodji Seketeli <dodji@redhat.com>
70
71 * c.opt (fdebug-cpp): New option.
72 * c-opts.c (c_common_handle_option): Handle the option.
73 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
74 output stream in parameter. Factorized from ...
75 (maybe_print_line): ... this. Dump location debug information when
76 -fdebug-cpp is in effect.
77 (print_line_1): New static function. Takes an output stream in
78 parameter. Factorized from ...
79 (print_line): ... here. Dump location information when -fdebug-cpp
80 is in effect.
81 (scan_translation_unit): Dump location information when
82 -fdebug-cpp is in effect.
83
ce70f433 842011-10-15 Tom Tromey <tromey@redhat.com>
85 Dodji Seketeli <dodji@redhat.com>
86
87 * c.opt (ftrack-macro-expansion): New option. Handle it with and
88 without argument.
89 * c-opts.c (c_common_handle_option)<case
90 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
91 cases. Handle -ftrack-macro-expansion with and without argument.
92
97bfb9ef 932011-10-15 Tom Tromey <tromey@redhat.com>
94 Dodji Seketeli <dodji@redhat.com>
95
96 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
97 (print_line, cb_define, do_line_change): Adjust to avoid touching
98 the internals of struct line_map. Use the public API instead.
99 * c-pch.c (c_common_read_pch): Likewise.
100 * c-lex.c (fe_file_change): Likewise.
101
326e3391 1022011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
103
104 PR c++/17212
105 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
106
1072011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
108
109 PR c++/33067
110 * c-pretty-print.c (pp_c_floating_constant): Output
111 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
112
b9a16870 1132011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
114
115 * c-common.c (def_builtin_1): Delete old interface with two
116 parallel arrays to hold standard builtin declarations, and replace
117 it with a function based interface that can support creating
118 builtins on the fly in the future. Change all uses, and poison
119 the old names. Make sure 0 is not a legitimate builtin index.
120 * c-omp.c (c_finish_omp_barrier): Ditto.
121 (c_finish_omp_taskwait): Ditto.
122 (c_finish_omp_flush): Ditto.
123
c7964868 1242011-10-11 Tristan Gingold <gingold@adacore.com>
125
126 * c.opt: (fallow-parameterless-variadic-functions): New.
127
a4e3ffad 1282011-09-08 Dodji Seketeli <dodji@redhat.com>
129
130 PR c++/33255 - Support -Wunused-local-typedefs warning
131 * c-common.h (struct c_language_function::local_typedefs): New
132 field.
133 (record_locally_defined_typedef, maybe_record_typedef_use)
134 (maybe_warn_unused_local_typedefs): Declare new functions.
135 * c-common.c (record_locally_defined_typedef)
136 (maybe_record_typedef_use)
137 (maybe_warn_unused_local_typedefs): Define new functions.
138 * c.opt: Declare new -Wunused-local-typedefs flag.
139
737a23cc 1402011-09-06 Eric Botcazou <ebotcazou@adacore.com>
141
142 PR middle-end/50266
143 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
144 computations.
145
7542c3b4 1462011-09-05 Richard Guenther <rguenther@suse.de>
147
148 * c-common.c (complete_array_type): Use ssize_int (-1) instead
149 of integer_minus_one_node for empty array upper bounds.
150
1dc92c59 1512011-08-28 Dodji Seketeli <dodji@redhat.com>
152
153 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
154 it's the first time it's being called on this main TU.
155
2bdf2b6e 1562011-08-24 Richard Guenther <rguenther@suse.de>
157
158 PR c/49396
159 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
160
1612011-08-22 Gabriel Charette <gchare@google.com>
6ea2c7a3 162
163 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
164 defined in cpp_init_builtins and c_cpp_builtins.
165
bff4ad11 1662011-08-19 Joseph Myers <joseph@codesourcery.com>
167
168 * c-common.c (c_common_reswords): Add __builtin_complex.
169 * c-common.h (RID_BUILTIN_COMPLEX): New.
170
985c6e3a 1712011-08-18 Joseph Myers <joseph@codesourcery.com>
172
173 * c-common.c (c_common_reswords): Add _Noreturn.
174 (keyword_is_function_specifier): Handle RID_NORETURN.
175 * c-common.h (RID_NORETURN): New.
176
7dfa155b 1772011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
178
179 * c-common.c (unsafe_conversion_p): New function. Check if it is
180 unsafe to convert an expression to the type.
181 (conversion_warning): Adjust, use unsafe_conversion_p.
182 * c-common.h (unsafe_conversion_p): New function declaration.
183
2169f33b 1842011-08-02 Jakub Jelinek <jakub@redhat.com>
185
186 * c-common.h (c_finish_omp_atomic): Adjust prototype.
187 (c_finish_omp_taskyield): New prototype.
188 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
189 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
190 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
191 or RHS1 have side-effects, evaluate those too in the right spot,
192 if it is a decl and LHS is also a decl, error out if they
193 aren't the same.
194 (c_finish_omp_taskyield): New function.
195 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
196 * c-pragma.c (omp_pragmas): Add taskyield.
197 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
198 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
199 PRAGMA_OMP_CLAUSE_MERGEABLE.
200
ab77850e 2012011-07-25 Dodji Seketeli <dodji@redhat.com>
202
203 * c-common.h (set_underlying_type): Remove parm name from
204 declaration.
205
6ee97920 2062011-07-25 Romain Geissler <romain.geissler@gmail.com>
207
208 * c-pretty-print.h: Search c-common.h in c-family.
209
dc251364 2102011-07-22 Jason Merrill <jason@redhat.com>
211
1a2a35f0 212 PR c++/49793
213 * c.opt (Wnarrowing): New.
214
27282252 215 PR c++/30112
216 * c-common.h: Declare c_linkage_bindings.
217 * c-pragma.c (handle_pragma_redefine_extname): Use it.
218
dc251364 219 PR c++/49813
220 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
221 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
222 as flag_isoc99 for 'restrict'.
223 (pp_c_specifier_qualifier_list): Likewise for _Complex.
224
fc501191 2252011-07-21 Ian Lance Taylor <iant@google.com>
226
227 PR middle-end/49705
228 * c-common.c (c_disable_warnings): New static function.
229 (c_enable_warnings): New static function.
230 (c_fully_fold_internal): Change local unused_p to bool. Call
231 c_disable_warnings and c_enable_warnings rather than change
232 c_inhibit_evaluation_warnings.
233
07b8f133 2342011-07-20 Jason Merrill <jason@redhat.com>
235
236 PR c++/6709 (DR 743)
237 PR c++/42603 (DR 950)
238 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
239 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
240 (CPP_DECLTYPE): New.
241 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
242
2cc66f2a 2432011-07-19 Richard Guenther <rguenther@suse.de>
244
245 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
246 * c-omp.c (c_finish_omp_for): Likewise.
247
3c802a1e 2482011-07-12 Eric Botcazou <ebotcazou@adacore.com>
249
250 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
251 body on the next line.
252
98a33d9f 2532011-07-08 Jason Merrill <jason@redhat.com>
254
3115bda0 255 PR c++/45437
256 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
257
98a33d9f 258 PR c++/49673
259 * c-common.c (c_apply_type_quals_to_decl): Don't check
260 TYPE_NEEDS_CONSTRUCTING.
261
c38a75b7 2622011-07-06 Richard Guenther <rguenther@suse.de>
263
264 * c-common.c (c_common_nodes_and_builtins):
265 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
266
e593356b 2672011-07-05 Richard Guenther <rguenther@suse.de>
268
269 * c-common.c (c_common_nodes_and_builtins): Build all common
270 tree nodes first.
271
fca0886c 2722011-06-27 Jakub Jelinek <jakub@redhat.com>
273
a68f7a8d 274 * c-common.h (c_tree_chain_next): New static inline function.
275
fca0886c 276 * c-common.c (check_builtin_function_arguments): Handle
277 BUILT_IN_ASSUME_ALIGNED.
278
2797f13a 2792011-06-21 Andrew MacLeod <amacleod@redhat.com>
280
281 * c-common.c: Add sync_ or SYNC__ to builtin names.
282 * c-omp.c: Add sync_ or SYNC__ to builtin names.
9cad95b7 283
2842011-06-20 Pierre Vittet <piervit@pvittet.com>
285
286 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
287 handler.
288 (gen_pragma_handler): New union.
289 (internal_pragma_handler): New type.
290 (c_register_pragma_with_data)
291 (c_register_pragma_with_expansion_and_data): New functions.
292
293 * c-pragma.c (registered_pragmas, c_register_pragma_1)
294 (c_register_pragma, c_register_pragma_with_expansion)
295 (c_invoke_pragma_handler): Changed to work with
296 internal_pragma_handler.
297 (c_register_pragma_with_data)
298 (c_register_pragma_with_expansion_and_data): New functions.
299
218e3e4e 3002011-06-14 Joseph Myers <joseph@codesourcery.com>
301
302 * c-common.c: Include common/common-target.h.
303 (handle_section_attribute): Use
304 targetm_common.have_named_sections.
305 * c-cppbuiltin.c: Include common/common-target.h.
306 (c_cpp_builtins): Use targetm_common.except_unwind_info.
307
41e53ed2 3082011-06-10 Richard Guenther <rguenther@suse.de>
309
310 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
311 to print a IDENTIFIER_NODE.
312
a6f06169 3132011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
314 Joseph Myers <joseph@codesourcery.com>
315
316 * c.opt (fbuilding-libgcc): New option.
317 * c-cppbuiltin.c (c_cpp_builtins): Define
318 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
319
1ea9269b 3202011-06-07 Jason Merrill <jason@redhat.com>
321
8ce59854 322 * c-common.c (max_tinst_depth): Lower default to 900.
323
1ea9269b 324 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
325
1af0124d 3262011-06-07 Richard Guenther <rguenther@suse.de>
327
328 * c-common.c (c_common_nodes_and_builtins): Do not set
329 size_type_node or call set_sizetype.
330
0e9a4c01 3312011-06-07 Dodji Seketeli <dodji@redhat.com>
332
333 PR debug/49130
334 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
335 type when using pointer comparison to compare types.
336
90b40725 3372011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
338
339 * c.opt: Add -Wdelete-non-virtual-dtor.
340 * c-opts.c (c_common_handle_option): Include it in -Wall.
341
fc9c9e87 3422011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
343
344 PR bootstrap/49190
345
346 Revert:
347 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
348
349 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
350 not tree_common.
351
d0389adc 3522011-05-27 Jakub Jelinek <jakub@redhat.com>
353
354 PR c++/49165
355 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
356 C++ don't call c_common_truthvalue_conversion on void type arms.
357
cacfdc02 3582011-05-27 Nathan Froyd <froydnj@codesourcery.com>
359
360 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
361 (stmt_list_stack): Define.
362 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
363 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
364
027fc6ef 3652011-05-26 Nathan Froyd <froydnj@codesourcery.com>
366
367 * c-common.c (warning_candidate_p): Check for BLOCKs.
368
f21317a1 3692011-05-26 Nathan Froyd <froydnj@codesourcery.com>
370
371 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
372 not tree_common.
373
789e953d 3742011-05-25 Jakub Jelinek <jakub@redhat.com>
375
376 * c-common.c (def_fn_type): Remove extra va_end.
377
7f506bca 3782011-05-23 Jason Merrill <jason@redhat.com>
379
380 PR c++/48106
381 * c-common.c (c_common_get_narrower): New.
382 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
383
774e9d58 3842011-05-23 Nathan Froyd <froydnj@codesourcery.com>
385
386 * c-common.h (check_function_arguments): Tweak prototype of
387 check_function_arguments.
388 * c-common.c (check_function_arguments): Likewise. Adjust
389 calls to check_function_nonnull, check_function_format, and
390 check_function_sentinel.
391 (check_function_sentinel): Take a FUNCTION_TYPE rather than
392 separate attributes and typelist arguments. Use
393 FOREACH_FUNCTION_ARGS to iterate over argument types.
394
23407dc9 3952011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
396
397 * c-common.c (c_common_reswords): Reorder.
398 * c-common.h (rid): Likewise.
399
3a939d12 4002011-05-10 Nathan Froyd <froydnj@codesourcery.com>
401
402 * c-common.c (def_fn_type): Don't call build_function_type, call
403 build_function_type_array or build_varargs_function_type_array
404 instead.
405 (c_common_nodes_and_builtins): Likewise.
406
b6e3dd65 4072011-05-05 Nathan Froyd <froydnj@codesourcery.com>
408
409 * c-common.c (c_add_case_label): Omit the loc argument to
410 build_case_label.
411 * c-common.h (build_case_label): Remove.
412 * c-semantics.c (build_case_label): Remove.
413
4232a958 4142011-05-05 Joseph Myers <joseph@codesourcery.com>
415
416 * c-objc.h (objc_start_method_definition): Update prototype.
417 * stub-objc.c (objc_start_method_definition): Add extra parameter.
418
d0af78c5 4192011-05-04 Nathan Froyd <froydnj@codesourcery.com>
420
421 * c-common.c (check_main_parameter_types): Reindent. Don't use
422 TYPE_ARG_TYPES directly.
423 (handle_nonnull_attribute): Likewise.
424 (sync_resolve_params): Likewise.
425 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
426 to check_format_string.
427 (handle_format_attribute): Likewise.
428 (check_format_string): Take a function type to examine instead of
429 a type list. Use a function_arg_iterator to step through argument
430 types.
431
ceb7b692 4322011-05-04 Richard Guenther <rguenther@suse.de>
433
434 * c-common.c (fix_string_type): Use size_int for index type bounds.
435 (start_fname_decls): Do not pass NULL to build_int_cst.
436 (c_init_attributes): Likewise.
437 * c-lex.c (c_lex_with_flags): Likewise.
438
c66c81be 4392011-04-27 Jason Merrill <jason@redhat.com>
440
441 * c-common.c (make_tree_vector_from_list): New.
442 * c-common.h: Declare it.
443
16930c72 4442011-04-26 Richard Guenther <rguenther@suse.de>
445
446 PR preprocessor/48248
447 * c-ppoutput.c (maybe_print_line): Always optimize newlines
448 for output size with -P.
449
23407dc9 4502011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
451
452 * c-common.c (struct c_common_resword): Add __underlying_type.
453 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
454
dd045aee 4552011-04-20 Jim Meyering <meyering@redhat.com>
456
457 * c-format.c (init_dollar_format_checking): Remove useless
458 if-before-free.
459
394dd737 4602011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
461
462 * c-objc.h (objc_get_interface_ivars): Removed.
23407dc9 463 (objc_detect_field_duplicates): New.
394dd737 464 * stub-objc.c: Likewise.
23407dc9 465
a758bf7d 4662011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
467
468 * stub-objc.c (objc_declare_protocols): Renamed to
469 objc_declare_protocol.
470 * c-objc.h: Likewise.
23407dc9 471
29d7200d 4722011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
473
474 * stub-objc.c (objc_declare_class): Updated argument name.
475
9b88d08d 4762011-04-12 Nathan Froyd <froydnj@codesourcery.com>
477
478 * c-common.h (c_common_init_ts): Declare.
479 * c-common.c (c_common_init_ts): Define.
480
4185cf58 4812011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
482
483 * c-objc.h (objc_build_message_expr): Updated prototype.
484 * stub-objc.c (objc_build_message_expr): Likewise.
485
5a90471f 4862011-04-12 Martin Jambor <mjambor@suse.cz>
487
488 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
489 of cgraph_node.
490
783bb57e 4912011-04-11 Richard Guenther <rguenther@suse.de>
492
493 * c-common.c (complete_array_type): Build a range type of
494 proper type.
495
c33080b9 4962011-04-08 Nathan Froyd <froydnj@codesourcery.com>
497
498 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
499 (handle_type_generic_attribute): Likewise.
500
f8913d47 5012011-04-07 Jason Merrill <jason@redhat.com>
502
503 PR c++/48450
504 * c-common.c (c_common_truthvalue_conversion): Don't ignore
505 conversion from C++0x scoped enum.
506
c94b1d0e 5072011-04-06 Joseph Myers <joseph@codesourcery.com>
508
509 * c-target-def.h: New file.
510 * c-target.def: New file.
511 * c-target.h: New file.
512 * c-common.c (targetcm): Don't define here.
513 * c-common.h (default_handle_c_option): Declare.
514 * c-format.c: Include c-target.h instead of target.h.
515 * c-opts.c: Include c-target.h instead of target.h. Explicitly
516 include tm.h.
517 (default_handle_c_option): Move from targhooks.c.
518
acb10f41 5192011-03-29 Jakub Jelinek <jakub@redhat.com>
520
521 PR preprocessor/48248
522 * c-ppoutput.c (print): Add src_file field.
523 (init_pp_output): Initialize it.
524 (maybe_print_line): Don't optimize by adding up to 8 newlines
525 if map->to_file and print.src_file are different file.
526 (print_line): Update print.src_file.
527
82715bcd 5282011-03-25 Kai Tietz <ktietz@redhat.com>
529
530 * c-ada-spec.c (compare_comment): Use filename_cmp
531 instead of strcmp for filename.
532
451c8e2f 5332011-03-25 Jeff Law <law@redhat.com>
534
535 * c-family/c-common.c (def_fn_type): Add missing va_end.
536
3c47771c 5372011-03-25 Jason Merrill <jason@redhat.com>
538
539 * c.opt: Add -std=c++03.
540
97e6200f 5412011-03-22 Eric Botcazou <ebotcazou@adacore.com>
542
543 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
544
ac86af5d 5452011-03-17 Kai Tietz
546
547 PR target/12171
ee212425 548 * c-pretty-print.c (pp_c_specifier_qualifier_list):
549 Display allowed attributes for function pointer types.
550 (pp_c_attributes_display): New function to display
551 attributes having affects_type_identity flag set to true.
552 * c-pretty-print.h (pp_c_attributes_display): New prototype.
553
ac86af5d 554 * c-common.c (c_common_attribute_table):
555 Add new element.
556 (c_common_format_attribute_table): Likewise.
557
914d1151 5582011-03-18 Jason Merrill <jason@redhat.com>
559
69788bdf 560 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
561 * c-common.h: Don't declare it here.
562 * c-common.c: Or define it here.
563 * c-opts.c (c_common_handle_option): Or set it here.
564
914d1151 565 PR c++/35315
566 * c-common.c (handle_transparent_union_attribute): Don't
567 make a duplicate type in C++.
568
54cf6eed 5692011-03-15 Jason Merrill <jason@redhat.com>
570
571 * c-common.c (max_constexpr_depth): New.
572 * c-common.h: Declare it.
573 * c-opts.c (c_common_handle_option): Set it.
574 * c.opt (fconstexpr-depth): New option.
575
02cb1060 5762011-03-11 Jason Merrill <jason@redhat.com>
577
9bf1c74e 578 * c-common.c (attribute_takes_identifier_p): Add missing const.
579
02cb1060 580 PR c++/46803
581 * c-common.c (attribute_takes_identifier_p): Assume that an
582 unknown attribute takes an identifier.
583
ecf2703d 5842011-03-07 Nathan Froyd <froydnj@codesourcery.com>
585
586 PR c/47786
587 * c-common.c (c_type_hash): Call list_length instead of iterating
588 through DECL_CHAIN. Rename 'i' to 'n_elements'.
589
2b19dfe4 5902011-02-19 Jakub Jelinek <jakub@redhat.com>
591
592 PR c/47809
593 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
594
29cf2335 5952011-02-17 Iain Sandoe <iains@gcc.gnu.org>
596
597 * c.opt (fobjc-abi-version=) New.
598 (fobjc-nilcheck): New.
599
fad3f658 6002011-02-03 Nathan Froyd <froydnj@codesourcery.com>
601
602 PR c++/46890
603 * c-common.h (keyword_is_decl_specifier): Declare.
604 * c-common.c (keyword_is_decl_specifier): Define.
605 (keyword_is_function_specifier): New function.
606
a12319b3 6072011-01-26 Jakub Jelinek <jakub@redhat.com>
608
609 PR c/47473
610 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
611 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
612 REAL_TYPE.
613
5c128dc8 6142011-01-26 Arnaud Charlet <charlet@adacore.com>
615
616 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
617
8d67b0c7 6182011-01-26 Jakub Jelinek <jakub@redhat.com>
619
620 PR pch/47430
621 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
622 after init_c_lex if pch_file is set.
623
0675168d 6242011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
625
e8911163 626 PR c++/43601
0675168d 627 * c.opt (-fkeep-inline-dllexport): New switch.
628
0725e25c 6292011-01-12 Richard Guenther <rguenther@suse.de>
630
631 PR middle-end/32511
632 * c-common.c (handle_weak_attribute): Warn instead of error
633 on declaring an inline function weak.
634
fdd84b77 6352011-01-05 Tom Tromey <tromey@redhat.com>
636
637 * c-common.h (lvalue_error): Update.
638 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
639 not error.
640
e6e73d14 6412010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
642
d67e8485 643 PR objc/47075
644 * c-objc.h (objc_finish_message_expr): Added argument to
645 prototype.
646
a36cf284 6472010-12-22 Nathan Froyd <froydnj@codesourcery.com>
648
649 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
650 Use prototype_p.
651
33b3681f 6522010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
653
654 * c-objc.h (objc_maybe_warn_exceptions): New.
655 * stub-objc.c (objc_maybe_warn_exceptions): New.
656
a1f90215 6572010-12-10 Nathan Froyd <froydnj@codesourcery.com>
658
659 * c-common.h (readonly_error): Declare.
660 * c-common.c (readonly_error): Define.
661
b1bbc8e5 6622010-12-09 Nathan Froyd <froydnj@codesourcery.com>
663
664 * c-common.h (invalid_indirection_error): Declare.
665 * c-common.c (invalid_indirection_error): Define.
666
b0d55af9 6672010-12-03 Richard Guenther <rguenther@suse.de>
668
669 PR c/46745
670 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
671 (pp_c_unary_expression): Likewise.
672 (pp_c_expression): Likewise.
673
d7489d8d 6742010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
675
676 * c-common.h (objc_finish_function): New.
677 (objc_non_volatilized_type): Removed.
678 (objc_type_quals_match): Removed.
679 * stub-objc.c (objc_finish_function): New.
680 (objc_non_volatilized_type): Removed.
681 (objc_type_quals_match): Removed.
682
92468061 6832010-11-30 Joseph Myers <joseph@codesourcery.com>
684
685 * c-common.h (parse_optimize_options): Declare.
686 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
687 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
688
967958e4 6892010-11-29 Joseph Myers <joseph@codesourcery.com>
690
691 * c-opts.c (check_deps_environment_vars): Use getenv instead of
692 GET_ENVIRONMENT.
693 * c-pch.c (O_BINARY): Don't define here.
694 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
695
b213bf24 6962010-11-25 Joseph Myers <joseph@codesourcery.com>
697
698 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
699 targetm.except_unwind_info.
700
9faf44d6 7012010-11-23 Joseph Myers <joseph@codesourcery.com>
702
703 * c-opts.c (c_common_handle_option): Pass location to
704 set_struct_debug_option.
705
79396169 7062010-11-23 Joseph Myers <joseph@codesourcery.com>
707
708 * c-common.c (visibility_options): Move from ../opts.c.
709 * c-common.h (struct visibility_flags, visibility_options):
710 Declare here.
711 * c-opts.c (finish_options): Rename to c_finish_options.
712 (c_common_init): Update call to finish_options.
713
b4aa4123 7142010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
715
716 PR objc/34033
717 * c-lex.c (lex_string): Check that each string in an Objective-C
718 string concat sequence starts with either one or zero '@', and
719 that there are no spurious '@' signs at the end.
720
3e0e49f2 7212010-11-20 Joseph Myers <joseph@codesourcery.com>
722
723 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
724 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
725 HANDLE_PRAGMA_VISIBILITY.
726 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
727 HANDLE_PRAGMA_VISIBILITY): Don't define.
728 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
729
a9ffdd35 7302010-11-20 Nathan Froyd <froydnj@codesourcery.com>
731
732 PR c++/16189
733 PR c++/36888
734 PR c++/45331
735 * c-common.h (keyword_begins_type_specifier): Declare.
736 (keyword_is_storage_class_specifier): Declare.
737 (keyword_is_type_qualifier): Declare.
738 * c-common.c (keyword_begins_type_specifier): New function.
739 (keyword_is_storage_class_specifier): New function.
740 (keyword_is_type_qualifier): Declare.
741
93be21c0 7422010-11-19 Joseph Myers <joseph@codesourcery.com>
743
744 PR c/46547
745 * c-common.c (in_late_binary_op): Define.
746 (c_common_truthvalue_conversion): Check in_late_binary_op before
747 calling c_save_expr.
748 * c-common.h (in_late_binary_op): Declare.
749
d7175aef 7502010-11-19 Joseph Myers <joseph@codesourcery.com>
751
752 * c-opts.c (c_common_handle_option): Update calls to
753 set_struct_debug_option.
754
c213e196 7552010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
756
757 * c-common.h (objc_declare_protocols): Added additional argument.
758 * stub-objc.c (objc_declare_protocol): Same change.
759
0b5fc5d6 7602010-11-18 Nathan Froyd <froydnj@codesourcery.com>
761
762 PR c/33193
763 * c-common.h (build_real_imag_expr): Declare.
764 * c-semantics.c (build_real_imag_expr): Define.
765
b8ba44e7 7662010-11-17 Joseph Myers <joseph@codesourcery.com>
767
768 * c-opts.c (c_common_parse_file): Take no arguments.
769 * c-common.h (c_common_parse_file): Update prototype.
770
6ef8d12f 7712010-11-16 Jakub Jelinek <jakub@redhat.com>
772
773 PR c++/46401
774 * c-common.c (warning_candidate_p): Don't track non-const calls
775 or STRING_CSTs.
776
929d2a90 7772010-11-15 Ian Lance Taylor <iant@google.com>
778
779 * c-lex.c (init_c_lex): Set macro debug callbacks if
780 flag_dump_go_spec is set.
781
e4a7640a 7822010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
783
784 * c-common.h (objc_build_incr_expr_for_property_ref): New.
785 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
786
597d2d81 7872010-11-15 Nathan Froyd <froydnj@codesourcery.com>
788
789 PR preprocessor/45038
790 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
791 dialects.
792
c123f04d 7932010-11-12 Joseph Myers <joseph@codesourcery.com>
794
795 * c-common.h (c_family_lang_mask): Declare.
796 * c-opts.c (c_family_lang_mask): Make extern.
797 * c-pragma.c (handle_pragma_diagnostic): Use
798 control_warning_option.
799
3c6c0e40 8002010-11-12 Joseph Myers <joseph@codesourcery.com>
801
802 * c-common.c (parse_optimize_options): Update call to
803 decode_options.
804 * c-common.h (c_common_handle_option): Update prototype.
805 * c-opts.c (c_common_handle_option): Take location_t parameter and
806 pass it to other functions.
807
19ec5c9e 8082010-11-11 Joseph Myers <joseph@codesourcery.com>
809
810 * c-opts.c (warning_as_error_callback): Remove.
811 (c_common_initialize_diagnostics): Don't call
812 register_warning_as_error_callback.
813 (c_common_handle_option): Handle -Werror=normalized= here.
814
bf776685 8152010-11-10 Joseph Myers <joseph@codesourcery.com>
816
817 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
818 in diagnostic.
819 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
820 letter.
821 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
822 Remove trailing '.' from diagnostics.
823 * c.opt (Wwrite-strings_: Avoid '`' in help text.
824
6bd9d862 8252010-11-10 Joseph Myers <joseph@codesourcery.com>
826
827 * c-common.c (parse_optimize_options): Pass global_dc to
828 decode_options.
829 * c-opts.c (c_common_handle_option): Pass &global_options to
830 set_Wstrict_aliasing.
831 * c.opt (v): Don't mark Common or document here.
832
1f6616ee 8332010-11-06 Iain Sandoe <iains@gcc.gnu.org>
834
835 PR target/44981
836 * c-format.c (format_type): New type gcc_objc_string_format_type.
837 (valid_stringptr_type_p): New.
838 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
839 (check_format_string): Pass expected type, use
840 valid_stringptr_type_p (), check that the format string types are
841 consistent with the format specification.
842 (decode_format_attr): Warn if NSString is used outside objective-c.
843 (format_types_orig): Add NSString.
844 (format_name): New.
845 (format_flags): New.
846 (check_format_arg): Handle format strings requiring an external parser.
847 first_target_format_type: New variable.
848 (handle_format_attribute): Set up first_target_format_type, pass the
849 expected format arg string type to check_format_string().
850 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
851 * stub-objc.c (objc_string_ref_type_p): New.
852 (objc_check_format_arg): New.
853
b0d0931f 8542010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
855
856 Fixed using the Objective-C 2.0 dot-syntax with class names.
857 * c-common.h (objc_build_class_component_ref): New.
858 * stub-objc.c (objc_build_class_component_ref): New.
859
f26877d5 8602010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
861
862 * c.opt (Wproperty-assign-default): New option.
863
1ef143b6 8642010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
865
866 Implemented -fobjc-std=objc1 flag.
867 * c.opt (fobjc-std=objc1): New option.
868
8c582e4f 8692010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
870
871 Implemented format and noreturn attributes for Objective-C methods.
872 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
873 attribute for Objective-C methods.
874
8637f1db 8752010-10-31 Jason Merrill <jason@redhat.com>
876
877 * c-common.c (conversion_warning, warn_for_collisions_1): Use
878 EXPR_LOC_OR_HERE.
879
9d9f5bb3 8802010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
881
882 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
883 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
884 (objc_add_property_declaration): Removed arguments for copies and
885 ivar.
886 (objc_build_getter_call): Renamed to
887 objc_maybe_build_component_ref.
888 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
889 (objc_is_property_ref): New.
890 * c-common.c (c_common_reswords): Removed copies and ivar.
891 * stub-objc.c (objc_add_property_declaration): Removed arguments
892 for copies and ivar.
893 (objc_build_getter_call): Renamed to
894 objc_maybe_build_component_ref.
895 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
896 (objc_is_property_ref): New.
897
56f907a0 8982010-10-29 Arnaud Charlet <charlet@adacore.com>
899 Matthew Gingell <gingell@adacore.com>
900
901 * c-ada-spec.c (separate_class_package): New function.
902 (pp_ada_tree_identifier): Prefix references to C++ classes with the
903 name of their enclosing package.
904 (print_ada_declaration): Use separate_class_package.
905
b5fa273e 9062010-10-27 Jason Merrill <jason@redhat.com>
907
5290e253 908 * c-common.c (c_common_reswords): Add __is_literal_type.
909 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
910
b5fa273e 911 * c-common.c (check_case_value): Remove special C++ code.
912
7590f0e5 9132010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
914
915 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
916 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
917 and RID_LAST_PATTR.
918 (objc_add_property_declaration): Added additional arguments.
919 (objc_property_attribute_kind): Removed.
920 (objc_set_property_attr): Removed.
921 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
922 copy and nonatomic.
923 * stub-objc.c (objc_add_property_declaration): Added additional
924 arguments.
925 (objc_set_property_attr): Removed.
926
1d894bcf 9272010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
928
929 * c-common.h (objc_add_property_variable): Renamed to
930 objc_add_property_declaration. Added location argument.
931 * stub-objc.c (objc_add_property_variable): Same change.
932
e23bf1fb 9332010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
934
935 * c-common.h (objc_maybe_printable_name): New.
936 * stub-objc.c (objc_maybe_printable_name): New.
937
93426222 9382010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
939 Andrew Pinski <pinskia@gmail.com>
940
941 * c-common.h (c_common_mark_addressable_vec): Declare.
942 * c-common.c (c_common_mark_addressable_vec): New function.
943
45b2b110 9442010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
945
946 * c-common.h (objc_set_method_type): Removed.
947 (objc_add_method_declaration): Added boolean argument.
948 (objc_start_method_definition): Same change.
949 (objc_build_method_signature): Same change.
950 * stub-objc.c (objc_set_method_type): Removed.
951 (objc_add_method_declaration): Added boolean argument.
952 (objc_start_method_definition): Same change.
953 (objc_build_method_signature): Same change.
954
64cd9619 9552010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
956
957 * c-common.h (finish_file): Removed.
958 (objc_write_global_declarations): New.
959 * c-opts.c (c_common_parse_file): Do not call finish_file.
960 * stub-objc.c (objc_write_global_declarations): New.
961
e1f293c0 9622010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
963
964 Implemented parsing @synthesize and @dynamic for
965 Objective-C/Objective-C++.
966 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
967 (objc_add_synthesize_declaration): New.
968 (objc_add_dynamic_declaration): New.
969 * c-common.c (c_common_reswords): Add synthesize and dynamic.
970 * stub-objc.c (objc_add_synthesize_declaration): New.
971 (objc_add_dynamic_declaration): New.
972
ef97a312 9732010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
974
975 PR target/46041
976 * c-cppbuiltin.c (mode_has_fma): Move function here from
977 builtins.c. Don't use the fma optab, instead just use the
978 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
979 using -save-temps.
980
69b07042 9812010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
982
983 Merge from 'apple/trunk' branch on FSF servers.
ef97a312 984
69b07042 985 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
986
987 Radar 4330422
988 * c-common.h (objc_non_volatilized_type): New declaration
989 * stub-objc.c (objc_non_volatilized_type): New stub.
990
f15f2e56 9912010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
992
69b07042 993 Merge from 'apple/trunk' branch on FSF servers.
f15f2e56 994
995 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
996
997 Radar 4133425
998 * c-common.h (objc_diagnose_private_ivar): New decl.
ef97a312 999 * stub-objc.c (objc_diagnose_private_ivar): New stub.
f15f2e56 1000
4a8875ed 10012010-10-17 Iain Sandoe <iains@gcc.gnu.org>
1002
1003 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
1004 * c-common.h (enum rid): Add RID_AT_PACKAGE.
1005 (objc_ivar_visibility_kind): New enum.
1006 (objc_set_visibility): Adjust prototype to use visibility enum.
ef97a312 1007 * stub-objc.c (objc_set_visibility): Adjust stub to use
4a8875ed 1008 visibility enum.
1009
7e0713b1 10102010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1011
1012 * c-cppbuiltin.c (builtin_define_float_constants): Emit
1013 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
1014 has the appropriate fma builtins.
1015 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
1016
86c110ac 10172010-10-14 Iain Sandoe <iains@gcc.gnu.org>
1018
7e0713b1 1019 merge from FSF apple 'trunk' branch.
86c110ac 1020 2006 Fariborz Jahanian <fjahanian@apple.com>
7e0713b1 1021
86c110ac 1022 Radars 4436866, 4505126, 4506903, 4517826
1023 * c-common.c (c_common_resword): Define @property and its attributes.
1024 * c-common.h: Define property attribute enum entries.
1025 (OBJC_IS_PATTR_KEYWORD): New.
1026 (objc_property_attribute_kind): New enum.
1027 Declare objc_set_property_attr (), objc_add_property_variable (),
1028 objc_build_getter_call () and objc_build_setter_call ().
1029 * stub-objc.c (objc_set_property_attr): New stub.
1030 (objc_add_property_variable): Likewise.
1031 (objc_build_getter_call): Likewise.
1032 (objc_build_setter_call) Likewise.
7e0713b1 1033
40c8d1dd 10342010-10-13 Iain Sandoe <iains@gcc.gnu.org>
1035
7e0713b1 1036 merge from FSF apple 'trunk' branch.
40c8d1dd 1037 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
1038
1039 Radar 3803157 (method attributes)
1040 * c-common.c (handle_deprecated_attribute): Recognize
1041 objc methods as valid declarations.
1042 * c-common.h: Declare objc_method_decl ().
7e0713b1 1043 * stub-objc.c (objc_method_decl): New stub.
40c8d1dd 1044
f3f006ad 10452010-10-08 Joseph Myers <joseph@codesourcery.com>
1046
1047 * c-common.c (parse_optimize_options): Call
1048 decode_cmdline_options_to_array_default_mask before
1049 decode_options. Update arguments to decode_options.
1050 * c-common.h (c_common_init_options_struct): Declare.
1051 * c-opts.c (c_common_init_options_struct): New. Split out from
1052 c_common_init_options.
1053
0a65c3bb 10542010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
1055
1056 Implemented fast enumeration for Objective-C.
1057 * c-common.h (objc_finish_foreach_loop): New.
1058 * stub-objc.c (objc_finish_foreach_loop): New.
1059
24ca3b4e 10602010-10-05 Joseph Myers <joseph@codesourcery.com>
1061
1062 * c-common.h (struct diagnostic_context): Don't declare here.
1063 (c_common_initialize_diagnostics): Declare using
1064 diagnostic_context typedef.
1065 * c-opts.c (c_common_handle_option): Pass global_dc to
1066 handle_generated_option.
1067
f83b64ca 10682010-10-04 Joseph Myers <joseph@codesourcery.com>
1069
1070 * c-opts.c (c_common_handle_option): Pass &global_options_set to
1071 handle_generated_option.
1072
2fdec027 10732010-10-03 Ian Lance Taylor <iant@google.com>
1074
1075 * c.opt (-fplan9-extensions): New option.
1076
41acdfa4 10772010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1078
1079 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
1080 Remove.
1081 (c_cpp_builtins): Call functions from cppbuiltin.c instead
1082 of duplicating code.
1083
069761fb 10842010-09-30 Iain Sandoe <iains@gcc.gnu.org>
1085
1086 * c-common.c: Add two new entries for @optional
1087 and @required keywords.
1088
1089 merge from FSF 'apple/trunk' branch.
1090 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
1091
1092 Radar 4386773
1093 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
1094 objective-c keywords.
1095 (objc_set_method_opt): New declaration.
1096 * stub-objc.c (objc_set_method_opt): New stub.
1097
2c5d2e39 10982010-09-30 Joseph Myers <joseph@codesourcery.com>
1099
1100 * c-common.c (handle_optimize_attribute): Pass &global_options to
1101 cl_optimization_save and cl_optimization_restore.
1102 * c-opts.c (c_common_handle_option): Pass &global_options to
1103 handle_generated_option.
1104 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
1105 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
1106 &global_options to cl_optimization_restore.
1107
e5c75ac3 11082010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
1109
1110 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
1111 Objective-C/Objective-C++ keywords.
1112
3511333e 11132010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
e147d6aa 1114
1115 Merge from 'apple/trunk' branch on FSF servers.
1116
1117 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
1118
1119 Radar 4281748
1120 * c-common.h (objc_check_global_decl): New declaration.
1121 * stub-objc.c (objc_check_global_decl): New stub.
1122
5461e683 11232010-09-29 Joseph Myers <joseph@codesourcery.com>
1124
1125 * c.opt: Don't use VarExists.
1126
5ae82d58 11272010-09-29 Joseph Myers <joseph@codesourcery.com>
1128
1129 * c-common.c (c_cpp_error): Update names of diagnostic_context
1130 members.
1131 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
1132 cl_optimization members.
1133 * c-opts.c (warning_as_error_callback, c_common_handle_option,
1134 sanitize_cpp_opts, finish_options): Update names of cpp_options
1135 members.
1136
b27e241e 11372010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1138
1139 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
1140 (objc_is_reserved_word): Removed.
1141 * c-common.c: Updated comments.
1142 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
1143 objc_is_reserved_word.
1144 * stub-objc.c (objc_is_reserved_word): Removed.
1145
03fc2271 11462010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1147
1148 * c-common.h (objc_add_method_declaration): Adjust prototype to
1149 include attributes.
1150 (objc_start_method_definition): Likewise.
1151 (objc_build_keyword_decl): Likewise.
1152 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
1153 (objc_start_method_definition): Likewise.
1154 (objc_build_keyword_decl): Likewise.
1155
a336eb4b 11562010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1157
1158 * c-common.h (objc_start_class_interface): Adjust prototype.
1159 (objc_start_category_interface): Likewise.
1160 (objc_start_protocol): Likewise.
1161 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
1162 (objc_start_class_interface): Likewise.
1163 (objc_start_category_interface): Likewise.
1164
48b14f50 11652010-09-27 Ian Lance Taylor <iant@google.com>
1166
1167 * c-common.c (c_common_attribute_table): Add no_split_stack.
1168 (handle_no_split_stack_attribute): New static function.
1169
4abfc532 11702010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
1171
1172 Merge from 'apple/trunk' branch on FSF servers.
1173
1174 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
1175
1176 Radar 4229905
1177 * c-common.h (objc_have_common_type): New declaration.
1178 * stub-objc.c (objc_have_common_type): New stub.
1179
1180 2005-06-22 Ziemowit Laski <zlaski@apple.com>
1181
1182 Radar 4154928
1183 * c-common.h (objc_common_type): New prototype.
1184 * stub-objc.c (objc_common_type): New stub.
1185
7bd95dfd 11862010-09-24 Jan Hubicka <jh@suse.cz>
1187
1188 * c-common.c (handle_leaf_attribute): New function.
1189 (struct attribute_spec c_common_att): Add leaf.
1190
5789e05b 11912010-09-22 Joseph Myers <joseph@codesourcery.com>
1192
1193 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
1194 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
1195 -dump, -dump=, -imacros, -imacros=, -include, -include=,
1196 -include-barrier, -include-directory, -include-directory=,
1197 -include-directory-after, -include-directory-after=,
1198 -include-prefix, -include-prefix=, -include-with-prefix,
1199 -include-with-prefix=, -include-with-prefix-after,
1200 -include-with-prefix-after=, -include-with-prefix-before,
1201 -include-with-prefix-before=, -no-integrated-cpp,
1202 -no-line-commands, -no-standard-includes, -no-warnings, -output,
1203 -output=, -pedantic, -pedantic-errors, -preprocess,
1204 -print-missing-file-dependencies, -trace-includes, -traditional,
1205 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
1206 -user-dependencies, -verbose, -write-dependencies,
1207 -write-user-dependencies, no-integrated-cpp, traditional): New.
1208
e6fb54ba 12092010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1210
1211 PR objc/23710
9b60f3b0 1212 * c-common.h (objc_start_method_definition): Return bool instead
1213 of void.
1214 * stub-objc.c (objc_start_method_definition): Return bool instead
1215 of void.
1216
12172010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1218
1219 PR objc/25965
1220 * c-common.h (objc_get_interface_ivars): New declaration.
1221 * stub-objc.c (objc_get_interface_ivars): New stub.
e6fb54ba 1222
e44b0a1f 12232010-09-15 Ian Lance Taylor <iant@google.com>
1224
1225 * c-common.c (parse_optimize_options): Do not capitalize warning
ebd7c4c1 1226 messages. Remove period at end of warning message.
e44b0a1f 1227
85c0a25c 12282010-09-09 Nathan Sidwell <nathan@codesourcery.com>
1229
1230 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
1231 (handle_alias_attribute): ... here.
1232 (handle_ifunc_attribute): New.
1233
5ba33bf4 12342010-09-06 Mark Mitchell <mark@codesourcery.com>
1235
1236 * c-common.h (do_warn_double_promotion): Declare.
1237 * c-common.c (do_warn_double_promotion): Define.
1238
c920faa3 12392010-09-05 Mark Mitchell <mark@codesourcery.com>
1240
1241 * c.opt (Wdouble-promotion): New.
1242
9604e070 12432010-09-02 Joseph Myers <joseph@codesourcery.com>
1244
1245 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
1246 fvtable-thunks, fxref): Mark no longer supported in help text.
1247
3b0273a1 12482010-09-02 Joseph Myers <joseph@codesourcery.com>
1249
1250 * c.opt (Wimport, fall-virtual, falt-external-templates,
1251 fdefault-inline, fenum-int-equiv, fexternal-templates,
1252 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
1253 fname-mangling-version-, fnew-abi, fnonnull-objects,
1254 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
1255 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
1256 applicable.
1257 (fhandle-exceptions): Mark with Alias and Warn.
1258 * c-opts.c (c_common_handle_option): Don't handle options marked
1259 as ignored.
1260
67089c6b 12612010-09-02 Joseph Myers <joseph@codesourcery.com>
1262
1263 * c.opt (Wcomments, Werror-implicit-function-declaration,
1264 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
1265 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
1266 aliases.
1267 * c-common.c (option_codes): Use OPT_Wcomment instead of
1268 OPT_Wcomments.
1269 * c-opts.c (warning_as_error_callback, c_common_handle_option):
1270 Don't handle options marked as aliases.
1271
2af087f2 12722010-08-25 Richard Guenther <rguenther@suse.de>
1273
1274 * c-common.c (c_common_get_alias_set): Remove special
1275 handling for pointers.
1276
48148244 12772010-08-20 Nathan Froyd <froydnj@codesourcery.com>
1278
1279 * c-common.c: Use FOR_EACH_VEC_ELT.
1280 * c-gimplify.c: Likewise.
1281 * c-pragma.c: Likewise.
1282
89c69892 12832010-08-16 Joseph Myers <joseph@codesourcery.com>
1284
1285 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
1286 RejectDriver.
1287 (MMDX): Change back to MMD. Mark NoDriverArg instead of
1288 RejectDriver.
1289 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
1290 instead of OPT_MDX and OPT_MMDX.
1291
e28aa114 12922010-08-16 Joseph Myers <joseph@codesourcery.com>
1293
1294 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
1295
99b66d21 12962010-08-12 Joseph Myers <joseph@codesourcery.com>
1297
1298 * c.opt (MD, MMD): Change to MDX and MMDX.
1299 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
1300
666f4bf0 13012010-08-11 Joseph Myers <joseph@codesourcery.com>
1302
1303 * c-opts.c (c_common_handle_option): Call handle_generated_option
1304 instead of handle_option.
1305
5ec815f6 13062010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1307
1308 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
1309 (maybe_apply_renaming_pragma): Delete unneeded declarations.
1310
d13143cf 13112010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1312
1313 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
1314 (pending_redefine_extname): Change type to a VEC.
1315 (add_to_renaming_pragma_list): Update for new type of
1316 pending_redefine_extname.
5ec815f6 1317 (maybe_apply_renaming_pragma): Likewise.
d13143cf 1318
2008c983 13192010-08-04 Arnaud Charlet <charlet@adacore.com>
1320
1321 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
1322 visited.
1323 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
1324 decide whether a type has already been declared/seen.
1325 Do not go to the original type.
1326 (dump_nested_types): New parameter forward.
1327 Generate forward declaration if needed and mark type as visited.
1328 (print_ada_declaration): Call dump_nested_types if not already done.
1329 Mark types as visited.
1330
9b091a73 13312010-08-03 Joseph Myers <joseph@codesourcery.com>
1332
1333 * c.opt (-print-pch-checksum): Remove option.
1334 * c-opts.c (c_common_handle_option): Don't handle
1335 OPT_print_pch_checksum.
1336
b78351e5 13372010-07-27 Joseph Myers <joseph@codesourcery.com>
1338
1339 * c-common.h (c_common_handle_option): Update prototype and return
1340 value type.
1341 * c-opts.c (c_common_handle_option): Update prototype and return
1342 value type. Update calls to handle_option and
1343 enable_warning_as_error.
1344
34416a90 13452010-07-27 Jakub Jelinek <jakub@redhat.com>
1346
1347 PR c/45079
1348 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
1349
fecf9011 13502010-07-27 Joseph Myers <joseph@codesourcery.com>
1351
1352 * c-common.h (c_common_missing_argument): Remove.
1353 * c-opts.c (c_common_missing_argument): Remove.
1354 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
1355 idirafter, imacros, include, isysroot, isystem, iquote): Add
1356 MissingArgError.
1357 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
1358
e88d34f6 13592010-07-27 Joseph Myers <joseph@codesourcery.com>
1360
1361 * c-common.h (c_common_option_lang_mask,
1362 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
1363 New.
1364 (c_common_init_options): Update prototype.
1365 * c-opts.c (c_common_option_lang_mask): New.
1366 (c_common_initialize_diagnostics): Split out of
1367 c_common_init_options.
1368 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
1369 New.
1370 (c_common_init_options): Update prototype. Use decoded options in
1371 search for -lang-asm.
1372
1767a056 13732010-07-15 Nathan Froyd <froydnj@codesourcery.com>
1374
1375 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
1376 * c-format.c: Likewise.
1377
0b205f4c 13782010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
1379
1380 * c-common.h: Include diagnostic-core.h. Error if already
1381 included.
1382 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
1383
1c58e3f1 13842010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1385
1386 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
1387 Do not include expr.h
1388 (vector_mode_valid_p): Move here.
1389
33cc157c 13902010-06-21 DJ Delorie <dj@redhat.com>
1391
1392 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
1393 allow these pragmas anywhere.
1394
13952010-06-14 Jakub Jelinek <jakub@redhat.com>
1396
1397 PR bootstrap/44509
1398 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
1399 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
1400 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
1401 ggc_strdup instead of xstrdup.
1402
14032010-06-10 Jakub Jelinek <jakub@redhat.com>
1404
1405 * c-cppbuiltin.c: Include cpp-id-data.h.
1406 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
1407 (lazy_hex_fp_value): New function.
1408 (builtin_define_with_hex_fp_value): Provide definitions lazily.
1409
9b40bfbf 14102010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1411
1412 * c-gimplify.c: Do not include tree-flow.h
1413
202d6e5f 14142010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
1415
1416 PR other/44034
1417 * c-common.c: Rename targetm member:
1418 targetm.enum_va_list -> targetm.enum_va_list_p
1419
d3237426 14202010-06-28 Anatoly Sokolov <aesok@post.ru>
1421
1422 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
1423
596981c8 14242010-06-28 Steven Bosscher <steven@gcc.gnu.org>
1425
1426 * c-cppbuiltin.c: Do not include except.h.
1427
b9bdfa0b 14282010-06-24 Andi Kleen <ak@linux.intel.com>
1429
1430 * c-common.c (warn_for_omitted_condop): New.
1431 * c-common.h (warn_for_omitted_condop): Add prototype.
1432
55ad092d 14332010-06-21 Joseph Myers <joseph@codesourcery.com>
1434
1435 * c.opt (lang-objc): Remove.
1436 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
1437
9e7c2572 14382010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
1439
1440 * c-opts.c: Include "tm_p.h".
1441
615ef0bb 14422010-06-20 Joseph Myers <joseph@codesourcery.com>
1443
1444 * c-common.c (parse_optimize_options): Update call to
1445 decode_options.
1446
aef48c9a 14472010-06-18 Nathan Froyd <froydnj@codesourcery.com>
1448
1449 * c-common.c (record_types_used_by_current_var_decl): Adjust for
1450 new type of types_used_by_cur_var_decl.
1451
d74003b4 14522010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
1453
1454 PR bootstrap/44512
1455 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
1456 for C++ standard compliance.
1457
1194d077 14582010-06-16 Jason Merrill <jason@redhat.com>
1459
1460 * c.opt: Add -Wnoexcept.
1461
d473d901 14622010-06-16 Richard Guenther <rguenther@suse.de>
1463
1464 PR c/44555
1465 * c-common.c (c_common_truthvalue_conversion): Remove
1466 premature and wrong optimization concering ADDR_EXPRs.
1467
b62dbfd3 14682010-06-15 Arnaud Charlet <charlet@adacore.com>
1469
1470 * c-ada-spec.c (dump_sloc): Remove column info.
1471 (is_simple_enum): New function.
1472 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
1473 enum types when relevant.
1474
200dd99c 14752010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1476
1477 * c-common.c (conversion_warning): Warn at expression
1478 location.
1479
abf6a617 14802010-06-10 Joseph Myers <joseph@codesourcery.com>
1481
1482 * c-opts.c (c_common_handle_option): Don't handle
1483 OPT_fshow_column.
1484
ba72912a 14852010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1486
1487 * c-pragma.c (push_alignment): Use typed GC allocation.
1488 (handle_pragma_push_options): Likewise.
1489
1490 * c-common.c (parse_optimize_options): Likewise.
1491
1492 * c-common.h (struct sorted_fields_type): Add variable_size GTY
1493 option.
1494
4aafe913 14952010-06-07 Joseph Myers <joseph@codesourcery.com>
1496
1497 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
1498 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1499 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1500 flag_signed_bitfields, warn_strict_null_sentinel,
1501 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
1502 flag_gen_declaration, flag_no_gnu_keywords,
1503 flag_implement_inlines, flag_implicit_templates,
1504 flag_implicit_inline_templates, flag_optional_diags,
1505 flag_elide_constructors, flag_default_inline, flag_rtti,
1506 flag_conserve_space, flag_access_control, flag_check_new,
1507 flag_new_for_scope, flag_weak, flag_working_directory,
1508 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
1509 flag_enforce_eh_specs, flag_threadsafe_statics,
1510 flag_pretty_templates): Remove.
1511 * c-common.h (flag_preprocess_only, flag_nil_receivers,
1512 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
1513 flag_replace_objc_classes, flag_undef, flag_no_builtin,
1514 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1515 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1516 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
1517 flag_no_gnu_keywords, flag_implement_inlines,
1518 flag_implicit_templates, flag_implicit_inline_templates,
1519 flag_optional_diags, flag_elide_constructors, flag_default_inline,
1520 flag_rtti, flag_conserve_space, flag_access_control,
1521 flag_check_new, flag_new_for_scope, flag_weak,
1522 flag_working_directory, flag_use_cxa_atexit,
1523 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
1524 flag_threadsafe_statics, flag_pretty_templates,
1525 warn_strict_null_sentinel): Remove.
1526 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
1527 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
1528 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
1529 fimplicit-inline-templates, fimplicit-templates,
1530 flax-vector-conversions, fms-extensions, fnil-receivers,
1531 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
1532 frtti, fshort-double, fshort-enums, fshort-wchar,
1533 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
1534 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
1535 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
1536 gen-decls, undef): Use Var.
1537 (fdefault-inline, foptional-diags): Document as doing nothing.
1538 * c-opts.c (c_common_handle_option): Remove cases for options now
1539 using Var. Mark ignored options as such.
1540
7bedc3a0 15412010-06-05 Steven Bosscher <steven@gcc.gnu.org>
1542
1543 * c-common.c: Moved to here from parent directory.
1544 * c-common.def: Likewise.
1545 * c-common.h: Likewise.
1546 * c-cppbuiltin.c: Likewise.
1547 * c-dump.c: Likewise.
1548 * c-format.c: Likewise.
1549 * c-format.h : Likewise.
1550 * c-gimplify.c: Likewise.
1551 * c-lex.c: Likewise.
1552 * c-omp.c: Likewise.
1553 * c.opt: Likewise.
1554 * c-opts.c: Likewise.
1555 * c-pch.c: Likewise.
1556 * c-ppoutput.c: Likewise.
1557 * c-pragma.c: Likewise.
1558 * c-pragma.h: Likewise.
1559 * c-pretty-print.c: Likewise.
1560 * c-pretty-print.h: Likewise.
1561 * c-semantics.c: Likewise.
1562 * stub-objc.c: Likewise.
1563
1564 * c-common.c: Include gt-c-family-c-common.h.
1565 * c-pragma.c: Include gt-c-family-c-pragma.h.
1566\f
dd045aee 1567Copyright (C) 2010, 2011 Free Software Foundation, Inc.
7bedc3a0 1568
1569Copying and distribution of this file, with or without modification,
1570are permitted in any medium without royalty provided the copyright
1571notice and this notice are preserved.