]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
Switch -ftrack-macro-expansion=2 on by default.
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
e6c69da0
MLI
12012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2
3 * c-common.c (check_function_arguments): Replace
4 Wmissing-format-attribute with Wsuggest-attribute=format.
5
90137d8f
MLI
62012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
7
8 * c.opt (Wsuggest-attribute=format): New. Alias of
9 Wmissing-format-attribute.
10 * c-format.c (decode_format_type): Replace
11 Wmissing-format-attribute with Wsuggest-attribute=format.
12 (check_function_format): Likewise.
13
7f5f5f98
OW
142012-04-27 Ollie Wild <aaw@google.com>
15
16 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
17 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
18 * c.opt: Add Wliteral-suffix.
19
c1771a20
MLI
202012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
21
22 PR c/44774
23 * c.opt (Wpedantic): New.
24 (pedantic): Alias Wpedantic.
25 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
26 (c_common_post_options): Likewise.
27 (sanitize_cpp_opts): Likewise.
28 * c-lex.c (interpret_float): Likewise.
29 * c-format.c (check_format_types): Likewise.
30 * c-common.c (pointer_int_sum): Likewise.
31 (c_sizeof_or_alignof_type): Likewise.
32 (c_add_case_label): Likewise.
33 (c_do_switch_warnings): Likewise.
34 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
35
04b391c1
JM
362012-04-15 Jason Merrill <jason@redhat.com>
37
38 PR c++/52818
39 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
40 (C_STD_NAME): Distinguish between C++98 and C++11.
41
ac868f29
EB
422012-04-11 Eric Botcazou <ebotcazou@adacore.com>
43
44 PR target/52624
45 * c-common.h (uint16_type_node): Rename into...
46 (c_uint16_type_node): ...this.
47 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
48 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
49
fd4116f4
MLI
502012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
51
52 * c-common.c (warn_if_unused_value): Move definition to here.
53 * c-common.h (warn_if_unused_value): Move declaration to here.
54
573ac65e
WB
552012-03-23 William Bader <williambader@hotmail.com>
56
57 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
58
552b8185
JM
592012-03-20 Jason Merrill <jason@redhat.com>
60
61 * c-common.h (enum cxx_dialect): Add cxx1y.
62 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
63 test.
64 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
65 * c-opts.c (c_common_post_options): Likewise.
66 (set_std_cxx1y): New.
67 (c_common_handle_option): Call it.
68 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
69
04398fa8
PC
702012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
71
72 PR c++/14710
73 * c.opt ([Wuseless-cast]): Add.
74
d2a12ae7
RG
752012-03-16 Richard Guenther <rguenther@suse.de>
76
77 * c-pretty-print.c (pp_c_initializer_list): Adjust.
78
a12bf402
MLI
792012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
80
81 PR c++/44783
82 * c.opt (ftemplate-backtrace-limit) Add.
83
5c30094f
RO
842012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
85
86 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
87 handling.
88 * c-pragma.c (handle_pragma_extern_prefix): Remove.
89 (init_pragma): Don't register extern_prefix.
90
21fa2faf
RG
912012-03-12 Richard Guenther <rguenther@suse.de>
92
93 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
94 (builtin_type_for_size): Likewise.
95
e3793c6f
JJ
962012-02-13 Jakub Jelinek <jakub@redhat.com>
97
98 PR c++/52215
99 * c-common.c (sync_resolve_params): Don't decide whether to convert
100 or not based on TYPE_SIZE comparison, convert whenever arg_type
101 is unsigned INTEGER_TYPE.
102
93286335
PC
1032012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
104
105 PR c/52118
106 * c.opt ([Wunused-local-typedefs]): Fix description.
107
7a421706
MS
1082012-01-24 Mike Stump <mikestump@comcast.net>
109
110 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
111 exactly.
112
ba9b1f11
RG
1132012-01-18 Richard Guenther <rguenther@suse.de>
114
115 * c-opts.c (c_common_post_options): Reset LTO flags if
116 we are about to generate a PCH.
117
465406be
PC
1182012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
119
120 PR c++/51777
121 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
122 use pp_unsigned_wide_integer.
123
aee15221
RG
1242012-01-10 Richard Guenther <rguenther@suse.de>
125
126 PR middle-end/51806
127 * c-opts.c (c_common_handle_option): Move -Werror handling
128 to language independent code.
129
5720c0dc
RG
1302012-01-05 Richard Guenther <rguenther@suse.de>
131
132 PR middle-end/51764
133 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
134 from common.opt.
135
73ac190a
PC
1362011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
137
138 PR c++/51316
139 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
140 of array types with an unknown bound.
141
48b0b196
JM
1422011-12-20 Joseph Myers <joseph@codesourcery.com>
143
144 * c-common.c (flag_isoc99): Update comment to refer to C11.
145 (flag_isoc1x): Change to flag_isoc11.
146 * c-common.h (flag_isoc99): Update comment to refer to C11.
147 (flag_isoc1x): Change to flag_isoc11.
148 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
149 C11.
150 * c-opts.c (set_std_c1x): Change to set_std_c11.
151 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
152 Call set_std_c11.
153 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
154 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
155 * c.opt (std=c1x): Change to std=c11. Document as non-draft
156 standard.
157 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
158 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
159 (std=gnu1x): Make alias of std=gnu11.
160
d58d6eb5
JM
1612011-12-19 Jason Merrill <jason@redhat.com>
162
163 PR c++/51228
164 * c-common.c (handle_transparent_union_attribute): Check the first
165 field if the type is complete.
166
b3908fcc
JW
1672011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
168
169 PR libstdc++/51365
170 * c-common.c (RID_IS_FINAL): Add.
171 * c-common.h (RID_IS_FINAL): Add.
172
fea3ca91
IS
1732011-11-30 Iain Sandoe <iains@gcc.gnu.org>
174
175 * c.opt (fgnu-runtime): Provide full description.
176 (fnext-runtime): Likewise.
177 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
178
62bad7cd
AM
1792011-11-28 Andrew MacLeod <amacleod@redhat.com>
180
181 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
182 predefines in one place. Add LOCK_FREE predefines.
183 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
184 new func.
185
c466c4ff
AM
1862011-11-24 Andrew MacLeod <amacleod@redhat.com>
187
188 PR c/51256
189 * c-common.c (get_atomic_generic_size): Check for various error
190 conditions
191 (resolve_overloaded_atomic_exchange,
192 resolve_overloaded_atomic_compare_exchange,
193 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
194 error_mark_node for error conditions.
195
a5952633
RG
1962011-11-08 Richard Guenther <rguenther@suse.de>
197
198 PR middle-end/51010
199 c-family/
200
0a35513e
AH
2012011-11-07 Richard Henderson <rth@redhat.com>
202 Aldy Hernandez <aldyh@redhat.com>
203 Torvald Riegel <triegel@redhat.com>
204
205 Merged from transactional-memory.
206
207 * c-common.c (handle_tm_wrap_attribute,
208 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
209 (struct c_common_reswords): Added __transaction* keywords.
210 (struct c_common_attribute_table): Added transaction* and tm_regparm
211 attributes.
212 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
213 masks.
214 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
215 find_tm_attribute): Declare.
216
6d87092d
JM
2172011-11-07 Jason Merrill <jason@redhat.com>
218
219 PR c++/35688
220 * c-common.c, c-common.h: Revert yesterday's changes.
221
8e7860a1
JM
2222011-11-06 Jason Merrill <jason@redhat.com>
223
224 PR c++/35688
225 * c-common.c (decl_has_visibility_attr): Split out from...
226 (c_determine_visibility): ...here.
227 * c-common.h: Declare it.
228
d19fa6b5
JM
2292011-11-06 Joseph Myers <joseph@codesourcery.com>
230
231 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
232 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
233 type.
234 (check_user_alignment): New. Split out of
235 handle_aligned_attribute. Disallow integer constants with
236 noninteger types. Conditionally allow zero.
237 (handle_aligned_attribute): Use check_user_alignment.
238 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
239
86951993
AM
2402011-11-06 Andrew MacLeod <amacleod@redhat.com>
241 Richard Henderson <rth@redhat.com>
242
243 Merged from cxx-mem-model.
244
245 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
246 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
247 parameters that are the same type size.
248 (get_atomic_generic_size): New. Find size of generic
249 atomic function parameters and do typechecking.
250 (add_atomic_size_parameter): New. Insert size into parameter list.
251 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
252 either __atomic_exchange_n or external library call.
253 (resolve_overloaded_atomic_compare_exchange): Restructure
254 __atomic_compare_exchange to either _n variant or external library call.
255 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
256 __atomic_load_n or an external library call.
257 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
258 __atomic_store_n or an external library call.
259 (resolve_overloaded_builtin): Handle new __atomic builtins.
260
cf9e9959
EB
2612011-11-04 Eric Botcazou <ebotcazou@adacore.com>
262
263 PR c++/50608
264 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
265 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
266 <INDIRECT_REF>: Return the argument.
267 <ARRAY_REF>: Remove special code for negative offset.
268 Call fold_build_pointer_plus instead of size_binop.
269 (fold_offsetof): Remove STOP_REF argument and adjust.
270 * c-common.h (fold_offsetof_1): Declare.
271 (fold_offsetof): Remove STOP_REF argument.
272
25339f10
JM
2732011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
274
275 PR c++/50810
276 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
277 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
278 Wnarrowing for C++0x and C++98.
279 * c.opt ([Wnarrowing]): Update.
280
89401152
PC
2812011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
282
283 PR c++/44277
284 * c.opt: Add Wzero-as-null-pointer-constant.
285
97e3ad20
JM
2862011-10-31 Jason Merrill <jason@redhat.com>
287
15694fdd
JM
288 * c.opt (-fdeduce-init-list): Off by default.
289
97e3ad20
JM
290 PR c++/50920
291 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
292 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
293 and -Wc++11-compat.
294 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
295
fb9120e3
RAV
2962011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
297
298 PR c++/30066
299 * c.opt (fvisibility-inlines-hidden): Description change.
300
3ce4f9e4
ESR
3012011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
302
303 Implement C++11 user-defined literals.
304 * c-common.c (build_userdef_literal): New.
305 * c-common.def: New tree code.
306 * c-common.h (tree_userdef_literal): New tree struct and accessors.
307 * c-lex.c (interpret_float): Add suffix parm.
308 (c_lex_with_flags): Build literal tokens.
309
5f53c243
PC
3102011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
311
312 PR c++/50841
313 Revert:
314 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
315
316 PR c++/50810
317 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
318 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
319 Wnarrowing for C++0x and C++98.
320 * c.opt ([Wnarrowing]): Update.
321
263734e1
PC
3222011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
323
324 PR c++/50810
325 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
326 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
327 Wnarrowing for C++0x and C++98.
328 * c.opt ([Wnarrowing]): Update.
329
d2e312d7
PC
3302011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
331
332 PR c++/45385
333 * c-common.c (conversion_warning): Remove code looking for
334 artificial operands.
335
d17687f6
DS
3362011-10-18 Dodji Seketeli <dodji@redhat.com>
337
338 PR bootstrap/50760
339 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
340 !NO_IMPLICIT_EXTERN_C.
341
fc8396e9
PC
3422011-10-17 Michael Spertus <mike_spertus@symantec.com>
343
344 * c-common.c (c_common_reswords): Add __bases,
345 __direct_bases.
346 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
347
3482011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
349
350 PR c++/50757
351 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
352
847e697a
TT
3532011-10-15 Tom Tromey <tromey@redhat.com>
354 Dodji Seketeli <dodji@redhat.com>
355
356 * c.opt (fdebug-cpp): New option.
357 * c-opts.c (c_common_handle_option): Handle the option.
358 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
359 output stream in parameter. Factorized from ...
360 (maybe_print_line): ... this. Dump location debug information when
361 -fdebug-cpp is in effect.
362 (print_line_1): New static function. Takes an output stream in
363 parameter. Factorized from ...
364 (print_line): ... here. Dump location information when -fdebug-cpp
365 is in effect.
366 (scan_translation_unit): Dump location information when
367 -fdebug-cpp is in effect.
368
92582b75
TT
3692011-10-15 Tom Tromey <tromey@redhat.com>
370 Dodji Seketeli <dodji@redhat.com>
371
372 * c.opt (ftrack-macro-expansion): New option. Handle it with and
373 without argument.
374 * c-opts.c (c_common_handle_option)<case
375 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
376 cases. Handle -ftrack-macro-expansion with and without argument.
377
46427374
TT
3782011-10-15 Tom Tromey <tromey@redhat.com>
379 Dodji Seketeli <dodji@redhat.com>
380
381 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
382 (print_line, cb_define, do_line_change): Adjust to avoid touching
383 the internals of struct line_map. Use the public API instead.
384 * c-pch.c (c_common_read_pch): Likewise.
385 * c-lex.c (fe_file_change): Likewise.
386
fc8396e9
PC
3872011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
388
389 PR c++/17212
390 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
391
3922011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
393
394 PR c++/33067
395 * c-pretty-print.c (pp_c_floating_constant): Output
396 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
397
e79983f4
MM
3982011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
399
400 * c-common.c (def_builtin_1): Delete old interface with two
401 parallel arrays to hold standard builtin declarations, and replace
402 it with a function based interface that can support creating
403 builtins on the fly in the future. Change all uses, and poison
404 the old names. Make sure 0 is not a legitimate builtin index.
405 * c-omp.c (c_finish_omp_barrier): Ditto.
406 (c_finish_omp_taskwait): Ditto.
407 (c_finish_omp_flush): Ditto.
408
6637388f
TG
4092011-10-11 Tristan Gingold <gingold@adacore.com>
410
411 * c.opt: (fallow-parameterless-variadic-functions): New.
412
3797cb21
DS
4132011-09-08 Dodji Seketeli <dodji@redhat.com>
414
415 PR c++/33255 - Support -Wunused-local-typedefs warning
416 * c-common.h (struct c_language_function::local_typedefs): New
417 field.
418 (record_locally_defined_typedef, maybe_record_typedef_use)
419 (maybe_warn_unused_local_typedefs): Declare new functions.
420 * c-common.c (record_locally_defined_typedef)
421 (maybe_record_typedef_use)
422 (maybe_warn_unused_local_typedefs): Define new functions.
423 * c.opt: Declare new -Wunused-local-typedefs flag.
424
693ddb1b
EB
4252011-09-06 Eric Botcazou <ebotcazou@adacore.com>
426
427 PR middle-end/50266
428 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
429 computations.
430
830c740f
RG
4312011-09-05 Richard Guenther <rguenther@suse.de>
432
433 * c-common.c (complete_array_type): Use ssize_int (-1) instead
434 of integer_minus_one_node for empty array upper bounds.
435
892a371f
DS
4362011-08-28 Dodji Seketeli <dodji@redhat.com>
437
438 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
439 it's the first time it's being called on this main TU.
440
0e3fdb48
RB
4412011-08-24 Richard Guenther <rguenther@suse.de>
442
443 PR c/49396
444 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
445
4462011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
447
448 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
449 defined in cpp_init_builtins and c_cpp_builtins.
450
d4a83c10
JM
4512011-08-19 Joseph Myers <joseph@codesourcery.com>
452
453 * c-common.c (c_common_reswords): Add __builtin_complex.
454 * c-common.h (RID_BUILTIN_COMPLEX): New.
455
bbceee64
JM
4562011-08-18 Joseph Myers <joseph@codesourcery.com>
457
458 * c-common.c (c_common_reswords): Add _Noreturn.
459 (keyword_is_function_specifier): Handle RID_NORETURN.
460 * c-common.h (RID_NORETURN): New.
461
0e3a99ae
AS
4622011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
463
464 * c-common.c (unsafe_conversion_p): New function. Check if it is
465 unsafe to convert an expression to the type.
466 (conversion_warning): Adjust, use unsafe_conversion_p.
467 * c-common.h (unsafe_conversion_p): New function declaration.
468
20906c66
JJ
4692011-08-02 Jakub Jelinek <jakub@redhat.com>
470
471 * c-common.h (c_finish_omp_atomic): Adjust prototype.
472 (c_finish_omp_taskyield): New prototype.
473 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
474 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
475 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
476 or RHS1 have side-effects, evaluate those too in the right spot,
477 if it is a decl and LHS is also a decl, error out if they
478 aren't the same.
479 (c_finish_omp_taskyield): New function.
480 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
481 * c-pragma.c (omp_pragmas): Add taskyield.
482 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
483 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
484 PRAGMA_OMP_CLAUSE_MERGEABLE.
485
770e5a2e
DS
4862011-07-25 Dodji Seketeli <dodji@redhat.com>
487
488 * c-common.h (set_underlying_type): Remove parm name from
489 declaration.
490
1baae426
RG
4912011-07-25 Romain Geissler <romain.geissler@gmail.com>
492
493 * c-pretty-print.h: Search c-common.h in c-family.
494
fcb21722
JM
4952011-07-22 Jason Merrill <jason@redhat.com>
496
76f86d00
JM
497 PR c++/49793
498 * c.opt (Wnarrowing): New.
499
3a636414
JM
500 PR c++/30112
501 * c-common.h: Declare c_linkage_bindings.
502 * c-pragma.c (handle_pragma_redefine_extname): Use it.
503
fcb21722
JM
504 PR c++/49813
505 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
506 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
507 as flag_isoc99 for 'restrict'.
508 (pp_c_specifier_qualifier_list): Likewise for _Complex.
509
02614448
ILT
5102011-07-21 Ian Lance Taylor <iant@google.com>
511
512 PR middle-end/49705
513 * c-common.c (c_disable_warnings): New static function.
514 (c_enable_warnings): New static function.
515 (c_fully_fold_internal): Change local unused_p to bool. Call
516 c_disable_warnings and c_enable_warnings rather than change
517 c_inhibit_evaluation_warnings.
518
34429675
JM
5192011-07-20 Jason Merrill <jason@redhat.com>
520
521 PR c++/6709 (DR 743)
522 PR c++/42603 (DR 950)
523 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
524 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
525 (CPP_DECLTYPE): New.
526 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
527
5d49b6a7
RG
5282011-07-19 Richard Guenther <rguenther@suse.de>
529
530 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
531 * c-omp.c (c_finish_omp_for): Likewise.
532
e84a58ff
EB
5332011-07-12 Eric Botcazou <ebotcazou@adacore.com>
534
535 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
536 body on the next line.
537
329af3c7
JM
5382011-07-08 Jason Merrill <jason@redhat.com>
539
4063e61b
JM
540 PR c++/45437
541 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
542
329af3c7
JM
543 PR c++/49673
544 * c-common.c (c_apply_type_quals_to_decl): Don't check
545 TYPE_NEEDS_CONSTRUCTING.
546
1a072294
RG
5472011-07-06 Richard Guenther <rguenther@suse.de>
548
549 * c-common.c (c_common_nodes_and_builtins):
550 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
551
fce5dddd
RG
5522011-07-05 Richard Guenther <rguenther@suse.de>
553
554 * c-common.c (c_common_nodes_and_builtins): Build all common
555 tree nodes first.
556
45d439ac
JJ
5572011-06-27 Jakub Jelinek <jakub@redhat.com>
558
56300785
JJ
559 * c-common.h (c_tree_chain_next): New static inline function.
560
45d439ac
JJ
561 * c-common.c (check_builtin_function_arguments): Handle
562 BUILT_IN_ASSUME_ALIGNED.
563
e0a8ecf2
AM
5642011-06-21 Andrew MacLeod <amacleod@redhat.com>
565
566 * c-common.c: Add sync_ or SYNC__ to builtin names.
567 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
568
5692011-06-20 Pierre Vittet <piervit@pvittet.com>
570
571 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
572 handler.
573 (gen_pragma_handler): New union.
574 (internal_pragma_handler): New type.
575 (c_register_pragma_with_data)
576 (c_register_pragma_with_expansion_and_data): New functions.
577
578 * c-pragma.c (registered_pragmas, c_register_pragma_1)
579 (c_register_pragma, c_register_pragma_with_expansion)
580 (c_invoke_pragma_handler): Changed to work with
581 internal_pragma_handler.
582 (c_register_pragma_with_data)
583 (c_register_pragma_with_expansion_and_data): New functions.
584
677f3fa8
JM
5852011-06-14 Joseph Myers <joseph@codesourcery.com>
586
587 * c-common.c: Include common/common-target.h.
588 (handle_section_attribute): Use
589 targetm_common.have_named_sections.
590 * c-cppbuiltin.c: Include common/common-target.h.
591 (c_cpp_builtins): Use targetm_common.except_unwind_info.
592
d7fc8c14
RG
5932011-06-10 Richard Guenther <rguenther@suse.de>
594
595 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
596 to print a IDENTIFIER_NODE.
597
10e48e39
RO
5982011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
599 Joseph Myers <joseph@codesourcery.com>
600
601 * c.opt (fbuilding-libgcc): New option.
602 * c-cppbuiltin.c (c_cpp_builtins): Define
603 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
604
6976ae51
JM
6052011-06-07 Jason Merrill <jason@redhat.com>
606
3ff60975
JM
607 * c-common.c (max_tinst_depth): Lower default to 900.
608
6976ae51
JM
609 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
610
009db074
RG
6112011-06-07 Richard Guenther <rguenther@suse.de>
612
613 * c-common.c (c_common_nodes_and_builtins): Do not set
614 size_type_node or call set_sizetype.
615
b4592b92
DS
6162011-06-07 Dodji Seketeli <dodji@redhat.com>
617
618 PR debug/49130
619 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
620 type when using pointer comparison to compare types.
621
014ab419
JW
6222011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
623
624 * c.opt: Add -Wdelete-non-virtual-dtor.
625 * c-opts.c (c_common_handle_option): Include it in -Wall.
626
4f60111f
NF
6272011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
628
629 PR bootstrap/49190
630
631 Revert:
632 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
633
634 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
635 not tree_common.
636
4cc4f2f4
JJ
6372011-05-27 Jakub Jelinek <jakub@redhat.com>
638
639 PR c++/49165
640 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
641 C++ don't call c_common_truthvalue_conversion on void type arms.
642
38e01f9e
NF
6432011-05-27 Nathan Froyd <froydnj@codesourcery.com>
644
645 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
646 (stmt_list_stack): Define.
647 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
648 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
649
92e948a8
NF
6502011-05-26 Nathan Froyd <froydnj@codesourcery.com>
651
652 * c-common.c (warning_candidate_p): Check for BLOCKs.
653
a2fc3e63
NF
6542011-05-26 Nathan Froyd <froydnj@codesourcery.com>
655
656 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
657 not tree_common.
658
0957c029
JJ
6592011-05-25 Jakub Jelinek <jakub@redhat.com>
660
661 * c-common.c (def_fn_type): Remove extra va_end.
662
828fb3ba
JM
6632011-05-23 Jason Merrill <jason@redhat.com>
664
665 PR c++/48106
666 * c-common.c (c_common_get_narrower): New.
667 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
668
dde05067
NF
6692011-05-23 Nathan Froyd <froydnj@codesourcery.com>
670
671 * c-common.h (check_function_arguments): Tweak prototype of
672 check_function_arguments.
673 * c-common.c (check_function_arguments): Likewise. Adjust
674 calls to check_function_nonnull, check_function_format, and
675 check_function_sentinel.
676 (check_function_sentinel): Take a FUNCTION_TYPE rather than
677 separate attributes and typelist arguments. Use
678 FOREACH_FUNCTION_ARGS to iterate over argument types.
679
3c0d13bf
PC
6802011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
681
682 * c-common.c (c_common_reswords): Reorder.
683 * c-common.h (rid): Likewise.
684
8242dd04
NF
6852011-05-10 Nathan Froyd <froydnj@codesourcery.com>
686
687 * c-common.c (def_fn_type): Don't call build_function_type, call
688 build_function_type_array or build_varargs_function_type_array
689 instead.
690 (c_common_nodes_and_builtins): Likewise.
691
3d528853
NF
6922011-05-05 Nathan Froyd <froydnj@codesourcery.com>
693
694 * c-common.c (c_add_case_label): Omit the loc argument to
695 build_case_label.
696 * c-common.h (build_case_label): Remove.
697 * c-semantics.c (build_case_label): Remove.
698
a04a722b
JM
6992011-05-05 Joseph Myers <joseph@codesourcery.com>
700
701 * c-objc.h (objc_start_method_definition): Update prototype.
702 * stub-objc.c (objc_start_method_definition): Add extra parameter.
703
e19a18d4
NF
7042011-05-04 Nathan Froyd <froydnj@codesourcery.com>
705
706 * c-common.c (check_main_parameter_types): Reindent. Don't use
707 TYPE_ARG_TYPES directly.
708 (handle_nonnull_attribute): Likewise.
709 (sync_resolve_params): Likewise.
710 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
711 to check_format_string.
712 (handle_format_attribute): Likewise.
713 (check_format_string): Take a function type to examine instead of
714 a type list. Use a function_arg_iterator to step through argument
715 types.
716
c62c040f
RG
7172011-05-04 Richard Guenther <rguenther@suse.de>
718
719 * c-common.c (fix_string_type): Use size_int for index type bounds.
720 (start_fname_decls): Do not pass NULL to build_int_cst.
721 (c_init_attributes): Likewise.
722 * c-lex.c (c_lex_with_flags): Likewise.
723
c12ff9d8
JM
7242011-04-27 Jason Merrill <jason@redhat.com>
725
726 * c-common.c (make_tree_vector_from_list): New.
727 * c-common.h: Declare it.
728
304dfbe3
RG
7292011-04-26 Richard Guenther <rguenther@suse.de>
730
731 PR preprocessor/48248
732 * c-ppoutput.c (maybe_print_line): Always optimize newlines
733 for output size with -P.
734
3c0d13bf
PC
7352011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
736
737 * c-common.c (struct c_common_resword): Add __underlying_type.
738 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
739
04695783
JM
7402011-04-20 Jim Meyering <meyering@redhat.com>
741
742 * c-format.c (init_dollar_format_checking): Remove useless
743 if-before-free.
744
0dc33c3c
NP
7452011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
746
747 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 748 (objc_detect_field_duplicates): New.
0dc33c3c 749 * stub-objc.c: Likewise.
3c0d13bf 750
c59633d9
NP
7512011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
752
753 * stub-objc.c (objc_declare_protocols): Renamed to
754 objc_declare_protocol.
755 * c-objc.h: Likewise.
3c0d13bf 756
32dabdaf
NP
7572011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
758
759 * stub-objc.c (objc_declare_class): Updated argument name.
760
81f653d6
NF
7612011-04-12 Nathan Froyd <froydnj@codesourcery.com>
762
763 * c-common.h (c_common_init_ts): Declare.
764 * c-common.c (c_common_init_ts): Define.
765
eb345401
NP
7662011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
767
768 * c-objc.h (objc_build_message_expr): Updated prototype.
769 * stub-objc.c (objc_build_message_expr): Likewise.
770
a358e188
MJ
7712011-04-12 Martin Jambor <mjambor@suse.cz>
772
773 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
774 of cgraph_node.
775
e6313a78
RG
7762011-04-11 Richard Guenther <rguenther@suse.de>
777
778 * c-common.c (complete_array_type): Build a range type of
779 proper type.
780
dcf0c47e
NF
7812011-04-08 Nathan Froyd <froydnj@codesourcery.com>
782
783 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
784 (handle_type_generic_attribute): Likewise.
785
1ee44b26
JM
7862011-04-07 Jason Merrill <jason@redhat.com>
787
788 PR c++/48450
789 * c-common.c (c_common_truthvalue_conversion): Don't ignore
790 conversion from C++0x scoped enum.
791
acce4e77
JM
7922011-04-06 Joseph Myers <joseph@codesourcery.com>
793
794 * c-target-def.h: New file.
795 * c-target.def: New file.
796 * c-target.h: New file.
797 * c-common.c (targetcm): Don't define here.
798 * c-common.h (default_handle_c_option): Declare.
799 * c-format.c: Include c-target.h instead of target.h.
800 * c-opts.c: Include c-target.h instead of target.h. Explicitly
801 include tm.h.
802 (default_handle_c_option): Move from targhooks.c.
803
e2eefb55
JJ
8042011-03-29 Jakub Jelinek <jakub@redhat.com>
805
806 PR preprocessor/48248
807 * c-ppoutput.c (print): Add src_file field.
808 (init_pp_output): Initialize it.
809 (maybe_print_line): Don't optimize by adding up to 8 newlines
810 if map->to_file and print.src_file are different file.
811 (print_line): Update print.src_file.
812
ba78087b
KT
8132011-03-25 Kai Tietz <ktietz@redhat.com>
814
815 * c-ada-spec.c (compare_comment): Use filename_cmp
816 instead of strcmp for filename.
817
0edf1bb2
JL
8182011-03-25 Jeff Law <law@redhat.com>
819
820 * c-family/c-common.c (def_fn_type): Add missing va_end.
821
c7dc8804
JM
8222011-03-25 Jason Merrill <jason@redhat.com>
823
824 * c.opt: Add -std=c++03.
825
d1d879b1
EB
8262011-03-22 Eric Botcazou <ebotcazou@adacore.com>
827
828 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
829
62d784f7
KT
8302011-03-17 Kai Tietz
831
832 PR target/12171
5050afdf
KT
833 * c-pretty-print.c (pp_c_specifier_qualifier_list):
834 Display allowed attributes for function pointer types.
835 (pp_c_attributes_display): New function to display
836 attributes having affects_type_identity flag set to true.
837 * c-pretty-print.h (pp_c_attributes_display): New prototype.
838
62d784f7
KT
839 * c-common.c (c_common_attribute_table):
840 Add new element.
841 (c_common_format_attribute_table): Likewise.
842
82d37118
JM
8432011-03-18 Jason Merrill <jason@redhat.com>
844
49a000c3
JM
845 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
846 * c-common.h: Don't declare it here.
847 * c-common.c: Or define it here.
848 * c-opts.c (c_common_handle_option): Or set it here.
849
82d37118
JM
850 PR c++/35315
851 * c-common.c (handle_transparent_union_attribute): Don't
852 make a duplicate type in C++.
853
17bc631c
JM
8542011-03-15 Jason Merrill <jason@redhat.com>
855
856 * c-common.c (max_constexpr_depth): New.
857 * c-common.h: Declare it.
858 * c-opts.c (c_common_handle_option): Set it.
859 * c.opt (fconstexpr-depth): New option.
860
1b9b91a6
JM
8612011-03-11 Jason Merrill <jason@redhat.com>
862
f231b5ff
JM
863 * c-common.c (attribute_takes_identifier_p): Add missing const.
864
1b9b91a6
JM
865 PR c++/46803
866 * c-common.c (attribute_takes_identifier_p): Assume that an
867 unknown attribute takes an identifier.
868
a19e4d44
NF
8692011-03-07 Nathan Froyd <froydnj@codesourcery.com>
870
871 PR c/47786
872 * c-common.c (c_type_hash): Call list_length instead of iterating
873 through DECL_CHAIN. Rename 'i' to 'n_elements'.
874
982d62f6
JJ
8752011-02-19 Jakub Jelinek <jakub@redhat.com>
876
877 PR c/47809
878 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
879
0a256240
NP
8802011-02-17 Iain Sandoe <iains@gcc.gnu.org>
881
882 * c.opt (fobjc-abi-version=) New.
883 (fobjc-nilcheck): New.
884
ba9e6dd5
NF
8852011-02-03 Nathan Froyd <froydnj@codesourcery.com>
886
887 PR c++/46890
888 * c-common.h (keyword_is_decl_specifier): Declare.
889 * c-common.c (keyword_is_decl_specifier): Define.
890 (keyword_is_function_specifier): New function.
891
7273813a
JJ
8922011-01-26 Jakub Jelinek <jakub@redhat.com>
893
894 PR c/47473
895 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
896 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
897 REAL_TYPE.
898
908ef79b
AC
8992011-01-26 Arnaud Charlet <charlet@adacore.com>
900
901 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
902
237e9384
JJ
9032011-01-26 Jakub Jelinek <jakub@redhat.com>
904
905 PR pch/47430
906 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
907 after init_c_lex if pch_file is set.
908
47ea1edf
DK
9092011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
910
d4dba752 911 PR c++/43601
47ea1edf
DK
912 * c.opt (-fkeep-inline-dllexport): New switch.
913
2aa9c6ae
RG
9142011-01-12 Richard Guenther <rguenther@suse.de>
915
916 PR middle-end/32511
917 * c-common.c (handle_weak_attribute): Warn instead of error
918 on declaring an inline function weak.
919
7bd11157
TT
9202011-01-05 Tom Tromey <tromey@redhat.com>
921
922 * c-common.h (lvalue_error): Update.
923 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
924 not error.
925
0e66e494
NP
9262010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
927
b4f588c4
NP
928 PR objc/47075
929 * c-objc.h (objc_finish_message_expr): Added argument to
930 prototype.
931
f4da8dce
NF
9322010-12-22 Nathan Froyd <froydnj@codesourcery.com>
933
934 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
935 Use prototype_p.
936
46270f14
NP
9372010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
938
939 * c-objc.h (objc_maybe_warn_exceptions): New.
940 * stub-objc.c (objc_maybe_warn_exceptions): New.
941
4816c593
NF
9422010-12-10 Nathan Froyd <froydnj@codesourcery.com>
943
944 * c-common.h (readonly_error): Declare.
945 * c-common.c (readonly_error): Define.
946
7a6daeb0
NF
9472010-12-09 Nathan Froyd <froydnj@codesourcery.com>
948
949 * c-common.h (invalid_indirection_error): Declare.
950 * c-common.c (invalid_indirection_error): Define.
951
892f6119
RG
9522010-12-03 Richard Guenther <rguenther@suse.de>
953
954 PR c/46745
955 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
956 (pp_c_unary_expression): Likewise.
957 (pp_c_expression): Likewise.
958
6c39e757
NP
9592010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
960
961 * c-common.h (objc_finish_function): New.
962 (objc_non_volatilized_type): Removed.
963 (objc_type_quals_match): Removed.
964 * stub-objc.c (objc_finish_function): New.
965 (objc_non_volatilized_type): Removed.
966 (objc_type_quals_match): Removed.
967
7c475d11
JM
9682010-11-30 Joseph Myers <joseph@codesourcery.com>
969
970 * c-common.h (parse_optimize_options): Declare.
971 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
972 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
973
71f3e391
JM
9742010-11-29 Joseph Myers <joseph@codesourcery.com>
975
976 * c-opts.c (check_deps_environment_vars): Use getenv instead of
977 GET_ENVIRONMENT.
978 * c-pch.c (O_BINARY): Don't define here.
979 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
980
d5fabb58
JM
9812010-11-25 Joseph Myers <joseph@codesourcery.com>
982
983 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
984 targetm.except_unwind_info.
985
299404a1
JM
9862010-11-23 Joseph Myers <joseph@codesourcery.com>
987
988 * c-opts.c (c_common_handle_option): Pass location to
989 set_struct_debug_option.
990
c98cd5bf
JM
9912010-11-23 Joseph Myers <joseph@codesourcery.com>
992
993 * c-common.c (visibility_options): Move from ../opts.c.
994 * c-common.h (struct visibility_flags, visibility_options):
995 Declare here.
996 * c-opts.c (finish_options): Rename to c_finish_options.
997 (c_common_init): Update call to finish_options.
998
a9546771
NP
9992010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
1000
1001 PR objc/34033
1002 * c-lex.c (lex_string): Check that each string in an Objective-C
1003 string concat sequence starts with either one or zero '@', and
1004 that there are no spurious '@' signs at the end.
1005
24a57808
JM
10062010-11-20 Joseph Myers <joseph@codesourcery.com>
1007
1008 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
1009 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
1010 HANDLE_PRAGMA_VISIBILITY.
1011 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
1012 HANDLE_PRAGMA_VISIBILITY): Don't define.
1013 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
1014
a9aa2c3a
NF
10152010-11-20 Nathan Froyd <froydnj@codesourcery.com>
1016
1017 PR c++/16189
1018 PR c++/36888
1019 PR c++/45331
1020 * c-common.h (keyword_begins_type_specifier): Declare.
1021 (keyword_is_storage_class_specifier): Declare.
1022 (keyword_is_type_qualifier): Declare.
1023 * c-common.c (keyword_begins_type_specifier): New function.
1024 (keyword_is_storage_class_specifier): New function.
1025 (keyword_is_type_qualifier): Declare.
1026
5386338c
JM
10272010-11-19 Joseph Myers <joseph@codesourcery.com>
1028
1029 PR c/46547
1030 * c-common.c (in_late_binary_op): Define.
1031 (c_common_truthvalue_conversion): Check in_late_binary_op before
1032 calling c_save_expr.
1033 * c-common.h (in_late_binary_op): Declare.
1034
69ccdddb
JM
10352010-11-19 Joseph Myers <joseph@codesourcery.com>
1036
1037 * c-opts.c (c_common_handle_option): Update calls to
1038 set_struct_debug_option.
1039
6b192a09
NP
10402010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
1041
1042 * c-common.h (objc_declare_protocols): Added additional argument.
1043 * stub-objc.c (objc_declare_protocol): Same change.
1044
fb52b50a
NF
10452010-11-18 Nathan Froyd <froydnj@codesourcery.com>
1046
1047 PR c/33193
1048 * c-common.h (build_real_imag_expr): Declare.
1049 * c-semantics.c (build_real_imag_expr): Define.
1050
b37421c6
JM
10512010-11-17 Joseph Myers <joseph@codesourcery.com>
1052
1053 * c-opts.c (c_common_parse_file): Take no arguments.
1054 * c-common.h (c_common_parse_file): Update prototype.
1055
07078664
JJ
10562010-11-16 Jakub Jelinek <jakub@redhat.com>
1057
1058 PR c++/46401
1059 * c-common.c (warning_candidate_p): Don't track non-const calls
1060 or STRING_CSTs.
1061
c6a13190
ILT
10622010-11-15 Ian Lance Taylor <iant@google.com>
1063
1064 * c-lex.c (init_c_lex): Set macro debug callbacks if
1065 flag_dump_go_spec is set.
1066
925e8657
NP
10672010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
1068
1069 * c-common.h (objc_build_incr_expr_for_property_ref): New.
1070 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
1071
bb0a9581
NF
10722010-11-15 Nathan Froyd <froydnj@codesourcery.com>
1073
1074 PR preprocessor/45038
1075 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
1076 dialects.
1077
c5fa0890
JM
10782010-11-12 Joseph Myers <joseph@codesourcery.com>
1079
1080 * c-common.h (c_family_lang_mask): Declare.
1081 * c-opts.c (c_family_lang_mask): Make extern.
1082 * c-pragma.c (handle_pragma_diagnostic): Use
1083 control_warning_option.
1084
a4d8c676
JM
10852010-11-12 Joseph Myers <joseph@codesourcery.com>
1086
1087 * c-common.c (parse_optimize_options): Update call to
1088 decode_options.
1089 * c-common.h (c_common_handle_option): Update prototype.
1090 * c-opts.c (c_common_handle_option): Take location_t parameter and
1091 pass it to other functions.
1092
f954bd2c
JM
10932010-11-11 Joseph Myers <joseph@codesourcery.com>
1094
1095 * c-opts.c (warning_as_error_callback): Remove.
1096 (c_common_initialize_diagnostics): Don't call
1097 register_warning_as_error_callback.
1098 (c_common_handle_option): Handle -Werror=normalized= here.
1099
d8a07487
JM
11002010-11-10 Joseph Myers <joseph@codesourcery.com>
1101
1102 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
1103 in diagnostic.
1104 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
1105 letter.
1106 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
1107 Remove trailing '.' from diagnostics.
1108 * c.opt (Wwrite-strings_: Avoid '`' in help text.
1109
d5478783
JM
11102010-11-10 Joseph Myers <joseph@codesourcery.com>
1111
1112 * c-common.c (parse_optimize_options): Pass global_dc to
1113 decode_options.
1114 * c-opts.c (c_common_handle_option): Pass &global_options to
1115 set_Wstrict_aliasing.
1116 * c.opt (v): Don't mark Common or document here.
1117
91ebb981
IS
11182010-11-06 Iain Sandoe <iains@gcc.gnu.org>
1119
1120 PR target/44981
1121 * c-format.c (format_type): New type gcc_objc_string_format_type.
1122 (valid_stringptr_type_p): New.
1123 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
1124 (check_format_string): Pass expected type, use
1125 valid_stringptr_type_p (), check that the format string types are
1126 consistent with the format specification.
1127 (decode_format_attr): Warn if NSString is used outside objective-c.
1128 (format_types_orig): Add NSString.
1129 (format_name): New.
1130 (format_flags): New.
1131 (check_format_arg): Handle format strings requiring an external parser.
1132 first_target_format_type: New variable.
1133 (handle_format_attribute): Set up first_target_format_type, pass the
1134 expected format arg string type to check_format_string().
1135 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
1136 * stub-objc.c (objc_string_ref_type_p): New.
1137 (objc_check_format_arg): New.
1138
bede2adc
NP
11392010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
1140
1141 Fixed using the Objective-C 2.0 dot-syntax with class names.
1142 * c-common.h (objc_build_class_component_ref): New.
1143 * stub-objc.c (objc_build_class_component_ref): New.
1144
9a179d01
NP
11452010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1146
1147 * c.opt (Wproperty-assign-default): New option.
1148
22d8d616
NP
11492010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1150
1151 Implemented -fobjc-std=objc1 flag.
1152 * c.opt (fobjc-std=objc1): New option.
1153
2debdb4f
NP
11542010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
1155
1156 Implemented format and noreturn attributes for Objective-C methods.
1157 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
1158 attribute for Objective-C methods.
1159
ec52b111
JM
11602010-10-31 Jason Merrill <jason@redhat.com>
1161
1162 * c-common.c (conversion_warning, warn_for_collisions_1): Use
1163 EXPR_LOC_OR_HERE.
1164
46a88c12
NP
11652010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
1166
1167 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
1168 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
1169 (objc_add_property_declaration): Removed arguments for copies and
1170 ivar.
1171 (objc_build_getter_call): Renamed to
1172 objc_maybe_build_component_ref.
1173 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1174 (objc_is_property_ref): New.
1175 * c-common.c (c_common_reswords): Removed copies and ivar.
1176 * stub-objc.c (objc_add_property_declaration): Removed arguments
1177 for copies and ivar.
1178 (objc_build_getter_call): Renamed to
1179 objc_maybe_build_component_ref.
1180 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1181 (objc_is_property_ref): New.
1182
1e4bf85b
AC
11832010-10-29 Arnaud Charlet <charlet@adacore.com>
1184 Matthew Gingell <gingell@adacore.com>
1185
1186 * c-ada-spec.c (separate_class_package): New function.
1187 (pp_ada_tree_identifier): Prefix references to C++ classes with the
1188 name of their enclosing package.
1189 (print_ada_declaration): Use separate_class_package.
1190
81f0bab2
JM
11912010-10-27 Jason Merrill <jason@redhat.com>
1192
2b08f2c5
JM
1193 * c-common.c (c_common_reswords): Add __is_literal_type.
1194 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
1195
81f0bab2
JM
1196 * c-common.c (check_case_value): Remove special C++ code.
1197
200290f2
NP
11982010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1199
1200 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
1201 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
1202 and RID_LAST_PATTR.
1203 (objc_add_property_declaration): Added additional arguments.
1204 (objc_property_attribute_kind): Removed.
1205 (objc_set_property_attr): Removed.
1206 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
1207 copy and nonatomic.
1208 * stub-objc.c (objc_add_property_declaration): Added additional
1209 arguments.
1210 (objc_set_property_attr): Removed.
1211
f614132b
NP
12122010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1213
1214 * c-common.h (objc_add_property_variable): Renamed to
1215 objc_add_property_declaration. Added location argument.
1216 * stub-objc.c (objc_add_property_variable): Same change.
1217
b8a18805
NP
12182010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
1219
1220 * c-common.h (objc_maybe_printable_name): New.
1221 * stub-objc.c (objc_maybe_printable_name): New.
1222
30cd1c5d
AS
12232010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1224 Andrew Pinski <pinskia@gmail.com>
1225
1226 * c-common.h (c_common_mark_addressable_vec): Declare.
1227 * c-common.c (c_common_mark_addressable_vec): New function.
1228
249a82c4
NP
12292010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1230
1231 * c-common.h (objc_set_method_type): Removed.
1232 (objc_add_method_declaration): Added boolean argument.
1233 (objc_start_method_definition): Same change.
1234 (objc_build_method_signature): Same change.
1235 * stub-objc.c (objc_set_method_type): Removed.
1236 (objc_add_method_declaration): Added boolean argument.
1237 (objc_start_method_definition): Same change.
1238 (objc_build_method_signature): Same change.
1239
977e30bc
NP
12402010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1241
1242 * c-common.h (finish_file): Removed.
1243 (objc_write_global_declarations): New.
1244 * c-opts.c (c_common_parse_file): Do not call finish_file.
1245 * stub-objc.c (objc_write_global_declarations): New.
1246
da57d1b9
NP
12472010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1248
1249 Implemented parsing @synthesize and @dynamic for
1250 Objective-C/Objective-C++.
1251 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
1252 (objc_add_synthesize_declaration): New.
1253 (objc_add_dynamic_declaration): New.
1254 * c-common.c (c_common_reswords): Add synthesize and dynamic.
1255 * stub-objc.c (objc_add_synthesize_declaration): New.
1256 (objc_add_dynamic_declaration): New.
1257
0069111f
MM
12582010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1259
1260 PR target/46041
1261 * c-cppbuiltin.c (mode_has_fma): Move function here from
1262 builtins.c. Don't use the fma optab, instead just use the
1263 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
1264 using -save-temps.
1265
e426b47b
NP
12662010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1267
1268 Merge from 'apple/trunk' branch on FSF servers.
0069111f 1269
e426b47b
NP
1270 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
1271
1272 Radar 4330422
1273 * c-common.h (objc_non_volatilized_type): New declaration
1274 * stub-objc.c (objc_non_volatilized_type): New stub.
1275
90fbfdc3
NP
12762010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
1277
e426b47b 1278 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
1279
1280 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
1281
1282 Radar 4133425
1283 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 1284 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 1285
c37d8c30
IS
12862010-10-17 Iain Sandoe <iains@gcc.gnu.org>
1287
1288 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
1289 * c-common.h (enum rid): Add RID_AT_PACKAGE.
1290 (objc_ivar_visibility_kind): New enum.
1291 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 1292 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
1293 visibility enum.
1294
1b1562a5
MM
12952010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1296
1297 * c-cppbuiltin.c (builtin_define_float_constants): Emit
1298 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
1299 has the appropriate fma builtins.
1300 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
1301
668ea4b1
IS
13022010-10-14 Iain Sandoe <iains@gcc.gnu.org>
1303
1b1562a5 1304 merge from FSF apple 'trunk' branch.
668ea4b1 1305 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 1306
668ea4b1
IS
1307 Radars 4436866, 4505126, 4506903, 4517826
1308 * c-common.c (c_common_resword): Define @property and its attributes.
1309 * c-common.h: Define property attribute enum entries.
1310 (OBJC_IS_PATTR_KEYWORD): New.
1311 (objc_property_attribute_kind): New enum.
1312 Declare objc_set_property_attr (), objc_add_property_variable (),
1313 objc_build_getter_call () and objc_build_setter_call ().
1314 * stub-objc.c (objc_set_property_attr): New stub.
1315 (objc_add_property_variable): Likewise.
1316 (objc_build_getter_call): Likewise.
1317 (objc_build_setter_call) Likewise.
1b1562a5 1318
a1178b30
IS
13192010-10-13 Iain Sandoe <iains@gcc.gnu.org>
1320
1b1562a5 1321 merge from FSF apple 'trunk' branch.
a1178b30
IS
1322 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
1323
1324 Radar 3803157 (method attributes)
1325 * c-common.c (handle_deprecated_attribute): Recognize
1326 objc methods as valid declarations.
1327 * c-common.h: Declare objc_method_decl ().
1b1562a5 1328 * stub-objc.c (objc_method_decl): New stub.
a1178b30 1329
a75bfaa6
JM
13302010-10-08 Joseph Myers <joseph@codesourcery.com>
1331
1332 * c-common.c (parse_optimize_options): Call
1333 decode_cmdline_options_to_array_default_mask before
1334 decode_options. Update arguments to decode_options.
1335 * c-common.h (c_common_init_options_struct): Declare.
1336 * c-opts.c (c_common_init_options_struct): New. Split out from
1337 c_common_init_options.
1338
f05b9d93
NP
13392010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
1340
1341 Implemented fast enumeration for Objective-C.
1342 * c-common.h (objc_finish_foreach_loop): New.
1343 * stub-objc.c (objc_finish_foreach_loop): New.
1344
1ebe4b4f
JM
13452010-10-05 Joseph Myers <joseph@codesourcery.com>
1346
1347 * c-common.h (struct diagnostic_context): Don't declare here.
1348 (c_common_initialize_diagnostics): Declare using
1349 diagnostic_context typedef.
1350 * c-opts.c (c_common_handle_option): Pass global_dc to
1351 handle_generated_option.
1352
d4d24ba4
JM
13532010-10-04 Joseph Myers <joseph@codesourcery.com>
1354
1355 * c-opts.c (c_common_handle_option): Pass &global_options_set to
1356 handle_generated_option.
1357
478a1c5b
ILT
13582010-10-03 Ian Lance Taylor <iant@google.com>
1359
1360 * c.opt (-fplan9-extensions): New option.
1361
82a1c2fe
FXC
13622010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1363
1364 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
1365 Remove.
1366 (c_cpp_builtins): Call functions from cppbuiltin.c instead
1367 of duplicating code.
1368
92902b1b
IS
13692010-09-30 Iain Sandoe <iains@gcc.gnu.org>
1370
1371 * c-common.c: Add two new entries for @optional
1372 and @required keywords.
1373
1374 merge from FSF 'apple/trunk' branch.
1375 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
1376
1377 Radar 4386773
1378 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
1379 objective-c keywords.
1380 (objc_set_method_opt): New declaration.
1381 * stub-objc.c (objc_set_method_opt): New stub.
1382
46625112
JM
13832010-09-30 Joseph Myers <joseph@codesourcery.com>
1384
1385 * c-common.c (handle_optimize_attribute): Pass &global_options to
1386 cl_optimization_save and cl_optimization_restore.
1387 * c-opts.c (c_common_handle_option): Pass &global_options to
1388 handle_generated_option.
1389 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
1390 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
1391 &global_options to cl_optimization_restore.
1392
49b91f05
NP
13932010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
1394
1395 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
1396 Objective-C/Objective-C++ keywords.
1397
13ed556f 13982010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57
NP
1399
1400 Merge from 'apple/trunk' branch on FSF servers.
1401
1402 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
1403
1404 Radar 4281748
1405 * c-common.h (objc_check_global_decl): New declaration.
1406 * stub-objc.c (objc_check_global_decl): New stub.
1407
f0036cca
JM
14082010-09-29 Joseph Myers <joseph@codesourcery.com>
1409
1410 * c.opt: Don't use VarExists.
1411
e3339d0f
JM
14122010-09-29 Joseph Myers <joseph@codesourcery.com>
1413
1414 * c-common.c (c_cpp_error): Update names of diagnostic_context
1415 members.
1416 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
1417 cl_optimization members.
1418 * c-opts.c (warning_as_error_callback, c_common_handle_option,
1419 sanitize_cpp_opts, finish_options): Update names of cpp_options
1420 members.
1421
1973201f
NP
14222010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1423
1424 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
1425 (objc_is_reserved_word): Removed.
1426 * c-common.c: Updated comments.
1427 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
1428 objc_is_reserved_word.
1429 * stub-objc.c (objc_is_reserved_word): Removed.
1430
f7e71da5
IS
14312010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1432
1433 * c-common.h (objc_add_method_declaration): Adjust prototype to
1434 include attributes.
1435 (objc_start_method_definition): Likewise.
1436 (objc_build_keyword_decl): Likewise.
1437 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
1438 (objc_start_method_definition): Likewise.
1439 (objc_build_keyword_decl): Likewise.
1440
c165dca7
IS
14412010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1442
1443 * c-common.h (objc_start_class_interface): Adjust prototype.
1444 (objc_start_category_interface): Likewise.
1445 (objc_start_protocol): Likewise.
1446 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
1447 (objc_start_class_interface): Likewise.
1448 (objc_start_category_interface): Likewise.
1449
7458026b
ILT
14502010-09-27 Ian Lance Taylor <iant@google.com>
1451
1452 * c-common.c (c_common_attribute_table): Add no_split_stack.
1453 (handle_no_split_stack_attribute): New static function.
1454
b581b85b
NP
14552010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
1456
1457 Merge from 'apple/trunk' branch on FSF servers.
1458
1459 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
1460
1461 Radar 4229905
1462 * c-common.h (objc_have_common_type): New declaration.
1463 * stub-objc.c (objc_have_common_type): New stub.
1464
1465 2005-06-22 Ziemowit Laski <zlaski@apple.com>
1466
1467 Radar 4154928
1468 * c-common.h (objc_common_type): New prototype.
1469 * stub-objc.c (objc_common_type): New stub.
1470
46a4da10
JH
14712010-09-24 Jan Hubicka <jh@suse.cz>
1472
1473 * c-common.c (handle_leaf_attribute): New function.
1474 (struct attribute_spec c_common_att): Add leaf.
1475
e200444e
JM
14762010-09-22 Joseph Myers <joseph@codesourcery.com>
1477
1478 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
1479 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
1480 -dump, -dump=, -imacros, -imacros=, -include, -include=,
1481 -include-barrier, -include-directory, -include-directory=,
1482 -include-directory-after, -include-directory-after=,
1483 -include-prefix, -include-prefix=, -include-with-prefix,
1484 -include-with-prefix=, -include-with-prefix-after,
1485 -include-with-prefix-after=, -include-with-prefix-before,
1486 -include-with-prefix-before=, -no-integrated-cpp,
1487 -no-line-commands, -no-standard-includes, -no-warnings, -output,
1488 -output=, -pedantic, -pedantic-errors, -preprocess,
1489 -print-missing-file-dependencies, -trace-includes, -traditional,
1490 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
1491 -user-dependencies, -verbose, -write-dependencies,
1492 -write-user-dependencies, no-integrated-cpp, traditional): New.
1493
29a80ea6
NP
14942010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1495
1496 PR objc/23710
ac1fc2fc
NP
1497 * c-common.h (objc_start_method_definition): Return bool instead
1498 of void.
1499 * stub-objc.c (objc_start_method_definition): Return bool instead
1500 of void.
1501
15022010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1503
1504 PR objc/25965
1505 * c-common.h (objc_get_interface_ivars): New declaration.
1506 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 1507
de621752
ILT
15082010-09-15 Ian Lance Taylor <iant@google.com>
1509
1510 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 1511 messages. Remove period at end of warning message.
de621752 1512
ba885ec5
NS
15132010-09-09 Nathan Sidwell <nathan@codesourcery.com>
1514
1515 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
1516 (handle_alias_attribute): ... here.
1517 (handle_ifunc_attribute): New.
1518
c5ee1358
MM
15192010-09-06 Mark Mitchell <mark@codesourcery.com>
1520
1521 * c-common.h (do_warn_double_promotion): Declare.
1522 * c-common.c (do_warn_double_promotion): Define.
1523
0a0b3574
MM
15242010-09-05 Mark Mitchell <mark@codesourcery.com>
1525
1526 * c.opt (Wdouble-promotion): New.
1527
d1779886
JM
15282010-09-02 Joseph Myers <joseph@codesourcery.com>
1529
1530 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
1531 fvtable-thunks, fxref): Mark no longer supported in help text.
1532
2d2bd949
JM
15332010-09-02 Joseph Myers <joseph@codesourcery.com>
1534
1535 * c.opt (Wimport, fall-virtual, falt-external-templates,
1536 fdefault-inline, fenum-int-equiv, fexternal-templates,
1537 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
1538 fname-mangling-version-, fnew-abi, fnonnull-objects,
1539 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
1540 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
1541 applicable.
1542 (fhandle-exceptions): Mark with Alias and Warn.
1543 * c-opts.c (c_common_handle_option): Don't handle options marked
1544 as ignored.
1545
5de8299c
JM
15462010-09-02 Joseph Myers <joseph@codesourcery.com>
1547
1548 * c.opt (Wcomments, Werror-implicit-function-declaration,
1549 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
1550 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
1551 aliases.
1552 * c-common.c (option_codes): Use OPT_Wcomment instead of
1553 OPT_Wcomments.
1554 * c-opts.c (warning_as_error_callback, c_common_handle_option):
1555 Don't handle options marked as aliases.
1556
0ceb0201
RG
15572010-08-25 Richard Guenther <rguenther@suse.de>
1558
1559 * c-common.c (c_common_get_alias_set): Remove special
1560 handling for pointers.
1561
ac47786e
NF
15622010-08-20 Nathan Froyd <froydnj@codesourcery.com>
1563
1564 * c-common.c: Use FOR_EACH_VEC_ELT.
1565 * c-gimplify.c: Likewise.
1566 * c-pragma.c: Likewise.
1567
c878765b
JM
15682010-08-16 Joseph Myers <joseph@codesourcery.com>
1569
1570 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
1571 RejectDriver.
1572 (MMDX): Change back to MMD. Mark NoDriverArg instead of
1573 RejectDriver.
1574 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
1575 instead of OPT_MDX and OPT_MMDX.
1576
603349bf
JM
15772010-08-16 Joseph Myers <joseph@codesourcery.com>
1578
1579 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
1580
644fa7ac
JM
15812010-08-12 Joseph Myers <joseph@codesourcery.com>
1582
1583 * c.opt (MD, MMD): Change to MDX and MMDX.
1584 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
1585
481e1176
JM
15862010-08-11 Joseph Myers <joseph@codesourcery.com>
1587
1588 * c-opts.c (c_common_handle_option): Call handle_generated_option
1589 instead of handle_option.
1590
ac8dc9f7
NF
15912010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1592
1593 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
1594 (maybe_apply_renaming_pragma): Delete unneeded declarations.
1595
4f8c876d
NF
15962010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1597
1598 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
1599 (pending_redefine_extname): Change type to a VEC.
1600 (add_to_renaming_pragma_list): Update for new type of
1601 pending_redefine_extname.
ac8dc9f7 1602 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 1603
3b0c690e
AC
16042010-08-04 Arnaud Charlet <charlet@adacore.com>
1605
1606 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
1607 visited.
1608 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
1609 decide whether a type has already been declared/seen.
1610 Do not go to the original type.
1611 (dump_nested_types): New parameter forward.
1612 Generate forward declaration if needed and mark type as visited.
1613 (print_ada_declaration): Call dump_nested_types if not already done.
1614 Mark types as visited.
1615
1890bccc
JM
16162010-08-03 Joseph Myers <joseph@codesourcery.com>
1617
1618 * c.opt (-print-pch-checksum): Remove option.
1619 * c-opts.c (c_common_handle_option): Don't handle
1620 OPT_print_pch_checksum.
1621
5f20c657
JM
16222010-07-27 Joseph Myers <joseph@codesourcery.com>
1623
1624 * c-common.h (c_common_handle_option): Update prototype and return
1625 value type.
1626 * c-opts.c (c_common_handle_option): Update prototype and return
1627 value type. Update calls to handle_option and
1628 enable_warning_as_error.
1629
f551f80c
JJ
16302010-07-27 Jakub Jelinek <jakub@redhat.com>
1631
1632 PR c/45079
1633 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
1634
61ff2bdc
JM
16352010-07-27 Joseph Myers <joseph@codesourcery.com>
1636
1637 * c-common.h (c_common_missing_argument): Remove.
1638 * c-opts.c (c_common_missing_argument): Remove.
1639 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
1640 idirafter, imacros, include, isysroot, isystem, iquote): Add
1641 MissingArgError.
1642 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
1643
7a9bf9a4
JM
16442010-07-27 Joseph Myers <joseph@codesourcery.com>
1645
1646 * c-common.h (c_common_option_lang_mask,
1647 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
1648 New.
1649 (c_common_init_options): Update prototype.
1650 * c-opts.c (c_common_option_lang_mask): New.
1651 (c_common_initialize_diagnostics): Split out of
1652 c_common_init_options.
1653 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
1654 New.
1655 (c_common_init_options): Update prototype. Use decoded options in
1656 search for -lang-asm.
1657
910ad8de
NF
16582010-07-15 Nathan Froyd <froydnj@codesourcery.com>
1659
1660 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
1661 * c-format.c: Likewise.
1662
718f9c0f
MLI
16632010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
1664
1665 * c-common.h: Include diagnostic-core.h. Error if already
1666 included.
1667 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
1668
4d451982
MLI
16692010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1670
1671 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
1672 Do not include expr.h
1673 (vector_mode_valid_p): Move here.
1674
119fe915
SB
16752010-06-21 DJ Delorie <dj@redhat.com>
1676
1677 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
1678 allow these pragmas anywhere.
1679
16802010-06-14 Jakub Jelinek <jakub@redhat.com>
1681
1682 PR bootstrap/44509
1683 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
1684 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
1685 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
1686 ggc_strdup instead of xstrdup.
1687
16882010-06-10 Jakub Jelinek <jakub@redhat.com>
1689
1690 * c-cppbuiltin.c: Include cpp-id-data.h.
1691 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
1692 (lazy_hex_fp_value): New function.
1693 (builtin_define_with_hex_fp_value): Provide definitions lazily.
1694
6662d794
MLI
16952010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1696
1697 * c-gimplify.c: Do not include tree-flow.h
1698
38f8b050
JR
16992010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
1700
1701 PR other/44034
1702 * c-common.c: Rename targetm member:
1703 targetm.enum_va_list -> targetm.enum_va_list_p
1704
9589f23e
AS
17052010-06-28 Anatoly Sokolov <aesok@post.ru>
1706
1707 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
1708
3b06d379
SB
17092010-06-28 Steven Bosscher <steven@gcc.gnu.org>
1710
1711 * c-cppbuiltin.c: Do not include except.h.
1712
d166d4c3
AK
17132010-06-24 Andi Kleen <ak@linux.intel.com>
1714
1715 * c-common.c (warn_for_omitted_condop): New.
1716 * c-common.h (warn_for_omitted_condop): Add prototype.
1717
70cb8be6
JM
17182010-06-21 Joseph Myers <joseph@codesourcery.com>
1719
1720 * c.opt (lang-objc): Remove.
1721 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
1722
a4c97feb
JR
17232010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
1724
1725 * c-opts.c: Include "tm_p.h".
1726
6e2f1956
JM
17272010-06-20 Joseph Myers <joseph@codesourcery.com>
1728
1729 * c-common.c (parse_optimize_options): Update call to
1730 decode_options.
1731
bc87224e
NF
17322010-06-18 Nathan Froyd <froydnj@codesourcery.com>
1733
1734 * c-common.c (record_types_used_by_current_var_decl): Adjust for
1735 new type of types_used_by_cur_var_decl.
1736
b49cf425
JR
17372010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
1738
1739 PR bootstrap/44512
1740 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
1741 for C++ standard compliance.
1742
59f9c2ed
JM
17432010-06-16 Jason Merrill <jason@redhat.com>
1744
1745 * c.opt: Add -Wnoexcept.
1746
33766b66
RG
17472010-06-16 Richard Guenther <rguenther@suse.de>
1748
1749 PR c/44555
1750 * c-common.c (c_common_truthvalue_conversion): Remove
1751 premature and wrong optimization concering ADDR_EXPRs.
1752
eff7e30c
AC
17532010-06-15 Arnaud Charlet <charlet@adacore.com>
1754
1755 * c-ada-spec.c (dump_sloc): Remove column info.
1756 (is_simple_enum): New function.
1757 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
1758 enum types when relevant.
1759
6312e84d
MLI
17602010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1761
1762 * c-common.c (conversion_warning): Warn at expression
1763 location.
1764
1cb42611
JM
17652010-06-10 Joseph Myers <joseph@codesourcery.com>
1766
1767 * c-opts.c (c_common_handle_option): Don't handle
1768 OPT_fshow_column.
1769
a9429e29
LB
17702010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1771
1772 * c-pragma.c (push_alignment): Use typed GC allocation.
1773 (handle_pragma_push_options): Likewise.
1774
1775 * c-common.c (parse_optimize_options): Likewise.
1776
1777 * c-common.h (struct sorted_fields_type): Add variable_size GTY
1778 option.
1779
5498f011
JM
17802010-06-07 Joseph Myers <joseph@codesourcery.com>
1781
1782 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
1783 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1784 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1785 flag_signed_bitfields, warn_strict_null_sentinel,
1786 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
1787 flag_gen_declaration, flag_no_gnu_keywords,
1788 flag_implement_inlines, flag_implicit_templates,
1789 flag_implicit_inline_templates, flag_optional_diags,
1790 flag_elide_constructors, flag_default_inline, flag_rtti,
1791 flag_conserve_space, flag_access_control, flag_check_new,
1792 flag_new_for_scope, flag_weak, flag_working_directory,
1793 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
1794 flag_enforce_eh_specs, flag_threadsafe_statics,
1795 flag_pretty_templates): Remove.
1796 * c-common.h (flag_preprocess_only, flag_nil_receivers,
1797 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
1798 flag_replace_objc_classes, flag_undef, flag_no_builtin,
1799 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1800 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1801 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
1802 flag_no_gnu_keywords, flag_implement_inlines,
1803 flag_implicit_templates, flag_implicit_inline_templates,
1804 flag_optional_diags, flag_elide_constructors, flag_default_inline,
1805 flag_rtti, flag_conserve_space, flag_access_control,
1806 flag_check_new, flag_new_for_scope, flag_weak,
1807 flag_working_directory, flag_use_cxa_atexit,
1808 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
1809 flag_threadsafe_statics, flag_pretty_templates,
1810 warn_strict_null_sentinel): Remove.
1811 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
1812 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
1813 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
1814 fimplicit-inline-templates, fimplicit-templates,
1815 flax-vector-conversions, fms-extensions, fnil-receivers,
1816 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
1817 frtti, fshort-double, fshort-enums, fshort-wchar,
1818 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
1819 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
1820 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
1821 gen-decls, undef): Use Var.
1822 (fdefault-inline, foptional-diags): Document as doing nothing.
1823 * c-opts.c (c_common_handle_option): Remove cases for options now
1824 using Var. Mark ignored options as such.
1825
39dabefd
SB
18262010-06-05 Steven Bosscher <steven@gcc.gnu.org>
1827
1828 * c-common.c: Moved to here from parent directory.
1829 * c-common.def: Likewise.
1830 * c-common.h: Likewise.
1831 * c-cppbuiltin.c: Likewise.
1832 * c-dump.c: Likewise.
1833 * c-format.c: Likewise.
1834 * c-format.h : Likewise.
1835 * c-gimplify.c: Likewise.
1836 * c-lex.c: Likewise.
1837 * c-omp.c: Likewise.
1838 * c.opt: Likewise.
1839 * c-opts.c: Likewise.
1840 * c-pch.c: Likewise.
1841 * c-ppoutput.c: Likewise.
1842 * c-pragma.c: Likewise.
1843 * c-pragma.h: Likewise.
1844 * c-pretty-print.c: Likewise.
1845 * c-pretty-print.h: Likewise.
1846 * c-semantics.c: Likewise.
1847 * stub-objc.c: Likewise.
1848
1849 * c-common.c: Include gt-c-family-c-common.h.
1850 * c-pragma.c: Include gt-c-family-c-pragma.h.
1851\f
04695783 1852Copyright (C) 2010, 2011 Free Software Foundation, Inc.
39dabefd
SB
1853
1854Copying and distribution of this file, with or without modification,
1855are permitted in any medium without royalty provided the copyright
1856notice and this notice are preserved.