]> gcc.gnu.org Git - gcc.git/blame - gcc/c-family/ChangeLog
re PR libfortran/38199 (missed optimization: I/O performance)
[gcc.git] / gcc / c-family / ChangeLog
CommitLineData
ac868f29
EB
12012-04-11 Eric Botcazou <ebotcazou@adacore.com>
2
3 PR target/52624
4 * c-common.h (uint16_type_node): Rename into...
5 (c_uint16_type_node): ...this.
6 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
7 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
8
fd4116f4
MLI
92012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
10
11 * c-common.c (warn_if_unused_value): Move definition to here.
12 * c-common.h (warn_if_unused_value): Move declaration to here.
13
573ac65e
WB
142012-03-23 William Bader <williambader@hotmail.com>
15
16 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
17
552b8185
JM
182012-03-20 Jason Merrill <jason@redhat.com>
19
20 * c-common.h (enum cxx_dialect): Add cxx1y.
21 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
22 test.
23 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
24 * c-opts.c (c_common_post_options): Likewise.
25 (set_std_cxx1y): New.
26 (c_common_handle_option): Call it.
27 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
28
04398fa8
PC
292012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
30
31 PR c++/14710
32 * c.opt ([Wuseless-cast]): Add.
33
d2a12ae7
RG
342012-03-16 Richard Guenther <rguenther@suse.de>
35
36 * c-pretty-print.c (pp_c_initializer_list): Adjust.
37
a12bf402
MLI
382012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
39
40 PR c++/44783
41 * c.opt (ftemplate-backtrace-limit) Add.
42
5c30094f
RO
432012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
44
45 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
46 handling.
47 * c-pragma.c (handle_pragma_extern_prefix): Remove.
48 (init_pragma): Don't register extern_prefix.
49
21fa2faf
RG
502012-03-12 Richard Guenther <rguenther@suse.de>
51
52 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
53 (builtin_type_for_size): Likewise.
54
e3793c6f
JJ
552012-02-13 Jakub Jelinek <jakub@redhat.com>
56
57 PR c++/52215
58 * c-common.c (sync_resolve_params): Don't decide whether to convert
59 or not based on TYPE_SIZE comparison, convert whenever arg_type
60 is unsigned INTEGER_TYPE.
61
93286335
PC
622012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
63
64 PR c/52118
65 * c.opt ([Wunused-local-typedefs]): Fix description.
66
7a421706
MS
672012-01-24 Mike Stump <mikestump@comcast.net>
68
69 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
70 exactly.
71
ba9b1f11
RG
722012-01-18 Richard Guenther <rguenther@suse.de>
73
74 * c-opts.c (c_common_post_options): Reset LTO flags if
75 we are about to generate a PCH.
76
465406be
PC
772012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
78
79 PR c++/51777
80 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
81 use pp_unsigned_wide_integer.
82
aee15221
RG
832012-01-10 Richard Guenther <rguenther@suse.de>
84
85 PR middle-end/51806
86 * c-opts.c (c_common_handle_option): Move -Werror handling
87 to language independent code.
88
5720c0dc
RG
892012-01-05 Richard Guenther <rguenther@suse.de>
90
91 PR middle-end/51764
92 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
93 from common.opt.
94
73ac190a
PC
952011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
96
97 PR c++/51316
98 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
99 of array types with an unknown bound.
100
48b0b196
JM
1012011-12-20 Joseph Myers <joseph@codesourcery.com>
102
103 * c-common.c (flag_isoc99): Update comment to refer to C11.
104 (flag_isoc1x): Change to flag_isoc11.
105 * c-common.h (flag_isoc99): Update comment to refer to C11.
106 (flag_isoc1x): Change to flag_isoc11.
107 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
108 C11.
109 * c-opts.c (set_std_c1x): Change to set_std_c11.
110 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
111 Call set_std_c11.
112 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
113 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
114 * c.opt (std=c1x): Change to std=c11. Document as non-draft
115 standard.
116 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
117 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
118 (std=gnu1x): Make alias of std=gnu11.
119
d58d6eb5
JM
1202011-12-19 Jason Merrill <jason@redhat.com>
121
122 PR c++/51228
123 * c-common.c (handle_transparent_union_attribute): Check the first
124 field if the type is complete.
125
b3908fcc
JW
1262011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
127
128 PR libstdc++/51365
129 * c-common.c (RID_IS_FINAL): Add.
130 * c-common.h (RID_IS_FINAL): Add.
131
fea3ca91
IS
1322011-11-30 Iain Sandoe <iains@gcc.gnu.org>
133
134 * c.opt (fgnu-runtime): Provide full description.
135 (fnext-runtime): Likewise.
136 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
137
62bad7cd
AM
1382011-11-28 Andrew MacLeod <amacleod@redhat.com>
139
140 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
141 predefines in one place. Add LOCK_FREE predefines.
142 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
143 new func.
144
c466c4ff
AM
1452011-11-24 Andrew MacLeod <amacleod@redhat.com>
146
147 PR c/51256
148 * c-common.c (get_atomic_generic_size): Check for various error
149 conditions
150 (resolve_overloaded_atomic_exchange,
151 resolve_overloaded_atomic_compare_exchange,
152 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
153 error_mark_node for error conditions.
154
a5952633
RG
1552011-11-08 Richard Guenther <rguenther@suse.de>
156
157 PR middle-end/51010
158 c-family/
159
0a35513e
AH
1602011-11-07 Richard Henderson <rth@redhat.com>
161 Aldy Hernandez <aldyh@redhat.com>
162 Torvald Riegel <triegel@redhat.com>
163
164 Merged from transactional-memory.
165
166 * c-common.c (handle_tm_wrap_attribute,
167 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
168 (struct c_common_reswords): Added __transaction* keywords.
169 (struct c_common_attribute_table): Added transaction* and tm_regparm
170 attributes.
171 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
172 masks.
173 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
174 find_tm_attribute): Declare.
175
6d87092d
JM
1762011-11-07 Jason Merrill <jason@redhat.com>
177
178 PR c++/35688
179 * c-common.c, c-common.h: Revert yesterday's changes.
180
8e7860a1
JM
1812011-11-06 Jason Merrill <jason@redhat.com>
182
183 PR c++/35688
184 * c-common.c (decl_has_visibility_attr): Split out from...
185 (c_determine_visibility): ...here.
186 * c-common.h: Declare it.
187
d19fa6b5
JM
1882011-11-06 Joseph Myers <joseph@codesourcery.com>
189
190 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
191 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
192 type.
193 (check_user_alignment): New. Split out of
194 handle_aligned_attribute. Disallow integer constants with
195 noninteger types. Conditionally allow zero.
196 (handle_aligned_attribute): Use check_user_alignment.
197 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
198
86951993
AM
1992011-11-06 Andrew MacLeod <amacleod@redhat.com>
200 Richard Henderson <rth@redhat.com>
201
202 Merged from cxx-mem-model.
203
204 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
205 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
206 parameters that are the same type size.
207 (get_atomic_generic_size): New. Find size of generic
208 atomic function parameters and do typechecking.
209 (add_atomic_size_parameter): New. Insert size into parameter list.
210 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
211 either __atomic_exchange_n or external library call.
212 (resolve_overloaded_atomic_compare_exchange): Restructure
213 __atomic_compare_exchange to either _n variant or external library call.
214 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
215 __atomic_load_n or an external library call.
216 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
217 __atomic_store_n or an external library call.
218 (resolve_overloaded_builtin): Handle new __atomic builtins.
219
cf9e9959
EB
2202011-11-04 Eric Botcazou <ebotcazou@adacore.com>
221
222 PR c++/50608
223 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
224 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
225 <INDIRECT_REF>: Return the argument.
226 <ARRAY_REF>: Remove special code for negative offset.
227 Call fold_build_pointer_plus instead of size_binop.
228 (fold_offsetof): Remove STOP_REF argument and adjust.
229 * c-common.h (fold_offsetof_1): Declare.
230 (fold_offsetof): Remove STOP_REF argument.
231
25339f10
JM
2322011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
233
234 PR c++/50810
235 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
236 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
237 Wnarrowing for C++0x and C++98.
238 * c.opt ([Wnarrowing]): Update.
239
89401152
PC
2402011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
241
242 PR c++/44277
243 * c.opt: Add Wzero-as-null-pointer-constant.
244
97e3ad20
JM
2452011-10-31 Jason Merrill <jason@redhat.com>
246
15694fdd
JM
247 * c.opt (-fdeduce-init-list): Off by default.
248
97e3ad20
JM
249 PR c++/50920
250 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
251 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
252 and -Wc++11-compat.
253 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
254
fb9120e3
RAV
2552011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
256
257 PR c++/30066
258 * c.opt (fvisibility-inlines-hidden): Description change.
259
3ce4f9e4
ESR
2602011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
261
262 Implement C++11 user-defined literals.
263 * c-common.c (build_userdef_literal): New.
264 * c-common.def: New tree code.
265 * c-common.h (tree_userdef_literal): New tree struct and accessors.
266 * c-lex.c (interpret_float): Add suffix parm.
267 (c_lex_with_flags): Build literal tokens.
268
5f53c243
PC
2692011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
270
271 PR c++/50841
272 Revert:
273 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
274
275 PR c++/50810
276 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
277 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
278 Wnarrowing for C++0x and C++98.
279 * c.opt ([Wnarrowing]): Update.
280
263734e1
PC
2812011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
282
283 PR c++/50810
284 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
285 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
286 Wnarrowing for C++0x and C++98.
287 * c.opt ([Wnarrowing]): Update.
288
d2e312d7
PC
2892011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
290
291 PR c++/45385
292 * c-common.c (conversion_warning): Remove code looking for
293 artificial operands.
294
d17687f6
DS
2952011-10-18 Dodji Seketeli <dodji@redhat.com>
296
297 PR bootstrap/50760
298 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
299 !NO_IMPLICIT_EXTERN_C.
300
fc8396e9
PC
3012011-10-17 Michael Spertus <mike_spertus@symantec.com>
302
303 * c-common.c (c_common_reswords): Add __bases,
304 __direct_bases.
305 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
306
3072011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
308
309 PR c++/50757
310 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
311
847e697a
TT
3122011-10-15 Tom Tromey <tromey@redhat.com>
313 Dodji Seketeli <dodji@redhat.com>
314
315 * c.opt (fdebug-cpp): New option.
316 * c-opts.c (c_common_handle_option): Handle the option.
317 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
318 output stream in parameter. Factorized from ...
319 (maybe_print_line): ... this. Dump location debug information when
320 -fdebug-cpp is in effect.
321 (print_line_1): New static function. Takes an output stream in
322 parameter. Factorized from ...
323 (print_line): ... here. Dump location information when -fdebug-cpp
324 is in effect.
325 (scan_translation_unit): Dump location information when
326 -fdebug-cpp is in effect.
327
92582b75
TT
3282011-10-15 Tom Tromey <tromey@redhat.com>
329 Dodji Seketeli <dodji@redhat.com>
330
331 * c.opt (ftrack-macro-expansion): New option. Handle it with and
332 without argument.
333 * c-opts.c (c_common_handle_option)<case
334 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
335 cases. Handle -ftrack-macro-expansion with and without argument.
336
46427374
TT
3372011-10-15 Tom Tromey <tromey@redhat.com>
338 Dodji Seketeli <dodji@redhat.com>
339
340 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
341 (print_line, cb_define, do_line_change): Adjust to avoid touching
342 the internals of struct line_map. Use the public API instead.
343 * c-pch.c (c_common_read_pch): Likewise.
344 * c-lex.c (fe_file_change): Likewise.
345
fc8396e9
PC
3462011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
347
348 PR c++/17212
349 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
350
3512011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
352
353 PR c++/33067
354 * c-pretty-print.c (pp_c_floating_constant): Output
355 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
356
e79983f4
MM
3572011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
358
359 * c-common.c (def_builtin_1): Delete old interface with two
360 parallel arrays to hold standard builtin declarations, and replace
361 it with a function based interface that can support creating
362 builtins on the fly in the future. Change all uses, and poison
363 the old names. Make sure 0 is not a legitimate builtin index.
364 * c-omp.c (c_finish_omp_barrier): Ditto.
365 (c_finish_omp_taskwait): Ditto.
366 (c_finish_omp_flush): Ditto.
367
6637388f
TG
3682011-10-11 Tristan Gingold <gingold@adacore.com>
369
370 * c.opt: (fallow-parameterless-variadic-functions): New.
371
3797cb21
DS
3722011-09-08 Dodji Seketeli <dodji@redhat.com>
373
374 PR c++/33255 - Support -Wunused-local-typedefs warning
375 * c-common.h (struct c_language_function::local_typedefs): New
376 field.
377 (record_locally_defined_typedef, maybe_record_typedef_use)
378 (maybe_warn_unused_local_typedefs): Declare new functions.
379 * c-common.c (record_locally_defined_typedef)
380 (maybe_record_typedef_use)
381 (maybe_warn_unused_local_typedefs): Define new functions.
382 * c.opt: Declare new -Wunused-local-typedefs flag.
383
693ddb1b
EB
3842011-09-06 Eric Botcazou <ebotcazou@adacore.com>
385
386 PR middle-end/50266
387 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
388 computations.
389
830c740f
RG
3902011-09-05 Richard Guenther <rguenther@suse.de>
391
392 * c-common.c (complete_array_type): Use ssize_int (-1) instead
393 of integer_minus_one_node for empty array upper bounds.
394
892a371f
DS
3952011-08-28 Dodji Seketeli <dodji@redhat.com>
396
397 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
398 it's the first time it's being called on this main TU.
399
0e3fdb48
RB
4002011-08-24 Richard Guenther <rguenther@suse.de>
401
402 PR c/49396
403 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
404
4052011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
406
407 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
408 defined in cpp_init_builtins and c_cpp_builtins.
409
d4a83c10
JM
4102011-08-19 Joseph Myers <joseph@codesourcery.com>
411
412 * c-common.c (c_common_reswords): Add __builtin_complex.
413 * c-common.h (RID_BUILTIN_COMPLEX): New.
414
bbceee64
JM
4152011-08-18 Joseph Myers <joseph@codesourcery.com>
416
417 * c-common.c (c_common_reswords): Add _Noreturn.
418 (keyword_is_function_specifier): Handle RID_NORETURN.
419 * c-common.h (RID_NORETURN): New.
420
0e3a99ae
AS
4212011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
422
423 * c-common.c (unsafe_conversion_p): New function. Check if it is
424 unsafe to convert an expression to the type.
425 (conversion_warning): Adjust, use unsafe_conversion_p.
426 * c-common.h (unsafe_conversion_p): New function declaration.
427
20906c66
JJ
4282011-08-02 Jakub Jelinek <jakub@redhat.com>
429
430 * c-common.h (c_finish_omp_atomic): Adjust prototype.
431 (c_finish_omp_taskyield): New prototype.
432 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
433 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
434 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
435 or RHS1 have side-effects, evaluate those too in the right spot,
436 if it is a decl and LHS is also a decl, error out if they
437 aren't the same.
438 (c_finish_omp_taskyield): New function.
439 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
440 * c-pragma.c (omp_pragmas): Add taskyield.
441 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
442 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
443 PRAGMA_OMP_CLAUSE_MERGEABLE.
444
770e5a2e
DS
4452011-07-25 Dodji Seketeli <dodji@redhat.com>
446
447 * c-common.h (set_underlying_type): Remove parm name from
448 declaration.
449
1baae426
RG
4502011-07-25 Romain Geissler <romain.geissler@gmail.com>
451
452 * c-pretty-print.h: Search c-common.h in c-family.
453
fcb21722
JM
4542011-07-22 Jason Merrill <jason@redhat.com>
455
76f86d00
JM
456 PR c++/49793
457 * c.opt (Wnarrowing): New.
458
3a636414
JM
459 PR c++/30112
460 * c-common.h: Declare c_linkage_bindings.
461 * c-pragma.c (handle_pragma_redefine_extname): Use it.
462
fcb21722
JM
463 PR c++/49813
464 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
465 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
466 as flag_isoc99 for 'restrict'.
467 (pp_c_specifier_qualifier_list): Likewise for _Complex.
468
02614448
ILT
4692011-07-21 Ian Lance Taylor <iant@google.com>
470
471 PR middle-end/49705
472 * c-common.c (c_disable_warnings): New static function.
473 (c_enable_warnings): New static function.
474 (c_fully_fold_internal): Change local unused_p to bool. Call
475 c_disable_warnings and c_enable_warnings rather than change
476 c_inhibit_evaluation_warnings.
477
34429675
JM
4782011-07-20 Jason Merrill <jason@redhat.com>
479
480 PR c++/6709 (DR 743)
481 PR c++/42603 (DR 950)
482 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
483 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
484 (CPP_DECLTYPE): New.
485 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
486
5d49b6a7
RG
4872011-07-19 Richard Guenther <rguenther@suse.de>
488
489 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
490 * c-omp.c (c_finish_omp_for): Likewise.
491
e84a58ff
EB
4922011-07-12 Eric Botcazou <ebotcazou@adacore.com>
493
494 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
495 body on the next line.
496
329af3c7
JM
4972011-07-08 Jason Merrill <jason@redhat.com>
498
4063e61b
JM
499 PR c++/45437
500 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
501
329af3c7
JM
502 PR c++/49673
503 * c-common.c (c_apply_type_quals_to_decl): Don't check
504 TYPE_NEEDS_CONSTRUCTING.
505
1a072294
RG
5062011-07-06 Richard Guenther <rguenther@suse.de>
507
508 * c-common.c (c_common_nodes_and_builtins):
509 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
510
fce5dddd
RG
5112011-07-05 Richard Guenther <rguenther@suse.de>
512
513 * c-common.c (c_common_nodes_and_builtins): Build all common
514 tree nodes first.
515
45d439ac
JJ
5162011-06-27 Jakub Jelinek <jakub@redhat.com>
517
56300785
JJ
518 * c-common.h (c_tree_chain_next): New static inline function.
519
45d439ac
JJ
520 * c-common.c (check_builtin_function_arguments): Handle
521 BUILT_IN_ASSUME_ALIGNED.
522
e0a8ecf2
AM
5232011-06-21 Andrew MacLeod <amacleod@redhat.com>
524
525 * c-common.c: Add sync_ or SYNC__ to builtin names.
526 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
527
5282011-06-20 Pierre Vittet <piervit@pvittet.com>
529
530 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
531 handler.
532 (gen_pragma_handler): New union.
533 (internal_pragma_handler): New type.
534 (c_register_pragma_with_data)
535 (c_register_pragma_with_expansion_and_data): New functions.
536
537 * c-pragma.c (registered_pragmas, c_register_pragma_1)
538 (c_register_pragma, c_register_pragma_with_expansion)
539 (c_invoke_pragma_handler): Changed to work with
540 internal_pragma_handler.
541 (c_register_pragma_with_data)
542 (c_register_pragma_with_expansion_and_data): New functions.
543
677f3fa8
JM
5442011-06-14 Joseph Myers <joseph@codesourcery.com>
545
546 * c-common.c: Include common/common-target.h.
547 (handle_section_attribute): Use
548 targetm_common.have_named_sections.
549 * c-cppbuiltin.c: Include common/common-target.h.
550 (c_cpp_builtins): Use targetm_common.except_unwind_info.
551
d7fc8c14
RG
5522011-06-10 Richard Guenther <rguenther@suse.de>
553
554 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
555 to print a IDENTIFIER_NODE.
556
10e48e39
RO
5572011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
558 Joseph Myers <joseph@codesourcery.com>
559
560 * c.opt (fbuilding-libgcc): New option.
561 * c-cppbuiltin.c (c_cpp_builtins): Define
562 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
563
6976ae51
JM
5642011-06-07 Jason Merrill <jason@redhat.com>
565
3ff60975
JM
566 * c-common.c (max_tinst_depth): Lower default to 900.
567
6976ae51
JM
568 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
569
009db074
RG
5702011-06-07 Richard Guenther <rguenther@suse.de>
571
572 * c-common.c (c_common_nodes_and_builtins): Do not set
573 size_type_node or call set_sizetype.
574
b4592b92
DS
5752011-06-07 Dodji Seketeli <dodji@redhat.com>
576
577 PR debug/49130
578 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
579 type when using pointer comparison to compare types.
580
014ab419
JW
5812011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
582
583 * c.opt: Add -Wdelete-non-virtual-dtor.
584 * c-opts.c (c_common_handle_option): Include it in -Wall.
585
4f60111f
NF
5862011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
587
588 PR bootstrap/49190
589
590 Revert:
591 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
592
593 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
594 not tree_common.
595
4cc4f2f4
JJ
5962011-05-27 Jakub Jelinek <jakub@redhat.com>
597
598 PR c++/49165
599 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
600 C++ don't call c_common_truthvalue_conversion on void type arms.
601
38e01f9e
NF
6022011-05-27 Nathan Froyd <froydnj@codesourcery.com>
603
604 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
605 (stmt_list_stack): Define.
606 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
607 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
608
92e948a8
NF
6092011-05-26 Nathan Froyd <froydnj@codesourcery.com>
610
611 * c-common.c (warning_candidate_p): Check for BLOCKs.
612
a2fc3e63
NF
6132011-05-26 Nathan Froyd <froydnj@codesourcery.com>
614
615 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
616 not tree_common.
617
0957c029
JJ
6182011-05-25 Jakub Jelinek <jakub@redhat.com>
619
620 * c-common.c (def_fn_type): Remove extra va_end.
621
828fb3ba
JM
6222011-05-23 Jason Merrill <jason@redhat.com>
623
624 PR c++/48106
625 * c-common.c (c_common_get_narrower): New.
626 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
627
dde05067
NF
6282011-05-23 Nathan Froyd <froydnj@codesourcery.com>
629
630 * c-common.h (check_function_arguments): Tweak prototype of
631 check_function_arguments.
632 * c-common.c (check_function_arguments): Likewise. Adjust
633 calls to check_function_nonnull, check_function_format, and
634 check_function_sentinel.
635 (check_function_sentinel): Take a FUNCTION_TYPE rather than
636 separate attributes and typelist arguments. Use
637 FOREACH_FUNCTION_ARGS to iterate over argument types.
638
3c0d13bf
PC
6392011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
640
641 * c-common.c (c_common_reswords): Reorder.
642 * c-common.h (rid): Likewise.
643
8242dd04
NF
6442011-05-10 Nathan Froyd <froydnj@codesourcery.com>
645
646 * c-common.c (def_fn_type): Don't call build_function_type, call
647 build_function_type_array or build_varargs_function_type_array
648 instead.
649 (c_common_nodes_and_builtins): Likewise.
650
3d528853
NF
6512011-05-05 Nathan Froyd <froydnj@codesourcery.com>
652
653 * c-common.c (c_add_case_label): Omit the loc argument to
654 build_case_label.
655 * c-common.h (build_case_label): Remove.
656 * c-semantics.c (build_case_label): Remove.
657
a04a722b
JM
6582011-05-05 Joseph Myers <joseph@codesourcery.com>
659
660 * c-objc.h (objc_start_method_definition): Update prototype.
661 * stub-objc.c (objc_start_method_definition): Add extra parameter.
662
e19a18d4
NF
6632011-05-04 Nathan Froyd <froydnj@codesourcery.com>
664
665 * c-common.c (check_main_parameter_types): Reindent. Don't use
666 TYPE_ARG_TYPES directly.
667 (handle_nonnull_attribute): Likewise.
668 (sync_resolve_params): Likewise.
669 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
670 to check_format_string.
671 (handle_format_attribute): Likewise.
672 (check_format_string): Take a function type to examine instead of
673 a type list. Use a function_arg_iterator to step through argument
674 types.
675
c62c040f
RG
6762011-05-04 Richard Guenther <rguenther@suse.de>
677
678 * c-common.c (fix_string_type): Use size_int for index type bounds.
679 (start_fname_decls): Do not pass NULL to build_int_cst.
680 (c_init_attributes): Likewise.
681 * c-lex.c (c_lex_with_flags): Likewise.
682
c12ff9d8
JM
6832011-04-27 Jason Merrill <jason@redhat.com>
684
685 * c-common.c (make_tree_vector_from_list): New.
686 * c-common.h: Declare it.
687
304dfbe3
RG
6882011-04-26 Richard Guenther <rguenther@suse.de>
689
690 PR preprocessor/48248
691 * c-ppoutput.c (maybe_print_line): Always optimize newlines
692 for output size with -P.
693
3c0d13bf
PC
6942011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
695
696 * c-common.c (struct c_common_resword): Add __underlying_type.
697 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
698
04695783
JM
6992011-04-20 Jim Meyering <meyering@redhat.com>
700
701 * c-format.c (init_dollar_format_checking): Remove useless
702 if-before-free.
703
0dc33c3c
NP
7042011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
705
706 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 707 (objc_detect_field_duplicates): New.
0dc33c3c 708 * stub-objc.c: Likewise.
3c0d13bf 709
c59633d9
NP
7102011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
711
712 * stub-objc.c (objc_declare_protocols): Renamed to
713 objc_declare_protocol.
714 * c-objc.h: Likewise.
3c0d13bf 715
32dabdaf
NP
7162011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
717
718 * stub-objc.c (objc_declare_class): Updated argument name.
719
81f653d6
NF
7202011-04-12 Nathan Froyd <froydnj@codesourcery.com>
721
722 * c-common.h (c_common_init_ts): Declare.
723 * c-common.c (c_common_init_ts): Define.
724
eb345401
NP
7252011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
726
727 * c-objc.h (objc_build_message_expr): Updated prototype.
728 * stub-objc.c (objc_build_message_expr): Likewise.
729
a358e188
MJ
7302011-04-12 Martin Jambor <mjambor@suse.cz>
731
732 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
733 of cgraph_node.
734
e6313a78
RG
7352011-04-11 Richard Guenther <rguenther@suse.de>
736
737 * c-common.c (complete_array_type): Build a range type of
738 proper type.
739
dcf0c47e
NF
7402011-04-08 Nathan Froyd <froydnj@codesourcery.com>
741
742 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
743 (handle_type_generic_attribute): Likewise.
744
1ee44b26
JM
7452011-04-07 Jason Merrill <jason@redhat.com>
746
747 PR c++/48450
748 * c-common.c (c_common_truthvalue_conversion): Don't ignore
749 conversion from C++0x scoped enum.
750
acce4e77
JM
7512011-04-06 Joseph Myers <joseph@codesourcery.com>
752
753 * c-target-def.h: New file.
754 * c-target.def: New file.
755 * c-target.h: New file.
756 * c-common.c (targetcm): Don't define here.
757 * c-common.h (default_handle_c_option): Declare.
758 * c-format.c: Include c-target.h instead of target.h.
759 * c-opts.c: Include c-target.h instead of target.h. Explicitly
760 include tm.h.
761 (default_handle_c_option): Move from targhooks.c.
762
e2eefb55
JJ
7632011-03-29 Jakub Jelinek <jakub@redhat.com>
764
765 PR preprocessor/48248
766 * c-ppoutput.c (print): Add src_file field.
767 (init_pp_output): Initialize it.
768 (maybe_print_line): Don't optimize by adding up to 8 newlines
769 if map->to_file and print.src_file are different file.
770 (print_line): Update print.src_file.
771
ba78087b
KT
7722011-03-25 Kai Tietz <ktietz@redhat.com>
773
774 * c-ada-spec.c (compare_comment): Use filename_cmp
775 instead of strcmp for filename.
776
0edf1bb2
JL
7772011-03-25 Jeff Law <law@redhat.com>
778
779 * c-family/c-common.c (def_fn_type): Add missing va_end.
780
c7dc8804
JM
7812011-03-25 Jason Merrill <jason@redhat.com>
782
783 * c.opt: Add -std=c++03.
784
d1d879b1
EB
7852011-03-22 Eric Botcazou <ebotcazou@adacore.com>
786
787 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
788
62d784f7
KT
7892011-03-17 Kai Tietz
790
791 PR target/12171
5050afdf
KT
792 * c-pretty-print.c (pp_c_specifier_qualifier_list):
793 Display allowed attributes for function pointer types.
794 (pp_c_attributes_display): New function to display
795 attributes having affects_type_identity flag set to true.
796 * c-pretty-print.h (pp_c_attributes_display): New prototype.
797
62d784f7
KT
798 * c-common.c (c_common_attribute_table):
799 Add new element.
800 (c_common_format_attribute_table): Likewise.
801
82d37118
JM
8022011-03-18 Jason Merrill <jason@redhat.com>
803
49a000c3
JM
804 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
805 * c-common.h: Don't declare it here.
806 * c-common.c: Or define it here.
807 * c-opts.c (c_common_handle_option): Or set it here.
808
82d37118
JM
809 PR c++/35315
810 * c-common.c (handle_transparent_union_attribute): Don't
811 make a duplicate type in C++.
812
17bc631c
JM
8132011-03-15 Jason Merrill <jason@redhat.com>
814
815 * c-common.c (max_constexpr_depth): New.
816 * c-common.h: Declare it.
817 * c-opts.c (c_common_handle_option): Set it.
818 * c.opt (fconstexpr-depth): New option.
819
1b9b91a6
JM
8202011-03-11 Jason Merrill <jason@redhat.com>
821
f231b5ff
JM
822 * c-common.c (attribute_takes_identifier_p): Add missing const.
823
1b9b91a6
JM
824 PR c++/46803
825 * c-common.c (attribute_takes_identifier_p): Assume that an
826 unknown attribute takes an identifier.
827
a19e4d44
NF
8282011-03-07 Nathan Froyd <froydnj@codesourcery.com>
829
830 PR c/47786
831 * c-common.c (c_type_hash): Call list_length instead of iterating
832 through DECL_CHAIN. Rename 'i' to 'n_elements'.
833
982d62f6
JJ
8342011-02-19 Jakub Jelinek <jakub@redhat.com>
835
836 PR c/47809
837 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
838
0a256240
NP
8392011-02-17 Iain Sandoe <iains@gcc.gnu.org>
840
841 * c.opt (fobjc-abi-version=) New.
842 (fobjc-nilcheck): New.
843
ba9e6dd5
NF
8442011-02-03 Nathan Froyd <froydnj@codesourcery.com>
845
846 PR c++/46890
847 * c-common.h (keyword_is_decl_specifier): Declare.
848 * c-common.c (keyword_is_decl_specifier): Define.
849 (keyword_is_function_specifier): New function.
850
7273813a
JJ
8512011-01-26 Jakub Jelinek <jakub@redhat.com>
852
853 PR c/47473
854 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
855 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
856 REAL_TYPE.
857
908ef79b
AC
8582011-01-26 Arnaud Charlet <charlet@adacore.com>
859
860 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
861
237e9384
JJ
8622011-01-26 Jakub Jelinek <jakub@redhat.com>
863
864 PR pch/47430
865 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
866 after init_c_lex if pch_file is set.
867
47ea1edf
DK
8682011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
869
d4dba752 870 PR c++/43601
47ea1edf
DK
871 * c.opt (-fkeep-inline-dllexport): New switch.
872
2aa9c6ae
RG
8732011-01-12 Richard Guenther <rguenther@suse.de>
874
875 PR middle-end/32511
876 * c-common.c (handle_weak_attribute): Warn instead of error
877 on declaring an inline function weak.
878
7bd11157
TT
8792011-01-05 Tom Tromey <tromey@redhat.com>
880
881 * c-common.h (lvalue_error): Update.
882 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
883 not error.
884
0e66e494
NP
8852010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
886
b4f588c4
NP
887 PR objc/47075
888 * c-objc.h (objc_finish_message_expr): Added argument to
889 prototype.
890
f4da8dce
NF
8912010-12-22 Nathan Froyd <froydnj@codesourcery.com>
892
893 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
894 Use prototype_p.
895
46270f14
NP
8962010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
897
898 * c-objc.h (objc_maybe_warn_exceptions): New.
899 * stub-objc.c (objc_maybe_warn_exceptions): New.
900
4816c593
NF
9012010-12-10 Nathan Froyd <froydnj@codesourcery.com>
902
903 * c-common.h (readonly_error): Declare.
904 * c-common.c (readonly_error): Define.
905
7a6daeb0
NF
9062010-12-09 Nathan Froyd <froydnj@codesourcery.com>
907
908 * c-common.h (invalid_indirection_error): Declare.
909 * c-common.c (invalid_indirection_error): Define.
910
892f6119
RG
9112010-12-03 Richard Guenther <rguenther@suse.de>
912
913 PR c/46745
914 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
915 (pp_c_unary_expression): Likewise.
916 (pp_c_expression): Likewise.
917
6c39e757
NP
9182010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
919
920 * c-common.h (objc_finish_function): New.
921 (objc_non_volatilized_type): Removed.
922 (objc_type_quals_match): Removed.
923 * stub-objc.c (objc_finish_function): New.
924 (objc_non_volatilized_type): Removed.
925 (objc_type_quals_match): Removed.
926
7c475d11
JM
9272010-11-30 Joseph Myers <joseph@codesourcery.com>
928
929 * c-common.h (parse_optimize_options): Declare.
930 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
931 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
932
71f3e391
JM
9332010-11-29 Joseph Myers <joseph@codesourcery.com>
934
935 * c-opts.c (check_deps_environment_vars): Use getenv instead of
936 GET_ENVIRONMENT.
937 * c-pch.c (O_BINARY): Don't define here.
938 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
939
d5fabb58
JM
9402010-11-25 Joseph Myers <joseph@codesourcery.com>
941
942 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
943 targetm.except_unwind_info.
944
299404a1
JM
9452010-11-23 Joseph Myers <joseph@codesourcery.com>
946
947 * c-opts.c (c_common_handle_option): Pass location to
948 set_struct_debug_option.
949
c98cd5bf
JM
9502010-11-23 Joseph Myers <joseph@codesourcery.com>
951
952 * c-common.c (visibility_options): Move from ../opts.c.
953 * c-common.h (struct visibility_flags, visibility_options):
954 Declare here.
955 * c-opts.c (finish_options): Rename to c_finish_options.
956 (c_common_init): Update call to finish_options.
957
a9546771
NP
9582010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
959
960 PR objc/34033
961 * c-lex.c (lex_string): Check that each string in an Objective-C
962 string concat sequence starts with either one or zero '@', and
963 that there are no spurious '@' signs at the end.
964
24a57808
JM
9652010-11-20 Joseph Myers <joseph@codesourcery.com>
966
967 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
968 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
969 HANDLE_PRAGMA_VISIBILITY.
970 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
971 HANDLE_PRAGMA_VISIBILITY): Don't define.
972 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
973
a9aa2c3a
NF
9742010-11-20 Nathan Froyd <froydnj@codesourcery.com>
975
976 PR c++/16189
977 PR c++/36888
978 PR c++/45331
979 * c-common.h (keyword_begins_type_specifier): Declare.
980 (keyword_is_storage_class_specifier): Declare.
981 (keyword_is_type_qualifier): Declare.
982 * c-common.c (keyword_begins_type_specifier): New function.
983 (keyword_is_storage_class_specifier): New function.
984 (keyword_is_type_qualifier): Declare.
985
5386338c
JM
9862010-11-19 Joseph Myers <joseph@codesourcery.com>
987
988 PR c/46547
989 * c-common.c (in_late_binary_op): Define.
990 (c_common_truthvalue_conversion): Check in_late_binary_op before
991 calling c_save_expr.
992 * c-common.h (in_late_binary_op): Declare.
993
69ccdddb
JM
9942010-11-19 Joseph Myers <joseph@codesourcery.com>
995
996 * c-opts.c (c_common_handle_option): Update calls to
997 set_struct_debug_option.
998
6b192a09
NP
9992010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
1000
1001 * c-common.h (objc_declare_protocols): Added additional argument.
1002 * stub-objc.c (objc_declare_protocol): Same change.
1003
fb52b50a
NF
10042010-11-18 Nathan Froyd <froydnj@codesourcery.com>
1005
1006 PR c/33193
1007 * c-common.h (build_real_imag_expr): Declare.
1008 * c-semantics.c (build_real_imag_expr): Define.
1009
b37421c6
JM
10102010-11-17 Joseph Myers <joseph@codesourcery.com>
1011
1012 * c-opts.c (c_common_parse_file): Take no arguments.
1013 * c-common.h (c_common_parse_file): Update prototype.
1014
07078664
JJ
10152010-11-16 Jakub Jelinek <jakub@redhat.com>
1016
1017 PR c++/46401
1018 * c-common.c (warning_candidate_p): Don't track non-const calls
1019 or STRING_CSTs.
1020
c6a13190
ILT
10212010-11-15 Ian Lance Taylor <iant@google.com>
1022
1023 * c-lex.c (init_c_lex): Set macro debug callbacks if
1024 flag_dump_go_spec is set.
1025
925e8657
NP
10262010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
1027
1028 * c-common.h (objc_build_incr_expr_for_property_ref): New.
1029 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
1030
bb0a9581
NF
10312010-11-15 Nathan Froyd <froydnj@codesourcery.com>
1032
1033 PR preprocessor/45038
1034 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
1035 dialects.
1036
c5fa0890
JM
10372010-11-12 Joseph Myers <joseph@codesourcery.com>
1038
1039 * c-common.h (c_family_lang_mask): Declare.
1040 * c-opts.c (c_family_lang_mask): Make extern.
1041 * c-pragma.c (handle_pragma_diagnostic): Use
1042 control_warning_option.
1043
a4d8c676
JM
10442010-11-12 Joseph Myers <joseph@codesourcery.com>
1045
1046 * c-common.c (parse_optimize_options): Update call to
1047 decode_options.
1048 * c-common.h (c_common_handle_option): Update prototype.
1049 * c-opts.c (c_common_handle_option): Take location_t parameter and
1050 pass it to other functions.
1051
f954bd2c
JM
10522010-11-11 Joseph Myers <joseph@codesourcery.com>
1053
1054 * c-opts.c (warning_as_error_callback): Remove.
1055 (c_common_initialize_diagnostics): Don't call
1056 register_warning_as_error_callback.
1057 (c_common_handle_option): Handle -Werror=normalized= here.
1058
d8a07487
JM
10592010-11-10 Joseph Myers <joseph@codesourcery.com>
1060
1061 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
1062 in diagnostic.
1063 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
1064 letter.
1065 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
1066 Remove trailing '.' from diagnostics.
1067 * c.opt (Wwrite-strings_: Avoid '`' in help text.
1068
d5478783
JM
10692010-11-10 Joseph Myers <joseph@codesourcery.com>
1070
1071 * c-common.c (parse_optimize_options): Pass global_dc to
1072 decode_options.
1073 * c-opts.c (c_common_handle_option): Pass &global_options to
1074 set_Wstrict_aliasing.
1075 * c.opt (v): Don't mark Common or document here.
1076
91ebb981
IS
10772010-11-06 Iain Sandoe <iains@gcc.gnu.org>
1078
1079 PR target/44981
1080 * c-format.c (format_type): New type gcc_objc_string_format_type.
1081 (valid_stringptr_type_p): New.
1082 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
1083 (check_format_string): Pass expected type, use
1084 valid_stringptr_type_p (), check that the format string types are
1085 consistent with the format specification.
1086 (decode_format_attr): Warn if NSString is used outside objective-c.
1087 (format_types_orig): Add NSString.
1088 (format_name): New.
1089 (format_flags): New.
1090 (check_format_arg): Handle format strings requiring an external parser.
1091 first_target_format_type: New variable.
1092 (handle_format_attribute): Set up first_target_format_type, pass the
1093 expected format arg string type to check_format_string().
1094 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
1095 * stub-objc.c (objc_string_ref_type_p): New.
1096 (objc_check_format_arg): New.
1097
bede2adc
NP
10982010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
1099
1100 Fixed using the Objective-C 2.0 dot-syntax with class names.
1101 * c-common.h (objc_build_class_component_ref): New.
1102 * stub-objc.c (objc_build_class_component_ref): New.
1103
9a179d01
NP
11042010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1105
1106 * c.opt (Wproperty-assign-default): New option.
1107
22d8d616
NP
11082010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1109
1110 Implemented -fobjc-std=objc1 flag.
1111 * c.opt (fobjc-std=objc1): New option.
1112
2debdb4f
NP
11132010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
1114
1115 Implemented format and noreturn attributes for Objective-C methods.
1116 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
1117 attribute for Objective-C methods.
1118
ec52b111
JM
11192010-10-31 Jason Merrill <jason@redhat.com>
1120
1121 * c-common.c (conversion_warning, warn_for_collisions_1): Use
1122 EXPR_LOC_OR_HERE.
1123
46a88c12
NP
11242010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
1125
1126 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
1127 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
1128 (objc_add_property_declaration): Removed arguments for copies and
1129 ivar.
1130 (objc_build_getter_call): Renamed to
1131 objc_maybe_build_component_ref.
1132 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1133 (objc_is_property_ref): New.
1134 * c-common.c (c_common_reswords): Removed copies and ivar.
1135 * stub-objc.c (objc_add_property_declaration): Removed arguments
1136 for copies and ivar.
1137 (objc_build_getter_call): Renamed to
1138 objc_maybe_build_component_ref.
1139 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1140 (objc_is_property_ref): New.
1141
1e4bf85b
AC
11422010-10-29 Arnaud Charlet <charlet@adacore.com>
1143 Matthew Gingell <gingell@adacore.com>
1144
1145 * c-ada-spec.c (separate_class_package): New function.
1146 (pp_ada_tree_identifier): Prefix references to C++ classes with the
1147 name of their enclosing package.
1148 (print_ada_declaration): Use separate_class_package.
1149
81f0bab2
JM
11502010-10-27 Jason Merrill <jason@redhat.com>
1151
2b08f2c5
JM
1152 * c-common.c (c_common_reswords): Add __is_literal_type.
1153 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
1154
81f0bab2
JM
1155 * c-common.c (check_case_value): Remove special C++ code.
1156
200290f2
NP
11572010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1158
1159 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
1160 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
1161 and RID_LAST_PATTR.
1162 (objc_add_property_declaration): Added additional arguments.
1163 (objc_property_attribute_kind): Removed.
1164 (objc_set_property_attr): Removed.
1165 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
1166 copy and nonatomic.
1167 * stub-objc.c (objc_add_property_declaration): Added additional
1168 arguments.
1169 (objc_set_property_attr): Removed.
1170
f614132b
NP
11712010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1172
1173 * c-common.h (objc_add_property_variable): Renamed to
1174 objc_add_property_declaration. Added location argument.
1175 * stub-objc.c (objc_add_property_variable): Same change.
1176
b8a18805
NP
11772010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
1178
1179 * c-common.h (objc_maybe_printable_name): New.
1180 * stub-objc.c (objc_maybe_printable_name): New.
1181
30cd1c5d
AS
11822010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1183 Andrew Pinski <pinskia@gmail.com>
1184
1185 * c-common.h (c_common_mark_addressable_vec): Declare.
1186 * c-common.c (c_common_mark_addressable_vec): New function.
1187
249a82c4
NP
11882010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1189
1190 * c-common.h (objc_set_method_type): Removed.
1191 (objc_add_method_declaration): Added boolean argument.
1192 (objc_start_method_definition): Same change.
1193 (objc_build_method_signature): Same change.
1194 * stub-objc.c (objc_set_method_type): Removed.
1195 (objc_add_method_declaration): Added boolean argument.
1196 (objc_start_method_definition): Same change.
1197 (objc_build_method_signature): Same change.
1198
977e30bc
NP
11992010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1200
1201 * c-common.h (finish_file): Removed.
1202 (objc_write_global_declarations): New.
1203 * c-opts.c (c_common_parse_file): Do not call finish_file.
1204 * stub-objc.c (objc_write_global_declarations): New.
1205
da57d1b9
NP
12062010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1207
1208 Implemented parsing @synthesize and @dynamic for
1209 Objective-C/Objective-C++.
1210 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
1211 (objc_add_synthesize_declaration): New.
1212 (objc_add_dynamic_declaration): New.
1213 * c-common.c (c_common_reswords): Add synthesize and dynamic.
1214 * stub-objc.c (objc_add_synthesize_declaration): New.
1215 (objc_add_dynamic_declaration): New.
1216
0069111f
MM
12172010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1218
1219 PR target/46041
1220 * c-cppbuiltin.c (mode_has_fma): Move function here from
1221 builtins.c. Don't use the fma optab, instead just use the
1222 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
1223 using -save-temps.
1224
e426b47b
NP
12252010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1226
1227 Merge from 'apple/trunk' branch on FSF servers.
0069111f 1228
e426b47b
NP
1229 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
1230
1231 Radar 4330422
1232 * c-common.h (objc_non_volatilized_type): New declaration
1233 * stub-objc.c (objc_non_volatilized_type): New stub.
1234
90fbfdc3
NP
12352010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
1236
e426b47b 1237 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
1238
1239 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
1240
1241 Radar 4133425
1242 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 1243 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 1244
c37d8c30
IS
12452010-10-17 Iain Sandoe <iains@gcc.gnu.org>
1246
1247 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
1248 * c-common.h (enum rid): Add RID_AT_PACKAGE.
1249 (objc_ivar_visibility_kind): New enum.
1250 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 1251 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
1252 visibility enum.
1253
1b1562a5
MM
12542010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1255
1256 * c-cppbuiltin.c (builtin_define_float_constants): Emit
1257 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
1258 has the appropriate fma builtins.
1259 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
1260
668ea4b1
IS
12612010-10-14 Iain Sandoe <iains@gcc.gnu.org>
1262
1b1562a5 1263 merge from FSF apple 'trunk' branch.
668ea4b1 1264 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 1265
668ea4b1
IS
1266 Radars 4436866, 4505126, 4506903, 4517826
1267 * c-common.c (c_common_resword): Define @property and its attributes.
1268 * c-common.h: Define property attribute enum entries.
1269 (OBJC_IS_PATTR_KEYWORD): New.
1270 (objc_property_attribute_kind): New enum.
1271 Declare objc_set_property_attr (), objc_add_property_variable (),
1272 objc_build_getter_call () and objc_build_setter_call ().
1273 * stub-objc.c (objc_set_property_attr): New stub.
1274 (objc_add_property_variable): Likewise.
1275 (objc_build_getter_call): Likewise.
1276 (objc_build_setter_call) Likewise.
1b1562a5 1277
a1178b30
IS
12782010-10-13 Iain Sandoe <iains@gcc.gnu.org>
1279
1b1562a5 1280 merge from FSF apple 'trunk' branch.
a1178b30
IS
1281 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
1282
1283 Radar 3803157 (method attributes)
1284 * c-common.c (handle_deprecated_attribute): Recognize
1285 objc methods as valid declarations.
1286 * c-common.h: Declare objc_method_decl ().
1b1562a5 1287 * stub-objc.c (objc_method_decl): New stub.
a1178b30 1288
a75bfaa6
JM
12892010-10-08 Joseph Myers <joseph@codesourcery.com>
1290
1291 * c-common.c (parse_optimize_options): Call
1292 decode_cmdline_options_to_array_default_mask before
1293 decode_options. Update arguments to decode_options.
1294 * c-common.h (c_common_init_options_struct): Declare.
1295 * c-opts.c (c_common_init_options_struct): New. Split out from
1296 c_common_init_options.
1297
f05b9d93
NP
12982010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
1299
1300 Implemented fast enumeration for Objective-C.
1301 * c-common.h (objc_finish_foreach_loop): New.
1302 * stub-objc.c (objc_finish_foreach_loop): New.
1303
1ebe4b4f
JM
13042010-10-05 Joseph Myers <joseph@codesourcery.com>
1305
1306 * c-common.h (struct diagnostic_context): Don't declare here.
1307 (c_common_initialize_diagnostics): Declare using
1308 diagnostic_context typedef.
1309 * c-opts.c (c_common_handle_option): Pass global_dc to
1310 handle_generated_option.
1311
d4d24ba4
JM
13122010-10-04 Joseph Myers <joseph@codesourcery.com>
1313
1314 * c-opts.c (c_common_handle_option): Pass &global_options_set to
1315 handle_generated_option.
1316
478a1c5b
ILT
13172010-10-03 Ian Lance Taylor <iant@google.com>
1318
1319 * c.opt (-fplan9-extensions): New option.
1320
82a1c2fe
FXC
13212010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1322
1323 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
1324 Remove.
1325 (c_cpp_builtins): Call functions from cppbuiltin.c instead
1326 of duplicating code.
1327
92902b1b
IS
13282010-09-30 Iain Sandoe <iains@gcc.gnu.org>
1329
1330 * c-common.c: Add two new entries for @optional
1331 and @required keywords.
1332
1333 merge from FSF 'apple/trunk' branch.
1334 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
1335
1336 Radar 4386773
1337 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
1338 objective-c keywords.
1339 (objc_set_method_opt): New declaration.
1340 * stub-objc.c (objc_set_method_opt): New stub.
1341
46625112
JM
13422010-09-30 Joseph Myers <joseph@codesourcery.com>
1343
1344 * c-common.c (handle_optimize_attribute): Pass &global_options to
1345 cl_optimization_save and cl_optimization_restore.
1346 * c-opts.c (c_common_handle_option): Pass &global_options to
1347 handle_generated_option.
1348 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
1349 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
1350 &global_options to cl_optimization_restore.
1351
49b91f05
NP
13522010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
1353
1354 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
1355 Objective-C/Objective-C++ keywords.
1356
13ed556f 13572010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57
NP
1358
1359 Merge from 'apple/trunk' branch on FSF servers.
1360
1361 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
1362
1363 Radar 4281748
1364 * c-common.h (objc_check_global_decl): New declaration.
1365 * stub-objc.c (objc_check_global_decl): New stub.
1366
f0036cca
JM
13672010-09-29 Joseph Myers <joseph@codesourcery.com>
1368
1369 * c.opt: Don't use VarExists.
1370
e3339d0f
JM
13712010-09-29 Joseph Myers <joseph@codesourcery.com>
1372
1373 * c-common.c (c_cpp_error): Update names of diagnostic_context
1374 members.
1375 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
1376 cl_optimization members.
1377 * c-opts.c (warning_as_error_callback, c_common_handle_option,
1378 sanitize_cpp_opts, finish_options): Update names of cpp_options
1379 members.
1380
1973201f
NP
13812010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1382
1383 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
1384 (objc_is_reserved_word): Removed.
1385 * c-common.c: Updated comments.
1386 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
1387 objc_is_reserved_word.
1388 * stub-objc.c (objc_is_reserved_word): Removed.
1389
f7e71da5
IS
13902010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1391
1392 * c-common.h (objc_add_method_declaration): Adjust prototype to
1393 include attributes.
1394 (objc_start_method_definition): Likewise.
1395 (objc_build_keyword_decl): Likewise.
1396 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
1397 (objc_start_method_definition): Likewise.
1398 (objc_build_keyword_decl): Likewise.
1399
c165dca7
IS
14002010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1401
1402 * c-common.h (objc_start_class_interface): Adjust prototype.
1403 (objc_start_category_interface): Likewise.
1404 (objc_start_protocol): Likewise.
1405 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
1406 (objc_start_class_interface): Likewise.
1407 (objc_start_category_interface): Likewise.
1408
7458026b
ILT
14092010-09-27 Ian Lance Taylor <iant@google.com>
1410
1411 * c-common.c (c_common_attribute_table): Add no_split_stack.
1412 (handle_no_split_stack_attribute): New static function.
1413
b581b85b
NP
14142010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
1415
1416 Merge from 'apple/trunk' branch on FSF servers.
1417
1418 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
1419
1420 Radar 4229905
1421 * c-common.h (objc_have_common_type): New declaration.
1422 * stub-objc.c (objc_have_common_type): New stub.
1423
1424 2005-06-22 Ziemowit Laski <zlaski@apple.com>
1425
1426 Radar 4154928
1427 * c-common.h (objc_common_type): New prototype.
1428 * stub-objc.c (objc_common_type): New stub.
1429
46a4da10
JH
14302010-09-24 Jan Hubicka <jh@suse.cz>
1431
1432 * c-common.c (handle_leaf_attribute): New function.
1433 (struct attribute_spec c_common_att): Add leaf.
1434
e200444e
JM
14352010-09-22 Joseph Myers <joseph@codesourcery.com>
1436
1437 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
1438 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
1439 -dump, -dump=, -imacros, -imacros=, -include, -include=,
1440 -include-barrier, -include-directory, -include-directory=,
1441 -include-directory-after, -include-directory-after=,
1442 -include-prefix, -include-prefix=, -include-with-prefix,
1443 -include-with-prefix=, -include-with-prefix-after,
1444 -include-with-prefix-after=, -include-with-prefix-before,
1445 -include-with-prefix-before=, -no-integrated-cpp,
1446 -no-line-commands, -no-standard-includes, -no-warnings, -output,
1447 -output=, -pedantic, -pedantic-errors, -preprocess,
1448 -print-missing-file-dependencies, -trace-includes, -traditional,
1449 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
1450 -user-dependencies, -verbose, -write-dependencies,
1451 -write-user-dependencies, no-integrated-cpp, traditional): New.
1452
29a80ea6
NP
14532010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1454
1455 PR objc/23710
ac1fc2fc
NP
1456 * c-common.h (objc_start_method_definition): Return bool instead
1457 of void.
1458 * stub-objc.c (objc_start_method_definition): Return bool instead
1459 of void.
1460
14612010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1462
1463 PR objc/25965
1464 * c-common.h (objc_get_interface_ivars): New declaration.
1465 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 1466
de621752
ILT
14672010-09-15 Ian Lance Taylor <iant@google.com>
1468
1469 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 1470 messages. Remove period at end of warning message.
de621752 1471
ba885ec5
NS
14722010-09-09 Nathan Sidwell <nathan@codesourcery.com>
1473
1474 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
1475 (handle_alias_attribute): ... here.
1476 (handle_ifunc_attribute): New.
1477
c5ee1358
MM
14782010-09-06 Mark Mitchell <mark@codesourcery.com>
1479
1480 * c-common.h (do_warn_double_promotion): Declare.
1481 * c-common.c (do_warn_double_promotion): Define.
1482
0a0b3574
MM
14832010-09-05 Mark Mitchell <mark@codesourcery.com>
1484
1485 * c.opt (Wdouble-promotion): New.
1486
d1779886
JM
14872010-09-02 Joseph Myers <joseph@codesourcery.com>
1488
1489 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
1490 fvtable-thunks, fxref): Mark no longer supported in help text.
1491
2d2bd949
JM
14922010-09-02 Joseph Myers <joseph@codesourcery.com>
1493
1494 * c.opt (Wimport, fall-virtual, falt-external-templates,
1495 fdefault-inline, fenum-int-equiv, fexternal-templates,
1496 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
1497 fname-mangling-version-, fnew-abi, fnonnull-objects,
1498 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
1499 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
1500 applicable.
1501 (fhandle-exceptions): Mark with Alias and Warn.
1502 * c-opts.c (c_common_handle_option): Don't handle options marked
1503 as ignored.
1504
5de8299c
JM
15052010-09-02 Joseph Myers <joseph@codesourcery.com>
1506
1507 * c.opt (Wcomments, Werror-implicit-function-declaration,
1508 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
1509 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
1510 aliases.
1511 * c-common.c (option_codes): Use OPT_Wcomment instead of
1512 OPT_Wcomments.
1513 * c-opts.c (warning_as_error_callback, c_common_handle_option):
1514 Don't handle options marked as aliases.
1515
0ceb0201
RG
15162010-08-25 Richard Guenther <rguenther@suse.de>
1517
1518 * c-common.c (c_common_get_alias_set): Remove special
1519 handling for pointers.
1520
ac47786e
NF
15212010-08-20 Nathan Froyd <froydnj@codesourcery.com>
1522
1523 * c-common.c: Use FOR_EACH_VEC_ELT.
1524 * c-gimplify.c: Likewise.
1525 * c-pragma.c: Likewise.
1526
c878765b
JM
15272010-08-16 Joseph Myers <joseph@codesourcery.com>
1528
1529 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
1530 RejectDriver.
1531 (MMDX): Change back to MMD. Mark NoDriverArg instead of
1532 RejectDriver.
1533 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
1534 instead of OPT_MDX and OPT_MMDX.
1535
603349bf
JM
15362010-08-16 Joseph Myers <joseph@codesourcery.com>
1537
1538 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
1539
644fa7ac
JM
15402010-08-12 Joseph Myers <joseph@codesourcery.com>
1541
1542 * c.opt (MD, MMD): Change to MDX and MMDX.
1543 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
1544
481e1176
JM
15452010-08-11 Joseph Myers <joseph@codesourcery.com>
1546
1547 * c-opts.c (c_common_handle_option): Call handle_generated_option
1548 instead of handle_option.
1549
ac8dc9f7
NF
15502010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1551
1552 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
1553 (maybe_apply_renaming_pragma): Delete unneeded declarations.
1554
4f8c876d
NF
15552010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1556
1557 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
1558 (pending_redefine_extname): Change type to a VEC.
1559 (add_to_renaming_pragma_list): Update for new type of
1560 pending_redefine_extname.
ac8dc9f7 1561 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 1562
3b0c690e
AC
15632010-08-04 Arnaud Charlet <charlet@adacore.com>
1564
1565 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
1566 visited.
1567 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
1568 decide whether a type has already been declared/seen.
1569 Do not go to the original type.
1570 (dump_nested_types): New parameter forward.
1571 Generate forward declaration if needed and mark type as visited.
1572 (print_ada_declaration): Call dump_nested_types if not already done.
1573 Mark types as visited.
1574
1890bccc
JM
15752010-08-03 Joseph Myers <joseph@codesourcery.com>
1576
1577 * c.opt (-print-pch-checksum): Remove option.
1578 * c-opts.c (c_common_handle_option): Don't handle
1579 OPT_print_pch_checksum.
1580
5f20c657
JM
15812010-07-27 Joseph Myers <joseph@codesourcery.com>
1582
1583 * c-common.h (c_common_handle_option): Update prototype and return
1584 value type.
1585 * c-opts.c (c_common_handle_option): Update prototype and return
1586 value type. Update calls to handle_option and
1587 enable_warning_as_error.
1588
f551f80c
JJ
15892010-07-27 Jakub Jelinek <jakub@redhat.com>
1590
1591 PR c/45079
1592 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
1593
61ff2bdc
JM
15942010-07-27 Joseph Myers <joseph@codesourcery.com>
1595
1596 * c-common.h (c_common_missing_argument): Remove.
1597 * c-opts.c (c_common_missing_argument): Remove.
1598 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
1599 idirafter, imacros, include, isysroot, isystem, iquote): Add
1600 MissingArgError.
1601 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
1602
7a9bf9a4
JM
16032010-07-27 Joseph Myers <joseph@codesourcery.com>
1604
1605 * c-common.h (c_common_option_lang_mask,
1606 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
1607 New.
1608 (c_common_init_options): Update prototype.
1609 * c-opts.c (c_common_option_lang_mask): New.
1610 (c_common_initialize_diagnostics): Split out of
1611 c_common_init_options.
1612 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
1613 New.
1614 (c_common_init_options): Update prototype. Use decoded options in
1615 search for -lang-asm.
1616
910ad8de
NF
16172010-07-15 Nathan Froyd <froydnj@codesourcery.com>
1618
1619 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
1620 * c-format.c: Likewise.
1621
718f9c0f
MLI
16222010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
1623
1624 * c-common.h: Include diagnostic-core.h. Error if already
1625 included.
1626 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
1627
4d451982
MLI
16282010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1629
1630 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
1631 Do not include expr.h
1632 (vector_mode_valid_p): Move here.
1633
119fe915
SB
16342010-06-21 DJ Delorie <dj@redhat.com>
1635
1636 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
1637 allow these pragmas anywhere.
1638
16392010-06-14 Jakub Jelinek <jakub@redhat.com>
1640
1641 PR bootstrap/44509
1642 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
1643 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
1644 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
1645 ggc_strdup instead of xstrdup.
1646
16472010-06-10 Jakub Jelinek <jakub@redhat.com>
1648
1649 * c-cppbuiltin.c: Include cpp-id-data.h.
1650 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
1651 (lazy_hex_fp_value): New function.
1652 (builtin_define_with_hex_fp_value): Provide definitions lazily.
1653
6662d794
MLI
16542010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1655
1656 * c-gimplify.c: Do not include tree-flow.h
1657
38f8b050
JR
16582010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
1659
1660 PR other/44034
1661 * c-common.c: Rename targetm member:
1662 targetm.enum_va_list -> targetm.enum_va_list_p
1663
9589f23e
AS
16642010-06-28 Anatoly Sokolov <aesok@post.ru>
1665
1666 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
1667
3b06d379
SB
16682010-06-28 Steven Bosscher <steven@gcc.gnu.org>
1669
1670 * c-cppbuiltin.c: Do not include except.h.
1671
d166d4c3
AK
16722010-06-24 Andi Kleen <ak@linux.intel.com>
1673
1674 * c-common.c (warn_for_omitted_condop): New.
1675 * c-common.h (warn_for_omitted_condop): Add prototype.
1676
70cb8be6
JM
16772010-06-21 Joseph Myers <joseph@codesourcery.com>
1678
1679 * c.opt (lang-objc): Remove.
1680 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
1681
a4c97feb
JR
16822010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
1683
1684 * c-opts.c: Include "tm_p.h".
1685
6e2f1956
JM
16862010-06-20 Joseph Myers <joseph@codesourcery.com>
1687
1688 * c-common.c (parse_optimize_options): Update call to
1689 decode_options.
1690
bc87224e
NF
16912010-06-18 Nathan Froyd <froydnj@codesourcery.com>
1692
1693 * c-common.c (record_types_used_by_current_var_decl): Adjust for
1694 new type of types_used_by_cur_var_decl.
1695
b49cf425
JR
16962010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
1697
1698 PR bootstrap/44512
1699 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
1700 for C++ standard compliance.
1701
59f9c2ed
JM
17022010-06-16 Jason Merrill <jason@redhat.com>
1703
1704 * c.opt: Add -Wnoexcept.
1705
33766b66
RG
17062010-06-16 Richard Guenther <rguenther@suse.de>
1707
1708 PR c/44555
1709 * c-common.c (c_common_truthvalue_conversion): Remove
1710 premature and wrong optimization concering ADDR_EXPRs.
1711
eff7e30c
AC
17122010-06-15 Arnaud Charlet <charlet@adacore.com>
1713
1714 * c-ada-spec.c (dump_sloc): Remove column info.
1715 (is_simple_enum): New function.
1716 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
1717 enum types when relevant.
1718
6312e84d
MLI
17192010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1720
1721 * c-common.c (conversion_warning): Warn at expression
1722 location.
1723
1cb42611
JM
17242010-06-10 Joseph Myers <joseph@codesourcery.com>
1725
1726 * c-opts.c (c_common_handle_option): Don't handle
1727 OPT_fshow_column.
1728
a9429e29
LB
17292010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1730
1731 * c-pragma.c (push_alignment): Use typed GC allocation.
1732 (handle_pragma_push_options): Likewise.
1733
1734 * c-common.c (parse_optimize_options): Likewise.
1735
1736 * c-common.h (struct sorted_fields_type): Add variable_size GTY
1737 option.
1738
5498f011
JM
17392010-06-07 Joseph Myers <joseph@codesourcery.com>
1740
1741 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
1742 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1743 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1744 flag_signed_bitfields, warn_strict_null_sentinel,
1745 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
1746 flag_gen_declaration, flag_no_gnu_keywords,
1747 flag_implement_inlines, flag_implicit_templates,
1748 flag_implicit_inline_templates, flag_optional_diags,
1749 flag_elide_constructors, flag_default_inline, flag_rtti,
1750 flag_conserve_space, flag_access_control, flag_check_new,
1751 flag_new_for_scope, flag_weak, flag_working_directory,
1752 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
1753 flag_enforce_eh_specs, flag_threadsafe_statics,
1754 flag_pretty_templates): Remove.
1755 * c-common.h (flag_preprocess_only, flag_nil_receivers,
1756 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
1757 flag_replace_objc_classes, flag_undef, flag_no_builtin,
1758 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1759 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1760 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
1761 flag_no_gnu_keywords, flag_implement_inlines,
1762 flag_implicit_templates, flag_implicit_inline_templates,
1763 flag_optional_diags, flag_elide_constructors, flag_default_inline,
1764 flag_rtti, flag_conserve_space, flag_access_control,
1765 flag_check_new, flag_new_for_scope, flag_weak,
1766 flag_working_directory, flag_use_cxa_atexit,
1767 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
1768 flag_threadsafe_statics, flag_pretty_templates,
1769 warn_strict_null_sentinel): Remove.
1770 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
1771 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
1772 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
1773 fimplicit-inline-templates, fimplicit-templates,
1774 flax-vector-conversions, fms-extensions, fnil-receivers,
1775 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
1776 frtti, fshort-double, fshort-enums, fshort-wchar,
1777 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
1778 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
1779 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
1780 gen-decls, undef): Use Var.
1781 (fdefault-inline, foptional-diags): Document as doing nothing.
1782 * c-opts.c (c_common_handle_option): Remove cases for options now
1783 using Var. Mark ignored options as such.
1784
39dabefd
SB
17852010-06-05 Steven Bosscher <steven@gcc.gnu.org>
1786
1787 * c-common.c: Moved to here from parent directory.
1788 * c-common.def: Likewise.
1789 * c-common.h: Likewise.
1790 * c-cppbuiltin.c: Likewise.
1791 * c-dump.c: Likewise.
1792 * c-format.c: Likewise.
1793 * c-format.h : Likewise.
1794 * c-gimplify.c: Likewise.
1795 * c-lex.c: Likewise.
1796 * c-omp.c: Likewise.
1797 * c.opt: Likewise.
1798 * c-opts.c: Likewise.
1799 * c-pch.c: Likewise.
1800 * c-ppoutput.c: Likewise.
1801 * c-pragma.c: Likewise.
1802 * c-pragma.h: Likewise.
1803 * c-pretty-print.c: Likewise.
1804 * c-pretty-print.h: Likewise.
1805 * c-semantics.c: Likewise.
1806 * stub-objc.c: Likewise.
1807
1808 * c-common.c: Include gt-c-family-c-common.h.
1809 * c-pragma.c: Include gt-c-family-c-pragma.h.
1810\f
04695783 1811Copyright (C) 2010, 2011 Free Software Foundation, Inc.
39dabefd
SB
1812
1813Copying and distribution of this file, with or without modification,
1814are permitted in any medium without royalty provided the copyright
1815notice and this notice are preserved.
This page took 0.736768 seconds and 5 git commands to generate.