]> gcc.gnu.org Git - gcc.git/blame - gcc/c-family/ChangeLog
[AArch64 Obvious] Add a mode to operand 1 of sibcall_value_insn
[gcc.git] / gcc / c-family / ChangeLog
CommitLineData
2b71f4a4
MLI
12014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
2
3 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
4 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
5 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
6 and Init.
7 * c-opts.c (c_common_handle_option): Do not handle here.
8 (sanitize_cpp_opts): Likewise.
9 * c-common.c (struct reason_option_codes_t): Handle
10 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
11
d2e4feca
MP
122014-09-03 Marek Polacek <polacek@redhat.com>
13
14 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
15
9a771876
JJ
162014-09-02 Jakub Jelinek <jakub@redhat.com>
17 Balaji V. Iyer <balaji.v.iyer@intel.com>
18 Igor Zamyatin <igor.zamyatin@intel.com>
19
20 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
21 * c-common.c (c_common_reswords): Added _Cilk_for.
22 * c-common.h (enum rid): Added RID_CILK_FOR.
23 (cilk_for_number_of_iterations): Add declaration.
24 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
25 CILK_FOR.
26 * c-pragma.c (init_pragma): Register "grainsize" pragma.
27 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
28
81b5d104
MLI
292014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
30
31 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
32 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
33 Wundef): Use CPP, Var and Init.
34 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
35
b753b37b
MLI
362014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
37
38 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
39 * c-opts.c (c_common_handle_option): Do not handle here.
40
028aee17
JM
412014-08-25 Jason Merrill <jason@redhat.com>
42
43 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
44 -std=c++14 and -std=gnu++14, rather than the reverse.
45 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
46 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
47 * c-common.h (cxx_dialect): Remove cxx1y.
48
e4276ba5
ESR
492014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
50
51 * c-common.h (enum cxx_dialect): Add cxx14.
52 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
53 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
54 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
55
a545cacd
JM
562014-08-22 Jason Merrill <jason@redhat.com>
57
58 * c.opt (std=gnu++17): Fix alias.
59
59ea0364
MP
602014-08-22 Marek Polacek <polacek@redhat.com>
61
62 PR c++/62199
63 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
64 check for vector types. Drop LHS argument.
65 * c-common.h (warn_logical_not_parentheses): Adjust.
66
596e808c
MLI
672014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
68
69 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
70 (Wmultichar): Likewise.
71 (Wdate-time): Use C-family languages instead of Common. Use CPP
72 and Var.
73 * c-opts.c (c_common_handle_option): Do not handle the above
74 options here.
75 (sanitize_cpp_opts): Likewise.
76
18767f65
MLI
772014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
78
79 PR fortran/44054
80 * c-opts.c: Include tree-diagnostics.h.
81 (c_diagnostic_finalizer): New.
82 (c_common_initialize_diagnostics): Use it.
83
b4413594
MLI
842014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
85
86 PR preprocessor/51303
87 * c-common.c (struct reason_option_codes_t option_codes):
88 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
89
43f9a13c
MLI
902014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
91
92 PR c/60975
93 PR c/53063
94 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
95 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
96 (c_common_post_options): Call init_global_opts_from_cpp.
97 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
98
04159acf
MP
992014-08-19 Marek Polacek <polacek@redhat.com>
100
101 PR c++/62153
102 * c-common.c (maybe_warn_bool_compare): New function.
103 * c-common.h (maybe_warn_bool_compare): Declare.
104 * c.opt (Wbool-compare): New option.
105
35aff4fb
MP
1062014-08-19 Marek Polacek <polacek@redhat.com>
107
108 * c.opt (Wc99-c11-compat): New option.
109
177cce46
MP
1102014-08-19 Marek Polacek <polacek@redhat.com>
111
112 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
113 to warn_c90_c99_compat.
114 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
115 to -1.
116
6ae9194f
MLI
1172014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
118 Steven Bosscher <steven@gcc.gnu.org>
119
120 PR c/52952
121 * c-format.c: Add extra_arg_loc and format_string_loc to struct
122 format_check_results.
123 (check_function_format): Use true and add comment for boolean
124 argument.
125 (finish_dollar_format_checking): Use explicit location when warning.
126 (check_format_info): Likewise.
127 (check_format_arg): Set extra_arg_loc and format_string_loc.
128 (check_format_info_main): Use explicit location when warning.
129 (check_format_types): Pass explicit location.
130 (format_type_warning): Likewise.
131
8e54f6d3
MLI
1322014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
133
134 PR fortran/44054
135 * c-format.c: Handle Fortran flags.
136
cd4e76fc
IZ
1372014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
138
139 PR other/61962
140 * array-notation-common.c (find_rank): Added handling for other
141 types of references.
142
f3bede71
MP
1432014-08-10 Marek Polacek <polacek@redhat.com>
144
145 PR c/51849
146 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
147 * c.opt (Wc90-c99-compat): Add option.
148
9f25a338
TS
1492014-08-07 Trevor Saunders <tsaunders@mozilla.com>
150
151 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
152
62e4eb35
MP
1532014-08-03 Marek Polacek <polacek@redhat.com>
154
155 * c-common.c (check_case_value): Add location_t parameter. Use it.
156 (c_add_case_label): Pass loc to check_case_value.
157
b787e7a2
TS
1582014-08-02 Trevor Saunders <tsaunders@mozilla.com>
159
160 * cilk.c: Use hash_map instead of pointer_map.
161
6e2830c3
TS
1622014-08-02 Trevor Saunders <tsaunders@mozilla.com>
163
164 * c-gimplify.c: Use hash_set instead of pointer_set.
165
a7ee52fb
IZ
1662014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
167
168 PR middle-end/61455
169 * array-notation-common.c (extract_array_notation_exprs): Handling
170 of DECL_EXPR added.
171
944fa280
JJ
1722014-08-01 Jakub Jelinek <jakub@redhat.com>
173
174 * c-common.h (min_align_of_type): Removed prototype.
175 * c-common.c (min_align_of_type): Removed.
176 * c-ubsan.h (ubsan_maybe_instrument_reference,
177 ubsan_maybe_instrument_member_call): New prototypes.
178 * c-ubsan.c: Include stor-layout.h and builtins.h.
179 (ubsan_maybe_instrument_reference_or_call,
180 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
181 functions.
182
b4dfdc11
MG
1832014-07-31 Marc Glisse <marc.glisse@inria.fr>
184
185 PR c++/60517
186 * c.opt (-Wreturn-local-addr): Move to common.opt.
187
a41844e5
JM
1882014-07-30 Jason Merrill <jason@redhat.com>
189
190 PR c++/61659
191 PR c++/61687
192 Revert:
193 * c.opt (-fuse-all-virtuals): New.
194
976d5a22
TT
1952014-07-30 Tom Tromey <tromey@redhat.com>
196
197 PR c/59855
198 * c.opt (Wdesignated-init): New option.
199 * c-common.c (c_common_attribute_table): Add "designated_init".
200 (handle_designated_init): New function.
201
cdc94aca
MP
2022014-07-24 Marek Polacek <polacek@redhat.com>
203
204 PR c/57653
205 * c-opts.c (c_finish_options): If -imacros is in effect, return.
206
f41373b6
DS
2072014-07-16 Dodji Seketeli <dodji@redhat.com>
208
209 PR preprocessor/60723 - missing system-ness marks for macro tokens
210 * c-ppoutput.c (struct print::prev_was_system_token): New data
211 member.
212 (init_pp_output): Initialize it.
213 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
214 (do_line_change): Return a flag saying if a line marker was
215 emitted or not.
216 (scan_translation_unit): Detect if the system-ness of the token we
217 are about to emit is different from the one of the previously
218 emitted token. If so, emit a line marker. Avoid emitting useless
219 adjacent line markers. Avoid emitting line markers for tokens
220 originating from the expansion of built-in macros.
221 (scan_translation_unit_directives_only): Adjust.
222
4d661eaa
MP
2232014-07-15 Marek Polacek <polacek@redhat.com>
224
225 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
226 TYPE_MAX_VALUE is NULL.
227
b108f48f
JJ
2282014-07-14 Jakub Jelinek <jakub@redhat.com>
229
230 PR middle-end/61294
231 * c.opt (Wmemset-transposed-args): New warning.
232
c0221884
JM
2332014-07-10 Jason Merrill <jason@redhat.com>
234
235 PR c++/61659
236 PR c++/61687
237 * c.opt (-fuse-all-virtuals): New.
238
63dfbb95
RB
2392014-07-09 Richard Biener <rguenther@suse.de>
240
241 PR c-family/61741
242 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
243 using unsigned arithmetic if overflow does not wrap instead of
244 if overflow is undefined.
245
773ec47f
MP
2462014-07-06 Marek Polacek <polacek@redhat.com>
247
248 PR c/6940
249 * c.opt (Wsizeof-array-argument): New option.
250
00a7ba58
JJ
2512014-07-03 Jakub Jelinek <jakub@redhat.com>
252
253 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
254 comments->count <= 1, as comments->entries might be NULL.
255
52ec0ea3
MP
2562014-07-01 Marek Polacek <polacek@redhat.com>
257
258 * c.opt (Wint-conversion): New option.
259
d5c3d343
MP
2602014-07-01 Marek Polacek <polacek@redhat.com>
261
262 PR c/58286
263 * c.opt (Wincompatible-pointer-types): New option.
264
6e7ceb17
PC
2652014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
266
267 PR c++/51400
268 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
269 Do not discard TYPE_QUALS of type.
270
da73100b
JM
2712014-06-26 Jason Merrill <jason@redhat.com>
272
273 * c-common.h (enum cxx_dialect): Add cxx1z.
274 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
275 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
276
08eedf75
TJ
2772014-06-26 Teresa Johnson <tejohnson@google.com>
278
279 * c-common.h (get_dump_info): Declare.
280 * c-gimplify.c (c_genericize): Use saved dump files.
281 * c-opts.c (c_common_parse_file): Begin and end dumps
282 once around parsing invocation.
283 (get_dump_info): New function.
284
7b56b2f8
MP
2852014-06-23 Marek Polacek <polacek@redhat.com>
286 Andrew MacLeod <amacleod@redhat.com>
287
288 PR c/61553
289 * c-common.c (get_atomic_generic_size): Don't segfault if the
290 type doesn't have a size.
291
0e37a2f3
MP
2922014-06-20 Marek Polacek <polacek@redhat.com>
293
294 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
295 (ubsan_walk_array_refs_r): New function.
296 (c_genericize): Instrument array bounds.
297 * c-ubsan.c: Include "internal-fn.h".
298 (ubsan_instrument_division): Mark instrumented arrays as having
299 side effects. Adjust ubsan_type_descriptor call.
300 (ubsan_instrument_shift): Likewise.
301 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
302 (ubsan_instrument_bounds): New function.
303 (ubsan_array_ref_instrumented_p): New function.
304 (ubsan_maybe_instrument_array_ref): New function.
305 * c-ubsan.h (ubsan_instrument_bounds): Declare.
306 (ubsan_array_ref_instrumented_p): Declare.
307 (ubsan_maybe_instrument_array_ref): Declare.
308
3092014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
310
311 PR lto/61123
312 * c.opt (fshort-enums): Add to LTO.
313 * c.opt (fshort-wchar): Likewise.
314
5c3d09f7
MP
3152014-06-16 Marek Polacek <polacek@redhat.com>
316
317 PR c/60439
318 * c.opt (Wswitch-bool): Add Var.
319
9cf32741
JJ
3202014-06-12 Jakub Jelinek <jakub@redhat.com>
321
322 PR middle-end/61486
323 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
324 #pragma omp target teams or
325 #pragma omp {,target }teams distribute simd.
326
62984918
JM
3272014-06-12 Jason Merrill <jason@redhat.com>
328
329 * c.opt (Wabi=, fabi-compat-version): New.
330 * c-opts.c (c_common_handle_option): Handle -Wabi=.
331 (c_common_post_options): Handle flag_abi_compat_version default.
332 Disallow -fabi-compat-version=1.
333 * c-common.h (abi_version_crosses): New.
334
f961457f
JH
3352014-06-11 Jan Hubicka <hubicka@ucw.cz>
336
337 * c-family/c-common.c (handle_section_attribute): Update handling for
338 section names that are no longer trees.
339
92d28cbb
JJ
3402014-06-10 Jakub Jelinek <jakub@redhat.com>
341
342 PR fortran/60928
343 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
344 (omp_pragmas): ... back here.
345
742938c9
MP
3462014-06-05 Marek Polacek <polacek@redhat.com>
347
348 PR c/49706
349 * c-common.c (warn_logical_not_parentheses): New function.
350 * c-common.h (warn_logical_not_parentheses): Declare.
351 * c.opt (Wlogical-not-parentheses): New option.
352
9d548dfb
MP
3532014-06-04 Marek Polacek <polacek@redhat.com>
354
355 PR c/30020
356 * c-common.c (check_case_bounds): Add location parameter.
357 Use it.
358 (c_add_case_label): Pass loc to check_case_bounds.
359
fedfecef
MP
3602014-06-03 Marek Polacek <polacek@redhat.com>
361
362 PR c/60439
363 * c.opt (Wswitch-bool): New option.
364
f6a7cffc
TS
3652014-05-22 Thomas Schwinge <thomas@codesourcery.com>
366
040d18b6
TS
367 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
368 Remove prototypes.
369 (record_types_used_by_current_var_decl): Move prototype to where
370 it belongs.
371
f6a7cffc
TS
372 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
373 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
374 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
375
632f2871
RS
3762014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
377
378 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
379 * c-common.c (c_common_nodes_and_builtins): Don't initialize
380 void_zero_node.
381 * c-pretty-print.c (pp_c_void_constant): New function.
382 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
383 (c_pretty_printer::expression): Handle VOID_CST.
384 * cilk.c (extract_free_variables): Likewise.
385 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
386 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
387
766090c2
TS
3882014-05-17 Trevor Saunders <tsaunders@mozilla.com>
389
390 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
391 * c-pragma.c (push_alignment): Adjust.
392 (handle_pragma_push_options): Likewise.
393
661a0813
MP
3942014-05-09 Marek Polacek <polacek@redhat.com>
395
396 PR c/50459
397 * c-common.c (check_user_alignment): Return -1 if alignment is error
398 node.
399 (handle_aligned_attribute): Don't call default_conversion on
400 FUNCTION_DECLs.
401 (handle_vector_size_attribute): Likewise.
402 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
403 (handle_sentinel_attribute): Call default_conversion and allow even
404 integral types as an argument.
405
2793eeab
MP
4062014-05-08 Marek Polacek <polacek@redhat.com>
407
408 PR c/61053
409 * c-common.c (min_align_of_type): New function factored out from...
410 (c_sizeof_or_alignof_type): ...here.
411 * c-common.h (min_align_of_type): Declare.
412
f827930a
MP
4132014-05-08 Marek Polacek <polacek@redhat.com>
414
415 PR c/61077
416 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
417 parameter type of main.
418
ca49b74e
DD
4192014-05-07 DJ Delorie <dj@redhat.com>
420
421 * c-cppbuiltin.c (print_bits_of_hex): New.
422 (builtin_define_type_minmax): Print values using hex so as not to
423 require a pre-computed list of string values.
424
1d60af08
KZ
4252014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
426 Mike Stump <mikestump@comcast.net>
427 Richard Sandiford <rdsandiford@googlemail.com>
428
429 * c-ada-spec.c: Include wide-int.h.
430 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
431 (dump_generic_ada_node): Use wide-int interfaces.
432 * c-common.c: Include wide-int-print.h.
433 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
434 (pointer_int_sum): Use wide-int interfaces.
435 (c_common_nodes_and_builtins): Use make_int_cst.
436 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
437 (handle_alloc_size_attribute): Use wide-int interfaces.
438 (get_nonnull_operand): Likewise.
439 * c-format.c (get_constant): Use tree_fits_uhwi_p.
440 * c-lex.c: Include wide-int.h.
441 (narrowest_unsigned_type): Take a widest_int rather than two
442 HOST_WIDE_INTs.
443 (narrowest_signed_type): Likewise.
444 (interpret_integer): Update accordingly. Use wide-int interfaces.
445 (lex_charconst): Use wide-int interfaces.
446 * c-pretty-print.c: Include wide-int.h.
447 (pp_c_integer_constant): Use wide-int interfaces.
448 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
449 INT_CST_LT_UNSIGNED.
450
b15458be
RB
4512014-05-06 Richard Biener <rguenther@suse.de>
452
453 * c-opts.c (c_common_post_options): For -freestanding,
454 -fno-hosted and -fno-builtin disable pattern recognition
455 if not enabled explicitely.
456
6577374e
MP
4572014-05-02 Marek Polacek <polacek@redhat.com>
458
459 * c.opt (Wsizeof-pointer-memaccess): Describe option.
460
d00887e8
MP
4612014-05-01 Marek Polacek <polacek@redhat.com>
462
463 PR c/43245
464 * c.opt (Wdiscarded-qualifiers): Add.
465
f8ed5150
MP
4662014-04-30 Marek Polacek <polacek@redhat.com>
467
468 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
469 INT_MIN / -1 sanitization only for integer types.
470
45484dcf
MP
4712014-04-25 Marek Polacek <polacek@redhat.com>
472
473 PR c/18079
474 * c-common.c (handle_noinline_attribute): Warn if the attribute
475 conflicts with always_inline attribute.
476 (handle_always_inline_attribute): Warn if the attribute conflicts
477 with noinline attribute.
478
38e514c0
MP
4792014-04-25 Marek Polacek <polacek@redhat.com>
480
481 PR c/60156
482 * c-common.c (check_main_parameter_types): Warn about variadic main.
483
44875f92
MS
4842014-04-24 Mike Stump <mikestump@comcast.net>
485
486 * c.opt (Wshadow-ivar): Default to on.
487
dcaaa5a0
DP
4882014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
489
490 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
491
c07d7c02
MP
4922014-04-23 Marek Polacek <polacek@redhat.com>
493
494 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
495
1c33c9b7
JJ
4962014-04-22 Jakub Jelinek <jakub@redhat.com>
497
498 PR sanitizer/60275
499 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
500 if flag_sanitize_undefined_trap_on_error.
501 (ubsan_instrument_division, ubsan_instrument_shift,
502 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
503 if !flag_sanitize_recover.
504
793c625f
MG
5052014-04-22 Marc Glisse <marc.glisse@inria.fr>
506
507 PR libstdc++/43622
508 * c-common.c (registered_builtin_types): Make non-static.
509 * c-common.h (registered_builtin_types): Declare.
510
b0f1bf36
RB
5112014-04-14 Richard Biener <rguenther@suse.de>
512 Marc Glisse <marc.glisse@inria.fr>
513
514 PR c/60819
515 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
516 apply may-alias the scalar pointer type when applicable.
517
3b07fa4a
IZ
5182014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
519
520 PR middle-end/60467
521 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
522 as possible argument for Cilk_spawn.
523
cbbd2b1c
TB
5242014-04-11 Tobias Burnus <burnus@net-b.de>
525
526 PR c/60194
527 * c.opt (Wformat-signedness): Add
528 * c-format.c(check_format_types): Use it.
529
6415bd5d
JM
5302014-04-11 Jason Merrill <jason@redhat.com>
531
532 PR c++/57926
533 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
534 default_conversion for an array argument.
535
6525783a
MP
5362014-04-08 Marek Polacek <polacek@redhat.com>
537
538 PR sanitizer/60745
539 * c-ubsan.c: Include asan.h.
540 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
541
880a467b
NS
5422014-04-03 Nathan Sidwell <nathan@codesourcery.com>
543
544 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
545
7b59ff2d
MP
5462014-04-02 Marek Polacek <polacek@redhat.com>
547
548 * c-common.h (c_expand_expr): Remove declaration.
549
8edbfaa6
JJ
5502014-03-28 Jakub Jelinek <jakub@redhat.com>
551
552 PR c++/60689
553 * c-common.c (add_atomic_size_parameter): When creating new
554 params vector, push the size argument first.
555
07d72e1d
JJ
5562014-03-26 Jakub Jelinek <jakub@redhat.com>
557
558 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
559 ubsan_instrument_vla, ubsan_instrument_return): Adjust
560 ubsan_create_data callers.
561
b35e0fa0
JJ
5622014-03-22 Jakub Jelinek <jakub@redhat.com>
563
564 PR debug/60603
565 * c-opts.c (c_finish_options): Restore cb_file_change call to
566 <built-in>.
567
39a1ebb3
JJ
5682014-03-13 Jakub Jelinek <jakub@redhat.com>
569
570 PR middle-end/36282
571 * c-pragma.c (apply_pragma_weak): Only look at
572 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
573 DECL_ASSEMBLER_NAME_SET_P (decl).
574 (maybe_apply_pending_pragma_weaks): Exit early if
575 vec_safe_is_empty (pending_weaks) rather than only when
576 !pending_weaks.
577 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
578 set assembler name back to NULL afterwards.
579
a07f6ed2
JM
5802014-03-11 Jason Merrill <jason@redhat.com>
581
582 * c.opt: Add -std=gnu++14.
583
75b107f5
IB
5842014-03-11 Ian Bolton <ian.bolton@arm.com>
585
586 * c-opts.c (c_common_post_options): Don't override
587 -ffp-contract=fast if unsafe-math-optimizations is on.
588
f42c637e
PM
5892014-03-08 Paulo Matos <paulo@matos-sorge.com>
590
591 * c.opt: Enable LTO FE for fshort-double.
592
70e24808
JM
5932014-03-07 Jason Merrill <jason@redhat.com>
594
595 * c.opt: Add -std=c++14.
596
3af9c5e9
MP
5972014-03-06 Marek Polacek <polacek@redhat.com>
598
599 PR c/60197
600 * cilk.c (contains_cilk_spawn_stmt): New function.
601 (contains_cilk_spawn_stmt_walker): Likewise.
602 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
603 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
604
b3bdf019
JJ
6052014-03-03 Jakub Jelinek <jakub@redhat.com>
606
607 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
608 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
609 even when flag_preprocess_only.
610
ca7e759d
JM
6112014-02-26 Jason Merrill <jason@redhat.com>
612
613 PR c++/59231
614 PR c++/11586
615 * c-common.c (shorten_compare): Don't check
616 c_inhibit_evaluation_warnings.
617
28e41874
JJ
6182014-02-19 Jakub Jelinek <jakub@redhat.com>
619
cca615af
JJ
620 PR c/37743
621 * c-common.c (c_common_nodes_and_builtins): When initializing
622 c_uint{16,32,64}_type_node, also set corresponding
623 uint{16,32,64}_type_node to the same value.
624
28e41874
JJ
625 PR c++/60267
626 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
627 for PRAGMA_IVDEP if flag_preprocess_only.
628
c2bf53a1
JJ
6292014-02-12 Jakub Jelinek <jakub@redhat.com>
630
631 PR c/60101
632 * c-common.c (merge_tlist): If copy is true, call new_tlist,
633 if false, add ADD itself, rather than vice versa.
634 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
635 copy. For SAVE_EXPR, only call merge_tlist once.
636
8fcbce72
JJ
6372014-02-08 Jakub Jelinek <jakub@redhat.com>
638
639 PR middle-end/60092
640 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
641 and tree_to_uhwi.
642 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
643 functions.
644 (c_common_attribute_table): Add alloc_align and assume_aligned
645 attributes.
646
0a756a3f
MP
6472014-02-06 Marek Polacek <polacek@redhat.com>
648
649 PR c/60087
650 * c-common.c (warn_for_sign_compare): Call warning_at with location
651 instead of warning.
652
7ec4847a
MP
6532014-02-05 Marek Polacek <polacek@redhat.com>
654
655 PR c/53123
656 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
657 statement.
658
66f20604
MP
6592014-02-04 Marek Polacek <polacek@redhat.com>
660
661 PR c/60036
662 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
663 SAVE_EXPR.
664
5d77fb19
MG
6652014-02-03 Marc Glisse <marc.glisse@inria.fr>
666
667 PR c++/53017
668 PR c++/59211
669 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
670 handle_vector_size_attribute, handle_nonnull_attribute): Call
671 default_conversion on the attribute argument.
672 (handle_nonnull_attribute): Increment the argument number.
673
81e5eca8
MP
6742014-01-31 Marek Polacek <polacek@redhat.com>
675
676 PR c/59963
677 * c-common.c (add_atomic_size_parameter): Pass vNULL to
678 build_function_call_vec.
679 (resolve_overloaded_builtin): Likewise.
680 * c-common.h (build_function_call_vec): Adjust declaration.
681
68fca595
MP
6822014-01-30 Marek Polacek <polacek@redhat.com>
683
684 PR c/59940
685 * c-common.h (unsafe_conversion_p): Adjust declaration.
686 (warnings_for_convert_and_check): Likewise.
687 (convert_and_check): Likewise.
688 * c-common.c (unsafe_conversion_p): Add location parameter. Call
689 expansion_point_location_if_in_system_header on it.
690 (warnings_for_convert_and_check): Add location parameter. Call
691 expansion_point_location_if_in_system_header on it. Use it.
692 (convert_and_check): Add location parameter. Use it.
693 (conversion_warning): Likewise.
694 (c_add_case_label): Adjust convert_and_check calls.
695 (scalar_to_vector): Adjust unsafe_conversion_p calls.
696
b72271b9
BI
6972014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
698
699 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
700 flag_cilkplus.
701 * c-pragma.c (init_pragma): Likewise.
702 * c.opt: Likewise.
703
393e8e8b
MP
7042014-01-23 Marek Polacek <polacek@redhat.com>
705
706 PR c/59846
707 * c-common.c (shorten_compare): Add location_t parameter.
708 * c-common.h (shorten_binary_op): Adjust declaration.
709
f04dda30
MP
7102014-01-23 Marek Polacek <polacek@redhat.com>
711
712 PR c/58346
713 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
714 * c-common.h: Declare it.
715
621955cb
EB
7162014-01-20 Eric Botcazou <ebotcazou@adacore.com>
717
718 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
719 * c-ada-spec.c (dump_ads): Likewise.
720 (cpp_check): Likewise.
721 (dump_ada_specs): Likewise.
722
7232014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
724
725 PR c++/49718
726 * c-common.c (handle_no_instrument_function_attribute): Allow
727 no_instrument_function attribute in class member
728 definition/declaration.
729
241f845a
JJ
7302014-01-15 Jakub Jelinek <jakub@redhat.com>
731
732 PR c/58943
733 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
734 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
735 being COMPOUND_EXPR.
736 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
737 operand a SAVE_EXPR and second MODIFY_EXPR.
738
e83b8e2e
JJ
7392014-01-09 Jakub Jelinek <jakub@redhat.com>
740
741 PR target/58115
742 * c-pch.c (c_common_write_pch): Call
743 prepare_target_option_nodes_for_pch.
744
23a5b65a
RS
7452014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
746
747 Update copyright years
748
f9030485
RS
7492014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
750
751 * array-notation-common.c, c-cilkplus.c: Use the standard form for
752 the copyright notice.
753
f2aa696b
EB
7542013-12-28 Eric Botcazou <ebotcazou@adacore.com>
755
756 * c-ada-spec.c (print_constructor): New function.
757 (print_destructor): Retrieve the origin of the destructor.
758 (print_ada_declaration): Revamp handling of constructors/destructors.
759
1f26ac87
JM
7602013-12-23 Stuart Hastings <stuart@apple.com>
761 Bill Maddox <maddox@google.com>
762 Jason Merrill <jason@redhat.com>
763
764 * c.opt: Add -fdeclone-ctor-dtor.
765 * c-opts.c (c_common_post_options): Default to on iff -Os.
766
41958c28
BI
7672013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
768
769 * c-common.c (c_common_attribute_table): Added "cilk simd function"
770 attribute.
771 * c-pragma.h (enum pragma_cilk_clause): Remove.
772 (enum pragma_omp_clause): Added the following fields:
773 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
774 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
775 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
776 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
777 PRAGMA_CILK_CLAUSE_UNIFORM.
778
779
12893402
BI
7802013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
781
782 * cilk.c (cilk_outline): Made this function non-static.
783 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
784 (create_cilk_wrapper): Added a new parameter: a function pointer.
785 (c_install_body_w_frame_cleanup): Remove
786 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
787 * c-common.h (cilk_outline): New prototype.
788 (gimplify_cilk_spawn): Removed two parameters.
789 (cilk_install_body_with_frame_cleanup): New prototype.
790 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
791 CILK_SPAWN_STMT case.
792
085b42ed
BS
7932013-12-11 Bernd Schmidt <bernds@codesourcery.com>
794
2ce064c3
BS
795 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
796
085b42ed
BS
797 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
798 (int_array_type_node): Remove.
799 * c-common.c (c_common_nodes_and_builtins): Don't build it.
800
9e36c9ed
MP
8012013-12-05 Marek Polacek <polacek@redhat.com>
802
803 PR c/52023
804 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
805 [ADJUST_FIELD_ALIGN].
806
296674db
JM
8072013-12-04 Joseph Myers <joseph@codesourcery.com>
808
809 PR c/52023
810 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
811 and check field alignment if set.
812 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
813 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
814
31e071ae
MP
8152013-12-04 Jakub Jelinek <jakub@redhat.com>
816 Marek Polacek <polacek@redhat.com>
817
818 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
819 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
820
d7947e19
L
8212013-11-29 H.J. Lu <hongjiu.lu@intel.com>
822
823 PR c/59309
824 * cilk.c (gimplify_cilk_spawn): Properly handle function without
825 arguments.
826
fad7652e
JJ
8272013-11-29 Jakub Jelinek <jakub@redhat.com>
828
829 PR c/59280
830 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
831 goto invalid. If it is error_mark_node, don't issue further
832 diagnostics.
833
8b5e1202
SO
8342013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
835
836 * c.opt (Wopenmp-simd): New.
837
0a508bb6
JJ
8382013-11-22 Jakub Jelinek <jakub@redhat.com>
839
840 * c-ubsan.h (ubsan_instrument_return): New prototype.
841 * c-ubsan.c (ubsan_instrument_return): New function.
842
2fb9a547
AM
8432013-11-22 Andrew MacLeod <amacleod@redhat.com>
844
845 * c-common.c: Add required include files from gimple.h.
846 * c-gimplify.c: Likewise
847 * cilk.c: Likewise
848
8400e75e
DM
8492013-11-22 David Malcolm <dmalcolm@redhat.com>
850
851 * c-common.c (unsafe_conversion_p): Remove use of
852 EXPR_LOC_OR_HERE macro.
853 (conversion_warning): Likewise.
854 (warnings_for_convert_and_check): Likewise.
855 (warn_for_collisions_1): Likewise.
856 (shorten_compare): Likewise, and remove use of in_system_header
857 macro, using the location from the former.
858 * c-lex.c (dump_one_header): Remove use of input_filename macro.
859 (cb_def_pragma): Remove use of in_system_header macro.
860 (lex_string): Likewise.
861 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
862
eb1ce453
KZ
8632013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
864 Mike Stump <mikestump@comcast.net>
865 Richard Sandiford <rdsandiford@googlemail.com>
866
867 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
868 instead of TREE_INT_CST_LOW, in cases where there is a protecting
869 tree_fits_shwi_p or tree_fits_uhwi_p.
870 (dump_generic_ada_node): Likewise.
871 * c-format.c (check_format_arg): Likewise.
872 * c-pretty-print.c (pp_c_integer_constant): Likewise.
873
6b3b8c27
KZ
8742013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
875
876 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
877
49b0aa18
JC
8782013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
879
880 PR c/53001
881 * c-common.c (unsafe_conversion_p): Make this function
882 return an enumeration with more detail.
883 (conversion_warning): Use the new return type of
884 unsafe_conversion_p to separately warn either about conversions
885 that lower floating point number precision or about the other
886 kinds of conversions.
887 * c-common.h (enum conversion_safety): New enumeration.
888 (unsafe_conversion_p): switching return type to
889 conversion_safety enumeration.
890 * c.opt: Adding new warning -Wfloat-conversion and
891 enabling it with -Wconversion.
892
b826515a
BS
8932013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
894
895 * c-opts.c: Include plugin.h.
896 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
897
b9a55b13
MP
8982013-11-19 Marek Polacek <polacek@redhat.com>
899
900 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
901 call.
902 (ubsan_instrument_shift): Likewise.
903 (ubsan_instrument_vla): Likewise.
904
7d362f6c
RS
9052013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
906
907 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
908 cast to unsigned type.
909
386b1f1f
RS
9102013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
911
912 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
913 tree_low_cst.
914 (complete_array_type): Update comment to refer to tree_to_[su]hwi
915 rather than tree_low_cst.
916
ae7e9ddd
RS
9172013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
918
919 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
920 tree_to_uhwi throughout.
921
9439e9a1
RS
9222013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
923
924 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
925 tree_low_cst (..., 0) with tree_to_shwi throughout.
926
cc269bb6
RS
9272013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
928
929 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
930 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
931
9541ffee
RS
9322013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
933
934 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
935 host_integerp (..., 0) with tree_fits_shwi_p throughout.
936
c02065fc
AH
9372013-11-15 Aldy Hernandez <aldyh@redhat.com>
938
939 * c-cilkplus.c: New file.
940 * c-common.c (readonly_error): Add location argument.
941 * c-common.h (readonly_error): Same.
942 (c_finish_cilk_clauses): Protoize.
943 (c_check_cilk_loop): Same.
944 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
945 Do not fail on error_mark_node.
946 Abstract increment canonicalization to here...
947 (c_omp_for_incr_canonicalize_ptr): New.
948 c-pragma.c (init_pragma): Register "simd" pragma.
949 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
950 (enum pragma_cilk_clause): New.
951
9cc65f15
RS
9522013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
953
954 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
955 wchar_type and host_integerp checks.
956
18f429e2
AM
9572013-11-14 Andrew MacLeod <amacleod@redhat.com>
958
959 * c-common.c: Likewise.
960 * c-gimplify.c: Likewise.
961 * cilk.c: Likewise.
962
d8a2d370
DN
9632013-11-14 Diego Novillo <dnovillo@google.com>
964
965 * c-common.c: Include fold-const.h.
966 Include stor-layout.h.
967 Include calls.h.
968 Include stringpool.h.
969 Include attribs.h.
970 Include varasm.h.
971 Include trans-mem.h.
972 * c-cppbuiltin.c: Include stor-layout.h.
973 Include stringpool.h.
974 * c-format.c: Include stringpool.h.
975 * c-lex.c: Include stringpool.h.
976 Include stor-layout.h.
977 * c-pragma.c: Include stringpool.h.
978 Include attribs.h.
979 Include varasm.h.
980 Include gcc-symtab.h.
981 * c-pretty-print.c: Include stor-layout.h.
982 Include attribs.h.
983 * cilk.c: Include stringpool.h.
984 Include calls.h.
985
38b7bc7f
JM
9862013-11-13 Joseph Myers <joseph@codesourcery.com>
987
988 * c-common.h (enum rid): Add RID_AUTO_TYPE.
989 * c-common.c (c_common_reswords): Add __auto_type.
990 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
991
45b0be94
AM
9922013-11-12 Andrew MacLeod <amacleod@redhat.com>
993
18f429e2
AM
994 * c-common.c: Include gimplify.h.
995 * c-gimplify.c: Likewise.
996 * cilk.c: Likewise.
997 * c-omp.c: Include gimple-expr.h instead of gimple.h.
998 * c-ubsan.c: Don't include gimple.h.
45b0be94 999
582d9b50
JM
10002013-11-12 Joseph Myers <joseph@codesourcery.com>
1001
1002 * c-common.c (c_common_reswords): Add _Thread_local.
1003
6b28e197
JM
10042013-11-09 Joseph Myers <joseph@codesourcery.com>
1005
1006 * c-common.c (atomic_size_supported_p): New function.
1007 (resolve_overloaded_atomic_exchange)
1008 (resolve_overloaded_atomic_compare_exchange)
1009 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
1010 Use it instead of comparing size with a local list of sizes.
1011
267bac10
JM
10122013-11-07 Andrew MacLeod <amacleod@redhat.com>
1013 Joseph Myers <joseph@codesourcery.com>
1014
1015 * c-common.h (enum rid): Add RID_ATOMIC.
1016 * c-common.c (c_common_reswords): Add _Atomic.
1017 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
1018 (keyword_is_type_qualifier): Accept RID_ATOMIC.
1019 * c-format.c (check_format_types): Check for extra _Atomic
1020 qualifiers in format argument.
1021 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
1022 (pp_c_type_qualifier_list): Mention _Atomic in comment.
1023
5157b91e
TB
10242013-11-06 Tobias Burnus <burnus@net-b.de>
1025
1026 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
1027
6dbe0958
JM
10282013-11-06 Joseph Myers <joseph@codesourcery.com>
1029
1030 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
1031 standards modes.
1032 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
1033 to mean lack of IEEE 754 support.
1034
e8ff5196
TB
10352013-11-05 Tobias Burnus <burnus@net-b.de>
1036
1037 * c.opt (-Wdate-time): New option
1038 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
1039
254a0760
JM
10402013-11-05 Joseph Myers <joseph@codesourcery.com>
1041
1042 * c-cppbuiltin.c (cpp_iec_559_value): Test
1043 flag_excess_precision_cmdline not flag_excess_precision.
1044
6d7f7e0a
TB
10452013-11-05 Tobias Burnus <burnus@net-b.de>
1046
1047 * c.opt (fopenmp-simd): New option.
1048 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
1049 (omp_pragmas): ... this new struct.
1050 (c_pp_lookup_pragma): Also walk omp_pragmas.
1051 (init_pragma): Init pragmas for -fopenmp-simd.
1052
55a7f02f
MP
10532013-11-04 Marek Polacek <polacek@redhat.com>
1054
1055 PR c++/58979
1056 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
1057
9193fb05
JM
10582013-11-04 Joseph Myers <joseph@codesourcery.com>
1059
1060 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
1061 New functions.
1062 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
1063
94159ecf
EB
10642013-11-04 Eric Botcazou <ebotcazou@adacore.com>
1065
1066 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
1067 (dump_ada_specs): Adjust prototype of second callback.
1068 * c-ada-spec.c (cpp_check): New global variable.
1069 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
1070 (print_generic_ada_decl): Likewise.
1071 (has_static_fields): Change return type to bool and add guard.
1072 (has_nontrivial_methods): New predicate.
1073 (is_tagged_type): Change return type to bool.
1074 (separate_class_package): Call has_nontrivial_methods.
1075 (pp_ada_tree_identifier): Minor tweaks.
1076 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
1077 (dump_ada_array_domains): Likewise.
1078 (dump_ada_array_type): Likewise.
1079 (dump_template_types): Remove cpp_check parameter and do not pass it to
1080 dump_generic_ada_node.
1081 (dump_ada_template): Likewise.
1082 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
1083 recursively.
1084 (print_ada_methods): Change return type to integer. Remove cpp_check
1085 parameter and do not pass it down.
1086 (dump_nested_types): Remove cpp_check parameter and do not pass it to
1087 dump_generic_ada_node.
1088 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
1089 accessing methods.
1090 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
1091 down. Use has_nontrivial_methods to recognize C++ classes. Use return
1092 value of print_ada_methods.
1093 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
1094 Set cpp_check to it before invoking dump_ada_nodes.
1095 (dump_ada_specs): Likewise.
1096
b906f4ca
MP
10972013-11-03 Marek Polacek <polacek@redhat.com>
1098
1099 * c-ubsan.c: Don't include hash-table.h.
1100 (ubsan_instrument_vla): New function.
1101 * c-ubsan.h: Declare it.
1102
5e20cdc9
DM
11032013-10-31 David Malcolm <dmalcolm@redhat.com>
1104
1105 Automated part of renaming of symtab_node_base to symtab_node.
1106
1107 Patch autogenerated by rename_symtab.py from
1108 https://github.com/davidmalcolm/gcc-refactoring-scripts
1109 revision 58bb219cc090b2f4516a9297d868c245495ee622
1110
1111 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
1112 symtab_node_base to symtab_node.
1113
7057e645
ESR
11142013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
1115
1116 Implement C++14 digit separators.
1117 * c-lex.c (interpret_float): Remove digit separators from scratch string
1118 before building real literal.
1119
193ea7bc
JJ
11202013-10-30 Jakub Jelinek <jakub@redhat.com>
1121
1122 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
1123
939b37da
BI
11242013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
1125
1126 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
1127 fields.
1128 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
1129 enabled.
1130 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
1131 (insert_cilk_frame): New prototype.
1132 (cilk_init_builtins): Likewise.
1133 (gimplify_cilk_spawn): Likewise.
1134 (c_cilk_install_body_w_frame_cleanup): Likewise.
1135 (cilk_detect_spawn_and_unwrap): Likewise.
1136 (cilk_set_spawn_marker): Likewise.
1137 (build_cilk_sync): Likewise.
1138 (build_cilk_spawn): Likewise.
1139 * cilk.c: New file.
1140
67348ccc
DM
11412013-10-29 David Malcolm <dmalcolm@redhat.com>
1142
1143 Patch autogenerated by refactor_symtab.py from
1144 https://github.com/davidmalcolm/gcc-refactoring-scripts
1145 revision 58bb219cc090b2f4516a9297d868c245495ee622
1146
1147 * c-gimplify.c (c_genericize): Update for conversion of symtab types
1148 to a true class hierarchy.
1149 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
1150
d570872d
RS
11512013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
1152
1153 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
1154
98906124
JL
11552013-10-26 Jeff Law <law@redhat.com>
1156
1157 * c-family/c-common.c (c_define_builtins): Remove mudflap support.
1158 * c-family/c.opt: Ignore and warn for mudflap options.
1159
d73749df 11602013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
1161
1162 PR other/33426
1163 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
1164 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
1165
3f04b1bb
JM
11662013-10-23 Jason Merrill <jason@redhat.com>
1167
1168 * c-format.c (gcc_cxxdiag_char_table): Add %X.
1169
acf0174b
JJ
11702013-10-11 Jakub Jelinek <jakub@redhat.com>
1171
acd15a28
JJ
1172 * c-common.h (omp_clause_mask::operator !=): New method.
1173 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
1174 instead of if (mask & something) tests everywhere.
1175
acf0174b
JJ
1176 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
1177 201307 instead of 201107.
1178 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
1179 (c_common_attribute_table): Add "omp declare target" and
1180 "omp declare simd" attributes.
1181 (handle_omp_declare_target_attribute,
1182 handle_omp_declare_simd_attribute): New functions.
1183 * c-omp.c: Include c-pragma.h.
1184 (c_finish_omp_taskgroup): New function.
1185 (c_finish_omp_atomic): Add swapped argument, if true,
1186 build the operation first with rhs, lhs arguments and use NOP_EXPR
1187 build_modify_expr.
1188 (c_finish_omp_for): Add code argument, pass it down to make_code.
1189 (c_omp_split_clauses): New function.
1190 (c_split_parallel_clauses): Removed.
1191 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
1192 c_omp_declare_simd_clauses_to_decls): New functions.
1193 * c-common.h (omp_clause_mask): New type.
1194 (OMP_CLAUSE_MASK_1): Define.
1195 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
1196 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
1197 omp_clause_mask::operator |, omp_clause_mask::operator &,
1198 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
1199 omp_clause_mask::operator ==): New methods.
1200 (enum c_omp_clause_split): New.
1201 (c_finish_omp_taskgroup): New prototype.
1202 (c_finish_omp_atomic): Add swapped argument.
1203 (c_finish_omp_for): Add code argument.
1204 (c_omp_split_clauses): New prototype.
1205 (c_split_parallel_clauses): Removed.
1206 (c_omp_declare_simd_clauses_to_numbers,
1207 c_omp_declare_simd_clauses_to_decls): New prototypes.
1208 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
1209 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
1210 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
1211 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
1212 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
1213 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
1214 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
1215 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
1216 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
1217 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
1218 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
1219 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
1220 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
1221 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
1222 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
1223 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
1224 PRAGMA_OMP_CLAUSE_UNIFORM.
1225
826cacfe
MG
12262013-10-09 Marc Glisse <marc.glisse@inria.fr>
1227
1228 PR tree-optimization/20318
1229 * c-common.c (handle_returns_nonnull_attribute): New function.
1230 (c_common_attribute_table): Add returns_nonnull.
1231
2284b034
MG
12322013-10-03 Marc Glisse <marc.glisse@inria.fr>
1233
1234 PR c++/19476
1235 * c.opt (fcheck-new): Move to common.opt.
1236
b56e9788
MP
12372013-09-25 Marek Polacek <polacek@redhat.com>
1238 Jakub Jelinek <jakub@redhat.com>
1239
1240 PR sanitizer/58413
1241 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
1242 an expression if we can prove it is correct.
1243 (ubsan_instrument_division): Likewise. Remove unnecessary
1244 check.
1245
ce6923c5
MP
12462013-09-18 Marek Polacek <polacek@redhat.com>
1247
1248 PR sanitizer/58411
1249 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
1250 Declare it.
1251 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
1252
fb5610fb
IS
12532013-09-14 Iain Sandoe <iain@codesourcery.com>
1254
1255 PR target/48094
1256 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
1257 fobjc-gc, freplace-objc-classes): Accept for LTO.
1258
88b0e79e
JC
12592013-09-13 Jacek Caban <jacek@codeweavers.com>
1260
1261 * c-target.def: New hook
1262
c9b0866a
PC
12632013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
1264
1265 PR c++/43452
1266 * c.opt (Wdelete-incomplete): Add.
1267
0af94e6f
JR
12682013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
1269
1270 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
1271 (vector_types_compatible_elements_p): New function.
1272 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
1273 declaration.
1274 (vector_types_compatible_elements_p): Declare.
1275
7c26172c
GDR
12762013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1277
1278 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
1279 a virtual member function.
1280 (pp_simple_type_specifier): Remove.
1281 (pp_c_type_specifier): Likewise.
1282 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
1283 Rename from pp_c_type_specifier. Adjust.
1284 (c_pretty_printer::c_pretty_printer): Do not assign to
1285 simple_type_specifier.
1286
20059c8b
GDR
12872013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1288
1289 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
1290 member function.
1291 (c_pretty_printer::storage_class_specifier): Likewise.
1292 (c_pretty_printer::initializer): Likewise.
1293 (pp_declaration): Remove.
1294 (pp_declaration_specifiers): Likewise.
1295 (pp_abstract_declarator): Likewise.
1296 (pp_declarator): Likewise.
1297 (pp_type_id): Likewise.
1298 (pp_statement): Likewise.
1299 (pp_constant): Likewise.
1300 (pp_id_expression): Likewise.
1301 (pp_primary_expression): Likewise.
1302 (pp_unary_expression): Likewise.
1303 (pp_multiplicative_expression): Likewise.
1304 (pp_conditional_expression): Likewise.
1305 (pp_assignment_expression): Likewise.
1306 (pp_expression): Likewise.
1307 (pp_c_type_id): Likewise.
1308 (pp_c_storage_class_specifier): Likewise.
1309 * c-pretty-print.c (pp_c_type_cast): Tidy.
1310 (pp_c_pointer): Likewise.
1311 (pp_c_type_specifier): Likewise.
1312 (pp_c_parameter_type_list): Likewise.
1313 (pp_c_function_definition): Likewise.
1314 (pp_c_init_declarator): Likewise.
1315 (pp_c_initializer_list): Likewise.
1316 (pp_c_constructor_elts): Likewise.
1317 (c_pretty_printer::direct_abstract_declarator): Likewise.
1318 (c_pretty_printer::declaration_specifiers): Likewise.
1319 (c_pretty_printer::primary_expression): Likewise.
1320 (c_pretty_printer::postfix_expression): Likewise.
1321 (c_pretty_printer::type_id): Rename from pp_c_type_id.
1322 (c_pretty_printer::storage_class_specifier): Rename from
1323 pp_c_storage_class_specifier.
1324 (c_pretty_printer::initializer): Rename from pp_c_initializer.
1325 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
1326 storage_class_specifier, initializer, offset_list, flags.
1327
de5a5fa1
MP
13282013-08-30 Marek Polacek <polacek@redhat.com>
1329
1330 * c-ubsan.c: New file.
1331 * c-ubsan.h: New file.
1332
8f0e4d72
GDR
13332013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
1334
1335 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
1336 member function.
1337 (c_pretty_printer::declaration_specifiers): Likewise.
1338 (c_pretty_printer::declarator): Likewise.
1339 (c_pretty_printer::abstract_declarator): Likewise.
1340 (c_pretty_printer::direct_abstract_declarator): Likewise.
1341 (c_pretty_printer::direct_declarator): Likewise.
1342 (c_pretty_printer::function_specifier): Likewise.
1343 (pp_declaration): Adjust.
1344 (pp_declaration_specifiers): Likewise.
1345 (pp_abstract_declarator): Likewise.
1346 (pp_direct_declarator): Likewise.
1347 (pp_function_specifier): Likewise.
1348 (pp_direct_abstract_declarator): Remove as unused.
1349 (pp_c_declaration): Remove.
1350 (pp_c_declaration_specifiers): Likewise.
1351 (pp_c_declarator): Likewise.
1352 (pp_c_direct_declarator): Likewise.
1353 (pp_c_function_specifier): Likewise.
1354 (pp_c_direct_abstract_declarator): Likewise.
1355 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
1356 from pp_c_abstract_declarator. Adjust.
1357 (c_pretty_printer::direct_abstract_declarator): Rename from
1358 pp_c_direct_abstract_declarator. Adjust.
1359 (c_pretty_printer::function_specifier): Rename from
1360 pp_c_function_specifier. Adjust.
1361 (c_pretty_printer::declaration_specifiers): Rename from
1362 pp_c_declaration_specifiers. Adjust.
1363 (c_pretty_printer::direct_declarator): Rename from
1364 pp_c_direct_declarator. Adjust.
1365 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
1366 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
1367 (c_pretty_printer::c_pretty_printer): Do not assign to
1368 declaration, declaration_specifiers, declarator,
1369 direct_declarator, direct_abstract_declarator, function_specifier.
1370
00d34d3a
GDR
13712013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
1372
1373 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
1374 virtual member function.
1375 (c_pretty_printer::multiplicative_expression): Likewise.
1376 (c_pretty_printer::conditional_expression): Likewise.
1377 (c_pretty_printer::assignment_expression): Likewise.
1378 (c_pretty_printer::expression): Likewise.
1379 (pp_unary_expression): Adjust.
1380 (pp_multiplicative_expression): Likewise.
1381 (pp_assignment_expression): Likewise.
1382 (pp_conditional_expression): Likewise.
1383 (pp_expression): Likewise.
1384 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
1385 from pp_c_unary_expression. Adjust.
1386 (c_pretty_printer::multiplicative_expression): Rename from
1387 pp_c_multiplicative_expression. Adjust.
1388 (c_pretty_printer::conditional_expression): Rename from
1389 pp_c_conditional_expression. Adjust.
1390 (c_pretty_printer::assignment_expression): Rename from
1391 pp_c_assignment_expression. Adjust.
1392 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
1393 (c_pretty_printer::c_pretty_printer): Do not assign to
1394 unary_expression, multiplicative_expression,
1395 conditional_expression, expression.
1396
fb22178f
GDR
13972013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1398
1399 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
1400 virtual member function.
1401 (pp_postfix_expression): Adjust.
1402 (pp_c_postfix_expression): Remove.
1403 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
1404 from pp_c_postfix_expression. Adjust.
1405 (c_pretty_printer::c_pretty_printer): Do not assign to
1406 postfix_expression.
1407
7ecc2600
GDR
14082013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1409
1410 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
1411 virtua member function.
1412 (pp_primary_expression): Adjust.
1413 (pp_c_primary_expression): Remove.
1414 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
1415 from pp_c_primary_expression. Adjust.
1416 (pp_c_initializer_list): Use pp_primary_expression.
1417 (c_pretty_printer::c_pretty_printer): Do not assign to
1418 primary_expression.
1419
0691175f
GDR
14202013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1421
1422 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
1423 * c-pretty-print.c (M_): Remove.
1424 (c_pretty_printer::translate_string): Define.
1425 (pp_c_type_specifier): Use it.
1426 (pp_c_primary_expression): Likewise.
1427 (pp_c_expression): Likewise.
1428
66dfe4c4
GDR
14292013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
1430
1431 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
1432 virtual function.
1433 (pp_c_id_expression): Remove.
1434 (pp_id_expression): Adjust.
1435 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
1436 pp_c_id_expression. Adjust.
1437 (pp_c_postfix_expression): Use pp_id_expression.
1438 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
1439
ca43e9d5
GDR
14402013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
1441
1442 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
1443 member function.
1444 (pp_constant): Adjust.
1445 (pp_c_constant): Remove.
1446 * c-pretty-print.c (c_pretty_printer::constant): Rename from
1447 pp_c_constant. Adjust.
1448 (pp_c_constant)
1449 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
1450 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
1451
da6ca2b5
GDR
14522013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1453
1454 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
1455 (c_pretty_printer::c_pretty_printer): Declare.
1456 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
1457 c_pretty_printer_init. Adjust.
1458 (print_c_tree): Do not call c_pretty_printer_init.
1459 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
1460
65a372f4
AC
14612013-08-09 Arnaud Charlet <charlet@adacore.com>
1462
1463 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
1464
fd9b0f32
PC
14652013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
1466
1467 PR c++/58080
1468 * c-common.c (pointer_int_sum): Add bool parameter.
1469 * c-common.h (pointer_int_sum): Adjust declaration.
1470
e0aec1e9
GDR
14712013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
1472
1473 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
1474 c_pretty_printer variable.
1475
b066401f
GDR
14762013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1477
1478 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
1479 (pp_base): Remove.
1480 (pp_c_base): Likewise. Adjust users.
1481 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
1482 (pp_c_whitespace): Do not call pp_base.
1483 (pp_c_left_paren): Likewise.
1484 (pp_c_right_paren): Likewise.
1485 (pp_c_left_brace): Likewise.
1486 (pp_c_right_brace): Likewise.
1487 (pp_c_left_bracket): Likewise.
1488 (pp_c_right_bracket): Likewise.
1489 (pp_c_dot): Likewise.
1490 (pp_c_ampersand): Likewise.
1491 (pp_c_star): Likewise.
1492 (pp_c_arrow): Likewise.
1493 (pp_c_semicolon): Likewise.
1494 (pp_c_complement): Likewise.
1495 (pp_c_exclamation): Likewise.
1496 (pp_c_direct_declarator): Likewise.
1497 (pp_c_ws_string): Likewise.
1498 (pp_c_identifier): Likewise.
1499 (pp_c_statement): Likewise.
1500 (print_c_tree): Likewise.
1501
65e5a578
ESR
15022013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
1503
1504 PR c++/58072
1505 * c-common.c (c_parse_error): Catch user-defined literal tokens and
1506 provide useful error strings.
1507
137a1a27
GDR
15082013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1509
1510 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
1511 printer functions instead of pp_string or operators and punctuators.
1512 (dump_generic_ada_node): Likewise.
1513 * c-pretty-print.c (pp_c_type_specifier): Likewise.
1514 (pp_c_relational_expression): Likewise.
1515 (pp_c_logical_or_expression): Likewise.
1516
07838b13
GDR
15172013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1518
1519 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
1520 functions instead of pp_character.
1521 (pp_ada_tree_identifier): Likewise.
1522 (dump_ada_double_name): Likewise.
1523 (dump_ada_function_declaration): Likewise.
1524 (dump_ada_array_domains): Likewise.
1525 (dump_template_types): Likewise.
1526 (dump_generic_ada_node): Likewise.
1527 (print_ada_declaration): Likewise.
1528 (print_ada_struct_decl): Likewise.
1529 * c-pretty-print.c (pp_c_integer_constant): Likewise.
1530
433cc7b0
TT
15312013-07-23 Tom Tromey <tromey@redhat.com>
1532
1533 * c-common.h (enum rid) <RID_GENERIC>: New constant.
1534 * c-common.c (c_common_reswords): Add _Generic.
1535
688010ba
OB
15362013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
1537
1538 * c-common.c: Fix typos.
1539 * c-common.h: Likewise.
1540
2a99e5e6
LL
15412013-07-13 Lubos Lunak <l.lunak@suse.cz>
1542
1543 PR c++/55203
1544 * c-common.c (c_common_attribute_table): Add warn_unused.
1545 (handle_warn_unused_attribute): New.
1546
c26302d5
JJ
15472013-07-10 Jakub Jelinek <jakub@redhat.com>
1548
1549 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
1550 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
1551
dfeadaa0
PC
15522013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
1553
1554 PR c++/57869
1555 * c.opt: Add Wconditionally-supported.
1556
6a2fa4b2
GS
15572013-07-08 Graham Stott <graham.stott@btinternet.com>
1558
1559 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
1560 unused variables l_length and l_node.
1561
ecdbd01a 15622013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
1563
1564 PR c/57821
1565 * c-common.c (complete_array_type): Delay folding first index
1566 like other indices. When folding, check for index overflow.
1567
bedc293e
MG
15682013-06-27 Marc Glisse <marc.glisse@inria.fr>
1569
1570 PR c++/57509
1571 * c-common.h (c_build_vec_perm_expr): New complain argument.
1572 * c-common.c (c_build_vec_perm_expr): Likewise.
1573 Use save_expr also in C++.
1574
604b2bfc
GDR
15752013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1576
1577 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
1578 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1579 * c-opts.c (c_common_post_options): Likewise.
1580
dfeadaa0 15812013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
1582
1583 * array-notation-common.c (length_mismatch_in_expr): Changed the
1584 parameter type's from a dynamic array to a vec_tree. Also removed
1585 the size parameters.
1586 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
1587 the change above.
1588
2ce86d2e
BI
15892013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
1590
1591 * c-common.h (struct cilkplus_an_parts): New structure.
1592 (struct cilkplus_an_loop_parts): Likewise.
1593 (cilkplus_extract_an_triplets): New prototype.
1594 (fix_sec_implicit_args): Likewise.
1595 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
1596 (fix_sec_implicit_args): Likewise.
604b2bfc 1597
07a6825b
BI
15982013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
1599
1600 * array-notation-common.c (find_inv_trees): Removed an unwanted
1601 typecasting.
1602 * c-common.h (struct inv_list::additional_tcodes): Changed type from
1603 enum rid to enum tree_code.
1604
08346abd
JH
16052013-06-11 Jan Hubicka <jh@suse.cz>
1606
1607 * c-common.c (handle_alias_ifunc_attribute): Do not set
1608 DECL_EXTERNAL for weakref variables.
1609 * c-pragma.c (handle_pragma_weak): Make sure aliases
1610 are not declared as external.
1611
d60f1706
BI
16122013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
1613
1614 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
1615 function from c/c-array-notation.c.
1616 (is_cilkplus_reduce_builtin): Likewise.
1617 (find_rank): Likewise.
1618 (extract_array_notation_exprs): Likewise.
1619 (replace_array_notations): Likewise.
1620 (find_inv_trees): Likewise.
1621 (replace_inv_trees): Likewise.
1622 (contains_array_notation_expr): Likewise.
1623 (find_correct_array_notation_type): Likewise.
1624 * c-common.h (struct inv_list): Moved this struct from the file
1625 c/c-array-notation.c and added a new field called additional tcodes.
1626 (length_mismatch_in_expr_p): New prototype.
1627 (is_cilkplus_reduce_builtin): Likewise.
1628 (find_rank): Likewise.
1629 (extract_array_notation_exprs): Likewise.
1630 (replace_array_notation): Likewise.
1631 (find_inv_trees): Likewise.
1632 (replace_inv_trees): Likewise.
1633 (find_correct_array_notation_type): Likewise.
dfeadaa0 1634
36536d79
BI
16352013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
1636
1637 * c-common.c (c_define_builtins): When cilkplus is enabled, the
1638 function array_notation_init_builtins is called.
1639 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
1640 * c-common.def (ARRAY_NOTATION_REF): New tree.
1641 * c-common.h (build_array_notation_expr): New function declaration.
1642 (build_array_notation_ref): Likewise.
1643 (extract_sec_implicit_index_arg): New extern declaration.
1644 (is_sec_implicit_index_fn): Likewise.
1645 (ARRAY_NOTATION_CHECK): New define.
1646 (ARRAY_NOTATION_ARRAY): Likewise.
1647 (ARRAY_NOTATION_START): Likewise.
1648 (ARRAY_NOTATION_LENGTH): Likewise.
1649 (ARRAY_NOTATION_STRIDE): Likewise.
1650 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
1651 ARRAY_NOTATION_REF.
1652 (pp_c_expression): Likewise.
1653 * c.opt (flag_enable_cilkplus): New flag.
1654 * array-notation-common.c: New file.
1655
f7716d57
JJ
16562013-05-14 Jakub Jelinek <jakub@redhat.com>
1657
1658 PR c++/57274
1659 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
1660
a5e0cd1d
MG
16612013-05-10 Marc Glisse <marc.glisse@inria.fr>
1662
1663 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
1664 vectors.
1665
f6bc1c4a
HS
16662013-05-07 Han Shen <shenhan@google.com>
1667
1668 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
1669
3f12f6e9
SKS
16702013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1671
1672 * c-common.c (check_user_alignment): Emit error for negative values.
1673
61949153
PC
16742013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1675
1676 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
1677
e93e18e9
PC
16782013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1679
1680 * c-cppbuiltin.c (c_cpp_builtins): Do not define
1681 __GXX_EXPERIMENTAL_CXX1Y__.
1682
44d90fe1
PC
16832013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1684 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1685
1686 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
1687 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
1688 to simply use OPT_Wpointer_arith.
1689 (c_sizeof_or_alignof_type): Likewise.
1690
13f39b2e
PC
16912013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1692
1693 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
1694
4b84d650
JJ
16952013-04-12 Jakub Jelinek <jakub@redhat.com>
1696
1697 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
1698 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
1699 specifiers.
1700
fb037b5d
SB
17012013-04-07 Steven Bosscher <steven@gcc.gnu.org>
1702
1703 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
1704
4e856798
PC
17052013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
1706
1707 * c-common.c (pointer_int_sum): Remove dead code.
1708
4b1baac8
RS
17092013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
1710
1711 PR middle-end/56524
1712 * c-common.c (handle_optimize_attribute): Don't call
1713 save_optabs_if_changed.
1714
0b50e654
JJ
17152013-03-05 Jakub Jelinek <jakub@redhat.com>
1716
1717 PR middle-end/56461
1718 * c-pch.c (pch_init): Free target_validity at the end.
1719
48c41403
JJ
17202013-03-04 Jakub Jelinek <jakub@redhat.com>
1721
1722 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
1723
e664c61c
KS
17242013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
1725 Jakub Jelinek <jakub@redhat.com>
1726
1727 PR sanitizer/56454
1728 * c-common.c (handle_no_sanitize_address_attribute): New function.
1729 (c_common_attribute_table): Add no_sanitize_address attribute.
1730 (handle_no_address_safety_analysis_attribute): Add
1731 no_sanitize_address attribute, not no_address_safety_analysis
1732 attribute.
1733
a475fd3d 17342013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
1735
1736 PR target/52555
1737 * c-common.c (handle_optimize_attribute): Call
1738 save_optabs_if_changed.
1739
f6007d99
JJ
17402013-02-18 Jakub Jelinek <jakub@redhat.com>
1741 Steven Bosscher <steven@gcc.gnu.org>
1742
1743 PR pch/54117
1744 * c-opts.c (c_common_post_options): If debug info is enabled
1745 and non-dwarf*, refuse to load PCH files and when writing PCH
1746 file warn.
1747
cf35e2b1
JJ
17482013-02-05 Jakub Jelinek <jakub@redhat.com>
1749
1750 PR middle-end/56167
1751 * c-common.c (handle_error_attribute): Fix condition.
1752
32887460
JJ
17532013-01-30 Jakub Jelinek <jakub@redhat.com>
1754
1755 PR c++/55742
1756 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
1757
5af057d8
JM
17582013-01-18 Jason Merrill <jason@redhat.com>
1759
1760 PR target/54908
1761 * c.opt (-fextern-tls-init): New.
1762 * c-opts.c (c_common_post_options): Handle it.
1763
cc83c823
JJ
17642013-01-09 Jakub Jelinek <jakub@redhat.com>
1765
1766 PR c/48418
1767 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
1768 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
1769 and is either negative or bigger or equal to type precision
1770 of the first operand.
1771
a859517f
MP
17722012-12-03 Marek Polacek <polacek@redhat.com>
1773
1774 PR c/55570
1775 * c-common.c (check_user_alignment): Swap order of tests,
1776 check TREE_CODE first.
1777
2d7aa578
ESR
17782012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
1779
1780 PR c++/52654
1781 * c-common.h (overflow_type): New enum.
1782 (build_userdef_literal): Add overflow_type argument.
1783 (tree_userdef_literal): Add overflow_type.
1784 (USERDEF_LITERAL_OVERFLOW): New access macro.
1785 * c-common.c (build_userdef_literal): Add overflow_type
1786 argument.
1787 * c-lex.c (c_lex_with_flags): Add overflow_type to
1788 build_userdef_literal calls.
1789 (interpret_integer, interpret_float): Add overflow_type argument.
1790
cc3c4f62
RB
17912012-11-28 Richard Biener <rguenther@suse.de>
1792
1793 PR c/35634
1794 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1795 here and use a type with proper overflow behavior for types that would
1796 need to be promoted for the arithmetic.
1797
77bc5132
JJ
17982012-11-23 Jakub Jelinek <jakub@redhat.com>
1799
1800 PR sanitizer/55435
1801 * c-common.c (handle_no_address_safety_analysis_attribute): New
1802 function.
1803 (c_common_attribute_table): Add no_address_safety_analysis.
1804
5dc99c46
SB
18052012-11-16 Simon Baldwin <simonb@google.com>
1806
1807 * c.opt: Add f[no-]canonical-system-headers.
1808 * c-opts.c (c_common_handle_option): Handle
1809 OPT_fcanonical_system_headers.
1810
a4a0016d
ESR
18112012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
1812
1813 PR c++/54413
1814 * c-opts.c (c_common_handle_option): Set new flags.
1815 * c.opt: Describe new flags.
1816
7dbb85a7
JM
18172012-11-09 Jason Merrill <jason@redhat.com>
1818
1819 * c.opt (Wabi-tag): New.
1820
ad7bac31
AK
18212012-11-09 Andi Kleen <ak@linux.intel.com>
1822
1823 PR 55139
1824 * c-common.c (get_atomic_generic_size): Mask with
1825 MEMMODEL_MASK
1826
7332899a
MLI
18272012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1828
1829 PR c/53063
1830 * c.opt (Wformat): Make it Alias Wformat=1.
1831 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
1832 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
1833 LangEnabledBy.
1834 (Wformat=): RejectNegative. Use LangEnabledBy.
1835 (Wnonnull): Use LangEnabledBy.
1836 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
1837 * c-format.c (set_Wformat): Delete.
1838 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
1839 (maybe_read_dollar_number): Likewise.
1840 (avoid_dollar_number): Likewise.
1841 (finish_dollar_format_checking): Likewise.
1842 (check_format_info): Likewise.
1843 (check_format_info_main): Likewise.
1844 (check_format_types): Likewise.
1845 (format_type_warning): Likewise.
1846 * c-common.c (int): Likewise.
1847 (check_function_sentinel): Likewise.
1848 * c-common.h (warn_format,set_Wformat): Do not declare here.
1849
34a180a6
MLI
18502012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1851
1852 PR c/53063
1853 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
1854 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
1855 Use LangEnabledBy.
1856 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
1857 common.opt.
1858 (Wvariadic-macros): Init(1).
1859 * c-opts.c (c_common_handle_option): Do not handle them
1860 explicitly.
1861 (c_common_post_options): Likewise.
1862 (sanitize_cpp_opts): warn_unused_macros is now
1863 cpp_warn_unused_macros.
1864 (push_command_line_include): Likewise.
1865 * c-common.c (warn_unknown_pragmas): Do not define.
1866 * c-common.h (warn_unknown_pragmas): Do not declare.
1867
3f46d6a5
MLI
18682012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1869
1870 PR c/51294
1871 * c-common.c (conversion_warning): Handle conditional expressions.
1872
880661a4
JW
18732012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
1874
1875 PR c++/54930
1876 * c.opt (Wreturn_local_addr): Define new option.
1877
4514a96b
JM
18782012-10-25 Jason Merrill <jason@redhat.com>
1879
f14edc1a
JM
1880 * c.opt (Wvirtual-move-assign): New.
1881
4514a96b
JM
1882 * c.opt (Winherited-variadic-ctor): New.
1883
93100c6b
MG
18842012-10-25 Marc Glisse <marc.glisse@inria.fr>
1885
1886 PR c++/54427
1887 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
1888
1efcb8c6
JM
18892012-10-23 Joseph Myers <joseph@codesourcery.com>
1890
1891 * c-common.h (pch_cpp_save_state): Declare.
1892 * c-target.def (c_preinclude): New hook.
1893 * c-opts.c (done_preinclude): New.
1894 (push_command_line_include): Handle default preincluded header.
1895 (cb_file_change): Call pch_cpp_save_state when calling
1896 push_command_line_include.
1897 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
1898 (pch_cpp_save_state): New.
1899 (pch_init): Call pch_cpp_save_state conditionally, instead of
1900 calling cpp_save_state.
1901
4a0ae68e
MLI
19022012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1903
1904 PR c/53063
1905 PR c/40989
1906 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
1907 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
1908 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
1909 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
1910 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
1911 * c-opts.c (c_common_handle_option): Remove explicit handling from
1912 here.
1913 (c_common_post_options): Likewise.
1914
67e4210b
EB
19152012-10-18 Eric Botcazou <ebotcazou@adacore.com>
1916
1917 * c-ada-spec.c (LOCATION_COL): Delete.
1918 (compare_location): New function.
1919 (compare_node): Use it.
1920 (compare_comment): Likewise.
1921
65d4f2cd
MLI
19222012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1923
1924 PR c/53063
1925 PR c/40989
1926 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
1927 * c-opts.c (c_common_handle_option): Do not set them here. Add
1928 comment.
1929 (c_common_post_options): Likewise.
1930
909881cb
EB
19312012-10-16 Eric Botcazou <ebotcazou@adacore.com>
1932
1933 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
1934 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
1935 Remove POINTER_TYPE handling, add large unsigned handling and use
1936 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
1937
3a785c97
JJ
19382012-10-12 Jakub Jelinek <jakub@redhat.com>
1939
1940 PR c/54381
1941 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
1942 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
1943 locs and array of 3 trees instead of just single loc and single
1944 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
1945 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
1946 For *cmp* builtins that take two sources strings report warnings
1947 about first and second source, not about destination and source.
1948
5e54f81d
MG
19492012-10-12 Marc Glisse <marc.glisse@inria.fr>
1950
1951 PR c++/53055
1952 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
1953
f5b02f1e
EB
19542012-10-11 Eric Botcazou <ebotcazou@adacore.com>
1955
1956 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
1957 declaring something coming from another file.
1958
b46dbc6c
AC
19592012-10-10 Arnaud Charlet <charlet@adacore.com>
1960
f5b02f1e 1961 PR ada/54845
b46dbc6c
AC
1962 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
1963
5d9de0d0
PC
19642012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
1965
1966 PR c++/54194
1967 * c-common.c (warn_about_parentheses): Add location_t parameter;
1968 use EXPR_LOC_OR_LOC.
1969 * c-common.h: Update declaration.
1970
a212e43f
MG
19712012-10-09 Marc Glisse <marc.glisse@inria.fr>
1972
1973 PR c++/54427
1974 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
1975 more operations. Make error messages optional.
1976 * c-common.h (enum stv_conv): Moved from c-typeck.c.
1977 (scalar_to_vector): Declare.
1978
b1db7f91
JM
19792012-10-08 Jason Merrill <jason@redhat.com>
1980
1981 * c-common.c (c_common_reswords): Add thread_local.
1982
e28d52cf
DS
19832012-10-08 Dodji Seketeli <dodji@redhat.com>
1984
1985 PR c++/53528 C++11 attribute support
1986 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
1987 new functions.
1988 * c-common.c (check_cxx_fundamental_alignment_constraints): New
1989 static function.
1990 (handle_aligned_attribute): In choose strictest alignment
1991 among many. Use new check_cxx_fundamental_alignment_constraints.
1992 (handle_transparent_union_attribute): In c++11 attribute syntax,
1993 don't look through typedefs.
1994
3b78de56
AC
19952012-10-04 Arnaud Charlet <charlet@adacore.com>
1996
1997 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
1998 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
1999 out of dumpfile.h.
2000
6040bb5f
DC
20012012-09-25 Dehao Chen <dehao@google.com>
2002
2003 PR middle-end/54645
3b78de56 2004 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
2005 map when read in the pch.
2006
0b07a57e
AC
20072012-09-18 Arnaud Charlet <charlet@adacore.com>
2008
2009 * c-ada-spec.c: Style fixes.
2010
da5182be
TQ
20112012-09-18 Thomas Quinot <quinot@adacore.com>
2012
2013 * c.opt (-fada-spec-parent): Define new command line switch.
2014 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
2015 is specified, generate binding spec as a child of the specified unit.
2016
0ccb505d
PC
20172012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
2018 Manuel López-Ibáñez <manu@gcc.gnu.org>
2019
2020 PR c++/53210
2021 * c.opt ([Winit-self]): Enabled by -Wall in C++.
2022
c583af79
AC
20232012-08-23 Arnaud Charlet <charlet@adacore.com>
2024
2025 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
2026 for pointers, and add missing Convention C pragma.
2027 (print_ada_struct_decl): Add missing aliased keyword.
2028 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
2029
1a4049e7
JJ
20302012-08-17 Jakub Jelinek <jakub@redhat.com>
2031
2032 * c-common.c (sizeof_pointer_memaccess_warning): New function.
2033 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
2034 * c-opts.c (c_common_handle_option): Enable it for -Wall.
2035 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
2036 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
2037
70b5e7dc
RG
20382012-08-10 Richard Guenther <rguenther@suse.de>
2039
2040 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
2041
f8923f7e
SB
20422012-08-07 Steven Bosscher <steven@gcc.gnu.org>
2043
2044 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
2045 instead of separate pp_newline and pp_flush.
2046 (print_c_tree): Likewise.
2047
e45abe1f
RH
20482012-07-26 Richard Henderson <rth@redhat.com>
2049
2050 * c-common.c (handle_hot_attribute): Allow labels.
2051 (handle_cold_attribute): Likewise.
2052
332f1d24
JJ
20532012-07-20 Jakub Jelinek <jakub@redhat.com>
2054
2055 PR c++/28656
2056 * c-common.c (check_function_nonnull): Handle multiple nonnull
2057 attributes properly.
2058
7ee2468b
SB
20592012-07-16 Steven Bosscher <steven@gcc.gnu.org>
2060
2061 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
2062 * c-ada-spec.c: Likewise.
2063 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
2064
ee7b28eb
SB
20652012-07-14 Steven Bosscher <steven@gcc.gnu.org>
2066
2067 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
2068 Remove code conditional on it.
2069
6bdf3519
SB
20702012-07-11 Steven Bosscher <steven@gcc.gnu.org>
2071
2072 * c-gimplify.c: Do not include basic-block.h.
2073 * c-common.c: Do not include linfuncs.h.
2074
532aafad
SB
20752012-07-08 Steven Bosscher <steven@gcc.gnu.org>
2076
2077 * c-common.h: Include tree.h.
2078
8d0d1915
JM
20792012-07-02 Jason Merrill <jason@redhat.com>
2080
2081 PR c++/53524
2082 * c-common.c (get_priority): Call default_conversion.
2083
fbc873ad
UB
20842012-07-01 Uros Bizjak <ubizjak@gmail.com>
2085
2086 * c-pch.c (c_common_write_pch): Remove unused variables.
2087
d4a10d0a
SB
20882012-06-29 Steven Bosscher <steven@gcc.gnu.org>
2089
2090 * cppspec.c: Moved from gcc/ to here.
2091
6f3a2e23
KT
20922012-06-27 Kai Tietz <ktietz@redhat.com>
2093
2094 PR preprocessor/37215
2095 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
2096
8ca92d04
SB
20972012-06-21 Steven Bosscher <steven@gcc.gnu.org>
2098
2099 * c-common.h (c_common_print_pch_checksum): Remove.
2100 * c-pch.c: Do not include output.h.
2101 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
2102 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
2103 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
2104 (struct c_pch_header): Remove.
2105 (get_ident): Update gpch version.
2106 (pch_init): Do not print executable_checksum to asm_out_file.
2107 Do not fail if there is no asm_out_file to read back from. Set
2108 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
2109 (c_common_write_pch): Verify that nothing was written to asm_out_file
2110 since pch_init was called. Do not write a c_pch_header, and do not
2111 copy from asm_out_file to the PCH.
2112 (c_common_read_pch): Do not read a c_pch_header, and do not restore
2113 the content of asm_out_file from the PCH.
2114 (c_common_print_pch_checksum): Remove.
2115 * c-opts.c (c_common_init): Print out executable_checksum directly.
2116
70f42967
SB
21172012-06-19 Steven Bosscher <steven@gcc.gnu.org>
2118
2119 * c-target.def (objc_declare_unresolved_class_reference,
2120 objc_declare_class_definition): Add new hooks.
2121
a8781821
SB
21222012-06-19 Steven Bosscher <steven@gcc.gnu.org>
2123
2124 * c-lex.c: Do not include output.h.
2125 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
2126 Remove uses of ASM_OUTPUT_IDENT.
2127
9e1a8dd1
RR
21282012-06-15 Marc Glisse <marc.glisse@inria.fr>
2129
2130 PR c++/51033
2131 * c-common.h (c_build_vec_perm_expr): Move decl here.
2132 * c-common.c (c_build_vec_perm_expr): Move definition
2133 here.
2134
6f07a821
SB
21352012-06-06 Steven Bosscher <steven@gcc.gnu.org>
2136
2137 * c.opt (fconserve-space): Turn into a no-op.
2138
9faeb493 21392012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
2140
2141 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
2142 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
2143 both the start and end of the function.
2144
a4b7d13c
SB
21452012-06-04 Steven Bosscher <steven@gcc.gnu.org>
2146
2147 * c-common.c: Do not include output.h.
2148 * c-pragma.c: Likewise.
2149
c265f413
SA
21502012-06-04 Steven Bosscher <steven@gcc.gnu.org>
2151
2152 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
2153 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
2154 (lang_decl_name): Handle namespace decls.
2155
be7a421e
SB
21562012-05-31 Steven Bosscher <steven@gcc.gnu.org>
2157
2158 * c-ada-spec.c: Do not include output.h.
2159 * c-semantics.c: Likewise.
2160
65de6659
JM
21612012-05-29 Joseph Myers <joseph@codesourcery.com>
2162
2163 * c-common.c: Fix typo.
2164
ca5f4331
MM
21652012-05-29 Michael Matz <matz@suse.de>
2166
2167 * c-common.h (c_expand_decl): Remove prototype.
2168
4f7f7aca
MLI
21692012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2170
2171 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
2172 * c-opts.c (c_common_handle_option): Remove code handling
2173 warn_missing_braces.
2174
4a792f9b
PC
21752012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
2176
2177 PR c++/25137
2178 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
2179 -Wmissing_braces.
2180
650dc14a
DS
21812012-05-22 Dodji Seketeli <dodji@redhat.com>
2182
2183 PR c++/53322
2184 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
2185
9b095bf1
MLI
21862012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
2187
2188 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
2189 * c-opts.c (c_common_handle_option): Do not handle explicitly
2190 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
2191
0b2c4be5
DS
21922012-05-16 Dodji Seketeli <dodji@redhat.com>
2193
2194 PR preprocessor/7263
2195 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
2196 to cpp_classify_number. For diagnostics, use the precise location
2197 instead of the global input_location.
2198
a1bde5af
PC
21992012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
2200
d02924ef 2201 PR c++/11856
a1bde5af
PC
2202 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
2203
d1ede5f4
BS
22042012-05-14 Bernd Schmidt <bernds@codesourcery.com>
2205
a1bde5af 2206 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 2207
f2bc201f
MLI
22082012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
2209
2210 PR 53063
2211 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
2212 Wreorder): Use LangEnabledBy.
2213 * c-opts.c (c_common_handle_option): Do not enable them
2214 explicitly. Call lang-specific generated functions.
2215 (c_common_post_options): Do not set them here.
2216
95744782
MLI
22172012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
2218
2219 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
2220 Wmissing-field-initializers,Wmissing-parameter-type,
2221 Wold-style-declaration,Woverride-init): Use EnabledBy.
2222 * c-opts.c (c_common_post_options): Do not set here explicitly.
2223
7d5a5747
MLI
22242012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2225
2226 PR 53063
2227 * c-opts.c (c_common_handle_option): Use handle_generated_option
2228 to enable sub-options.
2229
5a3c9cf2
PC
22302012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
2231
2232 PR c++/53158
2233 * c-common.c (warnings_for_convert_and_check): Use warning_at.
2234
3ac8781c
RG
22352012-05-10 Richard Guenther <rguenther@suse.de>
2236
2237 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
2238 adjust commentary about TYPE_IS_SIZETYPE types.
2239
1e537948
MLI
22402012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2241
2242 PR c++/53261
2243 * c-common.c (warn_logical_operator): Check that argument of
2244 integer_zerop is not NULL.
2245
f2c4a785
MLI
22462012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
2247
2248 PR c/43772
2249 * c-common.c (warn_logical_operator): Do not warn if either side
2250 is already true or false.
2251
50f305ca
MLI
22522012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
2253
2254 PR c/51712
2255 * c-common.c (expr_original_type): New.
2256 (shorten_compare): Do not warn for enumeration types.
2257
0c3641b0
MLI
22582012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2259
2260 * c.opt (fpermissive): Add Var(flag_permissive).
2261
7edaa4d2
MG
22622012-04-30 Marc Glisse <marc.glisse@inria.fr>
2263
2264 PR c++/51033
2265 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
2266 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
2267
b9c8da34
DS
22682012-04-30 Dodji Seketeli <dodji@redhat.com>
2269
2270 Add -Wvarargs option
2271 * c.opt (Wvarargs): Define new option.
2272
e6c69da0
MLI
22732012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2274
2275 * c-common.c (check_function_arguments): Replace
2276 Wmissing-format-attribute with Wsuggest-attribute=format.
2277
90137d8f
MLI
22782012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2279
2280 * c.opt (Wsuggest-attribute=format): New. Alias of
2281 Wmissing-format-attribute.
2282 * c-format.c (decode_format_type): Replace
2283 Wmissing-format-attribute with Wsuggest-attribute=format.
2284 (check_function_format): Likewise.
2285
9faeb493 22862012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
2287
2288 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
2289 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
2290 * c.opt: Add Wliteral-suffix.
2291
c1771a20
MLI
22922012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2293
2294 PR c/44774
2295 * c.opt (Wpedantic): New.
2296 (pedantic): Alias Wpedantic.
2297 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
2298 (c_common_post_options): Likewise.
2299 (sanitize_cpp_opts): Likewise.
2300 * c-lex.c (interpret_float): Likewise.
2301 * c-format.c (check_format_types): Likewise.
2302 * c-common.c (pointer_int_sum): Likewise.
2303 (c_sizeof_or_alignof_type): Likewise.
2304 (c_add_case_label): Likewise.
2305 (c_do_switch_warnings): Likewise.
2306 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
2307
04b391c1
JM
23082012-04-15 Jason Merrill <jason@redhat.com>
2309
2310 PR c++/52818
2311 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
2312 (C_STD_NAME): Distinguish between C++98 and C++11.
2313
ac868f29
EB
23142012-04-11 Eric Botcazou <ebotcazou@adacore.com>
2315
2316 PR target/52624
2317 * c-common.h (uint16_type_node): Rename into...
2318 (c_uint16_type_node): ...this.
2319 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
2320 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
2321
fd4116f4
MLI
23222012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
2323
2324 * c-common.c (warn_if_unused_value): Move definition to here.
2325 * c-common.h (warn_if_unused_value): Move declaration to here.
2326
573ac65e
WB
23272012-03-23 William Bader <williambader@hotmail.com>
2328
2329 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
2330
552b8185
JM
23312012-03-20 Jason Merrill <jason@redhat.com>
2332
2333 * c-common.h (enum cxx_dialect): Add cxx1y.
2334 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
2335 test.
2336 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2337 * c-opts.c (c_common_post_options): Likewise.
2338 (set_std_cxx1y): New.
2339 (c_common_handle_option): Call it.
2340 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
2341
04398fa8
PC
23422012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
2343
2344 PR c++/14710
2345 * c.opt ([Wuseless-cast]): Add.
2346
d2a12ae7
RG
23472012-03-16 Richard Guenther <rguenther@suse.de>
2348
2349 * c-pretty-print.c (pp_c_initializer_list): Adjust.
2350
a12bf402
MLI
23512012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2352
2353 PR c++/44783
2354 * c.opt (ftemplate-backtrace-limit) Add.
2355
5c30094f
RO
23562012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2357
2358 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
2359 handling.
2360 * c-pragma.c (handle_pragma_extern_prefix): Remove.
2361 (init_pragma): Don't register extern_prefix.
2362
21fa2faf
RG
23632012-03-12 Richard Guenther <rguenther@suse.de>
2364
2365 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
2366 (builtin_type_for_size): Likewise.
2367
e3793c6f
JJ
23682012-02-13 Jakub Jelinek <jakub@redhat.com>
2369
2370 PR c++/52215
2371 * c-common.c (sync_resolve_params): Don't decide whether to convert
2372 or not based on TYPE_SIZE comparison, convert whenever arg_type
2373 is unsigned INTEGER_TYPE.
2374
93286335
PC
23752012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
2376
2377 PR c/52118
2378 * c.opt ([Wunused-local-typedefs]): Fix description.
2379
7a421706
MS
23802012-01-24 Mike Stump <mikestump@comcast.net>
2381
2382 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
2383 exactly.
2384
ba9b1f11
RG
23852012-01-18 Richard Guenther <rguenther@suse.de>
2386
2387 * c-opts.c (c_common_post_options): Reset LTO flags if
2388 we are about to generate a PCH.
2389
465406be
PC
23902012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
2391
2392 PR c++/51777
2393 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
2394 use pp_unsigned_wide_integer.
2395
aee15221
RG
23962012-01-10 Richard Guenther <rguenther@suse.de>
2397
2398 PR middle-end/51806
2399 * c-opts.c (c_common_handle_option): Move -Werror handling
2400 to language independent code.
2401
5720c0dc
RG
24022012-01-05 Richard Guenther <rguenther@suse.de>
2403
2404 PR middle-end/51764
2405 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
2406 from common.opt.
2407
73ac190a
PC
24082011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
2409
2410 PR c++/51316
2411 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
2412 of array types with an unknown bound.
2413
48b0b196
JM
24142011-12-20 Joseph Myers <joseph@codesourcery.com>
2415
2416 * c-common.c (flag_isoc99): Update comment to refer to C11.
2417 (flag_isoc1x): Change to flag_isoc11.
2418 * c-common.h (flag_isoc99): Update comment to refer to C11.
2419 (flag_isoc1x): Change to flag_isoc11.
2420 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
2421 C11.
2422 * c-opts.c (set_std_c1x): Change to set_std_c11.
2423 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
2424 Call set_std_c11.
2425 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
2426 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
2427 * c.opt (std=c1x): Change to std=c11. Document as non-draft
2428 standard.
2429 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
2430 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
2431 (std=gnu1x): Make alias of std=gnu11.
2432
d58d6eb5
JM
24332011-12-19 Jason Merrill <jason@redhat.com>
2434
2435 PR c++/51228
2436 * c-common.c (handle_transparent_union_attribute): Check the first
2437 field if the type is complete.
2438
b3908fcc
JW
24392011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
2440
2441 PR libstdc++/51365
2442 * c-common.c (RID_IS_FINAL): Add.
2443 * c-common.h (RID_IS_FINAL): Add.
2444
fea3ca91
IS
24452011-11-30 Iain Sandoe <iains@gcc.gnu.org>
2446
2447 * c.opt (fgnu-runtime): Provide full description.
2448 (fnext-runtime): Likewise.
2449 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
2450
62bad7cd
AM
24512011-11-28 Andrew MacLeod <amacleod@redhat.com>
2452
2453 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
2454 predefines in one place. Add LOCK_FREE predefines.
2455 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
2456 new func.
2457
c466c4ff
AM
24582011-11-24 Andrew MacLeod <amacleod@redhat.com>
2459
2460 PR c/51256
9faeb493 2461 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 2462 conditions
9faeb493
UB
2463 (resolve_overloaded_atomic_exchange,
2464 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
2465 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
2466 error_mark_node for error conditions.
9faeb493 2467
a5952633
RG
24682011-11-08 Richard Guenther <rguenther@suse.de>
2469
2470 PR middle-end/51010
2471 c-family/
2472
0a35513e
AH
24732011-11-07 Richard Henderson <rth@redhat.com>
2474 Aldy Hernandez <aldyh@redhat.com>
2475 Torvald Riegel <triegel@redhat.com>
2476
2477 Merged from transactional-memory.
2478
2479 * c-common.c (handle_tm_wrap_attribute,
2480 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
2481 (struct c_common_reswords): Added __transaction* keywords.
2482 (struct c_common_attribute_table): Added transaction* and tm_regparm
2483 attributes.
2484 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
2485 masks.
2486 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
2487 find_tm_attribute): Declare.
2488
6d87092d
JM
24892011-11-07 Jason Merrill <jason@redhat.com>
2490
2491 PR c++/35688
2492 * c-common.c, c-common.h: Revert yesterday's changes.
2493
8e7860a1
JM
24942011-11-06 Jason Merrill <jason@redhat.com>
2495
2496 PR c++/35688
2497 * c-common.c (decl_has_visibility_attr): Split out from...
2498 (c_determine_visibility): ...here.
2499 * c-common.h: Declare it.
2500
d19fa6b5
JM
25012011-11-06 Joseph Myers <joseph@codesourcery.com>
2502
2503 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
2504 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
2505 type.
2506 (check_user_alignment): New. Split out of
2507 handle_aligned_attribute. Disallow integer constants with
2508 noninteger types. Conditionally allow zero.
2509 (handle_aligned_attribute): Use check_user_alignment.
2510 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
2511
86951993
AM
25122011-11-06 Andrew MacLeod <amacleod@redhat.com>
2513 Richard Henderson <rth@redhat.com>
2514
2515 Merged from cxx-mem-model.
2516
2517 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 2518 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
2519 parameters that are the same type size.
2520 (get_atomic_generic_size): New. Find size of generic
2521 atomic function parameters and do typechecking.
2522 (add_atomic_size_parameter): New. Insert size into parameter list.
2523 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
2524 either __atomic_exchange_n or external library call.
9faeb493 2525 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 2526 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 2527 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
2528 __atomic_load_n or an external library call.
2529 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
2530 __atomic_store_n or an external library call.
2531 (resolve_overloaded_builtin): Handle new __atomic builtins.
2532
cf9e9959
EB
25332011-11-04 Eric Botcazou <ebotcazou@adacore.com>
2534
2535 PR c++/50608
2536 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
2537 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
2538 <INDIRECT_REF>: Return the argument.
2539 <ARRAY_REF>: Remove special code for negative offset.
2540 Call fold_build_pointer_plus instead of size_binop.
2541 (fold_offsetof): Remove STOP_REF argument and adjust.
2542 * c-common.h (fold_offsetof_1): Declare.
2543 (fold_offsetof): Remove STOP_REF argument.
2544
25339f10
JM
25452011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
2546
2547 PR c++/50810
2548 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2549 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2550 Wnarrowing for C++0x and C++98.
2551 * c.opt ([Wnarrowing]): Update.
2552
89401152
PC
25532011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
2554
2555 PR c++/44277
2556 * c.opt: Add Wzero-as-null-pointer-constant.
2557
97e3ad20
JM
25582011-10-31 Jason Merrill <jason@redhat.com>
2559
15694fdd
JM
2560 * c.opt (-fdeduce-init-list): Off by default.
2561
97e3ad20
JM
2562 PR c++/50920
2563 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
2564 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
2565 and -Wc++11-compat.
2566 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
2567
fb9120e3
RAV
25682011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
2569
2570 PR c++/30066
2571 * c.opt (fvisibility-inlines-hidden): Description change.
2572
3ce4f9e4
ESR
25732011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
2574
2575 Implement C++11 user-defined literals.
2576 * c-common.c (build_userdef_literal): New.
2577 * c-common.def: New tree code.
2578 * c-common.h (tree_userdef_literal): New tree struct and accessors.
2579 * c-lex.c (interpret_float): Add suffix parm.
2580 (c_lex_with_flags): Build literal tokens.
2581
5f53c243
PC
25822011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2583
2584 PR c++/50841
2585 Revert:
2586 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2587
2588 PR c++/50810
2589 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2590 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2591 Wnarrowing for C++0x and C++98.
2592 * c.opt ([Wnarrowing]): Update.
2593
263734e1
PC
25942011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2595
2596 PR c++/50810
2597 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2598 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2599 Wnarrowing for C++0x and C++98.
2600 * c.opt ([Wnarrowing]): Update.
2601
d2e312d7
PC
26022011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
2603
2604 PR c++/45385
2605 * c-common.c (conversion_warning): Remove code looking for
2606 artificial operands.
2607
d17687f6
DS
26082011-10-18 Dodji Seketeli <dodji@redhat.com>
2609
2610 PR bootstrap/50760
2611 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 2612 !NO_IMPLICIT_EXTERN_C.
d17687f6 2613
fc8396e9
PC
26142011-10-17 Michael Spertus <mike_spertus@symantec.com>
2615
2616 * c-common.c (c_common_reswords): Add __bases,
2617 __direct_bases.
2618 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
2619
26202011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
2621
2622 PR c++/50757
2623 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
2624
847e697a
TT
26252011-10-15 Tom Tromey <tromey@redhat.com>
2626 Dodji Seketeli <dodji@redhat.com>
2627
2628 * c.opt (fdebug-cpp): New option.
2629 * c-opts.c (c_common_handle_option): Handle the option.
2630 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
2631 output stream in parameter. Factorized from ...
2632 (maybe_print_line): ... this. Dump location debug information when
2633 -fdebug-cpp is in effect.
2634 (print_line_1): New static function. Takes an output stream in
2635 parameter. Factorized from ...
2636 (print_line): ... here. Dump location information when -fdebug-cpp
2637 is in effect.
2638 (scan_translation_unit): Dump location information when
2639 -fdebug-cpp is in effect.
2640
92582b75
TT
26412011-10-15 Tom Tromey <tromey@redhat.com>
2642 Dodji Seketeli <dodji@redhat.com>
2643
2644 * c.opt (ftrack-macro-expansion): New option. Handle it with and
2645 without argument.
2646 * c-opts.c (c_common_handle_option)<case
2647 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
2648 cases. Handle -ftrack-macro-expansion with and without argument.
2649
46427374
TT
26502011-10-15 Tom Tromey <tromey@redhat.com>
2651 Dodji Seketeli <dodji@redhat.com>
2652
2653 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
2654 (print_line, cb_define, do_line_change): Adjust to avoid touching
2655 the internals of struct line_map. Use the public API instead.
2656 * c-pch.c (c_common_read_pch): Likewise.
2657 * c-lex.c (fe_file_change): Likewise.
2658
fc8396e9
PC
26592011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
2660
2661 PR c++/17212
2662 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
2663
26642011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
2665
2666 PR c++/33067
2667 * c-pretty-print.c (pp_c_floating_constant): Output
2668 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
2669
e79983f4
MM
26702011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2671
2672 * c-common.c (def_builtin_1): Delete old interface with two
2673 parallel arrays to hold standard builtin declarations, and replace
2674 it with a function based interface that can support creating
2675 builtins on the fly in the future. Change all uses, and poison
2676 the old names. Make sure 0 is not a legitimate builtin index.
2677 * c-omp.c (c_finish_omp_barrier): Ditto.
2678 (c_finish_omp_taskwait): Ditto.
2679 (c_finish_omp_flush): Ditto.
2680
6637388f
TG
26812011-10-11 Tristan Gingold <gingold@adacore.com>
2682
2683 * c.opt: (fallow-parameterless-variadic-functions): New.
2684
3797cb21
DS
26852011-09-08 Dodji Seketeli <dodji@redhat.com>
2686
2687 PR c++/33255 - Support -Wunused-local-typedefs warning
2688 * c-common.h (struct c_language_function::local_typedefs): New
2689 field.
9faeb493
UB
2690 (record_locally_defined_typedef, maybe_record_typedef_use)
2691 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 2692 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
2693 (maybe_record_typedef_use)
2694 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
2695 * c.opt: Declare new -Wunused-local-typedefs flag.
2696
693ddb1b
EB
26972011-09-06 Eric Botcazou <ebotcazou@adacore.com>
2698
2699 PR middle-end/50266
2700 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
2701 computations.
2702
830c740f
RG
27032011-09-05 Richard Guenther <rguenther@suse.de>
2704
2705 * c-common.c (complete_array_type): Use ssize_int (-1) instead
2706 of integer_minus_one_node for empty array upper bounds.
2707
892a371f
DS
27082011-08-28 Dodji Seketeli <dodji@redhat.com>
2709
2710 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
2711 it's the first time it's being called on this main TU.
2712
0e3fdb48
RB
27132011-08-24 Richard Guenther <rguenther@suse.de>
2714
2715 PR c/49396
2716 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
2717
27182011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
2719
2720 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
2721 defined in cpp_init_builtins and c_cpp_builtins.
2722
d4a83c10
JM
27232011-08-19 Joseph Myers <joseph@codesourcery.com>
2724
2725 * c-common.c (c_common_reswords): Add __builtin_complex.
2726 * c-common.h (RID_BUILTIN_COMPLEX): New.
2727
bbceee64
JM
27282011-08-18 Joseph Myers <joseph@codesourcery.com>
2729
2730 * c-common.c (c_common_reswords): Add _Noreturn.
2731 (keyword_is_function_specifier): Handle RID_NORETURN.
2732 * c-common.h (RID_NORETURN): New.
2733
0e3a99ae
AS
27342011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2735
2736 * c-common.c (unsafe_conversion_p): New function. Check if it is
2737 unsafe to convert an expression to the type.
2738 (conversion_warning): Adjust, use unsafe_conversion_p.
2739 * c-common.h (unsafe_conversion_p): New function declaration.
2740
20906c66
JJ
27412011-08-02 Jakub Jelinek <jakub@redhat.com>
2742
2743 * c-common.h (c_finish_omp_atomic): Adjust prototype.
2744 (c_finish_omp_taskyield): New prototype.
2745 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
2746 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
2747 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
2748 or RHS1 have side-effects, evaluate those too in the right spot,
2749 if it is a decl and LHS is also a decl, error out if they
2750 aren't the same.
2751 (c_finish_omp_taskyield): New function.
2752 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
2753 * c-pragma.c (omp_pragmas): Add taskyield.
2754 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
2755 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
2756 PRAGMA_OMP_CLAUSE_MERGEABLE.
2757
770e5a2e
DS
27582011-07-25 Dodji Seketeli <dodji@redhat.com>
2759
2760 * c-common.h (set_underlying_type): Remove parm name from
2761 declaration.
2762
1baae426
RG
27632011-07-25 Romain Geissler <romain.geissler@gmail.com>
2764
2765 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 2766
fcb21722
JM
27672011-07-22 Jason Merrill <jason@redhat.com>
2768
76f86d00
JM
2769 PR c++/49793
2770 * c.opt (Wnarrowing): New.
2771
3a636414
JM
2772 PR c++/30112
2773 * c-common.h: Declare c_linkage_bindings.
2774 * c-pragma.c (handle_pragma_redefine_extname): Use it.
2775
fcb21722
JM
2776 PR c++/49813
2777 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
2778 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
2779 as flag_isoc99 for 'restrict'.
2780 (pp_c_specifier_qualifier_list): Likewise for _Complex.
2781
02614448
ILT
27822011-07-21 Ian Lance Taylor <iant@google.com>
2783
2784 PR middle-end/49705
2785 * c-common.c (c_disable_warnings): New static function.
2786 (c_enable_warnings): New static function.
2787 (c_fully_fold_internal): Change local unused_p to bool. Call
2788 c_disable_warnings and c_enable_warnings rather than change
2789 c_inhibit_evaluation_warnings.
2790
34429675
JM
27912011-07-20 Jason Merrill <jason@redhat.com>
2792
2793 PR c++/6709 (DR 743)
2794 PR c++/42603 (DR 950)
2795 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
2796 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
2797 (CPP_DECLTYPE): New.
2798 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
2799
5d49b6a7
RG
28002011-07-19 Richard Guenther <rguenther@suse.de>
2801
2802 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
2803 * c-omp.c (c_finish_omp_for): Likewise.
2804
e84a58ff
EB
28052011-07-12 Eric Botcazou <ebotcazou@adacore.com>
2806
2807 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
2808 body on the next line.
2809
329af3c7
JM
28102011-07-08 Jason Merrill <jason@redhat.com>
2811
4063e61b
JM
2812 PR c++/45437
2813 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
2814
329af3c7
JM
2815 PR c++/49673
2816 * c-common.c (c_apply_type_quals_to_decl): Don't check
2817 TYPE_NEEDS_CONSTRUCTING.
2818
1a072294
RG
28192011-07-06 Richard Guenther <rguenther@suse.de>
2820
2821 * c-common.c (c_common_nodes_and_builtins):
2822 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
2823
fce5dddd
RG
28242011-07-05 Richard Guenther <rguenther@suse.de>
2825
2826 * c-common.c (c_common_nodes_and_builtins): Build all common
2827 tree nodes first.
2828
45d439ac
JJ
28292011-06-27 Jakub Jelinek <jakub@redhat.com>
2830
56300785
JJ
2831 * c-common.h (c_tree_chain_next): New static inline function.
2832
45d439ac
JJ
2833 * c-common.c (check_builtin_function_arguments): Handle
2834 BUILT_IN_ASSUME_ALIGNED.
2835
e0a8ecf2
AM
28362011-06-21 Andrew MacLeod <amacleod@redhat.com>
2837
2838 * c-common.c: Add sync_ or SYNC__ to builtin names.
2839 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
2840
28412011-06-20 Pierre Vittet <piervit@pvittet.com>
2842
2843 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
2844 handler.
2845 (gen_pragma_handler): New union.
2846 (internal_pragma_handler): New type.
2847 (c_register_pragma_with_data)
2848 (c_register_pragma_with_expansion_and_data): New functions.
2849
2850 * c-pragma.c (registered_pragmas, c_register_pragma_1)
2851 (c_register_pragma, c_register_pragma_with_expansion)
2852 (c_invoke_pragma_handler): Changed to work with
2853 internal_pragma_handler.
2854 (c_register_pragma_with_data)
2855 (c_register_pragma_with_expansion_and_data): New functions.
2856
677f3fa8
JM
28572011-06-14 Joseph Myers <joseph@codesourcery.com>
2858
2859 * c-common.c: Include common/common-target.h.
2860 (handle_section_attribute): Use
2861 targetm_common.have_named_sections.
2862 * c-cppbuiltin.c: Include common/common-target.h.
2863 (c_cpp_builtins): Use targetm_common.except_unwind_info.
2864
d7fc8c14
RG
28652011-06-10 Richard Guenther <rguenther@suse.de>
2866
2867 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
2868 to print a IDENTIFIER_NODE.
2869
10e48e39
RO
28702011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2871 Joseph Myers <joseph@codesourcery.com>
2872
2873 * c.opt (fbuilding-libgcc): New option.
2874 * c-cppbuiltin.c (c_cpp_builtins): Define
2875 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
2876
6976ae51
JM
28772011-06-07 Jason Merrill <jason@redhat.com>
2878
3ff60975
JM
2879 * c-common.c (max_tinst_depth): Lower default to 900.
2880
6976ae51
JM
2881 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
2882
009db074
RG
28832011-06-07 Richard Guenther <rguenther@suse.de>
2884
2885 * c-common.c (c_common_nodes_and_builtins): Do not set
2886 size_type_node or call set_sizetype.
2887
b4592b92
DS
28882011-06-07 Dodji Seketeli <dodji@redhat.com>
2889
2890 PR debug/49130
2891 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 2892 type when using pointer comparison to compare types.
b4592b92 2893
014ab419
JW
28942011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
2895
2896 * c.opt: Add -Wdelete-non-virtual-dtor.
2897 * c-opts.c (c_common_handle_option): Include it in -Wall.
2898
4f60111f
NF
28992011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
2900
2901 PR bootstrap/49190
2902
2903 Revert:
2904 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2905
2906 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2907 not tree_common.
2908
4cc4f2f4
JJ
29092011-05-27 Jakub Jelinek <jakub@redhat.com>
2910
2911 PR c++/49165
2912 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
2913 C++ don't call c_common_truthvalue_conversion on void type arms.
2914
38e01f9e
NF
29152011-05-27 Nathan Froyd <froydnj@codesourcery.com>
2916
2917 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
2918 (stmt_list_stack): Define.
2919 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
2920 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
2921
92e948a8
NF
29222011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2923
2924 * c-common.c (warning_candidate_p): Check for BLOCKs.
2925
a2fc3e63
NF
29262011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2927
2928 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2929 not tree_common.
2930
0957c029
JJ
29312011-05-25 Jakub Jelinek <jakub@redhat.com>
2932
2933 * c-common.c (def_fn_type): Remove extra va_end.
2934
828fb3ba
JM
29352011-05-23 Jason Merrill <jason@redhat.com>
2936
2937 PR c++/48106
2938 * c-common.c (c_common_get_narrower): New.
2939 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
2940
dde05067
NF
29412011-05-23 Nathan Froyd <froydnj@codesourcery.com>
2942
2943 * c-common.h (check_function_arguments): Tweak prototype of
2944 check_function_arguments.
2945 * c-common.c (check_function_arguments): Likewise. Adjust
2946 calls to check_function_nonnull, check_function_format, and
2947 check_function_sentinel.
2948 (check_function_sentinel): Take a FUNCTION_TYPE rather than
2949 separate attributes and typelist arguments. Use
2950 FOREACH_FUNCTION_ARGS to iterate over argument types.
2951
3c0d13bf
PC
29522011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
2953
2954 * c-common.c (c_common_reswords): Reorder.
2955 * c-common.h (rid): Likewise.
2956
8242dd04
NF
29572011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2958
2959 * c-common.c (def_fn_type): Don't call build_function_type, call
2960 build_function_type_array or build_varargs_function_type_array
2961 instead.
2962 (c_common_nodes_and_builtins): Likewise.
2963
3d528853
NF
29642011-05-05 Nathan Froyd <froydnj@codesourcery.com>
2965
2966 * c-common.c (c_add_case_label): Omit the loc argument to
2967 build_case_label.
2968 * c-common.h (build_case_label): Remove.
2969 * c-semantics.c (build_case_label): Remove.
2970
a04a722b
JM
29712011-05-05 Joseph Myers <joseph@codesourcery.com>
2972
2973 * c-objc.h (objc_start_method_definition): Update prototype.
2974 * stub-objc.c (objc_start_method_definition): Add extra parameter.
2975
e19a18d4
NF
29762011-05-04 Nathan Froyd <froydnj@codesourcery.com>
2977
2978 * c-common.c (check_main_parameter_types): Reindent. Don't use
2979 TYPE_ARG_TYPES directly.
2980 (handle_nonnull_attribute): Likewise.
2981 (sync_resolve_params): Likewise.
2982 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
2983 to check_format_string.
2984 (handle_format_attribute): Likewise.
2985 (check_format_string): Take a function type to examine instead of
2986 a type list. Use a function_arg_iterator to step through argument
2987 types.
2988
c62c040f
RG
29892011-05-04 Richard Guenther <rguenther@suse.de>
2990
2991 * c-common.c (fix_string_type): Use size_int for index type bounds.
2992 (start_fname_decls): Do not pass NULL to build_int_cst.
2993 (c_init_attributes): Likewise.
2994 * c-lex.c (c_lex_with_flags): Likewise.
2995
c12ff9d8
JM
29962011-04-27 Jason Merrill <jason@redhat.com>
2997
2998 * c-common.c (make_tree_vector_from_list): New.
2999 * c-common.h: Declare it.
3000
304dfbe3
RG
30012011-04-26 Richard Guenther <rguenther@suse.de>
3002
3003 PR preprocessor/48248
3004 * c-ppoutput.c (maybe_print_line): Always optimize newlines
3005 for output size with -P.
3006
3c0d13bf
PC
30072011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
3008
3009 * c-common.c (struct c_common_resword): Add __underlying_type.
3010 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
3011
04695783
JM
30122011-04-20 Jim Meyering <meyering@redhat.com>
3013
3014 * c-format.c (init_dollar_format_checking): Remove useless
3015 if-before-free.
3016
0dc33c3c
NP
30172011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
3018
3019 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 3020 (objc_detect_field_duplicates): New.
0dc33c3c 3021 * stub-objc.c: Likewise.
3c0d13bf 3022
c59633d9
NP
30232011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3024
3025 * stub-objc.c (objc_declare_protocols): Renamed to
3026 objc_declare_protocol.
3027 * c-objc.h: Likewise.
3c0d13bf 3028
32dabdaf
NP
30292011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3030
3031 * stub-objc.c (objc_declare_class): Updated argument name.
3032
81f653d6
NF
30332011-04-12 Nathan Froyd <froydnj@codesourcery.com>
3034
3035 * c-common.h (c_common_init_ts): Declare.
3036 * c-common.c (c_common_init_ts): Define.
3037
eb345401
NP
30382011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3039
3040 * c-objc.h (objc_build_message_expr): Updated prototype.
3041 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 3042
a358e188
MJ
30432011-04-12 Martin Jambor <mjambor@suse.cz>
3044
3045 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
3046 of cgraph_node.
3047
e6313a78
RG
30482011-04-11 Richard Guenther <rguenther@suse.de>
3049
3050 * c-common.c (complete_array_type): Build a range type of
3051 proper type.
3052
dcf0c47e
NF
30532011-04-08 Nathan Froyd <froydnj@codesourcery.com>
3054
3055 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
3056 (handle_type_generic_attribute): Likewise.
3057
1ee44b26
JM
30582011-04-07 Jason Merrill <jason@redhat.com>
3059
3060 PR c++/48450
3061 * c-common.c (c_common_truthvalue_conversion): Don't ignore
3062 conversion from C++0x scoped enum.
3063
acce4e77
JM
30642011-04-06 Joseph Myers <joseph@codesourcery.com>
3065
3066 * c-target-def.h: New file.
3067 * c-target.def: New file.
3068 * c-target.h: New file.
3069 * c-common.c (targetcm): Don't define here.
3070 * c-common.h (default_handle_c_option): Declare.
3071 * c-format.c: Include c-target.h instead of target.h.
3072 * c-opts.c: Include c-target.h instead of target.h. Explicitly
3073 include tm.h.
3074 (default_handle_c_option): Move from targhooks.c.
3075
e2eefb55
JJ
30762011-03-29 Jakub Jelinek <jakub@redhat.com>
3077
3078 PR preprocessor/48248
3079 * c-ppoutput.c (print): Add src_file field.
3080 (init_pp_output): Initialize it.
3081 (maybe_print_line): Don't optimize by adding up to 8 newlines
3082 if map->to_file and print.src_file are different file.
3083 (print_line): Update print.src_file.
3084
ba78087b
KT
30852011-03-25 Kai Tietz <ktietz@redhat.com>
3086
3087 * c-ada-spec.c (compare_comment): Use filename_cmp
3088 instead of strcmp for filename.
3089
0edf1bb2
JL
30902011-03-25 Jeff Law <law@redhat.com>
3091
3092 * c-family/c-common.c (def_fn_type): Add missing va_end.
3093
c7dc8804
JM
30942011-03-25 Jason Merrill <jason@redhat.com>
3095
3096 * c.opt: Add -std=c++03.
3097
d1d879b1
EB
30982011-03-22 Eric Botcazou <ebotcazou@adacore.com>
3099
3100 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
3101
62d784f7
KT
31022011-03-17 Kai Tietz
3103
3104 PR target/12171
5050afdf
KT
3105 * c-pretty-print.c (pp_c_specifier_qualifier_list):
3106 Display allowed attributes for function pointer types.
3107 (pp_c_attributes_display): New function to display
3108 attributes having affects_type_identity flag set to true.
3109 * c-pretty-print.h (pp_c_attributes_display): New prototype.
3110
62d784f7
KT
3111 * c-common.c (c_common_attribute_table):
3112 Add new element.
3113 (c_common_format_attribute_table): Likewise.
3114
82d37118
JM
31152011-03-18 Jason Merrill <jason@redhat.com>
3116
49a000c3
JM
3117 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
3118 * c-common.h: Don't declare it here.
3119 * c-common.c: Or define it here.
3120 * c-opts.c (c_common_handle_option): Or set it here.
3121
82d37118
JM
3122 PR c++/35315
3123 * c-common.c (handle_transparent_union_attribute): Don't
3124 make a duplicate type in C++.
3125
17bc631c
JM
31262011-03-15 Jason Merrill <jason@redhat.com>
3127
3128 * c-common.c (max_constexpr_depth): New.
3129 * c-common.h: Declare it.
3130 * c-opts.c (c_common_handle_option): Set it.
3131 * c.opt (fconstexpr-depth): New option.
3132
1b9b91a6
JM
31332011-03-11 Jason Merrill <jason@redhat.com>
3134
f231b5ff
JM
3135 * c-common.c (attribute_takes_identifier_p): Add missing const.
3136
1b9b91a6
JM
3137 PR c++/46803
3138 * c-common.c (attribute_takes_identifier_p): Assume that an
3139 unknown attribute takes an identifier.
3140
a19e4d44
NF
31412011-03-07 Nathan Froyd <froydnj@codesourcery.com>
3142
3143 PR c/47786
3144 * c-common.c (c_type_hash): Call list_length instead of iterating
3145 through DECL_CHAIN. Rename 'i' to 'n_elements'.
3146
982d62f6
JJ
31472011-02-19 Jakub Jelinek <jakub@redhat.com>
3148
3149 PR c/47809
3150 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
3151
0a256240
NP
31522011-02-17 Iain Sandoe <iains@gcc.gnu.org>
3153
3154 * c.opt (fobjc-abi-version=) New.
3155 (fobjc-nilcheck): New.
3156
ba9e6dd5
NF
31572011-02-03 Nathan Froyd <froydnj@codesourcery.com>
3158
3159 PR c++/46890
3160 * c-common.h (keyword_is_decl_specifier): Declare.
3161 * c-common.c (keyword_is_decl_specifier): Define.
3162 (keyword_is_function_specifier): New function.
3163
7273813a
JJ
31642011-01-26 Jakub Jelinek <jakub@redhat.com>
3165
3166 PR c/47473
3167 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
3168 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
3169 REAL_TYPE.
3170
908ef79b
AC
31712011-01-26 Arnaud Charlet <charlet@adacore.com>
3172
3173 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
3174
237e9384
JJ
31752011-01-26 Jakub Jelinek <jakub@redhat.com>
3176
3177 PR pch/47430
3178 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
3179 after init_c_lex if pch_file is set.
3180
47ea1edf
DK
31812011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
3182
d4dba752 3183 PR c++/43601
47ea1edf
DK
3184 * c.opt (-fkeep-inline-dllexport): New switch.
3185
2aa9c6ae
RG
31862011-01-12 Richard Guenther <rguenther@suse.de>
3187
3188 PR middle-end/32511
3189 * c-common.c (handle_weak_attribute): Warn instead of error
3190 on declaring an inline function weak.
3191
7bd11157
TT
31922011-01-05 Tom Tromey <tromey@redhat.com>
3193
3194 * c-common.h (lvalue_error): Update.
3195 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
3196 not error.
3197
0e66e494 31982010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 3199
b4f588c4
NP
3200 PR objc/47075
3201 * c-objc.h (objc_finish_message_expr): Added argument to
3202 prototype.
3203
f4da8dce
NF
32042010-12-22 Nathan Froyd <froydnj@codesourcery.com>
3205
3206 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
3207 Use prototype_p.
3208
46270f14
NP
32092010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
3210
3211 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 3212 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 3213
4816c593
NF
32142010-12-10 Nathan Froyd <froydnj@codesourcery.com>
3215
3216 * c-common.h (readonly_error): Declare.
3217 * c-common.c (readonly_error): Define.
3218
7a6daeb0
NF
32192010-12-09 Nathan Froyd <froydnj@codesourcery.com>
3220
3221 * c-common.h (invalid_indirection_error): Declare.
3222 * c-common.c (invalid_indirection_error): Define.
3223
892f6119
RG
32242010-12-03 Richard Guenther <rguenther@suse.de>
3225
3226 PR c/46745
3227 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
3228 (pp_c_unary_expression): Likewise.
3229 (pp_c_expression): Likewise.
3230
6c39e757
NP
32312010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
3232
3233 * c-common.h (objc_finish_function): New.
3234 (objc_non_volatilized_type): Removed.
3235 (objc_type_quals_match): Removed.
3236 * stub-objc.c (objc_finish_function): New.
3237 (objc_non_volatilized_type): Removed.
3238 (objc_type_quals_match): Removed.
9faeb493 3239
7c475d11
JM
32402010-11-30 Joseph Myers <joseph@codesourcery.com>
3241
3242 * c-common.h (parse_optimize_options): Declare.
3243 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
3244 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
3245
71f3e391
JM
32462010-11-29 Joseph Myers <joseph@codesourcery.com>
3247
3248 * c-opts.c (check_deps_environment_vars): Use getenv instead of
3249 GET_ENVIRONMENT.
3250 * c-pch.c (O_BINARY): Don't define here.
3251 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
3252
d5fabb58
JM
32532010-11-25 Joseph Myers <joseph@codesourcery.com>
3254
3255 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
3256 targetm.except_unwind_info.
3257
299404a1
JM
32582010-11-23 Joseph Myers <joseph@codesourcery.com>
3259
3260 * c-opts.c (c_common_handle_option): Pass location to
3261 set_struct_debug_option.
3262
c98cd5bf
JM
32632010-11-23 Joseph Myers <joseph@codesourcery.com>
3264
3265 * c-common.c (visibility_options): Move from ../opts.c.
3266 * c-common.h (struct visibility_flags, visibility_options):
3267 Declare here.
3268 * c-opts.c (finish_options): Rename to c_finish_options.
3269 (c_common_init): Update call to finish_options.
3270
a9546771
NP
32712010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
3272
3273 PR objc/34033
3274 * c-lex.c (lex_string): Check that each string in an Objective-C
3275 string concat sequence starts with either one or zero '@', and
3276 that there are no spurious '@' signs at the end.
3277
24a57808
JM
32782010-11-20 Joseph Myers <joseph@codesourcery.com>
3279
3280 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
3281 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
3282 HANDLE_PRAGMA_VISIBILITY.
3283 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
3284 HANDLE_PRAGMA_VISIBILITY): Don't define.
3285 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
3286
a9aa2c3a
NF
32872010-11-20 Nathan Froyd <froydnj@codesourcery.com>
3288
3289 PR c++/16189
3290 PR c++/36888
3291 PR c++/45331
3292 * c-common.h (keyword_begins_type_specifier): Declare.
3293 (keyword_is_storage_class_specifier): Declare.
3294 (keyword_is_type_qualifier): Declare.
3295 * c-common.c (keyword_begins_type_specifier): New function.
3296 (keyword_is_storage_class_specifier): New function.
3297 (keyword_is_type_qualifier): Declare.
3298
5386338c
JM
32992010-11-19 Joseph Myers <joseph@codesourcery.com>
3300
3301 PR c/46547
3302 * c-common.c (in_late_binary_op): Define.
3303 (c_common_truthvalue_conversion): Check in_late_binary_op before
3304 calling c_save_expr.
3305 * c-common.h (in_late_binary_op): Declare.
3306
69ccdddb
JM
33072010-11-19 Joseph Myers <joseph@codesourcery.com>
3308
3309 * c-opts.c (c_common_handle_option): Update calls to
3310 set_struct_debug_option.
3311
6b192a09
NP
33122010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
3313
3314 * c-common.h (objc_declare_protocols): Added additional argument.
3315 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 3316
fb52b50a
NF
33172010-11-18 Nathan Froyd <froydnj@codesourcery.com>
3318
3319 PR c/33193
3320 * c-common.h (build_real_imag_expr): Declare.
3321 * c-semantics.c (build_real_imag_expr): Define.
3322
b37421c6
JM
33232010-11-17 Joseph Myers <joseph@codesourcery.com>
3324
3325 * c-opts.c (c_common_parse_file): Take no arguments.
3326 * c-common.h (c_common_parse_file): Update prototype.
3327
07078664
JJ
33282010-11-16 Jakub Jelinek <jakub@redhat.com>
3329
3330 PR c++/46401
3331 * c-common.c (warning_candidate_p): Don't track non-const calls
3332 or STRING_CSTs.
3333
c6a13190
ILT
33342010-11-15 Ian Lance Taylor <iant@google.com>
3335
3336 * c-lex.c (init_c_lex): Set macro debug callbacks if
3337 flag_dump_go_spec is set.
3338
925e8657
NP
33392010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
3340
3341 * c-common.h (objc_build_incr_expr_for_property_ref): New.
3342 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
3343
bb0a9581
NF
33442010-11-15 Nathan Froyd <froydnj@codesourcery.com>
3345
3346 PR preprocessor/45038
3347 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
3348 dialects.
3349
c5fa0890
JM
33502010-11-12 Joseph Myers <joseph@codesourcery.com>
3351
3352 * c-common.h (c_family_lang_mask): Declare.
3353 * c-opts.c (c_family_lang_mask): Make extern.
3354 * c-pragma.c (handle_pragma_diagnostic): Use
3355 control_warning_option.
3356
a4d8c676
JM
33572010-11-12 Joseph Myers <joseph@codesourcery.com>
3358
3359 * c-common.c (parse_optimize_options): Update call to
3360 decode_options.
3361 * c-common.h (c_common_handle_option): Update prototype.
3362 * c-opts.c (c_common_handle_option): Take location_t parameter and
3363 pass it to other functions.
3364
f954bd2c
JM
33652010-11-11 Joseph Myers <joseph@codesourcery.com>
3366
3367 * c-opts.c (warning_as_error_callback): Remove.
3368 (c_common_initialize_diagnostics): Don't call
3369 register_warning_as_error_callback.
3370 (c_common_handle_option): Handle -Werror=normalized= here.
3371
d8a07487
JM
33722010-11-10 Joseph Myers <joseph@codesourcery.com>
3373
3374 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
3375 in diagnostic.
3376 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
3377 letter.
3378 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
3379 Remove trailing '.' from diagnostics.
3380 * c.opt (Wwrite-strings_: Avoid '`' in help text.
3381
d5478783
JM
33822010-11-10 Joseph Myers <joseph@codesourcery.com>
3383
3384 * c-common.c (parse_optimize_options): Pass global_dc to
3385 decode_options.
3386 * c-opts.c (c_common_handle_option): Pass &global_options to
3387 set_Wstrict_aliasing.
3388 * c.opt (v): Don't mark Common or document here.
3389
91ebb981
IS
33902010-11-06 Iain Sandoe <iains@gcc.gnu.org>
3391
3392 PR target/44981
3393 * c-format.c (format_type): New type gcc_objc_string_format_type.
3394 (valid_stringptr_type_p): New.
3395 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 3396 (check_format_string): Pass expected type, use
91ebb981
IS
3397 valid_stringptr_type_p (), check that the format string types are
3398 consistent with the format specification.
3399 (decode_format_attr): Warn if NSString is used outside objective-c.
3400 (format_types_orig): Add NSString.
3401 (format_name): New.
3402 (format_flags): New.
3403 (check_format_arg): Handle format strings requiring an external parser.
3404 first_target_format_type: New variable.
3405 (handle_format_attribute): Set up first_target_format_type, pass the
3406 expected format arg string type to check_format_string().
3407 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
3408 * stub-objc.c (objc_string_ref_type_p): New.
3409 (objc_check_format_arg): New.
3410
bede2adc
NP
34112010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
3412
9faeb493 3413 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
3414 * c-common.h (objc_build_class_component_ref): New.
3415 * stub-objc.c (objc_build_class_component_ref): New.
3416
9a179d01
NP
34172010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
3418
3419 * c.opt (Wproperty-assign-default): New option.
3420
22d8d616
NP
34212010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
3422
3423 Implemented -fobjc-std=objc1 flag.
3424 * c.opt (fobjc-std=objc1): New option.
3425
2debdb4f
NP
34262010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
3427
3428 Implemented format and noreturn attributes for Objective-C methods.
3429 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
3430 attribute for Objective-C methods.
3431
ec52b111
JM
34322010-10-31 Jason Merrill <jason@redhat.com>
3433
3434 * c-common.c (conversion_warning, warn_for_collisions_1): Use
3435 EXPR_LOC_OR_HERE.
3436
46a88c12
NP
34372010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
3438
3439 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
3440 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
3441 (objc_add_property_declaration): Removed arguments for copies and
3442 ivar.
3443 (objc_build_getter_call): Renamed to
3444 objc_maybe_build_component_ref.
3445 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
3446 (objc_is_property_ref): New.
3447 * c-common.c (c_common_reswords): Removed copies and ivar.
3448 * stub-objc.c (objc_add_property_declaration): Removed arguments
3449 for copies and ivar.
3450 (objc_build_getter_call): Renamed to
3451 objc_maybe_build_component_ref.
3452 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
3453 (objc_is_property_ref): New.
9faeb493 3454
1e4bf85b
AC
34552010-10-29 Arnaud Charlet <charlet@adacore.com>
3456 Matthew Gingell <gingell@adacore.com>
3457
3458 * c-ada-spec.c (separate_class_package): New function.
3459 (pp_ada_tree_identifier): Prefix references to C++ classes with the
3460 name of their enclosing package.
3461 (print_ada_declaration): Use separate_class_package.
3462
81f0bab2
JM
34632010-10-27 Jason Merrill <jason@redhat.com>
3464
2b08f2c5
JM
3465 * c-common.c (c_common_reswords): Add __is_literal_type.
3466 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
3467
81f0bab2
JM
3468 * c-common.c (check_case_value): Remove special C++ code.
3469
200290f2
NP
34702010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
3471
3472 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
3473 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
3474 and RID_LAST_PATTR.
3475 (objc_add_property_declaration): Added additional arguments.
3476 (objc_property_attribute_kind): Removed.
3477 (objc_set_property_attr): Removed.
3478 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
3479 copy and nonatomic.
3480 * stub-objc.c (objc_add_property_declaration): Added additional
3481 arguments.
3482 (objc_set_property_attr): Removed.
9faeb493 3483
f614132b
NP
34842010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
3485
3486 * c-common.h (objc_add_property_variable): Renamed to
3487 objc_add_property_declaration. Added location argument.
3488 * stub-objc.c (objc_add_property_variable): Same change.
3489
b8a18805
NP
34902010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
3491
3492 * c-common.h (objc_maybe_printable_name): New.
3493 * stub-objc.c (objc_maybe_printable_name): New.
3494
30cd1c5d
AS
34952010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3496 Andrew Pinski <pinskia@gmail.com>
3497
3498 * c-common.h (c_common_mark_addressable_vec): Declare.
3499 * c-common.c (c_common_mark_addressable_vec): New function.
3500
249a82c4
NP
35012010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
3502
3503 * c-common.h (objc_set_method_type): Removed.
3504 (objc_add_method_declaration): Added boolean argument.
3505 (objc_start_method_definition): Same change.
3506 (objc_build_method_signature): Same change.
3507 * stub-objc.c (objc_set_method_type): Removed.
3508 (objc_add_method_declaration): Added boolean argument.
3509 (objc_start_method_definition): Same change.
3510 (objc_build_method_signature): Same change.
3511
977e30bc
NP
35122010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
3513
3514 * c-common.h (finish_file): Removed.
3515 (objc_write_global_declarations): New.
3516 * c-opts.c (c_common_parse_file): Do not call finish_file.
3517 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 3518
da57d1b9
NP
35192010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
3520
3521 Implemented parsing @synthesize and @dynamic for
3522 Objective-C/Objective-C++.
3523 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
3524 (objc_add_synthesize_declaration): New.
3525 (objc_add_dynamic_declaration): New.
3526 * c-common.c (c_common_reswords): Add synthesize and dynamic.
3527 * stub-objc.c (objc_add_synthesize_declaration): New.
3528 (objc_add_dynamic_declaration): New.
9faeb493 3529
0069111f
MM
35302010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
3531
3532 PR target/46041
3533 * c-cppbuiltin.c (mode_has_fma): Move function here from
3534 builtins.c. Don't use the fma optab, instead just use the
3535 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
3536 using -save-temps.
3537
e426b47b
NP
35382010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
3539
3540 Merge from 'apple/trunk' branch on FSF servers.
0069111f 3541
e426b47b
NP
3542 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
3543
9faeb493 3544 Radar 4330422
e426b47b
NP
3545 * c-common.h (objc_non_volatilized_type): New declaration
3546 * stub-objc.c (objc_non_volatilized_type): New stub.
3547
90fbfdc3
NP
35482010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
3549
e426b47b 3550 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
3551
3552 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
3553
9faeb493 3554 Radar 4133425
90fbfdc3 3555 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 3556 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 3557
c37d8c30
IS
35582010-10-17 Iain Sandoe <iains@gcc.gnu.org>
3559
3560 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
3561 * c-common.h (enum rid): Add RID_AT_PACKAGE.
3562 (objc_ivar_visibility_kind): New enum.
3563 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 3564 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
3565 visibility enum.
3566
1b1562a5
MM
35672010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3568
3569 * c-cppbuiltin.c (builtin_define_float_constants): Emit
3570 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
3571 has the appropriate fma builtins.
3572 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
3573
668ea4b1
IS
35742010-10-14 Iain Sandoe <iains@gcc.gnu.org>
3575
1b1562a5 3576 merge from FSF apple 'trunk' branch.
668ea4b1 3577 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 3578
668ea4b1
IS
3579 Radars 4436866, 4505126, 4506903, 4517826
3580 * c-common.c (c_common_resword): Define @property and its attributes.
3581 * c-common.h: Define property attribute enum entries.
3582 (OBJC_IS_PATTR_KEYWORD): New.
3583 (objc_property_attribute_kind): New enum.
3584 Declare objc_set_property_attr (), objc_add_property_variable (),
3585 objc_build_getter_call () and objc_build_setter_call ().
3586 * stub-objc.c (objc_set_property_attr): New stub.
3587 (objc_add_property_variable): Likewise.
3588 (objc_build_getter_call): Likewise.
3589 (objc_build_setter_call) Likewise.
1b1562a5 3590
a1178b30
IS
35912010-10-13 Iain Sandoe <iains@gcc.gnu.org>
3592
1b1562a5 3593 merge from FSF apple 'trunk' branch.
a1178b30
IS
3594 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
3595
3596 Radar 3803157 (method attributes)
3597 * c-common.c (handle_deprecated_attribute): Recognize
3598 objc methods as valid declarations.
3599 * c-common.h: Declare objc_method_decl ().
1b1562a5 3600 * stub-objc.c (objc_method_decl): New stub.
a1178b30 3601
a75bfaa6
JM
36022010-10-08 Joseph Myers <joseph@codesourcery.com>
3603
3604 * c-common.c (parse_optimize_options): Call
3605 decode_cmdline_options_to_array_default_mask before
3606 decode_options. Update arguments to decode_options.
3607 * c-common.h (c_common_init_options_struct): Declare.
3608 * c-opts.c (c_common_init_options_struct): New. Split out from
3609 c_common_init_options.
3610
f05b9d93
NP
36112010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
3612
3613 Implemented fast enumeration for Objective-C.
3614 * c-common.h (objc_finish_foreach_loop): New.
3615 * stub-objc.c (objc_finish_foreach_loop): New.
3616
1ebe4b4f
JM
36172010-10-05 Joseph Myers <joseph@codesourcery.com>
3618
3619 * c-common.h (struct diagnostic_context): Don't declare here.
3620 (c_common_initialize_diagnostics): Declare using
3621 diagnostic_context typedef.
3622 * c-opts.c (c_common_handle_option): Pass global_dc to
3623 handle_generated_option.
3624
d4d24ba4
JM
36252010-10-04 Joseph Myers <joseph@codesourcery.com>
3626
3627 * c-opts.c (c_common_handle_option): Pass &global_options_set to
3628 handle_generated_option.
3629
478a1c5b
ILT
36302010-10-03 Ian Lance Taylor <iant@google.com>
3631
3632 * c.opt (-fplan9-extensions): New option.
3633
82a1c2fe
FXC
36342010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3635
3636 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
3637 Remove.
3638 (c_cpp_builtins): Call functions from cppbuiltin.c instead
3639 of duplicating code.
3640
92902b1b
IS
36412010-09-30 Iain Sandoe <iains@gcc.gnu.org>
3642
3643 * c-common.c: Add two new entries for @optional
3644 and @required keywords.
3645
3646 merge from FSF 'apple/trunk' branch.
3647 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
3648
3649 Radar 4386773
3650 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
3651 objective-c keywords.
3652 (objc_set_method_opt): New declaration.
3653 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 3654
46625112
JM
36552010-09-30 Joseph Myers <joseph@codesourcery.com>
3656
3657 * c-common.c (handle_optimize_attribute): Pass &global_options to
3658 cl_optimization_save and cl_optimization_restore.
3659 * c-opts.c (c_common_handle_option): Pass &global_options to
3660 handle_generated_option.
3661 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
3662 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
3663 &global_options to cl_optimization_restore.
3664
49b91f05
NP
36652010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
3666
3667 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
3668 Objective-C/Objective-C++ keywords.
3669
13ed556f 36702010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 3671
9faeb493
UB
3672 Merge from 'apple/trunk' branch on FSF servers.
3673
a6341d57
NP
3674 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
3675
3676 Radar 4281748
3677 * c-common.h (objc_check_global_decl): New declaration.
3678 * stub-objc.c (objc_check_global_decl): New stub.
3679
f0036cca
JM
36802010-09-29 Joseph Myers <joseph@codesourcery.com>
3681
3682 * c.opt: Don't use VarExists.
3683
e3339d0f
JM
36842010-09-29 Joseph Myers <joseph@codesourcery.com>
3685
3686 * c-common.c (c_cpp_error): Update names of diagnostic_context
3687 members.
3688 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
3689 cl_optimization members.
3690 * c-opts.c (warning_as_error_callback, c_common_handle_option,
3691 sanitize_cpp_opts, finish_options): Update names of cpp_options
3692 members.
3693
1973201f
NP
36942010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
3695
3696 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
3697 (objc_is_reserved_word): Removed.
3698 * c-common.c: Updated comments.
3699 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
3700 objc_is_reserved_word.
3701 * stub-objc.c (objc_is_reserved_word): Removed.
3702
f7e71da5
IS
37032010-09-28 Iain Sandoe <iains@gcc.gnu.org>
3704
9faeb493 3705 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
3706 include attributes.
3707 (objc_start_method_definition): Likewise.
3708 (objc_build_keyword_decl): Likewise.
3709 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
3710 (objc_start_method_definition): Likewise.
3711 (objc_build_keyword_decl): Likewise.
3712
c165dca7
IS
37132010-09-28 Iain Sandoe <iains@gcc.gnu.org>
3714
3715 * c-common.h (objc_start_class_interface): Adjust prototype.
3716 (objc_start_category_interface): Likewise.
3717 (objc_start_protocol): Likewise.
3718 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
3719 (objc_start_class_interface): Likewise.
3720 (objc_start_category_interface): Likewise.
3721
7458026b
ILT
37222010-09-27 Ian Lance Taylor <iant@google.com>
3723
3724 * c-common.c (c_common_attribute_table): Add no_split_stack.
3725 (handle_no_split_stack_attribute): New static function.
3726
b581b85b
NP
37272010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
3728
9faeb493 3729 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
3730
3731 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
3732
9faeb493 3733 Radar 4229905
b581b85b
NP
3734 * c-common.h (objc_have_common_type): New declaration.
3735 * stub-objc.c (objc_have_common_type): New stub.
3736
3737 2005-06-22 Ziemowit Laski <zlaski@apple.com>
3738
3739 Radar 4154928
3740 * c-common.h (objc_common_type): New prototype.
9faeb493 3741 * stub-objc.c (objc_common_type): New stub.
b581b85b 3742
46a4da10
JH
37432010-09-24 Jan Hubicka <jh@suse.cz>
3744
3745 * c-common.c (handle_leaf_attribute): New function.
3746 (struct attribute_spec c_common_att): Add leaf.
3747
e200444e
JM
37482010-09-22 Joseph Myers <joseph@codesourcery.com>
3749
3750 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
3751 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
3752 -dump, -dump=, -imacros, -imacros=, -include, -include=,
3753 -include-barrier, -include-directory, -include-directory=,
3754 -include-directory-after, -include-directory-after=,
3755 -include-prefix, -include-prefix=, -include-with-prefix,
3756 -include-with-prefix=, -include-with-prefix-after,
3757 -include-with-prefix-after=, -include-with-prefix-before,
3758 -include-with-prefix-before=, -no-integrated-cpp,
3759 -no-line-commands, -no-standard-includes, -no-warnings, -output,
3760 -output=, -pedantic, -pedantic-errors, -preprocess,
3761 -print-missing-file-dependencies, -trace-includes, -traditional,
3762 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
3763 -user-dependencies, -verbose, -write-dependencies,
3764 -write-user-dependencies, no-integrated-cpp, traditional): New.
3765
29a80ea6
NP
37662010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
3767
3768 PR objc/23710
ac1fc2fc
NP
3769 * c-common.h (objc_start_method_definition): Return bool instead
3770 of void.
3771 * stub-objc.c (objc_start_method_definition): Return bool instead
3772 of void.
3773
37742010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
3775
3776 PR objc/25965
3777 * c-common.h (objc_get_interface_ivars): New declaration.
3778 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 3779
de621752
ILT
37802010-09-15 Ian Lance Taylor <iant@google.com>
3781
3782 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 3783 messages. Remove period at end of warning message.
de621752 3784
ba885ec5
NS
37852010-09-09 Nathan Sidwell <nathan@codesourcery.com>
3786
3787 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
3788 (handle_alias_attribute): ... here.
3789 (handle_ifunc_attribute): New.
3790
c5ee1358
MM
37912010-09-06 Mark Mitchell <mark@codesourcery.com>
3792
3793 * c-common.h (do_warn_double_promotion): Declare.
3794 * c-common.c (do_warn_double_promotion): Define.
3795
0a0b3574
MM
37962010-09-05 Mark Mitchell <mark@codesourcery.com>
3797
3798 * c.opt (Wdouble-promotion): New.
3799
d1779886
JM
38002010-09-02 Joseph Myers <joseph@codesourcery.com>
3801
3802 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
3803 fvtable-thunks, fxref): Mark no longer supported in help text.
3804
2d2bd949
JM
38052010-09-02 Joseph Myers <joseph@codesourcery.com>
3806
3807 * c.opt (Wimport, fall-virtual, falt-external-templates,
3808 fdefault-inline, fenum-int-equiv, fexternal-templates,
3809 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
3810 fname-mangling-version-, fnew-abi, fnonnull-objects,
3811 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
3812 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
3813 applicable.
3814 (fhandle-exceptions): Mark with Alias and Warn.
3815 * c-opts.c (c_common_handle_option): Don't handle options marked
3816 as ignored.
3817
5de8299c
JM
38182010-09-02 Joseph Myers <joseph@codesourcery.com>
3819
3820 * c.opt (Wcomments, Werror-implicit-function-declaration,
3821 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
3822 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
3823 aliases.
3824 * c-common.c (option_codes): Use OPT_Wcomment instead of
3825 OPT_Wcomments.
3826 * c-opts.c (warning_as_error_callback, c_common_handle_option):
3827 Don't handle options marked as aliases.
3828
0ceb0201
RG
38292010-08-25 Richard Guenther <rguenther@suse.de>
3830
3831 * c-common.c (c_common_get_alias_set): Remove special
3832 handling for pointers.
3833
ac47786e
NF
38342010-08-20 Nathan Froyd <froydnj@codesourcery.com>
3835
3836 * c-common.c: Use FOR_EACH_VEC_ELT.
3837 * c-gimplify.c: Likewise.
3838 * c-pragma.c: Likewise.
3839
c878765b
JM
38402010-08-16 Joseph Myers <joseph@codesourcery.com>
3841
3842 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
3843 RejectDriver.
3844 (MMDX): Change back to MMD. Mark NoDriverArg instead of
3845 RejectDriver.
3846 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
3847 instead of OPT_MDX and OPT_MMDX.
3848
603349bf
JM
38492010-08-16 Joseph Myers <joseph@codesourcery.com>
3850
3851 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
3852
644fa7ac
JM
38532010-08-12 Joseph Myers <joseph@codesourcery.com>
3854
3855 * c.opt (MD, MMD): Change to MDX and MMDX.
3856 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
3857
481e1176
JM
38582010-08-11 Joseph Myers <joseph@codesourcery.com>
3859
3860 * c-opts.c (c_common_handle_option): Call handle_generated_option
3861 instead of handle_option.
3862
ac8dc9f7
NF
38632010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3864
3865 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
3866 (maybe_apply_renaming_pragma): Delete unneeded declarations.
3867
4f8c876d
NF
38682010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3869
3870 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
3871 (pending_redefine_extname): Change type to a VEC.
3872 (add_to_renaming_pragma_list): Update for new type of
3873 pending_redefine_extname.
ac8dc9f7 3874 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 3875
3b0c690e
AC
38762010-08-04 Arnaud Charlet <charlet@adacore.com>
3877
3878 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
3879 visited.
3880 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
3881 decide whether a type has already been declared/seen.
3882 Do not go to the original type.
3883 (dump_nested_types): New parameter forward.
3884 Generate forward declaration if needed and mark type as visited.
3885 (print_ada_declaration): Call dump_nested_types if not already done.
3886 Mark types as visited.
3887
1890bccc
JM
38882010-08-03 Joseph Myers <joseph@codesourcery.com>
3889
3890 * c.opt (-print-pch-checksum): Remove option.
3891 * c-opts.c (c_common_handle_option): Don't handle
3892 OPT_print_pch_checksum.
3893
5f20c657
JM
38942010-07-27 Joseph Myers <joseph@codesourcery.com>
3895
3896 * c-common.h (c_common_handle_option): Update prototype and return
3897 value type.
3898 * c-opts.c (c_common_handle_option): Update prototype and return
3899 value type. Update calls to handle_option and
3900 enable_warning_as_error.
3901
f551f80c
JJ
39022010-07-27 Jakub Jelinek <jakub@redhat.com>
3903
3904 PR c/45079
3905 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
3906
61ff2bdc
JM
39072010-07-27 Joseph Myers <joseph@codesourcery.com>
3908
3909 * c-common.h (c_common_missing_argument): Remove.
3910 * c-opts.c (c_common_missing_argument): Remove.
3911 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
3912 idirafter, imacros, include, isysroot, isystem, iquote): Add
3913 MissingArgError.
3914 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
3915
7a9bf9a4
JM
39162010-07-27 Joseph Myers <joseph@codesourcery.com>
3917
3918 * c-common.h (c_common_option_lang_mask,
3919 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
3920 New.
3921 (c_common_init_options): Update prototype.
3922 * c-opts.c (c_common_option_lang_mask): New.
3923 (c_common_initialize_diagnostics): Split out of
3924 c_common_init_options.
3925 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
3926 New.
3927 (c_common_init_options): Update prototype. Use decoded options in
3928 search for -lang-asm.
3929
910ad8de
NF
39302010-07-15 Nathan Froyd <froydnj@codesourcery.com>
3931
3932 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
3933 * c-format.c: Likewise.
3934
718f9c0f
MLI
39352010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
3936
3937 * c-common.h: Include diagnostic-core.h. Error if already
3938 included.
3939 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
3940
4d451982
MLI
39412010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3942
3943 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
3944 Do not include expr.h
3945 (vector_mode_valid_p): Move here.
3946
119fe915
SB
39472010-06-21 DJ Delorie <dj@redhat.com>
3948
3949 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
3950 allow these pragmas anywhere.
3951
39522010-06-14 Jakub Jelinek <jakub@redhat.com>
3953
3954 PR bootstrap/44509
3955 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
3956 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
3957 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
3958 ggc_strdup instead of xstrdup.
3959
39602010-06-10 Jakub Jelinek <jakub@redhat.com>
3961
3962 * c-cppbuiltin.c: Include cpp-id-data.h.
3963 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
3964 (lazy_hex_fp_value): New function.
3965 (builtin_define_with_hex_fp_value): Provide definitions lazily.
3966
6662d794
MLI
39672010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3968
3969 * c-gimplify.c: Do not include tree-flow.h
3970
38f8b050
JR
39712010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
3972
3973 PR other/44034
3974 * c-common.c: Rename targetm member:
3975 targetm.enum_va_list -> targetm.enum_va_list_p
3976
9589f23e
AS
39772010-06-28 Anatoly Sokolov <aesok@post.ru>
3978
3979 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
3980
3b06d379
SB
39812010-06-28 Steven Bosscher <steven@gcc.gnu.org>
3982
3983 * c-cppbuiltin.c: Do not include except.h.
3984
d166d4c3
AK
39852010-06-24 Andi Kleen <ak@linux.intel.com>
3986
9faeb493
UB
3987 * c-common.c (warn_for_omitted_condop): New.
3988 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 3989
70cb8be6
JM
39902010-06-21 Joseph Myers <joseph@codesourcery.com>
3991
3992 * c.opt (lang-objc): Remove.
3993 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
3994
a4c97feb
JR
39952010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
3996
3997 * c-opts.c: Include "tm_p.h".
3998
6e2f1956
JM
39992010-06-20 Joseph Myers <joseph@codesourcery.com>
4000
4001 * c-common.c (parse_optimize_options): Update call to
4002 decode_options.
4003
bc87224e
NF
40042010-06-18 Nathan Froyd <froydnj@codesourcery.com>
4005
4006 * c-common.c (record_types_used_by_current_var_decl): Adjust for
4007 new type of types_used_by_cur_var_decl.
4008
b49cf425
JR
40092010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
4010
4011 PR bootstrap/44512
4012 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
4013 for C++ standard compliance.
4014
59f9c2ed
JM
40152010-06-16 Jason Merrill <jason@redhat.com>
4016
4017 * c.opt: Add -Wnoexcept.
4018
33766b66
RG
40192010-06-16 Richard Guenther <rguenther@suse.de>
4020
4021 PR c/44555
4022 * c-common.c (c_common_truthvalue_conversion): Remove
4023 premature and wrong optimization concering ADDR_EXPRs.
4024
eff7e30c
AC
40252010-06-15 Arnaud Charlet <charlet@adacore.com>
4026
4027 * c-ada-spec.c (dump_sloc): Remove column info.
4028 (is_simple_enum): New function.
4029 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
4030 enum types when relevant.
4031
6312e84d
MLI
40322010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4033
9faeb493 4034 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
4035 location.
4036
1cb42611
JM
40372010-06-10 Joseph Myers <joseph@codesourcery.com>
4038
4039 * c-opts.c (c_common_handle_option): Don't handle
4040 OPT_fshow_column.
4041
a9429e29
LB
40422010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4043
4044 * c-pragma.c (push_alignment): Use typed GC allocation.
4045 (handle_pragma_push_options): Likewise.
4046
4047 * c-common.c (parse_optimize_options): Likewise.
4048
4049 * c-common.h (struct sorted_fields_type): Add variable_size GTY
4050 option.
4051
5498f011
JM
40522010-06-07 Joseph Myers <joseph@codesourcery.com>
4053
4054 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
4055 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4056 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4057 flag_signed_bitfields, warn_strict_null_sentinel,
4058 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
4059 flag_gen_declaration, flag_no_gnu_keywords,
4060 flag_implement_inlines, flag_implicit_templates,
4061 flag_implicit_inline_templates, flag_optional_diags,
4062 flag_elide_constructors, flag_default_inline, flag_rtti,
4063 flag_conserve_space, flag_access_control, flag_check_new,
4064 flag_new_for_scope, flag_weak, flag_working_directory,
4065 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
4066 flag_enforce_eh_specs, flag_threadsafe_statics,
4067 flag_pretty_templates): Remove.
4068 * c-common.h (flag_preprocess_only, flag_nil_receivers,
4069 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
4070 flag_replace_objc_classes, flag_undef, flag_no_builtin,
4071 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4072 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4073 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
4074 flag_no_gnu_keywords, flag_implement_inlines,
4075 flag_implicit_templates, flag_implicit_inline_templates,
4076 flag_optional_diags, flag_elide_constructors, flag_default_inline,
4077 flag_rtti, flag_conserve_space, flag_access_control,
4078 flag_check_new, flag_new_for_scope, flag_weak,
4079 flag_working_directory, flag_use_cxa_atexit,
4080 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
4081 flag_threadsafe_statics, flag_pretty_templates,
4082 warn_strict_null_sentinel): Remove.
4083 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
4084 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
4085 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
4086 fimplicit-inline-templates, fimplicit-templates,
4087 flax-vector-conversions, fms-extensions, fnil-receivers,
4088 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
4089 frtti, fshort-double, fshort-enums, fshort-wchar,
4090 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
4091 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
4092 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
4093 gen-decls, undef): Use Var.
4094 (fdefault-inline, foptional-diags): Document as doing nothing.
4095 * c-opts.c (c_common_handle_option): Remove cases for options now
4096 using Var. Mark ignored options as such.
4097
39dabefd
SB
40982010-06-05 Steven Bosscher <steven@gcc.gnu.org>
4099
9faeb493 4100 * c-common.c: Moved to here from parent directory.
39dabefd
SB
4101 * c-common.def: Likewise.
4102 * c-common.h: Likewise.
4103 * c-cppbuiltin.c: Likewise.
4104 * c-dump.c: Likewise.
4105 * c-format.c: Likewise.
4106 * c-format.h : Likewise.
4107 * c-gimplify.c: Likewise.
4108 * c-lex.c: Likewise.
4109 * c-omp.c: Likewise.
4110 * c.opt: Likewise.
4111 * c-opts.c: Likewise.
4112 * c-pch.c: Likewise.
4113 * c-ppoutput.c: Likewise.
4114 * c-pragma.c: Likewise.
4115 * c-pragma.h: Likewise.
4116 * c-pretty-print.c: Likewise.
4117 * c-pretty-print.h: Likewise.
4118 * c-semantics.c: Likewise.
4119 * stub-objc.c: Likewise.
4120
4121 * c-common.c: Include gt-c-family-c-common.h.
4122 * c-pragma.c: Include gt-c-family-c-pragma.h.
4123\f
23a5b65a 4124Copyright (C) 2010-2014 Free Software Foundation, Inc.
39dabefd
SB
4125
4126Copying and distribution of this file, with or without modification,
4127are permitted in any medium without royalty provided the copyright
4128notice and this notice are preserved.
This page took 1.550297 seconds and 5 git commands to generate.