]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
re PR c++/44516 (improve error message when no matching operator)
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
0b2c4be5
DS
12012-05-16 Dodji Seketeli <dodji@redhat.com>
2
3 PR preprocessor/7263
4 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
5 to cpp_classify_number. For diagnostics, use the precise location
6 instead of the global input_location.
7
a1bde5af
PC
82012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
9
d02924ef 10 PR c++/11856
a1bde5af
PC
11 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
12
d1ede5f4
BS
132012-05-14 Bernd Schmidt <bernds@codesourcery.com>
14
a1bde5af 15 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 16
f2bc201f
MLI
172012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
18
19 PR 53063
20 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
21 Wreorder): Use LangEnabledBy.
22 * c-opts.c (c_common_handle_option): Do not enable them
23 explicitly. Call lang-specific generated functions.
24 (c_common_post_options): Do not set them here.
25
95744782
MLI
262012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
27
28 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
29 Wmissing-field-initializers,Wmissing-parameter-type,
30 Wold-style-declaration,Woverride-init): Use EnabledBy.
31 * c-opts.c (c_common_post_options): Do not set here explicitly.
32
7d5a5747
MLI
332012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
34
35 PR 53063
36 * c-opts.c (c_common_handle_option): Use handle_generated_option
37 to enable sub-options.
38
5a3c9cf2
PC
392012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
40
41 PR c++/53158
42 * c-common.c (warnings_for_convert_and_check): Use warning_at.
43
3ac8781c
RG
442012-05-10 Richard Guenther <rguenther@suse.de>
45
46 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
47 adjust commentary about TYPE_IS_SIZETYPE types.
48
1e537948
MLI
492012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
50
51 PR c++/53261
52 * c-common.c (warn_logical_operator): Check that argument of
53 integer_zerop is not NULL.
54
f2c4a785
MLI
552012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
56
57 PR c/43772
58 * c-common.c (warn_logical_operator): Do not warn if either side
59 is already true or false.
60
50f305ca
MLI
612012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
62
63 PR c/51712
64 * c-common.c (expr_original_type): New.
65 (shorten_compare): Do not warn for enumeration types.
66
0c3641b0
MLI
672012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
68
69 * c.opt (fpermissive): Add Var(flag_permissive).
70
7edaa4d2
MG
712012-04-30 Marc Glisse <marc.glisse@inria.fr>
72
73 PR c++/51033
74 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
75 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
76
b9c8da34
DS
772012-04-30 Dodji Seketeli <dodji@redhat.com>
78
79 Add -Wvarargs option
80 * c.opt (Wvarargs): Define new option.
81
e6c69da0
MLI
822012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
83
84 * c-common.c (check_function_arguments): Replace
85 Wmissing-format-attribute with Wsuggest-attribute=format.
86
90137d8f
MLI
872012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
88
89 * c.opt (Wsuggest-attribute=format): New. Alias of
90 Wmissing-format-attribute.
91 * c-format.c (decode_format_type): Replace
92 Wmissing-format-attribute with Wsuggest-attribute=format.
93 (check_function_format): Likewise.
94
7f5f5f98
OW
952012-04-27 Ollie Wild <aaw@google.com>
96
97 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
98 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
99 * c.opt: Add Wliteral-suffix.
100
c1771a20
MLI
1012012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
102
103 PR c/44774
104 * c.opt (Wpedantic): New.
105 (pedantic): Alias Wpedantic.
106 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
107 (c_common_post_options): Likewise.
108 (sanitize_cpp_opts): Likewise.
109 * c-lex.c (interpret_float): Likewise.
110 * c-format.c (check_format_types): Likewise.
111 * c-common.c (pointer_int_sum): Likewise.
112 (c_sizeof_or_alignof_type): Likewise.
113 (c_add_case_label): Likewise.
114 (c_do_switch_warnings): Likewise.
115 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
116
04b391c1
JM
1172012-04-15 Jason Merrill <jason@redhat.com>
118
119 PR c++/52818
120 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
121 (C_STD_NAME): Distinguish between C++98 and C++11.
122
ac868f29
EB
1232012-04-11 Eric Botcazou <ebotcazou@adacore.com>
124
125 PR target/52624
126 * c-common.h (uint16_type_node): Rename into...
127 (c_uint16_type_node): ...this.
128 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
129 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
130
fd4116f4
MLI
1312012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
132
133 * c-common.c (warn_if_unused_value): Move definition to here.
134 * c-common.h (warn_if_unused_value): Move declaration to here.
135
573ac65e
WB
1362012-03-23 William Bader <williambader@hotmail.com>
137
138 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
139
552b8185
JM
1402012-03-20 Jason Merrill <jason@redhat.com>
141
142 * c-common.h (enum cxx_dialect): Add cxx1y.
143 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
144 test.
145 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
146 * c-opts.c (c_common_post_options): Likewise.
147 (set_std_cxx1y): New.
148 (c_common_handle_option): Call it.
149 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
150
04398fa8
PC
1512012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
152
153 PR c++/14710
154 * c.opt ([Wuseless-cast]): Add.
155
d2a12ae7
RG
1562012-03-16 Richard Guenther <rguenther@suse.de>
157
158 * c-pretty-print.c (pp_c_initializer_list): Adjust.
159
a12bf402
MLI
1602012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
161
162 PR c++/44783
163 * c.opt (ftemplate-backtrace-limit) Add.
164
5c30094f
RO
1652012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
166
167 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
168 handling.
169 * c-pragma.c (handle_pragma_extern_prefix): Remove.
170 (init_pragma): Don't register extern_prefix.
171
21fa2faf
RG
1722012-03-12 Richard Guenther <rguenther@suse.de>
173
174 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
175 (builtin_type_for_size): Likewise.
176
e3793c6f
JJ
1772012-02-13 Jakub Jelinek <jakub@redhat.com>
178
179 PR c++/52215
180 * c-common.c (sync_resolve_params): Don't decide whether to convert
181 or not based on TYPE_SIZE comparison, convert whenever arg_type
182 is unsigned INTEGER_TYPE.
183
93286335
PC
1842012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
185
186 PR c/52118
187 * c.opt ([Wunused-local-typedefs]): Fix description.
188
7a421706
MS
1892012-01-24 Mike Stump <mikestump@comcast.net>
190
191 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
192 exactly.
193
ba9b1f11
RG
1942012-01-18 Richard Guenther <rguenther@suse.de>
195
196 * c-opts.c (c_common_post_options): Reset LTO flags if
197 we are about to generate a PCH.
198
465406be
PC
1992012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
200
201 PR c++/51777
202 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
203 use pp_unsigned_wide_integer.
204
aee15221
RG
2052012-01-10 Richard Guenther <rguenther@suse.de>
206
207 PR middle-end/51806
208 * c-opts.c (c_common_handle_option): Move -Werror handling
209 to language independent code.
210
5720c0dc
RG
2112012-01-05 Richard Guenther <rguenther@suse.de>
212
213 PR middle-end/51764
214 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
215 from common.opt.
216
73ac190a
PC
2172011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
218
219 PR c++/51316
220 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
221 of array types with an unknown bound.
222
48b0b196
JM
2232011-12-20 Joseph Myers <joseph@codesourcery.com>
224
225 * c-common.c (flag_isoc99): Update comment to refer to C11.
226 (flag_isoc1x): Change to flag_isoc11.
227 * c-common.h (flag_isoc99): Update comment to refer to C11.
228 (flag_isoc1x): Change to flag_isoc11.
229 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
230 C11.
231 * c-opts.c (set_std_c1x): Change to set_std_c11.
232 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
233 Call set_std_c11.
234 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
235 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
236 * c.opt (std=c1x): Change to std=c11. Document as non-draft
237 standard.
238 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
239 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
240 (std=gnu1x): Make alias of std=gnu11.
241
d58d6eb5
JM
2422011-12-19 Jason Merrill <jason@redhat.com>
243
244 PR c++/51228
245 * c-common.c (handle_transparent_union_attribute): Check the first
246 field if the type is complete.
247
b3908fcc
JW
2482011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
249
250 PR libstdc++/51365
251 * c-common.c (RID_IS_FINAL): Add.
252 * c-common.h (RID_IS_FINAL): Add.
253
fea3ca91
IS
2542011-11-30 Iain Sandoe <iains@gcc.gnu.org>
255
256 * c.opt (fgnu-runtime): Provide full description.
257 (fnext-runtime): Likewise.
258 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
259
62bad7cd
AM
2602011-11-28 Andrew MacLeod <amacleod@redhat.com>
261
262 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
263 predefines in one place. Add LOCK_FREE predefines.
264 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
265 new func.
266
c466c4ff
AM
2672011-11-24 Andrew MacLeod <amacleod@redhat.com>
268
269 PR c/51256
270 * c-common.c (get_atomic_generic_size): Check for various error
271 conditions
272 (resolve_overloaded_atomic_exchange,
273 resolve_overloaded_atomic_compare_exchange,
274 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
275 error_mark_node for error conditions.
276
a5952633
RG
2772011-11-08 Richard Guenther <rguenther@suse.de>
278
279 PR middle-end/51010
280 c-family/
281
0a35513e
AH
2822011-11-07 Richard Henderson <rth@redhat.com>
283 Aldy Hernandez <aldyh@redhat.com>
284 Torvald Riegel <triegel@redhat.com>
285
286 Merged from transactional-memory.
287
288 * c-common.c (handle_tm_wrap_attribute,
289 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
290 (struct c_common_reswords): Added __transaction* keywords.
291 (struct c_common_attribute_table): Added transaction* and tm_regparm
292 attributes.
293 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
294 masks.
295 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
296 find_tm_attribute): Declare.
297
6d87092d
JM
2982011-11-07 Jason Merrill <jason@redhat.com>
299
300 PR c++/35688
301 * c-common.c, c-common.h: Revert yesterday's changes.
302
8e7860a1
JM
3032011-11-06 Jason Merrill <jason@redhat.com>
304
305 PR c++/35688
306 * c-common.c (decl_has_visibility_attr): Split out from...
307 (c_determine_visibility): ...here.
308 * c-common.h: Declare it.
309
d19fa6b5
JM
3102011-11-06 Joseph Myers <joseph@codesourcery.com>
311
312 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
313 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
314 type.
315 (check_user_alignment): New. Split out of
316 handle_aligned_attribute. Disallow integer constants with
317 noninteger types. Conditionally allow zero.
318 (handle_aligned_attribute): Use check_user_alignment.
319 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
320
86951993
AM
3212011-11-06 Andrew MacLeod <amacleod@redhat.com>
322 Richard Henderson <rth@redhat.com>
323
324 Merged from cxx-mem-model.
325
326 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
327 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
328 parameters that are the same type size.
329 (get_atomic_generic_size): New. Find size of generic
330 atomic function parameters and do typechecking.
331 (add_atomic_size_parameter): New. Insert size into parameter list.
332 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
333 either __atomic_exchange_n or external library call.
334 (resolve_overloaded_atomic_compare_exchange): Restructure
335 __atomic_compare_exchange to either _n variant or external library call.
336 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
337 __atomic_load_n or an external library call.
338 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
339 __atomic_store_n or an external library call.
340 (resolve_overloaded_builtin): Handle new __atomic builtins.
341
cf9e9959
EB
3422011-11-04 Eric Botcazou <ebotcazou@adacore.com>
343
344 PR c++/50608
345 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
346 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
347 <INDIRECT_REF>: Return the argument.
348 <ARRAY_REF>: Remove special code for negative offset.
349 Call fold_build_pointer_plus instead of size_binop.
350 (fold_offsetof): Remove STOP_REF argument and adjust.
351 * c-common.h (fold_offsetof_1): Declare.
352 (fold_offsetof): Remove STOP_REF argument.
353
25339f10
JM
3542011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
355
356 PR c++/50810
357 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
358 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
359 Wnarrowing for C++0x and C++98.
360 * c.opt ([Wnarrowing]): Update.
361
89401152
PC
3622011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
363
364 PR c++/44277
365 * c.opt: Add Wzero-as-null-pointer-constant.
366
97e3ad20
JM
3672011-10-31 Jason Merrill <jason@redhat.com>
368
15694fdd
JM
369 * c.opt (-fdeduce-init-list): Off by default.
370
97e3ad20
JM
371 PR c++/50920
372 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
373 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
374 and -Wc++11-compat.
375 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
376
fb9120e3
RAV
3772011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
378
379 PR c++/30066
380 * c.opt (fvisibility-inlines-hidden): Description change.
381
3ce4f9e4
ESR
3822011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
383
384 Implement C++11 user-defined literals.
385 * c-common.c (build_userdef_literal): New.
386 * c-common.def: New tree code.
387 * c-common.h (tree_userdef_literal): New tree struct and accessors.
388 * c-lex.c (interpret_float): Add suffix parm.
389 (c_lex_with_flags): Build literal tokens.
390
5f53c243
PC
3912011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
392
393 PR c++/50841
394 Revert:
395 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
396
397 PR c++/50810
398 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
399 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
400 Wnarrowing for C++0x and C++98.
401 * c.opt ([Wnarrowing]): Update.
402
263734e1
PC
4032011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
404
405 PR c++/50810
406 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
407 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
408 Wnarrowing for C++0x and C++98.
409 * c.opt ([Wnarrowing]): Update.
410
d2e312d7
PC
4112011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
412
413 PR c++/45385
414 * c-common.c (conversion_warning): Remove code looking for
415 artificial operands.
416
d17687f6
DS
4172011-10-18 Dodji Seketeli <dodji@redhat.com>
418
419 PR bootstrap/50760
420 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
421 !NO_IMPLICIT_EXTERN_C.
422
fc8396e9
PC
4232011-10-17 Michael Spertus <mike_spertus@symantec.com>
424
425 * c-common.c (c_common_reswords): Add __bases,
426 __direct_bases.
427 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
428
4292011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
430
431 PR c++/50757
432 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
433
847e697a
TT
4342011-10-15 Tom Tromey <tromey@redhat.com>
435 Dodji Seketeli <dodji@redhat.com>
436
437 * c.opt (fdebug-cpp): New option.
438 * c-opts.c (c_common_handle_option): Handle the option.
439 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
440 output stream in parameter. Factorized from ...
441 (maybe_print_line): ... this. Dump location debug information when
442 -fdebug-cpp is in effect.
443 (print_line_1): New static function. Takes an output stream in
444 parameter. Factorized from ...
445 (print_line): ... here. Dump location information when -fdebug-cpp
446 is in effect.
447 (scan_translation_unit): Dump location information when
448 -fdebug-cpp is in effect.
449
92582b75
TT
4502011-10-15 Tom Tromey <tromey@redhat.com>
451 Dodji Seketeli <dodji@redhat.com>
452
453 * c.opt (ftrack-macro-expansion): New option. Handle it with and
454 without argument.
455 * c-opts.c (c_common_handle_option)<case
456 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
457 cases. Handle -ftrack-macro-expansion with and without argument.
458
46427374
TT
4592011-10-15 Tom Tromey <tromey@redhat.com>
460 Dodji Seketeli <dodji@redhat.com>
461
462 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
463 (print_line, cb_define, do_line_change): Adjust to avoid touching
464 the internals of struct line_map. Use the public API instead.
465 * c-pch.c (c_common_read_pch): Likewise.
466 * c-lex.c (fe_file_change): Likewise.
467
fc8396e9
PC
4682011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
469
470 PR c++/17212
471 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
472
4732011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
474
475 PR c++/33067
476 * c-pretty-print.c (pp_c_floating_constant): Output
477 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
478
e79983f4
MM
4792011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
480
481 * c-common.c (def_builtin_1): Delete old interface with two
482 parallel arrays to hold standard builtin declarations, and replace
483 it with a function based interface that can support creating
484 builtins on the fly in the future. Change all uses, and poison
485 the old names. Make sure 0 is not a legitimate builtin index.
486 * c-omp.c (c_finish_omp_barrier): Ditto.
487 (c_finish_omp_taskwait): Ditto.
488 (c_finish_omp_flush): Ditto.
489
6637388f
TG
4902011-10-11 Tristan Gingold <gingold@adacore.com>
491
492 * c.opt: (fallow-parameterless-variadic-functions): New.
493
3797cb21
DS
4942011-09-08 Dodji Seketeli <dodji@redhat.com>
495
496 PR c++/33255 - Support -Wunused-local-typedefs warning
497 * c-common.h (struct c_language_function::local_typedefs): New
498 field.
499 (record_locally_defined_typedef, maybe_record_typedef_use)
500 (maybe_warn_unused_local_typedefs): Declare new functions.
501 * c-common.c (record_locally_defined_typedef)
502 (maybe_record_typedef_use)
503 (maybe_warn_unused_local_typedefs): Define new functions.
504 * c.opt: Declare new -Wunused-local-typedefs flag.
505
693ddb1b
EB
5062011-09-06 Eric Botcazou <ebotcazou@adacore.com>
507
508 PR middle-end/50266
509 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
510 computations.
511
830c740f
RG
5122011-09-05 Richard Guenther <rguenther@suse.de>
513
514 * c-common.c (complete_array_type): Use ssize_int (-1) instead
515 of integer_minus_one_node for empty array upper bounds.
516
892a371f
DS
5172011-08-28 Dodji Seketeli <dodji@redhat.com>
518
519 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
520 it's the first time it's being called on this main TU.
521
0e3fdb48
RB
5222011-08-24 Richard Guenther <rguenther@suse.de>
523
524 PR c/49396
525 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
526
5272011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
528
529 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
530 defined in cpp_init_builtins and c_cpp_builtins.
531
d4a83c10
JM
5322011-08-19 Joseph Myers <joseph@codesourcery.com>
533
534 * c-common.c (c_common_reswords): Add __builtin_complex.
535 * c-common.h (RID_BUILTIN_COMPLEX): New.
536
bbceee64
JM
5372011-08-18 Joseph Myers <joseph@codesourcery.com>
538
539 * c-common.c (c_common_reswords): Add _Noreturn.
540 (keyword_is_function_specifier): Handle RID_NORETURN.
541 * c-common.h (RID_NORETURN): New.
542
0e3a99ae
AS
5432011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
544
545 * c-common.c (unsafe_conversion_p): New function. Check if it is
546 unsafe to convert an expression to the type.
547 (conversion_warning): Adjust, use unsafe_conversion_p.
548 * c-common.h (unsafe_conversion_p): New function declaration.
549
20906c66
JJ
5502011-08-02 Jakub Jelinek <jakub@redhat.com>
551
552 * c-common.h (c_finish_omp_atomic): Adjust prototype.
553 (c_finish_omp_taskyield): New prototype.
554 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
555 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
556 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
557 or RHS1 have side-effects, evaluate those too in the right spot,
558 if it is a decl and LHS is also a decl, error out if they
559 aren't the same.
560 (c_finish_omp_taskyield): New function.
561 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
562 * c-pragma.c (omp_pragmas): Add taskyield.
563 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
564 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
565 PRAGMA_OMP_CLAUSE_MERGEABLE.
566
770e5a2e
DS
5672011-07-25 Dodji Seketeli <dodji@redhat.com>
568
569 * c-common.h (set_underlying_type): Remove parm name from
570 declaration.
571
1baae426
RG
5722011-07-25 Romain Geissler <romain.geissler@gmail.com>
573
574 * c-pretty-print.h: Search c-common.h in c-family.
575
fcb21722
JM
5762011-07-22 Jason Merrill <jason@redhat.com>
577
76f86d00
JM
578 PR c++/49793
579 * c.opt (Wnarrowing): New.
580
3a636414
JM
581 PR c++/30112
582 * c-common.h: Declare c_linkage_bindings.
583 * c-pragma.c (handle_pragma_redefine_extname): Use it.
584
fcb21722
JM
585 PR c++/49813
586 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
587 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
588 as flag_isoc99 for 'restrict'.
589 (pp_c_specifier_qualifier_list): Likewise for _Complex.
590
02614448
ILT
5912011-07-21 Ian Lance Taylor <iant@google.com>
592
593 PR middle-end/49705
594 * c-common.c (c_disable_warnings): New static function.
595 (c_enable_warnings): New static function.
596 (c_fully_fold_internal): Change local unused_p to bool. Call
597 c_disable_warnings and c_enable_warnings rather than change
598 c_inhibit_evaluation_warnings.
599
34429675
JM
6002011-07-20 Jason Merrill <jason@redhat.com>
601
602 PR c++/6709 (DR 743)
603 PR c++/42603 (DR 950)
604 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
605 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
606 (CPP_DECLTYPE): New.
607 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
608
5d49b6a7
RG
6092011-07-19 Richard Guenther <rguenther@suse.de>
610
611 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
612 * c-omp.c (c_finish_omp_for): Likewise.
613
e84a58ff
EB
6142011-07-12 Eric Botcazou <ebotcazou@adacore.com>
615
616 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
617 body on the next line.
618
329af3c7
JM
6192011-07-08 Jason Merrill <jason@redhat.com>
620
4063e61b
JM
621 PR c++/45437
622 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
623
329af3c7
JM
624 PR c++/49673
625 * c-common.c (c_apply_type_quals_to_decl): Don't check
626 TYPE_NEEDS_CONSTRUCTING.
627
1a072294
RG
6282011-07-06 Richard Guenther <rguenther@suse.de>
629
630 * c-common.c (c_common_nodes_and_builtins):
631 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
632
fce5dddd
RG
6332011-07-05 Richard Guenther <rguenther@suse.de>
634
635 * c-common.c (c_common_nodes_and_builtins): Build all common
636 tree nodes first.
637
45d439ac
JJ
6382011-06-27 Jakub Jelinek <jakub@redhat.com>
639
56300785
JJ
640 * c-common.h (c_tree_chain_next): New static inline function.
641
45d439ac
JJ
642 * c-common.c (check_builtin_function_arguments): Handle
643 BUILT_IN_ASSUME_ALIGNED.
644
e0a8ecf2
AM
6452011-06-21 Andrew MacLeod <amacleod@redhat.com>
646
647 * c-common.c: Add sync_ or SYNC__ to builtin names.
648 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
649
6502011-06-20 Pierre Vittet <piervit@pvittet.com>
651
652 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
653 handler.
654 (gen_pragma_handler): New union.
655 (internal_pragma_handler): New type.
656 (c_register_pragma_with_data)
657 (c_register_pragma_with_expansion_and_data): New functions.
658
659 * c-pragma.c (registered_pragmas, c_register_pragma_1)
660 (c_register_pragma, c_register_pragma_with_expansion)
661 (c_invoke_pragma_handler): Changed to work with
662 internal_pragma_handler.
663 (c_register_pragma_with_data)
664 (c_register_pragma_with_expansion_and_data): New functions.
665
677f3fa8
JM
6662011-06-14 Joseph Myers <joseph@codesourcery.com>
667
668 * c-common.c: Include common/common-target.h.
669 (handle_section_attribute): Use
670 targetm_common.have_named_sections.
671 * c-cppbuiltin.c: Include common/common-target.h.
672 (c_cpp_builtins): Use targetm_common.except_unwind_info.
673
d7fc8c14
RG
6742011-06-10 Richard Guenther <rguenther@suse.de>
675
676 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
677 to print a IDENTIFIER_NODE.
678
10e48e39
RO
6792011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
680 Joseph Myers <joseph@codesourcery.com>
681
682 * c.opt (fbuilding-libgcc): New option.
683 * c-cppbuiltin.c (c_cpp_builtins): Define
684 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
685
6976ae51
JM
6862011-06-07 Jason Merrill <jason@redhat.com>
687
3ff60975
JM
688 * c-common.c (max_tinst_depth): Lower default to 900.
689
6976ae51
JM
690 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
691
009db074
RG
6922011-06-07 Richard Guenther <rguenther@suse.de>
693
694 * c-common.c (c_common_nodes_and_builtins): Do not set
695 size_type_node or call set_sizetype.
696
b4592b92
DS
6972011-06-07 Dodji Seketeli <dodji@redhat.com>
698
699 PR debug/49130
700 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
701 type when using pointer comparison to compare types.
702
014ab419
JW
7032011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
704
705 * c.opt: Add -Wdelete-non-virtual-dtor.
706 * c-opts.c (c_common_handle_option): Include it in -Wall.
707
4f60111f
NF
7082011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
709
710 PR bootstrap/49190
711
712 Revert:
713 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
714
715 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
716 not tree_common.
717
4cc4f2f4
JJ
7182011-05-27 Jakub Jelinek <jakub@redhat.com>
719
720 PR c++/49165
721 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
722 C++ don't call c_common_truthvalue_conversion on void type arms.
723
38e01f9e
NF
7242011-05-27 Nathan Froyd <froydnj@codesourcery.com>
725
726 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
727 (stmt_list_stack): Define.
728 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
729 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
730
92e948a8
NF
7312011-05-26 Nathan Froyd <froydnj@codesourcery.com>
732
733 * c-common.c (warning_candidate_p): Check for BLOCKs.
734
a2fc3e63
NF
7352011-05-26 Nathan Froyd <froydnj@codesourcery.com>
736
737 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
738 not tree_common.
739
0957c029
JJ
7402011-05-25 Jakub Jelinek <jakub@redhat.com>
741
742 * c-common.c (def_fn_type): Remove extra va_end.
743
828fb3ba
JM
7442011-05-23 Jason Merrill <jason@redhat.com>
745
746 PR c++/48106
747 * c-common.c (c_common_get_narrower): New.
748 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
749
dde05067
NF
7502011-05-23 Nathan Froyd <froydnj@codesourcery.com>
751
752 * c-common.h (check_function_arguments): Tweak prototype of
753 check_function_arguments.
754 * c-common.c (check_function_arguments): Likewise. Adjust
755 calls to check_function_nonnull, check_function_format, and
756 check_function_sentinel.
757 (check_function_sentinel): Take a FUNCTION_TYPE rather than
758 separate attributes and typelist arguments. Use
759 FOREACH_FUNCTION_ARGS to iterate over argument types.
760
3c0d13bf
PC
7612011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
762
763 * c-common.c (c_common_reswords): Reorder.
764 * c-common.h (rid): Likewise.
765
8242dd04
NF
7662011-05-10 Nathan Froyd <froydnj@codesourcery.com>
767
768 * c-common.c (def_fn_type): Don't call build_function_type, call
769 build_function_type_array or build_varargs_function_type_array
770 instead.
771 (c_common_nodes_and_builtins): Likewise.
772
3d528853
NF
7732011-05-05 Nathan Froyd <froydnj@codesourcery.com>
774
775 * c-common.c (c_add_case_label): Omit the loc argument to
776 build_case_label.
777 * c-common.h (build_case_label): Remove.
778 * c-semantics.c (build_case_label): Remove.
779
a04a722b
JM
7802011-05-05 Joseph Myers <joseph@codesourcery.com>
781
782 * c-objc.h (objc_start_method_definition): Update prototype.
783 * stub-objc.c (objc_start_method_definition): Add extra parameter.
784
e19a18d4
NF
7852011-05-04 Nathan Froyd <froydnj@codesourcery.com>
786
787 * c-common.c (check_main_parameter_types): Reindent. Don't use
788 TYPE_ARG_TYPES directly.
789 (handle_nonnull_attribute): Likewise.
790 (sync_resolve_params): Likewise.
791 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
792 to check_format_string.
793 (handle_format_attribute): Likewise.
794 (check_format_string): Take a function type to examine instead of
795 a type list. Use a function_arg_iterator to step through argument
796 types.
797
c62c040f
RG
7982011-05-04 Richard Guenther <rguenther@suse.de>
799
800 * c-common.c (fix_string_type): Use size_int for index type bounds.
801 (start_fname_decls): Do not pass NULL to build_int_cst.
802 (c_init_attributes): Likewise.
803 * c-lex.c (c_lex_with_flags): Likewise.
804
c12ff9d8
JM
8052011-04-27 Jason Merrill <jason@redhat.com>
806
807 * c-common.c (make_tree_vector_from_list): New.
808 * c-common.h: Declare it.
809
304dfbe3
RG
8102011-04-26 Richard Guenther <rguenther@suse.de>
811
812 PR preprocessor/48248
813 * c-ppoutput.c (maybe_print_line): Always optimize newlines
814 for output size with -P.
815
3c0d13bf
PC
8162011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
817
818 * c-common.c (struct c_common_resword): Add __underlying_type.
819 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
820
04695783
JM
8212011-04-20 Jim Meyering <meyering@redhat.com>
822
823 * c-format.c (init_dollar_format_checking): Remove useless
824 if-before-free.
825
0dc33c3c
NP
8262011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
827
828 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 829 (objc_detect_field_duplicates): New.
0dc33c3c 830 * stub-objc.c: Likewise.
3c0d13bf 831
c59633d9
NP
8322011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
833
834 * stub-objc.c (objc_declare_protocols): Renamed to
835 objc_declare_protocol.
836 * c-objc.h: Likewise.
3c0d13bf 837
32dabdaf
NP
8382011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
839
840 * stub-objc.c (objc_declare_class): Updated argument name.
841
81f653d6
NF
8422011-04-12 Nathan Froyd <froydnj@codesourcery.com>
843
844 * c-common.h (c_common_init_ts): Declare.
845 * c-common.c (c_common_init_ts): Define.
846
eb345401
NP
8472011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
848
849 * c-objc.h (objc_build_message_expr): Updated prototype.
850 * stub-objc.c (objc_build_message_expr): Likewise.
851
a358e188
MJ
8522011-04-12 Martin Jambor <mjambor@suse.cz>
853
854 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
855 of cgraph_node.
856
e6313a78
RG
8572011-04-11 Richard Guenther <rguenther@suse.de>
858
859 * c-common.c (complete_array_type): Build a range type of
860 proper type.
861
dcf0c47e
NF
8622011-04-08 Nathan Froyd <froydnj@codesourcery.com>
863
864 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
865 (handle_type_generic_attribute): Likewise.
866
1ee44b26
JM
8672011-04-07 Jason Merrill <jason@redhat.com>
868
869 PR c++/48450
870 * c-common.c (c_common_truthvalue_conversion): Don't ignore
871 conversion from C++0x scoped enum.
872
acce4e77
JM
8732011-04-06 Joseph Myers <joseph@codesourcery.com>
874
875 * c-target-def.h: New file.
876 * c-target.def: New file.
877 * c-target.h: New file.
878 * c-common.c (targetcm): Don't define here.
879 * c-common.h (default_handle_c_option): Declare.
880 * c-format.c: Include c-target.h instead of target.h.
881 * c-opts.c: Include c-target.h instead of target.h. Explicitly
882 include tm.h.
883 (default_handle_c_option): Move from targhooks.c.
884
e2eefb55
JJ
8852011-03-29 Jakub Jelinek <jakub@redhat.com>
886
887 PR preprocessor/48248
888 * c-ppoutput.c (print): Add src_file field.
889 (init_pp_output): Initialize it.
890 (maybe_print_line): Don't optimize by adding up to 8 newlines
891 if map->to_file and print.src_file are different file.
892 (print_line): Update print.src_file.
893
ba78087b
KT
8942011-03-25 Kai Tietz <ktietz@redhat.com>
895
896 * c-ada-spec.c (compare_comment): Use filename_cmp
897 instead of strcmp for filename.
898
0edf1bb2
JL
8992011-03-25 Jeff Law <law@redhat.com>
900
901 * c-family/c-common.c (def_fn_type): Add missing va_end.
902
c7dc8804
JM
9032011-03-25 Jason Merrill <jason@redhat.com>
904
905 * c.opt: Add -std=c++03.
906
d1d879b1
EB
9072011-03-22 Eric Botcazou <ebotcazou@adacore.com>
908
909 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
910
62d784f7
KT
9112011-03-17 Kai Tietz
912
913 PR target/12171
5050afdf
KT
914 * c-pretty-print.c (pp_c_specifier_qualifier_list):
915 Display allowed attributes for function pointer types.
916 (pp_c_attributes_display): New function to display
917 attributes having affects_type_identity flag set to true.
918 * c-pretty-print.h (pp_c_attributes_display): New prototype.
919
62d784f7
KT
920 * c-common.c (c_common_attribute_table):
921 Add new element.
922 (c_common_format_attribute_table): Likewise.
923
82d37118
JM
9242011-03-18 Jason Merrill <jason@redhat.com>
925
49a000c3
JM
926 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
927 * c-common.h: Don't declare it here.
928 * c-common.c: Or define it here.
929 * c-opts.c (c_common_handle_option): Or set it here.
930
82d37118
JM
931 PR c++/35315
932 * c-common.c (handle_transparent_union_attribute): Don't
933 make a duplicate type in C++.
934
17bc631c
JM
9352011-03-15 Jason Merrill <jason@redhat.com>
936
937 * c-common.c (max_constexpr_depth): New.
938 * c-common.h: Declare it.
939 * c-opts.c (c_common_handle_option): Set it.
940 * c.opt (fconstexpr-depth): New option.
941
1b9b91a6
JM
9422011-03-11 Jason Merrill <jason@redhat.com>
943
f231b5ff
JM
944 * c-common.c (attribute_takes_identifier_p): Add missing const.
945
1b9b91a6
JM
946 PR c++/46803
947 * c-common.c (attribute_takes_identifier_p): Assume that an
948 unknown attribute takes an identifier.
949
a19e4d44
NF
9502011-03-07 Nathan Froyd <froydnj@codesourcery.com>
951
952 PR c/47786
953 * c-common.c (c_type_hash): Call list_length instead of iterating
954 through DECL_CHAIN. Rename 'i' to 'n_elements'.
955
982d62f6
JJ
9562011-02-19 Jakub Jelinek <jakub@redhat.com>
957
958 PR c/47809
959 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
960
0a256240
NP
9612011-02-17 Iain Sandoe <iains@gcc.gnu.org>
962
963 * c.opt (fobjc-abi-version=) New.
964 (fobjc-nilcheck): New.
965
ba9e6dd5
NF
9662011-02-03 Nathan Froyd <froydnj@codesourcery.com>
967
968 PR c++/46890
969 * c-common.h (keyword_is_decl_specifier): Declare.
970 * c-common.c (keyword_is_decl_specifier): Define.
971 (keyword_is_function_specifier): New function.
972
7273813a
JJ
9732011-01-26 Jakub Jelinek <jakub@redhat.com>
974
975 PR c/47473
976 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
977 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
978 REAL_TYPE.
979
908ef79b
AC
9802011-01-26 Arnaud Charlet <charlet@adacore.com>
981
982 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
983
237e9384
JJ
9842011-01-26 Jakub Jelinek <jakub@redhat.com>
985
986 PR pch/47430
987 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
988 after init_c_lex if pch_file is set.
989
47ea1edf
DK
9902011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
991
d4dba752 992 PR c++/43601
47ea1edf
DK
993 * c.opt (-fkeep-inline-dllexport): New switch.
994
2aa9c6ae
RG
9952011-01-12 Richard Guenther <rguenther@suse.de>
996
997 PR middle-end/32511
998 * c-common.c (handle_weak_attribute): Warn instead of error
999 on declaring an inline function weak.
1000
7bd11157
TT
10012011-01-05 Tom Tromey <tromey@redhat.com>
1002
1003 * c-common.h (lvalue_error): Update.
1004 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
1005 not error.
1006
0e66e494
NP
10072010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
1008
b4f588c4
NP
1009 PR objc/47075
1010 * c-objc.h (objc_finish_message_expr): Added argument to
1011 prototype.
1012
f4da8dce
NF
10132010-12-22 Nathan Froyd <froydnj@codesourcery.com>
1014
1015 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
1016 Use prototype_p.
1017
46270f14
NP
10182010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
1019
1020 * c-objc.h (objc_maybe_warn_exceptions): New.
1021 * stub-objc.c (objc_maybe_warn_exceptions): New.
1022
4816c593
NF
10232010-12-10 Nathan Froyd <froydnj@codesourcery.com>
1024
1025 * c-common.h (readonly_error): Declare.
1026 * c-common.c (readonly_error): Define.
1027
7a6daeb0
NF
10282010-12-09 Nathan Froyd <froydnj@codesourcery.com>
1029
1030 * c-common.h (invalid_indirection_error): Declare.
1031 * c-common.c (invalid_indirection_error): Define.
1032
892f6119
RG
10332010-12-03 Richard Guenther <rguenther@suse.de>
1034
1035 PR c/46745
1036 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
1037 (pp_c_unary_expression): Likewise.
1038 (pp_c_expression): Likewise.
1039
6c39e757
NP
10402010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
1041
1042 * c-common.h (objc_finish_function): New.
1043 (objc_non_volatilized_type): Removed.
1044 (objc_type_quals_match): Removed.
1045 * stub-objc.c (objc_finish_function): New.
1046 (objc_non_volatilized_type): Removed.
1047 (objc_type_quals_match): Removed.
1048
7c475d11
JM
10492010-11-30 Joseph Myers <joseph@codesourcery.com>
1050
1051 * c-common.h (parse_optimize_options): Declare.
1052 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
1053 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
1054
71f3e391
JM
10552010-11-29 Joseph Myers <joseph@codesourcery.com>
1056
1057 * c-opts.c (check_deps_environment_vars): Use getenv instead of
1058 GET_ENVIRONMENT.
1059 * c-pch.c (O_BINARY): Don't define here.
1060 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
1061
d5fabb58
JM
10622010-11-25 Joseph Myers <joseph@codesourcery.com>
1063
1064 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
1065 targetm.except_unwind_info.
1066
299404a1
JM
10672010-11-23 Joseph Myers <joseph@codesourcery.com>
1068
1069 * c-opts.c (c_common_handle_option): Pass location to
1070 set_struct_debug_option.
1071
c98cd5bf
JM
10722010-11-23 Joseph Myers <joseph@codesourcery.com>
1073
1074 * c-common.c (visibility_options): Move from ../opts.c.
1075 * c-common.h (struct visibility_flags, visibility_options):
1076 Declare here.
1077 * c-opts.c (finish_options): Rename to c_finish_options.
1078 (c_common_init): Update call to finish_options.
1079
a9546771
NP
10802010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
1081
1082 PR objc/34033
1083 * c-lex.c (lex_string): Check that each string in an Objective-C
1084 string concat sequence starts with either one or zero '@', and
1085 that there are no spurious '@' signs at the end.
1086
24a57808
JM
10872010-11-20 Joseph Myers <joseph@codesourcery.com>
1088
1089 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
1090 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
1091 HANDLE_PRAGMA_VISIBILITY.
1092 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
1093 HANDLE_PRAGMA_VISIBILITY): Don't define.
1094 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
1095
a9aa2c3a
NF
10962010-11-20 Nathan Froyd <froydnj@codesourcery.com>
1097
1098 PR c++/16189
1099 PR c++/36888
1100 PR c++/45331
1101 * c-common.h (keyword_begins_type_specifier): Declare.
1102 (keyword_is_storage_class_specifier): Declare.
1103 (keyword_is_type_qualifier): Declare.
1104 * c-common.c (keyword_begins_type_specifier): New function.
1105 (keyword_is_storage_class_specifier): New function.
1106 (keyword_is_type_qualifier): Declare.
1107
5386338c
JM
11082010-11-19 Joseph Myers <joseph@codesourcery.com>
1109
1110 PR c/46547
1111 * c-common.c (in_late_binary_op): Define.
1112 (c_common_truthvalue_conversion): Check in_late_binary_op before
1113 calling c_save_expr.
1114 * c-common.h (in_late_binary_op): Declare.
1115
69ccdddb
JM
11162010-11-19 Joseph Myers <joseph@codesourcery.com>
1117
1118 * c-opts.c (c_common_handle_option): Update calls to
1119 set_struct_debug_option.
1120
6b192a09
NP
11212010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
1122
1123 * c-common.h (objc_declare_protocols): Added additional argument.
1124 * stub-objc.c (objc_declare_protocol): Same change.
1125
fb52b50a
NF
11262010-11-18 Nathan Froyd <froydnj@codesourcery.com>
1127
1128 PR c/33193
1129 * c-common.h (build_real_imag_expr): Declare.
1130 * c-semantics.c (build_real_imag_expr): Define.
1131
b37421c6
JM
11322010-11-17 Joseph Myers <joseph@codesourcery.com>
1133
1134 * c-opts.c (c_common_parse_file): Take no arguments.
1135 * c-common.h (c_common_parse_file): Update prototype.
1136
07078664
JJ
11372010-11-16 Jakub Jelinek <jakub@redhat.com>
1138
1139 PR c++/46401
1140 * c-common.c (warning_candidate_p): Don't track non-const calls
1141 or STRING_CSTs.
1142
c6a13190
ILT
11432010-11-15 Ian Lance Taylor <iant@google.com>
1144
1145 * c-lex.c (init_c_lex): Set macro debug callbacks if
1146 flag_dump_go_spec is set.
1147
925e8657
NP
11482010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
1149
1150 * c-common.h (objc_build_incr_expr_for_property_ref): New.
1151 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
1152
bb0a9581
NF
11532010-11-15 Nathan Froyd <froydnj@codesourcery.com>
1154
1155 PR preprocessor/45038
1156 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
1157 dialects.
1158
c5fa0890
JM
11592010-11-12 Joseph Myers <joseph@codesourcery.com>
1160
1161 * c-common.h (c_family_lang_mask): Declare.
1162 * c-opts.c (c_family_lang_mask): Make extern.
1163 * c-pragma.c (handle_pragma_diagnostic): Use
1164 control_warning_option.
1165
a4d8c676
JM
11662010-11-12 Joseph Myers <joseph@codesourcery.com>
1167
1168 * c-common.c (parse_optimize_options): Update call to
1169 decode_options.
1170 * c-common.h (c_common_handle_option): Update prototype.
1171 * c-opts.c (c_common_handle_option): Take location_t parameter and
1172 pass it to other functions.
1173
f954bd2c
JM
11742010-11-11 Joseph Myers <joseph@codesourcery.com>
1175
1176 * c-opts.c (warning_as_error_callback): Remove.
1177 (c_common_initialize_diagnostics): Don't call
1178 register_warning_as_error_callback.
1179 (c_common_handle_option): Handle -Werror=normalized= here.
1180
d8a07487
JM
11812010-11-10 Joseph Myers <joseph@codesourcery.com>
1182
1183 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
1184 in diagnostic.
1185 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
1186 letter.
1187 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
1188 Remove trailing '.' from diagnostics.
1189 * c.opt (Wwrite-strings_: Avoid '`' in help text.
1190
d5478783
JM
11912010-11-10 Joseph Myers <joseph@codesourcery.com>
1192
1193 * c-common.c (parse_optimize_options): Pass global_dc to
1194 decode_options.
1195 * c-opts.c (c_common_handle_option): Pass &global_options to
1196 set_Wstrict_aliasing.
1197 * c.opt (v): Don't mark Common or document here.
1198
91ebb981
IS
11992010-11-06 Iain Sandoe <iains@gcc.gnu.org>
1200
1201 PR target/44981
1202 * c-format.c (format_type): New type gcc_objc_string_format_type.
1203 (valid_stringptr_type_p): New.
1204 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
1205 (check_format_string): Pass expected type, use
1206 valid_stringptr_type_p (), check that the format string types are
1207 consistent with the format specification.
1208 (decode_format_attr): Warn if NSString is used outside objective-c.
1209 (format_types_orig): Add NSString.
1210 (format_name): New.
1211 (format_flags): New.
1212 (check_format_arg): Handle format strings requiring an external parser.
1213 first_target_format_type: New variable.
1214 (handle_format_attribute): Set up first_target_format_type, pass the
1215 expected format arg string type to check_format_string().
1216 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
1217 * stub-objc.c (objc_string_ref_type_p): New.
1218 (objc_check_format_arg): New.
1219
bede2adc
NP
12202010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
1221
1222 Fixed using the Objective-C 2.0 dot-syntax with class names.
1223 * c-common.h (objc_build_class_component_ref): New.
1224 * stub-objc.c (objc_build_class_component_ref): New.
1225
9a179d01
NP
12262010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1227
1228 * c.opt (Wproperty-assign-default): New option.
1229
22d8d616
NP
12302010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1231
1232 Implemented -fobjc-std=objc1 flag.
1233 * c.opt (fobjc-std=objc1): New option.
1234
2debdb4f
NP
12352010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
1236
1237 Implemented format and noreturn attributes for Objective-C methods.
1238 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
1239 attribute for Objective-C methods.
1240
ec52b111
JM
12412010-10-31 Jason Merrill <jason@redhat.com>
1242
1243 * c-common.c (conversion_warning, warn_for_collisions_1): Use
1244 EXPR_LOC_OR_HERE.
1245
46a88c12
NP
12462010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
1247
1248 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
1249 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
1250 (objc_add_property_declaration): Removed arguments for copies and
1251 ivar.
1252 (objc_build_getter_call): Renamed to
1253 objc_maybe_build_component_ref.
1254 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1255 (objc_is_property_ref): New.
1256 * c-common.c (c_common_reswords): Removed copies and ivar.
1257 * stub-objc.c (objc_add_property_declaration): Removed arguments
1258 for copies and ivar.
1259 (objc_build_getter_call): Renamed to
1260 objc_maybe_build_component_ref.
1261 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1262 (objc_is_property_ref): New.
1263
1e4bf85b
AC
12642010-10-29 Arnaud Charlet <charlet@adacore.com>
1265 Matthew Gingell <gingell@adacore.com>
1266
1267 * c-ada-spec.c (separate_class_package): New function.
1268 (pp_ada_tree_identifier): Prefix references to C++ classes with the
1269 name of their enclosing package.
1270 (print_ada_declaration): Use separate_class_package.
1271
81f0bab2
JM
12722010-10-27 Jason Merrill <jason@redhat.com>
1273
2b08f2c5
JM
1274 * c-common.c (c_common_reswords): Add __is_literal_type.
1275 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
1276
81f0bab2
JM
1277 * c-common.c (check_case_value): Remove special C++ code.
1278
200290f2
NP
12792010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1280
1281 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
1282 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
1283 and RID_LAST_PATTR.
1284 (objc_add_property_declaration): Added additional arguments.
1285 (objc_property_attribute_kind): Removed.
1286 (objc_set_property_attr): Removed.
1287 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
1288 copy and nonatomic.
1289 * stub-objc.c (objc_add_property_declaration): Added additional
1290 arguments.
1291 (objc_set_property_attr): Removed.
1292
f614132b
NP
12932010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1294
1295 * c-common.h (objc_add_property_variable): Renamed to
1296 objc_add_property_declaration. Added location argument.
1297 * stub-objc.c (objc_add_property_variable): Same change.
1298
b8a18805
NP
12992010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
1300
1301 * c-common.h (objc_maybe_printable_name): New.
1302 * stub-objc.c (objc_maybe_printable_name): New.
1303
30cd1c5d
AS
13042010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1305 Andrew Pinski <pinskia@gmail.com>
1306
1307 * c-common.h (c_common_mark_addressable_vec): Declare.
1308 * c-common.c (c_common_mark_addressable_vec): New function.
1309
249a82c4
NP
13102010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1311
1312 * c-common.h (objc_set_method_type): Removed.
1313 (objc_add_method_declaration): Added boolean argument.
1314 (objc_start_method_definition): Same change.
1315 (objc_build_method_signature): Same change.
1316 * stub-objc.c (objc_set_method_type): Removed.
1317 (objc_add_method_declaration): Added boolean argument.
1318 (objc_start_method_definition): Same change.
1319 (objc_build_method_signature): Same change.
1320
977e30bc
NP
13212010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1322
1323 * c-common.h (finish_file): Removed.
1324 (objc_write_global_declarations): New.
1325 * c-opts.c (c_common_parse_file): Do not call finish_file.
1326 * stub-objc.c (objc_write_global_declarations): New.
1327
da57d1b9
NP
13282010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1329
1330 Implemented parsing @synthesize and @dynamic for
1331 Objective-C/Objective-C++.
1332 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
1333 (objc_add_synthesize_declaration): New.
1334 (objc_add_dynamic_declaration): New.
1335 * c-common.c (c_common_reswords): Add synthesize and dynamic.
1336 * stub-objc.c (objc_add_synthesize_declaration): New.
1337 (objc_add_dynamic_declaration): New.
1338
0069111f
MM
13392010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1340
1341 PR target/46041
1342 * c-cppbuiltin.c (mode_has_fma): Move function here from
1343 builtins.c. Don't use the fma optab, instead just use the
1344 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
1345 using -save-temps.
1346
e426b47b
NP
13472010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1348
1349 Merge from 'apple/trunk' branch on FSF servers.
0069111f 1350
e426b47b
NP
1351 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
1352
1353 Radar 4330422
1354 * c-common.h (objc_non_volatilized_type): New declaration
1355 * stub-objc.c (objc_non_volatilized_type): New stub.
1356
90fbfdc3
NP
13572010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
1358
e426b47b 1359 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
1360
1361 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
1362
1363 Radar 4133425
1364 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 1365 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 1366
c37d8c30
IS
13672010-10-17 Iain Sandoe <iains@gcc.gnu.org>
1368
1369 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
1370 * c-common.h (enum rid): Add RID_AT_PACKAGE.
1371 (objc_ivar_visibility_kind): New enum.
1372 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 1373 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
1374 visibility enum.
1375
1b1562a5
MM
13762010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1377
1378 * c-cppbuiltin.c (builtin_define_float_constants): Emit
1379 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
1380 has the appropriate fma builtins.
1381 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
1382
668ea4b1
IS
13832010-10-14 Iain Sandoe <iains@gcc.gnu.org>
1384
1b1562a5 1385 merge from FSF apple 'trunk' branch.
668ea4b1 1386 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 1387
668ea4b1
IS
1388 Radars 4436866, 4505126, 4506903, 4517826
1389 * c-common.c (c_common_resword): Define @property and its attributes.
1390 * c-common.h: Define property attribute enum entries.
1391 (OBJC_IS_PATTR_KEYWORD): New.
1392 (objc_property_attribute_kind): New enum.
1393 Declare objc_set_property_attr (), objc_add_property_variable (),
1394 objc_build_getter_call () and objc_build_setter_call ().
1395 * stub-objc.c (objc_set_property_attr): New stub.
1396 (objc_add_property_variable): Likewise.
1397 (objc_build_getter_call): Likewise.
1398 (objc_build_setter_call) Likewise.
1b1562a5 1399
a1178b30
IS
14002010-10-13 Iain Sandoe <iains@gcc.gnu.org>
1401
1b1562a5 1402 merge from FSF apple 'trunk' branch.
a1178b30
IS
1403 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
1404
1405 Radar 3803157 (method attributes)
1406 * c-common.c (handle_deprecated_attribute): Recognize
1407 objc methods as valid declarations.
1408 * c-common.h: Declare objc_method_decl ().
1b1562a5 1409 * stub-objc.c (objc_method_decl): New stub.
a1178b30 1410
a75bfaa6
JM
14112010-10-08 Joseph Myers <joseph@codesourcery.com>
1412
1413 * c-common.c (parse_optimize_options): Call
1414 decode_cmdline_options_to_array_default_mask before
1415 decode_options. Update arguments to decode_options.
1416 * c-common.h (c_common_init_options_struct): Declare.
1417 * c-opts.c (c_common_init_options_struct): New. Split out from
1418 c_common_init_options.
1419
f05b9d93
NP
14202010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
1421
1422 Implemented fast enumeration for Objective-C.
1423 * c-common.h (objc_finish_foreach_loop): New.
1424 * stub-objc.c (objc_finish_foreach_loop): New.
1425
1ebe4b4f
JM
14262010-10-05 Joseph Myers <joseph@codesourcery.com>
1427
1428 * c-common.h (struct diagnostic_context): Don't declare here.
1429 (c_common_initialize_diagnostics): Declare using
1430 diagnostic_context typedef.
1431 * c-opts.c (c_common_handle_option): Pass global_dc to
1432 handle_generated_option.
1433
d4d24ba4
JM
14342010-10-04 Joseph Myers <joseph@codesourcery.com>
1435
1436 * c-opts.c (c_common_handle_option): Pass &global_options_set to
1437 handle_generated_option.
1438
478a1c5b
ILT
14392010-10-03 Ian Lance Taylor <iant@google.com>
1440
1441 * c.opt (-fplan9-extensions): New option.
1442
82a1c2fe
FXC
14432010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1444
1445 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
1446 Remove.
1447 (c_cpp_builtins): Call functions from cppbuiltin.c instead
1448 of duplicating code.
1449
92902b1b
IS
14502010-09-30 Iain Sandoe <iains@gcc.gnu.org>
1451
1452 * c-common.c: Add two new entries for @optional
1453 and @required keywords.
1454
1455 merge from FSF 'apple/trunk' branch.
1456 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
1457
1458 Radar 4386773
1459 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
1460 objective-c keywords.
1461 (objc_set_method_opt): New declaration.
1462 * stub-objc.c (objc_set_method_opt): New stub.
1463
46625112
JM
14642010-09-30 Joseph Myers <joseph@codesourcery.com>
1465
1466 * c-common.c (handle_optimize_attribute): Pass &global_options to
1467 cl_optimization_save and cl_optimization_restore.
1468 * c-opts.c (c_common_handle_option): Pass &global_options to
1469 handle_generated_option.
1470 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
1471 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
1472 &global_options to cl_optimization_restore.
1473
49b91f05
NP
14742010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
1475
1476 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
1477 Objective-C/Objective-C++ keywords.
1478
13ed556f 14792010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57
NP
1480
1481 Merge from 'apple/trunk' branch on FSF servers.
1482
1483 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
1484
1485 Radar 4281748
1486 * c-common.h (objc_check_global_decl): New declaration.
1487 * stub-objc.c (objc_check_global_decl): New stub.
1488
f0036cca
JM
14892010-09-29 Joseph Myers <joseph@codesourcery.com>
1490
1491 * c.opt: Don't use VarExists.
1492
e3339d0f
JM
14932010-09-29 Joseph Myers <joseph@codesourcery.com>
1494
1495 * c-common.c (c_cpp_error): Update names of diagnostic_context
1496 members.
1497 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
1498 cl_optimization members.
1499 * c-opts.c (warning_as_error_callback, c_common_handle_option,
1500 sanitize_cpp_opts, finish_options): Update names of cpp_options
1501 members.
1502
1973201f
NP
15032010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1504
1505 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
1506 (objc_is_reserved_word): Removed.
1507 * c-common.c: Updated comments.
1508 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
1509 objc_is_reserved_word.
1510 * stub-objc.c (objc_is_reserved_word): Removed.
1511
f7e71da5
IS
15122010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1513
1514 * c-common.h (objc_add_method_declaration): Adjust prototype to
1515 include attributes.
1516 (objc_start_method_definition): Likewise.
1517 (objc_build_keyword_decl): Likewise.
1518 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
1519 (objc_start_method_definition): Likewise.
1520 (objc_build_keyword_decl): Likewise.
1521
c165dca7
IS
15222010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1523
1524 * c-common.h (objc_start_class_interface): Adjust prototype.
1525 (objc_start_category_interface): Likewise.
1526 (objc_start_protocol): Likewise.
1527 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
1528 (objc_start_class_interface): Likewise.
1529 (objc_start_category_interface): Likewise.
1530
7458026b
ILT
15312010-09-27 Ian Lance Taylor <iant@google.com>
1532
1533 * c-common.c (c_common_attribute_table): Add no_split_stack.
1534 (handle_no_split_stack_attribute): New static function.
1535
b581b85b
NP
15362010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
1537
1538 Merge from 'apple/trunk' branch on FSF servers.
1539
1540 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
1541
1542 Radar 4229905
1543 * c-common.h (objc_have_common_type): New declaration.
1544 * stub-objc.c (objc_have_common_type): New stub.
1545
1546 2005-06-22 Ziemowit Laski <zlaski@apple.com>
1547
1548 Radar 4154928
1549 * c-common.h (objc_common_type): New prototype.
1550 * stub-objc.c (objc_common_type): New stub.
1551
46a4da10
JH
15522010-09-24 Jan Hubicka <jh@suse.cz>
1553
1554 * c-common.c (handle_leaf_attribute): New function.
1555 (struct attribute_spec c_common_att): Add leaf.
1556
e200444e
JM
15572010-09-22 Joseph Myers <joseph@codesourcery.com>
1558
1559 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
1560 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
1561 -dump, -dump=, -imacros, -imacros=, -include, -include=,
1562 -include-barrier, -include-directory, -include-directory=,
1563 -include-directory-after, -include-directory-after=,
1564 -include-prefix, -include-prefix=, -include-with-prefix,
1565 -include-with-prefix=, -include-with-prefix-after,
1566 -include-with-prefix-after=, -include-with-prefix-before,
1567 -include-with-prefix-before=, -no-integrated-cpp,
1568 -no-line-commands, -no-standard-includes, -no-warnings, -output,
1569 -output=, -pedantic, -pedantic-errors, -preprocess,
1570 -print-missing-file-dependencies, -trace-includes, -traditional,
1571 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
1572 -user-dependencies, -verbose, -write-dependencies,
1573 -write-user-dependencies, no-integrated-cpp, traditional): New.
1574
29a80ea6
NP
15752010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1576
1577 PR objc/23710
ac1fc2fc
NP
1578 * c-common.h (objc_start_method_definition): Return bool instead
1579 of void.
1580 * stub-objc.c (objc_start_method_definition): Return bool instead
1581 of void.
1582
15832010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1584
1585 PR objc/25965
1586 * c-common.h (objc_get_interface_ivars): New declaration.
1587 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 1588
de621752
ILT
15892010-09-15 Ian Lance Taylor <iant@google.com>
1590
1591 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 1592 messages. Remove period at end of warning message.
de621752 1593
ba885ec5
NS
15942010-09-09 Nathan Sidwell <nathan@codesourcery.com>
1595
1596 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
1597 (handle_alias_attribute): ... here.
1598 (handle_ifunc_attribute): New.
1599
c5ee1358
MM
16002010-09-06 Mark Mitchell <mark@codesourcery.com>
1601
1602 * c-common.h (do_warn_double_promotion): Declare.
1603 * c-common.c (do_warn_double_promotion): Define.
1604
0a0b3574
MM
16052010-09-05 Mark Mitchell <mark@codesourcery.com>
1606
1607 * c.opt (Wdouble-promotion): New.
1608
d1779886
JM
16092010-09-02 Joseph Myers <joseph@codesourcery.com>
1610
1611 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
1612 fvtable-thunks, fxref): Mark no longer supported in help text.
1613
2d2bd949
JM
16142010-09-02 Joseph Myers <joseph@codesourcery.com>
1615
1616 * c.opt (Wimport, fall-virtual, falt-external-templates,
1617 fdefault-inline, fenum-int-equiv, fexternal-templates,
1618 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
1619 fname-mangling-version-, fnew-abi, fnonnull-objects,
1620 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
1621 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
1622 applicable.
1623 (fhandle-exceptions): Mark with Alias and Warn.
1624 * c-opts.c (c_common_handle_option): Don't handle options marked
1625 as ignored.
1626
5de8299c
JM
16272010-09-02 Joseph Myers <joseph@codesourcery.com>
1628
1629 * c.opt (Wcomments, Werror-implicit-function-declaration,
1630 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
1631 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
1632 aliases.
1633 * c-common.c (option_codes): Use OPT_Wcomment instead of
1634 OPT_Wcomments.
1635 * c-opts.c (warning_as_error_callback, c_common_handle_option):
1636 Don't handle options marked as aliases.
1637
0ceb0201
RG
16382010-08-25 Richard Guenther <rguenther@suse.de>
1639
1640 * c-common.c (c_common_get_alias_set): Remove special
1641 handling for pointers.
1642
ac47786e
NF
16432010-08-20 Nathan Froyd <froydnj@codesourcery.com>
1644
1645 * c-common.c: Use FOR_EACH_VEC_ELT.
1646 * c-gimplify.c: Likewise.
1647 * c-pragma.c: Likewise.
1648
c878765b
JM
16492010-08-16 Joseph Myers <joseph@codesourcery.com>
1650
1651 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
1652 RejectDriver.
1653 (MMDX): Change back to MMD. Mark NoDriverArg instead of
1654 RejectDriver.
1655 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
1656 instead of OPT_MDX and OPT_MMDX.
1657
603349bf
JM
16582010-08-16 Joseph Myers <joseph@codesourcery.com>
1659
1660 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
1661
644fa7ac
JM
16622010-08-12 Joseph Myers <joseph@codesourcery.com>
1663
1664 * c.opt (MD, MMD): Change to MDX and MMDX.
1665 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
1666
481e1176
JM
16672010-08-11 Joseph Myers <joseph@codesourcery.com>
1668
1669 * c-opts.c (c_common_handle_option): Call handle_generated_option
1670 instead of handle_option.
1671
ac8dc9f7
NF
16722010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1673
1674 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
1675 (maybe_apply_renaming_pragma): Delete unneeded declarations.
1676
4f8c876d
NF
16772010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1678
1679 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
1680 (pending_redefine_extname): Change type to a VEC.
1681 (add_to_renaming_pragma_list): Update for new type of
1682 pending_redefine_extname.
ac8dc9f7 1683 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 1684
3b0c690e
AC
16852010-08-04 Arnaud Charlet <charlet@adacore.com>
1686
1687 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
1688 visited.
1689 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
1690 decide whether a type has already been declared/seen.
1691 Do not go to the original type.
1692 (dump_nested_types): New parameter forward.
1693 Generate forward declaration if needed and mark type as visited.
1694 (print_ada_declaration): Call dump_nested_types if not already done.
1695 Mark types as visited.
1696
1890bccc
JM
16972010-08-03 Joseph Myers <joseph@codesourcery.com>
1698
1699 * c.opt (-print-pch-checksum): Remove option.
1700 * c-opts.c (c_common_handle_option): Don't handle
1701 OPT_print_pch_checksum.
1702
5f20c657
JM
17032010-07-27 Joseph Myers <joseph@codesourcery.com>
1704
1705 * c-common.h (c_common_handle_option): Update prototype and return
1706 value type.
1707 * c-opts.c (c_common_handle_option): Update prototype and return
1708 value type. Update calls to handle_option and
1709 enable_warning_as_error.
1710
f551f80c
JJ
17112010-07-27 Jakub Jelinek <jakub@redhat.com>
1712
1713 PR c/45079
1714 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
1715
61ff2bdc
JM
17162010-07-27 Joseph Myers <joseph@codesourcery.com>
1717
1718 * c-common.h (c_common_missing_argument): Remove.
1719 * c-opts.c (c_common_missing_argument): Remove.
1720 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
1721 idirafter, imacros, include, isysroot, isystem, iquote): Add
1722 MissingArgError.
1723 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
1724
7a9bf9a4
JM
17252010-07-27 Joseph Myers <joseph@codesourcery.com>
1726
1727 * c-common.h (c_common_option_lang_mask,
1728 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
1729 New.
1730 (c_common_init_options): Update prototype.
1731 * c-opts.c (c_common_option_lang_mask): New.
1732 (c_common_initialize_diagnostics): Split out of
1733 c_common_init_options.
1734 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
1735 New.
1736 (c_common_init_options): Update prototype. Use decoded options in
1737 search for -lang-asm.
1738
910ad8de
NF
17392010-07-15 Nathan Froyd <froydnj@codesourcery.com>
1740
1741 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
1742 * c-format.c: Likewise.
1743
718f9c0f
MLI
17442010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
1745
1746 * c-common.h: Include diagnostic-core.h. Error if already
1747 included.
1748 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
1749
4d451982
MLI
17502010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1751
1752 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
1753 Do not include expr.h
1754 (vector_mode_valid_p): Move here.
1755
119fe915
SB
17562010-06-21 DJ Delorie <dj@redhat.com>
1757
1758 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
1759 allow these pragmas anywhere.
1760
17612010-06-14 Jakub Jelinek <jakub@redhat.com>
1762
1763 PR bootstrap/44509
1764 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
1765 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
1766 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
1767 ggc_strdup instead of xstrdup.
1768
17692010-06-10 Jakub Jelinek <jakub@redhat.com>
1770
1771 * c-cppbuiltin.c: Include cpp-id-data.h.
1772 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
1773 (lazy_hex_fp_value): New function.
1774 (builtin_define_with_hex_fp_value): Provide definitions lazily.
1775
6662d794
MLI
17762010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1777
1778 * c-gimplify.c: Do not include tree-flow.h
1779
38f8b050
JR
17802010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
1781
1782 PR other/44034
1783 * c-common.c: Rename targetm member:
1784 targetm.enum_va_list -> targetm.enum_va_list_p
1785
9589f23e
AS
17862010-06-28 Anatoly Sokolov <aesok@post.ru>
1787
1788 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
1789
3b06d379
SB
17902010-06-28 Steven Bosscher <steven@gcc.gnu.org>
1791
1792 * c-cppbuiltin.c: Do not include except.h.
1793
d166d4c3
AK
17942010-06-24 Andi Kleen <ak@linux.intel.com>
1795
1796 * c-common.c (warn_for_omitted_condop): New.
1797 * c-common.h (warn_for_omitted_condop): Add prototype.
1798
70cb8be6
JM
17992010-06-21 Joseph Myers <joseph@codesourcery.com>
1800
1801 * c.opt (lang-objc): Remove.
1802 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
1803
a4c97feb
JR
18042010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
1805
1806 * c-opts.c: Include "tm_p.h".
1807
6e2f1956
JM
18082010-06-20 Joseph Myers <joseph@codesourcery.com>
1809
1810 * c-common.c (parse_optimize_options): Update call to
1811 decode_options.
1812
bc87224e
NF
18132010-06-18 Nathan Froyd <froydnj@codesourcery.com>
1814
1815 * c-common.c (record_types_used_by_current_var_decl): Adjust for
1816 new type of types_used_by_cur_var_decl.
1817
b49cf425
JR
18182010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
1819
1820 PR bootstrap/44512
1821 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
1822 for C++ standard compliance.
1823
59f9c2ed
JM
18242010-06-16 Jason Merrill <jason@redhat.com>
1825
1826 * c.opt: Add -Wnoexcept.
1827
33766b66
RG
18282010-06-16 Richard Guenther <rguenther@suse.de>
1829
1830 PR c/44555
1831 * c-common.c (c_common_truthvalue_conversion): Remove
1832 premature and wrong optimization concering ADDR_EXPRs.
1833
eff7e30c
AC
18342010-06-15 Arnaud Charlet <charlet@adacore.com>
1835
1836 * c-ada-spec.c (dump_sloc): Remove column info.
1837 (is_simple_enum): New function.
1838 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
1839 enum types when relevant.
1840
6312e84d
MLI
18412010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1842
1843 * c-common.c (conversion_warning): Warn at expression
1844 location.
1845
1cb42611
JM
18462010-06-10 Joseph Myers <joseph@codesourcery.com>
1847
1848 * c-opts.c (c_common_handle_option): Don't handle
1849 OPT_fshow_column.
1850
a9429e29
LB
18512010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1852
1853 * c-pragma.c (push_alignment): Use typed GC allocation.
1854 (handle_pragma_push_options): Likewise.
1855
1856 * c-common.c (parse_optimize_options): Likewise.
1857
1858 * c-common.h (struct sorted_fields_type): Add variable_size GTY
1859 option.
1860
5498f011
JM
18612010-06-07 Joseph Myers <joseph@codesourcery.com>
1862
1863 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
1864 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1865 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1866 flag_signed_bitfields, warn_strict_null_sentinel,
1867 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
1868 flag_gen_declaration, flag_no_gnu_keywords,
1869 flag_implement_inlines, flag_implicit_templates,
1870 flag_implicit_inline_templates, flag_optional_diags,
1871 flag_elide_constructors, flag_default_inline, flag_rtti,
1872 flag_conserve_space, flag_access_control, flag_check_new,
1873 flag_new_for_scope, flag_weak, flag_working_directory,
1874 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
1875 flag_enforce_eh_specs, flag_threadsafe_statics,
1876 flag_pretty_templates): Remove.
1877 * c-common.h (flag_preprocess_only, flag_nil_receivers,
1878 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
1879 flag_replace_objc_classes, flag_undef, flag_no_builtin,
1880 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1881 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1882 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
1883 flag_no_gnu_keywords, flag_implement_inlines,
1884 flag_implicit_templates, flag_implicit_inline_templates,
1885 flag_optional_diags, flag_elide_constructors, flag_default_inline,
1886 flag_rtti, flag_conserve_space, flag_access_control,
1887 flag_check_new, flag_new_for_scope, flag_weak,
1888 flag_working_directory, flag_use_cxa_atexit,
1889 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
1890 flag_threadsafe_statics, flag_pretty_templates,
1891 warn_strict_null_sentinel): Remove.
1892 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
1893 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
1894 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
1895 fimplicit-inline-templates, fimplicit-templates,
1896 flax-vector-conversions, fms-extensions, fnil-receivers,
1897 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
1898 frtti, fshort-double, fshort-enums, fshort-wchar,
1899 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
1900 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
1901 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
1902 gen-decls, undef): Use Var.
1903 (fdefault-inline, foptional-diags): Document as doing nothing.
1904 * c-opts.c (c_common_handle_option): Remove cases for options now
1905 using Var. Mark ignored options as such.
1906
39dabefd
SB
19072010-06-05 Steven Bosscher <steven@gcc.gnu.org>
1908
1909 * c-common.c: Moved to here from parent directory.
1910 * c-common.def: Likewise.
1911 * c-common.h: Likewise.
1912 * c-cppbuiltin.c: Likewise.
1913 * c-dump.c: Likewise.
1914 * c-format.c: Likewise.
1915 * c-format.h : Likewise.
1916 * c-gimplify.c: Likewise.
1917 * c-lex.c: Likewise.
1918 * c-omp.c: Likewise.
1919 * c.opt: Likewise.
1920 * c-opts.c: Likewise.
1921 * c-pch.c: Likewise.
1922 * c-ppoutput.c: Likewise.
1923 * c-pragma.c: Likewise.
1924 * c-pragma.h: Likewise.
1925 * c-pretty-print.c: Likewise.
1926 * c-pretty-print.h: Likewise.
1927 * c-semantics.c: Likewise.
1928 * stub-objc.c: Likewise.
1929
1930 * c-common.c: Include gt-c-family-c-common.h.
1931 * c-pragma.c: Include gt-c-family-c-pragma.h.
1932\f
04695783 1933Copyright (C) 2010, 2011 Free Software Foundation, Inc.
39dabefd
SB
1934
1935Copying and distribution of this file, with or without modification,
1936are permitted in any medium without royalty provided the copyright
1937notice and this notice are preserved.