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