]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/c-family/ChangeLog
558c6a736e97ca7d38b82fbf5ba1442e9edd5d1e
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
1 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
2
3 * c-common.c (warn_if_unused_value): Move definition to here.
4 * c-common.h (warn_if_unused_value): Move declaration to here.
5
6 2012-03-23 William Bader <williambader@hotmail.com>
7
8 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
9
10 2012-03-20 Jason Merrill <jason@redhat.com>
11
12 * c-common.h (enum cxx_dialect): Add cxx1y.
13 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
14 test.
15 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
16 * c-opts.c (c_common_post_options): Likewise.
17 (set_std_cxx1y): New.
18 (c_common_handle_option): Call it.
19 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
20
21 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
22
23 PR c++/14710
24 * c.opt ([Wuseless-cast]): Add.
25
26 2012-03-16 Richard Guenther <rguenther@suse.de>
27
28 * c-pretty-print.c (pp_c_initializer_list): Adjust.
29
30 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
31
32 PR c++/44783
33 * c.opt (ftemplate-backtrace-limit) Add.
34
35 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36
37 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
38 handling.
39 * c-pragma.c (handle_pragma_extern_prefix): Remove.
40 (init_pragma): Don't register extern_prefix.
41
42 2012-03-12 Richard Guenther <rguenther@suse.de>
43
44 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
45 (builtin_type_for_size): Likewise.
46
47 2012-02-13 Jakub Jelinek <jakub@redhat.com>
48
49 PR c++/52215
50 * c-common.c (sync_resolve_params): Don't decide whether to convert
51 or not based on TYPE_SIZE comparison, convert whenever arg_type
52 is unsigned INTEGER_TYPE.
53
54 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
55
56 PR c/52118
57 * c.opt ([Wunused-local-typedefs]): Fix description.
58
59 2012-01-24 Mike Stump <mikestump@comcast.net>
60
61 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
62 exactly.
63
64 2012-01-18 Richard Guenther <rguenther@suse.de>
65
66 * c-opts.c (c_common_post_options): Reset LTO flags if
67 we are about to generate a PCH.
68
69 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
70
71 PR c++/51777
72 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
73 use pp_unsigned_wide_integer.
74
75 2012-01-10 Richard Guenther <rguenther@suse.de>
76
77 PR middle-end/51806
78 * c-opts.c (c_common_handle_option): Move -Werror handling
79 to language independent code.
80
81 2012-01-05 Richard Guenther <rguenther@suse.de>
82
83 PR middle-end/51764
84 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
85 from common.opt.
86
87 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
88
89 PR c++/51316
90 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
91 of array types with an unknown bound.
92
93 2011-12-20 Joseph Myers <joseph@codesourcery.com>
94
95 * c-common.c (flag_isoc99): Update comment to refer to C11.
96 (flag_isoc1x): Change to flag_isoc11.
97 * c-common.h (flag_isoc99): Update comment to refer to C11.
98 (flag_isoc1x): Change to flag_isoc11.
99 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
100 C11.
101 * c-opts.c (set_std_c1x): Change to set_std_c11.
102 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
103 Call set_std_c11.
104 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
105 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
106 * c.opt (std=c1x): Change to std=c11. Document as non-draft
107 standard.
108 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
109 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
110 (std=gnu1x): Make alias of std=gnu11.
111
112 2011-12-19 Jason Merrill <jason@redhat.com>
113
114 PR c++/51228
115 * c-common.c (handle_transparent_union_attribute): Check the first
116 field if the type is complete.
117
118 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
119
120 PR libstdc++/51365
121 * c-common.c (RID_IS_FINAL): Add.
122 * c-common.h (RID_IS_FINAL): Add.
123
124 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
125
126 * c.opt (fgnu-runtime): Provide full description.
127 (fnext-runtime): Likewise.
128 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
129
130 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
131
132 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
133 predefines in one place. Add LOCK_FREE predefines.
134 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
135 new func.
136
137 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
138
139 PR c/51256
140 * c-common.c (get_atomic_generic_size): Check for various error
141 conditions
142 (resolve_overloaded_atomic_exchange,
143 resolve_overloaded_atomic_compare_exchange,
144 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
145 error_mark_node for error conditions.
146
147 2011-11-08 Richard Guenther <rguenther@suse.de>
148
149 PR middle-end/51010
150 c-family/
151
152 2011-11-07 Richard Henderson <rth@redhat.com>
153 Aldy Hernandez <aldyh@redhat.com>
154 Torvald Riegel <triegel@redhat.com>
155
156 Merged from transactional-memory.
157
158 * c-common.c (handle_tm_wrap_attribute,
159 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
160 (struct c_common_reswords): Added __transaction* keywords.
161 (struct c_common_attribute_table): Added transaction* and tm_regparm
162 attributes.
163 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
164 masks.
165 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
166 find_tm_attribute): Declare.
167
168 2011-11-07 Jason Merrill <jason@redhat.com>
169
170 PR c++/35688
171 * c-common.c, c-common.h: Revert yesterday's changes.
172
173 2011-11-06 Jason Merrill <jason@redhat.com>
174
175 PR c++/35688
176 * c-common.c (decl_has_visibility_attr): Split out from...
177 (c_determine_visibility): ...here.
178 * c-common.h: Declare it.
179
180 2011-11-06 Joseph Myers <joseph@codesourcery.com>
181
182 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
183 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
184 type.
185 (check_user_alignment): New. Split out of
186 handle_aligned_attribute. Disallow integer constants with
187 noninteger types. Conditionally allow zero.
188 (handle_aligned_attribute): Use check_user_alignment.
189 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
190
191 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
192 Richard Henderson <rth@redhat.com>
193
194 Merged from cxx-mem-model.
195
196 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
197 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
198 parameters that are the same type size.
199 (get_atomic_generic_size): New. Find size of generic
200 atomic function parameters and do typechecking.
201 (add_atomic_size_parameter): New. Insert size into parameter list.
202 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
203 either __atomic_exchange_n or external library call.
204 (resolve_overloaded_atomic_compare_exchange): Restructure
205 __atomic_compare_exchange to either _n variant or external library call.
206 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
207 __atomic_load_n or an external library call.
208 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
209 __atomic_store_n or an external library call.
210 (resolve_overloaded_builtin): Handle new __atomic builtins.
211
212 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
213
214 PR c++/50608
215 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
216 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
217 <INDIRECT_REF>: Return the argument.
218 <ARRAY_REF>: Remove special code for negative offset.
219 Call fold_build_pointer_plus instead of size_binop.
220 (fold_offsetof): Remove STOP_REF argument and adjust.
221 * c-common.h (fold_offsetof_1): Declare.
222 (fold_offsetof): Remove STOP_REF argument.
223
224 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
225
226 PR c++/50810
227 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
228 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
229 Wnarrowing for C++0x and C++98.
230 * c.opt ([Wnarrowing]): Update.
231
232 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
233
234 PR c++/44277
235 * c.opt: Add Wzero-as-null-pointer-constant.
236
237 2011-10-31 Jason Merrill <jason@redhat.com>
238
239 * c.opt (-fdeduce-init-list): Off by default.
240
241 PR c++/50920
242 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
243 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
244 and -Wc++11-compat.
245 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
246
247 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
248
249 PR c++/30066
250 * c.opt (fvisibility-inlines-hidden): Description change.
251
252 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
253
254 Implement C++11 user-defined literals.
255 * c-common.c (build_userdef_literal): New.
256 * c-common.def: New tree code.
257 * c-common.h (tree_userdef_literal): New tree struct and accessors.
258 * c-lex.c (interpret_float): Add suffix parm.
259 (c_lex_with_flags): Build literal tokens.
260
261 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
262
263 PR c++/50841
264 Revert:
265 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
266
267 PR c++/50810
268 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
269 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
270 Wnarrowing for C++0x and C++98.
271 * c.opt ([Wnarrowing]): Update.
272
273 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
274
275 PR c++/50810
276 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
277 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
278 Wnarrowing for C++0x and C++98.
279 * c.opt ([Wnarrowing]): Update.
280
281 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
282
283 PR c++/45385
284 * c-common.c (conversion_warning): Remove code looking for
285 artificial operands.
286
287 2011-10-18 Dodji Seketeli <dodji@redhat.com>
288
289 PR bootstrap/50760
290 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
291 !NO_IMPLICIT_EXTERN_C.
292
293 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
294
295 * c-common.c (c_common_reswords): Add __bases,
296 __direct_bases.
297 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
298
299 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
300
301 PR c++/50757
302 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
303
304 2011-10-15 Tom Tromey <tromey@redhat.com>
305 Dodji Seketeli <dodji@redhat.com>
306
307 * c.opt (fdebug-cpp): New option.
308 * c-opts.c (c_common_handle_option): Handle the option.
309 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
310 output stream in parameter. Factorized from ...
311 (maybe_print_line): ... this. Dump location debug information when
312 -fdebug-cpp is in effect.
313 (print_line_1): New static function. Takes an output stream in
314 parameter. Factorized from ...
315 (print_line): ... here. Dump location information when -fdebug-cpp
316 is in effect.
317 (scan_translation_unit): Dump location information when
318 -fdebug-cpp is in effect.
319
320 2011-10-15 Tom Tromey <tromey@redhat.com>
321 Dodji Seketeli <dodji@redhat.com>
322
323 * c.opt (ftrack-macro-expansion): New option. Handle it with and
324 without argument.
325 * c-opts.c (c_common_handle_option)<case
326 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
327 cases. Handle -ftrack-macro-expansion with and without argument.
328
329 2011-10-15 Tom Tromey <tromey@redhat.com>
330 Dodji Seketeli <dodji@redhat.com>
331
332 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
333 (print_line, cb_define, do_line_change): Adjust to avoid touching
334 the internals of struct line_map. Use the public API instead.
335 * c-pch.c (c_common_read_pch): Likewise.
336 * c-lex.c (fe_file_change): Likewise.
337
338 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
339
340 PR c++/17212
341 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
342
343 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
344
345 PR c++/33067
346 * c-pretty-print.c (pp_c_floating_constant): Output
347 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
348
349 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
350
351 * c-common.c (def_builtin_1): Delete old interface with two
352 parallel arrays to hold standard builtin declarations, and replace
353 it with a function based interface that can support creating
354 builtins on the fly in the future. Change all uses, and poison
355 the old names. Make sure 0 is not a legitimate builtin index.
356 * c-omp.c (c_finish_omp_barrier): Ditto.
357 (c_finish_omp_taskwait): Ditto.
358 (c_finish_omp_flush): Ditto.
359
360 2011-10-11 Tristan Gingold <gingold@adacore.com>
361
362 * c.opt: (fallow-parameterless-variadic-functions): New.
363
364 2011-09-08 Dodji Seketeli <dodji@redhat.com>
365
366 PR c++/33255 - Support -Wunused-local-typedefs warning
367 * c-common.h (struct c_language_function::local_typedefs): New
368 field.
369 (record_locally_defined_typedef, maybe_record_typedef_use)
370 (maybe_warn_unused_local_typedefs): Declare new functions.
371 * c-common.c (record_locally_defined_typedef)
372 (maybe_record_typedef_use)
373 (maybe_warn_unused_local_typedefs): Define new functions.
374 * c.opt: Declare new -Wunused-local-typedefs flag.
375
376 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
377
378 PR middle-end/50266
379 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
380 computations.
381
382 2011-09-05 Richard Guenther <rguenther@suse.de>
383
384 * c-common.c (complete_array_type): Use ssize_int (-1) instead
385 of integer_minus_one_node for empty array upper bounds.
386
387 2011-08-28 Dodji Seketeli <dodji@redhat.com>
388
389 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
390 it's the first time it's being called on this main TU.
391
392 2011-08-24 Richard Guenther <rguenther@suse.de>
393
394 PR c/49396
395 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
396
397 2011-08-22 Gabriel Charette <gchare@google.com>
398
399 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
400 defined in cpp_init_builtins and c_cpp_builtins.
401
402 2011-08-19 Joseph Myers <joseph@codesourcery.com>
403
404 * c-common.c (c_common_reswords): Add __builtin_complex.
405 * c-common.h (RID_BUILTIN_COMPLEX): New.
406
407 2011-08-18 Joseph Myers <joseph@codesourcery.com>
408
409 * c-common.c (c_common_reswords): Add _Noreturn.
410 (keyword_is_function_specifier): Handle RID_NORETURN.
411 * c-common.h (RID_NORETURN): New.
412
413 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
414
415 * c-common.c (unsafe_conversion_p): New function. Check if it is
416 unsafe to convert an expression to the type.
417 (conversion_warning): Adjust, use unsafe_conversion_p.
418 * c-common.h (unsafe_conversion_p): New function declaration.
419
420 2011-08-02 Jakub Jelinek <jakub@redhat.com>
421
422 * c-common.h (c_finish_omp_atomic): Adjust prototype.
423 (c_finish_omp_taskyield): New prototype.
424 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
425 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
426 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
427 or RHS1 have side-effects, evaluate those too in the right spot,
428 if it is a decl and LHS is also a decl, error out if they
429 aren't the same.
430 (c_finish_omp_taskyield): New function.
431 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
432 * c-pragma.c (omp_pragmas): Add taskyield.
433 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
434 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
435 PRAGMA_OMP_CLAUSE_MERGEABLE.
436
437 2011-07-25 Dodji Seketeli <dodji@redhat.com>
438
439 * c-common.h (set_underlying_type): Remove parm name from
440 declaration.
441
442 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
443
444 * c-pretty-print.h: Search c-common.h in c-family.
445
446 2011-07-22 Jason Merrill <jason@redhat.com>
447
448 PR c++/49793
449 * c.opt (Wnarrowing): New.
450
451 PR c++/30112
452 * c-common.h: Declare c_linkage_bindings.
453 * c-pragma.c (handle_pragma_redefine_extname): Use it.
454
455 PR c++/49813
456 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
457 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
458 as flag_isoc99 for 'restrict'.
459 (pp_c_specifier_qualifier_list): Likewise for _Complex.
460
461 2011-07-21 Ian Lance Taylor <iant@google.com>
462
463 PR middle-end/49705
464 * c-common.c (c_disable_warnings): New static function.
465 (c_enable_warnings): New static function.
466 (c_fully_fold_internal): Change local unused_p to bool. Call
467 c_disable_warnings and c_enable_warnings rather than change
468 c_inhibit_evaluation_warnings.
469
470 2011-07-20 Jason Merrill <jason@redhat.com>
471
472 PR c++/6709 (DR 743)
473 PR c++/42603 (DR 950)
474 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
475 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
476 (CPP_DECLTYPE): New.
477 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
478
479 2011-07-19 Richard Guenther <rguenther@suse.de>
480
481 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
482 * c-omp.c (c_finish_omp_for): Likewise.
483
484 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
485
486 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
487 body on the next line.
488
489 2011-07-08 Jason Merrill <jason@redhat.com>
490
491 PR c++/45437
492 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
493
494 PR c++/49673
495 * c-common.c (c_apply_type_quals_to_decl): Don't check
496 TYPE_NEEDS_CONSTRUCTING.
497
498 2011-07-06 Richard Guenther <rguenther@suse.de>
499
500 * c-common.c (c_common_nodes_and_builtins):
501 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
502
503 2011-07-05 Richard Guenther <rguenther@suse.de>
504
505 * c-common.c (c_common_nodes_and_builtins): Build all common
506 tree nodes first.
507
508 2011-06-27 Jakub Jelinek <jakub@redhat.com>
509
510 * c-common.h (c_tree_chain_next): New static inline function.
511
512 * c-common.c (check_builtin_function_arguments): Handle
513 BUILT_IN_ASSUME_ALIGNED.
514
515 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
516
517 * c-common.c: Add sync_ or SYNC__ to builtin names.
518 * c-omp.c: Add sync_ or SYNC__ to builtin names.
519
520 2011-06-20 Pierre Vittet <piervit@pvittet.com>
521
522 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
523 handler.
524 (gen_pragma_handler): New union.
525 (internal_pragma_handler): New type.
526 (c_register_pragma_with_data)
527 (c_register_pragma_with_expansion_and_data): New functions.
528
529 * c-pragma.c (registered_pragmas, c_register_pragma_1)
530 (c_register_pragma, c_register_pragma_with_expansion)
531 (c_invoke_pragma_handler): Changed to work with
532 internal_pragma_handler.
533 (c_register_pragma_with_data)
534 (c_register_pragma_with_expansion_and_data): New functions.
535
536 2011-06-14 Joseph Myers <joseph@codesourcery.com>
537
538 * c-common.c: Include common/common-target.h.
539 (handle_section_attribute): Use
540 targetm_common.have_named_sections.
541 * c-cppbuiltin.c: Include common/common-target.h.
542 (c_cpp_builtins): Use targetm_common.except_unwind_info.
543
544 2011-06-10 Richard Guenther <rguenther@suse.de>
545
546 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
547 to print a IDENTIFIER_NODE.
548
549 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
550 Joseph Myers <joseph@codesourcery.com>
551
552 * c.opt (fbuilding-libgcc): New option.
553 * c-cppbuiltin.c (c_cpp_builtins): Define
554 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
555
556 2011-06-07 Jason Merrill <jason@redhat.com>
557
558 * c-common.c (max_tinst_depth): Lower default to 900.
559
560 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
561
562 2011-06-07 Richard Guenther <rguenther@suse.de>
563
564 * c-common.c (c_common_nodes_and_builtins): Do not set
565 size_type_node or call set_sizetype.
566
567 2011-06-07 Dodji Seketeli <dodji@redhat.com>
568
569 PR debug/49130
570 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
571 type when using pointer comparison to compare types.
572
573 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
574
575 * c.opt: Add -Wdelete-non-virtual-dtor.
576 * c-opts.c (c_common_handle_option): Include it in -Wall.
577
578 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
579
580 PR bootstrap/49190
581
582 Revert:
583 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
584
585 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
586 not tree_common.
587
588 2011-05-27 Jakub Jelinek <jakub@redhat.com>
589
590 PR c++/49165
591 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
592 C++ don't call c_common_truthvalue_conversion on void type arms.
593
594 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
595
596 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
597 (stmt_list_stack): Define.
598 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
599 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
600
601 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
602
603 * c-common.c (warning_candidate_p): Check for BLOCKs.
604
605 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
606
607 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
608 not tree_common.
609
610 2011-05-25 Jakub Jelinek <jakub@redhat.com>
611
612 * c-common.c (def_fn_type): Remove extra va_end.
613
614 2011-05-23 Jason Merrill <jason@redhat.com>
615
616 PR c++/48106
617 * c-common.c (c_common_get_narrower): New.
618 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
619
620 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
621
622 * c-common.h (check_function_arguments): Tweak prototype of
623 check_function_arguments.
624 * c-common.c (check_function_arguments): Likewise. Adjust
625 calls to check_function_nonnull, check_function_format, and
626 check_function_sentinel.
627 (check_function_sentinel): Take a FUNCTION_TYPE rather than
628 separate attributes and typelist arguments. Use
629 FOREACH_FUNCTION_ARGS to iterate over argument types.
630
631 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
632
633 * c-common.c (c_common_reswords): Reorder.
634 * c-common.h (rid): Likewise.
635
636 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
637
638 * c-common.c (def_fn_type): Don't call build_function_type, call
639 build_function_type_array or build_varargs_function_type_array
640 instead.
641 (c_common_nodes_and_builtins): Likewise.
642
643 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
644
645 * c-common.c (c_add_case_label): Omit the loc argument to
646 build_case_label.
647 * c-common.h (build_case_label): Remove.
648 * c-semantics.c (build_case_label): Remove.
649
650 2011-05-05 Joseph Myers <joseph@codesourcery.com>
651
652 * c-objc.h (objc_start_method_definition): Update prototype.
653 * stub-objc.c (objc_start_method_definition): Add extra parameter.
654
655 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
656
657 * c-common.c (check_main_parameter_types): Reindent. Don't use
658 TYPE_ARG_TYPES directly.
659 (handle_nonnull_attribute): Likewise.
660 (sync_resolve_params): Likewise.
661 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
662 to check_format_string.
663 (handle_format_attribute): Likewise.
664 (check_format_string): Take a function type to examine instead of
665 a type list. Use a function_arg_iterator to step through argument
666 types.
667
668 2011-05-04 Richard Guenther <rguenther@suse.de>
669
670 * c-common.c (fix_string_type): Use size_int for index type bounds.
671 (start_fname_decls): Do not pass NULL to build_int_cst.
672 (c_init_attributes): Likewise.
673 * c-lex.c (c_lex_with_flags): Likewise.
674
675 2011-04-27 Jason Merrill <jason@redhat.com>
676
677 * c-common.c (make_tree_vector_from_list): New.
678 * c-common.h: Declare it.
679
680 2011-04-26 Richard Guenther <rguenther@suse.de>
681
682 PR preprocessor/48248
683 * c-ppoutput.c (maybe_print_line): Always optimize newlines
684 for output size with -P.
685
686 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
687
688 * c-common.c (struct c_common_resword): Add __underlying_type.
689 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
690
691 2011-04-20 Jim Meyering <meyering@redhat.com>
692
693 * c-format.c (init_dollar_format_checking): Remove useless
694 if-before-free.
695
696 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
697
698 * c-objc.h (objc_get_interface_ivars): Removed.
699 (objc_detect_field_duplicates): New.
700 * stub-objc.c: Likewise.
701
702 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
703
704 * stub-objc.c (objc_declare_protocols): Renamed to
705 objc_declare_protocol.
706 * c-objc.h: Likewise.
707
708 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
709
710 * stub-objc.c (objc_declare_class): Updated argument name.
711
712 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
713
714 * c-common.h (c_common_init_ts): Declare.
715 * c-common.c (c_common_init_ts): Define.
716
717 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
718
719 * c-objc.h (objc_build_message_expr): Updated prototype.
720 * stub-objc.c (objc_build_message_expr): Likewise.
721
722 2011-04-12 Martin Jambor <mjambor@suse.cz>
723
724 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
725 of cgraph_node.
726
727 2011-04-11 Richard Guenther <rguenther@suse.de>
728
729 * c-common.c (complete_array_type): Build a range type of
730 proper type.
731
732 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
733
734 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
735 (handle_type_generic_attribute): Likewise.
736
737 2011-04-07 Jason Merrill <jason@redhat.com>
738
739 PR c++/48450
740 * c-common.c (c_common_truthvalue_conversion): Don't ignore
741 conversion from C++0x scoped enum.
742
743 2011-04-06 Joseph Myers <joseph@codesourcery.com>
744
745 * c-target-def.h: New file.
746 * c-target.def: New file.
747 * c-target.h: New file.
748 * c-common.c (targetcm): Don't define here.
749 * c-common.h (default_handle_c_option): Declare.
750 * c-format.c: Include c-target.h instead of target.h.
751 * c-opts.c: Include c-target.h instead of target.h. Explicitly
752 include tm.h.
753 (default_handle_c_option): Move from targhooks.c.
754
755 2011-03-29 Jakub Jelinek <jakub@redhat.com>
756
757 PR preprocessor/48248
758 * c-ppoutput.c (print): Add src_file field.
759 (init_pp_output): Initialize it.
760 (maybe_print_line): Don't optimize by adding up to 8 newlines
761 if map->to_file and print.src_file are different file.
762 (print_line): Update print.src_file.
763
764 2011-03-25 Kai Tietz <ktietz@redhat.com>
765
766 * c-ada-spec.c (compare_comment): Use filename_cmp
767 instead of strcmp for filename.
768
769 2011-03-25 Jeff Law <law@redhat.com>
770
771 * c-family/c-common.c (def_fn_type): Add missing va_end.
772
773 2011-03-25 Jason Merrill <jason@redhat.com>
774
775 * c.opt: Add -std=c++03.
776
777 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
778
779 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
780
781 2011-03-17 Kai Tietz
782
783 PR target/12171
784 * c-pretty-print.c (pp_c_specifier_qualifier_list):
785 Display allowed attributes for function pointer types.
786 (pp_c_attributes_display): New function to display
787 attributes having affects_type_identity flag set to true.
788 * c-pretty-print.h (pp_c_attributes_display): New prototype.
789
790 * c-common.c (c_common_attribute_table):
791 Add new element.
792 (c_common_format_attribute_table): Likewise.
793
794 2011-03-18 Jason Merrill <jason@redhat.com>
795
796 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
797 * c-common.h: Don't declare it here.
798 * c-common.c: Or define it here.
799 * c-opts.c (c_common_handle_option): Or set it here.
800
801 PR c++/35315
802 * c-common.c (handle_transparent_union_attribute): Don't
803 make a duplicate type in C++.
804
805 2011-03-15 Jason Merrill <jason@redhat.com>
806
807 * c-common.c (max_constexpr_depth): New.
808 * c-common.h: Declare it.
809 * c-opts.c (c_common_handle_option): Set it.
810 * c.opt (fconstexpr-depth): New option.
811
812 2011-03-11 Jason Merrill <jason@redhat.com>
813
814 * c-common.c (attribute_takes_identifier_p): Add missing const.
815
816 PR c++/46803
817 * c-common.c (attribute_takes_identifier_p): Assume that an
818 unknown attribute takes an identifier.
819
820 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
821
822 PR c/47786
823 * c-common.c (c_type_hash): Call list_length instead of iterating
824 through DECL_CHAIN. Rename 'i' to 'n_elements'.
825
826 2011-02-19 Jakub Jelinek <jakub@redhat.com>
827
828 PR c/47809
829 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
830
831 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
832
833 * c.opt (fobjc-abi-version=) New.
834 (fobjc-nilcheck): New.
835
836 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
837
838 PR c++/46890
839 * c-common.h (keyword_is_decl_specifier): Declare.
840 * c-common.c (keyword_is_decl_specifier): Define.
841 (keyword_is_function_specifier): New function.
842
843 2011-01-26 Jakub Jelinek <jakub@redhat.com>
844
845 PR c/47473
846 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
847 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
848 REAL_TYPE.
849
850 2011-01-26 Arnaud Charlet <charlet@adacore.com>
851
852 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
853
854 2011-01-26 Jakub Jelinek <jakub@redhat.com>
855
856 PR pch/47430
857 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
858 after init_c_lex if pch_file is set.
859
860 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
861
862 PR c++/43601
863 * c.opt (-fkeep-inline-dllexport): New switch.
864
865 2011-01-12 Richard Guenther <rguenther@suse.de>
866
867 PR middle-end/32511
868 * c-common.c (handle_weak_attribute): Warn instead of error
869 on declaring an inline function weak.
870
871 2011-01-05 Tom Tromey <tromey@redhat.com>
872
873 * c-common.h (lvalue_error): Update.
874 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
875 not error.
876
877 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
878
879 PR objc/47075
880 * c-objc.h (objc_finish_message_expr): Added argument to
881 prototype.
882
883 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
884
885 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
886 Use prototype_p.
887
888 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
889
890 * c-objc.h (objc_maybe_warn_exceptions): New.
891 * stub-objc.c (objc_maybe_warn_exceptions): New.
892
893 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
894
895 * c-common.h (readonly_error): Declare.
896 * c-common.c (readonly_error): Define.
897
898 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
899
900 * c-common.h (invalid_indirection_error): Declare.
901 * c-common.c (invalid_indirection_error): Define.
902
903 2010-12-03 Richard Guenther <rguenther@suse.de>
904
905 PR c/46745
906 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
907 (pp_c_unary_expression): Likewise.
908 (pp_c_expression): Likewise.
909
910 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
911
912 * c-common.h (objc_finish_function): New.
913 (objc_non_volatilized_type): Removed.
914 (objc_type_quals_match): Removed.
915 * stub-objc.c (objc_finish_function): New.
916 (objc_non_volatilized_type): Removed.
917 (objc_type_quals_match): Removed.
918
919 2010-11-30 Joseph Myers <joseph@codesourcery.com>
920
921 * c-common.h (parse_optimize_options): Declare.
922 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
923 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
924
925 2010-11-29 Joseph Myers <joseph@codesourcery.com>
926
927 * c-opts.c (check_deps_environment_vars): Use getenv instead of
928 GET_ENVIRONMENT.
929 * c-pch.c (O_BINARY): Don't define here.
930 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
931
932 2010-11-25 Joseph Myers <joseph@codesourcery.com>
933
934 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
935 targetm.except_unwind_info.
936
937 2010-11-23 Joseph Myers <joseph@codesourcery.com>
938
939 * c-opts.c (c_common_handle_option): Pass location to
940 set_struct_debug_option.
941
942 2010-11-23 Joseph Myers <joseph@codesourcery.com>
943
944 * c-common.c (visibility_options): Move from ../opts.c.
945 * c-common.h (struct visibility_flags, visibility_options):
946 Declare here.
947 * c-opts.c (finish_options): Rename to c_finish_options.
948 (c_common_init): Update call to finish_options.
949
950 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
951
952 PR objc/34033
953 * c-lex.c (lex_string): Check that each string in an Objective-C
954 string concat sequence starts with either one or zero '@', and
955 that there are no spurious '@' signs at the end.
956
957 2010-11-20 Joseph Myers <joseph@codesourcery.com>
958
959 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
960 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
961 HANDLE_PRAGMA_VISIBILITY.
962 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
963 HANDLE_PRAGMA_VISIBILITY): Don't define.
964 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
965
966 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
967
968 PR c++/16189
969 PR c++/36888
970 PR c++/45331
971 * c-common.h (keyword_begins_type_specifier): Declare.
972 (keyword_is_storage_class_specifier): Declare.
973 (keyword_is_type_qualifier): Declare.
974 * c-common.c (keyword_begins_type_specifier): New function.
975 (keyword_is_storage_class_specifier): New function.
976 (keyword_is_type_qualifier): Declare.
977
978 2010-11-19 Joseph Myers <joseph@codesourcery.com>
979
980 PR c/46547
981 * c-common.c (in_late_binary_op): Define.
982 (c_common_truthvalue_conversion): Check in_late_binary_op before
983 calling c_save_expr.
984 * c-common.h (in_late_binary_op): Declare.
985
986 2010-11-19 Joseph Myers <joseph@codesourcery.com>
987
988 * c-opts.c (c_common_handle_option): Update calls to
989 set_struct_debug_option.
990
991 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
992
993 * c-common.h (objc_declare_protocols): Added additional argument.
994 * stub-objc.c (objc_declare_protocol): Same change.
995
996 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
997
998 PR c/33193
999 * c-common.h (build_real_imag_expr): Declare.
1000 * c-semantics.c (build_real_imag_expr): Define.
1001
1002 2010-11-17 Joseph Myers <joseph@codesourcery.com>
1003
1004 * c-opts.c (c_common_parse_file): Take no arguments.
1005 * c-common.h (c_common_parse_file): Update prototype.
1006
1007 2010-11-16 Jakub Jelinek <jakub@redhat.com>
1008
1009 PR c++/46401
1010 * c-common.c (warning_candidate_p): Don't track non-const calls
1011 or STRING_CSTs.
1012
1013 2010-11-15 Ian Lance Taylor <iant@google.com>
1014
1015 * c-lex.c (init_c_lex): Set macro debug callbacks if
1016 flag_dump_go_spec is set.
1017
1018 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
1019
1020 * c-common.h (objc_build_incr_expr_for_property_ref): New.
1021 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
1022
1023 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
1024
1025 PR preprocessor/45038
1026 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
1027 dialects.
1028
1029 2010-11-12 Joseph Myers <joseph@codesourcery.com>
1030
1031 * c-common.h (c_family_lang_mask): Declare.
1032 * c-opts.c (c_family_lang_mask): Make extern.
1033 * c-pragma.c (handle_pragma_diagnostic): Use
1034 control_warning_option.
1035
1036 2010-11-12 Joseph Myers <joseph@codesourcery.com>
1037
1038 * c-common.c (parse_optimize_options): Update call to
1039 decode_options.
1040 * c-common.h (c_common_handle_option): Update prototype.
1041 * c-opts.c (c_common_handle_option): Take location_t parameter and
1042 pass it to other functions.
1043
1044 2010-11-11 Joseph Myers <joseph@codesourcery.com>
1045
1046 * c-opts.c (warning_as_error_callback): Remove.
1047 (c_common_initialize_diagnostics): Don't call
1048 register_warning_as_error_callback.
1049 (c_common_handle_option): Handle -Werror=normalized= here.
1050
1051 2010-11-10 Joseph Myers <joseph@codesourcery.com>
1052
1053 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
1054 in diagnostic.
1055 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
1056 letter.
1057 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
1058 Remove trailing '.' from diagnostics.
1059 * c.opt (Wwrite-strings_: Avoid '`' in help text.
1060
1061 2010-11-10 Joseph Myers <joseph@codesourcery.com>
1062
1063 * c-common.c (parse_optimize_options): Pass global_dc to
1064 decode_options.
1065 * c-opts.c (c_common_handle_option): Pass &global_options to
1066 set_Wstrict_aliasing.
1067 * c.opt (v): Don't mark Common or document here.
1068
1069 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
1070
1071 PR target/44981
1072 * c-format.c (format_type): New type gcc_objc_string_format_type.
1073 (valid_stringptr_type_p): New.
1074 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
1075 (check_format_string): Pass expected type, use
1076 valid_stringptr_type_p (), check that the format string types are
1077 consistent with the format specification.
1078 (decode_format_attr): Warn if NSString is used outside objective-c.
1079 (format_types_orig): Add NSString.
1080 (format_name): New.
1081 (format_flags): New.
1082 (check_format_arg): Handle format strings requiring an external parser.
1083 first_target_format_type: New variable.
1084 (handle_format_attribute): Set up first_target_format_type, pass the
1085 expected format arg string type to check_format_string().
1086 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
1087 * stub-objc.c (objc_string_ref_type_p): New.
1088 (objc_check_format_arg): New.
1089
1090 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
1091
1092 Fixed using the Objective-C 2.0 dot-syntax with class names.
1093 * c-common.h (objc_build_class_component_ref): New.
1094 * stub-objc.c (objc_build_class_component_ref): New.
1095
1096 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1097
1098 * c.opt (Wproperty-assign-default): New option.
1099
1100 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1101
1102 Implemented -fobjc-std=objc1 flag.
1103 * c.opt (fobjc-std=objc1): New option.
1104
1105 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
1106
1107 Implemented format and noreturn attributes for Objective-C methods.
1108 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
1109 attribute for Objective-C methods.
1110
1111 2010-10-31 Jason Merrill <jason@redhat.com>
1112
1113 * c-common.c (conversion_warning, warn_for_collisions_1): Use
1114 EXPR_LOC_OR_HERE.
1115
1116 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
1117
1118 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
1119 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
1120 (objc_add_property_declaration): Removed arguments for copies and
1121 ivar.
1122 (objc_build_getter_call): Renamed to
1123 objc_maybe_build_component_ref.
1124 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1125 (objc_is_property_ref): New.
1126 * c-common.c (c_common_reswords): Removed copies and ivar.
1127 * stub-objc.c (objc_add_property_declaration): Removed arguments
1128 for copies and ivar.
1129 (objc_build_getter_call): Renamed to
1130 objc_maybe_build_component_ref.
1131 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1132 (objc_is_property_ref): New.
1133
1134 2010-10-29 Arnaud Charlet <charlet@adacore.com>
1135 Matthew Gingell <gingell@adacore.com>
1136
1137 * c-ada-spec.c (separate_class_package): New function.
1138 (pp_ada_tree_identifier): Prefix references to C++ classes with the
1139 name of their enclosing package.
1140 (print_ada_declaration): Use separate_class_package.
1141
1142 2010-10-27 Jason Merrill <jason@redhat.com>
1143
1144 * c-common.c (c_common_reswords): Add __is_literal_type.
1145 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
1146
1147 * c-common.c (check_case_value): Remove special C++ code.
1148
1149 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1150
1151 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
1152 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
1153 and RID_LAST_PATTR.
1154 (objc_add_property_declaration): Added additional arguments.
1155 (objc_property_attribute_kind): Removed.
1156 (objc_set_property_attr): Removed.
1157 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
1158 copy and nonatomic.
1159 * stub-objc.c (objc_add_property_declaration): Added additional
1160 arguments.
1161 (objc_set_property_attr): Removed.
1162
1163 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1164
1165 * c-common.h (objc_add_property_variable): Renamed to
1166 objc_add_property_declaration. Added location argument.
1167 * stub-objc.c (objc_add_property_variable): Same change.
1168
1169 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
1170
1171 * c-common.h (objc_maybe_printable_name): New.
1172 * stub-objc.c (objc_maybe_printable_name): New.
1173
1174 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1175 Andrew Pinski <pinskia@gmail.com>
1176
1177 * c-common.h (c_common_mark_addressable_vec): Declare.
1178 * c-common.c (c_common_mark_addressable_vec): New function.
1179
1180 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1181
1182 * c-common.h (objc_set_method_type): Removed.
1183 (objc_add_method_declaration): Added boolean argument.
1184 (objc_start_method_definition): Same change.
1185 (objc_build_method_signature): Same change.
1186 * stub-objc.c (objc_set_method_type): Removed.
1187 (objc_add_method_declaration): Added boolean argument.
1188 (objc_start_method_definition): Same change.
1189 (objc_build_method_signature): Same change.
1190
1191 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1192
1193 * c-common.h (finish_file): Removed.
1194 (objc_write_global_declarations): New.
1195 * c-opts.c (c_common_parse_file): Do not call finish_file.
1196 * stub-objc.c (objc_write_global_declarations): New.
1197
1198 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1199
1200 Implemented parsing @synthesize and @dynamic for
1201 Objective-C/Objective-C++.
1202 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
1203 (objc_add_synthesize_declaration): New.
1204 (objc_add_dynamic_declaration): New.
1205 * c-common.c (c_common_reswords): Add synthesize and dynamic.
1206 * stub-objc.c (objc_add_synthesize_declaration): New.
1207 (objc_add_dynamic_declaration): New.
1208
1209 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1210
1211 PR target/46041
1212 * c-cppbuiltin.c (mode_has_fma): Move function here from
1213 builtins.c. Don't use the fma optab, instead just use the
1214 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
1215 using -save-temps.
1216
1217 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1218
1219 Merge from 'apple/trunk' branch on FSF servers.
1220
1221 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
1222
1223 Radar 4330422
1224 * c-common.h (objc_non_volatilized_type): New declaration
1225 * stub-objc.c (objc_non_volatilized_type): New stub.
1226
1227 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
1228
1229 Merge from 'apple/trunk' branch on FSF servers.
1230
1231 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
1232
1233 Radar 4133425
1234 * c-common.h (objc_diagnose_private_ivar): New decl.
1235 * stub-objc.c (objc_diagnose_private_ivar): New stub.
1236
1237 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
1238
1239 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
1240 * c-common.h (enum rid): Add RID_AT_PACKAGE.
1241 (objc_ivar_visibility_kind): New enum.
1242 (objc_set_visibility): Adjust prototype to use visibility enum.
1243 * stub-objc.c (objc_set_visibility): Adjust stub to use
1244 visibility enum.
1245
1246 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1247
1248 * c-cppbuiltin.c (builtin_define_float_constants): Emit
1249 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
1250 has the appropriate fma builtins.
1251 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
1252
1253 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
1254
1255 merge from FSF apple 'trunk' branch.
1256 2006 Fariborz Jahanian <fjahanian@apple.com>
1257
1258 Radars 4436866, 4505126, 4506903, 4517826
1259 * c-common.c (c_common_resword): Define @property and its attributes.
1260 * c-common.h: Define property attribute enum entries.
1261 (OBJC_IS_PATTR_KEYWORD): New.
1262 (objc_property_attribute_kind): New enum.
1263 Declare objc_set_property_attr (), objc_add_property_variable (),
1264 objc_build_getter_call () and objc_build_setter_call ().
1265 * stub-objc.c (objc_set_property_attr): New stub.
1266 (objc_add_property_variable): Likewise.
1267 (objc_build_getter_call): Likewise.
1268 (objc_build_setter_call) Likewise.
1269
1270 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
1271
1272 merge from FSF apple 'trunk' branch.
1273 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
1274
1275 Radar 3803157 (method attributes)
1276 * c-common.c (handle_deprecated_attribute): Recognize
1277 objc methods as valid declarations.
1278 * c-common.h: Declare objc_method_decl ().
1279 * stub-objc.c (objc_method_decl): New stub.
1280
1281 2010-10-08 Joseph Myers <joseph@codesourcery.com>
1282
1283 * c-common.c (parse_optimize_options): Call
1284 decode_cmdline_options_to_array_default_mask before
1285 decode_options. Update arguments to decode_options.
1286 * c-common.h (c_common_init_options_struct): Declare.
1287 * c-opts.c (c_common_init_options_struct): New. Split out from
1288 c_common_init_options.
1289
1290 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
1291
1292 Implemented fast enumeration for Objective-C.
1293 * c-common.h (objc_finish_foreach_loop): New.
1294 * stub-objc.c (objc_finish_foreach_loop): New.
1295
1296 2010-10-05 Joseph Myers <joseph@codesourcery.com>
1297
1298 * c-common.h (struct diagnostic_context): Don't declare here.
1299 (c_common_initialize_diagnostics): Declare using
1300 diagnostic_context typedef.
1301 * c-opts.c (c_common_handle_option): Pass global_dc to
1302 handle_generated_option.
1303
1304 2010-10-04 Joseph Myers <joseph@codesourcery.com>
1305
1306 * c-opts.c (c_common_handle_option): Pass &global_options_set to
1307 handle_generated_option.
1308
1309 2010-10-03 Ian Lance Taylor <iant@google.com>
1310
1311 * c.opt (-fplan9-extensions): New option.
1312
1313 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1314
1315 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
1316 Remove.
1317 (c_cpp_builtins): Call functions from cppbuiltin.c instead
1318 of duplicating code.
1319
1320 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
1321
1322 * c-common.c: Add two new entries for @optional
1323 and @required keywords.
1324
1325 merge from FSF 'apple/trunk' branch.
1326 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
1327
1328 Radar 4386773
1329 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
1330 objective-c keywords.
1331 (objc_set_method_opt): New declaration.
1332 * stub-objc.c (objc_set_method_opt): New stub.
1333
1334 2010-09-30 Joseph Myers <joseph@codesourcery.com>
1335
1336 * c-common.c (handle_optimize_attribute): Pass &global_options to
1337 cl_optimization_save and cl_optimization_restore.
1338 * c-opts.c (c_common_handle_option): Pass &global_options to
1339 handle_generated_option.
1340 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
1341 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
1342 &global_options to cl_optimization_restore.
1343
1344 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
1345
1346 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
1347 Objective-C/Objective-C++ keywords.
1348
1349 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1350
1351 Merge from 'apple/trunk' branch on FSF servers.
1352
1353 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
1354
1355 Radar 4281748
1356 * c-common.h (objc_check_global_decl): New declaration.
1357 * stub-objc.c (objc_check_global_decl): New stub.
1358
1359 2010-09-29 Joseph Myers <joseph@codesourcery.com>
1360
1361 * c.opt: Don't use VarExists.
1362
1363 2010-09-29 Joseph Myers <joseph@codesourcery.com>
1364
1365 * c-common.c (c_cpp_error): Update names of diagnostic_context
1366 members.
1367 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
1368 cl_optimization members.
1369 * c-opts.c (warning_as_error_callback, c_common_handle_option,
1370 sanitize_cpp_opts, finish_options): Update names of cpp_options
1371 members.
1372
1373 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1374
1375 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
1376 (objc_is_reserved_word): Removed.
1377 * c-common.c: Updated comments.
1378 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
1379 objc_is_reserved_word.
1380 * stub-objc.c (objc_is_reserved_word): Removed.
1381
1382 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1383
1384 * c-common.h (objc_add_method_declaration): Adjust prototype to
1385 include attributes.
1386 (objc_start_method_definition): Likewise.
1387 (objc_build_keyword_decl): Likewise.
1388 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
1389 (objc_start_method_definition): Likewise.
1390 (objc_build_keyword_decl): Likewise.
1391
1392 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1393
1394 * c-common.h (objc_start_class_interface): Adjust prototype.
1395 (objc_start_category_interface): Likewise.
1396 (objc_start_protocol): Likewise.
1397 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
1398 (objc_start_class_interface): Likewise.
1399 (objc_start_category_interface): Likewise.
1400
1401 2010-09-27 Ian Lance Taylor <iant@google.com>
1402
1403 * c-common.c (c_common_attribute_table): Add no_split_stack.
1404 (handle_no_split_stack_attribute): New static function.
1405
1406 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
1407
1408 Merge from 'apple/trunk' branch on FSF servers.
1409
1410 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
1411
1412 Radar 4229905
1413 * c-common.h (objc_have_common_type): New declaration.
1414 * stub-objc.c (objc_have_common_type): New stub.
1415
1416 2005-06-22 Ziemowit Laski <zlaski@apple.com>
1417
1418 Radar 4154928
1419 * c-common.h (objc_common_type): New prototype.
1420 * stub-objc.c (objc_common_type): New stub.
1421
1422 2010-09-24 Jan Hubicka <jh@suse.cz>
1423
1424 * c-common.c (handle_leaf_attribute): New function.
1425 (struct attribute_spec c_common_att): Add leaf.
1426
1427 2010-09-22 Joseph Myers <joseph@codesourcery.com>
1428
1429 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
1430 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
1431 -dump, -dump=, -imacros, -imacros=, -include, -include=,
1432 -include-barrier, -include-directory, -include-directory=,
1433 -include-directory-after, -include-directory-after=,
1434 -include-prefix, -include-prefix=, -include-with-prefix,
1435 -include-with-prefix=, -include-with-prefix-after,
1436 -include-with-prefix-after=, -include-with-prefix-before,
1437 -include-with-prefix-before=, -no-integrated-cpp,
1438 -no-line-commands, -no-standard-includes, -no-warnings, -output,
1439 -output=, -pedantic, -pedantic-errors, -preprocess,
1440 -print-missing-file-dependencies, -trace-includes, -traditional,
1441 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
1442 -user-dependencies, -verbose, -write-dependencies,
1443 -write-user-dependencies, no-integrated-cpp, traditional): New.
1444
1445 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1446
1447 PR objc/23710
1448 * c-common.h (objc_start_method_definition): Return bool instead
1449 of void.
1450 * stub-objc.c (objc_start_method_definition): Return bool instead
1451 of void.
1452
1453 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1454
1455 PR objc/25965
1456 * c-common.h (objc_get_interface_ivars): New declaration.
1457 * stub-objc.c (objc_get_interface_ivars): New stub.
1458
1459 2010-09-15 Ian Lance Taylor <iant@google.com>
1460
1461 * c-common.c (parse_optimize_options): Do not capitalize warning
1462 messages. Remove period at end of warning message.
1463
1464 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
1465
1466 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
1467 (handle_alias_attribute): ... here.
1468 (handle_ifunc_attribute): New.
1469
1470 2010-09-06 Mark Mitchell <mark@codesourcery.com>
1471
1472 * c-common.h (do_warn_double_promotion): Declare.
1473 * c-common.c (do_warn_double_promotion): Define.
1474
1475 2010-09-05 Mark Mitchell <mark@codesourcery.com>
1476
1477 * c.opt (Wdouble-promotion): New.
1478
1479 2010-09-02 Joseph Myers <joseph@codesourcery.com>
1480
1481 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
1482 fvtable-thunks, fxref): Mark no longer supported in help text.
1483
1484 2010-09-02 Joseph Myers <joseph@codesourcery.com>
1485
1486 * c.opt (Wimport, fall-virtual, falt-external-templates,
1487 fdefault-inline, fenum-int-equiv, fexternal-templates,
1488 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
1489 fname-mangling-version-, fnew-abi, fnonnull-objects,
1490 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
1491 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
1492 applicable.
1493 (fhandle-exceptions): Mark with Alias and Warn.
1494 * c-opts.c (c_common_handle_option): Don't handle options marked
1495 as ignored.
1496
1497 2010-09-02 Joseph Myers <joseph@codesourcery.com>
1498
1499 * c.opt (Wcomments, Werror-implicit-function-declaration,
1500 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
1501 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
1502 aliases.
1503 * c-common.c (option_codes): Use OPT_Wcomment instead of
1504 OPT_Wcomments.
1505 * c-opts.c (warning_as_error_callback, c_common_handle_option):
1506 Don't handle options marked as aliases.
1507
1508 2010-08-25 Richard Guenther <rguenther@suse.de>
1509
1510 * c-common.c (c_common_get_alias_set): Remove special
1511 handling for pointers.
1512
1513 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
1514
1515 * c-common.c: Use FOR_EACH_VEC_ELT.
1516 * c-gimplify.c: Likewise.
1517 * c-pragma.c: Likewise.
1518
1519 2010-08-16 Joseph Myers <joseph@codesourcery.com>
1520
1521 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
1522 RejectDriver.
1523 (MMDX): Change back to MMD. Mark NoDriverArg instead of
1524 RejectDriver.
1525 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
1526 instead of OPT_MDX and OPT_MMDX.
1527
1528 2010-08-16 Joseph Myers <joseph@codesourcery.com>
1529
1530 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
1531
1532 2010-08-12 Joseph Myers <joseph@codesourcery.com>
1533
1534 * c.opt (MD, MMD): Change to MDX and MMDX.
1535 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
1536
1537 2010-08-11 Joseph Myers <joseph@codesourcery.com>
1538
1539 * c-opts.c (c_common_handle_option): Call handle_generated_option
1540 instead of handle_option.
1541
1542 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1543
1544 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
1545 (maybe_apply_renaming_pragma): Delete unneeded declarations.
1546
1547 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1548
1549 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
1550 (pending_redefine_extname): Change type to a VEC.
1551 (add_to_renaming_pragma_list): Update for new type of
1552 pending_redefine_extname.
1553 (maybe_apply_renaming_pragma): Likewise.
1554
1555 2010-08-04 Arnaud Charlet <charlet@adacore.com>
1556
1557 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
1558 visited.
1559 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
1560 decide whether a type has already been declared/seen.
1561 Do not go to the original type.
1562 (dump_nested_types): New parameter forward.
1563 Generate forward declaration if needed and mark type as visited.
1564 (print_ada_declaration): Call dump_nested_types if not already done.
1565 Mark types as visited.
1566
1567 2010-08-03 Joseph Myers <joseph@codesourcery.com>
1568
1569 * c.opt (-print-pch-checksum): Remove option.
1570 * c-opts.c (c_common_handle_option): Don't handle
1571 OPT_print_pch_checksum.
1572
1573 2010-07-27 Joseph Myers <joseph@codesourcery.com>
1574
1575 * c-common.h (c_common_handle_option): Update prototype and return
1576 value type.
1577 * c-opts.c (c_common_handle_option): Update prototype and return
1578 value type. Update calls to handle_option and
1579 enable_warning_as_error.
1580
1581 2010-07-27 Jakub Jelinek <jakub@redhat.com>
1582
1583 PR c/45079
1584 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
1585
1586 2010-07-27 Joseph Myers <joseph@codesourcery.com>
1587
1588 * c-common.h (c_common_missing_argument): Remove.
1589 * c-opts.c (c_common_missing_argument): Remove.
1590 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
1591 idirafter, imacros, include, isysroot, isystem, iquote): Add
1592 MissingArgError.
1593 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
1594
1595 2010-07-27 Joseph Myers <joseph@codesourcery.com>
1596
1597 * c-common.h (c_common_option_lang_mask,
1598 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
1599 New.
1600 (c_common_init_options): Update prototype.
1601 * c-opts.c (c_common_option_lang_mask): New.
1602 (c_common_initialize_diagnostics): Split out of
1603 c_common_init_options.
1604 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
1605 New.
1606 (c_common_init_options): Update prototype. Use decoded options in
1607 search for -lang-asm.
1608
1609 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
1610
1611 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
1612 * c-format.c: Likewise.
1613
1614 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
1615
1616 * c-common.h: Include diagnostic-core.h. Error if already
1617 included.
1618 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
1619
1620 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1621
1622 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
1623 Do not include expr.h
1624 (vector_mode_valid_p): Move here.
1625
1626 2010-06-21 DJ Delorie <dj@redhat.com>
1627
1628 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
1629 allow these pragmas anywhere.
1630
1631 2010-06-14 Jakub Jelinek <jakub@redhat.com>
1632
1633 PR bootstrap/44509
1634 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
1635 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
1636 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
1637 ggc_strdup instead of xstrdup.
1638
1639 2010-06-10 Jakub Jelinek <jakub@redhat.com>
1640
1641 * c-cppbuiltin.c: Include cpp-id-data.h.
1642 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
1643 (lazy_hex_fp_value): New function.
1644 (builtin_define_with_hex_fp_value): Provide definitions lazily.
1645
1646 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1647
1648 * c-gimplify.c: Do not include tree-flow.h
1649
1650 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
1651
1652 PR other/44034
1653 * c-common.c: Rename targetm member:
1654 targetm.enum_va_list -> targetm.enum_va_list_p
1655
1656 2010-06-28 Anatoly Sokolov <aesok@post.ru>
1657
1658 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
1659
1660 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
1661
1662 * c-cppbuiltin.c: Do not include except.h.
1663
1664 2010-06-24 Andi Kleen <ak@linux.intel.com>
1665
1666 * c-common.c (warn_for_omitted_condop): New.
1667 * c-common.h (warn_for_omitted_condop): Add prototype.
1668
1669 2010-06-21 Joseph Myers <joseph@codesourcery.com>
1670
1671 * c.opt (lang-objc): Remove.
1672 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
1673
1674 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
1675
1676 * c-opts.c: Include "tm_p.h".
1677
1678 2010-06-20 Joseph Myers <joseph@codesourcery.com>
1679
1680 * c-common.c (parse_optimize_options): Update call to
1681 decode_options.
1682
1683 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
1684
1685 * c-common.c (record_types_used_by_current_var_decl): Adjust for
1686 new type of types_used_by_cur_var_decl.
1687
1688 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
1689
1690 PR bootstrap/44512
1691 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
1692 for C++ standard compliance.
1693
1694 2010-06-16 Jason Merrill <jason@redhat.com>
1695
1696 * c.opt: Add -Wnoexcept.
1697
1698 2010-06-16 Richard Guenther <rguenther@suse.de>
1699
1700 PR c/44555
1701 * c-common.c (c_common_truthvalue_conversion): Remove
1702 premature and wrong optimization concering ADDR_EXPRs.
1703
1704 2010-06-15 Arnaud Charlet <charlet@adacore.com>
1705
1706 * c-ada-spec.c (dump_sloc): Remove column info.
1707 (is_simple_enum): New function.
1708 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
1709 enum types when relevant.
1710
1711 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1712
1713 * c-common.c (conversion_warning): Warn at expression
1714 location.
1715
1716 2010-06-10 Joseph Myers <joseph@codesourcery.com>
1717
1718 * c-opts.c (c_common_handle_option): Don't handle
1719 OPT_fshow_column.
1720
1721 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1722
1723 * c-pragma.c (push_alignment): Use typed GC allocation.
1724 (handle_pragma_push_options): Likewise.
1725
1726 * c-common.c (parse_optimize_options): Likewise.
1727
1728 * c-common.h (struct sorted_fields_type): Add variable_size GTY
1729 option.
1730
1731 2010-06-07 Joseph Myers <joseph@codesourcery.com>
1732
1733 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
1734 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1735 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1736 flag_signed_bitfields, warn_strict_null_sentinel,
1737 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
1738 flag_gen_declaration, flag_no_gnu_keywords,
1739 flag_implement_inlines, flag_implicit_templates,
1740 flag_implicit_inline_templates, flag_optional_diags,
1741 flag_elide_constructors, flag_default_inline, flag_rtti,
1742 flag_conserve_space, flag_access_control, flag_check_new,
1743 flag_new_for_scope, flag_weak, flag_working_directory,
1744 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
1745 flag_enforce_eh_specs, flag_threadsafe_statics,
1746 flag_pretty_templates): Remove.
1747 * c-common.h (flag_preprocess_only, flag_nil_receivers,
1748 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
1749 flag_replace_objc_classes, flag_undef, flag_no_builtin,
1750 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1751 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1752 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
1753 flag_no_gnu_keywords, flag_implement_inlines,
1754 flag_implicit_templates, flag_implicit_inline_templates,
1755 flag_optional_diags, flag_elide_constructors, flag_default_inline,
1756 flag_rtti, flag_conserve_space, flag_access_control,
1757 flag_check_new, flag_new_for_scope, flag_weak,
1758 flag_working_directory, flag_use_cxa_atexit,
1759 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
1760 flag_threadsafe_statics, flag_pretty_templates,
1761 warn_strict_null_sentinel): Remove.
1762 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
1763 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
1764 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
1765 fimplicit-inline-templates, fimplicit-templates,
1766 flax-vector-conversions, fms-extensions, fnil-receivers,
1767 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
1768 frtti, fshort-double, fshort-enums, fshort-wchar,
1769 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
1770 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
1771 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
1772 gen-decls, undef): Use Var.
1773 (fdefault-inline, foptional-diags): Document as doing nothing.
1774 * c-opts.c (c_common_handle_option): Remove cases for options now
1775 using Var. Mark ignored options as such.
1776
1777 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
1778
1779 * c-common.c: Moved to here from parent directory.
1780 * c-common.def: Likewise.
1781 * c-common.h: Likewise.
1782 * c-cppbuiltin.c: Likewise.
1783 * c-dump.c: Likewise.
1784 * c-format.c: Likewise.
1785 * c-format.h : Likewise.
1786 * c-gimplify.c: Likewise.
1787 * c-lex.c: Likewise.
1788 * c-omp.c: Likewise.
1789 * c.opt: Likewise.
1790 * c-opts.c: Likewise.
1791 * c-pch.c: Likewise.
1792 * c-ppoutput.c: Likewise.
1793 * c-pragma.c: Likewise.
1794 * c-pragma.h: Likewise.
1795 * c-pretty-print.c: Likewise.
1796 * c-pretty-print.h: Likewise.
1797 * c-semantics.c: Likewise.
1798 * stub-objc.c: Likewise.
1799
1800 * c-common.c: Include gt-c-family-c-common.h.
1801 * c-pragma.c: Include gt-c-family-c-pragma.h.
1802 \f
1803 Copyright (C) 2010, 2011 Free Software Foundation, Inc.
1804
1805 Copying and distribution of this file, with or without modification,
1806 are permitted in any medium without royalty provided the copyright
1807 notice and this notice are preserved.