]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
tree-ssa.c (useless_type_conversion_p): Remove special-casing of conversions to void *.
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
465406be
PC
12012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
2
3 PR c++/51777
4 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
5 use pp_unsigned_wide_integer.
6
aee15221
RG
72012-01-10 Richard Guenther <rguenther@suse.de>
8
9 PR middle-end/51806
10 * c-opts.c (c_common_handle_option): Move -Werror handling
11 to language independent code.
12
5720c0dc
RG
132012-01-05 Richard Guenther <rguenther@suse.de>
14
15 PR middle-end/51764
16 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
17 from common.opt.
18
73ac190a
PC
192011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
20
21 PR c++/51316
22 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
23 of array types with an unknown bound.
24
48b0b196
JM
252011-12-20 Joseph Myers <joseph@codesourcery.com>
26
27 * c-common.c (flag_isoc99): Update comment to refer to C11.
28 (flag_isoc1x): Change to flag_isoc11.
29 * c-common.h (flag_isoc99): Update comment to refer to C11.
30 (flag_isoc1x): Change to flag_isoc11.
31 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
32 C11.
33 * c-opts.c (set_std_c1x): Change to set_std_c11.
34 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
35 Call set_std_c11.
36 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
37 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
38 * c.opt (std=c1x): Change to std=c11. Document as non-draft
39 standard.
40 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
41 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
42 (std=gnu1x): Make alias of std=gnu11.
43
d58d6eb5
JM
442011-12-19 Jason Merrill <jason@redhat.com>
45
46 PR c++/51228
47 * c-common.c (handle_transparent_union_attribute): Check the first
48 field if the type is complete.
49
b3908fcc
JW
502011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
51
52 PR libstdc++/51365
53 * c-common.c (RID_IS_FINAL): Add.
54 * c-common.h (RID_IS_FINAL): Add.
55
fea3ca91
IS
562011-11-30 Iain Sandoe <iains@gcc.gnu.org>
57
58 * c.opt (fgnu-runtime): Provide full description.
59 (fnext-runtime): Likewise.
60 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
61
62bad7cd
AM
622011-11-28 Andrew MacLeod <amacleod@redhat.com>
63
64 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
65 predefines in one place. Add LOCK_FREE predefines.
66 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
67 new func.
68
c466c4ff
AM
692011-11-24 Andrew MacLeod <amacleod@redhat.com>
70
71 PR c/51256
72 * c-common.c (get_atomic_generic_size): Check for various error
73 conditions
74 (resolve_overloaded_atomic_exchange,
75 resolve_overloaded_atomic_compare_exchange,
76 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
77 error_mark_node for error conditions.
78
a5952633
RG
792011-11-08 Richard Guenther <rguenther@suse.de>
80
81 PR middle-end/51010
82 c-family/
83
0a35513e
AH
842011-11-07 Richard Henderson <rth@redhat.com>
85 Aldy Hernandez <aldyh@redhat.com>
86 Torvald Riegel <triegel@redhat.com>
87
88 Merged from transactional-memory.
89
90 * c-common.c (handle_tm_wrap_attribute,
91 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
92 (struct c_common_reswords): Added __transaction* keywords.
93 (struct c_common_attribute_table): Added transaction* and tm_regparm
94 attributes.
95 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
96 masks.
97 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
98 find_tm_attribute): Declare.
99
6d87092d
JM
1002011-11-07 Jason Merrill <jason@redhat.com>
101
102 PR c++/35688
103 * c-common.c, c-common.h: Revert yesterday's changes.
104
8e7860a1
JM
1052011-11-06 Jason Merrill <jason@redhat.com>
106
107 PR c++/35688
108 * c-common.c (decl_has_visibility_attr): Split out from...
109 (c_determine_visibility): ...here.
110 * c-common.h: Declare it.
111
d19fa6b5
JM
1122011-11-06 Joseph Myers <joseph@codesourcery.com>
113
114 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
115 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
116 type.
117 (check_user_alignment): New. Split out of
118 handle_aligned_attribute. Disallow integer constants with
119 noninteger types. Conditionally allow zero.
120 (handle_aligned_attribute): Use check_user_alignment.
121 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
122
86951993
AM
1232011-11-06 Andrew MacLeod <amacleod@redhat.com>
124 Richard Henderson <rth@redhat.com>
125
126 Merged from cxx-mem-model.
127
128 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
129 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
130 parameters that are the same type size.
131 (get_atomic_generic_size): New. Find size of generic
132 atomic function parameters and do typechecking.
133 (add_atomic_size_parameter): New. Insert size into parameter list.
134 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
135 either __atomic_exchange_n or external library call.
136 (resolve_overloaded_atomic_compare_exchange): Restructure
137 __atomic_compare_exchange to either _n variant or external library call.
138 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
139 __atomic_load_n or an external library call.
140 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
141 __atomic_store_n or an external library call.
142 (resolve_overloaded_builtin): Handle new __atomic builtins.
143
cf9e9959
EB
1442011-11-04 Eric Botcazou <ebotcazou@adacore.com>
145
146 PR c++/50608
147 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
148 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
149 <INDIRECT_REF>: Return the argument.
150 <ARRAY_REF>: Remove special code for negative offset.
151 Call fold_build_pointer_plus instead of size_binop.
152 (fold_offsetof): Remove STOP_REF argument and adjust.
153 * c-common.h (fold_offsetof_1): Declare.
154 (fold_offsetof): Remove STOP_REF argument.
155
25339f10
JM
1562011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
157
158 PR c++/50810
159 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
160 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
161 Wnarrowing for C++0x and C++98.
162 * c.opt ([Wnarrowing]): Update.
163
89401152
PC
1642011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
165
166 PR c++/44277
167 * c.opt: Add Wzero-as-null-pointer-constant.
168
97e3ad20
JM
1692011-10-31 Jason Merrill <jason@redhat.com>
170
15694fdd
JM
171 * c.opt (-fdeduce-init-list): Off by default.
172
97e3ad20
JM
173 PR c++/50920
174 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
175 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
176 and -Wc++11-compat.
177 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
178
fb9120e3
RAV
1792011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
180
181 PR c++/30066
182 * c.opt (fvisibility-inlines-hidden): Description change.
183
3ce4f9e4
ESR
1842011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
185
186 Implement C++11 user-defined literals.
187 * c-common.c (build_userdef_literal): New.
188 * c-common.def: New tree code.
189 * c-common.h (tree_userdef_literal): New tree struct and accessors.
190 * c-lex.c (interpret_float): Add suffix parm.
191 (c_lex_with_flags): Build literal tokens.
192
5f53c243
PC
1932011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
194
195 PR c++/50841
196 Revert:
197 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
198
199 PR c++/50810
200 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
201 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
202 Wnarrowing for C++0x and C++98.
203 * c.opt ([Wnarrowing]): Update.
204
263734e1
PC
2052011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
206
207 PR c++/50810
208 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
209 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
210 Wnarrowing for C++0x and C++98.
211 * c.opt ([Wnarrowing]): Update.
212
d2e312d7
PC
2132011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
214
215 PR c++/45385
216 * c-common.c (conversion_warning): Remove code looking for
217 artificial operands.
218
d17687f6
DS
2192011-10-18 Dodji Seketeli <dodji@redhat.com>
220
221 PR bootstrap/50760
222 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
223 !NO_IMPLICIT_EXTERN_C.
224
fc8396e9
PC
2252011-10-17 Michael Spertus <mike_spertus@symantec.com>
226
227 * c-common.c (c_common_reswords): Add __bases,
228 __direct_bases.
229 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
230
2312011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
232
233 PR c++/50757
234 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
235
847e697a
TT
2362011-10-15 Tom Tromey <tromey@redhat.com>
237 Dodji Seketeli <dodji@redhat.com>
238
239 * c.opt (fdebug-cpp): New option.
240 * c-opts.c (c_common_handle_option): Handle the option.
241 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
242 output stream in parameter. Factorized from ...
243 (maybe_print_line): ... this. Dump location debug information when
244 -fdebug-cpp is in effect.
245 (print_line_1): New static function. Takes an output stream in
246 parameter. Factorized from ...
247 (print_line): ... here. Dump location information when -fdebug-cpp
248 is in effect.
249 (scan_translation_unit): Dump location information when
250 -fdebug-cpp is in effect.
251
92582b75
TT
2522011-10-15 Tom Tromey <tromey@redhat.com>
253 Dodji Seketeli <dodji@redhat.com>
254
255 * c.opt (ftrack-macro-expansion): New option. Handle it with and
256 without argument.
257 * c-opts.c (c_common_handle_option)<case
258 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
259 cases. Handle -ftrack-macro-expansion with and without argument.
260
46427374
TT
2612011-10-15 Tom Tromey <tromey@redhat.com>
262 Dodji Seketeli <dodji@redhat.com>
263
264 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
265 (print_line, cb_define, do_line_change): Adjust to avoid touching
266 the internals of struct line_map. Use the public API instead.
267 * c-pch.c (c_common_read_pch): Likewise.
268 * c-lex.c (fe_file_change): Likewise.
269
fc8396e9
PC
2702011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
271
272 PR c++/17212
273 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
274
2752011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
276
277 PR c++/33067
278 * c-pretty-print.c (pp_c_floating_constant): Output
279 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
280
e79983f4
MM
2812011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
282
283 * c-common.c (def_builtin_1): Delete old interface with two
284 parallel arrays to hold standard builtin declarations, and replace
285 it with a function based interface that can support creating
286 builtins on the fly in the future. Change all uses, and poison
287 the old names. Make sure 0 is not a legitimate builtin index.
288 * c-omp.c (c_finish_omp_barrier): Ditto.
289 (c_finish_omp_taskwait): Ditto.
290 (c_finish_omp_flush): Ditto.
291
6637388f
TG
2922011-10-11 Tristan Gingold <gingold@adacore.com>
293
294 * c.opt: (fallow-parameterless-variadic-functions): New.
295
3797cb21
DS
2962011-09-08 Dodji Seketeli <dodji@redhat.com>
297
298 PR c++/33255 - Support -Wunused-local-typedefs warning
299 * c-common.h (struct c_language_function::local_typedefs): New
300 field.
301 (record_locally_defined_typedef, maybe_record_typedef_use)
302 (maybe_warn_unused_local_typedefs): Declare new functions.
303 * c-common.c (record_locally_defined_typedef)
304 (maybe_record_typedef_use)
305 (maybe_warn_unused_local_typedefs): Define new functions.
306 * c.opt: Declare new -Wunused-local-typedefs flag.
307
693ddb1b
EB
3082011-09-06 Eric Botcazou <ebotcazou@adacore.com>
309
310 PR middle-end/50266
311 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
312 computations.
313
830c740f
RG
3142011-09-05 Richard Guenther <rguenther@suse.de>
315
316 * c-common.c (complete_array_type): Use ssize_int (-1) instead
317 of integer_minus_one_node for empty array upper bounds.
318
892a371f
DS
3192011-08-28 Dodji Seketeli <dodji@redhat.com>
320
321 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
322 it's the first time it's being called on this main TU.
323
0e3fdb48
RB
3242011-08-24 Richard Guenther <rguenther@suse.de>
325
326 PR c/49396
327 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
328
3292011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
330
331 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
332 defined in cpp_init_builtins and c_cpp_builtins.
333
d4a83c10
JM
3342011-08-19 Joseph Myers <joseph@codesourcery.com>
335
336 * c-common.c (c_common_reswords): Add __builtin_complex.
337 * c-common.h (RID_BUILTIN_COMPLEX): New.
338
bbceee64
JM
3392011-08-18 Joseph Myers <joseph@codesourcery.com>
340
341 * c-common.c (c_common_reswords): Add _Noreturn.
342 (keyword_is_function_specifier): Handle RID_NORETURN.
343 * c-common.h (RID_NORETURN): New.
344
0e3a99ae
AS
3452011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
346
347 * c-common.c (unsafe_conversion_p): New function. Check if it is
348 unsafe to convert an expression to the type.
349 (conversion_warning): Adjust, use unsafe_conversion_p.
350 * c-common.h (unsafe_conversion_p): New function declaration.
351
20906c66
JJ
3522011-08-02 Jakub Jelinek <jakub@redhat.com>
353
354 * c-common.h (c_finish_omp_atomic): Adjust prototype.
355 (c_finish_omp_taskyield): New prototype.
356 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
357 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
358 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
359 or RHS1 have side-effects, evaluate those too in the right spot,
360 if it is a decl and LHS is also a decl, error out if they
361 aren't the same.
362 (c_finish_omp_taskyield): New function.
363 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
364 * c-pragma.c (omp_pragmas): Add taskyield.
365 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
366 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
367 PRAGMA_OMP_CLAUSE_MERGEABLE.
368
770e5a2e
DS
3692011-07-25 Dodji Seketeli <dodji@redhat.com>
370
371 * c-common.h (set_underlying_type): Remove parm name from
372 declaration.
373
1baae426
RG
3742011-07-25 Romain Geissler <romain.geissler@gmail.com>
375
376 * c-pretty-print.h: Search c-common.h in c-family.
377
fcb21722
JM
3782011-07-22 Jason Merrill <jason@redhat.com>
379
76f86d00
JM
380 PR c++/49793
381 * c.opt (Wnarrowing): New.
382
3a636414
JM
383 PR c++/30112
384 * c-common.h: Declare c_linkage_bindings.
385 * c-pragma.c (handle_pragma_redefine_extname): Use it.
386
fcb21722
JM
387 PR c++/49813
388 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
389 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
390 as flag_isoc99 for 'restrict'.
391 (pp_c_specifier_qualifier_list): Likewise for _Complex.
392
02614448
ILT
3932011-07-21 Ian Lance Taylor <iant@google.com>
394
395 PR middle-end/49705
396 * c-common.c (c_disable_warnings): New static function.
397 (c_enable_warnings): New static function.
398 (c_fully_fold_internal): Change local unused_p to bool. Call
399 c_disable_warnings and c_enable_warnings rather than change
400 c_inhibit_evaluation_warnings.
401
34429675
JM
4022011-07-20 Jason Merrill <jason@redhat.com>
403
404 PR c++/6709 (DR 743)
405 PR c++/42603 (DR 950)
406 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
407 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
408 (CPP_DECLTYPE): New.
409 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
410
5d49b6a7
RG
4112011-07-19 Richard Guenther <rguenther@suse.de>
412
413 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
414 * c-omp.c (c_finish_omp_for): Likewise.
415
e84a58ff
EB
4162011-07-12 Eric Botcazou <ebotcazou@adacore.com>
417
418 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
419 body on the next line.
420
329af3c7
JM
4212011-07-08 Jason Merrill <jason@redhat.com>
422
4063e61b
JM
423 PR c++/45437
424 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
425
329af3c7
JM
426 PR c++/49673
427 * c-common.c (c_apply_type_quals_to_decl): Don't check
428 TYPE_NEEDS_CONSTRUCTING.
429
1a072294
RG
4302011-07-06 Richard Guenther <rguenther@suse.de>
431
432 * c-common.c (c_common_nodes_and_builtins):
433 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
434
fce5dddd
RG
4352011-07-05 Richard Guenther <rguenther@suse.de>
436
437 * c-common.c (c_common_nodes_and_builtins): Build all common
438 tree nodes first.
439
45d439ac
JJ
4402011-06-27 Jakub Jelinek <jakub@redhat.com>
441
56300785
JJ
442 * c-common.h (c_tree_chain_next): New static inline function.
443
45d439ac
JJ
444 * c-common.c (check_builtin_function_arguments): Handle
445 BUILT_IN_ASSUME_ALIGNED.
446
e0a8ecf2
AM
4472011-06-21 Andrew MacLeod <amacleod@redhat.com>
448
449 * c-common.c: Add sync_ or SYNC__ to builtin names.
450 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
451
4522011-06-20 Pierre Vittet <piervit@pvittet.com>
453
454 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
455 handler.
456 (gen_pragma_handler): New union.
457 (internal_pragma_handler): New type.
458 (c_register_pragma_with_data)
459 (c_register_pragma_with_expansion_and_data): New functions.
460
461 * c-pragma.c (registered_pragmas, c_register_pragma_1)
462 (c_register_pragma, c_register_pragma_with_expansion)
463 (c_invoke_pragma_handler): Changed to work with
464 internal_pragma_handler.
465 (c_register_pragma_with_data)
466 (c_register_pragma_with_expansion_and_data): New functions.
467
677f3fa8
JM
4682011-06-14 Joseph Myers <joseph@codesourcery.com>
469
470 * c-common.c: Include common/common-target.h.
471 (handle_section_attribute): Use
472 targetm_common.have_named_sections.
473 * c-cppbuiltin.c: Include common/common-target.h.
474 (c_cpp_builtins): Use targetm_common.except_unwind_info.
475
d7fc8c14
RG
4762011-06-10 Richard Guenther <rguenther@suse.de>
477
478 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
479 to print a IDENTIFIER_NODE.
480
10e48e39
RO
4812011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
482 Joseph Myers <joseph@codesourcery.com>
483
484 * c.opt (fbuilding-libgcc): New option.
485 * c-cppbuiltin.c (c_cpp_builtins): Define
486 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
487
6976ae51
JM
4882011-06-07 Jason Merrill <jason@redhat.com>
489
3ff60975
JM
490 * c-common.c (max_tinst_depth): Lower default to 900.
491
6976ae51
JM
492 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
493
009db074
RG
4942011-06-07 Richard Guenther <rguenther@suse.de>
495
496 * c-common.c (c_common_nodes_and_builtins): Do not set
497 size_type_node or call set_sizetype.
498
b4592b92
DS
4992011-06-07 Dodji Seketeli <dodji@redhat.com>
500
501 PR debug/49130
502 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
503 type when using pointer comparison to compare types.
504
014ab419
JW
5052011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
506
507 * c.opt: Add -Wdelete-non-virtual-dtor.
508 * c-opts.c (c_common_handle_option): Include it in -Wall.
509
4f60111f
NF
5102011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
511
512 PR bootstrap/49190
513
514 Revert:
515 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
516
517 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
518 not tree_common.
519
4cc4f2f4
JJ
5202011-05-27 Jakub Jelinek <jakub@redhat.com>
521
522 PR c++/49165
523 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
524 C++ don't call c_common_truthvalue_conversion on void type arms.
525
38e01f9e
NF
5262011-05-27 Nathan Froyd <froydnj@codesourcery.com>
527
528 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
529 (stmt_list_stack): Define.
530 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
531 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
532
92e948a8
NF
5332011-05-26 Nathan Froyd <froydnj@codesourcery.com>
534
535 * c-common.c (warning_candidate_p): Check for BLOCKs.
536
a2fc3e63
NF
5372011-05-26 Nathan Froyd <froydnj@codesourcery.com>
538
539 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
540 not tree_common.
541
0957c029
JJ
5422011-05-25 Jakub Jelinek <jakub@redhat.com>
543
544 * c-common.c (def_fn_type): Remove extra va_end.
545
828fb3ba
JM
5462011-05-23 Jason Merrill <jason@redhat.com>
547
548 PR c++/48106
549 * c-common.c (c_common_get_narrower): New.
550 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
551
dde05067
NF
5522011-05-23 Nathan Froyd <froydnj@codesourcery.com>
553
554 * c-common.h (check_function_arguments): Tweak prototype of
555 check_function_arguments.
556 * c-common.c (check_function_arguments): Likewise. Adjust
557 calls to check_function_nonnull, check_function_format, and
558 check_function_sentinel.
559 (check_function_sentinel): Take a FUNCTION_TYPE rather than
560 separate attributes and typelist arguments. Use
561 FOREACH_FUNCTION_ARGS to iterate over argument types.
562
3c0d13bf
PC
5632011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
564
565 * c-common.c (c_common_reswords): Reorder.
566 * c-common.h (rid): Likewise.
567
8242dd04
NF
5682011-05-10 Nathan Froyd <froydnj@codesourcery.com>
569
570 * c-common.c (def_fn_type): Don't call build_function_type, call
571 build_function_type_array or build_varargs_function_type_array
572 instead.
573 (c_common_nodes_and_builtins): Likewise.
574
3d528853
NF
5752011-05-05 Nathan Froyd <froydnj@codesourcery.com>
576
577 * c-common.c (c_add_case_label): Omit the loc argument to
578 build_case_label.
579 * c-common.h (build_case_label): Remove.
580 * c-semantics.c (build_case_label): Remove.
581
a04a722b
JM
5822011-05-05 Joseph Myers <joseph@codesourcery.com>
583
584 * c-objc.h (objc_start_method_definition): Update prototype.
585 * stub-objc.c (objc_start_method_definition): Add extra parameter.
586
e19a18d4
NF
5872011-05-04 Nathan Froyd <froydnj@codesourcery.com>
588
589 * c-common.c (check_main_parameter_types): Reindent. Don't use
590 TYPE_ARG_TYPES directly.
591 (handle_nonnull_attribute): Likewise.
592 (sync_resolve_params): Likewise.
593 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
594 to check_format_string.
595 (handle_format_attribute): Likewise.
596 (check_format_string): Take a function type to examine instead of
597 a type list. Use a function_arg_iterator to step through argument
598 types.
599
c62c040f
RG
6002011-05-04 Richard Guenther <rguenther@suse.de>
601
602 * c-common.c (fix_string_type): Use size_int for index type bounds.
603 (start_fname_decls): Do not pass NULL to build_int_cst.
604 (c_init_attributes): Likewise.
605 * c-lex.c (c_lex_with_flags): Likewise.
606
c12ff9d8
JM
6072011-04-27 Jason Merrill <jason@redhat.com>
608
609 * c-common.c (make_tree_vector_from_list): New.
610 * c-common.h: Declare it.
611
304dfbe3
RG
6122011-04-26 Richard Guenther <rguenther@suse.de>
613
614 PR preprocessor/48248
615 * c-ppoutput.c (maybe_print_line): Always optimize newlines
616 for output size with -P.
617
3c0d13bf
PC
6182011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
619
620 * c-common.c (struct c_common_resword): Add __underlying_type.
621 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
622
04695783
JM
6232011-04-20 Jim Meyering <meyering@redhat.com>
624
625 * c-format.c (init_dollar_format_checking): Remove useless
626 if-before-free.
627
0dc33c3c
NP
6282011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
629
630 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 631 (objc_detect_field_duplicates): New.
0dc33c3c 632 * stub-objc.c: Likewise.
3c0d13bf 633
c59633d9
NP
6342011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
635
636 * stub-objc.c (objc_declare_protocols): Renamed to
637 objc_declare_protocol.
638 * c-objc.h: Likewise.
3c0d13bf 639
32dabdaf
NP
6402011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
641
642 * stub-objc.c (objc_declare_class): Updated argument name.
643
81f653d6
NF
6442011-04-12 Nathan Froyd <froydnj@codesourcery.com>
645
646 * c-common.h (c_common_init_ts): Declare.
647 * c-common.c (c_common_init_ts): Define.
648
eb345401
NP
6492011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
650
651 * c-objc.h (objc_build_message_expr): Updated prototype.
652 * stub-objc.c (objc_build_message_expr): Likewise.
653
a358e188
MJ
6542011-04-12 Martin Jambor <mjambor@suse.cz>
655
656 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
657 of cgraph_node.
658
e6313a78
RG
6592011-04-11 Richard Guenther <rguenther@suse.de>
660
661 * c-common.c (complete_array_type): Build a range type of
662 proper type.
663
dcf0c47e
NF
6642011-04-08 Nathan Froyd <froydnj@codesourcery.com>
665
666 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
667 (handle_type_generic_attribute): Likewise.
668
1ee44b26
JM
6692011-04-07 Jason Merrill <jason@redhat.com>
670
671 PR c++/48450
672 * c-common.c (c_common_truthvalue_conversion): Don't ignore
673 conversion from C++0x scoped enum.
674
acce4e77
JM
6752011-04-06 Joseph Myers <joseph@codesourcery.com>
676
677 * c-target-def.h: New file.
678 * c-target.def: New file.
679 * c-target.h: New file.
680 * c-common.c (targetcm): Don't define here.
681 * c-common.h (default_handle_c_option): Declare.
682 * c-format.c: Include c-target.h instead of target.h.
683 * c-opts.c: Include c-target.h instead of target.h. Explicitly
684 include tm.h.
685 (default_handle_c_option): Move from targhooks.c.
686
e2eefb55
JJ
6872011-03-29 Jakub Jelinek <jakub@redhat.com>
688
689 PR preprocessor/48248
690 * c-ppoutput.c (print): Add src_file field.
691 (init_pp_output): Initialize it.
692 (maybe_print_line): Don't optimize by adding up to 8 newlines
693 if map->to_file and print.src_file are different file.
694 (print_line): Update print.src_file.
695
ba78087b
KT
6962011-03-25 Kai Tietz <ktietz@redhat.com>
697
698 * c-ada-spec.c (compare_comment): Use filename_cmp
699 instead of strcmp for filename.
700
0edf1bb2
JL
7012011-03-25 Jeff Law <law@redhat.com>
702
703 * c-family/c-common.c (def_fn_type): Add missing va_end.
704
c7dc8804
JM
7052011-03-25 Jason Merrill <jason@redhat.com>
706
707 * c.opt: Add -std=c++03.
708
d1d879b1
EB
7092011-03-22 Eric Botcazou <ebotcazou@adacore.com>
710
711 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
712
62d784f7
KT
7132011-03-17 Kai Tietz
714
715 PR target/12171
5050afdf
KT
716 * c-pretty-print.c (pp_c_specifier_qualifier_list):
717 Display allowed attributes for function pointer types.
718 (pp_c_attributes_display): New function to display
719 attributes having affects_type_identity flag set to true.
720 * c-pretty-print.h (pp_c_attributes_display): New prototype.
721
62d784f7
KT
722 * c-common.c (c_common_attribute_table):
723 Add new element.
724 (c_common_format_attribute_table): Likewise.
725
82d37118
JM
7262011-03-18 Jason Merrill <jason@redhat.com>
727
49a000c3
JM
728 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
729 * c-common.h: Don't declare it here.
730 * c-common.c: Or define it here.
731 * c-opts.c (c_common_handle_option): Or set it here.
732
82d37118
JM
733 PR c++/35315
734 * c-common.c (handle_transparent_union_attribute): Don't
735 make a duplicate type in C++.
736
17bc631c
JM
7372011-03-15 Jason Merrill <jason@redhat.com>
738
739 * c-common.c (max_constexpr_depth): New.
740 * c-common.h: Declare it.
741 * c-opts.c (c_common_handle_option): Set it.
742 * c.opt (fconstexpr-depth): New option.
743
1b9b91a6
JM
7442011-03-11 Jason Merrill <jason@redhat.com>
745
f231b5ff
JM
746 * c-common.c (attribute_takes_identifier_p): Add missing const.
747
1b9b91a6
JM
748 PR c++/46803
749 * c-common.c (attribute_takes_identifier_p): Assume that an
750 unknown attribute takes an identifier.
751
a19e4d44
NF
7522011-03-07 Nathan Froyd <froydnj@codesourcery.com>
753
754 PR c/47786
755 * c-common.c (c_type_hash): Call list_length instead of iterating
756 through DECL_CHAIN. Rename 'i' to 'n_elements'.
757
982d62f6
JJ
7582011-02-19 Jakub Jelinek <jakub@redhat.com>
759
760 PR c/47809
761 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
762
0a256240
NP
7632011-02-17 Iain Sandoe <iains@gcc.gnu.org>
764
765 * c.opt (fobjc-abi-version=) New.
766 (fobjc-nilcheck): New.
767
ba9e6dd5
NF
7682011-02-03 Nathan Froyd <froydnj@codesourcery.com>
769
770 PR c++/46890
771 * c-common.h (keyword_is_decl_specifier): Declare.
772 * c-common.c (keyword_is_decl_specifier): Define.
773 (keyword_is_function_specifier): New function.
774
7273813a
JJ
7752011-01-26 Jakub Jelinek <jakub@redhat.com>
776
777 PR c/47473
778 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
779 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
780 REAL_TYPE.
781
908ef79b
AC
7822011-01-26 Arnaud Charlet <charlet@adacore.com>
783
784 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
785
237e9384
JJ
7862011-01-26 Jakub Jelinek <jakub@redhat.com>
787
788 PR pch/47430
789 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
790 after init_c_lex if pch_file is set.
791
47ea1edf
DK
7922011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
793
d4dba752 794 PR c++/43601
47ea1edf
DK
795 * c.opt (-fkeep-inline-dllexport): New switch.
796
2aa9c6ae
RG
7972011-01-12 Richard Guenther <rguenther@suse.de>
798
799 PR middle-end/32511
800 * c-common.c (handle_weak_attribute): Warn instead of error
801 on declaring an inline function weak.
802
7bd11157
TT
8032011-01-05 Tom Tromey <tromey@redhat.com>
804
805 * c-common.h (lvalue_error): Update.
806 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
807 not error.
808
0e66e494
NP
8092010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
810
b4f588c4
NP
811 PR objc/47075
812 * c-objc.h (objc_finish_message_expr): Added argument to
813 prototype.
814
f4da8dce
NF
8152010-12-22 Nathan Froyd <froydnj@codesourcery.com>
816
817 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
818 Use prototype_p.
819
46270f14
NP
8202010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
821
822 * c-objc.h (objc_maybe_warn_exceptions): New.
823 * stub-objc.c (objc_maybe_warn_exceptions): New.
824
4816c593
NF
8252010-12-10 Nathan Froyd <froydnj@codesourcery.com>
826
827 * c-common.h (readonly_error): Declare.
828 * c-common.c (readonly_error): Define.
829
7a6daeb0
NF
8302010-12-09 Nathan Froyd <froydnj@codesourcery.com>
831
832 * c-common.h (invalid_indirection_error): Declare.
833 * c-common.c (invalid_indirection_error): Define.
834
892f6119
RG
8352010-12-03 Richard Guenther <rguenther@suse.de>
836
837 PR c/46745
838 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
839 (pp_c_unary_expression): Likewise.
840 (pp_c_expression): Likewise.
841
6c39e757
NP
8422010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
843
844 * c-common.h (objc_finish_function): New.
845 (objc_non_volatilized_type): Removed.
846 (objc_type_quals_match): Removed.
847 * stub-objc.c (objc_finish_function): New.
848 (objc_non_volatilized_type): Removed.
849 (objc_type_quals_match): Removed.
850
7c475d11
JM
8512010-11-30 Joseph Myers <joseph@codesourcery.com>
852
853 * c-common.h (parse_optimize_options): Declare.
854 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
855 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
856
71f3e391
JM
8572010-11-29 Joseph Myers <joseph@codesourcery.com>
858
859 * c-opts.c (check_deps_environment_vars): Use getenv instead of
860 GET_ENVIRONMENT.
861 * c-pch.c (O_BINARY): Don't define here.
862 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
863
d5fabb58
JM
8642010-11-25 Joseph Myers <joseph@codesourcery.com>
865
866 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
867 targetm.except_unwind_info.
868
299404a1
JM
8692010-11-23 Joseph Myers <joseph@codesourcery.com>
870
871 * c-opts.c (c_common_handle_option): Pass location to
872 set_struct_debug_option.
873
c98cd5bf
JM
8742010-11-23 Joseph Myers <joseph@codesourcery.com>
875
876 * c-common.c (visibility_options): Move from ../opts.c.
877 * c-common.h (struct visibility_flags, visibility_options):
878 Declare here.
879 * c-opts.c (finish_options): Rename to c_finish_options.
880 (c_common_init): Update call to finish_options.
881
a9546771
NP
8822010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
883
884 PR objc/34033
885 * c-lex.c (lex_string): Check that each string in an Objective-C
886 string concat sequence starts with either one or zero '@', and
887 that there are no spurious '@' signs at the end.
888
24a57808
JM
8892010-11-20 Joseph Myers <joseph@codesourcery.com>
890
891 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
892 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
893 HANDLE_PRAGMA_VISIBILITY.
894 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
895 HANDLE_PRAGMA_VISIBILITY): Don't define.
896 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
897
a9aa2c3a
NF
8982010-11-20 Nathan Froyd <froydnj@codesourcery.com>
899
900 PR c++/16189
901 PR c++/36888
902 PR c++/45331
903 * c-common.h (keyword_begins_type_specifier): Declare.
904 (keyword_is_storage_class_specifier): Declare.
905 (keyword_is_type_qualifier): Declare.
906 * c-common.c (keyword_begins_type_specifier): New function.
907 (keyword_is_storage_class_specifier): New function.
908 (keyword_is_type_qualifier): Declare.
909
5386338c
JM
9102010-11-19 Joseph Myers <joseph@codesourcery.com>
911
912 PR c/46547
913 * c-common.c (in_late_binary_op): Define.
914 (c_common_truthvalue_conversion): Check in_late_binary_op before
915 calling c_save_expr.
916 * c-common.h (in_late_binary_op): Declare.
917
69ccdddb
JM
9182010-11-19 Joseph Myers <joseph@codesourcery.com>
919
920 * c-opts.c (c_common_handle_option): Update calls to
921 set_struct_debug_option.
922
6b192a09
NP
9232010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
924
925 * c-common.h (objc_declare_protocols): Added additional argument.
926 * stub-objc.c (objc_declare_protocol): Same change.
927
fb52b50a
NF
9282010-11-18 Nathan Froyd <froydnj@codesourcery.com>
929
930 PR c/33193
931 * c-common.h (build_real_imag_expr): Declare.
932 * c-semantics.c (build_real_imag_expr): Define.
933
b37421c6
JM
9342010-11-17 Joseph Myers <joseph@codesourcery.com>
935
936 * c-opts.c (c_common_parse_file): Take no arguments.
937 * c-common.h (c_common_parse_file): Update prototype.
938
07078664
JJ
9392010-11-16 Jakub Jelinek <jakub@redhat.com>
940
941 PR c++/46401
942 * c-common.c (warning_candidate_p): Don't track non-const calls
943 or STRING_CSTs.
944
c6a13190
ILT
9452010-11-15 Ian Lance Taylor <iant@google.com>
946
947 * c-lex.c (init_c_lex): Set macro debug callbacks if
948 flag_dump_go_spec is set.
949
925e8657
NP
9502010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
951
952 * c-common.h (objc_build_incr_expr_for_property_ref): New.
953 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
954
bb0a9581
NF
9552010-11-15 Nathan Froyd <froydnj@codesourcery.com>
956
957 PR preprocessor/45038
958 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
959 dialects.
960
c5fa0890
JM
9612010-11-12 Joseph Myers <joseph@codesourcery.com>
962
963 * c-common.h (c_family_lang_mask): Declare.
964 * c-opts.c (c_family_lang_mask): Make extern.
965 * c-pragma.c (handle_pragma_diagnostic): Use
966 control_warning_option.
967
a4d8c676
JM
9682010-11-12 Joseph Myers <joseph@codesourcery.com>
969
970 * c-common.c (parse_optimize_options): Update call to
971 decode_options.
972 * c-common.h (c_common_handle_option): Update prototype.
973 * c-opts.c (c_common_handle_option): Take location_t parameter and
974 pass it to other functions.
975
f954bd2c
JM
9762010-11-11 Joseph Myers <joseph@codesourcery.com>
977
978 * c-opts.c (warning_as_error_callback): Remove.
979 (c_common_initialize_diagnostics): Don't call
980 register_warning_as_error_callback.
981 (c_common_handle_option): Handle -Werror=normalized= here.
982
d8a07487
JM
9832010-11-10 Joseph Myers <joseph@codesourcery.com>
984
985 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
986 in diagnostic.
987 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
988 letter.
989 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
990 Remove trailing '.' from diagnostics.
991 * c.opt (Wwrite-strings_: Avoid '`' in help text.
992
d5478783
JM
9932010-11-10 Joseph Myers <joseph@codesourcery.com>
994
995 * c-common.c (parse_optimize_options): Pass global_dc to
996 decode_options.
997 * c-opts.c (c_common_handle_option): Pass &global_options to
998 set_Wstrict_aliasing.
999 * c.opt (v): Don't mark Common or document here.
1000
91ebb981
IS
10012010-11-06 Iain Sandoe <iains@gcc.gnu.org>
1002
1003 PR target/44981
1004 * c-format.c (format_type): New type gcc_objc_string_format_type.
1005 (valid_stringptr_type_p): New.
1006 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
1007 (check_format_string): Pass expected type, use
1008 valid_stringptr_type_p (), check that the format string types are
1009 consistent with the format specification.
1010 (decode_format_attr): Warn if NSString is used outside objective-c.
1011 (format_types_orig): Add NSString.
1012 (format_name): New.
1013 (format_flags): New.
1014 (check_format_arg): Handle format strings requiring an external parser.
1015 first_target_format_type: New variable.
1016 (handle_format_attribute): Set up first_target_format_type, pass the
1017 expected format arg string type to check_format_string().
1018 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
1019 * stub-objc.c (objc_string_ref_type_p): New.
1020 (objc_check_format_arg): New.
1021
bede2adc
NP
10222010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
1023
1024 Fixed using the Objective-C 2.0 dot-syntax with class names.
1025 * c-common.h (objc_build_class_component_ref): New.
1026 * stub-objc.c (objc_build_class_component_ref): New.
1027
9a179d01
NP
10282010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1029
1030 * c.opt (Wproperty-assign-default): New option.
1031
22d8d616
NP
10322010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1033
1034 Implemented -fobjc-std=objc1 flag.
1035 * c.opt (fobjc-std=objc1): New option.
1036
2debdb4f
NP
10372010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
1038
1039 Implemented format and noreturn attributes for Objective-C methods.
1040 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
1041 attribute for Objective-C methods.
1042
ec52b111
JM
10432010-10-31 Jason Merrill <jason@redhat.com>
1044
1045 * c-common.c (conversion_warning, warn_for_collisions_1): Use
1046 EXPR_LOC_OR_HERE.
1047
46a88c12
NP
10482010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
1049
1050 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
1051 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
1052 (objc_add_property_declaration): Removed arguments for copies and
1053 ivar.
1054 (objc_build_getter_call): Renamed to
1055 objc_maybe_build_component_ref.
1056 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1057 (objc_is_property_ref): New.
1058 * c-common.c (c_common_reswords): Removed copies and ivar.
1059 * stub-objc.c (objc_add_property_declaration): Removed arguments
1060 for copies and ivar.
1061 (objc_build_getter_call): Renamed to
1062 objc_maybe_build_component_ref.
1063 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1064 (objc_is_property_ref): New.
1065
1e4bf85b
AC
10662010-10-29 Arnaud Charlet <charlet@adacore.com>
1067 Matthew Gingell <gingell@adacore.com>
1068
1069 * c-ada-spec.c (separate_class_package): New function.
1070 (pp_ada_tree_identifier): Prefix references to C++ classes with the
1071 name of their enclosing package.
1072 (print_ada_declaration): Use separate_class_package.
1073
81f0bab2
JM
10742010-10-27 Jason Merrill <jason@redhat.com>
1075
2b08f2c5
JM
1076 * c-common.c (c_common_reswords): Add __is_literal_type.
1077 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
1078
81f0bab2
JM
1079 * c-common.c (check_case_value): Remove special C++ code.
1080
200290f2
NP
10812010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1082
1083 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
1084 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
1085 and RID_LAST_PATTR.
1086 (objc_add_property_declaration): Added additional arguments.
1087 (objc_property_attribute_kind): Removed.
1088 (objc_set_property_attr): Removed.
1089 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
1090 copy and nonatomic.
1091 * stub-objc.c (objc_add_property_declaration): Added additional
1092 arguments.
1093 (objc_set_property_attr): Removed.
1094
f614132b
NP
10952010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1096
1097 * c-common.h (objc_add_property_variable): Renamed to
1098 objc_add_property_declaration. Added location argument.
1099 * stub-objc.c (objc_add_property_variable): Same change.
1100
b8a18805
NP
11012010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
1102
1103 * c-common.h (objc_maybe_printable_name): New.
1104 * stub-objc.c (objc_maybe_printable_name): New.
1105
30cd1c5d
AS
11062010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1107 Andrew Pinski <pinskia@gmail.com>
1108
1109 * c-common.h (c_common_mark_addressable_vec): Declare.
1110 * c-common.c (c_common_mark_addressable_vec): New function.
1111
249a82c4
NP
11122010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1113
1114 * c-common.h (objc_set_method_type): Removed.
1115 (objc_add_method_declaration): Added boolean argument.
1116 (objc_start_method_definition): Same change.
1117 (objc_build_method_signature): Same change.
1118 * stub-objc.c (objc_set_method_type): Removed.
1119 (objc_add_method_declaration): Added boolean argument.
1120 (objc_start_method_definition): Same change.
1121 (objc_build_method_signature): Same change.
1122
977e30bc
NP
11232010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1124
1125 * c-common.h (finish_file): Removed.
1126 (objc_write_global_declarations): New.
1127 * c-opts.c (c_common_parse_file): Do not call finish_file.
1128 * stub-objc.c (objc_write_global_declarations): New.
1129
da57d1b9
NP
11302010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1131
1132 Implemented parsing @synthesize and @dynamic for
1133 Objective-C/Objective-C++.
1134 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
1135 (objc_add_synthesize_declaration): New.
1136 (objc_add_dynamic_declaration): New.
1137 * c-common.c (c_common_reswords): Add synthesize and dynamic.
1138 * stub-objc.c (objc_add_synthesize_declaration): New.
1139 (objc_add_dynamic_declaration): New.
1140
0069111f
MM
11412010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1142
1143 PR target/46041
1144 * c-cppbuiltin.c (mode_has_fma): Move function here from
1145 builtins.c. Don't use the fma optab, instead just use the
1146 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
1147 using -save-temps.
1148
e426b47b
NP
11492010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1150
1151 Merge from 'apple/trunk' branch on FSF servers.
0069111f 1152
e426b47b
NP
1153 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
1154
1155 Radar 4330422
1156 * c-common.h (objc_non_volatilized_type): New declaration
1157 * stub-objc.c (objc_non_volatilized_type): New stub.
1158
90fbfdc3
NP
11592010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
1160
e426b47b 1161 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
1162
1163 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
1164
1165 Radar 4133425
1166 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 1167 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 1168
c37d8c30
IS
11692010-10-17 Iain Sandoe <iains@gcc.gnu.org>
1170
1171 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
1172 * c-common.h (enum rid): Add RID_AT_PACKAGE.
1173 (objc_ivar_visibility_kind): New enum.
1174 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 1175 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
1176 visibility enum.
1177
1b1562a5
MM
11782010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1179
1180 * c-cppbuiltin.c (builtin_define_float_constants): Emit
1181 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
1182 has the appropriate fma builtins.
1183 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
1184
668ea4b1
IS
11852010-10-14 Iain Sandoe <iains@gcc.gnu.org>
1186
1b1562a5 1187 merge from FSF apple 'trunk' branch.
668ea4b1 1188 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 1189
668ea4b1
IS
1190 Radars 4436866, 4505126, 4506903, 4517826
1191 * c-common.c (c_common_resword): Define @property and its attributes.
1192 * c-common.h: Define property attribute enum entries.
1193 (OBJC_IS_PATTR_KEYWORD): New.
1194 (objc_property_attribute_kind): New enum.
1195 Declare objc_set_property_attr (), objc_add_property_variable (),
1196 objc_build_getter_call () and objc_build_setter_call ().
1197 * stub-objc.c (objc_set_property_attr): New stub.
1198 (objc_add_property_variable): Likewise.
1199 (objc_build_getter_call): Likewise.
1200 (objc_build_setter_call) Likewise.
1b1562a5 1201
a1178b30
IS
12022010-10-13 Iain Sandoe <iains@gcc.gnu.org>
1203
1b1562a5 1204 merge from FSF apple 'trunk' branch.
a1178b30
IS
1205 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
1206
1207 Radar 3803157 (method attributes)
1208 * c-common.c (handle_deprecated_attribute): Recognize
1209 objc methods as valid declarations.
1210 * c-common.h: Declare objc_method_decl ().
1b1562a5 1211 * stub-objc.c (objc_method_decl): New stub.
a1178b30 1212
a75bfaa6
JM
12132010-10-08 Joseph Myers <joseph@codesourcery.com>
1214
1215 * c-common.c (parse_optimize_options): Call
1216 decode_cmdline_options_to_array_default_mask before
1217 decode_options. Update arguments to decode_options.
1218 * c-common.h (c_common_init_options_struct): Declare.
1219 * c-opts.c (c_common_init_options_struct): New. Split out from
1220 c_common_init_options.
1221
f05b9d93
NP
12222010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
1223
1224 Implemented fast enumeration for Objective-C.
1225 * c-common.h (objc_finish_foreach_loop): New.
1226 * stub-objc.c (objc_finish_foreach_loop): New.
1227
1ebe4b4f
JM
12282010-10-05 Joseph Myers <joseph@codesourcery.com>
1229
1230 * c-common.h (struct diagnostic_context): Don't declare here.
1231 (c_common_initialize_diagnostics): Declare using
1232 diagnostic_context typedef.
1233 * c-opts.c (c_common_handle_option): Pass global_dc to
1234 handle_generated_option.
1235
d4d24ba4
JM
12362010-10-04 Joseph Myers <joseph@codesourcery.com>
1237
1238 * c-opts.c (c_common_handle_option): Pass &global_options_set to
1239 handle_generated_option.
1240
478a1c5b
ILT
12412010-10-03 Ian Lance Taylor <iant@google.com>
1242
1243 * c.opt (-fplan9-extensions): New option.
1244
82a1c2fe
FXC
12452010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1246
1247 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
1248 Remove.
1249 (c_cpp_builtins): Call functions from cppbuiltin.c instead
1250 of duplicating code.
1251
92902b1b
IS
12522010-09-30 Iain Sandoe <iains@gcc.gnu.org>
1253
1254 * c-common.c: Add two new entries for @optional
1255 and @required keywords.
1256
1257 merge from FSF 'apple/trunk' branch.
1258 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
1259
1260 Radar 4386773
1261 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
1262 objective-c keywords.
1263 (objc_set_method_opt): New declaration.
1264 * stub-objc.c (objc_set_method_opt): New stub.
1265
46625112
JM
12662010-09-30 Joseph Myers <joseph@codesourcery.com>
1267
1268 * c-common.c (handle_optimize_attribute): Pass &global_options to
1269 cl_optimization_save and cl_optimization_restore.
1270 * c-opts.c (c_common_handle_option): Pass &global_options to
1271 handle_generated_option.
1272 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
1273 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
1274 &global_options to cl_optimization_restore.
1275
49b91f05
NP
12762010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
1277
1278 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
1279 Objective-C/Objective-C++ keywords.
1280
13ed556f 12812010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57
NP
1282
1283 Merge from 'apple/trunk' branch on FSF servers.
1284
1285 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
1286
1287 Radar 4281748
1288 * c-common.h (objc_check_global_decl): New declaration.
1289 * stub-objc.c (objc_check_global_decl): New stub.
1290
f0036cca
JM
12912010-09-29 Joseph Myers <joseph@codesourcery.com>
1292
1293 * c.opt: Don't use VarExists.
1294
e3339d0f
JM
12952010-09-29 Joseph Myers <joseph@codesourcery.com>
1296
1297 * c-common.c (c_cpp_error): Update names of diagnostic_context
1298 members.
1299 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
1300 cl_optimization members.
1301 * c-opts.c (warning_as_error_callback, c_common_handle_option,
1302 sanitize_cpp_opts, finish_options): Update names of cpp_options
1303 members.
1304
1973201f
NP
13052010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1306
1307 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
1308 (objc_is_reserved_word): Removed.
1309 * c-common.c: Updated comments.
1310 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
1311 objc_is_reserved_word.
1312 * stub-objc.c (objc_is_reserved_word): Removed.
1313
f7e71da5
IS
13142010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1315
1316 * c-common.h (objc_add_method_declaration): Adjust prototype to
1317 include attributes.
1318 (objc_start_method_definition): Likewise.
1319 (objc_build_keyword_decl): Likewise.
1320 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
1321 (objc_start_method_definition): Likewise.
1322 (objc_build_keyword_decl): Likewise.
1323
c165dca7
IS
13242010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1325
1326 * c-common.h (objc_start_class_interface): Adjust prototype.
1327 (objc_start_category_interface): Likewise.
1328 (objc_start_protocol): Likewise.
1329 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
1330 (objc_start_class_interface): Likewise.
1331 (objc_start_category_interface): Likewise.
1332
7458026b
ILT
13332010-09-27 Ian Lance Taylor <iant@google.com>
1334
1335 * c-common.c (c_common_attribute_table): Add no_split_stack.
1336 (handle_no_split_stack_attribute): New static function.
1337
b581b85b
NP
13382010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
1339
1340 Merge from 'apple/trunk' branch on FSF servers.
1341
1342 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
1343
1344 Radar 4229905
1345 * c-common.h (objc_have_common_type): New declaration.
1346 * stub-objc.c (objc_have_common_type): New stub.
1347
1348 2005-06-22 Ziemowit Laski <zlaski@apple.com>
1349
1350 Radar 4154928
1351 * c-common.h (objc_common_type): New prototype.
1352 * stub-objc.c (objc_common_type): New stub.
1353
46a4da10
JH
13542010-09-24 Jan Hubicka <jh@suse.cz>
1355
1356 * c-common.c (handle_leaf_attribute): New function.
1357 (struct attribute_spec c_common_att): Add leaf.
1358
e200444e
JM
13592010-09-22 Joseph Myers <joseph@codesourcery.com>
1360
1361 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
1362 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
1363 -dump, -dump=, -imacros, -imacros=, -include, -include=,
1364 -include-barrier, -include-directory, -include-directory=,
1365 -include-directory-after, -include-directory-after=,
1366 -include-prefix, -include-prefix=, -include-with-prefix,
1367 -include-with-prefix=, -include-with-prefix-after,
1368 -include-with-prefix-after=, -include-with-prefix-before,
1369 -include-with-prefix-before=, -no-integrated-cpp,
1370 -no-line-commands, -no-standard-includes, -no-warnings, -output,
1371 -output=, -pedantic, -pedantic-errors, -preprocess,
1372 -print-missing-file-dependencies, -trace-includes, -traditional,
1373 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
1374 -user-dependencies, -verbose, -write-dependencies,
1375 -write-user-dependencies, no-integrated-cpp, traditional): New.
1376
29a80ea6
NP
13772010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1378
1379 PR objc/23710
ac1fc2fc
NP
1380 * c-common.h (objc_start_method_definition): Return bool instead
1381 of void.
1382 * stub-objc.c (objc_start_method_definition): Return bool instead
1383 of void.
1384
13852010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1386
1387 PR objc/25965
1388 * c-common.h (objc_get_interface_ivars): New declaration.
1389 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 1390
de621752
ILT
13912010-09-15 Ian Lance Taylor <iant@google.com>
1392
1393 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 1394 messages. Remove period at end of warning message.
de621752 1395
ba885ec5
NS
13962010-09-09 Nathan Sidwell <nathan@codesourcery.com>
1397
1398 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
1399 (handle_alias_attribute): ... here.
1400 (handle_ifunc_attribute): New.
1401
c5ee1358
MM
14022010-09-06 Mark Mitchell <mark@codesourcery.com>
1403
1404 * c-common.h (do_warn_double_promotion): Declare.
1405 * c-common.c (do_warn_double_promotion): Define.
1406
0a0b3574
MM
14072010-09-05 Mark Mitchell <mark@codesourcery.com>
1408
1409 * c.opt (Wdouble-promotion): New.
1410
d1779886
JM
14112010-09-02 Joseph Myers <joseph@codesourcery.com>
1412
1413 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
1414 fvtable-thunks, fxref): Mark no longer supported in help text.
1415
2d2bd949
JM
14162010-09-02 Joseph Myers <joseph@codesourcery.com>
1417
1418 * c.opt (Wimport, fall-virtual, falt-external-templates,
1419 fdefault-inline, fenum-int-equiv, fexternal-templates,
1420 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
1421 fname-mangling-version-, fnew-abi, fnonnull-objects,
1422 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
1423 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
1424 applicable.
1425 (fhandle-exceptions): Mark with Alias and Warn.
1426 * c-opts.c (c_common_handle_option): Don't handle options marked
1427 as ignored.
1428
5de8299c
JM
14292010-09-02 Joseph Myers <joseph@codesourcery.com>
1430
1431 * c.opt (Wcomments, Werror-implicit-function-declaration,
1432 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
1433 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
1434 aliases.
1435 * c-common.c (option_codes): Use OPT_Wcomment instead of
1436 OPT_Wcomments.
1437 * c-opts.c (warning_as_error_callback, c_common_handle_option):
1438 Don't handle options marked as aliases.
1439
0ceb0201
RG
14402010-08-25 Richard Guenther <rguenther@suse.de>
1441
1442 * c-common.c (c_common_get_alias_set): Remove special
1443 handling for pointers.
1444
ac47786e
NF
14452010-08-20 Nathan Froyd <froydnj@codesourcery.com>
1446
1447 * c-common.c: Use FOR_EACH_VEC_ELT.
1448 * c-gimplify.c: Likewise.
1449 * c-pragma.c: Likewise.
1450
c878765b
JM
14512010-08-16 Joseph Myers <joseph@codesourcery.com>
1452
1453 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
1454 RejectDriver.
1455 (MMDX): Change back to MMD. Mark NoDriverArg instead of
1456 RejectDriver.
1457 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
1458 instead of OPT_MDX and OPT_MMDX.
1459
603349bf
JM
14602010-08-16 Joseph Myers <joseph@codesourcery.com>
1461
1462 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
1463
644fa7ac
JM
14642010-08-12 Joseph Myers <joseph@codesourcery.com>
1465
1466 * c.opt (MD, MMD): Change to MDX and MMDX.
1467 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
1468
481e1176
JM
14692010-08-11 Joseph Myers <joseph@codesourcery.com>
1470
1471 * c-opts.c (c_common_handle_option): Call handle_generated_option
1472 instead of handle_option.
1473
ac8dc9f7
NF
14742010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1475
1476 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
1477 (maybe_apply_renaming_pragma): Delete unneeded declarations.
1478
4f8c876d
NF
14792010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1480
1481 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
1482 (pending_redefine_extname): Change type to a VEC.
1483 (add_to_renaming_pragma_list): Update for new type of
1484 pending_redefine_extname.
ac8dc9f7 1485 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 1486
3b0c690e
AC
14872010-08-04 Arnaud Charlet <charlet@adacore.com>
1488
1489 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
1490 visited.
1491 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
1492 decide whether a type has already been declared/seen.
1493 Do not go to the original type.
1494 (dump_nested_types): New parameter forward.
1495 Generate forward declaration if needed and mark type as visited.
1496 (print_ada_declaration): Call dump_nested_types if not already done.
1497 Mark types as visited.
1498
1890bccc
JM
14992010-08-03 Joseph Myers <joseph@codesourcery.com>
1500
1501 * c.opt (-print-pch-checksum): Remove option.
1502 * c-opts.c (c_common_handle_option): Don't handle
1503 OPT_print_pch_checksum.
1504
5f20c657
JM
15052010-07-27 Joseph Myers <joseph@codesourcery.com>
1506
1507 * c-common.h (c_common_handle_option): Update prototype and return
1508 value type.
1509 * c-opts.c (c_common_handle_option): Update prototype and return
1510 value type. Update calls to handle_option and
1511 enable_warning_as_error.
1512
f551f80c
JJ
15132010-07-27 Jakub Jelinek <jakub@redhat.com>
1514
1515 PR c/45079
1516 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
1517
61ff2bdc
JM
15182010-07-27 Joseph Myers <joseph@codesourcery.com>
1519
1520 * c-common.h (c_common_missing_argument): Remove.
1521 * c-opts.c (c_common_missing_argument): Remove.
1522 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
1523 idirafter, imacros, include, isysroot, isystem, iquote): Add
1524 MissingArgError.
1525 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
1526
7a9bf9a4
JM
15272010-07-27 Joseph Myers <joseph@codesourcery.com>
1528
1529 * c-common.h (c_common_option_lang_mask,
1530 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
1531 New.
1532 (c_common_init_options): Update prototype.
1533 * c-opts.c (c_common_option_lang_mask): New.
1534 (c_common_initialize_diagnostics): Split out of
1535 c_common_init_options.
1536 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
1537 New.
1538 (c_common_init_options): Update prototype. Use decoded options in
1539 search for -lang-asm.
1540
910ad8de
NF
15412010-07-15 Nathan Froyd <froydnj@codesourcery.com>
1542
1543 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
1544 * c-format.c: Likewise.
1545
718f9c0f
MLI
15462010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
1547
1548 * c-common.h: Include diagnostic-core.h. Error if already
1549 included.
1550 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
1551
4d451982
MLI
15522010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1553
1554 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
1555 Do not include expr.h
1556 (vector_mode_valid_p): Move here.
1557
119fe915
SB
15582010-06-21 DJ Delorie <dj@redhat.com>
1559
1560 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
1561 allow these pragmas anywhere.
1562
15632010-06-14 Jakub Jelinek <jakub@redhat.com>
1564
1565 PR bootstrap/44509
1566 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
1567 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
1568 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
1569 ggc_strdup instead of xstrdup.
1570
15712010-06-10 Jakub Jelinek <jakub@redhat.com>
1572
1573 * c-cppbuiltin.c: Include cpp-id-data.h.
1574 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
1575 (lazy_hex_fp_value): New function.
1576 (builtin_define_with_hex_fp_value): Provide definitions lazily.
1577
6662d794
MLI
15782010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1579
1580 * c-gimplify.c: Do not include tree-flow.h
1581
38f8b050
JR
15822010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
1583
1584 PR other/44034
1585 * c-common.c: Rename targetm member:
1586 targetm.enum_va_list -> targetm.enum_va_list_p
1587
9589f23e
AS
15882010-06-28 Anatoly Sokolov <aesok@post.ru>
1589
1590 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
1591
3b06d379
SB
15922010-06-28 Steven Bosscher <steven@gcc.gnu.org>
1593
1594 * c-cppbuiltin.c: Do not include except.h.
1595
d166d4c3
AK
15962010-06-24 Andi Kleen <ak@linux.intel.com>
1597
1598 * c-common.c (warn_for_omitted_condop): New.
1599 * c-common.h (warn_for_omitted_condop): Add prototype.
1600
70cb8be6
JM
16012010-06-21 Joseph Myers <joseph@codesourcery.com>
1602
1603 * c.opt (lang-objc): Remove.
1604 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
1605
a4c97feb
JR
16062010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
1607
1608 * c-opts.c: Include "tm_p.h".
1609
6e2f1956
JM
16102010-06-20 Joseph Myers <joseph@codesourcery.com>
1611
1612 * c-common.c (parse_optimize_options): Update call to
1613 decode_options.
1614
bc87224e
NF
16152010-06-18 Nathan Froyd <froydnj@codesourcery.com>
1616
1617 * c-common.c (record_types_used_by_current_var_decl): Adjust for
1618 new type of types_used_by_cur_var_decl.
1619
b49cf425
JR
16202010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
1621
1622 PR bootstrap/44512
1623 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
1624 for C++ standard compliance.
1625
59f9c2ed
JM
16262010-06-16 Jason Merrill <jason@redhat.com>
1627
1628 * c.opt: Add -Wnoexcept.
1629
33766b66
RG
16302010-06-16 Richard Guenther <rguenther@suse.de>
1631
1632 PR c/44555
1633 * c-common.c (c_common_truthvalue_conversion): Remove
1634 premature and wrong optimization concering ADDR_EXPRs.
1635
eff7e30c
AC
16362010-06-15 Arnaud Charlet <charlet@adacore.com>
1637
1638 * c-ada-spec.c (dump_sloc): Remove column info.
1639 (is_simple_enum): New function.
1640 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
1641 enum types when relevant.
1642
6312e84d
MLI
16432010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1644
1645 * c-common.c (conversion_warning): Warn at expression
1646 location.
1647
1cb42611
JM
16482010-06-10 Joseph Myers <joseph@codesourcery.com>
1649
1650 * c-opts.c (c_common_handle_option): Don't handle
1651 OPT_fshow_column.
1652
a9429e29
LB
16532010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1654
1655 * c-pragma.c (push_alignment): Use typed GC allocation.
1656 (handle_pragma_push_options): Likewise.
1657
1658 * c-common.c (parse_optimize_options): Likewise.
1659
1660 * c-common.h (struct sorted_fields_type): Add variable_size GTY
1661 option.
1662
5498f011
JM
16632010-06-07 Joseph Myers <joseph@codesourcery.com>
1664
1665 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
1666 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1667 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1668 flag_signed_bitfields, warn_strict_null_sentinel,
1669 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
1670 flag_gen_declaration, flag_no_gnu_keywords,
1671 flag_implement_inlines, flag_implicit_templates,
1672 flag_implicit_inline_templates, flag_optional_diags,
1673 flag_elide_constructors, flag_default_inline, flag_rtti,
1674 flag_conserve_space, flag_access_control, flag_check_new,
1675 flag_new_for_scope, flag_weak, flag_working_directory,
1676 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
1677 flag_enforce_eh_specs, flag_threadsafe_statics,
1678 flag_pretty_templates): Remove.
1679 * c-common.h (flag_preprocess_only, flag_nil_receivers,
1680 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
1681 flag_replace_objc_classes, flag_undef, flag_no_builtin,
1682 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1683 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1684 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
1685 flag_no_gnu_keywords, flag_implement_inlines,
1686 flag_implicit_templates, flag_implicit_inline_templates,
1687 flag_optional_diags, flag_elide_constructors, flag_default_inline,
1688 flag_rtti, flag_conserve_space, flag_access_control,
1689 flag_check_new, flag_new_for_scope, flag_weak,
1690 flag_working_directory, flag_use_cxa_atexit,
1691 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
1692 flag_threadsafe_statics, flag_pretty_templates,
1693 warn_strict_null_sentinel): Remove.
1694 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
1695 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
1696 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
1697 fimplicit-inline-templates, fimplicit-templates,
1698 flax-vector-conversions, fms-extensions, fnil-receivers,
1699 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
1700 frtti, fshort-double, fshort-enums, fshort-wchar,
1701 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
1702 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
1703 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
1704 gen-decls, undef): Use Var.
1705 (fdefault-inline, foptional-diags): Document as doing nothing.
1706 * c-opts.c (c_common_handle_option): Remove cases for options now
1707 using Var. Mark ignored options as such.
1708
39dabefd
SB
17092010-06-05 Steven Bosscher <steven@gcc.gnu.org>
1710
1711 * c-common.c: Moved to here from parent directory.
1712 * c-common.def: Likewise.
1713 * c-common.h: Likewise.
1714 * c-cppbuiltin.c: Likewise.
1715 * c-dump.c: Likewise.
1716 * c-format.c: Likewise.
1717 * c-format.h : Likewise.
1718 * c-gimplify.c: Likewise.
1719 * c-lex.c: Likewise.
1720 * c-omp.c: Likewise.
1721 * c.opt: Likewise.
1722 * c-opts.c: Likewise.
1723 * c-pch.c: Likewise.
1724 * c-ppoutput.c: Likewise.
1725 * c-pragma.c: Likewise.
1726 * c-pragma.h: Likewise.
1727 * c-pretty-print.c: Likewise.
1728 * c-pretty-print.h: Likewise.
1729 * c-semantics.c: Likewise.
1730 * stub-objc.c: Likewise.
1731
1732 * c-common.c: Include gt-c-family-c-common.h.
1733 * c-pragma.c: Include gt-c-family-c-pragma.h.
1734\f
04695783 1735Copyright (C) 2010, 2011 Free Software Foundation, Inc.
39dabefd
SB
1736
1737Copying and distribution of this file, with or without modification,
1738are permitted in any medium without royalty provided the copyright
1739notice and this notice are preserved.