]> gcc.gnu.org Git - gcc.git/blame - gcc/c-family/ChangeLog
mode-switching.c: Use rtx_insn
[gcc.git] / gcc / c-family / ChangeLog
CommitLineData
18767f65
MLI
12014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
2
3 PR fortran/44054
4 * c-opts.c: Include tree-diagnostics.h.
5 (c_diagnostic_finalizer): New.
6 (c_common_initialize_diagnostics): Use it.
7
b4413594
MLI
82014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
9
10 PR preprocessor/51303
11 * c-common.c (struct reason_option_codes_t option_codes):
12 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
13
43f9a13c
MLI
142014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
15
16 PR c/60975
17 PR c/53063
18 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
19 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
20 (c_common_post_options): Call init_global_opts_from_cpp.
21 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
22
04159acf
MP
232014-08-19 Marek Polacek <polacek@redhat.com>
24
25 PR c++/62153
26 * c-common.c (maybe_warn_bool_compare): New function.
27 * c-common.h (maybe_warn_bool_compare): Declare.
28 * c.opt (Wbool-compare): New option.
29
35aff4fb
MP
302014-08-19 Marek Polacek <polacek@redhat.com>
31
32 * c.opt (Wc99-c11-compat): New option.
33
177cce46
MP
342014-08-19 Marek Polacek <polacek@redhat.com>
35
36 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
37 to warn_c90_c99_compat.
38 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
39 to -1.
40
6ae9194f
MLI
412014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
42 Steven Bosscher <steven@gcc.gnu.org>
43
44 PR c/52952
45 * c-format.c: Add extra_arg_loc and format_string_loc to struct
46 format_check_results.
47 (check_function_format): Use true and add comment for boolean
48 argument.
49 (finish_dollar_format_checking): Use explicit location when warning.
50 (check_format_info): Likewise.
51 (check_format_arg): Set extra_arg_loc and format_string_loc.
52 (check_format_info_main): Use explicit location when warning.
53 (check_format_types): Pass explicit location.
54 (format_type_warning): Likewise.
55
8e54f6d3
MLI
562014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
57
58 PR fortran/44054
59 * c-format.c: Handle Fortran flags.
60
cd4e76fc
IZ
612014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
62
63 PR other/61962
64 * array-notation-common.c (find_rank): Added handling for other
65 types of references.
66
f3bede71
MP
672014-08-10 Marek Polacek <polacek@redhat.com>
68
69 PR c/51849
70 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
71 * c.opt (Wc90-c99-compat): Add option.
72
9f25a338
TS
732014-08-07 Trevor Saunders <tsaunders@mozilla.com>
74
75 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
76
62e4eb35
MP
772014-08-03 Marek Polacek <polacek@redhat.com>
78
79 * c-common.c (check_case_value): Add location_t parameter. Use it.
80 (c_add_case_label): Pass loc to check_case_value.
81
b787e7a2
TS
822014-08-02 Trevor Saunders <tsaunders@mozilla.com>
83
84 * cilk.c: Use hash_map instead of pointer_map.
85
6e2830c3
TS
862014-08-02 Trevor Saunders <tsaunders@mozilla.com>
87
88 * c-gimplify.c: Use hash_set instead of pointer_set.
89
a7ee52fb
IZ
902014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
91
92 PR middle-end/61455
93 * array-notation-common.c (extract_array_notation_exprs): Handling
94 of DECL_EXPR added.
95
944fa280
JJ
962014-08-01 Jakub Jelinek <jakub@redhat.com>
97
98 * c-common.h (min_align_of_type): Removed prototype.
99 * c-common.c (min_align_of_type): Removed.
100 * c-ubsan.h (ubsan_maybe_instrument_reference,
101 ubsan_maybe_instrument_member_call): New prototypes.
102 * c-ubsan.c: Include stor-layout.h and builtins.h.
103 (ubsan_maybe_instrument_reference_or_call,
104 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
105 functions.
106
b4dfdc11
MG
1072014-07-31 Marc Glisse <marc.glisse@inria.fr>
108
109 PR c++/60517
110 * c.opt (-Wreturn-local-addr): Move to common.opt.
111
a41844e5
JM
1122014-07-30 Jason Merrill <jason@redhat.com>
113
114 PR c++/61659
115 PR c++/61687
116 Revert:
117 * c.opt (-fuse-all-virtuals): New.
118
976d5a22
TT
1192014-07-30 Tom Tromey <tromey@redhat.com>
120
121 PR c/59855
122 * c.opt (Wdesignated-init): New option.
123 * c-common.c (c_common_attribute_table): Add "designated_init".
124 (handle_designated_init): New function.
125
cdc94aca
MP
1262014-07-24 Marek Polacek <polacek@redhat.com>
127
128 PR c/57653
129 * c-opts.c (c_finish_options): If -imacros is in effect, return.
130
f41373b6
DS
1312014-07-16 Dodji Seketeli <dodji@redhat.com>
132
133 PR preprocessor/60723 - missing system-ness marks for macro tokens
134 * c-ppoutput.c (struct print::prev_was_system_token): New data
135 member.
136 (init_pp_output): Initialize it.
137 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
138 (do_line_change): Return a flag saying if a line marker was
139 emitted or not.
140 (scan_translation_unit): Detect if the system-ness of the token we
141 are about to emit is different from the one of the previously
142 emitted token. If so, emit a line marker. Avoid emitting useless
143 adjacent line markers. Avoid emitting line markers for tokens
144 originating from the expansion of built-in macros.
145 (scan_translation_unit_directives_only): Adjust.
146
4d661eaa
MP
1472014-07-15 Marek Polacek <polacek@redhat.com>
148
149 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
150 TYPE_MAX_VALUE is NULL.
151
b108f48f
JJ
1522014-07-14 Jakub Jelinek <jakub@redhat.com>
153
154 PR middle-end/61294
155 * c.opt (Wmemset-transposed-args): New warning.
156
c0221884
JM
1572014-07-10 Jason Merrill <jason@redhat.com>
158
159 PR c++/61659
160 PR c++/61687
161 * c.opt (-fuse-all-virtuals): New.
162
63dfbb95
RB
1632014-07-09 Richard Biener <rguenther@suse.de>
164
165 PR c-family/61741
166 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
167 using unsigned arithmetic if overflow does not wrap instead of
168 if overflow is undefined.
169
773ec47f
MP
1702014-07-06 Marek Polacek <polacek@redhat.com>
171
172 PR c/6940
173 * c.opt (Wsizeof-array-argument): New option.
174
00a7ba58
JJ
1752014-07-03 Jakub Jelinek <jakub@redhat.com>
176
177 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
178 comments->count <= 1, as comments->entries might be NULL.
179
52ec0ea3
MP
1802014-07-01 Marek Polacek <polacek@redhat.com>
181
182 * c.opt (Wint-conversion): New option.
183
d5c3d343
MP
1842014-07-01 Marek Polacek <polacek@redhat.com>
185
186 PR c/58286
187 * c.opt (Wincompatible-pointer-types): New option.
188
6e7ceb17
PC
1892014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
190
191 PR c++/51400
192 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
193 Do not discard TYPE_QUALS of type.
194
da73100b
JM
1952014-06-26 Jason Merrill <jason@redhat.com>
196
197 * c-common.h (enum cxx_dialect): Add cxx1z.
198 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
199 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
200
08eedf75
TJ
2012014-06-26 Teresa Johnson <tejohnson@google.com>
202
203 * c-common.h (get_dump_info): Declare.
204 * c-gimplify.c (c_genericize): Use saved dump files.
205 * c-opts.c (c_common_parse_file): Begin and end dumps
206 once around parsing invocation.
207 (get_dump_info): New function.
208
7b56b2f8
MP
2092014-06-23 Marek Polacek <polacek@redhat.com>
210 Andrew MacLeod <amacleod@redhat.com>
211
212 PR c/61553
213 * c-common.c (get_atomic_generic_size): Don't segfault if the
214 type doesn't have a size.
215
0e37a2f3
MP
2162014-06-20 Marek Polacek <polacek@redhat.com>
217
218 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
219 (ubsan_walk_array_refs_r): New function.
220 (c_genericize): Instrument array bounds.
221 * c-ubsan.c: Include "internal-fn.h".
222 (ubsan_instrument_division): Mark instrumented arrays as having
223 side effects. Adjust ubsan_type_descriptor call.
224 (ubsan_instrument_shift): Likewise.
225 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
226 (ubsan_instrument_bounds): New function.
227 (ubsan_array_ref_instrumented_p): New function.
228 (ubsan_maybe_instrument_array_ref): New function.
229 * c-ubsan.h (ubsan_instrument_bounds): Declare.
230 (ubsan_array_ref_instrumented_p): Declare.
231 (ubsan_maybe_instrument_array_ref): Declare.
232
2332014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
234
235 PR lto/61123
236 * c.opt (fshort-enums): Add to LTO.
237 * c.opt (fshort-wchar): Likewise.
238
5c3d09f7
MP
2392014-06-16 Marek Polacek <polacek@redhat.com>
240
241 PR c/60439
242 * c.opt (Wswitch-bool): Add Var.
243
9cf32741
JJ
2442014-06-12 Jakub Jelinek <jakub@redhat.com>
245
246 PR middle-end/61486
247 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
248 #pragma omp target teams or
249 #pragma omp {,target }teams distribute simd.
250
62984918
JM
2512014-06-12 Jason Merrill <jason@redhat.com>
252
253 * c.opt (Wabi=, fabi-compat-version): New.
254 * c-opts.c (c_common_handle_option): Handle -Wabi=.
255 (c_common_post_options): Handle flag_abi_compat_version default.
256 Disallow -fabi-compat-version=1.
257 * c-common.h (abi_version_crosses): New.
258
f961457f
JH
2592014-06-11 Jan Hubicka <hubicka@ucw.cz>
260
261 * c-family/c-common.c (handle_section_attribute): Update handling for
262 section names that are no longer trees.
263
92d28cbb
JJ
2642014-06-10 Jakub Jelinek <jakub@redhat.com>
265
266 PR fortran/60928
267 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
268 (omp_pragmas): ... back here.
269
742938c9
MP
2702014-06-05 Marek Polacek <polacek@redhat.com>
271
272 PR c/49706
273 * c-common.c (warn_logical_not_parentheses): New function.
274 * c-common.h (warn_logical_not_parentheses): Declare.
275 * c.opt (Wlogical-not-parentheses): New option.
276
9d548dfb
MP
2772014-06-04 Marek Polacek <polacek@redhat.com>
278
279 PR c/30020
280 * c-common.c (check_case_bounds): Add location parameter.
281 Use it.
282 (c_add_case_label): Pass loc to check_case_bounds.
283
fedfecef
MP
2842014-06-03 Marek Polacek <polacek@redhat.com>
285
286 PR c/60439
287 * c.opt (Wswitch-bool): New option.
288
f6a7cffc
TS
2892014-05-22 Thomas Schwinge <thomas@codesourcery.com>
290
040d18b6
TS
291 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
292 Remove prototypes.
293 (record_types_used_by_current_var_decl): Move prototype to where
294 it belongs.
295
f6a7cffc
TS
296 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
297 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
298 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
299
632f2871
RS
3002014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
301
302 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
303 * c-common.c (c_common_nodes_and_builtins): Don't initialize
304 void_zero_node.
305 * c-pretty-print.c (pp_c_void_constant): New function.
306 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
307 (c_pretty_printer::expression): Handle VOID_CST.
308 * cilk.c (extract_free_variables): Likewise.
309 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
310 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
311
766090c2
TS
3122014-05-17 Trevor Saunders <tsaunders@mozilla.com>
313
314 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
315 * c-pragma.c (push_alignment): Adjust.
316 (handle_pragma_push_options): Likewise.
317
661a0813
MP
3182014-05-09 Marek Polacek <polacek@redhat.com>
319
320 PR c/50459
321 * c-common.c (check_user_alignment): Return -1 if alignment is error
322 node.
323 (handle_aligned_attribute): Don't call default_conversion on
324 FUNCTION_DECLs.
325 (handle_vector_size_attribute): Likewise.
326 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
327 (handle_sentinel_attribute): Call default_conversion and allow even
328 integral types as an argument.
329
2793eeab
MP
3302014-05-08 Marek Polacek <polacek@redhat.com>
331
332 PR c/61053
333 * c-common.c (min_align_of_type): New function factored out from...
334 (c_sizeof_or_alignof_type): ...here.
335 * c-common.h (min_align_of_type): Declare.
336
f827930a
MP
3372014-05-08 Marek Polacek <polacek@redhat.com>
338
339 PR c/61077
340 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
341 parameter type of main.
342
ca49b74e
DD
3432014-05-07 DJ Delorie <dj@redhat.com>
344
345 * c-cppbuiltin.c (print_bits_of_hex): New.
346 (builtin_define_type_minmax): Print values using hex so as not to
347 require a pre-computed list of string values.
348
1d60af08
KZ
3492014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
350 Mike Stump <mikestump@comcast.net>
351 Richard Sandiford <rdsandiford@googlemail.com>
352
353 * c-ada-spec.c: Include wide-int.h.
354 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
355 (dump_generic_ada_node): Use wide-int interfaces.
356 * c-common.c: Include wide-int-print.h.
357 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
358 (pointer_int_sum): Use wide-int interfaces.
359 (c_common_nodes_and_builtins): Use make_int_cst.
360 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
361 (handle_alloc_size_attribute): Use wide-int interfaces.
362 (get_nonnull_operand): Likewise.
363 * c-format.c (get_constant): Use tree_fits_uhwi_p.
364 * c-lex.c: Include wide-int.h.
365 (narrowest_unsigned_type): Take a widest_int rather than two
366 HOST_WIDE_INTs.
367 (narrowest_signed_type): Likewise.
368 (interpret_integer): Update accordingly. Use wide-int interfaces.
369 (lex_charconst): Use wide-int interfaces.
370 * c-pretty-print.c: Include wide-int.h.
371 (pp_c_integer_constant): Use wide-int interfaces.
372 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
373 INT_CST_LT_UNSIGNED.
374
b15458be
RB
3752014-05-06 Richard Biener <rguenther@suse.de>
376
377 * c-opts.c (c_common_post_options): For -freestanding,
378 -fno-hosted and -fno-builtin disable pattern recognition
379 if not enabled explicitely.
380
6577374e
MP
3812014-05-02 Marek Polacek <polacek@redhat.com>
382
383 * c.opt (Wsizeof-pointer-memaccess): Describe option.
384
d00887e8
MP
3852014-05-01 Marek Polacek <polacek@redhat.com>
386
387 PR c/43245
388 * c.opt (Wdiscarded-qualifiers): Add.
389
f8ed5150
MP
3902014-04-30 Marek Polacek <polacek@redhat.com>
391
392 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
393 INT_MIN / -1 sanitization only for integer types.
394
45484dcf
MP
3952014-04-25 Marek Polacek <polacek@redhat.com>
396
397 PR c/18079
398 * c-common.c (handle_noinline_attribute): Warn if the attribute
399 conflicts with always_inline attribute.
400 (handle_always_inline_attribute): Warn if the attribute conflicts
401 with noinline attribute.
402
38e514c0
MP
4032014-04-25 Marek Polacek <polacek@redhat.com>
404
405 PR c/60156
406 * c-common.c (check_main_parameter_types): Warn about variadic main.
407
44875f92
MS
4082014-04-24 Mike Stump <mikestump@comcast.net>
409
410 * c.opt (Wshadow-ivar): Default to on.
411
dcaaa5a0
DP
4122014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
413
414 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
415
c07d7c02
MP
4162014-04-23 Marek Polacek <polacek@redhat.com>
417
418 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
419
1c33c9b7
JJ
4202014-04-22 Jakub Jelinek <jakub@redhat.com>
421
422 PR sanitizer/60275
423 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
424 if flag_sanitize_undefined_trap_on_error.
425 (ubsan_instrument_division, ubsan_instrument_shift,
426 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
427 if !flag_sanitize_recover.
428
793c625f
MG
4292014-04-22 Marc Glisse <marc.glisse@inria.fr>
430
431 PR libstdc++/43622
432 * c-common.c (registered_builtin_types): Make non-static.
433 * c-common.h (registered_builtin_types): Declare.
434
b0f1bf36
RB
4352014-04-14 Richard Biener <rguenther@suse.de>
436 Marc Glisse <marc.glisse@inria.fr>
437
438 PR c/60819
439 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
440 apply may-alias the scalar pointer type when applicable.
441
3b07fa4a
IZ
4422014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
443
444 PR middle-end/60467
445 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
446 as possible argument for Cilk_spawn.
447
cbbd2b1c
TB
4482014-04-11 Tobias Burnus <burnus@net-b.de>
449
450 PR c/60194
451 * c.opt (Wformat-signedness): Add
452 * c-format.c(check_format_types): Use it.
453
6415bd5d
JM
4542014-04-11 Jason Merrill <jason@redhat.com>
455
456 PR c++/57926
457 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
458 default_conversion for an array argument.
459
6525783a
MP
4602014-04-08 Marek Polacek <polacek@redhat.com>
461
462 PR sanitizer/60745
463 * c-ubsan.c: Include asan.h.
464 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
465
880a467b
NS
4662014-04-03 Nathan Sidwell <nathan@codesourcery.com>
467
468 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
469
7b59ff2d
MP
4702014-04-02 Marek Polacek <polacek@redhat.com>
471
472 * c-common.h (c_expand_expr): Remove declaration.
473
8edbfaa6
JJ
4742014-03-28 Jakub Jelinek <jakub@redhat.com>
475
476 PR c++/60689
477 * c-common.c (add_atomic_size_parameter): When creating new
478 params vector, push the size argument first.
479
07d72e1d
JJ
4802014-03-26 Jakub Jelinek <jakub@redhat.com>
481
482 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
483 ubsan_instrument_vla, ubsan_instrument_return): Adjust
484 ubsan_create_data callers.
485
b35e0fa0
JJ
4862014-03-22 Jakub Jelinek <jakub@redhat.com>
487
488 PR debug/60603
489 * c-opts.c (c_finish_options): Restore cb_file_change call to
490 <built-in>.
491
39a1ebb3
JJ
4922014-03-13 Jakub Jelinek <jakub@redhat.com>
493
494 PR middle-end/36282
495 * c-pragma.c (apply_pragma_weak): Only look at
496 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
497 DECL_ASSEMBLER_NAME_SET_P (decl).
498 (maybe_apply_pending_pragma_weaks): Exit early if
499 vec_safe_is_empty (pending_weaks) rather than only when
500 !pending_weaks.
501 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
502 set assembler name back to NULL afterwards.
503
a07f6ed2
JM
5042014-03-11 Jason Merrill <jason@redhat.com>
505
506 * c.opt: Add -std=gnu++14.
507
75b107f5
IB
5082014-03-11 Ian Bolton <ian.bolton@arm.com>
509
510 * c-opts.c (c_common_post_options): Don't override
511 -ffp-contract=fast if unsafe-math-optimizations is on.
512
f42c637e
PM
5132014-03-08 Paulo Matos <paulo@matos-sorge.com>
514
515 * c.opt: Enable LTO FE for fshort-double.
516
70e24808
JM
5172014-03-07 Jason Merrill <jason@redhat.com>
518
519 * c.opt: Add -std=c++14.
520
3af9c5e9
MP
5212014-03-06 Marek Polacek <polacek@redhat.com>
522
523 PR c/60197
524 * cilk.c (contains_cilk_spawn_stmt): New function.
525 (contains_cilk_spawn_stmt_walker): Likewise.
526 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
527 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
528
b3bdf019
JJ
5292014-03-03 Jakub Jelinek <jakub@redhat.com>
530
531 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
532 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
533 even when flag_preprocess_only.
534
ca7e759d
JM
5352014-02-26 Jason Merrill <jason@redhat.com>
536
537 PR c++/59231
538 PR c++/11586
539 * c-common.c (shorten_compare): Don't check
540 c_inhibit_evaluation_warnings.
541
28e41874
JJ
5422014-02-19 Jakub Jelinek <jakub@redhat.com>
543
cca615af
JJ
544 PR c/37743
545 * c-common.c (c_common_nodes_and_builtins): When initializing
546 c_uint{16,32,64}_type_node, also set corresponding
547 uint{16,32,64}_type_node to the same value.
548
28e41874
JJ
549 PR c++/60267
550 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
551 for PRAGMA_IVDEP if flag_preprocess_only.
552
c2bf53a1
JJ
5532014-02-12 Jakub Jelinek <jakub@redhat.com>
554
555 PR c/60101
556 * c-common.c (merge_tlist): If copy is true, call new_tlist,
557 if false, add ADD itself, rather than vice versa.
558 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
559 copy. For SAVE_EXPR, only call merge_tlist once.
560
8fcbce72
JJ
5612014-02-08 Jakub Jelinek <jakub@redhat.com>
562
563 PR middle-end/60092
564 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
565 and tree_to_uhwi.
566 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
567 functions.
568 (c_common_attribute_table): Add alloc_align and assume_aligned
569 attributes.
570
0a756a3f
MP
5712014-02-06 Marek Polacek <polacek@redhat.com>
572
573 PR c/60087
574 * c-common.c (warn_for_sign_compare): Call warning_at with location
575 instead of warning.
576
7ec4847a
MP
5772014-02-05 Marek Polacek <polacek@redhat.com>
578
579 PR c/53123
580 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
581 statement.
582
66f20604
MP
5832014-02-04 Marek Polacek <polacek@redhat.com>
584
585 PR c/60036
586 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
587 SAVE_EXPR.
588
5d77fb19
MG
5892014-02-03 Marc Glisse <marc.glisse@inria.fr>
590
591 PR c++/53017
592 PR c++/59211
593 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
594 handle_vector_size_attribute, handle_nonnull_attribute): Call
595 default_conversion on the attribute argument.
596 (handle_nonnull_attribute): Increment the argument number.
597
81e5eca8
MP
5982014-01-31 Marek Polacek <polacek@redhat.com>
599
600 PR c/59963
601 * c-common.c (add_atomic_size_parameter): Pass vNULL to
602 build_function_call_vec.
603 (resolve_overloaded_builtin): Likewise.
604 * c-common.h (build_function_call_vec): Adjust declaration.
605
68fca595
MP
6062014-01-30 Marek Polacek <polacek@redhat.com>
607
608 PR c/59940
609 * c-common.h (unsafe_conversion_p): Adjust declaration.
610 (warnings_for_convert_and_check): Likewise.
611 (convert_and_check): Likewise.
612 * c-common.c (unsafe_conversion_p): Add location parameter. Call
613 expansion_point_location_if_in_system_header on it.
614 (warnings_for_convert_and_check): Add location parameter. Call
615 expansion_point_location_if_in_system_header on it. Use it.
616 (convert_and_check): Add location parameter. Use it.
617 (conversion_warning): Likewise.
618 (c_add_case_label): Adjust convert_and_check calls.
619 (scalar_to_vector): Adjust unsafe_conversion_p calls.
620
b72271b9
BI
6212014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
622
623 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
624 flag_cilkplus.
625 * c-pragma.c (init_pragma): Likewise.
626 * c.opt: Likewise.
627
393e8e8b
MP
6282014-01-23 Marek Polacek <polacek@redhat.com>
629
630 PR c/59846
631 * c-common.c (shorten_compare): Add location_t parameter.
632 * c-common.h (shorten_binary_op): Adjust declaration.
633
f04dda30
MP
6342014-01-23 Marek Polacek <polacek@redhat.com>
635
636 PR c/58346
637 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
638 * c-common.h: Declare it.
639
621955cb
EB
6402014-01-20 Eric Botcazou <ebotcazou@adacore.com>
641
642 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
643 * c-ada-spec.c (dump_ads): Likewise.
644 (cpp_check): Likewise.
645 (dump_ada_specs): Likewise.
646
6472014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
648
649 PR c++/49718
650 * c-common.c (handle_no_instrument_function_attribute): Allow
651 no_instrument_function attribute in class member
652 definition/declaration.
653
241f845a
JJ
6542014-01-15 Jakub Jelinek <jakub@redhat.com>
655
656 PR c/58943
657 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
658 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
659 being COMPOUND_EXPR.
660 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
661 operand a SAVE_EXPR and second MODIFY_EXPR.
662
e83b8e2e
JJ
6632014-01-09 Jakub Jelinek <jakub@redhat.com>
664
665 PR target/58115
666 * c-pch.c (c_common_write_pch): Call
667 prepare_target_option_nodes_for_pch.
668
23a5b65a
RS
6692014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
670
671 Update copyright years
672
f9030485
RS
6732014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
674
675 * array-notation-common.c, c-cilkplus.c: Use the standard form for
676 the copyright notice.
677
f2aa696b
EB
6782013-12-28 Eric Botcazou <ebotcazou@adacore.com>
679
680 * c-ada-spec.c (print_constructor): New function.
681 (print_destructor): Retrieve the origin of the destructor.
682 (print_ada_declaration): Revamp handling of constructors/destructors.
683
1f26ac87
JM
6842013-12-23 Stuart Hastings <stuart@apple.com>
685 Bill Maddox <maddox@google.com>
686 Jason Merrill <jason@redhat.com>
687
688 * c.opt: Add -fdeclone-ctor-dtor.
689 * c-opts.c (c_common_post_options): Default to on iff -Os.
690
41958c28
BI
6912013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
692
693 * c-common.c (c_common_attribute_table): Added "cilk simd function"
694 attribute.
695 * c-pragma.h (enum pragma_cilk_clause): Remove.
696 (enum pragma_omp_clause): Added the following fields:
697 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
698 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
699 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
700 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
701 PRAGMA_CILK_CLAUSE_UNIFORM.
702
703
12893402
BI
7042013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
705
706 * cilk.c (cilk_outline): Made this function non-static.
707 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
708 (create_cilk_wrapper): Added a new parameter: a function pointer.
709 (c_install_body_w_frame_cleanup): Remove
710 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
711 * c-common.h (cilk_outline): New prototype.
712 (gimplify_cilk_spawn): Removed two parameters.
713 (cilk_install_body_with_frame_cleanup): New prototype.
714 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
715 CILK_SPAWN_STMT case.
716
085b42ed
BS
7172013-12-11 Bernd Schmidt <bernds@codesourcery.com>
718
2ce064c3
BS
719 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
720
085b42ed
BS
721 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
722 (int_array_type_node): Remove.
723 * c-common.c (c_common_nodes_and_builtins): Don't build it.
724
9e36c9ed
MP
7252013-12-05 Marek Polacek <polacek@redhat.com>
726
727 PR c/52023
728 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
729 [ADJUST_FIELD_ALIGN].
730
296674db
JM
7312013-12-04 Joseph Myers <joseph@codesourcery.com>
732
733 PR c/52023
734 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
735 and check field alignment if set.
736 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
737 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
738
31e071ae
MP
7392013-12-04 Jakub Jelinek <jakub@redhat.com>
740 Marek Polacek <polacek@redhat.com>
741
742 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
743 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
744
d7947e19
L
7452013-11-29 H.J. Lu <hongjiu.lu@intel.com>
746
747 PR c/59309
748 * cilk.c (gimplify_cilk_spawn): Properly handle function without
749 arguments.
750
fad7652e
JJ
7512013-11-29 Jakub Jelinek <jakub@redhat.com>
752
753 PR c/59280
754 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
755 goto invalid. If it is error_mark_node, don't issue further
756 diagnostics.
757
8b5e1202
SO
7582013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
759
760 * c.opt (Wopenmp-simd): New.
761
0a508bb6
JJ
7622013-11-22 Jakub Jelinek <jakub@redhat.com>
763
764 * c-ubsan.h (ubsan_instrument_return): New prototype.
765 * c-ubsan.c (ubsan_instrument_return): New function.
766
2fb9a547
AM
7672013-11-22 Andrew MacLeod <amacleod@redhat.com>
768
769 * c-common.c: Add required include files from gimple.h.
770 * c-gimplify.c: Likewise
771 * cilk.c: Likewise
772
8400e75e
DM
7732013-11-22 David Malcolm <dmalcolm@redhat.com>
774
775 * c-common.c (unsafe_conversion_p): Remove use of
776 EXPR_LOC_OR_HERE macro.
777 (conversion_warning): Likewise.
778 (warnings_for_convert_and_check): Likewise.
779 (warn_for_collisions_1): Likewise.
780 (shorten_compare): Likewise, and remove use of in_system_header
781 macro, using the location from the former.
782 * c-lex.c (dump_one_header): Remove use of input_filename macro.
783 (cb_def_pragma): Remove use of in_system_header macro.
784 (lex_string): Likewise.
785 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
786
eb1ce453
KZ
7872013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
788 Mike Stump <mikestump@comcast.net>
789 Richard Sandiford <rdsandiford@googlemail.com>
790
791 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
792 instead of TREE_INT_CST_LOW, in cases where there is a protecting
793 tree_fits_shwi_p or tree_fits_uhwi_p.
794 (dump_generic_ada_node): Likewise.
795 * c-format.c (check_format_arg): Likewise.
796 * c-pretty-print.c (pp_c_integer_constant): Likewise.
797
6b3b8c27
KZ
7982013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
799
800 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
801
49b0aa18
JC
8022013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
803
804 PR c/53001
805 * c-common.c (unsafe_conversion_p): Make this function
806 return an enumeration with more detail.
807 (conversion_warning): Use the new return type of
808 unsafe_conversion_p to separately warn either about conversions
809 that lower floating point number precision or about the other
810 kinds of conversions.
811 * c-common.h (enum conversion_safety): New enumeration.
812 (unsafe_conversion_p): switching return type to
813 conversion_safety enumeration.
814 * c.opt: Adding new warning -Wfloat-conversion and
815 enabling it with -Wconversion.
816
b826515a
BS
8172013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
818
819 * c-opts.c: Include plugin.h.
820 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
821
b9a55b13
MP
8222013-11-19 Marek Polacek <polacek@redhat.com>
823
824 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
825 call.
826 (ubsan_instrument_shift): Likewise.
827 (ubsan_instrument_vla): Likewise.
828
7d362f6c
RS
8292013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
830
831 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
832 cast to unsigned type.
833
386b1f1f
RS
8342013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
835
836 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
837 tree_low_cst.
838 (complete_array_type): Update comment to refer to tree_to_[su]hwi
839 rather than tree_low_cst.
840
ae7e9ddd
RS
8412013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
842
843 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
844 tree_to_uhwi throughout.
845
9439e9a1
RS
8462013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
847
848 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
849 tree_low_cst (..., 0) with tree_to_shwi throughout.
850
cc269bb6
RS
8512013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
852
853 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
854 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
855
9541ffee
RS
8562013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
857
858 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
859 host_integerp (..., 0) with tree_fits_shwi_p throughout.
860
c02065fc
AH
8612013-11-15 Aldy Hernandez <aldyh@redhat.com>
862
863 * c-cilkplus.c: New file.
864 * c-common.c (readonly_error): Add location argument.
865 * c-common.h (readonly_error): Same.
866 (c_finish_cilk_clauses): Protoize.
867 (c_check_cilk_loop): Same.
868 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
869 Do not fail on error_mark_node.
870 Abstract increment canonicalization to here...
871 (c_omp_for_incr_canonicalize_ptr): New.
872 c-pragma.c (init_pragma): Register "simd" pragma.
873 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
874 (enum pragma_cilk_clause): New.
875
9cc65f15
RS
8762013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
877
878 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
879 wchar_type and host_integerp checks.
880
18f429e2
AM
8812013-11-14 Andrew MacLeod <amacleod@redhat.com>
882
883 * c-common.c: Likewise.
884 * c-gimplify.c: Likewise.
885 * cilk.c: Likewise.
886
d8a2d370
DN
8872013-11-14 Diego Novillo <dnovillo@google.com>
888
889 * c-common.c: Include fold-const.h.
890 Include stor-layout.h.
891 Include calls.h.
892 Include stringpool.h.
893 Include attribs.h.
894 Include varasm.h.
895 Include trans-mem.h.
896 * c-cppbuiltin.c: Include stor-layout.h.
897 Include stringpool.h.
898 * c-format.c: Include stringpool.h.
899 * c-lex.c: Include stringpool.h.
900 Include stor-layout.h.
901 * c-pragma.c: Include stringpool.h.
902 Include attribs.h.
903 Include varasm.h.
904 Include gcc-symtab.h.
905 * c-pretty-print.c: Include stor-layout.h.
906 Include attribs.h.
907 * cilk.c: Include stringpool.h.
908 Include calls.h.
909
38b7bc7f
JM
9102013-11-13 Joseph Myers <joseph@codesourcery.com>
911
912 * c-common.h (enum rid): Add RID_AUTO_TYPE.
913 * c-common.c (c_common_reswords): Add __auto_type.
914 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
915
45b0be94
AM
9162013-11-12 Andrew MacLeod <amacleod@redhat.com>
917
18f429e2
AM
918 * c-common.c: Include gimplify.h.
919 * c-gimplify.c: Likewise.
920 * cilk.c: Likewise.
921 * c-omp.c: Include gimple-expr.h instead of gimple.h.
922 * c-ubsan.c: Don't include gimple.h.
45b0be94 923
582d9b50
JM
9242013-11-12 Joseph Myers <joseph@codesourcery.com>
925
926 * c-common.c (c_common_reswords): Add _Thread_local.
927
6b28e197
JM
9282013-11-09 Joseph Myers <joseph@codesourcery.com>
929
930 * c-common.c (atomic_size_supported_p): New function.
931 (resolve_overloaded_atomic_exchange)
932 (resolve_overloaded_atomic_compare_exchange)
933 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
934 Use it instead of comparing size with a local list of sizes.
935
267bac10
JM
9362013-11-07 Andrew MacLeod <amacleod@redhat.com>
937 Joseph Myers <joseph@codesourcery.com>
938
939 * c-common.h (enum rid): Add RID_ATOMIC.
940 * c-common.c (c_common_reswords): Add _Atomic.
941 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
942 (keyword_is_type_qualifier): Accept RID_ATOMIC.
943 * c-format.c (check_format_types): Check for extra _Atomic
944 qualifiers in format argument.
945 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
946 (pp_c_type_qualifier_list): Mention _Atomic in comment.
947
5157b91e
TB
9482013-11-06 Tobias Burnus <burnus@net-b.de>
949
950 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
951
6dbe0958
JM
9522013-11-06 Joseph Myers <joseph@codesourcery.com>
953
954 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
955 standards modes.
956 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
957 to mean lack of IEEE 754 support.
958
e8ff5196
TB
9592013-11-05 Tobias Burnus <burnus@net-b.de>
960
961 * c.opt (-Wdate-time): New option
962 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
963
254a0760
JM
9642013-11-05 Joseph Myers <joseph@codesourcery.com>
965
966 * c-cppbuiltin.c (cpp_iec_559_value): Test
967 flag_excess_precision_cmdline not flag_excess_precision.
968
6d7f7e0a
TB
9692013-11-05 Tobias Burnus <burnus@net-b.de>
970
971 * c.opt (fopenmp-simd): New option.
972 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
973 (omp_pragmas): ... this new struct.
974 (c_pp_lookup_pragma): Also walk omp_pragmas.
975 (init_pragma): Init pragmas for -fopenmp-simd.
976
55a7f02f
MP
9772013-11-04 Marek Polacek <polacek@redhat.com>
978
979 PR c++/58979
980 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
981
9193fb05
JM
9822013-11-04 Joseph Myers <joseph@codesourcery.com>
983
984 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
985 New functions.
986 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
987
94159ecf
EB
9882013-11-04 Eric Botcazou <ebotcazou@adacore.com>
989
990 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
991 (dump_ada_specs): Adjust prototype of second callback.
992 * c-ada-spec.c (cpp_check): New global variable.
993 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
994 (print_generic_ada_decl): Likewise.
995 (has_static_fields): Change return type to bool and add guard.
996 (has_nontrivial_methods): New predicate.
997 (is_tagged_type): Change return type to bool.
998 (separate_class_package): Call has_nontrivial_methods.
999 (pp_ada_tree_identifier): Minor tweaks.
1000 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
1001 (dump_ada_array_domains): Likewise.
1002 (dump_ada_array_type): Likewise.
1003 (dump_template_types): Remove cpp_check parameter and do not pass it to
1004 dump_generic_ada_node.
1005 (dump_ada_template): Likewise.
1006 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
1007 recursively.
1008 (print_ada_methods): Change return type to integer. Remove cpp_check
1009 parameter and do not pass it down.
1010 (dump_nested_types): Remove cpp_check parameter and do not pass it to
1011 dump_generic_ada_node.
1012 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
1013 accessing methods.
1014 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
1015 down. Use has_nontrivial_methods to recognize C++ classes. Use return
1016 value of print_ada_methods.
1017 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
1018 Set cpp_check to it before invoking dump_ada_nodes.
1019 (dump_ada_specs): Likewise.
1020
b906f4ca
MP
10212013-11-03 Marek Polacek <polacek@redhat.com>
1022
1023 * c-ubsan.c: Don't include hash-table.h.
1024 (ubsan_instrument_vla): New function.
1025 * c-ubsan.h: Declare it.
1026
5e20cdc9
DM
10272013-10-31 David Malcolm <dmalcolm@redhat.com>
1028
1029 Automated part of renaming of symtab_node_base to symtab_node.
1030
1031 Patch autogenerated by rename_symtab.py from
1032 https://github.com/davidmalcolm/gcc-refactoring-scripts
1033 revision 58bb219cc090b2f4516a9297d868c245495ee622
1034
1035 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
1036 symtab_node_base to symtab_node.
1037
7057e645
ESR
10382013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
1039
1040 Implement C++14 digit separators.
1041 * c-lex.c (interpret_float): Remove digit separators from scratch string
1042 before building real literal.
1043
193ea7bc
JJ
10442013-10-30 Jakub Jelinek <jakub@redhat.com>
1045
1046 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
1047
939b37da
BI
10482013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
1049
1050 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
1051 fields.
1052 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
1053 enabled.
1054 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
1055 (insert_cilk_frame): New prototype.
1056 (cilk_init_builtins): Likewise.
1057 (gimplify_cilk_spawn): Likewise.
1058 (c_cilk_install_body_w_frame_cleanup): Likewise.
1059 (cilk_detect_spawn_and_unwrap): Likewise.
1060 (cilk_set_spawn_marker): Likewise.
1061 (build_cilk_sync): Likewise.
1062 (build_cilk_spawn): Likewise.
1063 * cilk.c: New file.
1064
67348ccc
DM
10652013-10-29 David Malcolm <dmalcolm@redhat.com>
1066
1067 Patch autogenerated by refactor_symtab.py from
1068 https://github.com/davidmalcolm/gcc-refactoring-scripts
1069 revision 58bb219cc090b2f4516a9297d868c245495ee622
1070
1071 * c-gimplify.c (c_genericize): Update for conversion of symtab types
1072 to a true class hierarchy.
1073 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
1074
d570872d
RS
10752013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
1076
1077 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
1078
98906124
JL
10792013-10-26 Jeff Law <law@redhat.com>
1080
1081 * c-family/c-common.c (c_define_builtins): Remove mudflap support.
1082 * c-family/c.opt: Ignore and warn for mudflap options.
1083
d73749df 10842013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
1085
1086 PR other/33426
1087 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
1088 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
1089
3f04b1bb
JM
10902013-10-23 Jason Merrill <jason@redhat.com>
1091
1092 * c-format.c (gcc_cxxdiag_char_table): Add %X.
1093
acf0174b
JJ
10942013-10-11 Jakub Jelinek <jakub@redhat.com>
1095
acd15a28
JJ
1096 * c-common.h (omp_clause_mask::operator !=): New method.
1097 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
1098 instead of if (mask & something) tests everywhere.
1099
acf0174b
JJ
1100 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
1101 201307 instead of 201107.
1102 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
1103 (c_common_attribute_table): Add "omp declare target" and
1104 "omp declare simd" attributes.
1105 (handle_omp_declare_target_attribute,
1106 handle_omp_declare_simd_attribute): New functions.
1107 * c-omp.c: Include c-pragma.h.
1108 (c_finish_omp_taskgroup): New function.
1109 (c_finish_omp_atomic): Add swapped argument, if true,
1110 build the operation first with rhs, lhs arguments and use NOP_EXPR
1111 build_modify_expr.
1112 (c_finish_omp_for): Add code argument, pass it down to make_code.
1113 (c_omp_split_clauses): New function.
1114 (c_split_parallel_clauses): Removed.
1115 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
1116 c_omp_declare_simd_clauses_to_decls): New functions.
1117 * c-common.h (omp_clause_mask): New type.
1118 (OMP_CLAUSE_MASK_1): Define.
1119 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
1120 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
1121 omp_clause_mask::operator |, omp_clause_mask::operator &,
1122 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
1123 omp_clause_mask::operator ==): New methods.
1124 (enum c_omp_clause_split): New.
1125 (c_finish_omp_taskgroup): New prototype.
1126 (c_finish_omp_atomic): Add swapped argument.
1127 (c_finish_omp_for): Add code argument.
1128 (c_omp_split_clauses): New prototype.
1129 (c_split_parallel_clauses): Removed.
1130 (c_omp_declare_simd_clauses_to_numbers,
1131 c_omp_declare_simd_clauses_to_decls): New prototypes.
1132 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
1133 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
1134 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
1135 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
1136 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
1137 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
1138 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
1139 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
1140 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
1141 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
1142 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
1143 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
1144 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
1145 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
1146 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
1147 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
1148 PRAGMA_OMP_CLAUSE_UNIFORM.
1149
826cacfe
MG
11502013-10-09 Marc Glisse <marc.glisse@inria.fr>
1151
1152 PR tree-optimization/20318
1153 * c-common.c (handle_returns_nonnull_attribute): New function.
1154 (c_common_attribute_table): Add returns_nonnull.
1155
2284b034
MG
11562013-10-03 Marc Glisse <marc.glisse@inria.fr>
1157
1158 PR c++/19476
1159 * c.opt (fcheck-new): Move to common.opt.
1160
b56e9788
MP
11612013-09-25 Marek Polacek <polacek@redhat.com>
1162 Jakub Jelinek <jakub@redhat.com>
1163
1164 PR sanitizer/58413
1165 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
1166 an expression if we can prove it is correct.
1167 (ubsan_instrument_division): Likewise. Remove unnecessary
1168 check.
1169
ce6923c5
MP
11702013-09-18 Marek Polacek <polacek@redhat.com>
1171
1172 PR sanitizer/58411
1173 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
1174 Declare it.
1175 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
1176
fb5610fb
IS
11772013-09-14 Iain Sandoe <iain@codesourcery.com>
1178
1179 PR target/48094
1180 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
1181 fobjc-gc, freplace-objc-classes): Accept for LTO.
1182
88b0e79e
JC
11832013-09-13 Jacek Caban <jacek@codeweavers.com>
1184
1185 * c-target.def: New hook
1186
c9b0866a
PC
11872013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
1188
1189 PR c++/43452
1190 * c.opt (Wdelete-incomplete): Add.
1191
0af94e6f
JR
11922013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
1193
1194 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
1195 (vector_types_compatible_elements_p): New function.
1196 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
1197 declaration.
1198 (vector_types_compatible_elements_p): Declare.
1199
7c26172c
GDR
12002013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1201
1202 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
1203 a virtual member function.
1204 (pp_simple_type_specifier): Remove.
1205 (pp_c_type_specifier): Likewise.
1206 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
1207 Rename from pp_c_type_specifier. Adjust.
1208 (c_pretty_printer::c_pretty_printer): Do not assign to
1209 simple_type_specifier.
1210
20059c8b
GDR
12112013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1212
1213 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
1214 member function.
1215 (c_pretty_printer::storage_class_specifier): Likewise.
1216 (c_pretty_printer::initializer): Likewise.
1217 (pp_declaration): Remove.
1218 (pp_declaration_specifiers): Likewise.
1219 (pp_abstract_declarator): Likewise.
1220 (pp_declarator): Likewise.
1221 (pp_type_id): Likewise.
1222 (pp_statement): Likewise.
1223 (pp_constant): Likewise.
1224 (pp_id_expression): Likewise.
1225 (pp_primary_expression): Likewise.
1226 (pp_unary_expression): Likewise.
1227 (pp_multiplicative_expression): Likewise.
1228 (pp_conditional_expression): Likewise.
1229 (pp_assignment_expression): Likewise.
1230 (pp_expression): Likewise.
1231 (pp_c_type_id): Likewise.
1232 (pp_c_storage_class_specifier): Likewise.
1233 * c-pretty-print.c (pp_c_type_cast): Tidy.
1234 (pp_c_pointer): Likewise.
1235 (pp_c_type_specifier): Likewise.
1236 (pp_c_parameter_type_list): Likewise.
1237 (pp_c_function_definition): Likewise.
1238 (pp_c_init_declarator): Likewise.
1239 (pp_c_initializer_list): Likewise.
1240 (pp_c_constructor_elts): Likewise.
1241 (c_pretty_printer::direct_abstract_declarator): Likewise.
1242 (c_pretty_printer::declaration_specifiers): Likewise.
1243 (c_pretty_printer::primary_expression): Likewise.
1244 (c_pretty_printer::postfix_expression): Likewise.
1245 (c_pretty_printer::type_id): Rename from pp_c_type_id.
1246 (c_pretty_printer::storage_class_specifier): Rename from
1247 pp_c_storage_class_specifier.
1248 (c_pretty_printer::initializer): Rename from pp_c_initializer.
1249 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
1250 storage_class_specifier, initializer, offset_list, flags.
1251
de5a5fa1
MP
12522013-08-30 Marek Polacek <polacek@redhat.com>
1253
1254 * c-ubsan.c: New file.
1255 * c-ubsan.h: New file.
1256
8f0e4d72
GDR
12572013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
1258
1259 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
1260 member function.
1261 (c_pretty_printer::declaration_specifiers): Likewise.
1262 (c_pretty_printer::declarator): Likewise.
1263 (c_pretty_printer::abstract_declarator): Likewise.
1264 (c_pretty_printer::direct_abstract_declarator): Likewise.
1265 (c_pretty_printer::direct_declarator): Likewise.
1266 (c_pretty_printer::function_specifier): Likewise.
1267 (pp_declaration): Adjust.
1268 (pp_declaration_specifiers): Likewise.
1269 (pp_abstract_declarator): Likewise.
1270 (pp_direct_declarator): Likewise.
1271 (pp_function_specifier): Likewise.
1272 (pp_direct_abstract_declarator): Remove as unused.
1273 (pp_c_declaration): Remove.
1274 (pp_c_declaration_specifiers): Likewise.
1275 (pp_c_declarator): Likewise.
1276 (pp_c_direct_declarator): Likewise.
1277 (pp_c_function_specifier): Likewise.
1278 (pp_c_direct_abstract_declarator): Likewise.
1279 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
1280 from pp_c_abstract_declarator. Adjust.
1281 (c_pretty_printer::direct_abstract_declarator): Rename from
1282 pp_c_direct_abstract_declarator. Adjust.
1283 (c_pretty_printer::function_specifier): Rename from
1284 pp_c_function_specifier. Adjust.
1285 (c_pretty_printer::declaration_specifiers): Rename from
1286 pp_c_declaration_specifiers. Adjust.
1287 (c_pretty_printer::direct_declarator): Rename from
1288 pp_c_direct_declarator. Adjust.
1289 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
1290 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
1291 (c_pretty_printer::c_pretty_printer): Do not assign to
1292 declaration, declaration_specifiers, declarator,
1293 direct_declarator, direct_abstract_declarator, function_specifier.
1294
00d34d3a
GDR
12952013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
1296
1297 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
1298 virtual member function.
1299 (c_pretty_printer::multiplicative_expression): Likewise.
1300 (c_pretty_printer::conditional_expression): Likewise.
1301 (c_pretty_printer::assignment_expression): Likewise.
1302 (c_pretty_printer::expression): Likewise.
1303 (pp_unary_expression): Adjust.
1304 (pp_multiplicative_expression): Likewise.
1305 (pp_assignment_expression): Likewise.
1306 (pp_conditional_expression): Likewise.
1307 (pp_expression): Likewise.
1308 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
1309 from pp_c_unary_expression. Adjust.
1310 (c_pretty_printer::multiplicative_expression): Rename from
1311 pp_c_multiplicative_expression. Adjust.
1312 (c_pretty_printer::conditional_expression): Rename from
1313 pp_c_conditional_expression. Adjust.
1314 (c_pretty_printer::assignment_expression): Rename from
1315 pp_c_assignment_expression. Adjust.
1316 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
1317 (c_pretty_printer::c_pretty_printer): Do not assign to
1318 unary_expression, multiplicative_expression,
1319 conditional_expression, expression.
1320
fb22178f
GDR
13212013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1322
1323 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
1324 virtual member function.
1325 (pp_postfix_expression): Adjust.
1326 (pp_c_postfix_expression): Remove.
1327 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
1328 from pp_c_postfix_expression. Adjust.
1329 (c_pretty_printer::c_pretty_printer): Do not assign to
1330 postfix_expression.
1331
7ecc2600
GDR
13322013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1333
1334 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
1335 virtua member function.
1336 (pp_primary_expression): Adjust.
1337 (pp_c_primary_expression): Remove.
1338 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
1339 from pp_c_primary_expression. Adjust.
1340 (pp_c_initializer_list): Use pp_primary_expression.
1341 (c_pretty_printer::c_pretty_printer): Do not assign to
1342 primary_expression.
1343
0691175f
GDR
13442013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1345
1346 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
1347 * c-pretty-print.c (M_): Remove.
1348 (c_pretty_printer::translate_string): Define.
1349 (pp_c_type_specifier): Use it.
1350 (pp_c_primary_expression): Likewise.
1351 (pp_c_expression): Likewise.
1352
66dfe4c4
GDR
13532013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
1354
1355 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
1356 virtual function.
1357 (pp_c_id_expression): Remove.
1358 (pp_id_expression): Adjust.
1359 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
1360 pp_c_id_expression. Adjust.
1361 (pp_c_postfix_expression): Use pp_id_expression.
1362 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
1363
ca43e9d5
GDR
13642013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
1365
1366 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
1367 member function.
1368 (pp_constant): Adjust.
1369 (pp_c_constant): Remove.
1370 * c-pretty-print.c (c_pretty_printer::constant): Rename from
1371 pp_c_constant. Adjust.
1372 (pp_c_constant)
1373 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
1374 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
1375
da6ca2b5
GDR
13762013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1377
1378 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
1379 (c_pretty_printer::c_pretty_printer): Declare.
1380 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
1381 c_pretty_printer_init. Adjust.
1382 (print_c_tree): Do not call c_pretty_printer_init.
1383 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
1384
65a372f4
AC
13852013-08-09 Arnaud Charlet <charlet@adacore.com>
1386
1387 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
1388
fd9b0f32
PC
13892013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
1390
1391 PR c++/58080
1392 * c-common.c (pointer_int_sum): Add bool parameter.
1393 * c-common.h (pointer_int_sum): Adjust declaration.
1394
e0aec1e9
GDR
13952013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
1396
1397 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
1398 c_pretty_printer variable.
1399
b066401f
GDR
14002013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1401
1402 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
1403 (pp_base): Remove.
1404 (pp_c_base): Likewise. Adjust users.
1405 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
1406 (pp_c_whitespace): Do not call pp_base.
1407 (pp_c_left_paren): Likewise.
1408 (pp_c_right_paren): Likewise.
1409 (pp_c_left_brace): Likewise.
1410 (pp_c_right_brace): Likewise.
1411 (pp_c_left_bracket): Likewise.
1412 (pp_c_right_bracket): Likewise.
1413 (pp_c_dot): Likewise.
1414 (pp_c_ampersand): Likewise.
1415 (pp_c_star): Likewise.
1416 (pp_c_arrow): Likewise.
1417 (pp_c_semicolon): Likewise.
1418 (pp_c_complement): Likewise.
1419 (pp_c_exclamation): Likewise.
1420 (pp_c_direct_declarator): Likewise.
1421 (pp_c_ws_string): Likewise.
1422 (pp_c_identifier): Likewise.
1423 (pp_c_statement): Likewise.
1424 (print_c_tree): Likewise.
1425
65e5a578
ESR
14262013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
1427
1428 PR c++/58072
1429 * c-common.c (c_parse_error): Catch user-defined literal tokens and
1430 provide useful error strings.
1431
137a1a27
GDR
14322013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1433
1434 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
1435 printer functions instead of pp_string or operators and punctuators.
1436 (dump_generic_ada_node): Likewise.
1437 * c-pretty-print.c (pp_c_type_specifier): Likewise.
1438 (pp_c_relational_expression): Likewise.
1439 (pp_c_logical_or_expression): Likewise.
1440
07838b13
GDR
14412013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1442
1443 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
1444 functions instead of pp_character.
1445 (pp_ada_tree_identifier): Likewise.
1446 (dump_ada_double_name): Likewise.
1447 (dump_ada_function_declaration): Likewise.
1448 (dump_ada_array_domains): Likewise.
1449 (dump_template_types): Likewise.
1450 (dump_generic_ada_node): Likewise.
1451 (print_ada_declaration): Likewise.
1452 (print_ada_struct_decl): Likewise.
1453 * c-pretty-print.c (pp_c_integer_constant): Likewise.
1454
433cc7b0
TT
14552013-07-23 Tom Tromey <tromey@redhat.com>
1456
1457 * c-common.h (enum rid) <RID_GENERIC>: New constant.
1458 * c-common.c (c_common_reswords): Add _Generic.
1459
688010ba
OB
14602013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
1461
1462 * c-common.c: Fix typos.
1463 * c-common.h: Likewise.
1464
2a99e5e6
LL
14652013-07-13 Lubos Lunak <l.lunak@suse.cz>
1466
1467 PR c++/55203
1468 * c-common.c (c_common_attribute_table): Add warn_unused.
1469 (handle_warn_unused_attribute): New.
1470
c26302d5
JJ
14712013-07-10 Jakub Jelinek <jakub@redhat.com>
1472
1473 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
1474 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
1475
dfeadaa0
PC
14762013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
1477
1478 PR c++/57869
1479 * c.opt: Add Wconditionally-supported.
1480
6a2fa4b2
GS
14812013-07-08 Graham Stott <graham.stott@btinternet.com>
1482
1483 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
1484 unused variables l_length and l_node.
1485
ecdbd01a 14862013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
1487
1488 PR c/57821
1489 * c-common.c (complete_array_type): Delay folding first index
1490 like other indices. When folding, check for index overflow.
1491
bedc293e
MG
14922013-06-27 Marc Glisse <marc.glisse@inria.fr>
1493
1494 PR c++/57509
1495 * c-common.h (c_build_vec_perm_expr): New complain argument.
1496 * c-common.c (c_build_vec_perm_expr): Likewise.
1497 Use save_expr also in C++.
1498
604b2bfc
GDR
14992013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1500
1501 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
1502 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1503 * c-opts.c (c_common_post_options): Likewise.
1504
dfeadaa0 15052013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
1506
1507 * array-notation-common.c (length_mismatch_in_expr): Changed the
1508 parameter type's from a dynamic array to a vec_tree. Also removed
1509 the size parameters.
1510 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
1511 the change above.
1512
2ce86d2e
BI
15132013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
1514
1515 * c-common.h (struct cilkplus_an_parts): New structure.
1516 (struct cilkplus_an_loop_parts): Likewise.
1517 (cilkplus_extract_an_triplets): New prototype.
1518 (fix_sec_implicit_args): Likewise.
1519 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
1520 (fix_sec_implicit_args): Likewise.
604b2bfc 1521
07a6825b
BI
15222013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
1523
1524 * array-notation-common.c (find_inv_trees): Removed an unwanted
1525 typecasting.
1526 * c-common.h (struct inv_list::additional_tcodes): Changed type from
1527 enum rid to enum tree_code.
1528
08346abd
JH
15292013-06-11 Jan Hubicka <jh@suse.cz>
1530
1531 * c-common.c (handle_alias_ifunc_attribute): Do not set
1532 DECL_EXTERNAL for weakref variables.
1533 * c-pragma.c (handle_pragma_weak): Make sure aliases
1534 are not declared as external.
1535
d60f1706
BI
15362013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
1537
1538 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
1539 function from c/c-array-notation.c.
1540 (is_cilkplus_reduce_builtin): Likewise.
1541 (find_rank): Likewise.
1542 (extract_array_notation_exprs): Likewise.
1543 (replace_array_notations): Likewise.
1544 (find_inv_trees): Likewise.
1545 (replace_inv_trees): Likewise.
1546 (contains_array_notation_expr): Likewise.
1547 (find_correct_array_notation_type): Likewise.
1548 * c-common.h (struct inv_list): Moved this struct from the file
1549 c/c-array-notation.c and added a new field called additional tcodes.
1550 (length_mismatch_in_expr_p): New prototype.
1551 (is_cilkplus_reduce_builtin): Likewise.
1552 (find_rank): Likewise.
1553 (extract_array_notation_exprs): Likewise.
1554 (replace_array_notation): Likewise.
1555 (find_inv_trees): Likewise.
1556 (replace_inv_trees): Likewise.
1557 (find_correct_array_notation_type): Likewise.
dfeadaa0 1558
36536d79
BI
15592013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
1560
1561 * c-common.c (c_define_builtins): When cilkplus is enabled, the
1562 function array_notation_init_builtins is called.
1563 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
1564 * c-common.def (ARRAY_NOTATION_REF): New tree.
1565 * c-common.h (build_array_notation_expr): New function declaration.
1566 (build_array_notation_ref): Likewise.
1567 (extract_sec_implicit_index_arg): New extern declaration.
1568 (is_sec_implicit_index_fn): Likewise.
1569 (ARRAY_NOTATION_CHECK): New define.
1570 (ARRAY_NOTATION_ARRAY): Likewise.
1571 (ARRAY_NOTATION_START): Likewise.
1572 (ARRAY_NOTATION_LENGTH): Likewise.
1573 (ARRAY_NOTATION_STRIDE): Likewise.
1574 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
1575 ARRAY_NOTATION_REF.
1576 (pp_c_expression): Likewise.
1577 * c.opt (flag_enable_cilkplus): New flag.
1578 * array-notation-common.c: New file.
1579
f7716d57
JJ
15802013-05-14 Jakub Jelinek <jakub@redhat.com>
1581
1582 PR c++/57274
1583 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
1584
a5e0cd1d
MG
15852013-05-10 Marc Glisse <marc.glisse@inria.fr>
1586
1587 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
1588 vectors.
1589
f6bc1c4a
HS
15902013-05-07 Han Shen <shenhan@google.com>
1591
1592 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
1593
3f12f6e9
SKS
15942013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1595
1596 * c-common.c (check_user_alignment): Emit error for negative values.
1597
61949153
PC
15982013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1599
1600 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
1601
e93e18e9
PC
16022013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1603
1604 * c-cppbuiltin.c (c_cpp_builtins): Do not define
1605 __GXX_EXPERIMENTAL_CXX1Y__.
1606
44d90fe1
PC
16072013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1608 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1609
1610 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
1611 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
1612 to simply use OPT_Wpointer_arith.
1613 (c_sizeof_or_alignof_type): Likewise.
1614
13f39b2e
PC
16152013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1616
1617 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
1618
4b84d650
JJ
16192013-04-12 Jakub Jelinek <jakub@redhat.com>
1620
1621 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
1622 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
1623 specifiers.
1624
fb037b5d
SB
16252013-04-07 Steven Bosscher <steven@gcc.gnu.org>
1626
1627 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
1628
4e856798
PC
16292013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
1630
1631 * c-common.c (pointer_int_sum): Remove dead code.
1632
4b1baac8
RS
16332013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
1634
1635 PR middle-end/56524
1636 * c-common.c (handle_optimize_attribute): Don't call
1637 save_optabs_if_changed.
1638
0b50e654
JJ
16392013-03-05 Jakub Jelinek <jakub@redhat.com>
1640
1641 PR middle-end/56461
1642 * c-pch.c (pch_init): Free target_validity at the end.
1643
48c41403
JJ
16442013-03-04 Jakub Jelinek <jakub@redhat.com>
1645
1646 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
1647
e664c61c
KS
16482013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
1649 Jakub Jelinek <jakub@redhat.com>
1650
1651 PR sanitizer/56454
1652 * c-common.c (handle_no_sanitize_address_attribute): New function.
1653 (c_common_attribute_table): Add no_sanitize_address attribute.
1654 (handle_no_address_safety_analysis_attribute): Add
1655 no_sanitize_address attribute, not no_address_safety_analysis
1656 attribute.
1657
a475fd3d 16582013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
1659
1660 PR target/52555
1661 * c-common.c (handle_optimize_attribute): Call
1662 save_optabs_if_changed.
1663
f6007d99
JJ
16642013-02-18 Jakub Jelinek <jakub@redhat.com>
1665 Steven Bosscher <steven@gcc.gnu.org>
1666
1667 PR pch/54117
1668 * c-opts.c (c_common_post_options): If debug info is enabled
1669 and non-dwarf*, refuse to load PCH files and when writing PCH
1670 file warn.
1671
cf35e2b1
JJ
16722013-02-05 Jakub Jelinek <jakub@redhat.com>
1673
1674 PR middle-end/56167
1675 * c-common.c (handle_error_attribute): Fix condition.
1676
32887460
JJ
16772013-01-30 Jakub Jelinek <jakub@redhat.com>
1678
1679 PR c++/55742
1680 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
1681
5af057d8
JM
16822013-01-18 Jason Merrill <jason@redhat.com>
1683
1684 PR target/54908
1685 * c.opt (-fextern-tls-init): New.
1686 * c-opts.c (c_common_post_options): Handle it.
1687
cc83c823
JJ
16882013-01-09 Jakub Jelinek <jakub@redhat.com>
1689
1690 PR c/48418
1691 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
1692 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
1693 and is either negative or bigger or equal to type precision
1694 of the first operand.
1695
a859517f
MP
16962012-12-03 Marek Polacek <polacek@redhat.com>
1697
1698 PR c/55570
1699 * c-common.c (check_user_alignment): Swap order of tests,
1700 check TREE_CODE first.
1701
2d7aa578
ESR
17022012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
1703
1704 PR c++/52654
1705 * c-common.h (overflow_type): New enum.
1706 (build_userdef_literal): Add overflow_type argument.
1707 (tree_userdef_literal): Add overflow_type.
1708 (USERDEF_LITERAL_OVERFLOW): New access macro.
1709 * c-common.c (build_userdef_literal): Add overflow_type
1710 argument.
1711 * c-lex.c (c_lex_with_flags): Add overflow_type to
1712 build_userdef_literal calls.
1713 (interpret_integer, interpret_float): Add overflow_type argument.
1714
cc3c4f62
RB
17152012-11-28 Richard Biener <rguenther@suse.de>
1716
1717 PR c/35634
1718 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1719 here and use a type with proper overflow behavior for types that would
1720 need to be promoted for the arithmetic.
1721
77bc5132
JJ
17222012-11-23 Jakub Jelinek <jakub@redhat.com>
1723
1724 PR sanitizer/55435
1725 * c-common.c (handle_no_address_safety_analysis_attribute): New
1726 function.
1727 (c_common_attribute_table): Add no_address_safety_analysis.
1728
5dc99c46
SB
17292012-11-16 Simon Baldwin <simonb@google.com>
1730
1731 * c.opt: Add f[no-]canonical-system-headers.
1732 * c-opts.c (c_common_handle_option): Handle
1733 OPT_fcanonical_system_headers.
1734
a4a0016d
ESR
17352012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
1736
1737 PR c++/54413
1738 * c-opts.c (c_common_handle_option): Set new flags.
1739 * c.opt: Describe new flags.
1740
7dbb85a7
JM
17412012-11-09 Jason Merrill <jason@redhat.com>
1742
1743 * c.opt (Wabi-tag): New.
1744
ad7bac31
AK
17452012-11-09 Andi Kleen <ak@linux.intel.com>
1746
1747 PR 55139
1748 * c-common.c (get_atomic_generic_size): Mask with
1749 MEMMODEL_MASK
1750
7332899a
MLI
17512012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1752
1753 PR c/53063
1754 * c.opt (Wformat): Make it Alias Wformat=1.
1755 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
1756 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
1757 LangEnabledBy.
1758 (Wformat=): RejectNegative. Use LangEnabledBy.
1759 (Wnonnull): Use LangEnabledBy.
1760 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
1761 * c-format.c (set_Wformat): Delete.
1762 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
1763 (maybe_read_dollar_number): Likewise.
1764 (avoid_dollar_number): Likewise.
1765 (finish_dollar_format_checking): Likewise.
1766 (check_format_info): Likewise.
1767 (check_format_info_main): Likewise.
1768 (check_format_types): Likewise.
1769 (format_type_warning): Likewise.
1770 * c-common.c (int): Likewise.
1771 (check_function_sentinel): Likewise.
1772 * c-common.h (warn_format,set_Wformat): Do not declare here.
1773
34a180a6
MLI
17742012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1775
1776 PR c/53063
1777 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
1778 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
1779 Use LangEnabledBy.
1780 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
1781 common.opt.
1782 (Wvariadic-macros): Init(1).
1783 * c-opts.c (c_common_handle_option): Do not handle them
1784 explicitly.
1785 (c_common_post_options): Likewise.
1786 (sanitize_cpp_opts): warn_unused_macros is now
1787 cpp_warn_unused_macros.
1788 (push_command_line_include): Likewise.
1789 * c-common.c (warn_unknown_pragmas): Do not define.
1790 * c-common.h (warn_unknown_pragmas): Do not declare.
1791
3f46d6a5
MLI
17922012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1793
1794 PR c/51294
1795 * c-common.c (conversion_warning): Handle conditional expressions.
1796
880661a4
JW
17972012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
1798
1799 PR c++/54930
1800 * c.opt (Wreturn_local_addr): Define new option.
1801
4514a96b
JM
18022012-10-25 Jason Merrill <jason@redhat.com>
1803
f14edc1a
JM
1804 * c.opt (Wvirtual-move-assign): New.
1805
4514a96b
JM
1806 * c.opt (Winherited-variadic-ctor): New.
1807
93100c6b
MG
18082012-10-25 Marc Glisse <marc.glisse@inria.fr>
1809
1810 PR c++/54427
1811 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
1812
1efcb8c6
JM
18132012-10-23 Joseph Myers <joseph@codesourcery.com>
1814
1815 * c-common.h (pch_cpp_save_state): Declare.
1816 * c-target.def (c_preinclude): New hook.
1817 * c-opts.c (done_preinclude): New.
1818 (push_command_line_include): Handle default preincluded header.
1819 (cb_file_change): Call pch_cpp_save_state when calling
1820 push_command_line_include.
1821 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
1822 (pch_cpp_save_state): New.
1823 (pch_init): Call pch_cpp_save_state conditionally, instead of
1824 calling cpp_save_state.
1825
4a0ae68e
MLI
18262012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1827
1828 PR c/53063
1829 PR c/40989
1830 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
1831 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
1832 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
1833 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
1834 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
1835 * c-opts.c (c_common_handle_option): Remove explicit handling from
1836 here.
1837 (c_common_post_options): Likewise.
1838
67e4210b
EB
18392012-10-18 Eric Botcazou <ebotcazou@adacore.com>
1840
1841 * c-ada-spec.c (LOCATION_COL): Delete.
1842 (compare_location): New function.
1843 (compare_node): Use it.
1844 (compare_comment): Likewise.
1845
65d4f2cd
MLI
18462012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1847
1848 PR c/53063
1849 PR c/40989
1850 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
1851 * c-opts.c (c_common_handle_option): Do not set them here. Add
1852 comment.
1853 (c_common_post_options): Likewise.
1854
909881cb
EB
18552012-10-16 Eric Botcazou <ebotcazou@adacore.com>
1856
1857 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
1858 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
1859 Remove POINTER_TYPE handling, add large unsigned handling and use
1860 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
1861
3a785c97
JJ
18622012-10-12 Jakub Jelinek <jakub@redhat.com>
1863
1864 PR c/54381
1865 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
1866 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
1867 locs and array of 3 trees instead of just single loc and single
1868 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
1869 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
1870 For *cmp* builtins that take two sources strings report warnings
1871 about first and second source, not about destination and source.
1872
5e54f81d
MG
18732012-10-12 Marc Glisse <marc.glisse@inria.fr>
1874
1875 PR c++/53055
1876 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
1877
f5b02f1e
EB
18782012-10-11 Eric Botcazou <ebotcazou@adacore.com>
1879
1880 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
1881 declaring something coming from another file.
1882
b46dbc6c
AC
18832012-10-10 Arnaud Charlet <charlet@adacore.com>
1884
f5b02f1e 1885 PR ada/54845
b46dbc6c
AC
1886 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
1887
5d9de0d0
PC
18882012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
1889
1890 PR c++/54194
1891 * c-common.c (warn_about_parentheses): Add location_t parameter;
1892 use EXPR_LOC_OR_LOC.
1893 * c-common.h: Update declaration.
1894
a212e43f
MG
18952012-10-09 Marc Glisse <marc.glisse@inria.fr>
1896
1897 PR c++/54427
1898 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
1899 more operations. Make error messages optional.
1900 * c-common.h (enum stv_conv): Moved from c-typeck.c.
1901 (scalar_to_vector): Declare.
1902
b1db7f91
JM
19032012-10-08 Jason Merrill <jason@redhat.com>
1904
1905 * c-common.c (c_common_reswords): Add thread_local.
1906
e28d52cf
DS
19072012-10-08 Dodji Seketeli <dodji@redhat.com>
1908
1909 PR c++/53528 C++11 attribute support
1910 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
1911 new functions.
1912 * c-common.c (check_cxx_fundamental_alignment_constraints): New
1913 static function.
1914 (handle_aligned_attribute): In choose strictest alignment
1915 among many. Use new check_cxx_fundamental_alignment_constraints.
1916 (handle_transparent_union_attribute): In c++11 attribute syntax,
1917 don't look through typedefs.
1918
3b78de56
AC
19192012-10-04 Arnaud Charlet <charlet@adacore.com>
1920
1921 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
1922 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
1923 out of dumpfile.h.
1924
6040bb5f
DC
19252012-09-25 Dehao Chen <dehao@google.com>
1926
1927 PR middle-end/54645
3b78de56 1928 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
1929 map when read in the pch.
1930
0b07a57e
AC
19312012-09-18 Arnaud Charlet <charlet@adacore.com>
1932
1933 * c-ada-spec.c: Style fixes.
1934
da5182be
TQ
19352012-09-18 Thomas Quinot <quinot@adacore.com>
1936
1937 * c.opt (-fada-spec-parent): Define new command line switch.
1938 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
1939 is specified, generate binding spec as a child of the specified unit.
1940
0ccb505d
PC
19412012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
1942 Manuel López-Ibáñez <manu@gcc.gnu.org>
1943
1944 PR c++/53210
1945 * c.opt ([Winit-self]): Enabled by -Wall in C++.
1946
c583af79
AC
19472012-08-23 Arnaud Charlet <charlet@adacore.com>
1948
1949 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
1950 for pointers, and add missing Convention C pragma.
1951 (print_ada_struct_decl): Add missing aliased keyword.
1952 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
1953
1a4049e7
JJ
19542012-08-17 Jakub Jelinek <jakub@redhat.com>
1955
1956 * c-common.c (sizeof_pointer_memaccess_warning): New function.
1957 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
1958 * c-opts.c (c_common_handle_option): Enable it for -Wall.
1959 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
1960 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
1961
70b5e7dc
RG
19622012-08-10 Richard Guenther <rguenther@suse.de>
1963
1964 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
1965
f8923f7e
SB
19662012-08-07 Steven Bosscher <steven@gcc.gnu.org>
1967
1968 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
1969 instead of separate pp_newline and pp_flush.
1970 (print_c_tree): Likewise.
1971
e45abe1f
RH
19722012-07-26 Richard Henderson <rth@redhat.com>
1973
1974 * c-common.c (handle_hot_attribute): Allow labels.
1975 (handle_cold_attribute): Likewise.
1976
332f1d24
JJ
19772012-07-20 Jakub Jelinek <jakub@redhat.com>
1978
1979 PR c++/28656
1980 * c-common.c (check_function_nonnull): Handle multiple nonnull
1981 attributes properly.
1982
7ee2468b
SB
19832012-07-16 Steven Bosscher <steven@gcc.gnu.org>
1984
1985 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
1986 * c-ada-spec.c: Likewise.
1987 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
1988
ee7b28eb
SB
19892012-07-14 Steven Bosscher <steven@gcc.gnu.org>
1990
1991 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
1992 Remove code conditional on it.
1993
6bdf3519
SB
19942012-07-11 Steven Bosscher <steven@gcc.gnu.org>
1995
1996 * c-gimplify.c: Do not include basic-block.h.
1997 * c-common.c: Do not include linfuncs.h.
1998
532aafad
SB
19992012-07-08 Steven Bosscher <steven@gcc.gnu.org>
2000
2001 * c-common.h: Include tree.h.
2002
8d0d1915
JM
20032012-07-02 Jason Merrill <jason@redhat.com>
2004
2005 PR c++/53524
2006 * c-common.c (get_priority): Call default_conversion.
2007
fbc873ad
UB
20082012-07-01 Uros Bizjak <ubizjak@gmail.com>
2009
2010 * c-pch.c (c_common_write_pch): Remove unused variables.
2011
d4a10d0a
SB
20122012-06-29 Steven Bosscher <steven@gcc.gnu.org>
2013
2014 * cppspec.c: Moved from gcc/ to here.
2015
6f3a2e23
KT
20162012-06-27 Kai Tietz <ktietz@redhat.com>
2017
2018 PR preprocessor/37215
2019 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
2020
8ca92d04
SB
20212012-06-21 Steven Bosscher <steven@gcc.gnu.org>
2022
2023 * c-common.h (c_common_print_pch_checksum): Remove.
2024 * c-pch.c: Do not include output.h.
2025 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
2026 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
2027 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
2028 (struct c_pch_header): Remove.
2029 (get_ident): Update gpch version.
2030 (pch_init): Do not print executable_checksum to asm_out_file.
2031 Do not fail if there is no asm_out_file to read back from. Set
2032 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
2033 (c_common_write_pch): Verify that nothing was written to asm_out_file
2034 since pch_init was called. Do not write a c_pch_header, and do not
2035 copy from asm_out_file to the PCH.
2036 (c_common_read_pch): Do not read a c_pch_header, and do not restore
2037 the content of asm_out_file from the PCH.
2038 (c_common_print_pch_checksum): Remove.
2039 * c-opts.c (c_common_init): Print out executable_checksum directly.
2040
70f42967
SB
20412012-06-19 Steven Bosscher <steven@gcc.gnu.org>
2042
2043 * c-target.def (objc_declare_unresolved_class_reference,
2044 objc_declare_class_definition): Add new hooks.
2045
a8781821
SB
20462012-06-19 Steven Bosscher <steven@gcc.gnu.org>
2047
2048 * c-lex.c: Do not include output.h.
2049 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
2050 Remove uses of ASM_OUTPUT_IDENT.
2051
9e1a8dd1
RR
20522012-06-15 Marc Glisse <marc.glisse@inria.fr>
2053
2054 PR c++/51033
2055 * c-common.h (c_build_vec_perm_expr): Move decl here.
2056 * c-common.c (c_build_vec_perm_expr): Move definition
2057 here.
2058
6f07a821
SB
20592012-06-06 Steven Bosscher <steven@gcc.gnu.org>
2060
2061 * c.opt (fconserve-space): Turn into a no-op.
2062
9faeb493 20632012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
2064
2065 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
2066 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
2067 both the start and end of the function.
2068
a4b7d13c
SB
20692012-06-04 Steven Bosscher <steven@gcc.gnu.org>
2070
2071 * c-common.c: Do not include output.h.
2072 * c-pragma.c: Likewise.
2073
c265f413
SA
20742012-06-04 Steven Bosscher <steven@gcc.gnu.org>
2075
2076 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
2077 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
2078 (lang_decl_name): Handle namespace decls.
2079
be7a421e
SB
20802012-05-31 Steven Bosscher <steven@gcc.gnu.org>
2081
2082 * c-ada-spec.c: Do not include output.h.
2083 * c-semantics.c: Likewise.
2084
65de6659
JM
20852012-05-29 Joseph Myers <joseph@codesourcery.com>
2086
2087 * c-common.c: Fix typo.
2088
ca5f4331
MM
20892012-05-29 Michael Matz <matz@suse.de>
2090
2091 * c-common.h (c_expand_decl): Remove prototype.
2092
4f7f7aca
MLI
20932012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2094
2095 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
2096 * c-opts.c (c_common_handle_option): Remove code handling
2097 warn_missing_braces.
2098
4a792f9b
PC
20992012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
2100
2101 PR c++/25137
2102 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
2103 -Wmissing_braces.
2104
650dc14a
DS
21052012-05-22 Dodji Seketeli <dodji@redhat.com>
2106
2107 PR c++/53322
2108 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
2109
9b095bf1
MLI
21102012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
2111
2112 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
2113 * c-opts.c (c_common_handle_option): Do not handle explicitly
2114 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
2115
0b2c4be5
DS
21162012-05-16 Dodji Seketeli <dodji@redhat.com>
2117
2118 PR preprocessor/7263
2119 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
2120 to cpp_classify_number. For diagnostics, use the precise location
2121 instead of the global input_location.
2122
a1bde5af
PC
21232012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
2124
d02924ef 2125 PR c++/11856
a1bde5af
PC
2126 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
2127
d1ede5f4
BS
21282012-05-14 Bernd Schmidt <bernds@codesourcery.com>
2129
a1bde5af 2130 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 2131
f2bc201f
MLI
21322012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
2133
2134 PR 53063
2135 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
2136 Wreorder): Use LangEnabledBy.
2137 * c-opts.c (c_common_handle_option): Do not enable them
2138 explicitly. Call lang-specific generated functions.
2139 (c_common_post_options): Do not set them here.
2140
95744782
MLI
21412012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
2142
2143 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
2144 Wmissing-field-initializers,Wmissing-parameter-type,
2145 Wold-style-declaration,Woverride-init): Use EnabledBy.
2146 * c-opts.c (c_common_post_options): Do not set here explicitly.
2147
7d5a5747
MLI
21482012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2149
2150 PR 53063
2151 * c-opts.c (c_common_handle_option): Use handle_generated_option
2152 to enable sub-options.
2153
5a3c9cf2
PC
21542012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
2155
2156 PR c++/53158
2157 * c-common.c (warnings_for_convert_and_check): Use warning_at.
2158
3ac8781c
RG
21592012-05-10 Richard Guenther <rguenther@suse.de>
2160
2161 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
2162 adjust commentary about TYPE_IS_SIZETYPE types.
2163
1e537948
MLI
21642012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2165
2166 PR c++/53261
2167 * c-common.c (warn_logical_operator): Check that argument of
2168 integer_zerop is not NULL.
2169
f2c4a785
MLI
21702012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
2171
2172 PR c/43772
2173 * c-common.c (warn_logical_operator): Do not warn if either side
2174 is already true or false.
2175
50f305ca
MLI
21762012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
2177
2178 PR c/51712
2179 * c-common.c (expr_original_type): New.
2180 (shorten_compare): Do not warn for enumeration types.
2181
0c3641b0
MLI
21822012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2183
2184 * c.opt (fpermissive): Add Var(flag_permissive).
2185
7edaa4d2
MG
21862012-04-30 Marc Glisse <marc.glisse@inria.fr>
2187
2188 PR c++/51033
2189 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
2190 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
2191
b9c8da34
DS
21922012-04-30 Dodji Seketeli <dodji@redhat.com>
2193
2194 Add -Wvarargs option
2195 * c.opt (Wvarargs): Define new option.
2196
e6c69da0
MLI
21972012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2198
2199 * c-common.c (check_function_arguments): Replace
2200 Wmissing-format-attribute with Wsuggest-attribute=format.
2201
90137d8f
MLI
22022012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2203
2204 * c.opt (Wsuggest-attribute=format): New. Alias of
2205 Wmissing-format-attribute.
2206 * c-format.c (decode_format_type): Replace
2207 Wmissing-format-attribute with Wsuggest-attribute=format.
2208 (check_function_format): Likewise.
2209
9faeb493 22102012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
2211
2212 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
2213 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
2214 * c.opt: Add Wliteral-suffix.
2215
c1771a20
MLI
22162012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2217
2218 PR c/44774
2219 * c.opt (Wpedantic): New.
2220 (pedantic): Alias Wpedantic.
2221 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
2222 (c_common_post_options): Likewise.
2223 (sanitize_cpp_opts): Likewise.
2224 * c-lex.c (interpret_float): Likewise.
2225 * c-format.c (check_format_types): Likewise.
2226 * c-common.c (pointer_int_sum): Likewise.
2227 (c_sizeof_or_alignof_type): Likewise.
2228 (c_add_case_label): Likewise.
2229 (c_do_switch_warnings): Likewise.
2230 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
2231
04b391c1
JM
22322012-04-15 Jason Merrill <jason@redhat.com>
2233
2234 PR c++/52818
2235 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
2236 (C_STD_NAME): Distinguish between C++98 and C++11.
2237
ac868f29
EB
22382012-04-11 Eric Botcazou <ebotcazou@adacore.com>
2239
2240 PR target/52624
2241 * c-common.h (uint16_type_node): Rename into...
2242 (c_uint16_type_node): ...this.
2243 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
2244 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
2245
fd4116f4
MLI
22462012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
2247
2248 * c-common.c (warn_if_unused_value): Move definition to here.
2249 * c-common.h (warn_if_unused_value): Move declaration to here.
2250
573ac65e
WB
22512012-03-23 William Bader <williambader@hotmail.com>
2252
2253 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
2254
552b8185
JM
22552012-03-20 Jason Merrill <jason@redhat.com>
2256
2257 * c-common.h (enum cxx_dialect): Add cxx1y.
2258 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
2259 test.
2260 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2261 * c-opts.c (c_common_post_options): Likewise.
2262 (set_std_cxx1y): New.
2263 (c_common_handle_option): Call it.
2264 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
2265
04398fa8
PC
22662012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
2267
2268 PR c++/14710
2269 * c.opt ([Wuseless-cast]): Add.
2270
d2a12ae7
RG
22712012-03-16 Richard Guenther <rguenther@suse.de>
2272
2273 * c-pretty-print.c (pp_c_initializer_list): Adjust.
2274
a12bf402
MLI
22752012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2276
2277 PR c++/44783
2278 * c.opt (ftemplate-backtrace-limit) Add.
2279
5c30094f
RO
22802012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2281
2282 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
2283 handling.
2284 * c-pragma.c (handle_pragma_extern_prefix): Remove.
2285 (init_pragma): Don't register extern_prefix.
2286
21fa2faf
RG
22872012-03-12 Richard Guenther <rguenther@suse.de>
2288
2289 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
2290 (builtin_type_for_size): Likewise.
2291
e3793c6f
JJ
22922012-02-13 Jakub Jelinek <jakub@redhat.com>
2293
2294 PR c++/52215
2295 * c-common.c (sync_resolve_params): Don't decide whether to convert
2296 or not based on TYPE_SIZE comparison, convert whenever arg_type
2297 is unsigned INTEGER_TYPE.
2298
93286335
PC
22992012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
2300
2301 PR c/52118
2302 * c.opt ([Wunused-local-typedefs]): Fix description.
2303
7a421706
MS
23042012-01-24 Mike Stump <mikestump@comcast.net>
2305
2306 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
2307 exactly.
2308
ba9b1f11
RG
23092012-01-18 Richard Guenther <rguenther@suse.de>
2310
2311 * c-opts.c (c_common_post_options): Reset LTO flags if
2312 we are about to generate a PCH.
2313
465406be
PC
23142012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
2315
2316 PR c++/51777
2317 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
2318 use pp_unsigned_wide_integer.
2319
aee15221
RG
23202012-01-10 Richard Guenther <rguenther@suse.de>
2321
2322 PR middle-end/51806
2323 * c-opts.c (c_common_handle_option): Move -Werror handling
2324 to language independent code.
2325
5720c0dc
RG
23262012-01-05 Richard Guenther <rguenther@suse.de>
2327
2328 PR middle-end/51764
2329 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
2330 from common.opt.
2331
73ac190a
PC
23322011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
2333
2334 PR c++/51316
2335 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
2336 of array types with an unknown bound.
2337
48b0b196
JM
23382011-12-20 Joseph Myers <joseph@codesourcery.com>
2339
2340 * c-common.c (flag_isoc99): Update comment to refer to C11.
2341 (flag_isoc1x): Change to flag_isoc11.
2342 * c-common.h (flag_isoc99): Update comment to refer to C11.
2343 (flag_isoc1x): Change to flag_isoc11.
2344 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
2345 C11.
2346 * c-opts.c (set_std_c1x): Change to set_std_c11.
2347 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
2348 Call set_std_c11.
2349 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
2350 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
2351 * c.opt (std=c1x): Change to std=c11. Document as non-draft
2352 standard.
2353 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
2354 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
2355 (std=gnu1x): Make alias of std=gnu11.
2356
d58d6eb5
JM
23572011-12-19 Jason Merrill <jason@redhat.com>
2358
2359 PR c++/51228
2360 * c-common.c (handle_transparent_union_attribute): Check the first
2361 field if the type is complete.
2362
b3908fcc
JW
23632011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
2364
2365 PR libstdc++/51365
2366 * c-common.c (RID_IS_FINAL): Add.
2367 * c-common.h (RID_IS_FINAL): Add.
2368
fea3ca91
IS
23692011-11-30 Iain Sandoe <iains@gcc.gnu.org>
2370
2371 * c.opt (fgnu-runtime): Provide full description.
2372 (fnext-runtime): Likewise.
2373 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
2374
62bad7cd
AM
23752011-11-28 Andrew MacLeod <amacleod@redhat.com>
2376
2377 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
2378 predefines in one place. Add LOCK_FREE predefines.
2379 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
2380 new func.
2381
c466c4ff
AM
23822011-11-24 Andrew MacLeod <amacleod@redhat.com>
2383
2384 PR c/51256
9faeb493 2385 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 2386 conditions
9faeb493
UB
2387 (resolve_overloaded_atomic_exchange,
2388 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
2389 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
2390 error_mark_node for error conditions.
9faeb493 2391
a5952633
RG
23922011-11-08 Richard Guenther <rguenther@suse.de>
2393
2394 PR middle-end/51010
2395 c-family/
2396
0a35513e
AH
23972011-11-07 Richard Henderson <rth@redhat.com>
2398 Aldy Hernandez <aldyh@redhat.com>
2399 Torvald Riegel <triegel@redhat.com>
2400
2401 Merged from transactional-memory.
2402
2403 * c-common.c (handle_tm_wrap_attribute,
2404 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
2405 (struct c_common_reswords): Added __transaction* keywords.
2406 (struct c_common_attribute_table): Added transaction* and tm_regparm
2407 attributes.
2408 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
2409 masks.
2410 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
2411 find_tm_attribute): Declare.
2412
6d87092d
JM
24132011-11-07 Jason Merrill <jason@redhat.com>
2414
2415 PR c++/35688
2416 * c-common.c, c-common.h: Revert yesterday's changes.
2417
8e7860a1
JM
24182011-11-06 Jason Merrill <jason@redhat.com>
2419
2420 PR c++/35688
2421 * c-common.c (decl_has_visibility_attr): Split out from...
2422 (c_determine_visibility): ...here.
2423 * c-common.h: Declare it.
2424
d19fa6b5
JM
24252011-11-06 Joseph Myers <joseph@codesourcery.com>
2426
2427 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
2428 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
2429 type.
2430 (check_user_alignment): New. Split out of
2431 handle_aligned_attribute. Disallow integer constants with
2432 noninteger types. Conditionally allow zero.
2433 (handle_aligned_attribute): Use check_user_alignment.
2434 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
2435
86951993
AM
24362011-11-06 Andrew MacLeod <amacleod@redhat.com>
2437 Richard Henderson <rth@redhat.com>
2438
2439 Merged from cxx-mem-model.
2440
2441 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 2442 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
2443 parameters that are the same type size.
2444 (get_atomic_generic_size): New. Find size of generic
2445 atomic function parameters and do typechecking.
2446 (add_atomic_size_parameter): New. Insert size into parameter list.
2447 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
2448 either __atomic_exchange_n or external library call.
9faeb493 2449 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 2450 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 2451 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
2452 __atomic_load_n or an external library call.
2453 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
2454 __atomic_store_n or an external library call.
2455 (resolve_overloaded_builtin): Handle new __atomic builtins.
2456
cf9e9959
EB
24572011-11-04 Eric Botcazou <ebotcazou@adacore.com>
2458
2459 PR c++/50608
2460 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
2461 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
2462 <INDIRECT_REF>: Return the argument.
2463 <ARRAY_REF>: Remove special code for negative offset.
2464 Call fold_build_pointer_plus instead of size_binop.
2465 (fold_offsetof): Remove STOP_REF argument and adjust.
2466 * c-common.h (fold_offsetof_1): Declare.
2467 (fold_offsetof): Remove STOP_REF argument.
2468
25339f10
JM
24692011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
2470
2471 PR c++/50810
2472 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2473 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2474 Wnarrowing for C++0x and C++98.
2475 * c.opt ([Wnarrowing]): Update.
2476
89401152
PC
24772011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
2478
2479 PR c++/44277
2480 * c.opt: Add Wzero-as-null-pointer-constant.
2481
97e3ad20
JM
24822011-10-31 Jason Merrill <jason@redhat.com>
2483
15694fdd
JM
2484 * c.opt (-fdeduce-init-list): Off by default.
2485
97e3ad20
JM
2486 PR c++/50920
2487 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
2488 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
2489 and -Wc++11-compat.
2490 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
2491
fb9120e3
RAV
24922011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
2493
2494 PR c++/30066
2495 * c.opt (fvisibility-inlines-hidden): Description change.
2496
3ce4f9e4
ESR
24972011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
2498
2499 Implement C++11 user-defined literals.
2500 * c-common.c (build_userdef_literal): New.
2501 * c-common.def: New tree code.
2502 * c-common.h (tree_userdef_literal): New tree struct and accessors.
2503 * c-lex.c (interpret_float): Add suffix parm.
2504 (c_lex_with_flags): Build literal tokens.
2505
5f53c243
PC
25062011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2507
2508 PR c++/50841
2509 Revert:
2510 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2511
2512 PR c++/50810
2513 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2514 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2515 Wnarrowing for C++0x and C++98.
2516 * c.opt ([Wnarrowing]): Update.
2517
263734e1
PC
25182011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2519
2520 PR c++/50810
2521 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2522 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2523 Wnarrowing for C++0x and C++98.
2524 * c.opt ([Wnarrowing]): Update.
2525
d2e312d7
PC
25262011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
2527
2528 PR c++/45385
2529 * c-common.c (conversion_warning): Remove code looking for
2530 artificial operands.
2531
d17687f6
DS
25322011-10-18 Dodji Seketeli <dodji@redhat.com>
2533
2534 PR bootstrap/50760
2535 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 2536 !NO_IMPLICIT_EXTERN_C.
d17687f6 2537
fc8396e9
PC
25382011-10-17 Michael Spertus <mike_spertus@symantec.com>
2539
2540 * c-common.c (c_common_reswords): Add __bases,
2541 __direct_bases.
2542 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
2543
25442011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
2545
2546 PR c++/50757
2547 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
2548
847e697a
TT
25492011-10-15 Tom Tromey <tromey@redhat.com>
2550 Dodji Seketeli <dodji@redhat.com>
2551
2552 * c.opt (fdebug-cpp): New option.
2553 * c-opts.c (c_common_handle_option): Handle the option.
2554 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
2555 output stream in parameter. Factorized from ...
2556 (maybe_print_line): ... this. Dump location debug information when
2557 -fdebug-cpp is in effect.
2558 (print_line_1): New static function. Takes an output stream in
2559 parameter. Factorized from ...
2560 (print_line): ... here. Dump location information when -fdebug-cpp
2561 is in effect.
2562 (scan_translation_unit): Dump location information when
2563 -fdebug-cpp is in effect.
2564
92582b75
TT
25652011-10-15 Tom Tromey <tromey@redhat.com>
2566 Dodji Seketeli <dodji@redhat.com>
2567
2568 * c.opt (ftrack-macro-expansion): New option. Handle it with and
2569 without argument.
2570 * c-opts.c (c_common_handle_option)<case
2571 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
2572 cases. Handle -ftrack-macro-expansion with and without argument.
2573
46427374
TT
25742011-10-15 Tom Tromey <tromey@redhat.com>
2575 Dodji Seketeli <dodji@redhat.com>
2576
2577 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
2578 (print_line, cb_define, do_line_change): Adjust to avoid touching
2579 the internals of struct line_map. Use the public API instead.
2580 * c-pch.c (c_common_read_pch): Likewise.
2581 * c-lex.c (fe_file_change): Likewise.
2582
fc8396e9
PC
25832011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
2584
2585 PR c++/17212
2586 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
2587
25882011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
2589
2590 PR c++/33067
2591 * c-pretty-print.c (pp_c_floating_constant): Output
2592 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
2593
e79983f4
MM
25942011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2595
2596 * c-common.c (def_builtin_1): Delete old interface with two
2597 parallel arrays to hold standard builtin declarations, and replace
2598 it with a function based interface that can support creating
2599 builtins on the fly in the future. Change all uses, and poison
2600 the old names. Make sure 0 is not a legitimate builtin index.
2601 * c-omp.c (c_finish_omp_barrier): Ditto.
2602 (c_finish_omp_taskwait): Ditto.
2603 (c_finish_omp_flush): Ditto.
2604
6637388f
TG
26052011-10-11 Tristan Gingold <gingold@adacore.com>
2606
2607 * c.opt: (fallow-parameterless-variadic-functions): New.
2608
3797cb21
DS
26092011-09-08 Dodji Seketeli <dodji@redhat.com>
2610
2611 PR c++/33255 - Support -Wunused-local-typedefs warning
2612 * c-common.h (struct c_language_function::local_typedefs): New
2613 field.
9faeb493
UB
2614 (record_locally_defined_typedef, maybe_record_typedef_use)
2615 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 2616 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
2617 (maybe_record_typedef_use)
2618 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
2619 * c.opt: Declare new -Wunused-local-typedefs flag.
2620
693ddb1b
EB
26212011-09-06 Eric Botcazou <ebotcazou@adacore.com>
2622
2623 PR middle-end/50266
2624 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
2625 computations.
2626
830c740f
RG
26272011-09-05 Richard Guenther <rguenther@suse.de>
2628
2629 * c-common.c (complete_array_type): Use ssize_int (-1) instead
2630 of integer_minus_one_node for empty array upper bounds.
2631
892a371f
DS
26322011-08-28 Dodji Seketeli <dodji@redhat.com>
2633
2634 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
2635 it's the first time it's being called on this main TU.
2636
0e3fdb48
RB
26372011-08-24 Richard Guenther <rguenther@suse.de>
2638
2639 PR c/49396
2640 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
2641
26422011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
2643
2644 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
2645 defined in cpp_init_builtins and c_cpp_builtins.
2646
d4a83c10
JM
26472011-08-19 Joseph Myers <joseph@codesourcery.com>
2648
2649 * c-common.c (c_common_reswords): Add __builtin_complex.
2650 * c-common.h (RID_BUILTIN_COMPLEX): New.
2651
bbceee64
JM
26522011-08-18 Joseph Myers <joseph@codesourcery.com>
2653
2654 * c-common.c (c_common_reswords): Add _Noreturn.
2655 (keyword_is_function_specifier): Handle RID_NORETURN.
2656 * c-common.h (RID_NORETURN): New.
2657
0e3a99ae
AS
26582011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2659
2660 * c-common.c (unsafe_conversion_p): New function. Check if it is
2661 unsafe to convert an expression to the type.
2662 (conversion_warning): Adjust, use unsafe_conversion_p.
2663 * c-common.h (unsafe_conversion_p): New function declaration.
2664
20906c66
JJ
26652011-08-02 Jakub Jelinek <jakub@redhat.com>
2666
2667 * c-common.h (c_finish_omp_atomic): Adjust prototype.
2668 (c_finish_omp_taskyield): New prototype.
2669 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
2670 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
2671 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
2672 or RHS1 have side-effects, evaluate those too in the right spot,
2673 if it is a decl and LHS is also a decl, error out if they
2674 aren't the same.
2675 (c_finish_omp_taskyield): New function.
2676 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
2677 * c-pragma.c (omp_pragmas): Add taskyield.
2678 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
2679 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
2680 PRAGMA_OMP_CLAUSE_MERGEABLE.
2681
770e5a2e
DS
26822011-07-25 Dodji Seketeli <dodji@redhat.com>
2683
2684 * c-common.h (set_underlying_type): Remove parm name from
2685 declaration.
2686
1baae426
RG
26872011-07-25 Romain Geissler <romain.geissler@gmail.com>
2688
2689 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 2690
fcb21722
JM
26912011-07-22 Jason Merrill <jason@redhat.com>
2692
76f86d00
JM
2693 PR c++/49793
2694 * c.opt (Wnarrowing): New.
2695
3a636414
JM
2696 PR c++/30112
2697 * c-common.h: Declare c_linkage_bindings.
2698 * c-pragma.c (handle_pragma_redefine_extname): Use it.
2699
fcb21722
JM
2700 PR c++/49813
2701 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
2702 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
2703 as flag_isoc99 for 'restrict'.
2704 (pp_c_specifier_qualifier_list): Likewise for _Complex.
2705
02614448
ILT
27062011-07-21 Ian Lance Taylor <iant@google.com>
2707
2708 PR middle-end/49705
2709 * c-common.c (c_disable_warnings): New static function.
2710 (c_enable_warnings): New static function.
2711 (c_fully_fold_internal): Change local unused_p to bool. Call
2712 c_disable_warnings and c_enable_warnings rather than change
2713 c_inhibit_evaluation_warnings.
2714
34429675
JM
27152011-07-20 Jason Merrill <jason@redhat.com>
2716
2717 PR c++/6709 (DR 743)
2718 PR c++/42603 (DR 950)
2719 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
2720 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
2721 (CPP_DECLTYPE): New.
2722 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
2723
5d49b6a7
RG
27242011-07-19 Richard Guenther <rguenther@suse.de>
2725
2726 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
2727 * c-omp.c (c_finish_omp_for): Likewise.
2728
e84a58ff
EB
27292011-07-12 Eric Botcazou <ebotcazou@adacore.com>
2730
2731 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
2732 body on the next line.
2733
329af3c7
JM
27342011-07-08 Jason Merrill <jason@redhat.com>
2735
4063e61b
JM
2736 PR c++/45437
2737 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
2738
329af3c7
JM
2739 PR c++/49673
2740 * c-common.c (c_apply_type_quals_to_decl): Don't check
2741 TYPE_NEEDS_CONSTRUCTING.
2742
1a072294
RG
27432011-07-06 Richard Guenther <rguenther@suse.de>
2744
2745 * c-common.c (c_common_nodes_and_builtins):
2746 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
2747
fce5dddd
RG
27482011-07-05 Richard Guenther <rguenther@suse.de>
2749
2750 * c-common.c (c_common_nodes_and_builtins): Build all common
2751 tree nodes first.
2752
45d439ac
JJ
27532011-06-27 Jakub Jelinek <jakub@redhat.com>
2754
56300785
JJ
2755 * c-common.h (c_tree_chain_next): New static inline function.
2756
45d439ac
JJ
2757 * c-common.c (check_builtin_function_arguments): Handle
2758 BUILT_IN_ASSUME_ALIGNED.
2759
e0a8ecf2
AM
27602011-06-21 Andrew MacLeod <amacleod@redhat.com>
2761
2762 * c-common.c: Add sync_ or SYNC__ to builtin names.
2763 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
2764
27652011-06-20 Pierre Vittet <piervit@pvittet.com>
2766
2767 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
2768 handler.
2769 (gen_pragma_handler): New union.
2770 (internal_pragma_handler): New type.
2771 (c_register_pragma_with_data)
2772 (c_register_pragma_with_expansion_and_data): New functions.
2773
2774 * c-pragma.c (registered_pragmas, c_register_pragma_1)
2775 (c_register_pragma, c_register_pragma_with_expansion)
2776 (c_invoke_pragma_handler): Changed to work with
2777 internal_pragma_handler.
2778 (c_register_pragma_with_data)
2779 (c_register_pragma_with_expansion_and_data): New functions.
2780
677f3fa8
JM
27812011-06-14 Joseph Myers <joseph@codesourcery.com>
2782
2783 * c-common.c: Include common/common-target.h.
2784 (handle_section_attribute): Use
2785 targetm_common.have_named_sections.
2786 * c-cppbuiltin.c: Include common/common-target.h.
2787 (c_cpp_builtins): Use targetm_common.except_unwind_info.
2788
d7fc8c14
RG
27892011-06-10 Richard Guenther <rguenther@suse.de>
2790
2791 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
2792 to print a IDENTIFIER_NODE.
2793
10e48e39
RO
27942011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2795 Joseph Myers <joseph@codesourcery.com>
2796
2797 * c.opt (fbuilding-libgcc): New option.
2798 * c-cppbuiltin.c (c_cpp_builtins): Define
2799 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
2800
6976ae51
JM
28012011-06-07 Jason Merrill <jason@redhat.com>
2802
3ff60975
JM
2803 * c-common.c (max_tinst_depth): Lower default to 900.
2804
6976ae51
JM
2805 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
2806
009db074
RG
28072011-06-07 Richard Guenther <rguenther@suse.de>
2808
2809 * c-common.c (c_common_nodes_and_builtins): Do not set
2810 size_type_node or call set_sizetype.
2811
b4592b92
DS
28122011-06-07 Dodji Seketeli <dodji@redhat.com>
2813
2814 PR debug/49130
2815 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 2816 type when using pointer comparison to compare types.
b4592b92 2817
014ab419
JW
28182011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
2819
2820 * c.opt: Add -Wdelete-non-virtual-dtor.
2821 * c-opts.c (c_common_handle_option): Include it in -Wall.
2822
4f60111f
NF
28232011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
2824
2825 PR bootstrap/49190
2826
2827 Revert:
2828 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2829
2830 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2831 not tree_common.
2832
4cc4f2f4
JJ
28332011-05-27 Jakub Jelinek <jakub@redhat.com>
2834
2835 PR c++/49165
2836 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
2837 C++ don't call c_common_truthvalue_conversion on void type arms.
2838
38e01f9e
NF
28392011-05-27 Nathan Froyd <froydnj@codesourcery.com>
2840
2841 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
2842 (stmt_list_stack): Define.
2843 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
2844 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
2845
92e948a8
NF
28462011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2847
2848 * c-common.c (warning_candidate_p): Check for BLOCKs.
2849
a2fc3e63
NF
28502011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2851
2852 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2853 not tree_common.
2854
0957c029
JJ
28552011-05-25 Jakub Jelinek <jakub@redhat.com>
2856
2857 * c-common.c (def_fn_type): Remove extra va_end.
2858
828fb3ba
JM
28592011-05-23 Jason Merrill <jason@redhat.com>
2860
2861 PR c++/48106
2862 * c-common.c (c_common_get_narrower): New.
2863 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
2864
dde05067
NF
28652011-05-23 Nathan Froyd <froydnj@codesourcery.com>
2866
2867 * c-common.h (check_function_arguments): Tweak prototype of
2868 check_function_arguments.
2869 * c-common.c (check_function_arguments): Likewise. Adjust
2870 calls to check_function_nonnull, check_function_format, and
2871 check_function_sentinel.
2872 (check_function_sentinel): Take a FUNCTION_TYPE rather than
2873 separate attributes and typelist arguments. Use
2874 FOREACH_FUNCTION_ARGS to iterate over argument types.
2875
3c0d13bf
PC
28762011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
2877
2878 * c-common.c (c_common_reswords): Reorder.
2879 * c-common.h (rid): Likewise.
2880
8242dd04
NF
28812011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2882
2883 * c-common.c (def_fn_type): Don't call build_function_type, call
2884 build_function_type_array or build_varargs_function_type_array
2885 instead.
2886 (c_common_nodes_and_builtins): Likewise.
2887
3d528853
NF
28882011-05-05 Nathan Froyd <froydnj@codesourcery.com>
2889
2890 * c-common.c (c_add_case_label): Omit the loc argument to
2891 build_case_label.
2892 * c-common.h (build_case_label): Remove.
2893 * c-semantics.c (build_case_label): Remove.
2894
a04a722b
JM
28952011-05-05 Joseph Myers <joseph@codesourcery.com>
2896
2897 * c-objc.h (objc_start_method_definition): Update prototype.
2898 * stub-objc.c (objc_start_method_definition): Add extra parameter.
2899
e19a18d4
NF
29002011-05-04 Nathan Froyd <froydnj@codesourcery.com>
2901
2902 * c-common.c (check_main_parameter_types): Reindent. Don't use
2903 TYPE_ARG_TYPES directly.
2904 (handle_nonnull_attribute): Likewise.
2905 (sync_resolve_params): Likewise.
2906 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
2907 to check_format_string.
2908 (handle_format_attribute): Likewise.
2909 (check_format_string): Take a function type to examine instead of
2910 a type list. Use a function_arg_iterator to step through argument
2911 types.
2912
c62c040f
RG
29132011-05-04 Richard Guenther <rguenther@suse.de>
2914
2915 * c-common.c (fix_string_type): Use size_int for index type bounds.
2916 (start_fname_decls): Do not pass NULL to build_int_cst.
2917 (c_init_attributes): Likewise.
2918 * c-lex.c (c_lex_with_flags): Likewise.
2919
c12ff9d8
JM
29202011-04-27 Jason Merrill <jason@redhat.com>
2921
2922 * c-common.c (make_tree_vector_from_list): New.
2923 * c-common.h: Declare it.
2924
304dfbe3
RG
29252011-04-26 Richard Guenther <rguenther@suse.de>
2926
2927 PR preprocessor/48248
2928 * c-ppoutput.c (maybe_print_line): Always optimize newlines
2929 for output size with -P.
2930
3c0d13bf
PC
29312011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
2932
2933 * c-common.c (struct c_common_resword): Add __underlying_type.
2934 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2935
04695783
JM
29362011-04-20 Jim Meyering <meyering@redhat.com>
2937
2938 * c-format.c (init_dollar_format_checking): Remove useless
2939 if-before-free.
2940
0dc33c3c
NP
29412011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
2942
2943 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 2944 (objc_detect_field_duplicates): New.
0dc33c3c 2945 * stub-objc.c: Likewise.
3c0d13bf 2946
c59633d9
NP
29472011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2948
2949 * stub-objc.c (objc_declare_protocols): Renamed to
2950 objc_declare_protocol.
2951 * c-objc.h: Likewise.
3c0d13bf 2952
32dabdaf
NP
29532011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2954
2955 * stub-objc.c (objc_declare_class): Updated argument name.
2956
81f653d6
NF
29572011-04-12 Nathan Froyd <froydnj@codesourcery.com>
2958
2959 * c-common.h (c_common_init_ts): Declare.
2960 * c-common.c (c_common_init_ts): Define.
2961
eb345401
NP
29622011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
2963
2964 * c-objc.h (objc_build_message_expr): Updated prototype.
2965 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 2966
a358e188
MJ
29672011-04-12 Martin Jambor <mjambor@suse.cz>
2968
2969 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
2970 of cgraph_node.
2971
e6313a78
RG
29722011-04-11 Richard Guenther <rguenther@suse.de>
2973
2974 * c-common.c (complete_array_type): Build a range type of
2975 proper type.
2976
dcf0c47e
NF
29772011-04-08 Nathan Froyd <froydnj@codesourcery.com>
2978
2979 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
2980 (handle_type_generic_attribute): Likewise.
2981
1ee44b26
JM
29822011-04-07 Jason Merrill <jason@redhat.com>
2983
2984 PR c++/48450
2985 * c-common.c (c_common_truthvalue_conversion): Don't ignore
2986 conversion from C++0x scoped enum.
2987
acce4e77
JM
29882011-04-06 Joseph Myers <joseph@codesourcery.com>
2989
2990 * c-target-def.h: New file.
2991 * c-target.def: New file.
2992 * c-target.h: New file.
2993 * c-common.c (targetcm): Don't define here.
2994 * c-common.h (default_handle_c_option): Declare.
2995 * c-format.c: Include c-target.h instead of target.h.
2996 * c-opts.c: Include c-target.h instead of target.h. Explicitly
2997 include tm.h.
2998 (default_handle_c_option): Move from targhooks.c.
2999
e2eefb55
JJ
30002011-03-29 Jakub Jelinek <jakub@redhat.com>
3001
3002 PR preprocessor/48248
3003 * c-ppoutput.c (print): Add src_file field.
3004 (init_pp_output): Initialize it.
3005 (maybe_print_line): Don't optimize by adding up to 8 newlines
3006 if map->to_file and print.src_file are different file.
3007 (print_line): Update print.src_file.
3008
ba78087b
KT
30092011-03-25 Kai Tietz <ktietz@redhat.com>
3010
3011 * c-ada-spec.c (compare_comment): Use filename_cmp
3012 instead of strcmp for filename.
3013
0edf1bb2
JL
30142011-03-25 Jeff Law <law@redhat.com>
3015
3016 * c-family/c-common.c (def_fn_type): Add missing va_end.
3017
c7dc8804
JM
30182011-03-25 Jason Merrill <jason@redhat.com>
3019
3020 * c.opt: Add -std=c++03.
3021
d1d879b1
EB
30222011-03-22 Eric Botcazou <ebotcazou@adacore.com>
3023
3024 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
3025
62d784f7
KT
30262011-03-17 Kai Tietz
3027
3028 PR target/12171
5050afdf
KT
3029 * c-pretty-print.c (pp_c_specifier_qualifier_list):
3030 Display allowed attributes for function pointer types.
3031 (pp_c_attributes_display): New function to display
3032 attributes having affects_type_identity flag set to true.
3033 * c-pretty-print.h (pp_c_attributes_display): New prototype.
3034
62d784f7
KT
3035 * c-common.c (c_common_attribute_table):
3036 Add new element.
3037 (c_common_format_attribute_table): Likewise.
3038
82d37118
JM
30392011-03-18 Jason Merrill <jason@redhat.com>
3040
49a000c3
JM
3041 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
3042 * c-common.h: Don't declare it here.
3043 * c-common.c: Or define it here.
3044 * c-opts.c (c_common_handle_option): Or set it here.
3045
82d37118
JM
3046 PR c++/35315
3047 * c-common.c (handle_transparent_union_attribute): Don't
3048 make a duplicate type in C++.
3049
17bc631c
JM
30502011-03-15 Jason Merrill <jason@redhat.com>
3051
3052 * c-common.c (max_constexpr_depth): New.
3053 * c-common.h: Declare it.
3054 * c-opts.c (c_common_handle_option): Set it.
3055 * c.opt (fconstexpr-depth): New option.
3056
1b9b91a6
JM
30572011-03-11 Jason Merrill <jason@redhat.com>
3058
f231b5ff
JM
3059 * c-common.c (attribute_takes_identifier_p): Add missing const.
3060
1b9b91a6
JM
3061 PR c++/46803
3062 * c-common.c (attribute_takes_identifier_p): Assume that an
3063 unknown attribute takes an identifier.
3064
a19e4d44
NF
30652011-03-07 Nathan Froyd <froydnj@codesourcery.com>
3066
3067 PR c/47786
3068 * c-common.c (c_type_hash): Call list_length instead of iterating
3069 through DECL_CHAIN. Rename 'i' to 'n_elements'.
3070
982d62f6
JJ
30712011-02-19 Jakub Jelinek <jakub@redhat.com>
3072
3073 PR c/47809
3074 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
3075
0a256240
NP
30762011-02-17 Iain Sandoe <iains@gcc.gnu.org>
3077
3078 * c.opt (fobjc-abi-version=) New.
3079 (fobjc-nilcheck): New.
3080
ba9e6dd5
NF
30812011-02-03 Nathan Froyd <froydnj@codesourcery.com>
3082
3083 PR c++/46890
3084 * c-common.h (keyword_is_decl_specifier): Declare.
3085 * c-common.c (keyword_is_decl_specifier): Define.
3086 (keyword_is_function_specifier): New function.
3087
7273813a
JJ
30882011-01-26 Jakub Jelinek <jakub@redhat.com>
3089
3090 PR c/47473
3091 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
3092 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
3093 REAL_TYPE.
3094
908ef79b
AC
30952011-01-26 Arnaud Charlet <charlet@adacore.com>
3096
3097 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
3098
237e9384
JJ
30992011-01-26 Jakub Jelinek <jakub@redhat.com>
3100
3101 PR pch/47430
3102 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
3103 after init_c_lex if pch_file is set.
3104
47ea1edf
DK
31052011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
3106
d4dba752 3107 PR c++/43601
47ea1edf
DK
3108 * c.opt (-fkeep-inline-dllexport): New switch.
3109
2aa9c6ae
RG
31102011-01-12 Richard Guenther <rguenther@suse.de>
3111
3112 PR middle-end/32511
3113 * c-common.c (handle_weak_attribute): Warn instead of error
3114 on declaring an inline function weak.
3115
7bd11157
TT
31162011-01-05 Tom Tromey <tromey@redhat.com>
3117
3118 * c-common.h (lvalue_error): Update.
3119 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
3120 not error.
3121
0e66e494 31222010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 3123
b4f588c4
NP
3124 PR objc/47075
3125 * c-objc.h (objc_finish_message_expr): Added argument to
3126 prototype.
3127
f4da8dce
NF
31282010-12-22 Nathan Froyd <froydnj@codesourcery.com>
3129
3130 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
3131 Use prototype_p.
3132
46270f14
NP
31332010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
3134
3135 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 3136 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 3137
4816c593
NF
31382010-12-10 Nathan Froyd <froydnj@codesourcery.com>
3139
3140 * c-common.h (readonly_error): Declare.
3141 * c-common.c (readonly_error): Define.
3142
7a6daeb0
NF
31432010-12-09 Nathan Froyd <froydnj@codesourcery.com>
3144
3145 * c-common.h (invalid_indirection_error): Declare.
3146 * c-common.c (invalid_indirection_error): Define.
3147
892f6119
RG
31482010-12-03 Richard Guenther <rguenther@suse.de>
3149
3150 PR c/46745
3151 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
3152 (pp_c_unary_expression): Likewise.
3153 (pp_c_expression): Likewise.
3154
6c39e757
NP
31552010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
3156
3157 * c-common.h (objc_finish_function): New.
3158 (objc_non_volatilized_type): Removed.
3159 (objc_type_quals_match): Removed.
3160 * stub-objc.c (objc_finish_function): New.
3161 (objc_non_volatilized_type): Removed.
3162 (objc_type_quals_match): Removed.
9faeb493 3163
7c475d11
JM
31642010-11-30 Joseph Myers <joseph@codesourcery.com>
3165
3166 * c-common.h (parse_optimize_options): Declare.
3167 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
3168 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
3169
71f3e391
JM
31702010-11-29 Joseph Myers <joseph@codesourcery.com>
3171
3172 * c-opts.c (check_deps_environment_vars): Use getenv instead of
3173 GET_ENVIRONMENT.
3174 * c-pch.c (O_BINARY): Don't define here.
3175 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
3176
d5fabb58
JM
31772010-11-25 Joseph Myers <joseph@codesourcery.com>
3178
3179 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
3180 targetm.except_unwind_info.
3181
299404a1
JM
31822010-11-23 Joseph Myers <joseph@codesourcery.com>
3183
3184 * c-opts.c (c_common_handle_option): Pass location to
3185 set_struct_debug_option.
3186
c98cd5bf
JM
31872010-11-23 Joseph Myers <joseph@codesourcery.com>
3188
3189 * c-common.c (visibility_options): Move from ../opts.c.
3190 * c-common.h (struct visibility_flags, visibility_options):
3191 Declare here.
3192 * c-opts.c (finish_options): Rename to c_finish_options.
3193 (c_common_init): Update call to finish_options.
3194
a9546771
NP
31952010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
3196
3197 PR objc/34033
3198 * c-lex.c (lex_string): Check that each string in an Objective-C
3199 string concat sequence starts with either one or zero '@', and
3200 that there are no spurious '@' signs at the end.
3201
24a57808
JM
32022010-11-20 Joseph Myers <joseph@codesourcery.com>
3203
3204 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
3205 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
3206 HANDLE_PRAGMA_VISIBILITY.
3207 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
3208 HANDLE_PRAGMA_VISIBILITY): Don't define.
3209 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
3210
a9aa2c3a
NF
32112010-11-20 Nathan Froyd <froydnj@codesourcery.com>
3212
3213 PR c++/16189
3214 PR c++/36888
3215 PR c++/45331
3216 * c-common.h (keyword_begins_type_specifier): Declare.
3217 (keyword_is_storage_class_specifier): Declare.
3218 (keyword_is_type_qualifier): Declare.
3219 * c-common.c (keyword_begins_type_specifier): New function.
3220 (keyword_is_storage_class_specifier): New function.
3221 (keyword_is_type_qualifier): Declare.
3222
5386338c
JM
32232010-11-19 Joseph Myers <joseph@codesourcery.com>
3224
3225 PR c/46547
3226 * c-common.c (in_late_binary_op): Define.
3227 (c_common_truthvalue_conversion): Check in_late_binary_op before
3228 calling c_save_expr.
3229 * c-common.h (in_late_binary_op): Declare.
3230
69ccdddb
JM
32312010-11-19 Joseph Myers <joseph@codesourcery.com>
3232
3233 * c-opts.c (c_common_handle_option): Update calls to
3234 set_struct_debug_option.
3235
6b192a09
NP
32362010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
3237
3238 * c-common.h (objc_declare_protocols): Added additional argument.
3239 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 3240
fb52b50a
NF
32412010-11-18 Nathan Froyd <froydnj@codesourcery.com>
3242
3243 PR c/33193
3244 * c-common.h (build_real_imag_expr): Declare.
3245 * c-semantics.c (build_real_imag_expr): Define.
3246
b37421c6
JM
32472010-11-17 Joseph Myers <joseph@codesourcery.com>
3248
3249 * c-opts.c (c_common_parse_file): Take no arguments.
3250 * c-common.h (c_common_parse_file): Update prototype.
3251
07078664
JJ
32522010-11-16 Jakub Jelinek <jakub@redhat.com>
3253
3254 PR c++/46401
3255 * c-common.c (warning_candidate_p): Don't track non-const calls
3256 or STRING_CSTs.
3257
c6a13190
ILT
32582010-11-15 Ian Lance Taylor <iant@google.com>
3259
3260 * c-lex.c (init_c_lex): Set macro debug callbacks if
3261 flag_dump_go_spec is set.
3262
925e8657
NP
32632010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
3264
3265 * c-common.h (objc_build_incr_expr_for_property_ref): New.
3266 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
3267
bb0a9581
NF
32682010-11-15 Nathan Froyd <froydnj@codesourcery.com>
3269
3270 PR preprocessor/45038
3271 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
3272 dialects.
3273
c5fa0890
JM
32742010-11-12 Joseph Myers <joseph@codesourcery.com>
3275
3276 * c-common.h (c_family_lang_mask): Declare.
3277 * c-opts.c (c_family_lang_mask): Make extern.
3278 * c-pragma.c (handle_pragma_diagnostic): Use
3279 control_warning_option.
3280
a4d8c676
JM
32812010-11-12 Joseph Myers <joseph@codesourcery.com>
3282
3283 * c-common.c (parse_optimize_options): Update call to
3284 decode_options.
3285 * c-common.h (c_common_handle_option): Update prototype.
3286 * c-opts.c (c_common_handle_option): Take location_t parameter and
3287 pass it to other functions.
3288
f954bd2c
JM
32892010-11-11 Joseph Myers <joseph@codesourcery.com>
3290
3291 * c-opts.c (warning_as_error_callback): Remove.
3292 (c_common_initialize_diagnostics): Don't call
3293 register_warning_as_error_callback.
3294 (c_common_handle_option): Handle -Werror=normalized= here.
3295
d8a07487
JM
32962010-11-10 Joseph Myers <joseph@codesourcery.com>
3297
3298 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
3299 in diagnostic.
3300 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
3301 letter.
3302 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
3303 Remove trailing '.' from diagnostics.
3304 * c.opt (Wwrite-strings_: Avoid '`' in help text.
3305
d5478783
JM
33062010-11-10 Joseph Myers <joseph@codesourcery.com>
3307
3308 * c-common.c (parse_optimize_options): Pass global_dc to
3309 decode_options.
3310 * c-opts.c (c_common_handle_option): Pass &global_options to
3311 set_Wstrict_aliasing.
3312 * c.opt (v): Don't mark Common or document here.
3313
91ebb981
IS
33142010-11-06 Iain Sandoe <iains@gcc.gnu.org>
3315
3316 PR target/44981
3317 * c-format.c (format_type): New type gcc_objc_string_format_type.
3318 (valid_stringptr_type_p): New.
3319 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 3320 (check_format_string): Pass expected type, use
91ebb981
IS
3321 valid_stringptr_type_p (), check that the format string types are
3322 consistent with the format specification.
3323 (decode_format_attr): Warn if NSString is used outside objective-c.
3324 (format_types_orig): Add NSString.
3325 (format_name): New.
3326 (format_flags): New.
3327 (check_format_arg): Handle format strings requiring an external parser.
3328 first_target_format_type: New variable.
3329 (handle_format_attribute): Set up first_target_format_type, pass the
3330 expected format arg string type to check_format_string().
3331 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
3332 * stub-objc.c (objc_string_ref_type_p): New.
3333 (objc_check_format_arg): New.
3334
bede2adc
NP
33352010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
3336
9faeb493 3337 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
3338 * c-common.h (objc_build_class_component_ref): New.
3339 * stub-objc.c (objc_build_class_component_ref): New.
3340
9a179d01
NP
33412010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
3342
3343 * c.opt (Wproperty-assign-default): New option.
3344
22d8d616
NP
33452010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
3346
3347 Implemented -fobjc-std=objc1 flag.
3348 * c.opt (fobjc-std=objc1): New option.
3349
2debdb4f
NP
33502010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
3351
3352 Implemented format and noreturn attributes for Objective-C methods.
3353 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
3354 attribute for Objective-C methods.
3355
ec52b111
JM
33562010-10-31 Jason Merrill <jason@redhat.com>
3357
3358 * c-common.c (conversion_warning, warn_for_collisions_1): Use
3359 EXPR_LOC_OR_HERE.
3360
46a88c12
NP
33612010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
3362
3363 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
3364 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
3365 (objc_add_property_declaration): Removed arguments for copies and
3366 ivar.
3367 (objc_build_getter_call): Renamed to
3368 objc_maybe_build_component_ref.
3369 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
3370 (objc_is_property_ref): New.
3371 * c-common.c (c_common_reswords): Removed copies and ivar.
3372 * stub-objc.c (objc_add_property_declaration): Removed arguments
3373 for copies and ivar.
3374 (objc_build_getter_call): Renamed to
3375 objc_maybe_build_component_ref.
3376 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
3377 (objc_is_property_ref): New.
9faeb493 3378
1e4bf85b
AC
33792010-10-29 Arnaud Charlet <charlet@adacore.com>
3380 Matthew Gingell <gingell@adacore.com>
3381
3382 * c-ada-spec.c (separate_class_package): New function.
3383 (pp_ada_tree_identifier): Prefix references to C++ classes with the
3384 name of their enclosing package.
3385 (print_ada_declaration): Use separate_class_package.
3386
81f0bab2
JM
33872010-10-27 Jason Merrill <jason@redhat.com>
3388
2b08f2c5
JM
3389 * c-common.c (c_common_reswords): Add __is_literal_type.
3390 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
3391
81f0bab2
JM
3392 * c-common.c (check_case_value): Remove special C++ code.
3393
200290f2
NP
33942010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
3395
3396 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
3397 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
3398 and RID_LAST_PATTR.
3399 (objc_add_property_declaration): Added additional arguments.
3400 (objc_property_attribute_kind): Removed.
3401 (objc_set_property_attr): Removed.
3402 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
3403 copy and nonatomic.
3404 * stub-objc.c (objc_add_property_declaration): Added additional
3405 arguments.
3406 (objc_set_property_attr): Removed.
9faeb493 3407
f614132b
NP
34082010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
3409
3410 * c-common.h (objc_add_property_variable): Renamed to
3411 objc_add_property_declaration. Added location argument.
3412 * stub-objc.c (objc_add_property_variable): Same change.
3413
b8a18805
NP
34142010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
3415
3416 * c-common.h (objc_maybe_printable_name): New.
3417 * stub-objc.c (objc_maybe_printable_name): New.
3418
30cd1c5d
AS
34192010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3420 Andrew Pinski <pinskia@gmail.com>
3421
3422 * c-common.h (c_common_mark_addressable_vec): Declare.
3423 * c-common.c (c_common_mark_addressable_vec): New function.
3424
249a82c4
NP
34252010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
3426
3427 * c-common.h (objc_set_method_type): Removed.
3428 (objc_add_method_declaration): Added boolean argument.
3429 (objc_start_method_definition): Same change.
3430 (objc_build_method_signature): Same change.
3431 * stub-objc.c (objc_set_method_type): Removed.
3432 (objc_add_method_declaration): Added boolean argument.
3433 (objc_start_method_definition): Same change.
3434 (objc_build_method_signature): Same change.
3435
977e30bc
NP
34362010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
3437
3438 * c-common.h (finish_file): Removed.
3439 (objc_write_global_declarations): New.
3440 * c-opts.c (c_common_parse_file): Do not call finish_file.
3441 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 3442
da57d1b9
NP
34432010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
3444
3445 Implemented parsing @synthesize and @dynamic for
3446 Objective-C/Objective-C++.
3447 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
3448 (objc_add_synthesize_declaration): New.
3449 (objc_add_dynamic_declaration): New.
3450 * c-common.c (c_common_reswords): Add synthesize and dynamic.
3451 * stub-objc.c (objc_add_synthesize_declaration): New.
3452 (objc_add_dynamic_declaration): New.
9faeb493 3453
0069111f
MM
34542010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
3455
3456 PR target/46041
3457 * c-cppbuiltin.c (mode_has_fma): Move function here from
3458 builtins.c. Don't use the fma optab, instead just use the
3459 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
3460 using -save-temps.
3461
e426b47b
NP
34622010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
3463
3464 Merge from 'apple/trunk' branch on FSF servers.
0069111f 3465
e426b47b
NP
3466 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
3467
9faeb493 3468 Radar 4330422
e426b47b
NP
3469 * c-common.h (objc_non_volatilized_type): New declaration
3470 * stub-objc.c (objc_non_volatilized_type): New stub.
3471
90fbfdc3
NP
34722010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
3473
e426b47b 3474 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
3475
3476 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
3477
9faeb493 3478 Radar 4133425
90fbfdc3 3479 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 3480 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 3481
c37d8c30
IS
34822010-10-17 Iain Sandoe <iains@gcc.gnu.org>
3483
3484 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
3485 * c-common.h (enum rid): Add RID_AT_PACKAGE.
3486 (objc_ivar_visibility_kind): New enum.
3487 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 3488 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
3489 visibility enum.
3490
1b1562a5
MM
34912010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3492
3493 * c-cppbuiltin.c (builtin_define_float_constants): Emit
3494 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
3495 has the appropriate fma builtins.
3496 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
3497
668ea4b1
IS
34982010-10-14 Iain Sandoe <iains@gcc.gnu.org>
3499
1b1562a5 3500 merge from FSF apple 'trunk' branch.
668ea4b1 3501 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 3502
668ea4b1
IS
3503 Radars 4436866, 4505126, 4506903, 4517826
3504 * c-common.c (c_common_resword): Define @property and its attributes.
3505 * c-common.h: Define property attribute enum entries.
3506 (OBJC_IS_PATTR_KEYWORD): New.
3507 (objc_property_attribute_kind): New enum.
3508 Declare objc_set_property_attr (), objc_add_property_variable (),
3509 objc_build_getter_call () and objc_build_setter_call ().
3510 * stub-objc.c (objc_set_property_attr): New stub.
3511 (objc_add_property_variable): Likewise.
3512 (objc_build_getter_call): Likewise.
3513 (objc_build_setter_call) Likewise.
1b1562a5 3514
a1178b30
IS
35152010-10-13 Iain Sandoe <iains@gcc.gnu.org>
3516
1b1562a5 3517 merge from FSF apple 'trunk' branch.
a1178b30
IS
3518 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
3519
3520 Radar 3803157 (method attributes)
3521 * c-common.c (handle_deprecated_attribute): Recognize
3522 objc methods as valid declarations.
3523 * c-common.h: Declare objc_method_decl ().
1b1562a5 3524 * stub-objc.c (objc_method_decl): New stub.
a1178b30 3525
a75bfaa6
JM
35262010-10-08 Joseph Myers <joseph@codesourcery.com>
3527
3528 * c-common.c (parse_optimize_options): Call
3529 decode_cmdline_options_to_array_default_mask before
3530 decode_options. Update arguments to decode_options.
3531 * c-common.h (c_common_init_options_struct): Declare.
3532 * c-opts.c (c_common_init_options_struct): New. Split out from
3533 c_common_init_options.
3534
f05b9d93
NP
35352010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
3536
3537 Implemented fast enumeration for Objective-C.
3538 * c-common.h (objc_finish_foreach_loop): New.
3539 * stub-objc.c (objc_finish_foreach_loop): New.
3540
1ebe4b4f
JM
35412010-10-05 Joseph Myers <joseph@codesourcery.com>
3542
3543 * c-common.h (struct diagnostic_context): Don't declare here.
3544 (c_common_initialize_diagnostics): Declare using
3545 diagnostic_context typedef.
3546 * c-opts.c (c_common_handle_option): Pass global_dc to
3547 handle_generated_option.
3548
d4d24ba4
JM
35492010-10-04 Joseph Myers <joseph@codesourcery.com>
3550
3551 * c-opts.c (c_common_handle_option): Pass &global_options_set to
3552 handle_generated_option.
3553
478a1c5b
ILT
35542010-10-03 Ian Lance Taylor <iant@google.com>
3555
3556 * c.opt (-fplan9-extensions): New option.
3557
82a1c2fe
FXC
35582010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3559
3560 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
3561 Remove.
3562 (c_cpp_builtins): Call functions from cppbuiltin.c instead
3563 of duplicating code.
3564
92902b1b
IS
35652010-09-30 Iain Sandoe <iains@gcc.gnu.org>
3566
3567 * c-common.c: Add two new entries for @optional
3568 and @required keywords.
3569
3570 merge from FSF 'apple/trunk' branch.
3571 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
3572
3573 Radar 4386773
3574 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
3575 objective-c keywords.
3576 (objc_set_method_opt): New declaration.
3577 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 3578
46625112
JM
35792010-09-30 Joseph Myers <joseph@codesourcery.com>
3580
3581 * c-common.c (handle_optimize_attribute): Pass &global_options to
3582 cl_optimization_save and cl_optimization_restore.
3583 * c-opts.c (c_common_handle_option): Pass &global_options to
3584 handle_generated_option.
3585 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
3586 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
3587 &global_options to cl_optimization_restore.
3588
49b91f05
NP
35892010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
3590
3591 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
3592 Objective-C/Objective-C++ keywords.
3593
13ed556f 35942010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 3595
9faeb493
UB
3596 Merge from 'apple/trunk' branch on FSF servers.
3597
a6341d57
NP
3598 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
3599
3600 Radar 4281748
3601 * c-common.h (objc_check_global_decl): New declaration.
3602 * stub-objc.c (objc_check_global_decl): New stub.
3603
f0036cca
JM
36042010-09-29 Joseph Myers <joseph@codesourcery.com>
3605
3606 * c.opt: Don't use VarExists.
3607
e3339d0f
JM
36082010-09-29 Joseph Myers <joseph@codesourcery.com>
3609
3610 * c-common.c (c_cpp_error): Update names of diagnostic_context
3611 members.
3612 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
3613 cl_optimization members.
3614 * c-opts.c (warning_as_error_callback, c_common_handle_option,
3615 sanitize_cpp_opts, finish_options): Update names of cpp_options
3616 members.
3617
1973201f
NP
36182010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
3619
3620 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
3621 (objc_is_reserved_word): Removed.
3622 * c-common.c: Updated comments.
3623 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
3624 objc_is_reserved_word.
3625 * stub-objc.c (objc_is_reserved_word): Removed.
3626
f7e71da5
IS
36272010-09-28 Iain Sandoe <iains@gcc.gnu.org>
3628
9faeb493 3629 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
3630 include attributes.
3631 (objc_start_method_definition): Likewise.
3632 (objc_build_keyword_decl): Likewise.
3633 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
3634 (objc_start_method_definition): Likewise.
3635 (objc_build_keyword_decl): Likewise.
3636
c165dca7
IS
36372010-09-28 Iain Sandoe <iains@gcc.gnu.org>
3638
3639 * c-common.h (objc_start_class_interface): Adjust prototype.
3640 (objc_start_category_interface): Likewise.
3641 (objc_start_protocol): Likewise.
3642 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
3643 (objc_start_class_interface): Likewise.
3644 (objc_start_category_interface): Likewise.
3645
7458026b
ILT
36462010-09-27 Ian Lance Taylor <iant@google.com>
3647
3648 * c-common.c (c_common_attribute_table): Add no_split_stack.
3649 (handle_no_split_stack_attribute): New static function.
3650
b581b85b
NP
36512010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
3652
9faeb493 3653 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
3654
3655 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
3656
9faeb493 3657 Radar 4229905
b581b85b
NP
3658 * c-common.h (objc_have_common_type): New declaration.
3659 * stub-objc.c (objc_have_common_type): New stub.
3660
3661 2005-06-22 Ziemowit Laski <zlaski@apple.com>
3662
3663 Radar 4154928
3664 * c-common.h (objc_common_type): New prototype.
9faeb493 3665 * stub-objc.c (objc_common_type): New stub.
b581b85b 3666
46a4da10
JH
36672010-09-24 Jan Hubicka <jh@suse.cz>
3668
3669 * c-common.c (handle_leaf_attribute): New function.
3670 (struct attribute_spec c_common_att): Add leaf.
3671
e200444e
JM
36722010-09-22 Joseph Myers <joseph@codesourcery.com>
3673
3674 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
3675 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
3676 -dump, -dump=, -imacros, -imacros=, -include, -include=,
3677 -include-barrier, -include-directory, -include-directory=,
3678 -include-directory-after, -include-directory-after=,
3679 -include-prefix, -include-prefix=, -include-with-prefix,
3680 -include-with-prefix=, -include-with-prefix-after,
3681 -include-with-prefix-after=, -include-with-prefix-before,
3682 -include-with-prefix-before=, -no-integrated-cpp,
3683 -no-line-commands, -no-standard-includes, -no-warnings, -output,
3684 -output=, -pedantic, -pedantic-errors, -preprocess,
3685 -print-missing-file-dependencies, -trace-includes, -traditional,
3686 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
3687 -user-dependencies, -verbose, -write-dependencies,
3688 -write-user-dependencies, no-integrated-cpp, traditional): New.
3689
29a80ea6
NP
36902010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
3691
3692 PR objc/23710
ac1fc2fc
NP
3693 * c-common.h (objc_start_method_definition): Return bool instead
3694 of void.
3695 * stub-objc.c (objc_start_method_definition): Return bool instead
3696 of void.
3697
36982010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
3699
3700 PR objc/25965
3701 * c-common.h (objc_get_interface_ivars): New declaration.
3702 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 3703
de621752
ILT
37042010-09-15 Ian Lance Taylor <iant@google.com>
3705
3706 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 3707 messages. Remove period at end of warning message.
de621752 3708
ba885ec5
NS
37092010-09-09 Nathan Sidwell <nathan@codesourcery.com>
3710
3711 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
3712 (handle_alias_attribute): ... here.
3713 (handle_ifunc_attribute): New.
3714
c5ee1358
MM
37152010-09-06 Mark Mitchell <mark@codesourcery.com>
3716
3717 * c-common.h (do_warn_double_promotion): Declare.
3718 * c-common.c (do_warn_double_promotion): Define.
3719
0a0b3574
MM
37202010-09-05 Mark Mitchell <mark@codesourcery.com>
3721
3722 * c.opt (Wdouble-promotion): New.
3723
d1779886
JM
37242010-09-02 Joseph Myers <joseph@codesourcery.com>
3725
3726 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
3727 fvtable-thunks, fxref): Mark no longer supported in help text.
3728
2d2bd949
JM
37292010-09-02 Joseph Myers <joseph@codesourcery.com>
3730
3731 * c.opt (Wimport, fall-virtual, falt-external-templates,
3732 fdefault-inline, fenum-int-equiv, fexternal-templates,
3733 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
3734 fname-mangling-version-, fnew-abi, fnonnull-objects,
3735 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
3736 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
3737 applicable.
3738 (fhandle-exceptions): Mark with Alias and Warn.
3739 * c-opts.c (c_common_handle_option): Don't handle options marked
3740 as ignored.
3741
5de8299c
JM
37422010-09-02 Joseph Myers <joseph@codesourcery.com>
3743
3744 * c.opt (Wcomments, Werror-implicit-function-declaration,
3745 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
3746 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
3747 aliases.
3748 * c-common.c (option_codes): Use OPT_Wcomment instead of
3749 OPT_Wcomments.
3750 * c-opts.c (warning_as_error_callback, c_common_handle_option):
3751 Don't handle options marked as aliases.
3752
0ceb0201
RG
37532010-08-25 Richard Guenther <rguenther@suse.de>
3754
3755 * c-common.c (c_common_get_alias_set): Remove special
3756 handling for pointers.
3757
ac47786e
NF
37582010-08-20 Nathan Froyd <froydnj@codesourcery.com>
3759
3760 * c-common.c: Use FOR_EACH_VEC_ELT.
3761 * c-gimplify.c: Likewise.
3762 * c-pragma.c: Likewise.
3763
c878765b
JM
37642010-08-16 Joseph Myers <joseph@codesourcery.com>
3765
3766 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
3767 RejectDriver.
3768 (MMDX): Change back to MMD. Mark NoDriverArg instead of
3769 RejectDriver.
3770 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
3771 instead of OPT_MDX and OPT_MMDX.
3772
603349bf
JM
37732010-08-16 Joseph Myers <joseph@codesourcery.com>
3774
3775 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
3776
644fa7ac
JM
37772010-08-12 Joseph Myers <joseph@codesourcery.com>
3778
3779 * c.opt (MD, MMD): Change to MDX and MMDX.
3780 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
3781
481e1176
JM
37822010-08-11 Joseph Myers <joseph@codesourcery.com>
3783
3784 * c-opts.c (c_common_handle_option): Call handle_generated_option
3785 instead of handle_option.
3786
ac8dc9f7
NF
37872010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3788
3789 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
3790 (maybe_apply_renaming_pragma): Delete unneeded declarations.
3791
4f8c876d
NF
37922010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3793
3794 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
3795 (pending_redefine_extname): Change type to a VEC.
3796 (add_to_renaming_pragma_list): Update for new type of
3797 pending_redefine_extname.
ac8dc9f7 3798 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 3799
3b0c690e
AC
38002010-08-04 Arnaud Charlet <charlet@adacore.com>
3801
3802 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
3803 visited.
3804 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
3805 decide whether a type has already been declared/seen.
3806 Do not go to the original type.
3807 (dump_nested_types): New parameter forward.
3808 Generate forward declaration if needed and mark type as visited.
3809 (print_ada_declaration): Call dump_nested_types if not already done.
3810 Mark types as visited.
3811
1890bccc
JM
38122010-08-03 Joseph Myers <joseph@codesourcery.com>
3813
3814 * c.opt (-print-pch-checksum): Remove option.
3815 * c-opts.c (c_common_handle_option): Don't handle
3816 OPT_print_pch_checksum.
3817
5f20c657
JM
38182010-07-27 Joseph Myers <joseph@codesourcery.com>
3819
3820 * c-common.h (c_common_handle_option): Update prototype and return
3821 value type.
3822 * c-opts.c (c_common_handle_option): Update prototype and return
3823 value type. Update calls to handle_option and
3824 enable_warning_as_error.
3825
f551f80c
JJ
38262010-07-27 Jakub Jelinek <jakub@redhat.com>
3827
3828 PR c/45079
3829 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
3830
61ff2bdc
JM
38312010-07-27 Joseph Myers <joseph@codesourcery.com>
3832
3833 * c-common.h (c_common_missing_argument): Remove.
3834 * c-opts.c (c_common_missing_argument): Remove.
3835 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
3836 idirafter, imacros, include, isysroot, isystem, iquote): Add
3837 MissingArgError.
3838 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
3839
7a9bf9a4
JM
38402010-07-27 Joseph Myers <joseph@codesourcery.com>
3841
3842 * c-common.h (c_common_option_lang_mask,
3843 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
3844 New.
3845 (c_common_init_options): Update prototype.
3846 * c-opts.c (c_common_option_lang_mask): New.
3847 (c_common_initialize_diagnostics): Split out of
3848 c_common_init_options.
3849 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
3850 New.
3851 (c_common_init_options): Update prototype. Use decoded options in
3852 search for -lang-asm.
3853
910ad8de
NF
38542010-07-15 Nathan Froyd <froydnj@codesourcery.com>
3855
3856 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
3857 * c-format.c: Likewise.
3858
718f9c0f
MLI
38592010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
3860
3861 * c-common.h: Include diagnostic-core.h. Error if already
3862 included.
3863 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
3864
4d451982
MLI
38652010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3866
3867 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
3868 Do not include expr.h
3869 (vector_mode_valid_p): Move here.
3870
119fe915
SB
38712010-06-21 DJ Delorie <dj@redhat.com>
3872
3873 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
3874 allow these pragmas anywhere.
3875
38762010-06-14 Jakub Jelinek <jakub@redhat.com>
3877
3878 PR bootstrap/44509
3879 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
3880 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
3881 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
3882 ggc_strdup instead of xstrdup.
3883
38842010-06-10 Jakub Jelinek <jakub@redhat.com>
3885
3886 * c-cppbuiltin.c: Include cpp-id-data.h.
3887 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
3888 (lazy_hex_fp_value): New function.
3889 (builtin_define_with_hex_fp_value): Provide definitions lazily.
3890
6662d794
MLI
38912010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3892
3893 * c-gimplify.c: Do not include tree-flow.h
3894
38f8b050
JR
38952010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
3896
3897 PR other/44034
3898 * c-common.c: Rename targetm member:
3899 targetm.enum_va_list -> targetm.enum_va_list_p
3900
9589f23e
AS
39012010-06-28 Anatoly Sokolov <aesok@post.ru>
3902
3903 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
3904
3b06d379
SB
39052010-06-28 Steven Bosscher <steven@gcc.gnu.org>
3906
3907 * c-cppbuiltin.c: Do not include except.h.
3908
d166d4c3
AK
39092010-06-24 Andi Kleen <ak@linux.intel.com>
3910
9faeb493
UB
3911 * c-common.c (warn_for_omitted_condop): New.
3912 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 3913
70cb8be6
JM
39142010-06-21 Joseph Myers <joseph@codesourcery.com>
3915
3916 * c.opt (lang-objc): Remove.
3917 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
3918
a4c97feb
JR
39192010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
3920
3921 * c-opts.c: Include "tm_p.h".
3922
6e2f1956
JM
39232010-06-20 Joseph Myers <joseph@codesourcery.com>
3924
3925 * c-common.c (parse_optimize_options): Update call to
3926 decode_options.
3927
bc87224e
NF
39282010-06-18 Nathan Froyd <froydnj@codesourcery.com>
3929
3930 * c-common.c (record_types_used_by_current_var_decl): Adjust for
3931 new type of types_used_by_cur_var_decl.
3932
b49cf425
JR
39332010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
3934
3935 PR bootstrap/44512
3936 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
3937 for C++ standard compliance.
3938
59f9c2ed
JM
39392010-06-16 Jason Merrill <jason@redhat.com>
3940
3941 * c.opt: Add -Wnoexcept.
3942
33766b66
RG
39432010-06-16 Richard Guenther <rguenther@suse.de>
3944
3945 PR c/44555
3946 * c-common.c (c_common_truthvalue_conversion): Remove
3947 premature and wrong optimization concering ADDR_EXPRs.
3948
eff7e30c
AC
39492010-06-15 Arnaud Charlet <charlet@adacore.com>
3950
3951 * c-ada-spec.c (dump_sloc): Remove column info.
3952 (is_simple_enum): New function.
3953 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
3954 enum types when relevant.
3955
6312e84d
MLI
39562010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3957
9faeb493 3958 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
3959 location.
3960
1cb42611
JM
39612010-06-10 Joseph Myers <joseph@codesourcery.com>
3962
3963 * c-opts.c (c_common_handle_option): Don't handle
3964 OPT_fshow_column.
3965
a9429e29
LB
39662010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3967
3968 * c-pragma.c (push_alignment): Use typed GC allocation.
3969 (handle_pragma_push_options): Likewise.
3970
3971 * c-common.c (parse_optimize_options): Likewise.
3972
3973 * c-common.h (struct sorted_fields_type): Add variable_size GTY
3974 option.
3975
5498f011
JM
39762010-06-07 Joseph Myers <joseph@codesourcery.com>
3977
3978 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
3979 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3980 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3981 flag_signed_bitfields, warn_strict_null_sentinel,
3982 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
3983 flag_gen_declaration, flag_no_gnu_keywords,
3984 flag_implement_inlines, flag_implicit_templates,
3985 flag_implicit_inline_templates, flag_optional_diags,
3986 flag_elide_constructors, flag_default_inline, flag_rtti,
3987 flag_conserve_space, flag_access_control, flag_check_new,
3988 flag_new_for_scope, flag_weak, flag_working_directory,
3989 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
3990 flag_enforce_eh_specs, flag_threadsafe_statics,
3991 flag_pretty_templates): Remove.
3992 * c-common.h (flag_preprocess_only, flag_nil_receivers,
3993 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
3994 flag_replace_objc_classes, flag_undef, flag_no_builtin,
3995 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3996 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3997 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
3998 flag_no_gnu_keywords, flag_implement_inlines,
3999 flag_implicit_templates, flag_implicit_inline_templates,
4000 flag_optional_diags, flag_elide_constructors, flag_default_inline,
4001 flag_rtti, flag_conserve_space, flag_access_control,
4002 flag_check_new, flag_new_for_scope, flag_weak,
4003 flag_working_directory, flag_use_cxa_atexit,
4004 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
4005 flag_threadsafe_statics, flag_pretty_templates,
4006 warn_strict_null_sentinel): Remove.
4007 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
4008 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
4009 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
4010 fimplicit-inline-templates, fimplicit-templates,
4011 flax-vector-conversions, fms-extensions, fnil-receivers,
4012 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
4013 frtti, fshort-double, fshort-enums, fshort-wchar,
4014 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
4015 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
4016 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
4017 gen-decls, undef): Use Var.
4018 (fdefault-inline, foptional-diags): Document as doing nothing.
4019 * c-opts.c (c_common_handle_option): Remove cases for options now
4020 using Var. Mark ignored options as such.
4021
39dabefd
SB
40222010-06-05 Steven Bosscher <steven@gcc.gnu.org>
4023
9faeb493 4024 * c-common.c: Moved to here from parent directory.
39dabefd
SB
4025 * c-common.def: Likewise.
4026 * c-common.h: Likewise.
4027 * c-cppbuiltin.c: Likewise.
4028 * c-dump.c: Likewise.
4029 * c-format.c: Likewise.
4030 * c-format.h : Likewise.
4031 * c-gimplify.c: Likewise.
4032 * c-lex.c: Likewise.
4033 * c-omp.c: Likewise.
4034 * c.opt: Likewise.
4035 * c-opts.c: Likewise.
4036 * c-pch.c: Likewise.
4037 * c-ppoutput.c: Likewise.
4038 * c-pragma.c: Likewise.
4039 * c-pragma.h: Likewise.
4040 * c-pretty-print.c: Likewise.
4041 * c-pretty-print.h: Likewise.
4042 * c-semantics.c: Likewise.
4043 * stub-objc.c: Likewise.
4044
4045 * c-common.c: Include gt-c-family-c-common.h.
4046 * c-pragma.c: Include gt-c-family-c-pragma.h.
4047\f
23a5b65a 4048Copyright (C) 2010-2014 Free Software Foundation, Inc.
39dabefd
SB
4049
4050Copying and distribution of this file, with or without modification,
4051are permitted in any medium without royalty provided the copyright
4052notice and this notice are preserved.
This page took 1.350505 seconds and 5 git commands to generate.