]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
Daily bump.
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
00a7ba58
JJ
12014-07-03 Jakub Jelinek <jakub@redhat.com>
2
3 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
4 comments->count <= 1, as comments->entries might be NULL.
5
52ec0ea3
MP
62014-07-01 Marek Polacek <polacek@redhat.com>
7
8 * c.opt (Wint-conversion): New option.
9
d5c3d343
MP
102014-07-01 Marek Polacek <polacek@redhat.com>
11
12 PR c/58286
13 * c.opt (Wincompatible-pointer-types): New option.
14
6e7ceb17
PC
152014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
16
17 PR c++/51400
18 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
19 Do not discard TYPE_QUALS of type.
20
da73100b
JM
212014-06-26 Jason Merrill <jason@redhat.com>
22
23 * c-common.h (enum cxx_dialect): Add cxx1z.
24 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
25 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
26
08eedf75
TJ
272014-06-26 Teresa Johnson <tejohnson@google.com>
28
29 * c-common.h (get_dump_info): Declare.
30 * c-gimplify.c (c_genericize): Use saved dump files.
31 * c-opts.c (c_common_parse_file): Begin and end dumps
32 once around parsing invocation.
33 (get_dump_info): New function.
34
7b56b2f8
MP
352014-06-23 Marek Polacek <polacek@redhat.com>
36 Andrew MacLeod <amacleod@redhat.com>
37
38 PR c/61553
39 * c-common.c (get_atomic_generic_size): Don't segfault if the
40 type doesn't have a size.
41
0e37a2f3
MP
422014-06-20 Marek Polacek <polacek@redhat.com>
43
44 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
45 (ubsan_walk_array_refs_r): New function.
46 (c_genericize): Instrument array bounds.
47 * c-ubsan.c: Include "internal-fn.h".
48 (ubsan_instrument_division): Mark instrumented arrays as having
49 side effects. Adjust ubsan_type_descriptor call.
50 (ubsan_instrument_shift): Likewise.
51 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
52 (ubsan_instrument_bounds): New function.
53 (ubsan_array_ref_instrumented_p): New function.
54 (ubsan_maybe_instrument_array_ref): New function.
55 * c-ubsan.h (ubsan_instrument_bounds): Declare.
56 (ubsan_array_ref_instrumented_p): Declare.
57 (ubsan_maybe_instrument_array_ref): Declare.
58
592014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
60
61 PR lto/61123
62 * c.opt (fshort-enums): Add to LTO.
63 * c.opt (fshort-wchar): Likewise.
64
5c3d09f7
MP
652014-06-16 Marek Polacek <polacek@redhat.com>
66
67 PR c/60439
68 * c.opt (Wswitch-bool): Add Var.
69
9cf32741
JJ
702014-06-12 Jakub Jelinek <jakub@redhat.com>
71
72 PR middle-end/61486
73 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
74 #pragma omp target teams or
75 #pragma omp {,target }teams distribute simd.
76
62984918
JM
772014-06-12 Jason Merrill <jason@redhat.com>
78
79 * c.opt (Wabi=, fabi-compat-version): New.
80 * c-opts.c (c_common_handle_option): Handle -Wabi=.
81 (c_common_post_options): Handle flag_abi_compat_version default.
82 Disallow -fabi-compat-version=1.
83 * c-common.h (abi_version_crosses): New.
84
f961457f
JH
852014-06-11 Jan Hubicka <hubicka@ucw.cz>
86
87 * c-family/c-common.c (handle_section_attribute): Update handling for
88 section names that are no longer trees.
89
92d28cbb
JJ
902014-06-10 Jakub Jelinek <jakub@redhat.com>
91
92 PR fortran/60928
93 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
94 (omp_pragmas): ... back here.
95
742938c9
MP
962014-06-05 Marek Polacek <polacek@redhat.com>
97
98 PR c/49706
99 * c-common.c (warn_logical_not_parentheses): New function.
100 * c-common.h (warn_logical_not_parentheses): Declare.
101 * c.opt (Wlogical-not-parentheses): New option.
102
9d548dfb
MP
1032014-06-04 Marek Polacek <polacek@redhat.com>
104
105 PR c/30020
106 * c-common.c (check_case_bounds): Add location parameter.
107 Use it.
108 (c_add_case_label): Pass loc to check_case_bounds.
109
fedfecef
MP
1102014-06-03 Marek Polacek <polacek@redhat.com>
111
112 PR c/60439
113 * c.opt (Wswitch-bool): New option.
114
f6a7cffc
TS
1152014-05-22 Thomas Schwinge <thomas@codesourcery.com>
116
040d18b6
TS
117 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
118 Remove prototypes.
119 (record_types_used_by_current_var_decl): Move prototype to where
120 it belongs.
121
f6a7cffc
TS
122 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
123 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
124 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
125
632f2871
RS
1262014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
127
128 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
129 * c-common.c (c_common_nodes_and_builtins): Don't initialize
130 void_zero_node.
131 * c-pretty-print.c (pp_c_void_constant): New function.
132 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
133 (c_pretty_printer::expression): Handle VOID_CST.
134 * cilk.c (extract_free_variables): Likewise.
135 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
136 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
137
766090c2
TS
1382014-05-17 Trevor Saunders <tsaunders@mozilla.com>
139
140 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
141 * c-pragma.c (push_alignment): Adjust.
142 (handle_pragma_push_options): Likewise.
143
661a0813
MP
1442014-05-09 Marek Polacek <polacek@redhat.com>
145
146 PR c/50459
147 * c-common.c (check_user_alignment): Return -1 if alignment is error
148 node.
149 (handle_aligned_attribute): Don't call default_conversion on
150 FUNCTION_DECLs.
151 (handle_vector_size_attribute): Likewise.
152 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
153 (handle_sentinel_attribute): Call default_conversion and allow even
154 integral types as an argument.
155
2793eeab
MP
1562014-05-08 Marek Polacek <polacek@redhat.com>
157
158 PR c/61053
159 * c-common.c (min_align_of_type): New function factored out from...
160 (c_sizeof_or_alignof_type): ...here.
161 * c-common.h (min_align_of_type): Declare.
162
f827930a
MP
1632014-05-08 Marek Polacek <polacek@redhat.com>
164
165 PR c/61077
166 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
167 parameter type of main.
168
ca49b74e
DD
1692014-05-07 DJ Delorie <dj@redhat.com>
170
171 * c-cppbuiltin.c (print_bits_of_hex): New.
172 (builtin_define_type_minmax): Print values using hex so as not to
173 require a pre-computed list of string values.
174
1d60af08
KZ
1752014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
176 Mike Stump <mikestump@comcast.net>
177 Richard Sandiford <rdsandiford@googlemail.com>
178
179 * c-ada-spec.c: Include wide-int.h.
180 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
181 (dump_generic_ada_node): Use wide-int interfaces.
182 * c-common.c: Include wide-int-print.h.
183 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
184 (pointer_int_sum): Use wide-int interfaces.
185 (c_common_nodes_and_builtins): Use make_int_cst.
186 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
187 (handle_alloc_size_attribute): Use wide-int interfaces.
188 (get_nonnull_operand): Likewise.
189 * c-format.c (get_constant): Use tree_fits_uhwi_p.
190 * c-lex.c: Include wide-int.h.
191 (narrowest_unsigned_type): Take a widest_int rather than two
192 HOST_WIDE_INTs.
193 (narrowest_signed_type): Likewise.
194 (interpret_integer): Update accordingly. Use wide-int interfaces.
195 (lex_charconst): Use wide-int interfaces.
196 * c-pretty-print.c: Include wide-int.h.
197 (pp_c_integer_constant): Use wide-int interfaces.
198 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
199 INT_CST_LT_UNSIGNED.
200
b15458be
RB
2012014-05-06 Richard Biener <rguenther@suse.de>
202
203 * c-opts.c (c_common_post_options): For -freestanding,
204 -fno-hosted and -fno-builtin disable pattern recognition
205 if not enabled explicitely.
206
6577374e
MP
2072014-05-02 Marek Polacek <polacek@redhat.com>
208
209 * c.opt (Wsizeof-pointer-memaccess): Describe option.
210
d00887e8
MP
2112014-05-01 Marek Polacek <polacek@redhat.com>
212
213 PR c/43245
214 * c.opt (Wdiscarded-qualifiers): Add.
215
f8ed5150
MP
2162014-04-30 Marek Polacek <polacek@redhat.com>
217
218 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
219 INT_MIN / -1 sanitization only for integer types.
220
45484dcf
MP
2212014-04-25 Marek Polacek <polacek@redhat.com>
222
223 PR c/18079
224 * c-common.c (handle_noinline_attribute): Warn if the attribute
225 conflicts with always_inline attribute.
226 (handle_always_inline_attribute): Warn if the attribute conflicts
227 with noinline attribute.
228
38e514c0
MP
2292014-04-25 Marek Polacek <polacek@redhat.com>
230
231 PR c/60156
232 * c-common.c (check_main_parameter_types): Warn about variadic main.
233
44875f92
MS
2342014-04-24 Mike Stump <mikestump@comcast.net>
235
236 * c.opt (Wshadow-ivar): Default to on.
237
dcaaa5a0
DP
2382014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
239
240 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
241
c07d7c02
MP
2422014-04-23 Marek Polacek <polacek@redhat.com>
243
244 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
245
1c33c9b7
JJ
2462014-04-22 Jakub Jelinek <jakub@redhat.com>
247
248 PR sanitizer/60275
249 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
250 if flag_sanitize_undefined_trap_on_error.
251 (ubsan_instrument_division, ubsan_instrument_shift,
252 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
253 if !flag_sanitize_recover.
254
793c625f
MG
2552014-04-22 Marc Glisse <marc.glisse@inria.fr>
256
257 PR libstdc++/43622
258 * c-common.c (registered_builtin_types): Make non-static.
259 * c-common.h (registered_builtin_types): Declare.
260
b0f1bf36
RB
2612014-04-14 Richard Biener <rguenther@suse.de>
262 Marc Glisse <marc.glisse@inria.fr>
263
264 PR c/60819
265 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
266 apply may-alias the scalar pointer type when applicable.
267
3b07fa4a
IZ
2682014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
269
270 PR middle-end/60467
271 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
272 as possible argument for Cilk_spawn.
273
cbbd2b1c
TB
2742014-04-11 Tobias Burnus <burnus@net-b.de>
275
276 PR c/60194
277 * c.opt (Wformat-signedness): Add
278 * c-format.c(check_format_types): Use it.
279
6415bd5d
JM
2802014-04-11 Jason Merrill <jason@redhat.com>
281
282 PR c++/57926
283 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
284 default_conversion for an array argument.
285
6525783a
MP
2862014-04-08 Marek Polacek <polacek@redhat.com>
287
288 PR sanitizer/60745
289 * c-ubsan.c: Include asan.h.
290 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
291
880a467b
NS
2922014-04-03 Nathan Sidwell <nathan@codesourcery.com>
293
294 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
295
7b59ff2d
MP
2962014-04-02 Marek Polacek <polacek@redhat.com>
297
298 * c-common.h (c_expand_expr): Remove declaration.
299
8edbfaa6
JJ
3002014-03-28 Jakub Jelinek <jakub@redhat.com>
301
302 PR c++/60689
303 * c-common.c (add_atomic_size_parameter): When creating new
304 params vector, push the size argument first.
305
07d72e1d
JJ
3062014-03-26 Jakub Jelinek <jakub@redhat.com>
307
308 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
309 ubsan_instrument_vla, ubsan_instrument_return): Adjust
310 ubsan_create_data callers.
311
b35e0fa0
JJ
3122014-03-22 Jakub Jelinek <jakub@redhat.com>
313
314 PR debug/60603
315 * c-opts.c (c_finish_options): Restore cb_file_change call to
316 <built-in>.
317
39a1ebb3
JJ
3182014-03-13 Jakub Jelinek <jakub@redhat.com>
319
320 PR middle-end/36282
321 * c-pragma.c (apply_pragma_weak): Only look at
322 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
323 DECL_ASSEMBLER_NAME_SET_P (decl).
324 (maybe_apply_pending_pragma_weaks): Exit early if
325 vec_safe_is_empty (pending_weaks) rather than only when
326 !pending_weaks.
327 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
328 set assembler name back to NULL afterwards.
329
a07f6ed2
JM
3302014-03-11 Jason Merrill <jason@redhat.com>
331
332 * c.opt: Add -std=gnu++14.
333
75b107f5
IB
3342014-03-11 Ian Bolton <ian.bolton@arm.com>
335
336 * c-opts.c (c_common_post_options): Don't override
337 -ffp-contract=fast if unsafe-math-optimizations is on.
338
f42c637e
PM
3392014-03-08 Paulo Matos <paulo@matos-sorge.com>
340
341 * c.opt: Enable LTO FE for fshort-double.
342
70e24808
JM
3432014-03-07 Jason Merrill <jason@redhat.com>
344
345 * c.opt: Add -std=c++14.
346
3af9c5e9
MP
3472014-03-06 Marek Polacek <polacek@redhat.com>
348
349 PR c/60197
350 * cilk.c (contains_cilk_spawn_stmt): New function.
351 (contains_cilk_spawn_stmt_walker): Likewise.
352 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
353 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
354
b3bdf019
JJ
3552014-03-03 Jakub Jelinek <jakub@redhat.com>
356
357 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
358 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
359 even when flag_preprocess_only.
360
ca7e759d
JM
3612014-02-26 Jason Merrill <jason@redhat.com>
362
363 PR c++/59231
364 PR c++/11586
365 * c-common.c (shorten_compare): Don't check
366 c_inhibit_evaluation_warnings.
367
28e41874
JJ
3682014-02-19 Jakub Jelinek <jakub@redhat.com>
369
cca615af
JJ
370 PR c/37743
371 * c-common.c (c_common_nodes_and_builtins): When initializing
372 c_uint{16,32,64}_type_node, also set corresponding
373 uint{16,32,64}_type_node to the same value.
374
28e41874
JJ
375 PR c++/60267
376 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
377 for PRAGMA_IVDEP if flag_preprocess_only.
378
c2bf53a1
JJ
3792014-02-12 Jakub Jelinek <jakub@redhat.com>
380
381 PR c/60101
382 * c-common.c (merge_tlist): If copy is true, call new_tlist,
383 if false, add ADD itself, rather than vice versa.
384 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
385 copy. For SAVE_EXPR, only call merge_tlist once.
386
8fcbce72
JJ
3872014-02-08 Jakub Jelinek <jakub@redhat.com>
388
389 PR middle-end/60092
390 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
391 and tree_to_uhwi.
392 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
393 functions.
394 (c_common_attribute_table): Add alloc_align and assume_aligned
395 attributes.
396
0a756a3f
MP
3972014-02-06 Marek Polacek <polacek@redhat.com>
398
399 PR c/60087
400 * c-common.c (warn_for_sign_compare): Call warning_at with location
401 instead of warning.
402
7ec4847a
MP
4032014-02-05 Marek Polacek <polacek@redhat.com>
404
405 PR c/53123
406 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
407 statement.
408
66f20604
MP
4092014-02-04 Marek Polacek <polacek@redhat.com>
410
411 PR c/60036
412 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
413 SAVE_EXPR.
414
5d77fb19
MG
4152014-02-03 Marc Glisse <marc.glisse@inria.fr>
416
417 PR c++/53017
418 PR c++/59211
419 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
420 handle_vector_size_attribute, handle_nonnull_attribute): Call
421 default_conversion on the attribute argument.
422 (handle_nonnull_attribute): Increment the argument number.
423
81e5eca8
MP
4242014-01-31 Marek Polacek <polacek@redhat.com>
425
426 PR c/59963
427 * c-common.c (add_atomic_size_parameter): Pass vNULL to
428 build_function_call_vec.
429 (resolve_overloaded_builtin): Likewise.
430 * c-common.h (build_function_call_vec): Adjust declaration.
431
68fca595
MP
4322014-01-30 Marek Polacek <polacek@redhat.com>
433
434 PR c/59940
435 * c-common.h (unsafe_conversion_p): Adjust declaration.
436 (warnings_for_convert_and_check): Likewise.
437 (convert_and_check): Likewise.
438 * c-common.c (unsafe_conversion_p): Add location parameter. Call
439 expansion_point_location_if_in_system_header on it.
440 (warnings_for_convert_and_check): Add location parameter. Call
441 expansion_point_location_if_in_system_header on it. Use it.
442 (convert_and_check): Add location parameter. Use it.
443 (conversion_warning): Likewise.
444 (c_add_case_label): Adjust convert_and_check calls.
445 (scalar_to_vector): Adjust unsafe_conversion_p calls.
446
b72271b9
BI
4472014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
448
449 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
450 flag_cilkplus.
451 * c-pragma.c (init_pragma): Likewise.
452 * c.opt: Likewise.
453
393e8e8b
MP
4542014-01-23 Marek Polacek <polacek@redhat.com>
455
456 PR c/59846
457 * c-common.c (shorten_compare): Add location_t parameter.
458 * c-common.h (shorten_binary_op): Adjust declaration.
459
f04dda30
MP
4602014-01-23 Marek Polacek <polacek@redhat.com>
461
462 PR c/58346
463 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
464 * c-common.h: Declare it.
465
621955cb
EB
4662014-01-20 Eric Botcazou <ebotcazou@adacore.com>
467
468 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
469 * c-ada-spec.c (dump_ads): Likewise.
470 (cpp_check): Likewise.
471 (dump_ada_specs): Likewise.
472
4732014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
474
475 PR c++/49718
476 * c-common.c (handle_no_instrument_function_attribute): Allow
477 no_instrument_function attribute in class member
478 definition/declaration.
479
241f845a
JJ
4802014-01-15 Jakub Jelinek <jakub@redhat.com>
481
482 PR c/58943
483 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
484 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
485 being COMPOUND_EXPR.
486 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
487 operand a SAVE_EXPR and second MODIFY_EXPR.
488
e83b8e2e
JJ
4892014-01-09 Jakub Jelinek <jakub@redhat.com>
490
491 PR target/58115
492 * c-pch.c (c_common_write_pch): Call
493 prepare_target_option_nodes_for_pch.
494
23a5b65a
RS
4952014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
496
497 Update copyright years
498
f9030485
RS
4992014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
500
501 * array-notation-common.c, c-cilkplus.c: Use the standard form for
502 the copyright notice.
503
f2aa696b
EB
5042013-12-28 Eric Botcazou <ebotcazou@adacore.com>
505
506 * c-ada-spec.c (print_constructor): New function.
507 (print_destructor): Retrieve the origin of the destructor.
508 (print_ada_declaration): Revamp handling of constructors/destructors.
509
1f26ac87
JM
5102013-12-23 Stuart Hastings <stuart@apple.com>
511 Bill Maddox <maddox@google.com>
512 Jason Merrill <jason@redhat.com>
513
514 * c.opt: Add -fdeclone-ctor-dtor.
515 * c-opts.c (c_common_post_options): Default to on iff -Os.
516
41958c28
BI
5172013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
518
519 * c-common.c (c_common_attribute_table): Added "cilk simd function"
520 attribute.
521 * c-pragma.h (enum pragma_cilk_clause): Remove.
522 (enum pragma_omp_clause): Added the following fields:
523 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
524 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
525 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
526 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
527 PRAGMA_CILK_CLAUSE_UNIFORM.
528
529
12893402
BI
5302013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
531
532 * cilk.c (cilk_outline): Made this function non-static.
533 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
534 (create_cilk_wrapper): Added a new parameter: a function pointer.
535 (c_install_body_w_frame_cleanup): Remove
536 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
537 * c-common.h (cilk_outline): New prototype.
538 (gimplify_cilk_spawn): Removed two parameters.
539 (cilk_install_body_with_frame_cleanup): New prototype.
540 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
541 CILK_SPAWN_STMT case.
542
085b42ed
BS
5432013-12-11 Bernd Schmidt <bernds@codesourcery.com>
544
2ce064c3
BS
545 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
546
085b42ed
BS
547 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
548 (int_array_type_node): Remove.
549 * c-common.c (c_common_nodes_and_builtins): Don't build it.
550
9e36c9ed
MP
5512013-12-05 Marek Polacek <polacek@redhat.com>
552
553 PR c/52023
554 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
555 [ADJUST_FIELD_ALIGN].
556
296674db
JM
5572013-12-04 Joseph Myers <joseph@codesourcery.com>
558
559 PR c/52023
560 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
561 and check field alignment if set.
562 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
563 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
564
31e071ae
MP
5652013-12-04 Jakub Jelinek <jakub@redhat.com>
566 Marek Polacek <polacek@redhat.com>
567
568 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
569 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
570
d7947e19
L
5712013-11-29 H.J. Lu <hongjiu.lu@intel.com>
572
573 PR c/59309
574 * cilk.c (gimplify_cilk_spawn): Properly handle function without
575 arguments.
576
fad7652e
JJ
5772013-11-29 Jakub Jelinek <jakub@redhat.com>
578
579 PR c/59280
580 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
581 goto invalid. If it is error_mark_node, don't issue further
582 diagnostics.
583
8b5e1202
SO
5842013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
585
586 * c.opt (Wopenmp-simd): New.
587
0a508bb6
JJ
5882013-11-22 Jakub Jelinek <jakub@redhat.com>
589
590 * c-ubsan.h (ubsan_instrument_return): New prototype.
591 * c-ubsan.c (ubsan_instrument_return): New function.
592
2fb9a547
AM
5932013-11-22 Andrew MacLeod <amacleod@redhat.com>
594
595 * c-common.c: Add required include files from gimple.h.
596 * c-gimplify.c: Likewise
597 * cilk.c: Likewise
598
8400e75e
DM
5992013-11-22 David Malcolm <dmalcolm@redhat.com>
600
601 * c-common.c (unsafe_conversion_p): Remove use of
602 EXPR_LOC_OR_HERE macro.
603 (conversion_warning): Likewise.
604 (warnings_for_convert_and_check): Likewise.
605 (warn_for_collisions_1): Likewise.
606 (shorten_compare): Likewise, and remove use of in_system_header
607 macro, using the location from the former.
608 * c-lex.c (dump_one_header): Remove use of input_filename macro.
609 (cb_def_pragma): Remove use of in_system_header macro.
610 (lex_string): Likewise.
611 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
612
eb1ce453
KZ
6132013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
614 Mike Stump <mikestump@comcast.net>
615 Richard Sandiford <rdsandiford@googlemail.com>
616
617 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
618 instead of TREE_INT_CST_LOW, in cases where there is a protecting
619 tree_fits_shwi_p or tree_fits_uhwi_p.
620 (dump_generic_ada_node): Likewise.
621 * c-format.c (check_format_arg): Likewise.
622 * c-pretty-print.c (pp_c_integer_constant): Likewise.
623
6b3b8c27
KZ
6242013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
625
626 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
627
49b0aa18
JC
6282013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
629
630 PR c/53001
631 * c-common.c (unsafe_conversion_p): Make this function
632 return an enumeration with more detail.
633 (conversion_warning): Use the new return type of
634 unsafe_conversion_p to separately warn either about conversions
635 that lower floating point number precision or about the other
636 kinds of conversions.
637 * c-common.h (enum conversion_safety): New enumeration.
638 (unsafe_conversion_p): switching return type to
639 conversion_safety enumeration.
640 * c.opt: Adding new warning -Wfloat-conversion and
641 enabling it with -Wconversion.
642
b826515a
BS
6432013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
644
645 * c-opts.c: Include plugin.h.
646 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
647
b9a55b13
MP
6482013-11-19 Marek Polacek <polacek@redhat.com>
649
650 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
651 call.
652 (ubsan_instrument_shift): Likewise.
653 (ubsan_instrument_vla): Likewise.
654
7d362f6c
RS
6552013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
656
657 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
658 cast to unsigned type.
659
386b1f1f
RS
6602013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
661
662 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
663 tree_low_cst.
664 (complete_array_type): Update comment to refer to tree_to_[su]hwi
665 rather than tree_low_cst.
666
ae7e9ddd
RS
6672013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
668
669 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
670 tree_to_uhwi throughout.
671
9439e9a1
RS
6722013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
673
674 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
675 tree_low_cst (..., 0) with tree_to_shwi throughout.
676
cc269bb6
RS
6772013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
678
679 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
680 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
681
9541ffee
RS
6822013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
683
684 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
685 host_integerp (..., 0) with tree_fits_shwi_p throughout.
686
c02065fc
AH
6872013-11-15 Aldy Hernandez <aldyh@redhat.com>
688
689 * c-cilkplus.c: New file.
690 * c-common.c (readonly_error): Add location argument.
691 * c-common.h (readonly_error): Same.
692 (c_finish_cilk_clauses): Protoize.
693 (c_check_cilk_loop): Same.
694 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
695 Do not fail on error_mark_node.
696 Abstract increment canonicalization to here...
697 (c_omp_for_incr_canonicalize_ptr): New.
698 c-pragma.c (init_pragma): Register "simd" pragma.
699 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
700 (enum pragma_cilk_clause): New.
701
9cc65f15
RS
7022013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
703
704 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
705 wchar_type and host_integerp checks.
706
18f429e2
AM
7072013-11-14 Andrew MacLeod <amacleod@redhat.com>
708
709 * c-common.c: Likewise.
710 * c-gimplify.c: Likewise.
711 * cilk.c: Likewise.
712
d8a2d370
DN
7132013-11-14 Diego Novillo <dnovillo@google.com>
714
715 * c-common.c: Include fold-const.h.
716 Include stor-layout.h.
717 Include calls.h.
718 Include stringpool.h.
719 Include attribs.h.
720 Include varasm.h.
721 Include trans-mem.h.
722 * c-cppbuiltin.c: Include stor-layout.h.
723 Include stringpool.h.
724 * c-format.c: Include stringpool.h.
725 * c-lex.c: Include stringpool.h.
726 Include stor-layout.h.
727 * c-pragma.c: Include stringpool.h.
728 Include attribs.h.
729 Include varasm.h.
730 Include gcc-symtab.h.
731 * c-pretty-print.c: Include stor-layout.h.
732 Include attribs.h.
733 * cilk.c: Include stringpool.h.
734 Include calls.h.
735
38b7bc7f
JM
7362013-11-13 Joseph Myers <joseph@codesourcery.com>
737
738 * c-common.h (enum rid): Add RID_AUTO_TYPE.
739 * c-common.c (c_common_reswords): Add __auto_type.
740 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
741
45b0be94
AM
7422013-11-12 Andrew MacLeod <amacleod@redhat.com>
743
18f429e2
AM
744 * c-common.c: Include gimplify.h.
745 * c-gimplify.c: Likewise.
746 * cilk.c: Likewise.
747 * c-omp.c: Include gimple-expr.h instead of gimple.h.
748 * c-ubsan.c: Don't include gimple.h.
45b0be94 749
582d9b50
JM
7502013-11-12 Joseph Myers <joseph@codesourcery.com>
751
752 * c-common.c (c_common_reswords): Add _Thread_local.
753
6b28e197
JM
7542013-11-09 Joseph Myers <joseph@codesourcery.com>
755
756 * c-common.c (atomic_size_supported_p): New function.
757 (resolve_overloaded_atomic_exchange)
758 (resolve_overloaded_atomic_compare_exchange)
759 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
760 Use it instead of comparing size with a local list of sizes.
761
267bac10
JM
7622013-11-07 Andrew MacLeod <amacleod@redhat.com>
763 Joseph Myers <joseph@codesourcery.com>
764
765 * c-common.h (enum rid): Add RID_ATOMIC.
766 * c-common.c (c_common_reswords): Add _Atomic.
767 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
768 (keyword_is_type_qualifier): Accept RID_ATOMIC.
769 * c-format.c (check_format_types): Check for extra _Atomic
770 qualifiers in format argument.
771 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
772 (pp_c_type_qualifier_list): Mention _Atomic in comment.
773
5157b91e
TB
7742013-11-06 Tobias Burnus <burnus@net-b.de>
775
776 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
777
6dbe0958
JM
7782013-11-06 Joseph Myers <joseph@codesourcery.com>
779
780 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
781 standards modes.
782 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
783 to mean lack of IEEE 754 support.
784
e8ff5196
TB
7852013-11-05 Tobias Burnus <burnus@net-b.de>
786
787 * c.opt (-Wdate-time): New option
788 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
789
254a0760
JM
7902013-11-05 Joseph Myers <joseph@codesourcery.com>
791
792 * c-cppbuiltin.c (cpp_iec_559_value): Test
793 flag_excess_precision_cmdline not flag_excess_precision.
794
6d7f7e0a
TB
7952013-11-05 Tobias Burnus <burnus@net-b.de>
796
797 * c.opt (fopenmp-simd): New option.
798 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
799 (omp_pragmas): ... this new struct.
800 (c_pp_lookup_pragma): Also walk omp_pragmas.
801 (init_pragma): Init pragmas for -fopenmp-simd.
802
55a7f02f
MP
8032013-11-04 Marek Polacek <polacek@redhat.com>
804
805 PR c++/58979
806 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
807
9193fb05
JM
8082013-11-04 Joseph Myers <joseph@codesourcery.com>
809
810 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
811 New functions.
812 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
813
94159ecf
EB
8142013-11-04 Eric Botcazou <ebotcazou@adacore.com>
815
816 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
817 (dump_ada_specs): Adjust prototype of second callback.
818 * c-ada-spec.c (cpp_check): New global variable.
819 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
820 (print_generic_ada_decl): Likewise.
821 (has_static_fields): Change return type to bool and add guard.
822 (has_nontrivial_methods): New predicate.
823 (is_tagged_type): Change return type to bool.
824 (separate_class_package): Call has_nontrivial_methods.
825 (pp_ada_tree_identifier): Minor tweaks.
826 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
827 (dump_ada_array_domains): Likewise.
828 (dump_ada_array_type): Likewise.
829 (dump_template_types): Remove cpp_check parameter and do not pass it to
830 dump_generic_ada_node.
831 (dump_ada_template): Likewise.
832 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
833 recursively.
834 (print_ada_methods): Change return type to integer. Remove cpp_check
835 parameter and do not pass it down.
836 (dump_nested_types): Remove cpp_check parameter and do not pass it to
837 dump_generic_ada_node.
838 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
839 accessing methods.
840 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
841 down. Use has_nontrivial_methods to recognize C++ classes. Use return
842 value of print_ada_methods.
843 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
844 Set cpp_check to it before invoking dump_ada_nodes.
845 (dump_ada_specs): Likewise.
846
b906f4ca
MP
8472013-11-03 Marek Polacek <polacek@redhat.com>
848
849 * c-ubsan.c: Don't include hash-table.h.
850 (ubsan_instrument_vla): New function.
851 * c-ubsan.h: Declare it.
852
5e20cdc9
DM
8532013-10-31 David Malcolm <dmalcolm@redhat.com>
854
855 Automated part of renaming of symtab_node_base to symtab_node.
856
857 Patch autogenerated by rename_symtab.py from
858 https://github.com/davidmalcolm/gcc-refactoring-scripts
859 revision 58bb219cc090b2f4516a9297d868c245495ee622
860
861 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
862 symtab_node_base to symtab_node.
863
7057e645
ESR
8642013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
865
866 Implement C++14 digit separators.
867 * c-lex.c (interpret_float): Remove digit separators from scratch string
868 before building real literal.
869
193ea7bc
JJ
8702013-10-30 Jakub Jelinek <jakub@redhat.com>
871
872 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
873
939b37da
BI
8742013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
875
876 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
877 fields.
878 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
879 enabled.
880 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
881 (insert_cilk_frame): New prototype.
882 (cilk_init_builtins): Likewise.
883 (gimplify_cilk_spawn): Likewise.
884 (c_cilk_install_body_w_frame_cleanup): Likewise.
885 (cilk_detect_spawn_and_unwrap): Likewise.
886 (cilk_set_spawn_marker): Likewise.
887 (build_cilk_sync): Likewise.
888 (build_cilk_spawn): Likewise.
889 * cilk.c: New file.
890
67348ccc
DM
8912013-10-29 David Malcolm <dmalcolm@redhat.com>
892
893 Patch autogenerated by refactor_symtab.py from
894 https://github.com/davidmalcolm/gcc-refactoring-scripts
895 revision 58bb219cc090b2f4516a9297d868c245495ee622
896
897 * c-gimplify.c (c_genericize): Update for conversion of symtab types
898 to a true class hierarchy.
899 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
900
d570872d
RS
9012013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
902
903 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
904
98906124
JL
9052013-10-26 Jeff Law <law@redhat.com>
906
907 * c-family/c-common.c (c_define_builtins): Remove mudflap support.
908 * c-family/c.opt: Ignore and warn for mudflap options.
909
d73749df 9102013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
911
912 PR other/33426
913 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
914 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
915
3f04b1bb
JM
9162013-10-23 Jason Merrill <jason@redhat.com>
917
918 * c-format.c (gcc_cxxdiag_char_table): Add %X.
919
acf0174b
JJ
9202013-10-11 Jakub Jelinek <jakub@redhat.com>
921
acd15a28
JJ
922 * c-common.h (omp_clause_mask::operator !=): New method.
923 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
924 instead of if (mask & something) tests everywhere.
925
acf0174b
JJ
926 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
927 201307 instead of 201107.
928 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
929 (c_common_attribute_table): Add "omp declare target" and
930 "omp declare simd" attributes.
931 (handle_omp_declare_target_attribute,
932 handle_omp_declare_simd_attribute): New functions.
933 * c-omp.c: Include c-pragma.h.
934 (c_finish_omp_taskgroup): New function.
935 (c_finish_omp_atomic): Add swapped argument, if true,
936 build the operation first with rhs, lhs arguments and use NOP_EXPR
937 build_modify_expr.
938 (c_finish_omp_for): Add code argument, pass it down to make_code.
939 (c_omp_split_clauses): New function.
940 (c_split_parallel_clauses): Removed.
941 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
942 c_omp_declare_simd_clauses_to_decls): New functions.
943 * c-common.h (omp_clause_mask): New type.
944 (OMP_CLAUSE_MASK_1): Define.
945 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
946 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
947 omp_clause_mask::operator |, omp_clause_mask::operator &,
948 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
949 omp_clause_mask::operator ==): New methods.
950 (enum c_omp_clause_split): New.
951 (c_finish_omp_taskgroup): New prototype.
952 (c_finish_omp_atomic): Add swapped argument.
953 (c_finish_omp_for): Add code argument.
954 (c_omp_split_clauses): New prototype.
955 (c_split_parallel_clauses): Removed.
956 (c_omp_declare_simd_clauses_to_numbers,
957 c_omp_declare_simd_clauses_to_decls): New prototypes.
958 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
959 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
960 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
961 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
962 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
963 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
964 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
965 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
966 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
967 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
968 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
969 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
970 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
971 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
972 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
973 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
974 PRAGMA_OMP_CLAUSE_UNIFORM.
975
826cacfe
MG
9762013-10-09 Marc Glisse <marc.glisse@inria.fr>
977
978 PR tree-optimization/20318
979 * c-common.c (handle_returns_nonnull_attribute): New function.
980 (c_common_attribute_table): Add returns_nonnull.
981
2284b034
MG
9822013-10-03 Marc Glisse <marc.glisse@inria.fr>
983
984 PR c++/19476
985 * c.opt (fcheck-new): Move to common.opt.
986
b56e9788
MP
9872013-09-25 Marek Polacek <polacek@redhat.com>
988 Jakub Jelinek <jakub@redhat.com>
989
990 PR sanitizer/58413
991 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
992 an expression if we can prove it is correct.
993 (ubsan_instrument_division): Likewise. Remove unnecessary
994 check.
995
ce6923c5
MP
9962013-09-18 Marek Polacek <polacek@redhat.com>
997
998 PR sanitizer/58411
999 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
1000 Declare it.
1001 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
1002
fb5610fb
IS
10032013-09-14 Iain Sandoe <iain@codesourcery.com>
1004
1005 PR target/48094
1006 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
1007 fobjc-gc, freplace-objc-classes): Accept for LTO.
1008
88b0e79e
JC
10092013-09-13 Jacek Caban <jacek@codeweavers.com>
1010
1011 * c-target.def: New hook
1012
c9b0866a
PC
10132013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
1014
1015 PR c++/43452
1016 * c.opt (Wdelete-incomplete): Add.
1017
0af94e6f
JR
10182013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
1019
1020 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
1021 (vector_types_compatible_elements_p): New function.
1022 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
1023 declaration.
1024 (vector_types_compatible_elements_p): Declare.
1025
7c26172c
GDR
10262013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1027
1028 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
1029 a virtual member function.
1030 (pp_simple_type_specifier): Remove.
1031 (pp_c_type_specifier): Likewise.
1032 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
1033 Rename from pp_c_type_specifier. Adjust.
1034 (c_pretty_printer::c_pretty_printer): Do not assign to
1035 simple_type_specifier.
1036
20059c8b
GDR
10372013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1038
1039 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
1040 member function.
1041 (c_pretty_printer::storage_class_specifier): Likewise.
1042 (c_pretty_printer::initializer): Likewise.
1043 (pp_declaration): Remove.
1044 (pp_declaration_specifiers): Likewise.
1045 (pp_abstract_declarator): Likewise.
1046 (pp_declarator): Likewise.
1047 (pp_type_id): Likewise.
1048 (pp_statement): Likewise.
1049 (pp_constant): Likewise.
1050 (pp_id_expression): Likewise.
1051 (pp_primary_expression): Likewise.
1052 (pp_unary_expression): Likewise.
1053 (pp_multiplicative_expression): Likewise.
1054 (pp_conditional_expression): Likewise.
1055 (pp_assignment_expression): Likewise.
1056 (pp_expression): Likewise.
1057 (pp_c_type_id): Likewise.
1058 (pp_c_storage_class_specifier): Likewise.
1059 * c-pretty-print.c (pp_c_type_cast): Tidy.
1060 (pp_c_pointer): Likewise.
1061 (pp_c_type_specifier): Likewise.
1062 (pp_c_parameter_type_list): Likewise.
1063 (pp_c_function_definition): Likewise.
1064 (pp_c_init_declarator): Likewise.
1065 (pp_c_initializer_list): Likewise.
1066 (pp_c_constructor_elts): Likewise.
1067 (c_pretty_printer::direct_abstract_declarator): Likewise.
1068 (c_pretty_printer::declaration_specifiers): Likewise.
1069 (c_pretty_printer::primary_expression): Likewise.
1070 (c_pretty_printer::postfix_expression): Likewise.
1071 (c_pretty_printer::type_id): Rename from pp_c_type_id.
1072 (c_pretty_printer::storage_class_specifier): Rename from
1073 pp_c_storage_class_specifier.
1074 (c_pretty_printer::initializer): Rename from pp_c_initializer.
1075 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
1076 storage_class_specifier, initializer, offset_list, flags.
1077
de5a5fa1
MP
10782013-08-30 Marek Polacek <polacek@redhat.com>
1079
1080 * c-ubsan.c: New file.
1081 * c-ubsan.h: New file.
1082
8f0e4d72
GDR
10832013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
1084
1085 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
1086 member function.
1087 (c_pretty_printer::declaration_specifiers): Likewise.
1088 (c_pretty_printer::declarator): Likewise.
1089 (c_pretty_printer::abstract_declarator): Likewise.
1090 (c_pretty_printer::direct_abstract_declarator): Likewise.
1091 (c_pretty_printer::direct_declarator): Likewise.
1092 (c_pretty_printer::function_specifier): Likewise.
1093 (pp_declaration): Adjust.
1094 (pp_declaration_specifiers): Likewise.
1095 (pp_abstract_declarator): Likewise.
1096 (pp_direct_declarator): Likewise.
1097 (pp_function_specifier): Likewise.
1098 (pp_direct_abstract_declarator): Remove as unused.
1099 (pp_c_declaration): Remove.
1100 (pp_c_declaration_specifiers): Likewise.
1101 (pp_c_declarator): Likewise.
1102 (pp_c_direct_declarator): Likewise.
1103 (pp_c_function_specifier): Likewise.
1104 (pp_c_direct_abstract_declarator): Likewise.
1105 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
1106 from pp_c_abstract_declarator. Adjust.
1107 (c_pretty_printer::direct_abstract_declarator): Rename from
1108 pp_c_direct_abstract_declarator. Adjust.
1109 (c_pretty_printer::function_specifier): Rename from
1110 pp_c_function_specifier. Adjust.
1111 (c_pretty_printer::declaration_specifiers): Rename from
1112 pp_c_declaration_specifiers. Adjust.
1113 (c_pretty_printer::direct_declarator): Rename from
1114 pp_c_direct_declarator. Adjust.
1115 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
1116 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
1117 (c_pretty_printer::c_pretty_printer): Do not assign to
1118 declaration, declaration_specifiers, declarator,
1119 direct_declarator, direct_abstract_declarator, function_specifier.
1120
00d34d3a
GDR
11212013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
1122
1123 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
1124 virtual member function.
1125 (c_pretty_printer::multiplicative_expression): Likewise.
1126 (c_pretty_printer::conditional_expression): Likewise.
1127 (c_pretty_printer::assignment_expression): Likewise.
1128 (c_pretty_printer::expression): Likewise.
1129 (pp_unary_expression): Adjust.
1130 (pp_multiplicative_expression): Likewise.
1131 (pp_assignment_expression): Likewise.
1132 (pp_conditional_expression): Likewise.
1133 (pp_expression): Likewise.
1134 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
1135 from pp_c_unary_expression. Adjust.
1136 (c_pretty_printer::multiplicative_expression): Rename from
1137 pp_c_multiplicative_expression. Adjust.
1138 (c_pretty_printer::conditional_expression): Rename from
1139 pp_c_conditional_expression. Adjust.
1140 (c_pretty_printer::assignment_expression): Rename from
1141 pp_c_assignment_expression. Adjust.
1142 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
1143 (c_pretty_printer::c_pretty_printer): Do not assign to
1144 unary_expression, multiplicative_expression,
1145 conditional_expression, expression.
1146
fb22178f
GDR
11472013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1148
1149 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
1150 virtual member function.
1151 (pp_postfix_expression): Adjust.
1152 (pp_c_postfix_expression): Remove.
1153 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
1154 from pp_c_postfix_expression. Adjust.
1155 (c_pretty_printer::c_pretty_printer): Do not assign to
1156 postfix_expression.
1157
7ecc2600
GDR
11582013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1159
1160 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
1161 virtua member function.
1162 (pp_primary_expression): Adjust.
1163 (pp_c_primary_expression): Remove.
1164 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
1165 from pp_c_primary_expression. Adjust.
1166 (pp_c_initializer_list): Use pp_primary_expression.
1167 (c_pretty_printer::c_pretty_printer): Do not assign to
1168 primary_expression.
1169
0691175f
GDR
11702013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1171
1172 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
1173 * c-pretty-print.c (M_): Remove.
1174 (c_pretty_printer::translate_string): Define.
1175 (pp_c_type_specifier): Use it.
1176 (pp_c_primary_expression): Likewise.
1177 (pp_c_expression): Likewise.
1178
66dfe4c4
GDR
11792013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
1180
1181 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
1182 virtual function.
1183 (pp_c_id_expression): Remove.
1184 (pp_id_expression): Adjust.
1185 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
1186 pp_c_id_expression. Adjust.
1187 (pp_c_postfix_expression): Use pp_id_expression.
1188 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
1189
ca43e9d5
GDR
11902013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
1191
1192 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
1193 member function.
1194 (pp_constant): Adjust.
1195 (pp_c_constant): Remove.
1196 * c-pretty-print.c (c_pretty_printer::constant): Rename from
1197 pp_c_constant. Adjust.
1198 (pp_c_constant)
1199 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
1200 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
1201
da6ca2b5
GDR
12022013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1203
1204 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
1205 (c_pretty_printer::c_pretty_printer): Declare.
1206 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
1207 c_pretty_printer_init. Adjust.
1208 (print_c_tree): Do not call c_pretty_printer_init.
1209 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
1210
65a372f4
AC
12112013-08-09 Arnaud Charlet <charlet@adacore.com>
1212
1213 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
1214
fd9b0f32
PC
12152013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
1216
1217 PR c++/58080
1218 * c-common.c (pointer_int_sum): Add bool parameter.
1219 * c-common.h (pointer_int_sum): Adjust declaration.
1220
e0aec1e9
GDR
12212013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
1222
1223 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
1224 c_pretty_printer variable.
1225
b066401f
GDR
12262013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1227
1228 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
1229 (pp_base): Remove.
1230 (pp_c_base): Likewise. Adjust users.
1231 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
1232 (pp_c_whitespace): Do not call pp_base.
1233 (pp_c_left_paren): Likewise.
1234 (pp_c_right_paren): Likewise.
1235 (pp_c_left_brace): Likewise.
1236 (pp_c_right_brace): Likewise.
1237 (pp_c_left_bracket): Likewise.
1238 (pp_c_right_bracket): Likewise.
1239 (pp_c_dot): Likewise.
1240 (pp_c_ampersand): Likewise.
1241 (pp_c_star): Likewise.
1242 (pp_c_arrow): Likewise.
1243 (pp_c_semicolon): Likewise.
1244 (pp_c_complement): Likewise.
1245 (pp_c_exclamation): Likewise.
1246 (pp_c_direct_declarator): Likewise.
1247 (pp_c_ws_string): Likewise.
1248 (pp_c_identifier): Likewise.
1249 (pp_c_statement): Likewise.
1250 (print_c_tree): Likewise.
1251
65e5a578
ESR
12522013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
1253
1254 PR c++/58072
1255 * c-common.c (c_parse_error): Catch user-defined literal tokens and
1256 provide useful error strings.
1257
137a1a27
GDR
12582013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1259
1260 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
1261 printer functions instead of pp_string or operators and punctuators.
1262 (dump_generic_ada_node): Likewise.
1263 * c-pretty-print.c (pp_c_type_specifier): Likewise.
1264 (pp_c_relational_expression): Likewise.
1265 (pp_c_logical_or_expression): Likewise.
1266
07838b13
GDR
12672013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1268
1269 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
1270 functions instead of pp_character.
1271 (pp_ada_tree_identifier): Likewise.
1272 (dump_ada_double_name): Likewise.
1273 (dump_ada_function_declaration): Likewise.
1274 (dump_ada_array_domains): Likewise.
1275 (dump_template_types): Likewise.
1276 (dump_generic_ada_node): Likewise.
1277 (print_ada_declaration): Likewise.
1278 (print_ada_struct_decl): Likewise.
1279 * c-pretty-print.c (pp_c_integer_constant): Likewise.
1280
433cc7b0
TT
12812013-07-23 Tom Tromey <tromey@redhat.com>
1282
1283 * c-common.h (enum rid) <RID_GENERIC>: New constant.
1284 * c-common.c (c_common_reswords): Add _Generic.
1285
688010ba
OB
12862013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
1287
1288 * c-common.c: Fix typos.
1289 * c-common.h: Likewise.
1290
2a99e5e6
LL
12912013-07-13 Lubos Lunak <l.lunak@suse.cz>
1292
1293 PR c++/55203
1294 * c-common.c (c_common_attribute_table): Add warn_unused.
1295 (handle_warn_unused_attribute): New.
1296
c26302d5
JJ
12972013-07-10 Jakub Jelinek <jakub@redhat.com>
1298
1299 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
1300 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
1301
dfeadaa0
PC
13022013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
1303
1304 PR c++/57869
1305 * c.opt: Add Wconditionally-supported.
1306
6a2fa4b2
GS
13072013-07-08 Graham Stott <graham.stott@btinternet.com>
1308
1309 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
1310 unused variables l_length and l_node.
1311
ecdbd01a 13122013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
1313
1314 PR c/57821
1315 * c-common.c (complete_array_type): Delay folding first index
1316 like other indices. When folding, check for index overflow.
1317
bedc293e
MG
13182013-06-27 Marc Glisse <marc.glisse@inria.fr>
1319
1320 PR c++/57509
1321 * c-common.h (c_build_vec_perm_expr): New complain argument.
1322 * c-common.c (c_build_vec_perm_expr): Likewise.
1323 Use save_expr also in C++.
1324
604b2bfc
GDR
13252013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1326
1327 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
1328 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1329 * c-opts.c (c_common_post_options): Likewise.
1330
dfeadaa0 13312013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
1332
1333 * array-notation-common.c (length_mismatch_in_expr): Changed the
1334 parameter type's from a dynamic array to a vec_tree. Also removed
1335 the size parameters.
1336 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
1337 the change above.
1338
2ce86d2e
BI
13392013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
1340
1341 * c-common.h (struct cilkplus_an_parts): New structure.
1342 (struct cilkplus_an_loop_parts): Likewise.
1343 (cilkplus_extract_an_triplets): New prototype.
1344 (fix_sec_implicit_args): Likewise.
1345 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
1346 (fix_sec_implicit_args): Likewise.
604b2bfc 1347
07a6825b
BI
13482013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
1349
1350 * array-notation-common.c (find_inv_trees): Removed an unwanted
1351 typecasting.
1352 * c-common.h (struct inv_list::additional_tcodes): Changed type from
1353 enum rid to enum tree_code.
1354
08346abd
JH
13552013-06-11 Jan Hubicka <jh@suse.cz>
1356
1357 * c-common.c (handle_alias_ifunc_attribute): Do not set
1358 DECL_EXTERNAL for weakref variables.
1359 * c-pragma.c (handle_pragma_weak): Make sure aliases
1360 are not declared as external.
1361
d60f1706
BI
13622013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
1363
1364 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
1365 function from c/c-array-notation.c.
1366 (is_cilkplus_reduce_builtin): Likewise.
1367 (find_rank): Likewise.
1368 (extract_array_notation_exprs): Likewise.
1369 (replace_array_notations): Likewise.
1370 (find_inv_trees): Likewise.
1371 (replace_inv_trees): Likewise.
1372 (contains_array_notation_expr): Likewise.
1373 (find_correct_array_notation_type): Likewise.
1374 * c-common.h (struct inv_list): Moved this struct from the file
1375 c/c-array-notation.c and added a new field called additional tcodes.
1376 (length_mismatch_in_expr_p): New prototype.
1377 (is_cilkplus_reduce_builtin): Likewise.
1378 (find_rank): Likewise.
1379 (extract_array_notation_exprs): Likewise.
1380 (replace_array_notation): Likewise.
1381 (find_inv_trees): Likewise.
1382 (replace_inv_trees): Likewise.
1383 (find_correct_array_notation_type): Likewise.
dfeadaa0 1384
36536d79
BI
13852013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
1386
1387 * c-common.c (c_define_builtins): When cilkplus is enabled, the
1388 function array_notation_init_builtins is called.
1389 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
1390 * c-common.def (ARRAY_NOTATION_REF): New tree.
1391 * c-common.h (build_array_notation_expr): New function declaration.
1392 (build_array_notation_ref): Likewise.
1393 (extract_sec_implicit_index_arg): New extern declaration.
1394 (is_sec_implicit_index_fn): Likewise.
1395 (ARRAY_NOTATION_CHECK): New define.
1396 (ARRAY_NOTATION_ARRAY): Likewise.
1397 (ARRAY_NOTATION_START): Likewise.
1398 (ARRAY_NOTATION_LENGTH): Likewise.
1399 (ARRAY_NOTATION_STRIDE): Likewise.
1400 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
1401 ARRAY_NOTATION_REF.
1402 (pp_c_expression): Likewise.
1403 * c.opt (flag_enable_cilkplus): New flag.
1404 * array-notation-common.c: New file.
1405
f7716d57
JJ
14062013-05-14 Jakub Jelinek <jakub@redhat.com>
1407
1408 PR c++/57274
1409 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
1410
a5e0cd1d
MG
14112013-05-10 Marc Glisse <marc.glisse@inria.fr>
1412
1413 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
1414 vectors.
1415
f6bc1c4a
HS
14162013-05-07 Han Shen <shenhan@google.com>
1417
1418 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
1419
3f12f6e9
SKS
14202013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1421
1422 * c-common.c (check_user_alignment): Emit error for negative values.
1423
61949153
PC
14242013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1425
1426 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
1427
e93e18e9
PC
14282013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1429
1430 * c-cppbuiltin.c (c_cpp_builtins): Do not define
1431 __GXX_EXPERIMENTAL_CXX1Y__.
1432
44d90fe1
PC
14332013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1434 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1435
1436 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
1437 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
1438 to simply use OPT_Wpointer_arith.
1439 (c_sizeof_or_alignof_type): Likewise.
1440
13f39b2e
PC
14412013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1442
1443 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
1444
4b84d650
JJ
14452013-04-12 Jakub Jelinek <jakub@redhat.com>
1446
1447 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
1448 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
1449 specifiers.
1450
fb037b5d
SB
14512013-04-07 Steven Bosscher <steven@gcc.gnu.org>
1452
1453 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
1454
4e856798
PC
14552013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
1456
1457 * c-common.c (pointer_int_sum): Remove dead code.
1458
4b1baac8
RS
14592013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
1460
1461 PR middle-end/56524
1462 * c-common.c (handle_optimize_attribute): Don't call
1463 save_optabs_if_changed.
1464
0b50e654
JJ
14652013-03-05 Jakub Jelinek <jakub@redhat.com>
1466
1467 PR middle-end/56461
1468 * c-pch.c (pch_init): Free target_validity at the end.
1469
48c41403
JJ
14702013-03-04 Jakub Jelinek <jakub@redhat.com>
1471
1472 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
1473
e664c61c
KS
14742013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
1475 Jakub Jelinek <jakub@redhat.com>
1476
1477 PR sanitizer/56454
1478 * c-common.c (handle_no_sanitize_address_attribute): New function.
1479 (c_common_attribute_table): Add no_sanitize_address attribute.
1480 (handle_no_address_safety_analysis_attribute): Add
1481 no_sanitize_address attribute, not no_address_safety_analysis
1482 attribute.
1483
a475fd3d 14842013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
1485
1486 PR target/52555
1487 * c-common.c (handle_optimize_attribute): Call
1488 save_optabs_if_changed.
1489
f6007d99
JJ
14902013-02-18 Jakub Jelinek <jakub@redhat.com>
1491 Steven Bosscher <steven@gcc.gnu.org>
1492
1493 PR pch/54117
1494 * c-opts.c (c_common_post_options): If debug info is enabled
1495 and non-dwarf*, refuse to load PCH files and when writing PCH
1496 file warn.
1497
cf35e2b1
JJ
14982013-02-05 Jakub Jelinek <jakub@redhat.com>
1499
1500 PR middle-end/56167
1501 * c-common.c (handle_error_attribute): Fix condition.
1502
32887460
JJ
15032013-01-30 Jakub Jelinek <jakub@redhat.com>
1504
1505 PR c++/55742
1506 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
1507
5af057d8
JM
15082013-01-18 Jason Merrill <jason@redhat.com>
1509
1510 PR target/54908
1511 * c.opt (-fextern-tls-init): New.
1512 * c-opts.c (c_common_post_options): Handle it.
1513
cc83c823
JJ
15142013-01-09 Jakub Jelinek <jakub@redhat.com>
1515
1516 PR c/48418
1517 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
1518 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
1519 and is either negative or bigger or equal to type precision
1520 of the first operand.
1521
a859517f
MP
15222012-12-03 Marek Polacek <polacek@redhat.com>
1523
1524 PR c/55570
1525 * c-common.c (check_user_alignment): Swap order of tests,
1526 check TREE_CODE first.
1527
2d7aa578
ESR
15282012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
1529
1530 PR c++/52654
1531 * c-common.h (overflow_type): New enum.
1532 (build_userdef_literal): Add overflow_type argument.
1533 (tree_userdef_literal): Add overflow_type.
1534 (USERDEF_LITERAL_OVERFLOW): New access macro.
1535 * c-common.c (build_userdef_literal): Add overflow_type
1536 argument.
1537 * c-lex.c (c_lex_with_flags): Add overflow_type to
1538 build_userdef_literal calls.
1539 (interpret_integer, interpret_float): Add overflow_type argument.
1540
cc3c4f62
RB
15412012-11-28 Richard Biener <rguenther@suse.de>
1542
1543 PR c/35634
1544 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1545 here and use a type with proper overflow behavior for types that would
1546 need to be promoted for the arithmetic.
1547
77bc5132
JJ
15482012-11-23 Jakub Jelinek <jakub@redhat.com>
1549
1550 PR sanitizer/55435
1551 * c-common.c (handle_no_address_safety_analysis_attribute): New
1552 function.
1553 (c_common_attribute_table): Add no_address_safety_analysis.
1554
5dc99c46
SB
15552012-11-16 Simon Baldwin <simonb@google.com>
1556
1557 * c.opt: Add f[no-]canonical-system-headers.
1558 * c-opts.c (c_common_handle_option): Handle
1559 OPT_fcanonical_system_headers.
1560
a4a0016d
ESR
15612012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
1562
1563 PR c++/54413
1564 * c-opts.c (c_common_handle_option): Set new flags.
1565 * c.opt: Describe new flags.
1566
7dbb85a7
JM
15672012-11-09 Jason Merrill <jason@redhat.com>
1568
1569 * c.opt (Wabi-tag): New.
1570
ad7bac31
AK
15712012-11-09 Andi Kleen <ak@linux.intel.com>
1572
1573 PR 55139
1574 * c-common.c (get_atomic_generic_size): Mask with
1575 MEMMODEL_MASK
1576
7332899a
MLI
15772012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1578
1579 PR c/53063
1580 * c.opt (Wformat): Make it Alias Wformat=1.
1581 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
1582 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
1583 LangEnabledBy.
1584 (Wformat=): RejectNegative. Use LangEnabledBy.
1585 (Wnonnull): Use LangEnabledBy.
1586 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
1587 * c-format.c (set_Wformat): Delete.
1588 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
1589 (maybe_read_dollar_number): Likewise.
1590 (avoid_dollar_number): Likewise.
1591 (finish_dollar_format_checking): Likewise.
1592 (check_format_info): Likewise.
1593 (check_format_info_main): Likewise.
1594 (check_format_types): Likewise.
1595 (format_type_warning): Likewise.
1596 * c-common.c (int): Likewise.
1597 (check_function_sentinel): Likewise.
1598 * c-common.h (warn_format,set_Wformat): Do not declare here.
1599
34a180a6
MLI
16002012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1601
1602 PR c/53063
1603 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
1604 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
1605 Use LangEnabledBy.
1606 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
1607 common.opt.
1608 (Wvariadic-macros): Init(1).
1609 * c-opts.c (c_common_handle_option): Do not handle them
1610 explicitly.
1611 (c_common_post_options): Likewise.
1612 (sanitize_cpp_opts): warn_unused_macros is now
1613 cpp_warn_unused_macros.
1614 (push_command_line_include): Likewise.
1615 * c-common.c (warn_unknown_pragmas): Do not define.
1616 * c-common.h (warn_unknown_pragmas): Do not declare.
1617
3f46d6a5
MLI
16182012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1619
1620 PR c/51294
1621 * c-common.c (conversion_warning): Handle conditional expressions.
1622
880661a4
JW
16232012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
1624
1625 PR c++/54930
1626 * c.opt (Wreturn_local_addr): Define new option.
1627
4514a96b
JM
16282012-10-25 Jason Merrill <jason@redhat.com>
1629
f14edc1a
JM
1630 * c.opt (Wvirtual-move-assign): New.
1631
4514a96b
JM
1632 * c.opt (Winherited-variadic-ctor): New.
1633
93100c6b
MG
16342012-10-25 Marc Glisse <marc.glisse@inria.fr>
1635
1636 PR c++/54427
1637 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
1638
1efcb8c6
JM
16392012-10-23 Joseph Myers <joseph@codesourcery.com>
1640
1641 * c-common.h (pch_cpp_save_state): Declare.
1642 * c-target.def (c_preinclude): New hook.
1643 * c-opts.c (done_preinclude): New.
1644 (push_command_line_include): Handle default preincluded header.
1645 (cb_file_change): Call pch_cpp_save_state when calling
1646 push_command_line_include.
1647 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
1648 (pch_cpp_save_state): New.
1649 (pch_init): Call pch_cpp_save_state conditionally, instead of
1650 calling cpp_save_state.
1651
4a0ae68e
MLI
16522012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1653
1654 PR c/53063
1655 PR c/40989
1656 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
1657 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
1658 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
1659 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
1660 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
1661 * c-opts.c (c_common_handle_option): Remove explicit handling from
1662 here.
1663 (c_common_post_options): Likewise.
1664
67e4210b
EB
16652012-10-18 Eric Botcazou <ebotcazou@adacore.com>
1666
1667 * c-ada-spec.c (LOCATION_COL): Delete.
1668 (compare_location): New function.
1669 (compare_node): Use it.
1670 (compare_comment): Likewise.
1671
65d4f2cd
MLI
16722012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1673
1674 PR c/53063
1675 PR c/40989
1676 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
1677 * c-opts.c (c_common_handle_option): Do not set them here. Add
1678 comment.
1679 (c_common_post_options): Likewise.
1680
909881cb
EB
16812012-10-16 Eric Botcazou <ebotcazou@adacore.com>
1682
1683 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
1684 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
1685 Remove POINTER_TYPE handling, add large unsigned handling and use
1686 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
1687
3a785c97
JJ
16882012-10-12 Jakub Jelinek <jakub@redhat.com>
1689
1690 PR c/54381
1691 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
1692 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
1693 locs and array of 3 trees instead of just single loc and single
1694 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
1695 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
1696 For *cmp* builtins that take two sources strings report warnings
1697 about first and second source, not about destination and source.
1698
5e54f81d
MG
16992012-10-12 Marc Glisse <marc.glisse@inria.fr>
1700
1701 PR c++/53055
1702 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
1703
f5b02f1e
EB
17042012-10-11 Eric Botcazou <ebotcazou@adacore.com>
1705
1706 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
1707 declaring something coming from another file.
1708
b46dbc6c
AC
17092012-10-10 Arnaud Charlet <charlet@adacore.com>
1710
f5b02f1e 1711 PR ada/54845
b46dbc6c
AC
1712 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
1713
5d9de0d0
PC
17142012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
1715
1716 PR c++/54194
1717 * c-common.c (warn_about_parentheses): Add location_t parameter;
1718 use EXPR_LOC_OR_LOC.
1719 * c-common.h: Update declaration.
1720
a212e43f
MG
17212012-10-09 Marc Glisse <marc.glisse@inria.fr>
1722
1723 PR c++/54427
1724 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
1725 more operations. Make error messages optional.
1726 * c-common.h (enum stv_conv): Moved from c-typeck.c.
1727 (scalar_to_vector): Declare.
1728
b1db7f91
JM
17292012-10-08 Jason Merrill <jason@redhat.com>
1730
1731 * c-common.c (c_common_reswords): Add thread_local.
1732
e28d52cf
DS
17332012-10-08 Dodji Seketeli <dodji@redhat.com>
1734
1735 PR c++/53528 C++11 attribute support
1736 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
1737 new functions.
1738 * c-common.c (check_cxx_fundamental_alignment_constraints): New
1739 static function.
1740 (handle_aligned_attribute): In choose strictest alignment
1741 among many. Use new check_cxx_fundamental_alignment_constraints.
1742 (handle_transparent_union_attribute): In c++11 attribute syntax,
1743 don't look through typedefs.
1744
3b78de56
AC
17452012-10-04 Arnaud Charlet <charlet@adacore.com>
1746
1747 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
1748 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
1749 out of dumpfile.h.
1750
6040bb5f
DC
17512012-09-25 Dehao Chen <dehao@google.com>
1752
1753 PR middle-end/54645
3b78de56 1754 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
1755 map when read in the pch.
1756
0b07a57e
AC
17572012-09-18 Arnaud Charlet <charlet@adacore.com>
1758
1759 * c-ada-spec.c: Style fixes.
1760
da5182be
TQ
17612012-09-18 Thomas Quinot <quinot@adacore.com>
1762
1763 * c.opt (-fada-spec-parent): Define new command line switch.
1764 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
1765 is specified, generate binding spec as a child of the specified unit.
1766
0ccb505d
PC
17672012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
1768 Manuel López-Ibáñez <manu@gcc.gnu.org>
1769
1770 PR c++/53210
1771 * c.opt ([Winit-self]): Enabled by -Wall in C++.
1772
c583af79
AC
17732012-08-23 Arnaud Charlet <charlet@adacore.com>
1774
1775 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
1776 for pointers, and add missing Convention C pragma.
1777 (print_ada_struct_decl): Add missing aliased keyword.
1778 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
1779
1a4049e7
JJ
17802012-08-17 Jakub Jelinek <jakub@redhat.com>
1781
1782 * c-common.c (sizeof_pointer_memaccess_warning): New function.
1783 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
1784 * c-opts.c (c_common_handle_option): Enable it for -Wall.
1785 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
1786 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
1787
70b5e7dc
RG
17882012-08-10 Richard Guenther <rguenther@suse.de>
1789
1790 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
1791
f8923f7e
SB
17922012-08-07 Steven Bosscher <steven@gcc.gnu.org>
1793
1794 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
1795 instead of separate pp_newline and pp_flush.
1796 (print_c_tree): Likewise.
1797
e45abe1f
RH
17982012-07-26 Richard Henderson <rth@redhat.com>
1799
1800 * c-common.c (handle_hot_attribute): Allow labels.
1801 (handle_cold_attribute): Likewise.
1802
332f1d24
JJ
18032012-07-20 Jakub Jelinek <jakub@redhat.com>
1804
1805 PR c++/28656
1806 * c-common.c (check_function_nonnull): Handle multiple nonnull
1807 attributes properly.
1808
7ee2468b
SB
18092012-07-16 Steven Bosscher <steven@gcc.gnu.org>
1810
1811 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
1812 * c-ada-spec.c: Likewise.
1813 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
1814
ee7b28eb
SB
18152012-07-14 Steven Bosscher <steven@gcc.gnu.org>
1816
1817 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
1818 Remove code conditional on it.
1819
6bdf3519
SB
18202012-07-11 Steven Bosscher <steven@gcc.gnu.org>
1821
1822 * c-gimplify.c: Do not include basic-block.h.
1823 * c-common.c: Do not include linfuncs.h.
1824
532aafad
SB
18252012-07-08 Steven Bosscher <steven@gcc.gnu.org>
1826
1827 * c-common.h: Include tree.h.
1828
8d0d1915
JM
18292012-07-02 Jason Merrill <jason@redhat.com>
1830
1831 PR c++/53524
1832 * c-common.c (get_priority): Call default_conversion.
1833
fbc873ad
UB
18342012-07-01 Uros Bizjak <ubizjak@gmail.com>
1835
1836 * c-pch.c (c_common_write_pch): Remove unused variables.
1837
d4a10d0a
SB
18382012-06-29 Steven Bosscher <steven@gcc.gnu.org>
1839
1840 * cppspec.c: Moved from gcc/ to here.
1841
6f3a2e23
KT
18422012-06-27 Kai Tietz <ktietz@redhat.com>
1843
1844 PR preprocessor/37215
1845 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
1846
8ca92d04
SB
18472012-06-21 Steven Bosscher <steven@gcc.gnu.org>
1848
1849 * c-common.h (c_common_print_pch_checksum): Remove.
1850 * c-pch.c: Do not include output.h.
1851 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
1852 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
1853 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
1854 (struct c_pch_header): Remove.
1855 (get_ident): Update gpch version.
1856 (pch_init): Do not print executable_checksum to asm_out_file.
1857 Do not fail if there is no asm_out_file to read back from. Set
1858 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
1859 (c_common_write_pch): Verify that nothing was written to asm_out_file
1860 since pch_init was called. Do not write a c_pch_header, and do not
1861 copy from asm_out_file to the PCH.
1862 (c_common_read_pch): Do not read a c_pch_header, and do not restore
1863 the content of asm_out_file from the PCH.
1864 (c_common_print_pch_checksum): Remove.
1865 * c-opts.c (c_common_init): Print out executable_checksum directly.
1866
70f42967
SB
18672012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1868
1869 * c-target.def (objc_declare_unresolved_class_reference,
1870 objc_declare_class_definition): Add new hooks.
1871
a8781821
SB
18722012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1873
1874 * c-lex.c: Do not include output.h.
1875 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
1876 Remove uses of ASM_OUTPUT_IDENT.
1877
9e1a8dd1
RR
18782012-06-15 Marc Glisse <marc.glisse@inria.fr>
1879
1880 PR c++/51033
1881 * c-common.h (c_build_vec_perm_expr): Move decl here.
1882 * c-common.c (c_build_vec_perm_expr): Move definition
1883 here.
1884
6f07a821
SB
18852012-06-06 Steven Bosscher <steven@gcc.gnu.org>
1886
1887 * c.opt (fconserve-space): Turn into a no-op.
1888
9faeb493 18892012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
1890
1891 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
1892 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
1893 both the start and end of the function.
1894
a4b7d13c
SB
18952012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1896
1897 * c-common.c: Do not include output.h.
1898 * c-pragma.c: Likewise.
1899
c265f413
SA
19002012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1901
1902 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
1903 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
1904 (lang_decl_name): Handle namespace decls.
1905
be7a421e
SB
19062012-05-31 Steven Bosscher <steven@gcc.gnu.org>
1907
1908 * c-ada-spec.c: Do not include output.h.
1909 * c-semantics.c: Likewise.
1910
65de6659
JM
19112012-05-29 Joseph Myers <joseph@codesourcery.com>
1912
1913 * c-common.c: Fix typo.
1914
ca5f4331
MM
19152012-05-29 Michael Matz <matz@suse.de>
1916
1917 * c-common.h (c_expand_decl): Remove prototype.
1918
4f7f7aca
MLI
19192012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1920
1921 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
1922 * c-opts.c (c_common_handle_option): Remove code handling
1923 warn_missing_braces.
1924
4a792f9b
PC
19252012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
1926
1927 PR c++/25137
1928 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
1929 -Wmissing_braces.
1930
650dc14a
DS
19312012-05-22 Dodji Seketeli <dodji@redhat.com>
1932
1933 PR c++/53322
1934 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
1935
9b095bf1
MLI
19362012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
1937
1938 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
1939 * c-opts.c (c_common_handle_option): Do not handle explicitly
1940 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
1941
0b2c4be5
DS
19422012-05-16 Dodji Seketeli <dodji@redhat.com>
1943
1944 PR preprocessor/7263
1945 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
1946 to cpp_classify_number. For diagnostics, use the precise location
1947 instead of the global input_location.
1948
a1bde5af
PC
19492012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1950
d02924ef 1951 PR c++/11856
a1bde5af
PC
1952 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
1953
d1ede5f4
BS
19542012-05-14 Bernd Schmidt <bernds@codesourcery.com>
1955
a1bde5af 1956 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 1957
f2bc201f
MLI
19582012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
1959
1960 PR 53063
1961 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
1962 Wreorder): Use LangEnabledBy.
1963 * c-opts.c (c_common_handle_option): Do not enable them
1964 explicitly. Call lang-specific generated functions.
1965 (c_common_post_options): Do not set them here.
1966
95744782
MLI
19672012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
1968
1969 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
1970 Wmissing-field-initializers,Wmissing-parameter-type,
1971 Wold-style-declaration,Woverride-init): Use EnabledBy.
1972 * c-opts.c (c_common_post_options): Do not set here explicitly.
1973
7d5a5747
MLI
19742012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1975
1976 PR 53063
1977 * c-opts.c (c_common_handle_option): Use handle_generated_option
1978 to enable sub-options.
1979
5a3c9cf2
PC
19802012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
1981
1982 PR c++/53158
1983 * c-common.c (warnings_for_convert_and_check): Use warning_at.
1984
3ac8781c
RG
19852012-05-10 Richard Guenther <rguenther@suse.de>
1986
1987 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
1988 adjust commentary about TYPE_IS_SIZETYPE types.
1989
1e537948
MLI
19902012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1991
1992 PR c++/53261
1993 * c-common.c (warn_logical_operator): Check that argument of
1994 integer_zerop is not NULL.
1995
f2c4a785
MLI
19962012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
1997
1998 PR c/43772
1999 * c-common.c (warn_logical_operator): Do not warn if either side
2000 is already true or false.
2001
50f305ca
MLI
20022012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
2003
2004 PR c/51712
2005 * c-common.c (expr_original_type): New.
2006 (shorten_compare): Do not warn for enumeration types.
2007
0c3641b0
MLI
20082012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2009
2010 * c.opt (fpermissive): Add Var(flag_permissive).
2011
7edaa4d2
MG
20122012-04-30 Marc Glisse <marc.glisse@inria.fr>
2013
2014 PR c++/51033
2015 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
2016 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
2017
b9c8da34
DS
20182012-04-30 Dodji Seketeli <dodji@redhat.com>
2019
2020 Add -Wvarargs option
2021 * c.opt (Wvarargs): Define new option.
2022
e6c69da0
MLI
20232012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2024
2025 * c-common.c (check_function_arguments): Replace
2026 Wmissing-format-attribute with Wsuggest-attribute=format.
2027
90137d8f
MLI
20282012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2029
2030 * c.opt (Wsuggest-attribute=format): New. Alias of
2031 Wmissing-format-attribute.
2032 * c-format.c (decode_format_type): Replace
2033 Wmissing-format-attribute with Wsuggest-attribute=format.
2034 (check_function_format): Likewise.
2035
9faeb493 20362012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
2037
2038 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
2039 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
2040 * c.opt: Add Wliteral-suffix.
2041
c1771a20
MLI
20422012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2043
2044 PR c/44774
2045 * c.opt (Wpedantic): New.
2046 (pedantic): Alias Wpedantic.
2047 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
2048 (c_common_post_options): Likewise.
2049 (sanitize_cpp_opts): Likewise.
2050 * c-lex.c (interpret_float): Likewise.
2051 * c-format.c (check_format_types): Likewise.
2052 * c-common.c (pointer_int_sum): Likewise.
2053 (c_sizeof_or_alignof_type): Likewise.
2054 (c_add_case_label): Likewise.
2055 (c_do_switch_warnings): Likewise.
2056 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
2057
04b391c1
JM
20582012-04-15 Jason Merrill <jason@redhat.com>
2059
2060 PR c++/52818
2061 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
2062 (C_STD_NAME): Distinguish between C++98 and C++11.
2063
ac868f29
EB
20642012-04-11 Eric Botcazou <ebotcazou@adacore.com>
2065
2066 PR target/52624
2067 * c-common.h (uint16_type_node): Rename into...
2068 (c_uint16_type_node): ...this.
2069 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
2070 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
2071
fd4116f4
MLI
20722012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
2073
2074 * c-common.c (warn_if_unused_value): Move definition to here.
2075 * c-common.h (warn_if_unused_value): Move declaration to here.
2076
573ac65e
WB
20772012-03-23 William Bader <williambader@hotmail.com>
2078
2079 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
2080
552b8185
JM
20812012-03-20 Jason Merrill <jason@redhat.com>
2082
2083 * c-common.h (enum cxx_dialect): Add cxx1y.
2084 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
2085 test.
2086 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2087 * c-opts.c (c_common_post_options): Likewise.
2088 (set_std_cxx1y): New.
2089 (c_common_handle_option): Call it.
2090 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
2091
04398fa8
PC
20922012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
2093
2094 PR c++/14710
2095 * c.opt ([Wuseless-cast]): Add.
2096
d2a12ae7
RG
20972012-03-16 Richard Guenther <rguenther@suse.de>
2098
2099 * c-pretty-print.c (pp_c_initializer_list): Adjust.
2100
a12bf402
MLI
21012012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2102
2103 PR c++/44783
2104 * c.opt (ftemplate-backtrace-limit) Add.
2105
5c30094f
RO
21062012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2107
2108 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
2109 handling.
2110 * c-pragma.c (handle_pragma_extern_prefix): Remove.
2111 (init_pragma): Don't register extern_prefix.
2112
21fa2faf
RG
21132012-03-12 Richard Guenther <rguenther@suse.de>
2114
2115 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
2116 (builtin_type_for_size): Likewise.
2117
e3793c6f
JJ
21182012-02-13 Jakub Jelinek <jakub@redhat.com>
2119
2120 PR c++/52215
2121 * c-common.c (sync_resolve_params): Don't decide whether to convert
2122 or not based on TYPE_SIZE comparison, convert whenever arg_type
2123 is unsigned INTEGER_TYPE.
2124
93286335
PC
21252012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
2126
2127 PR c/52118
2128 * c.opt ([Wunused-local-typedefs]): Fix description.
2129
7a421706
MS
21302012-01-24 Mike Stump <mikestump@comcast.net>
2131
2132 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
2133 exactly.
2134
ba9b1f11
RG
21352012-01-18 Richard Guenther <rguenther@suse.de>
2136
2137 * c-opts.c (c_common_post_options): Reset LTO flags if
2138 we are about to generate a PCH.
2139
465406be
PC
21402012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
2141
2142 PR c++/51777
2143 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
2144 use pp_unsigned_wide_integer.
2145
aee15221
RG
21462012-01-10 Richard Guenther <rguenther@suse.de>
2147
2148 PR middle-end/51806
2149 * c-opts.c (c_common_handle_option): Move -Werror handling
2150 to language independent code.
2151
5720c0dc
RG
21522012-01-05 Richard Guenther <rguenther@suse.de>
2153
2154 PR middle-end/51764
2155 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
2156 from common.opt.
2157
73ac190a
PC
21582011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
2159
2160 PR c++/51316
2161 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
2162 of array types with an unknown bound.
2163
48b0b196
JM
21642011-12-20 Joseph Myers <joseph@codesourcery.com>
2165
2166 * c-common.c (flag_isoc99): Update comment to refer to C11.
2167 (flag_isoc1x): Change to flag_isoc11.
2168 * c-common.h (flag_isoc99): Update comment to refer to C11.
2169 (flag_isoc1x): Change to flag_isoc11.
2170 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
2171 C11.
2172 * c-opts.c (set_std_c1x): Change to set_std_c11.
2173 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
2174 Call set_std_c11.
2175 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
2176 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
2177 * c.opt (std=c1x): Change to std=c11. Document as non-draft
2178 standard.
2179 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
2180 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
2181 (std=gnu1x): Make alias of std=gnu11.
2182
d58d6eb5
JM
21832011-12-19 Jason Merrill <jason@redhat.com>
2184
2185 PR c++/51228
2186 * c-common.c (handle_transparent_union_attribute): Check the first
2187 field if the type is complete.
2188
b3908fcc
JW
21892011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
2190
2191 PR libstdc++/51365
2192 * c-common.c (RID_IS_FINAL): Add.
2193 * c-common.h (RID_IS_FINAL): Add.
2194
fea3ca91
IS
21952011-11-30 Iain Sandoe <iains@gcc.gnu.org>
2196
2197 * c.opt (fgnu-runtime): Provide full description.
2198 (fnext-runtime): Likewise.
2199 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
2200
62bad7cd
AM
22012011-11-28 Andrew MacLeod <amacleod@redhat.com>
2202
2203 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
2204 predefines in one place. Add LOCK_FREE predefines.
2205 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
2206 new func.
2207
c466c4ff
AM
22082011-11-24 Andrew MacLeod <amacleod@redhat.com>
2209
2210 PR c/51256
9faeb493 2211 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 2212 conditions
9faeb493
UB
2213 (resolve_overloaded_atomic_exchange,
2214 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
2215 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
2216 error_mark_node for error conditions.
9faeb493 2217
a5952633
RG
22182011-11-08 Richard Guenther <rguenther@suse.de>
2219
2220 PR middle-end/51010
2221 c-family/
2222
0a35513e
AH
22232011-11-07 Richard Henderson <rth@redhat.com>
2224 Aldy Hernandez <aldyh@redhat.com>
2225 Torvald Riegel <triegel@redhat.com>
2226
2227 Merged from transactional-memory.
2228
2229 * c-common.c (handle_tm_wrap_attribute,
2230 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
2231 (struct c_common_reswords): Added __transaction* keywords.
2232 (struct c_common_attribute_table): Added transaction* and tm_regparm
2233 attributes.
2234 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
2235 masks.
2236 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
2237 find_tm_attribute): Declare.
2238
6d87092d
JM
22392011-11-07 Jason Merrill <jason@redhat.com>
2240
2241 PR c++/35688
2242 * c-common.c, c-common.h: Revert yesterday's changes.
2243
8e7860a1
JM
22442011-11-06 Jason Merrill <jason@redhat.com>
2245
2246 PR c++/35688
2247 * c-common.c (decl_has_visibility_attr): Split out from...
2248 (c_determine_visibility): ...here.
2249 * c-common.h: Declare it.
2250
d19fa6b5
JM
22512011-11-06 Joseph Myers <joseph@codesourcery.com>
2252
2253 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
2254 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
2255 type.
2256 (check_user_alignment): New. Split out of
2257 handle_aligned_attribute. Disallow integer constants with
2258 noninteger types. Conditionally allow zero.
2259 (handle_aligned_attribute): Use check_user_alignment.
2260 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
2261
86951993
AM
22622011-11-06 Andrew MacLeod <amacleod@redhat.com>
2263 Richard Henderson <rth@redhat.com>
2264
2265 Merged from cxx-mem-model.
2266
2267 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 2268 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
2269 parameters that are the same type size.
2270 (get_atomic_generic_size): New. Find size of generic
2271 atomic function parameters and do typechecking.
2272 (add_atomic_size_parameter): New. Insert size into parameter list.
2273 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
2274 either __atomic_exchange_n or external library call.
9faeb493 2275 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 2276 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 2277 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
2278 __atomic_load_n or an external library call.
2279 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
2280 __atomic_store_n or an external library call.
2281 (resolve_overloaded_builtin): Handle new __atomic builtins.
2282
cf9e9959
EB
22832011-11-04 Eric Botcazou <ebotcazou@adacore.com>
2284
2285 PR c++/50608
2286 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
2287 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
2288 <INDIRECT_REF>: Return the argument.
2289 <ARRAY_REF>: Remove special code for negative offset.
2290 Call fold_build_pointer_plus instead of size_binop.
2291 (fold_offsetof): Remove STOP_REF argument and adjust.
2292 * c-common.h (fold_offsetof_1): Declare.
2293 (fold_offsetof): Remove STOP_REF argument.
2294
25339f10
JM
22952011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
2296
2297 PR c++/50810
2298 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2299 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2300 Wnarrowing for C++0x and C++98.
2301 * c.opt ([Wnarrowing]): Update.
2302
89401152
PC
23032011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
2304
2305 PR c++/44277
2306 * c.opt: Add Wzero-as-null-pointer-constant.
2307
97e3ad20
JM
23082011-10-31 Jason Merrill <jason@redhat.com>
2309
15694fdd
JM
2310 * c.opt (-fdeduce-init-list): Off by default.
2311
97e3ad20
JM
2312 PR c++/50920
2313 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
2314 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
2315 and -Wc++11-compat.
2316 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
2317
fb9120e3
RAV
23182011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
2319
2320 PR c++/30066
2321 * c.opt (fvisibility-inlines-hidden): Description change.
2322
3ce4f9e4
ESR
23232011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
2324
2325 Implement C++11 user-defined literals.
2326 * c-common.c (build_userdef_literal): New.
2327 * c-common.def: New tree code.
2328 * c-common.h (tree_userdef_literal): New tree struct and accessors.
2329 * c-lex.c (interpret_float): Add suffix parm.
2330 (c_lex_with_flags): Build literal tokens.
2331
5f53c243
PC
23322011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2333
2334 PR c++/50841
2335 Revert:
2336 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2337
2338 PR c++/50810
2339 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2340 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2341 Wnarrowing for C++0x and C++98.
2342 * c.opt ([Wnarrowing]): Update.
2343
263734e1
PC
23442011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2345
2346 PR c++/50810
2347 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2348 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2349 Wnarrowing for C++0x and C++98.
2350 * c.opt ([Wnarrowing]): Update.
2351
d2e312d7
PC
23522011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
2353
2354 PR c++/45385
2355 * c-common.c (conversion_warning): Remove code looking for
2356 artificial operands.
2357
d17687f6
DS
23582011-10-18 Dodji Seketeli <dodji@redhat.com>
2359
2360 PR bootstrap/50760
2361 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 2362 !NO_IMPLICIT_EXTERN_C.
d17687f6 2363
fc8396e9
PC
23642011-10-17 Michael Spertus <mike_spertus@symantec.com>
2365
2366 * c-common.c (c_common_reswords): Add __bases,
2367 __direct_bases.
2368 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
2369
23702011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
2371
2372 PR c++/50757
2373 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
2374
847e697a
TT
23752011-10-15 Tom Tromey <tromey@redhat.com>
2376 Dodji Seketeli <dodji@redhat.com>
2377
2378 * c.opt (fdebug-cpp): New option.
2379 * c-opts.c (c_common_handle_option): Handle the option.
2380 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
2381 output stream in parameter. Factorized from ...
2382 (maybe_print_line): ... this. Dump location debug information when
2383 -fdebug-cpp is in effect.
2384 (print_line_1): New static function. Takes an output stream in
2385 parameter. Factorized from ...
2386 (print_line): ... here. Dump location information when -fdebug-cpp
2387 is in effect.
2388 (scan_translation_unit): Dump location information when
2389 -fdebug-cpp is in effect.
2390
92582b75
TT
23912011-10-15 Tom Tromey <tromey@redhat.com>
2392 Dodji Seketeli <dodji@redhat.com>
2393
2394 * c.opt (ftrack-macro-expansion): New option. Handle it with and
2395 without argument.
2396 * c-opts.c (c_common_handle_option)<case
2397 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
2398 cases. Handle -ftrack-macro-expansion with and without argument.
2399
46427374
TT
24002011-10-15 Tom Tromey <tromey@redhat.com>
2401 Dodji Seketeli <dodji@redhat.com>
2402
2403 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
2404 (print_line, cb_define, do_line_change): Adjust to avoid touching
2405 the internals of struct line_map. Use the public API instead.
2406 * c-pch.c (c_common_read_pch): Likewise.
2407 * c-lex.c (fe_file_change): Likewise.
2408
fc8396e9
PC
24092011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
2410
2411 PR c++/17212
2412 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
2413
24142011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
2415
2416 PR c++/33067
2417 * c-pretty-print.c (pp_c_floating_constant): Output
2418 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
2419
e79983f4
MM
24202011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2421
2422 * c-common.c (def_builtin_1): Delete old interface with two
2423 parallel arrays to hold standard builtin declarations, and replace
2424 it with a function based interface that can support creating
2425 builtins on the fly in the future. Change all uses, and poison
2426 the old names. Make sure 0 is not a legitimate builtin index.
2427 * c-omp.c (c_finish_omp_barrier): Ditto.
2428 (c_finish_omp_taskwait): Ditto.
2429 (c_finish_omp_flush): Ditto.
2430
6637388f
TG
24312011-10-11 Tristan Gingold <gingold@adacore.com>
2432
2433 * c.opt: (fallow-parameterless-variadic-functions): New.
2434
3797cb21
DS
24352011-09-08 Dodji Seketeli <dodji@redhat.com>
2436
2437 PR c++/33255 - Support -Wunused-local-typedefs warning
2438 * c-common.h (struct c_language_function::local_typedefs): New
2439 field.
9faeb493
UB
2440 (record_locally_defined_typedef, maybe_record_typedef_use)
2441 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 2442 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
2443 (maybe_record_typedef_use)
2444 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
2445 * c.opt: Declare new -Wunused-local-typedefs flag.
2446
693ddb1b
EB
24472011-09-06 Eric Botcazou <ebotcazou@adacore.com>
2448
2449 PR middle-end/50266
2450 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
2451 computations.
2452
830c740f
RG
24532011-09-05 Richard Guenther <rguenther@suse.de>
2454
2455 * c-common.c (complete_array_type): Use ssize_int (-1) instead
2456 of integer_minus_one_node for empty array upper bounds.
2457
892a371f
DS
24582011-08-28 Dodji Seketeli <dodji@redhat.com>
2459
2460 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
2461 it's the first time it's being called on this main TU.
2462
0e3fdb48
RB
24632011-08-24 Richard Guenther <rguenther@suse.de>
2464
2465 PR c/49396
2466 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
2467
24682011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
2469
2470 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
2471 defined in cpp_init_builtins and c_cpp_builtins.
2472
d4a83c10
JM
24732011-08-19 Joseph Myers <joseph@codesourcery.com>
2474
2475 * c-common.c (c_common_reswords): Add __builtin_complex.
2476 * c-common.h (RID_BUILTIN_COMPLEX): New.
2477
bbceee64
JM
24782011-08-18 Joseph Myers <joseph@codesourcery.com>
2479
2480 * c-common.c (c_common_reswords): Add _Noreturn.
2481 (keyword_is_function_specifier): Handle RID_NORETURN.
2482 * c-common.h (RID_NORETURN): New.
2483
0e3a99ae
AS
24842011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2485
2486 * c-common.c (unsafe_conversion_p): New function. Check if it is
2487 unsafe to convert an expression to the type.
2488 (conversion_warning): Adjust, use unsafe_conversion_p.
2489 * c-common.h (unsafe_conversion_p): New function declaration.
2490
20906c66
JJ
24912011-08-02 Jakub Jelinek <jakub@redhat.com>
2492
2493 * c-common.h (c_finish_omp_atomic): Adjust prototype.
2494 (c_finish_omp_taskyield): New prototype.
2495 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
2496 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
2497 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
2498 or RHS1 have side-effects, evaluate those too in the right spot,
2499 if it is a decl and LHS is also a decl, error out if they
2500 aren't the same.
2501 (c_finish_omp_taskyield): New function.
2502 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
2503 * c-pragma.c (omp_pragmas): Add taskyield.
2504 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
2505 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
2506 PRAGMA_OMP_CLAUSE_MERGEABLE.
2507
770e5a2e
DS
25082011-07-25 Dodji Seketeli <dodji@redhat.com>
2509
2510 * c-common.h (set_underlying_type): Remove parm name from
2511 declaration.
2512
1baae426
RG
25132011-07-25 Romain Geissler <romain.geissler@gmail.com>
2514
2515 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 2516
fcb21722
JM
25172011-07-22 Jason Merrill <jason@redhat.com>
2518
76f86d00
JM
2519 PR c++/49793
2520 * c.opt (Wnarrowing): New.
2521
3a636414
JM
2522 PR c++/30112
2523 * c-common.h: Declare c_linkage_bindings.
2524 * c-pragma.c (handle_pragma_redefine_extname): Use it.
2525
fcb21722
JM
2526 PR c++/49813
2527 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
2528 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
2529 as flag_isoc99 for 'restrict'.
2530 (pp_c_specifier_qualifier_list): Likewise for _Complex.
2531
02614448
ILT
25322011-07-21 Ian Lance Taylor <iant@google.com>
2533
2534 PR middle-end/49705
2535 * c-common.c (c_disable_warnings): New static function.
2536 (c_enable_warnings): New static function.
2537 (c_fully_fold_internal): Change local unused_p to bool. Call
2538 c_disable_warnings and c_enable_warnings rather than change
2539 c_inhibit_evaluation_warnings.
2540
34429675
JM
25412011-07-20 Jason Merrill <jason@redhat.com>
2542
2543 PR c++/6709 (DR 743)
2544 PR c++/42603 (DR 950)
2545 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
2546 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
2547 (CPP_DECLTYPE): New.
2548 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
2549
5d49b6a7
RG
25502011-07-19 Richard Guenther <rguenther@suse.de>
2551
2552 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
2553 * c-omp.c (c_finish_omp_for): Likewise.
2554
e84a58ff
EB
25552011-07-12 Eric Botcazou <ebotcazou@adacore.com>
2556
2557 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
2558 body on the next line.
2559
329af3c7
JM
25602011-07-08 Jason Merrill <jason@redhat.com>
2561
4063e61b
JM
2562 PR c++/45437
2563 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
2564
329af3c7
JM
2565 PR c++/49673
2566 * c-common.c (c_apply_type_quals_to_decl): Don't check
2567 TYPE_NEEDS_CONSTRUCTING.
2568
1a072294
RG
25692011-07-06 Richard Guenther <rguenther@suse.de>
2570
2571 * c-common.c (c_common_nodes_and_builtins):
2572 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
2573
fce5dddd
RG
25742011-07-05 Richard Guenther <rguenther@suse.de>
2575
2576 * c-common.c (c_common_nodes_and_builtins): Build all common
2577 tree nodes first.
2578
45d439ac
JJ
25792011-06-27 Jakub Jelinek <jakub@redhat.com>
2580
56300785
JJ
2581 * c-common.h (c_tree_chain_next): New static inline function.
2582
45d439ac
JJ
2583 * c-common.c (check_builtin_function_arguments): Handle
2584 BUILT_IN_ASSUME_ALIGNED.
2585
e0a8ecf2
AM
25862011-06-21 Andrew MacLeod <amacleod@redhat.com>
2587
2588 * c-common.c: Add sync_ or SYNC__ to builtin names.
2589 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
2590
25912011-06-20 Pierre Vittet <piervit@pvittet.com>
2592
2593 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
2594 handler.
2595 (gen_pragma_handler): New union.
2596 (internal_pragma_handler): New type.
2597 (c_register_pragma_with_data)
2598 (c_register_pragma_with_expansion_and_data): New functions.
2599
2600 * c-pragma.c (registered_pragmas, c_register_pragma_1)
2601 (c_register_pragma, c_register_pragma_with_expansion)
2602 (c_invoke_pragma_handler): Changed to work with
2603 internal_pragma_handler.
2604 (c_register_pragma_with_data)
2605 (c_register_pragma_with_expansion_and_data): New functions.
2606
677f3fa8
JM
26072011-06-14 Joseph Myers <joseph@codesourcery.com>
2608
2609 * c-common.c: Include common/common-target.h.
2610 (handle_section_attribute): Use
2611 targetm_common.have_named_sections.
2612 * c-cppbuiltin.c: Include common/common-target.h.
2613 (c_cpp_builtins): Use targetm_common.except_unwind_info.
2614
d7fc8c14
RG
26152011-06-10 Richard Guenther <rguenther@suse.de>
2616
2617 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
2618 to print a IDENTIFIER_NODE.
2619
10e48e39
RO
26202011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2621 Joseph Myers <joseph@codesourcery.com>
2622
2623 * c.opt (fbuilding-libgcc): New option.
2624 * c-cppbuiltin.c (c_cpp_builtins): Define
2625 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
2626
6976ae51
JM
26272011-06-07 Jason Merrill <jason@redhat.com>
2628
3ff60975
JM
2629 * c-common.c (max_tinst_depth): Lower default to 900.
2630
6976ae51
JM
2631 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
2632
009db074
RG
26332011-06-07 Richard Guenther <rguenther@suse.de>
2634
2635 * c-common.c (c_common_nodes_and_builtins): Do not set
2636 size_type_node or call set_sizetype.
2637
b4592b92
DS
26382011-06-07 Dodji Seketeli <dodji@redhat.com>
2639
2640 PR debug/49130
2641 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 2642 type when using pointer comparison to compare types.
b4592b92 2643
014ab419
JW
26442011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
2645
2646 * c.opt: Add -Wdelete-non-virtual-dtor.
2647 * c-opts.c (c_common_handle_option): Include it in -Wall.
2648
4f60111f
NF
26492011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
2650
2651 PR bootstrap/49190
2652
2653 Revert:
2654 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2655
2656 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2657 not tree_common.
2658
4cc4f2f4
JJ
26592011-05-27 Jakub Jelinek <jakub@redhat.com>
2660
2661 PR c++/49165
2662 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
2663 C++ don't call c_common_truthvalue_conversion on void type arms.
2664
38e01f9e
NF
26652011-05-27 Nathan Froyd <froydnj@codesourcery.com>
2666
2667 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
2668 (stmt_list_stack): Define.
2669 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
2670 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
2671
92e948a8
NF
26722011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2673
2674 * c-common.c (warning_candidate_p): Check for BLOCKs.
2675
a2fc3e63
NF
26762011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2677
2678 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2679 not tree_common.
2680
0957c029
JJ
26812011-05-25 Jakub Jelinek <jakub@redhat.com>
2682
2683 * c-common.c (def_fn_type): Remove extra va_end.
2684
828fb3ba
JM
26852011-05-23 Jason Merrill <jason@redhat.com>
2686
2687 PR c++/48106
2688 * c-common.c (c_common_get_narrower): New.
2689 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
2690
dde05067
NF
26912011-05-23 Nathan Froyd <froydnj@codesourcery.com>
2692
2693 * c-common.h (check_function_arguments): Tweak prototype of
2694 check_function_arguments.
2695 * c-common.c (check_function_arguments): Likewise. Adjust
2696 calls to check_function_nonnull, check_function_format, and
2697 check_function_sentinel.
2698 (check_function_sentinel): Take a FUNCTION_TYPE rather than
2699 separate attributes and typelist arguments. Use
2700 FOREACH_FUNCTION_ARGS to iterate over argument types.
2701
3c0d13bf
PC
27022011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
2703
2704 * c-common.c (c_common_reswords): Reorder.
2705 * c-common.h (rid): Likewise.
2706
8242dd04
NF
27072011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2708
2709 * c-common.c (def_fn_type): Don't call build_function_type, call
2710 build_function_type_array or build_varargs_function_type_array
2711 instead.
2712 (c_common_nodes_and_builtins): Likewise.
2713
3d528853
NF
27142011-05-05 Nathan Froyd <froydnj@codesourcery.com>
2715
2716 * c-common.c (c_add_case_label): Omit the loc argument to
2717 build_case_label.
2718 * c-common.h (build_case_label): Remove.
2719 * c-semantics.c (build_case_label): Remove.
2720
a04a722b
JM
27212011-05-05 Joseph Myers <joseph@codesourcery.com>
2722
2723 * c-objc.h (objc_start_method_definition): Update prototype.
2724 * stub-objc.c (objc_start_method_definition): Add extra parameter.
2725
e19a18d4
NF
27262011-05-04 Nathan Froyd <froydnj@codesourcery.com>
2727
2728 * c-common.c (check_main_parameter_types): Reindent. Don't use
2729 TYPE_ARG_TYPES directly.
2730 (handle_nonnull_attribute): Likewise.
2731 (sync_resolve_params): Likewise.
2732 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
2733 to check_format_string.
2734 (handle_format_attribute): Likewise.
2735 (check_format_string): Take a function type to examine instead of
2736 a type list. Use a function_arg_iterator to step through argument
2737 types.
2738
c62c040f
RG
27392011-05-04 Richard Guenther <rguenther@suse.de>
2740
2741 * c-common.c (fix_string_type): Use size_int for index type bounds.
2742 (start_fname_decls): Do not pass NULL to build_int_cst.
2743 (c_init_attributes): Likewise.
2744 * c-lex.c (c_lex_with_flags): Likewise.
2745
c12ff9d8
JM
27462011-04-27 Jason Merrill <jason@redhat.com>
2747
2748 * c-common.c (make_tree_vector_from_list): New.
2749 * c-common.h: Declare it.
2750
304dfbe3
RG
27512011-04-26 Richard Guenther <rguenther@suse.de>
2752
2753 PR preprocessor/48248
2754 * c-ppoutput.c (maybe_print_line): Always optimize newlines
2755 for output size with -P.
2756
3c0d13bf
PC
27572011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
2758
2759 * c-common.c (struct c_common_resword): Add __underlying_type.
2760 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2761
04695783
JM
27622011-04-20 Jim Meyering <meyering@redhat.com>
2763
2764 * c-format.c (init_dollar_format_checking): Remove useless
2765 if-before-free.
2766
0dc33c3c
NP
27672011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
2768
2769 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 2770 (objc_detect_field_duplicates): New.
0dc33c3c 2771 * stub-objc.c: Likewise.
3c0d13bf 2772
c59633d9
NP
27732011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2774
2775 * stub-objc.c (objc_declare_protocols): Renamed to
2776 objc_declare_protocol.
2777 * c-objc.h: Likewise.
3c0d13bf 2778
32dabdaf
NP
27792011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2780
2781 * stub-objc.c (objc_declare_class): Updated argument name.
2782
81f653d6
NF
27832011-04-12 Nathan Froyd <froydnj@codesourcery.com>
2784
2785 * c-common.h (c_common_init_ts): Declare.
2786 * c-common.c (c_common_init_ts): Define.
2787
eb345401
NP
27882011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
2789
2790 * c-objc.h (objc_build_message_expr): Updated prototype.
2791 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 2792
a358e188
MJ
27932011-04-12 Martin Jambor <mjambor@suse.cz>
2794
2795 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
2796 of cgraph_node.
2797
e6313a78
RG
27982011-04-11 Richard Guenther <rguenther@suse.de>
2799
2800 * c-common.c (complete_array_type): Build a range type of
2801 proper type.
2802
dcf0c47e
NF
28032011-04-08 Nathan Froyd <froydnj@codesourcery.com>
2804
2805 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
2806 (handle_type_generic_attribute): Likewise.
2807
1ee44b26
JM
28082011-04-07 Jason Merrill <jason@redhat.com>
2809
2810 PR c++/48450
2811 * c-common.c (c_common_truthvalue_conversion): Don't ignore
2812 conversion from C++0x scoped enum.
2813
acce4e77
JM
28142011-04-06 Joseph Myers <joseph@codesourcery.com>
2815
2816 * c-target-def.h: New file.
2817 * c-target.def: New file.
2818 * c-target.h: New file.
2819 * c-common.c (targetcm): Don't define here.
2820 * c-common.h (default_handle_c_option): Declare.
2821 * c-format.c: Include c-target.h instead of target.h.
2822 * c-opts.c: Include c-target.h instead of target.h. Explicitly
2823 include tm.h.
2824 (default_handle_c_option): Move from targhooks.c.
2825
e2eefb55
JJ
28262011-03-29 Jakub Jelinek <jakub@redhat.com>
2827
2828 PR preprocessor/48248
2829 * c-ppoutput.c (print): Add src_file field.
2830 (init_pp_output): Initialize it.
2831 (maybe_print_line): Don't optimize by adding up to 8 newlines
2832 if map->to_file and print.src_file are different file.
2833 (print_line): Update print.src_file.
2834
ba78087b
KT
28352011-03-25 Kai Tietz <ktietz@redhat.com>
2836
2837 * c-ada-spec.c (compare_comment): Use filename_cmp
2838 instead of strcmp for filename.
2839
0edf1bb2
JL
28402011-03-25 Jeff Law <law@redhat.com>
2841
2842 * c-family/c-common.c (def_fn_type): Add missing va_end.
2843
c7dc8804
JM
28442011-03-25 Jason Merrill <jason@redhat.com>
2845
2846 * c.opt: Add -std=c++03.
2847
d1d879b1
EB
28482011-03-22 Eric Botcazou <ebotcazou@adacore.com>
2849
2850 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
2851
62d784f7
KT
28522011-03-17 Kai Tietz
2853
2854 PR target/12171
5050afdf
KT
2855 * c-pretty-print.c (pp_c_specifier_qualifier_list):
2856 Display allowed attributes for function pointer types.
2857 (pp_c_attributes_display): New function to display
2858 attributes having affects_type_identity flag set to true.
2859 * c-pretty-print.h (pp_c_attributes_display): New prototype.
2860
62d784f7
KT
2861 * c-common.c (c_common_attribute_table):
2862 Add new element.
2863 (c_common_format_attribute_table): Likewise.
2864
82d37118
JM
28652011-03-18 Jason Merrill <jason@redhat.com>
2866
49a000c3
JM
2867 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
2868 * c-common.h: Don't declare it here.
2869 * c-common.c: Or define it here.
2870 * c-opts.c (c_common_handle_option): Or set it here.
2871
82d37118
JM
2872 PR c++/35315
2873 * c-common.c (handle_transparent_union_attribute): Don't
2874 make a duplicate type in C++.
2875
17bc631c
JM
28762011-03-15 Jason Merrill <jason@redhat.com>
2877
2878 * c-common.c (max_constexpr_depth): New.
2879 * c-common.h: Declare it.
2880 * c-opts.c (c_common_handle_option): Set it.
2881 * c.opt (fconstexpr-depth): New option.
2882
1b9b91a6
JM
28832011-03-11 Jason Merrill <jason@redhat.com>
2884
f231b5ff
JM
2885 * c-common.c (attribute_takes_identifier_p): Add missing const.
2886
1b9b91a6
JM
2887 PR c++/46803
2888 * c-common.c (attribute_takes_identifier_p): Assume that an
2889 unknown attribute takes an identifier.
2890
a19e4d44
NF
28912011-03-07 Nathan Froyd <froydnj@codesourcery.com>
2892
2893 PR c/47786
2894 * c-common.c (c_type_hash): Call list_length instead of iterating
2895 through DECL_CHAIN. Rename 'i' to 'n_elements'.
2896
982d62f6
JJ
28972011-02-19 Jakub Jelinek <jakub@redhat.com>
2898
2899 PR c/47809
2900 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
2901
0a256240
NP
29022011-02-17 Iain Sandoe <iains@gcc.gnu.org>
2903
2904 * c.opt (fobjc-abi-version=) New.
2905 (fobjc-nilcheck): New.
2906
ba9e6dd5
NF
29072011-02-03 Nathan Froyd <froydnj@codesourcery.com>
2908
2909 PR c++/46890
2910 * c-common.h (keyword_is_decl_specifier): Declare.
2911 * c-common.c (keyword_is_decl_specifier): Define.
2912 (keyword_is_function_specifier): New function.
2913
7273813a
JJ
29142011-01-26 Jakub Jelinek <jakub@redhat.com>
2915
2916 PR c/47473
2917 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
2918 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
2919 REAL_TYPE.
2920
908ef79b
AC
29212011-01-26 Arnaud Charlet <charlet@adacore.com>
2922
2923 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
2924
237e9384
JJ
29252011-01-26 Jakub Jelinek <jakub@redhat.com>
2926
2927 PR pch/47430
2928 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
2929 after init_c_lex if pch_file is set.
2930
47ea1edf
DK
29312011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
2932
d4dba752 2933 PR c++/43601
47ea1edf
DK
2934 * c.opt (-fkeep-inline-dllexport): New switch.
2935
2aa9c6ae
RG
29362011-01-12 Richard Guenther <rguenther@suse.de>
2937
2938 PR middle-end/32511
2939 * c-common.c (handle_weak_attribute): Warn instead of error
2940 on declaring an inline function weak.
2941
7bd11157
TT
29422011-01-05 Tom Tromey <tromey@redhat.com>
2943
2944 * c-common.h (lvalue_error): Update.
2945 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
2946 not error.
2947
0e66e494 29482010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 2949
b4f588c4
NP
2950 PR objc/47075
2951 * c-objc.h (objc_finish_message_expr): Added argument to
2952 prototype.
2953
f4da8dce
NF
29542010-12-22 Nathan Froyd <froydnj@codesourcery.com>
2955
2956 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
2957 Use prototype_p.
2958
46270f14
NP
29592010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
2960
2961 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 2962 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 2963
4816c593
NF
29642010-12-10 Nathan Froyd <froydnj@codesourcery.com>
2965
2966 * c-common.h (readonly_error): Declare.
2967 * c-common.c (readonly_error): Define.
2968
7a6daeb0
NF
29692010-12-09 Nathan Froyd <froydnj@codesourcery.com>
2970
2971 * c-common.h (invalid_indirection_error): Declare.
2972 * c-common.c (invalid_indirection_error): Define.
2973
892f6119
RG
29742010-12-03 Richard Guenther <rguenther@suse.de>
2975
2976 PR c/46745
2977 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
2978 (pp_c_unary_expression): Likewise.
2979 (pp_c_expression): Likewise.
2980
6c39e757
NP
29812010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
2982
2983 * c-common.h (objc_finish_function): New.
2984 (objc_non_volatilized_type): Removed.
2985 (objc_type_quals_match): Removed.
2986 * stub-objc.c (objc_finish_function): New.
2987 (objc_non_volatilized_type): Removed.
2988 (objc_type_quals_match): Removed.
9faeb493 2989
7c475d11
JM
29902010-11-30 Joseph Myers <joseph@codesourcery.com>
2991
2992 * c-common.h (parse_optimize_options): Declare.
2993 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
2994 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
2995
71f3e391
JM
29962010-11-29 Joseph Myers <joseph@codesourcery.com>
2997
2998 * c-opts.c (check_deps_environment_vars): Use getenv instead of
2999 GET_ENVIRONMENT.
3000 * c-pch.c (O_BINARY): Don't define here.
3001 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
3002
d5fabb58
JM
30032010-11-25 Joseph Myers <joseph@codesourcery.com>
3004
3005 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
3006 targetm.except_unwind_info.
3007
299404a1
JM
30082010-11-23 Joseph Myers <joseph@codesourcery.com>
3009
3010 * c-opts.c (c_common_handle_option): Pass location to
3011 set_struct_debug_option.
3012
c98cd5bf
JM
30132010-11-23 Joseph Myers <joseph@codesourcery.com>
3014
3015 * c-common.c (visibility_options): Move from ../opts.c.
3016 * c-common.h (struct visibility_flags, visibility_options):
3017 Declare here.
3018 * c-opts.c (finish_options): Rename to c_finish_options.
3019 (c_common_init): Update call to finish_options.
3020
a9546771
NP
30212010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
3022
3023 PR objc/34033
3024 * c-lex.c (lex_string): Check that each string in an Objective-C
3025 string concat sequence starts with either one or zero '@', and
3026 that there are no spurious '@' signs at the end.
3027
24a57808
JM
30282010-11-20 Joseph Myers <joseph@codesourcery.com>
3029
3030 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
3031 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
3032 HANDLE_PRAGMA_VISIBILITY.
3033 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
3034 HANDLE_PRAGMA_VISIBILITY): Don't define.
3035 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
3036
a9aa2c3a
NF
30372010-11-20 Nathan Froyd <froydnj@codesourcery.com>
3038
3039 PR c++/16189
3040 PR c++/36888
3041 PR c++/45331
3042 * c-common.h (keyword_begins_type_specifier): Declare.
3043 (keyword_is_storage_class_specifier): Declare.
3044 (keyword_is_type_qualifier): Declare.
3045 * c-common.c (keyword_begins_type_specifier): New function.
3046 (keyword_is_storage_class_specifier): New function.
3047 (keyword_is_type_qualifier): Declare.
3048
5386338c
JM
30492010-11-19 Joseph Myers <joseph@codesourcery.com>
3050
3051 PR c/46547
3052 * c-common.c (in_late_binary_op): Define.
3053 (c_common_truthvalue_conversion): Check in_late_binary_op before
3054 calling c_save_expr.
3055 * c-common.h (in_late_binary_op): Declare.
3056
69ccdddb
JM
30572010-11-19 Joseph Myers <joseph@codesourcery.com>
3058
3059 * c-opts.c (c_common_handle_option): Update calls to
3060 set_struct_debug_option.
3061
6b192a09
NP
30622010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
3063
3064 * c-common.h (objc_declare_protocols): Added additional argument.
3065 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 3066
fb52b50a
NF
30672010-11-18 Nathan Froyd <froydnj@codesourcery.com>
3068
3069 PR c/33193
3070 * c-common.h (build_real_imag_expr): Declare.
3071 * c-semantics.c (build_real_imag_expr): Define.
3072
b37421c6
JM
30732010-11-17 Joseph Myers <joseph@codesourcery.com>
3074
3075 * c-opts.c (c_common_parse_file): Take no arguments.
3076 * c-common.h (c_common_parse_file): Update prototype.
3077
07078664
JJ
30782010-11-16 Jakub Jelinek <jakub@redhat.com>
3079
3080 PR c++/46401
3081 * c-common.c (warning_candidate_p): Don't track non-const calls
3082 or STRING_CSTs.
3083
c6a13190
ILT
30842010-11-15 Ian Lance Taylor <iant@google.com>
3085
3086 * c-lex.c (init_c_lex): Set macro debug callbacks if
3087 flag_dump_go_spec is set.
3088
925e8657
NP
30892010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
3090
3091 * c-common.h (objc_build_incr_expr_for_property_ref): New.
3092 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
3093
bb0a9581
NF
30942010-11-15 Nathan Froyd <froydnj@codesourcery.com>
3095
3096 PR preprocessor/45038
3097 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
3098 dialects.
3099
c5fa0890
JM
31002010-11-12 Joseph Myers <joseph@codesourcery.com>
3101
3102 * c-common.h (c_family_lang_mask): Declare.
3103 * c-opts.c (c_family_lang_mask): Make extern.
3104 * c-pragma.c (handle_pragma_diagnostic): Use
3105 control_warning_option.
3106
a4d8c676
JM
31072010-11-12 Joseph Myers <joseph@codesourcery.com>
3108
3109 * c-common.c (parse_optimize_options): Update call to
3110 decode_options.
3111 * c-common.h (c_common_handle_option): Update prototype.
3112 * c-opts.c (c_common_handle_option): Take location_t parameter and
3113 pass it to other functions.
3114
f954bd2c
JM
31152010-11-11 Joseph Myers <joseph@codesourcery.com>
3116
3117 * c-opts.c (warning_as_error_callback): Remove.
3118 (c_common_initialize_diagnostics): Don't call
3119 register_warning_as_error_callback.
3120 (c_common_handle_option): Handle -Werror=normalized= here.
3121
d8a07487
JM
31222010-11-10 Joseph Myers <joseph@codesourcery.com>
3123
3124 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
3125 in diagnostic.
3126 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
3127 letter.
3128 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
3129 Remove trailing '.' from diagnostics.
3130 * c.opt (Wwrite-strings_: Avoid '`' in help text.
3131
d5478783
JM
31322010-11-10 Joseph Myers <joseph@codesourcery.com>
3133
3134 * c-common.c (parse_optimize_options): Pass global_dc to
3135 decode_options.
3136 * c-opts.c (c_common_handle_option): Pass &global_options to
3137 set_Wstrict_aliasing.
3138 * c.opt (v): Don't mark Common or document here.
3139
91ebb981
IS
31402010-11-06 Iain Sandoe <iains@gcc.gnu.org>
3141
3142 PR target/44981
3143 * c-format.c (format_type): New type gcc_objc_string_format_type.
3144 (valid_stringptr_type_p): New.
3145 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 3146 (check_format_string): Pass expected type, use
91ebb981
IS
3147 valid_stringptr_type_p (), check that the format string types are
3148 consistent with the format specification.
3149 (decode_format_attr): Warn if NSString is used outside objective-c.
3150 (format_types_orig): Add NSString.
3151 (format_name): New.
3152 (format_flags): New.
3153 (check_format_arg): Handle format strings requiring an external parser.
3154 first_target_format_type: New variable.
3155 (handle_format_attribute): Set up first_target_format_type, pass the
3156 expected format arg string type to check_format_string().
3157 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
3158 * stub-objc.c (objc_string_ref_type_p): New.
3159 (objc_check_format_arg): New.
3160
bede2adc
NP
31612010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
3162
9faeb493 3163 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
3164 * c-common.h (objc_build_class_component_ref): New.
3165 * stub-objc.c (objc_build_class_component_ref): New.
3166
9a179d01
NP
31672010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
3168
3169 * c.opt (Wproperty-assign-default): New option.
3170
22d8d616
NP
31712010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
3172
3173 Implemented -fobjc-std=objc1 flag.
3174 * c.opt (fobjc-std=objc1): New option.
3175
2debdb4f
NP
31762010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
3177
3178 Implemented format and noreturn attributes for Objective-C methods.
3179 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
3180 attribute for Objective-C methods.
3181
ec52b111
JM
31822010-10-31 Jason Merrill <jason@redhat.com>
3183
3184 * c-common.c (conversion_warning, warn_for_collisions_1): Use
3185 EXPR_LOC_OR_HERE.
3186
46a88c12
NP
31872010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
3188
3189 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
3190 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
3191 (objc_add_property_declaration): Removed arguments for copies and
3192 ivar.
3193 (objc_build_getter_call): Renamed to
3194 objc_maybe_build_component_ref.
3195 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
3196 (objc_is_property_ref): New.
3197 * c-common.c (c_common_reswords): Removed copies and ivar.
3198 * stub-objc.c (objc_add_property_declaration): Removed arguments
3199 for copies and ivar.
3200 (objc_build_getter_call): Renamed to
3201 objc_maybe_build_component_ref.
3202 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
3203 (objc_is_property_ref): New.
9faeb493 3204
1e4bf85b
AC
32052010-10-29 Arnaud Charlet <charlet@adacore.com>
3206 Matthew Gingell <gingell@adacore.com>
3207
3208 * c-ada-spec.c (separate_class_package): New function.
3209 (pp_ada_tree_identifier): Prefix references to C++ classes with the
3210 name of their enclosing package.
3211 (print_ada_declaration): Use separate_class_package.
3212
81f0bab2
JM
32132010-10-27 Jason Merrill <jason@redhat.com>
3214
2b08f2c5
JM
3215 * c-common.c (c_common_reswords): Add __is_literal_type.
3216 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
3217
81f0bab2
JM
3218 * c-common.c (check_case_value): Remove special C++ code.
3219
200290f2
NP
32202010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
3221
3222 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
3223 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
3224 and RID_LAST_PATTR.
3225 (objc_add_property_declaration): Added additional arguments.
3226 (objc_property_attribute_kind): Removed.
3227 (objc_set_property_attr): Removed.
3228 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
3229 copy and nonatomic.
3230 * stub-objc.c (objc_add_property_declaration): Added additional
3231 arguments.
3232 (objc_set_property_attr): Removed.
9faeb493 3233
f614132b
NP
32342010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
3235
3236 * c-common.h (objc_add_property_variable): Renamed to
3237 objc_add_property_declaration. Added location argument.
3238 * stub-objc.c (objc_add_property_variable): Same change.
3239
b8a18805
NP
32402010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
3241
3242 * c-common.h (objc_maybe_printable_name): New.
3243 * stub-objc.c (objc_maybe_printable_name): New.
3244
30cd1c5d
AS
32452010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3246 Andrew Pinski <pinskia@gmail.com>
3247
3248 * c-common.h (c_common_mark_addressable_vec): Declare.
3249 * c-common.c (c_common_mark_addressable_vec): New function.
3250
249a82c4
NP
32512010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
3252
3253 * c-common.h (objc_set_method_type): Removed.
3254 (objc_add_method_declaration): Added boolean argument.
3255 (objc_start_method_definition): Same change.
3256 (objc_build_method_signature): Same change.
3257 * stub-objc.c (objc_set_method_type): Removed.
3258 (objc_add_method_declaration): Added boolean argument.
3259 (objc_start_method_definition): Same change.
3260 (objc_build_method_signature): Same change.
3261
977e30bc
NP
32622010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
3263
3264 * c-common.h (finish_file): Removed.
3265 (objc_write_global_declarations): New.
3266 * c-opts.c (c_common_parse_file): Do not call finish_file.
3267 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 3268
da57d1b9
NP
32692010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
3270
3271 Implemented parsing @synthesize and @dynamic for
3272 Objective-C/Objective-C++.
3273 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
3274 (objc_add_synthesize_declaration): New.
3275 (objc_add_dynamic_declaration): New.
3276 * c-common.c (c_common_reswords): Add synthesize and dynamic.
3277 * stub-objc.c (objc_add_synthesize_declaration): New.
3278 (objc_add_dynamic_declaration): New.
9faeb493 3279
0069111f
MM
32802010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
3281
3282 PR target/46041
3283 * c-cppbuiltin.c (mode_has_fma): Move function here from
3284 builtins.c. Don't use the fma optab, instead just use the
3285 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
3286 using -save-temps.
3287
e426b47b
NP
32882010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
3289
3290 Merge from 'apple/trunk' branch on FSF servers.
0069111f 3291
e426b47b
NP
3292 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
3293
9faeb493 3294 Radar 4330422
e426b47b
NP
3295 * c-common.h (objc_non_volatilized_type): New declaration
3296 * stub-objc.c (objc_non_volatilized_type): New stub.
3297
90fbfdc3
NP
32982010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
3299
e426b47b 3300 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
3301
3302 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
3303
9faeb493 3304 Radar 4133425
90fbfdc3 3305 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 3306 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 3307
c37d8c30
IS
33082010-10-17 Iain Sandoe <iains@gcc.gnu.org>
3309
3310 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
3311 * c-common.h (enum rid): Add RID_AT_PACKAGE.
3312 (objc_ivar_visibility_kind): New enum.
3313 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 3314 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
3315 visibility enum.
3316
1b1562a5
MM
33172010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3318
3319 * c-cppbuiltin.c (builtin_define_float_constants): Emit
3320 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
3321 has the appropriate fma builtins.
3322 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
3323
668ea4b1
IS
33242010-10-14 Iain Sandoe <iains@gcc.gnu.org>
3325
1b1562a5 3326 merge from FSF apple 'trunk' branch.
668ea4b1 3327 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 3328
668ea4b1
IS
3329 Radars 4436866, 4505126, 4506903, 4517826
3330 * c-common.c (c_common_resword): Define @property and its attributes.
3331 * c-common.h: Define property attribute enum entries.
3332 (OBJC_IS_PATTR_KEYWORD): New.
3333 (objc_property_attribute_kind): New enum.
3334 Declare objc_set_property_attr (), objc_add_property_variable (),
3335 objc_build_getter_call () and objc_build_setter_call ().
3336 * stub-objc.c (objc_set_property_attr): New stub.
3337 (objc_add_property_variable): Likewise.
3338 (objc_build_getter_call): Likewise.
3339 (objc_build_setter_call) Likewise.
1b1562a5 3340
a1178b30
IS
33412010-10-13 Iain Sandoe <iains@gcc.gnu.org>
3342
1b1562a5 3343 merge from FSF apple 'trunk' branch.
a1178b30
IS
3344 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
3345
3346 Radar 3803157 (method attributes)
3347 * c-common.c (handle_deprecated_attribute): Recognize
3348 objc methods as valid declarations.
3349 * c-common.h: Declare objc_method_decl ().
1b1562a5 3350 * stub-objc.c (objc_method_decl): New stub.
a1178b30 3351
a75bfaa6
JM
33522010-10-08 Joseph Myers <joseph@codesourcery.com>
3353
3354 * c-common.c (parse_optimize_options): Call
3355 decode_cmdline_options_to_array_default_mask before
3356 decode_options. Update arguments to decode_options.
3357 * c-common.h (c_common_init_options_struct): Declare.
3358 * c-opts.c (c_common_init_options_struct): New. Split out from
3359 c_common_init_options.
3360
f05b9d93
NP
33612010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
3362
3363 Implemented fast enumeration for Objective-C.
3364 * c-common.h (objc_finish_foreach_loop): New.
3365 * stub-objc.c (objc_finish_foreach_loop): New.
3366
1ebe4b4f
JM
33672010-10-05 Joseph Myers <joseph@codesourcery.com>
3368
3369 * c-common.h (struct diagnostic_context): Don't declare here.
3370 (c_common_initialize_diagnostics): Declare using
3371 diagnostic_context typedef.
3372 * c-opts.c (c_common_handle_option): Pass global_dc to
3373 handle_generated_option.
3374
d4d24ba4
JM
33752010-10-04 Joseph Myers <joseph@codesourcery.com>
3376
3377 * c-opts.c (c_common_handle_option): Pass &global_options_set to
3378 handle_generated_option.
3379
478a1c5b
ILT
33802010-10-03 Ian Lance Taylor <iant@google.com>
3381
3382 * c.opt (-fplan9-extensions): New option.
3383
82a1c2fe
FXC
33842010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3385
3386 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
3387 Remove.
3388 (c_cpp_builtins): Call functions from cppbuiltin.c instead
3389 of duplicating code.
3390
92902b1b
IS
33912010-09-30 Iain Sandoe <iains@gcc.gnu.org>
3392
3393 * c-common.c: Add two new entries for @optional
3394 and @required keywords.
3395
3396 merge from FSF 'apple/trunk' branch.
3397 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
3398
3399 Radar 4386773
3400 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
3401 objective-c keywords.
3402 (objc_set_method_opt): New declaration.
3403 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 3404
46625112
JM
34052010-09-30 Joseph Myers <joseph@codesourcery.com>
3406
3407 * c-common.c (handle_optimize_attribute): Pass &global_options to
3408 cl_optimization_save and cl_optimization_restore.
3409 * c-opts.c (c_common_handle_option): Pass &global_options to
3410 handle_generated_option.
3411 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
3412 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
3413 &global_options to cl_optimization_restore.
3414
49b91f05
NP
34152010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
3416
3417 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
3418 Objective-C/Objective-C++ keywords.
3419
13ed556f 34202010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 3421
9faeb493
UB
3422 Merge from 'apple/trunk' branch on FSF servers.
3423
a6341d57
NP
3424 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
3425
3426 Radar 4281748
3427 * c-common.h (objc_check_global_decl): New declaration.
3428 * stub-objc.c (objc_check_global_decl): New stub.
3429
f0036cca
JM
34302010-09-29 Joseph Myers <joseph@codesourcery.com>
3431
3432 * c.opt: Don't use VarExists.
3433
e3339d0f
JM
34342010-09-29 Joseph Myers <joseph@codesourcery.com>
3435
3436 * c-common.c (c_cpp_error): Update names of diagnostic_context
3437 members.
3438 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
3439 cl_optimization members.
3440 * c-opts.c (warning_as_error_callback, c_common_handle_option,
3441 sanitize_cpp_opts, finish_options): Update names of cpp_options
3442 members.
3443
1973201f
NP
34442010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
3445
3446 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
3447 (objc_is_reserved_word): Removed.
3448 * c-common.c: Updated comments.
3449 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
3450 objc_is_reserved_word.
3451 * stub-objc.c (objc_is_reserved_word): Removed.
3452
f7e71da5
IS
34532010-09-28 Iain Sandoe <iains@gcc.gnu.org>
3454
9faeb493 3455 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
3456 include attributes.
3457 (objc_start_method_definition): Likewise.
3458 (objc_build_keyword_decl): Likewise.
3459 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
3460 (objc_start_method_definition): Likewise.
3461 (objc_build_keyword_decl): Likewise.
3462
c165dca7
IS
34632010-09-28 Iain Sandoe <iains@gcc.gnu.org>
3464
3465 * c-common.h (objc_start_class_interface): Adjust prototype.
3466 (objc_start_category_interface): Likewise.
3467 (objc_start_protocol): Likewise.
3468 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
3469 (objc_start_class_interface): Likewise.
3470 (objc_start_category_interface): Likewise.
3471
7458026b
ILT
34722010-09-27 Ian Lance Taylor <iant@google.com>
3473
3474 * c-common.c (c_common_attribute_table): Add no_split_stack.
3475 (handle_no_split_stack_attribute): New static function.
3476
b581b85b
NP
34772010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
3478
9faeb493 3479 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
3480
3481 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
3482
9faeb493 3483 Radar 4229905
b581b85b
NP
3484 * c-common.h (objc_have_common_type): New declaration.
3485 * stub-objc.c (objc_have_common_type): New stub.
3486
3487 2005-06-22 Ziemowit Laski <zlaski@apple.com>
3488
3489 Radar 4154928
3490 * c-common.h (objc_common_type): New prototype.
9faeb493 3491 * stub-objc.c (objc_common_type): New stub.
b581b85b 3492
46a4da10
JH
34932010-09-24 Jan Hubicka <jh@suse.cz>
3494
3495 * c-common.c (handle_leaf_attribute): New function.
3496 (struct attribute_spec c_common_att): Add leaf.
3497
e200444e
JM
34982010-09-22 Joseph Myers <joseph@codesourcery.com>
3499
3500 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
3501 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
3502 -dump, -dump=, -imacros, -imacros=, -include, -include=,
3503 -include-barrier, -include-directory, -include-directory=,
3504 -include-directory-after, -include-directory-after=,
3505 -include-prefix, -include-prefix=, -include-with-prefix,
3506 -include-with-prefix=, -include-with-prefix-after,
3507 -include-with-prefix-after=, -include-with-prefix-before,
3508 -include-with-prefix-before=, -no-integrated-cpp,
3509 -no-line-commands, -no-standard-includes, -no-warnings, -output,
3510 -output=, -pedantic, -pedantic-errors, -preprocess,
3511 -print-missing-file-dependencies, -trace-includes, -traditional,
3512 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
3513 -user-dependencies, -verbose, -write-dependencies,
3514 -write-user-dependencies, no-integrated-cpp, traditional): New.
3515
29a80ea6
NP
35162010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
3517
3518 PR objc/23710
ac1fc2fc
NP
3519 * c-common.h (objc_start_method_definition): Return bool instead
3520 of void.
3521 * stub-objc.c (objc_start_method_definition): Return bool instead
3522 of void.
3523
35242010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
3525
3526 PR objc/25965
3527 * c-common.h (objc_get_interface_ivars): New declaration.
3528 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 3529
de621752
ILT
35302010-09-15 Ian Lance Taylor <iant@google.com>
3531
3532 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 3533 messages. Remove period at end of warning message.
de621752 3534
ba885ec5
NS
35352010-09-09 Nathan Sidwell <nathan@codesourcery.com>
3536
3537 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
3538 (handle_alias_attribute): ... here.
3539 (handle_ifunc_attribute): New.
3540
c5ee1358
MM
35412010-09-06 Mark Mitchell <mark@codesourcery.com>
3542
3543 * c-common.h (do_warn_double_promotion): Declare.
3544 * c-common.c (do_warn_double_promotion): Define.
3545
0a0b3574
MM
35462010-09-05 Mark Mitchell <mark@codesourcery.com>
3547
3548 * c.opt (Wdouble-promotion): New.
3549
d1779886
JM
35502010-09-02 Joseph Myers <joseph@codesourcery.com>
3551
3552 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
3553 fvtable-thunks, fxref): Mark no longer supported in help text.
3554
2d2bd949
JM
35552010-09-02 Joseph Myers <joseph@codesourcery.com>
3556
3557 * c.opt (Wimport, fall-virtual, falt-external-templates,
3558 fdefault-inline, fenum-int-equiv, fexternal-templates,
3559 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
3560 fname-mangling-version-, fnew-abi, fnonnull-objects,
3561 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
3562 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
3563 applicable.
3564 (fhandle-exceptions): Mark with Alias and Warn.
3565 * c-opts.c (c_common_handle_option): Don't handle options marked
3566 as ignored.
3567
5de8299c
JM
35682010-09-02 Joseph Myers <joseph@codesourcery.com>
3569
3570 * c.opt (Wcomments, Werror-implicit-function-declaration,
3571 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
3572 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
3573 aliases.
3574 * c-common.c (option_codes): Use OPT_Wcomment instead of
3575 OPT_Wcomments.
3576 * c-opts.c (warning_as_error_callback, c_common_handle_option):
3577 Don't handle options marked as aliases.
3578
0ceb0201
RG
35792010-08-25 Richard Guenther <rguenther@suse.de>
3580
3581 * c-common.c (c_common_get_alias_set): Remove special
3582 handling for pointers.
3583
ac47786e
NF
35842010-08-20 Nathan Froyd <froydnj@codesourcery.com>
3585
3586 * c-common.c: Use FOR_EACH_VEC_ELT.
3587 * c-gimplify.c: Likewise.
3588 * c-pragma.c: Likewise.
3589
c878765b
JM
35902010-08-16 Joseph Myers <joseph@codesourcery.com>
3591
3592 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
3593 RejectDriver.
3594 (MMDX): Change back to MMD. Mark NoDriverArg instead of
3595 RejectDriver.
3596 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
3597 instead of OPT_MDX and OPT_MMDX.
3598
603349bf
JM
35992010-08-16 Joseph Myers <joseph@codesourcery.com>
3600
3601 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
3602
644fa7ac
JM
36032010-08-12 Joseph Myers <joseph@codesourcery.com>
3604
3605 * c.opt (MD, MMD): Change to MDX and MMDX.
3606 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
3607
481e1176
JM
36082010-08-11 Joseph Myers <joseph@codesourcery.com>
3609
3610 * c-opts.c (c_common_handle_option): Call handle_generated_option
3611 instead of handle_option.
3612
ac8dc9f7
NF
36132010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3614
3615 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
3616 (maybe_apply_renaming_pragma): Delete unneeded declarations.
3617
4f8c876d
NF
36182010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3619
3620 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
3621 (pending_redefine_extname): Change type to a VEC.
3622 (add_to_renaming_pragma_list): Update for new type of
3623 pending_redefine_extname.
ac8dc9f7 3624 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 3625
3b0c690e
AC
36262010-08-04 Arnaud Charlet <charlet@adacore.com>
3627
3628 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
3629 visited.
3630 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
3631 decide whether a type has already been declared/seen.
3632 Do not go to the original type.
3633 (dump_nested_types): New parameter forward.
3634 Generate forward declaration if needed and mark type as visited.
3635 (print_ada_declaration): Call dump_nested_types if not already done.
3636 Mark types as visited.
3637
1890bccc
JM
36382010-08-03 Joseph Myers <joseph@codesourcery.com>
3639
3640 * c.opt (-print-pch-checksum): Remove option.
3641 * c-opts.c (c_common_handle_option): Don't handle
3642 OPT_print_pch_checksum.
3643
5f20c657
JM
36442010-07-27 Joseph Myers <joseph@codesourcery.com>
3645
3646 * c-common.h (c_common_handle_option): Update prototype and return
3647 value type.
3648 * c-opts.c (c_common_handle_option): Update prototype and return
3649 value type. Update calls to handle_option and
3650 enable_warning_as_error.
3651
f551f80c
JJ
36522010-07-27 Jakub Jelinek <jakub@redhat.com>
3653
3654 PR c/45079
3655 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
3656
61ff2bdc
JM
36572010-07-27 Joseph Myers <joseph@codesourcery.com>
3658
3659 * c-common.h (c_common_missing_argument): Remove.
3660 * c-opts.c (c_common_missing_argument): Remove.
3661 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
3662 idirafter, imacros, include, isysroot, isystem, iquote): Add
3663 MissingArgError.
3664 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
3665
7a9bf9a4
JM
36662010-07-27 Joseph Myers <joseph@codesourcery.com>
3667
3668 * c-common.h (c_common_option_lang_mask,
3669 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
3670 New.
3671 (c_common_init_options): Update prototype.
3672 * c-opts.c (c_common_option_lang_mask): New.
3673 (c_common_initialize_diagnostics): Split out of
3674 c_common_init_options.
3675 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
3676 New.
3677 (c_common_init_options): Update prototype. Use decoded options in
3678 search for -lang-asm.
3679
910ad8de
NF
36802010-07-15 Nathan Froyd <froydnj@codesourcery.com>
3681
3682 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
3683 * c-format.c: Likewise.
3684
718f9c0f
MLI
36852010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
3686
3687 * c-common.h: Include diagnostic-core.h. Error if already
3688 included.
3689 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
3690
4d451982
MLI
36912010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3692
3693 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
3694 Do not include expr.h
3695 (vector_mode_valid_p): Move here.
3696
119fe915
SB
36972010-06-21 DJ Delorie <dj@redhat.com>
3698
3699 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
3700 allow these pragmas anywhere.
3701
37022010-06-14 Jakub Jelinek <jakub@redhat.com>
3703
3704 PR bootstrap/44509
3705 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
3706 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
3707 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
3708 ggc_strdup instead of xstrdup.
3709
37102010-06-10 Jakub Jelinek <jakub@redhat.com>
3711
3712 * c-cppbuiltin.c: Include cpp-id-data.h.
3713 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
3714 (lazy_hex_fp_value): New function.
3715 (builtin_define_with_hex_fp_value): Provide definitions lazily.
3716
6662d794
MLI
37172010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3718
3719 * c-gimplify.c: Do not include tree-flow.h
3720
38f8b050
JR
37212010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
3722
3723 PR other/44034
3724 * c-common.c: Rename targetm member:
3725 targetm.enum_va_list -> targetm.enum_va_list_p
3726
9589f23e
AS
37272010-06-28 Anatoly Sokolov <aesok@post.ru>
3728
3729 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
3730
3b06d379
SB
37312010-06-28 Steven Bosscher <steven@gcc.gnu.org>
3732
3733 * c-cppbuiltin.c: Do not include except.h.
3734
d166d4c3
AK
37352010-06-24 Andi Kleen <ak@linux.intel.com>
3736
9faeb493
UB
3737 * c-common.c (warn_for_omitted_condop): New.
3738 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 3739
70cb8be6
JM
37402010-06-21 Joseph Myers <joseph@codesourcery.com>
3741
3742 * c.opt (lang-objc): Remove.
3743 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
3744
a4c97feb
JR
37452010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
3746
3747 * c-opts.c: Include "tm_p.h".
3748
6e2f1956
JM
37492010-06-20 Joseph Myers <joseph@codesourcery.com>
3750
3751 * c-common.c (parse_optimize_options): Update call to
3752 decode_options.
3753
bc87224e
NF
37542010-06-18 Nathan Froyd <froydnj@codesourcery.com>
3755
3756 * c-common.c (record_types_used_by_current_var_decl): Adjust for
3757 new type of types_used_by_cur_var_decl.
3758
b49cf425
JR
37592010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
3760
3761 PR bootstrap/44512
3762 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
3763 for C++ standard compliance.
3764
59f9c2ed
JM
37652010-06-16 Jason Merrill <jason@redhat.com>
3766
3767 * c.opt: Add -Wnoexcept.
3768
33766b66
RG
37692010-06-16 Richard Guenther <rguenther@suse.de>
3770
3771 PR c/44555
3772 * c-common.c (c_common_truthvalue_conversion): Remove
3773 premature and wrong optimization concering ADDR_EXPRs.
3774
eff7e30c
AC
37752010-06-15 Arnaud Charlet <charlet@adacore.com>
3776
3777 * c-ada-spec.c (dump_sloc): Remove column info.
3778 (is_simple_enum): New function.
3779 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
3780 enum types when relevant.
3781
6312e84d
MLI
37822010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3783
9faeb493 3784 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
3785 location.
3786
1cb42611
JM
37872010-06-10 Joseph Myers <joseph@codesourcery.com>
3788
3789 * c-opts.c (c_common_handle_option): Don't handle
3790 OPT_fshow_column.
3791
a9429e29
LB
37922010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3793
3794 * c-pragma.c (push_alignment): Use typed GC allocation.
3795 (handle_pragma_push_options): Likewise.
3796
3797 * c-common.c (parse_optimize_options): Likewise.
3798
3799 * c-common.h (struct sorted_fields_type): Add variable_size GTY
3800 option.
3801
5498f011
JM
38022010-06-07 Joseph Myers <joseph@codesourcery.com>
3803
3804 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
3805 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3806 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3807 flag_signed_bitfields, warn_strict_null_sentinel,
3808 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
3809 flag_gen_declaration, flag_no_gnu_keywords,
3810 flag_implement_inlines, flag_implicit_templates,
3811 flag_implicit_inline_templates, flag_optional_diags,
3812 flag_elide_constructors, flag_default_inline, flag_rtti,
3813 flag_conserve_space, flag_access_control, flag_check_new,
3814 flag_new_for_scope, flag_weak, flag_working_directory,
3815 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
3816 flag_enforce_eh_specs, flag_threadsafe_statics,
3817 flag_pretty_templates): Remove.
3818 * c-common.h (flag_preprocess_only, flag_nil_receivers,
3819 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
3820 flag_replace_objc_classes, flag_undef, flag_no_builtin,
3821 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3822 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3823 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
3824 flag_no_gnu_keywords, flag_implement_inlines,
3825 flag_implicit_templates, flag_implicit_inline_templates,
3826 flag_optional_diags, flag_elide_constructors, flag_default_inline,
3827 flag_rtti, flag_conserve_space, flag_access_control,
3828 flag_check_new, flag_new_for_scope, flag_weak,
3829 flag_working_directory, flag_use_cxa_atexit,
3830 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
3831 flag_threadsafe_statics, flag_pretty_templates,
3832 warn_strict_null_sentinel): Remove.
3833 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
3834 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
3835 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
3836 fimplicit-inline-templates, fimplicit-templates,
3837 flax-vector-conversions, fms-extensions, fnil-receivers,
3838 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
3839 frtti, fshort-double, fshort-enums, fshort-wchar,
3840 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
3841 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
3842 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
3843 gen-decls, undef): Use Var.
3844 (fdefault-inline, foptional-diags): Document as doing nothing.
3845 * c-opts.c (c_common_handle_option): Remove cases for options now
3846 using Var. Mark ignored options as such.
3847
39dabefd
SB
38482010-06-05 Steven Bosscher <steven@gcc.gnu.org>
3849
9faeb493 3850 * c-common.c: Moved to here from parent directory.
39dabefd
SB
3851 * c-common.def: Likewise.
3852 * c-common.h: Likewise.
3853 * c-cppbuiltin.c: Likewise.
3854 * c-dump.c: Likewise.
3855 * c-format.c: Likewise.
3856 * c-format.h : Likewise.
3857 * c-gimplify.c: Likewise.
3858 * c-lex.c: Likewise.
3859 * c-omp.c: Likewise.
3860 * c.opt: Likewise.
3861 * c-opts.c: Likewise.
3862 * c-pch.c: Likewise.
3863 * c-ppoutput.c: Likewise.
3864 * c-pragma.c: Likewise.
3865 * c-pragma.h: Likewise.
3866 * c-pretty-print.c: Likewise.
3867 * c-pretty-print.h: Likewise.
3868 * c-semantics.c: Likewise.
3869 * stub-objc.c: Likewise.
3870
3871 * c-common.c: Include gt-c-family-c-common.h.
3872 * c-pragma.c: Include gt-c-family-c-pragma.h.
3873\f
23a5b65a 3874Copyright (C) 2010-2014 Free Software Foundation, Inc.
39dabefd
SB
3875
3876Copying and distribution of this file, with or without modification,
3877are permitted in any medium without royalty provided the copyright
3878notice and this notice are preserved.