]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
re PR libstdc++/51540 (doxygen documentation for partial_sum misleading)
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
fea3ca91
IS
12011-11-30 Iain Sandoe <iains@gcc.gnu.org>
2
3 * c.opt (fgnu-runtime): Provide full description.
4 (fnext-runtime): Likewise.
5 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
6
62bad7cd
AM
72011-11-28 Andrew MacLeod <amacleod@redhat.com>
8
9 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
10 predefines in one place. Add LOCK_FREE predefines.
11 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
12 new func.
13
c466c4ff
AM
142011-11-24 Andrew MacLeod <amacleod@redhat.com>
15
16 PR c/51256
17 * c-common.c (get_atomic_generic_size): Check for various error
18 conditions
19 (resolve_overloaded_atomic_exchange,
20 resolve_overloaded_atomic_compare_exchange,
21 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
22 error_mark_node for error conditions.
23
a5952633
RG
242011-11-08 Richard Guenther <rguenther@suse.de>
25
26 PR middle-end/51010
27 c-family/
28
0a35513e
AH
292011-11-07 Richard Henderson <rth@redhat.com>
30 Aldy Hernandez <aldyh@redhat.com>
31 Torvald Riegel <triegel@redhat.com>
32
33 Merged from transactional-memory.
34
35 * c-common.c (handle_tm_wrap_attribute,
36 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
37 (struct c_common_reswords): Added __transaction* keywords.
38 (struct c_common_attribute_table): Added transaction* and tm_regparm
39 attributes.
40 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
41 masks.
42 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
43 find_tm_attribute): Declare.
44
6d87092d
JM
452011-11-07 Jason Merrill <jason@redhat.com>
46
47 PR c++/35688
48 * c-common.c, c-common.h: Revert yesterday's changes.
49
8e7860a1
JM
502011-11-06 Jason Merrill <jason@redhat.com>
51
52 PR c++/35688
53 * c-common.c (decl_has_visibility_attr): Split out from...
54 (c_determine_visibility): ...here.
55 * c-common.h: Declare it.
56
d19fa6b5
JM
572011-11-06 Joseph Myers <joseph@codesourcery.com>
58
59 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
60 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
61 type.
62 (check_user_alignment): New. Split out of
63 handle_aligned_attribute. Disallow integer constants with
64 noninteger types. Conditionally allow zero.
65 (handle_aligned_attribute): Use check_user_alignment.
66 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
67
86951993
AM
682011-11-06 Andrew MacLeod <amacleod@redhat.com>
69 Richard Henderson <rth@redhat.com>
70
71 Merged from cxx-mem-model.
72
73 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
74 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
75 parameters that are the same type size.
76 (get_atomic_generic_size): New. Find size of generic
77 atomic function parameters and do typechecking.
78 (add_atomic_size_parameter): New. Insert size into parameter list.
79 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
80 either __atomic_exchange_n or external library call.
81 (resolve_overloaded_atomic_compare_exchange): Restructure
82 __atomic_compare_exchange to either _n variant or external library call.
83 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
84 __atomic_load_n or an external library call.
85 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
86 __atomic_store_n or an external library call.
87 (resolve_overloaded_builtin): Handle new __atomic builtins.
88
cf9e9959
EB
892011-11-04 Eric Botcazou <ebotcazou@adacore.com>
90
91 PR c++/50608
92 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
93 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
94 <INDIRECT_REF>: Return the argument.
95 <ARRAY_REF>: Remove special code for negative offset.
96 Call fold_build_pointer_plus instead of size_binop.
97 (fold_offsetof): Remove STOP_REF argument and adjust.
98 * c-common.h (fold_offsetof_1): Declare.
99 (fold_offsetof): Remove STOP_REF argument.
100
25339f10
JM
1012011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
102
103 PR c++/50810
104 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
105 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
106 Wnarrowing for C++0x and C++98.
107 * c.opt ([Wnarrowing]): Update.
108
89401152
PC
1092011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
110
111 PR c++/44277
112 * c.opt: Add Wzero-as-null-pointer-constant.
113
97e3ad20
JM
1142011-10-31 Jason Merrill <jason@redhat.com>
115
15694fdd
JM
116 * c.opt (-fdeduce-init-list): Off by default.
117
97e3ad20
JM
118 PR c++/50920
119 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
120 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
121 and -Wc++11-compat.
122 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
123
fb9120e3
RAV
1242011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
125
126 PR c++/30066
127 * c.opt (fvisibility-inlines-hidden): Description change.
128
3ce4f9e4
ESR
1292011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
130
131 Implement C++11 user-defined literals.
132 * c-common.c (build_userdef_literal): New.
133 * c-common.def: New tree code.
134 * c-common.h (tree_userdef_literal): New tree struct and accessors.
135 * c-lex.c (interpret_float): Add suffix parm.
136 (c_lex_with_flags): Build literal tokens.
137
5f53c243
PC
1382011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
139
140 PR c++/50841
141 Revert:
142 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
143
144 PR c++/50810
145 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
146 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
147 Wnarrowing for C++0x and C++98.
148 * c.opt ([Wnarrowing]): Update.
149
263734e1
PC
1502011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
151
152 PR c++/50810
153 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
154 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
155 Wnarrowing for C++0x and C++98.
156 * c.opt ([Wnarrowing]): Update.
157
d2e312d7
PC
1582011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
159
160 PR c++/45385
161 * c-common.c (conversion_warning): Remove code looking for
162 artificial operands.
163
d17687f6
DS
1642011-10-18 Dodji Seketeli <dodji@redhat.com>
165
166 PR bootstrap/50760
167 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
168 !NO_IMPLICIT_EXTERN_C.
169
fc8396e9
PC
1702011-10-17 Michael Spertus <mike_spertus@symantec.com>
171
172 * c-common.c (c_common_reswords): Add __bases,
173 __direct_bases.
174 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
175
1762011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
177
178 PR c++/50757
179 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
180
847e697a
TT
1812011-10-15 Tom Tromey <tromey@redhat.com>
182 Dodji Seketeli <dodji@redhat.com>
183
184 * c.opt (fdebug-cpp): New option.
185 * c-opts.c (c_common_handle_option): Handle the option.
186 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
187 output stream in parameter. Factorized from ...
188 (maybe_print_line): ... this. Dump location debug information when
189 -fdebug-cpp is in effect.
190 (print_line_1): New static function. Takes an output stream in
191 parameter. Factorized from ...
192 (print_line): ... here. Dump location information when -fdebug-cpp
193 is in effect.
194 (scan_translation_unit): Dump location information when
195 -fdebug-cpp is in effect.
196
92582b75
TT
1972011-10-15 Tom Tromey <tromey@redhat.com>
198 Dodji Seketeli <dodji@redhat.com>
199
200 * c.opt (ftrack-macro-expansion): New option. Handle it with and
201 without argument.
202 * c-opts.c (c_common_handle_option)<case
203 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
204 cases. Handle -ftrack-macro-expansion with and without argument.
205
46427374
TT
2062011-10-15 Tom Tromey <tromey@redhat.com>
207 Dodji Seketeli <dodji@redhat.com>
208
209 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
210 (print_line, cb_define, do_line_change): Adjust to avoid touching
211 the internals of struct line_map. Use the public API instead.
212 * c-pch.c (c_common_read_pch): Likewise.
213 * c-lex.c (fe_file_change): Likewise.
214
fc8396e9
PC
2152011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
216
217 PR c++/17212
218 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
219
2202011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
221
222 PR c++/33067
223 * c-pretty-print.c (pp_c_floating_constant): Output
224 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
225
e79983f4
MM
2262011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
227
228 * c-common.c (def_builtin_1): Delete old interface with two
229 parallel arrays to hold standard builtin declarations, and replace
230 it with a function based interface that can support creating
231 builtins on the fly in the future. Change all uses, and poison
232 the old names. Make sure 0 is not a legitimate builtin index.
233 * c-omp.c (c_finish_omp_barrier): Ditto.
234 (c_finish_omp_taskwait): Ditto.
235 (c_finish_omp_flush): Ditto.
236
6637388f
TG
2372011-10-11 Tristan Gingold <gingold@adacore.com>
238
239 * c.opt: (fallow-parameterless-variadic-functions): New.
240
3797cb21
DS
2412011-09-08 Dodji Seketeli <dodji@redhat.com>
242
243 PR c++/33255 - Support -Wunused-local-typedefs warning
244 * c-common.h (struct c_language_function::local_typedefs): New
245 field.
246 (record_locally_defined_typedef, maybe_record_typedef_use)
247 (maybe_warn_unused_local_typedefs): Declare new functions.
248 * c-common.c (record_locally_defined_typedef)
249 (maybe_record_typedef_use)
250 (maybe_warn_unused_local_typedefs): Define new functions.
251 * c.opt: Declare new -Wunused-local-typedefs flag.
252
693ddb1b
EB
2532011-09-06 Eric Botcazou <ebotcazou@adacore.com>
254
255 PR middle-end/50266
256 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
257 computations.
258
830c740f
RG
2592011-09-05 Richard Guenther <rguenther@suse.de>
260
261 * c-common.c (complete_array_type): Use ssize_int (-1) instead
262 of integer_minus_one_node for empty array upper bounds.
263
892a371f
DS
2642011-08-28 Dodji Seketeli <dodji@redhat.com>
265
266 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
267 it's the first time it's being called on this main TU.
268
0e3fdb48
RB
2692011-08-24 Richard Guenther <rguenther@suse.de>
270
271 PR c/49396
272 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
273
2742011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
275
276 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
277 defined in cpp_init_builtins and c_cpp_builtins.
278
d4a83c10
JM
2792011-08-19 Joseph Myers <joseph@codesourcery.com>
280
281 * c-common.c (c_common_reswords): Add __builtin_complex.
282 * c-common.h (RID_BUILTIN_COMPLEX): New.
283
bbceee64
JM
2842011-08-18 Joseph Myers <joseph@codesourcery.com>
285
286 * c-common.c (c_common_reswords): Add _Noreturn.
287 (keyword_is_function_specifier): Handle RID_NORETURN.
288 * c-common.h (RID_NORETURN): New.
289
0e3a99ae
AS
2902011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
291
292 * c-common.c (unsafe_conversion_p): New function. Check if it is
293 unsafe to convert an expression to the type.
294 (conversion_warning): Adjust, use unsafe_conversion_p.
295 * c-common.h (unsafe_conversion_p): New function declaration.
296
20906c66
JJ
2972011-08-02 Jakub Jelinek <jakub@redhat.com>
298
299 * c-common.h (c_finish_omp_atomic): Adjust prototype.
300 (c_finish_omp_taskyield): New prototype.
301 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
302 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
303 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
304 or RHS1 have side-effects, evaluate those too in the right spot,
305 if it is a decl and LHS is also a decl, error out if they
306 aren't the same.
307 (c_finish_omp_taskyield): New function.
308 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
309 * c-pragma.c (omp_pragmas): Add taskyield.
310 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
311 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
312 PRAGMA_OMP_CLAUSE_MERGEABLE.
313
770e5a2e
DS
3142011-07-25 Dodji Seketeli <dodji@redhat.com>
315
316 * c-common.h (set_underlying_type): Remove parm name from
317 declaration.
318
1baae426
RG
3192011-07-25 Romain Geissler <romain.geissler@gmail.com>
320
321 * c-pretty-print.h: Search c-common.h in c-family.
322
fcb21722
JM
3232011-07-22 Jason Merrill <jason@redhat.com>
324
76f86d00
JM
325 PR c++/49793
326 * c.opt (Wnarrowing): New.
327
3a636414
JM
328 PR c++/30112
329 * c-common.h: Declare c_linkage_bindings.
330 * c-pragma.c (handle_pragma_redefine_extname): Use it.
331
fcb21722
JM
332 PR c++/49813
333 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
334 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
335 as flag_isoc99 for 'restrict'.
336 (pp_c_specifier_qualifier_list): Likewise for _Complex.
337
02614448
ILT
3382011-07-21 Ian Lance Taylor <iant@google.com>
339
340 PR middle-end/49705
341 * c-common.c (c_disable_warnings): New static function.
342 (c_enable_warnings): New static function.
343 (c_fully_fold_internal): Change local unused_p to bool. Call
344 c_disable_warnings and c_enable_warnings rather than change
345 c_inhibit_evaluation_warnings.
346
34429675
JM
3472011-07-20 Jason Merrill <jason@redhat.com>
348
349 PR c++/6709 (DR 743)
350 PR c++/42603 (DR 950)
351 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
352 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
353 (CPP_DECLTYPE): New.
354 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
355
5d49b6a7
RG
3562011-07-19 Richard Guenther <rguenther@suse.de>
357
358 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
359 * c-omp.c (c_finish_omp_for): Likewise.
360
e84a58ff
EB
3612011-07-12 Eric Botcazou <ebotcazou@adacore.com>
362
363 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
364 body on the next line.
365
329af3c7
JM
3662011-07-08 Jason Merrill <jason@redhat.com>
367
4063e61b
JM
368 PR c++/45437
369 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
370
329af3c7
JM
371 PR c++/49673
372 * c-common.c (c_apply_type_quals_to_decl): Don't check
373 TYPE_NEEDS_CONSTRUCTING.
374
1a072294
RG
3752011-07-06 Richard Guenther <rguenther@suse.de>
376
377 * c-common.c (c_common_nodes_and_builtins):
378 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
379
fce5dddd
RG
3802011-07-05 Richard Guenther <rguenther@suse.de>
381
382 * c-common.c (c_common_nodes_and_builtins): Build all common
383 tree nodes first.
384
45d439ac
JJ
3852011-06-27 Jakub Jelinek <jakub@redhat.com>
386
56300785
JJ
387 * c-common.h (c_tree_chain_next): New static inline function.
388
45d439ac
JJ
389 * c-common.c (check_builtin_function_arguments): Handle
390 BUILT_IN_ASSUME_ALIGNED.
391
e0a8ecf2
AM
3922011-06-21 Andrew MacLeod <amacleod@redhat.com>
393
394 * c-common.c: Add sync_ or SYNC__ to builtin names.
395 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
396
3972011-06-20 Pierre Vittet <piervit@pvittet.com>
398
399 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
400 handler.
401 (gen_pragma_handler): New union.
402 (internal_pragma_handler): New type.
403 (c_register_pragma_with_data)
404 (c_register_pragma_with_expansion_and_data): New functions.
405
406 * c-pragma.c (registered_pragmas, c_register_pragma_1)
407 (c_register_pragma, c_register_pragma_with_expansion)
408 (c_invoke_pragma_handler): Changed to work with
409 internal_pragma_handler.
410 (c_register_pragma_with_data)
411 (c_register_pragma_with_expansion_and_data): New functions.
412
677f3fa8
JM
4132011-06-14 Joseph Myers <joseph@codesourcery.com>
414
415 * c-common.c: Include common/common-target.h.
416 (handle_section_attribute): Use
417 targetm_common.have_named_sections.
418 * c-cppbuiltin.c: Include common/common-target.h.
419 (c_cpp_builtins): Use targetm_common.except_unwind_info.
420
d7fc8c14
RG
4212011-06-10 Richard Guenther <rguenther@suse.de>
422
423 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
424 to print a IDENTIFIER_NODE.
425
10e48e39
RO
4262011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
427 Joseph Myers <joseph@codesourcery.com>
428
429 * c.opt (fbuilding-libgcc): New option.
430 * c-cppbuiltin.c (c_cpp_builtins): Define
431 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
432
6976ae51
JM
4332011-06-07 Jason Merrill <jason@redhat.com>
434
3ff60975
JM
435 * c-common.c (max_tinst_depth): Lower default to 900.
436
6976ae51
JM
437 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
438
009db074
RG
4392011-06-07 Richard Guenther <rguenther@suse.de>
440
441 * c-common.c (c_common_nodes_and_builtins): Do not set
442 size_type_node or call set_sizetype.
443
b4592b92
DS
4442011-06-07 Dodji Seketeli <dodji@redhat.com>
445
446 PR debug/49130
447 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
448 type when using pointer comparison to compare types.
449
014ab419
JW
4502011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
451
452 * c.opt: Add -Wdelete-non-virtual-dtor.
453 * c-opts.c (c_common_handle_option): Include it in -Wall.
454
4f60111f
NF
4552011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
456
457 PR bootstrap/49190
458
459 Revert:
460 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
461
462 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
463 not tree_common.
464
4cc4f2f4
JJ
4652011-05-27 Jakub Jelinek <jakub@redhat.com>
466
467 PR c++/49165
468 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
469 C++ don't call c_common_truthvalue_conversion on void type arms.
470
38e01f9e
NF
4712011-05-27 Nathan Froyd <froydnj@codesourcery.com>
472
473 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
474 (stmt_list_stack): Define.
475 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
476 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
477
92e948a8
NF
4782011-05-26 Nathan Froyd <froydnj@codesourcery.com>
479
480 * c-common.c (warning_candidate_p): Check for BLOCKs.
481
a2fc3e63
NF
4822011-05-26 Nathan Froyd <froydnj@codesourcery.com>
483
484 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
485 not tree_common.
486
0957c029
JJ
4872011-05-25 Jakub Jelinek <jakub@redhat.com>
488
489 * c-common.c (def_fn_type): Remove extra va_end.
490
828fb3ba
JM
4912011-05-23 Jason Merrill <jason@redhat.com>
492
493 PR c++/48106
494 * c-common.c (c_common_get_narrower): New.
495 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
496
dde05067
NF
4972011-05-23 Nathan Froyd <froydnj@codesourcery.com>
498
499 * c-common.h (check_function_arguments): Tweak prototype of
500 check_function_arguments.
501 * c-common.c (check_function_arguments): Likewise. Adjust
502 calls to check_function_nonnull, check_function_format, and
503 check_function_sentinel.
504 (check_function_sentinel): Take a FUNCTION_TYPE rather than
505 separate attributes and typelist arguments. Use
506 FOREACH_FUNCTION_ARGS to iterate over argument types.
507
3c0d13bf
PC
5082011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
509
510 * c-common.c (c_common_reswords): Reorder.
511 * c-common.h (rid): Likewise.
512
8242dd04
NF
5132011-05-10 Nathan Froyd <froydnj@codesourcery.com>
514
515 * c-common.c (def_fn_type): Don't call build_function_type, call
516 build_function_type_array or build_varargs_function_type_array
517 instead.
518 (c_common_nodes_and_builtins): Likewise.
519
3d528853
NF
5202011-05-05 Nathan Froyd <froydnj@codesourcery.com>
521
522 * c-common.c (c_add_case_label): Omit the loc argument to
523 build_case_label.
524 * c-common.h (build_case_label): Remove.
525 * c-semantics.c (build_case_label): Remove.
526
a04a722b
JM
5272011-05-05 Joseph Myers <joseph@codesourcery.com>
528
529 * c-objc.h (objc_start_method_definition): Update prototype.
530 * stub-objc.c (objc_start_method_definition): Add extra parameter.
531
e19a18d4
NF
5322011-05-04 Nathan Froyd <froydnj@codesourcery.com>
533
534 * c-common.c (check_main_parameter_types): Reindent. Don't use
535 TYPE_ARG_TYPES directly.
536 (handle_nonnull_attribute): Likewise.
537 (sync_resolve_params): Likewise.
538 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
539 to check_format_string.
540 (handle_format_attribute): Likewise.
541 (check_format_string): Take a function type to examine instead of
542 a type list. Use a function_arg_iterator to step through argument
543 types.
544
c62c040f
RG
5452011-05-04 Richard Guenther <rguenther@suse.de>
546
547 * c-common.c (fix_string_type): Use size_int for index type bounds.
548 (start_fname_decls): Do not pass NULL to build_int_cst.
549 (c_init_attributes): Likewise.
550 * c-lex.c (c_lex_with_flags): Likewise.
551
c12ff9d8
JM
5522011-04-27 Jason Merrill <jason@redhat.com>
553
554 * c-common.c (make_tree_vector_from_list): New.
555 * c-common.h: Declare it.
556
304dfbe3
RG
5572011-04-26 Richard Guenther <rguenther@suse.de>
558
559 PR preprocessor/48248
560 * c-ppoutput.c (maybe_print_line): Always optimize newlines
561 for output size with -P.
562
3c0d13bf
PC
5632011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
564
565 * c-common.c (struct c_common_resword): Add __underlying_type.
566 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
567
04695783
JM
5682011-04-20 Jim Meyering <meyering@redhat.com>
569
570 * c-format.c (init_dollar_format_checking): Remove useless
571 if-before-free.
572
0dc33c3c
NP
5732011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
574
575 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 576 (objc_detect_field_duplicates): New.
0dc33c3c 577 * stub-objc.c: Likewise.
3c0d13bf 578
c59633d9
NP
5792011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
580
581 * stub-objc.c (objc_declare_protocols): Renamed to
582 objc_declare_protocol.
583 * c-objc.h: Likewise.
3c0d13bf 584
32dabdaf
NP
5852011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
586
587 * stub-objc.c (objc_declare_class): Updated argument name.
588
81f653d6
NF
5892011-04-12 Nathan Froyd <froydnj@codesourcery.com>
590
591 * c-common.h (c_common_init_ts): Declare.
592 * c-common.c (c_common_init_ts): Define.
593
eb345401
NP
5942011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
595
596 * c-objc.h (objc_build_message_expr): Updated prototype.
597 * stub-objc.c (objc_build_message_expr): Likewise.
598
a358e188
MJ
5992011-04-12 Martin Jambor <mjambor@suse.cz>
600
601 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
602 of cgraph_node.
603
e6313a78
RG
6042011-04-11 Richard Guenther <rguenther@suse.de>
605
606 * c-common.c (complete_array_type): Build a range type of
607 proper type.
608
dcf0c47e
NF
6092011-04-08 Nathan Froyd <froydnj@codesourcery.com>
610
611 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
612 (handle_type_generic_attribute): Likewise.
613
1ee44b26
JM
6142011-04-07 Jason Merrill <jason@redhat.com>
615
616 PR c++/48450
617 * c-common.c (c_common_truthvalue_conversion): Don't ignore
618 conversion from C++0x scoped enum.
619
acce4e77
JM
6202011-04-06 Joseph Myers <joseph@codesourcery.com>
621
622 * c-target-def.h: New file.
623 * c-target.def: New file.
624 * c-target.h: New file.
625 * c-common.c (targetcm): Don't define here.
626 * c-common.h (default_handle_c_option): Declare.
627 * c-format.c: Include c-target.h instead of target.h.
628 * c-opts.c: Include c-target.h instead of target.h. Explicitly
629 include tm.h.
630 (default_handle_c_option): Move from targhooks.c.
631
e2eefb55
JJ
6322011-03-29 Jakub Jelinek <jakub@redhat.com>
633
634 PR preprocessor/48248
635 * c-ppoutput.c (print): Add src_file field.
636 (init_pp_output): Initialize it.
637 (maybe_print_line): Don't optimize by adding up to 8 newlines
638 if map->to_file and print.src_file are different file.
639 (print_line): Update print.src_file.
640
ba78087b
KT
6412011-03-25 Kai Tietz <ktietz@redhat.com>
642
643 * c-ada-spec.c (compare_comment): Use filename_cmp
644 instead of strcmp for filename.
645
0edf1bb2
JL
6462011-03-25 Jeff Law <law@redhat.com>
647
648 * c-family/c-common.c (def_fn_type): Add missing va_end.
649
c7dc8804
JM
6502011-03-25 Jason Merrill <jason@redhat.com>
651
652 * c.opt: Add -std=c++03.
653
d1d879b1
EB
6542011-03-22 Eric Botcazou <ebotcazou@adacore.com>
655
656 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
657
62d784f7
KT
6582011-03-17 Kai Tietz
659
660 PR target/12171
5050afdf
KT
661 * c-pretty-print.c (pp_c_specifier_qualifier_list):
662 Display allowed attributes for function pointer types.
663 (pp_c_attributes_display): New function to display
664 attributes having affects_type_identity flag set to true.
665 * c-pretty-print.h (pp_c_attributes_display): New prototype.
666
62d784f7
KT
667 * c-common.c (c_common_attribute_table):
668 Add new element.
669 (c_common_format_attribute_table): Likewise.
670
82d37118
JM
6712011-03-18 Jason Merrill <jason@redhat.com>
672
49a000c3
JM
673 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
674 * c-common.h: Don't declare it here.
675 * c-common.c: Or define it here.
676 * c-opts.c (c_common_handle_option): Or set it here.
677
82d37118
JM
678 PR c++/35315
679 * c-common.c (handle_transparent_union_attribute): Don't
680 make a duplicate type in C++.
681
17bc631c
JM
6822011-03-15 Jason Merrill <jason@redhat.com>
683
684 * c-common.c (max_constexpr_depth): New.
685 * c-common.h: Declare it.
686 * c-opts.c (c_common_handle_option): Set it.
687 * c.opt (fconstexpr-depth): New option.
688
1b9b91a6
JM
6892011-03-11 Jason Merrill <jason@redhat.com>
690
f231b5ff
JM
691 * c-common.c (attribute_takes_identifier_p): Add missing const.
692
1b9b91a6
JM
693 PR c++/46803
694 * c-common.c (attribute_takes_identifier_p): Assume that an
695 unknown attribute takes an identifier.
696
a19e4d44
NF
6972011-03-07 Nathan Froyd <froydnj@codesourcery.com>
698
699 PR c/47786
700 * c-common.c (c_type_hash): Call list_length instead of iterating
701 through DECL_CHAIN. Rename 'i' to 'n_elements'.
702
982d62f6
JJ
7032011-02-19 Jakub Jelinek <jakub@redhat.com>
704
705 PR c/47809
706 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
707
0a256240
NP
7082011-02-17 Iain Sandoe <iains@gcc.gnu.org>
709
710 * c.opt (fobjc-abi-version=) New.
711 (fobjc-nilcheck): New.
712
ba9e6dd5
NF
7132011-02-03 Nathan Froyd <froydnj@codesourcery.com>
714
715 PR c++/46890
716 * c-common.h (keyword_is_decl_specifier): Declare.
717 * c-common.c (keyword_is_decl_specifier): Define.
718 (keyword_is_function_specifier): New function.
719
7273813a
JJ
7202011-01-26 Jakub Jelinek <jakub@redhat.com>
721
722 PR c/47473
723 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
724 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
725 REAL_TYPE.
726
908ef79b
AC
7272011-01-26 Arnaud Charlet <charlet@adacore.com>
728
729 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
730
237e9384
JJ
7312011-01-26 Jakub Jelinek <jakub@redhat.com>
732
733 PR pch/47430
734 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
735 after init_c_lex if pch_file is set.
736
47ea1edf
DK
7372011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
738
d4dba752 739 PR c++/43601
47ea1edf
DK
740 * c.opt (-fkeep-inline-dllexport): New switch.
741
2aa9c6ae
RG
7422011-01-12 Richard Guenther <rguenther@suse.de>
743
744 PR middle-end/32511
745 * c-common.c (handle_weak_attribute): Warn instead of error
746 on declaring an inline function weak.
747
7bd11157
TT
7482011-01-05 Tom Tromey <tromey@redhat.com>
749
750 * c-common.h (lvalue_error): Update.
751 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
752 not error.
753
0e66e494
NP
7542010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
755
b4f588c4
NP
756 PR objc/47075
757 * c-objc.h (objc_finish_message_expr): Added argument to
758 prototype.
759
f4da8dce
NF
7602010-12-22 Nathan Froyd <froydnj@codesourcery.com>
761
762 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
763 Use prototype_p.
764
46270f14
NP
7652010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
766
767 * c-objc.h (objc_maybe_warn_exceptions): New.
768 * stub-objc.c (objc_maybe_warn_exceptions): New.
769
4816c593
NF
7702010-12-10 Nathan Froyd <froydnj@codesourcery.com>
771
772 * c-common.h (readonly_error): Declare.
773 * c-common.c (readonly_error): Define.
774
7a6daeb0
NF
7752010-12-09 Nathan Froyd <froydnj@codesourcery.com>
776
777 * c-common.h (invalid_indirection_error): Declare.
778 * c-common.c (invalid_indirection_error): Define.
779
892f6119
RG
7802010-12-03 Richard Guenther <rguenther@suse.de>
781
782 PR c/46745
783 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
784 (pp_c_unary_expression): Likewise.
785 (pp_c_expression): Likewise.
786
6c39e757
NP
7872010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
788
789 * c-common.h (objc_finish_function): New.
790 (objc_non_volatilized_type): Removed.
791 (objc_type_quals_match): Removed.
792 * stub-objc.c (objc_finish_function): New.
793 (objc_non_volatilized_type): Removed.
794 (objc_type_quals_match): Removed.
795
7c475d11
JM
7962010-11-30 Joseph Myers <joseph@codesourcery.com>
797
798 * c-common.h (parse_optimize_options): Declare.
799 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
800 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
801
71f3e391
JM
8022010-11-29 Joseph Myers <joseph@codesourcery.com>
803
804 * c-opts.c (check_deps_environment_vars): Use getenv instead of
805 GET_ENVIRONMENT.
806 * c-pch.c (O_BINARY): Don't define here.
807 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
808
d5fabb58
JM
8092010-11-25 Joseph Myers <joseph@codesourcery.com>
810
811 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
812 targetm.except_unwind_info.
813
299404a1
JM
8142010-11-23 Joseph Myers <joseph@codesourcery.com>
815
816 * c-opts.c (c_common_handle_option): Pass location to
817 set_struct_debug_option.
818
c98cd5bf
JM
8192010-11-23 Joseph Myers <joseph@codesourcery.com>
820
821 * c-common.c (visibility_options): Move from ../opts.c.
822 * c-common.h (struct visibility_flags, visibility_options):
823 Declare here.
824 * c-opts.c (finish_options): Rename to c_finish_options.
825 (c_common_init): Update call to finish_options.
826
a9546771
NP
8272010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
828
829 PR objc/34033
830 * c-lex.c (lex_string): Check that each string in an Objective-C
831 string concat sequence starts with either one or zero '@', and
832 that there are no spurious '@' signs at the end.
833
24a57808
JM
8342010-11-20 Joseph Myers <joseph@codesourcery.com>
835
836 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
837 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
838 HANDLE_PRAGMA_VISIBILITY.
839 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
840 HANDLE_PRAGMA_VISIBILITY): Don't define.
841 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
842
a9aa2c3a
NF
8432010-11-20 Nathan Froyd <froydnj@codesourcery.com>
844
845 PR c++/16189
846 PR c++/36888
847 PR c++/45331
848 * c-common.h (keyword_begins_type_specifier): Declare.
849 (keyword_is_storage_class_specifier): Declare.
850 (keyword_is_type_qualifier): Declare.
851 * c-common.c (keyword_begins_type_specifier): New function.
852 (keyword_is_storage_class_specifier): New function.
853 (keyword_is_type_qualifier): Declare.
854
5386338c
JM
8552010-11-19 Joseph Myers <joseph@codesourcery.com>
856
857 PR c/46547
858 * c-common.c (in_late_binary_op): Define.
859 (c_common_truthvalue_conversion): Check in_late_binary_op before
860 calling c_save_expr.
861 * c-common.h (in_late_binary_op): Declare.
862
69ccdddb
JM
8632010-11-19 Joseph Myers <joseph@codesourcery.com>
864
865 * c-opts.c (c_common_handle_option): Update calls to
866 set_struct_debug_option.
867
6b192a09
NP
8682010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
869
870 * c-common.h (objc_declare_protocols): Added additional argument.
871 * stub-objc.c (objc_declare_protocol): Same change.
872
fb52b50a
NF
8732010-11-18 Nathan Froyd <froydnj@codesourcery.com>
874
875 PR c/33193
876 * c-common.h (build_real_imag_expr): Declare.
877 * c-semantics.c (build_real_imag_expr): Define.
878
b37421c6
JM
8792010-11-17 Joseph Myers <joseph@codesourcery.com>
880
881 * c-opts.c (c_common_parse_file): Take no arguments.
882 * c-common.h (c_common_parse_file): Update prototype.
883
07078664
JJ
8842010-11-16 Jakub Jelinek <jakub@redhat.com>
885
886 PR c++/46401
887 * c-common.c (warning_candidate_p): Don't track non-const calls
888 or STRING_CSTs.
889
c6a13190
ILT
8902010-11-15 Ian Lance Taylor <iant@google.com>
891
892 * c-lex.c (init_c_lex): Set macro debug callbacks if
893 flag_dump_go_spec is set.
894
925e8657
NP
8952010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
896
897 * c-common.h (objc_build_incr_expr_for_property_ref): New.
898 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
899
bb0a9581
NF
9002010-11-15 Nathan Froyd <froydnj@codesourcery.com>
901
902 PR preprocessor/45038
903 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
904 dialects.
905
c5fa0890
JM
9062010-11-12 Joseph Myers <joseph@codesourcery.com>
907
908 * c-common.h (c_family_lang_mask): Declare.
909 * c-opts.c (c_family_lang_mask): Make extern.
910 * c-pragma.c (handle_pragma_diagnostic): Use
911 control_warning_option.
912
a4d8c676
JM
9132010-11-12 Joseph Myers <joseph@codesourcery.com>
914
915 * c-common.c (parse_optimize_options): Update call to
916 decode_options.
917 * c-common.h (c_common_handle_option): Update prototype.
918 * c-opts.c (c_common_handle_option): Take location_t parameter and
919 pass it to other functions.
920
f954bd2c
JM
9212010-11-11 Joseph Myers <joseph@codesourcery.com>
922
923 * c-opts.c (warning_as_error_callback): Remove.
924 (c_common_initialize_diagnostics): Don't call
925 register_warning_as_error_callback.
926 (c_common_handle_option): Handle -Werror=normalized= here.
927
d8a07487
JM
9282010-11-10 Joseph Myers <joseph@codesourcery.com>
929
930 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
931 in diagnostic.
932 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
933 letter.
934 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
935 Remove trailing '.' from diagnostics.
936 * c.opt (Wwrite-strings_: Avoid '`' in help text.
937
d5478783
JM
9382010-11-10 Joseph Myers <joseph@codesourcery.com>
939
940 * c-common.c (parse_optimize_options): Pass global_dc to
941 decode_options.
942 * c-opts.c (c_common_handle_option): Pass &global_options to
943 set_Wstrict_aliasing.
944 * c.opt (v): Don't mark Common or document here.
945
91ebb981
IS
9462010-11-06 Iain Sandoe <iains@gcc.gnu.org>
947
948 PR target/44981
949 * c-format.c (format_type): New type gcc_objc_string_format_type.
950 (valid_stringptr_type_p): New.
951 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
952 (check_format_string): Pass expected type, use
953 valid_stringptr_type_p (), check that the format string types are
954 consistent with the format specification.
955 (decode_format_attr): Warn if NSString is used outside objective-c.
956 (format_types_orig): Add NSString.
957 (format_name): New.
958 (format_flags): New.
959 (check_format_arg): Handle format strings requiring an external parser.
960 first_target_format_type: New variable.
961 (handle_format_attribute): Set up first_target_format_type, pass the
962 expected format arg string type to check_format_string().
963 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
964 * stub-objc.c (objc_string_ref_type_p): New.
965 (objc_check_format_arg): New.
966
bede2adc
NP
9672010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
968
969 Fixed using the Objective-C 2.0 dot-syntax with class names.
970 * c-common.h (objc_build_class_component_ref): New.
971 * stub-objc.c (objc_build_class_component_ref): New.
972
9a179d01
NP
9732010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
974
975 * c.opt (Wproperty-assign-default): New option.
976
22d8d616
NP
9772010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
978
979 Implemented -fobjc-std=objc1 flag.
980 * c.opt (fobjc-std=objc1): New option.
981
2debdb4f
NP
9822010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
983
984 Implemented format and noreturn attributes for Objective-C methods.
985 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
986 attribute for Objective-C methods.
987
ec52b111
JM
9882010-10-31 Jason Merrill <jason@redhat.com>
989
990 * c-common.c (conversion_warning, warn_for_collisions_1): Use
991 EXPR_LOC_OR_HERE.
992
46a88c12
NP
9932010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
994
995 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
996 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
997 (objc_add_property_declaration): Removed arguments for copies and
998 ivar.
999 (objc_build_getter_call): Renamed to
1000 objc_maybe_build_component_ref.
1001 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1002 (objc_is_property_ref): New.
1003 * c-common.c (c_common_reswords): Removed copies and ivar.
1004 * stub-objc.c (objc_add_property_declaration): Removed arguments
1005 for copies and ivar.
1006 (objc_build_getter_call): Renamed to
1007 objc_maybe_build_component_ref.
1008 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1009 (objc_is_property_ref): New.
1010
1e4bf85b
AC
10112010-10-29 Arnaud Charlet <charlet@adacore.com>
1012 Matthew Gingell <gingell@adacore.com>
1013
1014 * c-ada-spec.c (separate_class_package): New function.
1015 (pp_ada_tree_identifier): Prefix references to C++ classes with the
1016 name of their enclosing package.
1017 (print_ada_declaration): Use separate_class_package.
1018
81f0bab2
JM
10192010-10-27 Jason Merrill <jason@redhat.com>
1020
2b08f2c5
JM
1021 * c-common.c (c_common_reswords): Add __is_literal_type.
1022 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
1023
81f0bab2
JM
1024 * c-common.c (check_case_value): Remove special C++ code.
1025
200290f2
NP
10262010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1027
1028 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
1029 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
1030 and RID_LAST_PATTR.
1031 (objc_add_property_declaration): Added additional arguments.
1032 (objc_property_attribute_kind): Removed.
1033 (objc_set_property_attr): Removed.
1034 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
1035 copy and nonatomic.
1036 * stub-objc.c (objc_add_property_declaration): Added additional
1037 arguments.
1038 (objc_set_property_attr): Removed.
1039
f614132b
NP
10402010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1041
1042 * c-common.h (objc_add_property_variable): Renamed to
1043 objc_add_property_declaration. Added location argument.
1044 * stub-objc.c (objc_add_property_variable): Same change.
1045
b8a18805
NP
10462010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
1047
1048 * c-common.h (objc_maybe_printable_name): New.
1049 * stub-objc.c (objc_maybe_printable_name): New.
1050
30cd1c5d
AS
10512010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1052 Andrew Pinski <pinskia@gmail.com>
1053
1054 * c-common.h (c_common_mark_addressable_vec): Declare.
1055 * c-common.c (c_common_mark_addressable_vec): New function.
1056
249a82c4
NP
10572010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1058
1059 * c-common.h (objc_set_method_type): Removed.
1060 (objc_add_method_declaration): Added boolean argument.
1061 (objc_start_method_definition): Same change.
1062 (objc_build_method_signature): Same change.
1063 * stub-objc.c (objc_set_method_type): Removed.
1064 (objc_add_method_declaration): Added boolean argument.
1065 (objc_start_method_definition): Same change.
1066 (objc_build_method_signature): Same change.
1067
977e30bc
NP
10682010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1069
1070 * c-common.h (finish_file): Removed.
1071 (objc_write_global_declarations): New.
1072 * c-opts.c (c_common_parse_file): Do not call finish_file.
1073 * stub-objc.c (objc_write_global_declarations): New.
1074
da57d1b9
NP
10752010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1076
1077 Implemented parsing @synthesize and @dynamic for
1078 Objective-C/Objective-C++.
1079 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
1080 (objc_add_synthesize_declaration): New.
1081 (objc_add_dynamic_declaration): New.
1082 * c-common.c (c_common_reswords): Add synthesize and dynamic.
1083 * stub-objc.c (objc_add_synthesize_declaration): New.
1084 (objc_add_dynamic_declaration): New.
1085
0069111f
MM
10862010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1087
1088 PR target/46041
1089 * c-cppbuiltin.c (mode_has_fma): Move function here from
1090 builtins.c. Don't use the fma optab, instead just use the
1091 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
1092 using -save-temps.
1093
e426b47b
NP
10942010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1095
1096 Merge from 'apple/trunk' branch on FSF servers.
0069111f 1097
e426b47b
NP
1098 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
1099
1100 Radar 4330422
1101 * c-common.h (objc_non_volatilized_type): New declaration
1102 * stub-objc.c (objc_non_volatilized_type): New stub.
1103
90fbfdc3
NP
11042010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
1105
e426b47b 1106 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
1107
1108 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
1109
1110 Radar 4133425
1111 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 1112 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 1113
c37d8c30
IS
11142010-10-17 Iain Sandoe <iains@gcc.gnu.org>
1115
1116 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
1117 * c-common.h (enum rid): Add RID_AT_PACKAGE.
1118 (objc_ivar_visibility_kind): New enum.
1119 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 1120 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
1121 visibility enum.
1122
1b1562a5
MM
11232010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1124
1125 * c-cppbuiltin.c (builtin_define_float_constants): Emit
1126 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
1127 has the appropriate fma builtins.
1128 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
1129
668ea4b1
IS
11302010-10-14 Iain Sandoe <iains@gcc.gnu.org>
1131
1b1562a5 1132 merge from FSF apple 'trunk' branch.
668ea4b1 1133 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 1134
668ea4b1
IS
1135 Radars 4436866, 4505126, 4506903, 4517826
1136 * c-common.c (c_common_resword): Define @property and its attributes.
1137 * c-common.h: Define property attribute enum entries.
1138 (OBJC_IS_PATTR_KEYWORD): New.
1139 (objc_property_attribute_kind): New enum.
1140 Declare objc_set_property_attr (), objc_add_property_variable (),
1141 objc_build_getter_call () and objc_build_setter_call ().
1142 * stub-objc.c (objc_set_property_attr): New stub.
1143 (objc_add_property_variable): Likewise.
1144 (objc_build_getter_call): Likewise.
1145 (objc_build_setter_call) Likewise.
1b1562a5 1146
a1178b30
IS
11472010-10-13 Iain Sandoe <iains@gcc.gnu.org>
1148
1b1562a5 1149 merge from FSF apple 'trunk' branch.
a1178b30
IS
1150 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
1151
1152 Radar 3803157 (method attributes)
1153 * c-common.c (handle_deprecated_attribute): Recognize
1154 objc methods as valid declarations.
1155 * c-common.h: Declare objc_method_decl ().
1b1562a5 1156 * stub-objc.c (objc_method_decl): New stub.
a1178b30 1157
a75bfaa6
JM
11582010-10-08 Joseph Myers <joseph@codesourcery.com>
1159
1160 * c-common.c (parse_optimize_options): Call
1161 decode_cmdline_options_to_array_default_mask before
1162 decode_options. Update arguments to decode_options.
1163 * c-common.h (c_common_init_options_struct): Declare.
1164 * c-opts.c (c_common_init_options_struct): New. Split out from
1165 c_common_init_options.
1166
f05b9d93
NP
11672010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
1168
1169 Implemented fast enumeration for Objective-C.
1170 * c-common.h (objc_finish_foreach_loop): New.
1171 * stub-objc.c (objc_finish_foreach_loop): New.
1172
1ebe4b4f
JM
11732010-10-05 Joseph Myers <joseph@codesourcery.com>
1174
1175 * c-common.h (struct diagnostic_context): Don't declare here.
1176 (c_common_initialize_diagnostics): Declare using
1177 diagnostic_context typedef.
1178 * c-opts.c (c_common_handle_option): Pass global_dc to
1179 handle_generated_option.
1180
d4d24ba4
JM
11812010-10-04 Joseph Myers <joseph@codesourcery.com>
1182
1183 * c-opts.c (c_common_handle_option): Pass &global_options_set to
1184 handle_generated_option.
1185
478a1c5b
ILT
11862010-10-03 Ian Lance Taylor <iant@google.com>
1187
1188 * c.opt (-fplan9-extensions): New option.
1189
82a1c2fe
FXC
11902010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1191
1192 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
1193 Remove.
1194 (c_cpp_builtins): Call functions from cppbuiltin.c instead
1195 of duplicating code.
1196
92902b1b
IS
11972010-09-30 Iain Sandoe <iains@gcc.gnu.org>
1198
1199 * c-common.c: Add two new entries for @optional
1200 and @required keywords.
1201
1202 merge from FSF 'apple/trunk' branch.
1203 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
1204
1205 Radar 4386773
1206 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
1207 objective-c keywords.
1208 (objc_set_method_opt): New declaration.
1209 * stub-objc.c (objc_set_method_opt): New stub.
1210
46625112
JM
12112010-09-30 Joseph Myers <joseph@codesourcery.com>
1212
1213 * c-common.c (handle_optimize_attribute): Pass &global_options to
1214 cl_optimization_save and cl_optimization_restore.
1215 * c-opts.c (c_common_handle_option): Pass &global_options to
1216 handle_generated_option.
1217 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
1218 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
1219 &global_options to cl_optimization_restore.
1220
49b91f05
NP
12212010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
1222
1223 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
1224 Objective-C/Objective-C++ keywords.
1225
13ed556f 12262010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57
NP
1227
1228 Merge from 'apple/trunk' branch on FSF servers.
1229
1230 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
1231
1232 Radar 4281748
1233 * c-common.h (objc_check_global_decl): New declaration.
1234 * stub-objc.c (objc_check_global_decl): New stub.
1235
f0036cca
JM
12362010-09-29 Joseph Myers <joseph@codesourcery.com>
1237
1238 * c.opt: Don't use VarExists.
1239
e3339d0f
JM
12402010-09-29 Joseph Myers <joseph@codesourcery.com>
1241
1242 * c-common.c (c_cpp_error): Update names of diagnostic_context
1243 members.
1244 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
1245 cl_optimization members.
1246 * c-opts.c (warning_as_error_callback, c_common_handle_option,
1247 sanitize_cpp_opts, finish_options): Update names of cpp_options
1248 members.
1249
1973201f
NP
12502010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1251
1252 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
1253 (objc_is_reserved_word): Removed.
1254 * c-common.c: Updated comments.
1255 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
1256 objc_is_reserved_word.
1257 * stub-objc.c (objc_is_reserved_word): Removed.
1258
f7e71da5
IS
12592010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1260
1261 * c-common.h (objc_add_method_declaration): Adjust prototype to
1262 include attributes.
1263 (objc_start_method_definition): Likewise.
1264 (objc_build_keyword_decl): Likewise.
1265 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
1266 (objc_start_method_definition): Likewise.
1267 (objc_build_keyword_decl): Likewise.
1268
c165dca7
IS
12692010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1270
1271 * c-common.h (objc_start_class_interface): Adjust prototype.
1272 (objc_start_category_interface): Likewise.
1273 (objc_start_protocol): Likewise.
1274 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
1275 (objc_start_class_interface): Likewise.
1276 (objc_start_category_interface): Likewise.
1277
7458026b
ILT
12782010-09-27 Ian Lance Taylor <iant@google.com>
1279
1280 * c-common.c (c_common_attribute_table): Add no_split_stack.
1281 (handle_no_split_stack_attribute): New static function.
1282
b581b85b
NP
12832010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
1284
1285 Merge from 'apple/trunk' branch on FSF servers.
1286
1287 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
1288
1289 Radar 4229905
1290 * c-common.h (objc_have_common_type): New declaration.
1291 * stub-objc.c (objc_have_common_type): New stub.
1292
1293 2005-06-22 Ziemowit Laski <zlaski@apple.com>
1294
1295 Radar 4154928
1296 * c-common.h (objc_common_type): New prototype.
1297 * stub-objc.c (objc_common_type): New stub.
1298
46a4da10
JH
12992010-09-24 Jan Hubicka <jh@suse.cz>
1300
1301 * c-common.c (handle_leaf_attribute): New function.
1302 (struct attribute_spec c_common_att): Add leaf.
1303
e200444e
JM
13042010-09-22 Joseph Myers <joseph@codesourcery.com>
1305
1306 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
1307 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
1308 -dump, -dump=, -imacros, -imacros=, -include, -include=,
1309 -include-barrier, -include-directory, -include-directory=,
1310 -include-directory-after, -include-directory-after=,
1311 -include-prefix, -include-prefix=, -include-with-prefix,
1312 -include-with-prefix=, -include-with-prefix-after,
1313 -include-with-prefix-after=, -include-with-prefix-before,
1314 -include-with-prefix-before=, -no-integrated-cpp,
1315 -no-line-commands, -no-standard-includes, -no-warnings, -output,
1316 -output=, -pedantic, -pedantic-errors, -preprocess,
1317 -print-missing-file-dependencies, -trace-includes, -traditional,
1318 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
1319 -user-dependencies, -verbose, -write-dependencies,
1320 -write-user-dependencies, no-integrated-cpp, traditional): New.
1321
29a80ea6
NP
13222010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1323
1324 PR objc/23710
ac1fc2fc
NP
1325 * c-common.h (objc_start_method_definition): Return bool instead
1326 of void.
1327 * stub-objc.c (objc_start_method_definition): Return bool instead
1328 of void.
1329
13302010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1331
1332 PR objc/25965
1333 * c-common.h (objc_get_interface_ivars): New declaration.
1334 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 1335
de621752
ILT
13362010-09-15 Ian Lance Taylor <iant@google.com>
1337
1338 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 1339 messages. Remove period at end of warning message.
de621752 1340
ba885ec5
NS
13412010-09-09 Nathan Sidwell <nathan@codesourcery.com>
1342
1343 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
1344 (handle_alias_attribute): ... here.
1345 (handle_ifunc_attribute): New.
1346
c5ee1358
MM
13472010-09-06 Mark Mitchell <mark@codesourcery.com>
1348
1349 * c-common.h (do_warn_double_promotion): Declare.
1350 * c-common.c (do_warn_double_promotion): Define.
1351
0a0b3574
MM
13522010-09-05 Mark Mitchell <mark@codesourcery.com>
1353
1354 * c.opt (Wdouble-promotion): New.
1355
d1779886
JM
13562010-09-02 Joseph Myers <joseph@codesourcery.com>
1357
1358 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
1359 fvtable-thunks, fxref): Mark no longer supported in help text.
1360
2d2bd949
JM
13612010-09-02 Joseph Myers <joseph@codesourcery.com>
1362
1363 * c.opt (Wimport, fall-virtual, falt-external-templates,
1364 fdefault-inline, fenum-int-equiv, fexternal-templates,
1365 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
1366 fname-mangling-version-, fnew-abi, fnonnull-objects,
1367 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
1368 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
1369 applicable.
1370 (fhandle-exceptions): Mark with Alias and Warn.
1371 * c-opts.c (c_common_handle_option): Don't handle options marked
1372 as ignored.
1373
5de8299c
JM
13742010-09-02 Joseph Myers <joseph@codesourcery.com>
1375
1376 * c.opt (Wcomments, Werror-implicit-function-declaration,
1377 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
1378 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
1379 aliases.
1380 * c-common.c (option_codes): Use OPT_Wcomment instead of
1381 OPT_Wcomments.
1382 * c-opts.c (warning_as_error_callback, c_common_handle_option):
1383 Don't handle options marked as aliases.
1384
0ceb0201
RG
13852010-08-25 Richard Guenther <rguenther@suse.de>
1386
1387 * c-common.c (c_common_get_alias_set): Remove special
1388 handling for pointers.
1389
ac47786e
NF
13902010-08-20 Nathan Froyd <froydnj@codesourcery.com>
1391
1392 * c-common.c: Use FOR_EACH_VEC_ELT.
1393 * c-gimplify.c: Likewise.
1394 * c-pragma.c: Likewise.
1395
c878765b
JM
13962010-08-16 Joseph Myers <joseph@codesourcery.com>
1397
1398 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
1399 RejectDriver.
1400 (MMDX): Change back to MMD. Mark NoDriverArg instead of
1401 RejectDriver.
1402 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
1403 instead of OPT_MDX and OPT_MMDX.
1404
603349bf
JM
14052010-08-16 Joseph Myers <joseph@codesourcery.com>
1406
1407 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
1408
644fa7ac
JM
14092010-08-12 Joseph Myers <joseph@codesourcery.com>
1410
1411 * c.opt (MD, MMD): Change to MDX and MMDX.
1412 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
1413
481e1176
JM
14142010-08-11 Joseph Myers <joseph@codesourcery.com>
1415
1416 * c-opts.c (c_common_handle_option): Call handle_generated_option
1417 instead of handle_option.
1418
ac8dc9f7
NF
14192010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1420
1421 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
1422 (maybe_apply_renaming_pragma): Delete unneeded declarations.
1423
4f8c876d
NF
14242010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1425
1426 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
1427 (pending_redefine_extname): Change type to a VEC.
1428 (add_to_renaming_pragma_list): Update for new type of
1429 pending_redefine_extname.
ac8dc9f7 1430 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 1431
3b0c690e
AC
14322010-08-04 Arnaud Charlet <charlet@adacore.com>
1433
1434 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
1435 visited.
1436 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
1437 decide whether a type has already been declared/seen.
1438 Do not go to the original type.
1439 (dump_nested_types): New parameter forward.
1440 Generate forward declaration if needed and mark type as visited.
1441 (print_ada_declaration): Call dump_nested_types if not already done.
1442 Mark types as visited.
1443
1890bccc
JM
14442010-08-03 Joseph Myers <joseph@codesourcery.com>
1445
1446 * c.opt (-print-pch-checksum): Remove option.
1447 * c-opts.c (c_common_handle_option): Don't handle
1448 OPT_print_pch_checksum.
1449
5f20c657
JM
14502010-07-27 Joseph Myers <joseph@codesourcery.com>
1451
1452 * c-common.h (c_common_handle_option): Update prototype and return
1453 value type.
1454 * c-opts.c (c_common_handle_option): Update prototype and return
1455 value type. Update calls to handle_option and
1456 enable_warning_as_error.
1457
f551f80c
JJ
14582010-07-27 Jakub Jelinek <jakub@redhat.com>
1459
1460 PR c/45079
1461 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
1462
61ff2bdc
JM
14632010-07-27 Joseph Myers <joseph@codesourcery.com>
1464
1465 * c-common.h (c_common_missing_argument): Remove.
1466 * c-opts.c (c_common_missing_argument): Remove.
1467 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
1468 idirafter, imacros, include, isysroot, isystem, iquote): Add
1469 MissingArgError.
1470 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
1471
7a9bf9a4
JM
14722010-07-27 Joseph Myers <joseph@codesourcery.com>
1473
1474 * c-common.h (c_common_option_lang_mask,
1475 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
1476 New.
1477 (c_common_init_options): Update prototype.
1478 * c-opts.c (c_common_option_lang_mask): New.
1479 (c_common_initialize_diagnostics): Split out of
1480 c_common_init_options.
1481 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
1482 New.
1483 (c_common_init_options): Update prototype. Use decoded options in
1484 search for -lang-asm.
1485
910ad8de
NF
14862010-07-15 Nathan Froyd <froydnj@codesourcery.com>
1487
1488 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
1489 * c-format.c: Likewise.
1490
718f9c0f
MLI
14912010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
1492
1493 * c-common.h: Include diagnostic-core.h. Error if already
1494 included.
1495 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
1496
4d451982
MLI
14972010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1498
1499 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
1500 Do not include expr.h
1501 (vector_mode_valid_p): Move here.
1502
119fe915
SB
15032010-06-21 DJ Delorie <dj@redhat.com>
1504
1505 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
1506 allow these pragmas anywhere.
1507
15082010-06-14 Jakub Jelinek <jakub@redhat.com>
1509
1510 PR bootstrap/44509
1511 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
1512 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
1513 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
1514 ggc_strdup instead of xstrdup.
1515
15162010-06-10 Jakub Jelinek <jakub@redhat.com>
1517
1518 * c-cppbuiltin.c: Include cpp-id-data.h.
1519 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
1520 (lazy_hex_fp_value): New function.
1521 (builtin_define_with_hex_fp_value): Provide definitions lazily.
1522
6662d794
MLI
15232010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1524
1525 * c-gimplify.c: Do not include tree-flow.h
1526
38f8b050
JR
15272010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
1528
1529 PR other/44034
1530 * c-common.c: Rename targetm member:
1531 targetm.enum_va_list -> targetm.enum_va_list_p
1532
9589f23e
AS
15332010-06-28 Anatoly Sokolov <aesok@post.ru>
1534
1535 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
1536
3b06d379
SB
15372010-06-28 Steven Bosscher <steven@gcc.gnu.org>
1538
1539 * c-cppbuiltin.c: Do not include except.h.
1540
d166d4c3
AK
15412010-06-24 Andi Kleen <ak@linux.intel.com>
1542
1543 * c-common.c (warn_for_omitted_condop): New.
1544 * c-common.h (warn_for_omitted_condop): Add prototype.
1545
70cb8be6
JM
15462010-06-21 Joseph Myers <joseph@codesourcery.com>
1547
1548 * c.opt (lang-objc): Remove.
1549 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
1550
a4c97feb
JR
15512010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
1552
1553 * c-opts.c: Include "tm_p.h".
1554
6e2f1956
JM
15552010-06-20 Joseph Myers <joseph@codesourcery.com>
1556
1557 * c-common.c (parse_optimize_options): Update call to
1558 decode_options.
1559
bc87224e
NF
15602010-06-18 Nathan Froyd <froydnj@codesourcery.com>
1561
1562 * c-common.c (record_types_used_by_current_var_decl): Adjust for
1563 new type of types_used_by_cur_var_decl.
1564
b49cf425
JR
15652010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
1566
1567 PR bootstrap/44512
1568 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
1569 for C++ standard compliance.
1570
59f9c2ed
JM
15712010-06-16 Jason Merrill <jason@redhat.com>
1572
1573 * c.opt: Add -Wnoexcept.
1574
33766b66
RG
15752010-06-16 Richard Guenther <rguenther@suse.de>
1576
1577 PR c/44555
1578 * c-common.c (c_common_truthvalue_conversion): Remove
1579 premature and wrong optimization concering ADDR_EXPRs.
1580
eff7e30c
AC
15812010-06-15 Arnaud Charlet <charlet@adacore.com>
1582
1583 * c-ada-spec.c (dump_sloc): Remove column info.
1584 (is_simple_enum): New function.
1585 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
1586 enum types when relevant.
1587
6312e84d
MLI
15882010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1589
1590 * c-common.c (conversion_warning): Warn at expression
1591 location.
1592
1cb42611
JM
15932010-06-10 Joseph Myers <joseph@codesourcery.com>
1594
1595 * c-opts.c (c_common_handle_option): Don't handle
1596 OPT_fshow_column.
1597
a9429e29
LB
15982010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1599
1600 * c-pragma.c (push_alignment): Use typed GC allocation.
1601 (handle_pragma_push_options): Likewise.
1602
1603 * c-common.c (parse_optimize_options): Likewise.
1604
1605 * c-common.h (struct sorted_fields_type): Add variable_size GTY
1606 option.
1607
5498f011
JM
16082010-06-07 Joseph Myers <joseph@codesourcery.com>
1609
1610 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
1611 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1612 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1613 flag_signed_bitfields, warn_strict_null_sentinel,
1614 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
1615 flag_gen_declaration, flag_no_gnu_keywords,
1616 flag_implement_inlines, flag_implicit_templates,
1617 flag_implicit_inline_templates, flag_optional_diags,
1618 flag_elide_constructors, flag_default_inline, flag_rtti,
1619 flag_conserve_space, flag_access_control, flag_check_new,
1620 flag_new_for_scope, flag_weak, flag_working_directory,
1621 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
1622 flag_enforce_eh_specs, flag_threadsafe_statics,
1623 flag_pretty_templates): Remove.
1624 * c-common.h (flag_preprocess_only, flag_nil_receivers,
1625 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
1626 flag_replace_objc_classes, flag_undef, flag_no_builtin,
1627 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1628 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1629 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
1630 flag_no_gnu_keywords, flag_implement_inlines,
1631 flag_implicit_templates, flag_implicit_inline_templates,
1632 flag_optional_diags, flag_elide_constructors, flag_default_inline,
1633 flag_rtti, flag_conserve_space, flag_access_control,
1634 flag_check_new, flag_new_for_scope, flag_weak,
1635 flag_working_directory, flag_use_cxa_atexit,
1636 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
1637 flag_threadsafe_statics, flag_pretty_templates,
1638 warn_strict_null_sentinel): Remove.
1639 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
1640 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
1641 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
1642 fimplicit-inline-templates, fimplicit-templates,
1643 flax-vector-conversions, fms-extensions, fnil-receivers,
1644 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
1645 frtti, fshort-double, fshort-enums, fshort-wchar,
1646 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
1647 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
1648 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
1649 gen-decls, undef): Use Var.
1650 (fdefault-inline, foptional-diags): Document as doing nothing.
1651 * c-opts.c (c_common_handle_option): Remove cases for options now
1652 using Var. Mark ignored options as such.
1653
39dabefd
SB
16542010-06-05 Steven Bosscher <steven@gcc.gnu.org>
1655
1656 * c-common.c: Moved to here from parent directory.
1657 * c-common.def: Likewise.
1658 * c-common.h: Likewise.
1659 * c-cppbuiltin.c: Likewise.
1660 * c-dump.c: Likewise.
1661 * c-format.c: Likewise.
1662 * c-format.h : Likewise.
1663 * c-gimplify.c: Likewise.
1664 * c-lex.c: Likewise.
1665 * c-omp.c: Likewise.
1666 * c.opt: Likewise.
1667 * c-opts.c: Likewise.
1668 * c-pch.c: Likewise.
1669 * c-ppoutput.c: Likewise.
1670 * c-pragma.c: Likewise.
1671 * c-pragma.h: Likewise.
1672 * c-pretty-print.c: Likewise.
1673 * c-pretty-print.h: Likewise.
1674 * c-semantics.c: Likewise.
1675 * stub-objc.c: Likewise.
1676
1677 * c-common.c: Include gt-c-family-c-common.h.
1678 * c-pragma.c: Include gt-c-family-c-pragma.h.
1679\f
04695783 1680Copyright (C) 2010, 2011 Free Software Foundation, Inc.
39dabefd
SB
1681
1682Copying and distribution of this file, with or without modification,
1683are permitted in any medium without royalty provided the copyright
1684notice and this notice are preserved.