]> gcc.gnu.org Git - gcc.git/blame - gcc/c-family/ChangeLog
[multiple changes]
[gcc.git] / gcc / c-family / ChangeLog
CommitLineData
9a771876
JJ
12014-09-02 Jakub Jelinek <jakub@redhat.com>
2 Balaji V. Iyer <balaji.v.iyer@intel.com>
3 Igor Zamyatin <igor.zamyatin@intel.com>
4
5 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
6 * c-common.c (c_common_reswords): Added _Cilk_for.
7 * c-common.h (enum rid): Added RID_CILK_FOR.
8 (cilk_for_number_of_iterations): Add declaration.
9 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
10 CILK_FOR.
11 * c-pragma.c (init_pragma): Register "grainsize" pragma.
12 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
13
81b5d104
MLI
142014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
15
16 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
17 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
18 Wundef): Use CPP, Var and Init.
19 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
20
b753b37b
MLI
212014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
22
23 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
24 * c-opts.c (c_common_handle_option): Do not handle here.
25
028aee17
JM
262014-08-25 Jason Merrill <jason@redhat.com>
27
28 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
29 -std=c++14 and -std=gnu++14, rather than the reverse.
30 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
31 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
32 * c-common.h (cxx_dialect): Remove cxx1y.
33
e4276ba5
ESR
342014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
35
36 * c-common.h (enum cxx_dialect): Add cxx14.
37 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
38 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
39 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
40
a545cacd
JM
412014-08-22 Jason Merrill <jason@redhat.com>
42
43 * c.opt (std=gnu++17): Fix alias.
44
59ea0364
MP
452014-08-22 Marek Polacek <polacek@redhat.com>
46
47 PR c++/62199
48 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
49 check for vector types. Drop LHS argument.
50 * c-common.h (warn_logical_not_parentheses): Adjust.
51
596e808c
MLI
522014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
53
54 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
55 (Wmultichar): Likewise.
56 (Wdate-time): Use C-family languages instead of Common. Use CPP
57 and Var.
58 * c-opts.c (c_common_handle_option): Do not handle the above
59 options here.
60 (sanitize_cpp_opts): Likewise.
61
18767f65
MLI
622014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
63
64 PR fortran/44054
65 * c-opts.c: Include tree-diagnostics.h.
66 (c_diagnostic_finalizer): New.
67 (c_common_initialize_diagnostics): Use it.
68
b4413594
MLI
692014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
70
71 PR preprocessor/51303
72 * c-common.c (struct reason_option_codes_t option_codes):
73 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
74
43f9a13c
MLI
752014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
76
77 PR c/60975
78 PR c/53063
79 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
80 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
81 (c_common_post_options): Call init_global_opts_from_cpp.
82 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
83
04159acf
MP
842014-08-19 Marek Polacek <polacek@redhat.com>
85
86 PR c++/62153
87 * c-common.c (maybe_warn_bool_compare): New function.
88 * c-common.h (maybe_warn_bool_compare): Declare.
89 * c.opt (Wbool-compare): New option.
90
35aff4fb
MP
912014-08-19 Marek Polacek <polacek@redhat.com>
92
93 * c.opt (Wc99-c11-compat): New option.
94
177cce46
MP
952014-08-19 Marek Polacek <polacek@redhat.com>
96
97 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
98 to warn_c90_c99_compat.
99 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
100 to -1.
101
6ae9194f
MLI
1022014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
103 Steven Bosscher <steven@gcc.gnu.org>
104
105 PR c/52952
106 * c-format.c: Add extra_arg_loc and format_string_loc to struct
107 format_check_results.
108 (check_function_format): Use true and add comment for boolean
109 argument.
110 (finish_dollar_format_checking): Use explicit location when warning.
111 (check_format_info): Likewise.
112 (check_format_arg): Set extra_arg_loc and format_string_loc.
113 (check_format_info_main): Use explicit location when warning.
114 (check_format_types): Pass explicit location.
115 (format_type_warning): Likewise.
116
8e54f6d3
MLI
1172014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
118
119 PR fortran/44054
120 * c-format.c: Handle Fortran flags.
121
cd4e76fc
IZ
1222014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
123
124 PR other/61962
125 * array-notation-common.c (find_rank): Added handling for other
126 types of references.
127
f3bede71
MP
1282014-08-10 Marek Polacek <polacek@redhat.com>
129
130 PR c/51849
131 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
132 * c.opt (Wc90-c99-compat): Add option.
133
9f25a338
TS
1342014-08-07 Trevor Saunders <tsaunders@mozilla.com>
135
136 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
137
62e4eb35
MP
1382014-08-03 Marek Polacek <polacek@redhat.com>
139
140 * c-common.c (check_case_value): Add location_t parameter. Use it.
141 (c_add_case_label): Pass loc to check_case_value.
142
b787e7a2
TS
1432014-08-02 Trevor Saunders <tsaunders@mozilla.com>
144
145 * cilk.c: Use hash_map instead of pointer_map.
146
6e2830c3
TS
1472014-08-02 Trevor Saunders <tsaunders@mozilla.com>
148
149 * c-gimplify.c: Use hash_set instead of pointer_set.
150
a7ee52fb
IZ
1512014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
152
153 PR middle-end/61455
154 * array-notation-common.c (extract_array_notation_exprs): Handling
155 of DECL_EXPR added.
156
944fa280
JJ
1572014-08-01 Jakub Jelinek <jakub@redhat.com>
158
159 * c-common.h (min_align_of_type): Removed prototype.
160 * c-common.c (min_align_of_type): Removed.
161 * c-ubsan.h (ubsan_maybe_instrument_reference,
162 ubsan_maybe_instrument_member_call): New prototypes.
163 * c-ubsan.c: Include stor-layout.h and builtins.h.
164 (ubsan_maybe_instrument_reference_or_call,
165 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
166 functions.
167
b4dfdc11
MG
1682014-07-31 Marc Glisse <marc.glisse@inria.fr>
169
170 PR c++/60517
171 * c.opt (-Wreturn-local-addr): Move to common.opt.
172
a41844e5
JM
1732014-07-30 Jason Merrill <jason@redhat.com>
174
175 PR c++/61659
176 PR c++/61687
177 Revert:
178 * c.opt (-fuse-all-virtuals): New.
179
976d5a22
TT
1802014-07-30 Tom Tromey <tromey@redhat.com>
181
182 PR c/59855
183 * c.opt (Wdesignated-init): New option.
184 * c-common.c (c_common_attribute_table): Add "designated_init".
185 (handle_designated_init): New function.
186
cdc94aca
MP
1872014-07-24 Marek Polacek <polacek@redhat.com>
188
189 PR c/57653
190 * c-opts.c (c_finish_options): If -imacros is in effect, return.
191
f41373b6
DS
1922014-07-16 Dodji Seketeli <dodji@redhat.com>
193
194 PR preprocessor/60723 - missing system-ness marks for macro tokens
195 * c-ppoutput.c (struct print::prev_was_system_token): New data
196 member.
197 (init_pp_output): Initialize it.
198 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
199 (do_line_change): Return a flag saying if a line marker was
200 emitted or not.
201 (scan_translation_unit): Detect if the system-ness of the token we
202 are about to emit is different from the one of the previously
203 emitted token. If so, emit a line marker. Avoid emitting useless
204 adjacent line markers. Avoid emitting line markers for tokens
205 originating from the expansion of built-in macros.
206 (scan_translation_unit_directives_only): Adjust.
207
4d661eaa
MP
2082014-07-15 Marek Polacek <polacek@redhat.com>
209
210 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
211 TYPE_MAX_VALUE is NULL.
212
b108f48f
JJ
2132014-07-14 Jakub Jelinek <jakub@redhat.com>
214
215 PR middle-end/61294
216 * c.opt (Wmemset-transposed-args): New warning.
217
c0221884
JM
2182014-07-10 Jason Merrill <jason@redhat.com>
219
220 PR c++/61659
221 PR c++/61687
222 * c.opt (-fuse-all-virtuals): New.
223
63dfbb95
RB
2242014-07-09 Richard Biener <rguenther@suse.de>
225
226 PR c-family/61741
227 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
228 using unsigned arithmetic if overflow does not wrap instead of
229 if overflow is undefined.
230
773ec47f
MP
2312014-07-06 Marek Polacek <polacek@redhat.com>
232
233 PR c/6940
234 * c.opt (Wsizeof-array-argument): New option.
235
00a7ba58
JJ
2362014-07-03 Jakub Jelinek <jakub@redhat.com>
237
238 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
239 comments->count <= 1, as comments->entries might be NULL.
240
52ec0ea3
MP
2412014-07-01 Marek Polacek <polacek@redhat.com>
242
243 * c.opt (Wint-conversion): New option.
244
d5c3d343
MP
2452014-07-01 Marek Polacek <polacek@redhat.com>
246
247 PR c/58286
248 * c.opt (Wincompatible-pointer-types): New option.
249
6e7ceb17
PC
2502014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
251
252 PR c++/51400
253 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
254 Do not discard TYPE_QUALS of type.
255
da73100b
JM
2562014-06-26 Jason Merrill <jason@redhat.com>
257
258 * c-common.h (enum cxx_dialect): Add cxx1z.
259 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
260 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
261
08eedf75
TJ
2622014-06-26 Teresa Johnson <tejohnson@google.com>
263
264 * c-common.h (get_dump_info): Declare.
265 * c-gimplify.c (c_genericize): Use saved dump files.
266 * c-opts.c (c_common_parse_file): Begin and end dumps
267 once around parsing invocation.
268 (get_dump_info): New function.
269
7b56b2f8
MP
2702014-06-23 Marek Polacek <polacek@redhat.com>
271 Andrew MacLeod <amacleod@redhat.com>
272
273 PR c/61553
274 * c-common.c (get_atomic_generic_size): Don't segfault if the
275 type doesn't have a size.
276
0e37a2f3
MP
2772014-06-20 Marek Polacek <polacek@redhat.com>
278
279 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
280 (ubsan_walk_array_refs_r): New function.
281 (c_genericize): Instrument array bounds.
282 * c-ubsan.c: Include "internal-fn.h".
283 (ubsan_instrument_division): Mark instrumented arrays as having
284 side effects. Adjust ubsan_type_descriptor call.
285 (ubsan_instrument_shift): Likewise.
286 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
287 (ubsan_instrument_bounds): New function.
288 (ubsan_array_ref_instrumented_p): New function.
289 (ubsan_maybe_instrument_array_ref): New function.
290 * c-ubsan.h (ubsan_instrument_bounds): Declare.
291 (ubsan_array_ref_instrumented_p): Declare.
292 (ubsan_maybe_instrument_array_ref): Declare.
293
2942014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
295
296 PR lto/61123
297 * c.opt (fshort-enums): Add to LTO.
298 * c.opt (fshort-wchar): Likewise.
299
5c3d09f7
MP
3002014-06-16 Marek Polacek <polacek@redhat.com>
301
302 PR c/60439
303 * c.opt (Wswitch-bool): Add Var.
304
9cf32741
JJ
3052014-06-12 Jakub Jelinek <jakub@redhat.com>
306
307 PR middle-end/61486
308 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
309 #pragma omp target teams or
310 #pragma omp {,target }teams distribute simd.
311
62984918
JM
3122014-06-12 Jason Merrill <jason@redhat.com>
313
314 * c.opt (Wabi=, fabi-compat-version): New.
315 * c-opts.c (c_common_handle_option): Handle -Wabi=.
316 (c_common_post_options): Handle flag_abi_compat_version default.
317 Disallow -fabi-compat-version=1.
318 * c-common.h (abi_version_crosses): New.
319
f961457f
JH
3202014-06-11 Jan Hubicka <hubicka@ucw.cz>
321
322 * c-family/c-common.c (handle_section_attribute): Update handling for
323 section names that are no longer trees.
324
92d28cbb
JJ
3252014-06-10 Jakub Jelinek <jakub@redhat.com>
326
327 PR fortran/60928
328 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
329 (omp_pragmas): ... back here.
330
742938c9
MP
3312014-06-05 Marek Polacek <polacek@redhat.com>
332
333 PR c/49706
334 * c-common.c (warn_logical_not_parentheses): New function.
335 * c-common.h (warn_logical_not_parentheses): Declare.
336 * c.opt (Wlogical-not-parentheses): New option.
337
9d548dfb
MP
3382014-06-04 Marek Polacek <polacek@redhat.com>
339
340 PR c/30020
341 * c-common.c (check_case_bounds): Add location parameter.
342 Use it.
343 (c_add_case_label): Pass loc to check_case_bounds.
344
fedfecef
MP
3452014-06-03 Marek Polacek <polacek@redhat.com>
346
347 PR c/60439
348 * c.opt (Wswitch-bool): New option.
349
f6a7cffc
TS
3502014-05-22 Thomas Schwinge <thomas@codesourcery.com>
351
040d18b6
TS
352 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
353 Remove prototypes.
354 (record_types_used_by_current_var_decl): Move prototype to where
355 it belongs.
356
f6a7cffc
TS
357 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
358 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
359 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
360
632f2871
RS
3612014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
362
363 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
364 * c-common.c (c_common_nodes_and_builtins): Don't initialize
365 void_zero_node.
366 * c-pretty-print.c (pp_c_void_constant): New function.
367 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
368 (c_pretty_printer::expression): Handle VOID_CST.
369 * cilk.c (extract_free_variables): Likewise.
370 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
371 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
372
766090c2
TS
3732014-05-17 Trevor Saunders <tsaunders@mozilla.com>
374
375 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
376 * c-pragma.c (push_alignment): Adjust.
377 (handle_pragma_push_options): Likewise.
378
661a0813
MP
3792014-05-09 Marek Polacek <polacek@redhat.com>
380
381 PR c/50459
382 * c-common.c (check_user_alignment): Return -1 if alignment is error
383 node.
384 (handle_aligned_attribute): Don't call default_conversion on
385 FUNCTION_DECLs.
386 (handle_vector_size_attribute): Likewise.
387 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
388 (handle_sentinel_attribute): Call default_conversion and allow even
389 integral types as an argument.
390
2793eeab
MP
3912014-05-08 Marek Polacek <polacek@redhat.com>
392
393 PR c/61053
394 * c-common.c (min_align_of_type): New function factored out from...
395 (c_sizeof_or_alignof_type): ...here.
396 * c-common.h (min_align_of_type): Declare.
397
f827930a
MP
3982014-05-08 Marek Polacek <polacek@redhat.com>
399
400 PR c/61077
401 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
402 parameter type of main.
403
ca49b74e
DD
4042014-05-07 DJ Delorie <dj@redhat.com>
405
406 * c-cppbuiltin.c (print_bits_of_hex): New.
407 (builtin_define_type_minmax): Print values using hex so as not to
408 require a pre-computed list of string values.
409
1d60af08
KZ
4102014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
411 Mike Stump <mikestump@comcast.net>
412 Richard Sandiford <rdsandiford@googlemail.com>
413
414 * c-ada-spec.c: Include wide-int.h.
415 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
416 (dump_generic_ada_node): Use wide-int interfaces.
417 * c-common.c: Include wide-int-print.h.
418 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
419 (pointer_int_sum): Use wide-int interfaces.
420 (c_common_nodes_and_builtins): Use make_int_cst.
421 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
422 (handle_alloc_size_attribute): Use wide-int interfaces.
423 (get_nonnull_operand): Likewise.
424 * c-format.c (get_constant): Use tree_fits_uhwi_p.
425 * c-lex.c: Include wide-int.h.
426 (narrowest_unsigned_type): Take a widest_int rather than two
427 HOST_WIDE_INTs.
428 (narrowest_signed_type): Likewise.
429 (interpret_integer): Update accordingly. Use wide-int interfaces.
430 (lex_charconst): Use wide-int interfaces.
431 * c-pretty-print.c: Include wide-int.h.
432 (pp_c_integer_constant): Use wide-int interfaces.
433 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
434 INT_CST_LT_UNSIGNED.
435
b15458be
RB
4362014-05-06 Richard Biener <rguenther@suse.de>
437
438 * c-opts.c (c_common_post_options): For -freestanding,
439 -fno-hosted and -fno-builtin disable pattern recognition
440 if not enabled explicitely.
441
6577374e
MP
4422014-05-02 Marek Polacek <polacek@redhat.com>
443
444 * c.opt (Wsizeof-pointer-memaccess): Describe option.
445
d00887e8
MP
4462014-05-01 Marek Polacek <polacek@redhat.com>
447
448 PR c/43245
449 * c.opt (Wdiscarded-qualifiers): Add.
450
f8ed5150
MP
4512014-04-30 Marek Polacek <polacek@redhat.com>
452
453 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
454 INT_MIN / -1 sanitization only for integer types.
455
45484dcf
MP
4562014-04-25 Marek Polacek <polacek@redhat.com>
457
458 PR c/18079
459 * c-common.c (handle_noinline_attribute): Warn if the attribute
460 conflicts with always_inline attribute.
461 (handle_always_inline_attribute): Warn if the attribute conflicts
462 with noinline attribute.
463
38e514c0
MP
4642014-04-25 Marek Polacek <polacek@redhat.com>
465
466 PR c/60156
467 * c-common.c (check_main_parameter_types): Warn about variadic main.
468
44875f92
MS
4692014-04-24 Mike Stump <mikestump@comcast.net>
470
471 * c.opt (Wshadow-ivar): Default to on.
472
dcaaa5a0
DP
4732014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
474
475 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
476
c07d7c02
MP
4772014-04-23 Marek Polacek <polacek@redhat.com>
478
479 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
480
1c33c9b7
JJ
4812014-04-22 Jakub Jelinek <jakub@redhat.com>
482
483 PR sanitizer/60275
484 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
485 if flag_sanitize_undefined_trap_on_error.
486 (ubsan_instrument_division, ubsan_instrument_shift,
487 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
488 if !flag_sanitize_recover.
489
793c625f
MG
4902014-04-22 Marc Glisse <marc.glisse@inria.fr>
491
492 PR libstdc++/43622
493 * c-common.c (registered_builtin_types): Make non-static.
494 * c-common.h (registered_builtin_types): Declare.
495
b0f1bf36
RB
4962014-04-14 Richard Biener <rguenther@suse.de>
497 Marc Glisse <marc.glisse@inria.fr>
498
499 PR c/60819
500 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
501 apply may-alias the scalar pointer type when applicable.
502
3b07fa4a
IZ
5032014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
504
505 PR middle-end/60467
506 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
507 as possible argument for Cilk_spawn.
508
cbbd2b1c
TB
5092014-04-11 Tobias Burnus <burnus@net-b.de>
510
511 PR c/60194
512 * c.opt (Wformat-signedness): Add
513 * c-format.c(check_format_types): Use it.
514
6415bd5d
JM
5152014-04-11 Jason Merrill <jason@redhat.com>
516
517 PR c++/57926
518 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
519 default_conversion for an array argument.
520
6525783a
MP
5212014-04-08 Marek Polacek <polacek@redhat.com>
522
523 PR sanitizer/60745
524 * c-ubsan.c: Include asan.h.
525 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
526
880a467b
NS
5272014-04-03 Nathan Sidwell <nathan@codesourcery.com>
528
529 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
530
7b59ff2d
MP
5312014-04-02 Marek Polacek <polacek@redhat.com>
532
533 * c-common.h (c_expand_expr): Remove declaration.
534
8edbfaa6
JJ
5352014-03-28 Jakub Jelinek <jakub@redhat.com>
536
537 PR c++/60689
538 * c-common.c (add_atomic_size_parameter): When creating new
539 params vector, push the size argument first.
540
07d72e1d
JJ
5412014-03-26 Jakub Jelinek <jakub@redhat.com>
542
543 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
544 ubsan_instrument_vla, ubsan_instrument_return): Adjust
545 ubsan_create_data callers.
546
b35e0fa0
JJ
5472014-03-22 Jakub Jelinek <jakub@redhat.com>
548
549 PR debug/60603
550 * c-opts.c (c_finish_options): Restore cb_file_change call to
551 <built-in>.
552
39a1ebb3
JJ
5532014-03-13 Jakub Jelinek <jakub@redhat.com>
554
555 PR middle-end/36282
556 * c-pragma.c (apply_pragma_weak): Only look at
557 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
558 DECL_ASSEMBLER_NAME_SET_P (decl).
559 (maybe_apply_pending_pragma_weaks): Exit early if
560 vec_safe_is_empty (pending_weaks) rather than only when
561 !pending_weaks.
562 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
563 set assembler name back to NULL afterwards.
564
a07f6ed2
JM
5652014-03-11 Jason Merrill <jason@redhat.com>
566
567 * c.opt: Add -std=gnu++14.
568
75b107f5
IB
5692014-03-11 Ian Bolton <ian.bolton@arm.com>
570
571 * c-opts.c (c_common_post_options): Don't override
572 -ffp-contract=fast if unsafe-math-optimizations is on.
573
f42c637e
PM
5742014-03-08 Paulo Matos <paulo@matos-sorge.com>
575
576 * c.opt: Enable LTO FE for fshort-double.
577
70e24808
JM
5782014-03-07 Jason Merrill <jason@redhat.com>
579
580 * c.opt: Add -std=c++14.
581
3af9c5e9
MP
5822014-03-06 Marek Polacek <polacek@redhat.com>
583
584 PR c/60197
585 * cilk.c (contains_cilk_spawn_stmt): New function.
586 (contains_cilk_spawn_stmt_walker): Likewise.
587 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
588 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
589
b3bdf019
JJ
5902014-03-03 Jakub Jelinek <jakub@redhat.com>
591
592 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
593 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
594 even when flag_preprocess_only.
595
ca7e759d
JM
5962014-02-26 Jason Merrill <jason@redhat.com>
597
598 PR c++/59231
599 PR c++/11586
600 * c-common.c (shorten_compare): Don't check
601 c_inhibit_evaluation_warnings.
602
28e41874
JJ
6032014-02-19 Jakub Jelinek <jakub@redhat.com>
604
cca615af
JJ
605 PR c/37743
606 * c-common.c (c_common_nodes_and_builtins): When initializing
607 c_uint{16,32,64}_type_node, also set corresponding
608 uint{16,32,64}_type_node to the same value.
609
28e41874
JJ
610 PR c++/60267
611 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
612 for PRAGMA_IVDEP if flag_preprocess_only.
613
c2bf53a1
JJ
6142014-02-12 Jakub Jelinek <jakub@redhat.com>
615
616 PR c/60101
617 * c-common.c (merge_tlist): If copy is true, call new_tlist,
618 if false, add ADD itself, rather than vice versa.
619 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
620 copy. For SAVE_EXPR, only call merge_tlist once.
621
8fcbce72
JJ
6222014-02-08 Jakub Jelinek <jakub@redhat.com>
623
624 PR middle-end/60092
625 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
626 and tree_to_uhwi.
627 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
628 functions.
629 (c_common_attribute_table): Add alloc_align and assume_aligned
630 attributes.
631
0a756a3f
MP
6322014-02-06 Marek Polacek <polacek@redhat.com>
633
634 PR c/60087
635 * c-common.c (warn_for_sign_compare): Call warning_at with location
636 instead of warning.
637
7ec4847a
MP
6382014-02-05 Marek Polacek <polacek@redhat.com>
639
640 PR c/53123
641 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
642 statement.
643
66f20604
MP
6442014-02-04 Marek Polacek <polacek@redhat.com>
645
646 PR c/60036
647 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
648 SAVE_EXPR.
649
5d77fb19
MG
6502014-02-03 Marc Glisse <marc.glisse@inria.fr>
651
652 PR c++/53017
653 PR c++/59211
654 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
655 handle_vector_size_attribute, handle_nonnull_attribute): Call
656 default_conversion on the attribute argument.
657 (handle_nonnull_attribute): Increment the argument number.
658
81e5eca8
MP
6592014-01-31 Marek Polacek <polacek@redhat.com>
660
661 PR c/59963
662 * c-common.c (add_atomic_size_parameter): Pass vNULL to
663 build_function_call_vec.
664 (resolve_overloaded_builtin): Likewise.
665 * c-common.h (build_function_call_vec): Adjust declaration.
666
68fca595
MP
6672014-01-30 Marek Polacek <polacek@redhat.com>
668
669 PR c/59940
670 * c-common.h (unsafe_conversion_p): Adjust declaration.
671 (warnings_for_convert_and_check): Likewise.
672 (convert_and_check): Likewise.
673 * c-common.c (unsafe_conversion_p): Add location parameter. Call
674 expansion_point_location_if_in_system_header on it.
675 (warnings_for_convert_and_check): Add location parameter. Call
676 expansion_point_location_if_in_system_header on it. Use it.
677 (convert_and_check): Add location parameter. Use it.
678 (conversion_warning): Likewise.
679 (c_add_case_label): Adjust convert_and_check calls.
680 (scalar_to_vector): Adjust unsafe_conversion_p calls.
681
b72271b9
BI
6822014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
683
684 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
685 flag_cilkplus.
686 * c-pragma.c (init_pragma): Likewise.
687 * c.opt: Likewise.
688
393e8e8b
MP
6892014-01-23 Marek Polacek <polacek@redhat.com>
690
691 PR c/59846
692 * c-common.c (shorten_compare): Add location_t parameter.
693 * c-common.h (shorten_binary_op): Adjust declaration.
694
f04dda30
MP
6952014-01-23 Marek Polacek <polacek@redhat.com>
696
697 PR c/58346
698 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
699 * c-common.h: Declare it.
700
621955cb
EB
7012014-01-20 Eric Botcazou <ebotcazou@adacore.com>
702
703 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
704 * c-ada-spec.c (dump_ads): Likewise.
705 (cpp_check): Likewise.
706 (dump_ada_specs): Likewise.
707
7082014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
709
710 PR c++/49718
711 * c-common.c (handle_no_instrument_function_attribute): Allow
712 no_instrument_function attribute in class member
713 definition/declaration.
714
241f845a
JJ
7152014-01-15 Jakub Jelinek <jakub@redhat.com>
716
717 PR c/58943
718 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
719 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
720 being COMPOUND_EXPR.
721 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
722 operand a SAVE_EXPR and second MODIFY_EXPR.
723
e83b8e2e
JJ
7242014-01-09 Jakub Jelinek <jakub@redhat.com>
725
726 PR target/58115
727 * c-pch.c (c_common_write_pch): Call
728 prepare_target_option_nodes_for_pch.
729
23a5b65a
RS
7302014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
731
732 Update copyright years
733
f9030485
RS
7342014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
735
736 * array-notation-common.c, c-cilkplus.c: Use the standard form for
737 the copyright notice.
738
f2aa696b
EB
7392013-12-28 Eric Botcazou <ebotcazou@adacore.com>
740
741 * c-ada-spec.c (print_constructor): New function.
742 (print_destructor): Retrieve the origin of the destructor.
743 (print_ada_declaration): Revamp handling of constructors/destructors.
744
1f26ac87
JM
7452013-12-23 Stuart Hastings <stuart@apple.com>
746 Bill Maddox <maddox@google.com>
747 Jason Merrill <jason@redhat.com>
748
749 * c.opt: Add -fdeclone-ctor-dtor.
750 * c-opts.c (c_common_post_options): Default to on iff -Os.
751
41958c28
BI
7522013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
753
754 * c-common.c (c_common_attribute_table): Added "cilk simd function"
755 attribute.
756 * c-pragma.h (enum pragma_cilk_clause): Remove.
757 (enum pragma_omp_clause): Added the following fields:
758 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
759 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
760 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
761 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
762 PRAGMA_CILK_CLAUSE_UNIFORM.
763
764
12893402
BI
7652013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
766
767 * cilk.c (cilk_outline): Made this function non-static.
768 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
769 (create_cilk_wrapper): Added a new parameter: a function pointer.
770 (c_install_body_w_frame_cleanup): Remove
771 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
772 * c-common.h (cilk_outline): New prototype.
773 (gimplify_cilk_spawn): Removed two parameters.
774 (cilk_install_body_with_frame_cleanup): New prototype.
775 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
776 CILK_SPAWN_STMT case.
777
085b42ed
BS
7782013-12-11 Bernd Schmidt <bernds@codesourcery.com>
779
2ce064c3
BS
780 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
781
085b42ed
BS
782 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
783 (int_array_type_node): Remove.
784 * c-common.c (c_common_nodes_and_builtins): Don't build it.
785
9e36c9ed
MP
7862013-12-05 Marek Polacek <polacek@redhat.com>
787
788 PR c/52023
789 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
790 [ADJUST_FIELD_ALIGN].
791
296674db
JM
7922013-12-04 Joseph Myers <joseph@codesourcery.com>
793
794 PR c/52023
795 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
796 and check field alignment if set.
797 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
798 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
799
31e071ae
MP
8002013-12-04 Jakub Jelinek <jakub@redhat.com>
801 Marek Polacek <polacek@redhat.com>
802
803 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
804 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
805
d7947e19
L
8062013-11-29 H.J. Lu <hongjiu.lu@intel.com>
807
808 PR c/59309
809 * cilk.c (gimplify_cilk_spawn): Properly handle function without
810 arguments.
811
fad7652e
JJ
8122013-11-29 Jakub Jelinek <jakub@redhat.com>
813
814 PR c/59280
815 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
816 goto invalid. If it is error_mark_node, don't issue further
817 diagnostics.
818
8b5e1202
SO
8192013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
820
821 * c.opt (Wopenmp-simd): New.
822
0a508bb6
JJ
8232013-11-22 Jakub Jelinek <jakub@redhat.com>
824
825 * c-ubsan.h (ubsan_instrument_return): New prototype.
826 * c-ubsan.c (ubsan_instrument_return): New function.
827
2fb9a547
AM
8282013-11-22 Andrew MacLeod <amacleod@redhat.com>
829
830 * c-common.c: Add required include files from gimple.h.
831 * c-gimplify.c: Likewise
832 * cilk.c: Likewise
833
8400e75e
DM
8342013-11-22 David Malcolm <dmalcolm@redhat.com>
835
836 * c-common.c (unsafe_conversion_p): Remove use of
837 EXPR_LOC_OR_HERE macro.
838 (conversion_warning): Likewise.
839 (warnings_for_convert_and_check): Likewise.
840 (warn_for_collisions_1): Likewise.
841 (shorten_compare): Likewise, and remove use of in_system_header
842 macro, using the location from the former.
843 * c-lex.c (dump_one_header): Remove use of input_filename macro.
844 (cb_def_pragma): Remove use of in_system_header macro.
845 (lex_string): Likewise.
846 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
847
eb1ce453
KZ
8482013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
849 Mike Stump <mikestump@comcast.net>
850 Richard Sandiford <rdsandiford@googlemail.com>
851
852 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
853 instead of TREE_INT_CST_LOW, in cases where there is a protecting
854 tree_fits_shwi_p or tree_fits_uhwi_p.
855 (dump_generic_ada_node): Likewise.
856 * c-format.c (check_format_arg): Likewise.
857 * c-pretty-print.c (pp_c_integer_constant): Likewise.
858
6b3b8c27
KZ
8592013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
860
861 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
862
49b0aa18
JC
8632013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
864
865 PR c/53001
866 * c-common.c (unsafe_conversion_p): Make this function
867 return an enumeration with more detail.
868 (conversion_warning): Use the new return type of
869 unsafe_conversion_p to separately warn either about conversions
870 that lower floating point number precision or about the other
871 kinds of conversions.
872 * c-common.h (enum conversion_safety): New enumeration.
873 (unsafe_conversion_p): switching return type to
874 conversion_safety enumeration.
875 * c.opt: Adding new warning -Wfloat-conversion and
876 enabling it with -Wconversion.
877
b826515a
BS
8782013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
879
880 * c-opts.c: Include plugin.h.
881 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
882
b9a55b13
MP
8832013-11-19 Marek Polacek <polacek@redhat.com>
884
885 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
886 call.
887 (ubsan_instrument_shift): Likewise.
888 (ubsan_instrument_vla): Likewise.
889
7d362f6c
RS
8902013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
891
892 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
893 cast to unsigned type.
894
386b1f1f
RS
8952013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
896
897 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
898 tree_low_cst.
899 (complete_array_type): Update comment to refer to tree_to_[su]hwi
900 rather than tree_low_cst.
901
ae7e9ddd
RS
9022013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
903
904 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
905 tree_to_uhwi throughout.
906
9439e9a1
RS
9072013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
908
909 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
910 tree_low_cst (..., 0) with tree_to_shwi throughout.
911
cc269bb6
RS
9122013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
913
914 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
915 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
916
9541ffee
RS
9172013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
918
919 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
920 host_integerp (..., 0) with tree_fits_shwi_p throughout.
921
c02065fc
AH
9222013-11-15 Aldy Hernandez <aldyh@redhat.com>
923
924 * c-cilkplus.c: New file.
925 * c-common.c (readonly_error): Add location argument.
926 * c-common.h (readonly_error): Same.
927 (c_finish_cilk_clauses): Protoize.
928 (c_check_cilk_loop): Same.
929 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
930 Do not fail on error_mark_node.
931 Abstract increment canonicalization to here...
932 (c_omp_for_incr_canonicalize_ptr): New.
933 c-pragma.c (init_pragma): Register "simd" pragma.
934 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
935 (enum pragma_cilk_clause): New.
936
9cc65f15
RS
9372013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
938
939 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
940 wchar_type and host_integerp checks.
941
18f429e2
AM
9422013-11-14 Andrew MacLeod <amacleod@redhat.com>
943
944 * c-common.c: Likewise.
945 * c-gimplify.c: Likewise.
946 * cilk.c: Likewise.
947
d8a2d370
DN
9482013-11-14 Diego Novillo <dnovillo@google.com>
949
950 * c-common.c: Include fold-const.h.
951 Include stor-layout.h.
952 Include calls.h.
953 Include stringpool.h.
954 Include attribs.h.
955 Include varasm.h.
956 Include trans-mem.h.
957 * c-cppbuiltin.c: Include stor-layout.h.
958 Include stringpool.h.
959 * c-format.c: Include stringpool.h.
960 * c-lex.c: Include stringpool.h.
961 Include stor-layout.h.
962 * c-pragma.c: Include stringpool.h.
963 Include attribs.h.
964 Include varasm.h.
965 Include gcc-symtab.h.
966 * c-pretty-print.c: Include stor-layout.h.
967 Include attribs.h.
968 * cilk.c: Include stringpool.h.
969 Include calls.h.
970
38b7bc7f
JM
9712013-11-13 Joseph Myers <joseph@codesourcery.com>
972
973 * c-common.h (enum rid): Add RID_AUTO_TYPE.
974 * c-common.c (c_common_reswords): Add __auto_type.
975 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
976
45b0be94
AM
9772013-11-12 Andrew MacLeod <amacleod@redhat.com>
978
18f429e2
AM
979 * c-common.c: Include gimplify.h.
980 * c-gimplify.c: Likewise.
981 * cilk.c: Likewise.
982 * c-omp.c: Include gimple-expr.h instead of gimple.h.
983 * c-ubsan.c: Don't include gimple.h.
45b0be94 984
582d9b50
JM
9852013-11-12 Joseph Myers <joseph@codesourcery.com>
986
987 * c-common.c (c_common_reswords): Add _Thread_local.
988
6b28e197
JM
9892013-11-09 Joseph Myers <joseph@codesourcery.com>
990
991 * c-common.c (atomic_size_supported_p): New function.
992 (resolve_overloaded_atomic_exchange)
993 (resolve_overloaded_atomic_compare_exchange)
994 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
995 Use it instead of comparing size with a local list of sizes.
996
267bac10
JM
9972013-11-07 Andrew MacLeod <amacleod@redhat.com>
998 Joseph Myers <joseph@codesourcery.com>
999
1000 * c-common.h (enum rid): Add RID_ATOMIC.
1001 * c-common.c (c_common_reswords): Add _Atomic.
1002 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
1003 (keyword_is_type_qualifier): Accept RID_ATOMIC.
1004 * c-format.c (check_format_types): Check for extra _Atomic
1005 qualifiers in format argument.
1006 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
1007 (pp_c_type_qualifier_list): Mention _Atomic in comment.
1008
5157b91e
TB
10092013-11-06 Tobias Burnus <burnus@net-b.de>
1010
1011 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
1012
6dbe0958
JM
10132013-11-06 Joseph Myers <joseph@codesourcery.com>
1014
1015 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
1016 standards modes.
1017 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
1018 to mean lack of IEEE 754 support.
1019
e8ff5196
TB
10202013-11-05 Tobias Burnus <burnus@net-b.de>
1021
1022 * c.opt (-Wdate-time): New option
1023 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
1024
254a0760
JM
10252013-11-05 Joseph Myers <joseph@codesourcery.com>
1026
1027 * c-cppbuiltin.c (cpp_iec_559_value): Test
1028 flag_excess_precision_cmdline not flag_excess_precision.
1029
6d7f7e0a
TB
10302013-11-05 Tobias Burnus <burnus@net-b.de>
1031
1032 * c.opt (fopenmp-simd): New option.
1033 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
1034 (omp_pragmas): ... this new struct.
1035 (c_pp_lookup_pragma): Also walk omp_pragmas.
1036 (init_pragma): Init pragmas for -fopenmp-simd.
1037
55a7f02f
MP
10382013-11-04 Marek Polacek <polacek@redhat.com>
1039
1040 PR c++/58979
1041 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
1042
9193fb05
JM
10432013-11-04 Joseph Myers <joseph@codesourcery.com>
1044
1045 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
1046 New functions.
1047 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
1048
94159ecf
EB
10492013-11-04 Eric Botcazou <ebotcazou@adacore.com>
1050
1051 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
1052 (dump_ada_specs): Adjust prototype of second callback.
1053 * c-ada-spec.c (cpp_check): New global variable.
1054 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
1055 (print_generic_ada_decl): Likewise.
1056 (has_static_fields): Change return type to bool and add guard.
1057 (has_nontrivial_methods): New predicate.
1058 (is_tagged_type): Change return type to bool.
1059 (separate_class_package): Call has_nontrivial_methods.
1060 (pp_ada_tree_identifier): Minor tweaks.
1061 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
1062 (dump_ada_array_domains): Likewise.
1063 (dump_ada_array_type): Likewise.
1064 (dump_template_types): Remove cpp_check parameter and do not pass it to
1065 dump_generic_ada_node.
1066 (dump_ada_template): Likewise.
1067 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
1068 recursively.
1069 (print_ada_methods): Change return type to integer. Remove cpp_check
1070 parameter and do not pass it down.
1071 (dump_nested_types): Remove cpp_check parameter and do not pass it to
1072 dump_generic_ada_node.
1073 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
1074 accessing methods.
1075 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
1076 down. Use has_nontrivial_methods to recognize C++ classes. Use return
1077 value of print_ada_methods.
1078 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
1079 Set cpp_check to it before invoking dump_ada_nodes.
1080 (dump_ada_specs): Likewise.
1081
b906f4ca
MP
10822013-11-03 Marek Polacek <polacek@redhat.com>
1083
1084 * c-ubsan.c: Don't include hash-table.h.
1085 (ubsan_instrument_vla): New function.
1086 * c-ubsan.h: Declare it.
1087
5e20cdc9
DM
10882013-10-31 David Malcolm <dmalcolm@redhat.com>
1089
1090 Automated part of renaming of symtab_node_base to symtab_node.
1091
1092 Patch autogenerated by rename_symtab.py from
1093 https://github.com/davidmalcolm/gcc-refactoring-scripts
1094 revision 58bb219cc090b2f4516a9297d868c245495ee622
1095
1096 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
1097 symtab_node_base to symtab_node.
1098
7057e645
ESR
10992013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
1100
1101 Implement C++14 digit separators.
1102 * c-lex.c (interpret_float): Remove digit separators from scratch string
1103 before building real literal.
1104
193ea7bc
JJ
11052013-10-30 Jakub Jelinek <jakub@redhat.com>
1106
1107 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
1108
939b37da
BI
11092013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
1110
1111 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
1112 fields.
1113 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
1114 enabled.
1115 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
1116 (insert_cilk_frame): New prototype.
1117 (cilk_init_builtins): Likewise.
1118 (gimplify_cilk_spawn): Likewise.
1119 (c_cilk_install_body_w_frame_cleanup): Likewise.
1120 (cilk_detect_spawn_and_unwrap): Likewise.
1121 (cilk_set_spawn_marker): Likewise.
1122 (build_cilk_sync): Likewise.
1123 (build_cilk_spawn): Likewise.
1124 * cilk.c: New file.
1125
67348ccc
DM
11262013-10-29 David Malcolm <dmalcolm@redhat.com>
1127
1128 Patch autogenerated by refactor_symtab.py from
1129 https://github.com/davidmalcolm/gcc-refactoring-scripts
1130 revision 58bb219cc090b2f4516a9297d868c245495ee622
1131
1132 * c-gimplify.c (c_genericize): Update for conversion of symtab types
1133 to a true class hierarchy.
1134 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
1135
d570872d
RS
11362013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
1137
1138 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
1139
98906124
JL
11402013-10-26 Jeff Law <law@redhat.com>
1141
1142 * c-family/c-common.c (c_define_builtins): Remove mudflap support.
1143 * c-family/c.opt: Ignore and warn for mudflap options.
1144
d73749df 11452013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
1146
1147 PR other/33426
1148 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
1149 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
1150
3f04b1bb
JM
11512013-10-23 Jason Merrill <jason@redhat.com>
1152
1153 * c-format.c (gcc_cxxdiag_char_table): Add %X.
1154
acf0174b
JJ
11552013-10-11 Jakub Jelinek <jakub@redhat.com>
1156
acd15a28
JJ
1157 * c-common.h (omp_clause_mask::operator !=): New method.
1158 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
1159 instead of if (mask & something) tests everywhere.
1160
acf0174b
JJ
1161 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
1162 201307 instead of 201107.
1163 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
1164 (c_common_attribute_table): Add "omp declare target" and
1165 "omp declare simd" attributes.
1166 (handle_omp_declare_target_attribute,
1167 handle_omp_declare_simd_attribute): New functions.
1168 * c-omp.c: Include c-pragma.h.
1169 (c_finish_omp_taskgroup): New function.
1170 (c_finish_omp_atomic): Add swapped argument, if true,
1171 build the operation first with rhs, lhs arguments and use NOP_EXPR
1172 build_modify_expr.
1173 (c_finish_omp_for): Add code argument, pass it down to make_code.
1174 (c_omp_split_clauses): New function.
1175 (c_split_parallel_clauses): Removed.
1176 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
1177 c_omp_declare_simd_clauses_to_decls): New functions.
1178 * c-common.h (omp_clause_mask): New type.
1179 (OMP_CLAUSE_MASK_1): Define.
1180 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
1181 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
1182 omp_clause_mask::operator |, omp_clause_mask::operator &,
1183 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
1184 omp_clause_mask::operator ==): New methods.
1185 (enum c_omp_clause_split): New.
1186 (c_finish_omp_taskgroup): New prototype.
1187 (c_finish_omp_atomic): Add swapped argument.
1188 (c_finish_omp_for): Add code argument.
1189 (c_omp_split_clauses): New prototype.
1190 (c_split_parallel_clauses): Removed.
1191 (c_omp_declare_simd_clauses_to_numbers,
1192 c_omp_declare_simd_clauses_to_decls): New prototypes.
1193 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
1194 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
1195 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
1196 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
1197 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
1198 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
1199 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
1200 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
1201 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
1202 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
1203 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
1204 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
1205 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
1206 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
1207 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
1208 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
1209 PRAGMA_OMP_CLAUSE_UNIFORM.
1210
826cacfe
MG
12112013-10-09 Marc Glisse <marc.glisse@inria.fr>
1212
1213 PR tree-optimization/20318
1214 * c-common.c (handle_returns_nonnull_attribute): New function.
1215 (c_common_attribute_table): Add returns_nonnull.
1216
2284b034
MG
12172013-10-03 Marc Glisse <marc.glisse@inria.fr>
1218
1219 PR c++/19476
1220 * c.opt (fcheck-new): Move to common.opt.
1221
b56e9788
MP
12222013-09-25 Marek Polacek <polacek@redhat.com>
1223 Jakub Jelinek <jakub@redhat.com>
1224
1225 PR sanitizer/58413
1226 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
1227 an expression if we can prove it is correct.
1228 (ubsan_instrument_division): Likewise. Remove unnecessary
1229 check.
1230
ce6923c5
MP
12312013-09-18 Marek Polacek <polacek@redhat.com>
1232
1233 PR sanitizer/58411
1234 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
1235 Declare it.
1236 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
1237
fb5610fb
IS
12382013-09-14 Iain Sandoe <iain@codesourcery.com>
1239
1240 PR target/48094
1241 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
1242 fobjc-gc, freplace-objc-classes): Accept for LTO.
1243
88b0e79e
JC
12442013-09-13 Jacek Caban <jacek@codeweavers.com>
1245
1246 * c-target.def: New hook
1247
c9b0866a
PC
12482013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
1249
1250 PR c++/43452
1251 * c.opt (Wdelete-incomplete): Add.
1252
0af94e6f
JR
12532013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
1254
1255 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
1256 (vector_types_compatible_elements_p): New function.
1257 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
1258 declaration.
1259 (vector_types_compatible_elements_p): Declare.
1260
7c26172c
GDR
12612013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1262
1263 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
1264 a virtual member function.
1265 (pp_simple_type_specifier): Remove.
1266 (pp_c_type_specifier): Likewise.
1267 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
1268 Rename from pp_c_type_specifier. Adjust.
1269 (c_pretty_printer::c_pretty_printer): Do not assign to
1270 simple_type_specifier.
1271
20059c8b
GDR
12722013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1273
1274 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
1275 member function.
1276 (c_pretty_printer::storage_class_specifier): Likewise.
1277 (c_pretty_printer::initializer): Likewise.
1278 (pp_declaration): Remove.
1279 (pp_declaration_specifiers): Likewise.
1280 (pp_abstract_declarator): Likewise.
1281 (pp_declarator): Likewise.
1282 (pp_type_id): Likewise.
1283 (pp_statement): Likewise.
1284 (pp_constant): Likewise.
1285 (pp_id_expression): Likewise.
1286 (pp_primary_expression): Likewise.
1287 (pp_unary_expression): Likewise.
1288 (pp_multiplicative_expression): Likewise.
1289 (pp_conditional_expression): Likewise.
1290 (pp_assignment_expression): Likewise.
1291 (pp_expression): Likewise.
1292 (pp_c_type_id): Likewise.
1293 (pp_c_storage_class_specifier): Likewise.
1294 * c-pretty-print.c (pp_c_type_cast): Tidy.
1295 (pp_c_pointer): Likewise.
1296 (pp_c_type_specifier): Likewise.
1297 (pp_c_parameter_type_list): Likewise.
1298 (pp_c_function_definition): Likewise.
1299 (pp_c_init_declarator): Likewise.
1300 (pp_c_initializer_list): Likewise.
1301 (pp_c_constructor_elts): Likewise.
1302 (c_pretty_printer::direct_abstract_declarator): Likewise.
1303 (c_pretty_printer::declaration_specifiers): Likewise.
1304 (c_pretty_printer::primary_expression): Likewise.
1305 (c_pretty_printer::postfix_expression): Likewise.
1306 (c_pretty_printer::type_id): Rename from pp_c_type_id.
1307 (c_pretty_printer::storage_class_specifier): Rename from
1308 pp_c_storage_class_specifier.
1309 (c_pretty_printer::initializer): Rename from pp_c_initializer.
1310 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
1311 storage_class_specifier, initializer, offset_list, flags.
1312
de5a5fa1
MP
13132013-08-30 Marek Polacek <polacek@redhat.com>
1314
1315 * c-ubsan.c: New file.
1316 * c-ubsan.h: New file.
1317
8f0e4d72
GDR
13182013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
1319
1320 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
1321 member function.
1322 (c_pretty_printer::declaration_specifiers): Likewise.
1323 (c_pretty_printer::declarator): Likewise.
1324 (c_pretty_printer::abstract_declarator): Likewise.
1325 (c_pretty_printer::direct_abstract_declarator): Likewise.
1326 (c_pretty_printer::direct_declarator): Likewise.
1327 (c_pretty_printer::function_specifier): Likewise.
1328 (pp_declaration): Adjust.
1329 (pp_declaration_specifiers): Likewise.
1330 (pp_abstract_declarator): Likewise.
1331 (pp_direct_declarator): Likewise.
1332 (pp_function_specifier): Likewise.
1333 (pp_direct_abstract_declarator): Remove as unused.
1334 (pp_c_declaration): Remove.
1335 (pp_c_declaration_specifiers): Likewise.
1336 (pp_c_declarator): Likewise.
1337 (pp_c_direct_declarator): Likewise.
1338 (pp_c_function_specifier): Likewise.
1339 (pp_c_direct_abstract_declarator): Likewise.
1340 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
1341 from pp_c_abstract_declarator. Adjust.
1342 (c_pretty_printer::direct_abstract_declarator): Rename from
1343 pp_c_direct_abstract_declarator. Adjust.
1344 (c_pretty_printer::function_specifier): Rename from
1345 pp_c_function_specifier. Adjust.
1346 (c_pretty_printer::declaration_specifiers): Rename from
1347 pp_c_declaration_specifiers. Adjust.
1348 (c_pretty_printer::direct_declarator): Rename from
1349 pp_c_direct_declarator. Adjust.
1350 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
1351 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
1352 (c_pretty_printer::c_pretty_printer): Do not assign to
1353 declaration, declaration_specifiers, declarator,
1354 direct_declarator, direct_abstract_declarator, function_specifier.
1355
00d34d3a
GDR
13562013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
1357
1358 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
1359 virtual member function.
1360 (c_pretty_printer::multiplicative_expression): Likewise.
1361 (c_pretty_printer::conditional_expression): Likewise.
1362 (c_pretty_printer::assignment_expression): Likewise.
1363 (c_pretty_printer::expression): Likewise.
1364 (pp_unary_expression): Adjust.
1365 (pp_multiplicative_expression): Likewise.
1366 (pp_assignment_expression): Likewise.
1367 (pp_conditional_expression): Likewise.
1368 (pp_expression): Likewise.
1369 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
1370 from pp_c_unary_expression. Adjust.
1371 (c_pretty_printer::multiplicative_expression): Rename from
1372 pp_c_multiplicative_expression. Adjust.
1373 (c_pretty_printer::conditional_expression): Rename from
1374 pp_c_conditional_expression. Adjust.
1375 (c_pretty_printer::assignment_expression): Rename from
1376 pp_c_assignment_expression. Adjust.
1377 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
1378 (c_pretty_printer::c_pretty_printer): Do not assign to
1379 unary_expression, multiplicative_expression,
1380 conditional_expression, expression.
1381
fb22178f
GDR
13822013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1383
1384 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
1385 virtual member function.
1386 (pp_postfix_expression): Adjust.
1387 (pp_c_postfix_expression): Remove.
1388 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
1389 from pp_c_postfix_expression. Adjust.
1390 (c_pretty_printer::c_pretty_printer): Do not assign to
1391 postfix_expression.
1392
7ecc2600
GDR
13932013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1394
1395 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
1396 virtua member function.
1397 (pp_primary_expression): Adjust.
1398 (pp_c_primary_expression): Remove.
1399 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
1400 from pp_c_primary_expression. Adjust.
1401 (pp_c_initializer_list): Use pp_primary_expression.
1402 (c_pretty_printer::c_pretty_printer): Do not assign to
1403 primary_expression.
1404
0691175f
GDR
14052013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1406
1407 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
1408 * c-pretty-print.c (M_): Remove.
1409 (c_pretty_printer::translate_string): Define.
1410 (pp_c_type_specifier): Use it.
1411 (pp_c_primary_expression): Likewise.
1412 (pp_c_expression): Likewise.
1413
66dfe4c4
GDR
14142013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
1415
1416 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
1417 virtual function.
1418 (pp_c_id_expression): Remove.
1419 (pp_id_expression): Adjust.
1420 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
1421 pp_c_id_expression. Adjust.
1422 (pp_c_postfix_expression): Use pp_id_expression.
1423 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
1424
ca43e9d5
GDR
14252013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
1426
1427 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
1428 member function.
1429 (pp_constant): Adjust.
1430 (pp_c_constant): Remove.
1431 * c-pretty-print.c (c_pretty_printer::constant): Rename from
1432 pp_c_constant. Adjust.
1433 (pp_c_constant)
1434 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
1435 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
1436
da6ca2b5
GDR
14372013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1438
1439 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
1440 (c_pretty_printer::c_pretty_printer): Declare.
1441 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
1442 c_pretty_printer_init. Adjust.
1443 (print_c_tree): Do not call c_pretty_printer_init.
1444 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
1445
65a372f4
AC
14462013-08-09 Arnaud Charlet <charlet@adacore.com>
1447
1448 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
1449
fd9b0f32
PC
14502013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
1451
1452 PR c++/58080
1453 * c-common.c (pointer_int_sum): Add bool parameter.
1454 * c-common.h (pointer_int_sum): Adjust declaration.
1455
e0aec1e9
GDR
14562013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
1457
1458 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
1459 c_pretty_printer variable.
1460
b066401f
GDR
14612013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1462
1463 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
1464 (pp_base): Remove.
1465 (pp_c_base): Likewise. Adjust users.
1466 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
1467 (pp_c_whitespace): Do not call pp_base.
1468 (pp_c_left_paren): Likewise.
1469 (pp_c_right_paren): Likewise.
1470 (pp_c_left_brace): Likewise.
1471 (pp_c_right_brace): Likewise.
1472 (pp_c_left_bracket): Likewise.
1473 (pp_c_right_bracket): Likewise.
1474 (pp_c_dot): Likewise.
1475 (pp_c_ampersand): Likewise.
1476 (pp_c_star): Likewise.
1477 (pp_c_arrow): Likewise.
1478 (pp_c_semicolon): Likewise.
1479 (pp_c_complement): Likewise.
1480 (pp_c_exclamation): Likewise.
1481 (pp_c_direct_declarator): Likewise.
1482 (pp_c_ws_string): Likewise.
1483 (pp_c_identifier): Likewise.
1484 (pp_c_statement): Likewise.
1485 (print_c_tree): Likewise.
1486
65e5a578
ESR
14872013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
1488
1489 PR c++/58072
1490 * c-common.c (c_parse_error): Catch user-defined literal tokens and
1491 provide useful error strings.
1492
137a1a27
GDR
14932013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1494
1495 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
1496 printer functions instead of pp_string or operators and punctuators.
1497 (dump_generic_ada_node): Likewise.
1498 * c-pretty-print.c (pp_c_type_specifier): Likewise.
1499 (pp_c_relational_expression): Likewise.
1500 (pp_c_logical_or_expression): Likewise.
1501
07838b13
GDR
15022013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1503
1504 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
1505 functions instead of pp_character.
1506 (pp_ada_tree_identifier): Likewise.
1507 (dump_ada_double_name): Likewise.
1508 (dump_ada_function_declaration): Likewise.
1509 (dump_ada_array_domains): Likewise.
1510 (dump_template_types): Likewise.
1511 (dump_generic_ada_node): Likewise.
1512 (print_ada_declaration): Likewise.
1513 (print_ada_struct_decl): Likewise.
1514 * c-pretty-print.c (pp_c_integer_constant): Likewise.
1515
433cc7b0
TT
15162013-07-23 Tom Tromey <tromey@redhat.com>
1517
1518 * c-common.h (enum rid) <RID_GENERIC>: New constant.
1519 * c-common.c (c_common_reswords): Add _Generic.
1520
688010ba
OB
15212013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
1522
1523 * c-common.c: Fix typos.
1524 * c-common.h: Likewise.
1525
2a99e5e6
LL
15262013-07-13 Lubos Lunak <l.lunak@suse.cz>
1527
1528 PR c++/55203
1529 * c-common.c (c_common_attribute_table): Add warn_unused.
1530 (handle_warn_unused_attribute): New.
1531
c26302d5
JJ
15322013-07-10 Jakub Jelinek <jakub@redhat.com>
1533
1534 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
1535 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
1536
dfeadaa0
PC
15372013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
1538
1539 PR c++/57869
1540 * c.opt: Add Wconditionally-supported.
1541
6a2fa4b2
GS
15422013-07-08 Graham Stott <graham.stott@btinternet.com>
1543
1544 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
1545 unused variables l_length and l_node.
1546
ecdbd01a 15472013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
1548
1549 PR c/57821
1550 * c-common.c (complete_array_type): Delay folding first index
1551 like other indices. When folding, check for index overflow.
1552
bedc293e
MG
15532013-06-27 Marc Glisse <marc.glisse@inria.fr>
1554
1555 PR c++/57509
1556 * c-common.h (c_build_vec_perm_expr): New complain argument.
1557 * c-common.c (c_build_vec_perm_expr): Likewise.
1558 Use save_expr also in C++.
1559
604b2bfc
GDR
15602013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1561
1562 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
1563 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1564 * c-opts.c (c_common_post_options): Likewise.
1565
dfeadaa0 15662013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
1567
1568 * array-notation-common.c (length_mismatch_in_expr): Changed the
1569 parameter type's from a dynamic array to a vec_tree. Also removed
1570 the size parameters.
1571 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
1572 the change above.
1573
2ce86d2e
BI
15742013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
1575
1576 * c-common.h (struct cilkplus_an_parts): New structure.
1577 (struct cilkplus_an_loop_parts): Likewise.
1578 (cilkplus_extract_an_triplets): New prototype.
1579 (fix_sec_implicit_args): Likewise.
1580 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
1581 (fix_sec_implicit_args): Likewise.
604b2bfc 1582
07a6825b
BI
15832013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
1584
1585 * array-notation-common.c (find_inv_trees): Removed an unwanted
1586 typecasting.
1587 * c-common.h (struct inv_list::additional_tcodes): Changed type from
1588 enum rid to enum tree_code.
1589
08346abd
JH
15902013-06-11 Jan Hubicka <jh@suse.cz>
1591
1592 * c-common.c (handle_alias_ifunc_attribute): Do not set
1593 DECL_EXTERNAL for weakref variables.
1594 * c-pragma.c (handle_pragma_weak): Make sure aliases
1595 are not declared as external.
1596
d60f1706
BI
15972013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
1598
1599 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
1600 function from c/c-array-notation.c.
1601 (is_cilkplus_reduce_builtin): Likewise.
1602 (find_rank): Likewise.
1603 (extract_array_notation_exprs): Likewise.
1604 (replace_array_notations): Likewise.
1605 (find_inv_trees): Likewise.
1606 (replace_inv_trees): Likewise.
1607 (contains_array_notation_expr): Likewise.
1608 (find_correct_array_notation_type): Likewise.
1609 * c-common.h (struct inv_list): Moved this struct from the file
1610 c/c-array-notation.c and added a new field called additional tcodes.
1611 (length_mismatch_in_expr_p): New prototype.
1612 (is_cilkplus_reduce_builtin): Likewise.
1613 (find_rank): Likewise.
1614 (extract_array_notation_exprs): Likewise.
1615 (replace_array_notation): Likewise.
1616 (find_inv_trees): Likewise.
1617 (replace_inv_trees): Likewise.
1618 (find_correct_array_notation_type): Likewise.
dfeadaa0 1619
36536d79
BI
16202013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
1621
1622 * c-common.c (c_define_builtins): When cilkplus is enabled, the
1623 function array_notation_init_builtins is called.
1624 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
1625 * c-common.def (ARRAY_NOTATION_REF): New tree.
1626 * c-common.h (build_array_notation_expr): New function declaration.
1627 (build_array_notation_ref): Likewise.
1628 (extract_sec_implicit_index_arg): New extern declaration.
1629 (is_sec_implicit_index_fn): Likewise.
1630 (ARRAY_NOTATION_CHECK): New define.
1631 (ARRAY_NOTATION_ARRAY): Likewise.
1632 (ARRAY_NOTATION_START): Likewise.
1633 (ARRAY_NOTATION_LENGTH): Likewise.
1634 (ARRAY_NOTATION_STRIDE): Likewise.
1635 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
1636 ARRAY_NOTATION_REF.
1637 (pp_c_expression): Likewise.
1638 * c.opt (flag_enable_cilkplus): New flag.
1639 * array-notation-common.c: New file.
1640
f7716d57
JJ
16412013-05-14 Jakub Jelinek <jakub@redhat.com>
1642
1643 PR c++/57274
1644 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
1645
a5e0cd1d
MG
16462013-05-10 Marc Glisse <marc.glisse@inria.fr>
1647
1648 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
1649 vectors.
1650
f6bc1c4a
HS
16512013-05-07 Han Shen <shenhan@google.com>
1652
1653 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
1654
3f12f6e9
SKS
16552013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1656
1657 * c-common.c (check_user_alignment): Emit error for negative values.
1658
61949153
PC
16592013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1660
1661 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
1662
e93e18e9
PC
16632013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1664
1665 * c-cppbuiltin.c (c_cpp_builtins): Do not define
1666 __GXX_EXPERIMENTAL_CXX1Y__.
1667
44d90fe1
PC
16682013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1669 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1670
1671 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
1672 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
1673 to simply use OPT_Wpointer_arith.
1674 (c_sizeof_or_alignof_type): Likewise.
1675
13f39b2e
PC
16762013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1677
1678 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
1679
4b84d650
JJ
16802013-04-12 Jakub Jelinek <jakub@redhat.com>
1681
1682 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
1683 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
1684 specifiers.
1685
fb037b5d
SB
16862013-04-07 Steven Bosscher <steven@gcc.gnu.org>
1687
1688 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
1689
4e856798
PC
16902013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
1691
1692 * c-common.c (pointer_int_sum): Remove dead code.
1693
4b1baac8
RS
16942013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
1695
1696 PR middle-end/56524
1697 * c-common.c (handle_optimize_attribute): Don't call
1698 save_optabs_if_changed.
1699
0b50e654
JJ
17002013-03-05 Jakub Jelinek <jakub@redhat.com>
1701
1702 PR middle-end/56461
1703 * c-pch.c (pch_init): Free target_validity at the end.
1704
48c41403
JJ
17052013-03-04 Jakub Jelinek <jakub@redhat.com>
1706
1707 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
1708
e664c61c
KS
17092013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
1710 Jakub Jelinek <jakub@redhat.com>
1711
1712 PR sanitizer/56454
1713 * c-common.c (handle_no_sanitize_address_attribute): New function.
1714 (c_common_attribute_table): Add no_sanitize_address attribute.
1715 (handle_no_address_safety_analysis_attribute): Add
1716 no_sanitize_address attribute, not no_address_safety_analysis
1717 attribute.
1718
a475fd3d 17192013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
1720
1721 PR target/52555
1722 * c-common.c (handle_optimize_attribute): Call
1723 save_optabs_if_changed.
1724
f6007d99
JJ
17252013-02-18 Jakub Jelinek <jakub@redhat.com>
1726 Steven Bosscher <steven@gcc.gnu.org>
1727
1728 PR pch/54117
1729 * c-opts.c (c_common_post_options): If debug info is enabled
1730 and non-dwarf*, refuse to load PCH files and when writing PCH
1731 file warn.
1732
cf35e2b1
JJ
17332013-02-05 Jakub Jelinek <jakub@redhat.com>
1734
1735 PR middle-end/56167
1736 * c-common.c (handle_error_attribute): Fix condition.
1737
32887460
JJ
17382013-01-30 Jakub Jelinek <jakub@redhat.com>
1739
1740 PR c++/55742
1741 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
1742
5af057d8
JM
17432013-01-18 Jason Merrill <jason@redhat.com>
1744
1745 PR target/54908
1746 * c.opt (-fextern-tls-init): New.
1747 * c-opts.c (c_common_post_options): Handle it.
1748
cc83c823
JJ
17492013-01-09 Jakub Jelinek <jakub@redhat.com>
1750
1751 PR c/48418
1752 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
1753 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
1754 and is either negative or bigger or equal to type precision
1755 of the first operand.
1756
a859517f
MP
17572012-12-03 Marek Polacek <polacek@redhat.com>
1758
1759 PR c/55570
1760 * c-common.c (check_user_alignment): Swap order of tests,
1761 check TREE_CODE first.
1762
2d7aa578
ESR
17632012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
1764
1765 PR c++/52654
1766 * c-common.h (overflow_type): New enum.
1767 (build_userdef_literal): Add overflow_type argument.
1768 (tree_userdef_literal): Add overflow_type.
1769 (USERDEF_LITERAL_OVERFLOW): New access macro.
1770 * c-common.c (build_userdef_literal): Add overflow_type
1771 argument.
1772 * c-lex.c (c_lex_with_flags): Add overflow_type to
1773 build_userdef_literal calls.
1774 (interpret_integer, interpret_float): Add overflow_type argument.
1775
cc3c4f62
RB
17762012-11-28 Richard Biener <rguenther@suse.de>
1777
1778 PR c/35634
1779 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1780 here and use a type with proper overflow behavior for types that would
1781 need to be promoted for the arithmetic.
1782
77bc5132
JJ
17832012-11-23 Jakub Jelinek <jakub@redhat.com>
1784
1785 PR sanitizer/55435
1786 * c-common.c (handle_no_address_safety_analysis_attribute): New
1787 function.
1788 (c_common_attribute_table): Add no_address_safety_analysis.
1789
5dc99c46
SB
17902012-11-16 Simon Baldwin <simonb@google.com>
1791
1792 * c.opt: Add f[no-]canonical-system-headers.
1793 * c-opts.c (c_common_handle_option): Handle
1794 OPT_fcanonical_system_headers.
1795
a4a0016d
ESR
17962012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
1797
1798 PR c++/54413
1799 * c-opts.c (c_common_handle_option): Set new flags.
1800 * c.opt: Describe new flags.
1801
7dbb85a7
JM
18022012-11-09 Jason Merrill <jason@redhat.com>
1803
1804 * c.opt (Wabi-tag): New.
1805
ad7bac31
AK
18062012-11-09 Andi Kleen <ak@linux.intel.com>
1807
1808 PR 55139
1809 * c-common.c (get_atomic_generic_size): Mask with
1810 MEMMODEL_MASK
1811
7332899a
MLI
18122012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1813
1814 PR c/53063
1815 * c.opt (Wformat): Make it Alias Wformat=1.
1816 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
1817 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
1818 LangEnabledBy.
1819 (Wformat=): RejectNegative. Use LangEnabledBy.
1820 (Wnonnull): Use LangEnabledBy.
1821 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
1822 * c-format.c (set_Wformat): Delete.
1823 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
1824 (maybe_read_dollar_number): Likewise.
1825 (avoid_dollar_number): Likewise.
1826 (finish_dollar_format_checking): Likewise.
1827 (check_format_info): Likewise.
1828 (check_format_info_main): Likewise.
1829 (check_format_types): Likewise.
1830 (format_type_warning): Likewise.
1831 * c-common.c (int): Likewise.
1832 (check_function_sentinel): Likewise.
1833 * c-common.h (warn_format,set_Wformat): Do not declare here.
1834
34a180a6
MLI
18352012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1836
1837 PR c/53063
1838 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
1839 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
1840 Use LangEnabledBy.
1841 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
1842 common.opt.
1843 (Wvariadic-macros): Init(1).
1844 * c-opts.c (c_common_handle_option): Do not handle them
1845 explicitly.
1846 (c_common_post_options): Likewise.
1847 (sanitize_cpp_opts): warn_unused_macros is now
1848 cpp_warn_unused_macros.
1849 (push_command_line_include): Likewise.
1850 * c-common.c (warn_unknown_pragmas): Do not define.
1851 * c-common.h (warn_unknown_pragmas): Do not declare.
1852
3f46d6a5
MLI
18532012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1854
1855 PR c/51294
1856 * c-common.c (conversion_warning): Handle conditional expressions.
1857
880661a4
JW
18582012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
1859
1860 PR c++/54930
1861 * c.opt (Wreturn_local_addr): Define new option.
1862
4514a96b
JM
18632012-10-25 Jason Merrill <jason@redhat.com>
1864
f14edc1a
JM
1865 * c.opt (Wvirtual-move-assign): New.
1866
4514a96b
JM
1867 * c.opt (Winherited-variadic-ctor): New.
1868
93100c6b
MG
18692012-10-25 Marc Glisse <marc.glisse@inria.fr>
1870
1871 PR c++/54427
1872 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
1873
1efcb8c6
JM
18742012-10-23 Joseph Myers <joseph@codesourcery.com>
1875
1876 * c-common.h (pch_cpp_save_state): Declare.
1877 * c-target.def (c_preinclude): New hook.
1878 * c-opts.c (done_preinclude): New.
1879 (push_command_line_include): Handle default preincluded header.
1880 (cb_file_change): Call pch_cpp_save_state when calling
1881 push_command_line_include.
1882 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
1883 (pch_cpp_save_state): New.
1884 (pch_init): Call pch_cpp_save_state conditionally, instead of
1885 calling cpp_save_state.
1886
4a0ae68e
MLI
18872012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1888
1889 PR c/53063
1890 PR c/40989
1891 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
1892 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
1893 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
1894 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
1895 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
1896 * c-opts.c (c_common_handle_option): Remove explicit handling from
1897 here.
1898 (c_common_post_options): Likewise.
1899
67e4210b
EB
19002012-10-18 Eric Botcazou <ebotcazou@adacore.com>
1901
1902 * c-ada-spec.c (LOCATION_COL): Delete.
1903 (compare_location): New function.
1904 (compare_node): Use it.
1905 (compare_comment): Likewise.
1906
65d4f2cd
MLI
19072012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1908
1909 PR c/53063
1910 PR c/40989
1911 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
1912 * c-opts.c (c_common_handle_option): Do not set them here. Add
1913 comment.
1914 (c_common_post_options): Likewise.
1915
909881cb
EB
19162012-10-16 Eric Botcazou <ebotcazou@adacore.com>
1917
1918 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
1919 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
1920 Remove POINTER_TYPE handling, add large unsigned handling and use
1921 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
1922
3a785c97
JJ
19232012-10-12 Jakub Jelinek <jakub@redhat.com>
1924
1925 PR c/54381
1926 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
1927 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
1928 locs and array of 3 trees instead of just single loc and single
1929 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
1930 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
1931 For *cmp* builtins that take two sources strings report warnings
1932 about first and second source, not about destination and source.
1933
5e54f81d
MG
19342012-10-12 Marc Glisse <marc.glisse@inria.fr>
1935
1936 PR c++/53055
1937 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
1938
f5b02f1e
EB
19392012-10-11 Eric Botcazou <ebotcazou@adacore.com>
1940
1941 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
1942 declaring something coming from another file.
1943
b46dbc6c
AC
19442012-10-10 Arnaud Charlet <charlet@adacore.com>
1945
f5b02f1e 1946 PR ada/54845
b46dbc6c
AC
1947 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
1948
5d9de0d0
PC
19492012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
1950
1951 PR c++/54194
1952 * c-common.c (warn_about_parentheses): Add location_t parameter;
1953 use EXPR_LOC_OR_LOC.
1954 * c-common.h: Update declaration.
1955
a212e43f
MG
19562012-10-09 Marc Glisse <marc.glisse@inria.fr>
1957
1958 PR c++/54427
1959 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
1960 more operations. Make error messages optional.
1961 * c-common.h (enum stv_conv): Moved from c-typeck.c.
1962 (scalar_to_vector): Declare.
1963
b1db7f91
JM
19642012-10-08 Jason Merrill <jason@redhat.com>
1965
1966 * c-common.c (c_common_reswords): Add thread_local.
1967
e28d52cf
DS
19682012-10-08 Dodji Seketeli <dodji@redhat.com>
1969
1970 PR c++/53528 C++11 attribute support
1971 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
1972 new functions.
1973 * c-common.c (check_cxx_fundamental_alignment_constraints): New
1974 static function.
1975 (handle_aligned_attribute): In choose strictest alignment
1976 among many. Use new check_cxx_fundamental_alignment_constraints.
1977 (handle_transparent_union_attribute): In c++11 attribute syntax,
1978 don't look through typedefs.
1979
3b78de56
AC
19802012-10-04 Arnaud Charlet <charlet@adacore.com>
1981
1982 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
1983 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
1984 out of dumpfile.h.
1985
6040bb5f
DC
19862012-09-25 Dehao Chen <dehao@google.com>
1987
1988 PR middle-end/54645
3b78de56 1989 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
1990 map when read in the pch.
1991
0b07a57e
AC
19922012-09-18 Arnaud Charlet <charlet@adacore.com>
1993
1994 * c-ada-spec.c: Style fixes.
1995
da5182be
TQ
19962012-09-18 Thomas Quinot <quinot@adacore.com>
1997
1998 * c.opt (-fada-spec-parent): Define new command line switch.
1999 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
2000 is specified, generate binding spec as a child of the specified unit.
2001
0ccb505d
PC
20022012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
2003 Manuel López-Ibáñez <manu@gcc.gnu.org>
2004
2005 PR c++/53210
2006 * c.opt ([Winit-self]): Enabled by -Wall in C++.
2007
c583af79
AC
20082012-08-23 Arnaud Charlet <charlet@adacore.com>
2009
2010 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
2011 for pointers, and add missing Convention C pragma.
2012 (print_ada_struct_decl): Add missing aliased keyword.
2013 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
2014
1a4049e7
JJ
20152012-08-17 Jakub Jelinek <jakub@redhat.com>
2016
2017 * c-common.c (sizeof_pointer_memaccess_warning): New function.
2018 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
2019 * c-opts.c (c_common_handle_option): Enable it for -Wall.
2020 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
2021 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
2022
70b5e7dc
RG
20232012-08-10 Richard Guenther <rguenther@suse.de>
2024
2025 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
2026
f8923f7e
SB
20272012-08-07 Steven Bosscher <steven@gcc.gnu.org>
2028
2029 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
2030 instead of separate pp_newline and pp_flush.
2031 (print_c_tree): Likewise.
2032
e45abe1f
RH
20332012-07-26 Richard Henderson <rth@redhat.com>
2034
2035 * c-common.c (handle_hot_attribute): Allow labels.
2036 (handle_cold_attribute): Likewise.
2037
332f1d24
JJ
20382012-07-20 Jakub Jelinek <jakub@redhat.com>
2039
2040 PR c++/28656
2041 * c-common.c (check_function_nonnull): Handle multiple nonnull
2042 attributes properly.
2043
7ee2468b
SB
20442012-07-16 Steven Bosscher <steven@gcc.gnu.org>
2045
2046 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
2047 * c-ada-spec.c: Likewise.
2048 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
2049
ee7b28eb
SB
20502012-07-14 Steven Bosscher <steven@gcc.gnu.org>
2051
2052 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
2053 Remove code conditional on it.
2054
6bdf3519
SB
20552012-07-11 Steven Bosscher <steven@gcc.gnu.org>
2056
2057 * c-gimplify.c: Do not include basic-block.h.
2058 * c-common.c: Do not include linfuncs.h.
2059
532aafad
SB
20602012-07-08 Steven Bosscher <steven@gcc.gnu.org>
2061
2062 * c-common.h: Include tree.h.
2063
8d0d1915
JM
20642012-07-02 Jason Merrill <jason@redhat.com>
2065
2066 PR c++/53524
2067 * c-common.c (get_priority): Call default_conversion.
2068
fbc873ad
UB
20692012-07-01 Uros Bizjak <ubizjak@gmail.com>
2070
2071 * c-pch.c (c_common_write_pch): Remove unused variables.
2072
d4a10d0a
SB
20732012-06-29 Steven Bosscher <steven@gcc.gnu.org>
2074
2075 * cppspec.c: Moved from gcc/ to here.
2076
6f3a2e23
KT
20772012-06-27 Kai Tietz <ktietz@redhat.com>
2078
2079 PR preprocessor/37215
2080 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
2081
8ca92d04
SB
20822012-06-21 Steven Bosscher <steven@gcc.gnu.org>
2083
2084 * c-common.h (c_common_print_pch_checksum): Remove.
2085 * c-pch.c: Do not include output.h.
2086 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
2087 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
2088 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
2089 (struct c_pch_header): Remove.
2090 (get_ident): Update gpch version.
2091 (pch_init): Do not print executable_checksum to asm_out_file.
2092 Do not fail if there is no asm_out_file to read back from. Set
2093 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
2094 (c_common_write_pch): Verify that nothing was written to asm_out_file
2095 since pch_init was called. Do not write a c_pch_header, and do not
2096 copy from asm_out_file to the PCH.
2097 (c_common_read_pch): Do not read a c_pch_header, and do not restore
2098 the content of asm_out_file from the PCH.
2099 (c_common_print_pch_checksum): Remove.
2100 * c-opts.c (c_common_init): Print out executable_checksum directly.
2101
70f42967
SB
21022012-06-19 Steven Bosscher <steven@gcc.gnu.org>
2103
2104 * c-target.def (objc_declare_unresolved_class_reference,
2105 objc_declare_class_definition): Add new hooks.
2106
a8781821
SB
21072012-06-19 Steven Bosscher <steven@gcc.gnu.org>
2108
2109 * c-lex.c: Do not include output.h.
2110 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
2111 Remove uses of ASM_OUTPUT_IDENT.
2112
9e1a8dd1
RR
21132012-06-15 Marc Glisse <marc.glisse@inria.fr>
2114
2115 PR c++/51033
2116 * c-common.h (c_build_vec_perm_expr): Move decl here.
2117 * c-common.c (c_build_vec_perm_expr): Move definition
2118 here.
2119
6f07a821
SB
21202012-06-06 Steven Bosscher <steven@gcc.gnu.org>
2121
2122 * c.opt (fconserve-space): Turn into a no-op.
2123
9faeb493 21242012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
2125
2126 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
2127 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
2128 both the start and end of the function.
2129
a4b7d13c
SB
21302012-06-04 Steven Bosscher <steven@gcc.gnu.org>
2131
2132 * c-common.c: Do not include output.h.
2133 * c-pragma.c: Likewise.
2134
c265f413
SA
21352012-06-04 Steven Bosscher <steven@gcc.gnu.org>
2136
2137 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
2138 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
2139 (lang_decl_name): Handle namespace decls.
2140
be7a421e
SB
21412012-05-31 Steven Bosscher <steven@gcc.gnu.org>
2142
2143 * c-ada-spec.c: Do not include output.h.
2144 * c-semantics.c: Likewise.
2145
65de6659
JM
21462012-05-29 Joseph Myers <joseph@codesourcery.com>
2147
2148 * c-common.c: Fix typo.
2149
ca5f4331
MM
21502012-05-29 Michael Matz <matz@suse.de>
2151
2152 * c-common.h (c_expand_decl): Remove prototype.
2153
4f7f7aca
MLI
21542012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2155
2156 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
2157 * c-opts.c (c_common_handle_option): Remove code handling
2158 warn_missing_braces.
2159
4a792f9b
PC
21602012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
2161
2162 PR c++/25137
2163 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
2164 -Wmissing_braces.
2165
650dc14a
DS
21662012-05-22 Dodji Seketeli <dodji@redhat.com>
2167
2168 PR c++/53322
2169 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
2170
9b095bf1
MLI
21712012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
2172
2173 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
2174 * c-opts.c (c_common_handle_option): Do not handle explicitly
2175 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
2176
0b2c4be5
DS
21772012-05-16 Dodji Seketeli <dodji@redhat.com>
2178
2179 PR preprocessor/7263
2180 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
2181 to cpp_classify_number. For diagnostics, use the precise location
2182 instead of the global input_location.
2183
a1bde5af
PC
21842012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
2185
d02924ef 2186 PR c++/11856
a1bde5af
PC
2187 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
2188
d1ede5f4
BS
21892012-05-14 Bernd Schmidt <bernds@codesourcery.com>
2190
a1bde5af 2191 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 2192
f2bc201f
MLI
21932012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
2194
2195 PR 53063
2196 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
2197 Wreorder): Use LangEnabledBy.
2198 * c-opts.c (c_common_handle_option): Do not enable them
2199 explicitly. Call lang-specific generated functions.
2200 (c_common_post_options): Do not set them here.
2201
95744782
MLI
22022012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
2203
2204 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
2205 Wmissing-field-initializers,Wmissing-parameter-type,
2206 Wold-style-declaration,Woverride-init): Use EnabledBy.
2207 * c-opts.c (c_common_post_options): Do not set here explicitly.
2208
7d5a5747
MLI
22092012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2210
2211 PR 53063
2212 * c-opts.c (c_common_handle_option): Use handle_generated_option
2213 to enable sub-options.
2214
5a3c9cf2
PC
22152012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
2216
2217 PR c++/53158
2218 * c-common.c (warnings_for_convert_and_check): Use warning_at.
2219
3ac8781c
RG
22202012-05-10 Richard Guenther <rguenther@suse.de>
2221
2222 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
2223 adjust commentary about TYPE_IS_SIZETYPE types.
2224
1e537948
MLI
22252012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2226
2227 PR c++/53261
2228 * c-common.c (warn_logical_operator): Check that argument of
2229 integer_zerop is not NULL.
2230
f2c4a785
MLI
22312012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
2232
2233 PR c/43772
2234 * c-common.c (warn_logical_operator): Do not warn if either side
2235 is already true or false.
2236
50f305ca
MLI
22372012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
2238
2239 PR c/51712
2240 * c-common.c (expr_original_type): New.
2241 (shorten_compare): Do not warn for enumeration types.
2242
0c3641b0
MLI
22432012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2244
2245 * c.opt (fpermissive): Add Var(flag_permissive).
2246
7edaa4d2
MG
22472012-04-30 Marc Glisse <marc.glisse@inria.fr>
2248
2249 PR c++/51033
2250 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
2251 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
2252
b9c8da34
DS
22532012-04-30 Dodji Seketeli <dodji@redhat.com>
2254
2255 Add -Wvarargs option
2256 * c.opt (Wvarargs): Define new option.
2257
e6c69da0
MLI
22582012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2259
2260 * c-common.c (check_function_arguments): Replace
2261 Wmissing-format-attribute with Wsuggest-attribute=format.
2262
90137d8f
MLI
22632012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2264
2265 * c.opt (Wsuggest-attribute=format): New. Alias of
2266 Wmissing-format-attribute.
2267 * c-format.c (decode_format_type): Replace
2268 Wmissing-format-attribute with Wsuggest-attribute=format.
2269 (check_function_format): Likewise.
2270
9faeb493 22712012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
2272
2273 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
2274 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
2275 * c.opt: Add Wliteral-suffix.
2276
c1771a20
MLI
22772012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2278
2279 PR c/44774
2280 * c.opt (Wpedantic): New.
2281 (pedantic): Alias Wpedantic.
2282 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
2283 (c_common_post_options): Likewise.
2284 (sanitize_cpp_opts): Likewise.
2285 * c-lex.c (interpret_float): Likewise.
2286 * c-format.c (check_format_types): Likewise.
2287 * c-common.c (pointer_int_sum): Likewise.
2288 (c_sizeof_or_alignof_type): Likewise.
2289 (c_add_case_label): Likewise.
2290 (c_do_switch_warnings): Likewise.
2291 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
2292
04b391c1
JM
22932012-04-15 Jason Merrill <jason@redhat.com>
2294
2295 PR c++/52818
2296 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
2297 (C_STD_NAME): Distinguish between C++98 and C++11.
2298
ac868f29
EB
22992012-04-11 Eric Botcazou <ebotcazou@adacore.com>
2300
2301 PR target/52624
2302 * c-common.h (uint16_type_node): Rename into...
2303 (c_uint16_type_node): ...this.
2304 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
2305 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
2306
fd4116f4
MLI
23072012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
2308
2309 * c-common.c (warn_if_unused_value): Move definition to here.
2310 * c-common.h (warn_if_unused_value): Move declaration to here.
2311
573ac65e
WB
23122012-03-23 William Bader <williambader@hotmail.com>
2313
2314 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
2315
552b8185
JM
23162012-03-20 Jason Merrill <jason@redhat.com>
2317
2318 * c-common.h (enum cxx_dialect): Add cxx1y.
2319 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
2320 test.
2321 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2322 * c-opts.c (c_common_post_options): Likewise.
2323 (set_std_cxx1y): New.
2324 (c_common_handle_option): Call it.
2325 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
2326
04398fa8
PC
23272012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
2328
2329 PR c++/14710
2330 * c.opt ([Wuseless-cast]): Add.
2331
d2a12ae7
RG
23322012-03-16 Richard Guenther <rguenther@suse.de>
2333
2334 * c-pretty-print.c (pp_c_initializer_list): Adjust.
2335
a12bf402
MLI
23362012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2337
2338 PR c++/44783
2339 * c.opt (ftemplate-backtrace-limit) Add.
2340
5c30094f
RO
23412012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2342
2343 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
2344 handling.
2345 * c-pragma.c (handle_pragma_extern_prefix): Remove.
2346 (init_pragma): Don't register extern_prefix.
2347
21fa2faf
RG
23482012-03-12 Richard Guenther <rguenther@suse.de>
2349
2350 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
2351 (builtin_type_for_size): Likewise.
2352
e3793c6f
JJ
23532012-02-13 Jakub Jelinek <jakub@redhat.com>
2354
2355 PR c++/52215
2356 * c-common.c (sync_resolve_params): Don't decide whether to convert
2357 or not based on TYPE_SIZE comparison, convert whenever arg_type
2358 is unsigned INTEGER_TYPE.
2359
93286335
PC
23602012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
2361
2362 PR c/52118
2363 * c.opt ([Wunused-local-typedefs]): Fix description.
2364
7a421706
MS
23652012-01-24 Mike Stump <mikestump@comcast.net>
2366
2367 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
2368 exactly.
2369
ba9b1f11
RG
23702012-01-18 Richard Guenther <rguenther@suse.de>
2371
2372 * c-opts.c (c_common_post_options): Reset LTO flags if
2373 we are about to generate a PCH.
2374
465406be
PC
23752012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
2376
2377 PR c++/51777
2378 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
2379 use pp_unsigned_wide_integer.
2380
aee15221
RG
23812012-01-10 Richard Guenther <rguenther@suse.de>
2382
2383 PR middle-end/51806
2384 * c-opts.c (c_common_handle_option): Move -Werror handling
2385 to language independent code.
2386
5720c0dc
RG
23872012-01-05 Richard Guenther <rguenther@suse.de>
2388
2389 PR middle-end/51764
2390 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
2391 from common.opt.
2392
73ac190a
PC
23932011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
2394
2395 PR c++/51316
2396 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
2397 of array types with an unknown bound.
2398
48b0b196
JM
23992011-12-20 Joseph Myers <joseph@codesourcery.com>
2400
2401 * c-common.c (flag_isoc99): Update comment to refer to C11.
2402 (flag_isoc1x): Change to flag_isoc11.
2403 * c-common.h (flag_isoc99): Update comment to refer to C11.
2404 (flag_isoc1x): Change to flag_isoc11.
2405 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
2406 C11.
2407 * c-opts.c (set_std_c1x): Change to set_std_c11.
2408 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
2409 Call set_std_c11.
2410 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
2411 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
2412 * c.opt (std=c1x): Change to std=c11. Document as non-draft
2413 standard.
2414 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
2415 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
2416 (std=gnu1x): Make alias of std=gnu11.
2417
d58d6eb5
JM
24182011-12-19 Jason Merrill <jason@redhat.com>
2419
2420 PR c++/51228
2421 * c-common.c (handle_transparent_union_attribute): Check the first
2422 field if the type is complete.
2423
b3908fcc
JW
24242011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
2425
2426 PR libstdc++/51365
2427 * c-common.c (RID_IS_FINAL): Add.
2428 * c-common.h (RID_IS_FINAL): Add.
2429
fea3ca91
IS
24302011-11-30 Iain Sandoe <iains@gcc.gnu.org>
2431
2432 * c.opt (fgnu-runtime): Provide full description.
2433 (fnext-runtime): Likewise.
2434 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
2435
62bad7cd
AM
24362011-11-28 Andrew MacLeod <amacleod@redhat.com>
2437
2438 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
2439 predefines in one place. Add LOCK_FREE predefines.
2440 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
2441 new func.
2442
c466c4ff
AM
24432011-11-24 Andrew MacLeod <amacleod@redhat.com>
2444
2445 PR c/51256
9faeb493 2446 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 2447 conditions
9faeb493
UB
2448 (resolve_overloaded_atomic_exchange,
2449 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
2450 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
2451 error_mark_node for error conditions.
9faeb493 2452
a5952633
RG
24532011-11-08 Richard Guenther <rguenther@suse.de>
2454
2455 PR middle-end/51010
2456 c-family/
2457
0a35513e
AH
24582011-11-07 Richard Henderson <rth@redhat.com>
2459 Aldy Hernandez <aldyh@redhat.com>
2460 Torvald Riegel <triegel@redhat.com>
2461
2462 Merged from transactional-memory.
2463
2464 * c-common.c (handle_tm_wrap_attribute,
2465 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
2466 (struct c_common_reswords): Added __transaction* keywords.
2467 (struct c_common_attribute_table): Added transaction* and tm_regparm
2468 attributes.
2469 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
2470 masks.
2471 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
2472 find_tm_attribute): Declare.
2473
6d87092d
JM
24742011-11-07 Jason Merrill <jason@redhat.com>
2475
2476 PR c++/35688
2477 * c-common.c, c-common.h: Revert yesterday's changes.
2478
8e7860a1
JM
24792011-11-06 Jason Merrill <jason@redhat.com>
2480
2481 PR c++/35688
2482 * c-common.c (decl_has_visibility_attr): Split out from...
2483 (c_determine_visibility): ...here.
2484 * c-common.h: Declare it.
2485
d19fa6b5
JM
24862011-11-06 Joseph Myers <joseph@codesourcery.com>
2487
2488 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
2489 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
2490 type.
2491 (check_user_alignment): New. Split out of
2492 handle_aligned_attribute. Disallow integer constants with
2493 noninteger types. Conditionally allow zero.
2494 (handle_aligned_attribute): Use check_user_alignment.
2495 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
2496
86951993
AM
24972011-11-06 Andrew MacLeod <amacleod@redhat.com>
2498 Richard Henderson <rth@redhat.com>
2499
2500 Merged from cxx-mem-model.
2501
2502 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 2503 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
2504 parameters that are the same type size.
2505 (get_atomic_generic_size): New. Find size of generic
2506 atomic function parameters and do typechecking.
2507 (add_atomic_size_parameter): New. Insert size into parameter list.
2508 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
2509 either __atomic_exchange_n or external library call.
9faeb493 2510 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 2511 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 2512 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
2513 __atomic_load_n or an external library call.
2514 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
2515 __atomic_store_n or an external library call.
2516 (resolve_overloaded_builtin): Handle new __atomic builtins.
2517
cf9e9959
EB
25182011-11-04 Eric Botcazou <ebotcazou@adacore.com>
2519
2520 PR c++/50608
2521 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
2522 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
2523 <INDIRECT_REF>: Return the argument.
2524 <ARRAY_REF>: Remove special code for negative offset.
2525 Call fold_build_pointer_plus instead of size_binop.
2526 (fold_offsetof): Remove STOP_REF argument and adjust.
2527 * c-common.h (fold_offsetof_1): Declare.
2528 (fold_offsetof): Remove STOP_REF argument.
2529
25339f10
JM
25302011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
2531
2532 PR c++/50810
2533 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2534 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2535 Wnarrowing for C++0x and C++98.
2536 * c.opt ([Wnarrowing]): Update.
2537
89401152
PC
25382011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
2539
2540 PR c++/44277
2541 * c.opt: Add Wzero-as-null-pointer-constant.
2542
97e3ad20
JM
25432011-10-31 Jason Merrill <jason@redhat.com>
2544
15694fdd
JM
2545 * c.opt (-fdeduce-init-list): Off by default.
2546
97e3ad20
JM
2547 PR c++/50920
2548 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
2549 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
2550 and -Wc++11-compat.
2551 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
2552
fb9120e3
RAV
25532011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
2554
2555 PR c++/30066
2556 * c.opt (fvisibility-inlines-hidden): Description change.
2557
3ce4f9e4
ESR
25582011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
2559
2560 Implement C++11 user-defined literals.
2561 * c-common.c (build_userdef_literal): New.
2562 * c-common.def: New tree code.
2563 * c-common.h (tree_userdef_literal): New tree struct and accessors.
2564 * c-lex.c (interpret_float): Add suffix parm.
2565 (c_lex_with_flags): Build literal tokens.
2566
5f53c243
PC
25672011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2568
2569 PR c++/50841
2570 Revert:
2571 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2572
2573 PR c++/50810
2574 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2575 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2576 Wnarrowing for C++0x and C++98.
2577 * c.opt ([Wnarrowing]): Update.
2578
263734e1
PC
25792011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2580
2581 PR c++/50810
2582 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2583 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2584 Wnarrowing for C++0x and C++98.
2585 * c.opt ([Wnarrowing]): Update.
2586
d2e312d7
PC
25872011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
2588
2589 PR c++/45385
2590 * c-common.c (conversion_warning): Remove code looking for
2591 artificial operands.
2592
d17687f6
DS
25932011-10-18 Dodji Seketeli <dodji@redhat.com>
2594
2595 PR bootstrap/50760
2596 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 2597 !NO_IMPLICIT_EXTERN_C.
d17687f6 2598
fc8396e9
PC
25992011-10-17 Michael Spertus <mike_spertus@symantec.com>
2600
2601 * c-common.c (c_common_reswords): Add __bases,
2602 __direct_bases.
2603 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
2604
26052011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
2606
2607 PR c++/50757
2608 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
2609
847e697a
TT
26102011-10-15 Tom Tromey <tromey@redhat.com>
2611 Dodji Seketeli <dodji@redhat.com>
2612
2613 * c.opt (fdebug-cpp): New option.
2614 * c-opts.c (c_common_handle_option): Handle the option.
2615 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
2616 output stream in parameter. Factorized from ...
2617 (maybe_print_line): ... this. Dump location debug information when
2618 -fdebug-cpp is in effect.
2619 (print_line_1): New static function. Takes an output stream in
2620 parameter. Factorized from ...
2621 (print_line): ... here. Dump location information when -fdebug-cpp
2622 is in effect.
2623 (scan_translation_unit): Dump location information when
2624 -fdebug-cpp is in effect.
2625
92582b75
TT
26262011-10-15 Tom Tromey <tromey@redhat.com>
2627 Dodji Seketeli <dodji@redhat.com>
2628
2629 * c.opt (ftrack-macro-expansion): New option. Handle it with and
2630 without argument.
2631 * c-opts.c (c_common_handle_option)<case
2632 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
2633 cases. Handle -ftrack-macro-expansion with and without argument.
2634
46427374
TT
26352011-10-15 Tom Tromey <tromey@redhat.com>
2636 Dodji Seketeli <dodji@redhat.com>
2637
2638 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
2639 (print_line, cb_define, do_line_change): Adjust to avoid touching
2640 the internals of struct line_map. Use the public API instead.
2641 * c-pch.c (c_common_read_pch): Likewise.
2642 * c-lex.c (fe_file_change): Likewise.
2643
fc8396e9
PC
26442011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
2645
2646 PR c++/17212
2647 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
2648
26492011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
2650
2651 PR c++/33067
2652 * c-pretty-print.c (pp_c_floating_constant): Output
2653 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
2654
e79983f4
MM
26552011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2656
2657 * c-common.c (def_builtin_1): Delete old interface with two
2658 parallel arrays to hold standard builtin declarations, and replace
2659 it with a function based interface that can support creating
2660 builtins on the fly in the future. Change all uses, and poison
2661 the old names. Make sure 0 is not a legitimate builtin index.
2662 * c-omp.c (c_finish_omp_barrier): Ditto.
2663 (c_finish_omp_taskwait): Ditto.
2664 (c_finish_omp_flush): Ditto.
2665
6637388f
TG
26662011-10-11 Tristan Gingold <gingold@adacore.com>
2667
2668 * c.opt: (fallow-parameterless-variadic-functions): New.
2669
3797cb21
DS
26702011-09-08 Dodji Seketeli <dodji@redhat.com>
2671
2672 PR c++/33255 - Support -Wunused-local-typedefs warning
2673 * c-common.h (struct c_language_function::local_typedefs): New
2674 field.
9faeb493
UB
2675 (record_locally_defined_typedef, maybe_record_typedef_use)
2676 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 2677 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
2678 (maybe_record_typedef_use)
2679 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
2680 * c.opt: Declare new -Wunused-local-typedefs flag.
2681
693ddb1b
EB
26822011-09-06 Eric Botcazou <ebotcazou@adacore.com>
2683
2684 PR middle-end/50266
2685 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
2686 computations.
2687
830c740f
RG
26882011-09-05 Richard Guenther <rguenther@suse.de>
2689
2690 * c-common.c (complete_array_type): Use ssize_int (-1) instead
2691 of integer_minus_one_node for empty array upper bounds.
2692
892a371f
DS
26932011-08-28 Dodji Seketeli <dodji@redhat.com>
2694
2695 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
2696 it's the first time it's being called on this main TU.
2697
0e3fdb48
RB
26982011-08-24 Richard Guenther <rguenther@suse.de>
2699
2700 PR c/49396
2701 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
2702
27032011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
2704
2705 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
2706 defined in cpp_init_builtins and c_cpp_builtins.
2707
d4a83c10
JM
27082011-08-19 Joseph Myers <joseph@codesourcery.com>
2709
2710 * c-common.c (c_common_reswords): Add __builtin_complex.
2711 * c-common.h (RID_BUILTIN_COMPLEX): New.
2712
bbceee64
JM
27132011-08-18 Joseph Myers <joseph@codesourcery.com>
2714
2715 * c-common.c (c_common_reswords): Add _Noreturn.
2716 (keyword_is_function_specifier): Handle RID_NORETURN.
2717 * c-common.h (RID_NORETURN): New.
2718
0e3a99ae
AS
27192011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2720
2721 * c-common.c (unsafe_conversion_p): New function. Check if it is
2722 unsafe to convert an expression to the type.
2723 (conversion_warning): Adjust, use unsafe_conversion_p.
2724 * c-common.h (unsafe_conversion_p): New function declaration.
2725
20906c66
JJ
27262011-08-02 Jakub Jelinek <jakub@redhat.com>
2727
2728 * c-common.h (c_finish_omp_atomic): Adjust prototype.
2729 (c_finish_omp_taskyield): New prototype.
2730 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
2731 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
2732 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
2733 or RHS1 have side-effects, evaluate those too in the right spot,
2734 if it is a decl and LHS is also a decl, error out if they
2735 aren't the same.
2736 (c_finish_omp_taskyield): New function.
2737 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
2738 * c-pragma.c (omp_pragmas): Add taskyield.
2739 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
2740 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
2741 PRAGMA_OMP_CLAUSE_MERGEABLE.
2742
770e5a2e
DS
27432011-07-25 Dodji Seketeli <dodji@redhat.com>
2744
2745 * c-common.h (set_underlying_type): Remove parm name from
2746 declaration.
2747
1baae426
RG
27482011-07-25 Romain Geissler <romain.geissler@gmail.com>
2749
2750 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 2751
fcb21722
JM
27522011-07-22 Jason Merrill <jason@redhat.com>
2753
76f86d00
JM
2754 PR c++/49793
2755 * c.opt (Wnarrowing): New.
2756
3a636414
JM
2757 PR c++/30112
2758 * c-common.h: Declare c_linkage_bindings.
2759 * c-pragma.c (handle_pragma_redefine_extname): Use it.
2760
fcb21722
JM
2761 PR c++/49813
2762 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
2763 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
2764 as flag_isoc99 for 'restrict'.
2765 (pp_c_specifier_qualifier_list): Likewise for _Complex.
2766
02614448
ILT
27672011-07-21 Ian Lance Taylor <iant@google.com>
2768
2769 PR middle-end/49705
2770 * c-common.c (c_disable_warnings): New static function.
2771 (c_enable_warnings): New static function.
2772 (c_fully_fold_internal): Change local unused_p to bool. Call
2773 c_disable_warnings and c_enable_warnings rather than change
2774 c_inhibit_evaluation_warnings.
2775
34429675
JM
27762011-07-20 Jason Merrill <jason@redhat.com>
2777
2778 PR c++/6709 (DR 743)
2779 PR c++/42603 (DR 950)
2780 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
2781 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
2782 (CPP_DECLTYPE): New.
2783 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
2784
5d49b6a7
RG
27852011-07-19 Richard Guenther <rguenther@suse.de>
2786
2787 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
2788 * c-omp.c (c_finish_omp_for): Likewise.
2789
e84a58ff
EB
27902011-07-12 Eric Botcazou <ebotcazou@adacore.com>
2791
2792 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
2793 body on the next line.
2794
329af3c7
JM
27952011-07-08 Jason Merrill <jason@redhat.com>
2796
4063e61b
JM
2797 PR c++/45437
2798 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
2799
329af3c7
JM
2800 PR c++/49673
2801 * c-common.c (c_apply_type_quals_to_decl): Don't check
2802 TYPE_NEEDS_CONSTRUCTING.
2803
1a072294
RG
28042011-07-06 Richard Guenther <rguenther@suse.de>
2805
2806 * c-common.c (c_common_nodes_and_builtins):
2807 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
2808
fce5dddd
RG
28092011-07-05 Richard Guenther <rguenther@suse.de>
2810
2811 * c-common.c (c_common_nodes_and_builtins): Build all common
2812 tree nodes first.
2813
45d439ac
JJ
28142011-06-27 Jakub Jelinek <jakub@redhat.com>
2815
56300785
JJ
2816 * c-common.h (c_tree_chain_next): New static inline function.
2817
45d439ac
JJ
2818 * c-common.c (check_builtin_function_arguments): Handle
2819 BUILT_IN_ASSUME_ALIGNED.
2820
e0a8ecf2
AM
28212011-06-21 Andrew MacLeod <amacleod@redhat.com>
2822
2823 * c-common.c: Add sync_ or SYNC__ to builtin names.
2824 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
2825
28262011-06-20 Pierre Vittet <piervit@pvittet.com>
2827
2828 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
2829 handler.
2830 (gen_pragma_handler): New union.
2831 (internal_pragma_handler): New type.
2832 (c_register_pragma_with_data)
2833 (c_register_pragma_with_expansion_and_data): New functions.
2834
2835 * c-pragma.c (registered_pragmas, c_register_pragma_1)
2836 (c_register_pragma, c_register_pragma_with_expansion)
2837 (c_invoke_pragma_handler): Changed to work with
2838 internal_pragma_handler.
2839 (c_register_pragma_with_data)
2840 (c_register_pragma_with_expansion_and_data): New functions.
2841
677f3fa8
JM
28422011-06-14 Joseph Myers <joseph@codesourcery.com>
2843
2844 * c-common.c: Include common/common-target.h.
2845 (handle_section_attribute): Use
2846 targetm_common.have_named_sections.
2847 * c-cppbuiltin.c: Include common/common-target.h.
2848 (c_cpp_builtins): Use targetm_common.except_unwind_info.
2849
d7fc8c14
RG
28502011-06-10 Richard Guenther <rguenther@suse.de>
2851
2852 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
2853 to print a IDENTIFIER_NODE.
2854
10e48e39
RO
28552011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2856 Joseph Myers <joseph@codesourcery.com>
2857
2858 * c.opt (fbuilding-libgcc): New option.
2859 * c-cppbuiltin.c (c_cpp_builtins): Define
2860 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
2861
6976ae51
JM
28622011-06-07 Jason Merrill <jason@redhat.com>
2863
3ff60975
JM
2864 * c-common.c (max_tinst_depth): Lower default to 900.
2865
6976ae51
JM
2866 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
2867
009db074
RG
28682011-06-07 Richard Guenther <rguenther@suse.de>
2869
2870 * c-common.c (c_common_nodes_and_builtins): Do not set
2871 size_type_node or call set_sizetype.
2872
b4592b92
DS
28732011-06-07 Dodji Seketeli <dodji@redhat.com>
2874
2875 PR debug/49130
2876 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 2877 type when using pointer comparison to compare types.
b4592b92 2878
014ab419
JW
28792011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
2880
2881 * c.opt: Add -Wdelete-non-virtual-dtor.
2882 * c-opts.c (c_common_handle_option): Include it in -Wall.
2883
4f60111f
NF
28842011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
2885
2886 PR bootstrap/49190
2887
2888 Revert:
2889 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2890
2891 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2892 not tree_common.
2893
4cc4f2f4
JJ
28942011-05-27 Jakub Jelinek <jakub@redhat.com>
2895
2896 PR c++/49165
2897 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
2898 C++ don't call c_common_truthvalue_conversion on void type arms.
2899
38e01f9e
NF
29002011-05-27 Nathan Froyd <froydnj@codesourcery.com>
2901
2902 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
2903 (stmt_list_stack): Define.
2904 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
2905 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
2906
92e948a8
NF
29072011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2908
2909 * c-common.c (warning_candidate_p): Check for BLOCKs.
2910
a2fc3e63
NF
29112011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2912
2913 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2914 not tree_common.
2915
0957c029
JJ
29162011-05-25 Jakub Jelinek <jakub@redhat.com>
2917
2918 * c-common.c (def_fn_type): Remove extra va_end.
2919
828fb3ba
JM
29202011-05-23 Jason Merrill <jason@redhat.com>
2921
2922 PR c++/48106
2923 * c-common.c (c_common_get_narrower): New.
2924 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
2925
dde05067
NF
29262011-05-23 Nathan Froyd <froydnj@codesourcery.com>
2927
2928 * c-common.h (check_function_arguments): Tweak prototype of
2929 check_function_arguments.
2930 * c-common.c (check_function_arguments): Likewise. Adjust
2931 calls to check_function_nonnull, check_function_format, and
2932 check_function_sentinel.
2933 (check_function_sentinel): Take a FUNCTION_TYPE rather than
2934 separate attributes and typelist arguments. Use
2935 FOREACH_FUNCTION_ARGS to iterate over argument types.
2936
3c0d13bf
PC
29372011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
2938
2939 * c-common.c (c_common_reswords): Reorder.
2940 * c-common.h (rid): Likewise.
2941
8242dd04
NF
29422011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2943
2944 * c-common.c (def_fn_type): Don't call build_function_type, call
2945 build_function_type_array or build_varargs_function_type_array
2946 instead.
2947 (c_common_nodes_and_builtins): Likewise.
2948
3d528853
NF
29492011-05-05 Nathan Froyd <froydnj@codesourcery.com>
2950
2951 * c-common.c (c_add_case_label): Omit the loc argument to
2952 build_case_label.
2953 * c-common.h (build_case_label): Remove.
2954 * c-semantics.c (build_case_label): Remove.
2955
a04a722b
JM
29562011-05-05 Joseph Myers <joseph@codesourcery.com>
2957
2958 * c-objc.h (objc_start_method_definition): Update prototype.
2959 * stub-objc.c (objc_start_method_definition): Add extra parameter.
2960
e19a18d4
NF
29612011-05-04 Nathan Froyd <froydnj@codesourcery.com>
2962
2963 * c-common.c (check_main_parameter_types): Reindent. Don't use
2964 TYPE_ARG_TYPES directly.
2965 (handle_nonnull_attribute): Likewise.
2966 (sync_resolve_params): Likewise.
2967 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
2968 to check_format_string.
2969 (handle_format_attribute): Likewise.
2970 (check_format_string): Take a function type to examine instead of
2971 a type list. Use a function_arg_iterator to step through argument
2972 types.
2973
c62c040f
RG
29742011-05-04 Richard Guenther <rguenther@suse.de>
2975
2976 * c-common.c (fix_string_type): Use size_int for index type bounds.
2977 (start_fname_decls): Do not pass NULL to build_int_cst.
2978 (c_init_attributes): Likewise.
2979 * c-lex.c (c_lex_with_flags): Likewise.
2980
c12ff9d8
JM
29812011-04-27 Jason Merrill <jason@redhat.com>
2982
2983 * c-common.c (make_tree_vector_from_list): New.
2984 * c-common.h: Declare it.
2985
304dfbe3
RG
29862011-04-26 Richard Guenther <rguenther@suse.de>
2987
2988 PR preprocessor/48248
2989 * c-ppoutput.c (maybe_print_line): Always optimize newlines
2990 for output size with -P.
2991
3c0d13bf
PC
29922011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
2993
2994 * c-common.c (struct c_common_resword): Add __underlying_type.
2995 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2996
04695783
JM
29972011-04-20 Jim Meyering <meyering@redhat.com>
2998
2999 * c-format.c (init_dollar_format_checking): Remove useless
3000 if-before-free.
3001
0dc33c3c
NP
30022011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
3003
3004 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 3005 (objc_detect_field_duplicates): New.
0dc33c3c 3006 * stub-objc.c: Likewise.
3c0d13bf 3007
c59633d9
NP
30082011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3009
3010 * stub-objc.c (objc_declare_protocols): Renamed to
3011 objc_declare_protocol.
3012 * c-objc.h: Likewise.
3c0d13bf 3013
32dabdaf
NP
30142011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3015
3016 * stub-objc.c (objc_declare_class): Updated argument name.
3017
81f653d6
NF
30182011-04-12 Nathan Froyd <froydnj@codesourcery.com>
3019
3020 * c-common.h (c_common_init_ts): Declare.
3021 * c-common.c (c_common_init_ts): Define.
3022
eb345401
NP
30232011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3024
3025 * c-objc.h (objc_build_message_expr): Updated prototype.
3026 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 3027
a358e188
MJ
30282011-04-12 Martin Jambor <mjambor@suse.cz>
3029
3030 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
3031 of cgraph_node.
3032
e6313a78
RG
30332011-04-11 Richard Guenther <rguenther@suse.de>
3034
3035 * c-common.c (complete_array_type): Build a range type of
3036 proper type.
3037
dcf0c47e
NF
30382011-04-08 Nathan Froyd <froydnj@codesourcery.com>
3039
3040 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
3041 (handle_type_generic_attribute): Likewise.
3042
1ee44b26
JM
30432011-04-07 Jason Merrill <jason@redhat.com>
3044
3045 PR c++/48450
3046 * c-common.c (c_common_truthvalue_conversion): Don't ignore
3047 conversion from C++0x scoped enum.
3048
acce4e77
JM
30492011-04-06 Joseph Myers <joseph@codesourcery.com>
3050
3051 * c-target-def.h: New file.
3052 * c-target.def: New file.
3053 * c-target.h: New file.
3054 * c-common.c (targetcm): Don't define here.
3055 * c-common.h (default_handle_c_option): Declare.
3056 * c-format.c: Include c-target.h instead of target.h.
3057 * c-opts.c: Include c-target.h instead of target.h. Explicitly
3058 include tm.h.
3059 (default_handle_c_option): Move from targhooks.c.
3060
e2eefb55
JJ
30612011-03-29 Jakub Jelinek <jakub@redhat.com>
3062
3063 PR preprocessor/48248
3064 * c-ppoutput.c (print): Add src_file field.
3065 (init_pp_output): Initialize it.
3066 (maybe_print_line): Don't optimize by adding up to 8 newlines
3067 if map->to_file and print.src_file are different file.
3068 (print_line): Update print.src_file.
3069
ba78087b
KT
30702011-03-25 Kai Tietz <ktietz@redhat.com>
3071
3072 * c-ada-spec.c (compare_comment): Use filename_cmp
3073 instead of strcmp for filename.
3074
0edf1bb2
JL
30752011-03-25 Jeff Law <law@redhat.com>
3076
3077 * c-family/c-common.c (def_fn_type): Add missing va_end.
3078
c7dc8804
JM
30792011-03-25 Jason Merrill <jason@redhat.com>
3080
3081 * c.opt: Add -std=c++03.
3082
d1d879b1
EB
30832011-03-22 Eric Botcazou <ebotcazou@adacore.com>
3084
3085 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
3086
62d784f7
KT
30872011-03-17 Kai Tietz
3088
3089 PR target/12171
5050afdf
KT
3090 * c-pretty-print.c (pp_c_specifier_qualifier_list):
3091 Display allowed attributes for function pointer types.
3092 (pp_c_attributes_display): New function to display
3093 attributes having affects_type_identity flag set to true.
3094 * c-pretty-print.h (pp_c_attributes_display): New prototype.
3095
62d784f7
KT
3096 * c-common.c (c_common_attribute_table):
3097 Add new element.
3098 (c_common_format_attribute_table): Likewise.
3099
82d37118
JM
31002011-03-18 Jason Merrill <jason@redhat.com>
3101
49a000c3
JM
3102 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
3103 * c-common.h: Don't declare it here.
3104 * c-common.c: Or define it here.
3105 * c-opts.c (c_common_handle_option): Or set it here.
3106
82d37118
JM
3107 PR c++/35315
3108 * c-common.c (handle_transparent_union_attribute): Don't
3109 make a duplicate type in C++.
3110
17bc631c
JM
31112011-03-15 Jason Merrill <jason@redhat.com>
3112
3113 * c-common.c (max_constexpr_depth): New.
3114 * c-common.h: Declare it.
3115 * c-opts.c (c_common_handle_option): Set it.
3116 * c.opt (fconstexpr-depth): New option.
3117
1b9b91a6
JM
31182011-03-11 Jason Merrill <jason@redhat.com>
3119
f231b5ff
JM
3120 * c-common.c (attribute_takes_identifier_p): Add missing const.
3121
1b9b91a6
JM
3122 PR c++/46803
3123 * c-common.c (attribute_takes_identifier_p): Assume that an
3124 unknown attribute takes an identifier.
3125
a19e4d44
NF
31262011-03-07 Nathan Froyd <froydnj@codesourcery.com>
3127
3128 PR c/47786
3129 * c-common.c (c_type_hash): Call list_length instead of iterating
3130 through DECL_CHAIN. Rename 'i' to 'n_elements'.
3131
982d62f6
JJ
31322011-02-19 Jakub Jelinek <jakub@redhat.com>
3133
3134 PR c/47809
3135 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
3136
0a256240
NP
31372011-02-17 Iain Sandoe <iains@gcc.gnu.org>
3138
3139 * c.opt (fobjc-abi-version=) New.
3140 (fobjc-nilcheck): New.
3141
ba9e6dd5
NF
31422011-02-03 Nathan Froyd <froydnj@codesourcery.com>
3143
3144 PR c++/46890
3145 * c-common.h (keyword_is_decl_specifier): Declare.
3146 * c-common.c (keyword_is_decl_specifier): Define.
3147 (keyword_is_function_specifier): New function.
3148
7273813a
JJ
31492011-01-26 Jakub Jelinek <jakub@redhat.com>
3150
3151 PR c/47473
3152 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
3153 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
3154 REAL_TYPE.
3155
908ef79b
AC
31562011-01-26 Arnaud Charlet <charlet@adacore.com>
3157
3158 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
3159
237e9384
JJ
31602011-01-26 Jakub Jelinek <jakub@redhat.com>
3161
3162 PR pch/47430
3163 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
3164 after init_c_lex if pch_file is set.
3165
47ea1edf
DK
31662011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
3167
d4dba752 3168 PR c++/43601
47ea1edf
DK
3169 * c.opt (-fkeep-inline-dllexport): New switch.
3170
2aa9c6ae
RG
31712011-01-12 Richard Guenther <rguenther@suse.de>
3172
3173 PR middle-end/32511
3174 * c-common.c (handle_weak_attribute): Warn instead of error
3175 on declaring an inline function weak.
3176
7bd11157
TT
31772011-01-05 Tom Tromey <tromey@redhat.com>
3178
3179 * c-common.h (lvalue_error): Update.
3180 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
3181 not error.
3182
0e66e494 31832010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 3184
b4f588c4
NP
3185 PR objc/47075
3186 * c-objc.h (objc_finish_message_expr): Added argument to
3187 prototype.
3188
f4da8dce
NF
31892010-12-22 Nathan Froyd <froydnj@codesourcery.com>
3190
3191 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
3192 Use prototype_p.
3193
46270f14
NP
31942010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
3195
3196 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 3197 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 3198
4816c593
NF
31992010-12-10 Nathan Froyd <froydnj@codesourcery.com>
3200
3201 * c-common.h (readonly_error): Declare.
3202 * c-common.c (readonly_error): Define.
3203
7a6daeb0
NF
32042010-12-09 Nathan Froyd <froydnj@codesourcery.com>
3205
3206 * c-common.h (invalid_indirection_error): Declare.
3207 * c-common.c (invalid_indirection_error): Define.
3208
892f6119
RG
32092010-12-03 Richard Guenther <rguenther@suse.de>
3210
3211 PR c/46745
3212 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
3213 (pp_c_unary_expression): Likewise.
3214 (pp_c_expression): Likewise.
3215
6c39e757
NP
32162010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
3217
3218 * c-common.h (objc_finish_function): New.
3219 (objc_non_volatilized_type): Removed.
3220 (objc_type_quals_match): Removed.
3221 * stub-objc.c (objc_finish_function): New.
3222 (objc_non_volatilized_type): Removed.
3223 (objc_type_quals_match): Removed.
9faeb493 3224
7c475d11
JM
32252010-11-30 Joseph Myers <joseph@codesourcery.com>
3226
3227 * c-common.h (parse_optimize_options): Declare.
3228 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
3229 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
3230
71f3e391
JM
32312010-11-29 Joseph Myers <joseph@codesourcery.com>
3232
3233 * c-opts.c (check_deps_environment_vars): Use getenv instead of
3234 GET_ENVIRONMENT.
3235 * c-pch.c (O_BINARY): Don't define here.
3236 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
3237
d5fabb58
JM
32382010-11-25 Joseph Myers <joseph@codesourcery.com>
3239
3240 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
3241 targetm.except_unwind_info.
3242
299404a1
JM
32432010-11-23 Joseph Myers <joseph@codesourcery.com>
3244
3245 * c-opts.c (c_common_handle_option): Pass location to
3246 set_struct_debug_option.
3247
c98cd5bf
JM
32482010-11-23 Joseph Myers <joseph@codesourcery.com>
3249
3250 * c-common.c (visibility_options): Move from ../opts.c.
3251 * c-common.h (struct visibility_flags, visibility_options):
3252 Declare here.
3253 * c-opts.c (finish_options): Rename to c_finish_options.
3254 (c_common_init): Update call to finish_options.
3255
a9546771
NP
32562010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
3257
3258 PR objc/34033
3259 * c-lex.c (lex_string): Check that each string in an Objective-C
3260 string concat sequence starts with either one or zero '@', and
3261 that there are no spurious '@' signs at the end.
3262
24a57808
JM
32632010-11-20 Joseph Myers <joseph@codesourcery.com>
3264
3265 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
3266 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
3267 HANDLE_PRAGMA_VISIBILITY.
3268 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
3269 HANDLE_PRAGMA_VISIBILITY): Don't define.
3270 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
3271
a9aa2c3a
NF
32722010-11-20 Nathan Froyd <froydnj@codesourcery.com>
3273
3274 PR c++/16189
3275 PR c++/36888
3276 PR c++/45331
3277 * c-common.h (keyword_begins_type_specifier): Declare.
3278 (keyword_is_storage_class_specifier): Declare.
3279 (keyword_is_type_qualifier): Declare.
3280 * c-common.c (keyword_begins_type_specifier): New function.
3281 (keyword_is_storage_class_specifier): New function.
3282 (keyword_is_type_qualifier): Declare.
3283
5386338c
JM
32842010-11-19 Joseph Myers <joseph@codesourcery.com>
3285
3286 PR c/46547
3287 * c-common.c (in_late_binary_op): Define.
3288 (c_common_truthvalue_conversion): Check in_late_binary_op before
3289 calling c_save_expr.
3290 * c-common.h (in_late_binary_op): Declare.
3291
69ccdddb
JM
32922010-11-19 Joseph Myers <joseph@codesourcery.com>
3293
3294 * c-opts.c (c_common_handle_option): Update calls to
3295 set_struct_debug_option.
3296
6b192a09
NP
32972010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
3298
3299 * c-common.h (objc_declare_protocols): Added additional argument.
3300 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 3301
fb52b50a
NF
33022010-11-18 Nathan Froyd <froydnj@codesourcery.com>
3303
3304 PR c/33193
3305 * c-common.h (build_real_imag_expr): Declare.
3306 * c-semantics.c (build_real_imag_expr): Define.
3307
b37421c6
JM
33082010-11-17 Joseph Myers <joseph@codesourcery.com>
3309
3310 * c-opts.c (c_common_parse_file): Take no arguments.
3311 * c-common.h (c_common_parse_file): Update prototype.
3312
07078664
JJ
33132010-11-16 Jakub Jelinek <jakub@redhat.com>
3314
3315 PR c++/46401
3316 * c-common.c (warning_candidate_p): Don't track non-const calls
3317 or STRING_CSTs.
3318
c6a13190
ILT
33192010-11-15 Ian Lance Taylor <iant@google.com>
3320
3321 * c-lex.c (init_c_lex): Set macro debug callbacks if
3322 flag_dump_go_spec is set.
3323
925e8657
NP
33242010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
3325
3326 * c-common.h (objc_build_incr_expr_for_property_ref): New.
3327 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
3328
bb0a9581
NF
33292010-11-15 Nathan Froyd <froydnj@codesourcery.com>
3330
3331 PR preprocessor/45038
3332 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
3333 dialects.
3334
c5fa0890
JM
33352010-11-12 Joseph Myers <joseph@codesourcery.com>
3336
3337 * c-common.h (c_family_lang_mask): Declare.
3338 * c-opts.c (c_family_lang_mask): Make extern.
3339 * c-pragma.c (handle_pragma_diagnostic): Use
3340 control_warning_option.
3341
a4d8c676
JM
33422010-11-12 Joseph Myers <joseph@codesourcery.com>
3343
3344 * c-common.c (parse_optimize_options): Update call to
3345 decode_options.
3346 * c-common.h (c_common_handle_option): Update prototype.
3347 * c-opts.c (c_common_handle_option): Take location_t parameter and
3348 pass it to other functions.
3349
f954bd2c
JM
33502010-11-11 Joseph Myers <joseph@codesourcery.com>
3351
3352 * c-opts.c (warning_as_error_callback): Remove.
3353 (c_common_initialize_diagnostics): Don't call
3354 register_warning_as_error_callback.
3355 (c_common_handle_option): Handle -Werror=normalized= here.
3356
d8a07487
JM
33572010-11-10 Joseph Myers <joseph@codesourcery.com>
3358
3359 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
3360 in diagnostic.
3361 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
3362 letter.
3363 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
3364 Remove trailing '.' from diagnostics.
3365 * c.opt (Wwrite-strings_: Avoid '`' in help text.
3366
d5478783
JM
33672010-11-10 Joseph Myers <joseph@codesourcery.com>
3368
3369 * c-common.c (parse_optimize_options): Pass global_dc to
3370 decode_options.
3371 * c-opts.c (c_common_handle_option): Pass &global_options to
3372 set_Wstrict_aliasing.
3373 * c.opt (v): Don't mark Common or document here.
3374
91ebb981
IS
33752010-11-06 Iain Sandoe <iains@gcc.gnu.org>
3376
3377 PR target/44981
3378 * c-format.c (format_type): New type gcc_objc_string_format_type.
3379 (valid_stringptr_type_p): New.
3380 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 3381 (check_format_string): Pass expected type, use
91ebb981
IS
3382 valid_stringptr_type_p (), check that the format string types are
3383 consistent with the format specification.
3384 (decode_format_attr): Warn if NSString is used outside objective-c.
3385 (format_types_orig): Add NSString.
3386 (format_name): New.
3387 (format_flags): New.
3388 (check_format_arg): Handle format strings requiring an external parser.
3389 first_target_format_type: New variable.
3390 (handle_format_attribute): Set up first_target_format_type, pass the
3391 expected format arg string type to check_format_string().
3392 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
3393 * stub-objc.c (objc_string_ref_type_p): New.
3394 (objc_check_format_arg): New.
3395
bede2adc
NP
33962010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
3397
9faeb493 3398 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
3399 * c-common.h (objc_build_class_component_ref): New.
3400 * stub-objc.c (objc_build_class_component_ref): New.
3401
9a179d01
NP
34022010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
3403
3404 * c.opt (Wproperty-assign-default): New option.
3405
22d8d616
NP
34062010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
3407
3408 Implemented -fobjc-std=objc1 flag.
3409 * c.opt (fobjc-std=objc1): New option.
3410
2debdb4f
NP
34112010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
3412
3413 Implemented format and noreturn attributes for Objective-C methods.
3414 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
3415 attribute for Objective-C methods.
3416
ec52b111
JM
34172010-10-31 Jason Merrill <jason@redhat.com>
3418
3419 * c-common.c (conversion_warning, warn_for_collisions_1): Use
3420 EXPR_LOC_OR_HERE.
3421
46a88c12
NP
34222010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
3423
3424 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
3425 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
3426 (objc_add_property_declaration): Removed arguments for copies and
3427 ivar.
3428 (objc_build_getter_call): Renamed to
3429 objc_maybe_build_component_ref.
3430 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
3431 (objc_is_property_ref): New.
3432 * c-common.c (c_common_reswords): Removed copies and ivar.
3433 * stub-objc.c (objc_add_property_declaration): Removed arguments
3434 for copies and ivar.
3435 (objc_build_getter_call): Renamed to
3436 objc_maybe_build_component_ref.
3437 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
3438 (objc_is_property_ref): New.
9faeb493 3439
1e4bf85b
AC
34402010-10-29 Arnaud Charlet <charlet@adacore.com>
3441 Matthew Gingell <gingell@adacore.com>
3442
3443 * c-ada-spec.c (separate_class_package): New function.
3444 (pp_ada_tree_identifier): Prefix references to C++ classes with the
3445 name of their enclosing package.
3446 (print_ada_declaration): Use separate_class_package.
3447
81f0bab2
JM
34482010-10-27 Jason Merrill <jason@redhat.com>
3449
2b08f2c5
JM
3450 * c-common.c (c_common_reswords): Add __is_literal_type.
3451 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
3452
81f0bab2
JM
3453 * c-common.c (check_case_value): Remove special C++ code.
3454
200290f2
NP
34552010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
3456
3457 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
3458 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
3459 and RID_LAST_PATTR.
3460 (objc_add_property_declaration): Added additional arguments.
3461 (objc_property_attribute_kind): Removed.
3462 (objc_set_property_attr): Removed.
3463 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
3464 copy and nonatomic.
3465 * stub-objc.c (objc_add_property_declaration): Added additional
3466 arguments.
3467 (objc_set_property_attr): Removed.
9faeb493 3468
f614132b
NP
34692010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
3470
3471 * c-common.h (objc_add_property_variable): Renamed to
3472 objc_add_property_declaration. Added location argument.
3473 * stub-objc.c (objc_add_property_variable): Same change.
3474
b8a18805
NP
34752010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
3476
3477 * c-common.h (objc_maybe_printable_name): New.
3478 * stub-objc.c (objc_maybe_printable_name): New.
3479
30cd1c5d
AS
34802010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3481 Andrew Pinski <pinskia@gmail.com>
3482
3483 * c-common.h (c_common_mark_addressable_vec): Declare.
3484 * c-common.c (c_common_mark_addressable_vec): New function.
3485
249a82c4
NP
34862010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
3487
3488 * c-common.h (objc_set_method_type): Removed.
3489 (objc_add_method_declaration): Added boolean argument.
3490 (objc_start_method_definition): Same change.
3491 (objc_build_method_signature): Same change.
3492 * stub-objc.c (objc_set_method_type): Removed.
3493 (objc_add_method_declaration): Added boolean argument.
3494 (objc_start_method_definition): Same change.
3495 (objc_build_method_signature): Same change.
3496
977e30bc
NP
34972010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
3498
3499 * c-common.h (finish_file): Removed.
3500 (objc_write_global_declarations): New.
3501 * c-opts.c (c_common_parse_file): Do not call finish_file.
3502 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 3503
da57d1b9
NP
35042010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
3505
3506 Implemented parsing @synthesize and @dynamic for
3507 Objective-C/Objective-C++.
3508 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
3509 (objc_add_synthesize_declaration): New.
3510 (objc_add_dynamic_declaration): New.
3511 * c-common.c (c_common_reswords): Add synthesize and dynamic.
3512 * stub-objc.c (objc_add_synthesize_declaration): New.
3513 (objc_add_dynamic_declaration): New.
9faeb493 3514
0069111f
MM
35152010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
3516
3517 PR target/46041
3518 * c-cppbuiltin.c (mode_has_fma): Move function here from
3519 builtins.c. Don't use the fma optab, instead just use the
3520 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
3521 using -save-temps.
3522
e426b47b
NP
35232010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
3524
3525 Merge from 'apple/trunk' branch on FSF servers.
0069111f 3526
e426b47b
NP
3527 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
3528
9faeb493 3529 Radar 4330422
e426b47b
NP
3530 * c-common.h (objc_non_volatilized_type): New declaration
3531 * stub-objc.c (objc_non_volatilized_type): New stub.
3532
90fbfdc3
NP
35332010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
3534
e426b47b 3535 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
3536
3537 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
3538
9faeb493 3539 Radar 4133425
90fbfdc3 3540 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 3541 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 3542
c37d8c30
IS
35432010-10-17 Iain Sandoe <iains@gcc.gnu.org>
3544
3545 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
3546 * c-common.h (enum rid): Add RID_AT_PACKAGE.
3547 (objc_ivar_visibility_kind): New enum.
3548 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 3549 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
3550 visibility enum.
3551
1b1562a5
MM
35522010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3553
3554 * c-cppbuiltin.c (builtin_define_float_constants): Emit
3555 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
3556 has the appropriate fma builtins.
3557 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
3558
668ea4b1
IS
35592010-10-14 Iain Sandoe <iains@gcc.gnu.org>
3560
1b1562a5 3561 merge from FSF apple 'trunk' branch.
668ea4b1 3562 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 3563
668ea4b1
IS
3564 Radars 4436866, 4505126, 4506903, 4517826
3565 * c-common.c (c_common_resword): Define @property and its attributes.
3566 * c-common.h: Define property attribute enum entries.
3567 (OBJC_IS_PATTR_KEYWORD): New.
3568 (objc_property_attribute_kind): New enum.
3569 Declare objc_set_property_attr (), objc_add_property_variable (),
3570 objc_build_getter_call () and objc_build_setter_call ().
3571 * stub-objc.c (objc_set_property_attr): New stub.
3572 (objc_add_property_variable): Likewise.
3573 (objc_build_getter_call): Likewise.
3574 (objc_build_setter_call) Likewise.
1b1562a5 3575
a1178b30
IS
35762010-10-13 Iain Sandoe <iains@gcc.gnu.org>
3577
1b1562a5 3578 merge from FSF apple 'trunk' branch.
a1178b30
IS
3579 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
3580
3581 Radar 3803157 (method attributes)
3582 * c-common.c (handle_deprecated_attribute): Recognize
3583 objc methods as valid declarations.
3584 * c-common.h: Declare objc_method_decl ().
1b1562a5 3585 * stub-objc.c (objc_method_decl): New stub.
a1178b30 3586
a75bfaa6
JM
35872010-10-08 Joseph Myers <joseph@codesourcery.com>
3588
3589 * c-common.c (parse_optimize_options): Call
3590 decode_cmdline_options_to_array_default_mask before
3591 decode_options. Update arguments to decode_options.
3592 * c-common.h (c_common_init_options_struct): Declare.
3593 * c-opts.c (c_common_init_options_struct): New. Split out from
3594 c_common_init_options.
3595
f05b9d93
NP
35962010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
3597
3598 Implemented fast enumeration for Objective-C.
3599 * c-common.h (objc_finish_foreach_loop): New.
3600 * stub-objc.c (objc_finish_foreach_loop): New.
3601
1ebe4b4f
JM
36022010-10-05 Joseph Myers <joseph@codesourcery.com>
3603
3604 * c-common.h (struct diagnostic_context): Don't declare here.
3605 (c_common_initialize_diagnostics): Declare using
3606 diagnostic_context typedef.
3607 * c-opts.c (c_common_handle_option): Pass global_dc to
3608 handle_generated_option.
3609
d4d24ba4
JM
36102010-10-04 Joseph Myers <joseph@codesourcery.com>
3611
3612 * c-opts.c (c_common_handle_option): Pass &global_options_set to
3613 handle_generated_option.
3614
478a1c5b
ILT
36152010-10-03 Ian Lance Taylor <iant@google.com>
3616
3617 * c.opt (-fplan9-extensions): New option.
3618
82a1c2fe
FXC
36192010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3620
3621 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
3622 Remove.
3623 (c_cpp_builtins): Call functions from cppbuiltin.c instead
3624 of duplicating code.
3625
92902b1b
IS
36262010-09-30 Iain Sandoe <iains@gcc.gnu.org>
3627
3628 * c-common.c: Add two new entries for @optional
3629 and @required keywords.
3630
3631 merge from FSF 'apple/trunk' branch.
3632 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
3633
3634 Radar 4386773
3635 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
3636 objective-c keywords.
3637 (objc_set_method_opt): New declaration.
3638 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 3639
46625112
JM
36402010-09-30 Joseph Myers <joseph@codesourcery.com>
3641
3642 * c-common.c (handle_optimize_attribute): Pass &global_options to
3643 cl_optimization_save and cl_optimization_restore.
3644 * c-opts.c (c_common_handle_option): Pass &global_options to
3645 handle_generated_option.
3646 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
3647 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
3648 &global_options to cl_optimization_restore.
3649
49b91f05
NP
36502010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
3651
3652 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
3653 Objective-C/Objective-C++ keywords.
3654
13ed556f 36552010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 3656
9faeb493
UB
3657 Merge from 'apple/trunk' branch on FSF servers.
3658
a6341d57
NP
3659 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
3660
3661 Radar 4281748
3662 * c-common.h (objc_check_global_decl): New declaration.
3663 * stub-objc.c (objc_check_global_decl): New stub.
3664
f0036cca
JM
36652010-09-29 Joseph Myers <joseph@codesourcery.com>
3666
3667 * c.opt: Don't use VarExists.
3668
e3339d0f
JM
36692010-09-29 Joseph Myers <joseph@codesourcery.com>
3670
3671 * c-common.c (c_cpp_error): Update names of diagnostic_context
3672 members.
3673 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
3674 cl_optimization members.
3675 * c-opts.c (warning_as_error_callback, c_common_handle_option,
3676 sanitize_cpp_opts, finish_options): Update names of cpp_options
3677 members.
3678
1973201f
NP
36792010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
3680
3681 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
3682 (objc_is_reserved_word): Removed.
3683 * c-common.c: Updated comments.
3684 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
3685 objc_is_reserved_word.
3686 * stub-objc.c (objc_is_reserved_word): Removed.
3687
f7e71da5
IS
36882010-09-28 Iain Sandoe <iains@gcc.gnu.org>
3689
9faeb493 3690 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
3691 include attributes.
3692 (objc_start_method_definition): Likewise.
3693 (objc_build_keyword_decl): Likewise.
3694 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
3695 (objc_start_method_definition): Likewise.
3696 (objc_build_keyword_decl): Likewise.
3697
c165dca7
IS
36982010-09-28 Iain Sandoe <iains@gcc.gnu.org>
3699
3700 * c-common.h (objc_start_class_interface): Adjust prototype.
3701 (objc_start_category_interface): Likewise.
3702 (objc_start_protocol): Likewise.
3703 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
3704 (objc_start_class_interface): Likewise.
3705 (objc_start_category_interface): Likewise.
3706
7458026b
ILT
37072010-09-27 Ian Lance Taylor <iant@google.com>
3708
3709 * c-common.c (c_common_attribute_table): Add no_split_stack.
3710 (handle_no_split_stack_attribute): New static function.
3711
b581b85b
NP
37122010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
3713
9faeb493 3714 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
3715
3716 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
3717
9faeb493 3718 Radar 4229905
b581b85b
NP
3719 * c-common.h (objc_have_common_type): New declaration.
3720 * stub-objc.c (objc_have_common_type): New stub.
3721
3722 2005-06-22 Ziemowit Laski <zlaski@apple.com>
3723
3724 Radar 4154928
3725 * c-common.h (objc_common_type): New prototype.
9faeb493 3726 * stub-objc.c (objc_common_type): New stub.
b581b85b 3727
46a4da10
JH
37282010-09-24 Jan Hubicka <jh@suse.cz>
3729
3730 * c-common.c (handle_leaf_attribute): New function.
3731 (struct attribute_spec c_common_att): Add leaf.
3732
e200444e
JM
37332010-09-22 Joseph Myers <joseph@codesourcery.com>
3734
3735 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
3736 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
3737 -dump, -dump=, -imacros, -imacros=, -include, -include=,
3738 -include-barrier, -include-directory, -include-directory=,
3739 -include-directory-after, -include-directory-after=,
3740 -include-prefix, -include-prefix=, -include-with-prefix,
3741 -include-with-prefix=, -include-with-prefix-after,
3742 -include-with-prefix-after=, -include-with-prefix-before,
3743 -include-with-prefix-before=, -no-integrated-cpp,
3744 -no-line-commands, -no-standard-includes, -no-warnings, -output,
3745 -output=, -pedantic, -pedantic-errors, -preprocess,
3746 -print-missing-file-dependencies, -trace-includes, -traditional,
3747 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
3748 -user-dependencies, -verbose, -write-dependencies,
3749 -write-user-dependencies, no-integrated-cpp, traditional): New.
3750
29a80ea6
NP
37512010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
3752
3753 PR objc/23710
ac1fc2fc
NP
3754 * c-common.h (objc_start_method_definition): Return bool instead
3755 of void.
3756 * stub-objc.c (objc_start_method_definition): Return bool instead
3757 of void.
3758
37592010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
3760
3761 PR objc/25965
3762 * c-common.h (objc_get_interface_ivars): New declaration.
3763 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 3764
de621752
ILT
37652010-09-15 Ian Lance Taylor <iant@google.com>
3766
3767 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 3768 messages. Remove period at end of warning message.
de621752 3769
ba885ec5
NS
37702010-09-09 Nathan Sidwell <nathan@codesourcery.com>
3771
3772 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
3773 (handle_alias_attribute): ... here.
3774 (handle_ifunc_attribute): New.
3775
c5ee1358
MM
37762010-09-06 Mark Mitchell <mark@codesourcery.com>
3777
3778 * c-common.h (do_warn_double_promotion): Declare.
3779 * c-common.c (do_warn_double_promotion): Define.
3780
0a0b3574
MM
37812010-09-05 Mark Mitchell <mark@codesourcery.com>
3782
3783 * c.opt (Wdouble-promotion): New.
3784
d1779886
JM
37852010-09-02 Joseph Myers <joseph@codesourcery.com>
3786
3787 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
3788 fvtable-thunks, fxref): Mark no longer supported in help text.
3789
2d2bd949
JM
37902010-09-02 Joseph Myers <joseph@codesourcery.com>
3791
3792 * c.opt (Wimport, fall-virtual, falt-external-templates,
3793 fdefault-inline, fenum-int-equiv, fexternal-templates,
3794 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
3795 fname-mangling-version-, fnew-abi, fnonnull-objects,
3796 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
3797 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
3798 applicable.
3799 (fhandle-exceptions): Mark with Alias and Warn.
3800 * c-opts.c (c_common_handle_option): Don't handle options marked
3801 as ignored.
3802
5de8299c
JM
38032010-09-02 Joseph Myers <joseph@codesourcery.com>
3804
3805 * c.opt (Wcomments, Werror-implicit-function-declaration,
3806 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
3807 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
3808 aliases.
3809 * c-common.c (option_codes): Use OPT_Wcomment instead of
3810 OPT_Wcomments.
3811 * c-opts.c (warning_as_error_callback, c_common_handle_option):
3812 Don't handle options marked as aliases.
3813
0ceb0201
RG
38142010-08-25 Richard Guenther <rguenther@suse.de>
3815
3816 * c-common.c (c_common_get_alias_set): Remove special
3817 handling for pointers.
3818
ac47786e
NF
38192010-08-20 Nathan Froyd <froydnj@codesourcery.com>
3820
3821 * c-common.c: Use FOR_EACH_VEC_ELT.
3822 * c-gimplify.c: Likewise.
3823 * c-pragma.c: Likewise.
3824
c878765b
JM
38252010-08-16 Joseph Myers <joseph@codesourcery.com>
3826
3827 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
3828 RejectDriver.
3829 (MMDX): Change back to MMD. Mark NoDriverArg instead of
3830 RejectDriver.
3831 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
3832 instead of OPT_MDX and OPT_MMDX.
3833
603349bf
JM
38342010-08-16 Joseph Myers <joseph@codesourcery.com>
3835
3836 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
3837
644fa7ac
JM
38382010-08-12 Joseph Myers <joseph@codesourcery.com>
3839
3840 * c.opt (MD, MMD): Change to MDX and MMDX.
3841 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
3842
481e1176
JM
38432010-08-11 Joseph Myers <joseph@codesourcery.com>
3844
3845 * c-opts.c (c_common_handle_option): Call handle_generated_option
3846 instead of handle_option.
3847
ac8dc9f7
NF
38482010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3849
3850 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
3851 (maybe_apply_renaming_pragma): Delete unneeded declarations.
3852
4f8c876d
NF
38532010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3854
3855 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
3856 (pending_redefine_extname): Change type to a VEC.
3857 (add_to_renaming_pragma_list): Update for new type of
3858 pending_redefine_extname.
ac8dc9f7 3859 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 3860
3b0c690e
AC
38612010-08-04 Arnaud Charlet <charlet@adacore.com>
3862
3863 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
3864 visited.
3865 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
3866 decide whether a type has already been declared/seen.
3867 Do not go to the original type.
3868 (dump_nested_types): New parameter forward.
3869 Generate forward declaration if needed and mark type as visited.
3870 (print_ada_declaration): Call dump_nested_types if not already done.
3871 Mark types as visited.
3872
1890bccc
JM
38732010-08-03 Joseph Myers <joseph@codesourcery.com>
3874
3875 * c.opt (-print-pch-checksum): Remove option.
3876 * c-opts.c (c_common_handle_option): Don't handle
3877 OPT_print_pch_checksum.
3878
5f20c657
JM
38792010-07-27 Joseph Myers <joseph@codesourcery.com>
3880
3881 * c-common.h (c_common_handle_option): Update prototype and return
3882 value type.
3883 * c-opts.c (c_common_handle_option): Update prototype and return
3884 value type. Update calls to handle_option and
3885 enable_warning_as_error.
3886
f551f80c
JJ
38872010-07-27 Jakub Jelinek <jakub@redhat.com>
3888
3889 PR c/45079
3890 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
3891
61ff2bdc
JM
38922010-07-27 Joseph Myers <joseph@codesourcery.com>
3893
3894 * c-common.h (c_common_missing_argument): Remove.
3895 * c-opts.c (c_common_missing_argument): Remove.
3896 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
3897 idirafter, imacros, include, isysroot, isystem, iquote): Add
3898 MissingArgError.
3899 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
3900
7a9bf9a4
JM
39012010-07-27 Joseph Myers <joseph@codesourcery.com>
3902
3903 * c-common.h (c_common_option_lang_mask,
3904 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
3905 New.
3906 (c_common_init_options): Update prototype.
3907 * c-opts.c (c_common_option_lang_mask): New.
3908 (c_common_initialize_diagnostics): Split out of
3909 c_common_init_options.
3910 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
3911 New.
3912 (c_common_init_options): Update prototype. Use decoded options in
3913 search for -lang-asm.
3914
910ad8de
NF
39152010-07-15 Nathan Froyd <froydnj@codesourcery.com>
3916
3917 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
3918 * c-format.c: Likewise.
3919
718f9c0f
MLI
39202010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
3921
3922 * c-common.h: Include diagnostic-core.h. Error if already
3923 included.
3924 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
3925
4d451982
MLI
39262010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3927
3928 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
3929 Do not include expr.h
3930 (vector_mode_valid_p): Move here.
3931
119fe915
SB
39322010-06-21 DJ Delorie <dj@redhat.com>
3933
3934 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
3935 allow these pragmas anywhere.
3936
39372010-06-14 Jakub Jelinek <jakub@redhat.com>
3938
3939 PR bootstrap/44509
3940 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
3941 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
3942 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
3943 ggc_strdup instead of xstrdup.
3944
39452010-06-10 Jakub Jelinek <jakub@redhat.com>
3946
3947 * c-cppbuiltin.c: Include cpp-id-data.h.
3948 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
3949 (lazy_hex_fp_value): New function.
3950 (builtin_define_with_hex_fp_value): Provide definitions lazily.
3951
6662d794
MLI
39522010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3953
3954 * c-gimplify.c: Do not include tree-flow.h
3955
38f8b050
JR
39562010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
3957
3958 PR other/44034
3959 * c-common.c: Rename targetm member:
3960 targetm.enum_va_list -> targetm.enum_va_list_p
3961
9589f23e
AS
39622010-06-28 Anatoly Sokolov <aesok@post.ru>
3963
3964 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
3965
3b06d379
SB
39662010-06-28 Steven Bosscher <steven@gcc.gnu.org>
3967
3968 * c-cppbuiltin.c: Do not include except.h.
3969
d166d4c3
AK
39702010-06-24 Andi Kleen <ak@linux.intel.com>
3971
9faeb493
UB
3972 * c-common.c (warn_for_omitted_condop): New.
3973 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 3974
70cb8be6
JM
39752010-06-21 Joseph Myers <joseph@codesourcery.com>
3976
3977 * c.opt (lang-objc): Remove.
3978 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
3979
a4c97feb
JR
39802010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
3981
3982 * c-opts.c: Include "tm_p.h".
3983
6e2f1956
JM
39842010-06-20 Joseph Myers <joseph@codesourcery.com>
3985
3986 * c-common.c (parse_optimize_options): Update call to
3987 decode_options.
3988
bc87224e
NF
39892010-06-18 Nathan Froyd <froydnj@codesourcery.com>
3990
3991 * c-common.c (record_types_used_by_current_var_decl): Adjust for
3992 new type of types_used_by_cur_var_decl.
3993
b49cf425
JR
39942010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
3995
3996 PR bootstrap/44512
3997 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
3998 for C++ standard compliance.
3999
59f9c2ed
JM
40002010-06-16 Jason Merrill <jason@redhat.com>
4001
4002 * c.opt: Add -Wnoexcept.
4003
33766b66
RG
40042010-06-16 Richard Guenther <rguenther@suse.de>
4005
4006 PR c/44555
4007 * c-common.c (c_common_truthvalue_conversion): Remove
4008 premature and wrong optimization concering ADDR_EXPRs.
4009
eff7e30c
AC
40102010-06-15 Arnaud Charlet <charlet@adacore.com>
4011
4012 * c-ada-spec.c (dump_sloc): Remove column info.
4013 (is_simple_enum): New function.
4014 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
4015 enum types when relevant.
4016
6312e84d
MLI
40172010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4018
9faeb493 4019 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
4020 location.
4021
1cb42611
JM
40222010-06-10 Joseph Myers <joseph@codesourcery.com>
4023
4024 * c-opts.c (c_common_handle_option): Don't handle
4025 OPT_fshow_column.
4026
a9429e29
LB
40272010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4028
4029 * c-pragma.c (push_alignment): Use typed GC allocation.
4030 (handle_pragma_push_options): Likewise.
4031
4032 * c-common.c (parse_optimize_options): Likewise.
4033
4034 * c-common.h (struct sorted_fields_type): Add variable_size GTY
4035 option.
4036
5498f011
JM
40372010-06-07 Joseph Myers <joseph@codesourcery.com>
4038
4039 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
4040 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4041 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4042 flag_signed_bitfields, warn_strict_null_sentinel,
4043 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
4044 flag_gen_declaration, flag_no_gnu_keywords,
4045 flag_implement_inlines, flag_implicit_templates,
4046 flag_implicit_inline_templates, flag_optional_diags,
4047 flag_elide_constructors, flag_default_inline, flag_rtti,
4048 flag_conserve_space, flag_access_control, flag_check_new,
4049 flag_new_for_scope, flag_weak, flag_working_directory,
4050 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
4051 flag_enforce_eh_specs, flag_threadsafe_statics,
4052 flag_pretty_templates): Remove.
4053 * c-common.h (flag_preprocess_only, flag_nil_receivers,
4054 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
4055 flag_replace_objc_classes, flag_undef, flag_no_builtin,
4056 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4057 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4058 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
4059 flag_no_gnu_keywords, flag_implement_inlines,
4060 flag_implicit_templates, flag_implicit_inline_templates,
4061 flag_optional_diags, flag_elide_constructors, flag_default_inline,
4062 flag_rtti, flag_conserve_space, flag_access_control,
4063 flag_check_new, flag_new_for_scope, flag_weak,
4064 flag_working_directory, flag_use_cxa_atexit,
4065 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
4066 flag_threadsafe_statics, flag_pretty_templates,
4067 warn_strict_null_sentinel): Remove.
4068 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
4069 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
4070 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
4071 fimplicit-inline-templates, fimplicit-templates,
4072 flax-vector-conversions, fms-extensions, fnil-receivers,
4073 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
4074 frtti, fshort-double, fshort-enums, fshort-wchar,
4075 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
4076 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
4077 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
4078 gen-decls, undef): Use Var.
4079 (fdefault-inline, foptional-diags): Document as doing nothing.
4080 * c-opts.c (c_common_handle_option): Remove cases for options now
4081 using Var. Mark ignored options as such.
4082
39dabefd
SB
40832010-06-05 Steven Bosscher <steven@gcc.gnu.org>
4084
9faeb493 4085 * c-common.c: Moved to here from parent directory.
39dabefd
SB
4086 * c-common.def: Likewise.
4087 * c-common.h: Likewise.
4088 * c-cppbuiltin.c: Likewise.
4089 * c-dump.c: Likewise.
4090 * c-format.c: Likewise.
4091 * c-format.h : Likewise.
4092 * c-gimplify.c: Likewise.
4093 * c-lex.c: Likewise.
4094 * c-omp.c: Likewise.
4095 * c.opt: Likewise.
4096 * c-opts.c: Likewise.
4097 * c-pch.c: Likewise.
4098 * c-ppoutput.c: Likewise.
4099 * c-pragma.c: Likewise.
4100 * c-pragma.h: Likewise.
4101 * c-pretty-print.c: Likewise.
4102 * c-pretty-print.h: Likewise.
4103 * c-semantics.c: Likewise.
4104 * stub-objc.c: Likewise.
4105
4106 * c-common.c: Include gt-c-family-c-common.h.
4107 * c-pragma.c: Include gt-c-family-c-pragma.h.
4108\f
23a5b65a 4109Copyright (C) 2010-2014 Free Software Foundation, Inc.
39dabefd
SB
4110
4111Copying and distribution of this file, with or without modification,
4112are permitted in any medium without royalty provided the copyright
4113notice and this notice are preserved.
This page took 1.508514 seconds and 5 git commands to generate.