]> gcc.gnu.org Git - gcc.git/blame - gcc/c-family/ChangeLog
attribs.c (decl_attributes): Avoid emitting a warning if ATTR_FLAG_BUILT_IN.
[gcc.git] / gcc / c-family / ChangeLog
CommitLineData
95744782
MLI
12012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
2
3 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
4 Wmissing-field-initializers,Wmissing-parameter-type,
5 Wold-style-declaration,Woverride-init): Use EnabledBy.
6 * c-opts.c (c_common_post_options): Do not set here explicitly.
7
7d5a5747
MLI
82012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
9
10 PR 53063
11 * c-opts.c (c_common_handle_option): Use handle_generated_option
12 to enable sub-options.
13
5a3c9cf2
PC
142012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
15
16 PR c++/53158
17 * c-common.c (warnings_for_convert_and_check): Use warning_at.
18
3ac8781c
RG
192012-05-10 Richard Guenther <rguenther@suse.de>
20
21 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
22 adjust commentary about TYPE_IS_SIZETYPE types.
23
1e537948
MLI
242012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
25
26 PR c++/53261
27 * c-common.c (warn_logical_operator): Check that argument of
28 integer_zerop is not NULL.
29
f2c4a785
MLI
302012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
31
32 PR c/43772
33 * c-common.c (warn_logical_operator): Do not warn if either side
34 is already true or false.
35
50f305ca
MLI
362012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
37
38 PR c/51712
39 * c-common.c (expr_original_type): New.
40 (shorten_compare): Do not warn for enumeration types.
41
0c3641b0
MLI
422012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
43
44 * c.opt (fpermissive): Add Var(flag_permissive).
45
7edaa4d2
MG
462012-04-30 Marc Glisse <marc.glisse@inria.fr>
47
48 PR c++/51033
49 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
50 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
51
b9c8da34
DS
522012-04-30 Dodji Seketeli <dodji@redhat.com>
53
54 Add -Wvarargs option
55 * c.opt (Wvarargs): Define new option.
56
e6c69da0
MLI
572012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
58
59 * c-common.c (check_function_arguments): Replace
60 Wmissing-format-attribute with Wsuggest-attribute=format.
61
90137d8f
MLI
622012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
63
64 * c.opt (Wsuggest-attribute=format): New. Alias of
65 Wmissing-format-attribute.
66 * c-format.c (decode_format_type): Replace
67 Wmissing-format-attribute with Wsuggest-attribute=format.
68 (check_function_format): Likewise.
69
7f5f5f98
OW
702012-04-27 Ollie Wild <aaw@google.com>
71
72 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
73 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
74 * c.opt: Add Wliteral-suffix.
75
c1771a20
MLI
762012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
77
78 PR c/44774
79 * c.opt (Wpedantic): New.
80 (pedantic): Alias Wpedantic.
81 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
82 (c_common_post_options): Likewise.
83 (sanitize_cpp_opts): Likewise.
84 * c-lex.c (interpret_float): Likewise.
85 * c-format.c (check_format_types): Likewise.
86 * c-common.c (pointer_int_sum): Likewise.
87 (c_sizeof_or_alignof_type): Likewise.
88 (c_add_case_label): Likewise.
89 (c_do_switch_warnings): Likewise.
90 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
91
04b391c1
JM
922012-04-15 Jason Merrill <jason@redhat.com>
93
94 PR c++/52818
95 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
96 (C_STD_NAME): Distinguish between C++98 and C++11.
97
ac868f29
EB
982012-04-11 Eric Botcazou <ebotcazou@adacore.com>
99
100 PR target/52624
101 * c-common.h (uint16_type_node): Rename into...
102 (c_uint16_type_node): ...this.
103 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
104 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
105
fd4116f4
MLI
1062012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
107
108 * c-common.c (warn_if_unused_value): Move definition to here.
109 * c-common.h (warn_if_unused_value): Move declaration to here.
110
573ac65e
WB
1112012-03-23 William Bader <williambader@hotmail.com>
112
113 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
114
552b8185
JM
1152012-03-20 Jason Merrill <jason@redhat.com>
116
117 * c-common.h (enum cxx_dialect): Add cxx1y.
118 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
119 test.
120 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
121 * c-opts.c (c_common_post_options): Likewise.
122 (set_std_cxx1y): New.
123 (c_common_handle_option): Call it.
124 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
125
04398fa8
PC
1262012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
127
128 PR c++/14710
129 * c.opt ([Wuseless-cast]): Add.
130
d2a12ae7
RG
1312012-03-16 Richard Guenther <rguenther@suse.de>
132
133 * c-pretty-print.c (pp_c_initializer_list): Adjust.
134
a12bf402
MLI
1352012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
136
137 PR c++/44783
138 * c.opt (ftemplate-backtrace-limit) Add.
139
5c30094f
RO
1402012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
141
142 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
143 handling.
144 * c-pragma.c (handle_pragma_extern_prefix): Remove.
145 (init_pragma): Don't register extern_prefix.
146
21fa2faf
RG
1472012-03-12 Richard Guenther <rguenther@suse.de>
148
149 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
150 (builtin_type_for_size): Likewise.
151
e3793c6f
JJ
1522012-02-13 Jakub Jelinek <jakub@redhat.com>
153
154 PR c++/52215
155 * c-common.c (sync_resolve_params): Don't decide whether to convert
156 or not based on TYPE_SIZE comparison, convert whenever arg_type
157 is unsigned INTEGER_TYPE.
158
93286335
PC
1592012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
160
161 PR c/52118
162 * c.opt ([Wunused-local-typedefs]): Fix description.
163
7a421706
MS
1642012-01-24 Mike Stump <mikestump@comcast.net>
165
166 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
167 exactly.
168
ba9b1f11
RG
1692012-01-18 Richard Guenther <rguenther@suse.de>
170
171 * c-opts.c (c_common_post_options): Reset LTO flags if
172 we are about to generate a PCH.
173
465406be
PC
1742012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
175
176 PR c++/51777
177 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
178 use pp_unsigned_wide_integer.
179
aee15221
RG
1802012-01-10 Richard Guenther <rguenther@suse.de>
181
182 PR middle-end/51806
183 * c-opts.c (c_common_handle_option): Move -Werror handling
184 to language independent code.
185
5720c0dc
RG
1862012-01-05 Richard Guenther <rguenther@suse.de>
187
188 PR middle-end/51764
189 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
190 from common.opt.
191
73ac190a
PC
1922011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
193
194 PR c++/51316
195 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
196 of array types with an unknown bound.
197
48b0b196
JM
1982011-12-20 Joseph Myers <joseph@codesourcery.com>
199
200 * c-common.c (flag_isoc99): Update comment to refer to C11.
201 (flag_isoc1x): Change to flag_isoc11.
202 * c-common.h (flag_isoc99): Update comment to refer to C11.
203 (flag_isoc1x): Change to flag_isoc11.
204 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
205 C11.
206 * c-opts.c (set_std_c1x): Change to set_std_c11.
207 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
208 Call set_std_c11.
209 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
210 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
211 * c.opt (std=c1x): Change to std=c11. Document as non-draft
212 standard.
213 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
214 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
215 (std=gnu1x): Make alias of std=gnu11.
216
d58d6eb5
JM
2172011-12-19 Jason Merrill <jason@redhat.com>
218
219 PR c++/51228
220 * c-common.c (handle_transparent_union_attribute): Check the first
221 field if the type is complete.
222
b3908fcc
JW
2232011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
224
225 PR libstdc++/51365
226 * c-common.c (RID_IS_FINAL): Add.
227 * c-common.h (RID_IS_FINAL): Add.
228
fea3ca91
IS
2292011-11-30 Iain Sandoe <iains@gcc.gnu.org>
230
231 * c.opt (fgnu-runtime): Provide full description.
232 (fnext-runtime): Likewise.
233 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
234
62bad7cd
AM
2352011-11-28 Andrew MacLeod <amacleod@redhat.com>
236
237 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
238 predefines in one place. Add LOCK_FREE predefines.
239 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
240 new func.
241
c466c4ff
AM
2422011-11-24 Andrew MacLeod <amacleod@redhat.com>
243
244 PR c/51256
245 * c-common.c (get_atomic_generic_size): Check for various error
246 conditions
247 (resolve_overloaded_atomic_exchange,
248 resolve_overloaded_atomic_compare_exchange,
249 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
250 error_mark_node for error conditions.
251
a5952633
RG
2522011-11-08 Richard Guenther <rguenther@suse.de>
253
254 PR middle-end/51010
255 c-family/
256
0a35513e
AH
2572011-11-07 Richard Henderson <rth@redhat.com>
258 Aldy Hernandez <aldyh@redhat.com>
259 Torvald Riegel <triegel@redhat.com>
260
261 Merged from transactional-memory.
262
263 * c-common.c (handle_tm_wrap_attribute,
264 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
265 (struct c_common_reswords): Added __transaction* keywords.
266 (struct c_common_attribute_table): Added transaction* and tm_regparm
267 attributes.
268 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
269 masks.
270 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
271 find_tm_attribute): Declare.
272
6d87092d
JM
2732011-11-07 Jason Merrill <jason@redhat.com>
274
275 PR c++/35688
276 * c-common.c, c-common.h: Revert yesterday's changes.
277
8e7860a1
JM
2782011-11-06 Jason Merrill <jason@redhat.com>
279
280 PR c++/35688
281 * c-common.c (decl_has_visibility_attr): Split out from...
282 (c_determine_visibility): ...here.
283 * c-common.h: Declare it.
284
d19fa6b5
JM
2852011-11-06 Joseph Myers <joseph@codesourcery.com>
286
287 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
288 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
289 type.
290 (check_user_alignment): New. Split out of
291 handle_aligned_attribute. Disallow integer constants with
292 noninteger types. Conditionally allow zero.
293 (handle_aligned_attribute): Use check_user_alignment.
294 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
295
86951993
AM
2962011-11-06 Andrew MacLeod <amacleod@redhat.com>
297 Richard Henderson <rth@redhat.com>
298
299 Merged from cxx-mem-model.
300
301 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
302 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
303 parameters that are the same type size.
304 (get_atomic_generic_size): New. Find size of generic
305 atomic function parameters and do typechecking.
306 (add_atomic_size_parameter): New. Insert size into parameter list.
307 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
308 either __atomic_exchange_n or external library call.
309 (resolve_overloaded_atomic_compare_exchange): Restructure
310 __atomic_compare_exchange to either _n variant or external library call.
311 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
312 __atomic_load_n or an external library call.
313 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
314 __atomic_store_n or an external library call.
315 (resolve_overloaded_builtin): Handle new __atomic builtins.
316
cf9e9959
EB
3172011-11-04 Eric Botcazou <ebotcazou@adacore.com>
318
319 PR c++/50608
320 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
321 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
322 <INDIRECT_REF>: Return the argument.
323 <ARRAY_REF>: Remove special code for negative offset.
324 Call fold_build_pointer_plus instead of size_binop.
325 (fold_offsetof): Remove STOP_REF argument and adjust.
326 * c-common.h (fold_offsetof_1): Declare.
327 (fold_offsetof): Remove STOP_REF argument.
328
25339f10
JM
3292011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
330
331 PR c++/50810
332 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
333 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
334 Wnarrowing for C++0x and C++98.
335 * c.opt ([Wnarrowing]): Update.
336
89401152
PC
3372011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
338
339 PR c++/44277
340 * c.opt: Add Wzero-as-null-pointer-constant.
341
97e3ad20
JM
3422011-10-31 Jason Merrill <jason@redhat.com>
343
15694fdd
JM
344 * c.opt (-fdeduce-init-list): Off by default.
345
97e3ad20
JM
346 PR c++/50920
347 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
348 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
349 and -Wc++11-compat.
350 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
351
fb9120e3
RAV
3522011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
353
354 PR c++/30066
355 * c.opt (fvisibility-inlines-hidden): Description change.
356
3ce4f9e4
ESR
3572011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
358
359 Implement C++11 user-defined literals.
360 * c-common.c (build_userdef_literal): New.
361 * c-common.def: New tree code.
362 * c-common.h (tree_userdef_literal): New tree struct and accessors.
363 * c-lex.c (interpret_float): Add suffix parm.
364 (c_lex_with_flags): Build literal tokens.
365
5f53c243
PC
3662011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
367
368 PR c++/50841
369 Revert:
370 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
371
372 PR c++/50810
373 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
374 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
375 Wnarrowing for C++0x and C++98.
376 * c.opt ([Wnarrowing]): Update.
377
263734e1
PC
3782011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
379
380 PR c++/50810
381 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
382 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
383 Wnarrowing for C++0x and C++98.
384 * c.opt ([Wnarrowing]): Update.
385
d2e312d7
PC
3862011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
387
388 PR c++/45385
389 * c-common.c (conversion_warning): Remove code looking for
390 artificial operands.
391
d17687f6
DS
3922011-10-18 Dodji Seketeli <dodji@redhat.com>
393
394 PR bootstrap/50760
395 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
396 !NO_IMPLICIT_EXTERN_C.
397
fc8396e9
PC
3982011-10-17 Michael Spertus <mike_spertus@symantec.com>
399
400 * c-common.c (c_common_reswords): Add __bases,
401 __direct_bases.
402 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
403
4042011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
405
406 PR c++/50757
407 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
408
847e697a
TT
4092011-10-15 Tom Tromey <tromey@redhat.com>
410 Dodji Seketeli <dodji@redhat.com>
411
412 * c.opt (fdebug-cpp): New option.
413 * c-opts.c (c_common_handle_option): Handle the option.
414 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
415 output stream in parameter. Factorized from ...
416 (maybe_print_line): ... this. Dump location debug information when
417 -fdebug-cpp is in effect.
418 (print_line_1): New static function. Takes an output stream in
419 parameter. Factorized from ...
420 (print_line): ... here. Dump location information when -fdebug-cpp
421 is in effect.
422 (scan_translation_unit): Dump location information when
423 -fdebug-cpp is in effect.
424
92582b75
TT
4252011-10-15 Tom Tromey <tromey@redhat.com>
426 Dodji Seketeli <dodji@redhat.com>
427
428 * c.opt (ftrack-macro-expansion): New option. Handle it with and
429 without argument.
430 * c-opts.c (c_common_handle_option)<case
431 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
432 cases. Handle -ftrack-macro-expansion with and without argument.
433
46427374
TT
4342011-10-15 Tom Tromey <tromey@redhat.com>
435 Dodji Seketeli <dodji@redhat.com>
436
437 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
438 (print_line, cb_define, do_line_change): Adjust to avoid touching
439 the internals of struct line_map. Use the public API instead.
440 * c-pch.c (c_common_read_pch): Likewise.
441 * c-lex.c (fe_file_change): Likewise.
442
fc8396e9
PC
4432011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
444
445 PR c++/17212
446 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
447
4482011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
449
450 PR c++/33067
451 * c-pretty-print.c (pp_c_floating_constant): Output
452 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
453
e79983f4
MM
4542011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
455
456 * c-common.c (def_builtin_1): Delete old interface with two
457 parallel arrays to hold standard builtin declarations, and replace
458 it with a function based interface that can support creating
459 builtins on the fly in the future. Change all uses, and poison
460 the old names. Make sure 0 is not a legitimate builtin index.
461 * c-omp.c (c_finish_omp_barrier): Ditto.
462 (c_finish_omp_taskwait): Ditto.
463 (c_finish_omp_flush): Ditto.
464
6637388f
TG
4652011-10-11 Tristan Gingold <gingold@adacore.com>
466
467 * c.opt: (fallow-parameterless-variadic-functions): New.
468
3797cb21
DS
4692011-09-08 Dodji Seketeli <dodji@redhat.com>
470
471 PR c++/33255 - Support -Wunused-local-typedefs warning
472 * c-common.h (struct c_language_function::local_typedefs): New
473 field.
474 (record_locally_defined_typedef, maybe_record_typedef_use)
475 (maybe_warn_unused_local_typedefs): Declare new functions.
476 * c-common.c (record_locally_defined_typedef)
477 (maybe_record_typedef_use)
478 (maybe_warn_unused_local_typedefs): Define new functions.
479 * c.opt: Declare new -Wunused-local-typedefs flag.
480
693ddb1b
EB
4812011-09-06 Eric Botcazou <ebotcazou@adacore.com>
482
483 PR middle-end/50266
484 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
485 computations.
486
830c740f
RG
4872011-09-05 Richard Guenther <rguenther@suse.de>
488
489 * c-common.c (complete_array_type): Use ssize_int (-1) instead
490 of integer_minus_one_node for empty array upper bounds.
491
892a371f
DS
4922011-08-28 Dodji Seketeli <dodji@redhat.com>
493
494 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
495 it's the first time it's being called on this main TU.
496
0e3fdb48
RB
4972011-08-24 Richard Guenther <rguenther@suse.de>
498
499 PR c/49396
500 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
501
5022011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
503
504 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
505 defined in cpp_init_builtins and c_cpp_builtins.
506
d4a83c10
JM
5072011-08-19 Joseph Myers <joseph@codesourcery.com>
508
509 * c-common.c (c_common_reswords): Add __builtin_complex.
510 * c-common.h (RID_BUILTIN_COMPLEX): New.
511
bbceee64
JM
5122011-08-18 Joseph Myers <joseph@codesourcery.com>
513
514 * c-common.c (c_common_reswords): Add _Noreturn.
515 (keyword_is_function_specifier): Handle RID_NORETURN.
516 * c-common.h (RID_NORETURN): New.
517
0e3a99ae
AS
5182011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
519
520 * c-common.c (unsafe_conversion_p): New function. Check if it is
521 unsafe to convert an expression to the type.
522 (conversion_warning): Adjust, use unsafe_conversion_p.
523 * c-common.h (unsafe_conversion_p): New function declaration.
524
20906c66
JJ
5252011-08-02 Jakub Jelinek <jakub@redhat.com>
526
527 * c-common.h (c_finish_omp_atomic): Adjust prototype.
528 (c_finish_omp_taskyield): New prototype.
529 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
530 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
531 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
532 or RHS1 have side-effects, evaluate those too in the right spot,
533 if it is a decl and LHS is also a decl, error out if they
534 aren't the same.
535 (c_finish_omp_taskyield): New function.
536 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
537 * c-pragma.c (omp_pragmas): Add taskyield.
538 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
539 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
540 PRAGMA_OMP_CLAUSE_MERGEABLE.
541
770e5a2e
DS
5422011-07-25 Dodji Seketeli <dodji@redhat.com>
543
544 * c-common.h (set_underlying_type): Remove parm name from
545 declaration.
546
1baae426
RG
5472011-07-25 Romain Geissler <romain.geissler@gmail.com>
548
549 * c-pretty-print.h: Search c-common.h in c-family.
550
fcb21722
JM
5512011-07-22 Jason Merrill <jason@redhat.com>
552
76f86d00
JM
553 PR c++/49793
554 * c.opt (Wnarrowing): New.
555
3a636414
JM
556 PR c++/30112
557 * c-common.h: Declare c_linkage_bindings.
558 * c-pragma.c (handle_pragma_redefine_extname): Use it.
559
fcb21722
JM
560 PR c++/49813
561 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
562 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
563 as flag_isoc99 for 'restrict'.
564 (pp_c_specifier_qualifier_list): Likewise for _Complex.
565
02614448
ILT
5662011-07-21 Ian Lance Taylor <iant@google.com>
567
568 PR middle-end/49705
569 * c-common.c (c_disable_warnings): New static function.
570 (c_enable_warnings): New static function.
571 (c_fully_fold_internal): Change local unused_p to bool. Call
572 c_disable_warnings and c_enable_warnings rather than change
573 c_inhibit_evaluation_warnings.
574
34429675
JM
5752011-07-20 Jason Merrill <jason@redhat.com>
576
577 PR c++/6709 (DR 743)
578 PR c++/42603 (DR 950)
579 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
580 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
581 (CPP_DECLTYPE): New.
582 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
583
5d49b6a7
RG
5842011-07-19 Richard Guenther <rguenther@suse.de>
585
586 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
587 * c-omp.c (c_finish_omp_for): Likewise.
588
e84a58ff
EB
5892011-07-12 Eric Botcazou <ebotcazou@adacore.com>
590
591 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
592 body on the next line.
593
329af3c7
JM
5942011-07-08 Jason Merrill <jason@redhat.com>
595
4063e61b
JM
596 PR c++/45437
597 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
598
329af3c7
JM
599 PR c++/49673
600 * c-common.c (c_apply_type_quals_to_decl): Don't check
601 TYPE_NEEDS_CONSTRUCTING.
602
1a072294
RG
6032011-07-06 Richard Guenther <rguenther@suse.de>
604
605 * c-common.c (c_common_nodes_and_builtins):
606 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
607
fce5dddd
RG
6082011-07-05 Richard Guenther <rguenther@suse.de>
609
610 * c-common.c (c_common_nodes_and_builtins): Build all common
611 tree nodes first.
612
45d439ac
JJ
6132011-06-27 Jakub Jelinek <jakub@redhat.com>
614
56300785
JJ
615 * c-common.h (c_tree_chain_next): New static inline function.
616
45d439ac
JJ
617 * c-common.c (check_builtin_function_arguments): Handle
618 BUILT_IN_ASSUME_ALIGNED.
619
e0a8ecf2
AM
6202011-06-21 Andrew MacLeod <amacleod@redhat.com>
621
622 * c-common.c: Add sync_ or SYNC__ to builtin names.
623 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
624
6252011-06-20 Pierre Vittet <piervit@pvittet.com>
626
627 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
628 handler.
629 (gen_pragma_handler): New union.
630 (internal_pragma_handler): New type.
631 (c_register_pragma_with_data)
632 (c_register_pragma_with_expansion_and_data): New functions.
633
634 * c-pragma.c (registered_pragmas, c_register_pragma_1)
635 (c_register_pragma, c_register_pragma_with_expansion)
636 (c_invoke_pragma_handler): Changed to work with
637 internal_pragma_handler.
638 (c_register_pragma_with_data)
639 (c_register_pragma_with_expansion_and_data): New functions.
640
677f3fa8
JM
6412011-06-14 Joseph Myers <joseph@codesourcery.com>
642
643 * c-common.c: Include common/common-target.h.
644 (handle_section_attribute): Use
645 targetm_common.have_named_sections.
646 * c-cppbuiltin.c: Include common/common-target.h.
647 (c_cpp_builtins): Use targetm_common.except_unwind_info.
648
d7fc8c14
RG
6492011-06-10 Richard Guenther <rguenther@suse.de>
650
651 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
652 to print a IDENTIFIER_NODE.
653
10e48e39
RO
6542011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
655 Joseph Myers <joseph@codesourcery.com>
656
657 * c.opt (fbuilding-libgcc): New option.
658 * c-cppbuiltin.c (c_cpp_builtins): Define
659 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
660
6976ae51
JM
6612011-06-07 Jason Merrill <jason@redhat.com>
662
3ff60975
JM
663 * c-common.c (max_tinst_depth): Lower default to 900.
664
6976ae51
JM
665 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
666
009db074
RG
6672011-06-07 Richard Guenther <rguenther@suse.de>
668
669 * c-common.c (c_common_nodes_and_builtins): Do not set
670 size_type_node or call set_sizetype.
671
b4592b92
DS
6722011-06-07 Dodji Seketeli <dodji@redhat.com>
673
674 PR debug/49130
675 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
676 type when using pointer comparison to compare types.
677
014ab419
JW
6782011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
679
680 * c.opt: Add -Wdelete-non-virtual-dtor.
681 * c-opts.c (c_common_handle_option): Include it in -Wall.
682
4f60111f
NF
6832011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
684
685 PR bootstrap/49190
686
687 Revert:
688 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
689
690 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
691 not tree_common.
692
4cc4f2f4
JJ
6932011-05-27 Jakub Jelinek <jakub@redhat.com>
694
695 PR c++/49165
696 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
697 C++ don't call c_common_truthvalue_conversion on void type arms.
698
38e01f9e
NF
6992011-05-27 Nathan Froyd <froydnj@codesourcery.com>
700
701 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
702 (stmt_list_stack): Define.
703 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
704 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
705
92e948a8
NF
7062011-05-26 Nathan Froyd <froydnj@codesourcery.com>
707
708 * c-common.c (warning_candidate_p): Check for BLOCKs.
709
a2fc3e63
NF
7102011-05-26 Nathan Froyd <froydnj@codesourcery.com>
711
712 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
713 not tree_common.
714
0957c029
JJ
7152011-05-25 Jakub Jelinek <jakub@redhat.com>
716
717 * c-common.c (def_fn_type): Remove extra va_end.
718
828fb3ba
JM
7192011-05-23 Jason Merrill <jason@redhat.com>
720
721 PR c++/48106
722 * c-common.c (c_common_get_narrower): New.
723 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
724
dde05067
NF
7252011-05-23 Nathan Froyd <froydnj@codesourcery.com>
726
727 * c-common.h (check_function_arguments): Tweak prototype of
728 check_function_arguments.
729 * c-common.c (check_function_arguments): Likewise. Adjust
730 calls to check_function_nonnull, check_function_format, and
731 check_function_sentinel.
732 (check_function_sentinel): Take a FUNCTION_TYPE rather than
733 separate attributes and typelist arguments. Use
734 FOREACH_FUNCTION_ARGS to iterate over argument types.
735
3c0d13bf
PC
7362011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
737
738 * c-common.c (c_common_reswords): Reorder.
739 * c-common.h (rid): Likewise.
740
8242dd04
NF
7412011-05-10 Nathan Froyd <froydnj@codesourcery.com>
742
743 * c-common.c (def_fn_type): Don't call build_function_type, call
744 build_function_type_array or build_varargs_function_type_array
745 instead.
746 (c_common_nodes_and_builtins): Likewise.
747
3d528853
NF
7482011-05-05 Nathan Froyd <froydnj@codesourcery.com>
749
750 * c-common.c (c_add_case_label): Omit the loc argument to
751 build_case_label.
752 * c-common.h (build_case_label): Remove.
753 * c-semantics.c (build_case_label): Remove.
754
a04a722b
JM
7552011-05-05 Joseph Myers <joseph@codesourcery.com>
756
757 * c-objc.h (objc_start_method_definition): Update prototype.
758 * stub-objc.c (objc_start_method_definition): Add extra parameter.
759
e19a18d4
NF
7602011-05-04 Nathan Froyd <froydnj@codesourcery.com>
761
762 * c-common.c (check_main_parameter_types): Reindent. Don't use
763 TYPE_ARG_TYPES directly.
764 (handle_nonnull_attribute): Likewise.
765 (sync_resolve_params): Likewise.
766 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
767 to check_format_string.
768 (handle_format_attribute): Likewise.
769 (check_format_string): Take a function type to examine instead of
770 a type list. Use a function_arg_iterator to step through argument
771 types.
772
c62c040f
RG
7732011-05-04 Richard Guenther <rguenther@suse.de>
774
775 * c-common.c (fix_string_type): Use size_int for index type bounds.
776 (start_fname_decls): Do not pass NULL to build_int_cst.
777 (c_init_attributes): Likewise.
778 * c-lex.c (c_lex_with_flags): Likewise.
779
c12ff9d8
JM
7802011-04-27 Jason Merrill <jason@redhat.com>
781
782 * c-common.c (make_tree_vector_from_list): New.
783 * c-common.h: Declare it.
784
304dfbe3
RG
7852011-04-26 Richard Guenther <rguenther@suse.de>
786
787 PR preprocessor/48248
788 * c-ppoutput.c (maybe_print_line): Always optimize newlines
789 for output size with -P.
790
3c0d13bf
PC
7912011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
792
793 * c-common.c (struct c_common_resword): Add __underlying_type.
794 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
795
04695783
JM
7962011-04-20 Jim Meyering <meyering@redhat.com>
797
798 * c-format.c (init_dollar_format_checking): Remove useless
799 if-before-free.
800
0dc33c3c
NP
8012011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
802
803 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 804 (objc_detect_field_duplicates): New.
0dc33c3c 805 * stub-objc.c: Likewise.
3c0d13bf 806
c59633d9
NP
8072011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
808
809 * stub-objc.c (objc_declare_protocols): Renamed to
810 objc_declare_protocol.
811 * c-objc.h: Likewise.
3c0d13bf 812
32dabdaf
NP
8132011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
814
815 * stub-objc.c (objc_declare_class): Updated argument name.
816
81f653d6
NF
8172011-04-12 Nathan Froyd <froydnj@codesourcery.com>
818
819 * c-common.h (c_common_init_ts): Declare.
820 * c-common.c (c_common_init_ts): Define.
821
eb345401
NP
8222011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
823
824 * c-objc.h (objc_build_message_expr): Updated prototype.
825 * stub-objc.c (objc_build_message_expr): Likewise.
826
a358e188
MJ
8272011-04-12 Martin Jambor <mjambor@suse.cz>
828
829 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
830 of cgraph_node.
831
e6313a78
RG
8322011-04-11 Richard Guenther <rguenther@suse.de>
833
834 * c-common.c (complete_array_type): Build a range type of
835 proper type.
836
dcf0c47e
NF
8372011-04-08 Nathan Froyd <froydnj@codesourcery.com>
838
839 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
840 (handle_type_generic_attribute): Likewise.
841
1ee44b26
JM
8422011-04-07 Jason Merrill <jason@redhat.com>
843
844 PR c++/48450
845 * c-common.c (c_common_truthvalue_conversion): Don't ignore
846 conversion from C++0x scoped enum.
847
acce4e77
JM
8482011-04-06 Joseph Myers <joseph@codesourcery.com>
849
850 * c-target-def.h: New file.
851 * c-target.def: New file.
852 * c-target.h: New file.
853 * c-common.c (targetcm): Don't define here.
854 * c-common.h (default_handle_c_option): Declare.
855 * c-format.c: Include c-target.h instead of target.h.
856 * c-opts.c: Include c-target.h instead of target.h. Explicitly
857 include tm.h.
858 (default_handle_c_option): Move from targhooks.c.
859
e2eefb55
JJ
8602011-03-29 Jakub Jelinek <jakub@redhat.com>
861
862 PR preprocessor/48248
863 * c-ppoutput.c (print): Add src_file field.
864 (init_pp_output): Initialize it.
865 (maybe_print_line): Don't optimize by adding up to 8 newlines
866 if map->to_file and print.src_file are different file.
867 (print_line): Update print.src_file.
868
ba78087b
KT
8692011-03-25 Kai Tietz <ktietz@redhat.com>
870
871 * c-ada-spec.c (compare_comment): Use filename_cmp
872 instead of strcmp for filename.
873
0edf1bb2
JL
8742011-03-25 Jeff Law <law@redhat.com>
875
876 * c-family/c-common.c (def_fn_type): Add missing va_end.
877
c7dc8804
JM
8782011-03-25 Jason Merrill <jason@redhat.com>
879
880 * c.opt: Add -std=c++03.
881
d1d879b1
EB
8822011-03-22 Eric Botcazou <ebotcazou@adacore.com>
883
884 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
885
62d784f7
KT
8862011-03-17 Kai Tietz
887
888 PR target/12171
5050afdf
KT
889 * c-pretty-print.c (pp_c_specifier_qualifier_list):
890 Display allowed attributes for function pointer types.
891 (pp_c_attributes_display): New function to display
892 attributes having affects_type_identity flag set to true.
893 * c-pretty-print.h (pp_c_attributes_display): New prototype.
894
62d784f7
KT
895 * c-common.c (c_common_attribute_table):
896 Add new element.
897 (c_common_format_attribute_table): Likewise.
898
82d37118
JM
8992011-03-18 Jason Merrill <jason@redhat.com>
900
49a000c3
JM
901 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
902 * c-common.h: Don't declare it here.
903 * c-common.c: Or define it here.
904 * c-opts.c (c_common_handle_option): Or set it here.
905
82d37118
JM
906 PR c++/35315
907 * c-common.c (handle_transparent_union_attribute): Don't
908 make a duplicate type in C++.
909
17bc631c
JM
9102011-03-15 Jason Merrill <jason@redhat.com>
911
912 * c-common.c (max_constexpr_depth): New.
913 * c-common.h: Declare it.
914 * c-opts.c (c_common_handle_option): Set it.
915 * c.opt (fconstexpr-depth): New option.
916
1b9b91a6
JM
9172011-03-11 Jason Merrill <jason@redhat.com>
918
f231b5ff
JM
919 * c-common.c (attribute_takes_identifier_p): Add missing const.
920
1b9b91a6
JM
921 PR c++/46803
922 * c-common.c (attribute_takes_identifier_p): Assume that an
923 unknown attribute takes an identifier.
924
a19e4d44
NF
9252011-03-07 Nathan Froyd <froydnj@codesourcery.com>
926
927 PR c/47786
928 * c-common.c (c_type_hash): Call list_length instead of iterating
929 through DECL_CHAIN. Rename 'i' to 'n_elements'.
930
982d62f6
JJ
9312011-02-19 Jakub Jelinek <jakub@redhat.com>
932
933 PR c/47809
934 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
935
0a256240
NP
9362011-02-17 Iain Sandoe <iains@gcc.gnu.org>
937
938 * c.opt (fobjc-abi-version=) New.
939 (fobjc-nilcheck): New.
940
ba9e6dd5
NF
9412011-02-03 Nathan Froyd <froydnj@codesourcery.com>
942
943 PR c++/46890
944 * c-common.h (keyword_is_decl_specifier): Declare.
945 * c-common.c (keyword_is_decl_specifier): Define.
946 (keyword_is_function_specifier): New function.
947
7273813a
JJ
9482011-01-26 Jakub Jelinek <jakub@redhat.com>
949
950 PR c/47473
951 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
952 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
953 REAL_TYPE.
954
908ef79b
AC
9552011-01-26 Arnaud Charlet <charlet@adacore.com>
956
957 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
958
237e9384
JJ
9592011-01-26 Jakub Jelinek <jakub@redhat.com>
960
961 PR pch/47430
962 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
963 after init_c_lex if pch_file is set.
964
47ea1edf
DK
9652011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
966
d4dba752 967 PR c++/43601
47ea1edf
DK
968 * c.opt (-fkeep-inline-dllexport): New switch.
969
2aa9c6ae
RG
9702011-01-12 Richard Guenther <rguenther@suse.de>
971
972 PR middle-end/32511
973 * c-common.c (handle_weak_attribute): Warn instead of error
974 on declaring an inline function weak.
975
7bd11157
TT
9762011-01-05 Tom Tromey <tromey@redhat.com>
977
978 * c-common.h (lvalue_error): Update.
979 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
980 not error.
981
0e66e494
NP
9822010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
983
b4f588c4
NP
984 PR objc/47075
985 * c-objc.h (objc_finish_message_expr): Added argument to
986 prototype.
987
f4da8dce
NF
9882010-12-22 Nathan Froyd <froydnj@codesourcery.com>
989
990 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
991 Use prototype_p.
992
46270f14
NP
9932010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
994
995 * c-objc.h (objc_maybe_warn_exceptions): New.
996 * stub-objc.c (objc_maybe_warn_exceptions): New.
997
4816c593
NF
9982010-12-10 Nathan Froyd <froydnj@codesourcery.com>
999
1000 * c-common.h (readonly_error): Declare.
1001 * c-common.c (readonly_error): Define.
1002
7a6daeb0
NF
10032010-12-09 Nathan Froyd <froydnj@codesourcery.com>
1004
1005 * c-common.h (invalid_indirection_error): Declare.
1006 * c-common.c (invalid_indirection_error): Define.
1007
892f6119
RG
10082010-12-03 Richard Guenther <rguenther@suse.de>
1009
1010 PR c/46745
1011 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
1012 (pp_c_unary_expression): Likewise.
1013 (pp_c_expression): Likewise.
1014
6c39e757
NP
10152010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
1016
1017 * c-common.h (objc_finish_function): New.
1018 (objc_non_volatilized_type): Removed.
1019 (objc_type_quals_match): Removed.
1020 * stub-objc.c (objc_finish_function): New.
1021 (objc_non_volatilized_type): Removed.
1022 (objc_type_quals_match): Removed.
1023
7c475d11
JM
10242010-11-30 Joseph Myers <joseph@codesourcery.com>
1025
1026 * c-common.h (parse_optimize_options): Declare.
1027 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
1028 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
1029
71f3e391
JM
10302010-11-29 Joseph Myers <joseph@codesourcery.com>
1031
1032 * c-opts.c (check_deps_environment_vars): Use getenv instead of
1033 GET_ENVIRONMENT.
1034 * c-pch.c (O_BINARY): Don't define here.
1035 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
1036
d5fabb58
JM
10372010-11-25 Joseph Myers <joseph@codesourcery.com>
1038
1039 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
1040 targetm.except_unwind_info.
1041
299404a1
JM
10422010-11-23 Joseph Myers <joseph@codesourcery.com>
1043
1044 * c-opts.c (c_common_handle_option): Pass location to
1045 set_struct_debug_option.
1046
c98cd5bf
JM
10472010-11-23 Joseph Myers <joseph@codesourcery.com>
1048
1049 * c-common.c (visibility_options): Move from ../opts.c.
1050 * c-common.h (struct visibility_flags, visibility_options):
1051 Declare here.
1052 * c-opts.c (finish_options): Rename to c_finish_options.
1053 (c_common_init): Update call to finish_options.
1054
a9546771
NP
10552010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
1056
1057 PR objc/34033
1058 * c-lex.c (lex_string): Check that each string in an Objective-C
1059 string concat sequence starts with either one or zero '@', and
1060 that there are no spurious '@' signs at the end.
1061
24a57808
JM
10622010-11-20 Joseph Myers <joseph@codesourcery.com>
1063
1064 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
1065 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
1066 HANDLE_PRAGMA_VISIBILITY.
1067 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
1068 HANDLE_PRAGMA_VISIBILITY): Don't define.
1069 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
1070
a9aa2c3a
NF
10712010-11-20 Nathan Froyd <froydnj@codesourcery.com>
1072
1073 PR c++/16189
1074 PR c++/36888
1075 PR c++/45331
1076 * c-common.h (keyword_begins_type_specifier): Declare.
1077 (keyword_is_storage_class_specifier): Declare.
1078 (keyword_is_type_qualifier): Declare.
1079 * c-common.c (keyword_begins_type_specifier): New function.
1080 (keyword_is_storage_class_specifier): New function.
1081 (keyword_is_type_qualifier): Declare.
1082
5386338c
JM
10832010-11-19 Joseph Myers <joseph@codesourcery.com>
1084
1085 PR c/46547
1086 * c-common.c (in_late_binary_op): Define.
1087 (c_common_truthvalue_conversion): Check in_late_binary_op before
1088 calling c_save_expr.
1089 * c-common.h (in_late_binary_op): Declare.
1090
69ccdddb
JM
10912010-11-19 Joseph Myers <joseph@codesourcery.com>
1092
1093 * c-opts.c (c_common_handle_option): Update calls to
1094 set_struct_debug_option.
1095
6b192a09
NP
10962010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
1097
1098 * c-common.h (objc_declare_protocols): Added additional argument.
1099 * stub-objc.c (objc_declare_protocol): Same change.
1100
fb52b50a
NF
11012010-11-18 Nathan Froyd <froydnj@codesourcery.com>
1102
1103 PR c/33193
1104 * c-common.h (build_real_imag_expr): Declare.
1105 * c-semantics.c (build_real_imag_expr): Define.
1106
b37421c6
JM
11072010-11-17 Joseph Myers <joseph@codesourcery.com>
1108
1109 * c-opts.c (c_common_parse_file): Take no arguments.
1110 * c-common.h (c_common_parse_file): Update prototype.
1111
07078664
JJ
11122010-11-16 Jakub Jelinek <jakub@redhat.com>
1113
1114 PR c++/46401
1115 * c-common.c (warning_candidate_p): Don't track non-const calls
1116 or STRING_CSTs.
1117
c6a13190
ILT
11182010-11-15 Ian Lance Taylor <iant@google.com>
1119
1120 * c-lex.c (init_c_lex): Set macro debug callbacks if
1121 flag_dump_go_spec is set.
1122
925e8657
NP
11232010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
1124
1125 * c-common.h (objc_build_incr_expr_for_property_ref): New.
1126 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
1127
bb0a9581
NF
11282010-11-15 Nathan Froyd <froydnj@codesourcery.com>
1129
1130 PR preprocessor/45038
1131 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
1132 dialects.
1133
c5fa0890
JM
11342010-11-12 Joseph Myers <joseph@codesourcery.com>
1135
1136 * c-common.h (c_family_lang_mask): Declare.
1137 * c-opts.c (c_family_lang_mask): Make extern.
1138 * c-pragma.c (handle_pragma_diagnostic): Use
1139 control_warning_option.
1140
a4d8c676
JM
11412010-11-12 Joseph Myers <joseph@codesourcery.com>
1142
1143 * c-common.c (parse_optimize_options): Update call to
1144 decode_options.
1145 * c-common.h (c_common_handle_option): Update prototype.
1146 * c-opts.c (c_common_handle_option): Take location_t parameter and
1147 pass it to other functions.
1148
f954bd2c
JM
11492010-11-11 Joseph Myers <joseph@codesourcery.com>
1150
1151 * c-opts.c (warning_as_error_callback): Remove.
1152 (c_common_initialize_diagnostics): Don't call
1153 register_warning_as_error_callback.
1154 (c_common_handle_option): Handle -Werror=normalized= here.
1155
d8a07487
JM
11562010-11-10 Joseph Myers <joseph@codesourcery.com>
1157
1158 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
1159 in diagnostic.
1160 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
1161 letter.
1162 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
1163 Remove trailing '.' from diagnostics.
1164 * c.opt (Wwrite-strings_: Avoid '`' in help text.
1165
d5478783
JM
11662010-11-10 Joseph Myers <joseph@codesourcery.com>
1167
1168 * c-common.c (parse_optimize_options): Pass global_dc to
1169 decode_options.
1170 * c-opts.c (c_common_handle_option): Pass &global_options to
1171 set_Wstrict_aliasing.
1172 * c.opt (v): Don't mark Common or document here.
1173
91ebb981
IS
11742010-11-06 Iain Sandoe <iains@gcc.gnu.org>
1175
1176 PR target/44981
1177 * c-format.c (format_type): New type gcc_objc_string_format_type.
1178 (valid_stringptr_type_p): New.
1179 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
1180 (check_format_string): Pass expected type, use
1181 valid_stringptr_type_p (), check that the format string types are
1182 consistent with the format specification.
1183 (decode_format_attr): Warn if NSString is used outside objective-c.
1184 (format_types_orig): Add NSString.
1185 (format_name): New.
1186 (format_flags): New.
1187 (check_format_arg): Handle format strings requiring an external parser.
1188 first_target_format_type: New variable.
1189 (handle_format_attribute): Set up first_target_format_type, pass the
1190 expected format arg string type to check_format_string().
1191 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
1192 * stub-objc.c (objc_string_ref_type_p): New.
1193 (objc_check_format_arg): New.
1194
bede2adc
NP
11952010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
1196
1197 Fixed using the Objective-C 2.0 dot-syntax with class names.
1198 * c-common.h (objc_build_class_component_ref): New.
1199 * stub-objc.c (objc_build_class_component_ref): New.
1200
9a179d01
NP
12012010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1202
1203 * c.opt (Wproperty-assign-default): New option.
1204
22d8d616
NP
12052010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1206
1207 Implemented -fobjc-std=objc1 flag.
1208 * c.opt (fobjc-std=objc1): New option.
1209
2debdb4f
NP
12102010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
1211
1212 Implemented format and noreturn attributes for Objective-C methods.
1213 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
1214 attribute for Objective-C methods.
1215
ec52b111
JM
12162010-10-31 Jason Merrill <jason@redhat.com>
1217
1218 * c-common.c (conversion_warning, warn_for_collisions_1): Use
1219 EXPR_LOC_OR_HERE.
1220
46a88c12
NP
12212010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
1222
1223 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
1224 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
1225 (objc_add_property_declaration): Removed arguments for copies and
1226 ivar.
1227 (objc_build_getter_call): Renamed to
1228 objc_maybe_build_component_ref.
1229 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1230 (objc_is_property_ref): New.
1231 * c-common.c (c_common_reswords): Removed copies and ivar.
1232 * stub-objc.c (objc_add_property_declaration): Removed arguments
1233 for copies and ivar.
1234 (objc_build_getter_call): Renamed to
1235 objc_maybe_build_component_ref.
1236 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1237 (objc_is_property_ref): New.
1238
1e4bf85b
AC
12392010-10-29 Arnaud Charlet <charlet@adacore.com>
1240 Matthew Gingell <gingell@adacore.com>
1241
1242 * c-ada-spec.c (separate_class_package): New function.
1243 (pp_ada_tree_identifier): Prefix references to C++ classes with the
1244 name of their enclosing package.
1245 (print_ada_declaration): Use separate_class_package.
1246
81f0bab2
JM
12472010-10-27 Jason Merrill <jason@redhat.com>
1248
2b08f2c5
JM
1249 * c-common.c (c_common_reswords): Add __is_literal_type.
1250 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
1251
81f0bab2
JM
1252 * c-common.c (check_case_value): Remove special C++ code.
1253
200290f2
NP
12542010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1255
1256 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
1257 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
1258 and RID_LAST_PATTR.
1259 (objc_add_property_declaration): Added additional arguments.
1260 (objc_property_attribute_kind): Removed.
1261 (objc_set_property_attr): Removed.
1262 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
1263 copy and nonatomic.
1264 * stub-objc.c (objc_add_property_declaration): Added additional
1265 arguments.
1266 (objc_set_property_attr): Removed.
1267
f614132b
NP
12682010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1269
1270 * c-common.h (objc_add_property_variable): Renamed to
1271 objc_add_property_declaration. Added location argument.
1272 * stub-objc.c (objc_add_property_variable): Same change.
1273
b8a18805
NP
12742010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
1275
1276 * c-common.h (objc_maybe_printable_name): New.
1277 * stub-objc.c (objc_maybe_printable_name): New.
1278
30cd1c5d
AS
12792010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1280 Andrew Pinski <pinskia@gmail.com>
1281
1282 * c-common.h (c_common_mark_addressable_vec): Declare.
1283 * c-common.c (c_common_mark_addressable_vec): New function.
1284
249a82c4
NP
12852010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1286
1287 * c-common.h (objc_set_method_type): Removed.
1288 (objc_add_method_declaration): Added boolean argument.
1289 (objc_start_method_definition): Same change.
1290 (objc_build_method_signature): Same change.
1291 * stub-objc.c (objc_set_method_type): Removed.
1292 (objc_add_method_declaration): Added boolean argument.
1293 (objc_start_method_definition): Same change.
1294 (objc_build_method_signature): Same change.
1295
977e30bc
NP
12962010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1297
1298 * c-common.h (finish_file): Removed.
1299 (objc_write_global_declarations): New.
1300 * c-opts.c (c_common_parse_file): Do not call finish_file.
1301 * stub-objc.c (objc_write_global_declarations): New.
1302
da57d1b9
NP
13032010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1304
1305 Implemented parsing @synthesize and @dynamic for
1306 Objective-C/Objective-C++.
1307 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
1308 (objc_add_synthesize_declaration): New.
1309 (objc_add_dynamic_declaration): New.
1310 * c-common.c (c_common_reswords): Add synthesize and dynamic.
1311 * stub-objc.c (objc_add_synthesize_declaration): New.
1312 (objc_add_dynamic_declaration): New.
1313
0069111f
MM
13142010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1315
1316 PR target/46041
1317 * c-cppbuiltin.c (mode_has_fma): Move function here from
1318 builtins.c. Don't use the fma optab, instead just use the
1319 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
1320 using -save-temps.
1321
e426b47b
NP
13222010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1323
1324 Merge from 'apple/trunk' branch on FSF servers.
0069111f 1325
e426b47b
NP
1326 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
1327
1328 Radar 4330422
1329 * c-common.h (objc_non_volatilized_type): New declaration
1330 * stub-objc.c (objc_non_volatilized_type): New stub.
1331
90fbfdc3
NP
13322010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
1333
e426b47b 1334 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
1335
1336 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
1337
1338 Radar 4133425
1339 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 1340 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 1341
c37d8c30
IS
13422010-10-17 Iain Sandoe <iains@gcc.gnu.org>
1343
1344 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
1345 * c-common.h (enum rid): Add RID_AT_PACKAGE.
1346 (objc_ivar_visibility_kind): New enum.
1347 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 1348 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
1349 visibility enum.
1350
1b1562a5
MM
13512010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1352
1353 * c-cppbuiltin.c (builtin_define_float_constants): Emit
1354 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
1355 has the appropriate fma builtins.
1356 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
1357
668ea4b1
IS
13582010-10-14 Iain Sandoe <iains@gcc.gnu.org>
1359
1b1562a5 1360 merge from FSF apple 'trunk' branch.
668ea4b1 1361 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 1362
668ea4b1
IS
1363 Radars 4436866, 4505126, 4506903, 4517826
1364 * c-common.c (c_common_resword): Define @property and its attributes.
1365 * c-common.h: Define property attribute enum entries.
1366 (OBJC_IS_PATTR_KEYWORD): New.
1367 (objc_property_attribute_kind): New enum.
1368 Declare objc_set_property_attr (), objc_add_property_variable (),
1369 objc_build_getter_call () and objc_build_setter_call ().
1370 * stub-objc.c (objc_set_property_attr): New stub.
1371 (objc_add_property_variable): Likewise.
1372 (objc_build_getter_call): Likewise.
1373 (objc_build_setter_call) Likewise.
1b1562a5 1374
a1178b30
IS
13752010-10-13 Iain Sandoe <iains@gcc.gnu.org>
1376
1b1562a5 1377 merge from FSF apple 'trunk' branch.
a1178b30
IS
1378 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
1379
1380 Radar 3803157 (method attributes)
1381 * c-common.c (handle_deprecated_attribute): Recognize
1382 objc methods as valid declarations.
1383 * c-common.h: Declare objc_method_decl ().
1b1562a5 1384 * stub-objc.c (objc_method_decl): New stub.
a1178b30 1385
a75bfaa6
JM
13862010-10-08 Joseph Myers <joseph@codesourcery.com>
1387
1388 * c-common.c (parse_optimize_options): Call
1389 decode_cmdline_options_to_array_default_mask before
1390 decode_options. Update arguments to decode_options.
1391 * c-common.h (c_common_init_options_struct): Declare.
1392 * c-opts.c (c_common_init_options_struct): New. Split out from
1393 c_common_init_options.
1394
f05b9d93
NP
13952010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
1396
1397 Implemented fast enumeration for Objective-C.
1398 * c-common.h (objc_finish_foreach_loop): New.
1399 * stub-objc.c (objc_finish_foreach_loop): New.
1400
1ebe4b4f
JM
14012010-10-05 Joseph Myers <joseph@codesourcery.com>
1402
1403 * c-common.h (struct diagnostic_context): Don't declare here.
1404 (c_common_initialize_diagnostics): Declare using
1405 diagnostic_context typedef.
1406 * c-opts.c (c_common_handle_option): Pass global_dc to
1407 handle_generated_option.
1408
d4d24ba4
JM
14092010-10-04 Joseph Myers <joseph@codesourcery.com>
1410
1411 * c-opts.c (c_common_handle_option): Pass &global_options_set to
1412 handle_generated_option.
1413
478a1c5b
ILT
14142010-10-03 Ian Lance Taylor <iant@google.com>
1415
1416 * c.opt (-fplan9-extensions): New option.
1417
82a1c2fe
FXC
14182010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1419
1420 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
1421 Remove.
1422 (c_cpp_builtins): Call functions from cppbuiltin.c instead
1423 of duplicating code.
1424
92902b1b
IS
14252010-09-30 Iain Sandoe <iains@gcc.gnu.org>
1426
1427 * c-common.c: Add two new entries for @optional
1428 and @required keywords.
1429
1430 merge from FSF 'apple/trunk' branch.
1431 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
1432
1433 Radar 4386773
1434 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
1435 objective-c keywords.
1436 (objc_set_method_opt): New declaration.
1437 * stub-objc.c (objc_set_method_opt): New stub.
1438
46625112
JM
14392010-09-30 Joseph Myers <joseph@codesourcery.com>
1440
1441 * c-common.c (handle_optimize_attribute): Pass &global_options to
1442 cl_optimization_save and cl_optimization_restore.
1443 * c-opts.c (c_common_handle_option): Pass &global_options to
1444 handle_generated_option.
1445 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
1446 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
1447 &global_options to cl_optimization_restore.
1448
49b91f05
NP
14492010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
1450
1451 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
1452 Objective-C/Objective-C++ keywords.
1453
13ed556f 14542010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57
NP
1455
1456 Merge from 'apple/trunk' branch on FSF servers.
1457
1458 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
1459
1460 Radar 4281748
1461 * c-common.h (objc_check_global_decl): New declaration.
1462 * stub-objc.c (objc_check_global_decl): New stub.
1463
f0036cca
JM
14642010-09-29 Joseph Myers <joseph@codesourcery.com>
1465
1466 * c.opt: Don't use VarExists.
1467
e3339d0f
JM
14682010-09-29 Joseph Myers <joseph@codesourcery.com>
1469
1470 * c-common.c (c_cpp_error): Update names of diagnostic_context
1471 members.
1472 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
1473 cl_optimization members.
1474 * c-opts.c (warning_as_error_callback, c_common_handle_option,
1475 sanitize_cpp_opts, finish_options): Update names of cpp_options
1476 members.
1477
1973201f
NP
14782010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1479
1480 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
1481 (objc_is_reserved_word): Removed.
1482 * c-common.c: Updated comments.
1483 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
1484 objc_is_reserved_word.
1485 * stub-objc.c (objc_is_reserved_word): Removed.
1486
f7e71da5
IS
14872010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1488
1489 * c-common.h (objc_add_method_declaration): Adjust prototype to
1490 include attributes.
1491 (objc_start_method_definition): Likewise.
1492 (objc_build_keyword_decl): Likewise.
1493 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
1494 (objc_start_method_definition): Likewise.
1495 (objc_build_keyword_decl): Likewise.
1496
c165dca7
IS
14972010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1498
1499 * c-common.h (objc_start_class_interface): Adjust prototype.
1500 (objc_start_category_interface): Likewise.
1501 (objc_start_protocol): Likewise.
1502 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
1503 (objc_start_class_interface): Likewise.
1504 (objc_start_category_interface): Likewise.
1505
7458026b
ILT
15062010-09-27 Ian Lance Taylor <iant@google.com>
1507
1508 * c-common.c (c_common_attribute_table): Add no_split_stack.
1509 (handle_no_split_stack_attribute): New static function.
1510
b581b85b
NP
15112010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
1512
1513 Merge from 'apple/trunk' branch on FSF servers.
1514
1515 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
1516
1517 Radar 4229905
1518 * c-common.h (objc_have_common_type): New declaration.
1519 * stub-objc.c (objc_have_common_type): New stub.
1520
1521 2005-06-22 Ziemowit Laski <zlaski@apple.com>
1522
1523 Radar 4154928
1524 * c-common.h (objc_common_type): New prototype.
1525 * stub-objc.c (objc_common_type): New stub.
1526
46a4da10
JH
15272010-09-24 Jan Hubicka <jh@suse.cz>
1528
1529 * c-common.c (handle_leaf_attribute): New function.
1530 (struct attribute_spec c_common_att): Add leaf.
1531
e200444e
JM
15322010-09-22 Joseph Myers <joseph@codesourcery.com>
1533
1534 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
1535 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
1536 -dump, -dump=, -imacros, -imacros=, -include, -include=,
1537 -include-barrier, -include-directory, -include-directory=,
1538 -include-directory-after, -include-directory-after=,
1539 -include-prefix, -include-prefix=, -include-with-prefix,
1540 -include-with-prefix=, -include-with-prefix-after,
1541 -include-with-prefix-after=, -include-with-prefix-before,
1542 -include-with-prefix-before=, -no-integrated-cpp,
1543 -no-line-commands, -no-standard-includes, -no-warnings, -output,
1544 -output=, -pedantic, -pedantic-errors, -preprocess,
1545 -print-missing-file-dependencies, -trace-includes, -traditional,
1546 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
1547 -user-dependencies, -verbose, -write-dependencies,
1548 -write-user-dependencies, no-integrated-cpp, traditional): New.
1549
29a80ea6
NP
15502010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1551
1552 PR objc/23710
ac1fc2fc
NP
1553 * c-common.h (objc_start_method_definition): Return bool instead
1554 of void.
1555 * stub-objc.c (objc_start_method_definition): Return bool instead
1556 of void.
1557
15582010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1559
1560 PR objc/25965
1561 * c-common.h (objc_get_interface_ivars): New declaration.
1562 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 1563
de621752
ILT
15642010-09-15 Ian Lance Taylor <iant@google.com>
1565
1566 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 1567 messages. Remove period at end of warning message.
de621752 1568
ba885ec5
NS
15692010-09-09 Nathan Sidwell <nathan@codesourcery.com>
1570
1571 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
1572 (handle_alias_attribute): ... here.
1573 (handle_ifunc_attribute): New.
1574
c5ee1358
MM
15752010-09-06 Mark Mitchell <mark@codesourcery.com>
1576
1577 * c-common.h (do_warn_double_promotion): Declare.
1578 * c-common.c (do_warn_double_promotion): Define.
1579
0a0b3574
MM
15802010-09-05 Mark Mitchell <mark@codesourcery.com>
1581
1582 * c.opt (Wdouble-promotion): New.
1583
d1779886
JM
15842010-09-02 Joseph Myers <joseph@codesourcery.com>
1585
1586 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
1587 fvtable-thunks, fxref): Mark no longer supported in help text.
1588
2d2bd949
JM
15892010-09-02 Joseph Myers <joseph@codesourcery.com>
1590
1591 * c.opt (Wimport, fall-virtual, falt-external-templates,
1592 fdefault-inline, fenum-int-equiv, fexternal-templates,
1593 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
1594 fname-mangling-version-, fnew-abi, fnonnull-objects,
1595 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
1596 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
1597 applicable.
1598 (fhandle-exceptions): Mark with Alias and Warn.
1599 * c-opts.c (c_common_handle_option): Don't handle options marked
1600 as ignored.
1601
5de8299c
JM
16022010-09-02 Joseph Myers <joseph@codesourcery.com>
1603
1604 * c.opt (Wcomments, Werror-implicit-function-declaration,
1605 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
1606 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
1607 aliases.
1608 * c-common.c (option_codes): Use OPT_Wcomment instead of
1609 OPT_Wcomments.
1610 * c-opts.c (warning_as_error_callback, c_common_handle_option):
1611 Don't handle options marked as aliases.
1612
0ceb0201
RG
16132010-08-25 Richard Guenther <rguenther@suse.de>
1614
1615 * c-common.c (c_common_get_alias_set): Remove special
1616 handling for pointers.
1617
ac47786e
NF
16182010-08-20 Nathan Froyd <froydnj@codesourcery.com>
1619
1620 * c-common.c: Use FOR_EACH_VEC_ELT.
1621 * c-gimplify.c: Likewise.
1622 * c-pragma.c: Likewise.
1623
c878765b
JM
16242010-08-16 Joseph Myers <joseph@codesourcery.com>
1625
1626 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
1627 RejectDriver.
1628 (MMDX): Change back to MMD. Mark NoDriverArg instead of
1629 RejectDriver.
1630 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
1631 instead of OPT_MDX and OPT_MMDX.
1632
603349bf
JM
16332010-08-16 Joseph Myers <joseph@codesourcery.com>
1634
1635 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
1636
644fa7ac
JM
16372010-08-12 Joseph Myers <joseph@codesourcery.com>
1638
1639 * c.opt (MD, MMD): Change to MDX and MMDX.
1640 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
1641
481e1176
JM
16422010-08-11 Joseph Myers <joseph@codesourcery.com>
1643
1644 * c-opts.c (c_common_handle_option): Call handle_generated_option
1645 instead of handle_option.
1646
ac8dc9f7
NF
16472010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1648
1649 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
1650 (maybe_apply_renaming_pragma): Delete unneeded declarations.
1651
4f8c876d
NF
16522010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1653
1654 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
1655 (pending_redefine_extname): Change type to a VEC.
1656 (add_to_renaming_pragma_list): Update for new type of
1657 pending_redefine_extname.
ac8dc9f7 1658 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 1659
3b0c690e
AC
16602010-08-04 Arnaud Charlet <charlet@adacore.com>
1661
1662 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
1663 visited.
1664 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
1665 decide whether a type has already been declared/seen.
1666 Do not go to the original type.
1667 (dump_nested_types): New parameter forward.
1668 Generate forward declaration if needed and mark type as visited.
1669 (print_ada_declaration): Call dump_nested_types if not already done.
1670 Mark types as visited.
1671
1890bccc
JM
16722010-08-03 Joseph Myers <joseph@codesourcery.com>
1673
1674 * c.opt (-print-pch-checksum): Remove option.
1675 * c-opts.c (c_common_handle_option): Don't handle
1676 OPT_print_pch_checksum.
1677
5f20c657
JM
16782010-07-27 Joseph Myers <joseph@codesourcery.com>
1679
1680 * c-common.h (c_common_handle_option): Update prototype and return
1681 value type.
1682 * c-opts.c (c_common_handle_option): Update prototype and return
1683 value type. Update calls to handle_option and
1684 enable_warning_as_error.
1685
f551f80c
JJ
16862010-07-27 Jakub Jelinek <jakub@redhat.com>
1687
1688 PR c/45079
1689 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
1690
61ff2bdc
JM
16912010-07-27 Joseph Myers <joseph@codesourcery.com>
1692
1693 * c-common.h (c_common_missing_argument): Remove.
1694 * c-opts.c (c_common_missing_argument): Remove.
1695 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
1696 idirafter, imacros, include, isysroot, isystem, iquote): Add
1697 MissingArgError.
1698 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
1699
7a9bf9a4
JM
17002010-07-27 Joseph Myers <joseph@codesourcery.com>
1701
1702 * c-common.h (c_common_option_lang_mask,
1703 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
1704 New.
1705 (c_common_init_options): Update prototype.
1706 * c-opts.c (c_common_option_lang_mask): New.
1707 (c_common_initialize_diagnostics): Split out of
1708 c_common_init_options.
1709 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
1710 New.
1711 (c_common_init_options): Update prototype. Use decoded options in
1712 search for -lang-asm.
1713
910ad8de
NF
17142010-07-15 Nathan Froyd <froydnj@codesourcery.com>
1715
1716 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
1717 * c-format.c: Likewise.
1718
718f9c0f
MLI
17192010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
1720
1721 * c-common.h: Include diagnostic-core.h. Error if already
1722 included.
1723 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
1724
4d451982
MLI
17252010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1726
1727 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
1728 Do not include expr.h
1729 (vector_mode_valid_p): Move here.
1730
119fe915
SB
17312010-06-21 DJ Delorie <dj@redhat.com>
1732
1733 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
1734 allow these pragmas anywhere.
1735
17362010-06-14 Jakub Jelinek <jakub@redhat.com>
1737
1738 PR bootstrap/44509
1739 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
1740 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
1741 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
1742 ggc_strdup instead of xstrdup.
1743
17442010-06-10 Jakub Jelinek <jakub@redhat.com>
1745
1746 * c-cppbuiltin.c: Include cpp-id-data.h.
1747 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
1748 (lazy_hex_fp_value): New function.
1749 (builtin_define_with_hex_fp_value): Provide definitions lazily.
1750
6662d794
MLI
17512010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1752
1753 * c-gimplify.c: Do not include tree-flow.h
1754
38f8b050
JR
17552010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
1756
1757 PR other/44034
1758 * c-common.c: Rename targetm member:
1759 targetm.enum_va_list -> targetm.enum_va_list_p
1760
9589f23e
AS
17612010-06-28 Anatoly Sokolov <aesok@post.ru>
1762
1763 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
1764
3b06d379
SB
17652010-06-28 Steven Bosscher <steven@gcc.gnu.org>
1766
1767 * c-cppbuiltin.c: Do not include except.h.
1768
d166d4c3
AK
17692010-06-24 Andi Kleen <ak@linux.intel.com>
1770
1771 * c-common.c (warn_for_omitted_condop): New.
1772 * c-common.h (warn_for_omitted_condop): Add prototype.
1773
70cb8be6
JM
17742010-06-21 Joseph Myers <joseph@codesourcery.com>
1775
1776 * c.opt (lang-objc): Remove.
1777 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
1778
a4c97feb
JR
17792010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
1780
1781 * c-opts.c: Include "tm_p.h".
1782
6e2f1956
JM
17832010-06-20 Joseph Myers <joseph@codesourcery.com>
1784
1785 * c-common.c (parse_optimize_options): Update call to
1786 decode_options.
1787
bc87224e
NF
17882010-06-18 Nathan Froyd <froydnj@codesourcery.com>
1789
1790 * c-common.c (record_types_used_by_current_var_decl): Adjust for
1791 new type of types_used_by_cur_var_decl.
1792
b49cf425
JR
17932010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
1794
1795 PR bootstrap/44512
1796 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
1797 for C++ standard compliance.
1798
59f9c2ed
JM
17992010-06-16 Jason Merrill <jason@redhat.com>
1800
1801 * c.opt: Add -Wnoexcept.
1802
33766b66
RG
18032010-06-16 Richard Guenther <rguenther@suse.de>
1804
1805 PR c/44555
1806 * c-common.c (c_common_truthvalue_conversion): Remove
1807 premature and wrong optimization concering ADDR_EXPRs.
1808
eff7e30c
AC
18092010-06-15 Arnaud Charlet <charlet@adacore.com>
1810
1811 * c-ada-spec.c (dump_sloc): Remove column info.
1812 (is_simple_enum): New function.
1813 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
1814 enum types when relevant.
1815
6312e84d
MLI
18162010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1817
1818 * c-common.c (conversion_warning): Warn at expression
1819 location.
1820
1cb42611
JM
18212010-06-10 Joseph Myers <joseph@codesourcery.com>
1822
1823 * c-opts.c (c_common_handle_option): Don't handle
1824 OPT_fshow_column.
1825
a9429e29
LB
18262010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1827
1828 * c-pragma.c (push_alignment): Use typed GC allocation.
1829 (handle_pragma_push_options): Likewise.
1830
1831 * c-common.c (parse_optimize_options): Likewise.
1832
1833 * c-common.h (struct sorted_fields_type): Add variable_size GTY
1834 option.
1835
5498f011
JM
18362010-06-07 Joseph Myers <joseph@codesourcery.com>
1837
1838 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
1839 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1840 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1841 flag_signed_bitfields, warn_strict_null_sentinel,
1842 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
1843 flag_gen_declaration, flag_no_gnu_keywords,
1844 flag_implement_inlines, flag_implicit_templates,
1845 flag_implicit_inline_templates, flag_optional_diags,
1846 flag_elide_constructors, flag_default_inline, flag_rtti,
1847 flag_conserve_space, flag_access_control, flag_check_new,
1848 flag_new_for_scope, flag_weak, flag_working_directory,
1849 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
1850 flag_enforce_eh_specs, flag_threadsafe_statics,
1851 flag_pretty_templates): Remove.
1852 * c-common.h (flag_preprocess_only, flag_nil_receivers,
1853 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
1854 flag_replace_objc_classes, flag_undef, flag_no_builtin,
1855 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1856 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1857 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
1858 flag_no_gnu_keywords, flag_implement_inlines,
1859 flag_implicit_templates, flag_implicit_inline_templates,
1860 flag_optional_diags, flag_elide_constructors, flag_default_inline,
1861 flag_rtti, flag_conserve_space, flag_access_control,
1862 flag_check_new, flag_new_for_scope, flag_weak,
1863 flag_working_directory, flag_use_cxa_atexit,
1864 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
1865 flag_threadsafe_statics, flag_pretty_templates,
1866 warn_strict_null_sentinel): Remove.
1867 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
1868 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
1869 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
1870 fimplicit-inline-templates, fimplicit-templates,
1871 flax-vector-conversions, fms-extensions, fnil-receivers,
1872 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
1873 frtti, fshort-double, fshort-enums, fshort-wchar,
1874 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
1875 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
1876 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
1877 gen-decls, undef): Use Var.
1878 (fdefault-inline, foptional-diags): Document as doing nothing.
1879 * c-opts.c (c_common_handle_option): Remove cases for options now
1880 using Var. Mark ignored options as such.
1881
39dabefd
SB
18822010-06-05 Steven Bosscher <steven@gcc.gnu.org>
1883
1884 * c-common.c: Moved to here from parent directory.
1885 * c-common.def: Likewise.
1886 * c-common.h: Likewise.
1887 * c-cppbuiltin.c: Likewise.
1888 * c-dump.c: Likewise.
1889 * c-format.c: Likewise.
1890 * c-format.h : Likewise.
1891 * c-gimplify.c: Likewise.
1892 * c-lex.c: Likewise.
1893 * c-omp.c: Likewise.
1894 * c.opt: Likewise.
1895 * c-opts.c: Likewise.
1896 * c-pch.c: Likewise.
1897 * c-ppoutput.c: Likewise.
1898 * c-pragma.c: Likewise.
1899 * c-pragma.h: Likewise.
1900 * c-pretty-print.c: Likewise.
1901 * c-pretty-print.h: Likewise.
1902 * c-semantics.c: Likewise.
1903 * stub-objc.c: Likewise.
1904
1905 * c-common.c: Include gt-c-family-c-common.h.
1906 * c-pragma.c: Include gt-c-family-c-pragma.h.
1907\f
04695783 1908Copyright (C) 2010, 2011 Free Software Foundation, Inc.
39dabefd
SB
1909
1910Copying and distribution of this file, with or without modification,
1911are permitted in any medium without royalty provided the copyright
1912notice and this notice are preserved.
This page took 0.801848 seconds and 5 git commands to generate.