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