]> gcc.gnu.org Git - gcc.git/blame - gcc/c-family/ChangeLog
re PR c/48062 (`shadowed declaration is here' should be a note)
[gcc.git] / gcc / c-family / ChangeLog
CommitLineData
9d548dfb
MP
12014-06-04 Marek Polacek <polacek@redhat.com>
2
3 PR c/30020
4 * c-common.c (check_case_bounds): Add location parameter.
5 Use it.
6 (c_add_case_label): Pass loc to check_case_bounds.
7
fedfecef
MP
82014-06-03 Marek Polacek <polacek@redhat.com>
9
10 PR c/60439
11 * c.opt (Wswitch-bool): New option.
12
f6a7cffc
TS
132014-05-22 Thomas Schwinge <thomas@codesourcery.com>
14
040d18b6
TS
15 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
16 Remove prototypes.
17 (record_types_used_by_current_var_decl): Move prototype to where
18 it belongs.
19
f6a7cffc
TS
20 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
21 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
22 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
23
632f2871
RS
242014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
25
26 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
27 * c-common.c (c_common_nodes_and_builtins): Don't initialize
28 void_zero_node.
29 * c-pretty-print.c (pp_c_void_constant): New function.
30 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
31 (c_pretty_printer::expression): Handle VOID_CST.
32 * cilk.c (extract_free_variables): Likewise.
33 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
34 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
35
766090c2
TS
362014-05-17 Trevor Saunders <tsaunders@mozilla.com>
37
38 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
39 * c-pragma.c (push_alignment): Adjust.
40 (handle_pragma_push_options): Likewise.
41
661a0813
MP
422014-05-09 Marek Polacek <polacek@redhat.com>
43
44 PR c/50459
45 * c-common.c (check_user_alignment): Return -1 if alignment is error
46 node.
47 (handle_aligned_attribute): Don't call default_conversion on
48 FUNCTION_DECLs.
49 (handle_vector_size_attribute): Likewise.
50 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
51 (handle_sentinel_attribute): Call default_conversion and allow even
52 integral types as an argument.
53
2793eeab
MP
542014-05-08 Marek Polacek <polacek@redhat.com>
55
56 PR c/61053
57 * c-common.c (min_align_of_type): New function factored out from...
58 (c_sizeof_or_alignof_type): ...here.
59 * c-common.h (min_align_of_type): Declare.
60
f827930a
MP
612014-05-08 Marek Polacek <polacek@redhat.com>
62
63 PR c/61077
64 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
65 parameter type of main.
66
ca49b74e
DD
672014-05-07 DJ Delorie <dj@redhat.com>
68
69 * c-cppbuiltin.c (print_bits_of_hex): New.
70 (builtin_define_type_minmax): Print values using hex so as not to
71 require a pre-computed list of string values.
72
1d60af08
KZ
732014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
74 Mike Stump <mikestump@comcast.net>
75 Richard Sandiford <rdsandiford@googlemail.com>
76
77 * c-ada-spec.c: Include wide-int.h.
78 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
79 (dump_generic_ada_node): Use wide-int interfaces.
80 * c-common.c: Include wide-int-print.h.
81 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
82 (pointer_int_sum): Use wide-int interfaces.
83 (c_common_nodes_and_builtins): Use make_int_cst.
84 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
85 (handle_alloc_size_attribute): Use wide-int interfaces.
86 (get_nonnull_operand): Likewise.
87 * c-format.c (get_constant): Use tree_fits_uhwi_p.
88 * c-lex.c: Include wide-int.h.
89 (narrowest_unsigned_type): Take a widest_int rather than two
90 HOST_WIDE_INTs.
91 (narrowest_signed_type): Likewise.
92 (interpret_integer): Update accordingly. Use wide-int interfaces.
93 (lex_charconst): Use wide-int interfaces.
94 * c-pretty-print.c: Include wide-int.h.
95 (pp_c_integer_constant): Use wide-int interfaces.
96 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
97 INT_CST_LT_UNSIGNED.
98
b15458be
RB
992014-05-06 Richard Biener <rguenther@suse.de>
100
101 * c-opts.c (c_common_post_options): For -freestanding,
102 -fno-hosted and -fno-builtin disable pattern recognition
103 if not enabled explicitely.
104
6577374e
MP
1052014-05-02 Marek Polacek <polacek@redhat.com>
106
107 * c.opt (Wsizeof-pointer-memaccess): Describe option.
108
d00887e8
MP
1092014-05-01 Marek Polacek <polacek@redhat.com>
110
111 PR c/43245
112 * c.opt (Wdiscarded-qualifiers): Add.
113
f8ed5150
MP
1142014-04-30 Marek Polacek <polacek@redhat.com>
115
116 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
117 INT_MIN / -1 sanitization only for integer types.
118
45484dcf
MP
1192014-04-25 Marek Polacek <polacek@redhat.com>
120
121 PR c/18079
122 * c-common.c (handle_noinline_attribute): Warn if the attribute
123 conflicts with always_inline attribute.
124 (handle_always_inline_attribute): Warn if the attribute conflicts
125 with noinline attribute.
126
38e514c0
MP
1272014-04-25 Marek Polacek <polacek@redhat.com>
128
129 PR c/60156
130 * c-common.c (check_main_parameter_types): Warn about variadic main.
131
44875f92
MS
1322014-04-24 Mike Stump <mikestump@comcast.net>
133
134 * c.opt (Wshadow-ivar): Default to on.
135
dcaaa5a0
DP
1362014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
137
138 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
139
c07d7c02
MP
1402014-04-23 Marek Polacek <polacek@redhat.com>
141
142 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
143
1c33c9b7
JJ
1442014-04-22 Jakub Jelinek <jakub@redhat.com>
145
146 PR sanitizer/60275
147 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
148 if flag_sanitize_undefined_trap_on_error.
149 (ubsan_instrument_division, ubsan_instrument_shift,
150 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
151 if !flag_sanitize_recover.
152
793c625f
MG
1532014-04-22 Marc Glisse <marc.glisse@inria.fr>
154
155 PR libstdc++/43622
156 * c-common.c (registered_builtin_types): Make non-static.
157 * c-common.h (registered_builtin_types): Declare.
158
b0f1bf36
RB
1592014-04-14 Richard Biener <rguenther@suse.de>
160 Marc Glisse <marc.glisse@inria.fr>
161
162 PR c/60819
163 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
164 apply may-alias the scalar pointer type when applicable.
165
3b07fa4a
IZ
1662014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
167
168 PR middle-end/60467
169 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
170 as possible argument for Cilk_spawn.
171
cbbd2b1c
TB
1722014-04-11 Tobias Burnus <burnus@net-b.de>
173
174 PR c/60194
175 * c.opt (Wformat-signedness): Add
176 * c-format.c(check_format_types): Use it.
177
6415bd5d
JM
1782014-04-11 Jason Merrill <jason@redhat.com>
179
180 PR c++/57926
181 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
182 default_conversion for an array argument.
183
6525783a
MP
1842014-04-08 Marek Polacek <polacek@redhat.com>
185
186 PR sanitizer/60745
187 * c-ubsan.c: Include asan.h.
188 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
189
880a467b
NS
1902014-04-03 Nathan Sidwell <nathan@codesourcery.com>
191
192 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
193
7b59ff2d
MP
1942014-04-02 Marek Polacek <polacek@redhat.com>
195
196 * c-common.h (c_expand_expr): Remove declaration.
197
8edbfaa6
JJ
1982014-03-28 Jakub Jelinek <jakub@redhat.com>
199
200 PR c++/60689
201 * c-common.c (add_atomic_size_parameter): When creating new
202 params vector, push the size argument first.
203
07d72e1d
JJ
2042014-03-26 Jakub Jelinek <jakub@redhat.com>
205
206 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
207 ubsan_instrument_vla, ubsan_instrument_return): Adjust
208 ubsan_create_data callers.
209
b35e0fa0
JJ
2102014-03-22 Jakub Jelinek <jakub@redhat.com>
211
212 PR debug/60603
213 * c-opts.c (c_finish_options): Restore cb_file_change call to
214 <built-in>.
215
39a1ebb3
JJ
2162014-03-13 Jakub Jelinek <jakub@redhat.com>
217
218 PR middle-end/36282
219 * c-pragma.c (apply_pragma_weak): Only look at
220 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
221 DECL_ASSEMBLER_NAME_SET_P (decl).
222 (maybe_apply_pending_pragma_weaks): Exit early if
223 vec_safe_is_empty (pending_weaks) rather than only when
224 !pending_weaks.
225 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
226 set assembler name back to NULL afterwards.
227
a07f6ed2
JM
2282014-03-11 Jason Merrill <jason@redhat.com>
229
230 * c.opt: Add -std=gnu++14.
231
75b107f5
IB
2322014-03-11 Ian Bolton <ian.bolton@arm.com>
233
234 * c-opts.c (c_common_post_options): Don't override
235 -ffp-contract=fast if unsafe-math-optimizations is on.
236
f42c637e
PM
2372014-03-08 Paulo Matos <paulo@matos-sorge.com>
238
239 * c.opt: Enable LTO FE for fshort-double.
240
70e24808
JM
2412014-03-07 Jason Merrill <jason@redhat.com>
242
243 * c.opt: Add -std=c++14.
244
3af9c5e9
MP
2452014-03-06 Marek Polacek <polacek@redhat.com>
246
247 PR c/60197
248 * cilk.c (contains_cilk_spawn_stmt): New function.
249 (contains_cilk_spawn_stmt_walker): Likewise.
250 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
251 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
252
b3bdf019
JJ
2532014-03-03 Jakub Jelinek <jakub@redhat.com>
254
255 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
256 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
257 even when flag_preprocess_only.
258
ca7e759d
JM
2592014-02-26 Jason Merrill <jason@redhat.com>
260
261 PR c++/59231
262 PR c++/11586
263 * c-common.c (shorten_compare): Don't check
264 c_inhibit_evaluation_warnings.
265
28e41874
JJ
2662014-02-19 Jakub Jelinek <jakub@redhat.com>
267
cca615af
JJ
268 PR c/37743
269 * c-common.c (c_common_nodes_and_builtins): When initializing
270 c_uint{16,32,64}_type_node, also set corresponding
271 uint{16,32,64}_type_node to the same value.
272
28e41874
JJ
273 PR c++/60267
274 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
275 for PRAGMA_IVDEP if flag_preprocess_only.
276
c2bf53a1
JJ
2772014-02-12 Jakub Jelinek <jakub@redhat.com>
278
279 PR c/60101
280 * c-common.c (merge_tlist): If copy is true, call new_tlist,
281 if false, add ADD itself, rather than vice versa.
282 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
283 copy. For SAVE_EXPR, only call merge_tlist once.
284
8fcbce72
JJ
2852014-02-08 Jakub Jelinek <jakub@redhat.com>
286
287 PR middle-end/60092
288 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
289 and tree_to_uhwi.
290 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
291 functions.
292 (c_common_attribute_table): Add alloc_align and assume_aligned
293 attributes.
294
0a756a3f
MP
2952014-02-06 Marek Polacek <polacek@redhat.com>
296
297 PR c/60087
298 * c-common.c (warn_for_sign_compare): Call warning_at with location
299 instead of warning.
300
7ec4847a
MP
3012014-02-05 Marek Polacek <polacek@redhat.com>
302
303 PR c/53123
304 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
305 statement.
306
66f20604
MP
3072014-02-04 Marek Polacek <polacek@redhat.com>
308
309 PR c/60036
310 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
311 SAVE_EXPR.
312
5d77fb19
MG
3132014-02-03 Marc Glisse <marc.glisse@inria.fr>
314
315 PR c++/53017
316 PR c++/59211
317 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
318 handle_vector_size_attribute, handle_nonnull_attribute): Call
319 default_conversion on the attribute argument.
320 (handle_nonnull_attribute): Increment the argument number.
321
81e5eca8
MP
3222014-01-31 Marek Polacek <polacek@redhat.com>
323
324 PR c/59963
325 * c-common.c (add_atomic_size_parameter): Pass vNULL to
326 build_function_call_vec.
327 (resolve_overloaded_builtin): Likewise.
328 * c-common.h (build_function_call_vec): Adjust declaration.
329
68fca595
MP
3302014-01-30 Marek Polacek <polacek@redhat.com>
331
332 PR c/59940
333 * c-common.h (unsafe_conversion_p): Adjust declaration.
334 (warnings_for_convert_and_check): Likewise.
335 (convert_and_check): Likewise.
336 * c-common.c (unsafe_conversion_p): Add location parameter. Call
337 expansion_point_location_if_in_system_header on it.
338 (warnings_for_convert_and_check): Add location parameter. Call
339 expansion_point_location_if_in_system_header on it. Use it.
340 (convert_and_check): Add location parameter. Use it.
341 (conversion_warning): Likewise.
342 (c_add_case_label): Adjust convert_and_check calls.
343 (scalar_to_vector): Adjust unsafe_conversion_p calls.
344
b72271b9
BI
3452014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
346
347 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
348 flag_cilkplus.
349 * c-pragma.c (init_pragma): Likewise.
350 * c.opt: Likewise.
351
393e8e8b
MP
3522014-01-23 Marek Polacek <polacek@redhat.com>
353
354 PR c/59846
355 * c-common.c (shorten_compare): Add location_t parameter.
356 * c-common.h (shorten_binary_op): Adjust declaration.
357
f04dda30
MP
3582014-01-23 Marek Polacek <polacek@redhat.com>
359
360 PR c/58346
361 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
362 * c-common.h: Declare it.
363
621955cb
EB
3642014-01-20 Eric Botcazou <ebotcazou@adacore.com>
365
366 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
367 * c-ada-spec.c (dump_ads): Likewise.
368 (cpp_check): Likewise.
369 (dump_ada_specs): Likewise.
370
3712014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
372
373 PR c++/49718
374 * c-common.c (handle_no_instrument_function_attribute): Allow
375 no_instrument_function attribute in class member
376 definition/declaration.
377
241f845a
JJ
3782014-01-15 Jakub Jelinek <jakub@redhat.com>
379
380 PR c/58943
381 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
382 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
383 being COMPOUND_EXPR.
384 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
385 operand a SAVE_EXPR and second MODIFY_EXPR.
386
e83b8e2e
JJ
3872014-01-09 Jakub Jelinek <jakub@redhat.com>
388
389 PR target/58115
390 * c-pch.c (c_common_write_pch): Call
391 prepare_target_option_nodes_for_pch.
392
23a5b65a
RS
3932014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
394
395 Update copyright years
396
f9030485
RS
3972014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
398
399 * array-notation-common.c, c-cilkplus.c: Use the standard form for
400 the copyright notice.
401
f2aa696b
EB
4022013-12-28 Eric Botcazou <ebotcazou@adacore.com>
403
404 * c-ada-spec.c (print_constructor): New function.
405 (print_destructor): Retrieve the origin of the destructor.
406 (print_ada_declaration): Revamp handling of constructors/destructors.
407
1f26ac87
JM
4082013-12-23 Stuart Hastings <stuart@apple.com>
409 Bill Maddox <maddox@google.com>
410 Jason Merrill <jason@redhat.com>
411
412 * c.opt: Add -fdeclone-ctor-dtor.
413 * c-opts.c (c_common_post_options): Default to on iff -Os.
414
41958c28
BI
4152013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
416
417 * c-common.c (c_common_attribute_table): Added "cilk simd function"
418 attribute.
419 * c-pragma.h (enum pragma_cilk_clause): Remove.
420 (enum pragma_omp_clause): Added the following fields:
421 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
422 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
423 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
424 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
425 PRAGMA_CILK_CLAUSE_UNIFORM.
426
427
12893402
BI
4282013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
429
430 * cilk.c (cilk_outline): Made this function non-static.
431 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
432 (create_cilk_wrapper): Added a new parameter: a function pointer.
433 (c_install_body_w_frame_cleanup): Remove
434 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
435 * c-common.h (cilk_outline): New prototype.
436 (gimplify_cilk_spawn): Removed two parameters.
437 (cilk_install_body_with_frame_cleanup): New prototype.
438 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
439 CILK_SPAWN_STMT case.
440
085b42ed
BS
4412013-12-11 Bernd Schmidt <bernds@codesourcery.com>
442
2ce064c3
BS
443 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
444
085b42ed
BS
445 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
446 (int_array_type_node): Remove.
447 * c-common.c (c_common_nodes_and_builtins): Don't build it.
448
9e36c9ed
MP
4492013-12-05 Marek Polacek <polacek@redhat.com>
450
451 PR c/52023
452 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
453 [ADJUST_FIELD_ALIGN].
454
296674db
JM
4552013-12-04 Joseph Myers <joseph@codesourcery.com>
456
457 PR c/52023
458 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
459 and check field alignment if set.
460 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
461 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
462
31e071ae
MP
4632013-12-04 Jakub Jelinek <jakub@redhat.com>
464 Marek Polacek <polacek@redhat.com>
465
466 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
467 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
468
d7947e19
L
4692013-11-29 H.J. Lu <hongjiu.lu@intel.com>
470
471 PR c/59309
472 * cilk.c (gimplify_cilk_spawn): Properly handle function without
473 arguments.
474
fad7652e
JJ
4752013-11-29 Jakub Jelinek <jakub@redhat.com>
476
477 PR c/59280
478 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
479 goto invalid. If it is error_mark_node, don't issue further
480 diagnostics.
481
8b5e1202
SO
4822013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
483
484 * c.opt (Wopenmp-simd): New.
485
0a508bb6
JJ
4862013-11-22 Jakub Jelinek <jakub@redhat.com>
487
488 * c-ubsan.h (ubsan_instrument_return): New prototype.
489 * c-ubsan.c (ubsan_instrument_return): New function.
490
2fb9a547
AM
4912013-11-22 Andrew MacLeod <amacleod@redhat.com>
492
493 * c-common.c: Add required include files from gimple.h.
494 * c-gimplify.c: Likewise
495 * cilk.c: Likewise
496
8400e75e
DM
4972013-11-22 David Malcolm <dmalcolm@redhat.com>
498
499 * c-common.c (unsafe_conversion_p): Remove use of
500 EXPR_LOC_OR_HERE macro.
501 (conversion_warning): Likewise.
502 (warnings_for_convert_and_check): Likewise.
503 (warn_for_collisions_1): Likewise.
504 (shorten_compare): Likewise, and remove use of in_system_header
505 macro, using the location from the former.
506 * c-lex.c (dump_one_header): Remove use of input_filename macro.
507 (cb_def_pragma): Remove use of in_system_header macro.
508 (lex_string): Likewise.
509 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
510
eb1ce453
KZ
5112013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
512 Mike Stump <mikestump@comcast.net>
513 Richard Sandiford <rdsandiford@googlemail.com>
514
515 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
516 instead of TREE_INT_CST_LOW, in cases where there is a protecting
517 tree_fits_shwi_p or tree_fits_uhwi_p.
518 (dump_generic_ada_node): Likewise.
519 * c-format.c (check_format_arg): Likewise.
520 * c-pretty-print.c (pp_c_integer_constant): Likewise.
521
6b3b8c27
KZ
5222013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
523
524 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
525
49b0aa18
JC
5262013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
527
528 PR c/53001
529 * c-common.c (unsafe_conversion_p): Make this function
530 return an enumeration with more detail.
531 (conversion_warning): Use the new return type of
532 unsafe_conversion_p to separately warn either about conversions
533 that lower floating point number precision or about the other
534 kinds of conversions.
535 * c-common.h (enum conversion_safety): New enumeration.
536 (unsafe_conversion_p): switching return type to
537 conversion_safety enumeration.
538 * c.opt: Adding new warning -Wfloat-conversion and
539 enabling it with -Wconversion.
540
b826515a
BS
5412013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
542
543 * c-opts.c: Include plugin.h.
544 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
545
b9a55b13
MP
5462013-11-19 Marek Polacek <polacek@redhat.com>
547
548 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
549 call.
550 (ubsan_instrument_shift): Likewise.
551 (ubsan_instrument_vla): Likewise.
552
7d362f6c
RS
5532013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
554
555 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
556 cast to unsigned type.
557
386b1f1f
RS
5582013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
559
560 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
561 tree_low_cst.
562 (complete_array_type): Update comment to refer to tree_to_[su]hwi
563 rather than tree_low_cst.
564
ae7e9ddd
RS
5652013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
566
567 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
568 tree_to_uhwi throughout.
569
9439e9a1
RS
5702013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
571
572 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
573 tree_low_cst (..., 0) with tree_to_shwi throughout.
574
cc269bb6
RS
5752013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
576
577 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
578 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
579
9541ffee
RS
5802013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
581
582 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
583 host_integerp (..., 0) with tree_fits_shwi_p throughout.
584
c02065fc
AH
5852013-11-15 Aldy Hernandez <aldyh@redhat.com>
586
587 * c-cilkplus.c: New file.
588 * c-common.c (readonly_error): Add location argument.
589 * c-common.h (readonly_error): Same.
590 (c_finish_cilk_clauses): Protoize.
591 (c_check_cilk_loop): Same.
592 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
593 Do not fail on error_mark_node.
594 Abstract increment canonicalization to here...
595 (c_omp_for_incr_canonicalize_ptr): New.
596 c-pragma.c (init_pragma): Register "simd" pragma.
597 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
598 (enum pragma_cilk_clause): New.
599
9cc65f15
RS
6002013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
601
602 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
603 wchar_type and host_integerp checks.
604
18f429e2
AM
6052013-11-14 Andrew MacLeod <amacleod@redhat.com>
606
607 * c-common.c: Likewise.
608 * c-gimplify.c: Likewise.
609 * cilk.c: Likewise.
610
d8a2d370
DN
6112013-11-14 Diego Novillo <dnovillo@google.com>
612
613 * c-common.c: Include fold-const.h.
614 Include stor-layout.h.
615 Include calls.h.
616 Include stringpool.h.
617 Include attribs.h.
618 Include varasm.h.
619 Include trans-mem.h.
620 * c-cppbuiltin.c: Include stor-layout.h.
621 Include stringpool.h.
622 * c-format.c: Include stringpool.h.
623 * c-lex.c: Include stringpool.h.
624 Include stor-layout.h.
625 * c-pragma.c: Include stringpool.h.
626 Include attribs.h.
627 Include varasm.h.
628 Include gcc-symtab.h.
629 * c-pretty-print.c: Include stor-layout.h.
630 Include attribs.h.
631 * cilk.c: Include stringpool.h.
632 Include calls.h.
633
38b7bc7f
JM
6342013-11-13 Joseph Myers <joseph@codesourcery.com>
635
636 * c-common.h (enum rid): Add RID_AUTO_TYPE.
637 * c-common.c (c_common_reswords): Add __auto_type.
638 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
639
45b0be94
AM
6402013-11-12 Andrew MacLeod <amacleod@redhat.com>
641
18f429e2
AM
642 * c-common.c: Include gimplify.h.
643 * c-gimplify.c: Likewise.
644 * cilk.c: Likewise.
645 * c-omp.c: Include gimple-expr.h instead of gimple.h.
646 * c-ubsan.c: Don't include gimple.h.
45b0be94 647
582d9b50
JM
6482013-11-12 Joseph Myers <joseph@codesourcery.com>
649
650 * c-common.c (c_common_reswords): Add _Thread_local.
651
6b28e197
JM
6522013-11-09 Joseph Myers <joseph@codesourcery.com>
653
654 * c-common.c (atomic_size_supported_p): New function.
655 (resolve_overloaded_atomic_exchange)
656 (resolve_overloaded_atomic_compare_exchange)
657 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
658 Use it instead of comparing size with a local list of sizes.
659
267bac10
JM
6602013-11-07 Andrew MacLeod <amacleod@redhat.com>
661 Joseph Myers <joseph@codesourcery.com>
662
663 * c-common.h (enum rid): Add RID_ATOMIC.
664 * c-common.c (c_common_reswords): Add _Atomic.
665 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
666 (keyword_is_type_qualifier): Accept RID_ATOMIC.
667 * c-format.c (check_format_types): Check for extra _Atomic
668 qualifiers in format argument.
669 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
670 (pp_c_type_qualifier_list): Mention _Atomic in comment.
671
5157b91e
TB
6722013-11-06 Tobias Burnus <burnus@net-b.de>
673
674 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
675
6dbe0958
JM
6762013-11-06 Joseph Myers <joseph@codesourcery.com>
677
678 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
679 standards modes.
680 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
681 to mean lack of IEEE 754 support.
682
e8ff5196
TB
6832013-11-05 Tobias Burnus <burnus@net-b.de>
684
685 * c.opt (-Wdate-time): New option
686 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
687
254a0760
JM
6882013-11-05 Joseph Myers <joseph@codesourcery.com>
689
690 * c-cppbuiltin.c (cpp_iec_559_value): Test
691 flag_excess_precision_cmdline not flag_excess_precision.
692
6d7f7e0a
TB
6932013-11-05 Tobias Burnus <burnus@net-b.de>
694
695 * c.opt (fopenmp-simd): New option.
696 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
697 (omp_pragmas): ... this new struct.
698 (c_pp_lookup_pragma): Also walk omp_pragmas.
699 (init_pragma): Init pragmas for -fopenmp-simd.
700
55a7f02f
MP
7012013-11-04 Marek Polacek <polacek@redhat.com>
702
703 PR c++/58979
704 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
705
9193fb05
JM
7062013-11-04 Joseph Myers <joseph@codesourcery.com>
707
708 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
709 New functions.
710 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
711
94159ecf
EB
7122013-11-04 Eric Botcazou <ebotcazou@adacore.com>
713
714 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
715 (dump_ada_specs): Adjust prototype of second callback.
716 * c-ada-spec.c (cpp_check): New global variable.
717 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
718 (print_generic_ada_decl): Likewise.
719 (has_static_fields): Change return type to bool and add guard.
720 (has_nontrivial_methods): New predicate.
721 (is_tagged_type): Change return type to bool.
722 (separate_class_package): Call has_nontrivial_methods.
723 (pp_ada_tree_identifier): Minor tweaks.
724 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
725 (dump_ada_array_domains): Likewise.
726 (dump_ada_array_type): Likewise.
727 (dump_template_types): Remove cpp_check parameter and do not pass it to
728 dump_generic_ada_node.
729 (dump_ada_template): Likewise.
730 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
731 recursively.
732 (print_ada_methods): Change return type to integer. Remove cpp_check
733 parameter and do not pass it down.
734 (dump_nested_types): Remove cpp_check parameter and do not pass it to
735 dump_generic_ada_node.
736 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
737 accessing methods.
738 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
739 down. Use has_nontrivial_methods to recognize C++ classes. Use return
740 value of print_ada_methods.
741 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
742 Set cpp_check to it before invoking dump_ada_nodes.
743 (dump_ada_specs): Likewise.
744
b906f4ca
MP
7452013-11-03 Marek Polacek <polacek@redhat.com>
746
747 * c-ubsan.c: Don't include hash-table.h.
748 (ubsan_instrument_vla): New function.
749 * c-ubsan.h: Declare it.
750
5e20cdc9
DM
7512013-10-31 David Malcolm <dmalcolm@redhat.com>
752
753 Automated part of renaming of symtab_node_base to symtab_node.
754
755 Patch autogenerated by rename_symtab.py from
756 https://github.com/davidmalcolm/gcc-refactoring-scripts
757 revision 58bb219cc090b2f4516a9297d868c245495ee622
758
759 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
760 symtab_node_base to symtab_node.
761
7057e645
ESR
7622013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
763
764 Implement C++14 digit separators.
765 * c-lex.c (interpret_float): Remove digit separators from scratch string
766 before building real literal.
767
193ea7bc
JJ
7682013-10-30 Jakub Jelinek <jakub@redhat.com>
769
770 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
771
939b37da
BI
7722013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
773
774 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
775 fields.
776 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
777 enabled.
778 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
779 (insert_cilk_frame): New prototype.
780 (cilk_init_builtins): Likewise.
781 (gimplify_cilk_spawn): Likewise.
782 (c_cilk_install_body_w_frame_cleanup): Likewise.
783 (cilk_detect_spawn_and_unwrap): Likewise.
784 (cilk_set_spawn_marker): Likewise.
785 (build_cilk_sync): Likewise.
786 (build_cilk_spawn): Likewise.
787 * cilk.c: New file.
788
67348ccc
DM
7892013-10-29 David Malcolm <dmalcolm@redhat.com>
790
791 Patch autogenerated by refactor_symtab.py from
792 https://github.com/davidmalcolm/gcc-refactoring-scripts
793 revision 58bb219cc090b2f4516a9297d868c245495ee622
794
795 * c-gimplify.c (c_genericize): Update for conversion of symtab types
796 to a true class hierarchy.
797 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
798
d570872d
RS
7992013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
800
801 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
802
98906124
JL
8032013-10-26 Jeff Law <law@redhat.com>
804
805 * c-family/c-common.c (c_define_builtins): Remove mudflap support.
806 * c-family/c.opt: Ignore and warn for mudflap options.
807
d73749df 8082013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
809
810 PR other/33426
811 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
812 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
813
3f04b1bb
JM
8142013-10-23 Jason Merrill <jason@redhat.com>
815
816 * c-format.c (gcc_cxxdiag_char_table): Add %X.
817
acf0174b
JJ
8182013-10-11 Jakub Jelinek <jakub@redhat.com>
819
acd15a28
JJ
820 * c-common.h (omp_clause_mask::operator !=): New method.
821 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
822 instead of if (mask & something) tests everywhere.
823
acf0174b
JJ
824 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
825 201307 instead of 201107.
826 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
827 (c_common_attribute_table): Add "omp declare target" and
828 "omp declare simd" attributes.
829 (handle_omp_declare_target_attribute,
830 handle_omp_declare_simd_attribute): New functions.
831 * c-omp.c: Include c-pragma.h.
832 (c_finish_omp_taskgroup): New function.
833 (c_finish_omp_atomic): Add swapped argument, if true,
834 build the operation first with rhs, lhs arguments and use NOP_EXPR
835 build_modify_expr.
836 (c_finish_omp_for): Add code argument, pass it down to make_code.
837 (c_omp_split_clauses): New function.
838 (c_split_parallel_clauses): Removed.
839 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
840 c_omp_declare_simd_clauses_to_decls): New functions.
841 * c-common.h (omp_clause_mask): New type.
842 (OMP_CLAUSE_MASK_1): Define.
843 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
844 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
845 omp_clause_mask::operator |, omp_clause_mask::operator &,
846 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
847 omp_clause_mask::operator ==): New methods.
848 (enum c_omp_clause_split): New.
849 (c_finish_omp_taskgroup): New prototype.
850 (c_finish_omp_atomic): Add swapped argument.
851 (c_finish_omp_for): Add code argument.
852 (c_omp_split_clauses): New prototype.
853 (c_split_parallel_clauses): Removed.
854 (c_omp_declare_simd_clauses_to_numbers,
855 c_omp_declare_simd_clauses_to_decls): New prototypes.
856 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
857 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
858 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
859 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
860 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
861 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
862 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
863 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
864 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
865 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
866 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
867 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
868 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
869 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
870 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
871 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
872 PRAGMA_OMP_CLAUSE_UNIFORM.
873
826cacfe
MG
8742013-10-09 Marc Glisse <marc.glisse@inria.fr>
875
876 PR tree-optimization/20318
877 * c-common.c (handle_returns_nonnull_attribute): New function.
878 (c_common_attribute_table): Add returns_nonnull.
879
2284b034
MG
8802013-10-03 Marc Glisse <marc.glisse@inria.fr>
881
882 PR c++/19476
883 * c.opt (fcheck-new): Move to common.opt.
884
b56e9788
MP
8852013-09-25 Marek Polacek <polacek@redhat.com>
886 Jakub Jelinek <jakub@redhat.com>
887
888 PR sanitizer/58413
889 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
890 an expression if we can prove it is correct.
891 (ubsan_instrument_division): Likewise. Remove unnecessary
892 check.
893
ce6923c5
MP
8942013-09-18 Marek Polacek <polacek@redhat.com>
895
896 PR sanitizer/58411
897 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
898 Declare it.
899 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
900
fb5610fb
IS
9012013-09-14 Iain Sandoe <iain@codesourcery.com>
902
903 PR target/48094
904 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
905 fobjc-gc, freplace-objc-classes): Accept for LTO.
906
88b0e79e
JC
9072013-09-13 Jacek Caban <jacek@codeweavers.com>
908
909 * c-target.def: New hook
910
c9b0866a
PC
9112013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
912
913 PR c++/43452
914 * c.opt (Wdelete-incomplete): Add.
915
0af94e6f
JR
9162013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
917
918 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
919 (vector_types_compatible_elements_p): New function.
920 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
921 declaration.
922 (vector_types_compatible_elements_p): Declare.
923
7c26172c
GDR
9242013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
925
926 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
927 a virtual member function.
928 (pp_simple_type_specifier): Remove.
929 (pp_c_type_specifier): Likewise.
930 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
931 Rename from pp_c_type_specifier. Adjust.
932 (c_pretty_printer::c_pretty_printer): Do not assign to
933 simple_type_specifier.
934
20059c8b
GDR
9352013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
936
937 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
938 member function.
939 (c_pretty_printer::storage_class_specifier): Likewise.
940 (c_pretty_printer::initializer): Likewise.
941 (pp_declaration): Remove.
942 (pp_declaration_specifiers): Likewise.
943 (pp_abstract_declarator): Likewise.
944 (pp_declarator): Likewise.
945 (pp_type_id): Likewise.
946 (pp_statement): Likewise.
947 (pp_constant): Likewise.
948 (pp_id_expression): Likewise.
949 (pp_primary_expression): Likewise.
950 (pp_unary_expression): Likewise.
951 (pp_multiplicative_expression): Likewise.
952 (pp_conditional_expression): Likewise.
953 (pp_assignment_expression): Likewise.
954 (pp_expression): Likewise.
955 (pp_c_type_id): Likewise.
956 (pp_c_storage_class_specifier): Likewise.
957 * c-pretty-print.c (pp_c_type_cast): Tidy.
958 (pp_c_pointer): Likewise.
959 (pp_c_type_specifier): Likewise.
960 (pp_c_parameter_type_list): Likewise.
961 (pp_c_function_definition): Likewise.
962 (pp_c_init_declarator): Likewise.
963 (pp_c_initializer_list): Likewise.
964 (pp_c_constructor_elts): Likewise.
965 (c_pretty_printer::direct_abstract_declarator): Likewise.
966 (c_pretty_printer::declaration_specifiers): Likewise.
967 (c_pretty_printer::primary_expression): Likewise.
968 (c_pretty_printer::postfix_expression): Likewise.
969 (c_pretty_printer::type_id): Rename from pp_c_type_id.
970 (c_pretty_printer::storage_class_specifier): Rename from
971 pp_c_storage_class_specifier.
972 (c_pretty_printer::initializer): Rename from pp_c_initializer.
973 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
974 storage_class_specifier, initializer, offset_list, flags.
975
de5a5fa1
MP
9762013-08-30 Marek Polacek <polacek@redhat.com>
977
978 * c-ubsan.c: New file.
979 * c-ubsan.h: New file.
980
8f0e4d72
GDR
9812013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
982
983 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
984 member function.
985 (c_pretty_printer::declaration_specifiers): Likewise.
986 (c_pretty_printer::declarator): Likewise.
987 (c_pretty_printer::abstract_declarator): Likewise.
988 (c_pretty_printer::direct_abstract_declarator): Likewise.
989 (c_pretty_printer::direct_declarator): Likewise.
990 (c_pretty_printer::function_specifier): Likewise.
991 (pp_declaration): Adjust.
992 (pp_declaration_specifiers): Likewise.
993 (pp_abstract_declarator): Likewise.
994 (pp_direct_declarator): Likewise.
995 (pp_function_specifier): Likewise.
996 (pp_direct_abstract_declarator): Remove as unused.
997 (pp_c_declaration): Remove.
998 (pp_c_declaration_specifiers): Likewise.
999 (pp_c_declarator): Likewise.
1000 (pp_c_direct_declarator): Likewise.
1001 (pp_c_function_specifier): Likewise.
1002 (pp_c_direct_abstract_declarator): Likewise.
1003 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
1004 from pp_c_abstract_declarator. Adjust.
1005 (c_pretty_printer::direct_abstract_declarator): Rename from
1006 pp_c_direct_abstract_declarator. Adjust.
1007 (c_pretty_printer::function_specifier): Rename from
1008 pp_c_function_specifier. Adjust.
1009 (c_pretty_printer::declaration_specifiers): Rename from
1010 pp_c_declaration_specifiers. Adjust.
1011 (c_pretty_printer::direct_declarator): Rename from
1012 pp_c_direct_declarator. Adjust.
1013 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
1014 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
1015 (c_pretty_printer::c_pretty_printer): Do not assign to
1016 declaration, declaration_specifiers, declarator,
1017 direct_declarator, direct_abstract_declarator, function_specifier.
1018
00d34d3a
GDR
10192013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
1020
1021 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
1022 virtual member function.
1023 (c_pretty_printer::multiplicative_expression): Likewise.
1024 (c_pretty_printer::conditional_expression): Likewise.
1025 (c_pretty_printer::assignment_expression): Likewise.
1026 (c_pretty_printer::expression): Likewise.
1027 (pp_unary_expression): Adjust.
1028 (pp_multiplicative_expression): Likewise.
1029 (pp_assignment_expression): Likewise.
1030 (pp_conditional_expression): Likewise.
1031 (pp_expression): Likewise.
1032 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
1033 from pp_c_unary_expression. Adjust.
1034 (c_pretty_printer::multiplicative_expression): Rename from
1035 pp_c_multiplicative_expression. Adjust.
1036 (c_pretty_printer::conditional_expression): Rename from
1037 pp_c_conditional_expression. Adjust.
1038 (c_pretty_printer::assignment_expression): Rename from
1039 pp_c_assignment_expression. Adjust.
1040 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
1041 (c_pretty_printer::c_pretty_printer): Do not assign to
1042 unary_expression, multiplicative_expression,
1043 conditional_expression, expression.
1044
fb22178f
GDR
10452013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1046
1047 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
1048 virtual member function.
1049 (pp_postfix_expression): Adjust.
1050 (pp_c_postfix_expression): Remove.
1051 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
1052 from pp_c_postfix_expression. Adjust.
1053 (c_pretty_printer::c_pretty_printer): Do not assign to
1054 postfix_expression.
1055
7ecc2600
GDR
10562013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1057
1058 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
1059 virtua member function.
1060 (pp_primary_expression): Adjust.
1061 (pp_c_primary_expression): Remove.
1062 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
1063 from pp_c_primary_expression. Adjust.
1064 (pp_c_initializer_list): Use pp_primary_expression.
1065 (c_pretty_printer::c_pretty_printer): Do not assign to
1066 primary_expression.
1067
0691175f
GDR
10682013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1069
1070 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
1071 * c-pretty-print.c (M_): Remove.
1072 (c_pretty_printer::translate_string): Define.
1073 (pp_c_type_specifier): Use it.
1074 (pp_c_primary_expression): Likewise.
1075 (pp_c_expression): Likewise.
1076
66dfe4c4
GDR
10772013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
1078
1079 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
1080 virtual function.
1081 (pp_c_id_expression): Remove.
1082 (pp_id_expression): Adjust.
1083 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
1084 pp_c_id_expression. Adjust.
1085 (pp_c_postfix_expression): Use pp_id_expression.
1086 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
1087
ca43e9d5
GDR
10882013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
1089
1090 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
1091 member function.
1092 (pp_constant): Adjust.
1093 (pp_c_constant): Remove.
1094 * c-pretty-print.c (c_pretty_printer::constant): Rename from
1095 pp_c_constant. Adjust.
1096 (pp_c_constant)
1097 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
1098 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
1099
da6ca2b5
GDR
11002013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1101
1102 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
1103 (c_pretty_printer::c_pretty_printer): Declare.
1104 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
1105 c_pretty_printer_init. Adjust.
1106 (print_c_tree): Do not call c_pretty_printer_init.
1107 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
1108
65a372f4
AC
11092013-08-09 Arnaud Charlet <charlet@adacore.com>
1110
1111 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
1112
fd9b0f32
PC
11132013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
1114
1115 PR c++/58080
1116 * c-common.c (pointer_int_sum): Add bool parameter.
1117 * c-common.h (pointer_int_sum): Adjust declaration.
1118
e0aec1e9
GDR
11192013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
1120
1121 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
1122 c_pretty_printer variable.
1123
b066401f
GDR
11242013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1125
1126 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
1127 (pp_base): Remove.
1128 (pp_c_base): Likewise. Adjust users.
1129 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
1130 (pp_c_whitespace): Do not call pp_base.
1131 (pp_c_left_paren): Likewise.
1132 (pp_c_right_paren): Likewise.
1133 (pp_c_left_brace): Likewise.
1134 (pp_c_right_brace): Likewise.
1135 (pp_c_left_bracket): Likewise.
1136 (pp_c_right_bracket): Likewise.
1137 (pp_c_dot): Likewise.
1138 (pp_c_ampersand): Likewise.
1139 (pp_c_star): Likewise.
1140 (pp_c_arrow): Likewise.
1141 (pp_c_semicolon): Likewise.
1142 (pp_c_complement): Likewise.
1143 (pp_c_exclamation): Likewise.
1144 (pp_c_direct_declarator): Likewise.
1145 (pp_c_ws_string): Likewise.
1146 (pp_c_identifier): Likewise.
1147 (pp_c_statement): Likewise.
1148 (print_c_tree): Likewise.
1149
65e5a578
ESR
11502013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
1151
1152 PR c++/58072
1153 * c-common.c (c_parse_error): Catch user-defined literal tokens and
1154 provide useful error strings.
1155
137a1a27
GDR
11562013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1157
1158 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
1159 printer functions instead of pp_string or operators and punctuators.
1160 (dump_generic_ada_node): Likewise.
1161 * c-pretty-print.c (pp_c_type_specifier): Likewise.
1162 (pp_c_relational_expression): Likewise.
1163 (pp_c_logical_or_expression): Likewise.
1164
07838b13
GDR
11652013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1166
1167 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
1168 functions instead of pp_character.
1169 (pp_ada_tree_identifier): Likewise.
1170 (dump_ada_double_name): Likewise.
1171 (dump_ada_function_declaration): Likewise.
1172 (dump_ada_array_domains): Likewise.
1173 (dump_template_types): Likewise.
1174 (dump_generic_ada_node): Likewise.
1175 (print_ada_declaration): Likewise.
1176 (print_ada_struct_decl): Likewise.
1177 * c-pretty-print.c (pp_c_integer_constant): Likewise.
1178
433cc7b0
TT
11792013-07-23 Tom Tromey <tromey@redhat.com>
1180
1181 * c-common.h (enum rid) <RID_GENERIC>: New constant.
1182 * c-common.c (c_common_reswords): Add _Generic.
1183
688010ba
OB
11842013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
1185
1186 * c-common.c: Fix typos.
1187 * c-common.h: Likewise.
1188
2a99e5e6
LL
11892013-07-13 Lubos Lunak <l.lunak@suse.cz>
1190
1191 PR c++/55203
1192 * c-common.c (c_common_attribute_table): Add warn_unused.
1193 (handle_warn_unused_attribute): New.
1194
c26302d5
JJ
11952013-07-10 Jakub Jelinek <jakub@redhat.com>
1196
1197 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
1198 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
1199
dfeadaa0
PC
12002013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
1201
1202 PR c++/57869
1203 * c.opt: Add Wconditionally-supported.
1204
6a2fa4b2
GS
12052013-07-08 Graham Stott <graham.stott@btinternet.com>
1206
1207 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
1208 unused variables l_length and l_node.
1209
ecdbd01a 12102013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
1211
1212 PR c/57821
1213 * c-common.c (complete_array_type): Delay folding first index
1214 like other indices. When folding, check for index overflow.
1215
bedc293e
MG
12162013-06-27 Marc Glisse <marc.glisse@inria.fr>
1217
1218 PR c++/57509
1219 * c-common.h (c_build_vec_perm_expr): New complain argument.
1220 * c-common.c (c_build_vec_perm_expr): Likewise.
1221 Use save_expr also in C++.
1222
604b2bfc
GDR
12232013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1224
1225 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
1226 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1227 * c-opts.c (c_common_post_options): Likewise.
1228
dfeadaa0 12292013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
1230
1231 * array-notation-common.c (length_mismatch_in_expr): Changed the
1232 parameter type's from a dynamic array to a vec_tree. Also removed
1233 the size parameters.
1234 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
1235 the change above.
1236
2ce86d2e
BI
12372013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
1238
1239 * c-common.h (struct cilkplus_an_parts): New structure.
1240 (struct cilkplus_an_loop_parts): Likewise.
1241 (cilkplus_extract_an_triplets): New prototype.
1242 (fix_sec_implicit_args): Likewise.
1243 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
1244 (fix_sec_implicit_args): Likewise.
604b2bfc 1245
07a6825b
BI
12462013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
1247
1248 * array-notation-common.c (find_inv_trees): Removed an unwanted
1249 typecasting.
1250 * c-common.h (struct inv_list::additional_tcodes): Changed type from
1251 enum rid to enum tree_code.
1252
08346abd
JH
12532013-06-11 Jan Hubicka <jh@suse.cz>
1254
1255 * c-common.c (handle_alias_ifunc_attribute): Do not set
1256 DECL_EXTERNAL for weakref variables.
1257 * c-pragma.c (handle_pragma_weak): Make sure aliases
1258 are not declared as external.
1259
d60f1706
BI
12602013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
1261
1262 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
1263 function from c/c-array-notation.c.
1264 (is_cilkplus_reduce_builtin): Likewise.
1265 (find_rank): Likewise.
1266 (extract_array_notation_exprs): Likewise.
1267 (replace_array_notations): Likewise.
1268 (find_inv_trees): Likewise.
1269 (replace_inv_trees): Likewise.
1270 (contains_array_notation_expr): Likewise.
1271 (find_correct_array_notation_type): Likewise.
1272 * c-common.h (struct inv_list): Moved this struct from the file
1273 c/c-array-notation.c and added a new field called additional tcodes.
1274 (length_mismatch_in_expr_p): New prototype.
1275 (is_cilkplus_reduce_builtin): Likewise.
1276 (find_rank): Likewise.
1277 (extract_array_notation_exprs): Likewise.
1278 (replace_array_notation): Likewise.
1279 (find_inv_trees): Likewise.
1280 (replace_inv_trees): Likewise.
1281 (find_correct_array_notation_type): Likewise.
dfeadaa0 1282
36536d79
BI
12832013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
1284
1285 * c-common.c (c_define_builtins): When cilkplus is enabled, the
1286 function array_notation_init_builtins is called.
1287 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
1288 * c-common.def (ARRAY_NOTATION_REF): New tree.
1289 * c-common.h (build_array_notation_expr): New function declaration.
1290 (build_array_notation_ref): Likewise.
1291 (extract_sec_implicit_index_arg): New extern declaration.
1292 (is_sec_implicit_index_fn): Likewise.
1293 (ARRAY_NOTATION_CHECK): New define.
1294 (ARRAY_NOTATION_ARRAY): Likewise.
1295 (ARRAY_NOTATION_START): Likewise.
1296 (ARRAY_NOTATION_LENGTH): Likewise.
1297 (ARRAY_NOTATION_STRIDE): Likewise.
1298 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
1299 ARRAY_NOTATION_REF.
1300 (pp_c_expression): Likewise.
1301 * c.opt (flag_enable_cilkplus): New flag.
1302 * array-notation-common.c: New file.
1303
f7716d57
JJ
13042013-05-14 Jakub Jelinek <jakub@redhat.com>
1305
1306 PR c++/57274
1307 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
1308
a5e0cd1d
MG
13092013-05-10 Marc Glisse <marc.glisse@inria.fr>
1310
1311 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
1312 vectors.
1313
f6bc1c4a
HS
13142013-05-07 Han Shen <shenhan@google.com>
1315
1316 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
1317
3f12f6e9
SKS
13182013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1319
1320 * c-common.c (check_user_alignment): Emit error for negative values.
1321
61949153
PC
13222013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1323
1324 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
1325
e93e18e9
PC
13262013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1327
1328 * c-cppbuiltin.c (c_cpp_builtins): Do not define
1329 __GXX_EXPERIMENTAL_CXX1Y__.
1330
44d90fe1
PC
13312013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1332 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1333
1334 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
1335 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
1336 to simply use OPT_Wpointer_arith.
1337 (c_sizeof_or_alignof_type): Likewise.
1338
13f39b2e
PC
13392013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1340
1341 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
1342
4b84d650
JJ
13432013-04-12 Jakub Jelinek <jakub@redhat.com>
1344
1345 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
1346 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
1347 specifiers.
1348
fb037b5d
SB
13492013-04-07 Steven Bosscher <steven@gcc.gnu.org>
1350
1351 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
1352
4e856798
PC
13532013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
1354
1355 * c-common.c (pointer_int_sum): Remove dead code.
1356
4b1baac8
RS
13572013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
1358
1359 PR middle-end/56524
1360 * c-common.c (handle_optimize_attribute): Don't call
1361 save_optabs_if_changed.
1362
0b50e654
JJ
13632013-03-05 Jakub Jelinek <jakub@redhat.com>
1364
1365 PR middle-end/56461
1366 * c-pch.c (pch_init): Free target_validity at the end.
1367
48c41403
JJ
13682013-03-04 Jakub Jelinek <jakub@redhat.com>
1369
1370 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
1371
e664c61c
KS
13722013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
1373 Jakub Jelinek <jakub@redhat.com>
1374
1375 PR sanitizer/56454
1376 * c-common.c (handle_no_sanitize_address_attribute): New function.
1377 (c_common_attribute_table): Add no_sanitize_address attribute.
1378 (handle_no_address_safety_analysis_attribute): Add
1379 no_sanitize_address attribute, not no_address_safety_analysis
1380 attribute.
1381
a475fd3d 13822013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
1383
1384 PR target/52555
1385 * c-common.c (handle_optimize_attribute): Call
1386 save_optabs_if_changed.
1387
f6007d99
JJ
13882013-02-18 Jakub Jelinek <jakub@redhat.com>
1389 Steven Bosscher <steven@gcc.gnu.org>
1390
1391 PR pch/54117
1392 * c-opts.c (c_common_post_options): If debug info is enabled
1393 and non-dwarf*, refuse to load PCH files and when writing PCH
1394 file warn.
1395
cf35e2b1
JJ
13962013-02-05 Jakub Jelinek <jakub@redhat.com>
1397
1398 PR middle-end/56167
1399 * c-common.c (handle_error_attribute): Fix condition.
1400
32887460
JJ
14012013-01-30 Jakub Jelinek <jakub@redhat.com>
1402
1403 PR c++/55742
1404 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
1405
5af057d8
JM
14062013-01-18 Jason Merrill <jason@redhat.com>
1407
1408 PR target/54908
1409 * c.opt (-fextern-tls-init): New.
1410 * c-opts.c (c_common_post_options): Handle it.
1411
cc83c823
JJ
14122013-01-09 Jakub Jelinek <jakub@redhat.com>
1413
1414 PR c/48418
1415 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
1416 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
1417 and is either negative or bigger or equal to type precision
1418 of the first operand.
1419
a859517f
MP
14202012-12-03 Marek Polacek <polacek@redhat.com>
1421
1422 PR c/55570
1423 * c-common.c (check_user_alignment): Swap order of tests,
1424 check TREE_CODE first.
1425
2d7aa578
ESR
14262012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
1427
1428 PR c++/52654
1429 * c-common.h (overflow_type): New enum.
1430 (build_userdef_literal): Add overflow_type argument.
1431 (tree_userdef_literal): Add overflow_type.
1432 (USERDEF_LITERAL_OVERFLOW): New access macro.
1433 * c-common.c (build_userdef_literal): Add overflow_type
1434 argument.
1435 * c-lex.c (c_lex_with_flags): Add overflow_type to
1436 build_userdef_literal calls.
1437 (interpret_integer, interpret_float): Add overflow_type argument.
1438
cc3c4f62
RB
14392012-11-28 Richard Biener <rguenther@suse.de>
1440
1441 PR c/35634
1442 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1443 here and use a type with proper overflow behavior for types that would
1444 need to be promoted for the arithmetic.
1445
77bc5132
JJ
14462012-11-23 Jakub Jelinek <jakub@redhat.com>
1447
1448 PR sanitizer/55435
1449 * c-common.c (handle_no_address_safety_analysis_attribute): New
1450 function.
1451 (c_common_attribute_table): Add no_address_safety_analysis.
1452
5dc99c46
SB
14532012-11-16 Simon Baldwin <simonb@google.com>
1454
1455 * c.opt: Add f[no-]canonical-system-headers.
1456 * c-opts.c (c_common_handle_option): Handle
1457 OPT_fcanonical_system_headers.
1458
a4a0016d
ESR
14592012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
1460
1461 PR c++/54413
1462 * c-opts.c (c_common_handle_option): Set new flags.
1463 * c.opt: Describe new flags.
1464
7dbb85a7
JM
14652012-11-09 Jason Merrill <jason@redhat.com>
1466
1467 * c.opt (Wabi-tag): New.
1468
ad7bac31
AK
14692012-11-09 Andi Kleen <ak@linux.intel.com>
1470
1471 PR 55139
1472 * c-common.c (get_atomic_generic_size): Mask with
1473 MEMMODEL_MASK
1474
7332899a
MLI
14752012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1476
1477 PR c/53063
1478 * c.opt (Wformat): Make it Alias Wformat=1.
1479 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
1480 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
1481 LangEnabledBy.
1482 (Wformat=): RejectNegative. Use LangEnabledBy.
1483 (Wnonnull): Use LangEnabledBy.
1484 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
1485 * c-format.c (set_Wformat): Delete.
1486 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
1487 (maybe_read_dollar_number): Likewise.
1488 (avoid_dollar_number): Likewise.
1489 (finish_dollar_format_checking): Likewise.
1490 (check_format_info): Likewise.
1491 (check_format_info_main): Likewise.
1492 (check_format_types): Likewise.
1493 (format_type_warning): Likewise.
1494 * c-common.c (int): Likewise.
1495 (check_function_sentinel): Likewise.
1496 * c-common.h (warn_format,set_Wformat): Do not declare here.
1497
34a180a6
MLI
14982012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1499
1500 PR c/53063
1501 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
1502 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
1503 Use LangEnabledBy.
1504 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
1505 common.opt.
1506 (Wvariadic-macros): Init(1).
1507 * c-opts.c (c_common_handle_option): Do not handle them
1508 explicitly.
1509 (c_common_post_options): Likewise.
1510 (sanitize_cpp_opts): warn_unused_macros is now
1511 cpp_warn_unused_macros.
1512 (push_command_line_include): Likewise.
1513 * c-common.c (warn_unknown_pragmas): Do not define.
1514 * c-common.h (warn_unknown_pragmas): Do not declare.
1515
3f46d6a5
MLI
15162012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1517
1518 PR c/51294
1519 * c-common.c (conversion_warning): Handle conditional expressions.
1520
880661a4
JW
15212012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
1522
1523 PR c++/54930
1524 * c.opt (Wreturn_local_addr): Define new option.
1525
4514a96b
JM
15262012-10-25 Jason Merrill <jason@redhat.com>
1527
f14edc1a
JM
1528 * c.opt (Wvirtual-move-assign): New.
1529
4514a96b
JM
1530 * c.opt (Winherited-variadic-ctor): New.
1531
93100c6b
MG
15322012-10-25 Marc Glisse <marc.glisse@inria.fr>
1533
1534 PR c++/54427
1535 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
1536
1efcb8c6
JM
15372012-10-23 Joseph Myers <joseph@codesourcery.com>
1538
1539 * c-common.h (pch_cpp_save_state): Declare.
1540 * c-target.def (c_preinclude): New hook.
1541 * c-opts.c (done_preinclude): New.
1542 (push_command_line_include): Handle default preincluded header.
1543 (cb_file_change): Call pch_cpp_save_state when calling
1544 push_command_line_include.
1545 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
1546 (pch_cpp_save_state): New.
1547 (pch_init): Call pch_cpp_save_state conditionally, instead of
1548 calling cpp_save_state.
1549
4a0ae68e
MLI
15502012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1551
1552 PR c/53063
1553 PR c/40989
1554 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
1555 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
1556 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
1557 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
1558 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
1559 * c-opts.c (c_common_handle_option): Remove explicit handling from
1560 here.
1561 (c_common_post_options): Likewise.
1562
67e4210b
EB
15632012-10-18 Eric Botcazou <ebotcazou@adacore.com>
1564
1565 * c-ada-spec.c (LOCATION_COL): Delete.
1566 (compare_location): New function.
1567 (compare_node): Use it.
1568 (compare_comment): Likewise.
1569
65d4f2cd
MLI
15702012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1571
1572 PR c/53063
1573 PR c/40989
1574 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
1575 * c-opts.c (c_common_handle_option): Do not set them here. Add
1576 comment.
1577 (c_common_post_options): Likewise.
1578
909881cb
EB
15792012-10-16 Eric Botcazou <ebotcazou@adacore.com>
1580
1581 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
1582 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
1583 Remove POINTER_TYPE handling, add large unsigned handling and use
1584 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
1585
3a785c97
JJ
15862012-10-12 Jakub Jelinek <jakub@redhat.com>
1587
1588 PR c/54381
1589 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
1590 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
1591 locs and array of 3 trees instead of just single loc and single
1592 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
1593 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
1594 For *cmp* builtins that take two sources strings report warnings
1595 about first and second source, not about destination and source.
1596
5e54f81d
MG
15972012-10-12 Marc Glisse <marc.glisse@inria.fr>
1598
1599 PR c++/53055
1600 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
1601
f5b02f1e
EB
16022012-10-11 Eric Botcazou <ebotcazou@adacore.com>
1603
1604 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
1605 declaring something coming from another file.
1606
b46dbc6c
AC
16072012-10-10 Arnaud Charlet <charlet@adacore.com>
1608
f5b02f1e 1609 PR ada/54845
b46dbc6c
AC
1610 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
1611
5d9de0d0
PC
16122012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
1613
1614 PR c++/54194
1615 * c-common.c (warn_about_parentheses): Add location_t parameter;
1616 use EXPR_LOC_OR_LOC.
1617 * c-common.h: Update declaration.
1618
a212e43f
MG
16192012-10-09 Marc Glisse <marc.glisse@inria.fr>
1620
1621 PR c++/54427
1622 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
1623 more operations. Make error messages optional.
1624 * c-common.h (enum stv_conv): Moved from c-typeck.c.
1625 (scalar_to_vector): Declare.
1626
b1db7f91
JM
16272012-10-08 Jason Merrill <jason@redhat.com>
1628
1629 * c-common.c (c_common_reswords): Add thread_local.
1630
e28d52cf
DS
16312012-10-08 Dodji Seketeli <dodji@redhat.com>
1632
1633 PR c++/53528 C++11 attribute support
1634 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
1635 new functions.
1636 * c-common.c (check_cxx_fundamental_alignment_constraints): New
1637 static function.
1638 (handle_aligned_attribute): In choose strictest alignment
1639 among many. Use new check_cxx_fundamental_alignment_constraints.
1640 (handle_transparent_union_attribute): In c++11 attribute syntax,
1641 don't look through typedefs.
1642
3b78de56
AC
16432012-10-04 Arnaud Charlet <charlet@adacore.com>
1644
1645 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
1646 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
1647 out of dumpfile.h.
1648
6040bb5f
DC
16492012-09-25 Dehao Chen <dehao@google.com>
1650
1651 PR middle-end/54645
3b78de56 1652 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
1653 map when read in the pch.
1654
0b07a57e
AC
16552012-09-18 Arnaud Charlet <charlet@adacore.com>
1656
1657 * c-ada-spec.c: Style fixes.
1658
da5182be
TQ
16592012-09-18 Thomas Quinot <quinot@adacore.com>
1660
1661 * c.opt (-fada-spec-parent): Define new command line switch.
1662 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
1663 is specified, generate binding spec as a child of the specified unit.
1664
0ccb505d
PC
16652012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
1666 Manuel López-Ibáñez <manu@gcc.gnu.org>
1667
1668 PR c++/53210
1669 * c.opt ([Winit-self]): Enabled by -Wall in C++.
1670
c583af79
AC
16712012-08-23 Arnaud Charlet <charlet@adacore.com>
1672
1673 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
1674 for pointers, and add missing Convention C pragma.
1675 (print_ada_struct_decl): Add missing aliased keyword.
1676 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
1677
1a4049e7
JJ
16782012-08-17 Jakub Jelinek <jakub@redhat.com>
1679
1680 * c-common.c (sizeof_pointer_memaccess_warning): New function.
1681 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
1682 * c-opts.c (c_common_handle_option): Enable it for -Wall.
1683 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
1684 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
1685
70b5e7dc
RG
16862012-08-10 Richard Guenther <rguenther@suse.de>
1687
1688 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
1689
f8923f7e
SB
16902012-08-07 Steven Bosscher <steven@gcc.gnu.org>
1691
1692 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
1693 instead of separate pp_newline and pp_flush.
1694 (print_c_tree): Likewise.
1695
e45abe1f
RH
16962012-07-26 Richard Henderson <rth@redhat.com>
1697
1698 * c-common.c (handle_hot_attribute): Allow labels.
1699 (handle_cold_attribute): Likewise.
1700
332f1d24
JJ
17012012-07-20 Jakub Jelinek <jakub@redhat.com>
1702
1703 PR c++/28656
1704 * c-common.c (check_function_nonnull): Handle multiple nonnull
1705 attributes properly.
1706
7ee2468b
SB
17072012-07-16 Steven Bosscher <steven@gcc.gnu.org>
1708
1709 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
1710 * c-ada-spec.c: Likewise.
1711 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
1712
ee7b28eb
SB
17132012-07-14 Steven Bosscher <steven@gcc.gnu.org>
1714
1715 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
1716 Remove code conditional on it.
1717
6bdf3519
SB
17182012-07-11 Steven Bosscher <steven@gcc.gnu.org>
1719
1720 * c-gimplify.c: Do not include basic-block.h.
1721 * c-common.c: Do not include linfuncs.h.
1722
532aafad
SB
17232012-07-08 Steven Bosscher <steven@gcc.gnu.org>
1724
1725 * c-common.h: Include tree.h.
1726
8d0d1915
JM
17272012-07-02 Jason Merrill <jason@redhat.com>
1728
1729 PR c++/53524
1730 * c-common.c (get_priority): Call default_conversion.
1731
fbc873ad
UB
17322012-07-01 Uros Bizjak <ubizjak@gmail.com>
1733
1734 * c-pch.c (c_common_write_pch): Remove unused variables.
1735
d4a10d0a
SB
17362012-06-29 Steven Bosscher <steven@gcc.gnu.org>
1737
1738 * cppspec.c: Moved from gcc/ to here.
1739
6f3a2e23
KT
17402012-06-27 Kai Tietz <ktietz@redhat.com>
1741
1742 PR preprocessor/37215
1743 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
1744
8ca92d04
SB
17452012-06-21 Steven Bosscher <steven@gcc.gnu.org>
1746
1747 * c-common.h (c_common_print_pch_checksum): Remove.
1748 * c-pch.c: Do not include output.h.
1749 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
1750 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
1751 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
1752 (struct c_pch_header): Remove.
1753 (get_ident): Update gpch version.
1754 (pch_init): Do not print executable_checksum to asm_out_file.
1755 Do not fail if there is no asm_out_file to read back from. Set
1756 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
1757 (c_common_write_pch): Verify that nothing was written to asm_out_file
1758 since pch_init was called. Do not write a c_pch_header, and do not
1759 copy from asm_out_file to the PCH.
1760 (c_common_read_pch): Do not read a c_pch_header, and do not restore
1761 the content of asm_out_file from the PCH.
1762 (c_common_print_pch_checksum): Remove.
1763 * c-opts.c (c_common_init): Print out executable_checksum directly.
1764
70f42967
SB
17652012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1766
1767 * c-target.def (objc_declare_unresolved_class_reference,
1768 objc_declare_class_definition): Add new hooks.
1769
a8781821
SB
17702012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1771
1772 * c-lex.c: Do not include output.h.
1773 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
1774 Remove uses of ASM_OUTPUT_IDENT.
1775
9e1a8dd1
RR
17762012-06-15 Marc Glisse <marc.glisse@inria.fr>
1777
1778 PR c++/51033
1779 * c-common.h (c_build_vec_perm_expr): Move decl here.
1780 * c-common.c (c_build_vec_perm_expr): Move definition
1781 here.
1782
6f07a821
SB
17832012-06-06 Steven Bosscher <steven@gcc.gnu.org>
1784
1785 * c.opt (fconserve-space): Turn into a no-op.
1786
9faeb493 17872012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
1788
1789 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
1790 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
1791 both the start and end of the function.
1792
a4b7d13c
SB
17932012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1794
1795 * c-common.c: Do not include output.h.
1796 * c-pragma.c: Likewise.
1797
c265f413
SA
17982012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1799
1800 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
1801 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
1802 (lang_decl_name): Handle namespace decls.
1803
be7a421e
SB
18042012-05-31 Steven Bosscher <steven@gcc.gnu.org>
1805
1806 * c-ada-spec.c: Do not include output.h.
1807 * c-semantics.c: Likewise.
1808
65de6659
JM
18092012-05-29 Joseph Myers <joseph@codesourcery.com>
1810
1811 * c-common.c: Fix typo.
1812
ca5f4331
MM
18132012-05-29 Michael Matz <matz@suse.de>
1814
1815 * c-common.h (c_expand_decl): Remove prototype.
1816
4f7f7aca
MLI
18172012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1818
1819 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
1820 * c-opts.c (c_common_handle_option): Remove code handling
1821 warn_missing_braces.
1822
4a792f9b
PC
18232012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
1824
1825 PR c++/25137
1826 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
1827 -Wmissing_braces.
1828
650dc14a
DS
18292012-05-22 Dodji Seketeli <dodji@redhat.com>
1830
1831 PR c++/53322
1832 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
1833
9b095bf1
MLI
18342012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
1835
1836 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
1837 * c-opts.c (c_common_handle_option): Do not handle explicitly
1838 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
1839
0b2c4be5
DS
18402012-05-16 Dodji Seketeli <dodji@redhat.com>
1841
1842 PR preprocessor/7263
1843 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
1844 to cpp_classify_number. For diagnostics, use the precise location
1845 instead of the global input_location.
1846
a1bde5af
PC
18472012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1848
d02924ef 1849 PR c++/11856
a1bde5af
PC
1850 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
1851
d1ede5f4
BS
18522012-05-14 Bernd Schmidt <bernds@codesourcery.com>
1853
a1bde5af 1854 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 1855
f2bc201f
MLI
18562012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
1857
1858 PR 53063
1859 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
1860 Wreorder): Use LangEnabledBy.
1861 * c-opts.c (c_common_handle_option): Do not enable them
1862 explicitly. Call lang-specific generated functions.
1863 (c_common_post_options): Do not set them here.
1864
95744782
MLI
18652012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
1866
1867 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
1868 Wmissing-field-initializers,Wmissing-parameter-type,
1869 Wold-style-declaration,Woverride-init): Use EnabledBy.
1870 * c-opts.c (c_common_post_options): Do not set here explicitly.
1871
7d5a5747
MLI
18722012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1873
1874 PR 53063
1875 * c-opts.c (c_common_handle_option): Use handle_generated_option
1876 to enable sub-options.
1877
5a3c9cf2
PC
18782012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
1879
1880 PR c++/53158
1881 * c-common.c (warnings_for_convert_and_check): Use warning_at.
1882
3ac8781c
RG
18832012-05-10 Richard Guenther <rguenther@suse.de>
1884
1885 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
1886 adjust commentary about TYPE_IS_SIZETYPE types.
1887
1e537948
MLI
18882012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1889
1890 PR c++/53261
1891 * c-common.c (warn_logical_operator): Check that argument of
1892 integer_zerop is not NULL.
1893
f2c4a785
MLI
18942012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
1895
1896 PR c/43772
1897 * c-common.c (warn_logical_operator): Do not warn if either side
1898 is already true or false.
1899
50f305ca
MLI
19002012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1901
1902 PR c/51712
1903 * c-common.c (expr_original_type): New.
1904 (shorten_compare): Do not warn for enumeration types.
1905
0c3641b0
MLI
19062012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1907
1908 * c.opt (fpermissive): Add Var(flag_permissive).
1909
7edaa4d2
MG
19102012-04-30 Marc Glisse <marc.glisse@inria.fr>
1911
1912 PR c++/51033
1913 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
1914 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
1915
b9c8da34
DS
19162012-04-30 Dodji Seketeli <dodji@redhat.com>
1917
1918 Add -Wvarargs option
1919 * c.opt (Wvarargs): Define new option.
1920
e6c69da0
MLI
19212012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1922
1923 * c-common.c (check_function_arguments): Replace
1924 Wmissing-format-attribute with Wsuggest-attribute=format.
1925
90137d8f
MLI
19262012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1927
1928 * c.opt (Wsuggest-attribute=format): New. Alias of
1929 Wmissing-format-attribute.
1930 * c-format.c (decode_format_type): Replace
1931 Wmissing-format-attribute with Wsuggest-attribute=format.
1932 (check_function_format): Likewise.
1933
9faeb493 19342012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
1935
1936 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
1937 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
1938 * c.opt: Add Wliteral-suffix.
1939
c1771a20
MLI
19402012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1941
1942 PR c/44774
1943 * c.opt (Wpedantic): New.
1944 (pedantic): Alias Wpedantic.
1945 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
1946 (c_common_post_options): Likewise.
1947 (sanitize_cpp_opts): Likewise.
1948 * c-lex.c (interpret_float): Likewise.
1949 * c-format.c (check_format_types): Likewise.
1950 * c-common.c (pointer_int_sum): Likewise.
1951 (c_sizeof_or_alignof_type): Likewise.
1952 (c_add_case_label): Likewise.
1953 (c_do_switch_warnings): Likewise.
1954 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1955
04b391c1
JM
19562012-04-15 Jason Merrill <jason@redhat.com>
1957
1958 PR c++/52818
1959 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
1960 (C_STD_NAME): Distinguish between C++98 and C++11.
1961
ac868f29
EB
19622012-04-11 Eric Botcazou <ebotcazou@adacore.com>
1963
1964 PR target/52624
1965 * c-common.h (uint16_type_node): Rename into...
1966 (c_uint16_type_node): ...this.
1967 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
1968 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
1969
fd4116f4
MLI
19702012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
1971
1972 * c-common.c (warn_if_unused_value): Move definition to here.
1973 * c-common.h (warn_if_unused_value): Move declaration to here.
1974
573ac65e
WB
19752012-03-23 William Bader <williambader@hotmail.com>
1976
1977 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
1978
552b8185
JM
19792012-03-20 Jason Merrill <jason@redhat.com>
1980
1981 * c-common.h (enum cxx_dialect): Add cxx1y.
1982 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
1983 test.
1984 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1985 * c-opts.c (c_common_post_options): Likewise.
1986 (set_std_cxx1y): New.
1987 (c_common_handle_option): Call it.
1988 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
1989
04398fa8
PC
19902012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
1991
1992 PR c++/14710
1993 * c.opt ([Wuseless-cast]): Add.
1994
d2a12ae7
RG
19952012-03-16 Richard Guenther <rguenther@suse.de>
1996
1997 * c-pretty-print.c (pp_c_initializer_list): Adjust.
1998
a12bf402
MLI
19992012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2000
2001 PR c++/44783
2002 * c.opt (ftemplate-backtrace-limit) Add.
2003
5c30094f
RO
20042012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2005
2006 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
2007 handling.
2008 * c-pragma.c (handle_pragma_extern_prefix): Remove.
2009 (init_pragma): Don't register extern_prefix.
2010
21fa2faf
RG
20112012-03-12 Richard Guenther <rguenther@suse.de>
2012
2013 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
2014 (builtin_type_for_size): Likewise.
2015
e3793c6f
JJ
20162012-02-13 Jakub Jelinek <jakub@redhat.com>
2017
2018 PR c++/52215
2019 * c-common.c (sync_resolve_params): Don't decide whether to convert
2020 or not based on TYPE_SIZE comparison, convert whenever arg_type
2021 is unsigned INTEGER_TYPE.
2022
93286335
PC
20232012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
2024
2025 PR c/52118
2026 * c.opt ([Wunused-local-typedefs]): Fix description.
2027
7a421706
MS
20282012-01-24 Mike Stump <mikestump@comcast.net>
2029
2030 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
2031 exactly.
2032
ba9b1f11
RG
20332012-01-18 Richard Guenther <rguenther@suse.de>
2034
2035 * c-opts.c (c_common_post_options): Reset LTO flags if
2036 we are about to generate a PCH.
2037
465406be
PC
20382012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
2039
2040 PR c++/51777
2041 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
2042 use pp_unsigned_wide_integer.
2043
aee15221
RG
20442012-01-10 Richard Guenther <rguenther@suse.de>
2045
2046 PR middle-end/51806
2047 * c-opts.c (c_common_handle_option): Move -Werror handling
2048 to language independent code.
2049
5720c0dc
RG
20502012-01-05 Richard Guenther <rguenther@suse.de>
2051
2052 PR middle-end/51764
2053 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
2054 from common.opt.
2055
73ac190a
PC
20562011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
2057
2058 PR c++/51316
2059 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
2060 of array types with an unknown bound.
2061
48b0b196
JM
20622011-12-20 Joseph Myers <joseph@codesourcery.com>
2063
2064 * c-common.c (flag_isoc99): Update comment to refer to C11.
2065 (flag_isoc1x): Change to flag_isoc11.
2066 * c-common.h (flag_isoc99): Update comment to refer to C11.
2067 (flag_isoc1x): Change to flag_isoc11.
2068 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
2069 C11.
2070 * c-opts.c (set_std_c1x): Change to set_std_c11.
2071 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
2072 Call set_std_c11.
2073 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
2074 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
2075 * c.opt (std=c1x): Change to std=c11. Document as non-draft
2076 standard.
2077 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
2078 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
2079 (std=gnu1x): Make alias of std=gnu11.
2080
d58d6eb5
JM
20812011-12-19 Jason Merrill <jason@redhat.com>
2082
2083 PR c++/51228
2084 * c-common.c (handle_transparent_union_attribute): Check the first
2085 field if the type is complete.
2086
b3908fcc
JW
20872011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
2088
2089 PR libstdc++/51365
2090 * c-common.c (RID_IS_FINAL): Add.
2091 * c-common.h (RID_IS_FINAL): Add.
2092
fea3ca91
IS
20932011-11-30 Iain Sandoe <iains@gcc.gnu.org>
2094
2095 * c.opt (fgnu-runtime): Provide full description.
2096 (fnext-runtime): Likewise.
2097 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
2098
62bad7cd
AM
20992011-11-28 Andrew MacLeod <amacleod@redhat.com>
2100
2101 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
2102 predefines in one place. Add LOCK_FREE predefines.
2103 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
2104 new func.
2105
c466c4ff
AM
21062011-11-24 Andrew MacLeod <amacleod@redhat.com>
2107
2108 PR c/51256
9faeb493 2109 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 2110 conditions
9faeb493
UB
2111 (resolve_overloaded_atomic_exchange,
2112 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
2113 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
2114 error_mark_node for error conditions.
9faeb493 2115
a5952633
RG
21162011-11-08 Richard Guenther <rguenther@suse.de>
2117
2118 PR middle-end/51010
2119 c-family/
2120
0a35513e
AH
21212011-11-07 Richard Henderson <rth@redhat.com>
2122 Aldy Hernandez <aldyh@redhat.com>
2123 Torvald Riegel <triegel@redhat.com>
2124
2125 Merged from transactional-memory.
2126
2127 * c-common.c (handle_tm_wrap_attribute,
2128 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
2129 (struct c_common_reswords): Added __transaction* keywords.
2130 (struct c_common_attribute_table): Added transaction* and tm_regparm
2131 attributes.
2132 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
2133 masks.
2134 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
2135 find_tm_attribute): Declare.
2136
6d87092d
JM
21372011-11-07 Jason Merrill <jason@redhat.com>
2138
2139 PR c++/35688
2140 * c-common.c, c-common.h: Revert yesterday's changes.
2141
8e7860a1
JM
21422011-11-06 Jason Merrill <jason@redhat.com>
2143
2144 PR c++/35688
2145 * c-common.c (decl_has_visibility_attr): Split out from...
2146 (c_determine_visibility): ...here.
2147 * c-common.h: Declare it.
2148
d19fa6b5
JM
21492011-11-06 Joseph Myers <joseph@codesourcery.com>
2150
2151 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
2152 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
2153 type.
2154 (check_user_alignment): New. Split out of
2155 handle_aligned_attribute. Disallow integer constants with
2156 noninteger types. Conditionally allow zero.
2157 (handle_aligned_attribute): Use check_user_alignment.
2158 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
2159
86951993
AM
21602011-11-06 Andrew MacLeod <amacleod@redhat.com>
2161 Richard Henderson <rth@redhat.com>
2162
2163 Merged from cxx-mem-model.
2164
2165 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 2166 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
2167 parameters that are the same type size.
2168 (get_atomic_generic_size): New. Find size of generic
2169 atomic function parameters and do typechecking.
2170 (add_atomic_size_parameter): New. Insert size into parameter list.
2171 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
2172 either __atomic_exchange_n or external library call.
9faeb493 2173 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 2174 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 2175 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
2176 __atomic_load_n or an external library call.
2177 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
2178 __atomic_store_n or an external library call.
2179 (resolve_overloaded_builtin): Handle new __atomic builtins.
2180
cf9e9959
EB
21812011-11-04 Eric Botcazou <ebotcazou@adacore.com>
2182
2183 PR c++/50608
2184 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
2185 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
2186 <INDIRECT_REF>: Return the argument.
2187 <ARRAY_REF>: Remove special code for negative offset.
2188 Call fold_build_pointer_plus instead of size_binop.
2189 (fold_offsetof): Remove STOP_REF argument and adjust.
2190 * c-common.h (fold_offsetof_1): Declare.
2191 (fold_offsetof): Remove STOP_REF argument.
2192
25339f10
JM
21932011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
2194
2195 PR c++/50810
2196 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2197 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2198 Wnarrowing for C++0x and C++98.
2199 * c.opt ([Wnarrowing]): Update.
2200
89401152
PC
22012011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
2202
2203 PR c++/44277
2204 * c.opt: Add Wzero-as-null-pointer-constant.
2205
97e3ad20
JM
22062011-10-31 Jason Merrill <jason@redhat.com>
2207
15694fdd
JM
2208 * c.opt (-fdeduce-init-list): Off by default.
2209
97e3ad20
JM
2210 PR c++/50920
2211 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
2212 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
2213 and -Wc++11-compat.
2214 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
2215
fb9120e3
RAV
22162011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
2217
2218 PR c++/30066
2219 * c.opt (fvisibility-inlines-hidden): Description change.
2220
3ce4f9e4
ESR
22212011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
2222
2223 Implement C++11 user-defined literals.
2224 * c-common.c (build_userdef_literal): New.
2225 * c-common.def: New tree code.
2226 * c-common.h (tree_userdef_literal): New tree struct and accessors.
2227 * c-lex.c (interpret_float): Add suffix parm.
2228 (c_lex_with_flags): Build literal tokens.
2229
5f53c243
PC
22302011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2231
2232 PR c++/50841
2233 Revert:
2234 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2235
2236 PR c++/50810
2237 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2238 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2239 Wnarrowing for C++0x and C++98.
2240 * c.opt ([Wnarrowing]): Update.
2241
263734e1
PC
22422011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2243
2244 PR c++/50810
2245 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2246 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2247 Wnarrowing for C++0x and C++98.
2248 * c.opt ([Wnarrowing]): Update.
2249
d2e312d7
PC
22502011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
2251
2252 PR c++/45385
2253 * c-common.c (conversion_warning): Remove code looking for
2254 artificial operands.
2255
d17687f6
DS
22562011-10-18 Dodji Seketeli <dodji@redhat.com>
2257
2258 PR bootstrap/50760
2259 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 2260 !NO_IMPLICIT_EXTERN_C.
d17687f6 2261
fc8396e9
PC
22622011-10-17 Michael Spertus <mike_spertus@symantec.com>
2263
2264 * c-common.c (c_common_reswords): Add __bases,
2265 __direct_bases.
2266 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
2267
22682011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
2269
2270 PR c++/50757
2271 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
2272
847e697a
TT
22732011-10-15 Tom Tromey <tromey@redhat.com>
2274 Dodji Seketeli <dodji@redhat.com>
2275
2276 * c.opt (fdebug-cpp): New option.
2277 * c-opts.c (c_common_handle_option): Handle the option.
2278 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
2279 output stream in parameter. Factorized from ...
2280 (maybe_print_line): ... this. Dump location debug information when
2281 -fdebug-cpp is in effect.
2282 (print_line_1): New static function. Takes an output stream in
2283 parameter. Factorized from ...
2284 (print_line): ... here. Dump location information when -fdebug-cpp
2285 is in effect.
2286 (scan_translation_unit): Dump location information when
2287 -fdebug-cpp is in effect.
2288
92582b75
TT
22892011-10-15 Tom Tromey <tromey@redhat.com>
2290 Dodji Seketeli <dodji@redhat.com>
2291
2292 * c.opt (ftrack-macro-expansion): New option. Handle it with and
2293 without argument.
2294 * c-opts.c (c_common_handle_option)<case
2295 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
2296 cases. Handle -ftrack-macro-expansion with and without argument.
2297
46427374
TT
22982011-10-15 Tom Tromey <tromey@redhat.com>
2299 Dodji Seketeli <dodji@redhat.com>
2300
2301 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
2302 (print_line, cb_define, do_line_change): Adjust to avoid touching
2303 the internals of struct line_map. Use the public API instead.
2304 * c-pch.c (c_common_read_pch): Likewise.
2305 * c-lex.c (fe_file_change): Likewise.
2306
fc8396e9
PC
23072011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
2308
2309 PR c++/17212
2310 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
2311
23122011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
2313
2314 PR c++/33067
2315 * c-pretty-print.c (pp_c_floating_constant): Output
2316 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
2317
e79983f4
MM
23182011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2319
2320 * c-common.c (def_builtin_1): Delete old interface with two
2321 parallel arrays to hold standard builtin declarations, and replace
2322 it with a function based interface that can support creating
2323 builtins on the fly in the future. Change all uses, and poison
2324 the old names. Make sure 0 is not a legitimate builtin index.
2325 * c-omp.c (c_finish_omp_barrier): Ditto.
2326 (c_finish_omp_taskwait): Ditto.
2327 (c_finish_omp_flush): Ditto.
2328
6637388f
TG
23292011-10-11 Tristan Gingold <gingold@adacore.com>
2330
2331 * c.opt: (fallow-parameterless-variadic-functions): New.
2332
3797cb21
DS
23332011-09-08 Dodji Seketeli <dodji@redhat.com>
2334
2335 PR c++/33255 - Support -Wunused-local-typedefs warning
2336 * c-common.h (struct c_language_function::local_typedefs): New
2337 field.
9faeb493
UB
2338 (record_locally_defined_typedef, maybe_record_typedef_use)
2339 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 2340 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
2341 (maybe_record_typedef_use)
2342 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
2343 * c.opt: Declare new -Wunused-local-typedefs flag.
2344
693ddb1b
EB
23452011-09-06 Eric Botcazou <ebotcazou@adacore.com>
2346
2347 PR middle-end/50266
2348 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
2349 computations.
2350
830c740f
RG
23512011-09-05 Richard Guenther <rguenther@suse.de>
2352
2353 * c-common.c (complete_array_type): Use ssize_int (-1) instead
2354 of integer_minus_one_node for empty array upper bounds.
2355
892a371f
DS
23562011-08-28 Dodji Seketeli <dodji@redhat.com>
2357
2358 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
2359 it's the first time it's being called on this main TU.
2360
0e3fdb48
RB
23612011-08-24 Richard Guenther <rguenther@suse.de>
2362
2363 PR c/49396
2364 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
2365
23662011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
2367
2368 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
2369 defined in cpp_init_builtins and c_cpp_builtins.
2370
d4a83c10
JM
23712011-08-19 Joseph Myers <joseph@codesourcery.com>
2372
2373 * c-common.c (c_common_reswords): Add __builtin_complex.
2374 * c-common.h (RID_BUILTIN_COMPLEX): New.
2375
bbceee64
JM
23762011-08-18 Joseph Myers <joseph@codesourcery.com>
2377
2378 * c-common.c (c_common_reswords): Add _Noreturn.
2379 (keyword_is_function_specifier): Handle RID_NORETURN.
2380 * c-common.h (RID_NORETURN): New.
2381
0e3a99ae
AS
23822011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2383
2384 * c-common.c (unsafe_conversion_p): New function. Check if it is
2385 unsafe to convert an expression to the type.
2386 (conversion_warning): Adjust, use unsafe_conversion_p.
2387 * c-common.h (unsafe_conversion_p): New function declaration.
2388
20906c66
JJ
23892011-08-02 Jakub Jelinek <jakub@redhat.com>
2390
2391 * c-common.h (c_finish_omp_atomic): Adjust prototype.
2392 (c_finish_omp_taskyield): New prototype.
2393 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
2394 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
2395 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
2396 or RHS1 have side-effects, evaluate those too in the right spot,
2397 if it is a decl and LHS is also a decl, error out if they
2398 aren't the same.
2399 (c_finish_omp_taskyield): New function.
2400 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
2401 * c-pragma.c (omp_pragmas): Add taskyield.
2402 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
2403 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
2404 PRAGMA_OMP_CLAUSE_MERGEABLE.
2405
770e5a2e
DS
24062011-07-25 Dodji Seketeli <dodji@redhat.com>
2407
2408 * c-common.h (set_underlying_type): Remove parm name from
2409 declaration.
2410
1baae426
RG
24112011-07-25 Romain Geissler <romain.geissler@gmail.com>
2412
2413 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 2414
fcb21722
JM
24152011-07-22 Jason Merrill <jason@redhat.com>
2416
76f86d00
JM
2417 PR c++/49793
2418 * c.opt (Wnarrowing): New.
2419
3a636414
JM
2420 PR c++/30112
2421 * c-common.h: Declare c_linkage_bindings.
2422 * c-pragma.c (handle_pragma_redefine_extname): Use it.
2423
fcb21722
JM
2424 PR c++/49813
2425 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
2426 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
2427 as flag_isoc99 for 'restrict'.
2428 (pp_c_specifier_qualifier_list): Likewise for _Complex.
2429
02614448
ILT
24302011-07-21 Ian Lance Taylor <iant@google.com>
2431
2432 PR middle-end/49705
2433 * c-common.c (c_disable_warnings): New static function.
2434 (c_enable_warnings): New static function.
2435 (c_fully_fold_internal): Change local unused_p to bool. Call
2436 c_disable_warnings and c_enable_warnings rather than change
2437 c_inhibit_evaluation_warnings.
2438
34429675
JM
24392011-07-20 Jason Merrill <jason@redhat.com>
2440
2441 PR c++/6709 (DR 743)
2442 PR c++/42603 (DR 950)
2443 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
2444 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
2445 (CPP_DECLTYPE): New.
2446 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
2447
5d49b6a7
RG
24482011-07-19 Richard Guenther <rguenther@suse.de>
2449
2450 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
2451 * c-omp.c (c_finish_omp_for): Likewise.
2452
e84a58ff
EB
24532011-07-12 Eric Botcazou <ebotcazou@adacore.com>
2454
2455 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
2456 body on the next line.
2457
329af3c7
JM
24582011-07-08 Jason Merrill <jason@redhat.com>
2459
4063e61b
JM
2460 PR c++/45437
2461 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
2462
329af3c7
JM
2463 PR c++/49673
2464 * c-common.c (c_apply_type_quals_to_decl): Don't check
2465 TYPE_NEEDS_CONSTRUCTING.
2466
1a072294
RG
24672011-07-06 Richard Guenther <rguenther@suse.de>
2468
2469 * c-common.c (c_common_nodes_and_builtins):
2470 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
2471
fce5dddd
RG
24722011-07-05 Richard Guenther <rguenther@suse.de>
2473
2474 * c-common.c (c_common_nodes_and_builtins): Build all common
2475 tree nodes first.
2476
45d439ac
JJ
24772011-06-27 Jakub Jelinek <jakub@redhat.com>
2478
56300785
JJ
2479 * c-common.h (c_tree_chain_next): New static inline function.
2480
45d439ac
JJ
2481 * c-common.c (check_builtin_function_arguments): Handle
2482 BUILT_IN_ASSUME_ALIGNED.
2483
e0a8ecf2
AM
24842011-06-21 Andrew MacLeod <amacleod@redhat.com>
2485
2486 * c-common.c: Add sync_ or SYNC__ to builtin names.
2487 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
2488
24892011-06-20 Pierre Vittet <piervit@pvittet.com>
2490
2491 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
2492 handler.
2493 (gen_pragma_handler): New union.
2494 (internal_pragma_handler): New type.
2495 (c_register_pragma_with_data)
2496 (c_register_pragma_with_expansion_and_data): New functions.
2497
2498 * c-pragma.c (registered_pragmas, c_register_pragma_1)
2499 (c_register_pragma, c_register_pragma_with_expansion)
2500 (c_invoke_pragma_handler): Changed to work with
2501 internal_pragma_handler.
2502 (c_register_pragma_with_data)
2503 (c_register_pragma_with_expansion_and_data): New functions.
2504
677f3fa8
JM
25052011-06-14 Joseph Myers <joseph@codesourcery.com>
2506
2507 * c-common.c: Include common/common-target.h.
2508 (handle_section_attribute): Use
2509 targetm_common.have_named_sections.
2510 * c-cppbuiltin.c: Include common/common-target.h.
2511 (c_cpp_builtins): Use targetm_common.except_unwind_info.
2512
d7fc8c14
RG
25132011-06-10 Richard Guenther <rguenther@suse.de>
2514
2515 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
2516 to print a IDENTIFIER_NODE.
2517
10e48e39
RO
25182011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2519 Joseph Myers <joseph@codesourcery.com>
2520
2521 * c.opt (fbuilding-libgcc): New option.
2522 * c-cppbuiltin.c (c_cpp_builtins): Define
2523 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
2524
6976ae51
JM
25252011-06-07 Jason Merrill <jason@redhat.com>
2526
3ff60975
JM
2527 * c-common.c (max_tinst_depth): Lower default to 900.
2528
6976ae51
JM
2529 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
2530
009db074
RG
25312011-06-07 Richard Guenther <rguenther@suse.de>
2532
2533 * c-common.c (c_common_nodes_and_builtins): Do not set
2534 size_type_node or call set_sizetype.
2535
b4592b92
DS
25362011-06-07 Dodji Seketeli <dodji@redhat.com>
2537
2538 PR debug/49130
2539 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 2540 type when using pointer comparison to compare types.
b4592b92 2541
014ab419
JW
25422011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
2543
2544 * c.opt: Add -Wdelete-non-virtual-dtor.
2545 * c-opts.c (c_common_handle_option): Include it in -Wall.
2546
4f60111f
NF
25472011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
2548
2549 PR bootstrap/49190
2550
2551 Revert:
2552 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2553
2554 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2555 not tree_common.
2556
4cc4f2f4
JJ
25572011-05-27 Jakub Jelinek <jakub@redhat.com>
2558
2559 PR c++/49165
2560 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
2561 C++ don't call c_common_truthvalue_conversion on void type arms.
2562
38e01f9e
NF
25632011-05-27 Nathan Froyd <froydnj@codesourcery.com>
2564
2565 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
2566 (stmt_list_stack): Define.
2567 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
2568 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
2569
92e948a8
NF
25702011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2571
2572 * c-common.c (warning_candidate_p): Check for BLOCKs.
2573
a2fc3e63
NF
25742011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2575
2576 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2577 not tree_common.
2578
0957c029
JJ
25792011-05-25 Jakub Jelinek <jakub@redhat.com>
2580
2581 * c-common.c (def_fn_type): Remove extra va_end.
2582
828fb3ba
JM
25832011-05-23 Jason Merrill <jason@redhat.com>
2584
2585 PR c++/48106
2586 * c-common.c (c_common_get_narrower): New.
2587 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
2588
dde05067
NF
25892011-05-23 Nathan Froyd <froydnj@codesourcery.com>
2590
2591 * c-common.h (check_function_arguments): Tweak prototype of
2592 check_function_arguments.
2593 * c-common.c (check_function_arguments): Likewise. Adjust
2594 calls to check_function_nonnull, check_function_format, and
2595 check_function_sentinel.
2596 (check_function_sentinel): Take a FUNCTION_TYPE rather than
2597 separate attributes and typelist arguments. Use
2598 FOREACH_FUNCTION_ARGS to iterate over argument types.
2599
3c0d13bf
PC
26002011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
2601
2602 * c-common.c (c_common_reswords): Reorder.
2603 * c-common.h (rid): Likewise.
2604
8242dd04
NF
26052011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2606
2607 * c-common.c (def_fn_type): Don't call build_function_type, call
2608 build_function_type_array or build_varargs_function_type_array
2609 instead.
2610 (c_common_nodes_and_builtins): Likewise.
2611
3d528853
NF
26122011-05-05 Nathan Froyd <froydnj@codesourcery.com>
2613
2614 * c-common.c (c_add_case_label): Omit the loc argument to
2615 build_case_label.
2616 * c-common.h (build_case_label): Remove.
2617 * c-semantics.c (build_case_label): Remove.
2618
a04a722b
JM
26192011-05-05 Joseph Myers <joseph@codesourcery.com>
2620
2621 * c-objc.h (objc_start_method_definition): Update prototype.
2622 * stub-objc.c (objc_start_method_definition): Add extra parameter.
2623
e19a18d4
NF
26242011-05-04 Nathan Froyd <froydnj@codesourcery.com>
2625
2626 * c-common.c (check_main_parameter_types): Reindent. Don't use
2627 TYPE_ARG_TYPES directly.
2628 (handle_nonnull_attribute): Likewise.
2629 (sync_resolve_params): Likewise.
2630 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
2631 to check_format_string.
2632 (handle_format_attribute): Likewise.
2633 (check_format_string): Take a function type to examine instead of
2634 a type list. Use a function_arg_iterator to step through argument
2635 types.
2636
c62c040f
RG
26372011-05-04 Richard Guenther <rguenther@suse.de>
2638
2639 * c-common.c (fix_string_type): Use size_int for index type bounds.
2640 (start_fname_decls): Do not pass NULL to build_int_cst.
2641 (c_init_attributes): Likewise.
2642 * c-lex.c (c_lex_with_flags): Likewise.
2643
c12ff9d8
JM
26442011-04-27 Jason Merrill <jason@redhat.com>
2645
2646 * c-common.c (make_tree_vector_from_list): New.
2647 * c-common.h: Declare it.
2648
304dfbe3
RG
26492011-04-26 Richard Guenther <rguenther@suse.de>
2650
2651 PR preprocessor/48248
2652 * c-ppoutput.c (maybe_print_line): Always optimize newlines
2653 for output size with -P.
2654
3c0d13bf
PC
26552011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
2656
2657 * c-common.c (struct c_common_resword): Add __underlying_type.
2658 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2659
04695783
JM
26602011-04-20 Jim Meyering <meyering@redhat.com>
2661
2662 * c-format.c (init_dollar_format_checking): Remove useless
2663 if-before-free.
2664
0dc33c3c
NP
26652011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
2666
2667 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 2668 (objc_detect_field_duplicates): New.
0dc33c3c 2669 * stub-objc.c: Likewise.
3c0d13bf 2670
c59633d9
NP
26712011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2672
2673 * stub-objc.c (objc_declare_protocols): Renamed to
2674 objc_declare_protocol.
2675 * c-objc.h: Likewise.
3c0d13bf 2676
32dabdaf
NP
26772011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2678
2679 * stub-objc.c (objc_declare_class): Updated argument name.
2680
81f653d6
NF
26812011-04-12 Nathan Froyd <froydnj@codesourcery.com>
2682
2683 * c-common.h (c_common_init_ts): Declare.
2684 * c-common.c (c_common_init_ts): Define.
2685
eb345401
NP
26862011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
2687
2688 * c-objc.h (objc_build_message_expr): Updated prototype.
2689 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 2690
a358e188
MJ
26912011-04-12 Martin Jambor <mjambor@suse.cz>
2692
2693 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
2694 of cgraph_node.
2695
e6313a78
RG
26962011-04-11 Richard Guenther <rguenther@suse.de>
2697
2698 * c-common.c (complete_array_type): Build a range type of
2699 proper type.
2700
dcf0c47e
NF
27012011-04-08 Nathan Froyd <froydnj@codesourcery.com>
2702
2703 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
2704 (handle_type_generic_attribute): Likewise.
2705
1ee44b26
JM
27062011-04-07 Jason Merrill <jason@redhat.com>
2707
2708 PR c++/48450
2709 * c-common.c (c_common_truthvalue_conversion): Don't ignore
2710 conversion from C++0x scoped enum.
2711
acce4e77
JM
27122011-04-06 Joseph Myers <joseph@codesourcery.com>
2713
2714 * c-target-def.h: New file.
2715 * c-target.def: New file.
2716 * c-target.h: New file.
2717 * c-common.c (targetcm): Don't define here.
2718 * c-common.h (default_handle_c_option): Declare.
2719 * c-format.c: Include c-target.h instead of target.h.
2720 * c-opts.c: Include c-target.h instead of target.h. Explicitly
2721 include tm.h.
2722 (default_handle_c_option): Move from targhooks.c.
2723
e2eefb55
JJ
27242011-03-29 Jakub Jelinek <jakub@redhat.com>
2725
2726 PR preprocessor/48248
2727 * c-ppoutput.c (print): Add src_file field.
2728 (init_pp_output): Initialize it.
2729 (maybe_print_line): Don't optimize by adding up to 8 newlines
2730 if map->to_file and print.src_file are different file.
2731 (print_line): Update print.src_file.
2732
ba78087b
KT
27332011-03-25 Kai Tietz <ktietz@redhat.com>
2734
2735 * c-ada-spec.c (compare_comment): Use filename_cmp
2736 instead of strcmp for filename.
2737
0edf1bb2
JL
27382011-03-25 Jeff Law <law@redhat.com>
2739
2740 * c-family/c-common.c (def_fn_type): Add missing va_end.
2741
c7dc8804
JM
27422011-03-25 Jason Merrill <jason@redhat.com>
2743
2744 * c.opt: Add -std=c++03.
2745
d1d879b1
EB
27462011-03-22 Eric Botcazou <ebotcazou@adacore.com>
2747
2748 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
2749
62d784f7
KT
27502011-03-17 Kai Tietz
2751
2752 PR target/12171
5050afdf
KT
2753 * c-pretty-print.c (pp_c_specifier_qualifier_list):
2754 Display allowed attributes for function pointer types.
2755 (pp_c_attributes_display): New function to display
2756 attributes having affects_type_identity flag set to true.
2757 * c-pretty-print.h (pp_c_attributes_display): New prototype.
2758
62d784f7
KT
2759 * c-common.c (c_common_attribute_table):
2760 Add new element.
2761 (c_common_format_attribute_table): Likewise.
2762
82d37118
JM
27632011-03-18 Jason Merrill <jason@redhat.com>
2764
49a000c3
JM
2765 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
2766 * c-common.h: Don't declare it here.
2767 * c-common.c: Or define it here.
2768 * c-opts.c (c_common_handle_option): Or set it here.
2769
82d37118
JM
2770 PR c++/35315
2771 * c-common.c (handle_transparent_union_attribute): Don't
2772 make a duplicate type in C++.
2773
17bc631c
JM
27742011-03-15 Jason Merrill <jason@redhat.com>
2775
2776 * c-common.c (max_constexpr_depth): New.
2777 * c-common.h: Declare it.
2778 * c-opts.c (c_common_handle_option): Set it.
2779 * c.opt (fconstexpr-depth): New option.
2780
1b9b91a6
JM
27812011-03-11 Jason Merrill <jason@redhat.com>
2782
f231b5ff
JM
2783 * c-common.c (attribute_takes_identifier_p): Add missing const.
2784
1b9b91a6
JM
2785 PR c++/46803
2786 * c-common.c (attribute_takes_identifier_p): Assume that an
2787 unknown attribute takes an identifier.
2788
a19e4d44
NF
27892011-03-07 Nathan Froyd <froydnj@codesourcery.com>
2790
2791 PR c/47786
2792 * c-common.c (c_type_hash): Call list_length instead of iterating
2793 through DECL_CHAIN. Rename 'i' to 'n_elements'.
2794
982d62f6
JJ
27952011-02-19 Jakub Jelinek <jakub@redhat.com>
2796
2797 PR c/47809
2798 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
2799
0a256240
NP
28002011-02-17 Iain Sandoe <iains@gcc.gnu.org>
2801
2802 * c.opt (fobjc-abi-version=) New.
2803 (fobjc-nilcheck): New.
2804
ba9e6dd5
NF
28052011-02-03 Nathan Froyd <froydnj@codesourcery.com>
2806
2807 PR c++/46890
2808 * c-common.h (keyword_is_decl_specifier): Declare.
2809 * c-common.c (keyword_is_decl_specifier): Define.
2810 (keyword_is_function_specifier): New function.
2811
7273813a
JJ
28122011-01-26 Jakub Jelinek <jakub@redhat.com>
2813
2814 PR c/47473
2815 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
2816 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
2817 REAL_TYPE.
2818
908ef79b
AC
28192011-01-26 Arnaud Charlet <charlet@adacore.com>
2820
2821 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
2822
237e9384
JJ
28232011-01-26 Jakub Jelinek <jakub@redhat.com>
2824
2825 PR pch/47430
2826 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
2827 after init_c_lex if pch_file is set.
2828
47ea1edf
DK
28292011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
2830
d4dba752 2831 PR c++/43601
47ea1edf
DK
2832 * c.opt (-fkeep-inline-dllexport): New switch.
2833
2aa9c6ae
RG
28342011-01-12 Richard Guenther <rguenther@suse.de>
2835
2836 PR middle-end/32511
2837 * c-common.c (handle_weak_attribute): Warn instead of error
2838 on declaring an inline function weak.
2839
7bd11157
TT
28402011-01-05 Tom Tromey <tromey@redhat.com>
2841
2842 * c-common.h (lvalue_error): Update.
2843 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
2844 not error.
2845
0e66e494 28462010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 2847
b4f588c4
NP
2848 PR objc/47075
2849 * c-objc.h (objc_finish_message_expr): Added argument to
2850 prototype.
2851
f4da8dce
NF
28522010-12-22 Nathan Froyd <froydnj@codesourcery.com>
2853
2854 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
2855 Use prototype_p.
2856
46270f14
NP
28572010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
2858
2859 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 2860 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 2861
4816c593
NF
28622010-12-10 Nathan Froyd <froydnj@codesourcery.com>
2863
2864 * c-common.h (readonly_error): Declare.
2865 * c-common.c (readonly_error): Define.
2866
7a6daeb0
NF
28672010-12-09 Nathan Froyd <froydnj@codesourcery.com>
2868
2869 * c-common.h (invalid_indirection_error): Declare.
2870 * c-common.c (invalid_indirection_error): Define.
2871
892f6119
RG
28722010-12-03 Richard Guenther <rguenther@suse.de>
2873
2874 PR c/46745
2875 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
2876 (pp_c_unary_expression): Likewise.
2877 (pp_c_expression): Likewise.
2878
6c39e757
NP
28792010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
2880
2881 * c-common.h (objc_finish_function): New.
2882 (objc_non_volatilized_type): Removed.
2883 (objc_type_quals_match): Removed.
2884 * stub-objc.c (objc_finish_function): New.
2885 (objc_non_volatilized_type): Removed.
2886 (objc_type_quals_match): Removed.
9faeb493 2887
7c475d11
JM
28882010-11-30 Joseph Myers <joseph@codesourcery.com>
2889
2890 * c-common.h (parse_optimize_options): Declare.
2891 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
2892 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
2893
71f3e391
JM
28942010-11-29 Joseph Myers <joseph@codesourcery.com>
2895
2896 * c-opts.c (check_deps_environment_vars): Use getenv instead of
2897 GET_ENVIRONMENT.
2898 * c-pch.c (O_BINARY): Don't define here.
2899 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
2900
d5fabb58
JM
29012010-11-25 Joseph Myers <joseph@codesourcery.com>
2902
2903 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
2904 targetm.except_unwind_info.
2905
299404a1
JM
29062010-11-23 Joseph Myers <joseph@codesourcery.com>
2907
2908 * c-opts.c (c_common_handle_option): Pass location to
2909 set_struct_debug_option.
2910
c98cd5bf
JM
29112010-11-23 Joseph Myers <joseph@codesourcery.com>
2912
2913 * c-common.c (visibility_options): Move from ../opts.c.
2914 * c-common.h (struct visibility_flags, visibility_options):
2915 Declare here.
2916 * c-opts.c (finish_options): Rename to c_finish_options.
2917 (c_common_init): Update call to finish_options.
2918
a9546771
NP
29192010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
2920
2921 PR objc/34033
2922 * c-lex.c (lex_string): Check that each string in an Objective-C
2923 string concat sequence starts with either one or zero '@', and
2924 that there are no spurious '@' signs at the end.
2925
24a57808
JM
29262010-11-20 Joseph Myers <joseph@codesourcery.com>
2927
2928 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
2929 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
2930 HANDLE_PRAGMA_VISIBILITY.
2931 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
2932 HANDLE_PRAGMA_VISIBILITY): Don't define.
2933 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
2934
a9aa2c3a
NF
29352010-11-20 Nathan Froyd <froydnj@codesourcery.com>
2936
2937 PR c++/16189
2938 PR c++/36888
2939 PR c++/45331
2940 * c-common.h (keyword_begins_type_specifier): Declare.
2941 (keyword_is_storage_class_specifier): Declare.
2942 (keyword_is_type_qualifier): Declare.
2943 * c-common.c (keyword_begins_type_specifier): New function.
2944 (keyword_is_storage_class_specifier): New function.
2945 (keyword_is_type_qualifier): Declare.
2946
5386338c
JM
29472010-11-19 Joseph Myers <joseph@codesourcery.com>
2948
2949 PR c/46547
2950 * c-common.c (in_late_binary_op): Define.
2951 (c_common_truthvalue_conversion): Check in_late_binary_op before
2952 calling c_save_expr.
2953 * c-common.h (in_late_binary_op): Declare.
2954
69ccdddb
JM
29552010-11-19 Joseph Myers <joseph@codesourcery.com>
2956
2957 * c-opts.c (c_common_handle_option): Update calls to
2958 set_struct_debug_option.
2959
6b192a09
NP
29602010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
2961
2962 * c-common.h (objc_declare_protocols): Added additional argument.
2963 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 2964
fb52b50a
NF
29652010-11-18 Nathan Froyd <froydnj@codesourcery.com>
2966
2967 PR c/33193
2968 * c-common.h (build_real_imag_expr): Declare.
2969 * c-semantics.c (build_real_imag_expr): Define.
2970
b37421c6
JM
29712010-11-17 Joseph Myers <joseph@codesourcery.com>
2972
2973 * c-opts.c (c_common_parse_file): Take no arguments.
2974 * c-common.h (c_common_parse_file): Update prototype.
2975
07078664
JJ
29762010-11-16 Jakub Jelinek <jakub@redhat.com>
2977
2978 PR c++/46401
2979 * c-common.c (warning_candidate_p): Don't track non-const calls
2980 or STRING_CSTs.
2981
c6a13190
ILT
29822010-11-15 Ian Lance Taylor <iant@google.com>
2983
2984 * c-lex.c (init_c_lex): Set macro debug callbacks if
2985 flag_dump_go_spec is set.
2986
925e8657
NP
29872010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
2988
2989 * c-common.h (objc_build_incr_expr_for_property_ref): New.
2990 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
2991
bb0a9581
NF
29922010-11-15 Nathan Froyd <froydnj@codesourcery.com>
2993
2994 PR preprocessor/45038
2995 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
2996 dialects.
2997
c5fa0890
JM
29982010-11-12 Joseph Myers <joseph@codesourcery.com>
2999
3000 * c-common.h (c_family_lang_mask): Declare.
3001 * c-opts.c (c_family_lang_mask): Make extern.
3002 * c-pragma.c (handle_pragma_diagnostic): Use
3003 control_warning_option.
3004
a4d8c676
JM
30052010-11-12 Joseph Myers <joseph@codesourcery.com>
3006
3007 * c-common.c (parse_optimize_options): Update call to
3008 decode_options.
3009 * c-common.h (c_common_handle_option): Update prototype.
3010 * c-opts.c (c_common_handle_option): Take location_t parameter and
3011 pass it to other functions.
3012
f954bd2c
JM
30132010-11-11 Joseph Myers <joseph@codesourcery.com>
3014
3015 * c-opts.c (warning_as_error_callback): Remove.
3016 (c_common_initialize_diagnostics): Don't call
3017 register_warning_as_error_callback.
3018 (c_common_handle_option): Handle -Werror=normalized= here.
3019
d8a07487
JM
30202010-11-10 Joseph Myers <joseph@codesourcery.com>
3021
3022 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
3023 in diagnostic.
3024 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
3025 letter.
3026 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
3027 Remove trailing '.' from diagnostics.
3028 * c.opt (Wwrite-strings_: Avoid '`' in help text.
3029
d5478783
JM
30302010-11-10 Joseph Myers <joseph@codesourcery.com>
3031
3032 * c-common.c (parse_optimize_options): Pass global_dc to
3033 decode_options.
3034 * c-opts.c (c_common_handle_option): Pass &global_options to
3035 set_Wstrict_aliasing.
3036 * c.opt (v): Don't mark Common or document here.
3037
91ebb981
IS
30382010-11-06 Iain Sandoe <iains@gcc.gnu.org>
3039
3040 PR target/44981
3041 * c-format.c (format_type): New type gcc_objc_string_format_type.
3042 (valid_stringptr_type_p): New.
3043 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 3044 (check_format_string): Pass expected type, use
91ebb981
IS
3045 valid_stringptr_type_p (), check that the format string types are
3046 consistent with the format specification.
3047 (decode_format_attr): Warn if NSString is used outside objective-c.
3048 (format_types_orig): Add NSString.
3049 (format_name): New.
3050 (format_flags): New.
3051 (check_format_arg): Handle format strings requiring an external parser.
3052 first_target_format_type: New variable.
3053 (handle_format_attribute): Set up first_target_format_type, pass the
3054 expected format arg string type to check_format_string().
3055 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
3056 * stub-objc.c (objc_string_ref_type_p): New.
3057 (objc_check_format_arg): New.
3058
bede2adc
NP
30592010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
3060
9faeb493 3061 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
3062 * c-common.h (objc_build_class_component_ref): New.
3063 * stub-objc.c (objc_build_class_component_ref): New.
3064
9a179d01
NP
30652010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
3066
3067 * c.opt (Wproperty-assign-default): New option.
3068
22d8d616
NP
30692010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
3070
3071 Implemented -fobjc-std=objc1 flag.
3072 * c.opt (fobjc-std=objc1): New option.
3073
2debdb4f
NP
30742010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
3075
3076 Implemented format and noreturn attributes for Objective-C methods.
3077 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
3078 attribute for Objective-C methods.
3079
ec52b111
JM
30802010-10-31 Jason Merrill <jason@redhat.com>
3081
3082 * c-common.c (conversion_warning, warn_for_collisions_1): Use
3083 EXPR_LOC_OR_HERE.
3084
46a88c12
NP
30852010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
3086
3087 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
3088 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
3089 (objc_add_property_declaration): Removed arguments for copies and
3090 ivar.
3091 (objc_build_getter_call): Renamed to
3092 objc_maybe_build_component_ref.
3093 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
3094 (objc_is_property_ref): New.
3095 * c-common.c (c_common_reswords): Removed copies and ivar.
3096 * stub-objc.c (objc_add_property_declaration): Removed arguments
3097 for copies and ivar.
3098 (objc_build_getter_call): Renamed to
3099 objc_maybe_build_component_ref.
3100 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
3101 (objc_is_property_ref): New.
9faeb493 3102
1e4bf85b
AC
31032010-10-29 Arnaud Charlet <charlet@adacore.com>
3104 Matthew Gingell <gingell@adacore.com>
3105
3106 * c-ada-spec.c (separate_class_package): New function.
3107 (pp_ada_tree_identifier): Prefix references to C++ classes with the
3108 name of their enclosing package.
3109 (print_ada_declaration): Use separate_class_package.
3110
81f0bab2
JM
31112010-10-27 Jason Merrill <jason@redhat.com>
3112
2b08f2c5
JM
3113 * c-common.c (c_common_reswords): Add __is_literal_type.
3114 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
3115
81f0bab2
JM
3116 * c-common.c (check_case_value): Remove special C++ code.
3117
200290f2
NP
31182010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
3119
3120 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
3121 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
3122 and RID_LAST_PATTR.
3123 (objc_add_property_declaration): Added additional arguments.
3124 (objc_property_attribute_kind): Removed.
3125 (objc_set_property_attr): Removed.
3126 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
3127 copy and nonatomic.
3128 * stub-objc.c (objc_add_property_declaration): Added additional
3129 arguments.
3130 (objc_set_property_attr): Removed.
9faeb493 3131
f614132b
NP
31322010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
3133
3134 * c-common.h (objc_add_property_variable): Renamed to
3135 objc_add_property_declaration. Added location argument.
3136 * stub-objc.c (objc_add_property_variable): Same change.
3137
b8a18805
NP
31382010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
3139
3140 * c-common.h (objc_maybe_printable_name): New.
3141 * stub-objc.c (objc_maybe_printable_name): New.
3142
30cd1c5d
AS
31432010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3144 Andrew Pinski <pinskia@gmail.com>
3145
3146 * c-common.h (c_common_mark_addressable_vec): Declare.
3147 * c-common.c (c_common_mark_addressable_vec): New function.
3148
249a82c4
NP
31492010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
3150
3151 * c-common.h (objc_set_method_type): Removed.
3152 (objc_add_method_declaration): Added boolean argument.
3153 (objc_start_method_definition): Same change.
3154 (objc_build_method_signature): Same change.
3155 * stub-objc.c (objc_set_method_type): Removed.
3156 (objc_add_method_declaration): Added boolean argument.
3157 (objc_start_method_definition): Same change.
3158 (objc_build_method_signature): Same change.
3159
977e30bc
NP
31602010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
3161
3162 * c-common.h (finish_file): Removed.
3163 (objc_write_global_declarations): New.
3164 * c-opts.c (c_common_parse_file): Do not call finish_file.
3165 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 3166
da57d1b9
NP
31672010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
3168
3169 Implemented parsing @synthesize and @dynamic for
3170 Objective-C/Objective-C++.
3171 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
3172 (objc_add_synthesize_declaration): New.
3173 (objc_add_dynamic_declaration): New.
3174 * c-common.c (c_common_reswords): Add synthesize and dynamic.
3175 * stub-objc.c (objc_add_synthesize_declaration): New.
3176 (objc_add_dynamic_declaration): New.
9faeb493 3177
0069111f
MM
31782010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
3179
3180 PR target/46041
3181 * c-cppbuiltin.c (mode_has_fma): Move function here from
3182 builtins.c. Don't use the fma optab, instead just use the
3183 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
3184 using -save-temps.
3185
e426b47b
NP
31862010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
3187
3188 Merge from 'apple/trunk' branch on FSF servers.
0069111f 3189
e426b47b
NP
3190 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
3191
9faeb493 3192 Radar 4330422
e426b47b
NP
3193 * c-common.h (objc_non_volatilized_type): New declaration
3194 * stub-objc.c (objc_non_volatilized_type): New stub.
3195
90fbfdc3
NP
31962010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
3197
e426b47b 3198 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
3199
3200 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
3201
9faeb493 3202 Radar 4133425
90fbfdc3 3203 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 3204 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 3205
c37d8c30
IS
32062010-10-17 Iain Sandoe <iains@gcc.gnu.org>
3207
3208 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
3209 * c-common.h (enum rid): Add RID_AT_PACKAGE.
3210 (objc_ivar_visibility_kind): New enum.
3211 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 3212 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
3213 visibility enum.
3214
1b1562a5
MM
32152010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3216
3217 * c-cppbuiltin.c (builtin_define_float_constants): Emit
3218 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
3219 has the appropriate fma builtins.
3220 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
3221
668ea4b1
IS
32222010-10-14 Iain Sandoe <iains@gcc.gnu.org>
3223
1b1562a5 3224 merge from FSF apple 'trunk' branch.
668ea4b1 3225 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 3226
668ea4b1
IS
3227 Radars 4436866, 4505126, 4506903, 4517826
3228 * c-common.c (c_common_resword): Define @property and its attributes.
3229 * c-common.h: Define property attribute enum entries.
3230 (OBJC_IS_PATTR_KEYWORD): New.
3231 (objc_property_attribute_kind): New enum.
3232 Declare objc_set_property_attr (), objc_add_property_variable (),
3233 objc_build_getter_call () and objc_build_setter_call ().
3234 * stub-objc.c (objc_set_property_attr): New stub.
3235 (objc_add_property_variable): Likewise.
3236 (objc_build_getter_call): Likewise.
3237 (objc_build_setter_call) Likewise.
1b1562a5 3238
a1178b30
IS
32392010-10-13 Iain Sandoe <iains@gcc.gnu.org>
3240
1b1562a5 3241 merge from FSF apple 'trunk' branch.
a1178b30
IS
3242 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
3243
3244 Radar 3803157 (method attributes)
3245 * c-common.c (handle_deprecated_attribute): Recognize
3246 objc methods as valid declarations.
3247 * c-common.h: Declare objc_method_decl ().
1b1562a5 3248 * stub-objc.c (objc_method_decl): New stub.
a1178b30 3249
a75bfaa6
JM
32502010-10-08 Joseph Myers <joseph@codesourcery.com>
3251
3252 * c-common.c (parse_optimize_options): Call
3253 decode_cmdline_options_to_array_default_mask before
3254 decode_options. Update arguments to decode_options.
3255 * c-common.h (c_common_init_options_struct): Declare.
3256 * c-opts.c (c_common_init_options_struct): New. Split out from
3257 c_common_init_options.
3258
f05b9d93
NP
32592010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
3260
3261 Implemented fast enumeration for Objective-C.
3262 * c-common.h (objc_finish_foreach_loop): New.
3263 * stub-objc.c (objc_finish_foreach_loop): New.
3264
1ebe4b4f
JM
32652010-10-05 Joseph Myers <joseph@codesourcery.com>
3266
3267 * c-common.h (struct diagnostic_context): Don't declare here.
3268 (c_common_initialize_diagnostics): Declare using
3269 diagnostic_context typedef.
3270 * c-opts.c (c_common_handle_option): Pass global_dc to
3271 handle_generated_option.
3272
d4d24ba4
JM
32732010-10-04 Joseph Myers <joseph@codesourcery.com>
3274
3275 * c-opts.c (c_common_handle_option): Pass &global_options_set to
3276 handle_generated_option.
3277
478a1c5b
ILT
32782010-10-03 Ian Lance Taylor <iant@google.com>
3279
3280 * c.opt (-fplan9-extensions): New option.
3281
82a1c2fe
FXC
32822010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3283
3284 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
3285 Remove.
3286 (c_cpp_builtins): Call functions from cppbuiltin.c instead
3287 of duplicating code.
3288
92902b1b
IS
32892010-09-30 Iain Sandoe <iains@gcc.gnu.org>
3290
3291 * c-common.c: Add two new entries for @optional
3292 and @required keywords.
3293
3294 merge from FSF 'apple/trunk' branch.
3295 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
3296
3297 Radar 4386773
3298 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
3299 objective-c keywords.
3300 (objc_set_method_opt): New declaration.
3301 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 3302
46625112
JM
33032010-09-30 Joseph Myers <joseph@codesourcery.com>
3304
3305 * c-common.c (handle_optimize_attribute): Pass &global_options to
3306 cl_optimization_save and cl_optimization_restore.
3307 * c-opts.c (c_common_handle_option): Pass &global_options to
3308 handle_generated_option.
3309 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
3310 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
3311 &global_options to cl_optimization_restore.
3312
49b91f05
NP
33132010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
3314
3315 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
3316 Objective-C/Objective-C++ keywords.
3317
13ed556f 33182010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 3319
9faeb493
UB
3320 Merge from 'apple/trunk' branch on FSF servers.
3321
a6341d57
NP
3322 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
3323
3324 Radar 4281748
3325 * c-common.h (objc_check_global_decl): New declaration.
3326 * stub-objc.c (objc_check_global_decl): New stub.
3327
f0036cca
JM
33282010-09-29 Joseph Myers <joseph@codesourcery.com>
3329
3330 * c.opt: Don't use VarExists.
3331
e3339d0f
JM
33322010-09-29 Joseph Myers <joseph@codesourcery.com>
3333
3334 * c-common.c (c_cpp_error): Update names of diagnostic_context
3335 members.
3336 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
3337 cl_optimization members.
3338 * c-opts.c (warning_as_error_callback, c_common_handle_option,
3339 sanitize_cpp_opts, finish_options): Update names of cpp_options
3340 members.
3341
1973201f
NP
33422010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
3343
3344 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
3345 (objc_is_reserved_word): Removed.
3346 * c-common.c: Updated comments.
3347 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
3348 objc_is_reserved_word.
3349 * stub-objc.c (objc_is_reserved_word): Removed.
3350
f7e71da5
IS
33512010-09-28 Iain Sandoe <iains@gcc.gnu.org>
3352
9faeb493 3353 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
3354 include attributes.
3355 (objc_start_method_definition): Likewise.
3356 (objc_build_keyword_decl): Likewise.
3357 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
3358 (objc_start_method_definition): Likewise.
3359 (objc_build_keyword_decl): Likewise.
3360
c165dca7
IS
33612010-09-28 Iain Sandoe <iains@gcc.gnu.org>
3362
3363 * c-common.h (objc_start_class_interface): Adjust prototype.
3364 (objc_start_category_interface): Likewise.
3365 (objc_start_protocol): Likewise.
3366 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
3367 (objc_start_class_interface): Likewise.
3368 (objc_start_category_interface): Likewise.
3369
7458026b
ILT
33702010-09-27 Ian Lance Taylor <iant@google.com>
3371
3372 * c-common.c (c_common_attribute_table): Add no_split_stack.
3373 (handle_no_split_stack_attribute): New static function.
3374
b581b85b
NP
33752010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
3376
9faeb493 3377 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
3378
3379 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
3380
9faeb493 3381 Radar 4229905
b581b85b
NP
3382 * c-common.h (objc_have_common_type): New declaration.
3383 * stub-objc.c (objc_have_common_type): New stub.
3384
3385 2005-06-22 Ziemowit Laski <zlaski@apple.com>
3386
3387 Radar 4154928
3388 * c-common.h (objc_common_type): New prototype.
9faeb493 3389 * stub-objc.c (objc_common_type): New stub.
b581b85b 3390
46a4da10
JH
33912010-09-24 Jan Hubicka <jh@suse.cz>
3392
3393 * c-common.c (handle_leaf_attribute): New function.
3394 (struct attribute_spec c_common_att): Add leaf.
3395
e200444e
JM
33962010-09-22 Joseph Myers <joseph@codesourcery.com>
3397
3398 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
3399 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
3400 -dump, -dump=, -imacros, -imacros=, -include, -include=,
3401 -include-barrier, -include-directory, -include-directory=,
3402 -include-directory-after, -include-directory-after=,
3403 -include-prefix, -include-prefix=, -include-with-prefix,
3404 -include-with-prefix=, -include-with-prefix-after,
3405 -include-with-prefix-after=, -include-with-prefix-before,
3406 -include-with-prefix-before=, -no-integrated-cpp,
3407 -no-line-commands, -no-standard-includes, -no-warnings, -output,
3408 -output=, -pedantic, -pedantic-errors, -preprocess,
3409 -print-missing-file-dependencies, -trace-includes, -traditional,
3410 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
3411 -user-dependencies, -verbose, -write-dependencies,
3412 -write-user-dependencies, no-integrated-cpp, traditional): New.
3413
29a80ea6
NP
34142010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
3415
3416 PR objc/23710
ac1fc2fc
NP
3417 * c-common.h (objc_start_method_definition): Return bool instead
3418 of void.
3419 * stub-objc.c (objc_start_method_definition): Return bool instead
3420 of void.
3421
34222010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
3423
3424 PR objc/25965
3425 * c-common.h (objc_get_interface_ivars): New declaration.
3426 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 3427
de621752
ILT
34282010-09-15 Ian Lance Taylor <iant@google.com>
3429
3430 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 3431 messages. Remove period at end of warning message.
de621752 3432
ba885ec5
NS
34332010-09-09 Nathan Sidwell <nathan@codesourcery.com>
3434
3435 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
3436 (handle_alias_attribute): ... here.
3437 (handle_ifunc_attribute): New.
3438
c5ee1358
MM
34392010-09-06 Mark Mitchell <mark@codesourcery.com>
3440
3441 * c-common.h (do_warn_double_promotion): Declare.
3442 * c-common.c (do_warn_double_promotion): Define.
3443
0a0b3574
MM
34442010-09-05 Mark Mitchell <mark@codesourcery.com>
3445
3446 * c.opt (Wdouble-promotion): New.
3447
d1779886
JM
34482010-09-02 Joseph Myers <joseph@codesourcery.com>
3449
3450 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
3451 fvtable-thunks, fxref): Mark no longer supported in help text.
3452
2d2bd949
JM
34532010-09-02 Joseph Myers <joseph@codesourcery.com>
3454
3455 * c.opt (Wimport, fall-virtual, falt-external-templates,
3456 fdefault-inline, fenum-int-equiv, fexternal-templates,
3457 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
3458 fname-mangling-version-, fnew-abi, fnonnull-objects,
3459 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
3460 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
3461 applicable.
3462 (fhandle-exceptions): Mark with Alias and Warn.
3463 * c-opts.c (c_common_handle_option): Don't handle options marked
3464 as ignored.
3465
5de8299c
JM
34662010-09-02 Joseph Myers <joseph@codesourcery.com>
3467
3468 * c.opt (Wcomments, Werror-implicit-function-declaration,
3469 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
3470 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
3471 aliases.
3472 * c-common.c (option_codes): Use OPT_Wcomment instead of
3473 OPT_Wcomments.
3474 * c-opts.c (warning_as_error_callback, c_common_handle_option):
3475 Don't handle options marked as aliases.
3476
0ceb0201
RG
34772010-08-25 Richard Guenther <rguenther@suse.de>
3478
3479 * c-common.c (c_common_get_alias_set): Remove special
3480 handling for pointers.
3481
ac47786e
NF
34822010-08-20 Nathan Froyd <froydnj@codesourcery.com>
3483
3484 * c-common.c: Use FOR_EACH_VEC_ELT.
3485 * c-gimplify.c: Likewise.
3486 * c-pragma.c: Likewise.
3487
c878765b
JM
34882010-08-16 Joseph Myers <joseph@codesourcery.com>
3489
3490 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
3491 RejectDriver.
3492 (MMDX): Change back to MMD. Mark NoDriverArg instead of
3493 RejectDriver.
3494 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
3495 instead of OPT_MDX and OPT_MMDX.
3496
603349bf
JM
34972010-08-16 Joseph Myers <joseph@codesourcery.com>
3498
3499 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
3500
644fa7ac
JM
35012010-08-12 Joseph Myers <joseph@codesourcery.com>
3502
3503 * c.opt (MD, MMD): Change to MDX and MMDX.
3504 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
3505
481e1176
JM
35062010-08-11 Joseph Myers <joseph@codesourcery.com>
3507
3508 * c-opts.c (c_common_handle_option): Call handle_generated_option
3509 instead of handle_option.
3510
ac8dc9f7
NF
35112010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3512
3513 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
3514 (maybe_apply_renaming_pragma): Delete unneeded declarations.
3515
4f8c876d
NF
35162010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3517
3518 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
3519 (pending_redefine_extname): Change type to a VEC.
3520 (add_to_renaming_pragma_list): Update for new type of
3521 pending_redefine_extname.
ac8dc9f7 3522 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 3523
3b0c690e
AC
35242010-08-04 Arnaud Charlet <charlet@adacore.com>
3525
3526 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
3527 visited.
3528 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
3529 decide whether a type has already been declared/seen.
3530 Do not go to the original type.
3531 (dump_nested_types): New parameter forward.
3532 Generate forward declaration if needed and mark type as visited.
3533 (print_ada_declaration): Call dump_nested_types if not already done.
3534 Mark types as visited.
3535
1890bccc
JM
35362010-08-03 Joseph Myers <joseph@codesourcery.com>
3537
3538 * c.opt (-print-pch-checksum): Remove option.
3539 * c-opts.c (c_common_handle_option): Don't handle
3540 OPT_print_pch_checksum.
3541
5f20c657
JM
35422010-07-27 Joseph Myers <joseph@codesourcery.com>
3543
3544 * c-common.h (c_common_handle_option): Update prototype and return
3545 value type.
3546 * c-opts.c (c_common_handle_option): Update prototype and return
3547 value type. Update calls to handle_option and
3548 enable_warning_as_error.
3549
f551f80c
JJ
35502010-07-27 Jakub Jelinek <jakub@redhat.com>
3551
3552 PR c/45079
3553 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
3554
61ff2bdc
JM
35552010-07-27 Joseph Myers <joseph@codesourcery.com>
3556
3557 * c-common.h (c_common_missing_argument): Remove.
3558 * c-opts.c (c_common_missing_argument): Remove.
3559 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
3560 idirafter, imacros, include, isysroot, isystem, iquote): Add
3561 MissingArgError.
3562 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
3563
7a9bf9a4
JM
35642010-07-27 Joseph Myers <joseph@codesourcery.com>
3565
3566 * c-common.h (c_common_option_lang_mask,
3567 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
3568 New.
3569 (c_common_init_options): Update prototype.
3570 * c-opts.c (c_common_option_lang_mask): New.
3571 (c_common_initialize_diagnostics): Split out of
3572 c_common_init_options.
3573 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
3574 New.
3575 (c_common_init_options): Update prototype. Use decoded options in
3576 search for -lang-asm.
3577
910ad8de
NF
35782010-07-15 Nathan Froyd <froydnj@codesourcery.com>
3579
3580 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
3581 * c-format.c: Likewise.
3582
718f9c0f
MLI
35832010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
3584
3585 * c-common.h: Include diagnostic-core.h. Error if already
3586 included.
3587 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
3588
4d451982
MLI
35892010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3590
3591 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
3592 Do not include expr.h
3593 (vector_mode_valid_p): Move here.
3594
119fe915
SB
35952010-06-21 DJ Delorie <dj@redhat.com>
3596
3597 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
3598 allow these pragmas anywhere.
3599
36002010-06-14 Jakub Jelinek <jakub@redhat.com>
3601
3602 PR bootstrap/44509
3603 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
3604 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
3605 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
3606 ggc_strdup instead of xstrdup.
3607
36082010-06-10 Jakub Jelinek <jakub@redhat.com>
3609
3610 * c-cppbuiltin.c: Include cpp-id-data.h.
3611 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
3612 (lazy_hex_fp_value): New function.
3613 (builtin_define_with_hex_fp_value): Provide definitions lazily.
3614
6662d794
MLI
36152010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3616
3617 * c-gimplify.c: Do not include tree-flow.h
3618
38f8b050
JR
36192010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
3620
3621 PR other/44034
3622 * c-common.c: Rename targetm member:
3623 targetm.enum_va_list -> targetm.enum_va_list_p
3624
9589f23e
AS
36252010-06-28 Anatoly Sokolov <aesok@post.ru>
3626
3627 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
3628
3b06d379
SB
36292010-06-28 Steven Bosscher <steven@gcc.gnu.org>
3630
3631 * c-cppbuiltin.c: Do not include except.h.
3632
d166d4c3
AK
36332010-06-24 Andi Kleen <ak@linux.intel.com>
3634
9faeb493
UB
3635 * c-common.c (warn_for_omitted_condop): New.
3636 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 3637
70cb8be6
JM
36382010-06-21 Joseph Myers <joseph@codesourcery.com>
3639
3640 * c.opt (lang-objc): Remove.
3641 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
3642
a4c97feb
JR
36432010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
3644
3645 * c-opts.c: Include "tm_p.h".
3646
6e2f1956
JM
36472010-06-20 Joseph Myers <joseph@codesourcery.com>
3648
3649 * c-common.c (parse_optimize_options): Update call to
3650 decode_options.
3651
bc87224e
NF
36522010-06-18 Nathan Froyd <froydnj@codesourcery.com>
3653
3654 * c-common.c (record_types_used_by_current_var_decl): Adjust for
3655 new type of types_used_by_cur_var_decl.
3656
b49cf425
JR
36572010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
3658
3659 PR bootstrap/44512
3660 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
3661 for C++ standard compliance.
3662
59f9c2ed
JM
36632010-06-16 Jason Merrill <jason@redhat.com>
3664
3665 * c.opt: Add -Wnoexcept.
3666
33766b66
RG
36672010-06-16 Richard Guenther <rguenther@suse.de>
3668
3669 PR c/44555
3670 * c-common.c (c_common_truthvalue_conversion): Remove
3671 premature and wrong optimization concering ADDR_EXPRs.
3672
eff7e30c
AC
36732010-06-15 Arnaud Charlet <charlet@adacore.com>
3674
3675 * c-ada-spec.c (dump_sloc): Remove column info.
3676 (is_simple_enum): New function.
3677 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
3678 enum types when relevant.
3679
6312e84d
MLI
36802010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3681
9faeb493 3682 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
3683 location.
3684
1cb42611
JM
36852010-06-10 Joseph Myers <joseph@codesourcery.com>
3686
3687 * c-opts.c (c_common_handle_option): Don't handle
3688 OPT_fshow_column.
3689
a9429e29
LB
36902010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3691
3692 * c-pragma.c (push_alignment): Use typed GC allocation.
3693 (handle_pragma_push_options): Likewise.
3694
3695 * c-common.c (parse_optimize_options): Likewise.
3696
3697 * c-common.h (struct sorted_fields_type): Add variable_size GTY
3698 option.
3699
5498f011
JM
37002010-06-07 Joseph Myers <joseph@codesourcery.com>
3701
3702 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
3703 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3704 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3705 flag_signed_bitfields, warn_strict_null_sentinel,
3706 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
3707 flag_gen_declaration, flag_no_gnu_keywords,
3708 flag_implement_inlines, flag_implicit_templates,
3709 flag_implicit_inline_templates, flag_optional_diags,
3710 flag_elide_constructors, flag_default_inline, flag_rtti,
3711 flag_conserve_space, flag_access_control, flag_check_new,
3712 flag_new_for_scope, flag_weak, flag_working_directory,
3713 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
3714 flag_enforce_eh_specs, flag_threadsafe_statics,
3715 flag_pretty_templates): Remove.
3716 * c-common.h (flag_preprocess_only, flag_nil_receivers,
3717 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
3718 flag_replace_objc_classes, flag_undef, flag_no_builtin,
3719 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3720 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3721 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
3722 flag_no_gnu_keywords, flag_implement_inlines,
3723 flag_implicit_templates, flag_implicit_inline_templates,
3724 flag_optional_diags, flag_elide_constructors, flag_default_inline,
3725 flag_rtti, flag_conserve_space, flag_access_control,
3726 flag_check_new, flag_new_for_scope, flag_weak,
3727 flag_working_directory, flag_use_cxa_atexit,
3728 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
3729 flag_threadsafe_statics, flag_pretty_templates,
3730 warn_strict_null_sentinel): Remove.
3731 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
3732 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
3733 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
3734 fimplicit-inline-templates, fimplicit-templates,
3735 flax-vector-conversions, fms-extensions, fnil-receivers,
3736 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
3737 frtti, fshort-double, fshort-enums, fshort-wchar,
3738 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
3739 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
3740 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
3741 gen-decls, undef): Use Var.
3742 (fdefault-inline, foptional-diags): Document as doing nothing.
3743 * c-opts.c (c_common_handle_option): Remove cases for options now
3744 using Var. Mark ignored options as such.
3745
39dabefd
SB
37462010-06-05 Steven Bosscher <steven@gcc.gnu.org>
3747
9faeb493 3748 * c-common.c: Moved to here from parent directory.
39dabefd
SB
3749 * c-common.def: Likewise.
3750 * c-common.h: Likewise.
3751 * c-cppbuiltin.c: Likewise.
3752 * c-dump.c: Likewise.
3753 * c-format.c: Likewise.
3754 * c-format.h : Likewise.
3755 * c-gimplify.c: Likewise.
3756 * c-lex.c: Likewise.
3757 * c-omp.c: Likewise.
3758 * c.opt: Likewise.
3759 * c-opts.c: Likewise.
3760 * c-pch.c: Likewise.
3761 * c-ppoutput.c: Likewise.
3762 * c-pragma.c: Likewise.
3763 * c-pragma.h: Likewise.
3764 * c-pretty-print.c: Likewise.
3765 * c-pretty-print.h: Likewise.
3766 * c-semantics.c: Likewise.
3767 * stub-objc.c: Likewise.
3768
3769 * c-common.c: Include gt-c-family-c-common.h.
3770 * c-pragma.c: Include gt-c-family-c-pragma.h.
3771\f
23a5b65a 3772Copyright (C) 2010-2014 Free Software Foundation, Inc.
39dabefd
SB
3773
3774Copying and distribution of this file, with or without modification,
3775are permitted in any medium without royalty provided the copyright
3776notice and this notice are preserved.
This page took 1.309957 seconds and 5 git commands to generate.