]> gcc.gnu.org Git - gcc.git/blame - gcc/c-family/ChangeLog
re PR rtl-optimization/53278 (internal compiler error: in df_uses_record, at df-scan...
[gcc.git] / gcc / c-family / ChangeLog
CommitLineData
f2c4a785
MLI
12012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
2
3 PR c/43772
4 * c-common.c (warn_logical_operator): Do not warn if either side
5 is already true or false.
6
50f305ca
MLI
72012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
8
9 PR c/51712
10 * c-common.c (expr_original_type): New.
11 (shorten_compare): Do not warn for enumeration types.
12
0c3641b0
MLI
132012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
14
15 * c.opt (fpermissive): Add Var(flag_permissive).
16
7edaa4d2
MG
172012-04-30 Marc Glisse <marc.glisse@inria.fr>
18
19 PR c++/51033
20 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
21 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
22
b9c8da34
DS
232012-04-30 Dodji Seketeli <dodji@redhat.com>
24
25 Add -Wvarargs option
26 * c.opt (Wvarargs): Define new option.
27
e6c69da0
MLI
282012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
29
30 * c-common.c (check_function_arguments): Replace
31 Wmissing-format-attribute with Wsuggest-attribute=format.
32
90137d8f
MLI
332012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
34
35 * c.opt (Wsuggest-attribute=format): New. Alias of
36 Wmissing-format-attribute.
37 * c-format.c (decode_format_type): Replace
38 Wmissing-format-attribute with Wsuggest-attribute=format.
39 (check_function_format): Likewise.
40
7f5f5f98
OW
412012-04-27 Ollie Wild <aaw@google.com>
42
43 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
44 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
45 * c.opt: Add Wliteral-suffix.
46
c1771a20
MLI
472012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
48
49 PR c/44774
50 * c.opt (Wpedantic): New.
51 (pedantic): Alias Wpedantic.
52 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
53 (c_common_post_options): Likewise.
54 (sanitize_cpp_opts): Likewise.
55 * c-lex.c (interpret_float): Likewise.
56 * c-format.c (check_format_types): Likewise.
57 * c-common.c (pointer_int_sum): Likewise.
58 (c_sizeof_or_alignof_type): Likewise.
59 (c_add_case_label): Likewise.
60 (c_do_switch_warnings): Likewise.
61 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
62
04b391c1
JM
632012-04-15 Jason Merrill <jason@redhat.com>
64
65 PR c++/52818
66 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
67 (C_STD_NAME): Distinguish between C++98 and C++11.
68
ac868f29
EB
692012-04-11 Eric Botcazou <ebotcazou@adacore.com>
70
71 PR target/52624
72 * c-common.h (uint16_type_node): Rename into...
73 (c_uint16_type_node): ...this.
74 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
75 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
76
fd4116f4
MLI
772012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
78
79 * c-common.c (warn_if_unused_value): Move definition to here.
80 * c-common.h (warn_if_unused_value): Move declaration to here.
81
573ac65e
WB
822012-03-23 William Bader <williambader@hotmail.com>
83
84 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
85
552b8185
JM
862012-03-20 Jason Merrill <jason@redhat.com>
87
88 * c-common.h (enum cxx_dialect): Add cxx1y.
89 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
90 test.
91 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
92 * c-opts.c (c_common_post_options): Likewise.
93 (set_std_cxx1y): New.
94 (c_common_handle_option): Call it.
95 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
96
04398fa8
PC
972012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
98
99 PR c++/14710
100 * c.opt ([Wuseless-cast]): Add.
101
d2a12ae7
RG
1022012-03-16 Richard Guenther <rguenther@suse.de>
103
104 * c-pretty-print.c (pp_c_initializer_list): Adjust.
105
a12bf402
MLI
1062012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
107
108 PR c++/44783
109 * c.opt (ftemplate-backtrace-limit) Add.
110
5c30094f
RO
1112012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
112
113 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
114 handling.
115 * c-pragma.c (handle_pragma_extern_prefix): Remove.
116 (init_pragma): Don't register extern_prefix.
117
21fa2faf
RG
1182012-03-12 Richard Guenther <rguenther@suse.de>
119
120 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
121 (builtin_type_for_size): Likewise.
122
e3793c6f
JJ
1232012-02-13 Jakub Jelinek <jakub@redhat.com>
124
125 PR c++/52215
126 * c-common.c (sync_resolve_params): Don't decide whether to convert
127 or not based on TYPE_SIZE comparison, convert whenever arg_type
128 is unsigned INTEGER_TYPE.
129
93286335
PC
1302012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
131
132 PR c/52118
133 * c.opt ([Wunused-local-typedefs]): Fix description.
134
7a421706
MS
1352012-01-24 Mike Stump <mikestump@comcast.net>
136
137 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
138 exactly.
139
ba9b1f11
RG
1402012-01-18 Richard Guenther <rguenther@suse.de>
141
142 * c-opts.c (c_common_post_options): Reset LTO flags if
143 we are about to generate a PCH.
144
465406be
PC
1452012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
146
147 PR c++/51777
148 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
149 use pp_unsigned_wide_integer.
150
aee15221
RG
1512012-01-10 Richard Guenther <rguenther@suse.de>
152
153 PR middle-end/51806
154 * c-opts.c (c_common_handle_option): Move -Werror handling
155 to language independent code.
156
5720c0dc
RG
1572012-01-05 Richard Guenther <rguenther@suse.de>
158
159 PR middle-end/51764
160 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
161 from common.opt.
162
73ac190a
PC
1632011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
164
165 PR c++/51316
166 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
167 of array types with an unknown bound.
168
48b0b196
JM
1692011-12-20 Joseph Myers <joseph@codesourcery.com>
170
171 * c-common.c (flag_isoc99): Update comment to refer to C11.
172 (flag_isoc1x): Change to flag_isoc11.
173 * c-common.h (flag_isoc99): Update comment to refer to C11.
174 (flag_isoc1x): Change to flag_isoc11.
175 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
176 C11.
177 * c-opts.c (set_std_c1x): Change to set_std_c11.
178 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
179 Call set_std_c11.
180 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
181 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
182 * c.opt (std=c1x): Change to std=c11. Document as non-draft
183 standard.
184 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
185 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
186 (std=gnu1x): Make alias of std=gnu11.
187
d58d6eb5
JM
1882011-12-19 Jason Merrill <jason@redhat.com>
189
190 PR c++/51228
191 * c-common.c (handle_transparent_union_attribute): Check the first
192 field if the type is complete.
193
b3908fcc
JW
1942011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
195
196 PR libstdc++/51365
197 * c-common.c (RID_IS_FINAL): Add.
198 * c-common.h (RID_IS_FINAL): Add.
199
fea3ca91
IS
2002011-11-30 Iain Sandoe <iains@gcc.gnu.org>
201
202 * c.opt (fgnu-runtime): Provide full description.
203 (fnext-runtime): Likewise.
204 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
205
62bad7cd
AM
2062011-11-28 Andrew MacLeod <amacleod@redhat.com>
207
208 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
209 predefines in one place. Add LOCK_FREE predefines.
210 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
211 new func.
212
c466c4ff
AM
2132011-11-24 Andrew MacLeod <amacleod@redhat.com>
214
215 PR c/51256
216 * c-common.c (get_atomic_generic_size): Check for various error
217 conditions
218 (resolve_overloaded_atomic_exchange,
219 resolve_overloaded_atomic_compare_exchange,
220 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
221 error_mark_node for error conditions.
222
a5952633
RG
2232011-11-08 Richard Guenther <rguenther@suse.de>
224
225 PR middle-end/51010
226 c-family/
227
0a35513e
AH
2282011-11-07 Richard Henderson <rth@redhat.com>
229 Aldy Hernandez <aldyh@redhat.com>
230 Torvald Riegel <triegel@redhat.com>
231
232 Merged from transactional-memory.
233
234 * c-common.c (handle_tm_wrap_attribute,
235 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
236 (struct c_common_reswords): Added __transaction* keywords.
237 (struct c_common_attribute_table): Added transaction* and tm_regparm
238 attributes.
239 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
240 masks.
241 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
242 find_tm_attribute): Declare.
243
6d87092d
JM
2442011-11-07 Jason Merrill <jason@redhat.com>
245
246 PR c++/35688
247 * c-common.c, c-common.h: Revert yesterday's changes.
248
8e7860a1
JM
2492011-11-06 Jason Merrill <jason@redhat.com>
250
251 PR c++/35688
252 * c-common.c (decl_has_visibility_attr): Split out from...
253 (c_determine_visibility): ...here.
254 * c-common.h: Declare it.
255
d19fa6b5
JM
2562011-11-06 Joseph Myers <joseph@codesourcery.com>
257
258 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
259 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
260 type.
261 (check_user_alignment): New. Split out of
262 handle_aligned_attribute. Disallow integer constants with
263 noninteger types. Conditionally allow zero.
264 (handle_aligned_attribute): Use check_user_alignment.
265 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
266
86951993
AM
2672011-11-06 Andrew MacLeod <amacleod@redhat.com>
268 Richard Henderson <rth@redhat.com>
269
270 Merged from cxx-mem-model.
271
272 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
273 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
274 parameters that are the same type size.
275 (get_atomic_generic_size): New. Find size of generic
276 atomic function parameters and do typechecking.
277 (add_atomic_size_parameter): New. Insert size into parameter list.
278 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
279 either __atomic_exchange_n or external library call.
280 (resolve_overloaded_atomic_compare_exchange): Restructure
281 __atomic_compare_exchange to either _n variant or external library call.
282 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
283 __atomic_load_n or an external library call.
284 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
285 __atomic_store_n or an external library call.
286 (resolve_overloaded_builtin): Handle new __atomic builtins.
287
cf9e9959
EB
2882011-11-04 Eric Botcazou <ebotcazou@adacore.com>
289
290 PR c++/50608
291 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
292 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
293 <INDIRECT_REF>: Return the argument.
294 <ARRAY_REF>: Remove special code for negative offset.
295 Call fold_build_pointer_plus instead of size_binop.
296 (fold_offsetof): Remove STOP_REF argument and adjust.
297 * c-common.h (fold_offsetof_1): Declare.
298 (fold_offsetof): Remove STOP_REF argument.
299
25339f10
JM
3002011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
301
302 PR c++/50810
303 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
304 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
305 Wnarrowing for C++0x and C++98.
306 * c.opt ([Wnarrowing]): Update.
307
89401152
PC
3082011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
309
310 PR c++/44277
311 * c.opt: Add Wzero-as-null-pointer-constant.
312
97e3ad20
JM
3132011-10-31 Jason Merrill <jason@redhat.com>
314
15694fdd
JM
315 * c.opt (-fdeduce-init-list): Off by default.
316
97e3ad20
JM
317 PR c++/50920
318 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
319 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
320 and -Wc++11-compat.
321 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
322
fb9120e3
RAV
3232011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
324
325 PR c++/30066
326 * c.opt (fvisibility-inlines-hidden): Description change.
327
3ce4f9e4
ESR
3282011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
329
330 Implement C++11 user-defined literals.
331 * c-common.c (build_userdef_literal): New.
332 * c-common.def: New tree code.
333 * c-common.h (tree_userdef_literal): New tree struct and accessors.
334 * c-lex.c (interpret_float): Add suffix parm.
335 (c_lex_with_flags): Build literal tokens.
336
5f53c243
PC
3372011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
338
339 PR c++/50841
340 Revert:
341 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
342
343 PR c++/50810
344 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
345 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
346 Wnarrowing for C++0x and C++98.
347 * c.opt ([Wnarrowing]): Update.
348
263734e1
PC
3492011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
350
351 PR c++/50810
352 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
353 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
354 Wnarrowing for C++0x and C++98.
355 * c.opt ([Wnarrowing]): Update.
356
d2e312d7
PC
3572011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
358
359 PR c++/45385
360 * c-common.c (conversion_warning): Remove code looking for
361 artificial operands.
362
d17687f6
DS
3632011-10-18 Dodji Seketeli <dodji@redhat.com>
364
365 PR bootstrap/50760
366 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
367 !NO_IMPLICIT_EXTERN_C.
368
fc8396e9
PC
3692011-10-17 Michael Spertus <mike_spertus@symantec.com>
370
371 * c-common.c (c_common_reswords): Add __bases,
372 __direct_bases.
373 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
374
3752011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
376
377 PR c++/50757
378 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
379
847e697a
TT
3802011-10-15 Tom Tromey <tromey@redhat.com>
381 Dodji Seketeli <dodji@redhat.com>
382
383 * c.opt (fdebug-cpp): New option.
384 * c-opts.c (c_common_handle_option): Handle the option.
385 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
386 output stream in parameter. Factorized from ...
387 (maybe_print_line): ... this. Dump location debug information when
388 -fdebug-cpp is in effect.
389 (print_line_1): New static function. Takes an output stream in
390 parameter. Factorized from ...
391 (print_line): ... here. Dump location information when -fdebug-cpp
392 is in effect.
393 (scan_translation_unit): Dump location information when
394 -fdebug-cpp is in effect.
395
92582b75
TT
3962011-10-15 Tom Tromey <tromey@redhat.com>
397 Dodji Seketeli <dodji@redhat.com>
398
399 * c.opt (ftrack-macro-expansion): New option. Handle it with and
400 without argument.
401 * c-opts.c (c_common_handle_option)<case
402 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
403 cases. Handle -ftrack-macro-expansion with and without argument.
404
46427374
TT
4052011-10-15 Tom Tromey <tromey@redhat.com>
406 Dodji Seketeli <dodji@redhat.com>
407
408 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
409 (print_line, cb_define, do_line_change): Adjust to avoid touching
410 the internals of struct line_map. Use the public API instead.
411 * c-pch.c (c_common_read_pch): Likewise.
412 * c-lex.c (fe_file_change): Likewise.
413
fc8396e9
PC
4142011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
415
416 PR c++/17212
417 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
418
4192011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
420
421 PR c++/33067
422 * c-pretty-print.c (pp_c_floating_constant): Output
423 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
424
e79983f4
MM
4252011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
426
427 * c-common.c (def_builtin_1): Delete old interface with two
428 parallel arrays to hold standard builtin declarations, and replace
429 it with a function based interface that can support creating
430 builtins on the fly in the future. Change all uses, and poison
431 the old names. Make sure 0 is not a legitimate builtin index.
432 * c-omp.c (c_finish_omp_barrier): Ditto.
433 (c_finish_omp_taskwait): Ditto.
434 (c_finish_omp_flush): Ditto.
435
6637388f
TG
4362011-10-11 Tristan Gingold <gingold@adacore.com>
437
438 * c.opt: (fallow-parameterless-variadic-functions): New.
439
3797cb21
DS
4402011-09-08 Dodji Seketeli <dodji@redhat.com>
441
442 PR c++/33255 - Support -Wunused-local-typedefs warning
443 * c-common.h (struct c_language_function::local_typedefs): New
444 field.
445 (record_locally_defined_typedef, maybe_record_typedef_use)
446 (maybe_warn_unused_local_typedefs): Declare new functions.
447 * c-common.c (record_locally_defined_typedef)
448 (maybe_record_typedef_use)
449 (maybe_warn_unused_local_typedefs): Define new functions.
450 * c.opt: Declare new -Wunused-local-typedefs flag.
451
693ddb1b
EB
4522011-09-06 Eric Botcazou <ebotcazou@adacore.com>
453
454 PR middle-end/50266
455 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
456 computations.
457
830c740f
RG
4582011-09-05 Richard Guenther <rguenther@suse.de>
459
460 * c-common.c (complete_array_type): Use ssize_int (-1) instead
461 of integer_minus_one_node for empty array upper bounds.
462
892a371f
DS
4632011-08-28 Dodji Seketeli <dodji@redhat.com>
464
465 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
466 it's the first time it's being called on this main TU.
467
0e3fdb48
RB
4682011-08-24 Richard Guenther <rguenther@suse.de>
469
470 PR c/49396
471 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
472
4732011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
474
475 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
476 defined in cpp_init_builtins and c_cpp_builtins.
477
d4a83c10
JM
4782011-08-19 Joseph Myers <joseph@codesourcery.com>
479
480 * c-common.c (c_common_reswords): Add __builtin_complex.
481 * c-common.h (RID_BUILTIN_COMPLEX): New.
482
bbceee64
JM
4832011-08-18 Joseph Myers <joseph@codesourcery.com>
484
485 * c-common.c (c_common_reswords): Add _Noreturn.
486 (keyword_is_function_specifier): Handle RID_NORETURN.
487 * c-common.h (RID_NORETURN): New.
488
0e3a99ae
AS
4892011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
490
491 * c-common.c (unsafe_conversion_p): New function. Check if it is
492 unsafe to convert an expression to the type.
493 (conversion_warning): Adjust, use unsafe_conversion_p.
494 * c-common.h (unsafe_conversion_p): New function declaration.
495
20906c66
JJ
4962011-08-02 Jakub Jelinek <jakub@redhat.com>
497
498 * c-common.h (c_finish_omp_atomic): Adjust prototype.
499 (c_finish_omp_taskyield): New prototype.
500 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
501 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
502 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
503 or RHS1 have side-effects, evaluate those too in the right spot,
504 if it is a decl and LHS is also a decl, error out if they
505 aren't the same.
506 (c_finish_omp_taskyield): New function.
507 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
508 * c-pragma.c (omp_pragmas): Add taskyield.
509 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
510 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
511 PRAGMA_OMP_CLAUSE_MERGEABLE.
512
770e5a2e
DS
5132011-07-25 Dodji Seketeli <dodji@redhat.com>
514
515 * c-common.h (set_underlying_type): Remove parm name from
516 declaration.
517
1baae426
RG
5182011-07-25 Romain Geissler <romain.geissler@gmail.com>
519
520 * c-pretty-print.h: Search c-common.h in c-family.
521
fcb21722
JM
5222011-07-22 Jason Merrill <jason@redhat.com>
523
76f86d00
JM
524 PR c++/49793
525 * c.opt (Wnarrowing): New.
526
3a636414
JM
527 PR c++/30112
528 * c-common.h: Declare c_linkage_bindings.
529 * c-pragma.c (handle_pragma_redefine_extname): Use it.
530
fcb21722
JM
531 PR c++/49813
532 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
533 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
534 as flag_isoc99 for 'restrict'.
535 (pp_c_specifier_qualifier_list): Likewise for _Complex.
536
02614448
ILT
5372011-07-21 Ian Lance Taylor <iant@google.com>
538
539 PR middle-end/49705
540 * c-common.c (c_disable_warnings): New static function.
541 (c_enable_warnings): New static function.
542 (c_fully_fold_internal): Change local unused_p to bool. Call
543 c_disable_warnings and c_enable_warnings rather than change
544 c_inhibit_evaluation_warnings.
545
34429675
JM
5462011-07-20 Jason Merrill <jason@redhat.com>
547
548 PR c++/6709 (DR 743)
549 PR c++/42603 (DR 950)
550 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
551 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
552 (CPP_DECLTYPE): New.
553 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
554
5d49b6a7
RG
5552011-07-19 Richard Guenther <rguenther@suse.de>
556
557 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
558 * c-omp.c (c_finish_omp_for): Likewise.
559
e84a58ff
EB
5602011-07-12 Eric Botcazou <ebotcazou@adacore.com>
561
562 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
563 body on the next line.
564
329af3c7
JM
5652011-07-08 Jason Merrill <jason@redhat.com>
566
4063e61b
JM
567 PR c++/45437
568 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
569
329af3c7
JM
570 PR c++/49673
571 * c-common.c (c_apply_type_quals_to_decl): Don't check
572 TYPE_NEEDS_CONSTRUCTING.
573
1a072294
RG
5742011-07-06 Richard Guenther <rguenther@suse.de>
575
576 * c-common.c (c_common_nodes_and_builtins):
577 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
578
fce5dddd
RG
5792011-07-05 Richard Guenther <rguenther@suse.de>
580
581 * c-common.c (c_common_nodes_and_builtins): Build all common
582 tree nodes first.
583
45d439ac
JJ
5842011-06-27 Jakub Jelinek <jakub@redhat.com>
585
56300785
JJ
586 * c-common.h (c_tree_chain_next): New static inline function.
587
45d439ac
JJ
588 * c-common.c (check_builtin_function_arguments): Handle
589 BUILT_IN_ASSUME_ALIGNED.
590
e0a8ecf2
AM
5912011-06-21 Andrew MacLeod <amacleod@redhat.com>
592
593 * c-common.c: Add sync_ or SYNC__ to builtin names.
594 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
595
5962011-06-20 Pierre Vittet <piervit@pvittet.com>
597
598 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
599 handler.
600 (gen_pragma_handler): New union.
601 (internal_pragma_handler): New type.
602 (c_register_pragma_with_data)
603 (c_register_pragma_with_expansion_and_data): New functions.
604
605 * c-pragma.c (registered_pragmas, c_register_pragma_1)
606 (c_register_pragma, c_register_pragma_with_expansion)
607 (c_invoke_pragma_handler): Changed to work with
608 internal_pragma_handler.
609 (c_register_pragma_with_data)
610 (c_register_pragma_with_expansion_and_data): New functions.
611
677f3fa8
JM
6122011-06-14 Joseph Myers <joseph@codesourcery.com>
613
614 * c-common.c: Include common/common-target.h.
615 (handle_section_attribute): Use
616 targetm_common.have_named_sections.
617 * c-cppbuiltin.c: Include common/common-target.h.
618 (c_cpp_builtins): Use targetm_common.except_unwind_info.
619
d7fc8c14
RG
6202011-06-10 Richard Guenther <rguenther@suse.de>
621
622 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
623 to print a IDENTIFIER_NODE.
624
10e48e39
RO
6252011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
626 Joseph Myers <joseph@codesourcery.com>
627
628 * c.opt (fbuilding-libgcc): New option.
629 * c-cppbuiltin.c (c_cpp_builtins): Define
630 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
631
6976ae51
JM
6322011-06-07 Jason Merrill <jason@redhat.com>
633
3ff60975
JM
634 * c-common.c (max_tinst_depth): Lower default to 900.
635
6976ae51
JM
636 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
637
009db074
RG
6382011-06-07 Richard Guenther <rguenther@suse.de>
639
640 * c-common.c (c_common_nodes_and_builtins): Do not set
641 size_type_node or call set_sizetype.
642
b4592b92
DS
6432011-06-07 Dodji Seketeli <dodji@redhat.com>
644
645 PR debug/49130
646 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
647 type when using pointer comparison to compare types.
648
014ab419
JW
6492011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
650
651 * c.opt: Add -Wdelete-non-virtual-dtor.
652 * c-opts.c (c_common_handle_option): Include it in -Wall.
653
4f60111f
NF
6542011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
655
656 PR bootstrap/49190
657
658 Revert:
659 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
660
661 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
662 not tree_common.
663
4cc4f2f4
JJ
6642011-05-27 Jakub Jelinek <jakub@redhat.com>
665
666 PR c++/49165
667 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
668 C++ don't call c_common_truthvalue_conversion on void type arms.
669
38e01f9e
NF
6702011-05-27 Nathan Froyd <froydnj@codesourcery.com>
671
672 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
673 (stmt_list_stack): Define.
674 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
675 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
676
92e948a8
NF
6772011-05-26 Nathan Froyd <froydnj@codesourcery.com>
678
679 * c-common.c (warning_candidate_p): Check for BLOCKs.
680
a2fc3e63
NF
6812011-05-26 Nathan Froyd <froydnj@codesourcery.com>
682
683 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
684 not tree_common.
685
0957c029
JJ
6862011-05-25 Jakub Jelinek <jakub@redhat.com>
687
688 * c-common.c (def_fn_type): Remove extra va_end.
689
828fb3ba
JM
6902011-05-23 Jason Merrill <jason@redhat.com>
691
692 PR c++/48106
693 * c-common.c (c_common_get_narrower): New.
694 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
695
dde05067
NF
6962011-05-23 Nathan Froyd <froydnj@codesourcery.com>
697
698 * c-common.h (check_function_arguments): Tweak prototype of
699 check_function_arguments.
700 * c-common.c (check_function_arguments): Likewise. Adjust
701 calls to check_function_nonnull, check_function_format, and
702 check_function_sentinel.
703 (check_function_sentinel): Take a FUNCTION_TYPE rather than
704 separate attributes and typelist arguments. Use
705 FOREACH_FUNCTION_ARGS to iterate over argument types.
706
3c0d13bf
PC
7072011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
708
709 * c-common.c (c_common_reswords): Reorder.
710 * c-common.h (rid): Likewise.
711
8242dd04
NF
7122011-05-10 Nathan Froyd <froydnj@codesourcery.com>
713
714 * c-common.c (def_fn_type): Don't call build_function_type, call
715 build_function_type_array or build_varargs_function_type_array
716 instead.
717 (c_common_nodes_and_builtins): Likewise.
718
3d528853
NF
7192011-05-05 Nathan Froyd <froydnj@codesourcery.com>
720
721 * c-common.c (c_add_case_label): Omit the loc argument to
722 build_case_label.
723 * c-common.h (build_case_label): Remove.
724 * c-semantics.c (build_case_label): Remove.
725
a04a722b
JM
7262011-05-05 Joseph Myers <joseph@codesourcery.com>
727
728 * c-objc.h (objc_start_method_definition): Update prototype.
729 * stub-objc.c (objc_start_method_definition): Add extra parameter.
730
e19a18d4
NF
7312011-05-04 Nathan Froyd <froydnj@codesourcery.com>
732
733 * c-common.c (check_main_parameter_types): Reindent. Don't use
734 TYPE_ARG_TYPES directly.
735 (handle_nonnull_attribute): Likewise.
736 (sync_resolve_params): Likewise.
737 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
738 to check_format_string.
739 (handle_format_attribute): Likewise.
740 (check_format_string): Take a function type to examine instead of
741 a type list. Use a function_arg_iterator to step through argument
742 types.
743
c62c040f
RG
7442011-05-04 Richard Guenther <rguenther@suse.de>
745
746 * c-common.c (fix_string_type): Use size_int for index type bounds.
747 (start_fname_decls): Do not pass NULL to build_int_cst.
748 (c_init_attributes): Likewise.
749 * c-lex.c (c_lex_with_flags): Likewise.
750
c12ff9d8
JM
7512011-04-27 Jason Merrill <jason@redhat.com>
752
753 * c-common.c (make_tree_vector_from_list): New.
754 * c-common.h: Declare it.
755
304dfbe3
RG
7562011-04-26 Richard Guenther <rguenther@suse.de>
757
758 PR preprocessor/48248
759 * c-ppoutput.c (maybe_print_line): Always optimize newlines
760 for output size with -P.
761
3c0d13bf
PC
7622011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
763
764 * c-common.c (struct c_common_resword): Add __underlying_type.
765 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
766
04695783
JM
7672011-04-20 Jim Meyering <meyering@redhat.com>
768
769 * c-format.c (init_dollar_format_checking): Remove useless
770 if-before-free.
771
0dc33c3c
NP
7722011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
773
774 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 775 (objc_detect_field_duplicates): New.
0dc33c3c 776 * stub-objc.c: Likewise.
3c0d13bf 777
c59633d9
NP
7782011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
779
780 * stub-objc.c (objc_declare_protocols): Renamed to
781 objc_declare_protocol.
782 * c-objc.h: Likewise.
3c0d13bf 783
32dabdaf
NP
7842011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
785
786 * stub-objc.c (objc_declare_class): Updated argument name.
787
81f653d6
NF
7882011-04-12 Nathan Froyd <froydnj@codesourcery.com>
789
790 * c-common.h (c_common_init_ts): Declare.
791 * c-common.c (c_common_init_ts): Define.
792
eb345401
NP
7932011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
794
795 * c-objc.h (objc_build_message_expr): Updated prototype.
796 * stub-objc.c (objc_build_message_expr): Likewise.
797
a358e188
MJ
7982011-04-12 Martin Jambor <mjambor@suse.cz>
799
800 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
801 of cgraph_node.
802
e6313a78
RG
8032011-04-11 Richard Guenther <rguenther@suse.de>
804
805 * c-common.c (complete_array_type): Build a range type of
806 proper type.
807
dcf0c47e
NF
8082011-04-08 Nathan Froyd <froydnj@codesourcery.com>
809
810 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
811 (handle_type_generic_attribute): Likewise.
812
1ee44b26
JM
8132011-04-07 Jason Merrill <jason@redhat.com>
814
815 PR c++/48450
816 * c-common.c (c_common_truthvalue_conversion): Don't ignore
817 conversion from C++0x scoped enum.
818
acce4e77
JM
8192011-04-06 Joseph Myers <joseph@codesourcery.com>
820
821 * c-target-def.h: New file.
822 * c-target.def: New file.
823 * c-target.h: New file.
824 * c-common.c (targetcm): Don't define here.
825 * c-common.h (default_handle_c_option): Declare.
826 * c-format.c: Include c-target.h instead of target.h.
827 * c-opts.c: Include c-target.h instead of target.h. Explicitly
828 include tm.h.
829 (default_handle_c_option): Move from targhooks.c.
830
e2eefb55
JJ
8312011-03-29 Jakub Jelinek <jakub@redhat.com>
832
833 PR preprocessor/48248
834 * c-ppoutput.c (print): Add src_file field.
835 (init_pp_output): Initialize it.
836 (maybe_print_line): Don't optimize by adding up to 8 newlines
837 if map->to_file and print.src_file are different file.
838 (print_line): Update print.src_file.
839
ba78087b
KT
8402011-03-25 Kai Tietz <ktietz@redhat.com>
841
842 * c-ada-spec.c (compare_comment): Use filename_cmp
843 instead of strcmp for filename.
844
0edf1bb2
JL
8452011-03-25 Jeff Law <law@redhat.com>
846
847 * c-family/c-common.c (def_fn_type): Add missing va_end.
848
c7dc8804
JM
8492011-03-25 Jason Merrill <jason@redhat.com>
850
851 * c.opt: Add -std=c++03.
852
d1d879b1
EB
8532011-03-22 Eric Botcazou <ebotcazou@adacore.com>
854
855 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
856
62d784f7
KT
8572011-03-17 Kai Tietz
858
859 PR target/12171
5050afdf
KT
860 * c-pretty-print.c (pp_c_specifier_qualifier_list):
861 Display allowed attributes for function pointer types.
862 (pp_c_attributes_display): New function to display
863 attributes having affects_type_identity flag set to true.
864 * c-pretty-print.h (pp_c_attributes_display): New prototype.
865
62d784f7
KT
866 * c-common.c (c_common_attribute_table):
867 Add new element.
868 (c_common_format_attribute_table): Likewise.
869
82d37118
JM
8702011-03-18 Jason Merrill <jason@redhat.com>
871
49a000c3
JM
872 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
873 * c-common.h: Don't declare it here.
874 * c-common.c: Or define it here.
875 * c-opts.c (c_common_handle_option): Or set it here.
876
82d37118
JM
877 PR c++/35315
878 * c-common.c (handle_transparent_union_attribute): Don't
879 make a duplicate type in C++.
880
17bc631c
JM
8812011-03-15 Jason Merrill <jason@redhat.com>
882
883 * c-common.c (max_constexpr_depth): New.
884 * c-common.h: Declare it.
885 * c-opts.c (c_common_handle_option): Set it.
886 * c.opt (fconstexpr-depth): New option.
887
1b9b91a6
JM
8882011-03-11 Jason Merrill <jason@redhat.com>
889
f231b5ff
JM
890 * c-common.c (attribute_takes_identifier_p): Add missing const.
891
1b9b91a6
JM
892 PR c++/46803
893 * c-common.c (attribute_takes_identifier_p): Assume that an
894 unknown attribute takes an identifier.
895
a19e4d44
NF
8962011-03-07 Nathan Froyd <froydnj@codesourcery.com>
897
898 PR c/47786
899 * c-common.c (c_type_hash): Call list_length instead of iterating
900 through DECL_CHAIN. Rename 'i' to 'n_elements'.
901
982d62f6
JJ
9022011-02-19 Jakub Jelinek <jakub@redhat.com>
903
904 PR c/47809
905 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
906
0a256240
NP
9072011-02-17 Iain Sandoe <iains@gcc.gnu.org>
908
909 * c.opt (fobjc-abi-version=) New.
910 (fobjc-nilcheck): New.
911
ba9e6dd5
NF
9122011-02-03 Nathan Froyd <froydnj@codesourcery.com>
913
914 PR c++/46890
915 * c-common.h (keyword_is_decl_specifier): Declare.
916 * c-common.c (keyword_is_decl_specifier): Define.
917 (keyword_is_function_specifier): New function.
918
7273813a
JJ
9192011-01-26 Jakub Jelinek <jakub@redhat.com>
920
921 PR c/47473
922 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
923 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
924 REAL_TYPE.
925
908ef79b
AC
9262011-01-26 Arnaud Charlet <charlet@adacore.com>
927
928 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
929
237e9384
JJ
9302011-01-26 Jakub Jelinek <jakub@redhat.com>
931
932 PR pch/47430
933 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
934 after init_c_lex if pch_file is set.
935
47ea1edf
DK
9362011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
937
d4dba752 938 PR c++/43601
47ea1edf
DK
939 * c.opt (-fkeep-inline-dllexport): New switch.
940
2aa9c6ae
RG
9412011-01-12 Richard Guenther <rguenther@suse.de>
942
943 PR middle-end/32511
944 * c-common.c (handle_weak_attribute): Warn instead of error
945 on declaring an inline function weak.
946
7bd11157
TT
9472011-01-05 Tom Tromey <tromey@redhat.com>
948
949 * c-common.h (lvalue_error): Update.
950 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
951 not error.
952
0e66e494
NP
9532010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
954
b4f588c4
NP
955 PR objc/47075
956 * c-objc.h (objc_finish_message_expr): Added argument to
957 prototype.
958
f4da8dce
NF
9592010-12-22 Nathan Froyd <froydnj@codesourcery.com>
960
961 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
962 Use prototype_p.
963
46270f14
NP
9642010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
965
966 * c-objc.h (objc_maybe_warn_exceptions): New.
967 * stub-objc.c (objc_maybe_warn_exceptions): New.
968
4816c593
NF
9692010-12-10 Nathan Froyd <froydnj@codesourcery.com>
970
971 * c-common.h (readonly_error): Declare.
972 * c-common.c (readonly_error): Define.
973
7a6daeb0
NF
9742010-12-09 Nathan Froyd <froydnj@codesourcery.com>
975
976 * c-common.h (invalid_indirection_error): Declare.
977 * c-common.c (invalid_indirection_error): Define.
978
892f6119
RG
9792010-12-03 Richard Guenther <rguenther@suse.de>
980
981 PR c/46745
982 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
983 (pp_c_unary_expression): Likewise.
984 (pp_c_expression): Likewise.
985
6c39e757
NP
9862010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
987
988 * c-common.h (objc_finish_function): New.
989 (objc_non_volatilized_type): Removed.
990 (objc_type_quals_match): Removed.
991 * stub-objc.c (objc_finish_function): New.
992 (objc_non_volatilized_type): Removed.
993 (objc_type_quals_match): Removed.
994
7c475d11
JM
9952010-11-30 Joseph Myers <joseph@codesourcery.com>
996
997 * c-common.h (parse_optimize_options): Declare.
998 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
999 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
1000
71f3e391
JM
10012010-11-29 Joseph Myers <joseph@codesourcery.com>
1002
1003 * c-opts.c (check_deps_environment_vars): Use getenv instead of
1004 GET_ENVIRONMENT.
1005 * c-pch.c (O_BINARY): Don't define here.
1006 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
1007
d5fabb58
JM
10082010-11-25 Joseph Myers <joseph@codesourcery.com>
1009
1010 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
1011 targetm.except_unwind_info.
1012
299404a1
JM
10132010-11-23 Joseph Myers <joseph@codesourcery.com>
1014
1015 * c-opts.c (c_common_handle_option): Pass location to
1016 set_struct_debug_option.
1017
c98cd5bf
JM
10182010-11-23 Joseph Myers <joseph@codesourcery.com>
1019
1020 * c-common.c (visibility_options): Move from ../opts.c.
1021 * c-common.h (struct visibility_flags, visibility_options):
1022 Declare here.
1023 * c-opts.c (finish_options): Rename to c_finish_options.
1024 (c_common_init): Update call to finish_options.
1025
a9546771
NP
10262010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
1027
1028 PR objc/34033
1029 * c-lex.c (lex_string): Check that each string in an Objective-C
1030 string concat sequence starts with either one or zero '@', and
1031 that there are no spurious '@' signs at the end.
1032
24a57808
JM
10332010-11-20 Joseph Myers <joseph@codesourcery.com>
1034
1035 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
1036 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
1037 HANDLE_PRAGMA_VISIBILITY.
1038 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
1039 HANDLE_PRAGMA_VISIBILITY): Don't define.
1040 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
1041
a9aa2c3a
NF
10422010-11-20 Nathan Froyd <froydnj@codesourcery.com>
1043
1044 PR c++/16189
1045 PR c++/36888
1046 PR c++/45331
1047 * c-common.h (keyword_begins_type_specifier): Declare.
1048 (keyword_is_storage_class_specifier): Declare.
1049 (keyword_is_type_qualifier): Declare.
1050 * c-common.c (keyword_begins_type_specifier): New function.
1051 (keyword_is_storage_class_specifier): New function.
1052 (keyword_is_type_qualifier): Declare.
1053
5386338c
JM
10542010-11-19 Joseph Myers <joseph@codesourcery.com>
1055
1056 PR c/46547
1057 * c-common.c (in_late_binary_op): Define.
1058 (c_common_truthvalue_conversion): Check in_late_binary_op before
1059 calling c_save_expr.
1060 * c-common.h (in_late_binary_op): Declare.
1061
69ccdddb
JM
10622010-11-19 Joseph Myers <joseph@codesourcery.com>
1063
1064 * c-opts.c (c_common_handle_option): Update calls to
1065 set_struct_debug_option.
1066
6b192a09
NP
10672010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
1068
1069 * c-common.h (objc_declare_protocols): Added additional argument.
1070 * stub-objc.c (objc_declare_protocol): Same change.
1071
fb52b50a
NF
10722010-11-18 Nathan Froyd <froydnj@codesourcery.com>
1073
1074 PR c/33193
1075 * c-common.h (build_real_imag_expr): Declare.
1076 * c-semantics.c (build_real_imag_expr): Define.
1077
b37421c6
JM
10782010-11-17 Joseph Myers <joseph@codesourcery.com>
1079
1080 * c-opts.c (c_common_parse_file): Take no arguments.
1081 * c-common.h (c_common_parse_file): Update prototype.
1082
07078664
JJ
10832010-11-16 Jakub Jelinek <jakub@redhat.com>
1084
1085 PR c++/46401
1086 * c-common.c (warning_candidate_p): Don't track non-const calls
1087 or STRING_CSTs.
1088
c6a13190
ILT
10892010-11-15 Ian Lance Taylor <iant@google.com>
1090
1091 * c-lex.c (init_c_lex): Set macro debug callbacks if
1092 flag_dump_go_spec is set.
1093
925e8657
NP
10942010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
1095
1096 * c-common.h (objc_build_incr_expr_for_property_ref): New.
1097 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
1098
bb0a9581
NF
10992010-11-15 Nathan Froyd <froydnj@codesourcery.com>
1100
1101 PR preprocessor/45038
1102 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
1103 dialects.
1104
c5fa0890
JM
11052010-11-12 Joseph Myers <joseph@codesourcery.com>
1106
1107 * c-common.h (c_family_lang_mask): Declare.
1108 * c-opts.c (c_family_lang_mask): Make extern.
1109 * c-pragma.c (handle_pragma_diagnostic): Use
1110 control_warning_option.
1111
a4d8c676
JM
11122010-11-12 Joseph Myers <joseph@codesourcery.com>
1113
1114 * c-common.c (parse_optimize_options): Update call to
1115 decode_options.
1116 * c-common.h (c_common_handle_option): Update prototype.
1117 * c-opts.c (c_common_handle_option): Take location_t parameter and
1118 pass it to other functions.
1119
f954bd2c
JM
11202010-11-11 Joseph Myers <joseph@codesourcery.com>
1121
1122 * c-opts.c (warning_as_error_callback): Remove.
1123 (c_common_initialize_diagnostics): Don't call
1124 register_warning_as_error_callback.
1125 (c_common_handle_option): Handle -Werror=normalized= here.
1126
d8a07487
JM
11272010-11-10 Joseph Myers <joseph@codesourcery.com>
1128
1129 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
1130 in diagnostic.
1131 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
1132 letter.
1133 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
1134 Remove trailing '.' from diagnostics.
1135 * c.opt (Wwrite-strings_: Avoid '`' in help text.
1136
d5478783
JM
11372010-11-10 Joseph Myers <joseph@codesourcery.com>
1138
1139 * c-common.c (parse_optimize_options): Pass global_dc to
1140 decode_options.
1141 * c-opts.c (c_common_handle_option): Pass &global_options to
1142 set_Wstrict_aliasing.
1143 * c.opt (v): Don't mark Common or document here.
1144
91ebb981
IS
11452010-11-06 Iain Sandoe <iains@gcc.gnu.org>
1146
1147 PR target/44981
1148 * c-format.c (format_type): New type gcc_objc_string_format_type.
1149 (valid_stringptr_type_p): New.
1150 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
1151 (check_format_string): Pass expected type, use
1152 valid_stringptr_type_p (), check that the format string types are
1153 consistent with the format specification.
1154 (decode_format_attr): Warn if NSString is used outside objective-c.
1155 (format_types_orig): Add NSString.
1156 (format_name): New.
1157 (format_flags): New.
1158 (check_format_arg): Handle format strings requiring an external parser.
1159 first_target_format_type: New variable.
1160 (handle_format_attribute): Set up first_target_format_type, pass the
1161 expected format arg string type to check_format_string().
1162 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
1163 * stub-objc.c (objc_string_ref_type_p): New.
1164 (objc_check_format_arg): New.
1165
bede2adc
NP
11662010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
1167
1168 Fixed using the Objective-C 2.0 dot-syntax with class names.
1169 * c-common.h (objc_build_class_component_ref): New.
1170 * stub-objc.c (objc_build_class_component_ref): New.
1171
9a179d01
NP
11722010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1173
1174 * c.opt (Wproperty-assign-default): New option.
1175
22d8d616
NP
11762010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1177
1178 Implemented -fobjc-std=objc1 flag.
1179 * c.opt (fobjc-std=objc1): New option.
1180
2debdb4f
NP
11812010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
1182
1183 Implemented format and noreturn attributes for Objective-C methods.
1184 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
1185 attribute for Objective-C methods.
1186
ec52b111
JM
11872010-10-31 Jason Merrill <jason@redhat.com>
1188
1189 * c-common.c (conversion_warning, warn_for_collisions_1): Use
1190 EXPR_LOC_OR_HERE.
1191
46a88c12
NP
11922010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
1193
1194 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
1195 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
1196 (objc_add_property_declaration): Removed arguments for copies and
1197 ivar.
1198 (objc_build_getter_call): Renamed to
1199 objc_maybe_build_component_ref.
1200 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1201 (objc_is_property_ref): New.
1202 * c-common.c (c_common_reswords): Removed copies and ivar.
1203 * stub-objc.c (objc_add_property_declaration): Removed arguments
1204 for copies and ivar.
1205 (objc_build_getter_call): Renamed to
1206 objc_maybe_build_component_ref.
1207 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1208 (objc_is_property_ref): New.
1209
1e4bf85b
AC
12102010-10-29 Arnaud Charlet <charlet@adacore.com>
1211 Matthew Gingell <gingell@adacore.com>
1212
1213 * c-ada-spec.c (separate_class_package): New function.
1214 (pp_ada_tree_identifier): Prefix references to C++ classes with the
1215 name of their enclosing package.
1216 (print_ada_declaration): Use separate_class_package.
1217
81f0bab2
JM
12182010-10-27 Jason Merrill <jason@redhat.com>
1219
2b08f2c5
JM
1220 * c-common.c (c_common_reswords): Add __is_literal_type.
1221 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
1222
81f0bab2
JM
1223 * c-common.c (check_case_value): Remove special C++ code.
1224
200290f2
NP
12252010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1226
1227 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
1228 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
1229 and RID_LAST_PATTR.
1230 (objc_add_property_declaration): Added additional arguments.
1231 (objc_property_attribute_kind): Removed.
1232 (objc_set_property_attr): Removed.
1233 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
1234 copy and nonatomic.
1235 * stub-objc.c (objc_add_property_declaration): Added additional
1236 arguments.
1237 (objc_set_property_attr): Removed.
1238
f614132b
NP
12392010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1240
1241 * c-common.h (objc_add_property_variable): Renamed to
1242 objc_add_property_declaration. Added location argument.
1243 * stub-objc.c (objc_add_property_variable): Same change.
1244
b8a18805
NP
12452010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
1246
1247 * c-common.h (objc_maybe_printable_name): New.
1248 * stub-objc.c (objc_maybe_printable_name): New.
1249
30cd1c5d
AS
12502010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1251 Andrew Pinski <pinskia@gmail.com>
1252
1253 * c-common.h (c_common_mark_addressable_vec): Declare.
1254 * c-common.c (c_common_mark_addressable_vec): New function.
1255
249a82c4
NP
12562010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1257
1258 * c-common.h (objc_set_method_type): Removed.
1259 (objc_add_method_declaration): Added boolean argument.
1260 (objc_start_method_definition): Same change.
1261 (objc_build_method_signature): Same change.
1262 * stub-objc.c (objc_set_method_type): Removed.
1263 (objc_add_method_declaration): Added boolean argument.
1264 (objc_start_method_definition): Same change.
1265 (objc_build_method_signature): Same change.
1266
977e30bc
NP
12672010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1268
1269 * c-common.h (finish_file): Removed.
1270 (objc_write_global_declarations): New.
1271 * c-opts.c (c_common_parse_file): Do not call finish_file.
1272 * stub-objc.c (objc_write_global_declarations): New.
1273
da57d1b9
NP
12742010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1275
1276 Implemented parsing @synthesize and @dynamic for
1277 Objective-C/Objective-C++.
1278 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
1279 (objc_add_synthesize_declaration): New.
1280 (objc_add_dynamic_declaration): New.
1281 * c-common.c (c_common_reswords): Add synthesize and dynamic.
1282 * stub-objc.c (objc_add_synthesize_declaration): New.
1283 (objc_add_dynamic_declaration): New.
1284
0069111f
MM
12852010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1286
1287 PR target/46041
1288 * c-cppbuiltin.c (mode_has_fma): Move function here from
1289 builtins.c. Don't use the fma optab, instead just use the
1290 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
1291 using -save-temps.
1292
e426b47b
NP
12932010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1294
1295 Merge from 'apple/trunk' branch on FSF servers.
0069111f 1296
e426b47b
NP
1297 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
1298
1299 Radar 4330422
1300 * c-common.h (objc_non_volatilized_type): New declaration
1301 * stub-objc.c (objc_non_volatilized_type): New stub.
1302
90fbfdc3
NP
13032010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
1304
e426b47b 1305 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
1306
1307 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
1308
1309 Radar 4133425
1310 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 1311 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 1312
c37d8c30
IS
13132010-10-17 Iain Sandoe <iains@gcc.gnu.org>
1314
1315 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
1316 * c-common.h (enum rid): Add RID_AT_PACKAGE.
1317 (objc_ivar_visibility_kind): New enum.
1318 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 1319 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
1320 visibility enum.
1321
1b1562a5
MM
13222010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1323
1324 * c-cppbuiltin.c (builtin_define_float_constants): Emit
1325 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
1326 has the appropriate fma builtins.
1327 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
1328
668ea4b1
IS
13292010-10-14 Iain Sandoe <iains@gcc.gnu.org>
1330
1b1562a5 1331 merge from FSF apple 'trunk' branch.
668ea4b1 1332 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 1333
668ea4b1
IS
1334 Radars 4436866, 4505126, 4506903, 4517826
1335 * c-common.c (c_common_resword): Define @property and its attributes.
1336 * c-common.h: Define property attribute enum entries.
1337 (OBJC_IS_PATTR_KEYWORD): New.
1338 (objc_property_attribute_kind): New enum.
1339 Declare objc_set_property_attr (), objc_add_property_variable (),
1340 objc_build_getter_call () and objc_build_setter_call ().
1341 * stub-objc.c (objc_set_property_attr): New stub.
1342 (objc_add_property_variable): Likewise.
1343 (objc_build_getter_call): Likewise.
1344 (objc_build_setter_call) Likewise.
1b1562a5 1345
a1178b30
IS
13462010-10-13 Iain Sandoe <iains@gcc.gnu.org>
1347
1b1562a5 1348 merge from FSF apple 'trunk' branch.
a1178b30
IS
1349 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
1350
1351 Radar 3803157 (method attributes)
1352 * c-common.c (handle_deprecated_attribute): Recognize
1353 objc methods as valid declarations.
1354 * c-common.h: Declare objc_method_decl ().
1b1562a5 1355 * stub-objc.c (objc_method_decl): New stub.
a1178b30 1356
a75bfaa6
JM
13572010-10-08 Joseph Myers <joseph@codesourcery.com>
1358
1359 * c-common.c (parse_optimize_options): Call
1360 decode_cmdline_options_to_array_default_mask before
1361 decode_options. Update arguments to decode_options.
1362 * c-common.h (c_common_init_options_struct): Declare.
1363 * c-opts.c (c_common_init_options_struct): New. Split out from
1364 c_common_init_options.
1365
f05b9d93
NP
13662010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
1367
1368 Implemented fast enumeration for Objective-C.
1369 * c-common.h (objc_finish_foreach_loop): New.
1370 * stub-objc.c (objc_finish_foreach_loop): New.
1371
1ebe4b4f
JM
13722010-10-05 Joseph Myers <joseph@codesourcery.com>
1373
1374 * c-common.h (struct diagnostic_context): Don't declare here.
1375 (c_common_initialize_diagnostics): Declare using
1376 diagnostic_context typedef.
1377 * c-opts.c (c_common_handle_option): Pass global_dc to
1378 handle_generated_option.
1379
d4d24ba4
JM
13802010-10-04 Joseph Myers <joseph@codesourcery.com>
1381
1382 * c-opts.c (c_common_handle_option): Pass &global_options_set to
1383 handle_generated_option.
1384
478a1c5b
ILT
13852010-10-03 Ian Lance Taylor <iant@google.com>
1386
1387 * c.opt (-fplan9-extensions): New option.
1388
82a1c2fe
FXC
13892010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1390
1391 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
1392 Remove.
1393 (c_cpp_builtins): Call functions from cppbuiltin.c instead
1394 of duplicating code.
1395
92902b1b
IS
13962010-09-30 Iain Sandoe <iains@gcc.gnu.org>
1397
1398 * c-common.c: Add two new entries for @optional
1399 and @required keywords.
1400
1401 merge from FSF 'apple/trunk' branch.
1402 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
1403
1404 Radar 4386773
1405 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
1406 objective-c keywords.
1407 (objc_set_method_opt): New declaration.
1408 * stub-objc.c (objc_set_method_opt): New stub.
1409
46625112
JM
14102010-09-30 Joseph Myers <joseph@codesourcery.com>
1411
1412 * c-common.c (handle_optimize_attribute): Pass &global_options to
1413 cl_optimization_save and cl_optimization_restore.
1414 * c-opts.c (c_common_handle_option): Pass &global_options to
1415 handle_generated_option.
1416 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
1417 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
1418 &global_options to cl_optimization_restore.
1419
49b91f05
NP
14202010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
1421
1422 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
1423 Objective-C/Objective-C++ keywords.
1424
13ed556f 14252010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57
NP
1426
1427 Merge from 'apple/trunk' branch on FSF servers.
1428
1429 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
1430
1431 Radar 4281748
1432 * c-common.h (objc_check_global_decl): New declaration.
1433 * stub-objc.c (objc_check_global_decl): New stub.
1434
f0036cca
JM
14352010-09-29 Joseph Myers <joseph@codesourcery.com>
1436
1437 * c.opt: Don't use VarExists.
1438
e3339d0f
JM
14392010-09-29 Joseph Myers <joseph@codesourcery.com>
1440
1441 * c-common.c (c_cpp_error): Update names of diagnostic_context
1442 members.
1443 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
1444 cl_optimization members.
1445 * c-opts.c (warning_as_error_callback, c_common_handle_option,
1446 sanitize_cpp_opts, finish_options): Update names of cpp_options
1447 members.
1448
1973201f
NP
14492010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1450
1451 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
1452 (objc_is_reserved_word): Removed.
1453 * c-common.c: Updated comments.
1454 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
1455 objc_is_reserved_word.
1456 * stub-objc.c (objc_is_reserved_word): Removed.
1457
f7e71da5
IS
14582010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1459
1460 * c-common.h (objc_add_method_declaration): Adjust prototype to
1461 include attributes.
1462 (objc_start_method_definition): Likewise.
1463 (objc_build_keyword_decl): Likewise.
1464 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
1465 (objc_start_method_definition): Likewise.
1466 (objc_build_keyword_decl): Likewise.
1467
c165dca7
IS
14682010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1469
1470 * c-common.h (objc_start_class_interface): Adjust prototype.
1471 (objc_start_category_interface): Likewise.
1472 (objc_start_protocol): Likewise.
1473 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
1474 (objc_start_class_interface): Likewise.
1475 (objc_start_category_interface): Likewise.
1476
7458026b
ILT
14772010-09-27 Ian Lance Taylor <iant@google.com>
1478
1479 * c-common.c (c_common_attribute_table): Add no_split_stack.
1480 (handle_no_split_stack_attribute): New static function.
1481
b581b85b
NP
14822010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
1483
1484 Merge from 'apple/trunk' branch on FSF servers.
1485
1486 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
1487
1488 Radar 4229905
1489 * c-common.h (objc_have_common_type): New declaration.
1490 * stub-objc.c (objc_have_common_type): New stub.
1491
1492 2005-06-22 Ziemowit Laski <zlaski@apple.com>
1493
1494 Radar 4154928
1495 * c-common.h (objc_common_type): New prototype.
1496 * stub-objc.c (objc_common_type): New stub.
1497
46a4da10
JH
14982010-09-24 Jan Hubicka <jh@suse.cz>
1499
1500 * c-common.c (handle_leaf_attribute): New function.
1501 (struct attribute_spec c_common_att): Add leaf.
1502
e200444e
JM
15032010-09-22 Joseph Myers <joseph@codesourcery.com>
1504
1505 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
1506 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
1507 -dump, -dump=, -imacros, -imacros=, -include, -include=,
1508 -include-barrier, -include-directory, -include-directory=,
1509 -include-directory-after, -include-directory-after=,
1510 -include-prefix, -include-prefix=, -include-with-prefix,
1511 -include-with-prefix=, -include-with-prefix-after,
1512 -include-with-prefix-after=, -include-with-prefix-before,
1513 -include-with-prefix-before=, -no-integrated-cpp,
1514 -no-line-commands, -no-standard-includes, -no-warnings, -output,
1515 -output=, -pedantic, -pedantic-errors, -preprocess,
1516 -print-missing-file-dependencies, -trace-includes, -traditional,
1517 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
1518 -user-dependencies, -verbose, -write-dependencies,
1519 -write-user-dependencies, no-integrated-cpp, traditional): New.
1520
29a80ea6
NP
15212010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1522
1523 PR objc/23710
ac1fc2fc
NP
1524 * c-common.h (objc_start_method_definition): Return bool instead
1525 of void.
1526 * stub-objc.c (objc_start_method_definition): Return bool instead
1527 of void.
1528
15292010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1530
1531 PR objc/25965
1532 * c-common.h (objc_get_interface_ivars): New declaration.
1533 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 1534
de621752
ILT
15352010-09-15 Ian Lance Taylor <iant@google.com>
1536
1537 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 1538 messages. Remove period at end of warning message.
de621752 1539
ba885ec5
NS
15402010-09-09 Nathan Sidwell <nathan@codesourcery.com>
1541
1542 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
1543 (handle_alias_attribute): ... here.
1544 (handle_ifunc_attribute): New.
1545
c5ee1358
MM
15462010-09-06 Mark Mitchell <mark@codesourcery.com>
1547
1548 * c-common.h (do_warn_double_promotion): Declare.
1549 * c-common.c (do_warn_double_promotion): Define.
1550
0a0b3574
MM
15512010-09-05 Mark Mitchell <mark@codesourcery.com>
1552
1553 * c.opt (Wdouble-promotion): New.
1554
d1779886
JM
15552010-09-02 Joseph Myers <joseph@codesourcery.com>
1556
1557 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
1558 fvtable-thunks, fxref): Mark no longer supported in help text.
1559
2d2bd949
JM
15602010-09-02 Joseph Myers <joseph@codesourcery.com>
1561
1562 * c.opt (Wimport, fall-virtual, falt-external-templates,
1563 fdefault-inline, fenum-int-equiv, fexternal-templates,
1564 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
1565 fname-mangling-version-, fnew-abi, fnonnull-objects,
1566 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
1567 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
1568 applicable.
1569 (fhandle-exceptions): Mark with Alias and Warn.
1570 * c-opts.c (c_common_handle_option): Don't handle options marked
1571 as ignored.
1572
5de8299c
JM
15732010-09-02 Joseph Myers <joseph@codesourcery.com>
1574
1575 * c.opt (Wcomments, Werror-implicit-function-declaration,
1576 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
1577 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
1578 aliases.
1579 * c-common.c (option_codes): Use OPT_Wcomment instead of
1580 OPT_Wcomments.
1581 * c-opts.c (warning_as_error_callback, c_common_handle_option):
1582 Don't handle options marked as aliases.
1583
0ceb0201
RG
15842010-08-25 Richard Guenther <rguenther@suse.de>
1585
1586 * c-common.c (c_common_get_alias_set): Remove special
1587 handling for pointers.
1588
ac47786e
NF
15892010-08-20 Nathan Froyd <froydnj@codesourcery.com>
1590
1591 * c-common.c: Use FOR_EACH_VEC_ELT.
1592 * c-gimplify.c: Likewise.
1593 * c-pragma.c: Likewise.
1594
c878765b
JM
15952010-08-16 Joseph Myers <joseph@codesourcery.com>
1596
1597 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
1598 RejectDriver.
1599 (MMDX): Change back to MMD. Mark NoDriverArg instead of
1600 RejectDriver.
1601 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
1602 instead of OPT_MDX and OPT_MMDX.
1603
603349bf
JM
16042010-08-16 Joseph Myers <joseph@codesourcery.com>
1605
1606 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
1607
644fa7ac
JM
16082010-08-12 Joseph Myers <joseph@codesourcery.com>
1609
1610 * c.opt (MD, MMD): Change to MDX and MMDX.
1611 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
1612
481e1176
JM
16132010-08-11 Joseph Myers <joseph@codesourcery.com>
1614
1615 * c-opts.c (c_common_handle_option): Call handle_generated_option
1616 instead of handle_option.
1617
ac8dc9f7
NF
16182010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1619
1620 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
1621 (maybe_apply_renaming_pragma): Delete unneeded declarations.
1622
4f8c876d
NF
16232010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1624
1625 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
1626 (pending_redefine_extname): Change type to a VEC.
1627 (add_to_renaming_pragma_list): Update for new type of
1628 pending_redefine_extname.
ac8dc9f7 1629 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 1630
3b0c690e
AC
16312010-08-04 Arnaud Charlet <charlet@adacore.com>
1632
1633 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
1634 visited.
1635 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
1636 decide whether a type has already been declared/seen.
1637 Do not go to the original type.
1638 (dump_nested_types): New parameter forward.
1639 Generate forward declaration if needed and mark type as visited.
1640 (print_ada_declaration): Call dump_nested_types if not already done.
1641 Mark types as visited.
1642
1890bccc
JM
16432010-08-03 Joseph Myers <joseph@codesourcery.com>
1644
1645 * c.opt (-print-pch-checksum): Remove option.
1646 * c-opts.c (c_common_handle_option): Don't handle
1647 OPT_print_pch_checksum.
1648
5f20c657
JM
16492010-07-27 Joseph Myers <joseph@codesourcery.com>
1650
1651 * c-common.h (c_common_handle_option): Update prototype and return
1652 value type.
1653 * c-opts.c (c_common_handle_option): Update prototype and return
1654 value type. Update calls to handle_option and
1655 enable_warning_as_error.
1656
f551f80c
JJ
16572010-07-27 Jakub Jelinek <jakub@redhat.com>
1658
1659 PR c/45079
1660 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
1661
61ff2bdc
JM
16622010-07-27 Joseph Myers <joseph@codesourcery.com>
1663
1664 * c-common.h (c_common_missing_argument): Remove.
1665 * c-opts.c (c_common_missing_argument): Remove.
1666 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
1667 idirafter, imacros, include, isysroot, isystem, iquote): Add
1668 MissingArgError.
1669 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
1670
7a9bf9a4
JM
16712010-07-27 Joseph Myers <joseph@codesourcery.com>
1672
1673 * c-common.h (c_common_option_lang_mask,
1674 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
1675 New.
1676 (c_common_init_options): Update prototype.
1677 * c-opts.c (c_common_option_lang_mask): New.
1678 (c_common_initialize_diagnostics): Split out of
1679 c_common_init_options.
1680 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
1681 New.
1682 (c_common_init_options): Update prototype. Use decoded options in
1683 search for -lang-asm.
1684
910ad8de
NF
16852010-07-15 Nathan Froyd <froydnj@codesourcery.com>
1686
1687 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
1688 * c-format.c: Likewise.
1689
718f9c0f
MLI
16902010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
1691
1692 * c-common.h: Include diagnostic-core.h. Error if already
1693 included.
1694 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
1695
4d451982
MLI
16962010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1697
1698 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
1699 Do not include expr.h
1700 (vector_mode_valid_p): Move here.
1701
119fe915
SB
17022010-06-21 DJ Delorie <dj@redhat.com>
1703
1704 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
1705 allow these pragmas anywhere.
1706
17072010-06-14 Jakub Jelinek <jakub@redhat.com>
1708
1709 PR bootstrap/44509
1710 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
1711 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
1712 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
1713 ggc_strdup instead of xstrdup.
1714
17152010-06-10 Jakub Jelinek <jakub@redhat.com>
1716
1717 * c-cppbuiltin.c: Include cpp-id-data.h.
1718 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
1719 (lazy_hex_fp_value): New function.
1720 (builtin_define_with_hex_fp_value): Provide definitions lazily.
1721
6662d794
MLI
17222010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1723
1724 * c-gimplify.c: Do not include tree-flow.h
1725
38f8b050
JR
17262010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
1727
1728 PR other/44034
1729 * c-common.c: Rename targetm member:
1730 targetm.enum_va_list -> targetm.enum_va_list_p
1731
9589f23e
AS
17322010-06-28 Anatoly Sokolov <aesok@post.ru>
1733
1734 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
1735
3b06d379
SB
17362010-06-28 Steven Bosscher <steven@gcc.gnu.org>
1737
1738 * c-cppbuiltin.c: Do not include except.h.
1739
d166d4c3
AK
17402010-06-24 Andi Kleen <ak@linux.intel.com>
1741
1742 * c-common.c (warn_for_omitted_condop): New.
1743 * c-common.h (warn_for_omitted_condop): Add prototype.
1744
70cb8be6
JM
17452010-06-21 Joseph Myers <joseph@codesourcery.com>
1746
1747 * c.opt (lang-objc): Remove.
1748 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
1749
a4c97feb
JR
17502010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
1751
1752 * c-opts.c: Include "tm_p.h".
1753
6e2f1956
JM
17542010-06-20 Joseph Myers <joseph@codesourcery.com>
1755
1756 * c-common.c (parse_optimize_options): Update call to
1757 decode_options.
1758
bc87224e
NF
17592010-06-18 Nathan Froyd <froydnj@codesourcery.com>
1760
1761 * c-common.c (record_types_used_by_current_var_decl): Adjust for
1762 new type of types_used_by_cur_var_decl.
1763
b49cf425
JR
17642010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
1765
1766 PR bootstrap/44512
1767 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
1768 for C++ standard compliance.
1769
59f9c2ed
JM
17702010-06-16 Jason Merrill <jason@redhat.com>
1771
1772 * c.opt: Add -Wnoexcept.
1773
33766b66
RG
17742010-06-16 Richard Guenther <rguenther@suse.de>
1775
1776 PR c/44555
1777 * c-common.c (c_common_truthvalue_conversion): Remove
1778 premature and wrong optimization concering ADDR_EXPRs.
1779
eff7e30c
AC
17802010-06-15 Arnaud Charlet <charlet@adacore.com>
1781
1782 * c-ada-spec.c (dump_sloc): Remove column info.
1783 (is_simple_enum): New function.
1784 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
1785 enum types when relevant.
1786
6312e84d
MLI
17872010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1788
1789 * c-common.c (conversion_warning): Warn at expression
1790 location.
1791
1cb42611
JM
17922010-06-10 Joseph Myers <joseph@codesourcery.com>
1793
1794 * c-opts.c (c_common_handle_option): Don't handle
1795 OPT_fshow_column.
1796
a9429e29
LB
17972010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1798
1799 * c-pragma.c (push_alignment): Use typed GC allocation.
1800 (handle_pragma_push_options): Likewise.
1801
1802 * c-common.c (parse_optimize_options): Likewise.
1803
1804 * c-common.h (struct sorted_fields_type): Add variable_size GTY
1805 option.
1806
5498f011
JM
18072010-06-07 Joseph Myers <joseph@codesourcery.com>
1808
1809 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
1810 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1811 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1812 flag_signed_bitfields, warn_strict_null_sentinel,
1813 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
1814 flag_gen_declaration, flag_no_gnu_keywords,
1815 flag_implement_inlines, flag_implicit_templates,
1816 flag_implicit_inline_templates, flag_optional_diags,
1817 flag_elide_constructors, flag_default_inline, flag_rtti,
1818 flag_conserve_space, flag_access_control, flag_check_new,
1819 flag_new_for_scope, flag_weak, flag_working_directory,
1820 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
1821 flag_enforce_eh_specs, flag_threadsafe_statics,
1822 flag_pretty_templates): Remove.
1823 * c-common.h (flag_preprocess_only, flag_nil_receivers,
1824 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
1825 flag_replace_objc_classes, flag_undef, flag_no_builtin,
1826 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1827 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1828 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
1829 flag_no_gnu_keywords, flag_implement_inlines,
1830 flag_implicit_templates, flag_implicit_inline_templates,
1831 flag_optional_diags, flag_elide_constructors, flag_default_inline,
1832 flag_rtti, flag_conserve_space, flag_access_control,
1833 flag_check_new, flag_new_for_scope, flag_weak,
1834 flag_working_directory, flag_use_cxa_atexit,
1835 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
1836 flag_threadsafe_statics, flag_pretty_templates,
1837 warn_strict_null_sentinel): Remove.
1838 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
1839 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
1840 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
1841 fimplicit-inline-templates, fimplicit-templates,
1842 flax-vector-conversions, fms-extensions, fnil-receivers,
1843 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
1844 frtti, fshort-double, fshort-enums, fshort-wchar,
1845 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
1846 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
1847 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
1848 gen-decls, undef): Use Var.
1849 (fdefault-inline, foptional-diags): Document as doing nothing.
1850 * c-opts.c (c_common_handle_option): Remove cases for options now
1851 using Var. Mark ignored options as such.
1852
39dabefd
SB
18532010-06-05 Steven Bosscher <steven@gcc.gnu.org>
1854
1855 * c-common.c: Moved to here from parent directory.
1856 * c-common.def: Likewise.
1857 * c-common.h: Likewise.
1858 * c-cppbuiltin.c: Likewise.
1859 * c-dump.c: Likewise.
1860 * c-format.c: Likewise.
1861 * c-format.h : Likewise.
1862 * c-gimplify.c: Likewise.
1863 * c-lex.c: Likewise.
1864 * c-omp.c: Likewise.
1865 * c.opt: Likewise.
1866 * c-opts.c: Likewise.
1867 * c-pch.c: Likewise.
1868 * c-ppoutput.c: Likewise.
1869 * c-pragma.c: Likewise.
1870 * c-pragma.h: Likewise.
1871 * c-pretty-print.c: Likewise.
1872 * c-pretty-print.h: Likewise.
1873 * c-semantics.c: Likewise.
1874 * stub-objc.c: Likewise.
1875
1876 * c-common.c: Include gt-c-family-c-common.h.
1877 * c-pragma.c: Include gt-c-family-c-pragma.h.
1878\f
04695783 1879Copyright (C) 2010, 2011 Free Software Foundation, Inc.
39dabefd
SB
1880
1881Copying and distribution of this file, with or without modification,
1882are permitted in any medium without royalty provided the copyright
1883notice and this notice are preserved.
This page took 0.73006 seconds and 5 git commands to generate.